@dejwcake/craftable 2.1.2 → 2.3.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 +464 -413
- package/package.json +1 -1
- package/src/components/BackButton.vue +17 -0
- package/src/components/listing/ShowButton.vue +17 -0
- package/src/index.js +10 -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 J(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 nt = {
|
|
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
|
+
}, rt = (e, t, n) => {
|
|
131
|
+
let r, i = nt[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
|
+
}, it = {
|
|
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
|
+
}, at = {
|
|
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
|
+
}, ot = {
|
|
156
169
|
code: "en-US",
|
|
157
|
-
formatDistance:
|
|
158
|
-
formatLong:
|
|
159
|
-
formatRelative: (e, t, n, r) =>
|
|
170
|
+
formatDistance: rt,
|
|
171
|
+
formatLong: it,
|
|
172
|
+
formatRelative: (e, t, n, r) => at[e],
|
|
160
173
|
localize: {
|
|
161
174
|
ordinalNumber: (e, t) => {
|
|
162
175
|
let n = Number(e), r = n % 100;
|
|
@@ -480,27 +493,27 @@ var Qe = {
|
|
|
480
493
|
weekStartsOn: 0,
|
|
481
494
|
firstWeekContainsDate: 1
|
|
482
495
|
}
|
|
483
|
-
},
|
|
496
|
+
}, st = ot;
|
|
484
497
|
function Y() {
|
|
485
|
-
return
|
|
498
|
+
return st;
|
|
486
499
|
}
|
|
487
|
-
async function
|
|
500
|
+
async function ct() {
|
|
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: ot }),
|
|
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
|
+
st = 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 lt = window.axios;
|
|
516
|
+
function ut(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,
|
|
@@ -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
|
+
lt.post(e.action, n).then((e) => {
|
|
564
577
|
E(e.data);
|
|
565
578
|
}).catch((e) => {
|
|
566
579
|
D(e.response?.data || {});
|
|
@@ -625,12 +638,12 @@ 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
|
|
646
|
+
var dt = window.axios;
|
|
634
647
|
function X(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() {
|
|
@@ -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 = "", dt.post(e.action, n.value).then((e) => {
|
|
651
664
|
c(e.data);
|
|
652
665
|
}).catch((e) => {
|
|
653
666
|
l(e.response?.data || {});
|
|
@@ -679,7 +692,7 @@ function X(e, t = {}) {
|
|
|
679
692
|
//#endregion
|
|
680
693
|
//#region src/composables/useBaseListing.js
|
|
681
694
|
var Z = window.axios;
|
|
682
|
-
function
|
|
695
|
+
function ft(e) {
|
|
683
696
|
let { cookies: t } = re(), n = C({
|
|
684
697
|
state: {
|
|
685
698
|
per_page: t.get("per_page") || 10,
|
|
@@ -692,7 +705,7 @@ 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(J(e.timezone || "UTC")), l = C({}), u = w(!1), d = C({
|
|
696
709
|
show: !1,
|
|
697
710
|
onConfirm: null,
|
|
698
711
|
translations: {
|
|
@@ -702,7 +715,7 @@ function ct(e) {
|
|
|
702
715
|
cancel_btn: "Cancel"
|
|
703
716
|
}
|
|
704
717
|
}), f = setInterval(() => {
|
|
705
|
-
c.value =
|
|
718
|
+
c.value = J(e.timezone || "UTC");
|
|
706
719
|
}, 1e3);
|
|
707
720
|
b(() => {
|
|
708
721
|
clearInterval(f);
|
|
@@ -843,19 +856,19 @@ function ct(e) {
|
|
|
843
856
|
onUpdateItem: N,
|
|
844
857
|
formatDate: K,
|
|
845
858
|
formatDatetime: q,
|
|
846
|
-
formatTime:
|
|
859
|
+
formatTime: Ze
|
|
847
860
|
};
|
|
848
861
|
}
|
|
849
862
|
//#endregion
|
|
850
863
|
//#region src/composables/useAdmin.js
|
|
851
|
-
var
|
|
852
|
-
function
|
|
864
|
+
var pt = window.axios;
|
|
865
|
+
function mt() {
|
|
853
866
|
let e = w(!1);
|
|
854
867
|
function t(t) {
|
|
855
868
|
e.value = !!t;
|
|
856
869
|
}
|
|
857
870
|
return x(() => {
|
|
858
|
-
|
|
871
|
+
pt.interceptors.request.use((e) => (t(!0), e), (e) => (t(!1), Promise.reject(e))), pt.interceptors.response.use((e) => (t(!1), e), (e) => (t(!1), Promise.reject(e)));
|
|
859
872
|
}), {
|
|
860
873
|
loading: e,
|
|
861
874
|
setLoading: t
|
|
@@ -863,7 +876,7 @@ function ut() {
|
|
|
863
876
|
}
|
|
864
877
|
//#endregion
|
|
865
878
|
//#region src/composables/useResponsiveColumns.js
|
|
866
|
-
var
|
|
879
|
+
var ht = [
|
|
867
880
|
{
|
|
868
881
|
minWidth: 1800,
|
|
869
882
|
maxPriority: 10
|
|
@@ -893,8 +906,8 @@ var dt = [
|
|
|
893
906
|
maxPriority: 0
|
|
894
907
|
}
|
|
895
908
|
];
|
|
896
|
-
function
|
|
897
|
-
let n = t.breakpoints ||
|
|
909
|
+
function gt(e, t = {}) {
|
|
910
|
+
let n = t.breakpoints || ht, r = w(10), i = null;
|
|
898
911
|
function a(e) {
|
|
899
912
|
for (let t of n) if (e >= t.minWidth) {
|
|
900
913
|
r.value = t.maxPriority;
|
|
@@ -922,31 +935,31 @@ function ft(e, t = {}) {
|
|
|
922
935
|
}
|
|
923
936
|
//#endregion
|
|
924
937
|
//#region src/components/form/MediaUpload.vue
|
|
925
|
-
var
|
|
938
|
+
var _t = { class: "base-upload" }, vt = {
|
|
926
939
|
key: 0,
|
|
927
940
|
class: "form-label d-flex align-items-center"
|
|
928
|
-
},
|
|
941
|
+
}, yt = { class: "fw-semibold upload-label-title" }, bt = {
|
|
929
942
|
key: 0,
|
|
930
943
|
class: "fa fa-lock ms-auto text-body-secondary"
|
|
931
|
-
},
|
|
944
|
+
}, xt = ["value"], St = {
|
|
932
945
|
key: 0,
|
|
933
946
|
class: "dz-message"
|
|
934
|
-
},
|
|
947
|
+
}, Ct = { class: "dz-image" }, wt = ["src", "alt"], Tt = {
|
|
935
948
|
key: 1,
|
|
936
949
|
class: "dz-file-icon"
|
|
937
|
-
},
|
|
950
|
+
}, Et = { class: "dz-file-size" }, Dt = { class: "dz-file-name" }, Ot = ["onClick"], kt = { class: "dz-image" }, At = ["src", "alt"], jt = {
|
|
938
951
|
key: 1,
|
|
939
952
|
class: "dz-file-icon"
|
|
940
|
-
},
|
|
953
|
+
}, Mt = {
|
|
941
954
|
key: 0,
|
|
942
955
|
class: "dz-progress"
|
|
943
|
-
},
|
|
956
|
+
}, Nt = {
|
|
944
957
|
key: 1,
|
|
945
958
|
class: "dz-success-mark"
|
|
946
|
-
},
|
|
959
|
+
}, Pt = {
|
|
947
960
|
key: 2,
|
|
948
961
|
class: "dz-error-mark"
|
|
949
|
-
},
|
|
962
|
+
}, Ft = { class: "dz-file-size" }, It = { class: "dz-file-name" }, Lt = ["onClick"], Rt = {
|
|
950
963
|
__name: "MediaUpload",
|
|
951
964
|
props: {
|
|
952
965
|
url: {
|
|
@@ -1108,40 +1121,40 @@ var pt = { class: "base-upload" }, mt = {
|
|
|
1108
1121
|
});
|
|
1109
1122
|
}), e;
|
|
1110
1123
|
}
|
|
1111
|
-
return t({ getFiles: V }), (t, n) => (S(), l("div",
|
|
1124
|
+
return t({ getFiles: V }), (t, n) => (S(), l("div", _t, [e.label ? (S(), l("label", vt, [
|
|
1112
1125
|
u("i", { class: _([a.value, "me-1 text-body-secondary"]) }, null, 2),
|
|
1113
|
-
u("span",
|
|
1126
|
+
u("span", yt, D(e.label), 1),
|
|
1114
1127
|
(S(!0), l(i, null, T(s.value, (e, t) => (S(), l("small", {
|
|
1115
1128
|
key: t,
|
|
1116
1129
|
class: "text-body-secondary fw-light ms-1"
|
|
1117
1130
|
}, "(" + D(e) + ")", 1))), 128)),
|
|
1118
|
-
e.isPrivate ? (S(), l("i",
|
|
1131
|
+
e.isPrivate ? (S(), l("i", bt)) : c("", !0)
|
|
1119
1132
|
])) : c("", !0), u("div", g(k(j)(), { class: ["vue3-dropzone dropzone", { "dz-drag-hover": k(N) }] }), [
|
|
1120
1133
|
u("input", v(m(k(M)())), null, 16),
|
|
1121
1134
|
u("input", {
|
|
1122
1135
|
type: "hidden",
|
|
1123
1136
|
name: "collection",
|
|
1124
1137
|
value: e.collection
|
|
1125
|
-
}, null, 8,
|
|
1126
|
-
b.value.length === 0 && d.value.length === 0 ? (S(), l("div",
|
|
1138
|
+
}, null, 8, xt),
|
|
1139
|
+
b.value.length === 0 && d.value.length === 0 ? (S(), l("div", St, [...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
1140
|
(S(!0), l(i, null, T(f.value, (e, t) => (S(), l("div", {
|
|
1128
1141
|
key: "existing-" + (e.id || t),
|
|
1129
1142
|
class: _(["dz-preview dz-file-preview dz-existing", { "dz-deleted": e.deleted }])
|
|
1130
|
-
}, [u("div",
|
|
1143
|
+
}, [u("div", Ct, [L(e) ? (S(), l("img", {
|
|
1131
1144
|
key: 0,
|
|
1132
1145
|
src: e.thumb_url,
|
|
1133
1146
|
alt: e.name
|
|
1134
|
-
}, null, 8,
|
|
1147
|
+
}, null, 8, wt)) : (S(), l("div", Tt, [u("i", { class: _(z(e)) }, null, 2), u("p", null, D(e.name), 1)]))]), u("div", {
|
|
1135
1148
|
class: "dz-hover-overlay",
|
|
1136
1149
|
onClick: n[0] ||= R(() => {}, ["stop"])
|
|
1137
1150
|
}, [
|
|
1138
|
-
u("span",
|
|
1139
|
-
u("span",
|
|
1151
|
+
u("span", Et, D(I(e.size)), 1),
|
|
1152
|
+
u("span", Dt, D(e.name), 1),
|
|
1140
1153
|
u("button", {
|
|
1141
1154
|
type: "button",
|
|
1142
1155
|
class: "dz-remove-btn",
|
|
1143
1156
|
onClick: R((e) => P(t), ["stop"])
|
|
1144
|
-
}, "REMOVE", 8,
|
|
1157
|
+
}, "REMOVE", 8, Ot)
|
|
1145
1158
|
])], 2))), 128)),
|
|
1146
1159
|
(S(!0), l(i, null, T(d.value, (e, t) => (S(), l("div", {
|
|
1147
1160
|
key: "new-" + t,
|
|
@@ -1150,40 +1163,40 @@ var pt = { class: "base-upload" }, mt = {
|
|
|
1150
1163
|
"dz-error": e.showError
|
|
1151
1164
|
}])
|
|
1152
1165
|
}, [
|
|
1153
|
-
u("div",
|
|
1166
|
+
u("div", kt, [e.previewUrl ? (S(), l("img", {
|
|
1154
1167
|
key: 0,
|
|
1155
1168
|
src: e.previewUrl,
|
|
1156
1169
|
alt: e.file.name
|
|
1157
|
-
}, null, 8,
|
|
1158
|
-
e.uploading ? (S(), l("div",
|
|
1170
|
+
}, null, 8, At)) : (S(), l("div", jt, [u("i", { class: _(B(e.file.type)) }, null, 2), u("p", null, D(e.file.name), 1)]))]),
|
|
1171
|
+
e.uploading ? (S(), l("div", Mt, [u("span", {
|
|
1159
1172
|
class: "dz-upload",
|
|
1160
1173
|
style: y({ width: e.progress + "%" })
|
|
1161
1174
|
}, null, 4)])) : c("", !0),
|
|
1162
|
-
e.showSuccess ? (S(), l("div",
|
|
1163
|
-
e.showError ? (S(), l("div",
|
|
1175
|
+
e.showSuccess ? (S(), l("div", Nt, [...n[3] ||= [u("i", { class: "fa-solid fa-check" }, null, -1)]])) : c("", !0),
|
|
1176
|
+
e.showError ? (S(), l("div", Pt, [...n[4] ||= [u("i", { class: "fa-solid fa-xmark" }, null, -1)]])) : c("", !0),
|
|
1164
1177
|
!e.uploading && !e.showSuccess ? (S(), l("div", {
|
|
1165
1178
|
key: 3,
|
|
1166
1179
|
class: "dz-hover-overlay",
|
|
1167
1180
|
onClick: n[1] ||= R(() => {}, ["stop"])
|
|
1168
1181
|
}, [
|
|
1169
|
-
u("span",
|
|
1170
|
-
u("span",
|
|
1182
|
+
u("span", Ft, D(I(e.file.size)), 1),
|
|
1183
|
+
u("span", It, D(e.file.name), 1),
|
|
1171
1184
|
u("button", {
|
|
1172
1185
|
type: "button",
|
|
1173
1186
|
class: "dz-remove-btn",
|
|
1174
1187
|
onClick: R((e) => F(t), ["stop"])
|
|
1175
|
-
}, "REMOVE", 8,
|
|
1188
|
+
}, "REMOVE", 8, Lt)
|
|
1176
1189
|
])) : c("", !0)
|
|
1177
1190
|
], 2))), 128))
|
|
1178
1191
|
], 16)]));
|
|
1179
1192
|
}
|
|
1180
|
-
},
|
|
1193
|
+
}, zt = { class: "tiptap-editor" }, Bt = {
|
|
1181
1194
|
key: 0,
|
|
1182
1195
|
class: "tiptap-toolbar"
|
|
1183
|
-
},
|
|
1196
|
+
}, Vt = ["selected"], Ht = ["value", "selected"], Ut = {
|
|
1184
1197
|
key: 0,
|
|
1185
1198
|
class: "tiptap-toolbar-divider"
|
|
1186
|
-
},
|
|
1199
|
+
}, Wt = ["disabled"], Gt = ["disabled"], Kt = {
|
|
1187
1200
|
__name: "TiptapEditor",
|
|
1188
1201
|
props: {
|
|
1189
1202
|
modelValue: {
|
|
@@ -1264,14 +1277,14 @@ var pt = { class: "base-upload" }, mt = {
|
|
|
1264
1277
|
m.value.value = "";
|
|
1265
1278
|
});
|
|
1266
1279
|
}
|
|
1267
|
-
return (t, n) => (S(), l("div",
|
|
1280
|
+
return (t, n) => (S(), l("div", zt, [k(s) ? (S(), l("div", Bt, [
|
|
1268
1281
|
u("select", {
|
|
1269
1282
|
class: "tiptap-heading-select",
|
|
1270
1283
|
onChange: n[0] ||= (e) => d(e)
|
|
1271
1284
|
}, [u("option", {
|
|
1272
1285
|
value: "0",
|
|
1273
1286
|
selected: !k(s).isActive("heading")
|
|
1274
|
-
}, "Paragraph", 8,
|
|
1287
|
+
}, "Paragraph", 8, Vt), (S(), l(i, null, T([
|
|
1275
1288
|
1,
|
|
1276
1289
|
2,
|
|
1277
1290
|
3,
|
|
@@ -1282,7 +1295,7 @@ var pt = { class: "base-upload" }, mt = {
|
|
|
1282
1295
|
key: e,
|
|
1283
1296
|
value: e,
|
|
1284
1297
|
selected: k(s).isActive("heading", { level: e })
|
|
1285
|
-
}, " H" + D(e), 9,
|
|
1298
|
+
}, " H" + D(e), 9, Ht)), 64))], 32),
|
|
1286
1299
|
u("button", {
|
|
1287
1300
|
type: "button",
|
|
1288
1301
|
class: _({ "is-active": k(s).isActive("bold") }),
|
|
@@ -1338,7 +1351,7 @@ var pt = { class: "base-upload" }, mt = {
|
|
|
1338
1351
|
style: { display: "none" },
|
|
1339
1352
|
onChange: v
|
|
1340
1353
|
}, null, 544),
|
|
1341
|
-
e.showTableControls ? (S(), l("span",
|
|
1354
|
+
e.showTableControls ? (S(), l("span", Ut)) : c("", !0),
|
|
1342
1355
|
e.showTableControls ? (S(), l("button", {
|
|
1343
1356
|
key: 1,
|
|
1344
1357
|
type: "button",
|
|
@@ -1355,13 +1368,13 @@ var pt = { class: "base-upload" }, mt = {
|
|
|
1355
1368
|
disabled: !k(s).can().undo(),
|
|
1356
1369
|
title: "Undo",
|
|
1357
1370
|
onClick: n[7] ||= (e) => k(s).chain().focus().undo().run()
|
|
1358
|
-
}, " ↩ ", 8,
|
|
1371
|
+
}, " ↩ ", 8, Wt),
|
|
1359
1372
|
u("button", {
|
|
1360
1373
|
type: "button",
|
|
1361
1374
|
disabled: !k(s).can().redo(),
|
|
1362
1375
|
title: "Redo",
|
|
1363
1376
|
onClick: n[8] ||= (e) => k(s).chain().focus().redo().run()
|
|
1364
|
-
}, " ↪ ", 8,
|
|
1377
|
+
}, " ↪ ", 8, Gt)
|
|
1365
1378
|
])) : c("", !0), f(k(ae), {
|
|
1366
1379
|
editor: k(s),
|
|
1367
1380
|
class: "tiptap-content"
|
|
@@ -1370,7 +1383,7 @@ var pt = { class: "base-upload" }, mt = {
|
|
|
1370
1383
|
};
|
|
1371
1384
|
//#endregion
|
|
1372
1385
|
//#region src/utils/ckeditorHelpers.js
|
|
1373
|
-
function
|
|
1386
|
+
function qt(e) {
|
|
1374
1387
|
if (!e) return e;
|
|
1375
1388
|
let t = new DOMParser().parseFromString(e, "text/html"), n = !1;
|
|
1376
1389
|
return t.querySelectorAll("figure").forEach((e) => {
|
|
@@ -1380,14 +1393,14 @@ function Ut(e) {
|
|
|
1380
1393
|
r && (r.style.width = t, r.style.height = "auto", n = !0);
|
|
1381
1394
|
}), n ? t.body.innerHTML : e;
|
|
1382
1395
|
}
|
|
1383
|
-
function
|
|
1396
|
+
function Jt(e, t) {
|
|
1384
1397
|
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]) ?
|
|
1398
|
+
for (let r of Object.keys(t)) n[r] = t[r] && typeof t[r] == "object" && !Array.isArray(t[r]) && e[r] && typeof e[r] == "object" && !Array.isArray(e[r]) ? Jt(e[r], t[r]) : t[r];
|
|
1386
1399
|
return n;
|
|
1387
1400
|
}
|
|
1388
1401
|
//#endregion
|
|
1389
1402
|
//#region src/components/form/CkeditorEditor.vue
|
|
1390
|
-
var
|
|
1403
|
+
var Yt = { class: "ck-editor-wrapper" }, Xt = {
|
|
1391
1404
|
__name: "CkeditorEditor",
|
|
1392
1405
|
props: {
|
|
1393
1406
|
modelValue: {
|
|
@@ -1407,7 +1420,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
1407
1420
|
setup(e, { emit: t }) {
|
|
1408
1421
|
let n = window.axios, r = e, i = t, a = o({
|
|
1409
1422
|
get: () => r.modelValue ?? "",
|
|
1410
|
-
set: (e) => i("update:modelValue",
|
|
1423
|
+
set: (e) => i("update:modelValue", qt(e))
|
|
1411
1424
|
});
|
|
1412
1425
|
function s(e) {
|
|
1413
1426
|
e.plugins.get("FileRepository").createUploadAdapter = (e) => new c(e, r.uploadUrl);
|
|
@@ -1548,8 +1561,8 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
1548
1561
|
class: "ck-heading_heading4"
|
|
1549
1562
|
}
|
|
1550
1563
|
] }
|
|
1551
|
-
}, d = o(() => r.config ?
|
|
1552
|
-
return (e, t) => (S(), l("div",
|
|
1564
|
+
}, d = o(() => r.config ? Jt(u, O(r.config)) : u);
|
|
1565
|
+
return (e, t) => (S(), l("div", Yt, [f(k(We), {
|
|
1553
1566
|
modelValue: a.value,
|
|
1554
1567
|
"onUpdate:modelValue": t[0] ||= (e) => a.value = e,
|
|
1555
1568
|
editor: k(_e),
|
|
@@ -1560,22 +1573,22 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
1560
1573
|
"config"
|
|
1561
1574
|
])]));
|
|
1562
1575
|
}
|
|
1563
|
-
},
|
|
1576
|
+
}, Zt = { class: "user-detail-tooltip d-inline-flex align-items-center" }, Qt = {
|
|
1564
1577
|
key: 0,
|
|
1565
1578
|
class: "col-form-label text-body-secondary me-2 mb-0"
|
|
1566
|
-
},
|
|
1579
|
+
}, $t = { class: "d-inline-flex align-items-center cursor-pointer" }, en = ["src", "alt"], tn = {
|
|
1567
1580
|
key: 1,
|
|
1568
1581
|
class: "avatar-initials"
|
|
1569
|
-
},
|
|
1582
|
+
}, nn = {
|
|
1570
1583
|
key: 2,
|
|
1571
1584
|
class: "avatar-trigger-text"
|
|
1572
|
-
},
|
|
1585
|
+
}, rn = { class: "avatar-full-name" }, an = {
|
|
1573
1586
|
key: 0,
|
|
1574
1587
|
class: "d-block user-info-span"
|
|
1575
|
-
},
|
|
1588
|
+
}, on = { class: "user-detail-popper d-flex align-items-center" }, sn = { class: "user-avatar flex-shrink-0" }, cn = ["src", "alt"], ln = {
|
|
1576
1589
|
key: 1,
|
|
1577
1590
|
class: "avatar-initials"
|
|
1578
|
-
},
|
|
1591
|
+
}, un = { class: "user-info ms-3" }, dn = { key: 0 }, fn = { class: "text-uppercase" }, pn = ["href"], mn = { key: 1 }, hn = {
|
|
1579
1592
|
__name: "UserDetailTooltip",
|
|
1580
1593
|
props: {
|
|
1581
1594
|
user: {
|
|
@@ -1605,42 +1618,42 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
1605
1618
|
},
|
|
1606
1619
|
setup(e) {
|
|
1607
1620
|
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",
|
|
1621
|
+
return (t, r) => (S(), l("div", Zt, [e.label ? (S(), l("label", Qt, D(e.label) + " :", 1)) : c("", !0), f(k(Ge), {
|
|
1609
1622
|
arrow: "",
|
|
1610
1623
|
click: ""
|
|
1611
1624
|
}, {
|
|
1612
|
-
content: F(() => [u("div",
|
|
1625
|
+
content: F(() => [u("div", on, [u("div", sn, [e.user.avatar_thumb_url ? (S(), l("img", {
|
|
1613
1626
|
key: 0,
|
|
1614
1627
|
src: e.user.avatar_thumb_url,
|
|
1615
1628
|
class: "avatar-photo",
|
|
1616
1629
|
alt: e.user.full_name
|
|
1617
|
-
}, null, 8,
|
|
1618
|
-
u("h3", null, [d(D(e.user.full_name) + " ", 1), e.userText ? (S(), l("small",
|
|
1630
|
+
}, null, 8, cn)) : (S(), l("div", ln, D(n.value), 1))]), u("div", un, [
|
|
1631
|
+
u("h3", null, [d(D(e.user.full_name) + " ", 1), e.userText ? (S(), l("small", dn, [r[0] ||= d(" | ", -1), u("strong", fn, D(e.userText), 1)])) : c("", !0)]),
|
|
1619
1632
|
e.user.email ? (S(), l("a", {
|
|
1620
1633
|
key: 0,
|
|
1621
1634
|
href: "mailto:" + e.user.email
|
|
1622
|
-
}, D(e.user.email), 9,
|
|
1623
|
-
e.datetimeText ? (S(), l("p",
|
|
1635
|
+
}, D(e.user.email), 9, pn)) : c("", !0),
|
|
1636
|
+
e.datetimeText ? (S(), l("p", mn, D(e.datetimeText), 1)) : c("", !0)
|
|
1624
1637
|
])])]),
|
|
1625
|
-
default: F(() => [u("div",
|
|
1638
|
+
default: F(() => [u("div", $t, [e.user.avatar_thumb_url ? (S(), l("img", {
|
|
1626
1639
|
key: 0,
|
|
1627
1640
|
src: e.user.avatar_thumb_url,
|
|
1628
1641
|
class: "avatar-photo",
|
|
1629
1642
|
alt: e.user.full_name
|
|
1630
|
-
}, null, 8,
|
|
1643
|
+
}, null, 8, en)) : (S(), l("div", tn, D(n.value), 1)), e.options.showFullNameLabel ? (S(), l("div", nn, [u("span", rn, D(e.user.full_name), 1), e.datetime ? (S(), l("span", an, D(e.datetime), 1)) : c("", !0)])) : c("", !0)])]),
|
|
1631
1644
|
_: 1
|
|
1632
1645
|
})]));
|
|
1633
1646
|
}
|
|
1634
|
-
},
|
|
1647
|
+
}, gn = {
|
|
1635
1648
|
key: 0,
|
|
1636
1649
|
class: "row"
|
|
1637
|
-
},
|
|
1650
|
+
}, _n = { class: "col-sm" }, vn = { class: "pagination-caption" }, yn = { class: "col-sm-auto" }, bn = {
|
|
1638
1651
|
key: 0,
|
|
1639
1652
|
class: "page-link"
|
|
1640
|
-
},
|
|
1653
|
+
}, xn = { "aria-hidden": "true" }, Sn = ["aria-label"], Cn = { "aria-hidden": "true" }, wn = ["onClick"], Tn = {
|
|
1641
1654
|
key: 0,
|
|
1642
1655
|
class: "page-link"
|
|
1643
|
-
},
|
|
1656
|
+
}, En = { "aria-hidden": "true" }, Dn = ["aria-label"], On = { "aria-hidden": "true" }, kn = {
|
|
1644
1657
|
__name: "Pagination",
|
|
1645
1658
|
props: {
|
|
1646
1659
|
pagination: {
|
|
@@ -1691,7 +1704,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
1691
1704
|
function g(e) {
|
|
1692
1705
|
n.pagination.current_page !== e && r("page-change", e);
|
|
1693
1706
|
}
|
|
1694
|
-
return (t, n) => e.pagination.total > 0 ? (S(), l("div",
|
|
1707
|
+
return (t, n) => e.pagination.total > 0 ? (S(), l("div", gn, [u("div", _n, [u("span", vn, D(s.value), 1)]), u("div", yn, [u("nav", null, [e.pagination.last_page > 1 ? (S(), l("ul", {
|
|
1695
1708
|
key: 0,
|
|
1696
1709
|
class: _(["pagination", p.value])
|
|
1697
1710
|
}, [
|
|
@@ -1701,13 +1714,13 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
1701
1714
|
disabled: e.pagination.current_page <= 1,
|
|
1702
1715
|
"page-item": !0
|
|
1703
1716
|
})
|
|
1704
|
-
}, [e.pagination.current_page <= 1 ? (S(), l("span",
|
|
1717
|
+
}, [e.pagination.current_page <= 1 ? (S(), l("span", bn, [u("span", xn, D(e.translations.previous), 1)])) : c("", !0), e.pagination.current_page > 1 ? (S(), l("a", {
|
|
1705
1718
|
key: 1,
|
|
1706
1719
|
href: "#",
|
|
1707
1720
|
"aria-label": e.translations.previous,
|
|
1708
1721
|
class: "page-link",
|
|
1709
1722
|
onClick: n[0] ||= R((t) => g(e.pagination.current_page - 1), ["prevent"])
|
|
1710
|
-
}, [u("span",
|
|
1723
|
+
}, [u("span", Cn, D(e.translations.previous), 1)], 8, Sn)) : c("", !0)], 2)) : c("", !0),
|
|
1711
1724
|
(S(!0), l(i, null, T(f.value, (t) => (S(), l("li", {
|
|
1712
1725
|
key: t,
|
|
1713
1726
|
class: _({
|
|
@@ -1718,20 +1731,20 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
1718
1731
|
href: "#",
|
|
1719
1732
|
class: "page-link",
|
|
1720
1733
|
onClick: R((e) => g(t), ["prevent"])
|
|
1721
|
-
}, D(t), 9,
|
|
1734
|
+
}, D(t), 9, wn)], 2))), 128)),
|
|
1722
1735
|
h() ? (S(), l("li", {
|
|
1723
1736
|
key: 1,
|
|
1724
1737
|
class: _({
|
|
1725
1738
|
disabled: e.pagination.current_page === e.pagination.last_page || e.pagination.last_page === 0,
|
|
1726
1739
|
"page-item": !0
|
|
1727
1740
|
})
|
|
1728
|
-
}, [e.pagination.current_page === e.pagination.last_page || e.pagination.last_page === 0 ? (S(), l("span",
|
|
1741
|
+
}, [e.pagination.current_page === e.pagination.last_page || e.pagination.last_page === 0 ? (S(), l("span", Tn, [u("span", En, D(e.translations.next), 1)])) : c("", !0), e.pagination.current_page < e.pagination.last_page ? (S(), l("a", {
|
|
1729
1742
|
key: 1,
|
|
1730
1743
|
href: "#",
|
|
1731
1744
|
"aria-label": e.translations.next,
|
|
1732
1745
|
class: "page-link",
|
|
1733
1746
|
onClick: n[1] ||= R((t) => g(e.pagination.current_page + 1), ["prevent"])
|
|
1734
|
-
}, [u("span",
|
|
1747
|
+
}, [u("span", On, D(e.translations.next), 1)], 8, Dn)) : c("", !0)], 2)) : c("", !0)
|
|
1735
1748
|
], 2)) : c("", !0)])])])) : c("", !0);
|
|
1736
1749
|
}
|
|
1737
1750
|
}, Q = {
|
|
@@ -1761,7 +1774,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
1761
1774
|
"fa-arrow-down-short-wide": e.orderBy.column === e.column && e.orderBy.direction === "desc"
|
|
1762
1775
|
}]) }, null, 2), E(t.$slots, "default")])]));
|
|
1763
1776
|
}
|
|
1764
|
-
},
|
|
1777
|
+
}, An = { class: "input-group" }, jn = { class: "form-control d-flex align-items-center p-0" }, Mn = ["placeholder", "value"], Nn = {
|
|
1765
1778
|
__name: "Search",
|
|
1766
1779
|
props: {
|
|
1767
1780
|
search: {
|
|
@@ -1807,9 +1820,9 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
1807
1820
|
function m() {
|
|
1808
1821
|
o(), r("update:search", ""), n.filterFn("search", "");
|
|
1809
1822
|
}
|
|
1810
|
-
return b(o), (t, n) => (S(), l("div",
|
|
1823
|
+
return b(o), (t, n) => (S(), l("div", An, [
|
|
1811
1824
|
E(t.$slots, "prepend"),
|
|
1812
|
-
u("div",
|
|
1825
|
+
u("div", jn, [u("input", {
|
|
1813
1826
|
ref_key: "inputRef",
|
|
1814
1827
|
ref: i,
|
|
1815
1828
|
class: "border-0 shadow-none ps-3 flex-grow-1",
|
|
@@ -1821,7 +1834,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
1821
1834
|
value: e.search,
|
|
1822
1835
|
onInput: s,
|
|
1823
1836
|
onKeyup: L(p, ["enter"])
|
|
1824
|
-
}, null, 40,
|
|
1837
|
+
}, null, 40, Mn), e.search ? (S(), l("button", {
|
|
1825
1838
|
key: 0,
|
|
1826
1839
|
type: "button",
|
|
1827
1840
|
class: "border-0 bg-transparent pe-1 ps-0 flex-shrink-0 text-danger",
|
|
@@ -1834,7 +1847,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
1834
1847
|
}, [n[1] ||= u("i", { class: "fa fa-search" }, null, -1), d("\xA0 " + D(e.translations.search_btn), 1)])
|
|
1835
1848
|
]));
|
|
1836
1849
|
}
|
|
1837
|
-
},
|
|
1850
|
+
}, Pn = ["value"], Fn = {
|
|
1838
1851
|
__name: "PerPage",
|
|
1839
1852
|
props: { modelValue: {
|
|
1840
1853
|
type: [Number, String],
|
|
@@ -1850,12 +1863,12 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
1850
1863
|
u("option", { value: "10" }, "10", -1),
|
|
1851
1864
|
u("option", { value: "25" }, "25", -1),
|
|
1852
1865
|
u("option", { value: "100" }, "100", -1)
|
|
1853
|
-
]], 40,
|
|
1866
|
+
]], 40, Pn));
|
|
1854
1867
|
}
|
|
1855
|
-
},
|
|
1868
|
+
}, In = {
|
|
1856
1869
|
key: 0,
|
|
1857
1870
|
class: "no-items-found"
|
|
1858
|
-
},
|
|
1871
|
+
}, Ln = ["href"], Rn = {
|
|
1859
1872
|
__name: "EmptyState",
|
|
1860
1873
|
props: {
|
|
1861
1874
|
show: {
|
|
@@ -1876,7 +1889,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
1876
1889
|
}
|
|
1877
1890
|
},
|
|
1878
1891
|
setup(e) {
|
|
1879
|
-
return (t, n) => e.show ? (S(), l("div",
|
|
1892
|
+
return (t, n) => e.show ? (S(), l("div", In, [
|
|
1880
1893
|
n[1] ||= u("i", { class: "fa fa-magnifying-glass" }, null, -1),
|
|
1881
1894
|
u("h3", null, D(e.translations.no_items), 1),
|
|
1882
1895
|
u("p", null, D(e.translations.try_changing_items), 1),
|
|
@@ -1885,10 +1898,10 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
1885
1898
|
class: "btn btn-primary btn-spinner",
|
|
1886
1899
|
href: e.createUrl,
|
|
1887
1900
|
role: "button"
|
|
1888
|
-
}, [n[0] ||= u("i", { class: "fa fa-plus" }, null, -1), d("\xA0 " + D(e.translations.create_btn), 1)], 8,
|
|
1901
|
+
}, [n[0] ||= u("i", { class: "fa fa-plus" }, null, -1), d("\xA0 " + D(e.translations.create_btn), 1)], 8, Ln)) : c("", !0)
|
|
1889
1902
|
])) : c("", !0);
|
|
1890
1903
|
}
|
|
1891
|
-
},
|
|
1904
|
+
}, zn = ["checked"], Bn = {
|
|
1892
1905
|
__name: "BulkCheckboxHeader",
|
|
1893
1906
|
props: {
|
|
1894
1907
|
isClickedAll: {
|
|
@@ -1908,17 +1921,17 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
1908
1921
|
checked: e.isClickedAll,
|
|
1909
1922
|
name: "enabled_fake_element",
|
|
1910
1923
|
onClick: n[0] ||= (t) => e.onToggleAll()
|
|
1911
|
-
}, null, 8,
|
|
1924
|
+
}, null, 8, zn), n[1] ||= u("label", {
|
|
1912
1925
|
class: "form-check-label",
|
|
1913
1926
|
for: "enabled"
|
|
1914
1927
|
}, " # ", -1)], 64));
|
|
1915
1928
|
}
|
|
1916
|
-
},
|
|
1929
|
+
}, Vn = [
|
|
1917
1930
|
"id",
|
|
1918
1931
|
"checked",
|
|
1919
1932
|
"name",
|
|
1920
1933
|
"disabled"
|
|
1921
|
-
],
|
|
1934
|
+
], Hn = ["for"], Un = {
|
|
1922
1935
|
__name: "BulkCheckboxRow",
|
|
1923
1936
|
props: {
|
|
1924
1937
|
itemId: {
|
|
@@ -1947,18 +1960,18 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
1947
1960
|
name: "enabled" + e.itemId + "_fake_element",
|
|
1948
1961
|
disabled: e.disabled,
|
|
1949
1962
|
onClick: n[0] ||= (t) => e.onToggle(e.itemId)
|
|
1950
|
-
}, null, 8,
|
|
1963
|
+
}, null, 8, Vn), u("label", {
|
|
1951
1964
|
class: "form-check-label",
|
|
1952
1965
|
for: "enabled" + e.itemId
|
|
1953
|
-
}, null, 8,
|
|
1966
|
+
}, null, 8, Hn)], 64));
|
|
1954
1967
|
}
|
|
1955
|
-
},
|
|
1968
|
+
}, Wn = { class: "align-middle fw-light text-dark" }, Gn = {
|
|
1956
1969
|
key: 0,
|
|
1957
1970
|
class: "fa fa-spinner"
|
|
1958
|
-
},
|
|
1971
|
+
}, Kn = {
|
|
1959
1972
|
key: 1,
|
|
1960
1973
|
class: "text-primary"
|
|
1961
|
-
},
|
|
1974
|
+
}, qn = { class: "float-end pe-2" }, Jn = {
|
|
1962
1975
|
__name: "BulkOperationsBar",
|
|
1963
1976
|
props: {
|
|
1964
1977
|
selectedCount: {
|
|
@@ -1996,29 +2009,29 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
1996
2009
|
}
|
|
1997
2010
|
},
|
|
1998
2011
|
setup(e) {
|
|
1999
|
-
return (t, n) => (S(), l(i, null, [u("span",
|
|
2012
|
+
return (t, n) => (S(), l(i, null, [u("span", Wn, [
|
|
2000
2013
|
d(D(e.translations.selected_items) + " " + D(e.selectedCount) + ". ", 1),
|
|
2001
2014
|
e.selectedCount < e.totalCount ? (S(), l("a", {
|
|
2002
2015
|
key: 0,
|
|
2003
2016
|
href: "javascript:void(0)",
|
|
2004
2017
|
class: "text-primary",
|
|
2005
2018
|
onClick: n[0] ||= (t) => e.onCheckAll()
|
|
2006
|
-
}, [e.loading ? (S(), l("i",
|
|
2007
|
-
e.selectedCount < e.totalCount ? (S(), l("span",
|
|
2019
|
+
}, [e.loading ? (S(), l("i", Gn)) : c("", !0), d(" " + D(e.translations.check_all_items) + " " + D(e.totalCount), 1)])) : c("", !0),
|
|
2020
|
+
e.selectedCount < e.totalCount ? (S(), l("span", Kn, " | ")) : c("", !0),
|
|
2008
2021
|
u("a", {
|
|
2009
2022
|
href: "javascript:void(0)",
|
|
2010
2023
|
class: "text-primary",
|
|
2011
2024
|
onClick: n[1] ||= (t) => e.onUncheckAll()
|
|
2012
2025
|
}, D(e.translations.uncheck_all_items), 1)
|
|
2013
|
-
]), u("span",
|
|
2026
|
+
]), u("span", qn, [E(t.$slots, "default", {}, () => [u("button", {
|
|
2014
2027
|
class: "btn btn-sm btn-danger px-4",
|
|
2015
2028
|
onClick: n[2] ||= (t) => e.onBulkDelete()
|
|
2016
2029
|
}, D(e.translations.delete_btn), 1)])])], 64));
|
|
2017
2030
|
}
|
|
2018
|
-
},
|
|
2031
|
+
}, Yn = {
|
|
2019
2032
|
class: "modal-dialog modal-dialog-centered",
|
|
2020
2033
|
role: "document"
|
|
2021
|
-
},
|
|
2034
|
+
}, Xn = { class: "modal-content" }, Zn = { class: "modal-header" }, Qn = { class: "modal-title" }, $n = { class: "modal-body" }, er = { class: "modal-footer" }, tr = {
|
|
2022
2035
|
__name: "ConfirmModal",
|
|
2023
2036
|
props: {
|
|
2024
2037
|
show: {
|
|
@@ -2061,14 +2074,14 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2061
2074
|
tabindex: "-1",
|
|
2062
2075
|
role: "dialog",
|
|
2063
2076
|
onClick: i[4] ||= R((e) => t.$emit("cancel"), ["self"])
|
|
2064
|
-
}, [u("div",
|
|
2065
|
-
u("div",
|
|
2077
|
+
}, [u("div", Yn, [u("div", Xn, [
|
|
2078
|
+
u("div", Zn, [u("h5", Qn, [u("i", { class: _([r.value, "me-2"]) }, null, 2), d(" " + D(e.translations.confirm_title), 1)]), u("button", {
|
|
2066
2079
|
type: "button",
|
|
2067
2080
|
class: "btn-close",
|
|
2068
2081
|
onClick: i[1] ||= (e) => t.$emit("cancel")
|
|
2069
2082
|
})]),
|
|
2070
|
-
u("div",
|
|
2071
|
-
u("div",
|
|
2083
|
+
u("div", $n, [u("p", null, D(e.translations.confirm_text), 1)]),
|
|
2084
|
+
u("div", er, [u("button", {
|
|
2072
2085
|
type: "button",
|
|
2073
2086
|
class: "btn btn-secondary",
|
|
2074
2087
|
onClick: i[2] ||= (e) => t.$emit("cancel")
|
|
@@ -2079,10 +2092,10 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2079
2092
|
}, D(e.translations.confirm_btn), 3)])
|
|
2080
2093
|
])])])) : c("", !0)]));
|
|
2081
2094
|
}
|
|
2082
|
-
},
|
|
2095
|
+
}, nr = { key: 0 }, rr = { key: 1 }, ir = ["title"], ar = { key: 2 }, or = ["title"], sr = { key: 3 }, cr = ["title", "disabled"], lr = { key: 4 }, ur = ["title", "disabled"], dr = {
|
|
2083
2096
|
key: 6,
|
|
2084
2097
|
class: "publish-later-modal"
|
|
2085
|
-
},
|
|
2098
|
+
}, fr = { class: "d-flex justify-content-between align-items-center mb-2" }, pr = { class: "mt-2 text-end" }, mr = ["disabled"], hr = {
|
|
2086
2099
|
__name: "PublishedAtColumn",
|
|
2087
2100
|
props: {
|
|
2088
2101
|
item: {
|
|
@@ -2179,8 +2192,8 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2179
2192
|
});
|
|
2180
2193
|
}
|
|
2181
2194
|
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",
|
|
2195
|
+
e.item.published_at <= e.now ? (S(), l("span", nr, D(k(q)(e.item.published_at, e.datetimeFormat)), 1)) : c("", !0),
|
|
2196
|
+
e.item.published_at > e.now ? (S(), l("span", rr, [
|
|
2184
2197
|
u("small", null, D(e.translations.will_be_published), 1),
|
|
2185
2198
|
n[9] ||= u("br", null, null, -1),
|
|
2186
2199
|
d(" " + D(k(q)(e.item.published_at, e.datetimeFormat)) + " ", 1),
|
|
@@ -2189,15 +2202,15 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2189
2202
|
title: e.translations.publish_later,
|
|
2190
2203
|
role: "button",
|
|
2191
2204
|
onClick: n[0] ||= (e) => y()
|
|
2192
|
-
}, [...n[8] ||= [u("i", { class: "fa fa-calendar" }, null, -1)]], 8,
|
|
2205
|
+
}, [...n[8] ||= [u("i", { class: "fa fa-calendar" }, null, -1)]], 8, ir)
|
|
2193
2206
|
])) : c("", !0),
|
|
2194
|
-
e.item.published_at ? c("", !0) : (S(), l("div",
|
|
2207
|
+
e.item.published_at ? c("", !0) : (S(), l("div", ar, [u("span", {
|
|
2195
2208
|
class: "btn btn-sm btn-info text-white mb-1",
|
|
2196
2209
|
title: e.translations.publish_later,
|
|
2197
2210
|
role: "button",
|
|
2198
2211
|
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",
|
|
2212
|
+
}, [n[10] ||= u("i", { class: "fa fa-calendar" }, null, -1), d("\xA0\xA0" + D(e.translations.publish_later), 1)], 8, or)])),
|
|
2213
|
+
!e.item.published_at || e.item.published_at > e.now ? (S(), l("div", sr, [u("form", {
|
|
2201
2214
|
class: "d-inline",
|
|
2202
2215
|
onSubmit: n[2] ||= R((e) => x(), ["prevent"])
|
|
2203
2216
|
}, [u("button", {
|
|
@@ -2205,8 +2218,8 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2205
2218
|
class: "btn btn-sm btn-success text-white",
|
|
2206
2219
|
title: e.translations.publish_now,
|
|
2207
2220
|
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",
|
|
2221
|
+
}, [n[11] ||= u("i", { class: "fa fa-paper-plane" }, null, -1), d("\xA0\xA0" + D(e.translations.publish_now), 1)], 8, cr)], 32)])) : c("", !0),
|
|
2222
|
+
e.item.published_at && e.item.published_at < e.now ? (S(), l("div", lr, [u("form", {
|
|
2210
2223
|
class: "d-inline",
|
|
2211
2224
|
onSubmit: n[3] ||= R((e) => C(), ["prevent"])
|
|
2212
2225
|
}, [u("button", {
|
|
@@ -2214,14 +2227,14 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2214
2227
|
class: "btn btn-sm btn-danger",
|
|
2215
2228
|
title: e.translations.unpublish_now,
|
|
2216
2229
|
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,
|
|
2230
|
+
}, [n[12] ||= u("i", { class: "fa fa-paper-plane" }, null, -1), d("\xA0\xA0" + D(e.translations.unpublish_now), 1)], 8, ur)], 32)])) : c("", !0),
|
|
2218
2231
|
s.value ? (S(), l("div", {
|
|
2219
2232
|
key: 5,
|
|
2220
2233
|
class: "publish-later-backdrop",
|
|
2221
2234
|
onClick: n[4] ||= R((e) => s.value = !1, ["self"])
|
|
2222
2235
|
})) : c("", !0),
|
|
2223
|
-
s.value ? (S(), l("div",
|
|
2224
|
-
u("div",
|
|
2236
|
+
s.value ? (S(), l("div", dr, [
|
|
2237
|
+
u("div", fr, [u("strong", null, D(e.translations.publish_later), 1), u("button", {
|
|
2225
2238
|
type: "button",
|
|
2226
2239
|
class: "btn-close btn-close-sm",
|
|
2227
2240
|
"aria-label": "Close",
|
|
@@ -2238,13 +2251,13 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2238
2251
|
inline: !0,
|
|
2239
2252
|
"auto-apply": ""
|
|
2240
2253
|
}, null, 8, ["modelValue", "format-locale"]),
|
|
2241
|
-
u("div",
|
|
2254
|
+
u("div", pr, [u("button", {
|
|
2242
2255
|
class: "btn btn-sm btn-primary text-white",
|
|
2243
2256
|
disabled: m.value || !p.value,
|
|
2244
2257
|
onClick: n[7] ||= (e) => b()
|
|
2245
|
-
}, " Save ", 8,
|
|
2258
|
+
}, " Save ", 8, mr)])
|
|
2246
2259
|
])) : c("", !0),
|
|
2247
|
-
f(
|
|
2260
|
+
f(tr, {
|
|
2248
2261
|
show: h.value,
|
|
2249
2262
|
translations: _.value,
|
|
2250
2263
|
variant: v.value,
|
|
@@ -2257,7 +2270,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2257
2270
|
])
|
|
2258
2271
|
], 64));
|
|
2259
2272
|
}
|
|
2260
|
-
},
|
|
2273
|
+
}, gr = ["href"], _r = ["href"], vr = {
|
|
2261
2274
|
__name: "ListingHeader",
|
|
2262
2275
|
props: {
|
|
2263
2276
|
createUrl: {
|
|
@@ -2286,16 +2299,36 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2286
2299
|
class: "btn btn-primary btn-sm float-end mb-0 ms-2",
|
|
2287
2300
|
href: e.exportUrl,
|
|
2288
2301
|
role: "button"
|
|
2289
|
-
}, [n[0] ||= u("i", { class: "fa fa-file-excel" }, null, -1), d("\xA0 " + D(e.translations.export_btn), 1)], 8,
|
|
2302
|
+
}, [n[0] ||= u("i", { class: "fa fa-file-excel" }, null, -1), d("\xA0 " + D(e.translations.export_btn), 1)], 8, gr)) : c("", !0),
|
|
2290
2303
|
e.createUrl ? (S(), l("a", {
|
|
2291
2304
|
key: 1,
|
|
2292
2305
|
class: "btn btn-primary btn-spinner btn-sm float-end mb-0",
|
|
2293
2306
|
href: e.createUrl,
|
|
2294
2307
|
role: "button"
|
|
2295
|
-
}, [n[1] ||= u("i", { class: "fa fa-plus" }, null, -1), d("\xA0 " + D(e.translations.create_btn), 1)], 8,
|
|
2308
|
+
}, [n[1] ||= u("i", { class: "fa fa-plus" }, null, -1), d("\xA0 " + D(e.translations.create_btn), 1)], 8, _r)) : c("", !0)
|
|
2296
2309
|
], 64));
|
|
2297
2310
|
}
|
|
2298
|
-
},
|
|
2311
|
+
}, yr = ["href", "title"], br = {
|
|
2312
|
+
__name: "ShowButton",
|
|
2313
|
+
props: {
|
|
2314
|
+
url: {
|
|
2315
|
+
type: String,
|
|
2316
|
+
required: !0
|
|
2317
|
+
},
|
|
2318
|
+
translations: {
|
|
2319
|
+
type: Object,
|
|
2320
|
+
default: () => ({ show_btn: "Show" })
|
|
2321
|
+
}
|
|
2322
|
+
},
|
|
2323
|
+
setup(e) {
|
|
2324
|
+
return (t, n) => (S(), l("a", {
|
|
2325
|
+
class: "btn btn-sm btn-spinner btn-info",
|
|
2326
|
+
href: e.url,
|
|
2327
|
+
title: e.translations.show_btn,
|
|
2328
|
+
role: "button"
|
|
2329
|
+
}, [...n[0] ||= [u("i", { class: "fa fa-eye" }, null, -1)]], 8, yr));
|
|
2330
|
+
}
|
|
2331
|
+
}, xr = ["href", "title"], Sr = {
|
|
2299
2332
|
__name: "EditButton",
|
|
2300
2333
|
props: {
|
|
2301
2334
|
url: {
|
|
@@ -2313,9 +2346,9 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2313
2346
|
href: e.url,
|
|
2314
2347
|
title: e.translations.edit_btn,
|
|
2315
2348
|
role: "button"
|
|
2316
|
-
}, [...n[0] ||= [u("i", { class: "fa fa-edit" }, null, -1)]], 8,
|
|
2349
|
+
}, [...n[0] ||= [u("i", { class: "fa fa-edit" }, null, -1)]], 8, xr));
|
|
2317
2350
|
}
|
|
2318
|
-
},
|
|
2351
|
+
}, Cr = ["title"], wr = {
|
|
2319
2352
|
__name: "DeleteButton",
|
|
2320
2353
|
props: {
|
|
2321
2354
|
url: {
|
|
@@ -2348,14 +2381,32 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2348
2381
|
class: "btn btn-sm btn-danger",
|
|
2349
2382
|
title: e.translations.delete_btn,
|
|
2350
2383
|
onClick: n[0] ||= (e) => o.value = !0
|
|
2351
|
-
}, [...n[2] ||= [u("i", { class: "fa fa-trash" }, null, -1)]], 8,
|
|
2384
|
+
}, [...n[2] ||= [u("i", { class: "fa fa-trash" }, null, -1)]], 8, Cr), f(tr, {
|
|
2352
2385
|
show: o.value,
|
|
2353
2386
|
translations: e.translations,
|
|
2354
2387
|
onConfirm: s,
|
|
2355
2388
|
onCancel: n[1] ||= (e) => o.value = !1
|
|
2356
2389
|
}, null, 8, ["show", "translations"])], 64));
|
|
2357
2390
|
}
|
|
2358
|
-
},
|
|
2391
|
+
}, Tr = ["href"], Er = {
|
|
2392
|
+
__name: "BackButton",
|
|
2393
|
+
props: {
|
|
2394
|
+
url: {
|
|
2395
|
+
type: String,
|
|
2396
|
+
required: !0
|
|
2397
|
+
},
|
|
2398
|
+
translations: {
|
|
2399
|
+
type: Object,
|
|
2400
|
+
default: () => ({ back: "Back" })
|
|
2401
|
+
}
|
|
2402
|
+
},
|
|
2403
|
+
setup(e) {
|
|
2404
|
+
return (t, n) => (S(), l("a", {
|
|
2405
|
+
class: "btn btn-sm btn-outline-secondary",
|
|
2406
|
+
href: e.url
|
|
2407
|
+
}, [n[0] ||= u("i", { class: "fa fa-arrow-left" }, null, -1), d(" " + D(e.translations.back), 1)], 8, Tr));
|
|
2408
|
+
}
|
|
2409
|
+
}, Dr = { class: "form-check form-switch form-switch-inline" }, Or = ["checked"], kr = {
|
|
2359
2410
|
__name: "ToggleSwitch",
|
|
2360
2411
|
props: {
|
|
2361
2412
|
modelValue: {
|
|
@@ -2399,15 +2450,15 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2399
2450
|
i("update:modelValue", r.modelValue), G(e.response?.data?.message);
|
|
2400
2451
|
});
|
|
2401
2452
|
}
|
|
2402
|
-
return (t, n) => (S(), l("div",
|
|
2453
|
+
return (t, n) => (S(), l("div", Dr, [u("input", {
|
|
2403
2454
|
class: _(["form-check-input", a.value]),
|
|
2404
2455
|
type: "checkbox",
|
|
2405
2456
|
role: "switch",
|
|
2406
2457
|
checked: !!e.modelValue,
|
|
2407
2458
|
onChange: s
|
|
2408
|
-
}, null, 42,
|
|
2459
|
+
}, null, 42, Or)]));
|
|
2409
2460
|
}
|
|
2410
|
-
},
|
|
2461
|
+
}, Ar = { class: "form-check form-switch form-switch-inline" }, jr = ["checked"], Mr = {
|
|
2411
2462
|
__name: "ReadOnlySwitch",
|
|
2412
2463
|
props: {
|
|
2413
2464
|
modelValue: {
|
|
@@ -2425,15 +2476,15 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2425
2476
|
},
|
|
2426
2477
|
setup(e) {
|
|
2427
2478
|
let t = e, n = o(() => `form-switch-${t.variant}`);
|
|
2428
|
-
return (t, r) => (S(), l("div",
|
|
2479
|
+
return (t, r) => (S(), l("div", Ar, [u("input", {
|
|
2429
2480
|
class: _(["form-check-input", n.value]),
|
|
2430
2481
|
type: "checkbox",
|
|
2431
2482
|
role: "switch",
|
|
2432
2483
|
checked: !!e.modelValue,
|
|
2433
2484
|
disabled: ""
|
|
2434
|
-
}, null, 10,
|
|
2485
|
+
}, null, 10, jr)]));
|
|
2435
2486
|
}
|
|
2436
|
-
},
|
|
2487
|
+
}, Nr = { class: "mb-3 row align-items-center" }, Pr = { class: "col-md-3 col-form-label text-md-end" }, Fr = { class: "col-md-9 col-xl-8" }, Ir = {
|
|
2437
2488
|
__name: "ShowRow",
|
|
2438
2489
|
props: {
|
|
2439
2490
|
label: {
|
|
@@ -2450,18 +2501,18 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2450
2501
|
}
|
|
2451
2502
|
},
|
|
2452
2503
|
setup(e) {
|
|
2453
|
-
return (t, n) => (S(), l("div",
|
|
2504
|
+
return (t, n) => (S(), l("div", Nr, [u("label", Pr, D(e.label), 1), u("div", Fr, [E(t.$slots, "default", {}, () => [u("span", null, D(e.value), 1)])])]));
|
|
2454
2505
|
}
|
|
2455
|
-
},
|
|
2506
|
+
}, Lr = { class: "mb-3 row align-items-center" }, Rr = ["for"], zr = { class: "col-md-9 col-xl-8" }, Br = [
|
|
2456
2507
|
"id",
|
|
2457
2508
|
"type",
|
|
2458
2509
|
"value",
|
|
2459
2510
|
"name",
|
|
2460
2511
|
"placeholder"
|
|
2461
|
-
],
|
|
2512
|
+
], Vr = {
|
|
2462
2513
|
key: 0,
|
|
2463
2514
|
class: "invalid-feedback form-text"
|
|
2464
|
-
},
|
|
2515
|
+
}, Hr = {
|
|
2465
2516
|
__name: "FormInput",
|
|
2466
2517
|
props: {
|
|
2467
2518
|
modelValue: {
|
|
@@ -2491,10 +2542,10 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2491
2542
|
},
|
|
2492
2543
|
emits: ["update:modelValue"],
|
|
2493
2544
|
setup(e) {
|
|
2494
|
-
return (t, n) => (S(), l("div",
|
|
2545
|
+
return (t, n) => (S(), l("div", Lr, [u("label", {
|
|
2495
2546
|
for: e.name,
|
|
2496
2547
|
class: "col-md-3 col-form-label text-md-end"
|
|
2497
|
-
}, D(e.label), 9,
|
|
2548
|
+
}, D(e.label), 9, Rr), u("div", zr, [u("input", {
|
|
2498
2549
|
id: e.name,
|
|
2499
2550
|
type: e.type,
|
|
2500
2551
|
value: e.modelValue,
|
|
@@ -2502,9 +2553,9 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2502
2553
|
name: e.name,
|
|
2503
2554
|
placeholder: e.placeholder || e.label,
|
|
2504
2555
|
onInput: n[0] ||= (e) => t.$emit("update:modelValue", e.target.value)
|
|
2505
|
-
}, null, 42,
|
|
2556
|
+
}, null, 42, Br), e.error ? (S(), l("div", Vr, D(e.error), 1)) : c("", !0)])]));
|
|
2506
2557
|
}
|
|
2507
|
-
},
|
|
2558
|
+
}, Ur = {
|
|
2508
2559
|
__name: "FormEmail",
|
|
2509
2560
|
props: {
|
|
2510
2561
|
modelValue: {
|
|
@@ -2530,21 +2581,21 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2530
2581
|
},
|
|
2531
2582
|
emits: ["update:modelValue"],
|
|
2532
2583
|
setup(e) {
|
|
2533
|
-
return (e, t) => (S(), s(
|
|
2584
|
+
return (e, t) => (S(), s(Hr, g(e.$props, {
|
|
2534
2585
|
type: "email",
|
|
2535
2586
|
"onUpdate:modelValue": t[0] ||= (t) => e.$emit("update:modelValue", t)
|
|
2536
2587
|
}), null, 16));
|
|
2537
2588
|
}
|
|
2538
|
-
},
|
|
2589
|
+
}, Wr = { class: "mb-3 row align-items-center" }, Gr = ["for"], Kr = { class: "col-md-9 col-xl-8" }, qr = [
|
|
2539
2590
|
"id",
|
|
2540
2591
|
"value",
|
|
2541
2592
|
"name",
|
|
2542
2593
|
"placeholder",
|
|
2543
2594
|
"rows"
|
|
2544
|
-
],
|
|
2595
|
+
], Jr = {
|
|
2545
2596
|
key: 0,
|
|
2546
2597
|
class: "invalid-feedback form-text"
|
|
2547
|
-
},
|
|
2598
|
+
}, Yr = {
|
|
2548
2599
|
__name: "FormTextarea",
|
|
2549
2600
|
props: {
|
|
2550
2601
|
modelValue: {
|
|
@@ -2574,10 +2625,10 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2574
2625
|
},
|
|
2575
2626
|
emits: ["update:modelValue"],
|
|
2576
2627
|
setup(e) {
|
|
2577
|
-
return (t, n) => (S(), l("div",
|
|
2628
|
+
return (t, n) => (S(), l("div", Wr, [u("label", {
|
|
2578
2629
|
for: e.name,
|
|
2579
2630
|
class: "col-md-3 col-form-label text-md-end"
|
|
2580
|
-
}, D(e.label), 9,
|
|
2631
|
+
}, D(e.label), 9, Gr), u("div", Kr, [u("textarea", {
|
|
2581
2632
|
id: e.name,
|
|
2582
2633
|
value: e.modelValue,
|
|
2583
2634
|
class: _(["form-control", { "is-invalid": e.error }]),
|
|
@@ -2585,16 +2636,16 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2585
2636
|
placeholder: e.placeholder || e.label,
|
|
2586
2637
|
rows: e.rows,
|
|
2587
2638
|
onInput: n[0] ||= (e) => t.$emit("update:modelValue", e.target.value)
|
|
2588
|
-
}, null, 42,
|
|
2639
|
+
}, null, 42, qr), e.error ? (S(), l("div", Jr, D(e.error), 1)) : c("", !0)])]));
|
|
2589
2640
|
}
|
|
2590
|
-
},
|
|
2641
|
+
}, Xr = { class: "mb-3 row align-items-center" }, Zr = { class: "col-md-9 col-xl-8 offset-md-3" }, Qr = { class: "form-check" }, $r = [
|
|
2591
2642
|
"id",
|
|
2592
2643
|
"checked",
|
|
2593
2644
|
"name"
|
|
2594
|
-
],
|
|
2645
|
+
], ei = ["for"], ti = {
|
|
2595
2646
|
key: 0,
|
|
2596
2647
|
class: "invalid-feedback d-block form-text"
|
|
2597
|
-
},
|
|
2648
|
+
}, ni = {
|
|
2598
2649
|
__name: "FormCheckbox",
|
|
2599
2650
|
props: {
|
|
2600
2651
|
modelValue: {
|
|
@@ -2616,26 +2667,26 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2616
2667
|
},
|
|
2617
2668
|
emits: ["update:modelValue"],
|
|
2618
2669
|
setup(e) {
|
|
2619
|
-
return (t, n) => (S(), l("div",
|
|
2670
|
+
return (t, n) => (S(), l("div", Xr, [u("div", Zr, [u("div", Qr, [u("input", {
|
|
2620
2671
|
id: e.name,
|
|
2621
2672
|
class: "form-check-input",
|
|
2622
2673
|
type: "checkbox",
|
|
2623
2674
|
checked: e.modelValue,
|
|
2624
2675
|
name: e.name,
|
|
2625
2676
|
onChange: n[0] ||= (e) => t.$emit("update:modelValue", e.target.checked)
|
|
2626
|
-
}, null, 40,
|
|
2677
|
+
}, null, 40, $r), u("label", {
|
|
2627
2678
|
class: "form-check-label",
|
|
2628
2679
|
for: e.name
|
|
2629
|
-
}, D(e.label), 9,
|
|
2680
|
+
}, D(e.label), 9, ei)]), e.error ? (S(), l("div", ti, D(e.error), 1)) : c("", !0)])]));
|
|
2630
2681
|
}
|
|
2631
2682
|
}, $ = (e, t) => {
|
|
2632
2683
|
let n = e.__vccOpts || e;
|
|
2633
2684
|
for (let [e, r] of t) n[e] = r;
|
|
2634
2685
|
return n;
|
|
2635
|
-
},
|
|
2686
|
+
}, ri = { class: "mb-3 row align-items-center" }, ii = ["for"], ai = { class: "col-md-9 col-xl-8" }, oi = { class: "input-group flex-nowrap" }, si = { class: "input-group-text" }, ci = {
|
|
2636
2687
|
key: 0,
|
|
2637
2688
|
class: "invalid-feedback d-block form-text"
|
|
2638
|
-
},
|
|
2689
|
+
}, li = /*#__PURE__*/ $({
|
|
2639
2690
|
__name: "FormDatePicker",
|
|
2640
2691
|
props: {
|
|
2641
2692
|
modelValue: {
|
|
@@ -2673,10 +2724,10 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2673
2724
|
},
|
|
2674
2725
|
emits: ["update:modelValue"],
|
|
2675
2726
|
setup(e) {
|
|
2676
|
-
return (t, n) => (S(), l("div",
|
|
2727
|
+
return (t, n) => (S(), l("div", ri, [u("label", {
|
|
2677
2728
|
for: e.name,
|
|
2678
2729
|
class: "col-md-3 col-form-label text-md-end"
|
|
2679
|
-
}, D(e.label), 9,
|
|
2730
|
+
}, D(e.label), 9, ii), u("div", ai, [u("div", oi, [u("span", si, [u("i", { class: _(["fa", e.icon]) }, null, 2)]), f(k(Ke), g(e.config, {
|
|
2680
2731
|
id: e.name,
|
|
2681
2732
|
"model-value": e.modelValue,
|
|
2682
2733
|
class: ["datepicker-input", { "is-invalid": e.error }],
|
|
@@ -2703,12 +2754,12 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2703
2754
|
"time-config",
|
|
2704
2755
|
"formats",
|
|
2705
2756
|
"locale"
|
|
2706
|
-
])]), e.error ? (S(), l("div",
|
|
2757
|
+
])]), e.error ? (S(), l("div", ci, D(e.error), 1)) : c("", !0)])]));
|
|
2707
2758
|
}
|
|
2708
|
-
}, [["__scopeId", "data-v-2e6d6ada"]]),
|
|
2759
|
+
}, [["__scopeId", "data-v-2e6d6ada"]]), ui = { class: "mb-3 row align-items-center" }, di = ["for"], fi = { class: "col-md-9 col-xl-8" }, pi = {
|
|
2709
2760
|
key: 0,
|
|
2710
2761
|
class: "invalid-feedback d-block form-text"
|
|
2711
|
-
},
|
|
2762
|
+
}, mi = {
|
|
2712
2763
|
__name: "FormWysiwyg",
|
|
2713
2764
|
props: {
|
|
2714
2765
|
modelValue: {
|
|
@@ -2738,10 +2789,10 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2738
2789
|
},
|
|
2739
2790
|
emits: ["update:modelValue"],
|
|
2740
2791
|
setup(e) {
|
|
2741
|
-
return (t, n) => (S(), l("div",
|
|
2792
|
+
return (t, n) => (S(), l("div", ui, [u("label", {
|
|
2742
2793
|
for: e.name,
|
|
2743
2794
|
class: "col-md-3 col-form-label text-md-end"
|
|
2744
|
-
}, D(e.label), 9,
|
|
2795
|
+
}, D(e.label), 9, di), u("div", fi, [f(Xt, g({
|
|
2745
2796
|
id: e.name,
|
|
2746
2797
|
"model-value": e.modelValue,
|
|
2747
2798
|
name: e.name,
|
|
@@ -2751,12 +2802,12 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2751
2802
|
"model-value",
|
|
2752
2803
|
"name",
|
|
2753
2804
|
"upload-url"
|
|
2754
|
-
]), e.error ? (S(), l("div",
|
|
2805
|
+
]), e.error ? (S(), l("div", pi, D(e.error), 1)) : c("", !0)])]));
|
|
2755
2806
|
}
|
|
2756
|
-
},
|
|
2807
|
+
}, hi = { class: "mb-3 row align-items-center" }, gi = ["for"], _i = { class: "col-md-9 col-xl-8" }, vi = {
|
|
2757
2808
|
key: 0,
|
|
2758
2809
|
class: "invalid-feedback d-block form-text"
|
|
2759
|
-
},
|
|
2810
|
+
}, yi = {
|
|
2760
2811
|
__name: "FormMultiSelect",
|
|
2761
2812
|
props: {
|
|
2762
2813
|
modelValue: {
|
|
@@ -2794,10 +2845,10 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2794
2845
|
},
|
|
2795
2846
|
emits: ["update:modelValue"],
|
|
2796
2847
|
setup(e) {
|
|
2797
|
-
return (t, n) => (S(), l("div",
|
|
2848
|
+
return (t, n) => (S(), l("div", hi, [u("label", {
|
|
2798
2849
|
for: e.name,
|
|
2799
2850
|
class: "col-md-3 col-form-label text-md-end"
|
|
2800
|
-
}, D(e.label), 9,
|
|
2851
|
+
}, D(e.label), 9, gi), u("div", _i, [f(k(U), {
|
|
2801
2852
|
"model-value": e.modelValue,
|
|
2802
2853
|
class: _({ "is-invalid": e.error }),
|
|
2803
2854
|
placeholder: e.placeholder,
|
|
@@ -2814,12 +2865,12 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2814
2865
|
"options",
|
|
2815
2866
|
"label",
|
|
2816
2867
|
"track-by"
|
|
2817
|
-
]), e.error ? (S(), l("div",
|
|
2868
|
+
]), e.error ? (S(), l("div", vi, D(e.error), 1)) : c("", !0)])]));
|
|
2818
2869
|
}
|
|
2819
|
-
},
|
|
2870
|
+
}, bi = { class: "mb-3 row align-items-center" }, xi = ["for"], Si = { class: "col-md-9 col-xl-8" }, Ci = {
|
|
2820
2871
|
key: 0,
|
|
2821
2872
|
class: "invalid-feedback d-block form-text"
|
|
2822
|
-
},
|
|
2873
|
+
}, wi = {
|
|
2823
2874
|
__name: "FormTagInput",
|
|
2824
2875
|
props: {
|
|
2825
2876
|
modelValue: {
|
|
@@ -2849,10 +2900,10 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2849
2900
|
},
|
|
2850
2901
|
emits: ["update:modelValue"],
|
|
2851
2902
|
setup(e) {
|
|
2852
|
-
return (t, n) => (S(), l("div",
|
|
2903
|
+
return (t, n) => (S(), l("div", bi, [u("label", {
|
|
2853
2904
|
for: e.name,
|
|
2854
2905
|
class: "col-md-3 col-form-label text-md-end"
|
|
2855
|
-
}, D(e.label), 9,
|
|
2906
|
+
}, D(e.label), 9, xi), u("div", Si, [f(k(U), {
|
|
2856
2907
|
"model-value": e.modelValue,
|
|
2857
2908
|
class: _({ "is-invalid": e.error }),
|
|
2858
2909
|
placeholder: e.placeholder,
|
|
@@ -2870,18 +2921,18 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2870
2921
|
"placeholder",
|
|
2871
2922
|
"options",
|
|
2872
2923
|
"tag-placeholder"
|
|
2873
|
-
]), e.error ? (S(), l("div",
|
|
2924
|
+
]), e.error ? (S(), l("div", Ci, D(e.error), 1)) : c("", !0)])]));
|
|
2874
2925
|
}
|
|
2875
|
-
},
|
|
2926
|
+
}, Ti = { class: "mb-3 row align-items-center" }, Ei = ["for"], Di = { class: "col-md-9 col-xl-8" }, Oi = [
|
|
2876
2927
|
"id",
|
|
2877
2928
|
"value",
|
|
2878
2929
|
"name",
|
|
2879
2930
|
"placeholder",
|
|
2880
2931
|
"onInput"
|
|
2881
|
-
],
|
|
2932
|
+
], ki = {
|
|
2882
2933
|
key: 0,
|
|
2883
2934
|
class: "invalid-feedback d-block form-text"
|
|
2884
|
-
},
|
|
2935
|
+
}, Ai = {
|
|
2885
2936
|
__name: "FormLocalizedInput",
|
|
2886
2937
|
props: {
|
|
2887
2938
|
modelValue: {
|
|
@@ -2922,10 +2973,10 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2922
2973
|
[e]: t
|
|
2923
2974
|
});
|
|
2924
2975
|
}
|
|
2925
|
-
return (t, n) => (S(), l("div",
|
|
2976
|
+
return (t, n) => (S(), l("div", Ti, [u("label", {
|
|
2926
2977
|
for: e.name + "_" + e.locales[0],
|
|
2927
2978
|
class: "col-md-3 col-form-label text-md-end"
|
|
2928
|
-
}, D(e.label), 9,
|
|
2979
|
+
}, D(e.label), 9, Ei), u("div", Di, [u("div", { class: _({ "d-flex gap-2": e.isFormLocalized }) }, [(S(!0), l(i, null, T(e.locales, (t) => I((S(), l("div", {
|
|
2929
2980
|
key: t,
|
|
2930
2981
|
class: _({ "flex-fill": e.isFormLocalized })
|
|
2931
2982
|
}, [u("input", {
|
|
@@ -2936,12 +2987,12 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2936
2987
|
name: e.name + "_" + t,
|
|
2937
2988
|
placeholder: e.isFormLocalized ? t.toUpperCase() : e.label,
|
|
2938
2989
|
onInput: (e) => a(t, e.target.value)
|
|
2939
|
-
}, null, 42,
|
|
2990
|
+
}, null, 42, Oi), e.errors[e.name + "_" + t] ? (S(), l("div", ki, D(e.errors[e.name + "_" + t]), 1)) : c("", !0)], 2)), [[N, e.shouldShowLangGroup(t)]])), 128))], 2)])]));
|
|
2940
2991
|
}
|
|
2941
|
-
},
|
|
2992
|
+
}, ji = { class: "mb-3 row align-items-center" }, Mi = ["for"], Ni = { class: "col-md-9 col-xl-8" }, Pi = {
|
|
2942
2993
|
key: 0,
|
|
2943
2994
|
class: "invalid-feedback d-block form-text"
|
|
2944
|
-
},
|
|
2995
|
+
}, Fi = /*#__PURE__*/ $({
|
|
2945
2996
|
__name: "FormLocalizedWysiwyg",
|
|
2946
2997
|
props: {
|
|
2947
2998
|
modelValue: {
|
|
@@ -2990,13 +3041,13 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2990
3041
|
[e]: t
|
|
2991
3042
|
});
|
|
2992
3043
|
}
|
|
2993
|
-
return (t, n) => (S(), l("div",
|
|
3044
|
+
return (t, n) => (S(), l("div", ji, [u("label", {
|
|
2994
3045
|
for: e.name + "_" + e.locales[0],
|
|
2995
3046
|
class: "col-md-3 col-form-label text-md-end"
|
|
2996
|
-
}, D(e.label), 9,
|
|
3047
|
+
}, D(e.label), 9, Mi), u("div", Ni, [u("div", { class: _({ "d-flex gap-2": e.isFormLocalized }) }, [(S(!0), l(i, null, T(e.locales, (t) => I((S(), l("div", {
|
|
2997
3048
|
key: t,
|
|
2998
3049
|
class: _({ "flex-fill localized-editor": e.isFormLocalized })
|
|
2999
|
-
}, [f(
|
|
3050
|
+
}, [f(Xt, g({
|
|
3000
3051
|
id: e.name + "_" + t,
|
|
3001
3052
|
"model-value": e.modelValue[t],
|
|
3002
3053
|
name: e.name + "_" + t,
|
|
@@ -3007,12 +3058,12 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3007
3058
|
"name",
|
|
3008
3059
|
"upload-url",
|
|
3009
3060
|
"onUpdate:modelValue"
|
|
3010
|
-
]), e.errors[e.name + "_" + t] ? (S(), l("div",
|
|
3061
|
+
]), e.errors[e.name + "_" + t] ? (S(), l("div", Pi, D(e.errors[e.name + "_" + t]), 1)) : c("", !0)], 2)), [[N, e.shouldShowLangGroup(t)]])), 128))], 2)])]));
|
|
3011
3062
|
}
|
|
3012
|
-
}, [["__scopeId", "data-v-608701dd"]]),
|
|
3063
|
+
}, [["__scopeId", "data-v-608701dd"]]), Ii = { class: "mb-3 row align-items-center" }, Li = ["for"], Ri = { class: "col-md-9 col-xl-8" }, zi = {
|
|
3013
3064
|
key: 0,
|
|
3014
3065
|
class: "invalid-feedback d-block form-text"
|
|
3015
|
-
},
|
|
3066
|
+
}, Bi = {
|
|
3016
3067
|
__name: "FormWysiwygSimple",
|
|
3017
3068
|
props: {
|
|
3018
3069
|
modelValue: {
|
|
@@ -3042,10 +3093,10 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3042
3093
|
},
|
|
3043
3094
|
emits: ["update:modelValue"],
|
|
3044
3095
|
setup(e) {
|
|
3045
|
-
return (t, n) => (S(), l("div",
|
|
3096
|
+
return (t, n) => (S(), l("div", Ii, [u("label", {
|
|
3046
3097
|
for: e.name,
|
|
3047
3098
|
class: "col-md-3 col-form-label text-md-end"
|
|
3048
|
-
}, D(e.label), 9,
|
|
3099
|
+
}, D(e.label), 9, Li), u("div", Ri, [f(Kt, g({
|
|
3049
3100
|
id: e.name,
|
|
3050
3101
|
"model-value": e.modelValue,
|
|
3051
3102
|
name: e.name,
|
|
@@ -3055,12 +3106,12 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3055
3106
|
"model-value",
|
|
3056
3107
|
"name",
|
|
3057
3108
|
"upload-url"
|
|
3058
|
-
]), e.error ? (S(), l("div",
|
|
3109
|
+
]), e.error ? (S(), l("div", zi, D(e.error), 1)) : c("", !0)])]));
|
|
3059
3110
|
}
|
|
3060
|
-
},
|
|
3111
|
+
}, Vi = { class: "mb-3 row align-items-center" }, Hi = ["for"], Ui = { class: "col-md-9 col-xl-8" }, Wi = {
|
|
3061
3112
|
key: 0,
|
|
3062
3113
|
class: "invalid-feedback d-block form-text"
|
|
3063
|
-
},
|
|
3114
|
+
}, Gi = /*#__PURE__*/ $({
|
|
3064
3115
|
__name: "FormLocalizedWysiwygSimple",
|
|
3065
3116
|
props: {
|
|
3066
3117
|
modelValue: {
|
|
@@ -3109,13 +3160,13 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3109
3160
|
[e]: t
|
|
3110
3161
|
});
|
|
3111
3162
|
}
|
|
3112
|
-
return (t, n) => (S(), l("div",
|
|
3163
|
+
return (t, n) => (S(), l("div", Vi, [u("label", {
|
|
3113
3164
|
for: e.name + "_" + e.locales[0],
|
|
3114
3165
|
class: "col-md-3 col-form-label text-md-end"
|
|
3115
|
-
}, D(e.label), 9,
|
|
3166
|
+
}, 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", {
|
|
3116
3167
|
key: t,
|
|
3117
3168
|
class: _({ "flex-fill localized-editor": e.isFormLocalized })
|
|
3118
|
-
}, [f(
|
|
3169
|
+
}, [f(Kt, g({
|
|
3119
3170
|
id: e.name + "_" + t,
|
|
3120
3171
|
"model-value": e.modelValue[t],
|
|
3121
3172
|
name: e.name + "_" + t,
|
|
@@ -3126,12 +3177,12 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3126
3177
|
"name",
|
|
3127
3178
|
"upload-url",
|
|
3128
3179
|
"onUpdate:modelValue"
|
|
3129
|
-
]), e.errors[e.name + "_" + t] ? (S(), l("div",
|
|
3180
|
+
]), 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)])]));
|
|
3130
3181
|
}
|
|
3131
|
-
}, [["__scopeId", "data-v-bf19587d"]]),
|
|
3182
|
+
}, [["__scopeId", "data-v-bf19587d"]]), Ki = { class: "mb-3 row align-items-center" }, qi = ["for"], Ji = { class: "col-md-9 col-xl-8" }, Yi = {
|
|
3132
3183
|
key: 0,
|
|
3133
3184
|
class: "invalid-feedback d-block form-text"
|
|
3134
|
-
},
|
|
3185
|
+
}, Xi = {
|
|
3135
3186
|
__name: "FormSelect",
|
|
3136
3187
|
props: {
|
|
3137
3188
|
modelValue: {
|
|
@@ -3174,10 +3225,10 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3174
3225
|
},
|
|
3175
3226
|
emits: ["update:modelValue"],
|
|
3176
3227
|
setup(e) {
|
|
3177
|
-
return (t, n) => (S(), l("div",
|
|
3228
|
+
return (t, n) => (S(), l("div", Ki, [u("label", {
|
|
3178
3229
|
for: e.name,
|
|
3179
3230
|
class: "col-md-3 col-form-label text-md-end"
|
|
3180
|
-
}, D(e.label), 9,
|
|
3231
|
+
}, D(e.label), 9, qi), u("div", Ji, [f(k(U), {
|
|
3181
3232
|
"model-value": e.modelValue,
|
|
3182
3233
|
class: _({ "is-invalid": e.error }),
|
|
3183
3234
|
placeholder: e.placeholder,
|
|
@@ -3193,21 +3244,21 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3193
3244
|
"options",
|
|
3194
3245
|
"label",
|
|
3195
3246
|
"track-by"
|
|
3196
|
-
]), e.error ? (S(), l("div",
|
|
3247
|
+
]), e.error ? (S(), l("div", Yi, D(e.error), 1)) : c("", !0)])]));
|
|
3197
3248
|
}
|
|
3198
|
-
},
|
|
3249
|
+
}, Zi = { class: "mb-3 row align-items-center" }, Qi = {
|
|
3199
3250
|
for: "password",
|
|
3200
3251
|
class: "col-md-3 col-form-label text-md-end"
|
|
3201
|
-
},
|
|
3252
|
+
}, $i = { class: "col-md-9 col-xl-8" }, ea = ["value", "placeholder"], ta = {
|
|
3202
3253
|
key: 0,
|
|
3203
3254
|
class: "invalid-feedback form-text"
|
|
3204
|
-
},
|
|
3255
|
+
}, na = { class: "mb-3 row align-items-center" }, ra = {
|
|
3205
3256
|
for: "password_confirmation",
|
|
3206
3257
|
class: "col-md-3 col-form-label text-md-end"
|
|
3207
|
-
},
|
|
3258
|
+
}, ia = { class: "col-md-9 col-xl-8" }, aa = ["value", "placeholder"], oa = {
|
|
3208
3259
|
key: 0,
|
|
3209
3260
|
class: "invalid-feedback form-text"
|
|
3210
|
-
},
|
|
3261
|
+
}, sa = {
|
|
3211
3262
|
__name: "FormPasswordConfirm",
|
|
3212
3263
|
props: {
|
|
3213
3264
|
password: {
|
|
@@ -3233,7 +3284,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3233
3284
|
},
|
|
3234
3285
|
emits: ["update:password", "update:passwordConfirmation"],
|
|
3235
3286
|
setup(e) {
|
|
3236
|
-
return (t, n) => (S(), l(i, null, [u("div",
|
|
3287
|
+
return (t, n) => (S(), l(i, null, [u("div", Zi, [u("label", Qi, D(e.translations.password), 1), u("div", $i, [u("input", {
|
|
3237
3288
|
id: "password",
|
|
3238
3289
|
type: "password",
|
|
3239
3290
|
value: e.password,
|
|
@@ -3241,7 +3292,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3241
3292
|
name: "password",
|
|
3242
3293
|
placeholder: e.translations.password,
|
|
3243
3294
|
onInput: n[0] ||= (e) => t.$emit("update:password", e.target.value)
|
|
3244
|
-
}, null, 42,
|
|
3295
|
+
}, null, 42, ea), e.passwordError ? (S(), l("div", ta, D(e.passwordError), 1)) : c("", !0)])]), u("div", na, [u("label", ra, D(e.translations.password_repeat), 1), u("div", ia, [u("input", {
|
|
3245
3296
|
id: "password_confirmation",
|
|
3246
3297
|
type: "password",
|
|
3247
3298
|
value: e.passwordConfirmation,
|
|
@@ -3249,9 +3300,9 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3249
3300
|
name: "password_confirmation",
|
|
3250
3301
|
placeholder: e.translations.password,
|
|
3251
3302
|
onInput: n[1] ||= (e) => t.$emit("update:passwordConfirmation", e.target.value)
|
|
3252
|
-
}, null, 42,
|
|
3303
|
+
}, null, 42, aa), e.confirmationError ? (S(), l("div", oa, D(e.confirmationError), 1)) : c("", !0)])])], 64));
|
|
3253
3304
|
}
|
|
3254
|
-
},
|
|
3305
|
+
}, ca = ["disabled"], la = {
|
|
3255
3306
|
__name: "FormSubmit",
|
|
3256
3307
|
props: {
|
|
3257
3308
|
submitting: {
|
|
@@ -3268,24 +3319,24 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3268
3319
|
type: "submit",
|
|
3269
3320
|
class: "btn btn-primary submit-btn",
|
|
3270
3321
|
disabled: e.submitting
|
|
3271
|
-
}, [u("i", { class: _(["fa", e.submitting ? "fa-spinner" : "fa-download"]) }, null, 2), d(" " + D(e.label), 1)], 8,
|
|
3322
|
+
}, [u("i", { class: _(["fa", e.submitting ? "fa-spinner" : "fa-download"]) }, null, 2), d(" " + D(e.label), 1)], 8, ca));
|
|
3272
3323
|
}
|
|
3273
|
-
},
|
|
3324
|
+
}, ua = {
|
|
3274
3325
|
key: 0,
|
|
3275
3326
|
class: "row mb-2 localization-bar"
|
|
3276
|
-
},
|
|
3327
|
+
}, da = { key: 0 }, fa = { key: 0 }, pa = {
|
|
3277
3328
|
key: 1,
|
|
3278
3329
|
class: "localization-error"
|
|
3279
|
-
},
|
|
3330
|
+
}, ma = {
|
|
3280
3331
|
key: 2,
|
|
3281
3332
|
class: "d-flex align-items-center gap-2"
|
|
3282
|
-
},
|
|
3333
|
+
}, ha = { class: "text-nowrap" }, ga = {
|
|
3283
3334
|
key: 0,
|
|
3284
3335
|
class: "localization-error"
|
|
3285
|
-
},
|
|
3336
|
+
}, _a = {
|
|
3286
3337
|
key: 0,
|
|
3287
3338
|
class: "localization-error"
|
|
3288
|
-
},
|
|
3339
|
+
}, va = /*#__PURE__*/ $({
|
|
3289
3340
|
__name: "LocalizationBar",
|
|
3290
3341
|
props: {
|
|
3291
3342
|
translations: {
|
|
@@ -3328,19 +3379,19 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3328
3379
|
],
|
|
3329
3380
|
setup(e) {
|
|
3330
3381
|
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]);
|
|
3331
|
-
return (t, a) => e.locales.length > 0 ? (S(), l("div",
|
|
3332
|
-
e.isFormLocalized ? c("", !0) : (S(), l("small",
|
|
3382
|
+
return (t, a) => e.locales.length > 0 ? (S(), l("div", ua, [u("div", { class: _(["offset-md-3 col-md-9 col-xl-8 text-start", { "d-none": e.onSmallScreen }]) }, [
|
|
3383
|
+
e.isFormLocalized ? c("", !0) : (S(), l("small", da, [
|
|
3333
3384
|
d(D(n.value), 1),
|
|
3334
|
-
e.otherLocales.length > 1 ? (S(), l("span",
|
|
3385
|
+
e.otherLocales.length > 1 ? (S(), l("span", fa, D(r.value), 1)) : c("", !0),
|
|
3335
3386
|
a[4] ||= d(" | ", -1),
|
|
3336
3387
|
u("a", {
|
|
3337
3388
|
href: "#",
|
|
3338
3389
|
onClick: a[0] ||= R((e) => t.$emit("show-localization"), ["prevent"])
|
|
3339
3390
|
}, D(e.translations.manage_translations), 1)
|
|
3340
3391
|
])),
|
|
3341
|
-
!e.isFormLocalized && e.showLocalizedValidationError ? (S(), l("i",
|
|
3342
|
-
e.isFormLocalized ? (S(), l("div",
|
|
3343
|
-
u("small",
|
|
3392
|
+
!e.isFormLocalized && e.showLocalizedValidationError ? (S(), l("i", pa)) : c("", !0),
|
|
3393
|
+
e.isFormLocalized ? (S(), l("div", ma, [
|
|
3394
|
+
u("small", ha, D(e.translations.choose_translation_to_edit), 1),
|
|
3344
3395
|
f(k(U), {
|
|
3345
3396
|
"model-value": e.currentLocale,
|
|
3346
3397
|
options: i.value,
|
|
@@ -3354,7 +3405,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3354
3405
|
"options",
|
|
3355
3406
|
"custom-label"
|
|
3356
3407
|
]),
|
|
3357
|
-
e.showLocalizedValidationError ? (S(), l("i",
|
|
3408
|
+
e.showLocalizedValidationError ? (S(), l("i", ga)) : c("", !0),
|
|
3358
3409
|
u("small", null, [u("a", {
|
|
3359
3410
|
href: "#",
|
|
3360
3411
|
onClick: a[2] ||= R((e) => t.$emit("hide-localization"), ["prevent"])
|
|
@@ -3381,25 +3432,25 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3381
3432
|
"options",
|
|
3382
3433
|
"custom-label"
|
|
3383
3434
|
]),
|
|
3384
|
-
e.showLocalizedValidationError ? (S(), l("i",
|
|
3435
|
+
e.showLocalizedValidationError ? (S(), l("i", _a)) : c("", !0)
|
|
3385
3436
|
])], 2)) : c("", !0)])) : c("", !0);
|
|
3386
3437
|
}
|
|
3387
|
-
}, [["__scopeId", "data-v-1c9f060d"]]),
|
|
3438
|
+
}, [["__scopeId", "data-v-1c9f060d"]]), ya = { class: "card" }, ba = { class: "card-body" }, xa = ["action"], Sa = { class: "auth-header" }, Ca = { class: "auth-title" }, wa = { class: "auth-subtitle" }, Ta = { class: "auth-body" }, Ea = {
|
|
3388
3439
|
key: 0,
|
|
3389
3440
|
class: "alert alert-success"
|
|
3390
|
-
},
|
|
3441
|
+
}, Da = {
|
|
3391
3442
|
key: 1,
|
|
3392
3443
|
class: "alert alert-danger"
|
|
3393
|
-
},
|
|
3444
|
+
}, Oa = { class: "mb-3" }, ka = { for: "email" }, Aa = { class: "input-group input-group--custom" }, ja = ["placeholder"], Ma = {
|
|
3394
3445
|
key: 0,
|
|
3395
3446
|
class: "invalid-feedback d-block form-text"
|
|
3396
|
-
},
|
|
3447
|
+
}, Na = { class: "mb-3" }, Pa = { for: "password" }, Fa = { class: "input-group input-group--custom" }, Ia = ["placeholder"], La = {
|
|
3397
3448
|
key: 0,
|
|
3398
3449
|
class: "invalid-feedback d-block form-text"
|
|
3399
|
-
},
|
|
3450
|
+
}, Ra = { class: "mb-3" }, za = ["disabled"], Ba = {
|
|
3400
3451
|
key: 0,
|
|
3401
3452
|
class: "fa fa-spinner fa-spin"
|
|
3402
|
-
},
|
|
3453
|
+
}, Va = { class: "mb-3 text-center" }, Ha = ["href"], Ua = /*#__PURE__*/ $({
|
|
3403
3454
|
__name: "LoginForm",
|
|
3404
3455
|
props: {
|
|
3405
3456
|
action: {
|
|
@@ -3441,40 +3492,40 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3441
3492
|
window.location.replace(t.redirectUrl);
|
|
3442
3493
|
}
|
|
3443
3494
|
});
|
|
3444
|
-
return (t, s) => (S(), l("div",
|
|
3495
|
+
return (t, s) => (S(), l("div", ya, [u("div", ba, [u("form", {
|
|
3445
3496
|
role: "form",
|
|
3446
3497
|
method: "POST",
|
|
3447
3498
|
action: e.action,
|
|
3448
3499
|
novalidate: "",
|
|
3449
3500
|
onSubmit: s[2] ||= R((...e) => k(o) && k(o)(...e), ["prevent"])
|
|
3450
|
-
}, [u("div",
|
|
3451
|
-
e.statusMessage ? (S(), l("div",
|
|
3452
|
-
e.serverErrors.length ? (S(), l("div",
|
|
3453
|
-
u("div",
|
|
3454
|
-
u("label",
|
|
3455
|
-
u("div",
|
|
3501
|
+
}, [u("div", Sa, [u("h1", Ca, D(e.translations.title), 1), u("p", wa, D(e.translations.signInText), 1)]), u("div", Ta, [
|
|
3502
|
+
e.statusMessage ? (S(), l("div", Ea, D(e.statusMessage), 1)) : c("", !0),
|
|
3503
|
+
e.serverErrors.length ? (S(), l("div", Da, [u("ul", null, [(S(!0), l(i, null, T(e.serverErrors, (e, t) => (S(), l("li", { key: t }, D(e), 1))), 128))])])) : c("", !0),
|
|
3504
|
+
u("div", Oa, [
|
|
3505
|
+
u("label", ka, D(e.translations.email), 1),
|
|
3506
|
+
u("div", Aa, [s[3] ||= u("span", { class: "input-group-text" }, [u("i", { class: "fa fa-envelope" })], -1), I(u("input", {
|
|
3456
3507
|
id: "email",
|
|
3457
3508
|
"onUpdate:modelValue": s[0] ||= (e) => k(n).email = e,
|
|
3458
3509
|
type: "text",
|
|
3459
3510
|
class: _(["form-control", { "is-invalid": k(r).email }]),
|
|
3460
3511
|
name: "email",
|
|
3461
3512
|
placeholder: e.translations.email
|
|
3462
|
-
}, null, 10,
|
|
3463
|
-
k(r).email ? (S(), l("div",
|
|
3513
|
+
}, null, 10, ja), [[M, k(n).email]])]),
|
|
3514
|
+
k(r).email ? (S(), l("div", Ma, D(k(r).email), 1)) : c("", !0)
|
|
3464
3515
|
]),
|
|
3465
|
-
u("div",
|
|
3466
|
-
u("label",
|
|
3467
|
-
u("div",
|
|
3516
|
+
u("div", Na, [
|
|
3517
|
+
u("label", Pa, D(e.translations.password), 1),
|
|
3518
|
+
u("div", Fa, [s[4] ||= u("span", { class: "input-group-text" }, [u("i", { class: "fa fa-lock" })], -1), I(u("input", {
|
|
3468
3519
|
id: "password",
|
|
3469
3520
|
"onUpdate:modelValue": s[1] ||= (e) => k(n).password = e,
|
|
3470
3521
|
type: "password",
|
|
3471
3522
|
class: _(["form-control", { "is-invalid": k(r).password }]),
|
|
3472
3523
|
name: "password",
|
|
3473
3524
|
placeholder: e.translations.password
|
|
3474
|
-
}, null, 10,
|
|
3475
|
-
k(r).password ? (S(), l("div",
|
|
3525
|
+
}, null, 10, Ia), [[M, k(n).password]])]),
|
|
3526
|
+
k(r).password ? (S(), l("div", La, D(k(r).password), 1)) : c("", !0)
|
|
3476
3527
|
]),
|
|
3477
|
-
u("div",
|
|
3528
|
+
u("div", Ra, [s[5] ||= u("input", {
|
|
3478
3529
|
type: "hidden",
|
|
3479
3530
|
name: "remember",
|
|
3480
3531
|
value: "1"
|
|
@@ -3482,32 +3533,32 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3482
3533
|
type: "submit",
|
|
3483
3534
|
class: "btn btn-primary submit-btn",
|
|
3484
3535
|
disabled: k(a)
|
|
3485
|
-
}, [k(a) ? (S(), l("i",
|
|
3486
|
-
u("div",
|
|
3536
|
+
}, [k(a) ? (S(), l("i", Ba)) : c("", !0), d(" " + D(e.translations.button), 1)], 8, za)]),
|
|
3537
|
+
u("div", Va, [u("a", {
|
|
3487
3538
|
href: e.passwordResetUrl,
|
|
3488
3539
|
class: "auth-ghost-link forgot-link"
|
|
3489
|
-
}, D(e.translations.forgotPassword), 9,
|
|
3490
|
-
])], 40,
|
|
3540
|
+
}, D(e.translations.forgotPassword), 9, Ha)])
|
|
3541
|
+
])], 40, xa)])]));
|
|
3491
3542
|
}
|
|
3492
|
-
}, [["__scopeId", "data-v-8d4257dc"]]),
|
|
3543
|
+
}, [["__scopeId", "data-v-8d4257dc"]]), Wa = { class: "card" }, Ga = { class: "card-body" }, Ka = ["action"], qa = { class: "auth-header" }, Ja = { class: "auth-title" }, Ya = { class: "auth-subtitle" }, Xa = { class: "auth-body" }, Za = {
|
|
3493
3544
|
key: 0,
|
|
3494
3545
|
class: "alert alert-success"
|
|
3495
|
-
},
|
|
3546
|
+
}, Qa = {
|
|
3496
3547
|
key: 1,
|
|
3497
3548
|
class: "alert alert-success"
|
|
3498
|
-
},
|
|
3549
|
+
}, $a = {
|
|
3499
3550
|
key: 2,
|
|
3500
3551
|
class: "alert alert-danger"
|
|
3501
|
-
},
|
|
3552
|
+
}, eo = { class: "mb-3" }, to = { for: "email" }, no = { class: "input-group input-group--custom" }, ro = ["placeholder"], io = {
|
|
3502
3553
|
key: 0,
|
|
3503
3554
|
class: "invalid-feedback d-block form-text"
|
|
3504
|
-
},
|
|
3555
|
+
}, ao = { class: "mb-3" }, oo = ["disabled"], so = {
|
|
3505
3556
|
key: 0,
|
|
3506
3557
|
class: "fa fa-spinner fa-spin"
|
|
3507
|
-
},
|
|
3558
|
+
}, co = {
|
|
3508
3559
|
key: 3,
|
|
3509
3560
|
class: "text-center"
|
|
3510
|
-
},
|
|
3561
|
+
}, lo = ["href"], uo = {
|
|
3511
3562
|
__name: "ForgotPasswordForm",
|
|
3512
3563
|
props: {
|
|
3513
3564
|
action: {
|
|
@@ -3536,61 +3587,61 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3536
3587
|
formDefaults: { email: "" },
|
|
3537
3588
|
validationSchema: { email: "required|email" }
|
|
3538
3589
|
});
|
|
3539
|
-
return (s, f) => (S(), l("div",
|
|
3590
|
+
return (s, f) => (S(), l("div", Wa, [u("div", Ga, [u("form", {
|
|
3540
3591
|
role: "form",
|
|
3541
3592
|
method: "POST",
|
|
3542
3593
|
action: e.action,
|
|
3543
3594
|
novalidate: "",
|
|
3544
3595
|
onSubmit: f[1] ||= R((...e) => k(o) && k(o)(...e), ["prevent"])
|
|
3545
|
-
}, [u("div",
|
|
3546
|
-
k(a) ? (S(), l("div",
|
|
3547
|
-
e.statusMessage && !k(a) ? (S(), l("div",
|
|
3548
|
-
e.serverErrors.length ? (S(), l("div",
|
|
3549
|
-
u("div",
|
|
3550
|
-
u("label",
|
|
3551
|
-
u("div",
|
|
3596
|
+
}, [u("div", qa, [u("h1", Ja, D(e.translations.title), 1), u("p", Ya, D(e.translations.note), 1)]), u("div", Xa, [
|
|
3597
|
+
k(a) ? (S(), l("div", Za, D(k(a)), 1)) : c("", !0),
|
|
3598
|
+
e.statusMessage && !k(a) ? (S(), l("div", Qa, D(e.statusMessage), 1)) : c("", !0),
|
|
3599
|
+
e.serverErrors.length ? (S(), l("div", $a, [u("ul", null, [(S(!0), l(i, null, T(e.serverErrors, (e, t) => (S(), l("li", { key: t }, D(e), 1))), 128))])])) : c("", !0),
|
|
3600
|
+
u("div", eo, [
|
|
3601
|
+
u("label", to, D(e.translations.email), 1),
|
|
3602
|
+
u("div", no, [f[2] ||= u("span", { class: "input-group-text" }, [u("i", { class: "fa fa-envelope" })], -1), I(u("input", {
|
|
3552
3603
|
id: "email",
|
|
3553
3604
|
"onUpdate:modelValue": f[0] ||= (e) => k(t).email = e,
|
|
3554
3605
|
type: "text",
|
|
3555
3606
|
class: _(["form-control", { "is-invalid": k(n).email }]),
|
|
3556
3607
|
name: "email",
|
|
3557
3608
|
placeholder: e.translations.email
|
|
3558
|
-
}, null, 10,
|
|
3559
|
-
k(n).email ? (S(), l("div",
|
|
3609
|
+
}, null, 10, ro), [[M, k(t).email]])]),
|
|
3610
|
+
k(n).email ? (S(), l("div", io, D(k(n).email), 1)) : c("", !0)
|
|
3560
3611
|
]),
|
|
3561
|
-
u("div",
|
|
3612
|
+
u("div", ao, [u("button", {
|
|
3562
3613
|
type: "submit",
|
|
3563
3614
|
class: "btn btn-primary submit-btn",
|
|
3564
3615
|
disabled: k(r)
|
|
3565
|
-
}, [k(r) ? (S(), l("i",
|
|
3566
|
-
e.loginUrl ? (S(), l("div",
|
|
3616
|
+
}, [k(r) ? (S(), l("i", so)) : c("", !0), d(" " + D(e.translations.button), 1)], 8, oo)]),
|
|
3617
|
+
e.loginUrl ? (S(), l("div", co, [u("a", {
|
|
3567
3618
|
href: e.loginUrl,
|
|
3568
3619
|
class: "auth-ghost-link"
|
|
3569
|
-
}, D(e.translations.backToLogin), 9,
|
|
3570
|
-
])], 40,
|
|
3620
|
+
}, D(e.translations.backToLogin), 9, lo)])) : c("", !0)
|
|
3621
|
+
])], 40, Ka)])]));
|
|
3571
3622
|
}
|
|
3572
|
-
},
|
|
3623
|
+
}, fo = { class: "card" }, po = { class: "card-body" }, mo = ["action"], ho = { class: "auth-header" }, go = { class: "auth-title" }, _o = { class: "auth-subtitle" }, vo = { class: "auth-body" }, yo = {
|
|
3573
3624
|
key: 0,
|
|
3574
3625
|
class: "alert alert-success"
|
|
3575
|
-
},
|
|
3626
|
+
}, bo = {
|
|
3576
3627
|
key: 1,
|
|
3577
3628
|
class: "alert alert-danger"
|
|
3578
|
-
},
|
|
3629
|
+
}, xo = { class: "mb-3" }, So = { for: "email" }, Co = { class: "input-group input-group--custom" }, wo = ["placeholder"], To = {
|
|
3579
3630
|
key: 0,
|
|
3580
3631
|
class: "invalid-feedback d-block form-text"
|
|
3581
|
-
},
|
|
3632
|
+
}, Eo = { class: "mb-3" }, Do = { for: "password" }, Oo = { class: "input-group input-group--custom" }, ko = ["placeholder"], Ao = {
|
|
3582
3633
|
key: 0,
|
|
3583
3634
|
class: "invalid-feedback d-block form-text"
|
|
3584
|
-
},
|
|
3635
|
+
}, jo = { class: "mb-3" }, Mo = { for: "password_confirmation" }, No = { class: "input-group input-group--custom" }, Po = ["placeholder"], Fo = {
|
|
3585
3636
|
key: 0,
|
|
3586
3637
|
class: "invalid-feedback d-block form-text"
|
|
3587
|
-
},
|
|
3638
|
+
}, Io = { class: "mb-3" }, Lo = ["disabled"], Ro = {
|
|
3588
3639
|
key: 0,
|
|
3589
3640
|
class: "fa fa-spinner fa-spin"
|
|
3590
|
-
},
|
|
3641
|
+
}, zo = {
|
|
3591
3642
|
key: 2,
|
|
3592
3643
|
class: "text-center"
|
|
3593
|
-
},
|
|
3644
|
+
}, Bo = ["href"], Vo = {
|
|
3594
3645
|
__name: "ResetPasswordForm",
|
|
3595
3646
|
props: {
|
|
3596
3647
|
action: {
|
|
@@ -3643,78 +3694,78 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3643
3694
|
window.location.replace(e.redirect || t.redirectUrl);
|
|
3644
3695
|
}
|
|
3645
3696
|
});
|
|
3646
|
-
return (t, s) => (S(), l("div",
|
|
3697
|
+
return (t, s) => (S(), l("div", fo, [u("div", po, [u("form", {
|
|
3647
3698
|
role: "form",
|
|
3648
3699
|
method: "POST",
|
|
3649
3700
|
action: e.action,
|
|
3650
3701
|
novalidate: "",
|
|
3651
3702
|
onSubmit: s[3] ||= R((...e) => k(o) && k(o)(...e), ["prevent"])
|
|
3652
|
-
}, [u("div",
|
|
3653
|
-
e.statusMessage ? (S(), l("div",
|
|
3654
|
-
e.serverErrors.length ? (S(), l("div",
|
|
3655
|
-
u("div",
|
|
3656
|
-
u("label",
|
|
3657
|
-
u("div",
|
|
3703
|
+
}, [u("div", ho, [u("h1", go, D(e.translations.title), 1), u("p", _o, D(e.translations.note), 1)]), u("div", vo, [
|
|
3704
|
+
e.statusMessage ? (S(), l("div", yo, D(e.statusMessage), 1)) : c("", !0),
|
|
3705
|
+
e.serverErrors.length ? (S(), l("div", bo, [u("ul", null, [(S(!0), l(i, null, T(e.serverErrors, (e, t) => (S(), l("li", { key: t }, D(e), 1))), 128))])])) : c("", !0),
|
|
3706
|
+
u("div", xo, [
|
|
3707
|
+
u("label", So, D(e.translations.email), 1),
|
|
3708
|
+
u("div", Co, [s[4] ||= u("span", { class: "input-group-text" }, [u("i", { class: "fa fa-envelope" })], -1), I(u("input", {
|
|
3658
3709
|
id: "email",
|
|
3659
3710
|
"onUpdate:modelValue": s[0] ||= (e) => k(n).email = e,
|
|
3660
3711
|
type: "text",
|
|
3661
3712
|
class: _(["form-control", { "is-invalid": k(r).email }]),
|
|
3662
3713
|
name: "email",
|
|
3663
3714
|
placeholder: e.translations.email
|
|
3664
|
-
}, null, 10,
|
|
3665
|
-
k(r).email ? (S(), l("div",
|
|
3715
|
+
}, null, 10, wo), [[M, k(n).email]])]),
|
|
3716
|
+
k(r).email ? (S(), l("div", To, D(k(r).email), 1)) : c("", !0)
|
|
3666
3717
|
]),
|
|
3667
|
-
u("div",
|
|
3668
|
-
u("label",
|
|
3669
|
-
u("div",
|
|
3718
|
+
u("div", Eo, [
|
|
3719
|
+
u("label", Do, D(e.translations.password), 1),
|
|
3720
|
+
u("div", Oo, [s[5] ||= u("span", { class: "input-group-text" }, [u("i", { class: "fa fa-lock" })], -1), I(u("input", {
|
|
3670
3721
|
id: "password",
|
|
3671
3722
|
"onUpdate:modelValue": s[1] ||= (e) => k(n).password = e,
|
|
3672
3723
|
type: "password",
|
|
3673
3724
|
class: _(["form-control", { "is-invalid": k(r).password }]),
|
|
3674
3725
|
name: "password",
|
|
3675
3726
|
placeholder: e.translations.password
|
|
3676
|
-
}, null, 10,
|
|
3677
|
-
k(r).password ? (S(), l("div",
|
|
3727
|
+
}, null, 10, ko), [[M, k(n).password]])]),
|
|
3728
|
+
k(r).password ? (S(), l("div", Ao, D(k(r).password), 1)) : c("", !0)
|
|
3678
3729
|
]),
|
|
3679
|
-
u("div",
|
|
3680
|
-
u("label",
|
|
3681
|
-
u("div",
|
|
3730
|
+
u("div", jo, [
|
|
3731
|
+
u("label", Mo, D(e.translations.passwordConfirm), 1),
|
|
3732
|
+
u("div", No, [s[6] ||= u("span", { class: "input-group-text" }, [u("i", { class: "fa fa-lock" })], -1), I(u("input", {
|
|
3682
3733
|
id: "password_confirmation",
|
|
3683
3734
|
"onUpdate:modelValue": s[2] ||= (e) => k(n).password_confirmation = e,
|
|
3684
3735
|
type: "password",
|
|
3685
3736
|
class: _(["form-control", { "is-invalid": k(r).password_confirmation }]),
|
|
3686
3737
|
name: "password_confirmation",
|
|
3687
3738
|
placeholder: e.translations.passwordConfirm
|
|
3688
|
-
}, null, 10,
|
|
3689
|
-
k(r).password_confirmation ? (S(), l("div",
|
|
3739
|
+
}, null, 10, Po), [[M, k(n).password_confirmation]])]),
|
|
3740
|
+
k(r).password_confirmation ? (S(), l("div", Fo, D(k(r).password_confirmation), 1)) : c("", !0)
|
|
3690
3741
|
]),
|
|
3691
|
-
u("div",
|
|
3742
|
+
u("div", Io, [u("button", {
|
|
3692
3743
|
type: "submit",
|
|
3693
3744
|
class: "btn btn-primary submit-btn",
|
|
3694
3745
|
disabled: k(a)
|
|
3695
|
-
}, [k(a) ? (S(), l("i",
|
|
3696
|
-
e.loginUrl ? (S(), l("div",
|
|
3746
|
+
}, [k(a) ? (S(), l("i", Ro)) : c("", !0), d(" " + D(e.translations.button), 1)], 8, Lo)]),
|
|
3747
|
+
e.loginUrl ? (S(), l("div", zo, [u("a", {
|
|
3697
3748
|
href: e.loginUrl,
|
|
3698
3749
|
class: "auth-ghost-link"
|
|
3699
|
-
}, D(e.translations.backToLogin), 9,
|
|
3700
|
-
])], 40,
|
|
3750
|
+
}, D(e.translations.backToLogin), 9, Bo)])) : c("", !0)
|
|
3751
|
+
])], 40, mo)])]));
|
|
3701
3752
|
}
|
|
3702
|
-
},
|
|
3753
|
+
}, Ho = { class: "card" }, Uo = { class: "card-body" }, Wo = ["action"], Go = { class: "auth-header" }, Ko = { class: "auth-title" }, qo = { class: "auth-subtitle" }, Jo = { class: "auth-body" }, Yo = {
|
|
3703
3754
|
key: 0,
|
|
3704
3755
|
class: "alert alert-success"
|
|
3705
|
-
},
|
|
3756
|
+
}, Xo = {
|
|
3706
3757
|
key: 1,
|
|
3707
3758
|
class: "alert alert-success"
|
|
3708
|
-
},
|
|
3759
|
+
}, Zo = {
|
|
3709
3760
|
key: 2,
|
|
3710
3761
|
class: "alert alert-danger"
|
|
3711
|
-
},
|
|
3762
|
+
}, Qo = { class: "mb-3" }, $o = { for: "email" }, es = { class: "input-group input-group--custom" }, ts = ["placeholder"], ns = {
|
|
3712
3763
|
key: 0,
|
|
3713
3764
|
class: "invalid-feedback d-block form-text"
|
|
3714
|
-
},
|
|
3765
|
+
}, rs = { class: "mb-3" }, is = ["disabled"], as = {
|
|
3715
3766
|
key: 0,
|
|
3716
3767
|
class: "fa fa-spinner fa-spin"
|
|
3717
|
-
},
|
|
3768
|
+
}, os = {
|
|
3718
3769
|
__name: "ActivationForm",
|
|
3719
3770
|
props: {
|
|
3720
3771
|
action: {
|
|
@@ -3739,39 +3790,39 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3739
3790
|
formDefaults: { email: "" },
|
|
3740
3791
|
validationSchema: { email: "required|email" }
|
|
3741
3792
|
});
|
|
3742
|
-
return (s, f) => (S(), l("div",
|
|
3793
|
+
return (s, f) => (S(), l("div", Ho, [u("div", Uo, [u("form", {
|
|
3743
3794
|
role: "form",
|
|
3744
3795
|
method: "POST",
|
|
3745
3796
|
action: e.action,
|
|
3746
3797
|
novalidate: "",
|
|
3747
3798
|
onSubmit: f[1] ||= R((...e) => k(o) && k(o)(...e), ["prevent"])
|
|
3748
|
-
}, [u("div",
|
|
3749
|
-
k(a) ? (S(), l("div",
|
|
3750
|
-
e.statusMessage && !k(a) ? (S(), l("div",
|
|
3751
|
-
e.serverErrors.length ? (S(), l("div",
|
|
3752
|
-
u("div",
|
|
3753
|
-
u("label",
|
|
3754
|
-
u("div",
|
|
3799
|
+
}, [u("div", Go, [u("h1", Ko, D(e.translations.title), 1), u("p", qo, D(e.translations.note), 1)]), u("div", Jo, [
|
|
3800
|
+
k(a) ? (S(), l("div", Yo, D(k(a)), 1)) : c("", !0),
|
|
3801
|
+
e.statusMessage && !k(a) ? (S(), l("div", Xo, D(e.statusMessage), 1)) : c("", !0),
|
|
3802
|
+
e.serverErrors.length ? (S(), l("div", Zo, [u("ul", null, [(S(!0), l(i, null, T(e.serverErrors, (e, t) => (S(), l("li", { key: t }, D(e), 1))), 128))])])) : c("", !0),
|
|
3803
|
+
u("div", Qo, [
|
|
3804
|
+
u("label", $o, D(e.translations.email), 1),
|
|
3805
|
+
u("div", es, [f[2] ||= u("span", { class: "input-group-text" }, [u("i", { class: "fa fa-envelope" })], -1), I(u("input", {
|
|
3755
3806
|
id: "email",
|
|
3756
3807
|
"onUpdate:modelValue": f[0] ||= (e) => k(t).email = e,
|
|
3757
3808
|
type: "text",
|
|
3758
3809
|
class: _(["form-control", { "is-invalid": k(n).email }]),
|
|
3759
3810
|
name: "email",
|
|
3760
3811
|
placeholder: e.translations.email
|
|
3761
|
-
}, null, 10,
|
|
3762
|
-
k(n).email ? (S(), l("div",
|
|
3812
|
+
}, null, 10, ts), [[M, k(t).email]])]),
|
|
3813
|
+
k(n).email ? (S(), l("div", ns, D(k(n).email), 1)) : c("", !0)
|
|
3763
3814
|
]),
|
|
3764
|
-
u("div",
|
|
3815
|
+
u("div", rs, [u("button", {
|
|
3765
3816
|
type: "submit",
|
|
3766
3817
|
class: "btn btn-primary submit-btn",
|
|
3767
3818
|
disabled: k(r)
|
|
3768
|
-
}, [k(r) ? (S(), l("i",
|
|
3769
|
-
])], 40,
|
|
3819
|
+
}, [k(r) ? (S(), l("i", as)) : c("", !0), d(" " + D(e.translations.button), 1)], 8, is)])
|
|
3820
|
+
])], 40, Wo)])]));
|
|
3770
3821
|
}
|
|
3771
|
-
},
|
|
3822
|
+
}, ss = { class: "card" }, cs = { class: "card-body" }, ls = { class: "auth-header" }, us = { class: "auth-title" }, ds = { class: "auth-body" }, fs = {
|
|
3772
3823
|
key: 0,
|
|
3773
3824
|
class: "alert alert-danger"
|
|
3774
|
-
},
|
|
3825
|
+
}, ps = {
|
|
3775
3826
|
__name: "ActivationError",
|
|
3776
3827
|
props: {
|
|
3777
3828
|
translations: {
|
|
@@ -3784,15 +3835,15 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3784
3835
|
}
|
|
3785
3836
|
},
|
|
3786
3837
|
setup(e) {
|
|
3787
|
-
return (t, n) => (S(), l("div",
|
|
3838
|
+
return (t, n) => (S(), l("div", ss, [u("div", cs, [u("div", ls, [u("h1", us, D(e.translations.title), 1)]), u("div", ds, [e.serverErrors.length ? (S(), l("div", fs, [u("ul", null, [(S(!0), l(i, null, T(e.serverErrors, (e, t) => (S(), l("li", { key: t }, D(e), 1))), 128))])])) : c("", !0)])])]));
|
|
3788
3839
|
}
|
|
3789
|
-
},
|
|
3840
|
+
}, ms = { class: "modal-dialog" }, hs = { class: "modal-content" }, gs = { class: "modal-header" }, _s = { class: "modal-title" }, vs = { class: "modal-body" }, ys = {
|
|
3790
3841
|
class: "text-center",
|
|
3791
3842
|
style: { "word-wrap": "break-word" }
|
|
3792
|
-
},
|
|
3843
|
+
}, bs = { class: "form-label" }, xs = ["onUpdate:modelValue", "placeholder"], Ss = ["onUpdate:modelValue", "placeholder"], Cs = { class: "text-center" }, ws = {
|
|
3793
3844
|
class: "btn btn-primary w-100",
|
|
3794
3845
|
type: "submit"
|
|
3795
|
-
},
|
|
3846
|
+
}, Ts = {
|
|
3796
3847
|
__name: "TranslationEditModal",
|
|
3797
3848
|
props: {
|
|
3798
3849
|
show: {
|
|
@@ -3833,47 +3884,47 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3833
3884
|
return (t, n) => (S(), l(i, null, [u("div", {
|
|
3834
3885
|
class: _(["modal fade", { show: e.show }]),
|
|
3835
3886
|
style: y({ display: e.show ? "block" : "none" })
|
|
3836
|
-
}, [u("div",
|
|
3887
|
+
}, [u("div", ms, [u("div", hs, [u("div", gs, [u("h4", _s, D(e.translations.edit), 1), u("button", {
|
|
3837
3888
|
type: "button",
|
|
3838
3889
|
class: "btn-close",
|
|
3839
3890
|
onClick: n[0] ||= (e) => t.$emit("close")
|
|
3840
|
-
})]), u("div",
|
|
3891
|
+
})]), u("div", vs, [u("p", ys, [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", {
|
|
3841
3892
|
key: t,
|
|
3842
3893
|
class: "mb-3"
|
|
3843
|
-
}, [u("label",
|
|
3894
|
+
}, [u("label", bs, D(t.toUpperCase()) + " " + D(e.translations.translation), 1), !f[t] || f[t].length < 70 ? I((S(), l("input", {
|
|
3844
3895
|
key: 0,
|
|
3845
3896
|
"onUpdate:modelValue": (e) => f[t] = e,
|
|
3846
3897
|
type: "text",
|
|
3847
3898
|
class: "form-control",
|
|
3848
3899
|
placeholder: (e.translations.translation_for || "").replace(":locale", t)
|
|
3849
|
-
}, null, 8,
|
|
3900
|
+
}, null, 8, xs)), [[M, f[t]]]) : I((S(), l("textarea", {
|
|
3850
3901
|
key: 1,
|
|
3851
3902
|
"onUpdate:modelValue": (e) => f[t] = e,
|
|
3852
3903
|
class: "form-control",
|
|
3853
3904
|
placeholder: (e.translations.translation_for || "").replace(":locale", t),
|
|
3854
3905
|
cols: "30",
|
|
3855
3906
|
rows: "4"
|
|
3856
|
-
}, null, 8,
|
|
3907
|
+
}, null, 8, Ss)), [[M, f[t]]])]))), 128)), u("div", Cs, [u("button", ws, D(e.translations.save) + " " + D(e.translations.translation), 1)])], 32)])])])], 6), e.show ? (S(), l("div", {
|
|
3857
3908
|
key: 0,
|
|
3858
3909
|
class: "modal-backdrop fade show",
|
|
3859
3910
|
onClick: n[1] ||= (e) => t.$emit("close")
|
|
3860
3911
|
})) : c("", !0)], 64));
|
|
3861
3912
|
}
|
|
3862
|
-
},
|
|
3913
|
+
}, Es = { class: "modal-dialog modal-lg" }, Ds = { class: "modal-content" }, Os = { class: "modal-header" }, ks = { class: "modal-title" }, As = { class: "modal-body" }, js = { class: "row mb-3" }, Ms = { class: "col-md-4 text-md-end" }, Ns = { class: "col-form-label" }, Ps = { class: "col-md-6" }, Fs = { class: "btn btn-primary btn-sm w-100 mb-0" }, Is = { key: 0 }, Ls = { key: 1 }, Rs = { class: "row mb-3" }, zs = { class: "col-md-4 text-md-end" }, Bs = {
|
|
3863
3914
|
for: "importLanguage",
|
|
3864
3915
|
class: "col-form-label"
|
|
3865
|
-
},
|
|
3916
|
+
}, Vs = { class: "col-md-6" }, Hs = { class: "offset-md-4" }, Us = { class: "form-check" }, Ws = {
|
|
3866
3917
|
class: "form-check-label",
|
|
3867
3918
|
for: "onlyMissingTranslations"
|
|
3868
|
-
},
|
|
3919
|
+
}, Gs = { class: "text-center mb-3" }, Ks = { class: "table table-hover" }, qs = { key: 0 }, Js = { style: { "word-break": "break-all" } }, Ys = { style: { "word-break": "break-all" } }, Xs = { style: { "word-break": "break-all" } }, Zs = [
|
|
3869
3920
|
"id",
|
|
3870
3921
|
"onUpdate:modelValue",
|
|
3871
3922
|
"name"
|
|
3872
|
-
],
|
|
3923
|
+
], Qs = ["for"], $s = { style: { "word-break": "break-all" } }, ec = [
|
|
3873
3924
|
"id",
|
|
3874
3925
|
"onUpdate:modelValue",
|
|
3875
3926
|
"name"
|
|
3876
|
-
],
|
|
3927
|
+
], tc = ["for"], nc = { class: "text-center" }, rc = { class: "modal-footer" }, ic = {
|
|
3877
3928
|
__name: "TranslationImportModal",
|
|
3878
3929
|
props: {
|
|
3879
3930
|
show: {
|
|
@@ -3946,16 +3997,16 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3946
3997
|
return (t, n) => (S(), l(i, null, [u("div", {
|
|
3947
3998
|
class: _(["modal fade", { show: e.show }]),
|
|
3948
3999
|
style: y({ display: e.show ? "block" : "none" })
|
|
3949
|
-
}, [u("div",
|
|
3950
|
-
u("div",
|
|
4000
|
+
}, [u("div", Es, [u("div", Ds, [
|
|
4001
|
+
u("div", Os, [u("h4", ks, D(e.translations.import_title), 1), u("button", {
|
|
3951
4002
|
type: "button",
|
|
3952
4003
|
class: "btn-close",
|
|
3953
4004
|
onClick: B
|
|
3954
4005
|
})]),
|
|
3955
|
-
u("div",
|
|
4006
|
+
u("div", As, [
|
|
3956
4007
|
I(u("div", null, [
|
|
3957
4008
|
u("p", null, D(e.translations.import_notice), 1),
|
|
3958
|
-
u("div",
|
|
4009
|
+
u("div", js, [u("div", Ms, [u("label", Ns, D(e.translations.upload_file), 1)]), u("div", Ps, [u("label", Fs, [m.value ? (S(), l("span", Is, D(m.value.name), 1)) : (S(), l("span", Ls, D(e.translations.choose_file), 1)), u("input", {
|
|
3959
4010
|
ref_key: "fileInput",
|
|
3960
4011
|
ref: p,
|
|
3961
4012
|
type: "file",
|
|
@@ -3963,7 +4014,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3963
4014
|
accept: ".xlsx",
|
|
3964
4015
|
onChange: z
|
|
3965
4016
|
}, null, 544)])])]),
|
|
3966
|
-
u("div",
|
|
4017
|
+
u("div", Rs, [u("div", zs, [u("label", Bs, D(e.translations.language_to_import), 1)]), u("div", Vs, [f(k(U), {
|
|
3967
4018
|
modelValue: h.value,
|
|
3968
4019
|
"onUpdate:modelValue": n[0] ||= (e) => h.value = e,
|
|
3969
4020
|
options: d.value,
|
|
@@ -3978,47 +4029,47 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3978
4029
|
"options",
|
|
3979
4030
|
"placeholder"
|
|
3980
4031
|
])])]),
|
|
3981
|
-
u("div",
|
|
4032
|
+
u("div", Hs, [u("div", Us, [I(u("input", {
|
|
3982
4033
|
id: "onlyMissingTranslations",
|
|
3983
4034
|
"onUpdate:modelValue": n[1] ||= (e) => v.value = e,
|
|
3984
4035
|
class: "form-check-input",
|
|
3985
4036
|
type: "checkbox"
|
|
3986
|
-
}, null, 512), [[A, v.value]]), u("label",
|
|
4037
|
+
}, null, 512), [[A, v.value]]), u("label", Ws, D(e.translations.do_not_override), 1)])])
|
|
3987
4038
|
], 512), [[N, b.value === 1]]),
|
|
3988
|
-
I(u("div", null, [u("div",
|
|
4039
|
+
I(u("div", null, [u("div", Gs, [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", Ks, [u("thead", null, [u("tr", null, [
|
|
3989
4040
|
u("th", null, D(e.translations.group), 1),
|
|
3990
4041
|
u("th", null, D(e.translations.default), 1),
|
|
3991
4042
|
u("th", null, D(e.translations.current_value), 1),
|
|
3992
4043
|
u("th", null, D(e.translations.imported_value), 1)
|
|
3993
|
-
])]), u("tbody", null, [(S(!0), l(i, null, T(M.value, (e, t) => (S(), l(i, { key: t }, [e.has_conflict ? (S(), l("tr",
|
|
3994
|
-
u("td",
|
|
3995
|
-
u("td",
|
|
3996
|
-
u("td",
|
|
4044
|
+
])]), u("tbody", null, [(S(!0), l(i, null, T(M.value, (e, t) => (S(), l(i, { key: t }, [e.has_conflict ? (S(), l("tr", qs, [
|
|
4045
|
+
u("td", Js, D(e.group), 1),
|
|
4046
|
+
u("td", Ys, D(e.default), 1),
|
|
4047
|
+
u("td", Xs, [I(u("input", {
|
|
3997
4048
|
id: "current-" + t + "0",
|
|
3998
4049
|
"onUpdate:modelValue": (e) => M.value[t].checkedCurrent = e,
|
|
3999
4050
|
type: "radio",
|
|
4000
4051
|
class: "form-check-input me-1",
|
|
4001
4052
|
value: !0,
|
|
4002
4053
|
name: "current-" + t
|
|
4003
|
-
}, null, 8,
|
|
4054
|
+
}, null, 8, Zs), [[j, M.value[t].checkedCurrent]]), u("label", {
|
|
4004
4055
|
class: "form-check-label",
|
|
4005
4056
|
for: "current-" + t + "0"
|
|
4006
|
-
}, D(e.current_value), 9,
|
|
4007
|
-
u("td",
|
|
4057
|
+
}, D(e.current_value), 9, Qs)]),
|
|
4058
|
+
u("td", $s, [I(u("input", {
|
|
4008
4059
|
id: "current-" + t + "1",
|
|
4009
4060
|
"onUpdate:modelValue": (e) => M.value[t].checkedCurrent = e,
|
|
4010
4061
|
type: "radio",
|
|
4011
4062
|
class: "form-check-input me-1",
|
|
4012
4063
|
value: !1,
|
|
4013
4064
|
name: "current-" + t
|
|
4014
|
-
}, null, 8,
|
|
4065
|
+
}, null, 8, ec), [[j, M.value[t].checkedCurrent]]), u("label", {
|
|
4015
4066
|
class: "form-check-label",
|
|
4016
4067
|
for: "current-" + t + "1"
|
|
4017
|
-
}, D(e[g.value.toLowerCase()]), 9,
|
|
4068
|
+
}, D(e[g.value.toLowerCase()]), 9, tc)])
|
|
4018
4069
|
])) : c("", !0)], 64))), 128))])])], 512), [[N, b.value === 2]]),
|
|
4019
|
-
I(u("div", null, [u("div",
|
|
4070
|
+
I(u("div", null, [u("div", nc, [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]])
|
|
4020
4071
|
]),
|
|
4021
|
-
u("div",
|
|
4072
|
+
u("div", rc, [F.value ? c("", !0) : (S(), l("button", {
|
|
4022
4073
|
key: 0,
|
|
4023
4074
|
type: "button",
|
|
4024
4075
|
class: "btn btn-primary",
|
|
@@ -4030,10 +4081,10 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4030
4081
|
onClick: B
|
|
4031
4082
|
})) : c("", !0)], 64));
|
|
4032
4083
|
}
|
|
4033
|
-
},
|
|
4084
|
+
}, ac = { class: "modal-dialog" }, oc = { class: "modal-content" }, sc = { class: "modal-header" }, cc = { class: "modal-title" }, lc = { class: "modal-body" }, uc = { class: "text-start" }, dc = { class: "text-end" }, fc = {
|
|
4034
4085
|
class: "btn btn-primary",
|
|
4035
4086
|
type: "submit"
|
|
4036
|
-
},
|
|
4087
|
+
}, pc = {
|
|
4037
4088
|
__name: "TranslationExportModal",
|
|
4038
4089
|
props: {
|
|
4039
4090
|
show: {
|
|
@@ -4073,13 +4124,13 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4073
4124
|
return (t, n) => (S(), l(i, null, [u("div", {
|
|
4074
4125
|
class: _(["modal fade", { show: e.show }]),
|
|
4075
4126
|
style: y({ display: e.show ? "block" : "none" })
|
|
4076
|
-
}, [u("div",
|
|
4127
|
+
}, [u("div", ac, [u("div", oc, [u("div", sc, [u("h4", cc, D(e.translations.export), 1), u("button", {
|
|
4077
4128
|
type: "button",
|
|
4078
4129
|
class: "btn-close",
|
|
4079
4130
|
onClick: n[0] ||= (e) => t.$emit("close")
|
|
4080
|
-
})]), u("div",
|
|
4081
|
-
u("p",
|
|
4082
|
-
f(
|
|
4131
|
+
})]), u("div", lc, [u("form", { onSubmit: R(m, ["prevent"]) }, [
|
|
4132
|
+
u("p", uc, D(e.translations.export_notice), 1),
|
|
4133
|
+
f(yi, {
|
|
4083
4134
|
modelValue: p.value,
|
|
4084
4135
|
"onUpdate:modelValue": n[1] ||= (e) => p.value = e,
|
|
4085
4136
|
name: "languagesToExport",
|
|
@@ -4094,17 +4145,17 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4094
4145
|
"options",
|
|
4095
4146
|
"placeholder"
|
|
4096
4147
|
]),
|
|
4097
|
-
u("div",
|
|
4148
|
+
u("div", dc, [u("button", fc, [n[3] ||= u("i", { class: "fa fa-file-excel" }, null, -1), d("\xA0" + D(e.translations.export_btn), 1)])])
|
|
4098
4149
|
], 32)])])])], 6), e.show ? (S(), l("div", {
|
|
4099
4150
|
key: 0,
|
|
4100
4151
|
class: "modal-backdrop fade show",
|
|
4101
4152
|
onClick: n[2] ||= (e) => t.$emit("close")
|
|
4102
4153
|
})) : c("", !0)], 64));
|
|
4103
4154
|
}
|
|
4104
|
-
},
|
|
4155
|
+
}, mc = { class: "row" }, hc = { class: "col" }, gc = { class: "card" }, _c = { class: "card-header" }, vc = { class: "row justify-content-md-between mb-3" }, yc = { class: "col col-lg-7 col-xl-5 mb-3" }, bc = { class: "col-sm-auto mb-3" }, xc = { class: "table-responsive" }, Sc = { class: "table table-hover table-listing" }, Cc = { key: 0 }, wc = ["title", "onClick"], Tc = {
|
|
4105
4156
|
key: 0,
|
|
4106
4157
|
class: "no-items-found"
|
|
4107
|
-
},
|
|
4158
|
+
}, Ec = {
|
|
4108
4159
|
__name: "TranslationListing",
|
|
4109
4160
|
props: {
|
|
4110
4161
|
url: {
|
|
@@ -4141,7 +4192,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4141
4192
|
}
|
|
4142
4193
|
},
|
|
4143
4194
|
setup(e) {
|
|
4144
|
-
let t = window.axios, n = e, r = w(null), { isColumnVisible: a } =
|
|
4195
|
+
let t = window.axios, n = e, r = w(null), { isColumnVisible: a } = gt(r), { pagination: p, orderBy: m, filters: g, search: v, collection: y, loadData: b, filter: x, onSort: C, onPageChange: E, onPerPageChange: O } = ft(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);
|
|
4145
4196
|
g.group = null;
|
|
4146
4197
|
function I(e) {
|
|
4147
4198
|
g.group = e ?? null, b(!0);
|
|
@@ -4157,8 +4208,8 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4157
4208
|
z.value = !1, G();
|
|
4158
4209
|
});
|
|
4159
4210
|
}
|
|
4160
|
-
return (t, n) => (S(), l("div",
|
|
4161
|
-
f(
|
|
4211
|
+
return (t, n) => (S(), l("div", mc, [u("div", hc, [
|
|
4212
|
+
f(Ts, {
|
|
4162
4213
|
show: j.value,
|
|
4163
4214
|
item: P.value,
|
|
4164
4215
|
locales: A.value,
|
|
@@ -4174,7 +4225,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4174
4225
|
"translations",
|
|
4175
4226
|
"onSaved"
|
|
4176
4227
|
]),
|
|
4177
|
-
f(
|
|
4228
|
+
f(ic, {
|
|
4178
4229
|
show: M.value,
|
|
4179
4230
|
locales: A.value,
|
|
4180
4231
|
url: e.url,
|
|
@@ -4190,7 +4241,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4190
4241
|
"translations",
|
|
4191
4242
|
"onImported"
|
|
4192
4243
|
]),
|
|
4193
|
-
f(
|
|
4244
|
+
f(pc, {
|
|
4194
4245
|
show: N.value,
|
|
4195
4246
|
locales: A.value,
|
|
4196
4247
|
url: e.url,
|
|
@@ -4202,7 +4253,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4202
4253
|
"url",
|
|
4203
4254
|
"translations"
|
|
4204
4255
|
]),
|
|
4205
|
-
u("div",
|
|
4256
|
+
u("div", gc, [u("div", _c, [
|
|
4206
4257
|
n[9] ||= u("i", { class: "fa fa-align-justify" }, null, -1),
|
|
4207
4258
|
d(" " + D(e.translations.listing_title) + " ", 1),
|
|
4208
4259
|
u("a", {
|
|
@@ -4228,7 +4279,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4228
4279
|
ref: r,
|
|
4229
4280
|
class: "card-body"
|
|
4230
4281
|
}, [
|
|
4231
|
-
u("div",
|
|
4282
|
+
u("div", vc, [u("div", yc, [f(Nn, {
|
|
4232
4283
|
search: k(v),
|
|
4233
4284
|
"onUpdate:search": n[5] ||= (e) => h(v) ? v.value = e : null,
|
|
4234
4285
|
"filter-fn": k(x),
|
|
@@ -4256,11 +4307,11 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4256
4307
|
"search",
|
|
4257
4308
|
"filter-fn",
|
|
4258
4309
|
"translations"
|
|
4259
|
-
])]), u("div",
|
|
4310
|
+
])]), u("div", bc, [f(Fn, {
|
|
4260
4311
|
modelValue: k(p).state.per_page,
|
|
4261
4312
|
"onUpdate:modelValue": n[6] ||= (e) => k(p).state.per_page = e
|
|
4262
4313
|
}, null, 8, ["modelValue"])])]),
|
|
4263
|
-
u("div",
|
|
4314
|
+
u("div", xc, [u("table", Sc, [u("thead", null, [u("tr", null, [
|
|
4264
4315
|
f(Q, {
|
|
4265
4316
|
column: "group",
|
|
4266
4317
|
"order-by": k(m),
|
|
@@ -4299,16 +4350,16 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4299
4350
|
u("td", null, D(t.group), 1),
|
|
4300
4351
|
u("td", null, D(t.key), 1),
|
|
4301
4352
|
u("td", null, D(t.text?.[e.userLocale]), 1),
|
|
4302
|
-
k(a)(4) ? (S(), l("td",
|
|
4353
|
+
k(a)(4) ? (S(), l("td", Cc, D(k(K)(t.created_at)), 1)) : c("", !0),
|
|
4303
4354
|
u("td", null, [u("a", {
|
|
4304
4355
|
class: "btn btn-sm btn-info",
|
|
4305
4356
|
href: "#",
|
|
4306
4357
|
title: e.translations.edit_btn,
|
|
4307
4358
|
role: "button",
|
|
4308
4359
|
onClick: R((e) => L(t), ["prevent"])
|
|
4309
|
-
}, [...n[11] ||= [u("i", { class: "fa fa-edit" }, null, -1)]], 8,
|
|
4360
|
+
}, [...n[11] ||= [u("i", { class: "fa fa-edit" }, null, -1)]], 8, wc)])
|
|
4310
4361
|
]))), 128))])])]),
|
|
4311
|
-
f(
|
|
4362
|
+
f(kn, {
|
|
4312
4363
|
pagination: k(p).state,
|
|
4313
4364
|
options: k(p).options,
|
|
4314
4365
|
translations: {
|
|
@@ -4325,7 +4376,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4325
4376
|
"onPageChange",
|
|
4326
4377
|
"onPerPageChange"
|
|
4327
4378
|
]),
|
|
4328
|
-
k(y)?.length ? c("", !0) : (S(), l("div",
|
|
4379
|
+
k(y)?.length ? c("", !0) : (S(), l("div", Tc, [
|
|
4329
4380
|
n[12] ||= u("i", { class: "fa fa-magnifying-glass" }, null, -1),
|
|
4330
4381
|
u("h3", null, D(e.translations.no_items), 1),
|
|
4331
4382
|
u("p", null, D(e.translations.try_changing_items), 1),
|
|
@@ -4339,7 +4390,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4339
4390
|
], 512)])
|
|
4340
4391
|
])]));
|
|
4341
4392
|
}
|
|
4342
|
-
},
|
|
4393
|
+
}, Dc = {
|
|
4343
4394
|
url: "",
|
|
4344
4395
|
collection: "",
|
|
4345
4396
|
maxNumberOfFiles: 1,
|
|
@@ -4347,16 +4398,16 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4347
4398
|
acceptedFileTypes: void 0,
|
|
4348
4399
|
thumbnailWidth: 200,
|
|
4349
4400
|
uploadedMedia: []
|
|
4350
|
-
},
|
|
4401
|
+
}, Oc = {
|
|
4351
4402
|
type: Object,
|
|
4352
|
-
default: () => ({ ...
|
|
4403
|
+
default: () => ({ ...Dc })
|
|
4353
4404
|
};
|
|
4354
4405
|
//#endregion
|
|
4355
4406
|
//#region src/ui/index.js
|
|
4356
|
-
function
|
|
4357
|
-
document.readyState === "loading" ? document.addEventListener("DOMContentLoaded",
|
|
4407
|
+
function kc() {
|
|
4408
|
+
document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", Ac) : Ac();
|
|
4358
4409
|
}
|
|
4359
|
-
function
|
|
4410
|
+
function Ac() {
|
|
4360
4411
|
let e = document.getElementById("sidebar"), t = null;
|
|
4361
4412
|
document.querySelectorAll(".btn-spinner").forEach((e) => {
|
|
4362
4413
|
e.addEventListener("click", (t) => {
|
|
@@ -4396,4 +4447,4 @@ function Sc() {
|
|
|
4396
4447
|
}), e && window.innerWidth < 992 && e.classList.add("hide");
|
|
4397
4448
|
}
|
|
4398
4449
|
//#endregion
|
|
4399
|
-
export {
|
|
4450
|
+
export { ps as ActivationError, os as ActivationForm, Er as BackButton, Bn as BulkCheckboxHeader, Un as BulkCheckboxRow, Jn as BulkOperationsBar, Xt as CkeditorEditor, tr as ConfirmModal, wr as DeleteButton, Sr as EditButton, Rn as EmptyState, uo as ForgotPasswordForm, ni as FormCheckbox, li as FormDatePicker, Ur as FormEmail, Hr as FormInput, Ai as FormLocalizedInput, Fi as FormLocalizedWysiwyg, Gi as FormLocalizedWysiwygSimple, yi as FormMultiSelect, sa as FormPasswordConfirm, Xi as FormSelect, la as FormSubmit, wi as FormTagInput, Yr as FormTextarea, mi as FormWysiwyg, Bi as FormWysiwygSimple, vr as ListingHeader, va as LocalizationBar, Ua as LoginForm, Rt as MediaUpload, kn as Pagination, Fn as PerPage, hr as PublishedAtColumn, Mr as ReadOnlySwitch, Vo as ResetPasswordForm, Nn as Search, br as ShowButton, Ir as ShowRow, Q as Sortable, Kt as TiptapEditor, kr as ToggleSwitch, Ec as TranslationListing, hn as UserDetailTooltip, H as dayjs, K as formatDate, q as formatDatetime, tt as formatDuration, Ze as formatTime, Y as getDateFnsLocale, ct as initDateFnsLocale, kc as initUI, Dc as mediaCollectionDefaults, Oc as mediaCollectionProp, G as notifyError, W as notifySuccess, J as nowInTimezone, mt as useAdmin, X as useBaseAuth, ut as useBaseForm, ft as useBaseListing, gt as useResponsiveColumns };
|