golden-logic-ui 1.0.518 → 1.0.519
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 +559 -562
- package/dist/golden-logic-ui.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/golden-logic-ui.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { openBlock as ue, createBlock as ju, resolveDynamicComponent as A4, mergeProps as aO, withCtx as Cm, createElementBlock as de, normalizeClass as zt, createCommentVNode as qe, renderSlot as Zi, createTextVNode as Zn, createElementVNode as R, resolveComponent as Rd, createVNode as ui, createStaticVNode as jP, reactive as Bq, Fragment as jn, toDisplayString as dt, withModifiers as za, withDirectives as fr, vModelText as _m, renderList as Ks, normalizeStyle as Mj, computed as bu, ref as co, onMounted as Og, onBeforeUnmount as lO, watch as Sf, vShow as kf, nextTick as Bj, vModelDynamic as nq, useSlots as Pq, provide as oq, inject as sq, pushScopeId as rq, popScopeId as aq, vModelCheckbox as lq, toHandlers as Rj, onUnmounted as Nq, TransitionGroup as Iq, unref as Lq, resolveDirective as Pj, markRaw as Fq } from "vue";
|
|
2
|
-
const zr = (A,
|
|
2
|
+
const zr = (A, te) => {
|
|
3
3
|
const G = A.__vccOpts || A;
|
|
4
|
-
for (const [Ce, oe] of
|
|
4
|
+
for (const [Ce, oe] of te)
|
|
5
5
|
G[Ce] = oe;
|
|
6
6
|
return G;
|
|
7
7
|
}, Hq = {
|
|
@@ -87,7 +87,7 @@ const zr = (A, ee) => {
|
|
|
87
87
|
fill: "#1C64F2"
|
|
88
88
|
})
|
|
89
89
|
], -1);
|
|
90
|
-
function zq(A,
|
|
90
|
+
function zq(A, te, G, Ce, oe, U) {
|
|
91
91
|
return G.is_loading ? (ue(), ju(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__ */ jP('<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, te, G, Ce, oe, U) {
|
|
146
146
|
const be = Rd("gl-button");
|
|
147
147
|
return G.isOpen ? (ue(), de("div", Wq, [
|
|
148
148
|
R("div", Zq, [
|
|
@@ -268,10 +268,10 @@ const GP = /* @__PURE__ */ zr(Uq, [["render", Xq]]), $j = Bq({
|
|
|
268
268
|
},
|
|
269
269
|
deleteAction() {
|
|
270
270
|
axios.delete(this.route_url + "/destroyMedia/" + this.media_id).then((A) => {
|
|
271
|
-
let
|
|
271
|
+
let te = this.uploadFileList.findIndex(
|
|
272
272
|
(G) => G.id === this.media_id
|
|
273
273
|
);
|
|
274
|
-
|
|
274
|
+
te !== -1 && this.uploadFileList.splice(te, 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 GP = /* @__PURE__ */ zr(Uq, [["render", Xq]]), $j = Bq({
|
|
|
285
285
|
},
|
|
286
286
|
formatFileSize(A) {
|
|
287
287
|
if (A === 0) return "0 Bytes";
|
|
288
|
-
const
|
|
289
|
-
return parseFloat((A / Math.pow(
|
|
288
|
+
const te = 1024, G = ["Bytes", "KB", "MB", "GB", "TB"], Ce = Math.floor(Math.log(A) / Math.log(te));
|
|
289
|
+
return parseFloat((A / Math.pow(te, Ce)).toFixed(2)) + " " + G[Ce];
|
|
290
290
|
},
|
|
291
291
|
onDragOver(A) {
|
|
292
292
|
A.preventDefault(), this.isDragging = !0, A.dataTransfer.dropEffect = "copy";
|
|
@@ -296,23 +296,23 @@ const GP = /* @__PURE__ */ zr(Uq, [["render", Xq]]), $j = Bq({
|
|
|
296
296
|
},
|
|
297
297
|
onDrop(A) {
|
|
298
298
|
A.preventDefault(), this.isDragging = !1;
|
|
299
|
-
const
|
|
300
|
-
Array.from(
|
|
299
|
+
const te = A.dataTransfer.files;
|
|
300
|
+
Array.from(te).forEach((G) => {
|
|
301
301
|
this.uploadFile(G);
|
|
302
302
|
});
|
|
303
303
|
},
|
|
304
304
|
async uploadFiles(A) {
|
|
305
|
-
const
|
|
305
|
+
const te = A.target.files, G = Array.from(te).map(
|
|
306
306
|
(Ce) => this.uploadFile(Ce)
|
|
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, te) {
|
|
311
|
+
return A.hasOwnProperty(te) ? A[te][0] : "";
|
|
312
312
|
},
|
|
313
313
|
async uploadFile(A) {
|
|
314
|
-
return new Promise((
|
|
315
|
-
A ||
|
|
314
|
+
return new Promise((te, G) => {
|
|
315
|
+
A || te();
|
|
316
316
|
const Ce = new FormData();
|
|
317
317
|
Ce.append(this.field_name, A), Ce.append("accepts_file_types", this.accepts_file_types), Ce.append("max_file_size", this.max_file_size), Ce.append("field_name", this.field_name), Object.entries(this.file_config).forEach(([oe, U]) => {
|
|
318
318
|
Ce.append(oe, U);
|
|
@@ -331,7 +331,7 @@ const GP = /* @__PURE__ */ zr(Uq, [["render", Xq]]), $j = Bq({
|
|
|
331
331
|
size: oe.data.size,
|
|
332
332
|
id: oe.data.id,
|
|
333
333
|
url: oe.data.url
|
|
334
|
-
}), this.error_message_data = "",
|
|
334
|
+
}), this.error_message_data = "", te();
|
|
335
335
|
}).catch((oe) => {
|
|
336
336
|
oe.response.status === 422 ? this.error_message_data = this.getFirstError(
|
|
337
337
|
oe.response.data.errors,
|
|
@@ -340,7 +340,7 @@ const GP = /* @__PURE__ */ zr(Uq, [["render", Xq]]), $j = Bq({
|
|
|
340
340
|
let U = this.files.findIndex(
|
|
341
341
|
(be) => be.file_name === A.name
|
|
342
342
|
);
|
|
343
|
-
U !== -1 && this.files.splice(U, 1), console.log(oe),
|
|
343
|
+
U !== -1 && this.files.splice(U, 1), console.log(oe), te();
|
|
344
344
|
});
|
|
345
345
|
});
|
|
346
346
|
}
|
|
@@ -379,7 +379,7 @@ const GP = /* @__PURE__ */ zr(Uq, [["render", Xq]]), $j = Bq({
|
|
|
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, te, G, Ce, oe, U) {
|
|
383
383
|
const be = Rd("DeleteConfirmationModal");
|
|
384
384
|
return ue(), de(jn, null, [
|
|
385
385
|
ui(be, {
|
|
@@ -401,9 +401,9 @@ function DK(A, ee, G, Ce, oe, U) {
|
|
|
401
401
|
})
|
|
402
402
|
}, dt(G.label_name), 3),
|
|
403
403
|
R("div", {
|
|
404
|
-
onDragover:
|
|
405
|
-
onDragleave:
|
|
406
|
-
onDrop:
|
|
404
|
+
onDragover: te[3] || (te[3] = za((...q) => U.onDragOver && U.onDragOver(...q), ["prevent"])),
|
|
405
|
+
onDragleave: te[4] || (te[4] = za((...q) => U.onDragLeave && U.onDragLeave(...q), ["prevent"])),
|
|
406
|
+
onDrop: te[5] || (te[5] = za((...q) => U.onDrop && U.onDrop(...q), ["prevent"])),
|
|
407
407
|
class: "flex flex-col items-center justify-center w-full h-40 mt-3 mb-3 border-2 border-gray-300 border-dashed rounded-lg cursor-pointer bg-gray-50 dark:hover:bg-bray-800 dark:bg-gray-700 hover:bg-gray-100 dark:border-gray-600 dark:hover:border-gray-500 dark:hover:bg-gray-600"
|
|
408
408
|
}, [
|
|
409
409
|
R("div", eK, [
|
|
@@ -412,19 +412,19 @@ function DK(A, ee, G, Ce, oe, U) {
|
|
|
412
412
|
ref: "file_input" + G.field_name,
|
|
413
413
|
hidden: "",
|
|
414
414
|
multiple: G.has_multiple_file,
|
|
415
|
-
onChange:
|
|
415
|
+
onChange: te[0] || (te[0] = (...q) => U.uploadFiles && U.uploadFiles(...q))
|
|
416
416
|
}, null, 40, tK),
|
|
417
417
|
fr(R("input", {
|
|
418
418
|
type: "hidden",
|
|
419
419
|
name: G.field_name,
|
|
420
|
-
"onUpdate:modelValue":
|
|
420
|
+
"onUpdate:modelValue": te[1] || (te[1] = (q) => U.uploadFileListFinal = q)
|
|
421
421
|
}, null, 8, nK), [
|
|
422
422
|
[_m, U.uploadFileListFinal]
|
|
423
423
|
]),
|
|
424
424
|
oe.isDragging ? (ue(), de("div", aK, cK)) : (ue(), de("div", {
|
|
425
425
|
key: 0,
|
|
426
426
|
class: "flex flex-col items-center justify-center",
|
|
427
|
-
onClick:
|
|
427
|
+
onClick: te[2] || (te[2] = (q) => A.$refs["file_input" + this.field_name].click())
|
|
428
428
|
}, rK))
|
|
429
429
|
])
|
|
430
430
|
], 32),
|
|
@@ -498,10 +498,10 @@ const Dce = /* @__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((te) => {
|
|
502
|
+
this.locals = te.data.locals, this.default_language = te.data.default_language;
|
|
503
|
+
}).catch((te) => {
|
|
504
|
+
console.error(te);
|
|
505
505
|
});
|
|
506
506
|
}
|
|
507
507
|
},
|
|
@@ -511,7 +511,7 @@ const Dce = /* @__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 BK(A,
|
|
514
|
+
function BK(A, te, G, Ce, oe, U) {
|
|
515
515
|
return ue(), de("ul", RK, [
|
|
516
516
|
(ue(!0), de(jn, null, Ks(oe.locals, (be, q) => (ue(), de("li", null, [
|
|
517
517
|
R("input", {
|
|
@@ -547,7 +547,7 @@ const Oce = /* @__PURE__ */ zr(OK, [["render", BK]]), PK = { class: "bg-white bo
|
|
|
547
547
|
}
|
|
548
548
|
},
|
|
549
549
|
setup(A) {
|
|
550
|
-
const
|
|
550
|
+
const te = A, G = bu(() => te.class), Ce = bu(() => te.body_class);
|
|
551
551
|
return (oe, U) => (ue(), de("div", {
|
|
552
552
|
class: zt(["flex flex-col gap-9", G.value])
|
|
553
553
|
}, [
|
|
@@ -663,8 +663,8 @@ const Oce = /* @__PURE__ */ zr(OK, [["render", BK]]), PK = { class: "bg-white bo
|
|
|
663
663
|
}
|
|
664
664
|
},
|
|
665
665
|
emits: ["update:modelValue", "selected", "selectionChanged"],
|
|
666
|
-
setup(A, { emit:
|
|
667
|
-
const G = A, Ce =
|
|
666
|
+
setup(A, { emit: te }) {
|
|
667
|
+
const G = A, Ce = te, oe = co(null), U = co([]), be = co([]), q = co([]), De = co(0), tt = co(!1), pt = co(""), cn = co(""), kt = co(null), io = co(0), lo = co(0), eo = () => {
|
|
668
668
|
if (kt.value) {
|
|
669
669
|
io.value = kt.value.offsetWidth;
|
|
670
670
|
var Ht = kt.value.getBoundingClientRect();
|
|
@@ -971,13 +971,13 @@ const Oce = /* @__PURE__ */ zr(OK, [["render", BK]]), PK = { class: "bg-white bo
|
|
|
971
971
|
}
|
|
972
972
|
},
|
|
973
973
|
emits: ["update:modelValue", "update:modelValueTranslate", "keydown"],
|
|
974
|
-
setup(A, { expose:
|
|
974
|
+
setup(A, { expose: te, emit: G }) {
|
|
975
975
|
const Ce = A, oe = G, U = co(null), be = co(null), q = () => {
|
|
976
976
|
be.value && oe("update:modelValueTranslate", be.value.value);
|
|
977
977
|
};
|
|
978
978
|
return Og(() => {
|
|
979
979
|
U.value !== null && U.value.hasAttribute("autofocus") && U.value.focus(), Ce.modelValue && (oe("update:modelValue", Ce.modelValue), U.value.value = Ce.modelValue), Ce.modelValueTranslate && (oe("update:modelValueTranslate", Ce.modelValueTranslate), be.value.value = Ce.modelValueTranslate);
|
|
980
|
-
}),
|
|
980
|
+
}), te({ focus: () => U.value.focus() }), (De, tt) => (ue(), de(jn, null, [
|
|
981
981
|
A.show ? (ue(), de("div", {
|
|
982
982
|
key: 0,
|
|
983
983
|
class: zt(A.field_name)
|
|
@@ -1101,7 +1101,7 @@ const Oce = /* @__PURE__ */ zr(OK, [["render", BK]]), PK = { class: "bg-white bo
|
|
|
1101
1101
|
}
|
|
1102
1102
|
},
|
|
1103
1103
|
emits: ["update:modelValue", "update:modelValueTranslate", "keydown"],
|
|
1104
|
-
setup(A, { expose:
|
|
1104
|
+
setup(A, { expose: te, emit: G }) {
|
|
1105
1105
|
const Ce = A, oe = G, U = co(null), be = co(null), q = () => {
|
|
1106
1106
|
be.value && oe("update:modelValueTranslate", be.value.value);
|
|
1107
1107
|
};
|
|
@@ -1121,7 +1121,7 @@ const Oce = /* @__PURE__ */ zr(OK, [["render", BK]]), PK = { class: "bg-white bo
|
|
|
1121
1121
|
}).catch((De) => {
|
|
1122
1122
|
console.log(De);
|
|
1123
1123
|
});
|
|
1124
|
-
}),
|
|
1124
|
+
}), te({ focus: () => U.value.focus() }), (De, tt) => (ue(), de(jn, null, [
|
|
1125
1125
|
A.show ? (ue(), de("div", {
|
|
1126
1126
|
key: 0,
|
|
1127
1127
|
class: zt(A.field_name)
|
|
@@ -1236,13 +1236,13 @@ const Oce = /* @__PURE__ */ zr(OK, [["render", BK]]), PK = { class: "bg-white bo
|
|
|
1236
1236
|
}
|
|
1237
1237
|
},
|
|
1238
1238
|
emits: ["update:modelValue", "update:modelValueTranslate", "keydown"],
|
|
1239
|
-
setup(A, { expose:
|
|
1239
|
+
setup(A, { expose: te, emit: G }) {
|
|
1240
1240
|
const Ce = A, oe = G, U = co(null), be = co(null), q = () => {
|
|
1241
1241
|
be.value && oe("update:modelValueTranslate", be.value.value);
|
|
1242
1242
|
};
|
|
1243
1243
|
return Og(() => {
|
|
1244
1244
|
U.value !== null && U.value.hasAttribute("autofocus") && U.value.focus(), Ce.modelValue && (oe("update:modelValue", Ce.modelValue), U.value.value = Ce.modelValue), Ce.modelValueTranslate && (oe("update:modelValueTranslate", Ce.modelValueTranslate), be.value.value = Ce.modelValueTranslate);
|
|
1245
|
-
}),
|
|
1245
|
+
}), te({ focus: () => U.value.focus() }), (De, tt) => (ue(), de(jn, null, [
|
|
1246
1246
|
A.show ? (ue(), de("div", {
|
|
1247
1247
|
key: 0,
|
|
1248
1248
|
class: zt(A.field_name)
|
|
@@ -1348,7 +1348,7 @@ const Oce = /* @__PURE__ */ zr(OK, [["render", BK]]), PK = { class: "bg-white bo
|
|
|
1348
1348
|
}
|
|
1349
1349
|
},
|
|
1350
1350
|
emits: ["update:modelValue", "keydown", "blur"],
|
|
1351
|
-
setup(A, { expose:
|
|
1351
|
+
setup(A, { expose: te, emit: G }) {
|
|
1352
1352
|
const Ce = A, oe = G, U = co(null);
|
|
1353
1353
|
Og(() => {
|
|
1354
1354
|
U.value !== null && U.value.hasAttribute("autofocus") && U.value.focus();
|
|
@@ -1361,7 +1361,7 @@ const Oce = /* @__PURE__ */ zr(OK, [["render", BK]]), PK = { class: "bg-white bo
|
|
|
1361
1361
|
oe("update:modelValue", q);
|
|
1362
1362
|
}
|
|
1363
1363
|
});
|
|
1364
|
-
return
|
|
1364
|
+
return te({ focus: () => U.value.focus() }), (q, De) => (ue(), de(jn, null, [
|
|
1365
1365
|
A.show ? (ue(), de("div", {
|
|
1366
1366
|
key: 0,
|
|
1367
1367
|
class: zt(A.field_name)
|
|
@@ -1455,7 +1455,7 @@ const Oce = /* @__PURE__ */ zr(OK, [["render", BK]]), PK = { class: "bg-white bo
|
|
|
1455
1455
|
}
|
|
1456
1456
|
},
|
|
1457
1457
|
emits: ["update:modelValue", "keydown"],
|
|
1458
|
-
setup(A, { expose:
|
|
1458
|
+
setup(A, { expose: te, emit: G }) {
|
|
1459
1459
|
const Ce = A, oe = G, U = co(null);
|
|
1460
1460
|
Og(() => {
|
|
1461
1461
|
U.value !== null && U.value.hasAttribute("autofocus") && U.value.focus();
|
|
@@ -1468,7 +1468,7 @@ const Oce = /* @__PURE__ */ zr(OK, [["render", BK]]), PK = { class: "bg-white bo
|
|
|
1468
1468
|
oe("update:modelValue", q);
|
|
1469
1469
|
}
|
|
1470
1470
|
});
|
|
1471
|
-
return
|
|
1471
|
+
return te({ focus: () => U.value.focus() }), (q, De) => (ue(), de(jn, null, [
|
|
1472
1472
|
A.show ? (ue(), de("div", {
|
|
1473
1473
|
key: 0,
|
|
1474
1474
|
class: zt(A.field_name)
|
|
@@ -1554,8 +1554,8 @@ const Oce = /* @__PURE__ */ zr(OK, [["render", BK]]), PK = { class: "bg-white bo
|
|
|
1554
1554
|
}
|
|
1555
1555
|
},
|
|
1556
1556
|
emits: ["update:modelValue", "keydown"],
|
|
1557
|
-
setup(A, { emit:
|
|
1558
|
-
const G = A, Ce =
|
|
1557
|
+
setup(A, { emit: te }) {
|
|
1558
|
+
const G = A, Ce = te, oe = co(""), U = co({
|
|
1559
1559
|
start: G.modelValue.start,
|
|
1560
1560
|
end: G.modelValue.end
|
|
1561
1561
|
});
|
|
@@ -1681,8 +1681,8 @@ const Oce = /* @__PURE__ */ zr(OK, [["render", BK]]), PK = { class: "bg-white bo
|
|
|
1681
1681
|
}
|
|
1682
1682
|
},
|
|
1683
1683
|
emits: ["update:modelValue", "keydown"],
|
|
1684
|
-
setup(A, { emit:
|
|
1685
|
-
const G =
|
|
1684
|
+
setup(A, { emit: te }) {
|
|
1685
|
+
const G = te, Ce = co(null), oe = (U) => {
|
|
1686
1686
|
const be = U.target.files[0];
|
|
1687
1687
|
console.log(be), G("keydown", U), be && G("update:modelValue", be);
|
|
1688
1688
|
};
|
|
@@ -1730,8 +1730,8 @@ const Oce = /* @__PURE__ */ zr(OK, [["render", BK]]), PK = { class: "bg-white bo
|
|
|
1730
1730
|
__name: "GlTabsWrapper",
|
|
1731
1731
|
props: {},
|
|
1732
1732
|
emits: ["TabChange"],
|
|
1733
|
-
setup(A, { emit:
|
|
1734
|
-
const G =
|
|
1733
|
+
setup(A, { emit: te }) {
|
|
1734
|
+
const G = te, Ce = Pq(), oe = co(Ce.default().map((De) => De.props)), U = co("");
|
|
1735
1735
|
oq("selectedTitle", U);
|
|
1736
1736
|
const be = (De) => {
|
|
1737
1737
|
window.location.hash = encodeURIComponent(De), G("TabChange", De);
|
|
@@ -1786,7 +1786,7 @@ const Oce = /* @__PURE__ */ zr(OK, [["render", BK]]), PK = { class: "bg-white bo
|
|
|
1786
1786
|
key: 0,
|
|
1787
1787
|
class: "block"
|
|
1788
1788
|
};
|
|
1789
|
-
function CX(A,
|
|
1789
|
+
function CX(A, te, G, Ce, oe, U) {
|
|
1790
1790
|
return G.title == Ce.selectedTitle ? (ue(), de("div", xX, [
|
|
1791
1791
|
Zi(A.$slots, "default")
|
|
1792
1792
|
])) : qe("", !0);
|
|
@@ -1842,8 +1842,8 @@ const Hce = /* @__PURE__ */ zr(wX, [["render", CX]]), _X = {
|
|
|
1842
1842
|
methods: {
|
|
1843
1843
|
observeSlotChanges() {
|
|
1844
1844
|
const A = this.$refs.slotContainer;
|
|
1845
|
-
A && (this.mutationObserver = new MutationObserver((
|
|
1846
|
-
|
|
1845
|
+
A && (this.mutationObserver = new MutationObserver((te) => {
|
|
1846
|
+
te.forEach((G) => {
|
|
1847
1847
|
this.initSlider();
|
|
1848
1848
|
});
|
|
1849
1849
|
}), this.mutationObserver.observe(A, {
|
|
@@ -1863,11 +1863,11 @@ const Hce = /* @__PURE__ */ zr(wX, [["render", CX]]), _X = {
|
|
|
1863
1863
|
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;
|
|
1864
1864
|
},
|
|
1865
1865
|
generateRandomString(A) {
|
|
1866
|
-
let
|
|
1866
|
+
let te = "";
|
|
1867
1867
|
const G = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", Ce = G.length;
|
|
1868
1868
|
for (let oe = 0; oe < A; oe++)
|
|
1869
|
-
|
|
1870
|
-
return
|
|
1869
|
+
te += G.charAt(Math.floor(Math.random() * Ce));
|
|
1870
|
+
return te;
|
|
1871
1871
|
},
|
|
1872
1872
|
movingActions() {
|
|
1873
1873
|
},
|
|
@@ -1878,8 +1878,8 @@ const Hce = /* @__PURE__ */ zr(wX, [["render", CX]]), _X = {
|
|
|
1878
1878
|
this.currentDot > 1 && (this.currentDot--, this.setDot(this.currentDot));
|
|
1879
1879
|
},
|
|
1880
1880
|
initSlider() {
|
|
1881
|
-
let A = document.getElementById("sliderContainer_" + this.Random_string),
|
|
1882
|
-
if (this.elementsToShow > 1 ? document.body.clientWidth < 1e3 ? (this.elementsToShow = 1, U = this.hide_arrow ?
|
|
1881
|
+
let A = document.getElementById("sliderContainer_" + this.Random_string), te = document.getElementById("mainSliderContainer_" + this.Random_string), G = document.getElementById("slider_" + this.Random_string), Ce = Array.from(G.querySelectorAll("li")).filter((be) => be.parentNode === G), oe = A.clientWidth, U = oe / this.elementsToShow;
|
|
1882
|
+
if (this.elementsToShow > 1 ? document.body.clientWidth < 1e3 ? (this.elementsToShow = 1, U = this.hide_arrow ? te.clientWidth : oe) : document.body.clientWidth < 1500 && (this.elementsToShow = 2) : (this.elementsToShow = 1, U = this.hide_arrow ? te.clientWidth : oe), Ce.length > 1) {
|
|
1883
1883
|
this.dotsNum = this.elementsToShow === 1 ? Ce.length : Ce.length - this.elementsToShow + 1;
|
|
1884
1884
|
let be = this.elementsToShow === 1 ? U * Ce.length / this.dotsNum : U * (Ce.length - this.elementsToShow) / (this.dotsNum - 1);
|
|
1885
1885
|
this.dotsNavigation = Array.from({ length: this.dotsNum }, (q, De) => be * De);
|
|
@@ -1887,8 +1887,8 @@ const Hce = /* @__PURE__ */ zr(wX, [["render", CX]]), _X = {
|
|
|
1887
1887
|
G.style.width = `${Ce.length * U}px`, G.style.transition = "margin", G.style.transitionDuration = "1s", Ce.forEach((be) => be.style.width = `${U}px`);
|
|
1888
1888
|
},
|
|
1889
1889
|
setDot(A) {
|
|
1890
|
-
let
|
|
1891
|
-
this.direction_property === "rtl" ?
|
|
1890
|
+
let te = document.getElementById("slider_" + this.Random_string);
|
|
1891
|
+
this.direction_property === "rtl" ? te.style.marginRight = -this.dotsNavigation[A - 1] + "px" : te.style.marginLeft = -this.dotsNavigation[A - 1] + "px", this.currentDot = A;
|
|
1892
1892
|
}
|
|
1893
1893
|
}
|
|
1894
1894
|
}, Sm = (A) => (rq("data-v-656677e7"), A = A(), aq(), A), SX = ["id"], kX = {
|
|
@@ -2076,7 +2076,7 @@ const Hce = /* @__PURE__ */ zr(wX, [["render", CX]]), _X = {
|
|
|
2076
2076
|
}, null, -1)), TJ = [
|
|
2077
2077
|
kJ
|
|
2078
2078
|
];
|
|
2079
|
-
function EJ(A,
|
|
2079
|
+
function EJ(A, te, G, Ce, oe, U) {
|
|
2080
2080
|
return ue(), de("div", null, [
|
|
2081
2081
|
R("div", {
|
|
2082
2082
|
class: zt(["", !G.hide_arrow && G.slider_arrows_indicators_position == "arrows_outside_slider" ? "flex" : "relative block"]),
|
|
@@ -2086,7 +2086,7 @@ function EJ(A, ee, G, Ce, oe, U) {
|
|
|
2086
2086
|
R("div", TX, [
|
|
2087
2087
|
R("button", {
|
|
2088
2088
|
class: "p-3 mr-5 rounded-full shadow-lg arrow_button_styles",
|
|
2089
|
-
onClick:
|
|
2089
|
+
onClick: te[0] || (te[0] = (be) => U.prev())
|
|
2090
2090
|
}, [
|
|
2091
2091
|
G.direction_property == "ltr" ? (ue(), de("svg", EX, DX)) : qe("", !0),
|
|
2092
2092
|
G.direction_property == "rtl" ? (ue(), de("svg", OX, $X)) : qe("", !0)
|
|
@@ -2109,7 +2109,7 @@ function EJ(A, ee, G, Ce, oe, U) {
|
|
|
2109
2109
|
R("div", PX, [
|
|
2110
2110
|
R("button", {
|
|
2111
2111
|
class: "p-3 rounded-full shadow-lg arrow_button_styles",
|
|
2112
|
-
onClick:
|
|
2112
|
+
onClick: te[1] || (te[1] = za((be) => U.prev(), ["stop"]))
|
|
2113
2113
|
}, [
|
|
2114
2114
|
G.direction_property == "ltr" ? (ue(), de("svg", NX, LX)) : qe("", !0),
|
|
2115
2115
|
G.direction_property == "rtl" ? (ue(), de("svg", FX, VX)) : qe("", !0)
|
|
@@ -2124,7 +2124,7 @@ function EJ(A, ee, G, Ce, oe, U) {
|
|
|
2124
2124
|
R("div", zX, [
|
|
2125
2125
|
R("button", {
|
|
2126
2126
|
class: "p-3 rounded-full shadow-lg arrow_button_styles",
|
|
2127
|
-
onClick:
|
|
2127
|
+
onClick: te[2] || (te[2] = za((be) => U.next(), ["stop"]))
|
|
2128
2128
|
}, [
|
|
2129
2129
|
G.direction_property == "ltr" ? (ue(), de("svg", UX, ZX)) : qe("", !0),
|
|
2130
2130
|
G.direction_property == "rtl" ? (ue(), de("svg", jX, qX)) : qe("", !0)
|
|
@@ -2159,7 +2159,7 @@ function EJ(A, ee, G, Ce, oe, U) {
|
|
|
2159
2159
|
R("div", sJ, [
|
|
2160
2160
|
R("button", {
|
|
2161
2161
|
class: zt(["p-3 rounded-full arrow_button_styles", G.direction_property == "rtl" ? "ml-3" : "mr-3"]),
|
|
2162
|
-
onClick:
|
|
2162
|
+
onClick: te[3] || (te[3] = (be) => U.prev())
|
|
2163
2163
|
}, [
|
|
2164
2164
|
G.direction_property == "ltr" ? (ue(), de("svg", rJ, lJ)) : qe("", !0),
|
|
2165
2165
|
G.direction_property == "rtl" ? (ue(), de("svg", cJ, uJ)) : qe("", !0)
|
|
@@ -2170,7 +2170,7 @@ function EJ(A, ee, G, Ce, oe, U) {
|
|
|
2170
2170
|
R("div", mJ, [
|
|
2171
2171
|
R("button", {
|
|
2172
2172
|
class: "p-3 rounded-full arrow_button_styles",
|
|
2173
|
-
onClick:
|
|
2173
|
+
onClick: te[4] || (te[4] = (be) => U.next())
|
|
2174
2174
|
}, [
|
|
2175
2175
|
G.direction_property == "ltr" ? (ue(), de("svg", fJ, hJ)) : qe("", !0),
|
|
2176
2176
|
G.direction_property == "rtl" ? (ue(), de("svg", pJ, vJ)) : qe("", !0)
|
|
@@ -2184,7 +2184,7 @@ function EJ(A, ee, G, Ce, oe, U) {
|
|
|
2184
2184
|
R("div", wJ, [
|
|
2185
2185
|
R("button", {
|
|
2186
2186
|
class: "p-3 ml-5 rounded-full shadow-lg arrow_button_styles",
|
|
2187
|
-
onClick:
|
|
2187
|
+
onClick: te[5] || (te[5] = (be) => U.next())
|
|
2188
2188
|
}, [
|
|
2189
2189
|
G.direction_property == "ltr" ? (ue(), de("svg", xJ, _J)) : qe("", !0),
|
|
2190
2190
|
G.direction_property == "rtl" ? (ue(), de("svg", SJ, TJ)) : qe("", !0)
|
|
@@ -2251,8 +2251,8 @@ const Vce = /* @__PURE__ */ zr(_X, [["render", EJ], ["__scopeId", "data-v-656677
|
|
|
2251
2251
|
methods: {
|
|
2252
2252
|
observeSlotChanges() {
|
|
2253
2253
|
const A = this.$refs.slotContainer;
|
|
2254
|
-
A && (this.mutationObserver = new MutationObserver((
|
|
2255
|
-
|
|
2254
|
+
A && (this.mutationObserver = new MutationObserver((te) => {
|
|
2255
|
+
te.forEach((G) => {
|
|
2256
2256
|
this.initSlider();
|
|
2257
2257
|
});
|
|
2258
2258
|
}), this.mutationObserver.observe(A, {
|
|
@@ -2269,27 +2269,27 @@ const Vce = /* @__PURE__ */ zr(_X, [["render", EJ], ["__scopeId", "data-v-656677
|
|
|
2269
2269
|
return !this.hide_arrow && this.slider_arrows_indicators_position == "arrows_outside_slider" || this.slider_arrows_indicators_position != "arrows_outside_slider", A;
|
|
2270
2270
|
},
|
|
2271
2271
|
generateRandomString(A) {
|
|
2272
|
-
let
|
|
2272
|
+
let te = "";
|
|
2273
2273
|
const G = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", Ce = G.length;
|
|
2274
2274
|
for (let oe = 0; oe < A; oe++)
|
|
2275
|
-
|
|
2276
|
-
return
|
|
2275
|
+
te += G.charAt(Math.floor(Math.random() * Ce));
|
|
2276
|
+
return te;
|
|
2277
2277
|
},
|
|
2278
2278
|
movingActions() {
|
|
2279
|
-
let A = this,
|
|
2279
|
+
let A = this, te = document.getElementById("slider_" + this.Random_string);
|
|
2280
2280
|
const G = (oe) => {
|
|
2281
|
-
|
|
2281
|
+
te.style.cursor = "grabbing";
|
|
2282
2282
|
const U = (q) => {
|
|
2283
2283
|
const De = q.clientX || q.touches && q.touches[0] && q.touches[0].clientX, tt = q.clientY || q.touches && q.touches[0] && q.touches[0].clientY, pt = De - A.initialX, cn = tt - A.initialY;
|
|
2284
|
-
Math.abs(pt) > Math.abs(cn) ? (q.preventDefault(), Math.abs(pt) >= 70 && (pt < 0 ? A.next() : A.prev(), A.initialX = De)) :
|
|
2284
|
+
Math.abs(pt) > Math.abs(cn) ? (q.preventDefault(), Math.abs(pt) >= 70 && (pt < 0 ? A.next() : A.prev(), A.initialX = De)) : te.style.cursor = "grab", Math.abs(cn) > Math.abs(pt) && (te.style.cursor = "grab");
|
|
2285
2285
|
}, be = () => {
|
|
2286
|
-
document.removeEventListener("mousemove", U), document.removeEventListener("touchmove", U), document.removeEventListener("mouseup", be), document.removeEventListener("touchend", be),
|
|
2286
|
+
document.removeEventListener("mousemove", U), document.removeEventListener("touchmove", U), document.removeEventListener("mouseup", be), document.removeEventListener("touchend", be), te.style.cursor = "grab";
|
|
2287
2287
|
};
|
|
2288
2288
|
document.addEventListener("mousemove", U), document.addEventListener("touchmove", U, { passive: !1 }), document.addEventListener("mouseup", be), document.addEventListener("touchend", be), A.initialX = oe.clientX || oe.touches && oe.touches[0] && oe.touches[0].clientX, A.initialY = oe.clientY || oe.touches && oe.touches[0] && oe.touches[0].clientY;
|
|
2289
2289
|
}, Ce = (oe) => {
|
|
2290
2290
|
oe.key === "ArrowLeft" ? A.prev() : oe.key === "ArrowRight" && A.next();
|
|
2291
2291
|
};
|
|
2292
|
-
|
|
2292
|
+
te.addEventListener("mousedown", G), te.addEventListener("touchstart", G), document.addEventListener("keydown", Ce);
|
|
2293
2293
|
},
|
|
2294
2294
|
next() {
|
|
2295
2295
|
this.currentDot < this.dotsNavigation.length && (this.currentDot++, this.setDot(this.currentDot));
|
|
@@ -2298,12 +2298,12 @@ const Vce = /* @__PURE__ */ zr(_X, [["render", EJ], ["__scopeId", "data-v-656677
|
|
|
2298
2298
|
this.currentDot > 1 && (this.currentDot--, this.setDot(this.currentDot));
|
|
2299
2299
|
},
|
|
2300
2300
|
initSlider() {
|
|
2301
|
-
let A = document.getElementById("sliderContainer_" + this.Random_string),
|
|
2301
|
+
let A = document.getElementById("sliderContainer_" + this.Random_string), te = document.getElementById("mainSliderContainer_" + this.Random_string), G = document.getElementById("slider_" + this.Random_string), Ce = G.querySelectorAll("li"), oe = Array.from(Ce).filter((q) => q.parentNode === G);
|
|
2302
2302
|
oe[0];
|
|
2303
2303
|
let U = this.element_size + 28, be = A.clientWidth;
|
|
2304
|
-
if (this.elementsToShow = Math.floor(this.hide_arrow ?
|
|
2304
|
+
if (this.elementsToShow = Math.floor(this.hide_arrow ? te.clientWidth / U : be / U), U = (this.hide_arrow ? te.clientWidth : be) / this.elementsToShow - 28, oe.length > 1) {
|
|
2305
2305
|
this.dotsNum = Math.ceil(oe.length / this.elementsToShow);
|
|
2306
|
-
let q = this.hide_arrow ?
|
|
2306
|
+
let q = this.hide_arrow ? te.clientWidth : be;
|
|
2307
2307
|
this.dotsNavigation = [];
|
|
2308
2308
|
for (let De = 0; De < this.dotsNum; De++)
|
|
2309
2309
|
this.dotsNavigation.push(q * De);
|
|
@@ -2315,8 +2315,8 @@ const Vce = /* @__PURE__ */ zr(_X, [["render", EJ], ["__scopeId", "data-v-656677
|
|
|
2315
2315
|
}
|
|
2316
2316
|
},
|
|
2317
2317
|
setDot(A) {
|
|
2318
|
-
let
|
|
2319
|
-
this.direction_property == "rtl" ?
|
|
2318
|
+
let te = document.getElementById("slider_" + this.Random_string);
|
|
2319
|
+
this.direction_property == "rtl" ? te.style.marginRight = -this.dotsNavigation[A - 1] + "px" : te.style.marginLeft = -this.dotsNavigation[A - 1] + "px", this.currentDot = A;
|
|
2320
2320
|
}
|
|
2321
2321
|
}
|
|
2322
2322
|
}, km = (A) => (rq("data-v-bb117eda"), A = A(), aq(), A), DJ = ["id"], OJ = {
|
|
@@ -2504,7 +2504,7 @@ const Vce = /* @__PURE__ */ zr(_X, [["render", EJ], ["__scopeId", "data-v-656677
|
|
|
2504
2504
|
}, null, -1)), RQ = [
|
|
2505
2505
|
OQ
|
|
2506
2506
|
];
|
|
2507
|
-
function $Q(A,
|
|
2507
|
+
function $Q(A, te, G, Ce, oe, U) {
|
|
2508
2508
|
return ue(), de("div", null, [
|
|
2509
2509
|
R("div", {
|
|
2510
2510
|
class: zt(["w-full", !G.hide_arrow && G.slider_arrows_indicators_position == "arrows_outside_slider" ? "flex" : "relative block"]),
|
|
@@ -2514,7 +2514,7 @@ function $Q(A, ee, G, Ce, oe, U) {
|
|
|
2514
2514
|
R("div", RJ, [
|
|
2515
2515
|
R("button", {
|
|
2516
2516
|
class: "p-3 mr-5 rounded-full shadow-lg arrow_button_styles",
|
|
2517
|
-
onClick:
|
|
2517
|
+
onClick: te[0] || (te[0] = (be) => U.prev())
|
|
2518
2518
|
}, [
|
|
2519
2519
|
G.direction_property == "ltr" ? (ue(), de("svg", $J, BJ)) : qe("", !0),
|
|
2520
2520
|
G.direction_property == "rtl" ? (ue(), de("svg", PJ, IJ)) : qe("", !0)
|
|
@@ -2537,7 +2537,7 @@ function $Q(A, ee, G, Ce, oe, U) {
|
|
|
2537
2537
|
R("div", HJ, [
|
|
2538
2538
|
R("button", {
|
|
2539
2539
|
class: "p-3 rounded-full shadow-lg arrow_button_styles",
|
|
2540
|
-
onClick:
|
|
2540
|
+
onClick: te[1] || (te[1] = za((be) => U.prev(), ["stop"]))
|
|
2541
2541
|
}, [
|
|
2542
2542
|
G.direction_property == "ltr" ? (ue(), de("svg", VJ, UJ)) : qe("", !0),
|
|
2543
2543
|
G.direction_property == "rtl" ? (ue(), de("svg", WJ, jJ)) : qe("", !0)
|
|
@@ -2552,7 +2552,7 @@ function $Q(A, ee, G, Ce, oe, U) {
|
|
|
2552
2552
|
R("div", GJ, [
|
|
2553
2553
|
R("button", {
|
|
2554
2554
|
class: "p-3 rounded-full shadow-lg arrow_button_styles",
|
|
2555
|
-
onClick:
|
|
2555
|
+
onClick: te[2] || (te[2] = za((be) => U.next(), ["stop"]))
|
|
2556
2556
|
}, [
|
|
2557
2557
|
G.direction_property == "ltr" ? (ue(), de("svg", qJ, YJ)) : qe("", !0),
|
|
2558
2558
|
G.direction_property == "rtl" ? (ue(), de("svg", XJ, QJ)) : qe("", !0)
|
|
@@ -2587,7 +2587,7 @@ function $Q(A, ee, G, Ce, oe, U) {
|
|
|
2587
2587
|
R("div", iQ, [
|
|
2588
2588
|
R("button", {
|
|
2589
2589
|
class: zt(["p-3 rounded-full arrow_button_styles", G.direction_property == "rtl" ? "ml-3" : "mr-3"]),
|
|
2590
|
-
onClick:
|
|
2590
|
+
onClick: te[3] || (te[3] = (be) => U.prev())
|
|
2591
2591
|
}, [
|
|
2592
2592
|
G.direction_property == "ltr" ? (ue(), de("svg", uQ, mQ)) : qe("", !0),
|
|
2593
2593
|
G.direction_property == "rtl" ? (ue(), de("svg", fQ, hQ)) : qe("", !0)
|
|
@@ -2598,7 +2598,7 @@ function $Q(A, ee, G, Ce, oe, U) {
|
|
|
2598
2598
|
R("div", bQ, [
|
|
2599
2599
|
R("button", {
|
|
2600
2600
|
class: "p-3 rounded-full arrow_button_styles",
|
|
2601
|
-
onClick:
|
|
2601
|
+
onClick: te[4] || (te[4] = (be) => U.next())
|
|
2602
2602
|
}, [
|
|
2603
2603
|
G.direction_property == "ltr" ? (ue(), de("svg", vQ, wQ)) : qe("", !0),
|
|
2604
2604
|
G.direction_property == "rtl" ? (ue(), de("svg", xQ, _Q)) : qe("", !0)
|
|
@@ -2612,7 +2612,7 @@ function $Q(A, ee, G, Ce, oe, U) {
|
|
|
2612
2612
|
R("div", kQ, [
|
|
2613
2613
|
R("button", {
|
|
2614
2614
|
class: "p-3 ml-5 rounded-full shadow-lg arrow_button_styles",
|
|
2615
|
-
onClick:
|
|
2615
|
+
onClick: te[5] || (te[5] = (be) => U.next())
|
|
2616
2616
|
}, [
|
|
2617
2617
|
G.direction_property == "ltr" ? (ue(), de("svg", TQ, AQ)) : qe("", !0),
|
|
2618
2618
|
G.direction_property == "rtl" ? (ue(), de("svg", DQ, RQ)) : qe("", !0)
|
|
@@ -2677,8 +2677,8 @@ const zce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-bb117e
|
|
|
2677
2677
|
}
|
|
2678
2678
|
},
|
|
2679
2679
|
emits: ["closeModal"],
|
|
2680
|
-
setup(A, { emit:
|
|
2681
|
-
const G = A, Ce =
|
|
2680
|
+
setup(A, { emit: te }) {
|
|
2681
|
+
const G = A, Ce = te, oe = () => {
|
|
2682
2682
|
document.documentElement.style.overflow = "hidden", document.documentElement.style.paddingRight = "0px";
|
|
2683
2683
|
}, U = () => {
|
|
2684
2684
|
document.documentElement.style.overflow = "", document.documentElement.style.paddingRight = "";
|
|
@@ -2796,8 +2796,8 @@ const zce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-bb117e
|
|
|
2796
2796
|
}
|
|
2797
2797
|
},
|
|
2798
2798
|
emits: ["closeModal"],
|
|
2799
|
-
setup(A, { emit:
|
|
2800
|
-
const G = A, Ce =
|
|
2799
|
+
setup(A, { emit: te }) {
|
|
2800
|
+
const G = A, Ce = te, oe = () => {
|
|
2801
2801
|
document.documentElement.style.overflow = "hidden", document.documentElement.style.paddingRight = "0px";
|
|
2802
2802
|
}, U = () => {
|
|
2803
2803
|
document.documentElement.style.overflow = "", document.documentElement.style.paddingRight = "";
|
|
@@ -2904,8 +2904,8 @@ const zce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-bb117e
|
|
|
2904
2904
|
}
|
|
2905
2905
|
},
|
|
2906
2906
|
emits: ["closeModal"],
|
|
2907
|
-
setup(A, { emit:
|
|
2908
|
-
const G = A, Ce =
|
|
2907
|
+
setup(A, { emit: te }) {
|
|
2908
|
+
const G = A, Ce = te, oe = () => {
|
|
2909
2909
|
document.documentElement.style.overflow = "hidden", document.documentElement.style.paddingRight = "0px";
|
|
2910
2910
|
}, U = () => {
|
|
2911
2911
|
document.documentElement.style.overflow = "", document.documentElement.style.paddingRight = "";
|
|
@@ -3007,8 +3007,8 @@ const zce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-bb117e
|
|
|
3007
3007
|
}
|
|
3008
3008
|
},
|
|
3009
3009
|
emits: ["update:modelValue"],
|
|
3010
|
-
setup(A, { emit:
|
|
3011
|
-
const G = A, Ce =
|
|
3010
|
+
setup(A, { emit: te }) {
|
|
3011
|
+
const G = A, Ce = te, oe = co(null), U = bu({
|
|
3012
3012
|
get() {
|
|
3013
3013
|
return G.modelValue;
|
|
3014
3014
|
},
|
|
@@ -3118,8 +3118,8 @@ const zce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-bb117e
|
|
|
3118
3118
|
}
|
|
3119
3119
|
},
|
|
3120
3120
|
emits: ["update:modelValue"],
|
|
3121
|
-
setup(A, { emit:
|
|
3122
|
-
const G = A, Ce =
|
|
3121
|
+
setup(A, { emit: te }) {
|
|
3122
|
+
const G = A, Ce = te, oe = co(null), U = bu({
|
|
3123
3123
|
get() {
|
|
3124
3124
|
return G.modelValue;
|
|
3125
3125
|
},
|
|
@@ -3293,8 +3293,8 @@ const zce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-bb117e
|
|
|
3293
3293
|
}
|
|
3294
3294
|
},
|
|
3295
3295
|
emits: ["update:modelValue", "selected", "selectionChanged"],
|
|
3296
|
-
setup(A, { emit:
|
|
3297
|
-
const G = A, Ce =
|
|
3296
|
+
setup(A, { emit: te }) {
|
|
3297
|
+
const G = A, Ce = te;
|
|
3298
3298
|
co(null);
|
|
3299
3299
|
const oe = co({}), U = co([]), be = co(0), q = co(!1), De = co(""), tt = co(""), pt = co(null), cn = co(0), kt = co(0), io = () => {
|
|
3300
3300
|
if (pt.value) {
|
|
@@ -3580,7 +3580,7 @@ const zce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-bb117e
|
|
|
3580
3580
|
}
|
|
3581
3581
|
},
|
|
3582
3582
|
emits: ["update:modelValue", "keydown"],
|
|
3583
|
-
setup(A, { expose:
|
|
3583
|
+
setup(A, { expose: te, emit: G }) {
|
|
3584
3584
|
const Ce = A, oe = G, U = co(null);
|
|
3585
3585
|
Og(() => {
|
|
3586
3586
|
U.value !== null && U.value.hasAttribute("autofocus") && U.value.focus();
|
|
@@ -3593,7 +3593,7 @@ const zce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-bb117e
|
|
|
3593
3593
|
oe("update:modelValue", q);
|
|
3594
3594
|
}
|
|
3595
3595
|
});
|
|
3596
|
-
return
|
|
3596
|
+
return te({ focus: () => U.value.focus() }), (q, De) => (ue(), de(jn, null, [
|
|
3597
3597
|
A.show ? (ue(), de("div", {
|
|
3598
3598
|
key: 0,
|
|
3599
3599
|
class: zt(A.field_name)
|
|
@@ -3647,7 +3647,7 @@ function ute(A) {
|
|
|
3647
3647
|
var cq = { exports: {} };
|
|
3648
3648
|
(function(A) {
|
|
3649
3649
|
(function() {
|
|
3650
|
-
var
|
|
3650
|
+
var te = function(e) {
|
|
3651
3651
|
if (e === null)
|
|
3652
3652
|
return "null";
|
|
3653
3653
|
if (e === void 0)
|
|
@@ -3703,7 +3703,7 @@ var cq = { exports: {} };
|
|
|
3703
3703
|
}, cn = U(function(e, n) {
|
|
3704
3704
|
if (e === n)
|
|
3705
3705
|
return !0;
|
|
3706
|
-
var o =
|
|
3706
|
+
var o = te(e), r = te(n);
|
|
3707
3707
|
return o !== r ? !1 : G(o) ? e === n : o === "array" ? De(cn).eq(e, n) : o === "object" ? pt(cn).eq(e, n) : !1;
|
|
3708
3708
|
});
|
|
3709
3709
|
const kt = Object.getPrototypeOf, io = (e, n, o) => {
|
|
@@ -5072,7 +5072,7 @@ var cq = { exports: {} };
|
|
|
5072
5072
|
type: "text/css",
|
|
5073
5073
|
id: Se.id
|
|
5074
5074
|
}), Pe.dom.innerHTML = ke, y(Pe);
|
|
5075
|
-
},
|
|
5075
|
+
}, ee = (xe) => Promise.allSettled(Ye(xe, (Se) => P(Se).then(st(Se)))).then((Se) => {
|
|
5076
5076
|
const Pe = qo(Se, (at) => at.status === "fulfilled");
|
|
5077
5077
|
return Pe.fail.length > 0 ? Promise.reject(Ye(Pe.fail, (at) => at.reason)) : Ye(Pe.pass, (at) => at.value);
|
|
5078
5078
|
}), se = (xe) => {
|
|
@@ -5084,7 +5084,7 @@ var cq = { exports: {} };
|
|
|
5084
5084
|
return {
|
|
5085
5085
|
load: P,
|
|
5086
5086
|
loadRawCss: F,
|
|
5087
|
-
loadAll:
|
|
5087
|
+
loadAll: ee,
|
|
5088
5088
|
unload: se,
|
|
5089
5089
|
unloadRawCss: (xe) => {
|
|
5090
5090
|
Xo(r, xe).each((ke) => {
|
|
@@ -5242,20 +5242,20 @@ var cq = { exports: {} };
|
|
|
5242
5242
|
};
|
|
5243
5243
|
}, f = (y, k = "", B = "") => {
|
|
5244
5244
|
const P = ml(B), F = ml(y);
|
|
5245
|
-
let
|
|
5245
|
+
let ee = F.length;
|
|
5246
5246
|
const se = ml([
|
|
5247
5247
|
n,
|
|
5248
5248
|
k
|
|
5249
5249
|
].join(" "));
|
|
5250
|
-
for (;
|
|
5251
|
-
u(F[
|
|
5250
|
+
for (; ee--; )
|
|
5251
|
+
u(F[ee], se.slice(), P);
|
|
5252
5252
|
}, b = (y, k) => {
|
|
5253
5253
|
const B = ml(y), P = ml(k);
|
|
5254
5254
|
let F = B.length;
|
|
5255
5255
|
for (; F--; ) {
|
|
5256
|
-
const
|
|
5256
|
+
const ee = l[B[F]];
|
|
5257
5257
|
for (let se = 0, Y = P.length; se < Y; se++)
|
|
5258
|
-
|
|
5258
|
+
ee.attributes[P[se]] = {}, ee.attributesOrder.push(P[se]);
|
|
5259
5259
|
}
|
|
5260
5260
|
};
|
|
5261
5261
|
return e !== "html5-strict" && (Te(ml("acronym applet basefont big font strike tt"), (B) => {
|
|
@@ -5334,8 +5334,8 @@ var cq = { exports: {} };
|
|
|
5334
5334
|
name: B,
|
|
5335
5335
|
value: F
|
|
5336
5336
|
}), y.forcedValue = F) : P === "<" && (y.validValues = ct.makeMap(F, "?"))), r.test(B)) {
|
|
5337
|
-
const
|
|
5338
|
-
n.attributePatterns = n.attributePatterns || [],
|
|
5337
|
+
const ee = y;
|
|
5338
|
+
n.attributePatterns = n.attributePatterns || [], ee.pattern = Gt(B), n.attributePatterns.push(ee);
|
|
5339
5339
|
} else
|
|
5340
5340
|
l[B] || u.push(B), l[B] = y;
|
|
5341
5341
|
}
|
|
@@ -5394,7 +5394,7 @@ var cq = { exports: {} };
|
|
|
5394
5394
|
}
|
|
5395
5395
|
}, y = (n = e.schema) !== null && n !== void 0 ? n : "html5", k = N4(y);
|
|
5396
5396
|
e.verify_html === !1 && (e.valid_elements = "*[*]");
|
|
5397
|
-
const B = op(e.valid_styles), P = op(e.invalid_styles, "map"), F = op(e.valid_classes, "map"),
|
|
5397
|
+
const B = op(e.valid_styles), P = 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"), Y = 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"), xe = "td th iframe video audio object script code", ke = b("non_empty_elements", xe + " pre svg", Y), Se = b("move_caret_before_on_enter_elements", xe + " table", Y), Pe = "h1 h2 h3 h4 h5 h6", at = b("text_block_elements", Pe + " 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", at), 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 " + Pe);
|
|
5398
5398
|
ud("script noscript iframe noframes noembed title style textarea xmp plaintext".split(" "), (Ln) => {
|
|
5399
5399
|
f[Ln] = new RegExp("</" + Ln + "[^>]*>", "gi");
|
|
5400
5400
|
});
|
|
@@ -5475,7 +5475,7 @@ var cq = { exports: {} };
|
|
|
5475
5475
|
}), e.invalid_elements && ud(uu(e.invalid_elements), (Ln) => {
|
|
5476
5476
|
o[Ln] && delete o[Ln];
|
|
5477
5477
|
}), qn("span") || rt("span[!data-mce-type|*]");
|
|
5478
|
-
const gs = st(B), Rs = st(P), Hr = st(F), Ml = st(re), us = st(wt), Et = st(at), on = st(Ft), Kn = st(Object.seal(Y)), mo = st(se), Qt = st(ke), $n = st(Se), Ct = st(
|
|
5478
|
+
const gs = st(B), Rs = st(P), Hr = st(F), Ml = st(re), us = st(wt), Et = st(at), on = st(Ft), Kn = st(Object.seal(Y)), mo = st(se), Qt = st(ke), $n = st(Se), Ct = st(ee), Mn = st(We), Oo = st(Ve), Ss = st(Object.seal(f)), hs = (Ln, Io) => {
|
|
5479
5479
|
const $s = r[Ln.toLowerCase()];
|
|
5480
5480
|
return !!($s && $s[Io.toLowerCase()]);
|
|
5481
5481
|
}, Ha = (Ln, Io) => {
|
|
@@ -5558,7 +5558,7 @@ var cq = { exports: {} };
|
|
|
5558
5558
|
const B = {
|
|
5559
5559
|
parse: (P) => {
|
|
5560
5560
|
const F = {};
|
|
5561
|
-
let
|
|
5561
|
+
let ee = !1;
|
|
5562
5562
|
const se = e.url_converter, Y = e.url_converter_scope || B, re = (We, Ve, rt) => {
|
|
5563
5563
|
const Kt = F[We + "-top" + Ve];
|
|
5564
5564
|
if (!Kt)
|
|
@@ -5594,7 +5594,7 @@ var cq = { exports: {} };
|
|
|
5594
5594
|
return F[We] = rt[0], !0;
|
|
5595
5595
|
}, ke = (We, Ve, rt, Kt) => {
|
|
5596
5596
|
xe(Ve) && xe(rt) && xe(Kt) && (F[We] = F[Ve] + " " + F[rt] + " " + F[Kt], delete F[Ve], delete F[rt], delete F[Kt]);
|
|
5597
|
-
}, Se = (We) => (
|
|
5597
|
+
}, Se = (We) => (ee = !0, u[We]), Pe = (We, Ve) => (ee && (We = We.replace(/\uFEFF[0-9]/g, (rt) => u[rt])), Ve || (We = We.replace(/\\([\'\";:])/g, "$1")), We), at = (We) => String.fromCharCode(parseInt(We.slice(1), 16)), wt = (We) => We.replace(/\\[0-9a-f]+/gi, at), Ft = (We, Ve, rt, Kt, un, Jn) => {
|
|
5598
5598
|
if (un = un || Jn, un)
|
|
5599
5599
|
return un = Pe(un), "'" + un.replace(/\'/g, "\\'") + "'";
|
|
5600
5600
|
if (Ve = Pe(Ve || rt || Kt || ""), !e.allow_script_urls) {
|
|
@@ -5615,7 +5615,7 @@ var cq = { exports: {} };
|
|
|
5615
5615
|
continue;
|
|
5616
5616
|
Ve === "font-weight" && rt === "700" ? rt = "bold" : (Ve === "color" || Ve === "background-color") && (rt = rt.toLowerCase()), he(e.force_hex_color) && e.force_hex_color !== "off" && jy(rt).each((Kt) => {
|
|
5617
5617
|
(e.force_hex_color === "always" || Kt.alpha === 1) && (rt = rp(ei(Kt)));
|
|
5618
|
-
}), rt = rt.replace(o, Ft), F[Ve] =
|
|
5618
|
+
}), rt = rt.replace(o, Ft), F[Ve] = ee ? Pe(rt, !0) : rt;
|
|
5619
5619
|
}
|
|
5620
5620
|
}
|
|
5621
5621
|
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"];
|
|
@@ -5623,13 +5623,13 @@ var cq = { exports: {} };
|
|
|
5623
5623
|
return F;
|
|
5624
5624
|
},
|
|
5625
5625
|
serialize: (P, F) => {
|
|
5626
|
-
let
|
|
5626
|
+
let ee = "";
|
|
5627
5627
|
const se = (re, xe) => {
|
|
5628
5628
|
const ke = xe[re];
|
|
5629
5629
|
if (ke)
|
|
5630
5630
|
for (let Se = 0, Pe = ke.length; Se < Pe; Se++) {
|
|
5631
5631
|
const at = ke[Se], wt = P[at];
|
|
5632
|
-
wt && (
|
|
5632
|
+
wt && (ee += (ee.length > 0 ? " " : "") + at + ": " + wt + ";");
|
|
5633
5633
|
}
|
|
5634
5634
|
}, Y = (re, xe) => {
|
|
5635
5635
|
if (!b || !xe)
|
|
@@ -5638,8 +5638,8 @@ var cq = { exports: {} };
|
|
|
5638
5638
|
return ke && ke[re] ? !1 : (ke = b[xe], !(ke && ke[re]));
|
|
5639
5639
|
};
|
|
5640
5640
|
return F && f ? (se("*", f), se(F, f)) : vt(P, (re, xe) => {
|
|
5641
|
-
re && Y(xe, F) && (
|
|
5642
|
-
}),
|
|
5641
|
+
re && Y(xe, F) && (ee += (ee.length > 0 ? " " : "") + xe + ": " + re + ";");
|
|
5642
|
+
}), ee;
|
|
5643
5643
|
}
|
|
5644
5644
|
};
|
|
5645
5645
|
return B;
|
|
@@ -5706,12 +5706,12 @@ var cq = { exports: {} };
|
|
|
5706
5706
|
const B = o.split(" ");
|
|
5707
5707
|
let P = B.length;
|
|
5708
5708
|
for (; P--; ) {
|
|
5709
|
-
let F = B[P],
|
|
5709
|
+
let F = B[P], ee = y, se = !1, Y = !1;
|
|
5710
5710
|
if (F === "DOMContentLoaded" && (F = "ready"), u.domLoaded && F === "ready" && n.readyState === "complete") {
|
|
5711
5711
|
r.call(l, H0({ type: F }));
|
|
5712
5712
|
continue;
|
|
5713
5713
|
}
|
|
5714
|
-
!u.hasFocusIn && (F === "focusin" || F === "focusout") && (se = !0, Y = F === "focusin" ? "focus" : "blur",
|
|
5714
|
+
!u.hasFocusIn && (F === "focusin" || F === "focusout") && (se = !0, Y = F === "focusin" ? "focus" : "blur", ee = (re) => {
|
|
5715
5715
|
const xe = H0(re || b.event);
|
|
5716
5716
|
xe.type = xe.type === "focus" ? "focusin" : "focusout", u.executeHandlers(xe, k);
|
|
5717
5717
|
}), f = u.events[k][F], f ? F === "ready" && u.domLoaded ? r(H0({ type: F })) : f.push({
|
|
@@ -5720,7 +5720,7 @@ var cq = { exports: {} };
|
|
|
5720
5720
|
}) : (u.events[k][F] = f = [{
|
|
5721
5721
|
func: r,
|
|
5722
5722
|
scope: l
|
|
5723
|
-
}], f.fakeName = Y, f.capture = se, f.nativeHandler =
|
|
5723
|
+
}], f.fakeName = Y, f.capture = se, f.nativeHandler = ee, F === "ready" ? qy(n, ee, u) : Bb(n, Y || F, ee, se));
|
|
5724
5724
|
}
|
|
5725
5725
|
return n = f = null, r;
|
|
5726
5726
|
}
|
|
@@ -5740,8 +5740,8 @@ var cq = { exports: {} };
|
|
|
5740
5740
|
let B = k.length;
|
|
5741
5741
|
for (; B--; )
|
|
5742
5742
|
if (k[B].func === r) {
|
|
5743
|
-
const P = k.nativeHandler, F = k.fakeName,
|
|
5744
|
-
se.nativeHandler = P, se.fakeName = F, se.capture =
|
|
5743
|
+
const P = k.nativeHandler, F = k.fakeName, ee = k.capture, se = k.slice(0, B).concat(k.slice(B + 1));
|
|
5744
|
+
se.nativeHandler = P, se.fakeName = F, se.capture = ee, u[y] = se;
|
|
5745
5745
|
}
|
|
5746
5746
|
}
|
|
5747
5747
|
(!r || k.length === 0) && (delete u[y], cp(n, k.fakeName || y, k.nativeHandler, k.capture));
|
|
@@ -5859,7 +5859,7 @@ var cq = { exports: {} };
|
|
|
5859
5859
|
url_converter: n.url_converter,
|
|
5860
5860
|
url_converter_scope: n.url_converter_scope,
|
|
5861
5861
|
force_hex_color: n.force_hex_color
|
|
5862
|
-
}, n.schema), F = n.ownEvents ? new ti() : ti.Event,
|
|
5862
|
+
}, n.schema), F = n.ownEvents ? new ti() : ti.Event, ee = B.getBlockElements(), se = (Ne) => he(Ne) ? pn(ee, Ne) : qt(Ne) && (pn(ee, Ne.nodeName) || _o(B, Ne)), Y = (Ne) => Ne && e && he(Ne) ? e.getElementById(Ne) : Ne, re = (Ne) => {
|
|
5863
5863
|
const He = Y(Ne);
|
|
5864
5864
|
return Ze(He) ? ie.fromDom(He) : null;
|
|
5865
5865
|
}, xe = (Ne, He, St = "") => {
|
|
@@ -6418,7 +6418,7 @@ var cq = { exports: {} };
|
|
|
6418
6418
|
prefix: Y.prefix,
|
|
6419
6419
|
resource: re,
|
|
6420
6420
|
suffix: Y.suffix
|
|
6421
|
-
} : re,
|
|
6421
|
+
} : re, ee = (Y, re) => {
|
|
6422
6422
|
if (n[Y])
|
|
6423
6423
|
return Promise.resolve();
|
|
6424
6424
|
let xe = he(re) ? re : re.prefix + re.resource + re.suffix;
|
|
@@ -6441,7 +6441,7 @@ var cq = { exports: {} };
|
|
|
6441
6441
|
add: B,
|
|
6442
6442
|
remove: P,
|
|
6443
6443
|
createUrl: F,
|
|
6444
|
-
load:
|
|
6444
|
+
load: ee,
|
|
6445
6445
|
waitFor: se
|
|
6446
6446
|
};
|
|
6447
6447
|
};
|
|
@@ -6527,39 +6527,39 @@ var cq = { exports: {} };
|
|
|
6527
6527
|
listeners: [],
|
|
6528
6528
|
previous: Uf()
|
|
6529
6529
|
}), l = (P, F) => {
|
|
6530
|
-
u(P, (
|
|
6530
|
+
u(P, (ee) => (F(ee), ee));
|
|
6531
6531
|
}, u = (P, F) => {
|
|
6532
|
-
const
|
|
6533
|
-
|
|
6534
|
-
}, f = (P, F,
|
|
6532
|
+
const ee = o.get(), se = Xo(ee, P).getOrThunk(r), Y = F(se);
|
|
6533
|
+
ee[P] = Y, o.set(ee);
|
|
6534
|
+
}, f = (P, F, ee) => {
|
|
6535
6535
|
l(P, (se) => {
|
|
6536
6536
|
Te(se.listeners, (Y) => Y(!0, P, {
|
|
6537
6537
|
uid: F,
|
|
6538
|
-
nodes: Ye(
|
|
6538
|
+
nodes: Ye(ee, (re) => re.dom)
|
|
6539
6539
|
}));
|
|
6540
6540
|
});
|
|
6541
6541
|
}, b = (P) => {
|
|
6542
6542
|
l(P, (F) => {
|
|
6543
|
-
Te(F.listeners, (
|
|
6543
|
+
Te(F.listeners, (ee) => ee(!1, P));
|
|
6544
6544
|
});
|
|
6545
6545
|
}, y = (P, F) => {
|
|
6546
|
-
Te(fC(e, P), (
|
|
6547
|
-
F ? xs(
|
|
6546
|
+
Te(fC(e, P), (ee) => {
|
|
6547
|
+
F ? xs(ee, gp(), "true") : lr(ee, gp());
|
|
6548
6548
|
});
|
|
6549
6549
|
}, k = Fb(() => {
|
|
6550
6550
|
const P = Ko(n.getNames());
|
|
6551
6551
|
Te(P, (F) => {
|
|
6552
|
-
u(F, (
|
|
6553
|
-
const se =
|
|
6552
|
+
u(F, (ee) => {
|
|
6553
|
+
const se = ee.previous.get();
|
|
6554
6554
|
return kr(e, z.some(F)).fold(() => {
|
|
6555
6555
|
se.each((Y) => {
|
|
6556
|
-
b(F),
|
|
6556
|
+
b(F), ee.previous.clear(), y(Y, !1);
|
|
6557
6557
|
});
|
|
6558
6558
|
}, ({ uid: Y, name: re, elements: xe }) => {
|
|
6559
|
-
ls(se, Y) || (se.each((ke) => y(ke, !1)), f(re, Y, xe),
|
|
6559
|
+
ls(se, Y) || (se.each((ke) => y(ke, !1)), f(re, Y, xe), ee.previous.set(Y), y(Y, !0));
|
|
6560
6560
|
}), {
|
|
6561
|
-
previous:
|
|
6562
|
-
listeners:
|
|
6561
|
+
previous: ee.previous,
|
|
6562
|
+
listeners: ee.listeners
|
|
6563
6563
|
};
|
|
6564
6564
|
});
|
|
6565
6565
|
});
|
|
@@ -6569,9 +6569,9 @@ var cq = { exports: {} };
|
|
|
6569
6569
|
}), e.on("NodeChange", () => {
|
|
6570
6570
|
k.throttle();
|
|
6571
6571
|
}), { addListener: (P, F) => {
|
|
6572
|
-
u(P, (
|
|
6573
|
-
previous:
|
|
6574
|
-
listeners:
|
|
6572
|
+
u(P, (ee) => ({
|
|
6573
|
+
previous: ee.previous,
|
|
6574
|
+
listeners: ee.listeners.concat([F])
|
|
6575
6575
|
}));
|
|
6576
6576
|
} };
|
|
6577
6577
|
}, Ti = (e, n) => {
|
|
@@ -8286,7 +8286,7 @@ Required: ` + n.join(", "));
|
|
|
8286
8286
|
}, Dl = (e, n, o) => fu(e, n, o, (r) => hv(r) || Hp(r)), Lu = (e, n, o) => fu(e, n, o, og), $c = (e, n, o, r, l, u) => {
|
|
8287
8287
|
let f;
|
|
8288
8288
|
const b = e.getParent(o, e.isBlock) || n, y = (B, P, F) => {
|
|
8289
|
-
const
|
|
8289
|
+
const ee = Wf(e), se = l ? ee.backwards : ee.forwards;
|
|
8290
8290
|
return z.from(se(B, P, (Y, re) => Wp(Y.parentNode) ? -1 : (f = Y, F(l, Y, re)), b));
|
|
8291
8291
|
};
|
|
8292
8292
|
return y(o, r, Dl).bind((B) => u ? y(B.container, B.offset + (l ? -1 : 0), Lu) : z.some(B)).orThunk(() => f ? z.some({
|
|
@@ -8379,9 +8379,9 @@ Required: ` + n.join(", "));
|
|
|
8379
8379
|
return P(u, F, !0);
|
|
8380
8380
|
if (e.isChildOf(b, u))
|
|
8381
8381
|
return P(b, F);
|
|
8382
|
-
const
|
|
8383
|
-
P(u,
|
|
8384
|
-
const Y = k(
|
|
8382
|
+
const ee = B(u, F) || u, se = B(b, F) || b;
|
|
8383
|
+
P(u, ee, !0);
|
|
8384
|
+
const Y = k(ee === u ? ee : ee.nextSibling, "nextSibling", se === b ? se.nextSibling : se);
|
|
8385
8385
|
Y.length && o(y(Y)), P(b, se);
|
|
8386
8386
|
}, ew = [
|
|
8387
8387
|
'pre[class*=language-][contenteditable="false"]',
|
|
@@ -8435,12 +8435,12 @@ Required: ` + n.join(", "));
|
|
|
8435
8435
|
break;
|
|
8436
8436
|
}
|
|
8437
8437
|
}
|
|
8438
|
-
},
|
|
8438
|
+
}, ee = (se) => {
|
|
8439
8439
|
const Y = Ye(se, ie.fromDom);
|
|
8440
8440
|
P(Y);
|
|
8441
8441
|
};
|
|
8442
8442
|
return S1(e.dom, n, (se) => {
|
|
8443
|
-
k(),
|
|
8443
|
+
k(), ee(se);
|
|
8444
8444
|
}), f;
|
|
8445
8445
|
}, nw = (e, n, o, r) => {
|
|
8446
8446
|
e.undoManager.transact(() => {
|
|
@@ -8595,7 +8595,7 @@ Required: ` + n.join(", "));
|
|
|
8595
8595
|
]
|
|
8596
8596
|
}, xO = (e) => e.type === "longpress" || e.type.indexOf("touch") === 0, CO = (e, n) => {
|
|
8597
8597
|
const o = n.dom, r = n.getDoc(), l = document, u = n.getBody();
|
|
8598
|
-
let f, b, y, k, B, P, F,
|
|
8598
|
+
let f, b, y, k, B, P, F, ee, se, Y, re, xe, ke, Se, Pe, at, wt;
|
|
8599
8599
|
const Ft = (Ct) => Ze(Ct) && (Sl(Ct) || o.is(Ct, "figure.image")), We = (Ct) => pr(Ct) || o.hasClass(Ct, "mce-preview-object"), Ve = (Ct, Mn) => {
|
|
8600
8600
|
if (xO(Ct)) {
|
|
8601
8601
|
const Oo = Ct.touches[0];
|
|
@@ -8626,7 +8626,7 @@ Required: ` + n.join(", "));
|
|
|
8626
8626
|
left: hs,
|
|
8627
8627
|
top: Ha,
|
|
8628
8628
|
display: "block"
|
|
8629
|
-
}), y.innerHTML = Se + " × " + Pe, k[2] < 0 && b.clientWidth <= Se && o.setStyle(b, "left",
|
|
8629
|
+
}), y.innerHTML = Se + " × " + Pe, k[2] < 0 && b.clientWidth <= Se && o.setStyle(b, "left", ee + (Y - Se)), k[3] < 0 && b.clientHeight <= Pe && o.setStyle(b, "top", se + (re - Pe)), Mn = u.scrollWidth - at, Oo = u.scrollHeight - wt, Mn + Oo !== 0 && o.setStyles(y, {
|
|
8630
8630
|
left: hs - Mn,
|
|
8631
8631
|
top: Ha - Oo
|
|
8632
8632
|
}), ke || (lw(n, f, Y, re, "corner-" + k.name), ke = !0);
|
|
@@ -9677,36 +9677,36 @@ Required: ` + n.join(", "));
|
|
|
9677
9677
|
B(y);
|
|
9678
9678
|
else {
|
|
9679
9679
|
const P = y.name, F = P in n.getVoidElements();
|
|
9680
|
-
let
|
|
9681
|
-
if (u &&
|
|
9680
|
+
let ee = y.attributes;
|
|
9681
|
+
if (u && ee && ee.length > 1) {
|
|
9682
9682
|
const se = [];
|
|
9683
9683
|
se.map = {};
|
|
9684
9684
|
const Y = n.getElementRule(y.name);
|
|
9685
9685
|
if (Y) {
|
|
9686
9686
|
for (let re = 0, xe = Y.attributesOrder.length; re < xe; re++) {
|
|
9687
9687
|
const ke = Y.attributesOrder[re];
|
|
9688
|
-
if (ke in
|
|
9689
|
-
const Se =
|
|
9688
|
+
if (ke in ee.map) {
|
|
9689
|
+
const Se = ee.map[ke];
|
|
9690
9690
|
se.map[ke] = Se, se.push({
|
|
9691
9691
|
name: ke,
|
|
9692
9692
|
value: Se
|
|
9693
9693
|
});
|
|
9694
9694
|
}
|
|
9695
9695
|
}
|
|
9696
|
-
for (let re = 0, xe =
|
|
9697
|
-
const ke =
|
|
9696
|
+
for (let re = 0, xe = ee.length; re < xe; re++) {
|
|
9697
|
+
const ke = ee[re].name;
|
|
9698
9698
|
if (!(ke in se.map)) {
|
|
9699
|
-
const Se =
|
|
9699
|
+
const Se = ee.map[ke];
|
|
9700
9700
|
se.map[ke] = Se, se.push({
|
|
9701
9701
|
name: ke,
|
|
9702
9702
|
value: Se
|
|
9703
9703
|
});
|
|
9704
9704
|
}
|
|
9705
9705
|
}
|
|
9706
|
-
|
|
9706
|
+
ee = se;
|
|
9707
9707
|
}
|
|
9708
9708
|
}
|
|
9709
|
-
if (o.start(P,
|
|
9709
|
+
if (o.start(P, ee, F), cd(P))
|
|
9710
9710
|
he(y.value) && o.text(y.value, !0), o.end(P);
|
|
9711
9711
|
else if (!F) {
|
|
9712
9712
|
let se = y.firstChild;
|
|
@@ -10211,7 +10211,7 @@ Required: ` + n.join(", "));
|
|
|
10211
10211
|
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 = (B) => B !== o && !b[B.name];
|
|
10212
10212
|
for (let B = 0; B < e.length; B++) {
|
|
10213
10213
|
const P = e[B];
|
|
10214
|
-
let F,
|
|
10214
|
+
let F, ee, se;
|
|
10215
10215
|
if (!P.parent || y.has(P))
|
|
10216
10216
|
continue;
|
|
10217
10217
|
if (l[P.name] && P.parent.name === "li") {
|
|
@@ -10230,8 +10230,8 @@ Required: ` + n.join(", "));
|
|
|
10230
10230
|
if (oS(n, P, F))
|
|
10231
10231
|
tS(P, n);
|
|
10232
10232
|
else {
|
|
10233
|
-
Y.reverse(),
|
|
10234
|
-
let re =
|
|
10233
|
+
Y.reverse(), ee = Y[0].clone(), r(ee);
|
|
10234
|
+
let re = ee;
|
|
10235
10235
|
for (let xe = 0; xe < Y.length - 1; xe++) {
|
|
10236
10236
|
n.isValidChild(re.name, Y[xe].name) && xe > 0 ? (se = Y[xe].clone(), r(se), re.append(se)) : se = re;
|
|
10237
10237
|
for (let ke = Y[xe].firstChild; ke && ke !== Y[xe + 1]; ) {
|
|
@@ -10240,7 +10240,7 @@ Required: ` + n.join(", "));
|
|
|
10240
10240
|
}
|
|
10241
10241
|
re = se;
|
|
10242
10242
|
}
|
|
10243
|
-
Vv(n, u, f,
|
|
10243
|
+
Vv(n, u, f, ee) ? F.insert(P, Y[0], !0) : (F.insert(ee, Y[0], !0), F.insert(P, ee)), F = Y[0], (Vv(n, u, f, F) || tE(F, "br")) && F.empty().remove();
|
|
10244
10244
|
}
|
|
10245
10245
|
else if (P.parent) {
|
|
10246
10246
|
if (P.name === "li") {
|
|
@@ -10321,7 +10321,7 @@ Required: ` + n.join(", "));
|
|
|
10321
10321
|
}), zR(e, o);
|
|
10322
10322
|
}, EI = (e, n, o, r) => (r.insertAfter(n.reverse(), e), cE(n[0], o)), iE = (e, n, o, r) => {
|
|
10323
10323
|
const l = rE(n, e, r), u = ig(n, o.startContainer), f = Bw(HR(l.firstChild)), b = 1, y = 2, k = n.getRoot(), B = (P) => {
|
|
10324
|
-
const F = Le.fromRangeStart(o),
|
|
10324
|
+
const F = Le.fromRangeStart(o), ee = hd(n.getRoot()), se = P === b ? ee.prev(F) : ee.next(F), Y = se == null ? void 0 : se.getNode();
|
|
10325
10325
|
return Y ? ig(n, Y) !== u : !0;
|
|
10326
10326
|
};
|
|
10327
10327
|
return u ? B(b) ? Vj(u, f, k) : B(y) ? EI(u, f, k, n) : TI(u, f, k, o) : null;
|
|
@@ -10387,17 +10387,17 @@ Required: ` + n.join(", "));
|
|
|
10387
10387
|
const B = n.previousSibling;
|
|
10388
10388
|
if (ut(B)) {
|
|
10389
10389
|
k.setStart(B, (r = (o = B.nodeValue) === null || o === void 0 ? void 0 : o.length) !== null && r !== void 0 ? r : 0);
|
|
10390
|
-
const
|
|
10391
|
-
ut(
|
|
10390
|
+
const ee = n.nextSibling;
|
|
10391
|
+
ut(ee) && (B.appendData(ee.data), (l = ee.parentNode) === null || l === void 0 || l.removeChild(ee));
|
|
10392
10392
|
} else
|
|
10393
10393
|
k.setStartBefore(n), k.setEndBefore(n);
|
|
10394
|
-
const P = (
|
|
10395
|
-
let se = Le.fromRangeStart(
|
|
10394
|
+
const P = (ee) => {
|
|
10395
|
+
let se = Le.fromRangeStart(ee);
|
|
10396
10396
|
return se = hd(e.getBody()).next(se), se == null ? void 0 : se.toRange();
|
|
10397
10397
|
}, F = f.getParent(n, f.isBlock);
|
|
10398
10398
|
if (f.remove(n), F && f.isEmpty(F)) {
|
|
10399
|
-
const
|
|
10400
|
-
Gc(ie.fromDom(F)), k.setStart(F, 0), k.setEnd(F, 0), !
|
|
10399
|
+
const ee = Wv(F);
|
|
10400
|
+
Gc(ie.fromDom(F)), k.setStart(F, 0), k.setEnd(F, 0), !ee && !OI(F) && (u = P(k)) ? (k = u, f.remove(F)) : f.add(F, f.create("br", ee ? {} : { "data-mce-bogus": "1" }));
|
|
10401
10401
|
}
|
|
10402
10402
|
b.setRng(k);
|
|
10403
10403
|
}, Pw = (e) => {
|
|
@@ -10418,8 +10418,8 @@ Required: ` + n.join(", "));
|
|
|
10418
10418
|
const u = e.selection, f = e.dom, b = e.parser, y = o.merge, k = Jp({ validate: !0 }, e.schema), B = '<span id="mce_marker" data-mce-type="bookmark"></span>';
|
|
10419
10419
|
o.preserve_zwsp || (n = V(n)), n.indexOf("{$caret}") === -1 && (n += "{$caret}"), n = n.replace(/\{\$caret\}/, B);
|
|
10420
10420
|
let P = u.getRng();
|
|
10421
|
-
const F = P.startContainer,
|
|
10422
|
-
F ===
|
|
10421
|
+
const F = P.startContainer, ee = e.getBody();
|
|
10422
|
+
F === ee && u.isCollapsed() && f.isBlock(ee.firstChild) && ZR(e, ee.firstChild) && f.isEmpty(ee.firstChild) && (P = f.createRng(), P.setStart(ee.firstChild, 0), P.setEnd(ee.firstChild, 0), u.setRng(P)), u.isCollapsed() || Pw(e);
|
|
10423
10423
|
const se = u.getNode(), Y = {
|
|
10424
10424
|
context: se.nodeName.toLowerCase(),
|
|
10425
10425
|
data: o.data,
|
|
@@ -10668,29 +10668,29 @@ Required: ` + n.join(", "));
|
|
|
10668
10668
|
let P = k;
|
|
10669
10669
|
ut(k) && (B !== k.data.length && (f = !0), P = P.parentNode);
|
|
10670
10670
|
const F = [];
|
|
10671
|
-
let
|
|
10671
|
+
let ee;
|
|
10672
10672
|
for (; P; ) {
|
|
10673
10673
|
if (ug(e, P, n, o, r)) {
|
|
10674
|
-
|
|
10674
|
+
ee = P;
|
|
10675
10675
|
break;
|
|
10676
10676
|
}
|
|
10677
10677
|
P.nextSibling && (f = !0), F.push(P), P = P.parentNode;
|
|
10678
10678
|
}
|
|
10679
|
-
if (
|
|
10679
|
+
if (ee)
|
|
10680
10680
|
if (f) {
|
|
10681
10681
|
const se = u.getBookmark();
|
|
10682
10682
|
y.collapse(!0);
|
|
10683
10683
|
let Y = of(l, y, b, !0);
|
|
10684
10684
|
Y = L(Y), e.formatter.remove(n, o, Y, r), u.moveToBookmark(se);
|
|
10685
10685
|
} else {
|
|
10686
|
-
const se = ph(e.getBody(),
|
|
10687
|
-
uS(e, re, se ??
|
|
10688
|
-
const xe = II(e, re,
|
|
10686
|
+
const se = ph(e.getBody(), ee), Y = Ze(se) ? l.getParents(ee.parentNode, bt, se) : [], re = vE(!1).dom;
|
|
10687
|
+
uS(e, re, se ?? ee);
|
|
10688
|
+
const xe = II(e, re, ee, n, o, r), ke = dS([
|
|
10689
10689
|
...F,
|
|
10690
10690
|
...xe.toArray(),
|
|
10691
10691
|
...Y
|
|
10692
10692
|
], re);
|
|
10693
|
-
se && yE(e, se, Ze(se)), u.setCursorLocation(ke, 1), l.isEmpty(
|
|
10693
|
+
se && yE(e, se, Ze(se)), u.setCursorLocation(ke, 1), l.isEmpty(ee) && l.remove(ee);
|
|
10694
10694
|
}
|
|
10695
10695
|
}, CE = (e, n, o) => {
|
|
10696
10696
|
const r = e.selection, l = e.getBody();
|
|
@@ -10873,27 +10873,27 @@ Required: ` + n.join(", "));
|
|
|
10873
10873
|
if (n.remove !== "all") {
|
|
10874
10874
|
DE(u, y, n, o, l), Fw(n.attributes, (P, F) => {
|
|
10875
10875
|
const {
|
|
10876
|
-
name:
|
|
10876
|
+
name: ee,
|
|
10877
10877
|
value: se
|
|
10878
10878
|
} = Yv(F, P, o);
|
|
10879
|
-
if (n.remove_similar || ae(se) || !qt(l) || Kv(u.getAttrib(l,
|
|
10880
|
-
if (
|
|
10881
|
-
const Y = u.getAttrib(y,
|
|
10879
|
+
if (n.remove_similar || ae(se) || !qt(l) || Kv(u.getAttrib(l, ee), se)) {
|
|
10880
|
+
if (ee === "class") {
|
|
10881
|
+
const Y = u.getAttrib(y, ee);
|
|
10882
10882
|
if (Y) {
|
|
10883
10883
|
let re = "";
|
|
10884
10884
|
if (Te(Y.split(/\s+/), (xe) => {
|
|
10885
10885
|
/mce\-\w+/.test(xe) && (re += (re ? " " : "") + xe);
|
|
10886
10886
|
}), re) {
|
|
10887
|
-
u.setAttrib(y,
|
|
10887
|
+
u.setAttrib(y, ee, re);
|
|
10888
10888
|
return;
|
|
10889
10889
|
}
|
|
10890
10890
|
}
|
|
10891
10891
|
}
|
|
10892
|
-
if (c$.test(
|
|
10893
|
-
y.removeAttribute(
|
|
10892
|
+
if (c$.test(ee) && y.removeAttribute("data-mce-" + ee), ee === "style" && Br(["li"])(y) && u.getStyle(y, "list-style-type") === "none") {
|
|
10893
|
+
y.removeAttribute(ee), u.setStyle(y, "list-style-type", "none");
|
|
10894
10894
|
return;
|
|
10895
10895
|
}
|
|
10896
|
-
|
|
10896
|
+
ee === "class" && y.removeAttribute("className"), y.removeAttribute(ee);
|
|
10897
10897
|
}
|
|
10898
10898
|
}), Fw(n.classes, (P) => {
|
|
10899
10899
|
P = bd(P, o), (!qt(l) || u.hasClass(l, P)) && u.removeClass(y, P);
|
|
@@ -10919,8 +10919,8 @@ Required: ` + n.join(", "));
|
|
|
10919
10919
|
let B, P;
|
|
10920
10920
|
const F = e.dom;
|
|
10921
10921
|
if (o) {
|
|
10922
|
-
const
|
|
10923
|
-
for (let se = r.parentNode; se && se !==
|
|
10922
|
+
const ee = o.parentNode;
|
|
10923
|
+
for (let se = r.parentNode; se && se !== ee; se = se.parentNode) {
|
|
10924
10924
|
let Y = F.clone(se, !1);
|
|
10925
10925
|
for (let re = 0; re < n.length && (Y = h$(e, n[re], b, Y), Y !== null); re++)
|
|
10926
10926
|
;
|
|
@@ -10950,7 +10950,7 @@ Required: ` + n.join(", "));
|
|
|
10950
10950
|
styles: { textDecoration: at }
|
|
10951
10951
|
}, void 0, Y);
|
|
10952
10952
|
});
|
|
10953
|
-
},
|
|
10953
|
+
}, ee = (Y) => {
|
|
10954
10954
|
const re = b.get(Y ? "_start" : "_end");
|
|
10955
10955
|
if (re) {
|
|
10956
10956
|
let xe = re[Y ? "firstChild" : "lastChild"];
|
|
@@ -10966,7 +10966,7 @@ Required: ` + n.join(", "));
|
|
|
10966
10966
|
k(u$(b, Pe, !0, "span", {
|
|
10967
10967
|
id: "_start",
|
|
10968
10968
|
"data-mce-type": "bookmark"
|
|
10969
|
-
})),
|
|
10969
|
+
})), ee(!0);
|
|
10970
10970
|
return;
|
|
10971
10971
|
}
|
|
10972
10972
|
if (bS(b, xe, re)) {
|
|
@@ -10974,7 +10974,7 @@ Required: ` + n.join(", "));
|
|
|
10974
10974
|
k(u$(b, Pe, !1, "span", {
|
|
10975
10975
|
id: "_end",
|
|
10976
10976
|
"data-mce-type": "bookmark"
|
|
10977
|
-
})),
|
|
10977
|
+
})), ee(!1);
|
|
10978
10978
|
return;
|
|
10979
10979
|
}
|
|
10980
10980
|
re = AE(b, re, "span", {
|
|
@@ -10989,7 +10989,7 @@ Required: ` + n.join(", "));
|
|
|
10989
10989
|
Te(Pe, (at) => {
|
|
10990
10990
|
!Oi(at) && !Oi(at.parentNode) && k(at);
|
|
10991
10991
|
});
|
|
10992
|
-
}), k(re), k(xe), re =
|
|
10992
|
+
}), k(re), k(xe), re = ee(!0), xe = ee();
|
|
10993
10993
|
} else
|
|
10994
10994
|
re = xe = k(re);
|
|
10995
10995
|
ke.startContainer = re.parentNode ? re.parentNode : re, ke.startOffset = b.nodeIndex(re), ke.endContainer = xe.parentNode ? xe.parentNode : xe, ke.endOffset = b.nodeIndex(xe) + 1;
|
|
@@ -11130,9 +11130,9 @@ Required: ` + n.join(", "));
|
|
|
11130
11130
|
}
|
|
11131
11131
|
(Jr(u) || vd(u) && u.wrapper) && (!u.exact && Kt === 1 && (We = rt(We)), qI(e, l, o, We), KI(e, u, n, o, We), jI(se, u, o, We), ZI(se, u, o, We), GI(se, u, o, We), hS(e, u, o, We));
|
|
11132
11132
|
});
|
|
11133
|
-
},
|
|
11134
|
-
if (b.getContentEditable(
|
|
11135
|
-
r =
|
|
11133
|
+
}, ee = g1(r) ? r : y.getNode();
|
|
11134
|
+
if (b.getContentEditable(ee) === "false" && !p1(e, ee)) {
|
|
11135
|
+
r = ee, B(l, r), Ol(e, n, r, o);
|
|
11136
11136
|
return;
|
|
11137
11137
|
}
|
|
11138
11138
|
if (u) {
|
|
@@ -11310,8 +11310,8 @@ Required: ` + n.join(", "));
|
|
|
11310
11310
|
f.body = 1;
|
|
11311
11311
|
const k = (B) => B.name in f || zm(o, B);
|
|
11312
11312
|
for (let B = 0, P = r.length; B < P; B++) {
|
|
11313
|
-
let F = r[B],
|
|
11314
|
-
if (
|
|
11313
|
+
let F = r[B], ee = F.parent;
|
|
11314
|
+
if (ee && k(ee) && F === ee.lastChild) {
|
|
11315
11315
|
let se = F.prev;
|
|
11316
11316
|
for (; se; ) {
|
|
11317
11317
|
const Y = se.name;
|
|
@@ -11321,15 +11321,15 @@ Required: ` + n.join(", "));
|
|
|
11321
11321
|
}
|
|
11322
11322
|
se = se.prev;
|
|
11323
11323
|
}
|
|
11324
|
-
if (F && (F.remove(), Vv(o, b, y,
|
|
11325
|
-
const Y = o.getElementRule(
|
|
11326
|
-
Y && (Y.removeEmpty ?
|
|
11324
|
+
if (F && (F.remove(), Vv(o, b, y, ee))) {
|
|
11325
|
+
const Y = o.getElementRule(ee.name);
|
|
11326
|
+
Y && (Y.removeEmpty ? ee.remove() : Y.paddEmpty && eS(e, u, k, ee));
|
|
11327
11327
|
}
|
|
11328
11328
|
} else {
|
|
11329
11329
|
let se = F;
|
|
11330
|
-
for (;
|
|
11331
|
-
|
|
11332
|
-
if (se ===
|
|
11330
|
+
for (; ee && ee.firstChild === se && ee.lastChild === se && (se = ee, !f[ee.name]); )
|
|
11331
|
+
ee = ee.parent;
|
|
11332
|
+
if (se === ee) {
|
|
11333
11333
|
const Y = new Bc("#text", 3);
|
|
11334
11334
|
Y.value = Po, F.replace(Y);
|
|
11335
11335
|
}
|
|
@@ -11452,8 +11452,8 @@ Required: ` + n.join(", "));
|
|
|
11452
11452
|
let B = "";
|
|
11453
11453
|
for (let P = 0; P < k.length; P++) {
|
|
11454
11454
|
const F = k[P];
|
|
11455
|
-
let
|
|
11456
|
-
se && se[F] && (
|
|
11455
|
+
let ee = !1, se = r["*"];
|
|
11456
|
+
se && se[F] && (ee = !0), se = r[b.name], !ee && se && se[F] && (ee = !0), ee && (B && (B += " "), B += F);
|
|
11457
11457
|
}
|
|
11458
11458
|
B.length || (B = null), b.attr("class", B);
|
|
11459
11459
|
}
|
|
@@ -12173,7 +12173,7 @@ Required: ` + n.join(", "));
|
|
|
12173
12173
|
return n.isSupported = !1, n;
|
|
12174
12174
|
const o = e.document, r = o.currentScript;
|
|
12175
12175
|
let { document: l } = e;
|
|
12176
|
-
const { DocumentFragment: u, HTMLTemplateElement: f, Node: b, Element: y, NodeFilter: k, NamedNodeMap: B = e.NamedNodeMap || e.MozNamedAttrMap, HTMLFormElement: P, DOMParser: F, trustedTypes:
|
|
12176
|
+
const { DocumentFragment: u, HTMLTemplateElement: f, Node: b, Element: y, NodeFilter: k, NamedNodeMap: B = e.NamedNodeMap || e.MozNamedAttrMap, HTMLFormElement: P, DOMParser: F, trustedTypes: ee } = e, se = y.prototype, Y = CS(se, "cloneNode"), re = CS(se, "nextSibling"), xe = CS(se, "childNodes"), ke = CS(se, "parentNode");
|
|
12177
12177
|
if (typeof f == "function") {
|
|
12178
12178
|
const ao = l.createElement("template");
|
|
12179
12179
|
ao.content && ao.content.ownerDocument && (l = ao.content.ownerDocument);
|
|
@@ -12300,7 +12300,7 @@ Required: ` + n.join(", "));
|
|
|
12300
12300
|
throw Qv('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
12301
12301
|
Se = ze.TRUSTED_TYPES_POLICY, Pe = Se.createHTML("");
|
|
12302
12302
|
} else
|
|
12303
|
-
Se === void 0 && (Se = W$(
|
|
12303
|
+
Se === void 0 && (Se = W$(ee, r)), Se !== null && typeof Pe == "string" && (Pe = Se.createHTML(""));
|
|
12304
12304
|
la && la(ze), C0 = ze;
|
|
12305
12305
|
}
|
|
12306
12306
|
}, Eg = fs({}, [
|
|
@@ -12475,8 +12475,8 @@ Required: ` + n.join(", "));
|
|
|
12475
12475
|
fo(wm, ze);
|
|
12476
12476
|
continue;
|
|
12477
12477
|
}
|
|
12478
|
-
if ($s && (Vr === "id" || Vr === "name") && (fo(wm, ze), kn = tr + kn), Se && typeof
|
|
12479
|
-
switch (
|
|
12478
|
+
if ($s && (Vr === "id" || Vr === "name") && (fo(wm, ze), kn = tr + kn), Se && typeof ee == "object" && typeof ee.getAttributeType == "function" && !C4)
|
|
12479
|
+
switch (ee.getAttributeType(nO, Vr)) {
|
|
12480
12480
|
case "TrustedHTML": {
|
|
12481
12481
|
kn = Se.createHTML(kn);
|
|
12482
12482
|
break;
|
|
@@ -12737,8 +12737,8 @@ Required: ` + n.join(", "));
|
|
|
12737
12737
|
}
|
|
12738
12738
|
if (e.nodeType !== ac || P === "body")
|
|
12739
12739
|
return;
|
|
12740
|
-
const F = ie.fromDom(e),
|
|
12741
|
-
if (!
|
|
12740
|
+
const F = ie.fromDom(e), ee = Zr(F, ZE), se = Ga(F, "data-mce-bogus");
|
|
12741
|
+
if (!ee && he(se)) {
|
|
12742
12742
|
se === "all" ? Eo(F) : cl(F);
|
|
12743
12743
|
return;
|
|
12744
12744
|
}
|
|
@@ -12748,7 +12748,7 @@ Required: ` + n.join(", "));
|
|
|
12748
12748
|
return;
|
|
12749
12749
|
} else
|
|
12750
12750
|
Ze(l) && (l.allowedTags[P] = !0);
|
|
12751
|
-
if (k && Y && !
|
|
12751
|
+
if (k && Y && !ee) {
|
|
12752
12752
|
if (Te((b = Y.attributesForced) !== null && b !== void 0 ? b : [], (re) => {
|
|
12753
12753
|
xs(F, re.name, re.value === "{$uid}" ? `mce_${K$++}` : re.value);
|
|
12754
12754
|
}), Te((y = Y.attributesDefault) !== null && y !== void 0 ? y : [], (re) => {
|
|
@@ -12842,7 +12842,7 @@ Required: ` + n.join(", "));
|
|
|
12842
12842
|
const k = f[b], B = new Bc(k.nodeName.toLowerCase(), k.nodeType);
|
|
12843
12843
|
if (qt(k)) {
|
|
12844
12844
|
const P = k.attributes;
|
|
12845
|
-
for (let F = 0,
|
|
12845
|
+
for (let F = 0, ee = P.length; F < ee; F++) {
|
|
12846
12846
|
const se = P[F];
|
|
12847
12847
|
B.attr(se.name, se.value);
|
|
12848
12848
|
}
|
|
@@ -12869,7 +12869,7 @@ Required: ` + n.join(", "));
|
|
|
12869
12869
|
Se = Se.parent;
|
|
12870
12870
|
}
|
|
12871
12871
|
return !1;
|
|
12872
|
-
},
|
|
12872
|
+
}, ee = (ke) => {
|
|
12873
12873
|
let Se = ke;
|
|
12874
12874
|
for (; Ze(Se); ) {
|
|
12875
12875
|
if (Se.name in y)
|
|
@@ -12895,7 +12895,7 @@ Required: ` + n.join(", "));
|
|
|
12895
12895
|
const Pe = n.getElementRule(ke.name);
|
|
12896
12896
|
if (l && Pe) {
|
|
12897
12897
|
const at = Vv(n, u, f, ke);
|
|
12898
|
-
Pe.paddInEmptyBlock && at &&
|
|
12898
|
+
Pe.paddInEmptyBlock && at && ee(ke) ? eS(o, r, se, ke) : Pe.removeEmpty && at ? se(ke) ? ke.remove() : ke.unwrap() : Pe.paddEmpty && (at || BR(ke)) && eS(o, r, se, ke);
|
|
12899
12899
|
}
|
|
12900
12900
|
} else if (ke.type === 3 && !F(ke)) {
|
|
12901
12901
|
let Pe = (Se = ke.value) !== null && Se !== void 0 ? Se : "";
|
|
@@ -12916,7 +12916,7 @@ Required: ` + n.join(", "));
|
|
|
12916
12916
|
}, u = new DOMParser(), f = _L(l, n), b = (Se, Pe, at = "html") => {
|
|
12917
12917
|
const wt = at === "xhtml" ? "application/xhtml+xml" : "text/html", Ft = pn(n.getSpecialElements(), Pe.toLowerCase()), We = Ft ? `<${Pe}>${Se}</${Pe}>` : Se, Ve = at === "xhtml" ? `<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>${We}</body></html>` : `<body>${We}</body>`, rt = u.parseFromString(Ve, wt).body;
|
|
12918
12918
|
return f.sanitizeHtmlElement(rt, wt), Ft ? rt.firstChild : rt;
|
|
12919
|
-
}, y = o.addFilter, k = o.getFilters, B = o.removeFilter, P = r.addFilter, F = r.getFilters,
|
|
12919
|
+
}, y = o.addFilter, k = o.getFilters, B = o.removeFilter, P = r.addFilter, F = r.getFilters, ee = r.removeFilter, se = (Se, Pe) => {
|
|
12920
12920
|
oS(n, Se) && Pe.push(Se);
|
|
12921
12921
|
}, Y = (Se, Pe) => {
|
|
12922
12922
|
const at = he(Pe.attr(ZE)), wt = Pe.type === 1 && !pn(Se, Pe.name) && !zm(n, Pe) && !cd(Pe.name);
|
|
@@ -12939,7 +12939,7 @@ Required: ` + n.join(", "));
|
|
|
12939
12939
|
schema: n,
|
|
12940
12940
|
addAttributeFilter: P,
|
|
12941
12941
|
getAttributeFilters: F,
|
|
12942
|
-
removeAttributeFilter:
|
|
12942
|
+
removeAttributeFilter: ee,
|
|
12943
12943
|
addNodeFilter: y,
|
|
12944
12944
|
getNodeFilters: k,
|
|
12945
12945
|
removeNodeFilter: B,
|
|
@@ -13124,8 +13124,8 @@ Required: ` + n.join(", "));
|
|
|
13124
13124
|
if (F === -1)
|
|
13125
13125
|
return y;
|
|
13126
13126
|
{
|
|
13127
|
-
const
|
|
13128
|
-
return (
|
|
13127
|
+
const ee = RS(P, F - 1), se = RS(P, F + y.length);
|
|
13128
|
+
return (ee ? " " : "") + y + (se ? " " : "");
|
|
13129
13129
|
}
|
|
13130
13130
|
} else
|
|
13131
13131
|
return y;
|
|
@@ -13156,15 +13156,15 @@ Required: ` + n.join(", "));
|
|
|
13156
13156
|
start: B,
|
|
13157
13157
|
end: P,
|
|
13158
13158
|
diag: F
|
|
13159
|
-
}), f = (B, P, F,
|
|
13160
|
-
const Y = y(B, P, F,
|
|
13161
|
-
if (Y === null || Y.start === P && Y.diag === P -
|
|
13159
|
+
}), f = (B, P, F, ee, se) => {
|
|
13160
|
+
const Y = y(B, P, F, ee);
|
|
13161
|
+
if (Y === null || Y.start === P && Y.diag === P - ee || Y.end === B && Y.diag === B - F) {
|
|
13162
13162
|
let re = B, xe = F;
|
|
13163
|
-
for (; re < P || xe <
|
|
13164
|
-
re < P && xe <
|
|
13163
|
+
for (; re < P || xe < ee; )
|
|
13164
|
+
re < P && xe < ee && e[re] === n[xe] ? (se.push([
|
|
13165
13165
|
qw,
|
|
13166
13166
|
e[re]
|
|
13167
|
-
]), ++re, ++xe) : P - B >
|
|
13167
|
+
]), ++re, ++xe) : P - B > ee - F ? (se.push([
|
|
13168
13168
|
s5,
|
|
13169
13169
|
e[re]
|
|
13170
13170
|
]), ++re) : (se.push([
|
|
@@ -13178,15 +13178,15 @@ Required: ` + n.join(", "));
|
|
|
13178
13178
|
qw,
|
|
13179
13179
|
e[re]
|
|
13180
13180
|
]);
|
|
13181
|
-
f(Y.end, P, Y.end - Y.diag,
|
|
13181
|
+
f(Y.end, P, Y.end - Y.diag, ee, se);
|
|
13182
13182
|
}
|
|
13183
|
-
}, b = (B, P, F,
|
|
13183
|
+
}, b = (B, P, F, ee) => {
|
|
13184
13184
|
let se = B;
|
|
13185
|
-
for (; se - P <
|
|
13185
|
+
for (; se - P < ee && se < F && e[se] === n[se - P]; )
|
|
13186
13186
|
++se;
|
|
13187
13187
|
return u(B, se, P);
|
|
13188
|
-
}, y = (B, P, F,
|
|
13189
|
-
const se = P - B, Y =
|
|
13188
|
+
}, y = (B, P, F, ee) => {
|
|
13189
|
+
const se = P - B, Y = ee - F;
|
|
13190
13190
|
if (se === 0 || Y === 0)
|
|
13191
13191
|
return null;
|
|
13192
13192
|
const re = se - Y, xe = Y + se, ke = (xe % 2 === 0 ? xe : xe + 1) / 2;
|
|
@@ -13194,16 +13194,16 @@ Required: ` + n.join(", "));
|
|
|
13194
13194
|
let Se, Pe, at, wt, Ft;
|
|
13195
13195
|
for (Se = 0; Se <= ke; ++Se) {
|
|
13196
13196
|
for (Pe = -Se; Pe <= Se; Pe += 2) {
|
|
13197
|
-
for (at = Pe + ke, Pe === -Se || Pe !== Se && r[at - 1] < r[at + 1] ? r[at] = r[at + 1] : r[at] = r[at - 1] + 1, wt = r[at], Ft = wt - B + F - Pe; wt < P && Ft <
|
|
13197
|
+
for (at = Pe + ke, Pe === -Se || Pe !== Se && r[at - 1] < r[at + 1] ? r[at] = r[at + 1] : r[at] = r[at - 1] + 1, wt = r[at], Ft = wt - B + F - Pe; wt < P && Ft < ee && e[wt] === n[Ft]; )
|
|
13198
13198
|
r[at] = ++wt, ++Ft;
|
|
13199
13199
|
if (re % 2 !== 0 && re - Se <= Pe && Pe <= re + Se && l[at - re] <= r[at])
|
|
13200
|
-
return b(l[at - re], Pe + B - F, P,
|
|
13200
|
+
return b(l[at - re], Pe + B - F, P, ee);
|
|
13201
13201
|
}
|
|
13202
13202
|
for (Pe = re - Se; Pe <= re + Se; Pe += 2) {
|
|
13203
13203
|
for (at = Pe + ke - re, Pe === re - Se || Pe !== re + Se && l[at + 1] <= l[at - 1] ? l[at] = l[at + 1] - 1 : l[at] = l[at - 1], wt = l[at] - 1, Ft = wt - B + F - Pe; wt >= B && Ft >= F && e[wt] === n[Ft]; )
|
|
13204
13204
|
l[at] = wt--, Ft--;
|
|
13205
13205
|
if (re % 2 === 0 && -Se <= Pe && Pe <= Se && l[at] <= r[at + re])
|
|
13206
|
-
return b(l[at], Pe + B - F, P,
|
|
13206
|
+
return b(l[at], Pe + B - F, P, ee);
|
|
13207
13207
|
}
|
|
13208
13208
|
}
|
|
13209
13209
|
return null;
|
|
@@ -13398,7 +13398,7 @@ Required: ` + n.join(", "));
|
|
|
13398
13398
|
apply: (k, B, P) => l.apply(k, n(B)),
|
|
13399
13399
|
remove: (k, B, P, F) => l.remove(k, n(B)),
|
|
13400
13400
|
toggle: (k, B, P) => l.toggle(k, n(B)),
|
|
13401
|
-
formatChanged: (k, B, P, F,
|
|
13401
|
+
formatChanged: (k, B, P, F, ee) => l.formatChanged(B, P, F, ee)
|
|
13402
13402
|
},
|
|
13403
13403
|
editor: {
|
|
13404
13404
|
getContent: (k) => u.getContent(k),
|
|
@@ -13536,18 +13536,18 @@ Required: ` + n.join(", "));
|
|
|
13536
13536
|
o = {}, r = {}, n.on("NodeChange", (b) => {
|
|
13537
13537
|
const y = b.element, k = u(y), B = {};
|
|
13538
13538
|
vt(o, (P, F) => {
|
|
13539
|
-
l(F, k).each((
|
|
13539
|
+
l(F, k).each((ee) => {
|
|
13540
13540
|
r[F] || (Te(P, (se) => {
|
|
13541
13541
|
se(!0, {
|
|
13542
|
-
node:
|
|
13542
|
+
node: ee,
|
|
13543
13543
|
selector: F,
|
|
13544
13544
|
parents: k
|
|
13545
13545
|
});
|
|
13546
13546
|
}), r[F] = P), B[F] = P;
|
|
13547
13547
|
});
|
|
13548
13548
|
}), vt(r, (P, F) => {
|
|
13549
|
-
B[F] || (delete r[F], Te(P, (
|
|
13550
|
-
|
|
13549
|
+
B[F] || (delete r[F], Te(P, (ee) => {
|
|
13550
|
+
ee(!1, {
|
|
13551
13551
|
node: y,
|
|
13552
13552
|
selector: F,
|
|
13553
13553
|
parents: k
|
|
@@ -13571,7 +13571,7 @@ Required: ` + n.join(", "));
|
|
|
13571
13571
|
const { selectorChangedWithUnbind: f } = T6(e, r), b = (Et, on) => {
|
|
13572
13572
|
const Kn = e.createRng();
|
|
13573
13573
|
Ze(Et) && Ze(on) ? (Kn.setStart(Et, on), Kn.setEnd(Et, on), Pe(Kn), xe(!1)) : (Y2(e, Kn, r.getBody(), !0), Pe(Kn));
|
|
13574
|
-
}, y = (Et) => fF(r, Et), k = (Et, on) => vF(r, Et, on), B = (Et) => CT(r.getBody(), Se(), Et), P = (Et) => NO(r.getBody(), Se(), Et), F = (Et, on) => Ml.getBookmark(Et, on),
|
|
13574
|
+
}, y = (Et) => fF(r, Et), k = (Et, on) => vF(r, Et, on), B = (Et) => CT(r.getBody(), Se(), Et), P = (Et) => NO(r.getBody(), Se(), Et), F = (Et, on) => Ml.getBookmark(Et, on), ee = (Et) => Ml.moveToBookmark(Et), se = (Et, on) => (pN(e, Et, on).each(Pe), Et), Y = () => {
|
|
13575
13575
|
const Et = Se(), on = ke();
|
|
13576
13576
|
return !Et || Et.item ? !1 : Et.compareEndPoints ? Et.compareEndPoints("StartToEnd", Et) === 0 : !on || Et.collapsed;
|
|
13577
13577
|
}, re = () => {
|
|
@@ -13649,7 +13649,7 @@ Required: ` + n.join(", "));
|
|
|
13649
13649
|
getContent: y,
|
|
13650
13650
|
setContent: k,
|
|
13651
13651
|
getBookmark: F,
|
|
13652
|
-
moveToBookmark:
|
|
13652
|
+
moveToBookmark: ee,
|
|
13653
13653
|
select: se,
|
|
13654
13654
|
isCollapsed: Y,
|
|
13655
13655
|
isEditable: re,
|
|
@@ -13828,8 +13828,8 @@ Required: ` + n.join(", "));
|
|
|
13828
13828
|
const B = {
|
|
13829
13829
|
format: "html",
|
|
13830
13830
|
...k
|
|
13831
|
-
}, P = wF(n, y, B), F = CF(l, P, B),
|
|
13832
|
-
return B.format === "tree" ?
|
|
13831
|
+
}, P = wF(n, y, B), F = CF(l, P, B), ee = _F(f, F, B);
|
|
13832
|
+
return B.format === "tree" ? ee : O6(n, r, u, ee, B);
|
|
13833
13833
|
};
|
|
13834
13834
|
return {
|
|
13835
13835
|
schema: u,
|
|
@@ -13990,17 +13990,17 @@ Options:${f}${o.join(f)}` : "";
|
|
|
13990
13990
|
const n = [], o = () => {
|
|
13991
13991
|
const F = e.theme;
|
|
13992
13992
|
return F && F.getNotificationManagerImpl ? F.getNotificationManagerImpl() : H6();
|
|
13993
|
-
}, r = () => z.from(n[0]), l = (F,
|
|
13993
|
+
}, r = () => z.from(n[0]), l = (F, ee) => F.type === ee.type && F.text === ee.text && !F.progressBar && !F.timeout && !ee.progressBar && !ee.timeout, u = () => {
|
|
13994
13994
|
Te(n, (F) => {
|
|
13995
13995
|
F.reposition();
|
|
13996
13996
|
});
|
|
13997
13997
|
}, f = (F) => {
|
|
13998
13998
|
n.push(F);
|
|
13999
13999
|
}, b = (F) => {
|
|
14000
|
-
yr(n, (
|
|
14001
|
-
n.splice(
|
|
14000
|
+
yr(n, (ee) => ee === F).each((ee) => {
|
|
14001
|
+
n.splice(ee, 1);
|
|
14002
14002
|
});
|
|
14003
|
-
}, y = (F,
|
|
14003
|
+
}, y = (F, ee = !0) => e.removed || !F6(e) ? {} : (ee && e.dispatch("BeforeOpenNotification", { notification: F }), ps(n, (se) => l(o().getArgs(se), F)).getOrThunk(() => {
|
|
14004
14004
|
e.editorManager.setActive(e);
|
|
14005
14005
|
const se = o().open(F, () => {
|
|
14006
14006
|
b(se), u(), MO(e) && r().fold(() => e.focus(), (Y) => A_(ie.fromDom(Y.getEl())));
|
|
@@ -14013,17 +14013,17 @@ Options:${f}${o.join(f)}` : "";
|
|
|
14013
14013
|
}, B = st(n);
|
|
14014
14014
|
return ((F) => {
|
|
14015
14015
|
F.on("SkinLoaded", () => {
|
|
14016
|
-
const
|
|
14017
|
-
|
|
14018
|
-
text:
|
|
14016
|
+
const ee = m3(F);
|
|
14017
|
+
ee && y({
|
|
14018
|
+
text: ee,
|
|
14019
14019
|
type: "warning",
|
|
14020
14020
|
timeout: 0
|
|
14021
14021
|
}, !1), u();
|
|
14022
14022
|
}), F.on("show ResizeEditor ResizeWindow NodeChange", () => {
|
|
14023
14023
|
requestAnimationFrame(u);
|
|
14024
14024
|
}), F.on("remove", () => {
|
|
14025
|
-
Te(n.slice(), (
|
|
14026
|
-
o().close(
|
|
14025
|
+
Te(n.slice(), (ee) => {
|
|
14026
|
+
o().close(ee);
|
|
14027
14027
|
});
|
|
14028
14028
|
});
|
|
14029
14029
|
})(e), {
|
|
@@ -14064,7 +14064,7 @@ Options:${f}${o.join(f)}` : "";
|
|
|
14064
14064
|
}, B = (Y, re) => k(() => o().open(Y, re, b)), P = (Y) => k(() => o().openUrl(Y, b)), F = (Y, re, xe) => {
|
|
14065
14065
|
const ke = o();
|
|
14066
14066
|
ke.alert(Y, r(xe || ke, re));
|
|
14067
|
-
},
|
|
14067
|
+
}, ee = (Y, re, xe) => {
|
|
14068
14068
|
const ke = o();
|
|
14069
14069
|
ke.confirm(Y, r(xe || ke, re));
|
|
14070
14070
|
}, se = () => {
|
|
@@ -14080,7 +14080,7 @@ Options:${f}${o.join(f)}` : "";
|
|
|
14080
14080
|
open: B,
|
|
14081
14081
|
openUrl: P,
|
|
14082
14082
|
alert: F,
|
|
14083
|
-
confirm:
|
|
14083
|
+
confirm: ee,
|
|
14084
14084
|
close: se
|
|
14085
14085
|
};
|
|
14086
14086
|
}, HF = (e, n) => {
|
|
@@ -14148,23 +14148,23 @@ Options:${f}${o.join(f)}` : "";
|
|
|
14148
14148
|
} };
|
|
14149
14149
|
}, Z6 = () => {
|
|
14150
14150
|
let o = {};
|
|
14151
|
-
const r = (F,
|
|
14151
|
+
const r = (F, ee) => ({
|
|
14152
14152
|
status: F,
|
|
14153
|
-
resultUri:
|
|
14153
|
+
resultUri: ee
|
|
14154
14154
|
}), l = (F) => F in o;
|
|
14155
14155
|
return {
|
|
14156
14156
|
hasBlobUri: l,
|
|
14157
14157
|
getResultUri: (F) => {
|
|
14158
|
-
const
|
|
14159
|
-
return
|
|
14158
|
+
const ee = o[F];
|
|
14159
|
+
return ee ? ee.resultUri : null;
|
|
14160
14160
|
},
|
|
14161
14161
|
isPending: (F) => l(F) ? o[F].status === 1 : !1,
|
|
14162
14162
|
isUploaded: (F) => l(F) ? o[F].status === 2 : !1,
|
|
14163
14163
|
markPending: (F) => {
|
|
14164
14164
|
o[F] = r(1, null);
|
|
14165
14165
|
},
|
|
14166
|
-
markUploaded: (F,
|
|
14167
|
-
o[F] = r(2,
|
|
14166
|
+
markUploaded: (F, ee) => {
|
|
14167
|
+
o[F] = r(2, ee);
|
|
14168
14168
|
},
|
|
14169
14169
|
removeFailed: (F) => {
|
|
14170
14170
|
delete o[F];
|
|
@@ -14191,14 +14191,14 @@ Options:${f}${o.join(f)}` : "";
|
|
|
14191
14191
|
"image/webp": "webp",
|
|
14192
14192
|
"image/bmp": "bmp",
|
|
14193
14193
|
"image/tiff": "tiff"
|
|
14194
|
-
})[P.toLowerCase()] || "dat", o = (P, F,
|
|
14194
|
+
})[P.toLowerCase()] || "dat", o = (P, F, ee, se, Y) => {
|
|
14195
14195
|
if (he(P))
|
|
14196
14196
|
return r({
|
|
14197
14197
|
id: P,
|
|
14198
14198
|
name: se,
|
|
14199
14199
|
filename: Y,
|
|
14200
14200
|
blob: F,
|
|
14201
|
-
base64:
|
|
14201
|
+
base64: ee
|
|
14202
14202
|
});
|
|
14203
14203
|
if (Tt(P))
|
|
14204
14204
|
return r(P);
|
|
@@ -14206,11 +14206,11 @@ Options:${f}${o.join(f)}` : "";
|
|
|
14206
14206
|
}, r = (P) => {
|
|
14207
14207
|
if (!P.blob || !P.base64)
|
|
14208
14208
|
throw new Error("blob and base64 representations of the image are required for BlobInfo to be created");
|
|
14209
|
-
const F = P.id || VS("blobid"),
|
|
14209
|
+
const F = P.id || VS("blobid"), ee = P.name || F, se = P.blob;
|
|
14210
14210
|
return {
|
|
14211
14211
|
id: st(F),
|
|
14212
|
-
name: st(
|
|
14213
|
-
filename: st(P.filename ||
|
|
14212
|
+
name: st(ee),
|
|
14213
|
+
filename: st(P.filename || ee + "." + n(se.type)),
|
|
14214
14214
|
blob: st(se),
|
|
14215
14215
|
base64: st(P.base64),
|
|
14216
14216
|
blobUri: st(P.blobUri || URL.createObjectURL(se)),
|
|
@@ -14224,7 +14224,7 @@ Options:${f}${o.join(f)}` : "";
|
|
|
14224
14224
|
add: l,
|
|
14225
14225
|
get: f,
|
|
14226
14226
|
getByUri: (P) => u((F) => F.blobUri() === P),
|
|
14227
|
-
getByData: (P, F) => u((
|
|
14227
|
+
getByData: (P, F) => u((ee) => ee.base64() === P && ee.blob().type === F),
|
|
14228
14228
|
findFirst: u,
|
|
14229
14229
|
removeByUri: (P) => {
|
|
14230
14230
|
e = Ut(e, (F) => F.blobUri() === P ? (URL.revokeObjectURL(F.blobUri()), !1) : !0);
|
|
@@ -14296,8 +14296,8 @@ Options:${f}${o.join(f)}` : "";
|
|
|
14296
14296
|
return new Promise((xe) => {
|
|
14297
14297
|
o[re] = o[re] || [], o[re].push(xe);
|
|
14298
14298
|
});
|
|
14299
|
-
},
|
|
14300
|
-
return { upload: (Y, re) => !n.url && P(u) ? f() :
|
|
14299
|
+
}, ee = (Y, re) => (Y = ct.grep(Y, (xe) => !e.isUploaded(xe.blobUri())), Promise.all(ct.map(Y, (xe) => e.isPending(xe.blobUri()) ? F(xe) : B(xe, u, re))));
|
|
14300
|
+
return { upload: (Y, re) => !n.url && P(u) ? f() : ee(Y, re) };
|
|
14301
14301
|
}, e9 = (e) => () => e.notificationManager.open({
|
|
14302
14302
|
text: e.translate("Image uploading..."),
|
|
14303
14303
|
type: "info",
|
|
@@ -14358,7 +14358,7 @@ Options:${f}${o.join(f)}` : "";
|
|
|
14358
14358
|
});
|
|
14359
14359
|
}) : Ft && e.undoManager.dispatchChange(), We;
|
|
14360
14360
|
}));
|
|
14361
|
-
}))),
|
|
14361
|
+
}))), ee = () => DC(e) ? F() : Promise.resolve([]), se = (Se) => nr(u, (Pe) => Pe(Se)), Y = (Se) => {
|
|
14362
14362
|
u.push(Se);
|
|
14363
14363
|
}, re = () => (r || (r = KF(l, n)), r.findAll(e.getBody(), se).then(f((Se) => {
|
|
14364
14364
|
const Pe = Ut(Se, (at) => he(at) ? (FS(e, at), !1) : at.uriType !== "blob");
|
|
@@ -14375,7 +14375,7 @@ Options:${f}${o.join(f)}` : "";
|
|
|
14375
14375
|
return Ft || (Ft = Vo(e.editorManager.get(), (We, Ve) => We || Ve.editorUpload && Ve.editorUpload.blobCache.getByUri(at), void 0)), Ft ? 'src="data:' + Ft.blob().type + ";base64," + Ft.base64() + '"' : Pe;
|
|
14376
14376
|
});
|
|
14377
14377
|
return e.on("SetContent", () => {
|
|
14378
|
-
DC(e) ?
|
|
14378
|
+
DC(e) ? ee() : re();
|
|
14379
14379
|
}), e.on("RawSaveContent", (Se) => {
|
|
14380
14380
|
Se.content = ke(Se.content);
|
|
14381
14381
|
}), e.on("GetContent", (Se) => {
|
|
@@ -14394,7 +14394,7 @@ Options:${f}${o.join(f)}` : "";
|
|
|
14394
14394
|
blobCache: n,
|
|
14395
14395
|
addFilter: Y,
|
|
14396
14396
|
uploadImages: F,
|
|
14397
|
-
uploadImagesAuto:
|
|
14397
|
+
uploadImagesAuto: ee,
|
|
14398
14398
|
scanForImages: re,
|
|
14399
14399
|
destroy: xe
|
|
14400
14400
|
};
|
|
@@ -14807,9 +14807,9 @@ Options:${f}${o.join(f)}` : "";
|
|
|
14807
14807
|
return P && P.length ? k && Ke(P, k) ? k : P[0] : !1;
|
|
14808
14808
|
}, f = (y, k, B) => {
|
|
14809
14809
|
let P;
|
|
14810
|
-
const F = k[0],
|
|
14810
|
+
const F = k[0], ee = ry(F) ? F.name : void 0, se = u(y, ee);
|
|
14811
14811
|
if (se)
|
|
14812
|
-
|
|
14812
|
+
ee === se ? (P = F, k = k.slice(1)) : P = se;
|
|
14813
14813
|
else if (F)
|
|
14814
14814
|
P = F, k = k.slice(1);
|
|
14815
14815
|
else if (!B)
|
|
@@ -14861,7 +14861,7 @@ Options:${f}${o.join(f)}` : "";
|
|
|
14861
14861
|
let o = "", r = BC(e);
|
|
14862
14862
|
if (r === "")
|
|
14863
14863
|
return "";
|
|
14864
|
-
const l = (F) => he(F) ? F.replace(/%(\w+)/g, "") : "", u = (F,
|
|
14864
|
+
const l = (F) => he(F) ? F.replace(/%(\w+)/g, "") : "", u = (F, ee) => bc.getStyle(ee ?? e.getBody(), F, !0);
|
|
14865
14865
|
if (he(n)) {
|
|
14866
14866
|
const F = e.formatter.get(n);
|
|
14867
14867
|
if (!F)
|
|
@@ -14878,29 +14878,29 @@ Options:${f}${o.join(f)}` : "";
|
|
|
14878
14878
|
const y = _5(n.selector);
|
|
14879
14879
|
y.length > 0 ? (y[0].name || (y[0].name = f), f = n.selector, b = ox(y, e)) : b = ox([f], e);
|
|
14880
14880
|
const k = bc.select(f, b)[0] || b.firstChild;
|
|
14881
|
-
vg(n.styles, (F,
|
|
14881
|
+
vg(n.styles, (F, ee) => {
|
|
14882
14882
|
const se = l(F);
|
|
14883
|
-
se && bc.setStyle(k,
|
|
14884
|
-
}), vg(n.attributes, (F,
|
|
14883
|
+
se && bc.setStyle(k, ee, se);
|
|
14884
|
+
}), vg(n.attributes, (F, ee) => {
|
|
14885
14885
|
const se = l(F);
|
|
14886
|
-
se && bc.setAttrib(k,
|
|
14886
|
+
se && bc.setAttrib(k, ee, se);
|
|
14887
14887
|
}), vg(n.classes, (F) => {
|
|
14888
|
-
const
|
|
14889
|
-
bc.hasClass(k,
|
|
14888
|
+
const ee = l(F);
|
|
14889
|
+
bc.hasClass(k, ee) || bc.addClass(k, ee);
|
|
14890
14890
|
}), e.dispatch("PreviewFormats"), bc.setStyles(b, {
|
|
14891
14891
|
position: "absolute",
|
|
14892
14892
|
left: -65535
|
|
14893
14893
|
}), e.getBody().appendChild(b);
|
|
14894
14894
|
const B = u("fontSize"), P = /px$/.test(B) ? parseInt(B, 10) : 0;
|
|
14895
14895
|
return vg(r.split(" "), (F) => {
|
|
14896
|
-
let
|
|
14897
|
-
if (!(F === "background-color" && /transparent|rgba\s*\([^)]+,\s*0\)/.test(
|
|
14898
|
-
if (F === "font-size" && /em|%$/.test(
|
|
14896
|
+
let ee = u(F, k);
|
|
14897
|
+
if (!(F === "background-color" && /transparent|rgba\s*\([^)]+,\s*0\)/.test(ee) && (ee = u(F), rp(ee).toLowerCase() === "#ffffff")) && !(F === "color" && rp(ee).toLowerCase() === "#000000")) {
|
|
14898
|
+
if (F === "font-size" && /em|%$/.test(ee)) {
|
|
14899
14899
|
if (P === 0)
|
|
14900
14900
|
return;
|
|
14901
|
-
|
|
14901
|
+
ee = parseFloat(ee) / (/%$/.test(ee) ? 100 : 1) * P + "px";
|
|
14902
14902
|
}
|
|
14903
|
-
F === "border" &&
|
|
14903
|
+
F === "border" && ee && (o += "padding:0 2px;"), o += F + ":" + ee + ";";
|
|
14904
14904
|
}
|
|
14905
14905
|
}), e.dispatch("AfterPreviewFormats"), bc.remove(b), o;
|
|
14906
14906
|
}, q6 = (e) => {
|
|
@@ -15425,8 +15425,8 @@ Options:${f}${o.join(f)}` : "";
|
|
|
15425
15425
|
const b = [], y = (P) => {
|
|
15426
15426
|
let F = AM([P]);
|
|
15427
15427
|
e === -1 && (F = F.reverse());
|
|
15428
|
-
for (let
|
|
15429
|
-
const se = F[
|
|
15428
|
+
for (let ee = 0; ee < F.length; ee++) {
|
|
15429
|
+
const se = F[ee];
|
|
15430
15430
|
if (!o(se, k)) {
|
|
15431
15431
|
if (b.length > 0 && n(se, Or(b)) && f++, se.line = f, l(se))
|
|
15432
15432
|
return !0;
|
|
@@ -15453,10 +15453,10 @@ Options:${f}${o.join(f)}` : "";
|
|
|
15453
15453
|
if (b(F, P))
|
|
15454
15454
|
continue;
|
|
15455
15455
|
k.length > 0 && f(F, Or(k)) && B++;
|
|
15456
|
-
const
|
|
15457
|
-
if (
|
|
15456
|
+
const ee = ih(F);
|
|
15457
|
+
if (ee.position = y, ee.line = B, o(ee))
|
|
15458
15458
|
return k;
|
|
15459
|
-
k.push(
|
|
15459
|
+
k.push(ee);
|
|
15460
15460
|
} while (y = u(y));
|
|
15461
15461
|
return k;
|
|
15462
15462
|
}, uy = (e) => (n) => j5(e, n), dy = (e) => (n) => G5(e, n), wg = (e, n) => {
|
|
@@ -15483,8 +15483,8 @@ Options:${f}${o.join(f)}` : "";
|
|
|
15483
15483
|
return F ? z.some(o) : z.none();
|
|
15484
15484
|
if (k(P))
|
|
15485
15485
|
return yg(n, e, P.getNode(!f), f, !1);
|
|
15486
|
-
const
|
|
15487
|
-
return
|
|
15486
|
+
const ee = y(P);
|
|
15487
|
+
return ee && k(ee) && U2(P, ee) ? yg(n, e, ee.getNode(!f), f, !1) : F ? sk(e, P.toRange(), !1) : z.none();
|
|
15488
15488
|
}, Y5 = (e, n, o, r, l, u) => {
|
|
15489
15489
|
const f = eg(n, e.getBody(), o), b = Or(f.getClientRects()), y = n === ix.Down, k = e.getBody();
|
|
15490
15490
|
if (!b)
|
|
@@ -15493,15 +15493,15 @@ Options:${f}${o.join(f)}` : "";
|
|
|
15493
15493
|
const re = y ? Le.fromRangeEnd(o) : Le.fromRangeStart(o);
|
|
15494
15494
|
return (y ? K9 : q9)(k, re).orThunk(() => z.from(re)).map((ke) => ke.toRange());
|
|
15495
15495
|
}
|
|
15496
|
-
const P = (y ? OM : DM)(k, uy(1), f), F = Ut(P, dy(1)),
|
|
15496
|
+
const P = (y ? OM : DM)(k, uy(1), f), F = Ut(P, dy(1)), ee = b.left, se = EM(F, ee);
|
|
15497
15497
|
if (se && u(se.node)) {
|
|
15498
|
-
const re = Math.abs(
|
|
15498
|
+
const re = Math.abs(ee - se.left), xe = Math.abs(ee - se.right);
|
|
15499
15499
|
return yg(n, e, se.node, re < xe, !1);
|
|
15500
15500
|
}
|
|
15501
15501
|
let Y;
|
|
15502
15502
|
if (r(f) ? Y = f.getNode() : l(f) ? Y = f.getNode(!0) : Y = Qy(o), Y) {
|
|
15503
15503
|
const re = Q9(n, k, uy(1), Y);
|
|
15504
|
-
let xe = EM(Ut(re, dy(1)),
|
|
15504
|
+
let xe = EM(Ut(re, dy(1)), ee);
|
|
15505
15505
|
if (xe || (xe = Or(Ut(re, dy(0))), xe))
|
|
15506
15506
|
return sk(e, xe.position.toRange(), !1);
|
|
15507
15507
|
}
|
|
@@ -15765,7 +15765,7 @@ Options:${f}${o.join(f)}` : "";
|
|
|
15765
15765
|
const P = f.nodeName.toLowerCase();
|
|
15766
15766
|
if (!r.isValidChild(P, B.toLowerCase()) || SH(l, f, u))
|
|
15767
15767
|
return;
|
|
15768
|
-
const F = o.getRng(), { startContainer:
|
|
15768
|
+
const F = o.getRng(), { startContainer: ee, startOffset: se, endContainer: Y, endOffset: re } = F, xe = Xp(e);
|
|
15769
15769
|
let ke = f.firstChild;
|
|
15770
15770
|
for (; ke; )
|
|
15771
15771
|
if (qt(ke) && Sb(r, ke), JM(r, ke)) {
|
|
@@ -15776,7 +15776,7 @@ Options:${f}${o.join(f)}` : "";
|
|
|
15776
15776
|
b || (b = QM(e), f.insertBefore(b, ke), k = !0), y = ke, ke = ke.nextSibling, b.appendChild(y);
|
|
15777
15777
|
} else
|
|
15778
15778
|
b = null, ke = ke.nextSibling;
|
|
15779
|
-
k && xe && (F.setStart(
|
|
15779
|
+
k && xe && (F.setStart(ee, se), F.setEnd(Y, re), o.setRng(F), e.nodeChanged());
|
|
15780
15780
|
}, e8 = (e, n, o) => {
|
|
15781
15781
|
const r = ie.fromDom(QM(e)), l = Gl();
|
|
15782
15782
|
Sr(r, l), o(n, r);
|
|
@@ -16493,10 +16493,10 @@ Input object: ` + EA(e.input), OA = (e, n) => M8(e, xo(n, DA)), G8 = st(U8), wk
|
|
|
16493
16493
|
b(k).fold(l, (B) => {
|
|
16494
16494
|
u(B.context), B.lookupData.then((P) => {
|
|
16495
16495
|
n.get().map((F) => {
|
|
16496
|
-
const
|
|
16497
|
-
F.trigger ===
|
|
16496
|
+
const ee = B.context;
|
|
16497
|
+
F.trigger === ee.trigger && (ee.text.length - F.matchLength >= 10 ? l() : (n.set({
|
|
16498
16498
|
...F,
|
|
16499
|
-
matchLength:
|
|
16499
|
+
matchLength: ee.text.length
|
|
16500
16500
|
}), o.get() ? w_(e, { lookupData: P }) : (o.set(!0), cw(e, { lookupData: P }))));
|
|
16501
16501
|
});
|
|
16502
16502
|
});
|
|
@@ -16541,8 +16541,8 @@ Input object: ` + EA(e.input), OA = (e, n) => M8(e, xo(n, DA)), G8 = st(U8), wk
|
|
|
16541
16541
|
if (o === "character") {
|
|
16542
16542
|
const f = Le.fromRangeStart(l.getRng()), b = r.getParent(f.container(), r.isBlock), y = Ex(r, f), k = b && r.isEmpty(b), B = ae(b == null ? void 0 : b.previousSibling), P = ae(b == null ? void 0 : b.nextSibling);
|
|
16543
16543
|
return k && (n ? P : B) && ef(!n, u, f).exists((se) => l7(r, se) && !Za(y, Ex(r, se))) ? !0 : ef(n, u, f).fold(nt, (F) => {
|
|
16544
|
-
const
|
|
16545
|
-
if (l7(r, F) && !Za(y,
|
|
16544
|
+
const ee = Ex(r, F);
|
|
16545
|
+
if (l7(r, F) && !Za(y, ee)) {
|
|
16546
16546
|
if (n || UA(e, F, !1), b && k) {
|
|
16547
16547
|
if (n && B)
|
|
16548
16548
|
return !0;
|
|
@@ -16566,14 +16566,14 @@ Input object: ` + EA(e.input), OA = (e, n) => M8(e, xo(n, DA)), G8 = st(U8), wk
|
|
|
16566
16566
|
let { anchorNode: y, anchorOffset: k, focusNode: B, focusOffset: P } = b ?? {};
|
|
16567
16567
|
const F = () => {
|
|
16568
16568
|
Ze(y) && Ze(k) && Ze(B) && Ze(P) && (b == null || b.setBaseAndExtent(y, k, B, P));
|
|
16569
|
-
},
|
|
16569
|
+
}, ee = () => {
|
|
16570
16570
|
y = b == null ? void 0 : b.anchorNode, k = b == null ? void 0 : b.anchorOffset, B = b == null ? void 0 : b.focusNode, P = b == null ? void 0 : b.focusOffset;
|
|
16571
16571
|
}, se = (re, xe) => {
|
|
16572
16572
|
Te(re.childNodes, (ke) => {
|
|
16573
16573
|
g1(ke) && xe.appendChild(ke);
|
|
16574
16574
|
});
|
|
16575
16575
|
}, Y = e.dom.create("span", { "data-mce-bogus": "1" });
|
|
16576
|
-
se(l, Y), l.appendChild(Y), F(), (o === "word" || o === "line") && (b == null || b.modify("extend", n ? "right" : "left", o)), !r.isCollapsed() && a7(r.getRng(), Y) ? VA(l) : (e.execCommand(n ? "ForwardDelete" : "Delete"),
|
|
16576
|
+
se(l, Y), l.appendChild(Y), F(), (o === "word" || o === "line") && (b == null || b.modify("extend", n ? "right" : "left", o)), !r.isCollapsed() && a7(r.getRng(), Y) ? VA(l) : (e.execCommand(n ? "ForwardDelete" : "Delete"), ee(), se(Y, l), F()), e.dom.remove(Y);
|
|
16577
16577
|
}), !0) : !1;
|
|
16578
16578
|
}, g0 = (e, n, o) => JV(e, n, o) || HA && kk(e, n, o) ? z.some(Nt) : z.none(), WA = (e) => (n, o, r = {}) => {
|
|
16579
16579
|
const l = n.getBody(), u = {
|
|
@@ -16838,21 +16838,21 @@ Input object: ` + EA(e.input), OA = (e, n) => M8(e, xo(n, DA)), G8 = st(U8), wk
|
|
|
16838
16838
|
const b = e.dom, y = e.schema, k = Xl(e), B = o ? o.nodeName.toUpperCase() : "";
|
|
16839
16839
|
let P = n;
|
|
16840
16840
|
const F = y.getTextInlineElements();
|
|
16841
|
-
let
|
|
16842
|
-
u || B === "TABLE" || B === "HR" ?
|
|
16843
|
-
let se =
|
|
16841
|
+
let ee;
|
|
16842
|
+
u || B === "TABLE" || B === "HR" ? ee = b.create(u || k, f || {}) : ee = o.cloneNode(!1);
|
|
16843
|
+
let se = ee;
|
|
16844
16844
|
if (!l)
|
|
16845
|
-
b.setAttrib(
|
|
16845
|
+
b.setAttrib(ee, "style", null), b.setAttrib(ee, "class", null);
|
|
16846
16846
|
else
|
|
16847
16847
|
do
|
|
16848
16848
|
if (F[P.nodeName]) {
|
|
16849
16849
|
if (Di(P) || Oi(P))
|
|
16850
16850
|
continue;
|
|
16851
16851
|
const Y = P.cloneNode(!1);
|
|
16852
|
-
b.setAttrib(Y, "id", ""),
|
|
16852
|
+
b.setAttrib(Y, "id", ""), ee.hasChildNodes() ? (Y.appendChild(ee.firstChild), ee.appendChild(Y)) : (se = Y, ee.appendChild(Y));
|
|
16853
16853
|
}
|
|
16854
16854
|
while ((P = P.parentNode) && P !== r);
|
|
16855
|
-
return X1(e,
|
|
16855
|
+
return X1(e, ee), ZA(se), ee;
|
|
16856
16856
|
}, f7 = (e, n) => e.dom.getParent(n, ot), rz = (e, n, o) => {
|
|
16857
16857
|
let r = n;
|
|
16858
16858
|
for (; r && r !== e && ae(r.nextSibling); ) {
|
|
@@ -16904,7 +16904,7 @@ Input object: ` + EA(e.input), OA = (e, n) => M8(e, xo(n, DA)), G8 = st(U8), wk
|
|
|
16904
16904
|
const P = B.extractContents();
|
|
16905
16905
|
if (l === "LI" && cz(P, "LI")) {
|
|
16906
16906
|
const F = Ut(Ye(k.children, ie.fromDom), no(lc("br")));
|
|
16907
|
-
k = P.firstChild, u.insertAfter(P, o), Te(F, (
|
|
16907
|
+
k = P.firstChild, u.insertAfter(P, o), Te(F, (ee) => nd(ie.fromDom(k), ee)), y && k.setAttribute("style", y);
|
|
16908
16908
|
} else
|
|
16909
16909
|
u.insertAfter(P, o), u.insertAfter(k, o);
|
|
16910
16910
|
u.remove(r);
|
|
@@ -16946,8 +16946,8 @@ Input object: ` + EA(e.input), OA = (e, n) => M8(e, xo(n, DA)), G8 = st(U8), wk
|
|
|
16946
16946
|
let k = b.getParent(r, b.isBlock);
|
|
16947
16947
|
if (!k || !YA(b, k)) {
|
|
16948
16948
|
if (k = k || y, !k.hasChildNodes()) {
|
|
16949
|
-
const
|
|
16950
|
-
return X1(e,
|
|
16949
|
+
const ee = b.create(n);
|
|
16950
|
+
return X1(e, ee), k.appendChild(ee), o.setStart(ee, 0), o.setEnd(ee, 0), ee;
|
|
16951
16951
|
}
|
|
16952
16952
|
let B = r;
|
|
16953
16953
|
for (; B && B.parentNode !== k; )
|
|
@@ -16957,8 +16957,8 @@ Input object: ` + EA(e.input), OA = (e, n) => M8(e, xo(n, DA)), G8 = st(U8), wk
|
|
|
16957
16957
|
P = B, B = B.previousSibling;
|
|
16958
16958
|
const F = (f = P == null ? void 0 : P.parentElement) === null || f === void 0 ? void 0 : f.nodeName;
|
|
16959
16959
|
if (P && F && e.schema.isValidChild(F, n.toLowerCase())) {
|
|
16960
|
-
const
|
|
16961
|
-
for (X1(e, se),
|
|
16960
|
+
const ee = P.parentNode, se = b.create(n);
|
|
16961
|
+
for (X1(e, se), ee.insertBefore(se, P), B = P; B && !b.isBlock(B); ) {
|
|
16962
16962
|
const Y = B.nextSibling;
|
|
16963
16963
|
se.appendChild(B), B = Y;
|
|
16964
16964
|
}
|
|
@@ -16976,7 +16976,7 @@ Input object: ` + EA(e.input), OA = (e, n) => M8(e, xo(n, DA)), G8 = st(U8), wk
|
|
|
16976
16976
|
}, v7 = {
|
|
16977
16977
|
insert: (e, n) => {
|
|
16978
16978
|
let o, r, l, u, f = !1;
|
|
16979
|
-
const b = e.dom, y = e.schema, k = y.getNonEmptyElements(), B = e.selection.getRng(), P = Xl(e), F = ie.fromDom(B.startContainer),
|
|
16979
|
+
const b = e.dom, y = e.schema, k = y.getNonEmptyElements(), B = e.selection.getRng(), P = Xl(e), F = ie.fromDom(B.startContainer), ee = _u(F, B.startOffset), se = ee.exists((rt) => Gs(rt) && !Vn(rt)), Y = B.collapsed && se, re = (rt, Kt) => jA(e, o, wt, at, a3(e), rt, Kt), xe = (rt) => {
|
|
16980
16980
|
const Kt = XA(rt, o, r);
|
|
16981
16981
|
if (ut(o) && (rt ? Kt > 0 : Kt < o.data.length))
|
|
16982
16982
|
return !1;
|
|
@@ -17030,7 +17030,7 @@ Input object: ` + EA(e.input), OA = (e, n) => M8(e, xo(n, DA)), G8 = st(U8), wk
|
|
|
17030
17030
|
const We = wt.parentNode;
|
|
17031
17031
|
let Ve;
|
|
17032
17032
|
if (Y)
|
|
17033
|
-
Ve = re(P),
|
|
17033
|
+
Ve = re(P), ee.fold(() => {
|
|
17034
17034
|
Sr(F, ie.fromDom(Ve));
|
|
17035
17035
|
}, (rt) => {
|
|
17036
17036
|
jr(rt, ie.fromDom(Ve));
|
|
@@ -17066,13 +17066,13 @@ Input object: ` + EA(e.input), OA = (e, n) => M8(e, xo(n, DA)), G8 = st(U8), wk
|
|
|
17066
17066
|
}, vz = (e, n) => {
|
|
17067
17067
|
const o = e.selection, r = e.dom, l = o.getRng();
|
|
17068
17068
|
let u, f = !1;
|
|
17069
|
-
S(r, l).each((
|
|
17070
|
-
l.setStart(
|
|
17069
|
+
S(r, l).each((ee) => {
|
|
17070
|
+
l.setStart(ee.startContainer, ee.startOffset), l.setEnd(ee.endContainer, ee.endOffset);
|
|
17071
17071
|
});
|
|
17072
17072
|
let b = l.startOffset, y = l.startContainer;
|
|
17073
17073
|
if (qt(y) && y.hasChildNodes()) {
|
|
17074
|
-
const
|
|
17075
|
-
y = y.childNodes[Math.min(b, y.childNodes.length - 1)] || y,
|
|
17074
|
+
const ee = b > y.childNodes.length - 1;
|
|
17075
|
+
y = y.childNodes[Math.min(b, y.childNodes.length - 1)] || y, ee && ut(y) ? b = y.data.length : b = 0;
|
|
17076
17076
|
}
|
|
17077
17077
|
let k = r.getParent(y, r.isBlock);
|
|
17078
17078
|
const B = k && k.parentNode ? r.getParent(k.parentNode, r.isBlock) : null, P = B ? B.nodeName.toUpperCase() : "", F = !!(n && n.ctrlKey);
|
|
@@ -17879,8 +17879,8 @@ Input object: ` + EA(e.input), OA = (e, n) => M8(e, xo(n, DA)), G8 = st(U8), wk
|
|
|
17879
17879
|
let re = Y, xe = u.getStyle(f, l[se], !0);
|
|
17880
17880
|
/color/.test(l[se]) && (re = dB(re), xe = dB(xe)), xe !== re && (F[l[se]] = Y);
|
|
17881
17881
|
}
|
|
17882
|
-
const
|
|
17883
|
-
return
|
|
17882
|
+
const ee = u.serializeStyle(F, "span");
|
|
17883
|
+
return ee ? y + ' style="' + ee + '"' + B : y + B;
|
|
17884
17884
|
});
|
|
17885
17885
|
} else
|
|
17886
17886
|
n = n.replace(/(<[^>]+) style="([^"]*)"([^>]*>)/gi, "$1$3");
|
|
@@ -17957,9 +17957,9 @@ Input object: ` + EA(e.input), OA = (e, n) => M8(e, xo(n, DA)), G8 = st(U8), wk
|
|
|
17957
17957
|
node: e.node,
|
|
17958
17958
|
position: WU(e, n) < ZU(e, n) ? tb.Before : tb.After
|
|
17959
17959
|
}), 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) => {
|
|
17960
|
-
const l = (P) => uo(P.node) ? z.some(P) : qt(P.node) ? Uk(xr(P.node.childNodes), n, o, !1) : z.none(), u = (P, F,
|
|
17961
|
-
const
|
|
17962
|
-
return Pl(
|
|
17960
|
+
const l = (P) => uo(P.node) ? z.some(P) : qt(P.node) ? Uk(xr(P.node.childNodes), n, o, !1) : z.none(), u = (P, F, ee) => l(F).filter((se) => Math.abs(ee(P, n, o) - ee(se, n, o)) < 2 && ut(se.node)), f = (P, F) => {
|
|
17961
|
+
const ee = Ko(P, (se, Y) => F(se, n, o) - F(Y, n, o));
|
|
17962
|
+
return Pl(ee, l).map((se) => r && !ut(se.node) && ee.length > 1 ? u(se, ee[1], F).getOr(se) : se);
|
|
17963
17963
|
}, [b, y] = KU(AM(e), o), {
|
|
17964
17964
|
pass: k,
|
|
17965
17965
|
fail: B
|
|
@@ -18119,8 +18119,8 @@ Input object: ` + EA(e.input), OA = (e, n) => M8(e, xo(n, DA)), G8 = st(U8), wk
|
|
|
18119
18119
|
behavior: "smooth"
|
|
18120
18120
|
});
|
|
18121
18121
|
}, EB = Kk("left", -Zk), AB = Kk("left", Zk), aW = Kk("top", -Zk), DB = Kk("top", Zk), _D = (e, n, o, r, l, u, f, b, y, k, B, P) => {
|
|
18122
|
-
let F = 0,
|
|
18123
|
-
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 && (
|
|
18122
|
+
let F = 0, ee = 0;
|
|
18123
|
+
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";
|
|
18124
18124
|
const se = y.clientHeight, Y = y.clientWidth, re = f + y.getBoundingClientRect().top, xe = b + y.getBoundingClientRect().left;
|
|
18125
18125
|
B.on((ke) => {
|
|
18126
18126
|
ke.intervalId.clear(), ke.dragging && P && (f + jk >= se ? ke.intervalId.set(DB(k)) : f - jk <= 0 ? ke.intervalId.set(aW(k)) : b + jk >= Y ? ke.intervalId.set(AB(k)) : b - jk <= 0 ? ke.intervalId.set(EB(k)) : re + Gk >= window.innerHeight ? ke.intervalId.set(DB(window)) : re - Gk <= 0 ? ke.intervalId.set(aW(window)) : xe + Gk >= window.innerWidth ? ke.intervalId.set(AB(window)) : xe - Gk <= 0 && ke.intervalId.set(EB(window)));
|
|
@@ -18278,7 +18278,7 @@ Input object: ` + EA(e.input), OA = (e, n) => M8(e, xo(n, DA)), G8 = st(U8), wk
|
|
|
18278
18278
|
before: Ve
|
|
18279
18279
|
}).isDefaultPrevented() ? null : (rt && n.scrollIntoView(We, Ft === -1), l.show(Ve, We)), F = (Ft) => {
|
|
18280
18280
|
Ft.hasAttribute("data-mce-caret") && (iu(Ft), n.scrollIntoView(Ft));
|
|
18281
|
-
},
|
|
18281
|
+
}, ee = () => {
|
|
18282
18282
|
e.on("click", (We) => {
|
|
18283
18283
|
o.isEditable(We.target) || (We.preventDefault(), e.focus());
|
|
18284
18284
|
}), e.on("blur NewBlock", Pe), e.on("ResizeWindow FullscreenStateChanged", l.reposition), e.on("tap", (We) => {
|
|
@@ -18385,7 +18385,7 @@ Input object: ` + EA(e.input), OA = (e, n) => M8(e, xo(n, DA)), G8 = st(U8), wk
|
|
|
18385
18385
|
}, wt = () => {
|
|
18386
18386
|
l.hide();
|
|
18387
18387
|
};
|
|
18388
|
-
return Oh(e) ||
|
|
18388
|
+
return Oh(e) || ee(), {
|
|
18389
18389
|
showCaret: P,
|
|
18390
18390
|
showBlockCaretContainer: F,
|
|
18391
18391
|
hideFakeCaret: wt,
|
|
@@ -18515,8 +18515,8 @@ Input object: ` + EA(e.input), OA = (e, n) => M8(e, xo(n, DA)), G8 = st(U8), wk
|
|
|
18515
18515
|
} else {
|
|
18516
18516
|
const P = f.offset - l.length;
|
|
18517
18517
|
return bk(f.container, P, o).map((F) => {
|
|
18518
|
-
const
|
|
18519
|
-
return
|
|
18518
|
+
const ee = e.createRng();
|
|
18519
|
+
return ee.setStart(F.container, F.offset), ee.setEnd(f.container, f.offset), ee;
|
|
18520
18520
|
}).filter((F) => F.toString() === l).orThunk(() => VB(e, n, o, bf(f.container, 0)));
|
|
18521
18521
|
}
|
|
18522
18522
|
});
|
|
@@ -18552,8 +18552,8 @@ Input object: ` + EA(e.input), OA = (e, n) => M8(e, xo(n, DA)), G8 = st(U8), wk
|
|
|
18552
18552
|
const P = t4(e, o.remainingPatterns, k.container, k.offset, n, r), F = P.getOr({
|
|
18553
18553
|
matches: [],
|
|
18554
18554
|
position: k
|
|
18555
|
-
}),
|
|
18556
|
-
return TW(l, f,
|
|
18555
|
+
}), ee = F.position;
|
|
18556
|
+
return TW(l, f, ee.container, ee.offset, n, P.isNone()).map((Y) => {
|
|
18557
18557
|
const re = xW(l, u, Y, r);
|
|
18558
18558
|
return {
|
|
18559
18559
|
matches: F.matches.concat([{
|
|
@@ -18645,7 +18645,7 @@ Input object: ` + EA(e.input), OA = (e, n) => M8(e, xo(n, DA)), G8 = st(U8), wk
|
|
|
18645
18645
|
const k = e.selection.getRng(), B = xg(k.startContainer, k.startOffset, e.dom.getRoot());
|
|
18646
18646
|
e.execCommand("mceInsertNewLine"), B.each((P) => {
|
|
18647
18647
|
const F = P.container;
|
|
18648
|
-
F.data.charAt(P.offset - 1) === Yg && (F.deleteData(P.offset - 1, 1), ob(e.dom, F.parentNode, (
|
|
18648
|
+
F.data.charAt(P.offset - 1) === Yg && (F.deleteData(P.offset - 1, 1), ob(e.dom, F.parentNode, (ee) => ee === e.dom.getRoot()));
|
|
18649
18649
|
});
|
|
18650
18650
|
}), !0) : !1;
|
|
18651
18651
|
}).getOr(!1);
|
|
@@ -18696,7 +18696,7 @@ Input object: ` + EA(e.input), OA = (e, n) => M8(e, xo(n, DA)), G8 = st(U8), wk
|
|
|
18696
18696
|
e.getDoc().execCommand(Qt, !1, String($n));
|
|
18697
18697
|
} catch {
|
|
18698
18698
|
}
|
|
18699
|
-
},
|
|
18699
|
+
}, ee = (Qt) => Qt.isDefaultPrevented(), se = () => {
|
|
18700
18700
|
const Qt = (Ct) => {
|
|
18701
18701
|
const Mn = l.create("body"), Oo = Ct.cloneContents();
|
|
18702
18702
|
return Mn.appendChild(Oo), u.serializer.serialize(Mn, { format: "html" });
|
|
@@ -18708,7 +18708,7 @@ Input object: ` + EA(e.input), OA = (e, n) => M8(e, xo(n, DA)), G8 = st(U8), wk
|
|
|
18708
18708
|
};
|
|
18709
18709
|
e.on("keydown", (Ct) => {
|
|
18710
18710
|
const Mn = Ct.keyCode;
|
|
18711
|
-
if (!
|
|
18711
|
+
if (!ee(Ct) && (Mn === r || Mn === o) && e.selection.isEditable()) {
|
|
18712
18712
|
const Oo = e.selection.isCollapsed(), Ss = e.getBody();
|
|
18713
18713
|
if (Oo && !br(ie.fromDom(Ss)) || !Oo && !$n(e.selection.getRng()))
|
|
18714
18714
|
return;
|
|
@@ -18730,7 +18730,7 @@ Input object: ` + EA(e.input), OA = (e, n) => M8(e, xo(n, DA)), G8 = st(U8), wk
|
|
|
18730
18730
|
});
|
|
18731
18731
|
}, xe = () => {
|
|
18732
18732
|
e.on("keydown", (Qt) => {
|
|
18733
|
-
if (!
|
|
18733
|
+
if (!ee(Qt) && Qt.keyCode === o) {
|
|
18734
18734
|
if (!e.getBody().getElementsByTagName("hr").length)
|
|
18735
18735
|
return;
|
|
18736
18736
|
if (u.isCollapsed() && u.getRng().startOffset === 0) {
|
|
@@ -18745,7 +18745,7 @@ Input object: ` + EA(e.input), OA = (e, n) => M8(e, xo(n, DA)), G8 = st(U8), wk
|
|
|
18745
18745
|
});
|
|
18746
18746
|
}, ke = () => {
|
|
18747
18747
|
Range.prototype.getClientRects || e.on("mousedown", (Qt) => {
|
|
18748
|
-
if (!
|
|
18748
|
+
if (!ee(Qt) && Qt.target.nodeName === "HTML") {
|
|
18749
18749
|
const $n = e.getBody();
|
|
18750
18750
|
$n.blur(), Hu.setEditorTimeout(e, () => {
|
|
18751
18751
|
$n.focus();
|
|
@@ -18770,9 +18770,9 @@ Input object: ` + EA(e.input), OA = (e, n) => M8(e, xo(n, DA)), G8 = st(U8), wk
|
|
|
18770
18770
|
}, $n = () => !u.isCollapsed() && l.getParent(u.getStart(), l.isBlock) !== l.getParent(u.getEnd(), l.isBlock);
|
|
18771
18771
|
e.on("keypress", (Ct) => {
|
|
18772
18772
|
let Mn;
|
|
18773
|
-
return !
|
|
18773
|
+
return !ee(Ct) && (Ct.keyCode === 8 || Ct.keyCode === 46) && $n() ? (Mn = Qt(), e.getDoc().execCommand("delete", !1), Mn(), Ct.preventDefault(), !1) : !0;
|
|
18774
18774
|
}), l.bind(e.getDoc(), "cut", (Ct) => {
|
|
18775
|
-
if (!
|
|
18775
|
+
if (!ee(Ct) && $n()) {
|
|
18776
18776
|
const Mn = Qt();
|
|
18777
18777
|
Hu.setEditorTimeout(e, () => {
|
|
18778
18778
|
Mn();
|
|
@@ -18781,7 +18781,7 @@ Input object: ` + EA(e.input), OA = (e, n) => M8(e, xo(n, DA)), G8 = st(U8), wk
|
|
|
18781
18781
|
});
|
|
18782
18782
|
}, at = () => {
|
|
18783
18783
|
e.on("keydown", (Qt) => {
|
|
18784
|
-
if (!
|
|
18784
|
+
if (!ee(Qt) && Qt.keyCode === o && u.isCollapsed() && u.getRng().startOffset === 0) {
|
|
18785
18785
|
const $n = u.getNode().previousSibling;
|
|
18786
18786
|
if ($n && $n.nodeName && $n.nodeName.toLowerCase() === "table")
|
|
18787
18787
|
return Qt.preventDefault(), !1;
|
|
@@ -18790,7 +18790,7 @@ Input object: ` + EA(e.input), OA = (e, n) => M8(e, xo(n, DA)), G8 = st(U8), wk
|
|
|
18790
18790
|
});
|
|
18791
18791
|
}, wt = () => {
|
|
18792
18792
|
e.on("keydown", (Qt) => {
|
|
18793
|
-
if (
|
|
18793
|
+
if (ee(Qt) || Qt.keyCode !== Zt.BACKSPACE)
|
|
18794
18794
|
return;
|
|
18795
18795
|
let $n = u.getRng();
|
|
18796
18796
|
const Ct = $n.startContainer, Mn = $n.startOffset, Oo = l.getRoot();
|
|
@@ -20040,16 +20040,16 @@ Input object: ` + EA(e.input), OA = (e, n) => M8(e, xo(n, DA)), G8 = st(U8), wk
|
|
|
20040
20040
|
console.error(AP(`Invalid default value passed for the "${e}" option`, r));
|
|
20041
20041
|
}
|
|
20042
20042
|
}, XZ = (e, n) => {
|
|
20043
|
-
const o = {}, r = {}, l = (P, F,
|
|
20044
|
-
const se = y0(F,
|
|
20043
|
+
const o = {}, r = {}, l = (P, F, ee) => {
|
|
20044
|
+
const se = y0(F, ee);
|
|
20045
20045
|
return DP(se) ? (r[P] = se.value, !0) : (console.warn(AP(`Invalid value passed for the ${P} option`, se)), !1);
|
|
20046
20046
|
}, u = (P, F) => {
|
|
20047
|
-
const
|
|
20047
|
+
const ee = YZ(F) ? KZ(F.processor) : F.processor, se = xf(P, F.default, ee);
|
|
20048
20048
|
o[P] = {
|
|
20049
20049
|
...F,
|
|
20050
20050
|
default: se,
|
|
20051
|
-
processor:
|
|
20052
|
-
}, Xo(r, P).orThunk(() => Xo(n, P)).each((re) => l(P, re,
|
|
20051
|
+
processor: ee
|
|
20052
|
+
}, Xo(r, P).orThunk(() => Xo(n, P)).each((re) => l(P, re, ee));
|
|
20053
20053
|
}, f = (P) => pn(o, P);
|
|
20054
20054
|
return {
|
|
20055
20055
|
register: u,
|
|
@@ -20057,8 +20057,8 @@ Input object: ` + EA(e.input), OA = (e, n) => M8(e, xo(n, DA)), G8 = st(U8), wk
|
|
|
20057
20057
|
get: (P) => Xo(r, P).orThunk(() => Xo(o, P).map((F) => F.default)).getOrUndefined(),
|
|
20058
20058
|
set: (P, F) => {
|
|
20059
20059
|
if (f(P)) {
|
|
20060
|
-
const
|
|
20061
|
-
return
|
|
20060
|
+
const ee = o[P];
|
|
20061
|
+
return ee.immutable ? (console.error(`"${P}" is an immutable option and cannot be updated`), !1) : l(P, F, ee.processor);
|
|
20062
20062
|
} else
|
|
20063
20063
|
return console.warn(`"${P}" is not a registered option. Ensure the option has been registered before setting a value.`), !1;
|
|
20064
20064
|
},
|
|
@@ -20200,9 +20200,9 @@ Input object: ` + EA(e.input), OA = (e, n) => M8(e, xo(n, DA)), G8 = st(U8), wk
|
|
|
20200
20200
|
}
|
|
20201
20201
|
}
|
|
20202
20202
|
const aj = () => {
|
|
20203
|
-
const e = {}, n = {}, o = {}, r = {}, l = {}, u = {}, f = {}, b = {}, y = (B, P) => (F,
|
|
20203
|
+
const e = {}, n = {}, o = {}, r = {}, l = {}, u = {}, f = {}, b = {}, y = (B, P) => (F, ee) => {
|
|
20204
20204
|
B[F.toLowerCase()] = {
|
|
20205
|
-
...
|
|
20205
|
+
...ee,
|
|
20206
20206
|
type: P
|
|
20207
20207
|
};
|
|
20208
20208
|
}, k = (B, P) => r[B.toLowerCase()] = P;
|
|
@@ -20564,7 +20564,7 @@ Input object: ` + EA(e.input), OA = (e, n) => M8(e, xo(n, DA)), G8 = st(U8), wk
|
|
|
20564
20564
|
let B = 0;
|
|
20565
20565
|
const P = [];
|
|
20566
20566
|
let F;
|
|
20567
|
-
const
|
|
20567
|
+
const ee = (se, Y, re) => {
|
|
20568
20568
|
const xe = new g4(se, Y, n);
|
|
20569
20569
|
P.push(xe), xe.on("init", () => {
|
|
20570
20570
|
++B === F.length && y(P);
|
|
@@ -20573,7 +20573,7 @@ Input object: ` + EA(e.input), OA = (e, n) => M8(e, xo(n, DA)), G8 = st(U8), wk
|
|
|
20573
20573
|
Sy.unbind(window, "ready", k), f("onpageload"), F = di(b(e)), ct.each(F, (se) => {
|
|
20574
20574
|
uj(n.get(se.id));
|
|
20575
20575
|
}), F = ct.grep(F, (se) => !n.get(se.id)), F.length === 0 ? y([]) : h4(F, (se) => {
|
|
20576
|
-
l(e, se) ? nx("Could not initialize inline editor on invalid inline target element", se) :
|
|
20576
|
+
l(e, se) ? nx("Could not initialize inline editor on invalid inline target element", se) : ee(u(se), e, se);
|
|
20577
20577
|
});
|
|
20578
20578
|
};
|
|
20579
20579
|
return Sy.bind(window, "ready", k), new Promise((B) => {
|
|
@@ -20717,8 +20717,8 @@ Input object: ` + EA(e.input), OA = (e, n) => M8(e, xo(n, DA)), G8 = st(U8), wk
|
|
|
20717
20717
|
if (e[y] !== void 0)
|
|
20718
20718
|
return e[y];
|
|
20719
20719
|
{
|
|
20720
|
-
const F = new Promise((
|
|
20721
|
-
const Y = bj(
|
|
20720
|
+
const F = new Promise((ee, se) => {
|
|
20721
|
+
const Y = bj(ee, se);
|
|
20722
20722
|
n[y] = Y.resolve, ra.ScriptLoader.loadScript(k).then(() => Y.start(P), () => Y.reject(B));
|
|
20723
20723
|
});
|
|
20724
20724
|
return e[y] = F, F;
|
|
@@ -21045,13 +21045,13 @@ tinymce.IconManager.add("default", {
|
|
|
21045
21045
|
}
|
|
21046
21046
|
});
|
|
21047
21047
|
(function() {
|
|
21048
|
-
const A = Object.getPrototypeOf,
|
|
21048
|
+
const A = Object.getPrototypeOf, te = (t, s, a) => {
|
|
21049
21049
|
var c;
|
|
21050
21050
|
return a(t, s.prototype) ? !0 : ((c = t.constructor) === null || c === void 0 ? void 0 : c.name) === s.name;
|
|
21051
21051
|
}, G = (t) => {
|
|
21052
21052
|
const s = typeof t;
|
|
21053
|
-
return t === null ? "null" : s === "object" && Array.isArray(t) ? "array" : s === "object" &&
|
|
21054
|
-
}, Ce = (t) => (s) => G(s) === t, oe = (t) => (s) => typeof s === t, U = (t) => (s) => t === s, be = (t, s) => De(t) &&
|
|
21053
|
+
return t === null ? "null" : s === "object" && Array.isArray(t) ? "array" : s === "object" && te(t, String, (a, c) => c.isPrototypeOf(a)) ? "string" : s;
|
|
21054
|
+
}, Ce = (t) => (s) => G(s) === t, oe = (t) => (s) => typeof s === t, U = (t) => (s) => t === s, be = (t, s) => De(t) && te(t, s, (a, c) => A(a) === c), q = Ce("string"), De = Ce("object"), tt = (t) => be(t, Object), pt = Ce("array"), cn = U(null), kt = oe("boolean"), io = U(void 0), lo = (t) => t == null, eo = (t) => !lo(t), Ot = oe("function"), Ls = oe("number"), dn = (t, s) => {
|
|
21055
21055
|
if (pt(t)) {
|
|
21056
21056
|
for (let a = 0, c = t.length; a < c; ++a)
|
|
21057
21057
|
if (!s(t[a]))
|
|
@@ -40680,13 +40680,13 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
40680
40680
|
Qr,
|
|
40681
40681
|
$e("classes", []),
|
|
40682
40682
|
Ec("items", B)
|
|
40683
|
-
], F = rn(P),
|
|
40683
|
+
], F = rn(P), ee = [
|
|
40684
40684
|
bS("tab"),
|
|
40685
40685
|
s$,
|
|
40686
40686
|
Ec("items", B)
|
|
40687
40687
|
], se = [
|
|
40688
40688
|
Qr,
|
|
40689
|
-
A0("tabs",
|
|
40689
|
+
A0("tabs", ee)
|
|
40690
40690
|
], Y = rn(se), re = Vx, xe = EP, ke = rn([
|
|
40691
40691
|
Po("title"),
|
|
40692
40692
|
dc("body", ut("type", {
|
|
@@ -42227,12 +42227,12 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
42227
42227
|
})();
|
|
42228
42228
|
(function() {
|
|
42229
42229
|
var A = tinymce.util.Tools.resolve("tinymce.ModelManager");
|
|
42230
|
-
const
|
|
42230
|
+
const te = (i, m, h) => {
|
|
42231
42231
|
var v;
|
|
42232
42232
|
return h(i, m.prototype) ? !0 : ((v = i.constructor) === null || v === void 0 ? void 0 : v.name) === m.name;
|
|
42233
42233
|
}, G = (i) => {
|
|
42234
42234
|
const m = typeof i;
|
|
42235
|
-
return i === null ? "null" : m === "object" && Array.isArray(i) ? "array" : m === "object" &&
|
|
42235
|
+
return i === null ? "null" : m === "object" && Array.isArray(i) ? "array" : m === "object" && te(i, String, (h, v) => v.isPrototypeOf(h)) ? "string" : m;
|
|
42236
42236
|
}, Ce = (i) => (m) => G(m) === i, oe = (i) => (m) => typeof m === i, U = (i) => (m) => i === m, be = Ce("string"), q = Ce("object"), De = Ce("array"), tt = U(null), pt = oe("boolean"), cn = U(void 0), kt = (i) => i == null, io = (i) => !kt(i), lo = oe("function"), eo = oe("number"), Ot = () => {
|
|
42237
42237
|
}, Ls = (i, m) => (...h) => i(m.apply(null, h)), dn = (i, m) => (h) => i(m(h)), he = (i) => () => i, Tt = (i) => i, ia = (i, m) => i === m;
|
|
42238
42238
|
function oo(i, ...m) {
|
|
@@ -46470,12 +46470,12 @@ Required: ` + m.join(", "));
|
|
|
46470
46470
|
})();
|
|
46471
46471
|
(function() {
|
|
46472
46472
|
var A = tinymce.util.Tools.resolve("tinymce.PluginManager");
|
|
46473
|
-
const
|
|
46473
|
+
const te = (_, M, W) => {
|
|
46474
46474
|
var ce;
|
|
46475
46475
|
return W(_, M.prototype) ? !0 : ((ce = _.constructor) === null || ce === void 0 ? void 0 : ce.name) === M.name;
|
|
46476
46476
|
}, G = (_) => {
|
|
46477
46477
|
const M = typeof _;
|
|
46478
|
-
return _ === null ? "null" : M === "object" && Array.isArray(_) ? "array" : M === "object" &&
|
|
46478
|
+
return _ === null ? "null" : M === "object" && Array.isArray(_) ? "array" : M === "object" && te(_, String, (W, ce) => ce.isPrototypeOf(W)) ? "string" : M;
|
|
46479
46479
|
}, Ce = (_) => (M) => G(M) === _, oe = (_) => (M) => typeof M === _, U = Ce("string"), be = Ce("object"), q = Ce("array"), De = oe("boolean"), tt = (_) => _ == null, pt = (_) => !tt(_), cn = oe("function"), kt = oe("number"), io = () => {
|
|
46480
46480
|
}, lo = (_, M) => (W) => _(M(W)), eo = (_) => () => _, Ot = (_, M) => _ === M;
|
|
46481
46481
|
function Ls(_, ...M) {
|
|
@@ -47618,12 +47618,12 @@ Required: ` + m.join(", "));
|
|
|
47618
47618
|
})();
|
|
47619
47619
|
(function() {
|
|
47620
47620
|
var A = tinymce.util.Tools.resolve("tinymce.PluginManager");
|
|
47621
|
-
const
|
|
47621
|
+
const te = (K, ge, Ee) => {
|
|
47622
47622
|
var Ie;
|
|
47623
47623
|
return Ee(K, ge.prototype) ? !0 : ((Ie = K.constructor) === null || Ie === void 0 ? void 0 : Ie.name) === ge.name;
|
|
47624
47624
|
}, G = (K) => {
|
|
47625
47625
|
const ge = typeof K;
|
|
47626
|
-
return K === null ? "null" : ge === "object" && Array.isArray(K) ? "array" : ge === "object" &&
|
|
47626
|
+
return K === null ? "null" : ge === "object" && Array.isArray(K) ? "array" : ge === "object" && te(K, String, (Ee, Ie) => Ie.isPrototypeOf(Ee)) ? "string" : ge;
|
|
47627
47627
|
}, Ce = (K) => (ge) => G(ge) === K, oe = (K) => (ge) => typeof ge === K, U = (K) => (ge) => K === ge, be = Ce("string"), q = Ce("object"), De = Ce("array"), tt = U(null), pt = oe("boolean"), cn = (K) => K == null, kt = (K) => !cn(K), io = oe("function"), lo = (K, ge) => {
|
|
47628
47628
|
if (De(K)) {
|
|
47629
47629
|
for (let Ee = 0, Ie = K.length; Ee < Ie; ++Ee)
|
|
@@ -48375,13 +48375,13 @@ Required: ` + m.join(", "));
|
|
|
48375
48375
|
})();
|
|
48376
48376
|
(function() {
|
|
48377
48377
|
var A = tinymce.util.Tools.resolve("tinymce.PluginManager");
|
|
48378
|
-
const
|
|
48378
|
+
const te = Object.getPrototypeOf, G = (I, J, le) => {
|
|
48379
48379
|
var Fe;
|
|
48380
48380
|
return le(I, J.prototype) ? !0 : ((Fe = I.constructor) === null || Fe === void 0 ? void 0 : Fe.name) === J.name;
|
|
48381
48381
|
}, Ce = (I) => {
|
|
48382
48382
|
const J = typeof I;
|
|
48383
48383
|
return I === null ? "null" : J === "object" && Array.isArray(I) ? "array" : J === "object" && G(I, String, (le, Fe) => Fe.isPrototypeOf(le)) ? "string" : J;
|
|
48384
|
-
}, oe = (I) => (J) => Ce(J) === I, U = (I) => (J) => typeof J === I, be = (I) => (J) => I === J, q = (I, J) => tt(I) && G(I, J, (le, Fe) =>
|
|
48384
|
+
}, oe = (I) => (J) => Ce(J) === I, U = (I) => (J) => typeof J === I, be = (I) => (J) => I === J, q = (I, J) => tt(I) && G(I, J, (le, Fe) => te(le) === Fe), De = oe("string"), tt = oe("object"), pt = (I) => q(I, Object), cn = oe("array"), kt = be(null), io = U("boolean"), lo = (I) => I == null, eo = (I) => !lo(I), Ot = U("function"), Ls = U("number"), dn = (I, J) => {
|
|
48385
48385
|
if (cn(I)) {
|
|
48386
48386
|
for (let le = 0, Fe = I.length; le < Fe; ++le)
|
|
48387
48387
|
if (!J(I[le]))
|
|
@@ -49244,12 +49244,12 @@ Required: ` + m.join(", "));
|
|
|
49244
49244
|
})();
|
|
49245
49245
|
(function() {
|
|
49246
49246
|
var A = tinymce.util.Tools.resolve("tinymce.PluginManager");
|
|
49247
|
-
const
|
|
49247
|
+
const te = (x, T, V) => {
|
|
49248
49248
|
var X;
|
|
49249
49249
|
return V(x, T.prototype) ? !0 : ((X = x.constructor) === null || X === void 0 ? void 0 : X.name) === T.name;
|
|
49250
49250
|
}, G = (x) => {
|
|
49251
49251
|
const T = typeof x;
|
|
49252
|
-
return x === null ? "null" : T === "object" && Array.isArray(x) ? "array" : T === "object" &&
|
|
49252
|
+
return x === null ? "null" : T === "object" && Array.isArray(x) ? "array" : T === "object" && te(x, String, (V, X) => X.isPrototypeOf(V)) ? "string" : T;
|
|
49253
49253
|
}, Ce = (x) => (T) => G(T) === x, oe = (x) => (T) => typeof T === x, U = (x) => (T) => x === T, be = Ce("string"), q = Ce("array"), De = oe("boolean"), tt = U(void 0), pt = (x) => x == null, cn = (x) => !pt(x), kt = oe("function"), io = oe("number"), lo = () => {
|
|
49254
49254
|
}, eo = (x, T) => (V) => x(T(V)), Ot = (x) => () => x, Ls = (x) => x, dn = (x, T) => x === T;
|
|
49255
49255
|
function he(x, ...T) {
|
|
@@ -51409,7 +51409,7 @@ Required: ` + T.join(", "));
|
|
|
51409
51409
|
})();
|
|
51410
51410
|
(function() {
|
|
51411
51411
|
var A = tinymce.util.Tools.resolve("tinymce.PluginManager");
|
|
51412
|
-
const
|
|
51412
|
+
const te = (q, De) => {
|
|
51413
51413
|
q.focus(), q.undoManager.transact(() => {
|
|
51414
51414
|
q.setContent(De);
|
|
51415
51415
|
}), q.selection.setCursorLocation(), q.nodeChanged();
|
|
@@ -51440,7 +51440,7 @@ Required: ` + T.join(", "));
|
|
|
51440
51440
|
],
|
|
51441
51441
|
initialData: { code: De },
|
|
51442
51442
|
onSubmit: (tt) => {
|
|
51443
|
-
|
|
51443
|
+
te(q, tt.getData().code), tt.close();
|
|
51444
51444
|
}
|
|
51445
51445
|
});
|
|
51446
51446
|
}, oe = (q) => {
|
|
@@ -51727,7 +51727,7 @@ const fte = { class: "font-bold ptext-lg dark:text-white" }, gte = ["id"], hte =
|
|
|
51727
51727
|
description: { type: String, default: "" }
|
|
51728
51728
|
},
|
|
51729
51729
|
emits: ["update:modelValue", "keydown"],
|
|
51730
|
-
setup(A, { expose:
|
|
51730
|
+
setup(A, { expose: te, emit: G }) {
|
|
51731
51731
|
const Ce = A, oe = G, U = co(null);
|
|
51732
51732
|
let be = null;
|
|
51733
51733
|
Og(async () => {
|
|
@@ -51766,7 +51766,7 @@ const fte = { class: "font-bold ptext-lg dark:text-white" }, gte = ["id"], hte =
|
|
|
51766
51766
|
oe("update:modelValue", tt);
|
|
51767
51767
|
}
|
|
51768
51768
|
});
|
|
51769
|
-
return
|
|
51769
|
+
return te({ focus: () => U.value.focus() }), (tt, pt) => (ue(), de(jn, null, [
|
|
51770
51770
|
A.show ? (ue(), de("div", {
|
|
51771
51771
|
key: 0,
|
|
51772
51772
|
class: zt(A.field_name)
|
|
@@ -51863,8 +51863,8 @@ const fte = { class: "font-bold ptext-lg dark:text-white" }, gte = ["id"], hte =
|
|
|
51863
51863
|
return 0;
|
|
51864
51864
|
if (this.limit === 0)
|
|
51865
51865
|
return this.lastPage;
|
|
51866
|
-
for (var A = this.currentPage,
|
|
51867
|
-
(De === 1 || De ===
|
|
51866
|
+
for (var A = this.currentPage, te = this.lastPage, G = this.limit, Ce = A - G, oe = A + G + 1, U = [], be = [], q, De = 1; De <= te; De++)
|
|
51867
|
+
(De === 1 || De === te || De >= Ce && De < oe) && U.push(De);
|
|
51868
51868
|
return U.forEach(function(tt) {
|
|
51869
51869
|
q && (tt - q === 2 ? be.push(q + 1) : tt - q !== 1 && be.push("...")), be.push(tt), q = tt;
|
|
51870
51870
|
}), be;
|
|
@@ -51910,8 +51910,8 @@ const fte = { class: "font-bold ptext-lg dark:text-white" }, gte = ["id"], hte =
|
|
|
51910
51910
|
}
|
|
51911
51911
|
},
|
|
51912
51912
|
pageButtonEvents: (A) => ({
|
|
51913
|
-
click: (
|
|
51914
|
-
|
|
51913
|
+
click: (te) => {
|
|
51914
|
+
te.preventDefault(), this.selectPage(A);
|
|
51915
51915
|
}
|
|
51916
51916
|
})
|
|
51917
51917
|
});
|
|
@@ -51989,7 +51989,7 @@ const fte = { class: "font-bold ptext-lg dark:text-white" }, gte = ["id"], hte =
|
|
|
51989
51989
|
d: "m1 9 4-4-4-4"
|
|
51990
51990
|
})
|
|
51991
51991
|
], -1);
|
|
51992
|
-
function Bte(A,
|
|
51992
|
+
function Bte(A, te, G, Ce, oe, U) {
|
|
51993
51993
|
const be = Rd("RenderlessPagination");
|
|
51994
51994
|
return ue(), ju(be, {
|
|
51995
51995
|
data: G.data,
|
|
@@ -52100,7 +52100,7 @@ const iq = /* @__PURE__ */ zr(xte, [["render", Bte]]), Pte = {
|
|
|
52100
52100
|
default: !1
|
|
52101
52101
|
}
|
|
52102
52102
|
},
|
|
52103
|
-
setup(A, { expose:
|
|
52103
|
+
setup(A, { expose: te }) {
|
|
52104
52104
|
const G = co(""), Ce = co(""), oe = co(""), U = co("Cancel"), be = co(!1), q = co(!1), De = co(void 0), tt = co(void 0), pt = (eo = {}) => (G.value = eo.title, Ce.value = eo.message, oe.value = eo.okButton, eo.cancelButton && (U.value = eo.cancelButton), be.value = !0, new Promise((Ot, Ls) => {
|
|
52105
52105
|
De.value = Ot, tt.value = Ls;
|
|
52106
52106
|
})), cn = () => {
|
|
@@ -52112,7 +52112,7 @@ const iq = /* @__PURE__ */ zr(xte, [["render", Bte]]), Pte = {
|
|
|
52112
52112
|
}, lo = () => {
|
|
52113
52113
|
be.value = !1, De.value(!1);
|
|
52114
52114
|
};
|
|
52115
|
-
return
|
|
52115
|
+
return te({
|
|
52116
52116
|
show: pt,
|
|
52117
52117
|
showLoading: cn,
|
|
52118
52118
|
hideLoading: kt
|
|
@@ -52241,8 +52241,8 @@ const iq = /* @__PURE__ */ zr(xte, [["render", Bte]]), Pte = {
|
|
|
52241
52241
|
message: "Are you sure you want to delete the selected items?",
|
|
52242
52242
|
okButton: "Yes, delete it"
|
|
52243
52243
|
}))
|
|
52244
|
-
this.$refs.ConfirmationDelete.showLoading(), this.checkedIds.forEach((
|
|
52245
|
-
axios.delete(`${this.xprops.route}/${
|
|
52244
|
+
this.$refs.ConfirmationDelete.showLoading(), this.checkedIds.forEach((te) => {
|
|
52245
|
+
axios.delete(`${this.xprops.route}/${te}`).then(() => {
|
|
52246
52246
|
}).catch((G) => {
|
|
52247
52247
|
console.log(G);
|
|
52248
52248
|
});
|
|
@@ -52261,7 +52261,7 @@ const iq = /* @__PURE__ */ zr(xte, [["render", Bte]]), Pte = {
|
|
|
52261
52261
|
this.checkedIds = [];
|
|
52262
52262
|
},
|
|
52263
52263
|
toggleCheck(A) {
|
|
52264
|
-
this.checkedIds.includes(A) ? this.checkedIds = this.checkedIds.filter((
|
|
52264
|
+
this.checkedIds.includes(A) ? this.checkedIds = this.checkedIds.filter((te) => te !== A) : this.checkedIds.push(A);
|
|
52265
52265
|
},
|
|
52266
52266
|
editAction(A) {
|
|
52267
52267
|
this.$emit("editAction", A);
|
|
@@ -52274,7 +52274,7 @@ const iq = /* @__PURE__ */ zr(xte, [["render", Bte]]), Pte = {
|
|
|
52274
52274
|
},
|
|
52275
52275
|
GetItemLists(A = 1) {
|
|
52276
52276
|
this.isLoading = !0, this.page = A;
|
|
52277
|
-
const
|
|
52277
|
+
const te = {
|
|
52278
52278
|
sort: this.sortField,
|
|
52279
52279
|
order: this.sortOrder,
|
|
52280
52280
|
s: this.search,
|
|
@@ -52282,34 +52282,31 @@ const iq = /* @__PURE__ */ zr(xte, [["render", Bte]]), Pte = {
|
|
|
52282
52282
|
page: this.page,
|
|
52283
52283
|
...this.dynamicFilters
|
|
52284
52284
|
};
|
|
52285
|
-
axios.get(this.xprops.route_get_data, { params:
|
|
52285
|
+
axios.get(this.xprops.route_get_data, { params: te }).then((G) => {
|
|
52286
52286
|
this.itemLists = G.data, this.isLoading = !1;
|
|
52287
52287
|
}).catch((G) => {
|
|
52288
52288
|
console.error(G), this.isLoading = !1;
|
|
52289
52289
|
});
|
|
52290
52290
|
},
|
|
52291
|
-
updateSortColumn(A,
|
|
52292
|
-
|
|
52291
|
+
updateSortColumn(A, te) {
|
|
52292
|
+
te && (A === this.sortField ? this.sortOrder = this.sortOrder === "asc" ? "desc" : "asc" : (this.sortField = A, this.sortOrder = "asc"), this.GetItemLists(this.page));
|
|
52293
52293
|
},
|
|
52294
52294
|
handleSearch() {
|
|
52295
|
-
this.sortField = this.columns[0].field_name, this.sortOrder = "asc", this.page = 1, this.GetItemLists(this.page);
|
|
52295
|
+
this.sortField = this.columns && this.columns.length > 0 ? this.columns[0].field_name : "", this.sortOrder = "asc", this.page = 1, this.GetItemLists(this.page);
|
|
52296
52296
|
}
|
|
52297
52297
|
},
|
|
52298
52298
|
mounted() {
|
|
52299
|
-
this.GetItemLists(), this.isMounted = !0
|
|
52299
|
+
this.GetItemLists(), this.isMounted = !0;
|
|
52300
52300
|
},
|
|
52301
52301
|
watch: {
|
|
52302
|
-
columns(A, ee) {
|
|
52303
|
-
console.log("Columns changed:", A);
|
|
52304
|
-
},
|
|
52305
52302
|
searchFilter() {
|
|
52306
52303
|
this.filteredOptions.length === 0 ? this.selected = {} : this.selected = this.filteredOptions[0];
|
|
52307
52304
|
},
|
|
52308
52305
|
perPage(A) {
|
|
52309
52306
|
this.page = 1, this.perPage = A, this.GetItemLists(this.page);
|
|
52310
52307
|
},
|
|
52311
|
-
refreshData(A,
|
|
52312
|
-
this.isMounted && A !==
|
|
52308
|
+
refreshData(A, te) {
|
|
52309
|
+
this.isMounted && A !== te && this.GetItemLists();
|
|
52313
52310
|
},
|
|
52314
52311
|
dynamicFilters: {
|
|
52315
52312
|
handler(A) {
|
|
@@ -52390,7 +52387,7 @@ const iq = /* @__PURE__ */ zr(xte, [["render", Bte]]), Pte = {
|
|
|
52390
52387
|
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",
|
|
52391
52388
|
"data-label": ""
|
|
52392
52389
|
}, wne = ["checked", "onChange"], xne = ["data-label"], Cne = { class: "overflow-auto max-h-40" }, _ne = { 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" };
|
|
52393
|
-
function Sne(A,
|
|
52390
|
+
function Sne(A, te, G, Ce, oe, U) {
|
|
52394
52391
|
const be = Rd("DynamicConfirmation"), q = Rd("dropdown"), De = Rd("GlDropdown"), tt = Rd("GlTextInput"), pt = Rd("gl-button"), cn = Rd("TailwindPagination");
|
|
52395
52392
|
return ue(), de(jn, null, [
|
|
52396
52393
|
ui(be, { ref: "ConfirmationDelete" }, null, 512),
|
|
@@ -52403,7 +52400,7 @@ function Sne(A, ee, G, Ce, oe, U) {
|
|
|
52403
52400
|
has_cancel: !1,
|
|
52404
52401
|
options: oe.pageOptions,
|
|
52405
52402
|
modelValue: oe.perPage,
|
|
52406
|
-
"onUpdate:modelValue":
|
|
52403
|
+
"onUpdate:modelValue": te[0] || (te[0] = (kt) => oe.perPage = kt),
|
|
52407
52404
|
is_required: !1,
|
|
52408
52405
|
field_name: "perPage",
|
|
52409
52406
|
label_name: "",
|
|
@@ -52419,8 +52416,8 @@ function Sne(A, ee, G, Ce, oe, U) {
|
|
|
52419
52416
|
sne,
|
|
52420
52417
|
fr(R("input", {
|
|
52421
52418
|
type: "text",
|
|
52422
|
-
"onUpdate:modelValue":
|
|
52423
|
-
onInput:
|
|
52419
|
+
"onUpdate:modelValue": te[1] || (te[1] = (kt) => oe.search = kt),
|
|
52420
|
+
onInput: te[2] || (te[2] = (kt) => U.handleSearch()),
|
|
52424
52421
|
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",
|
|
52425
52422
|
placeholder: "Search ..."
|
|
52426
52423
|
}, null, 544), [
|
|
@@ -52587,7 +52584,7 @@ function Sne(A, ee, G, Ce, oe, U) {
|
|
|
52587
52584
|
field: lo.field_name,
|
|
52588
52585
|
xprops: G.xprops,
|
|
52589
52586
|
tdProps: lo.tdProps,
|
|
52590
|
-
onDeleteAction:
|
|
52587
|
+
onDeleteAction: te[3] || (te[3] = (Ot) => U.GetItemLists()),
|
|
52591
52588
|
onEditAction: (Ot) => U.editAction(kt),
|
|
52592
52589
|
onGeneralAction: (Ot) => U.generalAction(kt)
|
|
52593
52590
|
}, null, 40, ["row", "field", "xprops", "tdProps", "onEditAction", "onGeneralAction"])) : (ue(), de(jn, { key: 1 }, [
|
|
@@ -52648,16 +52645,16 @@ const Yce = /* @__PURE__ */ zr(Kte, [["render", Sne]]), kne = {
|
|
|
52648
52645
|
return Math.ceil(this.filteredData.length / this.itemsPerPage);
|
|
52649
52646
|
},
|
|
52650
52647
|
paginatedData() {
|
|
52651
|
-
const A = (this.currentPage - 1) * this.itemsPerPage,
|
|
52652
|
-
return this.filteredData.slice(A,
|
|
52648
|
+
const A = (this.currentPage - 1) * this.itemsPerPage, te = A + this.itemsPerPage;
|
|
52649
|
+
return this.filteredData.slice(A, te);
|
|
52653
52650
|
},
|
|
52654
52651
|
displayedPageNumbers() {
|
|
52655
52652
|
let A = Math.max(
|
|
52656
52653
|
this.currentPage - Math.floor(this.maxDisplayedPages / 2),
|
|
52657
52654
|
1
|
|
52658
|
-
),
|
|
52659
|
-
return
|
|
52660
|
-
{ length:
|
|
52655
|
+
), te = A + this.maxDisplayedPages - 1;
|
|
52656
|
+
return te > this.totalPages && (te = this.totalPages, A = Math.max(te - this.maxDisplayedPages + 1, 1)), Array.from(
|
|
52657
|
+
{ length: te - A + 1 },
|
|
52661
52658
|
(G, Ce) => A + Ce
|
|
52662
52659
|
);
|
|
52663
52660
|
},
|
|
@@ -52692,7 +52689,7 @@ const Yce = /* @__PURE__ */ zr(Kte, [["render", Sne]]), kne = {
|
|
|
52692
52689
|
A === this.sortKey ? this.sortOrder *= -1 : (this.sortKey = A, this.sortOrder = 1);
|
|
52693
52690
|
},
|
|
52694
52691
|
sortData(A) {
|
|
52695
|
-
return this.sortKey ? A.slice().sort((
|
|
52692
|
+
return this.sortKey ? A.slice().sort((te, G) => (te[this.sortKey] < G[this.sortKey] ? -1 : 1) * this.sortOrder) : A;
|
|
52696
52693
|
},
|
|
52697
52694
|
previousPage() {
|
|
52698
52695
|
this.currentPage > 1 && this.currentPage--;
|
|
@@ -52826,7 +52823,7 @@ const Yce = /* @__PURE__ */ zr(Kte, [["render", Sne]]), kne = {
|
|
|
52826
52823
|
moe,
|
|
52827
52824
|
foe
|
|
52828
52825
|
];
|
|
52829
|
-
function hoe(A,
|
|
52826
|
+
function hoe(A, te, G, Ce, oe, U) {
|
|
52830
52827
|
const be = Rd("dropdown");
|
|
52831
52828
|
return ue(), de("div", Tne, [
|
|
52832
52829
|
R("div", Ene, [
|
|
@@ -52837,7 +52834,7 @@ function hoe(A, ee, G, Ce, oe, U) {
|
|
|
52837
52834
|
has_cancel: !1,
|
|
52838
52835
|
options: oe.showNoOfEntries,
|
|
52839
52836
|
modelValue: oe.itemsPerPage,
|
|
52840
|
-
"onUpdate:modelValue":
|
|
52837
|
+
"onUpdate:modelValue": te[0] || (te[0] = (q) => oe.itemsPerPage = q),
|
|
52841
52838
|
is_required: !1,
|
|
52842
52839
|
field_name: "NoOfEntries",
|
|
52843
52840
|
label_name: "",
|
|
@@ -52853,7 +52850,7 @@ function hoe(A, ee, G, Ce, oe, U) {
|
|
|
52853
52850
|
Bne,
|
|
52854
52851
|
fr(R("input", {
|
|
52855
52852
|
type: "text",
|
|
52856
|
-
"onUpdate:modelValue":
|
|
52853
|
+
"onUpdate:modelValue": te[1] || (te[1] = (q) => oe.search = q),
|
|
52857
52854
|
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",
|
|
52858
52855
|
placeholder: "Search ..."
|
|
52859
52856
|
}, null, 512), [
|
|
@@ -52902,7 +52899,7 @@ function hoe(A, ee, G, Ce, oe, U) {
|
|
|
52902
52899
|
field: tt.field_name,
|
|
52903
52900
|
xprops: G.xprops,
|
|
52904
52901
|
tdProps: tt.tdProps,
|
|
52905
|
-
onDeleteAction:
|
|
52902
|
+
onDeleteAction: te[2] || (te[2] = (cn) => U.GetItemLists()),
|
|
52906
52903
|
onEditAction: (cn) => U.editAction(q),
|
|
52907
52904
|
onGeneralAction: (cn) => U.generalAction(q)
|
|
52908
52905
|
}, null, 40, ["row", "field", "xprops", "tdProps", "onEditAction", "onGeneralAction"])) : (ue(), de(jn, { key: 1 }, [
|
|
@@ -52918,13 +52915,13 @@ function hoe(A, ee, G, Ce, oe, U) {
|
|
|
52918
52915
|
R("div", Kne, [
|
|
52919
52916
|
R("a", {
|
|
52920
52917
|
href: "#",
|
|
52921
|
-
onClick:
|
|
52918
|
+
onClick: te[3] || (te[3] = za((...q) => U.previousPage && U.previousPage(...q), ["prevent"])),
|
|
52922
52919
|
disabled: oe.currentPage === 1,
|
|
52923
52920
|
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"
|
|
52924
52921
|
}, "Previous", 8, Yne),
|
|
52925
52922
|
R("a", {
|
|
52926
52923
|
href: "#",
|
|
52927
|
-
onClick:
|
|
52924
|
+
onClick: te[4] || (te[4] = za((...q) => U.nextPage && U.nextPage(...q), ["prevent"])),
|
|
52928
52925
|
disabled: oe.currentPage === U.totalPages,
|
|
52929
52926
|
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"
|
|
52930
52927
|
}, "Next", 8, Xne)
|
|
@@ -52947,7 +52944,7 @@ function hoe(A, ee, G, Ce, oe, U) {
|
|
|
52947
52944
|
R("li", null, [
|
|
52948
52945
|
R("a", {
|
|
52949
52946
|
href: "#",
|
|
52950
|
-
onClick:
|
|
52947
|
+
onClick: te[5] || (te[5] = za((...q) => U.previousPage && U.previousPage(...q), ["prevent"])),
|
|
52951
52948
|
disabled: oe.currentPage === 1,
|
|
52952
52949
|
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"
|
|
52953
52950
|
}, coe, 8, roe)
|
|
@@ -52974,7 +52971,7 @@ function hoe(A, ee, G, Ce, oe, U) {
|
|
|
52974
52971
|
R("li", null, [
|
|
52975
52972
|
R("a", {
|
|
52976
52973
|
href: "#",
|
|
52977
|
-
onClick:
|
|
52974
|
+
onClick: te[6] || (te[6] = za((...q) => U.nextPage && U.nextPage(...q), ["prevent"])),
|
|
52978
52975
|
disabled: oe.currentPage === U.totalPages,
|
|
52979
52976
|
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"
|
|
52980
52977
|
}, goe, 8, doe)
|
|
@@ -53029,11 +53026,11 @@ const Xce = /* @__PURE__ */ zr(kne, [["render", hoe]]), poe = {
|
|
|
53029
53026
|
},
|
|
53030
53027
|
methods: {
|
|
53031
53028
|
groupBy(A) {
|
|
53032
|
-
return this.itemLists.data ? this.itemLists.data.reduce((
|
|
53029
|
+
return this.itemLists.data ? this.itemLists.data.reduce((te, G) => {
|
|
53033
53030
|
const Ce = G[A];
|
|
53034
|
-
|
|
53031
|
+
te[Ce] || (te[Ce] = []);
|
|
53035
53032
|
const oe = { ...G };
|
|
53036
|
-
return delete oe[A],
|
|
53033
|
+
return delete oe[A], te[Ce].push(oe), te;
|
|
53037
53034
|
}, {}) : [];
|
|
53038
53035
|
},
|
|
53039
53036
|
editAction(A) {
|
|
@@ -53044,21 +53041,21 @@ const Xce = /* @__PURE__ */ zr(kne, [["render", hoe]]), poe = {
|
|
|
53044
53041
|
},
|
|
53045
53042
|
GetItemLists(A = 1) {
|
|
53046
53043
|
this.isLoading = !0, this.page = A;
|
|
53047
|
-
const
|
|
53044
|
+
const te = {
|
|
53048
53045
|
sort: this.sortField,
|
|
53049
53046
|
order: this.sortOrder,
|
|
53050
53047
|
s: this.search,
|
|
53051
53048
|
limit: this.perPage,
|
|
53052
53049
|
page: this.page
|
|
53053
53050
|
};
|
|
53054
|
-
axios.get(this.xprops.route_get_data, { params:
|
|
53051
|
+
axios.get(this.xprops.route_get_data, { params: te }).then((G) => {
|
|
53055
53052
|
this.itemLists = G.data, this.isLoading = !1;
|
|
53056
53053
|
}).catch((G) => {
|
|
53057
53054
|
console.error(G), this.isLoading = !1;
|
|
53058
53055
|
});
|
|
53059
53056
|
},
|
|
53060
|
-
updateSortColumn(A,
|
|
53061
|
-
|
|
53057
|
+
updateSortColumn(A, te) {
|
|
53058
|
+
te && (A === this.sortField ? this.sortOrder = this.sortOrder === "asc" ? "desc" : "asc" : (this.sortField = A, this.sortOrder = "asc"), this.GetItemLists(this.page));
|
|
53062
53059
|
},
|
|
53063
53060
|
handleSearch() {
|
|
53064
53061
|
this.sortField = this.columns[0].field_name, this.sortOrder = "asc", this.page = 1, this.GetItemLists(this.page);
|
|
@@ -53074,8 +53071,8 @@ const Xce = /* @__PURE__ */ zr(kne, [["render", hoe]]), poe = {
|
|
|
53074
53071
|
perPage(A) {
|
|
53075
53072
|
this.page = 1, this.perPage = A, this.GetItemLists(this.page);
|
|
53076
53073
|
},
|
|
53077
|
-
refreshData(A,
|
|
53078
|
-
this.isMounted && A !==
|
|
53074
|
+
refreshData(A, te) {
|
|
53075
|
+
this.isMounted && A !== te && this.GetItemLists();
|
|
53079
53076
|
}
|
|
53080
53077
|
}
|
|
53081
53078
|
}, boe = { class: "p-2" }, voe = { 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" }, yoe = { class: "flex items-center gap-2" }, woe = /* @__PURE__ */ R("span", { class: "font-medium" }, " Show ", -1), xoe = { style: { "margin-top": "9px" } }, Coe = /* @__PURE__ */ R("span", { class: "font-medium" }, " Entries ", -1), _oe = /* @__PURE__ */ R("label", {
|
|
@@ -53147,7 +53144,7 @@ const Xce = /* @__PURE__ */ zr(kne, [["render", hoe]]), poe = {
|
|
|
53147
53144
|
], -1), Noe = [
|
|
53148
53145
|
Poe
|
|
53149
53146
|
], Ioe = { 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" }, Loe = ["colspan"], Foe = ["data-label"], Hoe = { class: "overflow-auto max-h-40" }, Voe = { 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" };
|
|
53150
|
-
function zoe(A,
|
|
53147
|
+
function zoe(A, te, G, Ce, oe, U) {
|
|
53151
53148
|
const be = Rd("dropdown"), q = Rd("TailwindPagination");
|
|
53152
53149
|
return ue(), de("div", boe, [
|
|
53153
53150
|
R("div", voe, [
|
|
@@ -53158,7 +53155,7 @@ function zoe(A, ee, G, Ce, oe, U) {
|
|
|
53158
53155
|
has_cancel: !1,
|
|
53159
53156
|
options: oe.pageOptions,
|
|
53160
53157
|
modelValue: oe.perPage,
|
|
53161
|
-
"onUpdate:modelValue":
|
|
53158
|
+
"onUpdate:modelValue": te[0] || (te[0] = (De) => oe.perPage = De),
|
|
53162
53159
|
is_required: !1,
|
|
53163
53160
|
field_name: "perPage",
|
|
53164
53161
|
label_name: "",
|
|
@@ -53174,8 +53171,8 @@ function zoe(A, ee, G, Ce, oe, U) {
|
|
|
53174
53171
|
koe,
|
|
53175
53172
|
fr(R("input", {
|
|
53176
53173
|
type: "text",
|
|
53177
|
-
"onUpdate:modelValue":
|
|
53178
|
-
onInput:
|
|
53174
|
+
"onUpdate:modelValue": te[1] || (te[1] = (De) => oe.search = De),
|
|
53175
|
+
onInput: te[2] || (te[2] = (De) => U.handleSearch()),
|
|
53179
53176
|
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",
|
|
53180
53177
|
placeholder: "Search ..."
|
|
53181
53178
|
}, null, 544), [
|
|
@@ -53228,7 +53225,7 @@ function zoe(A, ee, G, Ce, oe, U) {
|
|
|
53228
53225
|
field: kt.field_name,
|
|
53229
53226
|
xprops: G.xprops,
|
|
53230
53227
|
tdProps: kt.tdProps,
|
|
53231
|
-
onDeleteAction:
|
|
53228
|
+
onDeleteAction: te[3] || (te[3] = (lo) => U.GetItemLists()),
|
|
53232
53229
|
onEditAction: (lo) => U.editAction(pt)
|
|
53233
53230
|
}, null, 40, ["row", "field", "xprops", "tdProps", "onEditAction"])) : (ue(), de(jn, { key: 1 }, [
|
|
53234
53231
|
Zn(dt(pt[kt.field_name]), 1)
|
|
@@ -53282,16 +53279,16 @@ const Jce = /* @__PURE__ */ zr(poe, [["render", zoe]]), Uoe = {
|
|
|
53282
53279
|
return Math.ceil(this.filteredData.length / this.itemsPerPage);
|
|
53283
53280
|
},
|
|
53284
53281
|
paginatedData() {
|
|
53285
|
-
const A = (this.currentPage - 1) * this.itemsPerPage,
|
|
53286
|
-
return this.filteredData.slice(A,
|
|
53282
|
+
const A = (this.currentPage - 1) * this.itemsPerPage, te = A + this.itemsPerPage;
|
|
53283
|
+
return this.filteredData.slice(A, te);
|
|
53287
53284
|
},
|
|
53288
53285
|
displayedPageNumbers() {
|
|
53289
53286
|
let A = Math.max(
|
|
53290
53287
|
this.currentPage - Math.floor(this.maxDisplayedPages / 2),
|
|
53291
53288
|
1
|
|
53292
|
-
),
|
|
53293
|
-
return
|
|
53294
|
-
{ length:
|
|
53289
|
+
), te = A + this.maxDisplayedPages - 1;
|
|
53290
|
+
return te > this.totalPages && (te = this.totalPages, A = Math.max(te - this.maxDisplayedPages + 1, 1)), Array.from(
|
|
53291
|
+
{ length: te - A + 1 },
|
|
53295
53292
|
(G, Ce) => A + Ce
|
|
53296
53293
|
);
|
|
53297
53294
|
},
|
|
@@ -53314,7 +53311,7 @@ const Jce = /* @__PURE__ */ zr(poe, [["render", zoe]]), Uoe = {
|
|
|
53314
53311
|
A === this.sortKey ? this.sortOrder *= -1 : (this.sortKey = A, this.sortOrder = 1);
|
|
53315
53312
|
},
|
|
53316
53313
|
sortData(A) {
|
|
53317
|
-
return this.sortKey ? A.slice().sort((
|
|
53314
|
+
return this.sortKey ? A.slice().sort((te, G) => (te[this.sortKey] < G[this.sortKey] ? -1 : 1) * this.sortOrder) : A;
|
|
53318
53315
|
},
|
|
53319
53316
|
previousPage() {
|
|
53320
53317
|
this.currentPage > 1 && this.currentPage--;
|
|
@@ -53396,7 +53393,7 @@ const Jce = /* @__PURE__ */ zr(poe, [["render", zoe]]), Uoe = {
|
|
|
53396
53393
|
Tse,
|
|
53397
53394
|
Ese
|
|
53398
53395
|
];
|
|
53399
|
-
function Dse(A,
|
|
53396
|
+
function Dse(A, te, G, Ce, oe, U) {
|
|
53400
53397
|
const be = Rd("dropdown");
|
|
53401
53398
|
return ue(), de("div", Woe, [
|
|
53402
53399
|
R("div", Zoe, [
|
|
@@ -53407,7 +53404,7 @@ function Dse(A, ee, G, Ce, oe, U) {
|
|
|
53407
53404
|
has_cancel: !1,
|
|
53408
53405
|
options: oe.showNoOfEntries,
|
|
53409
53406
|
modelValue: oe.itemsPerPage,
|
|
53410
|
-
"onUpdate:modelValue":
|
|
53407
|
+
"onUpdate:modelValue": te[0] || (te[0] = (q) => oe.itemsPerPage = q),
|
|
53411
53408
|
is_required: !1,
|
|
53412
53409
|
field_name: "NoOfEntries",
|
|
53413
53410
|
label_name: "",
|
|
@@ -53423,7 +53420,7 @@ function Dse(A, ee, G, Ce, oe, U) {
|
|
|
53423
53420
|
Joe,
|
|
53424
53421
|
fr(R("input", {
|
|
53425
53422
|
type: "text",
|
|
53426
|
-
"onUpdate:modelValue":
|
|
53423
|
+
"onUpdate:modelValue": te[1] || (te[1] = (q) => oe.search = q),
|
|
53427
53424
|
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",
|
|
53428
53425
|
placeholder: "Search ..."
|
|
53429
53426
|
}, null, 512), [
|
|
@@ -53470,13 +53467,13 @@ function Dse(A, ee, G, Ce, oe, U) {
|
|
|
53470
53467
|
R("div", ise, [
|
|
53471
53468
|
R("a", {
|
|
53472
53469
|
href: "#",
|
|
53473
|
-
onClick:
|
|
53470
|
+
onClick: te[2] || (te[2] = za((...q) => U.previousPage && U.previousPage(...q), ["prevent"])),
|
|
53474
53471
|
disabled: oe.currentPage === 1,
|
|
53475
53472
|
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"
|
|
53476
53473
|
}, "Previous", 8, use),
|
|
53477
53474
|
R("a", {
|
|
53478
53475
|
href: "#",
|
|
53479
|
-
onClick:
|
|
53476
|
+
onClick: te[3] || (te[3] = za((...q) => U.nextPage && U.nextPage(...q), ["prevent"])),
|
|
53480
53477
|
disabled: oe.currentPage === U.totalPages,
|
|
53481
53478
|
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"
|
|
53482
53479
|
}, "Next", 8, dse)
|
|
@@ -53499,7 +53496,7 @@ function Dse(A, ee, G, Ce, oe, U) {
|
|
|
53499
53496
|
R("li", null, [
|
|
53500
53497
|
R("a", {
|
|
53501
53498
|
href: "#",
|
|
53502
|
-
onClick:
|
|
53499
|
+
onClick: te[4] || (te[4] = za((...q) => U.previousPage && U.previousPage(...q), ["prevent"])),
|
|
53503
53500
|
disabled: oe.currentPage === 1,
|
|
53504
53501
|
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"
|
|
53505
53502
|
}, Cse, 8, yse)
|
|
@@ -53526,7 +53523,7 @@ function Dse(A, ee, G, Ce, oe, U) {
|
|
|
53526
53523
|
R("li", null, [
|
|
53527
53524
|
R("a", {
|
|
53528
53525
|
href: "#",
|
|
53529
|
-
onClick:
|
|
53526
|
+
onClick: te[5] || (te[5] = za((...q) => U.nextPage && U.nextPage(...q), ["prevent"])),
|
|
53530
53527
|
disabled: oe.currentPage === U.totalPages,
|
|
53531
53528
|
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"
|
|
53532
53529
|
}, Ase, 8, kse)
|
|
@@ -53542,10 +53539,10 @@ const Qce = /* @__PURE__ */ zr(Uoe, [["render", Dse]]), Ose = {
|
|
|
53542
53539
|
props: ["field", "row", "tdProps"],
|
|
53543
53540
|
methods: {
|
|
53544
53541
|
convertCronToHuman(A) {
|
|
53545
|
-
const [
|
|
53546
|
-
if (
|
|
53542
|
+
const [te, G, Ce, oe, U] = A.split(" ");
|
|
53543
|
+
if (te === "*" && G === "*" && Ce === "*" && oe === "*" && U === "*")
|
|
53547
53544
|
return "Runs every minute.";
|
|
53548
|
-
if (
|
|
53545
|
+
if (te === "0" && G === "0" && Ce === "*" && oe === "*" && U !== "*")
|
|
53549
53546
|
return `Runs at 12:00 AM every ${this.convertDayOfWeek(U)}.`;
|
|
53550
53547
|
const be = {
|
|
53551
53548
|
0: "Sunday",
|
|
@@ -53570,24 +53567,24 @@ const Qce = /* @__PURE__ */ zr(Uoe, [["render", Dse]]), Ose = {
|
|
|
53570
53567
|
11: "November",
|
|
53571
53568
|
12: "December",
|
|
53572
53569
|
"*": "every month"
|
|
53573
|
-
}, De = this.convertField(
|
|
53570
|
+
}, De = this.convertField(te, "minute", 59), tt = this.convertField(G, "hour", 23), pt = this.convertField(Ce, "day of the month", 31), cn = this.convertField(oe, "month", 12, q), kt = this.convertField(U, "day", 6, be);
|
|
53574
53571
|
return `Runs ${De} ${tt} ${pt} ${cn} on ${kt}.`;
|
|
53575
53572
|
},
|
|
53576
|
-
convertField(A,
|
|
53577
|
-
if (A === "*") return `every ${
|
|
53573
|
+
convertField(A, te, G, Ce = {}) {
|
|
53574
|
+
if (A === "*") return `every ${te}`;
|
|
53578
53575
|
if (A.includes("/")) {
|
|
53579
53576
|
const [oe, U] = A.split("/");
|
|
53580
|
-
return `every ${U} ${
|
|
53577
|
+
return `every ${U} ${te}${U > 1 ? "s" : ""} starting at ${oe}`;
|
|
53581
53578
|
}
|
|
53582
53579
|
if (A.includes("-")) {
|
|
53583
53580
|
const [oe, U] = A.split("-");
|
|
53584
|
-
return `${
|
|
53581
|
+
return `${te}s from ${oe} to ${U}`;
|
|
53585
53582
|
}
|
|
53586
53583
|
if (A.includes(",")) {
|
|
53587
53584
|
const oe = A.split(",").map((U) => Ce[U] || U);
|
|
53588
|
-
return `${
|
|
53585
|
+
return `${te}s on ${oe.join(", ")}`;
|
|
53589
53586
|
}
|
|
53590
|
-
return Ce[A] || `${
|
|
53587
|
+
return Ce[A] || `${te} ${A}`;
|
|
53591
53588
|
},
|
|
53592
53589
|
convertDayOfWeek(A) {
|
|
53593
53590
|
return {
|
|
@@ -53601,15 +53598,15 @@ const Qce = /* @__PURE__ */ zr(Uoe, [["render", Dse]]), Ose = {
|
|
|
53601
53598
|
}[A] || "Invalid day";
|
|
53602
53599
|
},
|
|
53603
53600
|
formatHour(A) {
|
|
53604
|
-
const
|
|
53605
|
-
return `${(
|
|
53601
|
+
const te = parseInt(A, 10), G = te >= 12 ? "PM" : "AM";
|
|
53602
|
+
return `${(te % 12 || 12).toString().padStart(2, "0")}:00 ${G}`;
|
|
53606
53603
|
}
|
|
53607
53604
|
}
|
|
53608
53605
|
}, Rse = {
|
|
53609
53606
|
key: 0,
|
|
53610
53607
|
class: "flex flex-wrap gap-2"
|
|
53611
53608
|
}, $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" };
|
|
53612
|
-
function Mse(A,
|
|
53609
|
+
function Mse(A, te, G, Ce, oe, U) {
|
|
53613
53610
|
return G.row[G.field] ? (ue(), de("div", Rse, [
|
|
53614
53611
|
R("span", $se, dt(U.convertCronToHuman(G.row[G.field])), 1)
|
|
53615
53612
|
])) : qe("", !0);
|
|
@@ -53634,7 +53631,7 @@ const eie = /* @__PURE__ */ zr(Ose, [["render", Mse]]), Bse = {
|
|
|
53634
53631
|
}), {};
|
|
53635
53632
|
}
|
|
53636
53633
|
};
|
|
53637
|
-
function Pse(A,
|
|
53634
|
+
function Pse(A, te, G, Ce, oe, U) {
|
|
53638
53635
|
return ue(), de("div", null, [
|
|
53639
53636
|
Zi(A.$slots, "default")
|
|
53640
53637
|
]);
|
|
@@ -53647,7 +53644,7 @@ const tie = /* @__PURE__ */ zr(Bse, [["render", Pse]]), Nse = {
|
|
|
53647
53644
|
}
|
|
53648
53645
|
},
|
|
53649
53646
|
setup() {
|
|
53650
|
-
const A = co(!1),
|
|
53647
|
+
const A = co(!1), te = sq("accordionsWrapper"), Ce = (() => {
|
|
53651
53648
|
var tt = (/* @__PURE__ */ new Date()).getTime();
|
|
53652
53649
|
typeof performance < "u" && typeof performance.now == "function" && (tt += performance.now());
|
|
53653
53650
|
var pt = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(cn) {
|
|
@@ -53655,13 +53652,13 @@ const tie = /* @__PURE__ */ zr(Bse, [["render", Pse]]), Nse = {
|
|
|
53655
53652
|
return tt = Math.floor(tt / 16), (cn === "x" ? kt : kt & 3 | 8).toString(16);
|
|
53656
53653
|
});
|
|
53657
53654
|
return pt;
|
|
53658
|
-
})(), oe = { isOpen: A, id: Ce }, U = bu(() =>
|
|
53655
|
+
})(), oe = { isOpen: A, id: Ce }, U = bu(() => te.accordions.value), be = bu(() => U.value.length > 0 && U.value[0].id === Ce), q = bu(() => U.value.length > 0 && U.value[U.value.length - 1].id === Ce);
|
|
53659
53656
|
return Og(() => {
|
|
53660
|
-
|
|
53657
|
+
te.registerAccordion(oe);
|
|
53661
53658
|
}), Nq(() => {
|
|
53662
|
-
|
|
53659
|
+
te.unregisterAccordion(oe);
|
|
53663
53660
|
}), { isOpen: A, isFirstAccordion: be, isLastAccordion: q, toggle: () => {
|
|
53664
|
-
|
|
53661
|
+
te.toggleAccordion(oe);
|
|
53665
53662
|
} };
|
|
53666
53663
|
}
|
|
53667
53664
|
}, Ise = { class: "flex items-center" }, Lse = {
|
|
@@ -53695,11 +53692,11 @@ const tie = /* @__PURE__ */ zr(Bse, [["render", Pse]]), Nse = {
|
|
|
53695
53692
|
}, null, -1), Use = [
|
|
53696
53693
|
zse
|
|
53697
53694
|
];
|
|
53698
|
-
function Wse(A,
|
|
53695
|
+
function Wse(A, te, G, Ce, oe, U) {
|
|
53699
53696
|
return ue(), de("div", null, [
|
|
53700
53697
|
R("h2", null, [
|
|
53701
53698
|
R("button", {
|
|
53702
|
-
onClick:
|
|
53699
|
+
onClick: te[0] || (te[0] = (...be) => Ce.toggle && Ce.toggle(...be)),
|
|
53703
53700
|
type: "button",
|
|
53704
53701
|
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", {
|
|
53705
53702
|
"rounded-t-xl": Ce.isFirstAccordion,
|
|
@@ -53798,12 +53795,12 @@ const nie = /* @__PURE__ */ zr(Nse, [["render", Wse]]), Zse = {
|
|
|
53798
53795
|
}
|
|
53799
53796
|
},
|
|
53800
53797
|
emits: ["remove"],
|
|
53801
|
-
setup(A, { emit:
|
|
53798
|
+
setup(A, { emit: te }) {
|
|
53802
53799
|
const G = A;
|
|
53803
53800
|
Og(() => {
|
|
53804
53801
|
setTimeout(() => Ce("remove"), G.duration);
|
|
53805
53802
|
});
|
|
53806
|
-
const Ce =
|
|
53803
|
+
const Ce = te;
|
|
53807
53804
|
return (oe, U) => (ue(), de("div", Zse, [
|
|
53808
53805
|
G.type === "success" ? (ue(), de("div", jse, Kse)) : qe("", !0),
|
|
53809
53806
|
G.type === "error" ? (ue(), de("div", Yse, Qse)) : qe("", !0),
|
|
@@ -53821,7 +53818,7 @@ const nie = /* @__PURE__ */ zr(Nse, [["render", Wse]]), Zse = {
|
|
|
53821
53818
|
}, oie = {
|
|
53822
53819
|
__name: "GlToastList",
|
|
53823
53820
|
setup(A) {
|
|
53824
|
-
function
|
|
53821
|
+
function te(G) {
|
|
53825
53822
|
Ry.methods.remove(G);
|
|
53826
53823
|
}
|
|
53827
53824
|
return (G, Ce) => (ue(), ju(Iq, {
|
|
@@ -53838,7 +53835,7 @@ const nie = /* @__PURE__ */ zr(Nse, [["render", Wse]]), Zse = {
|
|
|
53838
53835
|
message: oe.message,
|
|
53839
53836
|
type: oe.type,
|
|
53840
53837
|
duration: oe.duration,
|
|
53841
|
-
onRemove: (be) =>
|
|
53838
|
+
onRemove: (be) => te(U)
|
|
53842
53839
|
}, null, 8, ["message", "type", "duration", "onRemove"]))), 128))
|
|
53843
53840
|
]),
|
|
53844
53841
|
_: 1
|
|
@@ -53885,7 +53882,7 @@ const nie = /* @__PURE__ */ zr(Nse, [["render", Wse]]), Zse = {
|
|
|
53885
53882
|
}
|
|
53886
53883
|
},
|
|
53887
53884
|
emits: ["deleteAction"],
|
|
53888
|
-
setup(A, { emit:
|
|
53885
|
+
setup(A, { emit: te }) {
|
|
53889
53886
|
const G = A, Ce = co(!1), oe = co(!1), U = () => {
|
|
53890
53887
|
Ce.value = !1;
|
|
53891
53888
|
}, be = () => {
|
|
@@ -53894,7 +53891,7 @@ const nie = /* @__PURE__ */ zr(Nse, [["render", Wse]]), Zse = {
|
|
|
53894
53891
|
oe.value = !1;
|
|
53895
53892
|
}, De = () => {
|
|
53896
53893
|
oe.value = !0;
|
|
53897
|
-
}, tt =
|
|
53894
|
+
}, tt = te, pt = () => {
|
|
53898
53895
|
axios.delete(`${G.xprops.route}/${G.row.id}`).then(() => {
|
|
53899
53896
|
q(), tt("deleteAction"), Ry.methods.add({
|
|
53900
53897
|
message: "Item deleted successfully.",
|
|
@@ -53991,7 +53988,7 @@ const nie = /* @__PURE__ */ zr(Nse, [["render", Wse]]), Zse = {
|
|
|
53991
53988
|
}
|
|
53992
53989
|
},
|
|
53993
53990
|
emits: ["deleteAction"],
|
|
53994
|
-
setup(A, { emit:
|
|
53991
|
+
setup(A, { emit: te }) {
|
|
53995
53992
|
const G = A, Ce = co(!1), oe = co(!1), U = () => {
|
|
53996
53993
|
Ce.value = !1;
|
|
53997
53994
|
}, be = () => {
|
|
@@ -54000,7 +53997,7 @@ const nie = /* @__PURE__ */ zr(Nse, [["render", Wse]]), Zse = {
|
|
|
54000
53997
|
oe.value = !1;
|
|
54001
53998
|
}, De = () => {
|
|
54002
53999
|
oe.value = !0;
|
|
54003
|
-
}, tt =
|
|
54000
|
+
}, tt = te, pt = () => {
|
|
54004
54001
|
axios.delete(`${G.xprops.route}/${G.row.id}`).then(() => {
|
|
54005
54002
|
q(), tt("deleteAction"), Ry.methods.add({
|
|
54006
54003
|
message: "Item deleted successfully.",
|
|
@@ -54088,7 +54085,7 @@ const nie = /* @__PURE__ */ zr(Nse, [["render", Wse]]), Zse = {
|
|
|
54088
54085
|
}
|
|
54089
54086
|
},
|
|
54090
54087
|
emits: ["deleteAction", "editAction"],
|
|
54091
|
-
setup(A, { emit:
|
|
54088
|
+
setup(A, { emit: te }) {
|
|
54092
54089
|
const G = A, Ce = co(!1), oe = co(!1), U = () => {
|
|
54093
54090
|
oe.value = !1;
|
|
54094
54091
|
}, be = () => {
|
|
@@ -54097,7 +54094,7 @@ const nie = /* @__PURE__ */ zr(Nse, [["render", Wse]]), Zse = {
|
|
|
54097
54094
|
Ce.value = !1;
|
|
54098
54095
|
}, De = () => {
|
|
54099
54096
|
Ce.value = !0;
|
|
54100
|
-
}, tt =
|
|
54097
|
+
}, tt = te, pt = (kt) => {
|
|
54101
54098
|
tt("editAction", kt);
|
|
54102
54099
|
}, cn = () => {
|
|
54103
54100
|
axios.delete(`${G.xprops.route}/${G.row.id}`).then(() => {
|
|
@@ -54209,7 +54206,7 @@ const nie = /* @__PURE__ */ zr(Nse, [["render", Wse]]), Zse = {
|
|
|
54209
54206
|
"clip-rule": "evenodd"
|
|
54210
54207
|
})
|
|
54211
54208
|
], -1);
|
|
54212
|
-
function Vre(A,
|
|
54209
|
+
function Vre(A, te, G, Ce, oe, U) {
|
|
54213
54210
|
return ue(), de("div", null, [
|
|
54214
54211
|
U.isArray ? (ue(!0), de(jn, { key: 0 }, Ks(G.row, (be, q) => (ue(), de("div", {
|
|
54215
54212
|
key: q,
|
|
@@ -54285,7 +54282,7 @@ const lie = /* @__PURE__ */ zr(Pre, [["render", Vre]]), zre = {
|
|
|
54285
54282
|
"clip-rule": "evenodd"
|
|
54286
54283
|
})
|
|
54287
54284
|
], -1);
|
|
54288
|
-
function qre(A,
|
|
54285
|
+
function qre(A, te, G, Ce, oe, U) {
|
|
54289
54286
|
return U.isArray ? (ue(!0), de(jn, { key: 0 }, Ks(G.row[G.field], (be) => (ue(), de("div", {
|
|
54290
54287
|
key: be.id,
|
|
54291
54288
|
class: "m-1 d-inline-block"
|
|
@@ -54314,7 +54311,7 @@ function qre(A, ee, G, Ce, oe, U) {
|
|
|
54314
54311
|
const cie = /* @__PURE__ */ zr(zre, [["render", qre]]), Kre = {
|
|
54315
54312
|
props: ["field", "row", "tdProps"]
|
|
54316
54313
|
}, Yre = { key: 0 }, Xre = ["innerHTML"];
|
|
54317
|
-
function Jre(A,
|
|
54314
|
+
function Jre(A, te, G, Ce, oe, U) {
|
|
54318
54315
|
return G.row[G.field] ? (ue(), de("div", Yre, [
|
|
54319
54316
|
R("div", {
|
|
54320
54317
|
class: "w-full",
|
|
@@ -54326,8 +54323,8 @@ const iie = /* @__PURE__ */ zr(Kre, [["render", Jre]]), Qre = {
|
|
|
54326
54323
|
props: ["field", "row", "tdProps"],
|
|
54327
54324
|
computed: {
|
|
54328
54325
|
entry() {
|
|
54329
|
-
const [A,
|
|
54330
|
-
return Fq({ key: A, field:
|
|
54326
|
+
const [A, te] = this.field.split(".");
|
|
54327
|
+
return Fq({ key: A, field: te });
|
|
54331
54328
|
},
|
|
54332
54329
|
isArray() {
|
|
54333
54330
|
return Array.isArray(this.row[this.entry.key]);
|
|
@@ -54343,7 +54340,7 @@ const iie = /* @__PURE__ */ zr(Kre, [["render", Jre]]), Qre = {
|
|
|
54343
54340
|
key: 1,
|
|
54344
54341
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"
|
|
54345
54342
|
};
|
|
54346
|
-
function nae(A,
|
|
54343
|
+
function nae(A, te, G, Ce, oe, U) {
|
|
54347
54344
|
return this.row[this.entry.key] ? (ue(), de("div", eae, [
|
|
54348
54345
|
U.isArray ? (ue(!0), de(jn, { key: 0 }, Ks(G.row[U.entry.key], (be, q) => (ue(), de("span", {
|
|
54349
54346
|
key: q,
|
|
@@ -54355,8 +54352,8 @@ const uie = /* @__PURE__ */ zr(Qre, [["render", nae]]), oae = {
|
|
|
54355
54352
|
props: ["field", "row", "tdProps"],
|
|
54356
54353
|
computed: {
|
|
54357
54354
|
entry() {
|
|
54358
|
-
const A = this.field.split("."),
|
|
54359
|
-
return { keys: A, field:
|
|
54355
|
+
const A = this.field.split("."), te = A.pop();
|
|
54356
|
+
return { keys: A, field: te };
|
|
54360
54357
|
},
|
|
54361
54358
|
isArray() {
|
|
54362
54359
|
return Array.isArray(this.getNestedValue(this.row, this.entry.keys));
|
|
@@ -54366,15 +54363,15 @@ const uie = /* @__PURE__ */ zr(Qre, [["render", nae]]), oae = {
|
|
|
54366
54363
|
}
|
|
54367
54364
|
},
|
|
54368
54365
|
methods: {
|
|
54369
|
-
getNestedValue(A,
|
|
54370
|
-
return
|
|
54366
|
+
getNestedValue(A, te) {
|
|
54367
|
+
return te.reduce((G, Ce) => (G || {})[Ce], A);
|
|
54371
54368
|
}
|
|
54372
54369
|
}
|
|
54373
54370
|
}, sae = { class: "flex flex-wrap gap-2" }, rae = {
|
|
54374
54371
|
key: 1,
|
|
54375
54372
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"
|
|
54376
54373
|
};
|
|
54377
|
-
function aae(A,
|
|
54374
|
+
function aae(A, te, G, Ce, oe, U) {
|
|
54378
54375
|
return ue(), de("div", sae, [
|
|
54379
54376
|
U.isArray ? (ue(!0), de(jn, { key: 0 }, Ks(U.getNestedValue(G.row, U.entry.keys), (be, q) => (ue(), de("span", {
|
|
54380
54377
|
key: q,
|
|
@@ -54385,7 +54382,7 @@ function aae(A, ee, G, Ce, oe, U) {
|
|
|
54385
54382
|
const die = /* @__PURE__ */ zr(oae, [["render", aae]]), lae = {
|
|
54386
54383
|
props: ["field", "row", "tdProps"]
|
|
54387
54384
|
}, cae = { key: 0 }, iae = { class: "m-1 d-inline-block" }, uae = ["href", "title"], dae = ["src", "alt", "title"];
|
|
54388
|
-
function mae(A,
|
|
54385
|
+
function mae(A, te, G, Ce, oe, U) {
|
|
54389
54386
|
return G.row[G.field] ? (ue(), de("div", cae, [
|
|
54390
54387
|
R("div", iae, [
|
|
54391
54388
|
R("a", {
|
|
@@ -54416,7 +54413,7 @@ const mie = /* @__PURE__ */ zr(lae, [["render", mae], ["__scopeId", "data-v-3a28
|
|
|
54416
54413
|
key: 0,
|
|
54417
54414
|
class: "grid grid-cols-2 gap-4"
|
|
54418
54415
|
}, hae = ["src", "alt"], pae = { key: 1 }, bae = ["src", "alt"];
|
|
54419
|
-
function vae(A,
|
|
54416
|
+
function vae(A, te, G, Ce, oe, U) {
|
|
54420
54417
|
return U.isArray ? (ue(), de("div", gae, [
|
|
54421
54418
|
(ue(!0), de(jn, null, Ks(G.row[G.field], (be) => (ue(), de("div", {
|
|
54422
54419
|
key: be.id
|
|
@@ -54449,7 +54446,7 @@ const fie = /* @__PURE__ */ zr(fae, [["render", vae]]), yae = {
|
|
|
54449
54446
|
key: 1,
|
|
54450
54447
|
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"
|
|
54451
54448
|
}, Sae = /* @__PURE__ */ R("span", { class: "w-2 h-2 bg-red-500 rounded-full me-1" }, null, -1);
|
|
54452
|
-
function kae(A,
|
|
54449
|
+
function kae(A, te, G, Ce, oe, U) {
|
|
54453
54450
|
return ue(), de("div", wae, [
|
|
54454
54451
|
U.isActive ? (ue(), de("span", xae, [
|
|
54455
54452
|
Cae,
|
|
@@ -54464,10 +54461,10 @@ const gie = /* @__PURE__ */ zr(yae, [["render", kae]]), Tae = {
|
|
|
54464
54461
|
props: ["field", "row", "tdProps"],
|
|
54465
54462
|
computed: {
|
|
54466
54463
|
hasLabelColor(A) {
|
|
54467
|
-
const
|
|
54464
|
+
const te = this.tdProps.status_general_labels_color.find(
|
|
54468
54465
|
(G) => G.label === this.row[this.field]
|
|
54469
54466
|
);
|
|
54470
|
-
return
|
|
54467
|
+
return te ? te.class : "";
|
|
54471
54468
|
}
|
|
54472
54469
|
}
|
|
54473
54470
|
}, Eae = { class: "flex flex-wrap gap-2 text-nowrap" }, Aae = {
|
|
@@ -54489,7 +54486,7 @@ const gie = /* @__PURE__ */ zr(yae, [["render", kae]]), Tae = {
|
|
|
54489
54486
|
/* @__PURE__ */ R("span", { class: "absolute inline-flex w-full h-full bg-blue-500 rounded-full animate-ping" }),
|
|
54490
54487
|
/* @__PURE__ */ R("span", { class: "relative inline-flex w-2 h-2 bg-blue-500 rounded-full" })
|
|
54491
54488
|
], -1);
|
|
54492
|
-
function Lae(A,
|
|
54489
|
+
function Lae(A, te, G, Ce, oe, U) {
|
|
54493
54490
|
return ue(), de("div", Eae, [
|
|
54494
54491
|
U.hasLabelColor == "green" ? (ue(), de("span", Aae, [
|
|
54495
54492
|
Dae,
|
|
@@ -54535,7 +54532,7 @@ const hie = /* @__PURE__ */ zr(Tae, [["render", Lae]]), Fae = {
|
|
|
54535
54532
|
}
|
|
54536
54533
|
}
|
|
54537
54534
|
}, Hae = { class: "flex flex-wrap gap-2 text-nowrap lg:justify-center" };
|
|
54538
|
-
function Vae(A,
|
|
54535
|
+
function Vae(A, te, G, Ce, oe, U) {
|
|
54539
54536
|
return ue(), de("div", Hae, [
|
|
54540
54537
|
U.hasLabelColor == "Default" ? (ue(), de("span", {
|
|
54541
54538
|
key: 0,
|
|
@@ -54575,8 +54572,8 @@ const pie = /* @__PURE__ */ zr(Fae, [["render", Vae]]), zae = {
|
|
|
54575
54572
|
props: ["field", "row", "tdProps"],
|
|
54576
54573
|
computed: {
|
|
54577
54574
|
entry() {
|
|
54578
|
-
const A = this.field.split("."),
|
|
54579
|
-
return { keys: A, field:
|
|
54575
|
+
const A = this.field.split("."), te = A.pop();
|
|
54576
|
+
return { keys: A, field: te };
|
|
54580
54577
|
},
|
|
54581
54578
|
isArray() {
|
|
54582
54579
|
return Array.isArray(this.getNestedValue(this.row, this.entry.keys));
|
|
@@ -54585,14 +54582,14 @@ const pie = /* @__PURE__ */ zr(Fae, [["render", Vae]]), zae = {
|
|
|
54585
54582
|
return typeof this.getNestedValue(this.row, this.entry.keys) == "object";
|
|
54586
54583
|
},
|
|
54587
54584
|
hasLabelColor(A) {
|
|
54588
|
-
const
|
|
54585
|
+
const te = this.tdProps.status_general_labels_color.find(
|
|
54589
54586
|
(G) => G.text === this.getValue()
|
|
54590
54587
|
);
|
|
54591
|
-
return
|
|
54588
|
+
return te ? te.class : "";
|
|
54592
54589
|
},
|
|
54593
54590
|
getLabel() {
|
|
54594
54591
|
const A = this.tdProps.status_general_labels_color.find(
|
|
54595
|
-
(
|
|
54592
|
+
(te) => te.text === this.getValue()
|
|
54596
54593
|
);
|
|
54597
54594
|
return A ? A.label : "";
|
|
54598
54595
|
}
|
|
@@ -54601,8 +54598,8 @@ const pie = /* @__PURE__ */ zr(Fae, [["render", Vae]]), zae = {
|
|
|
54601
54598
|
getValue() {
|
|
54602
54599
|
return this.isObject ? this.getNestedValue(this.row, this.entry.keys)[this.entry.field] : this.row[this.field];
|
|
54603
54600
|
},
|
|
54604
|
-
getNestedValue(A,
|
|
54605
|
-
return
|
|
54601
|
+
getNestedValue(A, te) {
|
|
54602
|
+
return te.reduce((G, Ce) => (G || {})[Ce], A);
|
|
54606
54603
|
}
|
|
54607
54604
|
}
|
|
54608
54605
|
}, Uae = { class: "flex flex-wrap gap-2 text-nowrap" }, Wae = {
|
|
@@ -54624,7 +54621,7 @@ const pie = /* @__PURE__ */ zr(Fae, [["render", Vae]]), zae = {
|
|
|
54624
54621
|
/* @__PURE__ */ R("span", { class: "absolute inline-flex w-full h-full bg-blue-500 rounded-full animate-ping" }),
|
|
54625
54622
|
/* @__PURE__ */ R("span", { class: "relative inline-flex w-2 h-2 bg-blue-500 rounded-full" })
|
|
54626
54623
|
], -1);
|
|
54627
|
-
function ele(A,
|
|
54624
|
+
function ele(A, te, G, Ce, oe, U) {
|
|
54628
54625
|
return ue(), de("div", Uae, [
|
|
54629
54626
|
U.hasLabelColor == "green" ? (ue(), de("span", Wae, [
|
|
54630
54627
|
Zae,
|
|
@@ -54654,14 +54651,14 @@ const bie = /* @__PURE__ */ zr(zae, [["render", ele]]), tle = {
|
|
|
54654
54651
|
formattedDate() {
|
|
54655
54652
|
if (!this.row[this.field])
|
|
54656
54653
|
return "";
|
|
54657
|
-
const A = new Date(this.row[this.field]),
|
|
54654
|
+
const A = new Date(this.row[this.field]), te = A.getFullYear(), G = A.toLocaleString("default", { month: "long" }), Ce = A.getDate();
|
|
54658
54655
|
let oe = A.getHours();
|
|
54659
54656
|
const U = A.getMinutes(), be = A.getSeconds(), q = oe >= 12 ? "pm" : "am";
|
|
54660
|
-
return oe = oe % 12, oe = oe || 12, `${G} ${Ce}, ${
|
|
54657
|
+
return oe = oe % 12, oe = oe || 12, `${G} ${Ce}, ${te}, ${oe}:${U}:${be} ${q}`;
|
|
54661
54658
|
}
|
|
54662
54659
|
}
|
|
54663
54660
|
}, nle = { class: "w-full" };
|
|
54664
|
-
function ole(A,
|
|
54661
|
+
function ole(A, te, G, Ce, oe, U) {
|
|
54665
54662
|
return ue(), de("div", nle, dt(U.formattedDate), 1);
|
|
54666
54663
|
}
|
|
54667
54664
|
const vie = /* @__PURE__ */ zr(tle, [["render", ole]]), sle = {
|
|
@@ -54670,12 +54667,12 @@ const vie = /* @__PURE__ */ zr(tle, [["render", ole]]), sle = {
|
|
|
54670
54667
|
formattedDate() {
|
|
54671
54668
|
if (!this.row[this.field])
|
|
54672
54669
|
return "";
|
|
54673
|
-
const A = new Date(this.row[this.field]),
|
|
54674
|
-
return `${G} ${Ce}, ${
|
|
54670
|
+
const A = new Date(this.row[this.field]), te = A.getFullYear(), G = A.toLocaleString("default", { month: "long" }), Ce = A.getDate();
|
|
54671
|
+
return `${G} ${Ce}, ${te}`;
|
|
54675
54672
|
}
|
|
54676
54673
|
}
|
|
54677
54674
|
}, rle = { class: "w-full" };
|
|
54678
|
-
function ale(A,
|
|
54675
|
+
function ale(A, te, G, Ce, oe, U) {
|
|
54679
54676
|
return ue(), de("div", rle, dt(U.formattedDate), 1);
|
|
54680
54677
|
}
|
|
54681
54678
|
const yie = /* @__PURE__ */ zr(sle, [["render", ale]]), lle = {
|
|
@@ -54693,7 +54690,7 @@ const yie = /* @__PURE__ */ zr(sle, [["render", ale]]), lle = {
|
|
|
54693
54690
|
key: 2,
|
|
54694
54691
|
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"
|
|
54695
54692
|
}, gle = /* @__PURE__ */ R("span", { class: "w-2 h-2 bg-green-500 rounded-full me-1" }, null, -1);
|
|
54696
|
-
function hle(A,
|
|
54693
|
+
function hle(A, te, G, Ce, oe, U) {
|
|
54697
54694
|
return ue(), de("div", cle, [
|
|
54698
54695
|
G.row[G.field] === 0 ? (ue(), de("span", ile, [
|
|
54699
54696
|
ule,
|
|
@@ -54715,7 +54712,7 @@ const wie = /* @__PURE__ */ zr(lle, [["render", hle]]), ple = {
|
|
|
54715
54712
|
key: 0,
|
|
54716
54713
|
class: "text-nowrap w-full"
|
|
54717
54714
|
}, vle = { 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" };
|
|
54718
|
-
function yle(A,
|
|
54715
|
+
function yle(A, te, G, Ce, oe, U) {
|
|
54719
54716
|
return G.row[G.field] ? (ue(), de("div", ble, [
|
|
54720
54717
|
R("pre", vle, " " + dt(G.row[G.field]) + `
|
|
54721
54718
|
`, 1)
|
|
@@ -54746,7 +54743,7 @@ const xie = /* @__PURE__ */ zr(ple, [["render", yle]]), wle = {
|
|
|
54746
54743
|
class: "hidden sm:inline-block sm:align-middle sm:h-screen",
|
|
54747
54744
|
"aria-hidden": "true"
|
|
54748
54745
|
}, "", -1), kle = { 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" }, Tle = { class: "px-4 pt-5 pb-4 sm:p-6 sm:pb-4" }, Ele = { class: "sm:flex sm:items-start" }, Ale = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left" }, Dle = { class: "text-lg font-medium leading-6" }, Ole = { class: "mt-2" }, Rle = { 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" };
|
|
54749
|
-
function $le(A,
|
|
54746
|
+
function $le(A, te, G, Ce, oe, U) {
|
|
54750
54747
|
const be = Rd("gl-button");
|
|
54751
54748
|
return G.isOpen ? (ue(), de("div", xle, [
|
|
54752
54749
|
R("div", Cle, [
|
|
@@ -54840,7 +54837,7 @@ const Cie = /* @__PURE__ */ zr(wle, [["render", $le]]), Mle = { class: "w-full"
|
|
|
54840
54837
|
}
|
|
54841
54838
|
},
|
|
54842
54839
|
setup(A) {
|
|
54843
|
-
const
|
|
54840
|
+
const te = A, G = co(!1), Ce = (U) => {
|
|
54844
54841
|
navigator.clipboard.writeText(U).then(function() {
|
|
54845
54842
|
G.value = !0, setTimeout(() => {
|
|
54846
54843
|
G.value = !1;
|
|
@@ -54848,7 +54845,7 @@ const Cie = /* @__PURE__ */ zr(wle, [["render", $le]]), Mle = { class: "w-full"
|
|
|
54848
54845
|
}).catch(function(be) {
|
|
54849
54846
|
console.error("Error copying to clipboard: ", be);
|
|
54850
54847
|
});
|
|
54851
|
-
}, oe = bu(() =>
|
|
54848
|
+
}, oe = bu(() => te.code);
|
|
54852
54849
|
return (U, be) => (ue(), de("div", Mle, [
|
|
54853
54850
|
R("div", Ble, [
|
|
54854
54851
|
R("p", Ple, dt(A.label_name), 1)
|
|
@@ -54920,7 +54917,7 @@ const Cie = /* @__PURE__ */ zr(wle, [["render", $le]]), Mle = { class: "w-full"
|
|
|
54920
54917
|
}
|
|
54921
54918
|
},
|
|
54922
54919
|
setup(A) {
|
|
54923
|
-
const
|
|
54920
|
+
const te = A, G = co(!1), Ce = (U) => {
|
|
54924
54921
|
navigator.clipboard.writeText(U).then(function() {
|
|
54925
54922
|
G.value = !0, setTimeout(() => {
|
|
54926
54923
|
G.value = !1;
|
|
@@ -54928,7 +54925,7 @@ const Cie = /* @__PURE__ */ zr(wle, [["render", $le]]), Mle = { class: "w-full"
|
|
|
54928
54925
|
}).catch(function(be) {
|
|
54929
54926
|
console.error("Error copying to clipboard: ", be);
|
|
54930
54927
|
});
|
|
54931
|
-
}, oe = bu(() =>
|
|
54928
|
+
}, oe = bu(() => te.code);
|
|
54932
54929
|
return (U, be) => (ue(), de("div", Kle, [
|
|
54933
54930
|
R("div", Yle, [
|
|
54934
54931
|
R("label", Xle, dt(A.label_name), 1)
|
|
@@ -54979,7 +54976,7 @@ const Cie = /* @__PURE__ */ zr(wle, [["render", $le]]), Mle = { class: "w-full"
|
|
|
54979
54976
|
}
|
|
54980
54977
|
},
|
|
54981
54978
|
setup(A) {
|
|
54982
|
-
return (
|
|
54979
|
+
return (te, G) => (ue(), de("div", ice, [
|
|
54983
54980
|
A.status === 0 ? (ue(), de("span", uce, [
|
|
54984
54981
|
dce,
|
|
54985
54982
|
Zn(" Running")
|
|
@@ -55027,8 +55024,8 @@ const Cie = /* @__PURE__ */ zr(wle, [["render", $le]]), Mle = { class: "w-full"
|
|
|
55027
55024
|
}
|
|
55028
55025
|
},
|
|
55029
55026
|
emits: ["reconnect"],
|
|
55030
|
-
setup(A, { emit:
|
|
55031
|
-
const G =
|
|
55027
|
+
setup(A, { emit: te }) {
|
|
55028
|
+
const G = te, Ce = () => {
|
|
55032
55029
|
G("reconnect");
|
|
55033
55030
|
};
|
|
55034
55031
|
return (oe, U) => (ue(), de("div", pce, [
|
|
@@ -55053,9 +55050,9 @@ const Cie = /* @__PURE__ */ zr(wle, [["render", $le]]), Mle = { class: "w-full"
|
|
|
55053
55050
|
]));
|
|
55054
55051
|
}
|
|
55055
55052
|
}, Eie = {
|
|
55056
|
-
beforeMount: (A,
|
|
55053
|
+
beforeMount: (A, te) => {
|
|
55057
55054
|
A.clickOutsideEvent = (G) => {
|
|
55058
|
-
A == G.target || A.contains(G.target) ||
|
|
55055
|
+
A == G.target || A.contains(G.target) || te.value(G, A);
|
|
55059
55056
|
}, document.addEventListener("click", A.clickOutsideEvent);
|
|
55060
55057
|
},
|
|
55061
55058
|
unmounted: (A) => {
|
|
@@ -55078,8 +55075,8 @@ class Tce {
|
|
|
55078
55075
|
*
|
|
55079
55076
|
* @param {string} field
|
|
55080
55077
|
*/
|
|
55081
|
-
has(
|
|
55082
|
-
return this.errors.hasOwnProperty(
|
|
55078
|
+
has(te) {
|
|
55079
|
+
return this.errors.hasOwnProperty(te);
|
|
55083
55080
|
}
|
|
55084
55081
|
/**
|
|
55085
55082
|
* Determine if we have any errors.
|
|
@@ -55092,26 +55089,26 @@ class Tce {
|
|
|
55092
55089
|
*
|
|
55093
55090
|
* @param {string} field
|
|
55094
55091
|
*/
|
|
55095
|
-
get(
|
|
55096
|
-
if (this.errors[
|
|
55097
|
-
return this.errors[
|
|
55092
|
+
get(te) {
|
|
55093
|
+
if (this.errors[te])
|
|
55094
|
+
return this.errors[te][0];
|
|
55098
55095
|
}
|
|
55099
55096
|
/**
|
|
55100
55097
|
* Record the new errors.
|
|
55101
55098
|
*
|
|
55102
55099
|
* @param {object} errors
|
|
55103
55100
|
*/
|
|
55104
|
-
record(
|
|
55105
|
-
this.errors =
|
|
55101
|
+
record(te) {
|
|
55102
|
+
this.errors = te;
|
|
55106
55103
|
}
|
|
55107
55104
|
/**
|
|
55108
55105
|
* Clear one or all error fields.
|
|
55109
55106
|
*
|
|
55110
55107
|
* @param {string|null} field
|
|
55111
55108
|
*/
|
|
55112
|
-
clear(
|
|
55113
|
-
if (
|
|
55114
|
-
delete this.errors[
|
|
55109
|
+
clear(te) {
|
|
55110
|
+
if (te) {
|
|
55111
|
+
delete this.errors[te];
|
|
55115
55112
|
return;
|
|
55116
55113
|
}
|
|
55117
55114
|
this.errors = {};
|
|
@@ -55123,27 +55120,27 @@ class Aie {
|
|
|
55123
55120
|
*
|
|
55124
55121
|
* @param {object} data
|
|
55125
55122
|
*/
|
|
55126
|
-
constructor(
|
|
55127
|
-
this.originalData =
|
|
55128
|
-
for (let G in
|
|
55129
|
-
this[G] =
|
|
55123
|
+
constructor(te) {
|
|
55124
|
+
this.originalData = te;
|
|
55125
|
+
for (let G in te)
|
|
55126
|
+
this[G] = te[G];
|
|
55130
55127
|
this.errors = new Tce();
|
|
55131
55128
|
}
|
|
55132
55129
|
/**
|
|
55133
55130
|
* Fetch all relevant data for the form.
|
|
55134
55131
|
*/
|
|
55135
55132
|
data() {
|
|
55136
|
-
let
|
|
55133
|
+
let te = {};
|
|
55137
55134
|
for (let G in this.originalData)
|
|
55138
|
-
|
|
55139
|
-
return
|
|
55135
|
+
te[G] = this[G];
|
|
55136
|
+
return te;
|
|
55140
55137
|
}
|
|
55141
55138
|
/**
|
|
55142
55139
|
* Reset the form fields.
|
|
55143
55140
|
*/
|
|
55144
55141
|
reset() {
|
|
55145
|
-
for (let
|
|
55146
|
-
this[
|
|
55142
|
+
for (let te in this.originalData)
|
|
55143
|
+
this[te] = "";
|
|
55147
55144
|
this.errors.clear();
|
|
55148
55145
|
}
|
|
55149
55146
|
/**
|
|
@@ -55151,32 +55148,32 @@ class Aie {
|
|
|
55151
55148
|
* .
|
|
55152
55149
|
* @param {string} url
|
|
55153
55150
|
*/
|
|
55154
|
-
post(
|
|
55155
|
-
return this.submit("post",
|
|
55151
|
+
post(te) {
|
|
55152
|
+
return this.submit("post", te);
|
|
55156
55153
|
}
|
|
55157
55154
|
/**
|
|
55158
55155
|
* Send a PUT request to the given URL.
|
|
55159
55156
|
* .
|
|
55160
55157
|
* @param {string} url
|
|
55161
55158
|
*/
|
|
55162
|
-
put(
|
|
55163
|
-
return this.submit("put",
|
|
55159
|
+
put(te) {
|
|
55160
|
+
return this.submit("put", te);
|
|
55164
55161
|
}
|
|
55165
55162
|
/**
|
|
55166
55163
|
* Send a PATCH request to the given URL.
|
|
55167
55164
|
* .
|
|
55168
55165
|
* @param {string} url
|
|
55169
55166
|
*/
|
|
55170
|
-
patch(
|
|
55171
|
-
return this.submit("patch",
|
|
55167
|
+
patch(te) {
|
|
55168
|
+
return this.submit("patch", te);
|
|
55172
55169
|
}
|
|
55173
55170
|
/**
|
|
55174
55171
|
* Send a DELETE request to the given URL.
|
|
55175
55172
|
* .
|
|
55176
55173
|
* @param {string} url
|
|
55177
55174
|
*/
|
|
55178
|
-
delete(
|
|
55179
|
-
return this.submit("delete",
|
|
55175
|
+
delete(te) {
|
|
55176
|
+
return this.submit("delete", te);
|
|
55180
55177
|
}
|
|
55181
55178
|
/**
|
|
55182
55179
|
* Submit the form.
|
|
@@ -55184,9 +55181,9 @@ class Aie {
|
|
|
55184
55181
|
* @param {string} requestType
|
|
55185
55182
|
* @param {string} url
|
|
55186
55183
|
*/
|
|
55187
|
-
submit(
|
|
55184
|
+
submit(te, G) {
|
|
55188
55185
|
return new Promise((Ce, oe) => {
|
|
55189
|
-
axios[
|
|
55186
|
+
axios[te](G, this.data()).then((U) => {
|
|
55190
55187
|
this.onSuccess(U.data), Ce(U.data);
|
|
55191
55188
|
}).catch((U) => {
|
|
55192
55189
|
this.onFail(U.response.data), oe(U.response.data);
|
|
@@ -55198,19 +55195,19 @@ class Aie {
|
|
|
55198
55195
|
*
|
|
55199
55196
|
* @param {object} data
|
|
55200
55197
|
*/
|
|
55201
|
-
onSuccess(
|
|
55202
|
-
alert(
|
|
55198
|
+
onSuccess(te) {
|
|
55199
|
+
alert(te.message), this.reset();
|
|
55203
55200
|
}
|
|
55204
55201
|
/**
|
|
55205
55202
|
* Handle a failed form submission.
|
|
55206
55203
|
*
|
|
55207
55204
|
* @param {object} errors
|
|
55208
55205
|
*/
|
|
55209
|
-
onFail(
|
|
55210
|
-
this.errors.record(
|
|
55206
|
+
onFail(te) {
|
|
55207
|
+
this.errors.record(te);
|
|
55211
55208
|
}
|
|
55212
55209
|
}
|
|
55213
|
-
(function(A,
|
|
55210
|
+
(function(A, te) {
|
|
55214
55211
|
var G = "multilingual", Ce = {
|
|
55215
55212
|
type: "normal",
|
|
55216
55213
|
editing: !1,
|
|
@@ -55220,7 +55217,7 @@ class Aie {
|
|
|
55220
55217
|
langSelectors: ".language-selector"
|
|
55221
55218
|
};
|
|
55222
55219
|
function oe(U, be) {
|
|
55223
|
-
this.container = U, this.element =
|
|
55220
|
+
this.container = U, this.element = te.querySelector(U), this.settings = Object.assign({}, Ce, be), this._defaults = Ce, this._name = G, this.init();
|
|
55224
55221
|
}
|
|
55225
55222
|
Object.assign(oe.prototype, {
|
|
55226
55223
|
init: function() {
|
|
@@ -55321,9 +55318,9 @@ class Aie {
|
|
|
55321
55318
|
});
|
|
55322
55319
|
},
|
|
55323
55320
|
updateInputCache: function(U) {
|
|
55324
|
-
var be = this, q = U.dataset.inpUsr, De =
|
|
55325
|
-
if (
|
|
55326
|
-
var pt = tinymce.get(
|
|
55321
|
+
var be = this, q = U.dataset.inpUsr, De = te.getElementById(q).value, tt = {};
|
|
55322
|
+
if (te.getElementById(q).classList.contains("tiny")) {
|
|
55323
|
+
var pt = tinymce.get(te.getElementById(q).name);
|
|
55327
55324
|
De = pt.getContent();
|
|
55328
55325
|
}
|
|
55329
55326
|
be.langSelectors.forEach(function(cn) {
|
|
@@ -55334,11 +55331,11 @@ class Aie {
|
|
|
55334
55331
|
loadLang: function(U, be) {
|
|
55335
55332
|
var q = U.dataset.inpUsr, De = U.dataset[be];
|
|
55336
55333
|
if (!this.settings.editing)
|
|
55337
|
-
this.settings.type === "tiny" ?
|
|
55334
|
+
this.settings.type === "tiny" ? te.getElementById(q).innerHTML = De : te.getElementById(q).textContent = De;
|
|
55338
55335
|
else {
|
|
55339
|
-
|
|
55336
|
+
te.getElementById(q).value = De;
|
|
55340
55337
|
var tt = tinymce.get(q);
|
|
55341
|
-
|
|
55338
|
+
te.getElementById(q).classList.contains("tiny") && tt && tt.initialized ? tt.setContent(De) : te.getElementById(q).value = De;
|
|
55342
55339
|
}
|
|
55343
55340
|
}
|
|
55344
55341
|
}), A.multilingual = oe;
|