@dejwcake/craftable 2.3.0 → 2.5.0
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/index.cjs +1 -1
- package/dist/index.mjs +690 -524
- package/package.json +1 -1
- package/src/components/listing/BulkOperationsBar.vue +19 -4
- package/src/components/listing/ForceDeleteButton.vue +57 -0
- package/src/components/listing/RestoreButton.vue +62 -0
- package/src/components/listing/ShowDeleted.vue +28 -0
- package/src/composables/useBaseListing.js +64 -13
- package/src/index.js +3 -0
package/dist/index.mjs
CHANGED
|
@@ -60,12 +60,12 @@ function tt(e, t = "—") {
|
|
|
60
60
|
].filter(([e]) => e > 0);
|
|
61
61
|
return r.length === 0 ? "0s" : r.map(([e, t]) => `${e}${t}`).join(" ");
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function nt(e = "UTC", t = "YYYY-MM-DD HH:mm:ss") {
|
|
64
64
|
return H().tz(e).format(t);
|
|
65
65
|
}
|
|
66
66
|
//#endregion
|
|
67
67
|
//#region node_modules/date-fns/locale/en-US/_lib/formatDistance.js
|
|
68
|
-
var
|
|
68
|
+
var rt = {
|
|
69
69
|
lessThanXSeconds: {
|
|
70
70
|
one: "less than a second",
|
|
71
71
|
other: "less than {{count}} seconds"
|
|
@@ -127,10 +127,10 @@ var nt = {
|
|
|
127
127
|
one: "almost 1 year",
|
|
128
128
|
other: "almost {{count}} years"
|
|
129
129
|
}
|
|
130
|
-
},
|
|
131
|
-
let r, i =
|
|
130
|
+
}, it = (e, t, n) => {
|
|
131
|
+
let r, i = rt[e];
|
|
132
132
|
return r = typeof i == "string" ? i : t === 1 ? i.one : i.other.replace("{{count}}", t.toString()), n?.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
|
|
133
|
-
},
|
|
133
|
+
}, at = {
|
|
134
134
|
date: e({
|
|
135
135
|
formats: {
|
|
136
136
|
full: "EEEE, MMMM do, y",
|
|
@@ -158,18 +158,18 @@ var nt = {
|
|
|
158
158
|
},
|
|
159
159
|
defaultWidth: "full"
|
|
160
160
|
})
|
|
161
|
-
},
|
|
161
|
+
}, ot = {
|
|
162
162
|
lastWeek: "'last' eeee 'at' p",
|
|
163
163
|
yesterday: "'yesterday at' p",
|
|
164
164
|
today: "'today at' p",
|
|
165
165
|
tomorrow: "'tomorrow at' p",
|
|
166
166
|
nextWeek: "eeee 'at' p",
|
|
167
167
|
other: "P"
|
|
168
|
-
},
|
|
168
|
+
}, st = {
|
|
169
169
|
code: "en-US",
|
|
170
|
-
formatDistance:
|
|
171
|
-
formatLong:
|
|
172
|
-
formatRelative: (e, t, n, r) =>
|
|
170
|
+
formatDistance: it,
|
|
171
|
+
formatLong: at,
|
|
172
|
+
formatRelative: (e, t, n, r) => ot[e],
|
|
173
173
|
localize: {
|
|
174
174
|
ordinalNumber: (e, t) => {
|
|
175
175
|
let n = Number(e), r = n % 100;
|
|
@@ -493,46 +493,46 @@ var nt = {
|
|
|
493
493
|
weekStartsOn: 0,
|
|
494
494
|
firstWeekContainsDate: 1
|
|
495
495
|
}
|
|
496
|
-
},
|
|
497
|
-
function
|
|
498
|
-
return
|
|
496
|
+
}, ct = st;
|
|
497
|
+
function J() {
|
|
498
|
+
return ct;
|
|
499
499
|
}
|
|
500
|
-
async function
|
|
500
|
+
async function lt() {
|
|
501
501
|
let e = document.documentElement.lang || "en", t = {
|
|
502
502
|
sk: () => import("./sk-Cee4uHgG.js"),
|
|
503
503
|
cs: () => import("./cs-ny3teKR0.js"),
|
|
504
|
-
en: async () => ({ enUS:
|
|
504
|
+
en: async () => ({ enUS: st }),
|
|
505
505
|
de: () => import("./de-DRctuPTq.js"),
|
|
506
506
|
fr: () => import("./fr-C4Eic4QK.js"),
|
|
507
507
|
es: () => import("./es-BufozPLe.js"),
|
|
508
508
|
pl: () => import("./pl-BvOLP6Vq.js"),
|
|
509
509
|
hu: () => import("./hu-Da01tbQE.js")
|
|
510
510
|
}, n = await (t[e] || t.en)();
|
|
511
|
-
|
|
511
|
+
ct = n.default || n[Object.keys(n)[0]];
|
|
512
512
|
}
|
|
513
513
|
//#endregion
|
|
514
514
|
//#region src/composables/useBaseForm.js
|
|
515
|
-
var
|
|
516
|
-
function
|
|
515
|
+
var ut = window.axios;
|
|
516
|
+
function dt(e, t = {}) {
|
|
517
517
|
let n = p(), r = w(e.data && Object.keys(e.data).length > 0 ? { ...e.data } : {}), i = w([]), a = w([]), s = w(!1), c = w(""), l = w(!1), u = w(window.innerWidth < (e.responsiveBreakpoint || 850)), { setErrors: d, errors: f } = z(), m = w({
|
|
518
518
|
enableTimePicker: !1,
|
|
519
519
|
enableSeconds: !1,
|
|
520
520
|
modelType: "yyyy-MM-dd HH:mm:ss",
|
|
521
521
|
format: "dd.MM.yyyy",
|
|
522
|
-
locale:
|
|
522
|
+
locale: J()
|
|
523
523
|
}), h = w({
|
|
524
524
|
timePicker: !0,
|
|
525
525
|
enableTimePicker: !0,
|
|
526
526
|
enableSeconds: !1,
|
|
527
527
|
modelType: "HH:mm:ss",
|
|
528
528
|
format: "HH:mm",
|
|
529
|
-
locale:
|
|
529
|
+
locale: J()
|
|
530
530
|
}), g = w({
|
|
531
531
|
enableTimePicker: !0,
|
|
532
532
|
enableSeconds: !1,
|
|
533
533
|
modelType: "yyyy-MM-dd HH:mm:ss",
|
|
534
534
|
format: "dd.MM.yyyy HH:mm",
|
|
535
|
-
locale:
|
|
535
|
+
locale: J()
|
|
536
536
|
}), _ = o(() => e.locales || []), v = o(() => e.defaultLocale || (_.value.length > 0 ? _.value[0] : "")), y = o(() => _.value.filter((e) => e !== v.value)), x = o(() => y.value.some((e) => Object.keys(f.value).some((t) => t.endsWith("_" + e) || t.startsWith(e + "_"))));
|
|
537
537
|
_.value.length > 0 && (c.value = v.value);
|
|
538
538
|
function S() {
|
|
@@ -573,7 +573,7 @@ function ut(e, t = {}) {
|
|
|
573
573
|
for (let [t, r] of Object.entries(n)) (!_.value.includes(t) || r && Object.keys(r).length > 0) && (e[t] = r);
|
|
574
574
|
n = e;
|
|
575
575
|
}
|
|
576
|
-
|
|
576
|
+
ut.post(e.action, n).then((e) => {
|
|
577
577
|
E(e.data);
|
|
578
578
|
}).catch((e) => {
|
|
579
579
|
D(e.response?.data || {});
|
|
@@ -643,8 +643,8 @@ function ut(e, t = {}) {
|
|
|
643
643
|
}
|
|
644
644
|
//#endregion
|
|
645
645
|
//#region src/composables/useBaseAuth.js
|
|
646
|
-
var
|
|
647
|
-
function
|
|
646
|
+
var ft = window.axios;
|
|
647
|
+
function Y(e, t = {}) {
|
|
648
648
|
let n = w(t.formDefaults ? { ...t.formDefaults } : {}), r = w(!1), i = w(""), { setErrors: a, errors: o } = z();
|
|
649
649
|
async function s() {
|
|
650
650
|
if (t.validationSchema) {
|
|
@@ -660,7 +660,7 @@ function X(e, t = {}) {
|
|
|
660
660
|
for (let n of Object.keys(t.validationSchema)) r[n] = e[n] || void 0;
|
|
661
661
|
if (a(r), Object.keys(e).length > 0) return !1;
|
|
662
662
|
}
|
|
663
|
-
r.value = !0, i.value = "",
|
|
663
|
+
r.value = !0, i.value = "", ft.post(e.action, n.value).then((e) => {
|
|
664
664
|
c(e.data);
|
|
665
665
|
}).catch((e) => {
|
|
666
666
|
l(e.response?.data || {});
|
|
@@ -691,8 +691,8 @@ function X(e, t = {}) {
|
|
|
691
691
|
}
|
|
692
692
|
//#endregion
|
|
693
693
|
//#region src/composables/useBaseListing.js
|
|
694
|
-
var
|
|
695
|
-
function
|
|
694
|
+
var X = window.axios;
|
|
695
|
+
function pt(e) {
|
|
696
696
|
let { cookies: t } = re(), n = C({
|
|
697
697
|
state: {
|
|
698
698
|
per_page: t.get("per_page") || 10,
|
|
@@ -702,158 +702,191 @@ function ft(e) {
|
|
|
702
702
|
to: 10
|
|
703
703
|
},
|
|
704
704
|
options: { alwaysShowPrevNext: !0 }
|
|
705
|
-
}), r =
|
|
705
|
+
}), r = {
|
|
706
706
|
column: "id",
|
|
707
707
|
direction: "asc"
|
|
708
|
-
}
|
|
708
|
+
}, i = C({ ...r }), a = C({}), s = w(""), c = w(null), l = w(nt(e.timezone || "UTC")), u = C({}), d = w(!1), f = {
|
|
709
|
+
confirm_title: "Warning!",
|
|
710
|
+
confirm_text: "Are you sure?",
|
|
711
|
+
confirm_btn: "Yes, confirm",
|
|
712
|
+
cancel_btn: "Cancel"
|
|
713
|
+
}, p = C({
|
|
709
714
|
show: !1,
|
|
710
715
|
onConfirm: null,
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
cancel_btn: "Cancel"
|
|
716
|
-
}
|
|
717
|
-
}), f = setInterval(() => {
|
|
718
|
-
c.value = J(e.timezone || "UTC");
|
|
716
|
+
variant: "danger",
|
|
717
|
+
translations: { ...f }
|
|
718
|
+
}), m = setInterval(() => {
|
|
719
|
+
l.value = nt(e.timezone || "UTC");
|
|
719
720
|
}, 1e3);
|
|
720
721
|
b(() => {
|
|
721
|
-
clearInterval(
|
|
722
|
+
clearInterval(m);
|
|
722
723
|
});
|
|
723
|
-
let
|
|
724
|
+
let h = o(() => Object.values(u).filter((e) => e === !0).length), g = o({
|
|
724
725
|
get() {
|
|
725
|
-
return
|
|
726
|
+
return !!a.trashed;
|
|
727
|
+
},
|
|
728
|
+
set(e) {
|
|
729
|
+
!e && i.column === "deleted_at" && Object.assign(i, r), E(), M("trashed", e ? 1 : "");
|
|
730
|
+
}
|
|
731
|
+
}), _ = o({
|
|
732
|
+
get() {
|
|
733
|
+
return h.value >= n.state.to - n.state.from + 1 && h.value > 0 && v();
|
|
726
734
|
},
|
|
727
735
|
set() {}
|
|
728
736
|
});
|
|
729
|
-
e.data == null ?
|
|
730
|
-
function
|
|
731
|
-
if (!
|
|
732
|
-
let e = Object.values(
|
|
737
|
+
e.data == null ? j() : N(e.data);
|
|
738
|
+
function v() {
|
|
739
|
+
if (!c.value) return !1;
|
|
740
|
+
let e = Object.values(c.value).map(({ id: e }) => e);
|
|
733
741
|
for (let t = 0; t < e.length; t++) {
|
|
734
742
|
let n = e[t];
|
|
735
|
-
if (
|
|
743
|
+
if (u[n] === void 0 || u[n] === !1) return !1;
|
|
736
744
|
}
|
|
737
745
|
return !0;
|
|
738
746
|
}
|
|
739
|
-
function
|
|
740
|
-
|
|
747
|
+
function y(e) {
|
|
748
|
+
u[e] === void 0 ? u[e] = !0 : u[e] = !u[e];
|
|
741
749
|
}
|
|
742
|
-
function
|
|
750
|
+
function x(e) {
|
|
743
751
|
let t = { params: { bulk: !0 } };
|
|
744
|
-
|
|
745
|
-
|
|
752
|
+
d.value = !0, Object.assign(t.params, a), X.get(e, t).then((e) => {
|
|
753
|
+
T(e.data.bulkItems);
|
|
746
754
|
}).catch((e) => {
|
|
747
755
|
G(e.response?.data?.message);
|
|
748
756
|
}).finally(() => {
|
|
749
|
-
|
|
757
|
+
d.value = !1;
|
|
750
758
|
});
|
|
751
759
|
}
|
|
752
|
-
function
|
|
753
|
-
if (!
|
|
754
|
-
let e = Object.values(
|
|
755
|
-
|
|
760
|
+
function S() {
|
|
761
|
+
if (!c.value) return;
|
|
762
|
+
let e = Object.values(c.value).map(({ id: e }) => e);
|
|
763
|
+
_.value ? E(e) : (d.value = !0, T(e), d.value = !1);
|
|
756
764
|
}
|
|
757
|
-
function
|
|
765
|
+
function T(e) {
|
|
758
766
|
e.forEach((e) => {
|
|
759
|
-
|
|
767
|
+
u[e] = !0;
|
|
760
768
|
});
|
|
761
769
|
}
|
|
762
|
-
function
|
|
763
|
-
if (e === null) Object.keys(
|
|
770
|
+
function E(e = null) {
|
|
771
|
+
if (e === null) Object.keys(u).forEach((e) => delete u[e]);
|
|
764
772
|
else {
|
|
765
|
-
if (!
|
|
766
|
-
Object.values(
|
|
767
|
-
|
|
773
|
+
if (!c.value) return;
|
|
774
|
+
Object.values(c.value).map(({ id: e }) => e).forEach((e) => {
|
|
775
|
+
u[e] = !1;
|
|
768
776
|
});
|
|
769
777
|
}
|
|
770
778
|
}
|
|
771
|
-
function
|
|
772
|
-
let
|
|
773
|
-
|
|
774
|
-
...
|
|
779
|
+
function D(e, t = {}, n = "danger") {
|
|
780
|
+
let r = Object.keys(u).filter((e) => u[e]);
|
|
781
|
+
p.variant = n, p.translations = {
|
|
782
|
+
...f,
|
|
775
783
|
...t,
|
|
776
|
-
confirm_text: (t.confirm_text ||
|
|
777
|
-
},
|
|
778
|
-
|
|
779
|
-
Object.keys(
|
|
784
|
+
confirm_text: (t.confirm_text || f.confirm_text).replace(":number", h.value)
|
|
785
|
+
}, p.onConfirm = () => {
|
|
786
|
+
p.show = !1, X.post(e, { ids: r }).then((e) => {
|
|
787
|
+
Object.keys(u).forEach((e) => delete u[e]), j(), W(e.data.message);
|
|
780
788
|
}).catch((e) => {
|
|
781
789
|
G(e.response?.data?.message);
|
|
782
790
|
});
|
|
783
|
-
},
|
|
791
|
+
}, p.show = !0;
|
|
792
|
+
}
|
|
793
|
+
function O(e, t = {}) {
|
|
794
|
+
D(e, {
|
|
795
|
+
...t,
|
|
796
|
+
confirm_text: t.confirm_text || "Do you really want to delete :number selected items?"
|
|
797
|
+
});
|
|
798
|
+
}
|
|
799
|
+
function k(e, t = {}) {
|
|
800
|
+
D(e, {
|
|
801
|
+
confirm_btn: "Delete permanently",
|
|
802
|
+
...t,
|
|
803
|
+
confirm_text: t.confirm_text || "Delete :number selected items permanently? This cannot be undone."
|
|
804
|
+
});
|
|
784
805
|
}
|
|
785
|
-
function
|
|
786
|
-
|
|
806
|
+
function A(e, t = {}) {
|
|
807
|
+
D(e, {
|
|
808
|
+
confirm_title: "Restore",
|
|
809
|
+
confirm_btn: "Restore",
|
|
810
|
+
...t,
|
|
811
|
+
confirm_text: t.confirm_text || "Do you really want to restore :number selected items?"
|
|
812
|
+
}, "success");
|
|
813
|
+
}
|
|
814
|
+
function j(t) {
|
|
815
|
+
let r = { params: {
|
|
787
816
|
per_page: n.state.per_page,
|
|
788
817
|
page: n.state.current_page,
|
|
789
|
-
orderBy:
|
|
790
|
-
orderDirection:
|
|
818
|
+
orderBy: i.column,
|
|
819
|
+
orderDirection: i.direction
|
|
791
820
|
} };
|
|
792
|
-
t === !0 && (
|
|
793
|
-
|
|
821
|
+
t === !0 && (r.params.page = 1), Object.assign(r.params, a), X.get(e.url, r).then((e) => {
|
|
822
|
+
N(e.data.data);
|
|
794
823
|
}).catch((e) => {
|
|
795
824
|
G(e.response?.data?.message);
|
|
796
825
|
});
|
|
797
826
|
}
|
|
798
|
-
function
|
|
799
|
-
t === "" ? delete
|
|
827
|
+
function M(e, t) {
|
|
828
|
+
t === "" ? delete a[e] : a[e] = t, j(!0);
|
|
800
829
|
}
|
|
801
|
-
function
|
|
830
|
+
function N(e) {
|
|
802
831
|
if (e.current_page > e.last_page && e.total > 0) {
|
|
803
|
-
n.state.current_page = e.last_page,
|
|
832
|
+
n.state.current_page = e.last_page, j();
|
|
804
833
|
return;
|
|
805
834
|
}
|
|
806
|
-
|
|
835
|
+
c.value = e.data, n.state.current_page = e.current_page, n.state.last_page = e.last_page, n.state.total = e.total, n.state.per_page = e.per_page, n.state.to = e.to, n.state.from = e.from;
|
|
807
836
|
}
|
|
808
|
-
function
|
|
809
|
-
return
|
|
837
|
+
function P(e) {
|
|
838
|
+
return X.get(e).then((e) => {
|
|
810
839
|
e.data.message ? W(e.data.message) : e.data.redirect ? window.location.replace(e.data.redirect) : e.data.data?.path && window.location.replace(e.data.data.path);
|
|
811
840
|
}).catch((e) => {
|
|
812
841
|
G(e.response?.data?.message);
|
|
813
842
|
});
|
|
814
843
|
}
|
|
815
|
-
function
|
|
844
|
+
function F(e, t) {
|
|
816
845
|
return e.replace(":id", t.id);
|
|
817
846
|
}
|
|
818
|
-
function
|
|
819
|
-
|
|
847
|
+
function I({ column: e, direction: t }) {
|
|
848
|
+
i.column = e, i.direction = t, j();
|
|
820
849
|
}
|
|
821
|
-
function
|
|
822
|
-
n.state.current_page = e,
|
|
850
|
+
function L(e) {
|
|
851
|
+
n.state.current_page = e, j();
|
|
823
852
|
}
|
|
824
|
-
function
|
|
825
|
-
n.state.current_page = 1,
|
|
853
|
+
function R() {
|
|
854
|
+
n.state.current_page = 1, j(!0);
|
|
826
855
|
}
|
|
827
|
-
function
|
|
828
|
-
if (!
|
|
829
|
-
let t =
|
|
830
|
-
t !== -1 && (
|
|
856
|
+
function z(e) {
|
|
857
|
+
if (!c.value) return;
|
|
858
|
+
let t = c.value.findIndex((t) => t.id === e.id);
|
|
859
|
+
t !== -1 && (c.value[t] = e);
|
|
831
860
|
}
|
|
832
861
|
return {
|
|
833
862
|
pagination: n,
|
|
834
|
-
orderBy:
|
|
835
|
-
filters:
|
|
836
|
-
search:
|
|
837
|
-
collection:
|
|
838
|
-
now:
|
|
839
|
-
bulkItems:
|
|
840
|
-
bulkCheckingAllLoader:
|
|
841
|
-
confirmModal:
|
|
842
|
-
isClickedAll:
|
|
843
|
-
clickedBulkItemsCount:
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
863
|
+
orderBy: i,
|
|
864
|
+
filters: a,
|
|
865
|
+
search: s,
|
|
866
|
+
collection: c,
|
|
867
|
+
now: l,
|
|
868
|
+
bulkItems: u,
|
|
869
|
+
bulkCheckingAllLoader: d,
|
|
870
|
+
confirmModal: p,
|
|
871
|
+
isClickedAll: _,
|
|
872
|
+
clickedBulkItemsCount: h,
|
|
873
|
+
showDeleted: g,
|
|
874
|
+
onBulkItemClicked: y,
|
|
875
|
+
onBulkItemsClickedAll: x,
|
|
876
|
+
onBulkItemsClickedAllWithPagination: S,
|
|
877
|
+
onBulkItemsClickedAllUncheck: E,
|
|
878
|
+
bulkAction: D,
|
|
879
|
+
bulkDelete: O,
|
|
880
|
+
bulkForceDelete: k,
|
|
881
|
+
bulkRestore: A,
|
|
882
|
+
loadData: j,
|
|
883
|
+
filter: M,
|
|
884
|
+
resolveUrl: F,
|
|
885
|
+
getAction: P,
|
|
886
|
+
onSort: I,
|
|
887
|
+
onPageChange: L,
|
|
888
|
+
onPerPageChange: R,
|
|
889
|
+
onUpdateItem: z,
|
|
857
890
|
formatDate: K,
|
|
858
891
|
formatDatetime: q,
|
|
859
892
|
formatTime: Ze
|
|
@@ -861,14 +894,14 @@ function ft(e) {
|
|
|
861
894
|
}
|
|
862
895
|
//#endregion
|
|
863
896
|
//#region src/composables/useAdmin.js
|
|
864
|
-
var
|
|
865
|
-
function
|
|
897
|
+
var mt = window.axios;
|
|
898
|
+
function ht() {
|
|
866
899
|
let e = w(!1);
|
|
867
900
|
function t(t) {
|
|
868
901
|
e.value = !!t;
|
|
869
902
|
}
|
|
870
903
|
return x(() => {
|
|
871
|
-
|
|
904
|
+
mt.interceptors.request.use((e) => (t(!0), e), (e) => (t(!1), Promise.reject(e))), mt.interceptors.response.use((e) => (t(!1), e), (e) => (t(!1), Promise.reject(e)));
|
|
872
905
|
}), {
|
|
873
906
|
loading: e,
|
|
874
907
|
setLoading: t
|
|
@@ -876,7 +909,7 @@ function mt() {
|
|
|
876
909
|
}
|
|
877
910
|
//#endregion
|
|
878
911
|
//#region src/composables/useResponsiveColumns.js
|
|
879
|
-
var
|
|
912
|
+
var gt = [
|
|
880
913
|
{
|
|
881
914
|
minWidth: 1800,
|
|
882
915
|
maxPriority: 10
|
|
@@ -906,8 +939,8 @@ var ht = [
|
|
|
906
939
|
maxPriority: 0
|
|
907
940
|
}
|
|
908
941
|
];
|
|
909
|
-
function
|
|
910
|
-
let n = t.breakpoints ||
|
|
942
|
+
function _t(e, t = {}) {
|
|
943
|
+
let n = t.breakpoints || gt, r = w(10), i = null;
|
|
911
944
|
function a(e) {
|
|
912
945
|
for (let t of n) if (e >= t.minWidth) {
|
|
913
946
|
r.value = t.maxPriority;
|
|
@@ -935,31 +968,31 @@ function gt(e, t = {}) {
|
|
|
935
968
|
}
|
|
936
969
|
//#endregion
|
|
937
970
|
//#region src/components/form/MediaUpload.vue
|
|
938
|
-
var
|
|
971
|
+
var vt = { class: "base-upload" }, yt = {
|
|
939
972
|
key: 0,
|
|
940
973
|
class: "form-label d-flex align-items-center"
|
|
941
|
-
},
|
|
974
|
+
}, bt = { class: "fw-semibold upload-label-title" }, xt = {
|
|
942
975
|
key: 0,
|
|
943
976
|
class: "fa fa-lock ms-auto text-body-secondary"
|
|
944
|
-
},
|
|
977
|
+
}, St = ["value"], Ct = {
|
|
945
978
|
key: 0,
|
|
946
979
|
class: "dz-message"
|
|
947
|
-
},
|
|
980
|
+
}, wt = { class: "dz-image" }, Tt = ["src", "alt"], Et = {
|
|
948
981
|
key: 1,
|
|
949
982
|
class: "dz-file-icon"
|
|
950
|
-
},
|
|
983
|
+
}, Dt = { class: "dz-file-size" }, Ot = { class: "dz-file-name" }, kt = ["onClick"], At = { class: "dz-image" }, jt = ["src", "alt"], Mt = {
|
|
951
984
|
key: 1,
|
|
952
985
|
class: "dz-file-icon"
|
|
953
|
-
},
|
|
986
|
+
}, Nt = {
|
|
954
987
|
key: 0,
|
|
955
988
|
class: "dz-progress"
|
|
956
|
-
},
|
|
989
|
+
}, Pt = {
|
|
957
990
|
key: 1,
|
|
958
991
|
class: "dz-success-mark"
|
|
959
|
-
},
|
|
992
|
+
}, Ft = {
|
|
960
993
|
key: 2,
|
|
961
994
|
class: "dz-error-mark"
|
|
962
|
-
},
|
|
995
|
+
}, It = { class: "dz-file-size" }, Lt = { class: "dz-file-name" }, Rt = ["onClick"], zt = {
|
|
963
996
|
__name: "MediaUpload",
|
|
964
997
|
props: {
|
|
965
998
|
url: {
|
|
@@ -1121,40 +1154,40 @@ var _t = { class: "base-upload" }, vt = {
|
|
|
1121
1154
|
});
|
|
1122
1155
|
}), e;
|
|
1123
1156
|
}
|
|
1124
|
-
return t({ getFiles: V }), (t, n) => (S(), l("div",
|
|
1157
|
+
return t({ getFiles: V }), (t, n) => (S(), l("div", vt, [e.label ? (S(), l("label", yt, [
|
|
1125
1158
|
u("i", { class: _([a.value, "me-1 text-body-secondary"]) }, null, 2),
|
|
1126
|
-
u("span",
|
|
1159
|
+
u("span", bt, D(e.label), 1),
|
|
1127
1160
|
(S(!0), l(i, null, T(s.value, (e, t) => (S(), l("small", {
|
|
1128
1161
|
key: t,
|
|
1129
1162
|
class: "text-body-secondary fw-light ms-1"
|
|
1130
1163
|
}, "(" + D(e) + ")", 1))), 128)),
|
|
1131
|
-
e.isPrivate ? (S(), l("i",
|
|
1164
|
+
e.isPrivate ? (S(), l("i", xt)) : c("", !0)
|
|
1132
1165
|
])) : c("", !0), u("div", g(k(j)(), { class: ["vue3-dropzone dropzone", { "dz-drag-hover": k(N) }] }), [
|
|
1133
1166
|
u("input", v(m(k(M)())), null, 16),
|
|
1134
1167
|
u("input", {
|
|
1135
1168
|
type: "hidden",
|
|
1136
1169
|
name: "collection",
|
|
1137
1170
|
value: e.collection
|
|
1138
|
-
}, null, 8,
|
|
1139
|
-
b.value.length === 0 && d.value.length === 0 ? (S(), l("div",
|
|
1171
|
+
}, null, 8, St),
|
|
1172
|
+
b.value.length === 0 && d.value.length === 0 ? (S(), l("div", Ct, [...n[2] ||= [u("i", { class: "fa-solid fa-cloud-arrow-up" }, null, -1), u("p", null, "Drop files here or click to upload", -1)]])) : c("", !0),
|
|
1140
1173
|
(S(!0), l(i, null, T(f.value, (e, t) => (S(), l("div", {
|
|
1141
1174
|
key: "existing-" + (e.id || t),
|
|
1142
1175
|
class: _(["dz-preview dz-file-preview dz-existing", { "dz-deleted": e.deleted }])
|
|
1143
|
-
}, [u("div",
|
|
1176
|
+
}, [u("div", wt, [L(e) ? (S(), l("img", {
|
|
1144
1177
|
key: 0,
|
|
1145
1178
|
src: e.thumb_url,
|
|
1146
1179
|
alt: e.name
|
|
1147
|
-
}, null, 8,
|
|
1180
|
+
}, null, 8, Tt)) : (S(), l("div", Et, [u("i", { class: _(z(e)) }, null, 2), u("p", null, D(e.name), 1)]))]), u("div", {
|
|
1148
1181
|
class: "dz-hover-overlay",
|
|
1149
1182
|
onClick: n[0] ||= R(() => {}, ["stop"])
|
|
1150
1183
|
}, [
|
|
1151
|
-
u("span",
|
|
1152
|
-
u("span",
|
|
1184
|
+
u("span", Dt, D(I(e.size)), 1),
|
|
1185
|
+
u("span", Ot, D(e.name), 1),
|
|
1153
1186
|
u("button", {
|
|
1154
1187
|
type: "button",
|
|
1155
1188
|
class: "dz-remove-btn",
|
|
1156
1189
|
onClick: R((e) => P(t), ["stop"])
|
|
1157
|
-
}, "REMOVE", 8,
|
|
1190
|
+
}, "REMOVE", 8, kt)
|
|
1158
1191
|
])], 2))), 128)),
|
|
1159
1192
|
(S(!0), l(i, null, T(d.value, (e, t) => (S(), l("div", {
|
|
1160
1193
|
key: "new-" + t,
|
|
@@ -1163,40 +1196,40 @@ var _t = { class: "base-upload" }, vt = {
|
|
|
1163
1196
|
"dz-error": e.showError
|
|
1164
1197
|
}])
|
|
1165
1198
|
}, [
|
|
1166
|
-
u("div",
|
|
1199
|
+
u("div", At, [e.previewUrl ? (S(), l("img", {
|
|
1167
1200
|
key: 0,
|
|
1168
1201
|
src: e.previewUrl,
|
|
1169
1202
|
alt: e.file.name
|
|
1170
|
-
}, null, 8,
|
|
1171
|
-
e.uploading ? (S(), l("div",
|
|
1203
|
+
}, null, 8, jt)) : (S(), l("div", Mt, [u("i", { class: _(B(e.file.type)) }, null, 2), u("p", null, D(e.file.name), 1)]))]),
|
|
1204
|
+
e.uploading ? (S(), l("div", Nt, [u("span", {
|
|
1172
1205
|
class: "dz-upload",
|
|
1173
1206
|
style: y({ width: e.progress + "%" })
|
|
1174
1207
|
}, null, 4)])) : c("", !0),
|
|
1175
|
-
e.showSuccess ? (S(), l("div",
|
|
1176
|
-
e.showError ? (S(), l("div",
|
|
1208
|
+
e.showSuccess ? (S(), l("div", Pt, [...n[3] ||= [u("i", { class: "fa-solid fa-check" }, null, -1)]])) : c("", !0),
|
|
1209
|
+
e.showError ? (S(), l("div", Ft, [...n[4] ||= [u("i", { class: "fa-solid fa-xmark" }, null, -1)]])) : c("", !0),
|
|
1177
1210
|
!e.uploading && !e.showSuccess ? (S(), l("div", {
|
|
1178
1211
|
key: 3,
|
|
1179
1212
|
class: "dz-hover-overlay",
|
|
1180
1213
|
onClick: n[1] ||= R(() => {}, ["stop"])
|
|
1181
1214
|
}, [
|
|
1182
|
-
u("span",
|
|
1183
|
-
u("span",
|
|
1215
|
+
u("span", It, D(I(e.file.size)), 1),
|
|
1216
|
+
u("span", Lt, D(e.file.name), 1),
|
|
1184
1217
|
u("button", {
|
|
1185
1218
|
type: "button",
|
|
1186
1219
|
class: "dz-remove-btn",
|
|
1187
1220
|
onClick: R((e) => F(t), ["stop"])
|
|
1188
|
-
}, "REMOVE", 8,
|
|
1221
|
+
}, "REMOVE", 8, Rt)
|
|
1189
1222
|
])) : c("", !0)
|
|
1190
1223
|
], 2))), 128))
|
|
1191
1224
|
], 16)]));
|
|
1192
1225
|
}
|
|
1193
|
-
},
|
|
1226
|
+
}, Bt = { class: "tiptap-editor" }, Vt = {
|
|
1194
1227
|
key: 0,
|
|
1195
1228
|
class: "tiptap-toolbar"
|
|
1196
|
-
},
|
|
1229
|
+
}, Ht = ["selected"], Ut = ["value", "selected"], Wt = {
|
|
1197
1230
|
key: 0,
|
|
1198
1231
|
class: "tiptap-toolbar-divider"
|
|
1199
|
-
},
|
|
1232
|
+
}, Gt = ["disabled"], Kt = ["disabled"], qt = {
|
|
1200
1233
|
__name: "TiptapEditor",
|
|
1201
1234
|
props: {
|
|
1202
1235
|
modelValue: {
|
|
@@ -1277,14 +1310,14 @@ var _t = { class: "base-upload" }, vt = {
|
|
|
1277
1310
|
m.value.value = "";
|
|
1278
1311
|
});
|
|
1279
1312
|
}
|
|
1280
|
-
return (t, n) => (S(), l("div",
|
|
1313
|
+
return (t, n) => (S(), l("div", Bt, [k(s) ? (S(), l("div", Vt, [
|
|
1281
1314
|
u("select", {
|
|
1282
1315
|
class: "tiptap-heading-select",
|
|
1283
1316
|
onChange: n[0] ||= (e) => d(e)
|
|
1284
1317
|
}, [u("option", {
|
|
1285
1318
|
value: "0",
|
|
1286
1319
|
selected: !k(s).isActive("heading")
|
|
1287
|
-
}, "Paragraph", 8,
|
|
1320
|
+
}, "Paragraph", 8, Ht), (S(), l(i, null, T([
|
|
1288
1321
|
1,
|
|
1289
1322
|
2,
|
|
1290
1323
|
3,
|
|
@@ -1295,7 +1328,7 @@ var _t = { class: "base-upload" }, vt = {
|
|
|
1295
1328
|
key: e,
|
|
1296
1329
|
value: e,
|
|
1297
1330
|
selected: k(s).isActive("heading", { level: e })
|
|
1298
|
-
}, " H" + D(e), 9,
|
|
1331
|
+
}, " H" + D(e), 9, Ut)), 64))], 32),
|
|
1299
1332
|
u("button", {
|
|
1300
1333
|
type: "button",
|
|
1301
1334
|
class: _({ "is-active": k(s).isActive("bold") }),
|
|
@@ -1351,7 +1384,7 @@ var _t = { class: "base-upload" }, vt = {
|
|
|
1351
1384
|
style: { display: "none" },
|
|
1352
1385
|
onChange: v
|
|
1353
1386
|
}, null, 544),
|
|
1354
|
-
e.showTableControls ? (S(), l("span",
|
|
1387
|
+
e.showTableControls ? (S(), l("span", Wt)) : c("", !0),
|
|
1355
1388
|
e.showTableControls ? (S(), l("button", {
|
|
1356
1389
|
key: 1,
|
|
1357
1390
|
type: "button",
|
|
@@ -1368,13 +1401,13 @@ var _t = { class: "base-upload" }, vt = {
|
|
|
1368
1401
|
disabled: !k(s).can().undo(),
|
|
1369
1402
|
title: "Undo",
|
|
1370
1403
|
onClick: n[7] ||= (e) => k(s).chain().focus().undo().run()
|
|
1371
|
-
}, " ↩ ", 8,
|
|
1404
|
+
}, " ↩ ", 8, Gt),
|
|
1372
1405
|
u("button", {
|
|
1373
1406
|
type: "button",
|
|
1374
1407
|
disabled: !k(s).can().redo(),
|
|
1375
1408
|
title: "Redo",
|
|
1376
1409
|
onClick: n[8] ||= (e) => k(s).chain().focus().redo().run()
|
|
1377
|
-
}, " ↪ ", 8,
|
|
1410
|
+
}, " ↪ ", 8, Kt)
|
|
1378
1411
|
])) : c("", !0), f(k(ae), {
|
|
1379
1412
|
editor: k(s),
|
|
1380
1413
|
class: "tiptap-content"
|
|
@@ -1383,7 +1416,7 @@ var _t = { class: "base-upload" }, vt = {
|
|
|
1383
1416
|
};
|
|
1384
1417
|
//#endregion
|
|
1385
1418
|
//#region src/utils/ckeditorHelpers.js
|
|
1386
|
-
function
|
|
1419
|
+
function Jt(e) {
|
|
1387
1420
|
if (!e) return e;
|
|
1388
1421
|
let t = new DOMParser().parseFromString(e, "text/html"), n = !1;
|
|
1389
1422
|
return t.querySelectorAll("figure").forEach((e) => {
|
|
@@ -1393,14 +1426,14 @@ function qt(e) {
|
|
|
1393
1426
|
r && (r.style.width = t, r.style.height = "auto", n = !0);
|
|
1394
1427
|
}), n ? t.body.innerHTML : e;
|
|
1395
1428
|
}
|
|
1396
|
-
function
|
|
1429
|
+
function Yt(e, t) {
|
|
1397
1430
|
let n = { ...e };
|
|
1398
|
-
for (let r of Object.keys(t)) n[r] = t[r] && typeof t[r] == "object" && !Array.isArray(t[r]) && e[r] && typeof e[r] == "object" && !Array.isArray(e[r]) ?
|
|
1431
|
+
for (let r of Object.keys(t)) n[r] = t[r] && typeof t[r] == "object" && !Array.isArray(t[r]) && e[r] && typeof e[r] == "object" && !Array.isArray(e[r]) ? Yt(e[r], t[r]) : t[r];
|
|
1399
1432
|
return n;
|
|
1400
1433
|
}
|
|
1401
1434
|
//#endregion
|
|
1402
1435
|
//#region src/components/form/CkeditorEditor.vue
|
|
1403
|
-
var
|
|
1436
|
+
var Xt = { class: "ck-editor-wrapper" }, Zt = {
|
|
1404
1437
|
__name: "CkeditorEditor",
|
|
1405
1438
|
props: {
|
|
1406
1439
|
modelValue: {
|
|
@@ -1420,7 +1453,7 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
1420
1453
|
setup(e, { emit: t }) {
|
|
1421
1454
|
let n = window.axios, r = e, i = t, a = o({
|
|
1422
1455
|
get: () => r.modelValue ?? "",
|
|
1423
|
-
set: (e) => i("update:modelValue",
|
|
1456
|
+
set: (e) => i("update:modelValue", Jt(e))
|
|
1424
1457
|
});
|
|
1425
1458
|
function s(e) {
|
|
1426
1459
|
e.plugins.get("FileRepository").createUploadAdapter = (e) => new c(e, r.uploadUrl);
|
|
@@ -1561,8 +1594,8 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
1561
1594
|
class: "ck-heading_heading4"
|
|
1562
1595
|
}
|
|
1563
1596
|
] }
|
|
1564
|
-
}, d = o(() => r.config ?
|
|
1565
|
-
return (e, t) => (S(), l("div",
|
|
1597
|
+
}, d = o(() => r.config ? Yt(u, O(r.config)) : u);
|
|
1598
|
+
return (e, t) => (S(), l("div", Xt, [f(k(We), {
|
|
1566
1599
|
modelValue: a.value,
|
|
1567
1600
|
"onUpdate:modelValue": t[0] ||= (e) => a.value = e,
|
|
1568
1601
|
editor: k(_e),
|
|
@@ -1573,22 +1606,22 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
1573
1606
|
"config"
|
|
1574
1607
|
])]));
|
|
1575
1608
|
}
|
|
1576
|
-
},
|
|
1609
|
+
}, Qt = { class: "user-detail-tooltip d-inline-flex align-items-center" }, $t = {
|
|
1577
1610
|
key: 0,
|
|
1578
1611
|
class: "col-form-label text-body-secondary me-2 mb-0"
|
|
1579
|
-
},
|
|
1612
|
+
}, en = { class: "d-inline-flex align-items-center cursor-pointer" }, tn = ["src", "alt"], nn = {
|
|
1580
1613
|
key: 1,
|
|
1581
1614
|
class: "avatar-initials"
|
|
1582
|
-
},
|
|
1615
|
+
}, rn = {
|
|
1583
1616
|
key: 2,
|
|
1584
1617
|
class: "avatar-trigger-text"
|
|
1585
|
-
},
|
|
1618
|
+
}, an = { class: "avatar-full-name" }, on = {
|
|
1586
1619
|
key: 0,
|
|
1587
1620
|
class: "d-block user-info-span"
|
|
1588
|
-
},
|
|
1621
|
+
}, sn = { class: "user-detail-popper d-flex align-items-center" }, cn = { class: "user-avatar flex-shrink-0" }, ln = ["src", "alt"], un = {
|
|
1589
1622
|
key: 1,
|
|
1590
1623
|
class: "avatar-initials"
|
|
1591
|
-
},
|
|
1624
|
+
}, dn = { class: "user-info ms-3" }, fn = { key: 0 }, pn = { class: "text-uppercase" }, mn = ["href"], hn = { key: 1 }, gn = {
|
|
1592
1625
|
__name: "UserDetailTooltip",
|
|
1593
1626
|
props: {
|
|
1594
1627
|
user: {
|
|
@@ -1618,42 +1651,42 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
1618
1651
|
},
|
|
1619
1652
|
setup(e) {
|
|
1620
1653
|
let t = e, n = o(() => `${t.user.first_name.slice(0, 1)}${t.user.last_name.slice(0, 1)}`);
|
|
1621
|
-
return (t, r) => (S(), l("div",
|
|
1654
|
+
return (t, r) => (S(), l("div", Qt, [e.label ? (S(), l("label", $t, D(e.label) + " :", 1)) : c("", !0), f(k(Ge), {
|
|
1622
1655
|
arrow: "",
|
|
1623
1656
|
click: ""
|
|
1624
1657
|
}, {
|
|
1625
|
-
content: F(() => [u("div",
|
|
1658
|
+
content: F(() => [u("div", sn, [u("div", cn, [e.user.avatar_thumb_url ? (S(), l("img", {
|
|
1626
1659
|
key: 0,
|
|
1627
1660
|
src: e.user.avatar_thumb_url,
|
|
1628
1661
|
class: "avatar-photo",
|
|
1629
1662
|
alt: e.user.full_name
|
|
1630
|
-
}, null, 8,
|
|
1631
|
-
u("h3", null, [d(D(e.user.full_name) + " ", 1), e.userText ? (S(), l("small",
|
|
1663
|
+
}, null, 8, ln)) : (S(), l("div", un, D(n.value), 1))]), u("div", dn, [
|
|
1664
|
+
u("h3", null, [d(D(e.user.full_name) + " ", 1), e.userText ? (S(), l("small", fn, [r[0] ||= d(" | ", -1), u("strong", pn, D(e.userText), 1)])) : c("", !0)]),
|
|
1632
1665
|
e.user.email ? (S(), l("a", {
|
|
1633
1666
|
key: 0,
|
|
1634
1667
|
href: "mailto:" + e.user.email
|
|
1635
|
-
}, D(e.user.email), 9,
|
|
1636
|
-
e.datetimeText ? (S(), l("p",
|
|
1668
|
+
}, D(e.user.email), 9, mn)) : c("", !0),
|
|
1669
|
+
e.datetimeText ? (S(), l("p", hn, D(e.datetimeText), 1)) : c("", !0)
|
|
1637
1670
|
])])]),
|
|
1638
|
-
default: F(() => [u("div",
|
|
1671
|
+
default: F(() => [u("div", en, [e.user.avatar_thumb_url ? (S(), l("img", {
|
|
1639
1672
|
key: 0,
|
|
1640
1673
|
src: e.user.avatar_thumb_url,
|
|
1641
1674
|
class: "avatar-photo",
|
|
1642
1675
|
alt: e.user.full_name
|
|
1643
|
-
}, null, 8,
|
|
1676
|
+
}, null, 8, tn)) : (S(), l("div", nn, D(n.value), 1)), e.options.showFullNameLabel ? (S(), l("div", rn, [u("span", an, D(e.user.full_name), 1), e.datetime ? (S(), l("span", on, D(e.datetime), 1)) : c("", !0)])) : c("", !0)])]),
|
|
1644
1677
|
_: 1
|
|
1645
1678
|
})]));
|
|
1646
1679
|
}
|
|
1647
|
-
},
|
|
1680
|
+
}, _n = {
|
|
1648
1681
|
key: 0,
|
|
1649
1682
|
class: "row"
|
|
1650
|
-
},
|
|
1683
|
+
}, vn = { class: "col-sm" }, yn = { class: "pagination-caption" }, bn = { class: "col-sm-auto" }, xn = {
|
|
1651
1684
|
key: 0,
|
|
1652
1685
|
class: "page-link"
|
|
1653
|
-
},
|
|
1686
|
+
}, Sn = { "aria-hidden": "true" }, Cn = ["aria-label"], wn = { "aria-hidden": "true" }, Tn = ["onClick"], En = {
|
|
1654
1687
|
key: 0,
|
|
1655
1688
|
class: "page-link"
|
|
1656
|
-
},
|
|
1689
|
+
}, Dn = { "aria-hidden": "true" }, On = ["aria-label"], kn = { "aria-hidden": "true" }, An = {
|
|
1657
1690
|
__name: "Pagination",
|
|
1658
1691
|
props: {
|
|
1659
1692
|
pagination: {
|
|
@@ -1704,7 +1737,7 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
1704
1737
|
function g(e) {
|
|
1705
1738
|
n.pagination.current_page !== e && r("page-change", e);
|
|
1706
1739
|
}
|
|
1707
|
-
return (t, n) => e.pagination.total > 0 ? (S(), l("div",
|
|
1740
|
+
return (t, n) => e.pagination.total > 0 ? (S(), l("div", _n, [u("div", vn, [u("span", yn, D(s.value), 1)]), u("div", bn, [u("nav", null, [e.pagination.last_page > 1 ? (S(), l("ul", {
|
|
1708
1741
|
key: 0,
|
|
1709
1742
|
class: _(["pagination", p.value])
|
|
1710
1743
|
}, [
|
|
@@ -1714,13 +1747,13 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
1714
1747
|
disabled: e.pagination.current_page <= 1,
|
|
1715
1748
|
"page-item": !0
|
|
1716
1749
|
})
|
|
1717
|
-
}, [e.pagination.current_page <= 1 ? (S(), l("span",
|
|
1750
|
+
}, [e.pagination.current_page <= 1 ? (S(), l("span", xn, [u("span", Sn, D(e.translations.previous), 1)])) : c("", !0), e.pagination.current_page > 1 ? (S(), l("a", {
|
|
1718
1751
|
key: 1,
|
|
1719
1752
|
href: "#",
|
|
1720
1753
|
"aria-label": e.translations.previous,
|
|
1721
1754
|
class: "page-link",
|
|
1722
1755
|
onClick: n[0] ||= R((t) => g(e.pagination.current_page - 1), ["prevent"])
|
|
1723
|
-
}, [u("span",
|
|
1756
|
+
}, [u("span", wn, D(e.translations.previous), 1)], 8, Cn)) : c("", !0)], 2)) : c("", !0),
|
|
1724
1757
|
(S(!0), l(i, null, T(f.value, (t) => (S(), l("li", {
|
|
1725
1758
|
key: t,
|
|
1726
1759
|
class: _({
|
|
@@ -1731,23 +1764,23 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
1731
1764
|
href: "#",
|
|
1732
1765
|
class: "page-link",
|
|
1733
1766
|
onClick: R((e) => g(t), ["prevent"])
|
|
1734
|
-
}, D(t), 9,
|
|
1767
|
+
}, D(t), 9, Tn)], 2))), 128)),
|
|
1735
1768
|
h() ? (S(), l("li", {
|
|
1736
1769
|
key: 1,
|
|
1737
1770
|
class: _({
|
|
1738
1771
|
disabled: e.pagination.current_page === e.pagination.last_page || e.pagination.last_page === 0,
|
|
1739
1772
|
"page-item": !0
|
|
1740
1773
|
})
|
|
1741
|
-
}, [e.pagination.current_page === e.pagination.last_page || e.pagination.last_page === 0 ? (S(), l("span",
|
|
1774
|
+
}, [e.pagination.current_page === e.pagination.last_page || e.pagination.last_page === 0 ? (S(), l("span", En, [u("span", Dn, D(e.translations.next), 1)])) : c("", !0), e.pagination.current_page < e.pagination.last_page ? (S(), l("a", {
|
|
1742
1775
|
key: 1,
|
|
1743
1776
|
href: "#",
|
|
1744
1777
|
"aria-label": e.translations.next,
|
|
1745
1778
|
class: "page-link",
|
|
1746
1779
|
onClick: n[1] ||= R((t) => g(e.pagination.current_page + 1), ["prevent"])
|
|
1747
|
-
}, [u("span",
|
|
1780
|
+
}, [u("span", kn, D(e.translations.next), 1)], 8, On)) : c("", !0)], 2)) : c("", !0)
|
|
1748
1781
|
], 2)) : c("", !0)])])])) : c("", !0);
|
|
1749
1782
|
}
|
|
1750
|
-
},
|
|
1783
|
+
}, Z = {
|
|
1751
1784
|
__name: "Sortable",
|
|
1752
1785
|
props: {
|
|
1753
1786
|
column: {
|
|
@@ -1774,7 +1807,7 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
1774
1807
|
"fa-arrow-down-short-wide": e.orderBy.column === e.column && e.orderBy.direction === "desc"
|
|
1775
1808
|
}]) }, null, 2), E(t.$slots, "default")])]));
|
|
1776
1809
|
}
|
|
1777
|
-
},
|
|
1810
|
+
}, jn = { class: "input-group" }, Mn = { class: "form-control d-flex align-items-center p-0" }, Nn = ["placeholder", "value"], Pn = {
|
|
1778
1811
|
__name: "Search",
|
|
1779
1812
|
props: {
|
|
1780
1813
|
search: {
|
|
@@ -1820,9 +1853,9 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
1820
1853
|
function m() {
|
|
1821
1854
|
o(), r("update:search", ""), n.filterFn("search", "");
|
|
1822
1855
|
}
|
|
1823
|
-
return b(o), (t, n) => (S(), l("div",
|
|
1856
|
+
return b(o), (t, n) => (S(), l("div", jn, [
|
|
1824
1857
|
E(t.$slots, "prepend"),
|
|
1825
|
-
u("div",
|
|
1858
|
+
u("div", Mn, [u("input", {
|
|
1826
1859
|
ref_key: "inputRef",
|
|
1827
1860
|
ref: i,
|
|
1828
1861
|
class: "border-0 shadow-none ps-3 flex-grow-1",
|
|
@@ -1834,7 +1867,7 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
1834
1867
|
value: e.search,
|
|
1835
1868
|
onInput: s,
|
|
1836
1869
|
onKeyup: L(p, ["enter"])
|
|
1837
|
-
}, null, 40,
|
|
1870
|
+
}, null, 40, Nn), e.search ? (S(), l("button", {
|
|
1838
1871
|
key: 0,
|
|
1839
1872
|
type: "button",
|
|
1840
1873
|
class: "border-0 bg-transparent pe-1 ps-0 flex-shrink-0 text-danger",
|
|
@@ -1847,7 +1880,7 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
1847
1880
|
}, [n[1] ||= u("i", { class: "fa fa-search" }, null, -1), d("\xA0 " + D(e.translations.search_btn), 1)])
|
|
1848
1881
|
]));
|
|
1849
1882
|
}
|
|
1850
|
-
},
|
|
1883
|
+
}, Fn = ["value"], In = {
|
|
1851
1884
|
__name: "PerPage",
|
|
1852
1885
|
props: { modelValue: {
|
|
1853
1886
|
type: [Number, String],
|
|
@@ -1863,12 +1896,12 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
1863
1896
|
u("option", { value: "10" }, "10", -1),
|
|
1864
1897
|
u("option", { value: "25" }, "25", -1),
|
|
1865
1898
|
u("option", { value: "100" }, "100", -1)
|
|
1866
|
-
]], 40,
|
|
1899
|
+
]], 40, Fn));
|
|
1867
1900
|
}
|
|
1868
|
-
},
|
|
1901
|
+
}, Ln = {
|
|
1869
1902
|
key: 0,
|
|
1870
1903
|
class: "no-items-found"
|
|
1871
|
-
},
|
|
1904
|
+
}, Rn = ["href"], zn = {
|
|
1872
1905
|
__name: "EmptyState",
|
|
1873
1906
|
props: {
|
|
1874
1907
|
show: {
|
|
@@ -1889,7 +1922,7 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
1889
1922
|
}
|
|
1890
1923
|
},
|
|
1891
1924
|
setup(e) {
|
|
1892
|
-
return (t, n) => e.show ? (S(), l("div",
|
|
1925
|
+
return (t, n) => e.show ? (S(), l("div", Ln, [
|
|
1893
1926
|
n[1] ||= u("i", { class: "fa fa-magnifying-glass" }, null, -1),
|
|
1894
1927
|
u("h3", null, D(e.translations.no_items), 1),
|
|
1895
1928
|
u("p", null, D(e.translations.try_changing_items), 1),
|
|
@@ -1898,10 +1931,10 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
1898
1931
|
class: "btn btn-primary btn-spinner",
|
|
1899
1932
|
href: e.createUrl,
|
|
1900
1933
|
role: "button"
|
|
1901
|
-
}, [n[0] ||= u("i", { class: "fa fa-plus" }, null, -1), d("\xA0 " + D(e.translations.create_btn), 1)], 8,
|
|
1934
|
+
}, [n[0] ||= u("i", { class: "fa fa-plus" }, null, -1), d("\xA0 " + D(e.translations.create_btn), 1)], 8, Rn)) : c("", !0)
|
|
1902
1935
|
])) : c("", !0);
|
|
1903
1936
|
}
|
|
1904
|
-
},
|
|
1937
|
+
}, Bn = ["checked"], Vn = {
|
|
1905
1938
|
__name: "BulkCheckboxHeader",
|
|
1906
1939
|
props: {
|
|
1907
1940
|
isClickedAll: {
|
|
@@ -1921,17 +1954,17 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
1921
1954
|
checked: e.isClickedAll,
|
|
1922
1955
|
name: "enabled_fake_element",
|
|
1923
1956
|
onClick: n[0] ||= (t) => e.onToggleAll()
|
|
1924
|
-
}, null, 8,
|
|
1957
|
+
}, null, 8, Bn), n[1] ||= u("label", {
|
|
1925
1958
|
class: "form-check-label",
|
|
1926
1959
|
for: "enabled"
|
|
1927
1960
|
}, " # ", -1)], 64));
|
|
1928
1961
|
}
|
|
1929
|
-
},
|
|
1962
|
+
}, Hn = [
|
|
1930
1963
|
"id",
|
|
1931
1964
|
"checked",
|
|
1932
1965
|
"name",
|
|
1933
1966
|
"disabled"
|
|
1934
|
-
],
|
|
1967
|
+
], Un = ["for"], Wn = {
|
|
1935
1968
|
__name: "BulkCheckboxRow",
|
|
1936
1969
|
props: {
|
|
1937
1970
|
itemId: {
|
|
@@ -1960,18 +1993,18 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
1960
1993
|
name: "enabled" + e.itemId + "_fake_element",
|
|
1961
1994
|
disabled: e.disabled,
|
|
1962
1995
|
onClick: n[0] ||= (t) => e.onToggle(e.itemId)
|
|
1963
|
-
}, null, 8,
|
|
1996
|
+
}, null, 8, Hn), u("label", {
|
|
1964
1997
|
class: "form-check-label",
|
|
1965
1998
|
for: "enabled" + e.itemId
|
|
1966
|
-
}, null, 8,
|
|
1999
|
+
}, null, 8, Un)], 64));
|
|
1967
2000
|
}
|
|
1968
|
-
},
|
|
2001
|
+
}, Gn = { class: "align-middle fw-light text-dark" }, Kn = {
|
|
1969
2002
|
key: 0,
|
|
1970
2003
|
class: "fa fa-spinner"
|
|
1971
|
-
},
|
|
2004
|
+
}, qn = {
|
|
1972
2005
|
key: 1,
|
|
1973
2006
|
class: "text-primary"
|
|
1974
|
-
},
|
|
2007
|
+
}, Jn = { class: "float-end pe-2" }, Yn = { class: "d-inline-flex gap-2" }, Xn = {
|
|
1975
2008
|
__name: "BulkOperationsBar",
|
|
1976
2009
|
props: {
|
|
1977
2010
|
selectedCount: {
|
|
@@ -1996,7 +2029,15 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
1996
2029
|
},
|
|
1997
2030
|
onBulkDelete: {
|
|
1998
2031
|
type: Function,
|
|
1999
|
-
|
|
2032
|
+
default: null
|
|
2033
|
+
},
|
|
2034
|
+
onBulkForceDelete: {
|
|
2035
|
+
type: Function,
|
|
2036
|
+
default: null
|
|
2037
|
+
},
|
|
2038
|
+
onBulkRestore: {
|
|
2039
|
+
type: Function,
|
|
2040
|
+
default: null
|
|
2000
2041
|
},
|
|
2001
2042
|
translations: {
|
|
2002
2043
|
type: Object,
|
|
@@ -2004,34 +2045,49 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2004
2045
|
selected_items: "Selected items",
|
|
2005
2046
|
check_all_items: "Check all items",
|
|
2006
2047
|
uncheck_all_items: "Uncheck all items",
|
|
2007
|
-
delete_btn: "Delete"
|
|
2048
|
+
delete_btn: "Delete",
|
|
2049
|
+
force_delete_btn: "Delete permanently",
|
|
2050
|
+
restore_btn: "Restore"
|
|
2008
2051
|
})
|
|
2009
2052
|
}
|
|
2010
2053
|
},
|
|
2011
2054
|
setup(e) {
|
|
2012
|
-
return (t, n) => (S(), l(i, null, [u("span",
|
|
2055
|
+
return (t, n) => (S(), l(i, null, [u("span", Gn, [
|
|
2013
2056
|
d(D(e.translations.selected_items) + " " + D(e.selectedCount) + ". ", 1),
|
|
2014
2057
|
e.selectedCount < e.totalCount ? (S(), l("a", {
|
|
2015
2058
|
key: 0,
|
|
2016
2059
|
href: "javascript:void(0)",
|
|
2017
2060
|
class: "text-primary",
|
|
2018
2061
|
onClick: n[0] ||= (t) => e.onCheckAll()
|
|
2019
|
-
}, [e.loading ? (S(), l("i",
|
|
2020
|
-
e.selectedCount < e.totalCount ? (S(), l("span",
|
|
2062
|
+
}, [e.loading ? (S(), l("i", Kn)) : c("", !0), d(" " + D(e.translations.check_all_items) + " " + D(e.totalCount), 1)])) : c("", !0),
|
|
2063
|
+
e.selectedCount < e.totalCount ? (S(), l("span", qn, " | ")) : c("", !0),
|
|
2021
2064
|
u("a", {
|
|
2022
2065
|
href: "javascript:void(0)",
|
|
2023
2066
|
class: "text-primary",
|
|
2024
2067
|
onClick: n[1] ||= (t) => e.onUncheckAll()
|
|
2025
2068
|
}, D(e.translations.uncheck_all_items), 1)
|
|
2026
|
-
]), u("span",
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2069
|
+
]), u("span", Jn, [E(t.$slots, "default", {}, () => [u("span", Yn, [
|
|
2070
|
+
e.onBulkDelete ? (S(), l("button", {
|
|
2071
|
+
key: 0,
|
|
2072
|
+
class: "btn btn-sm btn-danger px-4",
|
|
2073
|
+
onClick: n[2] ||= (t) => e.onBulkDelete()
|
|
2074
|
+
}, [n[5] ||= u("i", { class: "fa fa-trash me-1" }, null, -1), d(" " + D(e.translations.delete_btn), 1)])) : c("", !0),
|
|
2075
|
+
e.onBulkForceDelete ? (S(), l("button", {
|
|
2076
|
+
key: 1,
|
|
2077
|
+
class: "btn btn-sm btn-dark px-4",
|
|
2078
|
+
onClick: n[3] ||= (t) => e.onBulkForceDelete()
|
|
2079
|
+
}, [n[6] ||= u("i", { class: "fa fa-eraser me-1" }, null, -1), d(" " + D(e.translations.force_delete_btn), 1)])) : c("", !0),
|
|
2080
|
+
e.onBulkRestore ? (S(), l("button", {
|
|
2081
|
+
key: 2,
|
|
2082
|
+
class: "btn btn-sm btn-success text-white px-4",
|
|
2083
|
+
onClick: n[4] ||= (t) => e.onBulkRestore()
|
|
2084
|
+
}, [n[7] ||= u("i", { class: "fa fa-trash-arrow-up me-1" }, null, -1), d(" " + D(e.translations.restore_btn), 1)])) : c("", !0)
|
|
2085
|
+
])])])], 64));
|
|
2030
2086
|
}
|
|
2031
|
-
},
|
|
2087
|
+
}, Zn = {
|
|
2032
2088
|
class: "modal-dialog modal-dialog-centered",
|
|
2033
2089
|
role: "document"
|
|
2034
|
-
},
|
|
2090
|
+
}, Qn = { class: "modal-content" }, $n = { class: "modal-header" }, er = { class: "modal-title" }, tr = { class: "modal-body" }, nr = { class: "modal-footer" }, Q = {
|
|
2035
2091
|
__name: "ConfirmModal",
|
|
2036
2092
|
props: {
|
|
2037
2093
|
show: {
|
|
@@ -2074,14 +2130,14 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2074
2130
|
tabindex: "-1",
|
|
2075
2131
|
role: "dialog",
|
|
2076
2132
|
onClick: i[4] ||= R((e) => t.$emit("cancel"), ["self"])
|
|
2077
|
-
}, [u("div",
|
|
2078
|
-
u("div",
|
|
2133
|
+
}, [u("div", Zn, [u("div", Qn, [
|
|
2134
|
+
u("div", $n, [u("h5", er, [u("i", { class: _([r.value, "me-2"]) }, null, 2), d(" " + D(e.translations.confirm_title), 1)]), u("button", {
|
|
2079
2135
|
type: "button",
|
|
2080
2136
|
class: "btn-close",
|
|
2081
2137
|
onClick: i[1] ||= (e) => t.$emit("cancel")
|
|
2082
2138
|
})]),
|
|
2083
|
-
u("div",
|
|
2084
|
-
u("div",
|
|
2139
|
+
u("div", tr, [u("p", null, D(e.translations.confirm_text), 1)]),
|
|
2140
|
+
u("div", nr, [u("button", {
|
|
2085
2141
|
type: "button",
|
|
2086
2142
|
class: "btn btn-secondary",
|
|
2087
2143
|
onClick: i[2] ||= (e) => t.$emit("cancel")
|
|
@@ -2092,10 +2148,10 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2092
2148
|
}, D(e.translations.confirm_btn), 3)])
|
|
2093
2149
|
])])])) : c("", !0)]));
|
|
2094
2150
|
}
|
|
2095
|
-
},
|
|
2151
|
+
}, rr = { key: 0 }, ir = { key: 1 }, ar = ["title"], or = { key: 2 }, sr = ["title"], cr = { key: 3 }, lr = ["title", "disabled"], ur = { key: 4 }, dr = ["title", "disabled"], fr = {
|
|
2096
2152
|
key: 6,
|
|
2097
2153
|
class: "publish-later-modal"
|
|
2098
|
-
},
|
|
2154
|
+
}, pr = { class: "d-flex justify-content-between align-items-center mb-2" }, mr = { class: "mt-2 text-end" }, hr = ["disabled"], gr = {
|
|
2099
2155
|
__name: "PublishedAtColumn",
|
|
2100
2156
|
props: {
|
|
2101
2157
|
item: {
|
|
@@ -2128,7 +2184,7 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2128
2184
|
},
|
|
2129
2185
|
emits: ["update:item"],
|
|
2130
2186
|
setup(e, { emit: t }) {
|
|
2131
|
-
let n = window.axios, r =
|
|
2187
|
+
let n = window.axios, r = J(), a = e, o = t, s = w(!1), p = w(null), m = w(!1), h = w(!1), g = w(null), _ = w({}), v = w("danger");
|
|
2132
2188
|
function y() {
|
|
2133
2189
|
p.value = a.item.published_at || null, s.value = !0;
|
|
2134
2190
|
}
|
|
@@ -2192,8 +2248,8 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2192
2248
|
});
|
|
2193
2249
|
}
|
|
2194
2250
|
return (t, n) => (S(), l(i, null, [
|
|
2195
|
-
e.item.published_at <= e.now ? (S(), l("span",
|
|
2196
|
-
e.item.published_at > e.now ? (S(), l("span",
|
|
2251
|
+
e.item.published_at <= e.now ? (S(), l("span", rr, D(k(q)(e.item.published_at, e.datetimeFormat)), 1)) : c("", !0),
|
|
2252
|
+
e.item.published_at > e.now ? (S(), l("span", ir, [
|
|
2197
2253
|
u("small", null, D(e.translations.will_be_published), 1),
|
|
2198
2254
|
n[9] ||= u("br", null, null, -1),
|
|
2199
2255
|
d(" " + D(k(q)(e.item.published_at, e.datetimeFormat)) + " ", 1),
|
|
@@ -2202,15 +2258,15 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2202
2258
|
title: e.translations.publish_later,
|
|
2203
2259
|
role: "button",
|
|
2204
2260
|
onClick: n[0] ||= (e) => y()
|
|
2205
|
-
}, [...n[8] ||= [u("i", { class: "fa fa-calendar" }, null, -1)]], 8,
|
|
2261
|
+
}, [...n[8] ||= [u("i", { class: "fa fa-calendar" }, null, -1)]], 8, ar)
|
|
2206
2262
|
])) : c("", !0),
|
|
2207
|
-
e.item.published_at ? c("", !0) : (S(), l("div",
|
|
2263
|
+
e.item.published_at ? c("", !0) : (S(), l("div", or, [u("span", {
|
|
2208
2264
|
class: "btn btn-sm btn-info text-white mb-1",
|
|
2209
2265
|
title: e.translations.publish_later,
|
|
2210
2266
|
role: "button",
|
|
2211
2267
|
onClick: n[1] ||= (e) => y()
|
|
2212
|
-
}, [n[10] ||= u("i", { class: "fa fa-calendar" }, null, -1), d("\xA0\xA0" + D(e.translations.publish_later), 1)], 8,
|
|
2213
|
-
!e.item.published_at || e.item.published_at > e.now ? (S(), l("div",
|
|
2268
|
+
}, [n[10] ||= u("i", { class: "fa fa-calendar" }, null, -1), d("\xA0\xA0" + D(e.translations.publish_later), 1)], 8, sr)])),
|
|
2269
|
+
!e.item.published_at || e.item.published_at > e.now ? (S(), l("div", cr, [u("form", {
|
|
2214
2270
|
class: "d-inline",
|
|
2215
2271
|
onSubmit: n[2] ||= R((e) => x(), ["prevent"])
|
|
2216
2272
|
}, [u("button", {
|
|
@@ -2218,8 +2274,8 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2218
2274
|
class: "btn btn-sm btn-success text-white",
|
|
2219
2275
|
title: e.translations.publish_now,
|
|
2220
2276
|
disabled: m.value
|
|
2221
|
-
}, [n[11] ||= u("i", { class: "fa fa-paper-plane" }, null, -1), d("\xA0\xA0" + D(e.translations.publish_now), 1)], 8,
|
|
2222
|
-
e.item.published_at && e.item.published_at < e.now ? (S(), l("div",
|
|
2277
|
+
}, [n[11] ||= u("i", { class: "fa fa-paper-plane" }, null, -1), d("\xA0\xA0" + D(e.translations.publish_now), 1)], 8, lr)], 32)])) : c("", !0),
|
|
2278
|
+
e.item.published_at && e.item.published_at < e.now ? (S(), l("div", ur, [u("form", {
|
|
2223
2279
|
class: "d-inline",
|
|
2224
2280
|
onSubmit: n[3] ||= R((e) => C(), ["prevent"])
|
|
2225
2281
|
}, [u("button", {
|
|
@@ -2227,14 +2283,14 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2227
2283
|
class: "btn btn-sm btn-danger",
|
|
2228
2284
|
title: e.translations.unpublish_now,
|
|
2229
2285
|
disabled: m.value
|
|
2230
|
-
}, [n[12] ||= u("i", { class: "fa fa-paper-plane" }, null, -1), d("\xA0\xA0" + D(e.translations.unpublish_now), 1)], 8,
|
|
2286
|
+
}, [n[12] ||= u("i", { class: "fa fa-paper-plane" }, null, -1), d("\xA0\xA0" + D(e.translations.unpublish_now), 1)], 8, dr)], 32)])) : c("", !0),
|
|
2231
2287
|
s.value ? (S(), l("div", {
|
|
2232
2288
|
key: 5,
|
|
2233
2289
|
class: "publish-later-backdrop",
|
|
2234
2290
|
onClick: n[4] ||= R((e) => s.value = !1, ["self"])
|
|
2235
2291
|
})) : c("", !0),
|
|
2236
|
-
s.value ? (S(), l("div",
|
|
2237
|
-
u("div",
|
|
2292
|
+
s.value ? (S(), l("div", fr, [
|
|
2293
|
+
u("div", pr, [u("strong", null, D(e.translations.publish_later), 1), u("button", {
|
|
2238
2294
|
type: "button",
|
|
2239
2295
|
class: "btn-close btn-close-sm",
|
|
2240
2296
|
"aria-label": "Close",
|
|
@@ -2251,13 +2307,13 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2251
2307
|
inline: !0,
|
|
2252
2308
|
"auto-apply": ""
|
|
2253
2309
|
}, null, 8, ["modelValue", "format-locale"]),
|
|
2254
|
-
u("div",
|
|
2310
|
+
u("div", mr, [u("button", {
|
|
2255
2311
|
class: "btn btn-sm btn-primary text-white",
|
|
2256
2312
|
disabled: m.value || !p.value,
|
|
2257
2313
|
onClick: n[7] ||= (e) => b()
|
|
2258
|
-
}, " Save ", 8,
|
|
2314
|
+
}, " Save ", 8, hr)])
|
|
2259
2315
|
])) : c("", !0),
|
|
2260
|
-
f(
|
|
2316
|
+
f(Q, {
|
|
2261
2317
|
show: h.value,
|
|
2262
2318
|
translations: _.value,
|
|
2263
2319
|
variant: v.value,
|
|
@@ -2270,7 +2326,7 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2270
2326
|
])
|
|
2271
2327
|
], 64));
|
|
2272
2328
|
}
|
|
2273
|
-
},
|
|
2329
|
+
}, _r = ["href"], vr = ["href"], yr = {
|
|
2274
2330
|
__name: "ListingHeader",
|
|
2275
2331
|
props: {
|
|
2276
2332
|
createUrl: {
|
|
@@ -2299,16 +2355,16 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2299
2355
|
class: "btn btn-primary btn-sm float-end mb-0 ms-2",
|
|
2300
2356
|
href: e.exportUrl,
|
|
2301
2357
|
role: "button"
|
|
2302
|
-
}, [n[0] ||= u("i", { class: "fa fa-file-excel" }, null, -1), d("\xA0 " + D(e.translations.export_btn), 1)], 8,
|
|
2358
|
+
}, [n[0] ||= u("i", { class: "fa fa-file-excel" }, null, -1), d("\xA0 " + D(e.translations.export_btn), 1)], 8, _r)) : c("", !0),
|
|
2303
2359
|
e.createUrl ? (S(), l("a", {
|
|
2304
2360
|
key: 1,
|
|
2305
2361
|
class: "btn btn-primary btn-spinner btn-sm float-end mb-0",
|
|
2306
2362
|
href: e.createUrl,
|
|
2307
2363
|
role: "button"
|
|
2308
|
-
}, [n[1] ||= u("i", { class: "fa fa-plus" }, null, -1), d("\xA0 " + D(e.translations.create_btn), 1)], 8,
|
|
2364
|
+
}, [n[1] ||= u("i", { class: "fa fa-plus" }, null, -1), d("\xA0 " + D(e.translations.create_btn), 1)], 8, vr)) : c("", !0)
|
|
2309
2365
|
], 64));
|
|
2310
2366
|
}
|
|
2311
|
-
},
|
|
2367
|
+
}, br = ["href", "title"], xr = {
|
|
2312
2368
|
__name: "ShowButton",
|
|
2313
2369
|
props: {
|
|
2314
2370
|
url: {
|
|
@@ -2326,9 +2382,9 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2326
2382
|
href: e.url,
|
|
2327
2383
|
title: e.translations.show_btn,
|
|
2328
2384
|
role: "button"
|
|
2329
|
-
}, [...n[0] ||= [u("i", { class: "fa fa-eye" }, null, -1)]], 8,
|
|
2385
|
+
}, [...n[0] ||= [u("i", { class: "fa fa-eye" }, null, -1)]], 8, br));
|
|
2330
2386
|
}
|
|
2331
|
-
},
|
|
2387
|
+
}, Sr = ["href", "title"], Cr = {
|
|
2332
2388
|
__name: "EditButton",
|
|
2333
2389
|
props: {
|
|
2334
2390
|
url: {
|
|
@@ -2346,9 +2402,9 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2346
2402
|
href: e.url,
|
|
2347
2403
|
title: e.translations.edit_btn,
|
|
2348
2404
|
role: "button"
|
|
2349
|
-
}, [...n[0] ||= [u("i", { class: "fa fa-edit" }, null, -1)]], 8,
|
|
2405
|
+
}, [...n[0] ||= [u("i", { class: "fa fa-edit" }, null, -1)]], 8, Sr));
|
|
2350
2406
|
}
|
|
2351
|
-
},
|
|
2407
|
+
}, wr = ["title"], Tr = {
|
|
2352
2408
|
__name: "DeleteButton",
|
|
2353
2409
|
props: {
|
|
2354
2410
|
url: {
|
|
@@ -2381,14 +2437,124 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2381
2437
|
class: "btn btn-sm btn-danger",
|
|
2382
2438
|
title: e.translations.delete_btn,
|
|
2383
2439
|
onClick: n[0] ||= (e) => o.value = !0
|
|
2384
|
-
}, [...n[2] ||= [u("i", { class: "fa fa-trash" }, null, -1)]], 8,
|
|
2440
|
+
}, [...n[2] ||= [u("i", { class: "fa fa-trash" }, null, -1)]], 8, wr), f(Q, {
|
|
2385
2441
|
show: o.value,
|
|
2386
2442
|
translations: e.translations,
|
|
2387
2443
|
onConfirm: s,
|
|
2388
2444
|
onCancel: n[1] ||= (e) => o.value = !1
|
|
2389
2445
|
}, null, 8, ["show", "translations"])], 64));
|
|
2390
2446
|
}
|
|
2391
|
-
},
|
|
2447
|
+
}, Er = ["title"], Dr = {
|
|
2448
|
+
__name: "ForceDeleteButton",
|
|
2449
|
+
props: {
|
|
2450
|
+
url: {
|
|
2451
|
+
type: String,
|
|
2452
|
+
required: !0
|
|
2453
|
+
},
|
|
2454
|
+
translations: {
|
|
2455
|
+
type: Object,
|
|
2456
|
+
default: () => ({
|
|
2457
|
+
force_delete_btn: "Delete permanently",
|
|
2458
|
+
confirm_title: "Deletion",
|
|
2459
|
+
confirm_text: "Delete this item permanently? This cannot be undone.",
|
|
2460
|
+
confirm_btn: "Delete permanently",
|
|
2461
|
+
cancel_btn: "Cancel"
|
|
2462
|
+
})
|
|
2463
|
+
}
|
|
2464
|
+
},
|
|
2465
|
+
emits: ["deleted"],
|
|
2466
|
+
setup(e, { emit: t }) {
|
|
2467
|
+
let n = window.axios, r = e, a = t, o = w(!1);
|
|
2468
|
+
function s() {
|
|
2469
|
+
o.value = !1, n.delete(r.url).then((e) => {
|
|
2470
|
+
W(e.data.message), a("deleted");
|
|
2471
|
+
}, (e) => {
|
|
2472
|
+
G(e.response?.data?.message);
|
|
2473
|
+
});
|
|
2474
|
+
}
|
|
2475
|
+
return (t, n) => (S(), l(i, null, [u("button", {
|
|
2476
|
+
type: "button",
|
|
2477
|
+
class: "btn btn-sm btn-dark",
|
|
2478
|
+
title: e.translations.force_delete_btn,
|
|
2479
|
+
onClick: n[0] ||= (e) => o.value = !0
|
|
2480
|
+
}, [...n[2] ||= [u("i", { class: "fa fa-eraser" }, null, -1)]], 8, Er), f(Q, {
|
|
2481
|
+
show: o.value,
|
|
2482
|
+
variant: "danger",
|
|
2483
|
+
translations: e.translations,
|
|
2484
|
+
onConfirm: s,
|
|
2485
|
+
onCancel: n[1] ||= (e) => o.value = !1
|
|
2486
|
+
}, null, 8, ["show", "translations"])], 64));
|
|
2487
|
+
}
|
|
2488
|
+
}, Or = ["title"], kr = ["aria-label", "disabled"], Ar = {
|
|
2489
|
+
__name: "RestoreButton",
|
|
2490
|
+
props: {
|
|
2491
|
+
url: {
|
|
2492
|
+
type: String,
|
|
2493
|
+
required: !0
|
|
2494
|
+
},
|
|
2495
|
+
disabled: {
|
|
2496
|
+
type: Boolean,
|
|
2497
|
+
default: !1
|
|
2498
|
+
},
|
|
2499
|
+
translations: {
|
|
2500
|
+
type: Object,
|
|
2501
|
+
default: () => ({
|
|
2502
|
+
restore_btn: "Restore",
|
|
2503
|
+
not_restorable: "This item cannot be restored, an item it belongs to is deleted.",
|
|
2504
|
+
confirm_title: "Restore",
|
|
2505
|
+
confirm_text: "Do you really want to restore this item?",
|
|
2506
|
+
confirm_btn: "Restore",
|
|
2507
|
+
cancel_btn: "Cancel"
|
|
2508
|
+
})
|
|
2509
|
+
}
|
|
2510
|
+
},
|
|
2511
|
+
emits: ["restored"],
|
|
2512
|
+
setup(e, { emit: t }) {
|
|
2513
|
+
let n = window.axios, r = e, a = t, o = w(!1);
|
|
2514
|
+
function s() {
|
|
2515
|
+
o.value = !1, n.post(r.url).then((e) => {
|
|
2516
|
+
W(e.data.message), a("restored");
|
|
2517
|
+
}, (e) => {
|
|
2518
|
+
G(e.response?.data?.message);
|
|
2519
|
+
});
|
|
2520
|
+
}
|
|
2521
|
+
return (t, n) => (S(), l(i, null, [u("span", { title: e.disabled ? e.translations.not_restorable : e.translations.restore_btn }, [u("button", {
|
|
2522
|
+
type: "button",
|
|
2523
|
+
class: "btn btn-sm btn-success text-white",
|
|
2524
|
+
"aria-label": e.disabled ? e.translations.not_restorable : e.translations.restore_btn,
|
|
2525
|
+
disabled: e.disabled,
|
|
2526
|
+
onClick: n[0] ||= (e) => o.value = !0
|
|
2527
|
+
}, [...n[2] ||= [u("i", { class: "fa fa-trash-arrow-up" }, null, -1)]], 8, kr)], 8, Or), f(Q, {
|
|
2528
|
+
show: o.value,
|
|
2529
|
+
variant: "success",
|
|
2530
|
+
translations: e.translations,
|
|
2531
|
+
onConfirm: s,
|
|
2532
|
+
onCancel: n[1] ||= (e) => o.value = !1
|
|
2533
|
+
}, null, 8, ["show", "translations"])], 64));
|
|
2534
|
+
}
|
|
2535
|
+
}, jr = { class: "d-inline-flex align-items-center gap-2 mb-0 text-nowrap text-reset" }, Mr = { class: "form-check form-switch form-switch-inline mb-0" }, Nr = ["checked"], Pr = {
|
|
2536
|
+
__name: "ShowDeleted",
|
|
2537
|
+
props: {
|
|
2538
|
+
modelValue: {
|
|
2539
|
+
type: Boolean,
|
|
2540
|
+
default: !1
|
|
2541
|
+
},
|
|
2542
|
+
translations: {
|
|
2543
|
+
type: Object,
|
|
2544
|
+
default: () => ({ show_deleted: "Show deleted" })
|
|
2545
|
+
}
|
|
2546
|
+
},
|
|
2547
|
+
emits: ["update:modelValue"],
|
|
2548
|
+
setup(e) {
|
|
2549
|
+
return (t, n) => (S(), l("label", jr, [u("span", Mr, [u("input", {
|
|
2550
|
+
class: "form-check-input",
|
|
2551
|
+
type: "checkbox",
|
|
2552
|
+
role: "switch",
|
|
2553
|
+
checked: e.modelValue,
|
|
2554
|
+
onChange: n[0] ||= (e) => t.$emit("update:modelValue", e.target.checked)
|
|
2555
|
+
}, null, 40, Nr)]), d(" " + D(e.translations.show_deleted), 1)]));
|
|
2556
|
+
}
|
|
2557
|
+
}, Fr = ["href"], Ir = {
|
|
2392
2558
|
__name: "BackButton",
|
|
2393
2559
|
props: {
|
|
2394
2560
|
url: {
|
|
@@ -2404,9 +2570,9 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2404
2570
|
return (t, n) => (S(), l("a", {
|
|
2405
2571
|
class: "btn btn-sm btn-outline-secondary",
|
|
2406
2572
|
href: e.url
|
|
2407
|
-
}, [n[0] ||= u("i", { class: "fa fa-arrow-left" }, null, -1), d(" " + D(e.translations.back), 1)], 8,
|
|
2573
|
+
}, [n[0] ||= u("i", { class: "fa fa-arrow-left" }, null, -1), d(" " + D(e.translations.back), 1)], 8, Fr));
|
|
2408
2574
|
}
|
|
2409
|
-
},
|
|
2575
|
+
}, Lr = { class: "form-check form-switch form-switch-inline" }, Rr = ["checked"], zr = {
|
|
2410
2576
|
__name: "ToggleSwitch",
|
|
2411
2577
|
props: {
|
|
2412
2578
|
modelValue: {
|
|
@@ -2450,15 +2616,15 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2450
2616
|
i("update:modelValue", r.modelValue), G(e.response?.data?.message);
|
|
2451
2617
|
});
|
|
2452
2618
|
}
|
|
2453
|
-
return (t, n) => (S(), l("div",
|
|
2619
|
+
return (t, n) => (S(), l("div", Lr, [u("input", {
|
|
2454
2620
|
class: _(["form-check-input", a.value]),
|
|
2455
2621
|
type: "checkbox",
|
|
2456
2622
|
role: "switch",
|
|
2457
2623
|
checked: !!e.modelValue,
|
|
2458
2624
|
onChange: s
|
|
2459
|
-
}, null, 42,
|
|
2625
|
+
}, null, 42, Rr)]));
|
|
2460
2626
|
}
|
|
2461
|
-
},
|
|
2627
|
+
}, Br = { class: "form-check form-switch form-switch-inline" }, Vr = ["checked"], Hr = {
|
|
2462
2628
|
__name: "ReadOnlySwitch",
|
|
2463
2629
|
props: {
|
|
2464
2630
|
modelValue: {
|
|
@@ -2476,15 +2642,15 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2476
2642
|
},
|
|
2477
2643
|
setup(e) {
|
|
2478
2644
|
let t = e, n = o(() => `form-switch-${t.variant}`);
|
|
2479
|
-
return (t, r) => (S(), l("div",
|
|
2645
|
+
return (t, r) => (S(), l("div", Br, [u("input", {
|
|
2480
2646
|
class: _(["form-check-input", n.value]),
|
|
2481
2647
|
type: "checkbox",
|
|
2482
2648
|
role: "switch",
|
|
2483
2649
|
checked: !!e.modelValue,
|
|
2484
2650
|
disabled: ""
|
|
2485
|
-
}, null, 10,
|
|
2651
|
+
}, null, 10, Vr)]));
|
|
2486
2652
|
}
|
|
2487
|
-
},
|
|
2653
|
+
}, Ur = { class: "mb-3 row align-items-center" }, Wr = { class: "col-md-3 col-form-label text-md-end" }, Gr = { class: "col-md-9 col-xl-8" }, Kr = {
|
|
2488
2654
|
__name: "ShowRow",
|
|
2489
2655
|
props: {
|
|
2490
2656
|
label: {
|
|
@@ -2501,18 +2667,18 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2501
2667
|
}
|
|
2502
2668
|
},
|
|
2503
2669
|
setup(e) {
|
|
2504
|
-
return (t, n) => (S(), l("div",
|
|
2670
|
+
return (t, n) => (S(), l("div", Ur, [u("label", Wr, D(e.label), 1), u("div", Gr, [E(t.$slots, "default", {}, () => [u("span", null, D(e.value), 1)])])]));
|
|
2505
2671
|
}
|
|
2506
|
-
},
|
|
2672
|
+
}, qr = { class: "mb-3 row align-items-center" }, Jr = ["for"], Yr = { class: "col-md-9 col-xl-8" }, Xr = [
|
|
2507
2673
|
"id",
|
|
2508
2674
|
"type",
|
|
2509
2675
|
"value",
|
|
2510
2676
|
"name",
|
|
2511
2677
|
"placeholder"
|
|
2512
|
-
],
|
|
2678
|
+
], Zr = {
|
|
2513
2679
|
key: 0,
|
|
2514
2680
|
class: "invalid-feedback form-text"
|
|
2515
|
-
},
|
|
2681
|
+
}, Qr = {
|
|
2516
2682
|
__name: "FormInput",
|
|
2517
2683
|
props: {
|
|
2518
2684
|
modelValue: {
|
|
@@ -2542,10 +2708,10 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2542
2708
|
},
|
|
2543
2709
|
emits: ["update:modelValue"],
|
|
2544
2710
|
setup(e) {
|
|
2545
|
-
return (t, n) => (S(), l("div",
|
|
2711
|
+
return (t, n) => (S(), l("div", qr, [u("label", {
|
|
2546
2712
|
for: e.name,
|
|
2547
2713
|
class: "col-md-3 col-form-label text-md-end"
|
|
2548
|
-
}, D(e.label), 9,
|
|
2714
|
+
}, D(e.label), 9, Jr), u("div", Yr, [u("input", {
|
|
2549
2715
|
id: e.name,
|
|
2550
2716
|
type: e.type,
|
|
2551
2717
|
value: e.modelValue,
|
|
@@ -2553,9 +2719,9 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2553
2719
|
name: e.name,
|
|
2554
2720
|
placeholder: e.placeholder || e.label,
|
|
2555
2721
|
onInput: n[0] ||= (e) => t.$emit("update:modelValue", e.target.value)
|
|
2556
|
-
}, null, 42,
|
|
2722
|
+
}, null, 42, Xr), e.error ? (S(), l("div", Zr, D(e.error), 1)) : c("", !0)])]));
|
|
2557
2723
|
}
|
|
2558
|
-
},
|
|
2724
|
+
}, $r = {
|
|
2559
2725
|
__name: "FormEmail",
|
|
2560
2726
|
props: {
|
|
2561
2727
|
modelValue: {
|
|
@@ -2581,21 +2747,21 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2581
2747
|
},
|
|
2582
2748
|
emits: ["update:modelValue"],
|
|
2583
2749
|
setup(e) {
|
|
2584
|
-
return (e, t) => (S(), s(
|
|
2750
|
+
return (e, t) => (S(), s(Qr, g(e.$props, {
|
|
2585
2751
|
type: "email",
|
|
2586
2752
|
"onUpdate:modelValue": t[0] ||= (t) => e.$emit("update:modelValue", t)
|
|
2587
2753
|
}), null, 16));
|
|
2588
2754
|
}
|
|
2589
|
-
},
|
|
2755
|
+
}, ei = { class: "mb-3 row align-items-center" }, ti = ["for"], ni = { class: "col-md-9 col-xl-8" }, ri = [
|
|
2590
2756
|
"id",
|
|
2591
2757
|
"value",
|
|
2592
2758
|
"name",
|
|
2593
2759
|
"placeholder",
|
|
2594
2760
|
"rows"
|
|
2595
|
-
],
|
|
2761
|
+
], ii = {
|
|
2596
2762
|
key: 0,
|
|
2597
2763
|
class: "invalid-feedback form-text"
|
|
2598
|
-
},
|
|
2764
|
+
}, ai = {
|
|
2599
2765
|
__name: "FormTextarea",
|
|
2600
2766
|
props: {
|
|
2601
2767
|
modelValue: {
|
|
@@ -2625,10 +2791,10 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2625
2791
|
},
|
|
2626
2792
|
emits: ["update:modelValue"],
|
|
2627
2793
|
setup(e) {
|
|
2628
|
-
return (t, n) => (S(), l("div",
|
|
2794
|
+
return (t, n) => (S(), l("div", ei, [u("label", {
|
|
2629
2795
|
for: e.name,
|
|
2630
2796
|
class: "col-md-3 col-form-label text-md-end"
|
|
2631
|
-
}, D(e.label), 9,
|
|
2797
|
+
}, D(e.label), 9, ti), u("div", ni, [u("textarea", {
|
|
2632
2798
|
id: e.name,
|
|
2633
2799
|
value: e.modelValue,
|
|
2634
2800
|
class: _(["form-control", { "is-invalid": e.error }]),
|
|
@@ -2636,16 +2802,16 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2636
2802
|
placeholder: e.placeholder || e.label,
|
|
2637
2803
|
rows: e.rows,
|
|
2638
2804
|
onInput: n[0] ||= (e) => t.$emit("update:modelValue", e.target.value)
|
|
2639
|
-
}, null, 42,
|
|
2805
|
+
}, null, 42, ri), e.error ? (S(), l("div", ii, D(e.error), 1)) : c("", !0)])]));
|
|
2640
2806
|
}
|
|
2641
|
-
},
|
|
2807
|
+
}, oi = { class: "mb-3 row align-items-center" }, si = { class: "col-md-9 col-xl-8 offset-md-3" }, ci = { class: "form-check" }, li = [
|
|
2642
2808
|
"id",
|
|
2643
2809
|
"checked",
|
|
2644
2810
|
"name"
|
|
2645
|
-
],
|
|
2811
|
+
], ui = ["for"], di = {
|
|
2646
2812
|
key: 0,
|
|
2647
2813
|
class: "invalid-feedback d-block form-text"
|
|
2648
|
-
},
|
|
2814
|
+
}, fi = {
|
|
2649
2815
|
__name: "FormCheckbox",
|
|
2650
2816
|
props: {
|
|
2651
2817
|
modelValue: {
|
|
@@ -2667,26 +2833,26 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2667
2833
|
},
|
|
2668
2834
|
emits: ["update:modelValue"],
|
|
2669
2835
|
setup(e) {
|
|
2670
|
-
return (t, n) => (S(), l("div",
|
|
2836
|
+
return (t, n) => (S(), l("div", oi, [u("div", si, [u("div", ci, [u("input", {
|
|
2671
2837
|
id: e.name,
|
|
2672
2838
|
class: "form-check-input",
|
|
2673
2839
|
type: "checkbox",
|
|
2674
2840
|
checked: e.modelValue,
|
|
2675
2841
|
name: e.name,
|
|
2676
2842
|
onChange: n[0] ||= (e) => t.$emit("update:modelValue", e.target.checked)
|
|
2677
|
-
}, null, 40,
|
|
2843
|
+
}, null, 40, li), u("label", {
|
|
2678
2844
|
class: "form-check-label",
|
|
2679
2845
|
for: e.name
|
|
2680
|
-
}, D(e.label), 9,
|
|
2846
|
+
}, D(e.label), 9, ui)]), e.error ? (S(), l("div", di, D(e.error), 1)) : c("", !0)])]));
|
|
2681
2847
|
}
|
|
2682
2848
|
}, $ = (e, t) => {
|
|
2683
2849
|
let n = e.__vccOpts || e;
|
|
2684
2850
|
for (let [e, r] of t) n[e] = r;
|
|
2685
2851
|
return n;
|
|
2686
|
-
},
|
|
2852
|
+
}, pi = { class: "mb-3 row align-items-center" }, mi = ["for"], hi = { class: "col-md-9 col-xl-8" }, gi = { class: "input-group flex-nowrap" }, _i = { class: "input-group-text" }, vi = {
|
|
2687
2853
|
key: 0,
|
|
2688
2854
|
class: "invalid-feedback d-block form-text"
|
|
2689
|
-
},
|
|
2855
|
+
}, yi = /*#__PURE__*/ $({
|
|
2690
2856
|
__name: "FormDatePicker",
|
|
2691
2857
|
props: {
|
|
2692
2858
|
modelValue: {
|
|
@@ -2724,10 +2890,10 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2724
2890
|
},
|
|
2725
2891
|
emits: ["update:modelValue"],
|
|
2726
2892
|
setup(e) {
|
|
2727
|
-
return (t, n) => (S(), l("div",
|
|
2893
|
+
return (t, n) => (S(), l("div", pi, [u("label", {
|
|
2728
2894
|
for: e.name,
|
|
2729
2895
|
class: "col-md-3 col-form-label text-md-end"
|
|
2730
|
-
}, D(e.label), 9,
|
|
2896
|
+
}, D(e.label), 9, mi), u("div", hi, [u("div", gi, [u("span", _i, [u("i", { class: _(["fa", e.icon]) }, null, 2)]), f(k(Ke), g(e.config, {
|
|
2731
2897
|
id: e.name,
|
|
2732
2898
|
"model-value": e.modelValue,
|
|
2733
2899
|
class: ["datepicker-input", { "is-invalid": e.error }],
|
|
@@ -2754,12 +2920,12 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2754
2920
|
"time-config",
|
|
2755
2921
|
"formats",
|
|
2756
2922
|
"locale"
|
|
2757
|
-
])]), e.error ? (S(), l("div",
|
|
2923
|
+
])]), e.error ? (S(), l("div", vi, D(e.error), 1)) : c("", !0)])]));
|
|
2758
2924
|
}
|
|
2759
|
-
}, [["__scopeId", "data-v-2e6d6ada"]]),
|
|
2925
|
+
}, [["__scopeId", "data-v-2e6d6ada"]]), bi = { class: "mb-3 row align-items-center" }, xi = ["for"], Si = { class: "col-md-9 col-xl-8" }, Ci = {
|
|
2760
2926
|
key: 0,
|
|
2761
2927
|
class: "invalid-feedback d-block form-text"
|
|
2762
|
-
},
|
|
2928
|
+
}, wi = {
|
|
2763
2929
|
__name: "FormWysiwyg",
|
|
2764
2930
|
props: {
|
|
2765
2931
|
modelValue: {
|
|
@@ -2789,10 +2955,10 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2789
2955
|
},
|
|
2790
2956
|
emits: ["update:modelValue"],
|
|
2791
2957
|
setup(e) {
|
|
2792
|
-
return (t, n) => (S(), l("div",
|
|
2958
|
+
return (t, n) => (S(), l("div", bi, [u("label", {
|
|
2793
2959
|
for: e.name,
|
|
2794
2960
|
class: "col-md-3 col-form-label text-md-end"
|
|
2795
|
-
}, D(e.label), 9,
|
|
2961
|
+
}, D(e.label), 9, xi), u("div", Si, [f(Zt, g({
|
|
2796
2962
|
id: e.name,
|
|
2797
2963
|
"model-value": e.modelValue,
|
|
2798
2964
|
name: e.name,
|
|
@@ -2802,12 +2968,12 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2802
2968
|
"model-value",
|
|
2803
2969
|
"name",
|
|
2804
2970
|
"upload-url"
|
|
2805
|
-
]), e.error ? (S(), l("div",
|
|
2971
|
+
]), e.error ? (S(), l("div", Ci, D(e.error), 1)) : c("", !0)])]));
|
|
2806
2972
|
}
|
|
2807
|
-
},
|
|
2973
|
+
}, Ti = { class: "mb-3 row align-items-center" }, Ei = ["for"], Di = { class: "col-md-9 col-xl-8" }, Oi = {
|
|
2808
2974
|
key: 0,
|
|
2809
2975
|
class: "invalid-feedback d-block form-text"
|
|
2810
|
-
},
|
|
2976
|
+
}, ki = {
|
|
2811
2977
|
__name: "FormMultiSelect",
|
|
2812
2978
|
props: {
|
|
2813
2979
|
modelValue: {
|
|
@@ -2845,10 +3011,10 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2845
3011
|
},
|
|
2846
3012
|
emits: ["update:modelValue"],
|
|
2847
3013
|
setup(e) {
|
|
2848
|
-
return (t, n) => (S(), l("div",
|
|
3014
|
+
return (t, n) => (S(), l("div", Ti, [u("label", {
|
|
2849
3015
|
for: e.name,
|
|
2850
3016
|
class: "col-md-3 col-form-label text-md-end"
|
|
2851
|
-
}, D(e.label), 9,
|
|
3017
|
+
}, D(e.label), 9, Ei), u("div", Di, [f(k(U), {
|
|
2852
3018
|
"model-value": e.modelValue,
|
|
2853
3019
|
class: _({ "is-invalid": e.error }),
|
|
2854
3020
|
placeholder: e.placeholder,
|
|
@@ -2865,12 +3031,12 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2865
3031
|
"options",
|
|
2866
3032
|
"label",
|
|
2867
3033
|
"track-by"
|
|
2868
|
-
]), e.error ? (S(), l("div",
|
|
3034
|
+
]), e.error ? (S(), l("div", Oi, D(e.error), 1)) : c("", !0)])]));
|
|
2869
3035
|
}
|
|
2870
|
-
},
|
|
3036
|
+
}, Ai = { class: "mb-3 row align-items-center" }, ji = ["for"], Mi = { class: "col-md-9 col-xl-8" }, Ni = {
|
|
2871
3037
|
key: 0,
|
|
2872
3038
|
class: "invalid-feedback d-block form-text"
|
|
2873
|
-
},
|
|
3039
|
+
}, Pi = {
|
|
2874
3040
|
__name: "FormTagInput",
|
|
2875
3041
|
props: {
|
|
2876
3042
|
modelValue: {
|
|
@@ -2900,10 +3066,10 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2900
3066
|
},
|
|
2901
3067
|
emits: ["update:modelValue"],
|
|
2902
3068
|
setup(e) {
|
|
2903
|
-
return (t, n) => (S(), l("div",
|
|
3069
|
+
return (t, n) => (S(), l("div", Ai, [u("label", {
|
|
2904
3070
|
for: e.name,
|
|
2905
3071
|
class: "col-md-3 col-form-label text-md-end"
|
|
2906
|
-
}, D(e.label), 9,
|
|
3072
|
+
}, D(e.label), 9, ji), u("div", Mi, [f(k(U), {
|
|
2907
3073
|
"model-value": e.modelValue,
|
|
2908
3074
|
class: _({ "is-invalid": e.error }),
|
|
2909
3075
|
placeholder: e.placeholder,
|
|
@@ -2921,18 +3087,18 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2921
3087
|
"placeholder",
|
|
2922
3088
|
"options",
|
|
2923
3089
|
"tag-placeholder"
|
|
2924
|
-
]), e.error ? (S(), l("div",
|
|
3090
|
+
]), e.error ? (S(), l("div", Ni, D(e.error), 1)) : c("", !0)])]));
|
|
2925
3091
|
}
|
|
2926
|
-
},
|
|
3092
|
+
}, Fi = { class: "mb-3 row align-items-center" }, Ii = ["for"], Li = { class: "col-md-9 col-xl-8" }, Ri = [
|
|
2927
3093
|
"id",
|
|
2928
3094
|
"value",
|
|
2929
3095
|
"name",
|
|
2930
3096
|
"placeholder",
|
|
2931
3097
|
"onInput"
|
|
2932
|
-
],
|
|
3098
|
+
], zi = {
|
|
2933
3099
|
key: 0,
|
|
2934
3100
|
class: "invalid-feedback d-block form-text"
|
|
2935
|
-
},
|
|
3101
|
+
}, Bi = {
|
|
2936
3102
|
__name: "FormLocalizedInput",
|
|
2937
3103
|
props: {
|
|
2938
3104
|
modelValue: {
|
|
@@ -2973,10 +3139,10 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2973
3139
|
[e]: t
|
|
2974
3140
|
});
|
|
2975
3141
|
}
|
|
2976
|
-
return (t, n) => (S(), l("div",
|
|
3142
|
+
return (t, n) => (S(), l("div", Fi, [u("label", {
|
|
2977
3143
|
for: e.name + "_" + e.locales[0],
|
|
2978
3144
|
class: "col-md-3 col-form-label text-md-end"
|
|
2979
|
-
}, D(e.label), 9,
|
|
3145
|
+
}, D(e.label), 9, Ii), u("div", Li, [u("div", { class: _({ "d-flex gap-2": e.isFormLocalized }) }, [(S(!0), l(i, null, T(e.locales, (t) => I((S(), l("div", {
|
|
2980
3146
|
key: t,
|
|
2981
3147
|
class: _({ "flex-fill": e.isFormLocalized })
|
|
2982
3148
|
}, [u("input", {
|
|
@@ -2987,12 +3153,12 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2987
3153
|
name: e.name + "_" + t,
|
|
2988
3154
|
placeholder: e.isFormLocalized ? t.toUpperCase() : e.label,
|
|
2989
3155
|
onInput: (e) => a(t, e.target.value)
|
|
2990
|
-
}, null, 42,
|
|
3156
|
+
}, null, 42, Ri), e.errors[e.name + "_" + t] ? (S(), l("div", zi, D(e.errors[e.name + "_" + t]), 1)) : c("", !0)], 2)), [[N, e.shouldShowLangGroup(t)]])), 128))], 2)])]));
|
|
2991
3157
|
}
|
|
2992
|
-
},
|
|
3158
|
+
}, Vi = { class: "mb-3 row align-items-center" }, Hi = ["for"], Ui = { class: "col-md-9 col-xl-8" }, Wi = {
|
|
2993
3159
|
key: 0,
|
|
2994
3160
|
class: "invalid-feedback d-block form-text"
|
|
2995
|
-
},
|
|
3161
|
+
}, Gi = /*#__PURE__*/ $({
|
|
2996
3162
|
__name: "FormLocalizedWysiwyg",
|
|
2997
3163
|
props: {
|
|
2998
3164
|
modelValue: {
|
|
@@ -3041,13 +3207,13 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
3041
3207
|
[e]: t
|
|
3042
3208
|
});
|
|
3043
3209
|
}
|
|
3044
|
-
return (t, n) => (S(), l("div",
|
|
3210
|
+
return (t, n) => (S(), l("div", Vi, [u("label", {
|
|
3045
3211
|
for: e.name + "_" + e.locales[0],
|
|
3046
3212
|
class: "col-md-3 col-form-label text-md-end"
|
|
3047
|
-
}, D(e.label), 9,
|
|
3213
|
+
}, D(e.label), 9, Hi), u("div", Ui, [u("div", { class: _({ "d-flex gap-2": e.isFormLocalized }) }, [(S(!0), l(i, null, T(e.locales, (t) => I((S(), l("div", {
|
|
3048
3214
|
key: t,
|
|
3049
3215
|
class: _({ "flex-fill localized-editor": e.isFormLocalized })
|
|
3050
|
-
}, [f(
|
|
3216
|
+
}, [f(Zt, g({
|
|
3051
3217
|
id: e.name + "_" + t,
|
|
3052
3218
|
"model-value": e.modelValue[t],
|
|
3053
3219
|
name: e.name + "_" + t,
|
|
@@ -3058,12 +3224,12 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
3058
3224
|
"name",
|
|
3059
3225
|
"upload-url",
|
|
3060
3226
|
"onUpdate:modelValue"
|
|
3061
|
-
]), e.errors[e.name + "_" + t] ? (S(), l("div",
|
|
3227
|
+
]), e.errors[e.name + "_" + t] ? (S(), l("div", Wi, D(e.errors[e.name + "_" + t]), 1)) : c("", !0)], 2)), [[N, e.shouldShowLangGroup(t)]])), 128))], 2)])]));
|
|
3062
3228
|
}
|
|
3063
|
-
}, [["__scopeId", "data-v-608701dd"]]),
|
|
3229
|
+
}, [["__scopeId", "data-v-608701dd"]]), Ki = { class: "mb-3 row align-items-center" }, qi = ["for"], Ji = { class: "col-md-9 col-xl-8" }, Yi = {
|
|
3064
3230
|
key: 0,
|
|
3065
3231
|
class: "invalid-feedback d-block form-text"
|
|
3066
|
-
},
|
|
3232
|
+
}, Xi = {
|
|
3067
3233
|
__name: "FormWysiwygSimple",
|
|
3068
3234
|
props: {
|
|
3069
3235
|
modelValue: {
|
|
@@ -3093,10 +3259,10 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
3093
3259
|
},
|
|
3094
3260
|
emits: ["update:modelValue"],
|
|
3095
3261
|
setup(e) {
|
|
3096
|
-
return (t, n) => (S(), l("div",
|
|
3262
|
+
return (t, n) => (S(), l("div", Ki, [u("label", {
|
|
3097
3263
|
for: e.name,
|
|
3098
3264
|
class: "col-md-3 col-form-label text-md-end"
|
|
3099
|
-
}, D(e.label), 9,
|
|
3265
|
+
}, D(e.label), 9, qi), u("div", Ji, [f(qt, g({
|
|
3100
3266
|
id: e.name,
|
|
3101
3267
|
"model-value": e.modelValue,
|
|
3102
3268
|
name: e.name,
|
|
@@ -3106,12 +3272,12 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
3106
3272
|
"model-value",
|
|
3107
3273
|
"name",
|
|
3108
3274
|
"upload-url"
|
|
3109
|
-
]), e.error ? (S(), l("div",
|
|
3275
|
+
]), e.error ? (S(), l("div", Yi, D(e.error), 1)) : c("", !0)])]));
|
|
3110
3276
|
}
|
|
3111
|
-
},
|
|
3277
|
+
}, Zi = { class: "mb-3 row align-items-center" }, Qi = ["for"], $i = { class: "col-md-9 col-xl-8" }, ea = {
|
|
3112
3278
|
key: 0,
|
|
3113
3279
|
class: "invalid-feedback d-block form-text"
|
|
3114
|
-
},
|
|
3280
|
+
}, ta = /*#__PURE__*/ $({
|
|
3115
3281
|
__name: "FormLocalizedWysiwygSimple",
|
|
3116
3282
|
props: {
|
|
3117
3283
|
modelValue: {
|
|
@@ -3160,13 +3326,13 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
3160
3326
|
[e]: t
|
|
3161
3327
|
});
|
|
3162
3328
|
}
|
|
3163
|
-
return (t, n) => (S(), l("div",
|
|
3329
|
+
return (t, n) => (S(), l("div", Zi, [u("label", {
|
|
3164
3330
|
for: e.name + "_" + e.locales[0],
|
|
3165
3331
|
class: "col-md-3 col-form-label text-md-end"
|
|
3166
|
-
}, D(e.label), 9,
|
|
3332
|
+
}, D(e.label), 9, Qi), u("div", $i, [u("div", { class: _({ "d-flex gap-2": e.isFormLocalized }) }, [(S(!0), l(i, null, T(e.locales, (t) => I((S(), l("div", {
|
|
3167
3333
|
key: t,
|
|
3168
3334
|
class: _({ "flex-fill localized-editor": e.isFormLocalized })
|
|
3169
|
-
}, [f(
|
|
3335
|
+
}, [f(qt, g({
|
|
3170
3336
|
id: e.name + "_" + t,
|
|
3171
3337
|
"model-value": e.modelValue[t],
|
|
3172
3338
|
name: e.name + "_" + t,
|
|
@@ -3177,12 +3343,12 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
3177
3343
|
"name",
|
|
3178
3344
|
"upload-url",
|
|
3179
3345
|
"onUpdate:modelValue"
|
|
3180
|
-
]), e.errors[e.name + "_" + t] ? (S(), l("div",
|
|
3346
|
+
]), e.errors[e.name + "_" + t] ? (S(), l("div", ea, D(e.errors[e.name + "_" + t]), 1)) : c("", !0)], 2)), [[N, e.shouldShowLangGroup(t)]])), 128))], 2)])]));
|
|
3181
3347
|
}
|
|
3182
|
-
}, [["__scopeId", "data-v-bf19587d"]]),
|
|
3348
|
+
}, [["__scopeId", "data-v-bf19587d"]]), na = { class: "mb-3 row align-items-center" }, ra = ["for"], ia = { class: "col-md-9 col-xl-8" }, aa = {
|
|
3183
3349
|
key: 0,
|
|
3184
3350
|
class: "invalid-feedback d-block form-text"
|
|
3185
|
-
},
|
|
3351
|
+
}, oa = {
|
|
3186
3352
|
__name: "FormSelect",
|
|
3187
3353
|
props: {
|
|
3188
3354
|
modelValue: {
|
|
@@ -3225,10 +3391,10 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
3225
3391
|
},
|
|
3226
3392
|
emits: ["update:modelValue"],
|
|
3227
3393
|
setup(e) {
|
|
3228
|
-
return (t, n) => (S(), l("div",
|
|
3394
|
+
return (t, n) => (S(), l("div", na, [u("label", {
|
|
3229
3395
|
for: e.name,
|
|
3230
3396
|
class: "col-md-3 col-form-label text-md-end"
|
|
3231
|
-
}, D(e.label), 9,
|
|
3397
|
+
}, D(e.label), 9, ra), u("div", ia, [f(k(U), {
|
|
3232
3398
|
"model-value": e.modelValue,
|
|
3233
3399
|
class: _({ "is-invalid": e.error }),
|
|
3234
3400
|
placeholder: e.placeholder,
|
|
@@ -3244,21 +3410,21 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
3244
3410
|
"options",
|
|
3245
3411
|
"label",
|
|
3246
3412
|
"track-by"
|
|
3247
|
-
]), e.error ? (S(), l("div",
|
|
3413
|
+
]), e.error ? (S(), l("div", aa, D(e.error), 1)) : c("", !0)])]));
|
|
3248
3414
|
}
|
|
3249
|
-
},
|
|
3415
|
+
}, sa = { class: "mb-3 row align-items-center" }, ca = {
|
|
3250
3416
|
for: "password",
|
|
3251
3417
|
class: "col-md-3 col-form-label text-md-end"
|
|
3252
|
-
},
|
|
3418
|
+
}, la = { class: "col-md-9 col-xl-8" }, ua = ["value", "placeholder"], da = {
|
|
3253
3419
|
key: 0,
|
|
3254
3420
|
class: "invalid-feedback form-text"
|
|
3255
|
-
},
|
|
3421
|
+
}, fa = { class: "mb-3 row align-items-center" }, pa = {
|
|
3256
3422
|
for: "password_confirmation",
|
|
3257
3423
|
class: "col-md-3 col-form-label text-md-end"
|
|
3258
|
-
},
|
|
3424
|
+
}, ma = { class: "col-md-9 col-xl-8" }, ha = ["value", "placeholder"], ga = {
|
|
3259
3425
|
key: 0,
|
|
3260
3426
|
class: "invalid-feedback form-text"
|
|
3261
|
-
},
|
|
3427
|
+
}, _a = {
|
|
3262
3428
|
__name: "FormPasswordConfirm",
|
|
3263
3429
|
props: {
|
|
3264
3430
|
password: {
|
|
@@ -3284,7 +3450,7 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
3284
3450
|
},
|
|
3285
3451
|
emits: ["update:password", "update:passwordConfirmation"],
|
|
3286
3452
|
setup(e) {
|
|
3287
|
-
return (t, n) => (S(), l(i, null, [u("div",
|
|
3453
|
+
return (t, n) => (S(), l(i, null, [u("div", sa, [u("label", ca, D(e.translations.password), 1), u("div", la, [u("input", {
|
|
3288
3454
|
id: "password",
|
|
3289
3455
|
type: "password",
|
|
3290
3456
|
value: e.password,
|
|
@@ -3292,7 +3458,7 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
3292
3458
|
name: "password",
|
|
3293
3459
|
placeholder: e.translations.password,
|
|
3294
3460
|
onInput: n[0] ||= (e) => t.$emit("update:password", e.target.value)
|
|
3295
|
-
}, null, 42,
|
|
3461
|
+
}, null, 42, ua), e.passwordError ? (S(), l("div", da, D(e.passwordError), 1)) : c("", !0)])]), u("div", fa, [u("label", pa, D(e.translations.password_repeat), 1), u("div", ma, [u("input", {
|
|
3296
3462
|
id: "password_confirmation",
|
|
3297
3463
|
type: "password",
|
|
3298
3464
|
value: e.passwordConfirmation,
|
|
@@ -3300,9 +3466,9 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
3300
3466
|
name: "password_confirmation",
|
|
3301
3467
|
placeholder: e.translations.password,
|
|
3302
3468
|
onInput: n[1] ||= (e) => t.$emit("update:passwordConfirmation", e.target.value)
|
|
3303
|
-
}, null, 42,
|
|
3469
|
+
}, null, 42, ha), e.confirmationError ? (S(), l("div", ga, D(e.confirmationError), 1)) : c("", !0)])])], 64));
|
|
3304
3470
|
}
|
|
3305
|
-
},
|
|
3471
|
+
}, va = ["disabled"], ya = {
|
|
3306
3472
|
__name: "FormSubmit",
|
|
3307
3473
|
props: {
|
|
3308
3474
|
submitting: {
|
|
@@ -3319,24 +3485,24 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
3319
3485
|
type: "submit",
|
|
3320
3486
|
class: "btn btn-primary submit-btn",
|
|
3321
3487
|
disabled: e.submitting
|
|
3322
|
-
}, [u("i", { class: _(["fa", e.submitting ? "fa-spinner" : "fa-download"]) }, null, 2), d(" " + D(e.label), 1)], 8,
|
|
3488
|
+
}, [u("i", { class: _(["fa", e.submitting ? "fa-spinner" : "fa-download"]) }, null, 2), d(" " + D(e.label), 1)], 8, va));
|
|
3323
3489
|
}
|
|
3324
|
-
},
|
|
3490
|
+
}, ba = {
|
|
3325
3491
|
key: 0,
|
|
3326
3492
|
class: "row mb-2 localization-bar"
|
|
3327
|
-
},
|
|
3493
|
+
}, xa = { key: 0 }, Sa = { key: 0 }, Ca = {
|
|
3328
3494
|
key: 1,
|
|
3329
3495
|
class: "localization-error"
|
|
3330
|
-
},
|
|
3496
|
+
}, wa = {
|
|
3331
3497
|
key: 2,
|
|
3332
3498
|
class: "d-flex align-items-center gap-2"
|
|
3333
|
-
},
|
|
3499
|
+
}, Ta = { class: "text-nowrap" }, Ea = {
|
|
3334
3500
|
key: 0,
|
|
3335
3501
|
class: "localization-error"
|
|
3336
|
-
},
|
|
3502
|
+
}, Da = {
|
|
3337
3503
|
key: 0,
|
|
3338
3504
|
class: "localization-error"
|
|
3339
|
-
},
|
|
3505
|
+
}, Oa = /*#__PURE__*/ $({
|
|
3340
3506
|
__name: "LocalizationBar",
|
|
3341
3507
|
props: {
|
|
3342
3508
|
translations: {
|
|
@@ -3379,19 +3545,19 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
3379
3545
|
],
|
|
3380
3546
|
setup(e) {
|
|
3381
3547
|
let t = e, n = o(() => t.translations.currently_editing_translation ? t.translations.currently_editing_translation.replace(":locale", t.defaultLocale.toUpperCase()) : ""), r = o(() => t.translations.more_can_be_managed ? t.translations.more_can_be_managed.replace(":count", String(t.otherLocales.length)) : ""), i = o(() => t.onSmallScreen ? [t.defaultLocale, ...t.otherLocales] : [...t.otherLocales]);
|
|
3382
|
-
return (t, a) => e.locales.length > 0 ? (S(), l("div",
|
|
3383
|
-
e.isFormLocalized ? c("", !0) : (S(), l("small",
|
|
3548
|
+
return (t, a) => e.locales.length > 0 ? (S(), l("div", ba, [u("div", { class: _(["offset-md-3 col-md-9 col-xl-8 text-start", { "d-none": e.onSmallScreen }]) }, [
|
|
3549
|
+
e.isFormLocalized ? c("", !0) : (S(), l("small", xa, [
|
|
3384
3550
|
d(D(n.value), 1),
|
|
3385
|
-
e.otherLocales.length > 1 ? (S(), l("span",
|
|
3551
|
+
e.otherLocales.length > 1 ? (S(), l("span", Sa, D(r.value), 1)) : c("", !0),
|
|
3386
3552
|
a[4] ||= d(" | ", -1),
|
|
3387
3553
|
u("a", {
|
|
3388
3554
|
href: "#",
|
|
3389
3555
|
onClick: a[0] ||= R((e) => t.$emit("show-localization"), ["prevent"])
|
|
3390
3556
|
}, D(e.translations.manage_translations), 1)
|
|
3391
3557
|
])),
|
|
3392
|
-
!e.isFormLocalized && e.showLocalizedValidationError ? (S(), l("i",
|
|
3393
|
-
e.isFormLocalized ? (S(), l("div",
|
|
3394
|
-
u("small",
|
|
3558
|
+
!e.isFormLocalized && e.showLocalizedValidationError ? (S(), l("i", Ca)) : c("", !0),
|
|
3559
|
+
e.isFormLocalized ? (S(), l("div", wa, [
|
|
3560
|
+
u("small", Ta, D(e.translations.choose_translation_to_edit), 1),
|
|
3395
3561
|
f(k(U), {
|
|
3396
3562
|
"model-value": e.currentLocale,
|
|
3397
3563
|
options: i.value,
|
|
@@ -3405,7 +3571,7 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
3405
3571
|
"options",
|
|
3406
3572
|
"custom-label"
|
|
3407
3573
|
]),
|
|
3408
|
-
e.showLocalizedValidationError ? (S(), l("i",
|
|
3574
|
+
e.showLocalizedValidationError ? (S(), l("i", Ea)) : c("", !0),
|
|
3409
3575
|
u("small", null, [u("a", {
|
|
3410
3576
|
href: "#",
|
|
3411
3577
|
onClick: a[2] ||= R((e) => t.$emit("hide-localization"), ["prevent"])
|
|
@@ -3432,25 +3598,25 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
3432
3598
|
"options",
|
|
3433
3599
|
"custom-label"
|
|
3434
3600
|
]),
|
|
3435
|
-
e.showLocalizedValidationError ? (S(), l("i",
|
|
3601
|
+
e.showLocalizedValidationError ? (S(), l("i", Da)) : c("", !0)
|
|
3436
3602
|
])], 2)) : c("", !0)])) : c("", !0);
|
|
3437
3603
|
}
|
|
3438
|
-
}, [["__scopeId", "data-v-1c9f060d"]]),
|
|
3604
|
+
}, [["__scopeId", "data-v-1c9f060d"]]), ka = { class: "card" }, Aa = { class: "card-body" }, ja = ["action"], Ma = { class: "auth-header" }, Na = { class: "auth-title" }, Pa = { class: "auth-subtitle" }, Fa = { class: "auth-body" }, Ia = {
|
|
3439
3605
|
key: 0,
|
|
3440
3606
|
class: "alert alert-success"
|
|
3441
|
-
},
|
|
3607
|
+
}, La = {
|
|
3442
3608
|
key: 1,
|
|
3443
3609
|
class: "alert alert-danger"
|
|
3444
|
-
},
|
|
3610
|
+
}, Ra = { class: "mb-3" }, za = { for: "email" }, Ba = { class: "input-group input-group--custom" }, Va = ["placeholder"], Ha = {
|
|
3445
3611
|
key: 0,
|
|
3446
3612
|
class: "invalid-feedback d-block form-text"
|
|
3447
|
-
},
|
|
3613
|
+
}, Ua = { class: "mb-3" }, Wa = { for: "password" }, Ga = { class: "input-group input-group--custom" }, Ka = ["placeholder"], qa = {
|
|
3448
3614
|
key: 0,
|
|
3449
3615
|
class: "invalid-feedback d-block form-text"
|
|
3450
|
-
},
|
|
3616
|
+
}, Ja = { class: "mb-3" }, Ya = ["disabled"], Xa = {
|
|
3451
3617
|
key: 0,
|
|
3452
3618
|
class: "fa fa-spinner fa-spin"
|
|
3453
|
-
},
|
|
3619
|
+
}, Za = { class: "mb-3 text-center" }, Qa = ["href"], $a = /*#__PURE__*/ $({
|
|
3454
3620
|
__name: "LoginForm",
|
|
3455
3621
|
props: {
|
|
3456
3622
|
action: {
|
|
@@ -3479,7 +3645,7 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
3479
3645
|
}
|
|
3480
3646
|
},
|
|
3481
3647
|
setup(e) {
|
|
3482
|
-
let t = e, { form: n, errors: r, submitting: a, onSubmit: o } =
|
|
3648
|
+
let t = e, { form: n, errors: r, submitting: a, onSubmit: o } = Y(t, {
|
|
3483
3649
|
formDefaults: {
|
|
3484
3650
|
email: "",
|
|
3485
3651
|
password: ""
|
|
@@ -3492,40 +3658,40 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
3492
3658
|
window.location.replace(t.redirectUrl);
|
|
3493
3659
|
}
|
|
3494
3660
|
});
|
|
3495
|
-
return (t, s) => (S(), l("div",
|
|
3661
|
+
return (t, s) => (S(), l("div", ka, [u("div", Aa, [u("form", {
|
|
3496
3662
|
role: "form",
|
|
3497
3663
|
method: "POST",
|
|
3498
3664
|
action: e.action,
|
|
3499
3665
|
novalidate: "",
|
|
3500
3666
|
onSubmit: s[2] ||= R((...e) => k(o) && k(o)(...e), ["prevent"])
|
|
3501
|
-
}, [u("div",
|
|
3502
|
-
e.statusMessage ? (S(), l("div",
|
|
3503
|
-
e.serverErrors.length ? (S(), l("div",
|
|
3504
|
-
u("div",
|
|
3505
|
-
u("label",
|
|
3506
|
-
u("div",
|
|
3667
|
+
}, [u("div", Ma, [u("h1", Na, D(e.translations.title), 1), u("p", Pa, D(e.translations.signInText), 1)]), u("div", Fa, [
|
|
3668
|
+
e.statusMessage ? (S(), l("div", Ia, D(e.statusMessage), 1)) : c("", !0),
|
|
3669
|
+
e.serverErrors.length ? (S(), l("div", La, [u("ul", null, [(S(!0), l(i, null, T(e.serverErrors, (e, t) => (S(), l("li", { key: t }, D(e), 1))), 128))])])) : c("", !0),
|
|
3670
|
+
u("div", Ra, [
|
|
3671
|
+
u("label", za, D(e.translations.email), 1),
|
|
3672
|
+
u("div", Ba, [s[3] ||= u("span", { class: "input-group-text" }, [u("i", { class: "fa fa-envelope" })], -1), I(u("input", {
|
|
3507
3673
|
id: "email",
|
|
3508
3674
|
"onUpdate:modelValue": s[0] ||= (e) => k(n).email = e,
|
|
3509
3675
|
type: "text",
|
|
3510
3676
|
class: _(["form-control", { "is-invalid": k(r).email }]),
|
|
3511
3677
|
name: "email",
|
|
3512
3678
|
placeholder: e.translations.email
|
|
3513
|
-
}, null, 10,
|
|
3514
|
-
k(r).email ? (S(), l("div",
|
|
3679
|
+
}, null, 10, Va), [[M, k(n).email]])]),
|
|
3680
|
+
k(r).email ? (S(), l("div", Ha, D(k(r).email), 1)) : c("", !0)
|
|
3515
3681
|
]),
|
|
3516
|
-
u("div",
|
|
3517
|
-
u("label",
|
|
3518
|
-
u("div",
|
|
3682
|
+
u("div", Ua, [
|
|
3683
|
+
u("label", Wa, D(e.translations.password), 1),
|
|
3684
|
+
u("div", Ga, [s[4] ||= u("span", { class: "input-group-text" }, [u("i", { class: "fa fa-lock" })], -1), I(u("input", {
|
|
3519
3685
|
id: "password",
|
|
3520
3686
|
"onUpdate:modelValue": s[1] ||= (e) => k(n).password = e,
|
|
3521
3687
|
type: "password",
|
|
3522
3688
|
class: _(["form-control", { "is-invalid": k(r).password }]),
|
|
3523
3689
|
name: "password",
|
|
3524
3690
|
placeholder: e.translations.password
|
|
3525
|
-
}, null, 10,
|
|
3526
|
-
k(r).password ? (S(), l("div",
|
|
3691
|
+
}, null, 10, Ka), [[M, k(n).password]])]),
|
|
3692
|
+
k(r).password ? (S(), l("div", qa, D(k(r).password), 1)) : c("", !0)
|
|
3527
3693
|
]),
|
|
3528
|
-
u("div",
|
|
3694
|
+
u("div", Ja, [s[5] ||= u("input", {
|
|
3529
3695
|
type: "hidden",
|
|
3530
3696
|
name: "remember",
|
|
3531
3697
|
value: "1"
|
|
@@ -3533,32 +3699,32 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
3533
3699
|
type: "submit",
|
|
3534
3700
|
class: "btn btn-primary submit-btn",
|
|
3535
3701
|
disabled: k(a)
|
|
3536
|
-
}, [k(a) ? (S(), l("i",
|
|
3537
|
-
u("div",
|
|
3702
|
+
}, [k(a) ? (S(), l("i", Xa)) : c("", !0), d(" " + D(e.translations.button), 1)], 8, Ya)]),
|
|
3703
|
+
u("div", Za, [u("a", {
|
|
3538
3704
|
href: e.passwordResetUrl,
|
|
3539
3705
|
class: "auth-ghost-link forgot-link"
|
|
3540
|
-
}, D(e.translations.forgotPassword), 9,
|
|
3541
|
-
])], 40,
|
|
3706
|
+
}, D(e.translations.forgotPassword), 9, Qa)])
|
|
3707
|
+
])], 40, ja)])]));
|
|
3542
3708
|
}
|
|
3543
|
-
}, [["__scopeId", "data-v-8d4257dc"]]),
|
|
3709
|
+
}, [["__scopeId", "data-v-8d4257dc"]]), eo = { class: "card" }, to = { class: "card-body" }, no = ["action"], ro = { class: "auth-header" }, io = { class: "auth-title" }, ao = { class: "auth-subtitle" }, oo = { class: "auth-body" }, so = {
|
|
3544
3710
|
key: 0,
|
|
3545
3711
|
class: "alert alert-success"
|
|
3546
|
-
},
|
|
3712
|
+
}, co = {
|
|
3547
3713
|
key: 1,
|
|
3548
3714
|
class: "alert alert-success"
|
|
3549
|
-
},
|
|
3715
|
+
}, lo = {
|
|
3550
3716
|
key: 2,
|
|
3551
3717
|
class: "alert alert-danger"
|
|
3552
|
-
},
|
|
3718
|
+
}, uo = { class: "mb-3" }, fo = { for: "email" }, po = { class: "input-group input-group--custom" }, mo = ["placeholder"], ho = {
|
|
3553
3719
|
key: 0,
|
|
3554
3720
|
class: "invalid-feedback d-block form-text"
|
|
3555
|
-
},
|
|
3721
|
+
}, go = { class: "mb-3" }, _o = ["disabled"], vo = {
|
|
3556
3722
|
key: 0,
|
|
3557
3723
|
class: "fa fa-spinner fa-spin"
|
|
3558
|
-
},
|
|
3724
|
+
}, yo = {
|
|
3559
3725
|
key: 3,
|
|
3560
3726
|
class: "text-center"
|
|
3561
|
-
},
|
|
3727
|
+
}, bo = ["href"], xo = {
|
|
3562
3728
|
__name: "ForgotPasswordForm",
|
|
3563
3729
|
props: {
|
|
3564
3730
|
action: {
|
|
@@ -3583,65 +3749,65 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
3583
3749
|
}
|
|
3584
3750
|
},
|
|
3585
3751
|
setup(e) {
|
|
3586
|
-
let { form: t, errors: n, submitting: r, successMessage: a, onSubmit: o } =
|
|
3752
|
+
let { form: t, errors: n, submitting: r, successMessage: a, onSubmit: o } = Y(e, {
|
|
3587
3753
|
formDefaults: { email: "" },
|
|
3588
3754
|
validationSchema: { email: "required|email" }
|
|
3589
3755
|
});
|
|
3590
|
-
return (s, f) => (S(), l("div",
|
|
3756
|
+
return (s, f) => (S(), l("div", eo, [u("div", to, [u("form", {
|
|
3591
3757
|
role: "form",
|
|
3592
3758
|
method: "POST",
|
|
3593
3759
|
action: e.action,
|
|
3594
3760
|
novalidate: "",
|
|
3595
3761
|
onSubmit: f[1] ||= R((...e) => k(o) && k(o)(...e), ["prevent"])
|
|
3596
|
-
}, [u("div",
|
|
3597
|
-
k(a) ? (S(), l("div",
|
|
3598
|
-
e.statusMessage && !k(a) ? (S(), l("div",
|
|
3599
|
-
e.serverErrors.length ? (S(), l("div",
|
|
3600
|
-
u("div",
|
|
3601
|
-
u("label",
|
|
3602
|
-
u("div",
|
|
3762
|
+
}, [u("div", ro, [u("h1", io, D(e.translations.title), 1), u("p", ao, D(e.translations.note), 1)]), u("div", oo, [
|
|
3763
|
+
k(a) ? (S(), l("div", so, D(k(a)), 1)) : c("", !0),
|
|
3764
|
+
e.statusMessage && !k(a) ? (S(), l("div", co, D(e.statusMessage), 1)) : c("", !0),
|
|
3765
|
+
e.serverErrors.length ? (S(), l("div", lo, [u("ul", null, [(S(!0), l(i, null, T(e.serverErrors, (e, t) => (S(), l("li", { key: t }, D(e), 1))), 128))])])) : c("", !0),
|
|
3766
|
+
u("div", uo, [
|
|
3767
|
+
u("label", fo, D(e.translations.email), 1),
|
|
3768
|
+
u("div", po, [f[2] ||= u("span", { class: "input-group-text" }, [u("i", { class: "fa fa-envelope" })], -1), I(u("input", {
|
|
3603
3769
|
id: "email",
|
|
3604
3770
|
"onUpdate:modelValue": f[0] ||= (e) => k(t).email = e,
|
|
3605
3771
|
type: "text",
|
|
3606
3772
|
class: _(["form-control", { "is-invalid": k(n).email }]),
|
|
3607
3773
|
name: "email",
|
|
3608
3774
|
placeholder: e.translations.email
|
|
3609
|
-
}, null, 10,
|
|
3610
|
-
k(n).email ? (S(), l("div",
|
|
3775
|
+
}, null, 10, mo), [[M, k(t).email]])]),
|
|
3776
|
+
k(n).email ? (S(), l("div", ho, D(k(n).email), 1)) : c("", !0)
|
|
3611
3777
|
]),
|
|
3612
|
-
u("div",
|
|
3778
|
+
u("div", go, [u("button", {
|
|
3613
3779
|
type: "submit",
|
|
3614
3780
|
class: "btn btn-primary submit-btn",
|
|
3615
3781
|
disabled: k(r)
|
|
3616
|
-
}, [k(r) ? (S(), l("i",
|
|
3617
|
-
e.loginUrl ? (S(), l("div",
|
|
3782
|
+
}, [k(r) ? (S(), l("i", vo)) : c("", !0), d(" " + D(e.translations.button), 1)], 8, _o)]),
|
|
3783
|
+
e.loginUrl ? (S(), l("div", yo, [u("a", {
|
|
3618
3784
|
href: e.loginUrl,
|
|
3619
3785
|
class: "auth-ghost-link"
|
|
3620
|
-
}, D(e.translations.backToLogin), 9,
|
|
3621
|
-
])], 40,
|
|
3786
|
+
}, D(e.translations.backToLogin), 9, bo)])) : c("", !0)
|
|
3787
|
+
])], 40, no)])]));
|
|
3622
3788
|
}
|
|
3623
|
-
},
|
|
3789
|
+
}, So = { class: "card" }, Co = { class: "card-body" }, wo = ["action"], To = { class: "auth-header" }, Eo = { class: "auth-title" }, Do = { class: "auth-subtitle" }, Oo = { class: "auth-body" }, ko = {
|
|
3624
3790
|
key: 0,
|
|
3625
3791
|
class: "alert alert-success"
|
|
3626
|
-
},
|
|
3792
|
+
}, Ao = {
|
|
3627
3793
|
key: 1,
|
|
3628
3794
|
class: "alert alert-danger"
|
|
3629
|
-
},
|
|
3795
|
+
}, jo = { class: "mb-3" }, Mo = { for: "email" }, No = { class: "input-group input-group--custom" }, Po = ["placeholder"], Fo = {
|
|
3630
3796
|
key: 0,
|
|
3631
3797
|
class: "invalid-feedback d-block form-text"
|
|
3632
|
-
},
|
|
3798
|
+
}, Io = { class: "mb-3" }, Lo = { for: "password" }, Ro = { class: "input-group input-group--custom" }, zo = ["placeholder"], Bo = {
|
|
3633
3799
|
key: 0,
|
|
3634
3800
|
class: "invalid-feedback d-block form-text"
|
|
3635
|
-
},
|
|
3801
|
+
}, Vo = { class: "mb-3" }, Ho = { for: "password_confirmation" }, Uo = { class: "input-group input-group--custom" }, Wo = ["placeholder"], Go = {
|
|
3636
3802
|
key: 0,
|
|
3637
3803
|
class: "invalid-feedback d-block form-text"
|
|
3638
|
-
},
|
|
3804
|
+
}, Ko = { class: "mb-3" }, qo = ["disabled"], Jo = {
|
|
3639
3805
|
key: 0,
|
|
3640
3806
|
class: "fa fa-spinner fa-spin"
|
|
3641
|
-
},
|
|
3807
|
+
}, Yo = {
|
|
3642
3808
|
key: 2,
|
|
3643
3809
|
class: "text-center"
|
|
3644
|
-
},
|
|
3810
|
+
}, Xo = ["href"], Zo = {
|
|
3645
3811
|
__name: "ResetPasswordForm",
|
|
3646
3812
|
props: {
|
|
3647
3813
|
action: {
|
|
@@ -3678,7 +3844,7 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
3678
3844
|
}
|
|
3679
3845
|
},
|
|
3680
3846
|
setup(e) {
|
|
3681
|
-
let t = e, { form: n, errors: r, submitting: a, onSubmit: o } =
|
|
3847
|
+
let t = e, { form: n, errors: r, submitting: a, onSubmit: o } = Y(t, {
|
|
3682
3848
|
formDefaults: {
|
|
3683
3849
|
email: t.email,
|
|
3684
3850
|
password: "",
|
|
@@ -3694,78 +3860,78 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
3694
3860
|
window.location.replace(e.redirect || t.redirectUrl);
|
|
3695
3861
|
}
|
|
3696
3862
|
});
|
|
3697
|
-
return (t, s) => (S(), l("div",
|
|
3863
|
+
return (t, s) => (S(), l("div", So, [u("div", Co, [u("form", {
|
|
3698
3864
|
role: "form",
|
|
3699
3865
|
method: "POST",
|
|
3700
3866
|
action: e.action,
|
|
3701
3867
|
novalidate: "",
|
|
3702
3868
|
onSubmit: s[3] ||= R((...e) => k(o) && k(o)(...e), ["prevent"])
|
|
3703
|
-
}, [u("div",
|
|
3704
|
-
e.statusMessage ? (S(), l("div",
|
|
3705
|
-
e.serverErrors.length ? (S(), l("div",
|
|
3706
|
-
u("div",
|
|
3707
|
-
u("label",
|
|
3708
|
-
u("div",
|
|
3869
|
+
}, [u("div", To, [u("h1", Eo, D(e.translations.title), 1), u("p", Do, D(e.translations.note), 1)]), u("div", Oo, [
|
|
3870
|
+
e.statusMessage ? (S(), l("div", ko, D(e.statusMessage), 1)) : c("", !0),
|
|
3871
|
+
e.serverErrors.length ? (S(), l("div", Ao, [u("ul", null, [(S(!0), l(i, null, T(e.serverErrors, (e, t) => (S(), l("li", { key: t }, D(e), 1))), 128))])])) : c("", !0),
|
|
3872
|
+
u("div", jo, [
|
|
3873
|
+
u("label", Mo, D(e.translations.email), 1),
|
|
3874
|
+
u("div", No, [s[4] ||= u("span", { class: "input-group-text" }, [u("i", { class: "fa fa-envelope" })], -1), I(u("input", {
|
|
3709
3875
|
id: "email",
|
|
3710
3876
|
"onUpdate:modelValue": s[0] ||= (e) => k(n).email = e,
|
|
3711
3877
|
type: "text",
|
|
3712
3878
|
class: _(["form-control", { "is-invalid": k(r).email }]),
|
|
3713
3879
|
name: "email",
|
|
3714
3880
|
placeholder: e.translations.email
|
|
3715
|
-
}, null, 10,
|
|
3716
|
-
k(r).email ? (S(), l("div",
|
|
3881
|
+
}, null, 10, Po), [[M, k(n).email]])]),
|
|
3882
|
+
k(r).email ? (S(), l("div", Fo, D(k(r).email), 1)) : c("", !0)
|
|
3717
3883
|
]),
|
|
3718
|
-
u("div",
|
|
3719
|
-
u("label",
|
|
3720
|
-
u("div",
|
|
3884
|
+
u("div", Io, [
|
|
3885
|
+
u("label", Lo, D(e.translations.password), 1),
|
|
3886
|
+
u("div", Ro, [s[5] ||= u("span", { class: "input-group-text" }, [u("i", { class: "fa fa-lock" })], -1), I(u("input", {
|
|
3721
3887
|
id: "password",
|
|
3722
3888
|
"onUpdate:modelValue": s[1] ||= (e) => k(n).password = e,
|
|
3723
3889
|
type: "password",
|
|
3724
3890
|
class: _(["form-control", { "is-invalid": k(r).password }]),
|
|
3725
3891
|
name: "password",
|
|
3726
3892
|
placeholder: e.translations.password
|
|
3727
|
-
}, null, 10,
|
|
3728
|
-
k(r).password ? (S(), l("div",
|
|
3893
|
+
}, null, 10, zo), [[M, k(n).password]])]),
|
|
3894
|
+
k(r).password ? (S(), l("div", Bo, D(k(r).password), 1)) : c("", !0)
|
|
3729
3895
|
]),
|
|
3730
|
-
u("div",
|
|
3731
|
-
u("label",
|
|
3732
|
-
u("div",
|
|
3896
|
+
u("div", Vo, [
|
|
3897
|
+
u("label", Ho, D(e.translations.passwordConfirm), 1),
|
|
3898
|
+
u("div", Uo, [s[6] ||= u("span", { class: "input-group-text" }, [u("i", { class: "fa fa-lock" })], -1), I(u("input", {
|
|
3733
3899
|
id: "password_confirmation",
|
|
3734
3900
|
"onUpdate:modelValue": s[2] ||= (e) => k(n).password_confirmation = e,
|
|
3735
3901
|
type: "password",
|
|
3736
3902
|
class: _(["form-control", { "is-invalid": k(r).password_confirmation }]),
|
|
3737
3903
|
name: "password_confirmation",
|
|
3738
3904
|
placeholder: e.translations.passwordConfirm
|
|
3739
|
-
}, null, 10,
|
|
3740
|
-
k(r).password_confirmation ? (S(), l("div",
|
|
3905
|
+
}, null, 10, Wo), [[M, k(n).password_confirmation]])]),
|
|
3906
|
+
k(r).password_confirmation ? (S(), l("div", Go, D(k(r).password_confirmation), 1)) : c("", !0)
|
|
3741
3907
|
]),
|
|
3742
|
-
u("div",
|
|
3908
|
+
u("div", Ko, [u("button", {
|
|
3743
3909
|
type: "submit",
|
|
3744
3910
|
class: "btn btn-primary submit-btn",
|
|
3745
3911
|
disabled: k(a)
|
|
3746
|
-
}, [k(a) ? (S(), l("i",
|
|
3747
|
-
e.loginUrl ? (S(), l("div",
|
|
3912
|
+
}, [k(a) ? (S(), l("i", Jo)) : c("", !0), d(" " + D(e.translations.button), 1)], 8, qo)]),
|
|
3913
|
+
e.loginUrl ? (S(), l("div", Yo, [u("a", {
|
|
3748
3914
|
href: e.loginUrl,
|
|
3749
3915
|
class: "auth-ghost-link"
|
|
3750
|
-
}, D(e.translations.backToLogin), 9,
|
|
3751
|
-
])], 40,
|
|
3916
|
+
}, D(e.translations.backToLogin), 9, Xo)])) : c("", !0)
|
|
3917
|
+
])], 40, wo)])]));
|
|
3752
3918
|
}
|
|
3753
|
-
},
|
|
3919
|
+
}, Qo = { class: "card" }, $o = { class: "card-body" }, es = ["action"], ts = { class: "auth-header" }, ns = { class: "auth-title" }, rs = { class: "auth-subtitle" }, is = { class: "auth-body" }, as = {
|
|
3754
3920
|
key: 0,
|
|
3755
3921
|
class: "alert alert-success"
|
|
3756
|
-
},
|
|
3922
|
+
}, os = {
|
|
3757
3923
|
key: 1,
|
|
3758
3924
|
class: "alert alert-success"
|
|
3759
|
-
},
|
|
3925
|
+
}, ss = {
|
|
3760
3926
|
key: 2,
|
|
3761
3927
|
class: "alert alert-danger"
|
|
3762
|
-
},
|
|
3928
|
+
}, cs = { class: "mb-3" }, ls = { for: "email" }, us = { class: "input-group input-group--custom" }, ds = ["placeholder"], fs = {
|
|
3763
3929
|
key: 0,
|
|
3764
3930
|
class: "invalid-feedback d-block form-text"
|
|
3765
|
-
},
|
|
3931
|
+
}, ps = { class: "mb-3" }, ms = ["disabled"], hs = {
|
|
3766
3932
|
key: 0,
|
|
3767
3933
|
class: "fa fa-spinner fa-spin"
|
|
3768
|
-
},
|
|
3934
|
+
}, gs = {
|
|
3769
3935
|
__name: "ActivationForm",
|
|
3770
3936
|
props: {
|
|
3771
3937
|
action: {
|
|
@@ -3786,43 +3952,43 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
3786
3952
|
}
|
|
3787
3953
|
},
|
|
3788
3954
|
setup(e) {
|
|
3789
|
-
let { form: t, errors: n, submitting: r, successMessage: a, onSubmit: o } =
|
|
3955
|
+
let { form: t, errors: n, submitting: r, successMessage: a, onSubmit: o } = Y(e, {
|
|
3790
3956
|
formDefaults: { email: "" },
|
|
3791
3957
|
validationSchema: { email: "required|email" }
|
|
3792
3958
|
});
|
|
3793
|
-
return (s, f) => (S(), l("div",
|
|
3959
|
+
return (s, f) => (S(), l("div", Qo, [u("div", $o, [u("form", {
|
|
3794
3960
|
role: "form",
|
|
3795
3961
|
method: "POST",
|
|
3796
3962
|
action: e.action,
|
|
3797
3963
|
novalidate: "",
|
|
3798
3964
|
onSubmit: f[1] ||= R((...e) => k(o) && k(o)(...e), ["prevent"])
|
|
3799
|
-
}, [u("div",
|
|
3800
|
-
k(a) ? (S(), l("div",
|
|
3801
|
-
e.statusMessage && !k(a) ? (S(), l("div",
|
|
3802
|
-
e.serverErrors.length ? (S(), l("div",
|
|
3803
|
-
u("div",
|
|
3804
|
-
u("label",
|
|
3805
|
-
u("div",
|
|
3965
|
+
}, [u("div", ts, [u("h1", ns, D(e.translations.title), 1), u("p", rs, D(e.translations.note), 1)]), u("div", is, [
|
|
3966
|
+
k(a) ? (S(), l("div", as, D(k(a)), 1)) : c("", !0),
|
|
3967
|
+
e.statusMessage && !k(a) ? (S(), l("div", os, D(e.statusMessage), 1)) : c("", !0),
|
|
3968
|
+
e.serverErrors.length ? (S(), l("div", ss, [u("ul", null, [(S(!0), l(i, null, T(e.serverErrors, (e, t) => (S(), l("li", { key: t }, D(e), 1))), 128))])])) : c("", !0),
|
|
3969
|
+
u("div", cs, [
|
|
3970
|
+
u("label", ls, D(e.translations.email), 1),
|
|
3971
|
+
u("div", us, [f[2] ||= u("span", { class: "input-group-text" }, [u("i", { class: "fa fa-envelope" })], -1), I(u("input", {
|
|
3806
3972
|
id: "email",
|
|
3807
3973
|
"onUpdate:modelValue": f[0] ||= (e) => k(t).email = e,
|
|
3808
3974
|
type: "text",
|
|
3809
3975
|
class: _(["form-control", { "is-invalid": k(n).email }]),
|
|
3810
3976
|
name: "email",
|
|
3811
3977
|
placeholder: e.translations.email
|
|
3812
|
-
}, null, 10,
|
|
3813
|
-
k(n).email ? (S(), l("div",
|
|
3978
|
+
}, null, 10, ds), [[M, k(t).email]])]),
|
|
3979
|
+
k(n).email ? (S(), l("div", fs, D(k(n).email), 1)) : c("", !0)
|
|
3814
3980
|
]),
|
|
3815
|
-
u("div",
|
|
3981
|
+
u("div", ps, [u("button", {
|
|
3816
3982
|
type: "submit",
|
|
3817
3983
|
class: "btn btn-primary submit-btn",
|
|
3818
3984
|
disabled: k(r)
|
|
3819
|
-
}, [k(r) ? (S(), l("i",
|
|
3820
|
-
])], 40,
|
|
3985
|
+
}, [k(r) ? (S(), l("i", hs)) : c("", !0), d(" " + D(e.translations.button), 1)], 8, ms)])
|
|
3986
|
+
])], 40, es)])]));
|
|
3821
3987
|
}
|
|
3822
|
-
},
|
|
3988
|
+
}, _s = { class: "card" }, vs = { class: "card-body" }, ys = { class: "auth-header" }, bs = { class: "auth-title" }, xs = { class: "auth-body" }, Ss = {
|
|
3823
3989
|
key: 0,
|
|
3824
3990
|
class: "alert alert-danger"
|
|
3825
|
-
},
|
|
3991
|
+
}, Cs = {
|
|
3826
3992
|
__name: "ActivationError",
|
|
3827
3993
|
props: {
|
|
3828
3994
|
translations: {
|
|
@@ -3835,15 +4001,15 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
3835
4001
|
}
|
|
3836
4002
|
},
|
|
3837
4003
|
setup(e) {
|
|
3838
|
-
return (t, n) => (S(), l("div",
|
|
4004
|
+
return (t, n) => (S(), l("div", _s, [u("div", vs, [u("div", ys, [u("h1", bs, D(e.translations.title), 1)]), u("div", xs, [e.serverErrors.length ? (S(), l("div", Ss, [u("ul", null, [(S(!0), l(i, null, T(e.serverErrors, (e, t) => (S(), l("li", { key: t }, D(e), 1))), 128))])])) : c("", !0)])])]));
|
|
3839
4005
|
}
|
|
3840
|
-
},
|
|
4006
|
+
}, ws = { class: "modal-dialog" }, Ts = { class: "modal-content" }, Es = { class: "modal-header" }, Ds = { class: "modal-title" }, Os = { class: "modal-body" }, ks = {
|
|
3841
4007
|
class: "text-center",
|
|
3842
4008
|
style: { "word-wrap": "break-word" }
|
|
3843
|
-
},
|
|
4009
|
+
}, As = { class: "form-label" }, js = ["onUpdate:modelValue", "placeholder"], Ms = ["onUpdate:modelValue", "placeholder"], Ns = { class: "text-center" }, Ps = {
|
|
3844
4010
|
class: "btn btn-primary w-100",
|
|
3845
4011
|
type: "submit"
|
|
3846
|
-
},
|
|
4012
|
+
}, Fs = {
|
|
3847
4013
|
__name: "TranslationEditModal",
|
|
3848
4014
|
props: {
|
|
3849
4015
|
show: {
|
|
@@ -3884,47 +4050,47 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
3884
4050
|
return (t, n) => (S(), l(i, null, [u("div", {
|
|
3885
4051
|
class: _(["modal fade", { show: e.show }]),
|
|
3886
4052
|
style: y({ display: e.show ? "block" : "none" })
|
|
3887
|
-
}, [u("div",
|
|
4053
|
+
}, [u("div", ws, [u("div", Ts, [u("div", Es, [u("h4", Ds, D(e.translations.edit), 1), u("button", {
|
|
3888
4054
|
type: "button",
|
|
3889
4055
|
class: "btn-close",
|
|
3890
4056
|
onClick: n[0] ||= (e) => t.$emit("close")
|
|
3891
|
-
})]), u("div",
|
|
4057
|
+
})]), u("div", Os, [u("p", ks, [u("strong", null, D(e.translations.default_text) + ":", 1), d(" " + D(e.item?.key), 1)]), u("form", { onSubmit: R(p, ["prevent"]) }, [(S(!0), l(i, null, T(s.value, (t) => (S(), l("div", {
|
|
3892
4058
|
key: t,
|
|
3893
4059
|
class: "mb-3"
|
|
3894
|
-
}, [u("label",
|
|
4060
|
+
}, [u("label", As, D(t.toUpperCase()) + " " + D(e.translations.translation), 1), !f[t] || f[t].length < 70 ? I((S(), l("input", {
|
|
3895
4061
|
key: 0,
|
|
3896
4062
|
"onUpdate:modelValue": (e) => f[t] = e,
|
|
3897
4063
|
type: "text",
|
|
3898
4064
|
class: "form-control",
|
|
3899
4065
|
placeholder: (e.translations.translation_for || "").replace(":locale", t)
|
|
3900
|
-
}, null, 8,
|
|
4066
|
+
}, null, 8, js)), [[M, f[t]]]) : I((S(), l("textarea", {
|
|
3901
4067
|
key: 1,
|
|
3902
4068
|
"onUpdate:modelValue": (e) => f[t] = e,
|
|
3903
4069
|
class: "form-control",
|
|
3904
4070
|
placeholder: (e.translations.translation_for || "").replace(":locale", t),
|
|
3905
4071
|
cols: "30",
|
|
3906
4072
|
rows: "4"
|
|
3907
|
-
}, null, 8,
|
|
4073
|
+
}, null, 8, Ms)), [[M, f[t]]])]))), 128)), u("div", Ns, [u("button", Ps, D(e.translations.save) + " " + D(e.translations.translation), 1)])], 32)])])])], 6), e.show ? (S(), l("div", {
|
|
3908
4074
|
key: 0,
|
|
3909
4075
|
class: "modal-backdrop fade show",
|
|
3910
4076
|
onClick: n[1] ||= (e) => t.$emit("close")
|
|
3911
4077
|
})) : c("", !0)], 64));
|
|
3912
4078
|
}
|
|
3913
|
-
},
|
|
4079
|
+
}, Is = { class: "modal-dialog modal-lg" }, Ls = { class: "modal-content" }, Rs = { class: "modal-header" }, zs = { class: "modal-title" }, Bs = { class: "modal-body" }, Vs = { class: "row mb-3" }, Hs = { class: "col-md-4 text-md-end" }, Us = { class: "col-form-label" }, Ws = { class: "col-md-6" }, Gs = { class: "btn btn-primary btn-sm w-100 mb-0" }, Ks = { key: 0 }, qs = { key: 1 }, Js = { class: "row mb-3" }, Ys = { class: "col-md-4 text-md-end" }, Xs = {
|
|
3914
4080
|
for: "importLanguage",
|
|
3915
4081
|
class: "col-form-label"
|
|
3916
|
-
},
|
|
4082
|
+
}, Zs = { class: "col-md-6" }, Qs = { class: "offset-md-4" }, $s = { class: "form-check" }, ec = {
|
|
3917
4083
|
class: "form-check-label",
|
|
3918
4084
|
for: "onlyMissingTranslations"
|
|
3919
|
-
},
|
|
4085
|
+
}, tc = { class: "text-center mb-3" }, nc = { class: "table table-hover" }, rc = { key: 0 }, ic = { style: { "word-break": "break-all" } }, ac = { style: { "word-break": "break-all" } }, oc = { style: { "word-break": "break-all" } }, sc = [
|
|
3920
4086
|
"id",
|
|
3921
4087
|
"onUpdate:modelValue",
|
|
3922
4088
|
"name"
|
|
3923
|
-
],
|
|
4089
|
+
], cc = ["for"], lc = { style: { "word-break": "break-all" } }, uc = [
|
|
3924
4090
|
"id",
|
|
3925
4091
|
"onUpdate:modelValue",
|
|
3926
4092
|
"name"
|
|
3927
|
-
],
|
|
4093
|
+
], dc = ["for"], fc = { class: "text-center" }, pc = { class: "modal-footer" }, mc = {
|
|
3928
4094
|
__name: "TranslationImportModal",
|
|
3929
4095
|
props: {
|
|
3930
4096
|
show: {
|
|
@@ -3997,16 +4163,16 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
3997
4163
|
return (t, n) => (S(), l(i, null, [u("div", {
|
|
3998
4164
|
class: _(["modal fade", { show: e.show }]),
|
|
3999
4165
|
style: y({ display: e.show ? "block" : "none" })
|
|
4000
|
-
}, [u("div",
|
|
4001
|
-
u("div",
|
|
4166
|
+
}, [u("div", Is, [u("div", Ls, [
|
|
4167
|
+
u("div", Rs, [u("h4", zs, D(e.translations.import_title), 1), u("button", {
|
|
4002
4168
|
type: "button",
|
|
4003
4169
|
class: "btn-close",
|
|
4004
4170
|
onClick: B
|
|
4005
4171
|
})]),
|
|
4006
|
-
u("div",
|
|
4172
|
+
u("div", Bs, [
|
|
4007
4173
|
I(u("div", null, [
|
|
4008
4174
|
u("p", null, D(e.translations.import_notice), 1),
|
|
4009
|
-
u("div",
|
|
4175
|
+
u("div", Vs, [u("div", Hs, [u("label", Us, D(e.translations.upload_file), 1)]), u("div", Ws, [u("label", Gs, [m.value ? (S(), l("span", Ks, D(m.value.name), 1)) : (S(), l("span", qs, D(e.translations.choose_file), 1)), u("input", {
|
|
4010
4176
|
ref_key: "fileInput",
|
|
4011
4177
|
ref: p,
|
|
4012
4178
|
type: "file",
|
|
@@ -4014,7 +4180,7 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
4014
4180
|
accept: ".xlsx",
|
|
4015
4181
|
onChange: z
|
|
4016
4182
|
}, null, 544)])])]),
|
|
4017
|
-
u("div",
|
|
4183
|
+
u("div", Js, [u("div", Ys, [u("label", Xs, D(e.translations.language_to_import), 1)]), u("div", Zs, [f(k(U), {
|
|
4018
4184
|
modelValue: h.value,
|
|
4019
4185
|
"onUpdate:modelValue": n[0] ||= (e) => h.value = e,
|
|
4020
4186
|
options: d.value,
|
|
@@ -4029,47 +4195,47 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
4029
4195
|
"options",
|
|
4030
4196
|
"placeholder"
|
|
4031
4197
|
])])]),
|
|
4032
|
-
u("div",
|
|
4198
|
+
u("div", Qs, [u("div", $s, [I(u("input", {
|
|
4033
4199
|
id: "onlyMissingTranslations",
|
|
4034
4200
|
"onUpdate:modelValue": n[1] ||= (e) => v.value = e,
|
|
4035
4201
|
class: "form-check-input",
|
|
4036
4202
|
type: "checkbox"
|
|
4037
|
-
}, null, 512), [[A, v.value]]), u("label",
|
|
4203
|
+
}, null, 512), [[A, v.value]]), u("label", ec, D(e.translations.do_not_override), 1)])])
|
|
4038
4204
|
], 512), [[N, b.value === 1]]),
|
|
4039
|
-
I(u("div", null, [u("div",
|
|
4205
|
+
I(u("div", null, [u("div", tc, [u("p", null, D(e.translations.conflict_found) + " " + D(E.value) + " " + D(e.translations.conflict_to_import) + " " + D(O.value) + " " + D(e.translations.conflict_differ), 1)]), u("table", nc, [u("thead", null, [u("tr", null, [
|
|
4040
4206
|
u("th", null, D(e.translations.group), 1),
|
|
4041
4207
|
u("th", null, D(e.translations.default), 1),
|
|
4042
4208
|
u("th", null, D(e.translations.current_value), 1),
|
|
4043
4209
|
u("th", null, D(e.translations.imported_value), 1)
|
|
4044
|
-
])]), u("tbody", null, [(S(!0), l(i, null, T(M.value, (e, t) => (S(), l(i, { key: t }, [e.has_conflict ? (S(), l("tr",
|
|
4045
|
-
u("td",
|
|
4046
|
-
u("td",
|
|
4047
|
-
u("td",
|
|
4210
|
+
])]), u("tbody", null, [(S(!0), l(i, null, T(M.value, (e, t) => (S(), l(i, { key: t }, [e.has_conflict ? (S(), l("tr", rc, [
|
|
4211
|
+
u("td", ic, D(e.group), 1),
|
|
4212
|
+
u("td", ac, D(e.default), 1),
|
|
4213
|
+
u("td", oc, [I(u("input", {
|
|
4048
4214
|
id: "current-" + t + "0",
|
|
4049
4215
|
"onUpdate:modelValue": (e) => M.value[t].checkedCurrent = e,
|
|
4050
4216
|
type: "radio",
|
|
4051
4217
|
class: "form-check-input me-1",
|
|
4052
4218
|
value: !0,
|
|
4053
4219
|
name: "current-" + t
|
|
4054
|
-
}, null, 8,
|
|
4220
|
+
}, null, 8, sc), [[j, M.value[t].checkedCurrent]]), u("label", {
|
|
4055
4221
|
class: "form-check-label",
|
|
4056
4222
|
for: "current-" + t + "0"
|
|
4057
|
-
}, D(e.current_value), 9,
|
|
4058
|
-
u("td",
|
|
4223
|
+
}, D(e.current_value), 9, cc)]),
|
|
4224
|
+
u("td", lc, [I(u("input", {
|
|
4059
4225
|
id: "current-" + t + "1",
|
|
4060
4226
|
"onUpdate:modelValue": (e) => M.value[t].checkedCurrent = e,
|
|
4061
4227
|
type: "radio",
|
|
4062
4228
|
class: "form-check-input me-1",
|
|
4063
4229
|
value: !1,
|
|
4064
4230
|
name: "current-" + t
|
|
4065
|
-
}, null, 8,
|
|
4231
|
+
}, null, 8, uc), [[j, M.value[t].checkedCurrent]]), u("label", {
|
|
4066
4232
|
class: "form-check-label",
|
|
4067
4233
|
for: "current-" + t + "1"
|
|
4068
|
-
}, D(e[g.value.toLowerCase()]), 9,
|
|
4234
|
+
}, D(e[g.value.toLowerCase()]), 9, dc)])
|
|
4069
4235
|
])) : c("", !0)], 64))), 128))])])], 512), [[N, b.value === 2]]),
|
|
4070
|
-
I(u("div", null, [u("div",
|
|
4236
|
+
I(u("div", null, [u("div", fc, [u("p", null, D(x.value) + " " + D(e.translations.successfully_imported) + " " + D(C.value) + " " + D(e.translations.successfully_updated), 1)])], 512), [[N, b.value === 3]])
|
|
4071
4237
|
]),
|
|
4072
|
-
u("div",
|
|
4238
|
+
u("div", pc, [F.value ? c("", !0) : (S(), l("button", {
|
|
4073
4239
|
key: 0,
|
|
4074
4240
|
type: "button",
|
|
4075
4241
|
class: "btn btn-primary",
|
|
@@ -4081,10 +4247,10 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
4081
4247
|
onClick: B
|
|
4082
4248
|
})) : c("", !0)], 64));
|
|
4083
4249
|
}
|
|
4084
|
-
},
|
|
4250
|
+
}, hc = { class: "modal-dialog" }, gc = { class: "modal-content" }, _c = { class: "modal-header" }, vc = { class: "modal-title" }, yc = { class: "modal-body" }, bc = { class: "text-start" }, xc = { class: "text-end" }, Sc = {
|
|
4085
4251
|
class: "btn btn-primary",
|
|
4086
4252
|
type: "submit"
|
|
4087
|
-
},
|
|
4253
|
+
}, Cc = {
|
|
4088
4254
|
__name: "TranslationExportModal",
|
|
4089
4255
|
props: {
|
|
4090
4256
|
show: {
|
|
@@ -4124,13 +4290,13 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
4124
4290
|
return (t, n) => (S(), l(i, null, [u("div", {
|
|
4125
4291
|
class: _(["modal fade", { show: e.show }]),
|
|
4126
4292
|
style: y({ display: e.show ? "block" : "none" })
|
|
4127
|
-
}, [u("div",
|
|
4293
|
+
}, [u("div", hc, [u("div", gc, [u("div", _c, [u("h4", vc, D(e.translations.export), 1), u("button", {
|
|
4128
4294
|
type: "button",
|
|
4129
4295
|
class: "btn-close",
|
|
4130
4296
|
onClick: n[0] ||= (e) => t.$emit("close")
|
|
4131
|
-
})]), u("div",
|
|
4132
|
-
u("p",
|
|
4133
|
-
f(
|
|
4297
|
+
})]), u("div", yc, [u("form", { onSubmit: R(m, ["prevent"]) }, [
|
|
4298
|
+
u("p", bc, D(e.translations.export_notice), 1),
|
|
4299
|
+
f(ki, {
|
|
4134
4300
|
modelValue: p.value,
|
|
4135
4301
|
"onUpdate:modelValue": n[1] ||= (e) => p.value = e,
|
|
4136
4302
|
name: "languagesToExport",
|
|
@@ -4145,17 +4311,17 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
4145
4311
|
"options",
|
|
4146
4312
|
"placeholder"
|
|
4147
4313
|
]),
|
|
4148
|
-
u("div",
|
|
4314
|
+
u("div", xc, [u("button", Sc, [n[3] ||= u("i", { class: "fa fa-file-excel" }, null, -1), d("\xA0" + D(e.translations.export_btn), 1)])])
|
|
4149
4315
|
], 32)])])])], 6), e.show ? (S(), l("div", {
|
|
4150
4316
|
key: 0,
|
|
4151
4317
|
class: "modal-backdrop fade show",
|
|
4152
4318
|
onClick: n[2] ||= (e) => t.$emit("close")
|
|
4153
4319
|
})) : c("", !0)], 64));
|
|
4154
4320
|
}
|
|
4155
|
-
},
|
|
4321
|
+
}, wc = { class: "row" }, Tc = { class: "col" }, Ec = { class: "card" }, Dc = { class: "card-header" }, Oc = { class: "row justify-content-md-between mb-3" }, kc = { class: "col col-lg-7 col-xl-5 mb-3" }, Ac = { class: "col-sm-auto mb-3" }, jc = { class: "table-responsive" }, Mc = { class: "table table-hover table-listing" }, Nc = { key: 0 }, Pc = ["title", "onClick"], Fc = {
|
|
4156
4322
|
key: 0,
|
|
4157
4323
|
class: "no-items-found"
|
|
4158
|
-
},
|
|
4324
|
+
}, Ic = {
|
|
4159
4325
|
__name: "TranslationListing",
|
|
4160
4326
|
props: {
|
|
4161
4327
|
url: {
|
|
@@ -4192,7 +4358,7 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
4192
4358
|
}
|
|
4193
4359
|
},
|
|
4194
4360
|
setup(e) {
|
|
4195
|
-
let t = window.axios, n = e, r = w(null), { isColumnVisible: a } =
|
|
4361
|
+
let t = window.axios, n = e, r = w(null), { isColumnVisible: a } = _t(r), { pagination: p, orderBy: m, filters: g, search: v, collection: y, loadData: b, filter: x, onSort: C, onPageChange: E, onPerPageChange: O } = pt(n), A = o(() => Array.isArray(n.locales) ? n.locales : Object.values(n.locales)), j = w(!1), M = w(!1), N = w(!1), P = w(null);
|
|
4196
4362
|
g.group = null;
|
|
4197
4363
|
function I(e) {
|
|
4198
4364
|
g.group = e ?? null, b(!0);
|
|
@@ -4208,8 +4374,8 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
4208
4374
|
z.value = !1, G();
|
|
4209
4375
|
});
|
|
4210
4376
|
}
|
|
4211
|
-
return (t, n) => (S(), l("div",
|
|
4212
|
-
f(
|
|
4377
|
+
return (t, n) => (S(), l("div", wc, [u("div", Tc, [
|
|
4378
|
+
f(Fs, {
|
|
4213
4379
|
show: j.value,
|
|
4214
4380
|
item: P.value,
|
|
4215
4381
|
locales: A.value,
|
|
@@ -4225,7 +4391,7 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
4225
4391
|
"translations",
|
|
4226
4392
|
"onSaved"
|
|
4227
4393
|
]),
|
|
4228
|
-
f(
|
|
4394
|
+
f(mc, {
|
|
4229
4395
|
show: M.value,
|
|
4230
4396
|
locales: A.value,
|
|
4231
4397
|
url: e.url,
|
|
@@ -4241,7 +4407,7 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
4241
4407
|
"translations",
|
|
4242
4408
|
"onImported"
|
|
4243
4409
|
]),
|
|
4244
|
-
f(
|
|
4410
|
+
f(Cc, {
|
|
4245
4411
|
show: N.value,
|
|
4246
4412
|
locales: A.value,
|
|
4247
4413
|
url: e.url,
|
|
@@ -4253,7 +4419,7 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
4253
4419
|
"url",
|
|
4254
4420
|
"translations"
|
|
4255
4421
|
]),
|
|
4256
|
-
u("div",
|
|
4422
|
+
u("div", Ec, [u("div", Dc, [
|
|
4257
4423
|
n[9] ||= u("i", { class: "fa fa-align-justify" }, null, -1),
|
|
4258
4424
|
d(" " + D(e.translations.listing_title) + " ", 1),
|
|
4259
4425
|
u("a", {
|
|
@@ -4279,7 +4445,7 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
4279
4445
|
ref: r,
|
|
4280
4446
|
class: "card-body"
|
|
4281
4447
|
}, [
|
|
4282
|
-
u("div",
|
|
4448
|
+
u("div", Oc, [u("div", kc, [f(Pn, {
|
|
4283
4449
|
search: k(v),
|
|
4284
4450
|
"onUpdate:search": n[5] ||= (e) => h(v) ? v.value = e : null,
|
|
4285
4451
|
"filter-fn": k(x),
|
|
@@ -4307,12 +4473,12 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
4307
4473
|
"search",
|
|
4308
4474
|
"filter-fn",
|
|
4309
4475
|
"translations"
|
|
4310
|
-
])]), u("div",
|
|
4476
|
+
])]), u("div", Ac, [f(In, {
|
|
4311
4477
|
modelValue: k(p).state.per_page,
|
|
4312
4478
|
"onUpdate:modelValue": n[6] ||= (e) => k(p).state.per_page = e
|
|
4313
4479
|
}, null, 8, ["modelValue"])])]),
|
|
4314
|
-
u("div",
|
|
4315
|
-
f(
|
|
4480
|
+
u("div", jc, [u("table", Mc, [u("thead", null, [u("tr", null, [
|
|
4481
|
+
f(Z, {
|
|
4316
4482
|
column: "group",
|
|
4317
4483
|
"order-by": k(m),
|
|
4318
4484
|
onSort: k(C)
|
|
@@ -4320,7 +4486,7 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
4320
4486
|
default: F(() => [d(D(e.translations.group), 1)]),
|
|
4321
4487
|
_: 1
|
|
4322
4488
|
}, 8, ["order-by", "onSort"]),
|
|
4323
|
-
f(
|
|
4489
|
+
f(Z, {
|
|
4324
4490
|
column: "key",
|
|
4325
4491
|
"order-by": k(m),
|
|
4326
4492
|
onSort: k(C)
|
|
@@ -4328,7 +4494,7 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
4328
4494
|
default: F(() => [d(D(e.translations.default), 1)]),
|
|
4329
4495
|
_: 1
|
|
4330
4496
|
}, 8, ["order-by", "onSort"]),
|
|
4331
|
-
f(
|
|
4497
|
+
f(Z, {
|
|
4332
4498
|
column: "text",
|
|
4333
4499
|
"order-by": k(m),
|
|
4334
4500
|
onSort: k(C)
|
|
@@ -4336,7 +4502,7 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
4336
4502
|
default: F(() => [d(D(e.userLocale.toUpperCase()), 1)]),
|
|
4337
4503
|
_: 1
|
|
4338
4504
|
}, 8, ["order-by", "onSort"]),
|
|
4339
|
-
k(a)(4) ? (S(), s(
|
|
4505
|
+
k(a)(4) ? (S(), s(Z, {
|
|
4340
4506
|
key: 0,
|
|
4341
4507
|
column: "created_at",
|
|
4342
4508
|
"order-by": k(m),
|
|
@@ -4350,16 +4516,16 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
4350
4516
|
u("td", null, D(t.group), 1),
|
|
4351
4517
|
u("td", null, D(t.key), 1),
|
|
4352
4518
|
u("td", null, D(t.text?.[e.userLocale]), 1),
|
|
4353
|
-
k(a)(4) ? (S(), l("td",
|
|
4519
|
+
k(a)(4) ? (S(), l("td", Nc, D(k(K)(t.created_at)), 1)) : c("", !0),
|
|
4354
4520
|
u("td", null, [u("a", {
|
|
4355
4521
|
class: "btn btn-sm btn-info",
|
|
4356
4522
|
href: "#",
|
|
4357
4523
|
title: e.translations.edit_btn,
|
|
4358
4524
|
role: "button",
|
|
4359
4525
|
onClick: R((e) => L(t), ["prevent"])
|
|
4360
|
-
}, [...n[11] ||= [u("i", { class: "fa fa-edit" }, null, -1)]], 8,
|
|
4526
|
+
}, [...n[11] ||= [u("i", { class: "fa fa-edit" }, null, -1)]], 8, Pc)])
|
|
4361
4527
|
]))), 128))])])]),
|
|
4362
|
-
f(
|
|
4528
|
+
f(An, {
|
|
4363
4529
|
pagination: k(p).state,
|
|
4364
4530
|
options: k(p).options,
|
|
4365
4531
|
translations: {
|
|
@@ -4376,7 +4542,7 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
4376
4542
|
"onPageChange",
|
|
4377
4543
|
"onPerPageChange"
|
|
4378
4544
|
]),
|
|
4379
|
-
k(y)?.length ? c("", !0) : (S(), l("div",
|
|
4545
|
+
k(y)?.length ? c("", !0) : (S(), l("div", Fc, [
|
|
4380
4546
|
n[12] ||= u("i", { class: "fa fa-magnifying-glass" }, null, -1),
|
|
4381
4547
|
u("h3", null, D(e.translations.no_items), 1),
|
|
4382
4548
|
u("p", null, D(e.translations.try_changing_items), 1),
|
|
@@ -4390,7 +4556,7 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
4390
4556
|
], 512)])
|
|
4391
4557
|
])]));
|
|
4392
4558
|
}
|
|
4393
|
-
},
|
|
4559
|
+
}, Lc = {
|
|
4394
4560
|
url: "",
|
|
4395
4561
|
collection: "",
|
|
4396
4562
|
maxNumberOfFiles: 1,
|
|
@@ -4398,16 +4564,16 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
4398
4564
|
acceptedFileTypes: void 0,
|
|
4399
4565
|
thumbnailWidth: 200,
|
|
4400
4566
|
uploadedMedia: []
|
|
4401
|
-
},
|
|
4567
|
+
}, Rc = {
|
|
4402
4568
|
type: Object,
|
|
4403
|
-
default: () => ({ ...
|
|
4569
|
+
default: () => ({ ...Lc })
|
|
4404
4570
|
};
|
|
4405
4571
|
//#endregion
|
|
4406
4572
|
//#region src/ui/index.js
|
|
4407
|
-
function
|
|
4408
|
-
document.readyState === "loading" ? document.addEventListener("DOMContentLoaded",
|
|
4573
|
+
function zc() {
|
|
4574
|
+
document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", Bc) : Bc();
|
|
4409
4575
|
}
|
|
4410
|
-
function
|
|
4576
|
+
function Bc() {
|
|
4411
4577
|
let e = document.getElementById("sidebar"), t = null;
|
|
4412
4578
|
document.querySelectorAll(".btn-spinner").forEach((e) => {
|
|
4413
4579
|
e.addEventListener("click", (t) => {
|
|
@@ -4447,4 +4613,4 @@ function Ac() {
|
|
|
4447
4613
|
}), e && window.innerWidth < 992 && e.classList.add("hide");
|
|
4448
4614
|
}
|
|
4449
4615
|
//#endregion
|
|
4450
|
-
export {
|
|
4616
|
+
export { Cs as ActivationError, gs as ActivationForm, Ir as BackButton, Vn as BulkCheckboxHeader, Wn as BulkCheckboxRow, Xn as BulkOperationsBar, Zt as CkeditorEditor, Q as ConfirmModal, Tr as DeleteButton, Cr as EditButton, zn as EmptyState, Dr as ForceDeleteButton, xo as ForgotPasswordForm, fi as FormCheckbox, yi as FormDatePicker, $r as FormEmail, Qr as FormInput, Bi as FormLocalizedInput, Gi as FormLocalizedWysiwyg, ta as FormLocalizedWysiwygSimple, ki as FormMultiSelect, _a as FormPasswordConfirm, oa as FormSelect, ya as FormSubmit, Pi as FormTagInput, ai as FormTextarea, wi as FormWysiwyg, Xi as FormWysiwygSimple, yr as ListingHeader, Oa as LocalizationBar, $a as LoginForm, zt as MediaUpload, An as Pagination, In as PerPage, gr as PublishedAtColumn, Hr as ReadOnlySwitch, Zo as ResetPasswordForm, Ar as RestoreButton, Pn as Search, xr as ShowButton, Pr as ShowDeleted, Kr as ShowRow, Z as Sortable, qt as TiptapEditor, zr as ToggleSwitch, Ic as TranslationListing, gn as UserDetailTooltip, H as dayjs, K as formatDate, q as formatDatetime, tt as formatDuration, Ze as formatTime, J as getDateFnsLocale, lt as initDateFnsLocale, zc as initUI, Lc as mediaCollectionDefaults, Rc as mediaCollectionProp, G as notifyError, W as notifySuccess, nt as nowInTimezone, ht as useAdmin, Y as useBaseAuth, dt as useBaseForm, pt as useBaseListing, _t as useResponsiveColumns };
|