@dejwcake/craftable 2.2.0 → 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 +430 -417
- package/package.json +1 -1
- package/src/index.js +8 -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,16 @@ 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 = {
|
|
2299
2312
|
__name: "ShowButton",
|
|
2300
2313
|
props: {
|
|
2301
2314
|
url: {
|
|
@@ -2313,9 +2326,9 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2313
2326
|
href: e.url,
|
|
2314
2327
|
title: e.translations.show_btn,
|
|
2315
2328
|
role: "button"
|
|
2316
|
-
}, [...n[0] ||= [u("i", { class: "fa fa-eye" }, null, -1)]], 8,
|
|
2329
|
+
}, [...n[0] ||= [u("i", { class: "fa fa-eye" }, null, -1)]], 8, yr));
|
|
2317
2330
|
}
|
|
2318
|
-
},
|
|
2331
|
+
}, xr = ["href", "title"], Sr = {
|
|
2319
2332
|
__name: "EditButton",
|
|
2320
2333
|
props: {
|
|
2321
2334
|
url: {
|
|
@@ -2333,9 +2346,9 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2333
2346
|
href: e.url,
|
|
2334
2347
|
title: e.translations.edit_btn,
|
|
2335
2348
|
role: "button"
|
|
2336
|
-
}, [...n[0] ||= [u("i", { class: "fa fa-edit" }, null, -1)]], 8,
|
|
2349
|
+
}, [...n[0] ||= [u("i", { class: "fa fa-edit" }, null, -1)]], 8, xr));
|
|
2337
2350
|
}
|
|
2338
|
-
},
|
|
2351
|
+
}, Cr = ["title"], wr = {
|
|
2339
2352
|
__name: "DeleteButton",
|
|
2340
2353
|
props: {
|
|
2341
2354
|
url: {
|
|
@@ -2368,14 +2381,14 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2368
2381
|
class: "btn btn-sm btn-danger",
|
|
2369
2382
|
title: e.translations.delete_btn,
|
|
2370
2383
|
onClick: n[0] ||= (e) => o.value = !0
|
|
2371
|
-
}, [...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, {
|
|
2372
2385
|
show: o.value,
|
|
2373
2386
|
translations: e.translations,
|
|
2374
2387
|
onConfirm: s,
|
|
2375
2388
|
onCancel: n[1] ||= (e) => o.value = !1
|
|
2376
2389
|
}, null, 8, ["show", "translations"])], 64));
|
|
2377
2390
|
}
|
|
2378
|
-
},
|
|
2391
|
+
}, Tr = ["href"], Er = {
|
|
2379
2392
|
__name: "BackButton",
|
|
2380
2393
|
props: {
|
|
2381
2394
|
url: {
|
|
@@ -2391,9 +2404,9 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2391
2404
|
return (t, n) => (S(), l("a", {
|
|
2392
2405
|
class: "btn btn-sm btn-outline-secondary",
|
|
2393
2406
|
href: e.url
|
|
2394
|
-
}, [n[0] ||= u("i", { class: "fa fa-arrow-left" }, null, -1), d(" " + D(e.translations.back), 1)], 8,
|
|
2407
|
+
}, [n[0] ||= u("i", { class: "fa fa-arrow-left" }, null, -1), d(" " + D(e.translations.back), 1)], 8, Tr));
|
|
2395
2408
|
}
|
|
2396
|
-
},
|
|
2409
|
+
}, Dr = { class: "form-check form-switch form-switch-inline" }, Or = ["checked"], kr = {
|
|
2397
2410
|
__name: "ToggleSwitch",
|
|
2398
2411
|
props: {
|
|
2399
2412
|
modelValue: {
|
|
@@ -2437,15 +2450,15 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2437
2450
|
i("update:modelValue", r.modelValue), G(e.response?.data?.message);
|
|
2438
2451
|
});
|
|
2439
2452
|
}
|
|
2440
|
-
return (t, n) => (S(), l("div",
|
|
2453
|
+
return (t, n) => (S(), l("div", Dr, [u("input", {
|
|
2441
2454
|
class: _(["form-check-input", a.value]),
|
|
2442
2455
|
type: "checkbox",
|
|
2443
2456
|
role: "switch",
|
|
2444
2457
|
checked: !!e.modelValue,
|
|
2445
2458
|
onChange: s
|
|
2446
|
-
}, null, 42,
|
|
2459
|
+
}, null, 42, Or)]));
|
|
2447
2460
|
}
|
|
2448
|
-
},
|
|
2461
|
+
}, Ar = { class: "form-check form-switch form-switch-inline" }, jr = ["checked"], Mr = {
|
|
2449
2462
|
__name: "ReadOnlySwitch",
|
|
2450
2463
|
props: {
|
|
2451
2464
|
modelValue: {
|
|
@@ -2463,15 +2476,15 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2463
2476
|
},
|
|
2464
2477
|
setup(e) {
|
|
2465
2478
|
let t = e, n = o(() => `form-switch-${t.variant}`);
|
|
2466
|
-
return (t, r) => (S(), l("div",
|
|
2479
|
+
return (t, r) => (S(), l("div", Ar, [u("input", {
|
|
2467
2480
|
class: _(["form-check-input", n.value]),
|
|
2468
2481
|
type: "checkbox",
|
|
2469
2482
|
role: "switch",
|
|
2470
2483
|
checked: !!e.modelValue,
|
|
2471
2484
|
disabled: ""
|
|
2472
|
-
}, null, 10,
|
|
2485
|
+
}, null, 10, jr)]));
|
|
2473
2486
|
}
|
|
2474
|
-
},
|
|
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 = {
|
|
2475
2488
|
__name: "ShowRow",
|
|
2476
2489
|
props: {
|
|
2477
2490
|
label: {
|
|
@@ -2488,18 +2501,18 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2488
2501
|
}
|
|
2489
2502
|
},
|
|
2490
2503
|
setup(e) {
|
|
2491
|
-
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)])])]));
|
|
2492
2505
|
}
|
|
2493
|
-
},
|
|
2506
|
+
}, Lr = { class: "mb-3 row align-items-center" }, Rr = ["for"], zr = { class: "col-md-9 col-xl-8" }, Br = [
|
|
2494
2507
|
"id",
|
|
2495
2508
|
"type",
|
|
2496
2509
|
"value",
|
|
2497
2510
|
"name",
|
|
2498
2511
|
"placeholder"
|
|
2499
|
-
],
|
|
2512
|
+
], Vr = {
|
|
2500
2513
|
key: 0,
|
|
2501
2514
|
class: "invalid-feedback form-text"
|
|
2502
|
-
},
|
|
2515
|
+
}, Hr = {
|
|
2503
2516
|
__name: "FormInput",
|
|
2504
2517
|
props: {
|
|
2505
2518
|
modelValue: {
|
|
@@ -2529,10 +2542,10 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2529
2542
|
},
|
|
2530
2543
|
emits: ["update:modelValue"],
|
|
2531
2544
|
setup(e) {
|
|
2532
|
-
return (t, n) => (S(), l("div",
|
|
2545
|
+
return (t, n) => (S(), l("div", Lr, [u("label", {
|
|
2533
2546
|
for: e.name,
|
|
2534
2547
|
class: "col-md-3 col-form-label text-md-end"
|
|
2535
|
-
}, D(e.label), 9,
|
|
2548
|
+
}, D(e.label), 9, Rr), u("div", zr, [u("input", {
|
|
2536
2549
|
id: e.name,
|
|
2537
2550
|
type: e.type,
|
|
2538
2551
|
value: e.modelValue,
|
|
@@ -2540,9 +2553,9 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2540
2553
|
name: e.name,
|
|
2541
2554
|
placeholder: e.placeholder || e.label,
|
|
2542
2555
|
onInput: n[0] ||= (e) => t.$emit("update:modelValue", e.target.value)
|
|
2543
|
-
}, null, 42,
|
|
2556
|
+
}, null, 42, Br), e.error ? (S(), l("div", Vr, D(e.error), 1)) : c("", !0)])]));
|
|
2544
2557
|
}
|
|
2545
|
-
},
|
|
2558
|
+
}, Ur = {
|
|
2546
2559
|
__name: "FormEmail",
|
|
2547
2560
|
props: {
|
|
2548
2561
|
modelValue: {
|
|
@@ -2568,21 +2581,21 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2568
2581
|
},
|
|
2569
2582
|
emits: ["update:modelValue"],
|
|
2570
2583
|
setup(e) {
|
|
2571
|
-
return (e, t) => (S(), s(
|
|
2584
|
+
return (e, t) => (S(), s(Hr, g(e.$props, {
|
|
2572
2585
|
type: "email",
|
|
2573
2586
|
"onUpdate:modelValue": t[0] ||= (t) => e.$emit("update:modelValue", t)
|
|
2574
2587
|
}), null, 16));
|
|
2575
2588
|
}
|
|
2576
|
-
},
|
|
2589
|
+
}, Wr = { class: "mb-3 row align-items-center" }, Gr = ["for"], Kr = { class: "col-md-9 col-xl-8" }, qr = [
|
|
2577
2590
|
"id",
|
|
2578
2591
|
"value",
|
|
2579
2592
|
"name",
|
|
2580
2593
|
"placeholder",
|
|
2581
2594
|
"rows"
|
|
2582
|
-
],
|
|
2595
|
+
], Jr = {
|
|
2583
2596
|
key: 0,
|
|
2584
2597
|
class: "invalid-feedback form-text"
|
|
2585
|
-
},
|
|
2598
|
+
}, Yr = {
|
|
2586
2599
|
__name: "FormTextarea",
|
|
2587
2600
|
props: {
|
|
2588
2601
|
modelValue: {
|
|
@@ -2612,10 +2625,10 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2612
2625
|
},
|
|
2613
2626
|
emits: ["update:modelValue"],
|
|
2614
2627
|
setup(e) {
|
|
2615
|
-
return (t, n) => (S(), l("div",
|
|
2628
|
+
return (t, n) => (S(), l("div", Wr, [u("label", {
|
|
2616
2629
|
for: e.name,
|
|
2617
2630
|
class: "col-md-3 col-form-label text-md-end"
|
|
2618
|
-
}, D(e.label), 9,
|
|
2631
|
+
}, D(e.label), 9, Gr), u("div", Kr, [u("textarea", {
|
|
2619
2632
|
id: e.name,
|
|
2620
2633
|
value: e.modelValue,
|
|
2621
2634
|
class: _(["form-control", { "is-invalid": e.error }]),
|
|
@@ -2623,16 +2636,16 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2623
2636
|
placeholder: e.placeholder || e.label,
|
|
2624
2637
|
rows: e.rows,
|
|
2625
2638
|
onInput: n[0] ||= (e) => t.$emit("update:modelValue", e.target.value)
|
|
2626
|
-
}, null, 42,
|
|
2639
|
+
}, null, 42, qr), e.error ? (S(), l("div", Jr, D(e.error), 1)) : c("", !0)])]));
|
|
2627
2640
|
}
|
|
2628
|
-
},
|
|
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 = [
|
|
2629
2642
|
"id",
|
|
2630
2643
|
"checked",
|
|
2631
2644
|
"name"
|
|
2632
|
-
],
|
|
2645
|
+
], ei = ["for"], ti = {
|
|
2633
2646
|
key: 0,
|
|
2634
2647
|
class: "invalid-feedback d-block form-text"
|
|
2635
|
-
},
|
|
2648
|
+
}, ni = {
|
|
2636
2649
|
__name: "FormCheckbox",
|
|
2637
2650
|
props: {
|
|
2638
2651
|
modelValue: {
|
|
@@ -2654,26 +2667,26 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2654
2667
|
},
|
|
2655
2668
|
emits: ["update:modelValue"],
|
|
2656
2669
|
setup(e) {
|
|
2657
|
-
return (t, n) => (S(), l("div",
|
|
2670
|
+
return (t, n) => (S(), l("div", Xr, [u("div", Zr, [u("div", Qr, [u("input", {
|
|
2658
2671
|
id: e.name,
|
|
2659
2672
|
class: "form-check-input",
|
|
2660
2673
|
type: "checkbox",
|
|
2661
2674
|
checked: e.modelValue,
|
|
2662
2675
|
name: e.name,
|
|
2663
2676
|
onChange: n[0] ||= (e) => t.$emit("update:modelValue", e.target.checked)
|
|
2664
|
-
}, null, 40,
|
|
2677
|
+
}, null, 40, $r), u("label", {
|
|
2665
2678
|
class: "form-check-label",
|
|
2666
2679
|
for: e.name
|
|
2667
|
-
}, D(e.label), 9,
|
|
2680
|
+
}, D(e.label), 9, ei)]), e.error ? (S(), l("div", ti, D(e.error), 1)) : c("", !0)])]));
|
|
2668
2681
|
}
|
|
2669
2682
|
}, $ = (e, t) => {
|
|
2670
2683
|
let n = e.__vccOpts || e;
|
|
2671
2684
|
for (let [e, r] of t) n[e] = r;
|
|
2672
2685
|
return n;
|
|
2673
|
-
},
|
|
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 = {
|
|
2674
2687
|
key: 0,
|
|
2675
2688
|
class: "invalid-feedback d-block form-text"
|
|
2676
|
-
},
|
|
2689
|
+
}, li = /*#__PURE__*/ $({
|
|
2677
2690
|
__name: "FormDatePicker",
|
|
2678
2691
|
props: {
|
|
2679
2692
|
modelValue: {
|
|
@@ -2711,10 +2724,10 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2711
2724
|
},
|
|
2712
2725
|
emits: ["update:modelValue"],
|
|
2713
2726
|
setup(e) {
|
|
2714
|
-
return (t, n) => (S(), l("div",
|
|
2727
|
+
return (t, n) => (S(), l("div", ri, [u("label", {
|
|
2715
2728
|
for: e.name,
|
|
2716
2729
|
class: "col-md-3 col-form-label text-md-end"
|
|
2717
|
-
}, 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, {
|
|
2718
2731
|
id: e.name,
|
|
2719
2732
|
"model-value": e.modelValue,
|
|
2720
2733
|
class: ["datepicker-input", { "is-invalid": e.error }],
|
|
@@ -2741,12 +2754,12 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2741
2754
|
"time-config",
|
|
2742
2755
|
"formats",
|
|
2743
2756
|
"locale"
|
|
2744
|
-
])]), e.error ? (S(), l("div",
|
|
2757
|
+
])]), e.error ? (S(), l("div", ci, D(e.error), 1)) : c("", !0)])]));
|
|
2745
2758
|
}
|
|
2746
|
-
}, [["__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 = {
|
|
2747
2760
|
key: 0,
|
|
2748
2761
|
class: "invalid-feedback d-block form-text"
|
|
2749
|
-
},
|
|
2762
|
+
}, mi = {
|
|
2750
2763
|
__name: "FormWysiwyg",
|
|
2751
2764
|
props: {
|
|
2752
2765
|
modelValue: {
|
|
@@ -2776,10 +2789,10 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2776
2789
|
},
|
|
2777
2790
|
emits: ["update:modelValue"],
|
|
2778
2791
|
setup(e) {
|
|
2779
|
-
return (t, n) => (S(), l("div",
|
|
2792
|
+
return (t, n) => (S(), l("div", ui, [u("label", {
|
|
2780
2793
|
for: e.name,
|
|
2781
2794
|
class: "col-md-3 col-form-label text-md-end"
|
|
2782
|
-
}, D(e.label), 9,
|
|
2795
|
+
}, D(e.label), 9, di), u("div", fi, [f(Xt, g({
|
|
2783
2796
|
id: e.name,
|
|
2784
2797
|
"model-value": e.modelValue,
|
|
2785
2798
|
name: e.name,
|
|
@@ -2789,12 +2802,12 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2789
2802
|
"model-value",
|
|
2790
2803
|
"name",
|
|
2791
2804
|
"upload-url"
|
|
2792
|
-
]), e.error ? (S(), l("div",
|
|
2805
|
+
]), e.error ? (S(), l("div", pi, D(e.error), 1)) : c("", !0)])]));
|
|
2793
2806
|
}
|
|
2794
|
-
},
|
|
2807
|
+
}, hi = { class: "mb-3 row align-items-center" }, gi = ["for"], _i = { class: "col-md-9 col-xl-8" }, vi = {
|
|
2795
2808
|
key: 0,
|
|
2796
2809
|
class: "invalid-feedback d-block form-text"
|
|
2797
|
-
},
|
|
2810
|
+
}, yi = {
|
|
2798
2811
|
__name: "FormMultiSelect",
|
|
2799
2812
|
props: {
|
|
2800
2813
|
modelValue: {
|
|
@@ -2832,10 +2845,10 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2832
2845
|
},
|
|
2833
2846
|
emits: ["update:modelValue"],
|
|
2834
2847
|
setup(e) {
|
|
2835
|
-
return (t, n) => (S(), l("div",
|
|
2848
|
+
return (t, n) => (S(), l("div", hi, [u("label", {
|
|
2836
2849
|
for: e.name,
|
|
2837
2850
|
class: "col-md-3 col-form-label text-md-end"
|
|
2838
|
-
}, D(e.label), 9,
|
|
2851
|
+
}, D(e.label), 9, gi), u("div", _i, [f(k(U), {
|
|
2839
2852
|
"model-value": e.modelValue,
|
|
2840
2853
|
class: _({ "is-invalid": e.error }),
|
|
2841
2854
|
placeholder: e.placeholder,
|
|
@@ -2852,12 +2865,12 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2852
2865
|
"options",
|
|
2853
2866
|
"label",
|
|
2854
2867
|
"track-by"
|
|
2855
|
-
]), e.error ? (S(), l("div",
|
|
2868
|
+
]), e.error ? (S(), l("div", vi, D(e.error), 1)) : c("", !0)])]));
|
|
2856
2869
|
}
|
|
2857
|
-
},
|
|
2870
|
+
}, bi = { class: "mb-3 row align-items-center" }, xi = ["for"], Si = { class: "col-md-9 col-xl-8" }, Ci = {
|
|
2858
2871
|
key: 0,
|
|
2859
2872
|
class: "invalid-feedback d-block form-text"
|
|
2860
|
-
},
|
|
2873
|
+
}, wi = {
|
|
2861
2874
|
__name: "FormTagInput",
|
|
2862
2875
|
props: {
|
|
2863
2876
|
modelValue: {
|
|
@@ -2887,10 +2900,10 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2887
2900
|
},
|
|
2888
2901
|
emits: ["update:modelValue"],
|
|
2889
2902
|
setup(e) {
|
|
2890
|
-
return (t, n) => (S(), l("div",
|
|
2903
|
+
return (t, n) => (S(), l("div", bi, [u("label", {
|
|
2891
2904
|
for: e.name,
|
|
2892
2905
|
class: "col-md-3 col-form-label text-md-end"
|
|
2893
|
-
}, D(e.label), 9,
|
|
2906
|
+
}, D(e.label), 9, xi), u("div", Si, [f(k(U), {
|
|
2894
2907
|
"model-value": e.modelValue,
|
|
2895
2908
|
class: _({ "is-invalid": e.error }),
|
|
2896
2909
|
placeholder: e.placeholder,
|
|
@@ -2908,18 +2921,18 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2908
2921
|
"placeholder",
|
|
2909
2922
|
"options",
|
|
2910
2923
|
"tag-placeholder"
|
|
2911
|
-
]), e.error ? (S(), l("div",
|
|
2924
|
+
]), e.error ? (S(), l("div", Ci, D(e.error), 1)) : c("", !0)])]));
|
|
2912
2925
|
}
|
|
2913
|
-
},
|
|
2926
|
+
}, Ti = { class: "mb-3 row align-items-center" }, Ei = ["for"], Di = { class: "col-md-9 col-xl-8" }, Oi = [
|
|
2914
2927
|
"id",
|
|
2915
2928
|
"value",
|
|
2916
2929
|
"name",
|
|
2917
2930
|
"placeholder",
|
|
2918
2931
|
"onInput"
|
|
2919
|
-
],
|
|
2932
|
+
], ki = {
|
|
2920
2933
|
key: 0,
|
|
2921
2934
|
class: "invalid-feedback d-block form-text"
|
|
2922
|
-
},
|
|
2935
|
+
}, Ai = {
|
|
2923
2936
|
__name: "FormLocalizedInput",
|
|
2924
2937
|
props: {
|
|
2925
2938
|
modelValue: {
|
|
@@ -2960,10 +2973,10 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2960
2973
|
[e]: t
|
|
2961
2974
|
});
|
|
2962
2975
|
}
|
|
2963
|
-
return (t, n) => (S(), l("div",
|
|
2976
|
+
return (t, n) => (S(), l("div", Ti, [u("label", {
|
|
2964
2977
|
for: e.name + "_" + e.locales[0],
|
|
2965
2978
|
class: "col-md-3 col-form-label text-md-end"
|
|
2966
|
-
}, 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", {
|
|
2967
2980
|
key: t,
|
|
2968
2981
|
class: _({ "flex-fill": e.isFormLocalized })
|
|
2969
2982
|
}, [u("input", {
|
|
@@ -2974,12 +2987,12 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
2974
2987
|
name: e.name + "_" + t,
|
|
2975
2988
|
placeholder: e.isFormLocalized ? t.toUpperCase() : e.label,
|
|
2976
2989
|
onInput: (e) => a(t, e.target.value)
|
|
2977
|
-
}, 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)])]));
|
|
2978
2991
|
}
|
|
2979
|
-
},
|
|
2992
|
+
}, ji = { class: "mb-3 row align-items-center" }, Mi = ["for"], Ni = { class: "col-md-9 col-xl-8" }, Pi = {
|
|
2980
2993
|
key: 0,
|
|
2981
2994
|
class: "invalid-feedback d-block form-text"
|
|
2982
|
-
},
|
|
2995
|
+
}, Fi = /*#__PURE__*/ $({
|
|
2983
2996
|
__name: "FormLocalizedWysiwyg",
|
|
2984
2997
|
props: {
|
|
2985
2998
|
modelValue: {
|
|
@@ -3028,13 +3041,13 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3028
3041
|
[e]: t
|
|
3029
3042
|
});
|
|
3030
3043
|
}
|
|
3031
|
-
return (t, n) => (S(), l("div",
|
|
3044
|
+
return (t, n) => (S(), l("div", ji, [u("label", {
|
|
3032
3045
|
for: e.name + "_" + e.locales[0],
|
|
3033
3046
|
class: "col-md-3 col-form-label text-md-end"
|
|
3034
|
-
}, 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", {
|
|
3035
3048
|
key: t,
|
|
3036
3049
|
class: _({ "flex-fill localized-editor": e.isFormLocalized })
|
|
3037
|
-
}, [f(
|
|
3050
|
+
}, [f(Xt, g({
|
|
3038
3051
|
id: e.name + "_" + t,
|
|
3039
3052
|
"model-value": e.modelValue[t],
|
|
3040
3053
|
name: e.name + "_" + t,
|
|
@@ -3045,12 +3058,12 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3045
3058
|
"name",
|
|
3046
3059
|
"upload-url",
|
|
3047
3060
|
"onUpdate:modelValue"
|
|
3048
|
-
]), 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)])]));
|
|
3049
3062
|
}
|
|
3050
|
-
}, [["__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 = {
|
|
3051
3064
|
key: 0,
|
|
3052
3065
|
class: "invalid-feedback d-block form-text"
|
|
3053
|
-
},
|
|
3066
|
+
}, Bi = {
|
|
3054
3067
|
__name: "FormWysiwygSimple",
|
|
3055
3068
|
props: {
|
|
3056
3069
|
modelValue: {
|
|
@@ -3080,10 +3093,10 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3080
3093
|
},
|
|
3081
3094
|
emits: ["update:modelValue"],
|
|
3082
3095
|
setup(e) {
|
|
3083
|
-
return (t, n) => (S(), l("div",
|
|
3096
|
+
return (t, n) => (S(), l("div", Ii, [u("label", {
|
|
3084
3097
|
for: e.name,
|
|
3085
3098
|
class: "col-md-3 col-form-label text-md-end"
|
|
3086
|
-
}, D(e.label), 9,
|
|
3099
|
+
}, D(e.label), 9, Li), u("div", Ri, [f(Kt, g({
|
|
3087
3100
|
id: e.name,
|
|
3088
3101
|
"model-value": e.modelValue,
|
|
3089
3102
|
name: e.name,
|
|
@@ -3093,12 +3106,12 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3093
3106
|
"model-value",
|
|
3094
3107
|
"name",
|
|
3095
3108
|
"upload-url"
|
|
3096
|
-
]), e.error ? (S(), l("div",
|
|
3109
|
+
]), e.error ? (S(), l("div", zi, D(e.error), 1)) : c("", !0)])]));
|
|
3097
3110
|
}
|
|
3098
|
-
},
|
|
3111
|
+
}, Vi = { class: "mb-3 row align-items-center" }, Hi = ["for"], Ui = { class: "col-md-9 col-xl-8" }, Wi = {
|
|
3099
3112
|
key: 0,
|
|
3100
3113
|
class: "invalid-feedback d-block form-text"
|
|
3101
|
-
},
|
|
3114
|
+
}, Gi = /*#__PURE__*/ $({
|
|
3102
3115
|
__name: "FormLocalizedWysiwygSimple",
|
|
3103
3116
|
props: {
|
|
3104
3117
|
modelValue: {
|
|
@@ -3147,13 +3160,13 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3147
3160
|
[e]: t
|
|
3148
3161
|
});
|
|
3149
3162
|
}
|
|
3150
|
-
return (t, n) => (S(), l("div",
|
|
3163
|
+
return (t, n) => (S(), l("div", Vi, [u("label", {
|
|
3151
3164
|
for: e.name + "_" + e.locales[0],
|
|
3152
3165
|
class: "col-md-3 col-form-label text-md-end"
|
|
3153
|
-
}, 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", {
|
|
3154
3167
|
key: t,
|
|
3155
3168
|
class: _({ "flex-fill localized-editor": e.isFormLocalized })
|
|
3156
|
-
}, [f(
|
|
3169
|
+
}, [f(Kt, g({
|
|
3157
3170
|
id: e.name + "_" + t,
|
|
3158
3171
|
"model-value": e.modelValue[t],
|
|
3159
3172
|
name: e.name + "_" + t,
|
|
@@ -3164,12 +3177,12 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3164
3177
|
"name",
|
|
3165
3178
|
"upload-url",
|
|
3166
3179
|
"onUpdate:modelValue"
|
|
3167
|
-
]), 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)])]));
|
|
3168
3181
|
}
|
|
3169
|
-
}, [["__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 = {
|
|
3170
3183
|
key: 0,
|
|
3171
3184
|
class: "invalid-feedback d-block form-text"
|
|
3172
|
-
},
|
|
3185
|
+
}, Xi = {
|
|
3173
3186
|
__name: "FormSelect",
|
|
3174
3187
|
props: {
|
|
3175
3188
|
modelValue: {
|
|
@@ -3212,10 +3225,10 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3212
3225
|
},
|
|
3213
3226
|
emits: ["update:modelValue"],
|
|
3214
3227
|
setup(e) {
|
|
3215
|
-
return (t, n) => (S(), l("div",
|
|
3228
|
+
return (t, n) => (S(), l("div", Ki, [u("label", {
|
|
3216
3229
|
for: e.name,
|
|
3217
3230
|
class: "col-md-3 col-form-label text-md-end"
|
|
3218
|
-
}, D(e.label), 9,
|
|
3231
|
+
}, D(e.label), 9, qi), u("div", Ji, [f(k(U), {
|
|
3219
3232
|
"model-value": e.modelValue,
|
|
3220
3233
|
class: _({ "is-invalid": e.error }),
|
|
3221
3234
|
placeholder: e.placeholder,
|
|
@@ -3231,21 +3244,21 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3231
3244
|
"options",
|
|
3232
3245
|
"label",
|
|
3233
3246
|
"track-by"
|
|
3234
|
-
]), e.error ? (S(), l("div",
|
|
3247
|
+
]), e.error ? (S(), l("div", Yi, D(e.error), 1)) : c("", !0)])]));
|
|
3235
3248
|
}
|
|
3236
|
-
},
|
|
3249
|
+
}, Zi = { class: "mb-3 row align-items-center" }, Qi = {
|
|
3237
3250
|
for: "password",
|
|
3238
3251
|
class: "col-md-3 col-form-label text-md-end"
|
|
3239
|
-
},
|
|
3252
|
+
}, $i = { class: "col-md-9 col-xl-8" }, ea = ["value", "placeholder"], ta = {
|
|
3240
3253
|
key: 0,
|
|
3241
3254
|
class: "invalid-feedback form-text"
|
|
3242
|
-
},
|
|
3255
|
+
}, na = { class: "mb-3 row align-items-center" }, ra = {
|
|
3243
3256
|
for: "password_confirmation",
|
|
3244
3257
|
class: "col-md-3 col-form-label text-md-end"
|
|
3245
|
-
},
|
|
3258
|
+
}, ia = { class: "col-md-9 col-xl-8" }, aa = ["value", "placeholder"], oa = {
|
|
3246
3259
|
key: 0,
|
|
3247
3260
|
class: "invalid-feedback form-text"
|
|
3248
|
-
},
|
|
3261
|
+
}, sa = {
|
|
3249
3262
|
__name: "FormPasswordConfirm",
|
|
3250
3263
|
props: {
|
|
3251
3264
|
password: {
|
|
@@ -3271,7 +3284,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3271
3284
|
},
|
|
3272
3285
|
emits: ["update:password", "update:passwordConfirmation"],
|
|
3273
3286
|
setup(e) {
|
|
3274
|
-
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", {
|
|
3275
3288
|
id: "password",
|
|
3276
3289
|
type: "password",
|
|
3277
3290
|
value: e.password,
|
|
@@ -3279,7 +3292,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3279
3292
|
name: "password",
|
|
3280
3293
|
placeholder: e.translations.password,
|
|
3281
3294
|
onInput: n[0] ||= (e) => t.$emit("update:password", e.target.value)
|
|
3282
|
-
}, 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", {
|
|
3283
3296
|
id: "password_confirmation",
|
|
3284
3297
|
type: "password",
|
|
3285
3298
|
value: e.passwordConfirmation,
|
|
@@ -3287,9 +3300,9 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3287
3300
|
name: "password_confirmation",
|
|
3288
3301
|
placeholder: e.translations.password,
|
|
3289
3302
|
onInput: n[1] ||= (e) => t.$emit("update:passwordConfirmation", e.target.value)
|
|
3290
|
-
}, null, 42,
|
|
3303
|
+
}, null, 42, aa), e.confirmationError ? (S(), l("div", oa, D(e.confirmationError), 1)) : c("", !0)])])], 64));
|
|
3291
3304
|
}
|
|
3292
|
-
},
|
|
3305
|
+
}, ca = ["disabled"], la = {
|
|
3293
3306
|
__name: "FormSubmit",
|
|
3294
3307
|
props: {
|
|
3295
3308
|
submitting: {
|
|
@@ -3306,24 +3319,24 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3306
3319
|
type: "submit",
|
|
3307
3320
|
class: "btn btn-primary submit-btn",
|
|
3308
3321
|
disabled: e.submitting
|
|
3309
|
-
}, [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));
|
|
3310
3323
|
}
|
|
3311
|
-
},
|
|
3324
|
+
}, ua = {
|
|
3312
3325
|
key: 0,
|
|
3313
3326
|
class: "row mb-2 localization-bar"
|
|
3314
|
-
},
|
|
3327
|
+
}, da = { key: 0 }, fa = { key: 0 }, pa = {
|
|
3315
3328
|
key: 1,
|
|
3316
3329
|
class: "localization-error"
|
|
3317
|
-
},
|
|
3330
|
+
}, ma = {
|
|
3318
3331
|
key: 2,
|
|
3319
3332
|
class: "d-flex align-items-center gap-2"
|
|
3320
|
-
},
|
|
3333
|
+
}, ha = { class: "text-nowrap" }, ga = {
|
|
3321
3334
|
key: 0,
|
|
3322
3335
|
class: "localization-error"
|
|
3323
|
-
},
|
|
3336
|
+
}, _a = {
|
|
3324
3337
|
key: 0,
|
|
3325
3338
|
class: "localization-error"
|
|
3326
|
-
},
|
|
3339
|
+
}, va = /*#__PURE__*/ $({
|
|
3327
3340
|
__name: "LocalizationBar",
|
|
3328
3341
|
props: {
|
|
3329
3342
|
translations: {
|
|
@@ -3366,19 +3379,19 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3366
3379
|
],
|
|
3367
3380
|
setup(e) {
|
|
3368
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]);
|
|
3369
|
-
return (t, a) => e.locales.length > 0 ? (S(), l("div",
|
|
3370
|
-
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, [
|
|
3371
3384
|
d(D(n.value), 1),
|
|
3372
|
-
e.otherLocales.length > 1 ? (S(), l("span",
|
|
3385
|
+
e.otherLocales.length > 1 ? (S(), l("span", fa, D(r.value), 1)) : c("", !0),
|
|
3373
3386
|
a[4] ||= d(" | ", -1),
|
|
3374
3387
|
u("a", {
|
|
3375
3388
|
href: "#",
|
|
3376
3389
|
onClick: a[0] ||= R((e) => t.$emit("show-localization"), ["prevent"])
|
|
3377
3390
|
}, D(e.translations.manage_translations), 1)
|
|
3378
3391
|
])),
|
|
3379
|
-
!e.isFormLocalized && e.showLocalizedValidationError ? (S(), l("i",
|
|
3380
|
-
e.isFormLocalized ? (S(), l("div",
|
|
3381
|
-
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),
|
|
3382
3395
|
f(k(U), {
|
|
3383
3396
|
"model-value": e.currentLocale,
|
|
3384
3397
|
options: i.value,
|
|
@@ -3392,7 +3405,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3392
3405
|
"options",
|
|
3393
3406
|
"custom-label"
|
|
3394
3407
|
]),
|
|
3395
|
-
e.showLocalizedValidationError ? (S(), l("i",
|
|
3408
|
+
e.showLocalizedValidationError ? (S(), l("i", ga)) : c("", !0),
|
|
3396
3409
|
u("small", null, [u("a", {
|
|
3397
3410
|
href: "#",
|
|
3398
3411
|
onClick: a[2] ||= R((e) => t.$emit("hide-localization"), ["prevent"])
|
|
@@ -3419,25 +3432,25 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3419
3432
|
"options",
|
|
3420
3433
|
"custom-label"
|
|
3421
3434
|
]),
|
|
3422
|
-
e.showLocalizedValidationError ? (S(), l("i",
|
|
3435
|
+
e.showLocalizedValidationError ? (S(), l("i", _a)) : c("", !0)
|
|
3423
3436
|
])], 2)) : c("", !0)])) : c("", !0);
|
|
3424
3437
|
}
|
|
3425
|
-
}, [["__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 = {
|
|
3426
3439
|
key: 0,
|
|
3427
3440
|
class: "alert alert-success"
|
|
3428
|
-
},
|
|
3441
|
+
}, Da = {
|
|
3429
3442
|
key: 1,
|
|
3430
3443
|
class: "alert alert-danger"
|
|
3431
|
-
},
|
|
3444
|
+
}, Oa = { class: "mb-3" }, ka = { for: "email" }, Aa = { class: "input-group input-group--custom" }, ja = ["placeholder"], Ma = {
|
|
3432
3445
|
key: 0,
|
|
3433
3446
|
class: "invalid-feedback d-block form-text"
|
|
3434
|
-
},
|
|
3447
|
+
}, Na = { class: "mb-3" }, Pa = { for: "password" }, Fa = { class: "input-group input-group--custom" }, Ia = ["placeholder"], La = {
|
|
3435
3448
|
key: 0,
|
|
3436
3449
|
class: "invalid-feedback d-block form-text"
|
|
3437
|
-
},
|
|
3450
|
+
}, Ra = { class: "mb-3" }, za = ["disabled"], Ba = {
|
|
3438
3451
|
key: 0,
|
|
3439
3452
|
class: "fa fa-spinner fa-spin"
|
|
3440
|
-
},
|
|
3453
|
+
}, Va = { class: "mb-3 text-center" }, Ha = ["href"], Ua = /*#__PURE__*/ $({
|
|
3441
3454
|
__name: "LoginForm",
|
|
3442
3455
|
props: {
|
|
3443
3456
|
action: {
|
|
@@ -3479,40 +3492,40 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3479
3492
|
window.location.replace(t.redirectUrl);
|
|
3480
3493
|
}
|
|
3481
3494
|
});
|
|
3482
|
-
return (t, s) => (S(), l("div",
|
|
3495
|
+
return (t, s) => (S(), l("div", ya, [u("div", ba, [u("form", {
|
|
3483
3496
|
role: "form",
|
|
3484
3497
|
method: "POST",
|
|
3485
3498
|
action: e.action,
|
|
3486
3499
|
novalidate: "",
|
|
3487
3500
|
onSubmit: s[2] ||= R((...e) => k(o) && k(o)(...e), ["prevent"])
|
|
3488
|
-
}, [u("div",
|
|
3489
|
-
e.statusMessage ? (S(), l("div",
|
|
3490
|
-
e.serverErrors.length ? (S(), l("div",
|
|
3491
|
-
u("div",
|
|
3492
|
-
u("label",
|
|
3493
|
-
u("div",
|
|
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", {
|
|
3494
3507
|
id: "email",
|
|
3495
3508
|
"onUpdate:modelValue": s[0] ||= (e) => k(n).email = e,
|
|
3496
3509
|
type: "text",
|
|
3497
3510
|
class: _(["form-control", { "is-invalid": k(r).email }]),
|
|
3498
3511
|
name: "email",
|
|
3499
3512
|
placeholder: e.translations.email
|
|
3500
|
-
}, null, 10,
|
|
3501
|
-
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)
|
|
3502
3515
|
]),
|
|
3503
|
-
u("div",
|
|
3504
|
-
u("label",
|
|
3505
|
-
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", {
|
|
3506
3519
|
id: "password",
|
|
3507
3520
|
"onUpdate:modelValue": s[1] ||= (e) => k(n).password = e,
|
|
3508
3521
|
type: "password",
|
|
3509
3522
|
class: _(["form-control", { "is-invalid": k(r).password }]),
|
|
3510
3523
|
name: "password",
|
|
3511
3524
|
placeholder: e.translations.password
|
|
3512
|
-
}, null, 10,
|
|
3513
|
-
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)
|
|
3514
3527
|
]),
|
|
3515
|
-
u("div",
|
|
3528
|
+
u("div", Ra, [s[5] ||= u("input", {
|
|
3516
3529
|
type: "hidden",
|
|
3517
3530
|
name: "remember",
|
|
3518
3531
|
value: "1"
|
|
@@ -3520,32 +3533,32 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3520
3533
|
type: "submit",
|
|
3521
3534
|
class: "btn btn-primary submit-btn",
|
|
3522
3535
|
disabled: k(a)
|
|
3523
|
-
}, [k(a) ? (S(), l("i",
|
|
3524
|
-
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", {
|
|
3525
3538
|
href: e.passwordResetUrl,
|
|
3526
3539
|
class: "auth-ghost-link forgot-link"
|
|
3527
|
-
}, D(e.translations.forgotPassword), 9,
|
|
3528
|
-
])], 40,
|
|
3540
|
+
}, D(e.translations.forgotPassword), 9, Ha)])
|
|
3541
|
+
])], 40, xa)])]));
|
|
3529
3542
|
}
|
|
3530
|
-
}, [["__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 = {
|
|
3531
3544
|
key: 0,
|
|
3532
3545
|
class: "alert alert-success"
|
|
3533
|
-
},
|
|
3546
|
+
}, Qa = {
|
|
3534
3547
|
key: 1,
|
|
3535
3548
|
class: "alert alert-success"
|
|
3536
|
-
},
|
|
3549
|
+
}, $a = {
|
|
3537
3550
|
key: 2,
|
|
3538
3551
|
class: "alert alert-danger"
|
|
3539
|
-
},
|
|
3552
|
+
}, eo = { class: "mb-3" }, to = { for: "email" }, no = { class: "input-group input-group--custom" }, ro = ["placeholder"], io = {
|
|
3540
3553
|
key: 0,
|
|
3541
3554
|
class: "invalid-feedback d-block form-text"
|
|
3542
|
-
},
|
|
3555
|
+
}, ao = { class: "mb-3" }, oo = ["disabled"], so = {
|
|
3543
3556
|
key: 0,
|
|
3544
3557
|
class: "fa fa-spinner fa-spin"
|
|
3545
|
-
},
|
|
3558
|
+
}, co = {
|
|
3546
3559
|
key: 3,
|
|
3547
3560
|
class: "text-center"
|
|
3548
|
-
},
|
|
3561
|
+
}, lo = ["href"], uo = {
|
|
3549
3562
|
__name: "ForgotPasswordForm",
|
|
3550
3563
|
props: {
|
|
3551
3564
|
action: {
|
|
@@ -3574,61 +3587,61 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3574
3587
|
formDefaults: { email: "" },
|
|
3575
3588
|
validationSchema: { email: "required|email" }
|
|
3576
3589
|
});
|
|
3577
|
-
return (s, f) => (S(), l("div",
|
|
3590
|
+
return (s, f) => (S(), l("div", Wa, [u("div", Ga, [u("form", {
|
|
3578
3591
|
role: "form",
|
|
3579
3592
|
method: "POST",
|
|
3580
3593
|
action: e.action,
|
|
3581
3594
|
novalidate: "",
|
|
3582
3595
|
onSubmit: f[1] ||= R((...e) => k(o) && k(o)(...e), ["prevent"])
|
|
3583
|
-
}, [u("div",
|
|
3584
|
-
k(a) ? (S(), l("div",
|
|
3585
|
-
e.statusMessage && !k(a) ? (S(), l("div",
|
|
3586
|
-
e.serverErrors.length ? (S(), l("div",
|
|
3587
|
-
u("div",
|
|
3588
|
-
u("label",
|
|
3589
|
-
u("div",
|
|
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", {
|
|
3590
3603
|
id: "email",
|
|
3591
3604
|
"onUpdate:modelValue": f[0] ||= (e) => k(t).email = e,
|
|
3592
3605
|
type: "text",
|
|
3593
3606
|
class: _(["form-control", { "is-invalid": k(n).email }]),
|
|
3594
3607
|
name: "email",
|
|
3595
3608
|
placeholder: e.translations.email
|
|
3596
|
-
}, null, 10,
|
|
3597
|
-
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)
|
|
3598
3611
|
]),
|
|
3599
|
-
u("div",
|
|
3612
|
+
u("div", ao, [u("button", {
|
|
3600
3613
|
type: "submit",
|
|
3601
3614
|
class: "btn btn-primary submit-btn",
|
|
3602
3615
|
disabled: k(r)
|
|
3603
|
-
}, [k(r) ? (S(), l("i",
|
|
3604
|
-
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", {
|
|
3605
3618
|
href: e.loginUrl,
|
|
3606
3619
|
class: "auth-ghost-link"
|
|
3607
|
-
}, D(e.translations.backToLogin), 9,
|
|
3608
|
-
])], 40,
|
|
3620
|
+
}, D(e.translations.backToLogin), 9, lo)])) : c("", !0)
|
|
3621
|
+
])], 40, Ka)])]));
|
|
3609
3622
|
}
|
|
3610
|
-
},
|
|
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 = {
|
|
3611
3624
|
key: 0,
|
|
3612
3625
|
class: "alert alert-success"
|
|
3613
|
-
},
|
|
3626
|
+
}, bo = {
|
|
3614
3627
|
key: 1,
|
|
3615
3628
|
class: "alert alert-danger"
|
|
3616
|
-
},
|
|
3629
|
+
}, xo = { class: "mb-3" }, So = { for: "email" }, Co = { class: "input-group input-group--custom" }, wo = ["placeholder"], To = {
|
|
3617
3630
|
key: 0,
|
|
3618
3631
|
class: "invalid-feedback d-block form-text"
|
|
3619
|
-
},
|
|
3632
|
+
}, Eo = { class: "mb-3" }, Do = { for: "password" }, Oo = { class: "input-group input-group--custom" }, ko = ["placeholder"], Ao = {
|
|
3620
3633
|
key: 0,
|
|
3621
3634
|
class: "invalid-feedback d-block form-text"
|
|
3622
|
-
},
|
|
3635
|
+
}, jo = { class: "mb-3" }, Mo = { for: "password_confirmation" }, No = { class: "input-group input-group--custom" }, Po = ["placeholder"], Fo = {
|
|
3623
3636
|
key: 0,
|
|
3624
3637
|
class: "invalid-feedback d-block form-text"
|
|
3625
|
-
},
|
|
3638
|
+
}, Io = { class: "mb-3" }, Lo = ["disabled"], Ro = {
|
|
3626
3639
|
key: 0,
|
|
3627
3640
|
class: "fa fa-spinner fa-spin"
|
|
3628
|
-
},
|
|
3641
|
+
}, zo = {
|
|
3629
3642
|
key: 2,
|
|
3630
3643
|
class: "text-center"
|
|
3631
|
-
},
|
|
3644
|
+
}, Bo = ["href"], Vo = {
|
|
3632
3645
|
__name: "ResetPasswordForm",
|
|
3633
3646
|
props: {
|
|
3634
3647
|
action: {
|
|
@@ -3681,78 +3694,78 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3681
3694
|
window.location.replace(e.redirect || t.redirectUrl);
|
|
3682
3695
|
}
|
|
3683
3696
|
});
|
|
3684
|
-
return (t, s) => (S(), l("div",
|
|
3697
|
+
return (t, s) => (S(), l("div", fo, [u("div", po, [u("form", {
|
|
3685
3698
|
role: "form",
|
|
3686
3699
|
method: "POST",
|
|
3687
3700
|
action: e.action,
|
|
3688
3701
|
novalidate: "",
|
|
3689
3702
|
onSubmit: s[3] ||= R((...e) => k(o) && k(o)(...e), ["prevent"])
|
|
3690
|
-
}, [u("div",
|
|
3691
|
-
e.statusMessage ? (S(), l("div",
|
|
3692
|
-
e.serverErrors.length ? (S(), l("div",
|
|
3693
|
-
u("div",
|
|
3694
|
-
u("label",
|
|
3695
|
-
u("div",
|
|
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", {
|
|
3696
3709
|
id: "email",
|
|
3697
3710
|
"onUpdate:modelValue": s[0] ||= (e) => k(n).email = e,
|
|
3698
3711
|
type: "text",
|
|
3699
3712
|
class: _(["form-control", { "is-invalid": k(r).email }]),
|
|
3700
3713
|
name: "email",
|
|
3701
3714
|
placeholder: e.translations.email
|
|
3702
|
-
}, null, 10,
|
|
3703
|
-
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)
|
|
3704
3717
|
]),
|
|
3705
|
-
u("div",
|
|
3706
|
-
u("label",
|
|
3707
|
-
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", {
|
|
3708
3721
|
id: "password",
|
|
3709
3722
|
"onUpdate:modelValue": s[1] ||= (e) => k(n).password = e,
|
|
3710
3723
|
type: "password",
|
|
3711
3724
|
class: _(["form-control", { "is-invalid": k(r).password }]),
|
|
3712
3725
|
name: "password",
|
|
3713
3726
|
placeholder: e.translations.password
|
|
3714
|
-
}, null, 10,
|
|
3715
|
-
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)
|
|
3716
3729
|
]),
|
|
3717
|
-
u("div",
|
|
3718
|
-
u("label",
|
|
3719
|
-
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", {
|
|
3720
3733
|
id: "password_confirmation",
|
|
3721
3734
|
"onUpdate:modelValue": s[2] ||= (e) => k(n).password_confirmation = e,
|
|
3722
3735
|
type: "password",
|
|
3723
3736
|
class: _(["form-control", { "is-invalid": k(r).password_confirmation }]),
|
|
3724
3737
|
name: "password_confirmation",
|
|
3725
3738
|
placeholder: e.translations.passwordConfirm
|
|
3726
|
-
}, null, 10,
|
|
3727
|
-
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)
|
|
3728
3741
|
]),
|
|
3729
|
-
u("div",
|
|
3742
|
+
u("div", Io, [u("button", {
|
|
3730
3743
|
type: "submit",
|
|
3731
3744
|
class: "btn btn-primary submit-btn",
|
|
3732
3745
|
disabled: k(a)
|
|
3733
|
-
}, [k(a) ? (S(), l("i",
|
|
3734
|
-
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", {
|
|
3735
3748
|
href: e.loginUrl,
|
|
3736
3749
|
class: "auth-ghost-link"
|
|
3737
|
-
}, D(e.translations.backToLogin), 9,
|
|
3738
|
-
])], 40,
|
|
3750
|
+
}, D(e.translations.backToLogin), 9, Bo)])) : c("", !0)
|
|
3751
|
+
])], 40, mo)])]));
|
|
3739
3752
|
}
|
|
3740
|
-
},
|
|
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 = {
|
|
3741
3754
|
key: 0,
|
|
3742
3755
|
class: "alert alert-success"
|
|
3743
|
-
},
|
|
3756
|
+
}, Xo = {
|
|
3744
3757
|
key: 1,
|
|
3745
3758
|
class: "alert alert-success"
|
|
3746
|
-
},
|
|
3759
|
+
}, Zo = {
|
|
3747
3760
|
key: 2,
|
|
3748
3761
|
class: "alert alert-danger"
|
|
3749
|
-
},
|
|
3762
|
+
}, Qo = { class: "mb-3" }, $o = { for: "email" }, es = { class: "input-group input-group--custom" }, ts = ["placeholder"], ns = {
|
|
3750
3763
|
key: 0,
|
|
3751
3764
|
class: "invalid-feedback d-block form-text"
|
|
3752
|
-
},
|
|
3765
|
+
}, rs = { class: "mb-3" }, is = ["disabled"], as = {
|
|
3753
3766
|
key: 0,
|
|
3754
3767
|
class: "fa fa-spinner fa-spin"
|
|
3755
|
-
},
|
|
3768
|
+
}, os = {
|
|
3756
3769
|
__name: "ActivationForm",
|
|
3757
3770
|
props: {
|
|
3758
3771
|
action: {
|
|
@@ -3777,39 +3790,39 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3777
3790
|
formDefaults: { email: "" },
|
|
3778
3791
|
validationSchema: { email: "required|email" }
|
|
3779
3792
|
});
|
|
3780
|
-
return (s, f) => (S(), l("div",
|
|
3793
|
+
return (s, f) => (S(), l("div", Ho, [u("div", Uo, [u("form", {
|
|
3781
3794
|
role: "form",
|
|
3782
3795
|
method: "POST",
|
|
3783
3796
|
action: e.action,
|
|
3784
3797
|
novalidate: "",
|
|
3785
3798
|
onSubmit: f[1] ||= R((...e) => k(o) && k(o)(...e), ["prevent"])
|
|
3786
|
-
}, [u("div",
|
|
3787
|
-
k(a) ? (S(), l("div",
|
|
3788
|
-
e.statusMessage && !k(a) ? (S(), l("div",
|
|
3789
|
-
e.serverErrors.length ? (S(), l("div",
|
|
3790
|
-
u("div",
|
|
3791
|
-
u("label",
|
|
3792
|
-
u("div",
|
|
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", {
|
|
3793
3806
|
id: "email",
|
|
3794
3807
|
"onUpdate:modelValue": f[0] ||= (e) => k(t).email = e,
|
|
3795
3808
|
type: "text",
|
|
3796
3809
|
class: _(["form-control", { "is-invalid": k(n).email }]),
|
|
3797
3810
|
name: "email",
|
|
3798
3811
|
placeholder: e.translations.email
|
|
3799
|
-
}, null, 10,
|
|
3800
|
-
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)
|
|
3801
3814
|
]),
|
|
3802
|
-
u("div",
|
|
3815
|
+
u("div", rs, [u("button", {
|
|
3803
3816
|
type: "submit",
|
|
3804
3817
|
class: "btn btn-primary submit-btn",
|
|
3805
3818
|
disabled: k(r)
|
|
3806
|
-
}, [k(r) ? (S(), l("i",
|
|
3807
|
-
])], 40,
|
|
3819
|
+
}, [k(r) ? (S(), l("i", as)) : c("", !0), d(" " + D(e.translations.button), 1)], 8, is)])
|
|
3820
|
+
])], 40, Wo)])]));
|
|
3808
3821
|
}
|
|
3809
|
-
},
|
|
3822
|
+
}, ss = { class: "card" }, cs = { class: "card-body" }, ls = { class: "auth-header" }, us = { class: "auth-title" }, ds = { class: "auth-body" }, fs = {
|
|
3810
3823
|
key: 0,
|
|
3811
3824
|
class: "alert alert-danger"
|
|
3812
|
-
},
|
|
3825
|
+
}, ps = {
|
|
3813
3826
|
__name: "ActivationError",
|
|
3814
3827
|
props: {
|
|
3815
3828
|
translations: {
|
|
@@ -3822,15 +3835,15 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3822
3835
|
}
|
|
3823
3836
|
},
|
|
3824
3837
|
setup(e) {
|
|
3825
|
-
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)])])]));
|
|
3826
3839
|
}
|
|
3827
|
-
},
|
|
3840
|
+
}, ms = { class: "modal-dialog" }, hs = { class: "modal-content" }, gs = { class: "modal-header" }, _s = { class: "modal-title" }, vs = { class: "modal-body" }, ys = {
|
|
3828
3841
|
class: "text-center",
|
|
3829
3842
|
style: { "word-wrap": "break-word" }
|
|
3830
|
-
},
|
|
3843
|
+
}, bs = { class: "form-label" }, xs = ["onUpdate:modelValue", "placeholder"], Ss = ["onUpdate:modelValue", "placeholder"], Cs = { class: "text-center" }, ws = {
|
|
3831
3844
|
class: "btn btn-primary w-100",
|
|
3832
3845
|
type: "submit"
|
|
3833
|
-
},
|
|
3846
|
+
}, Ts = {
|
|
3834
3847
|
__name: "TranslationEditModal",
|
|
3835
3848
|
props: {
|
|
3836
3849
|
show: {
|
|
@@ -3871,47 +3884,47 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3871
3884
|
return (t, n) => (S(), l(i, null, [u("div", {
|
|
3872
3885
|
class: _(["modal fade", { show: e.show }]),
|
|
3873
3886
|
style: y({ display: e.show ? "block" : "none" })
|
|
3874
|
-
}, [u("div",
|
|
3887
|
+
}, [u("div", ms, [u("div", hs, [u("div", gs, [u("h4", _s, D(e.translations.edit), 1), u("button", {
|
|
3875
3888
|
type: "button",
|
|
3876
3889
|
class: "btn-close",
|
|
3877
3890
|
onClick: n[0] ||= (e) => t.$emit("close")
|
|
3878
|
-
})]), 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", {
|
|
3879
3892
|
key: t,
|
|
3880
3893
|
class: "mb-3"
|
|
3881
|
-
}, [u("label",
|
|
3894
|
+
}, [u("label", bs, D(t.toUpperCase()) + " " + D(e.translations.translation), 1), !f[t] || f[t].length < 70 ? I((S(), l("input", {
|
|
3882
3895
|
key: 0,
|
|
3883
3896
|
"onUpdate:modelValue": (e) => f[t] = e,
|
|
3884
3897
|
type: "text",
|
|
3885
3898
|
class: "form-control",
|
|
3886
3899
|
placeholder: (e.translations.translation_for || "").replace(":locale", t)
|
|
3887
|
-
}, null, 8,
|
|
3900
|
+
}, null, 8, xs)), [[M, f[t]]]) : I((S(), l("textarea", {
|
|
3888
3901
|
key: 1,
|
|
3889
3902
|
"onUpdate:modelValue": (e) => f[t] = e,
|
|
3890
3903
|
class: "form-control",
|
|
3891
3904
|
placeholder: (e.translations.translation_for || "").replace(":locale", t),
|
|
3892
3905
|
cols: "30",
|
|
3893
3906
|
rows: "4"
|
|
3894
|
-
}, 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", {
|
|
3895
3908
|
key: 0,
|
|
3896
3909
|
class: "modal-backdrop fade show",
|
|
3897
3910
|
onClick: n[1] ||= (e) => t.$emit("close")
|
|
3898
3911
|
})) : c("", !0)], 64));
|
|
3899
3912
|
}
|
|
3900
|
-
},
|
|
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 = {
|
|
3901
3914
|
for: "importLanguage",
|
|
3902
3915
|
class: "col-form-label"
|
|
3903
|
-
},
|
|
3916
|
+
}, Vs = { class: "col-md-6" }, Hs = { class: "offset-md-4" }, Us = { class: "form-check" }, Ws = {
|
|
3904
3917
|
class: "form-check-label",
|
|
3905
3918
|
for: "onlyMissingTranslations"
|
|
3906
|
-
},
|
|
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 = [
|
|
3907
3920
|
"id",
|
|
3908
3921
|
"onUpdate:modelValue",
|
|
3909
3922
|
"name"
|
|
3910
|
-
],
|
|
3923
|
+
], Qs = ["for"], $s = { style: { "word-break": "break-all" } }, ec = [
|
|
3911
3924
|
"id",
|
|
3912
3925
|
"onUpdate:modelValue",
|
|
3913
3926
|
"name"
|
|
3914
|
-
],
|
|
3927
|
+
], tc = ["for"], nc = { class: "text-center" }, rc = { class: "modal-footer" }, ic = {
|
|
3915
3928
|
__name: "TranslationImportModal",
|
|
3916
3929
|
props: {
|
|
3917
3930
|
show: {
|
|
@@ -3984,16 +3997,16 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
3984
3997
|
return (t, n) => (S(), l(i, null, [u("div", {
|
|
3985
3998
|
class: _(["modal fade", { show: e.show }]),
|
|
3986
3999
|
style: y({ display: e.show ? "block" : "none" })
|
|
3987
|
-
}, [u("div",
|
|
3988
|
-
u("div",
|
|
4000
|
+
}, [u("div", Es, [u("div", Ds, [
|
|
4001
|
+
u("div", Os, [u("h4", ks, D(e.translations.import_title), 1), u("button", {
|
|
3989
4002
|
type: "button",
|
|
3990
4003
|
class: "btn-close",
|
|
3991
4004
|
onClick: B
|
|
3992
4005
|
})]),
|
|
3993
|
-
u("div",
|
|
4006
|
+
u("div", As, [
|
|
3994
4007
|
I(u("div", null, [
|
|
3995
4008
|
u("p", null, D(e.translations.import_notice), 1),
|
|
3996
|
-
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", {
|
|
3997
4010
|
ref_key: "fileInput",
|
|
3998
4011
|
ref: p,
|
|
3999
4012
|
type: "file",
|
|
@@ -4001,7 +4014,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4001
4014
|
accept: ".xlsx",
|
|
4002
4015
|
onChange: z
|
|
4003
4016
|
}, null, 544)])])]),
|
|
4004
|
-
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), {
|
|
4005
4018
|
modelValue: h.value,
|
|
4006
4019
|
"onUpdate:modelValue": n[0] ||= (e) => h.value = e,
|
|
4007
4020
|
options: d.value,
|
|
@@ -4016,47 +4029,47 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4016
4029
|
"options",
|
|
4017
4030
|
"placeholder"
|
|
4018
4031
|
])])]),
|
|
4019
|
-
u("div",
|
|
4032
|
+
u("div", Hs, [u("div", Us, [I(u("input", {
|
|
4020
4033
|
id: "onlyMissingTranslations",
|
|
4021
4034
|
"onUpdate:modelValue": n[1] ||= (e) => v.value = e,
|
|
4022
4035
|
class: "form-check-input",
|
|
4023
4036
|
type: "checkbox"
|
|
4024
|
-
}, null, 512), [[A, v.value]]), u("label",
|
|
4037
|
+
}, null, 512), [[A, v.value]]), u("label", Ws, D(e.translations.do_not_override), 1)])])
|
|
4025
4038
|
], 512), [[N, b.value === 1]]),
|
|
4026
|
-
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, [
|
|
4027
4040
|
u("th", null, D(e.translations.group), 1),
|
|
4028
4041
|
u("th", null, D(e.translations.default), 1),
|
|
4029
4042
|
u("th", null, D(e.translations.current_value), 1),
|
|
4030
4043
|
u("th", null, D(e.translations.imported_value), 1)
|
|
4031
|
-
])]), u("tbody", null, [(S(!0), l(i, null, T(M.value, (e, t) => (S(), l(i, { key: t }, [e.has_conflict ? (S(), l("tr",
|
|
4032
|
-
u("td",
|
|
4033
|
-
u("td",
|
|
4034
|
-
u("td",
|
|
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", {
|
|
4035
4048
|
id: "current-" + t + "0",
|
|
4036
4049
|
"onUpdate:modelValue": (e) => M.value[t].checkedCurrent = e,
|
|
4037
4050
|
type: "radio",
|
|
4038
4051
|
class: "form-check-input me-1",
|
|
4039
4052
|
value: !0,
|
|
4040
4053
|
name: "current-" + t
|
|
4041
|
-
}, null, 8,
|
|
4054
|
+
}, null, 8, Zs), [[j, M.value[t].checkedCurrent]]), u("label", {
|
|
4042
4055
|
class: "form-check-label",
|
|
4043
4056
|
for: "current-" + t + "0"
|
|
4044
|
-
}, D(e.current_value), 9,
|
|
4045
|
-
u("td",
|
|
4057
|
+
}, D(e.current_value), 9, Qs)]),
|
|
4058
|
+
u("td", $s, [I(u("input", {
|
|
4046
4059
|
id: "current-" + t + "1",
|
|
4047
4060
|
"onUpdate:modelValue": (e) => M.value[t].checkedCurrent = e,
|
|
4048
4061
|
type: "radio",
|
|
4049
4062
|
class: "form-check-input me-1",
|
|
4050
4063
|
value: !1,
|
|
4051
4064
|
name: "current-" + t
|
|
4052
|
-
}, null, 8,
|
|
4065
|
+
}, null, 8, ec), [[j, M.value[t].checkedCurrent]]), u("label", {
|
|
4053
4066
|
class: "form-check-label",
|
|
4054
4067
|
for: "current-" + t + "1"
|
|
4055
|
-
}, D(e[g.value.toLowerCase()]), 9,
|
|
4068
|
+
}, D(e[g.value.toLowerCase()]), 9, tc)])
|
|
4056
4069
|
])) : c("", !0)], 64))), 128))])])], 512), [[N, b.value === 2]]),
|
|
4057
|
-
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]])
|
|
4058
4071
|
]),
|
|
4059
|
-
u("div",
|
|
4072
|
+
u("div", rc, [F.value ? c("", !0) : (S(), l("button", {
|
|
4060
4073
|
key: 0,
|
|
4061
4074
|
type: "button",
|
|
4062
4075
|
class: "btn btn-primary",
|
|
@@ -4068,10 +4081,10 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4068
4081
|
onClick: B
|
|
4069
4082
|
})) : c("", !0)], 64));
|
|
4070
4083
|
}
|
|
4071
|
-
},
|
|
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 = {
|
|
4072
4085
|
class: "btn btn-primary",
|
|
4073
4086
|
type: "submit"
|
|
4074
|
-
},
|
|
4087
|
+
}, pc = {
|
|
4075
4088
|
__name: "TranslationExportModal",
|
|
4076
4089
|
props: {
|
|
4077
4090
|
show: {
|
|
@@ -4111,13 +4124,13 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4111
4124
|
return (t, n) => (S(), l(i, null, [u("div", {
|
|
4112
4125
|
class: _(["modal fade", { show: e.show }]),
|
|
4113
4126
|
style: y({ display: e.show ? "block" : "none" })
|
|
4114
|
-
}, [u("div",
|
|
4127
|
+
}, [u("div", ac, [u("div", oc, [u("div", sc, [u("h4", cc, D(e.translations.export), 1), u("button", {
|
|
4115
4128
|
type: "button",
|
|
4116
4129
|
class: "btn-close",
|
|
4117
4130
|
onClick: n[0] ||= (e) => t.$emit("close")
|
|
4118
|
-
})]), u("div",
|
|
4119
|
-
u("p",
|
|
4120
|
-
f(
|
|
4131
|
+
})]), u("div", lc, [u("form", { onSubmit: R(m, ["prevent"]) }, [
|
|
4132
|
+
u("p", uc, D(e.translations.export_notice), 1),
|
|
4133
|
+
f(yi, {
|
|
4121
4134
|
modelValue: p.value,
|
|
4122
4135
|
"onUpdate:modelValue": n[1] ||= (e) => p.value = e,
|
|
4123
4136
|
name: "languagesToExport",
|
|
@@ -4132,17 +4145,17 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4132
4145
|
"options",
|
|
4133
4146
|
"placeholder"
|
|
4134
4147
|
]),
|
|
4135
|
-
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)])])
|
|
4136
4149
|
], 32)])])])], 6), e.show ? (S(), l("div", {
|
|
4137
4150
|
key: 0,
|
|
4138
4151
|
class: "modal-backdrop fade show",
|
|
4139
4152
|
onClick: n[2] ||= (e) => t.$emit("close")
|
|
4140
4153
|
})) : c("", !0)], 64));
|
|
4141
4154
|
}
|
|
4142
|
-
},
|
|
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 = {
|
|
4143
4156
|
key: 0,
|
|
4144
4157
|
class: "no-items-found"
|
|
4145
|
-
},
|
|
4158
|
+
}, Ec = {
|
|
4146
4159
|
__name: "TranslationListing",
|
|
4147
4160
|
props: {
|
|
4148
4161
|
url: {
|
|
@@ -4179,7 +4192,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4179
4192
|
}
|
|
4180
4193
|
},
|
|
4181
4194
|
setup(e) {
|
|
4182
|
-
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);
|
|
4183
4196
|
g.group = null;
|
|
4184
4197
|
function I(e) {
|
|
4185
4198
|
g.group = e ?? null, b(!0);
|
|
@@ -4195,8 +4208,8 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4195
4208
|
z.value = !1, G();
|
|
4196
4209
|
});
|
|
4197
4210
|
}
|
|
4198
|
-
return (t, n) => (S(), l("div",
|
|
4199
|
-
f(
|
|
4211
|
+
return (t, n) => (S(), l("div", mc, [u("div", hc, [
|
|
4212
|
+
f(Ts, {
|
|
4200
4213
|
show: j.value,
|
|
4201
4214
|
item: P.value,
|
|
4202
4215
|
locales: A.value,
|
|
@@ -4212,7 +4225,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4212
4225
|
"translations",
|
|
4213
4226
|
"onSaved"
|
|
4214
4227
|
]),
|
|
4215
|
-
f(
|
|
4228
|
+
f(ic, {
|
|
4216
4229
|
show: M.value,
|
|
4217
4230
|
locales: A.value,
|
|
4218
4231
|
url: e.url,
|
|
@@ -4228,7 +4241,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4228
4241
|
"translations",
|
|
4229
4242
|
"onImported"
|
|
4230
4243
|
]),
|
|
4231
|
-
f(
|
|
4244
|
+
f(pc, {
|
|
4232
4245
|
show: N.value,
|
|
4233
4246
|
locales: A.value,
|
|
4234
4247
|
url: e.url,
|
|
@@ -4240,7 +4253,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4240
4253
|
"url",
|
|
4241
4254
|
"translations"
|
|
4242
4255
|
]),
|
|
4243
|
-
u("div",
|
|
4256
|
+
u("div", gc, [u("div", _c, [
|
|
4244
4257
|
n[9] ||= u("i", { class: "fa fa-align-justify" }, null, -1),
|
|
4245
4258
|
d(" " + D(e.translations.listing_title) + " ", 1),
|
|
4246
4259
|
u("a", {
|
|
@@ -4266,7 +4279,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4266
4279
|
ref: r,
|
|
4267
4280
|
class: "card-body"
|
|
4268
4281
|
}, [
|
|
4269
|
-
u("div",
|
|
4282
|
+
u("div", vc, [u("div", yc, [f(Nn, {
|
|
4270
4283
|
search: k(v),
|
|
4271
4284
|
"onUpdate:search": n[5] ||= (e) => h(v) ? v.value = e : null,
|
|
4272
4285
|
"filter-fn": k(x),
|
|
@@ -4294,11 +4307,11 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4294
4307
|
"search",
|
|
4295
4308
|
"filter-fn",
|
|
4296
4309
|
"translations"
|
|
4297
|
-
])]), u("div",
|
|
4310
|
+
])]), u("div", bc, [f(Fn, {
|
|
4298
4311
|
modelValue: k(p).state.per_page,
|
|
4299
4312
|
"onUpdate:modelValue": n[6] ||= (e) => k(p).state.per_page = e
|
|
4300
4313
|
}, null, 8, ["modelValue"])])]),
|
|
4301
|
-
u("div",
|
|
4314
|
+
u("div", xc, [u("table", Sc, [u("thead", null, [u("tr", null, [
|
|
4302
4315
|
f(Q, {
|
|
4303
4316
|
column: "group",
|
|
4304
4317
|
"order-by": k(m),
|
|
@@ -4337,16 +4350,16 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4337
4350
|
u("td", null, D(t.group), 1),
|
|
4338
4351
|
u("td", null, D(t.key), 1),
|
|
4339
4352
|
u("td", null, D(t.text?.[e.userLocale]), 1),
|
|
4340
|
-
k(a)(4) ? (S(), l("td",
|
|
4353
|
+
k(a)(4) ? (S(), l("td", Cc, D(k(K)(t.created_at)), 1)) : c("", !0),
|
|
4341
4354
|
u("td", null, [u("a", {
|
|
4342
4355
|
class: "btn btn-sm btn-info",
|
|
4343
4356
|
href: "#",
|
|
4344
4357
|
title: e.translations.edit_btn,
|
|
4345
4358
|
role: "button",
|
|
4346
4359
|
onClick: R((e) => L(t), ["prevent"])
|
|
4347
|
-
}, [...n[11] ||= [u("i", { class: "fa fa-edit" }, null, -1)]], 8,
|
|
4360
|
+
}, [...n[11] ||= [u("i", { class: "fa fa-edit" }, null, -1)]], 8, wc)])
|
|
4348
4361
|
]))), 128))])])]),
|
|
4349
|
-
f(
|
|
4362
|
+
f(kn, {
|
|
4350
4363
|
pagination: k(p).state,
|
|
4351
4364
|
options: k(p).options,
|
|
4352
4365
|
translations: {
|
|
@@ -4363,7 +4376,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4363
4376
|
"onPageChange",
|
|
4364
4377
|
"onPerPageChange"
|
|
4365
4378
|
]),
|
|
4366
|
-
k(y)?.length ? c("", !0) : (S(), l("div",
|
|
4379
|
+
k(y)?.length ? c("", !0) : (S(), l("div", Tc, [
|
|
4367
4380
|
n[12] ||= u("i", { class: "fa fa-magnifying-glass" }, null, -1),
|
|
4368
4381
|
u("h3", null, D(e.translations.no_items), 1),
|
|
4369
4382
|
u("p", null, D(e.translations.try_changing_items), 1),
|
|
@@ -4377,7 +4390,7 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4377
4390
|
], 512)])
|
|
4378
4391
|
])]));
|
|
4379
4392
|
}
|
|
4380
|
-
},
|
|
4393
|
+
}, Dc = {
|
|
4381
4394
|
url: "",
|
|
4382
4395
|
collection: "",
|
|
4383
4396
|
maxNumberOfFiles: 1,
|
|
@@ -4385,16 +4398,16 @@ var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
|
4385
4398
|
acceptedFileTypes: void 0,
|
|
4386
4399
|
thumbnailWidth: 200,
|
|
4387
4400
|
uploadedMedia: []
|
|
4388
|
-
},
|
|
4401
|
+
}, Oc = {
|
|
4389
4402
|
type: Object,
|
|
4390
|
-
default: () => ({ ...
|
|
4403
|
+
default: () => ({ ...Dc })
|
|
4391
4404
|
};
|
|
4392
4405
|
//#endregion
|
|
4393
4406
|
//#region src/ui/index.js
|
|
4394
|
-
function
|
|
4395
|
-
document.readyState === "loading" ? document.addEventListener("DOMContentLoaded",
|
|
4407
|
+
function kc() {
|
|
4408
|
+
document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", Ac) : Ac();
|
|
4396
4409
|
}
|
|
4397
|
-
function
|
|
4410
|
+
function Ac() {
|
|
4398
4411
|
let e = document.getElementById("sidebar"), t = null;
|
|
4399
4412
|
document.querySelectorAll(".btn-spinner").forEach((e) => {
|
|
4400
4413
|
e.addEventListener("click", (t) => {
|
|
@@ -4434,4 +4447,4 @@ function Ec() {
|
|
|
4434
4447
|
}), e && window.innerWidth < 992 && e.classList.add("hide");
|
|
4435
4448
|
}
|
|
4436
4449
|
//#endregion
|
|
4437
|
-
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 };
|