@dejwcake/craftable 2.0.1 → 2.0.2
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 +1542 -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/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,38 @@ 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: "mb-3 row align-items-center" }, Cr = ["for"], wr = { class: "col-md-9 col-xl-8" }, Tr = [
|
|
1979
2408
|
"id",
|
|
1980
2409
|
"type",
|
|
1981
2410
|
"value",
|
|
1982
2411
|
"name",
|
|
1983
2412
|
"placeholder"
|
|
1984
|
-
],
|
|
2413
|
+
], Er = {
|
|
1985
2414
|
key: 0,
|
|
1986
2415
|
class: "invalid-feedback form-text"
|
|
1987
|
-
},
|
|
2416
|
+
}, Dr = {
|
|
1988
2417
|
__name: "FormInput",
|
|
1989
2418
|
props: {
|
|
1990
2419
|
modelValue: {
|
|
@@ -2014,20 +2443,20 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
2014
2443
|
},
|
|
2015
2444
|
emits: ["update:modelValue"],
|
|
2016
2445
|
setup(e) {
|
|
2017
|
-
return (t, n) => (
|
|
2446
|
+
return (t, n) => (S(), l("div", Sr, [u("label", {
|
|
2018
2447
|
for: e.name,
|
|
2019
2448
|
class: "col-md-3 col-form-label text-md-end"
|
|
2020
|
-
},
|
|
2449
|
+
}, D(e.label), 9, Cr), u("div", wr, [u("input", {
|
|
2021
2450
|
id: e.name,
|
|
2022
2451
|
type: e.type,
|
|
2023
2452
|
value: e.modelValue,
|
|
2024
|
-
class:
|
|
2453
|
+
class: _(["form-control", { "is-invalid": e.error }]),
|
|
2025
2454
|
name: e.name,
|
|
2026
2455
|
placeholder: e.placeholder || e.label,
|
|
2027
2456
|
onInput: n[0] ||= (e) => t.$emit("update:modelValue", e.target.value)
|
|
2028
|
-
}, null, 42,
|
|
2457
|
+
}, null, 42, Tr), e.error ? (S(), l("div", Er, D(e.error), 1)) : c("", !0)])]));
|
|
2029
2458
|
}
|
|
2030
|
-
},
|
|
2459
|
+
}, Or = {
|
|
2031
2460
|
__name: "FormEmail",
|
|
2032
2461
|
props: {
|
|
2033
2462
|
modelValue: {
|
|
@@ -2053,21 +2482,21 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
2053
2482
|
},
|
|
2054
2483
|
emits: ["update:modelValue"],
|
|
2055
2484
|
setup(e) {
|
|
2056
|
-
return (e, t) => (
|
|
2485
|
+
return (e, t) => (S(), s(Dr, g(e.$props, {
|
|
2057
2486
|
type: "email",
|
|
2058
2487
|
"onUpdate:modelValue": t[0] ||= (t) => e.$emit("update:modelValue", t)
|
|
2059
2488
|
}), null, 16));
|
|
2060
2489
|
}
|
|
2061
|
-
},
|
|
2490
|
+
}, kr = { class: "mb-3 row align-items-center" }, Ar = ["for"], jr = { class: "col-md-9 col-xl-8" }, Mr = [
|
|
2062
2491
|
"id",
|
|
2063
2492
|
"value",
|
|
2064
2493
|
"name",
|
|
2065
2494
|
"placeholder",
|
|
2066
2495
|
"rows"
|
|
2067
|
-
],
|
|
2496
|
+
], Nr = {
|
|
2068
2497
|
key: 0,
|
|
2069
2498
|
class: "invalid-feedback form-text"
|
|
2070
|
-
},
|
|
2499
|
+
}, Pr = {
|
|
2071
2500
|
__name: "FormTextarea",
|
|
2072
2501
|
props: {
|
|
2073
2502
|
modelValue: {
|
|
@@ -2097,27 +2526,27 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
2097
2526
|
},
|
|
2098
2527
|
emits: ["update:modelValue"],
|
|
2099
2528
|
setup(e) {
|
|
2100
|
-
return (t, n) => (
|
|
2529
|
+
return (t, n) => (S(), l("div", kr, [u("label", {
|
|
2101
2530
|
for: e.name,
|
|
2102
2531
|
class: "col-md-3 col-form-label text-md-end"
|
|
2103
|
-
},
|
|
2532
|
+
}, D(e.label), 9, Ar), u("div", jr, [u("textarea", {
|
|
2104
2533
|
id: e.name,
|
|
2105
2534
|
value: e.modelValue,
|
|
2106
|
-
class:
|
|
2535
|
+
class: _(["form-control", { "is-invalid": e.error }]),
|
|
2107
2536
|
name: e.name,
|
|
2108
2537
|
placeholder: e.placeholder || e.label,
|
|
2109
2538
|
rows: e.rows,
|
|
2110
2539
|
onInput: n[0] ||= (e) => t.$emit("update:modelValue", e.target.value)
|
|
2111
|
-
}, null, 42,
|
|
2540
|
+
}, null, 42, Mr), e.error ? (S(), l("div", Nr, D(e.error), 1)) : c("", !0)])]));
|
|
2112
2541
|
}
|
|
2113
|
-
},
|
|
2542
|
+
}, Fr = { class: "mb-3 row align-items-center" }, Ir = { class: "col-md-9 col-xl-8 offset-md-3" }, Lr = { class: "form-check" }, Rr = [
|
|
2114
2543
|
"id",
|
|
2115
2544
|
"checked",
|
|
2116
2545
|
"name"
|
|
2117
|
-
],
|
|
2546
|
+
], zr = ["for"], Br = {
|
|
2118
2547
|
key: 0,
|
|
2119
2548
|
class: "invalid-feedback d-block form-text"
|
|
2120
|
-
},
|
|
2549
|
+
}, Vr = {
|
|
2121
2550
|
__name: "FormCheckbox",
|
|
2122
2551
|
props: {
|
|
2123
2552
|
modelValue: {
|
|
@@ -2139,26 +2568,26 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
2139
2568
|
},
|
|
2140
2569
|
emits: ["update:modelValue"],
|
|
2141
2570
|
setup(e) {
|
|
2142
|
-
return (t, n) => (
|
|
2571
|
+
return (t, n) => (S(), l("div", Fr, [u("div", Ir, [u("div", Lr, [u("input", {
|
|
2143
2572
|
id: e.name,
|
|
2144
2573
|
class: "form-check-input",
|
|
2145
2574
|
type: "checkbox",
|
|
2146
2575
|
checked: e.modelValue,
|
|
2147
2576
|
name: e.name,
|
|
2148
2577
|
onChange: n[0] ||= (e) => t.$emit("update:modelValue", e.target.checked)
|
|
2149
|
-
}, null, 40,
|
|
2578
|
+
}, null, 40, Rr), u("label", {
|
|
2150
2579
|
class: "form-check-label",
|
|
2151
2580
|
for: e.name
|
|
2152
|
-
},
|
|
2581
|
+
}, D(e.label), 9, zr)]), e.error ? (S(), l("div", Br, D(e.error), 1)) : c("", !0)])]));
|
|
2153
2582
|
}
|
|
2154
2583
|
}, $ = (e, t) => {
|
|
2155
2584
|
let n = e.__vccOpts || e;
|
|
2156
2585
|
for (let [e, r] of t) n[e] = r;
|
|
2157
2586
|
return n;
|
|
2158
|
-
},
|
|
2587
|
+
}, Hr = { class: "mb-3 row align-items-center" }, Ur = ["for"], Wr = { class: "col-md-9 col-xl-8" }, Gr = { class: "input-group flex-nowrap" }, Kr = { class: "input-group-text" }, qr = {
|
|
2159
2588
|
key: 0,
|
|
2160
2589
|
class: "invalid-feedback d-block form-text"
|
|
2161
|
-
},
|
|
2590
|
+
}, Jr = /*#__PURE__*/ $({
|
|
2162
2591
|
__name: "FormDatePicker",
|
|
2163
2592
|
props: {
|
|
2164
2593
|
modelValue: {
|
|
@@ -2196,10 +2625,10 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
2196
2625
|
},
|
|
2197
2626
|
emits: ["update:modelValue"],
|
|
2198
2627
|
setup(e) {
|
|
2199
|
-
return (t, n) => (
|
|
2628
|
+
return (t, n) => (S(), l("div", Hr, [u("label", {
|
|
2200
2629
|
for: e.name,
|
|
2201
2630
|
class: "col-md-3 col-form-label text-md-end"
|
|
2202
|
-
},
|
|
2631
|
+
}, D(e.label), 9, Ur), u("div", Wr, [u("div", Gr, [u("span", Kr, [u("i", { class: _(["fa", e.icon]) }, null, 2)]), f(k(Ke), g(e.config, {
|
|
2203
2632
|
id: e.name,
|
|
2204
2633
|
"model-value": e.modelValue,
|
|
2205
2634
|
class: ["datepicker-input", { "is-invalid": e.error }],
|
|
@@ -2226,12 +2655,12 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
2226
2655
|
"time-config",
|
|
2227
2656
|
"formats",
|
|
2228
2657
|
"locale"
|
|
2229
|
-
])]), e.error ? (
|
|
2658
|
+
])]), e.error ? (S(), l("div", qr, D(e.error), 1)) : c("", !0)])]));
|
|
2230
2659
|
}
|
|
2231
|
-
}, [["__scopeId", "data-v-2e6d6ada"]]),
|
|
2660
|
+
}, [["__scopeId", "data-v-2e6d6ada"]]), Yr = { class: "mb-3 row align-items-center" }, Xr = ["for"], Zr = { class: "col-md-9 col-xl-8" }, Qr = {
|
|
2232
2661
|
key: 0,
|
|
2233
2662
|
class: "invalid-feedback d-block form-text"
|
|
2234
|
-
},
|
|
2663
|
+
}, $r = {
|
|
2235
2664
|
__name: "FormWysiwyg",
|
|
2236
2665
|
props: {
|
|
2237
2666
|
modelValue: {
|
|
@@ -2261,10 +2690,10 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
2261
2690
|
},
|
|
2262
2691
|
emits: ["update:modelValue"],
|
|
2263
2692
|
setup(e) {
|
|
2264
|
-
return (t, n) => (
|
|
2693
|
+
return (t, n) => (S(), l("div", Yr, [u("label", {
|
|
2265
2694
|
for: e.name,
|
|
2266
2695
|
class: "col-md-3 col-form-label text-md-end"
|
|
2267
|
-
},
|
|
2696
|
+
}, D(e.label), 9, Xr), u("div", Zr, [f(Kt, g({
|
|
2268
2697
|
id: e.name,
|
|
2269
2698
|
"model-value": e.modelValue,
|
|
2270
2699
|
name: e.name,
|
|
@@ -2274,12 +2703,12 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
2274
2703
|
"model-value",
|
|
2275
2704
|
"name",
|
|
2276
2705
|
"upload-url"
|
|
2277
|
-
]), e.error ? (
|
|
2706
|
+
]), e.error ? (S(), l("div", Qr, D(e.error), 1)) : c("", !0)])]));
|
|
2278
2707
|
}
|
|
2279
|
-
},
|
|
2708
|
+
}, ei = { class: "mb-3 row align-items-center" }, ti = ["for"], ni = { class: "col-md-9 col-xl-8" }, ri = {
|
|
2280
2709
|
key: 0,
|
|
2281
2710
|
class: "invalid-feedback d-block form-text"
|
|
2282
|
-
},
|
|
2711
|
+
}, ii = {
|
|
2283
2712
|
__name: "FormMultiSelect",
|
|
2284
2713
|
props: {
|
|
2285
2714
|
modelValue: {
|
|
@@ -2317,12 +2746,12 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
2317
2746
|
},
|
|
2318
2747
|
emits: ["update:modelValue"],
|
|
2319
2748
|
setup(e) {
|
|
2320
|
-
return (t, n) => (
|
|
2749
|
+
return (t, n) => (S(), l("div", ei, [u("label", {
|
|
2321
2750
|
for: e.name,
|
|
2322
2751
|
class: "col-md-3 col-form-label text-md-end"
|
|
2323
|
-
},
|
|
2752
|
+
}, D(e.label), 9, ti), u("div", ni, [f(k(U), {
|
|
2324
2753
|
"model-value": e.modelValue,
|
|
2325
|
-
class:
|
|
2754
|
+
class: _({ "is-invalid": e.error }),
|
|
2326
2755
|
placeholder: e.placeholder,
|
|
2327
2756
|
options: e.options,
|
|
2328
2757
|
multiple: !0,
|
|
@@ -2337,12 +2766,12 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
2337
2766
|
"options",
|
|
2338
2767
|
"label",
|
|
2339
2768
|
"track-by"
|
|
2340
|
-
]), e.error ? (
|
|
2769
|
+
]), e.error ? (S(), l("div", ri, D(e.error), 1)) : c("", !0)])]));
|
|
2341
2770
|
}
|
|
2342
|
-
},
|
|
2771
|
+
}, ai = { class: "mb-3 row align-items-center" }, oi = ["for"], si = { class: "col-md-9 col-xl-8" }, ci = {
|
|
2343
2772
|
key: 0,
|
|
2344
2773
|
class: "invalid-feedback d-block form-text"
|
|
2345
|
-
},
|
|
2774
|
+
}, li = {
|
|
2346
2775
|
__name: "FormTagInput",
|
|
2347
2776
|
props: {
|
|
2348
2777
|
modelValue: {
|
|
@@ -2372,12 +2801,12 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
2372
2801
|
},
|
|
2373
2802
|
emits: ["update:modelValue"],
|
|
2374
2803
|
setup(e) {
|
|
2375
|
-
return (t, n) => (
|
|
2804
|
+
return (t, n) => (S(), l("div", ai, [u("label", {
|
|
2376
2805
|
for: e.name,
|
|
2377
2806
|
class: "col-md-3 col-form-label text-md-end"
|
|
2378
|
-
},
|
|
2807
|
+
}, D(e.label), 9, oi), u("div", si, [f(k(U), {
|
|
2379
2808
|
"model-value": e.modelValue,
|
|
2380
|
-
class:
|
|
2809
|
+
class: _({ "is-invalid": e.error }),
|
|
2381
2810
|
placeholder: e.placeholder,
|
|
2382
2811
|
options: e.modelValue,
|
|
2383
2812
|
multiple: !0,
|
|
@@ -2393,18 +2822,18 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
2393
2822
|
"placeholder",
|
|
2394
2823
|
"options",
|
|
2395
2824
|
"tag-placeholder"
|
|
2396
|
-
]), e.error ? (
|
|
2825
|
+
]), e.error ? (S(), l("div", ci, D(e.error), 1)) : c("", !0)])]));
|
|
2397
2826
|
}
|
|
2398
|
-
},
|
|
2827
|
+
}, ui = { class: "mb-3 row align-items-center" }, di = ["for"], fi = { class: "col-md-9 col-xl-8" }, pi = [
|
|
2399
2828
|
"id",
|
|
2400
2829
|
"value",
|
|
2401
2830
|
"name",
|
|
2402
2831
|
"placeholder",
|
|
2403
2832
|
"onInput"
|
|
2404
|
-
],
|
|
2833
|
+
], mi = {
|
|
2405
2834
|
key: 0,
|
|
2406
2835
|
class: "invalid-feedback d-block form-text"
|
|
2407
|
-
},
|
|
2836
|
+
}, hi = {
|
|
2408
2837
|
__name: "FormLocalizedInput",
|
|
2409
2838
|
props: {
|
|
2410
2839
|
modelValue: {
|
|
@@ -2437,34 +2866,34 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
2437
2866
|
}
|
|
2438
2867
|
},
|
|
2439
2868
|
emits: ["update:modelValue"],
|
|
2440
|
-
setup(e, { emit:
|
|
2441
|
-
let
|
|
2442
|
-
function
|
|
2443
|
-
|
|
2444
|
-
...
|
|
2869
|
+
setup(e, { emit: t }) {
|
|
2870
|
+
let n = e, r = t;
|
|
2871
|
+
function a(e, t) {
|
|
2872
|
+
r("update:modelValue", {
|
|
2873
|
+
...n.modelValue,
|
|
2445
2874
|
[e]: t
|
|
2446
2875
|
});
|
|
2447
2876
|
}
|
|
2448
|
-
return (
|
|
2877
|
+
return (t, n) => (S(), l("div", ui, [u("label", {
|
|
2449
2878
|
for: e.name + "_" + e.locales[0],
|
|
2450
2879
|
class: "col-md-3 col-form-label text-md-end"
|
|
2451
|
-
},
|
|
2880
|
+
}, D(e.label), 9, di), 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", {
|
|
2452
2881
|
key: t,
|
|
2453
|
-
class:
|
|
2454
|
-
}, [
|
|
2882
|
+
class: _({ "flex-fill": e.isFormLocalized })
|
|
2883
|
+
}, [u("input", {
|
|
2455
2884
|
id: e.name + "_" + t,
|
|
2456
2885
|
type: "text",
|
|
2457
2886
|
value: e.modelValue[t],
|
|
2458
|
-
class:
|
|
2887
|
+
class: _(["form-control", { "is-invalid": e.errors[e.name + "_" + t] }]),
|
|
2459
2888
|
name: e.name + "_" + t,
|
|
2460
2889
|
placeholder: e.isFormLocalized ? t.toUpperCase() : e.label,
|
|
2461
|
-
onInput: (e) =>
|
|
2462
|
-
}, null, 42,
|
|
2890
|
+
onInput: (e) => a(t, e.target.value)
|
|
2891
|
+
}, null, 42, pi), e.errors[e.name + "_" + t] ? (S(), l("div", mi, D(e.errors[e.name + "_" + t]), 1)) : c("", !0)], 2)), [[N, e.shouldShowLangGroup(t)]])), 128))], 2)])]));
|
|
2463
2892
|
}
|
|
2464
|
-
},
|
|
2893
|
+
}, gi = { class: "mb-3 row align-items-center" }, _i = ["for"], vi = { class: "col-md-9 col-xl-8" }, yi = {
|
|
2465
2894
|
key: 0,
|
|
2466
2895
|
class: "invalid-feedback d-block form-text"
|
|
2467
|
-
},
|
|
2896
|
+
}, bi = /*#__PURE__*/ $({
|
|
2468
2897
|
__name: "FormLocalizedWysiwyg",
|
|
2469
2898
|
props: {
|
|
2470
2899
|
modelValue: {
|
|
@@ -2505,37 +2934,37 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
2505
2934
|
}
|
|
2506
2935
|
},
|
|
2507
2936
|
emits: ["update:modelValue"],
|
|
2508
|
-
setup(e, { emit:
|
|
2509
|
-
let
|
|
2510
|
-
function
|
|
2511
|
-
|
|
2512
|
-
...
|
|
2937
|
+
setup(e, { emit: t }) {
|
|
2938
|
+
let n = e, r = t;
|
|
2939
|
+
function a(e, t) {
|
|
2940
|
+
r("update:modelValue", {
|
|
2941
|
+
...n.modelValue,
|
|
2513
2942
|
[e]: t
|
|
2514
2943
|
});
|
|
2515
2944
|
}
|
|
2516
|
-
return (
|
|
2945
|
+
return (t, n) => (S(), l("div", gi, [u("label", {
|
|
2517
2946
|
for: e.name + "_" + e.locales[0],
|
|
2518
2947
|
class: "col-md-3 col-form-label text-md-end"
|
|
2519
|
-
},
|
|
2948
|
+
}, D(e.label), 9, _i), u("div", vi, [u("div", { class: _({ "d-flex gap-2": e.isFormLocalized }) }, [(S(!0), l(i, null, T(e.locales, (t) => I((S(), l("div", {
|
|
2520
2949
|
key: t,
|
|
2521
|
-
class:
|
|
2522
|
-
}, [
|
|
2950
|
+
class: _({ "flex-fill localized-editor": e.isFormLocalized })
|
|
2951
|
+
}, [f(Kt, g({
|
|
2523
2952
|
id: e.name + "_" + t,
|
|
2524
2953
|
"model-value": e.modelValue[t],
|
|
2525
2954
|
name: e.name + "_" + t,
|
|
2526
2955
|
"upload-url": e.uploadUrl
|
|
2527
|
-
}, { ref_for: !0 }, e.config ? { config: e.config } : {}, { "onUpdate:modelValue": (e) =>
|
|
2956
|
+
}, { ref_for: !0 }, e.config ? { config: e.config } : {}, { "onUpdate:modelValue": (e) => a(t, e) }), null, 16, [
|
|
2528
2957
|
"id",
|
|
2529
2958
|
"model-value",
|
|
2530
2959
|
"name",
|
|
2531
2960
|
"upload-url",
|
|
2532
2961
|
"onUpdate:modelValue"
|
|
2533
|
-
]), e.errors[e.name + "_" + t] ? (
|
|
2962
|
+
]), e.errors[e.name + "_" + t] ? (S(), l("div", yi, D(e.errors[e.name + "_" + t]), 1)) : c("", !0)], 2)), [[N, e.shouldShowLangGroup(t)]])), 128))], 2)])]));
|
|
2534
2963
|
}
|
|
2535
|
-
}, [["__scopeId", "data-v-608701dd"]]),
|
|
2964
|
+
}, [["__scopeId", "data-v-608701dd"]]), xi = { class: "mb-3 row align-items-center" }, Si = ["for"], Ci = { class: "col-md-9 col-xl-8" }, wi = {
|
|
2536
2965
|
key: 0,
|
|
2537
2966
|
class: "invalid-feedback d-block form-text"
|
|
2538
|
-
},
|
|
2967
|
+
}, Ti = {
|
|
2539
2968
|
__name: "FormWysiwygSimple",
|
|
2540
2969
|
props: {
|
|
2541
2970
|
modelValue: {
|
|
@@ -2565,10 +2994,10 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
2565
2994
|
},
|
|
2566
2995
|
emits: ["update:modelValue"],
|
|
2567
2996
|
setup(e) {
|
|
2568
|
-
return (t, n) => (
|
|
2997
|
+
return (t, n) => (S(), l("div", xi, [u("label", {
|
|
2569
2998
|
for: e.name,
|
|
2570
2999
|
class: "col-md-3 col-form-label text-md-end"
|
|
2571
|
-
},
|
|
3000
|
+
}, D(e.label), 9, Si), u("div", Ci, [f(Ht, g({
|
|
2572
3001
|
id: e.name,
|
|
2573
3002
|
"model-value": e.modelValue,
|
|
2574
3003
|
name: e.name,
|
|
@@ -2578,12 +3007,12 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
2578
3007
|
"model-value",
|
|
2579
3008
|
"name",
|
|
2580
3009
|
"upload-url"
|
|
2581
|
-
]), e.error ? (
|
|
3010
|
+
]), e.error ? (S(), l("div", wi, D(e.error), 1)) : c("", !0)])]));
|
|
2582
3011
|
}
|
|
2583
|
-
},
|
|
3012
|
+
}, Ei = { class: "mb-3 row align-items-center" }, Di = ["for"], Oi = { class: "col-md-9 col-xl-8" }, ki = {
|
|
2584
3013
|
key: 0,
|
|
2585
3014
|
class: "invalid-feedback d-block form-text"
|
|
2586
|
-
},
|
|
3015
|
+
}, Ai = /*#__PURE__*/ $({
|
|
2587
3016
|
__name: "FormLocalizedWysiwygSimple",
|
|
2588
3017
|
props: {
|
|
2589
3018
|
modelValue: {
|
|
@@ -2624,37 +3053,37 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
2624
3053
|
}
|
|
2625
3054
|
},
|
|
2626
3055
|
emits: ["update:modelValue"],
|
|
2627
|
-
setup(e, { emit:
|
|
2628
|
-
let
|
|
2629
|
-
function
|
|
2630
|
-
|
|
2631
|
-
...
|
|
3056
|
+
setup(e, { emit: t }) {
|
|
3057
|
+
let n = e, r = t;
|
|
3058
|
+
function a(e, t) {
|
|
3059
|
+
r("update:modelValue", {
|
|
3060
|
+
...n.modelValue,
|
|
2632
3061
|
[e]: t
|
|
2633
3062
|
});
|
|
2634
3063
|
}
|
|
2635
|
-
return (
|
|
3064
|
+
return (t, n) => (S(), l("div", Ei, [u("label", {
|
|
2636
3065
|
for: e.name + "_" + e.locales[0],
|
|
2637
3066
|
class: "col-md-3 col-form-label text-md-end"
|
|
2638
|
-
},
|
|
3067
|
+
}, D(e.label), 9, Di), u("div", Oi, [u("div", { class: _({ "d-flex gap-2": e.isFormLocalized }) }, [(S(!0), l(i, null, T(e.locales, (t) => I((S(), l("div", {
|
|
2639
3068
|
key: t,
|
|
2640
|
-
class:
|
|
2641
|
-
}, [
|
|
3069
|
+
class: _({ "flex-fill localized-editor": e.isFormLocalized })
|
|
3070
|
+
}, [f(Ht, g({
|
|
2642
3071
|
id: e.name + "_" + t,
|
|
2643
3072
|
"model-value": e.modelValue[t],
|
|
2644
3073
|
name: e.name + "_" + t,
|
|
2645
3074
|
"upload-url": e.uploadUrl
|
|
2646
|
-
}, { ref_for: !0 }, e.config ? { config: e.config } : {}, { "onUpdate:modelValue": (e) =>
|
|
3075
|
+
}, { ref_for: !0 }, e.config ? { config: e.config } : {}, { "onUpdate:modelValue": (e) => a(t, e) }), null, 16, [
|
|
2647
3076
|
"id",
|
|
2648
3077
|
"model-value",
|
|
2649
3078
|
"name",
|
|
2650
3079
|
"upload-url",
|
|
2651
3080
|
"onUpdate:modelValue"
|
|
2652
|
-
]), e.errors[e.name + "_" + t] ? (
|
|
3081
|
+
]), e.errors[e.name + "_" + t] ? (S(), l("div", ki, D(e.errors[e.name + "_" + t]), 1)) : c("", !0)], 2)), [[N, e.shouldShowLangGroup(t)]])), 128))], 2)])]));
|
|
2653
3082
|
}
|
|
2654
|
-
}, [["__scopeId", "data-v-bf19587d"]]),
|
|
3083
|
+
}, [["__scopeId", "data-v-bf19587d"]]), ji = { class: "mb-3 row align-items-center" }, Mi = ["for"], Ni = { class: "col-md-9 col-xl-8" }, Pi = {
|
|
2655
3084
|
key: 0,
|
|
2656
3085
|
class: "invalid-feedback d-block form-text"
|
|
2657
|
-
},
|
|
3086
|
+
}, Fi = {
|
|
2658
3087
|
__name: "FormSelect",
|
|
2659
3088
|
props: {
|
|
2660
3089
|
modelValue: {
|
|
@@ -2697,12 +3126,12 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
2697
3126
|
},
|
|
2698
3127
|
emits: ["update:modelValue"],
|
|
2699
3128
|
setup(e) {
|
|
2700
|
-
return (t, n) => (
|
|
3129
|
+
return (t, n) => (S(), l("div", ji, [u("label", {
|
|
2701
3130
|
for: e.name,
|
|
2702
3131
|
class: "col-md-3 col-form-label text-md-end"
|
|
2703
|
-
},
|
|
3132
|
+
}, D(e.label), 9, Mi), u("div", Ni, [f(k(U), {
|
|
2704
3133
|
"model-value": e.modelValue,
|
|
2705
|
-
class:
|
|
3134
|
+
class: _({ "is-invalid": e.error }),
|
|
2706
3135
|
placeholder: e.placeholder,
|
|
2707
3136
|
options: e.options,
|
|
2708
3137
|
label: e.optionLabel || void 0,
|
|
@@ -2716,21 +3145,21 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
2716
3145
|
"options",
|
|
2717
3146
|
"label",
|
|
2718
3147
|
"track-by"
|
|
2719
|
-
]), e.error ? (
|
|
3148
|
+
]), e.error ? (S(), l("div", Pi, D(e.error), 1)) : c("", !0)])]));
|
|
2720
3149
|
}
|
|
2721
|
-
},
|
|
3150
|
+
}, Ii = { class: "mb-3 row align-items-center" }, Li = {
|
|
2722
3151
|
for: "password",
|
|
2723
3152
|
class: "col-md-3 col-form-label text-md-end"
|
|
2724
|
-
},
|
|
3153
|
+
}, Ri = { class: "col-md-9 col-xl-8" }, zi = ["value", "placeholder"], Bi = {
|
|
2725
3154
|
key: 0,
|
|
2726
3155
|
class: "invalid-feedback form-text"
|
|
2727
|
-
},
|
|
3156
|
+
}, Vi = { class: "mb-3 row align-items-center" }, Hi = {
|
|
2728
3157
|
for: "password_confirmation",
|
|
2729
3158
|
class: "col-md-3 col-form-label text-md-end"
|
|
2730
|
-
},
|
|
3159
|
+
}, Ui = { class: "col-md-9 col-xl-8" }, Wi = ["value", "placeholder"], Gi = {
|
|
2731
3160
|
key: 0,
|
|
2732
3161
|
class: "invalid-feedback form-text"
|
|
2733
|
-
},
|
|
3162
|
+
}, Ki = {
|
|
2734
3163
|
__name: "FormPasswordConfirm",
|
|
2735
3164
|
props: {
|
|
2736
3165
|
password: {
|
|
@@ -2756,25 +3185,25 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
2756
3185
|
},
|
|
2757
3186
|
emits: ["update:password", "update:passwordConfirmation"],
|
|
2758
3187
|
setup(e) {
|
|
2759
|
-
return (
|
|
3188
|
+
return (t, n) => (S(), l(i, null, [u("div", Ii, [u("label", Li, D(e.translations.password), 1), u("div", Ri, [u("input", {
|
|
2760
3189
|
id: "password",
|
|
2761
3190
|
type: "password",
|
|
2762
3191
|
value: e.password,
|
|
2763
|
-
class:
|
|
3192
|
+
class: _(["form-control", { "is-invalid": e.passwordError }]),
|
|
2764
3193
|
name: "password",
|
|
2765
3194
|
placeholder: e.translations.password,
|
|
2766
|
-
onInput:
|
|
2767
|
-
}, null, 42,
|
|
3195
|
+
onInput: n[0] ||= (e) => t.$emit("update:password", e.target.value)
|
|
3196
|
+
}, null, 42, zi), e.passwordError ? (S(), l("div", Bi, D(e.passwordError), 1)) : c("", !0)])]), u("div", Vi, [u("label", Hi, D(e.translations.password_repeat), 1), u("div", Ui, [u("input", {
|
|
2768
3197
|
id: "password_confirmation",
|
|
2769
3198
|
type: "password",
|
|
2770
3199
|
value: e.passwordConfirmation,
|
|
2771
|
-
class:
|
|
3200
|
+
class: _(["form-control", { "is-invalid": e.confirmationError }]),
|
|
2772
3201
|
name: "password_confirmation",
|
|
2773
3202
|
placeholder: e.translations.password,
|
|
2774
|
-
onInput:
|
|
2775
|
-
}, null, 42,
|
|
3203
|
+
onInput: n[1] ||= (e) => t.$emit("update:passwordConfirmation", e.target.value)
|
|
3204
|
+
}, null, 42, Wi), e.confirmationError ? (S(), l("div", Gi, D(e.confirmationError), 1)) : c("", !0)])])], 64));
|
|
2776
3205
|
}
|
|
2777
|
-
},
|
|
3206
|
+
}, qi = ["disabled"], Ji = {
|
|
2778
3207
|
__name: "FormSubmit",
|
|
2779
3208
|
props: {
|
|
2780
3209
|
submitting: {
|
|
@@ -2787,28 +3216,28 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
2787
3216
|
}
|
|
2788
3217
|
},
|
|
2789
3218
|
setup(e) {
|
|
2790
|
-
return (t, n) => (
|
|
3219
|
+
return (t, n) => (S(), l("button", {
|
|
2791
3220
|
type: "submit",
|
|
2792
3221
|
class: "btn btn-primary submit-btn",
|
|
2793
3222
|
disabled: e.submitting
|
|
2794
|
-
}, [
|
|
3223
|
+
}, [u("i", { class: _(["fa", e.submitting ? "fa-spinner" : "fa-download"]) }, null, 2), d(" " + D(e.label), 1)], 8, qi));
|
|
2795
3224
|
}
|
|
2796
|
-
},
|
|
3225
|
+
}, Yi = {
|
|
2797
3226
|
key: 0,
|
|
2798
3227
|
class: "row mb-2 localization-bar"
|
|
2799
|
-
},
|
|
3228
|
+
}, Xi = { key: 0 }, Zi = { key: 0 }, Qi = {
|
|
2800
3229
|
key: 1,
|
|
2801
3230
|
class: "localization-error"
|
|
2802
|
-
},
|
|
3231
|
+
}, $i = {
|
|
2803
3232
|
key: 2,
|
|
2804
3233
|
class: "d-flex align-items-center gap-2"
|
|
2805
|
-
},
|
|
3234
|
+
}, ea = { class: "text-nowrap" }, ta = {
|
|
2806
3235
|
key: 0,
|
|
2807
3236
|
class: "localization-error"
|
|
2808
|
-
},
|
|
3237
|
+
}, na = {
|
|
2809
3238
|
key: 0,
|
|
2810
3239
|
class: "localization-error"
|
|
2811
|
-
},
|
|
3240
|
+
}, ra = /*#__PURE__*/ $({
|
|
2812
3241
|
__name: "LocalizationBar",
|
|
2813
3242
|
props: {
|
|
2814
3243
|
translations: {
|
|
@@ -2850,79 +3279,79 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
2850
3279
|
"update:currentLocale"
|
|
2851
3280
|
],
|
|
2852
3281
|
setup(e) {
|
|
2853
|
-
let t = e, n =
|
|
2854
|
-
return (t,
|
|
2855
|
-
e.isFormLocalized ?
|
|
2856
|
-
|
|
2857
|
-
e.otherLocales.length > 1 ? (
|
|
2858
|
-
|
|
2859
|
-
|
|
3282
|
+
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]);
|
|
3283
|
+
return (t, a) => e.locales.length > 0 ? (S(), l("div", Yi, [u("div", { class: _(["offset-md-3 col-md-9 col-xl-8 text-start", { "d-none": e.onSmallScreen }]) }, [
|
|
3284
|
+
e.isFormLocalized ? c("", !0) : (S(), l("small", Xi, [
|
|
3285
|
+
d(D(n.value), 1),
|
|
3286
|
+
e.otherLocales.length > 1 ? (S(), l("span", Zi, D(r.value), 1)) : c("", !0),
|
|
3287
|
+
a[4] ||= d(" | ", -1),
|
|
3288
|
+
u("a", {
|
|
2860
3289
|
href: "#",
|
|
2861
|
-
onClick:
|
|
2862
|
-
},
|
|
3290
|
+
onClick: a[0] ||= R((e) => t.$emit("show-localization"), ["prevent"])
|
|
3291
|
+
}, D(e.translations.manage_translations), 1)
|
|
2863
3292
|
])),
|
|
2864
|
-
!e.isFormLocalized && e.showLocalizedValidationError ? (
|
|
2865
|
-
e.isFormLocalized ? (
|
|
2866
|
-
|
|
2867
|
-
|
|
3293
|
+
!e.isFormLocalized && e.showLocalizedValidationError ? (S(), l("i", Qi)) : c("", !0),
|
|
3294
|
+
e.isFormLocalized ? (S(), l("div", $i, [
|
|
3295
|
+
u("small", ea, D(e.translations.choose_translation_to_edit), 1),
|
|
3296
|
+
f(k(U), {
|
|
2868
3297
|
"model-value": e.currentLocale,
|
|
2869
|
-
options:
|
|
3298
|
+
options: i.value,
|
|
2870
3299
|
"custom-label": (e) => e.toUpperCase(),
|
|
2871
3300
|
searchable: !1,
|
|
2872
3301
|
"allow-empty": !1,
|
|
2873
3302
|
class: "locale-selector",
|
|
2874
|
-
"onUpdate:modelValue":
|
|
3303
|
+
"onUpdate:modelValue": a[1] ||= (e) => t.$emit("update:currentLocale", e)
|
|
2875
3304
|
}, null, 8, [
|
|
2876
3305
|
"model-value",
|
|
2877
3306
|
"options",
|
|
2878
3307
|
"custom-label"
|
|
2879
3308
|
]),
|
|
2880
|
-
e.showLocalizedValidationError ? (
|
|
2881
|
-
|
|
3309
|
+
e.showLocalizedValidationError ? (S(), l("i", ta)) : c("", !0),
|
|
3310
|
+
u("small", null, [u("a", {
|
|
2882
3311
|
href: "#",
|
|
2883
|
-
onClick:
|
|
2884
|
-
},
|
|
2885
|
-
])) :
|
|
2886
|
-
], 2), e.onSmallScreen ? (
|
|
3312
|
+
onClick: a[2] ||= R((e) => t.$emit("hide-localization"), ["prevent"])
|
|
3313
|
+
}, D(e.translations.hide), 1)])
|
|
3314
|
+
])) : c("", !0)
|
|
3315
|
+
], 2), e.onSmallScreen ? (S(), l("div", {
|
|
2887
3316
|
key: 0,
|
|
2888
|
-
class:
|
|
3317
|
+
class: _(["col", {
|
|
2889
3318
|
"language-mobile": !0,
|
|
2890
3319
|
"text-danger": !e.isFormLocalized && e.showLocalizedValidationError
|
|
2891
3320
|
}])
|
|
2892
|
-
}, [
|
|
2893
|
-
|
|
2894
|
-
|
|
3321
|
+
}, [u("small", null, [
|
|
3322
|
+
d(D(e.translations.choose_translation_to_edit) + " ", 1),
|
|
3323
|
+
f(k(U), {
|
|
2895
3324
|
"model-value": e.currentLocale,
|
|
2896
3325
|
options: [e.defaultLocale, ...e.otherLocales],
|
|
2897
3326
|
"custom-label": (e) => e.toUpperCase(),
|
|
2898
3327
|
searchable: !1,
|
|
2899
3328
|
"allow-empty": !1,
|
|
2900
3329
|
class: "locale-selector",
|
|
2901
|
-
"onUpdate:modelValue":
|
|
3330
|
+
"onUpdate:modelValue": a[3] ||= (e) => t.$emit("update:currentLocale", e)
|
|
2902
3331
|
}, null, 8, [
|
|
2903
3332
|
"model-value",
|
|
2904
3333
|
"options",
|
|
2905
3334
|
"custom-label"
|
|
2906
3335
|
]),
|
|
2907
|
-
e.showLocalizedValidationError ? (
|
|
2908
|
-
])], 2)) :
|
|
3336
|
+
e.showLocalizedValidationError ? (S(), l("i", na)) : c("", !0)
|
|
3337
|
+
])], 2)) : c("", !0)])) : c("", !0);
|
|
2909
3338
|
}
|
|
2910
|
-
}, [["__scopeId", "data-v-1c9f060d"]]),
|
|
3339
|
+
}, [["__scopeId", "data-v-1c9f060d"]]), ia = { class: "card" }, aa = { class: "card-body" }, oa = ["action"], sa = { class: "auth-header" }, ca = { class: "auth-title" }, la = { class: "auth-subtitle" }, ua = { class: "auth-body" }, da = {
|
|
2911
3340
|
key: 0,
|
|
2912
3341
|
class: "alert alert-success"
|
|
2913
|
-
},
|
|
3342
|
+
}, fa = {
|
|
2914
3343
|
key: 1,
|
|
2915
3344
|
class: "alert alert-danger"
|
|
2916
|
-
},
|
|
3345
|
+
}, pa = { class: "mb-3" }, ma = { for: "email" }, ha = { class: "input-group input-group--custom" }, ga = ["placeholder"], _a = {
|
|
2917
3346
|
key: 0,
|
|
2918
3347
|
class: "invalid-feedback d-block form-text"
|
|
2919
|
-
},
|
|
3348
|
+
}, va = { class: "mb-3" }, ya = { for: "password" }, ba = { class: "input-group input-group--custom" }, xa = ["placeholder"], Sa = {
|
|
2920
3349
|
key: 0,
|
|
2921
3350
|
class: "invalid-feedback d-block form-text"
|
|
2922
|
-
},
|
|
3351
|
+
}, Ca = { class: "mb-3" }, wa = ["disabled"], Ta = {
|
|
2923
3352
|
key: 0,
|
|
2924
3353
|
class: "fa fa-spinner fa-spin"
|
|
2925
|
-
},
|
|
3354
|
+
}, Ea = { class: "mb-3 text-center" }, Da = ["href"], Oa = /*#__PURE__*/ $({
|
|
2926
3355
|
__name: "LoginForm",
|
|
2927
3356
|
props: {
|
|
2928
3357
|
action: {
|
|
@@ -2951,7 +3380,7 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
2951
3380
|
}
|
|
2952
3381
|
},
|
|
2953
3382
|
setup(e) {
|
|
2954
|
-
let
|
|
3383
|
+
let t = e, { form: n, errors: r, submitting: a, onSubmit: o } = X(t, {
|
|
2955
3384
|
formDefaults: {
|
|
2956
3385
|
email: "",
|
|
2957
3386
|
password: ""
|
|
@@ -2961,76 +3390,76 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
2961
3390
|
password: "required"
|
|
2962
3391
|
},
|
|
2963
3392
|
onSuccess() {
|
|
2964
|
-
window.location.replace(
|
|
3393
|
+
window.location.replace(t.redirectUrl);
|
|
2965
3394
|
}
|
|
2966
3395
|
});
|
|
2967
|
-
return (
|
|
3396
|
+
return (t, s) => (S(), l("div", ia, [u("div", aa, [u("form", {
|
|
2968
3397
|
role: "form",
|
|
2969
3398
|
method: "POST",
|
|
2970
3399
|
action: e.action,
|
|
2971
3400
|
novalidate: "",
|
|
2972
|
-
onSubmit:
|
|
2973
|
-
}, [
|
|
2974
|
-
e.statusMessage ? (
|
|
2975
|
-
e.serverErrors.length ? (
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
3401
|
+
onSubmit: s[2] ||= R((...e) => k(o) && k(o)(...e), ["prevent"])
|
|
3402
|
+
}, [u("div", sa, [u("h1", ca, D(e.translations.title), 1), u("p", la, D(e.translations.signInText), 1)]), u("div", ua, [
|
|
3403
|
+
e.statusMessage ? (S(), l("div", da, D(e.statusMessage), 1)) : c("", !0),
|
|
3404
|
+
e.serverErrors.length ? (S(), l("div", fa, [u("ul", null, [(S(!0), l(i, null, T(e.serverErrors, (e, t) => (S(), l("li", { key: t }, D(e), 1))), 128))])])) : c("", !0),
|
|
3405
|
+
u("div", pa, [
|
|
3406
|
+
u("label", ma, D(e.translations.email), 1),
|
|
3407
|
+
u("div", ha, [s[3] ||= u("span", { class: "input-group-text" }, [u("i", { class: "fa fa-envelope" })], -1), I(u("input", {
|
|
2979
3408
|
id: "email",
|
|
2980
|
-
"onUpdate:modelValue":
|
|
3409
|
+
"onUpdate:modelValue": s[0] ||= (e) => k(n).email = e,
|
|
2981
3410
|
type: "text",
|
|
2982
|
-
class:
|
|
3411
|
+
class: _(["form-control", { "is-invalid": k(r).email }]),
|
|
2983
3412
|
name: "email",
|
|
2984
3413
|
placeholder: e.translations.email
|
|
2985
|
-
}, null, 10,
|
|
2986
|
-
|
|
3414
|
+
}, null, 10, ga), [[M, k(n).email]])]),
|
|
3415
|
+
k(r).email ? (S(), l("div", _a, D(k(r).email), 1)) : c("", !0)
|
|
2987
3416
|
]),
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
3417
|
+
u("div", va, [
|
|
3418
|
+
u("label", ya, D(e.translations.password), 1),
|
|
3419
|
+
u("div", ba, [s[4] ||= u("span", { class: "input-group-text" }, [u("i", { class: "fa fa-lock" })], -1), I(u("input", {
|
|
2991
3420
|
id: "password",
|
|
2992
|
-
"onUpdate:modelValue":
|
|
3421
|
+
"onUpdate:modelValue": s[1] ||= (e) => k(n).password = e,
|
|
2993
3422
|
type: "password",
|
|
2994
|
-
class:
|
|
3423
|
+
class: _(["form-control", { "is-invalid": k(r).password }]),
|
|
2995
3424
|
name: "password",
|
|
2996
3425
|
placeholder: e.translations.password
|
|
2997
|
-
}, null, 10,
|
|
2998
|
-
|
|
3426
|
+
}, null, 10, xa), [[M, k(n).password]])]),
|
|
3427
|
+
k(r).password ? (S(), l("div", Sa, D(k(r).password), 1)) : c("", !0)
|
|
2999
3428
|
]),
|
|
3000
|
-
|
|
3429
|
+
u("div", Ca, [s[5] ||= u("input", {
|
|
3001
3430
|
type: "hidden",
|
|
3002
3431
|
name: "remember",
|
|
3003
3432
|
value: "1"
|
|
3004
|
-
}, null, -1),
|
|
3433
|
+
}, null, -1), u("button", {
|
|
3005
3434
|
type: "submit",
|
|
3006
3435
|
class: "btn btn-primary submit-btn",
|
|
3007
|
-
disabled:
|
|
3008
|
-
}, [
|
|
3009
|
-
|
|
3436
|
+
disabled: k(a)
|
|
3437
|
+
}, [k(a) ? (S(), l("i", Ta)) : c("", !0), d(" " + D(e.translations.button), 1)], 8, wa)]),
|
|
3438
|
+
u("div", Ea, [u("a", {
|
|
3010
3439
|
href: e.passwordResetUrl,
|
|
3011
3440
|
class: "auth-ghost-link forgot-link"
|
|
3012
|
-
},
|
|
3013
|
-
])], 40,
|
|
3441
|
+
}, D(e.translations.forgotPassword), 9, Da)])
|
|
3442
|
+
])], 40, oa)])]));
|
|
3014
3443
|
}
|
|
3015
|
-
}, [["__scopeId", "data-v-8d4257dc"]]),
|
|
3444
|
+
}, [["__scopeId", "data-v-8d4257dc"]]), ka = { class: "card" }, Aa = { class: "card-body" }, ja = ["action"], Ma = { class: "auth-header" }, Na = { class: "auth-title" }, Pa = { class: "auth-subtitle" }, Fa = { class: "auth-body" }, Ia = {
|
|
3016
3445
|
key: 0,
|
|
3017
3446
|
class: "alert alert-success"
|
|
3018
|
-
},
|
|
3447
|
+
}, La = {
|
|
3019
3448
|
key: 1,
|
|
3020
3449
|
class: "alert alert-success"
|
|
3021
|
-
},
|
|
3450
|
+
}, Ra = {
|
|
3022
3451
|
key: 2,
|
|
3023
3452
|
class: "alert alert-danger"
|
|
3024
|
-
},
|
|
3453
|
+
}, za = { class: "mb-3" }, Ba = { for: "email" }, Va = { class: "input-group input-group--custom" }, Ha = ["placeholder"], Ua = {
|
|
3025
3454
|
key: 0,
|
|
3026
3455
|
class: "invalid-feedback d-block form-text"
|
|
3027
|
-
},
|
|
3456
|
+
}, Wa = { class: "mb-3" }, Ga = ["disabled"], Ka = {
|
|
3028
3457
|
key: 0,
|
|
3029
3458
|
class: "fa fa-spinner fa-spin"
|
|
3030
|
-
},
|
|
3459
|
+
}, qa = {
|
|
3031
3460
|
key: 3,
|
|
3032
3461
|
class: "text-center"
|
|
3033
|
-
},
|
|
3462
|
+
}, Ja = ["href"], Ya = {
|
|
3034
3463
|
__name: "ForgotPasswordForm",
|
|
3035
3464
|
props: {
|
|
3036
3465
|
action: {
|
|
@@ -3055,65 +3484,65 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
3055
3484
|
}
|
|
3056
3485
|
},
|
|
3057
3486
|
setup(e) {
|
|
3058
|
-
let { form:
|
|
3487
|
+
let { form: t, errors: n, submitting: r, successMessage: a, onSubmit: o } = X(e, {
|
|
3059
3488
|
formDefaults: { email: "" },
|
|
3060
3489
|
validationSchema: { email: "required|email" }
|
|
3061
3490
|
});
|
|
3062
|
-
return (
|
|
3491
|
+
return (s, f) => (S(), l("div", ka, [u("div", Aa, [u("form", {
|
|
3063
3492
|
role: "form",
|
|
3064
3493
|
method: "POST",
|
|
3065
3494
|
action: e.action,
|
|
3066
3495
|
novalidate: "",
|
|
3067
|
-
onSubmit: f[1] ||=
|
|
3068
|
-
}, [
|
|
3069
|
-
|
|
3070
|
-
e.statusMessage && !
|
|
3071
|
-
e.serverErrors.length ? (
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3496
|
+
onSubmit: f[1] ||= R((...e) => k(o) && k(o)(...e), ["prevent"])
|
|
3497
|
+
}, [u("div", Ma, [u("h1", Na, D(e.translations.title), 1), u("p", Pa, D(e.translations.note), 1)]), u("div", Fa, [
|
|
3498
|
+
k(a) ? (S(), l("div", Ia, D(k(a)), 1)) : c("", !0),
|
|
3499
|
+
e.statusMessage && !k(a) ? (S(), l("div", La, D(e.statusMessage), 1)) : c("", !0),
|
|
3500
|
+
e.serverErrors.length ? (S(), l("div", Ra, [u("ul", null, [(S(!0), l(i, null, T(e.serverErrors, (e, t) => (S(), l("li", { key: t }, D(e), 1))), 128))])])) : c("", !0),
|
|
3501
|
+
u("div", za, [
|
|
3502
|
+
u("label", Ba, D(e.translations.email), 1),
|
|
3503
|
+
u("div", Va, [f[2] ||= u("span", { class: "input-group-text" }, [u("i", { class: "fa fa-envelope" })], -1), I(u("input", {
|
|
3075
3504
|
id: "email",
|
|
3076
|
-
"onUpdate:modelValue": f[0] ||= (e) =>
|
|
3505
|
+
"onUpdate:modelValue": f[0] ||= (e) => k(t).email = e,
|
|
3077
3506
|
type: "text",
|
|
3078
|
-
class:
|
|
3507
|
+
class: _(["form-control", { "is-invalid": k(n).email }]),
|
|
3079
3508
|
name: "email",
|
|
3080
3509
|
placeholder: e.translations.email
|
|
3081
|
-
}, null, 10,
|
|
3082
|
-
|
|
3510
|
+
}, null, 10, Ha), [[M, k(t).email]])]),
|
|
3511
|
+
k(n).email ? (S(), l("div", Ua, D(k(n).email), 1)) : c("", !0)
|
|
3083
3512
|
]),
|
|
3084
|
-
|
|
3513
|
+
u("div", Wa, [u("button", {
|
|
3085
3514
|
type: "submit",
|
|
3086
3515
|
class: "btn btn-primary submit-btn",
|
|
3087
|
-
disabled:
|
|
3088
|
-
}, [
|
|
3089
|
-
e.loginUrl ? (
|
|
3516
|
+
disabled: k(r)
|
|
3517
|
+
}, [k(r) ? (S(), l("i", Ka)) : c("", !0), d(" " + D(e.translations.button), 1)], 8, Ga)]),
|
|
3518
|
+
e.loginUrl ? (S(), l("div", qa, [u("a", {
|
|
3090
3519
|
href: e.loginUrl,
|
|
3091
3520
|
class: "auth-ghost-link"
|
|
3092
|
-
},
|
|
3093
|
-
])], 40,
|
|
3521
|
+
}, D(e.translations.backToLogin), 9, Ja)])) : c("", !0)
|
|
3522
|
+
])], 40, ja)])]));
|
|
3094
3523
|
}
|
|
3095
|
-
},
|
|
3524
|
+
}, Xa = { class: "card" }, Za = { class: "card-body" }, Qa = ["action"], $a = { class: "auth-header" }, eo = { class: "auth-title" }, to = { class: "auth-subtitle" }, no = { class: "auth-body" }, ro = {
|
|
3096
3525
|
key: 0,
|
|
3097
3526
|
class: "alert alert-success"
|
|
3098
|
-
},
|
|
3527
|
+
}, io = {
|
|
3099
3528
|
key: 1,
|
|
3100
3529
|
class: "alert alert-danger"
|
|
3101
|
-
},
|
|
3530
|
+
}, ao = { class: "mb-3" }, oo = { for: "email" }, so = { class: "input-group input-group--custom" }, co = ["placeholder"], lo = {
|
|
3102
3531
|
key: 0,
|
|
3103
3532
|
class: "invalid-feedback d-block form-text"
|
|
3104
|
-
},
|
|
3533
|
+
}, uo = { class: "mb-3" }, fo = { for: "password" }, po = { class: "input-group input-group--custom" }, mo = ["placeholder"], ho = {
|
|
3105
3534
|
key: 0,
|
|
3106
3535
|
class: "invalid-feedback d-block form-text"
|
|
3107
|
-
},
|
|
3536
|
+
}, go = { class: "mb-3" }, _o = { for: "password_confirmation" }, vo = { class: "input-group input-group--custom" }, yo = ["placeholder"], bo = {
|
|
3108
3537
|
key: 0,
|
|
3109
3538
|
class: "invalid-feedback d-block form-text"
|
|
3110
|
-
},
|
|
3539
|
+
}, xo = { class: "mb-3" }, So = ["disabled"], Co = {
|
|
3111
3540
|
key: 0,
|
|
3112
3541
|
class: "fa fa-spinner fa-spin"
|
|
3113
|
-
},
|
|
3542
|
+
}, wo = {
|
|
3114
3543
|
key: 2,
|
|
3115
3544
|
class: "text-center"
|
|
3116
|
-
},
|
|
3545
|
+
}, To = ["href"], Eo = {
|
|
3117
3546
|
__name: "ResetPasswordForm",
|
|
3118
3547
|
props: {
|
|
3119
3548
|
action: {
|
|
@@ -3150,12 +3579,12 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
3150
3579
|
}
|
|
3151
3580
|
},
|
|
3152
3581
|
setup(e) {
|
|
3153
|
-
let
|
|
3582
|
+
let t = e, { form: n, errors: r, submitting: a, onSubmit: o } = X(t, {
|
|
3154
3583
|
formDefaults: {
|
|
3155
|
-
email:
|
|
3584
|
+
email: t.email,
|
|
3156
3585
|
password: "",
|
|
3157
3586
|
password_confirmation: "",
|
|
3158
|
-
token:
|
|
3587
|
+
token: t.token
|
|
3159
3588
|
},
|
|
3160
3589
|
validationSchema: {
|
|
3161
3590
|
email: "required|email",
|
|
@@ -3163,81 +3592,81 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
3163
3592
|
password_confirmation: "required|confirmed:@password"
|
|
3164
3593
|
},
|
|
3165
3594
|
onSuccess(e) {
|
|
3166
|
-
window.location.replace(e.redirect ||
|
|
3595
|
+
window.location.replace(e.redirect || t.redirectUrl);
|
|
3167
3596
|
}
|
|
3168
3597
|
});
|
|
3169
|
-
return (
|
|
3598
|
+
return (t, s) => (S(), l("div", Xa, [u("div", Za, [u("form", {
|
|
3170
3599
|
role: "form",
|
|
3171
3600
|
method: "POST",
|
|
3172
3601
|
action: e.action,
|
|
3173
3602
|
novalidate: "",
|
|
3174
|
-
onSubmit:
|
|
3175
|
-
}, [
|
|
3176
|
-
e.statusMessage ? (
|
|
3177
|
-
e.serverErrors.length ? (
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3603
|
+
onSubmit: s[3] ||= R((...e) => k(o) && k(o)(...e), ["prevent"])
|
|
3604
|
+
}, [u("div", $a, [u("h1", eo, D(e.translations.title), 1), u("p", to, D(e.translations.note), 1)]), u("div", no, [
|
|
3605
|
+
e.statusMessage ? (S(), l("div", ro, D(e.statusMessage), 1)) : c("", !0),
|
|
3606
|
+
e.serverErrors.length ? (S(), l("div", io, [u("ul", null, [(S(!0), l(i, null, T(e.serverErrors, (e, t) => (S(), l("li", { key: t }, D(e), 1))), 128))])])) : c("", !0),
|
|
3607
|
+
u("div", ao, [
|
|
3608
|
+
u("label", oo, D(e.translations.email), 1),
|
|
3609
|
+
u("div", so, [s[4] ||= u("span", { class: "input-group-text" }, [u("i", { class: "fa fa-envelope" })], -1), I(u("input", {
|
|
3181
3610
|
id: "email",
|
|
3182
|
-
"onUpdate:modelValue":
|
|
3611
|
+
"onUpdate:modelValue": s[0] ||= (e) => k(n).email = e,
|
|
3183
3612
|
type: "text",
|
|
3184
|
-
class:
|
|
3613
|
+
class: _(["form-control", { "is-invalid": k(r).email }]),
|
|
3185
3614
|
name: "email",
|
|
3186
3615
|
placeholder: e.translations.email
|
|
3187
|
-
}, null, 10,
|
|
3188
|
-
|
|
3616
|
+
}, null, 10, co), [[M, k(n).email]])]),
|
|
3617
|
+
k(r).email ? (S(), l("div", lo, D(k(r).email), 1)) : c("", !0)
|
|
3189
3618
|
]),
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3619
|
+
u("div", uo, [
|
|
3620
|
+
u("label", fo, D(e.translations.password), 1),
|
|
3621
|
+
u("div", po, [s[5] ||= u("span", { class: "input-group-text" }, [u("i", { class: "fa fa-lock" })], -1), I(u("input", {
|
|
3193
3622
|
id: "password",
|
|
3194
|
-
"onUpdate:modelValue":
|
|
3623
|
+
"onUpdate:modelValue": s[1] ||= (e) => k(n).password = e,
|
|
3195
3624
|
type: "password",
|
|
3196
|
-
class:
|
|
3625
|
+
class: _(["form-control", { "is-invalid": k(r).password }]),
|
|
3197
3626
|
name: "password",
|
|
3198
3627
|
placeholder: e.translations.password
|
|
3199
|
-
}, null, 10,
|
|
3200
|
-
|
|
3628
|
+
}, null, 10, mo), [[M, k(n).password]])]),
|
|
3629
|
+
k(r).password ? (S(), l("div", ho, D(k(r).password), 1)) : c("", !0)
|
|
3201
3630
|
]),
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3631
|
+
u("div", go, [
|
|
3632
|
+
u("label", _o, D(e.translations.passwordConfirm), 1),
|
|
3633
|
+
u("div", vo, [s[6] ||= u("span", { class: "input-group-text" }, [u("i", { class: "fa fa-lock" })], -1), I(u("input", {
|
|
3205
3634
|
id: "password_confirmation",
|
|
3206
|
-
"onUpdate:modelValue":
|
|
3635
|
+
"onUpdate:modelValue": s[2] ||= (e) => k(n).password_confirmation = e,
|
|
3207
3636
|
type: "password",
|
|
3208
|
-
class:
|
|
3637
|
+
class: _(["form-control", { "is-invalid": k(r).password_confirmation }]),
|
|
3209
3638
|
name: "password_confirmation",
|
|
3210
3639
|
placeholder: e.translations.passwordConfirm
|
|
3211
|
-
}, null, 10,
|
|
3212
|
-
|
|
3640
|
+
}, null, 10, yo), [[M, k(n).password_confirmation]])]),
|
|
3641
|
+
k(r).password_confirmation ? (S(), l("div", bo, D(k(r).password_confirmation), 1)) : c("", !0)
|
|
3213
3642
|
]),
|
|
3214
|
-
|
|
3643
|
+
u("div", xo, [u("button", {
|
|
3215
3644
|
type: "submit",
|
|
3216
3645
|
class: "btn btn-primary submit-btn",
|
|
3217
|
-
disabled:
|
|
3218
|
-
}, [
|
|
3219
|
-
e.loginUrl ? (
|
|
3646
|
+
disabled: k(a)
|
|
3647
|
+
}, [k(a) ? (S(), l("i", Co)) : c("", !0), d(" " + D(e.translations.button), 1)], 8, So)]),
|
|
3648
|
+
e.loginUrl ? (S(), l("div", wo, [u("a", {
|
|
3220
3649
|
href: e.loginUrl,
|
|
3221
3650
|
class: "auth-ghost-link"
|
|
3222
|
-
},
|
|
3223
|
-
])], 40,
|
|
3651
|
+
}, D(e.translations.backToLogin), 9, To)])) : c("", !0)
|
|
3652
|
+
])], 40, Qa)])]));
|
|
3224
3653
|
}
|
|
3225
|
-
},
|
|
3654
|
+
}, Do = { class: "card" }, Oo = { class: "card-body" }, ko = ["action"], Ao = { class: "auth-header" }, jo = { class: "auth-title" }, Mo = { class: "auth-subtitle" }, No = { class: "auth-body" }, Po = {
|
|
3226
3655
|
key: 0,
|
|
3227
3656
|
class: "alert alert-success"
|
|
3228
|
-
},
|
|
3657
|
+
}, Fo = {
|
|
3229
3658
|
key: 1,
|
|
3230
3659
|
class: "alert alert-success"
|
|
3231
|
-
},
|
|
3660
|
+
}, Io = {
|
|
3232
3661
|
key: 2,
|
|
3233
3662
|
class: "alert alert-danger"
|
|
3234
|
-
},
|
|
3663
|
+
}, Lo = { class: "mb-3" }, Ro = { for: "email" }, zo = { class: "input-group input-group--custom" }, Bo = ["placeholder"], Vo = {
|
|
3235
3664
|
key: 0,
|
|
3236
3665
|
class: "invalid-feedback d-block form-text"
|
|
3237
|
-
},
|
|
3666
|
+
}, Ho = { class: "mb-3" }, Uo = ["disabled"], Wo = {
|
|
3238
3667
|
key: 0,
|
|
3239
3668
|
class: "fa fa-spinner fa-spin"
|
|
3240
|
-
},
|
|
3669
|
+
}, Go = {
|
|
3241
3670
|
__name: "ActivationForm",
|
|
3242
3671
|
props: {
|
|
3243
3672
|
action: {
|
|
@@ -3258,43 +3687,43 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
3258
3687
|
}
|
|
3259
3688
|
},
|
|
3260
3689
|
setup(e) {
|
|
3261
|
-
let { form:
|
|
3690
|
+
let { form: t, errors: n, submitting: r, successMessage: a, onSubmit: o } = X(e, {
|
|
3262
3691
|
formDefaults: { email: "" },
|
|
3263
3692
|
validationSchema: { email: "required|email" }
|
|
3264
3693
|
});
|
|
3265
|
-
return (
|
|
3694
|
+
return (s, f) => (S(), l("div", Do, [u("div", Oo, [u("form", {
|
|
3266
3695
|
role: "form",
|
|
3267
3696
|
method: "POST",
|
|
3268
3697
|
action: e.action,
|
|
3269
3698
|
novalidate: "",
|
|
3270
|
-
onSubmit: f[1] ||=
|
|
3271
|
-
}, [
|
|
3272
|
-
|
|
3273
|
-
e.statusMessage && !
|
|
3274
|
-
e.serverErrors.length ? (
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3699
|
+
onSubmit: f[1] ||= R((...e) => k(o) && k(o)(...e), ["prevent"])
|
|
3700
|
+
}, [u("div", Ao, [u("h1", jo, D(e.translations.title), 1), u("p", Mo, D(e.translations.note), 1)]), u("div", No, [
|
|
3701
|
+
k(a) ? (S(), l("div", Po, D(k(a)), 1)) : c("", !0),
|
|
3702
|
+
e.statusMessage && !k(a) ? (S(), l("div", Fo, D(e.statusMessage), 1)) : c("", !0),
|
|
3703
|
+
e.serverErrors.length ? (S(), l("div", Io, [u("ul", null, [(S(!0), l(i, null, T(e.serverErrors, (e, t) => (S(), l("li", { key: t }, D(e), 1))), 128))])])) : c("", !0),
|
|
3704
|
+
u("div", Lo, [
|
|
3705
|
+
u("label", Ro, D(e.translations.email), 1),
|
|
3706
|
+
u("div", zo, [f[2] ||= u("span", { class: "input-group-text" }, [u("i", { class: "fa fa-envelope" })], -1), I(u("input", {
|
|
3278
3707
|
id: "email",
|
|
3279
|
-
"onUpdate:modelValue": f[0] ||= (e) =>
|
|
3708
|
+
"onUpdate:modelValue": f[0] ||= (e) => k(t).email = e,
|
|
3280
3709
|
type: "text",
|
|
3281
|
-
class:
|
|
3710
|
+
class: _(["form-control", { "is-invalid": k(n).email }]),
|
|
3282
3711
|
name: "email",
|
|
3283
3712
|
placeholder: e.translations.email
|
|
3284
|
-
}, null, 10,
|
|
3285
|
-
|
|
3713
|
+
}, null, 10, Bo), [[M, k(t).email]])]),
|
|
3714
|
+
k(n).email ? (S(), l("div", Vo, D(k(n).email), 1)) : c("", !0)
|
|
3286
3715
|
]),
|
|
3287
|
-
|
|
3716
|
+
u("div", Ho, [u("button", {
|
|
3288
3717
|
type: "submit",
|
|
3289
3718
|
class: "btn btn-primary submit-btn",
|
|
3290
|
-
disabled:
|
|
3291
|
-
}, [
|
|
3292
|
-
])], 40,
|
|
3719
|
+
disabled: k(r)
|
|
3720
|
+
}, [k(r) ? (S(), l("i", Wo)) : c("", !0), d(" " + D(e.translations.button), 1)], 8, Uo)])
|
|
3721
|
+
])], 40, ko)])]));
|
|
3293
3722
|
}
|
|
3294
|
-
},
|
|
3723
|
+
}, Ko = { class: "card" }, qo = { class: "card-body" }, Jo = { class: "auth-header" }, Yo = { class: "auth-title" }, Xo = { class: "auth-body" }, Zo = {
|
|
3295
3724
|
key: 0,
|
|
3296
3725
|
class: "alert alert-danger"
|
|
3297
|
-
},
|
|
3726
|
+
}, Qo = {
|
|
3298
3727
|
__name: "ActivationError",
|
|
3299
3728
|
props: {
|
|
3300
3729
|
translations: {
|
|
@@ -3307,15 +3736,15 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
3307
3736
|
}
|
|
3308
3737
|
},
|
|
3309
3738
|
setup(e) {
|
|
3310
|
-
return (
|
|
3739
|
+
return (t, n) => (S(), l("div", Ko, [u("div", qo, [u("div", Jo, [u("h1", Yo, D(e.translations.title), 1)]), u("div", Xo, [e.serverErrors.length ? (S(), l("div", Zo, [u("ul", null, [(S(!0), l(i, null, T(e.serverErrors, (e, t) => (S(), l("li", { key: t }, D(e), 1))), 128))])])) : c("", !0)])])]));
|
|
3311
3740
|
}
|
|
3312
|
-
},
|
|
3741
|
+
}, $o = { class: "modal-dialog" }, es = { class: "modal-content" }, ts = { class: "modal-header" }, ns = { class: "modal-title" }, rs = { class: "modal-body" }, is = {
|
|
3313
3742
|
class: "text-center",
|
|
3314
3743
|
style: { "word-wrap": "break-word" }
|
|
3315
|
-
},
|
|
3744
|
+
}, as = { class: "form-label" }, os = ["onUpdate:modelValue", "placeholder"], ss = ["onUpdate:modelValue", "placeholder"], cs = { class: "text-center" }, ls = {
|
|
3316
3745
|
class: "btn btn-primary w-100",
|
|
3317
3746
|
type: "submit"
|
|
3318
|
-
},
|
|
3747
|
+
}, us = {
|
|
3319
3748
|
__name: "TranslationEditModal",
|
|
3320
3749
|
props: {
|
|
3321
3750
|
show: {
|
|
@@ -3340,63 +3769,63 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
3340
3769
|
}
|
|
3341
3770
|
},
|
|
3342
3771
|
emits: ["close", "saved"],
|
|
3343
|
-
setup(e, { emit:
|
|
3344
|
-
let
|
|
3345
|
-
|
|
3772
|
+
setup(e, { emit: t }) {
|
|
3773
|
+
let n = window.axios, r = e, a = t, s = o(() => Array.isArray(r.locales) ? r.locales : Object.values(r.locales)), f = C({});
|
|
3774
|
+
P(() => r.item, (e) => {
|
|
3346
3775
|
Object.keys(f).forEach((e) => delete f[e]);
|
|
3347
3776
|
for (let t of Object.keys(e?.text || {})) f[t] = e.text[t];
|
|
3348
3777
|
}, { immediate: !0 });
|
|
3349
3778
|
async function p() {
|
|
3350
3779
|
try {
|
|
3351
|
-
await
|
|
3780
|
+
await n.post(r.url + "/" + r.item.id, { text: { ...f } }), W("Item successfully changed."), a("saved"), a("close");
|
|
3352
3781
|
} catch {
|
|
3353
|
-
|
|
3782
|
+
G();
|
|
3354
3783
|
}
|
|
3355
3784
|
}
|
|
3356
|
-
return (
|
|
3357
|
-
class:
|
|
3358
|
-
style:
|
|
3359
|
-
}, [
|
|
3785
|
+
return (t, n) => (S(), l(i, null, [u("div", {
|
|
3786
|
+
class: _(["modal fade", { show: e.show }]),
|
|
3787
|
+
style: y({ display: e.show ? "block" : "none" })
|
|
3788
|
+
}, [u("div", $o, [u("div", es, [u("div", ts, [u("h4", ns, D(e.translations.edit), 1), u("button", {
|
|
3360
3789
|
type: "button",
|
|
3361
3790
|
class: "btn-close",
|
|
3362
|
-
onClick:
|
|
3363
|
-
})]),
|
|
3791
|
+
onClick: n[0] ||= (e) => t.$emit("close")
|
|
3792
|
+
})]), u("div", rs, [u("p", is, [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
3793
|
key: t,
|
|
3365
3794
|
class: "mb-3"
|
|
3366
|
-
}, [
|
|
3795
|
+
}, [u("label", as, D(t.toUpperCase()) + " " + D(e.translations.translation), 1), !f[t] || f[t].length < 70 ? I((S(), l("input", {
|
|
3367
3796
|
key: 0,
|
|
3368
3797
|
"onUpdate:modelValue": (e) => f[t] = e,
|
|
3369
3798
|
type: "text",
|
|
3370
3799
|
class: "form-control",
|
|
3371
3800
|
placeholder: (e.translations.translation_for || "").replace(":locale", t)
|
|
3372
|
-
}, null, 8,
|
|
3801
|
+
}, null, 8, os)), [[M, f[t]]]) : I((S(), l("textarea", {
|
|
3373
3802
|
key: 1,
|
|
3374
3803
|
"onUpdate:modelValue": (e) => f[t] = e,
|
|
3375
3804
|
class: "form-control",
|
|
3376
3805
|
placeholder: (e.translations.translation_for || "").replace(":locale", t),
|
|
3377
3806
|
cols: "30",
|
|
3378
3807
|
rows: "4"
|
|
3379
|
-
}, null, 8,
|
|
3808
|
+
}, null, 8, ss)), [[M, f[t]]])]))), 128)), u("div", cs, [u("button", ls, D(e.translations.save) + " " + D(e.translations.translation), 1)])], 32)])])])], 6), e.show ? (S(), l("div", {
|
|
3380
3809
|
key: 0,
|
|
3381
3810
|
class: "modal-backdrop fade show",
|
|
3382
|
-
onClick:
|
|
3383
|
-
})) :
|
|
3811
|
+
onClick: n[1] ||= (e) => t.$emit("close")
|
|
3812
|
+
})) : c("", !0)], 64));
|
|
3384
3813
|
}
|
|
3385
|
-
},
|
|
3814
|
+
}, ds = { class: "modal-dialog modal-lg" }, fs = { class: "modal-content" }, ps = { class: "modal-header" }, ms = { class: "modal-title" }, hs = { class: "modal-body" }, gs = { class: "row mb-3" }, _s = { class: "col-md-4 text-md-end" }, vs = { class: "col-form-label" }, ys = { class: "col-md-6" }, bs = { class: "btn btn-primary btn-sm w-100 mb-0" }, xs = { key: 0 }, Ss = { key: 1 }, Cs = { class: "row mb-3" }, ws = { class: "col-md-4 text-md-end" }, Ts = {
|
|
3386
3815
|
for: "importLanguage",
|
|
3387
3816
|
class: "col-form-label"
|
|
3388
|
-
},
|
|
3817
|
+
}, Es = { class: "col-md-6" }, Ds = { class: "offset-md-4" }, Os = { class: "form-check" }, ks = {
|
|
3389
3818
|
class: "form-check-label",
|
|
3390
3819
|
for: "onlyMissingTranslations"
|
|
3391
|
-
},
|
|
3820
|
+
}, As = { class: "text-center mb-3" }, js = { class: "table table-hover" }, Ms = { key: 0 }, Ns = { style: { "word-break": "break-all" } }, Ps = { style: { "word-break": "break-all" } }, Fs = { style: { "word-break": "break-all" } }, Is = [
|
|
3392
3821
|
"id",
|
|
3393
3822
|
"onUpdate:modelValue",
|
|
3394
3823
|
"name"
|
|
3395
|
-
],
|
|
3824
|
+
], Ls = ["for"], Rs = { style: { "word-break": "break-all" } }, zs = [
|
|
3396
3825
|
"id",
|
|
3397
3826
|
"onUpdate:modelValue",
|
|
3398
3827
|
"name"
|
|
3399
|
-
],
|
|
3828
|
+
], Bs = ["for"], Vs = { class: "text-center" }, Hs = { class: "modal-footer" }, Us = {
|
|
3400
3829
|
__name: "TranslationImportModal",
|
|
3401
3830
|
props: {
|
|
3402
3831
|
show: {
|
|
@@ -3421,64 +3850,64 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
3421
3850
|
}
|
|
3422
3851
|
},
|
|
3423
3852
|
emits: ["close", "imported"],
|
|
3424
|
-
setup(e, { emit:
|
|
3425
|
-
let
|
|
3853
|
+
setup(e, { emit: t }) {
|
|
3854
|
+
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
3855
|
id: e,
|
|
3427
3856
|
name: e.toUpperCase()
|
|
3428
|
-
}))), p =
|
|
3429
|
-
|
|
3430
|
-
e ||
|
|
3857
|
+
}))), 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);
|
|
3858
|
+
P(() => r.show, (e) => {
|
|
3859
|
+
e || L();
|
|
3431
3860
|
});
|
|
3432
|
-
function
|
|
3433
|
-
|
|
3861
|
+
function L() {
|
|
3862
|
+
b.value = 1, m.value = null, h.value = null, v.value = !1, M.value = null, p.value && (p.value.value = "");
|
|
3434
3863
|
}
|
|
3435
3864
|
function z(e) {
|
|
3436
|
-
|
|
3865
|
+
m.value = e.target.files[0];
|
|
3437
3866
|
}
|
|
3438
3867
|
function B() {
|
|
3439
|
-
|
|
3868
|
+
a("close");
|
|
3440
3869
|
}
|
|
3441
|
-
async function
|
|
3442
|
-
if (
|
|
3443
|
-
if (!
|
|
3444
|
-
|
|
3870
|
+
async function V() {
|
|
3871
|
+
if (b.value === 1) {
|
|
3872
|
+
if (!m.value || !g.value) {
|
|
3873
|
+
G("The form contains invalid fields.");
|
|
3445
3874
|
return;
|
|
3446
3875
|
}
|
|
3447
3876
|
let e = new FormData();
|
|
3448
|
-
e.append("fileImport",
|
|
3877
|
+
e.append("fileImport", m.value), e.append("importLanguage", g.value), e.append("onlyMissing", v.value);
|
|
3449
3878
|
try {
|
|
3450
|
-
let t = await
|
|
3451
|
-
"numberOfImportedTranslations" in t.data && "numberOfUpdatedTranslations" in t.data ? (
|
|
3879
|
+
let t = await n.post(r.url + "/import", e, { headers: { "Content-Type": "multipart/form-data" } });
|
|
3880
|
+
"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
3881
|
} catch (e) {
|
|
3453
3882
|
let t = e.response?.data;
|
|
3454
|
-
t === "Wrong syntax in your import" ?
|
|
3883
|
+
t === "Wrong syntax in your import" ? G("Wrong syntax in your import.") : t === "Unsupported file type" ? G("Unsupported file type.") : G();
|
|
3455
3884
|
}
|
|
3456
|
-
} else if (
|
|
3457
|
-
for (let e = 0; e <
|
|
3885
|
+
} else if (b.value === 2) {
|
|
3886
|
+
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
3887
|
try {
|
|
3459
|
-
let e = await
|
|
3460
|
-
importLanguage:
|
|
3461
|
-
resolvedTranslations:
|
|
3888
|
+
let e = await n.post(r.url + "/import/conflicts", {
|
|
3889
|
+
importLanguage: g.value,
|
|
3890
|
+
resolvedTranslations: M.value
|
|
3462
3891
|
});
|
|
3463
|
-
|
|
3892
|
+
b.value = 3, x.value = e.data.numberOfImportedTranslations, C.value = e.data.numberOfUpdatedTranslations, a("imported");
|
|
3464
3893
|
} catch {
|
|
3465
|
-
|
|
3894
|
+
G();
|
|
3466
3895
|
}
|
|
3467
3896
|
}
|
|
3468
3897
|
}
|
|
3469
|
-
return (
|
|
3470
|
-
class:
|
|
3471
|
-
style:
|
|
3472
|
-
}, [
|
|
3473
|
-
|
|
3898
|
+
return (t, n) => (S(), l(i, null, [u("div", {
|
|
3899
|
+
class: _(["modal fade", { show: e.show }]),
|
|
3900
|
+
style: y({ display: e.show ? "block" : "none" })
|
|
3901
|
+
}, [u("div", ds, [u("div", fs, [
|
|
3902
|
+
u("div", ps, [u("h4", ms, D(e.translations.import_title), 1), u("button", {
|
|
3474
3903
|
type: "button",
|
|
3475
3904
|
class: "btn-close",
|
|
3476
3905
|
onClick: B
|
|
3477
3906
|
})]),
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3907
|
+
u("div", hs, [
|
|
3908
|
+
I(u("div", null, [
|
|
3909
|
+
u("p", null, D(e.translations.import_notice), 1),
|
|
3910
|
+
u("div", gs, [u("div", _s, [u("label", vs, D(e.translations.upload_file), 1)]), u("div", ys, [u("label", bs, [m.value ? (S(), l("span", xs, D(m.value.name), 1)) : (S(), l("span", Ss, D(e.translations.choose_file), 1)), u("input", {
|
|
3482
3911
|
ref_key: "fileInput",
|
|
3483
3912
|
ref: p,
|
|
3484
3913
|
type: "file",
|
|
@@ -3486,10 +3915,10 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
3486
3915
|
accept: ".xlsx",
|
|
3487
3916
|
onChange: z
|
|
3488
3917
|
}, null, 544)])])]),
|
|
3489
|
-
|
|
3490
|
-
modelValue:
|
|
3491
|
-
"onUpdate:modelValue":
|
|
3492
|
-
options:
|
|
3918
|
+
u("div", Cs, [u("div", ws, [u("label", Ts, D(e.translations.language_to_import), 1)]), u("div", Es, [f(k(U), {
|
|
3919
|
+
modelValue: h.value,
|
|
3920
|
+
"onUpdate:modelValue": n[0] ||= (e) => h.value = e,
|
|
3921
|
+
options: d.value,
|
|
3493
3922
|
"track-by": "id",
|
|
3494
3923
|
label: "name",
|
|
3495
3924
|
placeholder: e.translations.select_language,
|
|
@@ -3501,62 +3930,62 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
3501
3930
|
"options",
|
|
3502
3931
|
"placeholder"
|
|
3503
3932
|
])])]),
|
|
3504
|
-
|
|
3933
|
+
u("div", Ds, [u("div", Os, [I(u("input", {
|
|
3505
3934
|
id: "onlyMissingTranslations",
|
|
3506
|
-
"onUpdate:modelValue":
|
|
3935
|
+
"onUpdate:modelValue": n[1] ||= (e) => v.value = e,
|
|
3507
3936
|
class: "form-check-input",
|
|
3508
3937
|
type: "checkbox"
|
|
3509
|
-
}, null, 512), [[
|
|
3510
|
-
], 512), [[
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
])]),
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
id: "current-" +
|
|
3521
|
-
"onUpdate:modelValue": (e) =>
|
|
3938
|
+
}, null, 512), [[A, v.value]]), u("label", ks, D(e.translations.do_not_override), 1)])])
|
|
3939
|
+
], 512), [[N, b.value === 1]]),
|
|
3940
|
+
I(u("div", null, [u("div", As, [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", js, [u("thead", null, [u("tr", null, [
|
|
3941
|
+
u("th", null, D(e.translations.group), 1),
|
|
3942
|
+
u("th", null, D(e.translations.default), 1),
|
|
3943
|
+
u("th", null, D(e.translations.current_value), 1),
|
|
3944
|
+
u("th", null, D(e.translations.imported_value), 1)
|
|
3945
|
+
])]), u("tbody", null, [(S(!0), l(i, null, T(M.value, (e, t) => (S(), l(i, { key: t }, [e.has_conflict ? (S(), l("tr", Ms, [
|
|
3946
|
+
u("td", Ns, D(e.group), 1),
|
|
3947
|
+
u("td", Ps, D(e.default), 1),
|
|
3948
|
+
u("td", Fs, [I(u("input", {
|
|
3949
|
+
id: "current-" + t + "0",
|
|
3950
|
+
"onUpdate:modelValue": (e) => M.value[t].checkedCurrent = e,
|
|
3522
3951
|
type: "radio",
|
|
3523
3952
|
class: "form-check-input me-1",
|
|
3524
3953
|
value: !0,
|
|
3525
|
-
name: "current-" +
|
|
3526
|
-
}, null, 8,
|
|
3954
|
+
name: "current-" + t
|
|
3955
|
+
}, null, 8, Is), [[j, M.value[t].checkedCurrent]]), u("label", {
|
|
3527
3956
|
class: "form-check-label",
|
|
3528
|
-
for: "current-" +
|
|
3529
|
-
},
|
|
3530
|
-
|
|
3531
|
-
id: "current-" +
|
|
3532
|
-
"onUpdate:modelValue": (e) =>
|
|
3957
|
+
for: "current-" + t + "0"
|
|
3958
|
+
}, D(e.current_value), 9, Ls)]),
|
|
3959
|
+
u("td", Rs, [I(u("input", {
|
|
3960
|
+
id: "current-" + t + "1",
|
|
3961
|
+
"onUpdate:modelValue": (e) => M.value[t].checkedCurrent = e,
|
|
3533
3962
|
type: "radio",
|
|
3534
3963
|
class: "form-check-input me-1",
|
|
3535
3964
|
value: !1,
|
|
3536
|
-
name: "current-" +
|
|
3537
|
-
}, null, 8,
|
|
3965
|
+
name: "current-" + t
|
|
3966
|
+
}, null, 8, zs), [[j, M.value[t].checkedCurrent]]), u("label", {
|
|
3538
3967
|
class: "form-check-label",
|
|
3539
|
-
for: "current-" +
|
|
3540
|
-
},
|
|
3541
|
-
])) :
|
|
3542
|
-
|
|
3968
|
+
for: "current-" + t + "1"
|
|
3969
|
+
}, D(e[g.value.toLowerCase()]), 9, Bs)])
|
|
3970
|
+
])) : c("", !0)], 64))), 128))])])], 512), [[N, b.value === 2]]),
|
|
3971
|
+
I(u("div", null, [u("div", Vs, [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
3972
|
]),
|
|
3544
|
-
|
|
3973
|
+
u("div", Hs, [F.value ? c("", !0) : (S(), l("button", {
|
|
3545
3974
|
key: 0,
|
|
3546
3975
|
type: "button",
|
|
3547
3976
|
class: "btn btn-primary",
|
|
3548
|
-
onClick:
|
|
3549
|
-
},
|
|
3550
|
-
])])], 6), e.show ? (
|
|
3977
|
+
onClick: R(V, ["prevent"])
|
|
3978
|
+
}, D(e.translations.next), 1))])
|
|
3979
|
+
])])], 6), e.show ? (S(), l("div", {
|
|
3551
3980
|
key: 0,
|
|
3552
3981
|
class: "modal-backdrop fade show",
|
|
3553
3982
|
onClick: B
|
|
3554
|
-
})) :
|
|
3983
|
+
})) : c("", !0)], 64));
|
|
3555
3984
|
}
|
|
3556
|
-
},
|
|
3985
|
+
}, Ws = { class: "modal-dialog" }, Gs = { class: "modal-content" }, Ks = { class: "modal-header" }, qs = { class: "modal-title" }, Js = { class: "modal-body" }, Ys = { class: "text-start" }, Xs = { class: "text-end" }, Zs = {
|
|
3557
3986
|
class: "btn btn-primary",
|
|
3558
3987
|
type: "submit"
|
|
3559
|
-
},
|
|
3988
|
+
}, Qs = {
|
|
3560
3989
|
__name: "TranslationExportModal",
|
|
3561
3990
|
props: {
|
|
3562
3991
|
show: {
|
|
@@ -3577,37 +4006,37 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
3577
4006
|
}
|
|
3578
4007
|
},
|
|
3579
4008
|
emits: ["close"],
|
|
3580
|
-
setup(e, { emit:
|
|
3581
|
-
let
|
|
4009
|
+
setup(e, { emit: t }) {
|
|
4010
|
+
let n = e, r = t, a = o(() => Array.isArray(n.locales) ? n.locales : Object.values(n.locales)), s = o(() => a.value.map((e) => ({
|
|
3582
4011
|
id: e,
|
|
3583
4012
|
name: e.toUpperCase()
|
|
3584
|
-
}))), p =
|
|
3585
|
-
|
|
4013
|
+
}))), p = w([]);
|
|
4014
|
+
P(s, (e) => {
|
|
3586
4015
|
p.value = [...e];
|
|
3587
4016
|
}, { immediate: !0 });
|
|
3588
|
-
function
|
|
4017
|
+
function m() {
|
|
3589
4018
|
if (p.value.length === 0) {
|
|
3590
|
-
|
|
4019
|
+
G("Please select at least one language to export.");
|
|
3591
4020
|
return;
|
|
3592
4021
|
}
|
|
3593
4022
|
let e = new URLSearchParams();
|
|
3594
|
-
p.value.forEach((t) => e.append("exportLanguages[]", t.id)), window.location =
|
|
4023
|
+
p.value.forEach((t) => e.append("exportLanguages[]", t.id)), window.location = n.url + "/export?" + e.toString(), r("close");
|
|
3595
4024
|
}
|
|
3596
|
-
return (
|
|
3597
|
-
class:
|
|
3598
|
-
style:
|
|
3599
|
-
}, [
|
|
4025
|
+
return (t, n) => (S(), l(i, null, [u("div", {
|
|
4026
|
+
class: _(["modal fade", { show: e.show }]),
|
|
4027
|
+
style: y({ display: e.show ? "block" : "none" })
|
|
4028
|
+
}, [u("div", Ws, [u("div", Gs, [u("div", Ks, [u("h4", qs, D(e.translations.export), 1), u("button", {
|
|
3600
4029
|
type: "button",
|
|
3601
4030
|
class: "btn-close",
|
|
3602
|
-
onClick:
|
|
3603
|
-
})]),
|
|
3604
|
-
|
|
3605
|
-
|
|
4031
|
+
onClick: n[0] ||= (e) => t.$emit("close")
|
|
4032
|
+
})]), u("div", Js, [u("form", { onSubmit: R(m, ["prevent"]) }, [
|
|
4033
|
+
u("p", Ys, D(e.translations.export_notice), 1),
|
|
4034
|
+
f(ii, {
|
|
3606
4035
|
modelValue: p.value,
|
|
3607
|
-
"onUpdate:modelValue":
|
|
4036
|
+
"onUpdate:modelValue": n[1] ||= (e) => p.value = e,
|
|
3608
4037
|
name: "languagesToExport",
|
|
3609
4038
|
label: e.translations.language_to_export,
|
|
3610
|
-
options:
|
|
4039
|
+
options: s.value,
|
|
3611
4040
|
"track-by": "id",
|
|
3612
4041
|
"option-label": "name",
|
|
3613
4042
|
placeholder: e.translations.select_language
|
|
@@ -3617,17 +4046,17 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
3617
4046
|
"options",
|
|
3618
4047
|
"placeholder"
|
|
3619
4048
|
]),
|
|
3620
|
-
|
|
3621
|
-
], 32)])])])], 6), e.show ? (
|
|
4049
|
+
u("div", Xs, [u("button", Zs, [n[3] ||= u("i", { class: "fa fa-file-excel" }, null, -1), d("\xA0" + D(e.translations.export_btn), 1)])])
|
|
4050
|
+
], 32)])])])], 6), e.show ? (S(), l("div", {
|
|
3622
4051
|
key: 0,
|
|
3623
4052
|
class: "modal-backdrop fade show",
|
|
3624
|
-
onClick:
|
|
3625
|
-
})) :
|
|
4053
|
+
onClick: n[2] ||= (e) => t.$emit("close")
|
|
4054
|
+
})) : c("", !0)], 64));
|
|
3626
4055
|
}
|
|
3627
|
-
},
|
|
4056
|
+
}, $s = { class: "row" }, ec = { class: "col" }, tc = { class: "card" }, nc = { class: "card-header" }, rc = { class: "row justify-content-md-between mb-3" }, ic = { class: "col col-lg-7 col-xl-5 mb-3" }, ac = { class: "col-sm-auto mb-3" }, oc = { class: "table-responsive" }, sc = { class: "table table-hover table-listing" }, cc = { key: 0 }, lc = ["title", "onClick"], uc = {
|
|
3628
4057
|
key: 0,
|
|
3629
4058
|
class: "no-items-found"
|
|
3630
|
-
},
|
|
4059
|
+
}, dc = {
|
|
3631
4060
|
__name: "TranslationListing",
|
|
3632
4061
|
props: {
|
|
3633
4062
|
url: {
|
|
@@ -3664,31 +4093,31 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
3664
4093
|
}
|
|
3665
4094
|
},
|
|
3666
4095
|
setup(e) {
|
|
3667
|
-
let
|
|
3668
|
-
|
|
3669
|
-
function
|
|
3670
|
-
|
|
4096
|
+
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);
|
|
4097
|
+
g.group = null;
|
|
4098
|
+
function I(e) {
|
|
4099
|
+
g.group = e ?? null, b(!0);
|
|
3671
4100
|
}
|
|
3672
|
-
function
|
|
3673
|
-
|
|
4101
|
+
function L(e) {
|
|
4102
|
+
P.value = e, j.value = !0;
|
|
3674
4103
|
}
|
|
3675
|
-
let z =
|
|
4104
|
+
let z = w(!1);
|
|
3676
4105
|
function B() {
|
|
3677
|
-
z.value = !0,
|
|
3678
|
-
z.value = !1,
|
|
4106
|
+
z.value = !0, t.post(n.url + "/rescan").then(() => {
|
|
4107
|
+
z.value = !1, b(!0);
|
|
3679
4108
|
}, () => {
|
|
3680
|
-
z.value = !1,
|
|
4109
|
+
z.value = !1, G();
|
|
3681
4110
|
});
|
|
3682
4111
|
}
|
|
3683
|
-
return (
|
|
3684
|
-
|
|
4112
|
+
return (t, n) => (S(), l("div", $s, [u("div", ec, [
|
|
4113
|
+
f(us, {
|
|
3685
4114
|
show: j.value,
|
|
3686
|
-
item:
|
|
4115
|
+
item: P.value,
|
|
3687
4116
|
locales: A.value,
|
|
3688
4117
|
url: e.url,
|
|
3689
4118
|
translations: e.translations,
|
|
3690
|
-
onClose:
|
|
3691
|
-
onSaved:
|
|
4119
|
+
onClose: n[0] ||= (e) => j.value = !1,
|
|
4120
|
+
onSaved: k(b)
|
|
3692
4121
|
}, null, 8, [
|
|
3693
4122
|
"show",
|
|
3694
4123
|
"item",
|
|
@@ -3697,14 +4126,14 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
3697
4126
|
"translations",
|
|
3698
4127
|
"onSaved"
|
|
3699
4128
|
]),
|
|
3700
|
-
|
|
3701
|
-
show:
|
|
4129
|
+
f(Us, {
|
|
4130
|
+
show: M.value,
|
|
3702
4131
|
locales: A.value,
|
|
3703
4132
|
url: e.url,
|
|
3704
4133
|
"step-count": e.stepCount,
|
|
3705
4134
|
translations: e.translations,
|
|
3706
|
-
onClose:
|
|
3707
|
-
onImported:
|
|
4135
|
+
onClose: n[1] ||= (e) => M.value = !1,
|
|
4136
|
+
onImported: k(b)
|
|
3708
4137
|
}, null, 8, [
|
|
3709
4138
|
"show",
|
|
3710
4139
|
"locales",
|
|
@@ -3713,62 +4142,62 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
3713
4142
|
"translations",
|
|
3714
4143
|
"onImported"
|
|
3715
4144
|
]),
|
|
3716
|
-
|
|
3717
|
-
show:
|
|
4145
|
+
f(Qs, {
|
|
4146
|
+
show: N.value,
|
|
3718
4147
|
locales: A.value,
|
|
3719
4148
|
url: e.url,
|
|
3720
4149
|
translations: e.translations,
|
|
3721
|
-
onClose:
|
|
4150
|
+
onClose: n[2] ||= (e) => N.value = !1
|
|
3722
4151
|
}, null, 8, [
|
|
3723
4152
|
"show",
|
|
3724
4153
|
"locales",
|
|
3725
4154
|
"url",
|
|
3726
4155
|
"translations"
|
|
3727
4156
|
]),
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
4157
|
+
u("div", tc, [u("div", nc, [
|
|
4158
|
+
n[9] ||= u("i", { class: "fa fa-align-justify" }, null, -1),
|
|
4159
|
+
d(" " + D(e.translations.listing_title) + " ", 1),
|
|
4160
|
+
u("a", {
|
|
3732
4161
|
class: "btn btn-primary btn-sm float-end ms-2",
|
|
3733
4162
|
href: "#",
|
|
3734
4163
|
role: "button",
|
|
3735
|
-
onClick:
|
|
3736
|
-
}, [
|
|
3737
|
-
|
|
4164
|
+
onClick: n[3] ||= R((e) => M.value = !0, ["prevent"])
|
|
4165
|
+
}, [n[7] ||= u("i", { class: "fa fa-upload" }, null, -1), d("\xA0 " + D(e.translations.import_btn), 1)]),
|
|
4166
|
+
u("a", {
|
|
3738
4167
|
class: "btn btn-primary btn-sm float-end ms-2",
|
|
3739
4168
|
href: "#",
|
|
3740
4169
|
role: "button",
|
|
3741
|
-
onClick:
|
|
3742
|
-
}, [
|
|
3743
|
-
|
|
4170
|
+
onClick: n[4] ||= R((e) => N.value = !0, ["prevent"])
|
|
4171
|
+
}, [n[8] ||= u("i", { class: "fa fa-file-excel" }, null, -1), d("\xA0 " + D(e.translations.export_btn), 1)]),
|
|
4172
|
+
u("a", {
|
|
3744
4173
|
class: "btn btn-primary btn-sm float-end",
|
|
3745
4174
|
href: "#",
|
|
3746
4175
|
role: "button",
|
|
3747
|
-
onClick:
|
|
3748
|
-
}, [
|
|
3749
|
-
]),
|
|
4176
|
+
onClick: R(B, ["prevent"])
|
|
4177
|
+
}, [u("i", { class: _(["fa", z.value ? "fa-spinner fa-spin" : "fa-eye"]) }, null, 2), d("\xA0 " + D(e.translations.rescan_btn), 1)])
|
|
4178
|
+
]), u("div", {
|
|
3750
4179
|
ref_key: "cardBody",
|
|
3751
|
-
ref:
|
|
4180
|
+
ref: r,
|
|
3752
4181
|
class: "card-body"
|
|
3753
4182
|
}, [
|
|
3754
|
-
|
|
3755
|
-
search:
|
|
3756
|
-
"onUpdate:search":
|
|
3757
|
-
"filter-fn":
|
|
4183
|
+
u("div", rc, [u("div", ic, [f(kn, {
|
|
4184
|
+
search: k(v),
|
|
4185
|
+
"onUpdate:search": n[5] ||= (e) => h(v) ? v.value = e : null,
|
|
4186
|
+
"filter-fn": k(x),
|
|
3758
4187
|
translations: {
|
|
3759
4188
|
search_placeholder: e.translations.search_placeholder,
|
|
3760
4189
|
search_btn: e.translations.search_btn
|
|
3761
4190
|
}
|
|
3762
4191
|
}, {
|
|
3763
|
-
prepend:
|
|
3764
|
-
"model-value":
|
|
4192
|
+
prepend: F(() => [f(k(U), {
|
|
4193
|
+
"model-value": k(g).group,
|
|
3765
4194
|
options: e.groups,
|
|
3766
4195
|
placeholder: e.translations.all_groups,
|
|
3767
4196
|
"allow-empty": !0,
|
|
3768
4197
|
"show-labels": !1,
|
|
3769
4198
|
"open-direction": "bottom",
|
|
3770
4199
|
class: "multiselect--input-group-prepend",
|
|
3771
|
-
"onUpdate:modelValue":
|
|
4200
|
+
"onUpdate:modelValue": I
|
|
3772
4201
|
}, null, 8, [
|
|
3773
4202
|
"model-value",
|
|
3774
4203
|
"options",
|
|
@@ -3779,68 +4208,68 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
3779
4208
|
"search",
|
|
3780
4209
|
"filter-fn",
|
|
3781
4210
|
"translations"
|
|
3782
|
-
])]),
|
|
3783
|
-
modelValue:
|
|
3784
|
-
"onUpdate:modelValue":
|
|
4211
|
+
])]), u("div", ac, [f(jn, {
|
|
4212
|
+
modelValue: k(p).state.per_page,
|
|
4213
|
+
"onUpdate:modelValue": n[6] ||= (e) => k(p).state.per_page = e
|
|
3785
4214
|
}, null, 8, ["modelValue"])])]),
|
|
3786
|
-
|
|
3787
|
-
|
|
4215
|
+
u("div", oc, [u("table", sc, [u("thead", null, [u("tr", null, [
|
|
4216
|
+
f(Q, {
|
|
3788
4217
|
column: "group",
|
|
3789
|
-
"order-by":
|
|
3790
|
-
onSort:
|
|
4218
|
+
"order-by": k(m),
|
|
4219
|
+
onSort: k(C)
|
|
3791
4220
|
}, {
|
|
3792
|
-
default:
|
|
4221
|
+
default: F(() => [d(D(e.translations.group), 1)]),
|
|
3793
4222
|
_: 1
|
|
3794
4223
|
}, 8, ["order-by", "onSort"]),
|
|
3795
|
-
|
|
4224
|
+
f(Q, {
|
|
3796
4225
|
column: "key",
|
|
3797
|
-
"order-by":
|
|
3798
|
-
onSort:
|
|
4226
|
+
"order-by": k(m),
|
|
4227
|
+
onSort: k(C)
|
|
3799
4228
|
}, {
|
|
3800
|
-
default:
|
|
4229
|
+
default: F(() => [d(D(e.translations.default), 1)]),
|
|
3801
4230
|
_: 1
|
|
3802
4231
|
}, 8, ["order-by", "onSort"]),
|
|
3803
|
-
|
|
4232
|
+
f(Q, {
|
|
3804
4233
|
column: "text",
|
|
3805
|
-
"order-by":
|
|
3806
|
-
onSort:
|
|
4234
|
+
"order-by": k(m),
|
|
4235
|
+
onSort: k(C)
|
|
3807
4236
|
}, {
|
|
3808
|
-
default:
|
|
4237
|
+
default: F(() => [d(D(e.userLocale.toUpperCase()), 1)]),
|
|
3809
4238
|
_: 1
|
|
3810
4239
|
}, 8, ["order-by", "onSort"]),
|
|
3811
|
-
|
|
4240
|
+
k(a)(4) ? (S(), s(Q, {
|
|
3812
4241
|
key: 0,
|
|
3813
4242
|
column: "created_at",
|
|
3814
|
-
"order-by":
|
|
3815
|
-
onSort:
|
|
4243
|
+
"order-by": k(m),
|
|
4244
|
+
onSort: k(C)
|
|
3816
4245
|
}, {
|
|
3817
|
-
default:
|
|
4246
|
+
default: F(() => [d(D(e.translations.created_at_label), 1)]),
|
|
3818
4247
|
_: 1
|
|
3819
|
-
}, 8, ["order-by", "onSort"])) :
|
|
3820
|
-
|
|
3821
|
-
])]),
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
4248
|
+
}, 8, ["order-by", "onSort"])) : c("", !0),
|
|
4249
|
+
n[10] ||= u("th", null, null, -1)
|
|
4250
|
+
])]), u("tbody", null, [(S(!0), l(i, null, T(k(y), (t) => (S(), l("tr", { key: t.id }, [
|
|
4251
|
+
u("td", null, D(t.group), 1),
|
|
4252
|
+
u("td", null, D(t.key), 1),
|
|
4253
|
+
u("td", null, D(t.text?.[e.userLocale]), 1),
|
|
4254
|
+
k(a)(4) ? (S(), l("td", cc, D(k(K)(t.created_at)), 1)) : c("", !0),
|
|
4255
|
+
u("td", null, [u("a", {
|
|
3827
4256
|
class: "btn btn-sm btn-info",
|
|
3828
4257
|
href: "#",
|
|
3829
4258
|
title: e.translations.edit_btn,
|
|
3830
4259
|
role: "button",
|
|
3831
|
-
onClick:
|
|
3832
|
-
}, [...
|
|
4260
|
+
onClick: R((e) => L(t), ["prevent"])
|
|
4261
|
+
}, [...n[11] ||= [u("i", { class: "fa fa-edit" }, null, -1)]], 8, lc)])
|
|
3833
4262
|
]))), 128))])])]),
|
|
3834
|
-
|
|
3835
|
-
pagination:
|
|
3836
|
-
options:
|
|
4263
|
+
f(Tn, {
|
|
4264
|
+
pagination: k(p).state,
|
|
4265
|
+
options: k(p).options,
|
|
3837
4266
|
translations: {
|
|
3838
4267
|
previous: e.translations.pagination_previous,
|
|
3839
4268
|
next: e.translations.pagination_next,
|
|
3840
4269
|
overview: e.translations.pagination_overview
|
|
3841
4270
|
},
|
|
3842
|
-
onPageChange: E
|
|
3843
|
-
onPerPageChange:
|
|
4271
|
+
onPageChange: k(E),
|
|
4272
|
+
onPerPageChange: k(O)
|
|
3844
4273
|
}, null, 8, [
|
|
3845
4274
|
"pagination",
|
|
3846
4275
|
"options",
|
|
@@ -3848,21 +4277,21 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
3848
4277
|
"onPageChange",
|
|
3849
4278
|
"onPerPageChange"
|
|
3850
4279
|
]),
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
4280
|
+
k(y)?.length ? c("", !0) : (S(), l("div", uc, [
|
|
4281
|
+
n[12] ||= u("i", { class: "fa fa-magnifying-glass" }, null, -1),
|
|
4282
|
+
u("h3", null, D(e.translations.no_items), 1),
|
|
4283
|
+
u("p", null, D(e.translations.try_changing_items), 1),
|
|
4284
|
+
u("a", {
|
|
3856
4285
|
class: "btn btn-primary",
|
|
3857
4286
|
href: "#",
|
|
3858
4287
|
role: "button",
|
|
3859
|
-
onClick:
|
|
3860
|
-
}, [
|
|
4288
|
+
onClick: R(B, ["prevent"])
|
|
4289
|
+
}, [u("i", { class: _(["fa", z.value ? "fa-spinner fa-spin" : "fa-eye"]) }, null, 2), d("\xA0 " + D(e.translations.rescan_btn), 1)])
|
|
3861
4290
|
]))
|
|
3862
4291
|
], 512)])
|
|
3863
4292
|
])]));
|
|
3864
4293
|
}
|
|
3865
|
-
},
|
|
4294
|
+
}, fc = {
|
|
3866
4295
|
url: "",
|
|
3867
4296
|
collection: "",
|
|
3868
4297
|
maxNumberOfFiles: 1,
|
|
@@ -3870,16 +4299,16 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
|
|
|
3870
4299
|
acceptedFileTypes: void 0,
|
|
3871
4300
|
thumbnailWidth: 200,
|
|
3872
4301
|
uploadedMedia: []
|
|
3873
|
-
},
|
|
4302
|
+
}, pc = {
|
|
3874
4303
|
type: Object,
|
|
3875
|
-
default: () => ({ ...
|
|
4304
|
+
default: () => ({ ...fc })
|
|
3876
4305
|
};
|
|
3877
4306
|
//#endregion
|
|
3878
4307
|
//#region src/ui/index.js
|
|
3879
|
-
function
|
|
3880
|
-
document.readyState === "loading" ? document.addEventListener("DOMContentLoaded",
|
|
4308
|
+
function mc() {
|
|
4309
|
+
document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", hc) : hc();
|
|
3881
4310
|
}
|
|
3882
|
-
function
|
|
4311
|
+
function hc() {
|
|
3883
4312
|
let e = document.getElementById("sidebar"), t = null;
|
|
3884
4313
|
document.querySelectorAll(".btn-spinner").forEach((e) => {
|
|
3885
4314
|
e.addEventListener("click", (t) => {
|
|
@@ -3919,4 +4348,4 @@ function sc() {
|
|
|
3919
4348
|
}), e && window.innerWidth < 992 && e.classList.add("hide");
|
|
3920
4349
|
}
|
|
3921
4350
|
//#endregion
|
|
3922
|
-
export {
|
|
4351
|
+
export { Qo as ActivationError, Go 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, Ya as ForgotPasswordForm, Vr as FormCheckbox, Jr as FormDatePicker, Or as FormEmail, Dr as FormInput, hi as FormLocalizedInput, bi as FormLocalizedWysiwyg, Ai as FormLocalizedWysiwygSimple, ii as FormMultiSelect, Ki as FormPasswordConfirm, Fi as FormSelect, Ji as FormSubmit, li as FormTagInput, Pr as FormTextarea, $r as FormWysiwyg, Ti as FormWysiwygSimple, mr as ListingHeader, ra as LocalizationBar, Oa as LoginForm, Pt as MediaUpload, Tn as Pagination, jn as PerPage, dr as PublishedAtColumn, Eo as ResetPasswordForm, kn as Search, Q as Sortable, Ht as TiptapEditor, xr as ToggleSwitch, dc as TranslationListing, dn as UserDetailTooltip, H as dayjs, K as formatDate, q as formatDatetime, J as formatTime, Y as getDateFnsLocale, it as initDateFnsLocale, mc as initUI, fc as mediaCollectionDefaults, pc 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 };
|