@dejwcake/craftable 2.0.1 → 2.1.0

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