@dejwcake/craftable 2.2.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 +671 -500
- 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 +11 -1
- package/src/utils/dateFormatters.js +41 -0
package/dist/index.mjs
CHANGED
|
@@ -43,16 +43,29 @@ function q(e, t = "DD.MM.YYYY HH:mm") {
|
|
|
43
43
|
let n = H(e);
|
|
44
44
|
return n.isValid() ? n.format(t) : "";
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function Ze(e, t = "HH:mm") {
|
|
47
47
|
let n = H("2000-01-01 " + e);
|
|
48
48
|
return n.isValid() ? n.format(t) : "";
|
|
49
49
|
}
|
|
50
|
-
|
|
50
|
+
var Qe = 60, $e = 3600, et = 86400;
|
|
51
|
+
function tt(e, t = "—") {
|
|
52
|
+
if (e == null) return t;
|
|
53
|
+
let n = Math.floor(e);
|
|
54
|
+
if (!Number.isFinite(n) || n < 0) return t;
|
|
55
|
+
let r = [
|
|
56
|
+
[Math.floor(n / et), "d"],
|
|
57
|
+
[Math.floor(n % et / $e), "h"],
|
|
58
|
+
[Math.floor(n % $e / Qe), "m"],
|
|
59
|
+
[n % Qe, "s"]
|
|
60
|
+
].filter(([e]) => e > 0);
|
|
61
|
+
return r.length === 0 ? "0s" : r.map(([e, t]) => `${e}${t}`).join(" ");
|
|
62
|
+
}
|
|
63
|
+
function nt(e = "UTC", t = "YYYY-MM-DD HH:mm:ss") {
|
|
51
64
|
return H().tz(e).format(t);
|
|
52
65
|
}
|
|
53
66
|
//#endregion
|
|
54
67
|
//#region node_modules/date-fns/locale/en-US/_lib/formatDistance.js
|
|
55
|
-
var
|
|
68
|
+
var rt = {
|
|
56
69
|
lessThanXSeconds: {
|
|
57
70
|
one: "less than a second",
|
|
58
71
|
other: "less than {{count}} seconds"
|
|
@@ -114,10 +127,10 @@ var Qe = {
|
|
|
114
127
|
one: "almost 1 year",
|
|
115
128
|
other: "almost {{count}} years"
|
|
116
129
|
}
|
|
117
|
-
},
|
|
118
|
-
let r, i =
|
|
130
|
+
}, it = (e, t, n) => {
|
|
131
|
+
let r, i = rt[e];
|
|
119
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;
|
|
120
|
-
},
|
|
133
|
+
}, at = {
|
|
121
134
|
date: e({
|
|
122
135
|
formats: {
|
|
123
136
|
full: "EEEE, MMMM do, y",
|
|
@@ -145,18 +158,18 @@ var Qe = {
|
|
|
145
158
|
},
|
|
146
159
|
defaultWidth: "full"
|
|
147
160
|
})
|
|
148
|
-
},
|
|
161
|
+
}, ot = {
|
|
149
162
|
lastWeek: "'last' eeee 'at' p",
|
|
150
163
|
yesterday: "'yesterday at' p",
|
|
151
164
|
today: "'today at' p",
|
|
152
165
|
tomorrow: "'tomorrow at' p",
|
|
153
166
|
nextWeek: "eeee 'at' p",
|
|
154
167
|
other: "P"
|
|
155
|
-
},
|
|
168
|
+
}, st = {
|
|
156
169
|
code: "en-US",
|
|
157
|
-
formatDistance:
|
|
158
|
-
formatLong:
|
|
159
|
-
formatRelative: (e, t, n, r) =>
|
|
170
|
+
formatDistance: it,
|
|
171
|
+
formatLong: at,
|
|
172
|
+
formatRelative: (e, t, n, r) => ot[e],
|
|
160
173
|
localize: {
|
|
161
174
|
ordinalNumber: (e, t) => {
|
|
162
175
|
let n = Number(e), r = n % 100;
|
|
@@ -480,46 +493,46 @@ var Qe = {
|
|
|
480
493
|
weekStartsOn: 0,
|
|
481
494
|
firstWeekContainsDate: 1
|
|
482
495
|
}
|
|
483
|
-
},
|
|
484
|
-
function
|
|
485
|
-
return
|
|
496
|
+
}, ct = st;
|
|
497
|
+
function J() {
|
|
498
|
+
return ct;
|
|
486
499
|
}
|
|
487
|
-
async function
|
|
500
|
+
async function lt() {
|
|
488
501
|
let e = document.documentElement.lang || "en", t = {
|
|
489
502
|
sk: () => import("./sk-Cee4uHgG.js"),
|
|
490
503
|
cs: () => import("./cs-ny3teKR0.js"),
|
|
491
|
-
en: async () => ({ enUS:
|
|
504
|
+
en: async () => ({ enUS: st }),
|
|
492
505
|
de: () => import("./de-DRctuPTq.js"),
|
|
493
506
|
fr: () => import("./fr-C4Eic4QK.js"),
|
|
494
507
|
es: () => import("./es-BufozPLe.js"),
|
|
495
508
|
pl: () => import("./pl-BvOLP6Vq.js"),
|
|
496
509
|
hu: () => import("./hu-Da01tbQE.js")
|
|
497
510
|
}, n = await (t[e] || t.en)();
|
|
498
|
-
|
|
511
|
+
ct = n.default || n[Object.keys(n)[0]];
|
|
499
512
|
}
|
|
500
513
|
//#endregion
|
|
501
514
|
//#region src/composables/useBaseForm.js
|
|
502
|
-
var
|
|
503
|
-
function
|
|
515
|
+
var ut = window.axios;
|
|
516
|
+
function dt(e, t = {}) {
|
|
504
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({
|
|
505
518
|
enableTimePicker: !1,
|
|
506
519
|
enableSeconds: !1,
|
|
507
520
|
modelType: "yyyy-MM-dd HH:mm:ss",
|
|
508
521
|
format: "dd.MM.yyyy",
|
|
509
|
-
locale:
|
|
522
|
+
locale: J()
|
|
510
523
|
}), h = w({
|
|
511
524
|
timePicker: !0,
|
|
512
525
|
enableTimePicker: !0,
|
|
513
526
|
enableSeconds: !1,
|
|
514
527
|
modelType: "HH:mm:ss",
|
|
515
528
|
format: "HH:mm",
|
|
516
|
-
locale:
|
|
529
|
+
locale: J()
|
|
517
530
|
}), g = w({
|
|
518
531
|
enableTimePicker: !0,
|
|
519
532
|
enableSeconds: !1,
|
|
520
533
|
modelType: "yyyy-MM-dd HH:mm:ss",
|
|
521
534
|
format: "dd.MM.yyyy HH:mm",
|
|
522
|
-
locale:
|
|
535
|
+
locale: J()
|
|
523
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 + "_"))));
|
|
524
537
|
_.value.length > 0 && (c.value = v.value);
|
|
525
538
|
function S() {
|
|
@@ -560,7 +573,7 @@ function ot(e, t = {}) {
|
|
|
560
573
|
for (let [t, r] of Object.entries(n)) (!_.value.includes(t) || r && Object.keys(r).length > 0) && (e[t] = r);
|
|
561
574
|
n = e;
|
|
562
575
|
}
|
|
563
|
-
|
|
576
|
+
ut.post(e.action, n).then((e) => {
|
|
564
577
|
E(e.data);
|
|
565
578
|
}).catch((e) => {
|
|
566
579
|
D(e.response?.data || {});
|
|
@@ -625,13 +638,13 @@ function ot(e, t = {}) {
|
|
|
625
638
|
setErrors: d,
|
|
626
639
|
formatDate: K,
|
|
627
640
|
formatDatetime: q,
|
|
628
|
-
formatTime:
|
|
641
|
+
formatTime: Ze
|
|
629
642
|
};
|
|
630
643
|
}
|
|
631
644
|
//#endregion
|
|
632
645
|
//#region src/composables/useBaseAuth.js
|
|
633
|
-
var
|
|
634
|
-
function
|
|
646
|
+
var ft = window.axios;
|
|
647
|
+
function Y(e, t = {}) {
|
|
635
648
|
let n = w(t.formDefaults ? { ...t.formDefaults } : {}), r = w(!1), i = w(""), { setErrors: a, errors: o } = z();
|
|
636
649
|
async function s() {
|
|
637
650
|
if (t.validationSchema) {
|
|
@@ -647,7 +660,7 @@ function X(e, t = {}) {
|
|
|
647
660
|
for (let n of Object.keys(t.validationSchema)) r[n] = e[n] || void 0;
|
|
648
661
|
if (a(r), Object.keys(e).length > 0) return !1;
|
|
649
662
|
}
|
|
650
|
-
r.value = !0, i.value = "",
|
|
663
|
+
r.value = !0, i.value = "", ft.post(e.action, n.value).then((e) => {
|
|
651
664
|
c(e.data);
|
|
652
665
|
}).catch((e) => {
|
|
653
666
|
l(e.response?.data || {});
|
|
@@ -678,8 +691,8 @@ function X(e, t = {}) {
|
|
|
678
691
|
}
|
|
679
692
|
//#endregion
|
|
680
693
|
//#region src/composables/useBaseListing.js
|
|
681
|
-
var
|
|
682
|
-
function
|
|
694
|
+
var X = window.axios;
|
|
695
|
+
function pt(e) {
|
|
683
696
|
let { cookies: t } = re(), n = C({
|
|
684
697
|
state: {
|
|
685
698
|
per_page: t.get("per_page") || 10,
|
|
@@ -692,29 +705,30 @@ function ct(e) {
|
|
|
692
705
|
}), r = C({
|
|
693
706
|
column: "id",
|
|
694
707
|
direction: "asc"
|
|
695
|
-
}), 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({
|
|
696
714
|
show: !1,
|
|
697
715
|
onConfirm: null,
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
cancel_btn: "Cancel"
|
|
703
|
-
}
|
|
704
|
-
}), f = setInterval(() => {
|
|
705
|
-
c.value = Ze(e.timezone || "UTC");
|
|
716
|
+
variant: "danger",
|
|
717
|
+
translations: { ...d }
|
|
718
|
+
}), p = setInterval(() => {
|
|
719
|
+
c.value = nt(e.timezone || "UTC");
|
|
706
720
|
}, 1e3);
|
|
707
721
|
b(() => {
|
|
708
|
-
clearInterval(
|
|
722
|
+
clearInterval(p);
|
|
709
723
|
});
|
|
710
|
-
let
|
|
724
|
+
let m = o(() => Object.values(l).filter((e) => e === !0).length), h = o({
|
|
711
725
|
get() {
|
|
712
|
-
return
|
|
726
|
+
return m.value >= n.state.to - n.state.from + 1 && m.value > 0 && g();
|
|
713
727
|
},
|
|
714
728
|
set() {}
|
|
715
729
|
});
|
|
716
|
-
e.data == null ?
|
|
717
|
-
function
|
|
730
|
+
e.data == null ? k() : j(e.data);
|
|
731
|
+
function g() {
|
|
718
732
|
if (!s.value) return !1;
|
|
719
733
|
let e = Object.values(s.value).map(({ id: e }) => e);
|
|
720
734
|
for (let t = 0; t < e.length; t++) {
|
|
@@ -723,30 +737,30 @@ function ct(e) {
|
|
|
723
737
|
}
|
|
724
738
|
return !0;
|
|
725
739
|
}
|
|
726
|
-
function
|
|
740
|
+
function _(e) {
|
|
727
741
|
l[e] === void 0 ? l[e] = !0 : l[e] = !l[e];
|
|
728
742
|
}
|
|
729
|
-
function
|
|
743
|
+
function v(e) {
|
|
730
744
|
let t = { params: { bulk: !0 } };
|
|
731
|
-
u.value = !0, Object.assign(t.params, i),
|
|
732
|
-
|
|
745
|
+
u.value = !0, Object.assign(t.params, i), X.get(e, t).then((e) => {
|
|
746
|
+
x(e.data.bulkItems);
|
|
733
747
|
}).catch((e) => {
|
|
734
748
|
G(e.response?.data?.message);
|
|
735
749
|
}).finally(() => {
|
|
736
750
|
u.value = !1;
|
|
737
751
|
});
|
|
738
752
|
}
|
|
739
|
-
function
|
|
753
|
+
function y() {
|
|
740
754
|
if (!s.value) return;
|
|
741
755
|
let e = Object.values(s.value).map(({ id: e }) => e);
|
|
742
|
-
|
|
756
|
+
h.value ? S(e) : (u.value = !0, x(e), u.value = !1);
|
|
743
757
|
}
|
|
744
|
-
function
|
|
758
|
+
function x(e) {
|
|
745
759
|
e.forEach((e) => {
|
|
746
760
|
l[e] = !0;
|
|
747
761
|
});
|
|
748
762
|
}
|
|
749
|
-
function
|
|
763
|
+
function S(e = null) {
|
|
750
764
|
if (e === null) Object.keys(l).forEach((e) => delete l[e]);
|
|
751
765
|
else {
|
|
752
766
|
if (!s.value) return;
|
|
@@ -755,63 +769,84 @@ function ct(e) {
|
|
|
755
769
|
});
|
|
756
770
|
}
|
|
757
771
|
}
|
|
758
|
-
function
|
|
759
|
-
let
|
|
760
|
-
|
|
761
|
-
...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,
|
|
762
776
|
...t,
|
|
763
|
-
confirm_text: (t.confirm_text ||
|
|
764
|
-
},
|
|
765
|
-
|
|
766
|
-
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);
|
|
767
781
|
}).catch((e) => {
|
|
768
782
|
G(e.response?.data?.message);
|
|
769
783
|
});
|
|
770
|
-
},
|
|
784
|
+
}, f.show = !0;
|
|
785
|
+
}
|
|
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
|
+
});
|
|
771
791
|
}
|
|
772
|
-
function
|
|
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) {
|
|
773
808
|
let a = { params: {
|
|
774
809
|
per_page: n.state.per_page,
|
|
775
810
|
page: n.state.current_page,
|
|
776
811
|
orderBy: r.column,
|
|
777
812
|
orderDirection: r.direction
|
|
778
813
|
} };
|
|
779
|
-
t === !0 && (a.params.page = 1), Object.assign(a.params, i),
|
|
780
|
-
|
|
814
|
+
t === !0 && (a.params.page = 1), Object.assign(a.params, i), X.get(e.url, a).then((e) => {
|
|
815
|
+
j(e.data.data);
|
|
781
816
|
}).catch((e) => {
|
|
782
817
|
G(e.response?.data?.message);
|
|
783
818
|
});
|
|
784
819
|
}
|
|
785
|
-
function
|
|
786
|
-
t === "" ? delete i[e] : i[e] = t,
|
|
820
|
+
function A(e, t) {
|
|
821
|
+
t === "" ? delete i[e] : i[e] = t, k(!0);
|
|
787
822
|
}
|
|
788
|
-
function
|
|
823
|
+
function j(e) {
|
|
789
824
|
if (e.current_page > e.last_page && e.total > 0) {
|
|
790
|
-
n.state.current_page = e.last_page,
|
|
825
|
+
n.state.current_page = e.last_page, k();
|
|
791
826
|
return;
|
|
792
827
|
}
|
|
793
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;
|
|
794
829
|
}
|
|
795
|
-
function
|
|
796
|
-
return
|
|
830
|
+
function M(e) {
|
|
831
|
+
return X.get(e).then((e) => {
|
|
797
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);
|
|
798
833
|
}).catch((e) => {
|
|
799
834
|
G(e.response?.data?.message);
|
|
800
835
|
});
|
|
801
836
|
}
|
|
802
|
-
function
|
|
837
|
+
function N(e, t) {
|
|
803
838
|
return e.replace(":id", t.id);
|
|
804
839
|
}
|
|
805
|
-
function
|
|
806
|
-
r.column = e, r.direction = t,
|
|
840
|
+
function P({ column: e, direction: t }) {
|
|
841
|
+
r.column = e, r.direction = t, k();
|
|
807
842
|
}
|
|
808
|
-
function
|
|
809
|
-
n.state.current_page = e,
|
|
843
|
+
function F(e) {
|
|
844
|
+
n.state.current_page = e, k();
|
|
810
845
|
}
|
|
811
|
-
function
|
|
812
|
-
n.state.current_page = 1,
|
|
846
|
+
function I() {
|
|
847
|
+
n.state.current_page = 1, k(!0);
|
|
813
848
|
}
|
|
814
|
-
function
|
|
849
|
+
function L(e) {
|
|
815
850
|
if (!s.value) return;
|
|
816
851
|
let t = s.value.findIndex((t) => t.id === e.id);
|
|
817
852
|
t !== -1 && (s.value[t] = e);
|
|
@@ -825,37 +860,40 @@ function ct(e) {
|
|
|
825
860
|
now: c,
|
|
826
861
|
bulkItems: l,
|
|
827
862
|
bulkCheckingAllLoader: u,
|
|
828
|
-
confirmModal:
|
|
829
|
-
isClickedAll:
|
|
830
|
-
clickedBulkItemsCount:
|
|
831
|
-
onBulkItemClicked:
|
|
832
|
-
onBulkItemsClickedAll:
|
|
833
|
-
onBulkItemsClickedAllWithPagination:
|
|
834
|
-
onBulkItemsClickedAllUncheck:
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
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,
|
|
844
882
|
formatDate: K,
|
|
845
883
|
formatDatetime: q,
|
|
846
|
-
formatTime:
|
|
884
|
+
formatTime: Ze
|
|
847
885
|
};
|
|
848
886
|
}
|
|
849
887
|
//#endregion
|
|
850
888
|
//#region src/composables/useAdmin.js
|
|
851
|
-
var
|
|
852
|
-
function
|
|
889
|
+
var mt = window.axios;
|
|
890
|
+
function ht() {
|
|
853
891
|
let e = w(!1);
|
|
854
892
|
function t(t) {
|
|
855
893
|
e.value = !!t;
|
|
856
894
|
}
|
|
857
895
|
return x(() => {
|
|
858
|
-
|
|
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)));
|
|
859
897
|
}), {
|
|
860
898
|
loading: e,
|
|
861
899
|
setLoading: t
|
|
@@ -863,7 +901,7 @@ function ut() {
|
|
|
863
901
|
}
|
|
864
902
|
//#endregion
|
|
865
903
|
//#region src/composables/useResponsiveColumns.js
|
|
866
|
-
var
|
|
904
|
+
var gt = [
|
|
867
905
|
{
|
|
868
906
|
minWidth: 1800,
|
|
869
907
|
maxPriority: 10
|
|
@@ -893,8 +931,8 @@ var dt = [
|
|
|
893
931
|
maxPriority: 0
|
|
894
932
|
}
|
|
895
933
|
];
|
|
896
|
-
function
|
|
897
|
-
let n = t.breakpoints ||
|
|
934
|
+
function _t(e, t = {}) {
|
|
935
|
+
let n = t.breakpoints || gt, r = w(10), i = null;
|
|
898
936
|
function a(e) {
|
|
899
937
|
for (let t of n) if (e >= t.minWidth) {
|
|
900
938
|
r.value = t.maxPriority;
|
|
@@ -922,31 +960,31 @@ function ft(e, t = {}) {
|
|
|
922
960
|
}
|
|
923
961
|
//#endregion
|
|
924
962
|
//#region src/components/form/MediaUpload.vue
|
|
925
|
-
var
|
|
963
|
+
var vt = { class: "base-upload" }, yt = {
|
|
926
964
|
key: 0,
|
|
927
965
|
class: "form-label d-flex align-items-center"
|
|
928
|
-
},
|
|
966
|
+
}, bt = { class: "fw-semibold upload-label-title" }, xt = {
|
|
929
967
|
key: 0,
|
|
930
968
|
class: "fa fa-lock ms-auto text-body-secondary"
|
|
931
|
-
},
|
|
969
|
+
}, St = ["value"], Ct = {
|
|
932
970
|
key: 0,
|
|
933
971
|
class: "dz-message"
|
|
934
|
-
},
|
|
972
|
+
}, wt = { class: "dz-image" }, Tt = ["src", "alt"], Et = {
|
|
935
973
|
key: 1,
|
|
936
974
|
class: "dz-file-icon"
|
|
937
|
-
},
|
|
975
|
+
}, Dt = { class: "dz-file-size" }, Ot = { class: "dz-file-name" }, kt = ["onClick"], At = { class: "dz-image" }, jt = ["src", "alt"], Mt = {
|
|
938
976
|
key: 1,
|
|
939
977
|
class: "dz-file-icon"
|
|
940
|
-
},
|
|
978
|
+
}, Nt = {
|
|
941
979
|
key: 0,
|
|
942
980
|
class: "dz-progress"
|
|
943
|
-
},
|
|
981
|
+
}, Pt = {
|
|
944
982
|
key: 1,
|
|
945
983
|
class: "dz-success-mark"
|
|
946
|
-
},
|
|
984
|
+
}, Ft = {
|
|
947
985
|
key: 2,
|
|
948
986
|
class: "dz-error-mark"
|
|
949
|
-
},
|
|
987
|
+
}, It = { class: "dz-file-size" }, Lt = { class: "dz-file-name" }, Rt = ["onClick"], zt = {
|
|
950
988
|
__name: "MediaUpload",
|
|
951
989
|
props: {
|
|
952
990
|
url: {
|
|
@@ -1108,40 +1146,40 @@ var pt = { class: "base-upload" }, mt = {
|
|
|
1108
1146
|
});
|
|
1109
1147
|
}), e;
|
|
1110
1148
|
}
|
|
1111
|
-
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, [
|
|
1112
1150
|
u("i", { class: _([a.value, "me-1 text-body-secondary"]) }, null, 2),
|
|
1113
|
-
u("span",
|
|
1151
|
+
u("span", bt, D(e.label), 1),
|
|
1114
1152
|
(S(!0), l(i, null, T(s.value, (e, t) => (S(), l("small", {
|
|
1115
1153
|
key: t,
|
|
1116
1154
|
class: "text-body-secondary fw-light ms-1"
|
|
1117
1155
|
}, "(" + D(e) + ")", 1))), 128)),
|
|
1118
|
-
e.isPrivate ? (S(), l("i",
|
|
1156
|
+
e.isPrivate ? (S(), l("i", xt)) : c("", !0)
|
|
1119
1157
|
])) : c("", !0), u("div", g(k(j)(), { class: ["vue3-dropzone dropzone", { "dz-drag-hover": k(N) }] }), [
|
|
1120
1158
|
u("input", v(m(k(M)())), null, 16),
|
|
1121
1159
|
u("input", {
|
|
1122
1160
|
type: "hidden",
|
|
1123
1161
|
name: "collection",
|
|
1124
1162
|
value: e.collection
|
|
1125
|
-
}, null, 8,
|
|
1126
|
-
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),
|
|
1127
1165
|
(S(!0), l(i, null, T(f.value, (e, t) => (S(), l("div", {
|
|
1128
1166
|
key: "existing-" + (e.id || t),
|
|
1129
1167
|
class: _(["dz-preview dz-file-preview dz-existing", { "dz-deleted": e.deleted }])
|
|
1130
|
-
}, [u("div",
|
|
1168
|
+
}, [u("div", wt, [L(e) ? (S(), l("img", {
|
|
1131
1169
|
key: 0,
|
|
1132
1170
|
src: e.thumb_url,
|
|
1133
1171
|
alt: e.name
|
|
1134
|
-
}, 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", {
|
|
1135
1173
|
class: "dz-hover-overlay",
|
|
1136
1174
|
onClick: n[0] ||= R(() => {}, ["stop"])
|
|
1137
1175
|
}, [
|
|
1138
|
-
u("span",
|
|
1139
|
-
u("span",
|
|
1176
|
+
u("span", Dt, D(I(e.size)), 1),
|
|
1177
|
+
u("span", Ot, D(e.name), 1),
|
|
1140
1178
|
u("button", {
|
|
1141
1179
|
type: "button",
|
|
1142
1180
|
class: "dz-remove-btn",
|
|
1143
1181
|
onClick: R((e) => P(t), ["stop"])
|
|
1144
|
-
}, "REMOVE", 8,
|
|
1182
|
+
}, "REMOVE", 8, kt)
|
|
1145
1183
|
])], 2))), 128)),
|
|
1146
1184
|
(S(!0), l(i, null, T(d.value, (e, t) => (S(), l("div", {
|
|
1147
1185
|
key: "new-" + t,
|
|
@@ -1150,40 +1188,40 @@ var pt = { class: "base-upload" }, mt = {
|
|
|
1150
1188
|
"dz-error": e.showError
|
|
1151
1189
|
}])
|
|
1152
1190
|
}, [
|
|
1153
|
-
u("div",
|
|
1191
|
+
u("div", At, [e.previewUrl ? (S(), l("img", {
|
|
1154
1192
|
key: 0,
|
|
1155
1193
|
src: e.previewUrl,
|
|
1156
1194
|
alt: e.file.name
|
|
1157
|
-
}, null, 8,
|
|
1158
|
-
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", {
|
|
1159
1197
|
class: "dz-upload",
|
|
1160
1198
|
style: y({ width: e.progress + "%" })
|
|
1161
1199
|
}, null, 4)])) : c("", !0),
|
|
1162
|
-
e.showSuccess ? (S(), l("div",
|
|
1163
|
-
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),
|
|
1164
1202
|
!e.uploading && !e.showSuccess ? (S(), l("div", {
|
|
1165
1203
|
key: 3,
|
|
1166
1204
|
class: "dz-hover-overlay",
|
|
1167
1205
|
onClick: n[1] ||= R(() => {}, ["stop"])
|
|
1168
1206
|
}, [
|
|
1169
|
-
u("span",
|
|
1170
|
-
u("span",
|
|
1207
|
+
u("span", It, D(I(e.file.size)), 1),
|
|
1208
|
+
u("span", Lt, D(e.file.name), 1),
|
|
1171
1209
|
u("button", {
|
|
1172
1210
|
type: "button",
|
|
1173
1211
|
class: "dz-remove-btn",
|
|
1174
1212
|
onClick: R((e) => F(t), ["stop"])
|
|
1175
|
-
}, "REMOVE", 8,
|
|
1213
|
+
}, "REMOVE", 8, Rt)
|
|
1176
1214
|
])) : c("", !0)
|
|
1177
1215
|
], 2))), 128))
|
|
1178
1216
|
], 16)]));
|
|
1179
1217
|
}
|
|
1180
|
-
},
|
|
1218
|
+
}, Bt = { class: "tiptap-editor" }, Vt = {
|
|
1181
1219
|
key: 0,
|
|
1182
1220
|
class: "tiptap-toolbar"
|
|
1183
|
-
},
|
|
1221
|
+
}, Ht = ["selected"], Ut = ["value", "selected"], Wt = {
|
|
1184
1222
|
key: 0,
|
|
1185
1223
|
class: "tiptap-toolbar-divider"
|
|
1186
|
-
},
|
|
1224
|
+
}, Gt = ["disabled"], Kt = ["disabled"], qt = {
|
|
1187
1225
|
__name: "TiptapEditor",
|
|
1188
1226
|
props: {
|
|
1189
1227
|
modelValue: {
|
|
@@ -1264,14 +1302,14 @@ var pt = { class: "base-upload" }, mt = {
|
|
|
1264
1302
|
m.value.value = "";
|
|
1265
1303
|
});
|
|
1266
1304
|
}
|
|
1267
|
-
return (t, n) => (S(), l("div",
|
|
1305
|
+
return (t, n) => (S(), l("div", Bt, [k(s) ? (S(), l("div", Vt, [
|
|
1268
1306
|
u("select", {
|
|
1269
1307
|
class: "tiptap-heading-select",
|
|
1270
1308
|
onChange: n[0] ||= (e) => d(e)
|
|
1271
1309
|
}, [u("option", {
|
|
1272
1310
|
value: "0",
|
|
1273
1311
|
selected: !k(s).isActive("heading")
|
|
1274
|
-
}, "Paragraph", 8,
|
|
1312
|
+
}, "Paragraph", 8, Ht), (S(), l(i, null, T([
|
|
1275
1313
|
1,
|
|
1276
1314
|
2,
|
|
1277
1315
|
3,
|
|
@@ -1282,7 +1320,7 @@ var pt = { class: "base-upload" }, mt = {
|
|
|
1282
1320
|
key: e,
|
|
1283
1321
|
value: e,
|
|
1284
1322
|
selected: k(s).isActive("heading", { level: e })
|
|
1285
|
-
}, " H" + D(e), 9,
|
|
1323
|
+
}, " H" + D(e), 9, Ut)), 64))], 32),
|
|
1286
1324
|
u("button", {
|
|
1287
1325
|
type: "button",
|
|
1288
1326
|
class: _({ "is-active": k(s).isActive("bold") }),
|
|
@@ -1338,7 +1376,7 @@ var pt = { class: "base-upload" }, mt = {
|
|
|
1338
1376
|
style: { display: "none" },
|
|
1339
1377
|
onChange: v
|
|
1340
1378
|
}, null, 544),
|
|
1341
|
-
e.showTableControls ? (S(), l("span",
|
|
1379
|
+
e.showTableControls ? (S(), l("span", Wt)) : c("", !0),
|
|
1342
1380
|
e.showTableControls ? (S(), l("button", {
|
|
1343
1381
|
key: 1,
|
|
1344
1382
|
type: "button",
|
|
@@ -1355,13 +1393,13 @@ var pt = { class: "base-upload" }, mt = {
|
|
|
1355
1393
|
disabled: !k(s).can().undo(),
|
|
1356
1394
|
title: "Undo",
|
|
1357
1395
|
onClick: n[7] ||= (e) => k(s).chain().focus().undo().run()
|
|
1358
|
-
}, " ↩ ", 8,
|
|
1396
|
+
}, " ↩ ", 8, Gt),
|
|
1359
1397
|
u("button", {
|
|
1360
1398
|
type: "button",
|
|
1361
1399
|
disabled: !k(s).can().redo(),
|
|
1362
1400
|
title: "Redo",
|
|
1363
1401
|
onClick: n[8] ||= (e) => k(s).chain().focus().redo().run()
|
|
1364
|
-
}, " ↪ ", 8,
|
|
1402
|
+
}, " ↪ ", 8, Kt)
|
|
1365
1403
|
])) : c("", !0), f(k(ae), {
|
|
1366
1404
|
editor: k(s),
|
|
1367
1405
|
class: "tiptap-content"
|
|
@@ -1370,7 +1408,7 @@ var pt = { class: "base-upload" }, mt = {
|
|
|
1370
1408
|
};
|
|
1371
1409
|
//#endregion
|
|
1372
1410
|
//#region src/utils/ckeditorHelpers.js
|
|
1373
|
-
function
|
|
1411
|
+
function Jt(e) {
|
|
1374
1412
|
if (!e) return e;
|
|
1375
1413
|
let t = new DOMParser().parseFromString(e, "text/html"), n = !1;
|
|
1376
1414
|
return t.querySelectorAll("figure").forEach((e) => {
|
|
@@ -1380,14 +1418,14 @@ function Ut(e) {
|
|
|
1380
1418
|
r && (r.style.width = t, r.style.height = "auto", n = !0);
|
|
1381
1419
|
}), n ? t.body.innerHTML : e;
|
|
1382
1420
|
}
|
|
1383
|
-
function
|
|
1421
|
+
function Yt(e, t) {
|
|
1384
1422
|
let n = { ...e };
|
|
1385
|
-
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];
|
|
1386
1424
|
return n;
|
|
1387
1425
|
}
|
|
1388
1426
|
//#endregion
|
|
1389
1427
|
//#region src/components/form/CkeditorEditor.vue
|
|
1390
|
-
var
|
|
1428
|
+
var Xt = { class: "ck-editor-wrapper" }, Zt = {
|
|
1391
1429
|
__name: "CkeditorEditor",
|
|
1392
1430
|
props: {
|
|
1393
1431
|
modelValue: {
|
|
@@ -1407,7 +1445,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
1407
1445
|
setup(e, { emit: t }) {
|
|
1408
1446
|
let n = window.axios, r = e, i = t, a = o({
|
|
1409
1447
|
get: () => r.modelValue ?? "",
|
|
1410
|
-
set: (e) => i("update:modelValue",
|
|
1448
|
+
set: (e) => i("update:modelValue", Jt(e))
|
|
1411
1449
|
});
|
|
1412
1450
|
function s(e) {
|
|
1413
1451
|
e.plugins.get("FileRepository").createUploadAdapter = (e) => new c(e, r.uploadUrl);
|
|
@@ -1548,8 +1586,8 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
1548
1586
|
class: "ck-heading_heading4"
|
|
1549
1587
|
}
|
|
1550
1588
|
] }
|
|
1551
|
-
}, d = o(() => r.config ?
|
|
1552
|
-
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), {
|
|
1553
1591
|
modelValue: a.value,
|
|
1554
1592
|
"onUpdate:modelValue": t[0] ||= (e) => a.value = e,
|
|
1555
1593
|
editor: k(_e),
|
|
@@ -1560,22 +1598,22 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
1560
1598
|
"config"
|
|
1561
1599
|
])]));
|
|
1562
1600
|
}
|
|
1563
|
-
},
|
|
1601
|
+
}, Qt = { class: "user-detail-tooltip d-inline-flex align-items-center" }, $t = {
|
|
1564
1602
|
key: 0,
|
|
1565
1603
|
class: "col-form-label text-body-secondary me-2 mb-0"
|
|
1566
|
-
},
|
|
1604
|
+
}, en = { class: "d-inline-flex align-items-center cursor-pointer" }, tn = ["src", "alt"], nn = {
|
|
1567
1605
|
key: 1,
|
|
1568
1606
|
class: "avatar-initials"
|
|
1569
|
-
},
|
|
1607
|
+
}, rn = {
|
|
1570
1608
|
key: 2,
|
|
1571
1609
|
class: "avatar-trigger-text"
|
|
1572
|
-
},
|
|
1610
|
+
}, an = { class: "avatar-full-name" }, on = {
|
|
1573
1611
|
key: 0,
|
|
1574
1612
|
class: "d-block user-info-span"
|
|
1575
|
-
},
|
|
1613
|
+
}, sn = { class: "user-detail-popper d-flex align-items-center" }, cn = { class: "user-avatar flex-shrink-0" }, ln = ["src", "alt"], un = {
|
|
1576
1614
|
key: 1,
|
|
1577
1615
|
class: "avatar-initials"
|
|
1578
|
-
},
|
|
1616
|
+
}, dn = { class: "user-info ms-3" }, fn = { key: 0 }, pn = { class: "text-uppercase" }, mn = ["href"], hn = { key: 1 }, gn = {
|
|
1579
1617
|
__name: "UserDetailTooltip",
|
|
1580
1618
|
props: {
|
|
1581
1619
|
user: {
|
|
@@ -1605,42 +1643,42 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
1605
1643
|
},
|
|
1606
1644
|
setup(e) {
|
|
1607
1645
|
let t = e, n = o(() => `${t.user.first_name.slice(0, 1)}${t.user.last_name.slice(0, 1)}`);
|
|
1608
|
-
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), {
|
|
1609
1647
|
arrow: "",
|
|
1610
1648
|
click: ""
|
|
1611
1649
|
}, {
|
|
1612
|
-
content: F(() => [u("div",
|
|
1650
|
+
content: F(() => [u("div", sn, [u("div", cn, [e.user.avatar_thumb_url ? (S(), l("img", {
|
|
1613
1651
|
key: 0,
|
|
1614
1652
|
src: e.user.avatar_thumb_url,
|
|
1615
1653
|
class: "avatar-photo",
|
|
1616
1654
|
alt: e.user.full_name
|
|
1617
|
-
}, null, 8,
|
|
1618
|
-
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)]),
|
|
1619
1657
|
e.user.email ? (S(), l("a", {
|
|
1620
1658
|
key: 0,
|
|
1621
1659
|
href: "mailto:" + e.user.email
|
|
1622
|
-
}, D(e.user.email), 9,
|
|
1623
|
-
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)
|
|
1624
1662
|
])])]),
|
|
1625
|
-
default: F(() => [u("div",
|
|
1663
|
+
default: F(() => [u("div", en, [e.user.avatar_thumb_url ? (S(), l("img", {
|
|
1626
1664
|
key: 0,
|
|
1627
1665
|
src: e.user.avatar_thumb_url,
|
|
1628
1666
|
class: "avatar-photo",
|
|
1629
1667
|
alt: e.user.full_name
|
|
1630
|
-
}, 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)])]),
|
|
1631
1669
|
_: 1
|
|
1632
1670
|
})]));
|
|
1633
1671
|
}
|
|
1634
|
-
},
|
|
1672
|
+
}, _n = {
|
|
1635
1673
|
key: 0,
|
|
1636
1674
|
class: "row"
|
|
1637
|
-
},
|
|
1675
|
+
}, vn = { class: "col-sm" }, yn = { class: "pagination-caption" }, bn = { class: "col-sm-auto" }, xn = {
|
|
1638
1676
|
key: 0,
|
|
1639
1677
|
class: "page-link"
|
|
1640
|
-
},
|
|
1678
|
+
}, Sn = { "aria-hidden": "true" }, Cn = ["aria-label"], wn = { "aria-hidden": "true" }, Tn = ["onClick"], En = {
|
|
1641
1679
|
key: 0,
|
|
1642
1680
|
class: "page-link"
|
|
1643
|
-
},
|
|
1681
|
+
}, Dn = { "aria-hidden": "true" }, On = ["aria-label"], kn = { "aria-hidden": "true" }, An = {
|
|
1644
1682
|
__name: "Pagination",
|
|
1645
1683
|
props: {
|
|
1646
1684
|
pagination: {
|
|
@@ -1691,7 +1729,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
1691
1729
|
function g(e) {
|
|
1692
1730
|
n.pagination.current_page !== e && r("page-change", e);
|
|
1693
1731
|
}
|
|
1694
|
-
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", {
|
|
1695
1733
|
key: 0,
|
|
1696
1734
|
class: _(["pagination", p.value])
|
|
1697
1735
|
}, [
|
|
@@ -1701,13 +1739,13 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
1701
1739
|
disabled: e.pagination.current_page <= 1,
|
|
1702
1740
|
"page-item": !0
|
|
1703
1741
|
})
|
|
1704
|
-
}, [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", {
|
|
1705
1743
|
key: 1,
|
|
1706
1744
|
href: "#",
|
|
1707
1745
|
"aria-label": e.translations.previous,
|
|
1708
1746
|
class: "page-link",
|
|
1709
1747
|
onClick: n[0] ||= R((t) => g(e.pagination.current_page - 1), ["prevent"])
|
|
1710
|
-
}, [u("span",
|
|
1748
|
+
}, [u("span", wn, D(e.translations.previous), 1)], 8, Cn)) : c("", !0)], 2)) : c("", !0),
|
|
1711
1749
|
(S(!0), l(i, null, T(f.value, (t) => (S(), l("li", {
|
|
1712
1750
|
key: t,
|
|
1713
1751
|
class: _({
|
|
@@ -1718,23 +1756,23 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
1718
1756
|
href: "#",
|
|
1719
1757
|
class: "page-link",
|
|
1720
1758
|
onClick: R((e) => g(t), ["prevent"])
|
|
1721
|
-
}, D(t), 9,
|
|
1759
|
+
}, D(t), 9, Tn)], 2))), 128)),
|
|
1722
1760
|
h() ? (S(), l("li", {
|
|
1723
1761
|
key: 1,
|
|
1724
1762
|
class: _({
|
|
1725
1763
|
disabled: e.pagination.current_page === e.pagination.last_page || e.pagination.last_page === 0,
|
|
1726
1764
|
"page-item": !0
|
|
1727
1765
|
})
|
|
1728
|
-
}, [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", {
|
|
1729
1767
|
key: 1,
|
|
1730
1768
|
href: "#",
|
|
1731
1769
|
"aria-label": e.translations.next,
|
|
1732
1770
|
class: "page-link",
|
|
1733
1771
|
onClick: n[1] ||= R((t) => g(e.pagination.current_page + 1), ["prevent"])
|
|
1734
|
-
}, [u("span",
|
|
1772
|
+
}, [u("span", kn, D(e.translations.next), 1)], 8, On)) : c("", !0)], 2)) : c("", !0)
|
|
1735
1773
|
], 2)) : c("", !0)])])])) : c("", !0);
|
|
1736
1774
|
}
|
|
1737
|
-
},
|
|
1775
|
+
}, Z = {
|
|
1738
1776
|
__name: "Sortable",
|
|
1739
1777
|
props: {
|
|
1740
1778
|
column: {
|
|
@@ -1761,7 +1799,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
1761
1799
|
"fa-arrow-down-short-wide": e.orderBy.column === e.column && e.orderBy.direction === "desc"
|
|
1762
1800
|
}]) }, null, 2), E(t.$slots, "default")])]));
|
|
1763
1801
|
}
|
|
1764
|
-
},
|
|
1802
|
+
}, jn = { class: "input-group" }, Mn = { class: "form-control d-flex align-items-center p-0" }, Nn = ["placeholder", "value"], Pn = {
|
|
1765
1803
|
__name: "Search",
|
|
1766
1804
|
props: {
|
|
1767
1805
|
search: {
|
|
@@ -1807,9 +1845,9 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
1807
1845
|
function m() {
|
|
1808
1846
|
o(), r("update:search", ""), n.filterFn("search", "");
|
|
1809
1847
|
}
|
|
1810
|
-
return b(o), (t, n) => (S(), l("div",
|
|
1848
|
+
return b(o), (t, n) => (S(), l("div", jn, [
|
|
1811
1849
|
E(t.$slots, "prepend"),
|
|
1812
|
-
u("div",
|
|
1850
|
+
u("div", Mn, [u("input", {
|
|
1813
1851
|
ref_key: "inputRef",
|
|
1814
1852
|
ref: i,
|
|
1815
1853
|
class: "border-0 shadow-none ps-3 flex-grow-1",
|
|
@@ -1821,7 +1859,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
1821
1859
|
value: e.search,
|
|
1822
1860
|
onInput: s,
|
|
1823
1861
|
onKeyup: L(p, ["enter"])
|
|
1824
|
-
}, null, 40,
|
|
1862
|
+
}, null, 40, Nn), e.search ? (S(), l("button", {
|
|
1825
1863
|
key: 0,
|
|
1826
1864
|
type: "button",
|
|
1827
1865
|
class: "border-0 bg-transparent pe-1 ps-0 flex-shrink-0 text-danger",
|
|
@@ -1834,7 +1872,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
1834
1872
|
}, [n[1] ||= u("i", { class: "fa fa-search" }, null, -1), d("\xA0 " + D(e.translations.search_btn), 1)])
|
|
1835
1873
|
]));
|
|
1836
1874
|
}
|
|
1837
|
-
},
|
|
1875
|
+
}, Fn = ["value"], In = {
|
|
1838
1876
|
__name: "PerPage",
|
|
1839
1877
|
props: { modelValue: {
|
|
1840
1878
|
type: [Number, String],
|
|
@@ -1850,12 +1888,12 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
1850
1888
|
u("option", { value: "10" }, "10", -1),
|
|
1851
1889
|
u("option", { value: "25" }, "25", -1),
|
|
1852
1890
|
u("option", { value: "100" }, "100", -1)
|
|
1853
|
-
]], 40,
|
|
1891
|
+
]], 40, Fn));
|
|
1854
1892
|
}
|
|
1855
|
-
},
|
|
1893
|
+
}, Ln = {
|
|
1856
1894
|
key: 0,
|
|
1857
1895
|
class: "no-items-found"
|
|
1858
|
-
},
|
|
1896
|
+
}, Rn = ["href"], zn = {
|
|
1859
1897
|
__name: "EmptyState",
|
|
1860
1898
|
props: {
|
|
1861
1899
|
show: {
|
|
@@ -1876,7 +1914,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
1876
1914
|
}
|
|
1877
1915
|
},
|
|
1878
1916
|
setup(e) {
|
|
1879
|
-
return (t, n) => e.show ? (S(), l("div",
|
|
1917
|
+
return (t, n) => e.show ? (S(), l("div", Ln, [
|
|
1880
1918
|
n[1] ||= u("i", { class: "fa fa-magnifying-glass" }, null, -1),
|
|
1881
1919
|
u("h3", null, D(e.translations.no_items), 1),
|
|
1882
1920
|
u("p", null, D(e.translations.try_changing_items), 1),
|
|
@@ -1885,10 +1923,10 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
1885
1923
|
class: "btn btn-primary btn-spinner",
|
|
1886
1924
|
href: e.createUrl,
|
|
1887
1925
|
role: "button"
|
|
1888
|
-
}, [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)
|
|
1889
1927
|
])) : c("", !0);
|
|
1890
1928
|
}
|
|
1891
|
-
},
|
|
1929
|
+
}, Bn = ["checked"], Vn = {
|
|
1892
1930
|
__name: "BulkCheckboxHeader",
|
|
1893
1931
|
props: {
|
|
1894
1932
|
isClickedAll: {
|
|
@@ -1908,17 +1946,17 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
1908
1946
|
checked: e.isClickedAll,
|
|
1909
1947
|
name: "enabled_fake_element",
|
|
1910
1948
|
onClick: n[0] ||= (t) => e.onToggleAll()
|
|
1911
|
-
}, null, 8,
|
|
1949
|
+
}, null, 8, Bn), n[1] ||= u("label", {
|
|
1912
1950
|
class: "form-check-label",
|
|
1913
1951
|
for: "enabled"
|
|
1914
1952
|
}, " # ", -1)], 64));
|
|
1915
1953
|
}
|
|
1916
|
-
},
|
|
1954
|
+
}, Hn = [
|
|
1917
1955
|
"id",
|
|
1918
1956
|
"checked",
|
|
1919
1957
|
"name",
|
|
1920
1958
|
"disabled"
|
|
1921
|
-
],
|
|
1959
|
+
], Un = ["for"], Wn = {
|
|
1922
1960
|
__name: "BulkCheckboxRow",
|
|
1923
1961
|
props: {
|
|
1924
1962
|
itemId: {
|
|
@@ -1947,18 +1985,18 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
1947
1985
|
name: "enabled" + e.itemId + "_fake_element",
|
|
1948
1986
|
disabled: e.disabled,
|
|
1949
1987
|
onClick: n[0] ||= (t) => e.onToggle(e.itemId)
|
|
1950
|
-
}, null, 8,
|
|
1988
|
+
}, null, 8, Hn), u("label", {
|
|
1951
1989
|
class: "form-check-label",
|
|
1952
1990
|
for: "enabled" + e.itemId
|
|
1953
|
-
}, null, 8,
|
|
1991
|
+
}, null, 8, Un)], 64));
|
|
1954
1992
|
}
|
|
1955
|
-
},
|
|
1993
|
+
}, Gn = { class: "align-middle fw-light text-dark" }, Kn = {
|
|
1956
1994
|
key: 0,
|
|
1957
1995
|
class: "fa fa-spinner"
|
|
1958
|
-
},
|
|
1996
|
+
}, qn = {
|
|
1959
1997
|
key: 1,
|
|
1960
1998
|
class: "text-primary"
|
|
1961
|
-
},
|
|
1999
|
+
}, Jn = { class: "float-end pe-2" }, Yn = { class: "d-inline-flex gap-2" }, Xn = {
|
|
1962
2000
|
__name: "BulkOperationsBar",
|
|
1963
2001
|
props: {
|
|
1964
2002
|
selectedCount: {
|
|
@@ -1983,7 +2021,15 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
1983
2021
|
},
|
|
1984
2022
|
onBulkDelete: {
|
|
1985
2023
|
type: Function,
|
|
1986
|
-
|
|
2024
|
+
default: null
|
|
2025
|
+
},
|
|
2026
|
+
onBulkForceDelete: {
|
|
2027
|
+
type: Function,
|
|
2028
|
+
default: null
|
|
2029
|
+
},
|
|
2030
|
+
onBulkRestore: {
|
|
2031
|
+
type: Function,
|
|
2032
|
+
default: null
|
|
1987
2033
|
},
|
|
1988
2034
|
translations: {
|
|
1989
2035
|
type: Object,
|
|
@@ -1991,34 +2037,49 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
1991
2037
|
selected_items: "Selected items",
|
|
1992
2038
|
check_all_items: "Check all items",
|
|
1993
2039
|
uncheck_all_items: "Uncheck all items",
|
|
1994
|
-
delete_btn: "Delete"
|
|
2040
|
+
delete_btn: "Delete",
|
|
2041
|
+
force_delete_btn: "Delete permanently",
|
|
2042
|
+
restore_btn: "Restore"
|
|
1995
2043
|
})
|
|
1996
2044
|
}
|
|
1997
2045
|
},
|
|
1998
2046
|
setup(e) {
|
|
1999
|
-
return (t, n) => (S(), l(i, null, [u("span",
|
|
2047
|
+
return (t, n) => (S(), l(i, null, [u("span", Gn, [
|
|
2000
2048
|
d(D(e.translations.selected_items) + " " + D(e.selectedCount) + ". ", 1),
|
|
2001
2049
|
e.selectedCount < e.totalCount ? (S(), l("a", {
|
|
2002
2050
|
key: 0,
|
|
2003
2051
|
href: "javascript:void(0)",
|
|
2004
2052
|
class: "text-primary",
|
|
2005
2053
|
onClick: n[0] ||= (t) => e.onCheckAll()
|
|
2006
|
-
}, [e.loading ? (S(), l("i",
|
|
2007
|
-
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),
|
|
2008
2056
|
u("a", {
|
|
2009
2057
|
href: "javascript:void(0)",
|
|
2010
2058
|
class: "text-primary",
|
|
2011
2059
|
onClick: n[1] ||= (t) => e.onUncheckAll()
|
|
2012
2060
|
}, D(e.translations.uncheck_all_items), 1)
|
|
2013
|
-
]), u("span",
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
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));
|
|
2017
2078
|
}
|
|
2018
|
-
},
|
|
2079
|
+
}, Zn = {
|
|
2019
2080
|
class: "modal-dialog modal-dialog-centered",
|
|
2020
2081
|
role: "document"
|
|
2021
|
-
},
|
|
2082
|
+
}, Qn = { class: "modal-content" }, $n = { class: "modal-header" }, er = { class: "modal-title" }, tr = { class: "modal-body" }, nr = { class: "modal-footer" }, Q = {
|
|
2022
2083
|
__name: "ConfirmModal",
|
|
2023
2084
|
props: {
|
|
2024
2085
|
show: {
|
|
@@ -2061,14 +2122,14 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2061
2122
|
tabindex: "-1",
|
|
2062
2123
|
role: "dialog",
|
|
2063
2124
|
onClick: i[4] ||= R((e) => t.$emit("cancel"), ["self"])
|
|
2064
|
-
}, [u("div",
|
|
2065
|
-
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", {
|
|
2066
2127
|
type: "button",
|
|
2067
2128
|
class: "btn-close",
|
|
2068
2129
|
onClick: i[1] ||= (e) => t.$emit("cancel")
|
|
2069
2130
|
})]),
|
|
2070
|
-
u("div",
|
|
2071
|
-
u("div",
|
|
2131
|
+
u("div", tr, [u("p", null, D(e.translations.confirm_text), 1)]),
|
|
2132
|
+
u("div", nr, [u("button", {
|
|
2072
2133
|
type: "button",
|
|
2073
2134
|
class: "btn btn-secondary",
|
|
2074
2135
|
onClick: i[2] ||= (e) => t.$emit("cancel")
|
|
@@ -2079,10 +2140,10 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2079
2140
|
}, D(e.translations.confirm_btn), 3)])
|
|
2080
2141
|
])])])) : c("", !0)]));
|
|
2081
2142
|
}
|
|
2082
|
-
},
|
|
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 = {
|
|
2083
2144
|
key: 6,
|
|
2084
2145
|
class: "publish-later-modal"
|
|
2085
|
-
},
|
|
2146
|
+
}, pr = { class: "d-flex justify-content-between align-items-center mb-2" }, mr = { class: "mt-2 text-end" }, hr = ["disabled"], gr = {
|
|
2086
2147
|
__name: "PublishedAtColumn",
|
|
2087
2148
|
props: {
|
|
2088
2149
|
item: {
|
|
@@ -2115,7 +2176,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2115
2176
|
},
|
|
2116
2177
|
emits: ["update:item"],
|
|
2117
2178
|
setup(e, { emit: t }) {
|
|
2118
|
-
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");
|
|
2119
2180
|
function y() {
|
|
2120
2181
|
p.value = a.item.published_at || null, s.value = !0;
|
|
2121
2182
|
}
|
|
@@ -2179,8 +2240,8 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2179
2240
|
});
|
|
2180
2241
|
}
|
|
2181
2242
|
return (t, n) => (S(), l(i, null, [
|
|
2182
|
-
e.item.published_at <= e.now ? (S(), l("span",
|
|
2183
|
-
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, [
|
|
2184
2245
|
u("small", null, D(e.translations.will_be_published), 1),
|
|
2185
2246
|
n[9] ||= u("br", null, null, -1),
|
|
2186
2247
|
d(" " + D(k(q)(e.item.published_at, e.datetimeFormat)) + " ", 1),
|
|
@@ -2189,15 +2250,15 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2189
2250
|
title: e.translations.publish_later,
|
|
2190
2251
|
role: "button",
|
|
2191
2252
|
onClick: n[0] ||= (e) => y()
|
|
2192
|
-
}, [...n[8] ||= [u("i", { class: "fa fa-calendar" }, null, -1)]], 8,
|
|
2253
|
+
}, [...n[8] ||= [u("i", { class: "fa fa-calendar" }, null, -1)]], 8, ar)
|
|
2193
2254
|
])) : c("", !0),
|
|
2194
|
-
e.item.published_at ? c("", !0) : (S(), l("div",
|
|
2255
|
+
e.item.published_at ? c("", !0) : (S(), l("div", or, [u("span", {
|
|
2195
2256
|
class: "btn btn-sm btn-info text-white mb-1",
|
|
2196
2257
|
title: e.translations.publish_later,
|
|
2197
2258
|
role: "button",
|
|
2198
2259
|
onClick: n[1] ||= (e) => y()
|
|
2199
|
-
}, [n[10] ||= u("i", { class: "fa fa-calendar" }, null, -1), d("\xA0\xA0" + D(e.translations.publish_later), 1)], 8,
|
|
2200
|
-
!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", {
|
|
2201
2262
|
class: "d-inline",
|
|
2202
2263
|
onSubmit: n[2] ||= R((e) => x(), ["prevent"])
|
|
2203
2264
|
}, [u("button", {
|
|
@@ -2205,8 +2266,8 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2205
2266
|
class: "btn btn-sm btn-success text-white",
|
|
2206
2267
|
title: e.translations.publish_now,
|
|
2207
2268
|
disabled: m.value
|
|
2208
|
-
}, [n[11] ||= u("i", { class: "fa fa-paper-plane" }, null, -1), d("\xA0\xA0" + D(e.translations.publish_now), 1)], 8,
|
|
2209
|
-
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", {
|
|
2210
2271
|
class: "d-inline",
|
|
2211
2272
|
onSubmit: n[3] ||= R((e) => C(), ["prevent"])
|
|
2212
2273
|
}, [u("button", {
|
|
@@ -2214,14 +2275,14 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2214
2275
|
class: "btn btn-sm btn-danger",
|
|
2215
2276
|
title: e.translations.unpublish_now,
|
|
2216
2277
|
disabled: m.value
|
|
2217
|
-
}, [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),
|
|
2218
2279
|
s.value ? (S(), l("div", {
|
|
2219
2280
|
key: 5,
|
|
2220
2281
|
class: "publish-later-backdrop",
|
|
2221
2282
|
onClick: n[4] ||= R((e) => s.value = !1, ["self"])
|
|
2222
2283
|
})) : c("", !0),
|
|
2223
|
-
s.value ? (S(), l("div",
|
|
2224
|
-
u("div",
|
|
2284
|
+
s.value ? (S(), l("div", fr, [
|
|
2285
|
+
u("div", pr, [u("strong", null, D(e.translations.publish_later), 1), u("button", {
|
|
2225
2286
|
type: "button",
|
|
2226
2287
|
class: "btn-close btn-close-sm",
|
|
2227
2288
|
"aria-label": "Close",
|
|
@@ -2238,13 +2299,13 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2238
2299
|
inline: !0,
|
|
2239
2300
|
"auto-apply": ""
|
|
2240
2301
|
}, null, 8, ["modelValue", "format-locale"]),
|
|
2241
|
-
u("div",
|
|
2302
|
+
u("div", mr, [u("button", {
|
|
2242
2303
|
class: "btn btn-sm btn-primary text-white",
|
|
2243
2304
|
disabled: m.value || !p.value,
|
|
2244
2305
|
onClick: n[7] ||= (e) => b()
|
|
2245
|
-
}, " Save ", 8,
|
|
2306
|
+
}, " Save ", 8, hr)])
|
|
2246
2307
|
])) : c("", !0),
|
|
2247
|
-
f(
|
|
2308
|
+
f(Q, {
|
|
2248
2309
|
show: h.value,
|
|
2249
2310
|
translations: _.value,
|
|
2250
2311
|
variant: v.value,
|
|
@@ -2257,7 +2318,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2257
2318
|
])
|
|
2258
2319
|
], 64));
|
|
2259
2320
|
}
|
|
2260
|
-
},
|
|
2321
|
+
}, _r = ["href"], vr = ["href"], yr = {
|
|
2261
2322
|
__name: "ListingHeader",
|
|
2262
2323
|
props: {
|
|
2263
2324
|
createUrl: {
|
|
@@ -2286,16 +2347,16 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2286
2347
|
class: "btn btn-primary btn-sm float-end mb-0 ms-2",
|
|
2287
2348
|
href: e.exportUrl,
|
|
2288
2349
|
role: "button"
|
|
2289
|
-
}, [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),
|
|
2290
2351
|
e.createUrl ? (S(), l("a", {
|
|
2291
2352
|
key: 1,
|
|
2292
2353
|
class: "btn btn-primary btn-spinner btn-sm float-end mb-0",
|
|
2293
2354
|
href: e.createUrl,
|
|
2294
2355
|
role: "button"
|
|
2295
|
-
}, [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)
|
|
2296
2357
|
], 64));
|
|
2297
2358
|
}
|
|
2298
|
-
},
|
|
2359
|
+
}, br = ["href", "title"], xr = {
|
|
2299
2360
|
__name: "ShowButton",
|
|
2300
2361
|
props: {
|
|
2301
2362
|
url: {
|
|
@@ -2313,9 +2374,9 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2313
2374
|
href: e.url,
|
|
2314
2375
|
title: e.translations.show_btn,
|
|
2315
2376
|
role: "button"
|
|
2316
|
-
}, [...n[0] ||= [u("i", { class: "fa fa-eye" }, null, -1)]], 8,
|
|
2377
|
+
}, [...n[0] ||= [u("i", { class: "fa fa-eye" }, null, -1)]], 8, br));
|
|
2317
2378
|
}
|
|
2318
|
-
},
|
|
2379
|
+
}, Sr = ["href", "title"], Cr = {
|
|
2319
2380
|
__name: "EditButton",
|
|
2320
2381
|
props: {
|
|
2321
2382
|
url: {
|
|
@@ -2333,9 +2394,9 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2333
2394
|
href: e.url,
|
|
2334
2395
|
title: e.translations.edit_btn,
|
|
2335
2396
|
role: "button"
|
|
2336
|
-
}, [...n[0] ||= [u("i", { class: "fa fa-edit" }, null, -1)]], 8,
|
|
2397
|
+
}, [...n[0] ||= [u("i", { class: "fa fa-edit" }, null, -1)]], 8, Sr));
|
|
2337
2398
|
}
|
|
2338
|
-
},
|
|
2399
|
+
}, wr = ["title"], Tr = {
|
|
2339
2400
|
__name: "DeleteButton",
|
|
2340
2401
|
props: {
|
|
2341
2402
|
url: {
|
|
@@ -2368,14 +2429,124 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2368
2429
|
class: "btn btn-sm btn-danger",
|
|
2369
2430
|
title: e.translations.delete_btn,
|
|
2370
2431
|
onClick: n[0] ||= (e) => o.value = !0
|
|
2371
|
-
}, [...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, {
|
|
2372
2433
|
show: o.value,
|
|
2373
2434
|
translations: e.translations,
|
|
2374
2435
|
onConfirm: s,
|
|
2375
2436
|
onCancel: n[1] ||= (e) => o.value = !1
|
|
2376
2437
|
}, null, 8, ["show", "translations"])], 64));
|
|
2377
2438
|
}
|
|
2378
|
-
},
|
|
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, {
|
|
2520
|
+
show: o.value,
|
|
2521
|
+
variant: "success",
|
|
2522
|
+
translations: e.translations,
|
|
2523
|
+
onConfirm: s,
|
|
2524
|
+
onCancel: n[1] ||= (e) => o.value = !1
|
|
2525
|
+
}, null, 8, ["show", "translations"])], 64));
|
|
2526
|
+
}
|
|
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 = {
|
|
2379
2550
|
__name: "BackButton",
|
|
2380
2551
|
props: {
|
|
2381
2552
|
url: {
|
|
@@ -2391,9 +2562,9 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2391
2562
|
return (t, n) => (S(), l("a", {
|
|
2392
2563
|
class: "btn btn-sm btn-outline-secondary",
|
|
2393
2564
|
href: e.url
|
|
2394
|
-
}, [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));
|
|
2395
2566
|
}
|
|
2396
|
-
},
|
|
2567
|
+
}, Lr = { class: "form-check form-switch form-switch-inline" }, Rr = ["checked"], zr = {
|
|
2397
2568
|
__name: "ToggleSwitch",
|
|
2398
2569
|
props: {
|
|
2399
2570
|
modelValue: {
|
|
@@ -2437,15 +2608,15 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2437
2608
|
i("update:modelValue", r.modelValue), G(e.response?.data?.message);
|
|
2438
2609
|
});
|
|
2439
2610
|
}
|
|
2440
|
-
return (t, n) => (S(), l("div",
|
|
2611
|
+
return (t, n) => (S(), l("div", Lr, [u("input", {
|
|
2441
2612
|
class: _(["form-check-input", a.value]),
|
|
2442
2613
|
type: "checkbox",
|
|
2443
2614
|
role: "switch",
|
|
2444
2615
|
checked: !!e.modelValue,
|
|
2445
2616
|
onChange: s
|
|
2446
|
-
}, null, 42,
|
|
2617
|
+
}, null, 42, Rr)]));
|
|
2447
2618
|
}
|
|
2448
|
-
},
|
|
2619
|
+
}, Br = { class: "form-check form-switch form-switch-inline" }, Vr = ["checked"], Hr = {
|
|
2449
2620
|
__name: "ReadOnlySwitch",
|
|
2450
2621
|
props: {
|
|
2451
2622
|
modelValue: {
|
|
@@ -2463,15 +2634,15 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2463
2634
|
},
|
|
2464
2635
|
setup(e) {
|
|
2465
2636
|
let t = e, n = o(() => `form-switch-${t.variant}`);
|
|
2466
|
-
return (t, r) => (S(), l("div",
|
|
2637
|
+
return (t, r) => (S(), l("div", Br, [u("input", {
|
|
2467
2638
|
class: _(["form-check-input", n.value]),
|
|
2468
2639
|
type: "checkbox",
|
|
2469
2640
|
role: "switch",
|
|
2470
2641
|
checked: !!e.modelValue,
|
|
2471
2642
|
disabled: ""
|
|
2472
|
-
}, null, 10,
|
|
2643
|
+
}, null, 10, Vr)]));
|
|
2473
2644
|
}
|
|
2474
|
-
},
|
|
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 = {
|
|
2475
2646
|
__name: "ShowRow",
|
|
2476
2647
|
props: {
|
|
2477
2648
|
label: {
|
|
@@ -2488,18 +2659,18 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2488
2659
|
}
|
|
2489
2660
|
},
|
|
2490
2661
|
setup(e) {
|
|
2491
|
-
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)])])]));
|
|
2492
2663
|
}
|
|
2493
|
-
},
|
|
2664
|
+
}, qr = { class: "mb-3 row align-items-center" }, Jr = ["for"], Yr = { class: "col-md-9 col-xl-8" }, Xr = [
|
|
2494
2665
|
"id",
|
|
2495
2666
|
"type",
|
|
2496
2667
|
"value",
|
|
2497
2668
|
"name",
|
|
2498
2669
|
"placeholder"
|
|
2499
|
-
],
|
|
2670
|
+
], Zr = {
|
|
2500
2671
|
key: 0,
|
|
2501
2672
|
class: "invalid-feedback form-text"
|
|
2502
|
-
},
|
|
2673
|
+
}, Qr = {
|
|
2503
2674
|
__name: "FormInput",
|
|
2504
2675
|
props: {
|
|
2505
2676
|
modelValue: {
|
|
@@ -2529,10 +2700,10 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2529
2700
|
},
|
|
2530
2701
|
emits: ["update:modelValue"],
|
|
2531
2702
|
setup(e) {
|
|
2532
|
-
return (t, n) => (S(), l("div",
|
|
2703
|
+
return (t, n) => (S(), l("div", qr, [u("label", {
|
|
2533
2704
|
for: e.name,
|
|
2534
2705
|
class: "col-md-3 col-form-label text-md-end"
|
|
2535
|
-
}, D(e.label), 9,
|
|
2706
|
+
}, D(e.label), 9, Jr), u("div", Yr, [u("input", {
|
|
2536
2707
|
id: e.name,
|
|
2537
2708
|
type: e.type,
|
|
2538
2709
|
value: e.modelValue,
|
|
@@ -2540,9 +2711,9 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2540
2711
|
name: e.name,
|
|
2541
2712
|
placeholder: e.placeholder || e.label,
|
|
2542
2713
|
onInput: n[0] ||= (e) => t.$emit("update:modelValue", e.target.value)
|
|
2543
|
-
}, null, 42,
|
|
2714
|
+
}, null, 42, Xr), e.error ? (S(), l("div", Zr, D(e.error), 1)) : c("", !0)])]));
|
|
2544
2715
|
}
|
|
2545
|
-
},
|
|
2716
|
+
}, $r = {
|
|
2546
2717
|
__name: "FormEmail",
|
|
2547
2718
|
props: {
|
|
2548
2719
|
modelValue: {
|
|
@@ -2568,21 +2739,21 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2568
2739
|
},
|
|
2569
2740
|
emits: ["update:modelValue"],
|
|
2570
2741
|
setup(e) {
|
|
2571
|
-
return (e, t) => (S(), s(
|
|
2742
|
+
return (e, t) => (S(), s(Qr, g(e.$props, {
|
|
2572
2743
|
type: "email",
|
|
2573
2744
|
"onUpdate:modelValue": t[0] ||= (t) => e.$emit("update:modelValue", t)
|
|
2574
2745
|
}), null, 16));
|
|
2575
2746
|
}
|
|
2576
|
-
},
|
|
2747
|
+
}, ei = { class: "mb-3 row align-items-center" }, ti = ["for"], ni = { class: "col-md-9 col-xl-8" }, ri = [
|
|
2577
2748
|
"id",
|
|
2578
2749
|
"value",
|
|
2579
2750
|
"name",
|
|
2580
2751
|
"placeholder",
|
|
2581
2752
|
"rows"
|
|
2582
|
-
],
|
|
2753
|
+
], ii = {
|
|
2583
2754
|
key: 0,
|
|
2584
2755
|
class: "invalid-feedback form-text"
|
|
2585
|
-
},
|
|
2756
|
+
}, ai = {
|
|
2586
2757
|
__name: "FormTextarea",
|
|
2587
2758
|
props: {
|
|
2588
2759
|
modelValue: {
|
|
@@ -2612,10 +2783,10 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2612
2783
|
},
|
|
2613
2784
|
emits: ["update:modelValue"],
|
|
2614
2785
|
setup(e) {
|
|
2615
|
-
return (t, n) => (S(), l("div",
|
|
2786
|
+
return (t, n) => (S(), l("div", ei, [u("label", {
|
|
2616
2787
|
for: e.name,
|
|
2617
2788
|
class: "col-md-3 col-form-label text-md-end"
|
|
2618
|
-
}, D(e.label), 9,
|
|
2789
|
+
}, D(e.label), 9, ti), u("div", ni, [u("textarea", {
|
|
2619
2790
|
id: e.name,
|
|
2620
2791
|
value: e.modelValue,
|
|
2621
2792
|
class: _(["form-control", { "is-invalid": e.error }]),
|
|
@@ -2623,16 +2794,16 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2623
2794
|
placeholder: e.placeholder || e.label,
|
|
2624
2795
|
rows: e.rows,
|
|
2625
2796
|
onInput: n[0] ||= (e) => t.$emit("update:modelValue", e.target.value)
|
|
2626
|
-
}, null, 42,
|
|
2797
|
+
}, null, 42, ri), e.error ? (S(), l("div", ii, D(e.error), 1)) : c("", !0)])]));
|
|
2627
2798
|
}
|
|
2628
|
-
},
|
|
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 = [
|
|
2629
2800
|
"id",
|
|
2630
2801
|
"checked",
|
|
2631
2802
|
"name"
|
|
2632
|
-
],
|
|
2803
|
+
], ui = ["for"], di = {
|
|
2633
2804
|
key: 0,
|
|
2634
2805
|
class: "invalid-feedback d-block form-text"
|
|
2635
|
-
},
|
|
2806
|
+
}, fi = {
|
|
2636
2807
|
__name: "FormCheckbox",
|
|
2637
2808
|
props: {
|
|
2638
2809
|
modelValue: {
|
|
@@ -2654,26 +2825,26 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2654
2825
|
},
|
|
2655
2826
|
emits: ["update:modelValue"],
|
|
2656
2827
|
setup(e) {
|
|
2657
|
-
return (t, n) => (S(), l("div",
|
|
2828
|
+
return (t, n) => (S(), l("div", oi, [u("div", si, [u("div", ci, [u("input", {
|
|
2658
2829
|
id: e.name,
|
|
2659
2830
|
class: "form-check-input",
|
|
2660
2831
|
type: "checkbox",
|
|
2661
2832
|
checked: e.modelValue,
|
|
2662
2833
|
name: e.name,
|
|
2663
2834
|
onChange: n[0] ||= (e) => t.$emit("update:modelValue", e.target.checked)
|
|
2664
|
-
}, null, 40,
|
|
2835
|
+
}, null, 40, li), u("label", {
|
|
2665
2836
|
class: "form-check-label",
|
|
2666
2837
|
for: e.name
|
|
2667
|
-
}, D(e.label), 9,
|
|
2838
|
+
}, D(e.label), 9, ui)]), e.error ? (S(), l("div", di, D(e.error), 1)) : c("", !0)])]));
|
|
2668
2839
|
}
|
|
2669
2840
|
}, $ = (e, t) => {
|
|
2670
2841
|
let n = e.__vccOpts || e;
|
|
2671
2842
|
for (let [e, r] of t) n[e] = r;
|
|
2672
2843
|
return n;
|
|
2673
|
-
},
|
|
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 = {
|
|
2674
2845
|
key: 0,
|
|
2675
2846
|
class: "invalid-feedback d-block form-text"
|
|
2676
|
-
},
|
|
2847
|
+
}, yi = /*#__PURE__*/ $({
|
|
2677
2848
|
__name: "FormDatePicker",
|
|
2678
2849
|
props: {
|
|
2679
2850
|
modelValue: {
|
|
@@ -2711,10 +2882,10 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2711
2882
|
},
|
|
2712
2883
|
emits: ["update:modelValue"],
|
|
2713
2884
|
setup(e) {
|
|
2714
|
-
return (t, n) => (S(), l("div",
|
|
2885
|
+
return (t, n) => (S(), l("div", pi, [u("label", {
|
|
2715
2886
|
for: e.name,
|
|
2716
2887
|
class: "col-md-3 col-form-label text-md-end"
|
|
2717
|
-
}, 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, {
|
|
2718
2889
|
id: e.name,
|
|
2719
2890
|
"model-value": e.modelValue,
|
|
2720
2891
|
class: ["datepicker-input", { "is-invalid": e.error }],
|
|
@@ -2741,12 +2912,12 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2741
2912
|
"time-config",
|
|
2742
2913
|
"formats",
|
|
2743
2914
|
"locale"
|
|
2744
|
-
])]), e.error ? (S(), l("div",
|
|
2915
|
+
])]), e.error ? (S(), l("div", vi, D(e.error), 1)) : c("", !0)])]));
|
|
2745
2916
|
}
|
|
2746
|
-
}, [["__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 = {
|
|
2747
2918
|
key: 0,
|
|
2748
2919
|
class: "invalid-feedback d-block form-text"
|
|
2749
|
-
},
|
|
2920
|
+
}, wi = {
|
|
2750
2921
|
__name: "FormWysiwyg",
|
|
2751
2922
|
props: {
|
|
2752
2923
|
modelValue: {
|
|
@@ -2776,10 +2947,10 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2776
2947
|
},
|
|
2777
2948
|
emits: ["update:modelValue"],
|
|
2778
2949
|
setup(e) {
|
|
2779
|
-
return (t, n) => (S(), l("div",
|
|
2950
|
+
return (t, n) => (S(), l("div", bi, [u("label", {
|
|
2780
2951
|
for: e.name,
|
|
2781
2952
|
class: "col-md-3 col-form-label text-md-end"
|
|
2782
|
-
}, D(e.label), 9,
|
|
2953
|
+
}, D(e.label), 9, xi), u("div", Si, [f(Zt, g({
|
|
2783
2954
|
id: e.name,
|
|
2784
2955
|
"model-value": e.modelValue,
|
|
2785
2956
|
name: e.name,
|
|
@@ -2789,12 +2960,12 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2789
2960
|
"model-value",
|
|
2790
2961
|
"name",
|
|
2791
2962
|
"upload-url"
|
|
2792
|
-
]), e.error ? (S(), l("div",
|
|
2963
|
+
]), e.error ? (S(), l("div", Ci, D(e.error), 1)) : c("", !0)])]));
|
|
2793
2964
|
}
|
|
2794
|
-
},
|
|
2965
|
+
}, Ti = { class: "mb-3 row align-items-center" }, Ei = ["for"], Di = { class: "col-md-9 col-xl-8" }, Oi = {
|
|
2795
2966
|
key: 0,
|
|
2796
2967
|
class: "invalid-feedback d-block form-text"
|
|
2797
|
-
},
|
|
2968
|
+
}, ki = {
|
|
2798
2969
|
__name: "FormMultiSelect",
|
|
2799
2970
|
props: {
|
|
2800
2971
|
modelValue: {
|
|
@@ -2832,10 +3003,10 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2832
3003
|
},
|
|
2833
3004
|
emits: ["update:modelValue"],
|
|
2834
3005
|
setup(e) {
|
|
2835
|
-
return (t, n) => (S(), l("div",
|
|
3006
|
+
return (t, n) => (S(), l("div", Ti, [u("label", {
|
|
2836
3007
|
for: e.name,
|
|
2837
3008
|
class: "col-md-3 col-form-label text-md-end"
|
|
2838
|
-
}, D(e.label), 9,
|
|
3009
|
+
}, D(e.label), 9, Ei), u("div", Di, [f(k(U), {
|
|
2839
3010
|
"model-value": e.modelValue,
|
|
2840
3011
|
class: _({ "is-invalid": e.error }),
|
|
2841
3012
|
placeholder: e.placeholder,
|
|
@@ -2852,12 +3023,12 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2852
3023
|
"options",
|
|
2853
3024
|
"label",
|
|
2854
3025
|
"track-by"
|
|
2855
|
-
]), e.error ? (S(), l("div",
|
|
3026
|
+
]), e.error ? (S(), l("div", Oi, D(e.error), 1)) : c("", !0)])]));
|
|
2856
3027
|
}
|
|
2857
|
-
},
|
|
3028
|
+
}, Ai = { class: "mb-3 row align-items-center" }, ji = ["for"], Mi = { class: "col-md-9 col-xl-8" }, Ni = {
|
|
2858
3029
|
key: 0,
|
|
2859
3030
|
class: "invalid-feedback d-block form-text"
|
|
2860
|
-
},
|
|
3031
|
+
}, Pi = {
|
|
2861
3032
|
__name: "FormTagInput",
|
|
2862
3033
|
props: {
|
|
2863
3034
|
modelValue: {
|
|
@@ -2887,10 +3058,10 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2887
3058
|
},
|
|
2888
3059
|
emits: ["update:modelValue"],
|
|
2889
3060
|
setup(e) {
|
|
2890
|
-
return (t, n) => (S(), l("div",
|
|
3061
|
+
return (t, n) => (S(), l("div", Ai, [u("label", {
|
|
2891
3062
|
for: e.name,
|
|
2892
3063
|
class: "col-md-3 col-form-label text-md-end"
|
|
2893
|
-
}, D(e.label), 9,
|
|
3064
|
+
}, D(e.label), 9, ji), u("div", Mi, [f(k(U), {
|
|
2894
3065
|
"model-value": e.modelValue,
|
|
2895
3066
|
class: _({ "is-invalid": e.error }),
|
|
2896
3067
|
placeholder: e.placeholder,
|
|
@@ -2908,18 +3079,18 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2908
3079
|
"placeholder",
|
|
2909
3080
|
"options",
|
|
2910
3081
|
"tag-placeholder"
|
|
2911
|
-
]), e.error ? (S(), l("div",
|
|
3082
|
+
]), e.error ? (S(), l("div", Ni, D(e.error), 1)) : c("", !0)])]));
|
|
2912
3083
|
}
|
|
2913
|
-
},
|
|
3084
|
+
}, Fi = { class: "mb-3 row align-items-center" }, Ii = ["for"], Li = { class: "col-md-9 col-xl-8" }, Ri = [
|
|
2914
3085
|
"id",
|
|
2915
3086
|
"value",
|
|
2916
3087
|
"name",
|
|
2917
3088
|
"placeholder",
|
|
2918
3089
|
"onInput"
|
|
2919
|
-
],
|
|
3090
|
+
], zi = {
|
|
2920
3091
|
key: 0,
|
|
2921
3092
|
class: "invalid-feedback d-block form-text"
|
|
2922
|
-
},
|
|
3093
|
+
}, Bi = {
|
|
2923
3094
|
__name: "FormLocalizedInput",
|
|
2924
3095
|
props: {
|
|
2925
3096
|
modelValue: {
|
|
@@ -2960,10 +3131,10 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2960
3131
|
[e]: t
|
|
2961
3132
|
});
|
|
2962
3133
|
}
|
|
2963
|
-
return (t, n) => (S(), l("div",
|
|
3134
|
+
return (t, n) => (S(), l("div", Fi, [u("label", {
|
|
2964
3135
|
for: e.name + "_" + e.locales[0],
|
|
2965
3136
|
class: "col-md-3 col-form-label text-md-end"
|
|
2966
|
-
}, 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", {
|
|
2967
3138
|
key: t,
|
|
2968
3139
|
class: _({ "flex-fill": e.isFormLocalized })
|
|
2969
3140
|
}, [u("input", {
|
|
@@ -2974,12 +3145,12 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2974
3145
|
name: e.name + "_" + t,
|
|
2975
3146
|
placeholder: e.isFormLocalized ? t.toUpperCase() : e.label,
|
|
2976
3147
|
onInput: (e) => a(t, e.target.value)
|
|
2977
|
-
}, 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)])]));
|
|
2978
3149
|
}
|
|
2979
|
-
},
|
|
3150
|
+
}, Vi = { class: "mb-3 row align-items-center" }, Hi = ["for"], Ui = { class: "col-md-9 col-xl-8" }, Wi = {
|
|
2980
3151
|
key: 0,
|
|
2981
3152
|
class: "invalid-feedback d-block form-text"
|
|
2982
|
-
},
|
|
3153
|
+
}, Gi = /*#__PURE__*/ $({
|
|
2983
3154
|
__name: "FormLocalizedWysiwyg",
|
|
2984
3155
|
props: {
|
|
2985
3156
|
modelValue: {
|
|
@@ -3028,13 +3199,13 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3028
3199
|
[e]: t
|
|
3029
3200
|
});
|
|
3030
3201
|
}
|
|
3031
|
-
return (t, n) => (S(), l("div",
|
|
3202
|
+
return (t, n) => (S(), l("div", Vi, [u("label", {
|
|
3032
3203
|
for: e.name + "_" + e.locales[0],
|
|
3033
3204
|
class: "col-md-3 col-form-label text-md-end"
|
|
3034
|
-
}, 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", {
|
|
3035
3206
|
key: t,
|
|
3036
3207
|
class: _({ "flex-fill localized-editor": e.isFormLocalized })
|
|
3037
|
-
}, [f(
|
|
3208
|
+
}, [f(Zt, g({
|
|
3038
3209
|
id: e.name + "_" + t,
|
|
3039
3210
|
"model-value": e.modelValue[t],
|
|
3040
3211
|
name: e.name + "_" + t,
|
|
@@ -3045,12 +3216,12 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3045
3216
|
"name",
|
|
3046
3217
|
"upload-url",
|
|
3047
3218
|
"onUpdate:modelValue"
|
|
3048
|
-
]), 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)])]));
|
|
3049
3220
|
}
|
|
3050
|
-
}, [["__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 = {
|
|
3051
3222
|
key: 0,
|
|
3052
3223
|
class: "invalid-feedback d-block form-text"
|
|
3053
|
-
},
|
|
3224
|
+
}, Xi = {
|
|
3054
3225
|
__name: "FormWysiwygSimple",
|
|
3055
3226
|
props: {
|
|
3056
3227
|
modelValue: {
|
|
@@ -3080,10 +3251,10 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3080
3251
|
},
|
|
3081
3252
|
emits: ["update:modelValue"],
|
|
3082
3253
|
setup(e) {
|
|
3083
|
-
return (t, n) => (S(), l("div",
|
|
3254
|
+
return (t, n) => (S(), l("div", Ki, [u("label", {
|
|
3084
3255
|
for: e.name,
|
|
3085
3256
|
class: "col-md-3 col-form-label text-md-end"
|
|
3086
|
-
}, D(e.label), 9,
|
|
3257
|
+
}, D(e.label), 9, qi), u("div", Ji, [f(qt, g({
|
|
3087
3258
|
id: e.name,
|
|
3088
3259
|
"model-value": e.modelValue,
|
|
3089
3260
|
name: e.name,
|
|
@@ -3093,12 +3264,12 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3093
3264
|
"model-value",
|
|
3094
3265
|
"name",
|
|
3095
3266
|
"upload-url"
|
|
3096
|
-
]), e.error ? (S(), l("div",
|
|
3267
|
+
]), e.error ? (S(), l("div", Yi, D(e.error), 1)) : c("", !0)])]));
|
|
3097
3268
|
}
|
|
3098
|
-
},
|
|
3269
|
+
}, Zi = { class: "mb-3 row align-items-center" }, Qi = ["for"], $i = { class: "col-md-9 col-xl-8" }, ea = {
|
|
3099
3270
|
key: 0,
|
|
3100
3271
|
class: "invalid-feedback d-block form-text"
|
|
3101
|
-
},
|
|
3272
|
+
}, ta = /*#__PURE__*/ $({
|
|
3102
3273
|
__name: "FormLocalizedWysiwygSimple",
|
|
3103
3274
|
props: {
|
|
3104
3275
|
modelValue: {
|
|
@@ -3147,13 +3318,13 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3147
3318
|
[e]: t
|
|
3148
3319
|
});
|
|
3149
3320
|
}
|
|
3150
|
-
return (t, n) => (S(), l("div",
|
|
3321
|
+
return (t, n) => (S(), l("div", Zi, [u("label", {
|
|
3151
3322
|
for: e.name + "_" + e.locales[0],
|
|
3152
3323
|
class: "col-md-3 col-form-label text-md-end"
|
|
3153
|
-
}, 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", {
|
|
3154
3325
|
key: t,
|
|
3155
3326
|
class: _({ "flex-fill localized-editor": e.isFormLocalized })
|
|
3156
|
-
}, [f(
|
|
3327
|
+
}, [f(qt, g({
|
|
3157
3328
|
id: e.name + "_" + t,
|
|
3158
3329
|
"model-value": e.modelValue[t],
|
|
3159
3330
|
name: e.name + "_" + t,
|
|
@@ -3164,12 +3335,12 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3164
3335
|
"name",
|
|
3165
3336
|
"upload-url",
|
|
3166
3337
|
"onUpdate:modelValue"
|
|
3167
|
-
]), 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)])]));
|
|
3168
3339
|
}
|
|
3169
|
-
}, [["__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 = {
|
|
3170
3341
|
key: 0,
|
|
3171
3342
|
class: "invalid-feedback d-block form-text"
|
|
3172
|
-
},
|
|
3343
|
+
}, oa = {
|
|
3173
3344
|
__name: "FormSelect",
|
|
3174
3345
|
props: {
|
|
3175
3346
|
modelValue: {
|
|
@@ -3212,10 +3383,10 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3212
3383
|
},
|
|
3213
3384
|
emits: ["update:modelValue"],
|
|
3214
3385
|
setup(e) {
|
|
3215
|
-
return (t, n) => (S(), l("div",
|
|
3386
|
+
return (t, n) => (S(), l("div", na, [u("label", {
|
|
3216
3387
|
for: e.name,
|
|
3217
3388
|
class: "col-md-3 col-form-label text-md-end"
|
|
3218
|
-
}, D(e.label), 9,
|
|
3389
|
+
}, D(e.label), 9, ra), u("div", ia, [f(k(U), {
|
|
3219
3390
|
"model-value": e.modelValue,
|
|
3220
3391
|
class: _({ "is-invalid": e.error }),
|
|
3221
3392
|
placeholder: e.placeholder,
|
|
@@ -3231,21 +3402,21 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3231
3402
|
"options",
|
|
3232
3403
|
"label",
|
|
3233
3404
|
"track-by"
|
|
3234
|
-
]), e.error ? (S(), l("div",
|
|
3405
|
+
]), e.error ? (S(), l("div", aa, D(e.error), 1)) : c("", !0)])]));
|
|
3235
3406
|
}
|
|
3236
|
-
},
|
|
3407
|
+
}, sa = { class: "mb-3 row align-items-center" }, ca = {
|
|
3237
3408
|
for: "password",
|
|
3238
3409
|
class: "col-md-3 col-form-label text-md-end"
|
|
3239
|
-
},
|
|
3410
|
+
}, la = { class: "col-md-9 col-xl-8" }, ua = ["value", "placeholder"], da = {
|
|
3240
3411
|
key: 0,
|
|
3241
3412
|
class: "invalid-feedback form-text"
|
|
3242
|
-
},
|
|
3413
|
+
}, fa = { class: "mb-3 row align-items-center" }, pa = {
|
|
3243
3414
|
for: "password_confirmation",
|
|
3244
3415
|
class: "col-md-3 col-form-label text-md-end"
|
|
3245
|
-
},
|
|
3416
|
+
}, ma = { class: "col-md-9 col-xl-8" }, ha = ["value", "placeholder"], ga = {
|
|
3246
3417
|
key: 0,
|
|
3247
3418
|
class: "invalid-feedback form-text"
|
|
3248
|
-
},
|
|
3419
|
+
}, _a = {
|
|
3249
3420
|
__name: "FormPasswordConfirm",
|
|
3250
3421
|
props: {
|
|
3251
3422
|
password: {
|
|
@@ -3271,7 +3442,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3271
3442
|
},
|
|
3272
3443
|
emits: ["update:password", "update:passwordConfirmation"],
|
|
3273
3444
|
setup(e) {
|
|
3274
|
-
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", {
|
|
3275
3446
|
id: "password",
|
|
3276
3447
|
type: "password",
|
|
3277
3448
|
value: e.password,
|
|
@@ -3279,7 +3450,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3279
3450
|
name: "password",
|
|
3280
3451
|
placeholder: e.translations.password,
|
|
3281
3452
|
onInput: n[0] ||= (e) => t.$emit("update:password", e.target.value)
|
|
3282
|
-
}, 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", {
|
|
3283
3454
|
id: "password_confirmation",
|
|
3284
3455
|
type: "password",
|
|
3285
3456
|
value: e.passwordConfirmation,
|
|
@@ -3287,9 +3458,9 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3287
3458
|
name: "password_confirmation",
|
|
3288
3459
|
placeholder: e.translations.password,
|
|
3289
3460
|
onInput: n[1] ||= (e) => t.$emit("update:passwordConfirmation", e.target.value)
|
|
3290
|
-
}, null, 42,
|
|
3461
|
+
}, null, 42, ha), e.confirmationError ? (S(), l("div", ga, D(e.confirmationError), 1)) : c("", !0)])])], 64));
|
|
3291
3462
|
}
|
|
3292
|
-
},
|
|
3463
|
+
}, va = ["disabled"], ya = {
|
|
3293
3464
|
__name: "FormSubmit",
|
|
3294
3465
|
props: {
|
|
3295
3466
|
submitting: {
|
|
@@ -3306,24 +3477,24 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3306
3477
|
type: "submit",
|
|
3307
3478
|
class: "btn btn-primary submit-btn",
|
|
3308
3479
|
disabled: e.submitting
|
|
3309
|
-
}, [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));
|
|
3310
3481
|
}
|
|
3311
|
-
},
|
|
3482
|
+
}, ba = {
|
|
3312
3483
|
key: 0,
|
|
3313
3484
|
class: "row mb-2 localization-bar"
|
|
3314
|
-
},
|
|
3485
|
+
}, xa = { key: 0 }, Sa = { key: 0 }, Ca = {
|
|
3315
3486
|
key: 1,
|
|
3316
3487
|
class: "localization-error"
|
|
3317
|
-
},
|
|
3488
|
+
}, wa = {
|
|
3318
3489
|
key: 2,
|
|
3319
3490
|
class: "d-flex align-items-center gap-2"
|
|
3320
|
-
},
|
|
3491
|
+
}, Ta = { class: "text-nowrap" }, Ea = {
|
|
3321
3492
|
key: 0,
|
|
3322
3493
|
class: "localization-error"
|
|
3323
|
-
},
|
|
3494
|
+
}, Da = {
|
|
3324
3495
|
key: 0,
|
|
3325
3496
|
class: "localization-error"
|
|
3326
|
-
},
|
|
3497
|
+
}, Oa = /*#__PURE__*/ $({
|
|
3327
3498
|
__name: "LocalizationBar",
|
|
3328
3499
|
props: {
|
|
3329
3500
|
translations: {
|
|
@@ -3366,19 +3537,19 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3366
3537
|
],
|
|
3367
3538
|
setup(e) {
|
|
3368
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]);
|
|
3369
|
-
return (t, a) => e.locales.length > 0 ? (S(), l("div",
|
|
3370
|
-
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, [
|
|
3371
3542
|
d(D(n.value), 1),
|
|
3372
|
-
e.otherLocales.length > 1 ? (S(), l("span",
|
|
3543
|
+
e.otherLocales.length > 1 ? (S(), l("span", Sa, D(r.value), 1)) : c("", !0),
|
|
3373
3544
|
a[4] ||= d(" | ", -1),
|
|
3374
3545
|
u("a", {
|
|
3375
3546
|
href: "#",
|
|
3376
3547
|
onClick: a[0] ||= R((e) => t.$emit("show-localization"), ["prevent"])
|
|
3377
3548
|
}, D(e.translations.manage_translations), 1)
|
|
3378
3549
|
])),
|
|
3379
|
-
!e.isFormLocalized && e.showLocalizedValidationError ? (S(), l("i",
|
|
3380
|
-
e.isFormLocalized ? (S(), l("div",
|
|
3381
|
-
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),
|
|
3382
3553
|
f(k(U), {
|
|
3383
3554
|
"model-value": e.currentLocale,
|
|
3384
3555
|
options: i.value,
|
|
@@ -3392,7 +3563,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3392
3563
|
"options",
|
|
3393
3564
|
"custom-label"
|
|
3394
3565
|
]),
|
|
3395
|
-
e.showLocalizedValidationError ? (S(), l("i",
|
|
3566
|
+
e.showLocalizedValidationError ? (S(), l("i", Ea)) : c("", !0),
|
|
3396
3567
|
u("small", null, [u("a", {
|
|
3397
3568
|
href: "#",
|
|
3398
3569
|
onClick: a[2] ||= R((e) => t.$emit("hide-localization"), ["prevent"])
|
|
@@ -3419,25 +3590,25 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3419
3590
|
"options",
|
|
3420
3591
|
"custom-label"
|
|
3421
3592
|
]),
|
|
3422
|
-
e.showLocalizedValidationError ? (S(), l("i",
|
|
3593
|
+
e.showLocalizedValidationError ? (S(), l("i", Da)) : c("", !0)
|
|
3423
3594
|
])], 2)) : c("", !0)])) : c("", !0);
|
|
3424
3595
|
}
|
|
3425
|
-
}, [["__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 = {
|
|
3426
3597
|
key: 0,
|
|
3427
3598
|
class: "alert alert-success"
|
|
3428
|
-
},
|
|
3599
|
+
}, La = {
|
|
3429
3600
|
key: 1,
|
|
3430
3601
|
class: "alert alert-danger"
|
|
3431
|
-
},
|
|
3602
|
+
}, Ra = { class: "mb-3" }, za = { for: "email" }, Ba = { class: "input-group input-group--custom" }, Va = ["placeholder"], Ha = {
|
|
3432
3603
|
key: 0,
|
|
3433
3604
|
class: "invalid-feedback d-block form-text"
|
|
3434
|
-
},
|
|
3605
|
+
}, Ua = { class: "mb-3" }, Wa = { for: "password" }, Ga = { class: "input-group input-group--custom" }, Ka = ["placeholder"], qa = {
|
|
3435
3606
|
key: 0,
|
|
3436
3607
|
class: "invalid-feedback d-block form-text"
|
|
3437
|
-
},
|
|
3608
|
+
}, Ja = { class: "mb-3" }, Ya = ["disabled"], Xa = {
|
|
3438
3609
|
key: 0,
|
|
3439
3610
|
class: "fa fa-spinner fa-spin"
|
|
3440
|
-
},
|
|
3611
|
+
}, Za = { class: "mb-3 text-center" }, Qa = ["href"], $a = /*#__PURE__*/ $({
|
|
3441
3612
|
__name: "LoginForm",
|
|
3442
3613
|
props: {
|
|
3443
3614
|
action: {
|
|
@@ -3466,7 +3637,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3466
3637
|
}
|
|
3467
3638
|
},
|
|
3468
3639
|
setup(e) {
|
|
3469
|
-
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, {
|
|
3470
3641
|
formDefaults: {
|
|
3471
3642
|
email: "",
|
|
3472
3643
|
password: ""
|
|
@@ -3479,40 +3650,40 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3479
3650
|
window.location.replace(t.redirectUrl);
|
|
3480
3651
|
}
|
|
3481
3652
|
});
|
|
3482
|
-
return (t, s) => (S(), l("div",
|
|
3653
|
+
return (t, s) => (S(), l("div", ka, [u("div", Aa, [u("form", {
|
|
3483
3654
|
role: "form",
|
|
3484
3655
|
method: "POST",
|
|
3485
3656
|
action: e.action,
|
|
3486
3657
|
novalidate: "",
|
|
3487
3658
|
onSubmit: s[2] ||= R((...e) => k(o) && k(o)(...e), ["prevent"])
|
|
3488
|
-
}, [u("div",
|
|
3489
|
-
e.statusMessage ? (S(), l("div",
|
|
3490
|
-
e.serverErrors.length ? (S(), l("div",
|
|
3491
|
-
u("div",
|
|
3492
|
-
u("label",
|
|
3493
|
-
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", {
|
|
3494
3665
|
id: "email",
|
|
3495
3666
|
"onUpdate:modelValue": s[0] ||= (e) => k(n).email = e,
|
|
3496
3667
|
type: "text",
|
|
3497
3668
|
class: _(["form-control", { "is-invalid": k(r).email }]),
|
|
3498
3669
|
name: "email",
|
|
3499
3670
|
placeholder: e.translations.email
|
|
3500
|
-
}, null, 10,
|
|
3501
|
-
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)
|
|
3502
3673
|
]),
|
|
3503
|
-
u("div",
|
|
3504
|
-
u("label",
|
|
3505
|
-
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", {
|
|
3506
3677
|
id: "password",
|
|
3507
3678
|
"onUpdate:modelValue": s[1] ||= (e) => k(n).password = e,
|
|
3508
3679
|
type: "password",
|
|
3509
3680
|
class: _(["form-control", { "is-invalid": k(r).password }]),
|
|
3510
3681
|
name: "password",
|
|
3511
3682
|
placeholder: e.translations.password
|
|
3512
|
-
}, null, 10,
|
|
3513
|
-
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)
|
|
3514
3685
|
]),
|
|
3515
|
-
u("div",
|
|
3686
|
+
u("div", Ja, [s[5] ||= u("input", {
|
|
3516
3687
|
type: "hidden",
|
|
3517
3688
|
name: "remember",
|
|
3518
3689
|
value: "1"
|
|
@@ -3520,32 +3691,32 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3520
3691
|
type: "submit",
|
|
3521
3692
|
class: "btn btn-primary submit-btn",
|
|
3522
3693
|
disabled: k(a)
|
|
3523
|
-
}, [k(a) ? (S(), l("i",
|
|
3524
|
-
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", {
|
|
3525
3696
|
href: e.passwordResetUrl,
|
|
3526
3697
|
class: "auth-ghost-link forgot-link"
|
|
3527
|
-
}, D(e.translations.forgotPassword), 9,
|
|
3528
|
-
])], 40,
|
|
3698
|
+
}, D(e.translations.forgotPassword), 9, Qa)])
|
|
3699
|
+
])], 40, ja)])]));
|
|
3529
3700
|
}
|
|
3530
|
-
}, [["__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 = {
|
|
3531
3702
|
key: 0,
|
|
3532
3703
|
class: "alert alert-success"
|
|
3533
|
-
},
|
|
3704
|
+
}, co = {
|
|
3534
3705
|
key: 1,
|
|
3535
3706
|
class: "alert alert-success"
|
|
3536
|
-
},
|
|
3707
|
+
}, lo = {
|
|
3537
3708
|
key: 2,
|
|
3538
3709
|
class: "alert alert-danger"
|
|
3539
|
-
},
|
|
3710
|
+
}, uo = { class: "mb-3" }, fo = { for: "email" }, po = { class: "input-group input-group--custom" }, mo = ["placeholder"], ho = {
|
|
3540
3711
|
key: 0,
|
|
3541
3712
|
class: "invalid-feedback d-block form-text"
|
|
3542
|
-
},
|
|
3713
|
+
}, go = { class: "mb-3" }, _o = ["disabled"], vo = {
|
|
3543
3714
|
key: 0,
|
|
3544
3715
|
class: "fa fa-spinner fa-spin"
|
|
3545
|
-
},
|
|
3716
|
+
}, yo = {
|
|
3546
3717
|
key: 3,
|
|
3547
3718
|
class: "text-center"
|
|
3548
|
-
},
|
|
3719
|
+
}, bo = ["href"], xo = {
|
|
3549
3720
|
__name: "ForgotPasswordForm",
|
|
3550
3721
|
props: {
|
|
3551
3722
|
action: {
|
|
@@ -3570,65 +3741,65 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3570
3741
|
}
|
|
3571
3742
|
},
|
|
3572
3743
|
setup(e) {
|
|
3573
|
-
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, {
|
|
3574
3745
|
formDefaults: { email: "" },
|
|
3575
3746
|
validationSchema: { email: "required|email" }
|
|
3576
3747
|
});
|
|
3577
|
-
return (s, f) => (S(), l("div",
|
|
3748
|
+
return (s, f) => (S(), l("div", eo, [u("div", to, [u("form", {
|
|
3578
3749
|
role: "form",
|
|
3579
3750
|
method: "POST",
|
|
3580
3751
|
action: e.action,
|
|
3581
3752
|
novalidate: "",
|
|
3582
3753
|
onSubmit: f[1] ||= R((...e) => k(o) && k(o)(...e), ["prevent"])
|
|
3583
|
-
}, [u("div",
|
|
3584
|
-
k(a) ? (S(), l("div",
|
|
3585
|
-
e.statusMessage && !k(a) ? (S(), l("div",
|
|
3586
|
-
e.serverErrors.length ? (S(), l("div",
|
|
3587
|
-
u("div",
|
|
3588
|
-
u("label",
|
|
3589
|
-
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", {
|
|
3590
3761
|
id: "email",
|
|
3591
3762
|
"onUpdate:modelValue": f[0] ||= (e) => k(t).email = e,
|
|
3592
3763
|
type: "text",
|
|
3593
3764
|
class: _(["form-control", { "is-invalid": k(n).email }]),
|
|
3594
3765
|
name: "email",
|
|
3595
3766
|
placeholder: e.translations.email
|
|
3596
|
-
}, null, 10,
|
|
3597
|
-
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)
|
|
3598
3769
|
]),
|
|
3599
|
-
u("div",
|
|
3770
|
+
u("div", go, [u("button", {
|
|
3600
3771
|
type: "submit",
|
|
3601
3772
|
class: "btn btn-primary submit-btn",
|
|
3602
3773
|
disabled: k(r)
|
|
3603
|
-
}, [k(r) ? (S(), l("i",
|
|
3604
|
-
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", {
|
|
3605
3776
|
href: e.loginUrl,
|
|
3606
3777
|
class: "auth-ghost-link"
|
|
3607
|
-
}, D(e.translations.backToLogin), 9,
|
|
3608
|
-
])], 40,
|
|
3778
|
+
}, D(e.translations.backToLogin), 9, bo)])) : c("", !0)
|
|
3779
|
+
])], 40, no)])]));
|
|
3609
3780
|
}
|
|
3610
|
-
},
|
|
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 = {
|
|
3611
3782
|
key: 0,
|
|
3612
3783
|
class: "alert alert-success"
|
|
3613
|
-
},
|
|
3784
|
+
}, Ao = {
|
|
3614
3785
|
key: 1,
|
|
3615
3786
|
class: "alert alert-danger"
|
|
3616
|
-
},
|
|
3787
|
+
}, jo = { class: "mb-3" }, Mo = { for: "email" }, No = { class: "input-group input-group--custom" }, Po = ["placeholder"], Fo = {
|
|
3617
3788
|
key: 0,
|
|
3618
3789
|
class: "invalid-feedback d-block form-text"
|
|
3619
|
-
},
|
|
3790
|
+
}, Io = { class: "mb-3" }, Lo = { for: "password" }, Ro = { class: "input-group input-group--custom" }, zo = ["placeholder"], Bo = {
|
|
3620
3791
|
key: 0,
|
|
3621
3792
|
class: "invalid-feedback d-block form-text"
|
|
3622
|
-
},
|
|
3793
|
+
}, Vo = { class: "mb-3" }, Ho = { for: "password_confirmation" }, Uo = { class: "input-group input-group--custom" }, Wo = ["placeholder"], Go = {
|
|
3623
3794
|
key: 0,
|
|
3624
3795
|
class: "invalid-feedback d-block form-text"
|
|
3625
|
-
},
|
|
3796
|
+
}, Ko = { class: "mb-3" }, qo = ["disabled"], Jo = {
|
|
3626
3797
|
key: 0,
|
|
3627
3798
|
class: "fa fa-spinner fa-spin"
|
|
3628
|
-
},
|
|
3799
|
+
}, Yo = {
|
|
3629
3800
|
key: 2,
|
|
3630
3801
|
class: "text-center"
|
|
3631
|
-
},
|
|
3802
|
+
}, Xo = ["href"], Zo = {
|
|
3632
3803
|
__name: "ResetPasswordForm",
|
|
3633
3804
|
props: {
|
|
3634
3805
|
action: {
|
|
@@ -3665,7 +3836,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3665
3836
|
}
|
|
3666
3837
|
},
|
|
3667
3838
|
setup(e) {
|
|
3668
|
-
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, {
|
|
3669
3840
|
formDefaults: {
|
|
3670
3841
|
email: t.email,
|
|
3671
3842
|
password: "",
|
|
@@ -3681,78 +3852,78 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3681
3852
|
window.location.replace(e.redirect || t.redirectUrl);
|
|
3682
3853
|
}
|
|
3683
3854
|
});
|
|
3684
|
-
return (t, s) => (S(), l("div",
|
|
3855
|
+
return (t, s) => (S(), l("div", So, [u("div", Co, [u("form", {
|
|
3685
3856
|
role: "form",
|
|
3686
3857
|
method: "POST",
|
|
3687
3858
|
action: e.action,
|
|
3688
3859
|
novalidate: "",
|
|
3689
3860
|
onSubmit: s[3] ||= R((...e) => k(o) && k(o)(...e), ["prevent"])
|
|
3690
|
-
}, [u("div",
|
|
3691
|
-
e.statusMessage ? (S(), l("div",
|
|
3692
|
-
e.serverErrors.length ? (S(), l("div",
|
|
3693
|
-
u("div",
|
|
3694
|
-
u("label",
|
|
3695
|
-
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", {
|
|
3696
3867
|
id: "email",
|
|
3697
3868
|
"onUpdate:modelValue": s[0] ||= (e) => k(n).email = e,
|
|
3698
3869
|
type: "text",
|
|
3699
3870
|
class: _(["form-control", { "is-invalid": k(r).email }]),
|
|
3700
3871
|
name: "email",
|
|
3701
3872
|
placeholder: e.translations.email
|
|
3702
|
-
}, null, 10,
|
|
3703
|
-
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)
|
|
3704
3875
|
]),
|
|
3705
|
-
u("div",
|
|
3706
|
-
u("label",
|
|
3707
|
-
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", {
|
|
3708
3879
|
id: "password",
|
|
3709
3880
|
"onUpdate:modelValue": s[1] ||= (e) => k(n).password = e,
|
|
3710
3881
|
type: "password",
|
|
3711
3882
|
class: _(["form-control", { "is-invalid": k(r).password }]),
|
|
3712
3883
|
name: "password",
|
|
3713
3884
|
placeholder: e.translations.password
|
|
3714
|
-
}, null, 10,
|
|
3715
|
-
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)
|
|
3716
3887
|
]),
|
|
3717
|
-
u("div",
|
|
3718
|
-
u("label",
|
|
3719
|
-
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", {
|
|
3720
3891
|
id: "password_confirmation",
|
|
3721
3892
|
"onUpdate:modelValue": s[2] ||= (e) => k(n).password_confirmation = e,
|
|
3722
3893
|
type: "password",
|
|
3723
3894
|
class: _(["form-control", { "is-invalid": k(r).password_confirmation }]),
|
|
3724
3895
|
name: "password_confirmation",
|
|
3725
3896
|
placeholder: e.translations.passwordConfirm
|
|
3726
|
-
}, null, 10,
|
|
3727
|
-
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)
|
|
3728
3899
|
]),
|
|
3729
|
-
u("div",
|
|
3900
|
+
u("div", Ko, [u("button", {
|
|
3730
3901
|
type: "submit",
|
|
3731
3902
|
class: "btn btn-primary submit-btn",
|
|
3732
3903
|
disabled: k(a)
|
|
3733
|
-
}, [k(a) ? (S(), l("i",
|
|
3734
|
-
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", {
|
|
3735
3906
|
href: e.loginUrl,
|
|
3736
3907
|
class: "auth-ghost-link"
|
|
3737
|
-
}, D(e.translations.backToLogin), 9,
|
|
3738
|
-
])], 40,
|
|
3908
|
+
}, D(e.translations.backToLogin), 9, Xo)])) : c("", !0)
|
|
3909
|
+
])], 40, wo)])]));
|
|
3739
3910
|
}
|
|
3740
|
-
},
|
|
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 = {
|
|
3741
3912
|
key: 0,
|
|
3742
3913
|
class: "alert alert-success"
|
|
3743
|
-
},
|
|
3914
|
+
}, os = {
|
|
3744
3915
|
key: 1,
|
|
3745
3916
|
class: "alert alert-success"
|
|
3746
|
-
},
|
|
3917
|
+
}, ss = {
|
|
3747
3918
|
key: 2,
|
|
3748
3919
|
class: "alert alert-danger"
|
|
3749
|
-
},
|
|
3920
|
+
}, cs = { class: "mb-3" }, ls = { for: "email" }, us = { class: "input-group input-group--custom" }, ds = ["placeholder"], fs = {
|
|
3750
3921
|
key: 0,
|
|
3751
3922
|
class: "invalid-feedback d-block form-text"
|
|
3752
|
-
},
|
|
3923
|
+
}, ps = { class: "mb-3" }, ms = ["disabled"], hs = {
|
|
3753
3924
|
key: 0,
|
|
3754
3925
|
class: "fa fa-spinner fa-spin"
|
|
3755
|
-
},
|
|
3926
|
+
}, gs = {
|
|
3756
3927
|
__name: "ActivationForm",
|
|
3757
3928
|
props: {
|
|
3758
3929
|
action: {
|
|
@@ -3773,43 +3944,43 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3773
3944
|
}
|
|
3774
3945
|
},
|
|
3775
3946
|
setup(e) {
|
|
3776
|
-
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, {
|
|
3777
3948
|
formDefaults: { email: "" },
|
|
3778
3949
|
validationSchema: { email: "required|email" }
|
|
3779
3950
|
});
|
|
3780
|
-
return (s, f) => (S(), l("div",
|
|
3951
|
+
return (s, f) => (S(), l("div", Qo, [u("div", $o, [u("form", {
|
|
3781
3952
|
role: "form",
|
|
3782
3953
|
method: "POST",
|
|
3783
3954
|
action: e.action,
|
|
3784
3955
|
novalidate: "",
|
|
3785
3956
|
onSubmit: f[1] ||= R((...e) => k(o) && k(o)(...e), ["prevent"])
|
|
3786
|
-
}, [u("div",
|
|
3787
|
-
k(a) ? (S(), l("div",
|
|
3788
|
-
e.statusMessage && !k(a) ? (S(), l("div",
|
|
3789
|
-
e.serverErrors.length ? (S(), l("div",
|
|
3790
|
-
u("div",
|
|
3791
|
-
u("label",
|
|
3792
|
-
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", {
|
|
3793
3964
|
id: "email",
|
|
3794
3965
|
"onUpdate:modelValue": f[0] ||= (e) => k(t).email = e,
|
|
3795
3966
|
type: "text",
|
|
3796
3967
|
class: _(["form-control", { "is-invalid": k(n).email }]),
|
|
3797
3968
|
name: "email",
|
|
3798
3969
|
placeholder: e.translations.email
|
|
3799
|
-
}, null, 10,
|
|
3800
|
-
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)
|
|
3801
3972
|
]),
|
|
3802
|
-
u("div",
|
|
3973
|
+
u("div", ps, [u("button", {
|
|
3803
3974
|
type: "submit",
|
|
3804
3975
|
class: "btn btn-primary submit-btn",
|
|
3805
3976
|
disabled: k(r)
|
|
3806
|
-
}, [k(r) ? (S(), l("i",
|
|
3807
|
-
])], 40,
|
|
3977
|
+
}, [k(r) ? (S(), l("i", hs)) : c("", !0), d(" " + D(e.translations.button), 1)], 8, ms)])
|
|
3978
|
+
])], 40, es)])]));
|
|
3808
3979
|
}
|
|
3809
|
-
},
|
|
3980
|
+
}, _s = { class: "card" }, vs = { class: "card-body" }, ys = { class: "auth-header" }, bs = { class: "auth-title" }, xs = { class: "auth-body" }, Ss = {
|
|
3810
3981
|
key: 0,
|
|
3811
3982
|
class: "alert alert-danger"
|
|
3812
|
-
},
|
|
3983
|
+
}, Cs = {
|
|
3813
3984
|
__name: "ActivationError",
|
|
3814
3985
|
props: {
|
|
3815
3986
|
translations: {
|
|
@@ -3822,15 +3993,15 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3822
3993
|
}
|
|
3823
3994
|
},
|
|
3824
3995
|
setup(e) {
|
|
3825
|
-
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)])])]));
|
|
3826
3997
|
}
|
|
3827
|
-
},
|
|
3998
|
+
}, ws = { class: "modal-dialog" }, Ts = { class: "modal-content" }, Es = { class: "modal-header" }, Ds = { class: "modal-title" }, Os = { class: "modal-body" }, ks = {
|
|
3828
3999
|
class: "text-center",
|
|
3829
4000
|
style: { "word-wrap": "break-word" }
|
|
3830
|
-
},
|
|
4001
|
+
}, As = { class: "form-label" }, js = ["onUpdate:modelValue", "placeholder"], Ms = ["onUpdate:modelValue", "placeholder"], Ns = { class: "text-center" }, Ps = {
|
|
3831
4002
|
class: "btn btn-primary w-100",
|
|
3832
4003
|
type: "submit"
|
|
3833
|
-
},
|
|
4004
|
+
}, Fs = {
|
|
3834
4005
|
__name: "TranslationEditModal",
|
|
3835
4006
|
props: {
|
|
3836
4007
|
show: {
|
|
@@ -3871,47 +4042,47 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3871
4042
|
return (t, n) => (S(), l(i, null, [u("div", {
|
|
3872
4043
|
class: _(["modal fade", { show: e.show }]),
|
|
3873
4044
|
style: y({ display: e.show ? "block" : "none" })
|
|
3874
|
-
}, [u("div",
|
|
4045
|
+
}, [u("div", ws, [u("div", Ts, [u("div", Es, [u("h4", Ds, D(e.translations.edit), 1), u("button", {
|
|
3875
4046
|
type: "button",
|
|
3876
4047
|
class: "btn-close",
|
|
3877
4048
|
onClick: n[0] ||= (e) => t.$emit("close")
|
|
3878
|
-
})]), 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", {
|
|
3879
4050
|
key: t,
|
|
3880
4051
|
class: "mb-3"
|
|
3881
|
-
}, [u("label",
|
|
4052
|
+
}, [u("label", As, D(t.toUpperCase()) + " " + D(e.translations.translation), 1), !f[t] || f[t].length < 70 ? I((S(), l("input", {
|
|
3882
4053
|
key: 0,
|
|
3883
4054
|
"onUpdate:modelValue": (e) => f[t] = e,
|
|
3884
4055
|
type: "text",
|
|
3885
4056
|
class: "form-control",
|
|
3886
4057
|
placeholder: (e.translations.translation_for || "").replace(":locale", t)
|
|
3887
|
-
}, null, 8,
|
|
4058
|
+
}, null, 8, js)), [[M, f[t]]]) : I((S(), l("textarea", {
|
|
3888
4059
|
key: 1,
|
|
3889
4060
|
"onUpdate:modelValue": (e) => f[t] = e,
|
|
3890
4061
|
class: "form-control",
|
|
3891
4062
|
placeholder: (e.translations.translation_for || "").replace(":locale", t),
|
|
3892
4063
|
cols: "30",
|
|
3893
4064
|
rows: "4"
|
|
3894
|
-
}, 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", {
|
|
3895
4066
|
key: 0,
|
|
3896
4067
|
class: "modal-backdrop fade show",
|
|
3897
4068
|
onClick: n[1] ||= (e) => t.$emit("close")
|
|
3898
4069
|
})) : c("", !0)], 64));
|
|
3899
4070
|
}
|
|
3900
|
-
},
|
|
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 = {
|
|
3901
4072
|
for: "importLanguage",
|
|
3902
4073
|
class: "col-form-label"
|
|
3903
|
-
},
|
|
4074
|
+
}, Zs = { class: "col-md-6" }, Qs = { class: "offset-md-4" }, $s = { class: "form-check" }, ec = {
|
|
3904
4075
|
class: "form-check-label",
|
|
3905
4076
|
for: "onlyMissingTranslations"
|
|
3906
|
-
},
|
|
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 = [
|
|
3907
4078
|
"id",
|
|
3908
4079
|
"onUpdate:modelValue",
|
|
3909
4080
|
"name"
|
|
3910
|
-
],
|
|
4081
|
+
], cc = ["for"], lc = { style: { "word-break": "break-all" } }, uc = [
|
|
3911
4082
|
"id",
|
|
3912
4083
|
"onUpdate:modelValue",
|
|
3913
4084
|
"name"
|
|
3914
|
-
],
|
|
4085
|
+
], dc = ["for"], fc = { class: "text-center" }, pc = { class: "modal-footer" }, mc = {
|
|
3915
4086
|
__name: "TranslationImportModal",
|
|
3916
4087
|
props: {
|
|
3917
4088
|
show: {
|
|
@@ -3984,16 +4155,16 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3984
4155
|
return (t, n) => (S(), l(i, null, [u("div", {
|
|
3985
4156
|
class: _(["modal fade", { show: e.show }]),
|
|
3986
4157
|
style: y({ display: e.show ? "block" : "none" })
|
|
3987
|
-
}, [u("div",
|
|
3988
|
-
u("div",
|
|
4158
|
+
}, [u("div", Is, [u("div", Ls, [
|
|
4159
|
+
u("div", Rs, [u("h4", zs, D(e.translations.import_title), 1), u("button", {
|
|
3989
4160
|
type: "button",
|
|
3990
4161
|
class: "btn-close",
|
|
3991
4162
|
onClick: B
|
|
3992
4163
|
})]),
|
|
3993
|
-
u("div",
|
|
4164
|
+
u("div", Bs, [
|
|
3994
4165
|
I(u("div", null, [
|
|
3995
4166
|
u("p", null, D(e.translations.import_notice), 1),
|
|
3996
|
-
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", {
|
|
3997
4168
|
ref_key: "fileInput",
|
|
3998
4169
|
ref: p,
|
|
3999
4170
|
type: "file",
|
|
@@ -4001,7 +4172,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4001
4172
|
accept: ".xlsx",
|
|
4002
4173
|
onChange: z
|
|
4003
4174
|
}, null, 544)])])]),
|
|
4004
|
-
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), {
|
|
4005
4176
|
modelValue: h.value,
|
|
4006
4177
|
"onUpdate:modelValue": n[0] ||= (e) => h.value = e,
|
|
4007
4178
|
options: d.value,
|
|
@@ -4016,47 +4187,47 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4016
4187
|
"options",
|
|
4017
4188
|
"placeholder"
|
|
4018
4189
|
])])]),
|
|
4019
|
-
u("div",
|
|
4190
|
+
u("div", Qs, [u("div", $s, [I(u("input", {
|
|
4020
4191
|
id: "onlyMissingTranslations",
|
|
4021
4192
|
"onUpdate:modelValue": n[1] ||= (e) => v.value = e,
|
|
4022
4193
|
class: "form-check-input",
|
|
4023
4194
|
type: "checkbox"
|
|
4024
|
-
}, null, 512), [[A, v.value]]), u("label",
|
|
4195
|
+
}, null, 512), [[A, v.value]]), u("label", ec, D(e.translations.do_not_override), 1)])])
|
|
4025
4196
|
], 512), [[N, b.value === 1]]),
|
|
4026
|
-
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, [
|
|
4027
4198
|
u("th", null, D(e.translations.group), 1),
|
|
4028
4199
|
u("th", null, D(e.translations.default), 1),
|
|
4029
4200
|
u("th", null, D(e.translations.current_value), 1),
|
|
4030
4201
|
u("th", null, D(e.translations.imported_value), 1)
|
|
4031
|
-
])]), u("tbody", null, [(S(!0), l(i, null, T(M.value, (e, t) => (S(), l(i, { key: t }, [e.has_conflict ? (S(), l("tr",
|
|
4032
|
-
u("td",
|
|
4033
|
-
u("td",
|
|
4034
|
-
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", {
|
|
4035
4206
|
id: "current-" + t + "0",
|
|
4036
4207
|
"onUpdate:modelValue": (e) => M.value[t].checkedCurrent = e,
|
|
4037
4208
|
type: "radio",
|
|
4038
4209
|
class: "form-check-input me-1",
|
|
4039
4210
|
value: !0,
|
|
4040
4211
|
name: "current-" + t
|
|
4041
|
-
}, null, 8,
|
|
4212
|
+
}, null, 8, sc), [[j, M.value[t].checkedCurrent]]), u("label", {
|
|
4042
4213
|
class: "form-check-label",
|
|
4043
4214
|
for: "current-" + t + "0"
|
|
4044
|
-
}, D(e.current_value), 9,
|
|
4045
|
-
u("td",
|
|
4215
|
+
}, D(e.current_value), 9, cc)]),
|
|
4216
|
+
u("td", lc, [I(u("input", {
|
|
4046
4217
|
id: "current-" + t + "1",
|
|
4047
4218
|
"onUpdate:modelValue": (e) => M.value[t].checkedCurrent = e,
|
|
4048
4219
|
type: "radio",
|
|
4049
4220
|
class: "form-check-input me-1",
|
|
4050
4221
|
value: !1,
|
|
4051
4222
|
name: "current-" + t
|
|
4052
|
-
}, null, 8,
|
|
4223
|
+
}, null, 8, uc), [[j, M.value[t].checkedCurrent]]), u("label", {
|
|
4053
4224
|
class: "form-check-label",
|
|
4054
4225
|
for: "current-" + t + "1"
|
|
4055
|
-
}, D(e[g.value.toLowerCase()]), 9,
|
|
4226
|
+
}, D(e[g.value.toLowerCase()]), 9, dc)])
|
|
4056
4227
|
])) : c("", !0)], 64))), 128))])])], 512), [[N, b.value === 2]]),
|
|
4057
|
-
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]])
|
|
4058
4229
|
]),
|
|
4059
|
-
u("div",
|
|
4230
|
+
u("div", pc, [F.value ? c("", !0) : (S(), l("button", {
|
|
4060
4231
|
key: 0,
|
|
4061
4232
|
type: "button",
|
|
4062
4233
|
class: "btn btn-primary",
|
|
@@ -4068,10 +4239,10 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4068
4239
|
onClick: B
|
|
4069
4240
|
})) : c("", !0)], 64));
|
|
4070
4241
|
}
|
|
4071
|
-
},
|
|
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 = {
|
|
4072
4243
|
class: "btn btn-primary",
|
|
4073
4244
|
type: "submit"
|
|
4074
|
-
},
|
|
4245
|
+
}, Cc = {
|
|
4075
4246
|
__name: "TranslationExportModal",
|
|
4076
4247
|
props: {
|
|
4077
4248
|
show: {
|
|
@@ -4111,13 +4282,13 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4111
4282
|
return (t, n) => (S(), l(i, null, [u("div", {
|
|
4112
4283
|
class: _(["modal fade", { show: e.show }]),
|
|
4113
4284
|
style: y({ display: e.show ? "block" : "none" })
|
|
4114
|
-
}, [u("div",
|
|
4285
|
+
}, [u("div", hc, [u("div", gc, [u("div", _c, [u("h4", vc, D(e.translations.export), 1), u("button", {
|
|
4115
4286
|
type: "button",
|
|
4116
4287
|
class: "btn-close",
|
|
4117
4288
|
onClick: n[0] ||= (e) => t.$emit("close")
|
|
4118
|
-
})]), u("div",
|
|
4119
|
-
u("p",
|
|
4120
|
-
f(
|
|
4289
|
+
})]), u("div", yc, [u("form", { onSubmit: R(m, ["prevent"]) }, [
|
|
4290
|
+
u("p", bc, D(e.translations.export_notice), 1),
|
|
4291
|
+
f(ki, {
|
|
4121
4292
|
modelValue: p.value,
|
|
4122
4293
|
"onUpdate:modelValue": n[1] ||= (e) => p.value = e,
|
|
4123
4294
|
name: "languagesToExport",
|
|
@@ -4132,17 +4303,17 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4132
4303
|
"options",
|
|
4133
4304
|
"placeholder"
|
|
4134
4305
|
]),
|
|
4135
|
-
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)])])
|
|
4136
4307
|
], 32)])])])], 6), e.show ? (S(), l("div", {
|
|
4137
4308
|
key: 0,
|
|
4138
4309
|
class: "modal-backdrop fade show",
|
|
4139
4310
|
onClick: n[2] ||= (e) => t.$emit("close")
|
|
4140
4311
|
})) : c("", !0)], 64));
|
|
4141
4312
|
}
|
|
4142
|
-
},
|
|
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 = {
|
|
4143
4314
|
key: 0,
|
|
4144
4315
|
class: "no-items-found"
|
|
4145
|
-
},
|
|
4316
|
+
}, Ic = {
|
|
4146
4317
|
__name: "TranslationListing",
|
|
4147
4318
|
props: {
|
|
4148
4319
|
url: {
|
|
@@ -4179,7 +4350,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4179
4350
|
}
|
|
4180
4351
|
},
|
|
4181
4352
|
setup(e) {
|
|
4182
|
-
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);
|
|
4183
4354
|
g.group = null;
|
|
4184
4355
|
function I(e) {
|
|
4185
4356
|
g.group = e ?? null, b(!0);
|
|
@@ -4195,8 +4366,8 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4195
4366
|
z.value = !1, G();
|
|
4196
4367
|
});
|
|
4197
4368
|
}
|
|
4198
|
-
return (t, n) => (S(), l("div",
|
|
4199
|
-
f(
|
|
4369
|
+
return (t, n) => (S(), l("div", wc, [u("div", Tc, [
|
|
4370
|
+
f(Fs, {
|
|
4200
4371
|
show: j.value,
|
|
4201
4372
|
item: P.value,
|
|
4202
4373
|
locales: A.value,
|
|
@@ -4212,7 +4383,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4212
4383
|
"translations",
|
|
4213
4384
|
"onSaved"
|
|
4214
4385
|
]),
|
|
4215
|
-
f(
|
|
4386
|
+
f(mc, {
|
|
4216
4387
|
show: M.value,
|
|
4217
4388
|
locales: A.value,
|
|
4218
4389
|
url: e.url,
|
|
@@ -4228,7 +4399,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4228
4399
|
"translations",
|
|
4229
4400
|
"onImported"
|
|
4230
4401
|
]),
|
|
4231
|
-
f(
|
|
4402
|
+
f(Cc, {
|
|
4232
4403
|
show: N.value,
|
|
4233
4404
|
locales: A.value,
|
|
4234
4405
|
url: e.url,
|
|
@@ -4240,7 +4411,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4240
4411
|
"url",
|
|
4241
4412
|
"translations"
|
|
4242
4413
|
]),
|
|
4243
|
-
u("div",
|
|
4414
|
+
u("div", Ec, [u("div", Dc, [
|
|
4244
4415
|
n[9] ||= u("i", { class: "fa fa-align-justify" }, null, -1),
|
|
4245
4416
|
d(" " + D(e.translations.listing_title) + " ", 1),
|
|
4246
4417
|
u("a", {
|
|
@@ -4266,7 +4437,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4266
4437
|
ref: r,
|
|
4267
4438
|
class: "card-body"
|
|
4268
4439
|
}, [
|
|
4269
|
-
u("div",
|
|
4440
|
+
u("div", Oc, [u("div", kc, [f(Pn, {
|
|
4270
4441
|
search: k(v),
|
|
4271
4442
|
"onUpdate:search": n[5] ||= (e) => h(v) ? v.value = e : null,
|
|
4272
4443
|
"filter-fn": k(x),
|
|
@@ -4294,12 +4465,12 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4294
4465
|
"search",
|
|
4295
4466
|
"filter-fn",
|
|
4296
4467
|
"translations"
|
|
4297
|
-
])]), u("div",
|
|
4468
|
+
])]), u("div", Ac, [f(In, {
|
|
4298
4469
|
modelValue: k(p).state.per_page,
|
|
4299
4470
|
"onUpdate:modelValue": n[6] ||= (e) => k(p).state.per_page = e
|
|
4300
4471
|
}, null, 8, ["modelValue"])])]),
|
|
4301
|
-
u("div",
|
|
4302
|
-
f(
|
|
4472
|
+
u("div", jc, [u("table", Mc, [u("thead", null, [u("tr", null, [
|
|
4473
|
+
f(Z, {
|
|
4303
4474
|
column: "group",
|
|
4304
4475
|
"order-by": k(m),
|
|
4305
4476
|
onSort: k(C)
|
|
@@ -4307,7 +4478,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4307
4478
|
default: F(() => [d(D(e.translations.group), 1)]),
|
|
4308
4479
|
_: 1
|
|
4309
4480
|
}, 8, ["order-by", "onSort"]),
|
|
4310
|
-
f(
|
|
4481
|
+
f(Z, {
|
|
4311
4482
|
column: "key",
|
|
4312
4483
|
"order-by": k(m),
|
|
4313
4484
|
onSort: k(C)
|
|
@@ -4315,7 +4486,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4315
4486
|
default: F(() => [d(D(e.translations.default), 1)]),
|
|
4316
4487
|
_: 1
|
|
4317
4488
|
}, 8, ["order-by", "onSort"]),
|
|
4318
|
-
f(
|
|
4489
|
+
f(Z, {
|
|
4319
4490
|
column: "text",
|
|
4320
4491
|
"order-by": k(m),
|
|
4321
4492
|
onSort: k(C)
|
|
@@ -4323,7 +4494,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4323
4494
|
default: F(() => [d(D(e.userLocale.toUpperCase()), 1)]),
|
|
4324
4495
|
_: 1
|
|
4325
4496
|
}, 8, ["order-by", "onSort"]),
|
|
4326
|
-
k(a)(4) ? (S(), s(
|
|
4497
|
+
k(a)(4) ? (S(), s(Z, {
|
|
4327
4498
|
key: 0,
|
|
4328
4499
|
column: "created_at",
|
|
4329
4500
|
"order-by": k(m),
|
|
@@ -4337,16 +4508,16 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4337
4508
|
u("td", null, D(t.group), 1),
|
|
4338
4509
|
u("td", null, D(t.key), 1),
|
|
4339
4510
|
u("td", null, D(t.text?.[e.userLocale]), 1),
|
|
4340
|
-
k(a)(4) ? (S(), l("td",
|
|
4511
|
+
k(a)(4) ? (S(), l("td", Nc, D(k(K)(t.created_at)), 1)) : c("", !0),
|
|
4341
4512
|
u("td", null, [u("a", {
|
|
4342
4513
|
class: "btn btn-sm btn-info",
|
|
4343
4514
|
href: "#",
|
|
4344
4515
|
title: e.translations.edit_btn,
|
|
4345
4516
|
role: "button",
|
|
4346
4517
|
onClick: R((e) => L(t), ["prevent"])
|
|
4347
|
-
}, [...n[11] ||= [u("i", { class: "fa fa-edit" }, null, -1)]], 8,
|
|
4518
|
+
}, [...n[11] ||= [u("i", { class: "fa fa-edit" }, null, -1)]], 8, Pc)])
|
|
4348
4519
|
]))), 128))])])]),
|
|
4349
|
-
f(
|
|
4520
|
+
f(An, {
|
|
4350
4521
|
pagination: k(p).state,
|
|
4351
4522
|
options: k(p).options,
|
|
4352
4523
|
translations: {
|
|
@@ -4363,7 +4534,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4363
4534
|
"onPageChange",
|
|
4364
4535
|
"onPerPageChange"
|
|
4365
4536
|
]),
|
|
4366
|
-
k(y)?.length ? c("", !0) : (S(), l("div",
|
|
4537
|
+
k(y)?.length ? c("", !0) : (S(), l("div", Fc, [
|
|
4367
4538
|
n[12] ||= u("i", { class: "fa fa-magnifying-glass" }, null, -1),
|
|
4368
4539
|
u("h3", null, D(e.translations.no_items), 1),
|
|
4369
4540
|
u("p", null, D(e.translations.try_changing_items), 1),
|
|
@@ -4377,7 +4548,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4377
4548
|
], 512)])
|
|
4378
4549
|
])]));
|
|
4379
4550
|
}
|
|
4380
|
-
},
|
|
4551
|
+
}, Lc = {
|
|
4381
4552
|
url: "",
|
|
4382
4553
|
collection: "",
|
|
4383
4554
|
maxNumberOfFiles: 1,
|
|
@@ -4385,16 +4556,16 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4385
4556
|
acceptedFileTypes: void 0,
|
|
4386
4557
|
thumbnailWidth: 200,
|
|
4387
4558
|
uploadedMedia: []
|
|
4388
|
-
},
|
|
4559
|
+
}, Rc = {
|
|
4389
4560
|
type: Object,
|
|
4390
|
-
default: () => ({ ...
|
|
4561
|
+
default: () => ({ ...Lc })
|
|
4391
4562
|
};
|
|
4392
4563
|
//#endregion
|
|
4393
4564
|
//#region src/ui/index.js
|
|
4394
|
-
function
|
|
4395
|
-
document.readyState === "loading" ? document.addEventListener("DOMContentLoaded",
|
|
4565
|
+
function zc() {
|
|
4566
|
+
document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", Bc) : Bc();
|
|
4396
4567
|
}
|
|
4397
|
-
function
|
|
4568
|
+
function Bc() {
|
|
4398
4569
|
let e = document.getElementById("sidebar"), t = null;
|
|
4399
4570
|
document.querySelectorAll(".btn-spinner").forEach((e) => {
|
|
4400
4571
|
e.addEventListener("click", (t) => {
|
|
@@ -4434,4 +4605,4 @@ function Ec() {
|
|
|
4434
4605
|
}), e && window.innerWidth < 992 && e.classList.add("hide");
|
|
4435
4606
|
}
|
|
4436
4607
|
//#endregion
|
|
4437
|
-
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 };
|