golden-logic-ui 1.0.207 → 1.0.208
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 +505 -503
- package/dist/golden-logic-ui.umd.cjs +17 -17
- package/package.json +1 -1
package/dist/golden-logic-ui.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { openBlock as ke, createElementBlock as Ae, createElementVNode as V, createCommentVNode as Bt, createStaticVNode as
|
|
1
|
+
import { openBlock as ke, createElementBlock as Ae, createElementVNode as V, createCommentVNode as Bt, createStaticVNode as kq, resolveComponent as Zx, Fragment as Go, createVNode as _y, normalizeClass as Cn, toDisplayString as It, withModifiers as Uu, withDirectives as Il, vModelText as Oh, renderList as aa, normalizeStyle as Tq, computed as gu, renderSlot as bf, ref as _s, onMounted as b1, watch as ST, createTextVNode as ls, vShow as n5, nextTick as Oj, createBlock as jx, resolveDynamicComponent as V8, mergeProps as t5, withCtx as z8, vModelDynamic as Eq, provide as YG, inject as XG, pushScopeId as Aq, popScopeId as Oq, vModelCheckbox as Dq, onBeforeUnmount as Rq, toHandlers as Ej, onUnmounted as $q, reactive as Mq, TransitionGroup as Nq, unref as Bq, resolveDirective as JG, markRaw as Pq } from "vue";
|
|
2
2
|
const Ta = (P, ve) => {
|
|
3
3
|
const ce = P.__vccOpts || P;
|
|
4
4
|
for (const [Ne, xe] of ve)
|
|
@@ -26,8 +26,8 @@ const Ta = (P, ve) => {
|
|
|
26
26
|
}, null, -1), Vq = /* @__PURE__ */ V("span", {
|
|
27
27
|
class: "hidden sm:inline-block sm:align-middle sm:h-screen",
|
|
28
28
|
"aria-hidden": "true"
|
|
29
|
-
}, "", -1), zq = { class: "inline-block overflow-hidden text-left align-bottom transition-all transform bg-white rounded-lg shadow-xl sm:my-8 sm:align-middle sm:max-w-lg sm:w-full" }, Uq = /* @__PURE__ */
|
|
30
|
-
function Zq(P, ve, ce, Ne, xe,
|
|
29
|
+
}, "", -1), zq = { class: "inline-block overflow-hidden text-left align-bottom transition-all transform bg-white rounded-lg shadow-xl sm:my-8 sm:align-middle sm:max-w-lg sm:w-full" }, Uq = /* @__PURE__ */ kq('<div class="px-4 pt-5 pb-4 bg-white 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 text-gray-900" id="modal-title"> Confirm Deletion </h3><div class="mt-2"><p class="text-sm text-gray-500"> Are you sure you want to delete this item? This action cannot be undone. </p></div></div></div></div>', 1), Wq = { class: "px-4 py-3 bg-gray-50 sm:px-6 sm:flex sm:flex-row-reverse" };
|
|
30
|
+
function Zq(P, ve, ce, Ne, xe, oe) {
|
|
31
31
|
return ce.isOpen ? (ke(), Ae("div", Lq, [
|
|
32
32
|
V("div", Fq, [
|
|
33
33
|
Hq,
|
|
@@ -36,12 +36,12 @@ function Zq(P, ve, ce, Ne, xe, se) {
|
|
|
36
36
|
Uq,
|
|
37
37
|
V("div", Wq, [
|
|
38
38
|
V("button", {
|
|
39
|
-
onClick: ve[0] || (ve[0] = (...Re) =>
|
|
39
|
+
onClick: ve[0] || (ve[0] = (...Re) => oe.confirmDeletion && oe.confirmDeletion(...Re)),
|
|
40
40
|
type: "button",
|
|
41
41
|
class: "inline-flex justify-center w-full px-4 py-2 text-base font-medium text-white bg-red-600 border border-transparent rounded-md shadow-sm hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm"
|
|
42
42
|
}, " Delete "),
|
|
43
43
|
V("button", {
|
|
44
|
-
onClick: ve[1] || (ve[1] = (...Re) =>
|
|
44
|
+
onClick: ve[1] || (ve[1] = (...Re) => oe.cancelDeletion && oe.cancelDeletion(...Re)),
|
|
45
45
|
type: "button",
|
|
46
46
|
class: "inline-flex justify-center w-full px-4 py-2 mt-3 text-base font-medium text-gray-700 bg-white border border-gray-300 rounded-md shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"
|
|
47
47
|
}, " Cancel ")
|
|
@@ -159,8 +159,8 @@ const Dj = /* @__PURE__ */ Ta(Iq, [["render", Zq]]), jq = {
|
|
|
159
159
|
return new Promise((ve, ce) => {
|
|
160
160
|
P || ve();
|
|
161
161
|
const Ne = new FormData();
|
|
162
|
-
Ne.append("file", P), Object.entries(this.file_config).forEach(([xe,
|
|
163
|
-
Ne.append(xe,
|
|
162
|
+
Ne.append("file", P), Object.entries(this.file_config).forEach(([xe, oe]) => {
|
|
163
|
+
Ne.append(xe, oe);
|
|
164
164
|
}), this.files.push({ file_name: P.name, loading: 0 }), axios.post(this.route_url + "/media", Ne, {
|
|
165
165
|
onUploadProgress: (xe) => {
|
|
166
166
|
this.files[this.files.length - 1].loading = Math.floor(
|
|
@@ -168,10 +168,10 @@ const Dj = /* @__PURE__ */ Ta(Iq, [["render", Zq]]), jq = {
|
|
|
168
168
|
);
|
|
169
169
|
}
|
|
170
170
|
}).then((xe) => {
|
|
171
|
-
let
|
|
171
|
+
let oe = this.files.findIndex(
|
|
172
172
|
(Re) => Re.file_name === P.name
|
|
173
173
|
);
|
|
174
|
-
|
|
174
|
+
oe !== -1 && this.files.splice(oe, 1), this.uploadFileList.push({
|
|
175
175
|
file_name: xe.data.file_name,
|
|
176
176
|
size: xe.data.size,
|
|
177
177
|
id: xe.data.id,
|
|
@@ -182,10 +182,10 @@ const Dj = /* @__PURE__ */ Ta(Iq, [["render", Zq]]), jq = {
|
|
|
182
182
|
xe.response.data.errors,
|
|
183
183
|
"file"
|
|
184
184
|
) : console.error("An error occurred:", xe);
|
|
185
|
-
let
|
|
185
|
+
let oe = this.files.findIndex(
|
|
186
186
|
(Re) => Re.file_name === P.name
|
|
187
187
|
);
|
|
188
|
-
|
|
188
|
+
oe !== -1 && this.files.splice(oe, 1), console.log(xe), ve();
|
|
189
189
|
});
|
|
190
190
|
});
|
|
191
191
|
}
|
|
@@ -225,13 +225,13 @@ const Dj = /* @__PURE__ */ Ta(Iq, [["render", Zq]]), jq = {
|
|
|
225
225
|
class: "text-3xl fas fa-file-alt",
|
|
226
226
|
"aria-hidden": "true"
|
|
227
227
|
}, null, -1), pK = { class: "flex flex-col ml-3" }, bK = { class: "text-xs" }, vK = { class: "text-xs" }, yK = { class: "flex gap-2" }, wK = ["href"], xK = ["onClick"];
|
|
228
|
-
function CK(P, ve, ce, Ne, xe,
|
|
228
|
+
function CK(P, ve, ce, Ne, xe, oe) {
|
|
229
229
|
const Re = Zx("DeleteConfirmationModal");
|
|
230
230
|
return ke(), Ae(Go, null, [
|
|
231
231
|
_y(Re, {
|
|
232
232
|
isOpen: xe.open_delete_modal,
|
|
233
|
-
onConfirmDelete:
|
|
234
|
-
onCancelDelete:
|
|
233
|
+
onConfirmDelete: oe.deleteAction,
|
|
234
|
+
onCancelDelete: oe.closeDeleteModal
|
|
235
235
|
}, null, 8, ["isOpen", "onConfirmDelete", "onCancelDelete"]),
|
|
236
236
|
V("div", {
|
|
237
237
|
class: Cn([{
|
|
@@ -247,9 +247,9 @@ function CK(P, ve, ce, Ne, xe, se) {
|
|
|
247
247
|
})
|
|
248
248
|
}, It(ce.label_name), 3),
|
|
249
249
|
V("div", {
|
|
250
|
-
onDragover: ve[3] || (ve[3] = Uu((...Q) =>
|
|
251
|
-
onDragleave: ve[4] || (ve[4] = Uu((...Q) =>
|
|
252
|
-
onDrop: ve[5] || (ve[5] = Uu((...Q) =>
|
|
250
|
+
onDragover: ve[3] || (ve[3] = Uu((...Q) => oe.onDragOver && oe.onDragOver(...Q), ["prevent"])),
|
|
251
|
+
onDragleave: ve[4] || (ve[4] = Uu((...Q) => oe.onDragLeave && oe.onDragLeave(...Q), ["prevent"])),
|
|
252
|
+
onDrop: ve[5] || (ve[5] = Uu((...Q) => oe.onDrop && oe.onDrop(...Q), ["prevent"])),
|
|
253
253
|
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"
|
|
254
254
|
}, [
|
|
255
255
|
V("div", Gq, [
|
|
@@ -258,14 +258,14 @@ function CK(P, ve, ce, Ne, xe, se) {
|
|
|
258
258
|
ref: "file_input" + ce.field_name,
|
|
259
259
|
hidden: "",
|
|
260
260
|
multiple: ce.has_multiple_file,
|
|
261
|
-
onChange: ve[0] || (ve[0] = (...Q) =>
|
|
261
|
+
onChange: ve[0] || (ve[0] = (...Q) => oe.uploadFiles && oe.uploadFiles(...Q))
|
|
262
262
|
}, null, 40, qq),
|
|
263
263
|
Il(V("input", {
|
|
264
264
|
type: "hidden",
|
|
265
265
|
name: ce.field_name,
|
|
266
|
-
"onUpdate:modelValue": ve[1] || (ve[1] = (Q) =>
|
|
266
|
+
"onUpdate:modelValue": ve[1] || (ve[1] = (Q) => oe.uploadedFileIds = Q)
|
|
267
267
|
}, null, 8, Kq), [
|
|
268
|
-
[Oh,
|
|
268
|
+
[Oh, oe.uploadedFileIds]
|
|
269
269
|
]),
|
|
270
270
|
xe.isDragging ? (ke(), Ae("div", Qq, tK)) : (ke(), Ae("div", {
|
|
271
271
|
key: 0,
|
|
@@ -281,13 +281,13 @@ function CK(P, ve, ce, Ne, xe, se) {
|
|
|
281
281
|
aK,
|
|
282
282
|
V("div", cK, [
|
|
283
283
|
V("div", lK, [
|
|
284
|
-
V("span", iK, It(
|
|
284
|
+
V("span", iK, It(oe.getFileName(Q.file_name)), 1),
|
|
285
285
|
V("span", uK, It(Q.loading), 1)
|
|
286
286
|
]),
|
|
287
287
|
V("div", dK, [
|
|
288
288
|
V("div", {
|
|
289
289
|
class: "h-full bg-gray-500 rounded-full dark:bg-gray-400",
|
|
290
|
-
style:
|
|
290
|
+
style: Tq({ width: Q.loading + "%" })
|
|
291
291
|
}, null, 4)
|
|
292
292
|
])
|
|
293
293
|
])
|
|
@@ -298,8 +298,8 @@ function CK(P, ve, ce, Ne, xe, se) {
|
|
|
298
298
|
V("div", gK, [
|
|
299
299
|
hK,
|
|
300
300
|
V("div", pK, [
|
|
301
|
-
V("span", bK, It(
|
|
302
|
-
V("span", vK, It(
|
|
301
|
+
V("span", bK, It(oe.getFileName(Q.file_name)), 1),
|
|
302
|
+
V("span", vK, It(oe.formatFileSize(Q.size)), 1)
|
|
303
303
|
])
|
|
304
304
|
]),
|
|
305
305
|
V("div", yK, [
|
|
@@ -357,7 +357,7 @@ const Wse = /* @__PURE__ */ Ta(jq, [["render", CK]]), SK = {
|
|
|
357
357
|
mounted() {
|
|
358
358
|
}
|
|
359
359
|
}, _K = { class: "grid w-full gap-1 mt-5 mb-5 md:gap-0 md:grid-cols-10 language-selector" }, kK = ["name", "value", "id", "checked"], TK = ["for"];
|
|
360
|
-
function EK(P, ve, ce, Ne, xe,
|
|
360
|
+
function EK(P, ve, ce, Ne, xe, oe) {
|
|
361
361
|
return ke(), Ae("ul", _K, [
|
|
362
362
|
(ke(!0), Ae(Go, null, aa(xe.locals, (Re, Q) => (ke(), Ae("li", null, [
|
|
363
363
|
V("input", {
|
|
@@ -394,7 +394,7 @@ const Zse = /* @__PURE__ */ Ta(SK, [["render", EK]]), AK = { class: "bg-white bo
|
|
|
394
394
|
},
|
|
395
395
|
setup(P) {
|
|
396
396
|
const ve = P, ce = gu(() => ve.class), Ne = gu(() => ve.body_class);
|
|
397
|
-
return (xe,
|
|
397
|
+
return (xe, oe) => (ke(), Ae("div", {
|
|
398
398
|
class: Cn(["flex flex-col gap-9", ce.value])
|
|
399
399
|
}, [
|
|
400
400
|
V("div", AK, [
|
|
@@ -494,7 +494,7 @@ const Zse = /* @__PURE__ */ Ta(SK, [["render", EK]]), AK = { class: "bg-white bo
|
|
|
494
494
|
},
|
|
495
495
|
emits: ["update:modelValue", "selected", "selectionChanged"],
|
|
496
496
|
setup(P, { emit: ve }) {
|
|
497
|
-
const ce = P, Ne = ve, xe = _s(null),
|
|
497
|
+
const ce = P, Ne = ve, xe = _s(null), oe = _s([]), Re = _s([]), Q = _s(0), Ue = _s(!1), Dt = _s(""), rn = _s("");
|
|
498
498
|
b1(() => {
|
|
499
499
|
rn.value = $o(), ce.show || (document.body.addEventListener("click", (Ge) => {
|
|
500
500
|
Xn(Ge);
|
|
@@ -540,17 +540,17 @@ const Zse = /* @__PURE__ */ Ta(SK, [["render", EK]]), AK = { class: "bg-white bo
|
|
|
540
540
|
return Ge.every((A) => typeof A == "object" && A !== null);
|
|
541
541
|
}
|
|
542
542
|
function dn(Ge) {
|
|
543
|
-
return
|
|
543
|
+
return oe.value.findIndex((A) => A.id === Ge) !== -1;
|
|
544
544
|
}
|
|
545
545
|
function me() {
|
|
546
|
-
|
|
546
|
+
oe.value = wt();
|
|
547
547
|
}
|
|
548
548
|
function St() {
|
|
549
|
-
|
|
549
|
+
oe.value = [], Ne("update:modelValue", []), Ne("selected", []), Ne("selectionChanged", []);
|
|
550
550
|
}
|
|
551
551
|
function Ea(Ge) {
|
|
552
|
-
let A =
|
|
553
|
-
A !== -1 &&
|
|
552
|
+
let A = oe.value.findIndex((Xt) => Xt.id === Ge.id);
|
|
553
|
+
A !== -1 && oe.value.splice(A, 1), Re.value = oe.value.map((Xt) => Xt.id), Ne("update:modelValue", Re.value), Ne("selected", oe.value), Ne("selectionChanged", oe.value);
|
|
554
554
|
}
|
|
555
555
|
function Xn(Ge) {
|
|
556
556
|
Ge.target.id != ce.field_name + "search" + rn.value && Ge.target.id != ce.field_name && !Ge.target.classList.contains("showOptions") && (Jn(), Q.value = 0);
|
|
@@ -570,22 +570,22 @@ const Zse = /* @__PURE__ */ Ta(SK, [["render", EK]]), AK = { class: "bg-white bo
|
|
|
570
570
|
return ce.options.map((Ge, A) => typeof Ge == "object" ? Ge : { id: Ge, name: Ge });
|
|
571
571
|
}
|
|
572
572
|
function Fe() {
|
|
573
|
-
if (console.log("selected.value",
|
|
574
|
-
return ur(
|
|
575
|
-
(Ge) =>
|
|
573
|
+
if (console.log("selected.value", oe.value), console.log("isArrayObjectNotEmpty", Rt(oe.value)), Rt(oe.value))
|
|
574
|
+
return ur(oe.value) ? Bn.value.filter(
|
|
575
|
+
(Ge) => oe.value.some(
|
|
576
576
|
(A) => String(A.id) === String(Ge.id)
|
|
577
577
|
)
|
|
578
578
|
) || [] : Bn.value.filter(
|
|
579
|
-
(Ge) =>
|
|
579
|
+
(Ge) => oe.value.some(
|
|
580
580
|
(A) => String(A) === String(Ge.id)
|
|
581
581
|
)
|
|
582
582
|
) || [];
|
|
583
583
|
if (ce.modelValue)
|
|
584
|
-
return ur(ce.modelValue) ?
|
|
584
|
+
return ur(ce.modelValue) ? oe.value = Bn.value.filter(
|
|
585
585
|
(Ge) => ce.modelValue.some(
|
|
586
586
|
(A) => String(A.id) === String(Ge.id)
|
|
587
587
|
)
|
|
588
|
-
) || [] :
|
|
588
|
+
) || [] : oe.value = Bn.value.filter(
|
|
589
589
|
(Ge) => ce.modelValue.some(
|
|
590
590
|
(A) => String(A) === String(Ge.id)
|
|
591
591
|
)
|
|
@@ -593,8 +593,8 @@ const Zse = /* @__PURE__ */ Ta(SK, [["render", EK]]), AK = { class: "bg-white bo
|
|
|
593
593
|
}
|
|
594
594
|
function ie(Ge) {
|
|
595
595
|
console.log("selectOption", Ge);
|
|
596
|
-
let A =
|
|
597
|
-
A !== -1 ?
|
|
596
|
+
let A = oe.value.findIndex((Xt) => Xt.id === Ge.id);
|
|
597
|
+
A !== -1 ? oe.value.splice(A, 1) : oe.value.push(Ge), console.log("selectOption selected", oe.value), Ue.value = !1, Re.value = oe.value.map((Xt) => Xt.id), Ne("update:modelValue", Re.value), Ne("selected", oe.value), Ne("selectionChanged", oe.value);
|
|
598
598
|
}
|
|
599
599
|
function Mo() {
|
|
600
600
|
ce.show || (Dt.value = "", Ue.value = !0, Oj(() => {
|
|
@@ -605,12 +605,12 @@ const Zse = /* @__PURE__ */ Ta(SK, [["render", EK]]), AK = { class: "bg-white bo
|
|
|
605
605
|
}));
|
|
606
606
|
}
|
|
607
607
|
function Jn() {
|
|
608
|
-
Dt.value = "", Ne("selected",
|
|
608
|
+
Dt.value = "", Ne("selected", oe.value), Ue.value = !1;
|
|
609
609
|
}
|
|
610
610
|
return ST(Dt, () => {
|
|
611
|
-
zo.value.length === 0 && (
|
|
612
|
-
}), ST(
|
|
613
|
-
Rt(
|
|
611
|
+
zo.value.length === 0 && (oe.value = []);
|
|
612
|
+
}), ST(oe, (Ge) => {
|
|
613
|
+
Rt(oe.value) && (Re.value = oe.value.map((A) => A.id), Ne("update:modelValue", Re.value));
|
|
614
614
|
}), (Ge, A) => (ke(), Ae(Go, null, [
|
|
615
615
|
P.show ? (ke(), Ae("div", {
|
|
616
616
|
key: 0,
|
|
@@ -790,11 +790,11 @@ const Zse = /* @__PURE__ */ Ta(SK, [["render", EK]]), AK = { class: "bg-white bo
|
|
|
790
790
|
fill: "#1C64F2"
|
|
791
791
|
})
|
|
792
792
|
], -1);
|
|
793
|
-
function YK(P, ve, ce, Ne, xe,
|
|
793
|
+
function YK(P, ve, ce, Ne, xe, oe) {
|
|
794
794
|
return ce.is_loading ? (ke(), jx(V8("button"), {
|
|
795
795
|
key: 1,
|
|
796
796
|
disabled: "",
|
|
797
|
-
class: Cn(`flex items-center gap-2 focus:outline-none text-sm px-2 py-2 me-2 font-medium rounded-lg ${
|
|
797
|
+
class: Cn(`flex items-center gap-2 focus:outline-none text-sm px-2 py-2 me-2 font-medium rounded-lg ${oe.buttonTypeClass}`)
|
|
798
798
|
}, {
|
|
799
799
|
default: z8(() => [
|
|
800
800
|
KK,
|
|
@@ -807,7 +807,7 @@ function YK(P, ve, ce, Ne, xe, se) {
|
|
|
807
807
|
disabled: ce.is_disabled
|
|
808
808
|
}, { type: ce.is_submit ? "submit" : void 0 }, {
|
|
809
809
|
href: ce.tag === "a" ? ce.href : void 0,
|
|
810
|
-
class: ` ${ce.is_disabled ? "cursor-not-allowed opacity-50" : ""} flex items-center gap-2 focus:outline-none text-sm px-5 py-2 me-2 font-medium rounded-lg ${
|
|
810
|
+
class: ` ${ce.is_disabled ? "cursor-not-allowed opacity-50" : ""} flex items-center gap-2 focus:outline-none text-sm px-5 py-2 me-2 font-medium rounded-lg ${oe.buttonTypeClass}`
|
|
811
811
|
}), {
|
|
812
812
|
default: z8(() => [
|
|
813
813
|
ce.icon ? (ke(), Ae("i", {
|
|
@@ -877,9 +877,9 @@ const qse = /* @__PURE__ */ Ta(qK, [["render", YK]]), XK = { class: "font-bold p
|
|
|
877
877
|
},
|
|
878
878
|
emits: ["update:modelValue", "update:modelValueTranslate", "keydown"],
|
|
879
879
|
setup(P, { expose: ve, emit: ce }) {
|
|
880
|
-
const Ne = P, xe = ce,
|
|
880
|
+
const Ne = P, xe = ce, oe = _s(null), Re = _s(null);
|
|
881
881
|
return b1(() => {
|
|
882
|
-
|
|
882
|
+
oe.value !== null && oe.value.hasAttribute("autofocus") && oe.value.focus(), Ne.model_value && (xe("update:modelValue", Ne.model_value), oe.value.value = Ne.model_value), Ne.model_value_translate, Ne.translatable && axios.post("/admin/get_field_translations", {
|
|
883
883
|
model: Ne.translatable.model,
|
|
884
884
|
row_id: Ne.translatable.row_id,
|
|
885
885
|
field: Ne.translatable.field
|
|
@@ -888,7 +888,7 @@ const qse = /* @__PURE__ */ Ta(qK, [["render", YK]]), XK = { class: "font-bold p
|
|
|
888
888
|
}).catch((Q) => {
|
|
889
889
|
console.log(Q);
|
|
890
890
|
});
|
|
891
|
-
}), ve({ focus: () =>
|
|
891
|
+
}), ve({ focus: () => oe.value.focus() }), (Q, Ue) => (ke(), Ae(Go, null, [
|
|
892
892
|
P.show ? (ke(), Ae("div", {
|
|
893
893
|
key: 0,
|
|
894
894
|
class: Cn(P.field_name)
|
|
@@ -946,7 +946,7 @@ const qse = /* @__PURE__ */ Ta(qK, [["render", YK]]), XK = { class: "font-bold p
|
|
|
946
946
|
onInput: Ue[2] || (Ue[2] = (Dt) => Q.$emit("update:modelValue", Dt.target.value)),
|
|
947
947
|
onKeydown: Ue[3] || (Ue[3] = (Dt) => Q.$emit("keydown", Dt)),
|
|
948
948
|
ref_key: "input",
|
|
949
|
-
ref:
|
|
949
|
+
ref: oe,
|
|
950
950
|
rows: "4"
|
|
951
951
|
}, `
|
|
952
952
|
`, 42, sY),
|
|
@@ -1013,13 +1013,13 @@ const qse = /* @__PURE__ */ Ta(qK, [["render", YK]]), XK = { class: "font-bold p
|
|
|
1013
1013
|
},
|
|
1014
1014
|
emits: ["update:modelValue", "update:modelValueTranslate", "keydown"],
|
|
1015
1015
|
setup(P, { expose: ve, emit: ce }) {
|
|
1016
|
-
const Ne = P, xe = ce,
|
|
1016
|
+
const Ne = P, xe = ce, oe = _s(null), Re = _s(null);
|
|
1017
1017
|
return b1(() => {
|
|
1018
1018
|
tinymce.init({
|
|
1019
1019
|
selector: "#" + Ne.field_name,
|
|
1020
1020
|
width: "100%",
|
|
1021
1021
|
height: 300
|
|
1022
|
-
}), console.log("tinymce ", Ne.model_value),
|
|
1022
|
+
}), console.log("tinymce ", Ne.model_value), oe.value !== null && oe.value.hasAttribute("autofocus") && oe.value.focus(), Ne.model_value && (xe("update:modelValue", Ne.model_value), oe.value.value = Ne.model_value), Ne.model_value_translate, Ne.translatable && axios.post("/admin/get_field_translations", {
|
|
1023
1023
|
model: Ne.translatable.model,
|
|
1024
1024
|
row_id: Ne.translatable.row_id,
|
|
1025
1025
|
field: Ne.translatable.field
|
|
@@ -1028,7 +1028,7 @@ const qse = /* @__PURE__ */ Ta(qK, [["render", YK]]), XK = { class: "font-bold p
|
|
|
1028
1028
|
}).catch((Q) => {
|
|
1029
1029
|
console.log(Q);
|
|
1030
1030
|
});
|
|
1031
|
-
}), ve({ focus: () =>
|
|
1031
|
+
}), ve({ focus: () => oe.value.focus() }), (Q, Ue) => (ke(), Ae(Go, null, [
|
|
1032
1032
|
P.show ? (ke(), Ae("div", {
|
|
1033
1033
|
key: 0,
|
|
1034
1034
|
class: Cn(P.field_name)
|
|
@@ -1085,7 +1085,7 @@ const qse = /* @__PURE__ */ Ta(qK, [["render", YK]]), XK = { class: "font-bold p
|
|
|
1085
1085
|
onInput: Ue[2] || (Ue[2] = (Dt) => Q.$emit("update:modelValue", Dt.target.value)),
|
|
1086
1086
|
onKeydown: Ue[3] || (Ue[3] = (Dt) => Q.$emit("keydown", Dt)),
|
|
1087
1087
|
ref_key: "input",
|
|
1088
|
-
ref:
|
|
1088
|
+
ref: oe,
|
|
1089
1089
|
rows: "4"
|
|
1090
1090
|
}, `
|
|
1091
1091
|
`, 42, gY),
|
|
@@ -1152,9 +1152,9 @@ const qse = /* @__PURE__ */ Ta(qK, [["render", YK]]), XK = { class: "font-bold p
|
|
|
1152
1152
|
},
|
|
1153
1153
|
emits: ["update:modelValue", "update:modelValueTranslate", "keydown"],
|
|
1154
1154
|
setup(P, { expose: ve, emit: ce }) {
|
|
1155
|
-
const Ne = P, xe = ce,
|
|
1155
|
+
const Ne = P, xe = ce, oe = _s(null), Re = _s(null);
|
|
1156
1156
|
return b1(() => {
|
|
1157
|
-
|
|
1157
|
+
oe.value !== null && oe.value.hasAttribute("autofocus") && oe.value.focus(), Ne.model_value && (xe("update:modelValue", Ne.model_value), oe.value.value = Ne.model_value), Ne.model_value_translate, Ne.translatable && axios.post("/admin/get_field_translations", {
|
|
1158
1158
|
model: Ne.translatable.model,
|
|
1159
1159
|
row_id: Ne.translatable.row_id,
|
|
1160
1160
|
field: Ne.translatable.field
|
|
@@ -1163,7 +1163,7 @@ const qse = /* @__PURE__ */ Ta(qK, [["render", YK]]), XK = { class: "font-bold p
|
|
|
1163
1163
|
}).catch((Q) => {
|
|
1164
1164
|
console.log(Q);
|
|
1165
1165
|
});
|
|
1166
|
-
}), ve({ focus: () =>
|
|
1166
|
+
}), ve({ focus: () => oe.value.focus() }), (Q, Ue) => (ke(), Ae(Go, null, [
|
|
1167
1167
|
P.show ? (ke(), Ae("div", {
|
|
1168
1168
|
key: 0,
|
|
1169
1169
|
class: Cn(P.field_name)
|
|
@@ -1220,7 +1220,7 @@ const qse = /* @__PURE__ */ Ta(qK, [["render", YK]]), XK = { class: "font-bold p
|
|
|
1220
1220
|
onInput: Ue[2] || (Ue[2] = (Dt) => Q.$emit("update:modelValue", Dt.target.value)),
|
|
1221
1221
|
onKeydown: Ue[3] || (Ue[3] = (Dt) => Q.$emit("keydown", Dt)),
|
|
1222
1222
|
ref_key: "input",
|
|
1223
|
-
ref:
|
|
1223
|
+
ref: oe
|
|
1224
1224
|
}, null, 42, _Y),
|
|
1225
1225
|
V("span", kY, It(P.error_message), 1),
|
|
1226
1226
|
V("small", TY, It(P.description), 1)
|
|
@@ -1273,9 +1273,9 @@ const qse = /* @__PURE__ */ Ta(qK, [["render", YK]]), XK = { class: "font-bold p
|
|
|
1273
1273
|
},
|
|
1274
1274
|
emits: ["update:modelValue", "keydown"],
|
|
1275
1275
|
setup(P, { expose: ve, emit: ce }) {
|
|
1276
|
-
const Ne = P, xe = ce,
|
|
1276
|
+
const Ne = P, xe = ce, oe = _s(null);
|
|
1277
1277
|
b1(() => {
|
|
1278
|
-
|
|
1278
|
+
oe.value !== null && oe.value.hasAttribute("autofocus") && oe.value.focus();
|
|
1279
1279
|
});
|
|
1280
1280
|
const Re = gu({
|
|
1281
1281
|
get() {
|
|
@@ -1285,7 +1285,7 @@ const qse = /* @__PURE__ */ Ta(qK, [["render", YK]]), XK = { class: "font-bold p
|
|
|
1285
1285
|
xe("update:modelValue", Q);
|
|
1286
1286
|
}
|
|
1287
1287
|
});
|
|
1288
|
-
return ve({ focus: () =>
|
|
1288
|
+
return ve({ focus: () => oe.value.focus() }), (Q, Ue) => (ke(), Ae(Go, null, [
|
|
1289
1289
|
P.show ? (ke(), Ae("div", {
|
|
1290
1290
|
key: 0,
|
|
1291
1291
|
class: Cn(P.field_name)
|
|
@@ -1318,10 +1318,10 @@ const qse = /* @__PURE__ */ Ta(qK, [["render", YK]]), XK = { class: "font-bold p
|
|
|
1318
1318
|
"onUpdate:modelValue": Ue[0] || (Ue[0] = (Dt) => Re.value = Dt),
|
|
1319
1319
|
onKeydown: Ue[1] || (Ue[1] = (Dt) => Q.$emit("keydown", Dt)),
|
|
1320
1320
|
ref_key: "input",
|
|
1321
|
-
ref:
|
|
1321
|
+
ref: oe,
|
|
1322
1322
|
placeholder: P.placeholder
|
|
1323
1323
|
}, null, 42, RY), [
|
|
1324
|
-
[
|
|
1324
|
+
[Eq, Re.value]
|
|
1325
1325
|
]),
|
|
1326
1326
|
V("span", $Y, It(P.error_message), 1),
|
|
1327
1327
|
V("small", MY, It(P.description), 1)
|
|
@@ -1374,11 +1374,11 @@ const qse = /* @__PURE__ */ Ta(qK, [["render", YK]]), XK = { class: "font-bold p
|
|
|
1374
1374
|
},
|
|
1375
1375
|
emits: ["update:modelValue", "keydown"],
|
|
1376
1376
|
setup(P, { emit: ve }) {
|
|
1377
|
-
const ce = ve, Ne = _s(null), xe = (
|
|
1378
|
-
const Re =
|
|
1379
|
-
console.log(Re), ce("keydown",
|
|
1377
|
+
const ce = ve, Ne = _s(null), xe = (oe) => {
|
|
1378
|
+
const Re = oe.target.files[0];
|
|
1379
|
+
console.log(Re), ce("keydown", oe), Re && ce("update:modelValue", Re);
|
|
1380
1380
|
};
|
|
1381
|
-
return (
|
|
1381
|
+
return (oe, Re) => (ke(), Ae(Go, null, [
|
|
1382
1382
|
P.show ? (ke(), Ae("div", {
|
|
1383
1383
|
key: 0,
|
|
1384
1384
|
class: Cn(P.field_name)
|
|
@@ -1429,7 +1429,7 @@ const qse = /* @__PURE__ */ Ta(qK, [["render", YK]]), XK = { class: "font-bold p
|
|
|
1429
1429
|
};
|
|
1430
1430
|
}
|
|
1431
1431
|
}, zY = { class: "flex flex-wrap" }, UY = { class: "w-full" }, WY = { class: "flex flex-row flex-wrap gap-1 pt-3 pb-4 mb-0 list-none" }, ZY = ["onClick"], jY = { class: "relative flex flex-col w-full min-w-0 mb-6 break-words bg-white rounded shadow-lg dark:border-strokedark dark:bg-boxdark" }, GY = { class: "flex-auto px-4 py-5" }, qY = { class: "tab-content tab-space" };
|
|
1432
|
-
function KY(P, ve, ce, Ne, xe,
|
|
1432
|
+
function KY(P, ve, ce, Ne, xe, oe) {
|
|
1433
1433
|
return ke(), Ae(Go, null, [
|
|
1434
1434
|
V("div", zY, [
|
|
1435
1435
|
V("div", UY, [
|
|
@@ -1471,7 +1471,7 @@ const ere = /* @__PURE__ */ Ta(VY, [["render", KY]]), YY = {
|
|
|
1471
1471
|
key: 0,
|
|
1472
1472
|
class: "block"
|
|
1473
1473
|
};
|
|
1474
|
-
function JY(P, ve, ce, Ne, xe,
|
|
1474
|
+
function JY(P, ve, ce, Ne, xe, oe) {
|
|
1475
1475
|
return ce.title == Ne.selectedTitle ? (ke(), Ae("div", XY, [
|
|
1476
1476
|
bf(P.$slots, "default")
|
|
1477
1477
|
])) : Bt("", !0);
|
|
@@ -1537,13 +1537,13 @@ const tre = /* @__PURE__ */ Ta(YY, [["render", JY]]), QY = {
|
|
|
1537
1537
|
let P = this, ve = document.getElementById("slider_" + this.Random_string);
|
|
1538
1538
|
const ce = (xe) => {
|
|
1539
1539
|
ve.style.cursor = "grabbing";
|
|
1540
|
-
const
|
|
1540
|
+
const oe = (Q) => {
|
|
1541
1541
|
const Ue = Q.clientX || Q.touches && Q.touches[0] && Q.touches[0].clientX, Dt = Q.clientY || Q.touches && Q.touches[0] && Q.touches[0].clientY, rn = Ue - P.initialX, Bn = Dt - P.initialY;
|
|
1542
1542
|
Math.abs(rn) > Math.abs(Bn) ? (Q.preventDefault(), Math.abs(rn) >= 70 && (rn < 0 ? P.next() : P.prev(), P.initialX = Ue)) : ve.style.cursor = "grab", Math.abs(Bn) > Math.abs(rn) && (ve.style.cursor = "grab");
|
|
1543
1543
|
}, Re = () => {
|
|
1544
|
-
document.removeEventListener("mousemove",
|
|
1544
|
+
document.removeEventListener("mousemove", oe), document.removeEventListener("touchmove", oe), document.removeEventListener("mouseup", Re), document.removeEventListener("touchend", Re), ve.style.cursor = "grab";
|
|
1545
1545
|
};
|
|
1546
|
-
document.addEventListener("mousemove",
|
|
1546
|
+
document.addEventListener("mousemove", oe), document.addEventListener("touchmove", oe, { passive: !1 }), document.addEventListener("mouseup", Re), document.addEventListener("touchend", Re), P.initialX = xe.clientX || xe.touches && xe.touches[0] && xe.touches[0].clientX, P.initialY = xe.clientY || xe.touches && xe.touches[0] && xe.touches[0].clientY;
|
|
1547
1547
|
}, Ne = (xe) => {
|
|
1548
1548
|
xe.key === "ArrowLeft" ? P.prev() : xe.key === "ArrowRight" && P.next();
|
|
1549
1549
|
};
|
|
@@ -1556,8 +1556,8 @@ const tre = /* @__PURE__ */ Ta(YY, [["render", JY]]), QY = {
|
|
|
1556
1556
|
this.currentDot > 1 && (this.currentDot--, this.setDot(this.currentDot));
|
|
1557
1557
|
},
|
|
1558
1558
|
initSlider() {
|
|
1559
|
-
let P = document.getElementById("sliderContainer_" + this.Random_string), ve = document.getElementById("mainSliderContainer_" + this.Random_string), ce = document.getElementById("slider_" + this.Random_string), Ne = ce.querySelectorAll("li"), xe = Array.from(Ne).filter((Q) => Q.parentNode === ce),
|
|
1560
|
-
if (this.elementsToShow > 1 ? document.body.clientWidth < 1e3 ? (this.elementsToShow = 1, Re = this.hide_arrow ? ve.clientWidth :
|
|
1559
|
+
let P = document.getElementById("sliderContainer_" + this.Random_string), ve = document.getElementById("mainSliderContainer_" + this.Random_string), ce = document.getElementById("slider_" + this.Random_string), Ne = ce.querySelectorAll("li"), xe = Array.from(Ne).filter((Q) => Q.parentNode === ce), oe = P.clientWidth, Re = oe / this.elementsToShow;
|
|
1560
|
+
if (this.elementsToShow > 1 ? document.body.clientWidth < 1e3 ? (this.elementsToShow = 1, Re = this.hide_arrow ? ve.clientWidth : oe) : document.body.clientWidth < 1500 && (this.elementsToShow = 2) : (this.elementsToShow = 1, Re = this.hide_arrow ? ve.clientWidth : oe), xe.length > 1) {
|
|
1561
1561
|
this.dotsNum = this.elementsToShow == 1 ? xe.length : xe.length - this.elementsToShow + 1;
|
|
1562
1562
|
let Q = this.elementsToShow == 1 ? Re * xe.length / this.dotsNum : Re * (xe.length - this.elementsToShow) / (this.dotsNum - 1);
|
|
1563
1563
|
this.dotsNavigation = [];
|
|
@@ -1575,7 +1575,7 @@ const tre = /* @__PURE__ */ Ta(YY, [["render", JY]]), QY = {
|
|
|
1575
1575
|
this.direction_property == "rtl" ? ve.style.marginRight = -this.dotsNavigation[P - 1] + "px" : ve.style.marginLeft = -this.dotsNavigation[P - 1] + "px", this.currentDot = P;
|
|
1576
1576
|
}
|
|
1577
1577
|
}
|
|
1578
|
-
}, vm = (P) => (
|
|
1578
|
+
}, vm = (P) => (Aq("data-v-a94f16a9"), P = P(), Oq(), P), eX = ["id"], tX = {
|
|
1579
1579
|
key: 0,
|
|
1580
1580
|
class: "items-center hidden w-2/12 xl:flex xxl:flex md:flex sm:flex arrow_button"
|
|
1581
1581
|
}, nX = { class: "w-full" }, oX = {
|
|
@@ -1760,7 +1760,7 @@ const tre = /* @__PURE__ */ Ta(YY, [["render", JY]]), QY = {
|
|
|
1760
1760
|
}, null, -1)), nJ = [
|
|
1761
1761
|
tJ
|
|
1762
1762
|
];
|
|
1763
|
-
function oJ(P, ve, ce, Ne, xe,
|
|
1763
|
+
function oJ(P, ve, ce, Ne, xe, oe) {
|
|
1764
1764
|
return ke(), Ae("div", null, [
|
|
1765
1765
|
V("div", {
|
|
1766
1766
|
class: Cn(["", !ce.hide_arrow && ce.slider_arrows_indicators_position == "arrows_outside_slide" ? "flex" : "relative block"]),
|
|
@@ -1770,7 +1770,7 @@ function oJ(P, ve, ce, Ne, xe, se) {
|
|
|
1770
1770
|
V("div", nX, [
|
|
1771
1771
|
V("button", {
|
|
1772
1772
|
class: "p-3 mr-5 rounded-full shadow-lg arrow_button_styles",
|
|
1773
|
-
onClick: ve[0] || (ve[0] = (Re) =>
|
|
1773
|
+
onClick: ve[0] || (ve[0] = (Re) => oe.prev())
|
|
1774
1774
|
}, [
|
|
1775
1775
|
ce.direction_property == "ltr" ? (ke(), Ae("svg", oX, rX)) : Bt("", !0),
|
|
1776
1776
|
ce.direction_property == "rtl" ? (ke(), Ae("svg", aX, lX)) : Bt("", !0)
|
|
@@ -1778,7 +1778,7 @@ function oJ(P, ve, ce, Ne, xe, se) {
|
|
|
1778
1778
|
])
|
|
1779
1779
|
])) : Bt("", !0),
|
|
1780
1780
|
V("div", {
|
|
1781
|
-
class: Cn(["overflow-hidden",
|
|
1781
|
+
class: Cn(["overflow-hidden", oe.sliderContainerAction()]),
|
|
1782
1782
|
id: "sliderContainer_" + P.Random_string
|
|
1783
1783
|
}, [
|
|
1784
1784
|
V("ul", {
|
|
@@ -1792,7 +1792,7 @@ function oJ(P, ve, ce, Ne, xe, se) {
|
|
|
1792
1792
|
V("div", dX, [
|
|
1793
1793
|
V("button", {
|
|
1794
1794
|
class: "p-3 rounded-full shadow-lg arrow_button_styles",
|
|
1795
|
-
onClick: ve[1] || (ve[1] = Uu((Re) =>
|
|
1795
|
+
onClick: ve[1] || (ve[1] = Uu((Re) => oe.prev(), ["stop"]))
|
|
1796
1796
|
}, [
|
|
1797
1797
|
ce.direction_property == "ltr" ? (ke(), Ae("svg", mX, gX)) : Bt("", !0),
|
|
1798
1798
|
ce.direction_property == "rtl" ? (ke(), Ae("svg", hX, bX)) : Bt("", !0)
|
|
@@ -1807,7 +1807,7 @@ function oJ(P, ve, ce, Ne, xe, se) {
|
|
|
1807
1807
|
V("div", vX, [
|
|
1808
1808
|
V("button", {
|
|
1809
1809
|
class: "p-3 rounded-full shadow-lg arrow_button_styles",
|
|
1810
|
-
onClick: ve[2] || (ve[2] = Uu((Re) =>
|
|
1810
|
+
onClick: ve[2] || (ve[2] = Uu((Re) => oe.next(), ["stop"]))
|
|
1811
1811
|
}, [
|
|
1812
1812
|
ce.direction_property == "ltr" ? (ke(), Ae("svg", yX, xX)) : Bt("", !0),
|
|
1813
1813
|
ce.direction_property == "rtl" ? (ke(), Ae("svg", CX, _X)) : Bt("", !0)
|
|
@@ -1817,24 +1817,24 @@ function oJ(P, ve, ce, Ne, xe, se) {
|
|
|
1817
1817
|
], 8, uX),
|
|
1818
1818
|
ce.slider_arrows_indicators_position != "arrows_indicators_below_slider" ? (ke(), Ae("div", {
|
|
1819
1819
|
key: 0,
|
|
1820
|
-
class: Cn(["flex justify-center mb-1 space-x-1",
|
|
1820
|
+
class: Cn(["flex justify-center mb-1 space-x-1", oe.sliderIndicatorsAction()])
|
|
1821
1821
|
}, [
|
|
1822
1822
|
(ke(!0), Ae(Go, null, aa(P.dotsNum, (Re) => (ke(), Ae("button", {
|
|
1823
1823
|
role: "button",
|
|
1824
1824
|
class: Cn(["gl-dot", { active: P.currentDot == Re }]),
|
|
1825
1825
|
key: Re,
|
|
1826
|
-
onClick: (Q) =>
|
|
1826
|
+
onClick: (Q) => oe.setDot(Re)
|
|
1827
1827
|
}, EX, 10, kX))), 128))
|
|
1828
1828
|
], 2)) : Bt("", !0),
|
|
1829
1829
|
ce.slider_arrows_indicators_position == "arrows_indicators_below_slider" ? (ke(), Ae("div", AX, [
|
|
1830
1830
|
V("div", {
|
|
1831
|
-
class: Cn(["flex justify-center mb-1 space-x-1",
|
|
1831
|
+
class: Cn(["flex justify-center mb-1 space-x-1", oe.sliderIndicatorsAction()])
|
|
1832
1832
|
}, [
|
|
1833
1833
|
(ke(!0), Ae(Go, null, aa(P.dotsNum, (Re) => (ke(), Ae("button", {
|
|
1834
1834
|
role: "button",
|
|
1835
1835
|
class: Cn(["gl-dot", { active: P.currentDot == Re }]),
|
|
1836
1836
|
key: Re,
|
|
1837
|
-
onClick: (Q) =>
|
|
1837
|
+
onClick: (Q) => oe.setDot(Re)
|
|
1838
1838
|
}, RX, 10, OX))), 128))
|
|
1839
1839
|
], 2),
|
|
1840
1840
|
P.dotsNum > 0 ? (ke(), Ae("div", $X, [
|
|
@@ -1842,7 +1842,7 @@ function oJ(P, ve, ce, Ne, xe, se) {
|
|
|
1842
1842
|
V("div", NX, [
|
|
1843
1843
|
V("button", {
|
|
1844
1844
|
class: Cn(["p-3 rounded-full arrow_button_styles", ce.direction_property == "rtl" ? "ml-3" : "mr-3"]),
|
|
1845
|
-
onClick: ve[3] || (ve[3] = (Re) =>
|
|
1845
|
+
onClick: ve[3] || (ve[3] = (Re) => oe.prev())
|
|
1846
1846
|
}, [
|
|
1847
1847
|
ce.direction_property == "ltr" ? (ke(), Ae("svg", BX, IX)) : Bt("", !0),
|
|
1848
1848
|
ce.direction_property == "rtl" ? (ke(), Ae("svg", LX, HX)) : Bt("", !0)
|
|
@@ -1853,7 +1853,7 @@ function oJ(P, ve, ce, Ne, xe, se) {
|
|
|
1853
1853
|
V("div", zX, [
|
|
1854
1854
|
V("button", {
|
|
1855
1855
|
class: "p-3 rounded-full arrow_button_styles",
|
|
1856
|
-
onClick: ve[4] || (ve[4] = (Re) =>
|
|
1856
|
+
onClick: ve[4] || (ve[4] = (Re) => oe.next())
|
|
1857
1857
|
}, [
|
|
1858
1858
|
ce.direction_property == "ltr" ? (ke(), Ae("svg", UX, ZX)) : Bt("", !0),
|
|
1859
1859
|
ce.direction_property == "rtl" ? (ke(), Ae("svg", jX, qX)) : Bt("", !0)
|
|
@@ -1867,7 +1867,7 @@ function oJ(P, ve, ce, Ne, xe, se) {
|
|
|
1867
1867
|
V("div", YX, [
|
|
1868
1868
|
V("button", {
|
|
1869
1869
|
class: "p-3 ml-5 rounded-full shadow-lg arrow_button_styles",
|
|
1870
|
-
onClick: ve[5] || (ve[5] = (Re) =>
|
|
1870
|
+
onClick: ve[5] || (ve[5] = (Re) => oe.next())
|
|
1871
1871
|
}, [
|
|
1872
1872
|
ce.direction_property == "ltr" ? (ke(), Ae("svg", XX, QX)) : Bt("", !0),
|
|
1873
1873
|
ce.direction_property == "rtl" ? (ke(), Ae("svg", eJ, nJ)) : Bt("", !0)
|
|
@@ -1922,15 +1922,15 @@ const nre = /* @__PURE__ */ Ta(QY, [["render", oJ], ["__scopeId", "data-v-a94f16
|
|
|
1922
1922
|
setup(P, { emit: ve }) {
|
|
1923
1923
|
const ce = P, Ne = ve, xe = () => {
|
|
1924
1924
|
document.documentElement.style.overflow = "hidden", document.documentElement.style.paddingRight = "0px";
|
|
1925
|
-
},
|
|
1925
|
+
}, oe = () => {
|
|
1926
1926
|
document.documentElement.style.overflow = "", document.documentElement.style.paddingRight = "";
|
|
1927
1927
|
}, Re = () => {
|
|
1928
|
-
Ne("closeModal"),
|
|
1928
|
+
Ne("closeModal"), oe();
|
|
1929
1929
|
};
|
|
1930
1930
|
return ST(
|
|
1931
1931
|
() => ce.is_open,
|
|
1932
1932
|
(Q, Ue) => {
|
|
1933
|
-
Q ? xe() :
|
|
1933
|
+
Q ? xe() : oe();
|
|
1934
1934
|
},
|
|
1935
1935
|
{ immediate: !0, deep: !0 }
|
|
1936
1936
|
), (Q, Ue) => P.is_open ? (ke(), Ae("div", sJ, [
|
|
@@ -2013,7 +2013,7 @@ const nre = /* @__PURE__ */ Ta(QY, [["render", oJ], ["__scopeId", "data-v-a94f16
|
|
|
2013
2013
|
},
|
|
2014
2014
|
emits: ["update:modelValue"],
|
|
2015
2015
|
setup(P, { emit: ve }) {
|
|
2016
|
-
const ce = P, Ne = ve, xe = _s(null),
|
|
2016
|
+
const ce = P, Ne = ve, xe = _s(null), oe = gu({
|
|
2017
2017
|
get() {
|
|
2018
2018
|
return ce.modelValue;
|
|
2019
2019
|
},
|
|
@@ -2067,9 +2067,9 @@ const nre = /* @__PURE__ */ Ta(QY, [["render", oJ], ["__scopeId", "data-v-a94f16
|
|
|
2067
2067
|
"false-value": 0,
|
|
2068
2068
|
ref_key: "input",
|
|
2069
2069
|
ref: xe,
|
|
2070
|
-
"onUpdate:modelValue": Q[0] || (Q[0] = (Ue) =>
|
|
2070
|
+
"onUpdate:modelValue": Q[0] || (Q[0] = (Ue) => oe.value = Ue)
|
|
2071
2071
|
}, null, 8, wJ), [
|
|
2072
|
-
[
|
|
2072
|
+
[Dq, oe.value]
|
|
2073
2073
|
]),
|
|
2074
2074
|
xJ
|
|
2075
2075
|
])
|
|
@@ -2176,7 +2176,7 @@ const nre = /* @__PURE__ */ Ta(QY, [["render", oJ], ["__scopeId", "data-v-a94f16
|
|
|
2176
2176
|
},
|
|
2177
2177
|
emits: ["update:modelValue", "selected", "selectionChanged"],
|
|
2178
2178
|
setup(P, { emit: ve }) {
|
|
2179
|
-
const ce = P, Ne = ve, xe = _s(null),
|
|
2179
|
+
const ce = P, Ne = ve, xe = _s(null), oe = _s({}), Re = _s(0), Q = _s(!1), Ue = _s(""), Dt = _s("");
|
|
2180
2180
|
b1(() => {
|
|
2181
2181
|
Dt.value = ir(), ce.show || (document.body.addEventListener("click", (wt) => {
|
|
2182
2182
|
Rt(wt);
|
|
@@ -2236,11 +2236,11 @@ const nre = /* @__PURE__ */ Ta(QY, [["render", oJ], ["__scopeId", "data-v-a94f16
|
|
|
2236
2236
|
return ce.options.map((wt, Fe) => typeof wt == "object" ? wt : { id: wt, name: wt });
|
|
2237
2237
|
}
|
|
2238
2238
|
function Ea() {
|
|
2239
|
-
if ($o(
|
|
2240
|
-
return typeof
|
|
2241
|
-
(wt) => String(wt.id) === String(
|
|
2239
|
+
if ($o(oe.value))
|
|
2240
|
+
return typeof oe.value == "object" ? rn.value.find(
|
|
2241
|
+
(wt) => String(wt.id) === String(oe.value.id)
|
|
2242
2242
|
) || {} : rn.value.find(
|
|
2243
|
-
(wt) => String(wt.id) === String(
|
|
2243
|
+
(wt) => String(wt.id) === String(oe.value)
|
|
2244
2244
|
) || {};
|
|
2245
2245
|
if (ce.modelValue)
|
|
2246
2246
|
return typeof ce.modelValue == "object" ? rn.value.find(
|
|
@@ -2250,7 +2250,7 @@ const nre = /* @__PURE__ */ Ta(QY, [["render", oJ], ["__scopeId", "data-v-a94f16
|
|
|
2250
2250
|
) || {};
|
|
2251
2251
|
}
|
|
2252
2252
|
function Xn(wt) {
|
|
2253
|
-
|
|
2253
|
+
oe.value = wt, Q.value = !1, Ne("update:modelValue", oe.value.id), Ne("selected", oe.value), Ne("selectionChanged", oe.value);
|
|
2254
2254
|
}
|
|
2255
2255
|
function ne() {
|
|
2256
2256
|
ce.show || (Ue.value = "", Q.value = !0, Oj(() => {
|
|
@@ -2261,14 +2261,14 @@ const nre = /* @__PURE__ */ Ta(QY, [["render", oJ], ["__scopeId", "data-v-a94f16
|
|
|
2261
2261
|
}));
|
|
2262
2262
|
}
|
|
2263
2263
|
function Mn() {
|
|
2264
|
-
ce.show || (
|
|
2264
|
+
ce.show || (oe.value = {}, Ue.value = "", Ne("update:modelValue", ""), ne());
|
|
2265
2265
|
}
|
|
2266
2266
|
function ts() {
|
|
2267
|
-
|
|
2267
|
+
oe.value.id || (oe.value = {}, Ue.value = ""), Ne("selected", oe.value), Q.value = !1;
|
|
2268
2268
|
}
|
|
2269
2269
|
return ST(Ue, () => {
|
|
2270
|
-
zn.value.length === 0 && (
|
|
2271
|
-
}), ST(
|
|
2270
|
+
zn.value.length === 0 && (oe.value = {});
|
|
2271
|
+
}), ST(oe, (wt) => {
|
|
2272
2272
|
$o(wt) && Ne("update:modelValue", wt.id);
|
|
2273
2273
|
}), (wt, Fe) => {
|
|
2274
2274
|
var ie, Mo, Jn;
|
|
@@ -2425,9 +2425,9 @@ const nre = /* @__PURE__ */ Ta(QY, [["render", oJ], ["__scopeId", "data-v-a94f16
|
|
|
2425
2425
|
},
|
|
2426
2426
|
emits: ["update:modelValue", "keydown"],
|
|
2427
2427
|
setup(P, { expose: ve, emit: ce }) {
|
|
2428
|
-
const Ne = P, xe = ce,
|
|
2428
|
+
const Ne = P, xe = ce, oe = _s(null);
|
|
2429
2429
|
b1(() => {
|
|
2430
|
-
|
|
2430
|
+
oe.value !== null && oe.value.hasAttribute("autofocus") && oe.value.focus();
|
|
2431
2431
|
});
|
|
2432
2432
|
const Re = gu({
|
|
2433
2433
|
get() {
|
|
@@ -2437,7 +2437,7 @@ const nre = /* @__PURE__ */ Ta(QY, [["render", oJ], ["__scopeId", "data-v-a94f16
|
|
|
2437
2437
|
xe("update:modelValue", Q);
|
|
2438
2438
|
}
|
|
2439
2439
|
});
|
|
2440
|
-
return ve({ focus: () =>
|
|
2440
|
+
return ve({ focus: () => oe.value.focus() }), (Q, Ue) => (ke(), Ae(Go, null, [
|
|
2441
2441
|
P.show ? (ke(), Ae("div", {
|
|
2442
2442
|
key: 0,
|
|
2443
2443
|
class: Cn(P.field_name)
|
|
@@ -2473,7 +2473,7 @@ const nre = /* @__PURE__ */ Ta(QY, [["render", oJ], ["__scopeId", "data-v-a94f16
|
|
|
2473
2473
|
"onUpdate:modelValue": Ue[0] || (Ue[0] = (Dt) => Re.value = Dt),
|
|
2474
2474
|
onKeydown: Ue[1] || (Ue[1] = (Dt) => Q.$emit("keydown", Dt)),
|
|
2475
2475
|
ref_key: "input",
|
|
2476
|
-
ref:
|
|
2476
|
+
ref: oe,
|
|
2477
2477
|
rows: "4",
|
|
2478
2478
|
placeholder: P.placeholder
|
|
2479
2479
|
}, null, 42, JJ), [
|
|
@@ -2488,7 +2488,7 @@ const nre = /* @__PURE__ */ Ta(QY, [["render", oJ], ["__scopeId", "data-v-a94f16
|
|
|
2488
2488
|
function tQ(P) {
|
|
2489
2489
|
return P && P.__esModule && Object.prototype.hasOwnProperty.call(P, "default") ? P.default : P;
|
|
2490
2490
|
}
|
|
2491
|
-
var
|
|
2491
|
+
var QG = { exports: {} };
|
|
2492
2492
|
(function(P) {
|
|
2493
2493
|
(function() {
|
|
2494
2494
|
var ve = function(e) {
|
|
@@ -2512,15 +2512,15 @@ var eq = { exports: {} };
|
|
|
2512
2512
|
var o = Array.prototype.slice.call(e);
|
|
2513
2513
|
return o.sort(n);
|
|
2514
2514
|
}, xe = function(e, n) {
|
|
2515
|
-
return
|
|
2515
|
+
return oe(function(o, r) {
|
|
2516
2516
|
return e.eq(n(o), n(r));
|
|
2517
2517
|
});
|
|
2518
|
-
},
|
|
2518
|
+
}, oe = function(e) {
|
|
2519
2519
|
return { eq: e };
|
|
2520
|
-
}, Re =
|
|
2520
|
+
}, Re = oe(function(e, n) {
|
|
2521
2521
|
return e === n;
|
|
2522
2522
|
}), Q = Re, Ue = function(e) {
|
|
2523
|
-
return
|
|
2523
|
+
return oe(function(n, o) {
|
|
2524
2524
|
if (n.length !== o.length)
|
|
2525
2525
|
return !1;
|
|
2526
2526
|
for (var r = n.length, c = 0; c < r; c++)
|
|
@@ -2533,7 +2533,7 @@ var eq = { exports: {} };
|
|
|
2533
2533
|
return Ne(o, n);
|
|
2534
2534
|
});
|
|
2535
2535
|
}, rn = function(e) {
|
|
2536
|
-
return
|
|
2536
|
+
return oe(function(n, o) {
|
|
2537
2537
|
var r = Object.keys(n), c = Object.keys(o);
|
|
2538
2538
|
if (!Dt(Q).eq(r, c))
|
|
2539
2539
|
return !1;
|
|
@@ -2544,7 +2544,7 @@ var eq = { exports: {} };
|
|
|
2544
2544
|
}
|
|
2545
2545
|
return !0;
|
|
2546
2546
|
});
|
|
2547
|
-
}, Bn =
|
|
2547
|
+
}, Bn = oe(function(e, n) {
|
|
2548
2548
|
if (e === n)
|
|
2549
2549
|
return !0;
|
|
2550
2550
|
var o = ve(e), r = ve(n);
|
|
@@ -3110,7 +3110,7 @@ var eq = { exports: {} };
|
|
|
3110
3110
|
for (; c--; )
|
|
3111
3111
|
o[r[c]] = {};
|
|
3112
3112
|
return o;
|
|
3113
|
-
},
|
|
3113
|
+
}, se = fn, Ie = (e, ...n) => {
|
|
3114
3114
|
for (let o = 0; o < n.length; o++) {
|
|
3115
3115
|
const r = n[o];
|
|
3116
3116
|
for (const c in r)
|
|
@@ -3132,7 +3132,7 @@ var eq = { exports: {} };
|
|
|
3132
3132
|
map: bc,
|
|
3133
3133
|
grep: ji,
|
|
3134
3134
|
inArray: Hr,
|
|
3135
|
-
hasOwn:
|
|
3135
|
+
hasOwn: se,
|
|
3136
3136
|
extend: Ie,
|
|
3137
3137
|
walk: Et,
|
|
3138
3138
|
resolve: (e, n = window) => {
|
|
@@ -19691,8 +19691,8 @@ Input object: ` + CO(e.input), kO = (e, n) => AB(e, mo(n, _O)), zB = nt(LB), hk
|
|
|
19691
19691
|
window.tinymce = e, window.tinyMCE = e;
|
|
19692
19692
|
})(M8), N8(M8);
|
|
19693
19693
|
})();
|
|
19694
|
-
})(
|
|
19695
|
-
var nQ =
|
|
19694
|
+
})(QG);
|
|
19695
|
+
var nQ = QG.exports;
|
|
19696
19696
|
const oQ = /* @__PURE__ */ tQ(nQ);
|
|
19697
19697
|
tinymce.IconManager.add("default", {
|
|
19698
19698
|
icons: {
|
|
@@ -19895,7 +19895,7 @@ tinymce.IconManager.add("default", {
|
|
|
19895
19895
|
}, ce = (t) => {
|
|
19896
19896
|
const s = typeof t;
|
|
19897
19897
|
return t === null ? "null" : s === "object" && Array.isArray(t) ? "array" : s === "object" && ve(t, String, (a, l) => l.isPrototypeOf(a)) ? "string" : s;
|
|
19898
|
-
}, Ne = (t) => (s) => ce(s) === t, xe = (t) => (s) => typeof s === t,
|
|
19898
|
+
}, Ne = (t) => (s) => ce(s) === t, xe = (t) => (s) => typeof s === t, oe = (t) => (s) => t === s, Re = (t, s) => Ue(t) && ve(t, s, (a, l) => P(a) === l), Q = Ne("string"), Ue = Ne("object"), Dt = (t) => Re(t, Object), rn = Ne("array"), Bn = oe(null), zn = xe("boolean"), zo = oe(void 0), ir = (t) => t == null, $o = (t) => !ir(t), Rt = xe("function"), ur = xe("number"), dn = (t, s) => {
|
|
19899
19899
|
if (rn(t)) {
|
|
19900
19900
|
for (let a = 0, l = t.length; a < l; ++a)
|
|
19901
19901
|
if (!s(t[a]))
|
|
@@ -20285,7 +20285,7 @@ tinymce.IconManager.add("default", {
|
|
|
20285
20285
|
}, B = (t, s) => A.from(Ws(t, s)), K = (t, s) => {
|
|
20286
20286
|
const a = t.dom;
|
|
20287
20287
|
return a && a.hasAttribute ? a.hasAttribute(s) : !1;
|
|
20288
|
-
},
|
|
20288
|
+
}, se = (t, s) => {
|
|
20289
20289
|
t.dom.removeAttribute(s);
|
|
20290
20290
|
}, Ie = (t) => Lo(t.dom.attributes, (s, a) => (s[a.name] = a.value, s), {}), Et = (t, s, a) => {
|
|
20291
20291
|
if (!Q(a))
|
|
@@ -20329,7 +20329,7 @@ tinymce.IconManager.add("default", {
|
|
|
20329
20329
|
return jt(l, s, a), Hs(l, s).isSome();
|
|
20330
20330
|
}, fo = (t, s) => {
|
|
20331
20331
|
const a = t.dom;
|
|
20332
|
-
Kn(a, s), Aa(B(t, "style").map(Hr), "") &&
|
|
20332
|
+
Kn(a, s), Aa(B(t, "style").map(Hr), "") && se(t, "style");
|
|
20333
20333
|
}, Wa = (t) => t.dom.offsetWidth, Ms = (t, s) => {
|
|
20334
20334
|
const a = (w, C) => {
|
|
20335
20335
|
if (!ur(C) && !C.match(/^[0-9]+$/))
|
|
@@ -21536,11 +21536,11 @@ The behaviours that can trigger it are: ` + JSON.stringify(et(s, (a) => a.name),
|
|
|
21536
21536
|
return Mt(t, s, d.join(" ")), !0;
|
|
21537
21537
|
}, zy = (t, s, a) => {
|
|
21538
21538
|
const l = Qn(Mf(t, s), (d) => d !== a);
|
|
21539
|
-
return l.length > 0 ? Mt(t, s, l.join(" ")) :
|
|
21539
|
+
return l.length > 0 ? Mt(t, s, l.join(" ")) : se(t, s), !1;
|
|
21540
21540
|
}, tp = (t) => t.dom.classList !== void 0, Rb = (t) => Mf(t, "class"), oC = (t, s) => Ud(t, "class", s), Ps = (t, s) => zy(t, "class", s), IT = (t, s) => Uo(Rb(t), s) ? Ps(t, s) : oC(t, s), Nr = (t, s) => {
|
|
21541
21541
|
tp(t) ? t.dom.classList.add(s) : oC(t, s);
|
|
21542
21542
|
}, sC = (t) => {
|
|
21543
|
-
(tp(t) ? t.dom.classList : Rb(t)).length === 0 &&
|
|
21543
|
+
(tp(t) ? t.dom.classList : Rb(t)).length === 0 && se(t, "class");
|
|
21544
21544
|
}, Qs = (t, s) => {
|
|
21545
21545
|
tp(t) ? t.dom.classList.remove(s) : Ps(t, s), sC(t);
|
|
21546
21546
|
}, np = (t, s) => {
|
|
@@ -21603,7 +21603,7 @@ The behaviours that can trigger it are: ` + JSON.stringify(et(s, (a) => a.name),
|
|
|
21603
21603
|
toSet: g,
|
|
21604
21604
|
toRemove: p
|
|
21605
21605
|
} = Ru(t.attributes, d), w = () => {
|
|
21606
|
-
gt(p, (Ee) =>
|
|
21606
|
+
gt(p, (Ee) => se(s, Ee)), Gu(s, g);
|
|
21607
21607
|
}, C = xr(s), {
|
|
21608
21608
|
toSet: E,
|
|
21609
21609
|
toRemove: D
|
|
@@ -21779,7 +21779,7 @@ The behaviours that can trigger it are: ` + JSON.stringify(et(s, (a) => a.name),
|
|
|
21779
21779
|
Mt(l, ip, t);
|
|
21780
21780
|
},
|
|
21781
21781
|
unlink: (l) => {
|
|
21782
|
-
|
|
21782
|
+
se(l, ip);
|
|
21783
21783
|
}
|
|
21784
21784
|
};
|
|
21785
21785
|
}, eh = (t, s) => Pf(s).exists((a) => Vm(t, a)), Vm = (t, s) => Wy(s, (a) => Po(a, t.element), Jn) || eh(t, s), dC = "unknown";
|
|
@@ -22157,7 +22157,7 @@ Receiver: ` + zd(s.element), E, g.data);
|
|
|
22157
22157
|
origin: s
|
|
22158
22158
|
}), eE = (t, s) => QT(t, s), d2 = "data-alloy-placement", tE = (t, s) => {
|
|
22159
22159
|
Mt(t, d2, s);
|
|
22160
|
-
}, SC = (t) => B(t, d2), _C = (t) =>
|
|
22160
|
+
}, SC = (t) => B(t, d2), _C = (t) => se(t, d2), Z1 = T.generate([
|
|
22161
22161
|
{ fit: ["reposition"] },
|
|
22162
22162
|
{
|
|
22163
22163
|
nofit: [
|
|
@@ -22288,7 +22288,7 @@ Receiver: ` + zd(s.element), E, g.data);
|
|
|
22288
22288
|
if (ir(E) || g(E)) {
|
|
22289
22289
|
a.clear(), l.clear();
|
|
22290
22290
|
const D = E == null ? void 0 : E.raw.type;
|
|
22291
|
-
(ir(D) || D === Zg()) && (clearTimeout(d),
|
|
22291
|
+
(ir(D) || D === Zg()) && (clearTimeout(d), se(t, Gb), Si(t, s.classes));
|
|
22292
22292
|
}
|
|
22293
22293
|
}, w = Yc(t, Ty(), (E) => {
|
|
22294
22294
|
g(E) && (w.unbind(), a.set(Yc(t, Zg(), p)), l.set(Yc(t, _T(), p)));
|
|
@@ -22298,7 +22298,7 @@ Receiver: ` + zd(s.element), E, g.data);
|
|
|
22298
22298
|
});
|
|
22299
22299
|
}, i5 = (t, s) => {
|
|
22300
22300
|
ar(t, s.classes), B(t, Gb).each((a) => {
|
|
22301
|
-
clearTimeout(parseInt(a, 10)),
|
|
22301
|
+
clearTimeout(parseInt(a, 10)), se(t, Gb);
|
|
22302
22302
|
}), EC(t, s);
|
|
22303
22303
|
}, Hf = (t, s, a, l, d, g) => {
|
|
22304
22304
|
const p = rE(l, d, g);
|
|
@@ -22981,7 +22981,7 @@ Receiver: ` + zd(s.element), E, g.data);
|
|
|
22981
22981
|
});
|
|
22982
22982
|
}, Ei = (t, s, a) => a.isOpen(), ch = (t, s, a, l) => Ei(t, s, a) && a.get().exists((d) => s.isPartOf(t, d, l)), F2 = (t, s, a) => a.get(), BE = (t, s, a, l) => {
|
|
22983
22983
|
Hs(t.element, s).fold(() => {
|
|
22984
|
-
|
|
22984
|
+
se(t.element, a);
|
|
22985
22985
|
}, (d) => {
|
|
22986
22986
|
Mt(t.element, a, d);
|
|
22987
22987
|
}), jt(t.element, s, l);
|
|
@@ -23491,7 +23491,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
23491
23491
|
}, nw = (t, s) => s.useNative === !0 && Uo(tw, Da(t.element)), XE = (t) => K(t.element, "disabled"), JE = (t) => {
|
|
23492
23492
|
Mt(t.element, "disabled", "disabled");
|
|
23493
23493
|
}, pS = (t) => {
|
|
23494
|
-
|
|
23494
|
+
se(t.element, "disabled");
|
|
23495
23495
|
}, QE = (t) => Ws(t.element, "aria-disabled") === "true", Vt = (t) => {
|
|
23496
23496
|
Mt(t.element, "aria-disabled", "true");
|
|
23497
23497
|
}, Jf = (t) => {
|
|
@@ -25802,7 +25802,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
25802
25802
|
value: !1
|
|
25803
25803
|
}
|
|
25804
25804
|
})), hc = null, Hi = null, Ed = !0, bm = !0, p1 = !1, rb = !0, pf = !1, Ah = !1, zx = !1, JD = !1, Sy = !1, vT = !1, P8 = !1, NG = !0, BG = !1;
|
|
25805
|
-
const
|
|
25805
|
+
const hq = "user-content-";
|
|
25806
25806
|
let wj = !0, QD = !1, yT = {}, wT = null;
|
|
25807
25807
|
const PG = wo({}, [
|
|
25808
25808
|
"annotation-xml",
|
|
@@ -25858,22 +25858,22 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
25858
25858
|
"xmlns"
|
|
25859
25859
|
]), I8 = "http://www.w3.org/1998/Math/MathML", L8 = "http://www.w3.org/2000/svg", ab = "http://www.w3.org/1999/xhtml";
|
|
25860
25860
|
let xT = ab, Cj = !1, Sj = null;
|
|
25861
|
-
const
|
|
25861
|
+
const pq = wo({}, [
|
|
25862
25862
|
I8,
|
|
25863
25863
|
L8,
|
|
25864
25864
|
ab
|
|
25865
25865
|
], bh);
|
|
25866
25866
|
let Ux;
|
|
25867
|
-
const
|
|
25867
|
+
const bq = [
|
|
25868
25868
|
"application/xhtml+xml",
|
|
25869
25869
|
"text/html"
|
|
25870
|
-
],
|
|
25870
|
+
], vq = "text/html";
|
|
25871
25871
|
let Vi, CT = null;
|
|
25872
|
-
const
|
|
25872
|
+
const yq = d.createElement("form"), HG = function(ze) {
|
|
25873
25873
|
return ze instanceof RegExp || ze instanceof Function;
|
|
25874
25874
|
}, _j = function(ze) {
|
|
25875
25875
|
if (!(CT && CT === ze)) {
|
|
25876
|
-
if ((!ze || typeof ze != "object") && (ze = {}), ze = D0(ze), Ux =
|
|
25876
|
+
if ((!ze || typeof ze != "object") && (ze = {}), ze = D0(ze), Ux = bq.indexOf(ze.PARSER_MEDIA_TYPE) === -1 ? Ux = vq : Ux = ze.PARSER_MEDIA_TYPE, Vi = Ux === "application/xhtml+xml" ? bh : HS, Rn = "ALLOWED_TAGS" in ze ? wo({}, ze.ALLOWED_TAGS, Vi) : pn, In = "ALLOWED_ATTR" in ze ? wo({}, ze.ALLOWED_ATTR, Vi) : Ss, Sj = "ALLOWED_NAMESPACES" in ze ? wo({}, ze.ALLOWED_NAMESPACES, bh) : pq, xj = "ADD_URI_SAFE_ATTR" in ze ? wo(D0(FG), ze.ADD_URI_SAFE_ATTR, Vi) : FG, IG = "ADD_DATA_URI_TAGS" in ze ? wo(D0(LG), ze.ADD_DATA_URI_TAGS, Vi) : LG, wT = "FORBID_CONTENTS" in ze ? wo({}, ze.FORBID_CONTENTS, Vi) : PG, hc = "FORBID_TAGS" in ze ? wo({}, ze.FORBID_TAGS, Vi) : {}, Hi = "FORBID_ATTR" in ze ? wo({}, ze.FORBID_ATTR, Vi) : {}, yT = "USE_PROFILES" in ze ? ze.USE_PROFILES : !1, Ed = ze.ALLOW_ARIA_ATTR !== !1, bm = ze.ALLOW_DATA_ATTR !== !1, p1 = ze.ALLOW_UNKNOWN_PROTOCOLS || !1, rb = ze.ALLOW_SELF_CLOSE_IN_ATTR !== !1, pf = ze.SAFE_FOR_TEMPLATES || !1, Ah = ze.WHOLE_DOCUMENT || !1, Sy = ze.RETURN_DOM || !1, vT = ze.RETURN_DOM_FRAGMENT || !1, P8 = ze.RETURN_TRUSTED_TYPE || !1, JD = ze.FORCE_BODY || !1, NG = ze.SANITIZE_DOM !== !1, BG = ze.SANITIZE_NAMED_PROPS || !1, wj = ze.KEEP_CONTENT !== !1, QD = ze.IN_PLACE || !1, En = ze.ALLOWED_URI_REGEXP || B4, xT = ze.NAMESPACE || ab, _o = ze.CUSTOM_ELEMENT_HANDLING || {}, ze.CUSTOM_ELEMENT_HANDLING && HG(ze.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (_o.tagNameCheck = ze.CUSTOM_ELEMENT_HANDLING.tagNameCheck), ze.CUSTOM_ELEMENT_HANDLING && HG(ze.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (_o.attributeNameCheck = ze.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), ze.CUSTOM_ELEMENT_HANDLING && typeof ze.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (_o.allowCustomizedBuiltInElements = ze.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), pf && (bm = !1), vT && (Sy = !0), yT && (Rn = wo({}, [...bw]), In = [], yT.html === !0 && (wo(Rn, D4), wo(In, VS)), yT.svg === !0 && (wo(Rn, R4), wo(In, zS), wo(In, vw)), yT.svgFilters === !0 && (wo(Rn, pw), wo(In, zS), wo(In, vw)), yT.mathMl === !0 && (wo(Rn, $4), wo(In, M4), wo(In, vw))), ze.ADD_TAGS && (Rn === pn && (Rn = D0(Rn)), wo(Rn, ze.ADD_TAGS, Vi)), ze.ADD_ATTR && (In === Ss && (In = D0(In)), wo(In, ze.ADD_ATTR, Vi)), ze.ADD_URI_SAFE_ATTR && wo(xj, ze.ADD_URI_SAFE_ATTR, Vi), ze.FORBID_CONTENTS && (wT === PG && (wT = D0(wT)), wo(wT, ze.FORBID_CONTENTS, Vi)), wj && (Rn["#text"] = !0), Ah && wo(Rn, [
|
|
25877
25877
|
"html",
|
|
25878
25878
|
"head",
|
|
25879
25879
|
"body"
|
|
@@ -25898,7 +25898,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
25898
25898
|
"desc",
|
|
25899
25899
|
"title",
|
|
25900
25900
|
"annotation-xml"
|
|
25901
|
-
]),
|
|
25901
|
+
]), wq = wo({}, [
|
|
25902
25902
|
"title",
|
|
25903
25903
|
"style",
|
|
25904
25904
|
"font",
|
|
@@ -25908,14 +25908,14 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
25908
25908
|
wo(F8, pw), wo(F8, iI);
|
|
25909
25909
|
const kj = wo({}, $4);
|
|
25910
25910
|
wo(kj, uI);
|
|
25911
|
-
const
|
|
25911
|
+
const xq = function(ze) {
|
|
25912
25912
|
let en = ge(ze);
|
|
25913
25913
|
(!en || !en.tagName) && (en = {
|
|
25914
25914
|
namespaceURI: xT,
|
|
25915
25915
|
tagName: "template"
|
|
25916
25916
|
});
|
|
25917
25917
|
const $n = HS(ze.tagName), ra = HS(en.tagName);
|
|
25918
|
-
return Sj[ze.namespaceURI] ? ze.namespaceURI === L8 ? en.namespaceURI === ab ? $n === "svg" : en.namespaceURI === I8 ? $n === "svg" && (ra === "annotation-xml" || VG[ra]) : !!F8[$n] : ze.namespaceURI === I8 ? en.namespaceURI === ab ? $n === "math" : en.namespaceURI === L8 ? $n === "math" && zG[ra] : !!kj[$n] : ze.namespaceURI === ab ? en.namespaceURI === L8 && !zG[ra] || en.namespaceURI === I8 && !VG[ra] ? !1 : !kj[$n] && (
|
|
25918
|
+
return Sj[ze.namespaceURI] ? ze.namespaceURI === L8 ? en.namespaceURI === ab ? $n === "svg" : en.namespaceURI === I8 ? $n === "svg" && (ra === "annotation-xml" || VG[ra]) : !!F8[$n] : ze.namespaceURI === I8 ? en.namespaceURI === ab ? $n === "math" : en.namespaceURI === L8 ? $n === "math" && zG[ra] : !!kj[$n] : ze.namespaceURI === ab ? en.namespaceURI === L8 && !zG[ra] || en.namespaceURI === I8 && !VG[ra] ? !1 : !kj[$n] && (wq[$n] || !F8[$n]) : !!(Ux === "application/xhtml+xml" && Sj[ze.namespaceURI]) : !1;
|
|
25919
25919
|
}, Wx = function(ze) {
|
|
25920
25920
|
gw(s.removed, { element: ze });
|
|
25921
25921
|
try {
|
|
@@ -25972,7 +25972,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
25972
25972
|
return ze && $n && zi.insertBefore(d.createTextNode($n), zi.childNodes[0] || null), xT === ab ? _t.call(en, Ah ? "html" : "body")[0] : Ah ? en.documentElement : zi;
|
|
25973
25973
|
}, WG = function(ze) {
|
|
25974
25974
|
return je.call(ze.ownerDocument || ze, ze, E.SHOW_ELEMENT | E.SHOW_COMMENT | E.SHOW_TEXT, null, !1);
|
|
25975
|
-
},
|
|
25975
|
+
}, Cq = function(ze) {
|
|
25976
25976
|
return ze instanceof N && (typeof ze.nodeName != "string" || typeof ze.textContent != "string" || typeof ze.removeChild != "function" || !(ze.attributes instanceof D) || typeof ze.removeAttribute != "function" || typeof ze.setAttribute != "function" || typeof ze.namespaceURI != "string" || typeof ze.insertBefore != "function" || typeof ze.hasChildNodes != "function");
|
|
25977
25977
|
}, H8 = function(ze) {
|
|
25978
25978
|
return typeof w == "object" ? ze instanceof w : ze && typeof ze == "object" && typeof ze.nodeType == "number" && typeof ze.nodeName == "string";
|
|
@@ -25982,7 +25982,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
25982
25982
|
});
|
|
25983
25983
|
}, ZG = function(ze) {
|
|
25984
25984
|
let en;
|
|
25985
|
-
if (cb("beforeSanitizeElements", ze, null),
|
|
25985
|
+
if (cb("beforeSanitizeElements", ze, null), Cq(ze))
|
|
25986
25986
|
return Wx(ze), !0;
|
|
25987
25987
|
const $n = Vi(ze.nodeName);
|
|
25988
25988
|
if (cb("uponSanitizeElement", ze, {
|
|
@@ -26003,9 +26003,9 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
26003
26003
|
}
|
|
26004
26004
|
return Wx(ze), !0;
|
|
26005
26005
|
}
|
|
26006
|
-
return ze instanceof C && !
|
|
26006
|
+
return ze instanceof C && !xq(ze) || ($n === "noscript" || $n === "noembed" || $n === "noframes") && pd(/<\/no(script|embed|frames)/i, ze.innerHTML) ? (Wx(ze), !0) : (pf && ze.nodeType === 3 && (en = ze.textContent, en = sf(en, Tn, " "), en = sf(en, wn, " "), en = sf(en, jo, " "), ze.textContent !== en && (gw(s.removed, { element: ze.cloneNode() }), ze.textContent = en)), cb("afterSanitizeElements", ze, null), !1);
|
|
26007
26007
|
}, jG = function(ze, en, $n) {
|
|
26008
|
-
if (NG && (en === "id" || en === "name") && ($n in d || $n in
|
|
26008
|
+
if (NG && (en === "id" || en === "name") && ($n in d || $n in yq))
|
|
26009
26009
|
return !1;
|
|
26010
26010
|
if (!(bm && !Hi[en] && pd(gn, en))) {
|
|
26011
26011
|
if (!(Ed && pd(Co, en))) {
|
|
@@ -26042,7 +26042,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
26042
26042
|
en = wg[zi];
|
|
26043
26043
|
const { name: xg, namespaceURI: Tj } = en;
|
|
26044
26044
|
$n = xg === "value" ? en.value : dR(en.value);
|
|
26045
|
-
const
|
|
26045
|
+
const _q = $n;
|
|
26046
26046
|
if (ra = Vi(xg), $c.attrName = ra, $c.attrValue = $n, $c.keepAttr = !0, $c.forceKeepAttr = void 0, cb("uponSanitizeAttribute", ze, $c), $n = $c.attrValue, $c.forceKeepAttr)
|
|
26047
26047
|
continue;
|
|
26048
26048
|
if (!$c.keepAttr) {
|
|
@@ -26059,7 +26059,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
26059
26059
|
e5(xg, ze);
|
|
26060
26060
|
continue;
|
|
26061
26061
|
}
|
|
26062
|
-
if (BG && (ra === "id" || ra === "name") && (e5(xg, ze), $n =
|
|
26062
|
+
if (BG && (ra === "id" || ra === "name") && (e5(xg, ze), $n = hq + $n), Ee && typeof W == "object" && typeof W.getAttributeType == "function" && !Tj)
|
|
26063
26063
|
switch (W.getAttributeType(KG, ra)) {
|
|
26064
26064
|
case "TrustedHTML": {
|
|
26065
26065
|
$n = Ee.createHTML($n);
|
|
@@ -26070,7 +26070,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
26070
26070
|
break;
|
|
26071
26071
|
}
|
|
26072
26072
|
}
|
|
26073
|
-
if ($n !==
|
|
26073
|
+
if ($n !== _q)
|
|
26074
26074
|
try {
|
|
26075
26075
|
Tj ? ze.setAttributeNS(Tj, xg, $n) : ze.setAttribute(xg, $n);
|
|
26076
26076
|
} catch {
|
|
@@ -26078,7 +26078,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
26078
26078
|
}
|
|
26079
26079
|
}
|
|
26080
26080
|
cb("afterSanitizeAttributes", ze, null);
|
|
26081
|
-
},
|
|
26081
|
+
}, Sq = function uo(ze) {
|
|
26082
26082
|
let en;
|
|
26083
26083
|
const $n = WG(ze);
|
|
26084
26084
|
for (cb("beforeSanitizeShadowDOM", ze, null); en = $n.nextNode(); )
|
|
@@ -26112,7 +26112,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
26112
26112
|
en && JD && Wx(en.firstChild);
|
|
26113
26113
|
const wg = WG(QD ? uo : en);
|
|
26114
26114
|
for (; ra = wg.nextNode(); )
|
|
26115
|
-
ZG(ra) || (ra.content instanceof g &&
|
|
26115
|
+
ZG(ra) || (ra.content instanceof g && Sq(ra.content), qG(ra));
|
|
26116
26116
|
if (QD)
|
|
26117
26117
|
return uo;
|
|
26118
26118
|
if (Sy) {
|
|
@@ -28767,7 +28767,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
28767
28767
|
cr.hide(g), t.dom.remove(a, !1);
|
|
28768
28768
|
const De = _e.fromDom(t.getBody());
|
|
28769
28769
|
B(De, "aria-owns").filter((be) => be === a).each(() => {
|
|
28770
|
-
|
|
28770
|
+
se(De, "aria-owns"), se(De, "aria-activedescendant");
|
|
28771
28771
|
});
|
|
28772
28772
|
}
|
|
28773
28773
|
}, E = () => cr.getContent(g).bind((De) => gs(De.components(), 0)), D = () => t.execCommand("mceAutocompleterClose"), N = (De) => {
|
|
@@ -29385,7 +29385,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
29385
29385
|
},
|
|
29386
29386
|
onEnabled: (W) => {
|
|
29387
29387
|
D(W, (Y) => {
|
|
29388
|
-
Qs(Y, "tox-collection__item--state-disabled"),
|
|
29388
|
+
Qs(Y, "tox-collection__item--state-disabled"), se(Y, "aria-disabled");
|
|
29389
29389
|
});
|
|
29390
29390
|
}
|
|
29391
29391
|
}),
|
|
@@ -31896,7 +31896,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
31896
31896
|
setEnabled: (s) => vn.set(t, !s),
|
|
31897
31897
|
setActive: (s) => {
|
|
31898
31898
|
const a = t.element;
|
|
31899
|
-
s ? (Nr(a, "tox-tbtn--enabled"), Mt(a, "aria-pressed", !0)) : (Qs(a, "tox-tbtn--enabled"),
|
|
31899
|
+
s ? (Nr(a, "tox-tbtn--enabled"), Mt(a, "aria-pressed", !0)) : (Qs(a, "tox-tbtn--enabled"), se(a, "aria-pressed"));
|
|
31900
31900
|
},
|
|
31901
31901
|
isActive: () => na(t.element, "tox-tbtn--enabled"),
|
|
31902
31902
|
setText: (s) => {
|
|
@@ -32390,7 +32390,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
32390
32390
|
sandbox: (N) => lA(t, N, {
|
|
32391
32391
|
onOpen: () => Gn.on(N),
|
|
32392
32392
|
onClose: () => {
|
|
32393
|
-
t.lazyTypeaheadComp.get().each((F) =>
|
|
32393
|
+
t.lazyTypeaheadComp.get().each((F) => se(F.element, "aria-activedescendant")), Gn.off(N);
|
|
32394
32394
|
}
|
|
32395
32395
|
})
|
|
32396
32396
|
}
|
|
@@ -34221,7 +34221,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
34221
34221
|
}, p = (le, De) => Ws(le.element, "aria-hidden") !== "true", w = (le, De) => {
|
|
34222
34222
|
if (!p(le)) {
|
|
34223
34223
|
const be = le.element;
|
|
34224
|
-
fo(be, "display"),
|
|
34224
|
+
fo(be, "display"), se(be, "aria-hidden"), an(le, T1(), {
|
|
34225
34225
|
name: De,
|
|
34226
34226
|
visible: !0
|
|
34227
34227
|
});
|
|
@@ -34408,7 +34408,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
34408
34408
|
Pn.append(d, _i(w)), w.hasConfigured(cn) && s.focus && cn.focusIn(w), a.isBlocked() || s.onBlock(t), a.blockWith(() => Pn.remove(d, w));
|
|
34409
34409
|
},
|
|
34410
34410
|
unblock: (t, s, a) => {
|
|
34411
|
-
|
|
34411
|
+
se(t.element, "aria-busy"), a.isBlocked() && s.onUnblock(t), a.clear();
|
|
34412
34412
|
},
|
|
34413
34413
|
isBlocked: (t, s, a) => a.isBlocked()
|
|
34414
34414
|
}), Cz = [
|
|
@@ -34448,14 +34448,14 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
34448
34448
|
}), bP = (t) => io.getCurrent(t).each((s) => Al(s.element, !0)), Sx = (t, s) => {
|
|
34449
34449
|
const a = "tabindex", l = `data-mce-${a}`;
|
|
34450
34450
|
A.from(t.iframeElement).map(_e.fromDom).each((d) => {
|
|
34451
|
-
s ? (B(d, a).each((g) => Mt(d, l, g)), Mt(d, a, -1)) : (
|
|
34452
|
-
Mt(d, a, g),
|
|
34451
|
+
s ? (B(d, a).each((g) => Mt(d, l, g)), Mt(d, a, -1)) : (se(d, a), B(d, l).each((g) => {
|
|
34452
|
+
Mt(d, a, g), se(d, l);
|
|
34453
34453
|
}));
|
|
34454
34454
|
});
|
|
34455
34455
|
}, _z = (t, s, a, l) => {
|
|
34456
34456
|
const d = s.element;
|
|
34457
34457
|
if (Sx(t, a), a)
|
|
34458
|
-
mm.block(s, pP(l)), fo(d, "display"),
|
|
34458
|
+
mm.block(s, pP(l)), fo(d, "display"), se(d, "aria-hidden"), t.hasFocus() && bP(s);
|
|
34459
34459
|
else {
|
|
34460
34460
|
const g = io.getCurrent(s).exists((p) => U1(p.element));
|
|
34461
34461
|
mm.unblock(s), jt(d, "display", "none"), Mt(d, "aria-hidden", "true"), g && t.focus();
|
|
@@ -35123,7 +35123,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
35123
35123
|
}));
|
|
35124
35124
|
}, Xe = (pt) => {
|
|
35125
35125
|
const _t = Ee.element;
|
|
35126
|
-
pt ? (Nr(_t, "tox-button--enabled"), Mt(_t, "aria-pressed", !0)) : (Qs(_t, "tox-button--enabled"),
|
|
35126
|
+
pt ? (Nr(_t, "tox-button--enabled"), Mt(_t, "aria-pressed", !0)) : (Qs(_t, "tox-button--enabled"), se(_t, "aria-pressed"));
|
|
35127
35127
|
}, je = () => na(Ee.element, "tox-button--enabled");
|
|
35128
35128
|
if (d)
|
|
35129
35129
|
return t.onAction({
|
|
@@ -35272,7 +35272,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
35272
35272
|
jt(s, "display", "none"), Mt(s, "aria-hidden", "true");
|
|
35273
35273
|
}, Yz = (t) => {
|
|
35274
35274
|
const s = t.element;
|
|
35275
|
-
fo(s, "display"),
|
|
35275
|
+
fo(s, "display"), se(s, "aria-hidden");
|
|
35276
35276
|
}, Xz = (t) => ({ getContainer: ne(t) }), aD = (t, s, a) => {
|
|
35277
35277
|
Bl.getSlot(t, s).each((l) => {
|
|
35278
35278
|
my.getPane(l).each((d) => {
|
|
@@ -35392,7 +35392,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
35392
35392
|
showMainView: (g) => {
|
|
35393
35393
|
l && d.toggleToolbarDrawer(g), Xa.getPart(g, t, "editorContainer").each((p) => {
|
|
35394
35394
|
const w = p.element;
|
|
35395
|
-
fo(w, "display"),
|
|
35395
|
+
fo(w, "display"), se(w, "aria-hidden");
|
|
35396
35396
|
});
|
|
35397
35397
|
}
|
|
35398
35398
|
};
|
|
@@ -38259,7 +38259,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
38259
38259
|
Mt(l, s.leftAttr, a.left + "px"), Mt(l, s.topAttr, a.top + "px");
|
|
38260
38260
|
}, iZ = (t, s) => {
|
|
38261
38261
|
const a = t.element;
|
|
38262
|
-
|
|
38262
|
+
se(a, s.leftAttr), se(a, s.topAttr);
|
|
38263
38263
|
}, uZ = (t, s, a, l) => cZ(t, s).fold(() => a, (d) => J0(d.left + l.left, d.top + l.top)), dZ = (t, s, a, l, d, g) => {
|
|
38264
38264
|
const p = uZ(t, s, a, l), w = s.mustSnap ? fZ(t, s, p, d, g) : gZ(t, s, p, d, g), C = Mx(p, d, g);
|
|
38265
38265
|
return lZ(t, s, C), w.fold(() => ({
|
|
@@ -38317,7 +38317,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
38317
38317
|
});
|
|
38318
38318
|
const ND = "data-initial-z-index", pZ = (t) => {
|
|
38319
38319
|
Jr(t.element).filter(ko).each((s) => {
|
|
38320
|
-
B(s, ND).fold(() => fo(s, "z-index"), (a) => jt(s, "z-index", a)),
|
|
38320
|
+
B(s, ND).fold(() => fo(s, "z-index"), (a) => jt(s, "z-index", a)), se(s, ND);
|
|
38321
38321
|
});
|
|
38322
38322
|
}, bZ = (t) => {
|
|
38323
38323
|
Jr(t.element).filter(ko).each((s) => {
|
|
@@ -40690,7 +40690,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
40690
40690
|
};
|
|
40691
40691
|
};
|
|
40692
40692
|
var B8 = tinymce.util.Tools.resolve("tinymce.util.URI");
|
|
40693
|
-
const
|
|
40693
|
+
const sq = (t) => {
|
|
40694
40694
|
const s = (p) => {
|
|
40695
40695
|
t.getSystem().isConnected() && p(t);
|
|
40696
40696
|
};
|
|
@@ -40718,14 +40718,14 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
40718
40718
|
});
|
|
40719
40719
|
}
|
|
40720
40720
|
};
|
|
40721
|
-
},
|
|
40721
|
+
}, rq = [
|
|
40722
40722
|
"insertContent",
|
|
40723
40723
|
"setContent",
|
|
40724
40724
|
"execCommand",
|
|
40725
40725
|
"close",
|
|
40726
40726
|
"block",
|
|
40727
40727
|
"unblock"
|
|
40728
|
-
], RG = (t) => Ue(t) &&
|
|
40728
|
+
], RG = (t) => Ue(t) && rq.indexOf(t.mceAction) !== -1, aq = (t) => !RG(t) && Ue(t) && mo(t, "mceAction"), cq = (t, s, a) => {
|
|
40729
40729
|
switch (a.mceAction) {
|
|
40730
40730
|
case "insertContent":
|
|
40731
40731
|
t.insertContent(a.content);
|
|
@@ -40747,7 +40747,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
40747
40747
|
s.unblock();
|
|
40748
40748
|
break;
|
|
40749
40749
|
}
|
|
40750
|
-
},
|
|
40750
|
+
}, lq = (t, s, a, l) => {
|
|
40751
40751
|
const d = Ut("dialog"), g = xt(t.title, d, l), p = xy(t), w = t.buttons.bind((Ee) => Ee.length === 0 ? A.none() : A.some(Td({ buttons: Ee }, d, l))), C = vj(() => ge, on(() => be, l.shared.providers, s)), E = {
|
|
40752
40752
|
...t.height.fold(() => ({}), (Ee) => ({
|
|
40753
40753
|
height: Ee + "px",
|
|
@@ -40768,7 +40768,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
40768
40768
|
const Ee = Yc(_e.fromDom(window), "message", (ut) => {
|
|
40769
40769
|
if (N.isSameOrigin(new B8(ut.raw.origin))) {
|
|
40770
40770
|
const Xe = ut.raw.data;
|
|
40771
|
-
RG(Xe) ?
|
|
40771
|
+
RG(Xe) ? cq(a, ge, Xe) : aq(Xe) && t.onMessage(ge, Xe);
|
|
40772
40772
|
}
|
|
40773
40773
|
});
|
|
40774
40774
|
W.set(Ee);
|
|
@@ -40795,12 +40795,12 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
40795
40795
|
extraClasses: D,
|
|
40796
40796
|
extraBehaviours: le,
|
|
40797
40797
|
extraStyles: E
|
|
40798
|
-
}, C, l), ge =
|
|
40798
|
+
}, C, l), ge = sq(be);
|
|
40799
40799
|
return {
|
|
40800
40800
|
dialog: be,
|
|
40801
40801
|
instanceApi: ge
|
|
40802
40802
|
};
|
|
40803
|
-
},
|
|
40803
|
+
}, iq = (t) => {
|
|
40804
40804
|
const s = t.shared;
|
|
40805
40805
|
return { open: (l, d) => {
|
|
40806
40806
|
const g = () => {
|
|
@@ -40829,7 +40829,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
40829
40829
|
const D = p.get(E);
|
|
40830
40830
|
yn.focus(D);
|
|
40831
40831
|
} };
|
|
40832
|
-
},
|
|
40832
|
+
}, uq = (t) => {
|
|
40833
40833
|
const s = t.shared;
|
|
40834
40834
|
return { open: (l, d) => {
|
|
40835
40835
|
const g = (F) => {
|
|
@@ -40872,7 +40872,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
40872
40872
|
const N = p.get(D);
|
|
40873
40873
|
yn.focus(N);
|
|
40874
40874
|
} };
|
|
40875
|
-
}, $G = (t, s) => rs(qs("data", s, t)), MG = (t) => Uw(t, ".tox-alert-dialog") || Uw(t, ".tox-confirm-dialog"),
|
|
40875
|
+
}, $G = (t, s) => rs(qs("data", s, t)), MG = (t) => Uw(t, ".tox-alert-dialog") || Uw(t, ".tox-confirm-dialog"), dq = (t, s, a) => s && a ? [] : [er.config({
|
|
40876
40876
|
contextual: {
|
|
40877
40877
|
lazyContext: () => A.some(Gs(_e.fromDom(t.getContentAreaContainer()))),
|
|
40878
40878
|
fadeInClass: "tox-dialog-dock-fadein",
|
|
@@ -40890,8 +40890,8 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
40890
40890
|
bounds: Qr(),
|
|
40891
40891
|
optScrollEnv: A.none()
|
|
40892
40892
|
}))
|
|
40893
|
-
})],
|
|
40894
|
-
const s = t.editor, a = Ew(s), l =
|
|
40893
|
+
})], mq = (t) => {
|
|
40894
|
+
const s = t.editor, a = Ew(s), l = iq(t.backstages.dialog), d = uq(t.backstages.dialog), g = (Y, le, De) => {
|
|
40895
40895
|
if (!zo(le)) {
|
|
40896
40896
|
if (le.inline === "toolbar")
|
|
40897
40897
|
return E(Y, t.backstages.popup.shared.anchors.inlineDialog(), De, le);
|
|
@@ -40903,7 +40903,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
40903
40903
|
return C(Y, De);
|
|
40904
40904
|
}, p = (Y, le) => w(Y, le), w = (Y, le) => {
|
|
40905
40905
|
const De = (be) => {
|
|
40906
|
-
const ge =
|
|
40906
|
+
const ge = lq(be, {
|
|
40907
40907
|
closeWindow: () => {
|
|
40908
40908
|
jr.hide(ge.dialog), le(ge.instanceApi);
|
|
40909
40909
|
}
|
|
@@ -40951,7 +40951,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
40951
40951
|
Hn("window-manager-inline-events", [Je(Rf(), (gn, Co) => {
|
|
40952
40952
|
go(Tn.dialog, Jp);
|
|
40953
40953
|
})]),
|
|
40954
|
-
...
|
|
40954
|
+
...dq(s, a, _t)
|
|
40955
40955
|
]),
|
|
40956
40956
|
isExtraPart: (gn, Co) => MG(Co)
|
|
40957
40957
|
}));
|
|
@@ -41035,12 +41035,12 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
41035
41035
|
d.open(Y, le);
|
|
41036
41036
|
}
|
|
41037
41037
|
};
|
|
41038
|
-
},
|
|
41038
|
+
}, fq = (t) => {
|
|
41039
41039
|
yR(t), _L(t), OD(t);
|
|
41040
41040
|
};
|
|
41041
|
-
var
|
|
41041
|
+
var gq = () => {
|
|
41042
41042
|
Qi.add("silver", (t) => {
|
|
41043
|
-
|
|
41043
|
+
fq(t);
|
|
41044
41044
|
let s = () => Qr();
|
|
41045
41045
|
const {
|
|
41046
41046
|
dialogs: a,
|
|
@@ -41053,7 +41053,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
41053
41053
|
}), C;
|
|
41054
41054
|
};
|
|
41055
41055
|
gF.register(t, l.backstage.shared);
|
|
41056
|
-
const p =
|
|
41056
|
+
const p = mq({
|
|
41057
41057
|
editor: t,
|
|
41058
41058
|
backstages: {
|
|
41059
41059
|
popup: l.backstage,
|
|
@@ -41067,7 +41067,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
41067
41067
|
};
|
|
41068
41068
|
});
|
|
41069
41069
|
};
|
|
41070
|
-
|
|
41070
|
+
gq();
|
|
41071
41071
|
})();
|
|
41072
41072
|
(function() {
|
|
41073
41073
|
var P = tinymce.util.Tools.resolve("tinymce.ModelManager");
|
|
@@ -41077,7 +41077,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
41077
41077
|
}, ce = (i) => {
|
|
41078
41078
|
const m = typeof i;
|
|
41079
41079
|
return i === null ? "null" : m === "object" && Array.isArray(i) ? "array" : m === "object" && ve(i, String, (h, v) => v.isPrototypeOf(h)) ? "string" : m;
|
|
41080
|
-
}, Ne = (i) => (m) => ce(m) === i, xe = (i) => (m) => typeof m === i,
|
|
41080
|
+
}, Ne = (i) => (m) => ce(m) === i, xe = (i) => (m) => typeof m === i, oe = (i) => (m) => i === m, Re = Ne("string"), Q = Ne("object"), Ue = Ne("array"), Dt = oe(null), rn = xe("boolean"), Bn = oe(void 0), zn = (i) => i == null, zo = (i) => !zn(i), ir = xe("function"), $o = xe("number"), Rt = () => {
|
|
41081
41081
|
}, ur = (i, m) => (...h) => i(m.apply(null, h)), dn = (i, m) => (h) => i(m(h)), me = (i) => () => i, St = (i) => i, Ea = (i, m) => i === m;
|
|
41082
41082
|
function Xn(i, ...m) {
|
|
41083
41083
|
return (...h) => {
|
|
@@ -41536,12 +41536,12 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
|
|
|
41536
41536
|
if (m == null)
|
|
41537
41537
|
throw new Error("Body is not available yet");
|
|
41538
41538
|
return _e.fromDom(m);
|
|
41539
|
-
},
|
|
41539
|
+
}, se = (i, m, h) => ro(vl(i, h), m), Ie = (i, m) => ro(ko(i), m), Et = (i, m) => {
|
|
41540
41540
|
let h = [];
|
|
41541
41541
|
return ot(ko(i), (v) => {
|
|
41542
41542
|
m(v) && (h = h.concat([v])), h = h.concat(Et(v, m));
|
|
41543
41543
|
}), h;
|
|
41544
|
-
}, Kn = (i, m, h) =>
|
|
41544
|
+
}, Kn = (i, m, h) => se(i, (v) => Gr(v, m), h), jt = (i, m) => Ie(i, (h) => Gr(h, m)), $s = (i, m) => Wu(m, i);
|
|
41545
41545
|
var ct = (i, m, h, v, _) => i(h, v) ? ie.some(h) : ir(_) && _(h) ? ie.none() : m(h, v, _);
|
|
41546
41546
|
const ss = (i, m, h) => {
|
|
41547
41547
|
let v = i.dom;
|
|
@@ -45320,7 +45320,7 @@ Required: ` + m.join(", "));
|
|
|
45320
45320
|
}, ce = (S) => {
|
|
45321
45321
|
const R = typeof S;
|
|
45322
45322
|
return S === null ? "null" : R === "object" && Array.isArray(S) ? "array" : R === "object" && ve(S, String, (U, re) => re.isPrototypeOf(U)) ? "string" : R;
|
|
45323
|
-
}, Ne = (S) => (R) => ce(R) === S, xe = (S) => (R) => typeof R === S,
|
|
45323
|
+
}, Ne = (S) => (R) => ce(R) === S, xe = (S) => (R) => typeof R === S, oe = Ne("string"), Re = Ne("object"), Q = Ne("array"), Ue = xe("boolean"), Dt = (S) => S == null, rn = (S) => !Dt(S), Bn = xe("function"), zn = xe("number"), zo = () => {
|
|
45324
45324
|
}, ir = (S, R) => (U) => S(R(U)), $o = (S) => () => S, Rt = (S, R) => S === R;
|
|
45325
45325
|
function ur(S, ...R) {
|
|
45326
45326
|
return (...U) => {
|
|
@@ -45605,7 +45605,7 @@ Required: ` + m.join(", "));
|
|
|
45605
45605
|
const U = {};
|
|
45606
45606
|
return qi(S, R, tc(U), zo), U;
|
|
45607
45607
|
}, ks = (S, R, U) => {
|
|
45608
|
-
if (
|
|
45608
|
+
if (oe(U) || Ue(U) || zn(U))
|
|
45609
45609
|
S.setAttribute(R, U + "");
|
|
45610
45610
|
else
|
|
45611
45611
|
throw console.error("Invalid call to Attribute.set. Key ", R, ":: Value ", U, ":: Element ", S), new Error("Attribute value was not simple");
|
|
@@ -45711,7 +45711,7 @@ Required: ` + m.join(", "));
|
|
|
45711
45711
|
}, B = (S) => {
|
|
45712
45712
|
const R = S.selection.getSelectedBlocks();
|
|
45713
45713
|
return Mo(Ws(S, R), Or);
|
|
45714
|
-
}, K = (S) => Mo(B(S), ua),
|
|
45714
|
+
}, K = (S) => Mo(B(S), ua), se = (S, R) => {
|
|
45715
45715
|
const U = S.dom.getParents(R, "TD,TH");
|
|
45716
45716
|
return U.length > 0 ? U[0] : S.getBody();
|
|
45717
45717
|
}, Ie = (S, R) => !Ra(R) && !Or(R) && wt(ao, (U) => S.isValidChild(R.nodeName, U)), Et = (S, R) => {
|
|
@@ -45753,7 +45753,7 @@ Required: ` + m.join(", "));
|
|
|
45753
45753
|
action: R,
|
|
45754
45754
|
element: U
|
|
45755
45755
|
}), Dh = ((S) => (R) => R.replace(S, ""))(/^\s+|\s+$/g), Rh = (S) => S.length > 0, Oo = (S) => !Rh(S), zl = (S) => S.style !== void 0 && Bn(S.style.getPropertyValue), Xi = (S, R, U) => {
|
|
45756
|
-
if (!
|
|
45756
|
+
if (!oe(U))
|
|
45757
45757
|
throw console.error("Invalid call to CSS.set. Property ", R, ":: Value ", U, ":: Element ", S), new Error("CSS value must be a string: " + U);
|
|
45758
45758
|
zl(S) && S.style.setProperty(R, U);
|
|
45759
45759
|
}, wc = (S, R, U) => {
|
|
@@ -46223,7 +46223,7 @@ Required: ` + m.join(", "));
|
|
|
46223
46223
|
const lt = fa(fe);
|
|
46224
46224
|
S.selection.setRng(lt);
|
|
46225
46225
|
}, Ln = (S, R) => {
|
|
46226
|
-
const U = S.dom, re = S.selection, fe = re.getStart(), lt =
|
|
46226
|
+
const U = S.dom, re = S.selection, fe = re.getStart(), lt = se(S, fe), Gt = U.getParent(re.getStart(), "LI", lt);
|
|
46227
46227
|
if (Gt) {
|
|
46228
46228
|
const An = Gt.parentElement;
|
|
46229
46229
|
if (An === S.getBody() && yc(U, An))
|
|
@@ -46252,7 +46252,7 @@ Required: ` + m.join(", "));
|
|
|
46252
46252
|
const re = S.getParent(R.parentNode, S.isBlock, U);
|
|
46253
46253
|
S.remove(R), re && S.isEmpty(re) && S.remove(re);
|
|
46254
46254
|
}, xu = (S, R) => {
|
|
46255
|
-
const U = S.dom, re = S.selection.getStart(), fe =
|
|
46255
|
+
const U = S.dom, re = S.selection.getStart(), fe = se(S, re), lt = U.getParent(re, U.isBlock, fe);
|
|
46256
46256
|
if (lt && U.isEmpty(lt)) {
|
|
46257
46257
|
const Gt = vs(S.selection.getRng()), An = U.getParent(Gs(S, Gt, R, fe), "LI", fe);
|
|
46258
46258
|
if (An) {
|
|
@@ -46269,7 +46269,7 @@ Required: ` + m.join(", "));
|
|
|
46269
46269
|
}
|
|
46270
46270
|
return !1;
|
|
46271
46271
|
}, Nd = (S, R) => Ln(S, R) || xu(S, R), Cf = (S) => {
|
|
46272
|
-
const R = S.selection.getStart(), U =
|
|
46272
|
+
const R = S.selection.getStart(), U = se(S, R);
|
|
46273
46273
|
return S.dom.getParent(R, "LI,DT,DD", U) || B(S).length > 0;
|
|
46274
46274
|
}, Fh = (S) => Cf(S) ? (S.undoManager.transact(() => {
|
|
46275
46275
|
S.execCommand("Delete"), Ns(S.dom, S.getBody());
|
|
@@ -46468,7 +46468,7 @@ Required: ` + m.join(", "));
|
|
|
46468
46468
|
}, ce = (j) => {
|
|
46469
46469
|
const de = typeof j;
|
|
46470
46470
|
return j === null ? "null" : de === "object" && Array.isArray(j) ? "array" : de === "object" && ve(j, String, (Se, Be) => Be.isPrototypeOf(Se)) ? "string" : de;
|
|
46471
|
-
}, Ne = (j) => (de) => ce(de) === j, xe = (j) => (de) => typeof de === j,
|
|
46471
|
+
}, Ne = (j) => (de) => ce(de) === j, xe = (j) => (de) => typeof de === j, oe = (j) => (de) => j === de, Re = Ne("string"), Q = Ne("object"), Ue = Ne("array"), Dt = oe(null), rn = xe("boolean"), Bn = (j) => j == null, zn = (j) => !Bn(j), zo = xe("function"), ir = (j, de) => {
|
|
46472
46472
|
if (Ue(j)) {
|
|
46473
46473
|
for (let Se = 0, Be = j.length; Se < Be; ++Se)
|
|
46474
46474
|
if (!de(j[Se]))
|
|
@@ -47219,16 +47219,16 @@ Required: ` + m.join(", "));
|
|
|
47219
47219
|
})();
|
|
47220
47220
|
(function() {
|
|
47221
47221
|
var P = tinymce.util.Tools.resolve("tinymce.PluginManager");
|
|
47222
|
-
const ve = Object.getPrototypeOf, ce = (B, K,
|
|
47222
|
+
const ve = Object.getPrototypeOf, ce = (B, K, se) => {
|
|
47223
47223
|
var Ie;
|
|
47224
|
-
return
|
|
47224
|
+
return se(B, K.prototype) ? !0 : ((Ie = B.constructor) === null || Ie === void 0 ? void 0 : Ie.name) === K.name;
|
|
47225
47225
|
}, Ne = (B) => {
|
|
47226
47226
|
const K = typeof B;
|
|
47227
|
-
return B === null ? "null" : K === "object" && Array.isArray(B) ? "array" : K === "object" && ce(B, String, (
|
|
47228
|
-
}, xe = (B) => (K) => Ne(K) === B,
|
|
47227
|
+
return B === null ? "null" : K === "object" && Array.isArray(B) ? "array" : K === "object" && ce(B, String, (se, Ie) => Ie.isPrototypeOf(se)) ? "string" : K;
|
|
47228
|
+
}, xe = (B) => (K) => Ne(K) === B, oe = (B) => (K) => typeof K === B, Re = (B) => (K) => B === K, Q = (B, K) => Dt(B) && ce(B, K, (se, Ie) => ve(se) === Ie), Ue = xe("string"), Dt = xe("object"), rn = (B) => Q(B, Object), Bn = xe("array"), zn = Re(null), zo = oe("boolean"), ir = (B) => B == null, $o = (B) => !ir(B), Rt = oe("function"), ur = oe("number"), dn = (B, K) => {
|
|
47229
47229
|
if (Bn(B)) {
|
|
47230
|
-
for (let
|
|
47231
|
-
if (!K(B[
|
|
47230
|
+
for (let se = 0, Ie = B.length; se < Ie; ++se)
|
|
47231
|
+
if (!K(B[se]))
|
|
47232
47232
|
return !1;
|
|
47233
47233
|
return !0;
|
|
47234
47234
|
}
|
|
@@ -47236,8 +47236,8 @@ Required: ` + m.join(", "));
|
|
|
47236
47236
|
}, me = () => {
|
|
47237
47237
|
};
|
|
47238
47238
|
class St {
|
|
47239
|
-
constructor(K,
|
|
47240
|
-
this.tag = K, this.value =
|
|
47239
|
+
constructor(K, se) {
|
|
47240
|
+
this.tag = K, this.value = se;
|
|
47241
47241
|
}
|
|
47242
47242
|
static some(K) {
|
|
47243
47243
|
return new St(!0, K);
|
|
@@ -47245,8 +47245,8 @@ Required: ` + m.join(", "));
|
|
|
47245
47245
|
static none() {
|
|
47246
47246
|
return St.singletonNone;
|
|
47247
47247
|
}
|
|
47248
|
-
fold(K,
|
|
47249
|
-
return this.tag ?
|
|
47248
|
+
fold(K, se) {
|
|
47249
|
+
return this.tag ? se(this.value) : K();
|
|
47250
47250
|
}
|
|
47251
47251
|
isSome() {
|
|
47252
47252
|
return this.tag;
|
|
@@ -47307,44 +47307,44 @@ Required: ` + m.join(", "));
|
|
|
47307
47307
|
}
|
|
47308
47308
|
St.singletonNone = new St(!1);
|
|
47309
47309
|
const Ea = Object.keys, Xn = Object.hasOwnProperty, ne = (B, K) => {
|
|
47310
|
-
const
|
|
47311
|
-
for (let Ie = 0, Et =
|
|
47312
|
-
const Kn =
|
|
47310
|
+
const se = Ea(B);
|
|
47311
|
+
for (let Ie = 0, Et = se.length; Ie < Et; Ie++) {
|
|
47312
|
+
const Kn = se[Ie], jt = B[Kn];
|
|
47313
47313
|
K(jt, Kn);
|
|
47314
47314
|
}
|
|
47315
|
-
}, Mn = (B) => (K,
|
|
47316
|
-
B[
|
|
47317
|
-
}, ts = (B, K,
|
|
47315
|
+
}, Mn = (B) => (K, se) => {
|
|
47316
|
+
B[se] = K;
|
|
47317
|
+
}, ts = (B, K, se, Ie) => {
|
|
47318
47318
|
ne(B, (Et, Kn) => {
|
|
47319
|
-
(K(Et, Kn) ?
|
|
47319
|
+
(K(Et, Kn) ? se : Ie)(Et, Kn);
|
|
47320
47320
|
});
|
|
47321
47321
|
}, wt = (B, K) => {
|
|
47322
|
-
const
|
|
47323
|
-
return ts(B, K, Mn(
|
|
47322
|
+
const se = {};
|
|
47323
|
+
return ts(B, K, Mn(se), me), se;
|
|
47324
47324
|
}, Fe = (B, K) => Xn.call(B, K), ie = (B, K) => Fe(B, K) && B[K] !== void 0 && B[K] !== null, Mo = Array.prototype.push, Jn = (B) => {
|
|
47325
47325
|
const K = [];
|
|
47326
|
-
for (let
|
|
47327
|
-
if (!Bn(B[
|
|
47328
|
-
throw new Error("Arr.flatten item " +
|
|
47329
|
-
Mo.apply(K, B[
|
|
47326
|
+
for (let se = 0, Ie = B.length; se < Ie; ++se) {
|
|
47327
|
+
if (!Bn(B[se]))
|
|
47328
|
+
throw new Error("Arr.flatten item " + se + " was not an array, input: " + B);
|
|
47329
|
+
Mo.apply(K, B[se]);
|
|
47330
47330
|
}
|
|
47331
47331
|
return K;
|
|
47332
47332
|
}, Ge = (B, K) => K >= 0 && K < B.length ? St.some(B[K]) : St.none(), A = (B) => Ge(B, 0), Xt = (B, K) => {
|
|
47333
|
-
for (let
|
|
47334
|
-
const Ie = K(B[
|
|
47333
|
+
for (let se = 0; se < B.length; se++) {
|
|
47334
|
+
const Ie = K(B[se], se);
|
|
47335
47335
|
if (Ie.isSome())
|
|
47336
47336
|
return Ie;
|
|
47337
47337
|
}
|
|
47338
47338
|
return St.none();
|
|
47339
47339
|
};
|
|
47340
47340
|
typeof window < "u" || Function("return this;")();
|
|
47341
|
-
const nt = (B, K,
|
|
47342
|
-
if (Ue(
|
|
47343
|
-
B.setAttribute(K,
|
|
47341
|
+
const nt = (B, K, se) => {
|
|
47342
|
+
if (Ue(se) || zo(se) || ur(se))
|
|
47343
|
+
B.setAttribute(K, se + "");
|
|
47344
47344
|
else
|
|
47345
|
-
throw console.error("Invalid call to Attribute.set. Key ", K, ":: Value ",
|
|
47346
|
-
}, No = (B, K,
|
|
47347
|
-
nt(B.dom, K,
|
|
47345
|
+
throw console.error("Invalid call to Attribute.set. Key ", K, ":: Value ", se, ":: Element ", B), new Error("Attribute value was not simple");
|
|
47346
|
+
}, No = (B, K, se) => {
|
|
47347
|
+
nt(B.dom, K, se);
|
|
47348
47348
|
}, mn = (B, K) => {
|
|
47349
47349
|
B.dom.removeAttribute(K);
|
|
47350
47350
|
}, ot = (B, K) => {
|
|
@@ -47369,7 +47369,7 @@ Required: ` + m.join(", "));
|
|
|
47369
47369
|
fromTag: Uo,
|
|
47370
47370
|
fromText: dr,
|
|
47371
47371
|
fromDom: ro,
|
|
47372
|
-
fromPoint: (B, K,
|
|
47372
|
+
fromPoint: (B, K, se) => St.from(B.dom.elementFromPoint(K, se)).map(ro)
|
|
47373
47373
|
};
|
|
47374
47374
|
var gt = tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"), z = tinymce.util.Tools.resolve("tinymce.util.URI");
|
|
47375
47375
|
const Qa = (B) => B.length > 0, Qn = (B) => (K) => K.options.get(B), ns = (B) => {
|
|
@@ -47396,10 +47396,10 @@ Required: ` + m.join(", "));
|
|
|
47396
47396
|
processor: "boolean",
|
|
47397
47397
|
default: !1
|
|
47398
47398
|
}), K("image_list", {
|
|
47399
|
-
processor: (
|
|
47400
|
-
const Ie =
|
|
47399
|
+
processor: (se) => {
|
|
47400
|
+
const Ie = se === !1 || Ue(se) || dn(se, Dt) || Rt(se);
|
|
47401
47401
|
return Ie ? {
|
|
47402
|
-
value:
|
|
47402
|
+
value: se,
|
|
47403
47403
|
valid: Ie
|
|
47404
47404
|
} : {
|
|
47405
47405
|
valid: !1,
|
|
@@ -47409,20 +47409,20 @@ Required: ` + m.join(", "));
|
|
|
47409
47409
|
default: !1
|
|
47410
47410
|
});
|
|
47411
47411
|
}, Lo = Qn("image_dimensions"), Ui = Qn("image_advtab"), qe = Qn("image_uploadtab"), Tt = Qn("image_prepend_url"), Ke = Qn("image_class_list"), Ce = Qn("image_description"), bn = Qn("image_title"), Wo = Qn("image_caption"), Ft = Qn("image_list"), kr = Qn("a11y_advanced_options"), Bo = Qn("automatic_uploads"), Va = (B) => Qa(B.options.get("images_upload_url")), gs = (B) => $o(B.options.get("images_upload_handler")), br = (B, K) => Math.max(parseInt(B, 10), parseInt(K, 10)), pl = (B) => new Promise((K) => {
|
|
47412
|
-
const
|
|
47413
|
-
|
|
47412
|
+
const se = document.createElement("img"), Ie = (Kn) => {
|
|
47413
|
+
se.onload = se.onerror = null, se.parentNode && se.parentNode.removeChild(se), K(Kn);
|
|
47414
47414
|
};
|
|
47415
|
-
|
|
47416
|
-
const Kn = br(
|
|
47415
|
+
se.onload = () => {
|
|
47416
|
+
const Kn = br(se.width, se.clientWidth), jt = br(se.height, se.clientHeight), $s = {
|
|
47417
47417
|
width: Kn,
|
|
47418
47418
|
height: jt
|
|
47419
47419
|
};
|
|
47420
47420
|
Ie(Promise.resolve($s));
|
|
47421
|
-
},
|
|
47421
|
+
}, se.onerror = () => {
|
|
47422
47422
|
Ie(Promise.reject(`Failed to get image dimensions for: ${B}`));
|
|
47423
47423
|
};
|
|
47424
|
-
const Et =
|
|
47425
|
-
Et.visibility = "hidden", Et.position = "fixed", Et.bottom = Et.left = "0px", Et.width = Et.height = "auto", document.body.appendChild(
|
|
47424
|
+
const Et = se.style;
|
|
47425
|
+
Et.visibility = "hidden", Et.position = "fixed", Et.bottom = Et.left = "0px", Et.width = Et.height = "auto", document.body.appendChild(se), se.src = B;
|
|
47426
47426
|
}), vr = (B) => (B && (B = B.replace(/px$/, "")), B), Js = (B) => (B.length > 0 && /^[0-9]+$/.test(B) && (B += "px"), B), hs = (B) => {
|
|
47427
47427
|
if (B.margin) {
|
|
47428
47428
|
const K = String(B.margin).split(" ");
|
|
@@ -47443,40 +47443,40 @@ Required: ` + m.join(", "));
|
|
|
47443
47443
|
}
|
|
47444
47444
|
return B;
|
|
47445
47445
|
}, Wi = (B, K) => {
|
|
47446
|
-
const
|
|
47447
|
-
Ue(
|
|
47446
|
+
const se = Ft(B);
|
|
47447
|
+
Ue(se) ? fetch(se).then((Ie) => {
|
|
47448
47448
|
Ie.ok && Ie.json().then(K);
|
|
47449
|
-
}) : Rt(
|
|
47450
|
-
}, is = (B, K,
|
|
47449
|
+
}) : Rt(se) ? se(K) : K(se);
|
|
47450
|
+
}, is = (B, K, se) => {
|
|
47451
47451
|
const Ie = () => {
|
|
47452
|
-
|
|
47452
|
+
se.onload = se.onerror = null, B.selection && (B.selection.select(se), B.nodeChanged());
|
|
47453
47453
|
};
|
|
47454
|
-
|
|
47455
|
-
!K.width && !K.height && Lo(B) && B.dom.setAttribs(
|
|
47456
|
-
width: String(
|
|
47457
|
-
height: String(
|
|
47454
|
+
se.onload = () => {
|
|
47455
|
+
!K.width && !K.height && Lo(B) && B.dom.setAttribs(se, {
|
|
47456
|
+
width: String(se.clientWidth),
|
|
47457
|
+
height: String(se.clientHeight)
|
|
47458
47458
|
}), Ie();
|
|
47459
|
-
},
|
|
47460
|
-
}, Zo = (B) => new Promise((K,
|
|
47459
|
+
}, se.onerror = Ie;
|
|
47460
|
+
}, Zo = (B) => new Promise((K, se) => {
|
|
47461
47461
|
const Ie = new FileReader();
|
|
47462
47462
|
Ie.onload = () => {
|
|
47463
47463
|
K(Ie.result);
|
|
47464
47464
|
}, Ie.onerror = () => {
|
|
47465
47465
|
var Et;
|
|
47466
|
-
|
|
47466
|
+
se((Et = Ie.error) === null || Et === void 0 ? void 0 : Et.message);
|
|
47467
47467
|
}, Ie.readAsDataURL(B);
|
|
47468
47468
|
}), bl = (B) => B.nodeName === "IMG" && (B.hasAttribute("data-mce-object") || B.hasAttribute("data-mce-placeholder")), Yn = (B, K) => {
|
|
47469
|
-
const
|
|
47469
|
+
const se = B.options.get;
|
|
47470
47470
|
return z.isDomSafe(K, "img", {
|
|
47471
|
-
allow_html_data_urls:
|
|
47472
|
-
allow_script_urls:
|
|
47473
|
-
allow_svg_data_urls:
|
|
47471
|
+
allow_html_data_urls: se("allow_html_data_urls"),
|
|
47472
|
+
allow_script_urls: se("allow_script_urls"),
|
|
47473
|
+
allow_svg_data_urls: se("allow_svg_data_urls")
|
|
47474
47474
|
});
|
|
47475
47475
|
}, ps = gt.DOM, yr = (B) => B.style.marginLeft && B.style.marginRight && B.style.marginLeft === B.style.marginRight ? vr(B.style.marginLeft) : "", Mc = (B) => B.style.marginTop && B.style.marginBottom && B.style.marginTop === B.style.marginBottom ? vr(B.style.marginTop) : "", ii = (B) => B.style.borderWidth ? vr(B.style.borderWidth) : "", Xo = (B, K) => {
|
|
47476
|
-
var
|
|
47477
|
-
return B.hasAttribute(K) && (
|
|
47478
|
-
}, Zi = (B) => B.parentNode !== null && B.parentNode.nodeName === "FIGURE", ht = (B, K,
|
|
47479
|
-
|
|
47476
|
+
var se;
|
|
47477
|
+
return B.hasAttribute(K) && (se = B.getAttribute(K)) !== null && se !== void 0 ? se : "";
|
|
47478
|
+
}, Zi = (B) => B.parentNode !== null && B.parentNode.nodeName === "FIGURE", ht = (B, K, se) => {
|
|
47479
|
+
se === "" || se === null ? B.removeAttribute(K) : B.setAttribute(K, se);
|
|
47480
47480
|
}, mo = (B) => {
|
|
47481
47481
|
const K = ps.create("figure", { class: "image" });
|
|
47482
47482
|
ps.insertAfter(K, B), K.appendChild(B), K.appendChild(ps.create("figcaption", { contentEditable: "true" }, "Caption")), K.contentEditable = "false";
|
|
@@ -47486,20 +47486,20 @@ Required: ` + m.join(", "));
|
|
|
47486
47486
|
}, Aa = (B) => {
|
|
47487
47487
|
Zi(B) ? Tr(B) : mo(B);
|
|
47488
47488
|
}, Nc = (B, K) => {
|
|
47489
|
-
const
|
|
47489
|
+
const se = B.getAttribute("style"), Ie = K(se !== null ? se : "");
|
|
47490
47490
|
Ie.length > 0 ? (B.setAttribute("style", Ie), B.setAttribute("data-mce-style", Ie)) : B.removeAttribute("style");
|
|
47491
|
-
}, Oa = (B, K) => (
|
|
47492
|
-
const Kn =
|
|
47493
|
-
Kn[Ie] ? (Kn[Ie] = Js(Et), Nc(
|
|
47491
|
+
}, Oa = (B, K) => (se, Ie, Et) => {
|
|
47492
|
+
const Kn = se.style;
|
|
47493
|
+
Kn[Ie] ? (Kn[Ie] = Js(Et), Nc(se, K)) : ht(se, Ie, Et);
|
|
47494
47494
|
}, Jo = (B, K) => B.style[K] ? vr(B.style[K]) : Xo(B, K), ec = (B, K) => {
|
|
47495
|
-
const
|
|
47496
|
-
B.style.marginLeft =
|
|
47495
|
+
const se = Js(K);
|
|
47496
|
+
B.style.marginLeft = se, B.style.marginRight = se;
|
|
47497
47497
|
}, pc = (B, K) => {
|
|
47498
|
-
const
|
|
47499
|
-
B.style.marginTop =
|
|
47498
|
+
const se = Js(K);
|
|
47499
|
+
B.style.marginTop = se, B.style.marginBottom = se;
|
|
47500
47500
|
}, qo = (B, K) => {
|
|
47501
|
-
const
|
|
47502
|
-
B.style.borderWidth =
|
|
47501
|
+
const se = Js(K);
|
|
47502
|
+
B.style.borderWidth = se;
|
|
47503
47503
|
}, fn = (B, K) => {
|
|
47504
47504
|
B.style.borderStyle = K;
|
|
47505
47505
|
}, Er = (B) => {
|
|
@@ -47520,19 +47520,19 @@ Required: ` + m.join(", "));
|
|
|
47520
47520
|
borderStyle: "",
|
|
47521
47521
|
isDecorative: !1
|
|
47522
47522
|
}), Us = (B, K) => {
|
|
47523
|
-
var
|
|
47523
|
+
var se;
|
|
47524
47524
|
const Ie = document.createElement("img");
|
|
47525
|
-
return ht(Ie, "style", K.style), (yr(Ie) || K.hspace !== "") && ec(Ie, K.hspace), (Mc(Ie) || K.vspace !== "") && pc(Ie, K.vspace), (ii(Ie) || K.border !== "") && qo(Ie, K.border), (Er(Ie) || K.borderStyle !== "") && fn(Ie, K.borderStyle), B((
|
|
47525
|
+
return ht(Ie, "style", K.style), (yr(Ie) || K.hspace !== "") && ec(Ie, K.hspace), (Mc(Ie) || K.vspace !== "") && pc(Ie, K.vspace), (ii(Ie) || K.border !== "") && qo(Ie, K.border), (Er(Ie) || K.borderStyle !== "") && fn(Ie, K.borderStyle), B((se = Ie.getAttribute("style")) !== null && se !== void 0 ? se : "");
|
|
47526
47526
|
}, bc = (B, K) => {
|
|
47527
|
-
const
|
|
47527
|
+
const se = document.createElement("img");
|
|
47528
47528
|
if (nl(B, {
|
|
47529
47529
|
...K,
|
|
47530
47530
|
caption: !1
|
|
47531
|
-
},
|
|
47531
|
+
}, se), ca(se, K.alt, K.isDecorative), K.caption) {
|
|
47532
47532
|
const Ie = ps.create("figure", { class: "image" });
|
|
47533
|
-
return Ie.appendChild(
|
|
47533
|
+
return Ie.appendChild(se), Ie.appendChild(ps.create("figcaption", { contentEditable: "true" }, "Caption")), Ie.contentEditable = "false", Ie;
|
|
47534
47534
|
} else
|
|
47535
|
-
return
|
|
47535
|
+
return se;
|
|
47536
47536
|
}, ji = (B, K) => ({
|
|
47537
47537
|
src: Xo(K, "src"),
|
|
47538
47538
|
alt: wr(K),
|
|
@@ -47547,10 +47547,10 @@ Required: ` + m.join(", "));
|
|
|
47547
47547
|
border: ii(K),
|
|
47548
47548
|
borderStyle: Er(K),
|
|
47549
47549
|
isDecorative: ui(K)
|
|
47550
|
-
}), Hr = (B, K,
|
|
47551
|
-
|
|
47552
|
-
}, ca = (B, K,
|
|
47553
|
-
if (
|
|
47550
|
+
}), Hr = (B, K, se, Ie, Et) => {
|
|
47551
|
+
se[Ie] !== K[Ie] && Et(B, Ie, String(se[Ie]));
|
|
47552
|
+
}, ca = (B, K, se) => {
|
|
47553
|
+
if (se) {
|
|
47554
47554
|
ps.setAttrib(B, "role", "presentation");
|
|
47555
47555
|
const Ie = et.fromDom(B);
|
|
47556
47556
|
No(Ie, "alt", "");
|
|
@@ -47564,29 +47564,29 @@ Required: ` + m.join(", "));
|
|
|
47564
47564
|
}
|
|
47565
47565
|
ps.getAttrib(B, "role") === "presentation" && ps.setAttrib(B, "role", "");
|
|
47566
47566
|
}
|
|
47567
|
-
}, Is = (B, K,
|
|
47568
|
-
(
|
|
47569
|
-
}, Ar = (B, K) => (
|
|
47570
|
-
B(
|
|
47571
|
-
}, nl = (B, K,
|
|
47572
|
-
const Ie = ji(B,
|
|
47573
|
-
Hr(
|
|
47567
|
+
}, Is = (B, K, se) => {
|
|
47568
|
+
(se.alt !== K.alt || se.isDecorative !== K.isDecorative) && ca(B, se.alt, se.isDecorative);
|
|
47569
|
+
}, Ar = (B, K) => (se, Ie, Et) => {
|
|
47570
|
+
B(se, Et), Nc(se, K);
|
|
47571
|
+
}, nl = (B, K, se) => {
|
|
47572
|
+
const Ie = ji(B, se);
|
|
47573
|
+
Hr(se, Ie, K, "caption", (Et, Kn, jt) => Aa(Et)), Hr(se, Ie, K, "src", ht), Hr(se, Ie, K, "title", ht), Hr(se, Ie, K, "width", Oa("width", B)), Hr(se, Ie, K, "height", Oa("height", B)), Hr(se, Ie, K, "class", ht), Hr(se, Ie, K, "style", Ar((Et, Kn) => ht(Et, "style", Kn), B)), Hr(se, Ie, K, "hspace", Ar(ec, B)), Hr(se, Ie, K, "vspace", Ar(pc, B)), Hr(se, Ie, K, "border", Ar(qo, B)), Hr(se, Ie, K, "borderStyle", Ar(fn, B)), Is(se, Ie, K);
|
|
47574
47574
|
}, Fl = (B, K) => {
|
|
47575
|
-
const
|
|
47575
|
+
const se = B.dom.styles.parse(K), Ie = hs(se), Et = B.dom.styles.parse(B.dom.styles.serialize(Ie));
|
|
47576
47576
|
return B.dom.styles.serialize(Et);
|
|
47577
47577
|
}, ol = (B) => {
|
|
47578
|
-
const K = B.selection.getNode(),
|
|
47579
|
-
return
|
|
47578
|
+
const K = B.selection.getNode(), se = B.dom.getParent(K, "figure.image");
|
|
47579
|
+
return se ? B.dom.select("img", se)[0] : K && (K.nodeName !== "IMG" || bl(K)) ? null : K;
|
|
47580
47580
|
}, Pc = (B, K) => {
|
|
47581
|
-
var
|
|
47581
|
+
var se;
|
|
47582
47582
|
const Ie = B.dom, Et = wt(B.schema.getTextBlockElements(), (jt, $s) => !B.schema.isValidChild($s, "figure")), Kn = Ie.getParent(K.parentNode, (jt) => ie(Et, jt.nodeName), B.getBody());
|
|
47583
|
-
return Kn && (
|
|
47583
|
+
return Kn && (se = Ie.split(Kn, K)) !== null && se !== void 0 ? se : K;
|
|
47584
47584
|
}, di = (B) => {
|
|
47585
47585
|
const K = ol(B);
|
|
47586
|
-
return K ? ji((
|
|
47586
|
+
return K ? ji((se) => Fl(B, se), K) : mr();
|
|
47587
47587
|
}, _e = (B, K) => {
|
|
47588
|
-
const
|
|
47589
|
-
B.dom.setAttrib(
|
|
47588
|
+
const se = bc((Et) => Fl(B, Et), K);
|
|
47589
|
+
B.dom.setAttrib(se, "data-mce-id", "__mcenew"), B.focus(), B.selection.setContent(se.outerHTML);
|
|
47590
47590
|
const Ie = B.dom.select('*[data-mce-id="__mcenew"]')[0];
|
|
47591
47591
|
if (B.dom.setAttrib(Ie, "data-mce-id", null), Bc(Ie)) {
|
|
47592
47592
|
const Et = Pc(B, Ie);
|
|
@@ -47597,31 +47597,31 @@ Required: ` + m.join(", "));
|
|
|
47597
47597
|
B.dom.setAttrib(K, "src", K.getAttribute("src"));
|
|
47598
47598
|
}, Ic = (B, K) => {
|
|
47599
47599
|
if (K) {
|
|
47600
|
-
const
|
|
47601
|
-
B.dom.remove(
|
|
47600
|
+
const se = B.dom.is(K.parentNode, "figure.image") ? K.parentNode : K;
|
|
47601
|
+
B.dom.remove(se), B.focus(), B.nodeChanged(), B.dom.isEmpty(B.getBody()) && (B.setContent(""), B.selection.setCursorLocation());
|
|
47602
47602
|
}
|
|
47603
47603
|
}, Wu = (B, K) => {
|
|
47604
|
-
const
|
|
47605
|
-
if (
|
|
47606
|
-
if (nl((Ie) => Fl(B, Ie), K,
|
|
47607
|
-
const Ie =
|
|
47608
|
-
Pc(B, Ie), B.selection.select(
|
|
47604
|
+
const se = ol(B);
|
|
47605
|
+
if (se)
|
|
47606
|
+
if (nl((Ie) => Fl(B, Ie), K, se), Gr(B, se), Bc(se.parentNode)) {
|
|
47607
|
+
const Ie = se.parentNode;
|
|
47608
|
+
Pc(B, Ie), B.selection.select(se.parentNode);
|
|
47609
47609
|
} else
|
|
47610
|
-
B.selection.select(
|
|
47610
|
+
B.selection.select(se), is(B, K, se);
|
|
47611
47611
|
}, Gi = (B, K) => {
|
|
47612
|
-
const
|
|
47612
|
+
const se = K.src;
|
|
47613
47613
|
return {
|
|
47614
47614
|
...K,
|
|
47615
|
-
src: Yn(B,
|
|
47615
|
+
src: Yn(B, se) ? se : ""
|
|
47616
47616
|
};
|
|
47617
47617
|
}, Qo = (B, K) => {
|
|
47618
|
-
const
|
|
47619
|
-
if (
|
|
47618
|
+
const se = ol(B);
|
|
47619
|
+
if (se) {
|
|
47620
47620
|
const Et = {
|
|
47621
|
-
...ji((jt) => Fl(B, jt),
|
|
47621
|
+
...ji((jt) => Fl(B, jt), se),
|
|
47622
47622
|
...K
|
|
47623
47623
|
}, Kn = Gi(B, Et);
|
|
47624
|
-
Et.src ? Wu(B, Kn) : Ic(B,
|
|
47624
|
+
Et.src ? Wu(B, Kn) : Ic(B, se);
|
|
47625
47625
|
} else K.src && _e(B, {
|
|
47626
47626
|
...mr(),
|
|
47627
47627
|
...K
|
|
@@ -47629,37 +47629,37 @@ Required: ` + m.join(", "));
|
|
|
47629
47629
|
}, tc = ((B) => (...K) => {
|
|
47630
47630
|
if (K.length === 0)
|
|
47631
47631
|
throw new Error("Can't merge zero objects");
|
|
47632
|
-
const
|
|
47632
|
+
const se = {};
|
|
47633
47633
|
for (let Ie = 0; Ie < K.length; Ie++) {
|
|
47634
47634
|
const Et = K[Ie];
|
|
47635
47635
|
for (const Kn in Et)
|
|
47636
|
-
Fe(Et, Kn) && (
|
|
47636
|
+
Fe(Et, Kn) && (se[Kn] = B(se[Kn], Et[Kn]));
|
|
47637
47637
|
}
|
|
47638
|
-
return
|
|
47638
|
+
return se;
|
|
47639
47639
|
})((B, K) => rn(B) && rn(K) ? tc(B, K) : K);
|
|
47640
47640
|
var qi = tinymce.util.Tools.resolve("tinymce.util.ImageUploader"), bs = tinymce.util.Tools.resolve("tinymce.util.Tools");
|
|
47641
47641
|
const ks = (B) => Ue(B.value) ? B.value : "", za = (B) => Ue(B.text) ? B.text : Ue(B.title) ? B.title : "", Da = (B, K) => {
|
|
47642
|
-
const
|
|
47642
|
+
const se = [];
|
|
47643
47643
|
return bs.each(B, (Ie) => {
|
|
47644
47644
|
const Et = za(Ie);
|
|
47645
47645
|
if (Ie.menu !== void 0) {
|
|
47646
47646
|
const Kn = Da(Ie.menu, K);
|
|
47647
|
-
|
|
47647
|
+
se.push({
|
|
47648
47648
|
text: Et,
|
|
47649
47649
|
items: Kn
|
|
47650
47650
|
});
|
|
47651
47651
|
} else {
|
|
47652
47652
|
const Kn = K(Ie);
|
|
47653
|
-
|
|
47653
|
+
se.push({
|
|
47654
47654
|
text: Et,
|
|
47655
47655
|
value: Kn
|
|
47656
47656
|
});
|
|
47657
47657
|
}
|
|
47658
|
-
}),
|
|
47659
|
-
}, vl = (B = ks) => (K) => K ? St.from(K).map((
|
|
47658
|
+
}), se;
|
|
47659
|
+
}, vl = (B = ks) => (K) => K ? St.from(K).map((se) => Da(se, B)) : St.none(), mi = (B) => vl(ks)(B), yl = (B) => Fe(B, "items"), ko = (B, K) => Xt(B, (se) => yl(se) ? ko(se.items, K) : se.value === K ? St.some(se) : St.none()), la = {
|
|
47660
47660
|
sanitizer: vl,
|
|
47661
47661
|
sanitize: mi,
|
|
47662
|
-
findEntry: (B, K) => B.bind((
|
|
47662
|
+
findEntry: (B, K) => B.bind((se) => ko(se, K))
|
|
47663
47663
|
}, ia = { makeTab: (B) => ({
|
|
47664
47664
|
title: "Advanced",
|
|
47665
47665
|
name: "advanced",
|
|
@@ -47739,7 +47739,7 @@ Required: ` + m.join(", "));
|
|
|
47739
47739
|
]
|
|
47740
47740
|
}]
|
|
47741
47741
|
}) }, Ls = (B) => {
|
|
47742
|
-
const K = la.sanitizer((Ms) => B.convertURL(Ms.value || Ms.url || "", "src")),
|
|
47742
|
+
const K = la.sanitizer((Ms) => B.convertURL(Ms.value || Ms.url || "", "src")), se = new Promise((Ms) => {
|
|
47743
47743
|
Wi(B, (gi) => {
|
|
47744
47744
|
Ms(K(gi).map((Vs) => Jn([
|
|
47745
47745
|
[{
|
|
@@ -47750,7 +47750,7 @@ Required: ` + m.join(", "));
|
|
|
47750
47750
|
])));
|
|
47751
47751
|
});
|
|
47752
47752
|
}), Ie = la.sanitize(Ke(B)), Et = Ui(B), Kn = qe(B), jt = Va(B), $s = gs(B), ct = di(B), ss = Ce(B), Ua = bn(B), Hs = Lo(B), xr = Wo(B), Vl = kr(B), fo = Bo(B), Wa = St.some(Tt(B)).filter((Ms) => Ue(Ms) && Ms.length > 0);
|
|
47753
|
-
return
|
|
47753
|
+
return se.then((Ms) => ({
|
|
47754
47754
|
image: ct,
|
|
47755
47755
|
imageList: Ms,
|
|
47756
47756
|
classList: Ie,
|
|
@@ -47773,7 +47773,7 @@ Required: ` + m.join(", "));
|
|
|
47773
47773
|
filetype: "image",
|
|
47774
47774
|
label: "Source",
|
|
47775
47775
|
picker_text: "Browse files"
|
|
47776
|
-
},
|
|
47776
|
+
}, se = B.imageList.map((Ua) => ({
|
|
47777
47777
|
name: "images",
|
|
47778
47778
|
type: "listbox",
|
|
47779
47779
|
label: "Image list",
|
|
@@ -47817,7 +47817,7 @@ Required: ` + m.join(", "));
|
|
|
47817
47817
|
} : { type: "panel" };
|
|
47818
47818
|
return Jn([
|
|
47819
47819
|
[K],
|
|
47820
|
-
|
|
47820
|
+
se.toArray(),
|
|
47821
47821
|
B.hasAccessibilityOptions && B.hasDescription ? [jt] : [],
|
|
47822
47822
|
B.hasDescription ? [Ie] : [],
|
|
47823
47823
|
B.hasImageTitle ? [Et] : [],
|
|
@@ -47883,53 +47883,53 @@ Required: ` + m.join(", "));
|
|
|
47883
47883
|
border: B.border,
|
|
47884
47884
|
borderStyle: B.borderstyle,
|
|
47885
47885
|
isDecorative: B.isDecorative
|
|
47886
|
-
}), Lc = (B, K) => /^(?:[a-zA-Z]+:)?\/\//.test(K) ? St.none() : B.prependURL.bind((
|
|
47887
|
-
const
|
|
47888
|
-
Lc(B,
|
|
47886
|
+
}), Lc = (B, K) => /^(?:[a-zA-Z]+:)?\/\//.test(K) ? St.none() : B.prependURL.bind((se) => K.substring(0, se.length) !== se ? St.some(se + K) : St.none()), Jr = (B, K) => {
|
|
47887
|
+
const se = K.getData();
|
|
47888
|
+
Lc(B, se.src.value).each((Ie) => {
|
|
47889
47889
|
K.setData({
|
|
47890
47890
|
src: {
|
|
47891
47891
|
value: Ie,
|
|
47892
|
-
meta:
|
|
47892
|
+
meta: se.src.meta
|
|
47893
47893
|
}
|
|
47894
47894
|
});
|
|
47895
47895
|
});
|
|
47896
|
-
}, Fc = (B, K,
|
|
47897
|
-
B.hasDescription && Ue(
|
|
47896
|
+
}, Fc = (B, K, se) => {
|
|
47897
|
+
B.hasDescription && Ue(se.alt) && (K.alt = se.alt), B.hasAccessibilityOptions && (K.isDecorative = se.isDecorative || K.isDecorative || !1), B.hasImageTitle && Ue(se.title) && (K.title = se.title), B.hasDimensions && (Ue(se.width) && (K.dimensions.width = se.width), Ue(se.height) && (K.dimensions.height = se.height)), Ue(se.class) && la.findEntry(B.classList, se.class).each((Ie) => {
|
|
47898
47898
|
K.classes = Ie.value;
|
|
47899
|
-
}), B.hasImageCaption && zo(
|
|
47899
|
+
}), B.hasImageCaption && zo(se.caption) && (K.caption = se.caption), B.hasAdvTab && (Ue(se.style) && (K.style = se.style), Ue(se.vspace) && (K.vspace = se.vspace), Ue(se.border) && (K.border = se.border), Ue(se.hspace) && (K.hspace = se.hspace), Ue(se.borderstyle) && (K.borderstyle = se.borderstyle));
|
|
47900
47900
|
}, Hc = (B, K) => {
|
|
47901
|
-
const
|
|
47901
|
+
const se = K.getData(), Ie = se.src.meta;
|
|
47902
47902
|
if (Ie !== void 0) {
|
|
47903
|
-
const Et = tc({},
|
|
47903
|
+
const Et = tc({}, se);
|
|
47904
47904
|
Fc(B, Et, Ie), K.setData(Et);
|
|
47905
47905
|
}
|
|
47906
|
-
}, Zu = (B, K,
|
|
47906
|
+
}, Zu = (B, K, se, Ie) => {
|
|
47907
47907
|
const Et = Ie.getData(), Kn = Et.src.value, jt = Et.src.meta || {};
|
|
47908
47908
|
!jt.width && !jt.height && K.hasDimensions && (Qa(Kn) ? B.imageSize(Kn).then(($s) => {
|
|
47909
|
-
|
|
47909
|
+
se.open && Ie.setData({ dimensions: $s });
|
|
47910
47910
|
}).catch(($s) => console.error($s)) : Ie.setData({
|
|
47911
47911
|
dimensions: {
|
|
47912
47912
|
width: "",
|
|
47913
47913
|
height: ""
|
|
47914
47914
|
}
|
|
47915
47915
|
}));
|
|
47916
|
-
}, yc = (B, K,
|
|
47917
|
-
const Ie =
|
|
47918
|
-
K.prevImage = Et,
|
|
47919
|
-
}, Yi = (B, K,
|
|
47920
|
-
Jr(K, Ie), Hc(K, Ie), Zu(B, K,
|
|
47921
|
-
}, $a = (B, K,
|
|
47916
|
+
}, yc = (B, K, se) => {
|
|
47917
|
+
const Ie = se.getData(), Et = la.findEntry(B.imageList, Ie.src.value);
|
|
47918
|
+
K.prevImage = Et, se.setData({ images: Et.map((Kn) => Kn.value).getOr("") });
|
|
47919
|
+
}, Yi = (B, K, se, Ie) => {
|
|
47920
|
+
Jr(K, Ie), Hc(K, Ie), Zu(B, K, se, Ie), yc(K, se, Ie);
|
|
47921
|
+
}, $a = (B, K, se, Ie) => {
|
|
47922
47922
|
const Et = Ie.getData(), Kn = la.findEntry(K.imageList, Et.images);
|
|
47923
47923
|
Kn.each((jt) => {
|
|
47924
|
-
Et.alt === "" ||
|
|
47924
|
+
Et.alt === "" || se.prevImage.map((ct) => ct.text === Et.alt).getOr(!1) ? jt.value === "" ? Ie.setData({
|
|
47925
47925
|
src: jt,
|
|
47926
|
-
alt:
|
|
47926
|
+
alt: se.prevAlt
|
|
47927
47927
|
}) : Ie.setData({
|
|
47928
47928
|
src: jt,
|
|
47929
47929
|
alt: jt.text
|
|
47930
47930
|
}) : Ie.setData({ src: jt });
|
|
47931
|
-
}),
|
|
47932
|
-
}, wl = (B, K,
|
|
47931
|
+
}), se.prevImage = Kn, Yi(B, K, se, Ie);
|
|
47932
|
+
}, wl = (B, K, se, Ie) => {
|
|
47933
47933
|
const Et = Ie.getData();
|
|
47934
47934
|
Ie.block("Uploading image"), A(Et.fileinput).fold(() => {
|
|
47935
47935
|
Ie.unblock();
|
|
@@ -47942,7 +47942,7 @@ Required: ` + m.join(", "));
|
|
|
47942
47942
|
value: ss,
|
|
47943
47943
|
meta: {}
|
|
47944
47944
|
}
|
|
47945
|
-
}), Ie.showTab("general"), Yi(B, K,
|
|
47945
|
+
}), Ie.showTab("general"), Yi(B, K, se, Ie);
|
|
47946
47946
|
};
|
|
47947
47947
|
Zo(Kn).then((ss) => {
|
|
47948
47948
|
const Ua = B.createBlobCache(Kn, jt, ss);
|
|
@@ -47953,8 +47953,8 @@ Required: ` + m.join(", "));
|
|
|
47953
47953
|
}) : (B.addToBlobCache(Ua), ct(Ua.blobUri()), Ie.unblock());
|
|
47954
47954
|
});
|
|
47955
47955
|
});
|
|
47956
|
-
}, fi = (B, K,
|
|
47957
|
-
Et.name === "src" ? Yi(B, K,
|
|
47956
|
+
}, fi = (B, K, se) => (Ie, Et) => {
|
|
47957
|
+
Et.name === "src" ? Yi(B, K, se, Ie) : Et.name === "images" ? $a(B, K, se, Ie) : Et.name === "alt" ? se.prevAlt = Ie.getData().alt : Et.name === "fileinput" ? wl(B, K, se, Ie) : Et.name === "isDecorative" && Ie.setEnabled("alt", !Ie.getData().isDecorative);
|
|
47958
47958
|
}, hu = (B) => () => {
|
|
47959
47959
|
B.open = !1;
|
|
47960
47960
|
}, ju = (B) => B.hasAdvTab || B.hasUploadUrl || B.hasUploadHandler ? {
|
|
@@ -47967,23 +47967,23 @@ Required: ` + m.join(", "));
|
|
|
47967
47967
|
} : {
|
|
47968
47968
|
type: "panel",
|
|
47969
47969
|
items: Ki.makeItems(B)
|
|
47970
|
-
}, j = (B, K,
|
|
47970
|
+
}, j = (B, K, se) => (Ie) => {
|
|
47971
47971
|
const Et = tc(nr(K.image), Ie.getData()), Kn = {
|
|
47972
47972
|
...Et,
|
|
47973
|
-
style: Us(
|
|
47973
|
+
style: Us(se.normalizeCss, vc(Et, !1))
|
|
47974
47974
|
};
|
|
47975
47975
|
B.execCommand("mceUpdateImage", !1, vc(Kn, K.hasAccessibilityOptions)), B.editorUpload.uploadImagesAuto(), Ie.close();
|
|
47976
|
-
}, de = (B) => (K) => Yn(B, K) ? pl(B.documentBaseURI.toAbsolute(K)).then((
|
|
47977
|
-
width: String(
|
|
47978
|
-
height: String(
|
|
47976
|
+
}, de = (B) => (K) => Yn(B, K) ? pl(B.documentBaseURI.toAbsolute(K)).then((se) => ({
|
|
47977
|
+
width: String(se.width),
|
|
47978
|
+
height: String(se.height)
|
|
47979
47979
|
})) : Promise.resolve({
|
|
47980
47980
|
width: "",
|
|
47981
47981
|
height: ""
|
|
47982
|
-
}), Se = (B) => (K,
|
|
47982
|
+
}), Se = (B) => (K, se, Ie) => {
|
|
47983
47983
|
var Et;
|
|
47984
47984
|
return B.editorUpload.blobCache.create({
|
|
47985
47985
|
blob: K,
|
|
47986
|
-
blobUri:
|
|
47986
|
+
blobUri: se,
|
|
47987
47987
|
name: (Et = K.name) === null || Et === void 0 ? void 0 : Et.replace(/\.[^\.]+$/, ""),
|
|
47988
47988
|
filename: K.name,
|
|
47989
47989
|
base64: Ie.split(",")[1]
|
|
@@ -47992,9 +47992,9 @@ Required: ` + m.join(", "));
|
|
|
47992
47992
|
B.editorUpload.blobCache.add(K);
|
|
47993
47993
|
}, dt = (B) => (K) => {
|
|
47994
47994
|
B.windowManager.alert(K);
|
|
47995
|
-
}, ln = (B) => (K) => Fl(B, K), Fo = (B) => (K) => B.dom.parseStyle(K), os = (B) => (K,
|
|
47995
|
+
}, ln = (B) => (K) => Fl(B, K), Fo = (B) => (K) => B.dom.parseStyle(K), os = (B) => (K, se) => B.dom.serializeStyle(K, se), Ho = (B) => (K) => qi(B).upload([K], !1).then((se) => {
|
|
47996
47996
|
var Ie;
|
|
47997
|
-
return
|
|
47997
|
+
return se.length === 0 ? Promise.reject("Failed to upload image") : se[0].status === !1 ? Promise.reject((Ie = se[0].error) === null || Ie === void 0 ? void 0 : Ie.message) : se[0];
|
|
47998
47998
|
}), vs = (B) => {
|
|
47999
47999
|
const K = {
|
|
48000
48000
|
imageSize: de(B),
|
|
@@ -48034,19 +48034,19 @@ Required: ` + m.join(", "));
|
|
|
48034
48034
|
}).then(B.windowManager.open);
|
|
48035
48035
|
} };
|
|
48036
48036
|
}, ao = (B) => {
|
|
48037
|
-
B.addCommand("mceImage", vs(B).open), B.addCommand("mceUpdateImage", (K,
|
|
48038
|
-
B.undoManager.transact(() => Qo(B,
|
|
48037
|
+
B.addCommand("mceImage", vs(B).open), B.addCommand("mceUpdateImage", (K, se) => {
|
|
48038
|
+
B.undoManager.transact(() => Qo(B, se));
|
|
48039
48039
|
});
|
|
48040
48040
|
}, Fs = (B) => {
|
|
48041
48041
|
const K = B.attr("class");
|
|
48042
48042
|
return $o(K) && /\bimage\b/.test(K);
|
|
48043
48043
|
}, Ma = (B) => (K) => {
|
|
48044
|
-
let
|
|
48044
|
+
let se = K.length;
|
|
48045
48045
|
const Ie = (Et) => {
|
|
48046
48046
|
Et.attr("contenteditable", B ? "true" : null);
|
|
48047
48047
|
};
|
|
48048
|
-
for (;
|
|
48049
|
-
const Et = K[
|
|
48048
|
+
for (; se--; ) {
|
|
48049
|
+
const Et = K[se];
|
|
48050
48050
|
Fs(Et) && (Et.attr("contenteditable", B ? "false" : null), bs.each(Et.getAll("figcaption"), Ie));
|
|
48051
48051
|
}
|
|
48052
48052
|
}, pu = (B) => {
|
|
@@ -48054,11 +48054,11 @@ Required: ` + m.join(", "));
|
|
|
48054
48054
|
B.parser.addNodeFilter("figure", Ma(!0)), B.serializer.addNodeFilter("figure", Ma(!1));
|
|
48055
48055
|
});
|
|
48056
48056
|
}, Mt = (B) => (K) => {
|
|
48057
|
-
const
|
|
48057
|
+
const se = () => {
|
|
48058
48058
|
K.setEnabled(B.selection.isEditable());
|
|
48059
48059
|
};
|
|
48060
|
-
return B.on("NodeChange",
|
|
48061
|
-
B.off("NodeChange",
|
|
48060
|
+
return B.on("NodeChange", se), se(), () => {
|
|
48061
|
+
B.off("NodeChange", se);
|
|
48062
48062
|
};
|
|
48063
48063
|
}, Gu = (B) => {
|
|
48064
48064
|
B.ui.registry.addToggleButton("image", {
|
|
@@ -48067,9 +48067,9 @@ Required: ` + m.join(", "));
|
|
|
48067
48067
|
onAction: vs(B).open,
|
|
48068
48068
|
onSetup: (K) => {
|
|
48069
48069
|
K.setActive($o(ol(B)));
|
|
48070
|
-
const
|
|
48070
|
+
const se = B.selection.selectorChangedWithUnbind("img:not([data-mce-object]):not([data-mce-placeholder]),figure.image", K.setActive).unbind, Ie = Mt(B)(K);
|
|
48071
48071
|
return () => {
|
|
48072
|
-
|
|
48072
|
+
se(), Ie();
|
|
48073
48073
|
};
|
|
48074
48074
|
}
|
|
48075
48075
|
}), B.ui.registry.addMenuItem("image", {
|
|
@@ -48094,7 +48094,7 @@ Required: ` + m.join(", "));
|
|
|
48094
48094
|
}, ce = (x) => {
|
|
48095
48095
|
const T = typeof x;
|
|
48096
48096
|
return x === null ? "null" : T === "object" && Array.isArray(x) ? "array" : T === "object" && ve(x, String, (H, q) => q.isPrototypeOf(H)) ? "string" : T;
|
|
48097
|
-
}, Ne = (x) => (T) => ce(T) === x, xe = (x) => (T) => typeof T === x,
|
|
48097
|
+
}, Ne = (x) => (T) => ce(T) === x, xe = (x) => (T) => typeof T === x, oe = (x) => (T) => x === T, Re = Ne("string"), Q = Ne("array"), Ue = xe("boolean"), Dt = oe(void 0), rn = (x) => x == null, Bn = (x) => !rn(x), zn = xe("function"), zo = xe("number"), ir = () => {
|
|
48098
48098
|
}, $o = (x, T) => (H) => x(T(H)), Rt = (x) => () => x, ur = (x) => x, dn = (x, T) => x === T;
|
|
48099
48099
|
function me(x, ...T) {
|
|
48100
48100
|
return (...H) => {
|
|
@@ -48474,7 +48474,7 @@ Required: ` + m.join(", "));
|
|
|
48474
48474
|
}, K = (x, T) => B([
|
|
48475
48475
|
"td",
|
|
48476
48476
|
"th"
|
|
48477
|
-
], x, T),
|
|
48477
|
+
], x, T), se = (x) => Fo(x, "th,td"), Ie = (x) => ps(x, "colgroup") ? yl(x, "col") : Ce(jt(x), (T) => yl(T, "col")), Et = (x, T) => Ic(x, "table", T), Kn = (x) => Fo(x, "tr"), jt = (x) => Et(x).fold(Rt([]), (T) => yl(T, "colgroup")), $s = (x, T) => gt(x, (H) => {
|
|
48478
48478
|
if (ht(H) === "colgroup") {
|
|
48479
48479
|
const q = gt(Ie(H), (he) => {
|
|
48480
48480
|
const Ze = ln(he, "span", 1);
|
|
@@ -48482,7 +48482,7 @@ Required: ` + m.join(", "));
|
|
|
48482
48482
|
});
|
|
48483
48483
|
return pu(H, q, "colgroup");
|
|
48484
48484
|
} else {
|
|
48485
|
-
const q = gt(
|
|
48485
|
+
const q = gt(se(H), (he) => {
|
|
48486
48486
|
const Ze = ln(he, "rowspan", 1), mt = ln(he, "colspan", 1);
|
|
48487
48487
|
return Fs(he, Ze, mt);
|
|
48488
48488
|
});
|
|
@@ -50291,7 +50291,7 @@ Required: ` + T.join(", "));
|
|
|
50291
50291
|
Q.addCommand("mceCodeEditor", () => {
|
|
50292
50292
|
Ne(Q);
|
|
50293
50293
|
});
|
|
50294
|
-
},
|
|
50294
|
+
}, oe = (Q) => {
|
|
50295
50295
|
const Ue = () => Q.execCommand("mceCodeEditor");
|
|
50296
50296
|
Q.ui.registry.addButton("code", {
|
|
50297
50297
|
icon: "sourcecode",
|
|
@@ -50304,7 +50304,7 @@ Required: ` + T.join(", "));
|
|
|
50304
50304
|
});
|
|
50305
50305
|
};
|
|
50306
50306
|
var Re = () => {
|
|
50307
|
-
P.add("code", (Q) => (xe(Q),
|
|
50307
|
+
P.add("code", (Q) => (xe(Q), oe(Q), {}));
|
|
50308
50308
|
};
|
|
50309
50309
|
Re();
|
|
50310
50310
|
})();
|
|
@@ -50572,7 +50572,7 @@ const sQ = { class: "font-bold ptext-lg dark:text-white" }, rQ = ["id"], aQ = /*
|
|
|
50572
50572
|
},
|
|
50573
50573
|
emits: ["update:modelValue", "keydown"],
|
|
50574
50574
|
setup(P, { expose: ve, emit: ce }) {
|
|
50575
|
-
const Ne = P, xe = ce,
|
|
50575
|
+
const Ne = P, xe = ce, oe = _s(null);
|
|
50576
50576
|
let Re = null;
|
|
50577
50577
|
b1(async () => {
|
|
50578
50578
|
await Oj(), Re && (Re.destroy(), Re = null), oQ.init({
|
|
@@ -50597,7 +50597,7 @@ const sQ = { class: "font-bold ptext-lg dark:text-white" }, rQ = ["id"], aQ = /*
|
|
|
50597
50597
|
});
|
|
50598
50598
|
}
|
|
50599
50599
|
});
|
|
50600
|
-
}),
|
|
50600
|
+
}), Rq(() => {
|
|
50601
50601
|
Re && (Re.destroy(), Re = null);
|
|
50602
50602
|
}), ST(() => Ne.modelValue, (Dt) => {
|
|
50603
50603
|
Re && Re.getContent() !== Dt && Re.setContent(Dt);
|
|
@@ -50610,7 +50610,7 @@ const sQ = { class: "font-bold ptext-lg dark:text-white" }, rQ = ["id"], aQ = /*
|
|
|
50610
50610
|
xe("update:modelValue", Dt);
|
|
50611
50611
|
}
|
|
50612
50612
|
});
|
|
50613
|
-
return ve({ focus: () =>
|
|
50613
|
+
return ve({ focus: () => oe.value.focus() }), (Dt, rn) => (ke(), Ae(Go, null, [
|
|
50614
50614
|
P.show ? (ke(), Ae("div", {
|
|
50615
50615
|
key: 0,
|
|
50616
50616
|
class: Cn(P.field_name)
|
|
@@ -50645,7 +50645,7 @@ const sQ = { class: "font-bold ptext-lg dark:text-white" }, rQ = ["id"], aQ = /*
|
|
|
50645
50645
|
"onUpdate:modelValue": rn[0] || (rn[0] = (Bn) => Ue.value = Bn),
|
|
50646
50646
|
onKeydown: rn[1] || (rn[1] = (Bn) => Dt.$emit("keydown", Bn)),
|
|
50647
50647
|
ref_key: "input",
|
|
50648
|
-
ref:
|
|
50648
|
+
ref: oe,
|
|
50649
50649
|
rows: "4"
|
|
50650
50650
|
}, null, 42, lQ), [
|
|
50651
50651
|
[Oh, Ue.value]
|
|
@@ -50707,9 +50707,9 @@ const sQ = { class: "font-bold ptext-lg dark:text-white" }, rQ = ["id"], aQ = /*
|
|
|
50707
50707
|
return 0;
|
|
50708
50708
|
if (this.limit === 0)
|
|
50709
50709
|
return this.lastPage;
|
|
50710
|
-
for (var P = this.currentPage, ve = this.lastPage, ce = this.limit, Ne = P - ce, xe = P + ce + 1,
|
|
50711
|
-
(Ue === 1 || Ue === ve || Ue >= Ne && Ue < xe) &&
|
|
50712
|
-
return
|
|
50710
|
+
for (var P = this.currentPage, ve = this.lastPage, ce = this.limit, Ne = P - ce, xe = P + ce + 1, oe = [], Re = [], Q, Ue = 1; Ue <= ve; Ue++)
|
|
50711
|
+
(Ue === 1 || Ue === ve || Ue >= Ne && Ue < xe) && oe.push(Ue);
|
|
50712
|
+
return oe.forEach(function(Dt) {
|
|
50713
50713
|
Q && (Dt - Q === 2 ? Re.push(Q + 1) : Dt - Q !== 1 && Re.push("...")), Re.push(Dt), Q = Dt;
|
|
50714
50714
|
}), Re;
|
|
50715
50715
|
}
|
|
@@ -50833,12 +50833,12 @@ const sQ = { class: "font-bold ptext-lg dark:text-white" }, rQ = ["id"], aQ = /*
|
|
|
50833
50833
|
d: "m1 9 4-4-4-4"
|
|
50834
50834
|
})
|
|
50835
50835
|
], -1);
|
|
50836
|
-
function kQ(P, ve, ce, Ne, xe,
|
|
50836
|
+
function kQ(P, ve, ce, Ne, xe, oe) {
|
|
50837
50837
|
const Re = Zx("RenderlessPagination");
|
|
50838
50838
|
return ke(), jx(Re, {
|
|
50839
50839
|
data: ce.data,
|
|
50840
50840
|
limit: ce.limit,
|
|
50841
|
-
onPaginationChangePage:
|
|
50841
|
+
onPaginationChangePage: oe.onPaginationChangePage
|
|
50842
50842
|
}, {
|
|
50843
50843
|
default: z8((Q) => [
|
|
50844
50844
|
V("div", fQ, [
|
|
@@ -50909,8 +50909,8 @@ function kQ(P, ve, ce, Ne, xe, se) {
|
|
|
50909
50909
|
_: 3
|
|
50910
50910
|
}, 8, ["data", "limit", "onPaginationChangePage"]);
|
|
50911
50911
|
}
|
|
50912
|
-
const
|
|
50913
|
-
components: { TailwindPagination:
|
|
50912
|
+
const eq = /* @__PURE__ */ Ta(mQ, [["render", kQ]]), TQ = {
|
|
50913
|
+
components: { TailwindPagination: eq },
|
|
50914
50914
|
props: {
|
|
50915
50915
|
data: Array,
|
|
50916
50916
|
columns: Array,
|
|
@@ -51061,7 +51061,7 @@ const tq = /* @__PURE__ */ Ta(mQ, [["render", kQ]]), TQ = {
|
|
|
51061
51061
|
], -1), jQ = [
|
|
51062
51062
|
ZQ
|
|
51063
51063
|
], GQ = ["data-label"], qQ = { class: "overflow-auto max-h-40" }, KQ = { 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" };
|
|
51064
|
-
function YQ(P, ve, ce, Ne, xe,
|
|
51064
|
+
function YQ(P, ve, ce, Ne, xe, oe) {
|
|
51065
51065
|
const Re = Zx("dropdown"), Q = Zx("TailwindPagination");
|
|
51066
51066
|
return ke(), Ae("div", EQ, [
|
|
51067
51067
|
V("div", AQ, [
|
|
@@ -51089,7 +51089,7 @@ function YQ(P, ve, ce, Ne, xe, se) {
|
|
|
51089
51089
|
Il(V("input", {
|
|
51090
51090
|
type: "text",
|
|
51091
51091
|
"onUpdate:modelValue": ve[1] || (ve[1] = (Ue) => xe.search = Ue),
|
|
51092
|
-
onInput: ve[2] || (ve[2] = (Ue) =>
|
|
51092
|
+
onInput: ve[2] || (ve[2] = (Ue) => oe.handleSearch()),
|
|
51093
51093
|
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",
|
|
51094
51094
|
placeholder: "Search ..."
|
|
51095
51095
|
}, null, 544), [
|
|
@@ -51103,7 +51103,7 @@ function YQ(P, ve, ce, Ne, xe, se) {
|
|
|
51103
51103
|
V("tr", null, [
|
|
51104
51104
|
(ke(!0), Ae(Go, null, aa(ce.columns, (Ue, Dt) => (ke(), Ae("th", {
|
|
51105
51105
|
key: Dt,
|
|
51106
|
-
onClick: (rn) =>
|
|
51106
|
+
onClick: (rn) => oe.updateSortColumn(Ue.field_name, Ue.sortable),
|
|
51107
51107
|
class: "w-full px-4 py-2 lg:w-2/12"
|
|
51108
51108
|
}, [
|
|
51109
51109
|
ls(It(Ue.field_label) + " ", 1),
|
|
@@ -51132,15 +51132,15 @@ function YQ(P, ve, ce, Ne, xe, se) {
|
|
|
51132
51132
|
}])
|
|
51133
51133
|
}, [
|
|
51134
51134
|
V("div", qQ, [
|
|
51135
|
-
rn.tdComp ? (ke(), jx(V8(
|
|
51135
|
+
rn.tdComp ? (ke(), jx(V8(oe.forDynCompIs(rn.tdComp)), {
|
|
51136
51136
|
key: 0,
|
|
51137
51137
|
row: Ue,
|
|
51138
51138
|
field: rn.field_name,
|
|
51139
51139
|
xprops: ce.xprops,
|
|
51140
51140
|
tdProps: rn.tdProps,
|
|
51141
|
-
onDeleteAction: ve[3] || (ve[3] = (zn) =>
|
|
51142
|
-
onEditAction: (zn) =>
|
|
51143
|
-
onGeneralAction: (zn) =>
|
|
51141
|
+
onDeleteAction: ve[3] || (ve[3] = (zn) => oe.GetItemLists()),
|
|
51142
|
+
onEditAction: (zn) => oe.editAction(Ue),
|
|
51143
|
+
onGeneralAction: (zn) => oe.generalAction(Ue)
|
|
51144
51144
|
}, null, 40, ["row", "field", "xprops", "tdProps", "onEditAction", "onGeneralAction"])) : (ke(), Ae(Go, { key: 1 }, [
|
|
51145
51145
|
ls(It(Ue[rn.field_name]), 1)
|
|
51146
51146
|
], 64))
|
|
@@ -51157,13 +51157,13 @@ function YQ(P, ve, ce, Ne, xe, se) {
|
|
|
51157
51157
|
limit: xe.limit,
|
|
51158
51158
|
size: xe.size,
|
|
51159
51159
|
align: xe.align,
|
|
51160
|
-
onPaginationChangePage:
|
|
51160
|
+
onPaginationChangePage: oe.GetItemLists
|
|
51161
51161
|
}, null, 8, ["data", "limit", "size", "align", "onPaginationChangePage"])
|
|
51162
51162
|
])
|
|
51163
51163
|
]);
|
|
51164
51164
|
}
|
|
51165
51165
|
const lre = /* @__PURE__ */ Ta(TQ, [["render", YQ]]), XQ = {
|
|
51166
|
-
components: { TailwindPagination:
|
|
51166
|
+
components: { TailwindPagination: eq },
|
|
51167
51167
|
props: {
|
|
51168
51168
|
data: Array,
|
|
51169
51169
|
columns: Array,
|
|
@@ -51323,7 +51323,7 @@ const lre = /* @__PURE__ */ Ta(TQ, [["render", YQ]]), XQ = {
|
|
|
51323
51323
|
], -1), bee = [
|
|
51324
51324
|
pee
|
|
51325
51325
|
], vee = { 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" }, yee = ["colspan"], wee = ["data-label"], xee = { class: "overflow-auto max-h-40" }, Cee = { 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" };
|
|
51326
|
-
function See(P, ve, ce, Ne, xe,
|
|
51326
|
+
function See(P, ve, ce, Ne, xe, oe) {
|
|
51327
51327
|
const Re = Zx("dropdown"), Q = Zx("TailwindPagination");
|
|
51328
51328
|
return ke(), Ae("div", JQ, [
|
|
51329
51329
|
V("div", QQ, [
|
|
@@ -51351,7 +51351,7 @@ function See(P, ve, ce, Ne, xe, se) {
|
|
|
51351
51351
|
Il(V("input", {
|
|
51352
51352
|
type: "text",
|
|
51353
51353
|
"onUpdate:modelValue": ve[1] || (ve[1] = (Ue) => xe.search = Ue),
|
|
51354
|
-
onInput: ve[2] || (ve[2] = (Ue) =>
|
|
51354
|
+
onInput: ve[2] || (ve[2] = (Ue) => oe.handleSearch()),
|
|
51355
51355
|
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",
|
|
51356
51356
|
placeholder: "Search ..."
|
|
51357
51357
|
}, null, 544), [
|
|
@@ -51365,7 +51365,7 @@ function See(P, ve, ce, Ne, xe, se) {
|
|
|
51365
51365
|
V("tr", null, [
|
|
51366
51366
|
(ke(!0), Ae(Go, null, aa(ce.columns, (Ue, Dt) => (ke(), Ae("th", {
|
|
51367
51367
|
key: Dt,
|
|
51368
|
-
onClick: (rn) =>
|
|
51368
|
+
onClick: (rn) => oe.updateSortColumn(Ue.field_name, Ue.sortable),
|
|
51369
51369
|
class: "w-full px-4 py-2 lg:w-2/12"
|
|
51370
51370
|
}, [
|
|
51371
51371
|
ls(It(Ue.field_label) + " ", 1),
|
|
@@ -51381,7 +51381,7 @@ function See(P, ve, ce, Ne, xe, se) {
|
|
|
51381
51381
|
colspan: ce.columns.length
|
|
51382
51382
|
}, bee, 8, hee)
|
|
51383
51383
|
])) : Bt("", !0),
|
|
51384
|
-
xe.isLoading ? Bt("", !0) : (ke(!0), Ae(Go, { key: 1 }, aa(
|
|
51384
|
+
xe.isLoading ? Bt("", !0) : (ke(!0), Ae(Go, { key: 1 }, aa(oe.groupedItems, (Ue, Dt) => (ke(), Ae(Go, null, [
|
|
51385
51385
|
V("tr", vee, [
|
|
51386
51386
|
V("td", {
|
|
51387
51387
|
colspan: ce.columns.length,
|
|
@@ -51398,14 +51398,14 @@ function See(P, ve, ce, Ne, xe, se) {
|
|
|
51398
51398
|
class: "text-pretty before:content-[attr(data-label)] before:font-bold lg:before:content-none flex md:flex-row flex-col justify-between gap-2 lg:table-cell py-4 px-5 lg:py-3 lg:px-4 border dark:border-gray-700"
|
|
51399
51399
|
}, [
|
|
51400
51400
|
V("div", xee, [
|
|
51401
|
-
zn.tdComp ? (ke(), jx(V8(
|
|
51401
|
+
zn.tdComp ? (ke(), jx(V8(oe.forDynCompIs(zn.tdComp)), {
|
|
51402
51402
|
key: 0,
|
|
51403
51403
|
row: rn,
|
|
51404
51404
|
field: zn.field_name,
|
|
51405
51405
|
xprops: ce.xprops,
|
|
51406
51406
|
tdProps: zn.tdProps,
|
|
51407
|
-
onDeleteAction: ve[3] || (ve[3] = (ir) =>
|
|
51408
|
-
onEditAction: (ir) =>
|
|
51407
|
+
onDeleteAction: ve[3] || (ve[3] = (ir) => oe.GetItemLists()),
|
|
51408
|
+
onEditAction: (ir) => oe.editAction(rn)
|
|
51409
51409
|
}, null, 40, ["row", "field", "xprops", "tdProps", "onEditAction"])) : (ke(), Ae(Go, { key: 1 }, [
|
|
51410
51410
|
ls(It(rn[zn.field_name]), 1)
|
|
51411
51411
|
], 64))
|
|
@@ -51423,7 +51423,7 @@ function See(P, ve, ce, Ne, xe, se) {
|
|
|
51423
51423
|
limit: xe.limit,
|
|
51424
51424
|
size: xe.size,
|
|
51425
51425
|
align: xe.align,
|
|
51426
|
-
onPaginationChangePage:
|
|
51426
|
+
onPaginationChangePage: oe.GetItemLists
|
|
51427
51427
|
}, null, 8, ["data", "limit", "size", "align", "onPaginationChangePage"])
|
|
51428
51428
|
])
|
|
51429
51429
|
]);
|
|
@@ -51572,7 +51572,7 @@ const ire = /* @__PURE__ */ Ta(XQ, [["render", See]]), _ee = {
|
|
|
51572
51572
|
cte,
|
|
51573
51573
|
lte
|
|
51574
51574
|
];
|
|
51575
|
-
function ute(P, ve, ce, Ne, xe,
|
|
51575
|
+
function ute(P, ve, ce, Ne, xe, oe) {
|
|
51576
51576
|
const Re = Zx("dropdown");
|
|
51577
51577
|
return ke(), Ae("div", kee, [
|
|
51578
51578
|
V("div", Tee, [
|
|
@@ -51613,7 +51613,7 @@ function ute(P, ve, ce, Ne, xe, se) {
|
|
|
51613
51613
|
V("tr", null, [
|
|
51614
51614
|
(ke(!0), Ae(Go, null, aa(ce.columns, (Q, Ue) => (ke(), Ae("th", {
|
|
51615
51615
|
key: Ue,
|
|
51616
|
-
onClick: Uu((Dt) =>
|
|
51616
|
+
onClick: Uu((Dt) => oe.sort(Q), ["prevent"]),
|
|
51617
51617
|
class: "w-full px-4 py-2 lg:w-2/12 capitalize"
|
|
51618
51618
|
}, [
|
|
51619
51619
|
ls(It(Q) + " ", 1),
|
|
@@ -51624,7 +51624,7 @@ function ute(P, ve, ce, Ne, xe, se) {
|
|
|
51624
51624
|
])
|
|
51625
51625
|
]),
|
|
51626
51626
|
V("tbody", null, [
|
|
51627
|
-
(ke(!0), Ae(Go, null, aa(
|
|
51627
|
+
(ke(!0), Ae(Go, null, aa(oe.paginatedData, (Q, Ue) => (ke(), Ae("tr", {
|
|
51628
51628
|
key: Ue,
|
|
51629
51629
|
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"
|
|
51630
51630
|
}, [
|
|
@@ -51642,18 +51642,18 @@ function ute(P, ve, ce, Ne, xe, se) {
|
|
|
51642
51642
|
])
|
|
51643
51643
|
])
|
|
51644
51644
|
]),
|
|
51645
|
-
|
|
51645
|
+
oe.paginatedData.length > 0 ? (ke(), Ae("div", Uee, [
|
|
51646
51646
|
V("div", Wee, [
|
|
51647
51647
|
V("a", {
|
|
51648
51648
|
href: "#",
|
|
51649
|
-
onClick: ve[2] || (ve[2] = Uu((...Q) =>
|
|
51649
|
+
onClick: ve[2] || (ve[2] = Uu((...Q) => oe.previousPage && oe.previousPage(...Q), ["prevent"])),
|
|
51650
51650
|
disabled: xe.currentPage === 1,
|
|
51651
51651
|
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"
|
|
51652
51652
|
}, "Previous", 8, Zee),
|
|
51653
51653
|
V("a", {
|
|
51654
51654
|
href: "#",
|
|
51655
|
-
onClick: ve[3] || (ve[3] = Uu((...Q) =>
|
|
51656
|
-
disabled: xe.currentPage ===
|
|
51655
|
+
onClick: ve[3] || (ve[3] = Uu((...Q) => oe.nextPage && oe.nextPage(...Q), ["prevent"])),
|
|
51656
|
+
disabled: xe.currentPage === oe.totalPages,
|
|
51657
51657
|
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"
|
|
51658
51658
|
}, "Next", 8, jee)
|
|
51659
51659
|
]),
|
|
@@ -51661,11 +51661,11 @@ function ute(P, ve, ce, Ne, xe, se) {
|
|
|
51661
51661
|
V("div", null, [
|
|
51662
51662
|
V("p", qee, [
|
|
51663
51663
|
ls(" Showing "),
|
|
51664
|
-
V("span", Kee, It(
|
|
51664
|
+
V("span", Kee, It(oe.firstItemIndex), 1),
|
|
51665
51665
|
ls(" to "),
|
|
51666
|
-
V("span", Yee, It(
|
|
51666
|
+
V("span", Yee, It(oe.lastItemIndex), 1),
|
|
51667
51667
|
ls(" of "),
|
|
51668
|
-
V("span", Xee, It(
|
|
51668
|
+
V("span", Xee, It(oe.filteredData.length), 1),
|
|
51669
51669
|
ls(" entries ")
|
|
51670
51670
|
])
|
|
51671
51671
|
]),
|
|
@@ -51675,17 +51675,17 @@ function ute(P, ve, ce, Ne, xe, se) {
|
|
|
51675
51675
|
V("li", null, [
|
|
51676
51676
|
V("a", {
|
|
51677
51677
|
href: "#",
|
|
51678
|
-
onClick: ve[4] || (ve[4] = Uu((...Q) =>
|
|
51678
|
+
onClick: ve[4] || (ve[4] = Uu((...Q) => oe.previousPage && oe.previousPage(...Q), ["prevent"])),
|
|
51679
51679
|
disabled: xe.currentPage === 1,
|
|
51680
51680
|
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"
|
|
51681
51681
|
}, ote, 8, ete)
|
|
51682
51682
|
]),
|
|
51683
|
-
(ke(!0), Ae(Go, null, aa(
|
|
51683
|
+
(ke(!0), Ae(Go, null, aa(oe.displayedPageNumbers, (Q) => (ke(), Ae(Go, { key: Q }, [
|
|
51684
51684
|
V("li", null, [
|
|
51685
51685
|
xe.currentPage !== Q ? (ke(), Ae("a", {
|
|
51686
51686
|
key: 0,
|
|
51687
51687
|
href: "#",
|
|
51688
|
-
onClick: Uu((Ue) =>
|
|
51688
|
+
onClick: Uu((Ue) => oe.goToPage(Q), ["prevent"]),
|
|
51689
51689
|
class: "flex items-center justify-center h-8 px-3 leading-tight text-gray-500 bg-white border border-gray-300 hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white"
|
|
51690
51690
|
}, It(Q), 9, ste)) : Bt("", !0)
|
|
51691
51691
|
]),
|
|
@@ -51693,7 +51693,7 @@ function ute(P, ve, ce, Ne, xe, se) {
|
|
|
51693
51693
|
xe.currentPage === Q ? (ke(), Ae("a", {
|
|
51694
51694
|
key: 0,
|
|
51695
51695
|
href: "#",
|
|
51696
|
-
onClick: Uu((Ue) =>
|
|
51696
|
+
onClick: Uu((Ue) => oe.goToPage(Q), ["prevent"]),
|
|
51697
51697
|
"aria-current": "page",
|
|
51698
51698
|
class: "z-10 flex items-center justify-center h-8 px-3 leading-tight text-blue-600 border border-blue-300 bg-blue-50 hover:bg-blue-100 hover:text-blue-700 dark:border-gray-700 dark:bg-gray-700 dark:text-white"
|
|
51699
51699
|
}, It(Q), 9, rte)) : Bt("", !0)
|
|
@@ -51702,8 +51702,8 @@ function ute(P, ve, ce, Ne, xe, se) {
|
|
|
51702
51702
|
V("li", null, [
|
|
51703
51703
|
V("a", {
|
|
51704
51704
|
href: "#",
|
|
51705
|
-
onClick: ve[5] || (ve[5] = Uu((...Q) =>
|
|
51706
|
-
disabled: xe.currentPage ===
|
|
51705
|
+
onClick: ve[5] || (ve[5] = Uu((...Q) => oe.nextPage && oe.nextPage(...Q), ["prevent"])),
|
|
51706
|
+
disabled: xe.currentPage === oe.totalPages,
|
|
51707
51707
|
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"
|
|
51708
51708
|
}, ite, 8, ate)
|
|
51709
51709
|
])
|
|
@@ -51722,19 +51722,19 @@ const ure = /* @__PURE__ */ Ta(_ee, [["render", ute]]), dte = {
|
|
|
51722
51722
|
P.value.push(xe);
|
|
51723
51723
|
},
|
|
51724
51724
|
unregisterAccordion: (xe) => {
|
|
51725
|
-
const
|
|
51726
|
-
|
|
51725
|
+
const oe = P.value.indexOf(xe);
|
|
51726
|
+
oe > -1 && P.value.splice(oe, 1);
|
|
51727
51727
|
},
|
|
51728
51728
|
toggleAccordion: (xe) => {
|
|
51729
|
-
P.value.forEach((
|
|
51730
|
-
|
|
51729
|
+
P.value.forEach((oe) => {
|
|
51730
|
+
oe !== xe && oe.isOpen && oe.isOpen.value !== void 0 && (oe.isOpen.value = !1);
|
|
51731
51731
|
}), xe.isOpen && xe.isOpen.value !== void 0 && (xe.isOpen.value = !xe.isOpen.value);
|
|
51732
51732
|
},
|
|
51733
51733
|
accordions: P
|
|
51734
51734
|
}), {};
|
|
51735
51735
|
}
|
|
51736
51736
|
};
|
|
51737
|
-
function mte(P, ve, ce, Ne, xe,
|
|
51737
|
+
function mte(P, ve, ce, Ne, xe, oe) {
|
|
51738
51738
|
return ke(), Ae("div", null, [
|
|
51739
51739
|
bf(P.$slots, "default")
|
|
51740
51740
|
]);
|
|
@@ -51755,10 +51755,10 @@ const dre = /* @__PURE__ */ Ta(dte, [["render", mte]]), fte = {
|
|
|
51755
51755
|
return Dt = Math.floor(Dt / 16), (Bn === "x" ? zn : zn & 3 | 8).toString(16);
|
|
51756
51756
|
});
|
|
51757
51757
|
return rn;
|
|
51758
|
-
})(), xe = { isOpen: P, id: Ne },
|
|
51758
|
+
})(), xe = { isOpen: P, id: Ne }, oe = gu(() => ve.accordions.value), Re = gu(() => oe.value.length > 0 && oe.value[0].id === Ne), Q = gu(() => oe.value.length > 0 && oe.value[oe.value.length - 1].id === Ne);
|
|
51759
51759
|
return b1(() => {
|
|
51760
51760
|
ve.registerAccordion(xe);
|
|
51761
|
-
}),
|
|
51761
|
+
}), $q(() => {
|
|
51762
51762
|
ve.unregisterAccordion(xe);
|
|
51763
51763
|
}), { isOpen: P, isFirstAccordion: Re, isLastAccordion: Q, toggle: () => {
|
|
51764
51764
|
ve.toggleAccordion(xe);
|
|
@@ -51795,7 +51795,7 @@ const dre = /* @__PURE__ */ Ta(dte, [["render", mte]]), fte = {
|
|
|
51795
51795
|
}, null, -1), wte = [
|
|
51796
51796
|
yte
|
|
51797
51797
|
];
|
|
51798
|
-
function xte(P, ve, ce, Ne, xe,
|
|
51798
|
+
function xte(P, ve, ce, Ne, xe, oe) {
|
|
51799
51799
|
return ke(), Ae("div", null, [
|
|
51800
51800
|
V("h2", null, [
|
|
51801
51801
|
V("button", {
|
|
@@ -51904,13 +51904,13 @@ const mre = /* @__PURE__ */ Ta(fte, [["render", xte]]), Cte = {
|
|
|
51904
51904
|
setTimeout(() => Ne("remove"), ce.duration);
|
|
51905
51905
|
});
|
|
51906
51906
|
const Ne = ve;
|
|
51907
|
-
return (xe,
|
|
51907
|
+
return (xe, oe) => (ke(), Ae("div", Cte, [
|
|
51908
51908
|
ce.type === "success" ? (ke(), Ae("div", Ste, Tte)) : Bt("", !0),
|
|
51909
51909
|
ce.type === "error" ? (ke(), Ae("div", Ete, Dte)) : Bt("", !0),
|
|
51910
51910
|
ce.type === "warning" ? (ke(), Ae("div", Rte, Nte)) : Bt("", !0),
|
|
51911
51911
|
V("div", Bte, It(ce.message), 1),
|
|
51912
51912
|
V("button", {
|
|
51913
|
-
onClick:
|
|
51913
|
+
onClick: oe[0] || (oe[0] = (Re) => Ne("remove")),
|
|
51914
51914
|
type: "button",
|
|
51915
51915
|
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",
|
|
51916
51916
|
"data-dismiss-target": "#toast-default",
|
|
@@ -51918,7 +51918,7 @@ const mre = /* @__PURE__ */ Ta(fte, [["render", xte]]), Cte = {
|
|
|
51918
51918
|
}, Lte)
|
|
51919
51919
|
]));
|
|
51920
51920
|
}
|
|
51921
|
-
}, Aj =
|
|
51921
|
+
}, Aj = Mq({
|
|
51922
51922
|
items: []
|
|
51923
51923
|
}), Hte = {
|
|
51924
51924
|
add(P) {
|
|
@@ -51941,7 +51941,7 @@ const mre = /* @__PURE__ */ Ta(fte, [["render", xte]]), Cte = {
|
|
|
51941
51941
|
function ve(ce) {
|
|
51942
51942
|
U8.methods.remove(ce);
|
|
51943
51943
|
}
|
|
51944
|
-
return (ce, Ne) => (ke(), jx(
|
|
51944
|
+
return (ce, Ne) => (ke(), jx(Nq, {
|
|
51945
51945
|
tag: "div",
|
|
51946
51946
|
"enter-from-class": "translate-x-full opacity-0",
|
|
51947
51947
|
"enter-active-class": "duration-500",
|
|
@@ -51950,12 +51950,12 @@ const mre = /* @__PURE__ */ Ta(fte, [["render", xte]]), Cte = {
|
|
|
51950
51950
|
class: "fixed z-50 w-full max-w-xs space-y-4 top-4 right-4"
|
|
51951
51951
|
}, {
|
|
51952
51952
|
default: z8(() => [
|
|
51953
|
-
(ke(!0), Ae(Go, null, aa(
|
|
51953
|
+
(ke(!0), Ae(Go, null, aa(Bq(U8).state.items, (xe, oe) => (ke(), jx(Fte, {
|
|
51954
51954
|
key: xe.key,
|
|
51955
51955
|
message: xe.message,
|
|
51956
51956
|
type: xe.type,
|
|
51957
51957
|
duration: xe.duration,
|
|
51958
|
-
onRemove: (Re) => ve(
|
|
51958
|
+
onRemove: (Re) => ve(oe)
|
|
51959
51959
|
}, null, 8, ["message", "type", "duration", "onRemove"]))), 128))
|
|
51960
51960
|
]),
|
|
51961
51961
|
_: 1
|
|
@@ -52003,7 +52003,7 @@ const mre = /* @__PURE__ */ Ta(fte, [["render", xte]]), Cte = {
|
|
|
52003
52003
|
},
|
|
52004
52004
|
emits: ["deleteAction"],
|
|
52005
52005
|
setup(P, { emit: ve }) {
|
|
52006
|
-
const ce = P, Ne = _s(!1), xe = _s(!1),
|
|
52006
|
+
const ce = P, Ne = _s(!1), xe = _s(!1), oe = () => {
|
|
52007
52007
|
Ne.value = !1;
|
|
52008
52008
|
}, Re = () => {
|
|
52009
52009
|
Ne.value = !0;
|
|
@@ -52062,7 +52062,7 @@ const mre = /* @__PURE__ */ Ta(fte, [["render", xte]]), Cte = {
|
|
|
52062
52062
|
[n5, Ne.value]
|
|
52063
52063
|
])
|
|
52064
52064
|
])), [
|
|
52065
|
-
[zo,
|
|
52065
|
+
[zo, oe]
|
|
52066
52066
|
]) : Bt("", !0)
|
|
52067
52067
|
], 64);
|
|
52068
52068
|
};
|
|
@@ -52109,7 +52109,7 @@ const mre = /* @__PURE__ */ Ta(fte, [["render", xte]]), Cte = {
|
|
|
52109
52109
|
},
|
|
52110
52110
|
emits: ["deleteAction"],
|
|
52111
52111
|
setup(P, { emit: ve }) {
|
|
52112
|
-
const ce = P, Ne = _s(!1), xe = _s(!1),
|
|
52112
|
+
const ce = P, Ne = _s(!1), xe = _s(!1), oe = () => {
|
|
52113
52113
|
Ne.value = !1;
|
|
52114
52114
|
}, Re = () => {
|
|
52115
52115
|
Ne.value = !0;
|
|
@@ -52159,7 +52159,7 @@ const mre = /* @__PURE__ */ Ta(fte, [["render", xte]]), Cte = {
|
|
|
52159
52159
|
[n5, Ne.value]
|
|
52160
52160
|
])
|
|
52161
52161
|
])), [
|
|
52162
|
-
[zo,
|
|
52162
|
+
[zo, oe]
|
|
52163
52163
|
]) : Bt("", !0)
|
|
52164
52164
|
], 64);
|
|
52165
52165
|
};
|
|
@@ -52217,9 +52217,9 @@ const mre = /* @__PURE__ */ Ta(fte, [["render", xte]]), Cte = {
|
|
|
52217
52217
|
"clip-rule": "evenodd"
|
|
52218
52218
|
})
|
|
52219
52219
|
], -1);
|
|
52220
|
-
function une(P, ve, ce, Ne, xe,
|
|
52220
|
+
function une(P, ve, ce, Ne, xe, oe) {
|
|
52221
52221
|
return ke(), Ae("div", null, [
|
|
52222
|
-
|
|
52222
|
+
oe.isArray ? (ke(!0), Ae(Go, { key: 0 }, aa(ce.row, (Re, Q) => (ke(), Ae("div", {
|
|
52223
52223
|
key: Q,
|
|
52224
52224
|
class: "m-1 d-inline-block"
|
|
52225
52225
|
}, [
|
|
@@ -52232,7 +52232,7 @@ function une(P, ve, ce, Ne, xe, se) {
|
|
|
52232
52232
|
ane,
|
|
52233
52233
|
ls(" Download ")
|
|
52234
52234
|
], 8, rne)
|
|
52235
|
-
]))), 128)) :
|
|
52235
|
+
]))), 128)) : oe.isString ? (ke(), Ae("div", cne, [
|
|
52236
52236
|
V("a", {
|
|
52237
52237
|
href: ce.row,
|
|
52238
52238
|
title: ce.row,
|
|
@@ -52293,9 +52293,9 @@ const pre = /* @__PURE__ */ Ta(sne, [["render", une]]), dne = {
|
|
|
52293
52293
|
"clip-rule": "evenodd"
|
|
52294
52294
|
})
|
|
52295
52295
|
], -1);
|
|
52296
|
-
function bne(P, ve, ce, Ne, xe,
|
|
52296
|
+
function bne(P, ve, ce, Ne, xe, oe) {
|
|
52297
52297
|
return ke(), Ae("div", null, [
|
|
52298
|
-
|
|
52298
|
+
oe.isArray ? (ke(!0), Ae(Go, { key: 0 }, aa(ce.row[ce.field], (Re) => (ke(), Ae("div", {
|
|
52299
52299
|
key: Re.id,
|
|
52300
52300
|
class: "m-1 d-inline-block"
|
|
52301
52301
|
}, [
|
|
@@ -52308,7 +52308,7 @@ function bne(P, ve, ce, Ne, xe, se) {
|
|
|
52308
52308
|
fne,
|
|
52309
52309
|
ls(" Download ")
|
|
52310
52310
|
], 8, mne)
|
|
52311
|
-
]))), 128)) :
|
|
52311
|
+
]))), 128)) : oe.isObject ? (ke(), Ae("div", gne, [
|
|
52312
52312
|
V("a", {
|
|
52313
52313
|
href: ce.row[ce.field].url,
|
|
52314
52314
|
title: ce.row[ce.field].name,
|
|
@@ -52324,7 +52324,7 @@ function bne(P, ve, ce, Ne, xe, se) {
|
|
|
52324
52324
|
const bre = /* @__PURE__ */ Ta(dne, [["render", bne]]), vne = {
|
|
52325
52325
|
props: ["field", "row", "tdProps"]
|
|
52326
52326
|
}, yne = { key: 0 }, wne = ["innerHTML"];
|
|
52327
|
-
function xne(P, ve, ce, Ne, xe,
|
|
52327
|
+
function xne(P, ve, ce, Ne, xe, oe) {
|
|
52328
52328
|
return ce.row[ce.field] ? (ke(), Ae("div", yne, [
|
|
52329
52329
|
V("div", {
|
|
52330
52330
|
class: "w-full",
|
|
@@ -52337,7 +52337,7 @@ const vre = /* @__PURE__ */ Ta(vne, [["render", xne]]), Cne = {
|
|
|
52337
52337
|
computed: {
|
|
52338
52338
|
entry() {
|
|
52339
52339
|
const [P, ve] = this.field.split(".");
|
|
52340
|
-
return
|
|
52340
|
+
return Pq({ key: P, field: ve });
|
|
52341
52341
|
},
|
|
52342
52342
|
isArray() {
|
|
52343
52343
|
return Array.isArray(this.row[this.entry.key]);
|
|
@@ -52350,47 +52350,49 @@ const vre = /* @__PURE__ */ Ta(vne, [["render", xne]]), Cne = {
|
|
|
52350
52350
|
key: 1,
|
|
52351
52351
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"
|
|
52352
52352
|
};
|
|
52353
|
-
function kne(P, ve, ce, Ne, xe,
|
|
52353
|
+
function kne(P, ve, ce, Ne, xe, oe) {
|
|
52354
52354
|
return ke(), Ae("div", Sne, [
|
|
52355
|
-
|
|
52355
|
+
oe.isArray ? (ke(!0), Ae(Go, { key: 0 }, aa(ce.row[oe.entry.key], (Re, Q) => (ke(), Ae("span", {
|
|
52356
52356
|
key: Q,
|
|
52357
52357
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"
|
|
52358
|
-
}, It(Re[
|
|
52358
|
+
}, It(Re[oe.entry.field]), 1))), 128)) : oe.isObject ? (ke(), Ae("span", _ne, It(ce.row[oe.entry.key][oe.entry.field]), 1)) : Bt("", !0)
|
|
52359
52359
|
]);
|
|
52360
52360
|
}
|
|
52361
52361
|
const yre = /* @__PURE__ */ Ta(Cne, [["render", kne]]), Tne = {
|
|
52362
52362
|
props: ["field", "row", "tdProps"],
|
|
52363
52363
|
computed: {
|
|
52364
52364
|
entry() {
|
|
52365
|
-
const P = this.field.split(".");
|
|
52366
|
-
return
|
|
52367
|
-
},
|
|
52368
|
-
nestedValue() {
|
|
52369
|
-
return this.entry.reduce((P, ve) => P && P[ve] !== "undefined" ? P[ve] : null, this.row);
|
|
52365
|
+
const P = this.field.split("."), ve = P.pop();
|
|
52366
|
+
return { keys: P, field: ve };
|
|
52370
52367
|
},
|
|
52371
52368
|
isArray() {
|
|
52372
|
-
return Array.isArray(this.
|
|
52369
|
+
return Array.isArray(this.getNestedValue(this.row, this.entry.keys));
|
|
52373
52370
|
},
|
|
52374
52371
|
isObject() {
|
|
52375
|
-
return typeof this.
|
|
52372
|
+
return typeof this.getNestedValue(this.row, this.entry.keys) == "object";
|
|
52373
|
+
}
|
|
52374
|
+
},
|
|
52375
|
+
methods: {
|
|
52376
|
+
getNestedValue(P, ve) {
|
|
52377
|
+
return ve.reduce((ce, Ne) => (ce || {})[Ne], P);
|
|
52376
52378
|
}
|
|
52377
52379
|
}
|
|
52378
52380
|
}, Ene = { class: "flex flex-wrap gap-2" }, Ane = {
|
|
52379
52381
|
key: 1,
|
|
52380
52382
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"
|
|
52381
52383
|
};
|
|
52382
|
-
function One(P, ve, ce, Ne, xe,
|
|
52384
|
+
function One(P, ve, ce, Ne, xe, oe) {
|
|
52383
52385
|
return ke(), Ae("div", Ene, [
|
|
52384
|
-
|
|
52386
|
+
oe.isArray ? (ke(!0), Ae(Go, { key: 0 }, aa(oe.getNestedValue(ce.row, oe.entry.keys), (Re, Q) => (ke(), Ae("span", {
|
|
52385
52387
|
key: Q,
|
|
52386
52388
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"
|
|
52387
|
-
}, It(Re), 1))), 128)) :
|
|
52389
|
+
}, It(Re[oe.entry.field]), 1))), 128)) : oe.isObject ? (ke(), Ae("span", Ane, It(oe.getNestedValue(ce.row, oe.entry.keys)[oe.entry.field]), 1)) : Bt("", !0)
|
|
52388
52390
|
]);
|
|
52389
52391
|
}
|
|
52390
52392
|
const wre = /* @__PURE__ */ Ta(Tne, [["render", One]]), Dne = {
|
|
52391
52393
|
props: ["field", "row", "tdProps"]
|
|
52392
52394
|
}, Rne = { key: 0 }, $ne = { class: "m-1 d-inline-block" }, Mne = ["href", "title"], Nne = ["src", "alt", "title"];
|
|
52393
|
-
function Bne(P, ve, ce, Ne, xe,
|
|
52395
|
+
function Bne(P, ve, ce, Ne, xe, oe) {
|
|
52394
52396
|
return ce.row[ce.field] ? (ke(), Ae("div", Rne, [
|
|
52395
52397
|
V("div", $ne, [
|
|
52396
52398
|
V("a", {
|
|
@@ -52421,12 +52423,12 @@ const xre = /* @__PURE__ */ Ta(Dne, [["render", Bne], ["__scopeId", "data-v-3a28
|
|
|
52421
52423
|
key: 1,
|
|
52422
52424
|
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"
|
|
52423
52425
|
}, Vne = /* @__PURE__ */ V("span", { class: "w-2 h-2 bg-red-500 rounded-full me-1" }, null, -1);
|
|
52424
|
-
function zne(P, ve, ce, Ne, xe,
|
|
52426
|
+
function zne(P, ve, ce, Ne, xe, oe) {
|
|
52425
52427
|
return ke(), Ae("div", Ine, [
|
|
52426
|
-
|
|
52428
|
+
oe.isActive ? (ke(), Ae("span", Lne, [
|
|
52427
52429
|
Fne,
|
|
52428
52430
|
ls(" Active ")
|
|
52429
|
-
])) :
|
|
52431
|
+
])) : oe.isActive ? Bt("", !0) : (ke(), Ae("span", Hne, [
|
|
52430
52432
|
Vne,
|
|
52431
52433
|
ls(" Inactive ")
|
|
52432
52434
|
]))
|
|
@@ -52461,25 +52463,25 @@ const Cre = /* @__PURE__ */ Ta(Pne, [["render", zne]]), Une = {
|
|
|
52461
52463
|
/* @__PURE__ */ V("span", { class: "absolute inline-flex w-full h-full bg-blue-500 rounded-full animate-ping" }),
|
|
52462
52464
|
/* @__PURE__ */ V("span", { class: "relative inline-flex w-2 h-2 bg-blue-500 rounded-full" })
|
|
52463
52465
|
], -1);
|
|
52464
|
-
function toe(P, ve, ce, Ne, xe,
|
|
52466
|
+
function toe(P, ve, ce, Ne, xe, oe) {
|
|
52465
52467
|
return ke(), Ae("div", Wne, [
|
|
52466
|
-
|
|
52468
|
+
oe.hasLabelColor == "green" ? (ke(), Ae("span", Zne, [
|
|
52467
52469
|
jne,
|
|
52468
52470
|
ls(" " + It(this.row[this.field]), 1)
|
|
52469
52471
|
])) : Bt("", !0),
|
|
52470
|
-
|
|
52472
|
+
oe.hasLabelColor == "red" ? (ke(), Ae("span", Gne, [
|
|
52471
52473
|
qne,
|
|
52472
52474
|
ls(" " + It(this.row[this.field]), 1)
|
|
52473
52475
|
])) : Bt("", !0),
|
|
52474
|
-
|
|
52476
|
+
oe.hasLabelColor == "yellow" ? (ke(), Ae("span", Kne, [
|
|
52475
52477
|
Yne,
|
|
52476
52478
|
ls(" " + It(this.row[this.field]), 1)
|
|
52477
52479
|
])) : Bt("", !0),
|
|
52478
|
-
|
|
52480
|
+
oe.hasLabelColor == "default" ? (ke(), Ae("span", Xne, [
|
|
52479
52481
|
Jne,
|
|
52480
52482
|
ls(" " + It(this.row[this.field]), 1)
|
|
52481
52483
|
])) : Bt("", !0),
|
|
52482
|
-
|
|
52484
|
+
oe.hasLabelColor == "animate" ? (ke(), Ae("span", Qne, [
|
|
52483
52485
|
eoe,
|
|
52484
52486
|
ls(" " + It(this.row[this.field]), 1)
|
|
52485
52487
|
])) : Bt("", !0)
|
|
@@ -52507,39 +52509,39 @@ const Sre = /* @__PURE__ */ Ta(Une, [["render", toe]]), noe = {
|
|
|
52507
52509
|
}
|
|
52508
52510
|
}
|
|
52509
52511
|
}, ooe = { class: "flex flex-wrap gap-2 text-nowrap lg:justify-center" };
|
|
52510
|
-
function soe(P, ve, ce, Ne, xe,
|
|
52512
|
+
function soe(P, ve, ce, Ne, xe, oe) {
|
|
52511
52513
|
return ke(), Ae("div", ooe, [
|
|
52512
|
-
|
|
52514
|
+
oe.hasLabelColor == "Default" ? (ke(), Ae("span", {
|
|
52513
52515
|
key: 0,
|
|
52514
|
-
class: Cn(["bg-blue-100 text-blue-800 font-medium me-2 px-2.5 py-0.5 dark:bg-blue-900 dark:text-blue-300 border-blue-400",
|
|
52516
|
+
class: Cn(["bg-blue-100 text-blue-800 font-medium me-2 px-2.5 py-0.5 dark:bg-blue-900 dark:text-blue-300 border-blue-400", oe.badgeType])
|
|
52515
52517
|
}, It(this.row[this.field]), 3)) : Bt("", !0),
|
|
52516
|
-
|
|
52518
|
+
oe.hasLabelColor == "Dark" ? (ke(), Ae("span", {
|
|
52517
52519
|
key: 1,
|
|
52518
|
-
class: Cn(["bg-gray-100 text-gray-800 font-medium me-2 px-2.5 py-0.5 dark:bg-gray-700 dark:text-gray-300 border-gray-500",
|
|
52520
|
+
class: Cn(["bg-gray-100 text-gray-800 font-medium me-2 px-2.5 py-0.5 dark:bg-gray-700 dark:text-gray-300 border-gray-500", oe.badgeType])
|
|
52519
52521
|
}, It(this.row[this.field]), 3)) : Bt("", !0),
|
|
52520
|
-
|
|
52522
|
+
oe.hasLabelColor == "Red" ? (ke(), Ae("span", {
|
|
52521
52523
|
key: 2,
|
|
52522
|
-
class: Cn(["bg-red-100 text-red-800 font-medium me-2 px-2.5 py-0.5 dark:bg-red-900 dark:text-red-300 border-red-400",
|
|
52524
|
+
class: Cn(["bg-red-100 text-red-800 font-medium me-2 px-2.5 py-0.5 dark:bg-red-900 dark:text-red-300 border-red-400", oe.badgeType])
|
|
52523
52525
|
}, It(this.row[this.field]), 3)) : Bt("", !0),
|
|
52524
|
-
|
|
52526
|
+
oe.hasLabelColor == "Green" ? (ke(), Ae("span", {
|
|
52525
52527
|
key: 3,
|
|
52526
|
-
class: Cn(["bg-green-100 text-green-800 font-medium me-2 px-2.5 py-0.5 dark:bg-green-900 dark:text-green-300 border-green-400",
|
|
52528
|
+
class: Cn(["bg-green-100 text-green-800 font-medium me-2 px-2.5 py-0.5 dark:bg-green-900 dark:text-green-300 border-green-400", oe.badgeType])
|
|
52527
52529
|
}, It(this.row[this.field]), 3)) : Bt("", !0),
|
|
52528
|
-
|
|
52530
|
+
oe.hasLabelColor == "Yellow" ? (ke(), Ae("span", {
|
|
52529
52531
|
key: 4,
|
|
52530
|
-
class: Cn(["bg-yellow-100 text-yellow-800 font-medium me-2 px-2.5 py-0.5 dark:bg-yellow-900 dark:text-yellow-300 border-yellow-300",
|
|
52532
|
+
class: Cn(["bg-yellow-100 text-yellow-800 font-medium me-2 px-2.5 py-0.5 dark:bg-yellow-900 dark:text-yellow-300 border-yellow-300", oe.badgeType])
|
|
52531
52533
|
}, It(this.row[this.field]), 3)) : Bt("", !0),
|
|
52532
|
-
|
|
52534
|
+
oe.hasLabelColor == "Indigo" ? (ke(), Ae("span", {
|
|
52533
52535
|
key: 5,
|
|
52534
|
-
class: Cn(["bg-indigo-100 text-indigo-800 font-medium me-2 px-2.5 py-0.5 dark:bg-indigo-900 dark:text-indigo-300 border-indigo-400",
|
|
52536
|
+
class: Cn(["bg-indigo-100 text-indigo-800 font-medium me-2 px-2.5 py-0.5 dark:bg-indigo-900 dark:text-indigo-300 border-indigo-400", oe.badgeType])
|
|
52535
52537
|
}, It(this.row[this.field]), 3)) : Bt("", !0),
|
|
52536
|
-
|
|
52538
|
+
oe.hasLabelColor == "Purple" ? (ke(), Ae("span", {
|
|
52537
52539
|
key: 6,
|
|
52538
|
-
class: Cn(["bg-purple-100 text-purple-800 font-medium me-2 px-2.5 py-0.5 dark:bg-purple-900 dark:text-purple-300 border-purple-400",
|
|
52540
|
+
class: Cn(["bg-purple-100 text-purple-800 font-medium me-2 px-2.5 py-0.5 dark:bg-purple-900 dark:text-purple-300 border-purple-400", oe.badgeType])
|
|
52539
52541
|
}, It(this.row[this.field]), 3)) : Bt("", !0),
|
|
52540
|
-
|
|
52542
|
+
oe.hasLabelColor == "Pink" ? (ke(), Ae("span", {
|
|
52541
52543
|
key: 7,
|
|
52542
|
-
class: Cn(["bg-pink-100 text-pink-800 font-medium me-2 px-2.5 py-0.5 dark:bg-pink-900 dark:text-pink-300 border-pink-400",
|
|
52544
|
+
class: Cn(["bg-pink-100 text-pink-800 font-medium me-2 px-2.5 py-0.5 dark:bg-pink-900 dark:text-pink-300 border-pink-400", oe.badgeType])
|
|
52543
52545
|
}, It(this.row[this.field]), 3)) : Bt("", !0)
|
|
52544
52546
|
]);
|
|
52545
52547
|
}
|
|
@@ -52578,27 +52580,27 @@ const _re = /* @__PURE__ */ Ta(noe, [["render", soe]]), roe = {
|
|
|
52578
52580
|
/* @__PURE__ */ V("span", { class: "absolute inline-flex w-full h-full bg-blue-500 rounded-full animate-ping" }),
|
|
52579
52581
|
/* @__PURE__ */ V("span", { class: "relative inline-flex w-2 h-2 bg-blue-500 rounded-full" })
|
|
52580
52582
|
], -1);
|
|
52581
|
-
function boe(P, ve, ce, Ne, xe,
|
|
52583
|
+
function boe(P, ve, ce, Ne, xe, oe) {
|
|
52582
52584
|
return ke(), Ae("div", aoe, [
|
|
52583
|
-
|
|
52585
|
+
oe.hasLabelColor == "green" ? (ke(), Ae("span", coe, [
|
|
52584
52586
|
loe,
|
|
52585
|
-
ls(" " + It(
|
|
52587
|
+
ls(" " + It(oe.getLabel), 1)
|
|
52586
52588
|
])) : Bt("", !0),
|
|
52587
|
-
|
|
52589
|
+
oe.hasLabelColor == "red" ? (ke(), Ae("span", ioe, [
|
|
52588
52590
|
uoe,
|
|
52589
|
-
ls(" " + It(
|
|
52591
|
+
ls(" " + It(oe.getLabel), 1)
|
|
52590
52592
|
])) : Bt("", !0),
|
|
52591
|
-
|
|
52593
|
+
oe.hasLabelColor == "yellow" ? (ke(), Ae("span", doe, [
|
|
52592
52594
|
moe,
|
|
52593
|
-
ls(" " + It(
|
|
52595
|
+
ls(" " + It(oe.getLabel), 1)
|
|
52594
52596
|
])) : Bt("", !0),
|
|
52595
|
-
|
|
52597
|
+
oe.hasLabelColor == "default" ? (ke(), Ae("span", foe, [
|
|
52596
52598
|
goe,
|
|
52597
|
-
ls(" " + It(
|
|
52599
|
+
ls(" " + It(oe.getLabel), 1)
|
|
52598
52600
|
])) : Bt("", !0),
|
|
52599
|
-
|
|
52601
|
+
oe.hasLabelColor == "animate" ? (ke(), Ae("span", hoe, [
|
|
52600
52602
|
poe,
|
|
52601
|
-
ls(" " + It(
|
|
52603
|
+
ls(" " + It(oe.getLabel), 1)
|
|
52602
52604
|
])) : Bt("", !0)
|
|
52603
52605
|
]);
|
|
52604
52606
|
}
|
|
@@ -52610,16 +52612,16 @@ const kre = /* @__PURE__ */ Ta(roe, [["render", boe]]), voe = {
|
|
|
52610
52612
|
return "";
|
|
52611
52613
|
const P = new Date(this.row[this.field]), ve = P.getFullYear(), ce = P.toLocaleString("default", { month: "long" }), Ne = P.getDate();
|
|
52612
52614
|
let xe = P.getHours();
|
|
52613
|
-
const
|
|
52614
|
-
return xe = xe % 12, xe = xe || 12, `${ce} ${Ne}, ${ve}, ${xe}:${
|
|
52615
|
+
const oe = P.getMinutes(), Re = P.getSeconds(), Q = xe >= 12 ? "pm" : "am";
|
|
52616
|
+
return xe = xe % 12, xe = xe || 12, `${ce} ${Ne}, ${ve}, ${xe}:${oe}:${Re} ${Q}`;
|
|
52615
52617
|
},
|
|
52616
52618
|
isActive() {
|
|
52617
52619
|
return this.row[this.field] === 1;
|
|
52618
52620
|
}
|
|
52619
52621
|
}
|
|
52620
52622
|
}, yoe = { class: "w-full" };
|
|
52621
|
-
function woe(P, ve, ce, Ne, xe,
|
|
52622
|
-
return ke(), Ae("div", yoe, It(
|
|
52623
|
+
function woe(P, ve, ce, Ne, xe, oe) {
|
|
52624
|
+
return ke(), Ae("div", yoe, It(oe.formattedDate), 1);
|
|
52623
52625
|
}
|
|
52624
52626
|
const Tre = /* @__PURE__ */ Ta(voe, [["render", woe]]), xoe = {
|
|
52625
52627
|
props: ["field", "row", "tdProps"]
|
|
@@ -52636,7 +52638,7 @@ const Tre = /* @__PURE__ */ Ta(voe, [["render", woe]]), xoe = {
|
|
|
52636
52638
|
key: 2,
|
|
52637
52639
|
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"
|
|
52638
52640
|
}, Aoe = /* @__PURE__ */ V("span", { class: "w-2 h-2 bg-green-500 rounded-full me-1" }, null, -1);
|
|
52639
|
-
function Ooe(P, ve, ce, Ne, xe,
|
|
52641
|
+
function Ooe(P, ve, ce, Ne, xe, oe) {
|
|
52640
52642
|
return ke(), Ae("div", Coe, [
|
|
52641
52643
|
ce.row[ce.field] === 0 ? (ke(), Ae("span", Soe, [
|
|
52642
52644
|
_oe,
|
|
@@ -52661,7 +52663,7 @@ const Ere = /* @__PURE__ */ Ta(xoe, [["render", Ooe]]), Doe = {
|
|
|
52661
52663
|
style: { "max-width": "200px" },
|
|
52662
52664
|
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"
|
|
52663
52665
|
};
|
|
52664
|
-
function Moe(P, ve, ce, Ne, xe,
|
|
52666
|
+
function Moe(P, ve, ce, Ne, xe, oe) {
|
|
52665
52667
|
return ce.row[ce.field] ? (ke(), Ae("div", Roe, [
|
|
52666
52668
|
V("pre", $oe, " " + It(ce.row[ce.field]) + `
|
|
52667
52669
|
`, 1)
|
|
@@ -52689,7 +52691,7 @@ const Are = /* @__PURE__ */ Ta(Doe, [["render", Moe]]), Noe = {
|
|
|
52689
52691
|
class: "hidden sm:inline-block sm:align-middle sm:h-screen",
|
|
52690
52692
|
"aria-hidden": "true"
|
|
52691
52693
|
}, "", -1), Foe = { class: "inline-block overflow-hidden text-left align-bottom transition-all transform bg-white rounded-lg shadow-xl sm:my-8 sm:align-middle sm:max-w-lg sm:w-full" }, Hoe = { class: "px-4 pt-5 pb-4 bg-white sm:p-6 sm:pb-4" }, Voe = { class: "sm:flex sm:items-start" }, zoe = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left" }, Uoe = { class: "text-lg font-medium leading-6 text-gray-900" }, Woe = { class: "mt-2" }, Zoe = { class: "px-4 py-3 bg-gray-50 sm:px-6 sm:flex sm:flex-row-reverse" };
|
|
52692
|
-
function joe(P, ve, ce, Ne, xe,
|
|
52694
|
+
function joe(P, ve, ce, Ne, xe, oe) {
|
|
52693
52695
|
return ce.isOpen ? (ke(), Ae("div", Boe, [
|
|
52694
52696
|
V("div", Poe, [
|
|
52695
52697
|
Ioe,
|
|
@@ -52707,12 +52709,12 @@ function joe(P, ve, ce, Ne, xe, se) {
|
|
|
52707
52709
|
]),
|
|
52708
52710
|
V("div", Zoe, [
|
|
52709
52711
|
V("button", {
|
|
52710
|
-
onClick: ve[0] || (ve[0] = (...Re) =>
|
|
52712
|
+
onClick: ve[0] || (ve[0] = (...Re) => oe.confirmAction && oe.confirmAction(...Re)),
|
|
52711
52713
|
type: "button",
|
|
52712
52714
|
class: "inline-flex justify-center w-full px-4 py-2 text-base font-medium text-white bg-red-600 border border-transparent rounded-md shadow-sm hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm"
|
|
52713
52715
|
}, It(ce.button_text), 1),
|
|
52714
52716
|
V("button", {
|
|
52715
|
-
onClick: ve[1] || (ve[1] = (...Re) =>
|
|
52717
|
+
onClick: ve[1] || (ve[1] = (...Re) => oe.cancelAction && oe.cancelAction(...Re)),
|
|
52716
52718
|
type: "button",
|
|
52717
52719
|
class: "inline-flex justify-center w-full px-4 py-2 mt-3 text-base font-medium text-gray-700 bg-white border border-gray-300 rounded-md shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"
|
|
52718
52720
|
}, " Cancel ")
|
|
@@ -52741,7 +52743,7 @@ const Ore = /* @__PURE__ */ Ta(Noe, [["render", joe]]), Goe = {
|
|
|
52741
52743
|
}
|
|
52742
52744
|
},
|
|
52743
52745
|
setup(P, { expose: ve }) {
|
|
52744
|
-
const ce = _s(""), Ne = _s(""), xe = _s(""),
|
|
52746
|
+
const ce = _s(""), Ne = _s(""), xe = _s(""), oe = _s("Cancel"), Re = _s(!1), Q = _s(void 0), Ue = _s(void 0), Dt = (zn = {}) => (ce.value = zn.title, Ne.value = zn.message, xe.value = zn.okButton, zn.cancelButton && (oe.value = zn.cancelButton), Re.value = !0, new Promise((zo, ir) => {
|
|
52745
52747
|
Q.value = zo, Ue.value = ir;
|
|
52746
52748
|
})), rn = () => {
|
|
52747
52749
|
Re.value = !1, Q.value(!0);
|
|
@@ -52775,7 +52777,7 @@ const Ore = /* @__PURE__ */ Ta(Noe, [["render", joe]]), Goe = {
|
|
|
52775
52777
|
onClick: Bn,
|
|
52776
52778
|
type: "button",
|
|
52777
52779
|
class: "inline-flex justify-center w-full px-4 py-2 mt-3 text-base font-medium text-gray-700 bg-white border border-gray-300 rounded-md shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"
|
|
52778
|
-
}, It(
|
|
52780
|
+
}, It(oe.value), 1)
|
|
52779
52781
|
])
|
|
52780
52782
|
])
|
|
52781
52783
|
])
|
|
@@ -52832,8 +52834,8 @@ const Ore = /* @__PURE__ */ Ta(Noe, [["render", joe]]), Goe = {
|
|
|
52832
52834
|
}
|
|
52833
52835
|
},
|
|
52834
52836
|
setup(P) {
|
|
52835
|
-
const ve = P, ce = _s(!1), Ne = (
|
|
52836
|
-
navigator.clipboard.writeText(
|
|
52837
|
+
const ve = P, ce = _s(!1), Ne = (oe) => {
|
|
52838
|
+
navigator.clipboard.writeText(oe).then(function() {
|
|
52837
52839
|
ce.value = !0, setTimeout(() => {
|
|
52838
52840
|
ce.value = !1;
|
|
52839
52841
|
}, 2e3);
|
|
@@ -52841,7 +52843,7 @@ const Ore = /* @__PURE__ */ Ta(Noe, [["render", joe]]), Goe = {
|
|
|
52841
52843
|
console.error("Error copying to clipboard: ", Re);
|
|
52842
52844
|
});
|
|
52843
52845
|
}, xe = gu(() => ve.code);
|
|
52844
|
-
return (
|
|
52846
|
+
return (oe, Re) => (ke(), Ae("div", rse, [
|
|
52845
52847
|
V("div", ase, [
|
|
52846
52848
|
V("p", cse, It(P.label_name), 1)
|
|
52847
52849
|
]),
|
|
@@ -52912,8 +52914,8 @@ const Ore = /* @__PURE__ */ Ta(Noe, [["render", joe]]), Goe = {
|
|
|
52912
52914
|
}
|
|
52913
52915
|
},
|
|
52914
52916
|
setup(P) {
|
|
52915
|
-
const ve = P, ce = _s(!1), Ne = (
|
|
52916
|
-
navigator.clipboard.writeText(
|
|
52917
|
+
const ve = P, ce = _s(!1), Ne = (oe) => {
|
|
52918
|
+
navigator.clipboard.writeText(oe).then(function() {
|
|
52917
52919
|
ce.value = !0, setTimeout(() => {
|
|
52918
52920
|
ce.value = !1;
|
|
52919
52921
|
}, 2e3);
|
|
@@ -52921,7 +52923,7 @@ const Ore = /* @__PURE__ */ Ta(Noe, [["render", joe]]), Goe = {
|
|
|
52921
52923
|
console.error("Error copying to clipboard: ", Re);
|
|
52922
52924
|
});
|
|
52923
52925
|
}, xe = gu(() => ve.code);
|
|
52924
|
-
return (
|
|
52926
|
+
return (oe, Re) => (ke(), Ae("div", xse, [
|
|
52925
52927
|
V("div", Cse, [
|
|
52926
52928
|
V("label", Sse, It(P.label_name), 1)
|
|
52927
52929
|
]),
|
|
@@ -53023,7 +53025,7 @@ export {
|
|
|
53023
53025
|
Mre as GlStatusRunningSuccessFailed,
|
|
53024
53026
|
tre as GlTab,
|
|
53025
53027
|
ere as GlTabsWrapper,
|
|
53026
|
-
|
|
53028
|
+
eq as GlTailwindPagination,
|
|
53027
53029
|
$re as GlTextCopy,
|
|
53028
53030
|
Jse as GlTextInput,
|
|
53029
53031
|
Qse as GlTextInputFile,
|