golden-logic-ui 1.0.268 → 1.0.269
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 +566 -564
- package/dist/golden-logic-ui.umd.cjs +11 -11
- package/package.json +1 -1
package/dist/golden-logic-ui.js
CHANGED
|
@@ -27,7 +27,7 @@ const Jr = (O, me) => {
|
|
|
27
27
|
class: "hidden sm:inline-block sm:align-middle sm:h-screen",
|
|
28
28
|
"aria-hidden": "true"
|
|
29
29
|
}, "", -1), Uq = { 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" }, Wq = /* @__PURE__ */ Eq('<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), Zq = { 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 jq(O, me, se, Ae, he,
|
|
30
|
+
function jq(O, me, se, Ae, he, q) {
|
|
31
31
|
return se.isOpen ? (ve(), we("div", Fq, [
|
|
32
32
|
P("div", Hq, [
|
|
33
33
|
Vq,
|
|
@@ -36,12 +36,12 @@ function jq(O, me, se, Ae, he, K) {
|
|
|
36
36
|
Wq,
|
|
37
37
|
P("div", Zq, [
|
|
38
38
|
P("button", {
|
|
39
|
-
onClick: me[0] || (me[0] = (...Ee) =>
|
|
39
|
+
onClick: me[0] || (me[0] = (...Ee) => q.confirmDeletion && q.confirmDeletion(...Ee)),
|
|
40
40
|
type: "button",
|
|
41
41
|
class: "inline-flex justify-center w-full px-4 py-2 text-base font-medium text-white bg-red-600 border border-transparent rounded-md shadow-sm hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm"
|
|
42
42
|
}, " Delete "),
|
|
43
43
|
P("button", {
|
|
44
|
-
onClick: me[1] || (me[1] = (...Ee) =>
|
|
44
|
+
onClick: me[1] || (me[1] = (...Ee) => q.cancelDeletion && q.cancelDeletion(...Ee)),
|
|
45
45
|
type: "button",
|
|
46
46
|
class: "inline-flex justify-center w-full px-4 py-2 mt-3 text-base font-medium text-gray-700 bg-white border border-gray-300 rounded-md shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"
|
|
47
47
|
}, " Cancel ")
|
|
@@ -180,8 +180,8 @@ const Oj = /* @__PURE__ */ Jr(Lq, [["render", jq]]), Aj = Aq({
|
|
|
180
180
|
return new Promise((me, se) => {
|
|
181
181
|
O || me();
|
|
182
182
|
const Ae = new FormData();
|
|
183
|
-
Ae.append("file", O), Object.entries(this.file_config).forEach(([he,
|
|
184
|
-
Ae.append(he,
|
|
183
|
+
Ae.append("file", O), Object.entries(this.file_config).forEach(([he, q]) => {
|
|
184
|
+
Ae.append(he, q);
|
|
185
185
|
}), this.files.push({ file_name: O.name, loading: 0 }), axios.post(this.route_url + "/media", Ae, {
|
|
186
186
|
onUploadProgress: (he) => {
|
|
187
187
|
this.files[this.files.length - 1].loading = Math.floor(
|
|
@@ -189,10 +189,10 @@ const Oj = /* @__PURE__ */ Jr(Lq, [["render", jq]]), Aj = Aq({
|
|
|
189
189
|
);
|
|
190
190
|
}
|
|
191
191
|
}).then((he) => {
|
|
192
|
-
let
|
|
192
|
+
let q = this.files.findIndex(
|
|
193
193
|
(Ee) => Ee.file_name === O.name
|
|
194
194
|
);
|
|
195
|
-
|
|
195
|
+
q !== -1 && this.files.splice(q, 1), this.uploadFileList.push({
|
|
196
196
|
file_name: he.data.file_name,
|
|
197
197
|
size: he.data.size,
|
|
198
198
|
id: he.data.id,
|
|
@@ -203,10 +203,10 @@ const Oj = /* @__PURE__ */ Jr(Lq, [["render", jq]]), Aj = Aq({
|
|
|
203
203
|
he.response.data.errors,
|
|
204
204
|
"file"
|
|
205
205
|
) : console.error("An error occurred:", he);
|
|
206
|
-
let
|
|
206
|
+
let q = this.files.findIndex(
|
|
207
207
|
(Ee) => Ee.file_name === O.name
|
|
208
208
|
);
|
|
209
|
-
|
|
209
|
+
q !== -1 && this.files.splice(q, 1), console.log(he), me();
|
|
210
210
|
});
|
|
211
211
|
});
|
|
212
212
|
}
|
|
@@ -245,13 +245,13 @@ const Oj = /* @__PURE__ */ Jr(Lq, [["render", jq]]), Aj = Aq({
|
|
|
245
245
|
class: "text-3xl fas fa-file-alt",
|
|
246
246
|
"aria-hidden": "true"
|
|
247
247
|
}, null, -1), vK = { class: "flex flex-col ml-3" }, yK = { class: "text-xs" }, xK = { class: "text-xs" }, wK = { class: "flex gap-2" }, CK = ["href"], SK = ["onClick"];
|
|
248
|
-
function _K(O, me, se, Ae, he,
|
|
248
|
+
function _K(O, me, se, Ae, he, q) {
|
|
249
249
|
const Ee = ky("DeleteConfirmationModal");
|
|
250
250
|
return ve(), we(bo, null, [
|
|
251
251
|
cb(Ee, {
|
|
252
252
|
isOpen: he.open_delete_modal,
|
|
253
|
-
onConfirmDelete:
|
|
254
|
-
onCancelDelete:
|
|
253
|
+
onConfirmDelete: q.deleteAction,
|
|
254
|
+
onCancelDelete: q.closeDeleteModal
|
|
255
255
|
}, null, 8, ["isOpen", "onConfirmDelete", "onCancelDelete"]),
|
|
256
256
|
P("div", {
|
|
257
257
|
class: rn([{
|
|
@@ -267,9 +267,9 @@ function _K(O, me, se, Ae, he, K) {
|
|
|
267
267
|
})
|
|
268
268
|
}, mt(se.label_name), 3),
|
|
269
269
|
P("div", {
|
|
270
|
-
onDragover: me[3] || (me[3] = oc((...J) =>
|
|
271
|
-
onDragleave: me[4] || (me[4] = oc((...J) =>
|
|
272
|
-
onDrop: me[5] || (me[5] = oc((...J) =>
|
|
270
|
+
onDragover: me[3] || (me[3] = oc((...J) => q.onDragOver && q.onDragOver(...J), ["prevent"])),
|
|
271
|
+
onDragleave: me[4] || (me[4] = oc((...J) => q.onDragLeave && q.onDragLeave(...J), ["prevent"])),
|
|
272
|
+
onDrop: me[5] || (me[5] = oc((...J) => q.onDrop && q.onDrop(...J), ["prevent"])),
|
|
273
273
|
class: "flex flex-col items-center justify-center w-full h-40 mt-3 mb-3 border-2 border-gray-300 border-dashed rounded-lg cursor-pointer bg-gray-50 dark:hover:bg-bray-800 dark:bg-gray-700 hover:bg-gray-100 dark:border-gray-600 dark:hover:border-gray-500 dark:hover:bg-gray-600"
|
|
274
274
|
}, [
|
|
275
275
|
P("div", Kq, [
|
|
@@ -278,14 +278,14 @@ function _K(O, me, se, Ae, he, K) {
|
|
|
278
278
|
ref: "file_input" + se.field_name,
|
|
279
279
|
hidden: "",
|
|
280
280
|
multiple: se.has_multiple_file,
|
|
281
|
-
onChange: me[0] || (me[0] = (...J) =>
|
|
281
|
+
onChange: me[0] || (me[0] = (...J) => q.uploadFiles && q.uploadFiles(...J))
|
|
282
282
|
}, null, 40, Yq),
|
|
283
283
|
Qa(P("input", {
|
|
284
284
|
type: "hidden",
|
|
285
285
|
name: se.field_name,
|
|
286
|
-
"onUpdate:modelValue": me[1] || (me[1] = (J) =>
|
|
286
|
+
"onUpdate:modelValue": me[1] || (me[1] = (J) => q.uploadFileListFinal = J)
|
|
287
287
|
}, null, 8, Xq), [
|
|
288
|
-
[vm,
|
|
288
|
+
[vm, q.uploadFileListFinal]
|
|
289
289
|
]),
|
|
290
290
|
he.isDragging ? (ve(), we("div", tK, oK)) : (ve(), we("div", {
|
|
291
291
|
key: 0,
|
|
@@ -301,7 +301,7 @@ function _K(O, me, se, Ae, he, K) {
|
|
|
301
301
|
cK,
|
|
302
302
|
P("div", iK, [
|
|
303
303
|
P("div", uK, [
|
|
304
|
-
P("span", dK, mt(
|
|
304
|
+
P("span", dK, mt(q.getFileName(J.file_name)), 1),
|
|
305
305
|
P("span", mK, mt(J.loading), 1)
|
|
306
306
|
]),
|
|
307
307
|
P("div", fK, [
|
|
@@ -314,12 +314,12 @@ function _K(O, me, se, Ae, he, K) {
|
|
|
314
314
|
]))), 256))
|
|
315
315
|
])) : pt("", !0),
|
|
316
316
|
P("section", gK, [
|
|
317
|
-
(ve(!0), we(bo, null, kr(
|
|
317
|
+
(ve(!0), we(bo, null, kr(q.uploadFileListFinal, (J, Be) => (ve(), we("li", hK, [
|
|
318
318
|
P("div", pK, [
|
|
319
319
|
bK,
|
|
320
320
|
P("div", vK, [
|
|
321
|
-
P("span", yK, mt(
|
|
322
|
-
P("span", xK, mt(
|
|
321
|
+
P("span", yK, mt(q.getFileName(J.file_name)), 1),
|
|
322
|
+
P("span", xK, mt(q.formatFileSize(J.size)), 1)
|
|
323
323
|
])
|
|
324
324
|
]),
|
|
325
325
|
P("div", wK, [
|
|
@@ -377,7 +377,7 @@ const Aae = /* @__PURE__ */ Jr(qq, [["render", _K]]), kK = {
|
|
|
377
377
|
mounted() {
|
|
378
378
|
}
|
|
379
379
|
}, TK = { class: "grid w-full gap-1 mt-5 mb-5 md:gap-0 md:grid-cols-10 language-selector" }, EK = ["name", "value", "id", "checked"], AK = ["for"];
|
|
380
|
-
function DK(O, me, se, Ae, he,
|
|
380
|
+
function DK(O, me, se, Ae, he, q) {
|
|
381
381
|
return ve(), we("ul", TK, [
|
|
382
382
|
(ve(!0), we(bo, null, kr(he.locals, (Ee, J) => (ve(), we("li", null, [
|
|
383
383
|
P("input", {
|
|
@@ -414,7 +414,7 @@ const Dae = /* @__PURE__ */ Jr(kK, [["render", DK]]), OK = { class: "bg-white bo
|
|
|
414
414
|
},
|
|
415
415
|
setup(O) {
|
|
416
416
|
const me = O, se = vc(() => me.class), Ae = vc(() => me.body_class);
|
|
417
|
-
return (he,
|
|
417
|
+
return (he, q) => (ve(), we("div", {
|
|
418
418
|
class: rn(["flex flex-col gap-9", se.value])
|
|
419
419
|
}, [
|
|
420
420
|
P("div", OK, [
|
|
@@ -514,7 +514,7 @@ const Dae = /* @__PURE__ */ Jr(kK, [["render", DK]]), OK = { class: "bg-white bo
|
|
|
514
514
|
},
|
|
515
515
|
emits: ["update:modelValue", "selected", "selectionChanged"],
|
|
516
516
|
setup(O, { emit: me }) {
|
|
517
|
-
const se = O, Ae = me, he = Wo(null),
|
|
517
|
+
const se = O, Ae = me, he = Wo(null), q = Wo([]), Ee = Wo([]), J = Wo(0), Be = Wo(!1), ft = Wo(""), jt = Wo("");
|
|
518
518
|
Oh(() => {
|
|
519
519
|
jt.value = No(), se.show || (document.body.addEventListener("click", (Ge) => {
|
|
520
520
|
Xn(Ge);
|
|
@@ -560,17 +560,17 @@ const Dae = /* @__PURE__ */ Jr(kK, [["render", DK]]), OK = { class: "bg-white bo
|
|
|
560
560
|
return Ge.every((A) => typeof A == "object" && A !== null);
|
|
561
561
|
}
|
|
562
562
|
function mn(Ge) {
|
|
563
|
-
return
|
|
563
|
+
return q.value.findIndex((A) => A.id === Ge) !== -1;
|
|
564
564
|
}
|
|
565
565
|
function fe() {
|
|
566
|
-
|
|
566
|
+
q.value = St();
|
|
567
567
|
}
|
|
568
568
|
function Tt() {
|
|
569
|
-
|
|
569
|
+
q.value = [], Ae("update:modelValue", []), Ae("selected", []), Ae("selectionChanged", []);
|
|
570
570
|
}
|
|
571
571
|
function Ea(Ge) {
|
|
572
|
-
let A =
|
|
573
|
-
A !== -1 &&
|
|
572
|
+
let A = q.value.findIndex((Xt) => Xt.id === Ge.id);
|
|
573
|
+
A !== -1 && q.value.splice(A, 1), Ee.value = q.value.map((Xt) => Xt.id), Ae("update:modelValue", Ee.value), Ae("selected", q.value), Ae("selectionChanged", q.value);
|
|
574
574
|
}
|
|
575
575
|
function Xn(Ge) {
|
|
576
576
|
Ge.target.id != se.field_name + "search" + jt.value && Ge.target.id != se.field_name && !Ge.target.classList.contains("showOptions") && (Jn(), J.value = 0, Be.value = !1);
|
|
@@ -590,30 +590,30 @@ const Dae = /* @__PURE__ */ Jr(kK, [["render", DK]]), OK = { class: "bg-white bo
|
|
|
590
590
|
return se.options.map((Ge, A) => typeof Ge == "object" ? Ge : { id: Ge, name: Ge });
|
|
591
591
|
}
|
|
592
592
|
function He() {
|
|
593
|
-
if (Pt(
|
|
594
|
-
return ur(
|
|
595
|
-
(Ge) =>
|
|
593
|
+
if (Pt(q.value))
|
|
594
|
+
return ur(q.value) ? xn.value.filter(
|
|
595
|
+
(Ge) => q.value.some(
|
|
596
596
|
(A) => String(A.id) === String(Ge.id)
|
|
597
597
|
)
|
|
598
598
|
) || [] : xn.value.filter(
|
|
599
|
-
(Ge) =>
|
|
599
|
+
(Ge) => q.value.some(
|
|
600
600
|
(A) => String(A) === String(Ge.id)
|
|
601
601
|
)
|
|
602
602
|
) || [];
|
|
603
603
|
if (se.modelValue)
|
|
604
|
-
return ur(se.modelValue) ?
|
|
604
|
+
return ur(se.modelValue) ? q.value = xn.value.filter(
|
|
605
605
|
(Ge) => se.modelValue.some(
|
|
606
606
|
(A) => String(A.id) === String(Ge.id)
|
|
607
607
|
)
|
|
608
|
-
) || [] :
|
|
608
|
+
) || [] : q.value = xn.value.filter(
|
|
609
609
|
(Ge) => se.modelValue.some(
|
|
610
610
|
(A) => String(A) === String(Ge.id)
|
|
611
611
|
)
|
|
612
612
|
) || [];
|
|
613
613
|
}
|
|
614
614
|
function ie(Ge) {
|
|
615
|
-
let A =
|
|
616
|
-
A !== -1 ?
|
|
615
|
+
let A = q.value.findIndex((Xt) => Xt.id === Ge.id);
|
|
616
|
+
A !== -1 ? q.value.splice(A, 1) : q.value.push(Ge), Be.value = !1, Ee.value = q.value.map((Xt) => Xt.id), Ae("update:modelValue", Ee.value), Ae("selected", q.value), Ae("selectionChanged", q.value);
|
|
617
617
|
}
|
|
618
618
|
function Ro() {
|
|
619
619
|
if (!se.show) {
|
|
@@ -630,12 +630,12 @@ const Dae = /* @__PURE__ */ Jr(kK, [["render", DK]]), OK = { class: "bg-white bo
|
|
|
630
630
|
}
|
|
631
631
|
}
|
|
632
632
|
function Jn() {
|
|
633
|
-
ft.value = "", Ae("selected",
|
|
633
|
+
ft.value = "", Ae("selected", q.value);
|
|
634
634
|
}
|
|
635
635
|
return Gw(ft, () => {
|
|
636
|
-
Zo.value.length === 0 && (
|
|
637
|
-
}), Gw(
|
|
638
|
-
Pt(
|
|
636
|
+
Zo.value.length === 0 && (q.value = []);
|
|
637
|
+
}), Gw(q, (Ge) => {
|
|
638
|
+
Pt(q.value) && (Ee.value = q.value.map((A) => A.id), Ae("update:modelValue", Ee.value));
|
|
639
639
|
}), (Ge, A) => (ve(), we(bo, null, [
|
|
640
640
|
O.show ? (ve(), we("div", {
|
|
641
641
|
key: 0,
|
|
@@ -816,11 +816,11 @@ const Dae = /* @__PURE__ */ Jr(kK, [["render", DK]]), OK = { class: "bg-white bo
|
|
|
816
816
|
fill: "#1C64F2"
|
|
817
817
|
})
|
|
818
818
|
], -1);
|
|
819
|
-
function JK(O, me, se, Ae, he,
|
|
819
|
+
function JK(O, me, se, Ae, he, q) {
|
|
820
820
|
return se.is_loading ? (ve(), Ty(o5("button"), {
|
|
821
821
|
key: 1,
|
|
822
822
|
disabled: "",
|
|
823
|
-
class: rn(` h-[2.5rem] flex items-center gap-2 focus:outline-none text-sm px-2 py-2 me-2 font-medium rounded-lg ${
|
|
823
|
+
class: rn(` h-[2.5rem] flex items-center gap-2 focus:outline-none text-sm px-2 py-2 me-2 font-medium rounded-lg ${q.buttonTypeClass}`)
|
|
824
824
|
}, {
|
|
825
825
|
default: U8(() => [
|
|
826
826
|
XK,
|
|
@@ -833,7 +833,7 @@ function JK(O, me, se, Ae, he, K) {
|
|
|
833
833
|
disabled: se.is_disabled
|
|
834
834
|
}, { type: se.is_submit ? "submit" : void 0 }, {
|
|
835
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 ${
|
|
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 ${q.buttonTypeClass}`
|
|
837
837
|
}), {
|
|
838
838
|
default: U8(() => [
|
|
839
839
|
se.icon ? (ve(), we("i", {
|
|
@@ -903,9 +903,9 @@ const $ae = /* @__PURE__ */ Jr(YK, [["render", JK]]), QK = { class: "font-bold p
|
|
|
903
903
|
},
|
|
904
904
|
emits: ["update:modelValue", "update:modelValueTranslate", "keydown"],
|
|
905
905
|
setup(O, { expose: me, emit: se }) {
|
|
906
|
-
const Ae = O, he = se,
|
|
906
|
+
const Ae = O, he = se, q = Wo(null), Ee = Wo(null);
|
|
907
907
|
return Oh(() => {
|
|
908
|
-
|
|
908
|
+
q.value !== null && q.value.hasAttribute("autofocus") && q.value.focus(), Ae.model_value && (he("update:modelValue", Ae.model_value), q.value.value = Ae.model_value), Ae.model_value_translate, Ae.translatable && axios.post("/admin/get_field_translations", {
|
|
909
909
|
model: Ae.translatable.model,
|
|
910
910
|
row_id: Ae.translatable.row_id,
|
|
911
911
|
field: Ae.translatable.field
|
|
@@ -914,7 +914,7 @@ const $ae = /* @__PURE__ */ Jr(YK, [["render", JK]]), QK = { class: "font-bold p
|
|
|
914
914
|
}).catch((J) => {
|
|
915
915
|
console.log(J);
|
|
916
916
|
});
|
|
917
|
-
}), me({ focus: () =>
|
|
917
|
+
}), me({ focus: () => q.value.focus() }), (J, Be) => (ve(), we(bo, null, [
|
|
918
918
|
O.show ? (ve(), we("div", {
|
|
919
919
|
key: 0,
|
|
920
920
|
class: rn(O.field_name)
|
|
@@ -972,7 +972,7 @@ const $ae = /* @__PURE__ */ Jr(YK, [["render", JK]]), QK = { class: "font-bold p
|
|
|
972
972
|
onInput: Be[2] || (Be[2] = (ft) => J.$emit("update:modelValue", ft.target.value)),
|
|
973
973
|
onKeydown: Be[3] || (Be[3] = (ft) => J.$emit("keydown", ft)),
|
|
974
974
|
ref_key: "input",
|
|
975
|
-
ref:
|
|
975
|
+
ref: q,
|
|
976
976
|
rows: "4"
|
|
977
977
|
}, `
|
|
978
978
|
`, 42, aY),
|
|
@@ -1039,13 +1039,13 @@ const $ae = /* @__PURE__ */ Jr(YK, [["render", JK]]), QK = { class: "font-bold p
|
|
|
1039
1039
|
},
|
|
1040
1040
|
emits: ["update:modelValue", "update:modelValueTranslate", "keydown"],
|
|
1041
1041
|
setup(O, { expose: me, emit: se }) {
|
|
1042
|
-
const Ae = O, he = se,
|
|
1042
|
+
const Ae = O, he = se, q = Wo(null), Ee = Wo(null);
|
|
1043
1043
|
return Oh(() => {
|
|
1044
1044
|
tinymce.init({
|
|
1045
1045
|
selector: "#" + Ae.field_name,
|
|
1046
1046
|
width: "100%",
|
|
1047
1047
|
height: 300
|
|
1048
|
-
}), console.log("tinymce ", Ae.model_value),
|
|
1048
|
+
}), console.log("tinymce ", Ae.model_value), q.value !== null && q.value.hasAttribute("autofocus") && q.value.focus(), Ae.model_value && (he("update:modelValue", Ae.model_value), q.value.value = Ae.model_value), Ae.model_value_translate, Ae.translatable && axios.post("/admin/get_field_translations", {
|
|
1049
1049
|
model: Ae.translatable.model,
|
|
1050
1050
|
row_id: Ae.translatable.row_id,
|
|
1051
1051
|
field: Ae.translatable.field
|
|
@@ -1054,7 +1054,7 @@ const $ae = /* @__PURE__ */ Jr(YK, [["render", JK]]), QK = { class: "font-bold p
|
|
|
1054
1054
|
}).catch((J) => {
|
|
1055
1055
|
console.log(J);
|
|
1056
1056
|
});
|
|
1057
|
-
}), me({ focus: () =>
|
|
1057
|
+
}), me({ focus: () => q.value.focus() }), (J, Be) => (ve(), we(bo, null, [
|
|
1058
1058
|
O.show ? (ve(), we("div", {
|
|
1059
1059
|
key: 0,
|
|
1060
1060
|
class: rn(O.field_name)
|
|
@@ -1111,7 +1111,7 @@ const $ae = /* @__PURE__ */ Jr(YK, [["render", JK]]), QK = { class: "font-bold p
|
|
|
1111
1111
|
onInput: Be[2] || (Be[2] = (ft) => J.$emit("update:modelValue", ft.target.value)),
|
|
1112
1112
|
onKeydown: Be[3] || (Be[3] = (ft) => J.$emit("keydown", ft)),
|
|
1113
1113
|
ref_key: "input",
|
|
1114
|
-
ref:
|
|
1114
|
+
ref: q,
|
|
1115
1115
|
rows: "4"
|
|
1116
1116
|
}, `
|
|
1117
1117
|
`, 42, pY),
|
|
@@ -1178,9 +1178,9 @@ const $ae = /* @__PURE__ */ Jr(YK, [["render", JK]]), QK = { class: "font-bold p
|
|
|
1178
1178
|
},
|
|
1179
1179
|
emits: ["update:modelValue", "update:modelValueTranslate", "keydown"],
|
|
1180
1180
|
setup(O, { expose: me, emit: se }) {
|
|
1181
|
-
const Ae = O, he = se,
|
|
1181
|
+
const Ae = O, he = se, q = Wo(null), Ee = Wo(null);
|
|
1182
1182
|
return Oh(() => {
|
|
1183
|
-
|
|
1183
|
+
q.value !== null && q.value.hasAttribute("autofocus") && q.value.focus(), Ae.model_value && (he("update:modelValue", Ae.model_value), q.value.value = Ae.model_value), Ae.model_value_translate, Ae.translatable && axios.post("/admin/get_field_translations", {
|
|
1184
1184
|
model: Ae.translatable.model,
|
|
1185
1185
|
row_id: Ae.translatable.row_id,
|
|
1186
1186
|
field: Ae.translatable.field
|
|
@@ -1189,7 +1189,7 @@ const $ae = /* @__PURE__ */ Jr(YK, [["render", JK]]), QK = { class: "font-bold p
|
|
|
1189
1189
|
}).catch((J) => {
|
|
1190
1190
|
console.log(J);
|
|
1191
1191
|
});
|
|
1192
|
-
}), me({ focus: () =>
|
|
1192
|
+
}), me({ focus: () => q.value.focus() }), (J, Be) => (ve(), we(bo, null, [
|
|
1193
1193
|
O.show ? (ve(), we("div", {
|
|
1194
1194
|
key: 0,
|
|
1195
1195
|
class: rn(O.field_name)
|
|
@@ -1246,7 +1246,7 @@ const $ae = /* @__PURE__ */ Jr(YK, [["render", JK]]), QK = { class: "font-bold p
|
|
|
1246
1246
|
onInput: Be[2] || (Be[2] = (ft) => J.$emit("update:modelValue", ft.target.value)),
|
|
1247
1247
|
onKeydown: Be[3] || (Be[3] = (ft) => J.$emit("keydown", ft)),
|
|
1248
1248
|
ref_key: "input",
|
|
1249
|
-
ref:
|
|
1249
|
+
ref: q
|
|
1250
1250
|
}, null, 42, TY),
|
|
1251
1251
|
P("span", EY, mt(O.error_message), 1),
|
|
1252
1252
|
P("small", AY, mt(O.description), 1)
|
|
@@ -1299,9 +1299,9 @@ const $ae = /* @__PURE__ */ Jr(YK, [["render", JK]]), QK = { class: "font-bold p
|
|
|
1299
1299
|
},
|
|
1300
1300
|
emits: ["update:modelValue", "keydown"],
|
|
1301
1301
|
setup(O, { expose: me, emit: se }) {
|
|
1302
|
-
const Ae = O, he = se,
|
|
1302
|
+
const Ae = O, he = se, q = Wo(null);
|
|
1303
1303
|
Oh(() => {
|
|
1304
|
-
|
|
1304
|
+
q.value !== null && q.value.hasAttribute("autofocus") && q.value.focus();
|
|
1305
1305
|
});
|
|
1306
1306
|
const Ee = vc({
|
|
1307
1307
|
get() {
|
|
@@ -1311,7 +1311,7 @@ const $ae = /* @__PURE__ */ Jr(YK, [["render", JK]]), QK = { class: "font-bold p
|
|
|
1311
1311
|
he("update:modelValue", J);
|
|
1312
1312
|
}
|
|
1313
1313
|
});
|
|
1314
|
-
return me({ focus: () =>
|
|
1314
|
+
return me({ focus: () => q.value.focus() }), (J, Be) => (ve(), we(bo, null, [
|
|
1315
1315
|
O.show ? (ve(), we("div", {
|
|
1316
1316
|
key: 0,
|
|
1317
1317
|
class: rn(O.field_name)
|
|
@@ -1345,7 +1345,7 @@ const $ae = /* @__PURE__ */ Jr(YK, [["render", JK]]), QK = { class: "font-bold p
|
|
|
1345
1345
|
"onUpdate:modelValue": Be[0] || (Be[0] = (ft) => Ee.value = ft),
|
|
1346
1346
|
onKeydown: Be[1] || (Be[1] = (ft) => J.$emit("keydown", ft)),
|
|
1347
1347
|
ref_key: "input",
|
|
1348
|
-
ref:
|
|
1348
|
+
ref: q,
|
|
1349
1349
|
placeholder: O.placeholder
|
|
1350
1350
|
}, null, 42, MY), [
|
|
1351
1351
|
[YG, Ee.value]
|
|
@@ -1405,9 +1405,9 @@ const $ae = /* @__PURE__ */ Jr(YK, [["render", JK]]), QK = { class: "font-bold p
|
|
|
1405
1405
|
},
|
|
1406
1406
|
emits: ["update:modelValue", "keydown"],
|
|
1407
1407
|
setup(O, { expose: me, emit: se }) {
|
|
1408
|
-
const Ae = O, he = se,
|
|
1408
|
+
const Ae = O, he = se, q = Wo(null);
|
|
1409
1409
|
Oh(() => {
|
|
1410
|
-
|
|
1410
|
+
q.value !== null && q.value.hasAttribute("autofocus") && q.value.focus();
|
|
1411
1411
|
});
|
|
1412
1412
|
const Ee = vc({
|
|
1413
1413
|
get() {
|
|
@@ -1417,7 +1417,7 @@ const $ae = /* @__PURE__ */ Jr(YK, [["render", JK]]), QK = { class: "font-bold p
|
|
|
1417
1417
|
he("update:modelValue", J);
|
|
1418
1418
|
}
|
|
1419
1419
|
});
|
|
1420
|
-
return me({ focus: () =>
|
|
1420
|
+
return me({ focus: () => q.value.focus() }), (J, Be) => (ve(), we(bo, null, [
|
|
1421
1421
|
O.show ? (ve(), we("div", {
|
|
1422
1422
|
key: 0,
|
|
1423
1423
|
class: rn(O.field_name)
|
|
@@ -1453,7 +1453,7 @@ const $ae = /* @__PURE__ */ Jr(YK, [["render", JK]]), QK = { class: "font-bold p
|
|
|
1453
1453
|
"onUpdate:modelValue": Be[0] || (Be[0] = (ft) => Ee.value = ft),
|
|
1454
1454
|
onKeydown: Be[1] || (Be[1] = (ft) => J.$emit("keydown", ft)),
|
|
1455
1455
|
ref_key: "input",
|
|
1456
|
-
ref:
|
|
1456
|
+
ref: q,
|
|
1457
1457
|
placeholder: O.placeholder
|
|
1458
1458
|
}, null, 42, zY), [
|
|
1459
1459
|
[YG, Ee.value]
|
|
@@ -1504,7 +1504,7 @@ const $ae = /* @__PURE__ */ Jr(YK, [["render", JK]]), QK = { class: "font-bold p
|
|
|
1504
1504
|
},
|
|
1505
1505
|
emits: ["update:modelValue", "keydown"],
|
|
1506
1506
|
setup(O, { emit: me }) {
|
|
1507
|
-
const se = O, Ae = me, he = Wo(""),
|
|
1507
|
+
const se = O, Ae = me, he = Wo(""), q = Wo({
|
|
1508
1508
|
start: se.modelValue.start,
|
|
1509
1509
|
end: se.modelValue.end
|
|
1510
1510
|
});
|
|
@@ -1514,17 +1514,17 @@ const $ae = /* @__PURE__ */ Jr(YK, [["render", JK]]), QK = { class: "font-bold p
|
|
|
1514
1514
|
return se.modelValue.start;
|
|
1515
1515
|
},
|
|
1516
1516
|
set(ft) {
|
|
1517
|
-
|
|
1517
|
+
q.value.start = ft, Be(q.value.start, q.value.end), Ae("update:modelValue", { start: q.value.start, end: q.value.end }), Ae("keydown", { start: q.value.start, end: q.value.end });
|
|
1518
1518
|
}
|
|
1519
1519
|
}), J = vc({
|
|
1520
1520
|
get() {
|
|
1521
1521
|
return se.modelValue.end;
|
|
1522
1522
|
},
|
|
1523
1523
|
set(ft) {
|
|
1524
|
-
|
|
1524
|
+
q.value.end = ft, Be(q.value.start, q.value.end), Ae("update:modelValue", { start: q.value.start, end: q.value.end }), Ae("keydown", { start: q.value.start, end: q.value.end });
|
|
1525
1525
|
}
|
|
1526
1526
|
}), Be = (ft, jt) => {
|
|
1527
|
-
ft && jt && new Date(ft) > new Date(jt) ? (he.value = "Start date cannot be after end date.",
|
|
1527
|
+
ft && jt && new Date(ft) > new Date(jt) ? (he.value = "Start date cannot be after end date.", q.value.start = "", q.value.end = "", Ae("update:modelValue", { start: q.value.start, end: q.value.end }), Ae("keydown", { start: q.value.start, end: q.value.end })) : ft && jt && new Date(jt) < new Date(ft) ? (he.value = "End date cannot be before start date.", q.value.start = "", q.value.end = "", Ae("update:modelValue", { start: q.value.start, end: q.value.end }), Ae("keydown", { start: q.value.start, end: q.value.end })) : he.value = "";
|
|
1528
1528
|
};
|
|
1529
1529
|
return (ft, jt) => (ve(), we(bo, null, [
|
|
1530
1530
|
O.show ? (ve(), we("div", {
|
|
@@ -1631,11 +1631,11 @@ const $ae = /* @__PURE__ */ Jr(YK, [["render", JK]]), QK = { class: "font-bold p
|
|
|
1631
1631
|
},
|
|
1632
1632
|
emits: ["update:modelValue", "keydown"],
|
|
1633
1633
|
setup(O, { emit: me }) {
|
|
1634
|
-
const se = me, Ae = Wo(null), he = (
|
|
1635
|
-
const Ee =
|
|
1636
|
-
console.log(Ee), se("keydown",
|
|
1634
|
+
const se = me, Ae = Wo(null), he = (q) => {
|
|
1635
|
+
const Ee = q.target.files[0];
|
|
1636
|
+
console.log(Ee), se("keydown", q), Ee && se("update:modelValue", Ee);
|
|
1637
1637
|
};
|
|
1638
|
-
return (
|
|
1638
|
+
return (q, Ee) => (ve(), we(bo, null, [
|
|
1639
1639
|
O.show ? (ve(), we("div", {
|
|
1640
1640
|
key: 0,
|
|
1641
1641
|
class: rn(O.field_name)
|
|
@@ -1679,18 +1679,20 @@ const $ae = /* @__PURE__ */ Jr(YK, [["render", JK]]), QK = { class: "font-bold p
|
|
|
1679
1679
|
setup(O, { slots: me }) {
|
|
1680
1680
|
const se = Oq(["TabChange"]), Ae = Wo(me.default().map((Ee) => Ee.props)), he = Wo(Ae.value[0].title);
|
|
1681
1681
|
XG("selectedTitle", he);
|
|
1682
|
-
const
|
|
1682
|
+
const q = (Ee) => {
|
|
1683
1683
|
se("TabChange", Ee);
|
|
1684
1684
|
};
|
|
1685
1685
|
return Gw(he, (Ee) => {
|
|
1686
|
-
|
|
1686
|
+
q(Ee);
|
|
1687
1687
|
}), {
|
|
1688
1688
|
tabs: Ae,
|
|
1689
|
-
selectedTitle: he
|
|
1689
|
+
selectedTitle: he,
|
|
1690
|
+
emit: se,
|
|
1691
|
+
handleTabChange: q
|
|
1690
1692
|
};
|
|
1691
1693
|
}
|
|
1692
1694
|
}, dX = { class: "flex flex-wrap" }, mX = { class: "w-full" }, fX = { class: "flex flex-row flex-wrap gap-1 pt-3 pb-4 mb-0 list-none" }, gX = ["onClick"], hX = { 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" }, pX = { class: "flex-auto px-4 py-5" }, bX = { class: "tab-content tab-space" };
|
|
1693
|
-
function vX(O, me, se, Ae, he,
|
|
1695
|
+
function vX(O, me, se, Ae, he, q) {
|
|
1694
1696
|
return ve(), we(bo, null, [
|
|
1695
1697
|
P("div", dX, [
|
|
1696
1698
|
P("div", mX, [
|
|
@@ -1732,7 +1734,7 @@ const Hae = /* @__PURE__ */ Jr(uX, [["render", vX]]), yX = {
|
|
|
1732
1734
|
key: 0,
|
|
1733
1735
|
class: "block"
|
|
1734
1736
|
};
|
|
1735
|
-
function wX(O, me, se, Ae, he,
|
|
1737
|
+
function wX(O, me, se, Ae, he, q) {
|
|
1736
1738
|
return se.title == Ae.selectedTitle ? (ve(), we("div", xX, [
|
|
1737
1739
|
vf(O.$slots, "default")
|
|
1738
1740
|
])) : pt("", !0);
|
|
@@ -1798,13 +1800,13 @@ const Vae = /* @__PURE__ */ Jr(yX, [["render", wX]]), CX = {
|
|
|
1798
1800
|
let O = this, me = document.getElementById("slider_" + this.Random_string);
|
|
1799
1801
|
const se = (he) => {
|
|
1800
1802
|
me.style.cursor = "grabbing";
|
|
1801
|
-
const
|
|
1803
|
+
const q = (J) => {
|
|
1802
1804
|
const Be = J.clientX || J.touches && J.touches[0] && J.touches[0].clientX, ft = J.clientY || J.touches && J.touches[0] && J.touches[0].clientY, jt = Be - O.initialX, xn = ft - O.initialY;
|
|
1803
1805
|
Math.abs(jt) > Math.abs(xn) ? (J.preventDefault(), Math.abs(jt) >= 70 && (jt < 0 ? O.next() : O.prev(), O.initialX = Be)) : me.style.cursor = "grab", Math.abs(xn) > Math.abs(jt) && (me.style.cursor = "grab");
|
|
1804
1806
|
}, Ee = () => {
|
|
1805
|
-
document.removeEventListener("mousemove",
|
|
1807
|
+
document.removeEventListener("mousemove", q), document.removeEventListener("touchmove", q), document.removeEventListener("mouseup", Ee), document.removeEventListener("touchend", Ee), me.style.cursor = "grab";
|
|
1806
1808
|
};
|
|
1807
|
-
document.addEventListener("mousemove",
|
|
1809
|
+
document.addEventListener("mousemove", q), document.addEventListener("touchmove", q, { passive: !1 }), document.addEventListener("mouseup", Ee), document.addEventListener("touchend", Ee), O.initialX = he.clientX || he.touches && he.touches[0] && he.touches[0].clientX, O.initialY = he.clientY || he.touches && he.touches[0] && he.touches[0].clientY;
|
|
1808
1810
|
}, Ae = (he) => {
|
|
1809
1811
|
he.key === "ArrowLeft" ? O.prev() : he.key === "ArrowRight" && O.next();
|
|
1810
1812
|
};
|
|
@@ -1817,8 +1819,8 @@ const Vae = /* @__PURE__ */ Jr(yX, [["render", wX]]), CX = {
|
|
|
1817
1819
|
this.currentDot > 1 && (this.currentDot--, this.setDot(this.currentDot));
|
|
1818
1820
|
},
|
|
1819
1821
|
initSlider() {
|
|
1820
|
-
let O = document.getElementById("sliderContainer_" + this.Random_string), me = document.getElementById("mainSliderContainer_" + this.Random_string), se = document.getElementById("slider_" + this.Random_string), Ae = se.querySelectorAll("li"), he = Array.from(Ae).filter((J) => J.parentNode === se),
|
|
1821
|
-
if (this.elementsToShow > 1 ? document.body.clientWidth < 1e3 ? (this.elementsToShow = 1, Ee = this.hide_arrow ? me.clientWidth :
|
|
1822
|
+
let O = document.getElementById("sliderContainer_" + this.Random_string), me = document.getElementById("mainSliderContainer_" + this.Random_string), se = document.getElementById("slider_" + this.Random_string), Ae = se.querySelectorAll("li"), he = Array.from(Ae).filter((J) => J.parentNode === se), q = O.clientWidth, Ee = q / this.elementsToShow;
|
|
1823
|
+
if (this.elementsToShow > 1 ? document.body.clientWidth < 1e3 ? (this.elementsToShow = 1, Ee = this.hide_arrow ? me.clientWidth : q) : document.body.clientWidth < 1500 && (this.elementsToShow = 2) : (this.elementsToShow = 1, Ee = this.hide_arrow ? me.clientWidth : q), he.length > 1) {
|
|
1822
1824
|
this.dotsNum = this.elementsToShow == 1 ? he.length : he.length - this.elementsToShow + 1;
|
|
1823
1825
|
let J = this.elementsToShow == 1 ? Ee * he.length / this.dotsNum : Ee * (he.length - this.elementsToShow) / (this.dotsNum - 1);
|
|
1824
1826
|
this.dotsNavigation = [];
|
|
@@ -2021,7 +2023,7 @@ const Vae = /* @__PURE__ */ Jr(yX, [["render", wX]]), CX = {
|
|
|
2021
2023
|
}, null, -1)), kJ = [
|
|
2022
2024
|
_J
|
|
2023
2025
|
];
|
|
2024
|
-
function TJ(O, me, se, Ae, he,
|
|
2026
|
+
function TJ(O, me, se, Ae, he, q) {
|
|
2025
2027
|
return ve(), we("div", null, [
|
|
2026
2028
|
P("div", {
|
|
2027
2029
|
class: rn(["", !se.hide_arrow && se.slider_arrows_indicators_position == "arrows_outside_slide" ? "flex" : "relative block"]),
|
|
@@ -2031,7 +2033,7 @@ function TJ(O, me, se, Ae, he, K) {
|
|
|
2031
2033
|
P("div", kX, [
|
|
2032
2034
|
P("button", {
|
|
2033
2035
|
class: "p-3 mr-5 rounded-full shadow-lg arrow_button_styles",
|
|
2034
|
-
onClick: me[0] || (me[0] = (Ee) =>
|
|
2036
|
+
onClick: me[0] || (me[0] = (Ee) => q.prev())
|
|
2035
2037
|
}, [
|
|
2036
2038
|
se.direction_property == "ltr" ? (ve(), we("svg", TX, AX)) : pt("", !0),
|
|
2037
2039
|
se.direction_property == "rtl" ? (ve(), we("svg", DX, RX)) : pt("", !0)
|
|
@@ -2039,7 +2041,7 @@ function TJ(O, me, se, Ae, he, K) {
|
|
|
2039
2041
|
])
|
|
2040
2042
|
])) : pt("", !0),
|
|
2041
2043
|
P("div", {
|
|
2042
|
-
class: rn(["overflow-hidden",
|
|
2044
|
+
class: rn(["overflow-hidden", q.sliderContainerAction()]),
|
|
2043
2045
|
id: "sliderContainer_" + O.Random_string
|
|
2044
2046
|
}, [
|
|
2045
2047
|
P("ul", {
|
|
@@ -2053,7 +2055,7 @@ function TJ(O, me, se, Ae, he, K) {
|
|
|
2053
2055
|
P("div", PX, [
|
|
2054
2056
|
P("button", {
|
|
2055
2057
|
class: "p-3 rounded-full shadow-lg arrow_button_styles",
|
|
2056
|
-
onClick: me[1] || (me[1] = oc((Ee) =>
|
|
2058
|
+
onClick: me[1] || (me[1] = oc((Ee) => q.prev(), ["stop"]))
|
|
2057
2059
|
}, [
|
|
2058
2060
|
se.direction_property == "ltr" ? (ve(), we("svg", NX, IX)) : pt("", !0),
|
|
2059
2061
|
se.direction_property == "rtl" ? (ve(), we("svg", LX, HX)) : pt("", !0)
|
|
@@ -2068,7 +2070,7 @@ function TJ(O, me, se, Ae, he, K) {
|
|
|
2068
2070
|
P("div", VX, [
|
|
2069
2071
|
P("button", {
|
|
2070
2072
|
class: "p-3 rounded-full shadow-lg arrow_button_styles",
|
|
2071
|
-
onClick: me[2] || (me[2] = oc((Ee) =>
|
|
2073
|
+
onClick: me[2] || (me[2] = oc((Ee) => q.next(), ["stop"]))
|
|
2072
2074
|
}, [
|
|
2073
2075
|
se.direction_property == "ltr" ? (ve(), we("svg", zX, WX)) : pt("", !0),
|
|
2074
2076
|
se.direction_property == "rtl" ? (ve(), we("svg", ZX, GX)) : pt("", !0)
|
|
@@ -2078,24 +2080,24 @@ function TJ(O, me, se, Ae, he, K) {
|
|
|
2078
2080
|
], 8, MX),
|
|
2079
2081
|
se.slider_arrows_indicators_position != "arrows_indicators_below_slider" ? (ve(), we("div", {
|
|
2080
2082
|
key: 0,
|
|
2081
|
-
class: rn(["flex justify-center mb-1 space-x-1",
|
|
2083
|
+
class: rn(["flex justify-center mb-1 space-x-1", q.sliderIndicatorsAction()])
|
|
2082
2084
|
}, [
|
|
2083
2085
|
(ve(!0), we(bo, null, kr(O.dotsNum, (Ee) => (ve(), we("button", {
|
|
2084
2086
|
role: "button",
|
|
2085
2087
|
class: rn(["gl-dot", { active: O.currentDot == Ee }]),
|
|
2086
2088
|
key: Ee,
|
|
2087
|
-
onClick: (J) =>
|
|
2089
|
+
onClick: (J) => q.setDot(Ee)
|
|
2088
2090
|
}, YX, 10, qX))), 128))
|
|
2089
2091
|
], 2)) : pt("", !0),
|
|
2090
2092
|
se.slider_arrows_indicators_position == "arrows_indicators_below_slider" ? (ve(), we("div", XX, [
|
|
2091
2093
|
P("div", {
|
|
2092
|
-
class: rn(["flex justify-center mb-1 space-x-1",
|
|
2094
|
+
class: rn(["flex justify-center mb-1 space-x-1", q.sliderIndicatorsAction()])
|
|
2093
2095
|
}, [
|
|
2094
2096
|
(ve(!0), we(bo, null, kr(O.dotsNum, (Ee) => (ve(), we("button", {
|
|
2095
2097
|
role: "button",
|
|
2096
2098
|
class: rn(["gl-dot", { active: O.currentDot == Ee }]),
|
|
2097
2099
|
key: Ee,
|
|
2098
|
-
onClick: (J) =>
|
|
2100
|
+
onClick: (J) => q.setDot(Ee)
|
|
2099
2101
|
}, eJ, 10, JX))), 128))
|
|
2100
2102
|
], 2),
|
|
2101
2103
|
O.dotsNum > 0 ? (ve(), we("div", tJ, [
|
|
@@ -2103,7 +2105,7 @@ function TJ(O, me, se, Ae, he, K) {
|
|
|
2103
2105
|
P("div", oJ, [
|
|
2104
2106
|
P("button", {
|
|
2105
2107
|
class: rn(["p-3 rounded-full arrow_button_styles", se.direction_property == "rtl" ? "ml-3" : "mr-3"]),
|
|
2106
|
-
onClick: me[3] || (me[3] = (Ee) =>
|
|
2108
|
+
onClick: me[3] || (me[3] = (Ee) => q.prev())
|
|
2107
2109
|
}, [
|
|
2108
2110
|
se.direction_property == "ltr" ? (ve(), we("svg", sJ, aJ)) : pt("", !0),
|
|
2109
2111
|
se.direction_property == "rtl" ? (ve(), we("svg", lJ, iJ)) : pt("", !0)
|
|
@@ -2114,7 +2116,7 @@ function TJ(O, me, se, Ae, he, K) {
|
|
|
2114
2116
|
P("div", dJ, [
|
|
2115
2117
|
P("button", {
|
|
2116
2118
|
class: "p-3 rounded-full arrow_button_styles",
|
|
2117
|
-
onClick: me[4] || (me[4] = (Ee) =>
|
|
2119
|
+
onClick: me[4] || (me[4] = (Ee) => q.next())
|
|
2118
2120
|
}, [
|
|
2119
2121
|
se.direction_property == "ltr" ? (ve(), we("svg", mJ, gJ)) : pt("", !0),
|
|
2120
2122
|
se.direction_property == "rtl" ? (ve(), we("svg", hJ, bJ)) : pt("", !0)
|
|
@@ -2128,7 +2130,7 @@ function TJ(O, me, se, Ae, he, K) {
|
|
|
2128
2130
|
P("div", yJ, [
|
|
2129
2131
|
P("button", {
|
|
2130
2132
|
class: "p-3 ml-5 rounded-full shadow-lg arrow_button_styles",
|
|
2131
|
-
onClick: me[5] || (me[5] = (Ee) =>
|
|
2133
|
+
onClick: me[5] || (me[5] = (Ee) => q.next())
|
|
2132
2134
|
}, [
|
|
2133
2135
|
se.direction_property == "ltr" ? (ve(), we("svg", xJ, CJ)) : pt("", !0),
|
|
2134
2136
|
se.direction_property == "rtl" ? (ve(), we("svg", SJ, kJ)) : pt("", !0)
|
|
@@ -2182,15 +2184,15 @@ const zae = /* @__PURE__ */ Jr(CX, [["render", TJ], ["__scopeId", "data-v-a94f16
|
|
|
2182
2184
|
setup(O, { emit: me }) {
|
|
2183
2185
|
const se = O, Ae = me, he = () => {
|
|
2184
2186
|
document.documentElement.style.overflow = "hidden", document.documentElement.style.paddingRight = "0px";
|
|
2185
|
-
},
|
|
2187
|
+
}, q = () => {
|
|
2186
2188
|
document.documentElement.style.overflow = "", document.documentElement.style.paddingRight = "";
|
|
2187
2189
|
}, Ee = () => {
|
|
2188
|
-
Ae("closeModal"),
|
|
2190
|
+
Ae("closeModal"), q();
|
|
2189
2191
|
};
|
|
2190
2192
|
return Gw(
|
|
2191
2193
|
() => se.is_open,
|
|
2192
2194
|
(J, Be) => {
|
|
2193
|
-
J ? he() :
|
|
2195
|
+
J ? he() : q();
|
|
2194
2196
|
},
|
|
2195
2197
|
{ immediate: !0, deep: !0 }
|
|
2196
2198
|
), (J, Be) => O.is_open ? (ve(), we("div", {
|
|
@@ -2278,7 +2280,7 @@ const zae = /* @__PURE__ */ Jr(CX, [["render", TJ], ["__scopeId", "data-v-a94f16
|
|
|
2278
2280
|
},
|
|
2279
2281
|
emits: ["update:modelValue"],
|
|
2280
2282
|
setup(O, { emit: me }) {
|
|
2281
|
-
const se = O, Ae = me, he = Wo(null),
|
|
2283
|
+
const se = O, Ae = me, he = Wo(null), q = vc({
|
|
2282
2284
|
get() {
|
|
2283
2285
|
return se.modelValue;
|
|
2284
2286
|
},
|
|
@@ -2332,9 +2334,9 @@ const zae = /* @__PURE__ */ Jr(CX, [["render", TJ], ["__scopeId", "data-v-a94f16
|
|
|
2332
2334
|
"false-value": 0,
|
|
2333
2335
|
ref_key: "input",
|
|
2334
2336
|
ref: he,
|
|
2335
|
-
"onUpdate:modelValue": J[0] || (J[0] = (Be) =>
|
|
2337
|
+
"onUpdate:modelValue": J[0] || (J[0] = (Be) => q.value = Be)
|
|
2336
2338
|
}, null, 8, zJ), [
|
|
2337
|
-
[QG,
|
|
2339
|
+
[QG, q.value]
|
|
2338
2340
|
]),
|
|
2339
2341
|
UJ
|
|
2340
2342
|
])
|
|
@@ -2389,7 +2391,7 @@ const zae = /* @__PURE__ */ Jr(CX, [["render", TJ], ["__scopeId", "data-v-a94f16
|
|
|
2389
2391
|
},
|
|
2390
2392
|
emits: ["update:modelValue"],
|
|
2391
2393
|
setup(O, { emit: me }) {
|
|
2392
|
-
const se = O, Ae = me, he = Wo(null),
|
|
2394
|
+
const se = O, Ae = me, he = Wo(null), q = vc({
|
|
2393
2395
|
get() {
|
|
2394
2396
|
return se.modelValue;
|
|
2395
2397
|
},
|
|
@@ -2439,9 +2441,9 @@ const zae = /* @__PURE__ */ Jr(CX, [["render", TJ], ["__scopeId", "data-v-a94f16
|
|
|
2439
2441
|
id: O.field_name,
|
|
2440
2442
|
ref_key: "input",
|
|
2441
2443
|
ref: he,
|
|
2442
|
-
"onUpdate:modelValue": J[0] || (J[0] = (Be) =>
|
|
2444
|
+
"onUpdate:modelValue": J[0] || (J[0] = (Be) => q.value = Be)
|
|
2443
2445
|
}, null, 8, tQ), [
|
|
2444
|
-
[QG,
|
|
2446
|
+
[QG, q.value]
|
|
2445
2447
|
]),
|
|
2446
2448
|
nQ
|
|
2447
2449
|
])
|
|
@@ -2548,7 +2550,7 @@ const zae = /* @__PURE__ */ Jr(CX, [["render", TJ], ["__scopeId", "data-v-a94f16
|
|
|
2548
2550
|
},
|
|
2549
2551
|
emits: ["update:modelValue", "selected", "selectionChanged"],
|
|
2550
2552
|
setup(O, { emit: me }) {
|
|
2551
|
-
const se = O, Ae = me, he = Wo(null),
|
|
2553
|
+
const se = O, Ae = me, he = Wo(null), q = Wo({}), Ee = Wo(0), J = Wo(!1), Be = Wo(""), ft = Wo("");
|
|
2552
2554
|
Oh(() => {
|
|
2553
2555
|
ft.value = ir(), se.show || (document.body.addEventListener("click", (St) => {
|
|
2554
2556
|
Pt(St);
|
|
@@ -2608,11 +2610,11 @@ const zae = /* @__PURE__ */ Jr(CX, [["render", TJ], ["__scopeId", "data-v-a94f16
|
|
|
2608
2610
|
return se.options.map((St, He) => typeof St == "object" ? St : { id: St, name: St });
|
|
2609
2611
|
}
|
|
2610
2612
|
function Ea() {
|
|
2611
|
-
if (No(
|
|
2612
|
-
return typeof
|
|
2613
|
-
(St) => String(St.id) === String(
|
|
2613
|
+
if (No(q.value))
|
|
2614
|
+
return typeof q.value == "object" ? jt.value.find(
|
|
2615
|
+
(St) => String(St.id) === String(q.value.id)
|
|
2614
2616
|
) || {} : jt.value.find(
|
|
2615
|
-
(St) => String(St.id) === String(
|
|
2617
|
+
(St) => String(St.id) === String(q.value)
|
|
2616
2618
|
) || {};
|
|
2617
2619
|
if (se.modelValue)
|
|
2618
2620
|
return typeof se.modelValue == "object" ? jt.value.find(
|
|
@@ -2622,7 +2624,7 @@ const zae = /* @__PURE__ */ Jr(CX, [["render", TJ], ["__scopeId", "data-v-a94f16
|
|
|
2622
2624
|
) || {};
|
|
2623
2625
|
}
|
|
2624
2626
|
function Xn(St) {
|
|
2625
|
-
|
|
2627
|
+
q.value = St, J.value = !1, Ae("update:modelValue", q.value.id), Ae("selected", q.value), Ae("selectionChanged", q.value);
|
|
2626
2628
|
}
|
|
2627
2629
|
function oe() {
|
|
2628
2630
|
if (!se.show) {
|
|
@@ -2639,14 +2641,14 @@ const zae = /* @__PURE__ */ Jr(CX, [["render", TJ], ["__scopeId", "data-v-a94f16
|
|
|
2639
2641
|
}
|
|
2640
2642
|
}
|
|
2641
2643
|
function Pn() {
|
|
2642
|
-
se.show || (
|
|
2644
|
+
se.show || (q.value = {}, Be.value = "", Ae("update:modelValue", ""), oe());
|
|
2643
2645
|
}
|
|
2644
2646
|
function os() {
|
|
2645
|
-
|
|
2647
|
+
q.value.id || (q.value = {}, Be.value = ""), Ae("selected", q.value);
|
|
2646
2648
|
}
|
|
2647
2649
|
return Gw(Be, () => {
|
|
2648
|
-
zn.value.length === 0 && (
|
|
2649
|
-
}), Gw(
|
|
2650
|
+
zn.value.length === 0 && (q.value = {});
|
|
2651
|
+
}), Gw(q, (St) => {
|
|
2650
2652
|
No(St) && Ae("update:modelValue", St.id);
|
|
2651
2653
|
}), (St, He) => {
|
|
2652
2654
|
var ie, Ro, Jn;
|
|
@@ -2803,9 +2805,9 @@ const zae = /* @__PURE__ */ Jr(CX, [["render", TJ], ["__scopeId", "data-v-a94f16
|
|
|
2803
2805
|
},
|
|
2804
2806
|
emits: ["update:modelValue", "keydown"],
|
|
2805
2807
|
setup(O, { expose: me, emit: se }) {
|
|
2806
|
-
const Ae = O, he = se,
|
|
2808
|
+
const Ae = O, he = se, q = Wo(null);
|
|
2807
2809
|
Oh(() => {
|
|
2808
|
-
|
|
2810
|
+
q.value !== null && q.value.hasAttribute("autofocus") && q.value.focus();
|
|
2809
2811
|
});
|
|
2810
2812
|
const Ee = vc({
|
|
2811
2813
|
get() {
|
|
@@ -2815,7 +2817,7 @@ const zae = /* @__PURE__ */ Jr(CX, [["render", TJ], ["__scopeId", "data-v-a94f16
|
|
|
2815
2817
|
he("update:modelValue", J);
|
|
2816
2818
|
}
|
|
2817
2819
|
});
|
|
2818
|
-
return me({ focus: () =>
|
|
2820
|
+
return me({ focus: () => q.value.focus() }), (J, Be) => (ve(), we(bo, null, [
|
|
2819
2821
|
O.show ? (ve(), we("div", {
|
|
2820
2822
|
key: 0,
|
|
2821
2823
|
class: rn(O.field_name)
|
|
@@ -2851,7 +2853,7 @@ const zae = /* @__PURE__ */ Jr(CX, [["render", TJ], ["__scopeId", "data-v-a94f16
|
|
|
2851
2853
|
"onUpdate:modelValue": Be[0] || (Be[0] = (ft) => Ee.value = ft),
|
|
2852
2854
|
onKeydown: Be[1] || (Be[1] = (ft) => J.$emit("keydown", ft)),
|
|
2853
2855
|
ref_key: "input",
|
|
2854
|
-
ref:
|
|
2856
|
+
ref: q,
|
|
2855
2857
|
rows: "4",
|
|
2856
2858
|
placeholder: O.placeholder
|
|
2857
2859
|
}, null, 42, MQ), [
|
|
@@ -2890,15 +2892,15 @@ var tq = { exports: {} };
|
|
|
2890
2892
|
var o = Array.prototype.slice.call(e);
|
|
2891
2893
|
return o.sort(n);
|
|
2892
2894
|
}, he = function(e, n) {
|
|
2893
|
-
return
|
|
2895
|
+
return q(function(o, r) {
|
|
2894
2896
|
return e.eq(n(o), n(r));
|
|
2895
2897
|
});
|
|
2896
|
-
},
|
|
2898
|
+
}, q = function(e) {
|
|
2897
2899
|
return { eq: e };
|
|
2898
|
-
}, Ee =
|
|
2900
|
+
}, Ee = q(function(e, n) {
|
|
2899
2901
|
return e === n;
|
|
2900
2902
|
}), J = Ee, Be = function(e) {
|
|
2901
|
-
return
|
|
2903
|
+
return q(function(n, o) {
|
|
2902
2904
|
if (n.length !== o.length)
|
|
2903
2905
|
return !1;
|
|
2904
2906
|
for (var r = n.length, l = 0; l < r; l++)
|
|
@@ -2911,7 +2913,7 @@ var tq = { exports: {} };
|
|
|
2911
2913
|
return Ae(o, n);
|
|
2912
2914
|
});
|
|
2913
2915
|
}, jt = function(e) {
|
|
2914
|
-
return
|
|
2916
|
+
return q(function(n, o) {
|
|
2915
2917
|
var r = Object.keys(n), l = Object.keys(o);
|
|
2916
2918
|
if (!ft(J).eq(r, l))
|
|
2917
2919
|
return !1;
|
|
@@ -2922,7 +2924,7 @@ var tq = { exports: {} };
|
|
|
2922
2924
|
}
|
|
2923
2925
|
return !0;
|
|
2924
2926
|
});
|
|
2925
|
-
}, xn =
|
|
2927
|
+
}, xn = q(function(e, n) {
|
|
2926
2928
|
if (e === n)
|
|
2927
2929
|
return !0;
|
|
2928
2930
|
var o = me(e), r = me(n);
|
|
@@ -4034,7 +4036,7 @@ var tq = { exports: {} };
|
|
|
4034
4036
|
n.isBlock(lo(e)) && Id(o) && n.isBlock(lo(r)) && yo(o);
|
|
4035
4037
|
});
|
|
4036
4038
|
});
|
|
4037
|
-
}, w = zg, T = au, V = fb,
|
|
4039
|
+
}, w = zg, T = au, V = fb, K = (e) => e.insertContent(w, { preserve_zwsp: !0 }), be = Wt, Ze = it, gt = (e) => (Ze(e) && (e = e.parentNode), be(e) && e.hasAttribute("data-mce-caret")), Rt = (e) => Ze(e) && T(e.data), on = (e) => gt(e) || Rt(e), Fn = (e) => e.firstChild !== e.lastChild || !ls(e.firstChild), rr = (e, n) => {
|
|
4038
4040
|
var o;
|
|
4039
4041
|
const l = ((o = e.ownerDocument) !== null && o !== void 0 ? o : document).createTextNode(w), u = e.parentNode;
|
|
4040
4042
|
if (n) {
|
|
@@ -17863,7 +17865,7 @@ Input object: ` + CD(e.input), kD = (e, n) => ON(e, mo(n, _D)), WN = nt(HN), pk
|
|
|
17863
17865
|
return y.length > 0 || b.length > 0 ? (e.undoManager.add(), e.undoManager.extra(() => {
|
|
17864
17866
|
e.execCommand("mceInsertNewLine");
|
|
17865
17867
|
}, () => {
|
|
17866
|
-
|
|
17868
|
+
K(e), z6(e, b), xW(e, y);
|
|
17867
17869
|
const k = e.selection.getRng(), M = gg(k.startContainer, k.startOffset, e.dom.getRoot());
|
|
17868
17870
|
e.execCommand("mceInsertNewLine"), M.each((N) => {
|
|
17869
17871
|
const F = N.container;
|
|
@@ -20273,7 +20275,7 @@ tinymce.IconManager.add("default", {
|
|
|
20273
20275
|
}, se = (t) => {
|
|
20274
20276
|
const s = typeof t;
|
|
20275
20277
|
return t === null ? "null" : s === "object" && Array.isArray(t) ? "array" : s === "object" && me(t, String, (a, c) => c.isPrototypeOf(a)) ? "string" : s;
|
|
20276
|
-
}, Ae = (t) => (s) => se(s) === t, he = (t) => (s) => typeof s === t,
|
|
20278
|
+
}, Ae = (t) => (s) => se(s) === t, he = (t) => (s) => typeof s === t, q = (t) => (s) => t === s, Ee = (t, s) => Be(t) && me(t, s, (a, c) => O(a) === c), J = Ae("string"), Be = Ae("object"), ft = (t) => Ee(t, Object), jt = Ae("array"), xn = q(null), zn = he("boolean"), Zo = q(void 0), ir = (t) => t == null, No = (t) => !ir(t), Pt = he("function"), ur = he("number"), mn = (t, s) => {
|
|
20277
20279
|
if (jt(t)) {
|
|
20278
20280
|
for (let a = 0, c = t.length; a < c; ++a)
|
|
20279
20281
|
if (!s(t[a]))
|
|
@@ -21506,7 +21508,7 @@ Required: ` + s.join(", "));
|
|
|
21506
21508
|
errors: s,
|
|
21507
21509
|
values: a
|
|
21508
21510
|
};
|
|
21509
|
-
},
|
|
21511
|
+
}, K = (t, s) => {
|
|
21510
21512
|
const a = {};
|
|
21511
21513
|
return us(t, (c, d) => {
|
|
21512
21514
|
jo(s, d) || (a[d] = c);
|
|
@@ -21516,7 +21518,7 @@ Required: ` + s.join(", "));
|
|
|
21516
21518
|
return bt(t, (a) => {
|
|
21517
21519
|
s[a.key] = a.value;
|
|
21518
21520
|
}), s;
|
|
21519
|
-
}, gt = (t, s) =>
|
|
21521
|
+
}, gt = (t, s) => K(t, s), Rt = (t, s) => be(t, s), on = (t) => Ze(t), Fn = (t, s) => t.length === 0 ? Ln.value(s) : Ln.value(Uo(s, qc.apply(void 0, t))), rr = (t) => Ln.error(Ke(t)), Mo = (t, s) => {
|
|
21520
21522
|
const a = V(t);
|
|
21521
21523
|
return a.errors.length > 0 ? rr(a.errors) : Fn(a.values, s);
|
|
21522
21524
|
}, Ns = (t) => Pt(t) ? t : Jn, mc = (t, s, a) => {
|
|
@@ -41455,7 +41457,7 @@ The conflicting element is` + (ao(B.element) ? " " : " not ") + "already in the
|
|
|
41455
41457
|
}, se = (i) => {
|
|
41456
41458
|
const m = typeof i;
|
|
41457
41459
|
return i === null ? "null" : m === "object" && Array.isArray(i) ? "array" : m === "object" && me(i, String, (h, v) => v.isPrototypeOf(h)) ? "string" : m;
|
|
41458
|
-
}, Ae = (i) => (m) => se(m) === i, he = (i) => (m) => typeof m === i,
|
|
41460
|
+
}, Ae = (i) => (m) => se(m) === i, he = (i) => (m) => typeof m === i, q = (i) => (m) => i === m, Ee = Ae("string"), J = Ae("object"), Be = Ae("array"), ft = q(null), jt = he("boolean"), xn = q(void 0), zn = (i) => i == null, Zo = (i) => !zn(i), ir = he("function"), No = he("number"), Pt = () => {
|
|
41459
41461
|
}, 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;
|
|
41460
41462
|
function Xn(i, ...m) {
|
|
41461
41463
|
return (...h) => {
|
|
@@ -42623,7 +42625,7 @@ The conflicting element is` + (ao(B.element) ? " " : " not ") + "already in the
|
|
|
42623
42625
|
ot(_, nr), (m.minCol === m.maxCol || m.minRow === m.maxRow) && ot(qu(i, "th,td"), (L) => {
|
|
42624
42626
|
Is(L, "rowspan"), Is(L, "colspan");
|
|
42625
42627
|
}), Is(i, Ju), Is(i, "data-snooker-col-series"), jl.getTableSize(i).adjustTableWidth(v);
|
|
42626
|
-
},
|
|
42628
|
+
}, K = (i, m, h, v) => {
|
|
42627
42629
|
if (v.minCol === 0 && m.grid.columns === v.maxCol + 1)
|
|
42628
42630
|
return 0;
|
|
42629
42631
|
const _ = _l(m, i, h), D = et(_, (ue, De) => ue + De, 0), ee = et(_.slice(v.minCol, v.maxCol + 1), (ue, De) => ue + De, 0) / D * h.pixelWidth() - h.pixelWidth();
|
|
@@ -42631,7 +42633,7 @@ The conflicting element is` + (ao(B.element) ? " " : " not ") + "already in the
|
|
|
42631
42633
|
}, be = (i, m) => {
|
|
42632
42634
|
const h = (Mt) => qr(Mt.element, m), v = Hl(i), _ = vi(v), D = jl.getTableSize(i), L = jn.generate(_), Z = dn(L, h), ee = "th:not(" + m + "),td:not(" + m + ")", ue = Ku(v, "th,td", (Mt) => qr(Mt, ee));
|
|
42633
42635
|
ot(ue, nr), T(_, L, Z, h);
|
|
42634
|
-
const De = jn.fromTable(i), at =
|
|
42636
|
+
const De = jn.fromTable(i), at = K(i, De, D, Z);
|
|
42635
42637
|
return V(v, Z, L, at), v;
|
|
42636
42638
|
}, Ze = " ", Rt = ((i, m) => {
|
|
42637
42639
|
const h = (D) => {
|
|
@@ -45698,7 +45700,7 @@ Required: ` + m.join(", "));
|
|
|
45698
45700
|
}, se = (S) => {
|
|
45699
45701
|
const $ = typeof S;
|
|
45700
45702
|
return S === null ? "null" : $ === "object" && Array.isArray(S) ? "array" : $ === "object" && me(S, String, (U, ae) => ae.isPrototypeOf(U)) ? "string" : $;
|
|
45701
|
-
}, Ae = (S) => ($) => se($) === S, he = (S) => ($) => typeof $ === S,
|
|
45703
|
+
}, Ae = (S) => ($) => se($) === S, he = (S) => ($) => typeof $ === S, q = Ae("string"), Ee = Ae("object"), J = Ae("array"), Be = he("boolean"), ft = (S) => S == null, jt = (S) => !ft(S), xn = he("function"), zn = he("number"), Zo = () => {
|
|
45702
45704
|
}, ir = (S, $) => (U) => S($(U)), No = (S) => () => S, Pt = (S, $) => S === $;
|
|
45703
45705
|
function ur(S, ...$) {
|
|
45704
45706
|
return (...U) => {
|
|
@@ -45983,7 +45985,7 @@ Required: ` + m.join(", "));
|
|
|
45983
45985
|
const U = {};
|
|
45984
45986
|
return Yi(S, $, nl(U), Zo), U;
|
|
45985
45987
|
}, ks = (S, $, U) => {
|
|
45986
|
-
if (
|
|
45988
|
+
if (q(U) || Be(U) || zn(U))
|
|
45987
45989
|
S.setAttribute($, U + "");
|
|
45988
45990
|
else
|
|
45989
45991
|
throw console.error("Invalid call to Attribute.set. Key ", $, ":: Value ", U, ":: Element ", S), new Error("Attribute value was not simple");
|
|
@@ -46131,7 +46133,7 @@ Required: ` + m.join(", "));
|
|
|
46131
46133
|
action: $,
|
|
46132
46134
|
element: U
|
|
46133
46135
|
}), Rh = ((S) => ($) => $.replace(S, ""))(/^\s+|\s+$/g), $h = (S) => S.length > 0, $o = (S) => !$h(S), Wc = (S) => S.style !== void 0 && xn(S.style.getPropertyValue), Qi = (S, $, U) => {
|
|
46134
|
-
if (!
|
|
46136
|
+
if (!q(U))
|
|
46135
46137
|
throw console.error("Invalid call to CSS.set. Property ", $, ":: Value ", U, ":: Element ", S), new Error("CSS value must be a string: " + U);
|
|
46136
46138
|
Wc(S) && S.style.setProperty($, U);
|
|
46137
46139
|
}, wl = (S, $, U) => {
|
|
@@ -46846,7 +46848,7 @@ Required: ` + m.join(", "));
|
|
|
46846
46848
|
}, se = (j) => {
|
|
46847
46849
|
const de = typeof j;
|
|
46848
46850
|
return j === null ? "null" : de === "object" && Array.isArray(j) ? "array" : de === "object" && me(j, String, (ke, Ne) => Ne.isPrototypeOf(ke)) ? "string" : de;
|
|
46849
|
-
}, Ae = (j) => (de) => se(de) === j, he = (j) => (de) => typeof de === j,
|
|
46851
|
+
}, Ae = (j) => (de) => se(de) === j, he = (j) => (de) => typeof de === j, q = (j) => (de) => j === de, Ee = Ae("string"), J = Ae("object"), Be = Ae("array"), ft = q(null), jt = he("boolean"), xn = (j) => j == null, zn = (j) => !xn(j), Zo = he("function"), ir = (j, de) => {
|
|
46850
46852
|
if (Be(j)) {
|
|
46851
46853
|
for (let ke = 0, Ne = j.length; ke < Ne; ++ke)
|
|
46852
46854
|
if (!de(j[ke]))
|
|
@@ -47603,7 +47605,7 @@ Required: ` + m.join(", "));
|
|
|
47603
47605
|
}, Ae = (I) => {
|
|
47604
47606
|
const Y = typeof I;
|
|
47605
47607
|
return I === null ? "null" : Y === "object" && Array.isArray(I) ? "array" : Y === "object" && se(I, String, (re, Le) => Le.isPrototypeOf(re)) ? "string" : Y;
|
|
47606
|
-
}, he = (I) => (Y) => Ae(Y) === I,
|
|
47608
|
+
}, he = (I) => (Y) => Ae(Y) === I, q = (I) => (Y) => typeof Y === I, Ee = (I) => (Y) => I === Y, J = (I, Y) => ft(I) && se(I, Y, (re, Le) => me(re) === Le), Be = he("string"), ft = he("object"), jt = (I) => J(I, Object), xn = he("array"), zn = Ee(null), Zo = q("boolean"), ir = (I) => I == null, No = (I) => !ir(I), Pt = q("function"), ur = q("number"), mn = (I, Y) => {
|
|
47607
47609
|
if (xn(I)) {
|
|
47608
47610
|
for (let re = 0, Le = I.length; re < Le; ++re)
|
|
47609
47611
|
if (!Y(I[re]))
|
|
@@ -48467,17 +48469,17 @@ Required: ` + m.join(", "));
|
|
|
48467
48469
|
(function() {
|
|
48468
48470
|
var O = tinymce.util.Tools.resolve("tinymce.PluginManager");
|
|
48469
48471
|
const me = (w, T, V) => {
|
|
48470
|
-
var
|
|
48471
|
-
return V(w, T.prototype) ? !0 : ((
|
|
48472
|
+
var K;
|
|
48473
|
+
return V(w, T.prototype) ? !0 : ((K = w.constructor) === null || K === void 0 ? void 0 : K.name) === T.name;
|
|
48472
48474
|
}, se = (w) => {
|
|
48473
48475
|
const T = typeof w;
|
|
48474
|
-
return w === null ? "null" : T === "object" && Array.isArray(w) ? "array" : T === "object" && me(w, String, (V,
|
|
48475
|
-
}, Ae = (w) => (T) => se(T) === w, he = (w) => (T) => typeof T === w,
|
|
48476
|
+
return w === null ? "null" : T === "object" && Array.isArray(w) ? "array" : T === "object" && me(w, String, (V, K) => K.isPrototypeOf(V)) ? "string" : T;
|
|
48477
|
+
}, Ae = (w) => (T) => se(T) === w, he = (w) => (T) => typeof T === w, q = (w) => (T) => w === T, Ee = Ae("string"), J = Ae("array"), Be = he("boolean"), ft = q(void 0), jt = (w) => w == null, xn = (w) => !jt(w), zn = he("function"), Zo = he("number"), ir = () => {
|
|
48476
48478
|
}, No = (w, T) => (V) => w(T(V)), Pt = (w) => () => w, ur = (w) => w, mn = (w, T) => w === T;
|
|
48477
48479
|
function fe(w, ...T) {
|
|
48478
48480
|
return (...V) => {
|
|
48479
|
-
const
|
|
48480
|
-
return w.apply(null,
|
|
48481
|
+
const K = T.concat(V);
|
|
48482
|
+
return w.apply(null, K);
|
|
48481
48483
|
};
|
|
48482
48484
|
}
|
|
48483
48485
|
const Tt = (w) => {
|
|
@@ -48556,23 +48558,23 @@ Required: ` + m.join(", "));
|
|
|
48556
48558
|
oe.singletonNone = new oe(!1);
|
|
48557
48559
|
const Pn = Object.keys, os = Object.hasOwnProperty, St = (w, T) => {
|
|
48558
48560
|
const V = Pn(w);
|
|
48559
|
-
for (let
|
|
48560
|
-
const Ze = V[
|
|
48561
|
+
for (let K = 0, be = V.length; K < be; K++) {
|
|
48562
|
+
const Ze = V[K], gt = w[Ze];
|
|
48561
48563
|
T(gt, Ze);
|
|
48562
48564
|
}
|
|
48563
48565
|
}, He = (w) => (T, V) => {
|
|
48564
48566
|
w[V] = T;
|
|
48565
|
-
}, ie = (w, T, V,
|
|
48567
|
+
}, ie = (w, T, V, K) => {
|
|
48566
48568
|
St(w, (be, Ze) => {
|
|
48567
|
-
(T(be, Ze) ? V :
|
|
48569
|
+
(T(be, Ze) ? V : K)(be, Ze);
|
|
48568
48570
|
});
|
|
48569
48571
|
}, Ro = (w, T) => {
|
|
48570
48572
|
const V = {};
|
|
48571
48573
|
return ie(w, T, He(V), ir), V;
|
|
48572
48574
|
}, Jn = (w, T) => {
|
|
48573
48575
|
const V = [];
|
|
48574
|
-
return St(w, (
|
|
48575
|
-
V.push(T(
|
|
48576
|
+
return St(w, (K, be) => {
|
|
48577
|
+
V.push(T(K, be));
|
|
48576
48578
|
}), V;
|
|
48577
48579
|
}, Ge = (w) => Jn(w, ur), A = (w) => Pn(w).length, Xt = (w, T) => nt(w, T) ? oe.from(w[T]) : oe.none(), nt = (w, T) => os.call(w, T), Bo = (w, T) => nt(w, T) && w[T] !== void 0 && w[T] !== null, fn = (w) => {
|
|
48578
48580
|
for (const T in w)
|
|
@@ -48580,7 +48582,7 @@ Required: ` + m.join(", "));
|
|
|
48580
48582
|
return !1;
|
|
48581
48583
|
return !0;
|
|
48582
48584
|
}, ot = Array.prototype.indexOf, jo = Array.prototype.push, dr = (w, T) => ot.call(w, T), ro = (w, T) => dr(w, T) > -1, pr = (w, T) => {
|
|
48583
|
-
for (let V = 0,
|
|
48585
|
+
for (let V = 0, K = w.length; V < K; V++) {
|
|
48584
48586
|
const be = w[V];
|
|
48585
48587
|
if (T(be, V))
|
|
48586
48588
|
return !0;
|
|
@@ -48588,66 +48590,66 @@ Required: ` + m.join(", "));
|
|
|
48588
48590
|
return !1;
|
|
48589
48591
|
}, et = (w, T) => {
|
|
48590
48592
|
const V = [];
|
|
48591
|
-
for (let
|
|
48592
|
-
V.push(T(
|
|
48593
|
+
for (let K = 0; K < w; K++)
|
|
48594
|
+
V.push(T(K));
|
|
48593
48595
|
return V;
|
|
48594
48596
|
}, bt = (w, T) => {
|
|
48595
|
-
const V = w.length,
|
|
48597
|
+
const V = w.length, K = new Array(V);
|
|
48596
48598
|
for (let be = 0; be < V; be++) {
|
|
48597
48599
|
const Ze = w[be];
|
|
48598
|
-
|
|
48600
|
+
K[be] = T(Ze, be);
|
|
48599
48601
|
}
|
|
48600
|
-
return
|
|
48602
|
+
return K;
|
|
48601
48603
|
}, z = (w, T) => {
|
|
48602
|
-
for (let V = 0,
|
|
48604
|
+
for (let V = 0, K = w.length; V < K; V++) {
|
|
48603
48605
|
const be = w[V];
|
|
48604
48606
|
T(be, V);
|
|
48605
48607
|
}
|
|
48606
48608
|
}, el = (w, T) => {
|
|
48607
48609
|
for (let V = w.length - 1; V >= 0; V--) {
|
|
48608
|
-
const
|
|
48609
|
-
T(
|
|
48610
|
+
const K = w[V];
|
|
48611
|
+
T(K, V);
|
|
48610
48612
|
}
|
|
48611
48613
|
}, Qn = (w, T) => {
|
|
48612
|
-
const V = [],
|
|
48614
|
+
const V = [], K = [];
|
|
48613
48615
|
for (let be = 0, Ze = w.length; be < Ze; be++) {
|
|
48614
48616
|
const gt = w[be];
|
|
48615
|
-
(T(gt, be) ? V :
|
|
48617
|
+
(T(gt, be) ? V : K).push(gt);
|
|
48616
48618
|
}
|
|
48617
48619
|
return {
|
|
48618
48620
|
pass: V,
|
|
48619
|
-
fail:
|
|
48621
|
+
fail: K
|
|
48620
48622
|
};
|
|
48621
48623
|
}, ss = (w, T) => {
|
|
48622
48624
|
const V = [];
|
|
48623
|
-
for (let
|
|
48624
|
-
const Ze = w[
|
|
48625
|
-
T(Ze,
|
|
48625
|
+
for (let K = 0, be = w.length; K < be; K++) {
|
|
48626
|
+
const Ze = w[K];
|
|
48627
|
+
T(Ze, K) && V.push(Ze);
|
|
48626
48628
|
}
|
|
48627
48629
|
return V;
|
|
48628
|
-
}, Ho = (w, T, V) => (el(w, (
|
|
48629
|
-
V = T(V,
|
|
48630
|
-
}), V), Zi = (w, T, V) => (z(w, (
|
|
48631
|
-
V = T(V,
|
|
48630
|
+
}, Ho = (w, T, V) => (el(w, (K, be) => {
|
|
48631
|
+
V = T(V, K, be);
|
|
48632
|
+
}), V), Zi = (w, T, V) => (z(w, (K, be) => {
|
|
48633
|
+
V = T(V, K, be);
|
|
48632
48634
|
}), V), qe = (w, T, V) => {
|
|
48633
|
-
for (let
|
|
48634
|
-
const Ze = w[
|
|
48635
|
-
if (T(Ze,
|
|
48635
|
+
for (let K = 0, be = w.length; K < be; K++) {
|
|
48636
|
+
const Ze = w[K];
|
|
48637
|
+
if (T(Ze, K))
|
|
48636
48638
|
return oe.some(Ze);
|
|
48637
|
-
if (V(Ze,
|
|
48639
|
+
if (V(Ze, K))
|
|
48638
48640
|
break;
|
|
48639
48641
|
}
|
|
48640
48642
|
return oe.none();
|
|
48641
48643
|
}, Dt = (w, T) => qe(w, T, Ea), Ke = (w) => {
|
|
48642
48644
|
const T = [];
|
|
48643
|
-
for (let V = 0,
|
|
48645
|
+
for (let V = 0, K = w.length; V < K; ++V) {
|
|
48644
48646
|
if (!J(w[V]))
|
|
48645
48647
|
throw new Error("Arr.flatten item " + V + " was not an array, input: " + w);
|
|
48646
48648
|
jo.apply(T, w[V]);
|
|
48647
48649
|
}
|
|
48648
48650
|
return T;
|
|
48649
48651
|
}, _e = (w, T) => Ke(bt(w, T)), vn = (w, T) => {
|
|
48650
|
-
for (let V = 0,
|
|
48652
|
+
for (let V = 0, K = w.length; V < K; ++V) {
|
|
48651
48653
|
const be = w[V];
|
|
48652
48654
|
if (T(be, V) !== !0)
|
|
48653
48655
|
return !1;
|
|
@@ -48655,31 +48657,31 @@ Required: ` + m.join(", "));
|
|
|
48655
48657
|
return !0;
|
|
48656
48658
|
}, Go = (w, T) => {
|
|
48657
48659
|
const V = {};
|
|
48658
|
-
for (let
|
|
48659
|
-
const Ze = w[
|
|
48660
|
-
V[String(Ze)] = T(Ze,
|
|
48660
|
+
for (let K = 0, be = w.length; K < be; K++) {
|
|
48661
|
+
const Ze = w[K];
|
|
48662
|
+
V[String(Ze)] = T(Ze, K);
|
|
48661
48663
|
}
|
|
48662
48664
|
return V;
|
|
48663
48665
|
}, Ft = (w, T) => T >= 0 && T < w.length ? oe.some(w[T]) : oe.none(), Tr = (w) => Ft(w, 0), Io = (w) => Ft(w, w.length - 1), Va = (w, T) => {
|
|
48664
48666
|
for (let V = 0; V < w.length; V++) {
|
|
48665
|
-
const
|
|
48666
|
-
if (
|
|
48667
|
-
return
|
|
48667
|
+
const K = T(w[V], V);
|
|
48668
|
+
if (K.isSome())
|
|
48669
|
+
return K;
|
|
48668
48670
|
}
|
|
48669
48671
|
return oe.none();
|
|
48670
48672
|
}, hs = 8, br = 9, yc = 11, vr = 1, Js = 3, ps = (w, T) => {
|
|
48671
|
-
const
|
|
48672
|
-
if (
|
|
48673
|
+
const K = (T || document).createElement("div");
|
|
48674
|
+
if (K.innerHTML = w, !K.hasChildNodes() || K.childNodes.length > 1) {
|
|
48673
48675
|
const be = "HTML does not have a single root node";
|
|
48674
48676
|
throw console.error(be, w), new Error(be);
|
|
48675
48677
|
}
|
|
48676
|
-
return qo(
|
|
48678
|
+
return qo(K.childNodes[0]);
|
|
48677
48679
|
}, ji = (w, T) => {
|
|
48678
|
-
const
|
|
48679
|
-
return qo(
|
|
48680
|
+
const K = (T || document).createElement(w);
|
|
48681
|
+
return qo(K);
|
|
48680
48682
|
}, us = (w, T) => {
|
|
48681
|
-
const
|
|
48682
|
-
return qo(
|
|
48683
|
+
const K = (T || document).createTextNode(w);
|
|
48684
|
+
return qo(K);
|
|
48683
48685
|
}, qo = (w) => {
|
|
48684
48686
|
if (w == null)
|
|
48685
48687
|
throw new Error("Node cannot be null or undefined");
|
|
@@ -48695,15 +48697,15 @@ Required: ` + m.join(", "));
|
|
|
48695
48697
|
if (V.nodeType !== vr)
|
|
48696
48698
|
return !1;
|
|
48697
48699
|
{
|
|
48698
|
-
const
|
|
48699
|
-
if (
|
|
48700
|
-
return
|
|
48701
|
-
if (
|
|
48702
|
-
return
|
|
48703
|
-
if (
|
|
48704
|
-
return
|
|
48705
|
-
if (
|
|
48706
|
-
return
|
|
48700
|
+
const K = V;
|
|
48701
|
+
if (K.matches !== void 0)
|
|
48702
|
+
return K.matches(T);
|
|
48703
|
+
if (K.msMatchesSelector !== void 0)
|
|
48704
|
+
return K.msMatchesSelector(T);
|
|
48705
|
+
if (K.webkitMatchesSelector !== void 0)
|
|
48706
|
+
return K.webkitMatchesSelector(T);
|
|
48707
|
+
if (K.mozMatchesSelector !== void 0)
|
|
48708
|
+
return K.mozMatchesSelector(T);
|
|
48707
48709
|
throw new Error("Browser lacks native selectors");
|
|
48708
48710
|
}
|
|
48709
48711
|
}, yr = (w) => w.nodeType !== vr && w.nodeType !== br && w.nodeType !== yc || w.childElementCount === 0, Pl = (w, T) => {
|
|
@@ -48716,13 +48718,13 @@ Required: ` + m.join(", "));
|
|
|
48716
48718
|
typeof window < "u" || Function("return this;")();
|
|
48717
48719
|
const vt = (w) => w.dom.nodeName.toLowerCase(), mo = (w) => w.dom.nodeType, Er = (w) => (T) => mo(T) === w, Aa = (w) => mo(w) === hs || vt(w) === "#comment", Nl = Er(vr), Da = Er(Js), es = Er(br), tl = Er(yc), bl = (w) => (T) => Nl(T) && vt(T) === w, Yo = (w) => Yn.fromDom(w.dom.ownerDocument), gn = (w) => es(w) ? w : Yo(w), Ar = (w) => oe.from(w.dom.parentNode).map(Yn.fromDom), Bl = (w, T) => {
|
|
48718
48720
|
const V = zn(T) ? T : Ea;
|
|
48719
|
-
let
|
|
48721
|
+
let K = w.dom;
|
|
48720
48722
|
const be = [];
|
|
48721
|
-
for (;
|
|
48722
|
-
const Ze =
|
|
48723
|
+
for (; K.parentNode !== null && K.parentNode !== void 0; ) {
|
|
48724
|
+
const Ze = K.parentNode, gt = Yn.fromDom(Ze);
|
|
48723
48725
|
if (be.push(gt), V(gt) === !0)
|
|
48724
48726
|
break;
|
|
48725
|
-
|
|
48727
|
+
K = Ze;
|
|
48726
48728
|
}
|
|
48727
48729
|
return be;
|
|
48728
48730
|
}, Hc = (w) => oe.from(w.dom.previousSibling).map(Yn.fromDom), mi = (w) => oe.from(w.dom.nextSibling).map(Yn.fromDom), xr = (w) => bt(w.dom.childNodes, Yn.fromDom), mr = (w, T) => {
|
|
@@ -48738,13 +48740,13 @@ Required: ` + m.join(", "));
|
|
|
48738
48740
|
const V = T.ownerDocument;
|
|
48739
48741
|
return ca(Yn.fromDom(T)).fold(() => V.body.contains(T), No(Dr, Is));
|
|
48740
48742
|
};
|
|
48741
|
-
var sc = (w, T, V,
|
|
48743
|
+
var sc = (w, T, V, K, be) => w(V, K) ? oe.some(V) : zn(be) && be(V) ? oe.none() : T(V, K, be);
|
|
48742
48744
|
const Vc = (w, T, V) => {
|
|
48743
|
-
let
|
|
48745
|
+
let K = w.dom;
|
|
48744
48746
|
const be = zn(V) ? V : Ea;
|
|
48745
|
-
for (;
|
|
48746
|
-
|
|
48747
|
-
const Ze = Yn.fromDom(
|
|
48747
|
+
for (; K.parentNode; ) {
|
|
48748
|
+
K = K.parentNode;
|
|
48749
|
+
const Ze = Yn.fromDom(K);
|
|
48748
48750
|
if (T(Ze))
|
|
48749
48751
|
return oe.some(Ze);
|
|
48750
48752
|
if (be(Ze))
|
|
@@ -48754,10 +48756,10 @@ Required: ` + m.join(", "));
|
|
|
48754
48756
|
}, rc = (w, T, V) => sc((be, Ze) => Ze(be), Vc, w, T, V), Il = (w, T) => {
|
|
48755
48757
|
const V = (be) => T(Yn.fromDom(be));
|
|
48756
48758
|
return Dt(w.dom.childNodes, V).map(Yn.fromDom);
|
|
48757
|
-
}, fi = (w, T, V) => Vc(w, (
|
|
48759
|
+
}, fi = (w, T, V) => Vc(w, (K) => bs(K, T), V), Te = (w, T) => Il(w, (V) => bs(V, T)), qr = (w, T) => di(T, w), Ll = (w, T, V) => sc((be, Ze) => bs(be, Ze), fi, w, T, V), Wu = (w) => Ll(w, "[contenteditable]"), Ki = (w, T = !1) => Dr(w) ? w.dom.isContentEditable : Wu(w).fold(Pt(T), (V) => ts(V) === "true"), ts = (w) => w.dom.contentEditable, xm = (w) => w.nodeName.toLowerCase(), Ad = (w) => Yn.fromDom(w.getBody()), nl = (w) => (T) => Qo(T, Ad(w)), Yi = (w) => w ? w.replace(/px$/, "") : "", vs = (w) => /^\d+(\.\d+)?$/.test(w) ? w + "px" : w, ks = (w) => Yn.fromDom(w.selection.getStart()), za = (w) => Yn.fromDom(w.selection.getEnd()), Oa = (w) => rc(w, bl("table")).forall(Ki), wc = (w, T) => ss(xr(w), T), gi = (w, T) => {
|
|
48758
48760
|
let V = [];
|
|
48759
|
-
return z(xr(w), (
|
|
48760
|
-
T(
|
|
48761
|
+
return z(xr(w), (K) => {
|
|
48762
|
+
T(K) && (V = V.concat([K])), V = V.concat(gi(K, T));
|
|
48761
48763
|
}), V;
|
|
48762
48764
|
}, Cc = (w, T) => wc(w, (V) => bs(V, T)), Eo = (w, T) => Pl(T, w), Qr = (w, T, V) => {
|
|
48763
48765
|
if (Ee(V) || Be(V) || Zo(V))
|
|
@@ -48768,20 +48770,20 @@ Required: ` + m.join(", "));
|
|
|
48768
48770
|
Qr(w.dom, T, V);
|
|
48769
48771
|
}, zc = (w, T) => {
|
|
48770
48772
|
const V = w.dom;
|
|
48771
|
-
St(T, (
|
|
48772
|
-
Qr(V, be,
|
|
48773
|
+
St(T, (K, be) => {
|
|
48774
|
+
Qr(V, be, K);
|
|
48773
48775
|
});
|
|
48774
48776
|
}, ua = (w, T) => {
|
|
48775
48777
|
const V = w.dom.getAttribute(T);
|
|
48776
48778
|
return V === null ? void 0 : V;
|
|
48777
48779
|
}, Ls = (w, T) => oe.from(ua(w, T)), ns = (w, T) => {
|
|
48778
48780
|
w.dom.removeAttribute(T);
|
|
48779
|
-
}, Ra = (w) => Zi(w.dom.attributes, (T, V) => (T[V.name] = V.value, T), {}), Xi = (w, T, V = mn) => w.exists((
|
|
48780
|
-
const T = [], V = (
|
|
48781
|
-
T.push(
|
|
48781
|
+
}, Ra = (w) => Zi(w.dom.attributes, (T, V) => (T[V.name] = V.value, T), {}), Xi = (w, T, V = mn) => w.exists((K) => V(K, T)), Lo = (w) => {
|
|
48782
|
+
const T = [], V = (K) => {
|
|
48783
|
+
T.push(K);
|
|
48782
48784
|
};
|
|
48783
|
-
for (let
|
|
48784
|
-
w[
|
|
48785
|
+
for (let K = 0; K < w.length; K++)
|
|
48786
|
+
w[K].each(V);
|
|
48785
48787
|
return T;
|
|
48786
48788
|
}, Or = (w, T, V) => w.isSome() && T.isSome() ? oe.some(V(w.getOrDie(), T.getOrDie())) : oe.none(), da = (w) => w.bind(ur), nr = (w, T) => w ? oe.some(T) : oe.none(), yl = (w, T) => w.substring(T), Fl = (w, T, V) => T === "" || w.length >= T.length && w.substr(V, V + T.length) === T, ea = (w, T) => Hl(w, T) ? yl(w, T.length) : w, Hl = (w, T) => Fl(w, T, 0), Zu = ((w) => (T) => T.replace(w, ""))(/^\s+|\s+$/g), xl = (w) => w.length > 0, Ji = (w) => !xl(w), $a = (w, T = 10) => {
|
|
48787
48789
|
const V = parseInt(w, T);
|
|
@@ -48796,18 +48798,18 @@ Required: ` + m.join(", "));
|
|
|
48796
48798
|
}, ju = (w, T) => {
|
|
48797
48799
|
hi(w) && w.style.removeProperty(T);
|
|
48798
48800
|
}, j = (w, T, V) => {
|
|
48799
|
-
const
|
|
48800
|
-
pu(
|
|
48801
|
+
const K = w.dom;
|
|
48802
|
+
pu(K, T, V);
|
|
48801
48803
|
}, de = (w, T) => {
|
|
48802
48804
|
const V = w.dom, be = window.getComputedStyle(V).getPropertyValue(T);
|
|
48803
48805
|
return be === "" && !Dr(w) ? ke(V, T) : be;
|
|
48804
48806
|
}, ke = (w, T) => hi(w) ? w.style.getPropertyValue(T) : "", Ne = (w, T) => {
|
|
48805
|
-
const V = w.dom,
|
|
48806
|
-
return oe.from(
|
|
48807
|
+
const V = w.dom, K = ke(V, T);
|
|
48808
|
+
return oe.from(K).filter((be) => be.length > 0);
|
|
48807
48809
|
}, dt = (w, T) => {
|
|
48808
48810
|
const V = w.dom;
|
|
48809
48811
|
ju(V, T), Xi(Ls(w, "style").map(Zu), "") && ns(w, "style");
|
|
48810
|
-
}, un = (w, T, V = 0) => Ls(w, T).map((
|
|
48812
|
+
}, un = (w, T, V = 0) => Ls(w, T).map((K) => parseInt(K, 10)).getOr(V), Vo = (w, T) => rs(w, T, Xn), rs = (w, T, V) => _e(xr(w), (K) => bs(K, T) ? V(K) ? [K] : [] : rs(K, T, V)), zo = [
|
|
48811
48813
|
"tfoot",
|
|
48812
48814
|
"thead",
|
|
48813
48815
|
"tbody",
|
|
@@ -48819,22 +48821,22 @@ Required: ` + m.join(", "));
|
|
|
48819
48821
|
element: w,
|
|
48820
48822
|
rowspan: T,
|
|
48821
48823
|
colspan: V
|
|
48822
|
-
}), Ma = (w, T, V,
|
|
48824
|
+
}), Ma = (w, T, V, K, be, Ze) => ({
|
|
48823
48825
|
element: w,
|
|
48824
48826
|
rowspan: T,
|
|
48825
48827
|
colspan: V,
|
|
48826
|
-
row:
|
|
48828
|
+
row: K,
|
|
48827
48829
|
column: be,
|
|
48828
48830
|
isLocked: Ze
|
|
48829
48831
|
}), bu = (w, T, V) => ({
|
|
48830
48832
|
element: w,
|
|
48831
48833
|
cells: T,
|
|
48832
48834
|
section: V
|
|
48833
|
-
}), Nt = (w, T, V,
|
|
48835
|
+
}), Nt = (w, T, V, K) => ({
|
|
48834
48836
|
startRow: w,
|
|
48835
48837
|
startCol: T,
|
|
48836
48838
|
finishRow: V,
|
|
48837
|
-
finishCol:
|
|
48839
|
+
finishCol: K
|
|
48838
48840
|
}), Gu = (w, T, V) => ({
|
|
48839
48841
|
element: w,
|
|
48840
48842
|
colspan: T,
|
|
@@ -48847,48 +48849,48 @@ Required: ` + m.join(", "));
|
|
|
48847
48849
|
return oe.none();
|
|
48848
48850
|
if (ro(w, vt(T)))
|
|
48849
48851
|
return oe.some(T);
|
|
48850
|
-
const
|
|
48851
|
-
return fi(T, w.join(","),
|
|
48852
|
+
const K = (be) => bs(be, "table") || V(be);
|
|
48853
|
+
return fi(T, w.join(","), K);
|
|
48852
48854
|
}, Y = (w, T) => I([
|
|
48853
48855
|
"td",
|
|
48854
48856
|
"th"
|
|
48855
48857
|
], w, T), re = (w) => Vo(w, "th,td"), Le = (w) => bs(w, "colgroup") ? Cc(w, "col") : _e(Gt(w), (T) => Cc(T, "col")), Ot = (w, T) => Ll(w, "table", T), Kn = (w) => Vo(w, "tr"), Gt = (w) => Ot(w).fold(Pt([]), (T) => Cc(T, "colgroup")), $s = (w, T) => bt(w, (V) => {
|
|
48856
48858
|
if (vt(V) === "colgroup") {
|
|
48857
|
-
const
|
|
48859
|
+
const K = bt(Le(V), (be) => {
|
|
48858
48860
|
const Ze = un(be, "span", 1);
|
|
48859
48861
|
return Fs(be, 1, Ze);
|
|
48860
48862
|
});
|
|
48861
|
-
return bu(V,
|
|
48863
|
+
return bu(V, K, "colgroup");
|
|
48862
48864
|
} else {
|
|
48863
|
-
const
|
|
48865
|
+
const K = bt(re(V), (be) => {
|
|
48864
48866
|
const Ze = un(be, "rowspan", 1), gt = un(be, "colspan", 1);
|
|
48865
48867
|
return Fs(be, Ze, gt);
|
|
48866
48868
|
});
|
|
48867
|
-
return bu(V,
|
|
48869
|
+
return bu(V, K, T(V));
|
|
48868
48870
|
}
|
|
48869
48871
|
}), lt = (w) => Ar(w).map((T) => {
|
|
48870
48872
|
const V = vt(T);
|
|
48871
48873
|
return ys(V) ? V : "tbody";
|
|
48872
48874
|
}).getOr("tbody"), as = (w) => {
|
|
48873
|
-
const T = Kn(w),
|
|
48875
|
+
const T = Kn(w), K = [
|
|
48874
48876
|
...Gt(w),
|
|
48875
48877
|
...T
|
|
48876
48878
|
];
|
|
48877
|
-
return $s(
|
|
48879
|
+
return $s(K, lt);
|
|
48878
48880
|
}, Ua = "data-snooker-locked-cols", Hs = (w) => Ls(w, Ua).bind((T) => oe.from(T.match(/\d+/g))).map((T) => Go(T, Xn)), wr = (w, T) => w + "," + T, Uc = (w, T, V) => oe.from(w.access[wr(T, V)]), fo = (w, T, V) => {
|
|
48879
|
-
const
|
|
48880
|
-
return
|
|
48881
|
+
const K = Wa(w, (be) => V(T, be.element));
|
|
48882
|
+
return K.length > 0 ? oe.some(K[0]) : oe.none();
|
|
48881
48883
|
}, Wa = (w, T) => {
|
|
48882
|
-
const V = _e(w.all, (
|
|
48884
|
+
const V = _e(w.all, (K) => K.cells);
|
|
48883
48885
|
return ss(V, T);
|
|
48884
48886
|
}, Ms = (w) => {
|
|
48885
48887
|
const T = {};
|
|
48886
48888
|
let V = 0;
|
|
48887
|
-
return z(w.cells, (
|
|
48888
|
-
const be =
|
|
48889
|
+
return z(w.cells, (K) => {
|
|
48890
|
+
const be = K.colspan;
|
|
48889
48891
|
et(be, (Ze) => {
|
|
48890
48892
|
const gt = V + Ze;
|
|
48891
|
-
T[gt] = Gu(
|
|
48893
|
+
T[gt] = Gu(K.element, be, gt);
|
|
48892
48894
|
}), V += be;
|
|
48893
48895
|
}), T;
|
|
48894
48896
|
}, pi = (w) => {
|
|
@@ -48946,33 +48948,33 @@ Required: ` + m.join(", "));
|
|
|
48946
48948
|
};
|
|
48947
48949
|
var Qi = tinymce.util.Tools.resolve("tinymce.util.Tools");
|
|
48948
48950
|
const wl = (w, T, V) => {
|
|
48949
|
-
const
|
|
48951
|
+
const K = w.select("td,th", T);
|
|
48950
48952
|
let be;
|
|
48951
|
-
for (let Ze = 0; Ze <
|
|
48952
|
-
const gt = w.getStyle(
|
|
48953
|
+
for (let Ze = 0; Ze < K.length; Ze++) {
|
|
48954
|
+
const gt = w.getStyle(K[Ze], V);
|
|
48953
48955
|
if (ft(be) && (be = gt), be !== gt)
|
|
48954
48956
|
return "";
|
|
48955
48957
|
}
|
|
48956
48958
|
return be;
|
|
48957
48959
|
}, ac = (w, T, V) => {
|
|
48958
|
-
Qi.each("left center right".split(" "), (
|
|
48959
|
-
|
|
48960
|
+
Qi.each("left center right".split(" "), (K) => {
|
|
48961
|
+
K !== V && w.formatter.remove("align" + K, {}, T);
|
|
48960
48962
|
}), V && w.formatter.apply("align" + V, {}, T);
|
|
48961
48963
|
}, wm = (w, T, V) => {
|
|
48962
|
-
Qi.each("top middle bottom".split(" "), (
|
|
48963
|
-
|
|
48964
|
+
Qi.each("top middle bottom".split(" "), (K) => {
|
|
48965
|
+
K !== V && w.formatter.remove("valign" + K, {}, T);
|
|
48964
48966
|
}), V && w.formatter.apply("valign" + V, {}, T);
|
|
48965
48967
|
}, lo = (w, T, V) => {
|
|
48966
48968
|
w.dispatch("TableModified", {
|
|
48967
48969
|
...V,
|
|
48968
48970
|
table: T
|
|
48969
48971
|
});
|
|
48970
|
-
}, zr = (w, T) => Sc(w).getOr(T), ma = (w, T, V) => zr(de(w, T), V), Mh = (w, T, V,
|
|
48971
|
-
const be = ma(w, `padding-${V}`, 0), Ze = ma(w, `padding-${
|
|
48972
|
+
}, zr = (w, T) => Sc(w).getOr(T), ma = (w, T, V) => zr(de(w, T), V), Mh = (w, T, V, K) => {
|
|
48973
|
+
const be = ma(w, `padding-${V}`, 0), Ze = ma(w, `padding-${K}`, 0), gt = ma(w, `border-${V}-width`, 0), Rt = ma(w, `border-${K}-width`, 0);
|
|
48972
48974
|
return T - be - Ze - gt - Rt;
|
|
48973
48975
|
}, Zs = (w, T) => {
|
|
48974
|
-
const V = w.dom,
|
|
48975
|
-
return T === "border-box" ?
|
|
48976
|
+
const V = w.dom, K = V.getBoundingClientRect().width || V.offsetWidth;
|
|
48977
|
+
return T === "border-box" ? K : Mh(w, K, "left", "right");
|
|
48976
48978
|
}, fa = (w) => Zs(w, "content-box");
|
|
48977
48979
|
var Ph = tinymce.util.Tools.resolve("tinymce.Env");
|
|
48978
48980
|
const Sg = "tableprops tabledelete | tableinsertrowbefore tableinsertrowafter tabledeleterow | tableinsertcolbefore tableinsertcolafter tabledeletecol", lc = et(5, (w) => {
|
|
@@ -48997,8 +48999,8 @@ Required: ` + m.join(", "));
|
|
|
48997
48999
|
value: w.toLowerCase()
|
|
48998
49000
|
})), xs = "100%", _c = (w) => {
|
|
48999
49001
|
var T;
|
|
49000
|
-
const V = w.dom,
|
|
49001
|
-
return fa(Yn.fromDom(
|
|
49002
|
+
const V = w.dom, K = (T = V.getParent(w.selection.getStart(), V.isBlock)) !== null && T !== void 0 ? T : w.getBody();
|
|
49003
|
+
return fa(Yn.fromDom(K)) + "px";
|
|
49002
49004
|
}, Za = (w, T) => Tg(w) || !Zc(w) ? T : kg(w) ? {
|
|
49003
49005
|
...T,
|
|
49004
49006
|
width: _c(w)
|
|
@@ -49061,42 +49063,42 @@ Required: ` + m.join(", "));
|
|
|
49061
49063
|
return T.isSet("table_default_attributes") ? V : bi(w, V);
|
|
49062
49064
|
}, Nh = (w, T) => T.column >= w.startCol && T.column + T.colspan - 1 <= w.finishCol && T.row >= w.startRow && T.row + T.rowspan - 1 <= w.finishRow, le = (w, T) => {
|
|
49063
49065
|
let V = !0;
|
|
49064
|
-
const
|
|
49066
|
+
const K = fe(Nh, T);
|
|
49065
49067
|
for (let be = T.startRow; be <= T.finishRow; be++)
|
|
49066
49068
|
for (let Ze = T.startCol; Ze <= T.finishCol; Ze++)
|
|
49067
|
-
V = V && Wc.getAt(w, be, Ze).exists(
|
|
49069
|
+
V = V && Wc.getAt(w, be, Ze).exists(K);
|
|
49068
49070
|
return V ? oe.some(T) : oe.none();
|
|
49069
49071
|
}, yu = (w, T) => Nt(Math.min(w.row, T.row), Math.min(w.column, T.column), Math.max(w.row + w.rowspan - 1, T.row + T.rowspan - 1), Math.max(w.column + w.colspan - 1, T.column + T.colspan - 1)), cc = (w, T, V) => {
|
|
49070
|
-
const
|
|
49071
|
-
return
|
|
49072
|
-
}, Od = (w, T, V) => cc(w, T, V).bind((
|
|
49073
|
-
const
|
|
49074
|
-
return Od(
|
|
49072
|
+
const K = Wc.findItem(w, T, Qo), be = Wc.findItem(w, V, Qo);
|
|
49073
|
+
return K.bind((Ze) => be.map((gt) => yu(Ze, gt)));
|
|
49074
|
+
}, Od = (w, T, V) => cc(w, T, V).bind((K) => le(w, K)), Ag = (w, T, V) => {
|
|
49075
|
+
const K = v1(w);
|
|
49076
|
+
return Od(K, T, V);
|
|
49075
49077
|
}, v1 = Wc.fromTable, vo = (w, T) => {
|
|
49076
|
-
Ar(w).each((
|
|
49077
|
-
|
|
49078
|
+
Ar(w).each((K) => {
|
|
49079
|
+
K.dom.insertBefore(T.dom, w.dom);
|
|
49078
49080
|
});
|
|
49079
49081
|
}, Na = (w, T) => {
|
|
49080
49082
|
mi(w).fold(() => {
|
|
49081
49083
|
Ar(w).each((be) => {
|
|
49082
49084
|
ic(be, T);
|
|
49083
49085
|
});
|
|
49084
|
-
}, (
|
|
49085
|
-
vo(
|
|
49086
|
+
}, (K) => {
|
|
49087
|
+
vo(K, T);
|
|
49086
49088
|
});
|
|
49087
49089
|
}, yi = (w, T) => {
|
|
49088
49090
|
Us(w).fold(() => {
|
|
49089
49091
|
ic(w, T);
|
|
49090
|
-
}, (
|
|
49091
|
-
w.dom.insertBefore(T.dom,
|
|
49092
|
+
}, (K) => {
|
|
49093
|
+
w.dom.insertBefore(T.dom, K.dom);
|
|
49092
49094
|
});
|
|
49093
49095
|
}, ic = (w, T) => {
|
|
49094
49096
|
w.dom.appendChild(T.dom);
|
|
49095
49097
|
}, xu = (w, T) => {
|
|
49096
49098
|
vo(w, T), ic(T, w);
|
|
49097
49099
|
}, Tc = (w, T) => {
|
|
49098
|
-
z(T, (V,
|
|
49099
|
-
const be =
|
|
49100
|
+
z(T, (V, K) => {
|
|
49101
|
+
const be = K === 0 ? w : T[K - 1];
|
|
49100
49102
|
Na(be, V);
|
|
49101
49103
|
});
|
|
49102
49104
|
}, ga = (w, T) => {
|
|
@@ -49113,11 +49115,11 @@ Required: ` + m.join(", "));
|
|
|
49113
49115
|
const V = (Ze) => {
|
|
49114
49116
|
if (!w(Ze))
|
|
49115
49117
|
throw new Error("Can only get " + T + " value of a " + T + " node");
|
|
49116
|
-
return
|
|
49117
|
-
},
|
|
49118
|
+
return K(Ze).getOr("");
|
|
49119
|
+
}, K = (Ze) => w(Ze) ? oe.from(Ze.dom.nodeValue) : oe.none();
|
|
49118
49120
|
return {
|
|
49119
49121
|
get: V,
|
|
49120
|
-
getOption:
|
|
49122
|
+
getOption: K,
|
|
49121
49123
|
set: (Ze, gt) => {
|
|
49122
49124
|
if (!w(Ze))
|
|
49123
49125
|
throw new Error("Can only set raw " + T + " value of a " + T + " node");
|
|
@@ -49158,7 +49160,7 @@ Required: ` + m.join(", "));
|
|
|
49158
49160
|
"pre",
|
|
49159
49161
|
"address"
|
|
49160
49162
|
], Rr = () => {
|
|
49161
|
-
const w = (Fn) => Yn.fromDom(Fn.dom.cloneNode(!1)), T = (Fn) => gn(Fn).dom, V = (Fn) => Nl(Fn) ? vt(Fn) === "body" ? !0 : ro(ja, vt(Fn)) : !1,
|
|
49163
|
+
const w = (Fn) => Yn.fromDom(Fn.dom.cloneNode(!1)), T = (Fn) => gn(Fn).dom, V = (Fn) => Nl(Fn) ? vt(Fn) === "body" ? !0 : ro(ja, vt(Fn)) : !1, K = (Fn) => Nl(Fn) ? ro([
|
|
49162
49164
|
"br",
|
|
49163
49165
|
"img",
|
|
49164
49166
|
"hr",
|
|
@@ -49239,35 +49241,35 @@ Required: ` + m.join(", "));
|
|
|
49239
49241
|
getText: xi,
|
|
49240
49242
|
setText: Og,
|
|
49241
49243
|
isBoundary: V,
|
|
49242
|
-
isEmptyTag:
|
|
49244
|
+
isEmptyTag: K,
|
|
49243
49245
|
isNonEditable: be
|
|
49244
49246
|
}),
|
|
49245
49247
|
eq: Qo,
|
|
49246
49248
|
is: Gi
|
|
49247
49249
|
};
|
|
49248
49250
|
};
|
|
49249
|
-
const wu = (w, T, V,
|
|
49251
|
+
const wu = (w, T, V, K) => {
|
|
49250
49252
|
const be = V[0], Ze = V.slice(1);
|
|
49251
|
-
return
|
|
49252
|
-
}, Rd = (w, T, V) => V.length > 0 ? wu(w, T, V, Ec) : oe.none(), Ec = (w, T, V,
|
|
49253
|
+
return K(w, T, be, Ze);
|
|
49254
|
+
}, Rd = (w, T, V) => V.length > 0 ? wu(w, T, V, Ec) : oe.none(), Ec = (w, T, V, K) => {
|
|
49253
49255
|
const be = T(w, V);
|
|
49254
|
-
return Ho(
|
|
49256
|
+
return Ho(K, (Ze, gt) => {
|
|
49255
49257
|
const Rt = T(w, gt);
|
|
49256
49258
|
return Ga(w, Ze, Rt);
|
|
49257
49259
|
}, be);
|
|
49258
|
-
}, Ga = (w, T, V) => T.bind((
|
|
49260
|
+
}, Ga = (w, T, V) => T.bind((K) => V.filter(fe(w.eq, K))), Rg = Rd, Ih = Rr(), Tm = (w, T) => Rg(Ih, (V, K) => w(K), T), wf = (w) => fi(w, "table"), $d = (w, T) => {
|
|
49259
49261
|
const V = Eo(w, T);
|
|
49260
49262
|
return V.length > 0 ? oe.some(V) : oe.none();
|
|
49261
|
-
}, wi = (w, T, V) => qr(w, T).bind((
|
|
49262
|
-
|
|
49263
|
+
}, wi = (w, T, V) => qr(w, T).bind((K) => qr(w, V).bind((be) => Tm(wf, [
|
|
49264
|
+
K,
|
|
49263
49265
|
be
|
|
49264
49266
|
]).map((Ze) => ({
|
|
49265
|
-
first:
|
|
49267
|
+
first: K,
|
|
49266
49268
|
last: be,
|
|
49267
49269
|
table: Ze
|
|
49268
|
-
})))), Lh = (w, T) => $d(w, T), ib = (w, T, V) => wi(w, T, V).bind((
|
|
49269
|
-
const be = (on) => Qo(w, on), Ze = "thead,tfoot,tbody,table", gt = fi(
|
|
49270
|
-
return gt.bind((on) => Rt.bind((Fn) => Qo(on, Fn) ? Ag(
|
|
49270
|
+
})))), Lh = (w, T) => $d(w, T), ib = (w, T, V) => wi(w, T, V).bind((K) => {
|
|
49271
|
+
const be = (on) => Qo(w, on), Ze = "thead,tfoot,tbody,table", gt = fi(K.first, Ze, be), Rt = fi(K.last, Ze, be);
|
|
49272
|
+
return gt.bind((on) => Rt.bind((Fn) => Qo(on, Fn) ? Ag(K.table, K.first, K.last) : oe.none()));
|
|
49271
49273
|
}), $g = (w) => bt(w, Yn.fromDom), Mg = "data-mce-selected", Xu = "td[" + Mg + "],th[" + Mg + "]", Em = "data-mce-first-selected", Md = "td[" + Em + "],th[" + Em + "]", Ps = "data-mce-last-selected", Gs = "td[" + Ps + "],th[" + Ps + "]", rl = {
|
|
49272
49274
|
selected: Mg,
|
|
49273
49275
|
selectedSelector: Xu,
|
|
@@ -49276,11 +49278,11 @@ Required: ` + m.join(", "));
|
|
|
49276
49278
|
lastSelected: Ps,
|
|
49277
49279
|
lastSelectedSelector: Gs
|
|
49278
49280
|
}, Pg = (w) => Ot(w).bind((T) => Lh(T, rl.firstSelectedSelector)).fold(Pt(w), (T) => T[0]), Fh = (w) => (T, V) => {
|
|
49279
|
-
const
|
|
49281
|
+
const K = vt(T), be = K === "col" || K === "colgroup" ? Pg(T) : T;
|
|
49280
49282
|
return Ll(be, w, V);
|
|
49281
49283
|
}, ta = Fh("th,td,caption"), tu = Fh("th,td"), al = (w) => $g(w.model.table.getSelectedCells()), Ci = (w, T) => {
|
|
49282
|
-
const V = tu(w),
|
|
49283
|
-
return Or(V,
|
|
49284
|
+
const V = tu(w), K = V.bind((be) => Ot(be)).map((be) => Kn(be));
|
|
49285
|
+
return Or(V, K, (be, Ze) => ss(Ze, (gt) => pr($g(gt.dom.cells), (Rt) => ua(Rt, T) === "1" || Qo(Rt, be)))).getOr([]);
|
|
49284
49286
|
}, Cf = [
|
|
49285
49287
|
{
|
|
49286
49288
|
text: "None",
|
|
@@ -49304,13 +49306,13 @@ Required: ` + m.join(", "));
|
|
|
49304
49306
|
}, fr = (w) => {
|
|
49305
49307
|
const T = ha(w.red) + ha(w.green) + ha(w.blue);
|
|
49306
49308
|
return Ln(T);
|
|
49307
|
-
}, zl = /^\s*rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)\s*$/i, $r = /^\s*rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?(?:\.\d+)?)\s*\)\s*$/i, Nd = (w, T, V,
|
|
49309
|
+
}, zl = /^\s*rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)\s*$/i, $r = /^\s*rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?(?:\.\d+)?)\s*\)\s*$/i, Nd = (w, T, V, K) => ({
|
|
49308
49310
|
red: w,
|
|
49309
49311
|
green: T,
|
|
49310
49312
|
blue: V,
|
|
49311
|
-
alpha:
|
|
49312
|
-
}), Ju = (w, T, V,
|
|
49313
|
-
const be = parseInt(w, 10), Ze = parseInt(T, 10), gt = parseInt(V, 10), Rt = parseFloat(
|
|
49313
|
+
alpha: K
|
|
49314
|
+
}), Ju = (w, T, V, K) => {
|
|
49315
|
+
const be = parseInt(w, 10), Ze = parseInt(T, 10), gt = parseInt(V, 10), Rt = parseFloat(K);
|
|
49314
49316
|
return Nd(be, Ze, gt, Rt);
|
|
49315
49317
|
}, sr = (w) => {
|
|
49316
49318
|
if (w === "transparent")
|
|
@@ -49325,7 +49327,7 @@ Required: ` + m.join(", "));
|
|
|
49325
49327
|
T.height = 1, T.width = 1;
|
|
49326
49328
|
const V = T.getContext("2d");
|
|
49327
49329
|
V.clearRect(0, 0, T.width, T.height), V.fillStyle = "#FFFFFF", V.fillStyle = w, V.fillRect(0, 0, 1, 1);
|
|
49328
|
-
const
|
|
49330
|
+
const K = V.getImageData(0, 0, 1, 1).data, be = K[0], Ze = K[1], gt = K[2], Rt = K[3];
|
|
49329
49331
|
return fr(Nd(be, Ze, gt, Rt));
|
|
49330
49332
|
}), Gc = (w) => sr(w).map(fr).map((T) => "#" + T.value).getOr(w), Qu = (w) => {
|
|
49331
49333
|
let T = w;
|
|
@@ -49347,10 +49349,10 @@ Required: ` + m.join(", "));
|
|
|
49347
49349
|
V(), T.set(oe.some(Rt));
|
|
49348
49350
|
}
|
|
49349
49351
|
};
|
|
49350
|
-
}, Ng = () => Cr((w) => w.unbind()), Vh = (w, T, V) => (
|
|
49352
|
+
}, Ng = () => Cr((w) => w.unbind()), Vh = (w, T, V) => (K) => {
|
|
49351
49353
|
const be = Ng(), Ze = Ji(V), gt = () => {
|
|
49352
49354
|
const Rt = al(w), on = (Fn) => w.formatter.match(T, { value: V }, Fn.dom, Ze);
|
|
49353
|
-
Ze ? (
|
|
49355
|
+
Ze ? (K.setActive(!pr(Rt, on)), be.set(w.formatter.formatChanged(T, (Fn) => K.setActive(!Fn), !0))) : (K.setActive(vn(Rt, on)), be.set(w.formatter.formatChanged(T, K.setActive, !1, { value: V })));
|
|
49354
49356
|
};
|
|
49355
49357
|
return w.initialized ? gt() : w.on("init", gt), be.clear;
|
|
49356
49358
|
}, Uo = (w) => Bo(w, "menu"), qc = (w) => bt(w, (T) => {
|
|
@@ -49362,16 +49364,16 @@ Required: ` + m.join(", "));
|
|
|
49362
49364
|
text: V,
|
|
49363
49365
|
value: T.value
|
|
49364
49366
|
};
|
|
49365
|
-
}), yo = (w, T, V,
|
|
49367
|
+
}), yo = (w, T, V, K) => bt(T, (be) => {
|
|
49366
49368
|
const Ze = be.text || be.title;
|
|
49367
49369
|
return Uo(be) ? {
|
|
49368
49370
|
type: "nestedmenuitem",
|
|
49369
49371
|
text: Ze,
|
|
49370
|
-
getSubmenuItems: () => yo(w, be.menu, V,
|
|
49372
|
+
getSubmenuItems: () => yo(w, be.menu, V, K)
|
|
49371
49373
|
} : {
|
|
49372
49374
|
text: Ze,
|
|
49373
49375
|
type: "togglemenuitem",
|
|
49374
|
-
onAction: () =>
|
|
49376
|
+
onAction: () => K(be.value),
|
|
49375
49377
|
onSetup: Vh(w, V, be.value)
|
|
49376
49378
|
};
|
|
49377
49379
|
}), ll = (w, T) => (V) => {
|
|
@@ -49379,8 +49381,8 @@ Required: ` + m.join(", "));
|
|
|
49379
49381
|
}, Su = (w) => _e(w, (T) => Uo(T) ? [{
|
|
49380
49382
|
...T,
|
|
49381
49383
|
menu: Su(T.menu)
|
|
49382
|
-
}] : xl(T.value) ? [T] : []), nu = (w, T, V,
|
|
49383
|
-
const
|
|
49384
|
+
}] : xl(T.value) ? [T] : []), nu = (w, T, V, K) => (be) => be(yo(w, T, V, K)), jn = (w, T, V) => {
|
|
49385
|
+
const K = bt(T, (be) => ({
|
|
49384
49386
|
text: be.title,
|
|
49385
49387
|
value: "#" + Wr(be.value).value,
|
|
49386
49388
|
type: "choiceitem"
|
|
@@ -49389,7 +49391,7 @@ Required: ` + m.join(", "));
|
|
|
49389
49391
|
type: "fancymenuitem",
|
|
49390
49392
|
fancytype: "colorswatch",
|
|
49391
49393
|
initData: {
|
|
49392
|
-
colors:
|
|
49394
|
+
colors: K.length > 0 ? K : void 0,
|
|
49393
49395
|
allowCustomColors: !1
|
|
49394
49396
|
},
|
|
49395
49397
|
onAction: (be) => {
|
|
@@ -49494,7 +49496,7 @@ Required: ` + m.join(", "));
|
|
|
49494
49496
|
items: Cf
|
|
49495
49497
|
}
|
|
49496
49498
|
], zh = (w) => y1.concat(Ig(w).toArray()), _f = (w, T) => {
|
|
49497
|
-
const
|
|
49499
|
+
const K = [
|
|
49498
49500
|
{
|
|
49499
49501
|
name: "borderstyle",
|
|
49500
49502
|
type: "listbox",
|
|
@@ -49522,7 +49524,7 @@ Required: ` + m.join(", "));
|
|
|
49522
49524
|
name: "borderwidth",
|
|
49523
49525
|
type: "input",
|
|
49524
49526
|
label: "Border width"
|
|
49525
|
-
}].concat(
|
|
49527
|
+
}].concat(K) : K
|
|
49526
49528
|
};
|
|
49527
49529
|
}, Am = { normal: (w, T) => {
|
|
49528
49530
|
const V = w.dom;
|
|
@@ -49547,18 +49549,18 @@ Required: ` + m.join(", "));
|
|
|
49547
49549
|
const T = ss(w, (V) => S(V.element));
|
|
49548
49550
|
return T.length === 0 ? oe.some("td") : T.length === w.length ? oe.some("th") : oe.none();
|
|
49549
49551
|
}, ge = (w) => {
|
|
49550
|
-
const T = bt(w, (be) => U(be).type), V = ro(T, "header"),
|
|
49551
|
-
if (!V && !
|
|
49552
|
+
const T = bt(w, (be) => U(be).type), V = ro(T, "header"), K = ro(T, "footer");
|
|
49553
|
+
if (!V && !K)
|
|
49552
49554
|
return oe.some("body");
|
|
49553
49555
|
{
|
|
49554
49556
|
const be = ro(T, "body");
|
|
49555
|
-
return V && !be && !
|
|
49557
|
+
return V && !be && !K ? oe.some("header") : !V && !be && K ? oe.some("footer") : oe.none();
|
|
49556
49558
|
}
|
|
49557
49559
|
}, ct = (w) => {
|
|
49558
49560
|
let T = !1, V;
|
|
49559
|
-
return (...
|
|
49560
|
-
}, qt = (w, T) => Va(w.all, (V) => Dt(V.cells, (
|
|
49561
|
-
const
|
|
49561
|
+
return (...K) => (T || (T = !0, V = w.apply(null, K)), V);
|
|
49562
|
+
}, qt = (w, T) => Va(w.all, (V) => Dt(V.cells, (K) => Qo(T, K.element))), Dn = (w, T, V) => {
|
|
49563
|
+
const K = bt(T.selection, (Ze) => Y(Ze).bind((gt) => qt(w, gt)).filter(V)), be = Lo(K);
|
|
49562
49564
|
return nr(be.length > 0, be);
|
|
49563
49565
|
}, _n = (w, T) => T.mergable, pn = (w, T) => T.unmergable, zs = (w, T) => Dn(w, T, Xn), na = (w, T) => qt(w, T).exists((V) => !V.isLocked), Ul = (w, T) => vn(T, (V) => na(w, V)), ou = (w, T) => _n(w, T).filter((V) => Ul(w, V.cells)), pa = (w, T) => pn(w, T).filter((V) => Ul(w, V));
|
|
49564
49566
|
({ ...{ generate: (w) => {
|
|
@@ -49567,11 +49569,11 @@ Required: ` + m.join(", "));
|
|
|
49567
49569
|
if (w.length === 0)
|
|
49568
49570
|
throw new Error("there must be at least one case");
|
|
49569
49571
|
const T = [], V = {};
|
|
49570
|
-
return z(w, (
|
|
49571
|
-
const Ze = Pn(
|
|
49572
|
+
return z(w, (K, be) => {
|
|
49573
|
+
const Ze = Pn(K);
|
|
49572
49574
|
if (Ze.length !== 1)
|
|
49573
49575
|
throw new Error("one and only one name per case");
|
|
49574
|
-
const gt = Ze[0], Rt =
|
|
49576
|
+
const gt = Ze[0], Rt = K[gt];
|
|
49575
49577
|
if (V[gt] !== void 0)
|
|
49576
49578
|
throw new Error("duplicate key detected:" + gt);
|
|
49577
49579
|
if (gt === "cata")
|
|
@@ -49647,15 +49649,15 @@ Required: ` + T.join(", "));
|
|
|
49647
49649
|
};
|
|
49648
49650
|
}, ku = (w) => {
|
|
49649
49651
|
const T = w[0], V = w.slice(1);
|
|
49650
|
-
return z(V, (
|
|
49652
|
+
return z(V, (K) => {
|
|
49651
49653
|
z(Pn(T), (be) => {
|
|
49652
|
-
St(
|
|
49654
|
+
St(K, (Ze, gt) => {
|
|
49653
49655
|
const Rt = T[be];
|
|
49654
49656
|
Rt !== "" && be === gt && Rt !== Ze && (T[be] = "");
|
|
49655
49657
|
});
|
|
49656
49658
|
});
|
|
49657
49659
|
}), T;
|
|
49658
|
-
}, Mr = (w, T, V,
|
|
49660
|
+
}, Mr = (w, T, V, K) => Dt(w, (be) => !ft(V.formatter.matchNode(K, T + be))).getOr(""), td = fe(Mr, [
|
|
49659
49661
|
"left",
|
|
49660
49662
|
"center",
|
|
49661
49663
|
"right"
|
|
@@ -49664,7 +49666,7 @@ Required: ` + T.join(", "));
|
|
|
49664
49666
|
"middle",
|
|
49665
49667
|
"bottom"
|
|
49666
49668
|
], "valign"), ba = (w, T) => {
|
|
49667
|
-
const V = Eg(w),
|
|
49669
|
+
const V = Eg(w), K = Yu(w), be = () => ({
|
|
49668
49670
|
borderstyle: Xt(V, "border-style").getOr(""),
|
|
49669
49671
|
bordercolor: su(Xt(V, "border-color").getOr("")),
|
|
49670
49672
|
backgroundcolor: su(Xt(V, "background-color").getOr(""))
|
|
@@ -49679,9 +49681,9 @@ Required: ` + T.join(", "));
|
|
|
49679
49681
|
border: ""
|
|
49680
49682
|
}, gt = () => {
|
|
49681
49683
|
const rr = V["border-width"];
|
|
49682
|
-
return Zc(w) && rr ? { border: rr } : Xt(
|
|
49684
|
+
return Zc(w) && rr ? { border: rr } : Xt(K, "border").fold(() => ({}), (Mo) => ({ border: Mo }));
|
|
49683
49685
|
}, Rt = T ? be() : {}, on = () => {
|
|
49684
|
-
const rr = Xt(V, "border-spacing").or(Xt(
|
|
49686
|
+
const rr = Xt(V, "border-spacing").or(Xt(K, "cellspacing")).fold(() => ({}), (Ns) => ({ cellspacing: Ns })), Mo = Xt(V, "border-padding").or(Xt(K, "cellpadding")).fold(() => ({}), (Ns) => ({ cellpadding: Ns }));
|
|
49685
49687
|
return {
|
|
49686
49688
|
...rr,
|
|
49687
49689
|
...Mo
|
|
@@ -49690,7 +49692,7 @@ Required: ` + T.join(", "));
|
|
|
49690
49692
|
return {
|
|
49691
49693
|
...Ze,
|
|
49692
49694
|
...V,
|
|
49693
|
-
...
|
|
49695
|
+
...K,
|
|
49694
49696
|
...Rt,
|
|
49695
49697
|
...gt(),
|
|
49696
49698
|
...on()
|
|
@@ -49699,7 +49701,7 @@ Required: ` + T.join(", "));
|
|
|
49699
49701
|
const V = { selection: $g(w.cells) };
|
|
49700
49702
|
return Wt(T, V);
|
|
49701
49703
|
}).getOr(""), Uh = (w, T, V) => {
|
|
49702
|
-
const
|
|
49704
|
+
const K = (Rt, on) => {
|
|
49703
49705
|
const Fn = Ne(Yn.fromDom(on), "border-width");
|
|
49704
49706
|
return Zc(w) && Fn.isSome() ? Fn.getOr("") : Rt.getAttrib(on, "border") || wl(w.dom, on, "border-width") || wl(w.dom, on, "border") || "";
|
|
49705
49707
|
}, be = w.dom, Ze = Zc(w) ? be.getStyle(T, "border-spacing") || be.getAttrib(T, "cellspacing") : be.getAttrib(T, "cellspacing") || be.getStyle(T, "border-spacing"), gt = Zc(w) ? wl(be, T, "padding") || be.getAttrib(T, "cellpadding") : be.getAttrib(T, "cellpadding") || wl(be, T, "padding");
|
|
@@ -49708,23 +49710,23 @@ Required: ` + T.join(", "));
|
|
|
49708
49710
|
height: be.getStyle(T, "height") || be.getAttrib(T, "height"),
|
|
49709
49711
|
cellspacing: Ze ?? "",
|
|
49710
49712
|
cellpadding: gt ?? "",
|
|
49711
|
-
border:
|
|
49713
|
+
border: K(be, T),
|
|
49712
49714
|
caption: !!be.select("caption", T)[0],
|
|
49713
49715
|
class: be.getAttrib(T, "class", ""),
|
|
49714
49716
|
align: td(w, T),
|
|
49715
49717
|
...V ? ub(T) : {}
|
|
49716
49718
|
};
|
|
49717
49719
|
}, Tu = (w, T, V) => {
|
|
49718
|
-
const
|
|
49720
|
+
const K = w.dom;
|
|
49719
49721
|
return {
|
|
49720
|
-
height:
|
|
49721
|
-
class:
|
|
49722
|
+
height: K.getStyle(T, "height") || K.getAttrib(T, "height"),
|
|
49723
|
+
class: K.getAttrib(T, "class", ""),
|
|
49722
49724
|
type: ru(T),
|
|
49723
49725
|
align: td(w, T),
|
|
49724
49726
|
...V ? ub(T) : {}
|
|
49725
49727
|
};
|
|
49726
|
-
}, db = (w, T, V,
|
|
49727
|
-
const be = w.dom, Ze =
|
|
49728
|
+
}, db = (w, T, V, K) => {
|
|
49729
|
+
const be = w.dom, Ze = K.getOr(T), gt = (Rt, on) => be.getStyle(Rt, on) || be.getAttrib(Rt, on);
|
|
49728
49730
|
return {
|
|
49729
49731
|
width: gt(Ze, "width"),
|
|
49730
49732
|
height: gt(T, "height"),
|
|
@@ -49736,48 +49738,48 @@ Required: ` + T.join(", "));
|
|
|
49736
49738
|
...V ? ub(T) : {}
|
|
49737
49739
|
};
|
|
49738
49740
|
}, Hg = (w, T) => {
|
|
49739
|
-
const V = Wc.fromTable(w),
|
|
49741
|
+
const V = Wc.fromTable(w), K = Wc.justCells(V), be = ss(K, (Ze) => pr(T, (gt) => Qo(Ze.element, gt)));
|
|
49740
49742
|
return bt(be, (Ze) => ({
|
|
49741
49743
|
element: Ze.element.dom,
|
|
49742
49744
|
column: Wc.getColumnAt(V, Ze.column).map((gt) => gt.element.dom)
|
|
49743
49745
|
}));
|
|
49744
|
-
}, it = (w, T, V,
|
|
49745
|
-
|
|
49746
|
+
}, it = (w, T, V, K) => {
|
|
49747
|
+
K("scope") && w.setAttrib("scope", V.scope), K("class") && w.setAttrib("class", V.class), K("height") && w.setStyle("height", vs(V.height)), K("width") && T.setStyle("width", vs(V.width));
|
|
49746
49748
|
}, mb = (w, T, V) => {
|
|
49747
49749
|
V("backgroundcolor") && w.setFormat("tablecellbackgroundcolor", T.backgroundcolor), V("bordercolor") && w.setFormat("tablecellbordercolor", T.bordercolor), V("borderstyle") && w.setFormat("tablecellborderstyle", T.borderstyle), V("borderwidth") && w.setFormat("tablecellborderwidth", vs(T.borderwidth));
|
|
49748
|
-
}, Bd = (w, T, V,
|
|
49750
|
+
}, Bd = (w, T, V, K) => {
|
|
49749
49751
|
const be = T.length === 1;
|
|
49750
49752
|
z(T, (Ze) => {
|
|
49751
|
-
const gt = Ze.element, Rt = be ? Xn :
|
|
49752
|
-
it(on, Fn, V, Rt), xf(w) && mb(on, V, Rt),
|
|
49753
|
+
const gt = Ze.element, Rt = be ? Xn : K, on = Am.normal(w, gt), Fn = Ze.column.map((rr) => Am.normal(w, rr)).getOr(on);
|
|
49754
|
+
it(on, Fn, V, Rt), xf(w) && mb(on, V, Rt), K("halign") && ac(w, gt, V.halign), K("valign") && wm(w, gt, V.valign);
|
|
49753
49755
|
});
|
|
49754
49756
|
}, nd = (w, T) => {
|
|
49755
49757
|
w.execCommand("mceTableCellType", !1, {
|
|
49756
49758
|
type: T.celltype,
|
|
49757
49759
|
no_events: !0
|
|
49758
49760
|
});
|
|
49759
|
-
}, Vg = (w, T, V,
|
|
49760
|
-
const be = Ro(
|
|
49761
|
+
}, Vg = (w, T, V, K) => {
|
|
49762
|
+
const be = Ro(K, (Ze, gt) => V[gt] !== Ze);
|
|
49761
49763
|
A(be) > 0 && T.length >= 1 && Ot(T[0]).each((Ze) => {
|
|
49762
49764
|
const gt = Hg(Ze, T), Rt = A(Ro(be, (Fn, rr) => rr !== "scope" && rr !== "celltype")) > 0, on = nt(be, "celltype");
|
|
49763
|
-
(Rt || nt(be, "scope")) && Bd(w, gt,
|
|
49765
|
+
(Rt || nt(be, "scope")) && Bd(w, gt, K, fe(nt, be)), on && nd(w, K), lo(w, Ze.dom, {
|
|
49764
49766
|
structure: on,
|
|
49765
49767
|
style: Rt
|
|
49766
49768
|
});
|
|
49767
49769
|
});
|
|
49768
|
-
}, qs = (w, T, V,
|
|
49769
|
-
const be =
|
|
49770
|
-
|
|
49770
|
+
}, qs = (w, T, V, K) => {
|
|
49771
|
+
const be = K.getData();
|
|
49772
|
+
K.close(), w.undoManager.transact(() => {
|
|
49771
49773
|
Vg(w, T, V, be), w.focus();
|
|
49772
49774
|
});
|
|
49773
49775
|
}, ls = (w, T) => {
|
|
49774
|
-
const V = Ot(T[0]).map((
|
|
49776
|
+
const V = Ot(T[0]).map((K) => bt(Hg(K, T), (be) => db(w, be.element, xf(w), be.column)));
|
|
49775
49777
|
return ku(V.getOrDie());
|
|
49776
49778
|
}, Sl = (w) => {
|
|
49777
49779
|
const T = al(w);
|
|
49778
49780
|
if (T.length === 0)
|
|
49779
49781
|
return;
|
|
49780
|
-
const V = ls(w, T),
|
|
49782
|
+
const V = ls(w, T), K = {
|
|
49781
49783
|
type: "tabpanel",
|
|
49782
49784
|
tabs: [
|
|
49783
49785
|
{
|
|
@@ -49798,7 +49800,7 @@ Required: ` + T.join(", "));
|
|
|
49798
49800
|
w.windowManager.open({
|
|
49799
49801
|
title: "Cell Properties",
|
|
49800
49802
|
size: "normal",
|
|
49801
|
-
body: xf(w) ?
|
|
49803
|
+
body: xf(w) ? K : be,
|
|
49802
49804
|
buttons: [
|
|
49803
49805
|
{
|
|
49804
49806
|
type: "cancel",
|
|
@@ -49875,36 +49877,36 @@ Required: ` + T.join(", "));
|
|
|
49875
49877
|
V("class") && w.setAttrib("class", T.class), V("height") && w.setStyle("height", vs(T.height));
|
|
49876
49878
|
}, gr = (w, T, V) => {
|
|
49877
49879
|
V("backgroundcolor") && w.setStyle("background-color", T.backgroundcolor), V("bordercolor") && w.setStyle("border-color", T.bordercolor), V("borderstyle") && w.setStyle("border-style", T.borderstyle);
|
|
49878
|
-
}, Wh = (w, T, V,
|
|
49879
|
-
const Ze = T.length === 1 ? Xn :
|
|
49880
|
+
}, Wh = (w, T, V, K) => {
|
|
49881
|
+
const Ze = T.length === 1 ? Xn : K;
|
|
49880
49882
|
z(T, (gt) => {
|
|
49881
49883
|
const Rt = Am.normal(w, gt);
|
|
49882
|
-
Ba(Rt, V, Ze), Cm(w) && gr(Rt, V, Ze),
|
|
49884
|
+
Ba(Rt, V, Ze), Cm(w) && gr(Rt, V, Ze), K("align") && ac(w, gt, V.align);
|
|
49883
49885
|
});
|
|
49884
49886
|
}, tt = (w, T) => {
|
|
49885
49887
|
w.execCommand("mceTableRowType", !1, {
|
|
49886
49888
|
type: T.type,
|
|
49887
49889
|
no_events: !0
|
|
49888
49890
|
});
|
|
49889
|
-
}, dc = (w, T, V,
|
|
49890
|
-
const be = Ro(
|
|
49891
|
+
}, dc = (w, T, V, K) => {
|
|
49892
|
+
const be = Ro(K, (Ze, gt) => V[gt] !== Ze);
|
|
49891
49893
|
if (A(be) > 0) {
|
|
49892
49894
|
const Ze = nt(be, "type"), gt = Ze ? A(be) > 1 : !0;
|
|
49893
|
-
gt && Wh(w, T,
|
|
49895
|
+
gt && Wh(w, T, K, fe(nt, be)), Ze && tt(w, K), Ot(Yn.fromDom(T[0])).each((Rt) => lo(w, Rt.dom, {
|
|
49894
49896
|
structure: Ze,
|
|
49895
49897
|
style: gt
|
|
49896
49898
|
}));
|
|
49897
49899
|
}
|
|
49898
|
-
}, zg = (w, T, V,
|
|
49899
|
-
const be =
|
|
49900
|
-
|
|
49900
|
+
}, zg = (w, T, V, K) => {
|
|
49901
|
+
const be = K.getData();
|
|
49902
|
+
K.close(), w.undoManager.transact(() => {
|
|
49901
49903
|
dc(w, T, V, be), w.focus();
|
|
49902
49904
|
});
|
|
49903
49905
|
}, Ao = (w) => {
|
|
49904
49906
|
const T = Ci(ks(w), rl.selected);
|
|
49905
49907
|
if (T.length === 0)
|
|
49906
49908
|
return;
|
|
49907
|
-
const V = bt(T, (gt) => Tu(w, gt.dom, Cm(w))),
|
|
49909
|
+
const V = bt(T, (gt) => Tu(w, gt.dom, Cm(w))), K = ku(V), be = {
|
|
49908
49910
|
type: "tabpanel",
|
|
49909
49911
|
tabs: [
|
|
49910
49912
|
{
|
|
@@ -49939,11 +49941,11 @@ Required: ` + T.join(", "));
|
|
|
49939
49941
|
primary: !0
|
|
49940
49942
|
}
|
|
49941
49943
|
],
|
|
49942
|
-
initialData:
|
|
49943
|
-
onSubmit: fe(zg, w, bt(T, (gt) => gt.dom),
|
|
49944
|
+
initialData: K,
|
|
49945
|
+
onSubmit: fe(zg, w, bt(T, (gt) => gt.dom), K)
|
|
49944
49946
|
});
|
|
49945
49947
|
}, au = (w, T, V) => {
|
|
49946
|
-
const
|
|
49948
|
+
const K = V ? [
|
|
49947
49949
|
{
|
|
49948
49950
|
type: "input",
|
|
49949
49951
|
name: "cols",
|
|
@@ -50022,18 +50024,18 @@ Required: ` + T.join(", "));
|
|
|
50022
50024
|
label: "Class",
|
|
50023
50025
|
items: T
|
|
50024
50026
|
}] : [];
|
|
50025
|
-
return
|
|
50026
|
-
}, fb = (w, T, V,
|
|
50027
|
+
return K.concat(be).concat(Ze).concat(gt).concat(Rt);
|
|
50028
|
+
}, fb = (w, T, V, K) => {
|
|
50027
50029
|
if (T.tagName === "TD" || T.tagName === "TH")
|
|
50028
|
-
Ee(V) && xn(
|
|
50030
|
+
Ee(V) && xn(K) ? w.setStyle(T, V, K) : w.setStyles(T, V);
|
|
50029
50031
|
else if (T.children)
|
|
50030
50032
|
for (let be = 0; be < T.children.length; be++)
|
|
50031
|
-
fb(w, T.children[be], V,
|
|
50032
|
-
}, lu = (w, T, V,
|
|
50033
|
+
fb(w, T.children[be], V, K);
|
|
50034
|
+
}, lu = (w, T, V, K) => {
|
|
50033
50035
|
const be = w.dom, Ze = {}, gt = {}, Rt = Zc(w), on = ol(w);
|
|
50034
50036
|
if (ft(V.class) || (Ze.class = V.class), gt.height = vs(V.height), Rt ? gt.width = vs(V.width) : be.getAttrib(T, "width") && (Ze.width = Yi(V.width)), Rt ? (gt["border-width"] = vs(V.border), gt["border-spacing"] = vs(V.cellspacing)) : (Ze.border = V.border, Ze.cellpadding = V.cellpadding, Ze.cellspacing = V.cellspacing), Rt && T.children) {
|
|
50035
50037
|
const Fn = {};
|
|
50036
|
-
if (
|
|
50038
|
+
if (K.border && (Fn["border-width"] = vs(V.border)), K.cellpadding && (Fn.padding = vs(V.cellpadding)), on && K.bordercolor && (Fn["border-color"] = V.bordercolor), !fn(Fn))
|
|
50037
50039
|
for (let rr = 0; rr < T.children.length; rr++)
|
|
50038
50040
|
fb(be, T.children[rr], Fn);
|
|
50039
50041
|
}
|
|
@@ -50048,9 +50050,9 @@ Required: ` + T.join(", "));
|
|
|
50048
50050
|
...Yu(w),
|
|
50049
50051
|
...Ze
|
|
50050
50052
|
});
|
|
50051
|
-
}, x1 = (w, T, V,
|
|
50052
|
-
const be = w.dom, Ze =
|
|
50053
|
-
|
|
50053
|
+
}, x1 = (w, T, V, K) => {
|
|
50054
|
+
const be = w.dom, Ze = K.getData(), gt = Ro(Ze, (Rt, on) => V[on] !== Rt);
|
|
50055
|
+
K.close(), Ze.class === "" && delete Ze.class, w.undoManager.transact(() => {
|
|
50054
50056
|
if (!T) {
|
|
50055
50057
|
const Rt = $a(Ze.cols).getOr(1), on = $a(Ze.rows).getOr(1);
|
|
50056
50058
|
w.execCommand("mceInsertTable", !1, {
|
|
@@ -50078,8 +50080,8 @@ Required: ` + T.join(", "));
|
|
|
50078
50080
|
});
|
|
50079
50081
|
}, Si = (w, T) => {
|
|
50080
50082
|
const V = w.dom;
|
|
50081
|
-
let
|
|
50082
|
-
T ? (be.cols = "1", be.rows = "1", ol(w) && (be.borderstyle = "", be.bordercolor = "", be.backgroundcolor = "")) : (
|
|
50083
|
+
let K, be = ba(w, ol(w));
|
|
50084
|
+
T ? (be.cols = "1", be.rows = "1", ol(w) && (be.borderstyle = "", be.bordercolor = "", be.backgroundcolor = "")) : (K = V.getParent(w.selection.getStart(), "table", w.getBody()), K ? be = Uh(w, K, ol(w)) : ol(w) && (be.borderstyle = "", be.bordercolor = "", be.backgroundcolor = ""));
|
|
50083
50085
|
const Ze = qc(km(w));
|
|
50084
50086
|
Ze.length > 0 && be.class && (be.class = be.class.replace(/\s*mce\-item\-table\s*/g, ""));
|
|
50085
50087
|
const gt = {
|
|
@@ -50104,7 +50106,7 @@ Required: ` + T.join(", "));
|
|
|
50104
50106
|
title: "Table Properties",
|
|
50105
50107
|
size: "normal",
|
|
50106
50108
|
body: Fn,
|
|
50107
|
-
onSubmit: fe(x1, w,
|
|
50109
|
+
onSubmit: fe(x1, w, K, be),
|
|
50108
50110
|
buttons: [
|
|
50109
50111
|
{
|
|
50110
50112
|
type: "cancel",
|
|
@@ -50129,12 +50131,12 @@ Required: ` + T.join(", "));
|
|
|
50129
50131
|
mceTableRowProps: fe(Ao, w),
|
|
50130
50132
|
mceTableCellProps: fe(Sl, w),
|
|
50131
50133
|
mceInsertTableDialog: fe(Si, w, !0)
|
|
50132
|
-
}, (V,
|
|
50134
|
+
}, (V, K) => w.addCommand(K, () => T(V)));
|
|
50133
50135
|
}, Ac = (w, T) => Te(w, T).isSome(), Fo = ur, Eu = (w) => {
|
|
50134
|
-
const T = (
|
|
50136
|
+
const T = (K, be) => Ls(K, be).exists((Ze) => parseInt(Ze, 10) > 1), V = (K) => T(K, "rowspan") || T(K, "colspan");
|
|
50135
50137
|
return w.length > 0 && vn(w, V) ? oe.some(w) : oe.none();
|
|
50136
|
-
}, Dm = (w, T, V) => T.length <= 1 ? oe.none() : ib(w, V.firstSelectedSelector, V.lastSelectedSelector).map((
|
|
50137
|
-
bounds:
|
|
50138
|
+
}, Dm = (w, T, V) => T.length <= 1 ? oe.none() : ib(w, V.firstSelectedSelector, V.lastSelectedSelector).map((K) => ({
|
|
50139
|
+
bounds: K,
|
|
50138
50140
|
cells: T
|
|
50139
50141
|
})), Ia = (w) => ({
|
|
50140
50142
|
element: w,
|
|
@@ -50148,8 +50150,8 @@ Required: ` + T.join(", "));
|
|
|
50148
50150
|
selection: Fo(w)
|
|
50149
50151
|
}), Om = (w) => {
|
|
50150
50152
|
const T = Qu(oe.none()), V = Qu([]);
|
|
50151
|
-
let
|
|
50152
|
-
const be = bl("caption"), Ze = (Do) =>
|
|
50153
|
+
let K = oe.none();
|
|
50154
|
+
const be = bl("caption"), Ze = (Do) => K.forall((no) => !no[Do]), gt = () => ta(ks(w), nl(w)), Rt = () => ta(za(w), nl(w)), on = () => gt().bind((Do) => da(Or(Ot(Do), Rt().bind(Ot), (no, va) => Qo(no, va) ? be(Do) ? oe.some(Ia(Do)) : oe.some(C1(al(w), no, Do)) : oe.none()))), Fn = (Do) => Ot(Do.element).map((va) => {
|
|
50153
50155
|
const il = Wc.fromTable(va), S1 = zs(il, Do).getOr([]), od = Zi(S1, (ul, Pm) => (Pm.isLocked && (ul.onAny = !0, Pm.column === 0 ? ul.onFirst = !0 : Pm.column + Pm.colspan >= il.grid.columns && (ul.onLast = !0)), ul), {
|
|
50154
50156
|
onAny: !1,
|
|
50155
50157
|
onFirst: !1,
|
|
@@ -50161,7 +50163,7 @@ Required: ` + T.join(", "));
|
|
|
50161
50163
|
locked: od
|
|
50162
50164
|
};
|
|
50163
50165
|
}), rr = () => {
|
|
50164
|
-
T.set(ct(on)()),
|
|
50166
|
+
T.set(ct(on)()), K = T.get().bind(Fn), z(V.get(), Tt);
|
|
50165
50167
|
}, Mo = (Do) => (Do(), V.set(V.get().concat([Do])), () => {
|
|
50166
50168
|
V.set(ss(V.get(), (no) => no !== Do));
|
|
50167
50169
|
}), Ns = (Do, no) => Mo(() => T.get().fold(() => {
|
|
@@ -50172,7 +50174,7 @@ Required: ` + T.join(", "));
|
|
|
50172
50174
|
Do.setEnabled(!1), Do.setActive(!1);
|
|
50173
50175
|
}, (il) => {
|
|
50174
50176
|
Do.setEnabled(!no(il) && w.selection.isEditable()), Do.setActive(va(il));
|
|
50175
|
-
})), Gl = (Do) =>
|
|
50177
|
+
})), Gl = (Do) => K.exists((no) => no.locked[Do]), Xc = (Do) => Ns(Do, (no) => !1), Ld = (Do) => Ns(Do, (no) => be(no.element)), cu = (Do) => (no) => Ns(no, (va) => be(va.element) || Gl(Do)), Ug = (Do) => (no) => Ns(no, (va) => be(va.element) || Do().isNone()), Tf = (Do, no) => (va) => Ns(va, (il) => be(il.element) || Do().isNone() || Gl(no)), $m = (Do) => Ns(Do, (no) => Ze("mergeable")), Wg = (Do) => Ns(Do, (no) => Ze("unmergeable")), Zr = (Do) => mc(Do, Ea, (no) => Ot(no.element, nl(w)).exists((il) => Ac(il, "caption"))), Jc = (Do, no) => (va) => mc(va, (il) => be(il.element), () => w.queryCommandValue(Do) === no), Ef = Jc("mceTableRowType", "header"), Mm = Jc("mceTableColType", "th");
|
|
50176
50178
|
return w.on("NodeChange ExecCommand TableSelectorChange", rr), {
|
|
50177
50179
|
onSetupTable: Xc,
|
|
50178
50180
|
onSetupCellOrRow: Ld,
|
|
@@ -50192,7 +50194,7 @@ Required: ` + T.join(", "));
|
|
|
50192
50194
|
const _l = "x-tinymce/dom-table-", Id = _l + "rows", Re = _l + "columns", Wl = (w) => {
|
|
50193
50195
|
var T;
|
|
50194
50196
|
const V = (T = Rm.read()) !== null && T !== void 0 ? T : [];
|
|
50195
|
-
return Va(V, (
|
|
50197
|
+
return Va(V, (K) => oe.from(K.getType(w)));
|
|
50196
50198
|
}, Kc = () => Wl(Id), Yc = () => Wl(Re), Zl = (w) => (T) => {
|
|
50197
50199
|
const V = () => {
|
|
50198
50200
|
T.setEnabled(w.selection.isEditable());
|
|
@@ -50207,7 +50209,7 @@ Required: ` + T.join(", "));
|
|
|
50207
50209
|
onSetup: Zl(w),
|
|
50208
50210
|
fetch: (Rt) => Rt("inserttable | cell row column | advtablesort | tableprops deletetable")
|
|
50209
50211
|
});
|
|
50210
|
-
const V = (Rt) => () => w.execCommand(Rt),
|
|
50212
|
+
const V = (Rt) => () => w.execCommand(Rt), K = (Rt, on) => {
|
|
50211
50213
|
w.queryCommandSupported(on.command) && w.ui.registry.addButton(Rt, {
|
|
50212
50214
|
...on,
|
|
50213
50215
|
onAction: zn(on.onAction) ? on.onAction : V(on.command)
|
|
@@ -50218,107 +50220,107 @@ Required: ` + T.join(", "));
|
|
|
50218
50220
|
onAction: zn(on.onAction) ? on.onAction : V(on.command)
|
|
50219
50221
|
});
|
|
50220
50222
|
};
|
|
50221
|
-
|
|
50223
|
+
K("tableprops", {
|
|
50222
50224
|
tooltip: "Table properties",
|
|
50223
50225
|
command: "mceTableProps",
|
|
50224
50226
|
icon: "table",
|
|
50225
50227
|
onSetup: T.onSetupTable
|
|
50226
|
-
}),
|
|
50228
|
+
}), K("tabledelete", {
|
|
50227
50229
|
tooltip: "Delete table",
|
|
50228
50230
|
command: "mceTableDelete",
|
|
50229
50231
|
icon: "table-delete-table",
|
|
50230
50232
|
onSetup: T.onSetupTable
|
|
50231
|
-
}),
|
|
50233
|
+
}), K("tablecellprops", {
|
|
50232
50234
|
tooltip: "Cell properties",
|
|
50233
50235
|
command: "mceTableCellProps",
|
|
50234
50236
|
icon: "table-cell-properties",
|
|
50235
50237
|
onSetup: T.onSetupCellOrRow
|
|
50236
|
-
}),
|
|
50238
|
+
}), K("tablemergecells", {
|
|
50237
50239
|
tooltip: "Merge cells",
|
|
50238
50240
|
command: "mceTableMergeCells",
|
|
50239
50241
|
icon: "table-merge-cells",
|
|
50240
50242
|
onSetup: T.onSetupMergeable
|
|
50241
|
-
}),
|
|
50243
|
+
}), K("tablesplitcells", {
|
|
50242
50244
|
tooltip: "Split cell",
|
|
50243
50245
|
command: "mceTableSplitCells",
|
|
50244
50246
|
icon: "table-split-cells",
|
|
50245
50247
|
onSetup: T.onSetupUnmergeable
|
|
50246
|
-
}),
|
|
50248
|
+
}), K("tableinsertrowbefore", {
|
|
50247
50249
|
tooltip: "Insert row before",
|
|
50248
50250
|
command: "mceTableInsertRowBefore",
|
|
50249
50251
|
icon: "table-insert-row-above",
|
|
50250
50252
|
onSetup: T.onSetupCellOrRow
|
|
50251
|
-
}),
|
|
50253
|
+
}), K("tableinsertrowafter", {
|
|
50252
50254
|
tooltip: "Insert row after",
|
|
50253
50255
|
command: "mceTableInsertRowAfter",
|
|
50254
50256
|
icon: "table-insert-row-after",
|
|
50255
50257
|
onSetup: T.onSetupCellOrRow
|
|
50256
|
-
}),
|
|
50258
|
+
}), K("tabledeleterow", {
|
|
50257
50259
|
tooltip: "Delete row",
|
|
50258
50260
|
command: "mceTableDeleteRow",
|
|
50259
50261
|
icon: "table-delete-row",
|
|
50260
50262
|
onSetup: T.onSetupCellOrRow
|
|
50261
|
-
}),
|
|
50263
|
+
}), K("tablerowprops", {
|
|
50262
50264
|
tooltip: "Row properties",
|
|
50263
50265
|
command: "mceTableRowProps",
|
|
50264
50266
|
icon: "table-row-properties",
|
|
50265
50267
|
onSetup: T.onSetupCellOrRow
|
|
50266
|
-
}),
|
|
50268
|
+
}), K("tableinsertcolbefore", {
|
|
50267
50269
|
tooltip: "Insert column before",
|
|
50268
50270
|
command: "mceTableInsertColBefore",
|
|
50269
50271
|
icon: "table-insert-column-before",
|
|
50270
50272
|
onSetup: T.onSetupColumn("onFirst")
|
|
50271
|
-
}),
|
|
50273
|
+
}), K("tableinsertcolafter", {
|
|
50272
50274
|
tooltip: "Insert column after",
|
|
50273
50275
|
command: "mceTableInsertColAfter",
|
|
50274
50276
|
icon: "table-insert-column-after",
|
|
50275
50277
|
onSetup: T.onSetupColumn("onLast")
|
|
50276
|
-
}),
|
|
50278
|
+
}), K("tabledeletecol", {
|
|
50277
50279
|
tooltip: "Delete column",
|
|
50278
50280
|
command: "mceTableDeleteCol",
|
|
50279
50281
|
icon: "table-delete-column",
|
|
50280
50282
|
onSetup: T.onSetupColumn("onAny")
|
|
50281
|
-
}),
|
|
50283
|
+
}), K("tablecutrow", {
|
|
50282
50284
|
tooltip: "Cut row",
|
|
50283
50285
|
command: "mceTableCutRow",
|
|
50284
50286
|
icon: "cut-row",
|
|
50285
50287
|
onSetup: T.onSetupCellOrRow
|
|
50286
|
-
}),
|
|
50288
|
+
}), K("tablecopyrow", {
|
|
50287
50289
|
tooltip: "Copy row",
|
|
50288
50290
|
command: "mceTableCopyRow",
|
|
50289
50291
|
icon: "duplicate-row",
|
|
50290
50292
|
onSetup: T.onSetupCellOrRow
|
|
50291
|
-
}),
|
|
50293
|
+
}), K("tablepasterowbefore", {
|
|
50292
50294
|
tooltip: "Paste row before",
|
|
50293
50295
|
command: "mceTablePasteRowBefore",
|
|
50294
50296
|
icon: "paste-row-before",
|
|
50295
50297
|
onSetup: T.onSetupPasteable(Kc)
|
|
50296
|
-
}),
|
|
50298
|
+
}), K("tablepasterowafter", {
|
|
50297
50299
|
tooltip: "Paste row after",
|
|
50298
50300
|
command: "mceTablePasteRowAfter",
|
|
50299
50301
|
icon: "paste-row-after",
|
|
50300
50302
|
onSetup: T.onSetupPasteable(Kc)
|
|
50301
|
-
}),
|
|
50303
|
+
}), K("tablecutcol", {
|
|
50302
50304
|
tooltip: "Cut column",
|
|
50303
50305
|
command: "mceTableCutCol",
|
|
50304
50306
|
icon: "cut-column",
|
|
50305
50307
|
onSetup: T.onSetupColumn("onAny")
|
|
50306
|
-
}),
|
|
50308
|
+
}), K("tablecopycol", {
|
|
50307
50309
|
tooltip: "Copy column",
|
|
50308
50310
|
command: "mceTableCopyCol",
|
|
50309
50311
|
icon: "duplicate-column",
|
|
50310
50312
|
onSetup: T.onSetupColumn("onAny")
|
|
50311
|
-
}),
|
|
50313
|
+
}), K("tablepastecolbefore", {
|
|
50312
50314
|
tooltip: "Paste column before",
|
|
50313
50315
|
command: "mceTablePasteColBefore",
|
|
50314
50316
|
icon: "paste-column-before",
|
|
50315
50317
|
onSetup: T.onSetupPasteableColumn(Yc, "onFirst")
|
|
50316
|
-
}),
|
|
50318
|
+
}), K("tablepastecolafter", {
|
|
50317
50319
|
tooltip: "Paste column after",
|
|
50318
50320
|
command: "mceTablePasteColAfter",
|
|
50319
50321
|
icon: "paste-column-after",
|
|
50320
50322
|
onSetup: T.onSetupPasteableColumn(Yc, "onLast")
|
|
50321
|
-
}),
|
|
50323
|
+
}), K("tableinsertdialog", {
|
|
50322
50324
|
tooltip: "Insert table",
|
|
50323
50325
|
command: "mceInsertTableDialog",
|
|
50324
50326
|
icon: "table",
|
|
@@ -50381,7 +50383,7 @@ Required: ` + T.join(", "));
|
|
|
50381
50383
|
onSetup: T.onSetupTableColumnHeaders
|
|
50382
50384
|
});
|
|
50383
50385
|
}, oa = (w) => {
|
|
50384
|
-
const T = (
|
|
50386
|
+
const T = (K) => w.dom.is(K, "table") && w.getBody().contains(K) && w.dom.isEditable(K.parentNode), V = vi(w);
|
|
50385
50387
|
V.length > 0 && w.ui.registry.addContextToolbar("table", {
|
|
50386
50388
|
predicate: T,
|
|
50387
50389
|
items: V,
|
|
@@ -50396,7 +50398,7 @@ Required: ` + T.join(", "));
|
|
|
50396
50398
|
w.off("NodeChange", V);
|
|
50397
50399
|
};
|
|
50398
50400
|
}, jl = (w, T) => {
|
|
50399
|
-
const V = (Mo) => () => w.execCommand(Mo),
|
|
50401
|
+
const V = (Mo) => () => w.execCommand(Mo), K = (Mo, Ns) => w.queryCommandSupported(Ns.command) ? (w.ui.registry.addMenuItem(Mo, {
|
|
50400
50402
|
...Ns,
|
|
50401
50403
|
onAction: zn(Ns.onAction) ? Ns.onAction : V(Ns.command)
|
|
50402
50404
|
}), !0) : !1, be = (Mo, Ns) => {
|
|
@@ -50410,111 +50412,111 @@ Required: ` + T.join(", "));
|
|
|
50410
50412
|
columns: Mo.numColumns
|
|
50411
50413
|
});
|
|
50412
50414
|
}, gt = [
|
|
50413
|
-
|
|
50415
|
+
K("tableinsertrowbefore", {
|
|
50414
50416
|
text: "Insert row before",
|
|
50415
50417
|
icon: "table-insert-row-above",
|
|
50416
50418
|
command: "mceTableInsertRowBefore",
|
|
50417
50419
|
onSetup: T.onSetupCellOrRow
|
|
50418
50420
|
}),
|
|
50419
|
-
|
|
50421
|
+
K("tableinsertrowafter", {
|
|
50420
50422
|
text: "Insert row after",
|
|
50421
50423
|
icon: "table-insert-row-after",
|
|
50422
50424
|
command: "mceTableInsertRowAfter",
|
|
50423
50425
|
onSetup: T.onSetupCellOrRow
|
|
50424
50426
|
}),
|
|
50425
|
-
|
|
50427
|
+
K("tabledeleterow", {
|
|
50426
50428
|
text: "Delete row",
|
|
50427
50429
|
icon: "table-delete-row",
|
|
50428
50430
|
command: "mceTableDeleteRow",
|
|
50429
50431
|
onSetup: T.onSetupCellOrRow
|
|
50430
50432
|
}),
|
|
50431
|
-
|
|
50433
|
+
K("tablerowprops", {
|
|
50432
50434
|
text: "Row properties",
|
|
50433
50435
|
icon: "table-row-properties",
|
|
50434
50436
|
command: "mceTableRowProps",
|
|
50435
50437
|
onSetup: T.onSetupCellOrRow
|
|
50436
50438
|
}),
|
|
50437
|
-
|
|
50439
|
+
K("tablecutrow", {
|
|
50438
50440
|
text: "Cut row",
|
|
50439
50441
|
icon: "cut-row",
|
|
50440
50442
|
command: "mceTableCutRow",
|
|
50441
50443
|
onSetup: T.onSetupCellOrRow
|
|
50442
50444
|
}),
|
|
50443
|
-
|
|
50445
|
+
K("tablecopyrow", {
|
|
50444
50446
|
text: "Copy row",
|
|
50445
50447
|
icon: "duplicate-row",
|
|
50446
50448
|
command: "mceTableCopyRow",
|
|
50447
50449
|
onSetup: T.onSetupCellOrRow
|
|
50448
50450
|
}),
|
|
50449
|
-
|
|
50451
|
+
K("tablepasterowbefore", {
|
|
50450
50452
|
text: "Paste row before",
|
|
50451
50453
|
icon: "paste-row-before",
|
|
50452
50454
|
command: "mceTablePasteRowBefore",
|
|
50453
50455
|
onSetup: T.onSetupPasteable(Kc)
|
|
50454
50456
|
}),
|
|
50455
|
-
|
|
50457
|
+
K("tablepasterowafter", {
|
|
50456
50458
|
text: "Paste row after",
|
|
50457
50459
|
icon: "paste-row-after",
|
|
50458
50460
|
command: "mceTablePasteRowAfter",
|
|
50459
50461
|
onSetup: T.onSetupPasteable(Kc)
|
|
50460
50462
|
})
|
|
50461
50463
|
], Rt = [
|
|
50462
|
-
|
|
50464
|
+
K("tableinsertcolumnbefore", {
|
|
50463
50465
|
text: "Insert column before",
|
|
50464
50466
|
icon: "table-insert-column-before",
|
|
50465
50467
|
command: "mceTableInsertColBefore",
|
|
50466
50468
|
onSetup: T.onSetupColumn("onFirst")
|
|
50467
50469
|
}),
|
|
50468
|
-
|
|
50470
|
+
K("tableinsertcolumnafter", {
|
|
50469
50471
|
text: "Insert column after",
|
|
50470
50472
|
icon: "table-insert-column-after",
|
|
50471
50473
|
command: "mceTableInsertColAfter",
|
|
50472
50474
|
onSetup: T.onSetupColumn("onLast")
|
|
50473
50475
|
}),
|
|
50474
|
-
|
|
50476
|
+
K("tabledeletecolumn", {
|
|
50475
50477
|
text: "Delete column",
|
|
50476
50478
|
icon: "table-delete-column",
|
|
50477
50479
|
command: "mceTableDeleteCol",
|
|
50478
50480
|
onSetup: T.onSetupColumn("onAny")
|
|
50479
50481
|
}),
|
|
50480
|
-
|
|
50482
|
+
K("tablecutcolumn", {
|
|
50481
50483
|
text: "Cut column",
|
|
50482
50484
|
icon: "cut-column",
|
|
50483
50485
|
command: "mceTableCutCol",
|
|
50484
50486
|
onSetup: T.onSetupColumn("onAny")
|
|
50485
50487
|
}),
|
|
50486
|
-
|
|
50488
|
+
K("tablecopycolumn", {
|
|
50487
50489
|
text: "Copy column",
|
|
50488
50490
|
icon: "duplicate-column",
|
|
50489
50491
|
command: "mceTableCopyCol",
|
|
50490
50492
|
onSetup: T.onSetupColumn("onAny")
|
|
50491
50493
|
}),
|
|
50492
|
-
|
|
50494
|
+
K("tablepastecolumnbefore", {
|
|
50493
50495
|
text: "Paste column before",
|
|
50494
50496
|
icon: "paste-column-before",
|
|
50495
50497
|
command: "mceTablePasteColBefore",
|
|
50496
50498
|
onSetup: T.onSetupPasteableColumn(Yc, "onFirst")
|
|
50497
50499
|
}),
|
|
50498
|
-
|
|
50500
|
+
K("tablepastecolumnafter", {
|
|
50499
50501
|
text: "Paste column after",
|
|
50500
50502
|
icon: "paste-column-after",
|
|
50501
50503
|
command: "mceTablePasteColAfter",
|
|
50502
50504
|
onSetup: T.onSetupPasteableColumn(Yc, "onLast")
|
|
50503
50505
|
})
|
|
50504
50506
|
], on = [
|
|
50505
|
-
|
|
50507
|
+
K("tablecellprops", {
|
|
50506
50508
|
text: "Cell properties",
|
|
50507
50509
|
icon: "table-cell-properties",
|
|
50508
50510
|
command: "mceTableCellProps",
|
|
50509
50511
|
onSetup: T.onSetupCellOrRow
|
|
50510
50512
|
}),
|
|
50511
|
-
|
|
50513
|
+
K("tablemergecells", {
|
|
50512
50514
|
text: "Merge cells",
|
|
50513
50515
|
icon: "table-merge-cells",
|
|
50514
50516
|
command: "mceTableMergeCells",
|
|
50515
50517
|
onSetup: T.onSetupMergeable
|
|
50516
50518
|
}),
|
|
50517
|
-
|
|
50519
|
+
K("tablesplitcells", {
|
|
50518
50520
|
text: "Split cell",
|
|
50519
50521
|
icon: "table-split-cells",
|
|
50520
50522
|
command: "mceTableSplitCells",
|
|
@@ -50540,11 +50542,11 @@ Required: ` + T.join(", "));
|
|
|
50540
50542
|
icon: "table",
|
|
50541
50543
|
onAction: V("mceInsertTableDialog"),
|
|
50542
50544
|
onSetup: gb(w)
|
|
50543
|
-
}),
|
|
50545
|
+
}), K("tableprops", {
|
|
50544
50546
|
text: "Table properties",
|
|
50545
50547
|
onSetup: T.onSetupTable,
|
|
50546
50548
|
command: "mceTableProps"
|
|
50547
|
-
}),
|
|
50549
|
+
}), K("deletetable", {
|
|
50548
50550
|
text: "Delete table",
|
|
50549
50551
|
icon: "table-delete-table",
|
|
50550
50552
|
onSetup: T.onSetupTable,
|
|
@@ -50669,7 +50671,7 @@ Required: ` + T.join(", "));
|
|
|
50669
50671
|
J.addCommand("mceCodeEditor", () => {
|
|
50670
50672
|
Ae(J);
|
|
50671
50673
|
});
|
|
50672
|
-
},
|
|
50674
|
+
}, q = (J) => {
|
|
50673
50675
|
const Be = () => J.execCommand("mceCodeEditor");
|
|
50674
50676
|
J.ui.registry.addButton("code", {
|
|
50675
50677
|
icon: "sourcecode",
|
|
@@ -50682,7 +50684,7 @@ Required: ` + T.join(", "));
|
|
|
50682
50684
|
});
|
|
50683
50685
|
};
|
|
50684
50686
|
var Ee = () => {
|
|
50685
|
-
O.add("code", (J) => (he(J),
|
|
50687
|
+
O.add("code", (J) => (he(J), q(J), {}));
|
|
50686
50688
|
};
|
|
50687
50689
|
Ee();
|
|
50688
50690
|
})();
|
|
@@ -50950,7 +50952,7 @@ const FQ = { class: "font-bold ptext-lg dark:text-white" }, HQ = ["id"], VQ = /*
|
|
|
50950
50952
|
},
|
|
50951
50953
|
emits: ["update:modelValue", "keydown"],
|
|
50952
50954
|
setup(O, { expose: me, emit: se }) {
|
|
50953
|
-
const Ae = O, he = se,
|
|
50955
|
+
const Ae = O, he = se, q = Wo(null);
|
|
50954
50956
|
let Ee = null;
|
|
50955
50957
|
Oh(async () => {
|
|
50956
50958
|
await Dj(), Ee && (Ee.destroy(), Ee = null), LQ.init({
|
|
@@ -50988,7 +50990,7 @@ const FQ = { class: "font-bold ptext-lg dark:text-white" }, HQ = ["id"], VQ = /*
|
|
|
50988
50990
|
he("update:modelValue", ft);
|
|
50989
50991
|
}
|
|
50990
50992
|
});
|
|
50991
|
-
return me({ focus: () =>
|
|
50993
|
+
return me({ focus: () => q.value.focus() }), (ft, jt) => (ve(), we(bo, null, [
|
|
50992
50994
|
O.show ? (ve(), we("div", {
|
|
50993
50995
|
key: 0,
|
|
50994
50996
|
class: rn(O.field_name)
|
|
@@ -51023,7 +51025,7 @@ const FQ = { class: "font-bold ptext-lg dark:text-white" }, HQ = ["id"], VQ = /*
|
|
|
51023
51025
|
"onUpdate:modelValue": jt[0] || (jt[0] = (xn) => Be.value = xn),
|
|
51024
51026
|
onKeydown: jt[1] || (jt[1] = (xn) => ft.$emit("keydown", xn)),
|
|
51025
51027
|
ref_key: "input",
|
|
51026
|
-
ref:
|
|
51028
|
+
ref: q,
|
|
51027
51029
|
rows: "4"
|
|
51028
51030
|
}, null, 42, UQ), [
|
|
51029
51031
|
[vm, Be.value]
|
|
@@ -51085,9 +51087,9 @@ const FQ = { class: "font-bold ptext-lg dark:text-white" }, HQ = ["id"], VQ = /*
|
|
|
51085
51087
|
return 0;
|
|
51086
51088
|
if (this.limit === 0)
|
|
51087
51089
|
return this.lastPage;
|
|
51088
|
-
for (var O = this.currentPage, me = this.lastPage, se = this.limit, Ae = O - se, he = O + se + 1,
|
|
51089
|
-
(Be === 1 || Be === me || Be >= Ae && Be < he) &&
|
|
51090
|
-
return
|
|
51090
|
+
for (var O = this.currentPage, me = this.lastPage, se = this.limit, Ae = O - se, he = O + se + 1, q = [], Ee = [], J, Be = 1; Be <= me; Be++)
|
|
51091
|
+
(Be === 1 || Be === me || Be >= Ae && Be < he) && q.push(Be);
|
|
51092
|
+
return q.forEach(function(ft) {
|
|
51091
51093
|
J && (ft - J === 2 ? Ee.push(J + 1) : ft - J !== 1 && Ee.push("...")), Ee.push(ft), J = ft;
|
|
51092
51094
|
}), Ee;
|
|
51093
51095
|
}
|
|
@@ -51211,12 +51213,12 @@ const FQ = { class: "font-bold ptext-lg dark:text-white" }, HQ = ["id"], VQ = /*
|
|
|
51211
51213
|
d: "m1 9 4-4-4-4"
|
|
51212
51214
|
})
|
|
51213
51215
|
], -1);
|
|
51214
|
-
function aee(O, me, se, Ae, he,
|
|
51216
|
+
function aee(O, me, se, Ae, he, q) {
|
|
51215
51217
|
const Ee = ky("RenderlessPagination");
|
|
51216
51218
|
return ve(), Ty(Ee, {
|
|
51217
51219
|
data: se.data,
|
|
51218
51220
|
limit: se.limit,
|
|
51219
|
-
onPaginationChangePage:
|
|
51221
|
+
onPaginationChangePage: q.onPaginationChangePage
|
|
51220
51222
|
}, {
|
|
51221
51223
|
default: U8((J) => [
|
|
51222
51224
|
P("div", qQ, [
|
|
@@ -51439,7 +51441,7 @@ const nq = /* @__PURE__ */ Jr(GQ, [["render", aee]]), lee = {
|
|
|
51439
51441
|
], -1), Eee = [
|
|
51440
51442
|
Tee
|
|
51441
51443
|
], Aee = ["data-label"], Dee = { class: "overflow-auto max-h-40" }, Oee = { 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" };
|
|
51442
|
-
function Ree(O, me, se, Ae, he,
|
|
51444
|
+
function Ree(O, me, se, Ae, he, q) {
|
|
51443
51445
|
const Ee = ky("dropdown"), J = ky("TailwindPagination");
|
|
51444
51446
|
return ve(), we("div", cee, [
|
|
51445
51447
|
P("div", iee, [
|
|
@@ -51467,7 +51469,7 @@ function Ree(O, me, se, Ae, he, K) {
|
|
|
51467
51469
|
Qa(P("input", {
|
|
51468
51470
|
type: "text",
|
|
51469
51471
|
"onUpdate:modelValue": me[1] || (me[1] = (Be) => he.search = Be),
|
|
51470
|
-
onInput: me[2] || (me[2] = (Be) =>
|
|
51472
|
+
onInput: me[2] || (me[2] = (Be) => q.handleSearch()),
|
|
51471
51473
|
class: "block w-full p-2 text-sm text-gray-900 border border-gray-300 rounded-lg ps-10 bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",
|
|
51472
51474
|
placeholder: "Search ..."
|
|
51473
51475
|
}, null, 544), [
|
|
@@ -51481,7 +51483,7 @@ function Ree(O, me, se, Ae, he, K) {
|
|
|
51481
51483
|
P("tr", null, [
|
|
51482
51484
|
(ve(!0), we(bo, null, kr(se.columns, (Be, ft) => (ve(), we("th", {
|
|
51483
51485
|
key: ft,
|
|
51484
|
-
onClick: (jt) =>
|
|
51486
|
+
onClick: (jt) => q.updateSortColumn(Be.field_name, Be.sortable),
|
|
51485
51487
|
class: "w-full px-4 py-2 lg:w-2/12"
|
|
51486
51488
|
}, [
|
|
51487
51489
|
So(mt(Be.field_label) + " ", 1),
|
|
@@ -51510,15 +51512,15 @@ function Ree(O, me, se, Ae, he, K) {
|
|
|
51510
51512
|
}])
|
|
51511
51513
|
}, [
|
|
51512
51514
|
P("div", Dee, [
|
|
51513
|
-
jt.tdComp ? (ve(), Ty(o5(
|
|
51515
|
+
jt.tdComp ? (ve(), Ty(o5(q.forDynCompIs(jt.tdComp)), {
|
|
51514
51516
|
key: 0,
|
|
51515
51517
|
row: Be,
|
|
51516
51518
|
field: jt.field_name,
|
|
51517
51519
|
xprops: se.xprops,
|
|
51518
51520
|
tdProps: jt.tdProps,
|
|
51519
|
-
onDeleteAction: me[3] || (me[3] = (zn) =>
|
|
51520
|
-
onEditAction: (zn) =>
|
|
51521
|
-
onGeneralAction: (zn) =>
|
|
51521
|
+
onDeleteAction: me[3] || (me[3] = (zn) => q.GetItemLists()),
|
|
51522
|
+
onEditAction: (zn) => q.editAction(Be),
|
|
51523
|
+
onGeneralAction: (zn) => q.generalAction(Be)
|
|
51522
51524
|
}, null, 40, ["row", "field", "xprops", "tdProps", "onEditAction", "onGeneralAction"])) : (ve(), we(bo, { key: 1 }, [
|
|
51523
51525
|
So(mt(Be[jt.field_name]), 1)
|
|
51524
51526
|
], 64))
|
|
@@ -51535,7 +51537,7 @@ function Ree(O, me, se, Ae, he, K) {
|
|
|
51535
51537
|
limit: he.limit,
|
|
51536
51538
|
size: he.size,
|
|
51537
51539
|
align: he.align,
|
|
51538
|
-
onPaginationChangePage:
|
|
51540
|
+
onPaginationChangePage: q.GetItemLists
|
|
51539
51541
|
}, null, 8, ["data", "limit", "size", "align", "onPaginationChangePage"])
|
|
51540
51542
|
])
|
|
51541
51543
|
]);
|
|
@@ -51754,7 +51756,7 @@ const Kae = /* @__PURE__ */ Jr(lee, [["render", Ree]]), $ee = {
|
|
|
51754
51756
|
yte,
|
|
51755
51757
|
xte
|
|
51756
51758
|
];
|
|
51757
|
-
function Cte(O, me, se, Ae, he,
|
|
51759
|
+
function Cte(O, me, se, Ae, he, q) {
|
|
51758
51760
|
const Ee = ky("dropdown");
|
|
51759
51761
|
return ve(), we("div", Mee, [
|
|
51760
51762
|
P("div", Pee, [
|
|
@@ -51795,7 +51797,7 @@ function Cte(O, me, se, Ae, he, K) {
|
|
|
51795
51797
|
P("tr", null, [
|
|
51796
51798
|
(ve(!0), we(bo, null, kr(se.columns, (J, Be) => (ve(), we("th", {
|
|
51797
51799
|
key: Be,
|
|
51798
|
-
onClick: (ft) =>
|
|
51800
|
+
onClick: (ft) => q.sort(J.field_name, J.sortable),
|
|
51799
51801
|
class: "w-full px-4 py-2 lg:w-2/12"
|
|
51800
51802
|
}, [
|
|
51801
51803
|
So(mt(J.field_label) + " ", 1),
|
|
@@ -51811,7 +51813,7 @@ function Cte(O, me, se, Ae, he, K) {
|
|
|
51811
51813
|
colspan: se.columns.length
|
|
51812
51814
|
}, Jee, 8, Yee)
|
|
51813
51815
|
])) : pt("", !0),
|
|
51814
|
-
he.isLoading ? pt("", !0) : (ve(!0), we(bo, { key: 1 }, kr(
|
|
51816
|
+
he.isLoading ? pt("", !0) : (ve(!0), we(bo, { key: 1 }, kr(q.paginatedData, (J, Be) => (ve(), we("tr", {
|
|
51815
51817
|
key: Be,
|
|
51816
51818
|
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"
|
|
51817
51819
|
}, [
|
|
@@ -51824,15 +51826,15 @@ function Cte(O, me, se, Ae, he, K) {
|
|
|
51824
51826
|
}])
|
|
51825
51827
|
}, [
|
|
51826
51828
|
P("div", ete, [
|
|
51827
|
-
ft.tdComp ? (ve(), Ty(o5(
|
|
51829
|
+
ft.tdComp ? (ve(), Ty(o5(q.forDynCompIs(ft.tdComp)), {
|
|
51828
51830
|
key: 0,
|
|
51829
51831
|
row: J,
|
|
51830
51832
|
field: ft.field_name,
|
|
51831
51833
|
xprops: se.xprops,
|
|
51832
51834
|
tdProps: ft.tdProps,
|
|
51833
|
-
onDeleteAction: me[2] || (me[2] = (xn) =>
|
|
51834
|
-
onEditAction: (xn) =>
|
|
51835
|
-
onGeneralAction: (xn) =>
|
|
51835
|
+
onDeleteAction: me[2] || (me[2] = (xn) => q.GetItemLists()),
|
|
51836
|
+
onEditAction: (xn) => q.editAction(J),
|
|
51837
|
+
onGeneralAction: (xn) => q.generalAction(J)
|
|
51836
51838
|
}, null, 40, ["row", "field", "xprops", "tdProps", "onEditAction", "onGeneralAction"])) : (ve(), we(bo, { key: 1 }, [
|
|
51837
51839
|
So(mt(J[ft.field_name]), 1)
|
|
51838
51840
|
], 64))
|
|
@@ -51842,18 +51844,18 @@ function Cte(O, me, se, Ae, he, K) {
|
|
|
51842
51844
|
])
|
|
51843
51845
|
])
|
|
51844
51846
|
]),
|
|
51845
|
-
|
|
51847
|
+
q.paginatedData.length > 0 ? (ve(), we("div", tte, [
|
|
51846
51848
|
P("div", nte, [
|
|
51847
51849
|
P("a", {
|
|
51848
51850
|
href: "#",
|
|
51849
|
-
onClick: me[3] || (me[3] = oc((...J) =>
|
|
51851
|
+
onClick: me[3] || (me[3] = oc((...J) => q.previousPage && q.previousPage(...J), ["prevent"])),
|
|
51850
51852
|
disabled: he.currentPage === 1,
|
|
51851
51853
|
class: "relative inline-flex items-center px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50"
|
|
51852
51854
|
}, "Previous", 8, ote),
|
|
51853
51855
|
P("a", {
|
|
51854
51856
|
href: "#",
|
|
51855
|
-
onClick: me[4] || (me[4] = oc((...J) =>
|
|
51856
|
-
disabled: he.currentPage ===
|
|
51857
|
+
onClick: me[4] || (me[4] = oc((...J) => q.nextPage && q.nextPage(...J), ["prevent"])),
|
|
51858
|
+
disabled: he.currentPage === q.totalPages,
|
|
51857
51859
|
class: "relative inline-flex items-center px-4 py-2 ml-3 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50"
|
|
51858
51860
|
}, "Next", 8, ste)
|
|
51859
51861
|
]),
|
|
@@ -51861,11 +51863,11 @@ function Cte(O, me, se, Ae, he, K) {
|
|
|
51861
51863
|
P("div", null, [
|
|
51862
51864
|
P("p", ate, [
|
|
51863
51865
|
So(" Showing "),
|
|
51864
|
-
P("span", lte, mt(
|
|
51866
|
+
P("span", lte, mt(q.firstItemIndex), 1),
|
|
51865
51867
|
So(" to "),
|
|
51866
|
-
P("span", cte, mt(
|
|
51868
|
+
P("span", cte, mt(q.lastItemIndex), 1),
|
|
51867
51869
|
So(" of "),
|
|
51868
|
-
P("span", ite, mt(
|
|
51870
|
+
P("span", ite, mt(q.filteredData.length), 1),
|
|
51869
51871
|
So(" entries ")
|
|
51870
51872
|
])
|
|
51871
51873
|
]),
|
|
@@ -51875,17 +51877,17 @@ function Cte(O, me, se, Ae, he, K) {
|
|
|
51875
51877
|
P("li", null, [
|
|
51876
51878
|
P("a", {
|
|
51877
51879
|
href: "#",
|
|
51878
|
-
onClick: me[5] || (me[5] = oc((...J) =>
|
|
51880
|
+
onClick: me[5] || (me[5] = oc((...J) => q.previousPage && q.previousPage(...J), ["prevent"])),
|
|
51879
51881
|
disabled: he.currentPage === 1,
|
|
51880
51882
|
class: "flex items-center justify-center h-8 px-3 leading-tight text-gray-500 bg-white border border-gray-300 ms-0 border-e-0 rounded-s-lg hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white"
|
|
51881
51883
|
}, hte, 8, mte)
|
|
51882
51884
|
]),
|
|
51883
|
-
(ve(!0), we(bo, null, kr(
|
|
51885
|
+
(ve(!0), we(bo, null, kr(q.displayedPageNumbers, (J) => (ve(), we(bo, { key: J }, [
|
|
51884
51886
|
P("li", null, [
|
|
51885
51887
|
he.currentPage !== J ? (ve(), we("a", {
|
|
51886
51888
|
key: 0,
|
|
51887
51889
|
href: "#",
|
|
51888
|
-
onClick: oc((Be) =>
|
|
51890
|
+
onClick: oc((Be) => q.goToPage(J), ["prevent"]),
|
|
51889
51891
|
class: "flex items-center justify-center h-8 px-3 leading-tight text-gray-500 bg-white border border-gray-300 hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white"
|
|
51890
51892
|
}, mt(J), 9, pte)) : pt("", !0)
|
|
51891
51893
|
]),
|
|
@@ -51893,7 +51895,7 @@ function Cte(O, me, se, Ae, he, K) {
|
|
|
51893
51895
|
he.currentPage === J ? (ve(), we("a", {
|
|
51894
51896
|
key: 0,
|
|
51895
51897
|
href: "#",
|
|
51896
|
-
onClick: oc((Be) =>
|
|
51898
|
+
onClick: oc((Be) => q.goToPage(J), ["prevent"]),
|
|
51897
51899
|
"aria-current": "page",
|
|
51898
51900
|
class: "z-10 flex items-center justify-center h-8 px-3 leading-tight text-blue-600 border border-blue-300 bg-blue-50 hover:bg-blue-100 hover:text-blue-700 dark:border-gray-700 dark:bg-gray-700 dark:text-white"
|
|
51899
51901
|
}, mt(J), 9, bte)) : pt("", !0)
|
|
@@ -51902,8 +51904,8 @@ function Cte(O, me, se, Ae, he, K) {
|
|
|
51902
51904
|
P("li", null, [
|
|
51903
51905
|
P("a", {
|
|
51904
51906
|
href: "#",
|
|
51905
|
-
onClick: me[6] || (me[6] = oc((...J) =>
|
|
51906
|
-
disabled: he.currentPage ===
|
|
51907
|
+
onClick: me[6] || (me[6] = oc((...J) => q.nextPage && q.nextPage(...J), ["prevent"])),
|
|
51908
|
+
disabled: he.currentPage === q.totalPages,
|
|
51907
51909
|
class: "flex items-center justify-center h-8 px-3 leading-tight text-gray-500 bg-white border border-gray-300 rounded-e-lg hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white"
|
|
51908
51910
|
}, wte, 8, vte)
|
|
51909
51911
|
])
|
|
@@ -52075,7 +52077,7 @@ const Yae = /* @__PURE__ */ Jr($ee, [["render", Cte]]), Ste = {
|
|
|
52075
52077
|
], -1), Ute = [
|
|
52076
52078
|
zte
|
|
52077
52079
|
], Wte = { 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" }, Zte = ["colspan"], jte = ["data-label"], Gte = { class: "overflow-auto max-h-40" }, qte = { 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" };
|
|
52078
|
-
function Kte(O, me, se, Ae, he,
|
|
52080
|
+
function Kte(O, me, se, Ae, he, q) {
|
|
52079
52081
|
const Ee = ky("dropdown"), J = ky("TailwindPagination");
|
|
52080
52082
|
return ve(), we("div", _te, [
|
|
52081
52083
|
P("div", kte, [
|
|
@@ -52103,7 +52105,7 @@ function Kte(O, me, se, Ae, he, K) {
|
|
|
52103
52105
|
Qa(P("input", {
|
|
52104
52106
|
type: "text",
|
|
52105
52107
|
"onUpdate:modelValue": me[1] || (me[1] = (Be) => he.search = Be),
|
|
52106
|
-
onInput: me[2] || (me[2] = (Be) =>
|
|
52108
|
+
onInput: me[2] || (me[2] = (Be) => q.handleSearch()),
|
|
52107
52109
|
class: "block w-full p-2 text-sm text-gray-900 border border-gray-300 rounded-lg ps-10 bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",
|
|
52108
52110
|
placeholder: "Search ..."
|
|
52109
52111
|
}, null, 544), [
|
|
@@ -52117,7 +52119,7 @@ function Kte(O, me, se, Ae, he, K) {
|
|
|
52117
52119
|
P("tr", null, [
|
|
52118
52120
|
(ve(!0), we(bo, null, kr(se.columns, (Be, ft) => (ve(), we("th", {
|
|
52119
52121
|
key: ft,
|
|
52120
|
-
onClick: (jt) =>
|
|
52122
|
+
onClick: (jt) => q.updateSortColumn(Be.field_name, Be.sortable),
|
|
52121
52123
|
class: "w-full px-4 py-2 lg:w-2/12"
|
|
52122
52124
|
}, [
|
|
52123
52125
|
So(mt(Be.field_label) + " ", 1),
|
|
@@ -52133,7 +52135,7 @@ function Kte(O, me, se, Ae, he, K) {
|
|
|
52133
52135
|
colspan: se.columns.length
|
|
52134
52136
|
}, Ute, 8, Vte)
|
|
52135
52137
|
])) : pt("", !0),
|
|
52136
|
-
he.isLoading ? pt("", !0) : (ve(!0), we(bo, { key: 1 }, kr(
|
|
52138
|
+
he.isLoading ? pt("", !0) : (ve(!0), we(bo, { key: 1 }, kr(q.groupedItems, (Be, ft) => (ve(), we(bo, null, [
|
|
52137
52139
|
P("tr", Wte, [
|
|
52138
52140
|
P("td", {
|
|
52139
52141
|
colspan: se.columns.length,
|
|
@@ -52150,14 +52152,14 @@ function Kte(O, me, se, Ae, he, K) {
|
|
|
52150
52152
|
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"
|
|
52151
52153
|
}, [
|
|
52152
52154
|
P("div", Gte, [
|
|
52153
|
-
zn.tdComp ? (ve(), Ty(o5(
|
|
52155
|
+
zn.tdComp ? (ve(), Ty(o5(q.forDynCompIs(zn.tdComp)), {
|
|
52154
52156
|
key: 0,
|
|
52155
52157
|
row: jt,
|
|
52156
52158
|
field: zn.field_name,
|
|
52157
52159
|
xprops: se.xprops,
|
|
52158
52160
|
tdProps: zn.tdProps,
|
|
52159
|
-
onDeleteAction: me[3] || (me[3] = (ir) =>
|
|
52160
|
-
onEditAction: (ir) =>
|
|
52161
|
+
onDeleteAction: me[3] || (me[3] = (ir) => q.GetItemLists()),
|
|
52162
|
+
onEditAction: (ir) => q.editAction(jt)
|
|
52161
52163
|
}, null, 40, ["row", "field", "xprops", "tdProps", "onEditAction"])) : (ve(), we(bo, { key: 1 }, [
|
|
52162
52164
|
So(mt(jt[zn.field_name]), 1)
|
|
52163
52165
|
], 64))
|
|
@@ -52175,7 +52177,7 @@ function Kte(O, me, se, Ae, he, K) {
|
|
|
52175
52177
|
limit: he.limit,
|
|
52176
52178
|
size: he.size,
|
|
52177
52179
|
align: he.align,
|
|
52178
|
-
onPaginationChangePage:
|
|
52180
|
+
onPaginationChangePage: q.GetItemLists
|
|
52179
52181
|
}, null, 8, ["data", "limit", "size", "align", "onPaginationChangePage"])
|
|
52180
52182
|
])
|
|
52181
52183
|
]);
|
|
@@ -52324,7 +52326,7 @@ const Xae = /* @__PURE__ */ Jr(Ste, [["render", Kte]]), Yte = {
|
|
|
52324
52326
|
Mne,
|
|
52325
52327
|
Pne
|
|
52326
52328
|
];
|
|
52327
|
-
function Bne(O, me, se, Ae, he,
|
|
52329
|
+
function Bne(O, me, se, Ae, he, q) {
|
|
52328
52330
|
const Ee = ky("dropdown");
|
|
52329
52331
|
return ve(), we("div", Xte, [
|
|
52330
52332
|
P("div", Jte, [
|
|
@@ -52365,7 +52367,7 @@ function Bne(O, me, se, Ae, he, K) {
|
|
|
52365
52367
|
P("tr", null, [
|
|
52366
52368
|
(ve(!0), we(bo, null, kr(se.columns, (J, Be) => (ve(), we("th", {
|
|
52367
52369
|
key: Be,
|
|
52368
|
-
onClick: oc((ft) =>
|
|
52370
|
+
onClick: oc((ft) => q.sort(J), ["prevent"]),
|
|
52369
52371
|
class: "w-full px-4 py-2 lg:w-2/12 capitalize"
|
|
52370
52372
|
}, [
|
|
52371
52373
|
So(mt(J) + " ", 1),
|
|
@@ -52376,7 +52378,7 @@ function Bne(O, me, se, Ae, he, K) {
|
|
|
52376
52378
|
])
|
|
52377
52379
|
]),
|
|
52378
52380
|
P("tbody", null, [
|
|
52379
|
-
(ve(!0), we(bo, null, kr(
|
|
52381
|
+
(ve(!0), we(bo, null, kr(q.paginatedData, (J, Be) => (ve(), we("tr", {
|
|
52380
52382
|
key: Be,
|
|
52381
52383
|
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"
|
|
52382
52384
|
}, [
|
|
@@ -52394,18 +52396,18 @@ function Bne(O, me, se, Ae, he, K) {
|
|
|
52394
52396
|
])
|
|
52395
52397
|
])
|
|
52396
52398
|
]),
|
|
52397
|
-
|
|
52399
|
+
q.paginatedData.length > 0 ? (ve(), we("div", hne, [
|
|
52398
52400
|
P("div", pne, [
|
|
52399
52401
|
P("a", {
|
|
52400
52402
|
href: "#",
|
|
52401
|
-
onClick: me[2] || (me[2] = oc((...J) =>
|
|
52403
|
+
onClick: me[2] || (me[2] = oc((...J) => q.previousPage && q.previousPage(...J), ["prevent"])),
|
|
52402
52404
|
disabled: he.currentPage === 1,
|
|
52403
52405
|
class: "relative inline-flex items-center px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50"
|
|
52404
52406
|
}, "Previous", 8, bne),
|
|
52405
52407
|
P("a", {
|
|
52406
52408
|
href: "#",
|
|
52407
|
-
onClick: me[3] || (me[3] = oc((...J) =>
|
|
52408
|
-
disabled: he.currentPage ===
|
|
52409
|
+
onClick: me[3] || (me[3] = oc((...J) => q.nextPage && q.nextPage(...J), ["prevent"])),
|
|
52410
|
+
disabled: he.currentPage === q.totalPages,
|
|
52409
52411
|
class: "relative inline-flex items-center px-4 py-2 ml-3 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50"
|
|
52410
52412
|
}, "Next", 8, vne)
|
|
52411
52413
|
]),
|
|
@@ -52413,11 +52415,11 @@ function Bne(O, me, se, Ae, he, K) {
|
|
|
52413
52415
|
P("div", null, [
|
|
52414
52416
|
P("p", xne, [
|
|
52415
52417
|
So(" Showing "),
|
|
52416
|
-
P("span", wne, mt(
|
|
52418
|
+
P("span", wne, mt(q.firstItemIndex), 1),
|
|
52417
52419
|
So(" to "),
|
|
52418
|
-
P("span", Cne, mt(
|
|
52420
|
+
P("span", Cne, mt(q.lastItemIndex), 1),
|
|
52419
52421
|
So(" of "),
|
|
52420
|
-
P("span", Sne, mt(
|
|
52422
|
+
P("span", Sne, mt(q.filteredData.length), 1),
|
|
52421
52423
|
So(" entries ")
|
|
52422
52424
|
])
|
|
52423
52425
|
]),
|
|
@@ -52427,17 +52429,17 @@ function Bne(O, me, se, Ae, he, K) {
|
|
|
52427
52429
|
P("li", null, [
|
|
52428
52430
|
P("a", {
|
|
52429
52431
|
href: "#",
|
|
52430
|
-
onClick: me[4] || (me[4] = oc((...J) =>
|
|
52432
|
+
onClick: me[4] || (me[4] = oc((...J) => q.previousPage && q.previousPage(...J), ["prevent"])),
|
|
52431
52433
|
disabled: he.currentPage === 1,
|
|
52432
52434
|
class: "flex items-center justify-center h-8 px-3 leading-tight text-gray-500 bg-white border border-gray-300 ms-0 border-e-0 rounded-s-lg hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white"
|
|
52433
52435
|
}, Dne, 8, Tne)
|
|
52434
52436
|
]),
|
|
52435
|
-
(ve(!0), we(bo, null, kr(
|
|
52437
|
+
(ve(!0), we(bo, null, kr(q.displayedPageNumbers, (J) => (ve(), we(bo, { key: J }, [
|
|
52436
52438
|
P("li", null, [
|
|
52437
52439
|
he.currentPage !== J ? (ve(), we("a", {
|
|
52438
52440
|
key: 0,
|
|
52439
52441
|
href: "#",
|
|
52440
|
-
onClick: oc((Be) =>
|
|
52442
|
+
onClick: oc((Be) => q.goToPage(J), ["prevent"]),
|
|
52441
52443
|
class: "flex items-center justify-center h-8 px-3 leading-tight text-gray-500 bg-white border border-gray-300 hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white"
|
|
52442
52444
|
}, mt(J), 9, One)) : pt("", !0)
|
|
52443
52445
|
]),
|
|
@@ -52445,7 +52447,7 @@ function Bne(O, me, se, Ae, he, K) {
|
|
|
52445
52447
|
he.currentPage === J ? (ve(), we("a", {
|
|
52446
52448
|
key: 0,
|
|
52447
52449
|
href: "#",
|
|
52448
|
-
onClick: oc((Be) =>
|
|
52450
|
+
onClick: oc((Be) => q.goToPage(J), ["prevent"]),
|
|
52449
52451
|
"aria-current": "page",
|
|
52450
52452
|
class: "z-10 flex items-center justify-center h-8 px-3 leading-tight text-blue-600 border border-blue-300 bg-blue-50 hover:bg-blue-100 hover:text-blue-700 dark:border-gray-700 dark:bg-gray-700 dark:text-white"
|
|
52451
52453
|
}, mt(J), 9, Rne)) : pt("", !0)
|
|
@@ -52454,8 +52456,8 @@ function Bne(O, me, se, Ae, he, K) {
|
|
|
52454
52456
|
P("li", null, [
|
|
52455
52457
|
P("a", {
|
|
52456
52458
|
href: "#",
|
|
52457
|
-
onClick: me[5] || (me[5] = oc((...J) =>
|
|
52458
|
-
disabled: he.currentPage ===
|
|
52459
|
+
onClick: me[5] || (me[5] = oc((...J) => q.nextPage && q.nextPage(...J), ["prevent"])),
|
|
52460
|
+
disabled: he.currentPage === q.totalPages,
|
|
52459
52461
|
class: "flex items-center justify-center h-8 px-3 leading-tight text-gray-500 bg-white border border-gray-300 rounded-e-lg hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white"
|
|
52460
52462
|
}, Nne, 8, $ne)
|
|
52461
52463
|
])
|
|
@@ -52474,19 +52476,19 @@ const Jae = /* @__PURE__ */ Jr(Yte, [["render", Bne]]), Ine = {
|
|
|
52474
52476
|
O.value.push(he);
|
|
52475
52477
|
},
|
|
52476
52478
|
unregisterAccordion: (he) => {
|
|
52477
|
-
const
|
|
52478
|
-
|
|
52479
|
+
const q = O.value.indexOf(he);
|
|
52480
|
+
q > -1 && O.value.splice(q, 1);
|
|
52479
52481
|
},
|
|
52480
52482
|
toggleAccordion: (he) => {
|
|
52481
|
-
O.value.forEach((
|
|
52482
|
-
|
|
52483
|
+
O.value.forEach((q) => {
|
|
52484
|
+
q !== he && q.isOpen && q.isOpen.value !== void 0 && (q.isOpen.value = !1);
|
|
52483
52485
|
}), he.isOpen && he.isOpen.value !== void 0 && (he.isOpen.value = !he.isOpen.value);
|
|
52484
52486
|
},
|
|
52485
52487
|
accordions: O
|
|
52486
52488
|
}), {};
|
|
52487
52489
|
}
|
|
52488
52490
|
};
|
|
52489
|
-
function Lne(O, me, se, Ae, he,
|
|
52491
|
+
function Lne(O, me, se, Ae, he, q) {
|
|
52490
52492
|
return ve(), we("div", null, [
|
|
52491
52493
|
vf(O.$slots, "default")
|
|
52492
52494
|
]);
|
|
@@ -52507,7 +52509,7 @@ const Qae = /* @__PURE__ */ Jr(Ine, [["render", Lne]]), Fne = {
|
|
|
52507
52509
|
return ft = Math.floor(ft / 16), (xn === "x" ? zn : zn & 3 | 8).toString(16);
|
|
52508
52510
|
});
|
|
52509
52511
|
return jt;
|
|
52510
|
-
})(), he = { isOpen: O, id: Ae },
|
|
52512
|
+
})(), he = { isOpen: O, id: Ae }, q = vc(() => me.accordions.value), Ee = vc(() => q.value.length > 0 && q.value[0].id === Ae), J = vc(() => q.value.length > 0 && q.value[q.value.length - 1].id === Ae);
|
|
52511
52513
|
return Oh(() => {
|
|
52512
52514
|
me.registerAccordion(he);
|
|
52513
52515
|
}), Pq(() => {
|
|
@@ -52547,7 +52549,7 @@ const Qae = /* @__PURE__ */ Jr(Ine, [["render", Lne]]), Fne = {
|
|
|
52547
52549
|
}, null, -1), jne = [
|
|
52548
52550
|
Zne
|
|
52549
52551
|
];
|
|
52550
|
-
function Gne(O, me, se, Ae, he,
|
|
52552
|
+
function Gne(O, me, se, Ae, he, q) {
|
|
52551
52553
|
return ve(), we("div", null, [
|
|
52552
52554
|
P("h2", null, [
|
|
52553
52555
|
P("button", {
|
|
@@ -52656,13 +52658,13 @@ const ele = /* @__PURE__ */ Jr(Fne, [["render", Gne]]), qne = {
|
|
|
52656
52658
|
setTimeout(() => Ae("remove"), se.duration);
|
|
52657
52659
|
});
|
|
52658
52660
|
const Ae = me;
|
|
52659
|
-
return (he,
|
|
52661
|
+
return (he, q) => (ve(), we("div", qne, [
|
|
52660
52662
|
se.type === "success" ? (ve(), we("div", Kne, Jne)) : pt("", !0),
|
|
52661
52663
|
se.type === "error" ? (ve(), we("div", Qne, noe)) : pt("", !0),
|
|
52662
52664
|
se.type === "warning" ? (ve(), we("div", ooe, aoe)) : pt("", !0),
|
|
52663
52665
|
P("div", loe, mt(se.message), 1),
|
|
52664
52666
|
P("button", {
|
|
52665
|
-
onClick:
|
|
52667
|
+
onClick: q[0] || (q[0] = (Ee) => Ae("remove")),
|
|
52666
52668
|
type: "button",
|
|
52667
52669
|
class: "-mx-1.5 -my-1.5 ml-auto inline-flex h-8 w-8 rounded-lg bg-white p-1.5 text-gray-400 hover:bg-gray-100 hover:text-gray-900 focus:ring-2 focus:ring-gray-300 dark:bg-gray-800 dark:text-gray-500 dark:hover:bg-gray-700 dark:hover:text-white",
|
|
52668
52670
|
"data-dismiss-target": "#toast-default",
|
|
@@ -52685,12 +52687,12 @@ const ele = /* @__PURE__ */ Jr(Fne, [["render", Gne]]), qne = {
|
|
|
52685
52687
|
class: "fixed z-[1060] w-full max-w-xs space-y-4 top-4 right-4"
|
|
52686
52688
|
}, {
|
|
52687
52689
|
default: U8(() => [
|
|
52688
|
-
(ve(!0), we(bo, null, kr(Bq(s5).state.items, (he,
|
|
52690
|
+
(ve(!0), we(bo, null, kr(Bq(s5).state.items, (he, q) => (ve(), Ty(doe, {
|
|
52689
52691
|
key: he.key,
|
|
52690
52692
|
message: he.message,
|
|
52691
52693
|
type: he.type,
|
|
52692
52694
|
duration: he.duration,
|
|
52693
|
-
onRemove: (Ee) => me(
|
|
52695
|
+
onRemove: (Ee) => me(q)
|
|
52694
52696
|
}, null, 8, ["message", "type", "duration", "onRemove"]))), 128))
|
|
52695
52697
|
]),
|
|
52696
52698
|
_: 1
|
|
@@ -52738,7 +52740,7 @@ const ele = /* @__PURE__ */ Jr(Fne, [["render", Gne]]), qne = {
|
|
|
52738
52740
|
},
|
|
52739
52741
|
emits: ["deleteAction"],
|
|
52740
52742
|
setup(O, { emit: me }) {
|
|
52741
|
-
const se = O, Ae = Wo(!1), he = Wo(!1),
|
|
52743
|
+
const se = O, Ae = Wo(!1), he = Wo(!1), q = () => {
|
|
52742
52744
|
Ae.value = !1;
|
|
52743
52745
|
}, Ee = () => {
|
|
52744
52746
|
Ae.value = !0;
|
|
@@ -52797,7 +52799,7 @@ const ele = /* @__PURE__ */ Jr(Fne, [["render", Gne]]), qne = {
|
|
|
52797
52799
|
[n5, Ae.value]
|
|
52798
52800
|
])
|
|
52799
52801
|
])), [
|
|
52800
|
-
[Zo,
|
|
52802
|
+
[Zo, q]
|
|
52801
52803
|
]) : pt("", !0)
|
|
52802
52804
|
], 64);
|
|
52803
52805
|
};
|
|
@@ -52844,7 +52846,7 @@ const ele = /* @__PURE__ */ Jr(Fne, [["render", Gne]]), qne = {
|
|
|
52844
52846
|
},
|
|
52845
52847
|
emits: ["deleteAction"],
|
|
52846
52848
|
setup(O, { emit: me }) {
|
|
52847
|
-
const se = O, Ae = Wo(!1), he = Wo(!1),
|
|
52849
|
+
const se = O, Ae = Wo(!1), he = Wo(!1), q = () => {
|
|
52848
52850
|
Ae.value = !1;
|
|
52849
52851
|
}, Ee = () => {
|
|
52850
52852
|
Ae.value = !0;
|
|
@@ -52894,7 +52896,7 @@ const ele = /* @__PURE__ */ Jr(Fne, [["render", Gne]]), qne = {
|
|
|
52894
52896
|
[n5, Ae.value]
|
|
52895
52897
|
])
|
|
52896
52898
|
])), [
|
|
52897
|
-
[Zo,
|
|
52899
|
+
[Zo, q]
|
|
52898
52900
|
]) : pt("", !0)
|
|
52899
52901
|
], 64);
|
|
52900
52902
|
};
|
|
@@ -52952,9 +52954,9 @@ const ele = /* @__PURE__ */ Jr(Fne, [["render", Gne]]), qne = {
|
|
|
52952
52954
|
"clip-rule": "evenodd"
|
|
52953
52955
|
})
|
|
52954
52956
|
], -1);
|
|
52955
|
-
function Noe(O, me, se, Ae, he,
|
|
52957
|
+
function Noe(O, me, se, Ae, he, q) {
|
|
52956
52958
|
return ve(), we("div", null, [
|
|
52957
|
-
|
|
52959
|
+
q.isArray ? (ve(!0), we(bo, { key: 0 }, kr(se.row, (Ee, J) => (ve(), we("div", {
|
|
52958
52960
|
key: J,
|
|
52959
52961
|
class: "m-1 d-inline-block"
|
|
52960
52962
|
}, [
|
|
@@ -52967,7 +52969,7 @@ function Noe(O, me, se, Ae, he, K) {
|
|
|
52967
52969
|
Roe,
|
|
52968
52970
|
So(" Download ")
|
|
52969
52971
|
], 8, Ooe)
|
|
52970
|
-
]))), 128)) :
|
|
52972
|
+
]))), 128)) : q.isString ? (ve(), we("div", $oe, [
|
|
52971
52973
|
P("a", {
|
|
52972
52974
|
href: se.row,
|
|
52973
52975
|
title: se.row,
|
|
@@ -53028,9 +53030,9 @@ const sle = /* @__PURE__ */ Jr(Doe, [["render", Noe]]), Boe = {
|
|
|
53028
53030
|
"clip-rule": "evenodd"
|
|
53029
53031
|
})
|
|
53030
53032
|
], -1);
|
|
53031
|
-
function zoe(O, me, se, Ae, he,
|
|
53033
|
+
function zoe(O, me, se, Ae, he, q) {
|
|
53032
53034
|
return ve(), we("div", null, [
|
|
53033
|
-
|
|
53035
|
+
q.isArray ? (ve(!0), we(bo, { key: 0 }, kr(se.row[se.field], (Ee) => (ve(), we("div", {
|
|
53034
53036
|
key: Ee.id,
|
|
53035
53037
|
class: "m-1 d-inline-block"
|
|
53036
53038
|
}, [
|
|
@@ -53043,7 +53045,7 @@ function zoe(O, me, se, Ae, he, K) {
|
|
|
53043
53045
|
Loe,
|
|
53044
53046
|
So(" Download ")
|
|
53045
53047
|
], 8, Ioe)
|
|
53046
|
-
]))), 128)) :
|
|
53048
|
+
]))), 128)) : q.isObject ? (ve(), we("div", Foe, [
|
|
53047
53049
|
P("a", {
|
|
53048
53050
|
href: se.row[se.field].url,
|
|
53049
53051
|
title: se.row[se.field].name,
|
|
@@ -53059,7 +53061,7 @@ function zoe(O, me, se, Ae, he, K) {
|
|
|
53059
53061
|
const rle = /* @__PURE__ */ Jr(Boe, [["render", zoe]]), Uoe = {
|
|
53060
53062
|
props: ["field", "row", "tdProps"]
|
|
53061
53063
|
}, Woe = { key: 0 }, Zoe = ["innerHTML"];
|
|
53062
|
-
function joe(O, me, se, Ae, he,
|
|
53064
|
+
function joe(O, me, se, Ae, he, q) {
|
|
53063
53065
|
return se.row[se.field] ? (ve(), we("div", Woe, [
|
|
53064
53066
|
P("div", {
|
|
53065
53067
|
class: "w-full",
|
|
@@ -53088,12 +53090,12 @@ const ale = /* @__PURE__ */ Jr(Uoe, [["render", joe]]), Goe = {
|
|
|
53088
53090
|
key: 1,
|
|
53089
53091
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"
|
|
53090
53092
|
};
|
|
53091
|
-
function Yoe(O, me, se, Ae, he,
|
|
53093
|
+
function Yoe(O, me, se, Ae, he, q) {
|
|
53092
53094
|
return this.row[this.entry.key] ? (ve(), we("div", qoe, [
|
|
53093
|
-
|
|
53095
|
+
q.isArray ? (ve(!0), we(bo, { key: 0 }, kr(se.row[q.entry.key], (Ee, J) => (ve(), we("span", {
|
|
53094
53096
|
key: J,
|
|
53095
53097
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"
|
|
53096
|
-
}, mt(Ee[
|
|
53098
|
+
}, mt(Ee[q.entry.field]), 1))), 128)) : q.isObject ? (ve(), we("span", Koe, mt(se.row[q.entry.key][q.entry.field]), 1)) : pt("", !0)
|
|
53097
53099
|
])) : pt("", !0);
|
|
53098
53100
|
}
|
|
53099
53101
|
const lle = /* @__PURE__ */ Jr(Goe, [["render", Yoe]]), Xoe = {
|
|
@@ -53119,18 +53121,18 @@ const lle = /* @__PURE__ */ Jr(Goe, [["render", Yoe]]), Xoe = {
|
|
|
53119
53121
|
key: 1,
|
|
53120
53122
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"
|
|
53121
53123
|
};
|
|
53122
|
-
function ese(O, me, se, Ae, he,
|
|
53124
|
+
function ese(O, me, se, Ae, he, q) {
|
|
53123
53125
|
return ve(), we("div", Joe, [
|
|
53124
|
-
|
|
53126
|
+
q.isArray ? (ve(!0), we(bo, { key: 0 }, kr(q.getNestedValue(se.row, q.entry.keys), (Ee, J) => (ve(), we("span", {
|
|
53125
53127
|
key: J,
|
|
53126
53128
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"
|
|
53127
|
-
}, mt(Ee[
|
|
53129
|
+
}, mt(Ee[q.entry.field]), 1))), 128)) : q.isObject ? (ve(), we("span", Qoe, mt(q.getNestedValue(se.row, q.entry.keys)[q.entry.field]), 1)) : pt("", !0)
|
|
53128
53130
|
]);
|
|
53129
53131
|
}
|
|
53130
53132
|
const cle = /* @__PURE__ */ Jr(Xoe, [["render", ese]]), tse = {
|
|
53131
53133
|
props: ["field", "row", "tdProps"]
|
|
53132
53134
|
}, nse = { key: 0 }, ose = { class: "m-1 d-inline-block" }, sse = ["href", "title"], rse = ["src", "alt", "title"];
|
|
53133
|
-
function ase(O, me, se, Ae, he,
|
|
53135
|
+
function ase(O, me, se, Ae, he, q) {
|
|
53134
53136
|
return se.row[se.field] ? (ve(), we("div", nse, [
|
|
53135
53137
|
P("div", ose, [
|
|
53136
53138
|
P("a", {
|
|
@@ -53161,12 +53163,12 @@ const ile = /* @__PURE__ */ Jr(tse, [["render", ase], ["__scopeId", "data-v-3a28
|
|
|
53161
53163
|
key: 1,
|
|
53162
53164
|
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"
|
|
53163
53165
|
}, mse = /* @__PURE__ */ P("span", { class: "w-2 h-2 bg-red-500 rounded-full me-1" }, null, -1);
|
|
53164
|
-
function fse(O, me, se, Ae, he,
|
|
53166
|
+
function fse(O, me, se, Ae, he, q) {
|
|
53165
53167
|
return ve(), we("div", cse, [
|
|
53166
|
-
|
|
53168
|
+
q.isActive ? (ve(), we("span", ise, [
|
|
53167
53169
|
use,
|
|
53168
53170
|
So(" Active ")
|
|
53169
|
-
])) :
|
|
53171
|
+
])) : q.isActive ? pt("", !0) : (ve(), we("span", dse, [
|
|
53170
53172
|
mse,
|
|
53171
53173
|
So(" Inactive ")
|
|
53172
53174
|
]))
|
|
@@ -53201,25 +53203,25 @@ const ule = /* @__PURE__ */ Jr(lse, [["render", fse]]), gse = {
|
|
|
53201
53203
|
/* @__PURE__ */ P("span", { class: "absolute inline-flex w-full h-full bg-blue-500 rounded-full animate-ping" }),
|
|
53202
53204
|
/* @__PURE__ */ P("span", { class: "relative inline-flex w-2 h-2 bg-blue-500 rounded-full" })
|
|
53203
53205
|
], -1);
|
|
53204
|
-
function Tse(O, me, se, Ae, he,
|
|
53206
|
+
function Tse(O, me, se, Ae, he, q) {
|
|
53205
53207
|
return ve(), we("div", hse, [
|
|
53206
|
-
|
|
53208
|
+
q.hasLabelColor == "green" ? (ve(), we("span", pse, [
|
|
53207
53209
|
bse,
|
|
53208
53210
|
So(" " + mt(this.row[this.field]), 1)
|
|
53209
53211
|
])) : pt("", !0),
|
|
53210
|
-
|
|
53212
|
+
q.hasLabelColor == "red" ? (ve(), we("span", vse, [
|
|
53211
53213
|
yse,
|
|
53212
53214
|
So(" " + mt(this.row[this.field]), 1)
|
|
53213
53215
|
])) : pt("", !0),
|
|
53214
|
-
|
|
53216
|
+
q.hasLabelColor == "yellow" ? (ve(), we("span", xse, [
|
|
53215
53217
|
wse,
|
|
53216
53218
|
So(" " + mt(this.row[this.field]), 1)
|
|
53217
53219
|
])) : pt("", !0),
|
|
53218
|
-
|
|
53220
|
+
q.hasLabelColor == "default" ? (ve(), we("span", Cse, [
|
|
53219
53221
|
Sse,
|
|
53220
53222
|
So(" " + mt(this.row[this.field]), 1)
|
|
53221
53223
|
])) : pt("", !0),
|
|
53222
|
-
|
|
53224
|
+
q.hasLabelColor == "animate" ? (ve(), we("span", _se, [
|
|
53223
53225
|
kse,
|
|
53224
53226
|
So(" " + mt(this.row[this.field]), 1)
|
|
53225
53227
|
])) : pt("", !0)
|
|
@@ -53247,39 +53249,39 @@ const dle = /* @__PURE__ */ Jr(gse, [["render", Tse]]), Ese = {
|
|
|
53247
53249
|
}
|
|
53248
53250
|
}
|
|
53249
53251
|
}, Ase = { class: "flex flex-wrap gap-2 text-nowrap lg:justify-center" };
|
|
53250
|
-
function Dse(O, me, se, Ae, he,
|
|
53252
|
+
function Dse(O, me, se, Ae, he, q) {
|
|
53251
53253
|
return ve(), we("div", Ase, [
|
|
53252
|
-
|
|
53254
|
+
q.hasLabelColor == "Default" ? (ve(), we("span", {
|
|
53253
53255
|
key: 0,
|
|
53254
|
-
class: rn(["bg-blue-100 text-blue-800 font-medium me-2 px-2.5 py-0.5 dark:bg-blue-900 dark:text-blue-300 border-blue-400",
|
|
53256
|
+
class: rn(["bg-blue-100 text-blue-800 font-medium me-2 px-2.5 py-0.5 dark:bg-blue-900 dark:text-blue-300 border-blue-400", q.badgeType])
|
|
53255
53257
|
}, mt(this.row[this.field]), 3)) : pt("", !0),
|
|
53256
|
-
|
|
53258
|
+
q.hasLabelColor == "Dark" ? (ve(), we("span", {
|
|
53257
53259
|
key: 1,
|
|
53258
|
-
class: rn(["bg-gray-100 text-gray-800 font-medium me-2 px-2.5 py-0.5 dark:bg-gray-700 dark:text-gray-300 border-gray-500",
|
|
53260
|
+
class: rn(["bg-gray-100 text-gray-800 font-medium me-2 px-2.5 py-0.5 dark:bg-gray-700 dark:text-gray-300 border-gray-500", q.badgeType])
|
|
53259
53261
|
}, mt(this.row[this.field]), 3)) : pt("", !0),
|
|
53260
|
-
|
|
53262
|
+
q.hasLabelColor == "Red" ? (ve(), we("span", {
|
|
53261
53263
|
key: 2,
|
|
53262
|
-
class: rn(["bg-red-100 text-red-800 font-medium me-2 px-2.5 py-0.5 dark:bg-red-900 dark:text-red-300 border-red-400",
|
|
53264
|
+
class: rn(["bg-red-100 text-red-800 font-medium me-2 px-2.5 py-0.5 dark:bg-red-900 dark:text-red-300 border-red-400", q.badgeType])
|
|
53263
53265
|
}, mt(this.row[this.field]), 3)) : pt("", !0),
|
|
53264
|
-
|
|
53266
|
+
q.hasLabelColor == "Green" ? (ve(), we("span", {
|
|
53265
53267
|
key: 3,
|
|
53266
|
-
class: rn(["bg-green-100 text-green-800 font-medium me-2 px-2.5 py-0.5 dark:bg-green-900 dark:text-green-300 border-green-400",
|
|
53268
|
+
class: rn(["bg-green-100 text-green-800 font-medium me-2 px-2.5 py-0.5 dark:bg-green-900 dark:text-green-300 border-green-400", q.badgeType])
|
|
53267
53269
|
}, mt(this.row[this.field]), 3)) : pt("", !0),
|
|
53268
|
-
|
|
53270
|
+
q.hasLabelColor == "Yellow" ? (ve(), we("span", {
|
|
53269
53271
|
key: 4,
|
|
53270
|
-
class: rn(["bg-yellow-100 text-yellow-800 font-medium me-2 px-2.5 py-0.5 dark:bg-yellow-900 dark:text-yellow-300 border-yellow-300",
|
|
53272
|
+
class: rn(["bg-yellow-100 text-yellow-800 font-medium me-2 px-2.5 py-0.5 dark:bg-yellow-900 dark:text-yellow-300 border-yellow-300", q.badgeType])
|
|
53271
53273
|
}, mt(this.row[this.field]), 3)) : pt("", !0),
|
|
53272
|
-
|
|
53274
|
+
q.hasLabelColor == "Indigo" ? (ve(), we("span", {
|
|
53273
53275
|
key: 5,
|
|
53274
|
-
class: rn(["bg-indigo-100 text-indigo-800 font-medium me-2 px-2.5 py-0.5 dark:bg-indigo-900 dark:text-indigo-300 border-indigo-400",
|
|
53276
|
+
class: rn(["bg-indigo-100 text-indigo-800 font-medium me-2 px-2.5 py-0.5 dark:bg-indigo-900 dark:text-indigo-300 border-indigo-400", q.badgeType])
|
|
53275
53277
|
}, mt(this.row[this.field]), 3)) : pt("", !0),
|
|
53276
|
-
|
|
53278
|
+
q.hasLabelColor == "Purple" ? (ve(), we("span", {
|
|
53277
53279
|
key: 6,
|
|
53278
|
-
class: rn(["bg-purple-100 text-purple-800 font-medium me-2 px-2.5 py-0.5 dark:bg-purple-900 dark:text-purple-300 border-purple-400",
|
|
53280
|
+
class: rn(["bg-purple-100 text-purple-800 font-medium me-2 px-2.5 py-0.5 dark:bg-purple-900 dark:text-purple-300 border-purple-400", q.badgeType])
|
|
53279
53281
|
}, mt(this.row[this.field]), 3)) : pt("", !0),
|
|
53280
|
-
|
|
53282
|
+
q.hasLabelColor == "Pink" ? (ve(), we("span", {
|
|
53281
53283
|
key: 7,
|
|
53282
|
-
class: rn(["bg-pink-100 text-pink-800 font-medium me-2 px-2.5 py-0.5 dark:bg-pink-900 dark:text-pink-300 border-pink-400",
|
|
53284
|
+
class: rn(["bg-pink-100 text-pink-800 font-medium me-2 px-2.5 py-0.5 dark:bg-pink-900 dark:text-pink-300 border-pink-400", q.badgeType])
|
|
53283
53285
|
}, mt(this.row[this.field]), 3)) : pt("", !0)
|
|
53284
53286
|
]);
|
|
53285
53287
|
}
|
|
@@ -53318,27 +53320,27 @@ const mle = /* @__PURE__ */ Jr(Ese, [["render", Dse]]), Ose = {
|
|
|
53318
53320
|
/* @__PURE__ */ P("span", { class: "absolute inline-flex w-full h-full bg-blue-500 rounded-full animate-ping" }),
|
|
53319
53321
|
/* @__PURE__ */ P("span", { class: "relative inline-flex w-2 h-2 bg-blue-500 rounded-full" })
|
|
53320
53322
|
], -1);
|
|
53321
|
-
function zse(O, me, se, Ae, he,
|
|
53323
|
+
function zse(O, me, se, Ae, he, q) {
|
|
53322
53324
|
return ve(), we("div", Rse, [
|
|
53323
|
-
|
|
53325
|
+
q.hasLabelColor == "green" ? (ve(), we("span", $se, [
|
|
53324
53326
|
Mse,
|
|
53325
|
-
So(" " + mt(
|
|
53327
|
+
So(" " + mt(q.getLabel), 1)
|
|
53326
53328
|
])) : pt("", !0),
|
|
53327
|
-
|
|
53329
|
+
q.hasLabelColor == "red" ? (ve(), we("span", Pse, [
|
|
53328
53330
|
Nse,
|
|
53329
|
-
So(" " + mt(
|
|
53331
|
+
So(" " + mt(q.getLabel), 1)
|
|
53330
53332
|
])) : pt("", !0),
|
|
53331
|
-
|
|
53333
|
+
q.hasLabelColor == "yellow" ? (ve(), we("span", Bse, [
|
|
53332
53334
|
Ise,
|
|
53333
|
-
So(" " + mt(
|
|
53335
|
+
So(" " + mt(q.getLabel), 1)
|
|
53334
53336
|
])) : pt("", !0),
|
|
53335
|
-
|
|
53337
|
+
q.hasLabelColor == "default" ? (ve(), we("span", Lse, [
|
|
53336
53338
|
Fse,
|
|
53337
|
-
So(" " + mt(
|
|
53339
|
+
So(" " + mt(q.getLabel), 1)
|
|
53338
53340
|
])) : pt("", !0),
|
|
53339
|
-
|
|
53341
|
+
q.hasLabelColor == "animate" ? (ve(), we("span", Hse, [
|
|
53340
53342
|
Vse,
|
|
53341
|
-
So(" " + mt(
|
|
53343
|
+
So(" " + mt(q.getLabel), 1)
|
|
53342
53344
|
])) : pt("", !0)
|
|
53343
53345
|
]);
|
|
53344
53346
|
}
|
|
@@ -53350,13 +53352,13 @@ const fle = /* @__PURE__ */ Jr(Ose, [["render", zse]]), Use = {
|
|
|
53350
53352
|
return "";
|
|
53351
53353
|
const O = new Date(this.row[this.field]), me = O.getFullYear(), se = O.toLocaleString("default", { month: "long" }), Ae = O.getDate();
|
|
53352
53354
|
let he = O.getHours();
|
|
53353
|
-
const
|
|
53354
|
-
return he = he % 12, he = he || 12, `${se} ${Ae}, ${me}, ${he}:${
|
|
53355
|
+
const q = O.getMinutes(), Ee = O.getSeconds(), J = he >= 12 ? "pm" : "am";
|
|
53356
|
+
return he = he % 12, he = he || 12, `${se} ${Ae}, ${me}, ${he}:${q}:${Ee} ${J}`;
|
|
53355
53357
|
}
|
|
53356
53358
|
}
|
|
53357
53359
|
}, Wse = { class: "w-full" };
|
|
53358
|
-
function Zse(O, me, se, Ae, he,
|
|
53359
|
-
return ve(), we("div", Wse, mt(
|
|
53360
|
+
function Zse(O, me, se, Ae, he, q) {
|
|
53361
|
+
return ve(), we("div", Wse, mt(q.formattedDate), 1);
|
|
53360
53362
|
}
|
|
53361
53363
|
const gle = /* @__PURE__ */ Jr(Use, [["render", Zse]]), jse = {
|
|
53362
53364
|
props: ["field", "row", "tdProps"],
|
|
@@ -53369,8 +53371,8 @@ const gle = /* @__PURE__ */ Jr(Use, [["render", Zse]]), jse = {
|
|
|
53369
53371
|
}
|
|
53370
53372
|
}
|
|
53371
53373
|
}, Gse = { class: "w-full" };
|
|
53372
|
-
function qse(O, me, se, Ae, he,
|
|
53373
|
-
return ve(), we("div", Gse, mt(
|
|
53374
|
+
function qse(O, me, se, Ae, he, q) {
|
|
53375
|
+
return ve(), we("div", Gse, mt(q.formattedDate), 1);
|
|
53374
53376
|
}
|
|
53375
53377
|
const hle = /* @__PURE__ */ Jr(jse, [["render", qse]]), Kse = {
|
|
53376
53378
|
props: ["field", "row", "tdProps"]
|
|
@@ -53387,7 +53389,7 @@ const hle = /* @__PURE__ */ Jr(jse, [["render", qse]]), Kse = {
|
|
|
53387
53389
|
key: 2,
|
|
53388
53390
|
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"
|
|
53389
53391
|
}, nre = /* @__PURE__ */ P("span", { class: "w-2 h-2 bg-green-500 rounded-full me-1" }, null, -1);
|
|
53390
|
-
function ore(O, me, se, Ae, he,
|
|
53392
|
+
function ore(O, me, se, Ae, he, q) {
|
|
53391
53393
|
return ve(), we("div", Yse, [
|
|
53392
53394
|
se.row[se.field] === 0 ? (ve(), we("span", Xse, [
|
|
53393
53395
|
Jse,
|
|
@@ -53412,7 +53414,7 @@ const ple = /* @__PURE__ */ Jr(Kse, [["render", ore]]), sre = {
|
|
|
53412
53414
|
style: { "max-width": "200px" },
|
|
53413
53415
|
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"
|
|
53414
53416
|
};
|
|
53415
|
-
function lre(O, me, se, Ae, he,
|
|
53417
|
+
function lre(O, me, se, Ae, he, q) {
|
|
53416
53418
|
return se.row[se.field] ? (ve(), we("div", rre, [
|
|
53417
53419
|
P("pre", are, " " + mt(se.row[se.field]) + `
|
|
53418
53420
|
`, 1)
|
|
@@ -53440,7 +53442,7 @@ const ble = /* @__PURE__ */ Jr(sre, [["render", lre]]), cre = {
|
|
|
53440
53442
|
class: "hidden sm:inline-block sm:align-middle sm:h-screen",
|
|
53441
53443
|
"aria-hidden": "true"
|
|
53442
53444
|
}, "", -1), fre = { 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" }, gre = { class: "px-4 pt-5 pb-4 sm:p-6 sm:pb-4" }, hre = { class: "sm:flex sm:items-start" }, pre = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left" }, bre = { class: "text-lg font-medium leading-6" }, vre = { class: "mt-2" }, yre = { 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" };
|
|
53443
|
-
function xre(O, me, se, Ae, he,
|
|
53445
|
+
function xre(O, me, se, Ae, he, q) {
|
|
53444
53446
|
return se.isOpen ? (ve(), we("div", ire, [
|
|
53445
53447
|
P("div", ure, [
|
|
53446
53448
|
dre,
|
|
@@ -53458,12 +53460,12 @@ function xre(O, me, se, Ae, he, K) {
|
|
|
53458
53460
|
]),
|
|
53459
53461
|
P("div", yre, [
|
|
53460
53462
|
P("button", {
|
|
53461
|
-
onClick: me[0] || (me[0] = (...Ee) =>
|
|
53463
|
+
onClick: me[0] || (me[0] = (...Ee) => q.confirmAction && q.confirmAction(...Ee)),
|
|
53462
53464
|
type: "button",
|
|
53463
53465
|
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"
|
|
53464
53466
|
}, mt(se.button_text), 1),
|
|
53465
53467
|
P("button", {
|
|
53466
|
-
onClick: me[1] || (me[1] = (...Ee) =>
|
|
53468
|
+
onClick: me[1] || (me[1] = (...Ee) => q.cancelAction && q.cancelAction(...Ee)),
|
|
53467
53469
|
type: "button",
|
|
53468
53470
|
class: "inline-flex justify-center w-full px-4 py-2 mt-3 text-base font-medium text-gray-700 bg-white border border-gray-300 rounded-md shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"
|
|
53469
53471
|
}, " Cancel ")
|
|
@@ -53492,7 +53494,7 @@ const vle = /* @__PURE__ */ Jr(cre, [["render", xre]]), wre = {
|
|
|
53492
53494
|
}
|
|
53493
53495
|
},
|
|
53494
53496
|
setup(O, { expose: me }) {
|
|
53495
|
-
const se = Wo(""), Ae = Wo(""), he = Wo(""),
|
|
53497
|
+
const se = Wo(""), Ae = Wo(""), he = Wo(""), q = Wo("Cancel"), Ee = Wo(!1), J = Wo(void 0), Be = Wo(void 0), ft = (zn = {}) => (se.value = zn.title, Ae.value = zn.message, he.value = zn.okButton, zn.cancelButton && (q.value = zn.cancelButton), Ee.value = !0, new Promise((Zo, ir) => {
|
|
53496
53498
|
J.value = Zo, Be.value = ir;
|
|
53497
53499
|
})), jt = () => {
|
|
53498
53500
|
Ee.value = !1, J.value(!0);
|
|
@@ -53526,7 +53528,7 @@ const vle = /* @__PURE__ */ Jr(cre, [["render", xre]]), wre = {
|
|
|
53526
53528
|
onClick: xn,
|
|
53527
53529
|
type: "button",
|
|
53528
53530
|
class: "inline-flex justify-center w-full px-4 py-2 mt-3 text-base font-medium text-gray-700 bg-white border border-gray-300 rounded-md shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"
|
|
53529
|
-
}, mt(
|
|
53531
|
+
}, mt(q.value), 1)
|
|
53530
53532
|
])
|
|
53531
53533
|
])
|
|
53532
53534
|
])
|
|
@@ -53583,8 +53585,8 @@ const vle = /* @__PURE__ */ Jr(cre, [["render", xre]]), wre = {
|
|
|
53583
53585
|
}
|
|
53584
53586
|
},
|
|
53585
53587
|
setup(O) {
|
|
53586
|
-
const me = O, se = Wo(!1), Ae = (
|
|
53587
|
-
navigator.clipboard.writeText(
|
|
53588
|
+
const me = O, se = Wo(!1), Ae = (q) => {
|
|
53589
|
+
navigator.clipboard.writeText(q).then(function() {
|
|
53588
53590
|
se.value = !0, setTimeout(() => {
|
|
53589
53591
|
se.value = !1;
|
|
53590
53592
|
}, 2e3);
|
|
@@ -53592,7 +53594,7 @@ const vle = /* @__PURE__ */ Jr(cre, [["render", xre]]), wre = {
|
|
|
53592
53594
|
console.error("Error copying to clipboard: ", Ee);
|
|
53593
53595
|
});
|
|
53594
53596
|
}, he = vc(() => me.code);
|
|
53595
|
-
return (
|
|
53597
|
+
return (q, Ee) => (ve(), we("div", Mre, [
|
|
53596
53598
|
P("div", Pre, [
|
|
53597
53599
|
P("p", Nre, mt(O.label_name), 1)
|
|
53598
53600
|
]),
|
|
@@ -53663,8 +53665,8 @@ const vle = /* @__PURE__ */ Jr(cre, [["render", xre]]), wre = {
|
|
|
53663
53665
|
}
|
|
53664
53666
|
},
|
|
53665
53667
|
setup(O) {
|
|
53666
|
-
const me = O, se = Wo(!1), Ae = (
|
|
53667
|
-
navigator.clipboard.writeText(
|
|
53668
|
+
const me = O, se = Wo(!1), Ae = (q) => {
|
|
53669
|
+
navigator.clipboard.writeText(q).then(function() {
|
|
53668
53670
|
se.value = !0, setTimeout(() => {
|
|
53669
53671
|
se.value = !1;
|
|
53670
53672
|
}, 2e3);
|
|
@@ -53672,7 +53674,7 @@ const vle = /* @__PURE__ */ Jr(cre, [["render", xre]]), wre = {
|
|
|
53672
53674
|
console.error("Error copying to clipboard: ", Ee);
|
|
53673
53675
|
});
|
|
53674
53676
|
}, he = vc(() => me.code);
|
|
53675
|
-
return (
|
|
53677
|
+
return (q, Ee) => (ve(), we("div", Kre, [
|
|
53676
53678
|
P("div", Yre, [
|
|
53677
53679
|
P("label", Xre, mt(O.label_name), 1)
|
|
53678
53680
|
]),
|
|
@@ -53774,7 +53776,7 @@ const vle = /* @__PURE__ */ Jr(cre, [["render", xre]]), wre = {
|
|
|
53774
53776
|
const se = me, Ae = () => {
|
|
53775
53777
|
se("reconnect");
|
|
53776
53778
|
};
|
|
53777
|
-
return (he,
|
|
53779
|
+
return (he, q) => (ve(), we("div", pae, [
|
|
53778
53780
|
O.status === 0 ? (ve(), we("span", bae, [
|
|
53779
53781
|
vae,
|
|
53780
53782
|
So(" Connecting")
|