@dejwcake/craftable 2.3.0 → 2.4.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 +655 -497
- 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 +46 -11
- 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,
|
|
@@ -705,29 +705,30 @@ function ft(e) {
|
|
|
705
705
|
}), r = C({
|
|
706
706
|
column: "id",
|
|
707
707
|
direction: "asc"
|
|
708
|
-
}), i = C({}), a = w(""), s = w(null), c = w(
|
|
708
|
+
}), i = C({}), a = w(""), s = w(null), c = w(nt(e.timezone || "UTC")), l = C({}), u = w(!1), d = {
|
|
709
|
+
confirm_title: "Warning!",
|
|
710
|
+
confirm_text: "Are you sure?",
|
|
711
|
+
confirm_btn: "Yes, confirm",
|
|
712
|
+
cancel_btn: "Cancel"
|
|
713
|
+
}, f = 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: { ...d }
|
|
718
|
+
}), p = setInterval(() => {
|
|
719
|
+
c.value = nt(e.timezone || "UTC");
|
|
719
720
|
}, 1e3);
|
|
720
721
|
b(() => {
|
|
721
|
-
clearInterval(
|
|
722
|
+
clearInterval(p);
|
|
722
723
|
});
|
|
723
|
-
let
|
|
724
|
+
let m = o(() => Object.values(l).filter((e) => e === !0).length), h = o({
|
|
724
725
|
get() {
|
|
725
|
-
return
|
|
726
|
+
return m.value >= n.state.to - n.state.from + 1 && m.value > 0 && g();
|
|
726
727
|
},
|
|
727
728
|
set() {}
|
|
728
729
|
});
|
|
729
|
-
e.data == null ?
|
|
730
|
-
function
|
|
730
|
+
e.data == null ? k() : j(e.data);
|
|
731
|
+
function g() {
|
|
731
732
|
if (!s.value) return !1;
|
|
732
733
|
let e = Object.values(s.value).map(({ id: e }) => e);
|
|
733
734
|
for (let t = 0; t < e.length; t++) {
|
|
@@ -736,30 +737,30 @@ function ft(e) {
|
|
|
736
737
|
}
|
|
737
738
|
return !0;
|
|
738
739
|
}
|
|
739
|
-
function
|
|
740
|
+
function _(e) {
|
|
740
741
|
l[e] === void 0 ? l[e] = !0 : l[e] = !l[e];
|
|
741
742
|
}
|
|
742
|
-
function
|
|
743
|
+
function v(e) {
|
|
743
744
|
let t = { params: { bulk: !0 } };
|
|
744
|
-
u.value = !0, Object.assign(t.params, i),
|
|
745
|
-
|
|
745
|
+
u.value = !0, Object.assign(t.params, i), X.get(e, t).then((e) => {
|
|
746
|
+
x(e.data.bulkItems);
|
|
746
747
|
}).catch((e) => {
|
|
747
748
|
G(e.response?.data?.message);
|
|
748
749
|
}).finally(() => {
|
|
749
750
|
u.value = !1;
|
|
750
751
|
});
|
|
751
752
|
}
|
|
752
|
-
function
|
|
753
|
+
function y() {
|
|
753
754
|
if (!s.value) return;
|
|
754
755
|
let e = Object.values(s.value).map(({ id: e }) => e);
|
|
755
|
-
|
|
756
|
+
h.value ? S(e) : (u.value = !0, x(e), u.value = !1);
|
|
756
757
|
}
|
|
757
|
-
function
|
|
758
|
+
function x(e) {
|
|
758
759
|
e.forEach((e) => {
|
|
759
760
|
l[e] = !0;
|
|
760
761
|
});
|
|
761
762
|
}
|
|
762
|
-
function
|
|
763
|
+
function S(e = null) {
|
|
763
764
|
if (e === null) Object.keys(l).forEach((e) => delete l[e]);
|
|
764
765
|
else {
|
|
765
766
|
if (!s.value) return;
|
|
@@ -768,63 +769,84 @@ function ft(e) {
|
|
|
768
769
|
});
|
|
769
770
|
}
|
|
770
771
|
}
|
|
771
|
-
function
|
|
772
|
-
let
|
|
773
|
-
|
|
774
|
-
...d
|
|
772
|
+
function T(e, t = {}, n = "danger") {
|
|
773
|
+
let r = Object.keys(l).filter((e) => l[e]);
|
|
774
|
+
f.variant = n, f.translations = {
|
|
775
|
+
...d,
|
|
775
776
|
...t,
|
|
776
|
-
confirm_text: (t.confirm_text ||
|
|
777
|
-
},
|
|
778
|
-
|
|
779
|
-
Object.keys(l).forEach((e) => delete l[e]),
|
|
777
|
+
confirm_text: (t.confirm_text || d.confirm_text).replace(":number", m.value)
|
|
778
|
+
}, f.onConfirm = () => {
|
|
779
|
+
f.show = !1, X.post(e, { ids: r }).then((e) => {
|
|
780
|
+
Object.keys(l).forEach((e) => delete l[e]), k(), W(e.data.message);
|
|
780
781
|
}).catch((e) => {
|
|
781
782
|
G(e.response?.data?.message);
|
|
782
783
|
});
|
|
783
|
-
},
|
|
784
|
+
}, f.show = !0;
|
|
784
785
|
}
|
|
785
|
-
function
|
|
786
|
+
function E(e, t = {}) {
|
|
787
|
+
T(e, {
|
|
788
|
+
...t,
|
|
789
|
+
confirm_text: t.confirm_text || "Do you really want to delete :number selected items?"
|
|
790
|
+
});
|
|
791
|
+
}
|
|
792
|
+
function D(e, t = {}) {
|
|
793
|
+
T(e, {
|
|
794
|
+
confirm_btn: "Delete permanently",
|
|
795
|
+
...t,
|
|
796
|
+
confirm_text: t.confirm_text || "Delete :number selected items permanently? This cannot be undone."
|
|
797
|
+
});
|
|
798
|
+
}
|
|
799
|
+
function O(e, t = {}) {
|
|
800
|
+
T(e, {
|
|
801
|
+
confirm_title: "Restore",
|
|
802
|
+
confirm_btn: "Restore",
|
|
803
|
+
...t,
|
|
804
|
+
confirm_text: t.confirm_text || "Do you really want to restore :number selected items?"
|
|
805
|
+
}, "success");
|
|
806
|
+
}
|
|
807
|
+
function k(t) {
|
|
786
808
|
let a = { params: {
|
|
787
809
|
per_page: n.state.per_page,
|
|
788
810
|
page: n.state.current_page,
|
|
789
811
|
orderBy: r.column,
|
|
790
812
|
orderDirection: r.direction
|
|
791
813
|
} };
|
|
792
|
-
t === !0 && (a.params.page = 1), Object.assign(a.params, i),
|
|
793
|
-
|
|
814
|
+
t === !0 && (a.params.page = 1), Object.assign(a.params, i), X.get(e.url, a).then((e) => {
|
|
815
|
+
j(e.data.data);
|
|
794
816
|
}).catch((e) => {
|
|
795
817
|
G(e.response?.data?.message);
|
|
796
818
|
});
|
|
797
819
|
}
|
|
798
|
-
function
|
|
799
|
-
t === "" ? delete i[e] : i[e] = t,
|
|
820
|
+
function A(e, t) {
|
|
821
|
+
t === "" ? delete i[e] : i[e] = t, k(!0);
|
|
800
822
|
}
|
|
801
|
-
function
|
|
823
|
+
function j(e) {
|
|
802
824
|
if (e.current_page > e.last_page && e.total > 0) {
|
|
803
|
-
n.state.current_page = e.last_page,
|
|
825
|
+
n.state.current_page = e.last_page, k();
|
|
804
826
|
return;
|
|
805
827
|
}
|
|
806
828
|
s.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
829
|
}
|
|
808
|
-
function
|
|
809
|
-
return
|
|
830
|
+
function M(e) {
|
|
831
|
+
return X.get(e).then((e) => {
|
|
810
832
|
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
833
|
}).catch((e) => {
|
|
812
834
|
G(e.response?.data?.message);
|
|
813
835
|
});
|
|
814
836
|
}
|
|
815
|
-
function
|
|
837
|
+
function N(e, t) {
|
|
816
838
|
return e.replace(":id", t.id);
|
|
817
839
|
}
|
|
818
|
-
function
|
|
819
|
-
r.column = e, r.direction = t,
|
|
840
|
+
function P({ column: e, direction: t }) {
|
|
841
|
+
r.column = e, r.direction = t, k();
|
|
820
842
|
}
|
|
821
|
-
function
|
|
822
|
-
n.state.current_page = e,
|
|
843
|
+
function F(e) {
|
|
844
|
+
n.state.current_page = e, k();
|
|
823
845
|
}
|
|
824
|
-
function
|
|
825
|
-
n.state.current_page = 1,
|
|
846
|
+
function I() {
|
|
847
|
+
n.state.current_page = 1, k(!0);
|
|
826
848
|
}
|
|
827
|
-
function
|
|
849
|
+
function L(e) {
|
|
828
850
|
if (!s.value) return;
|
|
829
851
|
let t = s.value.findIndex((t) => t.id === e.id);
|
|
830
852
|
t !== -1 && (s.value[t] = e);
|
|
@@ -838,22 +860,25 @@ function ft(e) {
|
|
|
838
860
|
now: c,
|
|
839
861
|
bulkItems: l,
|
|
840
862
|
bulkCheckingAllLoader: u,
|
|
841
|
-
confirmModal:
|
|
842
|
-
isClickedAll:
|
|
843
|
-
clickedBulkItemsCount:
|
|
844
|
-
onBulkItemClicked:
|
|
845
|
-
onBulkItemsClickedAll:
|
|
846
|
-
onBulkItemsClickedAllWithPagination:
|
|
847
|
-
onBulkItemsClickedAllUncheck:
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
863
|
+
confirmModal: f,
|
|
864
|
+
isClickedAll: h,
|
|
865
|
+
clickedBulkItemsCount: m,
|
|
866
|
+
onBulkItemClicked: _,
|
|
867
|
+
onBulkItemsClickedAll: v,
|
|
868
|
+
onBulkItemsClickedAllWithPagination: y,
|
|
869
|
+
onBulkItemsClickedAllUncheck: S,
|
|
870
|
+
bulkAction: T,
|
|
871
|
+
bulkDelete: E,
|
|
872
|
+
bulkForceDelete: D,
|
|
873
|
+
bulkRestore: O,
|
|
874
|
+
loadData: k,
|
|
875
|
+
filter: A,
|
|
876
|
+
resolveUrl: N,
|
|
877
|
+
getAction: M,
|
|
878
|
+
onSort: P,
|
|
879
|
+
onPageChange: F,
|
|
880
|
+
onPerPageChange: I,
|
|
881
|
+
onUpdateItem: L,
|
|
857
882
|
formatDate: K,
|
|
858
883
|
formatDatetime: q,
|
|
859
884
|
formatTime: Ze
|
|
@@ -861,14 +886,14 @@ function ft(e) {
|
|
|
861
886
|
}
|
|
862
887
|
//#endregion
|
|
863
888
|
//#region src/composables/useAdmin.js
|
|
864
|
-
var
|
|
865
|
-
function
|
|
889
|
+
var mt = window.axios;
|
|
890
|
+
function ht() {
|
|
866
891
|
let e = w(!1);
|
|
867
892
|
function t(t) {
|
|
868
893
|
e.value = !!t;
|
|
869
894
|
}
|
|
870
895
|
return x(() => {
|
|
871
|
-
|
|
896
|
+
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
897
|
}), {
|
|
873
898
|
loading: e,
|
|
874
899
|
setLoading: t
|
|
@@ -876,7 +901,7 @@ function mt() {
|
|
|
876
901
|
}
|
|
877
902
|
//#endregion
|
|
878
903
|
//#region src/composables/useResponsiveColumns.js
|
|
879
|
-
var
|
|
904
|
+
var gt = [
|
|
880
905
|
{
|
|
881
906
|
minWidth: 1800,
|
|
882
907
|
maxPriority: 10
|
|
@@ -906,8 +931,8 @@ var ht = [
|
|
|
906
931
|
maxPriority: 0
|
|
907
932
|
}
|
|
908
933
|
];
|
|
909
|
-
function
|
|
910
|
-
let n = t.breakpoints ||
|
|
934
|
+
function _t(e, t = {}) {
|
|
935
|
+
let n = t.breakpoints || gt, r = w(10), i = null;
|
|
911
936
|
function a(e) {
|
|
912
937
|
for (let t of n) if (e >= t.minWidth) {
|
|
913
938
|
r.value = t.maxPriority;
|
|
@@ -935,31 +960,31 @@ function gt(e, t = {}) {
|
|
|
935
960
|
}
|
|
936
961
|
//#endregion
|
|
937
962
|
//#region src/components/form/MediaUpload.vue
|
|
938
|
-
var
|
|
963
|
+
var vt = { class: "base-upload" }, yt = {
|
|
939
964
|
key: 0,
|
|
940
965
|
class: "form-label d-flex align-items-center"
|
|
941
|
-
},
|
|
966
|
+
}, bt = { class: "fw-semibold upload-label-title" }, xt = {
|
|
942
967
|
key: 0,
|
|
943
968
|
class: "fa fa-lock ms-auto text-body-secondary"
|
|
944
|
-
},
|
|
969
|
+
}, St = ["value"], Ct = {
|
|
945
970
|
key: 0,
|
|
946
971
|
class: "dz-message"
|
|
947
|
-
},
|
|
972
|
+
}, wt = { class: "dz-image" }, Tt = ["src", "alt"], Et = {
|
|
948
973
|
key: 1,
|
|
949
974
|
class: "dz-file-icon"
|
|
950
|
-
},
|
|
975
|
+
}, Dt = { class: "dz-file-size" }, Ot = { class: "dz-file-name" }, kt = ["onClick"], At = { class: "dz-image" }, jt = ["src", "alt"], Mt = {
|
|
951
976
|
key: 1,
|
|
952
977
|
class: "dz-file-icon"
|
|
953
|
-
},
|
|
978
|
+
}, Nt = {
|
|
954
979
|
key: 0,
|
|
955
980
|
class: "dz-progress"
|
|
956
|
-
},
|
|
981
|
+
}, Pt = {
|
|
957
982
|
key: 1,
|
|
958
983
|
class: "dz-success-mark"
|
|
959
|
-
},
|
|
984
|
+
}, Ft = {
|
|
960
985
|
key: 2,
|
|
961
986
|
class: "dz-error-mark"
|
|
962
|
-
},
|
|
987
|
+
}, It = { class: "dz-file-size" }, Lt = { class: "dz-file-name" }, Rt = ["onClick"], zt = {
|
|
963
988
|
__name: "MediaUpload",
|
|
964
989
|
props: {
|
|
965
990
|
url: {
|
|
@@ -1121,40 +1146,40 @@ var _t = { class: "base-upload" }, vt = {
|
|
|
1121
1146
|
});
|
|
1122
1147
|
}), e;
|
|
1123
1148
|
}
|
|
1124
|
-
return t({ getFiles: V }), (t, n) => (S(), l("div",
|
|
1149
|
+
return t({ getFiles: V }), (t, n) => (S(), l("div", vt, [e.label ? (S(), l("label", yt, [
|
|
1125
1150
|
u("i", { class: _([a.value, "me-1 text-body-secondary"]) }, null, 2),
|
|
1126
|
-
u("span",
|
|
1151
|
+
u("span", bt, D(e.label), 1),
|
|
1127
1152
|
(S(!0), l(i, null, T(s.value, (e, t) => (S(), l("small", {
|
|
1128
1153
|
key: t,
|
|
1129
1154
|
class: "text-body-secondary fw-light ms-1"
|
|
1130
1155
|
}, "(" + D(e) + ")", 1))), 128)),
|
|
1131
|
-
e.isPrivate ? (S(), l("i",
|
|
1156
|
+
e.isPrivate ? (S(), l("i", xt)) : c("", !0)
|
|
1132
1157
|
])) : c("", !0), u("div", g(k(j)(), { class: ["vue3-dropzone dropzone", { "dz-drag-hover": k(N) }] }), [
|
|
1133
1158
|
u("input", v(m(k(M)())), null, 16),
|
|
1134
1159
|
u("input", {
|
|
1135
1160
|
type: "hidden",
|
|
1136
1161
|
name: "collection",
|
|
1137
1162
|
value: e.collection
|
|
1138
|
-
}, null, 8,
|
|
1139
|
-
b.value.length === 0 && d.value.length === 0 ? (S(), l("div",
|
|
1163
|
+
}, null, 8, St),
|
|
1164
|
+
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
1165
|
(S(!0), l(i, null, T(f.value, (e, t) => (S(), l("div", {
|
|
1141
1166
|
key: "existing-" + (e.id || t),
|
|
1142
1167
|
class: _(["dz-preview dz-file-preview dz-existing", { "dz-deleted": e.deleted }])
|
|
1143
|
-
}, [u("div",
|
|
1168
|
+
}, [u("div", wt, [L(e) ? (S(), l("img", {
|
|
1144
1169
|
key: 0,
|
|
1145
1170
|
src: e.thumb_url,
|
|
1146
1171
|
alt: e.name
|
|
1147
|
-
}, null, 8,
|
|
1172
|
+
}, null, 8, Tt)) : (S(), l("div", Et, [u("i", { class: _(z(e)) }, null, 2), u("p", null, D(e.name), 1)]))]), u("div", {
|
|
1148
1173
|
class: "dz-hover-overlay",
|
|
1149
1174
|
onClick: n[0] ||= R(() => {}, ["stop"])
|
|
1150
1175
|
}, [
|
|
1151
|
-
u("span",
|
|
1152
|
-
u("span",
|
|
1176
|
+
u("span", Dt, D(I(e.size)), 1),
|
|
1177
|
+
u("span", Ot, D(e.name), 1),
|
|
1153
1178
|
u("button", {
|
|
1154
1179
|
type: "button",
|
|
1155
1180
|
class: "dz-remove-btn",
|
|
1156
1181
|
onClick: R((e) => P(t), ["stop"])
|
|
1157
|
-
}, "REMOVE", 8,
|
|
1182
|
+
}, "REMOVE", 8, kt)
|
|
1158
1183
|
])], 2))), 128)),
|
|
1159
1184
|
(S(!0), l(i, null, T(d.value, (e, t) => (S(), l("div", {
|
|
1160
1185
|
key: "new-" + t,
|
|
@@ -1163,40 +1188,40 @@ var _t = { class: "base-upload" }, vt = {
|
|
|
1163
1188
|
"dz-error": e.showError
|
|
1164
1189
|
}])
|
|
1165
1190
|
}, [
|
|
1166
|
-
u("div",
|
|
1191
|
+
u("div", At, [e.previewUrl ? (S(), l("img", {
|
|
1167
1192
|
key: 0,
|
|
1168
1193
|
src: e.previewUrl,
|
|
1169
1194
|
alt: e.file.name
|
|
1170
|
-
}, null, 8,
|
|
1171
|
-
e.uploading ? (S(), l("div",
|
|
1195
|
+
}, null, 8, jt)) : (S(), l("div", Mt, [u("i", { class: _(B(e.file.type)) }, null, 2), u("p", null, D(e.file.name), 1)]))]),
|
|
1196
|
+
e.uploading ? (S(), l("div", Nt, [u("span", {
|
|
1172
1197
|
class: "dz-upload",
|
|
1173
1198
|
style: y({ width: e.progress + "%" })
|
|
1174
1199
|
}, null, 4)])) : c("", !0),
|
|
1175
|
-
e.showSuccess ? (S(), l("div",
|
|
1176
|
-
e.showError ? (S(), l("div",
|
|
1200
|
+
e.showSuccess ? (S(), l("div", Pt, [...n[3] ||= [u("i", { class: "fa-solid fa-check" }, null, -1)]])) : c("", !0),
|
|
1201
|
+
e.showError ? (S(), l("div", Ft, [...n[4] ||= [u("i", { class: "fa-solid fa-xmark" }, null, -1)]])) : c("", !0),
|
|
1177
1202
|
!e.uploading && !e.showSuccess ? (S(), l("div", {
|
|
1178
1203
|
key: 3,
|
|
1179
1204
|
class: "dz-hover-overlay",
|
|
1180
1205
|
onClick: n[1] ||= R(() => {}, ["stop"])
|
|
1181
1206
|
}, [
|
|
1182
|
-
u("span",
|
|
1183
|
-
u("span",
|
|
1207
|
+
u("span", It, D(I(e.file.size)), 1),
|
|
1208
|
+
u("span", Lt, D(e.file.name), 1),
|
|
1184
1209
|
u("button", {
|
|
1185
1210
|
type: "button",
|
|
1186
1211
|
class: "dz-remove-btn",
|
|
1187
1212
|
onClick: R((e) => F(t), ["stop"])
|
|
1188
|
-
}, "REMOVE", 8,
|
|
1213
|
+
}, "REMOVE", 8, Rt)
|
|
1189
1214
|
])) : c("", !0)
|
|
1190
1215
|
], 2))), 128))
|
|
1191
1216
|
], 16)]));
|
|
1192
1217
|
}
|
|
1193
|
-
},
|
|
1218
|
+
}, Bt = { class: "tiptap-editor" }, Vt = {
|
|
1194
1219
|
key: 0,
|
|
1195
1220
|
class: "tiptap-toolbar"
|
|
1196
|
-
},
|
|
1221
|
+
}, Ht = ["selected"], Ut = ["value", "selected"], Wt = {
|
|
1197
1222
|
key: 0,
|
|
1198
1223
|
class: "tiptap-toolbar-divider"
|
|
1199
|
-
},
|
|
1224
|
+
}, Gt = ["disabled"], Kt = ["disabled"], qt = {
|
|
1200
1225
|
__name: "TiptapEditor",
|
|
1201
1226
|
props: {
|
|
1202
1227
|
modelValue: {
|
|
@@ -1277,14 +1302,14 @@ var _t = { class: "base-upload" }, vt = {
|
|
|
1277
1302
|
m.value.value = "";
|
|
1278
1303
|
});
|
|
1279
1304
|
}
|
|
1280
|
-
return (t, n) => (S(), l("div",
|
|
1305
|
+
return (t, n) => (S(), l("div", Bt, [k(s) ? (S(), l("div", Vt, [
|
|
1281
1306
|
u("select", {
|
|
1282
1307
|
class: "tiptap-heading-select",
|
|
1283
1308
|
onChange: n[0] ||= (e) => d(e)
|
|
1284
1309
|
}, [u("option", {
|
|
1285
1310
|
value: "0",
|
|
1286
1311
|
selected: !k(s).isActive("heading")
|
|
1287
|
-
}, "Paragraph", 8,
|
|
1312
|
+
}, "Paragraph", 8, Ht), (S(), l(i, null, T([
|
|
1288
1313
|
1,
|
|
1289
1314
|
2,
|
|
1290
1315
|
3,
|
|
@@ -1295,7 +1320,7 @@ var _t = { class: "base-upload" }, vt = {
|
|
|
1295
1320
|
key: e,
|
|
1296
1321
|
value: e,
|
|
1297
1322
|
selected: k(s).isActive("heading", { level: e })
|
|
1298
|
-
}, " H" + D(e), 9,
|
|
1323
|
+
}, " H" + D(e), 9, Ut)), 64))], 32),
|
|
1299
1324
|
u("button", {
|
|
1300
1325
|
type: "button",
|
|
1301
1326
|
class: _({ "is-active": k(s).isActive("bold") }),
|
|
@@ -1351,7 +1376,7 @@ var _t = { class: "base-upload" }, vt = {
|
|
|
1351
1376
|
style: { display: "none" },
|
|
1352
1377
|
onChange: v
|
|
1353
1378
|
}, null, 544),
|
|
1354
|
-
e.showTableControls ? (S(), l("span",
|
|
1379
|
+
e.showTableControls ? (S(), l("span", Wt)) : c("", !0),
|
|
1355
1380
|
e.showTableControls ? (S(), l("button", {
|
|
1356
1381
|
key: 1,
|
|
1357
1382
|
type: "button",
|
|
@@ -1368,13 +1393,13 @@ var _t = { class: "base-upload" }, vt = {
|
|
|
1368
1393
|
disabled: !k(s).can().undo(),
|
|
1369
1394
|
title: "Undo",
|
|
1370
1395
|
onClick: n[7] ||= (e) => k(s).chain().focus().undo().run()
|
|
1371
|
-
}, " ↩ ", 8,
|
|
1396
|
+
}, " ↩ ", 8, Gt),
|
|
1372
1397
|
u("button", {
|
|
1373
1398
|
type: "button",
|
|
1374
1399
|
disabled: !k(s).can().redo(),
|
|
1375
1400
|
title: "Redo",
|
|
1376
1401
|
onClick: n[8] ||= (e) => k(s).chain().focus().redo().run()
|
|
1377
|
-
}, " ↪ ", 8,
|
|
1402
|
+
}, " ↪ ", 8, Kt)
|
|
1378
1403
|
])) : c("", !0), f(k(ae), {
|
|
1379
1404
|
editor: k(s),
|
|
1380
1405
|
class: "tiptap-content"
|
|
@@ -1383,7 +1408,7 @@ var _t = { class: "base-upload" }, vt = {
|
|
|
1383
1408
|
};
|
|
1384
1409
|
//#endregion
|
|
1385
1410
|
//#region src/utils/ckeditorHelpers.js
|
|
1386
|
-
function
|
|
1411
|
+
function Jt(e) {
|
|
1387
1412
|
if (!e) return e;
|
|
1388
1413
|
let t = new DOMParser().parseFromString(e, "text/html"), n = !1;
|
|
1389
1414
|
return t.querySelectorAll("figure").forEach((e) => {
|
|
@@ -1393,14 +1418,14 @@ function qt(e) {
|
|
|
1393
1418
|
r && (r.style.width = t, r.style.height = "auto", n = !0);
|
|
1394
1419
|
}), n ? t.body.innerHTML : e;
|
|
1395
1420
|
}
|
|
1396
|
-
function
|
|
1421
|
+
function Yt(e, t) {
|
|
1397
1422
|
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]) ?
|
|
1423
|
+
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
1424
|
return n;
|
|
1400
1425
|
}
|
|
1401
1426
|
//#endregion
|
|
1402
1427
|
//#region src/components/form/CkeditorEditor.vue
|
|
1403
|
-
var
|
|
1428
|
+
var Xt = { class: "ck-editor-wrapper" }, Zt = {
|
|
1404
1429
|
__name: "CkeditorEditor",
|
|
1405
1430
|
props: {
|
|
1406
1431
|
modelValue: {
|
|
@@ -1420,7 +1445,7 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
1420
1445
|
setup(e, { emit: t }) {
|
|
1421
1446
|
let n = window.axios, r = e, i = t, a = o({
|
|
1422
1447
|
get: () => r.modelValue ?? "",
|
|
1423
|
-
set: (e) => i("update:modelValue",
|
|
1448
|
+
set: (e) => i("update:modelValue", Jt(e))
|
|
1424
1449
|
});
|
|
1425
1450
|
function s(e) {
|
|
1426
1451
|
e.plugins.get("FileRepository").createUploadAdapter = (e) => new c(e, r.uploadUrl);
|
|
@@ -1561,8 +1586,8 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
1561
1586
|
class: "ck-heading_heading4"
|
|
1562
1587
|
}
|
|
1563
1588
|
] }
|
|
1564
|
-
}, d = o(() => r.config ?
|
|
1565
|
-
return (e, t) => (S(), l("div",
|
|
1589
|
+
}, d = o(() => r.config ? Yt(u, O(r.config)) : u);
|
|
1590
|
+
return (e, t) => (S(), l("div", Xt, [f(k(We), {
|
|
1566
1591
|
modelValue: a.value,
|
|
1567
1592
|
"onUpdate:modelValue": t[0] ||= (e) => a.value = e,
|
|
1568
1593
|
editor: k(_e),
|
|
@@ -1573,22 +1598,22 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
1573
1598
|
"config"
|
|
1574
1599
|
])]));
|
|
1575
1600
|
}
|
|
1576
|
-
},
|
|
1601
|
+
}, Qt = { class: "user-detail-tooltip d-inline-flex align-items-center" }, $t = {
|
|
1577
1602
|
key: 0,
|
|
1578
1603
|
class: "col-form-label text-body-secondary me-2 mb-0"
|
|
1579
|
-
},
|
|
1604
|
+
}, en = { class: "d-inline-flex align-items-center cursor-pointer" }, tn = ["src", "alt"], nn = {
|
|
1580
1605
|
key: 1,
|
|
1581
1606
|
class: "avatar-initials"
|
|
1582
|
-
},
|
|
1607
|
+
}, rn = {
|
|
1583
1608
|
key: 2,
|
|
1584
1609
|
class: "avatar-trigger-text"
|
|
1585
|
-
},
|
|
1610
|
+
}, an = { class: "avatar-full-name" }, on = {
|
|
1586
1611
|
key: 0,
|
|
1587
1612
|
class: "d-block user-info-span"
|
|
1588
|
-
},
|
|
1613
|
+
}, sn = { class: "user-detail-popper d-flex align-items-center" }, cn = { class: "user-avatar flex-shrink-0" }, ln = ["src", "alt"], un = {
|
|
1589
1614
|
key: 1,
|
|
1590
1615
|
class: "avatar-initials"
|
|
1591
|
-
},
|
|
1616
|
+
}, dn = { class: "user-info ms-3" }, fn = { key: 0 }, pn = { class: "text-uppercase" }, mn = ["href"], hn = { key: 1 }, gn = {
|
|
1592
1617
|
__name: "UserDetailTooltip",
|
|
1593
1618
|
props: {
|
|
1594
1619
|
user: {
|
|
@@ -1618,42 +1643,42 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
1618
1643
|
},
|
|
1619
1644
|
setup(e) {
|
|
1620
1645
|
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",
|
|
1646
|
+
return (t, r) => (S(), l("div", Qt, [e.label ? (S(), l("label", $t, D(e.label) + " :", 1)) : c("", !0), f(k(Ge), {
|
|
1622
1647
|
arrow: "",
|
|
1623
1648
|
click: ""
|
|
1624
1649
|
}, {
|
|
1625
|
-
content: F(() => [u("div",
|
|
1650
|
+
content: F(() => [u("div", sn, [u("div", cn, [e.user.avatar_thumb_url ? (S(), l("img", {
|
|
1626
1651
|
key: 0,
|
|
1627
1652
|
src: e.user.avatar_thumb_url,
|
|
1628
1653
|
class: "avatar-photo",
|
|
1629
1654
|
alt: e.user.full_name
|
|
1630
|
-
}, null, 8,
|
|
1631
|
-
u("h3", null, [d(D(e.user.full_name) + " ", 1), e.userText ? (S(), l("small",
|
|
1655
|
+
}, null, 8, ln)) : (S(), l("div", un, D(n.value), 1))]), u("div", dn, [
|
|
1656
|
+
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
1657
|
e.user.email ? (S(), l("a", {
|
|
1633
1658
|
key: 0,
|
|
1634
1659
|
href: "mailto:" + e.user.email
|
|
1635
|
-
}, D(e.user.email), 9,
|
|
1636
|
-
e.datetimeText ? (S(), l("p",
|
|
1660
|
+
}, D(e.user.email), 9, mn)) : c("", !0),
|
|
1661
|
+
e.datetimeText ? (S(), l("p", hn, D(e.datetimeText), 1)) : c("", !0)
|
|
1637
1662
|
])])]),
|
|
1638
|
-
default: F(() => [u("div",
|
|
1663
|
+
default: F(() => [u("div", en, [e.user.avatar_thumb_url ? (S(), l("img", {
|
|
1639
1664
|
key: 0,
|
|
1640
1665
|
src: e.user.avatar_thumb_url,
|
|
1641
1666
|
class: "avatar-photo",
|
|
1642
1667
|
alt: e.user.full_name
|
|
1643
|
-
}, null, 8,
|
|
1668
|
+
}, 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
1669
|
_: 1
|
|
1645
1670
|
})]));
|
|
1646
1671
|
}
|
|
1647
|
-
},
|
|
1672
|
+
}, _n = {
|
|
1648
1673
|
key: 0,
|
|
1649
1674
|
class: "row"
|
|
1650
|
-
},
|
|
1675
|
+
}, vn = { class: "col-sm" }, yn = { class: "pagination-caption" }, bn = { class: "col-sm-auto" }, xn = {
|
|
1651
1676
|
key: 0,
|
|
1652
1677
|
class: "page-link"
|
|
1653
|
-
},
|
|
1678
|
+
}, Sn = { "aria-hidden": "true" }, Cn = ["aria-label"], wn = { "aria-hidden": "true" }, Tn = ["onClick"], En = {
|
|
1654
1679
|
key: 0,
|
|
1655
1680
|
class: "page-link"
|
|
1656
|
-
},
|
|
1681
|
+
}, Dn = { "aria-hidden": "true" }, On = ["aria-label"], kn = { "aria-hidden": "true" }, An = {
|
|
1657
1682
|
__name: "Pagination",
|
|
1658
1683
|
props: {
|
|
1659
1684
|
pagination: {
|
|
@@ -1704,7 +1729,7 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
1704
1729
|
function g(e) {
|
|
1705
1730
|
n.pagination.current_page !== e && r("page-change", e);
|
|
1706
1731
|
}
|
|
1707
|
-
return (t, n) => e.pagination.total > 0 ? (S(), l("div",
|
|
1732
|
+
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
1733
|
key: 0,
|
|
1709
1734
|
class: _(["pagination", p.value])
|
|
1710
1735
|
}, [
|
|
@@ -1714,13 +1739,13 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
1714
1739
|
disabled: e.pagination.current_page <= 1,
|
|
1715
1740
|
"page-item": !0
|
|
1716
1741
|
})
|
|
1717
|
-
}, [e.pagination.current_page <= 1 ? (S(), l("span",
|
|
1742
|
+
}, [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
1743
|
key: 1,
|
|
1719
1744
|
href: "#",
|
|
1720
1745
|
"aria-label": e.translations.previous,
|
|
1721
1746
|
class: "page-link",
|
|
1722
1747
|
onClick: n[0] ||= R((t) => g(e.pagination.current_page - 1), ["prevent"])
|
|
1723
|
-
}, [u("span",
|
|
1748
|
+
}, [u("span", wn, D(e.translations.previous), 1)], 8, Cn)) : c("", !0)], 2)) : c("", !0),
|
|
1724
1749
|
(S(!0), l(i, null, T(f.value, (t) => (S(), l("li", {
|
|
1725
1750
|
key: t,
|
|
1726
1751
|
class: _({
|
|
@@ -1731,23 +1756,23 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
1731
1756
|
href: "#",
|
|
1732
1757
|
class: "page-link",
|
|
1733
1758
|
onClick: R((e) => g(t), ["prevent"])
|
|
1734
|
-
}, D(t), 9,
|
|
1759
|
+
}, D(t), 9, Tn)], 2))), 128)),
|
|
1735
1760
|
h() ? (S(), l("li", {
|
|
1736
1761
|
key: 1,
|
|
1737
1762
|
class: _({
|
|
1738
1763
|
disabled: e.pagination.current_page === e.pagination.last_page || e.pagination.last_page === 0,
|
|
1739
1764
|
"page-item": !0
|
|
1740
1765
|
})
|
|
1741
|
-
}, [e.pagination.current_page === e.pagination.last_page || e.pagination.last_page === 0 ? (S(), l("span",
|
|
1766
|
+
}, [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
1767
|
key: 1,
|
|
1743
1768
|
href: "#",
|
|
1744
1769
|
"aria-label": e.translations.next,
|
|
1745
1770
|
class: "page-link",
|
|
1746
1771
|
onClick: n[1] ||= R((t) => g(e.pagination.current_page + 1), ["prevent"])
|
|
1747
|
-
}, [u("span",
|
|
1772
|
+
}, [u("span", kn, D(e.translations.next), 1)], 8, On)) : c("", !0)], 2)) : c("", !0)
|
|
1748
1773
|
], 2)) : c("", !0)])])])) : c("", !0);
|
|
1749
1774
|
}
|
|
1750
|
-
},
|
|
1775
|
+
}, Z = {
|
|
1751
1776
|
__name: "Sortable",
|
|
1752
1777
|
props: {
|
|
1753
1778
|
column: {
|
|
@@ -1774,7 +1799,7 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
1774
1799
|
"fa-arrow-down-short-wide": e.orderBy.column === e.column && e.orderBy.direction === "desc"
|
|
1775
1800
|
}]) }, null, 2), E(t.$slots, "default")])]));
|
|
1776
1801
|
}
|
|
1777
|
-
},
|
|
1802
|
+
}, jn = { class: "input-group" }, Mn = { class: "form-control d-flex align-items-center p-0" }, Nn = ["placeholder", "value"], Pn = {
|
|
1778
1803
|
__name: "Search",
|
|
1779
1804
|
props: {
|
|
1780
1805
|
search: {
|
|
@@ -1820,9 +1845,9 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
1820
1845
|
function m() {
|
|
1821
1846
|
o(), r("update:search", ""), n.filterFn("search", "");
|
|
1822
1847
|
}
|
|
1823
|
-
return b(o), (t, n) => (S(), l("div",
|
|
1848
|
+
return b(o), (t, n) => (S(), l("div", jn, [
|
|
1824
1849
|
E(t.$slots, "prepend"),
|
|
1825
|
-
u("div",
|
|
1850
|
+
u("div", Mn, [u("input", {
|
|
1826
1851
|
ref_key: "inputRef",
|
|
1827
1852
|
ref: i,
|
|
1828
1853
|
class: "border-0 shadow-none ps-3 flex-grow-1",
|
|
@@ -1834,7 +1859,7 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
1834
1859
|
value: e.search,
|
|
1835
1860
|
onInput: s,
|
|
1836
1861
|
onKeyup: L(p, ["enter"])
|
|
1837
|
-
}, null, 40,
|
|
1862
|
+
}, null, 40, Nn), e.search ? (S(), l("button", {
|
|
1838
1863
|
key: 0,
|
|
1839
1864
|
type: "button",
|
|
1840
1865
|
class: "border-0 bg-transparent pe-1 ps-0 flex-shrink-0 text-danger",
|
|
@@ -1847,7 +1872,7 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
1847
1872
|
}, [n[1] ||= u("i", { class: "fa fa-search" }, null, -1), d("\xA0 " + D(e.translations.search_btn), 1)])
|
|
1848
1873
|
]));
|
|
1849
1874
|
}
|
|
1850
|
-
},
|
|
1875
|
+
}, Fn = ["value"], In = {
|
|
1851
1876
|
__name: "PerPage",
|
|
1852
1877
|
props: { modelValue: {
|
|
1853
1878
|
type: [Number, String],
|
|
@@ -1863,12 +1888,12 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
1863
1888
|
u("option", { value: "10" }, "10", -1),
|
|
1864
1889
|
u("option", { value: "25" }, "25", -1),
|
|
1865
1890
|
u("option", { value: "100" }, "100", -1)
|
|
1866
|
-
]], 40,
|
|
1891
|
+
]], 40, Fn));
|
|
1867
1892
|
}
|
|
1868
|
-
},
|
|
1893
|
+
}, Ln = {
|
|
1869
1894
|
key: 0,
|
|
1870
1895
|
class: "no-items-found"
|
|
1871
|
-
},
|
|
1896
|
+
}, Rn = ["href"], zn = {
|
|
1872
1897
|
__name: "EmptyState",
|
|
1873
1898
|
props: {
|
|
1874
1899
|
show: {
|
|
@@ -1889,7 +1914,7 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
1889
1914
|
}
|
|
1890
1915
|
},
|
|
1891
1916
|
setup(e) {
|
|
1892
|
-
return (t, n) => e.show ? (S(), l("div",
|
|
1917
|
+
return (t, n) => e.show ? (S(), l("div", Ln, [
|
|
1893
1918
|
n[1] ||= u("i", { class: "fa fa-magnifying-glass" }, null, -1),
|
|
1894
1919
|
u("h3", null, D(e.translations.no_items), 1),
|
|
1895
1920
|
u("p", null, D(e.translations.try_changing_items), 1),
|
|
@@ -1898,10 +1923,10 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
1898
1923
|
class: "btn btn-primary btn-spinner",
|
|
1899
1924
|
href: e.createUrl,
|
|
1900
1925
|
role: "button"
|
|
1901
|
-
}, [n[0] ||= u("i", { class: "fa fa-plus" }, null, -1), d("\xA0 " + D(e.translations.create_btn), 1)], 8,
|
|
1926
|
+
}, [n[0] ||= u("i", { class: "fa fa-plus" }, null, -1), d("\xA0 " + D(e.translations.create_btn), 1)], 8, Rn)) : c("", !0)
|
|
1902
1927
|
])) : c("", !0);
|
|
1903
1928
|
}
|
|
1904
|
-
},
|
|
1929
|
+
}, Bn = ["checked"], Vn = {
|
|
1905
1930
|
__name: "BulkCheckboxHeader",
|
|
1906
1931
|
props: {
|
|
1907
1932
|
isClickedAll: {
|
|
@@ -1921,17 +1946,17 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
1921
1946
|
checked: e.isClickedAll,
|
|
1922
1947
|
name: "enabled_fake_element",
|
|
1923
1948
|
onClick: n[0] ||= (t) => e.onToggleAll()
|
|
1924
|
-
}, null, 8,
|
|
1949
|
+
}, null, 8, Bn), n[1] ||= u("label", {
|
|
1925
1950
|
class: "form-check-label",
|
|
1926
1951
|
for: "enabled"
|
|
1927
1952
|
}, " # ", -1)], 64));
|
|
1928
1953
|
}
|
|
1929
|
-
},
|
|
1954
|
+
}, Hn = [
|
|
1930
1955
|
"id",
|
|
1931
1956
|
"checked",
|
|
1932
1957
|
"name",
|
|
1933
1958
|
"disabled"
|
|
1934
|
-
],
|
|
1959
|
+
], Un = ["for"], Wn = {
|
|
1935
1960
|
__name: "BulkCheckboxRow",
|
|
1936
1961
|
props: {
|
|
1937
1962
|
itemId: {
|
|
@@ -1960,18 +1985,18 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
1960
1985
|
name: "enabled" + e.itemId + "_fake_element",
|
|
1961
1986
|
disabled: e.disabled,
|
|
1962
1987
|
onClick: n[0] ||= (t) => e.onToggle(e.itemId)
|
|
1963
|
-
}, null, 8,
|
|
1988
|
+
}, null, 8, Hn), u("label", {
|
|
1964
1989
|
class: "form-check-label",
|
|
1965
1990
|
for: "enabled" + e.itemId
|
|
1966
|
-
}, null, 8,
|
|
1991
|
+
}, null, 8, Un)], 64));
|
|
1967
1992
|
}
|
|
1968
|
-
},
|
|
1993
|
+
}, Gn = { class: "align-middle fw-light text-dark" }, Kn = {
|
|
1969
1994
|
key: 0,
|
|
1970
1995
|
class: "fa fa-spinner"
|
|
1971
|
-
},
|
|
1996
|
+
}, qn = {
|
|
1972
1997
|
key: 1,
|
|
1973
1998
|
class: "text-primary"
|
|
1974
|
-
},
|
|
1999
|
+
}, Jn = { class: "float-end pe-2" }, Yn = { class: "d-inline-flex gap-2" }, Xn = {
|
|
1975
2000
|
__name: "BulkOperationsBar",
|
|
1976
2001
|
props: {
|
|
1977
2002
|
selectedCount: {
|
|
@@ -1996,7 +2021,15 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
1996
2021
|
},
|
|
1997
2022
|
onBulkDelete: {
|
|
1998
2023
|
type: Function,
|
|
1999
|
-
|
|
2024
|
+
default: null
|
|
2025
|
+
},
|
|
2026
|
+
onBulkForceDelete: {
|
|
2027
|
+
type: Function,
|
|
2028
|
+
default: null
|
|
2029
|
+
},
|
|
2030
|
+
onBulkRestore: {
|
|
2031
|
+
type: Function,
|
|
2032
|
+
default: null
|
|
2000
2033
|
},
|
|
2001
2034
|
translations: {
|
|
2002
2035
|
type: Object,
|
|
@@ -2004,34 +2037,49 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2004
2037
|
selected_items: "Selected items",
|
|
2005
2038
|
check_all_items: "Check all items",
|
|
2006
2039
|
uncheck_all_items: "Uncheck all items",
|
|
2007
|
-
delete_btn: "Delete"
|
|
2040
|
+
delete_btn: "Delete",
|
|
2041
|
+
force_delete_btn: "Delete permanently",
|
|
2042
|
+
restore_btn: "Restore"
|
|
2008
2043
|
})
|
|
2009
2044
|
}
|
|
2010
2045
|
},
|
|
2011
2046
|
setup(e) {
|
|
2012
|
-
return (t, n) => (S(), l(i, null, [u("span",
|
|
2047
|
+
return (t, n) => (S(), l(i, null, [u("span", Gn, [
|
|
2013
2048
|
d(D(e.translations.selected_items) + " " + D(e.selectedCount) + ". ", 1),
|
|
2014
2049
|
e.selectedCount < e.totalCount ? (S(), l("a", {
|
|
2015
2050
|
key: 0,
|
|
2016
2051
|
href: "javascript:void(0)",
|
|
2017
2052
|
class: "text-primary",
|
|
2018
2053
|
onClick: n[0] ||= (t) => e.onCheckAll()
|
|
2019
|
-
}, [e.loading ? (S(), l("i",
|
|
2020
|
-
e.selectedCount < e.totalCount ? (S(), l("span",
|
|
2054
|
+
}, [e.loading ? (S(), l("i", Kn)) : c("", !0), d(" " + D(e.translations.check_all_items) + " " + D(e.totalCount), 1)])) : c("", !0),
|
|
2055
|
+
e.selectedCount < e.totalCount ? (S(), l("span", qn, " | ")) : c("", !0),
|
|
2021
2056
|
u("a", {
|
|
2022
2057
|
href: "javascript:void(0)",
|
|
2023
2058
|
class: "text-primary",
|
|
2024
2059
|
onClick: n[1] ||= (t) => e.onUncheckAll()
|
|
2025
2060
|
}, D(e.translations.uncheck_all_items), 1)
|
|
2026
|
-
]), u("span",
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2061
|
+
]), u("span", Jn, [E(t.$slots, "default", {}, () => [u("span", Yn, [
|
|
2062
|
+
e.onBulkDelete ? (S(), l("button", {
|
|
2063
|
+
key: 0,
|
|
2064
|
+
class: "btn btn-sm btn-danger px-4",
|
|
2065
|
+
onClick: n[2] ||= (t) => e.onBulkDelete()
|
|
2066
|
+
}, [n[5] ||= u("i", { class: "fa fa-trash me-1" }, null, -1), d(" " + D(e.translations.delete_btn), 1)])) : c("", !0),
|
|
2067
|
+
e.onBulkForceDelete ? (S(), l("button", {
|
|
2068
|
+
key: 1,
|
|
2069
|
+
class: "btn btn-sm btn-dark px-4",
|
|
2070
|
+
onClick: n[3] ||= (t) => e.onBulkForceDelete()
|
|
2071
|
+
}, [n[6] ||= u("i", { class: "fa fa-eraser me-1" }, null, -1), d(" " + D(e.translations.force_delete_btn), 1)])) : c("", !0),
|
|
2072
|
+
e.onBulkRestore ? (S(), l("button", {
|
|
2073
|
+
key: 2,
|
|
2074
|
+
class: "btn btn-sm btn-success text-white px-4",
|
|
2075
|
+
onClick: n[4] ||= (t) => e.onBulkRestore()
|
|
2076
|
+
}, [n[7] ||= u("i", { class: "fa fa-trash-arrow-up me-1" }, null, -1), d(" " + D(e.translations.restore_btn), 1)])) : c("", !0)
|
|
2077
|
+
])])])], 64));
|
|
2030
2078
|
}
|
|
2031
|
-
},
|
|
2079
|
+
}, Zn = {
|
|
2032
2080
|
class: "modal-dialog modal-dialog-centered",
|
|
2033
2081
|
role: "document"
|
|
2034
|
-
},
|
|
2082
|
+
}, Qn = { class: "modal-content" }, $n = { class: "modal-header" }, er = { class: "modal-title" }, tr = { class: "modal-body" }, nr = { class: "modal-footer" }, Q = {
|
|
2035
2083
|
__name: "ConfirmModal",
|
|
2036
2084
|
props: {
|
|
2037
2085
|
show: {
|
|
@@ -2074,14 +2122,14 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2074
2122
|
tabindex: "-1",
|
|
2075
2123
|
role: "dialog",
|
|
2076
2124
|
onClick: i[4] ||= R((e) => t.$emit("cancel"), ["self"])
|
|
2077
|
-
}, [u("div",
|
|
2078
|
-
u("div",
|
|
2125
|
+
}, [u("div", Zn, [u("div", Qn, [
|
|
2126
|
+
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
2127
|
type: "button",
|
|
2080
2128
|
class: "btn-close",
|
|
2081
2129
|
onClick: i[1] ||= (e) => t.$emit("cancel")
|
|
2082
2130
|
})]),
|
|
2083
|
-
u("div",
|
|
2084
|
-
u("div",
|
|
2131
|
+
u("div", tr, [u("p", null, D(e.translations.confirm_text), 1)]),
|
|
2132
|
+
u("div", nr, [u("button", {
|
|
2085
2133
|
type: "button",
|
|
2086
2134
|
class: "btn btn-secondary",
|
|
2087
2135
|
onClick: i[2] ||= (e) => t.$emit("cancel")
|
|
@@ -2092,10 +2140,10 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2092
2140
|
}, D(e.translations.confirm_btn), 3)])
|
|
2093
2141
|
])])])) : c("", !0)]));
|
|
2094
2142
|
}
|
|
2095
|
-
},
|
|
2143
|
+
}, 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
2144
|
key: 6,
|
|
2097
2145
|
class: "publish-later-modal"
|
|
2098
|
-
},
|
|
2146
|
+
}, pr = { class: "d-flex justify-content-between align-items-center mb-2" }, mr = { class: "mt-2 text-end" }, hr = ["disabled"], gr = {
|
|
2099
2147
|
__name: "PublishedAtColumn",
|
|
2100
2148
|
props: {
|
|
2101
2149
|
item: {
|
|
@@ -2128,7 +2176,7 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2128
2176
|
},
|
|
2129
2177
|
emits: ["update:item"],
|
|
2130
2178
|
setup(e, { emit: t }) {
|
|
2131
|
-
let n = window.axios, r =
|
|
2179
|
+
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
2180
|
function y() {
|
|
2133
2181
|
p.value = a.item.published_at || null, s.value = !0;
|
|
2134
2182
|
}
|
|
@@ -2192,8 +2240,8 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2192
2240
|
});
|
|
2193
2241
|
}
|
|
2194
2242
|
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",
|
|
2243
|
+
e.item.published_at <= e.now ? (S(), l("span", rr, D(k(q)(e.item.published_at, e.datetimeFormat)), 1)) : c("", !0),
|
|
2244
|
+
e.item.published_at > e.now ? (S(), l("span", ir, [
|
|
2197
2245
|
u("small", null, D(e.translations.will_be_published), 1),
|
|
2198
2246
|
n[9] ||= u("br", null, null, -1),
|
|
2199
2247
|
d(" " + D(k(q)(e.item.published_at, e.datetimeFormat)) + " ", 1),
|
|
@@ -2202,15 +2250,15 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2202
2250
|
title: e.translations.publish_later,
|
|
2203
2251
|
role: "button",
|
|
2204
2252
|
onClick: n[0] ||= (e) => y()
|
|
2205
|
-
}, [...n[8] ||= [u("i", { class: "fa fa-calendar" }, null, -1)]], 8,
|
|
2253
|
+
}, [...n[8] ||= [u("i", { class: "fa fa-calendar" }, null, -1)]], 8, ar)
|
|
2206
2254
|
])) : c("", !0),
|
|
2207
|
-
e.item.published_at ? c("", !0) : (S(), l("div",
|
|
2255
|
+
e.item.published_at ? c("", !0) : (S(), l("div", or, [u("span", {
|
|
2208
2256
|
class: "btn btn-sm btn-info text-white mb-1",
|
|
2209
2257
|
title: e.translations.publish_later,
|
|
2210
2258
|
role: "button",
|
|
2211
2259
|
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",
|
|
2260
|
+
}, [n[10] ||= u("i", { class: "fa fa-calendar" }, null, -1), d("\xA0\xA0" + D(e.translations.publish_later), 1)], 8, sr)])),
|
|
2261
|
+
!e.item.published_at || e.item.published_at > e.now ? (S(), l("div", cr, [u("form", {
|
|
2214
2262
|
class: "d-inline",
|
|
2215
2263
|
onSubmit: n[2] ||= R((e) => x(), ["prevent"])
|
|
2216
2264
|
}, [u("button", {
|
|
@@ -2218,8 +2266,8 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2218
2266
|
class: "btn btn-sm btn-success text-white",
|
|
2219
2267
|
title: e.translations.publish_now,
|
|
2220
2268
|
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",
|
|
2269
|
+
}, [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),
|
|
2270
|
+
e.item.published_at && e.item.published_at < e.now ? (S(), l("div", ur, [u("form", {
|
|
2223
2271
|
class: "d-inline",
|
|
2224
2272
|
onSubmit: n[3] ||= R((e) => C(), ["prevent"])
|
|
2225
2273
|
}, [u("button", {
|
|
@@ -2227,14 +2275,14 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2227
2275
|
class: "btn btn-sm btn-danger",
|
|
2228
2276
|
title: e.translations.unpublish_now,
|
|
2229
2277
|
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,
|
|
2278
|
+
}, [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
2279
|
s.value ? (S(), l("div", {
|
|
2232
2280
|
key: 5,
|
|
2233
2281
|
class: "publish-later-backdrop",
|
|
2234
2282
|
onClick: n[4] ||= R((e) => s.value = !1, ["self"])
|
|
2235
2283
|
})) : c("", !0),
|
|
2236
|
-
s.value ? (S(), l("div",
|
|
2237
|
-
u("div",
|
|
2284
|
+
s.value ? (S(), l("div", fr, [
|
|
2285
|
+
u("div", pr, [u("strong", null, D(e.translations.publish_later), 1), u("button", {
|
|
2238
2286
|
type: "button",
|
|
2239
2287
|
class: "btn-close btn-close-sm",
|
|
2240
2288
|
"aria-label": "Close",
|
|
@@ -2251,13 +2299,13 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2251
2299
|
inline: !0,
|
|
2252
2300
|
"auto-apply": ""
|
|
2253
2301
|
}, null, 8, ["modelValue", "format-locale"]),
|
|
2254
|
-
u("div",
|
|
2302
|
+
u("div", mr, [u("button", {
|
|
2255
2303
|
class: "btn btn-sm btn-primary text-white",
|
|
2256
2304
|
disabled: m.value || !p.value,
|
|
2257
2305
|
onClick: n[7] ||= (e) => b()
|
|
2258
|
-
}, " Save ", 8,
|
|
2306
|
+
}, " Save ", 8, hr)])
|
|
2259
2307
|
])) : c("", !0),
|
|
2260
|
-
f(
|
|
2308
|
+
f(Q, {
|
|
2261
2309
|
show: h.value,
|
|
2262
2310
|
translations: _.value,
|
|
2263
2311
|
variant: v.value,
|
|
@@ -2270,7 +2318,7 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2270
2318
|
])
|
|
2271
2319
|
], 64));
|
|
2272
2320
|
}
|
|
2273
|
-
},
|
|
2321
|
+
}, _r = ["href"], vr = ["href"], yr = {
|
|
2274
2322
|
__name: "ListingHeader",
|
|
2275
2323
|
props: {
|
|
2276
2324
|
createUrl: {
|
|
@@ -2299,16 +2347,16 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2299
2347
|
class: "btn btn-primary btn-sm float-end mb-0 ms-2",
|
|
2300
2348
|
href: e.exportUrl,
|
|
2301
2349
|
role: "button"
|
|
2302
|
-
}, [n[0] ||= u("i", { class: "fa fa-file-excel" }, null, -1), d("\xA0 " + D(e.translations.export_btn), 1)], 8,
|
|
2350
|
+
}, [n[0] ||= u("i", { class: "fa fa-file-excel" }, null, -1), d("\xA0 " + D(e.translations.export_btn), 1)], 8, _r)) : c("", !0),
|
|
2303
2351
|
e.createUrl ? (S(), l("a", {
|
|
2304
2352
|
key: 1,
|
|
2305
2353
|
class: "btn btn-primary btn-spinner btn-sm float-end mb-0",
|
|
2306
2354
|
href: e.createUrl,
|
|
2307
2355
|
role: "button"
|
|
2308
|
-
}, [n[1] ||= u("i", { class: "fa fa-plus" }, null, -1), d("\xA0 " + D(e.translations.create_btn), 1)], 8,
|
|
2356
|
+
}, [n[1] ||= u("i", { class: "fa fa-plus" }, null, -1), d("\xA0 " + D(e.translations.create_btn), 1)], 8, vr)) : c("", !0)
|
|
2309
2357
|
], 64));
|
|
2310
2358
|
}
|
|
2311
|
-
},
|
|
2359
|
+
}, br = ["href", "title"], xr = {
|
|
2312
2360
|
__name: "ShowButton",
|
|
2313
2361
|
props: {
|
|
2314
2362
|
url: {
|
|
@@ -2326,9 +2374,9 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2326
2374
|
href: e.url,
|
|
2327
2375
|
title: e.translations.show_btn,
|
|
2328
2376
|
role: "button"
|
|
2329
|
-
}, [...n[0] ||= [u("i", { class: "fa fa-eye" }, null, -1)]], 8,
|
|
2377
|
+
}, [...n[0] ||= [u("i", { class: "fa fa-eye" }, null, -1)]], 8, br));
|
|
2330
2378
|
}
|
|
2331
|
-
},
|
|
2379
|
+
}, Sr = ["href", "title"], Cr = {
|
|
2332
2380
|
__name: "EditButton",
|
|
2333
2381
|
props: {
|
|
2334
2382
|
url: {
|
|
@@ -2346,9 +2394,9 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2346
2394
|
href: e.url,
|
|
2347
2395
|
title: e.translations.edit_btn,
|
|
2348
2396
|
role: "button"
|
|
2349
|
-
}, [...n[0] ||= [u("i", { class: "fa fa-edit" }, null, -1)]], 8,
|
|
2397
|
+
}, [...n[0] ||= [u("i", { class: "fa fa-edit" }, null, -1)]], 8, Sr));
|
|
2350
2398
|
}
|
|
2351
|
-
},
|
|
2399
|
+
}, wr = ["title"], Tr = {
|
|
2352
2400
|
__name: "DeleteButton",
|
|
2353
2401
|
props: {
|
|
2354
2402
|
url: {
|
|
@@ -2381,14 +2429,124 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2381
2429
|
class: "btn btn-sm btn-danger",
|
|
2382
2430
|
title: e.translations.delete_btn,
|
|
2383
2431
|
onClick: n[0] ||= (e) => o.value = !0
|
|
2384
|
-
}, [...n[2] ||= [u("i", { class: "fa fa-trash" }, null, -1)]], 8,
|
|
2432
|
+
}, [...n[2] ||= [u("i", { class: "fa fa-trash" }, null, -1)]], 8, wr), f(Q, {
|
|
2433
|
+
show: o.value,
|
|
2434
|
+
translations: e.translations,
|
|
2435
|
+
onConfirm: s,
|
|
2436
|
+
onCancel: n[1] ||= (e) => o.value = !1
|
|
2437
|
+
}, null, 8, ["show", "translations"])], 64));
|
|
2438
|
+
}
|
|
2439
|
+
}, Er = ["title"], Dr = {
|
|
2440
|
+
__name: "ForceDeleteButton",
|
|
2441
|
+
props: {
|
|
2442
|
+
url: {
|
|
2443
|
+
type: String,
|
|
2444
|
+
required: !0
|
|
2445
|
+
},
|
|
2446
|
+
translations: {
|
|
2447
|
+
type: Object,
|
|
2448
|
+
default: () => ({
|
|
2449
|
+
force_delete_btn: "Delete permanently",
|
|
2450
|
+
confirm_title: "Deletion",
|
|
2451
|
+
confirm_text: "Delete this item permanently? This cannot be undone.",
|
|
2452
|
+
confirm_btn: "Delete permanently",
|
|
2453
|
+
cancel_btn: "Cancel"
|
|
2454
|
+
})
|
|
2455
|
+
}
|
|
2456
|
+
},
|
|
2457
|
+
emits: ["deleted"],
|
|
2458
|
+
setup(e, { emit: t }) {
|
|
2459
|
+
let n = window.axios, r = e, a = t, o = w(!1);
|
|
2460
|
+
function s() {
|
|
2461
|
+
o.value = !1, n.delete(r.url).then((e) => {
|
|
2462
|
+
W(e.data.message), a("deleted");
|
|
2463
|
+
}, (e) => {
|
|
2464
|
+
G(e.response?.data?.message);
|
|
2465
|
+
});
|
|
2466
|
+
}
|
|
2467
|
+
return (t, n) => (S(), l(i, null, [u("button", {
|
|
2468
|
+
type: "button",
|
|
2469
|
+
class: "btn btn-sm btn-dark",
|
|
2470
|
+
title: e.translations.force_delete_btn,
|
|
2471
|
+
onClick: n[0] ||= (e) => o.value = !0
|
|
2472
|
+
}, [...n[2] ||= [u("i", { class: "fa fa-eraser" }, null, -1)]], 8, Er), f(Q, {
|
|
2473
|
+
show: o.value,
|
|
2474
|
+
variant: "danger",
|
|
2475
|
+
translations: e.translations,
|
|
2476
|
+
onConfirm: s,
|
|
2477
|
+
onCancel: n[1] ||= (e) => o.value = !1
|
|
2478
|
+
}, null, 8, ["show", "translations"])], 64));
|
|
2479
|
+
}
|
|
2480
|
+
}, Or = ["title"], kr = ["aria-label", "disabled"], Ar = {
|
|
2481
|
+
__name: "RestoreButton",
|
|
2482
|
+
props: {
|
|
2483
|
+
url: {
|
|
2484
|
+
type: String,
|
|
2485
|
+
required: !0
|
|
2486
|
+
},
|
|
2487
|
+
disabled: {
|
|
2488
|
+
type: Boolean,
|
|
2489
|
+
default: !1
|
|
2490
|
+
},
|
|
2491
|
+
translations: {
|
|
2492
|
+
type: Object,
|
|
2493
|
+
default: () => ({
|
|
2494
|
+
restore_btn: "Restore",
|
|
2495
|
+
not_restorable: "This item cannot be restored, an item it belongs to is deleted.",
|
|
2496
|
+
confirm_title: "Restore",
|
|
2497
|
+
confirm_text: "Do you really want to restore this item?",
|
|
2498
|
+
confirm_btn: "Restore",
|
|
2499
|
+
cancel_btn: "Cancel"
|
|
2500
|
+
})
|
|
2501
|
+
}
|
|
2502
|
+
},
|
|
2503
|
+
emits: ["restored"],
|
|
2504
|
+
setup(e, { emit: t }) {
|
|
2505
|
+
let n = window.axios, r = e, a = t, o = w(!1);
|
|
2506
|
+
function s() {
|
|
2507
|
+
o.value = !1, n.post(r.url).then((e) => {
|
|
2508
|
+
W(e.data.message), a("restored");
|
|
2509
|
+
}, (e) => {
|
|
2510
|
+
G(e.response?.data?.message);
|
|
2511
|
+
});
|
|
2512
|
+
}
|
|
2513
|
+
return (t, n) => (S(), l(i, null, [u("span", { title: e.disabled ? e.translations.not_restorable : e.translations.restore_btn }, [u("button", {
|
|
2514
|
+
type: "button",
|
|
2515
|
+
class: "btn btn-sm btn-success text-white",
|
|
2516
|
+
"aria-label": e.disabled ? e.translations.not_restorable : e.translations.restore_btn,
|
|
2517
|
+
disabled: e.disabled,
|
|
2518
|
+
onClick: n[0] ||= (e) => o.value = !0
|
|
2519
|
+
}, [...n[2] ||= [u("i", { class: "fa fa-trash-arrow-up" }, null, -1)]], 8, kr)], 8, Or), f(Q, {
|
|
2385
2520
|
show: o.value,
|
|
2521
|
+
variant: "success",
|
|
2386
2522
|
translations: e.translations,
|
|
2387
2523
|
onConfirm: s,
|
|
2388
2524
|
onCancel: n[1] ||= (e) => o.value = !1
|
|
2389
2525
|
}, null, 8, ["show", "translations"])], 64));
|
|
2390
2526
|
}
|
|
2391
|
-
},
|
|
2527
|
+
}, 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 = {
|
|
2528
|
+
__name: "ShowDeleted",
|
|
2529
|
+
props: {
|
|
2530
|
+
modelValue: {
|
|
2531
|
+
type: Boolean,
|
|
2532
|
+
default: !1
|
|
2533
|
+
},
|
|
2534
|
+
translations: {
|
|
2535
|
+
type: Object,
|
|
2536
|
+
default: () => ({ show_deleted: "Show deleted" })
|
|
2537
|
+
}
|
|
2538
|
+
},
|
|
2539
|
+
emits: ["update:modelValue"],
|
|
2540
|
+
setup(e) {
|
|
2541
|
+
return (t, n) => (S(), l("label", jr, [u("span", Mr, [u("input", {
|
|
2542
|
+
class: "form-check-input",
|
|
2543
|
+
type: "checkbox",
|
|
2544
|
+
role: "switch",
|
|
2545
|
+
checked: e.modelValue,
|
|
2546
|
+
onChange: n[0] ||= (e) => t.$emit("update:modelValue", e.target.checked)
|
|
2547
|
+
}, null, 40, Nr)]), d(" " + D(e.translations.show_deleted), 1)]));
|
|
2548
|
+
}
|
|
2549
|
+
}, Fr = ["href"], Ir = {
|
|
2392
2550
|
__name: "BackButton",
|
|
2393
2551
|
props: {
|
|
2394
2552
|
url: {
|
|
@@ -2404,9 +2562,9 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2404
2562
|
return (t, n) => (S(), l("a", {
|
|
2405
2563
|
class: "btn btn-sm btn-outline-secondary",
|
|
2406
2564
|
href: e.url
|
|
2407
|
-
}, [n[0] ||= u("i", { class: "fa fa-arrow-left" }, null, -1), d(" " + D(e.translations.back), 1)], 8,
|
|
2565
|
+
}, [n[0] ||= u("i", { class: "fa fa-arrow-left" }, null, -1), d(" " + D(e.translations.back), 1)], 8, Fr));
|
|
2408
2566
|
}
|
|
2409
|
-
},
|
|
2567
|
+
}, Lr = { class: "form-check form-switch form-switch-inline" }, Rr = ["checked"], zr = {
|
|
2410
2568
|
__name: "ToggleSwitch",
|
|
2411
2569
|
props: {
|
|
2412
2570
|
modelValue: {
|
|
@@ -2450,15 +2608,15 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2450
2608
|
i("update:modelValue", r.modelValue), G(e.response?.data?.message);
|
|
2451
2609
|
});
|
|
2452
2610
|
}
|
|
2453
|
-
return (t, n) => (S(), l("div",
|
|
2611
|
+
return (t, n) => (S(), l("div", Lr, [u("input", {
|
|
2454
2612
|
class: _(["form-check-input", a.value]),
|
|
2455
2613
|
type: "checkbox",
|
|
2456
2614
|
role: "switch",
|
|
2457
2615
|
checked: !!e.modelValue,
|
|
2458
2616
|
onChange: s
|
|
2459
|
-
}, null, 42,
|
|
2617
|
+
}, null, 42, Rr)]));
|
|
2460
2618
|
}
|
|
2461
|
-
},
|
|
2619
|
+
}, Br = { class: "form-check form-switch form-switch-inline" }, Vr = ["checked"], Hr = {
|
|
2462
2620
|
__name: "ReadOnlySwitch",
|
|
2463
2621
|
props: {
|
|
2464
2622
|
modelValue: {
|
|
@@ -2476,15 +2634,15 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2476
2634
|
},
|
|
2477
2635
|
setup(e) {
|
|
2478
2636
|
let t = e, n = o(() => `form-switch-${t.variant}`);
|
|
2479
|
-
return (t, r) => (S(), l("div",
|
|
2637
|
+
return (t, r) => (S(), l("div", Br, [u("input", {
|
|
2480
2638
|
class: _(["form-check-input", n.value]),
|
|
2481
2639
|
type: "checkbox",
|
|
2482
2640
|
role: "switch",
|
|
2483
2641
|
checked: !!e.modelValue,
|
|
2484
2642
|
disabled: ""
|
|
2485
|
-
}, null, 10,
|
|
2643
|
+
}, null, 10, Vr)]));
|
|
2486
2644
|
}
|
|
2487
|
-
},
|
|
2645
|
+
}, 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
2646
|
__name: "ShowRow",
|
|
2489
2647
|
props: {
|
|
2490
2648
|
label: {
|
|
@@ -2501,18 +2659,18 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2501
2659
|
}
|
|
2502
2660
|
},
|
|
2503
2661
|
setup(e) {
|
|
2504
|
-
return (t, n) => (S(), l("div",
|
|
2662
|
+
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
2663
|
}
|
|
2506
|
-
},
|
|
2664
|
+
}, qr = { class: "mb-3 row align-items-center" }, Jr = ["for"], Yr = { class: "col-md-9 col-xl-8" }, Xr = [
|
|
2507
2665
|
"id",
|
|
2508
2666
|
"type",
|
|
2509
2667
|
"value",
|
|
2510
2668
|
"name",
|
|
2511
2669
|
"placeholder"
|
|
2512
|
-
],
|
|
2670
|
+
], Zr = {
|
|
2513
2671
|
key: 0,
|
|
2514
2672
|
class: "invalid-feedback form-text"
|
|
2515
|
-
},
|
|
2673
|
+
}, Qr = {
|
|
2516
2674
|
__name: "FormInput",
|
|
2517
2675
|
props: {
|
|
2518
2676
|
modelValue: {
|
|
@@ -2542,10 +2700,10 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2542
2700
|
},
|
|
2543
2701
|
emits: ["update:modelValue"],
|
|
2544
2702
|
setup(e) {
|
|
2545
|
-
return (t, n) => (S(), l("div",
|
|
2703
|
+
return (t, n) => (S(), l("div", qr, [u("label", {
|
|
2546
2704
|
for: e.name,
|
|
2547
2705
|
class: "col-md-3 col-form-label text-md-end"
|
|
2548
|
-
}, D(e.label), 9,
|
|
2706
|
+
}, D(e.label), 9, Jr), u("div", Yr, [u("input", {
|
|
2549
2707
|
id: e.name,
|
|
2550
2708
|
type: e.type,
|
|
2551
2709
|
value: e.modelValue,
|
|
@@ -2553,9 +2711,9 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2553
2711
|
name: e.name,
|
|
2554
2712
|
placeholder: e.placeholder || e.label,
|
|
2555
2713
|
onInput: n[0] ||= (e) => t.$emit("update:modelValue", e.target.value)
|
|
2556
|
-
}, null, 42,
|
|
2714
|
+
}, null, 42, Xr), e.error ? (S(), l("div", Zr, D(e.error), 1)) : c("", !0)])]));
|
|
2557
2715
|
}
|
|
2558
|
-
},
|
|
2716
|
+
}, $r = {
|
|
2559
2717
|
__name: "FormEmail",
|
|
2560
2718
|
props: {
|
|
2561
2719
|
modelValue: {
|
|
@@ -2581,21 +2739,21 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2581
2739
|
},
|
|
2582
2740
|
emits: ["update:modelValue"],
|
|
2583
2741
|
setup(e) {
|
|
2584
|
-
return (e, t) => (S(), s(
|
|
2742
|
+
return (e, t) => (S(), s(Qr, g(e.$props, {
|
|
2585
2743
|
type: "email",
|
|
2586
2744
|
"onUpdate:modelValue": t[0] ||= (t) => e.$emit("update:modelValue", t)
|
|
2587
2745
|
}), null, 16));
|
|
2588
2746
|
}
|
|
2589
|
-
},
|
|
2747
|
+
}, ei = { class: "mb-3 row align-items-center" }, ti = ["for"], ni = { class: "col-md-9 col-xl-8" }, ri = [
|
|
2590
2748
|
"id",
|
|
2591
2749
|
"value",
|
|
2592
2750
|
"name",
|
|
2593
2751
|
"placeholder",
|
|
2594
2752
|
"rows"
|
|
2595
|
-
],
|
|
2753
|
+
], ii = {
|
|
2596
2754
|
key: 0,
|
|
2597
2755
|
class: "invalid-feedback form-text"
|
|
2598
|
-
},
|
|
2756
|
+
}, ai = {
|
|
2599
2757
|
__name: "FormTextarea",
|
|
2600
2758
|
props: {
|
|
2601
2759
|
modelValue: {
|
|
@@ -2625,10 +2783,10 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2625
2783
|
},
|
|
2626
2784
|
emits: ["update:modelValue"],
|
|
2627
2785
|
setup(e) {
|
|
2628
|
-
return (t, n) => (S(), l("div",
|
|
2786
|
+
return (t, n) => (S(), l("div", ei, [u("label", {
|
|
2629
2787
|
for: e.name,
|
|
2630
2788
|
class: "col-md-3 col-form-label text-md-end"
|
|
2631
|
-
}, D(e.label), 9,
|
|
2789
|
+
}, D(e.label), 9, ti), u("div", ni, [u("textarea", {
|
|
2632
2790
|
id: e.name,
|
|
2633
2791
|
value: e.modelValue,
|
|
2634
2792
|
class: _(["form-control", { "is-invalid": e.error }]),
|
|
@@ -2636,16 +2794,16 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2636
2794
|
placeholder: e.placeholder || e.label,
|
|
2637
2795
|
rows: e.rows,
|
|
2638
2796
|
onInput: n[0] ||= (e) => t.$emit("update:modelValue", e.target.value)
|
|
2639
|
-
}, null, 42,
|
|
2797
|
+
}, null, 42, ri), e.error ? (S(), l("div", ii, D(e.error), 1)) : c("", !0)])]));
|
|
2640
2798
|
}
|
|
2641
|
-
},
|
|
2799
|
+
}, 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
2800
|
"id",
|
|
2643
2801
|
"checked",
|
|
2644
2802
|
"name"
|
|
2645
|
-
],
|
|
2803
|
+
], ui = ["for"], di = {
|
|
2646
2804
|
key: 0,
|
|
2647
2805
|
class: "invalid-feedback d-block form-text"
|
|
2648
|
-
},
|
|
2806
|
+
}, fi = {
|
|
2649
2807
|
__name: "FormCheckbox",
|
|
2650
2808
|
props: {
|
|
2651
2809
|
modelValue: {
|
|
@@ -2667,26 +2825,26 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2667
2825
|
},
|
|
2668
2826
|
emits: ["update:modelValue"],
|
|
2669
2827
|
setup(e) {
|
|
2670
|
-
return (t, n) => (S(), l("div",
|
|
2828
|
+
return (t, n) => (S(), l("div", oi, [u("div", si, [u("div", ci, [u("input", {
|
|
2671
2829
|
id: e.name,
|
|
2672
2830
|
class: "form-check-input",
|
|
2673
2831
|
type: "checkbox",
|
|
2674
2832
|
checked: e.modelValue,
|
|
2675
2833
|
name: e.name,
|
|
2676
2834
|
onChange: n[0] ||= (e) => t.$emit("update:modelValue", e.target.checked)
|
|
2677
|
-
}, null, 40,
|
|
2835
|
+
}, null, 40, li), u("label", {
|
|
2678
2836
|
class: "form-check-label",
|
|
2679
2837
|
for: e.name
|
|
2680
|
-
}, D(e.label), 9,
|
|
2838
|
+
}, D(e.label), 9, ui)]), e.error ? (S(), l("div", di, D(e.error), 1)) : c("", !0)])]));
|
|
2681
2839
|
}
|
|
2682
2840
|
}, $ = (e, t) => {
|
|
2683
2841
|
let n = e.__vccOpts || e;
|
|
2684
2842
|
for (let [e, r] of t) n[e] = r;
|
|
2685
2843
|
return n;
|
|
2686
|
-
},
|
|
2844
|
+
}, 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
2845
|
key: 0,
|
|
2688
2846
|
class: "invalid-feedback d-block form-text"
|
|
2689
|
-
},
|
|
2847
|
+
}, yi = /*#__PURE__*/ $({
|
|
2690
2848
|
__name: "FormDatePicker",
|
|
2691
2849
|
props: {
|
|
2692
2850
|
modelValue: {
|
|
@@ -2724,10 +2882,10 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2724
2882
|
},
|
|
2725
2883
|
emits: ["update:modelValue"],
|
|
2726
2884
|
setup(e) {
|
|
2727
|
-
return (t, n) => (S(), l("div",
|
|
2885
|
+
return (t, n) => (S(), l("div", pi, [u("label", {
|
|
2728
2886
|
for: e.name,
|
|
2729
2887
|
class: "col-md-3 col-form-label text-md-end"
|
|
2730
|
-
}, D(e.label), 9,
|
|
2888
|
+
}, 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
2889
|
id: e.name,
|
|
2732
2890
|
"model-value": e.modelValue,
|
|
2733
2891
|
class: ["datepicker-input", { "is-invalid": e.error }],
|
|
@@ -2754,12 +2912,12 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2754
2912
|
"time-config",
|
|
2755
2913
|
"formats",
|
|
2756
2914
|
"locale"
|
|
2757
|
-
])]), e.error ? (S(), l("div",
|
|
2915
|
+
])]), e.error ? (S(), l("div", vi, D(e.error), 1)) : c("", !0)])]));
|
|
2758
2916
|
}
|
|
2759
|
-
}, [["__scopeId", "data-v-2e6d6ada"]]),
|
|
2917
|
+
}, [["__scopeId", "data-v-2e6d6ada"]]), bi = { class: "mb-3 row align-items-center" }, xi = ["for"], Si = { class: "col-md-9 col-xl-8" }, Ci = {
|
|
2760
2918
|
key: 0,
|
|
2761
2919
|
class: "invalid-feedback d-block form-text"
|
|
2762
|
-
},
|
|
2920
|
+
}, wi = {
|
|
2763
2921
|
__name: "FormWysiwyg",
|
|
2764
2922
|
props: {
|
|
2765
2923
|
modelValue: {
|
|
@@ -2789,10 +2947,10 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2789
2947
|
},
|
|
2790
2948
|
emits: ["update:modelValue"],
|
|
2791
2949
|
setup(e) {
|
|
2792
|
-
return (t, n) => (S(), l("div",
|
|
2950
|
+
return (t, n) => (S(), l("div", bi, [u("label", {
|
|
2793
2951
|
for: e.name,
|
|
2794
2952
|
class: "col-md-3 col-form-label text-md-end"
|
|
2795
|
-
}, D(e.label), 9,
|
|
2953
|
+
}, D(e.label), 9, xi), u("div", Si, [f(Zt, g({
|
|
2796
2954
|
id: e.name,
|
|
2797
2955
|
"model-value": e.modelValue,
|
|
2798
2956
|
name: e.name,
|
|
@@ -2802,12 +2960,12 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2802
2960
|
"model-value",
|
|
2803
2961
|
"name",
|
|
2804
2962
|
"upload-url"
|
|
2805
|
-
]), e.error ? (S(), l("div",
|
|
2963
|
+
]), e.error ? (S(), l("div", Ci, D(e.error), 1)) : c("", !0)])]));
|
|
2806
2964
|
}
|
|
2807
|
-
},
|
|
2965
|
+
}, Ti = { class: "mb-3 row align-items-center" }, Ei = ["for"], Di = { class: "col-md-9 col-xl-8" }, Oi = {
|
|
2808
2966
|
key: 0,
|
|
2809
2967
|
class: "invalid-feedback d-block form-text"
|
|
2810
|
-
},
|
|
2968
|
+
}, ki = {
|
|
2811
2969
|
__name: "FormMultiSelect",
|
|
2812
2970
|
props: {
|
|
2813
2971
|
modelValue: {
|
|
@@ -2845,10 +3003,10 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2845
3003
|
},
|
|
2846
3004
|
emits: ["update:modelValue"],
|
|
2847
3005
|
setup(e) {
|
|
2848
|
-
return (t, n) => (S(), l("div",
|
|
3006
|
+
return (t, n) => (S(), l("div", Ti, [u("label", {
|
|
2849
3007
|
for: e.name,
|
|
2850
3008
|
class: "col-md-3 col-form-label text-md-end"
|
|
2851
|
-
}, D(e.label), 9,
|
|
3009
|
+
}, D(e.label), 9, Ei), u("div", Di, [f(k(U), {
|
|
2852
3010
|
"model-value": e.modelValue,
|
|
2853
3011
|
class: _({ "is-invalid": e.error }),
|
|
2854
3012
|
placeholder: e.placeholder,
|
|
@@ -2865,12 +3023,12 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2865
3023
|
"options",
|
|
2866
3024
|
"label",
|
|
2867
3025
|
"track-by"
|
|
2868
|
-
]), e.error ? (S(), l("div",
|
|
3026
|
+
]), e.error ? (S(), l("div", Oi, D(e.error), 1)) : c("", !0)])]));
|
|
2869
3027
|
}
|
|
2870
|
-
},
|
|
3028
|
+
}, Ai = { class: "mb-3 row align-items-center" }, ji = ["for"], Mi = { class: "col-md-9 col-xl-8" }, Ni = {
|
|
2871
3029
|
key: 0,
|
|
2872
3030
|
class: "invalid-feedback d-block form-text"
|
|
2873
|
-
},
|
|
3031
|
+
}, Pi = {
|
|
2874
3032
|
__name: "FormTagInput",
|
|
2875
3033
|
props: {
|
|
2876
3034
|
modelValue: {
|
|
@@ -2900,10 +3058,10 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2900
3058
|
},
|
|
2901
3059
|
emits: ["update:modelValue"],
|
|
2902
3060
|
setup(e) {
|
|
2903
|
-
return (t, n) => (S(), l("div",
|
|
3061
|
+
return (t, n) => (S(), l("div", Ai, [u("label", {
|
|
2904
3062
|
for: e.name,
|
|
2905
3063
|
class: "col-md-3 col-form-label text-md-end"
|
|
2906
|
-
}, D(e.label), 9,
|
|
3064
|
+
}, D(e.label), 9, ji), u("div", Mi, [f(k(U), {
|
|
2907
3065
|
"model-value": e.modelValue,
|
|
2908
3066
|
class: _({ "is-invalid": e.error }),
|
|
2909
3067
|
placeholder: e.placeholder,
|
|
@@ -2921,18 +3079,18 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2921
3079
|
"placeholder",
|
|
2922
3080
|
"options",
|
|
2923
3081
|
"tag-placeholder"
|
|
2924
|
-
]), e.error ? (S(), l("div",
|
|
3082
|
+
]), e.error ? (S(), l("div", Ni, D(e.error), 1)) : c("", !0)])]));
|
|
2925
3083
|
}
|
|
2926
|
-
},
|
|
3084
|
+
}, Fi = { class: "mb-3 row align-items-center" }, Ii = ["for"], Li = { class: "col-md-9 col-xl-8" }, Ri = [
|
|
2927
3085
|
"id",
|
|
2928
3086
|
"value",
|
|
2929
3087
|
"name",
|
|
2930
3088
|
"placeholder",
|
|
2931
3089
|
"onInput"
|
|
2932
|
-
],
|
|
3090
|
+
], zi = {
|
|
2933
3091
|
key: 0,
|
|
2934
3092
|
class: "invalid-feedback d-block form-text"
|
|
2935
|
-
},
|
|
3093
|
+
}, Bi = {
|
|
2936
3094
|
__name: "FormLocalizedInput",
|
|
2937
3095
|
props: {
|
|
2938
3096
|
modelValue: {
|
|
@@ -2973,10 +3131,10 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2973
3131
|
[e]: t
|
|
2974
3132
|
});
|
|
2975
3133
|
}
|
|
2976
|
-
return (t, n) => (S(), l("div",
|
|
3134
|
+
return (t, n) => (S(), l("div", Fi, [u("label", {
|
|
2977
3135
|
for: e.name + "_" + e.locales[0],
|
|
2978
3136
|
class: "col-md-3 col-form-label text-md-end"
|
|
2979
|
-
}, D(e.label), 9,
|
|
3137
|
+
}, 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
3138
|
key: t,
|
|
2981
3139
|
class: _({ "flex-fill": e.isFormLocalized })
|
|
2982
3140
|
}, [u("input", {
|
|
@@ -2987,12 +3145,12 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
2987
3145
|
name: e.name + "_" + t,
|
|
2988
3146
|
placeholder: e.isFormLocalized ? t.toUpperCase() : e.label,
|
|
2989
3147
|
onInput: (e) => a(t, e.target.value)
|
|
2990
|
-
}, null, 42,
|
|
3148
|
+
}, 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
3149
|
}
|
|
2992
|
-
},
|
|
3150
|
+
}, Vi = { class: "mb-3 row align-items-center" }, Hi = ["for"], Ui = { class: "col-md-9 col-xl-8" }, Wi = {
|
|
2993
3151
|
key: 0,
|
|
2994
3152
|
class: "invalid-feedback d-block form-text"
|
|
2995
|
-
},
|
|
3153
|
+
}, Gi = /*#__PURE__*/ $({
|
|
2996
3154
|
__name: "FormLocalizedWysiwyg",
|
|
2997
3155
|
props: {
|
|
2998
3156
|
modelValue: {
|
|
@@ -3041,13 +3199,13 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
3041
3199
|
[e]: t
|
|
3042
3200
|
});
|
|
3043
3201
|
}
|
|
3044
|
-
return (t, n) => (S(), l("div",
|
|
3202
|
+
return (t, n) => (S(), l("div", Vi, [u("label", {
|
|
3045
3203
|
for: e.name + "_" + e.locales[0],
|
|
3046
3204
|
class: "col-md-3 col-form-label text-md-end"
|
|
3047
|
-
}, D(e.label), 9,
|
|
3205
|
+
}, 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
3206
|
key: t,
|
|
3049
3207
|
class: _({ "flex-fill localized-editor": e.isFormLocalized })
|
|
3050
|
-
}, [f(
|
|
3208
|
+
}, [f(Zt, g({
|
|
3051
3209
|
id: e.name + "_" + t,
|
|
3052
3210
|
"model-value": e.modelValue[t],
|
|
3053
3211
|
name: e.name + "_" + t,
|
|
@@ -3058,12 +3216,12 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
3058
3216
|
"name",
|
|
3059
3217
|
"upload-url",
|
|
3060
3218
|
"onUpdate:modelValue"
|
|
3061
|
-
]), e.errors[e.name + "_" + t] ? (S(), l("div",
|
|
3219
|
+
]), 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
3220
|
}
|
|
3063
|
-
}, [["__scopeId", "data-v-608701dd"]]),
|
|
3221
|
+
}, [["__scopeId", "data-v-608701dd"]]), Ki = { class: "mb-3 row align-items-center" }, qi = ["for"], Ji = { class: "col-md-9 col-xl-8" }, Yi = {
|
|
3064
3222
|
key: 0,
|
|
3065
3223
|
class: "invalid-feedback d-block form-text"
|
|
3066
|
-
},
|
|
3224
|
+
}, Xi = {
|
|
3067
3225
|
__name: "FormWysiwygSimple",
|
|
3068
3226
|
props: {
|
|
3069
3227
|
modelValue: {
|
|
@@ -3093,10 +3251,10 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
3093
3251
|
},
|
|
3094
3252
|
emits: ["update:modelValue"],
|
|
3095
3253
|
setup(e) {
|
|
3096
|
-
return (t, n) => (S(), l("div",
|
|
3254
|
+
return (t, n) => (S(), l("div", Ki, [u("label", {
|
|
3097
3255
|
for: e.name,
|
|
3098
3256
|
class: "col-md-3 col-form-label text-md-end"
|
|
3099
|
-
}, D(e.label), 9,
|
|
3257
|
+
}, D(e.label), 9, qi), u("div", Ji, [f(qt, g({
|
|
3100
3258
|
id: e.name,
|
|
3101
3259
|
"model-value": e.modelValue,
|
|
3102
3260
|
name: e.name,
|
|
@@ -3106,12 +3264,12 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
3106
3264
|
"model-value",
|
|
3107
3265
|
"name",
|
|
3108
3266
|
"upload-url"
|
|
3109
|
-
]), e.error ? (S(), l("div",
|
|
3267
|
+
]), e.error ? (S(), l("div", Yi, D(e.error), 1)) : c("", !0)])]));
|
|
3110
3268
|
}
|
|
3111
|
-
},
|
|
3269
|
+
}, Zi = { class: "mb-3 row align-items-center" }, Qi = ["for"], $i = { class: "col-md-9 col-xl-8" }, ea = {
|
|
3112
3270
|
key: 0,
|
|
3113
3271
|
class: "invalid-feedback d-block form-text"
|
|
3114
|
-
},
|
|
3272
|
+
}, ta = /*#__PURE__*/ $({
|
|
3115
3273
|
__name: "FormLocalizedWysiwygSimple",
|
|
3116
3274
|
props: {
|
|
3117
3275
|
modelValue: {
|
|
@@ -3160,13 +3318,13 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
3160
3318
|
[e]: t
|
|
3161
3319
|
});
|
|
3162
3320
|
}
|
|
3163
|
-
return (t, n) => (S(), l("div",
|
|
3321
|
+
return (t, n) => (S(), l("div", Zi, [u("label", {
|
|
3164
3322
|
for: e.name + "_" + e.locales[0],
|
|
3165
3323
|
class: "col-md-3 col-form-label text-md-end"
|
|
3166
|
-
}, D(e.label), 9,
|
|
3324
|
+
}, 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
3325
|
key: t,
|
|
3168
3326
|
class: _({ "flex-fill localized-editor": e.isFormLocalized })
|
|
3169
|
-
}, [f(
|
|
3327
|
+
}, [f(qt, g({
|
|
3170
3328
|
id: e.name + "_" + t,
|
|
3171
3329
|
"model-value": e.modelValue[t],
|
|
3172
3330
|
name: e.name + "_" + t,
|
|
@@ -3177,12 +3335,12 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
3177
3335
|
"name",
|
|
3178
3336
|
"upload-url",
|
|
3179
3337
|
"onUpdate:modelValue"
|
|
3180
|
-
]), e.errors[e.name + "_" + t] ? (S(), l("div",
|
|
3338
|
+
]), 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
3339
|
}
|
|
3182
|
-
}, [["__scopeId", "data-v-bf19587d"]]),
|
|
3340
|
+
}, [["__scopeId", "data-v-bf19587d"]]), na = { class: "mb-3 row align-items-center" }, ra = ["for"], ia = { class: "col-md-9 col-xl-8" }, aa = {
|
|
3183
3341
|
key: 0,
|
|
3184
3342
|
class: "invalid-feedback d-block form-text"
|
|
3185
|
-
},
|
|
3343
|
+
}, oa = {
|
|
3186
3344
|
__name: "FormSelect",
|
|
3187
3345
|
props: {
|
|
3188
3346
|
modelValue: {
|
|
@@ -3225,10 +3383,10 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
3225
3383
|
},
|
|
3226
3384
|
emits: ["update:modelValue"],
|
|
3227
3385
|
setup(e) {
|
|
3228
|
-
return (t, n) => (S(), l("div",
|
|
3386
|
+
return (t, n) => (S(), l("div", na, [u("label", {
|
|
3229
3387
|
for: e.name,
|
|
3230
3388
|
class: "col-md-3 col-form-label text-md-end"
|
|
3231
|
-
}, D(e.label), 9,
|
|
3389
|
+
}, D(e.label), 9, ra), u("div", ia, [f(k(U), {
|
|
3232
3390
|
"model-value": e.modelValue,
|
|
3233
3391
|
class: _({ "is-invalid": e.error }),
|
|
3234
3392
|
placeholder: e.placeholder,
|
|
@@ -3244,21 +3402,21 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
3244
3402
|
"options",
|
|
3245
3403
|
"label",
|
|
3246
3404
|
"track-by"
|
|
3247
|
-
]), e.error ? (S(), l("div",
|
|
3405
|
+
]), e.error ? (S(), l("div", aa, D(e.error), 1)) : c("", !0)])]));
|
|
3248
3406
|
}
|
|
3249
|
-
},
|
|
3407
|
+
}, sa = { class: "mb-3 row align-items-center" }, ca = {
|
|
3250
3408
|
for: "password",
|
|
3251
3409
|
class: "col-md-3 col-form-label text-md-end"
|
|
3252
|
-
},
|
|
3410
|
+
}, la = { class: "col-md-9 col-xl-8" }, ua = ["value", "placeholder"], da = {
|
|
3253
3411
|
key: 0,
|
|
3254
3412
|
class: "invalid-feedback form-text"
|
|
3255
|
-
},
|
|
3413
|
+
}, fa = { class: "mb-3 row align-items-center" }, pa = {
|
|
3256
3414
|
for: "password_confirmation",
|
|
3257
3415
|
class: "col-md-3 col-form-label text-md-end"
|
|
3258
|
-
},
|
|
3416
|
+
}, ma = { class: "col-md-9 col-xl-8" }, ha = ["value", "placeholder"], ga = {
|
|
3259
3417
|
key: 0,
|
|
3260
3418
|
class: "invalid-feedback form-text"
|
|
3261
|
-
},
|
|
3419
|
+
}, _a = {
|
|
3262
3420
|
__name: "FormPasswordConfirm",
|
|
3263
3421
|
props: {
|
|
3264
3422
|
password: {
|
|
@@ -3284,7 +3442,7 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
3284
3442
|
},
|
|
3285
3443
|
emits: ["update:password", "update:passwordConfirmation"],
|
|
3286
3444
|
setup(e) {
|
|
3287
|
-
return (t, n) => (S(), l(i, null, [u("div",
|
|
3445
|
+
return (t, n) => (S(), l(i, null, [u("div", sa, [u("label", ca, D(e.translations.password), 1), u("div", la, [u("input", {
|
|
3288
3446
|
id: "password",
|
|
3289
3447
|
type: "password",
|
|
3290
3448
|
value: e.password,
|
|
@@ -3292,7 +3450,7 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
3292
3450
|
name: "password",
|
|
3293
3451
|
placeholder: e.translations.password,
|
|
3294
3452
|
onInput: n[0] ||= (e) => t.$emit("update:password", e.target.value)
|
|
3295
|
-
}, null, 42,
|
|
3453
|
+
}, 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
3454
|
id: "password_confirmation",
|
|
3297
3455
|
type: "password",
|
|
3298
3456
|
value: e.passwordConfirmation,
|
|
@@ -3300,9 +3458,9 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
3300
3458
|
name: "password_confirmation",
|
|
3301
3459
|
placeholder: e.translations.password,
|
|
3302
3460
|
onInput: n[1] ||= (e) => t.$emit("update:passwordConfirmation", e.target.value)
|
|
3303
|
-
}, null, 42,
|
|
3461
|
+
}, null, 42, ha), e.confirmationError ? (S(), l("div", ga, D(e.confirmationError), 1)) : c("", !0)])])], 64));
|
|
3304
3462
|
}
|
|
3305
|
-
},
|
|
3463
|
+
}, va = ["disabled"], ya = {
|
|
3306
3464
|
__name: "FormSubmit",
|
|
3307
3465
|
props: {
|
|
3308
3466
|
submitting: {
|
|
@@ -3319,24 +3477,24 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
3319
3477
|
type: "submit",
|
|
3320
3478
|
class: "btn btn-primary submit-btn",
|
|
3321
3479
|
disabled: e.submitting
|
|
3322
|
-
}, [u("i", { class: _(["fa", e.submitting ? "fa-spinner" : "fa-download"]) }, null, 2), d(" " + D(e.label), 1)], 8,
|
|
3480
|
+
}, [u("i", { class: _(["fa", e.submitting ? "fa-spinner" : "fa-download"]) }, null, 2), d(" " + D(e.label), 1)], 8, va));
|
|
3323
3481
|
}
|
|
3324
|
-
},
|
|
3482
|
+
}, ba = {
|
|
3325
3483
|
key: 0,
|
|
3326
3484
|
class: "row mb-2 localization-bar"
|
|
3327
|
-
},
|
|
3485
|
+
}, xa = { key: 0 }, Sa = { key: 0 }, Ca = {
|
|
3328
3486
|
key: 1,
|
|
3329
3487
|
class: "localization-error"
|
|
3330
|
-
},
|
|
3488
|
+
}, wa = {
|
|
3331
3489
|
key: 2,
|
|
3332
3490
|
class: "d-flex align-items-center gap-2"
|
|
3333
|
-
},
|
|
3491
|
+
}, Ta = { class: "text-nowrap" }, Ea = {
|
|
3334
3492
|
key: 0,
|
|
3335
3493
|
class: "localization-error"
|
|
3336
|
-
},
|
|
3494
|
+
}, Da = {
|
|
3337
3495
|
key: 0,
|
|
3338
3496
|
class: "localization-error"
|
|
3339
|
-
},
|
|
3497
|
+
}, Oa = /*#__PURE__*/ $({
|
|
3340
3498
|
__name: "LocalizationBar",
|
|
3341
3499
|
props: {
|
|
3342
3500
|
translations: {
|
|
@@ -3379,19 +3537,19 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
3379
3537
|
],
|
|
3380
3538
|
setup(e) {
|
|
3381
3539
|
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",
|
|
3540
|
+
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 }]) }, [
|
|
3541
|
+
e.isFormLocalized ? c("", !0) : (S(), l("small", xa, [
|
|
3384
3542
|
d(D(n.value), 1),
|
|
3385
|
-
e.otherLocales.length > 1 ? (S(), l("span",
|
|
3543
|
+
e.otherLocales.length > 1 ? (S(), l("span", Sa, D(r.value), 1)) : c("", !0),
|
|
3386
3544
|
a[4] ||= d(" | ", -1),
|
|
3387
3545
|
u("a", {
|
|
3388
3546
|
href: "#",
|
|
3389
3547
|
onClick: a[0] ||= R((e) => t.$emit("show-localization"), ["prevent"])
|
|
3390
3548
|
}, D(e.translations.manage_translations), 1)
|
|
3391
3549
|
])),
|
|
3392
|
-
!e.isFormLocalized && e.showLocalizedValidationError ? (S(), l("i",
|
|
3393
|
-
e.isFormLocalized ? (S(), l("div",
|
|
3394
|
-
u("small",
|
|
3550
|
+
!e.isFormLocalized && e.showLocalizedValidationError ? (S(), l("i", Ca)) : c("", !0),
|
|
3551
|
+
e.isFormLocalized ? (S(), l("div", wa, [
|
|
3552
|
+
u("small", Ta, D(e.translations.choose_translation_to_edit), 1),
|
|
3395
3553
|
f(k(U), {
|
|
3396
3554
|
"model-value": e.currentLocale,
|
|
3397
3555
|
options: i.value,
|
|
@@ -3405,7 +3563,7 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
3405
3563
|
"options",
|
|
3406
3564
|
"custom-label"
|
|
3407
3565
|
]),
|
|
3408
|
-
e.showLocalizedValidationError ? (S(), l("i",
|
|
3566
|
+
e.showLocalizedValidationError ? (S(), l("i", Ea)) : c("", !0),
|
|
3409
3567
|
u("small", null, [u("a", {
|
|
3410
3568
|
href: "#",
|
|
3411
3569
|
onClick: a[2] ||= R((e) => t.$emit("hide-localization"), ["prevent"])
|
|
@@ -3432,25 +3590,25 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
3432
3590
|
"options",
|
|
3433
3591
|
"custom-label"
|
|
3434
3592
|
]),
|
|
3435
|
-
e.showLocalizedValidationError ? (S(), l("i",
|
|
3593
|
+
e.showLocalizedValidationError ? (S(), l("i", Da)) : c("", !0)
|
|
3436
3594
|
])], 2)) : c("", !0)])) : c("", !0);
|
|
3437
3595
|
}
|
|
3438
|
-
}, [["__scopeId", "data-v-1c9f060d"]]),
|
|
3596
|
+
}, [["__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
3597
|
key: 0,
|
|
3440
3598
|
class: "alert alert-success"
|
|
3441
|
-
},
|
|
3599
|
+
}, La = {
|
|
3442
3600
|
key: 1,
|
|
3443
3601
|
class: "alert alert-danger"
|
|
3444
|
-
},
|
|
3602
|
+
}, Ra = { class: "mb-3" }, za = { for: "email" }, Ba = { class: "input-group input-group--custom" }, Va = ["placeholder"], Ha = {
|
|
3445
3603
|
key: 0,
|
|
3446
3604
|
class: "invalid-feedback d-block form-text"
|
|
3447
|
-
},
|
|
3605
|
+
}, Ua = { class: "mb-3" }, Wa = { for: "password" }, Ga = { class: "input-group input-group--custom" }, Ka = ["placeholder"], qa = {
|
|
3448
3606
|
key: 0,
|
|
3449
3607
|
class: "invalid-feedback d-block form-text"
|
|
3450
|
-
},
|
|
3608
|
+
}, Ja = { class: "mb-3" }, Ya = ["disabled"], Xa = {
|
|
3451
3609
|
key: 0,
|
|
3452
3610
|
class: "fa fa-spinner fa-spin"
|
|
3453
|
-
},
|
|
3611
|
+
}, Za = { class: "mb-3 text-center" }, Qa = ["href"], $a = /*#__PURE__*/ $({
|
|
3454
3612
|
__name: "LoginForm",
|
|
3455
3613
|
props: {
|
|
3456
3614
|
action: {
|
|
@@ -3479,7 +3637,7 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
3479
3637
|
}
|
|
3480
3638
|
},
|
|
3481
3639
|
setup(e) {
|
|
3482
|
-
let t = e, { form: n, errors: r, submitting: a, onSubmit: o } =
|
|
3640
|
+
let t = e, { form: n, errors: r, submitting: a, onSubmit: o } = Y(t, {
|
|
3483
3641
|
formDefaults: {
|
|
3484
3642
|
email: "",
|
|
3485
3643
|
password: ""
|
|
@@ -3492,40 +3650,40 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
3492
3650
|
window.location.replace(t.redirectUrl);
|
|
3493
3651
|
}
|
|
3494
3652
|
});
|
|
3495
|
-
return (t, s) => (S(), l("div",
|
|
3653
|
+
return (t, s) => (S(), l("div", ka, [u("div", Aa, [u("form", {
|
|
3496
3654
|
role: "form",
|
|
3497
3655
|
method: "POST",
|
|
3498
3656
|
action: e.action,
|
|
3499
3657
|
novalidate: "",
|
|
3500
3658
|
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",
|
|
3659
|
+
}, [u("div", Ma, [u("h1", Na, D(e.translations.title), 1), u("p", Pa, D(e.translations.signInText), 1)]), u("div", Fa, [
|
|
3660
|
+
e.statusMessage ? (S(), l("div", Ia, D(e.statusMessage), 1)) : c("", !0),
|
|
3661
|
+
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),
|
|
3662
|
+
u("div", Ra, [
|
|
3663
|
+
u("label", za, D(e.translations.email), 1),
|
|
3664
|
+
u("div", Ba, [s[3] ||= u("span", { class: "input-group-text" }, [u("i", { class: "fa fa-envelope" })], -1), I(u("input", {
|
|
3507
3665
|
id: "email",
|
|
3508
3666
|
"onUpdate:modelValue": s[0] ||= (e) => k(n).email = e,
|
|
3509
3667
|
type: "text",
|
|
3510
3668
|
class: _(["form-control", { "is-invalid": k(r).email }]),
|
|
3511
3669
|
name: "email",
|
|
3512
3670
|
placeholder: e.translations.email
|
|
3513
|
-
}, null, 10,
|
|
3514
|
-
k(r).email ? (S(), l("div",
|
|
3671
|
+
}, null, 10, Va), [[M, k(n).email]])]),
|
|
3672
|
+
k(r).email ? (S(), l("div", Ha, D(k(r).email), 1)) : c("", !0)
|
|
3515
3673
|
]),
|
|
3516
|
-
u("div",
|
|
3517
|
-
u("label",
|
|
3518
|
-
u("div",
|
|
3674
|
+
u("div", Ua, [
|
|
3675
|
+
u("label", Wa, D(e.translations.password), 1),
|
|
3676
|
+
u("div", Ga, [s[4] ||= u("span", { class: "input-group-text" }, [u("i", { class: "fa fa-lock" })], -1), I(u("input", {
|
|
3519
3677
|
id: "password",
|
|
3520
3678
|
"onUpdate:modelValue": s[1] ||= (e) => k(n).password = e,
|
|
3521
3679
|
type: "password",
|
|
3522
3680
|
class: _(["form-control", { "is-invalid": k(r).password }]),
|
|
3523
3681
|
name: "password",
|
|
3524
3682
|
placeholder: e.translations.password
|
|
3525
|
-
}, null, 10,
|
|
3526
|
-
k(r).password ? (S(), l("div",
|
|
3683
|
+
}, null, 10, Ka), [[M, k(n).password]])]),
|
|
3684
|
+
k(r).password ? (S(), l("div", qa, D(k(r).password), 1)) : c("", !0)
|
|
3527
3685
|
]),
|
|
3528
|
-
u("div",
|
|
3686
|
+
u("div", Ja, [s[5] ||= u("input", {
|
|
3529
3687
|
type: "hidden",
|
|
3530
3688
|
name: "remember",
|
|
3531
3689
|
value: "1"
|
|
@@ -3533,32 +3691,32 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
3533
3691
|
type: "submit",
|
|
3534
3692
|
class: "btn btn-primary submit-btn",
|
|
3535
3693
|
disabled: k(a)
|
|
3536
|
-
}, [k(a) ? (S(), l("i",
|
|
3537
|
-
u("div",
|
|
3694
|
+
}, [k(a) ? (S(), l("i", Xa)) : c("", !0), d(" " + D(e.translations.button), 1)], 8, Ya)]),
|
|
3695
|
+
u("div", Za, [u("a", {
|
|
3538
3696
|
href: e.passwordResetUrl,
|
|
3539
3697
|
class: "auth-ghost-link forgot-link"
|
|
3540
|
-
}, D(e.translations.forgotPassword), 9,
|
|
3541
|
-
])], 40,
|
|
3698
|
+
}, D(e.translations.forgotPassword), 9, Qa)])
|
|
3699
|
+
])], 40, ja)])]));
|
|
3542
3700
|
}
|
|
3543
|
-
}, [["__scopeId", "data-v-8d4257dc"]]),
|
|
3701
|
+
}, [["__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
3702
|
key: 0,
|
|
3545
3703
|
class: "alert alert-success"
|
|
3546
|
-
},
|
|
3704
|
+
}, co = {
|
|
3547
3705
|
key: 1,
|
|
3548
3706
|
class: "alert alert-success"
|
|
3549
|
-
},
|
|
3707
|
+
}, lo = {
|
|
3550
3708
|
key: 2,
|
|
3551
3709
|
class: "alert alert-danger"
|
|
3552
|
-
},
|
|
3710
|
+
}, uo = { class: "mb-3" }, fo = { for: "email" }, po = { class: "input-group input-group--custom" }, mo = ["placeholder"], ho = {
|
|
3553
3711
|
key: 0,
|
|
3554
3712
|
class: "invalid-feedback d-block form-text"
|
|
3555
|
-
},
|
|
3713
|
+
}, go = { class: "mb-3" }, _o = ["disabled"], vo = {
|
|
3556
3714
|
key: 0,
|
|
3557
3715
|
class: "fa fa-spinner fa-spin"
|
|
3558
|
-
},
|
|
3716
|
+
}, yo = {
|
|
3559
3717
|
key: 3,
|
|
3560
3718
|
class: "text-center"
|
|
3561
|
-
},
|
|
3719
|
+
}, bo = ["href"], xo = {
|
|
3562
3720
|
__name: "ForgotPasswordForm",
|
|
3563
3721
|
props: {
|
|
3564
3722
|
action: {
|
|
@@ -3583,65 +3741,65 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
3583
3741
|
}
|
|
3584
3742
|
},
|
|
3585
3743
|
setup(e) {
|
|
3586
|
-
let { form: t, errors: n, submitting: r, successMessage: a, onSubmit: o } =
|
|
3744
|
+
let { form: t, errors: n, submitting: r, successMessage: a, onSubmit: o } = Y(e, {
|
|
3587
3745
|
formDefaults: { email: "" },
|
|
3588
3746
|
validationSchema: { email: "required|email" }
|
|
3589
3747
|
});
|
|
3590
|
-
return (s, f) => (S(), l("div",
|
|
3748
|
+
return (s, f) => (S(), l("div", eo, [u("div", to, [u("form", {
|
|
3591
3749
|
role: "form",
|
|
3592
3750
|
method: "POST",
|
|
3593
3751
|
action: e.action,
|
|
3594
3752
|
novalidate: "",
|
|
3595
3753
|
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",
|
|
3754
|
+
}, [u("div", ro, [u("h1", io, D(e.translations.title), 1), u("p", ao, D(e.translations.note), 1)]), u("div", oo, [
|
|
3755
|
+
k(a) ? (S(), l("div", so, D(k(a)), 1)) : c("", !0),
|
|
3756
|
+
e.statusMessage && !k(a) ? (S(), l("div", co, D(e.statusMessage), 1)) : c("", !0),
|
|
3757
|
+
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),
|
|
3758
|
+
u("div", uo, [
|
|
3759
|
+
u("label", fo, D(e.translations.email), 1),
|
|
3760
|
+
u("div", po, [f[2] ||= u("span", { class: "input-group-text" }, [u("i", { class: "fa fa-envelope" })], -1), I(u("input", {
|
|
3603
3761
|
id: "email",
|
|
3604
3762
|
"onUpdate:modelValue": f[0] ||= (e) => k(t).email = e,
|
|
3605
3763
|
type: "text",
|
|
3606
3764
|
class: _(["form-control", { "is-invalid": k(n).email }]),
|
|
3607
3765
|
name: "email",
|
|
3608
3766
|
placeholder: e.translations.email
|
|
3609
|
-
}, null, 10,
|
|
3610
|
-
k(n).email ? (S(), l("div",
|
|
3767
|
+
}, null, 10, mo), [[M, k(t).email]])]),
|
|
3768
|
+
k(n).email ? (S(), l("div", ho, D(k(n).email), 1)) : c("", !0)
|
|
3611
3769
|
]),
|
|
3612
|
-
u("div",
|
|
3770
|
+
u("div", go, [u("button", {
|
|
3613
3771
|
type: "submit",
|
|
3614
3772
|
class: "btn btn-primary submit-btn",
|
|
3615
3773
|
disabled: k(r)
|
|
3616
|
-
}, [k(r) ? (S(), l("i",
|
|
3617
|
-
e.loginUrl ? (S(), l("div",
|
|
3774
|
+
}, [k(r) ? (S(), l("i", vo)) : c("", !0), d(" " + D(e.translations.button), 1)], 8, _o)]),
|
|
3775
|
+
e.loginUrl ? (S(), l("div", yo, [u("a", {
|
|
3618
3776
|
href: e.loginUrl,
|
|
3619
3777
|
class: "auth-ghost-link"
|
|
3620
|
-
}, D(e.translations.backToLogin), 9,
|
|
3621
|
-
])], 40,
|
|
3778
|
+
}, D(e.translations.backToLogin), 9, bo)])) : c("", !0)
|
|
3779
|
+
])], 40, no)])]));
|
|
3622
3780
|
}
|
|
3623
|
-
},
|
|
3781
|
+
}, 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
3782
|
key: 0,
|
|
3625
3783
|
class: "alert alert-success"
|
|
3626
|
-
},
|
|
3784
|
+
}, Ao = {
|
|
3627
3785
|
key: 1,
|
|
3628
3786
|
class: "alert alert-danger"
|
|
3629
|
-
},
|
|
3787
|
+
}, jo = { class: "mb-3" }, Mo = { for: "email" }, No = { class: "input-group input-group--custom" }, Po = ["placeholder"], Fo = {
|
|
3630
3788
|
key: 0,
|
|
3631
3789
|
class: "invalid-feedback d-block form-text"
|
|
3632
|
-
},
|
|
3790
|
+
}, Io = { class: "mb-3" }, Lo = { for: "password" }, Ro = { class: "input-group input-group--custom" }, zo = ["placeholder"], Bo = {
|
|
3633
3791
|
key: 0,
|
|
3634
3792
|
class: "invalid-feedback d-block form-text"
|
|
3635
|
-
},
|
|
3793
|
+
}, Vo = { class: "mb-3" }, Ho = { for: "password_confirmation" }, Uo = { class: "input-group input-group--custom" }, Wo = ["placeholder"], Go = {
|
|
3636
3794
|
key: 0,
|
|
3637
3795
|
class: "invalid-feedback d-block form-text"
|
|
3638
|
-
},
|
|
3796
|
+
}, Ko = { class: "mb-3" }, qo = ["disabled"], Jo = {
|
|
3639
3797
|
key: 0,
|
|
3640
3798
|
class: "fa fa-spinner fa-spin"
|
|
3641
|
-
},
|
|
3799
|
+
}, Yo = {
|
|
3642
3800
|
key: 2,
|
|
3643
3801
|
class: "text-center"
|
|
3644
|
-
},
|
|
3802
|
+
}, Xo = ["href"], Zo = {
|
|
3645
3803
|
__name: "ResetPasswordForm",
|
|
3646
3804
|
props: {
|
|
3647
3805
|
action: {
|
|
@@ -3678,7 +3836,7 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
3678
3836
|
}
|
|
3679
3837
|
},
|
|
3680
3838
|
setup(e) {
|
|
3681
|
-
let t = e, { form: n, errors: r, submitting: a, onSubmit: o } =
|
|
3839
|
+
let t = e, { form: n, errors: r, submitting: a, onSubmit: o } = Y(t, {
|
|
3682
3840
|
formDefaults: {
|
|
3683
3841
|
email: t.email,
|
|
3684
3842
|
password: "",
|
|
@@ -3694,78 +3852,78 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
3694
3852
|
window.location.replace(e.redirect || t.redirectUrl);
|
|
3695
3853
|
}
|
|
3696
3854
|
});
|
|
3697
|
-
return (t, s) => (S(), l("div",
|
|
3855
|
+
return (t, s) => (S(), l("div", So, [u("div", Co, [u("form", {
|
|
3698
3856
|
role: "form",
|
|
3699
3857
|
method: "POST",
|
|
3700
3858
|
action: e.action,
|
|
3701
3859
|
novalidate: "",
|
|
3702
3860
|
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",
|
|
3861
|
+
}, [u("div", To, [u("h1", Eo, D(e.translations.title), 1), u("p", Do, D(e.translations.note), 1)]), u("div", Oo, [
|
|
3862
|
+
e.statusMessage ? (S(), l("div", ko, D(e.statusMessage), 1)) : c("", !0),
|
|
3863
|
+
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),
|
|
3864
|
+
u("div", jo, [
|
|
3865
|
+
u("label", Mo, D(e.translations.email), 1),
|
|
3866
|
+
u("div", No, [s[4] ||= u("span", { class: "input-group-text" }, [u("i", { class: "fa fa-envelope" })], -1), I(u("input", {
|
|
3709
3867
|
id: "email",
|
|
3710
3868
|
"onUpdate:modelValue": s[0] ||= (e) => k(n).email = e,
|
|
3711
3869
|
type: "text",
|
|
3712
3870
|
class: _(["form-control", { "is-invalid": k(r).email }]),
|
|
3713
3871
|
name: "email",
|
|
3714
3872
|
placeholder: e.translations.email
|
|
3715
|
-
}, null, 10,
|
|
3716
|
-
k(r).email ? (S(), l("div",
|
|
3873
|
+
}, null, 10, Po), [[M, k(n).email]])]),
|
|
3874
|
+
k(r).email ? (S(), l("div", Fo, D(k(r).email), 1)) : c("", !0)
|
|
3717
3875
|
]),
|
|
3718
|
-
u("div",
|
|
3719
|
-
u("label",
|
|
3720
|
-
u("div",
|
|
3876
|
+
u("div", Io, [
|
|
3877
|
+
u("label", Lo, D(e.translations.password), 1),
|
|
3878
|
+
u("div", Ro, [s[5] ||= u("span", { class: "input-group-text" }, [u("i", { class: "fa fa-lock" })], -1), I(u("input", {
|
|
3721
3879
|
id: "password",
|
|
3722
3880
|
"onUpdate:modelValue": s[1] ||= (e) => k(n).password = e,
|
|
3723
3881
|
type: "password",
|
|
3724
3882
|
class: _(["form-control", { "is-invalid": k(r).password }]),
|
|
3725
3883
|
name: "password",
|
|
3726
3884
|
placeholder: e.translations.password
|
|
3727
|
-
}, null, 10,
|
|
3728
|
-
k(r).password ? (S(), l("div",
|
|
3885
|
+
}, null, 10, zo), [[M, k(n).password]])]),
|
|
3886
|
+
k(r).password ? (S(), l("div", Bo, D(k(r).password), 1)) : c("", !0)
|
|
3729
3887
|
]),
|
|
3730
|
-
u("div",
|
|
3731
|
-
u("label",
|
|
3732
|
-
u("div",
|
|
3888
|
+
u("div", Vo, [
|
|
3889
|
+
u("label", Ho, D(e.translations.passwordConfirm), 1),
|
|
3890
|
+
u("div", Uo, [s[6] ||= u("span", { class: "input-group-text" }, [u("i", { class: "fa fa-lock" })], -1), I(u("input", {
|
|
3733
3891
|
id: "password_confirmation",
|
|
3734
3892
|
"onUpdate:modelValue": s[2] ||= (e) => k(n).password_confirmation = e,
|
|
3735
3893
|
type: "password",
|
|
3736
3894
|
class: _(["form-control", { "is-invalid": k(r).password_confirmation }]),
|
|
3737
3895
|
name: "password_confirmation",
|
|
3738
3896
|
placeholder: e.translations.passwordConfirm
|
|
3739
|
-
}, null, 10,
|
|
3740
|
-
k(r).password_confirmation ? (S(), l("div",
|
|
3897
|
+
}, null, 10, Wo), [[M, k(n).password_confirmation]])]),
|
|
3898
|
+
k(r).password_confirmation ? (S(), l("div", Go, D(k(r).password_confirmation), 1)) : c("", !0)
|
|
3741
3899
|
]),
|
|
3742
|
-
u("div",
|
|
3900
|
+
u("div", Ko, [u("button", {
|
|
3743
3901
|
type: "submit",
|
|
3744
3902
|
class: "btn btn-primary submit-btn",
|
|
3745
3903
|
disabled: k(a)
|
|
3746
|
-
}, [k(a) ? (S(), l("i",
|
|
3747
|
-
e.loginUrl ? (S(), l("div",
|
|
3904
|
+
}, [k(a) ? (S(), l("i", Jo)) : c("", !0), d(" " + D(e.translations.button), 1)], 8, qo)]),
|
|
3905
|
+
e.loginUrl ? (S(), l("div", Yo, [u("a", {
|
|
3748
3906
|
href: e.loginUrl,
|
|
3749
3907
|
class: "auth-ghost-link"
|
|
3750
|
-
}, D(e.translations.backToLogin), 9,
|
|
3751
|
-
])], 40,
|
|
3908
|
+
}, D(e.translations.backToLogin), 9, Xo)])) : c("", !0)
|
|
3909
|
+
])], 40, wo)])]));
|
|
3752
3910
|
}
|
|
3753
|
-
},
|
|
3911
|
+
}, 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
3912
|
key: 0,
|
|
3755
3913
|
class: "alert alert-success"
|
|
3756
|
-
},
|
|
3914
|
+
}, os = {
|
|
3757
3915
|
key: 1,
|
|
3758
3916
|
class: "alert alert-success"
|
|
3759
|
-
},
|
|
3917
|
+
}, ss = {
|
|
3760
3918
|
key: 2,
|
|
3761
3919
|
class: "alert alert-danger"
|
|
3762
|
-
},
|
|
3920
|
+
}, cs = { class: "mb-3" }, ls = { for: "email" }, us = { class: "input-group input-group--custom" }, ds = ["placeholder"], fs = {
|
|
3763
3921
|
key: 0,
|
|
3764
3922
|
class: "invalid-feedback d-block form-text"
|
|
3765
|
-
},
|
|
3923
|
+
}, ps = { class: "mb-3" }, ms = ["disabled"], hs = {
|
|
3766
3924
|
key: 0,
|
|
3767
3925
|
class: "fa fa-spinner fa-spin"
|
|
3768
|
-
},
|
|
3926
|
+
}, gs = {
|
|
3769
3927
|
__name: "ActivationForm",
|
|
3770
3928
|
props: {
|
|
3771
3929
|
action: {
|
|
@@ -3786,43 +3944,43 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
3786
3944
|
}
|
|
3787
3945
|
},
|
|
3788
3946
|
setup(e) {
|
|
3789
|
-
let { form: t, errors: n, submitting: r, successMessage: a, onSubmit: o } =
|
|
3947
|
+
let { form: t, errors: n, submitting: r, successMessage: a, onSubmit: o } = Y(e, {
|
|
3790
3948
|
formDefaults: { email: "" },
|
|
3791
3949
|
validationSchema: { email: "required|email" }
|
|
3792
3950
|
});
|
|
3793
|
-
return (s, f) => (S(), l("div",
|
|
3951
|
+
return (s, f) => (S(), l("div", Qo, [u("div", $o, [u("form", {
|
|
3794
3952
|
role: "form",
|
|
3795
3953
|
method: "POST",
|
|
3796
3954
|
action: e.action,
|
|
3797
3955
|
novalidate: "",
|
|
3798
3956
|
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",
|
|
3957
|
+
}, [u("div", ts, [u("h1", ns, D(e.translations.title), 1), u("p", rs, D(e.translations.note), 1)]), u("div", is, [
|
|
3958
|
+
k(a) ? (S(), l("div", as, D(k(a)), 1)) : c("", !0),
|
|
3959
|
+
e.statusMessage && !k(a) ? (S(), l("div", os, D(e.statusMessage), 1)) : c("", !0),
|
|
3960
|
+
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),
|
|
3961
|
+
u("div", cs, [
|
|
3962
|
+
u("label", ls, D(e.translations.email), 1),
|
|
3963
|
+
u("div", us, [f[2] ||= u("span", { class: "input-group-text" }, [u("i", { class: "fa fa-envelope" })], -1), I(u("input", {
|
|
3806
3964
|
id: "email",
|
|
3807
3965
|
"onUpdate:modelValue": f[0] ||= (e) => k(t).email = e,
|
|
3808
3966
|
type: "text",
|
|
3809
3967
|
class: _(["form-control", { "is-invalid": k(n).email }]),
|
|
3810
3968
|
name: "email",
|
|
3811
3969
|
placeholder: e.translations.email
|
|
3812
|
-
}, null, 10,
|
|
3813
|
-
k(n).email ? (S(), l("div",
|
|
3970
|
+
}, null, 10, ds), [[M, k(t).email]])]),
|
|
3971
|
+
k(n).email ? (S(), l("div", fs, D(k(n).email), 1)) : c("", !0)
|
|
3814
3972
|
]),
|
|
3815
|
-
u("div",
|
|
3973
|
+
u("div", ps, [u("button", {
|
|
3816
3974
|
type: "submit",
|
|
3817
3975
|
class: "btn btn-primary submit-btn",
|
|
3818
3976
|
disabled: k(r)
|
|
3819
|
-
}, [k(r) ? (S(), l("i",
|
|
3820
|
-
])], 40,
|
|
3977
|
+
}, [k(r) ? (S(), l("i", hs)) : c("", !0), d(" " + D(e.translations.button), 1)], 8, ms)])
|
|
3978
|
+
])], 40, es)])]));
|
|
3821
3979
|
}
|
|
3822
|
-
},
|
|
3980
|
+
}, _s = { class: "card" }, vs = { class: "card-body" }, ys = { class: "auth-header" }, bs = { class: "auth-title" }, xs = { class: "auth-body" }, Ss = {
|
|
3823
3981
|
key: 0,
|
|
3824
3982
|
class: "alert alert-danger"
|
|
3825
|
-
},
|
|
3983
|
+
}, Cs = {
|
|
3826
3984
|
__name: "ActivationError",
|
|
3827
3985
|
props: {
|
|
3828
3986
|
translations: {
|
|
@@ -3835,15 +3993,15 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
3835
3993
|
}
|
|
3836
3994
|
},
|
|
3837
3995
|
setup(e) {
|
|
3838
|
-
return (t, n) => (S(), l("div",
|
|
3996
|
+
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
3997
|
}
|
|
3840
|
-
},
|
|
3998
|
+
}, ws = { class: "modal-dialog" }, Ts = { class: "modal-content" }, Es = { class: "modal-header" }, Ds = { class: "modal-title" }, Os = { class: "modal-body" }, ks = {
|
|
3841
3999
|
class: "text-center",
|
|
3842
4000
|
style: { "word-wrap": "break-word" }
|
|
3843
|
-
},
|
|
4001
|
+
}, As = { class: "form-label" }, js = ["onUpdate:modelValue", "placeholder"], Ms = ["onUpdate:modelValue", "placeholder"], Ns = { class: "text-center" }, Ps = {
|
|
3844
4002
|
class: "btn btn-primary w-100",
|
|
3845
4003
|
type: "submit"
|
|
3846
|
-
},
|
|
4004
|
+
}, Fs = {
|
|
3847
4005
|
__name: "TranslationEditModal",
|
|
3848
4006
|
props: {
|
|
3849
4007
|
show: {
|
|
@@ -3884,47 +4042,47 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
3884
4042
|
return (t, n) => (S(), l(i, null, [u("div", {
|
|
3885
4043
|
class: _(["modal fade", { show: e.show }]),
|
|
3886
4044
|
style: y({ display: e.show ? "block" : "none" })
|
|
3887
|
-
}, [u("div",
|
|
4045
|
+
}, [u("div", ws, [u("div", Ts, [u("div", Es, [u("h4", Ds, D(e.translations.edit), 1), u("button", {
|
|
3888
4046
|
type: "button",
|
|
3889
4047
|
class: "btn-close",
|
|
3890
4048
|
onClick: n[0] ||= (e) => t.$emit("close")
|
|
3891
|
-
})]), u("div",
|
|
4049
|
+
})]), 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
4050
|
key: t,
|
|
3893
4051
|
class: "mb-3"
|
|
3894
|
-
}, [u("label",
|
|
4052
|
+
}, [u("label", As, D(t.toUpperCase()) + " " + D(e.translations.translation), 1), !f[t] || f[t].length < 70 ? I((S(), l("input", {
|
|
3895
4053
|
key: 0,
|
|
3896
4054
|
"onUpdate:modelValue": (e) => f[t] = e,
|
|
3897
4055
|
type: "text",
|
|
3898
4056
|
class: "form-control",
|
|
3899
4057
|
placeholder: (e.translations.translation_for || "").replace(":locale", t)
|
|
3900
|
-
}, null, 8,
|
|
4058
|
+
}, null, 8, js)), [[M, f[t]]]) : I((S(), l("textarea", {
|
|
3901
4059
|
key: 1,
|
|
3902
4060
|
"onUpdate:modelValue": (e) => f[t] = e,
|
|
3903
4061
|
class: "form-control",
|
|
3904
4062
|
placeholder: (e.translations.translation_for || "").replace(":locale", t),
|
|
3905
4063
|
cols: "30",
|
|
3906
4064
|
rows: "4"
|
|
3907
|
-
}, null, 8,
|
|
4065
|
+
}, 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
4066
|
key: 0,
|
|
3909
4067
|
class: "modal-backdrop fade show",
|
|
3910
4068
|
onClick: n[1] ||= (e) => t.$emit("close")
|
|
3911
4069
|
})) : c("", !0)], 64));
|
|
3912
4070
|
}
|
|
3913
|
-
},
|
|
4071
|
+
}, 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
4072
|
for: "importLanguage",
|
|
3915
4073
|
class: "col-form-label"
|
|
3916
|
-
},
|
|
4074
|
+
}, Zs = { class: "col-md-6" }, Qs = { class: "offset-md-4" }, $s = { class: "form-check" }, ec = {
|
|
3917
4075
|
class: "form-check-label",
|
|
3918
4076
|
for: "onlyMissingTranslations"
|
|
3919
|
-
},
|
|
4077
|
+
}, 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
4078
|
"id",
|
|
3921
4079
|
"onUpdate:modelValue",
|
|
3922
4080
|
"name"
|
|
3923
|
-
],
|
|
4081
|
+
], cc = ["for"], lc = { style: { "word-break": "break-all" } }, uc = [
|
|
3924
4082
|
"id",
|
|
3925
4083
|
"onUpdate:modelValue",
|
|
3926
4084
|
"name"
|
|
3927
|
-
],
|
|
4085
|
+
], dc = ["for"], fc = { class: "text-center" }, pc = { class: "modal-footer" }, mc = {
|
|
3928
4086
|
__name: "TranslationImportModal",
|
|
3929
4087
|
props: {
|
|
3930
4088
|
show: {
|
|
@@ -3997,16 +4155,16 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
3997
4155
|
return (t, n) => (S(), l(i, null, [u("div", {
|
|
3998
4156
|
class: _(["modal fade", { show: e.show }]),
|
|
3999
4157
|
style: y({ display: e.show ? "block" : "none" })
|
|
4000
|
-
}, [u("div",
|
|
4001
|
-
u("div",
|
|
4158
|
+
}, [u("div", Is, [u("div", Ls, [
|
|
4159
|
+
u("div", Rs, [u("h4", zs, D(e.translations.import_title), 1), u("button", {
|
|
4002
4160
|
type: "button",
|
|
4003
4161
|
class: "btn-close",
|
|
4004
4162
|
onClick: B
|
|
4005
4163
|
})]),
|
|
4006
|
-
u("div",
|
|
4164
|
+
u("div", Bs, [
|
|
4007
4165
|
I(u("div", null, [
|
|
4008
4166
|
u("p", null, D(e.translations.import_notice), 1),
|
|
4009
|
-
u("div",
|
|
4167
|
+
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
4168
|
ref_key: "fileInput",
|
|
4011
4169
|
ref: p,
|
|
4012
4170
|
type: "file",
|
|
@@ -4014,7 +4172,7 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
4014
4172
|
accept: ".xlsx",
|
|
4015
4173
|
onChange: z
|
|
4016
4174
|
}, null, 544)])])]),
|
|
4017
|
-
u("div",
|
|
4175
|
+
u("div", Js, [u("div", Ys, [u("label", Xs, D(e.translations.language_to_import), 1)]), u("div", Zs, [f(k(U), {
|
|
4018
4176
|
modelValue: h.value,
|
|
4019
4177
|
"onUpdate:modelValue": n[0] ||= (e) => h.value = e,
|
|
4020
4178
|
options: d.value,
|
|
@@ -4029,47 +4187,47 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
4029
4187
|
"options",
|
|
4030
4188
|
"placeholder"
|
|
4031
4189
|
])])]),
|
|
4032
|
-
u("div",
|
|
4190
|
+
u("div", Qs, [u("div", $s, [I(u("input", {
|
|
4033
4191
|
id: "onlyMissingTranslations",
|
|
4034
4192
|
"onUpdate:modelValue": n[1] ||= (e) => v.value = e,
|
|
4035
4193
|
class: "form-check-input",
|
|
4036
4194
|
type: "checkbox"
|
|
4037
|
-
}, null, 512), [[A, v.value]]), u("label",
|
|
4195
|
+
}, null, 512), [[A, v.value]]), u("label", ec, D(e.translations.do_not_override), 1)])])
|
|
4038
4196
|
], 512), [[N, b.value === 1]]),
|
|
4039
|
-
I(u("div", null, [u("div",
|
|
4197
|
+
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
4198
|
u("th", null, D(e.translations.group), 1),
|
|
4041
4199
|
u("th", null, D(e.translations.default), 1),
|
|
4042
4200
|
u("th", null, D(e.translations.current_value), 1),
|
|
4043
4201
|
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",
|
|
4202
|
+
])]), 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, [
|
|
4203
|
+
u("td", ic, D(e.group), 1),
|
|
4204
|
+
u("td", ac, D(e.default), 1),
|
|
4205
|
+
u("td", oc, [I(u("input", {
|
|
4048
4206
|
id: "current-" + t + "0",
|
|
4049
4207
|
"onUpdate:modelValue": (e) => M.value[t].checkedCurrent = e,
|
|
4050
4208
|
type: "radio",
|
|
4051
4209
|
class: "form-check-input me-1",
|
|
4052
4210
|
value: !0,
|
|
4053
4211
|
name: "current-" + t
|
|
4054
|
-
}, null, 8,
|
|
4212
|
+
}, null, 8, sc), [[j, M.value[t].checkedCurrent]]), u("label", {
|
|
4055
4213
|
class: "form-check-label",
|
|
4056
4214
|
for: "current-" + t + "0"
|
|
4057
|
-
}, D(e.current_value), 9,
|
|
4058
|
-
u("td",
|
|
4215
|
+
}, D(e.current_value), 9, cc)]),
|
|
4216
|
+
u("td", lc, [I(u("input", {
|
|
4059
4217
|
id: "current-" + t + "1",
|
|
4060
4218
|
"onUpdate:modelValue": (e) => M.value[t].checkedCurrent = e,
|
|
4061
4219
|
type: "radio",
|
|
4062
4220
|
class: "form-check-input me-1",
|
|
4063
4221
|
value: !1,
|
|
4064
4222
|
name: "current-" + t
|
|
4065
|
-
}, null, 8,
|
|
4223
|
+
}, null, 8, uc), [[j, M.value[t].checkedCurrent]]), u("label", {
|
|
4066
4224
|
class: "form-check-label",
|
|
4067
4225
|
for: "current-" + t + "1"
|
|
4068
|
-
}, D(e[g.value.toLowerCase()]), 9,
|
|
4226
|
+
}, D(e[g.value.toLowerCase()]), 9, dc)])
|
|
4069
4227
|
])) : c("", !0)], 64))), 128))])])], 512), [[N, b.value === 2]]),
|
|
4070
|
-
I(u("div", null, [u("div",
|
|
4228
|
+
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
4229
|
]),
|
|
4072
|
-
u("div",
|
|
4230
|
+
u("div", pc, [F.value ? c("", !0) : (S(), l("button", {
|
|
4073
4231
|
key: 0,
|
|
4074
4232
|
type: "button",
|
|
4075
4233
|
class: "btn btn-primary",
|
|
@@ -4081,10 +4239,10 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
4081
4239
|
onClick: B
|
|
4082
4240
|
})) : c("", !0)], 64));
|
|
4083
4241
|
}
|
|
4084
|
-
},
|
|
4242
|
+
}, 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
4243
|
class: "btn btn-primary",
|
|
4086
4244
|
type: "submit"
|
|
4087
|
-
},
|
|
4245
|
+
}, Cc = {
|
|
4088
4246
|
__name: "TranslationExportModal",
|
|
4089
4247
|
props: {
|
|
4090
4248
|
show: {
|
|
@@ -4124,13 +4282,13 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
4124
4282
|
return (t, n) => (S(), l(i, null, [u("div", {
|
|
4125
4283
|
class: _(["modal fade", { show: e.show }]),
|
|
4126
4284
|
style: y({ display: e.show ? "block" : "none" })
|
|
4127
|
-
}, [u("div",
|
|
4285
|
+
}, [u("div", hc, [u("div", gc, [u("div", _c, [u("h4", vc, D(e.translations.export), 1), u("button", {
|
|
4128
4286
|
type: "button",
|
|
4129
4287
|
class: "btn-close",
|
|
4130
4288
|
onClick: n[0] ||= (e) => t.$emit("close")
|
|
4131
|
-
})]), u("div",
|
|
4132
|
-
u("p",
|
|
4133
|
-
f(
|
|
4289
|
+
})]), u("div", yc, [u("form", { onSubmit: R(m, ["prevent"]) }, [
|
|
4290
|
+
u("p", bc, D(e.translations.export_notice), 1),
|
|
4291
|
+
f(ki, {
|
|
4134
4292
|
modelValue: p.value,
|
|
4135
4293
|
"onUpdate:modelValue": n[1] ||= (e) => p.value = e,
|
|
4136
4294
|
name: "languagesToExport",
|
|
@@ -4145,17 +4303,17 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
4145
4303
|
"options",
|
|
4146
4304
|
"placeholder"
|
|
4147
4305
|
]),
|
|
4148
|
-
u("div",
|
|
4306
|
+
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
4307
|
], 32)])])])], 6), e.show ? (S(), l("div", {
|
|
4150
4308
|
key: 0,
|
|
4151
4309
|
class: "modal-backdrop fade show",
|
|
4152
4310
|
onClick: n[2] ||= (e) => t.$emit("close")
|
|
4153
4311
|
})) : c("", !0)], 64));
|
|
4154
4312
|
}
|
|
4155
|
-
},
|
|
4313
|
+
}, 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
4314
|
key: 0,
|
|
4157
4315
|
class: "no-items-found"
|
|
4158
|
-
},
|
|
4316
|
+
}, Ic = {
|
|
4159
4317
|
__name: "TranslationListing",
|
|
4160
4318
|
props: {
|
|
4161
4319
|
url: {
|
|
@@ -4192,7 +4350,7 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
4192
4350
|
}
|
|
4193
4351
|
},
|
|
4194
4352
|
setup(e) {
|
|
4195
|
-
let t = window.axios, n = e, r = w(null), { isColumnVisible: a } =
|
|
4353
|
+
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
4354
|
g.group = null;
|
|
4197
4355
|
function I(e) {
|
|
4198
4356
|
g.group = e ?? null, b(!0);
|
|
@@ -4208,8 +4366,8 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
4208
4366
|
z.value = !1, G();
|
|
4209
4367
|
});
|
|
4210
4368
|
}
|
|
4211
|
-
return (t, n) => (S(), l("div",
|
|
4212
|
-
f(
|
|
4369
|
+
return (t, n) => (S(), l("div", wc, [u("div", Tc, [
|
|
4370
|
+
f(Fs, {
|
|
4213
4371
|
show: j.value,
|
|
4214
4372
|
item: P.value,
|
|
4215
4373
|
locales: A.value,
|
|
@@ -4225,7 +4383,7 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
4225
4383
|
"translations",
|
|
4226
4384
|
"onSaved"
|
|
4227
4385
|
]),
|
|
4228
|
-
f(
|
|
4386
|
+
f(mc, {
|
|
4229
4387
|
show: M.value,
|
|
4230
4388
|
locales: A.value,
|
|
4231
4389
|
url: e.url,
|
|
@@ -4241,7 +4399,7 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
4241
4399
|
"translations",
|
|
4242
4400
|
"onImported"
|
|
4243
4401
|
]),
|
|
4244
|
-
f(
|
|
4402
|
+
f(Cc, {
|
|
4245
4403
|
show: N.value,
|
|
4246
4404
|
locales: A.value,
|
|
4247
4405
|
url: e.url,
|
|
@@ -4253,7 +4411,7 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
4253
4411
|
"url",
|
|
4254
4412
|
"translations"
|
|
4255
4413
|
]),
|
|
4256
|
-
u("div",
|
|
4414
|
+
u("div", Ec, [u("div", Dc, [
|
|
4257
4415
|
n[9] ||= u("i", { class: "fa fa-align-justify" }, null, -1),
|
|
4258
4416
|
d(" " + D(e.translations.listing_title) + " ", 1),
|
|
4259
4417
|
u("a", {
|
|
@@ -4279,7 +4437,7 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
4279
4437
|
ref: r,
|
|
4280
4438
|
class: "card-body"
|
|
4281
4439
|
}, [
|
|
4282
|
-
u("div",
|
|
4440
|
+
u("div", Oc, [u("div", kc, [f(Pn, {
|
|
4283
4441
|
search: k(v),
|
|
4284
4442
|
"onUpdate:search": n[5] ||= (e) => h(v) ? v.value = e : null,
|
|
4285
4443
|
"filter-fn": k(x),
|
|
@@ -4307,12 +4465,12 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
4307
4465
|
"search",
|
|
4308
4466
|
"filter-fn",
|
|
4309
4467
|
"translations"
|
|
4310
|
-
])]), u("div",
|
|
4468
|
+
])]), u("div", Ac, [f(In, {
|
|
4311
4469
|
modelValue: k(p).state.per_page,
|
|
4312
4470
|
"onUpdate:modelValue": n[6] ||= (e) => k(p).state.per_page = e
|
|
4313
4471
|
}, null, 8, ["modelValue"])])]),
|
|
4314
|
-
u("div",
|
|
4315
|
-
f(
|
|
4472
|
+
u("div", jc, [u("table", Mc, [u("thead", null, [u("tr", null, [
|
|
4473
|
+
f(Z, {
|
|
4316
4474
|
column: "group",
|
|
4317
4475
|
"order-by": k(m),
|
|
4318
4476
|
onSort: k(C)
|
|
@@ -4320,7 +4478,7 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
4320
4478
|
default: F(() => [d(D(e.translations.group), 1)]),
|
|
4321
4479
|
_: 1
|
|
4322
4480
|
}, 8, ["order-by", "onSort"]),
|
|
4323
|
-
f(
|
|
4481
|
+
f(Z, {
|
|
4324
4482
|
column: "key",
|
|
4325
4483
|
"order-by": k(m),
|
|
4326
4484
|
onSort: k(C)
|
|
@@ -4328,7 +4486,7 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
4328
4486
|
default: F(() => [d(D(e.translations.default), 1)]),
|
|
4329
4487
|
_: 1
|
|
4330
4488
|
}, 8, ["order-by", "onSort"]),
|
|
4331
|
-
f(
|
|
4489
|
+
f(Z, {
|
|
4332
4490
|
column: "text",
|
|
4333
4491
|
"order-by": k(m),
|
|
4334
4492
|
onSort: k(C)
|
|
@@ -4336,7 +4494,7 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
4336
4494
|
default: F(() => [d(D(e.userLocale.toUpperCase()), 1)]),
|
|
4337
4495
|
_: 1
|
|
4338
4496
|
}, 8, ["order-by", "onSort"]),
|
|
4339
|
-
k(a)(4) ? (S(), s(
|
|
4497
|
+
k(a)(4) ? (S(), s(Z, {
|
|
4340
4498
|
key: 0,
|
|
4341
4499
|
column: "created_at",
|
|
4342
4500
|
"order-by": k(m),
|
|
@@ -4350,16 +4508,16 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
4350
4508
|
u("td", null, D(t.group), 1),
|
|
4351
4509
|
u("td", null, D(t.key), 1),
|
|
4352
4510
|
u("td", null, D(t.text?.[e.userLocale]), 1),
|
|
4353
|
-
k(a)(4) ? (S(), l("td",
|
|
4511
|
+
k(a)(4) ? (S(), l("td", Nc, D(k(K)(t.created_at)), 1)) : c("", !0),
|
|
4354
4512
|
u("td", null, [u("a", {
|
|
4355
4513
|
class: "btn btn-sm btn-info",
|
|
4356
4514
|
href: "#",
|
|
4357
4515
|
title: e.translations.edit_btn,
|
|
4358
4516
|
role: "button",
|
|
4359
4517
|
onClick: R((e) => L(t), ["prevent"])
|
|
4360
|
-
}, [...n[11] ||= [u("i", { class: "fa fa-edit" }, null, -1)]], 8,
|
|
4518
|
+
}, [...n[11] ||= [u("i", { class: "fa fa-edit" }, null, -1)]], 8, Pc)])
|
|
4361
4519
|
]))), 128))])])]),
|
|
4362
|
-
f(
|
|
4520
|
+
f(An, {
|
|
4363
4521
|
pagination: k(p).state,
|
|
4364
4522
|
options: k(p).options,
|
|
4365
4523
|
translations: {
|
|
@@ -4376,7 +4534,7 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
4376
4534
|
"onPageChange",
|
|
4377
4535
|
"onPerPageChange"
|
|
4378
4536
|
]),
|
|
4379
|
-
k(y)?.length ? c("", !0) : (S(), l("div",
|
|
4537
|
+
k(y)?.length ? c("", !0) : (S(), l("div", Fc, [
|
|
4380
4538
|
n[12] ||= u("i", { class: "fa fa-magnifying-glass" }, null, -1),
|
|
4381
4539
|
u("h3", null, D(e.translations.no_items), 1),
|
|
4382
4540
|
u("p", null, D(e.translations.try_changing_items), 1),
|
|
@@ -4390,7 +4548,7 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
4390
4548
|
], 512)])
|
|
4391
4549
|
])]));
|
|
4392
4550
|
}
|
|
4393
|
-
},
|
|
4551
|
+
}, Lc = {
|
|
4394
4552
|
url: "",
|
|
4395
4553
|
collection: "",
|
|
4396
4554
|
maxNumberOfFiles: 1,
|
|
@@ -4398,16 +4556,16 @@ var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
|
4398
4556
|
acceptedFileTypes: void 0,
|
|
4399
4557
|
thumbnailWidth: 200,
|
|
4400
4558
|
uploadedMedia: []
|
|
4401
|
-
},
|
|
4559
|
+
}, Rc = {
|
|
4402
4560
|
type: Object,
|
|
4403
|
-
default: () => ({ ...
|
|
4561
|
+
default: () => ({ ...Lc })
|
|
4404
4562
|
};
|
|
4405
4563
|
//#endregion
|
|
4406
4564
|
//#region src/ui/index.js
|
|
4407
|
-
function
|
|
4408
|
-
document.readyState === "loading" ? document.addEventListener("DOMContentLoaded",
|
|
4565
|
+
function zc() {
|
|
4566
|
+
document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", Bc) : Bc();
|
|
4409
4567
|
}
|
|
4410
|
-
function
|
|
4568
|
+
function Bc() {
|
|
4411
4569
|
let e = document.getElementById("sidebar"), t = null;
|
|
4412
4570
|
document.querySelectorAll(".btn-spinner").forEach((e) => {
|
|
4413
4571
|
e.addEventListener("click", (t) => {
|
|
@@ -4447,4 +4605,4 @@ function Ac() {
|
|
|
4447
4605
|
}), e && window.innerWidth < 992 && e.classList.add("hide");
|
|
4448
4606
|
}
|
|
4449
4607
|
//#endregion
|
|
4450
|
-
export {
|
|
4608
|
+
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 };
|