@dejwcake/craftable 2.0.0 → 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.
Files changed (29) hide show
  1. package/README.md +26 -8
  2. package/dist/{buildMatchPatternFn-T5KjFTBQ.cjs → buildMatchPatternFn-BoUDNAZO.cjs} +1 -1
  3. package/dist/{cs-MAoetkhe.cjs → cs-DHH5l7p2.cjs} +1 -1
  4. package/dist/{cs-B5QMxFrl.js → cs-ny3teKR0.js} +1 -1
  5. package/dist/{de-BoVLAn6U.cjs → de-CaI6RCQF.cjs} +1 -1
  6. package/dist/{de-BlQ2ZKmc.js → de-DRctuPTq.js} +2 -2
  7. package/dist/{es-DBHDeXHI.cjs → es-Bh6-Auhy.cjs} +1 -1
  8. package/dist/{es-YEqfkBY2.js → es-BufozPLe.js} +1 -1
  9. package/dist/{fr-B7MHC2AN.js → fr-C4Eic4QK.js} +1 -1
  10. package/dist/{fr-DLs3QoNB.cjs → fr-HvCyL10T.cjs} +1 -1
  11. package/dist/{hu-reoJgNxD.js → hu-Da01tbQE.js} +1 -1
  12. package/dist/{hu-BKZPI9jH.cjs → hu-Df0BlRqD.cjs} +1 -1
  13. package/dist/index.cjs +1 -1
  14. package/dist/index.mjs +1592 -1107
  15. package/dist/isSameWeek-B3WWLbDx.cjs +1 -0
  16. package/dist/{isSameWeek-CC6GX_zp.js → isSameWeek-CIK6QT5b.js} +1 -1
  17. package/dist/{pl-B5A0Rjp7.js → pl-BvOLP6Vq.js} +2 -2
  18. package/dist/{pl-BMyrOO-Q.cjs → pl-H11OiJ78.cjs} +1 -1
  19. package/dist/{sk-Btro3W4S.js → sk-Cee4uHgG.js} +2 -2
  20. package/dist/{sk-B7JF2MoV.cjs → sk-Cpa7Wj75.cjs} +1 -1
  21. package/package.json +12 -7
  22. package/src/components/form/FormTagInput.vue +36 -0
  23. package/src/index.js +1 -0
  24. package/src/utils/dateFnsLocale.js +1 -1
  25. package/dist/en-US-BLvEnhs4.js +0 -443
  26. package/dist/en-US-Dz8vkDZ_.cjs +0 -1
  27. package/dist/en-US-X9gX759i.cjs +0 -1
  28. package/dist/isSameWeek-Mctj6Tdj.cjs +0 -1
  29. /package/dist/{buildMatchPatternFn-BV4I8r8j.js → buildMatchPatternFn-DQMsT4gp.js} +0 -0
package/dist/index.mjs CHANGED
@@ -1,145 +1,573 @@
1
- import { t as e } from "./en-US-BLvEnhs4.js";
2
- import { Fragment as t, Teleport as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, getCurrentInstance as u, guardReactiveProps as d, isRef as f, mergeProps as p, normalizeClass as m, normalizeProps as h, normalizeStyle as g, onBeforeUnmount as _, onMounted as v, openBlock as y, reactive as b, ref as x, renderList as S, renderSlot as C, toDisplayString as w, toRaw as T, unref as E, vModelCheckbox as D, vModelRadio as O, vModelText as k, vShow as A, watch as j, withCtx as M, withDirectives as N, withKeys as P, withModifiers as F } from "vue";
3
- import { useForm as I, validate as L } from "vee-validate";
4
- import { notify as R } from "@kyvg/vue3-notification";
5
- import z from "dayjs";
6
- import B from "dayjs/plugin/customParseFormat.js";
7
- import ee from "dayjs/plugin/utc.js";
8
- import te from "dayjs/plugin/timezone.js";
9
- import { useCookies as ne } from "vue3-cookies";
10
- import { useDropzone as re } from "vue3-dropzone";
11
- import { EditorContent as ie, useEditor as ae } from "@tiptap/vue-3";
12
- import oe from "@tiptap/starter-kit";
13
- import se from "@tiptap/extension-image";
14
- import { Table as ce, TableCell as le, TableHeader as ue, TableRow as de } from "@tiptap/extension-table";
15
- import { Alignment as fe, AutoLink as pe, BlockQuote as me, Bold as he, ClassicEditor as ge, Code as _e, CodeBlock as ve, Essentials as ye, FileRepository as be, GeneralHtmlSupport as xe, Heading as Se, HorizontalLine as Ce, Image as we, ImageCaption as Te, ImageInsert as Ee, ImageInsertViaUrl as De, ImageResize as Oe, ImageStyle as ke, ImageToolbar as Ae, ImageUpload as je, Indent as Me, Italic as Ne, Link as Pe, List as Fe, Paragraph as Ie, SourceEditing as Le, Strikethrough as Re, Table as ze, TableToolbar as Be, Underline as Ve, Undo as He } from "ckeditor5";
16
- import { Ckeditor as Ue } from "@ckeditor/ckeditor5-vue";
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 We from "vue3-popper";
19
- import { VueDatePicker as Ge } from "@vuepic/vue-datepicker";
20
- import V from "vue-multiselect";
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 Ke = "Success!", qe = "Operation succeeded.", Je = "Error!", Ye = "An error has occurred.";
23
- function H(e) {
24
- R({
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: Ke,
27
- text: e || qe
26
+ title: qe,
27
+ text: e || Je
28
28
  });
29
29
  }
30
- function U(e) {
31
- R({
30
+ function G(e) {
31
+ V({
32
32
  type: "error",
33
- title: Je,
34
- text: e || Ye
33
+ title: Ye,
34
+ text: e || Xe
35
35
  });
36
36
  }
37
- z.extend(B), z.extend(ee), z.extend(te);
38
- function W(e, t = "DD.MM.YYYY") {
39
- let n = z(e);
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 G(e, t = "DD.MM.YYYY HH:mm") {
43
- let n = z(e);
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 K(e, t = "HH:mm") {
47
- let n = z("2000-01-01 " + e);
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 q(e = "UTC", t = "YYYY-MM-DD HH:mm:ss") {
51
- return z().tz(e).format(t);
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 src/utils/dateFnsLocale.js
55
- var Xe = e;
56
- function J() {
57
- return Xe;
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 Ze() {
487
+ async function it() {
60
488
  let e = document.documentElement.lang || "en", t = {
61
- sk: () => import("./sk-Btro3W4S.js"),
62
- cs: () => import("./cs-B5QMxFrl.js"),
63
- en: () => import("./en-US-BLvEnhs4.js").then((e) => e.n),
64
- de: () => import("./de-BlQ2ZKmc.js"),
65
- fr: () => import("./fr-B7MHC2AN.js"),
66
- es: () => import("./es-YEqfkBY2.js"),
67
- pl: () => import("./pl-B5A0Rjp7.js"),
68
- hu: () => import("./hu-reoJgNxD.js")
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
- Xe = n.default || n[Object.keys(n)[0]];
498
+ rt = n.default || n[Object.keys(n)[0]];
71
499
  }
72
500
  //#endregion
73
501
  //#region src/composables/useBaseForm.js
74
- var Qe = window.axios;
75
- function $e(e, t = {}) {
76
- let n = u(), i = x(e.data && Object.keys(e.data).length > 0 ? { ...e.data } : {}), a = x([]), o = x([]), s = x(!1), c = x(""), l = x(!1), d = x(window.innerWidth < (e.responsiveBreakpoint || 850)), { setErrors: f, errors: p } = I(), m = x({
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: J()
82
- }), h = x({
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: J()
89
- }), g = x({
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: J()
95
- }), v = r(() => e.locales || []), y = r(() => e.defaultLocale || (v.value.length > 0 ? v.value[0] : "")), b = r(() => v.value.filter((e) => e !== y.value)), S = r(() => b.value.some((e) => Object.keys(p.value).some((t) => t.endsWith("_" + e) || t.startsWith(e + "_"))));
96
- v.value.length > 0 && (c.value = y.value);
97
- function C() {
98
- d.value = window.innerWidth < (e.responsiveBreakpoint || 850);
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", C), _(() => {
101
- window.removeEventListener("resize", C);
528
+ window.addEventListener("resize", S), b(() => {
529
+ window.removeEventListener("resize", S);
102
530
  });
103
- function w() {
531
+ function C() {
104
532
  let e = n?.proxy?.$refs || {};
105
- return o.value && o.value.forEach((t) => {
106
- i.value[t] && console.warn("MediaUploader warning: Media input must have a unique name, '" + t + "' is already defined in regular inputs.");
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" && (i.value[t] = e.getFiles());
538
+ e && typeof e.getFiles == "function" && (r.value[t] = e.getFiles());
111
539
  }
112
- }), i.value.wysiwygMedia = a.value, typeof t.transformData == "function" ? t.transformData({ ...i.value }) : i.value;
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, r] of Object.entries(t.validationSchema)) {
118
- let t = await L(i.value[n], r, {
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: i.value
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 (f(n), Object.keys(e).length > 0) return U("The form contains invalid fields."), !1;
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 = w();
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)) (!v.value.includes(t) || r && Object.keys(r).length > 0) && (e[t] = r);
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
- Qe.post(e.action, n).then((e) => {
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 && H(e.message), e.redirect && (e.message ? setTimeout(() => window.location.replace(e.redirect), 2e3) : window.location.replace(e.redirect));
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
- }), f(t), e.message === void 0 && U("The form contains invalid fields.");
578
+ }), d(t), e.message === void 0 && G("The form contains invalid fields.");
151
579
  }
152
- e.message !== void 0 && U(e.message);
580
+ e.message !== void 0 && G(e.message);
153
581
  }
154
582
  function O() {
155
583
  let e = {};
156
- return v.value.forEach((t) => {
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 = b.value[0];
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 d.value ? c.value === e : y.value === e ? !0 : s.value && c.value === e;
599
+ return u.value ? c.value === e : v.value === e || s.value && c.value === e;
172
600
  }
173
601
  return {
174
- form: i,
175
- wysiwygMedia: a,
176
- mediaCollections: o,
602
+ form: r,
603
+ wysiwygMedia: i,
604
+ mediaCollections: a,
177
605
  isFormLocalized: s,
178
606
  currentLocale: c,
179
607
  submitting: l,
180
- onSmallScreen: d,
181
- errors: p,
608
+ onSmallScreen: u,
609
+ errors: f,
182
610
  datePickerConfig: m,
183
611
  timePickerConfig: h,
184
612
  datetimePickerConfig: g,
185
- locales: v,
186
- defaultLocale: y,
187
- otherLocales: b,
188
- showLocalizedValidationError: S,
189
- getPostData: w,
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: f,
198
- formatDate: W,
199
- formatDatetime: G,
200
- formatTime: K
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 et = window.axios;
206
- function Y(e, t = {}) {
207
- let n = x(t.formDefaults ? { ...t.formDefaults } : {}), r = x(!1), i = x(""), { setErrors: a, errors: o } = I();
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 L(n.value[r], i, {
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 = "", et.post(e.action, n.value).then((e) => {
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 X = window.axios;
254
- function tt(e) {
255
- let { cookies: t } = ne(), n = b({
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
- }), i = b({
692
+ }), r = C({
265
693
  column: "id",
266
694
  direction: "asc"
267
- }), a = b({}), o = x(""), s = x(null), c = x(q(e.timezone || "UTC")), l = b({}), u = x(!1), d = b({
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 = q(e.timezone || "UTC");
705
+ c.value = Ze(e.timezone || "UTC");
278
706
  }, 1e3);
279
- _(() => {
707
+ b(() => {
280
708
  clearInterval(f);
281
709
  });
282
- let p = r(() => Object.values(l).filter((e) => e === !0).length), m = r({
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 v(e) {
729
+ function _(e) {
302
730
  let t = { params: { bulk: !0 } };
303
- u.value = !0, Object.assign(t.params, a), X.get(e, t).then((e) => {
304
- S(e.data.bulkItems);
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
- U(e.response?.data?.message);
734
+ G(e.response?.data?.message);
307
735
  }).finally(() => {
308
736
  u.value = !1;
309
737
  });
310
738
  }
311
- function y() {
739
+ function v() {
312
740
  if (!s.value) return;
313
741
  let e = Object.values(s.value).map(({ id: e }) => e);
314
- m.value ? C(e) : (u.value = !0, S(e), u.value = !1);
742
+ m.value ? x(e) : (u.value = !0, y(e), u.value = !1);
315
743
  }
316
- function S(e) {
744
+ function y(e) {
317
745
  e.forEach((e) => {
318
746
  l[e] = !0;
319
747
  });
320
748
  }
321
- function C(e = null) {
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 w(e, t = {}) {
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, X.post(e, { ids: n }).then((e) => {
338
- Object.keys(l).forEach((e) => delete l[e]), T(), H(e.data.message);
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
- U(e.response?.data?.message);
768
+ G(e.response?.data?.message);
341
769
  });
342
770
  }, d.show = !0;
343
771
  }
344
772
  function T(t) {
345
- let r = { params: {
773
+ let a = { params: {
346
774
  per_page: n.state.per_page,
347
775
  page: n.state.current_page,
348
- orderBy: i.column,
349
- orderDirection: i.direction
776
+ orderBy: r.column,
777
+ orderDirection: r.direction
350
778
  } };
351
- t === !0 && (r.params.page = 1), Object.assign(r.params, a), X.get(e.url, r).then((e) => {
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
- U(e.response?.data?.message);
782
+ G(e.response?.data?.message);
355
783
  });
356
784
  }
357
785
  function E(e, t) {
358
- t === "" ? delete a[e] : a[e] = t, T(!0);
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 X.get(e).then((e) => {
369
- e.data.message ? H(e.data.message) : e.data.redirect ? window.location.replace(e.data.redirect) : e.data.data?.path && window.location.replace(e.data.data.path);
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
- U(e.response?.data?.message);
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
- i.column = e, i.direction = t, T();
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: i,
394
- filters: a,
395
- search: o,
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: v,
405
- onBulkItemsClickedAllWithPagination: y,
406
- onBulkItemsClickedAllUncheck: C,
407
- bulkDelete: w,
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: W,
417
- formatDatetime: G,
418
- formatTime: K
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 nt = window.axios;
424
- function rt() {
425
- let e = x(!1);
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 v(() => {
430
- nt.interceptors.request.use((e) => (t(!0), e), (e) => (t(!1), Promise.reject(e))), nt.interceptors.response.use((e) => (t(!1), e), (e) => (t(!1), Promise.reject(e)));
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 it = [
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 at(e, t = {}) {
469
- let n = t.breakpoints || it, r = x(10), i = null;
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
- j(e, (e) => {
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 ot = { class: "base-upload" }, st = {
922
+ var pt = { class: "base-upload" }, mt = {
495
923
  key: 0,
496
924
  class: "form-label d-flex align-items-center"
497
- }, ct = { class: "fw-semibold upload-label-title" }, lt = {
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
- }, ut = ["value"], dt = {
928
+ }, _t = ["value"], vt = {
501
929
  key: 0,
502
930
  class: "dz-message"
503
- }, ft = { class: "dz-image" }, pt = ["src", "alt"], mt = {
931
+ }, yt = { class: "dz-image" }, bt = ["src", "alt"], xt = {
504
932
  key: 1,
505
933
  class: "dz-file-icon"
506
- }, ht = { class: "dz-file-size" }, gt = { class: "dz-file-name" }, _t = ["onClick"], vt = { class: "dz-image" }, yt = ["src", "alt"], bt = {
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
- }, xt = {
937
+ }, Ot = {
510
938
  key: 0,
511
939
  class: "dz-progress"
512
- }, St = {
940
+ }, kt = {
513
941
  key: 1,
514
942
  class: "dz-success-mark"
515
- }, Ct = {
943
+ }, At = {
516
944
  key: 2,
517
945
  class: "dz-error-mark"
518
- }, wt = { class: "dz-file-size" }, Tt = { class: "dz-file-name" }, Et = ["onClick"], Dt = {
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: n }) {
559
- let i = window.axios, c = e, l = r(() => c.acceptedFileTypes && c.acceptedFileTypes.includes("image") ? "fa fa-file-image" : "fa fa-file"), u = r(() => {
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 c.maxNumberOfFiles > 0 && e.push(`max. ${c.maxNumberOfFiles} file${c.maxNumberOfFiles > 1 ? "s" : ""}`), c.maxFileSizeInMb > 0 && e.push(`max. ${c.maxFileSizeInMb.toFixed(2)} MB`), e;
562
- }), f = x([]), _ = x([]);
563
- function C(e) {
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: c.collection,
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 T() {
1002
+ function h() {
575
1003
  let e = [];
576
- return c.uploadedMedia.forEach((t) => {
577
- e.push(C(t));
1004
+ return r.uploadedMedia.forEach((t) => {
1005
+ e.push(p(t));
578
1006
  }), e;
579
1007
  }
580
- let D = r(() => _.value.filter((e) => !e.deleted));
581
- v(() => {
582
- _.value = T();
1008
+ let b = o(() => f.value.filter((e) => !e.deleted));
1009
+ x(() => {
1010
+ f.value = h();
583
1011
  });
584
- function O(e) {
585
- let t = b({
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
- f.value.push(t);
595
- let n = new FormData();
596
- n.append("file", e);
597
- let r = document.head.querySelector("meta[name=\"csrf-token\"]");
598
- i.post(c.url, n, {
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
- ...r ? { "X-CSRF-TOKEN": r.getAttribute("content") } : {}
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
- U(e.response?.data?.message || e.message || "Upload failed"), t.uploading = !1, t.showError = !0, setTimeout(() => {
612
- let e = f.value.indexOf(t);
613
- e !== -1 && f.value.splice(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 k(e, t) {
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
- U(`${e.file.name}: ${t}`);
621
- }), c.maxNumberOfFiles > 0) {
622
- let t = D.value.length + f.value.length, n = c.maxNumberOfFiles - 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
- U(`Maximum ${c.maxNumberOfFiles} file${c.maxNumberOfFiles > 1 ? "s" : ""} allowed`);
1052
+ G(`Maximum ${r.maxNumberOfFiles} file${r.maxNumberOfFiles > 1 ? "s" : ""} allowed`);
625
1053
  return;
626
1054
  }
627
- e.length > n && (U(`Only ${n} more file${n > 1 ? "s" : ""} can be added`), e = e.slice(0, 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
- O(e);
1058
+ E(e);
631
1059
  });
632
1060
  }
633
- let { getRootProps: A, getInputProps: j, isDragActive: M } = re({
634
- onDrop: k,
635
- accept: c.acceptedFileTypes ? c.acceptedFileTypes.split(",").map((e) => e.trim()) : void 0,
636
- maxSize: c.maxFileSizeInMb > 0 ? c.maxFileSizeInMb * 1024 * 1024 : Infinity,
637
- multiple: c.maxNumberOfFiles !== 1
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.splice(e, 1);
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 < 1024 * 1024 ? (e / 1024).toFixed(1) + " KB" : (e / (1024 * 1024)).toFixed(1) + " MB" : "";
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 B() {
1085
+ function V() {
658
1086
  let e = [];
659
- return _.value.forEach((t) => {
1087
+ return f.value.forEach((t) => {
660
1088
  t.deleted && e.push({
661
1089
  id: t.id,
662
- collection_name: c.collection,
1090
+ collection_name: r.collection,
663
1091
  action: "delete"
664
1092
  });
665
- }), f.value.forEach((t) => {
1093
+ }), d.value.forEach((t) => {
666
1094
  t.response?.path && e.push({
667
1095
  id: t.file.id,
668
- collection_name: c.collection,
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 n({ getFiles: B }), (n, r) => (y(), o("div", ot, [e.label ? (y(), o("label", st, [
681
- s("i", { class: m([l.value, "me-1 text-body-secondary"]) }, null, 2),
682
- s("span", ct, w(e.label), 1),
683
- (y(!0), o(t, null, S(u.value, (e, t) => (y(), o("small", {
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
- }, "(" + w(e) + ")", 1))), 128)),
687
- e.isPrivate ? (y(), o("i", lt)) : a("", !0)
688
- ])) : a("", !0), s("div", p(E(A)(), { class: ["vue3-dropzone dropzone", { "dz-drag-hover": E(M) }] }), [
689
- s("input", h(d(E(j)())), null, 16),
690
- s("input", {
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, ut),
695
- D.value.length === 0 && f.value.length === 0 ? (y(), o("div", dt, [...r[2] ||= [s("i", { class: "fa-solid fa-cloud-arrow-up" }, null, -1), s("p", null, "Drop files here or click to upload", -1)]])) : a("", !0),
696
- (y(!0), o(t, null, S(_.value, (e, t) => (y(), o("div", {
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: m(["dz-preview dz-file-preview dz-existing", { "dz-deleted": e.deleted }])
699
- }, [s("div", ft, [L(e) ? (y(), o("img", {
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, pt)) : (y(), o("div", mt, [s("i", { class: m(R(e)) }, null, 2), s("p", null, w(e.name), 1)]))]), s("div", {
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: r[0] ||= F(() => {}, ["stop"])
1133
+ onClick: n[0] ||= R(() => {}, ["stop"])
706
1134
  }, [
707
- s("span", ht, w(I(e.size)), 1),
708
- s("span", gt, w(e.name), 1),
709
- s("button", {
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: F((e) => N(t), ["stop"])
713
- }, "REMOVE", 8, _t)
1140
+ onClick: R((e) => P(t), ["stop"])
1141
+ }, "REMOVE", 8, wt)
714
1142
  ])], 2))), 128)),
715
- (y(!0), o(t, null, S(f.value, (e, t) => (y(), o("div", {
1143
+ (S(!0), l(i, null, T(d.value, (e, t) => (S(), l("div", {
716
1144
  key: "new-" + t,
717
- class: m(["dz-preview dz-file-preview", {
1145
+ class: _(["dz-preview dz-file-preview", {
718
1146
  "dz-success": e.showSuccess,
719
1147
  "dz-error": e.showError
720
1148
  }])
721
1149
  }, [
722
- s("div", vt, [e.previewUrl ? (y(), o("img", {
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, yt)) : (y(), o("div", bt, [s("i", { class: m(z(e.file.type)) }, null, 2), s("p", null, w(e.file.name), 1)]))]),
727
- e.uploading ? (y(), o("div", xt, [s("span", {
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: g({ width: e.progress + "%" })
730
- }, null, 4)])) : a("", !0),
731
- e.showSuccess ? (y(), o("div", St, [...r[3] ||= [s("i", { class: "fa-solid fa-check" }, null, -1)]])) : a("", !0),
732
- e.showError ? (y(), o("div", Ct, [...r[4] ||= [s("i", { class: "fa-solid fa-xmark" }, null, -1)]])) : a("", !0),
733
- !e.uploading && !e.showSuccess ? (y(), o("div", {
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: r[1] ||= F(() => {}, ["stop"])
1164
+ onClick: n[1] ||= R(() => {}, ["stop"])
737
1165
  }, [
738
- s("span", wt, w(I(e.file.size)), 1),
739
- s("span", Tt, w(e.file.name), 1),
740
- s("button", {
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: F((e) => P(t), ["stop"])
744
- }, "REMOVE", 8, Et)
745
- ])) : a("", !0)
1171
+ onClick: R((e) => F(t), ["stop"])
1172
+ }, "REMOVE", 8, Nt)
1173
+ ])) : c("", !0)
746
1174
  ], 2))), 128))
747
1175
  ], 16)]));
748
1176
  }
749
- }, Ot = { class: "tiptap-editor" }, kt = {
1177
+ }, Ft = { class: "tiptap-editor" }, It = {
750
1178
  key: 0,
751
1179
  class: "tiptap-toolbar"
752
- }, At = ["selected"], jt = ["value", "selected"], Mt = {
1180
+ }, Lt = ["selected"], Rt = ["value", "selected"], zt = {
753
1181
  key: 0,
754
1182
  class: "tiptap-toolbar-divider"
755
- }, Nt = ["disabled"], Pt = ["disabled"], Z = {
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: n }) {
777
- let r = window.axios, i = e, c = n, u = [
778
- oe.configure({ link: { openOnClick: !1 } }),
779
- se.configure({ HTMLAttributes: { class: "tiptap-image" } }),
780
- ce.configure({ resizable: !0 }),
781
- de,
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
- ...i.config.extensions || []
785
- ], d = ae({
786
- content: i.modelValue,
787
- extensions: u,
1211
+ de,
1212
+ ...r.config.extensions || []
1213
+ ], s = oe({
1214
+ content: r.modelValue,
1215
+ extensions: o,
788
1216
  onUpdate: ({ editor: e }) => {
789
- c("update:modelValue", e.getHTML());
1217
+ a("update:modelValue", e.getHTML());
790
1218
  }
791
1219
  });
792
- j(() => i.modelValue, (e) => {
793
- d.value && d.value.getHTML() !== e && d.value.commands.setContent(e, { emitUpdate: !1 });
794
- }), _(() => {
795
- d.value && d.value.destroy();
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 f(e) {
1225
+ function d(e) {
798
1226
  let t = parseInt(e.target.value);
799
- t === 0 ? d.value.chain().focus().setParagraph().run() : d.value.chain().focus().toggleHeading({ level: t }).run();
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 = d.value.getAttributes("link").href, t = window.prompt("URL", e);
1230
+ let e = s.value.getAttributes("link").href, t = window.prompt("URL", e);
803
1231
  if (t !== null) {
804
1232
  if (t === "") {
805
- d.value.chain().focus().extendMarkRange("link").unsetLink().run();
1233
+ s.value.chain().focus().extendMarkRange("link").unsetLink().run();
806
1234
  return;
807
1235
  }
808
- d.value.chain().focus().extendMarkRange("link").setLink({ href: t }).run();
1236
+ s.value.chain().focus().extendMarkRange("link").setLink({ href: t }).run();
809
1237
  }
810
1238
  }
811
- let h = x(null);
812
- function g() {
1239
+ let m = w(null);
1240
+ function h() {
813
1241
  let e = window.prompt("Image URL");
814
- e && d.value.chain().focus().setImage({ src: e }).run();
1242
+ e && s.value.chain().focus().setImage({ src: e }).run();
815
1243
  }
816
- function v() {
817
- h.value.click();
1244
+ function g() {
1245
+ m.value.click();
818
1246
  }
819
- function b(e) {
1247
+ function v(e) {
820
1248
  let t = e.target.files[0];
821
1249
  if (!t) return;
822
- let n = new FormData();
823
- n.append("fileToUpload", t);
824
- let a = document.querySelector("meta[name=\"csrf-token\"]")?.getAttribute("content");
825
- r.post(i.uploadUrl, n, { headers: {
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
- ...a ? { "X-CSRF-TOKEN": a } : {}
1255
+ ...o ? { "X-CSRF-TOKEN": o } : {}
828
1256
  } }).then((e) => {
829
- d.value.chain().focus().setImage({ src: e.data.file }).run(), c("media-uploaded", e.data);
1257
+ s.value.chain().focus().setImage({ src: e.data.file }).run(), a("media-uploaded", e.data);
830
1258
  }, (e) => {
831
- U(e.response?.data?.error);
1259
+ G(e.response?.data?.error);
832
1260
  }).finally(() => {
833
- h.value.value = "";
1261
+ m.value.value = "";
834
1262
  });
835
1263
  }
836
- return (n, r) => (y(), o("div", Ot, [E(d) ? (y(), o("div", kt, [
837
- s("select", {
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: r[0] ||= (e) => f(e)
840
- }, [s("option", {
1267
+ onChange: n[0] ||= (e) => d(e)
1268
+ }, [u("option", {
841
1269
  value: "0",
842
- selected: !E(d).isActive("heading")
843
- }, "Paragraph", 8, At), (y(), o(t, null, S([
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) => s("option", {
1278
+ ], (e) => u("option", {
851
1279
  key: e,
852
1280
  value: e,
853
- selected: E(d).isActive("heading", { level: e })
854
- }, " H" + w(e), 9, jt)), 64))], 32),
855
- s("button", {
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: m({ "is-active": E(d).isActive("bold") }),
1285
+ class: _({ "is-active": k(s).isActive("bold") }),
858
1286
  title: "Bold",
859
- onClick: r[1] ||= (e) => E(d).chain().focus().toggleBold().run()
860
- }, [...r[9] ||= [s("strong", null, "B", -1)]], 2),
861
- s("button", {
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: m({ "is-active": E(d).isActive("italic") }),
1291
+ class: _({ "is-active": k(s).isActive("italic") }),
864
1292
  title: "Italic",
865
- onClick: r[2] ||= (e) => E(d).chain().focus().toggleItalic().run()
866
- }, [...r[10] ||= [s("em", null, "I", -1)]], 2),
867
- s("button", {
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: m({ "is-active": E(d).isActive("strike") }),
1297
+ class: _({ "is-active": k(s).isActive("strike") }),
870
1298
  title: "Strikethrough",
871
- onClick: r[3] ||= (e) => E(d).chain().focus().toggleStrike().run()
872
- }, [...r[11] ||= [s("s", null, "S", -1)]], 2),
873
- r[12] ||= s("span", { class: "tiptap-toolbar-divider" }, null, -1),
874
- s("button", {
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: m({ "is-active": E(d).isActive("bulletList") }),
1304
+ class: _({ "is-active": k(s).isActive("bulletList") }),
877
1305
  title: "Bullet List",
878
- onClick: r[4] ||= (e) => E(d).chain().focus().toggleBulletList().run()
1306
+ onClick: n[4] ||= (e) => k(s).chain().focus().toggleBulletList().run()
879
1307
  }, " • ", 2),
880
- s("button", {
1308
+ u("button", {
881
1309
  type: "button",
882
- class: m({ "is-active": E(d).isActive("orderedList") }),
1310
+ class: _({ "is-active": k(s).isActive("orderedList") }),
883
1311
  title: "Ordered List",
884
- onClick: r[5] ||= (e) => E(d).chain().focus().toggleOrderedList().run()
1312
+ onClick: n[5] ||= (e) => k(s).chain().focus().toggleOrderedList().run()
885
1313
  }, " 1. ", 2),
886
- r[13] ||= s("span", { class: "tiptap-toolbar-divider" }, null, -1),
887
- s("button", {
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
- s("button", {
1320
+ u("button", {
893
1321
  type: "button",
894
1322
  title: "Upload Image",
895
- onClick: v
1323
+ onClick: g
896
1324
  }, "📤"),
897
- s("button", {
1325
+ u("button", {
898
1326
  type: "button",
899
1327
  title: "Image URL",
900
- onClick: g
1328
+ onClick: h
901
1329
  }, "📷"),
902
- s("input", {
1330
+ u("input", {
903
1331
  ref_key: "fileInput",
904
- ref: h,
1332
+ ref: m,
905
1333
  type: "file",
906
1334
  accept: "image/*",
907
1335
  style: { display: "none" },
908
- onChange: b
1336
+ onChange: v
909
1337
  }, null, 544),
910
- e.showTableControls ? (y(), o("span", Mt)) : a("", !0),
911
- e.showTableControls ? (y(), o("button", {
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: r[6] ||= (e) => E(d).chain().focus().insertTable({
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
- }, " ▦ ")) : a("", !0),
921
- r[14] ||= s("span", { class: "tiptap-toolbar-divider" }, null, -1),
922
- s("button", {
1348
+ }, " ▦ ")) : c("", !0),
1349
+ n[14] ||= u("span", { class: "tiptap-toolbar-divider" }, null, -1),
1350
+ u("button", {
923
1351
  type: "button",
924
- disabled: !E(d).can().undo(),
1352
+ disabled: !k(s).can().undo(),
925
1353
  title: "Undo",
926
- onClick: r[7] ||= (e) => E(d).chain().focus().undo().run()
927
- }, " ↩ ", 8, Nt),
928
- s("button", {
1354
+ onClick: n[7] ||= (e) => k(s).chain().focus().undo().run()
1355
+ }, " ↩ ", 8, Bt),
1356
+ u("button", {
929
1357
  type: "button",
930
- disabled: !E(d).can().redo(),
1358
+ disabled: !k(s).can().redo(),
931
1359
  title: "Redo",
932
- onClick: r[8] ||= (e) => E(d).chain().focus().redo().run()
933
- }, " ↪ ", 8, Pt)
934
- ])) : a("", !0), l(E(ie), {
935
- editor: E(d),
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 Ft(e) {
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 It(e, t) {
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]) ? n[r] = It(e[r], t[r]) : n[r] = t[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 Lt = { class: "ck-editor-wrapper" }, Rt = {
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, i = e, a = t, s = r({
978
- get: () => i.modelValue ?? "",
979
- set: (e) => a("update:modelValue", Ft(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 c(e) {
982
- e.plugins.get("FileRepository").createUploadAdapter = (e) => new u(e, i.uploadUrl);
1409
+ function s(e) {
1410
+ e.plugins.get("FileRepository").createUploadAdapter = (e) => new c(e, r.uploadUrl);
983
1411
  }
984
- class u {
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 a("media-uploaded", e.data), { default: t };
1426
+ return i("media-uploaded", e.data), { default: t };
999
1427
  });
1000
1428
  });
1001
1429
  }
1002
1430
  abort() {}
1003
1431
  }
1004
- let d = {
1432
+ let u = {
1005
1433
  licenseKey: "GPL",
1006
1434
  plugins: [
1007
- ye,
1008
- he,
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
- we,
1019
- Ae,
1443
+ Ie,
1444
+ Fe,
1445
+ me,
1020
1446
  Te,
1021
- ke,
1022
- Oe,
1447
+ je,
1023
1448
  Ee,
1449
+ Ae,
1450
+ ke,
1024
1451
  De,
1025
- je,
1026
- ze,
1452
+ Oe,
1453
+ Me,
1027
1454
  Be,
1455
+ Ve,
1456
+ ye,
1028
1457
  ve,
1029
- _e,
1030
- Le,
1031
- me,
1032
- Ce,
1033
- Me,
1034
- xe,
1035
- He,
1036
- be
1458
+ Re,
1459
+ he,
1460
+ we,
1461
+ Ne,
1462
+ Se,
1463
+ Ue,
1464
+ xe
1037
1465
  ],
1038
- extraPlugins: [c],
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
- }, f = r(() => i.config ? It(d, T(i.config)) : d);
1121
- return (e, t) => (y(), o("div", Lt, [l(E(Ue), {
1122
- modelValue: s.value,
1123
- "onUpdate:modelValue": t[0] ||= (e) => s.value = e,
1124
- editor: E(ge),
1125
- config: f.value
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
- }, zt = { class: "user-detail-tooltip d-inline-flex align-items-center" }, Bt = {
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
- }, Vt = { class: "d-inline-flex align-items-center cursor-pointer" }, Ht = ["src", "alt"], Ut = {
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
- }, Wt = {
1566
+ }, Qt = {
1139
1567
  key: 2,
1140
1568
  class: "avatar-trigger-text"
1141
- }, Gt = { class: "avatar-full-name" }, Kt = {
1569
+ }, $t = { class: "avatar-full-name" }, en = {
1142
1570
  key: 0,
1143
1571
  class: "d-block user-info-span"
1144
- }, qt = { class: "user-detail-popper d-flex align-items-center" }, Jt = { class: "user-avatar flex-shrink-0" }, Yt = ["src", "alt"], Xt = {
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
- }, Zt = { class: "user-info ms-3" }, Qt = { key: 0 }, $t = { class: "text-uppercase" }, en = ["href"], tn = { key: 1 }, nn = {
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 = r(() => `${t.user.first_name.slice(0, 1)}${t.user.last_name.slice(0, 1)}`);
1177
- return (t, r) => (y(), o("div", zt, [e.label ? (y(), o("label", Bt, w(e.label) + " :", 1)) : a("", !0), l(E(We), {
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: M(() => [s("div", qt, [s("div", Jt, [e.user.avatar_thumb_url ? (y(), o("img", {
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, Yt)) : (y(), o("div", Xt, w(n.value), 1))]), s("div", Zt, [
1187
- s("h3", null, [c(w(e.user.full_name) + " ", 1), e.userText ? (y(), o("small", Qt, [r[0] ||= c(" | ", -1), s("strong", $t, w(e.userText), 1)])) : a("", !0)]),
1188
- e.user.email ? (y(), o("a", {
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
- }, w(e.user.email), 9, en)) : a("", !0),
1192
- e.datetimeText ? (y(), o("p", tn, w(e.datetimeText), 1)) : a("", !0)
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: M(() => [s("div", Vt, [e.user.avatar_thumb_url ? (y(), o("img", {
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, Ht)) : (y(), o("div", Ut, w(n.value), 1)), e.options.showFullNameLabel ? (y(), o("div", Wt, [s("span", Gt, w(e.user.full_name), 1), e.datetime ? (y(), o("span", Kt, w(e.datetime), 1)) : a("", !0)])) : a("", !0)])]),
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
- }, rn = {
1631
+ }, fn = {
1204
1632
  key: 0,
1205
1633
  class: "row"
1206
- }, an = { class: "col-sm" }, on = { class: "pagination-caption" }, sn = { class: "col-sm-auto" }, cn = {
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
- }, ln = { "aria-hidden": "true" }, un = ["aria-label"], dn = { "aria-hidden": "true" }, fn = ["onClick"], pn = {
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
- }, mn = { "aria-hidden": "true" }, hn = ["aria-label"], gn = { "aria-hidden": "true" }, _n = {
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: n }) {
1238
- let i = e, c = n, { cookies: l } = ne(), u = r(() => (i.translations.overview || "").replace(":from", i.pagination.from).replace(":to", i.pagination.to).replace(":total", i.pagination.total)), d = r(() => Object.assign({
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
- }, i.options)), f = r(() => {
1242
- if (i.pagination.last_page <= 0) return [];
1243
- let e = i.pagination.current_page - d.value.offset;
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 >= i.pagination.last_page && (t = i.pagination.last_page);
1247
- let n = [];
1248
- for (; e <= t;) n.push(e), e++;
1249
- return n;
1250
- }), p = r(() => i.size === "large" ? "pagination-lg" : i.size === "small" ? "pagination-sm" : "");
1251
- j(() => i.pagination.per_page, (e, t) => {
1252
- +e != +t && (l.set("per_page", e), c("per-page-change"));
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 h() {
1255
- return d.value.alwaysShowPrevNext || i.pagination.current_page > 1;
1682
+ function m() {
1683
+ return d.value.alwaysShowPrevNext || n.pagination.current_page > 1;
1256
1684
  }
1257
- function g() {
1258
- return d.value.alwaysShowPrevNext || i.pagination.current_page < i.pagination.last_page;
1685
+ function h() {
1686
+ return d.value.alwaysShowPrevNext || n.pagination.current_page < n.pagination.last_page;
1259
1687
  }
1260
- function _(e) {
1261
- i.pagination.current_page !== e && c("page-change", e);
1688
+ function g(e) {
1689
+ n.pagination.current_page !== e && r("page-change", e);
1262
1690
  }
1263
- return (n, r) => e.pagination.total > 0 ? (y(), o("div", rn, [s("div", an, [s("span", on, w(u.value), 1)]), s("div", sn, [s("nav", null, [e.pagination.last_page > 1 ? (y(), o("ul", {
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: m(["pagination", p.value])
1693
+ class: _(["pagination", p.value])
1266
1694
  }, [
1267
- h() ? (y(), o("li", {
1695
+ m() ? (S(), l("li", {
1268
1696
  key: 0,
1269
- class: m({
1697
+ class: _({
1270
1698
  disabled: e.pagination.current_page <= 1,
1271
1699
  "page-item": !0
1272
1700
  })
1273
- }, [e.pagination.current_page <= 1 ? (y(), o("span", cn, [s("span", ln, w(e.translations.previous), 1)])) : a("", !0), e.pagination.current_page > 1 ? (y(), o("a", {
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: r[0] ||= F((t) => _(e.pagination.current_page - 1), ["prevent"])
1279
- }, [s("span", dn, w(e.translations.previous), 1)], 8, un)) : a("", !0)], 2)) : a("", !0),
1280
- (y(!0), o(t, null, S(f.value, (t) => (y(), o("li", {
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: m({
1710
+ class: _({
1283
1711
  active: t === e.pagination.current_page,
1284
1712
  "page-item": !0
1285
1713
  })
1286
- }, [s("a", {
1714
+ }, [u("a", {
1287
1715
  href: "#",
1288
1716
  class: "page-link",
1289
- onClick: F((e) => _(t), ["prevent"])
1290
- }, w(t), 9, fn)], 2))), 128)),
1291
- g() ? (y(), o("li", {
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: m({
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 ? (y(), o("span", pn, [s("span", mn, w(e.translations.next), 1)])) : a("", !0), e.pagination.current_page < e.pagination.last_page ? (y(), o("a", {
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: r[1] ||= F((t) => _(e.pagination.current_page + 1), ["prevent"])
1303
- }, [s("span", gn, w(e.translations.next), 1)], 8, hn)) : a("", !0)], 2)) : a("", !0)
1304
- ], 2)) : a("", !0)])])])) : a("", !0);
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: n.orderBy.column === e && n.orderBy.direction === "asc" ? "desc" : "asc"
1753
+ direction: t
1325
1754
  });
1326
1755
  }
1327
- return (t, n) => (y(), o("th", null, [s("a", { onClick: n[0] ||= F((t) => i(e.column), ["stop"]) }, [s("span", { class: m(["fa", {
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), C(t.$slots, "default")])]));
1759
+ }]) }, null, 2), E(t.$slots, "default")])]));
1331
1760
  }
1332
- }, vn = { class: "input-group" }, yn = { class: "form-control d-flex align-items-center p-0" }, bn = ["placeholder", "value"], xn = {
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 = x(null), l = null;
1358
- function u() {
1359
- l &&= (clearTimeout(l), null);
1786
+ let n = e, r = t, i = w(null), a = null;
1787
+ function o() {
1788
+ a &&= (clearTimeout(a), null);
1360
1789
  }
1361
- function d(e) {
1790
+ function s(e) {
1362
1791
  let t = e.target.value;
1363
- r("update:search", t), u(), l = setTimeout(() => {
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
- u(), n.filterFn("search", n.search);
1797
+ o(), n.filterFn("search", n.search);
1369
1798
  }
1370
1799
  function p() {
1371
- u();
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
- u(), r("update:search", ""), n.filterFn("search", "");
1805
+ o(), r("update:search", ""), n.filterFn("search", "");
1377
1806
  }
1378
- return _(u), (t, n) => (y(), o("div", vn, [
1379
- C(t.$slots, "prepend"),
1380
- s("div", yn, [s("input", {
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: d,
1391
- onKeyup: P(p, ["enter"])
1392
- }, null, 40, bn), e.search ? (y(), o("button", {
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] ||= [s("i", { class: "fa fa-times" }, null, -1)]])) : a("", !0)]),
1398
- s("button", {
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] ||= s("i", { class: "fa fa-search" }, null, -1), c("\xA0 " + w(e.translations.search_btn), 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
- }, Sn = ["value"], Cn = {
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) => (y(), o("select", {
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
- s("option", { value: "10" }, "10", -1),
1419
- s("option", { value: "25" }, "25", -1),
1420
- s("option", { value: "100" }, "100", -1)
1421
- ]], 40, Sn));
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
- }, wn = {
1852
+ }, Mn = {
1424
1853
  key: 0,
1425
1854
  class: "no-items-found"
1426
- }, Tn = ["href"], En = {
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 ? (y(), o("div", wn, [
1448
- n[1] ||= s("i", { class: "fa fa-magnifying-glass" }, null, -1),
1449
- s("h3", null, w(e.translations.no_items), 1),
1450
- s("p", null, w(e.translations.try_changing_items), 1),
1451
- e.createUrl ? (y(), o("a", {
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] ||= s("i", { class: "fa fa-plus" }, null, -1), c("\xA0 " + w(e.translations.create_btn), 1)], 8, Tn)) : a("", !0)
1457
- ])) : a("", !0);
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
- }, Dn = ["checked"], On = {
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 (n, r) => (y(), o(t, null, [s("input", {
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: r[0] ||= (t) => e.onToggleAll()
1479
- }, null, 8, Dn), r[1] ||= s("label", {
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
- }, kn = [
1913
+ }, Ln = [
1485
1914
  "id",
1486
1915
  "checked",
1487
1916
  "name",
1488
1917
  "disabled"
1489
- ], An = ["for"], jn = {
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 (n, r) => (y(), o(t, null, [s("input", {
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: r[0] ||= (t) => e.onToggle(e.itemId)
1518
- }, null, 8, kn), s("label", {
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, An)], 64));
1950
+ }, null, 8, Rn)], 64));
1522
1951
  }
1523
- }, Mn = { class: "align-middle fw-light text-dark" }, Nn = {
1952
+ }, Bn = { class: "align-middle fw-light text-dark" }, Vn = {
1524
1953
  key: 0,
1525
1954
  class: "fa fa-spinner"
1526
- }, Pn = {
1955
+ }, Hn = {
1527
1956
  key: 1,
1528
1957
  class: "text-primary"
1529
- }, Fn = { class: "float-end pe-2" }, In = {
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 (n, r) => (y(), o(t, null, [s("span", Mn, [
1568
- c(w(e.translations.selected_items) + " " + w(e.selectedCount) + ". ", 1),
1569
- e.selectedCount < e.totalCount ? (y(), o("a", {
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: r[0] ||= (t) => e.onCheckAll()
1574
- }, [e.loading ? (y(), o("i", Nn)) : a("", !0), c(" " + w(e.translations.check_all_items) + " " + w(e.totalCount), 1)])) : a("", !0),
1575
- e.selectedCount < e.totalCount ? (y(), o("span", Pn, " | ")) : a("", !0),
1576
- s("a", {
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: r[1] ||= (t) => e.onUncheckAll()
1580
- }, w(e.translations.uncheck_all_items), 1)
1581
- ]), s("span", Fn, [C(n.$slots, "default", {}, () => [s("button", {
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: r[2] ||= (t) => e.onBulkDelete()
1584
- }, w(e.translations.delete_btn), 1)])])], 64));
2012
+ onClick: n[2] ||= (t) => e.onBulkDelete()
2013
+ }, D(e.translations.delete_btn), 1)])])], 64));
1585
2014
  }
1586
- }, Ln = {
2015
+ }, Gn = {
1587
2016
  class: "modal-dialog modal-dialog-centered",
1588
2017
  role: "document"
1589
- }, Rn = { class: "modal-content" }, zn = { class: "modal-header" }, Bn = { class: "modal-title" }, Vn = { class: "modal-body" }, Hn = { class: "modal-footer" }, Un = {
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, l = r(() => {
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
- }), u = r(() => 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");
1622
- return (t, r) => (y(), i(n, { to: "body" }, [e.show ? (y(), o("div", {
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: r[0] ||= (e) => t.$emit("cancel")
1626
- })) : a("", !0), e.show ? (y(), o("div", {
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: r[4] ||= F((e) => t.$emit("cancel"), ["self"])
1632
- }, [s("div", Ln, [s("div", Rn, [
1633
- s("div", zn, [s("h5", Bn, [s("i", { class: m([u.value, "me-2"]) }, null, 2), c(" " + w(e.translations.confirm_title), 1)]), s("button", {
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: r[1] ||= (e) => t.$emit("cancel")
2065
+ onClick: i[1] ||= (e) => t.$emit("cancel")
1637
2066
  })]),
1638
- s("div", Vn, [s("p", null, w(e.translations.confirm_text), 1)]),
1639
- s("div", Hn, [s("button", {
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: r[2] ||= (e) => t.$emit("cancel")
1643
- }, w(e.translations.cancel_btn), 1), s("button", {
2071
+ onClick: i[2] ||= (e) => t.$emit("cancel")
2072
+ }, D(e.translations.cancel_btn), 1), u("button", {
1644
2073
  type: "button",
1645
- class: m(l.value),
1646
- onClick: r[3] ||= (e) => t.$emit("confirm")
1647
- }, w(e.translations.confirm_btn), 3)])
1648
- ])])])) : a("", !0)]));
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
- }, Wn = { key: 0 }, Gn = { key: 1 }, Kn = ["title"], qn = { key: 2 }, Jn = ["title"], Yn = { key: 3 }, Xn = ["title", "disabled"], Zn = { key: 4 }, Qn = ["title", "disabled"], $n = {
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
- }, er = { class: "d-flex justify-content-between align-items-center mb-2" }, tr = { class: "mt-2 text-end" }, nr = ["disabled"], rr = {
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: n }) {
1686
- let r = window.axios, i = J(), u = e, d = n, f = x(!1), p = x(null), m = x(!1), h = x(!1), g = x(null), _ = x({}), v = x("danger");
1687
- function b() {
1688
- p.value = u.item.published_at || null, f.value = !0;
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 S() {
1691
- p.value && (m.value = !0, r.post(u.url, { published_at: p.value }).then((e) => {
1692
- d("update:item", {
1693
- ...u.item,
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
- }), f.value = !1, H(e.data.message);
2124
+ }), s.value = !1, W(e.data.message);
1696
2125
  }, (e) => {
1697
- U(e.response?.data?.message);
2126
+ G(e.response?.data?.message);
1698
2127
  }).finally(() => {
1699
2128
  m.value = !1;
1700
2129
  }));
1701
2130
  }
1702
- function C() {
2131
+ function x() {
1703
2132
  g.value = "publish", v.value = "success", _.value = {
1704
- confirm_title: u.translations.publish_now,
1705
- confirm_text: u.translations.confirm_publish_now,
1706
- confirm_btn: u.translations.publish_now,
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 T() {
2139
+ function C() {
1711
2140
  g.value = "unpublish", v.value = "danger", _.value = {
1712
- confirm_title: u.translations.unpublish_now,
1713
- confirm_text: u.translations.confirm_unpublish_now,
1714
- confirm_btn: u.translations.unpublish_now,
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 D() {
1719
- h.value = !1, g.value === "publish" ? k() : g.value === "unpublish" && A(), g.value = null;
2147
+ function T() {
2148
+ h.value = !1, g.value === "publish" ? O() : g.value === "unpublish" && A(), g.value = null;
1720
2149
  }
1721
- function O() {
2150
+ function E() {
1722
2151
  h.value = !1, g.value = null;
1723
2152
  }
1724
- function k() {
1725
- m.value = !0, r.post(u.url, { publish_now: !0 }).then((e) => {
1726
- d("update:item", {
1727
- ...u.item,
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
- }), H(e.data.message);
2158
+ }), W(e.data.message);
1730
2159
  }, (e) => {
1731
- U(e.response?.data?.message);
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, r.post(u.url, { unpublish_now: !0 }).then((e) => {
1738
- d("update:item", {
1739
- ...u.item,
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
- }), H(e.data.message);
2171
+ }), W(e.data.message);
1743
2172
  }, (e) => {
1744
- U(e.response?.data?.message);
2173
+ G(e.response?.data?.message);
1745
2174
  }).finally(() => {
1746
2175
  m.value = !1;
1747
2176
  });
1748
2177
  }
1749
- return (n, r) => (y(), o(t, null, [
1750
- e.item.published_at <= e.now ? (y(), o("span", Wn, w(E(G)(e.item.published_at, e.datetimeFormat)), 1)) : a("", !0),
1751
- e.item.published_at > e.now ? (y(), o("span", Gn, [
1752
- s("small", null, w(e.translations.will_be_published), 1),
1753
- r[9] ||= s("br", null, null, -1),
1754
- c(" " + w(E(G)(e.item.published_at, e.datetimeFormat)) + " ", 1),
1755
- s("span", {
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: r[0] ||= (e) => b()
1760
- }, [...r[8] ||= [s("i", { class: "fa fa-calendar" }, null, -1)]], 8, Kn)
1761
- ])) : a("", !0),
1762
- e.item.published_at ? a("", !0) : (y(), o("div", qn, [s("span", {
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: r[1] ||= (e) => b()
1767
- }, [r[10] ||= s("i", { class: "fa fa-calendar" }, null, -1), c("\xA0\xA0" + w(e.translations.publish_later), 1)], 8, Jn)])),
1768
- !e.item.published_at || e.item.published_at > e.now ? (y(), o("div", Yn, [s("form", {
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: r[2] ||= F((e) => C(), ["prevent"])
1771
- }, [s("button", {
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
- }, [r[11] ||= s("i", { class: "fa fa-paper-plane" }, null, -1), c("\xA0\xA0" + w(e.translations.publish_now), 1)], 8, Xn)], 32)])) : a("", !0),
1777
- e.item.published_at && e.item.published_at < e.now ? (y(), o("div", Zn, [s("form", {
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: r[3] ||= F((e) => T(), ["prevent"])
1780
- }, [s("button", {
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
- }, [r[12] ||= s("i", { class: "fa fa-paper-plane" }, null, -1), c("\xA0\xA0" + w(e.translations.unpublish_now), 1)], 8, Qn)], 32)])) : a("", !0),
1786
- f.value ? (y(), o("div", {
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: r[4] ||= F((e) => f.value = !1, ["self"])
1790
- })) : a("", !0),
1791
- f.value ? (y(), o("div", $n, [
1792
- s("div", er, [s("strong", null, w(e.translations.publish_later), 1), s("button", {
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: r[5] ||= (e) => f.value = !1
2225
+ onClick: n[5] ||= (e) => s.value = !1
1797
2226
  })]),
1798
- l(E(Ge), {
2227
+ f(k(Ke), {
1799
2228
  modelValue: p.value,
1800
- "onUpdate:modelValue": r[6] ||= (e) => p.value = e,
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": E(i),
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
- s("div", tr, [s("button", {
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: r[7] ||= (e) => S()
1813
- }, " Save ", 8, nr)])
1814
- ])) : a("", !0),
1815
- l(Un, {
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: D,
1820
- onCancel: O
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
- }, ir = ["href"], ar = ["href"], or = {
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 (n, r) => (y(), o(t, null, [
1850
- r[2] ||= s("i", { class: "fa fa-align-justify" }, null, -1),
1851
- c(" " + w(e.translations.listing_title) + " ", 1),
1852
- e.exportUrl ? (y(), o("a", {
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
- }, [r[0] ||= s("i", { class: "fa fa-file-excel" }, null, -1), c("\xA0 " + w(e.translations.export_btn), 1)], 8, ir)) : a("", !0),
1858
- e.createUrl ? (y(), o("a", {
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
- }, [r[1] ||= s("i", { class: "fa fa-plus" }, null, -1), c("\xA0 " + w(e.translations.create_btn), 1)], 8, ar)) : a("", !0)
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
- }, sr = ["href", "title"], cr = {
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) => (y(), o("a", {
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] ||= [s("i", { class: "fa fa-edit" }, null, -1)]], 8, sr));
2313
+ }, [...n[0] ||= [u("i", { class: "fa fa-edit" }, null, -1)]], 8, hr));
1885
2314
  }
1886
- }, lr = ["title"], ur = {
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: n }) {
1906
- let r = window.axios, i = e, a = n, c = x(!1);
1907
- function u() {
1908
- c.value = !1, r.delete(i.url).then((e) => {
1909
- H(e.data.message), a("deleted");
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
- U(e.response?.data?.message);
2340
+ G(e.response?.data?.message);
1912
2341
  });
1913
2342
  }
1914
- return (n, r) => (y(), o(t, null, [s("button", {
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: r[0] ||= (e) => c.value = !0
1919
- }, [...r[2] ||= [s("i", { class: "fa fa-trash" }, null, -1)]], 8, lr), l(Un, {
1920
- show: c.value,
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: u,
1923
- onCancel: r[1] ||= (e) => c.value = !1
2351
+ onConfirm: s,
2352
+ onCancel: n[1] ||= (e) => o.value = !1
1924
2353
  }, null, 8, ["show", "translations"])], 64));
1925
2354
  }
1926
- }, dr = { class: "form-check form-switch form-switch-inline" }, fr = ["checked"], pr = {
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, i = e, a = t, c = r(() => `form-switch-${i.variant}`);
1957
- function l() {
1958
- let e = !i.modelValue;
1959
- a("update:modelValue", e);
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
- ...i.row,
1962
- [i.column]: e
2390
+ ...r.row,
2391
+ [r.column]: e
1963
2392
  };
1964
- n.post(i.url, t).then((e) => {
1965
- H(e.data.message);
2393
+ n.post(r.url, t).then((e) => {
2394
+ W(e.data.message);
1966
2395
  }, (e) => {
1967
- a("update:modelValue", i.modelValue), U(e.response?.data?.message);
2396
+ i("update:modelValue", r.modelValue), G(e.response?.data?.message);
1968
2397
  });
1969
2398
  }
1970
- return (t, n) => (y(), o("div", dr, [s("input", {
1971
- class: m(["form-check-input", c.value]),
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: l
1976
- }, null, 42, fr)]));
2404
+ onChange: s
2405
+ }, null, 42, br)]));
1977
2406
  }
1978
- }, mr = { class: "mb-3 row align-items-center" }, hr = ["for"], gr = { class: "col-md-9 col-xl-8" }, _r = [
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
- ], vr = {
2413
+ ], Er = {
1985
2414
  key: 0,
1986
2415
  class: "invalid-feedback form-text"
1987
- }, yr = {
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) => (y(), o("div", mr, [s("label", {
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
- }, w(e.label), 9, hr), s("div", gr, [s("input", {
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: m(["form-control", { "is-invalid": e.error }]),
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, _r), e.error ? (y(), o("div", vr, w(e.error), 1)) : a("", !0)])]));
2457
+ }, null, 42, Tr), e.error ? (S(), l("div", Er, D(e.error), 1)) : c("", !0)])]));
2029
2458
  }
2030
- }, br = {
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) => (y(), i(yr, p(e.$props, {
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
- }, xr = { class: "mb-3 row align-items-center" }, Sr = ["for"], Cr = { class: "col-md-9 col-xl-8" }, wr = [
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
- ], Tr = {
2496
+ ], Nr = {
2068
2497
  key: 0,
2069
2498
  class: "invalid-feedback form-text"
2070
- }, Er = {
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) => (y(), o("div", xr, [s("label", {
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
- }, w(e.label), 9, Sr), s("div", Cr, [s("textarea", {
2532
+ }, D(e.label), 9, Ar), u("div", jr, [u("textarea", {
2104
2533
  id: e.name,
2105
2534
  value: e.modelValue,
2106
- class: m(["form-control", { "is-invalid": e.error }]),
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, wr), e.error ? (y(), o("div", Tr, w(e.error), 1)) : a("", !0)])]));
2540
+ }, null, 42, Mr), e.error ? (S(), l("div", Nr, D(e.error), 1)) : c("", !0)])]));
2112
2541
  }
2113
- }, Dr = { class: "mb-3 row align-items-center" }, Or = { class: "col-md-9 col-xl-8 offset-md-3" }, kr = { class: "form-check" }, Ar = [
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
- ], jr = ["for"], Mr = {
2546
+ ], zr = ["for"], Br = {
2118
2547
  key: 0,
2119
2548
  class: "invalid-feedback d-block form-text"
2120
- }, Nr = {
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) => (y(), o("div", Dr, [s("div", Or, [s("div", kr, [s("input", {
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, Ar), s("label", {
2578
+ }, null, 40, Rr), u("label", {
2150
2579
  class: "form-check-label",
2151
2580
  for: e.name
2152
- }, w(e.label), 9, jr)]), e.error ? (y(), o("div", Mr, w(e.error), 1)) : a("", !0)])]));
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
- }, Pr = { class: "mb-3 row align-items-center" }, Fr = ["for"], Ir = { class: "col-md-9 col-xl-8" }, Lr = { class: "input-group flex-nowrap" }, Rr = { class: "input-group-text" }, zr = {
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
- }, Br = /* @__PURE__ */ $({
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) => (y(), o("div", Pr, [s("label", {
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
- }, w(e.label), 9, Fr), s("div", Ir, [s("div", Lr, [s("span", Rr, [s("i", { class: m(["fa", e.icon]) }, null, 2)]), l(E(Ge), p(e.config, {
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 ? (y(), o("div", zr, w(e.error), 1)) : a("", !0)])]));
2658
+ ])]), e.error ? (S(), l("div", qr, D(e.error), 1)) : c("", !0)])]));
2230
2659
  }
2231
- }, [["__scopeId", "data-v-2e6d6ada"]]), Vr = { class: "mb-3 row align-items-center" }, Hr = ["for"], Ur = { class: "col-md-9 col-xl-8" }, Wr = {
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
- }, Gr = {
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) => (y(), o("div", Vr, [s("label", {
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
- }, w(e.label), 9, Hr), s("div", Ur, [l(Rt, p({
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 ? (y(), o("div", Wr, w(e.error), 1)) : a("", !0)])]));
2706
+ ]), e.error ? (S(), l("div", Qr, D(e.error), 1)) : c("", !0)])]));
2278
2707
  }
2279
- }, Kr = { class: "mb-3 row align-items-center" }, qr = ["for"], Jr = { class: "col-md-9 col-xl-8" }, Yr = {
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
- }, Xr = {
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) => (y(), o("div", Kr, [s("label", {
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
- }, w(e.label), 9, qr), s("div", Jr, [l(E(V), {
2752
+ }, D(e.label), 9, ti), u("div", ni, [f(k(U), {
2324
2753
  "model-value": e.modelValue,
2325
- class: m({ "is-invalid": e.error }),
2754
+ class: _({ "is-invalid": e.error }),
2326
2755
  placeholder: e.placeholder,
2327
2756
  options: e.options,
2328
2757
  multiple: !0,
@@ -2337,18 +2766,74 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
2337
2766
  "options",
2338
2767
  "label",
2339
2768
  "track-by"
2340
- ]), e.error ? (y(), o("div", Yr, w(e.error), 1)) : a("", !0)])]));
2769
+ ]), e.error ? (S(), l("div", ri, D(e.error), 1)) : c("", !0)])]));
2770
+ }
2771
+ }, ai = { class: "mb-3 row align-items-center" }, oi = ["for"], si = { class: "col-md-9 col-xl-8" }, ci = {
2772
+ key: 0,
2773
+ class: "invalid-feedback d-block form-text"
2774
+ }, li = {
2775
+ __name: "FormTagInput",
2776
+ props: {
2777
+ modelValue: {
2778
+ type: Array,
2779
+ default: () => []
2780
+ },
2781
+ name: {
2782
+ type: String,
2783
+ required: !0
2784
+ },
2785
+ label: {
2786
+ type: String,
2787
+ required: !0
2788
+ },
2789
+ error: {
2790
+ type: String,
2791
+ default: ""
2792
+ },
2793
+ placeholder: {
2794
+ type: String,
2795
+ default: ""
2796
+ },
2797
+ tagPlaceholder: {
2798
+ type: String,
2799
+ default: ""
2800
+ }
2801
+ },
2802
+ emits: ["update:modelValue"],
2803
+ setup(e) {
2804
+ return (t, n) => (S(), l("div", ai, [u("label", {
2805
+ for: e.name,
2806
+ class: "col-md-3 col-form-label text-md-end"
2807
+ }, D(e.label), 9, oi), u("div", si, [f(k(U), {
2808
+ "model-value": e.modelValue,
2809
+ class: _({ "is-invalid": e.error }),
2810
+ placeholder: e.placeholder,
2811
+ options: e.modelValue,
2812
+ multiple: !0,
2813
+ taggable: !0,
2814
+ "close-on-select": !1,
2815
+ "tag-placeholder": e.tagPlaceholder,
2816
+ "open-direction": "bottom",
2817
+ onTag: n[0] ||= (n) => t.$emit("update:modelValue", [...e.modelValue, n]),
2818
+ "onUpdate:modelValue": n[1] ||= (e) => t.$emit("update:modelValue", e)
2819
+ }, null, 8, [
2820
+ "model-value",
2821
+ "class",
2822
+ "placeholder",
2823
+ "options",
2824
+ "tag-placeholder"
2825
+ ]), e.error ? (S(), l("div", ci, D(e.error), 1)) : c("", !0)])]));
2341
2826
  }
2342
- }, Zr = { class: "mb-3 row align-items-center" }, Qr = ["for"], $r = { class: "col-md-9 col-xl-8" }, ei = [
2827
+ }, ui = { class: "mb-3 row align-items-center" }, di = ["for"], fi = { class: "col-md-9 col-xl-8" }, pi = [
2343
2828
  "id",
2344
2829
  "value",
2345
2830
  "name",
2346
2831
  "placeholder",
2347
2832
  "onInput"
2348
- ], ti = {
2833
+ ], mi = {
2349
2834
  key: 0,
2350
2835
  class: "invalid-feedback d-block form-text"
2351
- }, ni = {
2836
+ }, hi = {
2352
2837
  __name: "FormLocalizedInput",
2353
2838
  props: {
2354
2839
  modelValue: {
@@ -2381,34 +2866,34 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
2381
2866
  }
2382
2867
  },
2383
2868
  emits: ["update:modelValue"],
2384
- setup(e, { emit: n }) {
2385
- let r = e, i = n;
2386
- function c(e, t) {
2387
- i("update:modelValue", {
2388
- ...r.modelValue,
2869
+ setup(e, { emit: t }) {
2870
+ let n = e, r = t;
2871
+ function a(e, t) {
2872
+ r("update:modelValue", {
2873
+ ...n.modelValue,
2389
2874
  [e]: t
2390
2875
  });
2391
2876
  }
2392
- return (n, r) => (y(), o("div", Zr, [s("label", {
2877
+ return (t, n) => (S(), l("div", ui, [u("label", {
2393
2878
  for: e.name + "_" + e.locales[0],
2394
2879
  class: "col-md-3 col-form-label text-md-end"
2395
- }, w(e.label), 9, Qr), s("div", $r, [s("div", { class: m({ "d-flex gap-2": e.isFormLocalized }) }, [(y(!0), o(t, null, S(e.locales, (t) => N((y(), o("div", {
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", {
2396
2881
  key: t,
2397
- class: m({ "flex-fill": e.isFormLocalized })
2398
- }, [s("input", {
2882
+ class: _({ "flex-fill": e.isFormLocalized })
2883
+ }, [u("input", {
2399
2884
  id: e.name + "_" + t,
2400
2885
  type: "text",
2401
2886
  value: e.modelValue[t],
2402
- class: m(["form-control", { "is-invalid": e.errors[e.name + "_" + t] }]),
2887
+ class: _(["form-control", { "is-invalid": e.errors[e.name + "_" + t] }]),
2403
2888
  name: e.name + "_" + t,
2404
2889
  placeholder: e.isFormLocalized ? t.toUpperCase() : e.label,
2405
- onInput: (e) => c(t, e.target.value)
2406
- }, null, 42, ei), e.errors[e.name + "_" + t] ? (y(), o("div", ti, w(e.errors[e.name + "_" + t]), 1)) : a("", !0)], 2)), [[A, e.shouldShowLangGroup(t)]])), 128))], 2)])]));
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)])]));
2407
2892
  }
2408
- }, ri = { class: "mb-3 row align-items-center" }, ii = ["for"], ai = { class: "col-md-9 col-xl-8" }, oi = {
2893
+ }, gi = { class: "mb-3 row align-items-center" }, _i = ["for"], vi = { class: "col-md-9 col-xl-8" }, yi = {
2409
2894
  key: 0,
2410
2895
  class: "invalid-feedback d-block form-text"
2411
- }, si = /* @__PURE__ */ $({
2896
+ }, bi = /*#__PURE__*/ $({
2412
2897
  __name: "FormLocalizedWysiwyg",
2413
2898
  props: {
2414
2899
  modelValue: {
@@ -2449,37 +2934,37 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
2449
2934
  }
2450
2935
  },
2451
2936
  emits: ["update:modelValue"],
2452
- setup(e, { emit: n }) {
2453
- let r = e, i = n;
2454
- function c(e, t) {
2455
- i("update:modelValue", {
2456
- ...r.modelValue,
2937
+ setup(e, { emit: t }) {
2938
+ let n = e, r = t;
2939
+ function a(e, t) {
2940
+ r("update:modelValue", {
2941
+ ...n.modelValue,
2457
2942
  [e]: t
2458
2943
  });
2459
2944
  }
2460
- return (n, r) => (y(), o("div", ri, [s("label", {
2945
+ return (t, n) => (S(), l("div", gi, [u("label", {
2461
2946
  for: e.name + "_" + e.locales[0],
2462
2947
  class: "col-md-3 col-form-label text-md-end"
2463
- }, w(e.label), 9, ii), s("div", ai, [s("div", { class: m({ "d-flex gap-2": e.isFormLocalized }) }, [(y(!0), o(t, null, S(e.locales, (t) => N((y(), o("div", {
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", {
2464
2949
  key: t,
2465
- class: m({ "flex-fill localized-editor": e.isFormLocalized })
2466
- }, [l(Rt, p({
2950
+ class: _({ "flex-fill localized-editor": e.isFormLocalized })
2951
+ }, [f(Kt, g({
2467
2952
  id: e.name + "_" + t,
2468
2953
  "model-value": e.modelValue[t],
2469
2954
  name: e.name + "_" + t,
2470
2955
  "upload-url": e.uploadUrl
2471
- }, { ref_for: !0 }, e.config ? { config: e.config } : {}, { "onUpdate:modelValue": (e) => c(t, e) }), null, 16, [
2956
+ }, { ref_for: !0 }, e.config ? { config: e.config } : {}, { "onUpdate:modelValue": (e) => a(t, e) }), null, 16, [
2472
2957
  "id",
2473
2958
  "model-value",
2474
2959
  "name",
2475
2960
  "upload-url",
2476
2961
  "onUpdate:modelValue"
2477
- ]), e.errors[e.name + "_" + t] ? (y(), o("div", oi, w(e.errors[e.name + "_" + t]), 1)) : a("", !0)], 2)), [[A, e.shouldShowLangGroup(t)]])), 128))], 2)])]));
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)])]));
2478
2963
  }
2479
- }, [["__scopeId", "data-v-608701dd"]]), ci = { class: "mb-3 row align-items-center" }, li = ["for"], ui = { class: "col-md-9 col-xl-8" }, di = {
2964
+ }, [["__scopeId", "data-v-608701dd"]]), xi = { class: "mb-3 row align-items-center" }, Si = ["for"], Ci = { class: "col-md-9 col-xl-8" }, wi = {
2480
2965
  key: 0,
2481
2966
  class: "invalid-feedback d-block form-text"
2482
- }, fi = {
2967
+ }, Ti = {
2483
2968
  __name: "FormWysiwygSimple",
2484
2969
  props: {
2485
2970
  modelValue: {
@@ -2509,10 +2994,10 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
2509
2994
  },
2510
2995
  emits: ["update:modelValue"],
2511
2996
  setup(e) {
2512
- return (t, n) => (y(), o("div", ci, [s("label", {
2997
+ return (t, n) => (S(), l("div", xi, [u("label", {
2513
2998
  for: e.name,
2514
2999
  class: "col-md-3 col-form-label text-md-end"
2515
- }, w(e.label), 9, li), s("div", ui, [l(Z, p({
3000
+ }, D(e.label), 9, Si), u("div", Ci, [f(Ht, g({
2516
3001
  id: e.name,
2517
3002
  "model-value": e.modelValue,
2518
3003
  name: e.name,
@@ -2522,12 +3007,12 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
2522
3007
  "model-value",
2523
3008
  "name",
2524
3009
  "upload-url"
2525
- ]), e.error ? (y(), o("div", di, w(e.error), 1)) : a("", !0)])]));
3010
+ ]), e.error ? (S(), l("div", wi, D(e.error), 1)) : c("", !0)])]));
2526
3011
  }
2527
- }, pi = { class: "mb-3 row align-items-center" }, mi = ["for"], hi = { class: "col-md-9 col-xl-8" }, gi = {
3012
+ }, Ei = { class: "mb-3 row align-items-center" }, Di = ["for"], Oi = { class: "col-md-9 col-xl-8" }, ki = {
2528
3013
  key: 0,
2529
3014
  class: "invalid-feedback d-block form-text"
2530
- }, _i = /* @__PURE__ */ $({
3015
+ }, Ai = /*#__PURE__*/ $({
2531
3016
  __name: "FormLocalizedWysiwygSimple",
2532
3017
  props: {
2533
3018
  modelValue: {
@@ -2568,37 +3053,37 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
2568
3053
  }
2569
3054
  },
2570
3055
  emits: ["update:modelValue"],
2571
- setup(e, { emit: n }) {
2572
- let r = e, i = n;
2573
- function c(e, t) {
2574
- i("update:modelValue", {
2575
- ...r.modelValue,
3056
+ setup(e, { emit: t }) {
3057
+ let n = e, r = t;
3058
+ function a(e, t) {
3059
+ r("update:modelValue", {
3060
+ ...n.modelValue,
2576
3061
  [e]: t
2577
3062
  });
2578
3063
  }
2579
- return (n, r) => (y(), o("div", pi, [s("label", {
3064
+ return (t, n) => (S(), l("div", Ei, [u("label", {
2580
3065
  for: e.name + "_" + e.locales[0],
2581
3066
  class: "col-md-3 col-form-label text-md-end"
2582
- }, w(e.label), 9, mi), s("div", hi, [s("div", { class: m({ "d-flex gap-2": e.isFormLocalized }) }, [(y(!0), o(t, null, S(e.locales, (t) => N((y(), o("div", {
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", {
2583
3068
  key: t,
2584
- class: m({ "flex-fill localized-editor": e.isFormLocalized })
2585
- }, [l(Z, p({
3069
+ class: _({ "flex-fill localized-editor": e.isFormLocalized })
3070
+ }, [f(Ht, g({
2586
3071
  id: e.name + "_" + t,
2587
3072
  "model-value": e.modelValue[t],
2588
3073
  name: e.name + "_" + t,
2589
3074
  "upload-url": e.uploadUrl
2590
- }, { ref_for: !0 }, e.config ? { config: e.config } : {}, { "onUpdate:modelValue": (e) => c(t, e) }), null, 16, [
3075
+ }, { ref_for: !0 }, e.config ? { config: e.config } : {}, { "onUpdate:modelValue": (e) => a(t, e) }), null, 16, [
2591
3076
  "id",
2592
3077
  "model-value",
2593
3078
  "name",
2594
3079
  "upload-url",
2595
3080
  "onUpdate:modelValue"
2596
- ]), e.errors[e.name + "_" + t] ? (y(), o("div", gi, w(e.errors[e.name + "_" + t]), 1)) : a("", !0)], 2)), [[A, e.shouldShowLangGroup(t)]])), 128))], 2)])]));
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)])]));
2597
3082
  }
2598
- }, [["__scopeId", "data-v-bf19587d"]]), vi = { class: "mb-3 row align-items-center" }, yi = ["for"], bi = { class: "col-md-9 col-xl-8" }, xi = {
3083
+ }, [["__scopeId", "data-v-bf19587d"]]), ji = { class: "mb-3 row align-items-center" }, Mi = ["for"], Ni = { class: "col-md-9 col-xl-8" }, Pi = {
2599
3084
  key: 0,
2600
3085
  class: "invalid-feedback d-block form-text"
2601
- }, Si = {
3086
+ }, Fi = {
2602
3087
  __name: "FormSelect",
2603
3088
  props: {
2604
3089
  modelValue: {
@@ -2641,12 +3126,12 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
2641
3126
  },
2642
3127
  emits: ["update:modelValue"],
2643
3128
  setup(e) {
2644
- return (t, n) => (y(), o("div", vi, [s("label", {
3129
+ return (t, n) => (S(), l("div", ji, [u("label", {
2645
3130
  for: e.name,
2646
3131
  class: "col-md-3 col-form-label text-md-end"
2647
- }, w(e.label), 9, yi), s("div", bi, [l(E(V), {
3132
+ }, D(e.label), 9, Mi), u("div", Ni, [f(k(U), {
2648
3133
  "model-value": e.modelValue,
2649
- class: m({ "is-invalid": e.error }),
3134
+ class: _({ "is-invalid": e.error }),
2650
3135
  placeholder: e.placeholder,
2651
3136
  options: e.options,
2652
3137
  label: e.optionLabel || void 0,
@@ -2660,21 +3145,21 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
2660
3145
  "options",
2661
3146
  "label",
2662
3147
  "track-by"
2663
- ]), e.error ? (y(), o("div", xi, w(e.error), 1)) : a("", !0)])]));
3148
+ ]), e.error ? (S(), l("div", Pi, D(e.error), 1)) : c("", !0)])]));
2664
3149
  }
2665
- }, Ci = { class: "mb-3 row align-items-center" }, wi = {
3150
+ }, Ii = { class: "mb-3 row align-items-center" }, Li = {
2666
3151
  for: "password",
2667
3152
  class: "col-md-3 col-form-label text-md-end"
2668
- }, Ti = { class: "col-md-9 col-xl-8" }, Ei = ["value", "placeholder"], Di = {
3153
+ }, Ri = { class: "col-md-9 col-xl-8" }, zi = ["value", "placeholder"], Bi = {
2669
3154
  key: 0,
2670
3155
  class: "invalid-feedback form-text"
2671
- }, Oi = { class: "mb-3 row align-items-center" }, ki = {
3156
+ }, Vi = { class: "mb-3 row align-items-center" }, Hi = {
2672
3157
  for: "password_confirmation",
2673
3158
  class: "col-md-3 col-form-label text-md-end"
2674
- }, Ai = { class: "col-md-9 col-xl-8" }, ji = ["value", "placeholder"], Mi = {
3159
+ }, Ui = { class: "col-md-9 col-xl-8" }, Wi = ["value", "placeholder"], Gi = {
2675
3160
  key: 0,
2676
3161
  class: "invalid-feedback form-text"
2677
- }, Ni = {
3162
+ }, Ki = {
2678
3163
  __name: "FormPasswordConfirm",
2679
3164
  props: {
2680
3165
  password: {
@@ -2700,25 +3185,25 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
2700
3185
  },
2701
3186
  emits: ["update:password", "update:passwordConfirmation"],
2702
3187
  setup(e) {
2703
- return (n, r) => (y(), o(t, null, [s("div", Ci, [s("label", wi, w(e.translations.password), 1), s("div", Ti, [s("input", {
3188
+ return (t, n) => (S(), l(i, null, [u("div", Ii, [u("label", Li, D(e.translations.password), 1), u("div", Ri, [u("input", {
2704
3189
  id: "password",
2705
3190
  type: "password",
2706
3191
  value: e.password,
2707
- class: m(["form-control", { "is-invalid": e.passwordError }]),
3192
+ class: _(["form-control", { "is-invalid": e.passwordError }]),
2708
3193
  name: "password",
2709
3194
  placeholder: e.translations.password,
2710
- onInput: r[0] ||= (e) => n.$emit("update:password", e.target.value)
2711
- }, null, 42, Ei), e.passwordError ? (y(), o("div", Di, w(e.passwordError), 1)) : a("", !0)])]), s("div", Oi, [s("label", ki, w(e.translations.password_repeat), 1), s("div", Ai, [s("input", {
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", {
2712
3197
  id: "password_confirmation",
2713
3198
  type: "password",
2714
3199
  value: e.passwordConfirmation,
2715
- class: m(["form-control", { "is-invalid": e.confirmationError }]),
3200
+ class: _(["form-control", { "is-invalid": e.confirmationError }]),
2716
3201
  name: "password_confirmation",
2717
3202
  placeholder: e.translations.password,
2718
- onInput: r[1] ||= (e) => n.$emit("update:passwordConfirmation", e.target.value)
2719
- }, null, 42, ji), e.confirmationError ? (y(), o("div", Mi, w(e.confirmationError), 1)) : a("", !0)])])], 64));
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));
2720
3205
  }
2721
- }, Pi = ["disabled"], Fi = {
3206
+ }, qi = ["disabled"], Ji = {
2722
3207
  __name: "FormSubmit",
2723
3208
  props: {
2724
3209
  submitting: {
@@ -2731,28 +3216,28 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
2731
3216
  }
2732
3217
  },
2733
3218
  setup(e) {
2734
- return (t, n) => (y(), o("button", {
3219
+ return (t, n) => (S(), l("button", {
2735
3220
  type: "submit",
2736
3221
  class: "btn btn-primary submit-btn",
2737
3222
  disabled: e.submitting
2738
- }, [s("i", { class: m(["fa", e.submitting ? "fa-spinner" : "fa-download"]) }, null, 2), c(" " + w(e.label), 1)], 8, Pi));
3223
+ }, [u("i", { class: _(["fa", e.submitting ? "fa-spinner" : "fa-download"]) }, null, 2), d(" " + D(e.label), 1)], 8, qi));
2739
3224
  }
2740
- }, Ii = {
3225
+ }, Yi = {
2741
3226
  key: 0,
2742
3227
  class: "row mb-2 localization-bar"
2743
- }, Li = { key: 0 }, Ri = { key: 0 }, zi = {
3228
+ }, Xi = { key: 0 }, Zi = { key: 0 }, Qi = {
2744
3229
  key: 1,
2745
3230
  class: "localization-error"
2746
- }, Bi = {
3231
+ }, $i = {
2747
3232
  key: 2,
2748
3233
  class: "d-flex align-items-center gap-2"
2749
- }, Vi = { class: "text-nowrap" }, Hi = {
3234
+ }, ea = { class: "text-nowrap" }, ta = {
2750
3235
  key: 0,
2751
3236
  class: "localization-error"
2752
- }, Ui = {
3237
+ }, na = {
2753
3238
  key: 0,
2754
3239
  class: "localization-error"
2755
- }, Wi = /* @__PURE__ */ $({
3240
+ }, ra = /*#__PURE__*/ $({
2756
3241
  __name: "LocalizationBar",
2757
3242
  props: {
2758
3243
  translations: {
@@ -2794,79 +3279,79 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
2794
3279
  "update:currentLocale"
2795
3280
  ],
2796
3281
  setup(e) {
2797
- let t = e, n = r(() => t.translations.currently_editing_translation ? t.translations.currently_editing_translation.replace(":locale", t.defaultLocale.toUpperCase()) : ""), i = r(() => t.translations.more_can_be_managed ? t.translations.more_can_be_managed.replace(":count", String(t.otherLocales.length)) : ""), u = r(() => t.onSmallScreen ? [t.defaultLocale, ...t.otherLocales] : [...t.otherLocales]);
2798
- return (t, r) => e.locales.length > 0 ? (y(), o("div", Ii, [s("div", { class: m(["offset-md-3 col-md-9 col-xl-8 text-start", { "d-none": e.onSmallScreen }]) }, [
2799
- e.isFormLocalized ? a("", !0) : (y(), o("small", Li, [
2800
- c(w(n.value), 1),
2801
- e.otherLocales.length > 1 ? (y(), o("span", Ri, w(i.value), 1)) : a("", !0),
2802
- r[4] ||= c(" | ", -1),
2803
- s("a", {
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", {
2804
3289
  href: "#",
2805
- onClick: r[0] ||= F((e) => t.$emit("show-localization"), ["prevent"])
2806
- }, w(e.translations.manage_translations), 1)
3290
+ onClick: a[0] ||= R((e) => t.$emit("show-localization"), ["prevent"])
3291
+ }, D(e.translations.manage_translations), 1)
2807
3292
  ])),
2808
- !e.isFormLocalized && e.showLocalizedValidationError ? (y(), o("i", zi)) : a("", !0),
2809
- e.isFormLocalized ? (y(), o("div", Bi, [
2810
- s("small", Vi, w(e.translations.choose_translation_to_edit), 1),
2811
- l(E(V), {
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), {
2812
3297
  "model-value": e.currentLocale,
2813
- options: u.value,
3298
+ options: i.value,
2814
3299
  "custom-label": (e) => e.toUpperCase(),
2815
3300
  searchable: !1,
2816
3301
  "allow-empty": !1,
2817
3302
  class: "locale-selector",
2818
- "onUpdate:modelValue": r[1] ||= (e) => t.$emit("update:currentLocale", e)
3303
+ "onUpdate:modelValue": a[1] ||= (e) => t.$emit("update:currentLocale", e)
2819
3304
  }, null, 8, [
2820
3305
  "model-value",
2821
3306
  "options",
2822
3307
  "custom-label"
2823
3308
  ]),
2824
- e.showLocalizedValidationError ? (y(), o("i", Hi)) : a("", !0),
2825
- s("small", null, [s("a", {
3309
+ e.showLocalizedValidationError ? (S(), l("i", ta)) : c("", !0),
3310
+ u("small", null, [u("a", {
2826
3311
  href: "#",
2827
- onClick: r[2] ||= F((e) => t.$emit("hide-localization"), ["prevent"])
2828
- }, w(e.translations.hide), 1)])
2829
- ])) : a("", !0)
2830
- ], 2), e.onSmallScreen ? (y(), o("div", {
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", {
2831
3316
  key: 0,
2832
- class: m(["col", {
3317
+ class: _(["col", {
2833
3318
  "language-mobile": !0,
2834
3319
  "text-danger": !e.isFormLocalized && e.showLocalizedValidationError
2835
3320
  }])
2836
- }, [s("small", null, [
2837
- c(w(e.translations.choose_translation_to_edit) + " ", 1),
2838
- l(E(V), {
3321
+ }, [u("small", null, [
3322
+ d(D(e.translations.choose_translation_to_edit) + " ", 1),
3323
+ f(k(U), {
2839
3324
  "model-value": e.currentLocale,
2840
3325
  options: [e.defaultLocale, ...e.otherLocales],
2841
3326
  "custom-label": (e) => e.toUpperCase(),
2842
3327
  searchable: !1,
2843
3328
  "allow-empty": !1,
2844
3329
  class: "locale-selector",
2845
- "onUpdate:modelValue": r[3] ||= (e) => t.$emit("update:currentLocale", e)
3330
+ "onUpdate:modelValue": a[3] ||= (e) => t.$emit("update:currentLocale", e)
2846
3331
  }, null, 8, [
2847
3332
  "model-value",
2848
3333
  "options",
2849
3334
  "custom-label"
2850
3335
  ]),
2851
- e.showLocalizedValidationError ? (y(), o("i", Ui)) : a("", !0)
2852
- ])], 2)) : a("", !0)])) : a("", !0);
3336
+ e.showLocalizedValidationError ? (S(), l("i", na)) : c("", !0)
3337
+ ])], 2)) : c("", !0)])) : c("", !0);
2853
3338
  }
2854
- }, [["__scopeId", "data-v-1c9f060d"]]), Gi = { class: "card" }, Ki = { class: "card-body" }, qi = ["action"], Ji = { class: "auth-header" }, Yi = { class: "auth-title" }, Xi = { class: "auth-subtitle" }, Zi = { class: "auth-body" }, Qi = {
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 = {
2855
3340
  key: 0,
2856
3341
  class: "alert alert-success"
2857
- }, $i = {
3342
+ }, fa = {
2858
3343
  key: 1,
2859
3344
  class: "alert alert-danger"
2860
- }, ea = { class: "mb-3" }, ta = { for: "email" }, na = { class: "input-group input-group--custom" }, ra = ["placeholder"], ia = {
3345
+ }, pa = { class: "mb-3" }, ma = { for: "email" }, ha = { class: "input-group input-group--custom" }, ga = ["placeholder"], _a = {
2861
3346
  key: 0,
2862
3347
  class: "invalid-feedback d-block form-text"
2863
- }, aa = { class: "mb-3" }, oa = { for: "password" }, sa = { class: "input-group input-group--custom" }, ca = ["placeholder"], la = {
3348
+ }, va = { class: "mb-3" }, ya = { for: "password" }, ba = { class: "input-group input-group--custom" }, xa = ["placeholder"], Sa = {
2864
3349
  key: 0,
2865
3350
  class: "invalid-feedback d-block form-text"
2866
- }, ua = { class: "mb-3" }, da = ["disabled"], fa = {
3351
+ }, Ca = { class: "mb-3" }, wa = ["disabled"], Ta = {
2867
3352
  key: 0,
2868
3353
  class: "fa fa-spinner fa-spin"
2869
- }, pa = { class: "mb-3 text-center" }, ma = ["href"], ha = /* @__PURE__ */ $({
3354
+ }, Ea = { class: "mb-3 text-center" }, Da = ["href"], Oa = /*#__PURE__*/ $({
2870
3355
  __name: "LoginForm",
2871
3356
  props: {
2872
3357
  action: {
@@ -2895,7 +3380,7 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
2895
3380
  }
2896
3381
  },
2897
3382
  setup(e) {
2898
- let n = e, { form: r, errors: i, submitting: l, onSubmit: u } = Y(n, {
3383
+ let t = e, { form: n, errors: r, submitting: a, onSubmit: o } = X(t, {
2899
3384
  formDefaults: {
2900
3385
  email: "",
2901
3386
  password: ""
@@ -2905,76 +3390,76 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
2905
3390
  password: "required"
2906
3391
  },
2907
3392
  onSuccess() {
2908
- window.location.replace(n.redirectUrl);
3393
+ window.location.replace(t.redirectUrl);
2909
3394
  }
2910
3395
  });
2911
- return (n, d) => (y(), o("div", Gi, [s("div", Ki, [s("form", {
3396
+ return (t, s) => (S(), l("div", ia, [u("div", aa, [u("form", {
2912
3397
  role: "form",
2913
3398
  method: "POST",
2914
3399
  action: e.action,
2915
3400
  novalidate: "",
2916
- onSubmit: d[2] ||= F((...e) => E(u) && E(u)(...e), ["prevent"])
2917
- }, [s("div", Ji, [s("h1", Yi, w(e.translations.title), 1), s("p", Xi, w(e.translations.signInText), 1)]), s("div", Zi, [
2918
- e.statusMessage ? (y(), o("div", Qi, w(e.statusMessage), 1)) : a("", !0),
2919
- e.serverErrors.length ? (y(), o("div", $i, [s("ul", null, [(y(!0), o(t, null, S(e.serverErrors, (e, t) => (y(), o("li", { key: t }, w(e), 1))), 128))])])) : a("", !0),
2920
- s("div", ea, [
2921
- s("label", ta, w(e.translations.email), 1),
2922
- s("div", na, [d[3] ||= s("span", { class: "input-group-text" }, [s("i", { class: "fa fa-envelope" })], -1), N(s("input", {
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", {
2923
3408
  id: "email",
2924
- "onUpdate:modelValue": d[0] ||= (e) => E(r).email = e,
3409
+ "onUpdate:modelValue": s[0] ||= (e) => k(n).email = e,
2925
3410
  type: "text",
2926
- class: m(["form-control", { "is-invalid": E(i).email }]),
3411
+ class: _(["form-control", { "is-invalid": k(r).email }]),
2927
3412
  name: "email",
2928
3413
  placeholder: e.translations.email
2929
- }, null, 10, ra), [[k, E(r).email]])]),
2930
- E(i).email ? (y(), o("div", ia, w(E(i).email), 1)) : a("", !0)
3414
+ }, null, 10, ga), [[M, k(n).email]])]),
3415
+ k(r).email ? (S(), l("div", _a, D(k(r).email), 1)) : c("", !0)
2931
3416
  ]),
2932
- s("div", aa, [
2933
- s("label", oa, w(e.translations.password), 1),
2934
- s("div", sa, [d[4] ||= s("span", { class: "input-group-text" }, [s("i", { class: "fa fa-lock" })], -1), N(s("input", {
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", {
2935
3420
  id: "password",
2936
- "onUpdate:modelValue": d[1] ||= (e) => E(r).password = e,
3421
+ "onUpdate:modelValue": s[1] ||= (e) => k(n).password = e,
2937
3422
  type: "password",
2938
- class: m(["form-control", { "is-invalid": E(i).password }]),
3423
+ class: _(["form-control", { "is-invalid": k(r).password }]),
2939
3424
  name: "password",
2940
3425
  placeholder: e.translations.password
2941
- }, null, 10, ca), [[k, E(r).password]])]),
2942
- E(i).password ? (y(), o("div", la, w(E(i).password), 1)) : a("", !0)
3426
+ }, null, 10, xa), [[M, k(n).password]])]),
3427
+ k(r).password ? (S(), l("div", Sa, D(k(r).password), 1)) : c("", !0)
2943
3428
  ]),
2944
- s("div", ua, [d[5] ||= s("input", {
3429
+ u("div", Ca, [s[5] ||= u("input", {
2945
3430
  type: "hidden",
2946
3431
  name: "remember",
2947
3432
  value: "1"
2948
- }, null, -1), s("button", {
3433
+ }, null, -1), u("button", {
2949
3434
  type: "submit",
2950
3435
  class: "btn btn-primary submit-btn",
2951
- disabled: E(l)
2952
- }, [E(l) ? (y(), o("i", fa)) : a("", !0), c(" " + w(e.translations.button), 1)], 8, da)]),
2953
- s("div", pa, [s("a", {
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", {
2954
3439
  href: e.passwordResetUrl,
2955
3440
  class: "auth-ghost-link forgot-link"
2956
- }, w(e.translations.forgotPassword), 9, ma)])
2957
- ])], 40, qi)])]));
3441
+ }, D(e.translations.forgotPassword), 9, Da)])
3442
+ ])], 40, oa)])]));
2958
3443
  }
2959
- }, [["__scopeId", "data-v-8d4257dc"]]), ga = { class: "card" }, _a = { class: "card-body" }, va = ["action"], ya = { class: "auth-header" }, ba = { class: "auth-title" }, xa = { class: "auth-subtitle" }, Sa = { class: "auth-body" }, Ca = {
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 = {
2960
3445
  key: 0,
2961
3446
  class: "alert alert-success"
2962
- }, wa = {
3447
+ }, La = {
2963
3448
  key: 1,
2964
3449
  class: "alert alert-success"
2965
- }, Ta = {
3450
+ }, Ra = {
2966
3451
  key: 2,
2967
3452
  class: "alert alert-danger"
2968
- }, Ea = { class: "mb-3" }, Da = { for: "email" }, Oa = { class: "input-group input-group--custom" }, ka = ["placeholder"], Aa = {
3453
+ }, za = { class: "mb-3" }, Ba = { for: "email" }, Va = { class: "input-group input-group--custom" }, Ha = ["placeholder"], Ua = {
2969
3454
  key: 0,
2970
3455
  class: "invalid-feedback d-block form-text"
2971
- }, ja = { class: "mb-3" }, Ma = ["disabled"], Na = {
3456
+ }, Wa = { class: "mb-3" }, Ga = ["disabled"], Ka = {
2972
3457
  key: 0,
2973
3458
  class: "fa fa-spinner fa-spin"
2974
- }, Pa = {
3459
+ }, qa = {
2975
3460
  key: 3,
2976
3461
  class: "text-center"
2977
- }, Fa = ["href"], Ia = {
3462
+ }, Ja = ["href"], Ya = {
2978
3463
  __name: "ForgotPasswordForm",
2979
3464
  props: {
2980
3465
  action: {
@@ -2999,65 +3484,65 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
2999
3484
  }
3000
3485
  },
3001
3486
  setup(e) {
3002
- let { form: n, errors: r, submitting: i, successMessage: l, onSubmit: u } = Y(e, {
3487
+ let { form: t, errors: n, submitting: r, successMessage: a, onSubmit: o } = X(e, {
3003
3488
  formDefaults: { email: "" },
3004
3489
  validationSchema: { email: "required|email" }
3005
3490
  });
3006
- return (d, f) => (y(), o("div", ga, [s("div", _a, [s("form", {
3491
+ return (s, f) => (S(), l("div", ka, [u("div", Aa, [u("form", {
3007
3492
  role: "form",
3008
3493
  method: "POST",
3009
3494
  action: e.action,
3010
3495
  novalidate: "",
3011
- onSubmit: f[1] ||= F((...e) => E(u) && E(u)(...e), ["prevent"])
3012
- }, [s("div", ya, [s("h1", ba, w(e.translations.title), 1), s("p", xa, w(e.translations.note), 1)]), s("div", Sa, [
3013
- E(l) ? (y(), o("div", Ca, w(E(l)), 1)) : a("", !0),
3014
- e.statusMessage && !E(l) ? (y(), o("div", wa, w(e.statusMessage), 1)) : a("", !0),
3015
- e.serverErrors.length ? (y(), o("div", Ta, [s("ul", null, [(y(!0), o(t, null, S(e.serverErrors, (e, t) => (y(), o("li", { key: t }, w(e), 1))), 128))])])) : a("", !0),
3016
- s("div", Ea, [
3017
- s("label", Da, w(e.translations.email), 1),
3018
- s("div", Oa, [f[2] ||= s("span", { class: "input-group-text" }, [s("i", { class: "fa fa-envelope" })], -1), N(s("input", {
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", {
3019
3504
  id: "email",
3020
- "onUpdate:modelValue": f[0] ||= (e) => E(n).email = e,
3505
+ "onUpdate:modelValue": f[0] ||= (e) => k(t).email = e,
3021
3506
  type: "text",
3022
- class: m(["form-control", { "is-invalid": E(r).email }]),
3507
+ class: _(["form-control", { "is-invalid": k(n).email }]),
3023
3508
  name: "email",
3024
3509
  placeholder: e.translations.email
3025
- }, null, 10, ka), [[k, E(n).email]])]),
3026
- E(r).email ? (y(), o("div", Aa, w(E(r).email), 1)) : a("", !0)
3510
+ }, null, 10, Ha), [[M, k(t).email]])]),
3511
+ k(n).email ? (S(), l("div", Ua, D(k(n).email), 1)) : c("", !0)
3027
3512
  ]),
3028
- s("div", ja, [s("button", {
3513
+ u("div", Wa, [u("button", {
3029
3514
  type: "submit",
3030
3515
  class: "btn btn-primary submit-btn",
3031
- disabled: E(i)
3032
- }, [E(i) ? (y(), o("i", Na)) : a("", !0), c(" " + w(e.translations.button), 1)], 8, Ma)]),
3033
- e.loginUrl ? (y(), o("div", Pa, [s("a", {
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", {
3034
3519
  href: e.loginUrl,
3035
3520
  class: "auth-ghost-link"
3036
- }, w(e.translations.backToLogin), 9, Fa)])) : a("", !0)
3037
- ])], 40, va)])]));
3521
+ }, D(e.translations.backToLogin), 9, Ja)])) : c("", !0)
3522
+ ])], 40, ja)])]));
3038
3523
  }
3039
- }, La = { class: "card" }, Ra = { class: "card-body" }, za = ["action"], Ba = { class: "auth-header" }, Va = { class: "auth-title" }, Ha = { class: "auth-subtitle" }, Ua = { class: "auth-body" }, Wa = {
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 = {
3040
3525
  key: 0,
3041
3526
  class: "alert alert-success"
3042
- }, Ga = {
3527
+ }, io = {
3043
3528
  key: 1,
3044
3529
  class: "alert alert-danger"
3045
- }, Ka = { class: "mb-3" }, qa = { for: "email" }, Ja = { class: "input-group input-group--custom" }, Ya = ["placeholder"], Xa = {
3530
+ }, ao = { class: "mb-3" }, oo = { for: "email" }, so = { class: "input-group input-group--custom" }, co = ["placeholder"], lo = {
3046
3531
  key: 0,
3047
3532
  class: "invalid-feedback d-block form-text"
3048
- }, Za = { class: "mb-3" }, Qa = { for: "password" }, $a = { class: "input-group input-group--custom" }, eo = ["placeholder"], to = {
3533
+ }, uo = { class: "mb-3" }, fo = { for: "password" }, po = { class: "input-group input-group--custom" }, mo = ["placeholder"], ho = {
3049
3534
  key: 0,
3050
3535
  class: "invalid-feedback d-block form-text"
3051
- }, no = { class: "mb-3" }, ro = { for: "password_confirmation" }, io = { class: "input-group input-group--custom" }, ao = ["placeholder"], oo = {
3536
+ }, go = { class: "mb-3" }, _o = { for: "password_confirmation" }, vo = { class: "input-group input-group--custom" }, yo = ["placeholder"], bo = {
3052
3537
  key: 0,
3053
3538
  class: "invalid-feedback d-block form-text"
3054
- }, so = { class: "mb-3" }, co = ["disabled"], lo = {
3539
+ }, xo = { class: "mb-3" }, So = ["disabled"], Co = {
3055
3540
  key: 0,
3056
3541
  class: "fa fa-spinner fa-spin"
3057
- }, uo = {
3542
+ }, wo = {
3058
3543
  key: 2,
3059
3544
  class: "text-center"
3060
- }, fo = ["href"], po = {
3545
+ }, To = ["href"], Eo = {
3061
3546
  __name: "ResetPasswordForm",
3062
3547
  props: {
3063
3548
  action: {
@@ -3094,12 +3579,12 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
3094
3579
  }
3095
3580
  },
3096
3581
  setup(e) {
3097
- let n = e, { form: r, errors: i, submitting: l, onSubmit: u } = Y(n, {
3582
+ let t = e, { form: n, errors: r, submitting: a, onSubmit: o } = X(t, {
3098
3583
  formDefaults: {
3099
- email: n.email,
3584
+ email: t.email,
3100
3585
  password: "",
3101
3586
  password_confirmation: "",
3102
- token: n.token
3587
+ token: t.token
3103
3588
  },
3104
3589
  validationSchema: {
3105
3590
  email: "required|email",
@@ -3107,81 +3592,81 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
3107
3592
  password_confirmation: "required|confirmed:@password"
3108
3593
  },
3109
3594
  onSuccess(e) {
3110
- window.location.replace(e.redirect || n.redirectUrl);
3595
+ window.location.replace(e.redirect || t.redirectUrl);
3111
3596
  }
3112
3597
  });
3113
- return (n, d) => (y(), o("div", La, [s("div", Ra, [s("form", {
3598
+ return (t, s) => (S(), l("div", Xa, [u("div", Za, [u("form", {
3114
3599
  role: "form",
3115
3600
  method: "POST",
3116
3601
  action: e.action,
3117
3602
  novalidate: "",
3118
- onSubmit: d[3] ||= F((...e) => E(u) && E(u)(...e), ["prevent"])
3119
- }, [s("div", Ba, [s("h1", Va, w(e.translations.title), 1), s("p", Ha, w(e.translations.note), 1)]), s("div", Ua, [
3120
- e.statusMessage ? (y(), o("div", Wa, w(e.statusMessage), 1)) : a("", !0),
3121
- e.serverErrors.length ? (y(), o("div", Ga, [s("ul", null, [(y(!0), o(t, null, S(e.serverErrors, (e, t) => (y(), o("li", { key: t }, w(e), 1))), 128))])])) : a("", !0),
3122
- s("div", Ka, [
3123
- s("label", qa, w(e.translations.email), 1),
3124
- s("div", Ja, [d[4] ||= s("span", { class: "input-group-text" }, [s("i", { class: "fa fa-envelope" })], -1), N(s("input", {
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", {
3125
3610
  id: "email",
3126
- "onUpdate:modelValue": d[0] ||= (e) => E(r).email = e,
3611
+ "onUpdate:modelValue": s[0] ||= (e) => k(n).email = e,
3127
3612
  type: "text",
3128
- class: m(["form-control", { "is-invalid": E(i).email }]),
3613
+ class: _(["form-control", { "is-invalid": k(r).email }]),
3129
3614
  name: "email",
3130
3615
  placeholder: e.translations.email
3131
- }, null, 10, Ya), [[k, E(r).email]])]),
3132
- E(i).email ? (y(), o("div", Xa, w(E(i).email), 1)) : a("", !0)
3616
+ }, null, 10, co), [[M, k(n).email]])]),
3617
+ k(r).email ? (S(), l("div", lo, D(k(r).email), 1)) : c("", !0)
3133
3618
  ]),
3134
- s("div", Za, [
3135
- s("label", Qa, w(e.translations.password), 1),
3136
- s("div", $a, [d[5] ||= s("span", { class: "input-group-text" }, [s("i", { class: "fa fa-lock" })], -1), N(s("input", {
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", {
3137
3622
  id: "password",
3138
- "onUpdate:modelValue": d[1] ||= (e) => E(r).password = e,
3623
+ "onUpdate:modelValue": s[1] ||= (e) => k(n).password = e,
3139
3624
  type: "password",
3140
- class: m(["form-control", { "is-invalid": E(i).password }]),
3625
+ class: _(["form-control", { "is-invalid": k(r).password }]),
3141
3626
  name: "password",
3142
3627
  placeholder: e.translations.password
3143
- }, null, 10, eo), [[k, E(r).password]])]),
3144
- E(i).password ? (y(), o("div", to, w(E(i).password), 1)) : a("", !0)
3628
+ }, null, 10, mo), [[M, k(n).password]])]),
3629
+ k(r).password ? (S(), l("div", ho, D(k(r).password), 1)) : c("", !0)
3145
3630
  ]),
3146
- s("div", no, [
3147
- s("label", ro, w(e.translations.passwordConfirm), 1),
3148
- s("div", io, [d[6] ||= s("span", { class: "input-group-text" }, [s("i", { class: "fa fa-lock" })], -1), N(s("input", {
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", {
3149
3634
  id: "password_confirmation",
3150
- "onUpdate:modelValue": d[2] ||= (e) => E(r).password_confirmation = e,
3635
+ "onUpdate:modelValue": s[2] ||= (e) => k(n).password_confirmation = e,
3151
3636
  type: "password",
3152
- class: m(["form-control", { "is-invalid": E(i).password_confirmation }]),
3637
+ class: _(["form-control", { "is-invalid": k(r).password_confirmation }]),
3153
3638
  name: "password_confirmation",
3154
3639
  placeholder: e.translations.passwordConfirm
3155
- }, null, 10, ao), [[k, E(r).password_confirmation]])]),
3156
- E(i).password_confirmation ? (y(), o("div", oo, w(E(i).password_confirmation), 1)) : a("", !0)
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)
3157
3642
  ]),
3158
- s("div", so, [s("button", {
3643
+ u("div", xo, [u("button", {
3159
3644
  type: "submit",
3160
3645
  class: "btn btn-primary submit-btn",
3161
- disabled: E(l)
3162
- }, [E(l) ? (y(), o("i", lo)) : a("", !0), c(" " + w(e.translations.button), 1)], 8, co)]),
3163
- e.loginUrl ? (y(), o("div", uo, [s("a", {
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", {
3164
3649
  href: e.loginUrl,
3165
3650
  class: "auth-ghost-link"
3166
- }, w(e.translations.backToLogin), 9, fo)])) : a("", !0)
3167
- ])], 40, za)])]));
3651
+ }, D(e.translations.backToLogin), 9, To)])) : c("", !0)
3652
+ ])], 40, Qa)])]));
3168
3653
  }
3169
- }, mo = { class: "card" }, ho = { class: "card-body" }, go = ["action"], _o = { class: "auth-header" }, vo = { class: "auth-title" }, yo = { class: "auth-subtitle" }, bo = { class: "auth-body" }, xo = {
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 = {
3170
3655
  key: 0,
3171
3656
  class: "alert alert-success"
3172
- }, So = {
3657
+ }, Fo = {
3173
3658
  key: 1,
3174
3659
  class: "alert alert-success"
3175
- }, Co = {
3660
+ }, Io = {
3176
3661
  key: 2,
3177
3662
  class: "alert alert-danger"
3178
- }, wo = { class: "mb-3" }, To = { for: "email" }, Eo = { class: "input-group input-group--custom" }, Do = ["placeholder"], Oo = {
3663
+ }, Lo = { class: "mb-3" }, Ro = { for: "email" }, zo = { class: "input-group input-group--custom" }, Bo = ["placeholder"], Vo = {
3179
3664
  key: 0,
3180
3665
  class: "invalid-feedback d-block form-text"
3181
- }, ko = { class: "mb-3" }, Ao = ["disabled"], jo = {
3666
+ }, Ho = { class: "mb-3" }, Uo = ["disabled"], Wo = {
3182
3667
  key: 0,
3183
3668
  class: "fa fa-spinner fa-spin"
3184
- }, Mo = {
3669
+ }, Go = {
3185
3670
  __name: "ActivationForm",
3186
3671
  props: {
3187
3672
  action: {
@@ -3202,43 +3687,43 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
3202
3687
  }
3203
3688
  },
3204
3689
  setup(e) {
3205
- let { form: n, errors: r, submitting: i, successMessage: l, onSubmit: u } = Y(e, {
3690
+ let { form: t, errors: n, submitting: r, successMessage: a, onSubmit: o } = X(e, {
3206
3691
  formDefaults: { email: "" },
3207
3692
  validationSchema: { email: "required|email" }
3208
3693
  });
3209
- return (d, f) => (y(), o("div", mo, [s("div", ho, [s("form", {
3694
+ return (s, f) => (S(), l("div", Do, [u("div", Oo, [u("form", {
3210
3695
  role: "form",
3211
3696
  method: "POST",
3212
3697
  action: e.action,
3213
3698
  novalidate: "",
3214
- onSubmit: f[1] ||= F((...e) => E(u) && E(u)(...e), ["prevent"])
3215
- }, [s("div", _o, [s("h1", vo, w(e.translations.title), 1), s("p", yo, w(e.translations.note), 1)]), s("div", bo, [
3216
- E(l) ? (y(), o("div", xo, w(E(l)), 1)) : a("", !0),
3217
- e.statusMessage && !E(l) ? (y(), o("div", So, w(e.statusMessage), 1)) : a("", !0),
3218
- e.serverErrors.length ? (y(), o("div", Co, [s("ul", null, [(y(!0), o(t, null, S(e.serverErrors, (e, t) => (y(), o("li", { key: t }, w(e), 1))), 128))])])) : a("", !0),
3219
- s("div", wo, [
3220
- s("label", To, w(e.translations.email), 1),
3221
- s("div", Eo, [f[2] ||= s("span", { class: "input-group-text" }, [s("i", { class: "fa fa-envelope" })], -1), N(s("input", {
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", {
3222
3707
  id: "email",
3223
- "onUpdate:modelValue": f[0] ||= (e) => E(n).email = e,
3708
+ "onUpdate:modelValue": f[0] ||= (e) => k(t).email = e,
3224
3709
  type: "text",
3225
- class: m(["form-control", { "is-invalid": E(r).email }]),
3710
+ class: _(["form-control", { "is-invalid": k(n).email }]),
3226
3711
  name: "email",
3227
3712
  placeholder: e.translations.email
3228
- }, null, 10, Do), [[k, E(n).email]])]),
3229
- E(r).email ? (y(), o("div", Oo, w(E(r).email), 1)) : a("", !0)
3713
+ }, null, 10, Bo), [[M, k(t).email]])]),
3714
+ k(n).email ? (S(), l("div", Vo, D(k(n).email), 1)) : c("", !0)
3230
3715
  ]),
3231
- s("div", ko, [s("button", {
3716
+ u("div", Ho, [u("button", {
3232
3717
  type: "submit",
3233
3718
  class: "btn btn-primary submit-btn",
3234
- disabled: E(i)
3235
- }, [E(i) ? (y(), o("i", jo)) : a("", !0), c(" " + w(e.translations.button), 1)], 8, Ao)])
3236
- ])], 40, go)])]));
3719
+ disabled: k(r)
3720
+ }, [k(r) ? (S(), l("i", Wo)) : c("", !0), d(" " + D(e.translations.button), 1)], 8, Uo)])
3721
+ ])], 40, ko)])]));
3237
3722
  }
3238
- }, No = { class: "card" }, Po = { class: "card-body" }, Fo = { class: "auth-header" }, Io = { class: "auth-title" }, Lo = { class: "auth-body" }, Ro = {
3723
+ }, Ko = { class: "card" }, qo = { class: "card-body" }, Jo = { class: "auth-header" }, Yo = { class: "auth-title" }, Xo = { class: "auth-body" }, Zo = {
3239
3724
  key: 0,
3240
3725
  class: "alert alert-danger"
3241
- }, zo = {
3726
+ }, Qo = {
3242
3727
  __name: "ActivationError",
3243
3728
  props: {
3244
3729
  translations: {
@@ -3251,15 +3736,15 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
3251
3736
  }
3252
3737
  },
3253
3738
  setup(e) {
3254
- return (n, r) => (y(), o("div", No, [s("div", Po, [s("div", Fo, [s("h1", Io, w(e.translations.title), 1)]), s("div", Lo, [e.serverErrors.length ? (y(), o("div", Ro, [s("ul", null, [(y(!0), o(t, null, S(e.serverErrors, (e, t) => (y(), o("li", { key: t }, w(e), 1))), 128))])])) : a("", !0)])])]));
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)])])]));
3255
3740
  }
3256
- }, Bo = { class: "modal-dialog" }, Vo = { class: "modal-content" }, Ho = { class: "modal-header" }, Uo = { class: "modal-title" }, Wo = { class: "modal-body" }, Go = {
3741
+ }, $o = { class: "modal-dialog" }, es = { class: "modal-content" }, ts = { class: "modal-header" }, ns = { class: "modal-title" }, rs = { class: "modal-body" }, is = {
3257
3742
  class: "text-center",
3258
3743
  style: { "word-wrap": "break-word" }
3259
- }, Ko = { class: "form-label" }, qo = ["onUpdate:modelValue", "placeholder"], Jo = ["onUpdate:modelValue", "placeholder"], Yo = { class: "text-center" }, Xo = {
3744
+ }, as = { class: "form-label" }, os = ["onUpdate:modelValue", "placeholder"], ss = ["onUpdate:modelValue", "placeholder"], cs = { class: "text-center" }, ls = {
3260
3745
  class: "btn btn-primary w-100",
3261
3746
  type: "submit"
3262
- }, Zo = {
3747
+ }, us = {
3263
3748
  __name: "TranslationEditModal",
3264
3749
  props: {
3265
3750
  show: {
@@ -3284,63 +3769,63 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
3284
3769
  }
3285
3770
  },
3286
3771
  emits: ["close", "saved"],
3287
- setup(e, { emit: n }) {
3288
- let i = window.axios, l = e, u = n, d = r(() => Array.isArray(l.locales) ? l.locales : Object.values(l.locales)), f = b({});
3289
- j(() => l.item, (e) => {
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) => {
3290
3775
  Object.keys(f).forEach((e) => delete f[e]);
3291
3776
  for (let t of Object.keys(e?.text || {})) f[t] = e.text[t];
3292
3777
  }, { immediate: !0 });
3293
3778
  async function p() {
3294
3779
  try {
3295
- await i.post(l.url + "/" + l.item.id, { text: { ...f } }), H("Item successfully changed."), u("saved"), u("close");
3780
+ await n.post(r.url + "/" + r.item.id, { text: { ...f } }), W("Item successfully changed."), a("saved"), a("close");
3296
3781
  } catch {
3297
- U();
3782
+ G();
3298
3783
  }
3299
3784
  }
3300
- return (n, r) => (y(), o(t, null, [s("div", {
3301
- class: m(["modal fade", { show: e.show }]),
3302
- style: g({ display: e.show ? "block" : "none" })
3303
- }, [s("div", Bo, [s("div", Vo, [s("div", Ho, [s("h4", Uo, w(e.translations.edit), 1), s("button", {
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", {
3304
3789
  type: "button",
3305
3790
  class: "btn-close",
3306
- onClick: r[0] ||= (e) => n.$emit("close")
3307
- })]), s("div", Wo, [s("p", Go, [s("strong", null, w(e.translations.default_text) + ":", 1), c(" " + w(e.item?.key), 1)]), s("form", { onSubmit: F(p, ["prevent"]) }, [(y(!0), o(t, null, S(d.value, (t) => (y(), o("div", {
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", {
3308
3793
  key: t,
3309
3794
  class: "mb-3"
3310
- }, [s("label", Ko, w(t.toUpperCase()) + " " + w(e.translations.translation), 1), !f[t] || f[t].length < 70 ? N((y(), o("input", {
3795
+ }, [u("label", as, D(t.toUpperCase()) + " " + D(e.translations.translation), 1), !f[t] || f[t].length < 70 ? I((S(), l("input", {
3311
3796
  key: 0,
3312
3797
  "onUpdate:modelValue": (e) => f[t] = e,
3313
3798
  type: "text",
3314
3799
  class: "form-control",
3315
3800
  placeholder: (e.translations.translation_for || "").replace(":locale", t)
3316
- }, null, 8, qo)), [[k, f[t]]]) : N((y(), o("textarea", {
3801
+ }, null, 8, os)), [[M, f[t]]]) : I((S(), l("textarea", {
3317
3802
  key: 1,
3318
3803
  "onUpdate:modelValue": (e) => f[t] = e,
3319
3804
  class: "form-control",
3320
3805
  placeholder: (e.translations.translation_for || "").replace(":locale", t),
3321
3806
  cols: "30",
3322
3807
  rows: "4"
3323
- }, null, 8, Jo)), [[k, f[t]]])]))), 128)), s("div", Yo, [s("button", Xo, w(e.translations.save) + " " + w(e.translations.translation), 1)])], 32)])])])], 6), e.show ? (y(), o("div", {
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", {
3324
3809
  key: 0,
3325
3810
  class: "modal-backdrop fade show",
3326
- onClick: r[1] ||= (e) => n.$emit("close")
3327
- })) : a("", !0)], 64));
3811
+ onClick: n[1] ||= (e) => t.$emit("close")
3812
+ })) : c("", !0)], 64));
3328
3813
  }
3329
- }, Qo = { class: "modal-dialog modal-lg" }, $o = { class: "modal-content" }, es = { class: "modal-header" }, ts = { class: "modal-title" }, ns = { class: "modal-body" }, rs = { class: "row mb-3" }, is = { class: "col-md-4 text-md-end" }, as = { class: "col-form-label" }, os = { class: "col-md-6" }, ss = { class: "btn btn-primary btn-sm w-100 mb-0" }, cs = { key: 0 }, ls = { key: 1 }, us = { class: "row mb-3" }, ds = { class: "col-md-4 text-md-end" }, fs = {
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 = {
3330
3815
  for: "importLanguage",
3331
3816
  class: "col-form-label"
3332
- }, ps = { class: "col-md-6" }, ms = { class: "offset-md-4" }, hs = { class: "form-check" }, gs = {
3817
+ }, Es = { class: "col-md-6" }, Ds = { class: "offset-md-4" }, Os = { class: "form-check" }, ks = {
3333
3818
  class: "form-check-label",
3334
3819
  for: "onlyMissingTranslations"
3335
- }, _s = { class: "text-center mb-3" }, vs = { class: "table table-hover" }, ys = { key: 0 }, bs = { style: { "word-break": "break-all" } }, xs = { style: { "word-break": "break-all" } }, Ss = { style: { "word-break": "break-all" } }, Cs = [
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 = [
3336
3821
  "id",
3337
3822
  "onUpdate:modelValue",
3338
3823
  "name"
3339
- ], ws = ["for"], Ts = { style: { "word-break": "break-all" } }, Es = [
3824
+ ], Ls = ["for"], Rs = { style: { "word-break": "break-all" } }, zs = [
3340
3825
  "id",
3341
3826
  "onUpdate:modelValue",
3342
3827
  "name"
3343
- ], Ds = ["for"], Os = { class: "text-center" }, ks = { class: "modal-footer" }, As = {
3828
+ ], Bs = ["for"], Vs = { class: "text-center" }, Hs = { class: "modal-footer" }, Us = {
3344
3829
  __name: "TranslationImportModal",
3345
3830
  props: {
3346
3831
  show: {
@@ -3365,64 +3850,64 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
3365
3850
  }
3366
3851
  },
3367
3852
  emits: ["close", "imported"],
3368
- setup(e, { emit: n }) {
3369
- let i = window.axios, c = e, u = n, d = r(() => Array.isArray(c.locales) ? c.locales : Object.values(c.locales)), f = r(() => d.value.map((e) => ({
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) => ({
3370
3855
  id: e,
3371
3856
  name: e.toUpperCase()
3372
- }))), p = x(null), h = x(null), _ = x(null), v = r(() => _.value?.id ?? ""), b = x(!1), C = x(1), T = x(0), k = x(0), M = x(0), P = x(0), I = x(null), L = r(() => C.value === c.stepCount);
3373
- j(() => c.show, (e) => {
3374
- e || R();
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();
3375
3860
  });
3376
- function R() {
3377
- C.value = 1, h.value = null, _.value = null, b.value = !1, I.value = null, p.value && (p.value.value = "");
3861
+ function L() {
3862
+ b.value = 1, m.value = null, h.value = null, v.value = !1, M.value = null, p.value && (p.value.value = "");
3378
3863
  }
3379
3864
  function z(e) {
3380
- h.value = e.target.files[0];
3865
+ m.value = e.target.files[0];
3381
3866
  }
3382
3867
  function B() {
3383
- u("close");
3868
+ a("close");
3384
3869
  }
3385
- async function ee() {
3386
- if (C.value === 1) {
3387
- if (!h.value || !v.value) {
3388
- U("The form contains invalid fields.");
3870
+ async function V() {
3871
+ if (b.value === 1) {
3872
+ if (!m.value || !g.value) {
3873
+ G("The form contains invalid fields.");
3389
3874
  return;
3390
3875
  }
3391
3876
  let e = new FormData();
3392
- e.append("fileImport", h.value), e.append("importLanguage", v.value), e.append("onlyMissing", b.value);
3877
+ e.append("fileImport", m.value), e.append("importLanguage", g.value), e.append("onlyMissing", v.value);
3393
3878
  try {
3394
- let t = await i.post(c.url + "/import", e, { headers: { "Content-Type": "multipart/form-data" } });
3395
- "numberOfImportedTranslations" in t.data && "numberOfUpdatedTranslations" in t.data ? (C.value = 3, T.value = t.data.numberOfImportedTranslations, k.value = t.data.numberOfUpdatedTranslations, u("imported")) : (C.value = 2, I.value = t.data, M.value = Object.keys(t.data).length, P.value = I.value.filter((e) => e.has_conflict).length);
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);
3396
3881
  } catch (e) {
3397
3882
  let t = e.response?.data;
3398
- t === "Wrong syntax in your import" ? U("Wrong syntax in your import.") : t === "Unsupported file type" ? U("Unsupported file type.") : U();
3883
+ t === "Wrong syntax in your import" ? G("Wrong syntax in your import.") : t === "Unsupported file type" ? G("Unsupported file type.") : G();
3399
3884
  }
3400
- } else if (C.value === 2) {
3401
- for (let e = 0; e < I.value.length; e++) I.value[e].checkedCurrent && (I.value[e][v.value.toLowerCase()] = I.value[e].current_value);
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);
3402
3887
  try {
3403
- let e = await i.post(c.url + "/import/conflicts", {
3404
- importLanguage: v.value,
3405
- resolvedTranslations: I.value
3888
+ let e = await n.post(r.url + "/import/conflicts", {
3889
+ importLanguage: g.value,
3890
+ resolvedTranslations: M.value
3406
3891
  });
3407
- C.value = 3, T.value = e.data.numberOfImportedTranslations, k.value = e.data.numberOfUpdatedTranslations, u("imported");
3892
+ b.value = 3, x.value = e.data.numberOfImportedTranslations, C.value = e.data.numberOfUpdatedTranslations, a("imported");
3408
3893
  } catch {
3409
- U();
3894
+ G();
3410
3895
  }
3411
3896
  }
3412
3897
  }
3413
- return (n, r) => (y(), o(t, null, [s("div", {
3414
- class: m(["modal fade", { show: e.show }]),
3415
- style: g({ display: e.show ? "block" : "none" })
3416
- }, [s("div", Qo, [s("div", $o, [
3417
- s("div", es, [s("h4", ts, w(e.translations.import_title), 1), s("button", {
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", {
3418
3903
  type: "button",
3419
3904
  class: "btn-close",
3420
3905
  onClick: B
3421
3906
  })]),
3422
- s("div", ns, [
3423
- N(s("div", null, [
3424
- s("p", null, w(e.translations.import_notice), 1),
3425
- s("div", rs, [s("div", is, [s("label", as, w(e.translations.upload_file), 1)]), s("div", os, [s("label", ss, [h.value ? (y(), o("span", cs, w(h.value.name), 1)) : (y(), o("span", ls, w(e.translations.choose_file), 1)), s("input", {
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", {
3426
3911
  ref_key: "fileInput",
3427
3912
  ref: p,
3428
3913
  type: "file",
@@ -3430,10 +3915,10 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
3430
3915
  accept: ".xlsx",
3431
3916
  onChange: z
3432
3917
  }, null, 544)])])]),
3433
- s("div", us, [s("div", ds, [s("label", fs, w(e.translations.language_to_import), 1)]), s("div", ps, [l(E(V), {
3434
- modelValue: _.value,
3435
- "onUpdate:modelValue": r[0] ||= (e) => _.value = e,
3436
- options: f.value,
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,
3437
3922
  "track-by": "id",
3438
3923
  label: "name",
3439
3924
  placeholder: e.translations.select_language,
@@ -3445,62 +3930,62 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
3445
3930
  "options",
3446
3931
  "placeholder"
3447
3932
  ])])]),
3448
- s("div", ms, [s("div", hs, [N(s("input", {
3933
+ u("div", Ds, [u("div", Os, [I(u("input", {
3449
3934
  id: "onlyMissingTranslations",
3450
- "onUpdate:modelValue": r[1] ||= (e) => b.value = e,
3935
+ "onUpdate:modelValue": n[1] ||= (e) => v.value = e,
3451
3936
  class: "form-check-input",
3452
3937
  type: "checkbox"
3453
- }, null, 512), [[D, b.value]]), s("label", gs, w(e.translations.do_not_override), 1)])])
3454
- ], 512), [[A, C.value === 1]]),
3455
- N(s("div", null, [s("div", _s, [s("p", null, w(e.translations.conflict_found) + " " + w(M.value) + " " + w(e.translations.conflict_to_import) + " " + w(P.value) + " " + w(e.translations.conflict_differ), 1)]), s("table", vs, [s("thead", null, [s("tr", null, [
3456
- s("th", null, w(e.translations.group), 1),
3457
- s("th", null, w(e.translations.default), 1),
3458
- s("th", null, w(e.translations.current_value), 1),
3459
- s("th", null, w(e.translations.imported_value), 1)
3460
- ])]), s("tbody", null, [(y(!0), o(t, null, S(I.value, (e, n) => (y(), o(t, { key: n }, [e.has_conflict ? (y(), o("tr", ys, [
3461
- s("td", bs, w(e.group), 1),
3462
- s("td", xs, w(e.default), 1),
3463
- s("td", Ss, [N(s("input", {
3464
- id: "current-" + n + "0",
3465
- "onUpdate:modelValue": (e) => I.value[n].checkedCurrent = 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,
3466
3951
  type: "radio",
3467
3952
  class: "form-check-input me-1",
3468
3953
  value: !0,
3469
- name: "current-" + n
3470
- }, null, 8, Cs), [[O, I.value[n].checkedCurrent]]), s("label", {
3954
+ name: "current-" + t
3955
+ }, null, 8, Is), [[j, M.value[t].checkedCurrent]]), u("label", {
3471
3956
  class: "form-check-label",
3472
- for: "current-" + n + "0"
3473
- }, w(e.current_value), 9, ws)]),
3474
- s("td", Ts, [N(s("input", {
3475
- id: "current-" + n + "1",
3476
- "onUpdate:modelValue": (e) => I.value[n].checkedCurrent = 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,
3477
3962
  type: "radio",
3478
3963
  class: "form-check-input me-1",
3479
3964
  value: !1,
3480
- name: "current-" + n
3481
- }, null, 8, Es), [[O, I.value[n].checkedCurrent]]), s("label", {
3965
+ name: "current-" + t
3966
+ }, null, 8, zs), [[j, M.value[t].checkedCurrent]]), u("label", {
3482
3967
  class: "form-check-label",
3483
- for: "current-" + n + "1"
3484
- }, w(e[v.value.toLowerCase()]), 9, Ds)])
3485
- ])) : a("", !0)], 64))), 128))])])], 512), [[A, C.value === 2]]),
3486
- N(s("div", null, [s("div", Os, [s("p", null, w(T.value) + " " + w(e.translations.successfully_imported) + " " + w(k.value) + " " + w(e.translations.successfully_updated), 1)])], 512), [[A, C.value === 3]])
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]])
3487
3972
  ]),
3488
- s("div", ks, [L.value ? a("", !0) : (y(), o("button", {
3973
+ u("div", Hs, [F.value ? c("", !0) : (S(), l("button", {
3489
3974
  key: 0,
3490
3975
  type: "button",
3491
3976
  class: "btn btn-primary",
3492
- onClick: F(ee, ["prevent"])
3493
- }, w(e.translations.next), 1))])
3494
- ])])], 6), e.show ? (y(), o("div", {
3977
+ onClick: R(V, ["prevent"])
3978
+ }, D(e.translations.next), 1))])
3979
+ ])])], 6), e.show ? (S(), l("div", {
3495
3980
  key: 0,
3496
3981
  class: "modal-backdrop fade show",
3497
3982
  onClick: B
3498
- })) : a("", !0)], 64));
3983
+ })) : c("", !0)], 64));
3499
3984
  }
3500
- }, js = { class: "modal-dialog" }, Ms = { class: "modal-content" }, Ns = { class: "modal-header" }, Ps = { class: "modal-title" }, Fs = { class: "modal-body" }, Is = { class: "text-start" }, Ls = { class: "text-end" }, Rs = {
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 = {
3501
3986
  class: "btn btn-primary",
3502
3987
  type: "submit"
3503
- }, zs = {
3988
+ }, Qs = {
3504
3989
  __name: "TranslationExportModal",
3505
3990
  props: {
3506
3991
  show: {
@@ -3521,37 +4006,37 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
3521
4006
  }
3522
4007
  },
3523
4008
  emits: ["close"],
3524
- setup(e, { emit: n }) {
3525
- let i = e, u = n, d = r(() => Array.isArray(i.locales) ? i.locales : Object.values(i.locales)), f = r(() => d.value.map((e) => ({
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) => ({
3526
4011
  id: e,
3527
4012
  name: e.toUpperCase()
3528
- }))), p = x([]);
3529
- j(f, (e) => {
4013
+ }))), p = w([]);
4014
+ P(s, (e) => {
3530
4015
  p.value = [...e];
3531
4016
  }, { immediate: !0 });
3532
- function h() {
4017
+ function m() {
3533
4018
  if (p.value.length === 0) {
3534
- U("Please select at least one language to export.");
4019
+ G("Please select at least one language to export.");
3535
4020
  return;
3536
4021
  }
3537
4022
  let e = new URLSearchParams();
3538
- p.value.forEach((t) => e.append("exportLanguages[]", t.id)), window.location = i.url + "/export?" + e.toString(), u("close");
4023
+ p.value.forEach((t) => e.append("exportLanguages[]", t.id)), window.location = n.url + "/export?" + e.toString(), r("close");
3539
4024
  }
3540
- return (n, r) => (y(), o(t, null, [s("div", {
3541
- class: m(["modal fade", { show: e.show }]),
3542
- style: g({ display: e.show ? "block" : "none" })
3543
- }, [s("div", js, [s("div", Ms, [s("div", Ns, [s("h4", Ps, w(e.translations.export), 1), s("button", {
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", {
3544
4029
  type: "button",
3545
4030
  class: "btn-close",
3546
- onClick: r[0] ||= (e) => n.$emit("close")
3547
- })]), s("div", Fs, [s("form", { onSubmit: F(h, ["prevent"]) }, [
3548
- s("p", Is, w(e.translations.export_notice), 1),
3549
- l(Xr, {
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, {
3550
4035
  modelValue: p.value,
3551
- "onUpdate:modelValue": r[1] ||= (e) => p.value = e,
4036
+ "onUpdate:modelValue": n[1] ||= (e) => p.value = e,
3552
4037
  name: "languagesToExport",
3553
4038
  label: e.translations.language_to_export,
3554
- options: f.value,
4039
+ options: s.value,
3555
4040
  "track-by": "id",
3556
4041
  "option-label": "name",
3557
4042
  placeholder: e.translations.select_language
@@ -3561,17 +4046,17 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
3561
4046
  "options",
3562
4047
  "placeholder"
3563
4048
  ]),
3564
- s("div", Ls, [s("button", Rs, [r[3] ||= s("i", { class: "fa fa-file-excel" }, null, -1), c("\xA0" + w(e.translations.export_btn), 1)])])
3565
- ], 32)])])])], 6), e.show ? (y(), o("div", {
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", {
3566
4051
  key: 0,
3567
4052
  class: "modal-backdrop fade show",
3568
- onClick: r[2] ||= (e) => n.$emit("close")
3569
- })) : a("", !0)], 64));
4053
+ onClick: n[2] ||= (e) => t.$emit("close")
4054
+ })) : c("", !0)], 64));
3570
4055
  }
3571
- }, Bs = { class: "row" }, Vs = { class: "col" }, Hs = { class: "card" }, Us = { class: "card-header" }, Ws = { class: "row justify-content-md-between mb-3" }, Gs = { class: "col col-lg-7 col-xl-5 mb-3" }, Ks = { class: "col-sm-auto mb-3" }, qs = { class: "table-responsive" }, Js = { class: "table table-hover table-listing" }, Ys = { key: 0 }, Xs = ["title", "onClick"], Zs = {
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 = {
3572
4057
  key: 0,
3573
4058
  class: "no-items-found"
3574
- }, Qs = {
4059
+ }, dc = {
3575
4060
  __name: "TranslationListing",
3576
4061
  props: {
3577
4062
  url: {
@@ -3608,31 +4093,31 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
3608
4093
  }
3609
4094
  },
3610
4095
  setup(e) {
3611
- let n = window.axios, u = e, d = x(null), { isColumnVisible: p } = at(d), { pagination: h, orderBy: g, filters: _, search: v, collection: b, loadData: C, filter: T, onSort: D, onPageChange: O, onPerPageChange: k } = tt(u), A = r(() => Array.isArray(u.locales) ? u.locales : Object.values(u.locales)), j = x(!1), N = x(!1), P = x(!1), I = x(null);
3612
- _.group = null;
3613
- function L(e) {
3614
- _.group = e ?? null, C(!0);
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);
3615
4100
  }
3616
- function R(e) {
3617
- I.value = e, j.value = !0;
4101
+ function L(e) {
4102
+ P.value = e, j.value = !0;
3618
4103
  }
3619
- let z = x(!1);
4104
+ let z = w(!1);
3620
4105
  function B() {
3621
- z.value = !0, n.post(u.url + "/rescan").then(() => {
3622
- z.value = !1, C(!0);
4106
+ z.value = !0, t.post(n.url + "/rescan").then(() => {
4107
+ z.value = !1, b(!0);
3623
4108
  }, () => {
3624
- z.value = !1, U();
4109
+ z.value = !1, G();
3625
4110
  });
3626
4111
  }
3627
- return (n, r) => (y(), o("div", Bs, [s("div", Vs, [
3628
- l(Zo, {
4112
+ return (t, n) => (S(), l("div", $s, [u("div", ec, [
4113
+ f(us, {
3629
4114
  show: j.value,
3630
- item: I.value,
4115
+ item: P.value,
3631
4116
  locales: A.value,
3632
4117
  url: e.url,
3633
4118
  translations: e.translations,
3634
- onClose: r[0] ||= (e) => j.value = !1,
3635
- onSaved: E(C)
4119
+ onClose: n[0] ||= (e) => j.value = !1,
4120
+ onSaved: k(b)
3636
4121
  }, null, 8, [
3637
4122
  "show",
3638
4123
  "item",
@@ -3641,14 +4126,14 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
3641
4126
  "translations",
3642
4127
  "onSaved"
3643
4128
  ]),
3644
- l(As, {
3645
- show: N.value,
4129
+ f(Us, {
4130
+ show: M.value,
3646
4131
  locales: A.value,
3647
4132
  url: e.url,
3648
4133
  "step-count": e.stepCount,
3649
4134
  translations: e.translations,
3650
- onClose: r[1] ||= (e) => N.value = !1,
3651
- onImported: E(C)
4135
+ onClose: n[1] ||= (e) => M.value = !1,
4136
+ onImported: k(b)
3652
4137
  }, null, 8, [
3653
4138
  "show",
3654
4139
  "locales",
@@ -3657,62 +4142,62 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
3657
4142
  "translations",
3658
4143
  "onImported"
3659
4144
  ]),
3660
- l(zs, {
3661
- show: P.value,
4145
+ f(Qs, {
4146
+ show: N.value,
3662
4147
  locales: A.value,
3663
4148
  url: e.url,
3664
4149
  translations: e.translations,
3665
- onClose: r[2] ||= (e) => P.value = !1
4150
+ onClose: n[2] ||= (e) => N.value = !1
3666
4151
  }, null, 8, [
3667
4152
  "show",
3668
4153
  "locales",
3669
4154
  "url",
3670
4155
  "translations"
3671
4156
  ]),
3672
- s("div", Hs, [s("div", Us, [
3673
- r[9] ||= s("i", { class: "fa fa-align-justify" }, null, -1),
3674
- c(" " + w(e.translations.listing_title) + " ", 1),
3675
- s("a", {
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", {
3676
4161
  class: "btn btn-primary btn-sm float-end ms-2",
3677
4162
  href: "#",
3678
4163
  role: "button",
3679
- onClick: r[3] ||= F((e) => N.value = !0, ["prevent"])
3680
- }, [r[7] ||= s("i", { class: "fa fa-upload" }, null, -1), c("\xA0 " + w(e.translations.import_btn), 1)]),
3681
- s("a", {
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", {
3682
4167
  class: "btn btn-primary btn-sm float-end ms-2",
3683
4168
  href: "#",
3684
4169
  role: "button",
3685
- onClick: r[4] ||= F((e) => P.value = !0, ["prevent"])
3686
- }, [r[8] ||= s("i", { class: "fa fa-file-excel" }, null, -1), c("\xA0 " + w(e.translations.export_btn), 1)]),
3687
- s("a", {
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", {
3688
4173
  class: "btn btn-primary btn-sm float-end",
3689
4174
  href: "#",
3690
4175
  role: "button",
3691
- onClick: F(B, ["prevent"])
3692
- }, [s("i", { class: m(["fa", z.value ? "fa-spinner fa-spin" : "fa-eye"]) }, null, 2), c("\xA0 " + w(e.translations.rescan_btn), 1)])
3693
- ]), s("div", {
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", {
3694
4179
  ref_key: "cardBody",
3695
- ref: d,
4180
+ ref: r,
3696
4181
  class: "card-body"
3697
4182
  }, [
3698
- s("div", Ws, [s("div", Gs, [l(xn, {
3699
- search: E(v),
3700
- "onUpdate:search": r[5] ||= (e) => f(v) ? v.value = e : null,
3701
- "filter-fn": E(T),
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),
3702
4187
  translations: {
3703
4188
  search_placeholder: e.translations.search_placeholder,
3704
4189
  search_btn: e.translations.search_btn
3705
4190
  }
3706
4191
  }, {
3707
- prepend: M(() => [l(E(V), {
3708
- "model-value": E(_).group,
4192
+ prepend: F(() => [f(k(U), {
4193
+ "model-value": k(g).group,
3709
4194
  options: e.groups,
3710
4195
  placeholder: e.translations.all_groups,
3711
4196
  "allow-empty": !0,
3712
4197
  "show-labels": !1,
3713
4198
  "open-direction": "bottom",
3714
4199
  class: "multiselect--input-group-prepend",
3715
- "onUpdate:modelValue": L
4200
+ "onUpdate:modelValue": I
3716
4201
  }, null, 8, [
3717
4202
  "model-value",
3718
4203
  "options",
@@ -3723,68 +4208,68 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
3723
4208
  "search",
3724
4209
  "filter-fn",
3725
4210
  "translations"
3726
- ])]), s("div", Ks, [l(Cn, {
3727
- modelValue: E(h).state.per_page,
3728
- "onUpdate:modelValue": r[6] ||= (e) => E(h).state.per_page = e
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
3729
4214
  }, null, 8, ["modelValue"])])]),
3730
- s("div", qs, [s("table", Js, [s("thead", null, [s("tr", null, [
3731
- l(Q, {
4215
+ u("div", oc, [u("table", sc, [u("thead", null, [u("tr", null, [
4216
+ f(Q, {
3732
4217
  column: "group",
3733
- "order-by": E(g),
3734
- onSort: E(D)
4218
+ "order-by": k(m),
4219
+ onSort: k(C)
3735
4220
  }, {
3736
- default: M(() => [c(w(e.translations.group), 1)]),
4221
+ default: F(() => [d(D(e.translations.group), 1)]),
3737
4222
  _: 1
3738
4223
  }, 8, ["order-by", "onSort"]),
3739
- l(Q, {
4224
+ f(Q, {
3740
4225
  column: "key",
3741
- "order-by": E(g),
3742
- onSort: E(D)
4226
+ "order-by": k(m),
4227
+ onSort: k(C)
3743
4228
  }, {
3744
- default: M(() => [c(w(e.translations.default), 1)]),
4229
+ default: F(() => [d(D(e.translations.default), 1)]),
3745
4230
  _: 1
3746
4231
  }, 8, ["order-by", "onSort"]),
3747
- l(Q, {
4232
+ f(Q, {
3748
4233
  column: "text",
3749
- "order-by": E(g),
3750
- onSort: E(D)
4234
+ "order-by": k(m),
4235
+ onSort: k(C)
3751
4236
  }, {
3752
- default: M(() => [c(w(e.userLocale.toUpperCase()), 1)]),
4237
+ default: F(() => [d(D(e.userLocale.toUpperCase()), 1)]),
3753
4238
  _: 1
3754
4239
  }, 8, ["order-by", "onSort"]),
3755
- E(p)(4) ? (y(), i(Q, {
4240
+ k(a)(4) ? (S(), s(Q, {
3756
4241
  key: 0,
3757
4242
  column: "created_at",
3758
- "order-by": E(g),
3759
- onSort: E(D)
4243
+ "order-by": k(m),
4244
+ onSort: k(C)
3760
4245
  }, {
3761
- default: M(() => [c(w(e.translations.created_at_label), 1)]),
4246
+ default: F(() => [d(D(e.translations.created_at_label), 1)]),
3762
4247
  _: 1
3763
- }, 8, ["order-by", "onSort"])) : a("", !0),
3764
- r[10] ||= s("th", null, null, -1)
3765
- ])]), s("tbody", null, [(y(!0), o(t, null, S(E(b), (t) => (y(), o("tr", { key: t.id }, [
3766
- s("td", null, w(t.group), 1),
3767
- s("td", null, w(t.key), 1),
3768
- s("td", null, w(t.text?.[e.userLocale]), 1),
3769
- E(p)(4) ? (y(), o("td", Ys, w(E(W)(t.created_at)), 1)) : a("", !0),
3770
- s("td", null, [s("a", {
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", {
3771
4256
  class: "btn btn-sm btn-info",
3772
4257
  href: "#",
3773
4258
  title: e.translations.edit_btn,
3774
4259
  role: "button",
3775
- onClick: F((e) => R(t), ["prevent"])
3776
- }, [...r[11] ||= [s("i", { class: "fa fa-edit" }, null, -1)]], 8, Xs)])
4260
+ onClick: R((e) => L(t), ["prevent"])
4261
+ }, [...n[11] ||= [u("i", { class: "fa fa-edit" }, null, -1)]], 8, lc)])
3777
4262
  ]))), 128))])])]),
3778
- l(_n, {
3779
- pagination: E(h).state,
3780
- options: E(h).options,
4263
+ f(Tn, {
4264
+ pagination: k(p).state,
4265
+ options: k(p).options,
3781
4266
  translations: {
3782
4267
  previous: e.translations.pagination_previous,
3783
4268
  next: e.translations.pagination_next,
3784
4269
  overview: e.translations.pagination_overview
3785
4270
  },
3786
- onPageChange: E(O),
3787
- onPerPageChange: E(k)
4271
+ onPageChange: k(E),
4272
+ onPerPageChange: k(O)
3788
4273
  }, null, 8, [
3789
4274
  "pagination",
3790
4275
  "options",
@@ -3792,21 +4277,21 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
3792
4277
  "onPageChange",
3793
4278
  "onPerPageChange"
3794
4279
  ]),
3795
- E(b)?.length ? a("", !0) : (y(), o("div", Zs, [
3796
- r[12] ||= s("i", { class: "fa fa-magnifying-glass" }, null, -1),
3797
- s("h3", null, w(e.translations.no_items), 1),
3798
- s("p", null, w(e.translations.try_changing_items), 1),
3799
- s("a", {
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", {
3800
4285
  class: "btn btn-primary",
3801
4286
  href: "#",
3802
4287
  role: "button",
3803
- onClick: F(B, ["prevent"])
3804
- }, [s("i", { class: m(["fa", z.value ? "fa-spinner fa-spin" : "fa-eye"]) }, null, 2), c("\xA0 " + w(e.translations.rescan_btn), 1)])
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)])
3805
4290
  ]))
3806
4291
  ], 512)])
3807
4292
  ])]));
3808
4293
  }
3809
- }, $s = {
4294
+ }, fc = {
3810
4295
  url: "",
3811
4296
  collection: "",
3812
4297
  maxNumberOfFiles: 1,
@@ -3814,16 +4299,16 @@ var Lt = { class: "ck-editor-wrapper" }, Rt = {
3814
4299
  acceptedFileTypes: void 0,
3815
4300
  thumbnailWidth: 200,
3816
4301
  uploadedMedia: []
3817
- }, ec = {
4302
+ }, pc = {
3818
4303
  type: Object,
3819
- default: () => ({ ...$s })
4304
+ default: () => ({ ...fc })
3820
4305
  };
3821
4306
  //#endregion
3822
4307
  //#region src/ui/index.js
3823
- function tc() {
3824
- document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", nc) : nc();
4308
+ function mc() {
4309
+ document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", hc) : hc();
3825
4310
  }
3826
- function nc() {
4311
+ function hc() {
3827
4312
  let e = document.getElementById("sidebar"), t = null;
3828
4313
  document.querySelectorAll(".btn-spinner").forEach((e) => {
3829
4314
  e.addEventListener("click", (t) => {
@@ -3863,4 +4348,4 @@ function nc() {
3863
4348
  }), e && window.innerWidth < 992 && e.classList.add("hide");
3864
4349
  }
3865
4350
  //#endregion
3866
- export { zo as ActivationError, Mo as ActivationForm, On as BulkCheckboxHeader, jn as BulkCheckboxRow, In as BulkOperationsBar, Rt as CkeditorEditor, Un as ConfirmModal, ur as DeleteButton, cr as EditButton, En as EmptyState, Ia as ForgotPasswordForm, Nr as FormCheckbox, Br as FormDatePicker, br as FormEmail, yr as FormInput, ni as FormLocalizedInput, si as FormLocalizedWysiwyg, _i as FormLocalizedWysiwygSimple, Xr as FormMultiSelect, Ni as FormPasswordConfirm, Si as FormSelect, Fi as FormSubmit, Er as FormTextarea, Gr as FormWysiwyg, fi as FormWysiwygSimple, or as ListingHeader, Wi as LocalizationBar, ha as LoginForm, Dt as MediaUpload, _n as Pagination, Cn as PerPage, rr as PublishedAtColumn, po as ResetPasswordForm, xn as Search, Q as Sortable, Z as TiptapEditor, pr as ToggleSwitch, Qs as TranslationListing, nn as UserDetailTooltip, z as dayjs, W as formatDate, G as formatDatetime, K as formatTime, J as getDateFnsLocale, Ze as initDateFnsLocale, tc as initUI, $s as mediaCollectionDefaults, ec as mediaCollectionProp, U as notifyError, H as notifySuccess, q as nowInTimezone, rt as useAdmin, Y as useBaseAuth, $e as useBaseForm, tt as useBaseListing, at as useResponsiveColumns };
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 };