golden-logic-ui 1.0.466 → 1.0.467
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 +480 -480
- package/dist/golden-logic-ui.umd.cjs +18 -18
- package/dist/style.css +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 Zu, resolveDynamicComponent as A4, mergeProps as aO, withCtx as Cm, createElementBlock as fe, normalizeClass as Zt, createCommentVNode as Ye, renderSlot as ju, createTextVNode as Zn, createElementVNode as R, resolveComponent as Rd, createVNode as ui, createStaticVNode as $j, reactive as Pq, Fragment as jn, toDisplayString as mt, withModifiers as za, withDirectives as Tr, vModelText as _m, renderList as Ks, normalizeStyle as Mj, computed as pu, ref as co, onMounted as Dg, onBeforeUnmount as Z7, watch as Ag, vShow as Ih, nextTick as Pj, vModelDynamic as nq, useSlots as Bq, provide as oq, inject as sq, pushScopeId as rq, popScopeId as aq, vModelCheckbox as lq, toHandlers as Oj, onUnmounted as Nq, TransitionGroup as Iq, unref as Lq, resolveDirective as Bj, markRaw as Fq } from "vue";
|
|
2
|
-
const zr = (A,
|
|
2
|
+
const zr = (A, re) => {
|
|
3
3
|
const G = A.__vccOpts || A;
|
|
4
|
-
for (const [_e, ne] of
|
|
4
|
+
for (const [_e, ne] of re)
|
|
5
5
|
G[_e] = ne;
|
|
6
6
|
return G;
|
|
7
7
|
}, Hq = {
|
|
@@ -87,7 +87,7 @@ const zr = (A, se) => {
|
|
|
87
87
|
fill: "#1C64F2"
|
|
88
88
|
})
|
|
89
89
|
], -1);
|
|
90
|
-
function zq(A,
|
|
90
|
+
function zq(A, re, G, _e, ne, Z) {
|
|
91
91
|
return G.is_loading ? (ue(), Zu(A4("button"), {
|
|
92
92
|
key: 1,
|
|
93
93
|
disabled: "",
|
|
@@ -142,7 +142,7 @@ const Nj = /* @__PURE__ */ zr(Hq, [["render", zq]]), Uq = {
|
|
|
142
142
|
class: "hidden sm:inline-block sm:align-middle sm:h-screen",
|
|
143
143
|
"aria-hidden": "true"
|
|
144
144
|
}, "", -1), qq = { class: "inline-block overflow-hidden text-left align-bottom transition-all transform bg-white dark:bg-gray-800 rounded-lg shadow-xl sm:my-8 sm:align-middle sm:max-w-lg sm:w-full" }, Kq = /* @__PURE__ */ $j('<div class="px-4 pt-5 pb-4 sm:p-6 sm:pb-4"><div class="sm:flex sm:items-start"><div class="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"><h3 class="text-lg font-medium leading-6" id="modal-title"> Confirm Deletion </h3><div class="mt-2"><p class="text-sm"> Are you sure you want to delete this item? This action cannot be undone. </p></div></div></div></div>', 1), Yq = { class: "border-t border-gray-200 rounded-b dark:border-gray-600 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse gap-2" };
|
|
145
|
-
function Xq(A,
|
|
145
|
+
function Xq(A, re, G, _e, ne, Z) {
|
|
146
146
|
const xe = Rd("gl-button");
|
|
147
147
|
return G.isOpen ? (ue(), fe("div", Wq, [
|
|
148
148
|
R("div", Zq, [
|
|
@@ -268,10 +268,10 @@ const j7 = /* @__PURE__ */ zr(Uq, [["render", Xq]]), Rj = Pq({
|
|
|
268
268
|
},
|
|
269
269
|
deleteAction() {
|
|
270
270
|
axios.delete(this.route_url + "/destroyMedia/" + this.media_id).then((A) => {
|
|
271
|
-
let
|
|
271
|
+
let re = this.uploadFileList.findIndex(
|
|
272
272
|
(G) => G.id === this.media_id
|
|
273
273
|
);
|
|
274
|
-
|
|
274
|
+
re !== -1 && this.uploadFileList.splice(re, 1), this.closeDeleteModal(), Ry.methods.add({
|
|
275
275
|
message: "Item deleted successfully.",
|
|
276
276
|
type: "success",
|
|
277
277
|
duration: 5e3
|
|
@@ -285,8 +285,8 @@ const j7 = /* @__PURE__ */ zr(Uq, [["render", Xq]]), Rj = Pq({
|
|
|
285
285
|
},
|
|
286
286
|
formatFileSize(A) {
|
|
287
287
|
if (A === 0) return "0 Bytes";
|
|
288
|
-
const
|
|
289
|
-
return parseFloat((A / Math.pow(
|
|
288
|
+
const re = 1024, G = ["Bytes", "KB", "MB", "GB", "TB"], _e = Math.floor(Math.log(A) / Math.log(re));
|
|
289
|
+
return parseFloat((A / Math.pow(re, _e)).toFixed(2)) + " " + G[_e];
|
|
290
290
|
},
|
|
291
291
|
onDragOver(A) {
|
|
292
292
|
A.preventDefault(), this.isDragging = !0, A.dataTransfer.dropEffect = "copy";
|
|
@@ -296,23 +296,23 @@ const j7 = /* @__PURE__ */ zr(Uq, [["render", Xq]]), Rj = Pq({
|
|
|
296
296
|
},
|
|
297
297
|
onDrop(A) {
|
|
298
298
|
A.preventDefault(), this.isDragging = !1;
|
|
299
|
-
const
|
|
300
|
-
Array.from(
|
|
299
|
+
const re = A.dataTransfer.files;
|
|
300
|
+
Array.from(re).forEach((G) => {
|
|
301
301
|
this.uploadFile(G);
|
|
302
302
|
});
|
|
303
303
|
},
|
|
304
304
|
async uploadFiles(A) {
|
|
305
|
-
const
|
|
305
|
+
const re = A.target.files, G = Array.from(re).map(
|
|
306
306
|
(_e) => this.uploadFile(_e)
|
|
307
307
|
);
|
|
308
308
|
await Promise.all(G), this.$emit("uploaded"), this.$emit("update:modelValue", this.uploadFileList), console.log("uploadFileList", this.uploadFileList);
|
|
309
309
|
},
|
|
310
|
-
getFirstError(A,
|
|
311
|
-
return A.hasOwnProperty(
|
|
310
|
+
getFirstError(A, re) {
|
|
311
|
+
return A.hasOwnProperty(re) ? A[re][0] : "";
|
|
312
312
|
},
|
|
313
313
|
async uploadFile(A) {
|
|
314
|
-
return new Promise((
|
|
315
|
-
A ||
|
|
314
|
+
return new Promise((re, G) => {
|
|
315
|
+
A || re();
|
|
316
316
|
const _e = new FormData();
|
|
317
317
|
_e.append(this.field_name, A), _e.append("accepts_file_types", this.accepts_file_types), _e.append("max_file_size", this.max_file_size), _e.append("field_name", this.field_name), Object.entries(this.file_config).forEach(([ne, Z]) => {
|
|
318
318
|
_e.append(ne, Z);
|
|
@@ -331,7 +331,7 @@ const j7 = /* @__PURE__ */ zr(Uq, [["render", Xq]]), Rj = Pq({
|
|
|
331
331
|
size: ne.data.size,
|
|
332
332
|
id: ne.data.id,
|
|
333
333
|
url: ne.data.url
|
|
334
|
-
}), this.error_message_data = "",
|
|
334
|
+
}), this.error_message_data = "", re();
|
|
335
335
|
}).catch((ne) => {
|
|
336
336
|
ne.response.status === 422 ? this.error_message_data = this.getFirstError(
|
|
337
337
|
ne.response.data.errors,
|
|
@@ -340,7 +340,7 @@ const j7 = /* @__PURE__ */ zr(Uq, [["render", Xq]]), Rj = Pq({
|
|
|
340
340
|
let Z = this.files.findIndex(
|
|
341
341
|
(xe) => xe.file_name === A.name
|
|
342
342
|
);
|
|
343
|
-
Z !== -1 && this.files.splice(Z, 1), console.log(ne),
|
|
343
|
+
Z !== -1 && this.files.splice(Z, 1), console.log(ne), re();
|
|
344
344
|
});
|
|
345
345
|
});
|
|
346
346
|
}
|
|
@@ -379,7 +379,7 @@ const j7 = /* @__PURE__ */ zr(Uq, [["render", Xq]]), Rj = Pq({
|
|
|
379
379
|
class: "text-3xl fas fa-file-alt",
|
|
380
380
|
"aria-hidden": "true"
|
|
381
381
|
}, null, -1), _K = { class: "flex flex-col ml-3" }, SK = { class: "text-xs" }, kK = { class: "text-xs" }, TK = { class: "flex gap-2" }, EK = ["href"], AK = ["onClick"];
|
|
382
|
-
function DK(A,
|
|
382
|
+
function DK(A, re, G, _e, ne, Z) {
|
|
383
383
|
const xe = Rd("DeleteConfirmationModal");
|
|
384
384
|
return ue(), fe(jn, null, [
|
|
385
385
|
ui(xe, {
|
|
@@ -401,9 +401,9 @@ function DK(A, se, G, _e, ne, Z) {
|
|
|
401
401
|
})
|
|
402
402
|
}, mt(G.label_name), 3),
|
|
403
403
|
R("div", {
|
|
404
|
-
onDragover:
|
|
405
|
-
onDragleave:
|
|
406
|
-
onDrop:
|
|
404
|
+
onDragover: re[3] || (re[3] = za((...X) => Z.onDragOver && Z.onDragOver(...X), ["prevent"])),
|
|
405
|
+
onDragleave: re[4] || (re[4] = za((...X) => Z.onDragLeave && Z.onDragLeave(...X), ["prevent"])),
|
|
406
|
+
onDrop: re[5] || (re[5] = za((...X) => Z.onDrop && Z.onDrop(...X), ["prevent"])),
|
|
407
407
|
class: "flex flex-col items-center justify-center w-full h-40 mt-3 mb-3 border-2 border-gray-300 border-dashed rounded-lg cursor-pointer bg-gray-50 dark:hover:bg-bray-800 dark:bg-gray-700 hover:bg-gray-100 dark:border-gray-600 dark:hover:border-gray-500 dark:hover:bg-gray-600"
|
|
408
408
|
}, [
|
|
409
409
|
R("div", eK, [
|
|
@@ -412,19 +412,19 @@ function DK(A, se, G, _e, ne, Z) {
|
|
|
412
412
|
ref: "file_input" + G.field_name,
|
|
413
413
|
hidden: "",
|
|
414
414
|
multiple: G.has_multiple_file,
|
|
415
|
-
onChange:
|
|
415
|
+
onChange: re[0] || (re[0] = (...X) => Z.uploadFiles && Z.uploadFiles(...X))
|
|
416
416
|
}, null, 40, tK),
|
|
417
417
|
Tr(R("input", {
|
|
418
418
|
type: "hidden",
|
|
419
419
|
name: G.field_name,
|
|
420
|
-
"onUpdate:modelValue":
|
|
420
|
+
"onUpdate:modelValue": re[1] || (re[1] = (X) => Z.uploadFileListFinal = X)
|
|
421
421
|
}, null, 8, nK), [
|
|
422
422
|
[_m, Z.uploadFileListFinal]
|
|
423
423
|
]),
|
|
424
424
|
ne.isDragging ? (ue(), fe("div", aK, cK)) : (ue(), fe("div", {
|
|
425
425
|
key: 0,
|
|
426
426
|
class: "flex flex-col items-center justify-center",
|
|
427
|
-
onClick:
|
|
427
|
+
onClick: re[2] || (re[2] = (X) => A.$refs["file_input" + this.field_name].click())
|
|
428
428
|
}, rK))
|
|
429
429
|
])
|
|
430
430
|
], 32),
|
|
@@ -498,10 +498,10 @@ const yce = /* @__PURE__ */ zr(Qq, [["render", DK]]), OK = {
|
|
|
498
498
|
const A = {
|
|
499
499
|
id: this.menu_id
|
|
500
500
|
};
|
|
501
|
-
axios.get("/admin/get_locals", { params: A }).then((
|
|
502
|
-
this.locals =
|
|
503
|
-
}).catch((
|
|
504
|
-
console.error(
|
|
501
|
+
axios.get("/admin/get_locals", { params: A }).then((re) => {
|
|
502
|
+
this.locals = re.data.locals, this.default_language = re.data.default_language;
|
|
503
|
+
}).catch((re) => {
|
|
504
|
+
console.error(re);
|
|
505
505
|
});
|
|
506
506
|
}
|
|
507
507
|
},
|
|
@@ -511,7 +511,7 @@ const yce = /* @__PURE__ */ zr(Qq, [["render", DK]]), OK = {
|
|
|
511
511
|
mounted() {
|
|
512
512
|
}
|
|
513
513
|
}, RK = { class: "grid w-full gap-1 mt-5 mb-5 md:gap-0 md:grid-cols-10 language-selector" }, $K = ["name", "value", "id", "checked"], MK = ["for"];
|
|
514
|
-
function PK(A,
|
|
514
|
+
function PK(A, re, G, _e, ne, Z) {
|
|
515
515
|
return ue(), fe("ul", RK, [
|
|
516
516
|
(ue(!0), fe(jn, null, Ks(ne.locals, (xe, X) => (ue(), fe("li", null, [
|
|
517
517
|
R("input", {
|
|
@@ -547,7 +547,7 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
547
547
|
}
|
|
548
548
|
},
|
|
549
549
|
setup(A) {
|
|
550
|
-
const
|
|
550
|
+
const re = A, G = pu(() => re.class), _e = pu(() => re.body_class);
|
|
551
551
|
return (ne, Z) => (ue(), fe("div", {
|
|
552
552
|
class: Zt(["flex flex-col gap-9", G.value])
|
|
553
553
|
}, [
|
|
@@ -663,8 +663,8 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
663
663
|
}
|
|
664
664
|
},
|
|
665
665
|
emits: ["update:modelValue", "selected", "selectionChanged"],
|
|
666
|
-
setup(A, { emit:
|
|
667
|
-
const G = A, _e =
|
|
666
|
+
setup(A, { emit: re }) {
|
|
667
|
+
const G = A, _e = re, ne = co(null), Z = co([]), xe = co([]), X = co([]), $e = co(0), lt = co(!1), yt = co(""), hn = co(""), Et = co(null), io = co(0), lo = co(0), eo = () => {
|
|
668
668
|
if (Et.value) {
|
|
669
669
|
io.value = Et.value.offsetWidth;
|
|
670
670
|
var Ht = Et.value.getBoundingClientRect();
|
|
@@ -971,13 +971,13 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
971
971
|
}
|
|
972
972
|
},
|
|
973
973
|
emits: ["update:modelValue", "update:modelValueTranslate", "keydown"],
|
|
974
|
-
setup(A, { expose:
|
|
974
|
+
setup(A, { expose: re, emit: G }) {
|
|
975
975
|
const _e = A, ne = G, Z = co(null), xe = co(null), X = () => {
|
|
976
976
|
xe.value && ne("update:modelValueTranslate", xe.value.value);
|
|
977
977
|
};
|
|
978
978
|
return Dg(() => {
|
|
979
979
|
Z.value !== null && Z.value.hasAttribute("autofocus") && Z.value.focus(), _e.modelValue && (ne("update:modelValue", _e.modelValue), Z.value.value = _e.modelValue), _e.modelValueTranslate && (ne("update:modelValueTranslate", _e.modelValueTranslate), xe.value.value = _e.modelValueTranslate);
|
|
980
|
-
}),
|
|
980
|
+
}), re({ focus: () => Z.value.focus() }), ($e, lt) => (ue(), fe(jn, null, [
|
|
981
981
|
A.show ? (ue(), fe("div", {
|
|
982
982
|
key: 0,
|
|
983
983
|
class: Zt(A.field_name)
|
|
@@ -1101,7 +1101,7 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
1101
1101
|
}
|
|
1102
1102
|
},
|
|
1103
1103
|
emits: ["update:modelValue", "update:modelValueTranslate", "keydown"],
|
|
1104
|
-
setup(A, { expose:
|
|
1104
|
+
setup(A, { expose: re, emit: G }) {
|
|
1105
1105
|
const _e = A, ne = G, Z = co(null), xe = co(null), X = () => {
|
|
1106
1106
|
xe.value && ne("update:modelValueTranslate", xe.value.value);
|
|
1107
1107
|
};
|
|
@@ -1121,7 +1121,7 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
1121
1121
|
}).catch(($e) => {
|
|
1122
1122
|
console.log($e);
|
|
1123
1123
|
});
|
|
1124
|
-
}),
|
|
1124
|
+
}), re({ focus: () => Z.value.focus() }), ($e, lt) => (ue(), fe(jn, null, [
|
|
1125
1125
|
A.show ? (ue(), fe("div", {
|
|
1126
1126
|
key: 0,
|
|
1127
1127
|
class: Zt(A.field_name)
|
|
@@ -1236,13 +1236,13 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
1236
1236
|
}
|
|
1237
1237
|
},
|
|
1238
1238
|
emits: ["update:modelValue", "update:modelValueTranslate", "keydown"],
|
|
1239
|
-
setup(A, { expose:
|
|
1239
|
+
setup(A, { expose: re, emit: G }) {
|
|
1240
1240
|
const _e = A, ne = G, Z = co(null), xe = co(null), X = () => {
|
|
1241
1241
|
xe.value && ne("update:modelValueTranslate", xe.value.value);
|
|
1242
1242
|
};
|
|
1243
1243
|
return Dg(() => {
|
|
1244
1244
|
Z.value !== null && Z.value.hasAttribute("autofocus") && Z.value.focus(), _e.modelValue && (ne("update:modelValue", _e.modelValue), Z.value.value = _e.modelValue), _e.modelValueTranslate && (ne("update:modelValueTranslate", _e.modelValueTranslate), xe.value.value = _e.modelValueTranslate);
|
|
1245
|
-
}),
|
|
1245
|
+
}), re({ focus: () => Z.value.focus() }), ($e, lt) => (ue(), fe(jn, null, [
|
|
1246
1246
|
A.show ? (ue(), fe("div", {
|
|
1247
1247
|
key: 0,
|
|
1248
1248
|
class: Zt(A.field_name)
|
|
@@ -1348,7 +1348,7 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
1348
1348
|
}
|
|
1349
1349
|
},
|
|
1350
1350
|
emits: ["update:modelValue", "keydown"],
|
|
1351
|
-
setup(A, { expose:
|
|
1351
|
+
setup(A, { expose: re, emit: G }) {
|
|
1352
1352
|
const _e = A, ne = G, Z = co(null);
|
|
1353
1353
|
Dg(() => {
|
|
1354
1354
|
Z.value !== null && Z.value.hasAttribute("autofocus") && Z.value.focus();
|
|
@@ -1361,7 +1361,7 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
1361
1361
|
ne("update:modelValue", X);
|
|
1362
1362
|
}
|
|
1363
1363
|
});
|
|
1364
|
-
return
|
|
1364
|
+
return re({ focus: () => Z.value.focus() }), (X, $e) => (ue(), fe(jn, null, [
|
|
1365
1365
|
A.show ? (ue(), fe("div", {
|
|
1366
1366
|
key: 0,
|
|
1367
1367
|
class: Zt(A.field_name)
|
|
@@ -1454,7 +1454,7 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
1454
1454
|
}
|
|
1455
1455
|
},
|
|
1456
1456
|
emits: ["update:modelValue", "keydown"],
|
|
1457
|
-
setup(A, { expose:
|
|
1457
|
+
setup(A, { expose: re, emit: G }) {
|
|
1458
1458
|
const _e = A, ne = G, Z = co(null);
|
|
1459
1459
|
Dg(() => {
|
|
1460
1460
|
Z.value !== null && Z.value.hasAttribute("autofocus") && Z.value.focus();
|
|
@@ -1467,7 +1467,7 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
1467
1467
|
ne("update:modelValue", X);
|
|
1468
1468
|
}
|
|
1469
1469
|
});
|
|
1470
|
-
return
|
|
1470
|
+
return re({ focus: () => Z.value.focus() }), (X, $e) => (ue(), fe(jn, null, [
|
|
1471
1471
|
A.show ? (ue(), fe("div", {
|
|
1472
1472
|
key: 0,
|
|
1473
1473
|
class: Zt(A.field_name)
|
|
@@ -1553,8 +1553,8 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
1553
1553
|
}
|
|
1554
1554
|
},
|
|
1555
1555
|
emits: ["update:modelValue", "keydown"],
|
|
1556
|
-
setup(A, { emit:
|
|
1557
|
-
const G = A, _e =
|
|
1556
|
+
setup(A, { emit: re }) {
|
|
1557
|
+
const G = A, _e = re, ne = co(""), Z = co({
|
|
1558
1558
|
start: G.modelValue.start,
|
|
1559
1559
|
end: G.modelValue.end
|
|
1560
1560
|
});
|
|
@@ -1680,8 +1680,8 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
1680
1680
|
}
|
|
1681
1681
|
},
|
|
1682
1682
|
emits: ["update:modelValue", "keydown"],
|
|
1683
|
-
setup(A, { emit:
|
|
1684
|
-
const G =
|
|
1683
|
+
setup(A, { emit: re }) {
|
|
1684
|
+
const G = re, _e = co(null), ne = (Z) => {
|
|
1685
1685
|
const xe = Z.target.files[0];
|
|
1686
1686
|
console.log(xe), G("keydown", Z), xe && G("update:modelValue", xe);
|
|
1687
1687
|
};
|
|
@@ -1729,8 +1729,8 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
1729
1729
|
__name: "GlTabsWrapper",
|
|
1730
1730
|
props: {},
|
|
1731
1731
|
emits: ["TabChange"],
|
|
1732
|
-
setup(A, { emit:
|
|
1733
|
-
const G =
|
|
1732
|
+
setup(A, { emit: re }) {
|
|
1733
|
+
const G = re, _e = Bq(), ne = co(_e.default().map(($e) => $e.props)), Z = co("");
|
|
1734
1734
|
oq("selectedTitle", Z);
|
|
1735
1735
|
const xe = ($e) => {
|
|
1736
1736
|
window.location.hash = encodeURIComponent($e), G("TabChange", $e);
|
|
@@ -1785,7 +1785,7 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
1785
1785
|
key: 0,
|
|
1786
1786
|
class: "block"
|
|
1787
1787
|
};
|
|
1788
|
-
function CX(A,
|
|
1788
|
+
function CX(A, re, G, _e, ne, Z) {
|
|
1789
1789
|
return G.title == _e.selectedTitle ? (ue(), fe("div", xX, [
|
|
1790
1790
|
ju(A.$slots, "default")
|
|
1791
1791
|
])) : Ye("", !0);
|
|
@@ -1841,27 +1841,27 @@ const Oce = /* @__PURE__ */ zr(wX, [["render", CX]]), _X = {
|
|
|
1841
1841
|
return !this.hide_arrow && this.slider_arrows_indicators_position == "arrows_outside_slider" ? A += " w-12/12 xl:w-8/12 xxl:w-8/12 md:w-8/12 sm:w-8/12" : this.slider_arrows_indicators_position != "arrows_outside_slider" && (A += " w-12/12 "), A;
|
|
1842
1842
|
},
|
|
1843
1843
|
generateRandomString(A) {
|
|
1844
|
-
let
|
|
1844
|
+
let re = "";
|
|
1845
1845
|
const G = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", _e = G.length;
|
|
1846
1846
|
for (let ne = 0; ne < A; ne++)
|
|
1847
|
-
|
|
1848
|
-
return
|
|
1847
|
+
re += G.charAt(Math.floor(Math.random() * _e));
|
|
1848
|
+
return re;
|
|
1849
1849
|
},
|
|
1850
1850
|
movingActions() {
|
|
1851
|
-
let A = this,
|
|
1851
|
+
let A = this, re = document.getElementById("slider_" + this.Random_string);
|
|
1852
1852
|
const G = (ne) => {
|
|
1853
|
-
|
|
1853
|
+
re.style.cursor = "grabbing";
|
|
1854
1854
|
const Z = (X) => {
|
|
1855
1855
|
const $e = X.clientX || X.touches && X.touches[0] && X.touches[0].clientX, lt = X.clientY || X.touches && X.touches[0] && X.touches[0].clientY, yt = $e - A.initialX, hn = lt - A.initialY;
|
|
1856
|
-
Math.abs(yt) > Math.abs(hn) ? (X.preventDefault(), Math.abs(yt) >= 70 && (yt < 0 ? A.next() : A.prev(), A.initialX = $e)) :
|
|
1856
|
+
Math.abs(yt) > Math.abs(hn) ? (X.preventDefault(), Math.abs(yt) >= 70 && (yt < 0 ? A.next() : A.prev(), A.initialX = $e)) : re.style.cursor = "grab", Math.abs(hn) > Math.abs(yt) && (re.style.cursor = "grab");
|
|
1857
1857
|
}, xe = () => {
|
|
1858
|
-
document.removeEventListener("mousemove", Z), document.removeEventListener("touchmove", Z), document.removeEventListener("mouseup", xe), document.removeEventListener("touchend", xe),
|
|
1858
|
+
document.removeEventListener("mousemove", Z), document.removeEventListener("touchmove", Z), document.removeEventListener("mouseup", xe), document.removeEventListener("touchend", xe), re.style.cursor = "grab";
|
|
1859
1859
|
};
|
|
1860
1860
|
document.addEventListener("mousemove", Z), document.addEventListener("touchmove", Z, { passive: !1 }), document.addEventListener("mouseup", xe), document.addEventListener("touchend", xe), A.initialX = ne.clientX || ne.touches && ne.touches[0] && ne.touches[0].clientX, A.initialY = ne.clientY || ne.touches && ne.touches[0] && ne.touches[0].clientY;
|
|
1861
1861
|
}, _e = (ne) => {
|
|
1862
1862
|
ne.key === "ArrowLeft" ? A.prev() : ne.key === "ArrowRight" && A.next();
|
|
1863
1863
|
};
|
|
1864
|
-
|
|
1864
|
+
re.addEventListener("mousedown", G), re.addEventListener("touchstart", G), document.addEventListener("keydown", _e);
|
|
1865
1865
|
},
|
|
1866
1866
|
next() {
|
|
1867
1867
|
this.currentDot < this.dotsNavigation.length && (this.currentDot++, this.setDot(this.currentDot));
|
|
@@ -1870,8 +1870,8 @@ const Oce = /* @__PURE__ */ zr(wX, [["render", CX]]), _X = {
|
|
|
1870
1870
|
this.currentDot > 1 && (this.currentDot--, this.setDot(this.currentDot));
|
|
1871
1871
|
},
|
|
1872
1872
|
initSlider() {
|
|
1873
|
-
let A = document.getElementById("sliderContainer_" + this.Random_string),
|
|
1874
|
-
if (this.elementsToShow > 1 ? document.body.clientWidth < 1e3 ? (this.elementsToShow = 1, xe = this.hide_arrow ?
|
|
1873
|
+
let A = document.getElementById("sliderContainer_" + this.Random_string), re = document.getElementById("mainSliderContainer_" + this.Random_string), G = document.getElementById("slider_" + this.Random_string), _e = G.querySelectorAll("li"), ne = Array.from(_e).filter((X) => X.parentNode === G), Z = A.clientWidth, xe = Z / this.elementsToShow;
|
|
1874
|
+
if (this.elementsToShow > 1 ? document.body.clientWidth < 1e3 ? (this.elementsToShow = 1, xe = this.hide_arrow ? re.clientWidth : Z) : document.body.clientWidth < 1500 && (this.elementsToShow = 2) : (this.elementsToShow = 1, xe = this.hide_arrow ? re.clientWidth : Z), ne.length > 1) {
|
|
1875
1875
|
this.dotsNum = this.elementsToShow == 1 ? ne.length : ne.length - this.elementsToShow + 1;
|
|
1876
1876
|
let X = this.elementsToShow == 1 ? xe * ne.length / this.dotsNum : xe * (ne.length - this.elementsToShow) / (this.dotsNum - 1);
|
|
1877
1877
|
this.dotsNavigation = [];
|
|
@@ -1885,8 +1885,8 @@ const Oce = /* @__PURE__ */ zr(wX, [["render", CX]]), _X = {
|
|
|
1885
1885
|
}
|
|
1886
1886
|
},
|
|
1887
1887
|
setDot(A) {
|
|
1888
|
-
let
|
|
1889
|
-
this.direction_property == "rtl" ?
|
|
1888
|
+
let re = document.getElementById("slider_" + this.Random_string);
|
|
1889
|
+
this.direction_property == "rtl" ? re.style.marginRight = -this.dotsNavigation[A - 1] + "px" : re.style.marginLeft = -this.dotsNavigation[A - 1] + "px", this.currentDot = A;
|
|
1890
1890
|
}
|
|
1891
1891
|
}
|
|
1892
1892
|
}, Sm = (A) => (rq("data-v-205c6327"), A = A(), aq(), A), SX = ["id"], kX = {
|
|
@@ -2074,7 +2074,7 @@ const Oce = /* @__PURE__ */ zr(wX, [["render", CX]]), _X = {
|
|
|
2074
2074
|
}, null, -1)), TJ = [
|
|
2075
2075
|
kJ
|
|
2076
2076
|
];
|
|
2077
|
-
function EJ(A,
|
|
2077
|
+
function EJ(A, re, G, _e, ne, Z) {
|
|
2078
2078
|
return ue(), fe("div", null, [
|
|
2079
2079
|
R("div", {
|
|
2080
2080
|
class: Zt(["", !G.hide_arrow && G.slider_arrows_indicators_position == "arrows_outside_slider" ? "flex" : "relative block"]),
|
|
@@ -2084,7 +2084,7 @@ function EJ(A, se, G, _e, ne, Z) {
|
|
|
2084
2084
|
R("div", TX, [
|
|
2085
2085
|
R("button", {
|
|
2086
2086
|
class: "p-3 mr-5 rounded-full shadow-lg arrow_button_styles",
|
|
2087
|
-
onClick:
|
|
2087
|
+
onClick: re[0] || (re[0] = (xe) => Z.prev())
|
|
2088
2088
|
}, [
|
|
2089
2089
|
G.direction_property == "ltr" ? (ue(), fe("svg", EX, DX)) : Ye("", !0),
|
|
2090
2090
|
G.direction_property == "rtl" ? (ue(), fe("svg", OX, $X)) : Ye("", !0)
|
|
@@ -2106,7 +2106,7 @@ function EJ(A, se, G, _e, ne, Z) {
|
|
|
2106
2106
|
R("div", BX, [
|
|
2107
2107
|
R("button", {
|
|
2108
2108
|
class: "p-3 rounded-full shadow-lg arrow_button_styles",
|
|
2109
|
-
onClick:
|
|
2109
|
+
onClick: re[1] || (re[1] = za((xe) => Z.prev(), ["stop"]))
|
|
2110
2110
|
}, [
|
|
2111
2111
|
G.direction_property == "ltr" ? (ue(), fe("svg", NX, LX)) : Ye("", !0),
|
|
2112
2112
|
G.direction_property == "rtl" ? (ue(), fe("svg", FX, VX)) : Ye("", !0)
|
|
@@ -2121,7 +2121,7 @@ function EJ(A, se, G, _e, ne, Z) {
|
|
|
2121
2121
|
R("div", zX, [
|
|
2122
2122
|
R("button", {
|
|
2123
2123
|
class: "p-3 rounded-full shadow-lg arrow_button_styles",
|
|
2124
|
-
onClick:
|
|
2124
|
+
onClick: re[2] || (re[2] = za((xe) => Z.next(), ["stop"]))
|
|
2125
2125
|
}, [
|
|
2126
2126
|
G.direction_property == "ltr" ? (ue(), fe("svg", UX, ZX)) : Ye("", !0),
|
|
2127
2127
|
G.direction_property == "rtl" ? (ue(), fe("svg", jX, qX)) : Ye("", !0)
|
|
@@ -2156,7 +2156,7 @@ function EJ(A, se, G, _e, ne, Z) {
|
|
|
2156
2156
|
R("div", sJ, [
|
|
2157
2157
|
R("button", {
|
|
2158
2158
|
class: Zt(["p-3 rounded-full arrow_button_styles", G.direction_property == "rtl" ? "ml-3" : "mr-3"]),
|
|
2159
|
-
onClick:
|
|
2159
|
+
onClick: re[3] || (re[3] = (xe) => Z.prev())
|
|
2160
2160
|
}, [
|
|
2161
2161
|
G.direction_property == "ltr" ? (ue(), fe("svg", rJ, lJ)) : Ye("", !0),
|
|
2162
2162
|
G.direction_property == "rtl" ? (ue(), fe("svg", cJ, uJ)) : Ye("", !0)
|
|
@@ -2167,7 +2167,7 @@ function EJ(A, se, G, _e, ne, Z) {
|
|
|
2167
2167
|
R("div", mJ, [
|
|
2168
2168
|
R("button", {
|
|
2169
2169
|
class: "p-3 rounded-full arrow_button_styles",
|
|
2170
|
-
onClick:
|
|
2170
|
+
onClick: re[4] || (re[4] = (xe) => Z.next())
|
|
2171
2171
|
}, [
|
|
2172
2172
|
G.direction_property == "ltr" ? (ue(), fe("svg", fJ, hJ)) : Ye("", !0),
|
|
2173
2173
|
G.direction_property == "rtl" ? (ue(), fe("svg", pJ, vJ)) : Ye("", !0)
|
|
@@ -2181,7 +2181,7 @@ function EJ(A, se, G, _e, ne, Z) {
|
|
|
2181
2181
|
R("div", wJ, [
|
|
2182
2182
|
R("button", {
|
|
2183
2183
|
class: "p-3 ml-5 rounded-full shadow-lg arrow_button_styles",
|
|
2184
|
-
onClick:
|
|
2184
|
+
onClick: re[5] || (re[5] = (xe) => Z.next())
|
|
2185
2185
|
}, [
|
|
2186
2186
|
G.direction_property == "ltr" ? (ue(), fe("svg", xJ, _J)) : Ye("", !0),
|
|
2187
2187
|
G.direction_property == "rtl" ? (ue(), fe("svg", SJ, TJ)) : Ye("", !0)
|
|
@@ -2251,27 +2251,27 @@ const Rce = /* @__PURE__ */ zr(_X, [["render", EJ], ["__scopeId", "data-v-205c63
|
|
|
2251
2251
|
return !this.hide_arrow && this.slider_arrows_indicators_position == "arrows_outside_slider" || this.slider_arrows_indicators_position != "arrows_outside_slider", A;
|
|
2252
2252
|
},
|
|
2253
2253
|
generateRandomString(A) {
|
|
2254
|
-
let
|
|
2254
|
+
let re = "";
|
|
2255
2255
|
const G = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", _e = G.length;
|
|
2256
2256
|
for (let ne = 0; ne < A; ne++)
|
|
2257
|
-
|
|
2258
|
-
return
|
|
2257
|
+
re += G.charAt(Math.floor(Math.random() * _e));
|
|
2258
|
+
return re;
|
|
2259
2259
|
},
|
|
2260
2260
|
movingActions() {
|
|
2261
|
-
let A = this,
|
|
2261
|
+
let A = this, re = document.getElementById("slider_" + this.Random_string);
|
|
2262
2262
|
const G = (ne) => {
|
|
2263
|
-
|
|
2263
|
+
re.style.cursor = "grabbing";
|
|
2264
2264
|
const Z = (X) => {
|
|
2265
2265
|
const $e = X.clientX || X.touches && X.touches[0] && X.touches[0].clientX, lt = X.clientY || X.touches && X.touches[0] && X.touches[0].clientY, yt = $e - A.initialX, hn = lt - A.initialY;
|
|
2266
|
-
Math.abs(yt) > Math.abs(hn) ? (X.preventDefault(), Math.abs(yt) >= 70 && (yt < 0 ? A.next() : A.prev(), A.initialX = $e)) :
|
|
2266
|
+
Math.abs(yt) > Math.abs(hn) ? (X.preventDefault(), Math.abs(yt) >= 70 && (yt < 0 ? A.next() : A.prev(), A.initialX = $e)) : re.style.cursor = "grab", Math.abs(hn) > Math.abs(yt) && (re.style.cursor = "grab");
|
|
2267
2267
|
}, xe = () => {
|
|
2268
|
-
document.removeEventListener("mousemove", Z), document.removeEventListener("touchmove", Z), document.removeEventListener("mouseup", xe), document.removeEventListener("touchend", xe),
|
|
2268
|
+
document.removeEventListener("mousemove", Z), document.removeEventListener("touchmove", Z), document.removeEventListener("mouseup", xe), document.removeEventListener("touchend", xe), re.style.cursor = "grab";
|
|
2269
2269
|
};
|
|
2270
2270
|
document.addEventListener("mousemove", Z), document.addEventListener("touchmove", Z, { passive: !1 }), document.addEventListener("mouseup", xe), document.addEventListener("touchend", xe), A.initialX = ne.clientX || ne.touches && ne.touches[0] && ne.touches[0].clientX, A.initialY = ne.clientY || ne.touches && ne.touches[0] && ne.touches[0].clientY;
|
|
2271
2271
|
}, _e = (ne) => {
|
|
2272
2272
|
ne.key === "ArrowLeft" ? A.prev() : ne.key === "ArrowRight" && A.next();
|
|
2273
2273
|
};
|
|
2274
|
-
|
|
2274
|
+
re.addEventListener("mousedown", G), re.addEventListener("touchstart", G), document.addEventListener("keydown", _e);
|
|
2275
2275
|
},
|
|
2276
2276
|
next() {
|
|
2277
2277
|
this.currentDot < this.dotsNavigation.length && (this.currentDot++, this.setDot(this.currentDot));
|
|
@@ -2280,14 +2280,14 @@ const Rce = /* @__PURE__ */ zr(_X, [["render", EJ], ["__scopeId", "data-v-205c63
|
|
|
2280
2280
|
this.currentDot > 1 && (this.currentDot--, this.setDot(this.currentDot));
|
|
2281
2281
|
},
|
|
2282
2282
|
initSlider() {
|
|
2283
|
-
let A = document.getElementById("sliderContainer_" + this.Random_string),
|
|
2283
|
+
let A = document.getElementById("sliderContainer_" + this.Random_string), re = document.getElementById("mainSliderContainer_" + this.Random_string), G = document.getElementById("slider_" + this.Random_string), _e = G.querySelectorAll("li"), ne = Array.from(_e).filter((X) => X.parentNode === G);
|
|
2284
2284
|
ne[0];
|
|
2285
2285
|
let Z = this.element_size + 28;
|
|
2286
2286
|
console.log("cardwidth", Z);
|
|
2287
2287
|
let xe = A.clientWidth;
|
|
2288
|
-
if (console.log("sliderContainerWidth ", xe), console.log("mainSliderContainer ",
|
|
2288
|
+
if (console.log("sliderContainerWidth ", xe), console.log("mainSliderContainer ", re.clientWidth), console.log("slider ", G.clientWidth), this.elementsToShow = Math.floor(this.hide_arrow ? re.clientWidth / Z : xe / Z), console.log("elementsToShow", this.elementsToShow), console.log("elementsToShow new", this.elementsToShow), Z = (this.hide_arrow ? re.clientWidth : xe) / this.elementsToShow - 28, console.log("cardwidth new last ", Z), ne.length > 1) {
|
|
2289
2289
|
this.dotsNum = Math.ceil(ne.length / this.elementsToShow), console.log("dotsNum", this.dotsNum);
|
|
2290
|
-
let X = this.hide_arrow ?
|
|
2290
|
+
let X = this.hide_arrow ? re.clientWidth : xe;
|
|
2291
2291
|
console.log("navigation_no_between_slides", X), this.dotsNavigation = [];
|
|
2292
2292
|
for (let $e = 0; $e < this.dotsNum; $e++)
|
|
2293
2293
|
this.dotsNavigation.push(X * $e);
|
|
@@ -2300,11 +2300,11 @@ const Rce = /* @__PURE__ */ zr(_X, [["render", EJ], ["__scopeId", "data-v-205c63
|
|
|
2300
2300
|
}
|
|
2301
2301
|
},
|
|
2302
2302
|
setDot(A) {
|
|
2303
|
-
let
|
|
2304
|
-
this.direction_property == "rtl" ?
|
|
2303
|
+
let re = document.getElementById("slider_" + this.Random_string);
|
|
2304
|
+
this.direction_property == "rtl" ? re.style.marginRight = -this.dotsNavigation[A - 1] + "px" : re.style.marginLeft = -this.dotsNavigation[A - 1] + "px", this.currentDot = A;
|
|
2305
2305
|
}
|
|
2306
2306
|
}
|
|
2307
|
-
}, km = (A) => (rq("data-v-
|
|
2307
|
+
}, km = (A) => (rq("data-v-b2a4c5ba"), A = A(), aq(), A), DJ = ["id"], OJ = {
|
|
2308
2308
|
key: 0,
|
|
2309
2309
|
class: "items-center hidden w-2/12 xl:flex xxl:flex md:flex sm:flex arrow_button"
|
|
2310
2310
|
}, RJ = { class: "w-full" }, $J = {
|
|
@@ -2489,7 +2489,7 @@ const Rce = /* @__PURE__ */ zr(_X, [["render", EJ], ["__scopeId", "data-v-205c63
|
|
|
2489
2489
|
}, null, -1)), RQ = [
|
|
2490
2490
|
OQ
|
|
2491
2491
|
];
|
|
2492
|
-
function $Q(A,
|
|
2492
|
+
function $Q(A, re, G, _e, ne, Z) {
|
|
2493
2493
|
return ue(), fe("div", null, [
|
|
2494
2494
|
R("div", {
|
|
2495
2495
|
class: Zt(["w-full", !G.hide_arrow && G.slider_arrows_indicators_position == "arrows_outside_slider" ? "flex" : "relative block"]),
|
|
@@ -2499,7 +2499,7 @@ function $Q(A, se, G, _e, ne, Z) {
|
|
|
2499
2499
|
R("div", RJ, [
|
|
2500
2500
|
R("button", {
|
|
2501
2501
|
class: "p-3 mr-5 rounded-full shadow-lg arrow_button_styles",
|
|
2502
|
-
onClick:
|
|
2502
|
+
onClick: re[0] || (re[0] = (xe) => Z.prev())
|
|
2503
2503
|
}, [
|
|
2504
2504
|
G.direction_property == "ltr" ? (ue(), fe("svg", $J, PJ)) : Ye("", !0),
|
|
2505
2505
|
G.direction_property == "rtl" ? (ue(), fe("svg", BJ, IJ)) : Ye("", !0)
|
|
@@ -2521,7 +2521,7 @@ function $Q(A, se, G, _e, ne, Z) {
|
|
|
2521
2521
|
R("div", HJ, [
|
|
2522
2522
|
R("button", {
|
|
2523
2523
|
class: "p-3 rounded-full shadow-lg arrow_button_styles",
|
|
2524
|
-
onClick:
|
|
2524
|
+
onClick: re[1] || (re[1] = za((xe) => Z.prev(), ["stop"]))
|
|
2525
2525
|
}, [
|
|
2526
2526
|
G.direction_property == "ltr" ? (ue(), fe("svg", VJ, UJ)) : Ye("", !0),
|
|
2527
2527
|
G.direction_property == "rtl" ? (ue(), fe("svg", WJ, jJ)) : Ye("", !0)
|
|
@@ -2536,7 +2536,7 @@ function $Q(A, se, G, _e, ne, Z) {
|
|
|
2536
2536
|
R("div", GJ, [
|
|
2537
2537
|
R("button", {
|
|
2538
2538
|
class: "p-3 rounded-full shadow-lg arrow_button_styles",
|
|
2539
|
-
onClick:
|
|
2539
|
+
onClick: re[2] || (re[2] = za((xe) => Z.next(), ["stop"]))
|
|
2540
2540
|
}, [
|
|
2541
2541
|
G.direction_property == "ltr" ? (ue(), fe("svg", qJ, YJ)) : Ye("", !0),
|
|
2542
2542
|
G.direction_property == "rtl" ? (ue(), fe("svg", XJ, QJ)) : Ye("", !0)
|
|
@@ -2571,7 +2571,7 @@ function $Q(A, se, G, _e, ne, Z) {
|
|
|
2571
2571
|
R("div", iQ, [
|
|
2572
2572
|
R("button", {
|
|
2573
2573
|
class: Zt(["p-3 rounded-full arrow_button_styles", G.direction_property == "rtl" ? "ml-3" : "mr-3"]),
|
|
2574
|
-
onClick:
|
|
2574
|
+
onClick: re[3] || (re[3] = (xe) => Z.prev())
|
|
2575
2575
|
}, [
|
|
2576
2576
|
G.direction_property == "ltr" ? (ue(), fe("svg", uQ, mQ)) : Ye("", !0),
|
|
2577
2577
|
G.direction_property == "rtl" ? (ue(), fe("svg", fQ, hQ)) : Ye("", !0)
|
|
@@ -2582,7 +2582,7 @@ function $Q(A, se, G, _e, ne, Z) {
|
|
|
2582
2582
|
R("div", bQ, [
|
|
2583
2583
|
R("button", {
|
|
2584
2584
|
class: "p-3 rounded-full arrow_button_styles",
|
|
2585
|
-
onClick:
|
|
2585
|
+
onClick: re[4] || (re[4] = (xe) => Z.next())
|
|
2586
2586
|
}, [
|
|
2587
2587
|
G.direction_property == "ltr" ? (ue(), fe("svg", vQ, wQ)) : Ye("", !0),
|
|
2588
2588
|
G.direction_property == "rtl" ? (ue(), fe("svg", xQ, _Q)) : Ye("", !0)
|
|
@@ -2596,7 +2596,7 @@ function $Q(A, se, G, _e, ne, Z) {
|
|
|
2596
2596
|
R("div", kQ, [
|
|
2597
2597
|
R("button", {
|
|
2598
2598
|
class: "p-3 ml-5 rounded-full shadow-lg arrow_button_styles",
|
|
2599
|
-
onClick:
|
|
2599
|
+
onClick: re[5] || (re[5] = (xe) => Z.next())
|
|
2600
2600
|
}, [
|
|
2601
2601
|
G.direction_property == "ltr" ? (ue(), fe("svg", TQ, AQ)) : Ye("", !0),
|
|
2602
2602
|
G.direction_property == "rtl" ? (ue(), fe("svg", DQ, RQ)) : Ye("", !0)
|
|
@@ -2606,7 +2606,7 @@ function $Q(A, se, G, _e, ne, Z) {
|
|
|
2606
2606
|
], 10, DJ)
|
|
2607
2607
|
]);
|
|
2608
2608
|
}
|
|
2609
|
-
const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-
|
|
2609
|
+
const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-b2a4c5ba"]]), MQ = { class: "pointer-events-auto relative flex max-h-[100%] w-full flex-col overflow-hidden text-current shadow-4 outline-none bg-white border rounded-lg border-stroke dark:border-strokedark dark:bg-boxdark" }, PQ = { class: "flex items-center justify-between flex-shrink-0 pt-10 pb-3 pl-3 pr-3 border-b-2 dark:border-gray-600" }, BQ = { class: "text-xl font-medium leading-normal text-surface dark:text-white" }, NQ = /* @__PURE__ */ R("span", { class: "[&>svg]:h-6 [&>svg]:w-6" }, [
|
|
2610
2610
|
/* @__PURE__ */ R("svg", {
|
|
2611
2611
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2612
2612
|
fill: "currentColor",
|
|
@@ -2657,8 +2657,8 @@ const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-28de1a
|
|
|
2657
2657
|
}
|
|
2658
2658
|
},
|
|
2659
2659
|
emits: ["closeModal"],
|
|
2660
|
-
setup(A, { emit:
|
|
2661
|
-
const G = A, _e =
|
|
2660
|
+
setup(A, { emit: re }) {
|
|
2661
|
+
const G = A, _e = re, ne = () => {
|
|
2662
2662
|
document.documentElement.style.overflow = "hidden", document.documentElement.style.paddingRight = "0px";
|
|
2663
2663
|
}, Z = () => {
|
|
2664
2664
|
document.documentElement.style.overflow = "", document.documentElement.style.paddingRight = "";
|
|
@@ -2763,8 +2763,8 @@ const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-28de1a
|
|
|
2763
2763
|
}
|
|
2764
2764
|
},
|
|
2765
2765
|
emits: ["closeModal"],
|
|
2766
|
-
setup(A, { emit:
|
|
2767
|
-
const G = A, _e =
|
|
2766
|
+
setup(A, { emit: re }) {
|
|
2767
|
+
const G = A, _e = re, ne = () => {
|
|
2768
2768
|
document.documentElement.style.overflow = "hidden", document.documentElement.style.paddingRight = "0px";
|
|
2769
2769
|
}, Z = () => {
|
|
2770
2770
|
document.documentElement.style.overflow = "", document.documentElement.style.paddingRight = "";
|
|
@@ -2867,8 +2867,8 @@ const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-28de1a
|
|
|
2867
2867
|
}
|
|
2868
2868
|
},
|
|
2869
2869
|
emits: ["update:modelValue"],
|
|
2870
|
-
setup(A, { emit:
|
|
2871
|
-
const G = A, _e =
|
|
2870
|
+
setup(A, { emit: re }) {
|
|
2871
|
+
const G = A, _e = re, ne = co(null), Z = pu({
|
|
2872
2872
|
get() {
|
|
2873
2873
|
return G.modelValue;
|
|
2874
2874
|
},
|
|
@@ -2978,8 +2978,8 @@ const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-28de1a
|
|
|
2978
2978
|
}
|
|
2979
2979
|
},
|
|
2980
2980
|
emits: ["update:modelValue"],
|
|
2981
|
-
setup(A, { emit:
|
|
2982
|
-
const G = A, _e =
|
|
2981
|
+
setup(A, { emit: re }) {
|
|
2982
|
+
const G = A, _e = re, ne = co(null), Z = pu({
|
|
2983
2983
|
get() {
|
|
2984
2984
|
return G.modelValue;
|
|
2985
2985
|
},
|
|
@@ -3153,8 +3153,8 @@ const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-28de1a
|
|
|
3153
3153
|
}
|
|
3154
3154
|
},
|
|
3155
3155
|
emits: ["update:modelValue", "selected", "selectionChanged"],
|
|
3156
|
-
setup(A, { emit:
|
|
3157
|
-
const G = A, _e =
|
|
3156
|
+
setup(A, { emit: re }) {
|
|
3157
|
+
const G = A, _e = re;
|
|
3158
3158
|
co(null);
|
|
3159
3159
|
const ne = co({}), Z = co([]), xe = co(0), X = co(!1), $e = co(""), lt = co(""), yt = co(null), hn = co(0), Et = co(0), io = () => {
|
|
3160
3160
|
if (yt.value) {
|
|
@@ -3440,7 +3440,7 @@ const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-28de1a
|
|
|
3440
3440
|
}
|
|
3441
3441
|
},
|
|
3442
3442
|
emits: ["update:modelValue", "keydown"],
|
|
3443
|
-
setup(A, { expose:
|
|
3443
|
+
setup(A, { expose: re, emit: G }) {
|
|
3444
3444
|
const _e = A, ne = G, Z = co(null);
|
|
3445
3445
|
Dg(() => {
|
|
3446
3446
|
Z.value !== null && Z.value.hasAttribute("autofocus") && Z.value.focus();
|
|
@@ -3453,7 +3453,7 @@ const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-28de1a
|
|
|
3453
3453
|
ne("update:modelValue", X);
|
|
3454
3454
|
}
|
|
3455
3455
|
});
|
|
3456
|
-
return
|
|
3456
|
+
return re({ focus: () => Z.value.focus() }), (X, $e) => (ue(), fe(jn, null, [
|
|
3457
3457
|
A.show ? (ue(), fe("div", {
|
|
3458
3458
|
key: 0,
|
|
3459
3459
|
class: Zt(A.field_name)
|
|
@@ -3507,7 +3507,7 @@ function tte(A) {
|
|
|
3507
3507
|
var cq = { exports: {} };
|
|
3508
3508
|
(function(A) {
|
|
3509
3509
|
(function() {
|
|
3510
|
-
var
|
|
3510
|
+
var re = function(e) {
|
|
3511
3511
|
if (e === null)
|
|
3512
3512
|
return "null";
|
|
3513
3513
|
if (e === void 0)
|
|
@@ -3563,7 +3563,7 @@ var cq = { exports: {} };
|
|
|
3563
3563
|
}, hn = Z(function(e, n) {
|
|
3564
3564
|
if (e === n)
|
|
3565
3565
|
return !0;
|
|
3566
|
-
var o =
|
|
3566
|
+
var o = re(e), r = re(n);
|
|
3567
3567
|
return o !== r ? !1 : G(o) ? e === n : o === "array" ? $e(hn).eq(e, n) : o === "object" ? yt(hn).eq(e, n) : !1;
|
|
3568
3568
|
});
|
|
3569
3569
|
const Et = Object.getPrototypeOf, io = (e, n, o) => {
|
|
@@ -5254,7 +5254,7 @@ var cq = { exports: {} };
|
|
|
5254
5254
|
}
|
|
5255
5255
|
}, y = (n = e.schema) !== null && n !== void 0 ? n : "html5", k = N4(y);
|
|
5256
5256
|
e.verify_html === !1 && (e.valid_elements = "*[*]");
|
|
5257
|
-
const P = op(e.valid_styles), B = op(e.invalid_styles, "map"), F = op(e.valid_classes, "map"), ee = b("whitespace_elements", "pre script noscript style textarea video audio iframe object code"), oe = b("self_closing_elements", "colgroup dd dt li option p td tfoot th thead tr"), K = b("void_elements", "area base basefont br col frame hr img input isindex link meta param embed source wbr track"),
|
|
5257
|
+
const P = op(e.valid_styles), B = op(e.invalid_styles, "map"), F = op(e.valid_classes, "map"), ee = b("whitespace_elements", "pre script noscript style textarea video audio iframe object code"), oe = b("self_closing_elements", "colgroup dd dt li option p td tfoot th thead tr"), K = b("void_elements", "area base basefont br col frame hr img input isindex link meta param embed source wbr track"), se = b("boolean_attributes", "checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls allowfullscreen"), we = "td th iframe video audio object script code", ke = b("non_empty_elements", we + " pre svg", K), Se = b("move_caret_before_on_enter_elements", we + " table", K), Be = "h1 h2 h3 h4 h5 h6", rt = b("text_block_elements", Be + " p div address pre form blockquote center dir fieldset header footer article section hgroup aside main nav figure"), wt = b("block_elements", "hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup figcaption details summary html body multicol listing", rt), Ft = b("text_inline_elements", "span strong b em i font s strike u var cite dfn code mark q sup sub samp"), We = b("transparent_elements", "a ins del canvas map"), Ve = b("wrap_block_elements", "pre " + Be);
|
|
5258
5258
|
ud("script noscript iframe noframes noembed title style textarea xmp plaintext".split(" "), (Ln) => {
|
|
5259
5259
|
f[Ln] = new RegExp("</" + Ln + "[^>]*>", "gi");
|
|
5260
5260
|
});
|
|
@@ -5335,7 +5335,7 @@ var cq = { exports: {} };
|
|
|
5335
5335
|
}), e.invalid_elements && ud(iu(e.invalid_elements), (Ln) => {
|
|
5336
5336
|
o[Ln] && delete o[Ln];
|
|
5337
5337
|
}), qn("span") || st("span[!data-mce-type|*]");
|
|
5338
|
-
const gs = ot(P), Rs = ot(B), Hr = ot(F), Ml = ot(
|
|
5338
|
+
const gs = ot(P), Rs = ot(B), Hr = ot(F), Ml = ot(se), us = ot(wt), Tt = ot(rt), on = ot(Ft), Kn = ot(Object.seal(K)), mo = ot(oe), Qt = ot(ke), $n = ot(Se), Ct = ot(ee), Mn = ot(We), Oo = ot(Ve), Ss = ot(Object.seal(f)), hs = (Ln, Io) => {
|
|
5339
5339
|
const $s = r[Ln.toLowerCase()];
|
|
5340
5340
|
return !!($s && $s[Io.toLowerCase()]);
|
|
5341
5341
|
}, Ha = (Ln, Io) => {
|
|
@@ -5419,7 +5419,7 @@ var cq = { exports: {} };
|
|
|
5419
5419
|
parse: (B) => {
|
|
5420
5420
|
const F = {};
|
|
5421
5421
|
let ee = !1;
|
|
5422
|
-
const oe = e.url_converter, K = e.url_converter_scope || P,
|
|
5422
|
+
const oe = e.url_converter, K = e.url_converter_scope || P, se = (We, Ve, st) => {
|
|
5423
5423
|
const Kt = F[We + "-top" + Ve];
|
|
5424
5424
|
if (!Kt)
|
|
5425
5425
|
return;
|
|
@@ -5478,27 +5478,27 @@ var cq = { exports: {} };
|
|
|
5478
5478
|
}), st = st.replace(o, Ft), F[Ve] = ee ? Be(st, !0) : st;
|
|
5479
5479
|
}
|
|
5480
5480
|
}
|
|
5481
|
-
|
|
5481
|
+
se("border", "", !0), se("border", "-width"), se("border", "-color"), se("border", "-style"), se("padding", ""), se("margin", ""), ke("border", "border-width", "border-style", "border-color"), F.border === "medium none" && delete F.border, F["border-image"] === "none" && delete F["border-image"];
|
|
5482
5482
|
}
|
|
5483
5483
|
return F;
|
|
5484
5484
|
},
|
|
5485
5485
|
serialize: (B, F) => {
|
|
5486
5486
|
let ee = "";
|
|
5487
|
-
const oe = (
|
|
5488
|
-
const ke = we[
|
|
5487
|
+
const oe = (se, we) => {
|
|
5488
|
+
const ke = we[se];
|
|
5489
5489
|
if (ke)
|
|
5490
5490
|
for (let Se = 0, Be = ke.length; Se < Be; Se++) {
|
|
5491
5491
|
const rt = ke[Se], wt = B[rt];
|
|
5492
5492
|
wt && (ee += (ee.length > 0 ? " " : "") + rt + ": " + wt + ";");
|
|
5493
5493
|
}
|
|
5494
|
-
}, K = (
|
|
5494
|
+
}, K = (se, we) => {
|
|
5495
5495
|
if (!b || !we)
|
|
5496
5496
|
return !0;
|
|
5497
5497
|
let ke = b["*"];
|
|
5498
|
-
return ke && ke[
|
|
5498
|
+
return ke && ke[se] ? !1 : (ke = b[we], !(ke && ke[se]));
|
|
5499
5499
|
};
|
|
5500
|
-
return F && f ? (oe("*", f), oe(F, f)) : bt(B, (
|
|
5501
|
-
|
|
5500
|
+
return F && f ? (oe("*", f), oe(F, f)) : bt(B, (se, we) => {
|
|
5501
|
+
se && K(we, F) && (ee += (ee.length > 0 ? " " : "") + we + ": " + se + ";");
|
|
5502
5502
|
}), ee;
|
|
5503
5503
|
}
|
|
5504
5504
|
};
|
|
@@ -5571,8 +5571,8 @@ var cq = { exports: {} };
|
|
|
5571
5571
|
r.call(l, H0({ type: F }));
|
|
5572
5572
|
continue;
|
|
5573
5573
|
}
|
|
5574
|
-
!u.hasFocusIn && (F === "focusin" || F === "focusout") && (oe = !0, K = F === "focusin" ? "focus" : "blur", ee = (
|
|
5575
|
-
const we = H0(
|
|
5574
|
+
!u.hasFocusIn && (F === "focusin" || F === "focusout") && (oe = !0, K = F === "focusin" ? "focus" : "blur", ee = (se) => {
|
|
5575
|
+
const we = H0(se || b.event);
|
|
5576
5576
|
we.type = we.type === "focus" ? "focusin" : "focusout", u.executeHandlers(we, k);
|
|
5577
5577
|
}), f = u.events[k][F], f ? F === "ready" && u.domLoaded ? r(H0({ type: F })) : f.push({
|
|
5578
5578
|
func: r,
|
|
@@ -5719,12 +5719,12 @@ var cq = { exports: {} };
|
|
|
5719
5719
|
url_converter: n.url_converter,
|
|
5720
5720
|
url_converter_scope: n.url_converter_scope,
|
|
5721
5721
|
force_hex_color: n.force_hex_color
|
|
5722
|
-
}, n.schema), F = n.ownEvents ? new ti() : ti.Event, ee = P.getBlockElements(), oe = (Ne) => he(Ne) ? pn(ee, Ne) : qt(Ne) && (pn(ee, Ne.nodeName) || _o(P, Ne)), K = (Ne) => Ne && e && he(Ne) ? e.getElementById(Ne) : Ne,
|
|
5722
|
+
}, n.schema), F = n.ownEvents ? new ti() : ti.Event, ee = P.getBlockElements(), oe = (Ne) => he(Ne) ? pn(ee, Ne) : qt(Ne) && (pn(ee, Ne.nodeName) || _o(P, Ne)), K = (Ne) => Ne && e && he(Ne) ? e.getElementById(Ne) : Ne, se = (Ne) => {
|
|
5723
5723
|
const He = K(Ne);
|
|
5724
5724
|
return Ze(He) ? ie.fromDom(He) : null;
|
|
5725
5725
|
}, we = (Ne, He, St = "") => {
|
|
5726
5726
|
let ht;
|
|
5727
|
-
const ln =
|
|
5727
|
+
const ln = se(Ne);
|
|
5728
5728
|
if (Ze(ln) && Ba(ln)) {
|
|
5729
5729
|
const fo = Dy[He];
|
|
5730
5730
|
fo && fo.get ? ht = fo.get(ln.dom, He) : ht = Ga(ln, He);
|
|
@@ -5908,17 +5908,17 @@ var cq = { exports: {} };
|
|
|
5908
5908
|
}, $s = (Ne, He) => {
|
|
5909
5909
|
Ln(Ne, He, !1);
|
|
5910
5910
|
}, tr = (Ne, He) => {
|
|
5911
|
-
const St =
|
|
5911
|
+
const St = se(Ne), ht = He.split(" ");
|
|
5912
5912
|
return Ze(St) && nr(ht, (ln) => eu(St, ln));
|
|
5913
5913
|
}, mr = (Ne) => {
|
|
5914
5914
|
on(Ne, (He) => td(ie.fromDom(He), "display"));
|
|
5915
5915
|
}, Vi = (Ne) => {
|
|
5916
5916
|
on(Ne, (He) => Gh(ie.fromDom(He), "display", "none"));
|
|
5917
5917
|
}, Cf = (Ne) => {
|
|
5918
|
-
const He =
|
|
5918
|
+
const He = se(Ne);
|
|
5919
5919
|
return Ze(He) && ls(Mr(He, "display"), "none");
|
|
5920
5920
|
}, x0 = (Ne) => (Ne || "mce_") + u++, Ux = (Ne) => {
|
|
5921
|
-
const He =
|
|
5921
|
+
const He = se(Ne);
|
|
5922
5922
|
return Ze(He) ? qt(He.dom) ? He.dom.outerHTML : Ug(He) : "";
|
|
5923
5923
|
}, ib = (Ne, He) => {
|
|
5924
5924
|
on(Ne, (St) => {
|
|
@@ -6257,38 +6257,38 @@ var cq = { exports: {} };
|
|
|
6257
6257
|
isRtl: () => qd().bind((e) => Xo(e, "_dir")).exists((e) => e === "rtl"),
|
|
6258
6258
|
hasCode: (e) => pn(V0, e)
|
|
6259
6259
|
}, Kl = () => {
|
|
6260
|
-
const e = [], n = {}, o = {}, r = [], l = (K,
|
|
6261
|
-
const we = zt(r, (ke) => ke.name === K && ke.state ===
|
|
6260
|
+
const e = [], n = {}, o = {}, r = [], l = (K, se) => {
|
|
6261
|
+
const we = zt(r, (ke) => ke.name === K && ke.state === se);
|
|
6262
6262
|
Te(we, (ke) => ke.resolve());
|
|
6263
6263
|
}, u = (K) => pn(n, K), f = (K) => pn(o, K), b = (K) => {
|
|
6264
6264
|
if (o[K])
|
|
6265
6265
|
return o[K].instance;
|
|
6266
|
-
}, y = (K,
|
|
6267
|
-
const we = Mu.getCode(), ke = "," + (
|
|
6268
|
-
!we ||
|
|
6269
|
-
}, k = (K,
|
|
6270
|
-
Kl.languageLoad !== !1 && (u(K) ? y(K,
|
|
6271
|
-
}, P = (K,
|
|
6266
|
+
}, y = (K, se) => {
|
|
6267
|
+
const we = Mu.getCode(), ke = "," + (se || "") + ",";
|
|
6268
|
+
!we || se && ke.indexOf("," + we + ",") === -1 || ra.ScriptLoader.add(n[K] + "/langs/" + we + ".js");
|
|
6269
|
+
}, k = (K, se) => {
|
|
6270
|
+
Kl.languageLoad !== !1 && (u(K) ? y(K, se) : oe(K, "loaded").then(() => y(K, se)));
|
|
6271
|
+
}, P = (K, se) => (e.push(se), o[K] = { instance: se }, l(K, "added"), se), B = (K) => {
|
|
6272
6272
|
delete n[K], delete o[K];
|
|
6273
|
-
}, F = (K,
|
|
6273
|
+
}, F = (K, se) => he(se) ? he(K) ? {
|
|
6274
6274
|
prefix: "",
|
|
6275
|
-
resource:
|
|
6275
|
+
resource: se,
|
|
6276
6276
|
suffix: ""
|
|
6277
6277
|
} : {
|
|
6278
6278
|
prefix: K.prefix,
|
|
6279
|
-
resource:
|
|
6279
|
+
resource: se,
|
|
6280
6280
|
suffix: K.suffix
|
|
6281
|
-
} :
|
|
6281
|
+
} : se, ee = (K, se) => {
|
|
6282
6282
|
if (n[K])
|
|
6283
6283
|
return Promise.resolve();
|
|
6284
|
-
let we = he(
|
|
6284
|
+
let we = he(se) ? se : se.prefix + se.resource + se.suffix;
|
|
6285
6285
|
we.indexOf("/") !== 0 && we.indexOf("://") === -1 && (we = Kl.baseURL + "/" + we), n[K] = we.substring(0, we.lastIndexOf("/"));
|
|
6286
6286
|
const ke = () => (l(K, "loaded"), Promise.resolve());
|
|
6287
6287
|
return o[K] ? ke() : ra.ScriptLoader.add(we).then(ke);
|
|
6288
|
-
}, oe = (K,
|
|
6288
|
+
}, oe = (K, se = "added") => se === "added" && f(K) || se === "loaded" && u(K) ? Promise.resolve() : new Promise((we) => {
|
|
6289
6289
|
r.push({
|
|
6290
6290
|
name: K,
|
|
6291
|
-
state:
|
|
6291
|
+
state: se,
|
|
6292
6292
|
resolve: we
|
|
6293
6293
|
});
|
|
6294
6294
|
});
|
|
@@ -6395,7 +6395,7 @@ var cq = { exports: {} };
|
|
|
6395
6395
|
l(B, (oe) => {
|
|
6396
6396
|
Te(oe.listeners, (K) => K(!0, B, {
|
|
6397
6397
|
uid: F,
|
|
6398
|
-
nodes: Ke(ee, (
|
|
6398
|
+
nodes: Ke(ee, (se) => se.dom)
|
|
6399
6399
|
}));
|
|
6400
6400
|
});
|
|
6401
6401
|
}, b = (B) => {
|
|
@@ -6415,8 +6415,8 @@ var cq = { exports: {} };
|
|
|
6415
6415
|
oe.each((K) => {
|
|
6416
6416
|
b(F), ee.previous.clear(), y(K, !1);
|
|
6417
6417
|
});
|
|
6418
|
-
}, ({ uid: K, name:
|
|
6419
|
-
ls(oe, K) || (oe.each((ke) => y(ke, !1)), f(
|
|
6418
|
+
}, ({ uid: K, name: se, elements: we }) => {
|
|
6419
|
+
ls(oe, K) || (oe.each((ke) => y(ke, !1)), f(se, K, we), ee.previous.set(K), y(K, !0));
|
|
6420
6420
|
}), {
|
|
6421
6421
|
previous: ee.previous,
|
|
6422
6422
|
listeners: ee.listeners
|
|
@@ -7646,12 +7646,12 @@ Required: ` + n.join(", "));
|
|
|
7646
7646
|
}, I2 = (e, n, o, r) => {
|
|
7647
7647
|
const l = Vf();
|
|
7648
7648
|
let u, f;
|
|
7649
|
-
const b = Xl(e), y = e.dom, k = (K,
|
|
7649
|
+
const b = Xl(e), y = e.dom, k = (K, se) => {
|
|
7650
7650
|
let we;
|
|
7651
|
-
if (P(), hO(
|
|
7651
|
+
if (P(), hO(se))
|
|
7652
7652
|
return null;
|
|
7653
|
-
if (o(
|
|
7654
|
-
const ke = mc(b,
|
|
7653
|
+
if (o(se)) {
|
|
7654
|
+
const ke = mc(b, se, K), Se = B3(n, se, K);
|
|
7655
7655
|
y.setStyle(ke, "top", Se.top), f = ke;
|
|
7656
7656
|
const Be = y.create("div", {
|
|
7657
7657
|
class: "mce-visual-caret",
|
|
@@ -7659,11 +7659,11 @@ Required: ` + n.join(", "));
|
|
|
7659
7659
|
});
|
|
7660
7660
|
y.setStyles(Be, { ...Se }), y.add(n, Be), l.set({
|
|
7661
7661
|
caret: Be,
|
|
7662
|
-
element:
|
|
7662
|
+
element: se,
|
|
7663
7663
|
before: K
|
|
7664
|
-
}), K && y.addClass(Be, "mce-visual-caret-before"), B(), we =
|
|
7664
|
+
}), K && y.addClass(Be, "mce-visual-caret-before"), B(), we = se.ownerDocument.createRange(), we.setStart(ke, 0), we.setEnd(ke, 0);
|
|
7665
7665
|
} else
|
|
7666
|
-
return f = ir(
|
|
7666
|
+
return f = ir(se, K), we = se.ownerDocument.createRange(), lv(f.nextSibling) ? (we.setStart(f, 0), we.setEnd(f, 0)) : (we.setStart(f, 1), we.setEnd(f, 1)), we;
|
|
7667
7667
|
return we;
|
|
7668
7668
|
}, P = () => {
|
|
7669
7669
|
YC(n), f && (ka(f), f = null), l.on((K) => {
|
|
@@ -7682,8 +7682,8 @@ Required: ` + n.join(", "));
|
|
|
7682
7682
|
getCss: () => ".mce-visual-caret {position: absolute;background-color: black;background-color: currentcolor;}.mce-visual-caret-hidden {display: none;}*[data-mce-caret] {position: absolute;left: -1000px;right: auto;top: 0;margin: 0;padding: 0;}",
|
|
7683
7683
|
reposition: () => {
|
|
7684
7684
|
l.on((K) => {
|
|
7685
|
-
const
|
|
7686
|
-
y.setStyles(K.caret, { ...
|
|
7685
|
+
const se = B3(n, K.element, K.before);
|
|
7686
|
+
y.setStyles(K.caret, { ...se });
|
|
7687
7687
|
});
|
|
7688
7688
|
},
|
|
7689
7689
|
destroy: () => clearInterval(u)
|
|
@@ -8147,7 +8147,7 @@ Required: ` + n.join(", "));
|
|
|
8147
8147
|
let f;
|
|
8148
8148
|
const b = e.getParent(o, e.isBlock) || n, y = (P, B, F) => {
|
|
8149
8149
|
const ee = zf(e), oe = l ? ee.backwards : ee.forwards;
|
|
8150
|
-
return z.from(oe(P, B, (K,
|
|
8150
|
+
return z.from(oe(P, B, (K, se) => Wp(K.parentNode) ? -1 : (f = K, F(l, K, se)), b));
|
|
8151
8151
|
};
|
|
8152
8152
|
return y(o, r, Dl).bind((P) => u ? y(P.container, P.offset + (l ? -1 : 0), Iu) : z.some(P)).orThunk(() => f ? z.some({
|
|
8153
8153
|
container: f,
|
|
@@ -8214,21 +8214,21 @@ Required: ` + n.join(", "));
|
|
|
8214
8214
|
};
|
|
8215
8215
|
}, S1 = (e, n, o) => {
|
|
8216
8216
|
var r;
|
|
8217
|
-
const l = n.startOffset, u = oi(n.startContainer, l), f = n.endOffset, b = oi(n.endContainer, f - 1), y = (
|
|
8218
|
-
const we =
|
|
8219
|
-
ut(we) && we === u && l >= we.data.length &&
|
|
8220
|
-
const ke =
|
|
8221
|
-
return f === 0 &&
|
|
8222
|
-
}, k = (
|
|
8217
|
+
const l = n.startOffset, u = oi(n.startContainer, l), f = n.endOffset, b = oi(n.endContainer, f - 1), y = (se) => {
|
|
8218
|
+
const we = se[0];
|
|
8219
|
+
ut(we) && we === u && l >= we.data.length && se.splice(0, 1);
|
|
8220
|
+
const ke = se[se.length - 1];
|
|
8221
|
+
return f === 0 && se.length > 0 && ke === b && ut(ke) && se.splice(se.length - 1, 1), se;
|
|
8222
|
+
}, k = (se, we, ke) => {
|
|
8223
8223
|
const Se = [];
|
|
8224
|
-
for (;
|
|
8225
|
-
Se.push(
|
|
8224
|
+
for (; se && se !== ke; se = se[we])
|
|
8225
|
+
Se.push(se);
|
|
8226
8226
|
return Se;
|
|
8227
|
-
}, P = (
|
|
8227
|
+
}, P = (se, we) => e.getParent(se, (ke) => ke.parentNode === we, we), B = (se, we, ke) => {
|
|
8228
8228
|
const Se = ke ? "nextSibling" : "previousSibling";
|
|
8229
|
-
for (let Be =
|
|
8229
|
+
for (let Be = se, rt = Be.parentNode; Be && Be !== we; Be = rt) {
|
|
8230
8230
|
rt = Be.parentNode;
|
|
8231
|
-
const wt = k(Be ===
|
|
8231
|
+
const wt = k(Be === se ? Be : Be[Se], Se);
|
|
8232
8232
|
wt.length && (ke || wt.reverse(), o(y(wt)));
|
|
8233
8233
|
}
|
|
8234
8234
|
};
|
|
@@ -8281,8 +8281,8 @@ Required: ` + n.join(", "));
|
|
|
8281
8281
|
switch (b_(e, oe, "span", bo(oe))) {
|
|
8282
8282
|
case "invalid-child": {
|
|
8283
8283
|
k();
|
|
8284
|
-
const
|
|
8285
|
-
B(
|
|
8284
|
+
const se = $r(oe);
|
|
8285
|
+
B(se), k();
|
|
8286
8286
|
break;
|
|
8287
8287
|
}
|
|
8288
8288
|
case "valid-block": {
|
|
@@ -8290,8 +8290,8 @@ Required: ` + n.join(", "));
|
|
|
8290
8290
|
break;
|
|
8291
8291
|
}
|
|
8292
8292
|
case "valid": {
|
|
8293
|
-
const
|
|
8294
|
-
zg(oe,
|
|
8293
|
+
const se = P();
|
|
8294
|
+
zg(oe, se);
|
|
8295
8295
|
break;
|
|
8296
8296
|
}
|
|
8297
8297
|
}
|
|
@@ -8455,7 +8455,7 @@ Required: ` + n.join(", "));
|
|
|
8455
8455
|
]
|
|
8456
8456
|
}, wO = (e) => e.type === "longpress" || e.type.indexOf("touch") === 0, xO = (e, n) => {
|
|
8457
8457
|
const o = n.dom, r = n.getDoc(), l = document, u = n.getBody();
|
|
8458
|
-
let f, b, y, k, P, B, F, ee, oe, K,
|
|
8458
|
+
let f, b, y, k, P, B, F, ee, oe, K, se, we, ke, Se, Be, rt, wt;
|
|
8459
8459
|
const Ft = (Ct) => Ze(Ct) && (Sl(Ct) || o.is(Ct, "figure.image")), We = (Ct) => hr(Ct) || o.hasClass(Ct, "mce-preview-object"), Ve = (Ct, Mn) => {
|
|
8460
8460
|
if (wO(Ct)) {
|
|
8461
8461
|
const Oo = Ct.touches[0];
|
|
@@ -8482,14 +8482,14 @@ Required: ` + n.join(", "));
|
|
|
8482
8482
|
qn(Ct, "width", Mn), qn(Ct, "height", Oo);
|
|
8483
8483
|
}, Rs = (Ct) => {
|
|
8484
8484
|
let Mn, Oo, Ss, hs, Ha;
|
|
8485
|
-
Mn = Ct.screenX - B, Oo = Ct.screenY - F, Se = Mn * k[2] + K, Be = Oo * k[3] +
|
|
8485
|
+
Mn = Ct.screenX - B, Oo = Ct.screenY - F, Se = Mn * k[2] + K, Be = Oo * k[3] + se, Se = Se < 5 ? 5 : Se, Be = Be < 5 ? 5 : Be, (Ft(f) || We(f)) && $C(n) !== !1 ? Ss = !Wt.modifierPressed(Ct) : Ss = Wt.modifierPressed(Ct), Ss && (T1(Mn) > T1(Oo) ? (Be = E1(Se * we), Se = E1(Be / we)) : (Se = E1(Be / we), Be = E1(Se * we))), gs(b, Se, Be), hs = k.startPos.x + Mn, Ha = k.startPos.y + Oo, hs = hs > 0 ? hs : 0, Ha = Ha > 0 ? Ha : 0, o.setStyles(y, {
|
|
8486
8486
|
left: hs,
|
|
8487
8487
|
top: Ha,
|
|
8488
8488
|
display: "block"
|
|
8489
|
-
}), y.innerHTML = Se + " × " + Be, k[2] < 0 && b.clientWidth <= Se && o.setStyle(b, "left", ee + (K - Se)), k[3] < 0 && b.clientHeight <= Be && o.setStyle(b, "top", oe + (
|
|
8489
|
+
}), y.innerHTML = Se + " × " + Be, k[2] < 0 && b.clientWidth <= Se && o.setStyle(b, "left", ee + (K - Se)), k[3] < 0 && b.clientHeight <= Be && o.setStyle(b, "top", oe + (se - Be)), Mn = u.scrollWidth - rt, Oo = u.scrollHeight - wt, Mn + Oo !== 0 && o.setStyles(y, {
|
|
8490
8490
|
left: hs - Mn,
|
|
8491
8491
|
top: Ha - Oo
|
|
8492
|
-
}), ke || (lw(n, f, K,
|
|
8492
|
+
}), ke || (lw(n, f, K, se, "corner-" + k.name), ke = !0);
|
|
8493
8493
|
}, Hr = () => {
|
|
8494
8494
|
const Ct = ke;
|
|
8495
8495
|
ke = !1, Ct && (qn(f, "width", Se), qn(f, "height", Be)), o.unbind(r, "mousemove", Rs), o.unbind(r, "mouseup", Hr), l !== r && (o.unbind(l, "mousemove", Rs), o.unbind(l, "mouseup", Hr)), o.remove(b), o.remove(y), o.remove(P), Ml(f), Ct && (Lu(n, f, Se, Be, "corner-" + k.name), o.setAttrib(f, "style", o.getAttrib(f, "style"))), n.nodeChanged();
|
|
@@ -8501,7 +8501,7 @@ Required: ` + n.join(", "));
|
|
|
8501
8501
|
cn(Ct) && !Cg.isDefaultPrevented() ? bt(rT, (ci, Ed) => {
|
|
8502
8502
|
const Ln = ($s) => {
|
|
8503
8503
|
const tr = Kt(f)[0];
|
|
8504
|
-
B = $s.screenX, F = $s.screenY, K = tr.clientWidth,
|
|
8504
|
+
B = $s.screenX, F = $s.screenY, K = tr.clientWidth, se = tr.clientHeight, we = se / K, k = ci, k.name = Ed, k.startPos = {
|
|
8505
8505
|
x: Ha * ci[0] + Oo,
|
|
8506
8506
|
y: vm * ci[1] + Ss
|
|
8507
8507
|
}, rt = u.scrollWidth, wt = u.scrollHeight, P = o.add(u, "div", {
|
|
@@ -8520,7 +8520,7 @@ Required: ` + n.join(", "));
|
|
|
8520
8520
|
}), gs(b, Ha, vm), b.removeAttribute(sg), u.appendChild(b), o.bind(r, "mousemove", Rs), o.bind(r, "mouseup", Hr), l !== r && (o.bind(l, "mousemove", Rs), o.bind(l, "mouseup", Hr)), y = o.add(u, "div", {
|
|
8521
8521
|
class: "mce-resize-helper",
|
|
8522
8522
|
"data-mce-bogus": "all"
|
|
8523
|
-
}, K + " × " +
|
|
8523
|
+
}, K + " × " + se);
|
|
8524
8524
|
};
|
|
8525
8525
|
let Io = o.get("mceResizeHandle" + Ed);
|
|
8526
8526
|
Io && o.remove(Io), Io = o.add(u, "div", {
|
|
@@ -9543,8 +9543,8 @@ Required: ` + n.join(", "));
|
|
|
9543
9543
|
oe.map = {};
|
|
9544
9544
|
const K = n.getElementRule(y.name);
|
|
9545
9545
|
if (K) {
|
|
9546
|
-
for (let
|
|
9547
|
-
const ke = K.attributesOrder[
|
|
9546
|
+
for (let se = 0, we = K.attributesOrder.length; se < we; se++) {
|
|
9547
|
+
const ke = K.attributesOrder[se];
|
|
9548
9548
|
if (ke in ee.map) {
|
|
9549
9549
|
const Se = ee.map[ke];
|
|
9550
9550
|
oe.map[ke] = Se, oe.push({
|
|
@@ -9553,8 +9553,8 @@ Required: ` + n.join(", "));
|
|
|
9553
9553
|
});
|
|
9554
9554
|
}
|
|
9555
9555
|
}
|
|
9556
|
-
for (let
|
|
9557
|
-
const ke = ee[
|
|
9556
|
+
for (let se = 0, we = ee.length; se < we; se++) {
|
|
9557
|
+
const ke = ee[se].name;
|
|
9558
9558
|
if (!(ke in oe.map)) {
|
|
9559
9559
|
const Se = ee.map[ke];
|
|
9560
9560
|
oe.map[ke] = Se, oe.push({
|
|
@@ -10075,10 +10075,10 @@ Required: ` + n.join(", "));
|
|
|
10075
10075
|
if (!B.parent || y.has(B))
|
|
10076
10076
|
continue;
|
|
10077
10077
|
if (l[B.name] && B.parent.name === "li") {
|
|
10078
|
-
let
|
|
10079
|
-
for (;
|
|
10080
|
-
|
|
10081
|
-
|
|
10078
|
+
let se = B.next;
|
|
10079
|
+
for (; se && l[se.name]; ) {
|
|
10080
|
+
se.name = "li", y.add(se), B.parent.insert(se, B.parent);
|
|
10081
|
+
se = se.next;
|
|
10082
10082
|
}
|
|
10083
10083
|
B.unwrap();
|
|
10084
10084
|
continue;
|
|
@@ -10091,26 +10091,26 @@ Required: ` + n.join(", "));
|
|
|
10091
10091
|
tS(B, n);
|
|
10092
10092
|
else {
|
|
10093
10093
|
K.reverse(), ee = K[0].clone(), r(ee);
|
|
10094
|
-
let
|
|
10094
|
+
let se = ee;
|
|
10095
10095
|
for (let we = 0; we < K.length - 1; we++) {
|
|
10096
|
-
n.isValidChild(
|
|
10096
|
+
n.isValidChild(se.name, K[we].name) && we > 0 ? (oe = K[we].clone(), r(oe), se.append(oe)) : oe = se;
|
|
10097
10097
|
for (let ke = K[we].firstChild; ke && ke !== K[we + 1]; ) {
|
|
10098
10098
|
const Se = ke.next;
|
|
10099
10099
|
oe.append(ke), ke = Se;
|
|
10100
10100
|
}
|
|
10101
|
-
|
|
10101
|
+
se = oe;
|
|
10102
10102
|
}
|
|
10103
10103
|
Vv(n, u, f, ee) ? F.insert(B, K[0], !0) : (F.insert(ee, K[0], !0), F.insert(B, ee)), F = K[0], (Vv(n, u, f, F) || tE(F, "br")) && F.empty().remove();
|
|
10104
10104
|
}
|
|
10105
10105
|
else if (B.parent) {
|
|
10106
10106
|
if (B.name === "li") {
|
|
10107
|
-
let
|
|
10108
|
-
if (
|
|
10109
|
-
|
|
10107
|
+
let se = B.prev;
|
|
10108
|
+
if (se && (se.name === "ul" || se.name === "ol")) {
|
|
10109
|
+
se.append(B);
|
|
10110
10110
|
continue;
|
|
10111
10111
|
}
|
|
10112
|
-
if (
|
|
10113
|
-
|
|
10112
|
+
if (se = B.next, se && (se.name === "ul" || se.name === "ol") && se.firstChild) {
|
|
10113
|
+
se.insert(B, se.firstChild, !0);
|
|
10114
10114
|
continue;
|
|
10115
10115
|
}
|
|
10116
10116
|
const we = new Pc("ul", 1);
|
|
@@ -10118,8 +10118,8 @@ Required: ` + n.join(", "));
|
|
|
10118
10118
|
continue;
|
|
10119
10119
|
}
|
|
10120
10120
|
if (n.isValidChild(B.parent.name, "div") && n.isValidChild("div", B.name)) {
|
|
10121
|
-
const
|
|
10122
|
-
r(
|
|
10121
|
+
const se = new Pc("div", 1);
|
|
10122
|
+
r(se), B.wrap(se);
|
|
10123
10123
|
} else
|
|
10124
10124
|
tS(B, n);
|
|
10125
10125
|
}
|
|
@@ -10284,11 +10284,11 @@ Required: ` + n.join(", "));
|
|
|
10284
10284
|
context: oe.nodeName.toLowerCase(),
|
|
10285
10285
|
data: o.data,
|
|
10286
10286
|
insert: !0
|
|
10287
|
-
},
|
|
10288
|
-
if (o.paste === !0 && sE(e.schema,
|
|
10289
|
-
return B = iE(k, f, u.getRng(),
|
|
10290
|
-
o.paste === !0 && uE(f,
|
|
10291
|
-
let we =
|
|
10287
|
+
}, se = b.parse(n, K);
|
|
10288
|
+
if (o.paste === !0 && sE(e.schema, se) && HR(f, oe))
|
|
10289
|
+
return B = iE(k, f, u.getRng(), se), B && u.setRng(B), n;
|
|
10290
|
+
o.paste === !0 && uE(f, se, oe, e.getBody()) && ((r = se.firstChild) === null || r === void 0 || r.unwrap()), UR(se);
|
|
10291
|
+
let we = se.lastChild;
|
|
10292
10292
|
if (we && we.attr("id") === "mce_marker") {
|
|
10293
10293
|
const ke = we;
|
|
10294
10294
|
for (we = we.prev; we; we = we.walk(!0))
|
|
@@ -10297,8 +10297,8 @@ Required: ` + n.join(", "));
|
|
|
10297
10297
|
break;
|
|
10298
10298
|
}
|
|
10299
10299
|
}
|
|
10300
|
-
if (e._selectionOverrides.showBlockCaretContainer(oe), !K.invalid && !RI(f, oe,
|
|
10301
|
-
n = k.serialize(
|
|
10300
|
+
if (e._selectionOverrides.showBlockCaretContainer(oe), !K.invalid && !RI(f, oe, se))
|
|
10301
|
+
n = k.serialize(se), EI(e, n, oe);
|
|
10302
10302
|
else {
|
|
10303
10303
|
e.selection.setContent(P);
|
|
10304
10304
|
let ke = u.getNode(), Se;
|
|
@@ -10307,9 +10307,9 @@ Required: ` + n.join(", "));
|
|
|
10307
10307
|
ke = Se, Se = Se.parentNode;
|
|
10308
10308
|
n = ke === Be ? Be.innerHTML : f.getOuterHTML(ke);
|
|
10309
10309
|
const rt = b.parse(n), wt = ZR(rt), Ft = wt.bind(BR).getOr(rt);
|
|
10310
|
-
wt.each((Kt) => Kt.replace(
|
|
10311
|
-
const We =
|
|
10312
|
-
|
|
10310
|
+
wt.each((Kt) => Kt.replace(se));
|
|
10311
|
+
const We = se.children(), Ve = (l = se.parent) !== null && l !== void 0 ? l : rt;
|
|
10312
|
+
se.unwrap();
|
|
10313
10313
|
const st = zt(We, (Kt) => oS(e.schema, Kt, Ve));
|
|
10314
10314
|
nS(st, e.schema, Ft), eE(b.getNodeFilters(), b.getAttributeFilters(), rt), n = k.serialize(rt), ke === Be ? f.setHTML(Be, n) : f.setOuterHTML(ke, n);
|
|
10315
10315
|
}
|
|
@@ -10543,13 +10543,13 @@ Required: ` + n.join(", "));
|
|
|
10543
10543
|
let K = of(l, y, b, !0);
|
|
10544
10544
|
K = L(K), e.formatter.remove(n, o, K, r), u.moveToBookmark(oe);
|
|
10545
10545
|
} else {
|
|
10546
|
-
const oe = hh(e.getBody(), ee), K = Ze(oe) ? l.getParents(ee.parentNode, pt, oe) : [],
|
|
10547
|
-
uS(e,
|
|
10548
|
-
const we = NI(e,
|
|
10546
|
+
const oe = hh(e.getBody(), ee), K = Ze(oe) ? l.getParents(ee.parentNode, pt, oe) : [], se = vE(!1).dom;
|
|
10547
|
+
uS(e, se, oe ?? ee);
|
|
10548
|
+
const we = NI(e, se, ee, n, o, r), ke = dS([
|
|
10549
10549
|
...F,
|
|
10550
10550
|
...we.toArray(),
|
|
10551
10551
|
...K
|
|
10552
|
-
],
|
|
10552
|
+
], se);
|
|
10553
10553
|
oe && yE(e, oe, Ze(oe)), u.setCursorLocation(ke, 1), l.isEmpty(ee) && l.remove(ee);
|
|
10554
10554
|
}
|
|
10555
10555
|
}, CE = (e, n, o) => {
|
|
@@ -10740,11 +10740,11 @@ Required: ` + n.join(", "));
|
|
|
10740
10740
|
if (ee === "class") {
|
|
10741
10741
|
const K = u.getAttrib(y, ee);
|
|
10742
10742
|
if (K) {
|
|
10743
|
-
let
|
|
10743
|
+
let se = "";
|
|
10744
10744
|
if (Te(K.split(/\s+/), (we) => {
|
|
10745
|
-
/mce\-\w+/.test(we) && (
|
|
10746
|
-
}),
|
|
10747
|
-
u.setAttrib(y, ee,
|
|
10745
|
+
/mce\-\w+/.test(we) && (se += (se ? " " : "") + we);
|
|
10746
|
+
}), se) {
|
|
10747
|
+
u.setAttrib(y, ee, se);
|
|
10748
10748
|
return;
|
|
10749
10749
|
}
|
|
10750
10750
|
}
|
|
@@ -10782,7 +10782,7 @@ Required: ` + n.join(", "));
|
|
|
10782
10782
|
const ee = o.parentNode;
|
|
10783
10783
|
for (let oe = r.parentNode; oe && oe !== ee; oe = oe.parentNode) {
|
|
10784
10784
|
let K = F.clone(oe, !1);
|
|
10785
|
-
for (let
|
|
10785
|
+
for (let se = 0; se < n.length && (K = g$(e, n[se], b, K), K !== null); se++)
|
|
10786
10786
|
;
|
|
10787
10787
|
K && (P && K.appendChild(P), B || (B = K), P = K);
|
|
10788
10788
|
}
|
|
@@ -10791,13 +10791,13 @@ Required: ` + n.join(", "));
|
|
|
10791
10791
|
return r;
|
|
10792
10792
|
}, UI = (e, n, o, r, l) => {
|
|
10793
10793
|
const u = e.formatter.get(n), f = u[0], b = e.dom, y = e.selection, k = (K) => {
|
|
10794
|
-
const
|
|
10795
|
-
return zI(e, u,
|
|
10796
|
-
}, P = (K) => Oi(K) && qt(K) && (K.id === "_start" || K.id === "_end"), B = (K) => Rt(u, (
|
|
10797
|
-
const
|
|
10798
|
-
if (!ke && Ze(Se) && v1(f) && B(Se), f.deep &&
|
|
10799
|
-
for (let rt = 0; rt <
|
|
10800
|
-
F(
|
|
10794
|
+
const se = f$(e, K, n, o, l);
|
|
10795
|
+
return zI(e, u, se, K, K, !0, f, o);
|
|
10796
|
+
}, P = (K) => Oi(K) && qt(K) && (K.id === "_start" || K.id === "_end"), B = (K) => Rt(u, (se) => Hw(e, se, o, K, K)), F = (K) => {
|
|
10797
|
+
const se = wr(K.childNodes), ke = B(K) || Rt(u, (rt) => Nw(b, K, rt)), Se = K.parentNode;
|
|
10798
|
+
if (!ke && Ze(Se) && v1(f) && B(Se), f.deep && se.length)
|
|
10799
|
+
for (let rt = 0; rt < se.length; rt++)
|
|
10800
|
+
F(se[rt]);
|
|
10801
10801
|
Te([
|
|
10802
10802
|
"underline",
|
|
10803
10803
|
"line-through",
|
|
@@ -10811,25 +10811,25 @@ Required: ` + n.join(", "));
|
|
|
10811
10811
|
}, void 0, K);
|
|
10812
10812
|
});
|
|
10813
10813
|
}, ee = (K) => {
|
|
10814
|
-
const
|
|
10815
|
-
if (
|
|
10816
|
-
let we =
|
|
10817
|
-
return P(we) && (we = we[K ? "firstChild" : "lastChild"]), ut(we) && we.data.length === 0 && (we = K ?
|
|
10814
|
+
const se = b.get(K ? "_start" : "_end");
|
|
10815
|
+
if (se) {
|
|
10816
|
+
let we = se[K ? "firstChild" : "lastChild"];
|
|
10817
|
+
return P(we) && (we = we[K ? "firstChild" : "lastChild"]), ut(we) && we.data.length === 0 && (we = K ? se.previousSibling || se.nextSibling : se.nextSibling || se.previousSibling), b.remove(se, !0), we;
|
|
10818
10818
|
} else
|
|
10819
10819
|
return null;
|
|
10820
10820
|
}, oe = (K) => {
|
|
10821
|
-
let
|
|
10821
|
+
let se, we, ke = of(b, K, u, K.collapsed);
|
|
10822
10822
|
if (f.split) {
|
|
10823
|
-
if (ke = L(ke),
|
|
10824
|
-
if (
|
|
10825
|
-
const Be = z.from(
|
|
10823
|
+
if (ke = L(ke), se = c$(e, ke, !0), we = c$(e, ke), se !== we) {
|
|
10824
|
+
if (se = EE(se, !0), we = EE(we, !1), bS(b, se, we)) {
|
|
10825
|
+
const Be = z.from(se.firstChild).getOr(se);
|
|
10826
10826
|
k(i$(b, Be, !0, "span", {
|
|
10827
10827
|
id: "_start",
|
|
10828
10828
|
"data-mce-type": "bookmark"
|
|
10829
10829
|
})), ee(!0);
|
|
10830
10830
|
return;
|
|
10831
10831
|
}
|
|
10832
|
-
if (bS(b, we,
|
|
10832
|
+
if (bS(b, we, se)) {
|
|
10833
10833
|
const Be = z.from(we.lastChild).getOr(we);
|
|
10834
10834
|
k(i$(b, Be, !1, "span", {
|
|
10835
10835
|
id: "_end",
|
|
@@ -10837,7 +10837,7 @@ Required: ` + n.join(", "));
|
|
|
10837
10837
|
})), ee(!1);
|
|
10838
10838
|
return;
|
|
10839
10839
|
}
|
|
10840
|
-
|
|
10840
|
+
se = AE(b, se, "span", {
|
|
10841
10841
|
id: "_start",
|
|
10842
10842
|
"data-mce-type": "bookmark"
|
|
10843
10843
|
}), we = AE(b, we, "span", {
|
|
@@ -10845,14 +10845,14 @@ Required: ` + n.join(", "));
|
|
|
10845
10845
|
"data-mce-type": "bookmark"
|
|
10846
10846
|
});
|
|
10847
10847
|
const Se = b.createRng();
|
|
10848
|
-
Se.setStartAfter(
|
|
10848
|
+
Se.setStartAfter(se), Se.setEndBefore(we), S1(b, Se, (Be) => {
|
|
10849
10849
|
Te(Be, (rt) => {
|
|
10850
10850
|
!Oi(rt) && !Oi(rt.parentNode) && k(rt);
|
|
10851
10851
|
});
|
|
10852
|
-
}), k(
|
|
10852
|
+
}), k(se), k(we), se = ee(!0), we = ee();
|
|
10853
10853
|
} else
|
|
10854
|
-
|
|
10855
|
-
ke.startContainer =
|
|
10854
|
+
se = we = k(se);
|
|
10855
|
+
ke.startContainer = se.parentNode ? se.parentNode : se, ke.startOffset = b.nodeIndex(se), ke.endContainer = we.parentNode ? we.parentNode : we, ke.endOffset = b.nodeIndex(we) + 1;
|
|
10856
10856
|
}
|
|
10857
10857
|
S1(b, ke, (Se) => {
|
|
10858
10858
|
Te(Se, F);
|
|
@@ -10914,29 +10914,29 @@ Required: ` + n.join(", "));
|
|
|
10914
10914
|
}
|
|
10915
10915
|
}, v$ = (e, n, o, r) => {
|
|
10916
10916
|
const l = e.formatter.get(n), u = l[0], f = !r && e.selection.isCollapsed(), b = e.dom, y = e.selection, k = (oe, K = u) => {
|
|
10917
|
-
pe(K.onformat) && K.onformat(oe, K, o, r), b$(b, oe, K, o), vS(K.attributes, (
|
|
10918
|
-
b.setAttrib(oe, we, bd(
|
|
10919
|
-
}), vS(K.classes, (
|
|
10920
|
-
const we = bd(
|
|
10917
|
+
pe(K.onformat) && K.onformat(oe, K, o, r), b$(b, oe, K, o), vS(K.attributes, (se, we) => {
|
|
10918
|
+
b.setAttrib(oe, we, bd(se, o));
|
|
10919
|
+
}), vS(K.classes, (se) => {
|
|
10920
|
+
const we = bd(se, o);
|
|
10921
10921
|
b.hasClass(oe, we) || b.addClass(oe, we);
|
|
10922
10922
|
});
|
|
10923
10923
|
}, P = (oe, K) => {
|
|
10924
|
-
let
|
|
10925
|
-
return vS(oe, (we) => hl(we) ? b.getContentEditable(K) === "false" && !we.ceFalseOverride || Ze(we.collapsed) && we.collapsed !== f ? !0 : b.is(K, we.selector) && !Di(K) ? (k(K, we),
|
|
10924
|
+
let se = !1;
|
|
10925
|
+
return vS(oe, (we) => hl(we) ? b.getContentEditable(K) === "false" && !we.ceFalseOverride || Ze(we.collapsed) && we.collapsed !== f ? !0 : b.is(K, we.selector) && !Di(K) ? (k(K, we), se = !0, !1) : !0 : !1), se;
|
|
10926
10926
|
}, B = (oe) => {
|
|
10927
10927
|
if (he(oe)) {
|
|
10928
10928
|
const K = b.create(oe);
|
|
10929
10929
|
return k(K), K;
|
|
10930
10930
|
} else
|
|
10931
10931
|
return null;
|
|
10932
|
-
}, F = (oe, K,
|
|
10932
|
+
}, F = (oe, K, se) => {
|
|
10933
10933
|
const we = [];
|
|
10934
10934
|
let ke = !0;
|
|
10935
10935
|
const Se = u.inline || u.block, Be = B(Se), rt = (We) => Cv(u) && cg(e, We, n, o), wt = (We, Ve, st) => {
|
|
10936
10936
|
const Kt = Up(u) && aa(e.schema, We) && nf(e, Ve, Se);
|
|
10937
10937
|
return st && Kt;
|
|
10938
10938
|
}, Ft = (We, Ve, st, Kt) => {
|
|
10939
|
-
const cn = We.nodeName.toLowerCase(), Jn = nf(e, Se, cn) && nf(e, Ve, Se), qn = !
|
|
10939
|
+
const cn = We.nodeName.toLowerCase(), Jn = nf(e, Se, cn) && nf(e, Ve, Se), qn = !se && ut(We) && T(We.data), gs = Di(We), Rs = !Jr(u) || !oe.isBlock(We);
|
|
10940
10940
|
return (st || Kt) && Jn && !qn && !gs && Rs;
|
|
10941
10941
|
};
|
|
10942
10942
|
S1(oe, K, (We) => {
|
|
@@ -11007,8 +11007,8 @@ Required: ` + n.join(", "));
|
|
|
11007
11007
|
else
|
|
11008
11008
|
!f || !Jr(u) || Vp(e).length ? (y.setRng(zv(y.getRng())), h1(e, () => {
|
|
11009
11009
|
ng(e, (oe, K) => {
|
|
11010
|
-
const
|
|
11011
|
-
F(b,
|
|
11010
|
+
const se = K ? oe : of(b, oe, l);
|
|
11011
|
+
F(b, se, !1);
|
|
11012
11012
|
});
|
|
11013
11013
|
}, pt), e.nodeChanged()) : II(e, n, o), SE(e.formatter, n).each((oe) => {
|
|
11014
11014
|
Te(FI(e.selection), (K) => b$(b, K, oe, o));
|
|
@@ -12033,7 +12033,7 @@ Required: ` + n.join(", "));
|
|
|
12033
12033
|
return n.isSupported = !1, n;
|
|
12034
12034
|
const o = e.document, r = o.currentScript;
|
|
12035
12035
|
let { document: l } = e;
|
|
12036
|
-
const { DocumentFragment: u, HTMLTemplateElement: f, Node: b, Element: y, NodeFilter: k, NamedNodeMap: P = e.NamedNodeMap || e.MozNamedAttrMap, HTMLFormElement: B, DOMParser: F, trustedTypes: ee } = e, oe = y.prototype, K = CS(oe, "cloneNode"),
|
|
12036
|
+
const { DocumentFragment: u, HTMLTemplateElement: f, Node: b, Element: y, NodeFilter: k, NamedNodeMap: P = e.NamedNodeMap || e.MozNamedAttrMap, HTMLFormElement: B, DOMParser: F, trustedTypes: ee } = e, oe = y.prototype, K = CS(oe, "cloneNode"), se = CS(oe, "nextSibling"), we = CS(oe, "childNodes"), ke = CS(oe, "parentNode");
|
|
12037
12037
|
if (typeof f == "function") {
|
|
12038
12038
|
const ao = l.createElement("template");
|
|
12039
12039
|
ao.content && ao.content.ownerDocument && (l = ao.content.ownerDocument);
|
|
@@ -12274,7 +12274,7 @@ Required: ` + n.join(", "));
|
|
|
12274
12274
|
if (Lc && Vr) {
|
|
12275
12275
|
const Dd = Lc.length;
|
|
12276
12276
|
for (let Va = Dd - 1; Va >= 0; --Va)
|
|
12277
|
-
Vr.insertBefore(K(Lc[Va], !0),
|
|
12277
|
+
Vr.insertBefore(K(Lc[Va], !0), se(ze));
|
|
12278
12278
|
}
|
|
12279
12279
|
}
|
|
12280
12280
|
return ln(ze), !0;
|
|
@@ -12609,11 +12609,11 @@ Required: ` + n.join(", "));
|
|
|
12609
12609
|
} else
|
|
12610
12610
|
Ze(l) && (l.allowedTags[B] = !0);
|
|
12611
12611
|
if (k && K && !ee) {
|
|
12612
|
-
if (Te((b = K.attributesForced) !== null && b !== void 0 ? b : [], (
|
|
12613
|
-
xs(F,
|
|
12614
|
-
}), Te((y = K.attributesDefault) !== null && y !== void 0 ? y : [], (
|
|
12615
|
-
Zr(F,
|
|
12616
|
-
}), K.attributesRequired && !Rt(K.attributesRequired, (
|
|
12612
|
+
if (Te((b = K.attributesForced) !== null && b !== void 0 ? b : [], (se) => {
|
|
12613
|
+
xs(F, se.name, se.value === "{$uid}" ? `mce_${q$++}` : se.value);
|
|
12614
|
+
}), Te((y = K.attributesDefault) !== null && y !== void 0 ? y : [], (se) => {
|
|
12615
|
+
Zr(F, se.name) || xs(F, se.name, se.value === "{$uid}" ? `mce_${q$++}` : se.value);
|
|
12616
|
+
}), K.attributesRequired && !Rt(K.attributesRequired, (se) => Zr(F, se))) {
|
|
12617
12617
|
cl(F);
|
|
12618
12618
|
return;
|
|
12619
12619
|
}
|
|
@@ -12781,7 +12781,7 @@ Required: ` + n.join(", "));
|
|
|
12781
12781
|
}, K = (Se, Be) => {
|
|
12782
12782
|
const rt = he(Be.attr(ZE)), wt = Be.type === 1 && !pn(Se, Be.name) && !zm(n, Be) && !cd(Be.name);
|
|
12783
12783
|
return Be.type === 3 || wt && !rt;
|
|
12784
|
-
},
|
|
12784
|
+
}, se = (Se, Be) => {
|
|
12785
12785
|
const rt = J$(X$("script,style,head,html,body,title,meta,param"), n.getBlockElements()), wt = /^[ \t\r\n]+/, Ft = /[ \t\r\n]+$/;
|
|
12786
12786
|
let We = Se.firstChild, Ve = null;
|
|
12787
12787
|
const st = (Kt) => {
|
|
@@ -12829,7 +12829,7 @@ Required: ` + n.join(", "));
|
|
|
12829
12829
|
} else
|
|
12830
12830
|
nS(cn, n, Ve, gs);
|
|
12831
12831
|
const Rs = kS(l, Be);
|
|
12832
|
-
return Rs && (Ve.name === "body" || Be.isRootContent) &&
|
|
12832
|
+
return Rs && (Ve.name === "body" || Be.isRootContent) && se(Ve, Rs), Be.invalid || QT(qn, Be), Ve;
|
|
12833
12833
|
}
|
|
12834
12834
|
};
|
|
12835
12835
|
return O$(ke, l), $E(ke, l, n), ke;
|
|
@@ -13019,24 +13019,24 @@ Required: ` + n.join(", "));
|
|
|
13019
13019
|
}), f = (P, B, F, ee, oe) => {
|
|
13020
13020
|
const K = y(P, B, F, ee);
|
|
13021
13021
|
if (K === null || K.start === B && K.diag === B - ee || K.end === P && K.diag === P - F) {
|
|
13022
|
-
let
|
|
13023
|
-
for (;
|
|
13024
|
-
|
|
13022
|
+
let se = P, we = F;
|
|
13023
|
+
for (; se < B || we < ee; )
|
|
13024
|
+
se < B && we < ee && e[se] === n[we] ? (oe.push([
|
|
13025
13025
|
qw,
|
|
13026
|
-
e[
|
|
13027
|
-
]), ++
|
|
13026
|
+
e[se]
|
|
13027
|
+
]), ++se, ++we) : B - P > ee - F ? (oe.push([
|
|
13028
13028
|
s5,
|
|
13029
|
-
e[
|
|
13030
|
-
]), ++
|
|
13029
|
+
e[se]
|
|
13030
|
+
]), ++se) : (oe.push([
|
|
13031
13031
|
o5,
|
|
13032
13032
|
n[we]
|
|
13033
13033
|
]), ++we);
|
|
13034
13034
|
} else {
|
|
13035
13035
|
f(P, K.start, F, K.start - K.diag, oe);
|
|
13036
|
-
for (let
|
|
13036
|
+
for (let se = K.start; se < K.end; ++se)
|
|
13037
13037
|
oe.push([
|
|
13038
13038
|
qw,
|
|
13039
|
-
e[
|
|
13039
|
+
e[se]
|
|
13040
13040
|
]);
|
|
13041
13041
|
f(K.end, B, K.end - K.diag, ee, oe);
|
|
13042
13042
|
}
|
|
@@ -13049,20 +13049,20 @@ Required: ` + n.join(", "));
|
|
|
13049
13049
|
const oe = B - P, K = ee - F;
|
|
13050
13050
|
if (oe === 0 || K === 0)
|
|
13051
13051
|
return null;
|
|
13052
|
-
const
|
|
13052
|
+
const se = oe - K, we = K + oe, ke = (we % 2 === 0 ? we : we + 1) / 2;
|
|
13053
13053
|
r[1 + ke] = P, l[1 + ke] = B + 1;
|
|
13054
13054
|
let Se, Be, rt, wt, Ft;
|
|
13055
13055
|
for (Se = 0; Se <= ke; ++Se) {
|
|
13056
13056
|
for (Be = -Se; Be <= Se; Be += 2) {
|
|
13057
13057
|
for (rt = Be + ke, Be === -Se || Be !== Se && r[rt - 1] < r[rt + 1] ? r[rt] = r[rt + 1] : r[rt] = r[rt - 1] + 1, wt = r[rt], Ft = wt - P + F - Be; wt < B && Ft < ee && e[wt] === n[Ft]; )
|
|
13058
13058
|
r[rt] = ++wt, ++Ft;
|
|
13059
|
-
if (
|
|
13060
|
-
return b(l[rt -
|
|
13059
|
+
if (se % 2 !== 0 && se - Se <= Be && Be <= se + Se && l[rt - se] <= r[rt])
|
|
13060
|
+
return b(l[rt - se], Be + P - F, B, ee);
|
|
13061
13061
|
}
|
|
13062
|
-
for (Be =
|
|
13063
|
-
for (rt = Be + ke -
|
|
13062
|
+
for (Be = se - Se; Be <= se + Se; Be += 2) {
|
|
13063
|
+
for (rt = Be + ke - se, Be === se - Se || Be !== se + Se && l[rt + 1] <= l[rt - 1] ? l[rt] = l[rt + 1] - 1 : l[rt] = l[rt - 1], wt = l[rt] - 1, Ft = wt - P + F - Be; wt >= P && Ft >= F && e[wt] === n[Ft]; )
|
|
13064
13064
|
l[rt] = wt--, Ft--;
|
|
13065
|
-
if (
|
|
13065
|
+
if (se % 2 === 0 && -Se <= Be && Be <= Se && l[rt] <= r[rt + se])
|
|
13066
13066
|
return b(l[rt], Be + P - F, B, ee);
|
|
13067
13067
|
}
|
|
13068
13068
|
}
|
|
@@ -13434,7 +13434,7 @@ Required: ` + n.join(", "));
|
|
|
13434
13434
|
}, y = (Tt) => mF(r, Tt), k = (Tt, on) => bF(r, Tt, on), P = (Tt) => CT(r.getBody(), Se(), Tt), B = (Tt) => BO(r.getBody(), Se(), Tt), F = (Tt, on) => Ml.getBookmark(Tt, on), ee = (Tt) => Ml.moveToBookmark(Tt), oe = (Tt, on) => (hN(e, Tt, on).each(Be), Tt), K = () => {
|
|
13435
13435
|
const Tt = Se(), on = ke();
|
|
13436
13436
|
return !Tt || Tt.item ? !1 : Tt.compareEndPoints ? Tt.compareEndPoints("StartToEnd", Tt) === 0 : !on || Tt.collapsed;
|
|
13437
|
-
},
|
|
13437
|
+
}, se = () => {
|
|
13438
13438
|
const Tt = Se(), on = r.getBody().querySelectorAll('[data-mce-selected="1"]');
|
|
13439
13439
|
return on.length > 0 ? nr(on, (Kn) => e.isEditable(Kn.parentElement)) : MO(e, Tt);
|
|
13440
13440
|
}, we = (Tt) => {
|
|
@@ -13512,7 +13512,7 @@ Required: ` + n.join(", "));
|
|
|
13512
13512
|
moveToBookmark: ee,
|
|
13513
13513
|
select: oe,
|
|
13514
13514
|
isCollapsed: K,
|
|
13515
|
-
isEditable:
|
|
13515
|
+
isEditable: se,
|
|
13516
13516
|
isForward: We,
|
|
13517
13517
|
setNode: rt,
|
|
13518
13518
|
getNode: wt,
|
|
@@ -13909,24 +13909,24 @@ Options:${f}${o.join(f)}` : "";
|
|
|
13909
13909
|
const o = () => {
|
|
13910
13910
|
const K = e.theme;
|
|
13911
13911
|
return K && K.getWindowManagerImpl ? K.getWindowManagerImpl() : nG();
|
|
13912
|
-
}, r = (K,
|
|
13912
|
+
}, r = (K, se) => (...we) => se ? se.apply(K, we) : void 0, l = (K) => {
|
|
13913
13913
|
e.dispatch("OpenWindow", { dialog: K });
|
|
13914
13914
|
}, u = (K) => {
|
|
13915
13915
|
e.dispatch("CloseWindow", { dialog: K });
|
|
13916
13916
|
}, f = (K) => {
|
|
13917
13917
|
n.push(K), l(K);
|
|
13918
13918
|
}, b = (K) => {
|
|
13919
|
-
u(K), n = zt(n, (
|
|
13919
|
+
u(K), n = zt(n, (se) => se !== K), n.length === 0 && e.focus();
|
|
13920
13920
|
}, y = () => z.from(n[n.length - 1]), k = (K) => {
|
|
13921
13921
|
e.editorManager.setActive(e), Pv(e), e.ui.show();
|
|
13922
|
-
const
|
|
13923
|
-
return f(
|
|
13924
|
-
}, P = (K,
|
|
13922
|
+
const se = K();
|
|
13923
|
+
return f(se), se;
|
|
13924
|
+
}, P = (K, se) => k(() => o().open(K, se, b)), B = (K) => k(() => o().openUrl(K, b)), F = (K, se, we) => {
|
|
13925
13925
|
const ke = o();
|
|
13926
|
-
ke.alert(K, r(we || ke,
|
|
13927
|
-
}, ee = (K,
|
|
13926
|
+
ke.alert(K, r(we || ke, se));
|
|
13927
|
+
}, ee = (K, se, we) => {
|
|
13928
13928
|
const ke = o();
|
|
13929
|
-
ke.confirm(K, r(we || ke,
|
|
13929
|
+
ke.confirm(K, r(we || ke, se));
|
|
13930
13930
|
}, oe = () => {
|
|
13931
13931
|
y().each((K) => {
|
|
13932
13932
|
o().close(K), b(K);
|
|
@@ -14096,10 +14096,10 @@ Options:${f}${o.join(f)}` : "";
|
|
|
14096
14096
|
}
|
|
14097
14097
|
};
|
|
14098
14098
|
}, JF = (e, n) => {
|
|
14099
|
-
const o = {}, r = (K,
|
|
14099
|
+
const o = {}, r = (K, se) => K ? K.replace(/\/$/, "") + "/" + se.replace(/^\//, "") : se, l = (K, se) => new Promise((we, ke) => {
|
|
14100
14100
|
const Se = new XMLHttpRequest();
|
|
14101
14101
|
Se.open("POST", n.url), Se.withCredentials = n.credentials, Se.upload.onprogress = (rt) => {
|
|
14102
|
-
|
|
14102
|
+
se(rt.loaded / rt.total * 100);
|
|
14103
14103
|
}, Se.onerror = () => {
|
|
14104
14104
|
ke("Image upload failed due to a XHR Transport error. Code: " + Se.status);
|
|
14105
14105
|
}, Se.onload = () => {
|
|
@@ -14118,20 +14118,20 @@ Options:${f}${o.join(f)}` : "";
|
|
|
14118
14118
|
Be.append("file", K.blob(), K.filename()), Se.send(Be);
|
|
14119
14119
|
}), u = pe(n.handler) ? n.handler : l, f = () => new Promise((K) => {
|
|
14120
14120
|
K([]);
|
|
14121
|
-
}), b = (K,
|
|
14122
|
-
url:
|
|
14121
|
+
}), b = (K, se) => ({
|
|
14122
|
+
url: se,
|
|
14123
14123
|
blobInfo: K,
|
|
14124
14124
|
status: !0
|
|
14125
|
-
}), y = (K,
|
|
14125
|
+
}), y = (K, se) => ({
|
|
14126
14126
|
url: "",
|
|
14127
14127
|
blobInfo: K,
|
|
14128
14128
|
status: !1,
|
|
14129
|
-
error:
|
|
14130
|
-
}), k = (K,
|
|
14129
|
+
error: se
|
|
14130
|
+
}), k = (K, se) => {
|
|
14131
14131
|
ct.each(o[K], (we) => {
|
|
14132
|
-
we(
|
|
14132
|
+
we(se);
|
|
14133
14133
|
}), delete o[K];
|
|
14134
|
-
}, P = (K,
|
|
14134
|
+
}, P = (K, se, we) => (e.markPending(K.blobUri()), new Promise((ke) => {
|
|
14135
14135
|
let Se, Be;
|
|
14136
14136
|
try {
|
|
14137
14137
|
const rt = () => {
|
|
@@ -14145,19 +14145,19 @@ Options:${f}${o.join(f)}` : "";
|
|
|
14145
14145
|
We < 0 || We > 100 || z.from(Se).orThunk(() => z.from(we).map(ho)).each((Ve) => {
|
|
14146
14146
|
Se = Ve, Ve.progressBar.value(We);
|
|
14147
14147
|
});
|
|
14148
|
-
},
|
|
14148
|
+
}, se(K, Be).then(wt, (We) => {
|
|
14149
14149
|
Ft(he(We) ? { message: We } : We);
|
|
14150
14150
|
});
|
|
14151
14151
|
} catch (rt) {
|
|
14152
14152
|
ke(y(K, rt));
|
|
14153
14153
|
}
|
|
14154
14154
|
})), B = (K) => K === l, F = (K) => {
|
|
14155
|
-
const
|
|
14155
|
+
const se = K.blobUri();
|
|
14156
14156
|
return new Promise((we) => {
|
|
14157
|
-
o[
|
|
14157
|
+
o[se] = o[se] || [], o[se].push(we);
|
|
14158
14158
|
});
|
|
14159
|
-
}, ee = (K,
|
|
14160
|
-
return { upload: (K,
|
|
14159
|
+
}, ee = (K, se) => (K = ct.grep(K, (we) => !e.isUploaded(we.blobUri())), Promise.all(ct.map(K, (we) => e.isPending(we.blobUri()) ? F(we) : P(we, u, se))));
|
|
14160
|
+
return { upload: (K, se) => !n.url && B(u) ? f() : ee(K, se) };
|
|
14161
14161
|
}, QF = (e) => () => e.notificationManager.open({
|
|
14162
14162
|
text: e.translate("Image uploading..."),
|
|
14163
14163
|
type: "info",
|
|
@@ -14195,7 +14195,7 @@ Options:${f}${o.join(f)}` : "";
|
|
|
14195
14195
|
src: J0(e) ? b(Be) : Be,
|
|
14196
14196
|
"data-mce-src": rt
|
|
14197
14197
|
});
|
|
14198
|
-
}, F = () => (o || (o = sy(e, l)),
|
|
14198
|
+
}, F = () => (o || (o = sy(e, l)), se().then(f((Se) => {
|
|
14199
14199
|
const Be = Ke(Se, (rt) => rt.blobInfo);
|
|
14200
14200
|
return o.upload(Be, QF(e)).then(f((rt) => {
|
|
14201
14201
|
const wt = [];
|
|
@@ -14220,7 +14220,7 @@ Options:${f}${o.join(f)}` : "";
|
|
|
14220
14220
|
}));
|
|
14221
14221
|
}))), ee = () => DC(e) ? F() : Promise.resolve([]), oe = (Se) => nr(u, (Be) => Be(Se)), K = (Se) => {
|
|
14222
14222
|
u.push(Se);
|
|
14223
|
-
},
|
|
14223
|
+
}, se = () => (r || (r = qF(l, n)), r.findAll(e.getBody(), oe).then(f((Se) => {
|
|
14224
14224
|
const Be = zt(Se, (rt) => he(rt) ? (FS(e, rt), !1) : rt.uriType !== "blob");
|
|
14225
14225
|
return Dh(e) || Te(Be, (rt) => {
|
|
14226
14226
|
P(rt.image.src, rt.blobInfo.blobUri()), rt.image.src = rt.blobInfo.blobUri(), rt.image.removeAttribute("data-mce-src");
|
|
@@ -14235,7 +14235,7 @@ Options:${f}${o.join(f)}` : "";
|
|
|
14235
14235
|
return Ft || (Ft = Vo(e.editorManager.get(), (We, Ve) => We || Ve.editorUpload && Ve.editorUpload.blobCache.getByUri(rt), void 0)), Ft ? 'src="data:' + Ft.blob().type + ";base64," + Ft.base64() + '"' : Be;
|
|
14236
14236
|
});
|
|
14237
14237
|
return e.on("SetContent", () => {
|
|
14238
|
-
DC(e) ? ee() :
|
|
14238
|
+
DC(e) ? ee() : se();
|
|
14239
14239
|
}), e.on("RawSaveContent", (Se) => {
|
|
14240
14240
|
Se.content = ke(Se.content);
|
|
14241
14241
|
}), e.on("GetContent", (Se) => {
|
|
@@ -14255,7 +14255,7 @@ Options:${f}${o.join(f)}` : "";
|
|
|
14255
14255
|
addFilter: K,
|
|
14256
14256
|
uploadImages: F,
|
|
14257
14257
|
uploadImagesAuto: ee,
|
|
14258
|
-
scanForImages:
|
|
14258
|
+
scanForImages: se,
|
|
14259
14259
|
destroy: we
|
|
14260
14260
|
};
|
|
14261
14261
|
}, o9 = (e) => {
|
|
@@ -14679,8 +14679,8 @@ Options:${f}${o.join(f)}` : "";
|
|
|
14679
14679
|
const ke = l(we);
|
|
14680
14680
|
K.insertBefore(ke, y);
|
|
14681
14681
|
});
|
|
14682
|
-
const
|
|
14683
|
-
return f(K, k,
|
|
14682
|
+
const se = ry(B) ? B.siblings : void 0;
|
|
14683
|
+
return f(K, k, se);
|
|
14684
14684
|
}, b = bc.create("div");
|
|
14685
14685
|
if (e.length > 0) {
|
|
14686
14686
|
const y = e[0], k = l(y), P = ry(y) ? y.siblings : void 0;
|
|
@@ -15350,22 +15350,22 @@ Options:${f}${o.join(f)}` : "";
|
|
|
15350
15350
|
if (!b)
|
|
15351
15351
|
return z.none();
|
|
15352
15352
|
if (I5(e)) {
|
|
15353
|
-
const
|
|
15354
|
-
return (y ? q9 : G9)(k,
|
|
15353
|
+
const se = y ? Le.fromRangeEnd(o) : Le.fromRangeStart(o);
|
|
15354
|
+
return (y ? q9 : G9)(k, se).orThunk(() => z.from(se)).map((ke) => ke.toRange());
|
|
15355
15355
|
}
|
|
15356
15356
|
const B = (y ? DM : AM)(k, uy(1), f), F = zt(B, dy(1)), ee = b.left, oe = TM(F, ee);
|
|
15357
15357
|
if (oe && u(oe.node)) {
|
|
15358
|
-
const
|
|
15359
|
-
return bg(n, e, oe.node,
|
|
15358
|
+
const se = Math.abs(ee - oe.left), we = Math.abs(ee - oe.right);
|
|
15359
|
+
return bg(n, e, oe.node, se < we, !1);
|
|
15360
15360
|
}
|
|
15361
15361
|
let K;
|
|
15362
15362
|
if (r(f) ? K = f.getNode() : l(f) ? K = f.getNode(!0) : K = Qy(o), K) {
|
|
15363
|
-
const
|
|
15364
|
-
let we = TM(zt(
|
|
15365
|
-
if (we || (we = Or(zt(
|
|
15363
|
+
const se = J9(n, k, uy(1), K);
|
|
15364
|
+
let we = TM(zt(se, dy(1)), ee);
|
|
15365
|
+
if (we || (we = Or(zt(se, dy(0))), we))
|
|
15366
15366
|
return sk(e, we.position.toRange(), !1);
|
|
15367
15367
|
}
|
|
15368
|
-
return F.length === 0 ? my(e, y).filter(y ? l : r).map((
|
|
15368
|
+
return F.length === 0 ? my(e, y).filter(y ? l : r).map((se) => XS(e, se.toRange(), !1)) : z.none();
|
|
15369
15369
|
}, my = (e, n) => {
|
|
15370
15370
|
const o = e.selection.getRng(), r = n ? Le.fromRangeEnd(o) : Le.fromRangeStart(o), l = H2(r.container(), e.getBody());
|
|
15371
15371
|
if (n) {
|
|
@@ -15625,7 +15625,7 @@ Options:${f}${o.join(f)}` : "";
|
|
|
15625
15625
|
const B = f.nodeName.toLowerCase();
|
|
15626
15626
|
if (!r.isValidChild(B, P.toLowerCase()) || _H(l, f, u))
|
|
15627
15627
|
return;
|
|
15628
|
-
const F = o.getRng(), { startContainer: ee, startOffset: oe, endContainer: K, endOffset:
|
|
15628
|
+
const F = o.getRng(), { startContainer: ee, startOffset: oe, endContainer: K, endOffset: se } = F, we = Xp(e);
|
|
15629
15629
|
let ke = f.firstChild;
|
|
15630
15630
|
for (; ke; )
|
|
15631
15631
|
if (qt(ke) && Sb(r, ke), XM(r, ke)) {
|
|
@@ -15636,7 +15636,7 @@ Options:${f}${o.join(f)}` : "";
|
|
|
15636
15636
|
b || (b = JM(e), f.insertBefore(b, ke), k = !0), y = ke, ke = ke.nextSibling, b.appendChild(y);
|
|
15637
15637
|
} else
|
|
15638
15638
|
b = null, ke = ke.nextSibling;
|
|
15639
|
-
k && we && (F.setStart(ee, oe), F.setEnd(K,
|
|
15639
|
+
k && we && (F.setStart(ee, oe), F.setEnd(K, se), o.setRng(F), e.nodeChanged());
|
|
15640
15640
|
}, QM = (e, n, o) => {
|
|
15641
15641
|
const r = ie.fromDom(JM(e)), l = Gl();
|
|
15642
15642
|
_r(r, l), o(n, r);
|
|
@@ -16428,8 +16428,8 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
16428
16428
|
Ze(y) && Ze(k) && Ze(P) && Ze(B) && (b == null || b.setBaseAndExtent(y, k, P, B));
|
|
16429
16429
|
}, ee = () => {
|
|
16430
16430
|
y = b == null ? void 0 : b.anchorNode, k = b == null ? void 0 : b.anchorOffset, P = b == null ? void 0 : b.focusNode, B = b == null ? void 0 : b.focusOffset;
|
|
16431
|
-
}, oe = (
|
|
16432
|
-
Te(
|
|
16431
|
+
}, oe = (se, we) => {
|
|
16432
|
+
Te(se.childNodes, (ke) => {
|
|
16433
16433
|
g1(ke) && we.appendChild(ke);
|
|
16434
16434
|
});
|
|
16435
16435
|
}, K = e.dom.create("span", { "data-mce-bogus": "1" });
|
|
@@ -16836,7 +16836,7 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
16836
16836
|
}, bP = {
|
|
16837
16837
|
insert: (e, n) => {
|
|
16838
16838
|
let o, r, l, u, f = !1;
|
|
16839
|
-
const b = e.dom, y = e.schema, k = y.getNonEmptyElements(), P = e.selection.getRng(), B = Xl(e), F = ie.fromDom(P.startContainer), ee = Cu(F, P.startOffset), oe = ee.exists((st) => Gs(st) && !Vn(st)), K = P.collapsed && oe,
|
|
16839
|
+
const b = e.dom, y = e.schema, k = y.getNonEmptyElements(), P = e.selection.getRng(), B = Xl(e), F = ie.fromDom(P.startContainer), ee = Cu(F, P.startOffset), oe = ee.exists((st) => Gs(st) && !Vn(st)), K = P.collapsed && oe, se = (st, Kt) => jA(e, o, wt, rt, a3(e), st, Kt), we = (st) => {
|
|
16840
16840
|
const Kt = XA(st, o, r);
|
|
16841
16841
|
if (ut(o) && (st ? Kt > 0 : Kt < o.data.length))
|
|
16842
16842
|
return !1;
|
|
@@ -16861,7 +16861,7 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
16861
16861
|
return !0;
|
|
16862
16862
|
}, ke = () => {
|
|
16863
16863
|
let st;
|
|
16864
|
-
return /^(H[1-6]|PRE|FIGURE)$/.test(l) && Ft !== "HGROUP" ? st =
|
|
16864
|
+
return /^(H[1-6]|PRE|FIGURE)$/.test(l) && Ft !== "HGROUP" ? st = se(B) : st = se(), hz(e, u) && YA(b, u) && b.isEmpty(wt, void 0, { includeZwsp: !0 }) ? st = b.split(u, wt) : b.insertAfter(st, wt), sr(e, st), st;
|
|
16865
16865
|
};
|
|
16866
16866
|
S(b, P).each((st) => {
|
|
16867
16867
|
P.setStart(st.startContainer, st.startOffset), P.setEnd(st.endContainer, st.endOffset);
|
|
@@ -16880,9 +16880,9 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
16880
16880
|
wt = st, u = st.parentNode, l = Ft;
|
|
16881
16881
|
}
|
|
16882
16882
|
if (qt(u) && rz(e, Se, wt))
|
|
16883
|
-
return az(e,
|
|
16883
|
+
return az(e, se, wt);
|
|
16884
16884
|
if (/^(LI|DT|DD)$/.test(l) && qt(u) && b.isEmpty(wt)) {
|
|
16885
|
-
gP(e,
|
|
16885
|
+
gP(e, se, u, wt, B);
|
|
16886
16886
|
return;
|
|
16887
16887
|
}
|
|
16888
16888
|
if (!K && (wt === e.getBody() || !YA(b, wt)))
|
|
@@ -16890,7 +16890,7 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
16890
16890
|
const We = wt.parentNode;
|
|
16891
16891
|
let Ve;
|
|
16892
16892
|
if (K)
|
|
16893
|
-
Ve =
|
|
16893
|
+
Ve = se(B), ee.fold(() => {
|
|
16894
16894
|
_r(F, ie.fromDom(Ve));
|
|
16895
16895
|
}, (st) => {
|
|
16896
16896
|
jr(st, ie.fromDom(Ve));
|
|
@@ -16900,7 +16900,7 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
16900
16900
|
else if (we(!1))
|
|
16901
16901
|
Ve = ke();
|
|
16902
16902
|
else if (we(!0) && We) {
|
|
16903
|
-
Ve = We.insertBefore(
|
|
16903
|
+
Ve = We.insertBefore(se(), wt);
|
|
16904
16904
|
const st = Lg(ie.fromDom(P.startContainer)) && P.collapsed;
|
|
16905
16905
|
sr(e, Dx(wt, "HR") || st ? Ve : wt);
|
|
16906
16906
|
} else {
|
|
@@ -17736,8 +17736,8 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
17736
17736
|
const B = u.parseStyle(u.decode(k)), F = {};
|
|
17737
17737
|
for (let oe = 0; oe < l.length; oe++) {
|
|
17738
17738
|
const K = B[l[oe]];
|
|
17739
|
-
let
|
|
17740
|
-
/color/.test(l[oe]) && (
|
|
17739
|
+
let se = K, we = u.getStyle(f, l[oe], !0);
|
|
17740
|
+
/color/.test(l[oe]) && (se = uB(se), we = uB(we)), we !== se && (F[l[oe]] = K);
|
|
17741
17741
|
}
|
|
17742
17742
|
const ee = u.serializeStyle(F, "span");
|
|
17743
17743
|
return ee ? y + ' style="' + ee + '"' + P : y + P;
|
|
@@ -17981,9 +17981,9 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
17981
17981
|
}, TB = Kk("left", -Zk), EB = Kk("left", Zk), rW = Kk("top", -Zk), AB = Kk("top", Zk), _D = (e, n, o, r, l, u, f, b, y, k, P, B) => {
|
|
17982
17982
|
let F = 0, ee = 0;
|
|
17983
17983
|
e.style.left = n.pageX + "px", e.style.top = n.pageY + "px", n.pageX + o > l && (F = n.pageX + o - l), n.pageY + r > u && (ee = n.pageY + r - u), e.style.width = o - F + "px", e.style.height = r - ee + "px";
|
|
17984
|
-
const oe = y.clientHeight, K = y.clientWidth,
|
|
17984
|
+
const oe = y.clientHeight, K = y.clientWidth, se = f + y.getBoundingClientRect().top, we = b + y.getBoundingClientRect().left;
|
|
17985
17985
|
P.on((ke) => {
|
|
17986
|
-
ke.intervalId.clear(), ke.dragging && B && (f + jk >= oe ? ke.intervalId.set(AB(k)) : f - jk <= 0 ? ke.intervalId.set(rW(k)) : b + jk >= K ? ke.intervalId.set(EB(k)) : b - jk <= 0 ? ke.intervalId.set(TB(k)) :
|
|
17986
|
+
ke.intervalId.clear(), ke.dragging && B && (f + jk >= oe ? ke.intervalId.set(AB(k)) : f - jk <= 0 ? ke.intervalId.set(rW(k)) : b + jk >= K ? ke.intervalId.set(EB(k)) : b - jk <= 0 ? ke.intervalId.set(TB(k)) : se + Gk >= window.innerHeight ? ke.intervalId.set(AB(window)) : se - Gk <= 0 ? ke.intervalId.set(rW(window)) : we + Gk >= window.innerWidth ? ke.intervalId.set(EB(window)) : we - Gk <= 0 && ke.intervalId.set(TB(window)));
|
|
17987
17987
|
});
|
|
17988
17988
|
}, Yk = (e) => {
|
|
17989
17989
|
e && e.parentNode && e.parentNode.removeChild(e);
|
|
@@ -18167,7 +18167,7 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
18167
18167
|
Ve = Ve.cloneRange(), Ve.selectNode(b), We.range = Ve;
|
|
18168
18168
|
}
|
|
18169
18169
|
}), e.on("SetSelectionRange", (We) => {
|
|
18170
|
-
We.range =
|
|
18170
|
+
We.range = se(We.range);
|
|
18171
18171
|
const Ve = Se(We.range, We.forward);
|
|
18172
18172
|
Ve && (We.range = Ve);
|
|
18173
18173
|
});
|
|
@@ -18176,7 +18176,7 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
18176
18176
|
const Ve = We.range, st = Ve.startContainer.parentElement;
|
|
18177
18177
|
!K(Ve) && !Ft(st) && wt(), y(st) || Be();
|
|
18178
18178
|
}), hW(e), RB(e), pW(e);
|
|
18179
|
-
}, oe = (Ft) => an(Ft) || ql(Ft) || Yc(Ft), K = (Ft) => oe(Ft.startContainer) || oe(Ft.endContainer),
|
|
18179
|
+
}, oe = (Ft) => an(Ft) || ql(Ft) || Yc(Ft), K = (Ft) => oe(Ft.startContainer) || oe(Ft.endContainer), se = (Ft) => {
|
|
18180
18180
|
const We = e.schema.getVoidElements(), Ve = o.createRng(), st = Ft.startContainer, Kt = Ft.startOffset, cn = Ft.endContainer, Jn = Ft.endOffset;
|
|
18181
18181
|
return pn(We, st.nodeName.toLowerCase()) ? Kt === 0 ? Ve.setStartBefore(st) : Ve.setStartAfter(st) : Ve.setStart(st, Kt), pn(We, cn.nodeName.toLowerCase()) ? Jn === 0 ? Ve.setEndBefore(cn) : Ve.setEndAfter(cn) : Ve.setEnd(cn, Jn), Ve;
|
|
18182
18182
|
}, we = (Ft, We) => {
|
|
@@ -18414,11 +18414,11 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
18414
18414
|
position: k
|
|
18415
18415
|
}), ee = F.position;
|
|
18416
18416
|
return kW(l, f, ee.container, ee.offset, n, B.isNone()).map((K) => {
|
|
18417
|
-
const
|
|
18417
|
+
const se = wW(l, u, K, r);
|
|
18418
18418
|
return {
|
|
18419
18419
|
matches: F.matches.concat([{
|
|
18420
18420
|
pattern: f,
|
|
18421
|
-
startRng:
|
|
18421
|
+
startRng: se,
|
|
18422
18422
|
endRng: P
|
|
18423
18423
|
}]),
|
|
18424
18424
|
position: bf(K.startContainer, K.startOffset)
|
|
@@ -18577,7 +18577,7 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
18577
18577
|
});
|
|
18578
18578
|
}, K = () => {
|
|
18579
18579
|
e.shortcuts.add("meta+a", null, "SelectAll");
|
|
18580
|
-
},
|
|
18580
|
+
}, se = () => {
|
|
18581
18581
|
e.inline || l.bind(e.getDoc(), "mousedown mouseup", (Qt) => {
|
|
18582
18582
|
let $n;
|
|
18583
18583
|
if (Qt.target === e.getDoc().documentElement)
|
|
@@ -18739,7 +18739,7 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
18739
18739
|
const Qt = e.selection.getSel();
|
|
18740
18740
|
return !Qt || !Qt.rangeCount || Qt.rangeCount === 0;
|
|
18741
18741
|
}, on = () => {
|
|
18742
|
-
k && (
|
|
18742
|
+
k && (se(), Se(), Hr(), K(), P && (Jn(), qn(), Rs())), y && (ke(), Ft(), cn(), gs());
|
|
18743
18743
|
}, Kn = () => {
|
|
18744
18744
|
e.on("drop", (Qt) => {
|
|
18745
18745
|
var $n;
|
|
@@ -18747,7 +18747,7 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
18747
18747
|
he(Ct) && /^<img[^>]*>$/.test(Ct) && e.dispatch("dragend", new window.DragEvent("dragend", Qt));
|
|
18748
18748
|
});
|
|
18749
18749
|
}, mo = () => {
|
|
18750
|
-
wt(), oe(), It.windowsPhone || Kt(), k && (
|
|
18750
|
+
wt(), oe(), It.windowsPhone || Kt(), k && (se(), Se(), Ve(), Hr(), rt(), Ml(), P ? (Jn(), qn(), Rs()) : K()), y && (we(), ke(), Be(), Ft(), We(), cn(), gs(), rt(), Kn());
|
|
18751
18751
|
};
|
|
18752
18752
|
return Dh(e) ? on() : mo(), {
|
|
18753
18753
|
refreshContentEditable: us,
|
|
@@ -19909,7 +19909,7 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
19909
19909
|
...F,
|
|
19910
19910
|
default: oe,
|
|
19911
19911
|
processor: ee
|
|
19912
|
-
}, Xo(r, B).orThunk(() => Xo(n, B)).each((
|
|
19912
|
+
}, Xo(r, B).orThunk(() => Xo(n, B)).each((se) => l(B, se, ee));
|
|
19913
19913
|
}, f = (B) => pn(o, B);
|
|
19914
19914
|
return {
|
|
19915
19915
|
register: u,
|
|
@@ -20424,11 +20424,11 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
20424
20424
|
let P = 0;
|
|
20425
20425
|
const B = [];
|
|
20426
20426
|
let F;
|
|
20427
|
-
const ee = (oe, K,
|
|
20427
|
+
const ee = (oe, K, se) => {
|
|
20428
20428
|
const we = new g4(oe, K, n);
|
|
20429
20429
|
B.push(we), we.on("init", () => {
|
|
20430
20430
|
++P === F.length && y(B);
|
|
20431
|
-
}), we.targetElm = we.targetElm ||
|
|
20431
|
+
}), we.targetElm = we.targetElm || se, we.render();
|
|
20432
20432
|
};
|
|
20433
20433
|
Sy.unbind(window, "ready", k), f("onpageload"), F = di(b(e)), ct.each(F, (oe) => {
|
|
20434
20434
|
ij(n.get(oe.id));
|
|
@@ -20905,13 +20905,13 @@ tinymce.IconManager.add("default", {
|
|
|
20905
20905
|
}
|
|
20906
20906
|
});
|
|
20907
20907
|
(function() {
|
|
20908
|
-
const A = Object.getPrototypeOf,
|
|
20908
|
+
const A = Object.getPrototypeOf, re = (t, s, a) => {
|
|
20909
20909
|
var c;
|
|
20910
20910
|
return a(t, s.prototype) ? !0 : ((c = t.constructor) === null || c === void 0 ? void 0 : c.name) === s.name;
|
|
20911
20911
|
}, G = (t) => {
|
|
20912
20912
|
const s = typeof t;
|
|
20913
|
-
return t === null ? "null" : s === "object" && Array.isArray(t) ? "array" : s === "object" &&
|
|
20914
|
-
}, _e = (t) => (s) => G(s) === t, ne = (t) => (s) => typeof s === t, Z = (t) => (s) => t === s, xe = (t, s) => $e(t) &&
|
|
20913
|
+
return t === null ? "null" : s === "object" && Array.isArray(t) ? "array" : s === "object" && re(t, String, (a, c) => c.isPrototypeOf(a)) ? "string" : s;
|
|
20914
|
+
}, _e = (t) => (s) => G(s) === t, ne = (t) => (s) => typeof s === t, Z = (t) => (s) => t === s, xe = (t, s) => $e(t) && re(t, s, (a, c) => A(a) === c), X = _e("string"), $e = _e("object"), lt = (t) => xe(t, Object), yt = _e("array"), hn = Z(null), Et = ne("boolean"), io = Z(void 0), lo = (t) => t == null, eo = (t) => !lo(t), Ot = ne("function"), Ls = ne("number"), un = (t, s) => {
|
|
20915
20915
|
if (yt(t)) {
|
|
20916
20916
|
for (let a = 0, c = t.length; a < c; ++a)
|
|
20917
20917
|
if (!s(t[a]))
|
|
@@ -40547,7 +40547,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
40547
40547
|
], oe = [
|
|
40548
40548
|
Qr,
|
|
40549
40549
|
A0("tabs", ee)
|
|
40550
|
-
], K = rn(oe),
|
|
40550
|
+
], K = rn(oe), se = Vx, we = T7, ke = rn([
|
|
40551
40551
|
Bo("title"),
|
|
40552
40552
|
dc("body", ut("type", {
|
|
40553
40553
|
panel: F,
|
|
@@ -40567,7 +40567,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
40567
40567
|
"cancel",
|
|
40568
40568
|
"custom"
|
|
40569
40569
|
]),
|
|
40570
|
-
...
|
|
40570
|
+
...se
|
|
40571
40571
|
]), rt = rn([
|
|
40572
40572
|
Bo("title"),
|
|
40573
40573
|
Bo("url"),
|
|
@@ -42087,12 +42087,12 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
42087
42087
|
})();
|
|
42088
42088
|
(function() {
|
|
42089
42089
|
var A = tinymce.util.Tools.resolve("tinymce.ModelManager");
|
|
42090
|
-
const
|
|
42090
|
+
const re = (i, m, h) => {
|
|
42091
42091
|
var v;
|
|
42092
42092
|
return h(i, m.prototype) ? !0 : ((v = i.constructor) === null || v === void 0 ? void 0 : v.name) === m.name;
|
|
42093
42093
|
}, G = (i) => {
|
|
42094
42094
|
const m = typeof i;
|
|
42095
|
-
return i === null ? "null" : m === "object" && Array.isArray(i) ? "array" : m === "object" &&
|
|
42095
|
+
return i === null ? "null" : m === "object" && Array.isArray(i) ? "array" : m === "object" && re(i, String, (h, v) => v.isPrototypeOf(h)) ? "string" : m;
|
|
42096
42096
|
}, _e = (i) => (m) => G(m) === i, ne = (i) => (m) => typeof m === i, Z = (i) => (m) => i === m, xe = _e("string"), X = _e("object"), $e = _e("array"), lt = Z(null), yt = ne("boolean"), hn = Z(void 0), Et = (i) => i == null, io = (i) => !Et(i), lo = ne("function"), eo = ne("number"), Ot = () => {
|
|
42097
42097
|
}, Ls = (i, m) => (...h) => i(m.apply(null, h)), un = (i, m) => (h) => i(m(h)), he = (i) => () => i, kt = (i) => i, ia = (i, m) => i === m;
|
|
42098
42098
|
function oo(i, ...m) {
|
|
@@ -46330,12 +46330,12 @@ Required: ` + m.join(", "));
|
|
|
46330
46330
|
})();
|
|
46331
46331
|
(function() {
|
|
46332
46332
|
var A = tinymce.util.Tools.resolve("tinymce.PluginManager");
|
|
46333
|
-
const
|
|
46333
|
+
const re = (_, M, U) => {
|
|
46334
46334
|
var ce;
|
|
46335
46335
|
return U(_, M.prototype) ? !0 : ((ce = _.constructor) === null || ce === void 0 ? void 0 : ce.name) === M.name;
|
|
46336
46336
|
}, G = (_) => {
|
|
46337
46337
|
const M = typeof _;
|
|
46338
|
-
return _ === null ? "null" : M === "object" && Array.isArray(_) ? "array" : M === "object" &&
|
|
46338
|
+
return _ === null ? "null" : M === "object" && Array.isArray(_) ? "array" : M === "object" && re(_, String, (U, ce) => ce.isPrototypeOf(U)) ? "string" : M;
|
|
46339
46339
|
}, _e = (_) => (M) => G(M) === _, ne = (_) => (M) => typeof M === _, Z = _e("string"), xe = _e("object"), X = _e("array"), $e = ne("boolean"), lt = (_) => _ == null, yt = (_) => !lt(_), hn = ne("function"), Et = ne("number"), io = () => {
|
|
46340
46340
|
}, lo = (_, M) => (U) => _(M(U)), eo = (_) => () => _, Ot = (_, M) => _ === M;
|
|
46341
46341
|
function Ls(_, ...M) {
|
|
@@ -47478,12 +47478,12 @@ Required: ` + m.join(", "));
|
|
|
47478
47478
|
})();
|
|
47479
47479
|
(function() {
|
|
47480
47480
|
var A = tinymce.util.Tools.resolve("tinymce.PluginManager");
|
|
47481
|
-
const
|
|
47481
|
+
const re = (q, ge, Ee) => {
|
|
47482
47482
|
var Ie;
|
|
47483
47483
|
return Ee(q, ge.prototype) ? !0 : ((Ie = q.constructor) === null || Ie === void 0 ? void 0 : Ie.name) === ge.name;
|
|
47484
47484
|
}, G = (q) => {
|
|
47485
47485
|
const ge = typeof q;
|
|
47486
|
-
return q === null ? "null" : ge === "object" && Array.isArray(q) ? "array" : ge === "object" &&
|
|
47486
|
+
return q === null ? "null" : ge === "object" && Array.isArray(q) ? "array" : ge === "object" && re(q, String, (Ee, Ie) => Ie.isPrototypeOf(Ee)) ? "string" : ge;
|
|
47487
47487
|
}, _e = (q) => (ge) => G(ge) === q, ne = (q) => (ge) => typeof ge === q, Z = (q) => (ge) => q === ge, xe = _e("string"), X = _e("object"), $e = _e("array"), lt = Z(null), yt = ne("boolean"), hn = (q) => q == null, Et = (q) => !hn(q), io = ne("function"), lo = (q, ge) => {
|
|
47488
47488
|
if ($e(q)) {
|
|
47489
47489
|
for (let Ee = 0, Ie = q.length; Ee < Ie; ++Ee)
|
|
@@ -48235,13 +48235,13 @@ Required: ` + m.join(", "));
|
|
|
48235
48235
|
})();
|
|
48236
48236
|
(function() {
|
|
48237
48237
|
var A = tinymce.util.Tools.resolve("tinymce.PluginManager");
|
|
48238
|
-
const
|
|
48238
|
+
const re = Object.getPrototypeOf, G = (I, J, le) => {
|
|
48239
48239
|
var Fe;
|
|
48240
48240
|
return le(I, J.prototype) ? !0 : ((Fe = I.constructor) === null || Fe === void 0 ? void 0 : Fe.name) === J.name;
|
|
48241
48241
|
}, _e = (I) => {
|
|
48242
48242
|
const J = typeof I;
|
|
48243
48243
|
return I === null ? "null" : J === "object" && Array.isArray(I) ? "array" : J === "object" && G(I, String, (le, Fe) => Fe.isPrototypeOf(le)) ? "string" : J;
|
|
48244
|
-
}, ne = (I) => (J) => _e(J) === I, Z = (I) => (J) => typeof J === I, xe = (I) => (J) => I === J, X = (I, J) => lt(I) && G(I, J, (le, Fe) =>
|
|
48244
|
+
}, ne = (I) => (J) => _e(J) === I, Z = (I) => (J) => typeof J === I, xe = (I) => (J) => I === J, X = (I, J) => lt(I) && G(I, J, (le, Fe) => re(le) === Fe), $e = ne("string"), lt = ne("object"), yt = (I) => X(I, Object), hn = ne("array"), Et = xe(null), io = Z("boolean"), lo = (I) => I == null, eo = (I) => !lo(I), Ot = Z("function"), Ls = Z("number"), un = (I, J) => {
|
|
48245
48245
|
if (hn(I)) {
|
|
48246
48246
|
for (let le = 0, Fe = I.length; le < Fe; ++le)
|
|
48247
48247
|
if (!J(I[le]))
|
|
@@ -49104,12 +49104,12 @@ Required: ` + m.join(", "));
|
|
|
49104
49104
|
})();
|
|
49105
49105
|
(function() {
|
|
49106
49106
|
var A = tinymce.util.Tools.resolve("tinymce.PluginManager");
|
|
49107
|
-
const
|
|
49107
|
+
const re = (x, T, V) => {
|
|
49108
49108
|
var Y;
|
|
49109
49109
|
return V(x, T.prototype) ? !0 : ((Y = x.constructor) === null || Y === void 0 ? void 0 : Y.name) === T.name;
|
|
49110
49110
|
}, G = (x) => {
|
|
49111
49111
|
const T = typeof x;
|
|
49112
|
-
return x === null ? "null" : T === "object" && Array.isArray(x) ? "array" : T === "object" &&
|
|
49112
|
+
return x === null ? "null" : T === "object" && Array.isArray(x) ? "array" : T === "object" && re(x, String, (V, Y) => Y.isPrototypeOf(V)) ? "string" : T;
|
|
49113
49113
|
}, _e = (x) => (T) => G(T) === x, ne = (x) => (T) => typeof T === x, Z = (x) => (T) => x === T, xe = _e("string"), X = _e("array"), $e = ne("boolean"), lt = Z(void 0), yt = (x) => x == null, hn = (x) => !yt(x), Et = ne("function"), io = ne("number"), lo = () => {
|
|
49114
49114
|
}, eo = (x, T) => (V) => x(T(V)), Ot = (x) => () => x, Ls = (x) => x, un = (x, T) => x === T;
|
|
49115
49115
|
function he(x, ...T) {
|
|
@@ -51269,7 +51269,7 @@ Required: ` + T.join(", "));
|
|
|
51269
51269
|
})();
|
|
51270
51270
|
(function() {
|
|
51271
51271
|
var A = tinymce.util.Tools.resolve("tinymce.PluginManager");
|
|
51272
|
-
const
|
|
51272
|
+
const re = (X, $e) => {
|
|
51273
51273
|
X.focus(), X.undoManager.transact(() => {
|
|
51274
51274
|
X.setContent($e);
|
|
51275
51275
|
}), X.selection.setCursorLocation(), X.nodeChanged();
|
|
@@ -51300,7 +51300,7 @@ Required: ` + T.join(", "));
|
|
|
51300
51300
|
],
|
|
51301
51301
|
initialData: { code: $e },
|
|
51302
51302
|
onSubmit: (lt) => {
|
|
51303
|
-
|
|
51303
|
+
re(X, lt.getData().code), lt.close();
|
|
51304
51304
|
}
|
|
51305
51305
|
});
|
|
51306
51306
|
}, ne = (X) => {
|
|
@@ -51587,7 +51587,7 @@ const ste = { class: "font-bold ptext-lg dark:text-white" }, rte = ["id"], ate =
|
|
|
51587
51587
|
description: { type: String, default: "" }
|
|
51588
51588
|
},
|
|
51589
51589
|
emits: ["update:modelValue", "keydown"],
|
|
51590
|
-
setup(A, { expose:
|
|
51590
|
+
setup(A, { expose: re, emit: G }) {
|
|
51591
51591
|
const _e = A, ne = G, Z = co(null);
|
|
51592
51592
|
let xe = null;
|
|
51593
51593
|
Dg(async () => {
|
|
@@ -51626,7 +51626,7 @@ const ste = { class: "font-bold ptext-lg dark:text-white" }, rte = ["id"], ate =
|
|
|
51626
51626
|
ne("update:modelValue", lt);
|
|
51627
51627
|
}
|
|
51628
51628
|
});
|
|
51629
|
-
return
|
|
51629
|
+
return re({ focus: () => Z.value.focus() }), (lt, yt) => (ue(), fe(jn, null, [
|
|
51630
51630
|
A.show ? (ue(), fe("div", {
|
|
51631
51631
|
key: 0,
|
|
51632
51632
|
class: Zt(A.field_name)
|
|
@@ -51723,8 +51723,8 @@ const ste = { class: "font-bold ptext-lg dark:text-white" }, rte = ["id"], ate =
|
|
|
51723
51723
|
return 0;
|
|
51724
51724
|
if (this.limit === 0)
|
|
51725
51725
|
return this.lastPage;
|
|
51726
|
-
for (var A = this.currentPage,
|
|
51727
|
-
($e === 1 || $e ===
|
|
51726
|
+
for (var A = this.currentPage, re = this.lastPage, G = this.limit, _e = A - G, ne = A + G + 1, Z = [], xe = [], X, $e = 1; $e <= re; $e++)
|
|
51727
|
+
($e === 1 || $e === re || $e >= _e && $e < ne) && Z.push($e);
|
|
51728
51728
|
return Z.forEach(function(lt) {
|
|
51729
51729
|
X && (lt - X === 2 ? xe.push(X + 1) : lt - X !== 1 && xe.push("...")), xe.push(lt), X = lt;
|
|
51730
51730
|
}), xe;
|
|
@@ -51770,8 +51770,8 @@ const ste = { class: "font-bold ptext-lg dark:text-white" }, rte = ["id"], ate =
|
|
|
51770
51770
|
}
|
|
51771
51771
|
},
|
|
51772
51772
|
pageButtonEvents: (A) => ({
|
|
51773
|
-
click: (
|
|
51774
|
-
|
|
51773
|
+
click: (re) => {
|
|
51774
|
+
re.preventDefault(), this.selectPage(A);
|
|
51775
51775
|
}
|
|
51776
51776
|
})
|
|
51777
51777
|
});
|
|
@@ -51849,7 +51849,7 @@ const ste = { class: "font-bold ptext-lg dark:text-white" }, rte = ["id"], ate =
|
|
|
51849
51849
|
d: "m1 9 4-4-4-4"
|
|
51850
51850
|
})
|
|
51851
51851
|
], -1);
|
|
51852
|
-
function kte(A,
|
|
51852
|
+
function kte(A, re, G, _e, ne, Z) {
|
|
51853
51853
|
const xe = Rd("RenderlessPagination");
|
|
51854
51854
|
return ue(), Zu(xe, {
|
|
51855
51855
|
data: G.data,
|
|
@@ -51960,7 +51960,7 @@ const iq = /* @__PURE__ */ zr(mte, [["render", kte]]), Tte = {
|
|
|
51960
51960
|
default: !1
|
|
51961
51961
|
}
|
|
51962
51962
|
},
|
|
51963
|
-
setup(A, { expose:
|
|
51963
|
+
setup(A, { expose: re }) {
|
|
51964
51964
|
const G = co(""), _e = co(""), ne = co(""), Z = co("Cancel"), xe = co(!1), X = co(!1), $e = co(void 0), lt = co(void 0), yt = (eo = {}) => (G.value = eo.title, _e.value = eo.message, ne.value = eo.okButton, eo.cancelButton && (Z.value = eo.cancelButton), xe.value = !0, new Promise((Ot, Ls) => {
|
|
51965
51965
|
$e.value = Ot, lt.value = Ls;
|
|
51966
51966
|
})), hn = () => {
|
|
@@ -51972,7 +51972,7 @@ const iq = /* @__PURE__ */ zr(mte, [["render", kte]]), Tte = {
|
|
|
51972
51972
|
}, lo = () => {
|
|
51973
51973
|
xe.value = !1, $e.value(!1);
|
|
51974
51974
|
};
|
|
51975
|
-
return
|
|
51975
|
+
return re({
|
|
51976
51976
|
show: yt,
|
|
51977
51977
|
showLoading: hn,
|
|
51978
51978
|
hideLoading: Et
|
|
@@ -52094,8 +52094,8 @@ const iq = /* @__PURE__ */ zr(mte, [["render", kte]]), Tte = {
|
|
|
52094
52094
|
message: "Are you sure you want to delete the selected items?",
|
|
52095
52095
|
okButton: "Yes, delete it"
|
|
52096
52096
|
}))
|
|
52097
|
-
this.$refs.ConfirmationDelete.showLoading(), this.checkedIds.forEach((
|
|
52098
|
-
axios.delete(`${this.xprops.route}/${
|
|
52097
|
+
this.$refs.ConfirmationDelete.showLoading(), this.checkedIds.forEach((re) => {
|
|
52098
|
+
axios.delete(`${this.xprops.route}/${re}`).then(() => {
|
|
52099
52099
|
}).catch((G) => {
|
|
52100
52100
|
console.log(G);
|
|
52101
52101
|
});
|
|
@@ -52114,7 +52114,7 @@ const iq = /* @__PURE__ */ zr(mte, [["render", kte]]), Tte = {
|
|
|
52114
52114
|
this.checkedIds = [];
|
|
52115
52115
|
},
|
|
52116
52116
|
toggleCheck(A) {
|
|
52117
|
-
this.checkedIds.includes(A) ? this.checkedIds = this.checkedIds.filter((
|
|
52117
|
+
this.checkedIds.includes(A) ? this.checkedIds = this.checkedIds.filter((re) => re !== A) : this.checkedIds.push(A);
|
|
52118
52118
|
},
|
|
52119
52119
|
editAction(A) {
|
|
52120
52120
|
this.$emit("editAction", A);
|
|
@@ -52127,7 +52127,7 @@ const iq = /* @__PURE__ */ zr(mte, [["render", kte]]), Tte = {
|
|
|
52127
52127
|
},
|
|
52128
52128
|
GetItemLists(A = 1) {
|
|
52129
52129
|
this.isLoading = !0, this.page = A;
|
|
52130
|
-
const
|
|
52130
|
+
const re = {
|
|
52131
52131
|
sort: this.sortField,
|
|
52132
52132
|
order: this.sortOrder,
|
|
52133
52133
|
s: this.search,
|
|
@@ -52135,14 +52135,14 @@ const iq = /* @__PURE__ */ zr(mte, [["render", kte]]), Tte = {
|
|
|
52135
52135
|
page: this.page,
|
|
52136
52136
|
...this.dynamicFilters
|
|
52137
52137
|
};
|
|
52138
|
-
axios.get(this.xprops.route_get_data, { params:
|
|
52138
|
+
axios.get(this.xprops.route_get_data, { params: re }).then((G) => {
|
|
52139
52139
|
this.itemLists = G.data, this.isLoading = !1;
|
|
52140
52140
|
}).catch((G) => {
|
|
52141
52141
|
console.error(G), this.isLoading = !1;
|
|
52142
52142
|
});
|
|
52143
52143
|
},
|
|
52144
|
-
updateSortColumn(A,
|
|
52145
|
-
|
|
52144
|
+
updateSortColumn(A, re) {
|
|
52145
|
+
re && (A === this.sortField ? this.sortOrder = this.sortOrder === "asc" ? "desc" : "asc" : (this.sortField = A, this.sortOrder = "asc"), this.GetItemLists(this.page));
|
|
52146
52146
|
},
|
|
52147
52147
|
handleSearch() {
|
|
52148
52148
|
this.sortField = this.columns[0].field_name, this.sortOrder = "asc", this.page = 1, this.GetItemLists(this.page);
|
|
@@ -52158,8 +52158,8 @@ const iq = /* @__PURE__ */ zr(mte, [["render", kte]]), Tte = {
|
|
|
52158
52158
|
perPage(A) {
|
|
52159
52159
|
this.page = 1, this.perPage = A, this.GetItemLists(this.page);
|
|
52160
52160
|
},
|
|
52161
|
-
refreshData(A,
|
|
52162
|
-
this.isMounted && A !==
|
|
52161
|
+
refreshData(A, re) {
|
|
52162
|
+
this.isMounted && A !== re && this.GetItemLists();
|
|
52163
52163
|
},
|
|
52164
52164
|
dynamicFilters: {
|
|
52165
52165
|
handler(A) {
|
|
@@ -52240,7 +52240,7 @@ const iq = /* @__PURE__ */ zr(mte, [["render", kte]]), Tte = {
|
|
|
52240
52240
|
class: "text-center rounded-t-lg lg:rounded-t-none text-pretty before:content-[attr(data-label)] before:font-bold lg:before:content-none flex flex-col justify-between gap-2 lg:table-cell py-4 px-5 lg:py-3 lg:px-4 border-[1px] dark:border-gray-700",
|
|
52241
52241
|
"data-label": ""
|
|
52242
52242
|
}, dne = ["checked", "onChange"], mne = ["data-label"], fne = { class: "overflow-auto max-h-40" }, gne = { class: "flex items-center justify-between px-4 py-3 bg-white border-gray-200 sm:px-6 dark:text-gray-400 dark:bg-gray-800" };
|
|
52243
|
-
function hne(A,
|
|
52243
|
+
function hne(A, re, G, _e, ne, Z) {
|
|
52244
52244
|
const xe = Rd("DynamicConfirmation"), X = Rd("dropdown"), $e = Rd("GlDropdown"), lt = Rd("GlTextInput"), yt = Rd("gl-button"), hn = Rd("TailwindPagination");
|
|
52245
52245
|
return ue(), fe(jn, null, [
|
|
52246
52246
|
ui(xe, { ref: "ConfirmationDelete" }, null, 512),
|
|
@@ -52253,7 +52253,7 @@ function hne(A, se, G, _e, ne, Z) {
|
|
|
52253
52253
|
has_cancel: !1,
|
|
52254
52254
|
options: ne.pageOptions,
|
|
52255
52255
|
modelValue: ne.perPage,
|
|
52256
|
-
"onUpdate:modelValue":
|
|
52256
|
+
"onUpdate:modelValue": re[0] || (re[0] = (Et) => ne.perPage = Et),
|
|
52257
52257
|
is_required: !1,
|
|
52258
52258
|
field_name: "perPage",
|
|
52259
52259
|
label_name: "",
|
|
@@ -52269,8 +52269,8 @@ function hne(A, se, G, _e, ne, Z) {
|
|
|
52269
52269
|
Kte,
|
|
52270
52270
|
Tr(R("input", {
|
|
52271
52271
|
type: "text",
|
|
52272
|
-
"onUpdate:modelValue":
|
|
52273
|
-
onInput:
|
|
52272
|
+
"onUpdate:modelValue": re[1] || (re[1] = (Et) => ne.search = Et),
|
|
52273
|
+
onInput: re[2] || (re[2] = (Et) => Z.handleSearch()),
|
|
52274
52274
|
class: "block w-full p-2 text-sm text-gray-900 border border-gray-300 rounded-lg ps-10 bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",
|
|
52275
52275
|
placeholder: "Search ..."
|
|
52276
52276
|
}, null, 544), [
|
|
@@ -52437,7 +52437,7 @@ function hne(A, se, G, _e, ne, Z) {
|
|
|
52437
52437
|
field: lo.field_name,
|
|
52438
52438
|
xprops: G.xprops,
|
|
52439
52439
|
tdProps: lo.tdProps,
|
|
52440
|
-
onDeleteAction:
|
|
52440
|
+
onDeleteAction: re[3] || (re[3] = (Ot) => Z.GetItemLists()),
|
|
52441
52441
|
onEditAction: (Ot) => Z.editAction(Et),
|
|
52442
52442
|
onGeneralAction: (Ot) => Z.generalAction(Et)
|
|
52443
52443
|
}, null, 40, ["row", "field", "xprops", "tdProps", "onEditAction", "onGeneralAction"])) : (ue(), fe(jn, { key: 1 }, [
|
|
@@ -52498,16 +52498,16 @@ const Fce = /* @__PURE__ */ zr(Hte, [["render", hne]]), pne = {
|
|
|
52498
52498
|
return Math.ceil(this.filteredData.length / this.itemsPerPage);
|
|
52499
52499
|
},
|
|
52500
52500
|
paginatedData() {
|
|
52501
|
-
const A = (this.currentPage - 1) * this.itemsPerPage,
|
|
52502
|
-
return this.filteredData.slice(A,
|
|
52501
|
+
const A = (this.currentPage - 1) * this.itemsPerPage, re = A + this.itemsPerPage;
|
|
52502
|
+
return this.filteredData.slice(A, re);
|
|
52503
52503
|
},
|
|
52504
52504
|
displayedPageNumbers() {
|
|
52505
52505
|
let A = Math.max(
|
|
52506
52506
|
this.currentPage - Math.floor(this.maxDisplayedPages / 2),
|
|
52507
52507
|
1
|
|
52508
|
-
),
|
|
52509
|
-
return
|
|
52510
|
-
{ length:
|
|
52508
|
+
), re = A + this.maxDisplayedPages - 1;
|
|
52509
|
+
return re > this.totalPages && (re = this.totalPages, A = Math.max(re - this.maxDisplayedPages + 1, 1)), Array.from(
|
|
52510
|
+
{ length: re - A + 1 },
|
|
52511
52511
|
(G, _e) => A + _e
|
|
52512
52512
|
);
|
|
52513
52513
|
},
|
|
@@ -52542,7 +52542,7 @@ const Fce = /* @__PURE__ */ zr(Hte, [["render", hne]]), pne = {
|
|
|
52542
52542
|
A === this.sortKey ? this.sortOrder *= -1 : (this.sortKey = A, this.sortOrder = 1);
|
|
52543
52543
|
},
|
|
52544
52544
|
sortData(A) {
|
|
52545
|
-
return this.sortKey ? A.slice().sort((
|
|
52545
|
+
return this.sortKey ? A.slice().sort((re, G) => (re[this.sortKey] < G[this.sortKey] ? -1 : 1) * this.sortOrder) : A;
|
|
52546
52546
|
},
|
|
52547
52547
|
previousPage() {
|
|
52548
52548
|
this.currentPage > 1 && this.currentPage--;
|
|
@@ -52676,7 +52676,7 @@ const Fce = /* @__PURE__ */ zr(Hte, [["render", hne]]), pne = {
|
|
|
52676
52676
|
ooe,
|
|
52677
52677
|
soe
|
|
52678
52678
|
];
|
|
52679
|
-
function aoe(A,
|
|
52679
|
+
function aoe(A, re, G, _e, ne, Z) {
|
|
52680
52680
|
const xe = Rd("dropdown");
|
|
52681
52681
|
return ue(), fe("div", bne, [
|
|
52682
52682
|
R("div", vne, [
|
|
@@ -52687,7 +52687,7 @@ function aoe(A, se, G, _e, ne, Z) {
|
|
|
52687
52687
|
has_cancel: !1,
|
|
52688
52688
|
options: ne.showNoOfEntries,
|
|
52689
52689
|
modelValue: ne.itemsPerPage,
|
|
52690
|
-
"onUpdate:modelValue":
|
|
52690
|
+
"onUpdate:modelValue": re[0] || (re[0] = (X) => ne.itemsPerPage = X),
|
|
52691
52691
|
is_required: !1,
|
|
52692
52692
|
field_name: "NoOfEntries",
|
|
52693
52693
|
label_name: "",
|
|
@@ -52703,7 +52703,7 @@ function aoe(A, se, G, _e, ne, Z) {
|
|
|
52703
52703
|
kne,
|
|
52704
52704
|
Tr(R("input", {
|
|
52705
52705
|
type: "text",
|
|
52706
|
-
"onUpdate:modelValue":
|
|
52706
|
+
"onUpdate:modelValue": re[1] || (re[1] = (X) => ne.search = X),
|
|
52707
52707
|
class: "block p-2 text-sm text-gray-900 border border-gray-300 rounded-lg ps-10 w-80 bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",
|
|
52708
52708
|
placeholder: "Search ..."
|
|
52709
52709
|
}, null, 512), [
|
|
@@ -52752,7 +52752,7 @@ function aoe(A, se, G, _e, ne, Z) {
|
|
|
52752
52752
|
field: lt.field_name,
|
|
52753
52753
|
xprops: G.xprops,
|
|
52754
52754
|
tdProps: lt.tdProps,
|
|
52755
|
-
onDeleteAction:
|
|
52755
|
+
onDeleteAction: re[2] || (re[2] = (hn) => Z.GetItemLists()),
|
|
52756
52756
|
onEditAction: (hn) => Z.editAction(X),
|
|
52757
52757
|
onGeneralAction: (hn) => Z.generalAction(X)
|
|
52758
52758
|
}, null, 40, ["row", "field", "xprops", "tdProps", "onEditAction", "onGeneralAction"])) : (ue(), fe(jn, { key: 1 }, [
|
|
@@ -52768,13 +52768,13 @@ function aoe(A, se, G, _e, ne, Z) {
|
|
|
52768
52768
|
R("div", Hne, [
|
|
52769
52769
|
R("a", {
|
|
52770
52770
|
href: "#",
|
|
52771
|
-
onClick:
|
|
52771
|
+
onClick: re[3] || (re[3] = za((...X) => Z.previousPage && Z.previousPage(...X), ["prevent"])),
|
|
52772
52772
|
disabled: ne.currentPage === 1,
|
|
52773
52773
|
class: "relative inline-flex items-center px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50"
|
|
52774
52774
|
}, "Previous", 8, Vne),
|
|
52775
52775
|
R("a", {
|
|
52776
52776
|
href: "#",
|
|
52777
|
-
onClick:
|
|
52777
|
+
onClick: re[4] || (re[4] = za((...X) => Z.nextPage && Z.nextPage(...X), ["prevent"])),
|
|
52778
52778
|
disabled: ne.currentPage === Z.totalPages,
|
|
52779
52779
|
class: "relative inline-flex items-center px-4 py-2 ml-3 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50"
|
|
52780
52780
|
}, "Next", 8, zne)
|
|
@@ -52797,7 +52797,7 @@ function aoe(A, se, G, _e, ne, Z) {
|
|
|
52797
52797
|
R("li", null, [
|
|
52798
52798
|
R("a", {
|
|
52799
52799
|
href: "#",
|
|
52800
|
-
onClick:
|
|
52800
|
+
onClick: re[5] || (re[5] = za((...X) => Z.previousPage && Z.previousPage(...X), ["prevent"])),
|
|
52801
52801
|
disabled: ne.currentPage === 1,
|
|
52802
52802
|
class: "flex items-center justify-center h-8 px-3 leading-tight text-gray-500 bg-white border border-gray-300 ms-0 border-e-0 rounded-s-lg hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white"
|
|
52803
52803
|
}, Qne, 8, Yne)
|
|
@@ -52824,7 +52824,7 @@ function aoe(A, se, G, _e, ne, Z) {
|
|
|
52824
52824
|
R("li", null, [
|
|
52825
52825
|
R("a", {
|
|
52826
52826
|
href: "#",
|
|
52827
|
-
onClick:
|
|
52827
|
+
onClick: re[6] || (re[6] = za((...X) => Z.nextPage && Z.nextPage(...X), ["prevent"])),
|
|
52828
52828
|
disabled: ne.currentPage === Z.totalPages,
|
|
52829
52829
|
class: "flex items-center justify-center h-8 px-3 leading-tight text-gray-500 bg-white border border-gray-300 rounded-e-lg hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white"
|
|
52830
52830
|
}, roe, 8, noe)
|
|
@@ -52879,11 +52879,11 @@ const Hce = /* @__PURE__ */ zr(pne, [["render", aoe]]), loe = {
|
|
|
52879
52879
|
},
|
|
52880
52880
|
methods: {
|
|
52881
52881
|
groupBy(A) {
|
|
52882
|
-
return this.itemLists.data ? this.itemLists.data.reduce((
|
|
52882
|
+
return this.itemLists.data ? this.itemLists.data.reduce((re, G) => {
|
|
52883
52883
|
const _e = G[A];
|
|
52884
|
-
|
|
52884
|
+
re[_e] || (re[_e] = []);
|
|
52885
52885
|
const ne = { ...G };
|
|
52886
|
-
return delete ne[A],
|
|
52886
|
+
return delete ne[A], re[_e].push(ne), re;
|
|
52887
52887
|
}, {}) : [];
|
|
52888
52888
|
},
|
|
52889
52889
|
editAction(A) {
|
|
@@ -52894,21 +52894,21 @@ const Hce = /* @__PURE__ */ zr(pne, [["render", aoe]]), loe = {
|
|
|
52894
52894
|
},
|
|
52895
52895
|
GetItemLists(A = 1) {
|
|
52896
52896
|
this.isLoading = !0, this.page = A;
|
|
52897
|
-
const
|
|
52897
|
+
const re = {
|
|
52898
52898
|
sort: this.sortField,
|
|
52899
52899
|
order: this.sortOrder,
|
|
52900
52900
|
s: this.search,
|
|
52901
52901
|
limit: this.perPage,
|
|
52902
52902
|
page: this.page
|
|
52903
52903
|
};
|
|
52904
|
-
axios.get(this.xprops.route_get_data, { params:
|
|
52904
|
+
axios.get(this.xprops.route_get_data, { params: re }).then((G) => {
|
|
52905
52905
|
this.itemLists = G.data, this.isLoading = !1;
|
|
52906
52906
|
}).catch((G) => {
|
|
52907
52907
|
console.error(G), this.isLoading = !1;
|
|
52908
52908
|
});
|
|
52909
52909
|
},
|
|
52910
|
-
updateSortColumn(A,
|
|
52911
|
-
|
|
52910
|
+
updateSortColumn(A, re) {
|
|
52911
|
+
re && (A === this.sortField ? this.sortOrder = this.sortOrder === "asc" ? "desc" : "asc" : (this.sortField = A, this.sortOrder = "asc"), this.GetItemLists(this.page));
|
|
52912
52912
|
},
|
|
52913
52913
|
handleSearch() {
|
|
52914
52914
|
this.sortField = this.columns[0].field_name, this.sortOrder = "asc", this.page = 1, this.GetItemLists(this.page);
|
|
@@ -52924,8 +52924,8 @@ const Hce = /* @__PURE__ */ zr(pne, [["render", aoe]]), loe = {
|
|
|
52924
52924
|
perPage(A) {
|
|
52925
52925
|
this.page = 1, this.perPage = A, this.GetItemLists(this.page);
|
|
52926
52926
|
},
|
|
52927
|
-
refreshData(A,
|
|
52928
|
-
this.isMounted && A !==
|
|
52927
|
+
refreshData(A, re) {
|
|
52928
|
+
this.isMounted && A !== re && this.GetItemLists();
|
|
52929
52929
|
}
|
|
52930
52930
|
}
|
|
52931
52931
|
}, coe = { class: "p-2" }, ioe = { class: "flex flex-col flex-wrap pb-4 space-y-4 xl:flex-row xl:items-center xl:justify-between flex-column sm:space-y-0" }, uoe = { class: "flex items-center gap-2" }, doe = /* @__PURE__ */ R("span", { class: "font-medium" }, " Show ", -1), moe = { style: { "margin-top": "9px" } }, foe = /* @__PURE__ */ R("span", { class: "font-medium" }, " Entries ", -1), goe = /* @__PURE__ */ R("label", {
|
|
@@ -52997,7 +52997,7 @@ const Hce = /* @__PURE__ */ zr(pne, [["render", aoe]]), loe = {
|
|
|
52997
52997
|
], -1), Eoe = [
|
|
52998
52998
|
Toe
|
|
52999
52999
|
], Aoe = { class: "bg-white dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600 hover:dark:text-gray-200 text-gray-500" }, Doe = ["colspan"], Ooe = ["data-label"], Roe = { class: "overflow-auto max-h-40" }, $oe = { class: "flex items-center justify-between px-4 py-3 bg-white border-gray-200 sm:px-6 dark:text-gray-400 dark:bg-gray-800" };
|
|
53000
|
-
function Moe(A,
|
|
53000
|
+
function Moe(A, re, G, _e, ne, Z) {
|
|
53001
53001
|
const xe = Rd("dropdown"), X = Rd("TailwindPagination");
|
|
53002
53002
|
return ue(), fe("div", coe, [
|
|
53003
53003
|
R("div", ioe, [
|
|
@@ -53008,7 +53008,7 @@ function Moe(A, se, G, _e, ne, Z) {
|
|
|
53008
53008
|
has_cancel: !1,
|
|
53009
53009
|
options: ne.pageOptions,
|
|
53010
53010
|
modelValue: ne.perPage,
|
|
53011
|
-
"onUpdate:modelValue":
|
|
53011
|
+
"onUpdate:modelValue": re[0] || (re[0] = ($e) => ne.perPage = $e),
|
|
53012
53012
|
is_required: !1,
|
|
53013
53013
|
field_name: "perPage",
|
|
53014
53014
|
label_name: "",
|
|
@@ -53024,8 +53024,8 @@ function Moe(A, se, G, _e, ne, Z) {
|
|
|
53024
53024
|
poe,
|
|
53025
53025
|
Tr(R("input", {
|
|
53026
53026
|
type: "text",
|
|
53027
|
-
"onUpdate:modelValue":
|
|
53028
|
-
onInput:
|
|
53027
|
+
"onUpdate:modelValue": re[1] || (re[1] = ($e) => ne.search = $e),
|
|
53028
|
+
onInput: re[2] || (re[2] = ($e) => Z.handleSearch()),
|
|
53029
53029
|
class: "block w-full p-2 text-sm text-gray-900 border border-gray-300 rounded-lg ps-10 bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",
|
|
53030
53030
|
placeholder: "Search ..."
|
|
53031
53031
|
}, null, 544), [
|
|
@@ -53078,7 +53078,7 @@ function Moe(A, se, G, _e, ne, Z) {
|
|
|
53078
53078
|
field: Et.field_name,
|
|
53079
53079
|
xprops: G.xprops,
|
|
53080
53080
|
tdProps: Et.tdProps,
|
|
53081
|
-
onDeleteAction:
|
|
53081
|
+
onDeleteAction: re[3] || (re[3] = (lo) => Z.GetItemLists()),
|
|
53082
53082
|
onEditAction: (lo) => Z.editAction(yt)
|
|
53083
53083
|
}, null, 40, ["row", "field", "xprops", "tdProps", "onEditAction"])) : (ue(), fe(jn, { key: 1 }, [
|
|
53084
53084
|
Zn(mt(yt[Et.field_name]), 1)
|
|
@@ -53132,16 +53132,16 @@ const Vce = /* @__PURE__ */ zr(loe, [["render", Moe]]), Poe = {
|
|
|
53132
53132
|
return Math.ceil(this.filteredData.length / this.itemsPerPage);
|
|
53133
53133
|
},
|
|
53134
53134
|
paginatedData() {
|
|
53135
|
-
const A = (this.currentPage - 1) * this.itemsPerPage,
|
|
53136
|
-
return this.filteredData.slice(A,
|
|
53135
|
+
const A = (this.currentPage - 1) * this.itemsPerPage, re = A + this.itemsPerPage;
|
|
53136
|
+
return this.filteredData.slice(A, re);
|
|
53137
53137
|
},
|
|
53138
53138
|
displayedPageNumbers() {
|
|
53139
53139
|
let A = Math.max(
|
|
53140
53140
|
this.currentPage - Math.floor(this.maxDisplayedPages / 2),
|
|
53141
53141
|
1
|
|
53142
|
-
),
|
|
53143
|
-
return
|
|
53144
|
-
{ length:
|
|
53142
|
+
), re = A + this.maxDisplayedPages - 1;
|
|
53143
|
+
return re > this.totalPages && (re = this.totalPages, A = Math.max(re - this.maxDisplayedPages + 1, 1)), Array.from(
|
|
53144
|
+
{ length: re - A + 1 },
|
|
53145
53145
|
(G, _e) => A + _e
|
|
53146
53146
|
);
|
|
53147
53147
|
},
|
|
@@ -53164,7 +53164,7 @@ const Vce = /* @__PURE__ */ zr(loe, [["render", Moe]]), Poe = {
|
|
|
53164
53164
|
A === this.sortKey ? this.sortOrder *= -1 : (this.sortKey = A, this.sortOrder = 1);
|
|
53165
53165
|
},
|
|
53166
53166
|
sortData(A) {
|
|
53167
|
-
return this.sortKey ? A.slice().sort((
|
|
53167
|
+
return this.sortKey ? A.slice().sort((re, G) => (re[this.sortKey] < G[this.sortKey] ? -1 : 1) * this.sortOrder) : A;
|
|
53168
53168
|
},
|
|
53169
53169
|
previousPage() {
|
|
53170
53170
|
this.currentPage > 1 && this.currentPage--;
|
|
@@ -53246,7 +53246,7 @@ const Vce = /* @__PURE__ */ zr(loe, [["render", Moe]]), Poe = {
|
|
|
53246
53246
|
bse,
|
|
53247
53247
|
vse
|
|
53248
53248
|
];
|
|
53249
|
-
function wse(A,
|
|
53249
|
+
function wse(A, re, G, _e, ne, Z) {
|
|
53250
53250
|
const xe = Rd("dropdown");
|
|
53251
53251
|
return ue(), fe("div", Boe, [
|
|
53252
53252
|
R("div", Noe, [
|
|
@@ -53257,7 +53257,7 @@ function wse(A, se, G, _e, ne, Z) {
|
|
|
53257
53257
|
has_cancel: !1,
|
|
53258
53258
|
options: ne.showNoOfEntries,
|
|
53259
53259
|
modelValue: ne.itemsPerPage,
|
|
53260
|
-
"onUpdate:modelValue":
|
|
53260
|
+
"onUpdate:modelValue": re[0] || (re[0] = (X) => ne.itemsPerPage = X),
|
|
53261
53261
|
is_required: !1,
|
|
53262
53262
|
field_name: "NoOfEntries",
|
|
53263
53263
|
label_name: "",
|
|
@@ -53273,7 +53273,7 @@ function wse(A, se, G, _e, ne, Z) {
|
|
|
53273
53273
|
Uoe,
|
|
53274
53274
|
Tr(R("input", {
|
|
53275
53275
|
type: "text",
|
|
53276
|
-
"onUpdate:modelValue":
|
|
53276
|
+
"onUpdate:modelValue": re[1] || (re[1] = (X) => ne.search = X),
|
|
53277
53277
|
class: "block p-2 text-sm text-gray-900 border border-gray-300 rounded-lg ps-10 w-80 bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",
|
|
53278
53278
|
placeholder: "Search ..."
|
|
53279
53279
|
}, null, 512), [
|
|
@@ -53320,13 +53320,13 @@ function wse(A, se, G, _e, ne, Z) {
|
|
|
53320
53320
|
R("div", ese, [
|
|
53321
53321
|
R("a", {
|
|
53322
53322
|
href: "#",
|
|
53323
|
-
onClick:
|
|
53323
|
+
onClick: re[2] || (re[2] = za((...X) => Z.previousPage && Z.previousPage(...X), ["prevent"])),
|
|
53324
53324
|
disabled: ne.currentPage === 1,
|
|
53325
53325
|
class: "relative inline-flex items-center px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50"
|
|
53326
53326
|
}, "Previous", 8, tse),
|
|
53327
53327
|
R("a", {
|
|
53328
53328
|
href: "#",
|
|
53329
|
-
onClick:
|
|
53329
|
+
onClick: re[3] || (re[3] = za((...X) => Z.nextPage && Z.nextPage(...X), ["prevent"])),
|
|
53330
53330
|
disabled: ne.currentPage === Z.totalPages,
|
|
53331
53331
|
class: "relative inline-flex items-center px-4 py-2 ml-3 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50"
|
|
53332
53332
|
}, "Next", 8, nse)
|
|
@@ -53349,7 +53349,7 @@ function wse(A, se, G, _e, ne, Z) {
|
|
|
53349
53349
|
R("li", null, [
|
|
53350
53350
|
R("a", {
|
|
53351
53351
|
href: "#",
|
|
53352
|
-
onClick:
|
|
53352
|
+
onClick: re[4] || (re[4] = za((...X) => Z.previousPage && Z.previousPage(...X), ["prevent"])),
|
|
53353
53353
|
disabled: ne.currentPage === 1,
|
|
53354
53354
|
class: "flex items-center justify-center h-8 px-3 leading-tight text-gray-500 bg-white border border-gray-300 ms-0 border-e-0 rounded-s-lg hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white"
|
|
53355
53355
|
}, fse, 8, use)
|
|
@@ -53376,7 +53376,7 @@ function wse(A, se, G, _e, ne, Z) {
|
|
|
53376
53376
|
R("li", null, [
|
|
53377
53377
|
R("a", {
|
|
53378
53378
|
href: "#",
|
|
53379
|
-
onClick:
|
|
53379
|
+
onClick: re[5] || (re[5] = za((...X) => Z.nextPage && Z.nextPage(...X), ["prevent"])),
|
|
53380
53380
|
disabled: ne.currentPage === Z.totalPages,
|
|
53381
53381
|
class: "flex items-center justify-center h-8 px-3 leading-tight text-gray-500 bg-white border border-gray-300 rounded-e-lg hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white"
|
|
53382
53382
|
}, yse, 8, pse)
|
|
@@ -53392,10 +53392,10 @@ const zce = /* @__PURE__ */ zr(Poe, [["render", wse]]), xse = {
|
|
|
53392
53392
|
props: ["field", "row", "tdProps"],
|
|
53393
53393
|
methods: {
|
|
53394
53394
|
convertCronToHuman(A) {
|
|
53395
|
-
const [
|
|
53396
|
-
if (
|
|
53395
|
+
const [re, G, _e, ne, Z] = A.split(" ");
|
|
53396
|
+
if (re === "*" && G === "*" && _e === "*" && ne === "*" && Z === "*")
|
|
53397
53397
|
return "Runs every minute.";
|
|
53398
|
-
if (
|
|
53398
|
+
if (re === "0" && G === "0" && _e === "*" && ne === "*" && Z !== "*")
|
|
53399
53399
|
return `Runs at 12:00 AM every ${this.convertDayOfWeek(Z)}.`;
|
|
53400
53400
|
const xe = {
|
|
53401
53401
|
0: "Sunday",
|
|
@@ -53420,24 +53420,24 @@ const zce = /* @__PURE__ */ zr(Poe, [["render", wse]]), xse = {
|
|
|
53420
53420
|
11: "November",
|
|
53421
53421
|
12: "December",
|
|
53422
53422
|
"*": "every month"
|
|
53423
|
-
}, $e = this.convertField(
|
|
53423
|
+
}, $e = this.convertField(re, "minute", 59), lt = this.convertField(G, "hour", 23), yt = this.convertField(_e, "day of the month", 31), hn = this.convertField(ne, "month", 12, X), Et = this.convertField(Z, "day", 6, xe);
|
|
53424
53424
|
return `Runs ${$e} ${lt} ${yt} ${hn} on ${Et}.`;
|
|
53425
53425
|
},
|
|
53426
|
-
convertField(A,
|
|
53427
|
-
if (A === "*") return `every ${
|
|
53426
|
+
convertField(A, re, G, _e = {}) {
|
|
53427
|
+
if (A === "*") return `every ${re}`;
|
|
53428
53428
|
if (A.includes("/")) {
|
|
53429
53429
|
const [ne, Z] = A.split("/");
|
|
53430
|
-
return `every ${Z} ${
|
|
53430
|
+
return `every ${Z} ${re}${Z > 1 ? "s" : ""} starting at ${ne}`;
|
|
53431
53431
|
}
|
|
53432
53432
|
if (A.includes("-")) {
|
|
53433
53433
|
const [ne, Z] = A.split("-");
|
|
53434
|
-
return `${
|
|
53434
|
+
return `${re}s from ${ne} to ${Z}`;
|
|
53435
53435
|
}
|
|
53436
53436
|
if (A.includes(",")) {
|
|
53437
53437
|
const ne = A.split(",").map((Z) => _e[Z] || Z);
|
|
53438
|
-
return `${
|
|
53438
|
+
return `${re}s on ${ne.join(", ")}`;
|
|
53439
53439
|
}
|
|
53440
|
-
return _e[A] || `${
|
|
53440
|
+
return _e[A] || `${re} ${A}`;
|
|
53441
53441
|
},
|
|
53442
53442
|
convertDayOfWeek(A) {
|
|
53443
53443
|
return {
|
|
@@ -53451,15 +53451,15 @@ const zce = /* @__PURE__ */ zr(Poe, [["render", wse]]), xse = {
|
|
|
53451
53451
|
}[A] || "Invalid day";
|
|
53452
53452
|
},
|
|
53453
53453
|
formatHour(A) {
|
|
53454
|
-
const
|
|
53455
|
-
return `${(
|
|
53454
|
+
const re = parseInt(A, 10), G = re >= 12 ? "PM" : "AM";
|
|
53455
|
+
return `${(re % 12 || 12).toString().padStart(2, "0")}:00 ${G}`;
|
|
53456
53456
|
}
|
|
53457
53457
|
}
|
|
53458
53458
|
}, Cse = {
|
|
53459
53459
|
key: 0,
|
|
53460
53460
|
class: "flex flex-wrap gap-2"
|
|
53461
53461
|
}, _se = { class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300" };
|
|
53462
|
-
function Sse(A,
|
|
53462
|
+
function Sse(A, re, G, _e, ne, Z) {
|
|
53463
53463
|
return G.row[G.field] ? (ue(), fe("div", Cse, [
|
|
53464
53464
|
R("span", _se, mt(Z.convertCronToHuman(G.row[G.field])), 1)
|
|
53465
53465
|
])) : Ye("", !0);
|
|
@@ -53484,7 +53484,7 @@ const Uce = /* @__PURE__ */ zr(xse, [["render", Sse]]), kse = {
|
|
|
53484
53484
|
}), {};
|
|
53485
53485
|
}
|
|
53486
53486
|
};
|
|
53487
|
-
function Tse(A,
|
|
53487
|
+
function Tse(A, re, G, _e, ne, Z) {
|
|
53488
53488
|
return ue(), fe("div", null, [
|
|
53489
53489
|
ju(A.$slots, "default")
|
|
53490
53490
|
]);
|
|
@@ -53497,7 +53497,7 @@ const Wce = /* @__PURE__ */ zr(kse, [["render", Tse]]), Ese = {
|
|
|
53497
53497
|
}
|
|
53498
53498
|
},
|
|
53499
53499
|
setup() {
|
|
53500
|
-
const A = co(!1),
|
|
53500
|
+
const A = co(!1), re = sq("accordionsWrapper"), _e = (() => {
|
|
53501
53501
|
var lt = (/* @__PURE__ */ new Date()).getTime();
|
|
53502
53502
|
typeof performance < "u" && typeof performance.now == "function" && (lt += performance.now());
|
|
53503
53503
|
var yt = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(hn) {
|
|
@@ -53505,13 +53505,13 @@ const Wce = /* @__PURE__ */ zr(kse, [["render", Tse]]), Ese = {
|
|
|
53505
53505
|
return lt = Math.floor(lt / 16), (hn === "x" ? Et : Et & 3 | 8).toString(16);
|
|
53506
53506
|
});
|
|
53507
53507
|
return yt;
|
|
53508
|
-
})(), ne = { isOpen: A, id: _e }, Z = pu(() =>
|
|
53508
|
+
})(), ne = { isOpen: A, id: _e }, Z = pu(() => re.accordions.value), xe = pu(() => Z.value.length > 0 && Z.value[0].id === _e), X = pu(() => Z.value.length > 0 && Z.value[Z.value.length - 1].id === _e);
|
|
53509
53509
|
return Dg(() => {
|
|
53510
|
-
|
|
53510
|
+
re.registerAccordion(ne);
|
|
53511
53511
|
}), Nq(() => {
|
|
53512
|
-
|
|
53512
|
+
re.unregisterAccordion(ne);
|
|
53513
53513
|
}), { isOpen: A, isFirstAccordion: xe, isLastAccordion: X, toggle: () => {
|
|
53514
|
-
|
|
53514
|
+
re.toggleAccordion(ne);
|
|
53515
53515
|
} };
|
|
53516
53516
|
}
|
|
53517
53517
|
}, Ase = { class: "flex items-center" }, Dse = {
|
|
@@ -53545,11 +53545,11 @@ const Wce = /* @__PURE__ */ zr(kse, [["render", Tse]]), Ese = {
|
|
|
53545
53545
|
}, null, -1), Pse = [
|
|
53546
53546
|
Mse
|
|
53547
53547
|
];
|
|
53548
|
-
function Bse(A,
|
|
53548
|
+
function Bse(A, re, G, _e, ne, Z) {
|
|
53549
53549
|
return ue(), fe("div", null, [
|
|
53550
53550
|
R("h2", null, [
|
|
53551
53551
|
R("button", {
|
|
53552
|
-
onClick:
|
|
53552
|
+
onClick: re[0] || (re[0] = (...xe) => _e.toggle && _e.toggle(...xe)),
|
|
53553
53553
|
type: "button",
|
|
53554
53554
|
class: Zt(["flex items-center justify-between w-full gap-3 p-5 font-medium text-gray-500 border border-gray-200 rtl:text-right dark:border-gray-700 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800", {
|
|
53555
53555
|
"rounded-t-xl": _e.isFirstAccordion,
|
|
@@ -53648,12 +53648,12 @@ const Zce = /* @__PURE__ */ zr(Ese, [["render", Bse]]), Nse = {
|
|
|
53648
53648
|
}
|
|
53649
53649
|
},
|
|
53650
53650
|
emits: ["remove"],
|
|
53651
|
-
setup(A, { emit:
|
|
53651
|
+
setup(A, { emit: re }) {
|
|
53652
53652
|
const G = A;
|
|
53653
53653
|
Dg(() => {
|
|
53654
53654
|
setTimeout(() => _e("remove"), G.duration);
|
|
53655
53655
|
});
|
|
53656
|
-
const _e =
|
|
53656
|
+
const _e = re;
|
|
53657
53657
|
return (ne, Z) => (ue(), fe("div", Nse, [
|
|
53658
53658
|
G.type === "success" ? (ue(), fe("div", Ise, Hse)) : Ye("", !0),
|
|
53659
53659
|
G.type === "error" ? (ue(), fe("div", Vse, Wse)) : Ye("", !0),
|
|
@@ -53671,7 +53671,7 @@ const Zce = /* @__PURE__ */ zr(Ese, [["render", Bse]]), Nse = {
|
|
|
53671
53671
|
}, jce = {
|
|
53672
53672
|
__name: "GlToastList",
|
|
53673
53673
|
setup(A) {
|
|
53674
|
-
function
|
|
53674
|
+
function re(G) {
|
|
53675
53675
|
Ry.methods.remove(G);
|
|
53676
53676
|
}
|
|
53677
53677
|
return (G, _e) => (ue(), Zu(Iq, {
|
|
@@ -53688,7 +53688,7 @@ const Zce = /* @__PURE__ */ zr(Ese, [["render", Bse]]), Nse = {
|
|
|
53688
53688
|
message: ne.message,
|
|
53689
53689
|
type: ne.type,
|
|
53690
53690
|
duration: ne.duration,
|
|
53691
|
-
onRemove: (xe) =>
|
|
53691
|
+
onRemove: (xe) => re(Z)
|
|
53692
53692
|
}, null, 8, ["message", "type", "duration", "onRemove"]))), 128))
|
|
53693
53693
|
]),
|
|
53694
53694
|
_: 1
|
|
@@ -53735,7 +53735,7 @@ const Zce = /* @__PURE__ */ zr(Ese, [["render", Bse]]), Nse = {
|
|
|
53735
53735
|
}
|
|
53736
53736
|
},
|
|
53737
53737
|
emits: ["deleteAction"],
|
|
53738
|
-
setup(A, { emit:
|
|
53738
|
+
setup(A, { emit: re }) {
|
|
53739
53739
|
const G = A, _e = co(!1), ne = co(!1), Z = () => {
|
|
53740
53740
|
_e.value = !1;
|
|
53741
53741
|
}, xe = () => {
|
|
@@ -53744,7 +53744,7 @@ const Zce = /* @__PURE__ */ zr(Ese, [["render", Bse]]), Nse = {
|
|
|
53744
53744
|
ne.value = !1;
|
|
53745
53745
|
}, $e = () => {
|
|
53746
53746
|
ne.value = !0;
|
|
53747
|
-
}, lt =
|
|
53747
|
+
}, lt = re, yt = () => {
|
|
53748
53748
|
axios.delete(`${G.xprops.route}/${G.row.id}`).then(() => {
|
|
53749
53749
|
X(), lt("deleteAction"), Ry.methods.add({
|
|
53750
53750
|
message: "Item deleted successfully.",
|
|
@@ -53841,7 +53841,7 @@ const Zce = /* @__PURE__ */ zr(Ese, [["render", Bse]]), Nse = {
|
|
|
53841
53841
|
}
|
|
53842
53842
|
},
|
|
53843
53843
|
emits: ["deleteAction"],
|
|
53844
|
-
setup(A, { emit:
|
|
53844
|
+
setup(A, { emit: re }) {
|
|
53845
53845
|
const G = A, _e = co(!1), ne = co(!1), Z = () => {
|
|
53846
53846
|
_e.value = !1;
|
|
53847
53847
|
}, xe = () => {
|
|
@@ -53850,7 +53850,7 @@ const Zce = /* @__PURE__ */ zr(Ese, [["render", Bse]]), Nse = {
|
|
|
53850
53850
|
ne.value = !1;
|
|
53851
53851
|
}, $e = () => {
|
|
53852
53852
|
ne.value = !0;
|
|
53853
|
-
}, lt =
|
|
53853
|
+
}, lt = re, yt = () => {
|
|
53854
53854
|
axios.delete(`${G.xprops.route}/${G.row.id}`).then(() => {
|
|
53855
53855
|
X(), lt("deleteAction"), Ry.methods.add({
|
|
53856
53856
|
message: "Item deleted successfully.",
|
|
@@ -53938,7 +53938,7 @@ const Zce = /* @__PURE__ */ zr(Ese, [["render", Bse]]), Nse = {
|
|
|
53938
53938
|
}
|
|
53939
53939
|
},
|
|
53940
53940
|
emits: ["deleteAction", "editAction"],
|
|
53941
|
-
setup(A, { emit:
|
|
53941
|
+
setup(A, { emit: re }) {
|
|
53942
53942
|
const G = A, _e = co(!1), ne = co(!1), Z = () => {
|
|
53943
53943
|
ne.value = !1;
|
|
53944
53944
|
}, xe = () => {
|
|
@@ -53947,7 +53947,7 @@ const Zce = /* @__PURE__ */ zr(Ese, [["render", Bse]]), Nse = {
|
|
|
53947
53947
|
_e.value = !1;
|
|
53948
53948
|
}, $e = () => {
|
|
53949
53949
|
_e.value = !0;
|
|
53950
|
-
}, lt =
|
|
53950
|
+
}, lt = re, yt = (Et) => {
|
|
53951
53951
|
lt("editAction", Et);
|
|
53952
53952
|
}, hn = () => {
|
|
53953
53953
|
axios.delete(`${G.xprops.route}/${G.row.id}`).then(() => {
|
|
@@ -54059,7 +54059,7 @@ const Zce = /* @__PURE__ */ zr(Ese, [["render", Bse]]), Nse = {
|
|
|
54059
54059
|
"clip-rule": "evenodd"
|
|
54060
54060
|
})
|
|
54061
54061
|
], -1);
|
|
54062
|
-
function $re(A,
|
|
54062
|
+
function $re(A, re, G, _e, ne, Z) {
|
|
54063
54063
|
return ue(), fe("div", null, [
|
|
54064
54064
|
Z.isArray ? (ue(!0), fe(jn, { key: 0 }, Ks(G.row, (xe, X) => (ue(), fe("div", {
|
|
54065
54065
|
key: X,
|
|
@@ -54135,7 +54135,7 @@ const Yce = /* @__PURE__ */ zr(Tre, [["render", $re]]), Mre = {
|
|
|
54135
54135
|
"clip-rule": "evenodd"
|
|
54136
54136
|
})
|
|
54137
54137
|
], -1);
|
|
54138
|
-
function Fre(A,
|
|
54138
|
+
function Fre(A, re, G, _e, ne, Z) {
|
|
54139
54139
|
return Z.isArray ? (ue(!0), fe(jn, { key: 0 }, Ks(G.row[G.field], (xe) => (ue(), fe("div", {
|
|
54140
54140
|
key: xe.id,
|
|
54141
54141
|
class: "m-1 d-inline-block"
|
|
@@ -54164,7 +54164,7 @@ function Fre(A, se, G, _e, ne, Z) {
|
|
|
54164
54164
|
const Xce = /* @__PURE__ */ zr(Mre, [["render", Fre]]), Hre = {
|
|
54165
54165
|
props: ["field", "row", "tdProps"]
|
|
54166
54166
|
}, Vre = { key: 0 }, zre = ["innerHTML"];
|
|
54167
|
-
function Ure(A,
|
|
54167
|
+
function Ure(A, re, G, _e, ne, Z) {
|
|
54168
54168
|
return G.row[G.field] ? (ue(), fe("div", Vre, [
|
|
54169
54169
|
R("div", {
|
|
54170
54170
|
class: "w-full",
|
|
@@ -54176,8 +54176,8 @@ const Jce = /* @__PURE__ */ zr(Hre, [["render", Ure]]), Wre = {
|
|
|
54176
54176
|
props: ["field", "row", "tdProps"],
|
|
54177
54177
|
computed: {
|
|
54178
54178
|
entry() {
|
|
54179
|
-
const [A,
|
|
54180
|
-
return Fq({ key: A, field:
|
|
54179
|
+
const [A, re] = this.field.split(".");
|
|
54180
|
+
return Fq({ key: A, field: re });
|
|
54181
54181
|
},
|
|
54182
54182
|
isArray() {
|
|
54183
54183
|
return Array.isArray(this.row[this.entry.key]);
|
|
@@ -54193,7 +54193,7 @@ const Jce = /* @__PURE__ */ zr(Hre, [["render", Ure]]), Wre = {
|
|
|
54193
54193
|
key: 1,
|
|
54194
54194
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"
|
|
54195
54195
|
};
|
|
54196
|
-
function Gre(A,
|
|
54196
|
+
function Gre(A, re, G, _e, ne, Z) {
|
|
54197
54197
|
return this.row[this.entry.key] ? (ue(), fe("div", Zre, [
|
|
54198
54198
|
Z.isArray ? (ue(!0), fe(jn, { key: 0 }, Ks(G.row[Z.entry.key], (xe, X) => (ue(), fe("span", {
|
|
54199
54199
|
key: X,
|
|
@@ -54205,8 +54205,8 @@ const Qce = /* @__PURE__ */ zr(Wre, [["render", Gre]]), qre = {
|
|
|
54205
54205
|
props: ["field", "row", "tdProps"],
|
|
54206
54206
|
computed: {
|
|
54207
54207
|
entry() {
|
|
54208
|
-
const A = this.field.split("."),
|
|
54209
|
-
return { keys: A, field:
|
|
54208
|
+
const A = this.field.split("."), re = A.pop();
|
|
54209
|
+
return { keys: A, field: re };
|
|
54210
54210
|
},
|
|
54211
54211
|
isArray() {
|
|
54212
54212
|
return Array.isArray(this.getNestedValue(this.row, this.entry.keys));
|
|
@@ -54216,15 +54216,15 @@ const Qce = /* @__PURE__ */ zr(Wre, [["render", Gre]]), qre = {
|
|
|
54216
54216
|
}
|
|
54217
54217
|
},
|
|
54218
54218
|
methods: {
|
|
54219
|
-
getNestedValue(A,
|
|
54220
|
-
return
|
|
54219
|
+
getNestedValue(A, re) {
|
|
54220
|
+
return re.reduce((G, _e) => (G || {})[_e], A);
|
|
54221
54221
|
}
|
|
54222
54222
|
}
|
|
54223
54223
|
}, Kre = { class: "flex flex-wrap gap-2" }, Yre = {
|
|
54224
54224
|
key: 1,
|
|
54225
54225
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"
|
|
54226
54226
|
};
|
|
54227
|
-
function Xre(A,
|
|
54227
|
+
function Xre(A, re, G, _e, ne, Z) {
|
|
54228
54228
|
return ue(), fe("div", Kre, [
|
|
54229
54229
|
Z.isArray ? (ue(!0), fe(jn, { key: 0 }, Ks(Z.getNestedValue(G.row, Z.entry.keys), (xe, X) => (ue(), fe("span", {
|
|
54230
54230
|
key: X,
|
|
@@ -54235,7 +54235,7 @@ function Xre(A, se, G, _e, ne, Z) {
|
|
|
54235
54235
|
const eie = /* @__PURE__ */ zr(qre, [["render", Xre]]), Jre = {
|
|
54236
54236
|
props: ["field", "row", "tdProps"]
|
|
54237
54237
|
}, Qre = { key: 0 }, eae = { class: "m-1 d-inline-block" }, tae = ["href", "title"], nae = ["src", "alt", "title"];
|
|
54238
|
-
function oae(A,
|
|
54238
|
+
function oae(A, re, G, _e, ne, Z) {
|
|
54239
54239
|
return G.row[G.field] ? (ue(), fe("div", Qre, [
|
|
54240
54240
|
R("div", eae, [
|
|
54241
54241
|
R("a", {
|
|
@@ -54266,7 +54266,7 @@ const tie = /* @__PURE__ */ zr(Jre, [["render", oae], ["__scopeId", "data-v-3a28
|
|
|
54266
54266
|
key: 0,
|
|
54267
54267
|
class: "grid grid-cols-2 gap-4"
|
|
54268
54268
|
}, aae = ["src", "alt"], lae = { key: 1 }, cae = ["src", "alt"];
|
|
54269
|
-
function iae(A,
|
|
54269
|
+
function iae(A, re, G, _e, ne, Z) {
|
|
54270
54270
|
return Z.isArray ? (ue(), fe("div", rae, [
|
|
54271
54271
|
(ue(!0), fe(jn, null, Ks(G.row[G.field], (xe) => (ue(), fe("div", {
|
|
54272
54272
|
key: xe.id
|
|
@@ -54299,7 +54299,7 @@ const nie = /* @__PURE__ */ zr(sae, [["render", iae]]), uae = {
|
|
|
54299
54299
|
key: 1,
|
|
54300
54300
|
class: "inline-flex items-center px-2 py-1 bg-red-100 text-red-800 text-xs font-medium rounded-full dark:bg-red-900 dark:text-red-300"
|
|
54301
54301
|
}, hae = /* @__PURE__ */ R("span", { class: "w-2 h-2 bg-red-500 rounded-full me-1" }, null, -1);
|
|
54302
|
-
function pae(A,
|
|
54302
|
+
function pae(A, re, G, _e, ne, Z) {
|
|
54303
54303
|
return ue(), fe("div", dae, [
|
|
54304
54304
|
Z.isActive ? (ue(), fe("span", mae, [
|
|
54305
54305
|
fae,
|
|
@@ -54314,10 +54314,10 @@ const oie = /* @__PURE__ */ zr(uae, [["render", pae]]), bae = {
|
|
|
54314
54314
|
props: ["field", "row", "tdProps"],
|
|
54315
54315
|
computed: {
|
|
54316
54316
|
hasLabelColor(A) {
|
|
54317
|
-
const
|
|
54317
|
+
const re = this.tdProps.status_general_labels_color.find(
|
|
54318
54318
|
(G) => G.label === this.row[this.field]
|
|
54319
54319
|
);
|
|
54320
|
-
return
|
|
54320
|
+
return re ? re.class : "";
|
|
54321
54321
|
}
|
|
54322
54322
|
}
|
|
54323
54323
|
}, vae = { class: "flex flex-wrap gap-2 text-nowrap" }, yae = {
|
|
@@ -54339,7 +54339,7 @@ const oie = /* @__PURE__ */ zr(uae, [["render", pae]]), bae = {
|
|
|
54339
54339
|
/* @__PURE__ */ R("span", { class: "absolute inline-flex w-full h-full bg-blue-500 rounded-full animate-ping" }),
|
|
54340
54340
|
/* @__PURE__ */ R("span", { class: "relative inline-flex w-2 h-2 bg-blue-500 rounded-full" })
|
|
54341
54341
|
], -1);
|
|
54342
|
-
function Dae(A,
|
|
54342
|
+
function Dae(A, re, G, _e, ne, Z) {
|
|
54343
54343
|
return ue(), fe("div", vae, [
|
|
54344
54344
|
Z.hasLabelColor == "green" ? (ue(), fe("span", yae, [
|
|
54345
54345
|
wae,
|
|
@@ -54385,7 +54385,7 @@ const sie = /* @__PURE__ */ zr(bae, [["render", Dae]]), Oae = {
|
|
|
54385
54385
|
}
|
|
54386
54386
|
}
|
|
54387
54387
|
}, Rae = { class: "flex flex-wrap gap-2 text-nowrap lg:justify-center" };
|
|
54388
|
-
function $ae(A,
|
|
54388
|
+
function $ae(A, re, G, _e, ne, Z) {
|
|
54389
54389
|
return ue(), fe("div", Rae, [
|
|
54390
54390
|
Z.hasLabelColor == "Default" ? (ue(), fe("span", {
|
|
54391
54391
|
key: 0,
|
|
@@ -54425,8 +54425,8 @@ const rie = /* @__PURE__ */ zr(Oae, [["render", $ae]]), Mae = {
|
|
|
54425
54425
|
props: ["field", "row", "tdProps"],
|
|
54426
54426
|
computed: {
|
|
54427
54427
|
entry() {
|
|
54428
|
-
const A = this.field.split("."),
|
|
54429
|
-
return { keys: A, field:
|
|
54428
|
+
const A = this.field.split("."), re = A.pop();
|
|
54429
|
+
return { keys: A, field: re };
|
|
54430
54430
|
},
|
|
54431
54431
|
isArray() {
|
|
54432
54432
|
return Array.isArray(this.getNestedValue(this.row, this.entry.keys));
|
|
@@ -54435,14 +54435,14 @@ const rie = /* @__PURE__ */ zr(Oae, [["render", $ae]]), Mae = {
|
|
|
54435
54435
|
return typeof this.getNestedValue(this.row, this.entry.keys) == "object";
|
|
54436
54436
|
},
|
|
54437
54437
|
hasLabelColor(A) {
|
|
54438
|
-
const
|
|
54438
|
+
const re = this.tdProps.status_general_labels_color.find(
|
|
54439
54439
|
(G) => G.text === this.getValue()
|
|
54440
54440
|
);
|
|
54441
|
-
return
|
|
54441
|
+
return re ? re.class : "";
|
|
54442
54442
|
},
|
|
54443
54443
|
getLabel() {
|
|
54444
54444
|
const A = this.tdProps.status_general_labels_color.find(
|
|
54445
|
-
(
|
|
54445
|
+
(re) => re.text === this.getValue()
|
|
54446
54446
|
);
|
|
54447
54447
|
return A ? A.label : "";
|
|
54448
54448
|
}
|
|
@@ -54451,8 +54451,8 @@ const rie = /* @__PURE__ */ zr(Oae, [["render", $ae]]), Mae = {
|
|
|
54451
54451
|
getValue() {
|
|
54452
54452
|
return this.isObject ? this.getNestedValue(this.row, this.entry.keys)[this.entry.field] : this.row[this.field];
|
|
54453
54453
|
},
|
|
54454
|
-
getNestedValue(A,
|
|
54455
|
-
return
|
|
54454
|
+
getNestedValue(A, re) {
|
|
54455
|
+
return re.reduce((G, _e) => (G || {})[_e], A);
|
|
54456
54456
|
}
|
|
54457
54457
|
}
|
|
54458
54458
|
}, Pae = { class: "flex flex-wrap gap-2 text-nowrap" }, Bae = {
|
|
@@ -54474,7 +54474,7 @@ const rie = /* @__PURE__ */ zr(Oae, [["render", $ae]]), Mae = {
|
|
|
54474
54474
|
/* @__PURE__ */ R("span", { class: "absolute inline-flex w-full h-full bg-blue-500 rounded-full animate-ping" }),
|
|
54475
54475
|
/* @__PURE__ */ R("span", { class: "relative inline-flex w-2 h-2 bg-blue-500 rounded-full" })
|
|
54476
54476
|
], -1);
|
|
54477
|
-
function Zae(A,
|
|
54477
|
+
function Zae(A, re, G, _e, ne, Z) {
|
|
54478
54478
|
return ue(), fe("div", Pae, [
|
|
54479
54479
|
Z.hasLabelColor == "green" ? (ue(), fe("span", Bae, [
|
|
54480
54480
|
Nae,
|
|
@@ -54504,14 +54504,14 @@ const aie = /* @__PURE__ */ zr(Mae, [["render", Zae]]), jae = {
|
|
|
54504
54504
|
formattedDate() {
|
|
54505
54505
|
if (!this.row[this.field])
|
|
54506
54506
|
return "";
|
|
54507
|
-
const A = new Date(this.row[this.field]),
|
|
54507
|
+
const A = new Date(this.row[this.field]), re = A.getFullYear(), G = A.toLocaleString("default", { month: "long" }), _e = A.getDate();
|
|
54508
54508
|
let ne = A.getHours();
|
|
54509
54509
|
const Z = A.getMinutes(), xe = A.getSeconds(), X = ne >= 12 ? "pm" : "am";
|
|
54510
|
-
return ne = ne % 12, ne = ne || 12, `${G} ${_e}, ${
|
|
54510
|
+
return ne = ne % 12, ne = ne || 12, `${G} ${_e}, ${re}, ${ne}:${Z}:${xe} ${X}`;
|
|
54511
54511
|
}
|
|
54512
54512
|
}
|
|
54513
54513
|
}, Gae = { class: "w-full" };
|
|
54514
|
-
function qae(A,
|
|
54514
|
+
function qae(A, re, G, _e, ne, Z) {
|
|
54515
54515
|
return ue(), fe("div", Gae, mt(Z.formattedDate), 1);
|
|
54516
54516
|
}
|
|
54517
54517
|
const lie = /* @__PURE__ */ zr(jae, [["render", qae]]), Kae = {
|
|
@@ -54520,12 +54520,12 @@ const lie = /* @__PURE__ */ zr(jae, [["render", qae]]), Kae = {
|
|
|
54520
54520
|
formattedDate() {
|
|
54521
54521
|
if (!this.row[this.field])
|
|
54522
54522
|
return "";
|
|
54523
|
-
const A = new Date(this.row[this.field]),
|
|
54524
|
-
return `${G} ${_e}, ${
|
|
54523
|
+
const A = new Date(this.row[this.field]), re = A.getFullYear(), G = A.toLocaleString("default", { month: "long" }), _e = A.getDate();
|
|
54524
|
+
return `${G} ${_e}, ${re}`;
|
|
54525
54525
|
}
|
|
54526
54526
|
}
|
|
54527
54527
|
}, Yae = { class: "w-full" };
|
|
54528
|
-
function Xae(A,
|
|
54528
|
+
function Xae(A, re, G, _e, ne, Z) {
|
|
54529
54529
|
return ue(), fe("div", Yae, mt(Z.formattedDate), 1);
|
|
54530
54530
|
}
|
|
54531
54531
|
const cie = /* @__PURE__ */ zr(Kae, [["render", Xae]]), Jae = {
|
|
@@ -54543,7 +54543,7 @@ const cie = /* @__PURE__ */ zr(Kae, [["render", Xae]]), Jae = {
|
|
|
54543
54543
|
key: 2,
|
|
54544
54544
|
class: "inline-flex items-center px-2 py-1 text-xs font-medium text-green-800 bg-green-100 rounded-full dark:bg-green-900 dark:text-green-300"
|
|
54545
54545
|
}, rle = /* @__PURE__ */ R("span", { class: "w-2 h-2 bg-green-500 rounded-full me-1" }, null, -1);
|
|
54546
|
-
function ale(A,
|
|
54546
|
+
function ale(A, re, G, _e, ne, Z) {
|
|
54547
54547
|
return ue(), fe("div", Qae, [
|
|
54548
54548
|
G.row[G.field] === 0 ? (ue(), fe("span", ele, [
|
|
54549
54549
|
tle,
|
|
@@ -54565,7 +54565,7 @@ const iie = /* @__PURE__ */ zr(Jae, [["render", ale]]), lle = {
|
|
|
54565
54565
|
key: 0,
|
|
54566
54566
|
class: "text-nowrap w-full"
|
|
54567
54567
|
}, ile = { class: "w-full h-full p-3 mx-0 mt-0 overflow-auto font-mono text-left break-words rounded cursor-default whitespace-nowrap console_styles" };
|
|
54568
|
-
function ule(A,
|
|
54568
|
+
function ule(A, re, G, _e, ne, Z) {
|
|
54569
54569
|
return G.row[G.field] ? (ue(), fe("div", cle, [
|
|
54570
54570
|
R("pre", ile, " " + mt(G.row[G.field]) + `
|
|
54571
54571
|
`, 1)
|
|
@@ -54596,7 +54596,7 @@ const uie = /* @__PURE__ */ zr(lle, [["render", ule]]), dle = {
|
|
|
54596
54596
|
class: "hidden sm:inline-block sm:align-middle sm:h-screen",
|
|
54597
54597
|
"aria-hidden": "true"
|
|
54598
54598
|
}, "", -1), ple = { class: "inline-block overflow-hidden text-left align-bottom transition-all transform bg-white dark:bg-gray-800 rounded-lg shadow-xl sm:my-8 sm:align-middle sm:max-w-lg sm:w-full" }, ble = { class: "px-4 pt-5 pb-4 sm:p-6 sm:pb-4" }, vle = { class: "sm:flex sm:items-start" }, yle = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left" }, wle = { class: "text-lg font-medium leading-6" }, xle = { class: "mt-2" }, Cle = { class: "border-t border-gray-200 rounded-b dark:border-gray-600 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse gap-2" };
|
|
54599
|
-
function _le(A,
|
|
54599
|
+
function _le(A, re, G, _e, ne, Z) {
|
|
54600
54600
|
const xe = Rd("gl-button");
|
|
54601
54601
|
return G.isOpen ? (ue(), fe("div", mle, [
|
|
54602
54602
|
R("div", fle, [
|
|
@@ -54690,7 +54690,7 @@ const die = /* @__PURE__ */ zr(dle, [["render", _le]]), Sle = { class: "w-full"
|
|
|
54690
54690
|
}
|
|
54691
54691
|
},
|
|
54692
54692
|
setup(A) {
|
|
54693
|
-
const
|
|
54693
|
+
const re = A, G = co(!1), _e = (Z) => {
|
|
54694
54694
|
navigator.clipboard.writeText(Z).then(function() {
|
|
54695
54695
|
G.value = !0, setTimeout(() => {
|
|
54696
54696
|
G.value = !1;
|
|
@@ -54698,7 +54698,7 @@ const die = /* @__PURE__ */ zr(dle, [["render", _le]]), Sle = { class: "w-full"
|
|
|
54698
54698
|
}).catch(function(xe) {
|
|
54699
54699
|
console.error("Error copying to clipboard: ", xe);
|
|
54700
54700
|
});
|
|
54701
|
-
}, ne = pu(() =>
|
|
54701
|
+
}, ne = pu(() => re.code);
|
|
54702
54702
|
return (Z, xe) => (ue(), fe("div", Sle, [
|
|
54703
54703
|
R("div", kle, [
|
|
54704
54704
|
R("p", Tle, mt(A.label_name), 1)
|
|
@@ -54770,7 +54770,7 @@ const die = /* @__PURE__ */ zr(dle, [["render", _le]]), Sle = { class: "w-full"
|
|
|
54770
54770
|
}
|
|
54771
54771
|
},
|
|
54772
54772
|
setup(A) {
|
|
54773
|
-
const
|
|
54773
|
+
const re = A, G = co(!1), _e = (Z) => {
|
|
54774
54774
|
navigator.clipboard.writeText(Z).then(function() {
|
|
54775
54775
|
G.value = !0, setTimeout(() => {
|
|
54776
54776
|
G.value = !1;
|
|
@@ -54778,7 +54778,7 @@ const die = /* @__PURE__ */ zr(dle, [["render", _le]]), Sle = { class: "w-full"
|
|
|
54778
54778
|
}).catch(function(xe) {
|
|
54779
54779
|
console.error("Error copying to clipboard: ", xe);
|
|
54780
54780
|
});
|
|
54781
|
-
}, ne = pu(() =>
|
|
54781
|
+
}, ne = pu(() => re.code);
|
|
54782
54782
|
return (Z, xe) => (ue(), fe("div", Hle, [
|
|
54783
54783
|
R("div", Vle, [
|
|
54784
54784
|
R("label", zle, mt(A.label_name), 1)
|
|
@@ -54829,7 +54829,7 @@ const die = /* @__PURE__ */ zr(dle, [["render", _le]]), Sle = { class: "w-full"
|
|
|
54829
54829
|
}
|
|
54830
54830
|
},
|
|
54831
54831
|
setup(A) {
|
|
54832
|
-
return (
|
|
54832
|
+
return (re, G) => (ue(), fe("div", ece, [
|
|
54833
54833
|
A.status === 0 ? (ue(), fe("span", tce, [
|
|
54834
54834
|
nce,
|
|
54835
54835
|
Zn(" Running")
|
|
@@ -54877,8 +54877,8 @@ const die = /* @__PURE__ */ zr(dle, [["render", _le]]), Sle = { class: "w-full"
|
|
|
54877
54877
|
}
|
|
54878
54878
|
},
|
|
54879
54879
|
emits: ["reconnect"],
|
|
54880
|
-
setup(A, { emit:
|
|
54881
|
-
const G =
|
|
54880
|
+
setup(A, { emit: re }) {
|
|
54881
|
+
const G = re, _e = () => {
|
|
54882
54882
|
G("reconnect");
|
|
54883
54883
|
};
|
|
54884
54884
|
return (ne, Z) => (ue(), fe("div", lce, [
|
|
@@ -54903,9 +54903,9 @@ const die = /* @__PURE__ */ zr(dle, [["render", _le]]), Sle = { class: "w-full"
|
|
|
54903
54903
|
]));
|
|
54904
54904
|
}
|
|
54905
54905
|
}, pie = {
|
|
54906
|
-
beforeMount: (A,
|
|
54906
|
+
beforeMount: (A, re) => {
|
|
54907
54907
|
A.clickOutsideEvent = (G) => {
|
|
54908
|
-
A == G.target || A.contains(G.target) ||
|
|
54908
|
+
A == G.target || A.contains(G.target) || re.value(G, A);
|
|
54909
54909
|
}, document.addEventListener("click", A.clickOutsideEvent);
|
|
54910
54910
|
},
|
|
54911
54911
|
unmounted: (A) => {
|