golden-logic-ui 1.0.250 → 1.0.251
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 +470 -470
- package/dist/golden-logic-ui.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/golden-logic-ui.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { openBlock as ye, createElementBlock as xe, createElementVNode as N, createCommentVNode as xt, createStaticVNode as Tq, reactive as Eq, resolveComponent as ky, Fragment as Co, createVNode as cb, normalizeClass as dn, toDisplayString as bt, withModifiers as oc, withDirectives as pl, vModelText as vm, renderList as kr, normalizeStyle as Aq, computed as Fc, renderSlot as vf, ref as Ko, onMounted as b1, watch as ST, createTextVNode as So, vShow as n5, nextTick as Dj, createBlock as Ty, resolveDynamicComponent as o5, mergeProps as t5, withCtx as U8, vModelDynamic as Dq, provide as YG, inject as XG, pushScopeId as Oq, popScopeId as Rq, vModelCheckbox as JG, onBeforeUnmount as $q, toHandlers as Ej, onUnmounted as Mq, TransitionGroup as Pq, unref as Nq, resolveDirective as QG, markRaw as Bq } from "vue";
|
|
2
2
|
const Jr = ($, me) => {
|
|
3
|
-
const
|
|
3
|
+
const se = $.__vccOpts || $;
|
|
4
4
|
for (const [Ee, he] of me)
|
|
5
|
-
|
|
6
|
-
return
|
|
5
|
+
se[Ee] = he;
|
|
6
|
+
return se;
|
|
7
7
|
}, Iq = {
|
|
8
8
|
props: ["isOpen"],
|
|
9
9
|
methods: {
|
|
@@ -27,8 +27,8 @@ const Jr = ($, me) => {
|
|
|
27
27
|
class: "hidden sm:inline-block sm:align-middle sm:h-screen",
|
|
28
28
|
"aria-hidden": "true"
|
|
29
29
|
}, "", -1), zq = { class: "inline-block overflow-hidden text-left align-bottom transition-all transform bg-white dark:bg-gray-800 rounded-lg shadow-xl sm:my-8 sm:align-middle sm:max-w-lg sm:w-full" }, Uq = /* @__PURE__ */ Tq('<div class="px-4 pt-5 pb-4 sm:p-6 sm:pb-4"><div class="sm:flex sm:items-start"><div class="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"><h3 class="text-lg font-medium leading-6" id="modal-title"> Confirm Deletion </h3><div class="mt-2"><p class="text-sm"> Are you sure you want to delete this item? This action cannot be undone. </p></div></div></div></div>', 1), Wq = { class: "border-t border-gray-200 rounded-b dark:border-gray-600 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse" };
|
|
30
|
-
function Zq($, me,
|
|
31
|
-
return
|
|
30
|
+
function Zq($, me, se, Ee, he, J) {
|
|
31
|
+
return se.isOpen ? (ye(), xe("div", Lq, [
|
|
32
32
|
N("div", Fq, [
|
|
33
33
|
Hq,
|
|
34
34
|
Vq,
|
|
@@ -135,7 +135,7 @@ const Oj = /* @__PURE__ */ Jr(Iq, [["render", Zq]]), Aj = Eq({
|
|
|
135
135
|
deleteAction() {
|
|
136
136
|
axios.delete(this.route_url + "/destroyMedia/" + this.media_id).then(($) => {
|
|
137
137
|
let me = this.uploadFileList.findIndex(
|
|
138
|
-
(
|
|
138
|
+
(se) => se.id === this.media_id
|
|
139
139
|
);
|
|
140
140
|
me !== -1 && this.uploadFileList.splice(me, 1), this.closeDeleteModal(), s5.methods.add({
|
|
141
141
|
message: "Item deleted successfully.",
|
|
@@ -151,8 +151,8 @@ const Oj = /* @__PURE__ */ Jr(Iq, [["render", Zq]]), Aj = Eq({
|
|
|
151
151
|
},
|
|
152
152
|
formatFileSize($) {
|
|
153
153
|
if ($ === 0) return "0 Bytes";
|
|
154
|
-
const me = 1024,
|
|
155
|
-
return parseFloat(($ / Math.pow(me, Ee)).toFixed(2)) + " " +
|
|
154
|
+
const me = 1024, se = ["Bytes", "KB", "MB", "GB", "TB"], Ee = Math.floor(Math.log($) / Math.log(me));
|
|
155
|
+
return parseFloat(($ / Math.pow(me, Ee)).toFixed(2)) + " " + se[Ee];
|
|
156
156
|
},
|
|
157
157
|
onDragOver($) {
|
|
158
158
|
$.preventDefault(), this.isDragging = !0, $.dataTransfer.dropEffect = "copy";
|
|
@@ -163,21 +163,21 @@ const Oj = /* @__PURE__ */ Jr(Iq, [["render", Zq]]), Aj = Eq({
|
|
|
163
163
|
onDrop($) {
|
|
164
164
|
$.preventDefault(), this.isDragging = !1;
|
|
165
165
|
const me = $.dataTransfer.files;
|
|
166
|
-
Array.from(me).forEach((
|
|
167
|
-
this.uploadFile(
|
|
166
|
+
Array.from(me).forEach((se) => {
|
|
167
|
+
this.uploadFile(se);
|
|
168
168
|
});
|
|
169
169
|
},
|
|
170
170
|
async uploadFiles($) {
|
|
171
|
-
const me = $.target.files,
|
|
171
|
+
const me = $.target.files, se = Array.from(me).map(
|
|
172
172
|
(Ee) => this.uploadFile(Ee)
|
|
173
173
|
);
|
|
174
|
-
await Promise.all(
|
|
174
|
+
await Promise.all(se), this.$emit("uploaded"), this.$emit("update:modelValue", this.uploadFileList), console.log("uploadFileList", this.uploadFileList);
|
|
175
175
|
},
|
|
176
176
|
getFirstError($, me) {
|
|
177
177
|
return $.hasOwnProperty(me) ? $[me][0] : "";
|
|
178
178
|
},
|
|
179
179
|
async uploadFile($) {
|
|
180
|
-
return new Promise((me,
|
|
180
|
+
return new Promise((me, se) => {
|
|
181
181
|
$ || me();
|
|
182
182
|
const Ee = new FormData();
|
|
183
183
|
Ee.append("file", $), Object.entries(this.file_config).forEach(([he, J]) => {
|
|
@@ -245,7 +245,7 @@ const Oj = /* @__PURE__ */ Jr(Iq, [["render", Zq]]), Aj = Eq({
|
|
|
245
245
|
class: "text-3xl fas fa-file-alt",
|
|
246
246
|
"aria-hidden": "true"
|
|
247
247
|
}, null, -1), bK = { class: "flex flex-col ml-3" }, vK = { class: "text-xs" }, yK = { class: "text-xs" }, wK = { class: "flex gap-2" }, xK = ["href"], CK = ["onClick"];
|
|
248
|
-
function SK($, me,
|
|
248
|
+
function SK($, me, se, Ee, he, J) {
|
|
249
249
|
const Oe = ky("DeleteConfirmationModal");
|
|
250
250
|
return ye(), xe(Co, null, [
|
|
251
251
|
cb(Oe, {
|
|
@@ -263,9 +263,9 @@ function SK($, me, re, Ee, he, J) {
|
|
|
263
263
|
class: dn({
|
|
264
264
|
"gl-label-form": he.error_message_data == "",
|
|
265
265
|
"gl-label-form-invalid": he.error_message_data !== "",
|
|
266
|
-
required:
|
|
266
|
+
required: se.is_required
|
|
267
267
|
})
|
|
268
|
-
}, bt(
|
|
268
|
+
}, bt(se.label_name), 3),
|
|
269
269
|
N("div", {
|
|
270
270
|
onDragover: me[3] || (me[3] = oc((...Q) => J.onDragOver && J.onDragOver(...Q), ["prevent"])),
|
|
271
271
|
onDragleave: me[4] || (me[4] = oc((...Q) => J.onDragLeave && J.onDragLeave(...Q), ["prevent"])),
|
|
@@ -275,14 +275,14 @@ function SK($, me, re, Ee, he, J) {
|
|
|
275
275
|
N("div", qq, [
|
|
276
276
|
N("input", {
|
|
277
277
|
type: "file",
|
|
278
|
-
ref: "file_input" +
|
|
278
|
+
ref: "file_input" + se.field_name,
|
|
279
279
|
hidden: "",
|
|
280
|
-
multiple:
|
|
280
|
+
multiple: se.has_multiple_file,
|
|
281
281
|
onChange: me[0] || (me[0] = (...Q) => J.uploadFiles && J.uploadFiles(...Q))
|
|
282
282
|
}, null, 40, Kq),
|
|
283
283
|
pl(N("input", {
|
|
284
284
|
type: "hidden",
|
|
285
|
-
name:
|
|
285
|
+
name: se.field_name,
|
|
286
286
|
"onUpdate:modelValue": me[1] || (me[1] = (Q) => J.uploadFileListFinal = Q)
|
|
287
287
|
}, null, 8, Yq), [
|
|
288
288
|
[vm, J.uploadFileListFinal]
|
|
@@ -295,7 +295,7 @@ function SK($, me, re, Ee, he, J) {
|
|
|
295
295
|
])
|
|
296
296
|
], 32),
|
|
297
297
|
N("span", oK, bt(he.error_message_data), 1),
|
|
298
|
-
N("small", sK, bt(
|
|
298
|
+
N("small", sK, bt(se.description), 1),
|
|
299
299
|
he.files.length > 0 ? (ye(), xe("section", rK, [
|
|
300
300
|
(ye(!0), xe(Co, null, kr(he.files, (Q, He) => (ye(), xe("li", aK, [
|
|
301
301
|
lK,
|
|
@@ -328,7 +328,7 @@ function SK($, me, re, Ee, he, J) {
|
|
|
328
328
|
target: "_blank",
|
|
329
329
|
class: "text-lg text-blue-600 cursor-pointer dark:text-blue-400 fas fa-download"
|
|
330
330
|
}, null, 8, xK),
|
|
331
|
-
|
|
331
|
+
se.is_enable_delete ? (ye(), xe("i", {
|
|
332
332
|
key: 0,
|
|
333
333
|
onClick: (gt) => {
|
|
334
334
|
he.media_id = Q.id, he.open_delete_modal = !0;
|
|
@@ -377,20 +377,20 @@ const vae = /* @__PURE__ */ Jr(Gq, [["render", SK]]), _K = {
|
|
|
377
377
|
mounted() {
|
|
378
378
|
}
|
|
379
379
|
}, kK = { class: "grid w-full gap-1 mt-5 mb-5 md:gap-0 md:grid-cols-10 language-selector" }, TK = ["name", "value", "id", "checked"], EK = ["for"];
|
|
380
|
-
function AK($, me,
|
|
380
|
+
function AK($, me, se, Ee, he, J) {
|
|
381
381
|
return ye(), xe("ul", kK, [
|
|
382
382
|
(ye(!0), xe(Co, null, kr(he.locals, (Oe, Q) => (ye(), xe("li", null, [
|
|
383
383
|
N("input", {
|
|
384
384
|
type: "radio",
|
|
385
|
-
name:
|
|
385
|
+
name: se.trans_selector_name,
|
|
386
386
|
value: Oe,
|
|
387
387
|
class: "hidden peer",
|
|
388
|
-
id: Oe + "_" +
|
|
388
|
+
id: Oe + "_" + se.field_name,
|
|
389
389
|
autocomplete: "off",
|
|
390
390
|
checked: Oe === he.default_language
|
|
391
391
|
}, null, 8, TK),
|
|
392
392
|
N("label", {
|
|
393
|
-
for: Oe + "_" +
|
|
393
|
+
for: Oe + "_" + se.field_name,
|
|
394
394
|
class: dn([{
|
|
395
395
|
"border md:!rounded-s-lg": Q === 0,
|
|
396
396
|
"border md:!rounded-e-lg": Q === he.locals.length - 1,
|
|
@@ -413,9 +413,9 @@ const yae = /* @__PURE__ */ Jr(_K, [["render", AK]]), DK = { class: "bg-white bo
|
|
|
413
413
|
}
|
|
414
414
|
},
|
|
415
415
|
setup($) {
|
|
416
|
-
const me = $,
|
|
416
|
+
const me = $, se = Fc(() => me.class), Ee = Fc(() => me.body_class);
|
|
417
417
|
return (he, J) => (ye(), xe("div", {
|
|
418
|
-
class: dn(["flex flex-col gap-9",
|
|
418
|
+
class: dn(["flex flex-col gap-9", se.value])
|
|
419
419
|
}, [
|
|
420
420
|
N("div", DK, [
|
|
421
421
|
N("div", OK, [
|
|
@@ -514,9 +514,9 @@ const yae = /* @__PURE__ */ Jr(_K, [["render", AK]]), DK = { class: "bg-white bo
|
|
|
514
514
|
},
|
|
515
515
|
emits: ["update:modelValue", "selected", "selectionChanged"],
|
|
516
516
|
setup($, { emit: me }) {
|
|
517
|
-
const
|
|
517
|
+
const se = $, Ee = me, he = Ko(null), J = Ko([]), Oe = Ko([]), Q = Ko(0), He = Ko(!1), gt = Ko(""), jt = Ko("");
|
|
518
518
|
b1(() => {
|
|
519
|
-
jt.value = No(),
|
|
519
|
+
jt.value = No(), se.show || (document.body.addEventListener("click", (Ge) => {
|
|
520
520
|
Xn(Ge);
|
|
521
521
|
}), document.addEventListener("keypress", (Ge) => {
|
|
522
522
|
Ge.key === "Enter" && Ge.target.form && Ge.preventDefault();
|
|
@@ -526,7 +526,7 @@ const yae = /* @__PURE__ */ Jr(_K, [["render", AK]]), DK = { class: "bg-white bo
|
|
|
526
526
|
const Ge = [], A = new RegExp(gt.value, "ig");
|
|
527
527
|
for (const Xt of wn.value) {
|
|
528
528
|
const nt = String(Xt.name);
|
|
529
|
-
(gt.value.length < 1 || nt.match(A)) && Ge.length <
|
|
529
|
+
(gt.value.length < 1 || nt.match(A)) && Ge.length < se.maxItem && Ge.push(Xt);
|
|
530
530
|
}
|
|
531
531
|
return Ge;
|
|
532
532
|
});
|
|
@@ -538,7 +538,7 @@ const yae = /* @__PURE__ */ Jr(_K, [["render", AK]]), DK = { class: "bg-white bo
|
|
|
538
538
|
"ArrowDown",
|
|
539
539
|
"Enter"
|
|
540
540
|
].includes(Ge.key)) {
|
|
541
|
-
if (["ArrowUp", "ArrowDown"].includes(Ge.key) && Ge.preventDefault(), Ge.key === "ArrowDown" &&
|
|
541
|
+
if (["ArrowUp", "ArrowDown"].includes(Ge.key) && Ge.preventDefault(), Ge.key === "ArrowDown" && se.posts === "")
|
|
542
542
|
return;
|
|
543
543
|
os(Ge.key);
|
|
544
544
|
}
|
|
@@ -573,7 +573,7 @@ const yae = /* @__PURE__ */ Jr(_K, [["render", AK]]), DK = { class: "bg-white bo
|
|
|
573
573
|
A !== -1 && J.value.splice(A, 1), Oe.value = J.value.map((Xt) => Xt.id), Ee("update:modelValue", Oe.value), Ee("selected", J.value), Ee("selectionChanged", J.value);
|
|
574
574
|
}
|
|
575
575
|
function Xn(Ge) {
|
|
576
|
-
Ge.target.id !=
|
|
576
|
+
Ge.target.id != se.field_name + "search" + jt.value && Ge.target.id != se.field_name && !Ge.target.classList.contains("showOptions") && (Jn(), Q.value = 0, He.value = !1);
|
|
577
577
|
}
|
|
578
578
|
function oe(Ge) {
|
|
579
579
|
const A = `${Ge}${jt.value}`, Xt = document.getElementById(A);
|
|
@@ -587,7 +587,7 @@ const yae = /* @__PURE__ */ Jr(_K, [["render", AK]]), DK = { class: "bg-white bo
|
|
|
587
587
|
Ge === "ArrowDown" && Q.value < Wo.value.length && (Q.value++, oe(Q.value)), Ge === "ArrowUp" && Q.value > 1 && (Q.value--, oe(Q.value)), Ge === "Enter" && Pn(Q.value);
|
|
588
588
|
}
|
|
589
589
|
function St() {
|
|
590
|
-
return
|
|
590
|
+
return se.options.map((Ge, A) => typeof Ge == "object" ? Ge : { id: Ge, name: Ge });
|
|
591
591
|
}
|
|
592
592
|
function Fe() {
|
|
593
593
|
if (Pt(J.value))
|
|
@@ -600,13 +600,13 @@ const yae = /* @__PURE__ */ Jr(_K, [["render", AK]]), DK = { class: "bg-white bo
|
|
|
600
600
|
(A) => String(A) === String(Ge.id)
|
|
601
601
|
)
|
|
602
602
|
) || [];
|
|
603
|
-
if (
|
|
604
|
-
return ur(
|
|
605
|
-
(Ge) =>
|
|
603
|
+
if (se.modelValue)
|
|
604
|
+
return ur(se.modelValue) ? J.value = wn.value.filter(
|
|
605
|
+
(Ge) => se.modelValue.some(
|
|
606
606
|
(A) => String(A.id) === String(Ge.id)
|
|
607
607
|
)
|
|
608
608
|
) || [] : J.value = wn.value.filter(
|
|
609
|
-
(Ge) =>
|
|
609
|
+
(Ge) => se.modelValue.some(
|
|
610
610
|
(A) => String(A) === String(Ge.id)
|
|
611
611
|
)
|
|
612
612
|
) || [];
|
|
@@ -616,14 +616,14 @@ const yae = /* @__PURE__ */ Jr(_K, [["render", AK]]), DK = { class: "bg-white bo
|
|
|
616
616
|
A !== -1 ? J.value.splice(A, 1) : J.value.push(Ge), He.value = !1, Oe.value = J.value.map((Xt) => Xt.id), Ee("update:modelValue", Oe.value), Ee("selected", J.value), Ee("selectionChanged", J.value);
|
|
617
617
|
}
|
|
618
618
|
function Ro() {
|
|
619
|
-
if (!
|
|
619
|
+
if (!se.show) {
|
|
620
620
|
if (He.value) {
|
|
621
621
|
He.value = !1;
|
|
622
622
|
return;
|
|
623
623
|
}
|
|
624
624
|
gt.value = "", He.value = !0, Dj(() => {
|
|
625
625
|
var Ge = document.getElementById(
|
|
626
|
-
`${
|
|
626
|
+
`${se.field_name}search${jt.value}`
|
|
627
627
|
);
|
|
628
628
|
Ge && Ge.focus();
|
|
629
629
|
});
|
|
@@ -816,8 +816,8 @@ const yae = /* @__PURE__ */ Jr(_K, [["render", AK]]), DK = { class: "bg-white bo
|
|
|
816
816
|
fill: "#1C64F2"
|
|
817
817
|
})
|
|
818
818
|
], -1);
|
|
819
|
-
function XK($, me,
|
|
820
|
-
return
|
|
819
|
+
function XK($, me, se, Ee, he, J) {
|
|
820
|
+
return se.is_loading ? (ye(), Ty(o5("button"), {
|
|
821
821
|
key: 1,
|
|
822
822
|
disabled: "",
|
|
823
823
|
class: dn(` h-[2.5rem] flex items-center gap-2 focus:outline-none text-sm px-2 py-2 me-2 font-medium rounded-lg ${J.buttonTypeClass}`)
|
|
@@ -827,18 +827,18 @@ function XK($, me, re, Ee, he, J) {
|
|
|
827
827
|
So(" Loading... ")
|
|
828
828
|
]),
|
|
829
829
|
_: 1
|
|
830
|
-
}, 8, ["class"])) : (ye(), Ty(o5(
|
|
830
|
+
}, 8, ["class"])) : (ye(), Ty(o5(se.tag), t5({
|
|
831
831
|
key: 0,
|
|
832
|
-
type:
|
|
833
|
-
disabled:
|
|
834
|
-
}, { type:
|
|
835
|
-
href:
|
|
836
|
-
class: ` ${
|
|
832
|
+
type: se.is_submit,
|
|
833
|
+
disabled: se.is_disabled
|
|
834
|
+
}, { type: se.is_submit ? "submit" : void 0 }, {
|
|
835
|
+
href: se.tag === "a" ? se.href : void 0,
|
|
836
|
+
class: ` ${se.is_disabled ? "cursor-not-allowed opacity-50" : ""} ${se.icon ? "flex" : ""} h-[2.5rem] items-center gap-2 focus:outline-none text-sm px-3 py-2 me-2 font-medium rounded-lg ${J.buttonTypeClass}`
|
|
837
837
|
}), {
|
|
838
838
|
default: U8(() => [
|
|
839
|
-
|
|
839
|
+
se.icon ? (ye(), xe("i", {
|
|
840
840
|
key: 0,
|
|
841
|
-
class: dn([
|
|
841
|
+
class: dn([se.icon, "text-base"])
|
|
842
842
|
}, null, 2)) : xt("", !0),
|
|
843
843
|
vf($.$slots, "default")
|
|
844
844
|
]),
|
|
@@ -902,8 +902,8 @@ const Cae = /* @__PURE__ */ Jr(KK, [["render", XK]]), JK = { class: "font-bold p
|
|
|
902
902
|
}
|
|
903
903
|
},
|
|
904
904
|
emits: ["update:modelValue", "update:modelValueTranslate", "keydown"],
|
|
905
|
-
setup($, { expose: me, emit:
|
|
906
|
-
const Ee = $, he =
|
|
905
|
+
setup($, { expose: me, emit: se }) {
|
|
906
|
+
const Ee = $, he = se, J = Ko(null), Oe = Ko(null);
|
|
907
907
|
return b1(() => {
|
|
908
908
|
J.value !== null && J.value.hasAttribute("autofocus") && J.value.focus(), Ee.model_value && (he("update:modelValue", Ee.model_value), J.value.value = Ee.model_value), Ee.model_value_translate, Ee.translatable && axios.post("/admin/get_field_translations", {
|
|
909
909
|
model: Ee.translatable.model,
|
|
@@ -1038,8 +1038,8 @@ const Cae = /* @__PURE__ */ Jr(KK, [["render", XK]]), JK = { class: "font-bold p
|
|
|
1038
1038
|
}
|
|
1039
1039
|
},
|
|
1040
1040
|
emits: ["update:modelValue", "update:modelValueTranslate", "keydown"],
|
|
1041
|
-
setup($, { expose: me, emit:
|
|
1042
|
-
const Ee = $, he =
|
|
1041
|
+
setup($, { expose: me, emit: se }) {
|
|
1042
|
+
const Ee = $, he = se, J = Ko(null), Oe = Ko(null);
|
|
1043
1043
|
return b1(() => {
|
|
1044
1044
|
tinymce.init({
|
|
1045
1045
|
selector: "#" + Ee.field_name,
|
|
@@ -1177,8 +1177,8 @@ const Cae = /* @__PURE__ */ Jr(KK, [["render", XK]]), JK = { class: "font-bold p
|
|
|
1177
1177
|
}
|
|
1178
1178
|
},
|
|
1179
1179
|
emits: ["update:modelValue", "update:modelValueTranslate", "keydown"],
|
|
1180
|
-
setup($, { expose: me, emit:
|
|
1181
|
-
const Ee = $, he =
|
|
1180
|
+
setup($, { expose: me, emit: se }) {
|
|
1181
|
+
const Ee = $, he = se, J = Ko(null), Oe = Ko(null);
|
|
1182
1182
|
return b1(() => {
|
|
1183
1183
|
J.value !== null && J.value.hasAttribute("autofocus") && J.value.focus(), Ee.model_value && (he("update:modelValue", Ee.model_value), J.value.value = Ee.model_value), Ee.model_value_translate, Ee.translatable && axios.post("/admin/get_field_translations", {
|
|
1184
1184
|
model: Ee.translatable.model,
|
|
@@ -1298,8 +1298,8 @@ const Cae = /* @__PURE__ */ Jr(KK, [["render", XK]]), JK = { class: "font-bold p
|
|
|
1298
1298
|
}
|
|
1299
1299
|
},
|
|
1300
1300
|
emits: ["update:modelValue", "keydown"],
|
|
1301
|
-
setup($, { expose: me, emit:
|
|
1302
|
-
const Ee = $, he =
|
|
1301
|
+
setup($, { expose: me, emit: se }) {
|
|
1302
|
+
const Ee = $, he = se, J = Ko(null);
|
|
1303
1303
|
b1(() => {
|
|
1304
1304
|
J.value !== null && J.value.hasAttribute("autofocus") && J.value.focus();
|
|
1305
1305
|
});
|
|
@@ -1393,21 +1393,21 @@ const Cae = /* @__PURE__ */ Jr(KK, [["render", XK]]), JK = { class: "font-bold p
|
|
|
1393
1393
|
},
|
|
1394
1394
|
emits: ["update:modelValue", "keydown"],
|
|
1395
1395
|
setup($, { emit: me }) {
|
|
1396
|
-
const
|
|
1397
|
-
start:
|
|
1398
|
-
end:
|
|
1396
|
+
const se = $, Ee = me, he = Ko(""), J = Ko({
|
|
1397
|
+
start: se.modelValue.start,
|
|
1398
|
+
end: se.modelValue.end
|
|
1399
1399
|
});
|
|
1400
1400
|
Ko(""), Ko("");
|
|
1401
1401
|
const Oe = Fc({
|
|
1402
1402
|
get() {
|
|
1403
|
-
return
|
|
1403
|
+
return se.modelValue.start;
|
|
1404
1404
|
},
|
|
1405
1405
|
set(gt) {
|
|
1406
1406
|
J.value.start = gt, He(J.value.start, J.value.end), Ee("update:modelValue", { start: J.value.start, end: J.value.end }), Ee("keydown", { start: J.value.start, end: J.value.end });
|
|
1407
1407
|
}
|
|
1408
1408
|
}), Q = Fc({
|
|
1409
1409
|
get() {
|
|
1410
|
-
return
|
|
1410
|
+
return se.modelValue.end;
|
|
1411
1411
|
},
|
|
1412
1412
|
set(gt) {
|
|
1413
1413
|
J.value.end = gt, He(J.value.start, J.value.end), Ee("update:modelValue", { start: J.value.start, end: J.value.end }), Ee("keydown", { start: J.value.start, end: J.value.end });
|
|
@@ -1520,9 +1520,9 @@ const Cae = /* @__PURE__ */ Jr(KK, [["render", XK]]), JK = { class: "font-bold p
|
|
|
1520
1520
|
},
|
|
1521
1521
|
emits: ["update:modelValue", "keydown"],
|
|
1522
1522
|
setup($, { emit: me }) {
|
|
1523
|
-
const
|
|
1523
|
+
const se = me, Ee = Ko(null), he = (J) => {
|
|
1524
1524
|
const Oe = J.target.files[0];
|
|
1525
|
-
console.log(Oe),
|
|
1525
|
+
console.log(Oe), se("keydown", J), Oe && se("update:modelValue", Oe);
|
|
1526
1526
|
};
|
|
1527
1527
|
return (J, Oe) => (ye(), xe(Co, null, [
|
|
1528
1528
|
$.show ? (ye(), xe("div", {
|
|
@@ -1566,16 +1566,16 @@ const Cae = /* @__PURE__ */ Jr(KK, [["render", XK]]), JK = { class: "font-bold p
|
|
|
1566
1566
|
}
|
|
1567
1567
|
}, QY = {
|
|
1568
1568
|
setup($, { slots: me }) {
|
|
1569
|
-
const
|
|
1569
|
+
const se = Ko(me.default().map((he) => he.props));
|
|
1570
1570
|
console.log(me.default());
|
|
1571
|
-
const Ee = Ko(
|
|
1571
|
+
const Ee = Ko(se.value[0].title);
|
|
1572
1572
|
return YG("selectedTitle", Ee), {
|
|
1573
|
-
tabs:
|
|
1573
|
+
tabs: se,
|
|
1574
1574
|
selectedTitle: Ee
|
|
1575
1575
|
};
|
|
1576
1576
|
}
|
|
1577
1577
|
}, eX = { class: "flex flex-wrap" }, tX = { class: "w-full" }, nX = { class: "flex flex-row flex-wrap gap-1 pt-3 pb-4 mb-0 list-none" }, oX = ["onClick"], sX = { 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" }, rX = { class: "flex-auto px-4 py-5" }, aX = { class: "tab-content tab-space" };
|
|
1578
|
-
function lX($, me,
|
|
1578
|
+
function lX($, me, se, Ee, he, J) {
|
|
1579
1579
|
return ye(), xe(Co, null, [
|
|
1580
1580
|
N("div", eX, [
|
|
1581
1581
|
N("div", tX, [
|
|
@@ -1617,8 +1617,8 @@ const Dae = /* @__PURE__ */ Jr(QY, [["render", lX]]), cX = {
|
|
|
1617
1617
|
key: 0,
|
|
1618
1618
|
class: "block"
|
|
1619
1619
|
};
|
|
1620
|
-
function uX($, me,
|
|
1621
|
-
return
|
|
1620
|
+
function uX($, me, se, Ee, he, J) {
|
|
1621
|
+
return se.title == Ee.selectedTitle ? (ye(), xe("div", iX, [
|
|
1622
1622
|
vf($.$slots, "default")
|
|
1623
1623
|
])) : xt("", !0);
|
|
1624
1624
|
}
|
|
@@ -1674,14 +1674,14 @@ const Oae = /* @__PURE__ */ Jr(cX, [["render", uX]]), dX = {
|
|
|
1674
1674
|
},
|
|
1675
1675
|
generateRandomString($) {
|
|
1676
1676
|
let me = "";
|
|
1677
|
-
const
|
|
1677
|
+
const se = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", Ee = se.length;
|
|
1678
1678
|
for (let he = 0; he < $; he++)
|
|
1679
|
-
me +=
|
|
1679
|
+
me += se.charAt(Math.floor(Math.random() * Ee));
|
|
1680
1680
|
return me;
|
|
1681
1681
|
},
|
|
1682
1682
|
movingActions() {
|
|
1683
1683
|
let $ = this, me = document.getElementById("slider_" + this.Random_string);
|
|
1684
|
-
const
|
|
1684
|
+
const se = (he) => {
|
|
1685
1685
|
me.style.cursor = "grabbing";
|
|
1686
1686
|
const J = (Q) => {
|
|
1687
1687
|
const He = Q.clientX || Q.touches && Q.touches[0] && Q.touches[0].clientX, gt = Q.clientY || Q.touches && Q.touches[0] && Q.touches[0].clientY, jt = He - $.initialX, wn = gt - $.initialY;
|
|
@@ -1693,7 +1693,7 @@ const Oae = /* @__PURE__ */ Jr(cX, [["render", uX]]), dX = {
|
|
|
1693
1693
|
}, Ee = (he) => {
|
|
1694
1694
|
he.key === "ArrowLeft" ? $.prev() : he.key === "ArrowRight" && $.next();
|
|
1695
1695
|
};
|
|
1696
|
-
me.addEventListener("mousedown",
|
|
1696
|
+
me.addEventListener("mousedown", se), me.addEventListener("touchstart", se), document.addEventListener("keydown", Ee);
|
|
1697
1697
|
},
|
|
1698
1698
|
next() {
|
|
1699
1699
|
this.currentDot < this.dotsNavigation.length && (this.currentDot++, this.setDot(this.currentDot));
|
|
@@ -1702,7 +1702,7 @@ const Oae = /* @__PURE__ */ Jr(cX, [["render", uX]]), dX = {
|
|
|
1702
1702
|
this.currentDot > 1 && (this.currentDot--, this.setDot(this.currentDot));
|
|
1703
1703
|
},
|
|
1704
1704
|
initSlider() {
|
|
1705
|
-
let $ = document.getElementById("sliderContainer_" + this.Random_string), me = document.getElementById("mainSliderContainer_" + this.Random_string),
|
|
1705
|
+
let $ = document.getElementById("sliderContainer_" + this.Random_string), me = document.getElementById("mainSliderContainer_" + this.Random_string), se = document.getElementById("slider_" + this.Random_string), Ee = se.querySelectorAll("li"), he = Array.from(Ee).filter((Q) => Q.parentNode === se), J = $.clientWidth, Oe = J / this.elementsToShow;
|
|
1706
1706
|
if (this.elementsToShow > 1 ? document.body.clientWidth < 1e3 ? (this.elementsToShow = 1, Oe = this.hide_arrow ? me.clientWidth : J) : document.body.clientWidth < 1500 && (this.elementsToShow = 2) : (this.elementsToShow = 1, Oe = this.hide_arrow ? me.clientWidth : J), he.length > 1) {
|
|
1707
1707
|
this.dotsNum = this.elementsToShow == 1 ? he.length : he.length - this.elementsToShow + 1;
|
|
1708
1708
|
let Q = this.elementsToShow == 1 ? Oe * he.length / this.dotsNum : Oe * (he.length - this.elementsToShow) / (this.dotsNum - 1);
|
|
@@ -1710,7 +1710,7 @@ const Oae = /* @__PURE__ */ Jr(cX, [["render", uX]]), dX = {
|
|
|
1710
1710
|
for (let He = 0; He < this.dotsNum; He++)
|
|
1711
1711
|
this.dotsNavigation.push(Q * He);
|
|
1712
1712
|
}
|
|
1713
|
-
|
|
1713
|
+
se.style.width = he.length * Oe + "px", se.style.transition = "margin", se.style.transitionDuration = "1s";
|
|
1714
1714
|
for (let Q = 0; Q < he.length; Q++) {
|
|
1715
1715
|
const He = he[Q];
|
|
1716
1716
|
He.style.width = Oe + "px";
|
|
@@ -1906,20 +1906,20 @@ const Oae = /* @__PURE__ */ Jr(cX, [["render", uX]]), dX = {
|
|
|
1906
1906
|
}, null, -1)), gJ = [
|
|
1907
1907
|
fJ
|
|
1908
1908
|
];
|
|
1909
|
-
function hJ($, me,
|
|
1909
|
+
function hJ($, me, se, Ee, he, J) {
|
|
1910
1910
|
return ye(), xe("div", null, [
|
|
1911
1911
|
N("div", {
|
|
1912
|
-
class: dn(["", !
|
|
1912
|
+
class: dn(["", !se.hide_arrow && se.slider_arrows_indicators_position == "arrows_outside_slide" ? "flex" : "relative block"]),
|
|
1913
1913
|
id: "mainSliderContainer_" + $.Random_string
|
|
1914
1914
|
}, [
|
|
1915
|
-
$.dotsNum > 0 && !
|
|
1915
|
+
$.dotsNum > 0 && !se.hide_arrow && se.slider_arrows_indicators_position == "arrows_outside_slider" ? (ye(), xe("div", fX, [
|
|
1916
1916
|
N("div", gX, [
|
|
1917
1917
|
N("button", {
|
|
1918
1918
|
class: "p-3 mr-5 rounded-full shadow-lg arrow_button_styles",
|
|
1919
1919
|
onClick: me[0] || (me[0] = (Oe) => J.prev())
|
|
1920
1920
|
}, [
|
|
1921
|
-
|
|
1922
|
-
|
|
1921
|
+
se.direction_property == "ltr" ? (ye(), xe("svg", hX, bX)) : xt("", !0),
|
|
1922
|
+
se.direction_property == "rtl" ? (ye(), xe("svg", vX, wX)) : xt("", !0)
|
|
1923
1923
|
])
|
|
1924
1924
|
])
|
|
1925
1925
|
])) : xt("", !0),
|
|
@@ -1931,37 +1931,37 @@ function hJ($, me, re, Ee, he, J) {
|
|
|
1931
1931
|
class: "flex",
|
|
1932
1932
|
id: "slider_" + $.Random_string
|
|
1933
1933
|
}, [
|
|
1934
|
-
$.dotsNum > 0 && !
|
|
1934
|
+
$.dotsNum > 0 && !se.hide_arrow && se.slider_arrows_indicators_position == "arrows_indicators_inside_slider" ? (ye(), xe("div", {
|
|
1935
1935
|
key: 0,
|
|
1936
|
-
class: dn(["items-center justify-center hidden arrow_button xl:flex xxl:flex md:flex sm:flex",
|
|
1936
|
+
class: dn(["items-center justify-center hidden arrow_button xl:flex xxl:flex md:flex sm:flex", se.direction_property == "rtl" ? "arrow_button_next" : "arrow_button_prev"])
|
|
1937
1937
|
}, [
|
|
1938
1938
|
N("div", SX, [
|
|
1939
1939
|
N("button", {
|
|
1940
1940
|
class: "p-3 rounded-full shadow-lg arrow_button_styles",
|
|
1941
1941
|
onClick: me[1] || (me[1] = oc((Oe) => J.prev(), ["stop"]))
|
|
1942
1942
|
}, [
|
|
1943
|
-
|
|
1944
|
-
|
|
1943
|
+
se.direction_property == "ltr" ? (ye(), xe("svg", _X, TX)) : xt("", !0),
|
|
1944
|
+
se.direction_property == "rtl" ? (ye(), xe("svg", EX, DX)) : xt("", !0)
|
|
1945
1945
|
])
|
|
1946
1946
|
])
|
|
1947
1947
|
], 2)) : xt("", !0),
|
|
1948
1948
|
vf($.$slots, "default", {}, void 0, !0),
|
|
1949
|
-
$.dotsNum > 0 && !
|
|
1949
|
+
$.dotsNum > 0 && !se.hide_arrow && se.slider_arrows_indicators_position == "arrows_indicators_inside_slider" ? (ye(), xe("div", {
|
|
1950
1950
|
key: 1,
|
|
1951
|
-
class: dn(["items-center justify-center hidden xl:flex xxl:flex md:flex sm:flex arrow_button",
|
|
1951
|
+
class: dn(["items-center justify-center hidden xl:flex xxl:flex md:flex sm:flex arrow_button", se.direction_property == "rtl" ? "arrow_button_prev" : "arrow_button_next"])
|
|
1952
1952
|
}, [
|
|
1953
1953
|
N("div", OX, [
|
|
1954
1954
|
N("button", {
|
|
1955
1955
|
class: "p-3 rounded-full shadow-lg arrow_button_styles",
|
|
1956
1956
|
onClick: me[2] || (me[2] = oc((Oe) => J.next(), ["stop"]))
|
|
1957
1957
|
}, [
|
|
1958
|
-
|
|
1959
|
-
|
|
1958
|
+
se.direction_property == "ltr" ? (ye(), xe("svg", RX, MX)) : xt("", !0),
|
|
1959
|
+
se.direction_property == "rtl" ? (ye(), xe("svg", PX, BX)) : xt("", !0)
|
|
1960
1960
|
])
|
|
1961
1961
|
])
|
|
1962
1962
|
], 2)) : xt("", !0)
|
|
1963
1963
|
], 8, CX),
|
|
1964
|
-
|
|
1964
|
+
se.slider_arrows_indicators_position != "arrows_indicators_below_slider" ? (ye(), xe("div", {
|
|
1965
1965
|
key: 0,
|
|
1966
1966
|
class: dn(["flex justify-center mb-1 space-x-1", J.sliderIndicatorsAction()])
|
|
1967
1967
|
}, [
|
|
@@ -1972,7 +1972,7 @@ function hJ($, me, re, Ee, he, J) {
|
|
|
1972
1972
|
onClick: (Q) => J.setDot(Oe)
|
|
1973
1973
|
}, FX, 10, IX))), 128))
|
|
1974
1974
|
], 2)) : xt("", !0),
|
|
1975
|
-
|
|
1975
|
+
se.slider_arrows_indicators_position == "arrows_indicators_below_slider" ? (ye(), xe("div", HX, [
|
|
1976
1976
|
N("div", {
|
|
1977
1977
|
class: dn(["flex justify-center mb-1 space-x-1", J.sliderIndicatorsAction()])
|
|
1978
1978
|
}, [
|
|
@@ -1987,11 +1987,11 @@ function hJ($, me, re, Ee, he, J) {
|
|
|
1987
1987
|
N("div", ZX, [
|
|
1988
1988
|
N("div", jX, [
|
|
1989
1989
|
N("button", {
|
|
1990
|
-
class: dn(["p-3 rounded-full arrow_button_styles",
|
|
1990
|
+
class: dn(["p-3 rounded-full arrow_button_styles", se.direction_property == "rtl" ? "ml-3" : "mr-3"]),
|
|
1991
1991
|
onClick: me[3] || (me[3] = (Oe) => J.prev())
|
|
1992
1992
|
}, [
|
|
1993
|
-
|
|
1994
|
-
|
|
1993
|
+
se.direction_property == "ltr" ? (ye(), xe("svg", GX, KX)) : xt("", !0),
|
|
1994
|
+
se.direction_property == "rtl" ? (ye(), xe("svg", YX, JX)) : xt("", !0)
|
|
1995
1995
|
], 2)
|
|
1996
1996
|
])
|
|
1997
1997
|
]),
|
|
@@ -2001,22 +2001,22 @@ function hJ($, me, re, Ee, he, J) {
|
|
|
2001
2001
|
class: "p-3 rounded-full arrow_button_styles",
|
|
2002
2002
|
onClick: me[4] || (me[4] = (Oe) => J.next())
|
|
2003
2003
|
}, [
|
|
2004
|
-
|
|
2005
|
-
|
|
2004
|
+
se.direction_property == "ltr" ? (ye(), xe("svg", tJ, oJ)) : xt("", !0),
|
|
2005
|
+
se.direction_property == "rtl" ? (ye(), xe("svg", sJ, aJ)) : xt("", !0)
|
|
2006
2006
|
])
|
|
2007
2007
|
])
|
|
2008
2008
|
])
|
|
2009
2009
|
])) : xt("", !0)
|
|
2010
2010
|
])) : xt("", !0)
|
|
2011
2011
|
], 10, xX),
|
|
2012
|
-
$.dotsNum > 0 && !
|
|
2012
|
+
$.dotsNum > 0 && !se.hide_arrow && se.slider_arrows_indicators_position == "arrows_outside_slider" ? (ye(), xe("div", lJ, [
|
|
2013
2013
|
N("div", cJ, [
|
|
2014
2014
|
N("button", {
|
|
2015
2015
|
class: "p-3 ml-5 rounded-full shadow-lg arrow_button_styles",
|
|
2016
2016
|
onClick: me[5] || (me[5] = (Oe) => J.next())
|
|
2017
2017
|
}, [
|
|
2018
|
-
|
|
2019
|
-
|
|
2018
|
+
se.direction_property == "ltr" ? (ye(), xe("svg", iJ, dJ)) : xt("", !0),
|
|
2019
|
+
se.direction_property == "rtl" ? (ye(), xe("svg", mJ, gJ)) : xt("", !0)
|
|
2020
2020
|
])
|
|
2021
2021
|
])
|
|
2022
2022
|
])) : xt("", !0)
|
|
@@ -2066,7 +2066,7 @@ const Rae = /* @__PURE__ */ Jr(dX, [["render", hJ], ["__scopeId", "data-v-a94f16
|
|
|
2066
2066
|
},
|
|
2067
2067
|
emits: ["closeModal"],
|
|
2068
2068
|
setup($, { emit: me }) {
|
|
2069
|
-
const
|
|
2069
|
+
const se = $, Ee = me, he = () => {
|
|
2070
2070
|
document.documentElement.style.overflow = "hidden", document.documentElement.style.paddingRight = "0px";
|
|
2071
2071
|
}, J = () => {
|
|
2072
2072
|
document.documentElement.style.overflow = "", document.documentElement.style.paddingRight = "";
|
|
@@ -2074,7 +2074,7 @@ const Rae = /* @__PURE__ */ Jr(dX, [["render", hJ], ["__scopeId", "data-v-a94f16
|
|
|
2074
2074
|
Ee("closeModal"), J();
|
|
2075
2075
|
};
|
|
2076
2076
|
return ST(
|
|
2077
|
-
() =>
|
|
2077
|
+
() => se.is_open,
|
|
2078
2078
|
(Q, He) => {
|
|
2079
2079
|
Q ? he() : J();
|
|
2080
2080
|
},
|
|
@@ -2159,9 +2159,9 @@ const Rae = /* @__PURE__ */ Jr(dX, [["render", hJ], ["__scopeId", "data-v-a94f16
|
|
|
2159
2159
|
},
|
|
2160
2160
|
emits: ["update:modelValue"],
|
|
2161
2161
|
setup($, { emit: me }) {
|
|
2162
|
-
const
|
|
2162
|
+
const se = $, Ee = me, he = Ko(null), J = Fc({
|
|
2163
2163
|
get() {
|
|
2164
|
-
return
|
|
2164
|
+
return se.modelValue;
|
|
2165
2165
|
},
|
|
2166
2166
|
set(Oe) {
|
|
2167
2167
|
Ee("update:modelValue", Oe);
|
|
@@ -2270,9 +2270,9 @@ const Rae = /* @__PURE__ */ Jr(dX, [["render", hJ], ["__scopeId", "data-v-a94f16
|
|
|
2270
2270
|
},
|
|
2271
2271
|
emits: ["update:modelValue"],
|
|
2272
2272
|
setup($, { emit: me }) {
|
|
2273
|
-
const
|
|
2273
|
+
const se = $, Ee = me, he = Ko(null), J = Fc({
|
|
2274
2274
|
get() {
|
|
2275
|
-
return
|
|
2275
|
+
return se.modelValue;
|
|
2276
2276
|
},
|
|
2277
2277
|
set(Oe) {
|
|
2278
2278
|
Ee("update:modelValue", Oe);
|
|
@@ -2429,9 +2429,9 @@ const Rae = /* @__PURE__ */ Jr(dX, [["render", hJ], ["__scopeId", "data-v-a94f16
|
|
|
2429
2429
|
},
|
|
2430
2430
|
emits: ["update:modelValue", "selected", "selectionChanged"],
|
|
2431
2431
|
setup($, { emit: me }) {
|
|
2432
|
-
const
|
|
2432
|
+
const se = $, Ee = me, he = Ko(null), J = Ko({}), Oe = Ko(0), Q = Ko(!1), He = Ko(""), gt = Ko("");
|
|
2433
2433
|
b1(() => {
|
|
2434
|
-
gt.value = ir(),
|
|
2434
|
+
gt.value = ir(), se.show || (document.body.addEventListener("click", (St) => {
|
|
2435
2435
|
Pt(St);
|
|
2436
2436
|
}), document.addEventListener("keypress", (St) => {
|
|
2437
2437
|
St.key === "Enter" && St.target.form && St.preventDefault();
|
|
@@ -2441,7 +2441,7 @@ const Rae = /* @__PURE__ */ Jr(dX, [["render", hJ], ["__scopeId", "data-v-a94f16
|
|
|
2441
2441
|
const St = [], Fe = new RegExp(He.value, "ig");
|
|
2442
2442
|
for (const ie of jt.value) {
|
|
2443
2443
|
const Ro = String(ie.name);
|
|
2444
|
-
(He.value.length < 1 || Ro.match(Fe)) && St.length <
|
|
2444
|
+
(He.value.length < 1 || Ro.match(Fe)) && St.length < se.maxItem && St.push(ie);
|
|
2445
2445
|
}
|
|
2446
2446
|
return St;
|
|
2447
2447
|
});
|
|
@@ -2453,7 +2453,7 @@ const Rae = /* @__PURE__ */ Jr(dX, [["render", hJ], ["__scopeId", "data-v-a94f16
|
|
|
2453
2453
|
"ArrowDown",
|
|
2454
2454
|
"Enter"
|
|
2455
2455
|
].includes(St.key)) {
|
|
2456
|
-
if (["ArrowUp", "ArrowDown"].includes(St.key) && St.preventDefault(), St.key === "ArrowDown" &&
|
|
2456
|
+
if (["ArrowUp", "ArrowDown"].includes(St.key) && St.preventDefault(), St.key === "ArrowDown" && se.posts === "")
|
|
2457
2457
|
return;
|
|
2458
2458
|
fe(St.key);
|
|
2459
2459
|
}
|
|
@@ -2472,7 +2472,7 @@ const Rae = /* @__PURE__ */ Jr(dX, [["render", hJ], ["__scopeId", "data-v-a94f16
|
|
|
2472
2472
|
return St !== null && typeof St == "object" && Object.keys(St).length > 0;
|
|
2473
2473
|
}
|
|
2474
2474
|
function Pt(St) {
|
|
2475
|
-
St.target.id !=
|
|
2475
|
+
St.target.id != se.field_name + "search" + gt.value && St.target.id != se.field_name && !St.target.classList.contains("showOptions") && (os(), Oe.value = 0, Q.value = !1);
|
|
2476
2476
|
}
|
|
2477
2477
|
function ur(St) {
|
|
2478
2478
|
const Fe = `${St}${gt.value}`, ie = document.getElementById(Fe);
|
|
@@ -2486,7 +2486,7 @@ const Rae = /* @__PURE__ */ Jr(dX, [["render", hJ], ["__scopeId", "data-v-a94f16
|
|
|
2486
2486
|
St === "ArrowDown" && Oe.value < zn.value.length && (Oe.value++, ur(Oe.value)), St === "ArrowUp" && Oe.value > 1 && (Oe.value--, ur(Oe.value)), St === "Enter" && mn(Oe.value);
|
|
2487
2487
|
}
|
|
2488
2488
|
function Tt() {
|
|
2489
|
-
return
|
|
2489
|
+
return se.options.map((St, Fe) => typeof St == "object" ? St : { id: St, name: St });
|
|
2490
2490
|
}
|
|
2491
2491
|
function Ea() {
|
|
2492
2492
|
if (No(J.value))
|
|
@@ -2495,32 +2495,32 @@ const Rae = /* @__PURE__ */ Jr(dX, [["render", hJ], ["__scopeId", "data-v-a94f16
|
|
|
2495
2495
|
) || {} : jt.value.find(
|
|
2496
2496
|
(St) => String(St.id) === String(J.value)
|
|
2497
2497
|
) || {};
|
|
2498
|
-
if (
|
|
2499
|
-
return typeof
|
|
2500
|
-
(St) => String(St.id) === String(
|
|
2498
|
+
if (se.modelValue)
|
|
2499
|
+
return typeof se.modelValue == "object" ? jt.value.find(
|
|
2500
|
+
(St) => String(St.id) === String(se.modelValue.id)
|
|
2501
2501
|
) || {} : jt.value.find(
|
|
2502
|
-
(St) => String(St.id) === String(
|
|
2502
|
+
(St) => String(St.id) === String(se.modelValue)
|
|
2503
2503
|
) || {};
|
|
2504
2504
|
}
|
|
2505
2505
|
function Xn(St) {
|
|
2506
2506
|
J.value = St, Q.value = !1, Ee("update:modelValue", J.value.id), Ee("selected", J.value), Ee("selectionChanged", J.value);
|
|
2507
2507
|
}
|
|
2508
2508
|
function oe() {
|
|
2509
|
-
if (!
|
|
2509
|
+
if (!se.show) {
|
|
2510
2510
|
if (Q.value) {
|
|
2511
2511
|
Q.value = !1;
|
|
2512
2512
|
return;
|
|
2513
2513
|
}
|
|
2514
2514
|
He.value = "", Q.value = !0, Dj(() => {
|
|
2515
2515
|
var St = document.getElementById(
|
|
2516
|
-
`${
|
|
2516
|
+
`${se.field_name}search${gt.value}`
|
|
2517
2517
|
);
|
|
2518
2518
|
St && St.focus();
|
|
2519
2519
|
});
|
|
2520
2520
|
}
|
|
2521
2521
|
}
|
|
2522
2522
|
function Pn() {
|
|
2523
|
-
|
|
2523
|
+
se.show || (J.value = {}, He.value = "", Ee("update:modelValue", ""), oe());
|
|
2524
2524
|
}
|
|
2525
2525
|
function os() {
|
|
2526
2526
|
J.value.id || (J.value = {}, He.value = ""), Ee("selected", J.value);
|
|
@@ -2683,8 +2683,8 @@ const Rae = /* @__PURE__ */ Jr(dX, [["render", hJ], ["__scopeId", "data-v-a94f16
|
|
|
2683
2683
|
}
|
|
2684
2684
|
},
|
|
2685
2685
|
emits: ["update:modelValue", "keydown"],
|
|
2686
|
-
setup($, { expose: me, emit:
|
|
2687
|
-
const Ee = $, he =
|
|
2686
|
+
setup($, { expose: me, emit: se }) {
|
|
2687
|
+
const Ee = $, he = se, J = Ko(null);
|
|
2688
2688
|
b1(() => {
|
|
2689
2689
|
J.value !== null && J.value.hasAttribute("autofocus") && J.value.focus();
|
|
2690
2690
|
});
|
|
@@ -2757,7 +2757,7 @@ var eq = { exports: {} };
|
|
|
2757
2757
|
return "undefined";
|
|
2758
2758
|
var n = typeof e;
|
|
2759
2759
|
return n === "object" && (Array.prototype.isPrototypeOf(e) || e.constructor && e.constructor.name === "Array") ? "array" : n === "object" && (String.prototype.isPrototypeOf(e) || e.constructor && e.constructor.name === "String") ? "string" : n;
|
|
2760
|
-
},
|
|
2760
|
+
}, se = function(e) {
|
|
2761
2761
|
return [
|
|
2762
2762
|
"undefined",
|
|
2763
2763
|
"boolean",
|
|
@@ -2807,7 +2807,7 @@ var eq = { exports: {} };
|
|
|
2807
2807
|
if (e === n)
|
|
2808
2808
|
return !0;
|
|
2809
2809
|
var o = me(e), r = me(n);
|
|
2810
|
-
return o !== r ? !1 :
|
|
2810
|
+
return o !== r ? !1 : se(o) ? e === n : o === "array" ? He(wn).eq(e, n) : o === "object" ? jt(wn).eq(e, n) : !1;
|
|
2811
2811
|
});
|
|
2812
2812
|
const zn = Object.getPrototypeOf, Wo = (e, n, o) => {
|
|
2813
2813
|
var r;
|
|
@@ -3369,7 +3369,7 @@ var eq = { exports: {} };
|
|
|
3369
3369
|
for (; l--; )
|
|
3370
3370
|
o[r[l]] = {};
|
|
3371
3371
|
return o;
|
|
3372
|
-
},
|
|
3372
|
+
}, re = gn, Ie = (e, ...n) => {
|
|
3373
3373
|
for (let o = 0; o < n.length; o++) {
|
|
3374
3374
|
const r = n[o];
|
|
3375
3375
|
for (const l in r)
|
|
@@ -3391,7 +3391,7 @@ var eq = { exports: {} };
|
|
|
3391
3391
|
map: vl,
|
|
3392
3392
|
grep: qi,
|
|
3393
3393
|
inArray: Vr,
|
|
3394
|
-
hasOwn:
|
|
3394
|
+
hasOwn: re,
|
|
3395
3395
|
extend: Ie,
|
|
3396
3396
|
walk: Ot,
|
|
3397
3397
|
resolve: (e, n = window) => {
|
|
@@ -20151,10 +20151,10 @@ tinymce.IconManager.add("default", {
|
|
|
20151
20151
|
const $ = Object.getPrototypeOf, me = (t, s, a) => {
|
|
20152
20152
|
var c;
|
|
20153
20153
|
return a(t, s.prototype) ? !0 : ((c = t.constructor) === null || c === void 0 ? void 0 : c.name) === s.name;
|
|
20154
|
-
},
|
|
20154
|
+
}, se = (t) => {
|
|
20155
20155
|
const s = typeof t;
|
|
20156
20156
|
return t === null ? "null" : s === "object" && Array.isArray(t) ? "array" : s === "object" && me(t, String, (a, c) => c.isPrototypeOf(a)) ? "string" : s;
|
|
20157
|
-
}, Ee = (t) => (s) =>
|
|
20157
|
+
}, Ee = (t) => (s) => se(s) === t, he = (t) => (s) => typeof s === t, J = (t) => (s) => t === s, Oe = (t, s) => He(t) && me(t, s, (a, c) => $(a) === c), Q = Ee("string"), He = Ee("object"), gt = (t) => Oe(t, Object), jt = Ee("array"), wn = J(null), zn = he("boolean"), Wo = J(void 0), ir = (t) => t == null, No = (t) => !ir(t), Pt = he("function"), ur = he("number"), mn = (t, s) => {
|
|
20158
20158
|
if (jt(t)) {
|
|
20159
20159
|
for (let a = 0, c = t.length; a < c; ++a)
|
|
20160
20160
|
if (!s(t[a]))
|
|
@@ -20544,7 +20544,7 @@ tinymce.IconManager.add("default", {
|
|
|
20544
20544
|
}, I = (t, s) => A.from(Ws(t, s)), K = (t, s) => {
|
|
20545
20545
|
const a = t.dom;
|
|
20546
20546
|
return a && a.hasAttribute ? a.hasAttribute(s) : !1;
|
|
20547
|
-
},
|
|
20547
|
+
}, re = (t, s) => {
|
|
20548
20548
|
t.dom.removeAttribute(s);
|
|
20549
20549
|
}, Ie = (t) => Ho(t.dom.attributes, (s, a) => (s[a.name] = a.value, s), {}), Ot = (t, s, a) => {
|
|
20550
20550
|
if (!Q(a))
|
|
@@ -20588,7 +20588,7 @@ tinymce.IconManager.add("default", {
|
|
|
20588
20588
|
return Gt(c, s, a), Hs(c, s).isSome();
|
|
20589
20589
|
}, fo = (t, s) => {
|
|
20590
20590
|
const a = t.dom;
|
|
20591
|
-
Kn(a, s), Aa(I(t, "style").map(Vr), "") &&
|
|
20591
|
+
Kn(a, s), Aa(I(t, "style").map(Vr), "") && re(t, "style");
|
|
20592
20592
|
}, Wa = (t) => t.dom.offsetWidth, Ms = (t, s) => {
|
|
20593
20593
|
const a = (w, C) => {
|
|
20594
20594
|
if (!ur(C) && !C.match(/^[0-9]+$/))
|
|
@@ -21795,11 +21795,11 @@ The behaviours that can trigger it are: ` + JSON.stringify(et(s, (a) => a.name),
|
|
|
21795
21795
|
return Nt(t, s, d.join(" ")), !0;
|
|
21796
21796
|
}, Wy = (t, s, a) => {
|
|
21797
21797
|
const c = Qn(Pf(t, s), (d) => d !== a);
|
|
21798
|
-
return c.length > 0 ? Nt(t, s, c.join(" ")) :
|
|
21798
|
+
return c.length > 0 ? Nt(t, s, c.join(" ")) : re(t, s), !1;
|
|
21799
21799
|
}, tp = (t) => t.dom.classList !== void 0, $b = (t) => Pf(t, "class"), oC = (t, s) => Ud(t, "class", s), Bs = (t, s) => Wy(t, "class", s), IT = (t, s) => Zo($b(t), s) ? Bs(t, s) : oC(t, s), Nr = (t, s) => {
|
|
21800
21800
|
tp(t) ? t.dom.classList.add(s) : oC(t, s);
|
|
21801
21801
|
}, sC = (t) => {
|
|
21802
|
-
(tp(t) ? t.dom.classList : $b(t)).length === 0 &&
|
|
21802
|
+
(tp(t) ? t.dom.classList : $b(t)).length === 0 && re(t, "class");
|
|
21803
21803
|
}, Qs = (t, s) => {
|
|
21804
21804
|
tp(t) ? t.dom.classList.remove(s) : Bs(t, s), sC(t);
|
|
21805
21805
|
}, np = (t, s) => {
|
|
@@ -21862,7 +21862,7 @@ The behaviours that can trigger it are: ` + JSON.stringify(et(s, (a) => a.name),
|
|
|
21862
21862
|
toSet: g,
|
|
21863
21863
|
toRemove: p
|
|
21864
21864
|
} = $u(t.attributes, d), w = () => {
|
|
21865
|
-
ht(p, (De) =>
|
|
21865
|
+
ht(p, (De) => re(s, De)), Gu(s, g);
|
|
21866
21866
|
}, C = xr(s), {
|
|
21867
21867
|
toSet: E,
|
|
21868
21868
|
toRemove: O
|
|
@@ -22038,7 +22038,7 @@ The behaviours that can trigger it are: ` + JSON.stringify(et(s, (a) => a.name),
|
|
|
22038
22038
|
Nt(c, ip, t);
|
|
22039
22039
|
},
|
|
22040
22040
|
unlink: (c) => {
|
|
22041
|
-
|
|
22041
|
+
re(c, ip);
|
|
22042
22042
|
}
|
|
22043
22043
|
};
|
|
22044
22044
|
}, th = (t, s) => If(s).exists((a) => zm(t, a)), zm = (t, s) => jy(s, (a) => Lo(a, t.element), Jn) || th(t, s), dC = "unknown";
|
|
@@ -22416,7 +22416,7 @@ Receiver: ` + zd(s.element), E, g.data);
|
|
|
22416
22416
|
origin: s
|
|
22417
22417
|
}), eE = (t, s) => QT(t, s), f2 = "data-alloy-placement", tE = (t, s) => {
|
|
22418
22418
|
Nt(t, f2, s);
|
|
22419
|
-
}, SC = (t) => I(t, f2), _C = (t) =>
|
|
22419
|
+
}, SC = (t) => I(t, f2), _C = (t) => re(t, f2), Z1 = T.generate([
|
|
22420
22420
|
{ fit: ["reposition"] },
|
|
22421
22421
|
{
|
|
22422
22422
|
nofit: [
|
|
@@ -22547,7 +22547,7 @@ Receiver: ` + zd(s.element), E, g.data);
|
|
|
22547
22547
|
if (ir(E) || g(E)) {
|
|
22548
22548
|
a.clear(), c.clear();
|
|
22549
22549
|
const O = E == null ? void 0 : E.raw.type;
|
|
22550
|
-
(ir(O) || O === jg()) && (clearTimeout(d),
|
|
22550
|
+
(ir(O) || O === jg()) && (clearTimeout(d), re(t, qb), ki(t, s.classes));
|
|
22551
22551
|
}
|
|
22552
22552
|
}, w = Xl(t, Ay(), (E) => {
|
|
22553
22553
|
g(E) && (w.unbind(), a.set(Xl(t, jg(), p)), c.set(Xl(t, _T(), p)));
|
|
@@ -22557,7 +22557,7 @@ Receiver: ` + zd(s.element), E, g.data);
|
|
|
22557
22557
|
});
|
|
22558
22558
|
}, d5 = (t, s) => {
|
|
22559
22559
|
ar(t, s.classes), I(t, qb).each((a) => {
|
|
22560
|
-
clearTimeout(parseInt(a, 10)),
|
|
22560
|
+
clearTimeout(parseInt(a, 10)), re(t, qb);
|
|
22561
22561
|
}), EC(t, s);
|
|
22562
22562
|
}, Vf = (t, s, a, c, d, g) => {
|
|
22563
22563
|
const p = rE(c, d, g);
|
|
@@ -23240,7 +23240,7 @@ Receiver: ` + zd(s.element), E, g.data);
|
|
|
23240
23240
|
});
|
|
23241
23241
|
}, Di = (t, s, a) => a.isOpen(), ch = (t, s, a, c) => Di(t, s, a) && a.get().exists((d) => s.isPartOf(t, d, c)), V2 = (t, s, a) => a.get(), NE = (t, s, a, c) => {
|
|
23242
23242
|
Hs(t.element, s).fold(() => {
|
|
23243
|
-
|
|
23243
|
+
re(t.element, a);
|
|
23244
23244
|
}, (d) => {
|
|
23245
23245
|
Nt(t.element, a, d);
|
|
23246
23246
|
}), Gt(t.element, s, c);
|
|
@@ -23750,7 +23750,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
23750
23750
|
}, sw = (t, s) => s.useNative === !0 && Zo(ow, Oa(t.element)), XE = (t) => K(t.element, "disabled"), JE = (t) => {
|
|
23751
23751
|
Nt(t.element, "disabled", "disabled");
|
|
23752
23752
|
}, pS = (t) => {
|
|
23753
|
-
|
|
23753
|
+
re(t.element, "disabled");
|
|
23754
23754
|
}, QE = (t) => Ws(t.element, "aria-disabled") === "true", Vt = (t) => {
|
|
23755
23755
|
Nt(t.element, "aria-disabled", "true");
|
|
23756
23756
|
}, Qf = (t) => {
|
|
@@ -29026,7 +29026,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
29026
29026
|
lr.hide(g), t.dom.remove(a, !1);
|
|
29027
29027
|
const $e = Te.fromDom(t.getBody());
|
|
29028
29028
|
I($e, "aria-owns").filter((we) => we === a).each(() => {
|
|
29029
|
-
|
|
29029
|
+
re($e, "aria-owns"), re($e, "aria-activedescendant");
|
|
29030
29030
|
});
|
|
29031
29031
|
}
|
|
29032
29032
|
}, E = () => lr.getContent(g).bind(($e) => hs($e.components(), 0)), O = () => t.execCommand("mceAutocompleterClose"), B = ($e) => {
|
|
@@ -29644,7 +29644,7 @@ The conflicting element is` + (ao(B.element) ? " " : " not ") + "already in the
|
|
|
29644
29644
|
},
|
|
29645
29645
|
onEnabled: (W) => {
|
|
29646
29646
|
O(W, (Y) => {
|
|
29647
|
-
Qs(Y, "tox-collection__item--state-disabled"),
|
|
29647
|
+
Qs(Y, "tox-collection__item--state-disabled"), re(Y, "aria-disabled");
|
|
29648
29648
|
});
|
|
29649
29649
|
}
|
|
29650
29650
|
}),
|
|
@@ -32155,7 +32155,7 @@ The conflicting element is` + (ao(B.element) ? " " : " not ") + "already in the
|
|
|
32155
32155
|
setEnabled: (s) => yn.set(t, !s),
|
|
32156
32156
|
setActive: (s) => {
|
|
32157
32157
|
const a = t.element;
|
|
32158
|
-
s ? (Nr(a, "tox-tbtn--enabled"), Nt(a, "aria-pressed", !0)) : (Qs(a, "tox-tbtn--enabled"),
|
|
32158
|
+
s ? (Nr(a, "tox-tbtn--enabled"), Nt(a, "aria-pressed", !0)) : (Qs(a, "tox-tbtn--enabled"), re(a, "aria-pressed"));
|
|
32159
32159
|
},
|
|
32160
32160
|
isActive: () => sa(t.element, "tox-tbtn--enabled"),
|
|
32161
32161
|
setText: (s) => {
|
|
@@ -32649,7 +32649,7 @@ The conflicting element is` + (ao(B.element) ? " " : " not ") + "already in the
|
|
|
32649
32649
|
sandbox: (B) => cA(t, B, {
|
|
32650
32650
|
onOpen: () => Gn.on(B),
|
|
32651
32651
|
onClose: () => {
|
|
32652
|
-
t.lazyTypeaheadComp.get().each((H) =>
|
|
32652
|
+
t.lazyTypeaheadComp.get().each((H) => re(H.element, "aria-activedescendant")), Gn.off(B);
|
|
32653
32653
|
}
|
|
32654
32654
|
})
|
|
32655
32655
|
}
|
|
@@ -34480,7 +34480,7 @@ The conflicting element is` + (ao(B.element) ? " " : " not ") + "already in the
|
|
|
34480
34480
|
}, p = (ce, $e) => Ws(ce.element, "aria-hidden") !== "true", w = (ce, $e) => {
|
|
34481
34481
|
if (!p(ce)) {
|
|
34482
34482
|
const we = ce.element;
|
|
34483
|
-
fo(we, "display"),
|
|
34483
|
+
fo(we, "display"), re(we, "aria-hidden"), an(ce, T1(), {
|
|
34484
34484
|
name: $e,
|
|
34485
34485
|
visible: !0
|
|
34486
34486
|
});
|
|
@@ -34667,7 +34667,7 @@ The conflicting element is` + (ao(B.element) ? " " : " not ") + "already in the
|
|
|
34667
34667
|
Bn.append(d, Ti(w)), w.hasConfigured(ln) && s.focus && ln.focusIn(w), a.isBlocked() || s.onBlock(t), a.blockWith(() => Bn.remove(d, w));
|
|
34668
34668
|
},
|
|
34669
34669
|
unblock: (t, s, a) => {
|
|
34670
|
-
|
|
34670
|
+
re(t.element, "aria-busy"), a.isBlocked() && s.onUnblock(t), a.clear();
|
|
34671
34671
|
},
|
|
34672
34672
|
isBlocked: (t, s, a) => a.isBlocked()
|
|
34673
34673
|
}), Cz = [
|
|
@@ -34707,14 +34707,14 @@ The conflicting element is` + (ao(B.element) ? " " : " not ") + "already in the
|
|
|
34707
34707
|
}), yB = (t) => io.getCurrent(t).each((s) => Oc(s.element, !0)), kx = (t, s) => {
|
|
34708
34708
|
const a = "tabindex", c = `data-mce-${a}`;
|
|
34709
34709
|
A.from(t.iframeElement).map(Te.fromDom).each((d) => {
|
|
34710
|
-
s ? (I(d, a).each((g) => Nt(d, c, g)), Nt(d, a, -1)) : (
|
|
34711
|
-
Nt(d, a, g),
|
|
34710
|
+
s ? (I(d, a).each((g) => Nt(d, c, g)), Nt(d, a, -1)) : (re(d, a), I(d, c).each((g) => {
|
|
34711
|
+
Nt(d, a, g), re(d, c);
|
|
34712
34712
|
}));
|
|
34713
34713
|
});
|
|
34714
34714
|
}, _z = (t, s, a, c) => {
|
|
34715
34715
|
const d = s.element;
|
|
34716
34716
|
if (kx(t, a), a)
|
|
34717
|
-
mm.block(s, vB(c)), fo(d, "display"),
|
|
34717
|
+
mm.block(s, vB(c)), fo(d, "display"), re(d, "aria-hidden"), t.hasFocus() && yB(s);
|
|
34718
34718
|
else {
|
|
34719
34719
|
const g = io.getCurrent(s).exists((p) => U1(p.element));
|
|
34720
34720
|
mm.unblock(s), Gt(d, "display", "none"), Nt(d, "aria-hidden", "true"), g && t.focus();
|
|
@@ -35382,7 +35382,7 @@ The conflicting element is` + (ao(B.element) ? " " : " not ") + "already in the
|
|
|
35382
35382
|
}));
|
|
35383
35383
|
}, Xe = (vt) => {
|
|
35384
35384
|
const Et = De.element;
|
|
35385
|
-
vt ? (Nr(Et, "tox-button--enabled"), Nt(Et, "aria-pressed", !0)) : (Qs(Et, "tox-button--enabled"),
|
|
35385
|
+
vt ? (Nr(Et, "tox-button--enabled"), Nt(Et, "aria-pressed", !0)) : (Qs(Et, "tox-button--enabled"), re(Et, "aria-pressed"));
|
|
35386
35386
|
}, je = () => sa(De.element, "tox-button--enabled");
|
|
35387
35387
|
if (d)
|
|
35388
35388
|
return t.onAction({
|
|
@@ -35531,7 +35531,7 @@ The conflicting element is` + (ao(B.element) ? " " : " not ") + "already in the
|
|
|
35531
35531
|
Gt(s, "display", "none"), Nt(s, "aria-hidden", "true");
|
|
35532
35532
|
}, Yz = (t) => {
|
|
35533
35533
|
const s = t.element;
|
|
35534
|
-
fo(s, "display"),
|
|
35534
|
+
fo(s, "display"), re(s, "aria-hidden");
|
|
35535
35535
|
}, Xz = (t) => ({ getContainer: oe(t) }), aO = (t, s, a) => {
|
|
35536
35536
|
Ic.getSlot(t, s).each((c) => {
|
|
35537
35537
|
fy.getPane(c).each((d) => {
|
|
@@ -35651,7 +35651,7 @@ The conflicting element is` + (ao(B.element) ? " " : " not ") + "already in the
|
|
|
35651
35651
|
showMainView: (g) => {
|
|
35652
35652
|
c && d.toggleToolbarDrawer(g), Xa.getPart(g, t, "editorContainer").each((p) => {
|
|
35653
35653
|
const w = p.element;
|
|
35654
|
-
fo(w, "display"),
|
|
35654
|
+
fo(w, "display"), re(w, "aria-hidden");
|
|
35655
35655
|
});
|
|
35656
35656
|
}
|
|
35657
35657
|
};
|
|
@@ -38518,7 +38518,7 @@ The conflicting element is` + (ao(B.element) ? " " : " not ") + "already in the
|
|
|
38518
38518
|
Nt(c, s.leftAttr, a.left + "px"), Nt(c, s.topAttr, a.top + "px");
|
|
38519
38519
|
}, iZ = (t, s) => {
|
|
38520
38520
|
const a = t.element;
|
|
38521
|
-
|
|
38521
|
+
re(a, s.leftAttr), re(a, s.topAttr);
|
|
38522
38522
|
}, uZ = (t, s, a, c) => lZ(t, s).fold(() => a, (d) => J0(d.left + c.left, d.top + c.top)), dZ = (t, s, a, c, d, g) => {
|
|
38523
38523
|
const p = uZ(t, s, a, c), w = s.mustSnap ? fZ(t, s, p, d, g) : gZ(t, s, p, d, g), C = Nx(p, d, g);
|
|
38524
38524
|
return cZ(t, s, C), w.fold(() => ({
|
|
@@ -38576,7 +38576,7 @@ The conflicting element is` + (ao(B.element) ? " " : " not ") + "already in the
|
|
|
38576
38576
|
});
|
|
38577
38577
|
const PO = "data-initial-z-index", pZ = (t) => {
|
|
38578
38578
|
ea(t.element).filter(Eo).each((s) => {
|
|
38579
|
-
I(s, PO).fold(() => fo(s, "z-index"), (a) => Gt(s, "z-index", a)),
|
|
38579
|
+
I(s, PO).fold(() => fo(s, "z-index"), (a) => Gt(s, "z-index", a)), re(s, PO);
|
|
38580
38580
|
});
|
|
38581
38581
|
}, bZ = (t) => {
|
|
38582
38582
|
ea(t.element).filter(Eo).each((s) => {
|
|
@@ -41333,10 +41333,10 @@ The conflicting element is` + (ao(B.element) ? " " : " not ") + "already in the
|
|
|
41333
41333
|
const me = (i, m, h) => {
|
|
41334
41334
|
var v;
|
|
41335
41335
|
return h(i, m.prototype) ? !0 : ((v = i.constructor) === null || v === void 0 ? void 0 : v.name) === m.name;
|
|
41336
|
-
},
|
|
41336
|
+
}, se = (i) => {
|
|
41337
41337
|
const m = typeof i;
|
|
41338
41338
|
return i === null ? "null" : m === "object" && Array.isArray(i) ? "array" : m === "object" && me(i, String, (h, v) => v.isPrototypeOf(h)) ? "string" : m;
|
|
41339
|
-
}, Ee = (i) => (m) =>
|
|
41339
|
+
}, Ee = (i) => (m) => se(m) === i, he = (i) => (m) => typeof m === i, J = (i) => (m) => i === m, Oe = Ee("string"), Q = Ee("object"), He = Ee("array"), gt = J(null), jt = he("boolean"), wn = J(void 0), zn = (i) => i == null, Wo = (i) => !zn(i), ir = he("function"), No = he("number"), Pt = () => {
|
|
41340
41340
|
}, ur = (i, m) => (...h) => i(m.apply(null, h)), mn = (i, m) => (h) => i(m(h)), fe = (i) => () => i, Tt = (i) => i, Ea = (i, m) => i === m;
|
|
41341
41341
|
function Xn(i, ...m) {
|
|
41342
41342
|
return (...h) => {
|
|
@@ -41795,12 +41795,12 @@ The conflicting element is` + (ao(B.element) ? " " : " not ") + "already in the
|
|
|
41795
41795
|
if (m == null)
|
|
41796
41796
|
throw new Error("Body is not available yet");
|
|
41797
41797
|
return Te.fromDom(m);
|
|
41798
|
-
},
|
|
41798
|
+
}, re = (i, m, h) => ro(wc(i, h), m), Ie = (i, m) => ro(Eo(i), m), Ot = (i, m) => {
|
|
41799
41799
|
let h = [];
|
|
41800
41800
|
return ot(Eo(i), (v) => {
|
|
41801
41801
|
m(v) && (h = h.concat([v])), h = h.concat(Ot(v, m));
|
|
41802
41802
|
}), h;
|
|
41803
|
-
}, Kn = (i, m, h) =>
|
|
41803
|
+
}, Kn = (i, m, h) => re(i, (v) => qr(v, m), h), Gt = (i, m) => Ie(i, (h) => qr(h, m)), $s = (i, m) => Wu(m, i);
|
|
41804
41804
|
var lt = (i, m, h, v, _) => i(h, v) ? ie.some(h) : ir(_) && _(h) ? ie.none() : m(h, v, _);
|
|
41805
41805
|
const as = (i, m, h) => {
|
|
41806
41806
|
let v = i.dom;
|
|
@@ -45576,10 +45576,10 @@ Required: ` + m.join(", "));
|
|
|
45576
45576
|
const me = (S, R, U) => {
|
|
45577
45577
|
var ae;
|
|
45578
45578
|
return U(S, R.prototype) ? !0 : ((ae = S.constructor) === null || ae === void 0 ? void 0 : ae.name) === R.name;
|
|
45579
|
-
},
|
|
45579
|
+
}, se = (S) => {
|
|
45580
45580
|
const R = typeof S;
|
|
45581
45581
|
return S === null ? "null" : R === "object" && Array.isArray(S) ? "array" : R === "object" && me(S, String, (U, ae) => ae.isPrototypeOf(U)) ? "string" : R;
|
|
45582
|
-
}, Ee = (S) => (R) =>
|
|
45582
|
+
}, Ee = (S) => (R) => se(R) === S, he = (S) => (R) => typeof R === S, J = Ee("string"), Oe = Ee("object"), Q = Ee("array"), He = he("boolean"), gt = (S) => S == null, jt = (S) => !gt(S), wn = he("function"), zn = he("number"), Wo = () => {
|
|
45583
45583
|
}, ir = (S, R) => (U) => S(R(U)), No = (S) => () => S, Pt = (S, R) => S === R;
|
|
45584
45584
|
function ur(S, ...R) {
|
|
45585
45585
|
return (...U) => {
|
|
@@ -45970,7 +45970,7 @@ Required: ` + m.join(", "));
|
|
|
45970
45970
|
}, I = (S) => {
|
|
45971
45971
|
const R = S.selection.getSelectedBlocks();
|
|
45972
45972
|
return Ro(Ws(S, R), Or);
|
|
45973
|
-
}, K = (S) => Ro(I(S), da),
|
|
45973
|
+
}, K = (S) => Ro(I(S), da), re = (S, R) => {
|
|
45974
45974
|
const U = S.dom.getParents(R, "TD,TH");
|
|
45975
45975
|
return U.length > 0 ? U[0] : S.getBody();
|
|
45976
45976
|
}, Ie = (S, R) => !Ra(R) && !Or(R) && St(ao, (U) => S.isValidChild(R.nodeName, U)), Ot = (S, R) => {
|
|
@@ -46482,7 +46482,7 @@ Required: ` + m.join(", "));
|
|
|
46482
46482
|
const ct = ga(ge);
|
|
46483
46483
|
S.selection.setRng(ct);
|
|
46484
46484
|
}, Ln = (S, R) => {
|
|
46485
|
-
const U = S.dom, ae = S.selection, ge = ae.getStart(), ct =
|
|
46485
|
+
const U = S.dom, ae = S.selection, ge = ae.getStart(), ct = re(S, ge), qt = U.getParent(ae.getStart(), "LI", ct);
|
|
46486
46486
|
if (qt) {
|
|
46487
46487
|
const Dn = qt.parentElement;
|
|
46488
46488
|
if (Dn === S.getBody() && wl(U, Dn))
|
|
@@ -46511,7 +46511,7 @@ Required: ` + m.join(", "));
|
|
|
46511
46511
|
const ae = S.getParent(R.parentNode, S.isBlock, U);
|
|
46512
46512
|
S.remove(R), ae && S.isEmpty(ae) && S.remove(ae);
|
|
46513
46513
|
}, Cu = (S, R) => {
|
|
46514
|
-
const U = S.dom, ae = S.selection.getStart(), ge =
|
|
46514
|
+
const U = S.dom, ae = S.selection.getStart(), ge = re(S, ae), ct = U.getParent(ae, U.isBlock, ge);
|
|
46515
46515
|
if (ct && U.isEmpty(ct)) {
|
|
46516
46516
|
const qt = ys(S.selection.getRng()), Dn = U.getParent(Gs(S, qt, R, ge), "LI", ge);
|
|
46517
46517
|
if (Dn) {
|
|
@@ -46528,7 +46528,7 @@ Required: ` + m.join(", "));
|
|
|
46528
46528
|
}
|
|
46529
46529
|
return !1;
|
|
46530
46530
|
}, Pd = (S, R) => Ln(S, R) || Cu(S, R), Sf = (S) => {
|
|
46531
|
-
const R = S.selection.getStart(), U =
|
|
46531
|
+
const R = S.selection.getStart(), U = re(S, R);
|
|
46532
46532
|
return S.dom.getParent(R, "LI,DT,DD", U) || I(S).length > 0;
|
|
46533
46533
|
}, Fh = (S) => Sf(S) ? (S.undoManager.transact(() => {
|
|
46534
46534
|
S.execCommand("Delete"), Ps(S.dom, S.getBody());
|
|
@@ -46724,10 +46724,10 @@ Required: ` + m.join(", "));
|
|
|
46724
46724
|
const me = (j, de, ke) => {
|
|
46725
46725
|
var Ne;
|
|
46726
46726
|
return ke(j, de.prototype) ? !0 : ((Ne = j.constructor) === null || Ne === void 0 ? void 0 : Ne.name) === de.name;
|
|
46727
|
-
},
|
|
46727
|
+
}, se = (j) => {
|
|
46728
46728
|
const de = typeof j;
|
|
46729
46729
|
return j === null ? "null" : de === "object" && Array.isArray(j) ? "array" : de === "object" && me(j, String, (ke, Ne) => Ne.isPrototypeOf(ke)) ? "string" : de;
|
|
46730
|
-
}, Ee = (j) => (de) =>
|
|
46730
|
+
}, Ee = (j) => (de) => se(de) === j, he = (j) => (de) => typeof de === j, J = (j) => (de) => j === de, Oe = Ee("string"), Q = Ee("object"), He = Ee("array"), gt = J(null), jt = he("boolean"), wn = (j) => j == null, zn = (j) => !wn(j), Wo = he("function"), ir = (j, de) => {
|
|
46731
46731
|
if (He(j)) {
|
|
46732
46732
|
for (let ke = 0, Ne = j.length; ke < Ne; ++ke)
|
|
46733
46733
|
if (!de(j[ke]))
|
|
@@ -47478,16 +47478,16 @@ Required: ` + m.join(", "));
|
|
|
47478
47478
|
})();
|
|
47479
47479
|
(function() {
|
|
47480
47480
|
var $ = tinymce.util.Tools.resolve("tinymce.PluginManager");
|
|
47481
|
-
const me = Object.getPrototypeOf,
|
|
47481
|
+
const me = Object.getPrototypeOf, se = (I, K, re) => {
|
|
47482
47482
|
var Ie;
|
|
47483
|
-
return
|
|
47483
|
+
return re(I, K.prototype) ? !0 : ((Ie = I.constructor) === null || Ie === void 0 ? void 0 : Ie.name) === K.name;
|
|
47484
47484
|
}, Ee = (I) => {
|
|
47485
47485
|
const K = typeof I;
|
|
47486
|
-
return I === null ? "null" : K === "object" && Array.isArray(I) ? "array" : K === "object" &&
|
|
47487
|
-
}, he = (I) => (K) => Ee(K) === I, J = (I) => (K) => typeof K === I, Oe = (I) => (K) => I === K, Q = (I, K) => gt(I) &&
|
|
47486
|
+
return I === null ? "null" : K === "object" && Array.isArray(I) ? "array" : K === "object" && se(I, String, (re, Ie) => Ie.isPrototypeOf(re)) ? "string" : K;
|
|
47487
|
+
}, he = (I) => (K) => Ee(K) === I, J = (I) => (K) => typeof K === I, Oe = (I) => (K) => I === K, Q = (I, K) => gt(I) && se(I, K, (re, Ie) => me(re) === Ie), He = he("string"), gt = he("object"), jt = (I) => Q(I, Object), wn = he("array"), zn = Oe(null), Wo = J("boolean"), ir = (I) => I == null, No = (I) => !ir(I), Pt = J("function"), ur = J("number"), mn = (I, K) => {
|
|
47488
47488
|
if (wn(I)) {
|
|
47489
|
-
for (let
|
|
47490
|
-
if (!K(I[
|
|
47489
|
+
for (let re = 0, Ie = I.length; re < Ie; ++re)
|
|
47490
|
+
if (!K(I[re]))
|
|
47491
47491
|
return !1;
|
|
47492
47492
|
return !0;
|
|
47493
47493
|
}
|
|
@@ -47495,8 +47495,8 @@ Required: ` + m.join(", "));
|
|
|
47495
47495
|
}, fe = () => {
|
|
47496
47496
|
};
|
|
47497
47497
|
class Tt {
|
|
47498
|
-
constructor(K,
|
|
47499
|
-
this.tag = K, this.value =
|
|
47498
|
+
constructor(K, re) {
|
|
47499
|
+
this.tag = K, this.value = re;
|
|
47500
47500
|
}
|
|
47501
47501
|
static some(K) {
|
|
47502
47502
|
return new Tt(!0, K);
|
|
@@ -47504,8 +47504,8 @@ Required: ` + m.join(", "));
|
|
|
47504
47504
|
static none() {
|
|
47505
47505
|
return Tt.singletonNone;
|
|
47506
47506
|
}
|
|
47507
|
-
fold(K,
|
|
47508
|
-
return this.tag ?
|
|
47507
|
+
fold(K, re) {
|
|
47508
|
+
return this.tag ? re(this.value) : K();
|
|
47509
47509
|
}
|
|
47510
47510
|
isSome() {
|
|
47511
47511
|
return this.tag;
|
|
@@ -47566,44 +47566,44 @@ Required: ` + m.join(", "));
|
|
|
47566
47566
|
}
|
|
47567
47567
|
Tt.singletonNone = new Tt(!1);
|
|
47568
47568
|
const Ea = Object.keys, Xn = Object.hasOwnProperty, oe = (I, K) => {
|
|
47569
|
-
const
|
|
47570
|
-
for (let Ie = 0, Ot =
|
|
47571
|
-
const Kn =
|
|
47569
|
+
const re = Ea(I);
|
|
47570
|
+
for (let Ie = 0, Ot = re.length; Ie < Ot; Ie++) {
|
|
47571
|
+
const Kn = re[Ie], Gt = I[Kn];
|
|
47572
47572
|
K(Gt, Kn);
|
|
47573
47573
|
}
|
|
47574
|
-
}, Pn = (I) => (K,
|
|
47575
|
-
I[
|
|
47576
|
-
}, os = (I, K,
|
|
47574
|
+
}, Pn = (I) => (K, re) => {
|
|
47575
|
+
I[re] = K;
|
|
47576
|
+
}, os = (I, K, re, Ie) => {
|
|
47577
47577
|
oe(I, (Ot, Kn) => {
|
|
47578
|
-
(K(Ot, Kn) ?
|
|
47578
|
+
(K(Ot, Kn) ? re : Ie)(Ot, Kn);
|
|
47579
47579
|
});
|
|
47580
47580
|
}, St = (I, K) => {
|
|
47581
|
-
const
|
|
47582
|
-
return os(I, K, Pn(
|
|
47581
|
+
const re = {};
|
|
47582
|
+
return os(I, K, Pn(re), fe), re;
|
|
47583
47583
|
}, Fe = (I, K) => Xn.call(I, K), ie = (I, K) => Fe(I, K) && I[K] !== void 0 && I[K] !== null, Ro = Array.prototype.push, Jn = (I) => {
|
|
47584
47584
|
const K = [];
|
|
47585
|
-
for (let
|
|
47586
|
-
if (!wn(I[
|
|
47587
|
-
throw new Error("Arr.flatten item " +
|
|
47588
|
-
Ro.apply(K, I[
|
|
47585
|
+
for (let re = 0, Ie = I.length; re < Ie; ++re) {
|
|
47586
|
+
if (!wn(I[re]))
|
|
47587
|
+
throw new Error("Arr.flatten item " + re + " was not an array, input: " + I);
|
|
47588
|
+
Ro.apply(K, I[re]);
|
|
47589
47589
|
}
|
|
47590
47590
|
return K;
|
|
47591
47591
|
}, Ge = (I, K) => K >= 0 && K < I.length ? Tt.some(I[K]) : Tt.none(), A = (I) => Ge(I, 0), Xt = (I, K) => {
|
|
47592
|
-
for (let
|
|
47593
|
-
const Ie = K(I[
|
|
47592
|
+
for (let re = 0; re < I.length; re++) {
|
|
47593
|
+
const Ie = K(I[re], re);
|
|
47594
47594
|
if (Ie.isSome())
|
|
47595
47595
|
return Ie;
|
|
47596
47596
|
}
|
|
47597
47597
|
return Tt.none();
|
|
47598
47598
|
};
|
|
47599
47599
|
typeof window < "u" || Function("return this;")();
|
|
47600
|
-
const nt = (I, K,
|
|
47601
|
-
if (He(
|
|
47602
|
-
I.setAttribute(K,
|
|
47600
|
+
const nt = (I, K, re) => {
|
|
47601
|
+
if (He(re) || Wo(re) || ur(re))
|
|
47602
|
+
I.setAttribute(K, re + "");
|
|
47603
47603
|
else
|
|
47604
|
-
throw console.error("Invalid call to Attribute.set. Key ", K, ":: Value ",
|
|
47605
|
-
}, Bo = (I, K,
|
|
47606
|
-
nt(I.dom, K,
|
|
47604
|
+
throw console.error("Invalid call to Attribute.set. Key ", K, ":: Value ", re, ":: Element ", I), new Error("Attribute value was not simple");
|
|
47605
|
+
}, Bo = (I, K, re) => {
|
|
47606
|
+
nt(I.dom, K, re);
|
|
47607
47607
|
}, fn = (I, K) => {
|
|
47608
47608
|
I.dom.removeAttribute(K);
|
|
47609
47609
|
}, ot = (I, K) => {
|
|
@@ -47628,7 +47628,7 @@ Required: ` + m.join(", "));
|
|
|
47628
47628
|
fromTag: Zo,
|
|
47629
47629
|
fromText: dr,
|
|
47630
47630
|
fromDom: ro,
|
|
47631
|
-
fromPoint: (I, K,
|
|
47631
|
+
fromPoint: (I, K, re) => Tt.from(I.dom.elementFromPoint(K, re)).map(ro)
|
|
47632
47632
|
};
|
|
47633
47633
|
var ht = tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"), z = tinymce.util.Tools.resolve("tinymce.util.URI");
|
|
47634
47634
|
const Qa = (I) => I.length > 0, Qn = (I) => (K) => K.options.get(I), ss = (I) => {
|
|
@@ -47655,10 +47655,10 @@ Required: ` + m.join(", "));
|
|
|
47655
47655
|
processor: "boolean",
|
|
47656
47656
|
default: !1
|
|
47657
47657
|
}), K("image_list", {
|
|
47658
|
-
processor: (
|
|
47659
|
-
const Ie =
|
|
47658
|
+
processor: (re) => {
|
|
47659
|
+
const Ie = re === !1 || He(re) || mn(re, gt) || Pt(re);
|
|
47660
47660
|
return Ie ? {
|
|
47661
|
-
value:
|
|
47661
|
+
value: re,
|
|
47662
47662
|
valid: Ie
|
|
47663
47663
|
} : {
|
|
47664
47664
|
valid: !1,
|
|
@@ -47668,20 +47668,20 @@ Required: ` + m.join(", "));
|
|
|
47668
47668
|
default: !1
|
|
47669
47669
|
});
|
|
47670
47670
|
}, Ho = Qn("image_dimensions"), Zi = Qn("image_advtab"), qe = Qn("image_uploadtab"), Dt = Qn("image_prepend_url"), Ke = Qn("image_class_list"), _e = Qn("image_description"), vn = Qn("image_title"), jo = Qn("image_caption"), Ft = Qn("image_list"), Tr = Qn("a11y_advanced_options"), Io = Qn("automatic_uploads"), Va = (I) => Qa(I.options.get("images_upload_url")), hs = (I) => No(I.options.get("images_upload_handler")), br = (I, K) => Math.max(parseInt(I, 10), parseInt(K, 10)), vc = (I) => new Promise((K) => {
|
|
47671
|
-
const
|
|
47672
|
-
|
|
47671
|
+
const re = document.createElement("img"), Ie = (Kn) => {
|
|
47672
|
+
re.onload = re.onerror = null, re.parentNode && re.parentNode.removeChild(re), K(Kn);
|
|
47673
47673
|
};
|
|
47674
|
-
|
|
47675
|
-
const Kn = br(
|
|
47674
|
+
re.onload = () => {
|
|
47675
|
+
const Kn = br(re.width, re.clientWidth), Gt = br(re.height, re.clientHeight), $s = {
|
|
47676
47676
|
width: Kn,
|
|
47677
47677
|
height: Gt
|
|
47678
47678
|
};
|
|
47679
47679
|
Ie(Promise.resolve($s));
|
|
47680
|
-
},
|
|
47680
|
+
}, re.onerror = () => {
|
|
47681
47681
|
Ie(Promise.reject(`Failed to get image dimensions for: ${I}`));
|
|
47682
47682
|
};
|
|
47683
|
-
const Ot =
|
|
47684
|
-
Ot.visibility = "hidden", Ot.position = "fixed", Ot.bottom = Ot.left = "0px", Ot.width = Ot.height = "auto", document.body.appendChild(
|
|
47683
|
+
const Ot = re.style;
|
|
47684
|
+
Ot.visibility = "hidden", Ot.position = "fixed", Ot.bottom = Ot.left = "0px", Ot.width = Ot.height = "auto", document.body.appendChild(re), re.src = I;
|
|
47685
47685
|
}), vr = (I) => (I && (I = I.replace(/px$/, "")), I), Js = (I) => (I.length > 0 && /^[0-9]+$/.test(I) && (I += "px"), I), ps = (I) => {
|
|
47686
47686
|
if (I.margin) {
|
|
47687
47687
|
const K = String(I.margin).split(" ");
|
|
@@ -47702,40 +47702,40 @@ Required: ` + m.join(", "));
|
|
|
47702
47702
|
}
|
|
47703
47703
|
return I;
|
|
47704
47704
|
}, ji = (I, K) => {
|
|
47705
|
-
const
|
|
47706
|
-
He(
|
|
47705
|
+
const re = Ft(I);
|
|
47706
|
+
He(re) ? fetch(re).then((Ie) => {
|
|
47707
47707
|
Ie.ok && Ie.json().then(K);
|
|
47708
|
-
}) : Pt(
|
|
47709
|
-
}, us = (I, K,
|
|
47708
|
+
}) : Pt(re) ? re(K) : K(re);
|
|
47709
|
+
}, us = (I, K, re) => {
|
|
47710
47710
|
const Ie = () => {
|
|
47711
|
-
|
|
47711
|
+
re.onload = re.onerror = null, I.selection && (I.selection.select(re), I.nodeChanged());
|
|
47712
47712
|
};
|
|
47713
|
-
|
|
47714
|
-
!K.width && !K.height && Ho(I) && I.dom.setAttribs(
|
|
47715
|
-
width: String(
|
|
47716
|
-
height: String(
|
|
47713
|
+
re.onload = () => {
|
|
47714
|
+
!K.width && !K.height && Ho(I) && I.dom.setAttribs(re, {
|
|
47715
|
+
width: String(re.clientWidth),
|
|
47716
|
+
height: String(re.clientHeight)
|
|
47717
47717
|
}), Ie();
|
|
47718
|
-
},
|
|
47719
|
-
}, Go = (I) => new Promise((K,
|
|
47718
|
+
}, re.onerror = Ie;
|
|
47719
|
+
}, Go = (I) => new Promise((K, re) => {
|
|
47720
47720
|
const Ie = new FileReader();
|
|
47721
47721
|
Ie.onload = () => {
|
|
47722
47722
|
K(Ie.result);
|
|
47723
47723
|
}, Ie.onerror = () => {
|
|
47724
47724
|
var Ot;
|
|
47725
|
-
|
|
47725
|
+
re((Ot = Ie.error) === null || Ot === void 0 ? void 0 : Ot.message);
|
|
47726
47726
|
}, Ie.readAsDataURL(I);
|
|
47727
47727
|
}), yc = (I) => I.nodeName === "IMG" && (I.hasAttribute("data-mce-object") || I.hasAttribute("data-mce-placeholder")), Yn = (I, K) => {
|
|
47728
|
-
const
|
|
47728
|
+
const re = I.options.get;
|
|
47729
47729
|
return z.isDomSafe(K, "img", {
|
|
47730
|
-
allow_html_data_urls:
|
|
47731
|
-
allow_script_urls:
|
|
47732
|
-
allow_svg_data_urls:
|
|
47730
|
+
allow_html_data_urls: re("allow_html_data_urls"),
|
|
47731
|
+
allow_script_urls: re("allow_script_urls"),
|
|
47732
|
+
allow_svg_data_urls: re("allow_svg_data_urls")
|
|
47733
47733
|
});
|
|
47734
47734
|
}, bs = ht.DOM, yr = (I) => I.style.marginLeft && I.style.marginRight && I.style.marginLeft === I.style.marginRight ? vr(I.style.marginLeft) : "", Pl = (I) => I.style.marginTop && I.style.marginBottom && I.style.marginTop === I.style.marginBottom ? vr(I.style.marginTop) : "", di = (I) => I.style.borderWidth ? vr(I.style.borderWidth) : "", Qo = (I, K) => {
|
|
47735
|
-
var
|
|
47736
|
-
return I.hasAttribute(K) && (
|
|
47737
|
-
}, Gi = (I) => I.parentNode !== null && I.parentNode.nodeName === "FIGURE", pt = (I, K,
|
|
47738
|
-
|
|
47735
|
+
var re;
|
|
47736
|
+
return I.hasAttribute(K) && (re = I.getAttribute(K)) !== null && re !== void 0 ? re : "";
|
|
47737
|
+
}, Gi = (I) => I.parentNode !== null && I.parentNode.nodeName === "FIGURE", pt = (I, K, re) => {
|
|
47738
|
+
re === "" || re === null ? I.removeAttribute(K) : I.setAttribute(K, re);
|
|
47739
47739
|
}, mo = (I) => {
|
|
47740
47740
|
const K = bs.create("figure", { class: "image" });
|
|
47741
47741
|
bs.insertAfter(K, I), K.appendChild(I), K.appendChild(bs.create("figcaption", { contentEditable: "true" }, "Caption")), K.contentEditable = "false";
|
|
@@ -47745,20 +47745,20 @@ Required: ` + m.join(", "));
|
|
|
47745
47745
|
}, Aa = (I) => {
|
|
47746
47746
|
Gi(I) ? Er(I) : mo(I);
|
|
47747
47747
|
}, Nl = (I, K) => {
|
|
47748
|
-
const
|
|
47748
|
+
const re = I.getAttribute("style"), Ie = K(re !== null ? re : "");
|
|
47749
47749
|
Ie.length > 0 ? (I.setAttribute("style", Ie), I.setAttribute("data-mce-style", Ie)) : I.removeAttribute("style");
|
|
47750
|
-
}, Da = (I, K) => (
|
|
47751
|
-
const Kn =
|
|
47752
|
-
Kn[Ie] ? (Kn[Ie] = Js(Ot), Nl(
|
|
47750
|
+
}, Da = (I, K) => (re, Ie, Ot) => {
|
|
47751
|
+
const Kn = re.style;
|
|
47752
|
+
Kn[Ie] ? (Kn[Ie] = Js(Ot), Nl(re, K)) : pt(re, Ie, Ot);
|
|
47753
47753
|
}, es = (I, K) => I.style[K] ? vr(I.style[K]) : Qo(I, K), el = (I, K) => {
|
|
47754
|
-
const
|
|
47755
|
-
I.style.marginLeft =
|
|
47754
|
+
const re = Js(K);
|
|
47755
|
+
I.style.marginLeft = re, I.style.marginRight = re;
|
|
47756
47756
|
}, bl = (I, K) => {
|
|
47757
|
-
const
|
|
47758
|
-
I.style.marginTop =
|
|
47757
|
+
const re = Js(K);
|
|
47758
|
+
I.style.marginTop = re, I.style.marginBottom = re;
|
|
47759
47759
|
}, Yo = (I, K) => {
|
|
47760
|
-
const
|
|
47761
|
-
I.style.borderWidth =
|
|
47760
|
+
const re = Js(K);
|
|
47761
|
+
I.style.borderWidth = re;
|
|
47762
47762
|
}, gn = (I, K) => {
|
|
47763
47763
|
I.style.borderStyle = K;
|
|
47764
47764
|
}, Ar = (I) => {
|
|
@@ -47779,19 +47779,19 @@ Required: ` + m.join(", "));
|
|
|
47779
47779
|
borderStyle: "",
|
|
47780
47780
|
isDecorative: !1
|
|
47781
47781
|
}), Us = (I, K) => {
|
|
47782
|
-
var
|
|
47782
|
+
var re;
|
|
47783
47783
|
const Ie = document.createElement("img");
|
|
47784
|
-
return pt(Ie, "style", K.style), (yr(Ie) || K.hspace !== "") && el(Ie, K.hspace), (Pl(Ie) || K.vspace !== "") && bl(Ie, K.vspace), (di(Ie) || K.border !== "") && Yo(Ie, K.border), (Ar(Ie) || K.borderStyle !== "") && gn(Ie, K.borderStyle), I((
|
|
47784
|
+
return pt(Ie, "style", K.style), (yr(Ie) || K.hspace !== "") && el(Ie, K.hspace), (Pl(Ie) || K.vspace !== "") && bl(Ie, K.vspace), (di(Ie) || K.border !== "") && Yo(Ie, K.border), (Ar(Ie) || K.borderStyle !== "") && gn(Ie, K.borderStyle), I((re = Ie.getAttribute("style")) !== null && re !== void 0 ? re : "");
|
|
47785
47785
|
}, vl = (I, K) => {
|
|
47786
|
-
const
|
|
47786
|
+
const re = document.createElement("img");
|
|
47787
47787
|
if (sc(I, {
|
|
47788
47788
|
...K,
|
|
47789
47789
|
caption: !1
|
|
47790
|
-
},
|
|
47790
|
+
}, re), ca(re, K.alt, K.isDecorative), K.caption) {
|
|
47791
47791
|
const Ie = bs.create("figure", { class: "image" });
|
|
47792
|
-
return Ie.appendChild(
|
|
47792
|
+
return Ie.appendChild(re), Ie.appendChild(bs.create("figcaption", { contentEditable: "true" }, "Caption")), Ie.contentEditable = "false", Ie;
|
|
47793
47793
|
} else
|
|
47794
|
-
return
|
|
47794
|
+
return re;
|
|
47795
47795
|
}, qi = (I, K) => ({
|
|
47796
47796
|
src: Qo(K, "src"),
|
|
47797
47797
|
alt: wr(K),
|
|
@@ -47806,10 +47806,10 @@ Required: ` + m.join(", "));
|
|
|
47806
47806
|
border: di(K),
|
|
47807
47807
|
borderStyle: Ar(K),
|
|
47808
47808
|
isDecorative: mi(K)
|
|
47809
|
-
}), Vr = (I, K,
|
|
47810
|
-
|
|
47811
|
-
}, ca = (I, K,
|
|
47812
|
-
if (
|
|
47809
|
+
}), Vr = (I, K, re, Ie, Ot) => {
|
|
47810
|
+
re[Ie] !== K[Ie] && Ot(I, Ie, String(re[Ie]));
|
|
47811
|
+
}, ca = (I, K, re) => {
|
|
47812
|
+
if (re) {
|
|
47813
47813
|
bs.setAttrib(I, "role", "presentation");
|
|
47814
47814
|
const Ie = et.fromDom(I);
|
|
47815
47815
|
Bo(Ie, "alt", "");
|
|
@@ -47823,29 +47823,29 @@ Required: ` + m.join(", "));
|
|
|
47823
47823
|
}
|
|
47824
47824
|
bs.getAttrib(I, "role") === "presentation" && bs.setAttrib(I, "role", "");
|
|
47825
47825
|
}
|
|
47826
|
-
}, Is = (I, K,
|
|
47827
|
-
(
|
|
47828
|
-
}, Dr = (I, K) => (
|
|
47829
|
-
I(
|
|
47830
|
-
}, sc = (I, K,
|
|
47831
|
-
const Ie = qi(I,
|
|
47832
|
-
Vr(
|
|
47826
|
+
}, Is = (I, K, re) => {
|
|
47827
|
+
(re.alt !== K.alt || re.isDecorative !== K.isDecorative) && ca(I, re.alt, re.isDecorative);
|
|
47828
|
+
}, Dr = (I, K) => (re, Ie, Ot) => {
|
|
47829
|
+
I(re, Ot), Nl(re, K);
|
|
47830
|
+
}, sc = (I, K, re) => {
|
|
47831
|
+
const Ie = qi(I, re);
|
|
47832
|
+
Vr(re, Ie, K, "caption", (Ot, Kn, Gt) => Aa(Ot)), Vr(re, Ie, K, "src", pt), Vr(re, Ie, K, "title", pt), Vr(re, Ie, K, "width", Da("width", I)), Vr(re, Ie, K, "height", Da("height", I)), Vr(re, Ie, K, "class", pt), Vr(re, Ie, K, "style", Dr((Ot, Kn) => pt(Ot, "style", Kn), I)), Vr(re, Ie, K, "hspace", Dr(el, I)), Vr(re, Ie, K, "vspace", Dr(bl, I)), Vr(re, Ie, K, "border", Dr(Yo, I)), Vr(re, Ie, K, "borderStyle", Dr(gn, I)), Is(re, Ie, K);
|
|
47833
47833
|
}, Vc = (I, K) => {
|
|
47834
|
-
const
|
|
47834
|
+
const re = I.dom.styles.parse(K), Ie = ps(re), Ot = I.dom.styles.parse(I.dom.styles.serialize(Ie));
|
|
47835
47835
|
return I.dom.styles.serialize(Ot);
|
|
47836
47836
|
}, rc = (I) => {
|
|
47837
|
-
const K = I.selection.getNode(),
|
|
47838
|
-
return
|
|
47837
|
+
const K = I.selection.getNode(), re = I.dom.getParent(K, "figure.image");
|
|
47838
|
+
return re ? I.dom.select("img", re)[0] : K && (K.nodeName !== "IMG" || yc(K)) ? null : K;
|
|
47839
47839
|
}, Il = (I, K) => {
|
|
47840
|
-
var
|
|
47840
|
+
var re;
|
|
47841
47841
|
const Ie = I.dom, Ot = St(I.schema.getTextBlockElements(), (Gt, $s) => !I.schema.isValidChild($s, "figure")), Kn = Ie.getParent(K.parentNode, (Gt) => ie(Ot, Gt.nodeName), I.getBody());
|
|
47842
|
-
return Kn && (
|
|
47842
|
+
return Kn && (re = Ie.split(Kn, K)) !== null && re !== void 0 ? re : K;
|
|
47843
47843
|
}, fi = (I) => {
|
|
47844
47844
|
const K = rc(I);
|
|
47845
|
-
return K ? qi((
|
|
47845
|
+
return K ? qi((re) => Vc(I, re), K) : mr();
|
|
47846
47846
|
}, Te = (I, K) => {
|
|
47847
|
-
const
|
|
47848
|
-
I.dom.setAttrib(
|
|
47847
|
+
const re = vl((Ot) => Vc(I, Ot), K);
|
|
47848
|
+
I.dom.setAttrib(re, "data-mce-id", "__mcenew"), I.focus(), I.selection.setContent(re.outerHTML);
|
|
47849
47849
|
const Ie = I.dom.select('*[data-mce-id="__mcenew"]')[0];
|
|
47850
47850
|
if (I.dom.setAttrib(Ie, "data-mce-id", null), Bl(Ie)) {
|
|
47851
47851
|
const Ot = Il(I, Ie);
|
|
@@ -47856,31 +47856,31 @@ Required: ` + m.join(", "));
|
|
|
47856
47856
|
I.dom.setAttrib(K, "src", K.getAttribute("src"));
|
|
47857
47857
|
}, Ll = (I, K) => {
|
|
47858
47858
|
if (K) {
|
|
47859
|
-
const
|
|
47860
|
-
I.dom.remove(
|
|
47859
|
+
const re = I.dom.is(K.parentNode, "figure.image") ? K.parentNode : K;
|
|
47860
|
+
I.dom.remove(re), I.focus(), I.nodeChanged(), I.dom.isEmpty(I.getBody()) && (I.setContent(""), I.selection.setCursorLocation());
|
|
47861
47861
|
}
|
|
47862
47862
|
}, Wu = (I, K) => {
|
|
47863
|
-
const
|
|
47864
|
-
if (
|
|
47865
|
-
if (sc((Ie) => Vc(I, Ie), K,
|
|
47866
|
-
const Ie =
|
|
47867
|
-
Il(I, Ie), I.selection.select(
|
|
47863
|
+
const re = rc(I);
|
|
47864
|
+
if (re)
|
|
47865
|
+
if (sc((Ie) => Vc(I, Ie), K, re), qr(I, re), Bl(re.parentNode)) {
|
|
47866
|
+
const Ie = re.parentNode;
|
|
47867
|
+
Il(I, Ie), I.selection.select(re.parentNode);
|
|
47868
47868
|
} else
|
|
47869
|
-
I.selection.select(
|
|
47869
|
+
I.selection.select(re), us(I, K, re);
|
|
47870
47870
|
}, Ki = (I, K) => {
|
|
47871
|
-
const
|
|
47871
|
+
const re = K.src;
|
|
47872
47872
|
return {
|
|
47873
47873
|
...K,
|
|
47874
|
-
src: Yn(I,
|
|
47874
|
+
src: Yn(I, re) ? re : ""
|
|
47875
47875
|
};
|
|
47876
47876
|
}, ts = (I, K) => {
|
|
47877
|
-
const
|
|
47878
|
-
if (
|
|
47877
|
+
const re = rc(I);
|
|
47878
|
+
if (re) {
|
|
47879
47879
|
const Ot = {
|
|
47880
|
-
...qi((Gt) => Vc(I, Gt),
|
|
47880
|
+
...qi((Gt) => Vc(I, Gt), re),
|
|
47881
47881
|
...K
|
|
47882
47882
|
}, Kn = Ki(I, Ot);
|
|
47883
|
-
Ot.src ? Wu(I, Kn) : Ll(I,
|
|
47883
|
+
Ot.src ? Wu(I, Kn) : Ll(I, re);
|
|
47884
47884
|
} else K.src && Te(I, {
|
|
47885
47885
|
...mr(),
|
|
47886
47886
|
...K
|
|
@@ -47888,37 +47888,37 @@ Required: ` + m.join(", "));
|
|
|
47888
47888
|
}, tl = ((I) => (...K) => {
|
|
47889
47889
|
if (K.length === 0)
|
|
47890
47890
|
throw new Error("Can't merge zero objects");
|
|
47891
|
-
const
|
|
47891
|
+
const re = {};
|
|
47892
47892
|
for (let Ie = 0; Ie < K.length; Ie++) {
|
|
47893
47893
|
const Ot = K[Ie];
|
|
47894
47894
|
for (const Kn in Ot)
|
|
47895
|
-
Fe(Ot, Kn) && (
|
|
47895
|
+
Fe(Ot, Kn) && (re[Kn] = I(re[Kn], Ot[Kn]));
|
|
47896
47896
|
}
|
|
47897
|
-
return
|
|
47897
|
+
return re;
|
|
47898
47898
|
})((I, K) => jt(I) && jt(K) ? tl(I, K) : K);
|
|
47899
47899
|
var Yi = tinymce.util.Tools.resolve("tinymce.util.ImageUploader"), vs = tinymce.util.Tools.resolve("tinymce.util.Tools");
|
|
47900
47900
|
const ks = (I) => He(I.value) ? I.value : "", za = (I) => He(I.text) ? I.text : He(I.title) ? I.title : "", Oa = (I, K) => {
|
|
47901
|
-
const
|
|
47901
|
+
const re = [];
|
|
47902
47902
|
return vs.each(I, (Ie) => {
|
|
47903
47903
|
const Ot = za(Ie);
|
|
47904
47904
|
if (Ie.menu !== void 0) {
|
|
47905
47905
|
const Kn = Oa(Ie.menu, K);
|
|
47906
|
-
|
|
47906
|
+
re.push({
|
|
47907
47907
|
text: Ot,
|
|
47908
47908
|
items: Kn
|
|
47909
47909
|
});
|
|
47910
47910
|
} else {
|
|
47911
47911
|
const Kn = K(Ie);
|
|
47912
|
-
|
|
47912
|
+
re.push({
|
|
47913
47913
|
text: Ot,
|
|
47914
47914
|
value: Kn
|
|
47915
47915
|
});
|
|
47916
47916
|
}
|
|
47917
|
-
}),
|
|
47918
|
-
}, wc = (I = ks) => (K) => K ? Tt.from(K).map((
|
|
47917
|
+
}), re;
|
|
47918
|
+
}, wc = (I = ks) => (K) => K ? Tt.from(K).map((re) => Oa(re, I)) : Tt.none(), gi = (I) => wc(ks)(I), xc = (I) => Fe(I, "items"), Eo = (I, K) => Xt(I, (re) => xc(re) ? Eo(re.items, K) : re.value === K ? Tt.some(re) : Tt.none()), ia = {
|
|
47919
47919
|
sanitizer: wc,
|
|
47920
47920
|
sanitize: gi,
|
|
47921
|
-
findEntry: (I, K) => I.bind((
|
|
47921
|
+
findEntry: (I, K) => I.bind((re) => Eo(re, K))
|
|
47922
47922
|
}, ua = { makeTab: (I) => ({
|
|
47923
47923
|
title: "Advanced",
|
|
47924
47924
|
name: "advanced",
|
|
@@ -47998,7 +47998,7 @@ Required: ` + m.join(", "));
|
|
|
47998
47998
|
]
|
|
47999
47999
|
}]
|
|
48000
48000
|
}) }, Ls = (I) => {
|
|
48001
|
-
const K = ia.sanitizer((Ms) => I.convertURL(Ms.value || Ms.url || "", "src")),
|
|
48001
|
+
const K = ia.sanitizer((Ms) => I.convertURL(Ms.value || Ms.url || "", "src")), re = new Promise((Ms) => {
|
|
48002
48002
|
ji(I, (pi) => {
|
|
48003
48003
|
Ms(K(pi).map((Vs) => Jn([
|
|
48004
48004
|
[{
|
|
@@ -48009,7 +48009,7 @@ Required: ` + m.join(", "));
|
|
|
48009
48009
|
])));
|
|
48010
48010
|
});
|
|
48011
48011
|
}), Ie = ia.sanitize(Ke(I)), Ot = Zi(I), Kn = qe(I), Gt = Va(I), $s = hs(I), lt = fi(I), as = _e(I), Ua = vn(I), Hs = Ho(I), xr = jo(I), Uc = Tr(I), fo = Io(I), Wa = Tt.some(Dt(I)).filter((Ms) => He(Ms) && Ms.length > 0);
|
|
48012
|
-
return
|
|
48012
|
+
return re.then((Ms) => ({
|
|
48013
48013
|
image: lt,
|
|
48014
48014
|
imageList: Ms,
|
|
48015
48015
|
classList: Ie,
|
|
@@ -48032,7 +48032,7 @@ Required: ` + m.join(", "));
|
|
|
48032
48032
|
filetype: "image",
|
|
48033
48033
|
label: "Source",
|
|
48034
48034
|
picker_text: "Browse files"
|
|
48035
|
-
},
|
|
48035
|
+
}, re = I.imageList.map((Ua) => ({
|
|
48036
48036
|
name: "images",
|
|
48037
48037
|
type: "listbox",
|
|
48038
48038
|
label: "Image list",
|
|
@@ -48076,7 +48076,7 @@ Required: ` + m.join(", "));
|
|
|
48076
48076
|
} : { type: "panel" };
|
|
48077
48077
|
return Jn([
|
|
48078
48078
|
[K],
|
|
48079
|
-
|
|
48079
|
+
re.toArray(),
|
|
48080
48080
|
I.hasAccessibilityOptions && I.hasDescription ? [Gt] : [],
|
|
48081
48081
|
I.hasDescription ? [Ie] : [],
|
|
48082
48082
|
I.hasImageTitle ? [Ot] : [],
|
|
@@ -48142,53 +48142,53 @@ Required: ` + m.join(", "));
|
|
|
48142
48142
|
border: I.border,
|
|
48143
48143
|
borderStyle: I.borderstyle,
|
|
48144
48144
|
isDecorative: I.isDecorative
|
|
48145
|
-
}), Fl = (I, K) => /^(?:[a-zA-Z]+:)?\/\//.test(K) ? Tt.none() : I.prependURL.bind((
|
|
48146
|
-
const
|
|
48147
|
-
Fl(I,
|
|
48145
|
+
}), Fl = (I, K) => /^(?:[a-zA-Z]+:)?\/\//.test(K) ? Tt.none() : I.prependURL.bind((re) => K.substring(0, re.length) !== re ? Tt.some(re + K) : Tt.none()), ea = (I, K) => {
|
|
48146
|
+
const re = K.getData();
|
|
48147
|
+
Fl(I, re.src.value).each((Ie) => {
|
|
48148
48148
|
K.setData({
|
|
48149
48149
|
src: {
|
|
48150
48150
|
value: Ie,
|
|
48151
|
-
meta:
|
|
48151
|
+
meta: re.src.meta
|
|
48152
48152
|
}
|
|
48153
48153
|
});
|
|
48154
48154
|
});
|
|
48155
|
-
}, Hl = (I, K,
|
|
48156
|
-
I.hasDescription && He(
|
|
48155
|
+
}, Hl = (I, K, re) => {
|
|
48156
|
+
I.hasDescription && He(re.alt) && (K.alt = re.alt), I.hasAccessibilityOptions && (K.isDecorative = re.isDecorative || K.isDecorative || !1), I.hasImageTitle && He(re.title) && (K.title = re.title), I.hasDimensions && (He(re.width) && (K.dimensions.width = re.width), He(re.height) && (K.dimensions.height = re.height)), He(re.class) && ia.findEntry(I.classList, re.class).each((Ie) => {
|
|
48157
48157
|
K.classes = Ie.value;
|
|
48158
|
-
}), I.hasImageCaption && Wo(
|
|
48158
|
+
}), I.hasImageCaption && Wo(re.caption) && (K.caption = re.caption), I.hasAdvTab && (He(re.style) && (K.style = re.style), He(re.vspace) && (K.vspace = re.vspace), He(re.border) && (K.border = re.border), He(re.hspace) && (K.hspace = re.hspace), He(re.borderstyle) && (K.borderstyle = re.borderstyle));
|
|
48159
48159
|
}, Vl = (I, K) => {
|
|
48160
|
-
const
|
|
48160
|
+
const re = K.getData(), Ie = re.src.meta;
|
|
48161
48161
|
if (Ie !== void 0) {
|
|
48162
|
-
const Ot = tl({},
|
|
48162
|
+
const Ot = tl({}, re);
|
|
48163
48163
|
Hl(I, Ot, Ie), K.setData(Ot);
|
|
48164
48164
|
}
|
|
48165
|
-
}, Zu = (I, K,
|
|
48165
|
+
}, Zu = (I, K, re, Ie) => {
|
|
48166
48166
|
const Ot = Ie.getData(), Kn = Ot.src.value, Gt = Ot.src.meta || {};
|
|
48167
48167
|
!Gt.width && !Gt.height && K.hasDimensions && (Qa(Kn) ? I.imageSize(Kn).then(($s) => {
|
|
48168
|
-
|
|
48168
|
+
re.open && Ie.setData({ dimensions: $s });
|
|
48169
48169
|
}).catch(($s) => console.error($s)) : Ie.setData({
|
|
48170
48170
|
dimensions: {
|
|
48171
48171
|
width: "",
|
|
48172
48172
|
height: ""
|
|
48173
48173
|
}
|
|
48174
48174
|
}));
|
|
48175
|
-
}, wl = (I, K,
|
|
48176
|
-
const Ie =
|
|
48177
|
-
K.prevImage = Ot,
|
|
48178
|
-
}, Ji = (I, K,
|
|
48179
|
-
ea(K, Ie), Vl(K, Ie), Zu(I, K,
|
|
48180
|
-
}, $a = (I, K,
|
|
48175
|
+
}, wl = (I, K, re) => {
|
|
48176
|
+
const Ie = re.getData(), Ot = ia.findEntry(I.imageList, Ie.src.value);
|
|
48177
|
+
K.prevImage = Ot, re.setData({ images: Ot.map((Kn) => Kn.value).getOr("") });
|
|
48178
|
+
}, Ji = (I, K, re, Ie) => {
|
|
48179
|
+
ea(K, Ie), Vl(K, Ie), Zu(I, K, re, Ie), wl(K, re, Ie);
|
|
48180
|
+
}, $a = (I, K, re, Ie) => {
|
|
48181
48181
|
const Ot = Ie.getData(), Kn = ia.findEntry(K.imageList, Ot.images);
|
|
48182
48182
|
Kn.each((Gt) => {
|
|
48183
|
-
Ot.alt === "" ||
|
|
48183
|
+
Ot.alt === "" || re.prevImage.map((lt) => lt.text === Ot.alt).getOr(!1) ? Gt.value === "" ? Ie.setData({
|
|
48184
48184
|
src: Gt,
|
|
48185
|
-
alt:
|
|
48185
|
+
alt: re.prevAlt
|
|
48186
48186
|
}) : Ie.setData({
|
|
48187
48187
|
src: Gt,
|
|
48188
48188
|
alt: Gt.text
|
|
48189
48189
|
}) : Ie.setData({ src: Gt });
|
|
48190
|
-
}),
|
|
48191
|
-
}, Cc = (I, K,
|
|
48190
|
+
}), re.prevImage = Kn, Ji(I, K, re, Ie);
|
|
48191
|
+
}, Cc = (I, K, re, Ie) => {
|
|
48192
48192
|
const Ot = Ie.getData();
|
|
48193
48193
|
Ie.block("Uploading image"), A(Ot.fileinput).fold(() => {
|
|
48194
48194
|
Ie.unblock();
|
|
@@ -48201,7 +48201,7 @@ Required: ` + m.join(", "));
|
|
|
48201
48201
|
value: as,
|
|
48202
48202
|
meta: {}
|
|
48203
48203
|
}
|
|
48204
|
-
}), Ie.showTab("general"), Ji(I, K,
|
|
48204
|
+
}), Ie.showTab("general"), Ji(I, K, re, Ie);
|
|
48205
48205
|
};
|
|
48206
48206
|
Go(Kn).then((as) => {
|
|
48207
48207
|
const Ua = I.createBlobCache(Kn, Gt, as);
|
|
@@ -48212,8 +48212,8 @@ Required: ` + m.join(", "));
|
|
|
48212
48212
|
}) : (I.addToBlobCache(Ua), lt(Ua.blobUri()), Ie.unblock());
|
|
48213
48213
|
});
|
|
48214
48214
|
});
|
|
48215
|
-
}, hi = (I, K,
|
|
48216
|
-
Ot.name === "src" ? Ji(I, K,
|
|
48215
|
+
}, hi = (I, K, re) => (Ie, Ot) => {
|
|
48216
|
+
Ot.name === "src" ? Ji(I, K, re, Ie) : Ot.name === "images" ? $a(I, K, re, Ie) : Ot.name === "alt" ? re.prevAlt = Ie.getData().alt : Ot.name === "fileinput" ? Cc(I, K, re, Ie) : Ot.name === "isDecorative" && Ie.setEnabled("alt", !Ie.getData().isDecorative);
|
|
48217
48217
|
}, pu = (I) => () => {
|
|
48218
48218
|
I.open = !1;
|
|
48219
48219
|
}, ju = (I) => I.hasAdvTab || I.hasUploadUrl || I.hasUploadHandler ? {
|
|
@@ -48226,23 +48226,23 @@ Required: ` + m.join(", "));
|
|
|
48226
48226
|
} : {
|
|
48227
48227
|
type: "panel",
|
|
48228
48228
|
items: Xi.makeItems(I)
|
|
48229
|
-
}, j = (I, K,
|
|
48229
|
+
}, j = (I, K, re) => (Ie) => {
|
|
48230
48230
|
const Ot = tl(nr(K.image), Ie.getData()), Kn = {
|
|
48231
48231
|
...Ot,
|
|
48232
|
-
style: Us(
|
|
48232
|
+
style: Us(re.normalizeCss, yl(Ot, !1))
|
|
48233
48233
|
};
|
|
48234
48234
|
I.execCommand("mceUpdateImage", !1, yl(Kn, K.hasAccessibilityOptions)), I.editorUpload.uploadImagesAuto(), Ie.close();
|
|
48235
|
-
}, de = (I) => (K) => Yn(I, K) ? vc(I.documentBaseURI.toAbsolute(K)).then((
|
|
48236
|
-
width: String(
|
|
48237
|
-
height: String(
|
|
48235
|
+
}, de = (I) => (K) => Yn(I, K) ? vc(I.documentBaseURI.toAbsolute(K)).then((re) => ({
|
|
48236
|
+
width: String(re.width),
|
|
48237
|
+
height: String(re.height)
|
|
48238
48238
|
})) : Promise.resolve({
|
|
48239
48239
|
width: "",
|
|
48240
48240
|
height: ""
|
|
48241
|
-
}), ke = (I) => (K,
|
|
48241
|
+
}), ke = (I) => (K, re, Ie) => {
|
|
48242
48242
|
var Ot;
|
|
48243
48243
|
return I.editorUpload.blobCache.create({
|
|
48244
48244
|
blob: K,
|
|
48245
|
-
blobUri:
|
|
48245
|
+
blobUri: re,
|
|
48246
48246
|
name: (Ot = K.name) === null || Ot === void 0 ? void 0 : Ot.replace(/\.[^\.]+$/, ""),
|
|
48247
48247
|
filename: K.name,
|
|
48248
48248
|
base64: Ie.split(",")[1]
|
|
@@ -48251,9 +48251,9 @@ Required: ` + m.join(", "));
|
|
|
48251
48251
|
I.editorUpload.blobCache.add(K);
|
|
48252
48252
|
}, dt = (I) => (K) => {
|
|
48253
48253
|
I.windowManager.alert(K);
|
|
48254
|
-
}, cn = (I) => (K) => Vc(I, K), Vo = (I) => (K) => I.dom.parseStyle(K), rs = (I) => (K,
|
|
48254
|
+
}, cn = (I) => (K) => Vc(I, K), Vo = (I) => (K) => I.dom.parseStyle(K), rs = (I) => (K, re) => I.dom.serializeStyle(K, re), zo = (I) => (K) => Yi(I).upload([K], !1).then((re) => {
|
|
48255
48255
|
var Ie;
|
|
48256
|
-
return
|
|
48256
|
+
return re.length === 0 ? Promise.reject("Failed to upload image") : re[0].status === !1 ? Promise.reject((Ie = re[0].error) === null || Ie === void 0 ? void 0 : Ie.message) : re[0];
|
|
48257
48257
|
}), ys = (I) => {
|
|
48258
48258
|
const K = {
|
|
48259
48259
|
imageSize: de(I),
|
|
@@ -48293,19 +48293,19 @@ Required: ` + m.join(", "));
|
|
|
48293
48293
|
}).then(I.windowManager.open);
|
|
48294
48294
|
} };
|
|
48295
48295
|
}, ao = (I) => {
|
|
48296
|
-
I.addCommand("mceImage", ys(I).open), I.addCommand("mceUpdateImage", (K,
|
|
48297
|
-
I.undoManager.transact(() => ts(I,
|
|
48296
|
+
I.addCommand("mceImage", ys(I).open), I.addCommand("mceUpdateImage", (K, re) => {
|
|
48297
|
+
I.undoManager.transact(() => ts(I, re));
|
|
48298
48298
|
});
|
|
48299
48299
|
}, Fs = (I) => {
|
|
48300
48300
|
const K = I.attr("class");
|
|
48301
48301
|
return No(K) && /\bimage\b/.test(K);
|
|
48302
48302
|
}, Ma = (I) => (K) => {
|
|
48303
|
-
let
|
|
48303
|
+
let re = K.length;
|
|
48304
48304
|
const Ie = (Ot) => {
|
|
48305
48305
|
Ot.attr("contenteditable", I ? "true" : null);
|
|
48306
48306
|
};
|
|
48307
|
-
for (;
|
|
48308
|
-
const Ot = K[
|
|
48307
|
+
for (; re--; ) {
|
|
48308
|
+
const Ot = K[re];
|
|
48309
48309
|
Fs(Ot) && (Ot.attr("contenteditable", I ? "false" : null), vs.each(Ot.getAll("figcaption"), Ie));
|
|
48310
48310
|
}
|
|
48311
48311
|
}, bu = (I) => {
|
|
@@ -48313,11 +48313,11 @@ Required: ` + m.join(", "));
|
|
|
48313
48313
|
I.parser.addNodeFilter("figure", Ma(!0)), I.serializer.addNodeFilter("figure", Ma(!1));
|
|
48314
48314
|
});
|
|
48315
48315
|
}, Nt = (I) => (K) => {
|
|
48316
|
-
const
|
|
48316
|
+
const re = () => {
|
|
48317
48317
|
K.setEnabled(I.selection.isEditable());
|
|
48318
48318
|
};
|
|
48319
|
-
return I.on("NodeChange",
|
|
48320
|
-
I.off("NodeChange",
|
|
48319
|
+
return I.on("NodeChange", re), re(), () => {
|
|
48320
|
+
I.off("NodeChange", re);
|
|
48321
48321
|
};
|
|
48322
48322
|
}, Gu = (I) => {
|
|
48323
48323
|
I.ui.registry.addToggleButton("image", {
|
|
@@ -48326,9 +48326,9 @@ Required: ` + m.join(", "));
|
|
|
48326
48326
|
onAction: ys(I).open,
|
|
48327
48327
|
onSetup: (K) => {
|
|
48328
48328
|
K.setActive(No(rc(I)));
|
|
48329
|
-
const
|
|
48329
|
+
const re = I.selection.selectorChangedWithUnbind("img:not([data-mce-object]):not([data-mce-placeholder]),figure.image", K.setActive).unbind, Ie = Nt(I)(K);
|
|
48330
48330
|
return () => {
|
|
48331
|
-
|
|
48331
|
+
re(), Ie();
|
|
48332
48332
|
};
|
|
48333
48333
|
}
|
|
48334
48334
|
}), I.ui.registry.addMenuItem("image", {
|
|
@@ -48350,10 +48350,10 @@ Required: ` + m.join(", "));
|
|
|
48350
48350
|
const me = (x, T, V) => {
|
|
48351
48351
|
var q;
|
|
48352
48352
|
return V(x, T.prototype) ? !0 : ((q = x.constructor) === null || q === void 0 ? void 0 : q.name) === T.name;
|
|
48353
|
-
},
|
|
48353
|
+
}, se = (x) => {
|
|
48354
48354
|
const T = typeof x;
|
|
48355
48355
|
return x === null ? "null" : T === "object" && Array.isArray(x) ? "array" : T === "object" && me(x, String, (V, q) => q.isPrototypeOf(V)) ? "string" : T;
|
|
48356
|
-
}, Ee = (x) => (T) =>
|
|
48356
|
+
}, Ee = (x) => (T) => se(T) === x, he = (x) => (T) => typeof T === x, J = (x) => (T) => x === T, Oe = Ee("string"), Q = Ee("array"), He = he("boolean"), gt = J(void 0), jt = (x) => x == null, wn = (x) => !jt(x), zn = he("function"), Wo = he("number"), ir = () => {
|
|
48357
48357
|
}, No = (x, T) => (V) => x(T(V)), Pt = (x) => () => x, ur = (x) => x, mn = (x, T) => x === T;
|
|
48358
48358
|
function fe(x, ...T) {
|
|
48359
48359
|
return (...V) => {
|
|
@@ -48733,7 +48733,7 @@ Required: ` + m.join(", "));
|
|
|
48733
48733
|
}, K = (x, T) => I([
|
|
48734
48734
|
"td",
|
|
48735
48735
|
"th"
|
|
48736
|
-
], x, T),
|
|
48736
|
+
], x, T), re = (x) => Vo(x, "th,td"), Ie = (x) => bs(x, "colgroup") ? xc(x, "col") : _e(Gt(x), (T) => xc(T, "col")), Ot = (x, T) => Ll(x, "table", T), Kn = (x) => Vo(x, "tr"), Gt = (x) => Ot(x).fold(Pt([]), (T) => xc(T, "colgroup")), $s = (x, T) => ht(x, (V) => {
|
|
48737
48737
|
if (pt(V) === "colgroup") {
|
|
48738
48738
|
const q = ht(Ie(V), (be) => {
|
|
48739
48739
|
const Ze = cn(be, "span", 1);
|
|
@@ -48741,7 +48741,7 @@ Required: ` + m.join(", "));
|
|
|
48741
48741
|
});
|
|
48742
48742
|
return bu(V, q, "colgroup");
|
|
48743
48743
|
} else {
|
|
48744
|
-
const q = ht(
|
|
48744
|
+
const q = ht(re(V), (be) => {
|
|
48745
48745
|
const Ze = cn(be, "rowspan", 1), mt = cn(be, "colspan", 1);
|
|
48746
48746
|
return Fs(be, Ze, mt);
|
|
48747
48747
|
});
|
|
@@ -50516,8 +50516,8 @@ Required: ` + T.join(", "));
|
|
|
50516
50516
|
Q.focus(), Q.undoManager.transact(() => {
|
|
50517
50517
|
Q.setContent(He);
|
|
50518
50518
|
}), Q.selection.setCursorLocation(), Q.nodeChanged();
|
|
50519
|
-
},
|
|
50520
|
-
const He =
|
|
50519
|
+
}, se = (Q) => Q.getContent({ source_view: !0 }), Ee = (Q) => {
|
|
50520
|
+
const He = se(Q);
|
|
50521
50521
|
Q.windowManager.open({
|
|
50522
50522
|
title: "Source Code",
|
|
50523
50523
|
size: "large",
|
|
@@ -50569,7 +50569,7 @@ Required: ` + T.join(", "));
|
|
|
50569
50569
|
})();
|
|
50570
50570
|
(function() {
|
|
50571
50571
|
var $ = tinymce.util.Tools.resolve("tinymce.PluginManager");
|
|
50572
|
-
const
|
|
50572
|
+
const se = ((qe) => (Dt) => qe === Dt)(null), Ee = (qe) => qe, he = (qe, Dt) => {
|
|
50573
50573
|
const Ke = qe.length, _e = new Array(Ke);
|
|
50574
50574
|
for (let vn = 0; vn < Ke; vn++) {
|
|
50575
50575
|
const jo = qe[vn];
|
|
@@ -50769,10 +50769,10 @@ Required: ` + T.join(", "));
|
|
|
50769
50769
|
let Ke = null;
|
|
50770
50770
|
return {
|
|
50771
50771
|
cancel: () => {
|
|
50772
|
-
|
|
50772
|
+
se(Ke) || (clearTimeout(Ke), Ke = null);
|
|
50773
50773
|
},
|
|
50774
50774
|
throttle: (...jo) => {
|
|
50775
|
-
|
|
50775
|
+
se(Ke) && (Ke = setTimeout(() => {
|
|
50776
50776
|
Ke = null, qe.apply(null, jo);
|
|
50777
50777
|
}, Dt));
|
|
50778
50778
|
}
|
|
@@ -50830,8 +50830,8 @@ const DQ = { class: "font-bold ptext-lg dark:text-white" }, OQ = ["id"], RQ = /*
|
|
|
50830
50830
|
description: { type: String, default: "" }
|
|
50831
50831
|
},
|
|
50832
50832
|
emits: ["update:modelValue", "keydown"],
|
|
50833
|
-
setup($, { expose: me, emit:
|
|
50834
|
-
const Ee = $, he =
|
|
50833
|
+
setup($, { expose: me, emit: se }) {
|
|
50834
|
+
const Ee = $, he = se, J = Ko(null);
|
|
50835
50835
|
let Oe = null;
|
|
50836
50836
|
b1(async () => {
|
|
50837
50837
|
await Dj(), Oe && (Oe.destroy(), Oe = null), AQ.init({
|
|
@@ -50966,7 +50966,7 @@ const DQ = { class: "font-bold ptext-lg dark:text-white" }, OQ = ["id"], RQ = /*
|
|
|
50966
50966
|
return 0;
|
|
50967
50967
|
if (this.limit === 0)
|
|
50968
50968
|
return this.lastPage;
|
|
50969
|
-
for (var $ = this.currentPage, me = this.lastPage,
|
|
50969
|
+
for (var $ = this.currentPage, me = this.lastPage, se = this.limit, Ee = $ - se, he = $ + se + 1, J = [], Oe = [], Q, He = 1; He <= me; He++)
|
|
50970
50970
|
(He === 1 || He === me || He >= Ee && He < he) && J.push(He);
|
|
50971
50971
|
return J.forEach(function(gt) {
|
|
50972
50972
|
Q && (gt - Q === 2 ? Oe.push(Q + 1) : gt - Q !== 1 && Oe.push("...")), Oe.push(gt), Q = gt;
|
|
@@ -51092,11 +51092,11 @@ const DQ = { class: "font-bold ptext-lg dark:text-white" }, OQ = ["id"], RQ = /*
|
|
|
51092
51092
|
d: "m1 9 4-4-4-4"
|
|
51093
51093
|
})
|
|
51094
51094
|
], -1);
|
|
51095
|
-
function YQ($, me,
|
|
51095
|
+
function YQ($, me, se, Ee, he, J) {
|
|
51096
51096
|
const Oe = ky("RenderlessPagination");
|
|
51097
51097
|
return ye(), Ty(Oe, {
|
|
51098
|
-
data:
|
|
51099
|
-
limit:
|
|
51098
|
+
data: se.data,
|
|
51099
|
+
limit: se.limit,
|
|
51100
51100
|
onPaginationChangePage: J.onPaginationChangePage
|
|
51101
51101
|
}, {
|
|
51102
51102
|
default: U8((Q) => [
|
|
@@ -51112,13 +51112,13 @@ function YQ($, me, re, Ee, he, J) {
|
|
|
51112
51112
|
])) : xt("", !0),
|
|
51113
51113
|
Q.computed.total > Q.computed.perPage ? (ye(), xe("ul", t5({ key: 1 }, $.$attrs, {
|
|
51114
51114
|
class: ["flex items-center h-8 -space-x-px text-sm", {
|
|
51115
|
-
"pagination-sm":
|
|
51116
|
-
"pagination-lg":
|
|
51117
|
-
"justify-content-center":
|
|
51118
|
-
"justify-content-end":
|
|
51115
|
+
"pagination-sm": se.size == "small",
|
|
51116
|
+
"pagination-lg": se.size == "large",
|
|
51117
|
+
"justify-content-center": se.align == "center",
|
|
51118
|
+
"justify-content-end": se.align == "right"
|
|
51119
51119
|
}]
|
|
51120
51120
|
}), [
|
|
51121
|
-
Q.computed.prevPageUrl ||
|
|
51121
|
+
Q.computed.prevPageUrl || se.showDisabled ? (ye(), xe("li", {
|
|
51122
51122
|
key: 0,
|
|
51123
51123
|
class: dn(["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", { disabled: !Q.computed.prevPageUrl }])
|
|
51124
51124
|
}, [
|
|
@@ -51146,7 +51146,7 @@ function YQ($, me, re, Ee, he, J) {
|
|
|
51146
51146
|
class: He == Q.computed.currentPage ? "z-10 flex items-center justify-center px-3 h-8 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" : "flex items-center justify-center px-3 h-8 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"
|
|
51147
51147
|
}), bt(He), 17, jQ)
|
|
51148
51148
|
], 2))), 128)),
|
|
51149
|
-
Q.computed.nextPageUrl ||
|
|
51149
|
+
Q.computed.nextPageUrl || se.showDisabled ? (ye(), xe("li", {
|
|
51150
51150
|
key: 1,
|
|
51151
51151
|
class: dn(["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", { disabled: !Q.computed.nextPageUrl }])
|
|
51152
51152
|
}, [
|
|
@@ -51200,7 +51200,7 @@ const tq = /* @__PURE__ */ Jr(IQ, [["render", YQ]]), XQ = {
|
|
|
51200
51200
|
computed: {
|
|
51201
51201
|
filteredData() {
|
|
51202
51202
|
const $ = this.search.toLowerCase();
|
|
51203
|
-
return this.sortData(this.data).filter((
|
|
51203
|
+
return this.sortData(this.data).filter((se) => Object.values(se).some(
|
|
51204
51204
|
(Ee) => Ee.toString().toLowerCase().includes($)
|
|
51205
51205
|
));
|
|
51206
51206
|
}
|
|
@@ -51224,10 +51224,10 @@ const tq = /* @__PURE__ */ Jr(IQ, [["render", YQ]]), XQ = {
|
|
|
51224
51224
|
limit: this.perPage,
|
|
51225
51225
|
page: this.page
|
|
51226
51226
|
};
|
|
51227
|
-
axios.get(this.xprops.route_get_data, { params: me }).then((
|
|
51228
|
-
this.itemLists =
|
|
51229
|
-
}).catch((
|
|
51230
|
-
console.error(
|
|
51227
|
+
axios.get(this.xprops.route_get_data, { params: me }).then((se) => {
|
|
51228
|
+
this.itemLists = se.data, this.isLoading = !1;
|
|
51229
|
+
}).catch((se) => {
|
|
51230
|
+
console.error(se), this.isLoading = !1;
|
|
51231
51231
|
});
|
|
51232
51232
|
},
|
|
51233
51233
|
updateSortColumn($, me) {
|
|
@@ -51320,7 +51320,7 @@ const tq = /* @__PURE__ */ Jr(IQ, [["render", YQ]]), XQ = {
|
|
|
51320
51320
|
], -1), bee = [
|
|
51321
51321
|
pee
|
|
51322
51322
|
], vee = ["data-label"], yee = { class: "overflow-auto max-h-40" }, wee = { 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" };
|
|
51323
|
-
function xee($, me,
|
|
51323
|
+
function xee($, me, se, Ee, he, J) {
|
|
51324
51324
|
const Oe = ky("dropdown"), Q = ky("TailwindPagination");
|
|
51325
51325
|
return ye(), xe("div", JQ, [
|
|
51326
51326
|
N("div", QQ, [
|
|
@@ -51360,7 +51360,7 @@ function xee($, me, re, Ee, he, J) {
|
|
|
51360
51360
|
N("table", cee, [
|
|
51361
51361
|
N("thead", iee, [
|
|
51362
51362
|
N("tr", null, [
|
|
51363
|
-
(ye(!0), xe(Co, null, kr(
|
|
51363
|
+
(ye(!0), xe(Co, null, kr(se.columns, (He, gt) => (ye(), xe("th", {
|
|
51364
51364
|
key: gt,
|
|
51365
51365
|
onClick: (jt) => J.updateSortColumn(He.field_name, He.sortable),
|
|
51366
51366
|
class: "w-full px-4 py-2 lg:w-2/12"
|
|
@@ -51375,19 +51375,19 @@ function xee($, me, re, Ee, he, J) {
|
|
|
51375
51375
|
N("tbody", null, [
|
|
51376
51376
|
he.isLoading ? (ye(), xe("tr", gee, [
|
|
51377
51377
|
N("td", {
|
|
51378
|
-
colspan:
|
|
51378
|
+
colspan: se.columns.length
|
|
51379
51379
|
}, bee, 8, hee)
|
|
51380
51380
|
])) : xt("", !0),
|
|
51381
51381
|
he.isLoading ? xt("", !0) : (ye(!0), xe(Co, { key: 1 }, kr(he.itemLists.data, (He, gt) => (ye(), xe("tr", {
|
|
51382
51382
|
key: gt,
|
|
51383
51383
|
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"
|
|
51384
51384
|
}, [
|
|
51385
|
-
(ye(!0), xe(Co, null, kr(
|
|
51385
|
+
(ye(!0), xe(Co, null, kr(se.columns, (jt, wn) => (ye(), xe("td", {
|
|
51386
51386
|
key: wn,
|
|
51387
51387
|
"data-label": jt.field_label,
|
|
51388
51388
|
class: dn(["text-pretty before:content-[attr(data-label)] before:font-bold lg:before:content-none flex flex-col justify-between gap-2 lg:table-cell py-4 px-5 lg:py-3 lg:px-4 border-[0.3px] dark:border-gray-700", {
|
|
51389
51389
|
"rounded-t-lg lg:rounded-t-none": wn === 0,
|
|
51390
|
-
"rounded-b-lg lg:rounded-b-none": wn ===
|
|
51390
|
+
"rounded-b-lg lg:rounded-b-none": wn === se.columns.length - 1
|
|
51391
51391
|
}])
|
|
51392
51392
|
}, [
|
|
51393
51393
|
N("div", yee, [
|
|
@@ -51395,7 +51395,7 @@ function xee($, me, re, Ee, he, J) {
|
|
|
51395
51395
|
key: 0,
|
|
51396
51396
|
row: He,
|
|
51397
51397
|
field: jt.field_name,
|
|
51398
|
-
xprops:
|
|
51398
|
+
xprops: se.xprops,
|
|
51399
51399
|
tdProps: jt.tdProps,
|
|
51400
51400
|
onDeleteAction: me[3] || (me[3] = (zn) => J.GetItemLists()),
|
|
51401
51401
|
onEditAction: (zn) => J.editAction(He),
|
|
@@ -51449,7 +51449,7 @@ const Lae = /* @__PURE__ */ Jr(XQ, [["render", xee]]), Cee = {
|
|
|
51449
51449
|
computed: {
|
|
51450
51450
|
filteredData() {
|
|
51451
51451
|
const $ = this.search.toLowerCase();
|
|
51452
|
-
return this.sortData(this.itemLists).filter((
|
|
51452
|
+
return this.sortData(this.itemLists).filter((se) => Object.values(se).some(
|
|
51453
51453
|
(Ee) => Ee != null && Ee.toString().toLowerCase().includes($)
|
|
51454
51454
|
));
|
|
51455
51455
|
},
|
|
@@ -51467,7 +51467,7 @@ const Lae = /* @__PURE__ */ Jr(XQ, [["render", xee]]), Cee = {
|
|
|
51467
51467
|
), me = $ + this.maxDisplayedPages - 1;
|
|
51468
51468
|
return me > this.totalPages && (me = this.totalPages, $ = Math.max(me - this.maxDisplayedPages + 1, 1)), Array.from(
|
|
51469
51469
|
{ length: me - $ + 1 },
|
|
51470
|
-
(
|
|
51470
|
+
(se, Ee) => $ + Ee
|
|
51471
51471
|
);
|
|
51472
51472
|
},
|
|
51473
51473
|
firstItemIndex() {
|
|
@@ -51501,7 +51501,7 @@ const Lae = /* @__PURE__ */ Jr(XQ, [["render", xee]]), Cee = {
|
|
|
51501
51501
|
$ === this.sortKey ? this.sortOrder *= -1 : (this.sortKey = $, this.sortOrder = 1);
|
|
51502
51502
|
},
|
|
51503
51503
|
sortData($) {
|
|
51504
|
-
return this.sortKey ? $.slice().sort((me,
|
|
51504
|
+
return this.sortKey ? $.slice().sort((me, se) => (me[this.sortKey] < se[this.sortKey] ? -1 : 1) * this.sortOrder) : $;
|
|
51505
51505
|
},
|
|
51506
51506
|
previousPage() {
|
|
51507
51507
|
this.currentPage > 1 && this.currentPage--;
|
|
@@ -51635,7 +51635,7 @@ const Lae = /* @__PURE__ */ Jr(XQ, [["render", xee]]), Cee = {
|
|
|
51635
51635
|
ite,
|
|
51636
51636
|
ute
|
|
51637
51637
|
];
|
|
51638
|
-
function mte($, me,
|
|
51638
|
+
function mte($, me, se, Ee, he, J) {
|
|
51639
51639
|
const Oe = ky("dropdown");
|
|
51640
51640
|
return ye(), xe("div", See, [
|
|
51641
51641
|
N("div", _ee, [
|
|
@@ -51674,7 +51674,7 @@ function mte($, me, re, Ee, he, J) {
|
|
|
51674
51674
|
N("table", Mee, [
|
|
51675
51675
|
N("thead", Pee, [
|
|
51676
51676
|
N("tr", null, [
|
|
51677
|
-
(ye(!0), xe(Co, null, kr(
|
|
51677
|
+
(ye(!0), xe(Co, null, kr(se.columns, (Q, He) => (ye(), xe("th", {
|
|
51678
51678
|
key: He,
|
|
51679
51679
|
onClick: (gt) => J.sort(Q.field_name, Q.sortable),
|
|
51680
51680
|
class: "w-full px-4 py-2 lg:w-2/12"
|
|
@@ -51689,19 +51689,19 @@ function mte($, me, re, Ee, he, J) {
|
|
|
51689
51689
|
N("tbody", null, [
|
|
51690
51690
|
he.isLoading ? (ye(), xe("tr", Fee, [
|
|
51691
51691
|
N("td", {
|
|
51692
|
-
colspan:
|
|
51692
|
+
colspan: se.columns.length
|
|
51693
51693
|
}, zee, 8, Hee)
|
|
51694
51694
|
])) : xt("", !0),
|
|
51695
51695
|
he.isLoading ? xt("", !0) : (ye(!0), xe(Co, { key: 1 }, kr(J.paginatedData, (Q, He) => (ye(), xe("tr", {
|
|
51696
51696
|
key: He,
|
|
51697
51697
|
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"
|
|
51698
51698
|
}, [
|
|
51699
|
-
(ye(!0), xe(Co, null, kr(
|
|
51699
|
+
(ye(!0), xe(Co, null, kr(se.columns, (gt, jt) => (ye(), xe("td", {
|
|
51700
51700
|
key: jt,
|
|
51701
51701
|
"data-label": gt.field_label,
|
|
51702
51702
|
class: dn(["text-pretty before:content-[attr(data-label)] before:font-bold lg:before:content-none flex flex-col justify-between gap-2 lg:table-cell py-4 px-5 lg:py-3 lg:px-4 border-[0.3px] dark:border-gray-700", {
|
|
51703
51703
|
"rounded-t-lg lg:rounded-t-none": jt === 0,
|
|
51704
|
-
"rounded-b-lg lg:rounded-b-none": jt ===
|
|
51704
|
+
"rounded-b-lg lg:rounded-b-none": jt === se.columns.length - 1
|
|
51705
51705
|
}])
|
|
51706
51706
|
}, [
|
|
51707
51707
|
N("div", Wee, [
|
|
@@ -51709,7 +51709,7 @@ function mte($, me, re, Ee, he, J) {
|
|
|
51709
51709
|
key: 0,
|
|
51710
51710
|
row: Q,
|
|
51711
51711
|
field: gt.field_name,
|
|
51712
|
-
xprops:
|
|
51712
|
+
xprops: se.xprops,
|
|
51713
51713
|
tdProps: gt.tdProps,
|
|
51714
51714
|
onDeleteAction: me[2] || (me[2] = (wn) => J.GetItemLists()),
|
|
51715
51715
|
onEditAction: (wn) => J.editAction(Q),
|
|
@@ -51828,7 +51828,7 @@ const Fae = /* @__PURE__ */ Jr(Cee, [["render", mte]]), fte = {
|
|
|
51828
51828
|
computed: {
|
|
51829
51829
|
filteredData() {
|
|
51830
51830
|
const $ = this.search.toLowerCase();
|
|
51831
|
-
return this.sortData(this.data).filter((
|
|
51831
|
+
return this.sortData(this.data).filter((se) => Object.values(se).some(
|
|
51832
51832
|
(Ee) => Ee.toString().toLowerCase().includes($)
|
|
51833
51833
|
));
|
|
51834
51834
|
},
|
|
@@ -51838,10 +51838,10 @@ const Fae = /* @__PURE__ */ Jr(Cee, [["render", mte]]), fte = {
|
|
|
51838
51838
|
},
|
|
51839
51839
|
methods: {
|
|
51840
51840
|
groupBy($) {
|
|
51841
|
-
return this.itemLists.data ? this.itemLists.data.reduce((me,
|
|
51842
|
-
const Ee =
|
|
51841
|
+
return this.itemLists.data ? this.itemLists.data.reduce((me, se) => {
|
|
51842
|
+
const Ee = se[$];
|
|
51843
51843
|
me[Ee] || (me[Ee] = []);
|
|
51844
|
-
const he = { ...
|
|
51844
|
+
const he = { ...se };
|
|
51845
51845
|
return delete he[$], me[Ee].push(he), me;
|
|
51846
51846
|
}, {}) : [];
|
|
51847
51847
|
},
|
|
@@ -51860,10 +51860,10 @@ const Fae = /* @__PURE__ */ Jr(Cee, [["render", mte]]), fte = {
|
|
|
51860
51860
|
limit: this.perPage,
|
|
51861
51861
|
page: this.page
|
|
51862
51862
|
};
|
|
51863
|
-
axios.get(this.xprops.route_get_data, { params: me }).then((
|
|
51864
|
-
this.itemLists =
|
|
51865
|
-
}).catch((
|
|
51866
|
-
console.error(
|
|
51863
|
+
axios.get(this.xprops.route_get_data, { params: me }).then((se) => {
|
|
51864
|
+
this.itemLists = se.data, this.isLoading = !1;
|
|
51865
|
+
}).catch((se) => {
|
|
51866
|
+
console.error(se), this.isLoading = !1;
|
|
51867
51867
|
});
|
|
51868
51868
|
},
|
|
51869
51869
|
updateSortColumn($, me) {
|
|
@@ -51956,7 +51956,7 @@ const Fae = /* @__PURE__ */ Jr(Cee, [["render", mte]]), fte = {
|
|
|
51956
51956
|
], -1), Mte = [
|
|
51957
51957
|
$te
|
|
51958
51958
|
], Pte = { 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" }, Nte = ["colspan"], Bte = ["data-label"], Ite = { class: "overflow-auto max-h-40" }, Lte = { 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" };
|
|
51959
|
-
function Fte($, me,
|
|
51959
|
+
function Fte($, me, se, Ee, he, J) {
|
|
51960
51960
|
const Oe = ky("dropdown"), Q = ky("TailwindPagination");
|
|
51961
51961
|
return ye(), xe("div", gte, [
|
|
51962
51962
|
N("div", hte, [
|
|
@@ -51996,7 +51996,7 @@ function Fte($, me, re, Ee, he, J) {
|
|
|
51996
51996
|
N("table", _te, [
|
|
51997
51997
|
N("thead", kte, [
|
|
51998
51998
|
N("tr", null, [
|
|
51999
|
-
(ye(!0), xe(Co, null, kr(
|
|
51999
|
+
(ye(!0), xe(Co, null, kr(se.columns, (He, gt) => (ye(), xe("th", {
|
|
52000
52000
|
key: gt,
|
|
52001
52001
|
onClick: (jt) => J.updateSortColumn(He.field_name, He.sortable),
|
|
52002
52002
|
class: "w-full px-4 py-2 lg:w-2/12"
|
|
@@ -52011,13 +52011,13 @@ function Fte($, me, re, Ee, he, J) {
|
|
|
52011
52011
|
N("tbody", null, [
|
|
52012
52012
|
he.isLoading ? (ye(), xe("tr", Ote, [
|
|
52013
52013
|
N("td", {
|
|
52014
|
-
colspan:
|
|
52014
|
+
colspan: se.columns.length
|
|
52015
52015
|
}, Mte, 8, Rte)
|
|
52016
52016
|
])) : xt("", !0),
|
|
52017
52017
|
he.isLoading ? xt("", !0) : (ye(!0), xe(Co, { key: 1 }, kr(J.groupedItems, (He, gt) => (ye(), xe(Co, null, [
|
|
52018
52018
|
N("tr", Pte, [
|
|
52019
52019
|
N("td", {
|
|
52020
|
-
colspan:
|
|
52020
|
+
colspan: se.columns.length,
|
|
52021
52021
|
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"
|
|
52022
52022
|
}, bt(gt), 9, Nte)
|
|
52023
52023
|
]),
|
|
@@ -52025,7 +52025,7 @@ function Fte($, me, re, Ee, he, J) {
|
|
|
52025
52025
|
key: wn,
|
|
52026
52026
|
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"
|
|
52027
52027
|
}, [
|
|
52028
|
-
(ye(!0), xe(Co, null, kr(
|
|
52028
|
+
(ye(!0), xe(Co, null, kr(se.columns, (zn, Wo) => (ye(), xe("td", {
|
|
52029
52029
|
key: Wo,
|
|
52030
52030
|
"data-label": zn.field_label,
|
|
52031
52031
|
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"
|
|
@@ -52035,7 +52035,7 @@ function Fte($, me, re, Ee, he, J) {
|
|
|
52035
52035
|
key: 0,
|
|
52036
52036
|
row: jt,
|
|
52037
52037
|
field: zn.field_name,
|
|
52038
|
-
xprops:
|
|
52038
|
+
xprops: se.xprops,
|
|
52039
52039
|
tdProps: zn.tdProps,
|
|
52040
52040
|
onDeleteAction: me[3] || (me[3] = (ir) => J.GetItemLists()),
|
|
52041
52041
|
onEditAction: (ir) => J.editAction(jt)
|
|
@@ -52083,7 +52083,7 @@ const Hae = /* @__PURE__ */ Jr(fte, [["render", Fte]]), Hte = {
|
|
|
52083
52083
|
computed: {
|
|
52084
52084
|
filteredData() {
|
|
52085
52085
|
const $ = this.search.toLowerCase();
|
|
52086
|
-
return this.sortData(this.data).filter((
|
|
52086
|
+
return this.sortData(this.data).filter((se) => Object.values(se).some(
|
|
52087
52087
|
(Ee) => Ee != null && Ee.toString().toLowerCase().includes($)
|
|
52088
52088
|
));
|
|
52089
52089
|
},
|
|
@@ -52101,7 +52101,7 @@ const Hae = /* @__PURE__ */ Jr(fte, [["render", Fte]]), Hte = {
|
|
|
52101
52101
|
), me = $ + this.maxDisplayedPages - 1;
|
|
52102
52102
|
return me > this.totalPages && (me = this.totalPages, $ = Math.max(me - this.maxDisplayedPages + 1, 1)), Array.from(
|
|
52103
52103
|
{ length: me - $ + 1 },
|
|
52104
|
-
(
|
|
52104
|
+
(se, Ee) => $ + Ee
|
|
52105
52105
|
);
|
|
52106
52106
|
},
|
|
52107
52107
|
firstItemIndex() {
|
|
@@ -52123,7 +52123,7 @@ const Hae = /* @__PURE__ */ Jr(fte, [["render", Fte]]), Hte = {
|
|
|
52123
52123
|
$ === this.sortKey ? this.sortOrder *= -1 : (this.sortKey = $, this.sortOrder = 1);
|
|
52124
52124
|
},
|
|
52125
52125
|
sortData($) {
|
|
52126
|
-
return this.sortKey ? $.slice().sort((me,
|
|
52126
|
+
return this.sortKey ? $.slice().sort((me, se) => (me[this.sortKey] < se[this.sortKey] ? -1 : 1) * this.sortOrder) : $;
|
|
52127
52127
|
},
|
|
52128
52128
|
previousPage() {
|
|
52129
52129
|
this.currentPage > 1 && this.currentPage--;
|
|
@@ -52205,7 +52205,7 @@ const Hae = /* @__PURE__ */ Jr(fte, [["render", Fte]]), Hte = {
|
|
|
52205
52205
|
Sne,
|
|
52206
52206
|
_ne
|
|
52207
52207
|
];
|
|
52208
|
-
function Tne($, me,
|
|
52208
|
+
function Tne($, me, se, Ee, he, J) {
|
|
52209
52209
|
const Oe = ky("dropdown");
|
|
52210
52210
|
return ye(), xe("div", Vte, [
|
|
52211
52211
|
N("div", zte, [
|
|
@@ -52244,7 +52244,7 @@ function Tne($, me, re, Ee, he, J) {
|
|
|
52244
52244
|
N("table", Xte, [
|
|
52245
52245
|
N("thead", Jte, [
|
|
52246
52246
|
N("tr", null, [
|
|
52247
|
-
(ye(!0), xe(Co, null, kr(
|
|
52247
|
+
(ye(!0), xe(Co, null, kr(se.columns, (Q, He) => (ye(), xe("th", {
|
|
52248
52248
|
key: He,
|
|
52249
52249
|
onClick: oc((gt) => J.sort(Q), ["prevent"]),
|
|
52250
52250
|
class: "w-full px-4 py-2 lg:w-2/12 capitalize"
|
|
@@ -52261,7 +52261,7 @@ function Tne($, me, re, Ee, he, J) {
|
|
|
52261
52261
|
key: He,
|
|
52262
52262
|
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"
|
|
52263
52263
|
}, [
|
|
52264
|
-
(ye(!0), xe(Co, null, kr(
|
|
52264
|
+
(ye(!0), xe(Co, null, kr(se.columns, (gt, jt) => (ye(), xe("td", {
|
|
52265
52265
|
key: jt,
|
|
52266
52266
|
"data-label": gt,
|
|
52267
52267
|
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-2.5 lg:px-4 border dark:border-gray-700"
|
|
@@ -52367,7 +52367,7 @@ const Vae = /* @__PURE__ */ Jr(Hte, [["render", Tne]]), Ene = {
|
|
|
52367
52367
|
}), {};
|
|
52368
52368
|
}
|
|
52369
52369
|
};
|
|
52370
|
-
function Ane($, me,
|
|
52370
|
+
function Ane($, me, se, Ee, he, J) {
|
|
52371
52371
|
return ye(), xe("div", null, [
|
|
52372
52372
|
vf($.$slots, "default")
|
|
52373
52373
|
]);
|
|
@@ -52428,7 +52428,7 @@ const zae = /* @__PURE__ */ Jr(Ene, [["render", Ane]]), Dne = {
|
|
|
52428
52428
|
}, null, -1), Bne = [
|
|
52429
52429
|
Nne
|
|
52430
52430
|
];
|
|
52431
|
-
function Ine($, me,
|
|
52431
|
+
function Ine($, me, se, Ee, he, J) {
|
|
52432
52432
|
return ye(), xe("div", null, [
|
|
52433
52433
|
N("h2", null, [
|
|
52434
52434
|
N("button", {
|
|
@@ -52441,7 +52441,7 @@ function Ine($, me, re, Ee, he, J) {
|
|
|
52441
52441
|
}]),
|
|
52442
52442
|
"aria-expanded": "true"
|
|
52443
52443
|
}, [
|
|
52444
|
-
N("span", One, bt(
|
|
52444
|
+
N("span", One, bt(se.title), 1),
|
|
52445
52445
|
Ee.isOpen ? xt("", !0) : (ye(), xe("svg", Rne, Mne)),
|
|
52446
52446
|
Ee.isOpen ? (ye(), xe("svg", Pne, Bne)) : xt("", !0)
|
|
52447
52447
|
], 2)
|
|
@@ -52532,16 +52532,16 @@ const Uae = /* @__PURE__ */ Jr(Dne, [["render", Ine]]), Lne = {
|
|
|
52532
52532
|
},
|
|
52533
52533
|
emits: ["remove"],
|
|
52534
52534
|
setup($, { emit: me }) {
|
|
52535
|
-
const
|
|
52535
|
+
const se = $;
|
|
52536
52536
|
b1(() => {
|
|
52537
|
-
setTimeout(() => Ee("remove"),
|
|
52537
|
+
setTimeout(() => Ee("remove"), se.duration);
|
|
52538
52538
|
});
|
|
52539
52539
|
const Ee = me;
|
|
52540
52540
|
return (he, J) => (ye(), xe("div", Lne, [
|
|
52541
|
-
|
|
52542
|
-
|
|
52543
|
-
|
|
52544
|
-
N("div", Xne, bt(
|
|
52541
|
+
se.type === "success" ? (ye(), xe("div", Fne, zne)) : xt("", !0),
|
|
52542
|
+
se.type === "error" ? (ye(), xe("div", Une, jne)) : xt("", !0),
|
|
52543
|
+
se.type === "warning" ? (ye(), xe("div", Gne, Yne)) : xt("", !0),
|
|
52544
|
+
N("div", Xne, bt(se.message), 1),
|
|
52545
52545
|
N("button", {
|
|
52546
52546
|
onClick: J[0] || (J[0] = (Oe) => Ee("remove")),
|
|
52547
52547
|
type: "button",
|
|
@@ -52554,10 +52554,10 @@ const Uae = /* @__PURE__ */ Jr(Dne, [["render", Ine]]), Lne = {
|
|
|
52554
52554
|
}, Wae = {
|
|
52555
52555
|
__name: "GlToastList",
|
|
52556
52556
|
setup($) {
|
|
52557
|
-
function me(
|
|
52558
|
-
s5.methods.remove(
|
|
52557
|
+
function me(se) {
|
|
52558
|
+
s5.methods.remove(se);
|
|
52559
52559
|
}
|
|
52560
|
-
return (
|
|
52560
|
+
return (se, Ee) => (ye(), Ty(Pq, {
|
|
52561
52561
|
tag: "div",
|
|
52562
52562
|
"enter-from-class": "translate-x-full opacity-0",
|
|
52563
52563
|
"enter-active-class": "duration-500",
|
|
@@ -52619,7 +52619,7 @@ const Uae = /* @__PURE__ */ Jr(Dne, [["render", Ine]]), Lne = {
|
|
|
52619
52619
|
},
|
|
52620
52620
|
emits: ["deleteAction"],
|
|
52621
52621
|
setup($, { emit: me }) {
|
|
52622
|
-
const
|
|
52622
|
+
const se = $, Ee = Ko(!1), he = Ko(!1), J = () => {
|
|
52623
52623
|
Ee.value = !1;
|
|
52624
52624
|
}, Oe = () => {
|
|
52625
52625
|
Ee.value = !0;
|
|
@@ -52628,7 +52628,7 @@ const Uae = /* @__PURE__ */ Jr(Dne, [["render", Ine]]), Lne = {
|
|
|
52628
52628
|
}, He = () => {
|
|
52629
52629
|
he.value = !0;
|
|
52630
52630
|
}, gt = me, jt = () => {
|
|
52631
|
-
axios.delete(`${
|
|
52631
|
+
axios.delete(`${se.xprops.route}/${se.row.id}`).then(() => {
|
|
52632
52632
|
Q(), gt("deleteAction"), s5.methods.add({
|
|
52633
52633
|
message: "Item deleted successfully.",
|
|
52634
52634
|
type: "success",
|
|
@@ -52725,7 +52725,7 @@ const Uae = /* @__PURE__ */ Jr(Dne, [["render", Ine]]), Lne = {
|
|
|
52725
52725
|
},
|
|
52726
52726
|
emits: ["deleteAction"],
|
|
52727
52727
|
setup($, { emit: me }) {
|
|
52728
|
-
const
|
|
52728
|
+
const se = $, Ee = Ko(!1), he = Ko(!1), J = () => {
|
|
52729
52729
|
Ee.value = !1;
|
|
52730
52730
|
}, Oe = () => {
|
|
52731
52731
|
Ee.value = !0;
|
|
@@ -52734,7 +52734,7 @@ const Uae = /* @__PURE__ */ Jr(Dne, [["render", Ine]]), Lne = {
|
|
|
52734
52734
|
}, He = () => {
|
|
52735
52735
|
he.value = !0;
|
|
52736
52736
|
}, gt = me, jt = () => {
|
|
52737
|
-
axios.delete(`${
|
|
52737
|
+
axios.delete(`${se.xprops.route}/${se.row.id}`).then(() => {
|
|
52738
52738
|
Q(), gt("deleteAction"), s5.methods.add({
|
|
52739
52739
|
message: "Item deleted successfully.",
|
|
52740
52740
|
type: "success",
|
|
@@ -52833,9 +52833,9 @@ const Uae = /* @__PURE__ */ Jr(Dne, [["render", Ine]]), Lne = {
|
|
|
52833
52833
|
"clip-rule": "evenodd"
|
|
52834
52834
|
})
|
|
52835
52835
|
], -1);
|
|
52836
|
-
function koe($, me,
|
|
52836
|
+
function koe($, me, se, Ee, he, J) {
|
|
52837
52837
|
return ye(), xe("div", null, [
|
|
52838
|
-
J.isArray ? (ye(!0), xe(Co, { key: 0 }, kr(
|
|
52838
|
+
J.isArray ? (ye(!0), xe(Co, { key: 0 }, kr(se.row, (Oe, Q) => (ye(), xe("div", {
|
|
52839
52839
|
key: Q,
|
|
52840
52840
|
class: "m-1 d-inline-block"
|
|
52841
52841
|
}, [
|
|
@@ -52850,8 +52850,8 @@ function koe($, me, re, Ee, he, J) {
|
|
|
52850
52850
|
], 8, woe)
|
|
52851
52851
|
]))), 128)) : J.isString ? (ye(), xe("div", Coe, [
|
|
52852
52852
|
N("a", {
|
|
52853
|
-
href:
|
|
52854
|
-
title:
|
|
52853
|
+
href: se.row,
|
|
52854
|
+
title: se.row,
|
|
52855
52855
|
target: "_blank",
|
|
52856
52856
|
class: "inline-flex items-center px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"
|
|
52857
52857
|
}, [
|
|
@@ -52909,9 +52909,9 @@ const Gae = /* @__PURE__ */ Jr(yoe, [["render", koe]]), Toe = {
|
|
|
52909
52909
|
"clip-rule": "evenodd"
|
|
52910
52910
|
})
|
|
52911
52911
|
], -1);
|
|
52912
|
-
function $oe($, me,
|
|
52912
|
+
function $oe($, me, se, Ee, he, J) {
|
|
52913
52913
|
return ye(), xe("div", null, [
|
|
52914
|
-
J.isArray ? (ye(!0), xe(Co, { key: 0 }, kr(
|
|
52914
|
+
J.isArray ? (ye(!0), xe(Co, { key: 0 }, kr(se.row[se.field], (Oe) => (ye(), xe("div", {
|
|
52915
52915
|
key: Oe.id,
|
|
52916
52916
|
class: "m-1 d-inline-block"
|
|
52917
52917
|
}, [
|
|
@@ -52926,8 +52926,8 @@ function $oe($, me, re, Ee, he, J) {
|
|
|
52926
52926
|
], 8, Eoe)
|
|
52927
52927
|
]))), 128)) : J.isObject ? (ye(), xe("div", Doe, [
|
|
52928
52928
|
N("a", {
|
|
52929
|
-
href:
|
|
52930
|
-
title:
|
|
52929
|
+
href: se.row[se.field].url,
|
|
52930
|
+
title: se.row[se.field].name,
|
|
52931
52931
|
target: "_blank",
|
|
52932
52932
|
class: "inline-flex items-center px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"
|
|
52933
52933
|
}, [
|
|
@@ -52940,11 +52940,11 @@ function $oe($, me, re, Ee, he, J) {
|
|
|
52940
52940
|
const qae = /* @__PURE__ */ Jr(Toe, [["render", $oe]]), Moe = {
|
|
52941
52941
|
props: ["field", "row", "tdProps"]
|
|
52942
52942
|
}, Poe = { key: 0 }, Noe = ["innerHTML"];
|
|
52943
|
-
function Boe($, me,
|
|
52944
|
-
return
|
|
52943
|
+
function Boe($, me, se, Ee, he, J) {
|
|
52944
|
+
return se.row[se.field] ? (ye(), xe("div", Poe, [
|
|
52945
52945
|
N("div", {
|
|
52946
52946
|
class: "w-full",
|
|
52947
|
-
innerHTML:
|
|
52947
|
+
innerHTML: se.row[se.field]
|
|
52948
52948
|
}, null, 8, Noe)
|
|
52949
52949
|
])) : xt("", !0);
|
|
52950
52950
|
}
|
|
@@ -52966,12 +52966,12 @@ const Kae = /* @__PURE__ */ Jr(Moe, [["render", Boe]]), Ioe = {
|
|
|
52966
52966
|
key: 1,
|
|
52967
52967
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"
|
|
52968
52968
|
};
|
|
52969
|
-
function Hoe($, me,
|
|
52969
|
+
function Hoe($, me, se, Ee, he, J) {
|
|
52970
52970
|
return ye(), xe("div", Loe, [
|
|
52971
|
-
J.isArray ? (ye(!0), xe(Co, { key: 0 }, kr(
|
|
52971
|
+
J.isArray ? (ye(!0), xe(Co, { key: 0 }, kr(se.row[J.entry.key], (Oe, Q) => (ye(), xe("span", {
|
|
52972
52972
|
key: Q,
|
|
52973
52973
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"
|
|
52974
|
-
}, bt(Oe[J.entry.field]), 1))), 128)) : J.isObject ? (ye(), xe("span", Foe, bt(
|
|
52974
|
+
}, bt(Oe[J.entry.field]), 1))), 128)) : J.isObject ? (ye(), xe("span", Foe, bt(se.row[J.entry.key][J.entry.field]), 1)) : xt("", !0)
|
|
52975
52975
|
]);
|
|
52976
52976
|
}
|
|
52977
52977
|
const Yae = /* @__PURE__ */ Jr(Ioe, [["render", Hoe]]), Voe = {
|
|
@@ -52990,36 +52990,36 @@ const Yae = /* @__PURE__ */ Jr(Ioe, [["render", Hoe]]), Voe = {
|
|
|
52990
52990
|
},
|
|
52991
52991
|
methods: {
|
|
52992
52992
|
getNestedValue($, me) {
|
|
52993
|
-
return me.reduce((
|
|
52993
|
+
return me.reduce((se, Ee) => (se || {})[Ee], $);
|
|
52994
52994
|
}
|
|
52995
52995
|
}
|
|
52996
52996
|
}, zoe = { class: "flex flex-wrap gap-2" }, Uoe = {
|
|
52997
52997
|
key: 1,
|
|
52998
52998
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"
|
|
52999
52999
|
};
|
|
53000
|
-
function Woe($, me,
|
|
53000
|
+
function Woe($, me, se, Ee, he, J) {
|
|
53001
53001
|
return ye(), xe("div", zoe, [
|
|
53002
|
-
J.isArray ? (ye(!0), xe(Co, { key: 0 }, kr(J.getNestedValue(
|
|
53002
|
+
J.isArray ? (ye(!0), xe(Co, { key: 0 }, kr(J.getNestedValue(se.row, J.entry.keys), (Oe, Q) => (ye(), xe("span", {
|
|
53003
53003
|
key: Q,
|
|
53004
53004
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"
|
|
53005
|
-
}, bt(Oe[J.entry.field]), 1))), 128)) : J.isObject ? (ye(), xe("span", Uoe, bt(J.getNestedValue(
|
|
53005
|
+
}, bt(Oe[J.entry.field]), 1))), 128)) : J.isObject ? (ye(), xe("span", Uoe, bt(J.getNestedValue(se.row, J.entry.keys)[J.entry.field]), 1)) : xt("", !0)
|
|
53006
53006
|
]);
|
|
53007
53007
|
}
|
|
53008
53008
|
const Xae = /* @__PURE__ */ Jr(Voe, [["render", Woe]]), Zoe = {
|
|
53009
53009
|
props: ["field", "row", "tdProps"]
|
|
53010
53010
|
}, joe = { key: 0 }, Goe = { class: "m-1 d-inline-block" }, qoe = ["href", "title"], Koe = ["src", "alt", "title"];
|
|
53011
|
-
function Yoe($, me,
|
|
53012
|
-
return
|
|
53011
|
+
function Yoe($, me, se, Ee, he, J) {
|
|
53012
|
+
return se.row[se.field] ? (ye(), xe("div", joe, [
|
|
53013
53013
|
N("div", Goe, [
|
|
53014
53014
|
N("a", {
|
|
53015
|
-
href:
|
|
53016
|
-
title:
|
|
53015
|
+
href: se.row[se.field].url,
|
|
53016
|
+
title: se.row[se.field].name,
|
|
53017
53017
|
target: "_blank"
|
|
53018
53018
|
}, [
|
|
53019
53019
|
N("img", {
|
|
53020
|
-
src:
|
|
53021
|
-
alt:
|
|
53022
|
-
title:
|
|
53020
|
+
src: se.row[se.field].thumbnail,
|
|
53021
|
+
alt: se.row[se.field].name,
|
|
53022
|
+
title: se.row[se.field].name
|
|
53023
53023
|
}, null, 8, Koe)
|
|
53024
53024
|
], 8, qoe)
|
|
53025
53025
|
])
|
|
@@ -53039,7 +53039,7 @@ const Jae = /* @__PURE__ */ Jr(Zoe, [["render", Yoe], ["__scopeId", "data-v-3a28
|
|
|
53039
53039
|
key: 1,
|
|
53040
53040
|
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"
|
|
53041
53041
|
}, nse = /* @__PURE__ */ N("span", { class: "w-2 h-2 bg-red-500 rounded-full me-1" }, null, -1);
|
|
53042
|
-
function ose($, me,
|
|
53042
|
+
function ose($, me, se, Ee, he, J) {
|
|
53043
53043
|
return ye(), xe("div", Joe, [
|
|
53044
53044
|
J.isActive ? (ye(), xe("span", Qoe, [
|
|
53045
53045
|
ese,
|
|
@@ -53055,7 +53055,7 @@ const Qae = /* @__PURE__ */ Jr(Xoe, [["render", ose]]), sse = {
|
|
|
53055
53055
|
computed: {
|
|
53056
53056
|
hasLabelColor($) {
|
|
53057
53057
|
const me = this.tdProps.status_general_labels_color.find(
|
|
53058
|
-
(
|
|
53058
|
+
(se) => se.label === this.row[this.field]
|
|
53059
53059
|
);
|
|
53060
53060
|
return me ? me.class : "";
|
|
53061
53061
|
}
|
|
@@ -53079,7 +53079,7 @@ const Qae = /* @__PURE__ */ Jr(Xoe, [["render", ose]]), sse = {
|
|
|
53079
53079
|
/* @__PURE__ */ N("span", { class: "absolute inline-flex w-full h-full bg-blue-500 rounded-full animate-ping" }),
|
|
53080
53080
|
/* @__PURE__ */ N("span", { class: "relative inline-flex w-2 h-2 bg-blue-500 rounded-full" })
|
|
53081
53081
|
], -1);
|
|
53082
|
-
function pse($, me,
|
|
53082
|
+
function pse($, me, se, Ee, he, J) {
|
|
53083
53083
|
return ye(), xe("div", rse, [
|
|
53084
53084
|
J.hasLabelColor == "green" ? (ye(), xe("span", ase, [
|
|
53085
53085
|
lse,
|
|
@@ -53125,7 +53125,7 @@ const ele = /* @__PURE__ */ Jr(sse, [["render", pse]]), bse = {
|
|
|
53125
53125
|
}
|
|
53126
53126
|
}
|
|
53127
53127
|
}, vse = { class: "flex flex-wrap gap-2 text-nowrap lg:justify-center" };
|
|
53128
|
-
function yse($, me,
|
|
53128
|
+
function yse($, me, se, Ee, he, J) {
|
|
53129
53129
|
return ye(), xe("div", vse, [
|
|
53130
53130
|
J.hasLabelColor == "Default" ? (ye(), xe("span", {
|
|
53131
53131
|
key: 0,
|
|
@@ -53166,7 +53166,7 @@ const tle = /* @__PURE__ */ Jr(bse, [["render", yse]]), wse = {
|
|
|
53166
53166
|
computed: {
|
|
53167
53167
|
hasLabelColor($) {
|
|
53168
53168
|
const me = this.tdProps.status_general_labels_color.find(
|
|
53169
|
-
(
|
|
53169
|
+
(se) => se.text === this.row[this.field]
|
|
53170
53170
|
);
|
|
53171
53171
|
return me ? me.class : "";
|
|
53172
53172
|
},
|
|
@@ -53196,7 +53196,7 @@ const tle = /* @__PURE__ */ Jr(bse, [["render", yse]]), wse = {
|
|
|
53196
53196
|
/* @__PURE__ */ N("span", { class: "absolute inline-flex w-full h-full bg-blue-500 rounded-full animate-ping" }),
|
|
53197
53197
|
/* @__PURE__ */ N("span", { class: "relative inline-flex w-2 h-2 bg-blue-500 rounded-full" })
|
|
53198
53198
|
], -1);
|
|
53199
|
-
function $se($, me,
|
|
53199
|
+
function $se($, me, se, Ee, he, J) {
|
|
53200
53200
|
return ye(), xe("div", xse, [
|
|
53201
53201
|
J.hasLabelColor == "green" ? (ye(), xe("span", Cse, [
|
|
53202
53202
|
Sse,
|
|
@@ -53226,14 +53226,14 @@ const nle = /* @__PURE__ */ Jr(wse, [["render", $se]]), Mse = {
|
|
|
53226
53226
|
formattedDate() {
|
|
53227
53227
|
if (!this.row[this.field])
|
|
53228
53228
|
return "";
|
|
53229
|
-
const $ = new Date(this.row[this.field]), me = $.getFullYear(),
|
|
53229
|
+
const $ = new Date(this.row[this.field]), me = $.getFullYear(), se = $.toLocaleString("default", { month: "long" }), Ee = $.getDate();
|
|
53230
53230
|
let he = $.getHours();
|
|
53231
53231
|
const J = $.getMinutes(), Oe = $.getSeconds(), Q = he >= 12 ? "pm" : "am";
|
|
53232
|
-
return he = he % 12, he = he || 12, `${
|
|
53232
|
+
return he = he % 12, he = he || 12, `${se} ${Ee}, ${me}, ${he}:${J}:${Oe} ${Q}`;
|
|
53233
53233
|
}
|
|
53234
53234
|
}
|
|
53235
53235
|
}, Pse = { class: "w-full" };
|
|
53236
|
-
function Nse($, me,
|
|
53236
|
+
function Nse($, me, se, Ee, he, J) {
|
|
53237
53237
|
return ye(), xe("div", Pse, bt(J.formattedDate), 1);
|
|
53238
53238
|
}
|
|
53239
53239
|
const ole = /* @__PURE__ */ Jr(Mse, [["render", Nse]]), Bse = {
|
|
@@ -53242,12 +53242,12 @@ const ole = /* @__PURE__ */ Jr(Mse, [["render", Nse]]), Bse = {
|
|
|
53242
53242
|
formattedDate() {
|
|
53243
53243
|
if (!this.row[this.field])
|
|
53244
53244
|
return "";
|
|
53245
|
-
const $ = new Date(this.row[this.field]), me = $.getFullYear(),
|
|
53246
|
-
return `${
|
|
53245
|
+
const $ = new Date(this.row[this.field]), me = $.getFullYear(), se = $.toLocaleString("default", { month: "long" }), Ee = $.getDate();
|
|
53246
|
+
return `${se} ${Ee}, ${me}`;
|
|
53247
53247
|
}
|
|
53248
53248
|
}
|
|
53249
53249
|
}, Ise = { class: "w-full" };
|
|
53250
|
-
function Lse($, me,
|
|
53250
|
+
function Lse($, me, se, Ee, he, J) {
|
|
53251
53251
|
return ye(), xe("div", Ise, bt(J.formattedDate), 1);
|
|
53252
53252
|
}
|
|
53253
53253
|
const sle = /* @__PURE__ */ Jr(Bse, [["render", Lse]]), Fse = {
|
|
@@ -53265,17 +53265,17 @@ const sle = /* @__PURE__ */ Jr(Bse, [["render", Lse]]), Fse = {
|
|
|
53265
53265
|
key: 2,
|
|
53266
53266
|
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"
|
|
53267
53267
|
}, jse = /* @__PURE__ */ N("span", { class: "w-2 h-2 bg-green-500 rounded-full me-1" }, null, -1);
|
|
53268
|
-
function Gse($, me,
|
|
53268
|
+
function Gse($, me, se, Ee, he, J) {
|
|
53269
53269
|
return ye(), xe("div", Hse, [
|
|
53270
|
-
|
|
53270
|
+
se.row[se.field] === 0 ? (ye(), xe("span", Vse, [
|
|
53271
53271
|
zse,
|
|
53272
53272
|
So(" Provisioning")
|
|
53273
53273
|
])) : xt("", !0),
|
|
53274
|
-
|
|
53274
|
+
se.row[se.field] === 2 ? (ye(), xe("span", Use, [
|
|
53275
53275
|
Wse,
|
|
53276
53276
|
So(" Paused ")
|
|
53277
53277
|
])) : xt("", !0),
|
|
53278
|
-
|
|
53278
|
+
se.row[se.field] === 1 ? (ye(), xe("span", Zse, [
|
|
53279
53279
|
jse,
|
|
53280
53280
|
So(" Active ")
|
|
53281
53281
|
])) : xt("", !0)
|
|
@@ -53290,9 +53290,9 @@ const rle = /* @__PURE__ */ Jr(Fse, [["render", Gse]]), qse = {
|
|
|
53290
53290
|
style: { "max-width": "200px" },
|
|
53291
53291
|
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"
|
|
53292
53292
|
};
|
|
53293
|
-
function Xse($, me,
|
|
53294
|
-
return
|
|
53295
|
-
N("pre", Yse, " " + bt(
|
|
53293
|
+
function Xse($, me, se, Ee, he, J) {
|
|
53294
|
+
return se.row[se.field] ? (ye(), xe("div", Kse, [
|
|
53295
|
+
N("pre", Yse, " " + bt(se.row[se.field]) + `
|
|
53296
53296
|
`, 1)
|
|
53297
53297
|
])) : xt("", !0);
|
|
53298
53298
|
}
|
|
@@ -53318,8 +53318,8 @@ const ale = /* @__PURE__ */ Jr(qse, [["render", Xse]]), Jse = {
|
|
|
53318
53318
|
class: "hidden sm:inline-block sm:align-middle sm:h-screen",
|
|
53319
53319
|
"aria-hidden": "true"
|
|
53320
53320
|
}, "", -1), ore = { class: "inline-block overflow-hidden text-left align-bottom transition-all transform bg-white dark:bg-gray-800 rounded-lg shadow-xl sm:my-8 sm:align-middle sm:max-w-lg sm:w-full" }, sre = { class: "px-4 pt-5 pb-4 sm:p-6 sm:pb-4" }, rre = { class: "sm:flex sm:items-start" }, are = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left" }, lre = { class: "text-lg font-medium leading-6" }, cre = { class: "mt-2" }, ire = { class: "border-t border-gray-200 rounded-b dark:border-gray-600 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse" };
|
|
53321
|
-
function ure($, me,
|
|
53322
|
-
return
|
|
53321
|
+
function ure($, me, se, Ee, he, J) {
|
|
53322
|
+
return se.isOpen ? (ye(), xe("div", Qse, [
|
|
53323
53323
|
N("div", ere, [
|
|
53324
53324
|
tre,
|
|
53325
53325
|
nre,
|
|
@@ -53327,7 +53327,7 @@ function ure($, me, re, Ee, he, J) {
|
|
|
53327
53327
|
N("div", sre, [
|
|
53328
53328
|
N("div", rre, [
|
|
53329
53329
|
N("div", are, [
|
|
53330
|
-
N("h3", lre, bt(
|
|
53330
|
+
N("h3", lre, bt(se.title), 1),
|
|
53331
53331
|
N("div", cre, [
|
|
53332
53332
|
vf($.$slots, "default")
|
|
53333
53333
|
])
|
|
@@ -53339,7 +53339,7 @@ function ure($, me, re, Ee, he, J) {
|
|
|
53339
53339
|
onClick: me[0] || (me[0] = (...Oe) => J.confirmAction && J.confirmAction(...Oe)),
|
|
53340
53340
|
type: "button",
|
|
53341
53341
|
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"
|
|
53342
|
-
}, bt(
|
|
53342
|
+
}, bt(se.button_text), 1),
|
|
53343
53343
|
N("button", {
|
|
53344
53344
|
onClick: me[1] || (me[1] = (...Oe) => J.cancelAction && J.cancelAction(...Oe)),
|
|
53345
53345
|
type: "button",
|
|
@@ -53370,7 +53370,7 @@ const lle = /* @__PURE__ */ Jr(Jse, [["render", ure]]), dre = {
|
|
|
53370
53370
|
}
|
|
53371
53371
|
},
|
|
53372
53372
|
setup($, { expose: me }) {
|
|
53373
|
-
const
|
|
53373
|
+
const se = Ko(""), Ee = Ko(""), he = Ko(""), J = Ko("Cancel"), Oe = Ko(!1), Q = Ko(void 0), He = Ko(void 0), gt = (zn = {}) => (se.value = zn.title, Ee.value = zn.message, he.value = zn.okButton, zn.cancelButton && (J.value = zn.cancelButton), Oe.value = !0, new Promise((Wo, ir) => {
|
|
53374
53374
|
Q.value = Wo, He.value = ir;
|
|
53375
53375
|
})), jt = () => {
|
|
53376
53376
|
Oe.value = !1, Q.value(!0);
|
|
@@ -53387,7 +53387,7 @@ const lle = /* @__PURE__ */ Jr(Jse, [["render", ure]]), dre = {
|
|
|
53387
53387
|
N("div", pre, [
|
|
53388
53388
|
N("div", bre, [
|
|
53389
53389
|
N("div", vre, [
|
|
53390
|
-
N("h3", yre, bt(
|
|
53390
|
+
N("h3", yre, bt(se.value), 1),
|
|
53391
53391
|
N("div", wre, [
|
|
53392
53392
|
N("p", xre, bt(Ee.value), 1)
|
|
53393
53393
|
])
|
|
@@ -53461,10 +53461,10 @@ const lle = /* @__PURE__ */ Jr(Jse, [["render", ure]]), dre = {
|
|
|
53461
53461
|
}
|
|
53462
53462
|
},
|
|
53463
53463
|
setup($) {
|
|
53464
|
-
const me = $,
|
|
53464
|
+
const me = $, se = Ko(!1), Ee = (J) => {
|
|
53465
53465
|
navigator.clipboard.writeText(J).then(function() {
|
|
53466
|
-
|
|
53467
|
-
|
|
53466
|
+
se.value = !0, setTimeout(() => {
|
|
53467
|
+
se.value = !1;
|
|
53468
53468
|
}, 2e3);
|
|
53469
53469
|
}).catch(function(Oe) {
|
|
53470
53470
|
console.error("Error copying to clipboard: ", Oe);
|
|
@@ -53483,8 +53483,8 @@ const lle = /* @__PURE__ */ Jr(Jse, [["render", ure]]), dre = {
|
|
|
53483
53483
|
onClick: Oe[0] || (Oe[0] = (Q) => Ee(he.value)),
|
|
53484
53484
|
class: "text-gray-900 dark:text-gray-400 m-1 hover:bg-gray-100 dark:bg-gray-800 dark:border-gray-600 dark:hover:bg-gray-700 rounded-lg py-2 px-3 inline-flex items-center justify-center bg-white border-gray-200 border"
|
|
53485
53485
|
}, [
|
|
53486
|
-
|
|
53487
|
-
|
|
53486
|
+
se.value ? xt("", !0) : (ye(), xe("span", Ore, Mre)),
|
|
53487
|
+
se.value ? (ye(), xe("span", Pre, Ire)) : xt("", !0)
|
|
53488
53488
|
])
|
|
53489
53489
|
])
|
|
53490
53490
|
]),
|
|
@@ -53541,10 +53541,10 @@ const lle = /* @__PURE__ */ Jr(Jse, [["render", ure]]), dre = {
|
|
|
53541
53541
|
}
|
|
53542
53542
|
},
|
|
53543
53543
|
setup($) {
|
|
53544
|
-
const me = $,
|
|
53544
|
+
const me = $, se = Ko(!1), Ee = (J) => {
|
|
53545
53545
|
navigator.clipboard.writeText(J).then(function() {
|
|
53546
|
-
|
|
53547
|
-
|
|
53546
|
+
se.value = !0, setTimeout(() => {
|
|
53547
|
+
se.value = !1;
|
|
53548
53548
|
}, 2e3);
|
|
53549
53549
|
}).catch(function(Oe) {
|
|
53550
53550
|
console.error("Error copying to clipboard: ", Oe);
|
|
@@ -53572,8 +53572,8 @@ const lle = /* @__PURE__ */ Jr(Jse, [["render", ure]]), dre = {
|
|
|
53572
53572
|
class: "flex-shrink-0 z-10 inline-flex items-center px-4 text-sm font-medium text-center text-white bg-blue-700 rounded-e-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800 border border-blue-700 dark:border-blue-600 hover:border-blue-800 dark:hover:border-blue-700",
|
|
53573
53573
|
type: "button"
|
|
53574
53574
|
}, [
|
|
53575
|
-
|
|
53576
|
-
|
|
53575
|
+
se.value ? xt("", !0) : (ye(), xe("span", jre, qre)),
|
|
53576
|
+
se.value ? (ye(), xe("span", Kre, Xre)) : xt("", !0)
|
|
53577
53577
|
])
|
|
53578
53578
|
]),
|
|
53579
53579
|
N("p", Jre, bt($.description), 1)
|
|
@@ -53600,7 +53600,7 @@ const lle = /* @__PURE__ */ Jr(Jse, [["render", ure]]), dre = {
|
|
|
53600
53600
|
}
|
|
53601
53601
|
},
|
|
53602
53602
|
setup($) {
|
|
53603
|
-
return (me,
|
|
53603
|
+
return (me, se) => (ye(), xe("div", Qre, [
|
|
53604
53604
|
$.status === 0 ? (ye(), xe("span", eae, [
|
|
53605
53605
|
tae,
|
|
53606
53606
|
So(" Running")
|
|
@@ -53649,8 +53649,8 @@ const lle = /* @__PURE__ */ Jr(Jse, [["render", ure]]), dre = {
|
|
|
53649
53649
|
},
|
|
53650
53650
|
emits: ["reconnect"],
|
|
53651
53651
|
setup($, { emit: me }) {
|
|
53652
|
-
const
|
|
53653
|
-
|
|
53652
|
+
const se = me, Ee = () => {
|
|
53653
|
+
se("reconnect");
|
|
53654
53654
|
};
|
|
53655
53655
|
return (he, J) => (ye(), xe("div", aae, [
|
|
53656
53656
|
$.status === 0 ? (ye(), xe("span", lae, [
|