golden-logic-ui 1.0.482 → 1.0.483
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 +858 -861
- package/dist/golden-logic-ui.umd.cjs +16 -16
- 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, se) => {
|
|
3
3
|
const G = A.__vccOpts || A;
|
|
4
|
-
for (const [_e, ne] of
|
|
4
|
+
for (const [_e, ne] of se)
|
|
5
5
|
G[_e] = ne;
|
|
6
6
|
return G;
|
|
7
7
|
}, Hq = {
|
|
@@ -87,7 +87,7 @@ const zr = (A, oe) => {
|
|
|
87
87
|
fill: "#1C64F2"
|
|
88
88
|
})
|
|
89
89
|
], -1);
|
|
90
|
-
function zq(A,
|
|
90
|
+
function zq(A, se, G, _e, ne, Z) {
|
|
91
91
|
return G.is_loading ? (ue(), Zu(A4("button"), {
|
|
92
92
|
key: 1,
|
|
93
93
|
disabled: "",
|
|
@@ -142,8 +142,8 @@ 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,
|
|
146
|
-
const
|
|
145
|
+
function Xq(A, se, G, _e, ne, Z) {
|
|
146
|
+
const Ce = Rd("gl-button");
|
|
147
147
|
return G.isOpen ? (ue(), fe("div", Wq, [
|
|
148
148
|
R("div", Zq, [
|
|
149
149
|
jq,
|
|
@@ -151,7 +151,7 @@ function Xq(A, oe, G, _e, ne, Z) {
|
|
|
151
151
|
R("div", qq, [
|
|
152
152
|
Kq,
|
|
153
153
|
R("div", Yq, [
|
|
154
|
-
ui(
|
|
154
|
+
ui(Ce, {
|
|
155
155
|
onClick: Z.confirmDeletion,
|
|
156
156
|
tag: "button",
|
|
157
157
|
button_type: "red"
|
|
@@ -161,7 +161,7 @@ function Xq(A, oe, G, _e, ne, Z) {
|
|
|
161
161
|
]),
|
|
162
162
|
_: 1
|
|
163
163
|
}, 8, ["onClick"]),
|
|
164
|
-
ui(
|
|
164
|
+
ui(Ce, {
|
|
165
165
|
onClick: Z.cancelDeletion,
|
|
166
166
|
tag: "button",
|
|
167
167
|
button_type: "light"
|
|
@@ -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 se = this.uploadFileList.findIndex(
|
|
272
272
|
(G) => G.id === this.media_id
|
|
273
273
|
);
|
|
274
|
-
|
|
274
|
+
se !== -1 && this.uploadFileList.splice(se, 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 se = 1024, G = ["Bytes", "KB", "MB", "GB", "TB"], _e = Math.floor(Math.log(A) / Math.log(se));
|
|
289
|
+
return parseFloat((A / Math.pow(se, _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 se = A.dataTransfer.files;
|
|
300
|
+
Array.from(se).forEach((G) => {
|
|
301
301
|
this.uploadFile(G);
|
|
302
302
|
});
|
|
303
303
|
},
|
|
304
304
|
async uploadFiles(A) {
|
|
305
|
-
const
|
|
305
|
+
const se = A.target.files, G = Array.from(se).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, se) {
|
|
311
|
+
return A.hasOwnProperty(se) ? A[se][0] : "";
|
|
312
312
|
},
|
|
313
313
|
async uploadFile(A) {
|
|
314
|
-
return new Promise((
|
|
315
|
-
A ||
|
|
314
|
+
return new Promise((se, G) => {
|
|
315
|
+
A || se();
|
|
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);
|
|
@@ -324,23 +324,23 @@ const j7 = /* @__PURE__ */ zr(Uq, [["render", Xq]]), Rj = Pq({
|
|
|
324
324
|
}
|
|
325
325
|
}).then((ne) => {
|
|
326
326
|
let Z = this.files.findIndex(
|
|
327
|
-
(
|
|
327
|
+
(Ce) => Ce.file_name === A.name
|
|
328
328
|
);
|
|
329
329
|
Z !== -1 && this.files.splice(Z, 1), this.has_multiple_file || (this.uploadFileList = []), this.uploadFileList.push({
|
|
330
330
|
file_name: ne.data.file_name,
|
|
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 = "", se();
|
|
335
335
|
}).catch((ne) => {
|
|
336
336
|
ne.response.status === 422 ? this.error_message_data = this.getFirstError(
|
|
337
337
|
ne.response.data.errors,
|
|
338
338
|
this.field_name
|
|
339
339
|
) : console.error("An error occurred:", ne);
|
|
340
340
|
let Z = this.files.findIndex(
|
|
341
|
-
(
|
|
341
|
+
(Ce) => Ce.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), se();
|
|
344
344
|
});
|
|
345
345
|
});
|
|
346
346
|
}
|
|
@@ -379,10 +379,10 @@ 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,
|
|
383
|
-
const
|
|
382
|
+
function DK(A, se, G, _e, ne, Z) {
|
|
383
|
+
const Ce = Rd("DeleteConfirmationModal");
|
|
384
384
|
return ue(), fe(jn, null, [
|
|
385
|
-
ui(
|
|
385
|
+
ui(Ce, {
|
|
386
386
|
isOpen: ne.open_delete_modal,
|
|
387
387
|
onConfirmDelete: Z.deleteAction,
|
|
388
388
|
onCancelDelete: Z.closeDeleteModal
|
|
@@ -401,9 +401,9 @@ function DK(A, oe, 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: se[3] || (se[3] = za((...X) => Z.onDragOver && Z.onDragOver(...X), ["prevent"])),
|
|
405
|
+
onDragleave: se[4] || (se[4] = za((...X) => Z.onDragLeave && Z.onDragLeave(...X), ["prevent"])),
|
|
406
|
+
onDrop: se[5] || (se[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, oe, 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: se[0] || (se[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": se[1] || (se[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: se[2] || (se[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((se) => {
|
|
502
|
+
this.locals = se.data.locals, this.default_language = se.data.default_language;
|
|
503
|
+
}).catch((se) => {
|
|
504
|
+
console.error(se);
|
|
505
505
|
});
|
|
506
506
|
}
|
|
507
507
|
},
|
|
@@ -511,26 +511,26 @@ 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, se, G, _e, ne, Z) {
|
|
515
515
|
return ue(), fe("ul", RK, [
|
|
516
|
-
(ue(!0), fe(jn, null, Ks(ne.locals, (
|
|
516
|
+
(ue(!0), fe(jn, null, Ks(ne.locals, (Ce, X) => (ue(), fe("li", null, [
|
|
517
517
|
R("input", {
|
|
518
518
|
type: "radio",
|
|
519
519
|
name: G.trans_selector_name,
|
|
520
|
-
value:
|
|
520
|
+
value: Ce,
|
|
521
521
|
class: "hidden peer",
|
|
522
|
-
id:
|
|
522
|
+
id: Ce + "_" + G.field_name,
|
|
523
523
|
autocomplete: "off",
|
|
524
|
-
checked:
|
|
524
|
+
checked: Ce === ne.default_language
|
|
525
525
|
}, null, 8, $K),
|
|
526
526
|
R("label", {
|
|
527
|
-
for:
|
|
527
|
+
for: Ce + "_" + G.field_name,
|
|
528
528
|
class: Zt([{
|
|
529
529
|
"border md:!rounded-s-lg": X === 0,
|
|
530
530
|
"border md:!rounded-e-lg": X === ne.locals.length - 1,
|
|
531
531
|
"border-t border-b": X !== 0 && X !== ne.locals.length - 1
|
|
532
532
|
}, "block w-full p-1 font-bold text-center text-gray-500 uppercase bg-white border-gray-200 rounded-lg cursor-pointer md:rounded-none dark:hover:text-gray-300 dark:border-gray-700 dark:peer-checked:text-blue-500 peer-checked:border-blue-600 peer-checked:text-blue-600 hover:text-gray-600 hover:bg-gray-100 dark:text-gray-400 dark:bg-gray-800 dark:hover:bg-gray-700"])
|
|
533
|
-
}, mt(
|
|
533
|
+
}, mt(Ce), 11, MK)
|
|
534
534
|
]))), 256))
|
|
535
535
|
]);
|
|
536
536
|
}
|
|
@@ -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 se = A, G = pu(() => se.class), _e = pu(() => se.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: se }) {
|
|
667
|
+
const G = A, _e = se, ne = co(null), Z = co([]), Ce = 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();
|
|
@@ -680,7 +680,7 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
680
680
|
});
|
|
681
681
|
const Ls = pu(() => {
|
|
682
682
|
const Ht = [], _t = new RegExp(yt.value, "ig");
|
|
683
|
-
for (const Pe of
|
|
683
|
+
for (const Pe of Ce.value) {
|
|
684
684
|
const no = String(Pe.name);
|
|
685
685
|
(yt.value.length < 1 || no.match(_t)) && Ht.length < G.maxItem && Ht.push(Pe);
|
|
686
686
|
}
|
|
@@ -747,21 +747,21 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
747
747
|
}
|
|
748
748
|
function Nt() {
|
|
749
749
|
if (kt(Z.value))
|
|
750
|
-
return ia(Z.value) ?
|
|
750
|
+
return ia(Z.value) ? Ce.value.filter(
|
|
751
751
|
(Ht) => Z.value.some(
|
|
752
752
|
(_t) => String(_t.id) === String(Ht.id)
|
|
753
753
|
)
|
|
754
|
-
) || [] :
|
|
754
|
+
) || [] : Ce.value.filter(
|
|
755
755
|
(Ht) => Z.value.some(
|
|
756
756
|
(_t) => String(_t) === String(Ht.id)
|
|
757
757
|
)
|
|
758
758
|
) || [];
|
|
759
759
|
if (G.modelValue)
|
|
760
|
-
return ia(G.modelValue) ?
|
|
760
|
+
return ia(G.modelValue) ? Ce.value.filter(
|
|
761
761
|
(Ht) => G.modelValue.some(
|
|
762
762
|
(_t) => String(_t.id) === String(Ht.id)
|
|
763
763
|
)
|
|
764
|
-
) || [] :
|
|
764
|
+
) || [] : Ce.value.filter(
|
|
765
765
|
(Ht) => G.modelValue.some(
|
|
766
766
|
(_t) => String(_t) === String(Ht.id)
|
|
767
767
|
)
|
|
@@ -802,7 +802,7 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
802
802
|
), Ag(
|
|
803
803
|
() => G.options,
|
|
804
804
|
() => {
|
|
805
|
-
|
|
805
|
+
Ce.value = Cn(), Z.value = Nt();
|
|
806
806
|
},
|
|
807
807
|
{ immediate: !0, deep: !0 }
|
|
808
808
|
), (Ht, _t) => (ue(), fe(jn, null, [
|
|
@@ -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:
|
|
975
|
-
const _e = A, ne = G, Z = co(null),
|
|
976
|
-
|
|
974
|
+
setup(A, { expose: se, emit: G }) {
|
|
975
|
+
const _e = A, ne = G, Z = co(null), Ce = co(null), X = () => {
|
|
976
|
+
Ce.value && ne("update:modelValueTranslate", Ce.value.value);
|
|
977
977
|
};
|
|
978
978
|
return Dg(() => {
|
|
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),
|
|
980
|
-
}),
|
|
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), Ce.value.value = _e.modelValueTranslate);
|
|
980
|
+
}), se({ 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)
|
|
@@ -989,7 +989,7 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
989
989
|
name: A.field_name + "_i18n",
|
|
990
990
|
id: A.field_name + "_i18n",
|
|
991
991
|
ref_key: "input_translate",
|
|
992
|
-
ref:
|
|
992
|
+
ref: Ce,
|
|
993
993
|
"onUpdate:modelValue": lt[0] || (lt[0] = (yt) => $e.inputTranslateValue = yt)
|
|
994
994
|
}, null, 8, nY), [
|
|
995
995
|
[_m, $e.inputTranslateValue]
|
|
@@ -1021,7 +1021,7 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
1021
1021
|
id: A.field_name + "_i18n",
|
|
1022
1022
|
onChange: X,
|
|
1023
1023
|
ref_key: "input_translate",
|
|
1024
|
-
ref:
|
|
1024
|
+
ref: Ce
|
|
1025
1025
|
}, null, 40, lY),
|
|
1026
1026
|
R("textarea", {
|
|
1027
1027
|
required: A.is_required,
|
|
@@ -1101,27 +1101,27 @@ 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:
|
|
1105
|
-
const _e = A, ne = G, Z = co(null),
|
|
1106
|
-
|
|
1104
|
+
setup(A, { expose: se, emit: G }) {
|
|
1105
|
+
const _e = A, ne = G, Z = co(null), Ce = co(null), X = () => {
|
|
1106
|
+
Ce.value && ne("update:modelValueTranslate", Ce.value.value);
|
|
1107
1107
|
};
|
|
1108
1108
|
return Dg(() => {
|
|
1109
1109
|
tinymce.init({
|
|
1110
1110
|
selector: "#" + _e.field_name,
|
|
1111
1111
|
width: "100%",
|
|
1112
1112
|
height: 300
|
|
1113
|
-
}), 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),
|
|
1113
|
+
}), 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), Ce.value.value = _e.modelValueTranslate), _e.translatable && !_e.modelValueTranslate && axios.get("/admin/get_field_translations", {
|
|
1114
1114
|
params: {
|
|
1115
1115
|
model: _e.translatable.model,
|
|
1116
1116
|
row_id: _e.translatable.row_id,
|
|
1117
1117
|
field: _e.translatable.field
|
|
1118
1118
|
}
|
|
1119
1119
|
}).then(($e) => {
|
|
1120
|
-
|
|
1120
|
+
Ce.value.value = JSON.stringify($e.data), ne("update:modelValueTranslate", JSON.stringify($e.data));
|
|
1121
1121
|
}).catch(($e) => {
|
|
1122
1122
|
console.log($e);
|
|
1123
1123
|
});
|
|
1124
|
-
}),
|
|
1124
|
+
}), se({ 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)
|
|
@@ -1133,7 +1133,7 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
1133
1133
|
name: A.field_name + "_i18n",
|
|
1134
1134
|
id: A.field_name + "_i18n",
|
|
1135
1135
|
ref_key: "input_translate",
|
|
1136
|
-
ref:
|
|
1136
|
+
ref: Ce,
|
|
1137
1137
|
"onUpdate:modelValue": lt[0] || (lt[0] = (yt) => $e.inputTranslateValue = yt)
|
|
1138
1138
|
}, null, 8, mY), [
|
|
1139
1139
|
[_m, $e.inputTranslateValue]
|
|
@@ -1165,7 +1165,7 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
1165
1165
|
id: A.field_name + "_i18n",
|
|
1166
1166
|
onChange: X,
|
|
1167
1167
|
ref_key: "input_translate",
|
|
1168
|
-
ref:
|
|
1168
|
+
ref: Ce
|
|
1169
1169
|
}, null, 40, bY),
|
|
1170
1170
|
R("textarea", {
|
|
1171
1171
|
name: 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:
|
|
1240
|
-
const _e = A, ne = G, Z = co(null),
|
|
1241
|
-
|
|
1239
|
+
setup(A, { expose: se, emit: G }) {
|
|
1240
|
+
const _e = A, ne = G, Z = co(null), Ce = co(null), X = () => {
|
|
1241
|
+
Ce.value && ne("update:modelValueTranslate", Ce.value.value);
|
|
1242
1242
|
};
|
|
1243
1243
|
return Dg(() => {
|
|
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),
|
|
1245
|
-
}),
|
|
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), Ce.value.value = _e.modelValueTranslate);
|
|
1245
|
+
}), se({ 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)
|
|
@@ -1254,7 +1254,7 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
1254
1254
|
name: A.field_name + "_i18n",
|
|
1255
1255
|
id: A.field_name + "_i18n",
|
|
1256
1256
|
ref_key: "input_translate",
|
|
1257
|
-
ref:
|
|
1257
|
+
ref: Ce,
|
|
1258
1258
|
"onUpdate:modelValue": lt[0] || (lt[0] = (yt) => $e.inputTranslateValue = yt)
|
|
1259
1259
|
}, null, 8, CY), [
|
|
1260
1260
|
[_m, $e.inputTranslateValue]
|
|
@@ -1286,7 +1286,7 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
1286
1286
|
id: A.field_name + "_i18n",
|
|
1287
1287
|
onChange: X,
|
|
1288
1288
|
ref_key: "input_translate",
|
|
1289
|
-
ref:
|
|
1289
|
+
ref: Ce
|
|
1290
1290
|
}, null, 40, EY),
|
|
1291
1291
|
R("input", {
|
|
1292
1292
|
required: A.is_required,
|
|
@@ -1348,12 +1348,12 @@ 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: se, 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();
|
|
1355
1355
|
});
|
|
1356
|
-
const
|
|
1356
|
+
const Ce = pu({
|
|
1357
1357
|
get() {
|
|
1358
1358
|
return _e.modelValue;
|
|
1359
1359
|
},
|
|
@@ -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 se({ 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)
|
|
@@ -1392,13 +1392,13 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
1392
1392
|
"gl-input-form-invalid": A.error_message !== ""
|
|
1393
1393
|
}),
|
|
1394
1394
|
type: A.type,
|
|
1395
|
-
"onUpdate:modelValue": $e[0] || ($e[0] = (lt) =>
|
|
1395
|
+
"onUpdate:modelValue": $e[0] || ($e[0] = (lt) => Ce.value = lt),
|
|
1396
1396
|
onKeydown: $e[1] || ($e[1] = (lt) => X.$emit("keydown", lt)),
|
|
1397
1397
|
ref_key: "input",
|
|
1398
1398
|
ref: Z,
|
|
1399
1399
|
placeholder: A.placeholder
|
|
1400
1400
|
}, null, 42, BY), [
|
|
1401
|
-
[nq,
|
|
1401
|
+
[nq, Ce.value]
|
|
1402
1402
|
]),
|
|
1403
1403
|
R("span", NY, mt(A.error_message), 1),
|
|
1404
1404
|
R("small", IY, mt(A.description), 1)
|
|
@@ -1454,12 +1454,12 @@ 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: se, 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();
|
|
1461
1461
|
});
|
|
1462
|
-
const
|
|
1462
|
+
const Ce = pu({
|
|
1463
1463
|
get() {
|
|
1464
1464
|
return _e.modelValue;
|
|
1465
1465
|
},
|
|
@@ -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 se({ 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)
|
|
@@ -1500,13 +1500,13 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
1500
1500
|
"gl-input-form-invalid-text": A.error_message !== ""
|
|
1501
1501
|
}, "!border-e-0 !rounded-s-lg"]),
|
|
1502
1502
|
type: A.type,
|
|
1503
|
-
"onUpdate:modelValue": $e[0] || ($e[0] = (lt) =>
|
|
1503
|
+
"onUpdate:modelValue": $e[0] || ($e[0] = (lt) => Ce.value = lt),
|
|
1504
1504
|
onKeydown: $e[1] || ($e[1] = (lt) => X.$emit("keydown", lt)),
|
|
1505
1505
|
ref_key: "input",
|
|
1506
1506
|
ref: Z,
|
|
1507
1507
|
placeholder: A.placeholder
|
|
1508
1508
|
}, null, 42, ZY), [
|
|
1509
|
-
[nq,
|
|
1509
|
+
[nq, Ce.value]
|
|
1510
1510
|
])
|
|
1511
1511
|
]),
|
|
1512
1512
|
R("label", jY, mt(A.input_text), 1)
|
|
@@ -1553,13 +1553,13 @@ 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: se }) {
|
|
1557
|
+
const G = A, _e = se, ne = co(""), Z = co({
|
|
1558
1558
|
start: G.modelValue.start,
|
|
1559
1559
|
end: G.modelValue.end
|
|
1560
1560
|
});
|
|
1561
1561
|
co(""), co("");
|
|
1562
|
-
const
|
|
1562
|
+
const Ce = pu({
|
|
1563
1563
|
get() {
|
|
1564
1564
|
return G.modelValue.start;
|
|
1565
1565
|
},
|
|
@@ -1607,10 +1607,10 @@ const wce = /* @__PURE__ */ zr(OK, [["render", PK]]), BK = { class: "bg-white bo
|
|
|
1607
1607
|
"gl-input-form-invalid": A.error_message !== "" || ne.value !== ""
|
|
1608
1608
|
}),
|
|
1609
1609
|
type: "date",
|
|
1610
|
-
"onUpdate:modelValue": yt[0] || (yt[0] = (hn) =>
|
|
1610
|
+
"onUpdate:modelValue": yt[0] || (yt[0] = (hn) => Ce.value = hn),
|
|
1611
1611
|
placeholder: A.placeholder
|
|
1612
1612
|
}, null, 10, eX), [
|
|
1613
|
-
[_m,
|
|
1613
|
+
[_m, Ce.value]
|
|
1614
1614
|
]),
|
|
1615
1615
|
tX,
|
|
1616
1616
|
Tr(R("input", {
|
|
@@ -1680,12 +1680,12 @@ 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 =
|
|
1685
|
-
const
|
|
1686
|
-
console.log(
|
|
1683
|
+
setup(A, { emit: se }) {
|
|
1684
|
+
const G = se, _e = co(null), ne = (Z) => {
|
|
1685
|
+
const Ce = Z.target.files[0];
|
|
1686
|
+
console.log(Ce), G("keydown", Z), Ce && G("update:modelValue", Ce);
|
|
1687
1687
|
};
|
|
1688
|
-
return (Z,
|
|
1688
|
+
return (Z, Ce) => (ue(), fe(jn, null, [
|
|
1689
1689
|
A.show ? (ue(), fe("div", {
|
|
1690
1690
|
key: 0,
|
|
1691
1691
|
class: Zt(A.field_name)
|
|
@@ -1729,17 +1729,17 @@ 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: se }) {
|
|
1733
|
+
const G = se, _e = Bq(), ne = co(_e.default().map(($e) => $e.props)), Z = co("");
|
|
1734
1734
|
oq("selectedTitle", Z);
|
|
1735
|
-
const
|
|
1735
|
+
const Ce = ($e) => {
|
|
1736
1736
|
window.location.hash = encodeURIComponent($e), G("TabChange", $e);
|
|
1737
1737
|
}, X = () => {
|
|
1738
1738
|
const $e = decodeURIComponent(window.location.hash.replace("#", "")), lt = ne.value.find((yt) => yt.title === $e);
|
|
1739
1739
|
lt && (Z.value = lt.title);
|
|
1740
1740
|
};
|
|
1741
1741
|
return Ag(Z, ($e) => {
|
|
1742
|
-
|
|
1742
|
+
Ce($e);
|
|
1743
1743
|
}), Dg(() => {
|
|
1744
1744
|
X(), window.addEventListener("hashchange", X);
|
|
1745
1745
|
}), Z7(() => {
|
|
@@ -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, se, 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 se = "";
|
|
1845
1845
|
const G = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", _e = G.length;
|
|
1846
1846
|
for (let ne = 0; ne < A; ne++)
|
|
1847
|
-
|
|
1848
|
-
return
|
|
1847
|
+
se += G.charAt(Math.floor(Math.random() * _e));
|
|
1848
|
+
return se;
|
|
1849
1849
|
},
|
|
1850
1850
|
movingActions() {
|
|
1851
|
-
let A = this,
|
|
1851
|
+
let A = this, se = document.getElementById("slider_" + this.Random_string);
|
|
1852
1852
|
const G = (ne) => {
|
|
1853
|
-
|
|
1853
|
+
se.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)) :
|
|
1857
|
-
},
|
|
1858
|
-
document.removeEventListener("mousemove", Z), document.removeEventListener("touchmove", Z), document.removeEventListener("mouseup",
|
|
1856
|
+
Math.abs(yt) > Math.abs(hn) ? (X.preventDefault(), Math.abs(yt) >= 70 && (yt < 0 ? A.next() : A.prev(), A.initialX = $e)) : se.style.cursor = "grab", Math.abs(hn) > Math.abs(yt) && (se.style.cursor = "grab");
|
|
1857
|
+
}, Ce = () => {
|
|
1858
|
+
document.removeEventListener("mousemove", Z), document.removeEventListener("touchmove", Z), document.removeEventListener("mouseup", Ce), document.removeEventListener("touchend", Ce), se.style.cursor = "grab";
|
|
1859
1859
|
};
|
|
1860
|
-
document.addEventListener("mousemove", Z), document.addEventListener("touchmove", Z, { passive: !1 }), document.addEventListener("mouseup",
|
|
1860
|
+
document.addEventListener("mousemove", Z), document.addEventListener("touchmove", Z, { passive: !1 }), document.addEventListener("mouseup", Ce), document.addEventListener("touchend", Ce), 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
|
+
se.addEventListener("mousedown", G), se.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,23 +1870,23 @@ 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,
|
|
1873
|
+
let A = document.getElementById("sliderContainer_" + this.Random_string), se = 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, Ce = Z / this.elementsToShow;
|
|
1874
|
+
if (this.elementsToShow > 1 ? document.body.clientWidth < 1e3 ? (this.elementsToShow = 1, Ce = this.hide_arrow ? se.clientWidth : Z) : document.body.clientWidth < 1500 && (this.elementsToShow = 2) : (this.elementsToShow = 1, Ce = this.hide_arrow ? se.clientWidth : Z), ne.length > 1) {
|
|
1875
1875
|
this.dotsNum = this.elementsToShow == 1 ? ne.length : ne.length - this.elementsToShow + 1;
|
|
1876
|
-
let X = this.elementsToShow == 1 ?
|
|
1876
|
+
let X = this.elementsToShow == 1 ? Ce * ne.length / this.dotsNum : Ce * (ne.length - this.elementsToShow) / (this.dotsNum - 1);
|
|
1877
1877
|
this.dotsNavigation = [];
|
|
1878
1878
|
for (let $e = 0; $e < this.dotsNum; $e++)
|
|
1879
1879
|
this.dotsNavigation.push(X * $e);
|
|
1880
1880
|
}
|
|
1881
|
-
G.style.width = ne.length *
|
|
1881
|
+
G.style.width = ne.length * Ce + "px", G.style.transition = "margin", G.style.transitionDuration = "1s";
|
|
1882
1882
|
for (let X = 0; X < ne.length; X++) {
|
|
1883
1883
|
const $e = ne[X];
|
|
1884
|
-
$e.style.width =
|
|
1884
|
+
$e.style.width = Ce + "px";
|
|
1885
1885
|
}
|
|
1886
1886
|
},
|
|
1887
1887
|
setDot(A) {
|
|
1888
|
-
let
|
|
1889
|
-
this.direction_property == "rtl" ?
|
|
1888
|
+
let se = document.getElementById("slider_" + this.Random_string);
|
|
1889
|
+
this.direction_property == "rtl" ? se.style.marginRight = -this.dotsNavigation[A - 1] + "px" : se.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, se, 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, oe, 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: se[0] || (se[0] = (Ce) => 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, oe, 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: se[1] || (se[1] = za((Ce) => 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, oe, 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: se[2] || (se[2] = za((Ce) => 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)
|
|
@@ -2133,22 +2133,22 @@ function EJ(A, oe, G, _e, ne, Z) {
|
|
|
2133
2133
|
key: 0,
|
|
2134
2134
|
class: Zt(["flex justify-center mb-1 space-x-1", Z.sliderIndicatorsAction()])
|
|
2135
2135
|
}, [
|
|
2136
|
-
(ue(!0), fe(jn, null, Ks(A.dotsNum, (
|
|
2136
|
+
(ue(!0), fe(jn, null, Ks(A.dotsNum, (Ce) => (ue(), fe("button", {
|
|
2137
2137
|
role: "button",
|
|
2138
|
-
class: Zt(["gl-dot", { active: A.currentDot ==
|
|
2139
|
-
key:
|
|
2140
|
-
onClick: (X) => Z.setDot(
|
|
2138
|
+
class: Zt(["gl-dot", { active: A.currentDot == Ce }]),
|
|
2139
|
+
key: Ce,
|
|
2140
|
+
onClick: (X) => Z.setDot(Ce)
|
|
2141
2141
|
}, XX, 10, KX))), 128))
|
|
2142
2142
|
], 2)) : Ye("", !0),
|
|
2143
2143
|
G.slider_arrows_indicators_position == "arrows_indicators_below_slider" ? (ue(), fe("div", JX, [
|
|
2144
2144
|
R("div", {
|
|
2145
2145
|
class: Zt(["flex justify-center mb-1 space-x-1", Z.sliderIndicatorsAction()])
|
|
2146
2146
|
}, [
|
|
2147
|
-
(ue(!0), fe(jn, null, Ks(A.dotsNum, (
|
|
2147
|
+
(ue(!0), fe(jn, null, Ks(A.dotsNum, (Ce) => (ue(), fe("button", {
|
|
2148
2148
|
role: "button",
|
|
2149
|
-
class: Zt(["gl-dot", { active: A.currentDot ==
|
|
2150
|
-
key:
|
|
2151
|
-
onClick: (X) => Z.setDot(
|
|
2149
|
+
class: Zt(["gl-dot", { active: A.currentDot == Ce }]),
|
|
2150
|
+
key: Ce,
|
|
2151
|
+
onClick: (X) => Z.setDot(Ce)
|
|
2152
2152
|
}, tJ, 10, QX))), 128))
|
|
2153
2153
|
], 2),
|
|
2154
2154
|
A.dotsNum > 0 ? (ue(), fe("div", nJ, [
|
|
@@ -2156,7 +2156,7 @@ function EJ(A, oe, 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: se[3] || (se[3] = (Ce) => 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, oe, 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: se[4] || (se[4] = (Ce) => 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, oe, 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: se[5] || (se[5] = (Ce) => 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)
|
|
@@ -2248,9 +2248,9 @@ const Rce = /* @__PURE__ */ zr(_X, [["render", EJ], ["__scopeId", "data-v-205c63
|
|
|
2248
2248
|
methods: {
|
|
2249
2249
|
observeSlotChanges() {
|
|
2250
2250
|
const A = this.$refs.slotContainer;
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2251
|
+
A && (this.mutationObserver = new MutationObserver((se) => {
|
|
2252
|
+
se.forEach((G) => {
|
|
2253
|
+
this.initSlider();
|
|
2254
2254
|
});
|
|
2255
2255
|
}), this.mutationObserver.observe(A, {
|
|
2256
2256
|
childList: !0,
|
|
@@ -2266,27 +2266,27 @@ const Rce = /* @__PURE__ */ zr(_X, [["render", EJ], ["__scopeId", "data-v-205c63
|
|
|
2266
2266
|
return !this.hide_arrow && this.slider_arrows_indicators_position == "arrows_outside_slider" || this.slider_arrows_indicators_position != "arrows_outside_slider", A;
|
|
2267
2267
|
},
|
|
2268
2268
|
generateRandomString(A) {
|
|
2269
|
-
let
|
|
2269
|
+
let se = "";
|
|
2270
2270
|
const G = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", _e = G.length;
|
|
2271
2271
|
for (let ne = 0; ne < A; ne++)
|
|
2272
|
-
|
|
2273
|
-
return
|
|
2272
|
+
se += G.charAt(Math.floor(Math.random() * _e));
|
|
2273
|
+
return se;
|
|
2274
2274
|
},
|
|
2275
2275
|
movingActions() {
|
|
2276
|
-
let A = this,
|
|
2276
|
+
let A = this, se = document.getElementById("slider_" + this.Random_string);
|
|
2277
2277
|
const G = (ne) => {
|
|
2278
|
-
|
|
2278
|
+
se.style.cursor = "grabbing";
|
|
2279
2279
|
const Z = (X) => {
|
|
2280
2280
|
const $e = X.clientX || X.touches && X.touches[0] && X.touches[0].clientX, lt = X.clientY || X.touches && X.touches[0] && X.touches[0].clientY, yt = $e - A.initialX, hn = lt - A.initialY;
|
|
2281
|
-
Math.abs(yt) > Math.abs(hn) ? (X.preventDefault(), Math.abs(yt) >= 70 && (yt < 0 ? A.next() : A.prev(), A.initialX = $e)) :
|
|
2282
|
-
},
|
|
2283
|
-
document.removeEventListener("mousemove", Z), document.removeEventListener("touchmove", Z), document.removeEventListener("mouseup",
|
|
2281
|
+
Math.abs(yt) > Math.abs(hn) ? (X.preventDefault(), Math.abs(yt) >= 70 && (yt < 0 ? A.next() : A.prev(), A.initialX = $e)) : se.style.cursor = "grab", Math.abs(hn) > Math.abs(yt) && (se.style.cursor = "grab");
|
|
2282
|
+
}, Ce = () => {
|
|
2283
|
+
document.removeEventListener("mousemove", Z), document.removeEventListener("touchmove", Z), document.removeEventListener("mouseup", Ce), document.removeEventListener("touchend", Ce), se.style.cursor = "grab";
|
|
2284
2284
|
};
|
|
2285
|
-
document.addEventListener("mousemove", Z), document.addEventListener("touchmove", Z, { passive: !1 }), document.addEventListener("mouseup",
|
|
2285
|
+
document.addEventListener("mousemove", Z), document.addEventListener("touchmove", Z, { passive: !1 }), document.addEventListener("mouseup", Ce), document.addEventListener("touchend", Ce), 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;
|
|
2286
2286
|
}, _e = (ne) => {
|
|
2287
2287
|
ne.key === "ArrowLeft" ? A.prev() : ne.key === "ArrowRight" && A.next();
|
|
2288
2288
|
};
|
|
2289
|
-
|
|
2289
|
+
se.addEventListener("mousedown", G), se.addEventListener("touchstart", G), document.addEventListener("keydown", _e);
|
|
2290
2290
|
},
|
|
2291
2291
|
next() {
|
|
2292
2292
|
this.currentDot < this.dotsNavigation.length && (this.currentDot++, this.setDot(this.currentDot));
|
|
@@ -2295,18 +2295,15 @@ const Rce = /* @__PURE__ */ zr(_X, [["render", EJ], ["__scopeId", "data-v-205c63
|
|
|
2295
2295
|
this.currentDot > 1 && (this.currentDot--, this.setDot(this.currentDot));
|
|
2296
2296
|
},
|
|
2297
2297
|
initSlider() {
|
|
2298
|
-
let A = document.getElementById("sliderContainer_" + this.Random_string),
|
|
2298
|
+
let A = document.getElementById("sliderContainer_" + this.Random_string), se = 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);
|
|
2299
2299
|
ne[0];
|
|
2300
|
-
let Z = this.element_size + 28;
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
this.
|
|
2305
|
-
let X = this.hide_arrow ? oe.clientWidth : xe;
|
|
2306
|
-
console.log("navigation_no_between_slides", X), this.dotsNavigation = [];
|
|
2300
|
+
let Z = this.element_size + 28, Ce = A.clientWidth;
|
|
2301
|
+
if (this.elementsToShow = Math.floor(this.hide_arrow ? se.clientWidth / Z : Ce / Z), Z = (this.hide_arrow ? se.clientWidth : Ce) / this.elementsToShow - 28, ne.length > 1) {
|
|
2302
|
+
this.dotsNum = Math.ceil(ne.length / this.elementsToShow);
|
|
2303
|
+
let X = this.hide_arrow ? se.clientWidth : Ce;
|
|
2304
|
+
this.dotsNavigation = [];
|
|
2307
2305
|
for (let $e = 0; $e < this.dotsNum; $e++)
|
|
2308
2306
|
this.dotsNavigation.push(X * $e);
|
|
2309
|
-
console.log("dotsNavigation", this.dotsNavigation);
|
|
2310
2307
|
}
|
|
2311
2308
|
G.style.transition = "margin", G.style.transitionDuration = "1s";
|
|
2312
2309
|
for (let X = 0; X < ne.length; X++) {
|
|
@@ -2315,11 +2312,11 @@ const Rce = /* @__PURE__ */ zr(_X, [["render", EJ], ["__scopeId", "data-v-205c63
|
|
|
2315
2312
|
}
|
|
2316
2313
|
},
|
|
2317
2314
|
setDot(A) {
|
|
2318
|
-
let
|
|
2319
|
-
this.direction_property == "rtl" ?
|
|
2315
|
+
let se = document.getElementById("slider_" + this.Random_string);
|
|
2316
|
+
this.direction_property == "rtl" ? se.style.marginRight = -this.dotsNavigation[A - 1] + "px" : se.style.marginLeft = -this.dotsNavigation[A - 1] + "px", this.currentDot = A;
|
|
2320
2317
|
}
|
|
2321
2318
|
}
|
|
2322
|
-
}, km = (A) => (rq("data-v-
|
|
2319
|
+
}, km = (A) => (rq("data-v-bb117eda"), A = A(), aq(), A), DJ = ["id"], OJ = {
|
|
2323
2320
|
key: 0,
|
|
2324
2321
|
class: "items-center hidden w-2/12 xl:flex xxl:flex md:flex sm:flex arrow_button"
|
|
2325
2322
|
}, RJ = { class: "w-full" }, $J = {
|
|
@@ -2504,7 +2501,7 @@ const Rce = /* @__PURE__ */ zr(_X, [["render", EJ], ["__scopeId", "data-v-205c63
|
|
|
2504
2501
|
}, null, -1)), RQ = [
|
|
2505
2502
|
OQ
|
|
2506
2503
|
];
|
|
2507
|
-
function $Q(A,
|
|
2504
|
+
function $Q(A, se, G, _e, ne, Z) {
|
|
2508
2505
|
return ue(), fe("div", null, [
|
|
2509
2506
|
R("div", {
|
|
2510
2507
|
class: Zt(["w-full", !G.hide_arrow && G.slider_arrows_indicators_position == "arrows_outside_slider" ? "flex" : "relative block"]),
|
|
@@ -2514,7 +2511,7 @@ function $Q(A, oe, G, _e, ne, Z) {
|
|
|
2514
2511
|
R("div", RJ, [
|
|
2515
2512
|
R("button", {
|
|
2516
2513
|
class: "p-3 mr-5 rounded-full shadow-lg arrow_button_styles",
|
|
2517
|
-
onClick:
|
|
2514
|
+
onClick: se[0] || (se[0] = (Ce) => Z.prev())
|
|
2518
2515
|
}, [
|
|
2519
2516
|
G.direction_property == "ltr" ? (ue(), fe("svg", $J, PJ)) : Ye("", !0),
|
|
2520
2517
|
G.direction_property == "rtl" ? (ue(), fe("svg", BJ, IJ)) : Ye("", !0)
|
|
@@ -2537,7 +2534,7 @@ function $Q(A, oe, G, _e, ne, Z) {
|
|
|
2537
2534
|
R("div", HJ, [
|
|
2538
2535
|
R("button", {
|
|
2539
2536
|
class: "p-3 rounded-full shadow-lg arrow_button_styles",
|
|
2540
|
-
onClick:
|
|
2537
|
+
onClick: se[1] || (se[1] = za((Ce) => Z.prev(), ["stop"]))
|
|
2541
2538
|
}, [
|
|
2542
2539
|
G.direction_property == "ltr" ? (ue(), fe("svg", VJ, UJ)) : Ye("", !0),
|
|
2543
2540
|
G.direction_property == "rtl" ? (ue(), fe("svg", WJ, jJ)) : Ye("", !0)
|
|
@@ -2552,7 +2549,7 @@ function $Q(A, oe, G, _e, ne, Z) {
|
|
|
2552
2549
|
R("div", GJ, [
|
|
2553
2550
|
R("button", {
|
|
2554
2551
|
class: "p-3 rounded-full shadow-lg arrow_button_styles",
|
|
2555
|
-
onClick:
|
|
2552
|
+
onClick: se[2] || (se[2] = za((Ce) => Z.next(), ["stop"]))
|
|
2556
2553
|
}, [
|
|
2557
2554
|
G.direction_property == "ltr" ? (ue(), fe("svg", qJ, YJ)) : Ye("", !0),
|
|
2558
2555
|
G.direction_property == "rtl" ? (ue(), fe("svg", XJ, QJ)) : Ye("", !0)
|
|
@@ -2564,22 +2561,22 @@ function $Q(A, oe, G, _e, ne, Z) {
|
|
|
2564
2561
|
key: 0,
|
|
2565
2562
|
class: Zt(["flex justify-center mb-1 space-x-1", Z.sliderIndicatorsAction()])
|
|
2566
2563
|
}, [
|
|
2567
|
-
(ue(!0), fe(jn, null, Ks(A.dotsNum, (
|
|
2564
|
+
(ue(!0), fe(jn, null, Ks(A.dotsNum, (Ce) => (ue(), fe("button", {
|
|
2568
2565
|
role: "button",
|
|
2569
|
-
class: Zt(["gl-dot", { active: A.currentDot ==
|
|
2570
|
-
key:
|
|
2571
|
-
onClick: (X) => Z.setDot(
|
|
2566
|
+
class: Zt(["gl-dot", { active: A.currentDot == Ce }]),
|
|
2567
|
+
key: Ce,
|
|
2568
|
+
onClick: (X) => Z.setDot(Ce)
|
|
2572
2569
|
}, nQ, 10, eQ))), 128))
|
|
2573
2570
|
], 2)) : Ye("", !0),
|
|
2574
2571
|
!G.hide_indicators && G.slider_arrows_indicators_position == "arrows_indicators_below_slider" ? (ue(), fe("div", oQ, [
|
|
2575
2572
|
R("div", {
|
|
2576
2573
|
class: Zt(["flex justify-center mb-1 space-x-1", Z.sliderIndicatorsAction()])
|
|
2577
2574
|
}, [
|
|
2578
|
-
(ue(!0), fe(jn, null, Ks(A.dotsNum, (
|
|
2575
|
+
(ue(!0), fe(jn, null, Ks(A.dotsNum, (Ce) => (ue(), fe("button", {
|
|
2579
2576
|
role: "button",
|
|
2580
|
-
class: Zt(["gl-dot", { active: A.currentDot ==
|
|
2581
|
-
key:
|
|
2582
|
-
onClick: (X) => Z.setDot(
|
|
2577
|
+
class: Zt(["gl-dot", { active: A.currentDot == Ce }]),
|
|
2578
|
+
key: Ce,
|
|
2579
|
+
onClick: (X) => Z.setDot(Ce)
|
|
2583
2580
|
}, aQ, 10, sQ))), 128))
|
|
2584
2581
|
], 2),
|
|
2585
2582
|
A.dotsNum > 0 ? (ue(), fe("div", lQ, [
|
|
@@ -2587,7 +2584,7 @@ function $Q(A, oe, G, _e, ne, Z) {
|
|
|
2587
2584
|
R("div", iQ, [
|
|
2588
2585
|
R("button", {
|
|
2589
2586
|
class: Zt(["p-3 rounded-full arrow_button_styles", G.direction_property == "rtl" ? "ml-3" : "mr-3"]),
|
|
2590
|
-
onClick:
|
|
2587
|
+
onClick: se[3] || (se[3] = (Ce) => Z.prev())
|
|
2591
2588
|
}, [
|
|
2592
2589
|
G.direction_property == "ltr" ? (ue(), fe("svg", uQ, mQ)) : Ye("", !0),
|
|
2593
2590
|
G.direction_property == "rtl" ? (ue(), fe("svg", fQ, hQ)) : Ye("", !0)
|
|
@@ -2598,7 +2595,7 @@ function $Q(A, oe, G, _e, ne, Z) {
|
|
|
2598
2595
|
R("div", bQ, [
|
|
2599
2596
|
R("button", {
|
|
2600
2597
|
class: "p-3 rounded-full arrow_button_styles",
|
|
2601
|
-
onClick:
|
|
2598
|
+
onClick: se[4] || (se[4] = (Ce) => Z.next())
|
|
2602
2599
|
}, [
|
|
2603
2600
|
G.direction_property == "ltr" ? (ue(), fe("svg", vQ, wQ)) : Ye("", !0),
|
|
2604
2601
|
G.direction_property == "rtl" ? (ue(), fe("svg", xQ, _Q)) : Ye("", !0)
|
|
@@ -2612,7 +2609,7 @@ function $Q(A, oe, G, _e, ne, Z) {
|
|
|
2612
2609
|
R("div", kQ, [
|
|
2613
2610
|
R("button", {
|
|
2614
2611
|
class: "p-3 ml-5 rounded-full shadow-lg arrow_button_styles",
|
|
2615
|
-
onClick:
|
|
2612
|
+
onClick: se[5] || (se[5] = (Ce) => Z.next())
|
|
2616
2613
|
}, [
|
|
2617
2614
|
G.direction_property == "ltr" ? (ue(), fe("svg", TQ, AQ)) : Ye("", !0),
|
|
2618
2615
|
G.direction_property == "rtl" ? (ue(), fe("svg", DQ, RQ)) : Ye("", !0)
|
|
@@ -2622,7 +2619,7 @@ function $Q(A, oe, G, _e, ne, Z) {
|
|
|
2622
2619
|
], 10, DJ)
|
|
2623
2620
|
]);
|
|
2624
2621
|
}
|
|
2625
|
-
const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-
|
|
2622
|
+
const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-bb117eda"]]), 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" }, [
|
|
2626
2623
|
/* @__PURE__ */ R("svg", {
|
|
2627
2624
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2628
2625
|
fill: "currentColor",
|
|
@@ -2673,12 +2670,12 @@ const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-6676f2
|
|
|
2673
2670
|
}
|
|
2674
2671
|
},
|
|
2675
2672
|
emits: ["closeModal"],
|
|
2676
|
-
setup(A, { emit:
|
|
2677
|
-
const G = A, _e =
|
|
2673
|
+
setup(A, { emit: se }) {
|
|
2674
|
+
const G = A, _e = se, ne = () => {
|
|
2678
2675
|
document.documentElement.style.overflow = "hidden", document.documentElement.style.paddingRight = "0px";
|
|
2679
2676
|
}, Z = () => {
|
|
2680
2677
|
document.documentElement.style.overflow = "", document.documentElement.style.paddingRight = "";
|
|
2681
|
-
},
|
|
2678
|
+
}, Ce = () => {
|
|
2682
2679
|
_e("closeModal"), Z();
|
|
2683
2680
|
};
|
|
2684
2681
|
return Ag(
|
|
@@ -2702,7 +2699,7 @@ const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-6676f2
|
|
|
2702
2699
|
R("button", {
|
|
2703
2700
|
type: "button",
|
|
2704
2701
|
class: "box-content border-none rounded-none text-neutral-500 hover:text-neutral-800 hover:no-underline focus:text-neutral-800 focus:opacity-100 focus:shadow-none focus:outline-none dark:text-neutral-400 dark:hover:text-neutral-300 dark:focus:text-neutral-300",
|
|
2705
|
-
onClick:
|
|
2702
|
+
onClick: Ce,
|
|
2706
2703
|
"aria-label": "Close"
|
|
2707
2704
|
}, IQ)
|
|
2708
2705
|
]),
|
|
@@ -2717,7 +2714,7 @@ const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-6676f2
|
|
|
2717
2714
|
Tr(R("div", VQ, [
|
|
2718
2715
|
ju(X.$slots, "buttons"),
|
|
2719
2716
|
R("button", {
|
|
2720
|
-
onClick:
|
|
2717
|
+
onClick: Ce,
|
|
2721
2718
|
type: "button",
|
|
2722
2719
|
class: "px-5 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-200 rounded-lg ms-3 hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-blue-300 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"
|
|
2723
2720
|
}, " Close ")
|
|
@@ -2779,12 +2776,12 @@ const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-6676f2
|
|
|
2779
2776
|
}
|
|
2780
2777
|
},
|
|
2781
2778
|
emits: ["closeModal"],
|
|
2782
|
-
setup(A, { emit:
|
|
2783
|
-
const G = A, _e =
|
|
2779
|
+
setup(A, { emit: se }) {
|
|
2780
|
+
const G = A, _e = se, ne = () => {
|
|
2784
2781
|
document.documentElement.style.overflow = "hidden", document.documentElement.style.paddingRight = "0px";
|
|
2785
2782
|
}, Z = () => {
|
|
2786
2783
|
document.documentElement.style.overflow = "", document.documentElement.style.paddingRight = "";
|
|
2787
|
-
},
|
|
2784
|
+
}, Ce = () => {
|
|
2788
2785
|
_e("closeModal"), Z();
|
|
2789
2786
|
};
|
|
2790
2787
|
return Ag(
|
|
@@ -2807,7 +2804,7 @@ const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-6676f2
|
|
|
2807
2804
|
R("button", {
|
|
2808
2805
|
type: "button",
|
|
2809
2806
|
class: "box-content border-none rounded-none text-neutral-500 hover:text-neutral-800 hover:no-underline focus:text-neutral-800 focus:opacity-100 focus:shadow-none focus:outline-none dark:text-neutral-400 dark:hover:text-neutral-300 dark:focus:text-neutral-300",
|
|
2810
|
-
onClick:
|
|
2807
|
+
onClick: Ce,
|
|
2811
2808
|
"aria-label": "Close"
|
|
2812
2809
|
}, jQ)
|
|
2813
2810
|
]),
|
|
@@ -2822,7 +2819,7 @@ const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-6676f2
|
|
|
2822
2819
|
Tr(R("div", YQ, [
|
|
2823
2820
|
ju(X.$slots, "buttons"),
|
|
2824
2821
|
R("button", {
|
|
2825
|
-
onClick:
|
|
2822
|
+
onClick: Ce,
|
|
2826
2823
|
type: "button",
|
|
2827
2824
|
class: "px-5 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-200 rounded-lg ms-3 hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-blue-300 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"
|
|
2828
2825
|
}, " Close ")
|
|
@@ -2883,16 +2880,16 @@ const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-6676f2
|
|
|
2883
2880
|
}
|
|
2884
2881
|
},
|
|
2885
2882
|
emits: ["update:modelValue"],
|
|
2886
|
-
setup(A, { emit:
|
|
2887
|
-
const G = A, _e =
|
|
2883
|
+
setup(A, { emit: se }) {
|
|
2884
|
+
const G = A, _e = se, ne = co(null), Z = pu({
|
|
2888
2885
|
get() {
|
|
2889
2886
|
return G.modelValue;
|
|
2890
2887
|
},
|
|
2891
|
-
set(
|
|
2892
|
-
_e("update:modelValue",
|
|
2888
|
+
set(Ce) {
|
|
2889
|
+
_e("update:modelValue", Ce);
|
|
2893
2890
|
}
|
|
2894
2891
|
});
|
|
2895
|
-
return (
|
|
2892
|
+
return (Ce, X) => (ue(), fe(jn, null, [
|
|
2896
2893
|
A.show ? (ue(), fe("div", {
|
|
2897
2894
|
key: 0,
|
|
2898
2895
|
class: Zt(A.field_name)
|
|
@@ -2994,16 +2991,16 @@ const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-6676f2
|
|
|
2994
2991
|
}
|
|
2995
2992
|
},
|
|
2996
2993
|
emits: ["update:modelValue"],
|
|
2997
|
-
setup(A, { emit:
|
|
2998
|
-
const G = A, _e =
|
|
2994
|
+
setup(A, { emit: se }) {
|
|
2995
|
+
const G = A, _e = se, ne = co(null), Z = pu({
|
|
2999
2996
|
get() {
|
|
3000
2997
|
return G.modelValue;
|
|
3001
2998
|
},
|
|
3002
|
-
set(
|
|
3003
|
-
_e("update:modelValue",
|
|
2999
|
+
set(Ce) {
|
|
3000
|
+
_e("update:modelValue", Ce);
|
|
3004
3001
|
}
|
|
3005
3002
|
});
|
|
3006
|
-
return (
|
|
3003
|
+
return (Ce, X) => (ue(), fe(jn, null, [
|
|
3007
3004
|
A.show ? (ue(), fe("div", {
|
|
3008
3005
|
key: 0,
|
|
3009
3006
|
class: Zt(A.field_name)
|
|
@@ -3169,10 +3166,10 @@ const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-6676f2
|
|
|
3169
3166
|
}
|
|
3170
3167
|
},
|
|
3171
3168
|
emits: ["update:modelValue", "selected", "selectionChanged"],
|
|
3172
|
-
setup(A, { emit:
|
|
3173
|
-
const G = A, _e =
|
|
3169
|
+
setup(A, { emit: se }) {
|
|
3170
|
+
const G = A, _e = se;
|
|
3174
3171
|
co(null);
|
|
3175
|
-
const ne = co({}), Z = co([]),
|
|
3172
|
+
const ne = co({}), Z = co([]), Ce = co(0), X = co(!1), $e = co(""), lt = co(""), yt = co(null), hn = co(0), Et = co(0), io = () => {
|
|
3176
3173
|
if (yt.value) {
|
|
3177
3174
|
hn.value = yt.value.offsetWidth;
|
|
3178
3175
|
var Xt = yt.value.getBoundingClientRect();
|
|
@@ -3221,7 +3218,7 @@ const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-6676f2
|
|
|
3221
3218
|
return Xt !== null && typeof Xt == "object" && Object.keys(Xt).length > 0;
|
|
3222
3219
|
}
|
|
3223
3220
|
function he(Xt) {
|
|
3224
|
-
Xt.target.id != G.field_name + "search" + lt.value && Xt.target.id != G.field_name && !Xt.target.classList.contains("showOptions") && (pe(),
|
|
3221
|
+
Xt.target.id != G.field_name + "search" + lt.value && Xt.target.id != G.field_name && !Xt.target.classList.contains("showOptions") && (pe(), Ce.value = 0, X.value = !1);
|
|
3225
3222
|
}
|
|
3226
3223
|
function kt(Xt) {
|
|
3227
3224
|
const Cn = `${Xt}${lt.value}`, Nt = document.getElementById(Cn);
|
|
@@ -3232,7 +3229,7 @@ const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-6676f2
|
|
|
3232
3229
|
Nt && Nt.click();
|
|
3233
3230
|
}
|
|
3234
3231
|
function oo(Xt) {
|
|
3235
|
-
Xt === "ArrowDown" &&
|
|
3232
|
+
Xt === "ArrowDown" && Ce.value < eo.value.length && (Ce.value++, kt(Ce.value)), Xt === "ArrowUp" && Ce.value > 1 && (Ce.value--, kt(Ce.value)), Xt === "Enter" && ia(Ce.value);
|
|
3236
3233
|
}
|
|
3237
3234
|
function ae() {
|
|
3238
3235
|
return G.options.map((Xt, Cn) => typeof Xt == "object" ? Xt : { id: Xt, name: Xt });
|
|
@@ -3383,7 +3380,7 @@ const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-6676f2
|
|
|
3383
3380
|
return ue(), fe("div", {
|
|
3384
3381
|
class: Zt([
|
|
3385
3382
|
"relative px-2 py-2 text-xs leading-4 text-gray-700 no-underline cursor-pointer dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white",
|
|
3386
|
-
Ht + 1 ==
|
|
3383
|
+
Ht + 1 == Ce.value ? "bg-gray-100 dark:bg-gray-600" : ""
|
|
3387
3384
|
]),
|
|
3388
3385
|
onClick: (Pe) => ss(ot),
|
|
3389
3386
|
onMousedown: (Pe) => ss(ot),
|
|
@@ -3456,12 +3453,12 @@ const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-6676f2
|
|
|
3456
3453
|
}
|
|
3457
3454
|
},
|
|
3458
3455
|
emits: ["update:modelValue", "keydown"],
|
|
3459
|
-
setup(A, { expose:
|
|
3456
|
+
setup(A, { expose: se, emit: G }) {
|
|
3460
3457
|
const _e = A, ne = G, Z = co(null);
|
|
3461
3458
|
Dg(() => {
|
|
3462
3459
|
Z.value !== null && Z.value.hasAttribute("autofocus") && Z.value.focus();
|
|
3463
3460
|
});
|
|
3464
|
-
const
|
|
3461
|
+
const Ce = pu({
|
|
3465
3462
|
get() {
|
|
3466
3463
|
return _e.modelValue;
|
|
3467
3464
|
},
|
|
@@ -3469,7 +3466,7 @@ const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-6676f2
|
|
|
3469
3466
|
ne("update:modelValue", X);
|
|
3470
3467
|
}
|
|
3471
3468
|
});
|
|
3472
|
-
return
|
|
3469
|
+
return se({ focus: () => Z.value.focus() }), (X, $e) => (ue(), fe(jn, null, [
|
|
3473
3470
|
A.show ? (ue(), fe("div", {
|
|
3474
3471
|
key: 0,
|
|
3475
3472
|
class: Zt(A.field_name)
|
|
@@ -3502,14 +3499,14 @@ const $ce = /* @__PURE__ */ zr(AJ, [["render", $Q], ["__scopeId", "data-v-6676f2
|
|
|
3502
3499
|
" gl-textarea-form-invalid mt-4 ": A.error_message !== ""
|
|
3503
3500
|
}),
|
|
3504
3501
|
type: A.type,
|
|
3505
|
-
"onUpdate:modelValue": $e[0] || ($e[0] = (lt) =>
|
|
3502
|
+
"onUpdate:modelValue": $e[0] || ($e[0] = (lt) => Ce.value = lt),
|
|
3506
3503
|
onKeydown: $e[1] || ($e[1] = (lt) => X.$emit("keydown", lt)),
|
|
3507
3504
|
ref_key: "input",
|
|
3508
3505
|
ref: Z,
|
|
3509
3506
|
rows: "4",
|
|
3510
3507
|
placeholder: A.placeholder
|
|
3511
3508
|
}, null, 42, Jee), [
|
|
3512
|
-
[_m,
|
|
3509
|
+
[_m, Ce.value]
|
|
3513
3510
|
]),
|
|
3514
3511
|
R("span", Qee, mt(A.error_message), 1),
|
|
3515
3512
|
R("small", ete, mt(A.description), 1)
|
|
@@ -3523,7 +3520,7 @@ function tte(A) {
|
|
|
3523
3520
|
var cq = { exports: {} };
|
|
3524
3521
|
(function(A) {
|
|
3525
3522
|
(function() {
|
|
3526
|
-
var
|
|
3523
|
+
var se = function(e) {
|
|
3527
3524
|
if (e === null)
|
|
3528
3525
|
return "null";
|
|
3529
3526
|
if (e === void 0)
|
|
@@ -3549,9 +3546,9 @@ var cq = { exports: {} };
|
|
|
3549
3546
|
});
|
|
3550
3547
|
}, Z = function(e) {
|
|
3551
3548
|
return { eq: e };
|
|
3552
|
-
},
|
|
3549
|
+
}, Ce = Z(function(e, n) {
|
|
3553
3550
|
return e === n;
|
|
3554
|
-
}), X =
|
|
3551
|
+
}), X = Ce, $e = function(e) {
|
|
3555
3552
|
return Z(function(n, o) {
|
|
3556
3553
|
if (n.length !== o.length)
|
|
3557
3554
|
return !1;
|
|
@@ -3579,7 +3576,7 @@ var cq = { exports: {} };
|
|
|
3579
3576
|
}, hn = Z(function(e, n) {
|
|
3580
3577
|
if (e === n)
|
|
3581
3578
|
return !0;
|
|
3582
|
-
var o =
|
|
3579
|
+
var o = se(e), r = se(n);
|
|
3583
3580
|
return o !== r ? !1 : G(o) ? e === n : o === "array" ? $e(hn).eq(e, n) : o === "object" ? yt(hn).eq(e, n) : !1;
|
|
3584
3581
|
});
|
|
3585
3582
|
const Et = Object.getPrototypeOf, io = (e, n, o) => {
|
|
@@ -4951,7 +4948,7 @@ var cq = { exports: {} };
|
|
|
4951
4948
|
}, ee = (we) => Promise.allSettled(Ke(we, (Se) => B(Se).then(ot(Se)))).then((Se) => {
|
|
4952
4949
|
const Be = qo(Se, (rt) => rt.status === "fulfilled");
|
|
4953
4950
|
return Be.fail.length > 0 ? Promise.reject(Ke(Be.fail, (rt) => rt.reason)) : Ke(Be.pass, (rt) => rt.value);
|
|
4954
|
-
}),
|
|
4951
|
+
}), oe = (we) => {
|
|
4955
4952
|
const ke = ct._addCacheSuffix(we);
|
|
4956
4953
|
Xo(r, ke).each((Se) => {
|
|
4957
4954
|
--Se.count === 0 && (delete r[ke], k(Se.id));
|
|
@@ -4961,7 +4958,7 @@ var cq = { exports: {} };
|
|
|
4961
4958
|
load: B,
|
|
4962
4959
|
loadRawCss: F,
|
|
4963
4960
|
loadAll: ee,
|
|
4964
|
-
unload:
|
|
4961
|
+
unload: oe,
|
|
4965
4962
|
unloadRawCss: (we) => {
|
|
4966
4963
|
Xo(r, we).each((ke) => {
|
|
4967
4964
|
--ke.count === 0 && (delete r[we], k(ke.id));
|
|
@@ -4969,7 +4966,7 @@ var cq = { exports: {} };
|
|
|
4969
4966
|
},
|
|
4970
4967
|
unloadAll: (we) => {
|
|
4971
4968
|
Te(we, (ke) => {
|
|
4972
|
-
|
|
4969
|
+
oe(ke);
|
|
4973
4970
|
});
|
|
4974
4971
|
},
|
|
4975
4972
|
_setReferrerPolicy: f,
|
|
@@ -5119,19 +5116,19 @@ var cq = { exports: {} };
|
|
|
5119
5116
|
}, f = (y, k = "", P = "") => {
|
|
5120
5117
|
const B = ml(P), F = ml(y);
|
|
5121
5118
|
let ee = F.length;
|
|
5122
|
-
const
|
|
5119
|
+
const oe = ml([
|
|
5123
5120
|
n,
|
|
5124
5121
|
k
|
|
5125
5122
|
].join(" "));
|
|
5126
5123
|
for (; ee--; )
|
|
5127
|
-
u(F[ee],
|
|
5124
|
+
u(F[ee], oe.slice(), B);
|
|
5128
5125
|
}, b = (y, k) => {
|
|
5129
5126
|
const P = ml(y), B = ml(k);
|
|
5130
5127
|
let F = P.length;
|
|
5131
5128
|
for (; F--; ) {
|
|
5132
5129
|
const ee = l[P[F]];
|
|
5133
|
-
for (let
|
|
5134
|
-
ee.attributes[B[
|
|
5130
|
+
for (let oe = 0, K = B.length; oe < K; oe++)
|
|
5131
|
+
ee.attributes[B[oe]] = {}, ee.attributesOrder.push(B[oe]);
|
|
5135
5132
|
}
|
|
5136
5133
|
};
|
|
5137
5134
|
return e !== "html5-strict" && (Te(ml("acronym applet basefont big font strike tt"), (P) => {
|
|
@@ -5270,7 +5267,7 @@ var cq = { exports: {} };
|
|
|
5270
5267
|
}
|
|
5271
5268
|
}, y = (n = e.schema) !== null && n !== void 0 ? n : "html5", k = N4(y);
|
|
5272
5269
|
e.verify_html === !1 && (e.valid_elements = "*[*]");
|
|
5273
|
-
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"),
|
|
5270
|
+
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"), re = b("boolean_attributes", "checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls allowfullscreen"), we = "td th iframe video audio object script code", ke = b("non_empty_elements", we + " pre svg", K), Se = b("move_caret_before_on_enter_elements", we + " table", K), Be = "h1 h2 h3 h4 h5 h6", rt = b("text_block_elements", Be + " p div address pre form blockquote center dir fieldset header footer article section hgroup aside main nav figure"), wt = b("block_elements", "hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup figcaption details summary html body multicol listing", rt), Ft = b("text_inline_elements", "span strong b em i font s strike u var cite dfn code mark q sup sub samp"), We = b("transparent_elements", "a ins del canvas map"), Ve = b("wrap_block_elements", "pre " + Be);
|
|
5274
5271
|
ud("script noscript iframe noframes noembed title style textarea xmp plaintext".split(" "), (Ln) => {
|
|
5275
5272
|
f[Ln] = new RegExp("</" + Ln + "[^>]*>", "gi");
|
|
5276
5273
|
});
|
|
@@ -5351,7 +5348,7 @@ var cq = { exports: {} };
|
|
|
5351
5348
|
}), e.invalid_elements && ud(iu(e.invalid_elements), (Ln) => {
|
|
5352
5349
|
o[Ln] && delete o[Ln];
|
|
5353
5350
|
}), qn("span") || st("span[!data-mce-type|*]");
|
|
5354
|
-
const gs = ot(P), Rs = ot(B), Hr = ot(F), Ml = ot(re), us = ot(wt), Tt = ot(rt), on = ot(Ft), Kn = ot(Object.seal(K)), mo = ot(
|
|
5351
|
+
const gs = ot(P), Rs = ot(B), Hr = ot(F), Ml = ot(re), us = ot(wt), Tt = ot(rt), on = ot(Ft), Kn = ot(Object.seal(K)), mo = ot(oe), Qt = ot(ke), $n = ot(Se), Ct = ot(ee), Mn = ot(We), Oo = ot(Ve), Ss = ot(Object.seal(f)), hs = (Ln, Io) => {
|
|
5355
5352
|
const $s = r[Ln.toLowerCase()];
|
|
5356
5353
|
return !!($s && $s[Io.toLowerCase()]);
|
|
5357
5354
|
}, Ha = (Ln, Io) => {
|
|
@@ -5435,7 +5432,7 @@ var cq = { exports: {} };
|
|
|
5435
5432
|
parse: (B) => {
|
|
5436
5433
|
const F = {};
|
|
5437
5434
|
let ee = !1;
|
|
5438
|
-
const
|
|
5435
|
+
const oe = e.url_converter, K = e.url_converter_scope || P, re = (We, Ve, st) => {
|
|
5439
5436
|
const Kt = F[We + "-top" + Ve];
|
|
5440
5437
|
if (!Kt)
|
|
5441
5438
|
return;
|
|
@@ -5478,7 +5475,7 @@ var cq = { exports: {} };
|
|
|
5478
5475
|
if (/(java|vb)script:/i.test(qn) || !e.allow_svg_data_urls && /^data:image\/svg/i.test(qn))
|
|
5479
5476
|
return "";
|
|
5480
5477
|
}
|
|
5481
|
-
return
|
|
5478
|
+
return oe && (Ve = oe.call(K, Ve, "style")), "url('" + Ve.replace(/\'/g, "\\'") + "')";
|
|
5482
5479
|
};
|
|
5483
5480
|
if (B) {
|
|
5484
5481
|
B = B.replace(/[\u0000-\u001F]/g, ""), B = B.replace(/\\[\"\';:\uFEFF]/g, Se).replace(/\"[^\"]+\"|\'[^\']+\'/g, (Ve) => Ve.replace(/[;:]/g, Se));
|
|
@@ -5500,7 +5497,7 @@ var cq = { exports: {} };
|
|
|
5500
5497
|
},
|
|
5501
5498
|
serialize: (B, F) => {
|
|
5502
5499
|
let ee = "";
|
|
5503
|
-
const
|
|
5500
|
+
const oe = (re, we) => {
|
|
5504
5501
|
const ke = we[re];
|
|
5505
5502
|
if (ke)
|
|
5506
5503
|
for (let Se = 0, Be = ke.length; Se < Be; Se++) {
|
|
@@ -5513,7 +5510,7 @@ var cq = { exports: {} };
|
|
|
5513
5510
|
let ke = b["*"];
|
|
5514
5511
|
return ke && ke[re] ? !1 : (ke = b[we], !(ke && ke[re]));
|
|
5515
5512
|
};
|
|
5516
|
-
return F && f ? (
|
|
5513
|
+
return F && f ? (oe("*", f), oe(F, f)) : bt(B, (re, we) => {
|
|
5517
5514
|
re && K(we, F) && (ee += (ee.length > 0 ? " " : "") + we + ": " + re + ";");
|
|
5518
5515
|
}), ee;
|
|
5519
5516
|
}
|
|
@@ -5582,12 +5579,12 @@ var cq = { exports: {} };
|
|
|
5582
5579
|
const P = o.split(" ");
|
|
5583
5580
|
let B = P.length;
|
|
5584
5581
|
for (; B--; ) {
|
|
5585
|
-
let F = P[B], ee = y,
|
|
5582
|
+
let F = P[B], ee = y, oe = !1, K = !1;
|
|
5586
5583
|
if (F === "DOMContentLoaded" && (F = "ready"), u.domLoaded && F === "ready" && n.readyState === "complete") {
|
|
5587
5584
|
r.call(l, H0({ type: F }));
|
|
5588
5585
|
continue;
|
|
5589
5586
|
}
|
|
5590
|
-
!u.hasFocusIn && (F === "focusin" || F === "focusout") && (
|
|
5587
|
+
!u.hasFocusIn && (F === "focusin" || F === "focusout") && (oe = !0, K = F === "focusin" ? "focus" : "blur", ee = (re) => {
|
|
5591
5588
|
const we = H0(re || b.event);
|
|
5592
5589
|
we.type = we.type === "focus" ? "focusin" : "focusout", u.executeHandlers(we, k);
|
|
5593
5590
|
}), f = u.events[k][F], f ? F === "ready" && u.domLoaded ? r(H0({ type: F })) : f.push({
|
|
@@ -5596,7 +5593,7 @@ var cq = { exports: {} };
|
|
|
5596
5593
|
}) : (u.events[k][F] = f = [{
|
|
5597
5594
|
func: r,
|
|
5598
5595
|
scope: l
|
|
5599
|
-
}], f.fakeName = K, f.capture =
|
|
5596
|
+
}], f.fakeName = K, f.capture = oe, f.nativeHandler = ee, F === "ready" ? qy(n, ee, u) : Pb(n, K || F, ee, oe));
|
|
5600
5597
|
}
|
|
5601
5598
|
return n = f = null, r;
|
|
5602
5599
|
}
|
|
@@ -5616,8 +5613,8 @@ var cq = { exports: {} };
|
|
|
5616
5613
|
let P = k.length;
|
|
5617
5614
|
for (; P--; )
|
|
5618
5615
|
if (k[P].func === r) {
|
|
5619
|
-
const B = k.nativeHandler, F = k.fakeName, ee = k.capture,
|
|
5620
|
-
|
|
5616
|
+
const B = k.nativeHandler, F = k.fakeName, ee = k.capture, oe = k.slice(0, P).concat(k.slice(P + 1));
|
|
5617
|
+
oe.nativeHandler = B, oe.fakeName = F, oe.capture = ee, u[y] = oe;
|
|
5621
5618
|
}
|
|
5622
5619
|
}
|
|
5623
5620
|
(!r || k.length === 0) && (delete u[y], cp(n, k.fakeName || y, k.nativeHandler, k.capture));
|
|
@@ -5735,7 +5732,7 @@ var cq = { exports: {} };
|
|
|
5735
5732
|
url_converter: n.url_converter,
|
|
5736
5733
|
url_converter_scope: n.url_converter_scope,
|
|
5737
5734
|
force_hex_color: n.force_hex_color
|
|
5738
|
-
}, n.schema), F = n.ownEvents ? new ti() : ti.Event, ee = P.getBlockElements(),
|
|
5735
|
+
}, 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, re = (Ne) => {
|
|
5739
5736
|
const He = K(Ne);
|
|
5740
5737
|
return Ze(He) ? ie.fromDom(He) : null;
|
|
5741
5738
|
}, we = (Ne, He, St = "") => {
|
|
@@ -6066,7 +6063,7 @@ var cq = { exports: {} };
|
|
|
6066
6063
|
styles: B,
|
|
6067
6064
|
schema: P,
|
|
6068
6065
|
events: F,
|
|
6069
|
-
isBlock:
|
|
6066
|
+
isBlock: oe,
|
|
6070
6067
|
root: null,
|
|
6071
6068
|
clone: Be,
|
|
6072
6069
|
getRoot: rt,
|
|
@@ -6283,7 +6280,7 @@ var cq = { exports: {} };
|
|
|
6283
6280
|
const we = Mu.getCode(), ke = "," + (re || "") + ",";
|
|
6284
6281
|
!we || re && ke.indexOf("," + we + ",") === -1 || ra.ScriptLoader.add(n[K] + "/langs/" + we + ".js");
|
|
6285
6282
|
}, k = (K, re) => {
|
|
6286
|
-
Kl.languageLoad !== !1 && (u(K) ? y(K, re) :
|
|
6283
|
+
Kl.languageLoad !== !1 && (u(K) ? y(K, re) : oe(K, "loaded").then(() => y(K, re)));
|
|
6287
6284
|
}, P = (K, re) => (e.push(re), o[K] = { instance: re }, l(K, "added"), re), B = (K) => {
|
|
6288
6285
|
delete n[K], delete o[K];
|
|
6289
6286
|
}, F = (K, re) => he(re) ? he(K) ? {
|
|
@@ -6301,7 +6298,7 @@ var cq = { exports: {} };
|
|
|
6301
6298
|
we.indexOf("/") !== 0 && we.indexOf("://") === -1 && (we = Kl.baseURL + "/" + we), n[K] = we.substring(0, we.lastIndexOf("/"));
|
|
6302
6299
|
const ke = () => (l(K, "loaded"), Promise.resolve());
|
|
6303
6300
|
return o[K] ? ke() : ra.ScriptLoader.add(we).then(ke);
|
|
6304
|
-
},
|
|
6301
|
+
}, oe = (K, re = "added") => re === "added" && f(K) || re === "loaded" && u(K) ? Promise.resolve() : new Promise((we) => {
|
|
6305
6302
|
r.push({
|
|
6306
6303
|
name: K,
|
|
6307
6304
|
state: re,
|
|
@@ -6318,7 +6315,7 @@ var cq = { exports: {} };
|
|
|
6318
6315
|
remove: B,
|
|
6319
6316
|
createUrl: F,
|
|
6320
6317
|
load: ee,
|
|
6321
|
-
waitFor:
|
|
6318
|
+
waitFor: oe
|
|
6322
6319
|
};
|
|
6323
6320
|
};
|
|
6324
6321
|
Kl.languageLoad = !0, Kl.baseURL = "", Kl.PluginManager = Kl(), Kl.ThemeManager = Kl(), Kl.ModelManager = Kl();
|
|
@@ -6405,11 +6402,11 @@ var cq = { exports: {} };
|
|
|
6405
6402
|
}), l = (B, F) => {
|
|
6406
6403
|
u(B, (ee) => (F(ee), ee));
|
|
6407
6404
|
}, u = (B, F) => {
|
|
6408
|
-
const ee = o.get(),
|
|
6405
|
+
const ee = o.get(), oe = Xo(ee, B).getOrThunk(r), K = F(oe);
|
|
6409
6406
|
ee[B] = K, o.set(ee);
|
|
6410
6407
|
}, f = (B, F, ee) => {
|
|
6411
|
-
l(B, (
|
|
6412
|
-
Te(
|
|
6408
|
+
l(B, (oe) => {
|
|
6409
|
+
Te(oe.listeners, (K) => K(!0, B, {
|
|
6413
6410
|
uid: F,
|
|
6414
6411
|
nodes: Ke(ee, (re) => re.dom)
|
|
6415
6412
|
}));
|
|
@@ -6426,13 +6423,13 @@ var cq = { exports: {} };
|
|
|
6426
6423
|
const B = Ko(n.getNames());
|
|
6427
6424
|
Te(B, (F) => {
|
|
6428
6425
|
u(F, (ee) => {
|
|
6429
|
-
const
|
|
6426
|
+
const oe = ee.previous.get();
|
|
6430
6427
|
return Sr(e, z.some(F)).fold(() => {
|
|
6431
|
-
|
|
6428
|
+
oe.each((K) => {
|
|
6432
6429
|
b(F), ee.previous.clear(), y(K, !1);
|
|
6433
6430
|
});
|
|
6434
6431
|
}, ({ uid: K, name: re, elements: we }) => {
|
|
6435
|
-
ls(
|
|
6432
|
+
ls(oe, K) || (oe.each((ke) => y(ke, !1)), f(re, K, we), ee.previous.set(K), y(K, !0));
|
|
6436
6433
|
}), {
|
|
6437
6434
|
previous: ee.previous,
|
|
6438
6435
|
listeners: ee.listeners
|
|
@@ -6938,7 +6935,7 @@ var cq = { exports: {} };
|
|
|
6938
6935
|
if (n.length !== F.length)
|
|
6939
6936
|
throw new Error("Wrong number of arguments to match. Expected: " + n.join(",") + `
|
|
6940
6937
|
Actual: ` + F.join(","));
|
|
6941
|
-
if (!nr(n, (
|
|
6938
|
+
if (!nr(n, (oe) => qe(F, oe)))
|
|
6942
6939
|
throw new Error("Not all branches were specified when using match. Specified: " + F.join(", ") + `
|
|
6943
6940
|
Required: ` + n.join(", "));
|
|
6944
6941
|
return B[f].apply(null, y);
|
|
@@ -8162,8 +8159,8 @@ Required: ` + n.join(", "));
|
|
|
8162
8159
|
}, Dl = (e, n, o) => mu(e, n, o, (r) => hv(r) || Hp(r)), Iu = (e, n, o) => mu(e, n, o, tg), $c = (e, n, o, r, l, u) => {
|
|
8163
8160
|
let f;
|
|
8164
8161
|
const b = e.getParent(o, e.isBlock) || n, y = (P, B, F) => {
|
|
8165
|
-
const ee = zf(e),
|
|
8166
|
-
return z.from(
|
|
8162
|
+
const ee = zf(e), oe = l ? ee.backwards : ee.forwards;
|
|
8163
|
+
return z.from(oe(P, B, (K, re) => Wp(K.parentNode) ? -1 : (f = K, F(l, K, re)), b));
|
|
8167
8164
|
};
|
|
8168
8165
|
return y(o, r, Dl).bind((P) => u ? y(P.container, P.offset + (l ? -1 : 0), Iu) : z.some(P)).orThunk(() => f ? z.some({
|
|
8169
8166
|
container: f,
|
|
@@ -8255,10 +8252,10 @@ Required: ` + n.join(", "));
|
|
|
8255
8252
|
return B(u, F, !0);
|
|
8256
8253
|
if (e.isChildOf(b, u))
|
|
8257
8254
|
return B(b, F);
|
|
8258
|
-
const ee = P(u, F) || u,
|
|
8255
|
+
const ee = P(u, F) || u, oe = P(b, F) || b;
|
|
8259
8256
|
B(u, ee, !0);
|
|
8260
|
-
const K = k(ee === u ? ee : ee.nextSibling, "nextSibling",
|
|
8261
|
-
K.length && o(y(K)), B(b,
|
|
8257
|
+
const K = k(ee === u ? ee : ee.nextSibling, "nextSibling", oe === b ? oe.nextSibling : oe);
|
|
8258
|
+
K.length && o(y(K)), B(b, oe);
|
|
8262
8259
|
}, ew = [
|
|
8263
8260
|
'pre[class*=language-][contenteditable="false"]',
|
|
8264
8261
|
"figure.image",
|
|
@@ -8289,34 +8286,34 @@ Required: ` + n.join(", "));
|
|
|
8289
8286
|
const f = [], b = sf(e.getDoc(), o, u, r, l), y = Vf(), k = () => {
|
|
8290
8287
|
y.clear();
|
|
8291
8288
|
}, P = () => y.get().getOrThunk(() => {
|
|
8292
|
-
const
|
|
8293
|
-
return f.push(
|
|
8294
|
-
}), B = (
|
|
8295
|
-
Te(
|
|
8296
|
-
}, F = (
|
|
8297
|
-
switch (b_(e,
|
|
8289
|
+
const oe = ni(b);
|
|
8290
|
+
return f.push(oe), y.set(oe), oe;
|
|
8291
|
+
}), B = (oe) => {
|
|
8292
|
+
Te(oe, F);
|
|
8293
|
+
}, F = (oe) => {
|
|
8294
|
+
switch (b_(e, oe, "span", bo(oe))) {
|
|
8298
8295
|
case "invalid-child": {
|
|
8299
8296
|
k();
|
|
8300
|
-
const re = $r(
|
|
8297
|
+
const re = $r(oe);
|
|
8301
8298
|
B(re), k();
|
|
8302
8299
|
break;
|
|
8303
8300
|
}
|
|
8304
8301
|
case "valid-block": {
|
|
8305
|
-
k(), Tv(
|
|
8302
|
+
k(), Tv(oe, o, u, r, l, !0);
|
|
8306
8303
|
break;
|
|
8307
8304
|
}
|
|
8308
8305
|
case "valid": {
|
|
8309
8306
|
const re = P();
|
|
8310
|
-
zg(
|
|
8307
|
+
zg(oe, re);
|
|
8311
8308
|
break;
|
|
8312
8309
|
}
|
|
8313
8310
|
}
|
|
8314
|
-
}, ee = (
|
|
8315
|
-
const K = Ke(
|
|
8311
|
+
}, ee = (oe) => {
|
|
8312
|
+
const K = Ke(oe, ie.fromDom);
|
|
8316
8313
|
B(K);
|
|
8317
8314
|
};
|
|
8318
|
-
return S1(e.dom, n, (
|
|
8319
|
-
k(), ee(
|
|
8315
|
+
return S1(e.dom, n, (oe) => {
|
|
8316
|
+
k(), ee(oe);
|
|
8320
8317
|
}), f;
|
|
8321
8318
|
}, nw = (e, n, o, r) => {
|
|
8322
8319
|
e.undoManager.transact(() => {
|
|
@@ -8471,7 +8468,7 @@ Required: ` + n.join(", "));
|
|
|
8471
8468
|
]
|
|
8472
8469
|
}, wO = (e) => e.type === "longpress" || e.type.indexOf("touch") === 0, xO = (e, n) => {
|
|
8473
8470
|
const o = n.dom, r = n.getDoc(), l = document, u = n.getBody();
|
|
8474
|
-
let f, b, y, k, P, B, F, ee,
|
|
8471
|
+
let f, b, y, k, P, B, F, ee, oe, K, re, we, ke, Se, Be, rt, wt;
|
|
8475
8472
|
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) => {
|
|
8476
8473
|
if (wO(Ct)) {
|
|
8477
8474
|
const Oo = Ct.touches[0];
|
|
@@ -8502,7 +8499,7 @@ Required: ` + n.join(", "));
|
|
|
8502
8499
|
left: hs,
|
|
8503
8500
|
top: Ha,
|
|
8504
8501
|
display: "block"
|
|
8505
|
-
}), 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",
|
|
8502
|
+
}), 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 + (re - Be)), Mn = u.scrollWidth - rt, Oo = u.scrollHeight - wt, Mn + Oo !== 0 && o.setStyles(y, {
|
|
8506
8503
|
left: hs - Mn,
|
|
8507
8504
|
top: Ha - Oo
|
|
8508
8505
|
}), ke || (lw(n, f, K, re, "corner-" + k.name), ke = !0);
|
|
@@ -9555,15 +9552,15 @@ Required: ` + n.join(", "));
|
|
|
9555
9552
|
const B = y.name, F = B in n.getVoidElements();
|
|
9556
9553
|
let ee = y.attributes;
|
|
9557
9554
|
if (u && ee && ee.length > 1) {
|
|
9558
|
-
const
|
|
9559
|
-
|
|
9555
|
+
const oe = [];
|
|
9556
|
+
oe.map = {};
|
|
9560
9557
|
const K = n.getElementRule(y.name);
|
|
9561
9558
|
if (K) {
|
|
9562
9559
|
for (let re = 0, we = K.attributesOrder.length; re < we; re++) {
|
|
9563
9560
|
const ke = K.attributesOrder[re];
|
|
9564
9561
|
if (ke in ee.map) {
|
|
9565
9562
|
const Se = ee.map[ke];
|
|
9566
|
-
|
|
9563
|
+
oe.map[ke] = Se, oe.push({
|
|
9567
9564
|
name: ke,
|
|
9568
9565
|
value: Se
|
|
9569
9566
|
});
|
|
@@ -9571,28 +9568,28 @@ Required: ` + n.join(", "));
|
|
|
9571
9568
|
}
|
|
9572
9569
|
for (let re = 0, we = ee.length; re < we; re++) {
|
|
9573
9570
|
const ke = ee[re].name;
|
|
9574
|
-
if (!(ke in
|
|
9571
|
+
if (!(ke in oe.map)) {
|
|
9575
9572
|
const Se = ee.map[ke];
|
|
9576
|
-
|
|
9573
|
+
oe.map[ke] = Se, oe.push({
|
|
9577
9574
|
name: ke,
|
|
9578
9575
|
value: Se
|
|
9579
9576
|
});
|
|
9580
9577
|
}
|
|
9581
9578
|
}
|
|
9582
|
-
ee =
|
|
9579
|
+
ee = oe;
|
|
9583
9580
|
}
|
|
9584
9581
|
}
|
|
9585
9582
|
if (o.start(B, ee, F), cd(B))
|
|
9586
9583
|
he(y.value) && o.text(y.value, !0), o.end(B);
|
|
9587
9584
|
else if (!F) {
|
|
9588
|
-
let
|
|
9589
|
-
if (
|
|
9590
|
-
(B === "pre" || B === "textarea") &&
|
|
9585
|
+
let oe = y.firstChild;
|
|
9586
|
+
if (oe) {
|
|
9587
|
+
(B === "pre" || B === "textarea") && oe.type === 3 && ((k = oe.value) === null || k === void 0 ? void 0 : k[0]) === `
|
|
9591
9588
|
` && o.text(`
|
|
9592
9589
|
`, !0);
|
|
9593
9590
|
do
|
|
9594
|
-
b(
|
|
9595
|
-
while (
|
|
9591
|
+
b(oe);
|
|
9592
|
+
while (oe = oe.next);
|
|
9596
9593
|
}
|
|
9597
9594
|
o.end(B);
|
|
9598
9595
|
}
|
|
@@ -10087,7 +10084,7 @@ Required: ` + n.join(", "));
|
|
|
10087
10084
|
const l = n.getTextBlockElements(), u = n.getNonEmptyElements(), f = n.getWhitespaceElements(), b = ct.makeMap("tr,td,th,tbody,thead,tfoot,table,summary"), y = /* @__PURE__ */ new Set(), k = (P) => P !== o && !b[P.name];
|
|
10088
10085
|
for (let P = 0; P < e.length; P++) {
|
|
10089
10086
|
const B = e[P];
|
|
10090
|
-
let F, ee,
|
|
10087
|
+
let F, ee, oe;
|
|
10091
10088
|
if (!B.parent || y.has(B))
|
|
10092
10089
|
continue;
|
|
10093
10090
|
if (l[B.name] && B.parent.name === "li") {
|
|
@@ -10109,12 +10106,12 @@ Required: ` + n.join(", "));
|
|
|
10109
10106
|
K.reverse(), ee = K[0].clone(), r(ee);
|
|
10110
10107
|
let re = ee;
|
|
10111
10108
|
for (let we = 0; we < K.length - 1; we++) {
|
|
10112
|
-
n.isValidChild(re.name, K[we].name) && we > 0 ? (
|
|
10109
|
+
n.isValidChild(re.name, K[we].name) && we > 0 ? (oe = K[we].clone(), r(oe), re.append(oe)) : oe = re;
|
|
10113
10110
|
for (let ke = K[we].firstChild; ke && ke !== K[we + 1]; ) {
|
|
10114
10111
|
const Se = ke.next;
|
|
10115
|
-
|
|
10112
|
+
oe.append(ke), ke = Se;
|
|
10116
10113
|
}
|
|
10117
|
-
re =
|
|
10114
|
+
re = oe;
|
|
10118
10115
|
}
|
|
10119
10116
|
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();
|
|
10120
10117
|
}
|
|
@@ -10197,7 +10194,7 @@ Required: ` + n.join(", "));
|
|
|
10197
10194
|
}), VR(e, o);
|
|
10198
10195
|
}, TI = (e, n, o, r) => (r.insertAfter(n.reverse(), e), cE(n[0], o)), iE = (e, n, o, r) => {
|
|
10199
10196
|
const l = rE(n, e, r), u = lg(n, o.startContainer), f = Pw(FR(l.firstChild)), b = 1, y = 2, k = n.getRoot(), P = (B) => {
|
|
10200
|
-
const F = Le.fromRangeStart(o), ee = hd(n.getRoot()),
|
|
10197
|
+
const F = Le.fromRangeStart(o), ee = hd(n.getRoot()), oe = B === b ? ee.prev(F) : ee.next(F), K = oe == null ? void 0 : oe.getNode();
|
|
10201
10198
|
return K ? lg(n, K) !== u : !0;
|
|
10202
10199
|
};
|
|
10203
10200
|
return u ? P(b) ? Vj(u, f, k) : P(y) ? TI(u, f, k, n) : kI(u, f, k, o) : null;
|
|
@@ -10268,8 +10265,8 @@ Required: ` + n.join(", "));
|
|
|
10268
10265
|
} else
|
|
10269
10266
|
k.setStartBefore(n), k.setEndBefore(n);
|
|
10270
10267
|
const B = (ee) => {
|
|
10271
|
-
let
|
|
10272
|
-
return
|
|
10268
|
+
let oe = Le.fromRangeStart(ee);
|
|
10269
|
+
return oe = hd(e.getBody()).next(oe), oe == null ? void 0 : oe.toRange();
|
|
10273
10270
|
}, F = f.getParent(n, f.isBlock);
|
|
10274
10271
|
if (f.remove(n), F && f.isEmpty(F)) {
|
|
10275
10272
|
const ee = Wv(F);
|
|
@@ -10296,14 +10293,14 @@ Required: ` + n.join(", "));
|
|
|
10296
10293
|
let B = u.getRng();
|
|
10297
10294
|
const F = B.startContainer, ee = e.getBody();
|
|
10298
10295
|
F === ee && u.isCollapsed() && f.isBlock(ee.firstChild) && WR(e, ee.firstChild) && f.isEmpty(ee.firstChild) && (B = f.createRng(), B.setStart(ee.firstChild, 0), B.setEnd(ee.firstChild, 0), u.setRng(B)), u.isCollapsed() || Bw(e);
|
|
10299
|
-
const
|
|
10300
|
-
context:
|
|
10296
|
+
const oe = u.getNode(), K = {
|
|
10297
|
+
context: oe.nodeName.toLowerCase(),
|
|
10301
10298
|
data: o.data,
|
|
10302
10299
|
insert: !0
|
|
10303
10300
|
}, re = b.parse(n, K);
|
|
10304
|
-
if (o.paste === !0 && sE(e.schema, re) && HR(f,
|
|
10301
|
+
if (o.paste === !0 && sE(e.schema, re) && HR(f, oe))
|
|
10305
10302
|
return B = iE(k, f, u.getRng(), re), B && u.setRng(B), n;
|
|
10306
|
-
o.paste === !0 && uE(f, re,
|
|
10303
|
+
o.paste === !0 && uE(f, re, oe, e.getBody()) && ((r = re.firstChild) === null || r === void 0 || r.unwrap()), UR(re);
|
|
10307
10304
|
let we = re.lastChild;
|
|
10308
10305
|
if (we && we.attr("id") === "mce_marker") {
|
|
10309
10306
|
const ke = we;
|
|
@@ -10313,8 +10310,8 @@ Required: ` + n.join(", "));
|
|
|
10313
10310
|
break;
|
|
10314
10311
|
}
|
|
10315
10312
|
}
|
|
10316
|
-
if (e._selectionOverrides.showBlockCaretContainer(
|
|
10317
|
-
n = k.serialize(re), EI(e, n,
|
|
10313
|
+
if (e._selectionOverrides.showBlockCaretContainer(oe), !K.invalid && !RI(f, oe, re))
|
|
10314
|
+
n = k.serialize(re), EI(e, n, oe);
|
|
10318
10315
|
else {
|
|
10319
10316
|
e.selection.setContent(P);
|
|
10320
10317
|
let ke = u.getNode(), Se;
|
|
@@ -10554,19 +10551,19 @@ Required: ` + n.join(", "));
|
|
|
10554
10551
|
}
|
|
10555
10552
|
if (ee)
|
|
10556
10553
|
if (f) {
|
|
10557
|
-
const
|
|
10554
|
+
const oe = u.getBookmark();
|
|
10558
10555
|
y.collapse(!0);
|
|
10559
10556
|
let K = of(l, y, b, !0);
|
|
10560
|
-
K = L(K), e.formatter.remove(n, o, K, r), u.moveToBookmark(
|
|
10557
|
+
K = L(K), e.formatter.remove(n, o, K, r), u.moveToBookmark(oe);
|
|
10561
10558
|
} else {
|
|
10562
|
-
const
|
|
10563
|
-
uS(e, re,
|
|
10559
|
+
const oe = hh(e.getBody(), ee), K = Ze(oe) ? l.getParents(ee.parentNode, pt, oe) : [], re = vE(!1).dom;
|
|
10560
|
+
uS(e, re, oe ?? ee);
|
|
10564
10561
|
const we = NI(e, re, ee, n, o, r), ke = dS([
|
|
10565
10562
|
...F,
|
|
10566
10563
|
...we.toArray(),
|
|
10567
10564
|
...K
|
|
10568
10565
|
], re);
|
|
10569
|
-
|
|
10566
|
+
oe && yE(e, oe, Ze(oe)), u.setCursorLocation(ke, 1), l.isEmpty(ee) && l.remove(ee);
|
|
10570
10567
|
}
|
|
10571
10568
|
}, CE = (e, n, o) => {
|
|
10572
10569
|
const r = e.selection, l = e.getBody();
|
|
@@ -10750,9 +10747,9 @@ Required: ` + n.join(", "));
|
|
|
10750
10747
|
DE(u, y, n, o, l), Fw(n.attributes, (B, F) => {
|
|
10751
10748
|
const {
|
|
10752
10749
|
name: ee,
|
|
10753
|
-
value:
|
|
10750
|
+
value: oe
|
|
10754
10751
|
} = Yv(F, B, o);
|
|
10755
|
-
if (n.remove_similar || ae(
|
|
10752
|
+
if (n.remove_similar || ae(oe) || !qt(l) || Kv(u.getAttrib(l, ee), oe)) {
|
|
10756
10753
|
if (ee === "class") {
|
|
10757
10754
|
const K = u.getAttrib(y, ee);
|
|
10758
10755
|
if (K) {
|
|
@@ -10796,8 +10793,8 @@ Required: ` + n.join(", "));
|
|
|
10796
10793
|
const F = e.dom;
|
|
10797
10794
|
if (o) {
|
|
10798
10795
|
const ee = o.parentNode;
|
|
10799
|
-
for (let
|
|
10800
|
-
let K = F.clone(
|
|
10796
|
+
for (let oe = r.parentNode; oe && oe !== ee; oe = oe.parentNode) {
|
|
10797
|
+
let K = F.clone(oe, !1);
|
|
10801
10798
|
for (let re = 0; re < n.length && (K = g$(e, n[re], b, K), K !== null); re++)
|
|
10802
10799
|
;
|
|
10803
10800
|
K && (P && K.appendChild(P), B || (B = K), P = K);
|
|
@@ -10833,7 +10830,7 @@ Required: ` + n.join(", "));
|
|
|
10833
10830
|
return P(we) && (we = we[K ? "firstChild" : "lastChild"]), ut(we) && we.data.length === 0 && (we = K ? re.previousSibling || re.nextSibling : re.nextSibling || re.previousSibling), b.remove(re, !0), we;
|
|
10834
10831
|
} else
|
|
10835
10832
|
return null;
|
|
10836
|
-
},
|
|
10833
|
+
}, oe = (K) => {
|
|
10837
10834
|
let re, we, ke = of(b, K, u, K.collapsed);
|
|
10838
10835
|
if (f.split) {
|
|
10839
10836
|
if (ke = L(ke), re = c$(e, ke, !0), we = c$(e, ke), re !== we) {
|
|
@@ -10877,13 +10874,13 @@ Required: ` + n.join(", "));
|
|
|
10877
10874
|
if (r) {
|
|
10878
10875
|
if (g1(r)) {
|
|
10879
10876
|
const K = b.createRng();
|
|
10880
|
-
K.setStartBefore(r), K.setEndAfter(r),
|
|
10877
|
+
K.setStartBefore(r), K.setEndAfter(r), oe(K);
|
|
10881
10878
|
} else
|
|
10882
|
-
|
|
10879
|
+
oe(r);
|
|
10883
10880
|
yh(e, n, r, o);
|
|
10884
10881
|
return;
|
|
10885
10882
|
}
|
|
10886
|
-
!y.isCollapsed() || !Jr(f) || Vp(e).length ? (h1(e, () => ng(e,
|
|
10883
|
+
!y.isCollapsed() || !Jr(f) || Vp(e).length ? (h1(e, () => ng(e, oe), (K) => Jr(f) && cS(e, n, o, K)), e.nodeChanged()) : QR(e, n, o, l), OE(e, n, o), yh(e, n, r, o);
|
|
10887
10884
|
}, h$ = (e, n, o, r, l) => {
|
|
10888
10885
|
(r || e.selection.isEditable()) && UI(e, n, o, r, l);
|
|
10889
10886
|
}, Hw = (e, n, o, r, l) => m$(e, n, o, r, l).fold(tt, (u) => (e.dom.rename(r, u), !0), pt), p$ = ct.each, WI = (e, n, o, r) => {
|
|
@@ -10929,41 +10926,41 @@ Required: ` + n.join(", "));
|
|
|
10929
10926
|
l && e.setAttrib(n, "data-mce-style", l);
|
|
10930
10927
|
}
|
|
10931
10928
|
}, v$ = (e, n, o, r) => {
|
|
10932
|
-
const l = e.formatter.get(n), u = l[0], f = !r && e.selection.isCollapsed(), b = e.dom, y = e.selection, k = (
|
|
10933
|
-
pe(K.onformat) && K.onformat(
|
|
10934
|
-
b.setAttrib(
|
|
10929
|
+
const l = e.formatter.get(n), u = l[0], f = !r && e.selection.isCollapsed(), b = e.dom, y = e.selection, k = (oe, K = u) => {
|
|
10930
|
+
pe(K.onformat) && K.onformat(oe, K, o, r), b$(b, oe, K, o), vS(K.attributes, (re, we) => {
|
|
10931
|
+
b.setAttrib(oe, we, bd(re, o));
|
|
10935
10932
|
}), vS(K.classes, (re) => {
|
|
10936
10933
|
const we = bd(re, o);
|
|
10937
|
-
b.hasClass(
|
|
10934
|
+
b.hasClass(oe, we) || b.addClass(oe, we);
|
|
10938
10935
|
});
|
|
10939
|
-
}, P = (
|
|
10936
|
+
}, P = (oe, K) => {
|
|
10940
10937
|
let re = !1;
|
|
10941
|
-
return vS(
|
|
10942
|
-
}, B = (
|
|
10943
|
-
if (he(
|
|
10944
|
-
const K = b.create(
|
|
10938
|
+
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), re = !0, !1) : !0 : !1), re;
|
|
10939
|
+
}, B = (oe) => {
|
|
10940
|
+
if (he(oe)) {
|
|
10941
|
+
const K = b.create(oe);
|
|
10945
10942
|
return k(K), K;
|
|
10946
10943
|
} else
|
|
10947
10944
|
return null;
|
|
10948
|
-
}, F = (
|
|
10945
|
+
}, F = (oe, K, re) => {
|
|
10949
10946
|
const we = [];
|
|
10950
10947
|
let ke = !0;
|
|
10951
10948
|
const Se = u.inline || u.block, Be = B(Se), rt = (We) => Cv(u) && cg(e, We, n, o), wt = (We, Ve, st) => {
|
|
10952
10949
|
const Kt = Up(u) && aa(e.schema, We) && nf(e, Ve, Se);
|
|
10953
10950
|
return st && Kt;
|
|
10954
10951
|
}, Ft = (We, Ve, st, Kt) => {
|
|
10955
|
-
const cn = We.nodeName.toLowerCase(), Jn = nf(e, Se, cn) && nf(e, Ve, Se), qn = !re && ut(We) && T(We.data), gs = Di(We), Rs = !Jr(u) || !
|
|
10952
|
+
const cn = We.nodeName.toLowerCase(), Jn = nf(e, Se, cn) && nf(e, Ve, Se), qn = !re && ut(We) && T(We.data), gs = Di(We), Rs = !Jr(u) || !oe.isBlock(We);
|
|
10956
10953
|
return (st || Kt) && Jn && !qn && !gs && Rs;
|
|
10957
10954
|
};
|
|
10958
|
-
S1(
|
|
10955
|
+
S1(oe, K, (We) => {
|
|
10959
10956
|
let Ve;
|
|
10960
10957
|
const st = (Kt) => {
|
|
10961
10958
|
let cn = !1, Jn = ke, qn = !1;
|
|
10962
|
-
const gs = Kt.parentNode, Rs = gs.nodeName.toLowerCase(), Hr =
|
|
10959
|
+
const gs = Kt.parentNode, Rs = gs.nodeName.toLowerCase(), Hr = oe.getContentEditable(Kt);
|
|
10963
10960
|
Ze(Hr) && (Jn = ke, ke = Hr === "true", cn = !0, qn = p1(e, Kt));
|
|
10964
10961
|
const Ml = ke && !cn;
|
|
10965
10962
|
if (cs(Kt) && !KI(e, u, Kt, Rs)) {
|
|
10966
|
-
Ve = null, vd(u) &&
|
|
10963
|
+
Ve = null, vd(u) && oe.remove(Kt);
|
|
10967
10964
|
return;
|
|
10968
10965
|
}
|
|
10969
10966
|
if (rt(Kt)) {
|
|
@@ -10971,7 +10968,7 @@ Required: ` + n.join(", "));
|
|
|
10971
10968
|
return;
|
|
10972
10969
|
}
|
|
10973
10970
|
if (wt(Kt, Rs, Ml)) {
|
|
10974
|
-
const us =
|
|
10971
|
+
const us = oe.rename(Kt, Se);
|
|
10975
10972
|
k(us), we.push(us), Ve = null;
|
|
10976
10973
|
return;
|
|
10977
10974
|
}
|
|
@@ -10982,7 +10979,7 @@ Required: ` + n.join(", "));
|
|
|
10982
10979
|
return;
|
|
10983
10980
|
}
|
|
10984
10981
|
}
|
|
10985
|
-
Ze(Be) && Ft(Kt, Rs, Ml, qn) ? (Ve || (Ve =
|
|
10982
|
+
Ze(Be) && Ft(Kt, Rs, Ml, qn) ? (Ve || (Ve = oe.clone(Be, !1), gs.insertBefore(Ve, Kt), we.push(Ve)), qn && cn && (ke = Jn), Ve.appendChild(Kt)) : (Ve = null, Te(wr(Kt.childNodes), st), cn && (ke = Jn), Ve = null);
|
|
10986
10983
|
};
|
|
10987
10984
|
Te(We, st);
|
|
10988
10985
|
}), u.links === !0 && Te(we, (We) => {
|
|
@@ -10996,15 +10993,15 @@ Required: ` + n.join(", "));
|
|
|
10996
10993
|
return Te(cn.childNodes, (qn) => {
|
|
10997
10994
|
!du(qn) && !Oi(qn) && Jn++;
|
|
10998
10995
|
}), Jn;
|
|
10999
|
-
}, st = (cn) => ps(cn.childNodes, X2).filter((qn) =>
|
|
11000
|
-
const gs =
|
|
11001
|
-
return k(gs),
|
|
10996
|
+
}, st = (cn) => ps(cn.childNodes, X2).filter((qn) => oe.getContentEditable(qn) !== "false" && Nw(oe, qn, u)).map((qn) => {
|
|
10997
|
+
const gs = oe.clone(qn, !1);
|
|
10998
|
+
return k(gs), oe.replace(gs, cn, !0), oe.remove(qn, !0), gs;
|
|
11002
10999
|
}).getOr(cn), Kt = Ve(We);
|
|
11003
|
-
if ((we.length > 1 || !
|
|
11004
|
-
|
|
11000
|
+
if ((we.length > 1 || !oe.isBlock(We)) && Kt === 0) {
|
|
11001
|
+
oe.remove(We, !0);
|
|
11005
11002
|
return;
|
|
11006
11003
|
}
|
|
11007
|
-
(Jr(u) || vd(u) && u.wrapper) && (!u.exact && Kt === 1 && (We = st(We)), GI(e, l, o, We), qI(e, u, n, o, We), ZI(
|
|
11004
|
+
(Jr(u) || vd(u) && u.wrapper) && (!u.exact && Kt === 1 && (We = st(We)), GI(e, l, o, We), qI(e, u, n, o, We), ZI(oe, u, o, We), WI(oe, u, o, We), jI(oe, u, o, We), hS(e, u, o, We));
|
|
11008
11005
|
});
|
|
11009
11006
|
}, ee = g1(r) ? r : y.getNode();
|
|
11010
11007
|
if (b.getContentEditable(ee) === "false" && !p1(e, ee)) {
|
|
@@ -11015,19 +11012,19 @@ Required: ` + n.join(", "));
|
|
|
11015
11012
|
if (r)
|
|
11016
11013
|
if (g1(r)) {
|
|
11017
11014
|
if (!P(l, r)) {
|
|
11018
|
-
const
|
|
11019
|
-
|
|
11015
|
+
const oe = b.createRng();
|
|
11016
|
+
oe.setStartBefore(r), oe.setEndAfter(r), F(b, of(b, oe, l), !0);
|
|
11020
11017
|
}
|
|
11021
11018
|
} else
|
|
11022
11019
|
F(b, r, !0);
|
|
11023
11020
|
else
|
|
11024
11021
|
!f || !Jr(u) || Vp(e).length ? (y.setRng(zv(y.getRng())), h1(e, () => {
|
|
11025
|
-
ng(e, (
|
|
11026
|
-
const re = K ?
|
|
11022
|
+
ng(e, (oe, K) => {
|
|
11023
|
+
const re = K ? oe : of(b, oe, l);
|
|
11027
11024
|
F(b, re, !1);
|
|
11028
11025
|
});
|
|
11029
|
-
}, pt), e.nodeChanged()) : II(e, n, o), SE(e.formatter, n).each((
|
|
11030
|
-
Te(FI(e.selection), (K) => b$(b, K,
|
|
11026
|
+
}, pt), e.nodeChanged()) : II(e, n, o), SE(e.formatter, n).each((oe) => {
|
|
11027
|
+
Te(FI(e.selection), (K) => b$(b, K, oe, o));
|
|
11031
11028
|
});
|
|
11032
11029
|
_E(n, e);
|
|
11033
11030
|
}
|
|
@@ -11188,24 +11185,24 @@ Required: ` + n.join(", "));
|
|
|
11188
11185
|
for (let P = 0, B = r.length; P < B; P++) {
|
|
11189
11186
|
let F = r[P], ee = F.parent;
|
|
11190
11187
|
if (ee && k(ee) && F === ee.lastChild) {
|
|
11191
|
-
let
|
|
11192
|
-
for (;
|
|
11193
|
-
const K =
|
|
11194
|
-
if (K !== "span" ||
|
|
11188
|
+
let oe = F.prev;
|
|
11189
|
+
for (; oe; ) {
|
|
11190
|
+
const K = oe.name;
|
|
11191
|
+
if (K !== "span" || oe.attr("data-mce-type") !== "bookmark") {
|
|
11195
11192
|
K === "br" && (F = null);
|
|
11196
11193
|
break;
|
|
11197
11194
|
}
|
|
11198
|
-
|
|
11195
|
+
oe = oe.prev;
|
|
11199
11196
|
}
|
|
11200
11197
|
if (F && (F.remove(), Vv(o, b, y, ee))) {
|
|
11201
11198
|
const K = o.getElementRule(ee.name);
|
|
11202
11199
|
K && (K.removeEmpty ? ee.remove() : K.paddEmpty && eS(e, u, k, ee));
|
|
11203
11200
|
}
|
|
11204
11201
|
} else {
|
|
11205
|
-
let
|
|
11206
|
-
for (; ee && ee.firstChild ===
|
|
11202
|
+
let oe = F;
|
|
11203
|
+
for (; ee && ee.firstChild === oe && ee.lastChild === oe && (oe = ee, !f[ee.name]); )
|
|
11207
11204
|
ee = ee.parent;
|
|
11208
|
-
if (
|
|
11205
|
+
if (oe === ee) {
|
|
11209
11206
|
const K = new Pc("#text", 3);
|
|
11210
11207
|
K.value = Bo, F.replace(K);
|
|
11211
11208
|
}
|
|
@@ -11328,8 +11325,8 @@ Required: ` + n.join(", "));
|
|
|
11328
11325
|
let P = "";
|
|
11329
11326
|
for (let B = 0; B < k.length; B++) {
|
|
11330
11327
|
const F = k[B];
|
|
11331
|
-
let ee = !1,
|
|
11332
|
-
|
|
11328
|
+
let ee = !1, oe = r["*"];
|
|
11329
|
+
oe && oe[F] && (ee = !0), oe = r[b.name], !ee && oe && oe[F] && (ee = !0), ee && (P && (P += " "), P += F);
|
|
11333
11330
|
}
|
|
11334
11331
|
P.length || (P = null), b.attr("class", P);
|
|
11335
11332
|
}
|
|
@@ -12049,7 +12046,7 @@ Required: ` + n.join(", "));
|
|
|
12049
12046
|
return n.isSupported = !1, n;
|
|
12050
12047
|
const o = e.document, r = o.currentScript;
|
|
12051
12048
|
let { document: l } = e;
|
|
12052
|
-
const { DocumentFragment: u, HTMLTemplateElement: f, Node: b, Element: y, NodeFilter: k, NamedNodeMap: P = e.NamedNodeMap || e.MozNamedAttrMap, HTMLFormElement: B, DOMParser: F, trustedTypes: ee } = e,
|
|
12049
|
+
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"), re = CS(oe, "nextSibling"), we = CS(oe, "childNodes"), ke = CS(oe, "parentNode");
|
|
12053
12050
|
if (typeof f == "function") {
|
|
12054
12051
|
const ao = l.createElement("template");
|
|
12055
12052
|
ao.content && ao.content.ownerDocument && (l = ao.content.ownerDocument);
|
|
@@ -12613,9 +12610,9 @@ Required: ` + n.join(", "));
|
|
|
12613
12610
|
}
|
|
12614
12611
|
if (e.nodeType !== ac || B === "body")
|
|
12615
12612
|
return;
|
|
12616
|
-
const F = ie.fromDom(e), ee = Zr(F, ZE),
|
|
12617
|
-
if (!ee && he(
|
|
12618
|
-
|
|
12613
|
+
const F = ie.fromDom(e), ee = Zr(F, ZE), oe = Ga(F, "data-mce-bogus");
|
|
12614
|
+
if (!ee && he(oe)) {
|
|
12615
|
+
oe === "all" ? Eo(F) : cl(F);
|
|
12619
12616
|
return;
|
|
12620
12617
|
}
|
|
12621
12618
|
const K = o.getElementRule(B);
|
|
@@ -12719,8 +12716,8 @@ Required: ` + n.join(", "));
|
|
|
12719
12716
|
if (qt(k)) {
|
|
12720
12717
|
const B = k.attributes;
|
|
12721
12718
|
for (let F = 0, ee = B.length; F < ee; F++) {
|
|
12722
|
-
const
|
|
12723
|
-
P.attr(
|
|
12719
|
+
const oe = B[F];
|
|
12720
|
+
P.attr(oe.name, oe.value);
|
|
12724
12721
|
}
|
|
12725
12722
|
cd(P.name) && (r(k), P.value = k.innerHTML);
|
|
12726
12723
|
} else ut(k) ? (P.value = k.data, u && (P.raw = !0)) : (rd(k) || vb(k) || Hd(k)) && (P.value = k.data);
|
|
@@ -12753,16 +12750,16 @@ Required: ` + n.join(", "));
|
|
|
12753
12750
|
Se = Se.parent;
|
|
12754
12751
|
}
|
|
12755
12752
|
return !1;
|
|
12756
|
-
},
|
|
12753
|
+
}, oe = (ke) => ke.name in b || zm(n, ke) || cd(ke.name) && ke.parent === e, K = (ke, Se) => {
|
|
12757
12754
|
const Be = Se ? ke.prev : ke.next;
|
|
12758
|
-
return Ze(Be) || In(ke.parent) ? !1 :
|
|
12755
|
+
return Ze(Be) || In(ke.parent) ? !1 : oe(ke.parent) && (ke.parent !== e || r.isRootContent === !0);
|
|
12759
12756
|
};
|
|
12760
12757
|
return [
|
|
12761
12758
|
(ke) => {
|
|
12762
12759
|
var Se;
|
|
12763
12760
|
if (ke.type === 3 && !F(ke)) {
|
|
12764
12761
|
let Be = (Se = ke.value) !== null && Se !== void 0 ? Se : "";
|
|
12765
|
-
Be = Be.replace(k, " "), (nE(ke.prev,
|
|
12762
|
+
Be = Be.replace(k, " "), (nE(ke.prev, oe) || K(ke, !0)) && (Be = Be.replace(P, "")), Be.length === 0 ? ke.remove() : ke.value = Be;
|
|
12766
12763
|
}
|
|
12767
12764
|
},
|
|
12768
12765
|
(ke) => {
|
|
@@ -12771,11 +12768,11 @@ Required: ` + n.join(", "));
|
|
|
12771
12768
|
const Be = n.getElementRule(ke.name);
|
|
12772
12769
|
if (l && Be) {
|
|
12773
12770
|
const rt = Vv(n, u, f, ke);
|
|
12774
|
-
Be.paddInEmptyBlock && rt && ee(ke) ? eS(o, r,
|
|
12771
|
+
Be.paddInEmptyBlock && rt && ee(ke) ? eS(o, r, oe, ke) : Be.removeEmpty && rt ? oe(ke) ? ke.remove() : ke.unwrap() : Be.paddEmpty && (rt || MR(ke)) && eS(o, r, oe, ke);
|
|
12775
12772
|
}
|
|
12776
12773
|
} else if (ke.type === 3 && !F(ke)) {
|
|
12777
12774
|
let Be = (Se = ke.value) !== null && Se !== void 0 ? Se : "";
|
|
12778
|
-
(ke.next &&
|
|
12775
|
+
(ke.next && oe(ke.next) || K(ke, !1)) && (Be = Be.replace(B, "")), Be.length === 0 ? ke.remove() : ke.value = Be;
|
|
12779
12776
|
}
|
|
12780
12777
|
}
|
|
12781
12778
|
];
|
|
@@ -12792,7 +12789,7 @@ Required: ` + n.join(", "));
|
|
|
12792
12789
|
}, u = new DOMParser(), f = CL(l, n), b = (Se, Be, rt = "html") => {
|
|
12793
12790
|
const wt = rt === "xhtml" ? "application/xhtml+xml" : "text/html", Ft = pn(n.getSpecialElements(), Be.toLowerCase()), We = Ft ? `<${Be}>${Se}</${Be}>` : Se, Ve = rt === "xhtml" ? `<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>${We}</body></html>` : `<body>${We}</body>`, st = u.parseFromString(Ve, wt).body;
|
|
12794
12791
|
return f.sanitizeHtmlElement(st, wt), Ft ? st.firstChild : st;
|
|
12795
|
-
}, y = o.addFilter, k = o.getFilters, P = o.removeFilter, B = r.addFilter, F = r.getFilters, ee = r.removeFilter,
|
|
12792
|
+
}, y = o.addFilter, k = o.getFilters, P = o.removeFilter, B = r.addFilter, F = r.getFilters, ee = r.removeFilter, oe = (Se, Be) => {
|
|
12796
12793
|
oS(n, Se) && Be.push(Se);
|
|
12797
12794
|
}, K = (Se, Be) => {
|
|
12798
12795
|
const rt = he(Be.attr(ZE)), wt = Be.type === 1 && !pn(Se, Be.name) && !zm(n, Be) && !cd(Be.name);
|
|
@@ -12825,7 +12822,7 @@ Required: ` + n.join(", "));
|
|
|
12825
12822
|
M0(n, We);
|
|
12826
12823
|
const Ve = new Pc(Ft, 11);
|
|
12827
12824
|
jw(Ve, We, n.getSpecialElements(), f.sanitizeNamespaceElement), We.innerHTML = "";
|
|
12828
|
-
const [st, Kt] = _L(Ve, n, l, Be), cn = [], Jn = wt ? (Hr) =>
|
|
12825
|
+
const [st, Kt] = _L(Ve, n, l, Be), cn = [], Jn = wt ? (Hr) => oe(Hr, cn) : Nt, qn = {
|
|
12829
12826
|
nodes: {},
|
|
12830
12827
|
attributes: {}
|
|
12831
12828
|
}, gs = (Hr) => JT(k(), F(), Hr, qn);
|
|
@@ -13000,8 +12997,8 @@ Required: ` + n.join(", "));
|
|
|
13000
12997
|
if (F === -1)
|
|
13001
12998
|
return y;
|
|
13002
12999
|
{
|
|
13003
|
-
const ee = RS(B, F - 1),
|
|
13004
|
-
return (ee ? " " : "") + y + (
|
|
13000
|
+
const ee = RS(B, F - 1), oe = RS(B, F + y.length);
|
|
13001
|
+
return (ee ? " " : "") + y + (oe ? " " : "");
|
|
13005
13002
|
}
|
|
13006
13003
|
} else
|
|
13007
13004
|
return y;
|
|
@@ -13032,40 +13029,40 @@ Required: ` + n.join(", "));
|
|
|
13032
13029
|
start: P,
|
|
13033
13030
|
end: B,
|
|
13034
13031
|
diag: F
|
|
13035
|
-
}), f = (P, B, F, ee,
|
|
13032
|
+
}), f = (P, B, F, ee, oe) => {
|
|
13036
13033
|
const K = y(P, B, F, ee);
|
|
13037
13034
|
if (K === null || K.start === B && K.diag === B - ee || K.end === P && K.diag === P - F) {
|
|
13038
13035
|
let re = P, we = F;
|
|
13039
13036
|
for (; re < B || we < ee; )
|
|
13040
|
-
re < B && we < ee && e[re] === n[we] ? (
|
|
13037
|
+
re < B && we < ee && e[re] === n[we] ? (oe.push([
|
|
13041
13038
|
qw,
|
|
13042
13039
|
e[re]
|
|
13043
|
-
]), ++re, ++we) : B - P > ee - F ? (
|
|
13040
|
+
]), ++re, ++we) : B - P > ee - F ? (oe.push([
|
|
13044
13041
|
s5,
|
|
13045
13042
|
e[re]
|
|
13046
|
-
]), ++re) : (
|
|
13043
|
+
]), ++re) : (oe.push([
|
|
13047
13044
|
o5,
|
|
13048
13045
|
n[we]
|
|
13049
13046
|
]), ++we);
|
|
13050
13047
|
} else {
|
|
13051
|
-
f(P, K.start, F, K.start - K.diag,
|
|
13048
|
+
f(P, K.start, F, K.start - K.diag, oe);
|
|
13052
13049
|
for (let re = K.start; re < K.end; ++re)
|
|
13053
|
-
|
|
13050
|
+
oe.push([
|
|
13054
13051
|
qw,
|
|
13055
13052
|
e[re]
|
|
13056
13053
|
]);
|
|
13057
|
-
f(K.end, B, K.end - K.diag, ee,
|
|
13054
|
+
f(K.end, B, K.end - K.diag, ee, oe);
|
|
13058
13055
|
}
|
|
13059
13056
|
}, b = (P, B, F, ee) => {
|
|
13060
|
-
let
|
|
13061
|
-
for (;
|
|
13062
|
-
++
|
|
13063
|
-
return u(P,
|
|
13057
|
+
let oe = P;
|
|
13058
|
+
for (; oe - B < ee && oe < F && e[oe] === n[oe - B]; )
|
|
13059
|
+
++oe;
|
|
13060
|
+
return u(P, oe, B);
|
|
13064
13061
|
}, y = (P, B, F, ee) => {
|
|
13065
|
-
const
|
|
13066
|
-
if (
|
|
13062
|
+
const oe = B - P, K = ee - F;
|
|
13063
|
+
if (oe === 0 || K === 0)
|
|
13067
13064
|
return null;
|
|
13068
|
-
const re =
|
|
13065
|
+
const re = oe - K, we = K + oe, ke = (we % 2 === 0 ? we : we + 1) / 2;
|
|
13069
13066
|
r[1 + ke] = P, l[1 + ke] = B + 1;
|
|
13070
13067
|
let Se, Be, rt, wt, Ft;
|
|
13071
13068
|
for (Se = 0; Se <= ke; ++Se) {
|
|
@@ -13413,8 +13410,8 @@ Required: ` + n.join(", "));
|
|
|
13413
13410
|
const y = b.element, k = u(y), P = {};
|
|
13414
13411
|
bt(o, (B, F) => {
|
|
13415
13412
|
l(F, k).each((ee) => {
|
|
13416
|
-
r[F] || (Te(B, (
|
|
13417
|
-
|
|
13413
|
+
r[F] || (Te(B, (oe) => {
|
|
13414
|
+
oe(!0, {
|
|
13418
13415
|
node: ee,
|
|
13419
13416
|
selector: F,
|
|
13420
13417
|
parents: k
|
|
@@ -13447,7 +13444,7 @@ Required: ` + n.join(", "));
|
|
|
13447
13444
|
const { selectorChangedWithUnbind: f } = k6(e, r), b = (Tt, on) => {
|
|
13448
13445
|
const Kn = e.createRng();
|
|
13449
13446
|
Ze(Tt) && Ze(on) ? (Kn.setStart(Tt, on), Kn.setEnd(Tt, on), Be(Kn), we(!1)) : (Y2(e, Kn, r.getBody(), !0), Be(Kn));
|
|
13450
|
-
}, 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),
|
|
13447
|
+
}, 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 = () => {
|
|
13451
13448
|
const Tt = Se(), on = ke();
|
|
13452
13449
|
return !Tt || Tt.item ? !1 : Tt.compareEndPoints ? Tt.compareEndPoints("StartToEnd", Tt) === 0 : !on || Tt.collapsed;
|
|
13453
13450
|
}, re = () => {
|
|
@@ -13526,7 +13523,7 @@ Required: ` + n.join(", "));
|
|
|
13526
13523
|
setContent: k,
|
|
13527
13524
|
getBookmark: F,
|
|
13528
13525
|
moveToBookmark: ee,
|
|
13529
|
-
select:
|
|
13526
|
+
select: oe,
|
|
13530
13527
|
isCollapsed: K,
|
|
13531
13528
|
isEditable: re,
|
|
13532
13529
|
isForward: We,
|
|
@@ -13876,12 +13873,12 @@ Options:${f}${o.join(f)}` : "";
|
|
|
13876
13873
|
vr(n, (ee) => ee === F).each((ee) => {
|
|
13877
13874
|
n.splice(ee, 1);
|
|
13878
13875
|
});
|
|
13879
|
-
}, y = (F, ee = !0) => e.removed || !L6(e) ? {} : (ee && e.dispatch("BeforeOpenNotification", { notification: F }), ps(n, (
|
|
13876
|
+
}, y = (F, ee = !0) => e.removed || !L6(e) ? {} : (ee && e.dispatch("BeforeOpenNotification", { notification: F }), ps(n, (oe) => l(o().getArgs(oe), F)).getOrThunk(() => {
|
|
13880
13877
|
e.editorManager.setActive(e);
|
|
13881
|
-
const
|
|
13882
|
-
b(
|
|
13878
|
+
const oe = o().open(F, () => {
|
|
13879
|
+
b(oe), u(), $O(e) && r().fold(() => e.focus(), (K) => A_(ie.fromDom(K.getEl())));
|
|
13883
13880
|
});
|
|
13884
|
-
return f(
|
|
13881
|
+
return f(oe), u(), e.dispatch("OpenNotification", { notification: { ...oe } }), oe;
|
|
13885
13882
|
})), k = () => {
|
|
13886
13883
|
r().each((F) => {
|
|
13887
13884
|
o().close(F), b(F), u();
|
|
@@ -13943,7 +13940,7 @@ Options:${f}${o.join(f)}` : "";
|
|
|
13943
13940
|
}, ee = (K, re, we) => {
|
|
13944
13941
|
const ke = o();
|
|
13945
13942
|
ke.confirm(K, r(we || ke, re));
|
|
13946
|
-
},
|
|
13943
|
+
}, oe = () => {
|
|
13947
13944
|
y().each((K) => {
|
|
13948
13945
|
o().close(K), b(K);
|
|
13949
13946
|
});
|
|
@@ -13957,7 +13954,7 @@ Options:${f}${o.join(f)}` : "";
|
|
|
13957
13954
|
openUrl: B,
|
|
13958
13955
|
alert: F,
|
|
13959
13956
|
confirm: ee,
|
|
13960
|
-
close:
|
|
13957
|
+
close: oe
|
|
13961
13958
|
};
|
|
13962
13959
|
}, FF = (e, n) => {
|
|
13963
13960
|
e.notificationManager.open({
|
|
@@ -14067,11 +14064,11 @@ Options:${f}${o.join(f)}` : "";
|
|
|
14067
14064
|
"image/webp": "webp",
|
|
14068
14065
|
"image/bmp": "bmp",
|
|
14069
14066
|
"image/tiff": "tiff"
|
|
14070
|
-
})[B.toLowerCase()] || "dat", o = (B, F, ee,
|
|
14067
|
+
})[B.toLowerCase()] || "dat", o = (B, F, ee, oe, K) => {
|
|
14071
14068
|
if (he(B))
|
|
14072
14069
|
return r({
|
|
14073
14070
|
id: B,
|
|
14074
|
-
name:
|
|
14071
|
+
name: oe,
|
|
14075
14072
|
filename: K,
|
|
14076
14073
|
blob: F,
|
|
14077
14074
|
base64: ee
|
|
@@ -14082,14 +14079,14 @@ Options:${f}${o.join(f)}` : "";
|
|
|
14082
14079
|
}, r = (B) => {
|
|
14083
14080
|
if (!B.blob || !B.base64)
|
|
14084
14081
|
throw new Error("blob and base64 representations of the image are required for BlobInfo to be created");
|
|
14085
|
-
const F = B.id || VS("blobid"), ee = B.name || F,
|
|
14082
|
+
const F = B.id || VS("blobid"), ee = B.name || F, oe = B.blob;
|
|
14086
14083
|
return {
|
|
14087
14084
|
id: ot(F),
|
|
14088
14085
|
name: ot(ee),
|
|
14089
|
-
filename: ot(B.filename || ee + "." + n(
|
|
14090
|
-
blob: ot(
|
|
14086
|
+
filename: ot(B.filename || ee + "." + n(oe.type)),
|
|
14087
|
+
blob: ot(oe),
|
|
14091
14088
|
base64: ot(B.base64),
|
|
14092
|
-
blobUri: ot(B.blobUri || URL.createObjectURL(
|
|
14089
|
+
blobUri: ot(B.blobUri || URL.createObjectURL(oe)),
|
|
14093
14090
|
uri: ot(B.uri)
|
|
14094
14091
|
};
|
|
14095
14092
|
}, l = (B) => {
|
|
@@ -14234,9 +14231,9 @@ Options:${f}${o.join(f)}` : "";
|
|
|
14234
14231
|
});
|
|
14235
14232
|
}) : Ft && e.undoManager.dispatchChange(), We;
|
|
14236
14233
|
}));
|
|
14237
|
-
}))), ee = () => DC(e) ? F() : Promise.resolve([]),
|
|
14234
|
+
}))), ee = () => DC(e) ? F() : Promise.resolve([]), oe = (Se) => nr(u, (Be) => Be(Se)), K = (Se) => {
|
|
14238
14235
|
u.push(Se);
|
|
14239
|
-
}, re = () => (r || (r = qF(l, n)), r.findAll(e.getBody(),
|
|
14236
|
+
}, re = () => (r || (r = qF(l, n)), r.findAll(e.getBody(), oe).then(f((Se) => {
|
|
14240
14237
|
const Be = zt(Se, (rt) => he(rt) ? (FS(e, rt), !1) : rt.uriType !== "blob");
|
|
14241
14238
|
return Dh(e) || Te(Be, (rt) => {
|
|
14242
14239
|
P(rt.image.src, rt.blobInfo.blobUri()), rt.image.src = rt.blobInfo.blobUri(), rt.image.removeAttribute("data-mce-src");
|
|
@@ -14683,9 +14680,9 @@ Options:${f}${o.join(f)}` : "";
|
|
|
14683
14680
|
return B && B.length ? k && qe(B, k) ? k : B[0] : !1;
|
|
14684
14681
|
}, f = (y, k, P) => {
|
|
14685
14682
|
let B;
|
|
14686
|
-
const F = k[0], ee = ry(F) ? F.name : void 0,
|
|
14687
|
-
if (
|
|
14688
|
-
ee ===
|
|
14683
|
+
const F = k[0], ee = ry(F) ? F.name : void 0, oe = u(y, ee);
|
|
14684
|
+
if (oe)
|
|
14685
|
+
ee === oe ? (B = F, k = k.slice(1)) : B = oe;
|
|
14689
14686
|
else if (F)
|
|
14690
14687
|
B = F, k = k.slice(1);
|
|
14691
14688
|
else if (!P)
|
|
@@ -14755,11 +14752,11 @@ Options:${f}${o.join(f)}` : "";
|
|
|
14755
14752
|
y.length > 0 ? (y[0].name || (y[0].name = f), f = n.selector, b = ox(y, e)) : b = ox([f], e);
|
|
14756
14753
|
const k = bc.select(f, b)[0] || b.firstChild;
|
|
14757
14754
|
pg(n.styles, (F, ee) => {
|
|
14758
|
-
const
|
|
14759
|
-
|
|
14755
|
+
const oe = l(F);
|
|
14756
|
+
oe && bc.setStyle(k, ee, oe);
|
|
14760
14757
|
}), pg(n.attributes, (F, ee) => {
|
|
14761
|
-
const
|
|
14762
|
-
|
|
14758
|
+
const oe = l(F);
|
|
14759
|
+
oe && bc.setAttrib(k, ee, oe);
|
|
14763
14760
|
}), pg(n.classes, (F) => {
|
|
14764
14761
|
const ee = l(F);
|
|
14765
14762
|
bc.hasClass(k, ee) || bc.addClass(k, ee);
|
|
@@ -15302,11 +15299,11 @@ Options:${f}${o.join(f)}` : "";
|
|
|
15302
15299
|
let F = EM([B]);
|
|
15303
15300
|
e === -1 && (F = F.reverse());
|
|
15304
15301
|
for (let ee = 0; ee < F.length; ee++) {
|
|
15305
|
-
const
|
|
15306
|
-
if (!o(
|
|
15307
|
-
if (b.length > 0 && n(
|
|
15302
|
+
const oe = F[ee];
|
|
15303
|
+
if (!o(oe, k)) {
|
|
15304
|
+
if (b.length > 0 && n(oe, Or(b)) && f++, oe.line = f, l(oe))
|
|
15308
15305
|
return !0;
|
|
15309
|
-
b.push(
|
|
15306
|
+
b.push(oe);
|
|
15310
15307
|
}
|
|
15311
15308
|
}
|
|
15312
15309
|
return !1;
|
|
@@ -15340,9 +15337,9 @@ Options:${f}${o.join(f)}` : "";
|
|
|
15340
15337
|
}, sk = (e, n, o) => z.some(XS(e, n, o)), K5 = (e, n, o, r, l, u) => {
|
|
15341
15338
|
const f = n === Lr.Forwards, b = hd(e.getBody()), y = Pe(e_, f ? b.next : b.prev), k = f ? r : l;
|
|
15342
15339
|
if (!o.collapsed) {
|
|
15343
|
-
const
|
|
15344
|
-
if (u(
|
|
15345
|
-
return bg(n, e,
|
|
15340
|
+
const oe = Qy(o);
|
|
15341
|
+
if (u(oe))
|
|
15342
|
+
return bg(n, e, oe, n === Lr.Backwards, !1);
|
|
15346
15343
|
if (I5(e)) {
|
|
15347
15344
|
const K = o.cloneRange();
|
|
15348
15345
|
return K.collapse(n === Lr.Backwards), z.from(K);
|
|
@@ -15369,10 +15366,10 @@ Options:${f}${o.join(f)}` : "";
|
|
|
15369
15366
|
const re = y ? Le.fromRangeEnd(o) : Le.fromRangeStart(o);
|
|
15370
15367
|
return (y ? q9 : G9)(k, re).orThunk(() => z.from(re)).map((ke) => ke.toRange());
|
|
15371
15368
|
}
|
|
15372
|
-
const B = (y ? DM : AM)(k, uy(1), f), F = zt(B, dy(1)), ee = b.left,
|
|
15373
|
-
if (
|
|
15374
|
-
const re = Math.abs(ee -
|
|
15375
|
-
return bg(n, e,
|
|
15369
|
+
const B = (y ? DM : AM)(k, uy(1), f), F = zt(B, dy(1)), ee = b.left, oe = TM(F, ee);
|
|
15370
|
+
if (oe && u(oe.node)) {
|
|
15371
|
+
const re = Math.abs(ee - oe.left), we = Math.abs(ee - oe.right);
|
|
15372
|
+
return bg(n, e, oe.node, re < we, !1);
|
|
15376
15373
|
}
|
|
15377
15374
|
let K;
|
|
15378
15375
|
if (r(f) ? K = f.getNode() : l(f) ? K = f.getNode(!0) : K = Qy(o), K) {
|
|
@@ -15641,7 +15638,7 @@ Options:${f}${o.join(f)}` : "";
|
|
|
15641
15638
|
const B = f.nodeName.toLowerCase();
|
|
15642
15639
|
if (!r.isValidChild(B, P.toLowerCase()) || _H(l, f, u))
|
|
15643
15640
|
return;
|
|
15644
|
-
const F = o.getRng(), { startContainer: ee, startOffset:
|
|
15641
|
+
const F = o.getRng(), { startContainer: ee, startOffset: oe, endContainer: K, endOffset: re } = F, we = Xp(e);
|
|
15645
15642
|
let ke = f.firstChild;
|
|
15646
15643
|
for (; ke; )
|
|
15647
15644
|
if (qt(ke) && Sb(r, ke), XM(r, ke)) {
|
|
@@ -15652,7 +15649,7 @@ Options:${f}${o.join(f)}` : "";
|
|
|
15652
15649
|
b || (b = JM(e), f.insertBefore(b, ke), k = !0), y = ke, ke = ke.nextSibling, b.appendChild(y);
|
|
15653
15650
|
} else
|
|
15654
15651
|
b = null, ke = ke.nextSibling;
|
|
15655
|
-
k && we && (F.setStart(ee,
|
|
15652
|
+
k && we && (F.setStart(ee, oe), F.setEnd(K, re), o.setRng(F), e.nodeChanged());
|
|
15656
15653
|
}, QM = (e, n, o) => {
|
|
15657
15654
|
const r = ie.fromDom(JM(e)), l = Gl();
|
|
15658
15655
|
_r(r, l), o(n, r);
|
|
@@ -16416,7 +16413,7 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
16416
16413
|
const { dom: r, selection: l } = e, u = e.getBody();
|
|
16417
16414
|
if (o === "character") {
|
|
16418
16415
|
const f = Le.fromRangeStart(l.getRng()), b = r.getParent(f.container(), r.isBlock), y = Ex(r, f), k = b && r.isEmpty(b), P = ae(b == null ? void 0 : b.previousSibling), B = ae(b == null ? void 0 : b.nextSibling);
|
|
16419
|
-
return k && (n ? B : P) && ef(!n, u, f).exists((
|
|
16416
|
+
return k && (n ? B : P) && ef(!n, u, f).exists((oe) => aP(r, oe) && !Za(y, Ex(r, oe))) ? !0 : ef(n, u, f).fold(tt, (F) => {
|
|
16420
16417
|
const ee = Ex(r, F);
|
|
16421
16418
|
if (aP(r, F) && !Za(y, ee)) {
|
|
16422
16419
|
if (n || UA(e, F, !1), b && k) {
|
|
@@ -16444,12 +16441,12 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
16444
16441
|
Ze(y) && Ze(k) && Ze(P) && Ze(B) && (b == null || b.setBaseAndExtent(y, k, P, B));
|
|
16445
16442
|
}, ee = () => {
|
|
16446
16443
|
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;
|
|
16447
|
-
},
|
|
16444
|
+
}, oe = (re, we) => {
|
|
16448
16445
|
Te(re.childNodes, (ke) => {
|
|
16449
16446
|
g1(ke) && we.appendChild(ke);
|
|
16450
16447
|
});
|
|
16451
16448
|
}, K = e.dom.create("span", { "data-mce-bogus": "1" });
|
|
16452
|
-
|
|
16449
|
+
oe(l, K), l.appendChild(K), F(), (o === "word" || o === "line") && (b == null || b.modify("extend", n ? "right" : "left", o)), !r.isCollapsed() && rP(r.getRng(), K) ? VA(l) : (e.execCommand(n ? "ForwardDelete" : "Delete"), ee(), oe(K, l), F()), e.dom.remove(K);
|
|
16453
16450
|
}), !0) : !1;
|
|
16454
16451
|
}, g0 = (e, n, o) => XV(e, n, o) || HA && kk(e, n, o) ? z.some(Nt) : z.none(), WA = (e) => (n, o, r = {}) => {
|
|
16455
16452
|
const l = n.getBody(), u = {
|
|
@@ -16716,7 +16713,7 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
16716
16713
|
const F = y.getTextInlineElements();
|
|
16717
16714
|
let ee;
|
|
16718
16715
|
u || P === "TABLE" || P === "HR" ? ee = b.create(u || k, f || {}) : ee = o.cloneNode(!1);
|
|
16719
|
-
let
|
|
16716
|
+
let oe = ee;
|
|
16720
16717
|
if (!l)
|
|
16721
16718
|
b.setAttrib(ee, "style", null), b.setAttrib(ee, "class", null);
|
|
16722
16719
|
else
|
|
@@ -16725,10 +16722,10 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
16725
16722
|
if (Di(B) || Oi(B))
|
|
16726
16723
|
continue;
|
|
16727
16724
|
const K = B.cloneNode(!1);
|
|
16728
|
-
b.setAttrib(K, "id", ""), ee.hasChildNodes() ? (K.appendChild(ee.firstChild), ee.appendChild(K)) : (
|
|
16725
|
+
b.setAttrib(K, "id", ""), ee.hasChildNodes() ? (K.appendChild(ee.firstChild), ee.appendChild(K)) : (oe = K, ee.appendChild(K));
|
|
16729
16726
|
}
|
|
16730
16727
|
while ((B = B.parentNode) && B !== r);
|
|
16731
|
-
return X1(e, ee), ZA(
|
|
16728
|
+
return X1(e, ee), ZA(oe), ee;
|
|
16732
16729
|
}, mP = (e, n) => e.dom.getParent(n, nt), sz = (e, n, o) => {
|
|
16733
16730
|
let r = n;
|
|
16734
16731
|
for (; r && r !== e && ae(r.nextSibling); ) {
|
|
@@ -16833,10 +16830,10 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
16833
16830
|
B = P, P = P.previousSibling;
|
|
16834
16831
|
const F = (f = B == null ? void 0 : B.parentElement) === null || f === void 0 ? void 0 : f.nodeName;
|
|
16835
16832
|
if (B && F && e.schema.isValidChild(F, n.toLowerCase())) {
|
|
16836
|
-
const ee = B.parentNode,
|
|
16837
|
-
for (X1(e,
|
|
16833
|
+
const ee = B.parentNode, oe = b.create(n);
|
|
16834
|
+
for (X1(e, oe), ee.insertBefore(oe, B), P = B; P && !b.isBlock(P); ) {
|
|
16838
16835
|
const K = P.nextSibling;
|
|
16839
|
-
|
|
16836
|
+
oe.appendChild(P), P = K;
|
|
16840
16837
|
}
|
|
16841
16838
|
o.setStart(r, l), o.setEnd(r, l);
|
|
16842
16839
|
}
|
|
@@ -16852,7 +16849,7 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
16852
16849
|
}, bP = {
|
|
16853
16850
|
insert: (e, n) => {
|
|
16854
16851
|
let o, r, l, u, f = !1;
|
|
16855
|
-
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),
|
|
16852
|
+
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, re = (st, Kt) => jA(e, o, wt, rt, a3(e), st, Kt), we = (st) => {
|
|
16856
16853
|
const Kt = XA(st, o, r);
|
|
16857
16854
|
if (ut(o) && (st ? Kt > 0 : Kt < o.data.length))
|
|
16858
16855
|
return !1;
|
|
@@ -17750,10 +17747,10 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
17750
17747
|
const u = e.dom, f = e.selection.getNode();
|
|
17751
17748
|
n = n.replace(/(<[^>]+) style="([^"]*)"([^>]*>)/gi, (b, y, k, P) => {
|
|
17752
17749
|
const B = u.parseStyle(u.decode(k)), F = {};
|
|
17753
|
-
for (let
|
|
17754
|
-
const K = B[l[
|
|
17755
|
-
let re = K, we = u.getStyle(f, l[
|
|
17756
|
-
/color/.test(l[
|
|
17750
|
+
for (let oe = 0; oe < l.length; oe++) {
|
|
17751
|
+
const K = B[l[oe]];
|
|
17752
|
+
let re = K, we = u.getStyle(f, l[oe], !0);
|
|
17753
|
+
/color/.test(l[oe]) && (re = uB(re), we = uB(we)), we !== re && (F[l[oe]] = K);
|
|
17757
17754
|
}
|
|
17758
17755
|
const ee = u.serializeStyle(F, "span");
|
|
17759
17756
|
return ee ? y + ' style="' + ee + '"' + P : y + P;
|
|
@@ -17833,9 +17830,9 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
17833
17830
|
node: e.node,
|
|
17834
17831
|
position: UU(e, n) < WU(e, n) ? tb.Before : tb.After
|
|
17835
17832
|
}), zk = (e, n, o) => n > e.left && n < e.right ? 0 : Math.min(Math.abs(e.left - n), Math.abs(e.right - n)), Uk = (e, n, o, r) => {
|
|
17836
|
-
const l = (B) => uo(B.node) ? z.some(B) : qt(B.node) ? Uk(wr(B.node.childNodes), n, o, !1) : z.none(), u = (B, F, ee) => l(F).filter((
|
|
17837
|
-
const ee = Ko(B, (
|
|
17838
|
-
return Bl(ee, l).map((
|
|
17833
|
+
const l = (B) => uo(B.node) ? z.some(B) : qt(B.node) ? Uk(wr(B.node.childNodes), n, o, !1) : z.none(), u = (B, F, ee) => l(F).filter((oe) => Math.abs(ee(B, n, o) - ee(oe, n, o)) < 2 && ut(oe.node)), f = (B, F) => {
|
|
17834
|
+
const ee = Ko(B, (oe, K) => F(oe, n, o) - F(K, n, o));
|
|
17835
|
+
return Bl(ee, l).map((oe) => r && !ut(oe.node) && ee.length > 1 ? u(oe, ee[1], F).getOr(oe) : oe);
|
|
17839
17836
|
}, [b, y] = qU(EM(e), o), {
|
|
17840
17837
|
pass: k,
|
|
17841
17838
|
fail: P
|
|
@@ -17997,9 +17994,9 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
17997
17994
|
}, 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) => {
|
|
17998
17995
|
let F = 0, ee = 0;
|
|
17999
17996
|
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";
|
|
18000
|
-
const
|
|
17997
|
+
const oe = y.clientHeight, K = y.clientWidth, re = f + y.getBoundingClientRect().top, we = b + y.getBoundingClientRect().left;
|
|
18001
17998
|
P.on((ke) => {
|
|
18002
|
-
ke.intervalId.clear(), ke.dragging && B && (f + jk >=
|
|
17999
|
+
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)) : re + Gk >= window.innerHeight ? ke.intervalId.set(AB(window)) : re - Gk <= 0 ? ke.intervalId.set(rW(window)) : we + Gk >= window.innerWidth ? ke.intervalId.set(EB(window)) : we - Gk <= 0 && ke.intervalId.set(TB(window)));
|
|
18003
18000
|
});
|
|
18004
18001
|
}, Yk = (e) => {
|
|
18005
18002
|
e && e.parentNode && e.parentNode.removeChild(e);
|
|
@@ -18192,7 +18189,7 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
18192
18189
|
const Ve = We.range, st = Ve.startContainer.parentElement;
|
|
18193
18190
|
!K(Ve) && !Ft(st) && wt(), y(st) || Be();
|
|
18194
18191
|
}), hW(e), RB(e), pW(e);
|
|
18195
|
-
},
|
|
18192
|
+
}, oe = (Ft) => an(Ft) || ql(Ft) || Yc(Ft), K = (Ft) => oe(Ft.startContainer) || oe(Ft.endContainer), re = (Ft) => {
|
|
18196
18193
|
const We = e.schema.getVoidElements(), Ve = o.createRng(), st = Ft.startContainer, Kt = Ft.startOffset, cn = Ft.endContainer, Jn = Ft.endOffset;
|
|
18197
18194
|
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;
|
|
18198
18195
|
}, we = (Ft, We) => {
|
|
@@ -18572,7 +18569,7 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
18572
18569
|
e.getDoc().execCommand(Qt, !1, String($n));
|
|
18573
18570
|
} catch {
|
|
18574
18571
|
}
|
|
18575
|
-
}, ee = (Qt) => Qt.isDefaultPrevented(),
|
|
18572
|
+
}, ee = (Qt) => Qt.isDefaultPrevented(), oe = () => {
|
|
18576
18573
|
const Qt = (Ct) => {
|
|
18577
18574
|
const Mn = l.create("body"), Oo = Ct.cloneContents();
|
|
18578
18575
|
return Mn.appendChild(Oo), u.serializer.serialize(Mn, { format: "html" });
|
|
@@ -18763,7 +18760,7 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
18763
18760
|
he(Ct) && /^<img[^>]*>$/.test(Ct) && e.dispatch("dragend", new window.DragEvent("dragend", Qt));
|
|
18764
18761
|
});
|
|
18765
18762
|
}, mo = () => {
|
|
18766
|
-
wt(),
|
|
18763
|
+
wt(), oe(), It.windowsPhone || Kt(), k && (re(), Se(), Ve(), Hr(), rt(), Ml(), P ? (Jn(), qn(), Rs()) : K()), y && (we(), ke(), Be(), Ft(), We(), cn(), gs(), rt(), Kn());
|
|
18767
18764
|
};
|
|
18768
18765
|
return Dh(e) ? on() : mo(), {
|
|
18769
18766
|
refreshContentEditable: us,
|
|
@@ -19917,13 +19914,13 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
19917
19914
|
}
|
|
19918
19915
|
}, YZ = (e, n) => {
|
|
19919
19916
|
const o = {}, r = {}, l = (B, F, ee) => {
|
|
19920
|
-
const
|
|
19921
|
-
return A7(
|
|
19917
|
+
const oe = y0(F, ee);
|
|
19918
|
+
return A7(oe) ? (r[B] = oe.value, !0) : (console.warn(E7(`Invalid value passed for the ${B} option`, oe)), !1);
|
|
19922
19919
|
}, u = (B, F) => {
|
|
19923
|
-
const ee = KZ(F) ? qZ(F.processor) : F.processor,
|
|
19920
|
+
const ee = KZ(F) ? qZ(F.processor) : F.processor, oe = xf(B, F.default, ee);
|
|
19924
19921
|
o[B] = {
|
|
19925
19922
|
...F,
|
|
19926
|
-
default:
|
|
19923
|
+
default: oe,
|
|
19927
19924
|
processor: ee
|
|
19928
19925
|
}, Xo(r, B).orThunk(() => Xo(n, B)).each((re) => l(B, re, ee));
|
|
19929
19926
|
}, f = (B) => pn(o, B);
|
|
@@ -20440,16 +20437,16 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
20440
20437
|
let P = 0;
|
|
20441
20438
|
const B = [];
|
|
20442
20439
|
let F;
|
|
20443
|
-
const ee = (
|
|
20444
|
-
const we = new g4(
|
|
20440
|
+
const ee = (oe, K, re) => {
|
|
20441
|
+
const we = new g4(oe, K, n);
|
|
20445
20442
|
B.push(we), we.on("init", () => {
|
|
20446
20443
|
++P === F.length && y(B);
|
|
20447
20444
|
}), we.targetElm = we.targetElm || re, we.render();
|
|
20448
20445
|
};
|
|
20449
|
-
Sy.unbind(window, "ready", k), f("onpageload"), F = di(b(e)), ct.each(F, (
|
|
20450
|
-
ij(n.get(
|
|
20451
|
-
}), F = ct.grep(F, (
|
|
20452
|
-
l(e,
|
|
20446
|
+
Sy.unbind(window, "ready", k), f("onpageload"), F = di(b(e)), ct.each(F, (oe) => {
|
|
20447
|
+
ij(n.get(oe.id));
|
|
20448
|
+
}), F = ct.grep(F, (oe) => !n.get(oe.id)), F.length === 0 ? y([]) : h4(F, (oe) => {
|
|
20449
|
+
l(e, oe) ? nx("Could not initialize inline editor on invalid inline target element", oe) : ee(u(oe), e, oe);
|
|
20453
20450
|
});
|
|
20454
20451
|
};
|
|
20455
20452
|
return Sy.bind(window, "ready", k), new Promise((P) => {
|
|
@@ -20593,8 +20590,8 @@ Input object: ` + EA(e.input), OA = (e, n) => $8(e, xo(n, DA)), j8 = ot(z8), wk
|
|
|
20593
20590
|
if (e[y] !== void 0)
|
|
20594
20591
|
return e[y];
|
|
20595
20592
|
{
|
|
20596
|
-
const F = new Promise((ee,
|
|
20597
|
-
const K = pj(ee,
|
|
20593
|
+
const F = new Promise((ee, oe) => {
|
|
20594
|
+
const K = pj(ee, oe);
|
|
20598
20595
|
n[y] = K.resolve, ra.ScriptLoader.loadScript(k).then(() => K.start(B), () => K.reject(P));
|
|
20599
20596
|
});
|
|
20600
20597
|
return e[y] = F, F;
|
|
@@ -20921,13 +20918,13 @@ tinymce.IconManager.add("default", {
|
|
|
20921
20918
|
}
|
|
20922
20919
|
});
|
|
20923
20920
|
(function() {
|
|
20924
|
-
const A = Object.getPrototypeOf,
|
|
20921
|
+
const A = Object.getPrototypeOf, se = (t, s, a) => {
|
|
20925
20922
|
var c;
|
|
20926
20923
|
return a(t, s.prototype) ? !0 : ((c = t.constructor) === null || c === void 0 ? void 0 : c.name) === s.name;
|
|
20927
20924
|
}, G = (t) => {
|
|
20928
20925
|
const s = typeof t;
|
|
20929
|
-
return t === null ? "null" : s === "object" && Array.isArray(t) ? "array" : s === "object" &&
|
|
20930
|
-
}, _e = (t) => (s) => G(s) === t, ne = (t) => (s) => typeof s === t, Z = (t) => (s) => t === s,
|
|
20926
|
+
return t === null ? "null" : s === "object" && Array.isArray(t) ? "array" : s === "object" && se(t, String, (a, c) => c.isPrototypeOf(a)) ? "string" : s;
|
|
20927
|
+
}, _e = (t) => (s) => G(s) === t, ne = (t) => (s) => typeof s === t, Z = (t) => (s) => t === s, Ce = (t, s) => $e(t) && se(t, s, (a, c) => A(a) === c), X = _e("string"), $e = _e("object"), lt = (t) => Ce(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) => {
|
|
20931
20928
|
if (yt(t)) {
|
|
20932
20929
|
for (let a = 0, c = t.length; a < c; ++a)
|
|
20933
20930
|
if (!s(t[a]))
|
|
@@ -22645,14 +22642,14 @@ The behaviours that can trigger it are: ` + JSON.stringify(tt(s, (a) => a.name),
|
|
|
22645
22642
|
ur(s, Q), ki(s, W);
|
|
22646
22643
|
}, Me = (Oe) => {
|
|
22647
22644
|
nh(s, Oe);
|
|
22648
|
-
},
|
|
22645
|
+
}, xe = () => {
|
|
22649
22646
|
const Oe = t.domChildren;
|
|
22650
22647
|
uO(s, Oe);
|
|
22651
22648
|
}, ve = () => {
|
|
22652
22649
|
const Oe = s, dt = t.value.getOrUndefined();
|
|
22653
22650
|
dt !== qd(Oe) && mp(Oe, dt ?? "");
|
|
22654
22651
|
};
|
|
22655
|
-
return w(), de(), N(), t.innerHtml.fold(
|
|
22652
|
+
return w(), de(), N(), t.innerHtml.fold(xe, Me), ve(), s;
|
|
22656
22653
|
}, W4 = (t) => {
|
|
22657
22654
|
const s = Ae.fromTag(t.tag);
|
|
22658
22655
|
Yu(s, t.attributes), ur(s, t.classes), Ms(s, t.styles), t.innerHtml.each((c) => nh(s, c));
|
|
@@ -22698,14 +22695,14 @@ The behaviours that can trigger it are: ` + JSON.stringify(tt(s, (a) => a.name),
|
|
|
22698
22695
|
return (Ot(Je[dt.name()]) ? Je[dt.name()] : () => {
|
|
22699
22696
|
throw new Error("Could not find " + dt.name() + " in " + JSON.stringify(t, null, 2));
|
|
22700
22697
|
})();
|
|
22701
|
-
}, Me = (dt) => Ot(w[dt.name()]),
|
|
22698
|
+
}, Me = (dt) => Ot(w[dt.name()]), xe = () => d.apis, ve = (dt) => w[dt]().map((Je) => Je.state.readState()).getOr("not enabled"), Oe = {
|
|
22702
22699
|
uid: t.uid,
|
|
22703
22700
|
getSystem: c.get,
|
|
22704
22701
|
config: de,
|
|
22705
22702
|
hasConfigured: Me,
|
|
22706
22703
|
spec: t,
|
|
22707
22704
|
readState: ve,
|
|
22708
|
-
getApis:
|
|
22705
|
+
getApis: xe,
|
|
22709
22706
|
connect: H,
|
|
22710
22707
|
disconnect: W,
|
|
22711
22708
|
element: E,
|
|
@@ -23162,8 +23159,8 @@ Receiver: ` + jd(s.element), E, g.data);
|
|
|
23162
23159
|
]
|
|
23163
23160
|
}
|
|
23164
23161
|
]), EC = (t, s, a, c, d, g) => {
|
|
23165
|
-
const p = s.rect, w = p.x - a, C = p.y - c, E = p.width, $ = p.height, N = d - (w + E), H = g - (C + $), W = D.some(w), Q = D.some(C), de = D.some(N), Me = D.some(H),
|
|
23166
|
-
return Zf(s.direction, () => Ai(t, W, Q,
|
|
23162
|
+
const p = s.rect, w = p.x - a, C = p.y - c, E = p.width, $ = p.height, N = d - (w + E), H = g - (C + $), W = D.some(w), Q = D.some(C), de = D.some(N), Me = D.some(H), xe = D.none();
|
|
23163
|
+
return Zf(s.direction, () => Ai(t, W, Q, xe, xe), () => Ai(t, xe, Q, de, xe), () => Ai(t, W, xe, xe, Me), () => Ai(t, xe, xe, de, Me), () => Ai(t, W, Q, xe, xe), () => Ai(t, W, xe, xe, Me), () => Ai(t, W, Q, xe, xe), () => Ai(t, xe, Q, de, xe));
|
|
23167
23164
|
}, h2 = (t, s) => t.fold(() => {
|
|
23168
23165
|
const a = s.rect;
|
|
23169
23166
|
return Ai("absolute", D.some(a.x), D.some(a.y), D.none(), D.none());
|
|
@@ -23205,10 +23202,10 @@ Receiver: ` + jd(s.element), E, g.data);
|
|
|
23205
23202
|
y: c,
|
|
23206
23203
|
right: d,
|
|
23207
23204
|
bottom: g
|
|
23208
|
-
} = s, { x: p, y: w, right: C, bottom: E, width: $, height: N } = t, H = p >= a && p <= d, W = w >= c && w <= g, Q = H && W, de = C <= d && C >= a, Me = E <= g && E >= c,
|
|
23205
|
+
} = s, { x: p, y: w, right: C, bottom: E, width: $, height: N } = t, H = p >= a && p <= d, W = w >= c && w <= g, Q = H && W, de = C <= d && C >= a, Me = E <= g && E >= c, xe = de && Me, ve = Math.min($, p >= a ? d - p : C - a), Oe = Math.min(N, w >= c ? g - w : E - c);
|
|
23209
23206
|
return {
|
|
23210
23207
|
originInBounds: Q,
|
|
23211
|
-
sizeInBounds:
|
|
23208
|
+
sizeInBounds: xe,
|
|
23212
23209
|
visibleW: ve,
|
|
23213
23210
|
visibleH: Oe
|
|
23214
23211
|
};
|
|
@@ -23227,10 +23224,10 @@ Receiver: ` + jd(s.element), E, g.data);
|
|
|
23227
23224
|
maxHeight: g
|
|
23228
23225
|
};
|
|
23229
23226
|
}, l3 = (t, s, a, c) => {
|
|
23230
|
-
const d = t.bubble, g = d.offset, p = qb(c, t.restriction, g), w = t.x + g.left, C = t.y + g.top, E = Bs(w, C, s, a), { originInBounds: $, sizeInBounds: N, visibleW: H, visibleH: W } = OC(E, p), Q = $ && N, de = Q ? E : y2(E, p), Me = de.width > 0 && de.height > 0, { maxWidth:
|
|
23227
|
+
const d = t.bubble, g = d.offset, p = qb(c, t.restriction, g), w = t.x + g.left, C = t.y + g.top, E = Bs(w, C, s, a), { originInBounds: $, sizeInBounds: N, visibleW: H, visibleH: W } = OC(E, p), Q = $ && N, de = Q ? E : y2(E, p), Me = de.width > 0 && de.height > 0, { maxWidth: xe, maxHeight: ve } = dh(t.direction, de, c), Oe = {
|
|
23231
23228
|
rect: de,
|
|
23232
23229
|
maxHeight: ve,
|
|
23233
|
-
maxWidth:
|
|
23230
|
+
maxWidth: xe,
|
|
23234
23231
|
direction: t.direction,
|
|
23235
23232
|
placement: t.placement,
|
|
23236
23233
|
classes: {
|
|
@@ -23244,7 +23241,7 @@ Receiver: ` + jd(s.element), E, g.data);
|
|
|
23244
23241
|
}, c3 = (t, s, a, c, d, g) => {
|
|
23245
23242
|
const p = c.width, w = c.height, C = ($, N, H, W, Q) => {
|
|
23246
23243
|
const de = $(a, c, d, t, g), Me = l3(de, p, w, g);
|
|
23247
|
-
return Me.fold(ae(Me), (
|
|
23244
|
+
return Me.fold(ae(Me), (xe, ve, Oe, dt) => (Q === dt ? Oe > W || ve > H : !Q && dt) ? Me : J0.nofit(N, H, W, Q));
|
|
23248
23245
|
};
|
|
23249
23246
|
return Wo(s, ($, N) => {
|
|
23250
23247
|
const H = In(C, N);
|
|
@@ -24711,8 +24708,8 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
24711
24708
|
Q(de, E, $), Me.stop();
|
|
24712
24709
|
})), H = (Q, de) => {
|
|
24713
24710
|
const Me = ko(Ri.concat(om))(de.event);
|
|
24714
|
-
E.focusInside === h.OnEnterOrSpaceMode && Me && Yc(Q, de) && d(E).each((
|
|
24715
|
-
|
|
24711
|
+
E.focusInside === h.OnEnterOrSpaceMode && Me && Yc(Q, de) && d(E).each((xe) => {
|
|
24712
|
+
xe(Q, E, $), de.stop();
|
|
24716
24713
|
});
|
|
24717
24714
|
}, W = [
|
|
24718
24715
|
Qe(Ou(), (Q, de) => {
|
|
@@ -24740,26 +24737,26 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
24740
24737
|
Re("firstTabstop", 0),
|
|
24741
24738
|
Re("useTabstopAt", Nt),
|
|
24742
24739
|
Uo("visibilitySelector")
|
|
24743
|
-
].concat([t]), a = (
|
|
24744
|
-
const Oe =
|
|
24740
|
+
].concat([t]), a = (xe, ve) => {
|
|
24741
|
+
const Oe = xe.visibilitySelector.bind((dt) => dd(ve, dt)).getOr(ve);
|
|
24745
24742
|
return Us(Oe) > 0;
|
|
24746
|
-
}, c = (
|
|
24747
|
-
const Oe = ka(
|
|
24743
|
+
}, c = (xe, ve) => {
|
|
24744
|
+
const Oe = ka(xe.element, ve.selector), dt = so(Oe, (Je) => a(ve, Je));
|
|
24748
24745
|
return D.from(dt[ve.firstTabstop]);
|
|
24749
|
-
}, d = (
|
|
24750
|
-
c(
|
|
24751
|
-
ve.focusManager.set(
|
|
24752
|
-
});
|
|
24753
|
-
}, w = (
|
|
24754
|
-
const Je = ka(
|
|
24755
|
-
return d(
|
|
24756
|
-
}, E = (
|
|
24746
|
+
}, d = (xe, ve) => ve.focusManager.get(xe).bind((Oe) => dd(Oe, ve.selector)), g = (xe, ve) => a(xe, ve) && xe.useTabstopAt(ve), p = (xe, ve, Oe) => {
|
|
24747
|
+
c(xe, ve).each((dt) => {
|
|
24748
|
+
ve.focusManager.set(xe, dt);
|
|
24749
|
+
});
|
|
24750
|
+
}, w = (xe, ve, Oe, dt, Je) => Je(ve, Oe, (Ge) => g(dt, Ge)).fold(() => dt.cyclic ? D.some(!0) : D.none(), (Ge) => (dt.focusManager.set(xe, Ge), D.some(!0))), C = (xe, ve, Oe, dt) => {
|
|
24751
|
+
const Je = ka(xe.element, Oe.selector);
|
|
24752
|
+
return d(xe, Oe).bind((Ge) => Rt(Je, In(zo, Ge)).bind((At) => w(xe, Je, At, Oe, dt)));
|
|
24753
|
+
}, E = (xe, ve, Oe) => {
|
|
24757
24754
|
const dt = Oe.cyclic ? mw : gT;
|
|
24758
|
-
return C(
|
|
24759
|
-
}, $ = (
|
|
24755
|
+
return C(xe, ve, Oe, dt);
|
|
24756
|
+
}, $ = (xe, ve, Oe) => {
|
|
24760
24757
|
const dt = Oe.cyclic ? fw : hT;
|
|
24761
|
-
return C(
|
|
24762
|
-
}, N = (
|
|
24758
|
+
return C(xe, ve, Oe, dt);
|
|
24759
|
+
}, N = (xe) => Vl(xe).bind(hi).exists((ve) => zo(ve, xe)), H = (xe, ve, Oe) => d(xe, Oe).filter((dt) => !Oe.useTabstopAt(dt)).bind((dt) => (N(dt) ? E : $)(xe, ve, Oe)), W = (xe, ve, Oe) => Oe.onEnter.bind((dt) => dt(xe, ve)), Q = (xe, ve, Oe) => Oe.onEscape.bind((dt) => dt(xe, ve)), de = ae([
|
|
24763
24760
|
$o($i([
|
|
24764
24761
|
cf,
|
|
24765
24762
|
ko(af)
|
|
@@ -25562,7 +25559,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
25562
25559
|
triggeringItem: jt,
|
|
25563
25560
|
triggeringPath: vt
|
|
25564
25561
|
})))), N = (Je, Ge) => {
|
|
25565
|
-
const vt = so(
|
|
25562
|
+
const vt = so(xe(Je).toArray(), (At) => de(At).isSome());
|
|
25566
25563
|
return bt(a.get(), Je).bind((At) => {
|
|
25567
25564
|
const Wn = qo(vt.concat(At)), jt = Te(Wn, (Dn, Sn) => $(Dn, Ge, Wn.slice(0, Sn + 1)).fold(() => Da(c.get(), Dn) ? [] : [D.none()], (Yo) => [D.some(Yo)]));
|
|
25568
25565
|
return ts(jt);
|
|
@@ -25570,7 +25567,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
25570
25567
|
}, H = (Je) => bt(t.get(), Je).map((Ge) => {
|
|
25571
25568
|
const vt = bt(a.get(), Je).getOr([]);
|
|
25572
25569
|
return [Ge].concat(vt);
|
|
25573
|
-
}), W = (Je) => bt(a.get(), Je).bind((Ge) => Ge.length > 1 ? D.some(Ge.slice(1)) : D.none()), Q = (Je) => bt(a.get(), Je), de = (Je) => Me(Je).bind(Nv), Me = (Je) => bt(s.get(), Je),
|
|
25570
|
+
}), W = (Je) => bt(a.get(), Je).bind((Ge) => Ge.length > 1 ? D.some(Ge.slice(1)) : D.none()), Q = (Je) => bt(a.get(), Je), de = (Je) => Me(Je).bind(Nv), Me = (Je) => bt(s.get(), Je), xe = (Je) => bt(t.get(), Je);
|
|
25574
25571
|
return {
|
|
25575
25572
|
setMenuBuilt: w,
|
|
25576
25573
|
setContents: C,
|
|
@@ -25578,7 +25575,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
25578
25575
|
refresh: Q,
|
|
25579
25576
|
collapse: W,
|
|
25580
25577
|
lookupMenu: Me,
|
|
25581
|
-
lookupItem:
|
|
25578
|
+
lookupItem: xe,
|
|
25582
25579
|
otherMenus: (Je) => {
|
|
25583
25580
|
const Ge = d.get();
|
|
25584
25581
|
return zt(bs(Ge), Je);
|
|
@@ -25670,7 +25667,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
25670
25667
|
(function(Dt) {
|
|
25671
25668
|
Dt[Dt.HighlightSubmenu = 0] = "HighlightSubmenu", Dt[Dt.HighlightParent = 1] = "HighlightParent";
|
|
25672
25669
|
})(Me || (Me = {}));
|
|
25673
|
-
const
|
|
25670
|
+
const xe = (Dt, en, On) => {
|
|
25674
25671
|
if (On.type === "notbuilt") {
|
|
25675
25672
|
const Pn = Dt.getSystem().build(On.nbMenu());
|
|
25676
25673
|
return d.setMenuBuilt(en, Pn), Pn;
|
|
@@ -25682,7 +25679,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
25682
25679
|
{
|
|
25683
25680
|
const Pn = p(en);
|
|
25684
25681
|
return d.expand(Pn).bind((yn) => (Q(Dt, yn), D.from(yn[0]).bind((Hn) => d.lookupMenu(Hn).bind((ks) => {
|
|
25685
|
-
const Mo =
|
|
25682
|
+
const Mo = xe(Dt, Hn, ks);
|
|
25686
25683
|
return po(Mo.element) || Fn.append(Dt, Ti(Mo)), t.onOpenSubmenu(Dt, en, Mo, qo(yn)), On === Me.HighlightSubmenu ? (Ho.highlightFirst(Mo), de(Dt, d, yn)) : (Ho.dehighlightAll(Mo), D.some(en));
|
|
25687
25684
|
}))));
|
|
25688
25685
|
}
|
|
@@ -26789,7 +26786,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
26789
26786
|
return s.isSupported = !1, s;
|
|
26790
26787
|
const a = t.document, c = a.currentScript;
|
|
26791
26788
|
let { document: d } = t;
|
|
26792
|
-
const { DocumentFragment: g, HTMLTemplateElement: p, Node: w, Element: C, NodeFilter: E, NamedNodeMap: $ = t.NamedNodeMap || t.MozNamedAttrMap, HTMLFormElement: N, DOMParser: H, trustedTypes: W } = t, Q = C.prototype, de = Cw(Q, "cloneNode"), Me = Cw(Q, "nextSibling"),
|
|
26789
|
+
const { DocumentFragment: g, HTMLTemplateElement: p, Node: w, Element: C, NodeFilter: E, NamedNodeMap: $ = t.NamedNodeMap || t.MozNamedAttrMap, HTMLFormElement: N, DOMParser: H, trustedTypes: W } = t, Q = C.prototype, de = Cw(Q, "cloneNode"), Me = Cw(Q, "nextSibling"), xe = Cw(Q, "childNodes"), ve = Cw(Q, "parentNode");
|
|
26793
26790
|
if (typeof p == "function") {
|
|
26794
26791
|
const wo = d.createElement("template");
|
|
26795
26792
|
wo.content && wo.content.ownerDocument && (d = wo.content.ownerDocument);
|
|
@@ -27026,7 +27023,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
27026
27023
|
if (!bl[Bn] && QG(Bn) && (Mo.tagNameCheck instanceof RegExp && yd(Mo.tagNameCheck, Bn) || Mo.tagNameCheck instanceof Function && Mo.tagNameCheck(Bn)))
|
|
27027
27024
|
return !1;
|
|
27028
27025
|
if (_j && !k4[Bn]) {
|
|
27029
|
-
const ca = ve(Ue) || Ue.parentNode, Wi =
|
|
27026
|
+
const ca = ve(Ue) || Ue.parentNode, Wi = xe(Ue) || Ue.childNodes;
|
|
27030
27027
|
if (Wi && ca) {
|
|
27031
27028
|
const Tg = Wi.length;
|
|
27032
27029
|
for (let Pl = Tg - 1; Pl >= 0; --Pl)
|
|
@@ -27407,16 +27404,16 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
27407
27404
|
const Q = {
|
|
27408
27405
|
close: $,
|
|
27409
27406
|
reposition: () => {
|
|
27410
|
-
const de = Ti(N), Me = { maxHeightFunction: kp() },
|
|
27411
|
-
if (
|
|
27407
|
+
const de = Ti(N), Me = { maxHeightFunction: kp() }, xe = t.notificationManager.getNotifications();
|
|
27408
|
+
if (xe[0] === Q) {
|
|
27412
27409
|
const ve = {
|
|
27413
27410
|
...c.anchors.banner(),
|
|
27414
27411
|
overrides: Me
|
|
27415
27412
|
};
|
|
27416
27413
|
dr.showWithinBounds(H, de, { anchor: ve }, d);
|
|
27417
27414
|
} else
|
|
27418
|
-
Pe(
|
|
27419
|
-
const Oe =
|
|
27415
|
+
Pe(xe, Q).each((ve) => {
|
|
27416
|
+
const Oe = xe[ve - 1].getEl(), dt = {
|
|
27420
27417
|
type: "node",
|
|
27421
27418
|
root: Vs(),
|
|
27422
27419
|
node: D.some(Ae.fromDom(Oe)),
|
|
@@ -29789,8 +29786,8 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
29789
29786
|
fireDismissalEventInstead: {},
|
|
29790
29787
|
inlineBehaviours: xt([Un("dismissAutocompleter", [
|
|
29791
29788
|
Qe(If(), () => $()),
|
|
29792
|
-
Qe(P0(), (Me,
|
|
29793
|
-
I(
|
|
29789
|
+
Qe(P0(), (Me, xe) => {
|
|
29790
|
+
I(xe.event.target, "id").each((ve) => It(Ae.fromDom(t.getBody()), "aria-activedescendant", ve));
|
|
29794
29791
|
})
|
|
29795
29792
|
])]),
|
|
29796
29793
|
lazySink: s.getSink
|
|
@@ -29798,12 +29795,12 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
29798
29795
|
if (p()) {
|
|
29799
29796
|
dr.hide(g), t.dom.remove(a, !1);
|
|
29800
29797
|
const Me = Ae.fromDom(t.getBody());
|
|
29801
|
-
I(Me, "aria-owns").filter((
|
|
29798
|
+
I(Me, "aria-owns").filter((xe) => xe === a).each(() => {
|
|
29802
29799
|
le(Me, "aria-owns"), le(Me, "aria-activedescendant");
|
|
29803
29800
|
});
|
|
29804
29801
|
}
|
|
29805
29802
|
}, E = () => dr.getContent(g).bind((Me) => ps(Me.components(), 0)), $ = () => t.execCommand("mceAutocompleterClose"), N = (Me) => {
|
|
29806
|
-
const
|
|
29803
|
+
const xe = nr(Me, (ve) => D.from(ve.columns)).getOr(1);
|
|
29807
29804
|
return Te(Me, (ve) => {
|
|
29808
29805
|
const Oe = ve.items;
|
|
29809
29806
|
return gF(Oe, ve.matchText, (dt, Je) => {
|
|
@@ -29817,9 +29814,9 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
29817
29814
|
};
|
|
29818
29815
|
c.set(!0), ve.onAction(At, vt, dt, Je), c.set(!1);
|
|
29819
29816
|
});
|
|
29820
|
-
},
|
|
29817
|
+
}, xe, ff.BUBBLE_TO_SANDBOX, s, ve.highlightOn);
|
|
29821
29818
|
});
|
|
29822
|
-
}, H = (Me,
|
|
29819
|
+
}, H = (Me, xe) => {
|
|
29823
29820
|
kI(Ae.fromDom(t.getBody())).each((ve) => {
|
|
29824
29821
|
const Oe = nr(Me, (dt) => D.from(dt.columns)).getOr(1);
|
|
29825
29822
|
dr.showMenuAt(g, {
|
|
@@ -29828,14 +29825,14 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
29828
29825
|
root: Ae.fromDom(t.getBody()),
|
|
29829
29826
|
node: D.from(ve)
|
|
29830
29827
|
}
|
|
29831
|
-
}, hF(fS("autocompleter-value", !0,
|
|
29828
|
+
}, hF(fS("autocompleter-value", !0, xe, Oe, { menuType: "normal" }), Oe, Kw.ContentFocus, "normal"));
|
|
29832
29829
|
}), E().each(Ho.highlightFirst);
|
|
29833
29830
|
}, W = (Me) => {
|
|
29834
|
-
const
|
|
29835
|
-
|
|
29831
|
+
const xe = N(Me);
|
|
29832
|
+
xe.length > 0 ? (H(Me, xe), It(Ae.fromDom(t.getBody()), "aria-owns", a), t.inline || Q()) : C();
|
|
29836
29833
|
}, Q = () => {
|
|
29837
29834
|
t.dom.get(a) && t.dom.remove(a, !1);
|
|
29838
|
-
const Me = t.getDoc().documentElement,
|
|
29835
|
+
const Me = t.getDoc().documentElement, xe = t.selection.getNode(), ve = P4(g.element);
|
|
29839
29836
|
Ms(ve, {
|
|
29840
29837
|
border: "0",
|
|
29841
29838
|
clip: "rect(0 0 0 0)",
|
|
@@ -29845,8 +29842,8 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
29845
29842
|
padding: "0",
|
|
29846
29843
|
position: "absolute",
|
|
29847
29844
|
width: "1px",
|
|
29848
|
-
top: `${
|
|
29849
|
-
left: `${
|
|
29845
|
+
top: `${xe.offsetTop}px`,
|
|
29846
|
+
left: `${xe.offsetLeft}px`
|
|
29850
29847
|
}), t.dom.add(Me, ve.dom), Ir(ve, '[role="menu"]').each((Oe) => {
|
|
29851
29848
|
Co(Oe, "position"), Co(Oe, "max-height");
|
|
29852
29849
|
});
|
|
@@ -30130,86 +30127,86 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
30130
30127
|
Re("eventOrder", {})
|
|
30131
30128
|
]
|
|
30132
30129
|
}), IS = (t) => {
|
|
30133
|
-
const s = (
|
|
30134
|
-
triggerEvent: (
|
|
30130
|
+
const s = (xe) => ta(t.element).fold(Nt, (ve) => zo(xe, ve)), a = B6(), c = (xe, ve) => a.find(s, xe, ve), d = _F(t.element, {
|
|
30131
|
+
triggerEvent: (xe, ve) => Wb(xe, ve.target, (Oe) => b5(c, xe, ve, Oe))
|
|
30135
30132
|
}), g = {
|
|
30136
30133
|
debugInfo: ae("real"),
|
|
30137
|
-
triggerEvent: (
|
|
30138
|
-
Wb(
|
|
30134
|
+
triggerEvent: (xe, ve, Oe) => {
|
|
30135
|
+
Wb(xe, ve, (dt) => M6(c, xe, Oe, ve, dt));
|
|
30139
30136
|
},
|
|
30140
|
-
triggerFocus: (
|
|
30141
|
-
L0(
|
|
30142
|
-
Oc(
|
|
30137
|
+
triggerFocus: (xe, ve) => {
|
|
30138
|
+
L0(xe).fold(() => {
|
|
30139
|
+
Oc(xe);
|
|
30143
30140
|
}, (Oe) => {
|
|
30144
|
-
Wb(ld(),
|
|
30141
|
+
Wb(ld(), xe, (dt) => (kF(c, ld(), {
|
|
30145
30142
|
originator: ve,
|
|
30146
30143
|
kill: he,
|
|
30147
30144
|
prevent: he,
|
|
30148
|
-
target:
|
|
30149
|
-
},
|
|
30145
|
+
target: xe
|
|
30146
|
+
}, xe, dt), !1));
|
|
30150
30147
|
});
|
|
30151
30148
|
},
|
|
30152
|
-
triggerEscape: (
|
|
30153
|
-
g.triggerEvent("keydown",
|
|
30149
|
+
triggerEscape: (xe, ve) => {
|
|
30150
|
+
g.triggerEvent("keydown", xe.element, ve.event);
|
|
30154
30151
|
},
|
|
30155
|
-
getByUid: (
|
|
30156
|
-
getByDom: (
|
|
30152
|
+
getByUid: (xe) => de(xe),
|
|
30153
|
+
getByDom: (xe) => Me(xe),
|
|
30157
30154
|
build: Tl,
|
|
30158
30155
|
buildOrPatch: Vb,
|
|
30159
|
-
addToGui: (
|
|
30160
|
-
C(
|
|
30156
|
+
addToGui: (xe) => {
|
|
30157
|
+
C(xe);
|
|
30161
30158
|
},
|
|
30162
|
-
removeFromGui: (
|
|
30163
|
-
E(
|
|
30159
|
+
removeFromGui: (xe) => {
|
|
30160
|
+
E(xe);
|
|
30164
30161
|
},
|
|
30165
|
-
addToWorld: (
|
|
30166
|
-
p(
|
|
30162
|
+
addToWorld: (xe) => {
|
|
30163
|
+
p(xe);
|
|
30167
30164
|
},
|
|
30168
|
-
removeFromWorld: (
|
|
30169
|
-
w(
|
|
30165
|
+
removeFromWorld: (xe) => {
|
|
30166
|
+
w(xe);
|
|
30170
30167
|
},
|
|
30171
|
-
broadcast: (
|
|
30172
|
-
H(
|
|
30168
|
+
broadcast: (xe) => {
|
|
30169
|
+
H(xe);
|
|
30173
30170
|
},
|
|
30174
|
-
broadcastOn: (
|
|
30175
|
-
W(
|
|
30171
|
+
broadcastOn: (xe, ve) => {
|
|
30172
|
+
W(xe, ve);
|
|
30176
30173
|
},
|
|
30177
|
-
broadcastEvent: (
|
|
30178
|
-
Q(
|
|
30174
|
+
broadcastEvent: (xe, ve) => {
|
|
30175
|
+
Q(xe, ve);
|
|
30179
30176
|
},
|
|
30180
30177
|
isConnected: Nt
|
|
30181
|
-
}, p = (
|
|
30182
|
-
|
|
30183
|
-
}, w = (
|
|
30184
|
-
ea(
|
|
30185
|
-
}, C = (
|
|
30186
|
-
eg(t,
|
|
30187
|
-
}, E = (
|
|
30188
|
-
tm(
|
|
30178
|
+
}, p = (xe) => {
|
|
30179
|
+
xe.connect(g), ea(xe.element) || (a.register(xe), pt(xe.components(), p), g.triggerEvent(Bf(), xe.element, { target: xe.element }));
|
|
30180
|
+
}, w = (xe) => {
|
|
30181
|
+
ea(xe.element) || (pt(xe.components(), w), a.unregister(xe)), xe.disconnect();
|
|
30182
|
+
}, C = (xe) => {
|
|
30183
|
+
eg(t, xe);
|
|
30184
|
+
}, E = (xe) => {
|
|
30185
|
+
tm(xe);
|
|
30189
30186
|
}, $ = () => {
|
|
30190
30187
|
d.unbind(), Tc(t.element);
|
|
30191
|
-
}, N = (
|
|
30188
|
+
}, N = (xe) => {
|
|
30192
30189
|
const ve = a.filter(th());
|
|
30193
30190
|
pt(ve, (Oe) => {
|
|
30194
30191
|
const dt = Oe.descHandler;
|
|
30195
|
-
ap(dt)(
|
|
30192
|
+
ap(dt)(xe);
|
|
30196
30193
|
});
|
|
30197
|
-
}, H = (
|
|
30194
|
+
}, H = (xe) => {
|
|
30198
30195
|
N({
|
|
30199
30196
|
universal: !0,
|
|
30200
|
-
data:
|
|
30197
|
+
data: xe
|
|
30201
30198
|
});
|
|
30202
|
-
}, W = (
|
|
30199
|
+
}, W = (xe, ve) => {
|
|
30203
30200
|
N({
|
|
30204
30201
|
universal: !1,
|
|
30205
|
-
channels:
|
|
30202
|
+
channels: xe,
|
|
30206
30203
|
data: ve
|
|
30207
30204
|
});
|
|
30208
|
-
}, Q = (
|
|
30209
|
-
const Oe = a.filter(
|
|
30205
|
+
}, Q = (xe, ve) => {
|
|
30206
|
+
const Oe = a.filter(xe);
|
|
30210
30207
|
return TF(Oe, ve);
|
|
30211
|
-
}, de = (
|
|
30212
|
-
const ve = L0(
|
|
30208
|
+
}, de = (xe) => a.getById(xe).fold(() => Vn.error(new Error('Could not find component with uid: "' + xe + '" in system.')), Vn.value), Me = (xe) => {
|
|
30209
|
+
const ve = L0(xe).getOr("not found");
|
|
30213
30210
|
return de(ve);
|
|
30214
30211
|
};
|
|
30215
30212
|
return p(t), {
|
|
@@ -30371,8 +30368,8 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
30371
30368
|
"-": " "
|
|
30372
30369
|
}, vt = Oe.replace(/\_| \- |\-/g, (Wn) => Ge[Wn]);
|
|
30373
30370
|
return `<div class="tox-collection__item${s.isDisabled() ? " tox-collection__item--state-disabled" : ""}" tabindex="-1" data-collection-item-value="${PF.encodeAllRaw(ve.value)}" title="${vt}" aria-label="${vt}">${Je}${dt}</div>`;
|
|
30374
|
-
}), Me = t.columns !== "auto" && t.columns > 1 ? br(de, t.columns) : [de],
|
|
30375
|
-
nh(W.element,
|
|
30371
|
+
}), Me = t.columns !== "auto" && t.columns > 1 ? br(de, t.columns) : [de], xe = tt(Me, (ve) => `<div class="tox-collection__group">${ve.join("")}</div>`);
|
|
30372
|
+
nh(W.element, xe.join(""));
|
|
30376
30373
|
}, C = p((W, Q, de, Me) => {
|
|
30377
30374
|
Q.stop(), s.isDisabled() || dn(W, hg, {
|
|
30378
30375
|
name: t.name,
|
|
@@ -30771,8 +30768,8 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
30771
30768
|
if (d > H)
|
|
30772
30769
|
return de;
|
|
30773
30770
|
{
|
|
30774
|
-
const Me = h9(d, N, H),
|
|
30775
|
-
return p &&
|
|
30771
|
+
const Me = h9(d, N, H), xe = J6(Me / W * c + s, Q, de);
|
|
30772
|
+
return p && xe >= s && xe <= a ? g9(xe, s, a, g, w) : C ? Math.round(xe) : xe;
|
|
30776
30773
|
}
|
|
30777
30774
|
}, eM = (t) => {
|
|
30778
30775
|
const { min: s, max: a, range: c, value: d, hasMinEdge: g, hasMaxEdge: p, maxBound: w, maxOffset: C, centerMinEdge: E, centerMaxEdge: $ } = t;
|
|
@@ -31069,7 +31066,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
31069
31066
|
N.setToMin(Je, t);
|
|
31070
31067
|
}, Me = (Je) => {
|
|
31071
31068
|
N.setToMax(Je, t);
|
|
31072
|
-
},
|
|
31069
|
+
}, xe = (Je) => {
|
|
31073
31070
|
const Ge = () => {
|
|
31074
31071
|
_s(Je, t, "thumb").each((At) => {
|
|
31075
31072
|
const Wn = $.value.get();
|
|
@@ -31080,7 +31077,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
31080
31077
|
}, ve = (Je, Ge) => {
|
|
31081
31078
|
Ge.stop(), t.mouseIsDown.set(!0), t.onDragStart(Je, d(Je));
|
|
31082
31079
|
}, Oe = (Je, Ge) => {
|
|
31083
|
-
Ge.stop(), t.onDragEnd(Je, d(Je)),
|
|
31080
|
+
Ge.stop(), t.onDragEnd(Je, d(Je)), xe(Je);
|
|
31084
31081
|
}, dt = (Je) => {
|
|
31085
31082
|
_s(Je, t, "spectrum").map(mn.focusIn);
|
|
31086
31083
|
};
|
|
@@ -31100,7 +31097,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
31100
31097
|
setValue: W
|
|
31101
31098
|
}
|
|
31102
31099
|
}),
|
|
31103
|
-
Dc.config({ channels: { [G2()]: { onReceive:
|
|
31100
|
+
Dc.config({ channels: { [G2()]: { onReceive: xe } } })
|
|
31104
31101
|
]),
|
|
31105
31102
|
events: As([
|
|
31106
31103
|
Qe(sy(), (Je, Ge) => {
|
|
@@ -31254,7 +31251,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
31254
31251
|
validateOnLoad: !1
|
|
31255
31252
|
}
|
|
31256
31253
|
}), g = (H, W, Q, de, Me) => {
|
|
31257
|
-
const
|
|
31254
|
+
const xe = t(iy + "range"), ve = Qo.parts.label({
|
|
31258
31255
|
dom: {
|
|
31259
31256
|
tag: "label",
|
|
31260
31257
|
attributes: { "aria-label": de }
|
|
@@ -31278,7 +31275,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
31278
31275
|
}), dt = [
|
|
31279
31276
|
ve,
|
|
31280
31277
|
Oe
|
|
31281
|
-
], Je = W !== "hex" ? [Qo.parts["aria-descriptor"]({ text:
|
|
31278
|
+
], Je = W !== "hex" ? [Qo.parts["aria-descriptor"]({ text: xe })] : [], Ge = dt.concat(Je);
|
|
31282
31279
|
return {
|
|
31283
31280
|
dom: {
|
|
31284
31281
|
tag: "div",
|
|
@@ -31319,10 +31316,10 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
31319
31316
|
hex: gn(D.some("ffffff"))
|
|
31320
31317
|
}, W = (Sn, Yo) => {
|
|
31321
31318
|
const bn = Zw(Yo);
|
|
31322
|
-
w(Sn, bn),
|
|
31319
|
+
w(Sn, bn), xe(bn);
|
|
31323
31320
|
}, Q = (Sn) => H[Sn].get(), de = (Sn, Yo) => {
|
|
31324
31321
|
H[Sn].set(Yo);
|
|
31325
|
-
}, Me = () => Q("red").bind((Sn) => Q("green").bind((Yo) => Q("blue").map((bn) => n0(Sn, Yo, bn, 1)))),
|
|
31322
|
+
}, Me = () => Q("red").bind((Sn) => Q("green").bind((Yo) => Q("blue").map((bn) => n0(Sn, Yo, bn, 1)))), xe = (Sn) => {
|
|
31326
31323
|
const Yo = Sn.red, bn = Sn.green, Ro = Sn.blue;
|
|
31327
31324
|
de("red", D.some(Yo)), de("green", D.some(bn)), de("blue", D.some(Ro));
|
|
31328
31325
|
}, ve = (Sn, Yo) => {
|
|
@@ -31333,7 +31330,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
31333
31330
|
const bn = N$(Yo);
|
|
31334
31331
|
de("hex", D.some(bn.value));
|
|
31335
31332
|
const Ro = Zw(bn);
|
|
31336
|
-
w(Sn, Ro),
|
|
31333
|
+
w(Sn, Ro), xe(Ro), dn(Sn, ax, { hex: bn }), E(Sn, bn);
|
|
31337
31334
|
}, dt = (Sn, Yo, bn) => {
|
|
31338
31335
|
const Ro = parseInt(bn, 10);
|
|
31339
31336
|
de(Yo, D.some(Ro)), Me().each((Dt) => {
|
|
@@ -31433,7 +31430,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
31433
31430
|
Math.floor(Me.x),
|
|
31434
31431
|
Math.floor(100 - Me.y)
|
|
31435
31432
|
])), dn(Q, lx, { value: Me });
|
|
31436
|
-
}, H = (Q, de, Me,
|
|
31433
|
+
}, H = (Q, de, Me, xe) => {
|
|
31437
31434
|
d(Me.element.dom, WE(Cd));
|
|
31438
31435
|
}, W = xt([
|
|
31439
31436
|
yo.config({ find: D.some }),
|
|
@@ -31499,11 +31496,11 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
31499
31496
|
N.getOpt(Ge).each((At) => {
|
|
31500
31497
|
p.setThumb(At, vt);
|
|
31501
31498
|
});
|
|
31502
|
-
},
|
|
31499
|
+
}, xe = (Ge, vt) => {
|
|
31503
31500
|
const At = Zw(Ge);
|
|
31504
31501
|
E.paletteRgba.set(At), E.paletteHue.set(vt);
|
|
31505
31502
|
}, ve = (Ge, vt, At, Wn) => {
|
|
31506
|
-
|
|
31503
|
+
xe(vt, At), pt(Wn, (jt) => {
|
|
31507
31504
|
jt(Ge, vt, At);
|
|
31508
31505
|
});
|
|
31509
31506
|
}, Oe = () => {
|
|
@@ -32625,8 +32622,8 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
32625
32622
|
}),
|
|
32626
32623
|
Ea(),
|
|
32627
32624
|
Un("size-input-events2", [Qe(c, (N, H) => {
|
|
32628
|
-
const W = H.event.isField1, Q = W ? Li.getField1(N) : Li.getField2(N), de = W ? Li.getField2(N) : Li.getField1(N), Me = Q.map(Vt.getValue).getOr(""),
|
|
32629
|
-
a = wH(Me,
|
|
32625
|
+
const W = H.event.isField1, Q = W ? Li.getField1(N) : Li.getField2(N), de = W ? Li.getField2(N) : Li.getField1(N), Me = Q.map(Vt.getValue).getOr(""), xe = de.map(Vt.getValue).getOr("");
|
|
32626
|
+
a = wH(Me, xe);
|
|
32630
32627
|
})])
|
|
32631
32628
|
])
|
|
32632
32629
|
});
|
|
@@ -33351,8 +33348,8 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
33351
33348
|
BS(t, p(N), N, Q, c, de, Bc.HighlightMenuAndItem).get(he);
|
|
33352
33349
|
}
|
|
33353
33350
|
}, g = pE(t), p = (N) => (H) => H.map((W) => {
|
|
33354
|
-
const Q = Gi(W.menus), de = Te(Q, (
|
|
33355
|
-
return Vt.getState(N).update(tt(de, (
|
|
33351
|
+
const Q = Gi(W.menus), de = Te(Q, (xe) => so(xe.items, (ve) => ve.type === "item"));
|
|
33352
|
+
return Vt.getState(N).update(tt(de, (xe) => xe.data)), W;
|
|
33356
33353
|
}), w = (N) => yo.getCurrent(N), C = "typeaheadevents", E = [
|
|
33357
33354
|
_n.config({}),
|
|
33358
33355
|
Vt.config({
|
|
@@ -33379,9 +33376,9 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
33379
33376
|
onStream: (N, H) => {
|
|
33380
33377
|
const W = Fr.getCoupled(N, "sandbox");
|
|
33381
33378
|
if (_n.isFocused(N) && qd(N.element).length >= t.minChars) {
|
|
33382
|
-
const de = w(W).bind((
|
|
33379
|
+
const de = w(W).bind((xe) => Ho.getHighlighted(xe).map(Vt.getValue));
|
|
33383
33380
|
t.previewing.set(!0);
|
|
33384
|
-
const Me = (
|
|
33381
|
+
const Me = (xe) => {
|
|
33385
33382
|
w(W).each((ve) => {
|
|
33386
33383
|
de.fold(() => {
|
|
33387
33384
|
t.model.selectsOver && Ho.highlightFirst(ve);
|
|
@@ -33666,8 +33663,8 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
33666
33663
|
}, H = [], W = s.translate(t.text.getOr("")), Q = Sr(W), Me = [
|
|
33667
33664
|
...Jv([d.map((ve) => ve.asSpec())]),
|
|
33668
33665
|
...t.text.isSome() ? [Q] : []
|
|
33669
|
-
],
|
|
33670
|
-
return Ja.sketch(
|
|
33666
|
+
], xe = gk(w, D.some(g), H, N, Me, s);
|
|
33667
|
+
return Ja.sketch(xe);
|
|
33671
33668
|
}, hk = (t, s, a) => {
|
|
33672
33669
|
if (UH(t, s)) {
|
|
33673
33670
|
const c = () => p, d = t, g = {
|
|
@@ -33873,7 +33870,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
33873
33870
|
[Q.asSpec()],
|
|
33874
33871
|
H.map(() => de.asSpec()).toArray()
|
|
33875
33872
|
])
|
|
33876
|
-
}),
|
|
33873
|
+
}), xe = (ve) => {
|
|
33877
33874
|
yo.getCurrent(ve).each((Oe) => {
|
|
33878
33875
|
const dt = Vt.getValue(Oe), Je = {
|
|
33879
33876
|
fieldname: t.name,
|
|
@@ -33900,7 +33897,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
33900
33897
|
}
|
|
33901
33898
|
}),
|
|
33902
33899
|
Ea(),
|
|
33903
|
-
Un("url-input-events", [Qe(W,
|
|
33900
|
+
Un("url-input-events", [Qe(W, xe)])
|
|
33904
33901
|
])
|
|
33905
33902
|
});
|
|
33906
33903
|
}, xA = (t, s) => {
|
|
@@ -34595,7 +34592,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
34595
34592
|
});
|
|
34596
34593
|
}, de = (Ge) => c(Ud(), C2(Ge)), Me = (Ge) => {
|
|
34597
34594
|
d(ph(), {}), c(id(), C2(Ge));
|
|
34598
|
-
},
|
|
34595
|
+
}, xe = Ie(Ae.fromDom(t.getElement())), ve = Qb(xe, "scroll", (Ge) => {
|
|
34599
34596
|
requestAnimationFrame(() => {
|
|
34600
34597
|
const vt = t.getContainer();
|
|
34601
34598
|
if (vt != null) {
|
|
@@ -34640,8 +34637,8 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
34640
34637
|
const $ = Fn.contents(E), N = C.length, H = N - $.length, W = H > 0 ? ho(H, () => t.makeItem()) : [], Q = $.slice(N);
|
|
34641
34638
|
pt(Q, (Me) => Fn.remove(E, Me)), pt(W, (Me) => Fn.append(E, Me));
|
|
34642
34639
|
const de = Fn.contents(E);
|
|
34643
|
-
pt(de, (Me,
|
|
34644
|
-
t.setupItem(w, Me, C[
|
|
34640
|
+
pt(de, (Me, xe) => {
|
|
34641
|
+
t.setupItem(w, Me, C[xe], xe);
|
|
34645
34642
|
});
|
|
34646
34643
|
});
|
|
34647
34644
|
}, g = t.shell ? {
|
|
@@ -34982,8 +34979,8 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
34982
34979
|
if (de && E < Q)
|
|
34983
34980
|
Lg(g.left, E - H, a);
|
|
34984
34981
|
else if (Me && $ > W) {
|
|
34985
|
-
const
|
|
34986
|
-
Lg(g.left,
|
|
34982
|
+
const xe = E - d + C + H;
|
|
34983
|
+
Lg(g.left, xe, a);
|
|
34987
34984
|
}
|
|
34988
34985
|
}, Ek = (t, s) => no(sr.getModes(t), s), X1 = (t) => {
|
|
34989
34986
|
const s = (c) => Md(c) + (parseInt(ls(c, "margin-top"), 10) || 0) + (parseInt(ls(c, "margin-bottom"), 10) || 0), a = t.element;
|
|
@@ -35248,20 +35245,20 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
35248
35245
|
}));
|
|
35249
35246
|
return lw(hP, fz, d, hz, a);
|
|
35250
35247
|
}, hz = (t, s) => {
|
|
35251
|
-
const a = (de) => ow(t), c = (de, Me) => _s(de, t, Me), d = (de, Me) => (
|
|
35252
|
-
pt(
|
|
35248
|
+
const a = (de) => ow(t), c = (de, Me) => _s(de, t, Me), d = (de, Me) => (xe, ve) => _s(xe, t, ve).map((Oe) => de(Oe, ve)).getOr(Me), g = (de) => (Me, xe) => {
|
|
35249
|
+
pt(xe, (ve) => de(Me, ve));
|
|
35253
35250
|
}, p = (de, Me) => js(de.element, "aria-hidden") !== "true", w = (de, Me) => {
|
|
35254
35251
|
if (!p(de)) {
|
|
35255
|
-
const
|
|
35256
|
-
Co(
|
|
35252
|
+
const xe = de.element;
|
|
35253
|
+
Co(xe, "display"), le(xe, "aria-hidden"), dn(de, M0(), {
|
|
35257
35254
|
name: Me,
|
|
35258
35255
|
visible: !0
|
|
35259
35256
|
});
|
|
35260
35257
|
}
|
|
35261
35258
|
}, C = (de, Me) => {
|
|
35262
35259
|
if (p(de)) {
|
|
35263
|
-
const
|
|
35264
|
-
Yt(
|
|
35260
|
+
const xe = de.element;
|
|
35261
|
+
Yt(xe, "display", "none"), It(xe, "aria-hidden", "true"), dn(de, M0(), {
|
|
35265
35262
|
name: Me,
|
|
35266
35263
|
visible: !1
|
|
35267
35264
|
});
|
|
@@ -36184,7 +36181,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
36184
36181
|
tag: "button",
|
|
36185
36182
|
classes: E.concat(...t.icon.isSome() && !de ? ["tox-button--icon"] : []).concat(...de ? ["tox-button--icon-and-text"] : []).concat(...t.borderless ? ["tox-button--naked"] : []).concat(...t.type === "togglebutton" && t.active ? ["tox-button--enabled"] : []),
|
|
36186
36183
|
attributes: H
|
|
36187
|
-
},
|
|
36184
|
+
}, xe = [], ve = gk(C, D.some(w), xe, Me, Q, s);
|
|
36188
36185
|
return Ja.sketch(ve);
|
|
36189
36186
|
}, lD = (t, s) => qz(t, s), vy = (t, s) => ({
|
|
36190
36187
|
dom: {
|
|
@@ -37062,7 +37059,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
37062
37059
|
]
|
|
37063
37060
|
}
|
|
37064
37061
|
});
|
|
37065
|
-
}, de = Jo(Q((ve) => $(!1, ve), "minus", "Decrease font size", [])), Me = Jo(Q((ve) => N(!1, ve), "plus", "Increase font size", [])),
|
|
37062
|
+
}, de = Jo(Q((ve) => $(!1, ve), "minus", "Decrease font size", [])), Me = Jo(Q((ve) => N(!1, ve), "plus", "Increase font size", [])), xe = Jo({
|
|
37066
37063
|
dom: {
|
|
37067
37064
|
tag: "div",
|
|
37068
37065
|
classes: ["tox-input-wrapper"]
|
|
@@ -37125,7 +37122,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
37125
37122
|
},
|
|
37126
37123
|
components: [
|
|
37127
37124
|
de.asSpec(),
|
|
37128
|
-
|
|
37125
|
+
xe.asSpec(),
|
|
37129
37126
|
Me.asSpec()
|
|
37130
37127
|
],
|
|
37131
37128
|
behaviours: xt([
|
|
@@ -37830,9 +37827,9 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
37830
37827
|
return (de = Os.whichSidebar(C)) !== null && de !== void 0 ? de : "";
|
|
37831
37828
|
}), t.addCommand("ToggleView", (de, Me) => {
|
|
37832
37829
|
if (Os.toggleView(C, Me)) {
|
|
37833
|
-
const
|
|
37834
|
-
g.mothership.broadcastOn([pd()], { target:
|
|
37835
|
-
ve.broadcastOn([pd()], { target:
|
|
37830
|
+
const xe = C.element;
|
|
37831
|
+
g.mothership.broadcastOn([pd()], { target: xe }), pt(p, (ve) => {
|
|
37832
|
+
ve.broadcastOn([pd()], { target: xe });
|
|
37836
37833
|
}), hn(Os.whichView(C)) && (t.focus(), t.nodeChanged(), Os.refreshToolbar(C));
|
|
37837
37834
|
}
|
|
37838
37835
|
}), t.addQueryValueHandler("ToggleView", () => {
|
|
@@ -37869,10 +37866,10 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
37869
37866
|
const s = Rw(t), a = qT(t), c = X_(t);
|
|
37870
37867
|
return _D(s).map((d) => Xk(d, a, c));
|
|
37871
37868
|
}, cW = (t) => DB(t).getOr(Rw(t)), { ToolbarLocation: nb, ToolbarMode: OB } = SI, iW = 40, uW = (t, s, a, c, d) => {
|
|
37872
|
-
const { mainUi: g, uiMotherships: p } = a, w = L1.DOM, C = Uv(t), E = Pw(t), $ = X_(t).or(DB(t)), N = c.shared.header, H = N.isPositionedAtTop, W = Hv(t), Q = W === OB.sliding || W === OB.floating, de = gn(!1), Me = () => de.get() && !t.removed,
|
|
37869
|
+
const { mainUi: g, uiMotherships: p } = a, w = L1.DOM, C = Uv(t), E = Pw(t), $ = X_(t).or(DB(t)), N = c.shared.header, H = N.isPositionedAtTop, W = Hv(t), Q = W === OB.sliding || W === OB.floating, de = gn(!1), Me = () => de.get() && !t.removed, xe = (bn) => Q ? bn.fold(ae(0), (Ro) => Ro.components().length > 1 ? Us(Ro.components()[1].element) : 0) : 0, ve = (bn) => {
|
|
37873
37870
|
switch ($w(t)) {
|
|
37874
37871
|
case nb.auto:
|
|
37875
|
-
const Ro = Os.getToolbar(g.outerContainer), Dt =
|
|
37872
|
+
const Ro = Os.getToolbar(g.outerContainer), Dt = xe(Ro), en = Us(bn.element) - Dt, On = Xs(s);
|
|
37876
37873
|
if (On.y > en)
|
|
37877
37874
|
return "top";
|
|
37878
37875
|
{
|
|
@@ -37901,7 +37898,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
37901
37898
|
});
|
|
37902
37899
|
}, Je = (bn) => {
|
|
37903
37900
|
d.on((Ro) => {
|
|
37904
|
-
const Dt = Os.getToolbar(g.outerContainer), en =
|
|
37901
|
+
const Dt = Os.getToolbar(g.outerContainer), en = xe(Dt), On = Xs(s), { top: Pn, left: yn } = Ge(t, g.outerContainer.element).fold(() => ({
|
|
37905
37902
|
top: H() ? Math.max(On.y - Us(Ro.element) + en, 0) : On.bottom,
|
|
37906
37903
|
left: On.x
|
|
37907
37904
|
}), (Mo) => {
|
|
@@ -38415,7 +38412,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
38415
38412
|
const jt = $.element;
|
|
38416
38413
|
Co(jt, "display"), Q() ? Yt(jt, "display", "none") : (C.set(0), dr.reposition($));
|
|
38417
38414
|
}
|
|
38418
|
-
},
|
|
38415
|
+
}, xe = (jt) => ({
|
|
38419
38416
|
dom: {
|
|
38420
38417
|
tag: "div",
|
|
38421
38418
|
classes: ["tox-pop__dialog"]
|
|
@@ -38434,7 +38431,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
38434
38431
|
])
|
|
38435
38432
|
}), ve = Gs(() => VB(s, (jt) => {
|
|
38436
38433
|
const Dn = Je([jt]);
|
|
38437
|
-
dn($, zB, { forwardContents:
|
|
38434
|
+
dn($, zB, { forwardContents: xe(Dn) });
|
|
38438
38435
|
})), Oe = (jt, Dn) => qk(t, {
|
|
38439
38436
|
buttons: jt,
|
|
38440
38437
|
toolbar: Dn.items,
|
|
@@ -38465,7 +38462,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
38465
38462
|
const Sn = Je(jt), Yo = jt[0].position, bn = Ge(Yo, Dn);
|
|
38466
38463
|
E.set(Yo), C.set(1);
|
|
38467
38464
|
const Ro = $.element;
|
|
38468
|
-
Co(Ro, "display"), W(Dn) || (or(Ro, n4), Al.reset(a, $)), dr.showWithinBounds($,
|
|
38465
|
+
Co(Ro, "display"), W(Dn) || (or(Ro, n4), Al.reset(a, $)), dr.showWithinBounds($, xe(Sn), {
|
|
38469
38466
|
anchor: bn,
|
|
38470
38467
|
transition: {
|
|
38471
38468
|
classes: [n4],
|
|
@@ -39646,14 +39643,14 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
39646
39643
|
finish: vt
|
|
39647
39644
|
});
|
|
39648
39645
|
});
|
|
39649
|
-
}), W = b0(N), Q = b0(H), de = Tl(W.asSpec()), Me = Tl(Q.asSpec()),
|
|
39646
|
+
}), W = b0(N), Q = b0(H), de = Tl(W.asSpec()), Me = Tl(Q.asSpec()), xe = (vt, At, Wn, jt) => {
|
|
39650
39647
|
const Dn = At.dom.getBoundingClientRect();
|
|
39651
39648
|
Co(vt.element, "display");
|
|
39652
39649
|
const Sn = Hl(Ae.fromDom(t.getBody())).dom.innerHeight, Yo = Wn(Dn), bn = jt(Dn, Sn);
|
|
39653
39650
|
(Yo || bn) && Yt(vt.element, "display", "none");
|
|
39654
39651
|
}, ve = (vt, At, Wn, jt) => {
|
|
39655
39652
|
const Dn = Wn(At);
|
|
39656
|
-
ab.snapTo(vt, Dn),
|
|
39653
|
+
ab.snapTo(vt, Dn), xe(vt, At, (bn) => bn[jt] < 0, (bn, Ro) => bn[jt] > Ro);
|
|
39657
39654
|
}, Oe = (vt) => ve(de, vt, w, "top"), dt = () => g.get().each(Oe), Je = (vt) => ve(Me, vt, E, "bottom"), Ge = () => p.get().each(Je);
|
|
39658
39655
|
yi().deviceType.isTouch() && (t.on("TableSelectionChange", (vt) => {
|
|
39659
39656
|
d.get() || (eg(s, de), eg(s, Me), d.set(!0)), g.set(vt.start), p.set(vt.finish), vt.otherCells.each((At) => {
|
|
@@ -39938,7 +39935,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
39938
39935
|
tag: "div",
|
|
39939
39936
|
classes: ["tox-bottom-anchorbar"]
|
|
39940
39937
|
}
|
|
39941
|
-
}),
|
|
39938
|
+
}), xe = () => g.mainUi.get().map((yn) => yn.outerContainer).bind(Os.getHeader), ve = () => Vn.fromOption(g.dialogUi.get().map((yn) => yn.sink), "UI has not been rendered"), Oe = () => Vn.fromOption(g.popupUi.get().map((yn) => yn.sink), "(popup) UI has not been rendered"), dt = g.lazyGetInOuterOrDie("anchor bar", de.getOpt), Je = g.lazyGetInOuterOrDie("bottom anchor bar", Me.getOpt), Ge = g.lazyGetInOuterOrDie("toolbar", Os.getToolbar), vt = g.lazyGetInOuterOrDie("throbber", Os.getThrobber), At = py({
|
|
39942
39939
|
popup: Oe,
|
|
39943
39940
|
dialog: ve
|
|
39944
39941
|
}, t, dt, Je), Wn = () => {
|
|
@@ -39966,7 +39963,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
39966
39963
|
},
|
|
39967
39964
|
type: Q,
|
|
39968
39965
|
lazyToolbar: Ge,
|
|
39969
|
-
lazyHeader: () =>
|
|
39966
|
+
lazyHeader: () => xe().getOrDie("Could not find header element"),
|
|
39970
39967
|
...yn
|
|
39971
39968
|
}), Mo = Os.parts["multiple-toolbar"]({
|
|
39972
39969
|
dom: {
|
|
@@ -40035,7 +40032,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
40035
40032
|
].concat(H),
|
|
40036
40033
|
attributes: { ...Hu.isRtl() ? { dir: "rtl" } : {} }
|
|
40037
40034
|
},
|
|
40038
|
-
behaviours: xt([Al.config({ useFixed: () => d.isDocked(
|
|
40035
|
+
behaviours: xt([Al.config({ useFixed: () => d.isDocked(xe) })])
|
|
40039
40036
|
}, Mo = {
|
|
40040
40037
|
dom: { styles: { width: document.body.clientWidth + "px" } },
|
|
40041
40038
|
events: As([Qe(id(), (Od) => {
|
|
@@ -40059,7 +40056,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
40059
40056
|
attributes: { ...Hu.isRtl() ? { dir: "rtl" } : {} }
|
|
40060
40057
|
},
|
|
40061
40058
|
behaviours: xt([Al.config({
|
|
40062
|
-
useFixed: () => d.isDocked(
|
|
40059
|
+
useFixed: () => d.isDocked(xe),
|
|
40063
40060
|
getBounds: () => s.getPopupSinkBounds()
|
|
40064
40061
|
})])
|
|
40065
40062
|
}, Hn = Tl(yn), ks = IS(Hn);
|
|
@@ -40150,7 +40147,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
40150
40147
|
sidebar: xm,
|
|
40151
40148
|
views: S0
|
|
40152
40149
|
};
|
|
40153
|
-
Dt(Hn.outerContainer), Y8(t, Hn.mothership, Mo), d.setup(t, At.popup.shared,
|
|
40150
|
+
Dt(Hn.outerContainer), Y8(t, Hn.mothership, Mo), d.setup(t, At.popup.shared, xe), XB(t, At.popup), aZ(t, At.popup.shared.getSink, At.popup), vP(t), Dz(t, vt, At.popup.shared), WB(t, Od, ks.sink, { backstage: At.popup }), IZ(t, ks.sink);
|
|
40154
40151
|
const Nh = t.getElement(), Kx = Ro(Hn.outerContainer), oO = {
|
|
40155
40152
|
targetNode: Nh,
|
|
40156
40153
|
height: Kx
|
|
@@ -40560,10 +40557,10 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
40560
40557
|
bS("tab"),
|
|
40561
40558
|
o$,
|
|
40562
40559
|
Ec("items", P)
|
|
40563
|
-
],
|
|
40560
|
+
], oe = [
|
|
40564
40561
|
Qr,
|
|
40565
40562
|
A0("tabs", ee)
|
|
40566
|
-
], K = rn(
|
|
40563
|
+
], K = rn(oe), re = Vx, we = T7, ke = rn([
|
|
40567
40564
|
Bo("title"),
|
|
40568
40565
|
dc("body", ut("type", {
|
|
40569
40566
|
panel: F,
|
|
@@ -41538,17 +41535,17 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
41538
41535
|
de.getSystem().isConnected() && Q(de);
|
|
41539
41536
|
}, W = {
|
|
41540
41537
|
getData: () => {
|
|
41541
|
-
const Q = t.getRoot(), de = Q.getSystem().isConnected() ? t.getFormWrapper() : Q, Me = Vt.getValue(de),
|
|
41538
|
+
const Q = t.getRoot(), de = Q.getSystem().isConnected() ? t.getFormWrapper() : Q, Me = Vt.getValue(de), xe = Ko(a, (ve) => ve.get());
|
|
41542
41539
|
return {
|
|
41543
41540
|
...Me,
|
|
41544
|
-
...
|
|
41541
|
+
...xe
|
|
41545
41542
|
};
|
|
41546
41543
|
},
|
|
41547
41544
|
setData: (Q) => {
|
|
41548
41545
|
c((de) => {
|
|
41549
|
-
const Me = W.getData(),
|
|
41546
|
+
const Me = W.getData(), xe = Go(Me, Q), ve = wm(t, xe), Oe = t.getFormWrapper();
|
|
41550
41547
|
Vt.setValue(Oe, ve), ds(a, (dt, Je) => {
|
|
41551
|
-
xo(
|
|
41548
|
+
xo(xe, Je) && dt.set(xe[Je]);
|
|
41552
41549
|
});
|
|
41553
41550
|
});
|
|
41554
41551
|
},
|
|
@@ -41580,11 +41577,11 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
41580
41577
|
},
|
|
41581
41578
|
redial: (Q) => {
|
|
41582
41579
|
c((de) => {
|
|
41583
|
-
const Me = t.getId(),
|
|
41584
|
-
de.getSystem().broadcastOn([`${dy}-${Me}`],
|
|
41585
|
-
...
|
|
41580
|
+
const Me = t.getId(), xe = s(Q), ve = x4(xe.internalDialog.buttons, a);
|
|
41581
|
+
de.getSystem().broadcastOn([`${dy}-${Me}`], xe), de.getSystem().broadcastOn([`${vg}-${Me}`], xe.internalDialog), de.getSystem().broadcastOn([`${sk}-${Me}`], xe.internalDialog), de.getSystem().broadcastOn([`${K5}-${Me}`], {
|
|
41582
|
+
...xe.internalDialog,
|
|
41586
41583
|
buttons: ve
|
|
41587
|
-
}), W.setData(
|
|
41584
|
+
}), W.setData(xe.initialData);
|
|
41588
41585
|
});
|
|
41589
41586
|
},
|
|
41590
41587
|
close: () => {
|
|
@@ -41599,7 +41596,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
41599
41596
|
const c = Gt("dialog"), d = t.internalDialog, g = St(d.title, c, a), p = gn(d.size), w = el(p.get()).toArray(), C = (ve, Oe) => (p.set(Oe.internalDialog.size), _0(Oe.internalDialog.size, ve), D.some(Oe)), E = Zx({
|
|
41600
41597
|
body: d.body,
|
|
41601
41598
|
initialData: d.initialData
|
|
41602
|
-
}, c, a), $ = x4(d.buttons), N = eO($), H = pn($.length !== 0, Dd({ buttons: $ }, c, a)), W = ao(() =>
|
|
41599
|
+
}, c, a), $ = x4(d.buttons), N = eO($), H = pn($.length !== 0, Dd({ buttons: $ }, c, a)), W = ao(() => xe, ln(() => de, a.shared.providers, s), a.shared.getSink), Q = {
|
|
41603
41600
|
id: c,
|
|
41604
41601
|
header: g,
|
|
41605
41602
|
body: E,
|
|
@@ -41626,10 +41623,10 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
41626
41623
|
getFormWrapper: ve,
|
|
41627
41624
|
toggleFullscreen: Oe
|
|
41628
41625
|
};
|
|
41629
|
-
})(),
|
|
41626
|
+
})(), xe = C4(Me, s.redial, N);
|
|
41630
41627
|
return {
|
|
41631
41628
|
dialog: de,
|
|
41632
|
-
instanceApi:
|
|
41629
|
+
instanceApi: xe
|
|
41633
41630
|
};
|
|
41634
41631
|
}, nO = (t, s, a, c = !1, d) => {
|
|
41635
41632
|
const g = Gt("dialog"), p = Gt("dialog-label"), w = Gt("dialog-content"), C = t.internalDialog, E = gn(C.size), $ = el(E.get()).toArray(), N = (Ge, vt) => (E.set(vt.internalDialog.size), _0(vt.internalDialog.size, Ge), d(), D.some(vt)), H = Jo(Ne({
|
|
@@ -41638,7 +41635,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
41638
41635
|
}, g, p, a.shared.providers)), W = Jo(_g({
|
|
41639
41636
|
body: C.body,
|
|
41640
41637
|
initialData: C.initialData
|
|
41641
|
-
}, g, w, a, c)), Q = x4(C.buttons), de = eO(Q), Me = pn(Q.length !== 0, Jo(Lc({ buttons: Q }, g, a))),
|
|
41638
|
+
}, g, w, a, c)), Q = x4(C.buttons), de = eO(Q), Me = pn(Q.length !== 0, Jo(Lc({ buttons: Q }, g, a))), xe = ao(() => Je, {
|
|
41642
41639
|
onBlock: (Ge) => {
|
|
41643
41640
|
pm.block(Oe, (vt, At) => {
|
|
41644
41641
|
const Wn = H.getOpt(Oe).map((jt) => Us(jt.element));
|
|
@@ -41686,7 +41683,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
41686
41683
|
initialData: t
|
|
41687
41684
|
}),
|
|
41688
41685
|
_n.config({}),
|
|
41689
|
-
Un("execute-on-form",
|
|
41686
|
+
Un("execute-on-form", xe.concat([
|
|
41690
41687
|
Wd(dl(), (Ge, vt) => {
|
|
41691
41688
|
mn.focusIn(Ge);
|
|
41692
41689
|
}),
|
|
@@ -41780,7 +41777,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
41780
41777
|
break;
|
|
41781
41778
|
}
|
|
41782
41779
|
}, bq = (t, s, a, c) => {
|
|
41783
|
-
const d = Gt("dialog"), g = St(t.title, d, c), p = Ay(t), w = t.buttons.bind((Oe) => Oe.length === 0 ? D.none() : D.some(Dd({ buttons: Oe }, d, c))), C = xj(() => ve, ln(() =>
|
|
41780
|
+
const d = Gt("dialog"), g = St(t.title, d, c), p = Ay(t), w = t.buttons.bind((Oe) => Oe.length === 0 ? D.none() : D.some(Dd({ buttons: Oe }, d, c))), C = xj(() => ve, ln(() => xe, c.shared.providers, s)), E = {
|
|
41784
41781
|
...t.height.fold(() => ({}), (Oe) => ({
|
|
41785
41782
|
height: Oe + "px",
|
|
41786
41783
|
"max-height": Oe + "px"
|
|
@@ -41819,7 +41816,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
41819
41816
|
}
|
|
41820
41817
|
}
|
|
41821
41818
|
})
|
|
41822
|
-
],
|
|
41819
|
+
], xe = QD({
|
|
41823
41820
|
id: d,
|
|
41824
41821
|
header: g,
|
|
41825
41822
|
body: p,
|
|
@@ -41827,9 +41824,9 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
41827
41824
|
extraClasses: $,
|
|
41828
41825
|
extraBehaviours: de,
|
|
41829
41826
|
extraStyles: E
|
|
41830
|
-
}, C, c), ve = fq(
|
|
41827
|
+
}, C, c), ve = fq(xe);
|
|
41831
41828
|
return {
|
|
41832
|
-
dialog:
|
|
41829
|
+
dialog: xe,
|
|
41833
41830
|
instanceApi: ve
|
|
41834
41831
|
};
|
|
41835
41832
|
}, vq = (t) => {
|
|
@@ -41934,8 +41931,8 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
41934
41931
|
}
|
|
41935
41932
|
return C(Q, Me);
|
|
41936
41933
|
}, p = (Q, de) => w(Q, de), w = (Q, de) => {
|
|
41937
|
-
const Me = (
|
|
41938
|
-
const ve = bq(
|
|
41934
|
+
const Me = (xe) => {
|
|
41935
|
+
const ve = bq(xe, {
|
|
41939
41936
|
closeWindow: () => {
|
|
41940
41937
|
Kr.hide(ve.dialog), de(ve.instanceApi);
|
|
41941
41938
|
}
|
|
@@ -41944,11 +41941,11 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
41944
41941
|
};
|
|
41945
41942
|
return qn.openUrl(Me, Q);
|
|
41946
41943
|
}, C = (Q, de) => {
|
|
41947
|
-
const Me = (
|
|
41944
|
+
const Me = (xe, ve, Oe) => {
|
|
41948
41945
|
const dt = ve, Ge = Cj({
|
|
41949
41946
|
dataValidator: Oe,
|
|
41950
41947
|
initialData: dt,
|
|
41951
|
-
internalDialog:
|
|
41948
|
+
internalDialog: xe
|
|
41952
41949
|
}, {
|
|
41953
41950
|
redial: qn.redial,
|
|
41954
41951
|
closeWindow: () => {
|
|
@@ -41958,7 +41955,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
41958
41955
|
return Kr.show(Ge.dialog), Ge.instanceApi.setData(dt), Ge.instanceApi;
|
|
41959
41956
|
};
|
|
41960
41957
|
return qn.open(Me, Q);
|
|
41961
|
-
}, E = (Q, de, Me,
|
|
41958
|
+
}, E = (Q, de, Me, xe) => {
|
|
41962
41959
|
const ve = (Oe, dt, Je) => {
|
|
41963
41960
|
const Ge = LG(dt, Je), vt = ro(), At = t.backstages.popup.shared.header.isPositionedAtTop(), Wn = {
|
|
41964
41961
|
dataValidator: Je,
|
|
@@ -41971,13 +41968,13 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
41971
41968
|
closeWindow: () => {
|
|
41972
41969
|
vt.on(dr.hide), s.off("ResizeEditor", jt), vt.clear(), Me(Dn.instanceApi);
|
|
41973
41970
|
}
|
|
41974
|
-
}, t.backstages.popup,
|
|
41971
|
+
}, t.backstages.popup, xe.ariaAttrs, jt), Sn = Tl(dr.sketch({
|
|
41975
41972
|
lazySink: t.backstages.popup.shared.getSink,
|
|
41976
41973
|
dom: {
|
|
41977
41974
|
tag: "div",
|
|
41978
41975
|
classes: []
|
|
41979
41976
|
},
|
|
41980
|
-
fireDismissalEventInstead:
|
|
41977
|
+
fireDismissalEventInstead: xe.persistent ? { event: "doNotDismissYet" } : {},
|
|
41981
41978
|
...At ? {} : { fireRepositionEventInstead: {} },
|
|
41982
41979
|
inlineBehaviours: xt([
|
|
41983
41980
|
Un("window-manager-inline-events", [Qe(If(), (bn, Ro) => {
|
|
@@ -41995,7 +41992,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
41995
41992
|
return dr.showWithinBounds(Sn, Ti(Dn.dialog), { anchor: de }, Yo), (!a || !At) && (sr.refresh(Sn), s.on("ResizeEditor", jt)), Dn.instanceApi.setData(Ge), mn.focusIn(Dn.dialog), Dn.instanceApi;
|
|
41996
41993
|
};
|
|
41997
41994
|
return qn.open(ve, Q);
|
|
41998
|
-
}, $ = (Q, de, Me,
|
|
41995
|
+
}, $ = (Q, de, Me, xe) => {
|
|
41999
41996
|
const ve = (Oe, dt, Je) => {
|
|
42000
41997
|
const Ge = LG(dt, Je), vt = ro(), At = t.backstages.popup.shared.header.isPositionedAtTop(), Wn = {
|
|
42001
41998
|
dataValidator: Je,
|
|
@@ -42008,13 +42005,13 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
42008
42005
|
closeWindow: () => {
|
|
42009
42006
|
vt.on(dr.hide), s.off("ResizeEditor ScrollWindow ElementScroll", jt), vt.clear(), Me(Dn.instanceApi);
|
|
42010
42007
|
}
|
|
42011
|
-
}, t.backstages.popup,
|
|
42008
|
+
}, t.backstages.popup, xe.ariaAttrs, jt), Sn = Tl(dr.sketch({
|
|
42012
42009
|
lazySink: t.backstages.popup.shared.getSink,
|
|
42013
42010
|
dom: {
|
|
42014
42011
|
tag: "div",
|
|
42015
42012
|
classes: []
|
|
42016
42013
|
},
|
|
42017
|
-
fireDismissalEventInstead:
|
|
42014
|
+
fireDismissalEventInstead: xe.persistent ? { event: "doNotDismissYet" } : {},
|
|
42018
42015
|
...At ? {} : { fireRepositionEventInstead: {} },
|
|
42019
42016
|
inlineBehaviours: xt([
|
|
42020
42017
|
Un("window-manager-inline-events", [Qe(If(), (bn, Ro) => {
|
|
@@ -42103,13 +42100,13 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
42103
42100
|
})();
|
|
42104
42101
|
(function() {
|
|
42105
42102
|
var A = tinymce.util.Tools.resolve("tinymce.ModelManager");
|
|
42106
|
-
const
|
|
42103
|
+
const se = (i, m, h) => {
|
|
42107
42104
|
var v;
|
|
42108
42105
|
return h(i, m.prototype) ? !0 : ((v = i.constructor) === null || v === void 0 ? void 0 : v.name) === m.name;
|
|
42109
42106
|
}, G = (i) => {
|
|
42110
42107
|
const m = typeof i;
|
|
42111
|
-
return i === null ? "null" : m === "object" && Array.isArray(i) ? "array" : m === "object" &&
|
|
42112
|
-
}, _e = (i) => (m) => G(m) === i, ne = (i) => (m) => typeof m === i, Z = (i) => (m) => i === m,
|
|
42108
|
+
return i === null ? "null" : m === "object" && Array.isArray(i) ? "array" : m === "object" && se(i, String, (h, v) => v.isPrototypeOf(h)) ? "string" : m;
|
|
42109
|
+
}, _e = (i) => (m) => G(m) === i, ne = (i) => (m) => typeof m === i, Z = (i) => (m) => i === m, Ce = _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 = () => {
|
|
42113
42110
|
}, 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;
|
|
42114
42111
|
function oo(i, ...m) {
|
|
42115
42112
|
return (...h) => {
|
|
@@ -42343,7 +42340,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
42343
42340
|
const m = wr("ownerDocument.defaultView", i);
|
|
42344
42341
|
return X(i) && (Gi(m).prototype.isPrototypeOf(i) || /^HTML\w*Element$/.test(es(i).constructor.name));
|
|
42345
42342
|
}, xo = 8, Ar = 9, Da = 11, Nl = 1, Oa = 3, ts = (i) => i.dom.nodeName.toLowerCase(), nl = (i) => i.dom.nodeType, vl = (i) => (m) => nl(m) === i, Xo = (i) => nl(i) === xo || ts(i) === "#comment", pn = (i) => Dr(i) && bt(i.dom), Dr = vl(Nl), Il = vl(Oa), Fc = vl(Ar), mi = vl(Da), xr = (i) => (m) => Dr(m) && ts(m) === i, fr = (i, m, h) => {
|
|
42346
|
-
if (
|
|
42343
|
+
if (Ce(h) || yt(h) || eo(h))
|
|
42347
42344
|
i.setAttribute(m, h + "");
|
|
42348
42345
|
else
|
|
42349
42346
|
throw console.error("Invalid call to Attribute.set. Key ", m, ":: Value ", h, ":: Element ", i), new Error("Attribute value was not simple");
|
|
@@ -42617,7 +42614,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
42617
42614
|
const m = parseFloat(i);
|
|
42618
42615
|
return isNaN(m) ? pe.none() : pe.some(m);
|
|
42619
42616
|
}, Wr = (i) => i.style !== void 0 && lo(i.style.getPropertyValue), ga = (i, m, h) => {
|
|
42620
|
-
if (!
|
|
42617
|
+
if (!Ce(h))
|
|
42621
42618
|
throw console.error("Invalid call to CSS.set. Property ", m, ":: Value ", h, ":: Element ", i), new Error("CSS value must be a string: " + h);
|
|
42622
42619
|
Wr(i) && i.style.setProperty(m, h);
|
|
42623
42620
|
}, Hh = (i, m) => {
|
|
@@ -44930,7 +44927,7 @@ Required: ` + m.join(", "));
|
|
|
44930
44927
|
y2(i, v.dom);
|
|
44931
44928
|
});
|
|
44932
44929
|
});
|
|
44933
|
-
}, ov = (i) =>
|
|
44930
|
+
}, ov = (i) => Ce(i) && i.indexOf("%") !== -1, _3 = (i, m, h, v, S) => {
|
|
44934
44931
|
const O = Py(i), L = {
|
|
44935
44932
|
styles: O,
|
|
44936
44933
|
attributes: cd(i),
|
|
@@ -45066,7 +45063,7 @@ Required: ` + m.join(", "));
|
|
|
45066
45063
|
const Gn = ho(iu(i), Sb);
|
|
45067
45064
|
if (Gn.length === 0)
|
|
45068
45065
|
return;
|
|
45069
|
-
const qs = yr(tn, (Ta, kr) => i.formatter.has(En(kr)) &&
|
|
45066
|
+
const qs = yr(tn, (Ta, kr) => i.formatter.has(En(kr)) && Ce(Ta));
|
|
45070
45067
|
yc(qs) || (Vo(qs, (Ta, kr) => {
|
|
45071
45068
|
const Mc = En(kr);
|
|
45072
45069
|
Pe(Gn, (wh) => {
|
|
@@ -45841,7 +45838,7 @@ Required: ` + m.join(", "));
|
|
|
45841
45838
|
if (!$e(m))
|
|
45842
45839
|
throw new Error("The " + i + " fields must be an array. Was: " + m + ".");
|
|
45843
45840
|
Pe(m, (h) => {
|
|
45844
|
-
if (!
|
|
45841
|
+
if (!Ce(h))
|
|
45845
45842
|
throw new Error("The value " + h + " in the " + i + " fields was not a string.");
|
|
45846
45843
|
});
|
|
45847
45844
|
}, yh = (i, m) => {
|
|
@@ -46346,13 +46343,13 @@ Required: ` + m.join(", "));
|
|
|
46346
46343
|
})();
|
|
46347
46344
|
(function() {
|
|
46348
46345
|
var A = tinymce.util.Tools.resolve("tinymce.PluginManager");
|
|
46349
|
-
const
|
|
46346
|
+
const se = (_, M, U) => {
|
|
46350
46347
|
var ce;
|
|
46351
46348
|
return U(_, M.prototype) ? !0 : ((ce = _.constructor) === null || ce === void 0 ? void 0 : ce.name) === M.name;
|
|
46352
46349
|
}, G = (_) => {
|
|
46353
46350
|
const M = typeof _;
|
|
46354
|
-
return _ === null ? "null" : M === "object" && Array.isArray(_) ? "array" : M === "object" &&
|
|
46355
|
-
}, _e = (_) => (M) => G(M) === _, ne = (_) => (M) => typeof M === _, Z = _e("string"),
|
|
46351
|
+
return _ === null ? "null" : M === "object" && Array.isArray(_) ? "array" : M === "object" && se(_, String, (U, ce) => ce.isPrototypeOf(U)) ? "string" : M;
|
|
46352
|
+
}, _e = (_) => (M) => G(M) === _, ne = (_) => (M) => typeof M === _, Z = _e("string"), Ce = _e("object"), X = _e("array"), $e = ne("boolean"), lt = (_) => _ == null, yt = (_) => !lt(_), hn = ne("function"), Et = ne("number"), io = () => {
|
|
46356
46353
|
}, lo = (_, M) => (U) => _(M(U)), eo = (_) => () => _, Ot = (_, M) => _ === M;
|
|
46357
46354
|
function Ls(_, ...M) {
|
|
46358
46355
|
return (...U) => {
|
|
@@ -46557,7 +46554,7 @@ Required: ` + m.join(", "));
|
|
|
46557
46554
|
return U;
|
|
46558
46555
|
}, nr = Object.getPrototypeOf, bs = (_) => yr("HTMLElement", _), ji = (_) => {
|
|
46559
46556
|
const M = vr("ownerDocument.defaultView", _);
|
|
46560
|
-
return
|
|
46557
|
+
return Ce(_) && (bs(M).prototype.isPrototypeOf(_) || /^HTML\w*Element$/.test(nr(_).constructor.name));
|
|
46561
46558
|
}, ds = (_) => _.dom.nodeName.toLowerCase(), Ko = (_) => _.dom.nodeType, yc = (_) => (M) => Ko(M) === _, to = (_) => Ko(_) === z || ds(_) === "#comment", vs = (_) => wr(_) && ji(_.dom), wr = yc(rs), Bl = yc(Wo), di = yc(tl), es = yc(so), Gi = (_) => (M) => wr(M) && ds(M) === _, bt = (_) => wn.fromDom(_.dom.ownerDocument), xo = (_) => di(_) ? _ : bt(_), Ar = (_) => kt.from(_.dom.parentNode).map(wn.fromDom), Da = (_) => kt.from(_.dom.parentElement).map(wn.fromDom), Nl = (_) => kt.from(_.dom.nextSibling).map(wn.fromDom), Oa = (_) => Ze(_.dom.childNodes, wn.fromDom), ts = (_, M) => {
|
|
46562
46559
|
const U = _.dom.childNodes;
|
|
46563
46560
|
return kt.from(U[M]).map(wn.fromDom);
|
|
@@ -47185,7 +47182,7 @@ Required: ` + m.join(", "));
|
|
|
47185
47182
|
const ce = Pa(_);
|
|
47186
47183
|
if (ja(_, ce))
|
|
47187
47184
|
return;
|
|
47188
|
-
const be = Yu(_), it =
|
|
47185
|
+
const be = Yu(_), it = Ce(U) ? U : {};
|
|
47189
47186
|
be.length > 0 ? hb(_, ce, be, M, it) : Hg(_, ce, M, it);
|
|
47190
47187
|
}, Mm = ea.DOM, Id = (_, M) => {
|
|
47191
47188
|
const U = M.parentElement;
|
|
@@ -47322,7 +47319,7 @@ Required: ` + m.join(", "));
|
|
|
47322
47319
|
}), Mr = (_, M) => {
|
|
47323
47320
|
const U = Pa(_);
|
|
47324
47321
|
U === null || ja(_, U) || _.undoManager.transact(() => {
|
|
47325
|
-
|
|
47322
|
+
Ce(M.styles) && _.dom.setStyles(U, M.styles), Ce(M.attrs) && $d(M.attrs, (ce, be) => _.dom.setAttrib(U, be, ce));
|
|
47326
47323
|
});
|
|
47327
47324
|
}, Fd = (_) => {
|
|
47328
47325
|
const M = _t(Lh(_).split("")), U = Ze(M, (ce, be) => {
|
|
@@ -47427,7 +47424,7 @@ Required: ` + m.join(", "));
|
|
|
47427
47424
|
}), _.addCommand("RemoveList", () => {
|
|
47428
47425
|
Bg(_);
|
|
47429
47426
|
}), Gc(_), _.addCommand("mceListUpdate", (M, U) => {
|
|
47430
|
-
|
|
47427
|
+
Ce(U) && Mr(_, U);
|
|
47431
47428
|
}), _.addQueryStateHandler("InsertUnorderedList", Go(_, "UL")), _.addQueryStateHandler("InsertOrderedList", Go(_, "OL")), _.addQueryStateHandler("InsertDefinitionList", Go(_, "DL"));
|
|
47432
47429
|
};
|
|
47433
47430
|
var cl = tinymce.util.Tools.resolve("tinymce.html.Node");
|
|
@@ -47494,13 +47491,13 @@ Required: ` + m.join(", "));
|
|
|
47494
47491
|
})();
|
|
47495
47492
|
(function() {
|
|
47496
47493
|
var A = tinymce.util.Tools.resolve("tinymce.PluginManager");
|
|
47497
|
-
const
|
|
47494
|
+
const se = (q, ge, Ee) => {
|
|
47498
47495
|
var Ie;
|
|
47499
47496
|
return Ee(q, ge.prototype) ? !0 : ((Ie = q.constructor) === null || Ie === void 0 ? void 0 : Ie.name) === ge.name;
|
|
47500
47497
|
}, G = (q) => {
|
|
47501
47498
|
const ge = typeof q;
|
|
47502
|
-
return q === null ? "null" : ge === "object" && Array.isArray(q) ? "array" : ge === "object" &&
|
|
47503
|
-
}, _e = (q) => (ge) => G(ge) === q, ne = (q) => (ge) => typeof ge === q, Z = (q) => (ge) => q === ge,
|
|
47499
|
+
return q === null ? "null" : ge === "object" && Array.isArray(q) ? "array" : ge === "object" && se(q, String, (Ee, Ie) => Ie.isPrototypeOf(Ee)) ? "string" : ge;
|
|
47500
|
+
}, _e = (q) => (ge) => G(ge) === q, ne = (q) => (ge) => typeof ge === q, Z = (q) => (ge) => q === ge, Ce = _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) => {
|
|
47504
47501
|
if ($e(q)) {
|
|
47505
47502
|
for (let Ee = 0, Ie = q.length; Ee < Ie; ++Ee)
|
|
47506
47503
|
if (!ge(q[Ee]))
|
|
@@ -47621,7 +47618,7 @@ Required: ` + m.join(", "));
|
|
|
47621
47618
|
const ge = q.options.register;
|
|
47622
47619
|
ge("link_assume_external_targets", {
|
|
47623
47620
|
processor: (Ee) => {
|
|
47624
|
-
const Ie =
|
|
47621
|
+
const Ie = Ce(Ee) || yt(Ee);
|
|
47625
47622
|
return Ie ? Ee === !0 ? {
|
|
47626
47623
|
value: 1,
|
|
47627
47624
|
valid: Ie
|
|
@@ -47640,7 +47637,7 @@ Required: ` + m.join(", "));
|
|
|
47640
47637
|
}), ge("link_context_toolbar", {
|
|
47641
47638
|
processor: "boolean",
|
|
47642
47639
|
default: !1
|
|
47643
|
-
}), ge("link_list", { processor: (Ee) =>
|
|
47640
|
+
}), ge("link_list", { processor: (Ee) => Ce(Ee) || io(Ee) || lo(Ee, X) }), ge("link_default_target", { processor: "string" }), ge("link_default_protocol", {
|
|
47644
47641
|
processor: "string",
|
|
47645
47642
|
default: "https"
|
|
47646
47643
|
}), ge("link_target_list", {
|
|
@@ -47664,7 +47661,7 @@ Required: ` + m.join(", "));
|
|
|
47664
47661
|
});
|
|
47665
47662
|
}, ot = D("link_assume_external_targets"), Ht = D("link_context_toolbar"), _t = D("link_list"), Pe = D("link_default_target"), no = D("link_default_protocol"), Ys = D("link_target_list"), ho = D("link_rel_list"), br = D("link_class_list"), tt = D("link_title"), pt = D("allow_unsafe_link_target"), z = D("link_quicklink");
|
|
47666
47663
|
var tl = tinymce.util.Tools.resolve("tinymce.util.Tools");
|
|
47667
|
-
const so = (q) =>
|
|
47664
|
+
const so = (q) => Ce(q.value) ? q.value : "", rs = (q) => Ce(q.text) ? q.text : Ce(q.title) ? q.title : "", Wo = (q, ge) => {
|
|
47668
47665
|
const Ee = [];
|
|
47669
47666
|
return tl.each(q, (Ie) => {
|
|
47670
47667
|
const ft = rs(Ie);
|
|
@@ -47923,7 +47920,7 @@ Required: ` + m.join(", "));
|
|
|
47923
47920
|
}, ns = { getLinks: (q) => {
|
|
47924
47921
|
const ge = (Ie) => q.convertURL(Ie.value || Ie.url || "", "href"), Ee = _t(q);
|
|
47925
47922
|
return new Promise((Ie) => {
|
|
47926
|
-
|
|
47923
|
+
Ce(Ee) ? fetch(Ee).then((ft) => ft.ok ? ft.text().then(Gu) : Promise.reject()).then(Ie, () => Ie(un.none())) : io(Ee) ? Ee((ft) => Ie(un.some(ft))) : Ie(un.from(Ee));
|
|
47927
47924
|
}).then((Ie) => Ie.bind(Ke.sanitizeWith(ge)).map((ft) => ft.length > 0 ? [{
|
|
47928
47925
|
text: "None",
|
|
47929
47926
|
value: ""
|
|
@@ -48251,13 +48248,13 @@ Required: ` + m.join(", "));
|
|
|
48251
48248
|
})();
|
|
48252
48249
|
(function() {
|
|
48253
48250
|
var A = tinymce.util.Tools.resolve("tinymce.PluginManager");
|
|
48254
|
-
const
|
|
48251
|
+
const se = Object.getPrototypeOf, G = (I, J, le) => {
|
|
48255
48252
|
var Fe;
|
|
48256
48253
|
return le(I, J.prototype) ? !0 : ((Fe = I.constructor) === null || Fe === void 0 ? void 0 : Fe.name) === J.name;
|
|
48257
48254
|
}, _e = (I) => {
|
|
48258
48255
|
const J = typeof I;
|
|
48259
48256
|
return I === null ? "null" : J === "object" && Array.isArray(I) ? "array" : J === "object" && G(I, String, (le, Fe) => Fe.isPrototypeOf(le)) ? "string" : J;
|
|
48260
|
-
}, ne = (I) => (J) => _e(J) === I, Z = (I) => (J) => typeof J === I,
|
|
48257
|
+
}, ne = (I) => (J) => _e(J) === I, Z = (I) => (J) => typeof J === I, Ce = (I) => (J) => I === J, X = (I, J) => lt(I) && G(I, J, (le, Fe) => se(le) === Fe), $e = ne("string"), lt = ne("object"), yt = (I) => X(I, Object), hn = ne("array"), Et = Ce(null), io = Z("boolean"), lo = (I) => I == null, eo = (I) => !lo(I), Ot = Z("function"), Ls = Z("number"), un = (I, J) => {
|
|
48261
48258
|
if (hn(I)) {
|
|
48262
48259
|
for (let le = 0, Fe = I.length; le < Fe; ++le)
|
|
48263
48260
|
if (!J(I[le]))
|
|
@@ -49120,13 +49117,13 @@ Required: ` + m.join(", "));
|
|
|
49120
49117
|
})();
|
|
49121
49118
|
(function() {
|
|
49122
49119
|
var A = tinymce.util.Tools.resolve("tinymce.PluginManager");
|
|
49123
|
-
const
|
|
49120
|
+
const se = (x, T, V) => {
|
|
49124
49121
|
var Y;
|
|
49125
49122
|
return V(x, T.prototype) ? !0 : ((Y = x.constructor) === null || Y === void 0 ? void 0 : Y.name) === T.name;
|
|
49126
49123
|
}, G = (x) => {
|
|
49127
49124
|
const T = typeof x;
|
|
49128
|
-
return x === null ? "null" : T === "object" && Array.isArray(x) ? "array" : T === "object" &&
|
|
49129
|
-
}, _e = (x) => (T) => G(T) === x, ne = (x) => (T) => typeof T === x, Z = (x) => (T) => x === T,
|
|
49125
|
+
return x === null ? "null" : T === "object" && Array.isArray(x) ? "array" : T === "object" && se(x, String, (V, Y) => Y.isPrototypeOf(V)) ? "string" : T;
|
|
49126
|
+
}, _e = (x) => (T) => G(T) === x, ne = (x) => (T) => typeof T === x, Z = (x) => (T) => x === T, Ce = _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 = () => {
|
|
49130
49127
|
}, eo = (x, T) => (V) => x(T(V)), Ot = (x) => () => x, Ls = (x) => x, un = (x, T) => x === T;
|
|
49131
49128
|
function he(x, ...T) {
|
|
49132
49129
|
return (...V) => {
|
|
@@ -49414,7 +49411,7 @@ Required: ` + m.join(", "));
|
|
|
49414
49411
|
T(Y) && (V = V.concat([Y])), V = V.concat(gi(Y, T));
|
|
49415
49412
|
}), V;
|
|
49416
49413
|
}, xc = (x, T) => wc(x, (V) => vs(V, T)), Po = (x, T) => Bl(T, x), ea = (x, T, V) => {
|
|
49417
|
-
if (
|
|
49414
|
+
if (Ce(V) || $e(V) || io(V))
|
|
49418
49415
|
x.setAttribute(T, V + "");
|
|
49419
49416
|
else
|
|
49420
49417
|
throw console.error("Invalid call to Attribute.set. Key ", T, ":: Value ", V, ":: Element ", x), new Error("Attribute value was not simple");
|
|
@@ -49444,7 +49441,7 @@ Required: ` + m.join(", "));
|
|
|
49444
49441
|
const T = parseFloat(x);
|
|
49445
49442
|
return isNaN(T) ? ae.none() : ae.some(T);
|
|
49446
49443
|
}, hi = (x) => x.style !== void 0 && Et(x.style.getPropertyValue), bu = (x, T, V) => {
|
|
49447
|
-
if (!
|
|
49444
|
+
if (!Ce(V))
|
|
49448
49445
|
throw console.error("Invalid call to CSS.set. Property ", T, ":: Value ", V, ":: Element ", x), new Error("CSS value must be a string: " + V);
|
|
49449
49446
|
hi(x) && x.style.setProperty(T, V);
|
|
49450
49447
|
}, Ku = (x, T) => {
|
|
@@ -50679,7 +50676,7 @@ Required: ` + T.join(", "));
|
|
|
50679
50676
|
return Y.concat(ye).concat(je).concat(gt).concat(Mt);
|
|
50680
50677
|
}, yb = (x, T, V, Y) => {
|
|
50681
50678
|
if (T.tagName === "TD" || T.tagName === "TH")
|
|
50682
|
-
|
|
50679
|
+
Ce(V) && hn(Y) ? x.setStyle(T, V, Y) : x.setStyles(T, V);
|
|
50683
50680
|
else if (T.children)
|
|
50684
50681
|
for (let ye = 0; ye < T.children.length; ye++)
|
|
50685
50682
|
yb(x, T.children[ye], V, Y);
|
|
@@ -51285,7 +51282,7 @@ Required: ` + T.join(", "));
|
|
|
51285
51282
|
})();
|
|
51286
51283
|
(function() {
|
|
51287
51284
|
var A = tinymce.util.Tools.resolve("tinymce.PluginManager");
|
|
51288
|
-
const
|
|
51285
|
+
const se = (X, $e) => {
|
|
51289
51286
|
X.focus(), X.undoManager.transact(() => {
|
|
51290
51287
|
X.setContent($e);
|
|
51291
51288
|
}), X.selection.setCursorLocation(), X.nodeChanged();
|
|
@@ -51316,7 +51313,7 @@ Required: ` + T.join(", "));
|
|
|
51316
51313
|
],
|
|
51317
51314
|
initialData: { code: $e },
|
|
51318
51315
|
onSubmit: (lt) => {
|
|
51319
|
-
|
|
51316
|
+
se(X, lt.getData().code), lt.close();
|
|
51320
51317
|
}
|
|
51321
51318
|
});
|
|
51322
51319
|
}, ne = (X) => {
|
|
@@ -51335,10 +51332,10 @@ Required: ` + T.join(", "));
|
|
|
51335
51332
|
onAction: $e
|
|
51336
51333
|
});
|
|
51337
51334
|
};
|
|
51338
|
-
var
|
|
51335
|
+
var Ce = () => {
|
|
51339
51336
|
A.add("code", (X) => (ne(X), Z(X), {}));
|
|
51340
51337
|
};
|
|
51341
|
-
|
|
51338
|
+
Ce();
|
|
51342
51339
|
})();
|
|
51343
51340
|
(function() {
|
|
51344
51341
|
var A = tinymce.util.Tools.resolve("tinymce.PluginManager");
|
|
@@ -51349,7 +51346,7 @@ Required: ` + T.join(", "));
|
|
|
51349
51346
|
Te[wn] = Rt(qo, wn);
|
|
51350
51347
|
}
|
|
51351
51348
|
return Te;
|
|
51352
|
-
},
|
|
51349
|
+
}, Ce = {
|
|
51353
51350
|
aletter: "[A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-׳ؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆༀཀ-ཇཉ-ཬྈ-ྌႠ-Ⴥა-ჺჼᄀ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᨀ-ᨖᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᯀ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⒶ-ⓩⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⴀ-ⴥⴰ-ⵥⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〻〼ㄅ-ㄭㄱ-ㆎㆠ-ㆺꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐꞑꞠ-ꞩꟺ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]",
|
|
51354
51351
|
midnumlet: "[-'\\.‘’․﹒'.]",
|
|
51355
51352
|
midletter: "[:··״‧︓﹕:]",
|
|
@@ -51379,20 +51376,20 @@ Required: ` + T.join(", "));
|
|
|
51379
51376
|
AT: 12,
|
|
51380
51377
|
OTHER: 13
|
|
51381
51378
|
}, $e = [
|
|
51382
|
-
new RegExp(
|
|
51383
|
-
new RegExp(
|
|
51384
|
-
new RegExp(
|
|
51385
|
-
new RegExp(
|
|
51386
|
-
new RegExp(
|
|
51387
|
-
new RegExp(
|
|
51388
|
-
new RegExp(
|
|
51389
|
-
new RegExp(
|
|
51390
|
-
new RegExp(
|
|
51391
|
-
new RegExp(
|
|
51392
|
-
new RegExp(
|
|
51393
|
-
new RegExp(
|
|
51379
|
+
new RegExp(Ce.aletter),
|
|
51380
|
+
new RegExp(Ce.midnumlet),
|
|
51381
|
+
new RegExp(Ce.midletter),
|
|
51382
|
+
new RegExp(Ce.midnum),
|
|
51383
|
+
new RegExp(Ce.numeric),
|
|
51384
|
+
new RegExp(Ce.cr),
|
|
51385
|
+
new RegExp(Ce.lf),
|
|
51386
|
+
new RegExp(Ce.newline),
|
|
51387
|
+
new RegExp(Ce.extend),
|
|
51388
|
+
new RegExp(Ce.format),
|
|
51389
|
+
new RegExp(Ce.katakana),
|
|
51390
|
+
new RegExp(Ce.extendnumlet),
|
|
51394
51391
|
new RegExp("@")
|
|
51395
|
-
], lt = "", yt = new RegExp("^" +
|
|
51392
|
+
], lt = "", yt = new RegExp("^" + Ce.punctuation + "$"), hn = /^\s+$/, Et = $e, io = X.OTHER, lo = (qe) => {
|
|
51396
51393
|
let Rt = io;
|
|
51397
51394
|
const Ke = Et.length;
|
|
51398
51395
|
for (let Te = 0; Te < Ke; ++Te) {
|
|
@@ -51603,11 +51600,11 @@ const ste = { class: "font-bold ptext-lg dark:text-white" }, rte = ["id"], ate =
|
|
|
51603
51600
|
description: { type: String, default: "" }
|
|
51604
51601
|
},
|
|
51605
51602
|
emits: ["update:modelValue", "keydown"],
|
|
51606
|
-
setup(A, { expose:
|
|
51603
|
+
setup(A, { expose: se, emit: G }) {
|
|
51607
51604
|
const _e = A, ne = G, Z = co(null);
|
|
51608
|
-
let
|
|
51605
|
+
let Ce = null;
|
|
51609
51606
|
Dg(async () => {
|
|
51610
|
-
await Pj(),
|
|
51607
|
+
await Pj(), Ce && (Ce.destroy(), Ce = null), ote.init({
|
|
51611
51608
|
selector: "#" + _e.field_name,
|
|
51612
51609
|
height: 300,
|
|
51613
51610
|
plugins: [
|
|
@@ -51622,7 +51619,7 @@ const ste = { class: "font-bold ptext-lg dark:text-white" }, rte = ["id"], ate =
|
|
|
51622
51619
|
content_css: !1,
|
|
51623
51620
|
// disable import of css
|
|
51624
51621
|
setup(lt) {
|
|
51625
|
-
|
|
51622
|
+
Ce = lt, lt.on("Change", () => {
|
|
51626
51623
|
ne("update:modelValue", lt.getContent());
|
|
51627
51624
|
}), lt.on("init", () => {
|
|
51628
51625
|
lt.setContent(_e.modelValue);
|
|
@@ -51630,9 +51627,9 @@ const ste = { class: "font-bold ptext-lg dark:text-white" }, rte = ["id"], ate =
|
|
|
51630
51627
|
}
|
|
51631
51628
|
});
|
|
51632
51629
|
}), Z7(() => {
|
|
51633
|
-
|
|
51630
|
+
Ce && (Ce.destroy(), Ce = null);
|
|
51634
51631
|
}), Ag(() => _e.modelValue, (lt) => {
|
|
51635
|
-
|
|
51632
|
+
Ce && Ce.getContent() !== lt && Ce.setContent(lt);
|
|
51636
51633
|
});
|
|
51637
51634
|
const $e = pu({
|
|
51638
51635
|
get() {
|
|
@@ -51642,7 +51639,7 @@ const ste = { class: "font-bold ptext-lg dark:text-white" }, rte = ["id"], ate =
|
|
|
51642
51639
|
ne("update:modelValue", lt);
|
|
51643
51640
|
}
|
|
51644
51641
|
});
|
|
51645
|
-
return
|
|
51642
|
+
return se({ focus: () => Z.value.focus() }), (lt, yt) => (ue(), fe(jn, null, [
|
|
51646
51643
|
A.show ? (ue(), fe("div", {
|
|
51647
51644
|
key: 0,
|
|
51648
51645
|
class: Zt(A.field_name)
|
|
@@ -51739,11 +51736,11 @@ const ste = { class: "font-bold ptext-lg dark:text-white" }, rte = ["id"], ate =
|
|
|
51739
51736
|
return 0;
|
|
51740
51737
|
if (this.limit === 0)
|
|
51741
51738
|
return this.lastPage;
|
|
51742
|
-
for (var A = this.currentPage,
|
|
51743
|
-
($e === 1 || $e ===
|
|
51739
|
+
for (var A = this.currentPage, se = this.lastPage, G = this.limit, _e = A - G, ne = A + G + 1, Z = [], Ce = [], X, $e = 1; $e <= se; $e++)
|
|
51740
|
+
($e === 1 || $e === se || $e >= _e && $e < ne) && Z.push($e);
|
|
51744
51741
|
return Z.forEach(function(lt) {
|
|
51745
|
-
X && (lt - X === 2 ?
|
|
51746
|
-
}),
|
|
51742
|
+
X && (lt - X === 2 ? Ce.push(X + 1) : lt - X !== 1 && Ce.push("...")), Ce.push(lt), X = lt;
|
|
51743
|
+
}), Ce;
|
|
51747
51744
|
}
|
|
51748
51745
|
},
|
|
51749
51746
|
methods: {
|
|
@@ -51786,8 +51783,8 @@ const ste = { class: "font-bold ptext-lg dark:text-white" }, rte = ["id"], ate =
|
|
|
51786
51783
|
}
|
|
51787
51784
|
},
|
|
51788
51785
|
pageButtonEvents: (A) => ({
|
|
51789
|
-
click: (
|
|
51790
|
-
|
|
51786
|
+
click: (se) => {
|
|
51787
|
+
se.preventDefault(), this.selectPage(A);
|
|
51791
51788
|
}
|
|
51792
51789
|
})
|
|
51793
51790
|
});
|
|
@@ -51865,9 +51862,9 @@ const ste = { class: "font-bold ptext-lg dark:text-white" }, rte = ["id"], ate =
|
|
|
51865
51862
|
d: "m1 9 4-4-4-4"
|
|
51866
51863
|
})
|
|
51867
51864
|
], -1);
|
|
51868
|
-
function kte(A,
|
|
51869
|
-
const
|
|
51870
|
-
return ue(), Zu(
|
|
51865
|
+
function kte(A, se, G, _e, ne, Z) {
|
|
51866
|
+
const Ce = Rd("RenderlessPagination");
|
|
51867
|
+
return ue(), Zu(Ce, {
|
|
51871
51868
|
data: G.data,
|
|
51872
51869
|
limit: G.limit,
|
|
51873
51870
|
onPaginationChangePage: Z.onPaginationChangePage
|
|
@@ -51976,25 +51973,25 @@ const iq = /* @__PURE__ */ zr(mte, [["render", kte]]), Tte = {
|
|
|
51976
51973
|
default: !1
|
|
51977
51974
|
}
|
|
51978
51975
|
},
|
|
51979
|
-
setup(A, { expose:
|
|
51980
|
-
const G = co(""), _e = co(""), ne = co(""), Z = co("Cancel"),
|
|
51976
|
+
setup(A, { expose: se }) {
|
|
51977
|
+
const G = co(""), _e = co(""), ne = co(""), Z = co("Cancel"), Ce = 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), Ce.value = !0, new Promise((Ot, Ls) => {
|
|
51981
51978
|
$e.value = Ot, lt.value = Ls;
|
|
51982
51979
|
})), hn = () => {
|
|
51983
51980
|
X.value = !0;
|
|
51984
51981
|
}, Et = () => {
|
|
51985
51982
|
X.value = !1;
|
|
51986
51983
|
}, io = () => {
|
|
51987
|
-
|
|
51984
|
+
Ce.value = !1, $e.value(!0);
|
|
51988
51985
|
}, lo = () => {
|
|
51989
|
-
|
|
51986
|
+
Ce.value = !1, $e.value(!1);
|
|
51990
51987
|
};
|
|
51991
|
-
return
|
|
51988
|
+
return se({
|
|
51992
51989
|
show: yt,
|
|
51993
51990
|
showLoading: hn,
|
|
51994
51991
|
hideLoading: Et
|
|
51995
51992
|
}), (eo, Ot) => {
|
|
51996
51993
|
const Ls = Rd("gl-button");
|
|
51997
|
-
return
|
|
51994
|
+
return Ce.value ? (ue(), fe("div", Tte, [
|
|
51998
51995
|
R("div", Ete, [
|
|
51999
51996
|
Ate,
|
|
52000
51997
|
Dte,
|
|
@@ -52110,8 +52107,8 @@ const iq = /* @__PURE__ */ zr(mte, [["render", kte]]), Tte = {
|
|
|
52110
52107
|
message: "Are you sure you want to delete the selected items?",
|
|
52111
52108
|
okButton: "Yes, delete it"
|
|
52112
52109
|
}))
|
|
52113
|
-
this.$refs.ConfirmationDelete.showLoading(), this.checkedIds.forEach((
|
|
52114
|
-
axios.delete(`${this.xprops.route}/${
|
|
52110
|
+
this.$refs.ConfirmationDelete.showLoading(), this.checkedIds.forEach((se) => {
|
|
52111
|
+
axios.delete(`${this.xprops.route}/${se}`).then(() => {
|
|
52115
52112
|
}).catch((G) => {
|
|
52116
52113
|
console.log(G);
|
|
52117
52114
|
});
|
|
@@ -52130,7 +52127,7 @@ const iq = /* @__PURE__ */ zr(mte, [["render", kte]]), Tte = {
|
|
|
52130
52127
|
this.checkedIds = [];
|
|
52131
52128
|
},
|
|
52132
52129
|
toggleCheck(A) {
|
|
52133
|
-
this.checkedIds.includes(A) ? this.checkedIds = this.checkedIds.filter((
|
|
52130
|
+
this.checkedIds.includes(A) ? this.checkedIds = this.checkedIds.filter((se) => se !== A) : this.checkedIds.push(A);
|
|
52134
52131
|
},
|
|
52135
52132
|
editAction(A) {
|
|
52136
52133
|
this.$emit("editAction", A);
|
|
@@ -52143,7 +52140,7 @@ const iq = /* @__PURE__ */ zr(mte, [["render", kte]]), Tte = {
|
|
|
52143
52140
|
},
|
|
52144
52141
|
GetItemLists(A = 1) {
|
|
52145
52142
|
this.isLoading = !0, this.page = A;
|
|
52146
|
-
const
|
|
52143
|
+
const se = {
|
|
52147
52144
|
sort: this.sortField,
|
|
52148
52145
|
order: this.sortOrder,
|
|
52149
52146
|
s: this.search,
|
|
@@ -52151,14 +52148,14 @@ const iq = /* @__PURE__ */ zr(mte, [["render", kte]]), Tte = {
|
|
|
52151
52148
|
page: this.page,
|
|
52152
52149
|
...this.dynamicFilters
|
|
52153
52150
|
};
|
|
52154
|
-
axios.get(this.xprops.route_get_data, { params:
|
|
52151
|
+
axios.get(this.xprops.route_get_data, { params: se }).then((G) => {
|
|
52155
52152
|
this.itemLists = G.data, this.isLoading = !1;
|
|
52156
52153
|
}).catch((G) => {
|
|
52157
52154
|
console.error(G), this.isLoading = !1;
|
|
52158
52155
|
});
|
|
52159
52156
|
},
|
|
52160
|
-
updateSortColumn(A,
|
|
52161
|
-
|
|
52157
|
+
updateSortColumn(A, se) {
|
|
52158
|
+
se && (A === this.sortField ? this.sortOrder = this.sortOrder === "asc" ? "desc" : "asc" : (this.sortField = A, this.sortOrder = "asc"), this.GetItemLists(this.page));
|
|
52162
52159
|
},
|
|
52163
52160
|
handleSearch() {
|
|
52164
52161
|
this.sortField = this.columns[0].field_name, this.sortOrder = "asc", this.page = 1, this.GetItemLists(this.page);
|
|
@@ -52174,8 +52171,8 @@ const iq = /* @__PURE__ */ zr(mte, [["render", kte]]), Tte = {
|
|
|
52174
52171
|
perPage(A) {
|
|
52175
52172
|
this.page = 1, this.perPage = A, this.GetItemLists(this.page);
|
|
52176
52173
|
},
|
|
52177
|
-
refreshData(A,
|
|
52178
|
-
this.isMounted && A !==
|
|
52174
|
+
refreshData(A, se) {
|
|
52175
|
+
this.isMounted && A !== se && this.GetItemLists();
|
|
52179
52176
|
},
|
|
52180
52177
|
dynamicFilters: {
|
|
52181
52178
|
handler(A) {
|
|
@@ -52256,10 +52253,10 @@ const iq = /* @__PURE__ */ zr(mte, [["render", kte]]), Tte = {
|
|
|
52256
52253
|
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",
|
|
52257
52254
|
"data-label": ""
|
|
52258
52255
|
}, 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" };
|
|
52259
|
-
function hne(A,
|
|
52260
|
-
const
|
|
52256
|
+
function hne(A, se, G, _e, ne, Z) {
|
|
52257
|
+
const Ce = Rd("DynamicConfirmation"), X = Rd("dropdown"), $e = Rd("GlDropdown"), lt = Rd("GlTextInput"), yt = Rd("gl-button"), hn = Rd("TailwindPagination");
|
|
52261
52258
|
return ue(), fe(jn, null, [
|
|
52262
|
-
ui(
|
|
52259
|
+
ui(Ce, { ref: "ConfirmationDelete" }, null, 512),
|
|
52263
52260
|
R("div", Vte, [
|
|
52264
52261
|
R("div", zte, [
|
|
52265
52262
|
R("div", Ute, [
|
|
@@ -52269,7 +52266,7 @@ function hne(A, oe, G, _e, ne, Z) {
|
|
|
52269
52266
|
has_cancel: !1,
|
|
52270
52267
|
options: ne.pageOptions,
|
|
52271
52268
|
modelValue: ne.perPage,
|
|
52272
|
-
"onUpdate:modelValue":
|
|
52269
|
+
"onUpdate:modelValue": se[0] || (se[0] = (Et) => ne.perPage = Et),
|
|
52273
52270
|
is_required: !1,
|
|
52274
52271
|
field_name: "perPage",
|
|
52275
52272
|
label_name: "",
|
|
@@ -52285,8 +52282,8 @@ function hne(A, oe, G, _e, ne, Z) {
|
|
|
52285
52282
|
Kte,
|
|
52286
52283
|
Tr(R("input", {
|
|
52287
52284
|
type: "text",
|
|
52288
|
-
"onUpdate:modelValue":
|
|
52289
|
-
onInput:
|
|
52285
|
+
"onUpdate:modelValue": se[1] || (se[1] = (Et) => ne.search = Et),
|
|
52286
|
+
onInput: se[2] || (se[2] = (Et) => Z.handleSearch()),
|
|
52290
52287
|
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",
|
|
52291
52288
|
placeholder: "Search ..."
|
|
52292
52289
|
}, null, 544), [
|
|
@@ -52453,7 +52450,7 @@ function hne(A, oe, G, _e, ne, Z) {
|
|
|
52453
52450
|
field: lo.field_name,
|
|
52454
52451
|
xprops: G.xprops,
|
|
52455
52452
|
tdProps: lo.tdProps,
|
|
52456
|
-
onDeleteAction:
|
|
52453
|
+
onDeleteAction: se[3] || (se[3] = (Ot) => Z.GetItemLists()),
|
|
52457
52454
|
onEditAction: (Ot) => Z.editAction(Et),
|
|
52458
52455
|
onGeneralAction: (Ot) => Z.generalAction(Et)
|
|
52459
52456
|
}, null, 40, ["row", "field", "xprops", "tdProps", "onEditAction", "onGeneralAction"])) : (ue(), fe(jn, { key: 1 }, [
|
|
@@ -52514,16 +52511,16 @@ const Fce = /* @__PURE__ */ zr(Hte, [["render", hne]]), pne = {
|
|
|
52514
52511
|
return Math.ceil(this.filteredData.length / this.itemsPerPage);
|
|
52515
52512
|
},
|
|
52516
52513
|
paginatedData() {
|
|
52517
|
-
const A = (this.currentPage - 1) * this.itemsPerPage,
|
|
52518
|
-
return this.filteredData.slice(A,
|
|
52514
|
+
const A = (this.currentPage - 1) * this.itemsPerPage, se = A + this.itemsPerPage;
|
|
52515
|
+
return this.filteredData.slice(A, se);
|
|
52519
52516
|
},
|
|
52520
52517
|
displayedPageNumbers() {
|
|
52521
52518
|
let A = Math.max(
|
|
52522
52519
|
this.currentPage - Math.floor(this.maxDisplayedPages / 2),
|
|
52523
52520
|
1
|
|
52524
|
-
),
|
|
52525
|
-
return
|
|
52526
|
-
{ length:
|
|
52521
|
+
), se = A + this.maxDisplayedPages - 1;
|
|
52522
|
+
return se > this.totalPages && (se = this.totalPages, A = Math.max(se - this.maxDisplayedPages + 1, 1)), Array.from(
|
|
52523
|
+
{ length: se - A + 1 },
|
|
52527
52524
|
(G, _e) => A + _e
|
|
52528
52525
|
);
|
|
52529
52526
|
},
|
|
@@ -52558,7 +52555,7 @@ const Fce = /* @__PURE__ */ zr(Hte, [["render", hne]]), pne = {
|
|
|
52558
52555
|
A === this.sortKey ? this.sortOrder *= -1 : (this.sortKey = A, this.sortOrder = 1);
|
|
52559
52556
|
},
|
|
52560
52557
|
sortData(A) {
|
|
52561
|
-
return this.sortKey ? A.slice().sort((
|
|
52558
|
+
return this.sortKey ? A.slice().sort((se, G) => (se[this.sortKey] < G[this.sortKey] ? -1 : 1) * this.sortOrder) : A;
|
|
52562
52559
|
},
|
|
52563
52560
|
previousPage() {
|
|
52564
52561
|
this.currentPage > 1 && this.currentPage--;
|
|
@@ -52692,18 +52689,18 @@ const Fce = /* @__PURE__ */ zr(Hte, [["render", hne]]), pne = {
|
|
|
52692
52689
|
ooe,
|
|
52693
52690
|
soe
|
|
52694
52691
|
];
|
|
52695
|
-
function aoe(A,
|
|
52696
|
-
const
|
|
52692
|
+
function aoe(A, se, G, _e, ne, Z) {
|
|
52693
|
+
const Ce = Rd("dropdown");
|
|
52697
52694
|
return ue(), fe("div", bne, [
|
|
52698
52695
|
R("div", vne, [
|
|
52699
52696
|
R("div", yne, [
|
|
52700
52697
|
wne,
|
|
52701
52698
|
R("div", xne, [
|
|
52702
|
-
ui(
|
|
52699
|
+
ui(Ce, {
|
|
52703
52700
|
has_cancel: !1,
|
|
52704
52701
|
options: ne.showNoOfEntries,
|
|
52705
52702
|
modelValue: ne.itemsPerPage,
|
|
52706
|
-
"onUpdate:modelValue":
|
|
52703
|
+
"onUpdate:modelValue": se[0] || (se[0] = (X) => ne.itemsPerPage = X),
|
|
52707
52704
|
is_required: !1,
|
|
52708
52705
|
field_name: "NoOfEntries",
|
|
52709
52706
|
label_name: "",
|
|
@@ -52719,7 +52716,7 @@ function aoe(A, oe, G, _e, ne, Z) {
|
|
|
52719
52716
|
kne,
|
|
52720
52717
|
Tr(R("input", {
|
|
52721
52718
|
type: "text",
|
|
52722
|
-
"onUpdate:modelValue":
|
|
52719
|
+
"onUpdate:modelValue": se[1] || (se[1] = (X) => ne.search = X),
|
|
52723
52720
|
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",
|
|
52724
52721
|
placeholder: "Search ..."
|
|
52725
52722
|
}, null, 512), [
|
|
@@ -52768,7 +52765,7 @@ function aoe(A, oe, G, _e, ne, Z) {
|
|
|
52768
52765
|
field: lt.field_name,
|
|
52769
52766
|
xprops: G.xprops,
|
|
52770
52767
|
tdProps: lt.tdProps,
|
|
52771
|
-
onDeleteAction:
|
|
52768
|
+
onDeleteAction: se[2] || (se[2] = (hn) => Z.GetItemLists()),
|
|
52772
52769
|
onEditAction: (hn) => Z.editAction(X),
|
|
52773
52770
|
onGeneralAction: (hn) => Z.generalAction(X)
|
|
52774
52771
|
}, null, 40, ["row", "field", "xprops", "tdProps", "onEditAction", "onGeneralAction"])) : (ue(), fe(jn, { key: 1 }, [
|
|
@@ -52784,13 +52781,13 @@ function aoe(A, oe, G, _e, ne, Z) {
|
|
|
52784
52781
|
R("div", Hne, [
|
|
52785
52782
|
R("a", {
|
|
52786
52783
|
href: "#",
|
|
52787
|
-
onClick:
|
|
52784
|
+
onClick: se[3] || (se[3] = za((...X) => Z.previousPage && Z.previousPage(...X), ["prevent"])),
|
|
52788
52785
|
disabled: ne.currentPage === 1,
|
|
52789
52786
|
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"
|
|
52790
52787
|
}, "Previous", 8, Vne),
|
|
52791
52788
|
R("a", {
|
|
52792
52789
|
href: "#",
|
|
52793
|
-
onClick:
|
|
52790
|
+
onClick: se[4] || (se[4] = za((...X) => Z.nextPage && Z.nextPage(...X), ["prevent"])),
|
|
52794
52791
|
disabled: ne.currentPage === Z.totalPages,
|
|
52795
52792
|
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"
|
|
52796
52793
|
}, "Next", 8, zne)
|
|
@@ -52813,7 +52810,7 @@ function aoe(A, oe, G, _e, ne, Z) {
|
|
|
52813
52810
|
R("li", null, [
|
|
52814
52811
|
R("a", {
|
|
52815
52812
|
href: "#",
|
|
52816
|
-
onClick:
|
|
52813
|
+
onClick: se[5] || (se[5] = za((...X) => Z.previousPage && Z.previousPage(...X), ["prevent"])),
|
|
52817
52814
|
disabled: ne.currentPage === 1,
|
|
52818
52815
|
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"
|
|
52819
52816
|
}, Qne, 8, Yne)
|
|
@@ -52840,7 +52837,7 @@ function aoe(A, oe, G, _e, ne, Z) {
|
|
|
52840
52837
|
R("li", null, [
|
|
52841
52838
|
R("a", {
|
|
52842
52839
|
href: "#",
|
|
52843
|
-
onClick:
|
|
52840
|
+
onClick: se[6] || (se[6] = za((...X) => Z.nextPage && Z.nextPage(...X), ["prevent"])),
|
|
52844
52841
|
disabled: ne.currentPage === Z.totalPages,
|
|
52845
52842
|
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"
|
|
52846
52843
|
}, roe, 8, noe)
|
|
@@ -52895,11 +52892,11 @@ const Hce = /* @__PURE__ */ zr(pne, [["render", aoe]]), loe = {
|
|
|
52895
52892
|
},
|
|
52896
52893
|
methods: {
|
|
52897
52894
|
groupBy(A) {
|
|
52898
|
-
return this.itemLists.data ? this.itemLists.data.reduce((
|
|
52895
|
+
return this.itemLists.data ? this.itemLists.data.reduce((se, G) => {
|
|
52899
52896
|
const _e = G[A];
|
|
52900
|
-
|
|
52897
|
+
se[_e] || (se[_e] = []);
|
|
52901
52898
|
const ne = { ...G };
|
|
52902
|
-
return delete ne[A],
|
|
52899
|
+
return delete ne[A], se[_e].push(ne), se;
|
|
52903
52900
|
}, {}) : [];
|
|
52904
52901
|
},
|
|
52905
52902
|
editAction(A) {
|
|
@@ -52910,21 +52907,21 @@ const Hce = /* @__PURE__ */ zr(pne, [["render", aoe]]), loe = {
|
|
|
52910
52907
|
},
|
|
52911
52908
|
GetItemLists(A = 1) {
|
|
52912
52909
|
this.isLoading = !0, this.page = A;
|
|
52913
|
-
const
|
|
52910
|
+
const se = {
|
|
52914
52911
|
sort: this.sortField,
|
|
52915
52912
|
order: this.sortOrder,
|
|
52916
52913
|
s: this.search,
|
|
52917
52914
|
limit: this.perPage,
|
|
52918
52915
|
page: this.page
|
|
52919
52916
|
};
|
|
52920
|
-
axios.get(this.xprops.route_get_data, { params:
|
|
52917
|
+
axios.get(this.xprops.route_get_data, { params: se }).then((G) => {
|
|
52921
52918
|
this.itemLists = G.data, this.isLoading = !1;
|
|
52922
52919
|
}).catch((G) => {
|
|
52923
52920
|
console.error(G), this.isLoading = !1;
|
|
52924
52921
|
});
|
|
52925
52922
|
},
|
|
52926
|
-
updateSortColumn(A,
|
|
52927
|
-
|
|
52923
|
+
updateSortColumn(A, se) {
|
|
52924
|
+
se && (A === this.sortField ? this.sortOrder = this.sortOrder === "asc" ? "desc" : "asc" : (this.sortField = A, this.sortOrder = "asc"), this.GetItemLists(this.page));
|
|
52928
52925
|
},
|
|
52929
52926
|
handleSearch() {
|
|
52930
52927
|
this.sortField = this.columns[0].field_name, this.sortOrder = "asc", this.page = 1, this.GetItemLists(this.page);
|
|
@@ -52940,8 +52937,8 @@ const Hce = /* @__PURE__ */ zr(pne, [["render", aoe]]), loe = {
|
|
|
52940
52937
|
perPage(A) {
|
|
52941
52938
|
this.page = 1, this.perPage = A, this.GetItemLists(this.page);
|
|
52942
52939
|
},
|
|
52943
|
-
refreshData(A,
|
|
52944
|
-
this.isMounted && A !==
|
|
52940
|
+
refreshData(A, se) {
|
|
52941
|
+
this.isMounted && A !== se && this.GetItemLists();
|
|
52945
52942
|
}
|
|
52946
52943
|
}
|
|
52947
52944
|
}, 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", {
|
|
@@ -53013,18 +53010,18 @@ const Hce = /* @__PURE__ */ zr(pne, [["render", aoe]]), loe = {
|
|
|
53013
53010
|
], -1), Eoe = [
|
|
53014
53011
|
Toe
|
|
53015
53012
|
], 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" };
|
|
53016
|
-
function Moe(A,
|
|
53017
|
-
const
|
|
53013
|
+
function Moe(A, se, G, _e, ne, Z) {
|
|
53014
|
+
const Ce = Rd("dropdown"), X = Rd("TailwindPagination");
|
|
53018
53015
|
return ue(), fe("div", coe, [
|
|
53019
53016
|
R("div", ioe, [
|
|
53020
53017
|
R("div", uoe, [
|
|
53021
53018
|
doe,
|
|
53022
53019
|
R("div", moe, [
|
|
53023
|
-
ui(
|
|
53020
|
+
ui(Ce, {
|
|
53024
53021
|
has_cancel: !1,
|
|
53025
53022
|
options: ne.pageOptions,
|
|
53026
53023
|
modelValue: ne.perPage,
|
|
53027
|
-
"onUpdate:modelValue":
|
|
53024
|
+
"onUpdate:modelValue": se[0] || (se[0] = ($e) => ne.perPage = $e),
|
|
53028
53025
|
is_required: !1,
|
|
53029
53026
|
field_name: "perPage",
|
|
53030
53027
|
label_name: "",
|
|
@@ -53040,8 +53037,8 @@ function Moe(A, oe, G, _e, ne, Z) {
|
|
|
53040
53037
|
poe,
|
|
53041
53038
|
Tr(R("input", {
|
|
53042
53039
|
type: "text",
|
|
53043
|
-
"onUpdate:modelValue":
|
|
53044
|
-
onInput:
|
|
53040
|
+
"onUpdate:modelValue": se[1] || (se[1] = ($e) => ne.search = $e),
|
|
53041
|
+
onInput: se[2] || (se[2] = ($e) => Z.handleSearch()),
|
|
53045
53042
|
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",
|
|
53046
53043
|
placeholder: "Search ..."
|
|
53047
53044
|
}, null, 544), [
|
|
@@ -53094,7 +53091,7 @@ function Moe(A, oe, G, _e, ne, Z) {
|
|
|
53094
53091
|
field: Et.field_name,
|
|
53095
53092
|
xprops: G.xprops,
|
|
53096
53093
|
tdProps: Et.tdProps,
|
|
53097
|
-
onDeleteAction:
|
|
53094
|
+
onDeleteAction: se[3] || (se[3] = (lo) => Z.GetItemLists()),
|
|
53098
53095
|
onEditAction: (lo) => Z.editAction(yt)
|
|
53099
53096
|
}, null, 40, ["row", "field", "xprops", "tdProps", "onEditAction"])) : (ue(), fe(jn, { key: 1 }, [
|
|
53100
53097
|
Zn(mt(yt[Et.field_name]), 1)
|
|
@@ -53148,16 +53145,16 @@ const Vce = /* @__PURE__ */ zr(loe, [["render", Moe]]), Poe = {
|
|
|
53148
53145
|
return Math.ceil(this.filteredData.length / this.itemsPerPage);
|
|
53149
53146
|
},
|
|
53150
53147
|
paginatedData() {
|
|
53151
|
-
const A = (this.currentPage - 1) * this.itemsPerPage,
|
|
53152
|
-
return this.filteredData.slice(A,
|
|
53148
|
+
const A = (this.currentPage - 1) * this.itemsPerPage, se = A + this.itemsPerPage;
|
|
53149
|
+
return this.filteredData.slice(A, se);
|
|
53153
53150
|
},
|
|
53154
53151
|
displayedPageNumbers() {
|
|
53155
53152
|
let A = Math.max(
|
|
53156
53153
|
this.currentPage - Math.floor(this.maxDisplayedPages / 2),
|
|
53157
53154
|
1
|
|
53158
|
-
),
|
|
53159
|
-
return
|
|
53160
|
-
{ length:
|
|
53155
|
+
), se = A + this.maxDisplayedPages - 1;
|
|
53156
|
+
return se > this.totalPages && (se = this.totalPages, A = Math.max(se - this.maxDisplayedPages + 1, 1)), Array.from(
|
|
53157
|
+
{ length: se - A + 1 },
|
|
53161
53158
|
(G, _e) => A + _e
|
|
53162
53159
|
);
|
|
53163
53160
|
},
|
|
@@ -53180,7 +53177,7 @@ const Vce = /* @__PURE__ */ zr(loe, [["render", Moe]]), Poe = {
|
|
|
53180
53177
|
A === this.sortKey ? this.sortOrder *= -1 : (this.sortKey = A, this.sortOrder = 1);
|
|
53181
53178
|
},
|
|
53182
53179
|
sortData(A) {
|
|
53183
|
-
return this.sortKey ? A.slice().sort((
|
|
53180
|
+
return this.sortKey ? A.slice().sort((se, G) => (se[this.sortKey] < G[this.sortKey] ? -1 : 1) * this.sortOrder) : A;
|
|
53184
53181
|
},
|
|
53185
53182
|
previousPage() {
|
|
53186
53183
|
this.currentPage > 1 && this.currentPage--;
|
|
@@ -53262,18 +53259,18 @@ const Vce = /* @__PURE__ */ zr(loe, [["render", Moe]]), Poe = {
|
|
|
53262
53259
|
bse,
|
|
53263
53260
|
vse
|
|
53264
53261
|
];
|
|
53265
|
-
function wse(A,
|
|
53266
|
-
const
|
|
53262
|
+
function wse(A, se, G, _e, ne, Z) {
|
|
53263
|
+
const Ce = Rd("dropdown");
|
|
53267
53264
|
return ue(), fe("div", Boe, [
|
|
53268
53265
|
R("div", Noe, [
|
|
53269
53266
|
R("div", Ioe, [
|
|
53270
53267
|
Loe,
|
|
53271
53268
|
R("div", Foe, [
|
|
53272
|
-
ui(
|
|
53269
|
+
ui(Ce, {
|
|
53273
53270
|
has_cancel: !1,
|
|
53274
53271
|
options: ne.showNoOfEntries,
|
|
53275
53272
|
modelValue: ne.itemsPerPage,
|
|
53276
|
-
"onUpdate:modelValue":
|
|
53273
|
+
"onUpdate:modelValue": se[0] || (se[0] = (X) => ne.itemsPerPage = X),
|
|
53277
53274
|
is_required: !1,
|
|
53278
53275
|
field_name: "NoOfEntries",
|
|
53279
53276
|
label_name: "",
|
|
@@ -53289,7 +53286,7 @@ function wse(A, oe, G, _e, ne, Z) {
|
|
|
53289
53286
|
Uoe,
|
|
53290
53287
|
Tr(R("input", {
|
|
53291
53288
|
type: "text",
|
|
53292
|
-
"onUpdate:modelValue":
|
|
53289
|
+
"onUpdate:modelValue": se[1] || (se[1] = (X) => ne.search = X),
|
|
53293
53290
|
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",
|
|
53294
53291
|
placeholder: "Search ..."
|
|
53295
53292
|
}, null, 512), [
|
|
@@ -53336,13 +53333,13 @@ function wse(A, oe, G, _e, ne, Z) {
|
|
|
53336
53333
|
R("div", ese, [
|
|
53337
53334
|
R("a", {
|
|
53338
53335
|
href: "#",
|
|
53339
|
-
onClick:
|
|
53336
|
+
onClick: se[2] || (se[2] = za((...X) => Z.previousPage && Z.previousPage(...X), ["prevent"])),
|
|
53340
53337
|
disabled: ne.currentPage === 1,
|
|
53341
53338
|
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"
|
|
53342
53339
|
}, "Previous", 8, tse),
|
|
53343
53340
|
R("a", {
|
|
53344
53341
|
href: "#",
|
|
53345
|
-
onClick:
|
|
53342
|
+
onClick: se[3] || (se[3] = za((...X) => Z.nextPage && Z.nextPage(...X), ["prevent"])),
|
|
53346
53343
|
disabled: ne.currentPage === Z.totalPages,
|
|
53347
53344
|
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"
|
|
53348
53345
|
}, "Next", 8, nse)
|
|
@@ -53365,7 +53362,7 @@ function wse(A, oe, G, _e, ne, Z) {
|
|
|
53365
53362
|
R("li", null, [
|
|
53366
53363
|
R("a", {
|
|
53367
53364
|
href: "#",
|
|
53368
|
-
onClick:
|
|
53365
|
+
onClick: se[4] || (se[4] = za((...X) => Z.previousPage && Z.previousPage(...X), ["prevent"])),
|
|
53369
53366
|
disabled: ne.currentPage === 1,
|
|
53370
53367
|
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"
|
|
53371
53368
|
}, fse, 8, use)
|
|
@@ -53392,7 +53389,7 @@ function wse(A, oe, G, _e, ne, Z) {
|
|
|
53392
53389
|
R("li", null, [
|
|
53393
53390
|
R("a", {
|
|
53394
53391
|
href: "#",
|
|
53395
|
-
onClick:
|
|
53392
|
+
onClick: se[5] || (se[5] = za((...X) => Z.nextPage && Z.nextPage(...X), ["prevent"])),
|
|
53396
53393
|
disabled: ne.currentPage === Z.totalPages,
|
|
53397
53394
|
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"
|
|
53398
53395
|
}, yse, 8, pse)
|
|
@@ -53408,12 +53405,12 @@ const zce = /* @__PURE__ */ zr(Poe, [["render", wse]]), xse = {
|
|
|
53408
53405
|
props: ["field", "row", "tdProps"],
|
|
53409
53406
|
methods: {
|
|
53410
53407
|
convertCronToHuman(A) {
|
|
53411
|
-
const [
|
|
53412
|
-
if (
|
|
53408
|
+
const [se, G, _e, ne, Z] = A.split(" ");
|
|
53409
|
+
if (se === "*" && G === "*" && _e === "*" && ne === "*" && Z === "*")
|
|
53413
53410
|
return "Runs every minute.";
|
|
53414
|
-
if (
|
|
53411
|
+
if (se === "0" && G === "0" && _e === "*" && ne === "*" && Z !== "*")
|
|
53415
53412
|
return `Runs at 12:00 AM every ${this.convertDayOfWeek(Z)}.`;
|
|
53416
|
-
const
|
|
53413
|
+
const Ce = {
|
|
53417
53414
|
0: "Sunday",
|
|
53418
53415
|
1: "Monday",
|
|
53419
53416
|
2: "Tuesday",
|
|
@@ -53436,24 +53433,24 @@ const zce = /* @__PURE__ */ zr(Poe, [["render", wse]]), xse = {
|
|
|
53436
53433
|
11: "November",
|
|
53437
53434
|
12: "December",
|
|
53438
53435
|
"*": "every month"
|
|
53439
|
-
}, $e = this.convertField(
|
|
53436
|
+
}, $e = this.convertField(se, "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, Ce);
|
|
53440
53437
|
return `Runs ${$e} ${lt} ${yt} ${hn} on ${Et}.`;
|
|
53441
53438
|
},
|
|
53442
|
-
convertField(A,
|
|
53443
|
-
if (A === "*") return `every ${
|
|
53439
|
+
convertField(A, se, G, _e = {}) {
|
|
53440
|
+
if (A === "*") return `every ${se}`;
|
|
53444
53441
|
if (A.includes("/")) {
|
|
53445
53442
|
const [ne, Z] = A.split("/");
|
|
53446
|
-
return `every ${Z} ${
|
|
53443
|
+
return `every ${Z} ${se}${Z > 1 ? "s" : ""} starting at ${ne}`;
|
|
53447
53444
|
}
|
|
53448
53445
|
if (A.includes("-")) {
|
|
53449
53446
|
const [ne, Z] = A.split("-");
|
|
53450
|
-
return `${
|
|
53447
|
+
return `${se}s from ${ne} to ${Z}`;
|
|
53451
53448
|
}
|
|
53452
53449
|
if (A.includes(",")) {
|
|
53453
53450
|
const ne = A.split(",").map((Z) => _e[Z] || Z);
|
|
53454
|
-
return `${
|
|
53451
|
+
return `${se}s on ${ne.join(", ")}`;
|
|
53455
53452
|
}
|
|
53456
|
-
return _e[A] || `${
|
|
53453
|
+
return _e[A] || `${se} ${A}`;
|
|
53457
53454
|
},
|
|
53458
53455
|
convertDayOfWeek(A) {
|
|
53459
53456
|
return {
|
|
@@ -53467,15 +53464,15 @@ const zce = /* @__PURE__ */ zr(Poe, [["render", wse]]), xse = {
|
|
|
53467
53464
|
}[A] || "Invalid day";
|
|
53468
53465
|
},
|
|
53469
53466
|
formatHour(A) {
|
|
53470
|
-
const
|
|
53471
|
-
return `${(
|
|
53467
|
+
const se = parseInt(A, 10), G = se >= 12 ? "PM" : "AM";
|
|
53468
|
+
return `${(se % 12 || 12).toString().padStart(2, "0")}:00 ${G}`;
|
|
53472
53469
|
}
|
|
53473
53470
|
}
|
|
53474
53471
|
}, Cse = {
|
|
53475
53472
|
key: 0,
|
|
53476
53473
|
class: "flex flex-wrap gap-2"
|
|
53477
53474
|
}, _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" };
|
|
53478
|
-
function Sse(A,
|
|
53475
|
+
function Sse(A, se, G, _e, ne, Z) {
|
|
53479
53476
|
return G.row[G.field] ? (ue(), fe("div", Cse, [
|
|
53480
53477
|
R("span", _se, mt(Z.convertCronToHuman(G.row[G.field])), 1)
|
|
53481
53478
|
])) : Ye("", !0);
|
|
@@ -53500,7 +53497,7 @@ const Uce = /* @__PURE__ */ zr(xse, [["render", Sse]]), kse = {
|
|
|
53500
53497
|
}), {};
|
|
53501
53498
|
}
|
|
53502
53499
|
};
|
|
53503
|
-
function Tse(A,
|
|
53500
|
+
function Tse(A, se, G, _e, ne, Z) {
|
|
53504
53501
|
return ue(), fe("div", null, [
|
|
53505
53502
|
ju(A.$slots, "default")
|
|
53506
53503
|
]);
|
|
@@ -53513,7 +53510,7 @@ const Wce = /* @__PURE__ */ zr(kse, [["render", Tse]]), Ese = {
|
|
|
53513
53510
|
}
|
|
53514
53511
|
},
|
|
53515
53512
|
setup() {
|
|
53516
|
-
const A = co(!1),
|
|
53513
|
+
const A = co(!1), se = sq("accordionsWrapper"), _e = (() => {
|
|
53517
53514
|
var lt = (/* @__PURE__ */ new Date()).getTime();
|
|
53518
53515
|
typeof performance < "u" && typeof performance.now == "function" && (lt += performance.now());
|
|
53519
53516
|
var yt = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(hn) {
|
|
@@ -53521,13 +53518,13 @@ const Wce = /* @__PURE__ */ zr(kse, [["render", Tse]]), Ese = {
|
|
|
53521
53518
|
return lt = Math.floor(lt / 16), (hn === "x" ? Et : Et & 3 | 8).toString(16);
|
|
53522
53519
|
});
|
|
53523
53520
|
return yt;
|
|
53524
|
-
})(), ne = { isOpen: A, id: _e }, Z = pu(() =>
|
|
53521
|
+
})(), ne = { isOpen: A, id: _e }, Z = pu(() => se.accordions.value), Ce = pu(() => Z.value.length > 0 && Z.value[0].id === _e), X = pu(() => Z.value.length > 0 && Z.value[Z.value.length - 1].id === _e);
|
|
53525
53522
|
return Dg(() => {
|
|
53526
|
-
|
|
53523
|
+
se.registerAccordion(ne);
|
|
53527
53524
|
}), Nq(() => {
|
|
53528
|
-
|
|
53529
|
-
}), { isOpen: A, isFirstAccordion:
|
|
53530
|
-
|
|
53525
|
+
se.unregisterAccordion(ne);
|
|
53526
|
+
}), { isOpen: A, isFirstAccordion: Ce, isLastAccordion: X, toggle: () => {
|
|
53527
|
+
se.toggleAccordion(ne);
|
|
53531
53528
|
} };
|
|
53532
53529
|
}
|
|
53533
53530
|
}, Ase = { class: "flex items-center" }, Dse = {
|
|
@@ -53561,11 +53558,11 @@ const Wce = /* @__PURE__ */ zr(kse, [["render", Tse]]), Ese = {
|
|
|
53561
53558
|
}, null, -1), Pse = [
|
|
53562
53559
|
Mse
|
|
53563
53560
|
];
|
|
53564
|
-
function Bse(A,
|
|
53561
|
+
function Bse(A, se, G, _e, ne, Z) {
|
|
53565
53562
|
return ue(), fe("div", null, [
|
|
53566
53563
|
R("h2", null, [
|
|
53567
53564
|
R("button", {
|
|
53568
|
-
onClick:
|
|
53565
|
+
onClick: se[0] || (se[0] = (...Ce) => _e.toggle && _e.toggle(...Ce)),
|
|
53569
53566
|
type: "button",
|
|
53570
53567
|
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", {
|
|
53571
53568
|
"rounded-t-xl": _e.isFirstAccordion,
|
|
@@ -53664,19 +53661,19 @@ const Zce = /* @__PURE__ */ zr(Ese, [["render", Bse]]), Nse = {
|
|
|
53664
53661
|
}
|
|
53665
53662
|
},
|
|
53666
53663
|
emits: ["remove"],
|
|
53667
|
-
setup(A, { emit:
|
|
53664
|
+
setup(A, { emit: se }) {
|
|
53668
53665
|
const G = A;
|
|
53669
53666
|
Dg(() => {
|
|
53670
53667
|
setTimeout(() => _e("remove"), G.duration);
|
|
53671
53668
|
});
|
|
53672
|
-
const _e =
|
|
53669
|
+
const _e = se;
|
|
53673
53670
|
return (ne, Z) => (ue(), fe("div", Nse, [
|
|
53674
53671
|
G.type === "success" ? (ue(), fe("div", Ise, Hse)) : Ye("", !0),
|
|
53675
53672
|
G.type === "error" ? (ue(), fe("div", Vse, Wse)) : Ye("", !0),
|
|
53676
53673
|
G.type === "warning" ? (ue(), fe("div", Zse, qse)) : Ye("", !0),
|
|
53677
53674
|
R("div", Kse, mt(G.message), 1),
|
|
53678
53675
|
R("button", {
|
|
53679
|
-
onClick: Z[0] || (Z[0] = (
|
|
53676
|
+
onClick: Z[0] || (Z[0] = (Ce) => _e("remove")),
|
|
53680
53677
|
type: "button",
|
|
53681
53678
|
class: "-mx-1.5 -my-1.5 ml-auto inline-flex h-8 w-8 rounded-lg bg-white p-1.5 text-gray-400 hover:bg-gray-100 hover:text-gray-900 focus:ring-2 focus:ring-gray-300 dark:bg-gray-800 dark:text-gray-500 dark:hover:bg-gray-700 dark:hover:text-white",
|
|
53682
53679
|
"data-dismiss-target": "#toast-default",
|
|
@@ -53687,7 +53684,7 @@ const Zce = /* @__PURE__ */ zr(Ese, [["render", Bse]]), Nse = {
|
|
|
53687
53684
|
}, jce = {
|
|
53688
53685
|
__name: "GlToastList",
|
|
53689
53686
|
setup(A) {
|
|
53690
|
-
function
|
|
53687
|
+
function se(G) {
|
|
53691
53688
|
Ry.methods.remove(G);
|
|
53692
53689
|
}
|
|
53693
53690
|
return (G, _e) => (ue(), Zu(Iq, {
|
|
@@ -53704,7 +53701,7 @@ const Zce = /* @__PURE__ */ zr(Ese, [["render", Bse]]), Nse = {
|
|
|
53704
53701
|
message: ne.message,
|
|
53705
53702
|
type: ne.type,
|
|
53706
53703
|
duration: ne.duration,
|
|
53707
|
-
onRemove: (
|
|
53704
|
+
onRemove: (Ce) => se(Z)
|
|
53708
53705
|
}, null, 8, ["message", "type", "duration", "onRemove"]))), 128))
|
|
53709
53706
|
]),
|
|
53710
53707
|
_: 1
|
|
@@ -53751,16 +53748,16 @@ const Zce = /* @__PURE__ */ zr(Ese, [["render", Bse]]), Nse = {
|
|
|
53751
53748
|
}
|
|
53752
53749
|
},
|
|
53753
53750
|
emits: ["deleteAction"],
|
|
53754
|
-
setup(A, { emit:
|
|
53751
|
+
setup(A, { emit: se }) {
|
|
53755
53752
|
const G = A, _e = co(!1), ne = co(!1), Z = () => {
|
|
53756
53753
|
_e.value = !1;
|
|
53757
|
-
},
|
|
53754
|
+
}, Ce = () => {
|
|
53758
53755
|
_e.value = !0;
|
|
53759
53756
|
}, X = () => {
|
|
53760
53757
|
ne.value = !1;
|
|
53761
53758
|
}, $e = () => {
|
|
53762
53759
|
ne.value = !0;
|
|
53763
|
-
}, lt =
|
|
53760
|
+
}, lt = se, yt = () => {
|
|
53764
53761
|
axios.delete(`${G.xprops.route}/${G.row.id}`).then(() => {
|
|
53765
53762
|
X(), lt("deleteAction"), Ry.methods.add({
|
|
53766
53763
|
message: "Item deleted successfully.",
|
|
@@ -53781,7 +53778,7 @@ const Zce = /* @__PURE__ */ zr(Ese, [["render", Bse]]), Nse = {
|
|
|
53781
53778
|
}, null, 8, ["isOpen"]),
|
|
53782
53779
|
A.row && hn.can(`edit_${A.xprops.permission} || delete_${A.xprops.permission}`) ? Tr((ue(), fe("div", ere, [
|
|
53783
53780
|
R("button", {
|
|
53784
|
-
onClick:
|
|
53781
|
+
onClick: Ce,
|
|
53785
53782
|
class: "inline-flex items-center p-2 text-sm font-medium text-center text-gray-900 bg-white rounded-lg hover:bg-gray-100 focus:ring-4 focus:outline-none dark:text-white focus:ring-gray-50 dark:bg-gray-800 dark:hover:bg-gray-700 dark:focus:ring-gray-600",
|
|
53786
53783
|
type: "button"
|
|
53787
53784
|
}, nre),
|
|
@@ -53857,16 +53854,16 @@ const Zce = /* @__PURE__ */ zr(Ese, [["render", Bse]]), Nse = {
|
|
|
53857
53854
|
}
|
|
53858
53855
|
},
|
|
53859
53856
|
emits: ["deleteAction"],
|
|
53860
|
-
setup(A, { emit:
|
|
53857
|
+
setup(A, { emit: se }) {
|
|
53861
53858
|
const G = A, _e = co(!1), ne = co(!1), Z = () => {
|
|
53862
53859
|
_e.value = !1;
|
|
53863
|
-
},
|
|
53860
|
+
}, Ce = () => {
|
|
53864
53861
|
_e.value = !0;
|
|
53865
53862
|
}, X = () => {
|
|
53866
53863
|
ne.value = !1;
|
|
53867
53864
|
}, $e = () => {
|
|
53868
53865
|
ne.value = !0;
|
|
53869
|
-
}, lt =
|
|
53866
|
+
}, lt = se, yt = () => {
|
|
53870
53867
|
axios.delete(`${G.xprops.route}/${G.row.id}`).then(() => {
|
|
53871
53868
|
X(), lt("deleteAction"), Ry.methods.add({
|
|
53872
53869
|
message: "Item deleted successfully.",
|
|
@@ -53887,7 +53884,7 @@ const Zce = /* @__PURE__ */ zr(Ese, [["render", Bse]]), Nse = {
|
|
|
53887
53884
|
}, null, 8, ["isOpen"]),
|
|
53888
53885
|
A.row && hn.can(`delete_${A.xprops.permission}`) ? Tr((ue(), fe("div", ure, [
|
|
53889
53886
|
R("button", {
|
|
53890
|
-
onClick:
|
|
53887
|
+
onClick: Ce,
|
|
53891
53888
|
class: "inline-flex items-center p-2 text-sm font-medium text-center text-gray-900 bg-white rounded-lg hover:bg-gray-100 focus:ring-4 focus:outline-none dark:text-white focus:ring-gray-50 dark:bg-gray-800 dark:hover:bg-gray-700 dark:focus:ring-gray-600",
|
|
53892
53889
|
type: "button"
|
|
53893
53890
|
}, mre),
|
|
@@ -53954,16 +53951,16 @@ const Zce = /* @__PURE__ */ zr(Ese, [["render", Bse]]), Nse = {
|
|
|
53954
53951
|
}
|
|
53955
53952
|
},
|
|
53956
53953
|
emits: ["deleteAction", "editAction"],
|
|
53957
|
-
setup(A, { emit:
|
|
53954
|
+
setup(A, { emit: se }) {
|
|
53958
53955
|
const G = A, _e = co(!1), ne = co(!1), Z = () => {
|
|
53959
53956
|
ne.value = !1;
|
|
53960
|
-
},
|
|
53957
|
+
}, Ce = () => {
|
|
53961
53958
|
ne.value = !0;
|
|
53962
53959
|
}, X = () => {
|
|
53963
53960
|
_e.value = !1;
|
|
53964
53961
|
}, $e = () => {
|
|
53965
53962
|
_e.value = !0;
|
|
53966
|
-
}, lt =
|
|
53963
|
+
}, lt = se, yt = (Et) => {
|
|
53967
53964
|
lt("editAction", Et);
|
|
53968
53965
|
}, hn = () => {
|
|
53969
53966
|
axios.delete(`${G.xprops.route}/${G.row.id}`).then(() => {
|
|
@@ -54005,7 +54002,7 @@ const Zce = /* @__PURE__ */ zr(Ese, [["render", Bse]]), Nse = {
|
|
|
54005
54002
|
Et.can(`delete_${A.xprops.permission}`) ? (ue(), fe("li", Sre, [
|
|
54006
54003
|
R("a", {
|
|
54007
54004
|
href: "#",
|
|
54008
|
-
onClick: za(
|
|
54005
|
+
onClick: za(Ce, ["prevent"]),
|
|
54009
54006
|
class: "block px-4 py-2 text-red-600 hover:text-white hover:bg-red-600 dark:text-red-500 dark:hover:text-white dark:hover:bg-red-600"
|
|
54010
54007
|
}, [
|
|
54011
54008
|
kre,
|
|
@@ -54075,15 +54072,15 @@ const Zce = /* @__PURE__ */ zr(Ese, [["render", Bse]]), Nse = {
|
|
|
54075
54072
|
"clip-rule": "evenodd"
|
|
54076
54073
|
})
|
|
54077
54074
|
], -1);
|
|
54078
|
-
function $re(A,
|
|
54075
|
+
function $re(A, se, G, _e, ne, Z) {
|
|
54079
54076
|
return ue(), fe("div", null, [
|
|
54080
|
-
Z.isArray ? (ue(!0), fe(jn, { key: 0 }, Ks(G.row, (
|
|
54077
|
+
Z.isArray ? (ue(!0), fe(jn, { key: 0 }, Ks(G.row, (Ce, X) => (ue(), fe("div", {
|
|
54081
54078
|
key: X,
|
|
54082
54079
|
class: "m-1 d-inline-block"
|
|
54083
54080
|
}, [
|
|
54084
54081
|
R("a", {
|
|
54085
|
-
href:
|
|
54086
|
-
title:
|
|
54082
|
+
href: Ce,
|
|
54083
|
+
title: Ce,
|
|
54087
54084
|
target: "_blank",
|
|
54088
54085
|
class: "inline-flex items-center px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"
|
|
54089
54086
|
}, [
|
|
@@ -54151,14 +54148,14 @@ const Yce = /* @__PURE__ */ zr(Tre, [["render", $re]]), Mre = {
|
|
|
54151
54148
|
"clip-rule": "evenodd"
|
|
54152
54149
|
})
|
|
54153
54150
|
], -1);
|
|
54154
|
-
function Fre(A,
|
|
54155
|
-
return Z.isArray ? (ue(!0), fe(jn, { key: 0 }, Ks(G.row[G.field], (
|
|
54156
|
-
key:
|
|
54151
|
+
function Fre(A, se, G, _e, ne, Z) {
|
|
54152
|
+
return Z.isArray ? (ue(!0), fe(jn, { key: 0 }, Ks(G.row[G.field], (Ce) => (ue(), fe("div", {
|
|
54153
|
+
key: Ce.id,
|
|
54157
54154
|
class: "m-1 d-inline-block"
|
|
54158
54155
|
}, [
|
|
54159
54156
|
R("a", {
|
|
54160
|
-
href:
|
|
54161
|
-
title:
|
|
54157
|
+
href: Ce.url,
|
|
54158
|
+
title: Ce.name,
|
|
54162
54159
|
target: "_blank",
|
|
54163
54160
|
class: "inline-flex items-center px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"
|
|
54164
54161
|
}, [
|
|
@@ -54180,7 +54177,7 @@ function Fre(A, oe, G, _e, ne, Z) {
|
|
|
54180
54177
|
const Xce = /* @__PURE__ */ zr(Mre, [["render", Fre]]), Hre = {
|
|
54181
54178
|
props: ["field", "row", "tdProps"]
|
|
54182
54179
|
}, Vre = { key: 0 }, zre = ["innerHTML"];
|
|
54183
|
-
function Ure(A,
|
|
54180
|
+
function Ure(A, se, G, _e, ne, Z) {
|
|
54184
54181
|
return G.row[G.field] ? (ue(), fe("div", Vre, [
|
|
54185
54182
|
R("div", {
|
|
54186
54183
|
class: "w-full",
|
|
@@ -54192,8 +54189,8 @@ const Jce = /* @__PURE__ */ zr(Hre, [["render", Ure]]), Wre = {
|
|
|
54192
54189
|
props: ["field", "row", "tdProps"],
|
|
54193
54190
|
computed: {
|
|
54194
54191
|
entry() {
|
|
54195
|
-
const [A,
|
|
54196
|
-
return Fq({ key: A, field:
|
|
54192
|
+
const [A, se] = this.field.split(".");
|
|
54193
|
+
return Fq({ key: A, field: se });
|
|
54197
54194
|
},
|
|
54198
54195
|
isArray() {
|
|
54199
54196
|
return Array.isArray(this.row[this.entry.key]);
|
|
@@ -54209,20 +54206,20 @@ const Jce = /* @__PURE__ */ zr(Hre, [["render", Ure]]), Wre = {
|
|
|
54209
54206
|
key: 1,
|
|
54210
54207
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"
|
|
54211
54208
|
};
|
|
54212
|
-
function Gre(A,
|
|
54209
|
+
function Gre(A, se, G, _e, ne, Z) {
|
|
54213
54210
|
return this.row[this.entry.key] ? (ue(), fe("div", Zre, [
|
|
54214
|
-
Z.isArray ? (ue(!0), fe(jn, { key: 0 }, Ks(G.row[Z.entry.key], (
|
|
54211
|
+
Z.isArray ? (ue(!0), fe(jn, { key: 0 }, Ks(G.row[Z.entry.key], (Ce, X) => (ue(), fe("span", {
|
|
54215
54212
|
key: X,
|
|
54216
54213
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"
|
|
54217
|
-
}, mt(
|
|
54214
|
+
}, mt(Ce[Z.entry.field]), 1))), 128)) : Z.isObject ? (ue(), fe("span", jre, mt(G.row[Z.entry.key][Z.entry.field]), 1)) : Ye("", !0)
|
|
54218
54215
|
])) : Ye("", !0);
|
|
54219
54216
|
}
|
|
54220
54217
|
const Qce = /* @__PURE__ */ zr(Wre, [["render", Gre]]), qre = {
|
|
54221
54218
|
props: ["field", "row", "tdProps"],
|
|
54222
54219
|
computed: {
|
|
54223
54220
|
entry() {
|
|
54224
|
-
const A = this.field.split("."),
|
|
54225
|
-
return { keys: A, field:
|
|
54221
|
+
const A = this.field.split("."), se = A.pop();
|
|
54222
|
+
return { keys: A, field: se };
|
|
54226
54223
|
},
|
|
54227
54224
|
isArray() {
|
|
54228
54225
|
return Array.isArray(this.getNestedValue(this.row, this.entry.keys));
|
|
@@ -54232,26 +54229,26 @@ const Qce = /* @__PURE__ */ zr(Wre, [["render", Gre]]), qre = {
|
|
|
54232
54229
|
}
|
|
54233
54230
|
},
|
|
54234
54231
|
methods: {
|
|
54235
|
-
getNestedValue(A,
|
|
54236
|
-
return
|
|
54232
|
+
getNestedValue(A, se) {
|
|
54233
|
+
return se.reduce((G, _e) => (G || {})[_e], A);
|
|
54237
54234
|
}
|
|
54238
54235
|
}
|
|
54239
54236
|
}, Kre = { class: "flex flex-wrap gap-2" }, Yre = {
|
|
54240
54237
|
key: 1,
|
|
54241
54238
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"
|
|
54242
54239
|
};
|
|
54243
|
-
function Xre(A,
|
|
54240
|
+
function Xre(A, se, G, _e, ne, Z) {
|
|
54244
54241
|
return ue(), fe("div", Kre, [
|
|
54245
|
-
Z.isArray ? (ue(!0), fe(jn, { key: 0 }, Ks(Z.getNestedValue(G.row, Z.entry.keys), (
|
|
54242
|
+
Z.isArray ? (ue(!0), fe(jn, { key: 0 }, Ks(Z.getNestedValue(G.row, Z.entry.keys), (Ce, X) => (ue(), fe("span", {
|
|
54246
54243
|
key: X,
|
|
54247
54244
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"
|
|
54248
|
-
}, mt(
|
|
54245
|
+
}, mt(Ce[Z.entry.field]), 1))), 128)) : Z.isObject ? (ue(), fe("span", Yre, mt(Z.getNestedValue(G.row, Z.entry.keys)[Z.entry.field]), 1)) : Ye("", !0)
|
|
54249
54246
|
]);
|
|
54250
54247
|
}
|
|
54251
54248
|
const eie = /* @__PURE__ */ zr(qre, [["render", Xre]]), Jre = {
|
|
54252
54249
|
props: ["field", "row", "tdProps"]
|
|
54253
54250
|
}, Qre = { key: 0 }, eae = { class: "m-1 d-inline-block" }, tae = ["href", "title"], nae = ["src", "alt", "title"];
|
|
54254
|
-
function oae(A,
|
|
54251
|
+
function oae(A, se, G, _e, ne, Z) {
|
|
54255
54252
|
return G.row[G.field] ? (ue(), fe("div", Qre, [
|
|
54256
54253
|
R("div", eae, [
|
|
54257
54254
|
R("a", {
|
|
@@ -54282,15 +54279,15 @@ const tie = /* @__PURE__ */ zr(Jre, [["render", oae], ["__scopeId", "data-v-3a28
|
|
|
54282
54279
|
key: 0,
|
|
54283
54280
|
class: "grid grid-cols-2 gap-4"
|
|
54284
54281
|
}, aae = ["src", "alt"], lae = { key: 1 }, cae = ["src", "alt"];
|
|
54285
|
-
function iae(A,
|
|
54282
|
+
function iae(A, se, G, _e, ne, Z) {
|
|
54286
54283
|
return Z.isArray ? (ue(), fe("div", rae, [
|
|
54287
|
-
(ue(!0), fe(jn, null, Ks(G.row[G.field], (
|
|
54288
|
-
key:
|
|
54284
|
+
(ue(!0), fe(jn, null, Ks(G.row[G.field], (Ce) => (ue(), fe("div", {
|
|
54285
|
+
key: Ce.id
|
|
54289
54286
|
}, [
|
|
54290
54287
|
R("img", {
|
|
54291
54288
|
class: "h-auto max-w-full rounded-lg",
|
|
54292
|
-
src:
|
|
54293
|
-
alt:
|
|
54289
|
+
src: Ce.thumbnail,
|
|
54290
|
+
alt: Ce.file_name
|
|
54294
54291
|
}, null, 8, aae)
|
|
54295
54292
|
]))), 128))
|
|
54296
54293
|
])) : Z.isObject ? (ue(), fe("div", lae, [
|
|
@@ -54315,7 +54312,7 @@ const nie = /* @__PURE__ */ zr(sae, [["render", iae]]), uae = {
|
|
|
54315
54312
|
key: 1,
|
|
54316
54313
|
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"
|
|
54317
54314
|
}, hae = /* @__PURE__ */ R("span", { class: "w-2 h-2 bg-red-500 rounded-full me-1" }, null, -1);
|
|
54318
|
-
function pae(A,
|
|
54315
|
+
function pae(A, se, G, _e, ne, Z) {
|
|
54319
54316
|
return ue(), fe("div", dae, [
|
|
54320
54317
|
Z.isActive ? (ue(), fe("span", mae, [
|
|
54321
54318
|
fae,
|
|
@@ -54330,10 +54327,10 @@ const oie = /* @__PURE__ */ zr(uae, [["render", pae]]), bae = {
|
|
|
54330
54327
|
props: ["field", "row", "tdProps"],
|
|
54331
54328
|
computed: {
|
|
54332
54329
|
hasLabelColor(A) {
|
|
54333
|
-
const
|
|
54330
|
+
const se = this.tdProps.status_general_labels_color.find(
|
|
54334
54331
|
(G) => G.label === this.row[this.field]
|
|
54335
54332
|
);
|
|
54336
|
-
return
|
|
54333
|
+
return se ? se.class : "";
|
|
54337
54334
|
}
|
|
54338
54335
|
}
|
|
54339
54336
|
}, vae = { class: "flex flex-wrap gap-2 text-nowrap" }, yae = {
|
|
@@ -54355,7 +54352,7 @@ const oie = /* @__PURE__ */ zr(uae, [["render", pae]]), bae = {
|
|
|
54355
54352
|
/* @__PURE__ */ R("span", { class: "absolute inline-flex w-full h-full bg-blue-500 rounded-full animate-ping" }),
|
|
54356
54353
|
/* @__PURE__ */ R("span", { class: "relative inline-flex w-2 h-2 bg-blue-500 rounded-full" })
|
|
54357
54354
|
], -1);
|
|
54358
|
-
function Dae(A,
|
|
54355
|
+
function Dae(A, se, G, _e, ne, Z) {
|
|
54359
54356
|
return ue(), fe("div", vae, [
|
|
54360
54357
|
Z.hasLabelColor == "green" ? (ue(), fe("span", yae, [
|
|
54361
54358
|
wae,
|
|
@@ -54401,7 +54398,7 @@ const sie = /* @__PURE__ */ zr(bae, [["render", Dae]]), Oae = {
|
|
|
54401
54398
|
}
|
|
54402
54399
|
}
|
|
54403
54400
|
}, Rae = { class: "flex flex-wrap gap-2 text-nowrap lg:justify-center" };
|
|
54404
|
-
function $ae(A,
|
|
54401
|
+
function $ae(A, se, G, _e, ne, Z) {
|
|
54405
54402
|
return ue(), fe("div", Rae, [
|
|
54406
54403
|
Z.hasLabelColor == "Default" ? (ue(), fe("span", {
|
|
54407
54404
|
key: 0,
|
|
@@ -54441,8 +54438,8 @@ const rie = /* @__PURE__ */ zr(Oae, [["render", $ae]]), Mae = {
|
|
|
54441
54438
|
props: ["field", "row", "tdProps"],
|
|
54442
54439
|
computed: {
|
|
54443
54440
|
entry() {
|
|
54444
|
-
const A = this.field.split("."),
|
|
54445
|
-
return { keys: A, field:
|
|
54441
|
+
const A = this.field.split("."), se = A.pop();
|
|
54442
|
+
return { keys: A, field: se };
|
|
54446
54443
|
},
|
|
54447
54444
|
isArray() {
|
|
54448
54445
|
return Array.isArray(this.getNestedValue(this.row, this.entry.keys));
|
|
@@ -54451,14 +54448,14 @@ const rie = /* @__PURE__ */ zr(Oae, [["render", $ae]]), Mae = {
|
|
|
54451
54448
|
return typeof this.getNestedValue(this.row, this.entry.keys) == "object";
|
|
54452
54449
|
},
|
|
54453
54450
|
hasLabelColor(A) {
|
|
54454
|
-
const
|
|
54451
|
+
const se = this.tdProps.status_general_labels_color.find(
|
|
54455
54452
|
(G) => G.text === this.getValue()
|
|
54456
54453
|
);
|
|
54457
|
-
return
|
|
54454
|
+
return se ? se.class : "";
|
|
54458
54455
|
},
|
|
54459
54456
|
getLabel() {
|
|
54460
54457
|
const A = this.tdProps.status_general_labels_color.find(
|
|
54461
|
-
(
|
|
54458
|
+
(se) => se.text === this.getValue()
|
|
54462
54459
|
);
|
|
54463
54460
|
return A ? A.label : "";
|
|
54464
54461
|
}
|
|
@@ -54467,8 +54464,8 @@ const rie = /* @__PURE__ */ zr(Oae, [["render", $ae]]), Mae = {
|
|
|
54467
54464
|
getValue() {
|
|
54468
54465
|
return this.isObject ? this.getNestedValue(this.row, this.entry.keys)[this.entry.field] : this.row[this.field];
|
|
54469
54466
|
},
|
|
54470
|
-
getNestedValue(A,
|
|
54471
|
-
return
|
|
54467
|
+
getNestedValue(A, se) {
|
|
54468
|
+
return se.reduce((G, _e) => (G || {})[_e], A);
|
|
54472
54469
|
}
|
|
54473
54470
|
}
|
|
54474
54471
|
}, Pae = { class: "flex flex-wrap gap-2 text-nowrap" }, Bae = {
|
|
@@ -54490,7 +54487,7 @@ const rie = /* @__PURE__ */ zr(Oae, [["render", $ae]]), Mae = {
|
|
|
54490
54487
|
/* @__PURE__ */ R("span", { class: "absolute inline-flex w-full h-full bg-blue-500 rounded-full animate-ping" }),
|
|
54491
54488
|
/* @__PURE__ */ R("span", { class: "relative inline-flex w-2 h-2 bg-blue-500 rounded-full" })
|
|
54492
54489
|
], -1);
|
|
54493
|
-
function Zae(A,
|
|
54490
|
+
function Zae(A, se, G, _e, ne, Z) {
|
|
54494
54491
|
return ue(), fe("div", Pae, [
|
|
54495
54492
|
Z.hasLabelColor == "green" ? (ue(), fe("span", Bae, [
|
|
54496
54493
|
Nae,
|
|
@@ -54520,14 +54517,14 @@ const aie = /* @__PURE__ */ zr(Mae, [["render", Zae]]), jae = {
|
|
|
54520
54517
|
formattedDate() {
|
|
54521
54518
|
if (!this.row[this.field])
|
|
54522
54519
|
return "";
|
|
54523
|
-
const A = new Date(this.row[this.field]),
|
|
54520
|
+
const A = new Date(this.row[this.field]), se = A.getFullYear(), G = A.toLocaleString("default", { month: "long" }), _e = A.getDate();
|
|
54524
54521
|
let ne = A.getHours();
|
|
54525
|
-
const Z = A.getMinutes(),
|
|
54526
|
-
return ne = ne % 12, ne = ne || 12, `${G} ${_e}, ${
|
|
54522
|
+
const Z = A.getMinutes(), Ce = A.getSeconds(), X = ne >= 12 ? "pm" : "am";
|
|
54523
|
+
return ne = ne % 12, ne = ne || 12, `${G} ${_e}, ${se}, ${ne}:${Z}:${Ce} ${X}`;
|
|
54527
54524
|
}
|
|
54528
54525
|
}
|
|
54529
54526
|
}, Gae = { class: "w-full" };
|
|
54530
|
-
function qae(A,
|
|
54527
|
+
function qae(A, se, G, _e, ne, Z) {
|
|
54531
54528
|
return ue(), fe("div", Gae, mt(Z.formattedDate), 1);
|
|
54532
54529
|
}
|
|
54533
54530
|
const lie = /* @__PURE__ */ zr(jae, [["render", qae]]), Kae = {
|
|
@@ -54536,12 +54533,12 @@ const lie = /* @__PURE__ */ zr(jae, [["render", qae]]), Kae = {
|
|
|
54536
54533
|
formattedDate() {
|
|
54537
54534
|
if (!this.row[this.field])
|
|
54538
54535
|
return "";
|
|
54539
|
-
const A = new Date(this.row[this.field]),
|
|
54540
|
-
return `${G} ${_e}, ${
|
|
54536
|
+
const A = new Date(this.row[this.field]), se = A.getFullYear(), G = A.toLocaleString("default", { month: "long" }), _e = A.getDate();
|
|
54537
|
+
return `${G} ${_e}, ${se}`;
|
|
54541
54538
|
}
|
|
54542
54539
|
}
|
|
54543
54540
|
}, Yae = { class: "w-full" };
|
|
54544
|
-
function Xae(A,
|
|
54541
|
+
function Xae(A, se, G, _e, ne, Z) {
|
|
54545
54542
|
return ue(), fe("div", Yae, mt(Z.formattedDate), 1);
|
|
54546
54543
|
}
|
|
54547
54544
|
const cie = /* @__PURE__ */ zr(Kae, [["render", Xae]]), Jae = {
|
|
@@ -54559,7 +54556,7 @@ const cie = /* @__PURE__ */ zr(Kae, [["render", Xae]]), Jae = {
|
|
|
54559
54556
|
key: 2,
|
|
54560
54557
|
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"
|
|
54561
54558
|
}, rle = /* @__PURE__ */ R("span", { class: "w-2 h-2 bg-green-500 rounded-full me-1" }, null, -1);
|
|
54562
|
-
function ale(A,
|
|
54559
|
+
function ale(A, se, G, _e, ne, Z) {
|
|
54563
54560
|
return ue(), fe("div", Qae, [
|
|
54564
54561
|
G.row[G.field] === 0 ? (ue(), fe("span", ele, [
|
|
54565
54562
|
tle,
|
|
@@ -54581,7 +54578,7 @@ const iie = /* @__PURE__ */ zr(Jae, [["render", ale]]), lle = {
|
|
|
54581
54578
|
key: 0,
|
|
54582
54579
|
class: "text-nowrap w-full"
|
|
54583
54580
|
}, 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" };
|
|
54584
|
-
function ule(A,
|
|
54581
|
+
function ule(A, se, G, _e, ne, Z) {
|
|
54585
54582
|
return G.row[G.field] ? (ue(), fe("div", cle, [
|
|
54586
54583
|
R("pre", ile, " " + mt(G.row[G.field]) + `
|
|
54587
54584
|
`, 1)
|
|
@@ -54612,8 +54609,8 @@ const uie = /* @__PURE__ */ zr(lle, [["render", ule]]), dle = {
|
|
|
54612
54609
|
class: "hidden sm:inline-block sm:align-middle sm:h-screen",
|
|
54613
54610
|
"aria-hidden": "true"
|
|
54614
54611
|
}, "", -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" };
|
|
54615
|
-
function _le(A,
|
|
54616
|
-
const
|
|
54612
|
+
function _le(A, se, G, _e, ne, Z) {
|
|
54613
|
+
const Ce = Rd("gl-button");
|
|
54617
54614
|
return G.isOpen ? (ue(), fe("div", mle, [
|
|
54618
54615
|
R("div", fle, [
|
|
54619
54616
|
gle,
|
|
@@ -54630,7 +54627,7 @@ function _le(A, oe, G, _e, ne, Z) {
|
|
|
54630
54627
|
])
|
|
54631
54628
|
]),
|
|
54632
54629
|
R("div", Cle, [
|
|
54633
|
-
ui(
|
|
54630
|
+
ui(Ce, {
|
|
54634
54631
|
onClick: Z.confirmAction,
|
|
54635
54632
|
tag: "button",
|
|
54636
54633
|
button_type: "red"
|
|
@@ -54640,7 +54637,7 @@ function _le(A, oe, G, _e, ne, Z) {
|
|
|
54640
54637
|
]),
|
|
54641
54638
|
_: 1
|
|
54642
54639
|
}, 8, ["onClick"]),
|
|
54643
|
-
ui(
|
|
54640
|
+
ui(Ce, {
|
|
54644
54641
|
onClick: Z.cancelAction,
|
|
54645
54642
|
tag: "button",
|
|
54646
54643
|
button_type: "light"
|
|
@@ -54706,16 +54703,16 @@ const die = /* @__PURE__ */ zr(dle, [["render", _le]]), Sle = { class: "w-full"
|
|
|
54706
54703
|
}
|
|
54707
54704
|
},
|
|
54708
54705
|
setup(A) {
|
|
54709
|
-
const
|
|
54706
|
+
const se = A, G = co(!1), _e = (Z) => {
|
|
54710
54707
|
navigator.clipboard.writeText(Z).then(function() {
|
|
54711
54708
|
G.value = !0, setTimeout(() => {
|
|
54712
54709
|
G.value = !1;
|
|
54713
54710
|
}, 2e3);
|
|
54714
|
-
}).catch(function(
|
|
54715
|
-
console.error("Error copying to clipboard: ",
|
|
54711
|
+
}).catch(function(Ce) {
|
|
54712
|
+
console.error("Error copying to clipboard: ", Ce);
|
|
54716
54713
|
});
|
|
54717
|
-
}, ne = pu(() =>
|
|
54718
|
-
return (Z,
|
|
54714
|
+
}, ne = pu(() => se.code);
|
|
54715
|
+
return (Z, Ce) => (ue(), fe("div", Sle, [
|
|
54719
54716
|
R("div", kle, [
|
|
54720
54717
|
R("p", Tle, mt(A.label_name), 1)
|
|
54721
54718
|
]),
|
|
@@ -54725,7 +54722,7 @@ const die = /* @__PURE__ */ zr(dle, [["render", _le]]), Sle = { class: "w-full"
|
|
|
54725
54722
|
]),
|
|
54726
54723
|
R("div", Ole, [
|
|
54727
54724
|
R("button", {
|
|
54728
|
-
onClick:
|
|
54725
|
+
onClick: Ce[0] || (Ce[0] = (X) => _e(ne.value)),
|
|
54729
54726
|
class: "text-gray-900 dark:text-gray-400 m-1 hover:bg-gray-100 dark:bg-gray-800 dark:border-gray-600 dark:hover:bg-gray-700 rounded-lg py-2 px-3 inline-flex items-center justify-center bg-white border-gray-200 border"
|
|
54730
54727
|
}, [
|
|
54731
54728
|
G.value ? Ye("", !0) : (ue(), fe("span", Rle, Ple)),
|
|
@@ -54786,16 +54783,16 @@ const die = /* @__PURE__ */ zr(dle, [["render", _le]]), Sle = { class: "w-full"
|
|
|
54786
54783
|
}
|
|
54787
54784
|
},
|
|
54788
54785
|
setup(A) {
|
|
54789
|
-
const
|
|
54786
|
+
const se = A, G = co(!1), _e = (Z) => {
|
|
54790
54787
|
navigator.clipboard.writeText(Z).then(function() {
|
|
54791
54788
|
G.value = !0, setTimeout(() => {
|
|
54792
54789
|
G.value = !1;
|
|
54793
54790
|
}, 2e3);
|
|
54794
|
-
}).catch(function(
|
|
54795
|
-
console.error("Error copying to clipboard: ",
|
|
54791
|
+
}).catch(function(Ce) {
|
|
54792
|
+
console.error("Error copying to clipboard: ", Ce);
|
|
54796
54793
|
});
|
|
54797
|
-
}, ne = pu(() =>
|
|
54798
|
-
return (Z,
|
|
54794
|
+
}, ne = pu(() => se.code);
|
|
54795
|
+
return (Z, Ce) => (ue(), fe("div", Hle, [
|
|
54799
54796
|
R("div", Vle, [
|
|
54800
54797
|
R("label", zle, mt(A.label_name), 1)
|
|
54801
54798
|
]),
|
|
@@ -54813,7 +54810,7 @@ const die = /* @__PURE__ */ zr(dle, [["render", _le]]), Sle = { class: "w-full"
|
|
|
54813
54810
|
]),
|
|
54814
54811
|
R("button", {
|
|
54815
54812
|
style: { padding: ".61rem" },
|
|
54816
|
-
onClick:
|
|
54813
|
+
onClick: Ce[0] || (Ce[0] = (X) => _e(ne.value)),
|
|
54817
54814
|
class: "flex-shrink-0 z-10 inline-flex items-center px-4 text-sm font-medium text-center text-white bg-blue-700 rounded-e-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800 border border-blue-700 dark:border-blue-600 hover:border-blue-800 dark:hover:border-blue-700",
|
|
54818
54815
|
type: "button"
|
|
54819
54816
|
}, [
|
|
@@ -54845,7 +54842,7 @@ const die = /* @__PURE__ */ zr(dle, [["render", _le]]), Sle = { class: "w-full"
|
|
|
54845
54842
|
}
|
|
54846
54843
|
},
|
|
54847
54844
|
setup(A) {
|
|
54848
|
-
return (
|
|
54845
|
+
return (se, G) => (ue(), fe("div", ece, [
|
|
54849
54846
|
A.status === 0 ? (ue(), fe("span", tce, [
|
|
54850
54847
|
nce,
|
|
54851
54848
|
Zn(" Running")
|
|
@@ -54893,8 +54890,8 @@ const die = /* @__PURE__ */ zr(dle, [["render", _le]]), Sle = { class: "w-full"
|
|
|
54893
54890
|
}
|
|
54894
54891
|
},
|
|
54895
54892
|
emits: ["reconnect"],
|
|
54896
|
-
setup(A, { emit:
|
|
54897
|
-
const G =
|
|
54893
|
+
setup(A, { emit: se }) {
|
|
54894
|
+
const G = se, _e = () => {
|
|
54898
54895
|
G("reconnect");
|
|
54899
54896
|
};
|
|
54900
54897
|
return (ne, Z) => (ue(), fe("div", lce, [
|
|
@@ -54919,9 +54916,9 @@ const die = /* @__PURE__ */ zr(dle, [["render", _le]]), Sle = { class: "w-full"
|
|
|
54919
54916
|
]));
|
|
54920
54917
|
}
|
|
54921
54918
|
}, pie = {
|
|
54922
|
-
beforeMount: (A,
|
|
54919
|
+
beforeMount: (A, se) => {
|
|
54923
54920
|
A.clickOutsideEvent = (G) => {
|
|
54924
|
-
A == G.target || A.contains(G.target) ||
|
|
54921
|
+
A == G.target || A.contains(G.target) || se.value(G, A);
|
|
54925
54922
|
}, document.addEventListener("click", A.clickOutsideEvent);
|
|
54926
54923
|
},
|
|
54927
54924
|
unmounted: (A) => {
|