@dejwcake/craftable 2.0.1 → 2.1.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/README.md +26 -8
- package/dist/{buildMatchPatternFn-T5KjFTBQ.cjs → buildMatchPatternFn-BoUDNAZO.cjs} +1 -1
- package/dist/{cs-MAoetkhe.cjs → cs-DHH5l7p2.cjs} +1 -1
- package/dist/{cs-B5QMxFrl.js → cs-ny3teKR0.js} +1 -1
- package/dist/{de-BoVLAn6U.cjs → de-CaI6RCQF.cjs} +1 -1
- package/dist/{de-BlQ2ZKmc.js → de-DRctuPTq.js} +2 -2
- package/dist/{es-DBHDeXHI.cjs → es-Bh6-Auhy.cjs} +1 -1
- package/dist/{es-YEqfkBY2.js → es-BufozPLe.js} +1 -1
- package/dist/{fr-B7MHC2AN.js → fr-C4Eic4QK.js} +1 -1
- package/dist/{fr-DLs3QoNB.cjs → fr-HvCyL10T.cjs} +1 -1
- package/dist/{hu-reoJgNxD.js → hu-Da01tbQE.js} +1 -1
- package/dist/{hu-BKZPI9jH.cjs → hu-Df0BlRqD.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1587 -1113
- package/dist/isSameWeek-B3WWLbDx.cjs +1 -0
- package/dist/{isSameWeek-CC6GX_zp.js → isSameWeek-CIK6QT5b.js} +1 -1
- package/dist/{pl-B5A0Rjp7.js → pl-BvOLP6Vq.js} +2 -2
- package/dist/{pl-BMyrOO-Q.cjs → pl-H11OiJ78.cjs} +1 -1
- package/dist/{sk-Btro3W4S.js → sk-Cee4uHgG.js} +2 -2
- package/dist/{sk-B7JF2MoV.cjs → sk-Cpa7Wj75.cjs} +1 -1
- package/package.json +12 -7
- package/src/components/ReadOnlySwitch.vue +23 -0
- package/src/components/show/ShowRow.vue +17 -0
- package/src/index.js +3 -0
- package/src/utils/dateFnsLocale.js +1 -1
- package/dist/en-US-BLvEnhs4.js +0 -443
- package/dist/en-US-Dz8vkDZ_.cjs +0 -1
- package/dist/en-US-X9gX759i.cjs +0 -1
- package/dist/isSameWeek-Mctj6Tdj.cjs +0 -1
- /package/dist/{buildMatchPatternFn-BV4I8r8j.js → buildMatchPatternFn-DQMsT4gp.js} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -1,145 +1,573 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Fragment as
|
|
3
|
-
import { useForm as
|
|
4
|
-
import { notify as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { useCookies as
|
|
10
|
-
import { useDropzone as
|
|
11
|
-
import { EditorContent as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import { Table as
|
|
15
|
-
import { Alignment as
|
|
16
|
-
import { Ckeditor as
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "./buildMatchPatternFn-DQMsT4gp.js";
|
|
2
|
+
import { Fragment as i, Teleport as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, getCurrentInstance as p, guardReactiveProps as m, isRef as h, mergeProps as g, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onBeforeUnmount as b, onMounted as x, openBlock as S, reactive as C, ref as w, renderList as T, renderSlot as E, toDisplayString as D, toRaw as O, unref as k, vModelCheckbox as A, vModelRadio as j, vModelText as M, vShow as N, watch as P, withCtx as F, withDirectives as I, withKeys as L, withModifiers as R } from "vue";
|
|
3
|
+
import { useForm as z, validate as B } from "vee-validate";
|
|
4
|
+
import { notify as V } from "@kyvg/vue3-notification";
|
|
5
|
+
import H from "dayjs";
|
|
6
|
+
import ee from "dayjs/plugin/customParseFormat.js";
|
|
7
|
+
import te from "dayjs/plugin/utc.js";
|
|
8
|
+
import ne from "dayjs/plugin/timezone.js";
|
|
9
|
+
import { useCookies as re } from "vue3-cookies";
|
|
10
|
+
import { useDropzone as ie } from "vue3-dropzone";
|
|
11
|
+
import { EditorContent as ae, useEditor as oe } from "@tiptap/vue-3";
|
|
12
|
+
import se from "@tiptap/starter-kit";
|
|
13
|
+
import ce from "@tiptap/extension-image";
|
|
14
|
+
import { Table as le, TableCell as ue, TableHeader as de, TableRow as fe } from "@tiptap/extension-table";
|
|
15
|
+
import { Alignment as pe, AutoLink as me, BlockQuote as he, Bold as ge, ClassicEditor as _e, Code as ve, CodeBlock as ye, Essentials as be, FileRepository as xe, GeneralHtmlSupport as Se, Heading as Ce, HorizontalLine as we, Image as Te, ImageCaption as Ee, ImageInsert as De, ImageInsertViaUrl as Oe, ImageResize as ke, ImageStyle as Ae, ImageToolbar as je, ImageUpload as Me, Indent as Ne, Italic as Pe, Link as Fe, List as Ie, Paragraph as Le, SourceEditing as Re, Strikethrough as ze, Table as Be, TableToolbar as Ve, Underline as He, Undo as Ue } from "ckeditor5";
|
|
16
|
+
import { Ckeditor as We } from "@ckeditor/ckeditor5-vue";
|
|
17
17
|
import "ckeditor5/ckeditor5.css";
|
|
18
|
-
import
|
|
19
|
-
import { VueDatePicker as
|
|
20
|
-
import
|
|
18
|
+
import Ge from "vue3-popper";
|
|
19
|
+
import { VueDatePicker as Ke } from "@vuepic/vue-datepicker";
|
|
20
|
+
import U from "vue-multiselect";
|
|
21
21
|
//#region src/utils/notify.js
|
|
22
|
-
var
|
|
23
|
-
function
|
|
24
|
-
|
|
22
|
+
var qe = "Success!", Je = "Operation succeeded.", Ye = "Error!", Xe = "An error has occurred.";
|
|
23
|
+
function W(e) {
|
|
24
|
+
V({
|
|
25
25
|
type: "success",
|
|
26
|
-
title:
|
|
27
|
-
text: e ||
|
|
26
|
+
title: qe,
|
|
27
|
+
text: e || Je
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
|
|
30
|
+
function G(e) {
|
|
31
|
+
V({
|
|
32
32
|
type: "error",
|
|
33
|
-
title:
|
|
34
|
-
text: e ||
|
|
33
|
+
title: Ye,
|
|
34
|
+
text: e || Xe
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
|
-
|
|
38
|
-
function
|
|
39
|
-
let n =
|
|
37
|
+
H.extend(ee), H.extend(te), H.extend(ne);
|
|
38
|
+
function K(e, t = "DD.MM.YYYY") {
|
|
39
|
+
let n = H(e);
|
|
40
40
|
return n.isValid() ? n.format(t) : "";
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
let n =
|
|
42
|
+
function q(e, t = "DD.MM.YYYY HH:mm") {
|
|
43
|
+
let n = H(e);
|
|
44
44
|
return n.isValid() ? n.format(t) : "";
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
let n =
|
|
46
|
+
function J(e, t = "HH:mm") {
|
|
47
|
+
let n = H("2000-01-01 " + e);
|
|
48
48
|
return n.isValid() ? n.format(t) : "";
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
return
|
|
50
|
+
function Ze(e = "UTC", t = "YYYY-MM-DD HH:mm:ss") {
|
|
51
|
+
return H().tz(e).format(t);
|
|
52
52
|
}
|
|
53
53
|
//#endregion
|
|
54
|
-
//#region
|
|
55
|
-
var
|
|
56
|
-
|
|
57
|
-
|
|
54
|
+
//#region node_modules/date-fns/locale/en-US/_lib/formatDistance.js
|
|
55
|
+
var Qe = {
|
|
56
|
+
lessThanXSeconds: {
|
|
57
|
+
one: "less than a second",
|
|
58
|
+
other: "less than {{count}} seconds"
|
|
59
|
+
},
|
|
60
|
+
xSeconds: {
|
|
61
|
+
one: "1 second",
|
|
62
|
+
other: "{{count}} seconds"
|
|
63
|
+
},
|
|
64
|
+
halfAMinute: "half a minute",
|
|
65
|
+
lessThanXMinutes: {
|
|
66
|
+
one: "less than a minute",
|
|
67
|
+
other: "less than {{count}} minutes"
|
|
68
|
+
},
|
|
69
|
+
xMinutes: {
|
|
70
|
+
one: "1 minute",
|
|
71
|
+
other: "{{count}} minutes"
|
|
72
|
+
},
|
|
73
|
+
aboutXHours: {
|
|
74
|
+
one: "about 1 hour",
|
|
75
|
+
other: "about {{count}} hours"
|
|
76
|
+
},
|
|
77
|
+
xHours: {
|
|
78
|
+
one: "1 hour",
|
|
79
|
+
other: "{{count}} hours"
|
|
80
|
+
},
|
|
81
|
+
xDays: {
|
|
82
|
+
one: "1 day",
|
|
83
|
+
other: "{{count}} days"
|
|
84
|
+
},
|
|
85
|
+
aboutXWeeks: {
|
|
86
|
+
one: "about 1 week",
|
|
87
|
+
other: "about {{count}} weeks"
|
|
88
|
+
},
|
|
89
|
+
xWeeks: {
|
|
90
|
+
one: "1 week",
|
|
91
|
+
other: "{{count}} weeks"
|
|
92
|
+
},
|
|
93
|
+
aboutXMonths: {
|
|
94
|
+
one: "about 1 month",
|
|
95
|
+
other: "about {{count}} months"
|
|
96
|
+
},
|
|
97
|
+
xMonths: {
|
|
98
|
+
one: "1 month",
|
|
99
|
+
other: "{{count}} months"
|
|
100
|
+
},
|
|
101
|
+
aboutXYears: {
|
|
102
|
+
one: "about 1 year",
|
|
103
|
+
other: "about {{count}} years"
|
|
104
|
+
},
|
|
105
|
+
xYears: {
|
|
106
|
+
one: "1 year",
|
|
107
|
+
other: "{{count}} years"
|
|
108
|
+
},
|
|
109
|
+
overXYears: {
|
|
110
|
+
one: "over 1 year",
|
|
111
|
+
other: "over {{count}} years"
|
|
112
|
+
},
|
|
113
|
+
almostXYears: {
|
|
114
|
+
one: "almost 1 year",
|
|
115
|
+
other: "almost {{count}} years"
|
|
116
|
+
}
|
|
117
|
+
}, $e = (e, t, n) => {
|
|
118
|
+
let r, i = Qe[e];
|
|
119
|
+
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
|
+
}, et = {
|
|
121
|
+
date: e({
|
|
122
|
+
formats: {
|
|
123
|
+
full: "EEEE, MMMM do, y",
|
|
124
|
+
long: "MMMM do, y",
|
|
125
|
+
medium: "MMM d, y",
|
|
126
|
+
short: "MM/dd/yyyy"
|
|
127
|
+
},
|
|
128
|
+
defaultWidth: "full"
|
|
129
|
+
}),
|
|
130
|
+
time: e({
|
|
131
|
+
formats: {
|
|
132
|
+
full: "h:mm:ss a zzzz",
|
|
133
|
+
long: "h:mm:ss a z",
|
|
134
|
+
medium: "h:mm:ss a",
|
|
135
|
+
short: "h:mm a"
|
|
136
|
+
},
|
|
137
|
+
defaultWidth: "full"
|
|
138
|
+
}),
|
|
139
|
+
dateTime: e({
|
|
140
|
+
formats: {
|
|
141
|
+
full: "{{date}} 'at' {{time}}",
|
|
142
|
+
long: "{{date}} 'at' {{time}}",
|
|
143
|
+
medium: "{{date}}, {{time}}",
|
|
144
|
+
short: "{{date}}, {{time}}"
|
|
145
|
+
},
|
|
146
|
+
defaultWidth: "full"
|
|
147
|
+
})
|
|
148
|
+
}, tt = {
|
|
149
|
+
lastWeek: "'last' eeee 'at' p",
|
|
150
|
+
yesterday: "'yesterday at' p",
|
|
151
|
+
today: "'today at' p",
|
|
152
|
+
tomorrow: "'tomorrow at' p",
|
|
153
|
+
nextWeek: "eeee 'at' p",
|
|
154
|
+
other: "P"
|
|
155
|
+
}, nt = {
|
|
156
|
+
code: "en-US",
|
|
157
|
+
formatDistance: $e,
|
|
158
|
+
formatLong: et,
|
|
159
|
+
formatRelative: (e, t, n, r) => tt[e],
|
|
160
|
+
localize: {
|
|
161
|
+
ordinalNumber: (e, t) => {
|
|
162
|
+
let n = Number(e), r = n % 100;
|
|
163
|
+
if (r > 20 || r < 10) switch (r % 10) {
|
|
164
|
+
case 1: return n + "st";
|
|
165
|
+
case 2: return n + "nd";
|
|
166
|
+
case 3: return n + "rd";
|
|
167
|
+
}
|
|
168
|
+
return n + "th";
|
|
169
|
+
},
|
|
170
|
+
era: n({
|
|
171
|
+
values: {
|
|
172
|
+
narrow: ["B", "A"],
|
|
173
|
+
abbreviated: ["BC", "AD"],
|
|
174
|
+
wide: ["Before Christ", "Anno Domini"]
|
|
175
|
+
},
|
|
176
|
+
defaultWidth: "wide"
|
|
177
|
+
}),
|
|
178
|
+
quarter: n({
|
|
179
|
+
values: {
|
|
180
|
+
narrow: [
|
|
181
|
+
"1",
|
|
182
|
+
"2",
|
|
183
|
+
"3",
|
|
184
|
+
"4"
|
|
185
|
+
],
|
|
186
|
+
abbreviated: [
|
|
187
|
+
"Q1",
|
|
188
|
+
"Q2",
|
|
189
|
+
"Q3",
|
|
190
|
+
"Q4"
|
|
191
|
+
],
|
|
192
|
+
wide: [
|
|
193
|
+
"1st quarter",
|
|
194
|
+
"2nd quarter",
|
|
195
|
+
"3rd quarter",
|
|
196
|
+
"4th quarter"
|
|
197
|
+
]
|
|
198
|
+
},
|
|
199
|
+
defaultWidth: "wide",
|
|
200
|
+
argumentCallback: (e) => e - 1
|
|
201
|
+
}),
|
|
202
|
+
month: n({
|
|
203
|
+
values: {
|
|
204
|
+
narrow: [
|
|
205
|
+
"J",
|
|
206
|
+
"F",
|
|
207
|
+
"M",
|
|
208
|
+
"A",
|
|
209
|
+
"M",
|
|
210
|
+
"J",
|
|
211
|
+
"J",
|
|
212
|
+
"A",
|
|
213
|
+
"S",
|
|
214
|
+
"O",
|
|
215
|
+
"N",
|
|
216
|
+
"D"
|
|
217
|
+
],
|
|
218
|
+
abbreviated: [
|
|
219
|
+
"Jan",
|
|
220
|
+
"Feb",
|
|
221
|
+
"Mar",
|
|
222
|
+
"Apr",
|
|
223
|
+
"May",
|
|
224
|
+
"Jun",
|
|
225
|
+
"Jul",
|
|
226
|
+
"Aug",
|
|
227
|
+
"Sep",
|
|
228
|
+
"Oct",
|
|
229
|
+
"Nov",
|
|
230
|
+
"Dec"
|
|
231
|
+
],
|
|
232
|
+
wide: [
|
|
233
|
+
"January",
|
|
234
|
+
"February",
|
|
235
|
+
"March",
|
|
236
|
+
"April",
|
|
237
|
+
"May",
|
|
238
|
+
"June",
|
|
239
|
+
"July",
|
|
240
|
+
"August",
|
|
241
|
+
"September",
|
|
242
|
+
"October",
|
|
243
|
+
"November",
|
|
244
|
+
"December"
|
|
245
|
+
]
|
|
246
|
+
},
|
|
247
|
+
defaultWidth: "wide"
|
|
248
|
+
}),
|
|
249
|
+
day: n({
|
|
250
|
+
values: {
|
|
251
|
+
narrow: [
|
|
252
|
+
"S",
|
|
253
|
+
"M",
|
|
254
|
+
"T",
|
|
255
|
+
"W",
|
|
256
|
+
"T",
|
|
257
|
+
"F",
|
|
258
|
+
"S"
|
|
259
|
+
],
|
|
260
|
+
short: [
|
|
261
|
+
"Su",
|
|
262
|
+
"Mo",
|
|
263
|
+
"Tu",
|
|
264
|
+
"We",
|
|
265
|
+
"Th",
|
|
266
|
+
"Fr",
|
|
267
|
+
"Sa"
|
|
268
|
+
],
|
|
269
|
+
abbreviated: [
|
|
270
|
+
"Sun",
|
|
271
|
+
"Mon",
|
|
272
|
+
"Tue",
|
|
273
|
+
"Wed",
|
|
274
|
+
"Thu",
|
|
275
|
+
"Fri",
|
|
276
|
+
"Sat"
|
|
277
|
+
],
|
|
278
|
+
wide: [
|
|
279
|
+
"Sunday",
|
|
280
|
+
"Monday",
|
|
281
|
+
"Tuesday",
|
|
282
|
+
"Wednesday",
|
|
283
|
+
"Thursday",
|
|
284
|
+
"Friday",
|
|
285
|
+
"Saturday"
|
|
286
|
+
]
|
|
287
|
+
},
|
|
288
|
+
defaultWidth: "wide"
|
|
289
|
+
}),
|
|
290
|
+
dayPeriod: n({
|
|
291
|
+
values: {
|
|
292
|
+
narrow: {
|
|
293
|
+
am: "a",
|
|
294
|
+
pm: "p",
|
|
295
|
+
midnight: "mi",
|
|
296
|
+
noon: "n",
|
|
297
|
+
morning: "morning",
|
|
298
|
+
afternoon: "afternoon",
|
|
299
|
+
evening: "evening",
|
|
300
|
+
night: "night"
|
|
301
|
+
},
|
|
302
|
+
abbreviated: {
|
|
303
|
+
am: "AM",
|
|
304
|
+
pm: "PM",
|
|
305
|
+
midnight: "midnight",
|
|
306
|
+
noon: "noon",
|
|
307
|
+
morning: "morning",
|
|
308
|
+
afternoon: "afternoon",
|
|
309
|
+
evening: "evening",
|
|
310
|
+
night: "night"
|
|
311
|
+
},
|
|
312
|
+
wide: {
|
|
313
|
+
am: "a.m.",
|
|
314
|
+
pm: "p.m.",
|
|
315
|
+
midnight: "midnight",
|
|
316
|
+
noon: "noon",
|
|
317
|
+
morning: "morning",
|
|
318
|
+
afternoon: "afternoon",
|
|
319
|
+
evening: "evening",
|
|
320
|
+
night: "night"
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
defaultWidth: "wide",
|
|
324
|
+
formattingValues: {
|
|
325
|
+
narrow: {
|
|
326
|
+
am: "a",
|
|
327
|
+
pm: "p",
|
|
328
|
+
midnight: "mi",
|
|
329
|
+
noon: "n",
|
|
330
|
+
morning: "in the morning",
|
|
331
|
+
afternoon: "in the afternoon",
|
|
332
|
+
evening: "in the evening",
|
|
333
|
+
night: "at night"
|
|
334
|
+
},
|
|
335
|
+
abbreviated: {
|
|
336
|
+
am: "AM",
|
|
337
|
+
pm: "PM",
|
|
338
|
+
midnight: "midnight",
|
|
339
|
+
noon: "noon",
|
|
340
|
+
morning: "in the morning",
|
|
341
|
+
afternoon: "in the afternoon",
|
|
342
|
+
evening: "in the evening",
|
|
343
|
+
night: "at night"
|
|
344
|
+
},
|
|
345
|
+
wide: {
|
|
346
|
+
am: "a.m.",
|
|
347
|
+
pm: "p.m.",
|
|
348
|
+
midnight: "midnight",
|
|
349
|
+
noon: "noon",
|
|
350
|
+
morning: "in the morning",
|
|
351
|
+
afternoon: "in the afternoon",
|
|
352
|
+
evening: "in the evening",
|
|
353
|
+
night: "at night"
|
|
354
|
+
}
|
|
355
|
+
},
|
|
356
|
+
defaultFormattingWidth: "wide"
|
|
357
|
+
})
|
|
358
|
+
},
|
|
359
|
+
match: {
|
|
360
|
+
ordinalNumber: r({
|
|
361
|
+
matchPattern: /^(\d+)(th|st|nd|rd)?/i,
|
|
362
|
+
parsePattern: /\d+/i,
|
|
363
|
+
valueCallback: (e) => parseInt(e, 10)
|
|
364
|
+
}),
|
|
365
|
+
era: t({
|
|
366
|
+
matchPatterns: {
|
|
367
|
+
narrow: /^(b|a)/i,
|
|
368
|
+
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
369
|
+
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
370
|
+
},
|
|
371
|
+
defaultMatchWidth: "wide",
|
|
372
|
+
parsePatterns: { any: [/^b/i, /^(a|c)/i] },
|
|
373
|
+
defaultParseWidth: "any"
|
|
374
|
+
}),
|
|
375
|
+
quarter: t({
|
|
376
|
+
matchPatterns: {
|
|
377
|
+
narrow: /^[1234]/i,
|
|
378
|
+
abbreviated: /^q[1234]/i,
|
|
379
|
+
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
380
|
+
},
|
|
381
|
+
defaultMatchWidth: "wide",
|
|
382
|
+
parsePatterns: { any: [
|
|
383
|
+
/1/i,
|
|
384
|
+
/2/i,
|
|
385
|
+
/3/i,
|
|
386
|
+
/4/i
|
|
387
|
+
] },
|
|
388
|
+
defaultParseWidth: "any",
|
|
389
|
+
valueCallback: (e) => e + 1
|
|
390
|
+
}),
|
|
391
|
+
month: t({
|
|
392
|
+
matchPatterns: {
|
|
393
|
+
narrow: /^[jfmasond]/i,
|
|
394
|
+
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
395
|
+
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
396
|
+
},
|
|
397
|
+
defaultMatchWidth: "wide",
|
|
398
|
+
parsePatterns: {
|
|
399
|
+
narrow: [
|
|
400
|
+
/^j/i,
|
|
401
|
+
/^f/i,
|
|
402
|
+
/^m/i,
|
|
403
|
+
/^a/i,
|
|
404
|
+
/^m/i,
|
|
405
|
+
/^j/i,
|
|
406
|
+
/^j/i,
|
|
407
|
+
/^a/i,
|
|
408
|
+
/^s/i,
|
|
409
|
+
/^o/i,
|
|
410
|
+
/^n/i,
|
|
411
|
+
/^d/i
|
|
412
|
+
],
|
|
413
|
+
any: [
|
|
414
|
+
/^ja/i,
|
|
415
|
+
/^f/i,
|
|
416
|
+
/^mar/i,
|
|
417
|
+
/^ap/i,
|
|
418
|
+
/^may/i,
|
|
419
|
+
/^jun/i,
|
|
420
|
+
/^jul/i,
|
|
421
|
+
/^au/i,
|
|
422
|
+
/^s/i,
|
|
423
|
+
/^o/i,
|
|
424
|
+
/^n/i,
|
|
425
|
+
/^d/i
|
|
426
|
+
]
|
|
427
|
+
},
|
|
428
|
+
defaultParseWidth: "any"
|
|
429
|
+
}),
|
|
430
|
+
day: t({
|
|
431
|
+
matchPatterns: {
|
|
432
|
+
narrow: /^[smtwf]/i,
|
|
433
|
+
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
434
|
+
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
435
|
+
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
436
|
+
},
|
|
437
|
+
defaultMatchWidth: "wide",
|
|
438
|
+
parsePatterns: {
|
|
439
|
+
narrow: [
|
|
440
|
+
/^s/i,
|
|
441
|
+
/^m/i,
|
|
442
|
+
/^t/i,
|
|
443
|
+
/^w/i,
|
|
444
|
+
/^t/i,
|
|
445
|
+
/^f/i,
|
|
446
|
+
/^s/i
|
|
447
|
+
],
|
|
448
|
+
any: [
|
|
449
|
+
/^su/i,
|
|
450
|
+
/^m/i,
|
|
451
|
+
/^tu/i,
|
|
452
|
+
/^w/i,
|
|
453
|
+
/^th/i,
|
|
454
|
+
/^f/i,
|
|
455
|
+
/^sa/i
|
|
456
|
+
]
|
|
457
|
+
},
|
|
458
|
+
defaultParseWidth: "any"
|
|
459
|
+
}),
|
|
460
|
+
dayPeriod: t({
|
|
461
|
+
matchPatterns: {
|
|
462
|
+
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
463
|
+
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
464
|
+
},
|
|
465
|
+
defaultMatchWidth: "any",
|
|
466
|
+
parsePatterns: { any: {
|
|
467
|
+
am: /^a/i,
|
|
468
|
+
pm: /^p/i,
|
|
469
|
+
midnight: /^mi/i,
|
|
470
|
+
noon: /^no/i,
|
|
471
|
+
morning: /morning/i,
|
|
472
|
+
afternoon: /afternoon/i,
|
|
473
|
+
evening: /evening/i,
|
|
474
|
+
night: /night/i
|
|
475
|
+
} },
|
|
476
|
+
defaultParseWidth: "any"
|
|
477
|
+
})
|
|
478
|
+
},
|
|
479
|
+
options: {
|
|
480
|
+
weekStartsOn: 0,
|
|
481
|
+
firstWeekContainsDate: 1
|
|
482
|
+
}
|
|
483
|
+
}, rt = nt;
|
|
484
|
+
function Y() {
|
|
485
|
+
return rt;
|
|
58
486
|
}
|
|
59
|
-
async function
|
|
487
|
+
async function it() {
|
|
60
488
|
let e = document.documentElement.lang || "en", t = {
|
|
61
|
-
sk: () => import("./sk-
|
|
62
|
-
cs: () => import("./cs-
|
|
63
|
-
en: () =>
|
|
64
|
-
de: () => import("./de-
|
|
65
|
-
fr: () => import("./fr-
|
|
66
|
-
es: () => import("./es-
|
|
67
|
-
pl: () => import("./pl-
|
|
68
|
-
hu: () => import("./hu-
|
|
489
|
+
sk: () => import("./sk-Cee4uHgG.js"),
|
|
490
|
+
cs: () => import("./cs-ny3teKR0.js"),
|
|
491
|
+
en: async () => ({ enUS: nt }),
|
|
492
|
+
de: () => import("./de-DRctuPTq.js"),
|
|
493
|
+
fr: () => import("./fr-C4Eic4QK.js"),
|
|
494
|
+
es: () => import("./es-BufozPLe.js"),
|
|
495
|
+
pl: () => import("./pl-BvOLP6Vq.js"),
|
|
496
|
+
hu: () => import("./hu-Da01tbQE.js")
|
|
69
497
|
}, n = await (t[e] || t.en)();
|
|
70
|
-
|
|
498
|
+
rt = n.default || n[Object.keys(n)[0]];
|
|
71
499
|
}
|
|
72
500
|
//#endregion
|
|
73
501
|
//#region src/composables/useBaseForm.js
|
|
74
|
-
var
|
|
75
|
-
function
|
|
76
|
-
let n =
|
|
502
|
+
var at = window.axios;
|
|
503
|
+
function ot(e, t = {}) {
|
|
504
|
+
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({
|
|
77
505
|
enableTimePicker: !1,
|
|
78
506
|
enableSeconds: !1,
|
|
79
507
|
modelType: "yyyy-MM-dd HH:mm:ss",
|
|
80
508
|
format: "dd.MM.yyyy",
|
|
81
|
-
locale:
|
|
82
|
-
}), h =
|
|
509
|
+
locale: Y()
|
|
510
|
+
}), h = w({
|
|
83
511
|
timePicker: !0,
|
|
84
512
|
enableTimePicker: !0,
|
|
85
513
|
enableSeconds: !1,
|
|
86
514
|
modelType: "HH:mm:ss",
|
|
87
515
|
format: "HH:mm",
|
|
88
|
-
locale:
|
|
89
|
-
}), g =
|
|
516
|
+
locale: Y()
|
|
517
|
+
}), g = w({
|
|
90
518
|
enableTimePicker: !0,
|
|
91
519
|
enableSeconds: !1,
|
|
92
520
|
modelType: "yyyy-MM-dd HH:mm:ss",
|
|
93
521
|
format: "dd.MM.yyyy HH:mm",
|
|
94
|
-
locale:
|
|
95
|
-
}),
|
|
96
|
-
|
|
97
|
-
function
|
|
98
|
-
|
|
522
|
+
locale: Y()
|
|
523
|
+
}), _ = o(() => e.locales || []), v = o(() => e.defaultLocale || (_.value.length > 0 ? _.value[0] : "")), y = o(() => _.value.filter((e) => e !== v.value)), x = o(() => y.value.some((e) => Object.keys(f.value).some((t) => t.endsWith("_" + e) || t.startsWith(e + "_"))));
|
|
524
|
+
_.value.length > 0 && (c.value = v.value);
|
|
525
|
+
function S() {
|
|
526
|
+
u.value = window.innerWidth < (e.responsiveBreakpoint || 850);
|
|
99
527
|
}
|
|
100
|
-
window.addEventListener("resize",
|
|
101
|
-
window.removeEventListener("resize",
|
|
528
|
+
window.addEventListener("resize", S), b(() => {
|
|
529
|
+
window.removeEventListener("resize", S);
|
|
102
530
|
});
|
|
103
|
-
function
|
|
531
|
+
function C() {
|
|
104
532
|
let e = n?.proxy?.$refs || {};
|
|
105
|
-
return
|
|
106
|
-
|
|
533
|
+
return a.value && a.value.forEach((t) => {
|
|
534
|
+
r.value[t] && console.warn("MediaUploader warning: Media input must have a unique name, '" + t + "' is already defined in regular inputs.");
|
|
107
535
|
let n = e[t + "_uploader"];
|
|
108
536
|
if (n) {
|
|
109
537
|
let e = Array.isArray(n) ? n[0] : n;
|
|
110
|
-
e && typeof e.getFiles == "function" && (
|
|
538
|
+
e && typeof e.getFiles == "function" && (r.value[t] = e.getFiles());
|
|
111
539
|
}
|
|
112
|
-
}),
|
|
540
|
+
}), r.value.wysiwygMedia = i.value, typeof t.transformData == "function" ? t.transformData({ ...r.value }) : r.value;
|
|
113
541
|
}
|
|
114
542
|
async function T() {
|
|
115
543
|
if (t.validationSchema) {
|
|
116
544
|
let e = {};
|
|
117
|
-
for (let [n,
|
|
118
|
-
let t = await
|
|
545
|
+
for (let [n, i] of Object.entries(t.validationSchema)) {
|
|
546
|
+
let t = await B(r.value[n], i, {
|
|
119
547
|
name: n,
|
|
120
|
-
values:
|
|
548
|
+
values: r.value
|
|
121
549
|
});
|
|
122
550
|
t.valid || (e[n] = t.errors[0]);
|
|
123
551
|
}
|
|
124
552
|
let n = {};
|
|
125
553
|
for (let r of Object.keys(t.validationSchema)) n[r] = e[r] || void 0;
|
|
126
|
-
if (
|
|
554
|
+
if (d(n), Object.keys(e).length > 0) return G("The form contains invalid fields."), !1;
|
|
127
555
|
}
|
|
128
556
|
l.value = !0;
|
|
129
|
-
let n =
|
|
557
|
+
let n = C();
|
|
130
558
|
if (!e.sendEmptyLocales && e.sendEmptyLocales !== void 0) {
|
|
131
559
|
let e = {};
|
|
132
|
-
for (let [t, r] of Object.entries(n)) (!
|
|
560
|
+
for (let [t, r] of Object.entries(n)) (!_.value.includes(t) || r && Object.keys(r).length > 0) && (e[t] = r);
|
|
133
561
|
n = e;
|
|
134
562
|
}
|
|
135
|
-
|
|
563
|
+
at.post(e.action, n).then((e) => {
|
|
136
564
|
E(e.data);
|
|
137
565
|
}).catch((e) => {
|
|
138
566
|
D(e.response?.data || {});
|
|
139
567
|
});
|
|
140
568
|
}
|
|
141
569
|
function E(e) {
|
|
142
|
-
l.value = !1, e.message &&
|
|
570
|
+
l.value = !1, e.message && W(e.message), e.redirect && (e.message ? setTimeout(() => window.location.replace(e.redirect), 2e3) : window.location.replace(e.redirect));
|
|
143
571
|
}
|
|
144
572
|
function D(e) {
|
|
145
573
|
if (l.value = !1, e.errors !== void 0) {
|
|
@@ -147,18 +575,18 @@ function $e(e, t = {}) {
|
|
|
147
575
|
Object.keys(e.errors).forEach((n) => {
|
|
148
576
|
let r = n.split(".", 2);
|
|
149
577
|
r.length > 1 ? t[r[0] + "_" + r[1]] = e.errors[n][0] : t[n] = e.errors[n][0];
|
|
150
|
-
}),
|
|
578
|
+
}), d(t), e.message === void 0 && G("The form contains invalid fields.");
|
|
151
579
|
}
|
|
152
|
-
e.message !== void 0 &&
|
|
580
|
+
e.message !== void 0 && G(e.message);
|
|
153
581
|
}
|
|
154
582
|
function O() {
|
|
155
583
|
let e = {};
|
|
156
|
-
return
|
|
584
|
+
return _.value.forEach((t) => {
|
|
157
585
|
e[t] = null;
|
|
158
586
|
}), e;
|
|
159
587
|
}
|
|
160
588
|
function k() {
|
|
161
|
-
s.value = !0, c.value =
|
|
589
|
+
s.value = !0, c.value = y.value[0];
|
|
162
590
|
let e = document.querySelector(".container-xl");
|
|
163
591
|
e && e.classList.add("width-auto");
|
|
164
592
|
}
|
|
@@ -168,25 +596,25 @@ function $e(e, t = {}) {
|
|
|
168
596
|
e && e.classList.remove("width-auto");
|
|
169
597
|
}
|
|
170
598
|
function j(e) {
|
|
171
|
-
return
|
|
599
|
+
return u.value ? c.value === e : v.value === e || s.value && c.value === e;
|
|
172
600
|
}
|
|
173
601
|
return {
|
|
174
|
-
form:
|
|
175
|
-
wysiwygMedia:
|
|
176
|
-
mediaCollections:
|
|
602
|
+
form: r,
|
|
603
|
+
wysiwygMedia: i,
|
|
604
|
+
mediaCollections: a,
|
|
177
605
|
isFormLocalized: s,
|
|
178
606
|
currentLocale: c,
|
|
179
607
|
submitting: l,
|
|
180
|
-
onSmallScreen:
|
|
181
|
-
errors:
|
|
608
|
+
onSmallScreen: u,
|
|
609
|
+
errors: f,
|
|
182
610
|
datePickerConfig: m,
|
|
183
611
|
timePickerConfig: h,
|
|
184
612
|
datetimePickerConfig: g,
|
|
185
|
-
locales:
|
|
186
|
-
defaultLocale:
|
|
187
|
-
otherLocales:
|
|
188
|
-
showLocalizedValidationError:
|
|
189
|
-
getPostData:
|
|
613
|
+
locales: _,
|
|
614
|
+
defaultLocale: v,
|
|
615
|
+
otherLocales: y,
|
|
616
|
+
showLocalizedValidationError: x,
|
|
617
|
+
getPostData: C,
|
|
190
618
|
onSubmit: T,
|
|
191
619
|
onSuccess: E,
|
|
192
620
|
onFail: D,
|
|
@@ -194,22 +622,22 @@ function $e(e, t = {}) {
|
|
|
194
622
|
showLocalization: k,
|
|
195
623
|
hideLocalization: A,
|
|
196
624
|
shouldShowLangGroup: j,
|
|
197
|
-
setErrors:
|
|
198
|
-
formatDate:
|
|
199
|
-
formatDatetime:
|
|
200
|
-
formatTime:
|
|
625
|
+
setErrors: d,
|
|
626
|
+
formatDate: K,
|
|
627
|
+
formatDatetime: q,
|
|
628
|
+
formatTime: J
|
|
201
629
|
};
|
|
202
630
|
}
|
|
203
631
|
//#endregion
|
|
204
632
|
//#region src/composables/useBaseAuth.js
|
|
205
|
-
var
|
|
206
|
-
function
|
|
207
|
-
let n =
|
|
633
|
+
var st = window.axios;
|
|
634
|
+
function X(e, t = {}) {
|
|
635
|
+
let n = w(t.formDefaults ? { ...t.formDefaults } : {}), r = w(!1), i = w(""), { setErrors: a, errors: o } = z();
|
|
208
636
|
async function s() {
|
|
209
637
|
if (t.validationSchema) {
|
|
210
638
|
let e = {};
|
|
211
639
|
for (let [r, i] of Object.entries(t.validationSchema)) {
|
|
212
|
-
let t = await
|
|
640
|
+
let t = await B(n.value[r], i, {
|
|
213
641
|
name: r,
|
|
214
642
|
values: n.value
|
|
215
643
|
});
|
|
@@ -219,7 +647,7 @@ function Y(e, t = {}) {
|
|
|
219
647
|
for (let n of Object.keys(t.validationSchema)) r[n] = e[n] || void 0;
|
|
220
648
|
if (a(r), Object.keys(e).length > 0) return !1;
|
|
221
649
|
}
|
|
222
|
-
r.value = !0, i.value = "",
|
|
650
|
+
r.value = !0, i.value = "", st.post(e.action, n.value).then((e) => {
|
|
223
651
|
c(e.data);
|
|
224
652
|
}).catch((e) => {
|
|
225
653
|
l(e.response?.data || {});
|
|
@@ -250,9 +678,9 @@ function Y(e, t = {}) {
|
|
|
250
678
|
}
|
|
251
679
|
//#endregion
|
|
252
680
|
//#region src/composables/useBaseListing.js
|
|
253
|
-
var
|
|
254
|
-
function
|
|
255
|
-
let { cookies: t } =
|
|
681
|
+
var Z = window.axios;
|
|
682
|
+
function ct(e) {
|
|
683
|
+
let { cookies: t } = re(), n = C({
|
|
256
684
|
state: {
|
|
257
685
|
per_page: t.get("per_page") || 10,
|
|
258
686
|
current_page: 1,
|
|
@@ -261,10 +689,10 @@ function tt(e) {
|
|
|
261
689
|
to: 10
|
|
262
690
|
},
|
|
263
691
|
options: { alwaysShowPrevNext: !0 }
|
|
264
|
-
}),
|
|
692
|
+
}), r = C({
|
|
265
693
|
column: "id",
|
|
266
694
|
direction: "asc"
|
|
267
|
-
}),
|
|
695
|
+
}), i = C({}), a = w(""), s = w(null), c = w(Ze(e.timezone || "UTC")), l = C({}), u = w(!1), d = C({
|
|
268
696
|
show: !1,
|
|
269
697
|
onConfirm: null,
|
|
270
698
|
translations: {
|
|
@@ -274,12 +702,12 @@ function tt(e) {
|
|
|
274
702
|
cancel_btn: "Cancel"
|
|
275
703
|
}
|
|
276
704
|
}), f = setInterval(() => {
|
|
277
|
-
c.value =
|
|
705
|
+
c.value = Ze(e.timezone || "UTC");
|
|
278
706
|
}, 1e3);
|
|
279
|
-
|
|
707
|
+
b(() => {
|
|
280
708
|
clearInterval(f);
|
|
281
709
|
});
|
|
282
|
-
let p =
|
|
710
|
+
let p = o(() => Object.values(l).filter((e) => e === !0).length), m = o({
|
|
283
711
|
get() {
|
|
284
712
|
return p.value >= n.state.to - n.state.from + 1 && p.value > 0 && h();
|
|
285
713
|
},
|
|
@@ -298,27 +726,27 @@ function tt(e) {
|
|
|
298
726
|
function g(e) {
|
|
299
727
|
l[e] === void 0 ? l[e] = !0 : l[e] = !l[e];
|
|
300
728
|
}
|
|
301
|
-
function
|
|
729
|
+
function _(e) {
|
|
302
730
|
let t = { params: { bulk: !0 } };
|
|
303
|
-
u.value = !0, Object.assign(t.params,
|
|
304
|
-
|
|
731
|
+
u.value = !0, Object.assign(t.params, i), Z.get(e, t).then((e) => {
|
|
732
|
+
y(e.data.bulkItems);
|
|
305
733
|
}).catch((e) => {
|
|
306
|
-
|
|
734
|
+
G(e.response?.data?.message);
|
|
307
735
|
}).finally(() => {
|
|
308
736
|
u.value = !1;
|
|
309
737
|
});
|
|
310
738
|
}
|
|
311
|
-
function
|
|
739
|
+
function v() {
|
|
312
740
|
if (!s.value) return;
|
|
313
741
|
let e = Object.values(s.value).map(({ id: e }) => e);
|
|
314
|
-
m.value ?
|
|
742
|
+
m.value ? x(e) : (u.value = !0, y(e), u.value = !1);
|
|
315
743
|
}
|
|
316
|
-
function
|
|
744
|
+
function y(e) {
|
|
317
745
|
e.forEach((e) => {
|
|
318
746
|
l[e] = !0;
|
|
319
747
|
});
|
|
320
748
|
}
|
|
321
|
-
function
|
|
749
|
+
function x(e = null) {
|
|
322
750
|
if (e === null) Object.keys(l).forEach((e) => delete l[e]);
|
|
323
751
|
else {
|
|
324
752
|
if (!s.value) return;
|
|
@@ -327,35 +755,35 @@ function tt(e) {
|
|
|
327
755
|
});
|
|
328
756
|
}
|
|
329
757
|
}
|
|
330
|
-
function
|
|
758
|
+
function S(e, t = {}) {
|
|
331
759
|
let n = Object.keys(l).filter((e) => l[e]);
|
|
332
760
|
d.translations = {
|
|
333
761
|
...d.translations,
|
|
334
762
|
...t,
|
|
335
763
|
confirm_text: (t.confirm_text || "Do you really want to delete :number selected items?").replace(":number", p.value)
|
|
336
764
|
}, d.onConfirm = () => {
|
|
337
|
-
d.show = !1,
|
|
338
|
-
Object.keys(l).forEach((e) => delete l[e]), T(),
|
|
765
|
+
d.show = !1, Z.post(e, { ids: n }).then((e) => {
|
|
766
|
+
Object.keys(l).forEach((e) => delete l[e]), T(), W(e.data.message);
|
|
339
767
|
}).catch((e) => {
|
|
340
|
-
|
|
768
|
+
G(e.response?.data?.message);
|
|
341
769
|
});
|
|
342
770
|
}, d.show = !0;
|
|
343
771
|
}
|
|
344
772
|
function T(t) {
|
|
345
|
-
let
|
|
773
|
+
let a = { params: {
|
|
346
774
|
per_page: n.state.per_page,
|
|
347
775
|
page: n.state.current_page,
|
|
348
|
-
orderBy:
|
|
349
|
-
orderDirection:
|
|
776
|
+
orderBy: r.column,
|
|
777
|
+
orderDirection: r.direction
|
|
350
778
|
} };
|
|
351
|
-
t === !0 && (
|
|
779
|
+
t === !0 && (a.params.page = 1), Object.assign(a.params, i), Z.get(e.url, a).then((e) => {
|
|
352
780
|
D(e.data.data);
|
|
353
781
|
}).catch((e) => {
|
|
354
|
-
|
|
782
|
+
G(e.response?.data?.message);
|
|
355
783
|
});
|
|
356
784
|
}
|
|
357
785
|
function E(e, t) {
|
|
358
|
-
t === "" ? delete
|
|
786
|
+
t === "" ? delete i[e] : i[e] = t, T(!0);
|
|
359
787
|
}
|
|
360
788
|
function D(e) {
|
|
361
789
|
if (e.current_page > e.last_page && e.total > 0) {
|
|
@@ -365,17 +793,17 @@ function tt(e) {
|
|
|
365
793
|
s.value = e.data, n.state.current_page = e.current_page, n.state.last_page = e.last_page, n.state.total = e.total, n.state.per_page = e.per_page, n.state.to = e.to, n.state.from = e.from;
|
|
366
794
|
}
|
|
367
795
|
function O(e) {
|
|
368
|
-
return
|
|
369
|
-
e.data.message ?
|
|
796
|
+
return Z.get(e).then((e) => {
|
|
797
|
+
e.data.message ? W(e.data.message) : e.data.redirect ? window.location.replace(e.data.redirect) : e.data.data?.path && window.location.replace(e.data.data.path);
|
|
370
798
|
}).catch((e) => {
|
|
371
|
-
|
|
799
|
+
G(e.response?.data?.message);
|
|
372
800
|
});
|
|
373
801
|
}
|
|
374
802
|
function k(e, t) {
|
|
375
803
|
return e.replace(":id", t.id);
|
|
376
804
|
}
|
|
377
805
|
function A({ column: e, direction: t }) {
|
|
378
|
-
|
|
806
|
+
r.column = e, r.direction = t, T();
|
|
379
807
|
}
|
|
380
808
|
function j(e) {
|
|
381
809
|
n.state.current_page = e, T();
|
|
@@ -390,9 +818,9 @@ function tt(e) {
|
|
|
390
818
|
}
|
|
391
819
|
return {
|
|
392
820
|
pagination: n,
|
|
393
|
-
orderBy:
|
|
394
|
-
filters:
|
|
395
|
-
search:
|
|
821
|
+
orderBy: r,
|
|
822
|
+
filters: i,
|
|
823
|
+
search: a,
|
|
396
824
|
collection: s,
|
|
397
825
|
now: c,
|
|
398
826
|
bulkItems: l,
|
|
@@ -401,10 +829,10 @@ function tt(e) {
|
|
|
401
829
|
isClickedAll: m,
|
|
402
830
|
clickedBulkItemsCount: p,
|
|
403
831
|
onBulkItemClicked: g,
|
|
404
|
-
onBulkItemsClickedAll:
|
|
405
|
-
onBulkItemsClickedAllWithPagination:
|
|
406
|
-
onBulkItemsClickedAllUncheck:
|
|
407
|
-
bulkDelete:
|
|
832
|
+
onBulkItemsClickedAll: _,
|
|
833
|
+
onBulkItemsClickedAllWithPagination: v,
|
|
834
|
+
onBulkItemsClickedAllUncheck: x,
|
|
835
|
+
bulkDelete: S,
|
|
408
836
|
loadData: T,
|
|
409
837
|
filter: E,
|
|
410
838
|
resolveUrl: k,
|
|
@@ -413,21 +841,21 @@ function tt(e) {
|
|
|
413
841
|
onPageChange: j,
|
|
414
842
|
onPerPageChange: M,
|
|
415
843
|
onUpdateItem: N,
|
|
416
|
-
formatDate:
|
|
417
|
-
formatDatetime:
|
|
418
|
-
formatTime:
|
|
844
|
+
formatDate: K,
|
|
845
|
+
formatDatetime: q,
|
|
846
|
+
formatTime: J
|
|
419
847
|
};
|
|
420
848
|
}
|
|
421
849
|
//#endregion
|
|
422
850
|
//#region src/composables/useAdmin.js
|
|
423
|
-
var
|
|
424
|
-
function
|
|
425
|
-
let e =
|
|
851
|
+
var lt = window.axios;
|
|
852
|
+
function ut() {
|
|
853
|
+
let e = w(!1);
|
|
426
854
|
function t(t) {
|
|
427
855
|
e.value = !!t;
|
|
428
856
|
}
|
|
429
|
-
return
|
|
430
|
-
|
|
857
|
+
return x(() => {
|
|
858
|
+
lt.interceptors.request.use((e) => (t(!0), e), (e) => (t(!1), Promise.reject(e))), lt.interceptors.response.use((e) => (t(!1), e), (e) => (t(!1), Promise.reject(e)));
|
|
431
859
|
}), {
|
|
432
860
|
loading: e,
|
|
433
861
|
setLoading: t
|
|
@@ -435,7 +863,7 @@ function rt() {
|
|
|
435
863
|
}
|
|
436
864
|
//#endregion
|
|
437
865
|
//#region src/composables/useResponsiveColumns.js
|
|
438
|
-
var
|
|
866
|
+
var dt = [
|
|
439
867
|
{
|
|
440
868
|
minWidth: 1800,
|
|
441
869
|
maxPriority: 10
|
|
@@ -465,8 +893,8 @@ var it = [
|
|
|
465
893
|
maxPriority: 0
|
|
466
894
|
}
|
|
467
895
|
];
|
|
468
|
-
function
|
|
469
|
-
let n = t.breakpoints ||
|
|
896
|
+
function ft(e, t = {}) {
|
|
897
|
+
let n = t.breakpoints || dt, r = w(10), i = null;
|
|
470
898
|
function a(e) {
|
|
471
899
|
for (let t of n) if (e >= t.minWidth) {
|
|
472
900
|
r.value = t.maxPriority;
|
|
@@ -479,9 +907,9 @@ function at(e, t = {}) {
|
|
|
479
907
|
for (let t of e) a(t.contentRect.width);
|
|
480
908
|
}), i.observe(e));
|
|
481
909
|
}
|
|
482
|
-
|
|
910
|
+
P(e, (e) => {
|
|
483
911
|
o(e);
|
|
484
|
-
}, { immediate: !0 }),
|
|
912
|
+
}, { immediate: !0 }), b(() => {
|
|
485
913
|
i &&= (i.disconnect(), null);
|
|
486
914
|
});
|
|
487
915
|
function s(e) {
|
|
@@ -491,31 +919,31 @@ function at(e, t = {}) {
|
|
|
491
919
|
}
|
|
492
920
|
//#endregion
|
|
493
921
|
//#region src/components/form/MediaUpload.vue
|
|
494
|
-
var
|
|
922
|
+
var pt = { class: "base-upload" }, mt = {
|
|
495
923
|
key: 0,
|
|
496
924
|
class: "form-label d-flex align-items-center"
|
|
497
|
-
},
|
|
925
|
+
}, ht = { class: "fw-semibold upload-label-title" }, gt = {
|
|
498
926
|
key: 0,
|
|
499
927
|
class: "fa fa-lock ms-auto text-body-secondary"
|
|
500
|
-
},
|
|
928
|
+
}, _t = ["value"], vt = {
|
|
501
929
|
key: 0,
|
|
502
930
|
class: "dz-message"
|
|
503
|
-
},
|
|
931
|
+
}, yt = { class: "dz-image" }, bt = ["src", "alt"], xt = {
|
|
504
932
|
key: 1,
|
|
505
933
|
class: "dz-file-icon"
|
|
506
|
-
},
|
|
934
|
+
}, St = { class: "dz-file-size" }, Ct = { class: "dz-file-name" }, wt = ["onClick"], Tt = { class: "dz-image" }, Et = ["src", "alt"], Dt = {
|
|
507
935
|
key: 1,
|
|
508
936
|
class: "dz-file-icon"
|
|
509
|
-
},
|
|
937
|
+
}, Ot = {
|
|
510
938
|
key: 0,
|
|
511
939
|
class: "dz-progress"
|
|
512
|
-
},
|
|
940
|
+
}, kt = {
|
|
513
941
|
key: 1,
|
|
514
942
|
class: "dz-success-mark"
|
|
515
|
-
},
|
|
943
|
+
}, At = {
|
|
516
944
|
key: 2,
|
|
517
945
|
class: "dz-error-mark"
|
|
518
|
-
},
|
|
946
|
+
}, jt = { class: "dz-file-size" }, Mt = { class: "dz-file-name" }, Nt = ["onClick"], Pt = {
|
|
519
947
|
__name: "MediaUpload",
|
|
520
948
|
props: {
|
|
521
949
|
url: {
|
|
@@ -555,15 +983,15 @@ var ot = { class: "base-upload" }, st = {
|
|
|
555
983
|
default: () => []
|
|
556
984
|
}
|
|
557
985
|
},
|
|
558
|
-
setup(e, { expose:
|
|
559
|
-
let
|
|
986
|
+
setup(e, { expose: t }) {
|
|
987
|
+
let n = window.axios, r = e, a = o(() => r.acceptedFileTypes && r.acceptedFileTypes.includes("image") ? "fa fa-file-image" : "fa fa-file"), s = o(() => {
|
|
560
988
|
let e = [];
|
|
561
|
-
return
|
|
562
|
-
}),
|
|
563
|
-
function
|
|
989
|
+
return r.maxNumberOfFiles > 0 && e.push(`max. ${r.maxNumberOfFiles} file${r.maxNumberOfFiles > 1 ? "s" : ""}`), r.maxFileSizeInMb > 0 && e.push(`max. ${r.maxFileSizeInMb.toFixed(2)} MB`), e;
|
|
990
|
+
}), d = w([]), f = w([]);
|
|
991
|
+
function p(e) {
|
|
564
992
|
return {
|
|
565
993
|
id: e.id,
|
|
566
|
-
collection_name:
|
|
994
|
+
collection_name: r.collection,
|
|
567
995
|
name: e.custom_properties?.name ?? e.file_name ?? e.name,
|
|
568
996
|
type: e.mime_type ?? e.type,
|
|
569
997
|
size: e.size,
|
|
@@ -571,18 +999,18 @@ var ot = { class: "base-upload" }, st = {
|
|
|
571
999
|
thumb_url: e.thumb_url ?? e.original_url ?? e.url
|
|
572
1000
|
};
|
|
573
1001
|
}
|
|
574
|
-
function
|
|
1002
|
+
function h() {
|
|
575
1003
|
let e = [];
|
|
576
|
-
return
|
|
577
|
-
e.push(
|
|
1004
|
+
return r.uploadedMedia.forEach((t) => {
|
|
1005
|
+
e.push(p(t));
|
|
578
1006
|
}), e;
|
|
579
1007
|
}
|
|
580
|
-
let
|
|
581
|
-
|
|
582
|
-
|
|
1008
|
+
let b = o(() => f.value.filter((e) => !e.deleted));
|
|
1009
|
+
x(() => {
|
|
1010
|
+
f.value = h();
|
|
583
1011
|
});
|
|
584
|
-
function
|
|
585
|
-
let t =
|
|
1012
|
+
function E(e) {
|
|
1013
|
+
let t = C({
|
|
586
1014
|
file: e,
|
|
587
1015
|
response: null,
|
|
588
1016
|
previewUrl: e.type && e.type.startsWith("image/") ? URL.createObjectURL(e) : null,
|
|
@@ -591,14 +1019,14 @@ var ot = { class: "base-upload" }, st = {
|
|
|
591
1019
|
showSuccess: !1,
|
|
592
1020
|
showError: !1
|
|
593
1021
|
});
|
|
594
|
-
|
|
595
|
-
let
|
|
596
|
-
|
|
597
|
-
let
|
|
598
|
-
|
|
1022
|
+
d.value.push(t);
|
|
1023
|
+
let i = new FormData();
|
|
1024
|
+
i.append("file", e);
|
|
1025
|
+
let a = document.head.querySelector("meta[name=\"csrf-token\"]");
|
|
1026
|
+
n.post(r.url, i, {
|
|
599
1027
|
headers: {
|
|
600
1028
|
"Content-Type": "multipart/form-data",
|
|
601
|
-
...
|
|
1029
|
+
...a ? { "X-CSRF-TOKEN": a.getAttribute("content") } : {}
|
|
602
1030
|
},
|
|
603
1031
|
onUploadProgress(e) {
|
|
604
1032
|
e.total && (t.progress = Math.round(e.loaded * 100 / e.total));
|
|
@@ -608,64 +1036,64 @@ var ot = { class: "base-upload" }, st = {
|
|
|
608
1036
|
t.showSuccess = !1;
|
|
609
1037
|
}, 1500);
|
|
610
1038
|
}).catch((e) => {
|
|
611
|
-
|
|
612
|
-
let e =
|
|
613
|
-
e !== -1 &&
|
|
1039
|
+
G(e.response?.data?.message || e.message || "Upload failed"), t.uploading = !1, t.showError = !0, setTimeout(() => {
|
|
1040
|
+
let e = d.value.indexOf(t);
|
|
1041
|
+
e !== -1 && d.value.splice(e, 1);
|
|
614
1042
|
}, 2e3);
|
|
615
1043
|
});
|
|
616
1044
|
}
|
|
617
|
-
function
|
|
1045
|
+
function O(e, t) {
|
|
618
1046
|
if (t.forEach((e) => {
|
|
619
1047
|
let t = e.errors.map((e) => e?.message || "Invalid file").join(", ");
|
|
620
|
-
|
|
621
|
-
}),
|
|
622
|
-
let t =
|
|
1048
|
+
G(`${e.file.name}: ${t}`);
|
|
1049
|
+
}), r.maxNumberOfFiles > 0) {
|
|
1050
|
+
let t = b.value.length + d.value.length, n = r.maxNumberOfFiles - t;
|
|
623
1051
|
if (n <= 0) {
|
|
624
|
-
|
|
1052
|
+
G(`Maximum ${r.maxNumberOfFiles} file${r.maxNumberOfFiles > 1 ? "s" : ""} allowed`);
|
|
625
1053
|
return;
|
|
626
1054
|
}
|
|
627
|
-
e.length > n && (
|
|
1055
|
+
e.length > n && (G(`Only ${n} more file${n > 1 ? "s" : ""} can be added`), e = e.slice(0, n));
|
|
628
1056
|
}
|
|
629
1057
|
e.forEach((e) => {
|
|
630
|
-
|
|
1058
|
+
E(e);
|
|
631
1059
|
});
|
|
632
1060
|
}
|
|
633
|
-
let
|
|
634
|
-
onDrop:
|
|
635
|
-
accept:
|
|
636
|
-
maxSize:
|
|
637
|
-
multiple:
|
|
638
|
-
});
|
|
639
|
-
function N(e) {
|
|
640
|
-
_.value[e] && (_.value[e].deleted = !0);
|
|
641
|
-
}
|
|
1061
|
+
let A = {
|
|
1062
|
+
onDrop: O,
|
|
1063
|
+
accept: r.acceptedFileTypes ? r.acceptedFileTypes.split(",").map((e) => e.trim()) : void 0,
|
|
1064
|
+
maxSize: r.maxFileSizeInMb > 0 ? r.maxFileSizeInMb * 1024 * 1024 : Infinity,
|
|
1065
|
+
multiple: r.maxNumberOfFiles !== 1
|
|
1066
|
+
}, { getRootProps: j, getInputProps: M, isDragActive: N } = ie(A);
|
|
642
1067
|
function P(e) {
|
|
643
|
-
f.value.
|
|
1068
|
+
f.value[e] && (f.value[e].deleted = !0);
|
|
1069
|
+
}
|
|
1070
|
+
function F(e) {
|
|
1071
|
+
d.value.splice(e, 1);
|
|
644
1072
|
}
|
|
645
1073
|
function I(e) {
|
|
646
|
-
return e ? e < 1024 ? e + " B" : e <
|
|
1074
|
+
return e ? e < 1024 ? e + " B" : e < 1048576 ? (e / 1024).toFixed(1) + " KB" : (e / 1048576).toFixed(1) + " MB" : "";
|
|
647
1075
|
}
|
|
648
1076
|
function L(e) {
|
|
649
1077
|
return e.type && e.type.includes("image");
|
|
650
1078
|
}
|
|
651
|
-
function R(e) {
|
|
652
|
-
return z(e.type || "");
|
|
653
|
-
}
|
|
654
1079
|
function z(e) {
|
|
1080
|
+
return B(e.type || "");
|
|
1081
|
+
}
|
|
1082
|
+
function B(e) {
|
|
655
1083
|
return e.includes("pdf") ? "fa-solid fa-file-pdf" : e.includes("word") ? "fa-solid fa-file-word" : e.includes("spreadsheet") || e.includes("csv") ? "fa-solid fa-file-excel" : e.includes("presentation") ? "fa-solid fa-file-powerpoint" : e.includes("video") ? "fa-solid fa-file-video" : e.includes("text") ? "fa-solid fa-file-lines" : e.includes("zip") || e.includes("rar") ? "fa-solid fa-file-zipper" : "fa-solid fa-file";
|
|
656
1084
|
}
|
|
657
|
-
function
|
|
1085
|
+
function V() {
|
|
658
1086
|
let e = [];
|
|
659
|
-
return
|
|
1087
|
+
return f.value.forEach((t) => {
|
|
660
1088
|
t.deleted && e.push({
|
|
661
1089
|
id: t.id,
|
|
662
|
-
collection_name:
|
|
1090
|
+
collection_name: r.collection,
|
|
663
1091
|
action: "delete"
|
|
664
1092
|
});
|
|
665
|
-
}),
|
|
1093
|
+
}), d.value.forEach((t) => {
|
|
666
1094
|
t.response?.path && e.push({
|
|
667
1095
|
id: t.file.id,
|
|
668
|
-
collection_name:
|
|
1096
|
+
collection_name: r.collection,
|
|
669
1097
|
path: t.response.path,
|
|
670
1098
|
action: "add",
|
|
671
1099
|
meta_data: {
|
|
@@ -677,82 +1105,82 @@ var ot = { class: "base-upload" }, st = {
|
|
|
677
1105
|
});
|
|
678
1106
|
}), e;
|
|
679
1107
|
}
|
|
680
|
-
return
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
(
|
|
1108
|
+
return t({ getFiles: V }), (t, n) => (S(), l("div", pt, [e.label ? (S(), l("label", mt, [
|
|
1109
|
+
u("i", { class: _([a.value, "me-1 text-body-secondary"]) }, null, 2),
|
|
1110
|
+
u("span", ht, D(e.label), 1),
|
|
1111
|
+
(S(!0), l(i, null, T(s.value, (e, t) => (S(), l("small", {
|
|
684
1112
|
key: t,
|
|
685
1113
|
class: "text-body-secondary fw-light ms-1"
|
|
686
|
-
}, "(" +
|
|
687
|
-
e.isPrivate ? (
|
|
688
|
-
])) :
|
|
689
|
-
|
|
690
|
-
|
|
1114
|
+
}, "(" + D(e) + ")", 1))), 128)),
|
|
1115
|
+
e.isPrivate ? (S(), l("i", gt)) : c("", !0)
|
|
1116
|
+
])) : c("", !0), u("div", g(k(j)(), { class: ["vue3-dropzone dropzone", { "dz-drag-hover": k(N) }] }), [
|
|
1117
|
+
u("input", v(m(k(M)())), null, 16),
|
|
1118
|
+
u("input", {
|
|
691
1119
|
type: "hidden",
|
|
692
1120
|
name: "collection",
|
|
693
1121
|
value: e.collection
|
|
694
|
-
}, null, 8,
|
|
695
|
-
|
|
696
|
-
(
|
|
1122
|
+
}, null, 8, _t),
|
|
1123
|
+
b.value.length === 0 && d.value.length === 0 ? (S(), l("div", vt, [...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),
|
|
1124
|
+
(S(!0), l(i, null, T(f.value, (e, t) => (S(), l("div", {
|
|
697
1125
|
key: "existing-" + (e.id || t),
|
|
698
|
-
class:
|
|
699
|
-
}, [
|
|
1126
|
+
class: _(["dz-preview dz-file-preview dz-existing", { "dz-deleted": e.deleted }])
|
|
1127
|
+
}, [u("div", yt, [L(e) ? (S(), l("img", {
|
|
700
1128
|
key: 0,
|
|
701
1129
|
src: e.thumb_url,
|
|
702
1130
|
alt: e.name
|
|
703
|
-
}, null, 8,
|
|
1131
|
+
}, null, 8, bt)) : (S(), l("div", xt, [u("i", { class: _(z(e)) }, null, 2), u("p", null, D(e.name), 1)]))]), u("div", {
|
|
704
1132
|
class: "dz-hover-overlay",
|
|
705
|
-
onClick:
|
|
1133
|
+
onClick: n[0] ||= R(() => {}, ["stop"])
|
|
706
1134
|
}, [
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
1135
|
+
u("span", St, D(I(e.size)), 1),
|
|
1136
|
+
u("span", Ct, D(e.name), 1),
|
|
1137
|
+
u("button", {
|
|
710
1138
|
type: "button",
|
|
711
1139
|
class: "dz-remove-btn",
|
|
712
|
-
onClick:
|
|
713
|
-
}, "REMOVE", 8,
|
|
1140
|
+
onClick: R((e) => P(t), ["stop"])
|
|
1141
|
+
}, "REMOVE", 8, wt)
|
|
714
1142
|
])], 2))), 128)),
|
|
715
|
-
(
|
|
1143
|
+
(S(!0), l(i, null, T(d.value, (e, t) => (S(), l("div", {
|
|
716
1144
|
key: "new-" + t,
|
|
717
|
-
class:
|
|
1145
|
+
class: _(["dz-preview dz-file-preview", {
|
|
718
1146
|
"dz-success": e.showSuccess,
|
|
719
1147
|
"dz-error": e.showError
|
|
720
1148
|
}])
|
|
721
1149
|
}, [
|
|
722
|
-
|
|
1150
|
+
u("div", Tt, [e.previewUrl ? (S(), l("img", {
|
|
723
1151
|
key: 0,
|
|
724
1152
|
src: e.previewUrl,
|
|
725
1153
|
alt: e.file.name
|
|
726
|
-
}, null, 8,
|
|
727
|
-
e.uploading ? (
|
|
1154
|
+
}, null, 8, Et)) : (S(), l("div", Dt, [u("i", { class: _(B(e.file.type)) }, null, 2), u("p", null, D(e.file.name), 1)]))]),
|
|
1155
|
+
e.uploading ? (S(), l("div", Ot, [u("span", {
|
|
728
1156
|
class: "dz-upload",
|
|
729
|
-
style:
|
|
730
|
-
}, null, 4)])) :
|
|
731
|
-
e.showSuccess ? (
|
|
732
|
-
e.showError ? (
|
|
733
|
-
!e.uploading && !e.showSuccess ? (
|
|
1157
|
+
style: y({ width: e.progress + "%" })
|
|
1158
|
+
}, null, 4)])) : c("", !0),
|
|
1159
|
+
e.showSuccess ? (S(), l("div", kt, [...n[3] ||= [u("i", { class: "fa-solid fa-check" }, null, -1)]])) : c("", !0),
|
|
1160
|
+
e.showError ? (S(), l("div", At, [...n[4] ||= [u("i", { class: "fa-solid fa-xmark" }, null, -1)]])) : c("", !0),
|
|
1161
|
+
!e.uploading && !e.showSuccess ? (S(), l("div", {
|
|
734
1162
|
key: 3,
|
|
735
1163
|
class: "dz-hover-overlay",
|
|
736
|
-
onClick:
|
|
1164
|
+
onClick: n[1] ||= R(() => {}, ["stop"])
|
|
737
1165
|
}, [
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
1166
|
+
u("span", jt, D(I(e.file.size)), 1),
|
|
1167
|
+
u("span", Mt, D(e.file.name), 1),
|
|
1168
|
+
u("button", {
|
|
741
1169
|
type: "button",
|
|
742
1170
|
class: "dz-remove-btn",
|
|
743
|
-
onClick:
|
|
744
|
-
}, "REMOVE", 8,
|
|
745
|
-
])) :
|
|
1171
|
+
onClick: R((e) => F(t), ["stop"])
|
|
1172
|
+
}, "REMOVE", 8, Nt)
|
|
1173
|
+
])) : c("", !0)
|
|
746
1174
|
], 2))), 128))
|
|
747
1175
|
], 16)]));
|
|
748
1176
|
}
|
|
749
|
-
},
|
|
1177
|
+
}, Ft = { class: "tiptap-editor" }, It = {
|
|
750
1178
|
key: 0,
|
|
751
1179
|
class: "tiptap-toolbar"
|
|
752
|
-
},
|
|
1180
|
+
}, Lt = ["selected"], Rt = ["value", "selected"], zt = {
|
|
753
1181
|
key: 0,
|
|
754
1182
|
class: "tiptap-toolbar-divider"
|
|
755
|
-
},
|
|
1183
|
+
}, Bt = ["disabled"], Vt = ["disabled"], Ht = {
|
|
756
1184
|
__name: "TiptapEditor",
|
|
757
1185
|
props: {
|
|
758
1186
|
modelValue: {
|
|
@@ -773,173 +1201,173 @@ var ot = { class: "base-upload" }, st = {
|
|
|
773
1201
|
}
|
|
774
1202
|
},
|
|
775
1203
|
emits: ["update:modelValue", "media-uploaded"],
|
|
776
|
-
setup(e, { emit:
|
|
777
|
-
let
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
le,
|
|
1204
|
+
setup(e, { emit: t }) {
|
|
1205
|
+
let n = window.axios, r = e, a = t, o = [
|
|
1206
|
+
se.configure({ link: { openOnClick: !1 } }),
|
|
1207
|
+
ce.configure({ HTMLAttributes: { class: "tiptap-image" } }),
|
|
1208
|
+
le.configure({ resizable: !0 }),
|
|
1209
|
+
fe,
|
|
783
1210
|
ue,
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
1211
|
+
de,
|
|
1212
|
+
...r.config.extensions || []
|
|
1213
|
+
], s = oe({
|
|
1214
|
+
content: r.modelValue,
|
|
1215
|
+
extensions: o,
|
|
788
1216
|
onUpdate: ({ editor: e }) => {
|
|
789
|
-
|
|
1217
|
+
a("update:modelValue", e.getHTML());
|
|
790
1218
|
}
|
|
791
1219
|
});
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
}),
|
|
795
|
-
|
|
1220
|
+
P(() => r.modelValue, (e) => {
|
|
1221
|
+
s.value && s.value.getHTML() !== e && s.value.commands.setContent(e, { emitUpdate: !1 });
|
|
1222
|
+
}), b(() => {
|
|
1223
|
+
s.value && s.value.destroy();
|
|
796
1224
|
});
|
|
797
|
-
function
|
|
1225
|
+
function d(e) {
|
|
798
1226
|
let t = parseInt(e.target.value);
|
|
799
|
-
t === 0 ?
|
|
1227
|
+
t === 0 ? s.value.chain().focus().setParagraph().run() : s.value.chain().focus().toggleHeading({ level: t }).run();
|
|
800
1228
|
}
|
|
801
1229
|
function p() {
|
|
802
|
-
let e =
|
|
1230
|
+
let e = s.value.getAttributes("link").href, t = window.prompt("URL", e);
|
|
803
1231
|
if (t !== null) {
|
|
804
1232
|
if (t === "") {
|
|
805
|
-
|
|
1233
|
+
s.value.chain().focus().extendMarkRange("link").unsetLink().run();
|
|
806
1234
|
return;
|
|
807
1235
|
}
|
|
808
|
-
|
|
1236
|
+
s.value.chain().focus().extendMarkRange("link").setLink({ href: t }).run();
|
|
809
1237
|
}
|
|
810
1238
|
}
|
|
811
|
-
let
|
|
812
|
-
function
|
|
1239
|
+
let m = w(null);
|
|
1240
|
+
function h() {
|
|
813
1241
|
let e = window.prompt("Image URL");
|
|
814
|
-
e &&
|
|
1242
|
+
e && s.value.chain().focus().setImage({ src: e }).run();
|
|
815
1243
|
}
|
|
816
|
-
function
|
|
817
|
-
|
|
1244
|
+
function g() {
|
|
1245
|
+
m.value.click();
|
|
818
1246
|
}
|
|
819
|
-
function
|
|
1247
|
+
function v(e) {
|
|
820
1248
|
let t = e.target.files[0];
|
|
821
1249
|
if (!t) return;
|
|
822
|
-
let
|
|
823
|
-
|
|
824
|
-
let
|
|
825
|
-
|
|
1250
|
+
let i = new FormData();
|
|
1251
|
+
i.append("fileToUpload", t);
|
|
1252
|
+
let o = document.querySelector("meta[name=\"csrf-token\"]")?.getAttribute("content");
|
|
1253
|
+
n.post(r.uploadUrl, i, { headers: {
|
|
826
1254
|
"Content-Type": "multipart/form-data",
|
|
827
|
-
...
|
|
1255
|
+
...o ? { "X-CSRF-TOKEN": o } : {}
|
|
828
1256
|
} }).then((e) => {
|
|
829
|
-
|
|
1257
|
+
s.value.chain().focus().setImage({ src: e.data.file }).run(), a("media-uploaded", e.data);
|
|
830
1258
|
}, (e) => {
|
|
831
|
-
|
|
1259
|
+
G(e.response?.data?.error);
|
|
832
1260
|
}).finally(() => {
|
|
833
|
-
|
|
1261
|
+
m.value.value = "";
|
|
834
1262
|
});
|
|
835
1263
|
}
|
|
836
|
-
return (
|
|
837
|
-
|
|
1264
|
+
return (t, n) => (S(), l("div", Ft, [k(s) ? (S(), l("div", It, [
|
|
1265
|
+
u("select", {
|
|
838
1266
|
class: "tiptap-heading-select",
|
|
839
|
-
onChange:
|
|
840
|
-
}, [
|
|
1267
|
+
onChange: n[0] ||= (e) => d(e)
|
|
1268
|
+
}, [u("option", {
|
|
841
1269
|
value: "0",
|
|
842
|
-
selected: !
|
|
843
|
-
}, "Paragraph", 8,
|
|
1270
|
+
selected: !k(s).isActive("heading")
|
|
1271
|
+
}, "Paragraph", 8, Lt), (S(), l(i, null, T([
|
|
844
1272
|
1,
|
|
845
1273
|
2,
|
|
846
1274
|
3,
|
|
847
1275
|
4,
|
|
848
1276
|
5,
|
|
849
1277
|
6
|
|
850
|
-
], (e) =>
|
|
1278
|
+
], (e) => u("option", {
|
|
851
1279
|
key: e,
|
|
852
1280
|
value: e,
|
|
853
|
-
selected:
|
|
854
|
-
}, " H" +
|
|
855
|
-
|
|
1281
|
+
selected: k(s).isActive("heading", { level: e })
|
|
1282
|
+
}, " H" + D(e), 9, Rt)), 64))], 32),
|
|
1283
|
+
u("button", {
|
|
856
1284
|
type: "button",
|
|
857
|
-
class:
|
|
1285
|
+
class: _({ "is-active": k(s).isActive("bold") }),
|
|
858
1286
|
title: "Bold",
|
|
859
|
-
onClick:
|
|
860
|
-
}, [...
|
|
861
|
-
|
|
1287
|
+
onClick: n[1] ||= (e) => k(s).chain().focus().toggleBold().run()
|
|
1288
|
+
}, [...n[9] ||= [u("strong", null, "B", -1)]], 2),
|
|
1289
|
+
u("button", {
|
|
862
1290
|
type: "button",
|
|
863
|
-
class:
|
|
1291
|
+
class: _({ "is-active": k(s).isActive("italic") }),
|
|
864
1292
|
title: "Italic",
|
|
865
|
-
onClick:
|
|
866
|
-
}, [...
|
|
867
|
-
|
|
1293
|
+
onClick: n[2] ||= (e) => k(s).chain().focus().toggleItalic().run()
|
|
1294
|
+
}, [...n[10] ||= [u("em", null, "I", -1)]], 2),
|
|
1295
|
+
u("button", {
|
|
868
1296
|
type: "button",
|
|
869
|
-
class:
|
|
1297
|
+
class: _({ "is-active": k(s).isActive("strike") }),
|
|
870
1298
|
title: "Strikethrough",
|
|
871
|
-
onClick:
|
|
872
|
-
}, [...
|
|
873
|
-
|
|
874
|
-
|
|
1299
|
+
onClick: n[3] ||= (e) => k(s).chain().focus().toggleStrike().run()
|
|
1300
|
+
}, [...n[11] ||= [u("s", null, "S", -1)]], 2),
|
|
1301
|
+
n[12] ||= u("span", { class: "tiptap-toolbar-divider" }, null, -1),
|
|
1302
|
+
u("button", {
|
|
875
1303
|
type: "button",
|
|
876
|
-
class:
|
|
1304
|
+
class: _({ "is-active": k(s).isActive("bulletList") }),
|
|
877
1305
|
title: "Bullet List",
|
|
878
|
-
onClick:
|
|
1306
|
+
onClick: n[4] ||= (e) => k(s).chain().focus().toggleBulletList().run()
|
|
879
1307
|
}, " • ", 2),
|
|
880
|
-
|
|
1308
|
+
u("button", {
|
|
881
1309
|
type: "button",
|
|
882
|
-
class:
|
|
1310
|
+
class: _({ "is-active": k(s).isActive("orderedList") }),
|
|
883
1311
|
title: "Ordered List",
|
|
884
|
-
onClick:
|
|
1312
|
+
onClick: n[5] ||= (e) => k(s).chain().focus().toggleOrderedList().run()
|
|
885
1313
|
}, " 1. ", 2),
|
|
886
|
-
|
|
887
|
-
|
|
1314
|
+
n[13] ||= u("span", { class: "tiptap-toolbar-divider" }, null, -1),
|
|
1315
|
+
u("button", {
|
|
888
1316
|
type: "button",
|
|
889
1317
|
title: "Link",
|
|
890
1318
|
onClick: p
|
|
891
1319
|
}, "🔗"),
|
|
892
|
-
|
|
1320
|
+
u("button", {
|
|
893
1321
|
type: "button",
|
|
894
1322
|
title: "Upload Image",
|
|
895
|
-
onClick:
|
|
1323
|
+
onClick: g
|
|
896
1324
|
}, "📤"),
|
|
897
|
-
|
|
1325
|
+
u("button", {
|
|
898
1326
|
type: "button",
|
|
899
1327
|
title: "Image URL",
|
|
900
|
-
onClick:
|
|
1328
|
+
onClick: h
|
|
901
1329
|
}, "📷"),
|
|
902
|
-
|
|
1330
|
+
u("input", {
|
|
903
1331
|
ref_key: "fileInput",
|
|
904
|
-
ref:
|
|
1332
|
+
ref: m,
|
|
905
1333
|
type: "file",
|
|
906
1334
|
accept: "image/*",
|
|
907
1335
|
style: { display: "none" },
|
|
908
|
-
onChange:
|
|
1336
|
+
onChange: v
|
|
909
1337
|
}, null, 544),
|
|
910
|
-
e.showTableControls ? (
|
|
911
|
-
e.showTableControls ? (
|
|
1338
|
+
e.showTableControls ? (S(), l("span", zt)) : c("", !0),
|
|
1339
|
+
e.showTableControls ? (S(), l("button", {
|
|
912
1340
|
key: 1,
|
|
913
1341
|
type: "button",
|
|
914
1342
|
title: "Insert Table",
|
|
915
|
-
onClick:
|
|
1343
|
+
onClick: n[6] ||= (e) => k(s).chain().focus().insertTable({
|
|
916
1344
|
rows: 3,
|
|
917
1345
|
cols: 3,
|
|
918
1346
|
withHeaderRow: !0
|
|
919
1347
|
}).run()
|
|
920
|
-
}, " ▦ ")) :
|
|
921
|
-
|
|
922
|
-
|
|
1348
|
+
}, " ▦ ")) : c("", !0),
|
|
1349
|
+
n[14] ||= u("span", { class: "tiptap-toolbar-divider" }, null, -1),
|
|
1350
|
+
u("button", {
|
|
923
1351
|
type: "button",
|
|
924
|
-
disabled: !
|
|
1352
|
+
disabled: !k(s).can().undo(),
|
|
925
1353
|
title: "Undo",
|
|
926
|
-
onClick:
|
|
927
|
-
}, " ↩ ", 8,
|
|
928
|
-
|
|
1354
|
+
onClick: n[7] ||= (e) => k(s).chain().focus().undo().run()
|
|
1355
|
+
}, " ↩ ", 8, Bt),
|
|
1356
|
+
u("button", {
|
|
929
1357
|
type: "button",
|
|
930
|
-
disabled: !
|
|
1358
|
+
disabled: !k(s).can().redo(),
|
|
931
1359
|
title: "Redo",
|
|
932
|
-
onClick:
|
|
933
|
-
}, " ↪ ", 8,
|
|
934
|
-
])) :
|
|
935
|
-
editor:
|
|
1360
|
+
onClick: n[8] ||= (e) => k(s).chain().focus().redo().run()
|
|
1361
|
+
}, " ↪ ", 8, Vt)
|
|
1362
|
+
])) : c("", !0), f(k(ae), {
|
|
1363
|
+
editor: k(s),
|
|
936
1364
|
class: "tiptap-content"
|
|
937
1365
|
}, null, 8, ["editor"])]));
|
|
938
1366
|
}
|
|
939
1367
|
};
|
|
940
1368
|
//#endregion
|
|
941
1369
|
//#region src/utils/ckeditorHelpers.js
|
|
942
|
-
function
|
|
1370
|
+
function Ut(e) {
|
|
943
1371
|
if (!e) return e;
|
|
944
1372
|
let t = new DOMParser().parseFromString(e, "text/html"), n = !1;
|
|
945
1373
|
return t.querySelectorAll("figure").forEach((e) => {
|
|
@@ -949,14 +1377,14 @@ function Ft(e) {
|
|
|
949
1377
|
r && (r.style.width = t, r.style.height = "auto", n = !0);
|
|
950
1378
|
}), n ? t.body.innerHTML : e;
|
|
951
1379
|
}
|
|
952
|
-
function
|
|
1380
|
+
function Wt(e, t) {
|
|
953
1381
|
let n = { ...e };
|
|
954
|
-
for (let r of Object.keys(t)) t[r] && typeof t[r] == "object" && !Array.isArray(t[r]) && e[r] && typeof e[r] == "object" && !Array.isArray(e[r]) ?
|
|
1382
|
+
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]) ? Wt(e[r], t[r]) : t[r];
|
|
955
1383
|
return n;
|
|
956
1384
|
}
|
|
957
1385
|
//#endregion
|
|
958
1386
|
//#region src/components/form/CkeditorEditor.vue
|
|
959
|
-
var
|
|
1387
|
+
var Gt = { class: "ck-editor-wrapper" }, Kt = {
|
|
960
1388
|
__name: "CkeditorEditor",
|
|
961
1389
|
props: {
|
|
962
1390
|
modelValue: {
|
|
@@ -974,14 +1402,14 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
974
1402
|
},
|
|
975
1403
|
emits: ["update:modelValue", "media-uploaded"],
|
|
976
1404
|
setup(e, { emit: t }) {
|
|
977
|
-
let n = window.axios,
|
|
978
|
-
get: () =>
|
|
979
|
-
set: (e) =>
|
|
1405
|
+
let n = window.axios, r = e, i = t, a = o({
|
|
1406
|
+
get: () => r.modelValue ?? "",
|
|
1407
|
+
set: (e) => i("update:modelValue", Ut(e))
|
|
980
1408
|
});
|
|
981
|
-
function
|
|
982
|
-
e.plugins.get("FileRepository").createUploadAdapter = (e) => new
|
|
1409
|
+
function s(e) {
|
|
1410
|
+
e.plugins.get("FileRepository").createUploadAdapter = (e) => new c(e, r.uploadUrl);
|
|
983
1411
|
}
|
|
984
|
-
class
|
|
1412
|
+
class c {
|
|
985
1413
|
constructor(e, t) {
|
|
986
1414
|
this.loader = e, this.url = t;
|
|
987
1415
|
}
|
|
@@ -995,47 +1423,47 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
995
1423
|
}
|
|
996
1424
|
}).then((e) => {
|
|
997
1425
|
let t = e.data.file || e.data.url || e.data;
|
|
998
|
-
return
|
|
1426
|
+
return i("media-uploaded", e.data), { default: t };
|
|
999
1427
|
});
|
|
1000
1428
|
});
|
|
1001
1429
|
}
|
|
1002
1430
|
abort() {}
|
|
1003
1431
|
}
|
|
1004
|
-
let
|
|
1432
|
+
let u = {
|
|
1005
1433
|
licenseKey: "GPL",
|
|
1006
1434
|
plugins: [
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
Ne,
|
|
1010
|
-
Ve,
|
|
1011
|
-
Re,
|
|
1012
|
-
Se,
|
|
1013
|
-
Ie,
|
|
1014
|
-
fe,
|
|
1015
|
-
Fe,
|
|
1435
|
+
be,
|
|
1436
|
+
ge,
|
|
1016
1437
|
Pe,
|
|
1438
|
+
He,
|
|
1439
|
+
ze,
|
|
1440
|
+
Ce,
|
|
1441
|
+
Le,
|
|
1017
1442
|
pe,
|
|
1018
|
-
|
|
1019
|
-
|
|
1443
|
+
Ie,
|
|
1444
|
+
Fe,
|
|
1445
|
+
me,
|
|
1020
1446
|
Te,
|
|
1021
|
-
|
|
1022
|
-
Oe,
|
|
1447
|
+
je,
|
|
1023
1448
|
Ee,
|
|
1449
|
+
Ae,
|
|
1450
|
+
ke,
|
|
1024
1451
|
De,
|
|
1025
|
-
|
|
1026
|
-
|
|
1452
|
+
Oe,
|
|
1453
|
+
Me,
|
|
1027
1454
|
Be,
|
|
1455
|
+
Ve,
|
|
1456
|
+
ye,
|
|
1028
1457
|
ve,
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
be
|
|
1458
|
+
Re,
|
|
1459
|
+
he,
|
|
1460
|
+
we,
|
|
1461
|
+
Ne,
|
|
1462
|
+
Se,
|
|
1463
|
+
Ue,
|
|
1464
|
+
xe
|
|
1037
1465
|
],
|
|
1038
|
-
extraPlugins: [
|
|
1466
|
+
extraPlugins: [s],
|
|
1039
1467
|
toolbar: {
|
|
1040
1468
|
items: /* @__PURE__ */ "heading.|.bold.italic.underline.strikethrough.|.alignment.|.bulletedList.numberedList.|.blockQuote.horizontalLine.|.link.insertImage.insertTable.|.code.codeBlock.|.undo.redo.|.sourceEditing".split("."),
|
|
1041
1469
|
shouldNotGroupWhenFull: !0
|
|
@@ -1117,34 +1545,34 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
1117
1545
|
class: "ck-heading_heading4"
|
|
1118
1546
|
}
|
|
1119
1547
|
] }
|
|
1120
|
-
},
|
|
1121
|
-
return (e, t) => (
|
|
1122
|
-
modelValue:
|
|
1123
|
-
"onUpdate:modelValue": t[0] ||= (e) =>
|
|
1124
|
-
editor:
|
|
1125
|
-
config:
|
|
1548
|
+
}, d = o(() => r.config ? Wt(u, O(r.config)) : u);
|
|
1549
|
+
return (e, t) => (S(), l("div", Gt, [f(k(We), {
|
|
1550
|
+
modelValue: a.value,
|
|
1551
|
+
"onUpdate:modelValue": t[0] ||= (e) => a.value = e,
|
|
1552
|
+
editor: k(_e),
|
|
1553
|
+
config: d.value
|
|
1126
1554
|
}, null, 8, [
|
|
1127
1555
|
"modelValue",
|
|
1128
1556
|
"editor",
|
|
1129
1557
|
"config"
|
|
1130
1558
|
])]));
|
|
1131
1559
|
}
|
|
1132
|
-
},
|
|
1560
|
+
}, qt = { class: "user-detail-tooltip d-inline-flex align-items-center" }, Jt = {
|
|
1133
1561
|
key: 0,
|
|
1134
1562
|
class: "col-form-label text-body-secondary me-2 mb-0"
|
|
1135
|
-
},
|
|
1563
|
+
}, Yt = { class: "d-inline-flex align-items-center cursor-pointer" }, Xt = ["src", "alt"], Zt = {
|
|
1136
1564
|
key: 1,
|
|
1137
1565
|
class: "avatar-initials"
|
|
1138
|
-
},
|
|
1566
|
+
}, Qt = {
|
|
1139
1567
|
key: 2,
|
|
1140
1568
|
class: "avatar-trigger-text"
|
|
1141
|
-
},
|
|
1569
|
+
}, $t = { class: "avatar-full-name" }, en = {
|
|
1142
1570
|
key: 0,
|
|
1143
1571
|
class: "d-block user-info-span"
|
|
1144
|
-
},
|
|
1572
|
+
}, tn = { class: "user-detail-popper d-flex align-items-center" }, nn = { class: "user-avatar flex-shrink-0" }, rn = ["src", "alt"], an = {
|
|
1145
1573
|
key: 1,
|
|
1146
1574
|
class: "avatar-initials"
|
|
1147
|
-
},
|
|
1575
|
+
}, on = { class: "user-info ms-3" }, sn = { key: 0 }, cn = { class: "text-uppercase" }, ln = ["href"], un = { key: 1 }, dn = {
|
|
1148
1576
|
__name: "UserDetailTooltip",
|
|
1149
1577
|
props: {
|
|
1150
1578
|
user: {
|
|
@@ -1173,43 +1601,43 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
1173
1601
|
}
|
|
1174
1602
|
},
|
|
1175
1603
|
setup(e) {
|
|
1176
|
-
let t = e, n =
|
|
1177
|
-
return (t, r) => (
|
|
1604
|
+
let t = e, n = o(() => `${t.user.first_name.slice(0, 1)}${t.user.last_name.slice(0, 1)}`);
|
|
1605
|
+
return (t, r) => (S(), l("div", qt, [e.label ? (S(), l("label", Jt, D(e.label) + " :", 1)) : c("", !0), f(k(Ge), {
|
|
1178
1606
|
arrow: "",
|
|
1179
1607
|
click: ""
|
|
1180
1608
|
}, {
|
|
1181
|
-
content:
|
|
1609
|
+
content: F(() => [u("div", tn, [u("div", nn, [e.user.avatar_thumb_url ? (S(), l("img", {
|
|
1182
1610
|
key: 0,
|
|
1183
1611
|
src: e.user.avatar_thumb_url,
|
|
1184
1612
|
class: "avatar-photo",
|
|
1185
1613
|
alt: e.user.full_name
|
|
1186
|
-
}, null, 8,
|
|
1187
|
-
|
|
1188
|
-
e.user.email ? (
|
|
1614
|
+
}, null, 8, rn)) : (S(), l("div", an, D(n.value), 1))]), u("div", on, [
|
|
1615
|
+
u("h3", null, [d(D(e.user.full_name) + " ", 1), e.userText ? (S(), l("small", sn, [r[0] ||= d(" | ", -1), u("strong", cn, D(e.userText), 1)])) : c("", !0)]),
|
|
1616
|
+
e.user.email ? (S(), l("a", {
|
|
1189
1617
|
key: 0,
|
|
1190
1618
|
href: "mailto:" + e.user.email
|
|
1191
|
-
},
|
|
1192
|
-
e.datetimeText ? (
|
|
1619
|
+
}, D(e.user.email), 9, ln)) : c("", !0),
|
|
1620
|
+
e.datetimeText ? (S(), l("p", un, D(e.datetimeText), 1)) : c("", !0)
|
|
1193
1621
|
])])]),
|
|
1194
|
-
default:
|
|
1622
|
+
default: F(() => [u("div", Yt, [e.user.avatar_thumb_url ? (S(), l("img", {
|
|
1195
1623
|
key: 0,
|
|
1196
1624
|
src: e.user.avatar_thumb_url,
|
|
1197
1625
|
class: "avatar-photo",
|
|
1198
1626
|
alt: e.user.full_name
|
|
1199
|
-
}, null, 8,
|
|
1627
|
+
}, null, 8, Xt)) : (S(), l("div", Zt, D(n.value), 1)), e.options.showFullNameLabel ? (S(), l("div", Qt, [u("span", $t, D(e.user.full_name), 1), e.datetime ? (S(), l("span", en, D(e.datetime), 1)) : c("", !0)])) : c("", !0)])]),
|
|
1200
1628
|
_: 1
|
|
1201
1629
|
})]));
|
|
1202
1630
|
}
|
|
1203
|
-
},
|
|
1631
|
+
}, fn = {
|
|
1204
1632
|
key: 0,
|
|
1205
1633
|
class: "row"
|
|
1206
|
-
},
|
|
1634
|
+
}, pn = { class: "col-sm" }, mn = { class: "pagination-caption" }, hn = { class: "col-sm-auto" }, gn = {
|
|
1207
1635
|
key: 0,
|
|
1208
1636
|
class: "page-link"
|
|
1209
|
-
},
|
|
1637
|
+
}, _n = { "aria-hidden": "true" }, vn = ["aria-label"], yn = { "aria-hidden": "true" }, bn = ["onClick"], xn = {
|
|
1210
1638
|
key: 0,
|
|
1211
1639
|
class: "page-link"
|
|
1212
|
-
},
|
|
1640
|
+
}, Sn = { "aria-hidden": "true" }, Cn = ["aria-label"], wn = { "aria-hidden": "true" }, Tn = {
|
|
1213
1641
|
__name: "Pagination",
|
|
1214
1642
|
props: {
|
|
1215
1643
|
pagination: {
|
|
@@ -1234,74 +1662,74 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
1234
1662
|
}
|
|
1235
1663
|
},
|
|
1236
1664
|
emits: ["page-change", "per-page-change"],
|
|
1237
|
-
setup(e, { emit:
|
|
1238
|
-
let
|
|
1665
|
+
setup(e, { emit: t }) {
|
|
1666
|
+
let n = e, r = t, { cookies: a } = re(), s = o(() => (n.translations.overview || "").replace(":from", n.pagination.from).replace(":to", n.pagination.to).replace(":total", n.pagination.total)), d = o(() => Object.assign({
|
|
1239
1667
|
offset: 3,
|
|
1240
1668
|
alwaysShowPrevNext: !1
|
|
1241
|
-
},
|
|
1242
|
-
if (
|
|
1243
|
-
let e =
|
|
1669
|
+
}, n.options)), f = o(() => {
|
|
1670
|
+
if (n.pagination.last_page <= 0) return [];
|
|
1671
|
+
let e = n.pagination.current_page - d.value.offset;
|
|
1244
1672
|
e < 1 && (e = 1);
|
|
1245
1673
|
let t = e + d.value.offset * 2;
|
|
1246
|
-
t >=
|
|
1247
|
-
let
|
|
1248
|
-
for (; e <= t;)
|
|
1249
|
-
return
|
|
1250
|
-
}), p =
|
|
1251
|
-
|
|
1252
|
-
+e != +t && (
|
|
1674
|
+
t >= n.pagination.last_page && (t = n.pagination.last_page);
|
|
1675
|
+
let r = [];
|
|
1676
|
+
for (; e <= t;) r.push(e), e++;
|
|
1677
|
+
return r;
|
|
1678
|
+
}), p = o(() => n.size === "large" ? "pagination-lg" : n.size === "small" ? "pagination-sm" : "");
|
|
1679
|
+
P(() => n.pagination.per_page, (e, t) => {
|
|
1680
|
+
+e != +t && (a.set("per_page", e), r("per-page-change"));
|
|
1253
1681
|
});
|
|
1254
|
-
function
|
|
1255
|
-
return d.value.alwaysShowPrevNext ||
|
|
1682
|
+
function m() {
|
|
1683
|
+
return d.value.alwaysShowPrevNext || n.pagination.current_page > 1;
|
|
1256
1684
|
}
|
|
1257
|
-
function
|
|
1258
|
-
return d.value.alwaysShowPrevNext ||
|
|
1685
|
+
function h() {
|
|
1686
|
+
return d.value.alwaysShowPrevNext || n.pagination.current_page < n.pagination.last_page;
|
|
1259
1687
|
}
|
|
1260
|
-
function
|
|
1261
|
-
|
|
1688
|
+
function g(e) {
|
|
1689
|
+
n.pagination.current_page !== e && r("page-change", e);
|
|
1262
1690
|
}
|
|
1263
|
-
return (
|
|
1691
|
+
return (t, n) => e.pagination.total > 0 ? (S(), l("div", fn, [u("div", pn, [u("span", mn, D(s.value), 1)]), u("div", hn, [u("nav", null, [e.pagination.last_page > 1 ? (S(), l("ul", {
|
|
1264
1692
|
key: 0,
|
|
1265
|
-
class:
|
|
1693
|
+
class: _(["pagination", p.value])
|
|
1266
1694
|
}, [
|
|
1267
|
-
|
|
1695
|
+
m() ? (S(), l("li", {
|
|
1268
1696
|
key: 0,
|
|
1269
|
-
class:
|
|
1697
|
+
class: _({
|
|
1270
1698
|
disabled: e.pagination.current_page <= 1,
|
|
1271
1699
|
"page-item": !0
|
|
1272
1700
|
})
|
|
1273
|
-
}, [e.pagination.current_page <= 1 ? (
|
|
1701
|
+
}, [e.pagination.current_page <= 1 ? (S(), l("span", gn, [u("span", _n, D(e.translations.previous), 1)])) : c("", !0), e.pagination.current_page > 1 ? (S(), l("a", {
|
|
1274
1702
|
key: 1,
|
|
1275
1703
|
href: "#",
|
|
1276
1704
|
"aria-label": e.translations.previous,
|
|
1277
1705
|
class: "page-link",
|
|
1278
|
-
onClick:
|
|
1279
|
-
}, [
|
|
1280
|
-
(
|
|
1706
|
+
onClick: n[0] ||= R((t) => g(e.pagination.current_page - 1), ["prevent"])
|
|
1707
|
+
}, [u("span", yn, D(e.translations.previous), 1)], 8, vn)) : c("", !0)], 2)) : c("", !0),
|
|
1708
|
+
(S(!0), l(i, null, T(f.value, (t) => (S(), l("li", {
|
|
1281
1709
|
key: t,
|
|
1282
|
-
class:
|
|
1710
|
+
class: _({
|
|
1283
1711
|
active: t === e.pagination.current_page,
|
|
1284
1712
|
"page-item": !0
|
|
1285
1713
|
})
|
|
1286
|
-
}, [
|
|
1714
|
+
}, [u("a", {
|
|
1287
1715
|
href: "#",
|
|
1288
1716
|
class: "page-link",
|
|
1289
|
-
onClick:
|
|
1290
|
-
},
|
|
1291
|
-
|
|
1717
|
+
onClick: R((e) => g(t), ["prevent"])
|
|
1718
|
+
}, D(t), 9, bn)], 2))), 128)),
|
|
1719
|
+
h() ? (S(), l("li", {
|
|
1292
1720
|
key: 1,
|
|
1293
|
-
class:
|
|
1721
|
+
class: _({
|
|
1294
1722
|
disabled: e.pagination.current_page === e.pagination.last_page || e.pagination.last_page === 0,
|
|
1295
1723
|
"page-item": !0
|
|
1296
1724
|
})
|
|
1297
|
-
}, [e.pagination.current_page === e.pagination.last_page || e.pagination.last_page === 0 ? (
|
|
1725
|
+
}, [e.pagination.current_page === e.pagination.last_page || e.pagination.last_page === 0 ? (S(), l("span", xn, [u("span", Sn, D(e.translations.next), 1)])) : c("", !0), e.pagination.current_page < e.pagination.last_page ? (S(), l("a", {
|
|
1298
1726
|
key: 1,
|
|
1299
1727
|
href: "#",
|
|
1300
1728
|
"aria-label": e.translations.next,
|
|
1301
1729
|
class: "page-link",
|
|
1302
|
-
onClick:
|
|
1303
|
-
}, [
|
|
1304
|
-
], 2)) :
|
|
1730
|
+
onClick: n[1] ||= R((t) => g(e.pagination.current_page + 1), ["prevent"])
|
|
1731
|
+
}, [u("span", wn, D(e.translations.next), 1)], 8, Cn)) : c("", !0)], 2)) : c("", !0)
|
|
1732
|
+
], 2)) : c("", !0)])])])) : c("", !0);
|
|
1305
1733
|
}
|
|
1306
1734
|
}, Q = {
|
|
1307
1735
|
__name: "Sortable",
|
|
@@ -1319,17 +1747,18 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
1319
1747
|
setup(e, { emit: t }) {
|
|
1320
1748
|
let n = e, r = t;
|
|
1321
1749
|
function i(e) {
|
|
1750
|
+
let t = n.orderBy.column === e && n.orderBy.direction === "asc" ? "desc" : "asc";
|
|
1322
1751
|
r("sort", {
|
|
1323
1752
|
column: e,
|
|
1324
|
-
direction:
|
|
1753
|
+
direction: t
|
|
1325
1754
|
});
|
|
1326
1755
|
}
|
|
1327
|
-
return (t, n) => (
|
|
1756
|
+
return (t, n) => (S(), l("th", null, [u("a", { onClick: n[0] ||= R((t) => i(e.column), ["stop"]) }, [u("span", { class: _(["fa", {
|
|
1328
1757
|
"fa-arrow-down-wide-short": e.orderBy.column === e.column && e.orderBy.direction === "asc",
|
|
1329
1758
|
"fa-arrow-down-short-wide": e.orderBy.column === e.column && e.orderBy.direction === "desc"
|
|
1330
|
-
}]) }, null, 2),
|
|
1759
|
+
}]) }, null, 2), E(t.$slots, "default")])]));
|
|
1331
1760
|
}
|
|
1332
|
-
},
|
|
1761
|
+
}, En = { class: "input-group" }, Dn = { class: "form-control d-flex align-items-center p-0" }, On = ["placeholder", "value"], kn = {
|
|
1333
1762
|
__name: "Search",
|
|
1334
1763
|
props: {
|
|
1335
1764
|
search: {
|
|
@@ -1354,30 +1783,30 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
1354
1783
|
},
|
|
1355
1784
|
emits: ["update:search"],
|
|
1356
1785
|
setup(e, { emit: t }) {
|
|
1357
|
-
let n = e, r = t, i =
|
|
1358
|
-
function
|
|
1359
|
-
|
|
1786
|
+
let n = e, r = t, i = w(null), a = null;
|
|
1787
|
+
function o() {
|
|
1788
|
+
a &&= (clearTimeout(a), null);
|
|
1360
1789
|
}
|
|
1361
|
-
function
|
|
1790
|
+
function s(e) {
|
|
1362
1791
|
let t = e.target.value;
|
|
1363
|
-
r("update:search", t),
|
|
1792
|
+
r("update:search", t), o(), a = setTimeout(() => {
|
|
1364
1793
|
n.filterFn("search", t);
|
|
1365
1794
|
}, n.debounce);
|
|
1366
1795
|
}
|
|
1367
1796
|
function f() {
|
|
1368
|
-
|
|
1797
|
+
o(), n.filterFn("search", n.search);
|
|
1369
1798
|
}
|
|
1370
1799
|
function p() {
|
|
1371
|
-
|
|
1800
|
+
o();
|
|
1372
1801
|
let e = i.value?.value ?? n.search;
|
|
1373
1802
|
r("update:search", e), n.filterFn("search", e);
|
|
1374
1803
|
}
|
|
1375
1804
|
function m() {
|
|
1376
|
-
|
|
1805
|
+
o(), r("update:search", ""), n.filterFn("search", "");
|
|
1377
1806
|
}
|
|
1378
|
-
return
|
|
1379
|
-
|
|
1380
|
-
|
|
1807
|
+
return b(o), (t, n) => (S(), l("div", En, [
|
|
1808
|
+
E(t.$slots, "prepend"),
|
|
1809
|
+
u("div", Dn, [u("input", {
|
|
1381
1810
|
ref_key: "inputRef",
|
|
1382
1811
|
ref: i,
|
|
1383
1812
|
class: "border-0 shadow-none ps-3 flex-grow-1",
|
|
@@ -1387,22 +1816,22 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
1387
1816
|
},
|
|
1388
1817
|
placeholder: e.translations.search_placeholder,
|
|
1389
1818
|
value: e.search,
|
|
1390
|
-
onInput:
|
|
1391
|
-
onKeyup:
|
|
1392
|
-
}, null, 40,
|
|
1819
|
+
onInput: s,
|
|
1820
|
+
onKeyup: L(p, ["enter"])
|
|
1821
|
+
}, null, 40, On), e.search ? (S(), l("button", {
|
|
1393
1822
|
key: 0,
|
|
1394
1823
|
type: "button",
|
|
1395
1824
|
class: "border-0 bg-transparent pe-1 ps-0 flex-shrink-0 text-danger",
|
|
1396
1825
|
onClick: m
|
|
1397
|
-
}, [...n[0] ||= [
|
|
1398
|
-
|
|
1826
|
+
}, [...n[0] ||= [u("i", { class: "fa fa-times" }, null, -1)]])) : c("", !0)]),
|
|
1827
|
+
u("button", {
|
|
1399
1828
|
type: "button",
|
|
1400
1829
|
class: "btn btn-primary",
|
|
1401
1830
|
onClick: f
|
|
1402
|
-
}, [n[1] ||=
|
|
1831
|
+
}, [n[1] ||= u("i", { class: "fa fa-search" }, null, -1), d("\xA0 " + D(e.translations.search_btn), 1)])
|
|
1403
1832
|
]));
|
|
1404
1833
|
}
|
|
1405
|
-
},
|
|
1834
|
+
}, An = ["value"], jn = {
|
|
1406
1835
|
__name: "PerPage",
|
|
1407
1836
|
props: { modelValue: {
|
|
1408
1837
|
type: [Number, String],
|
|
@@ -1410,20 +1839,20 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
1410
1839
|
} },
|
|
1411
1840
|
emits: ["update:modelValue"],
|
|
1412
1841
|
setup(e) {
|
|
1413
|
-
return (t, n) => (
|
|
1842
|
+
return (t, n) => (S(), l("select", {
|
|
1414
1843
|
class: "form-select",
|
|
1415
1844
|
value: e.modelValue,
|
|
1416
1845
|
onChange: n[0] ||= (e) => t.$emit("update:modelValue", +e.target.value)
|
|
1417
1846
|
}, [...n[1] ||= [
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
]], 40,
|
|
1847
|
+
u("option", { value: "10" }, "10", -1),
|
|
1848
|
+
u("option", { value: "25" }, "25", -1),
|
|
1849
|
+
u("option", { value: "100" }, "100", -1)
|
|
1850
|
+
]], 40, An));
|
|
1422
1851
|
}
|
|
1423
|
-
},
|
|
1852
|
+
}, Mn = {
|
|
1424
1853
|
key: 0,
|
|
1425
1854
|
class: "no-items-found"
|
|
1426
|
-
},
|
|
1855
|
+
}, Nn = ["href"], Pn = {
|
|
1427
1856
|
__name: "EmptyState",
|
|
1428
1857
|
props: {
|
|
1429
1858
|
show: {
|
|
@@ -1444,19 +1873,19 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
1444
1873
|
}
|
|
1445
1874
|
},
|
|
1446
1875
|
setup(e) {
|
|
1447
|
-
return (t, n) => e.show ? (
|
|
1448
|
-
n[1] ||=
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
e.createUrl ? (
|
|
1876
|
+
return (t, n) => e.show ? (S(), l("div", Mn, [
|
|
1877
|
+
n[1] ||= u("i", { class: "fa fa-magnifying-glass" }, null, -1),
|
|
1878
|
+
u("h3", null, D(e.translations.no_items), 1),
|
|
1879
|
+
u("p", null, D(e.translations.try_changing_items), 1),
|
|
1880
|
+
e.createUrl ? (S(), l("a", {
|
|
1452
1881
|
key: 0,
|
|
1453
1882
|
class: "btn btn-primary btn-spinner",
|
|
1454
1883
|
href: e.createUrl,
|
|
1455
1884
|
role: "button"
|
|
1456
|
-
}, [n[0] ||=
|
|
1457
|
-
])) :
|
|
1885
|
+
}, [n[0] ||= u("i", { class: "fa fa-plus" }, null, -1), d("\xA0 " + D(e.translations.create_btn), 1)], 8, Nn)) : c("", !0)
|
|
1886
|
+
])) : c("", !0);
|
|
1458
1887
|
}
|
|
1459
|
-
},
|
|
1888
|
+
}, Fn = ["checked"], In = {
|
|
1460
1889
|
__name: "BulkCheckboxHeader",
|
|
1461
1890
|
props: {
|
|
1462
1891
|
isClickedAll: {
|
|
@@ -1469,24 +1898,24 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
1469
1898
|
}
|
|
1470
1899
|
},
|
|
1471
1900
|
setup(e) {
|
|
1472
|
-
return (
|
|
1901
|
+
return (t, n) => (S(), l(i, null, [u("input", {
|
|
1473
1902
|
id: "enabled",
|
|
1474
1903
|
class: "form-check-input",
|
|
1475
1904
|
type: "checkbox",
|
|
1476
1905
|
checked: e.isClickedAll,
|
|
1477
1906
|
name: "enabled_fake_element",
|
|
1478
|
-
onClick:
|
|
1479
|
-
}, null, 8,
|
|
1907
|
+
onClick: n[0] ||= (t) => e.onToggleAll()
|
|
1908
|
+
}, null, 8, Fn), n[1] ||= u("label", {
|
|
1480
1909
|
class: "form-check-label",
|
|
1481
1910
|
for: "enabled"
|
|
1482
1911
|
}, " # ", -1)], 64));
|
|
1483
1912
|
}
|
|
1484
|
-
},
|
|
1913
|
+
}, Ln = [
|
|
1485
1914
|
"id",
|
|
1486
1915
|
"checked",
|
|
1487
1916
|
"name",
|
|
1488
1917
|
"disabled"
|
|
1489
|
-
],
|
|
1918
|
+
], Rn = ["for"], zn = {
|
|
1490
1919
|
__name: "BulkCheckboxRow",
|
|
1491
1920
|
props: {
|
|
1492
1921
|
itemId: {
|
|
@@ -1507,26 +1936,26 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
1507
1936
|
}
|
|
1508
1937
|
},
|
|
1509
1938
|
setup(e) {
|
|
1510
|
-
return (
|
|
1939
|
+
return (t, n) => (S(), l(i, null, [u("input", {
|
|
1511
1940
|
id: "enabled" + e.itemId,
|
|
1512
1941
|
class: "form-check-input",
|
|
1513
1942
|
type: "checkbox",
|
|
1514
1943
|
checked: e.checked,
|
|
1515
1944
|
name: "enabled" + e.itemId + "_fake_element",
|
|
1516
1945
|
disabled: e.disabled,
|
|
1517
|
-
onClick:
|
|
1518
|
-
}, null, 8,
|
|
1946
|
+
onClick: n[0] ||= (t) => e.onToggle(e.itemId)
|
|
1947
|
+
}, null, 8, Ln), u("label", {
|
|
1519
1948
|
class: "form-check-label",
|
|
1520
1949
|
for: "enabled" + e.itemId
|
|
1521
|
-
}, null, 8,
|
|
1950
|
+
}, null, 8, Rn)], 64));
|
|
1522
1951
|
}
|
|
1523
|
-
},
|
|
1952
|
+
}, Bn = { class: "align-middle fw-light text-dark" }, Vn = {
|
|
1524
1953
|
key: 0,
|
|
1525
1954
|
class: "fa fa-spinner"
|
|
1526
|
-
},
|
|
1955
|
+
}, Hn = {
|
|
1527
1956
|
key: 1,
|
|
1528
1957
|
class: "text-primary"
|
|
1529
|
-
},
|
|
1958
|
+
}, Un = { class: "float-end pe-2" }, Wn = {
|
|
1530
1959
|
__name: "BulkOperationsBar",
|
|
1531
1960
|
props: {
|
|
1532
1961
|
selectedCount: {
|
|
@@ -1564,29 +1993,29 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
1564
1993
|
}
|
|
1565
1994
|
},
|
|
1566
1995
|
setup(e) {
|
|
1567
|
-
return (
|
|
1568
|
-
|
|
1569
|
-
e.selectedCount < e.totalCount ? (
|
|
1996
|
+
return (t, n) => (S(), l(i, null, [u("span", Bn, [
|
|
1997
|
+
d(D(e.translations.selected_items) + " " + D(e.selectedCount) + ". ", 1),
|
|
1998
|
+
e.selectedCount < e.totalCount ? (S(), l("a", {
|
|
1570
1999
|
key: 0,
|
|
1571
2000
|
href: "javascript:void(0)",
|
|
1572
2001
|
class: "text-primary",
|
|
1573
|
-
onClick:
|
|
1574
|
-
}, [e.loading ? (
|
|
1575
|
-
e.selectedCount < e.totalCount ? (
|
|
1576
|
-
|
|
2002
|
+
onClick: n[0] ||= (t) => e.onCheckAll()
|
|
2003
|
+
}, [e.loading ? (S(), l("i", Vn)) : c("", !0), d(" " + D(e.translations.check_all_items) + " " + D(e.totalCount), 1)])) : c("", !0),
|
|
2004
|
+
e.selectedCount < e.totalCount ? (S(), l("span", Hn, " | ")) : c("", !0),
|
|
2005
|
+
u("a", {
|
|
1577
2006
|
href: "javascript:void(0)",
|
|
1578
2007
|
class: "text-primary",
|
|
1579
|
-
onClick:
|
|
1580
|
-
},
|
|
1581
|
-
]),
|
|
2008
|
+
onClick: n[1] ||= (t) => e.onUncheckAll()
|
|
2009
|
+
}, D(e.translations.uncheck_all_items), 1)
|
|
2010
|
+
]), u("span", Un, [E(t.$slots, "default", {}, () => [u("button", {
|
|
1582
2011
|
class: "btn btn-sm btn-danger px-4",
|
|
1583
|
-
onClick:
|
|
1584
|
-
},
|
|
2012
|
+
onClick: n[2] ||= (t) => e.onBulkDelete()
|
|
2013
|
+
}, D(e.translations.delete_btn), 1)])])], 64));
|
|
1585
2014
|
}
|
|
1586
|
-
},
|
|
2015
|
+
}, Gn = {
|
|
1587
2016
|
class: "modal-dialog modal-dialog-centered",
|
|
1588
2017
|
role: "document"
|
|
1589
|
-
},
|
|
2018
|
+
}, Kn = { class: "modal-content" }, qn = { class: "modal-header" }, Jn = { class: "modal-title" }, Yn = { class: "modal-body" }, Xn = { class: "modal-footer" }, Zn = {
|
|
1590
2019
|
__name: "ConfirmModal",
|
|
1591
2020
|
props: {
|
|
1592
2021
|
show: {
|
|
@@ -1615,42 +2044,42 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
1615
2044
|
},
|
|
1616
2045
|
emits: ["confirm", "cancel"],
|
|
1617
2046
|
setup(e) {
|
|
1618
|
-
let t = e,
|
|
2047
|
+
let t = e, n = o(() => {
|
|
1619
2048
|
let e = `btn btn-${t.variant}`;
|
|
1620
2049
|
return ["success", "primary"].includes(t.variant) ? `${e} text-white` : e;
|
|
1621
|
-
}),
|
|
1622
|
-
return (t,
|
|
2050
|
+
}), r = o(() => t.variant === "danger" ? "fa fa-triangle-exclamation text-danger" : t.variant === "warning" ? "fa fa-triangle-exclamation text-warning" : t.variant === "success" ? "fa fa-circle-check text-success" : "fa fa-circle-question text-primary");
|
|
2051
|
+
return (t, i) => (S(), s(a, { to: "body" }, [e.show ? (S(), l("div", {
|
|
1623
2052
|
key: 0,
|
|
1624
2053
|
class: "modal-backdrop fade show",
|
|
1625
|
-
onClick:
|
|
1626
|
-
})) :
|
|
2054
|
+
onClick: i[0] ||= (e) => t.$emit("cancel")
|
|
2055
|
+
})) : c("", !0), e.show ? (S(), l("div", {
|
|
1627
2056
|
key: 1,
|
|
1628
2057
|
class: "modal fade show d-block",
|
|
1629
2058
|
tabindex: "-1",
|
|
1630
2059
|
role: "dialog",
|
|
1631
|
-
onClick:
|
|
1632
|
-
}, [
|
|
1633
|
-
|
|
2060
|
+
onClick: i[4] ||= R((e) => t.$emit("cancel"), ["self"])
|
|
2061
|
+
}, [u("div", Gn, [u("div", Kn, [
|
|
2062
|
+
u("div", qn, [u("h5", Jn, [u("i", { class: _([r.value, "me-2"]) }, null, 2), d(" " + D(e.translations.confirm_title), 1)]), u("button", {
|
|
1634
2063
|
type: "button",
|
|
1635
2064
|
class: "btn-close",
|
|
1636
|
-
onClick:
|
|
2065
|
+
onClick: i[1] ||= (e) => t.$emit("cancel")
|
|
1637
2066
|
})]),
|
|
1638
|
-
|
|
1639
|
-
|
|
2067
|
+
u("div", Yn, [u("p", null, D(e.translations.confirm_text), 1)]),
|
|
2068
|
+
u("div", Xn, [u("button", {
|
|
1640
2069
|
type: "button",
|
|
1641
2070
|
class: "btn btn-secondary",
|
|
1642
|
-
onClick:
|
|
1643
|
-
},
|
|
2071
|
+
onClick: i[2] ||= (e) => t.$emit("cancel")
|
|
2072
|
+
}, D(e.translations.cancel_btn), 1), u("button", {
|
|
1644
2073
|
type: "button",
|
|
1645
|
-
class:
|
|
1646
|
-
onClick:
|
|
1647
|
-
},
|
|
1648
|
-
])])])) :
|
|
2074
|
+
class: _(n.value),
|
|
2075
|
+
onClick: i[3] ||= (e) => t.$emit("confirm")
|
|
2076
|
+
}, D(e.translations.confirm_btn), 3)])
|
|
2077
|
+
])])])) : c("", !0)]));
|
|
1649
2078
|
}
|
|
1650
|
-
},
|
|
2079
|
+
}, Qn = { key: 0 }, $n = { key: 1 }, er = ["title"], tr = { key: 2 }, nr = ["title"], rr = { key: 3 }, ir = ["title", "disabled"], ar = { key: 4 }, or = ["title", "disabled"], sr = {
|
|
1651
2080
|
key: 6,
|
|
1652
2081
|
class: "publish-later-modal"
|
|
1653
|
-
},
|
|
2082
|
+
}, cr = { class: "d-flex justify-content-between align-items-center mb-2" }, lr = { class: "mt-2 text-end" }, ur = ["disabled"], dr = {
|
|
1654
2083
|
__name: "PublishedAtColumn",
|
|
1655
2084
|
props: {
|
|
1656
2085
|
item: {
|
|
@@ -1682,142 +2111,142 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
1682
2111
|
}
|
|
1683
2112
|
},
|
|
1684
2113
|
emits: ["update:item"],
|
|
1685
|
-
setup(e, { emit:
|
|
1686
|
-
let
|
|
1687
|
-
function
|
|
1688
|
-
p.value =
|
|
2114
|
+
setup(e, { emit: t }) {
|
|
2115
|
+
let n = window.axios, r = Y(), a = e, o = t, s = w(!1), p = w(null), m = w(!1), h = w(!1), g = w(null), _ = w({}), v = w("danger");
|
|
2116
|
+
function y() {
|
|
2117
|
+
p.value = a.item.published_at || null, s.value = !0;
|
|
1689
2118
|
}
|
|
1690
|
-
function
|
|
1691
|
-
p.value && (m.value = !0,
|
|
1692
|
-
|
|
1693
|
-
...
|
|
2119
|
+
function b() {
|
|
2120
|
+
p.value && (m.value = !0, n.post(a.url, { published_at: p.value }).then((e) => {
|
|
2121
|
+
o("update:item", {
|
|
2122
|
+
...a.item,
|
|
1694
2123
|
published_at: e.data.object.published_at
|
|
1695
|
-
}),
|
|
2124
|
+
}), s.value = !1, W(e.data.message);
|
|
1696
2125
|
}, (e) => {
|
|
1697
|
-
|
|
2126
|
+
G(e.response?.data?.message);
|
|
1698
2127
|
}).finally(() => {
|
|
1699
2128
|
m.value = !1;
|
|
1700
2129
|
}));
|
|
1701
2130
|
}
|
|
1702
|
-
function
|
|
2131
|
+
function x() {
|
|
1703
2132
|
g.value = "publish", v.value = "success", _.value = {
|
|
1704
|
-
confirm_title:
|
|
1705
|
-
confirm_text:
|
|
1706
|
-
confirm_btn:
|
|
2133
|
+
confirm_title: a.translations.publish_now,
|
|
2134
|
+
confirm_text: a.translations.confirm_publish_now,
|
|
2135
|
+
confirm_btn: a.translations.publish_now,
|
|
1707
2136
|
cancel_btn: "Cancel"
|
|
1708
2137
|
}, h.value = !0;
|
|
1709
2138
|
}
|
|
1710
|
-
function
|
|
2139
|
+
function C() {
|
|
1711
2140
|
g.value = "unpublish", v.value = "danger", _.value = {
|
|
1712
|
-
confirm_title:
|
|
1713
|
-
confirm_text:
|
|
1714
|
-
confirm_btn:
|
|
2141
|
+
confirm_title: a.translations.unpublish_now,
|
|
2142
|
+
confirm_text: a.translations.confirm_unpublish_now,
|
|
2143
|
+
confirm_btn: a.translations.unpublish_now,
|
|
1715
2144
|
cancel_btn: "Cancel"
|
|
1716
2145
|
}, h.value = !0;
|
|
1717
2146
|
}
|
|
1718
|
-
function
|
|
1719
|
-
h.value = !1, g.value === "publish" ?
|
|
2147
|
+
function T() {
|
|
2148
|
+
h.value = !1, g.value === "publish" ? O() : g.value === "unpublish" && A(), g.value = null;
|
|
1720
2149
|
}
|
|
1721
|
-
function
|
|
2150
|
+
function E() {
|
|
1722
2151
|
h.value = !1, g.value = null;
|
|
1723
2152
|
}
|
|
1724
|
-
function
|
|
1725
|
-
m.value = !0,
|
|
1726
|
-
|
|
1727
|
-
...
|
|
2153
|
+
function O() {
|
|
2154
|
+
m.value = !0, n.post(a.url, { publish_now: !0 }).then((e) => {
|
|
2155
|
+
o("update:item", {
|
|
2156
|
+
...a.item,
|
|
1728
2157
|
published_at: e.data.object.published_at
|
|
1729
|
-
}),
|
|
2158
|
+
}), W(e.data.message);
|
|
1730
2159
|
}, (e) => {
|
|
1731
|
-
|
|
2160
|
+
G(e.response?.data?.message);
|
|
1732
2161
|
}).finally(() => {
|
|
1733
2162
|
m.value = !1;
|
|
1734
2163
|
});
|
|
1735
2164
|
}
|
|
1736
2165
|
function A() {
|
|
1737
|
-
m.value = !0,
|
|
1738
|
-
|
|
1739
|
-
...
|
|
2166
|
+
m.value = !0, n.post(a.url, { unpublish_now: !0 }).then((e) => {
|
|
2167
|
+
o("update:item", {
|
|
2168
|
+
...a.item,
|
|
1740
2169
|
published_at: e.data.object.published_at,
|
|
1741
2170
|
published_to: e.data.object.published_to
|
|
1742
|
-
}),
|
|
2171
|
+
}), W(e.data.message);
|
|
1743
2172
|
}, (e) => {
|
|
1744
|
-
|
|
2173
|
+
G(e.response?.data?.message);
|
|
1745
2174
|
}).finally(() => {
|
|
1746
2175
|
m.value = !1;
|
|
1747
2176
|
});
|
|
1748
2177
|
}
|
|
1749
|
-
return (
|
|
1750
|
-
e.item.published_at <= e.now ? (
|
|
1751
|
-
e.item.published_at > e.now ? (
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
2178
|
+
return (t, n) => (S(), l(i, null, [
|
|
2179
|
+
e.item.published_at <= e.now ? (S(), l("span", Qn, D(k(q)(e.item.published_at, e.datetimeFormat)), 1)) : c("", !0),
|
|
2180
|
+
e.item.published_at > e.now ? (S(), l("span", $n, [
|
|
2181
|
+
u("small", null, D(e.translations.will_be_published), 1),
|
|
2182
|
+
n[9] ||= u("br", null, null, -1),
|
|
2183
|
+
d(" " + D(k(q)(e.item.published_at, e.datetimeFormat)) + " ", 1),
|
|
2184
|
+
u("span", {
|
|
1756
2185
|
class: "cursor-pointer",
|
|
1757
2186
|
title: e.translations.publish_later,
|
|
1758
2187
|
role: "button",
|
|
1759
|
-
onClick:
|
|
1760
|
-
}, [...
|
|
1761
|
-
])) :
|
|
1762
|
-
e.item.published_at ?
|
|
2188
|
+
onClick: n[0] ||= (e) => y()
|
|
2189
|
+
}, [...n[8] ||= [u("i", { class: "fa fa-calendar" }, null, -1)]], 8, er)
|
|
2190
|
+
])) : c("", !0),
|
|
2191
|
+
e.item.published_at ? c("", !0) : (S(), l("div", tr, [u("span", {
|
|
1763
2192
|
class: "btn btn-sm btn-info text-white mb-1",
|
|
1764
2193
|
title: e.translations.publish_later,
|
|
1765
2194
|
role: "button",
|
|
1766
|
-
onClick:
|
|
1767
|
-
}, [
|
|
1768
|
-
!e.item.published_at || e.item.published_at > e.now ? (
|
|
2195
|
+
onClick: n[1] ||= (e) => y()
|
|
2196
|
+
}, [n[10] ||= u("i", { class: "fa fa-calendar" }, null, -1), d("\xA0\xA0" + D(e.translations.publish_later), 1)], 8, nr)])),
|
|
2197
|
+
!e.item.published_at || e.item.published_at > e.now ? (S(), l("div", rr, [u("form", {
|
|
1769
2198
|
class: "d-inline",
|
|
1770
|
-
onSubmit:
|
|
1771
|
-
}, [
|
|
2199
|
+
onSubmit: n[2] ||= R((e) => x(), ["prevent"])
|
|
2200
|
+
}, [u("button", {
|
|
1772
2201
|
type: "submit",
|
|
1773
2202
|
class: "btn btn-sm btn-success text-white",
|
|
1774
2203
|
title: e.translations.publish_now,
|
|
1775
2204
|
disabled: m.value
|
|
1776
|
-
}, [
|
|
1777
|
-
e.item.published_at && e.item.published_at < e.now ? (
|
|
2205
|
+
}, [n[11] ||= u("i", { class: "fa fa-paper-plane" }, null, -1), d("\xA0\xA0" + D(e.translations.publish_now), 1)], 8, ir)], 32)])) : c("", !0),
|
|
2206
|
+
e.item.published_at && e.item.published_at < e.now ? (S(), l("div", ar, [u("form", {
|
|
1778
2207
|
class: "d-inline",
|
|
1779
|
-
onSubmit:
|
|
1780
|
-
}, [
|
|
2208
|
+
onSubmit: n[3] ||= R((e) => C(), ["prevent"])
|
|
2209
|
+
}, [u("button", {
|
|
1781
2210
|
type: "submit",
|
|
1782
2211
|
class: "btn btn-sm btn-danger",
|
|
1783
2212
|
title: e.translations.unpublish_now,
|
|
1784
2213
|
disabled: m.value
|
|
1785
|
-
}, [
|
|
1786
|
-
|
|
2214
|
+
}, [n[12] ||= u("i", { class: "fa fa-paper-plane" }, null, -1), d("\xA0\xA0" + D(e.translations.unpublish_now), 1)], 8, or)], 32)])) : c("", !0),
|
|
2215
|
+
s.value ? (S(), l("div", {
|
|
1787
2216
|
key: 5,
|
|
1788
2217
|
class: "publish-later-backdrop",
|
|
1789
|
-
onClick:
|
|
1790
|
-
})) :
|
|
1791
|
-
|
|
1792
|
-
|
|
2218
|
+
onClick: n[4] ||= R((e) => s.value = !1, ["self"])
|
|
2219
|
+
})) : c("", !0),
|
|
2220
|
+
s.value ? (S(), l("div", sr, [
|
|
2221
|
+
u("div", cr, [u("strong", null, D(e.translations.publish_later), 1), u("button", {
|
|
1793
2222
|
type: "button",
|
|
1794
2223
|
class: "btn-close btn-close-sm",
|
|
1795
2224
|
"aria-label": "Close",
|
|
1796
|
-
onClick:
|
|
2225
|
+
onClick: n[5] ||= (e) => s.value = !1
|
|
1797
2226
|
})]),
|
|
1798
|
-
|
|
2227
|
+
f(k(Ke), {
|
|
1799
2228
|
modelValue: p.value,
|
|
1800
|
-
"onUpdate:modelValue":
|
|
2229
|
+
"onUpdate:modelValue": n[6] ||= (e) => p.value = e,
|
|
1801
2230
|
"model-type": "yyyy-MM-dd HH:mm:ss",
|
|
1802
2231
|
format: "dd.MM.yyyy HH:mm",
|
|
1803
|
-
"format-locale":
|
|
2232
|
+
"format-locale": k(r),
|
|
1804
2233
|
"enable-time-picker": !0,
|
|
1805
2234
|
"enable-seconds": !1,
|
|
1806
2235
|
inline: !0,
|
|
1807
2236
|
"auto-apply": ""
|
|
1808
2237
|
}, null, 8, ["modelValue", "format-locale"]),
|
|
1809
|
-
|
|
2238
|
+
u("div", lr, [u("button", {
|
|
1810
2239
|
class: "btn btn-sm btn-primary text-white",
|
|
1811
2240
|
disabled: m.value || !p.value,
|
|
1812
|
-
onClick:
|
|
1813
|
-
}, " Save ", 8,
|
|
1814
|
-
])) :
|
|
1815
|
-
|
|
2241
|
+
onClick: n[7] ||= (e) => b()
|
|
2242
|
+
}, " Save ", 8, ur)])
|
|
2243
|
+
])) : c("", !0),
|
|
2244
|
+
f(Zn, {
|
|
1816
2245
|
show: h.value,
|
|
1817
2246
|
translations: _.value,
|
|
1818
2247
|
variant: v.value,
|
|
1819
|
-
onConfirm:
|
|
1820
|
-
onCancel:
|
|
2248
|
+
onConfirm: T,
|
|
2249
|
+
onCancel: E
|
|
1821
2250
|
}, null, 8, [
|
|
1822
2251
|
"show",
|
|
1823
2252
|
"translations",
|
|
@@ -1825,7 +2254,7 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
1825
2254
|
])
|
|
1826
2255
|
], 64));
|
|
1827
2256
|
}
|
|
1828
|
-
},
|
|
2257
|
+
}, fr = ["href"], pr = ["href"], mr = {
|
|
1829
2258
|
__name: "ListingHeader",
|
|
1830
2259
|
props: {
|
|
1831
2260
|
createUrl: {
|
|
@@ -1846,24 +2275,24 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
1846
2275
|
}
|
|
1847
2276
|
},
|
|
1848
2277
|
setup(e) {
|
|
1849
|
-
return (
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
e.exportUrl ? (
|
|
2278
|
+
return (t, n) => (S(), l(i, null, [
|
|
2279
|
+
n[2] ||= u("i", { class: "fa fa-align-justify" }, null, -1),
|
|
2280
|
+
d(" " + D(e.translations.listing_title) + " ", 1),
|
|
2281
|
+
e.exportUrl ? (S(), l("a", {
|
|
1853
2282
|
key: 0,
|
|
1854
2283
|
class: "btn btn-primary btn-sm float-end mb-0 ms-2",
|
|
1855
2284
|
href: e.exportUrl,
|
|
1856
2285
|
role: "button"
|
|
1857
|
-
}, [
|
|
1858
|
-
e.createUrl ? (
|
|
2286
|
+
}, [n[0] ||= u("i", { class: "fa fa-file-excel" }, null, -1), d("\xA0 " + D(e.translations.export_btn), 1)], 8, fr)) : c("", !0),
|
|
2287
|
+
e.createUrl ? (S(), l("a", {
|
|
1859
2288
|
key: 1,
|
|
1860
2289
|
class: "btn btn-primary btn-spinner btn-sm float-end mb-0",
|
|
1861
2290
|
href: e.createUrl,
|
|
1862
2291
|
role: "button"
|
|
1863
|
-
}, [
|
|
2292
|
+
}, [n[1] ||= u("i", { class: "fa fa-plus" }, null, -1), d("\xA0 " + D(e.translations.create_btn), 1)], 8, pr)) : c("", !0)
|
|
1864
2293
|
], 64));
|
|
1865
2294
|
}
|
|
1866
|
-
},
|
|
2295
|
+
}, hr = ["href", "title"], gr = {
|
|
1867
2296
|
__name: "EditButton",
|
|
1868
2297
|
props: {
|
|
1869
2298
|
url: {
|
|
@@ -1876,14 +2305,14 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
1876
2305
|
}
|
|
1877
2306
|
},
|
|
1878
2307
|
setup(e) {
|
|
1879
|
-
return (t, n) => (
|
|
2308
|
+
return (t, n) => (S(), l("a", {
|
|
1880
2309
|
class: "btn btn-sm btn-spinner btn-info",
|
|
1881
2310
|
href: e.url,
|
|
1882
2311
|
title: e.translations.edit_btn,
|
|
1883
2312
|
role: "button"
|
|
1884
|
-
}, [...n[0] ||= [
|
|
2313
|
+
}, [...n[0] ||= [u("i", { class: "fa fa-edit" }, null, -1)]], 8, hr));
|
|
1885
2314
|
}
|
|
1886
|
-
},
|
|
2315
|
+
}, _r = ["title"], vr = {
|
|
1887
2316
|
__name: "DeleteButton",
|
|
1888
2317
|
props: {
|
|
1889
2318
|
url: {
|
|
@@ -1902,28 +2331,28 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
1902
2331
|
}
|
|
1903
2332
|
},
|
|
1904
2333
|
emits: ["deleted"],
|
|
1905
|
-
setup(e, { emit:
|
|
1906
|
-
let
|
|
1907
|
-
function
|
|
1908
|
-
|
|
1909
|
-
|
|
2334
|
+
setup(e, { emit: t }) {
|
|
2335
|
+
let n = window.axios, r = e, a = t, o = w(!1);
|
|
2336
|
+
function s() {
|
|
2337
|
+
o.value = !1, n.delete(r.url).then((e) => {
|
|
2338
|
+
W(e.data.message), a("deleted");
|
|
1910
2339
|
}, (e) => {
|
|
1911
|
-
|
|
2340
|
+
G(e.response?.data?.message);
|
|
1912
2341
|
});
|
|
1913
2342
|
}
|
|
1914
|
-
return (
|
|
2343
|
+
return (t, n) => (S(), l(i, null, [u("button", {
|
|
1915
2344
|
type: "button",
|
|
1916
2345
|
class: "btn btn-sm btn-danger",
|
|
1917
2346
|
title: e.translations.delete_btn,
|
|
1918
|
-
onClick:
|
|
1919
|
-
}, [...
|
|
1920
|
-
show:
|
|
2347
|
+
onClick: n[0] ||= (e) => o.value = !0
|
|
2348
|
+
}, [...n[2] ||= [u("i", { class: "fa fa-trash" }, null, -1)]], 8, _r), f(Zn, {
|
|
2349
|
+
show: o.value,
|
|
1921
2350
|
translations: e.translations,
|
|
1922
|
-
onConfirm:
|
|
1923
|
-
onCancel:
|
|
2351
|
+
onConfirm: s,
|
|
2352
|
+
onCancel: n[1] ||= (e) => o.value = !1
|
|
1924
2353
|
}, null, 8, ["show", "translations"])], 64));
|
|
1925
2354
|
}
|
|
1926
|
-
},
|
|
2355
|
+
}, yr = { class: "form-check form-switch form-switch-inline" }, br = ["checked"], xr = {
|
|
1927
2356
|
__name: "ToggleSwitch",
|
|
1928
2357
|
props: {
|
|
1929
2358
|
modelValue: {
|
|
@@ -1953,38 +2382,83 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
1953
2382
|
},
|
|
1954
2383
|
emits: ["update:modelValue"],
|
|
1955
2384
|
setup(e, { emit: t }) {
|
|
1956
|
-
let n = window.axios,
|
|
1957
|
-
function
|
|
1958
|
-
let e = !
|
|
1959
|
-
|
|
2385
|
+
let n = window.axios, r = e, i = t, a = o(() => `form-switch-${r.variant}`);
|
|
2386
|
+
function s() {
|
|
2387
|
+
let e = !r.modelValue;
|
|
2388
|
+
i("update:modelValue", e);
|
|
1960
2389
|
let t = {
|
|
1961
|
-
...
|
|
1962
|
-
[
|
|
2390
|
+
...r.row,
|
|
2391
|
+
[r.column]: e
|
|
1963
2392
|
};
|
|
1964
|
-
n.post(
|
|
1965
|
-
|
|
2393
|
+
n.post(r.url, t).then((e) => {
|
|
2394
|
+
W(e.data.message);
|
|
1966
2395
|
}, (e) => {
|
|
1967
|
-
|
|
2396
|
+
i("update:modelValue", r.modelValue), G(e.response?.data?.message);
|
|
1968
2397
|
});
|
|
1969
2398
|
}
|
|
1970
|
-
return (t, n) => (
|
|
1971
|
-
class:
|
|
2399
|
+
return (t, n) => (S(), l("div", yr, [u("input", {
|
|
2400
|
+
class: _(["form-check-input", a.value]),
|
|
1972
2401
|
type: "checkbox",
|
|
1973
2402
|
role: "switch",
|
|
1974
2403
|
checked: !!e.modelValue,
|
|
1975
|
-
onChange:
|
|
1976
|
-
}, null, 42,
|
|
2404
|
+
onChange: s
|
|
2405
|
+
}, null, 42, br)]));
|
|
1977
2406
|
}
|
|
1978
|
-
},
|
|
2407
|
+
}, Sr = { class: "form-check form-switch form-switch-inline" }, Cr = ["checked"], wr = {
|
|
2408
|
+
__name: "ReadOnlySwitch",
|
|
2409
|
+
props: {
|
|
2410
|
+
modelValue: {
|
|
2411
|
+
type: [
|
|
2412
|
+
Boolean,
|
|
2413
|
+
Number,
|
|
2414
|
+
String
|
|
2415
|
+
],
|
|
2416
|
+
default: !1
|
|
2417
|
+
},
|
|
2418
|
+
variant: {
|
|
2419
|
+
type: String,
|
|
2420
|
+
default: "success"
|
|
2421
|
+
}
|
|
2422
|
+
},
|
|
2423
|
+
setup(e) {
|
|
2424
|
+
let t = e, n = o(() => `form-switch-${t.variant}`);
|
|
2425
|
+
return (t, r) => (S(), l("div", Sr, [u("input", {
|
|
2426
|
+
class: _(["form-check-input", n.value]),
|
|
2427
|
+
type: "checkbox",
|
|
2428
|
+
role: "switch",
|
|
2429
|
+
checked: !!e.modelValue,
|
|
2430
|
+
disabled: ""
|
|
2431
|
+
}, null, 10, Cr)]));
|
|
2432
|
+
}
|
|
2433
|
+
}, Tr = { class: "mb-3 row align-items-center" }, Er = { class: "col-md-3 col-form-label text-md-end" }, Dr = { class: "col-md-9 col-xl-8" }, Or = {
|
|
2434
|
+
__name: "ShowRow",
|
|
2435
|
+
props: {
|
|
2436
|
+
label: {
|
|
2437
|
+
type: String,
|
|
2438
|
+
required: !0
|
|
2439
|
+
},
|
|
2440
|
+
value: {
|
|
2441
|
+
type: [
|
|
2442
|
+
String,
|
|
2443
|
+
Number,
|
|
2444
|
+
Boolean
|
|
2445
|
+
],
|
|
2446
|
+
default: ""
|
|
2447
|
+
}
|
|
2448
|
+
},
|
|
2449
|
+
setup(e) {
|
|
2450
|
+
return (t, n) => (S(), l("div", Tr, [u("label", Er, D(e.label), 1), u("div", Dr, [E(t.$slots, "default", {}, () => [u("span", null, D(e.value), 1)])])]));
|
|
2451
|
+
}
|
|
2452
|
+
}, kr = { class: "mb-3 row align-items-center" }, Ar = ["for"], jr = { class: "col-md-9 col-xl-8" }, Mr = [
|
|
1979
2453
|
"id",
|
|
1980
2454
|
"type",
|
|
1981
2455
|
"value",
|
|
1982
2456
|
"name",
|
|
1983
2457
|
"placeholder"
|
|
1984
|
-
],
|
|
2458
|
+
], Nr = {
|
|
1985
2459
|
key: 0,
|
|
1986
2460
|
class: "invalid-feedback form-text"
|
|
1987
|
-
},
|
|
2461
|
+
}, Pr = {
|
|
1988
2462
|
__name: "FormInput",
|
|
1989
2463
|
props: {
|
|
1990
2464
|
modelValue: {
|
|
@@ -2014,20 +2488,20 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
2014
2488
|
},
|
|
2015
2489
|
emits: ["update:modelValue"],
|
|
2016
2490
|
setup(e) {
|
|
2017
|
-
return (t, n) => (
|
|
2491
|
+
return (t, n) => (S(), l("div", kr, [u("label", {
|
|
2018
2492
|
for: e.name,
|
|
2019
2493
|
class: "col-md-3 col-form-label text-md-end"
|
|
2020
|
-
},
|
|
2494
|
+
}, D(e.label), 9, Ar), u("div", jr, [u("input", {
|
|
2021
2495
|
id: e.name,
|
|
2022
2496
|
type: e.type,
|
|
2023
2497
|
value: e.modelValue,
|
|
2024
|
-
class:
|
|
2498
|
+
class: _(["form-control", { "is-invalid": e.error }]),
|
|
2025
2499
|
name: e.name,
|
|
2026
2500
|
placeholder: e.placeholder || e.label,
|
|
2027
2501
|
onInput: n[0] ||= (e) => t.$emit("update:modelValue", e.target.value)
|
|
2028
|
-
}, null, 42,
|
|
2502
|
+
}, null, 42, Mr), e.error ? (S(), l("div", Nr, D(e.error), 1)) : c("", !0)])]));
|
|
2029
2503
|
}
|
|
2030
|
-
},
|
|
2504
|
+
}, Fr = {
|
|
2031
2505
|
__name: "FormEmail",
|
|
2032
2506
|
props: {
|
|
2033
2507
|
modelValue: {
|
|
@@ -2053,21 +2527,21 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
2053
2527
|
},
|
|
2054
2528
|
emits: ["update:modelValue"],
|
|
2055
2529
|
setup(e) {
|
|
2056
|
-
return (e, t) => (
|
|
2530
|
+
return (e, t) => (S(), s(Pr, g(e.$props, {
|
|
2057
2531
|
type: "email",
|
|
2058
2532
|
"onUpdate:modelValue": t[0] ||= (t) => e.$emit("update:modelValue", t)
|
|
2059
2533
|
}), null, 16));
|
|
2060
2534
|
}
|
|
2061
|
-
},
|
|
2535
|
+
}, Ir = { class: "mb-3 row align-items-center" }, Lr = ["for"], Rr = { class: "col-md-9 col-xl-8" }, zr = [
|
|
2062
2536
|
"id",
|
|
2063
2537
|
"value",
|
|
2064
2538
|
"name",
|
|
2065
2539
|
"placeholder",
|
|
2066
2540
|
"rows"
|
|
2067
|
-
],
|
|
2541
|
+
], Br = {
|
|
2068
2542
|
key: 0,
|
|
2069
2543
|
class: "invalid-feedback form-text"
|
|
2070
|
-
},
|
|
2544
|
+
}, Vr = {
|
|
2071
2545
|
__name: "FormTextarea",
|
|
2072
2546
|
props: {
|
|
2073
2547
|
modelValue: {
|
|
@@ -2097,27 +2571,27 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
2097
2571
|
},
|
|
2098
2572
|
emits: ["update:modelValue"],
|
|
2099
2573
|
setup(e) {
|
|
2100
|
-
return (t, n) => (
|
|
2574
|
+
return (t, n) => (S(), l("div", Ir, [u("label", {
|
|
2101
2575
|
for: e.name,
|
|
2102
2576
|
class: "col-md-3 col-form-label text-md-end"
|
|
2103
|
-
},
|
|
2577
|
+
}, D(e.label), 9, Lr), u("div", Rr, [u("textarea", {
|
|
2104
2578
|
id: e.name,
|
|
2105
2579
|
value: e.modelValue,
|
|
2106
|
-
class:
|
|
2580
|
+
class: _(["form-control", { "is-invalid": e.error }]),
|
|
2107
2581
|
name: e.name,
|
|
2108
2582
|
placeholder: e.placeholder || e.label,
|
|
2109
2583
|
rows: e.rows,
|
|
2110
2584
|
onInput: n[0] ||= (e) => t.$emit("update:modelValue", e.target.value)
|
|
2111
|
-
}, null, 42,
|
|
2585
|
+
}, null, 42, zr), e.error ? (S(), l("div", Br, D(e.error), 1)) : c("", !0)])]));
|
|
2112
2586
|
}
|
|
2113
|
-
},
|
|
2587
|
+
}, Hr = { class: "mb-3 row align-items-center" }, Ur = { class: "col-md-9 col-xl-8 offset-md-3" }, Wr = { class: "form-check" }, Gr = [
|
|
2114
2588
|
"id",
|
|
2115
2589
|
"checked",
|
|
2116
2590
|
"name"
|
|
2117
|
-
],
|
|
2591
|
+
], Kr = ["for"], qr = {
|
|
2118
2592
|
key: 0,
|
|
2119
2593
|
class: "invalid-feedback d-block form-text"
|
|
2120
|
-
},
|
|
2594
|
+
}, Jr = {
|
|
2121
2595
|
__name: "FormCheckbox",
|
|
2122
2596
|
props: {
|
|
2123
2597
|
modelValue: {
|
|
@@ -2139,26 +2613,26 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
2139
2613
|
},
|
|
2140
2614
|
emits: ["update:modelValue"],
|
|
2141
2615
|
setup(e) {
|
|
2142
|
-
return (t, n) => (
|
|
2616
|
+
return (t, n) => (S(), l("div", Hr, [u("div", Ur, [u("div", Wr, [u("input", {
|
|
2143
2617
|
id: e.name,
|
|
2144
2618
|
class: "form-check-input",
|
|
2145
2619
|
type: "checkbox",
|
|
2146
2620
|
checked: e.modelValue,
|
|
2147
2621
|
name: e.name,
|
|
2148
2622
|
onChange: n[0] ||= (e) => t.$emit("update:modelValue", e.target.checked)
|
|
2149
|
-
}, null, 40,
|
|
2623
|
+
}, null, 40, Gr), u("label", {
|
|
2150
2624
|
class: "form-check-label",
|
|
2151
2625
|
for: e.name
|
|
2152
|
-
},
|
|
2626
|
+
}, D(e.label), 9, Kr)]), e.error ? (S(), l("div", qr, D(e.error), 1)) : c("", !0)])]));
|
|
2153
2627
|
}
|
|
2154
2628
|
}, $ = (e, t) => {
|
|
2155
2629
|
let n = e.__vccOpts || e;
|
|
2156
2630
|
for (let [e, r] of t) n[e] = r;
|
|
2157
2631
|
return n;
|
|
2158
|
-
},
|
|
2632
|
+
}, Yr = { class: "mb-3 row align-items-center" }, Xr = ["for"], Zr = { class: "col-md-9 col-xl-8" }, Qr = { class: "input-group flex-nowrap" }, $r = { class: "input-group-text" }, ei = {
|
|
2159
2633
|
key: 0,
|
|
2160
2634
|
class: "invalid-feedback d-block form-text"
|
|
2161
|
-
},
|
|
2635
|
+
}, ti = /*#__PURE__*/ $({
|
|
2162
2636
|
__name: "FormDatePicker",
|
|
2163
2637
|
props: {
|
|
2164
2638
|
modelValue: {
|
|
@@ -2196,10 +2670,10 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
2196
2670
|
},
|
|
2197
2671
|
emits: ["update:modelValue"],
|
|
2198
2672
|
setup(e) {
|
|
2199
|
-
return (t, n) => (
|
|
2673
|
+
return (t, n) => (S(), l("div", Yr, [u("label", {
|
|
2200
2674
|
for: e.name,
|
|
2201
2675
|
class: "col-md-3 col-form-label text-md-end"
|
|
2202
|
-
},
|
|
2676
|
+
}, D(e.label), 9, Xr), u("div", Zr, [u("div", Qr, [u("span", $r, [u("i", { class: _(["fa", e.icon]) }, null, 2)]), f(k(Ke), g(e.config, {
|
|
2203
2677
|
id: e.name,
|
|
2204
2678
|
"model-value": e.modelValue,
|
|
2205
2679
|
class: ["datepicker-input", { "is-invalid": e.error }],
|
|
@@ -2226,12 +2700,12 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
2226
2700
|
"time-config",
|
|
2227
2701
|
"formats",
|
|
2228
2702
|
"locale"
|
|
2229
|
-
])]), e.error ? (
|
|
2703
|
+
])]), e.error ? (S(), l("div", ei, D(e.error), 1)) : c("", !0)])]));
|
|
2230
2704
|
}
|
|
2231
|
-
}, [["__scopeId", "data-v-2e6d6ada"]]),
|
|
2705
|
+
}, [["__scopeId", "data-v-2e6d6ada"]]), ni = { class: "mb-3 row align-items-center" }, ri = ["for"], ii = { class: "col-md-9 col-xl-8" }, ai = {
|
|
2232
2706
|
key: 0,
|
|
2233
2707
|
class: "invalid-feedback d-block form-text"
|
|
2234
|
-
},
|
|
2708
|
+
}, oi = {
|
|
2235
2709
|
__name: "FormWysiwyg",
|
|
2236
2710
|
props: {
|
|
2237
2711
|
modelValue: {
|
|
@@ -2261,10 +2735,10 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
2261
2735
|
},
|
|
2262
2736
|
emits: ["update:modelValue"],
|
|
2263
2737
|
setup(e) {
|
|
2264
|
-
return (t, n) => (
|
|
2738
|
+
return (t, n) => (S(), l("div", ni, [u("label", {
|
|
2265
2739
|
for: e.name,
|
|
2266
2740
|
class: "col-md-3 col-form-label text-md-end"
|
|
2267
|
-
},
|
|
2741
|
+
}, D(e.label), 9, ri), u("div", ii, [f(Kt, g({
|
|
2268
2742
|
id: e.name,
|
|
2269
2743
|
"model-value": e.modelValue,
|
|
2270
2744
|
name: e.name,
|
|
@@ -2274,12 +2748,12 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
2274
2748
|
"model-value",
|
|
2275
2749
|
"name",
|
|
2276
2750
|
"upload-url"
|
|
2277
|
-
]), e.error ? (
|
|
2751
|
+
]), e.error ? (S(), l("div", ai, D(e.error), 1)) : c("", !0)])]));
|
|
2278
2752
|
}
|
|
2279
|
-
},
|
|
2753
|
+
}, si = { class: "mb-3 row align-items-center" }, ci = ["for"], li = { class: "col-md-9 col-xl-8" }, ui = {
|
|
2280
2754
|
key: 0,
|
|
2281
2755
|
class: "invalid-feedback d-block form-text"
|
|
2282
|
-
},
|
|
2756
|
+
}, di = {
|
|
2283
2757
|
__name: "FormMultiSelect",
|
|
2284
2758
|
props: {
|
|
2285
2759
|
modelValue: {
|
|
@@ -2317,12 +2791,12 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
2317
2791
|
},
|
|
2318
2792
|
emits: ["update:modelValue"],
|
|
2319
2793
|
setup(e) {
|
|
2320
|
-
return (t, n) => (
|
|
2794
|
+
return (t, n) => (S(), l("div", si, [u("label", {
|
|
2321
2795
|
for: e.name,
|
|
2322
2796
|
class: "col-md-3 col-form-label text-md-end"
|
|
2323
|
-
},
|
|
2797
|
+
}, D(e.label), 9, ci), u("div", li, [f(k(U), {
|
|
2324
2798
|
"model-value": e.modelValue,
|
|
2325
|
-
class:
|
|
2799
|
+
class: _({ "is-invalid": e.error }),
|
|
2326
2800
|
placeholder: e.placeholder,
|
|
2327
2801
|
options: e.options,
|
|
2328
2802
|
multiple: !0,
|
|
@@ -2337,12 +2811,12 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
2337
2811
|
"options",
|
|
2338
2812
|
"label",
|
|
2339
2813
|
"track-by"
|
|
2340
|
-
]), e.error ? (
|
|
2814
|
+
]), e.error ? (S(), l("div", ui, D(e.error), 1)) : c("", !0)])]));
|
|
2341
2815
|
}
|
|
2342
|
-
},
|
|
2816
|
+
}, fi = { class: "mb-3 row align-items-center" }, pi = ["for"], mi = { class: "col-md-9 col-xl-8" }, hi = {
|
|
2343
2817
|
key: 0,
|
|
2344
2818
|
class: "invalid-feedback d-block form-text"
|
|
2345
|
-
},
|
|
2819
|
+
}, gi = {
|
|
2346
2820
|
__name: "FormTagInput",
|
|
2347
2821
|
props: {
|
|
2348
2822
|
modelValue: {
|
|
@@ -2372,12 +2846,12 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
2372
2846
|
},
|
|
2373
2847
|
emits: ["update:modelValue"],
|
|
2374
2848
|
setup(e) {
|
|
2375
|
-
return (t, n) => (
|
|
2849
|
+
return (t, n) => (S(), l("div", fi, [u("label", {
|
|
2376
2850
|
for: e.name,
|
|
2377
2851
|
class: "col-md-3 col-form-label text-md-end"
|
|
2378
|
-
},
|
|
2852
|
+
}, D(e.label), 9, pi), u("div", mi, [f(k(U), {
|
|
2379
2853
|
"model-value": e.modelValue,
|
|
2380
|
-
class:
|
|
2854
|
+
class: _({ "is-invalid": e.error }),
|
|
2381
2855
|
placeholder: e.placeholder,
|
|
2382
2856
|
options: e.modelValue,
|
|
2383
2857
|
multiple: !0,
|
|
@@ -2393,18 +2867,18 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
2393
2867
|
"placeholder",
|
|
2394
2868
|
"options",
|
|
2395
2869
|
"tag-placeholder"
|
|
2396
|
-
]), e.error ? (
|
|
2870
|
+
]), e.error ? (S(), l("div", hi, D(e.error), 1)) : c("", !0)])]));
|
|
2397
2871
|
}
|
|
2398
|
-
},
|
|
2872
|
+
}, _i = { class: "mb-3 row align-items-center" }, vi = ["for"], yi = { class: "col-md-9 col-xl-8" }, bi = [
|
|
2399
2873
|
"id",
|
|
2400
2874
|
"value",
|
|
2401
2875
|
"name",
|
|
2402
2876
|
"placeholder",
|
|
2403
2877
|
"onInput"
|
|
2404
|
-
],
|
|
2878
|
+
], xi = {
|
|
2405
2879
|
key: 0,
|
|
2406
2880
|
class: "invalid-feedback d-block form-text"
|
|
2407
|
-
},
|
|
2881
|
+
}, Si = {
|
|
2408
2882
|
__name: "FormLocalizedInput",
|
|
2409
2883
|
props: {
|
|
2410
2884
|
modelValue: {
|
|
@@ -2437,34 +2911,34 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
2437
2911
|
}
|
|
2438
2912
|
},
|
|
2439
2913
|
emits: ["update:modelValue"],
|
|
2440
|
-
setup(e, { emit:
|
|
2441
|
-
let
|
|
2442
|
-
function
|
|
2443
|
-
|
|
2444
|
-
...
|
|
2914
|
+
setup(e, { emit: t }) {
|
|
2915
|
+
let n = e, r = t;
|
|
2916
|
+
function a(e, t) {
|
|
2917
|
+
r("update:modelValue", {
|
|
2918
|
+
...n.modelValue,
|
|
2445
2919
|
[e]: t
|
|
2446
2920
|
});
|
|
2447
2921
|
}
|
|
2448
|
-
return (
|
|
2922
|
+
return (t, n) => (S(), l("div", _i, [u("label", {
|
|
2449
2923
|
for: e.name + "_" + e.locales[0],
|
|
2450
2924
|
class: "col-md-3 col-form-label text-md-end"
|
|
2451
|
-
},
|
|
2925
|
+
}, D(e.label), 9, vi), u("div", yi, [u("div", { class: _({ "d-flex gap-2": e.isFormLocalized }) }, [(S(!0), l(i, null, T(e.locales, (t) => I((S(), l("div", {
|
|
2452
2926
|
key: t,
|
|
2453
|
-
class:
|
|
2454
|
-
}, [
|
|
2927
|
+
class: _({ "flex-fill": e.isFormLocalized })
|
|
2928
|
+
}, [u("input", {
|
|
2455
2929
|
id: e.name + "_" + t,
|
|
2456
2930
|
type: "text",
|
|
2457
2931
|
value: e.modelValue[t],
|
|
2458
|
-
class:
|
|
2932
|
+
class: _(["form-control", { "is-invalid": e.errors[e.name + "_" + t] }]),
|
|
2459
2933
|
name: e.name + "_" + t,
|
|
2460
2934
|
placeholder: e.isFormLocalized ? t.toUpperCase() : e.label,
|
|
2461
|
-
onInput: (e) =>
|
|
2462
|
-
}, null, 42,
|
|
2935
|
+
onInput: (e) => a(t, e.target.value)
|
|
2936
|
+
}, null, 42, bi), e.errors[e.name + "_" + t] ? (S(), l("div", xi, D(e.errors[e.name + "_" + t]), 1)) : c("", !0)], 2)), [[N, e.shouldShowLangGroup(t)]])), 128))], 2)])]));
|
|
2463
2937
|
}
|
|
2464
|
-
},
|
|
2938
|
+
}, Ci = { class: "mb-3 row align-items-center" }, wi = ["for"], Ti = { class: "col-md-9 col-xl-8" }, Ei = {
|
|
2465
2939
|
key: 0,
|
|
2466
2940
|
class: "invalid-feedback d-block form-text"
|
|
2467
|
-
},
|
|
2941
|
+
}, Di = /*#__PURE__*/ $({
|
|
2468
2942
|
__name: "FormLocalizedWysiwyg",
|
|
2469
2943
|
props: {
|
|
2470
2944
|
modelValue: {
|
|
@@ -2505,37 +2979,37 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
2505
2979
|
}
|
|
2506
2980
|
},
|
|
2507
2981
|
emits: ["update:modelValue"],
|
|
2508
|
-
setup(e, { emit:
|
|
2509
|
-
let
|
|
2510
|
-
function
|
|
2511
|
-
|
|
2512
|
-
...
|
|
2982
|
+
setup(e, { emit: t }) {
|
|
2983
|
+
let n = e, r = t;
|
|
2984
|
+
function a(e, t) {
|
|
2985
|
+
r("update:modelValue", {
|
|
2986
|
+
...n.modelValue,
|
|
2513
2987
|
[e]: t
|
|
2514
2988
|
});
|
|
2515
2989
|
}
|
|
2516
|
-
return (
|
|
2990
|
+
return (t, n) => (S(), l("div", Ci, [u("label", {
|
|
2517
2991
|
for: e.name + "_" + e.locales[0],
|
|
2518
2992
|
class: "col-md-3 col-form-label text-md-end"
|
|
2519
|
-
},
|
|
2993
|
+
}, D(e.label), 9, wi), u("div", Ti, [u("div", { class: _({ "d-flex gap-2": e.isFormLocalized }) }, [(S(!0), l(i, null, T(e.locales, (t) => I((S(), l("div", {
|
|
2520
2994
|
key: t,
|
|
2521
|
-
class:
|
|
2522
|
-
}, [
|
|
2995
|
+
class: _({ "flex-fill localized-editor": e.isFormLocalized })
|
|
2996
|
+
}, [f(Kt, g({
|
|
2523
2997
|
id: e.name + "_" + t,
|
|
2524
2998
|
"model-value": e.modelValue[t],
|
|
2525
2999
|
name: e.name + "_" + t,
|
|
2526
3000
|
"upload-url": e.uploadUrl
|
|
2527
|
-
}, { ref_for: !0 }, e.config ? { config: e.config } : {}, { "onUpdate:modelValue": (e) =>
|
|
3001
|
+
}, { ref_for: !0 }, e.config ? { config: e.config } : {}, { "onUpdate:modelValue": (e) => a(t, e) }), null, 16, [
|
|
2528
3002
|
"id",
|
|
2529
3003
|
"model-value",
|
|
2530
3004
|
"name",
|
|
2531
3005
|
"upload-url",
|
|
2532
3006
|
"onUpdate:modelValue"
|
|
2533
|
-
]), e.errors[e.name + "_" + t] ? (
|
|
3007
|
+
]), e.errors[e.name + "_" + t] ? (S(), l("div", Ei, D(e.errors[e.name + "_" + t]), 1)) : c("", !0)], 2)), [[N, e.shouldShowLangGroup(t)]])), 128))], 2)])]));
|
|
2534
3008
|
}
|
|
2535
|
-
}, [["__scopeId", "data-v-608701dd"]]),
|
|
3009
|
+
}, [["__scopeId", "data-v-608701dd"]]), Oi = { class: "mb-3 row align-items-center" }, ki = ["for"], Ai = { class: "col-md-9 col-xl-8" }, ji = {
|
|
2536
3010
|
key: 0,
|
|
2537
3011
|
class: "invalid-feedback d-block form-text"
|
|
2538
|
-
},
|
|
3012
|
+
}, Mi = {
|
|
2539
3013
|
__name: "FormWysiwygSimple",
|
|
2540
3014
|
props: {
|
|
2541
3015
|
modelValue: {
|
|
@@ -2565,10 +3039,10 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
2565
3039
|
},
|
|
2566
3040
|
emits: ["update:modelValue"],
|
|
2567
3041
|
setup(e) {
|
|
2568
|
-
return (t, n) => (
|
|
3042
|
+
return (t, n) => (S(), l("div", Oi, [u("label", {
|
|
2569
3043
|
for: e.name,
|
|
2570
3044
|
class: "col-md-3 col-form-label text-md-end"
|
|
2571
|
-
},
|
|
3045
|
+
}, D(e.label), 9, ki), u("div", Ai, [f(Ht, g({
|
|
2572
3046
|
id: e.name,
|
|
2573
3047
|
"model-value": e.modelValue,
|
|
2574
3048
|
name: e.name,
|
|
@@ -2578,12 +3052,12 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
2578
3052
|
"model-value",
|
|
2579
3053
|
"name",
|
|
2580
3054
|
"upload-url"
|
|
2581
|
-
]), e.error ? (
|
|
3055
|
+
]), e.error ? (S(), l("div", ji, D(e.error), 1)) : c("", !0)])]));
|
|
2582
3056
|
}
|
|
2583
|
-
},
|
|
3057
|
+
}, Ni = { class: "mb-3 row align-items-center" }, Pi = ["for"], Fi = { class: "col-md-9 col-xl-8" }, Ii = {
|
|
2584
3058
|
key: 0,
|
|
2585
3059
|
class: "invalid-feedback d-block form-text"
|
|
2586
|
-
},
|
|
3060
|
+
}, Li = /*#__PURE__*/ $({
|
|
2587
3061
|
__name: "FormLocalizedWysiwygSimple",
|
|
2588
3062
|
props: {
|
|
2589
3063
|
modelValue: {
|
|
@@ -2624,37 +3098,37 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
2624
3098
|
}
|
|
2625
3099
|
},
|
|
2626
3100
|
emits: ["update:modelValue"],
|
|
2627
|
-
setup(e, { emit:
|
|
2628
|
-
let
|
|
2629
|
-
function
|
|
2630
|
-
|
|
2631
|
-
...
|
|
3101
|
+
setup(e, { emit: t }) {
|
|
3102
|
+
let n = e, r = t;
|
|
3103
|
+
function a(e, t) {
|
|
3104
|
+
r("update:modelValue", {
|
|
3105
|
+
...n.modelValue,
|
|
2632
3106
|
[e]: t
|
|
2633
3107
|
});
|
|
2634
3108
|
}
|
|
2635
|
-
return (
|
|
3109
|
+
return (t, n) => (S(), l("div", Ni, [u("label", {
|
|
2636
3110
|
for: e.name + "_" + e.locales[0],
|
|
2637
3111
|
class: "col-md-3 col-form-label text-md-end"
|
|
2638
|
-
},
|
|
3112
|
+
}, D(e.label), 9, Pi), u("div", Fi, [u("div", { class: _({ "d-flex gap-2": e.isFormLocalized }) }, [(S(!0), l(i, null, T(e.locales, (t) => I((S(), l("div", {
|
|
2639
3113
|
key: t,
|
|
2640
|
-
class:
|
|
2641
|
-
}, [
|
|
3114
|
+
class: _({ "flex-fill localized-editor": e.isFormLocalized })
|
|
3115
|
+
}, [f(Ht, g({
|
|
2642
3116
|
id: e.name + "_" + t,
|
|
2643
3117
|
"model-value": e.modelValue[t],
|
|
2644
3118
|
name: e.name + "_" + t,
|
|
2645
3119
|
"upload-url": e.uploadUrl
|
|
2646
|
-
}, { ref_for: !0 }, e.config ? { config: e.config } : {}, { "onUpdate:modelValue": (e) =>
|
|
3120
|
+
}, { ref_for: !0 }, e.config ? { config: e.config } : {}, { "onUpdate:modelValue": (e) => a(t, e) }), null, 16, [
|
|
2647
3121
|
"id",
|
|
2648
3122
|
"model-value",
|
|
2649
3123
|
"name",
|
|
2650
3124
|
"upload-url",
|
|
2651
3125
|
"onUpdate:modelValue"
|
|
2652
|
-
]), e.errors[e.name + "_" + t] ? (
|
|
3126
|
+
]), e.errors[e.name + "_" + t] ? (S(), l("div", Ii, D(e.errors[e.name + "_" + t]), 1)) : c("", !0)], 2)), [[N, e.shouldShowLangGroup(t)]])), 128))], 2)])]));
|
|
2653
3127
|
}
|
|
2654
|
-
}, [["__scopeId", "data-v-bf19587d"]]),
|
|
3128
|
+
}, [["__scopeId", "data-v-bf19587d"]]), Ri = { class: "mb-3 row align-items-center" }, zi = ["for"], Bi = { class: "col-md-9 col-xl-8" }, Vi = {
|
|
2655
3129
|
key: 0,
|
|
2656
3130
|
class: "invalid-feedback d-block form-text"
|
|
2657
|
-
},
|
|
3131
|
+
}, Hi = {
|
|
2658
3132
|
__name: "FormSelect",
|
|
2659
3133
|
props: {
|
|
2660
3134
|
modelValue: {
|
|
@@ -2697,12 +3171,12 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
2697
3171
|
},
|
|
2698
3172
|
emits: ["update:modelValue"],
|
|
2699
3173
|
setup(e) {
|
|
2700
|
-
return (t, n) => (
|
|
3174
|
+
return (t, n) => (S(), l("div", Ri, [u("label", {
|
|
2701
3175
|
for: e.name,
|
|
2702
3176
|
class: "col-md-3 col-form-label text-md-end"
|
|
2703
|
-
},
|
|
3177
|
+
}, D(e.label), 9, zi), u("div", Bi, [f(k(U), {
|
|
2704
3178
|
"model-value": e.modelValue,
|
|
2705
|
-
class:
|
|
3179
|
+
class: _({ "is-invalid": e.error }),
|
|
2706
3180
|
placeholder: e.placeholder,
|
|
2707
3181
|
options: e.options,
|
|
2708
3182
|
label: e.optionLabel || void 0,
|
|
@@ -2716,21 +3190,21 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
2716
3190
|
"options",
|
|
2717
3191
|
"label",
|
|
2718
3192
|
"track-by"
|
|
2719
|
-
]), e.error ? (
|
|
3193
|
+
]), e.error ? (S(), l("div", Vi, D(e.error), 1)) : c("", !0)])]));
|
|
2720
3194
|
}
|
|
2721
|
-
},
|
|
3195
|
+
}, Ui = { class: "mb-3 row align-items-center" }, Wi = {
|
|
2722
3196
|
for: "password",
|
|
2723
3197
|
class: "col-md-3 col-form-label text-md-end"
|
|
2724
|
-
},
|
|
3198
|
+
}, Gi = { class: "col-md-9 col-xl-8" }, Ki = ["value", "placeholder"], qi = {
|
|
2725
3199
|
key: 0,
|
|
2726
3200
|
class: "invalid-feedback form-text"
|
|
2727
|
-
},
|
|
3201
|
+
}, Ji = { class: "mb-3 row align-items-center" }, Yi = {
|
|
2728
3202
|
for: "password_confirmation",
|
|
2729
3203
|
class: "col-md-3 col-form-label text-md-end"
|
|
2730
|
-
},
|
|
3204
|
+
}, Xi = { class: "col-md-9 col-xl-8" }, Zi = ["value", "placeholder"], Qi = {
|
|
2731
3205
|
key: 0,
|
|
2732
3206
|
class: "invalid-feedback form-text"
|
|
2733
|
-
},
|
|
3207
|
+
}, $i = {
|
|
2734
3208
|
__name: "FormPasswordConfirm",
|
|
2735
3209
|
props: {
|
|
2736
3210
|
password: {
|
|
@@ -2756,25 +3230,25 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
2756
3230
|
},
|
|
2757
3231
|
emits: ["update:password", "update:passwordConfirmation"],
|
|
2758
3232
|
setup(e) {
|
|
2759
|
-
return (
|
|
3233
|
+
return (t, n) => (S(), l(i, null, [u("div", Ui, [u("label", Wi, D(e.translations.password), 1), u("div", Gi, [u("input", {
|
|
2760
3234
|
id: "password",
|
|
2761
3235
|
type: "password",
|
|
2762
3236
|
value: e.password,
|
|
2763
|
-
class:
|
|
3237
|
+
class: _(["form-control", { "is-invalid": e.passwordError }]),
|
|
2764
3238
|
name: "password",
|
|
2765
3239
|
placeholder: e.translations.password,
|
|
2766
|
-
onInput:
|
|
2767
|
-
}, null, 42,
|
|
3240
|
+
onInput: n[0] ||= (e) => t.$emit("update:password", e.target.value)
|
|
3241
|
+
}, null, 42, Ki), e.passwordError ? (S(), l("div", qi, D(e.passwordError), 1)) : c("", !0)])]), u("div", Ji, [u("label", Yi, D(e.translations.password_repeat), 1), u("div", Xi, [u("input", {
|
|
2768
3242
|
id: "password_confirmation",
|
|
2769
3243
|
type: "password",
|
|
2770
3244
|
value: e.passwordConfirmation,
|
|
2771
|
-
class:
|
|
3245
|
+
class: _(["form-control", { "is-invalid": e.confirmationError }]),
|
|
2772
3246
|
name: "password_confirmation",
|
|
2773
3247
|
placeholder: e.translations.password,
|
|
2774
|
-
onInput:
|
|
2775
|
-
}, null, 42,
|
|
3248
|
+
onInput: n[1] ||= (e) => t.$emit("update:passwordConfirmation", e.target.value)
|
|
3249
|
+
}, null, 42, Zi), e.confirmationError ? (S(), l("div", Qi, D(e.confirmationError), 1)) : c("", !0)])])], 64));
|
|
2776
3250
|
}
|
|
2777
|
-
},
|
|
3251
|
+
}, ea = ["disabled"], ta = {
|
|
2778
3252
|
__name: "FormSubmit",
|
|
2779
3253
|
props: {
|
|
2780
3254
|
submitting: {
|
|
@@ -2787,28 +3261,28 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
2787
3261
|
}
|
|
2788
3262
|
},
|
|
2789
3263
|
setup(e) {
|
|
2790
|
-
return (t, n) => (
|
|
3264
|
+
return (t, n) => (S(), l("button", {
|
|
2791
3265
|
type: "submit",
|
|
2792
3266
|
class: "btn btn-primary submit-btn",
|
|
2793
3267
|
disabled: e.submitting
|
|
2794
|
-
}, [
|
|
3268
|
+
}, [u("i", { class: _(["fa", e.submitting ? "fa-spinner" : "fa-download"]) }, null, 2), d(" " + D(e.label), 1)], 8, ea));
|
|
2795
3269
|
}
|
|
2796
|
-
},
|
|
3270
|
+
}, na = {
|
|
2797
3271
|
key: 0,
|
|
2798
3272
|
class: "row mb-2 localization-bar"
|
|
2799
|
-
},
|
|
3273
|
+
}, ra = { key: 0 }, ia = { key: 0 }, aa = {
|
|
2800
3274
|
key: 1,
|
|
2801
3275
|
class: "localization-error"
|
|
2802
|
-
},
|
|
3276
|
+
}, oa = {
|
|
2803
3277
|
key: 2,
|
|
2804
3278
|
class: "d-flex align-items-center gap-2"
|
|
2805
|
-
},
|
|
3279
|
+
}, sa = { class: "text-nowrap" }, ca = {
|
|
2806
3280
|
key: 0,
|
|
2807
3281
|
class: "localization-error"
|
|
2808
|
-
},
|
|
3282
|
+
}, la = {
|
|
2809
3283
|
key: 0,
|
|
2810
3284
|
class: "localization-error"
|
|
2811
|
-
},
|
|
3285
|
+
}, ua = /*#__PURE__*/ $({
|
|
2812
3286
|
__name: "LocalizationBar",
|
|
2813
3287
|
props: {
|
|
2814
3288
|
translations: {
|
|
@@ -2850,79 +3324,79 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
2850
3324
|
"update:currentLocale"
|
|
2851
3325
|
],
|
|
2852
3326
|
setup(e) {
|
|
2853
|
-
let t = e, n =
|
|
2854
|
-
return (t,
|
|
2855
|
-
e.isFormLocalized ?
|
|
2856
|
-
|
|
2857
|
-
e.otherLocales.length > 1 ? (
|
|
2858
|
-
|
|
2859
|
-
|
|
3327
|
+
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]);
|
|
3328
|
+
return (t, a) => e.locales.length > 0 ? (S(), l("div", na, [u("div", { class: _(["offset-md-3 col-md-9 col-xl-8 text-start", { "d-none": e.onSmallScreen }]) }, [
|
|
3329
|
+
e.isFormLocalized ? c("", !0) : (S(), l("small", ra, [
|
|
3330
|
+
d(D(n.value), 1),
|
|
3331
|
+
e.otherLocales.length > 1 ? (S(), l("span", ia, D(r.value), 1)) : c("", !0),
|
|
3332
|
+
a[4] ||= d(" | ", -1),
|
|
3333
|
+
u("a", {
|
|
2860
3334
|
href: "#",
|
|
2861
|
-
onClick:
|
|
2862
|
-
},
|
|
3335
|
+
onClick: a[0] ||= R((e) => t.$emit("show-localization"), ["prevent"])
|
|
3336
|
+
}, D(e.translations.manage_translations), 1)
|
|
2863
3337
|
])),
|
|
2864
|
-
!e.isFormLocalized && e.showLocalizedValidationError ? (
|
|
2865
|
-
e.isFormLocalized ? (
|
|
2866
|
-
|
|
2867
|
-
|
|
3338
|
+
!e.isFormLocalized && e.showLocalizedValidationError ? (S(), l("i", aa)) : c("", !0),
|
|
3339
|
+
e.isFormLocalized ? (S(), l("div", oa, [
|
|
3340
|
+
u("small", sa, D(e.translations.choose_translation_to_edit), 1),
|
|
3341
|
+
f(k(U), {
|
|
2868
3342
|
"model-value": e.currentLocale,
|
|
2869
|
-
options:
|
|
3343
|
+
options: i.value,
|
|
2870
3344
|
"custom-label": (e) => e.toUpperCase(),
|
|
2871
3345
|
searchable: !1,
|
|
2872
3346
|
"allow-empty": !1,
|
|
2873
3347
|
class: "locale-selector",
|
|
2874
|
-
"onUpdate:modelValue":
|
|
3348
|
+
"onUpdate:modelValue": a[1] ||= (e) => t.$emit("update:currentLocale", e)
|
|
2875
3349
|
}, null, 8, [
|
|
2876
3350
|
"model-value",
|
|
2877
3351
|
"options",
|
|
2878
3352
|
"custom-label"
|
|
2879
3353
|
]),
|
|
2880
|
-
e.showLocalizedValidationError ? (
|
|
2881
|
-
|
|
3354
|
+
e.showLocalizedValidationError ? (S(), l("i", ca)) : c("", !0),
|
|
3355
|
+
u("small", null, [u("a", {
|
|
2882
3356
|
href: "#",
|
|
2883
|
-
onClick:
|
|
2884
|
-
},
|
|
2885
|
-
])) :
|
|
2886
|
-
], 2), e.onSmallScreen ? (
|
|
3357
|
+
onClick: a[2] ||= R((e) => t.$emit("hide-localization"), ["prevent"])
|
|
3358
|
+
}, D(e.translations.hide), 1)])
|
|
3359
|
+
])) : c("", !0)
|
|
3360
|
+
], 2), e.onSmallScreen ? (S(), l("div", {
|
|
2887
3361
|
key: 0,
|
|
2888
|
-
class:
|
|
3362
|
+
class: _(["col", {
|
|
2889
3363
|
"language-mobile": !0,
|
|
2890
3364
|
"text-danger": !e.isFormLocalized && e.showLocalizedValidationError
|
|
2891
3365
|
}])
|
|
2892
|
-
}, [
|
|
2893
|
-
|
|
2894
|
-
|
|
3366
|
+
}, [u("small", null, [
|
|
3367
|
+
d(D(e.translations.choose_translation_to_edit) + " ", 1),
|
|
3368
|
+
f(k(U), {
|
|
2895
3369
|
"model-value": e.currentLocale,
|
|
2896
3370
|
options: [e.defaultLocale, ...e.otherLocales],
|
|
2897
3371
|
"custom-label": (e) => e.toUpperCase(),
|
|
2898
3372
|
searchable: !1,
|
|
2899
3373
|
"allow-empty": !1,
|
|
2900
3374
|
class: "locale-selector",
|
|
2901
|
-
"onUpdate:modelValue":
|
|
3375
|
+
"onUpdate:modelValue": a[3] ||= (e) => t.$emit("update:currentLocale", e)
|
|
2902
3376
|
}, null, 8, [
|
|
2903
3377
|
"model-value",
|
|
2904
3378
|
"options",
|
|
2905
3379
|
"custom-label"
|
|
2906
3380
|
]),
|
|
2907
|
-
e.showLocalizedValidationError ? (
|
|
2908
|
-
])], 2)) :
|
|
3381
|
+
e.showLocalizedValidationError ? (S(), l("i", la)) : c("", !0)
|
|
3382
|
+
])], 2)) : c("", !0)])) : c("", !0);
|
|
2909
3383
|
}
|
|
2910
|
-
}, [["__scopeId", "data-v-1c9f060d"]]),
|
|
3384
|
+
}, [["__scopeId", "data-v-1c9f060d"]]), da = { class: "card" }, fa = { class: "card-body" }, pa = ["action"], ma = { class: "auth-header" }, ha = { class: "auth-title" }, ga = { class: "auth-subtitle" }, _a = { class: "auth-body" }, va = {
|
|
2911
3385
|
key: 0,
|
|
2912
3386
|
class: "alert alert-success"
|
|
2913
|
-
},
|
|
3387
|
+
}, ya = {
|
|
2914
3388
|
key: 1,
|
|
2915
3389
|
class: "alert alert-danger"
|
|
2916
|
-
},
|
|
3390
|
+
}, ba = { class: "mb-3" }, xa = { for: "email" }, Sa = { class: "input-group input-group--custom" }, Ca = ["placeholder"], wa = {
|
|
2917
3391
|
key: 0,
|
|
2918
3392
|
class: "invalid-feedback d-block form-text"
|
|
2919
|
-
},
|
|
3393
|
+
}, Ta = { class: "mb-3" }, Ea = { for: "password" }, Da = { class: "input-group input-group--custom" }, Oa = ["placeholder"], ka = {
|
|
2920
3394
|
key: 0,
|
|
2921
3395
|
class: "invalid-feedback d-block form-text"
|
|
2922
|
-
},
|
|
3396
|
+
}, Aa = { class: "mb-3" }, ja = ["disabled"], Ma = {
|
|
2923
3397
|
key: 0,
|
|
2924
3398
|
class: "fa fa-spinner fa-spin"
|
|
2925
|
-
},
|
|
3399
|
+
}, Na = { class: "mb-3 text-center" }, Pa = ["href"], Fa = /*#__PURE__*/ $({
|
|
2926
3400
|
__name: "LoginForm",
|
|
2927
3401
|
props: {
|
|
2928
3402
|
action: {
|
|
@@ -2951,7 +3425,7 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
2951
3425
|
}
|
|
2952
3426
|
},
|
|
2953
3427
|
setup(e) {
|
|
2954
|
-
let
|
|
3428
|
+
let t = e, { form: n, errors: r, submitting: a, onSubmit: o } = X(t, {
|
|
2955
3429
|
formDefaults: {
|
|
2956
3430
|
email: "",
|
|
2957
3431
|
password: ""
|
|
@@ -2961,76 +3435,76 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
2961
3435
|
password: "required"
|
|
2962
3436
|
},
|
|
2963
3437
|
onSuccess() {
|
|
2964
|
-
window.location.replace(
|
|
3438
|
+
window.location.replace(t.redirectUrl);
|
|
2965
3439
|
}
|
|
2966
3440
|
});
|
|
2967
|
-
return (
|
|
3441
|
+
return (t, s) => (S(), l("div", da, [u("div", fa, [u("form", {
|
|
2968
3442
|
role: "form",
|
|
2969
3443
|
method: "POST",
|
|
2970
3444
|
action: e.action,
|
|
2971
3445
|
novalidate: "",
|
|
2972
|
-
onSubmit:
|
|
2973
|
-
}, [
|
|
2974
|
-
e.statusMessage ? (
|
|
2975
|
-
e.serverErrors.length ? (
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
3446
|
+
onSubmit: s[2] ||= R((...e) => k(o) && k(o)(...e), ["prevent"])
|
|
3447
|
+
}, [u("div", ma, [u("h1", ha, D(e.translations.title), 1), u("p", ga, D(e.translations.signInText), 1)]), u("div", _a, [
|
|
3448
|
+
e.statusMessage ? (S(), l("div", va, D(e.statusMessage), 1)) : c("", !0),
|
|
3449
|
+
e.serverErrors.length ? (S(), l("div", ya, [u("ul", null, [(S(!0), l(i, null, T(e.serverErrors, (e, t) => (S(), l("li", { key: t }, D(e), 1))), 128))])])) : c("", !0),
|
|
3450
|
+
u("div", ba, [
|
|
3451
|
+
u("label", xa, D(e.translations.email), 1),
|
|
3452
|
+
u("div", Sa, [s[3] ||= u("span", { class: "input-group-text" }, [u("i", { class: "fa fa-envelope" })], -1), I(u("input", {
|
|
2979
3453
|
id: "email",
|
|
2980
|
-
"onUpdate:modelValue":
|
|
3454
|
+
"onUpdate:modelValue": s[0] ||= (e) => k(n).email = e,
|
|
2981
3455
|
type: "text",
|
|
2982
|
-
class:
|
|
3456
|
+
class: _(["form-control", { "is-invalid": k(r).email }]),
|
|
2983
3457
|
name: "email",
|
|
2984
3458
|
placeholder: e.translations.email
|
|
2985
|
-
}, null, 10,
|
|
2986
|
-
|
|
3459
|
+
}, null, 10, Ca), [[M, k(n).email]])]),
|
|
3460
|
+
k(r).email ? (S(), l("div", wa, D(k(r).email), 1)) : c("", !0)
|
|
2987
3461
|
]),
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
3462
|
+
u("div", Ta, [
|
|
3463
|
+
u("label", Ea, D(e.translations.password), 1),
|
|
3464
|
+
u("div", Da, [s[4] ||= u("span", { class: "input-group-text" }, [u("i", { class: "fa fa-lock" })], -1), I(u("input", {
|
|
2991
3465
|
id: "password",
|
|
2992
|
-
"onUpdate:modelValue":
|
|
3466
|
+
"onUpdate:modelValue": s[1] ||= (e) => k(n).password = e,
|
|
2993
3467
|
type: "password",
|
|
2994
|
-
class:
|
|
3468
|
+
class: _(["form-control", { "is-invalid": k(r).password }]),
|
|
2995
3469
|
name: "password",
|
|
2996
3470
|
placeholder: e.translations.password
|
|
2997
|
-
}, null, 10,
|
|
2998
|
-
|
|
3471
|
+
}, null, 10, Oa), [[M, k(n).password]])]),
|
|
3472
|
+
k(r).password ? (S(), l("div", ka, D(k(r).password), 1)) : c("", !0)
|
|
2999
3473
|
]),
|
|
3000
|
-
|
|
3474
|
+
u("div", Aa, [s[5] ||= u("input", {
|
|
3001
3475
|
type: "hidden",
|
|
3002
3476
|
name: "remember",
|
|
3003
3477
|
value: "1"
|
|
3004
|
-
}, null, -1),
|
|
3478
|
+
}, null, -1), u("button", {
|
|
3005
3479
|
type: "submit",
|
|
3006
3480
|
class: "btn btn-primary submit-btn",
|
|
3007
|
-
disabled:
|
|
3008
|
-
}, [
|
|
3009
|
-
|
|
3481
|
+
disabled: k(a)
|
|
3482
|
+
}, [k(a) ? (S(), l("i", Ma)) : c("", !0), d(" " + D(e.translations.button), 1)], 8, ja)]),
|
|
3483
|
+
u("div", Na, [u("a", {
|
|
3010
3484
|
href: e.passwordResetUrl,
|
|
3011
3485
|
class: "auth-ghost-link forgot-link"
|
|
3012
|
-
},
|
|
3013
|
-
])], 40,
|
|
3486
|
+
}, D(e.translations.forgotPassword), 9, Pa)])
|
|
3487
|
+
])], 40, pa)])]));
|
|
3014
3488
|
}
|
|
3015
|
-
}, [["__scopeId", "data-v-8d4257dc"]]),
|
|
3489
|
+
}, [["__scopeId", "data-v-8d4257dc"]]), Ia = { class: "card" }, La = { class: "card-body" }, Ra = ["action"], za = { class: "auth-header" }, Ba = { class: "auth-title" }, Va = { class: "auth-subtitle" }, Ha = { class: "auth-body" }, Ua = {
|
|
3016
3490
|
key: 0,
|
|
3017
3491
|
class: "alert alert-success"
|
|
3018
|
-
},
|
|
3492
|
+
}, Wa = {
|
|
3019
3493
|
key: 1,
|
|
3020
3494
|
class: "alert alert-success"
|
|
3021
|
-
},
|
|
3495
|
+
}, Ga = {
|
|
3022
3496
|
key: 2,
|
|
3023
3497
|
class: "alert alert-danger"
|
|
3024
|
-
},
|
|
3498
|
+
}, Ka = { class: "mb-3" }, qa = { for: "email" }, Ja = { class: "input-group input-group--custom" }, Ya = ["placeholder"], Xa = {
|
|
3025
3499
|
key: 0,
|
|
3026
3500
|
class: "invalid-feedback d-block form-text"
|
|
3027
|
-
},
|
|
3501
|
+
}, Za = { class: "mb-3" }, Qa = ["disabled"], $a = {
|
|
3028
3502
|
key: 0,
|
|
3029
3503
|
class: "fa fa-spinner fa-spin"
|
|
3030
|
-
},
|
|
3504
|
+
}, eo = {
|
|
3031
3505
|
key: 3,
|
|
3032
3506
|
class: "text-center"
|
|
3033
|
-
},
|
|
3507
|
+
}, to = ["href"], no = {
|
|
3034
3508
|
__name: "ForgotPasswordForm",
|
|
3035
3509
|
props: {
|
|
3036
3510
|
action: {
|
|
@@ -3055,65 +3529,65 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
3055
3529
|
}
|
|
3056
3530
|
},
|
|
3057
3531
|
setup(e) {
|
|
3058
|
-
let { form:
|
|
3532
|
+
let { form: t, errors: n, submitting: r, successMessage: a, onSubmit: o } = X(e, {
|
|
3059
3533
|
formDefaults: { email: "" },
|
|
3060
3534
|
validationSchema: { email: "required|email" }
|
|
3061
3535
|
});
|
|
3062
|
-
return (
|
|
3536
|
+
return (s, f) => (S(), l("div", Ia, [u("div", La, [u("form", {
|
|
3063
3537
|
role: "form",
|
|
3064
3538
|
method: "POST",
|
|
3065
3539
|
action: e.action,
|
|
3066
3540
|
novalidate: "",
|
|
3067
|
-
onSubmit: f[1] ||=
|
|
3068
|
-
}, [
|
|
3069
|
-
|
|
3070
|
-
e.statusMessage && !
|
|
3071
|
-
e.serverErrors.length ? (
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3541
|
+
onSubmit: f[1] ||= R((...e) => k(o) && k(o)(...e), ["prevent"])
|
|
3542
|
+
}, [u("div", za, [u("h1", Ba, D(e.translations.title), 1), u("p", Va, D(e.translations.note), 1)]), u("div", Ha, [
|
|
3543
|
+
k(a) ? (S(), l("div", Ua, D(k(a)), 1)) : c("", !0),
|
|
3544
|
+
e.statusMessage && !k(a) ? (S(), l("div", Wa, D(e.statusMessage), 1)) : c("", !0),
|
|
3545
|
+
e.serverErrors.length ? (S(), l("div", Ga, [u("ul", null, [(S(!0), l(i, null, T(e.serverErrors, (e, t) => (S(), l("li", { key: t }, D(e), 1))), 128))])])) : c("", !0),
|
|
3546
|
+
u("div", Ka, [
|
|
3547
|
+
u("label", qa, D(e.translations.email), 1),
|
|
3548
|
+
u("div", Ja, [f[2] ||= u("span", { class: "input-group-text" }, [u("i", { class: "fa fa-envelope" })], -1), I(u("input", {
|
|
3075
3549
|
id: "email",
|
|
3076
|
-
"onUpdate:modelValue": f[0] ||= (e) =>
|
|
3550
|
+
"onUpdate:modelValue": f[0] ||= (e) => k(t).email = e,
|
|
3077
3551
|
type: "text",
|
|
3078
|
-
class:
|
|
3552
|
+
class: _(["form-control", { "is-invalid": k(n).email }]),
|
|
3079
3553
|
name: "email",
|
|
3080
3554
|
placeholder: e.translations.email
|
|
3081
|
-
}, null, 10,
|
|
3082
|
-
|
|
3555
|
+
}, null, 10, Ya), [[M, k(t).email]])]),
|
|
3556
|
+
k(n).email ? (S(), l("div", Xa, D(k(n).email), 1)) : c("", !0)
|
|
3083
3557
|
]),
|
|
3084
|
-
|
|
3558
|
+
u("div", Za, [u("button", {
|
|
3085
3559
|
type: "submit",
|
|
3086
3560
|
class: "btn btn-primary submit-btn",
|
|
3087
|
-
disabled:
|
|
3088
|
-
}, [
|
|
3089
|
-
e.loginUrl ? (
|
|
3561
|
+
disabled: k(r)
|
|
3562
|
+
}, [k(r) ? (S(), l("i", $a)) : c("", !0), d(" " + D(e.translations.button), 1)], 8, Qa)]),
|
|
3563
|
+
e.loginUrl ? (S(), l("div", eo, [u("a", {
|
|
3090
3564
|
href: e.loginUrl,
|
|
3091
3565
|
class: "auth-ghost-link"
|
|
3092
|
-
},
|
|
3093
|
-
])], 40,
|
|
3566
|
+
}, D(e.translations.backToLogin), 9, to)])) : c("", !0)
|
|
3567
|
+
])], 40, Ra)])]));
|
|
3094
3568
|
}
|
|
3095
|
-
},
|
|
3569
|
+
}, ro = { class: "card" }, io = { class: "card-body" }, ao = ["action"], oo = { class: "auth-header" }, so = { class: "auth-title" }, co = { class: "auth-subtitle" }, lo = { class: "auth-body" }, uo = {
|
|
3096
3570
|
key: 0,
|
|
3097
3571
|
class: "alert alert-success"
|
|
3098
|
-
},
|
|
3572
|
+
}, fo = {
|
|
3099
3573
|
key: 1,
|
|
3100
3574
|
class: "alert alert-danger"
|
|
3101
|
-
},
|
|
3575
|
+
}, po = { class: "mb-3" }, mo = { for: "email" }, ho = { class: "input-group input-group--custom" }, go = ["placeholder"], _o = {
|
|
3102
3576
|
key: 0,
|
|
3103
3577
|
class: "invalid-feedback d-block form-text"
|
|
3104
|
-
},
|
|
3578
|
+
}, vo = { class: "mb-3" }, yo = { for: "password" }, bo = { class: "input-group input-group--custom" }, xo = ["placeholder"], So = {
|
|
3105
3579
|
key: 0,
|
|
3106
3580
|
class: "invalid-feedback d-block form-text"
|
|
3107
|
-
},
|
|
3581
|
+
}, Co = { class: "mb-3" }, wo = { for: "password_confirmation" }, To = { class: "input-group input-group--custom" }, Eo = ["placeholder"], Do = {
|
|
3108
3582
|
key: 0,
|
|
3109
3583
|
class: "invalid-feedback d-block form-text"
|
|
3110
|
-
},
|
|
3584
|
+
}, Oo = { class: "mb-3" }, ko = ["disabled"], Ao = {
|
|
3111
3585
|
key: 0,
|
|
3112
3586
|
class: "fa fa-spinner fa-spin"
|
|
3113
|
-
},
|
|
3587
|
+
}, jo = {
|
|
3114
3588
|
key: 2,
|
|
3115
3589
|
class: "text-center"
|
|
3116
|
-
},
|
|
3590
|
+
}, Mo = ["href"], No = {
|
|
3117
3591
|
__name: "ResetPasswordForm",
|
|
3118
3592
|
props: {
|
|
3119
3593
|
action: {
|
|
@@ -3150,12 +3624,12 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
3150
3624
|
}
|
|
3151
3625
|
},
|
|
3152
3626
|
setup(e) {
|
|
3153
|
-
let
|
|
3627
|
+
let t = e, { form: n, errors: r, submitting: a, onSubmit: o } = X(t, {
|
|
3154
3628
|
formDefaults: {
|
|
3155
|
-
email:
|
|
3629
|
+
email: t.email,
|
|
3156
3630
|
password: "",
|
|
3157
3631
|
password_confirmation: "",
|
|
3158
|
-
token:
|
|
3632
|
+
token: t.token
|
|
3159
3633
|
},
|
|
3160
3634
|
validationSchema: {
|
|
3161
3635
|
email: "required|email",
|
|
@@ -3163,81 +3637,81 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
3163
3637
|
password_confirmation: "required|confirmed:@password"
|
|
3164
3638
|
},
|
|
3165
3639
|
onSuccess(e) {
|
|
3166
|
-
window.location.replace(e.redirect ||
|
|
3640
|
+
window.location.replace(e.redirect || t.redirectUrl);
|
|
3167
3641
|
}
|
|
3168
3642
|
});
|
|
3169
|
-
return (
|
|
3643
|
+
return (t, s) => (S(), l("div", ro, [u("div", io, [u("form", {
|
|
3170
3644
|
role: "form",
|
|
3171
3645
|
method: "POST",
|
|
3172
3646
|
action: e.action,
|
|
3173
3647
|
novalidate: "",
|
|
3174
|
-
onSubmit:
|
|
3175
|
-
}, [
|
|
3176
|
-
e.statusMessage ? (
|
|
3177
|
-
e.serverErrors.length ? (
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3648
|
+
onSubmit: s[3] ||= R((...e) => k(o) && k(o)(...e), ["prevent"])
|
|
3649
|
+
}, [u("div", oo, [u("h1", so, D(e.translations.title), 1), u("p", co, D(e.translations.note), 1)]), u("div", lo, [
|
|
3650
|
+
e.statusMessage ? (S(), l("div", uo, D(e.statusMessage), 1)) : c("", !0),
|
|
3651
|
+
e.serverErrors.length ? (S(), l("div", fo, [u("ul", null, [(S(!0), l(i, null, T(e.serverErrors, (e, t) => (S(), l("li", { key: t }, D(e), 1))), 128))])])) : c("", !0),
|
|
3652
|
+
u("div", po, [
|
|
3653
|
+
u("label", mo, D(e.translations.email), 1),
|
|
3654
|
+
u("div", ho, [s[4] ||= u("span", { class: "input-group-text" }, [u("i", { class: "fa fa-envelope" })], -1), I(u("input", {
|
|
3181
3655
|
id: "email",
|
|
3182
|
-
"onUpdate:modelValue":
|
|
3656
|
+
"onUpdate:modelValue": s[0] ||= (e) => k(n).email = e,
|
|
3183
3657
|
type: "text",
|
|
3184
|
-
class:
|
|
3658
|
+
class: _(["form-control", { "is-invalid": k(r).email }]),
|
|
3185
3659
|
name: "email",
|
|
3186
3660
|
placeholder: e.translations.email
|
|
3187
|
-
}, null, 10,
|
|
3188
|
-
|
|
3661
|
+
}, null, 10, go), [[M, k(n).email]])]),
|
|
3662
|
+
k(r).email ? (S(), l("div", _o, D(k(r).email), 1)) : c("", !0)
|
|
3189
3663
|
]),
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3664
|
+
u("div", vo, [
|
|
3665
|
+
u("label", yo, D(e.translations.password), 1),
|
|
3666
|
+
u("div", bo, [s[5] ||= u("span", { class: "input-group-text" }, [u("i", { class: "fa fa-lock" })], -1), I(u("input", {
|
|
3193
3667
|
id: "password",
|
|
3194
|
-
"onUpdate:modelValue":
|
|
3668
|
+
"onUpdate:modelValue": s[1] ||= (e) => k(n).password = e,
|
|
3195
3669
|
type: "password",
|
|
3196
|
-
class:
|
|
3670
|
+
class: _(["form-control", { "is-invalid": k(r).password }]),
|
|
3197
3671
|
name: "password",
|
|
3198
3672
|
placeholder: e.translations.password
|
|
3199
|
-
}, null, 10,
|
|
3200
|
-
|
|
3673
|
+
}, null, 10, xo), [[M, k(n).password]])]),
|
|
3674
|
+
k(r).password ? (S(), l("div", So, D(k(r).password), 1)) : c("", !0)
|
|
3201
3675
|
]),
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3676
|
+
u("div", Co, [
|
|
3677
|
+
u("label", wo, D(e.translations.passwordConfirm), 1),
|
|
3678
|
+
u("div", To, [s[6] ||= u("span", { class: "input-group-text" }, [u("i", { class: "fa fa-lock" })], -1), I(u("input", {
|
|
3205
3679
|
id: "password_confirmation",
|
|
3206
|
-
"onUpdate:modelValue":
|
|
3680
|
+
"onUpdate:modelValue": s[2] ||= (e) => k(n).password_confirmation = e,
|
|
3207
3681
|
type: "password",
|
|
3208
|
-
class:
|
|
3682
|
+
class: _(["form-control", { "is-invalid": k(r).password_confirmation }]),
|
|
3209
3683
|
name: "password_confirmation",
|
|
3210
3684
|
placeholder: e.translations.passwordConfirm
|
|
3211
|
-
}, null, 10,
|
|
3212
|
-
|
|
3685
|
+
}, null, 10, Eo), [[M, k(n).password_confirmation]])]),
|
|
3686
|
+
k(r).password_confirmation ? (S(), l("div", Do, D(k(r).password_confirmation), 1)) : c("", !0)
|
|
3213
3687
|
]),
|
|
3214
|
-
|
|
3688
|
+
u("div", Oo, [u("button", {
|
|
3215
3689
|
type: "submit",
|
|
3216
3690
|
class: "btn btn-primary submit-btn",
|
|
3217
|
-
disabled:
|
|
3218
|
-
}, [
|
|
3219
|
-
e.loginUrl ? (
|
|
3691
|
+
disabled: k(a)
|
|
3692
|
+
}, [k(a) ? (S(), l("i", Ao)) : c("", !0), d(" " + D(e.translations.button), 1)], 8, ko)]),
|
|
3693
|
+
e.loginUrl ? (S(), l("div", jo, [u("a", {
|
|
3220
3694
|
href: e.loginUrl,
|
|
3221
3695
|
class: "auth-ghost-link"
|
|
3222
|
-
},
|
|
3223
|
-
])], 40,
|
|
3696
|
+
}, D(e.translations.backToLogin), 9, Mo)])) : c("", !0)
|
|
3697
|
+
])], 40, ao)])]));
|
|
3224
3698
|
}
|
|
3225
|
-
},
|
|
3699
|
+
}, Po = { class: "card" }, Fo = { class: "card-body" }, Io = ["action"], Lo = { class: "auth-header" }, Ro = { class: "auth-title" }, zo = { class: "auth-subtitle" }, Bo = { class: "auth-body" }, Vo = {
|
|
3226
3700
|
key: 0,
|
|
3227
3701
|
class: "alert alert-success"
|
|
3228
|
-
},
|
|
3702
|
+
}, Ho = {
|
|
3229
3703
|
key: 1,
|
|
3230
3704
|
class: "alert alert-success"
|
|
3231
|
-
},
|
|
3705
|
+
}, Uo = {
|
|
3232
3706
|
key: 2,
|
|
3233
3707
|
class: "alert alert-danger"
|
|
3234
|
-
},
|
|
3708
|
+
}, Wo = { class: "mb-3" }, Go = { for: "email" }, Ko = { class: "input-group input-group--custom" }, qo = ["placeholder"], Jo = {
|
|
3235
3709
|
key: 0,
|
|
3236
3710
|
class: "invalid-feedback d-block form-text"
|
|
3237
|
-
},
|
|
3711
|
+
}, Yo = { class: "mb-3" }, Xo = ["disabled"], Zo = {
|
|
3238
3712
|
key: 0,
|
|
3239
3713
|
class: "fa fa-spinner fa-spin"
|
|
3240
|
-
},
|
|
3714
|
+
}, Qo = {
|
|
3241
3715
|
__name: "ActivationForm",
|
|
3242
3716
|
props: {
|
|
3243
3717
|
action: {
|
|
@@ -3258,43 +3732,43 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
3258
3732
|
}
|
|
3259
3733
|
},
|
|
3260
3734
|
setup(e) {
|
|
3261
|
-
let { form:
|
|
3735
|
+
let { form: t, errors: n, submitting: r, successMessage: a, onSubmit: o } = X(e, {
|
|
3262
3736
|
formDefaults: { email: "" },
|
|
3263
3737
|
validationSchema: { email: "required|email" }
|
|
3264
3738
|
});
|
|
3265
|
-
return (
|
|
3739
|
+
return (s, f) => (S(), l("div", Po, [u("div", Fo, [u("form", {
|
|
3266
3740
|
role: "form",
|
|
3267
3741
|
method: "POST",
|
|
3268
3742
|
action: e.action,
|
|
3269
3743
|
novalidate: "",
|
|
3270
|
-
onSubmit: f[1] ||=
|
|
3271
|
-
}, [
|
|
3272
|
-
|
|
3273
|
-
e.statusMessage && !
|
|
3274
|
-
e.serverErrors.length ? (
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3744
|
+
onSubmit: f[1] ||= R((...e) => k(o) && k(o)(...e), ["prevent"])
|
|
3745
|
+
}, [u("div", Lo, [u("h1", Ro, D(e.translations.title), 1), u("p", zo, D(e.translations.note), 1)]), u("div", Bo, [
|
|
3746
|
+
k(a) ? (S(), l("div", Vo, D(k(a)), 1)) : c("", !0),
|
|
3747
|
+
e.statusMessage && !k(a) ? (S(), l("div", Ho, D(e.statusMessage), 1)) : c("", !0),
|
|
3748
|
+
e.serverErrors.length ? (S(), l("div", Uo, [u("ul", null, [(S(!0), l(i, null, T(e.serverErrors, (e, t) => (S(), l("li", { key: t }, D(e), 1))), 128))])])) : c("", !0),
|
|
3749
|
+
u("div", Wo, [
|
|
3750
|
+
u("label", Go, D(e.translations.email), 1),
|
|
3751
|
+
u("div", Ko, [f[2] ||= u("span", { class: "input-group-text" }, [u("i", { class: "fa fa-envelope" })], -1), I(u("input", {
|
|
3278
3752
|
id: "email",
|
|
3279
|
-
"onUpdate:modelValue": f[0] ||= (e) =>
|
|
3753
|
+
"onUpdate:modelValue": f[0] ||= (e) => k(t).email = e,
|
|
3280
3754
|
type: "text",
|
|
3281
|
-
class:
|
|
3755
|
+
class: _(["form-control", { "is-invalid": k(n).email }]),
|
|
3282
3756
|
name: "email",
|
|
3283
3757
|
placeholder: e.translations.email
|
|
3284
|
-
}, null, 10,
|
|
3285
|
-
|
|
3758
|
+
}, null, 10, qo), [[M, k(t).email]])]),
|
|
3759
|
+
k(n).email ? (S(), l("div", Jo, D(k(n).email), 1)) : c("", !0)
|
|
3286
3760
|
]),
|
|
3287
|
-
|
|
3761
|
+
u("div", Yo, [u("button", {
|
|
3288
3762
|
type: "submit",
|
|
3289
3763
|
class: "btn btn-primary submit-btn",
|
|
3290
|
-
disabled:
|
|
3291
|
-
}, [
|
|
3292
|
-
])], 40,
|
|
3764
|
+
disabled: k(r)
|
|
3765
|
+
}, [k(r) ? (S(), l("i", Zo)) : c("", !0), d(" " + D(e.translations.button), 1)], 8, Xo)])
|
|
3766
|
+
])], 40, Io)])]));
|
|
3293
3767
|
}
|
|
3294
|
-
},
|
|
3768
|
+
}, $o = { class: "card" }, es = { class: "card-body" }, ts = { class: "auth-header" }, ns = { class: "auth-title" }, rs = { class: "auth-body" }, is = {
|
|
3295
3769
|
key: 0,
|
|
3296
3770
|
class: "alert alert-danger"
|
|
3297
|
-
},
|
|
3771
|
+
}, as = {
|
|
3298
3772
|
__name: "ActivationError",
|
|
3299
3773
|
props: {
|
|
3300
3774
|
translations: {
|
|
@@ -3307,15 +3781,15 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
3307
3781
|
}
|
|
3308
3782
|
},
|
|
3309
3783
|
setup(e) {
|
|
3310
|
-
return (
|
|
3784
|
+
return (t, n) => (S(), l("div", $o, [u("div", es, [u("div", ts, [u("h1", ns, D(e.translations.title), 1)]), u("div", rs, [e.serverErrors.length ? (S(), l("div", is, [u("ul", null, [(S(!0), l(i, null, T(e.serverErrors, (e, t) => (S(), l("li", { key: t }, D(e), 1))), 128))])])) : c("", !0)])])]));
|
|
3311
3785
|
}
|
|
3312
|
-
},
|
|
3786
|
+
}, os = { class: "modal-dialog" }, ss = { class: "modal-content" }, cs = { class: "modal-header" }, ls = { class: "modal-title" }, us = { class: "modal-body" }, ds = {
|
|
3313
3787
|
class: "text-center",
|
|
3314
3788
|
style: { "word-wrap": "break-word" }
|
|
3315
|
-
},
|
|
3789
|
+
}, fs = { class: "form-label" }, ps = ["onUpdate:modelValue", "placeholder"], ms = ["onUpdate:modelValue", "placeholder"], hs = { class: "text-center" }, gs = {
|
|
3316
3790
|
class: "btn btn-primary w-100",
|
|
3317
3791
|
type: "submit"
|
|
3318
|
-
},
|
|
3792
|
+
}, _s = {
|
|
3319
3793
|
__name: "TranslationEditModal",
|
|
3320
3794
|
props: {
|
|
3321
3795
|
show: {
|
|
@@ -3340,63 +3814,63 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
3340
3814
|
}
|
|
3341
3815
|
},
|
|
3342
3816
|
emits: ["close", "saved"],
|
|
3343
|
-
setup(e, { emit:
|
|
3344
|
-
let
|
|
3345
|
-
|
|
3817
|
+
setup(e, { emit: t }) {
|
|
3818
|
+
let n = window.axios, r = e, a = t, s = o(() => Array.isArray(r.locales) ? r.locales : Object.values(r.locales)), f = C({});
|
|
3819
|
+
P(() => r.item, (e) => {
|
|
3346
3820
|
Object.keys(f).forEach((e) => delete f[e]);
|
|
3347
3821
|
for (let t of Object.keys(e?.text || {})) f[t] = e.text[t];
|
|
3348
3822
|
}, { immediate: !0 });
|
|
3349
3823
|
async function p() {
|
|
3350
3824
|
try {
|
|
3351
|
-
await
|
|
3825
|
+
await n.post(r.url + "/" + r.item.id, { text: { ...f } }), W("Item successfully changed."), a("saved"), a("close");
|
|
3352
3826
|
} catch {
|
|
3353
|
-
|
|
3827
|
+
G();
|
|
3354
3828
|
}
|
|
3355
3829
|
}
|
|
3356
|
-
return (
|
|
3357
|
-
class:
|
|
3358
|
-
style:
|
|
3359
|
-
}, [
|
|
3830
|
+
return (t, n) => (S(), l(i, null, [u("div", {
|
|
3831
|
+
class: _(["modal fade", { show: e.show }]),
|
|
3832
|
+
style: y({ display: e.show ? "block" : "none" })
|
|
3833
|
+
}, [u("div", os, [u("div", ss, [u("div", cs, [u("h4", ls, D(e.translations.edit), 1), u("button", {
|
|
3360
3834
|
type: "button",
|
|
3361
3835
|
class: "btn-close",
|
|
3362
|
-
onClick:
|
|
3363
|
-
})]),
|
|
3836
|
+
onClick: n[0] ||= (e) => t.$emit("close")
|
|
3837
|
+
})]), u("div", us, [u("p", ds, [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", {
|
|
3364
3838
|
key: t,
|
|
3365
3839
|
class: "mb-3"
|
|
3366
|
-
}, [
|
|
3840
|
+
}, [u("label", fs, D(t.toUpperCase()) + " " + D(e.translations.translation), 1), !f[t] || f[t].length < 70 ? I((S(), l("input", {
|
|
3367
3841
|
key: 0,
|
|
3368
3842
|
"onUpdate:modelValue": (e) => f[t] = e,
|
|
3369
3843
|
type: "text",
|
|
3370
3844
|
class: "form-control",
|
|
3371
3845
|
placeholder: (e.translations.translation_for || "").replace(":locale", t)
|
|
3372
|
-
}, null, 8,
|
|
3846
|
+
}, null, 8, ps)), [[M, f[t]]]) : I((S(), l("textarea", {
|
|
3373
3847
|
key: 1,
|
|
3374
3848
|
"onUpdate:modelValue": (e) => f[t] = e,
|
|
3375
3849
|
class: "form-control",
|
|
3376
3850
|
placeholder: (e.translations.translation_for || "").replace(":locale", t),
|
|
3377
3851
|
cols: "30",
|
|
3378
3852
|
rows: "4"
|
|
3379
|
-
}, null, 8,
|
|
3853
|
+
}, null, 8, ms)), [[M, f[t]]])]))), 128)), u("div", hs, [u("button", gs, D(e.translations.save) + " " + D(e.translations.translation), 1)])], 32)])])])], 6), e.show ? (S(), l("div", {
|
|
3380
3854
|
key: 0,
|
|
3381
3855
|
class: "modal-backdrop fade show",
|
|
3382
|
-
onClick:
|
|
3383
|
-
})) :
|
|
3856
|
+
onClick: n[1] ||= (e) => t.$emit("close")
|
|
3857
|
+
})) : c("", !0)], 64));
|
|
3384
3858
|
}
|
|
3385
|
-
},
|
|
3859
|
+
}, vs = { class: "modal-dialog modal-lg" }, ys = { class: "modal-content" }, bs = { class: "modal-header" }, xs = { class: "modal-title" }, Ss = { class: "modal-body" }, Cs = { class: "row mb-3" }, ws = { class: "col-md-4 text-md-end" }, Ts = { class: "col-form-label" }, Es = { class: "col-md-6" }, Ds = { class: "btn btn-primary btn-sm w-100 mb-0" }, Os = { key: 0 }, ks = { key: 1 }, As = { class: "row mb-3" }, js = { class: "col-md-4 text-md-end" }, Ms = {
|
|
3386
3860
|
for: "importLanguage",
|
|
3387
3861
|
class: "col-form-label"
|
|
3388
|
-
},
|
|
3862
|
+
}, Ns = { class: "col-md-6" }, Ps = { class: "offset-md-4" }, Fs = { class: "form-check" }, Is = {
|
|
3389
3863
|
class: "form-check-label",
|
|
3390
3864
|
for: "onlyMissingTranslations"
|
|
3391
|
-
},
|
|
3865
|
+
}, Ls = { class: "text-center mb-3" }, Rs = { class: "table table-hover" }, zs = { key: 0 }, Bs = { style: { "word-break": "break-all" } }, Vs = { style: { "word-break": "break-all" } }, Hs = { style: { "word-break": "break-all" } }, Us = [
|
|
3392
3866
|
"id",
|
|
3393
3867
|
"onUpdate:modelValue",
|
|
3394
3868
|
"name"
|
|
3395
|
-
],
|
|
3869
|
+
], Ws = ["for"], Gs = { style: { "word-break": "break-all" } }, Ks = [
|
|
3396
3870
|
"id",
|
|
3397
3871
|
"onUpdate:modelValue",
|
|
3398
3872
|
"name"
|
|
3399
|
-
],
|
|
3873
|
+
], qs = ["for"], Js = { class: "text-center" }, Ys = { class: "modal-footer" }, Xs = {
|
|
3400
3874
|
__name: "TranslationImportModal",
|
|
3401
3875
|
props: {
|
|
3402
3876
|
show: {
|
|
@@ -3421,64 +3895,64 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
3421
3895
|
}
|
|
3422
3896
|
},
|
|
3423
3897
|
emits: ["close", "imported"],
|
|
3424
|
-
setup(e, { emit:
|
|
3425
|
-
let
|
|
3898
|
+
setup(e, { emit: t }) {
|
|
3899
|
+
let n = window.axios, r = e, a = t, s = o(() => Array.isArray(r.locales) ? r.locales : Object.values(r.locales)), d = o(() => s.value.map((e) => ({
|
|
3426
3900
|
id: e,
|
|
3427
3901
|
name: e.toUpperCase()
|
|
3428
|
-
}))), p =
|
|
3429
|
-
|
|
3430
|
-
e ||
|
|
3902
|
+
}))), p = w(null), m = w(null), h = w(null), g = o(() => h.value?.id ?? ""), v = w(!1), b = w(1), x = w(0), C = w(0), E = w(0), O = w(0), M = w(null), F = o(() => b.value === r.stepCount);
|
|
3903
|
+
P(() => r.show, (e) => {
|
|
3904
|
+
e || L();
|
|
3431
3905
|
});
|
|
3432
|
-
function
|
|
3433
|
-
|
|
3906
|
+
function L() {
|
|
3907
|
+
b.value = 1, m.value = null, h.value = null, v.value = !1, M.value = null, p.value && (p.value.value = "");
|
|
3434
3908
|
}
|
|
3435
3909
|
function z(e) {
|
|
3436
|
-
|
|
3910
|
+
m.value = e.target.files[0];
|
|
3437
3911
|
}
|
|
3438
3912
|
function B() {
|
|
3439
|
-
|
|
3913
|
+
a("close");
|
|
3440
3914
|
}
|
|
3441
|
-
async function
|
|
3442
|
-
if (
|
|
3443
|
-
if (!
|
|
3444
|
-
|
|
3915
|
+
async function V() {
|
|
3916
|
+
if (b.value === 1) {
|
|
3917
|
+
if (!m.value || !g.value) {
|
|
3918
|
+
G("The form contains invalid fields.");
|
|
3445
3919
|
return;
|
|
3446
3920
|
}
|
|
3447
3921
|
let e = new FormData();
|
|
3448
|
-
e.append("fileImport",
|
|
3922
|
+
e.append("fileImport", m.value), e.append("importLanguage", g.value), e.append("onlyMissing", v.value);
|
|
3449
3923
|
try {
|
|
3450
|
-
let t = await
|
|
3451
|
-
"numberOfImportedTranslations" in t.data && "numberOfUpdatedTranslations" in t.data ? (
|
|
3924
|
+
let t = await n.post(r.url + "/import", e, { headers: { "Content-Type": "multipart/form-data" } });
|
|
3925
|
+
"numberOfImportedTranslations" in t.data && "numberOfUpdatedTranslations" in t.data ? (b.value = 3, x.value = t.data.numberOfImportedTranslations, C.value = t.data.numberOfUpdatedTranslations, a("imported")) : (b.value = 2, M.value = t.data, E.value = Object.keys(t.data).length, O.value = M.value.filter((e) => e.has_conflict).length);
|
|
3452
3926
|
} catch (e) {
|
|
3453
3927
|
let t = e.response?.data;
|
|
3454
|
-
t === "Wrong syntax in your import" ?
|
|
3928
|
+
t === "Wrong syntax in your import" ? G("Wrong syntax in your import.") : t === "Unsupported file type" ? G("Unsupported file type.") : G();
|
|
3455
3929
|
}
|
|
3456
|
-
} else if (
|
|
3457
|
-
for (let e = 0; e <
|
|
3930
|
+
} else if (b.value === 2) {
|
|
3931
|
+
for (let e = 0; e < M.value.length; e++) M.value[e].checkedCurrent && (M.value[e][g.value.toLowerCase()] = M.value[e].current_value);
|
|
3458
3932
|
try {
|
|
3459
|
-
let e = await
|
|
3460
|
-
importLanguage:
|
|
3461
|
-
resolvedTranslations:
|
|
3933
|
+
let e = await n.post(r.url + "/import/conflicts", {
|
|
3934
|
+
importLanguage: g.value,
|
|
3935
|
+
resolvedTranslations: M.value
|
|
3462
3936
|
});
|
|
3463
|
-
|
|
3937
|
+
b.value = 3, x.value = e.data.numberOfImportedTranslations, C.value = e.data.numberOfUpdatedTranslations, a("imported");
|
|
3464
3938
|
} catch {
|
|
3465
|
-
|
|
3939
|
+
G();
|
|
3466
3940
|
}
|
|
3467
3941
|
}
|
|
3468
3942
|
}
|
|
3469
|
-
return (
|
|
3470
|
-
class:
|
|
3471
|
-
style:
|
|
3472
|
-
}, [
|
|
3473
|
-
|
|
3943
|
+
return (t, n) => (S(), l(i, null, [u("div", {
|
|
3944
|
+
class: _(["modal fade", { show: e.show }]),
|
|
3945
|
+
style: y({ display: e.show ? "block" : "none" })
|
|
3946
|
+
}, [u("div", vs, [u("div", ys, [
|
|
3947
|
+
u("div", bs, [u("h4", xs, D(e.translations.import_title), 1), u("button", {
|
|
3474
3948
|
type: "button",
|
|
3475
3949
|
class: "btn-close",
|
|
3476
3950
|
onClick: B
|
|
3477
3951
|
})]),
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3952
|
+
u("div", Ss, [
|
|
3953
|
+
I(u("div", null, [
|
|
3954
|
+
u("p", null, D(e.translations.import_notice), 1),
|
|
3955
|
+
u("div", Cs, [u("div", ws, [u("label", Ts, D(e.translations.upload_file), 1)]), u("div", Es, [u("label", Ds, [m.value ? (S(), l("span", Os, D(m.value.name), 1)) : (S(), l("span", ks, D(e.translations.choose_file), 1)), u("input", {
|
|
3482
3956
|
ref_key: "fileInput",
|
|
3483
3957
|
ref: p,
|
|
3484
3958
|
type: "file",
|
|
@@ -3486,10 +3960,10 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
3486
3960
|
accept: ".xlsx",
|
|
3487
3961
|
onChange: z
|
|
3488
3962
|
}, null, 544)])])]),
|
|
3489
|
-
|
|
3490
|
-
modelValue:
|
|
3491
|
-
"onUpdate:modelValue":
|
|
3492
|
-
options:
|
|
3963
|
+
u("div", As, [u("div", js, [u("label", Ms, D(e.translations.language_to_import), 1)]), u("div", Ns, [f(k(U), {
|
|
3964
|
+
modelValue: h.value,
|
|
3965
|
+
"onUpdate:modelValue": n[0] ||= (e) => h.value = e,
|
|
3966
|
+
options: d.value,
|
|
3493
3967
|
"track-by": "id",
|
|
3494
3968
|
label: "name",
|
|
3495
3969
|
placeholder: e.translations.select_language,
|
|
@@ -3501,62 +3975,62 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
3501
3975
|
"options",
|
|
3502
3976
|
"placeholder"
|
|
3503
3977
|
])])]),
|
|
3504
|
-
|
|
3978
|
+
u("div", Ps, [u("div", Fs, [I(u("input", {
|
|
3505
3979
|
id: "onlyMissingTranslations",
|
|
3506
|
-
"onUpdate:modelValue":
|
|
3980
|
+
"onUpdate:modelValue": n[1] ||= (e) => v.value = e,
|
|
3507
3981
|
class: "form-check-input",
|
|
3508
3982
|
type: "checkbox"
|
|
3509
|
-
}, null, 512), [[
|
|
3510
|
-
], 512), [[
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
])]),
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
id: "current-" +
|
|
3521
|
-
"onUpdate:modelValue": (e) =>
|
|
3983
|
+
}, null, 512), [[A, v.value]]), u("label", Is, D(e.translations.do_not_override), 1)])])
|
|
3984
|
+
], 512), [[N, b.value === 1]]),
|
|
3985
|
+
I(u("div", null, [u("div", Ls, [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", Rs, [u("thead", null, [u("tr", null, [
|
|
3986
|
+
u("th", null, D(e.translations.group), 1),
|
|
3987
|
+
u("th", null, D(e.translations.default), 1),
|
|
3988
|
+
u("th", null, D(e.translations.current_value), 1),
|
|
3989
|
+
u("th", null, D(e.translations.imported_value), 1)
|
|
3990
|
+
])]), u("tbody", null, [(S(!0), l(i, null, T(M.value, (e, t) => (S(), l(i, { key: t }, [e.has_conflict ? (S(), l("tr", zs, [
|
|
3991
|
+
u("td", Bs, D(e.group), 1),
|
|
3992
|
+
u("td", Vs, D(e.default), 1),
|
|
3993
|
+
u("td", Hs, [I(u("input", {
|
|
3994
|
+
id: "current-" + t + "0",
|
|
3995
|
+
"onUpdate:modelValue": (e) => M.value[t].checkedCurrent = e,
|
|
3522
3996
|
type: "radio",
|
|
3523
3997
|
class: "form-check-input me-1",
|
|
3524
3998
|
value: !0,
|
|
3525
|
-
name: "current-" +
|
|
3526
|
-
}, null, 8,
|
|
3999
|
+
name: "current-" + t
|
|
4000
|
+
}, null, 8, Us), [[j, M.value[t].checkedCurrent]]), u("label", {
|
|
3527
4001
|
class: "form-check-label",
|
|
3528
|
-
for: "current-" +
|
|
3529
|
-
},
|
|
3530
|
-
|
|
3531
|
-
id: "current-" +
|
|
3532
|
-
"onUpdate:modelValue": (e) =>
|
|
4002
|
+
for: "current-" + t + "0"
|
|
4003
|
+
}, D(e.current_value), 9, Ws)]),
|
|
4004
|
+
u("td", Gs, [I(u("input", {
|
|
4005
|
+
id: "current-" + t + "1",
|
|
4006
|
+
"onUpdate:modelValue": (e) => M.value[t].checkedCurrent = e,
|
|
3533
4007
|
type: "radio",
|
|
3534
4008
|
class: "form-check-input me-1",
|
|
3535
4009
|
value: !1,
|
|
3536
|
-
name: "current-" +
|
|
3537
|
-
}, null, 8,
|
|
4010
|
+
name: "current-" + t
|
|
4011
|
+
}, null, 8, Ks), [[j, M.value[t].checkedCurrent]]), u("label", {
|
|
3538
4012
|
class: "form-check-label",
|
|
3539
|
-
for: "current-" +
|
|
3540
|
-
},
|
|
3541
|
-
])) :
|
|
3542
|
-
|
|
4013
|
+
for: "current-" + t + "1"
|
|
4014
|
+
}, D(e[g.value.toLowerCase()]), 9, qs)])
|
|
4015
|
+
])) : c("", !0)], 64))), 128))])])], 512), [[N, b.value === 2]]),
|
|
4016
|
+
I(u("div", null, [u("div", Js, [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]])
|
|
3543
4017
|
]),
|
|
3544
|
-
|
|
4018
|
+
u("div", Ys, [F.value ? c("", !0) : (S(), l("button", {
|
|
3545
4019
|
key: 0,
|
|
3546
4020
|
type: "button",
|
|
3547
4021
|
class: "btn btn-primary",
|
|
3548
|
-
onClick:
|
|
3549
|
-
},
|
|
3550
|
-
])])], 6), e.show ? (
|
|
4022
|
+
onClick: R(V, ["prevent"])
|
|
4023
|
+
}, D(e.translations.next), 1))])
|
|
4024
|
+
])])], 6), e.show ? (S(), l("div", {
|
|
3551
4025
|
key: 0,
|
|
3552
4026
|
class: "modal-backdrop fade show",
|
|
3553
4027
|
onClick: B
|
|
3554
|
-
})) :
|
|
4028
|
+
})) : c("", !0)], 64));
|
|
3555
4029
|
}
|
|
3556
|
-
},
|
|
4030
|
+
}, Zs = { class: "modal-dialog" }, Qs = { class: "modal-content" }, $s = { class: "modal-header" }, ec = { class: "modal-title" }, tc = { class: "modal-body" }, nc = { class: "text-start" }, rc = { class: "text-end" }, ic = {
|
|
3557
4031
|
class: "btn btn-primary",
|
|
3558
4032
|
type: "submit"
|
|
3559
|
-
},
|
|
4033
|
+
}, ac = {
|
|
3560
4034
|
__name: "TranslationExportModal",
|
|
3561
4035
|
props: {
|
|
3562
4036
|
show: {
|
|
@@ -3577,37 +4051,37 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
3577
4051
|
}
|
|
3578
4052
|
},
|
|
3579
4053
|
emits: ["close"],
|
|
3580
|
-
setup(e, { emit:
|
|
3581
|
-
let
|
|
4054
|
+
setup(e, { emit: t }) {
|
|
4055
|
+
let n = e, r = t, a = o(() => Array.isArray(n.locales) ? n.locales : Object.values(n.locales)), s = o(() => a.value.map((e) => ({
|
|
3582
4056
|
id: e,
|
|
3583
4057
|
name: e.toUpperCase()
|
|
3584
|
-
}))), p =
|
|
3585
|
-
|
|
4058
|
+
}))), p = w([]);
|
|
4059
|
+
P(s, (e) => {
|
|
3586
4060
|
p.value = [...e];
|
|
3587
4061
|
}, { immediate: !0 });
|
|
3588
|
-
function
|
|
4062
|
+
function m() {
|
|
3589
4063
|
if (p.value.length === 0) {
|
|
3590
|
-
|
|
4064
|
+
G("Please select at least one language to export.");
|
|
3591
4065
|
return;
|
|
3592
4066
|
}
|
|
3593
4067
|
let e = new URLSearchParams();
|
|
3594
|
-
p.value.forEach((t) => e.append("exportLanguages[]", t.id)), window.location =
|
|
4068
|
+
p.value.forEach((t) => e.append("exportLanguages[]", t.id)), window.location = n.url + "/export?" + e.toString(), r("close");
|
|
3595
4069
|
}
|
|
3596
|
-
return (
|
|
3597
|
-
class:
|
|
3598
|
-
style:
|
|
3599
|
-
}, [
|
|
4070
|
+
return (t, n) => (S(), l(i, null, [u("div", {
|
|
4071
|
+
class: _(["modal fade", { show: e.show }]),
|
|
4072
|
+
style: y({ display: e.show ? "block" : "none" })
|
|
4073
|
+
}, [u("div", Zs, [u("div", Qs, [u("div", $s, [u("h4", ec, D(e.translations.export), 1), u("button", {
|
|
3600
4074
|
type: "button",
|
|
3601
4075
|
class: "btn-close",
|
|
3602
|
-
onClick:
|
|
3603
|
-
})]),
|
|
3604
|
-
|
|
3605
|
-
|
|
4076
|
+
onClick: n[0] ||= (e) => t.$emit("close")
|
|
4077
|
+
})]), u("div", tc, [u("form", { onSubmit: R(m, ["prevent"]) }, [
|
|
4078
|
+
u("p", nc, D(e.translations.export_notice), 1),
|
|
4079
|
+
f(di, {
|
|
3606
4080
|
modelValue: p.value,
|
|
3607
|
-
"onUpdate:modelValue":
|
|
4081
|
+
"onUpdate:modelValue": n[1] ||= (e) => p.value = e,
|
|
3608
4082
|
name: "languagesToExport",
|
|
3609
4083
|
label: e.translations.language_to_export,
|
|
3610
|
-
options:
|
|
4084
|
+
options: s.value,
|
|
3611
4085
|
"track-by": "id",
|
|
3612
4086
|
"option-label": "name",
|
|
3613
4087
|
placeholder: e.translations.select_language
|
|
@@ -3617,17 +4091,17 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
3617
4091
|
"options",
|
|
3618
4092
|
"placeholder"
|
|
3619
4093
|
]),
|
|
3620
|
-
|
|
3621
|
-
], 32)])])])], 6), e.show ? (
|
|
4094
|
+
u("div", rc, [u("button", ic, [n[3] ||= u("i", { class: "fa fa-file-excel" }, null, -1), d("\xA0" + D(e.translations.export_btn), 1)])])
|
|
4095
|
+
], 32)])])])], 6), e.show ? (S(), l("div", {
|
|
3622
4096
|
key: 0,
|
|
3623
4097
|
class: "modal-backdrop fade show",
|
|
3624
|
-
onClick:
|
|
3625
|
-
})) :
|
|
4098
|
+
onClick: n[2] ||= (e) => t.$emit("close")
|
|
4099
|
+
})) : c("", !0)], 64));
|
|
3626
4100
|
}
|
|
3627
|
-
},
|
|
4101
|
+
}, oc = { class: "row" }, sc = { class: "col" }, cc = { class: "card" }, lc = { class: "card-header" }, uc = { class: "row justify-content-md-between mb-3" }, dc = { class: "col col-lg-7 col-xl-5 mb-3" }, fc = { class: "col-sm-auto mb-3" }, pc = { class: "table-responsive" }, mc = { class: "table table-hover table-listing" }, hc = { key: 0 }, gc = ["title", "onClick"], _c = {
|
|
3628
4102
|
key: 0,
|
|
3629
4103
|
class: "no-items-found"
|
|
3630
|
-
},
|
|
4104
|
+
}, vc = {
|
|
3631
4105
|
__name: "TranslationListing",
|
|
3632
4106
|
props: {
|
|
3633
4107
|
url: {
|
|
@@ -3664,31 +4138,31 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
3664
4138
|
}
|
|
3665
4139
|
},
|
|
3666
4140
|
setup(e) {
|
|
3667
|
-
let
|
|
3668
|
-
|
|
3669
|
-
function
|
|
3670
|
-
|
|
4141
|
+
let t = window.axios, n = e, r = w(null), { isColumnVisible: a } = ft(r), { pagination: p, orderBy: m, filters: g, search: v, collection: y, loadData: b, filter: x, onSort: C, onPageChange: E, onPerPageChange: O } = ct(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);
|
|
4142
|
+
g.group = null;
|
|
4143
|
+
function I(e) {
|
|
4144
|
+
g.group = e ?? null, b(!0);
|
|
3671
4145
|
}
|
|
3672
|
-
function
|
|
3673
|
-
|
|
4146
|
+
function L(e) {
|
|
4147
|
+
P.value = e, j.value = !0;
|
|
3674
4148
|
}
|
|
3675
|
-
let z =
|
|
4149
|
+
let z = w(!1);
|
|
3676
4150
|
function B() {
|
|
3677
|
-
z.value = !0,
|
|
3678
|
-
z.value = !1,
|
|
4151
|
+
z.value = !0, t.post(n.url + "/rescan").then(() => {
|
|
4152
|
+
z.value = !1, b(!0);
|
|
3679
4153
|
}, () => {
|
|
3680
|
-
z.value = !1,
|
|
4154
|
+
z.value = !1, G();
|
|
3681
4155
|
});
|
|
3682
4156
|
}
|
|
3683
|
-
return (
|
|
3684
|
-
|
|
4157
|
+
return (t, n) => (S(), l("div", oc, [u("div", sc, [
|
|
4158
|
+
f(_s, {
|
|
3685
4159
|
show: j.value,
|
|
3686
|
-
item:
|
|
4160
|
+
item: P.value,
|
|
3687
4161
|
locales: A.value,
|
|
3688
4162
|
url: e.url,
|
|
3689
4163
|
translations: e.translations,
|
|
3690
|
-
onClose:
|
|
3691
|
-
onSaved:
|
|
4164
|
+
onClose: n[0] ||= (e) => j.value = !1,
|
|
4165
|
+
onSaved: k(b)
|
|
3692
4166
|
}, null, 8, [
|
|
3693
4167
|
"show",
|
|
3694
4168
|
"item",
|
|
@@ -3697,14 +4171,14 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
3697
4171
|
"translations",
|
|
3698
4172
|
"onSaved"
|
|
3699
4173
|
]),
|
|
3700
|
-
|
|
3701
|
-
show:
|
|
4174
|
+
f(Xs, {
|
|
4175
|
+
show: M.value,
|
|
3702
4176
|
locales: A.value,
|
|
3703
4177
|
url: e.url,
|
|
3704
4178
|
"step-count": e.stepCount,
|
|
3705
4179
|
translations: e.translations,
|
|
3706
|
-
onClose:
|
|
3707
|
-
onImported:
|
|
4180
|
+
onClose: n[1] ||= (e) => M.value = !1,
|
|
4181
|
+
onImported: k(b)
|
|
3708
4182
|
}, null, 8, [
|
|
3709
4183
|
"show",
|
|
3710
4184
|
"locales",
|
|
@@ -3713,62 +4187,62 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
3713
4187
|
"translations",
|
|
3714
4188
|
"onImported"
|
|
3715
4189
|
]),
|
|
3716
|
-
|
|
3717
|
-
show:
|
|
4190
|
+
f(ac, {
|
|
4191
|
+
show: N.value,
|
|
3718
4192
|
locales: A.value,
|
|
3719
4193
|
url: e.url,
|
|
3720
4194
|
translations: e.translations,
|
|
3721
|
-
onClose:
|
|
4195
|
+
onClose: n[2] ||= (e) => N.value = !1
|
|
3722
4196
|
}, null, 8, [
|
|
3723
4197
|
"show",
|
|
3724
4198
|
"locales",
|
|
3725
4199
|
"url",
|
|
3726
4200
|
"translations"
|
|
3727
4201
|
]),
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
4202
|
+
u("div", cc, [u("div", lc, [
|
|
4203
|
+
n[9] ||= u("i", { class: "fa fa-align-justify" }, null, -1),
|
|
4204
|
+
d(" " + D(e.translations.listing_title) + " ", 1),
|
|
4205
|
+
u("a", {
|
|
3732
4206
|
class: "btn btn-primary btn-sm float-end ms-2",
|
|
3733
4207
|
href: "#",
|
|
3734
4208
|
role: "button",
|
|
3735
|
-
onClick:
|
|
3736
|
-
}, [
|
|
3737
|
-
|
|
4209
|
+
onClick: n[3] ||= R((e) => M.value = !0, ["prevent"])
|
|
4210
|
+
}, [n[7] ||= u("i", { class: "fa fa-upload" }, null, -1), d("\xA0 " + D(e.translations.import_btn), 1)]),
|
|
4211
|
+
u("a", {
|
|
3738
4212
|
class: "btn btn-primary btn-sm float-end ms-2",
|
|
3739
4213
|
href: "#",
|
|
3740
4214
|
role: "button",
|
|
3741
|
-
onClick:
|
|
3742
|
-
}, [
|
|
3743
|
-
|
|
4215
|
+
onClick: n[4] ||= R((e) => N.value = !0, ["prevent"])
|
|
4216
|
+
}, [n[8] ||= u("i", { class: "fa fa-file-excel" }, null, -1), d("\xA0 " + D(e.translations.export_btn), 1)]),
|
|
4217
|
+
u("a", {
|
|
3744
4218
|
class: "btn btn-primary btn-sm float-end",
|
|
3745
4219
|
href: "#",
|
|
3746
4220
|
role: "button",
|
|
3747
|
-
onClick:
|
|
3748
|
-
}, [
|
|
3749
|
-
]),
|
|
4221
|
+
onClick: R(B, ["prevent"])
|
|
4222
|
+
}, [u("i", { class: _(["fa", z.value ? "fa-spinner fa-spin" : "fa-eye"]) }, null, 2), d("\xA0 " + D(e.translations.rescan_btn), 1)])
|
|
4223
|
+
]), u("div", {
|
|
3750
4224
|
ref_key: "cardBody",
|
|
3751
|
-
ref:
|
|
4225
|
+
ref: r,
|
|
3752
4226
|
class: "card-body"
|
|
3753
4227
|
}, [
|
|
3754
|
-
|
|
3755
|
-
search:
|
|
3756
|
-
"onUpdate:search":
|
|
3757
|
-
"filter-fn":
|
|
4228
|
+
u("div", uc, [u("div", dc, [f(kn, {
|
|
4229
|
+
search: k(v),
|
|
4230
|
+
"onUpdate:search": n[5] ||= (e) => h(v) ? v.value = e : null,
|
|
4231
|
+
"filter-fn": k(x),
|
|
3758
4232
|
translations: {
|
|
3759
4233
|
search_placeholder: e.translations.search_placeholder,
|
|
3760
4234
|
search_btn: e.translations.search_btn
|
|
3761
4235
|
}
|
|
3762
4236
|
}, {
|
|
3763
|
-
prepend:
|
|
3764
|
-
"model-value":
|
|
4237
|
+
prepend: F(() => [f(k(U), {
|
|
4238
|
+
"model-value": k(g).group,
|
|
3765
4239
|
options: e.groups,
|
|
3766
4240
|
placeholder: e.translations.all_groups,
|
|
3767
4241
|
"allow-empty": !0,
|
|
3768
4242
|
"show-labels": !1,
|
|
3769
4243
|
"open-direction": "bottom",
|
|
3770
4244
|
class: "multiselect--input-group-prepend",
|
|
3771
|
-
"onUpdate:modelValue":
|
|
4245
|
+
"onUpdate:modelValue": I
|
|
3772
4246
|
}, null, 8, [
|
|
3773
4247
|
"model-value",
|
|
3774
4248
|
"options",
|
|
@@ -3779,68 +4253,68 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
3779
4253
|
"search",
|
|
3780
4254
|
"filter-fn",
|
|
3781
4255
|
"translations"
|
|
3782
|
-
])]),
|
|
3783
|
-
modelValue:
|
|
3784
|
-
"onUpdate:modelValue":
|
|
4256
|
+
])]), u("div", fc, [f(jn, {
|
|
4257
|
+
modelValue: k(p).state.per_page,
|
|
4258
|
+
"onUpdate:modelValue": n[6] ||= (e) => k(p).state.per_page = e
|
|
3785
4259
|
}, null, 8, ["modelValue"])])]),
|
|
3786
|
-
|
|
3787
|
-
|
|
4260
|
+
u("div", pc, [u("table", mc, [u("thead", null, [u("tr", null, [
|
|
4261
|
+
f(Q, {
|
|
3788
4262
|
column: "group",
|
|
3789
|
-
"order-by":
|
|
3790
|
-
onSort:
|
|
4263
|
+
"order-by": k(m),
|
|
4264
|
+
onSort: k(C)
|
|
3791
4265
|
}, {
|
|
3792
|
-
default:
|
|
4266
|
+
default: F(() => [d(D(e.translations.group), 1)]),
|
|
3793
4267
|
_: 1
|
|
3794
4268
|
}, 8, ["order-by", "onSort"]),
|
|
3795
|
-
|
|
4269
|
+
f(Q, {
|
|
3796
4270
|
column: "key",
|
|
3797
|
-
"order-by":
|
|
3798
|
-
onSort:
|
|
4271
|
+
"order-by": k(m),
|
|
4272
|
+
onSort: k(C)
|
|
3799
4273
|
}, {
|
|
3800
|
-
default:
|
|
4274
|
+
default: F(() => [d(D(e.translations.default), 1)]),
|
|
3801
4275
|
_: 1
|
|
3802
4276
|
}, 8, ["order-by", "onSort"]),
|
|
3803
|
-
|
|
4277
|
+
f(Q, {
|
|
3804
4278
|
column: "text",
|
|
3805
|
-
"order-by":
|
|
3806
|
-
onSort:
|
|
4279
|
+
"order-by": k(m),
|
|
4280
|
+
onSort: k(C)
|
|
3807
4281
|
}, {
|
|
3808
|
-
default:
|
|
4282
|
+
default: F(() => [d(D(e.userLocale.toUpperCase()), 1)]),
|
|
3809
4283
|
_: 1
|
|
3810
4284
|
}, 8, ["order-by", "onSort"]),
|
|
3811
|
-
|
|
4285
|
+
k(a)(4) ? (S(), s(Q, {
|
|
3812
4286
|
key: 0,
|
|
3813
4287
|
column: "created_at",
|
|
3814
|
-
"order-by":
|
|
3815
|
-
onSort:
|
|
4288
|
+
"order-by": k(m),
|
|
4289
|
+
onSort: k(C)
|
|
3816
4290
|
}, {
|
|
3817
|
-
default:
|
|
4291
|
+
default: F(() => [d(D(e.translations.created_at_label), 1)]),
|
|
3818
4292
|
_: 1
|
|
3819
|
-
}, 8, ["order-by", "onSort"])) :
|
|
3820
|
-
|
|
3821
|
-
])]),
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
4293
|
+
}, 8, ["order-by", "onSort"])) : c("", !0),
|
|
4294
|
+
n[10] ||= u("th", null, null, -1)
|
|
4295
|
+
])]), u("tbody", null, [(S(!0), l(i, null, T(k(y), (t) => (S(), l("tr", { key: t.id }, [
|
|
4296
|
+
u("td", null, D(t.group), 1),
|
|
4297
|
+
u("td", null, D(t.key), 1),
|
|
4298
|
+
u("td", null, D(t.text?.[e.userLocale]), 1),
|
|
4299
|
+
k(a)(4) ? (S(), l("td", hc, D(k(K)(t.created_at)), 1)) : c("", !0),
|
|
4300
|
+
u("td", null, [u("a", {
|
|
3827
4301
|
class: "btn btn-sm btn-info",
|
|
3828
4302
|
href: "#",
|
|
3829
4303
|
title: e.translations.edit_btn,
|
|
3830
4304
|
role: "button",
|
|
3831
|
-
onClick:
|
|
3832
|
-
}, [...
|
|
4305
|
+
onClick: R((e) => L(t), ["prevent"])
|
|
4306
|
+
}, [...n[11] ||= [u("i", { class: "fa fa-edit" }, null, -1)]], 8, gc)])
|
|
3833
4307
|
]))), 128))])])]),
|
|
3834
|
-
|
|
3835
|
-
pagination:
|
|
3836
|
-
options:
|
|
4308
|
+
f(Tn, {
|
|
4309
|
+
pagination: k(p).state,
|
|
4310
|
+
options: k(p).options,
|
|
3837
4311
|
translations: {
|
|
3838
4312
|
previous: e.translations.pagination_previous,
|
|
3839
4313
|
next: e.translations.pagination_next,
|
|
3840
4314
|
overview: e.translations.pagination_overview
|
|
3841
4315
|
},
|
|
3842
|
-
onPageChange: E
|
|
3843
|
-
onPerPageChange:
|
|
4316
|
+
onPageChange: k(E),
|
|
4317
|
+
onPerPageChange: k(O)
|
|
3844
4318
|
}, null, 8, [
|
|
3845
4319
|
"pagination",
|
|
3846
4320
|
"options",
|
|
@@ -3848,21 +4322,21 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
3848
4322
|
"onPageChange",
|
|
3849
4323
|
"onPerPageChange"
|
|
3850
4324
|
]),
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
4325
|
+
k(y)?.length ? c("", !0) : (S(), l("div", _c, [
|
|
4326
|
+
n[12] ||= u("i", { class: "fa fa-magnifying-glass" }, null, -1),
|
|
4327
|
+
u("h3", null, D(e.translations.no_items), 1),
|
|
4328
|
+
u("p", null, D(e.translations.try_changing_items), 1),
|
|
4329
|
+
u("a", {
|
|
3856
4330
|
class: "btn btn-primary",
|
|
3857
4331
|
href: "#",
|
|
3858
4332
|
role: "button",
|
|
3859
|
-
onClick:
|
|
3860
|
-
}, [
|
|
4333
|
+
onClick: R(B, ["prevent"])
|
|
4334
|
+
}, [u("i", { class: _(["fa", z.value ? "fa-spinner fa-spin" : "fa-eye"]) }, null, 2), d("\xA0 " + D(e.translations.rescan_btn), 1)])
|
|
3861
4335
|
]))
|
|
3862
4336
|
], 512)])
|
|
3863
4337
|
])]));
|
|
3864
4338
|
}
|
|
3865
|
-
},
|
|
4339
|
+
}, yc = {
|
|
3866
4340
|
url: "",
|
|
3867
4341
|
collection: "",
|
|
3868
4342
|
maxNumberOfFiles: 1,
|
|
@@ -3870,16 +4344,16 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
3870
4344
|
acceptedFileTypes: void 0,
|
|
3871
4345
|
thumbnailWidth: 200,
|
|
3872
4346
|
uploadedMedia: []
|
|
3873
|
-
},
|
|
4347
|
+
}, bc = {
|
|
3874
4348
|
type: Object,
|
|
3875
|
-
default: () => ({ ...
|
|
4349
|
+
default: () => ({ ...yc })
|
|
3876
4350
|
};
|
|
3877
4351
|
//#endregion
|
|
3878
4352
|
//#region src/ui/index.js
|
|
3879
|
-
function
|
|
3880
|
-
document.readyState === "loading" ? document.addEventListener("DOMContentLoaded",
|
|
4353
|
+
function xc() {
|
|
4354
|
+
document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", Sc) : Sc();
|
|
3881
4355
|
}
|
|
3882
|
-
function
|
|
4356
|
+
function Sc() {
|
|
3883
4357
|
let e = document.getElementById("sidebar"), t = null;
|
|
3884
4358
|
document.querySelectorAll(".btn-spinner").forEach((e) => {
|
|
3885
4359
|
e.addEventListener("click", (t) => {
|
|
@@ -3919,4 +4393,4 @@ function sc() {
|
|
|
3919
4393
|
}), e && window.innerWidth < 992 && e.classList.add("hide");
|
|
3920
4394
|
}
|
|
3921
4395
|
//#endregion
|
|
3922
|
-
export {
|
|
4396
|
+
export { as as ActivationError, Qo as ActivationForm, In as BulkCheckboxHeader, zn as BulkCheckboxRow, Wn as BulkOperationsBar, Kt as CkeditorEditor, Zn as ConfirmModal, vr as DeleteButton, gr as EditButton, Pn as EmptyState, no as ForgotPasswordForm, Jr as FormCheckbox, ti as FormDatePicker, Fr as FormEmail, Pr as FormInput, Si as FormLocalizedInput, Di as FormLocalizedWysiwyg, Li as FormLocalizedWysiwygSimple, di as FormMultiSelect, $i as FormPasswordConfirm, Hi as FormSelect, ta as FormSubmit, gi as FormTagInput, Vr as FormTextarea, oi as FormWysiwyg, Mi as FormWysiwygSimple, mr as ListingHeader, ua as LocalizationBar, Fa as LoginForm, Pt as MediaUpload, Tn as Pagination, jn as PerPage, dr as PublishedAtColumn, wr as ReadOnlySwitch, No as ResetPasswordForm, kn as Search, Or as ShowRow, Q as Sortable, Ht as TiptapEditor, xr as ToggleSwitch, vc as TranslationListing, dn as UserDetailTooltip, H as dayjs, K as formatDate, q as formatDatetime, J as formatTime, Y as getDateFnsLocale, it as initDateFnsLocale, xc as initUI, yc as mediaCollectionDefaults, bc as mediaCollectionProp, G as notifyError, W as notifySuccess, Ze as nowInTimezone, ut as useAdmin, X as useBaseAuth, ot as useBaseForm, ct as useBaseListing, ft as useResponsiveColumns };
|