@dynamicforms/vuetify-inputs 0.12.1 → 0.14.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.
@@ -1,89 +1,93 @@
1
- import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createSlots as o, createTextVNode as s, createVNode as c, defineComponent as l, guardReactiveProps as u, inject as d, isRef as f, mergeDefaults as p, mergeProps as m, nextTick as h, normalizeClass as g, normalizeProps as _, normalizeStyle as v, onBeforeUnmount as y, onMounted as b, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveComponent as T, resolveDynamicComponent as E, shallowRef as D, toDisplayString as O, toRaw as k, toRefs as A, toValue as ee, unref as j, useCssVars as M, useId as te, watch as N, watchEffect as P, withCtx as F, withKeys as I, withModifiers as L } from "vue";
2
- import { CachedIcon as R } from "vue-cached-icon";
3
- import z, { Action as B, ExecuteAction as ne, MdString as re, MessagesWidget as V, ValidationErrorRenderContent as ie } from "@dynamicforms/vue-forms";
1
+ import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createSlots as o, createTextVNode as s, createVNode as c, defineComponent as l, getCurrentInstance as u, guardReactiveProps as d, h as f, inject as p, isRef as m, mergeDefaults as h, mergeProps as g, nextTick as _, normalizeClass as v, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as x, onMounted as S, openBlock as C, ref as w, renderList as T, renderSlot as E, resolveComponent as D, resolveDynamicComponent as O, shallowRef as k, toDisplayString as A, toRaw as j, toRefs as M, toValue as N, unref as P, useCssVars as ee, useId as F, watch as I, watchEffect as L, withCtx as R, withKeys as z, withModifiers as B } from "vue";
2
+ import { CachedIcon as V } from "vue-cached-icon";
4
3
  import H from "vue-markdown-render";
5
- import { castArray as U, clone as ae, first as oe, isArray as W, isBoolean as G, isEmpty as se, isEqual as ce, isNaN as le, isObjectLike as ue, isPlainObject as de, isString as K, toNumber as q, unionBy as fe } from "lodash-es";
6
- import { createTranslatable as pe } from "@dynamicforms/translatable";
7
- import { useDisplay as me } from "vuetify";
8
- import { format as he, parse as ge, parseISO as _e } from "date-fns";
9
- import ve from "@tiptap/extension-image";
10
- import ye from "@tiptap/extension-placeholder";
11
- import { Table as be } from "@tiptap/extension-table";
12
- import xe from "@tiptap/extension-table-cell";
13
- import Se from "@tiptap/extension-table-header";
14
- import Ce from "@tiptap/extension-table-row";
15
- import we from "@tiptap/extension-text-align";
16
- import { NodeSelection as Te } from "@tiptap/pm/state";
17
- import Ee from "@tiptap/starter-kit";
18
- import { EditorContent as De, useEditor as Oe } from "@tiptap/vue-3";
19
- import { BubbleMenu as ke } from "@tiptap/vue-3/menus";
20
- import { Extension as Ae, Mark as je, Node as Me, mergeAttributes as Ne } from "@tiptap/core";
21
- import { Fragment as Pe, Slice as Fe } from "@tiptap/pm/model";
22
- import Ie from "@tiptap/extension-link";
23
- import { VAutocomplete as Le } from "vuetify/components/VAutocomplete";
24
- import { VBtn as Re } from "vuetify/components/VBtn";
25
- import { VCheckbox as ze } from "vuetify/components/VCheckbox";
26
- import { VChip as Be } from "vuetify/components/VChip";
27
- import { VCombobox as Ve } from "vuetify/components/VCombobox";
28
- import { VColorPicker as He } from "vuetify/components/VColorPicker";
29
- import { VConfirmEdit as Ue } from "vuetify/components/VConfirmEdit";
30
- import { VDatePicker as We } from "vuetify/components/VDatePicker";
31
- import { VField as Ge } from "vuetify/components/VField";
32
- import { VFileInput as Ke } from "vuetify/components/VFileInput";
33
- import { VCol as qe, VRow as Je } from "vuetify/components/VGrid";
34
- import { VIcon as Ye } from "vuetify/components/VIcon";
35
- import { VImg as Xe } from "vuetify/components/VImg";
36
- import { VInput as Ze } from "vuetify/components/VInput";
37
- import { VListItem as Qe } from "vuetify/components/VList";
38
- import { VMenu as $e } from "vuetify/components/VMenu";
39
- import { VNumberInput as et } from "vuetify/components/VNumberInput";
40
- import { VProgressLinear as tt } from "vuetify/components/VProgressLinear";
41
- import { VSelect as nt } from "vuetify/components/VSelect";
42
- import { VSwitch as rt } from "vuetify/components/VSwitch";
43
- import { VTextarea as it } from "vuetify/components/VTextarea";
44
- import { VTextField as at } from "vuetify/components/VTextField";
45
- import { VTimePicker as ot } from "vuetify/components/VTimePicker";
4
+ import U, { Action as te, ExecuteAction as W, ValidationError as G } from "@dynamicforms/vue-forms";
5
+ import { castArray as ne, clone as re, first as ie, isArray as ae, isBoolean as K, isEmpty as q, isEqual as oe, isNaN as se, isObjectLike as ce, isPlainObject as le, isString as J, toNumber as Y, unionBy as ue } from "lodash-es";
6
+ import { useDisplay as de } from "vuetify";
7
+ import { createTranslatable as fe } from "@dynamicforms/translatable";
8
+ import { format as pe, parse as me, parseISO as he } from "date-fns";
9
+ import ge from "@tiptap/extension-image";
10
+ import _e from "@tiptap/extension-placeholder";
11
+ import { Table as ve } from "@tiptap/extension-table";
12
+ import ye from "@tiptap/extension-table-cell";
13
+ import be from "@tiptap/extension-table-header";
14
+ import xe from "@tiptap/extension-table-row";
15
+ import Se from "@tiptap/extension-text-align";
16
+ import { NodeSelection as Ce } from "@tiptap/pm/state";
17
+ import we from "@tiptap/starter-kit";
18
+ import { EditorContent as Te, useEditor as Ee } from "@tiptap/vue-3";
19
+ import { BubbleMenu as De } from "@tiptap/vue-3/menus";
20
+ import { Extension as Oe, Mark as ke, Node as Ae, mergeAttributes as je } from "@tiptap/core";
21
+ import { Fragment as Me, Slice as Ne } from "@tiptap/pm/model";
22
+ import Pe from "@tiptap/extension-link";
23
+ import { VAutocomplete as Fe } from "vuetify/components/VAutocomplete";
24
+ import { VBtn as Ie } from "vuetify/components/VBtn";
25
+ import { VBtnGroup as Le } from "vuetify/components/VBtnGroup";
26
+ import { VBtnToggle as Re } from "vuetify/components/VBtnToggle";
27
+ import { VCard as ze, VCardActions as Be } from "vuetify/components/VCard";
28
+ import { VCheckbox as Ve } from "vuetify/components/VCheckbox";
29
+ import { VChip as He } from "vuetify/components/VChip";
30
+ import { VCombobox as Ue } from "vuetify/components/VCombobox";
31
+ import { VColorPicker as We } from "vuetify/components/VColorPicker";
32
+ import { VConfirmEdit as Ge } from "vuetify/components/VConfirmEdit";
33
+ import { VDatePicker as Ke } from "vuetify/components/VDatePicker";
34
+ import { VDivider as qe } from "vuetify/components/VDivider";
35
+ import { VField as Je } from "vuetify/components/VField";
36
+ import { VFileInput as Ye } from "vuetify/components/VFileInput";
37
+ import { VCol as Xe, VRow as Ze } from "vuetify/components/VGrid";
38
+ import { VIcon as Qe } from "vuetify/components/VIcon";
39
+ import { VImg as $e } from "vuetify/components/VImg";
40
+ import { VInput as et } from "vuetify/components/VInput";
41
+ import { VList as tt, VListItem as nt, VListItemTitle as rt } from "vuetify/components/VList";
42
+ import { VMenu as it } from "vuetify/components/VMenu";
43
+ import { VNumberInput as at } from "vuetify/components/VNumberInput";
44
+ import { VProgressLinear as ot } from "vuetify/components/VProgressLinear";
45
+ import { VSelect as st } from "vuetify/components/VSelect";
46
+ import { VSwitch as ct } from "vuetify/components/VSwitch";
47
+ import { VTextarea as lt } from "vuetify/components/VTextarea";
48
+ import { VTextField as ut } from "vuetify/components/VTextField";
49
+ import { VTimePicker as dt } from "vuetify/components/VTimePicker";
46
50
  //#region \0rolldown/runtime.js
47
- var st = Object.defineProperty, ct = (e, t) => {
51
+ var ft = Object.defineProperty, pt = (e, t) => {
48
52
  let n = {};
49
- for (var r in e) st(n, r, {
53
+ for (var r in e) ft(n, r, {
50
54
  get: e[r],
51
55
  enumerable: !0
52
56
  });
53
- return t || st(n, Symbol.toStringTag, { value: "Module" }), n;
57
+ return t || ft(n, Symbol.toStringTag, { value: "Module" }), n;
54
58
  };
55
59
  //#endregion
56
60
  //#region \0@oxc-project+runtime@0.146.0/helpers/esm/typeof.js
57
- function lt(e) {
61
+ function mt(e) {
58
62
  "@babel/helpers - typeof";
59
- return lt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
63
+ return mt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
60
64
  return typeof e;
61
65
  } : function(e) {
62
66
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
63
- }, lt(e);
67
+ }, mt(e);
64
68
  }
65
69
  //#endregion
66
70
  //#region \0@oxc-project+runtime@0.146.0/helpers/esm/toPrimitive.js
67
- function ut(e, t) {
68
- if (lt(e) != "object" || !e) return e;
71
+ function ht(e, t) {
72
+ if (mt(e) != "object" || !e) return e;
69
73
  var n = e[Symbol.toPrimitive];
70
74
  if (n !== void 0) {
71
75
  var r = n.call(e, t || "default");
72
- if (lt(r) != "object") return r;
76
+ if (mt(r) != "object") return r;
73
77
  throw TypeError("@@toPrimitive must return a primitive value.");
74
78
  }
75
79
  return (t === "string" ? String : Number)(e);
76
80
  }
77
81
  //#endregion
78
82
  //#region \0@oxc-project+runtime@0.146.0/helpers/esm/toPropertyKey.js
79
- function dt(e) {
80
- var t = ut(e, "string");
81
- return lt(t) == "symbol" ? t : t + "";
83
+ function gt(e) {
84
+ var t = ht(e, "string");
85
+ return mt(t) == "symbol" ? t : t + "";
82
86
  }
83
87
  //#endregion
84
88
  //#region \0@oxc-project+runtime@0.146.0/helpers/esm/defineProperty.js
85
- function ft(e, t, n) {
86
- return (t = dt(t)) in e ? Object.defineProperty(e, t, {
89
+ function X(e, t, n) {
90
+ return (t = gt(t)) in e ? Object.defineProperty(e, t, {
87
91
  value: n,
88
92
  enumerable: !0,
89
93
  configurable: !0,
@@ -92,7 +96,7 @@ function ft(e, t, n) {
92
96
  }
93
97
  //#endregion
94
98
  //#region \0@oxc-project+runtime@0.146.0/helpers/esm/objectSpread2.js
95
- function pt(e, t) {
99
+ function _t(e, t) {
96
100
  var n = Object.keys(e);
97
101
  if (Object.getOwnPropertySymbols) {
98
102
  var r = Object.getOwnPropertySymbols(e);
@@ -102,12 +106,12 @@ function pt(e, t) {
102
106
  }
103
107
  return n;
104
108
  }
105
- function J(e) {
109
+ function Z(e) {
106
110
  for (var t = 1; t < arguments.length; t++) {
107
111
  var n = arguments[t] == null ? {} : arguments[t];
108
- t % 2 ? pt(Object(n), !0).forEach(function(t) {
109
- ft(e, t, n[t]);
110
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : pt(Object(n)).forEach(function(t) {
112
+ t % 2 ? _t(Object(n), !0).forEach(function(t) {
113
+ X(e, t, n[t]);
114
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : _t(Object(n)).forEach(function(t) {
111
115
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
112
116
  });
113
117
  }
@@ -115,10 +119,10 @@ function J(e) {
115
119
  }
116
120
  //#endregion
117
121
  //#region node_modules/date-fns/locale/sl/_lib/formatDistance.js
118
- function mt(e) {
122
+ function vt(e) {
119
123
  return e.one !== void 0;
120
124
  }
121
- var ht = {
125
+ var yt = {
122
126
  lessThanXSeconds: {
123
127
  present: {
124
128
  one: "manj kot {{count}} sekunda",
@@ -393,7 +397,7 @@ var ht = {
393
397
  }
394
398
  }
395
399
  };
396
- function gt(e) {
400
+ function bt(e) {
397
401
  switch (e % 100) {
398
402
  case 1: return "one";
399
403
  case 2: return "two";
@@ -402,27 +406,27 @@ function gt(e) {
402
406
  default: return "other";
403
407
  }
404
408
  }
405
- var _t = (e, t, n) => {
409
+ var xt = (e, t, n) => {
406
410
  let r = "", i = "present";
407
411
  n != null && n.addSuffix && (n.comparison && n.comparison > 0 ? (i = "future", r = "čez ") : (i = "past", r = "pred "));
408
- let a = ht[e];
412
+ let a = yt[e];
409
413
  if (typeof a == "string") r += a;
410
414
  else {
411
- let e = gt(t);
412
- mt(a) ? r += a[e].replace("{{count}}", String(t)) : r += a[i][e].replace("{{count}}", String(t));
415
+ let e = bt(t);
416
+ vt(a) ? r += a[e].replace("{{count}}", String(t)) : r += a[i][e].replace("{{count}}", String(t));
413
417
  }
414
418
  return r;
415
419
  };
416
420
  //#endregion
417
421
  //#region node_modules/date-fns/locale/_lib/buildFormatLongFn.js
418
- function vt(e) {
422
+ function St(e) {
419
423
  return (t = {}) => {
420
424
  let n = t.width ? String(t.width) : e.defaultWidth;
421
425
  return e.formats[n] || e.formats[e.defaultWidth];
422
426
  };
423
427
  }
424
- var yt = {
425
- date: vt({
428
+ var Ct = {
429
+ date: St({
426
430
  formats: {
427
431
  full: "EEEE, dd. MMMM y",
428
432
  long: "dd. MMMM y",
@@ -431,7 +435,7 @@ var yt = {
431
435
  },
432
436
  defaultWidth: "full"
433
437
  }),
434
- time: vt({
438
+ time: St({
435
439
  formats: {
436
440
  full: "HH:mm:ss zzzz",
437
441
  long: "HH:mm:ss z",
@@ -440,7 +444,7 @@ var yt = {
440
444
  },
441
445
  defaultWidth: "full"
442
446
  }),
443
- dateTime: vt({
447
+ dateTime: St({
444
448
  formats: {
445
449
  full: "{{date}} {{time}}",
446
450
  long: "{{date}} {{time}}",
@@ -449,7 +453,7 @@ var yt = {
449
453
  },
450
454
  defaultWidth: "full"
451
455
  })
452
- }, bt = {
456
+ }, wt = {
453
457
  lastWeek: (e) => {
454
458
  switch (e.getDay()) {
455
459
  case 0: return "'prejšnjo nedeljo ob' p";
@@ -470,13 +474,13 @@ var yt = {
470
474
  }
471
475
  },
472
476
  other: "P"
473
- }, xt = (e, t, n, r) => {
474
- let i = bt[e];
477
+ }, Tt = (e, t, n, r) => {
478
+ let i = wt[e];
475
479
  return typeof i == "function" ? i(t) : i;
476
480
  };
477
481
  //#endregion
478
482
  //#region node_modules/date-fns/locale/_lib/buildLocalizeFn.js
479
- function St(e) {
483
+ function Et(e) {
480
484
  return (t, n) => {
481
485
  let r = n != null && n.context ? String(n.context) : "standalone", i;
482
486
  if (r === "formatting" && e.formattingValues) {
@@ -490,9 +494,9 @@ function St(e) {
490
494
  return i[a];
491
495
  };
492
496
  }
493
- var Ct = {
497
+ var Dt = {
494
498
  ordinalNumber: (e, t) => Number(e) + ".",
495
- era: St({
499
+ era: Et({
496
500
  values: {
497
501
  narrow: ["pr. n. št.", "po n. št."],
498
502
  abbreviated: ["pr. n. št.", "po n. št."],
@@ -500,7 +504,7 @@ var Ct = {
500
504
  },
501
505
  defaultWidth: "wide"
502
506
  }),
503
- quarter: St({
507
+ quarter: Et({
504
508
  values: {
505
509
  narrow: [
506
510
  "1",
@@ -524,7 +528,7 @@ var Ct = {
524
528
  defaultWidth: "wide",
525
529
  argumentCallback: (e) => e - 1
526
530
  }),
527
- month: St({
531
+ month: Et({
528
532
  values: {
529
533
  narrow: [
530
534
  "j",
@@ -571,7 +575,7 @@ var Ct = {
571
575
  },
572
576
  defaultWidth: "wide"
573
577
  }),
574
- day: St({
578
+ day: Et({
575
579
  values: {
576
580
  narrow: [
577
581
  "n",
@@ -612,7 +616,7 @@ var Ct = {
612
616
  },
613
617
  defaultWidth: "wide"
614
618
  }),
615
- dayPeriod: St({
619
+ dayPeriod: Et({
616
620
  values: {
617
621
  narrow: {
618
622
  am: "d",
@@ -683,11 +687,11 @@ var Ct = {
683
687
  };
684
688
  //#endregion
685
689
  //#region node_modules/date-fns/locale/_lib/buildMatchFn.js
686
- function wt(e) {
690
+ function Ot(e) {
687
691
  return (t, n = {}) => {
688
692
  let r = n.width, i = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], a = t.match(i);
689
693
  if (!a) return null;
690
- let o = a[0], s = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(s) ? Et(s, (e) => e.test(o)) : Tt(s, (e) => e.test(o)), l;
694
+ let o = a[0], s = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(s) ? At(s, (e) => e.test(o)) : kt(s, (e) => e.test(o)), l;
691
695
  l = e.valueCallback ? e.valueCallback(c) : c, l = n.valueCallback ? n.valueCallback(l) : l;
692
696
  let u = t.slice(o.length);
693
697
  return {
@@ -696,15 +700,15 @@ function wt(e) {
696
700
  };
697
701
  };
698
702
  }
699
- function Tt(e, t) {
703
+ function kt(e, t) {
700
704
  for (let n in e) if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n])) return n;
701
705
  }
702
- function Et(e, t) {
706
+ function At(e, t) {
703
707
  for (let n = 0; n < e.length; n++) if (t(e[n])) return n;
704
708
  }
705
709
  //#endregion
706
710
  //#region node_modules/date-fns/locale/_lib/buildMatchPatternFn.js
707
- function Dt(e) {
711
+ function jt(e) {
708
712
  return (t, n = {}) => {
709
713
  let r = t.match(e.matchPattern);
710
714
  if (!r) return null;
@@ -721,19 +725,19 @@ function Dt(e) {
721
725
  }
722
726
  //#endregion
723
727
  //#region node_modules/date-fns/locale/sl.js
724
- var Ot = {
728
+ var Mt = {
725
729
  code: "sl",
726
- formatDistance: _t,
727
- formatLong: yt,
728
- formatRelative: xt,
729
- localize: Ct,
730
+ formatDistance: xt,
731
+ formatLong: Ct,
732
+ formatRelative: Tt,
733
+ localize: Dt,
730
734
  match: {
731
- ordinalNumber: Dt({
735
+ ordinalNumber: jt({
732
736
  matchPattern: /^(\d+)\./i,
733
737
  parsePattern: /\d+/i,
734
738
  valueCallback: (e) => parseInt(e, 10)
735
739
  }),
736
- era: wt({
740
+ era: Ot({
737
741
  matchPatterns: {
738
742
  abbreviated: /^(pr\. n\. št\.|po n\. št\.)/i,
739
743
  wide: /^(pred Kristusom|pred na[sš]im [sš]tetjem|po Kristusu|po na[sš]em [sš]tetju|na[sš]ega [sš]tetja)/i
@@ -742,7 +746,7 @@ var Ot = {
742
746
  parsePatterns: { any: [/^pr/i, /^(po|na[sš]em)/i] },
743
747
  defaultParseWidth: "any"
744
748
  }),
745
- quarter: wt({
749
+ quarter: Ot({
746
750
  matchPatterns: {
747
751
  narrow: /^[1234]/i,
748
752
  abbreviated: /^[1234]\.\s?[čc]et\.?/i,
@@ -758,7 +762,7 @@ var Ot = {
758
762
  defaultParseWidth: "any",
759
763
  valueCallback: (e) => e + 1
760
764
  }),
761
- month: wt({
765
+ month: Ot({
762
766
  matchPatterns: {
763
767
  narrow: /^[jfmasond]/i,
764
768
  abbreviated: /^(jan\.|feb\.|mar\.|apr\.|maj|jun\.|jul\.|avg\.|sep\.|okt\.|nov\.|dec\.)/i,
@@ -811,7 +815,7 @@ var Ot = {
811
815
  },
812
816
  defaultParseWidth: "wide"
813
817
  }),
814
- day: wt({
818
+ day: Ot({
815
819
  matchPatterns: {
816
820
  narrow: /^[nptsčc]/i,
817
821
  short: /^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,
@@ -841,7 +845,7 @@ var Ot = {
841
845
  },
842
846
  defaultParseWidth: "any"
843
847
  }),
844
- dayPeriod: wt({
848
+ dayPeriod: Ot({
845
849
  matchPatterns: {
846
850
  narrow: /^(d|po?|z?v|n|z?j|24\.00|12\.00)/i,
847
851
  any: /^(dop\.|pop\.|o?poln(\.|o[cč]i?)|o?pold(\.|ne)|z?ve[cč](\.|er)|(po)?no[cč]i?|popold(ne|an)|jut(\.|ro)|zjut(\.|raj))/i
@@ -876,31 +880,211 @@ var Ot = {
876
880
  weekStartsOn: 1,
877
881
  firstWeekContainsDate: 1
878
882
  }
879
- }, kt = {
880
- dateTimeLocale: S(Ot),
883
+ }, Nt = {
884
+ dateTimeLocale: w(Mt),
881
885
  setDateTimeLocale(e) {
882
- f(e) ? this.dateTimeLocale = e : this.dateTimeLocale.value = e;
886
+ m(e) ? this.dateTimeLocale = e : this.dateTimeLocale.value = e;
883
887
  }
884
- }, At = class extends Error {
888
+ }, Pt = class extends Error {
885
889
  constructor(e) {
886
- super(e), ft(this, "errorText", void 0), this.errorText = e;
890
+ super(e), X(this, "errorText", void 0), this.errorText = e;
891
+ }
892
+ }, Ft = class extends String {
893
+ constructor(e, t, n) {
894
+ super(e), X(this, "plugins", void 0), X(this, "options", void 0), this.plugins = n, this.options = t;
895
+ }
896
+ }, It = class extends String {};
897
+ function Lt(e) {
898
+ let t = P(e);
899
+ return typeof t == "object" && !!t && "componentName" in t;
900
+ }
901
+ function Rt(e) {
902
+ return typeof e == "string" || e instanceof String || Lt(e);
903
+ }
904
+ var zt = RegExp(`</?(?:${(/* @__PURE__ */ "address.article.aside.blockquote.br.dd.div.dl.dt.figcaption.figure.footer.h[1-6].header.hr.li.main.nav.ol.p.pre.section.table.td.th.tr.ul".split(".")).join("|")})\\b[^>]*>`, "gi"), Bt = "", Vt = {
905
+ "&lt;": "<",
906
+ "&gt;": ">",
907
+ "&quot;": "\"",
908
+ "&#39;": "'",
909
+ "&nbsp;": Bt,
910
+ "&amp;": "&"
911
+ };
912
+ function Ht(e) {
913
+ if (e instanceof It) {
914
+ let t = e.toString().replace(zt, " ").replace(/<[^>]*>/g, "").replace(/\s+/g, " ");
915
+ return Object.entries(Vt).reduce((e, [t, n]) => e.replaceAll(t, n), t);
916
+ }
917
+ return Lt(e) ? Wt(e).map(Ht).join("") : e.toString();
918
+ }
919
+ function Ut(e) {
920
+ return !(e instanceof It) && !Lt(e) ? e.toString() : Ht(e).replace(/\s+/g, " ").trim().replaceAll(Bt, " ");
921
+ }
922
+ function Wt(e) {
923
+ let { children: t } = e;
924
+ return t === void 0 ? [] : Array.isArray(t) ? t : [t];
925
+ }
926
+ function Gt(e) {
927
+ return typeof P(e) == "function";
928
+ }
929
+ var Kt = class {
930
+ constructor(e = "", n = "") {
931
+ X(this, "content", void 0), X(this, "classes", void 0), X(this, "kindRef", void 0), this.content = e, this.classes = n, this.kindRef = t(() => {
932
+ let e = this.resolvedText;
933
+ return e instanceof Ft ? "md" : e instanceof It ? "html" : Lt(e) ? "component" : "string";
934
+ });
935
+ }
936
+ get resolvedText() {
937
+ let e = P(this.content);
938
+ return Gt(e) ? e() : e;
939
+ }
940
+ get kind() {
941
+ return P(this.kindRef);
942
+ }
943
+ get componentName() {
944
+ switch (this.kind) {
945
+ case "md": return "vue-markdown";
946
+ case "html": return "html";
947
+ case "component": return this.resolvedText.componentName;
948
+ default: return "template";
949
+ }
950
+ }
951
+ get componentBindings() {
952
+ switch (this.kind) {
953
+ case "md": {
954
+ let e = this.resolvedText;
955
+ return {
956
+ source: e.toString(),
957
+ options: e.options,
958
+ plugins: e.plugins
959
+ };
960
+ }
961
+ case "component": {
962
+ let e = Z({}, this.resolvedText.componentProps);
963
+ return delete e.innerHTML, e;
964
+ }
965
+ default: return {};
966
+ }
967
+ }
968
+ get componentChildren() {
969
+ return this.kind === "component" ? Wt(this.resolvedText) : [];
970
+ }
971
+ get componentBody() {
972
+ switch (this.kind) {
973
+ case "md":
974
+ case "component": return "";
975
+ default: return this.resolvedText.toString();
976
+ }
977
+ }
978
+ get extraClasses() {
979
+ return this.classes;
980
+ }
981
+ };
982
+ //#endregion
983
+ //#region src/helpers/error-text.ts
984
+ function qt(e) {
985
+ var t;
986
+ return Rt(e) ? {
987
+ code: "",
988
+ params: {},
989
+ detail: Ut(e),
990
+ origin: "application"
991
+ } : {
992
+ code: typeof e.code == "string" ? e.code : "",
993
+ params: (t = e.params) == null ? {} : t,
994
+ detail: typeof e.detail == "string" ? e.detail : "",
995
+ origin: typeof e.origin == "string" && e.origin ? e.origin : "application"
996
+ };
997
+ }
998
+ function Jt(e, t) {
999
+ var n, r;
1000
+ if (Rt(e)) return e;
1001
+ let i = qt(e);
1002
+ return i.code ? (n = (r = t.errorText) == null ? void 0 : r.call(t, i)) == null ? i.detail : n : i.detail;
1003
+ }
1004
+ //#endregion
1005
+ //#region src/helpers/settings.ts
1006
+ var Yt = Symbol("vuetifyInputsSettingsKey"), Xt = /* @__PURE__ */ l({
1007
+ __name: "messages-widget",
1008
+ props: {
1009
+ message: {},
1010
+ classes: {}
1011
+ },
1012
+ setup(e) {
1013
+ let t = e, r = p(Yt, {}), i = /* @__PURE__ */ new Set(/* @__PURE__ */ "div.span.p.h1.h2.h3.h4.h5.h6.section.article.aside.nav.header.footer.main.figure.figcaption.blockquote.pre.code.em.strong.small.mark.del.ins.sub.sup.i.b.u.s.a.img.button.input.textarea.select.option.label.form.table.tr.td.th.thead.tbody.tfoot.ul.ol.li.dl.dt.dd".split("."));
1014
+ function a(e) {
1015
+ return e instanceof Kt ? e : new Kt(Jt(e, r));
1016
+ }
1017
+ function o(e, t, n) {
1018
+ let r = () => n.map(s);
1019
+ return i.has(e.toLowerCase()) ? f(e, t, r()) : f(D(e), t, n.length ? { default: r } : void 0);
1020
+ }
1021
+ function s(e) {
1022
+ let t = new Kt(e);
1023
+ switch (t.componentName) {
1024
+ case "template": return t.componentBody;
1025
+ case "html": return f("span", { innerHTML: t.componentBody });
1026
+ case "vue-markdown": {
1027
+ let { source: e, options: n, plugins: r } = t.componentBindings;
1028
+ return f(H, {
1029
+ class: "df-messages-widget-markdown",
1030
+ source: e,
1031
+ options: n,
1032
+ plugins: r
1033
+ });
1034
+ }
1035
+ default: return o(t.componentName, t.componentBindings, t.componentChildren);
1036
+ }
1037
+ }
1038
+ let c = () => typeof t.message == "string" ? f("span", { class: t.classes }, t.message) : t.message.map((e) => {
1039
+ let n = a(e), r = [t.classes, n.extraClasses];
1040
+ switch (n.componentName) {
1041
+ case "template": return f("div", { class: r }, n.componentBody);
1042
+ case "html": return f("div", {
1043
+ class: r,
1044
+ innerHTML: n.componentBody
1045
+ });
1046
+ case "vue-markdown": {
1047
+ let { source: e, options: t, plugins: i } = n.componentBindings;
1048
+ return f(H, {
1049
+ class: [...r, "df-messages-widget-markdown"],
1050
+ source: e,
1051
+ options: t,
1052
+ plugins: i
1053
+ });
1054
+ }
1055
+ default: return o(n.componentName, Z(Z({}, n.componentBindings), {}, { class: [r, n.componentBindings.class] }), n.componentChildren);
1056
+ }
1057
+ });
1058
+ return (e, t) => (C(), n(c));
887
1059
  }
888
- }, Y = /* @__PURE__ */ l({
1060
+ }), Q = /* @__PURE__ */ l({
889
1061
  __name: "df-input-hint",
890
1062
  props: {
891
1063
  errors: { default: "" },
892
- message: { default: "" },
1064
+ message: {
1065
+ type: [
1066
+ String,
1067
+ Object,
1068
+ Function,
1069
+ Array
1070
+ ],
1071
+ default: ""
1072
+ },
893
1073
  errorClasses: { default: "text-error" },
894
1074
  messageClasses: { default: "" }
895
1075
  },
896
1076
  setup(e) {
897
- let r = e, i = t(() => r.errors ? typeof r.errors == "string" ? r.errors.trim().length > 0 : r.errors.length > 0 : !1), a = t(() => i.value ? r.errors : r.message), o = t(() => i.value ? r.errorClasses : r.messageClasses);
898
- return (e, t) => (x(), n(j(V), {
1077
+ let r = e, i = t(() => r.errors ? typeof r.errors == "string" ? r.errors.trim().length > 0 : r.errors.length > 0 : !1), a = t(() => {
1078
+ if (i.value) return r.errors;
1079
+ let e = r.message;
1080
+ return typeof e == "string" || Array.isArray(e) ? e : [new Kt(e)];
1081
+ }), o = t(() => i.value ? r.errorClasses : r.messageClasses);
1082
+ return (e, t) => (C(), n(Xt, {
899
1083
  message: a.value,
900
1084
  classes: o.value
901
1085
  }, null, 8, ["message", "classes"]));
902
1086
  }
903
- }), X = /* @__PURE__ */ l({
1087
+ }), $ = /* @__PURE__ */ l({
904
1088
  __name: "df-label",
905
1089
  props: {
906
1090
  data: {},
@@ -908,155 +1092,164 @@ var Ot = {
908
1092
  allowWrap: { type: Boolean }
909
1093
  },
910
1094
  setup(a) {
911
- let o = a, c = t(() => o.data ? o.data.label : o.label.text);
1095
+ let o = a, c = t(() => {
1096
+ var e;
1097
+ return o.label.text || ((e = o.data) == null ? void 0 : e.label) || "";
1098
+ }), l = t(() => new Kt(c.value));
912
1099
  return (t, o) => {
913
- let l = T("v-img");
914
- return x(), i("div", { class: g(["df-label", { "allow-wrap": a.allowWrap }]) }, [a.label.icon ? (x(), i(e, { key: 0 }, [a.label.iconComponent === "v-icon" ? (x(), n(j(R), {
1100
+ let u = D("v-img");
1101
+ return C(), i("div", { class: v(["df-label", { "allow-wrap": a.allowWrap }]) }, [a.label.icon ? (C(), i(e, { key: 0 }, [a.label.iconComponent === "v-icon" ? (C(), n(P(V), {
915
1102
  key: 0,
916
1103
  name: a.label.icon,
917
1104
  size: "1.25em"
918
- }, null, 8, ["name"])) : a.label.iconComponent === "v-img" ? (x(), n(l, {
1105
+ }, null, 8, ["name"])) : a.label.iconComponent === "v-img" ? (C(), n(u, {
919
1106
  key: 1,
920
1107
  class: "icon",
921
1108
  src: a.label.icon
922
- }, null, 8, ["src"])) : (x(), n(E(a.label.iconComponent), {
1109
+ }, null, 8, ["src"])) : (C(), n(O(a.label.iconComponent), {
923
1110
  key: 2,
924
1111
  src: a.label.icon
925
- }, null, 8, ["src"]))], 64)) : r("", !0), c.value instanceof j(re) ? (x(), n(j(H), {
926
- key: 1,
927
- class: "markdown",
928
- source: c.value.toString(),
929
- options: c.value.options,
930
- plugins: c.value.plugins
931
- }, null, 8, [
932
- "source",
933
- "options",
934
- "plugins"
935
- ])) : (x(), i(e, { key: 2 }, [s(O(c.value), 1)], 64))], 2);
1112
+ }, null, 8, ["src"]))], 64)) : r("", !0), typeof c.value == "string" ? (C(), i(e, { key: 1 }, [s(A(c.value), 1)], 64)) : (C(), n(Xt, {
1113
+ key: 2,
1114
+ message: [l.value]
1115
+ }, null, 8, ["message"]))], 2);
936
1116
  };
937
1117
  }
938
- }), jt = Symbol("vuetifyInputsSettingsKey");
1118
+ });
939
1119
  //#endregion
940
1120
  //#region src/helpers/shown-errors.ts
941
- function Mt(e, t, n, r) {
1121
+ function Zt(e, t, n, r) {
942
1122
  let i = !t || t.effectiveAccess !== "disabled";
943
1123
  return e.filter((e) => {
944
1124
  let a = i && (e.origin === "server" || n);
945
1125
  return r.shownErrors ? r.shownErrors(e, t, a) : a;
946
1126
  });
947
1127
  }
948
- function Nt(e) {
949
- let n = d(jt, {});
1128
+ function Qt(e) {
1129
+ let n = p(Yt, {});
950
1130
  return t(() => {
951
- let t = ee(e);
952
- return t ? Mt(t.errors, t, t.touched, n) : [];
1131
+ let t = N(e);
1132
+ return t ? Zt(t.errors, t, t.touched, n) : [];
953
1133
  });
954
1134
  }
955
1135
  //#endregion
956
1136
  //#region src/helpers/input-base.ts
957
- var Pt = class {
1137
+ var $t = class {
958
1138
  constructor(e, t, n = "v-icon") {
959
- ft(this, "text", void 0), ft(this, "icon", void 0), ft(this, "iconComponent", void 0), this.text = e, this.icon = t, this.iconComponent = n;
1139
+ X(this, "text", void 0), X(this, "icon", void 0), X(this, "iconComponent", void 0), this.text = e, this.icon = t, this.iconComponent = n;
960
1140
  }
961
- }, Z = {
1141
+ }, en = {
962
1142
  enabled: void 0,
963
1143
  clearable: !0
964
1144
  };
965
- function Q(e, n) {
966
- let r = d(jt, {}), i = d("field-density", null), a = d("field-variant", null), o = S(null), s = D(null), c = t({
1145
+ function tn(e, n, r) {
1146
+ let i = p(Yt, {}), a = p("field-density", null), o = p("field-variant", null), s = w(null), c = k(null), l = t({
967
1147
  get() {
968
- return s.value ? s.value.value : e.control ? e.control.value : e.modelValue === void 0 ? o.value : e.modelValue;
1148
+ return c.value ? c.value.value : e.control ? e.control.value : e.modelValue === void 0 ? s.value : e.modelValue;
969
1149
  },
970
1150
  set(t) {
971
1151
  try {
972
1152
  e.control && (e.control.value = t);
973
1153
  } finally {
974
- e.control && !Object.is(k(e.control.value), k(t)) && (s.value = { value: t }, h(() => {
975
- s.value = null;
1154
+ e.control && !Object.is(j(e.control.value), j(t)) && (c.value = { value: t }, _(() => {
1155
+ c.value = null;
976
1156
  }));
977
1157
  }
978
- e.modelValue === void 0 && (o.value = t), n("update:modelValue", e.control ? e.control.value : t);
1158
+ e.modelValue === void 0 && (s.value = t), n("update:modelValue", e.control ? e.control.value : t);
979
1159
  }
980
1160
  });
981
- if (e.control && !(e.control instanceof z.FieldBase)) throw Error("control prop is not a vue-form control instance");
982
- let l = t({
1161
+ if (e.control && !(e.control instanceof U.FieldBase)) throw Error("control prop is not a vue-form control instance");
1162
+ let u = t({
983
1163
  get() {
984
1164
  return e.control.touched;
985
1165
  },
986
1166
  set(t) {
987
1167
  e.control.touched = t;
988
1168
  }
989
- }), u = e.control ? l : S(!1), f = t(() => !e.control || e.control.valid), p = t(() => e.control ? e.control.errors : (e.errors || []).map((e) => new ie(e))), m = t(() => Mt(p.value, e.control, u.value, r)), g = t(() => m.value.length > 0 ? " " : void 0), _ = t(() => e.control ? e.control.effectiveEnabled : e.enabled !== !1), v = t(() => {
1169
+ }), d = e.control ? u : w(!1), f = t(() => !e.control || e.control.valid), m = t(() => {
1170
+ var t;
1171
+ let n = /* @__PURE__ */ new Map();
1172
+ return ((t = e.errors) == null ? [] : t).forEach((e) => {
1173
+ let { code: t, params: r, detail: i, origin: a } = qt(e);
1174
+ n.set(new G(t, r, i, a), e);
1175
+ }), n;
1176
+ }), h = t(() => {
1177
+ var t;
1178
+ return e.control ? e.control.errors : [...m.value.keys(), ...(t = r == null ? void 0 : r()) == null ? [] : t];
1179
+ }), g = t(() => Zt(h.value, e.control, d.value, i).map((e) => {
1180
+ var t;
1181
+ return (t = m.value.get(e)) == null ? e : t;
1182
+ })), v = t(() => g.value.length > 0 ? " " : void 0), y = t(() => e.control ? e.control.effectiveEnabled : e.enabled !== !1), b = t(() => {
990
1183
  if (e.control) return e.control.visibility;
991
- if (e.visibility == null) return z.defaultVisibility;
992
- if (!z.isVisibility(e.visibility)) throw Error(`'${e.visibility}' is not a visibility: ${z.visibilityValues.join(", ")}`);
1184
+ if (e.visibility == null) return U.defaultVisibility;
1185
+ if (!U.isVisibility(e.visibility)) throw Error(`'${e.visibility}' is not a visibility: ${U.visibilityValues.join(", ")}`);
993
1186
  return e.visibility;
994
- }), y = t(() => v.value !== "suppress"), b = t(() => ({
995
- "d-none": v.value === "hidden",
996
- invisible: v.value === "invisible"
997
- })), x = t(() => {
1187
+ }), x = t(() => b.value !== "suppress"), S = t(() => ({
1188
+ "d-none": b.value === "hidden",
1189
+ invisible: b.value === "invisible"
1190
+ })), C = t(() => {
998
1191
  var t, n;
999
1192
  return (t = (n = e.control) == null ? void 0 : n.extra) == null ? {} : t;
1000
- }), C = t(() => {
1001
- var t;
1002
- let n = (t = e.label) == null ? x.value.label : t;
1003
- return K(n || "") ? new Pt(n || "") : n;
1004
- }), w = t(() => {
1005
- var t, n;
1006
- return (t = (n = e.placeholder) == null ? x.value.placeholder : n) == null ? "" : t;
1007
1193
  }), T = t(() => {
1008
- var t, n;
1009
- return (t = (n = e.helpText) == null ? x.value.helpText : n) == null ? "" : t;
1194
+ var t;
1195
+ let n = (t = e.label) == null ? C.value.label : t;
1196
+ return n instanceof $t ? n : new $t(n == null ? "" : n);
1010
1197
  }), E = t(() => {
1011
1198
  var t, n;
1012
- return (t = (n = e.hint) == null ? x.value.hint : n) == null ? "" : t;
1199
+ return (t = (n = e.placeholder) == null ? C.value.placeholder : n) == null ? "" : t;
1200
+ }), D = t(() => {
1201
+ var t, n;
1202
+ return (t = (n = e.helpText) == null ? C.value.helpText : n) == null ? "" : t;
1013
1203
  }), O = t(() => {
1014
1204
  var t, n;
1015
- return (t = (n = e.cssClass) == null ? x.value.cssClass : n) == null ? "" : t;
1205
+ return (t = (n = e.hint) == null ? C.value.hint : n) == null ? "" : t;
1016
1206
  }), A = t(() => {
1017
- var t, n, a, o;
1018
- return (t = (n = (a = (o = e.density) == null ? x.value.density : o) == null ? i : a) == null ? r.defaultDensity : n) == null ? "default" : t;
1019
- }), ee = t(() => A.value === "inline" ? "default" : A.value), j = t(() => {
1020
- var t, n, i, o;
1021
- return (t = (n = (i = (o = e.variant) == null ? x.value.variant : o) == null ? a : i) == null ? r.defaultVariant : n) == null ? "underlined" : t;
1207
+ var t, n;
1208
+ return (t = (n = e.cssClass) == null ? C.value.cssClass : n) == null ? "" : t;
1209
+ }), M = t(() => {
1210
+ var t, n, r, o;
1211
+ return (t = (n = (r = (o = e.density) == null ? C.value.density : o) == null ? a : r) == null ? i.defaultDensity : n) == null ? "default" : t;
1212
+ }), N = t(() => M.value === "inline" ? "default" : M.value), P = t(() => {
1213
+ var t, n, r, a;
1214
+ return (t = (n = (r = (a = e.variant) == null ? C.value.variant : a) == null ? o : r) == null ? i.defaultVariant : n) == null ? "underlined" : t;
1022
1215
  });
1023
1216
  return {
1024
- value: c,
1217
+ value: l,
1025
1218
  valid: f,
1026
- enabled: _,
1027
- errors: p,
1028
- shownErrors: m,
1029
- visibility: v,
1030
- isRendered: y,
1031
- visibilityClass: b,
1032
- label: C,
1033
- touched: u,
1034
- density: A,
1035
- densityClass: t(() => `df-density-${A.value}`),
1219
+ enabled: y,
1220
+ errors: h,
1221
+ shownErrors: g,
1222
+ visibility: b,
1223
+ isRendered: x,
1224
+ visibilityClass: S,
1225
+ label: T,
1226
+ touched: d,
1227
+ density: M,
1228
+ densityClass: t(() => `df-density-${M.value}`),
1036
1229
  vuetifyBindings: t(() => {
1037
1230
  var t;
1038
- return J({
1231
+ return Z({
1039
1232
  name: (t = e.control) == null ? void 0 : t.fieldName,
1040
- class: O.value,
1041
- density: ee.value,
1042
- variant: j.value,
1043
- label: C.value.text,
1044
- errorMessages: g.value,
1045
- readonly: !_.value,
1046
- disabled: !_.value,
1047
- placeholder: w.value,
1048
- "persistent-placeholder": !se(w.value),
1049
- hint: E.value,
1233
+ class: A.value,
1234
+ density: N.value,
1235
+ variant: P.value,
1236
+ label: Ut(T.value.text),
1237
+ errorMessages: v.value,
1238
+ readonly: !y.value,
1239
+ disabled: !y.value,
1240
+ placeholder: E.value,
1241
+ "persistent-placeholder": !q(E.value),
1242
+ hint: O.value,
1050
1243
  persistentHint: !0,
1051
1244
  hideDetails: "auto",
1052
- helpText: T.value
1245
+ helpText: D.value
1053
1246
  }, e.passthroughAttrs || {});
1054
1247
  })
1055
1248
  };
1056
1249
  }
1057
1250
  //#endregion
1058
1251
  //#region src/helpers/input-base.vue?vue&type=script&setup=true&lang.ts
1059
- var Ft = { class: "d-flex w-100 df-style-resetting df-sub-field" }, It = /* @__PURE__ */ l({
1252
+ var nn = { class: "d-flex w-100 df-style-resetting df-sub-field" }, rn = /* @__PURE__ */ l({
1060
1253
  __name: "input-base",
1061
1254
  props: {
1062
1255
  control: {},
@@ -1081,49 +1274,49 @@ var Ft = { class: "d-flex w-100 df-style-resetting df-sub-field" }, It = /* @__P
1081
1274
  "blur"
1082
1275
  ],
1083
1276
  setup(e, { emit: i }) {
1084
- let s = e, l = i, { isRendered: d, label: f, shownErrors: p, touched: m, value: h, visibilityClass: v, vuetifyBindings: y } = Q(s, l), b = t(() => !!(j(s.clearable) && j(h))), C = S(!1);
1085
- function E(e) {
1086
- C.value = e, e || (m.value = !0, l("blur"));
1277
+ let s = e, l = i, { isRendered: u, label: f, shownErrors: p, touched: m, value: h, visibilityClass: g, vuetifyBindings: _ } = tn(s, l), b = t(() => !!(P(s.clearable) && P(h))), x = w(!1);
1278
+ function S(e) {
1279
+ x.value = e, e || (m.value = !0, l("blur"));
1087
1280
  }
1088
1281
  return (t, i) => {
1089
- let s = T("v-field"), m = T("v-input");
1090
- return j(d) ? (x(), n(m, {
1282
+ let s = D("v-field"), m = D("v-input");
1283
+ return P(u) ? (C(), n(m, {
1091
1284
  key: 0,
1092
- name: j(y).name,
1093
- density: j(y).density,
1094
- hint: j(y).hint,
1095
- "persistent-hint": j(y).persistentHint,
1096
- "hide-details": j(y).hideDetails,
1097
- "error-messages": j(y).errorMessages,
1098
- class: g([e.cssClass, j(v)])
1285
+ name: P(_).name,
1286
+ density: P(_).density,
1287
+ hint: P(_).hint,
1288
+ "persistent-hint": P(_).persistentHint,
1289
+ "hide-details": P(_).hideDetails,
1290
+ "error-messages": P(_).errorMessages,
1291
+ class: v([e.cssClass, P(g)])
1099
1292
  }, o({
1100
- message: F(({ message: e }) => [c(Y, {
1293
+ message: R(({ message: e }) => [c(Q, {
1101
1294
  message: e,
1102
- errors: j(p)
1295
+ errors: P(p)
1103
1296
  }, null, 8, ["message", "errors"])]),
1104
- default: F(() => [c(s, {
1105
- variant: j(y).variant,
1106
- density: j(y).density,
1107
- label: j(y).label,
1108
- disabled: j(y).disabled,
1297
+ default: R(() => [c(s, {
1298
+ variant: P(_).variant,
1299
+ density: P(_).density,
1300
+ label: P(_).label,
1301
+ disabled: P(_).disabled,
1109
1302
  clearable: b.value,
1110
1303
  "persistent-clear": !0,
1111
- dirty: !!j(h) || !!j(y).placeholder,
1112
- active: C.value,
1304
+ dirty: !!P(h) || !!P(_).placeholder,
1305
+ active: x.value,
1113
1306
  loading: e.loading,
1114
1307
  "onClick:clear": i[0] || (i[0] = (e) => l("click:clear")),
1115
- "onUpdate:focused": i[1] || (i[1] = (e) => E(e))
1308
+ "onUpdate:focused": i[1] || (i[1] = (e) => S(e))
1116
1309
  }, o({
1117
- label: F((e) => [c(X, {
1310
+ label: R((e) => [c($, {
1118
1311
  data: e,
1119
- label: j(f)
1312
+ label: P(f)
1120
1313
  }, null, 8, ["data", "label"])]),
1121
- default: F((e) => [a("div", Ft, [w(t.$slots, "default", _(u(e)))])]),
1122
- loader: F((e) => [w(t.$slots, "loader", _(u(e)))]),
1314
+ default: R((e) => [a("div", nn, [E(t.$slots, "default", y(d(e)))])]),
1315
+ loader: R((e) => [E(t.$slots, "loader", y(d(e)))]),
1123
1316
  _: 2
1124
1317
  }, [t.$slots["prepend-inner"] ? {
1125
1318
  name: "prepend-inner",
1126
- fn: F((e) => [w(t.$slots, "prepend-inner", _(u(e)))]),
1319
+ fn: R((e) => [E(t.$slots, "prepend-inner", y(d(e)))]),
1127
1320
  key: "0"
1128
1321
  } : void 0]), 1032, [
1129
1322
  "variant",
@@ -1138,7 +1331,7 @@ var Ft = { class: "d-flex w-100 df-style-resetting df-sub-field" }, It = /* @__P
1138
1331
  _: 2
1139
1332
  }, [t.$slots.prepend ? {
1140
1333
  name: "prepend",
1141
- fn: F((e) => [w(t.$slots, "prepend", _(u(e)))]),
1334
+ fn: R((e) => [E(t.$slots, "prepend", y(d(e)))]),
1142
1335
  key: "0"
1143
1336
  } : void 0]), 1032, [
1144
1337
  "name",
@@ -1151,84 +1344,21 @@ var Ft = { class: "d-flex w-100 df-style-resetting df-sub-field" }, It = /* @__P
1151
1344
  ])) : r("", !0);
1152
1345
  };
1153
1346
  }
1154
- }), { strings: Lt, translateStrings: Rt } = pe({
1155
- Yes: "Yes",
1156
- No: "No",
1157
- Close: "Close",
1158
- Paragraph: "Paragraph",
1159
- Heading1: "Heading 1",
1160
- Heading2: "Heading 2",
1161
- Heading3: "Heading 3",
1162
- Heading4: "Heading 4",
1163
- Heading5: "Heading 5",
1164
- Heading6: "Heading 6",
1165
- Downloadable: "Downloadable",
1166
- ArticleCategory: "Article category",
1167
- Title: "Title",
1168
- Subtitle: "Subtitle",
1169
- InfoBox: "Info box",
1170
- SideQuote: "Side quote",
1171
- Marker: "Marker",
1172
- Spoiler: "Spoiler",
1173
- CodeDark: "Code (dark)",
1174
- CodeBright: "Code (bright)",
1175
- Undo: "Undo",
1176
- Redo: "Redo",
1177
- SelectAll: "Select all",
1178
- Bold: "Bold",
1179
- Italic: "Italic",
1180
- HorizontalLine: "Horizontal line",
1181
- Blockquote: "Block quote",
1182
- BulletedList: "Bulleted list",
1183
- NumberedList: "Numbered list",
1184
- Outdent: "Decrease indent",
1185
- Indent: "Increase indent",
1186
- AlignLeft: "Align left",
1187
- AlignCenter: "Align center",
1188
- AlignRight: "Align right",
1189
- AlignJustify: "Justify",
1190
- Link: "Link",
1191
- LinkUrl: "URL",
1192
- LinkApply: "Apply",
1193
- LinkRemove: "Remove link",
1194
- Image: "Image",
1195
- ImageUrl: "Image URL",
1196
- ImageUpload: "Upload image",
1197
- ImageInsert: "Insert",
1198
- ImageDropHint: "Drop image here or click to browse",
1199
- ImageReplace: "Replace image",
1200
- ImageDownload: "Download image",
1201
- FileDownload: "Download file",
1202
- Table: "Table",
1203
- TableInsert: "Insert table",
1204
- TableAddRowAbove: "Add row above",
1205
- TableAddRowBelow: "Add row below",
1206
- TableDeleteRow: "Delete row",
1207
- TableAddColumnBefore: "Add column before",
1208
- TableAddColumnAfter: "Add column after",
1209
- TableDeleteColumn: "Delete column",
1210
- TableToggleHeaderRow: "Toggle header row",
1211
- TableDeleteTable: "Delete table",
1212
- Style: "Style",
1213
- MediaEmbed: "Insert media",
1214
- MediaEmbedUrl: "Video URL",
1215
- MediaEmbedInsert: "Insert",
1216
- InvalidHexColor: "Not a valid hex string."
1217
- }), zt = Object.freeze(["button", "text"]), Bt = "button";
1218
- function Vt(e) {
1219
- return zt.includes(e);
1347
+ }), an = Object.freeze(["button", "text"]), on = "button";
1348
+ function sn(e) {
1349
+ return an.includes(e);
1220
1350
  }
1221
1351
  //#endregion
1222
1352
  //#region src/helpers/action/responsive-render-options.ts
1223
- var Ht = [
1353
+ var cn = [
1224
1354
  "xs",
1225
1355
  "sm",
1226
1356
  "md",
1227
1357
  "lg",
1228
1358
  "xl"
1229
- ], Ut = class {
1359
+ ], ln = class {
1230
1360
  constructor(e) {
1231
- ft(this, "_value", void 0), this._value = this.cleanBreakpoint(e, !0), e && Ht.forEach((t) => {
1361
+ X(this, "_value", void 0), this._value = this.cleanBreakpoint(e, !0), e && cn.forEach((t) => {
1232
1362
  let n = this.cleanBreakpoint(e[t]);
1233
1363
  n && (this._value[t] = n);
1234
1364
  });
@@ -1236,50 +1366,51 @@ var Ht = [
1236
1366
  getOptionsForBreakpoint(e) {
1237
1367
  var t;
1238
1368
  let n = (t = this.cleanBreakpoint(this._value)) == null ? {} : t;
1239
- for (let t of Ht) {
1369
+ for (let t of cn) {
1240
1370
  var r;
1241
1371
  let i = (r = this._value[t]) == null ? {} : r;
1242
1372
  for (let e of Object.keys(i)) {
1243
1373
  let t = i[e];
1244
- t != null && (n[e] = de(t) ? J(J({}, n[e]), t) : t);
1374
+ t != null && (n[e] = le(t) ? Z(Z({}, n[e]), t) : t);
1245
1375
  }
1246
1376
  if (t === e) break;
1247
1377
  }
1248
1378
  return n;
1249
1379
  }
1250
1380
  };
1251
- function Wt(e) {
1381
+ function un(e) {
1252
1382
  return e.xlAndUp.value ? "xl" : e.lgAndUp.value ? "lg" : e.mdAndUp.value ? "md" : e.smAndUp.value ? "sm" : "xs";
1253
1383
  }
1254
- function Gt() {
1255
- let e = me();
1256
- return t(() => Wt(e));
1384
+ function dn() {
1385
+ let e = de();
1386
+ return t(() => un(e));
1257
1387
  }
1258
1388
  //#endregion
1259
1389
  //#region src/helpers/action/action-render-options.ts
1260
- var Kt = class extends Ut {
1390
+ var fn = class extends ln {
1261
1391
  cleanBreakpoint(e, t = !1) {
1262
- if ((!e || !ue(e)) && !t) return null;
1392
+ if ((!e || !ce(e)) && !t) return null;
1263
1393
  let n = {};
1264
- if (t && (n.renderAs = Bt, n.showLabel = !0, n.showIcon = !0), e) {
1394
+ if (t && (n.renderAs = on, n.showLabel = !0, n.showIcon = !0), e) {
1265
1395
  if (e.renderAs != null) {
1266
- if (!Vt(e.renderAs)) throw Error(`'${e.renderAs}' is not an action display style: ${zt.join(", ")}`);
1396
+ if (!sn(e.renderAs)) throw Error(`'${e.renderAs}' is not an action display style: ${an.join(", ")}`);
1267
1397
  n.renderAs = e.renderAs;
1268
1398
  }
1269
- K(e.label) && (n.label = e.label), K(e.icon) && (n.icon = e.icon), G(e.showLabel) && (n.showLabel = e.showLabel), G(e.showIcon) && (n.showIcon = e.showIcon), K(e.name) && (n.name = e.name), G(e.defaultConfirm) && (n.defaultConfirm = e.defaultConfirm), G(e.defaultReject) && (n.defaultReject = e.defaultReject), de(e.passthroughAttrs) && (n.passthroughAttrs = J({}, e.passthroughAttrs));
1399
+ let t = N(e.label);
1400
+ J(t) && (n.label = t), J(e.icon) && (n.icon = e.icon), K(e.showLabel) && (n.showLabel = e.showLabel), K(e.showIcon) && (n.showIcon = e.showIcon), J(e.name) && (n.name = e.name), K(e.defaultConfirm) && (n.defaultConfirm = e.defaultConfirm), K(e.defaultReject) && (n.defaultReject = e.defaultReject), le(e.passthroughAttrs) && (n.passthroughAttrs = Z({}, e.passthroughAttrs));
1270
1401
  }
1271
1402
  return Object.keys(n).length ? n : null;
1272
1403
  }
1273
1404
  };
1274
- function qt(e, t) {
1275
- let n = new Kt(e).getOptionsForBreakpoint(t);
1405
+ function pn(e, t) {
1406
+ let n = new fn(e).getOptionsForBreakpoint(t), r = n.label;
1276
1407
  return {
1277
1408
  name: n.name,
1278
- label: n.showLabel ? n.label : void 0,
1409
+ label: n.showLabel ? r : void 0,
1279
1410
  icon: n.showIcon ? n.icon : void 0,
1280
1411
  renderAs: n.renderAs,
1281
- showLabel: K(n.label) && !se(n.label) ? n.showLabel : !1,
1282
- showIcon: K(n.icon) && !se(n.icon) ? n.showIcon : !1,
1412
+ showLabel: J(r) && !q(r) ? n.showLabel : !1,
1413
+ showIcon: J(n.icon) && !q(n.icon) ? n.showIcon : !1,
1283
1414
  defaultConfirm: n.defaultConfirm,
1284
1415
  defaultReject: n.defaultReject,
1285
1416
  passthroughAttrs: n.passthroughAttrs
@@ -1287,78 +1418,116 @@ function qt(e, t) {
1287
1418
  }
1288
1419
  //#endregion
1289
1420
  //#region src/helpers/action/action.ts
1290
- var Jt = class e extends B {
1421
+ var mn = class extends te {
1291
1422
  getBreakpointValue(e) {
1292
- return t(() => qt(this.value, e.value));
1423
+ return t(() => pn(this.value, e.value));
1424
+ }
1425
+ get label() {
1426
+ return N(this.value.label);
1427
+ }
1428
+ set label(e) {
1429
+ super.label = e;
1293
1430
  }
1294
1431
  get name() {
1295
1432
  return this.value.name;
1296
1433
  }
1297
1434
  get renderedLabel() {
1298
- return this.value.showLabel ? this.value.label : void 0;
1435
+ return this.value.showLabel ? N(this.value.label) : void 0;
1299
1436
  }
1300
1437
  get showLabel() {
1301
- return K(this.value.label) && !se(this.value.label) ? this.value.showLabel : !1;
1438
+ let e = N(this.value.label);
1439
+ return J(e) && !q(e) ? this.value.showLabel : !1;
1302
1440
  }
1303
1441
  get renderedIcon() {
1304
1442
  return this.value.showIcon ? this.value.icon : void 0;
1305
1443
  }
1306
1444
  get showIcon() {
1307
- return K(this.value.icon) && !se(this.value.icon) ? this.value.showIcon : !1;
1445
+ return J(this.value.icon) && !q(this.value.icon) ? this.value.showIcon : !1;
1308
1446
  }
1309
1447
  get renderAs() {
1310
1448
  return this.value.renderAs;
1311
1449
  }
1312
- get defaultConfirm() {
1313
- return this.value.defaultConfirm;
1314
- }
1315
- get defaultReject() {
1316
- return this.value.defaultReject;
1317
- }
1318
1450
  get passthroughAttrs() {
1319
1451
  return this.value.passthroughAttrs;
1320
1452
  }
1321
- static closeAction(t) {
1322
- var n;
1323
- let r = J(J({}, t == null ? {} : t), {}, { value: {
1324
- name: "close",
1325
- label: Lt.Close,
1326
- icon: "ion-close-outline",
1327
- renderAs: "button",
1328
- showLabel: !0,
1329
- showIcon: !0
1330
- } });
1331
- return r.value = J(J({}, r.value), (n = t == null ? void 0 : t.value) == null ? {} : n), new e(r);
1332
- }
1333
- static yesAction(t) {
1334
- var n;
1335
- let r = J(J({}, t == null ? {} : t), {}, { value: {
1336
- name: "yes",
1337
- label: Lt.Yes,
1338
- icon: "ion-thumbs-up-outline",
1339
- renderAs: "button",
1340
- showLabel: !0,
1341
- showIcon: !0
1342
- } });
1343
- return r.value = J(J({}, r.value), (n = t == null ? void 0 : t.value) == null ? {} : n), new e(r);
1344
- }
1345
- static noAction(t) {
1346
- var n;
1347
- let r = J(J({}, t == null ? {} : t), {}, { value: {
1348
- name: "no",
1349
- label: Lt.No,
1350
- icon: "ion-thumbs-down-outline",
1351
- renderAs: "button",
1352
- showLabel: !0,
1353
- showIcon: !0
1354
- } });
1355
- return r.value = J(J({}, r.value), (n = t == null ? void 0 : t.value) == null ? {} : n), new e(r);
1356
- }
1357
- };
1453
+ }, hn = {
1454
+ Cancel: "Cancel",
1455
+ Ok: "OK",
1456
+ Paragraph: "Paragraph",
1457
+ Heading1: "Heading 1",
1458
+ Heading2: "Heading 2",
1459
+ Heading3: "Heading 3",
1460
+ Heading4: "Heading 4",
1461
+ Heading5: "Heading 5",
1462
+ Heading6: "Heading 6",
1463
+ Downloadable: "Downloadable",
1464
+ ArticleCategory: "Article category",
1465
+ Title: "Title",
1466
+ Subtitle: "Subtitle",
1467
+ InfoBox: "Info box",
1468
+ SideQuote: "Side quote",
1469
+ Marker: "Marker",
1470
+ Spoiler: "Spoiler",
1471
+ CodeDark: "Code (dark)",
1472
+ CodeBright: "Code (bright)",
1473
+ Undo: "Undo",
1474
+ Redo: "Redo",
1475
+ SelectAll: "Select all",
1476
+ Bold: "Bold",
1477
+ Italic: "Italic",
1478
+ HorizontalLine: "Horizontal line",
1479
+ Blockquote: "Block quote",
1480
+ BulletedList: "Bulleted list",
1481
+ NumberedList: "Numbered list",
1482
+ Outdent: "Decrease indent",
1483
+ Indent: "Increase indent",
1484
+ AlignLeft: "Align left",
1485
+ AlignCenter: "Align center",
1486
+ AlignRight: "Align right",
1487
+ AlignJustify: "Justify",
1488
+ Link: "Link",
1489
+ LinkUrl: "URL",
1490
+ LinkApply: "Apply",
1491
+ LinkRemove: "Remove link",
1492
+ Image: "Image",
1493
+ ImageUrl: "Image URL",
1494
+ ImageUpload: "Upload image",
1495
+ ImageInsert: "Insert",
1496
+ ImageDropHint: "Drop image here or click to browse",
1497
+ ImageReplace: "Replace image",
1498
+ ImageDownload: "Download image",
1499
+ FileDownload: "Download file",
1500
+ Table: "Table",
1501
+ TableInsert: "Insert table",
1502
+ TableAddRowAbove: "Add row above",
1503
+ TableAddRowBelow: "Add row below",
1504
+ TableDeleteRow: "Delete row",
1505
+ TableAddColumnBefore: "Add column before",
1506
+ TableAddColumnAfter: "Add column after",
1507
+ TableDeleteColumn: "Delete column",
1508
+ TableToggleHeaderRow: "Toggle header row",
1509
+ TableDeleteTable: "Delete table",
1510
+ Style: "Style",
1511
+ MediaEmbed: "Insert media",
1512
+ MediaEmbedUrl: "Video URL",
1513
+ MediaEmbedInsert: "Insert"
1514
+ }, gn = fe(hn), { translateStrings: _n } = gn, vn = /* @__PURE__ */ new WeakMap();
1515
+ function yn(e) {
1516
+ if (!(e != null && e.translate)) return gn;
1517
+ let t = vn.get(e);
1518
+ return t || (t = fe(hn), t.translateStrings(e.translate, e.translateNamespace), vn.set(e, t)), t;
1519
+ }
1520
+ function bn(e, t) {
1521
+ return yn(u() ? p(Yt, {}) : void 0).translate(e, t);
1522
+ }
1523
+ function xn() {
1524
+ let e = yn(p(Yt, {}));
1525
+ return (t, n) => e.translate(t, n);
1526
+ }
1358
1527
  //#endregion
1359
1528
  //#region src/helpers/use-file-touch-keepalive.ts
1360
- function Yt(e, t, n, r) {
1361
- let i = d(jt, {}), a = S(null);
1529
+ function Sn(e, t, n, r) {
1530
+ let i = p(Yt, {}), a = w(null);
1362
1531
  function o() {
1363
1532
  a.value && window.clearInterval(a.value);
1364
1533
  }
@@ -1368,24 +1537,24 @@ function Yt(e, t, n, r) {
1368
1537
  let l = (s = (c = n()) == null ? i.defaultTouchInterval : c) == null ? 6e4 : s;
1369
1538
  a.value = window.setInterval(() => {
1370
1539
  e.value && t().touch(e.value).catch((e) => {
1371
- e instanceof At && r(e.errorText);
1540
+ e instanceof Pt && r(e.errorText);
1372
1541
  });
1373
1542
  }, l);
1374
1543
  }
1375
- return y(() => o()), N(e, (e) => e ? s() : o()), {
1544
+ return x(() => o()), I(e, (e) => e ? s() : o()), {
1376
1545
  setupTouchInterval: s,
1377
1546
  clearTouchInterval: o
1378
1547
  };
1379
1548
  }
1380
- function Xt(e, t) {
1381
- e && (e.errors = [new ie(t)]);
1549
+ function Cn(e, t) {
1550
+ e && (e.errors = [new G("file_gone", {}, t, "server")]);
1382
1551
  }
1383
1552
  //#endregion
1384
1553
  //#region src/df-actions.vue?vue&type=script&setup=true&lang.ts
1385
- var Zt = {
1554
+ var wn = {
1386
1555
  key: 1,
1387
1556
  style: { width: "0.5rem" }
1388
- }, Qt = { key: 2 }, $t = /* @__PURE__ */ l({
1557
+ }, Tn = { key: 2 }, En = /* @__PURE__ */ l({
1389
1558
  __name: "df-actions",
1390
1559
  props: {
1391
1560
  actions: {},
@@ -1394,20 +1563,20 @@ var Zt = {
1394
1563
  showAsGroup: { default: "no" }
1395
1564
  },
1396
1565
  setup(a) {
1397
- let o = a, s = Gt(), c = t(() => j(o.actions).filter((e) => e.visibility !== "suppress")), l = t(() => c.value.map((e) => J({ action: e }, qt(e.value, s.value))));
1566
+ let o = a, s = dn(), c = t(() => P(o.actions).filter((e) => e.visibility !== "suppress")), l = t(() => c.value.map((e) => Z({ action: e }, pn(e.value, s.value))));
1398
1567
  function u(e) {
1399
1568
  if (e.defaultConfirm) return "primary";
1400
1569
  if (e.defaultReject) return "secondary";
1401
1570
  }
1402
1571
  return (t, o) => {
1403
- let s = T("v-btn");
1404
- return c.value.length > 0 ? (x(), i("div", {
1572
+ let s = D("v-btn");
1573
+ return c.value.length > 0 ? (C(), i("div", {
1405
1574
  key: 0,
1406
- class: g(["text-end df-actions", {
1575
+ class: v(["text-end df-actions", {
1407
1576
  "button-group": a.showAsGroup === "grouped" || a.showAsGroup === "grouped-no-borders",
1408
1577
  "with-border": a.showAsGroup === "grouped"
1409
1578
  }])
1410
- }, [(x(!0), i(e, null, C(l.value, (e, t) => (x(), n(s, m({
1579
+ }, [(C(!0), i(e, null, T(l.value, (e, t) => (C(), n(s, g({
1411
1580
  key: t,
1412
1581
  variant: e.renderAs === "button" ? "tonal" : "text",
1413
1582
  color: u(e),
@@ -1420,14 +1589,14 @@ var Zt = {
1420
1589
  "d-none": e.action.visibility === "hidden",
1421
1590
  invisible: e.action.visibility === "invisible"
1422
1591
  }
1423
- }, { ref_for: !0 }, e.passthroughAttrs, { onClick: L((t) => e.action.execute(t), ["stop"]) }), {
1424
- default: F(() => [
1425
- e.icon ? (x(), n(j(R), {
1592
+ }, { ref_for: !0 }, e.passthroughAttrs, { onClick: B((t) => e.action.execute(t), ["stop"]) }), {
1593
+ default: R(() => [
1594
+ e.icon ? (C(), n(P(V), {
1426
1595
  key: 0,
1427
1596
  name: e.icon
1428
1597
  }, null, 8, ["name"])) : r("", !0),
1429
- e.icon && e.label ? (x(), i("span", Zt)) : r("", !0),
1430
- e.label ? (x(), i("span", Qt, O(e.label), 1)) : r("", !0)
1598
+ e.icon && e.label ? (C(), i("span", wn)) : r("", !0),
1599
+ e.label ? (C(), i("span", Tn, A(e.label), 1)) : r("", !0)
1431
1600
  ]),
1432
1601
  _: 2
1433
1602
  }, 1040, [
@@ -1442,9 +1611,9 @@ var Zt = {
1442
1611
  ]))), 128))], 2)) : r("", !0);
1443
1612
  };
1444
1613
  }
1445
- }), en = /* @__PURE__ */ l({
1614
+ }), Dn = /* @__PURE__ */ l({
1446
1615
  __name: "df-checkbox",
1447
- props: /*@__PURE__*/ p({
1616
+ props: /*@__PURE__*/ h({
1448
1617
  allowNull: { type: Boolean },
1449
1618
  control: {},
1450
1619
  modelValue: {},
@@ -1460,42 +1629,42 @@ var Zt = {
1460
1629
  passthroughAttrs: {},
1461
1630
  density: {},
1462
1631
  variant: {}
1463
- }, J(J({}, Z), {}, { allowNull: !1 })),
1632
+ }, Z(Z({}, en), {}, { allowNull: !1 })),
1464
1633
  emits: ["update:modelValue", "click:clear"],
1465
1634
  setup(e, { emit: i }) {
1466
- let a = e, { densityClass: o, isRendered: s, label: l, shownErrors: u, touched: d, value: f, visibilityClass: p, vuetifyBindings: h } = Q(a, i), g = t(() => a.allowNull && f.value == null), _ = t({
1635
+ let a = e, { densityClass: o, isRendered: s, label: l, shownErrors: u, touched: d, value: f, visibilityClass: p, vuetifyBindings: m } = tn(a, i), h = t(() => a.allowNull && f.value == null), _ = t({
1467
1636
  get() {
1468
1637
  return f.value;
1469
1638
  },
1470
1639
  set() {}
1471
1640
  });
1472
1641
  function v() {
1473
- let e = ae(f.value);
1642
+ let e = re(f.value);
1474
1643
  e === !0 ? f.value = a.allowNull ? null : !1 : f.value = e === !1;
1475
1644
  }
1476
1645
  return (e, t) => {
1477
- let i = T("v-checkbox");
1478
- return j(s) ? (x(), n(i, m({
1646
+ let i = D("v-checkbox");
1647
+ return P(s) ? (C(), n(i, g({
1479
1648
  key: 0,
1480
1649
  modelValue: _.value,
1481
1650
  "onUpdate:modelValue": t[0] || (t[0] = (e) => _.value = e),
1482
1651
  density: "compact",
1483
- class: [j(o), j(p)],
1484
- indeterminate: g.value,
1652
+ class: [P(o), P(p)],
1653
+ indeterminate: h.value,
1485
1654
  "false-value": !1,
1486
1655
  "true-value": !0
1487
- }, j(h), {
1656
+ }, P(m), {
1488
1657
  onChange: v,
1489
1658
  onBlur: t[1] || (t[1] = (e) => d.value = !0)
1490
1659
  }), {
1491
- label: F((e) => [c(j(X), {
1660
+ label: R((e) => [c(P($), {
1492
1661
  "allow-wrap": !0,
1493
1662
  data: e,
1494
- label: j(l)
1663
+ label: P(l)
1495
1664
  }, null, 8, ["data", "label"])]),
1496
- message: F(({ message: e }) => [c(j(Y), {
1665
+ message: R(({ message: e }) => [c(P(Q), {
1497
1666
  message: e,
1498
- errors: j(u)
1667
+ errors: P(u)
1499
1668
  }, null, 8, ["message", "errors"])]),
1500
1669
  _: 1
1501
1670
  }, 16, [
@@ -1505,9 +1674,62 @@ var Zt = {
1505
1674
  ])) : r("", !0);
1506
1675
  };
1507
1676
  }
1508
- }), tn = /* @__PURE__ */ l({
1677
+ });
1678
+ //#endregion
1679
+ //#region src/helpers/client-rendered.ts
1680
+ function On() {
1681
+ if (typeof window > "u") return k(!1);
1682
+ if (!de().ssr) return k(!0);
1683
+ let e = k(!1);
1684
+ return S(() => {
1685
+ e.value = !0;
1686
+ }), e;
1687
+ }
1688
+ //#endregion
1689
+ //#region src/helpers/confirm-actions.vue
1690
+ var kn = /* @__PURE__ */ l({
1691
+ __name: "confirm-actions",
1692
+ props: {
1693
+ save: { type: Function },
1694
+ cancel: { type: Function },
1695
+ isPristine: { type: Boolean }
1696
+ },
1697
+ setup(t) {
1698
+ return (n, r) => {
1699
+ let a = D("v-btn");
1700
+ return C(), i(e, null, [c(a, {
1701
+ variant: "text",
1702
+ text: P(bn)("Cancel"),
1703
+ onClick: t.cancel
1704
+ }, null, 8, ["text", "onClick"]), c(a, {
1705
+ variant: "text",
1706
+ disabled: t.isPristine,
1707
+ text: P(bn)("Ok"),
1708
+ onClick: t.save
1709
+ }, null, 8, [
1710
+ "disabled",
1711
+ "text",
1712
+ "onClick"
1713
+ ])], 64);
1714
+ };
1715
+ }
1716
+ });
1717
+ function An() {
1718
+ let e = -Infinity;
1719
+ return {
1720
+ viewChanged() {
1721
+ e = Date.now();
1722
+ },
1723
+ saveOnDoubleClick(t, n, r) {
1724
+ Date.now() - e < 600 || t.target instanceof Element && t.target.closest(n) && r();
1725
+ }
1726
+ };
1727
+ }
1728
+ //#endregion
1729
+ //#region src/df-color.vue?vue&type=script&setup=true&lang.ts
1730
+ var jn = ".v-color-picker-canvas", Mn = /* @__PURE__ */ l({
1509
1731
  __name: "df-color",
1510
- props: /*@__PURE__*/ p({
1732
+ props: /*@__PURE__*/ h({
1511
1733
  allowNull: { type: Boolean },
1512
1734
  control: {},
1513
1735
  modelValue: {},
@@ -1523,60 +1745,95 @@ var Zt = {
1523
1745
  passthroughAttrs: {},
1524
1746
  density: {},
1525
1747
  variant: {}
1526
- }, J(J({}, Z), {}, { allowNull: !1 })),
1748
+ }, Z(Z({}, en), {}, { allowNull: !1 })),
1527
1749
  emits: ["update:modelValue", "click:clear"],
1528
- setup(e, { emit: i }) {
1529
- let o = e, { densityClass: s, isRendered: l, label: u, shownErrors: d, touched: p, value: h, visibilityClass: g, vuetifyBindings: _ } = Q(o, i), y = S(!1), b = t(() => [(e) => o.control || !e && o.allowNull || /^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$/.test(e) ? !0 : Lt.InvalidHexColor]);
1750
+ setup(e, { emit: t }) {
1751
+ let i = e, o = t, s = /^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$/;
1752
+ function l() {
1753
+ let e = _.value;
1754
+ return !e && i.allowNull || s.test(e == null ? "" : e) ? [] : [new G("invalid_hex_color", {}, "Not a valid hex string.", "validator")];
1755
+ }
1756
+ let { densityClass: u, isRendered: d, label: f, shownErrors: p, touched: h, value: _, visibilityClass: v, vuetifyBindings: y } = tn(i, o, l), x = w(!1), S = On(), { saveOnDoubleClick: T } = An();
1757
+ function E() {
1758
+ x.value = !1, h.value = !0;
1759
+ }
1530
1760
  return (t, i) => {
1531
- let o = T("v-color-picker"), S = T("v-menu"), C = T("v-text-field");
1532
- return j(l) ? (x(), n(C, m({
1761
+ let o = D("v-color-picker"), s = D("v-card-actions"), l = D("v-card"), w = D("v-confirm-edit"), O = D("v-menu"), k = D("v-text-field");
1762
+ return P(d) ? (C(), n(k, g({
1533
1763
  key: 0,
1534
- modelValue: j(h),
1535
- "onUpdate:modelValue": i[2] || (i[2] = (e) => f(h) ? h.value = e : null),
1536
- class: [j(s), j(g)],
1764
+ modelValue: P(_),
1765
+ "onUpdate:modelValue": i[3] || (i[3] = (e) => m(_) ? _.value = e : null),
1766
+ class: [P(u), P(v)],
1537
1767
  clearable: e.allowNull,
1538
- type: "text",
1539
- rules: b.value
1540
- }, j(_), { onBlur: i[3] || (i[3] = (e) => p.value = !0) }), {
1541
- label: F((e) => [c(j(X), {
1768
+ type: "text"
1769
+ }, P(y), { onBlur: i[4] || (i[4] = (e) => h.value = !0) }), {
1770
+ label: R((e) => [c(P($), {
1542
1771
  data: e,
1543
- label: j(u)
1772
+ label: P(f)
1544
1773
  }, null, 8, ["data", "label"])]),
1545
- message: F(({ message: e }) => [c(j(Y), {
1774
+ message: R(({ message: e }) => [c(P(Q), {
1546
1775
  message: e,
1547
- errors: j(d)
1776
+ errors: P(p)
1548
1777
  }, null, 8, ["message", "errors"])]),
1549
- "prepend-inner": F(() => [a("div", { style: v([{
1778
+ "prepend-inner": R(() => [a("div", { style: b([{
1550
1779
  width: "24px",
1551
1780
  height: "24px",
1552
1781
  "border-radius": "4px",
1553
1782
  border: "1px solid #ccc"
1554
- }, { backgroundColor: j(h) }]) }, null, 4)]),
1555
- default: F(() => [c(S, {
1556
- modelValue: y.value,
1557
- "onUpdate:modelValue": i[1] || (i[1] = (e) => y.value = e),
1783
+ }, { backgroundColor: P(_) }]) }, null, 4)]),
1784
+ default: R(() => [P(S) ? (C(), n(O, {
1785
+ key: 0,
1786
+ modelValue: x.value,
1787
+ "onUpdate:modelValue": i[2] || (i[2] = (e) => x.value = e),
1558
1788
  "close-on-content-click": !1,
1559
1789
  activator: "parent"
1560
1790
  }, {
1561
- default: F(() => [c(o, {
1562
- modelValue: j(h),
1563
- "onUpdate:modelValue": i[0] || (i[0] = (e) => f(h) ? h.value = e : null),
1564
- mode: "hexa"
1565
- }, null, 8, ["modelValue"])]),
1791
+ default: R(() => [c(w, {
1792
+ modelValue: P(_),
1793
+ "onUpdate:modelValue": i[0] || (i[0] = (e) => m(_) ? _.value = e : null),
1794
+ "hide-actions": "",
1795
+ onCancel: i[1] || (i[1] = (e) => x.value = !1),
1796
+ onSave: E
1797
+ }, {
1798
+ default: R(({ model: e, save: t, cancel: n, isPristine: r }) => [c(l, null, {
1799
+ default: R(() => [c(o, {
1800
+ modelValue: e.value,
1801
+ "onUpdate:modelValue": (t) => e.value = t,
1802
+ mode: "hexa",
1803
+ onDblclick: (e) => P(T)(e, jn, t)
1804
+ }, null, 8, [
1805
+ "modelValue",
1806
+ "onUpdate:modelValue",
1807
+ "onDblclick"
1808
+ ]), c(s, { class: "justify-end" }, {
1809
+ default: R(() => [c(kn, {
1810
+ save: t,
1811
+ cancel: n,
1812
+ "is-pristine": r
1813
+ }, null, 8, [
1814
+ "save",
1815
+ "cancel",
1816
+ "is-pristine"
1817
+ ])]),
1818
+ _: 2
1819
+ }, 1024)]),
1820
+ _: 2
1821
+ }, 1024)]),
1822
+ _: 1
1823
+ }, 8, ["modelValue"])]),
1566
1824
  _: 1
1567
- }, 8, ["modelValue"])]),
1825
+ }, 8, ["modelValue"])) : r("", !0)]),
1568
1826
  _: 1
1569
1827
  }, 16, [
1570
1828
  "modelValue",
1571
1829
  "class",
1572
- "clearable",
1573
- "rules"
1830
+ "clearable"
1574
1831
  ])) : r("", !0);
1575
1832
  };
1576
1833
  }
1577
- }), nn = /* @__PURE__ */ l({
1834
+ }), Nn = /* @__PURE__ */ l({
1578
1835
  __name: "df-datetime",
1579
- props: /*@__PURE__*/ p({
1836
+ props: /*@__PURE__*/ h({
1580
1837
  inputType: {},
1581
1838
  displayFormatDate: {},
1582
1839
  displayFormatTime: {},
@@ -1595,156 +1852,182 @@ var Zt = {
1595
1852
  passthroughAttrs: {},
1596
1853
  density: {},
1597
1854
  variant: {}
1598
- }, J(J({}, Z), {}, {
1855
+ }, Z(Z({}, en), {}, {
1599
1856
  inputType: "datetime",
1600
1857
  displayFormatDate: "P",
1601
1858
  displayFormatTime: "p"
1602
1859
  })),
1603
1860
  emits: ["update:modelValue", "click:clear"],
1604
1861
  setup(e, { emit: i }) {
1605
- let o = e, s = i, l = t(() => {
1606
- var e;
1607
- return (e = o.locale) == null ? j(kt.dateTimeLocale) : e;
1608
- }), u = t(() => {
1862
+ let o = e, s = i, l = p(Yt, {}), u = t(() => {
1609
1863
  var e, t;
1610
- return (e = (t = l.value.options) == null ? void 0 : t.weekStartsOn) == null ? 1 : e;
1611
- }), { density: d, densityClass: f, touched: p, value: h, vuetifyBindings: _ } = Q(o, s), { inputType: v, displayFormatDate: y, displayFormatTime: b } = A(o), C = S(""), w = t({
1864
+ return (e = (t = o.locale) == null ? P(l.dateTimeLocale) : t) == null ? P(Nt.dateTimeLocale) : e;
1865
+ }), d = t(() => {
1866
+ var e, t;
1867
+ return (e = (t = u.value.options) == null ? void 0 : t.weekStartsOn) == null ? 1 : e;
1868
+ }), { density: f, densityClass: m, touched: h, value: _, vuetifyBindings: y } = tn(o, s), { inputType: b, displayFormatDate: x, displayFormatTime: S } = M(o), T = w(""), E = On(), O = t({
1612
1869
  get() {
1613
- return j(C) === "date";
1870
+ return P(T) === "date";
1614
1871
  },
1615
1872
  set(e) {
1616
- C.value = e ? "date" : "";
1873
+ T.value = e ? "date" : "";
1617
1874
  }
1618
- }), D = t({
1875
+ }), k = t({
1619
1876
  get() {
1620
- return j(C) === "time";
1877
+ return P(T) === "time";
1621
1878
  },
1622
1879
  set(e) {
1623
- C.value = e ? "time" : "";
1880
+ T.value = e ? "time" : "";
1624
1881
  }
1625
- }), O = (e) => `${he(e, "yyyy-MM-dd")}T${he(e, "HH:mm")}:00`, k = S(null);
1626
- function ee(e, t, n) {
1882
+ });
1883
+ function A() {
1884
+ T.value = "", h.value = !0;
1885
+ }
1886
+ let { viewChanged: j, saveOnDoubleClick: N } = An();
1887
+ function ee() {
1888
+ _.value = null, h.value = !0;
1889
+ }
1890
+ let F = (e) => `${pe(e, "yyyy-MM-dd")}T${pe(e, "HH:mm")}:00`, L = w(null);
1891
+ function B(e, t, n) {
1627
1892
  let r = e.split(/[TZ]/g);
1628
1893
  return r[n] = t.split(/[TZ]/g)[n], r;
1629
1894
  }
1630
- let M = (e) => O(/* @__PURE__ */ new Date(`${e[0]}T${e[1].split(".")[0]}`));
1631
- function te(e, t) {
1632
- if (e == null) k.value = null;
1633
- else if (t === -1) j(v) === "time" ? k.value = M(ee(O(/* @__PURE__ */ new Date()), `T${e}`, 1)) : k.value = O(_e(e));
1895
+ let V = (e) => F(/* @__PURE__ */ new Date(`${e[0]}T${e[1].split(".")[0]}`));
1896
+ function H(e, t) {
1897
+ if (e == null) L.value = null;
1898
+ else if (t === -1) P(b) === "time" ? L.value = V(B(F(/* @__PURE__ */ new Date()), `T${e}`, 1)) : L.value = F(he(e));
1634
1899
  else {
1635
1900
  var n;
1636
- let r = ee((n = k.value) == null ? O(/* @__PURE__ */ new Date()) : n, e, t);
1637
- k.value = M(r), j(v) === "date" ? h.value = r[0] : j(v) === "time" ? h.value = r[1] : h.value = k.value + he(new Date(k.value), "XXX");
1901
+ let r = B((n = L.value) == null ? F(/* @__PURE__ */ new Date()) : n, e, t);
1902
+ L.value = V(r), P(b) === "date" ? _.value = r[0] : P(b) === "time" ? _.value = r[1] : _.value = L.value + pe(new Date(L.value), "XXX");
1638
1903
  }
1639
1904
  }
1640
- N(h, (e) => te(e, -1), { immediate: !0 });
1641
- let P = t({
1905
+ I(_, (e) => H(e, -1), { immediate: !0 });
1906
+ let U = t({
1642
1907
  get() {
1643
- let e = j(k);
1908
+ let e = P(L);
1644
1909
  if (e == null) return null;
1645
1910
  let t = new Date(e);
1646
1911
  return Number.isNaN(t.getTime()) ? null : t;
1647
1912
  },
1648
1913
  set(e) {
1649
- te(O(e), 0);
1914
+ H(F(e), 0);
1650
1915
  }
1651
- }), L = t({
1916
+ }), te = t({
1652
1917
  get() {
1653
- let e = j(k);
1918
+ let e = P(L);
1654
1919
  return e == null ? "" : e.split(/[TZ]/g)[1].split(".")[0];
1655
1920
  },
1656
1921
  set(e) {
1657
- te(`T${e}`, 1);
1922
+ H(`T${e}`, 1);
1658
1923
  }
1659
- }), R = t({
1924
+ }), W = t({
1660
1925
  get() {
1661
- let e = j(P);
1662
- return e == null ? "" : he(e, j(y), { locale: l.value });
1926
+ let e = P(U);
1927
+ return e == null ? "" : pe(e, P(x), { locale: u.value });
1663
1928
  },
1664
1929
  set(e) {
1665
1930
  try {
1666
- let t = ge(e, j(y), /* @__PURE__ */ new Date(), { locale: l.value });
1667
- te(O(t), 0);
1931
+ let t = me(e, P(x), /* @__PURE__ */ new Date(), { locale: u.value });
1932
+ H(F(t), 0);
1668
1933
  } catch (e) {
1669
1934
  console.error(e);
1670
1935
  }
1671
1936
  }
1672
- }), z = t({
1937
+ }), G = t({
1673
1938
  get() {
1674
- let e = j(P);
1675
- return e == null ? "" : he(e, j(b), { locale: l.value });
1939
+ let e = P(U);
1940
+ return e == null ? "" : pe(e, P(S), { locale: u.value });
1676
1941
  },
1677
1942
  set(e) {
1678
1943
  let t = e.match(/(\d+):(\d+)\s?([a-zA-Z]+)?/);
1679
1944
  if (t == null) return;
1680
- let n = q(t[1]), r = q(t[2]);
1681
- le(n) || le(r) || (t[3] && t[3].toLowerCase() === "pm" && n < 13 && (n += 12), te(`T${n.toString().padStart(2, "0")}:${r.toString().padStart(2, "0")}:00`, 1));
1945
+ let n = Y(t[1]), r = Y(t[2]);
1946
+ se(n) || se(r) || (t[3] && t[3].toLowerCase() === "pm" && n < 13 && (n += 12), H(`T${n.toString().padStart(2, "0")}:${r.toString().padStart(2, "0")}:00`, 1));
1682
1947
  }
1683
1948
  });
1684
1949
  return (t, i) => {
1685
- let s = T("v-date-picker"), l = T("v-confirm-edit"), y = T("v-menu"), b = T("v-text-field"), S = T("v-time-picker");
1686
- return x(), n(j(It), m(o, {
1687
- class: j(f),
1950
+ let s = D("v-date-picker"), l = D("v-confirm-edit"), u = D("v-menu"), p = D("v-text-field"), _ = D("v-time-picker");
1951
+ return C(), n(P(rn), g(o, {
1952
+ class: P(m),
1688
1953
  clearable: e.clearable,
1689
- "onClick:clear": i[14] || (i[14] = (e) => h.value = null),
1690
- onBlur: i[15] || (i[15] = (e) => p.value = !0)
1954
+ "onClick:clear": ee,
1955
+ onBlur: i[12] || (i[12] = (e) => h.value = !0)
1691
1956
  }), {
1692
- default: F((t) => [a("div", { class: g([
1957
+ default: R((t) => [a("div", { class: v([
1693
1958
  "d-flex",
1694
1959
  "w-100",
1695
- ["plain", "underlined"].includes(j(_).variant) ? void 0 : "ml-4",
1960
+ ["plain", "underlined"].includes(P(y).variant) ? void 0 : "ml-4",
1696
1961
  "df-input-wrapper",
1697
- j(d)
1698
- ]) }, [["date", "datetime"].includes(j(v)) ? (x(), n(b, m({
1962
+ P(f)
1963
+ ]) }, [["date", "datetime"].includes(P(b)) ? (C(), n(p, g({
1699
1964
  key: 0,
1700
- modelValue: R.value,
1701
- "onUpdate:modelValue": i[4] || (i[4] = (e) => R.value = e),
1965
+ modelValue: W.value,
1966
+ "onUpdate:modelValue": i[3] || (i[3] = (e) => W.value = e),
1702
1967
  style: { "flex-grow": "4" },
1703
1968
  density: "compact",
1704
1969
  variant: "plain",
1705
1970
  clearable: !1,
1706
1971
  "hide-details": !0,
1707
- readonly: j(_).readonly,
1708
- disabled: j(_).disabled,
1709
- name: `${j(_).name}-date`,
1710
- placeholder: j(_).placeholder
1972
+ readonly: P(y).readonly,
1973
+ disabled: P(y).disabled,
1974
+ name: `${P(y).name}-date`,
1975
+ placeholder: P(y).placeholder
1711
1976
  }, e.passthroughAttrs, {
1712
- onClick: i[5] || (i[5] = (e) => C.value = "date"),
1713
- onKeydown: i[6] || (i[6] = I((e) => C.value = "date", ["space"])),
1977
+ onClick: i[4] || (i[4] = (e) => T.value = "date"),
1978
+ onKeydown: i[5] || (i[5] = z((e) => T.value = "date", ["space"])),
1714
1979
  onFocus: (e) => t.focus(),
1715
1980
  onBlur: (e) => t.blur()
1716
1981
  }), {
1717
- default: F(() => [c(y, {
1718
- modelValue: w.value,
1719
- "onUpdate:modelValue": i[3] || (i[3] = (e) => w.value = e),
1982
+ default: R(() => [P(E) ? (C(), n(u, {
1983
+ key: 0,
1984
+ modelValue: O.value,
1985
+ "onUpdate:modelValue": i[2] || (i[2] = (e) => O.value = e),
1720
1986
  "close-on-content-click": !1,
1721
1987
  activator: "parent"
1722
1988
  }, {
1723
- default: F(() => [c(l, {
1724
- modelValue: P.value,
1725
- "onUpdate:modelValue": i[0] || (i[0] = (e) => P.value = e),
1726
- onCancel: i[1] || (i[1] = (e) => C.value = ""),
1727
- onSave: i[2] || (i[2] = (e) => C.value = "")
1989
+ default: R(() => [c(l, {
1990
+ modelValue: U.value,
1991
+ "onUpdate:modelValue": i[0] || (i[0] = (e) => U.value = e),
1992
+ "hide-actions": "",
1993
+ onCancel: i[1] || (i[1] = (e) => T.value = ""),
1994
+ onSave: A
1728
1995
  }, {
1729
- default: F(({ model: e, actions: t }) => [c(s, {
1996
+ default: R(({ model: e, save: t, cancel: n, isPristine: r }) => [c(s, {
1730
1997
  modelValue: e.value,
1731
1998
  "onUpdate:modelValue": (t) => e.value = t,
1732
1999
  "hide-header": !0,
1733
- "first-day-of-week": u.value,
2000
+ "first-day-of-week": d.value,
1734
2001
  "show-adjacent-months": !0,
1735
- "show-week": !0
2002
+ "show-week": !0,
2003
+ "onUpdate:viewMode": P(j),
2004
+ "onUpdate:month": P(j),
2005
+ "onUpdate:year": P(j),
2006
+ onDblclick: (e) => P(N)(e, ".v-date-picker-month__day", t)
1736
2007
  }, {
1737
- actions: F(() => [(x(), n(E(t)))]),
2008
+ actions: R(() => [c(kn, {
2009
+ save: t,
2010
+ cancel: n,
2011
+ "is-pristine": r
2012
+ }, null, 8, [
2013
+ "save",
2014
+ "cancel",
2015
+ "is-pristine"
2016
+ ])]),
1738
2017
  _: 2
1739
2018
  }, 1032, [
1740
2019
  "modelValue",
1741
2020
  "onUpdate:modelValue",
1742
- "first-day-of-week"
2021
+ "first-day-of-week",
2022
+ "onUpdate:viewMode",
2023
+ "onUpdate:month",
2024
+ "onUpdate:year",
2025
+ "onDblclick"
1743
2026
  ])]),
1744
2027
  _: 1
1745
2028
  }, 8, ["modelValue"])]),
1746
2029
  _: 1
1747
- }, 8, ["modelValue"])]),
2030
+ }, 8, ["modelValue"])) : r("", !0)]),
1748
2031
  _: 1
1749
2032
  }, 16, [
1750
2033
  "modelValue",
@@ -1754,50 +2037,67 @@ var Zt = {
1754
2037
  "placeholder",
1755
2038
  "onFocus",
1756
2039
  "onBlur"
1757
- ])) : r("", !0), ["time", "datetime"].includes(j(v)) ? (x(), n(b, m({
2040
+ ])) : r("", !0), ["time", "datetime"].includes(P(b)) ? (C(), n(p, g({
1758
2041
  key: 1,
1759
- modelValue: z.value,
1760
- "onUpdate:modelValue": i[11] || (i[11] = (e) => z.value = e),
2042
+ modelValue: G.value,
2043
+ "onUpdate:modelValue": i[9] || (i[9] = (e) => G.value = e),
1761
2044
  style: { "flex-grow": "3" },
1762
2045
  density: "compact",
1763
2046
  variant: "plain",
1764
2047
  clearable: !1,
1765
2048
  "hide-details": !0,
1766
- readonly: j(_).readonly,
1767
- disabled: j(_).disabled,
1768
- name: `${j(_).name}-time`,
1769
- placeholder: j(v) === "time" ? j(_).placeholder : void 0
2049
+ readonly: P(y).readonly,
2050
+ disabled: P(y).disabled,
2051
+ name: `${P(y).name}-time`,
2052
+ placeholder: P(b) === "time" ? P(y).placeholder : void 0
1770
2053
  }, e.passthroughAttrs, {
1771
- onClick: i[12] || (i[12] = (e) => C.value = "time"),
1772
- onKeydown: i[13] || (i[13] = I((e) => C.value = "time", ["space"])),
2054
+ onClick: i[10] || (i[10] = (e) => T.value = "time"),
2055
+ onKeydown: i[11] || (i[11] = z((e) => T.value = "time", ["space"])),
1773
2056
  onFocus: (e) => t.focus(),
1774
2057
  onBlur: (e) => t.blur()
1775
2058
  }), {
1776
- default: F(() => [c(y, {
1777
- modelValue: D.value,
1778
- "onUpdate:modelValue": i[10] || (i[10] = (e) => D.value = e),
2059
+ default: R(() => [P(E) ? (C(), n(u, {
2060
+ key: 0,
2061
+ modelValue: k.value,
2062
+ "onUpdate:modelValue": i[8] || (i[8] = (e) => k.value = e),
1779
2063
  "close-on-content-click": !1,
1780
2064
  activator: "parent"
1781
2065
  }, {
1782
- default: F(() => [c(l, {
1783
- modelValue: L.value,
1784
- "onUpdate:modelValue": i[7] || (i[7] = (e) => L.value = e),
1785
- onCancel: i[8] || (i[8] = (e) => C.value = ""),
1786
- onSave: i[9] || (i[9] = (e) => C.value = "")
2066
+ default: R(() => [c(l, {
2067
+ modelValue: te.value,
2068
+ "onUpdate:modelValue": i[6] || (i[6] = (e) => te.value = e),
2069
+ "hide-actions": "",
2070
+ onCancel: i[7] || (i[7] = (e) => T.value = ""),
2071
+ onSave: A
1787
2072
  }, {
1788
- default: F(({ model: e, actions: t }) => [c(S, {
2073
+ default: R(({ model: e, save: t, cancel: n, isPristine: r }) => [c(_, {
1789
2074
  modelValue: e.value,
1790
2075
  "onUpdate:modelValue": (t) => e.value = t,
1791
2076
  "hide-header": !0,
1792
- format: "24hr"
2077
+ format: "24hr",
2078
+ "onUpdate:viewMode": P(j),
2079
+ onDblclick: (e) => P(N)(e, ".v-time-picker-clock", t)
1793
2080
  }, {
1794
- actions: F(() => [(x(), n(E(t)))]),
2081
+ actions: R(() => [c(kn, {
2082
+ save: t,
2083
+ cancel: n,
2084
+ "is-pristine": r
2085
+ }, null, 8, [
2086
+ "save",
2087
+ "cancel",
2088
+ "is-pristine"
2089
+ ])]),
1795
2090
  _: 2
1796
- }, 1032, ["modelValue", "onUpdate:modelValue"])]),
2091
+ }, 1032, [
2092
+ "modelValue",
2093
+ "onUpdate:modelValue",
2094
+ "onUpdate:viewMode",
2095
+ "onDblclick"
2096
+ ])]),
1797
2097
  _: 1
1798
2098
  }, 8, ["modelValue"])]),
1799
2099
  _: 1
1800
- }, 8, ["modelValue"])]),
2100
+ }, 8, ["modelValue"])) : r("", !0)]),
1801
2101
  _: 1
1802
2102
  }, 16, [
1803
2103
  "modelValue",
@@ -1815,7 +2115,7 @@ var Zt = {
1815
2115
  });
1816
2116
  //#endregion
1817
2117
  //#region \0@oxc-project+runtime@0.146.0/helpers/esm/asyncToGenerator.js
1818
- function rn(e, t, n, r, i, a, o) {
2118
+ function Pn(e, t, n, r, i, a, o) {
1819
2119
  try {
1820
2120
  var s = e[a](o), c = s.value;
1821
2121
  } catch (e) {
@@ -1824,16 +2124,16 @@ function rn(e, t, n, r, i, a, o) {
1824
2124
  }
1825
2125
  s.done ? t(c) : Promise.resolve(c).then(r, i);
1826
2126
  }
1827
- function an(e) {
2127
+ function Fn(e) {
1828
2128
  return function() {
1829
2129
  var t = this, n = arguments;
1830
2130
  return new Promise(function(r, i) {
1831
2131
  var a = e.apply(t, n);
1832
2132
  function o(e) {
1833
- rn(a, r, i, o, s, "next", e);
2133
+ Pn(a, r, i, o, s, "next", e);
1834
2134
  }
1835
2135
  function s(e) {
1836
- rn(a, r, i, o, s, "throw", e);
2136
+ Pn(a, r, i, o, s, "throw", e);
1837
2137
  }
1838
2138
  o(void 0);
1839
2139
  });
@@ -1841,9 +2141,9 @@ function an(e) {
1841
2141
  }
1842
2142
  //#endregion
1843
2143
  //#region src/df-file.vue?vue&type=script&setup=true&lang.ts
1844
- var on = ["title", "aria-label"], sn = /* @__PURE__ */ l({
2144
+ var In = ["title", "aria-label"], Ln = /* @__PURE__ */ l({
1845
2145
  __name: "df-file",
1846
- props: /*@__PURE__*/ p({
2146
+ props: /*@__PURE__*/ h({
1847
2147
  comms: {},
1848
2148
  touchInterval: {},
1849
2149
  control: {},
@@ -1860,95 +2160,95 @@ var on = ["title", "aria-label"], sn = /* @__PURE__ */ l({
1860
2160
  passthroughAttrs: {},
1861
2161
  density: {},
1862
2162
  variant: {}
1863
- }, Z),
2163
+ }, en),
1864
2164
  emits: ["update:modelValue", "click:clear"],
1865
2165
  setup(e, { emit: i }) {
1866
- let s = e, { density: l, densityClass: u, touched: d, value: f, vuetifyBindings: p } = Q(s, i), h = Lt, _ = S(null), v = S(0), y = S(Math.round(Math.random() * 1e3)), b = S(), C = t(() => _.value && v.value < 100), w = t(() => !b.value && f.value ? f.value : ""), E = t(() => !b.value && !!f.value && !!s.comms.getDownloadUrl);
1867
- function D() {
1868
- return O.apply(this, arguments);
2166
+ let s = e, { density: l, densityClass: u, touched: d, value: f, vuetifyBindings: p } = tn(s, i), m = bn, h = w(null), _ = w(0), y = w(), b = t(() => h.value && _.value < 100), x = t(() => !y.value && f.value ? f.value : ""), S = t(() => !y.value && !!f.value && !!s.comms.getDownloadUrl);
2167
+ function T() {
2168
+ return E.apply(this, arguments);
1869
2169
  }
1870
- function O() {
1871
- return O = an(function* () {
2170
+ function E() {
2171
+ return E = Fn(function* () {
1872
2172
  if (!f.value || !s.comms.getDownloadUrl) return;
1873
2173
  let e = yield s.comms.getDownloadUrl(f.value), t = document.createElement("a");
1874
2174
  t.href = e, t.download = "", t.rel = "noopener", t.click();
1875
- }), O.apply(this, arguments);
2175
+ }), E.apply(this, arguments);
1876
2176
  }
1877
- function k() {
1878
- f.value = null, v.value = 0, y.value = Math.round(Math.random() * 1e3), _.value = null, b.value = null, M();
2177
+ function O() {
2178
+ f.value = null, _.value = 0, h.value = null, y.value = null, j();
1879
2179
  }
1880
- function A(e) {
1881
- k(), Xt(s.control, e);
2180
+ function k(e) {
2181
+ O(), Cn(s.control, e);
1882
2182
  }
1883
- let { setupTouchInterval: ee, clearTouchInterval: M } = Yt(f, () => s.comms, () => s.touchInterval, A);
1884
- function te() {
2183
+ let { setupTouchInterval: A, clearTouchInterval: j } = Sn(f, () => s.comms, () => s.touchInterval, k);
2184
+ function M() {
1885
2185
  return N.apply(this, arguments);
1886
2186
  }
1887
2187
  function N() {
1888
- return N = an(function* () {
1889
- f.value && (yield s.comms.delete(f.value)), k();
2188
+ return N = Fn(function* () {
2189
+ f.value && (yield s.comms.delete(f.value)), O(), d.value = !0;
1890
2190
  }), N.apply(this, arguments);
1891
2191
  }
1892
- function P(e) {
1893
- return I.apply(this, arguments);
2192
+ function ee(e) {
2193
+ return F.apply(this, arguments);
1894
2194
  }
1895
- function I() {
1896
- return I = an(function* (e) {
1897
- v.value = -1, _.value = e;
2195
+ function F() {
2196
+ return F = Fn(function* (e) {
2197
+ _.value = -1, h.value = e;
1898
2198
  try {
1899
2199
  f.value = yield s.comms.upload(e, (e, t) => {
1900
- v.value = Math.round(e * 100 / t);
1901
- }), v.value = 100, ee();
2200
+ _.value = Math.round(e * 100 / t);
2201
+ }), _.value = 100, d.value = !0, A();
1902
2202
  } catch (e) {
1903
- throw v.value = 0, _.value = null, y.value = Math.round(Math.random() * 1e3), b.value = null, e;
2203
+ throw _.value = 0, h.value = null, y.value = null, e;
1904
2204
  }
1905
- }), I.apply(this, arguments);
2205
+ }), F.apply(this, arguments);
1906
2206
  }
1907
- function z(e) {
1908
- e && (Array.isArray(e) ? console.error("Uploading multiple files not supported right now") : P(e));
2207
+ function I(e) {
2208
+ e && (Array.isArray(e) ? console.error("Uploading multiple files not supported right now") : ee(e));
1909
2209
  }
1910
2210
  return (t, i) => {
1911
- let f = T("v-progress-linear"), y = T("v-file-input");
1912
- return x(), n(j(It), m(J(J({}, s), {}, { loading: C.value }), {
1913
- class: j(u),
2211
+ let f = D("v-progress-linear"), w = D("v-file-input");
2212
+ return C(), n(P(rn), g(Z(Z({}, s), {}, { loading: b.value }), {
2213
+ class: P(u),
1914
2214
  clearable: "",
1915
- "onClick:clear": te,
2215
+ "onClick:clear": M,
1916
2216
  onBlur: i[1] || (i[1] = (e) => d.value = !0)
1917
2217
  }), {
1918
- "prepend-inner": F(() => [c(j(R), { name: "mdi-paperclip" })]),
1919
- loader: F(() => [_.value && v.value < 100 ? (x(), n(f, {
2218
+ "prepend-inner": R(() => [c(P(V), { name: "mdi-paperclip" })]),
2219
+ loader: R(() => [h.value && _.value < 100 ? (C(), n(f, {
1920
2220
  key: 0,
1921
- "model-value": v.value,
1922
- indeterminate: v.value === -1
2221
+ "model-value": _.value,
2222
+ indeterminate: _.value === -1
1923
2223
  }, null, 8, ["model-value", "indeterminate"])) : r("", !0)]),
1924
- default: F((t) => [a("div", { class: g(["d-flex w-100 position-relative df-input-wrapper", j(l)]) }, [c(y, m({
1925
- modelValue: b.value,
1926
- "onUpdate:modelValue": i[0] || (i[0] = (e) => b.value = e),
1927
- label: w.value,
2224
+ default: R((t) => [a("div", { class: v(["d-flex w-100 position-relative df-input-wrapper", P(l)]) }, [c(w, g({
2225
+ modelValue: y.value,
2226
+ "onUpdate:modelValue": i[0] || (i[0] = (e) => y.value = e),
2227
+ label: x.value,
1928
2228
  density: "compact",
1929
2229
  variant: "plain",
1930
- readonly: j(p).readonly,
1931
- disabled: j(p).disabled,
1932
- name: j(p).name,
2230
+ readonly: P(p).readonly,
2231
+ disabled: P(p).disabled,
2232
+ name: P(p).name,
1933
2233
  "hide-details": !0,
1934
2234
  "show-size": !0,
1935
2235
  multiple: !1,
1936
- style: _.value && v.value < 100 ? "visibility: hidden" : "",
2236
+ style: h.value && _.value < 100 ? "visibility: hidden" : "",
1937
2237
  clearable: !1
1938
2238
  }, e.passthroughAttrs, {
1939
2239
  "prepend-icon": "",
1940
- "onUpdate:modelValue": z,
2240
+ "onUpdate:modelValue": I,
1941
2241
  onFocus: (e) => t.focus(),
1942
2242
  onBlur: (e) => t.blur()
1943
- }), o({ _: 2 }, [E.value ? {
2243
+ }), o({ _: 2 }, [S.value ? {
1944
2244
  name: "append-inner",
1945
- fn: F(() => [a("button", {
2245
+ fn: R(() => [a("button", {
1946
2246
  type: "button",
1947
2247
  class: "df-file-download-btn",
1948
- title: j(h).FileDownload,
1949
- "aria-label": j(h).FileDownload,
1950
- onClick: L(D, ["stop", "prevent"])
1951
- }, [c(j(R), { name: "mdi-download" })], 8, on)]),
2248
+ title: P(m)("FileDownload"),
2249
+ "aria-label": P(m)("FileDownload"),
2250
+ onClick: B(T, ["stop", "prevent"])
2251
+ }, [c(P(V), { name: "mdi-download" })], 8, In)]),
1952
2252
  key: "0"
1953
2253
  } : void 0]), 1040, [
1954
2254
  "modelValue",
@@ -1964,19 +2264,19 @@ var on = ["title", "aria-label"], sn = /* @__PURE__ */ l({
1964
2264
  }, 16, ["class"]);
1965
2265
  };
1966
2266
  }
1967
- }), cn = [
2267
+ }), Rn = [
1968
2268
  "id",
1969
2269
  "disabled",
1970
2270
  "name",
1971
2271
  "onFocus",
1972
2272
  "onBlur"
1973
- ], ln = ["for"], un = ["for"], dn = ["for", "title"], fn = [
2273
+ ], zn = ["for"], Bn = ["for"], Vn = ["for", "title"], Hn = [
1974
2274
  "href",
1975
2275
  "title",
1976
2276
  "aria-label"
1977
- ], pn = /* @__PURE__ */ l({
2277
+ ], Un = /* @__PURE__ */ l({
1978
2278
  __name: "df-image",
1979
- props: /*@__PURE__*/ p({
2279
+ props: /*@__PURE__*/ h({
1980
2280
  comms: {},
1981
2281
  touchInterval: {},
1982
2282
  control: {},
@@ -1993,146 +2293,146 @@ var on = ["title", "aria-label"], sn = /* @__PURE__ */ l({
1993
2293
  passthroughAttrs: {},
1994
2294
  density: {},
1995
2295
  variant: {}
1996
- }, Z),
2296
+ }, en),
1997
2297
  emits: ["update:modelValue", "click:clear"],
1998
2298
  setup(e, { emit: o }) {
1999
- let s = e, { density: l, densityClass: u, touched: d, value: f, vuetifyBindings: p } = Q(s, o), h = Lt, _ = te(), b = S(null), C = S(0), w = S(null), E = S(0), D = S(null), k = t(() => b.value && C.value < 100), A = t(() => !!(p.value.disabled || p.value.readonly)), ee = t(() => E.value > 0), M = t(() => {
2299
+ let s = e, { density: l, densityClass: u, touched: d, value: f, vuetifyBindings: p } = tn(s, o), m = bn, h = F(), _ = w(null), y = w(0), S = w(null), T = w(0), E = w(null), O = t(() => _.value && y.value < 100), k = t(() => !!(p.value.disabled || p.value.readonly)), j = t(() => T.value > 0), M = t(() => {
2000
2300
  var e;
2001
- return (e = w.value) == null ? f.value ? f.value : null : e;
2301
+ return (e = S.value) == null ? f.value ? f.value : null : e;
2002
2302
  }), N = t(() => !!f.value);
2003
- function P() {
2004
- w.value && (URL.revokeObjectURL(w.value), w.value = null);
2303
+ function ee() {
2304
+ S.value && (URL.revokeObjectURL(S.value), S.value = null);
2005
2305
  }
2006
2306
  function I() {
2007
- f.value = null, C.value = 0, b.value = null, P(), ne();
2307
+ f.value = null, y.value = 0, _.value = null, ee(), H();
2008
2308
  }
2009
- function z(e) {
2010
- I(), Xt(s.control, e);
2309
+ function L(e) {
2310
+ I(), Cn(s.control, e);
2011
2311
  }
2012
- let { setupTouchInterval: B, clearTouchInterval: ne } = Yt(f, () => s.comms, () => s.touchInterval, z);
2013
- y(() => P());
2014
- function re() {
2015
- return V.apply(this, arguments);
2312
+ let { setupTouchInterval: z, clearTouchInterval: H } = Sn(f, () => s.comms, () => s.touchInterval, L);
2313
+ x(() => ee());
2314
+ function U() {
2315
+ return te.apply(this, arguments);
2016
2316
  }
2017
- function V() {
2018
- return V = an(function* () {
2019
- f.value && (yield s.comms.delete(f.value)), I();
2020
- }), V.apply(this, arguments);
2317
+ function te() {
2318
+ return te = Fn(function* () {
2319
+ f.value && (yield s.comms.delete(f.value)), I(), d.value = !0;
2320
+ }), te.apply(this, arguments);
2021
2321
  }
2022
- function ie(e) {
2023
- return H.apply(this, arguments);
2322
+ function W(e) {
2323
+ return G.apply(this, arguments);
2024
2324
  }
2025
- function H() {
2026
- return H = an(function* (e) {
2027
- C.value = -1, b.value = e, P(), w.value = URL.createObjectURL(e);
2325
+ function G() {
2326
+ return G = Fn(function* (e) {
2327
+ y.value = -1, _.value = e, ee(), S.value = URL.createObjectURL(e);
2028
2328
  try {
2029
2329
  f.value = yield s.comms.upload(e, (e, t) => {
2030
- C.value = Math.round(e * 100 / t);
2031
- }), C.value = 100, B();
2330
+ y.value = Math.round(e * 100 / t);
2331
+ }), y.value = 100, d.value = !0, z();
2032
2332
  } catch (e) {
2033
- throw C.value = 0, b.value = null, P(), e;
2333
+ throw y.value = 0, _.value = null, ee(), e;
2034
2334
  }
2035
- }), H.apply(this, arguments);
2335
+ }), G.apply(this, arguments);
2036
2336
  }
2037
- function U(e) {
2337
+ function ne(e) {
2038
2338
  if (!e.type.startsWith("image/")) {
2039
2339
  console.error("Only image files are supported");
2040
2340
  return;
2041
2341
  }
2042
- ie(e);
2342
+ W(e);
2043
2343
  }
2044
- function ae(e) {
2344
+ function re(e) {
2045
2345
  var t;
2046
2346
  let n = e.target, r = (t = n.files) == null ? void 0 : t[0];
2047
- n.value = "", r && U(r);
2347
+ n.value = "", r && ne(r);
2048
2348
  }
2049
- function oe() {
2050
- A.value || (E.value += 1);
2349
+ function ie() {
2350
+ k.value || (T.value += 1);
2051
2351
  }
2052
- function W() {
2053
- E.value = Math.max(0, E.value - 1);
2352
+ function ae() {
2353
+ T.value = Math.max(0, T.value - 1);
2054
2354
  }
2055
- function G(e) {
2355
+ function K(e) {
2056
2356
  var t;
2057
- if (E.value = 0, A.value) return;
2357
+ if (T.value = 0, k.value) return;
2058
2358
  let n = (t = e.dataTransfer) == null || (t = t.files) == null ? void 0 : t[0];
2059
- n && U(n);
2359
+ n && ne(n);
2060
2360
  }
2061
2361
  return (e, t) => {
2062
- let o = T("v-progress-linear"), y = T("v-img");
2063
- return x(), n(j(It), m(J(J({}, s), {}, { loading: k.value }), {
2064
- class: ["df-image-field", j(u)],
2362
+ let o = D("v-progress-linear"), x = D("v-img");
2363
+ return C(), n(P(rn), g(Z(Z({}, s), {}, { loading: O.value }), {
2364
+ class: ["df-image-field", P(u)],
2065
2365
  clearable: "",
2066
- "onClick:clear": re,
2366
+ "onClick:clear": U,
2067
2367
  onBlur: t[2] || (t[2] = (e) => d.value = !0)
2068
2368
  }), {
2069
- "prepend-inner": F(() => [c(j(R), { name: "mdi-image" })]),
2070
- loader: F(() => [b.value && C.value < 100 ? (x(), n(o, {
2369
+ "prepend-inner": R(() => [c(P(V), { name: "mdi-image" })]),
2370
+ loader: R(() => [_.value && y.value < 100 ? (C(), n(o, {
2071
2371
  key: 0,
2072
- "model-value": C.value,
2073
- indeterminate: C.value === -1
2372
+ "model-value": y.value,
2373
+ indeterminate: y.value === -1
2074
2374
  }, null, 8, ["model-value", "indeterminate"])) : r("", !0)]),
2075
- default: F((e) => [a("div", {
2076
- class: g(["d-flex w-100 position-relative df-input-wrapper df-image-wrapper", [j(l), {
2077
- "df-image-dragging": ee.value,
2078
- "df-image-disabled": A.value
2375
+ default: R((e) => [a("div", {
2376
+ class: v(["d-flex w-100 position-relative df-input-wrapper df-image-wrapper", [P(l), {
2377
+ "df-image-dragging": j.value,
2378
+ "df-image-disabled": k.value
2079
2379
  }]]),
2080
- onDragenter: L(oe, ["prevent"]),
2081
- onDragover: t[0] || (t[0] = L(() => {}, ["prevent"])),
2082
- onDragleave: L(W, ["prevent"]),
2083
- onDrop: L(G, ["prevent"]),
2084
- onClick: t[1] || (t[1] = L(() => {}, ["stop"]))
2380
+ onDragenter: B(ie, ["prevent"]),
2381
+ onDragover: t[0] || (t[0] = B(() => {}, ["prevent"])),
2382
+ onDragleave: B(ae, ["prevent"]),
2383
+ onDrop: B(K, ["prevent"]),
2384
+ onClick: t[1] || (t[1] = B(() => {}, ["stop"]))
2085
2385
  }, [
2086
2386
  a("input", {
2087
- id: j(_),
2387
+ id: P(h),
2088
2388
  ref_key: "fileInputRef",
2089
- ref: D,
2389
+ ref: E,
2090
2390
  type: "file",
2091
2391
  accept: "image/*",
2092
2392
  class: "df-image-native-input",
2093
- disabled: A.value,
2094
- name: j(p).name,
2095
- onChange: ae,
2393
+ disabled: k.value,
2394
+ name: P(p).name,
2395
+ onChange: re,
2096
2396
  onFocus: (t) => e.focus(),
2097
2397
  onBlur: (t) => e.blur()
2098
- }, null, 40, cn),
2099
- M.value ? (x(), i("label", {
2398
+ }, null, 40, Rn),
2399
+ M.value ? (C(), i("label", {
2100
2400
  key: 0,
2101
- for: j(_),
2401
+ for: P(h),
2102
2402
  class: "df-image-preview-label"
2103
- }, [c(y, {
2403
+ }, [c(x, {
2104
2404
  src: M.value,
2105
2405
  class: "df-image-preview",
2106
- style: v(b.value && C.value < 100 ? "visibility: hidden" : "")
2107
- }, null, 8, ["src", "style"])], 8, ln)) : (x(), i("label", {
2406
+ style: b(_.value && y.value < 100 ? "visibility: hidden" : "")
2407
+ }, null, 8, ["src", "style"])], 8, zn)) : (C(), i("label", {
2108
2408
  key: 1,
2109
- for: j(_),
2409
+ for: P(h),
2110
2410
  class: "df-image-placeholder"
2111
- }, [c(j(R), { name: "mdi-tray-arrow-up" }), a("span", null, O(j(h).ImageDropHint), 1)], 8, un)),
2112
- M.value && !A.value ? (x(), i("label", {
2411
+ }, [c(P(V), { name: "mdi-tray-arrow-up" }), a("span", null, A(P(m)("ImageDropHint")), 1)], 8, Bn)),
2412
+ M.value && !k.value ? (C(), i("label", {
2113
2413
  key: 2,
2114
- for: j(_),
2414
+ for: P(h),
2115
2415
  class: "df-image-replace-btn",
2116
- title: j(h).ImageReplace
2117
- }, [c(j(R), { name: "mdi-pencil" })], 8, dn)) : r("", !0),
2118
- N.value ? (x(), i("a", {
2416
+ title: P(m)("ImageReplace")
2417
+ }, [c(P(V), { name: "mdi-pencil" })], 8, Vn)) : r("", !0),
2418
+ N.value ? (C(), i("a", {
2119
2419
  key: 3,
2120
- href: j(f),
2420
+ href: P(f),
2121
2421
  download: "",
2122
2422
  target: "_blank",
2123
2423
  rel: "noopener",
2124
2424
  class: "df-image-download-btn",
2125
- title: j(h).ImageDownload,
2126
- "aria-label": j(h).ImageDownload
2127
- }, [c(j(R), { name: "mdi-download" })], 8, fn)) : r("", !0)
2425
+ title: P(m)("ImageDownload"),
2426
+ "aria-label": P(m)("ImageDownload")
2427
+ }, [c(P(V), { name: "mdi-download" })], 8, Hn)) : r("", !0)
2128
2428
  ], 34)]),
2129
2429
  _: 1
2130
2430
  }, 16, ["class"]);
2131
2431
  };
2132
2432
  }
2133
- }), mn = /* @__PURE__ */ l({
2433
+ }), Wn = /* @__PURE__ */ l({
2134
2434
  __name: "df-input",
2135
- props: /*@__PURE__*/ p({
2435
+ props: /*@__PURE__*/ h({
2136
2436
  inputType: {},
2137
2437
  precision: {},
2138
2438
  step: {},
@@ -2152,7 +2452,7 @@ var on = ["title", "aria-label"], sn = /* @__PURE__ */ l({
2152
2452
  passthroughAttrs: {},
2153
2453
  density: {},
2154
2454
  variant: {}
2155
- }, J(J({}, Z), {}, {
2455
+ }, Z(Z({}, en), {}, {
2156
2456
  inputType: "text",
2157
2457
  precision: null,
2158
2458
  step: void 0,
@@ -2161,52 +2461,52 @@ var on = ["title", "aria-label"], sn = /* @__PURE__ */ l({
2161
2461
  })),
2162
2462
  emits: ["update:modelValue", "click:clear"],
2163
2463
  setup(e, { emit: a }) {
2164
- let o = e, { densityClass: s, isRendered: l, label: u, shownErrors: d, touched: p, value: h, visibilityClass: _, vuetifyBindings: v } = Q(o, a), { inputType: y, max: b, min: S, precision: C, step: w } = A(o), E = t(() => y.value === "number"), D = t(() => E.value ? {
2165
- min: j(S),
2166
- max: j(b),
2167
- precision: j(C),
2168
- step: j(w)
2464
+ let o = e, { densityClass: s, isRendered: l, label: u, shownErrors: d, touched: f, value: p, visibilityClass: h, vuetifyBindings: _ } = tn(o, a), { inputType: y, max: b, min: x, precision: S, step: w } = M(o), T = t(() => y.value === "number"), E = t(() => T.value ? {
2465
+ min: P(x),
2466
+ max: P(b),
2467
+ precision: P(S),
2468
+ step: P(w)
2169
2469
  } : {});
2170
2470
  return (e, t) => {
2171
- let a = T("v-text-field"), o = T("v-number-input");
2172
- return j(l) ? (x(), i("div", {
2471
+ let a = D("v-text-field"), o = D("v-number-input");
2472
+ return P(l) ? (C(), i("div", {
2173
2473
  key: 0,
2174
- class: g(["df-input-container", [j(s), j(_)]])
2175
- }, [E.value ? (x(), n(o, m({
2474
+ class: v(["df-input-container", [P(s), P(h)]])
2475
+ }, [T.value ? (C(), n(o, g({
2176
2476
  key: 1,
2177
- modelValue: j(h),
2178
- "onUpdate:modelValue": t[2] || (t[2] = (e) => f(h) ? h.value = e : null),
2477
+ modelValue: P(p),
2478
+ "onUpdate:modelValue": t[2] || (t[2] = (e) => m(p) ? p.value = e : null),
2179
2479
  density: "compact",
2180
2480
  "control-variant": "stacked"
2181
- }, J(J({}, j(v)), D.value)), {
2182
- label: F((e) => [c(j(X), {
2481
+ }, Z(Z({}, P(_)), E.value), { onBlur: t[3] || (t[3] = (e) => f.value = !0) }), {
2482
+ label: R((e) => [c(P($), {
2183
2483
  data: e,
2184
- label: j(u)
2484
+ label: P(u)
2185
2485
  }, null, 8, ["data", "label"])]),
2186
- message: F(({ message: e }) => [c(j(Y), {
2486
+ message: R(({ message: e }) => [c(P(Q), {
2187
2487
  message: e,
2188
- errors: j(d)
2488
+ errors: P(d)
2189
2489
  }, null, 8, ["message", "errors"])]),
2190
2490
  _: 1
2191
- }, 16, ["modelValue"])) : (x(), n(a, m({
2491
+ }, 16, ["modelValue"])) : (C(), n(a, g({
2192
2492
  key: 0,
2193
- modelValue: j(h),
2194
- "onUpdate:modelValue": t[0] || (t[0] = (e) => f(h) ? h.value = e : null),
2195
- type: j(y)
2196
- }, j(v), { onBlur: t[1] || (t[1] = (e) => p.value = !0) }), {
2197
- label: F((e) => [c(j(X), {
2493
+ modelValue: P(p),
2494
+ "onUpdate:modelValue": t[0] || (t[0] = (e) => m(p) ? p.value = e : null),
2495
+ type: P(y)
2496
+ }, P(_), { onBlur: t[1] || (t[1] = (e) => f.value = !0) }), {
2497
+ label: R((e) => [c(P($), {
2198
2498
  data: e,
2199
- label: j(u)
2499
+ label: P(u)
2200
2500
  }, null, 8, ["data", "label"])]),
2201
- message: F(({ message: e }) => [c(j(Y), {
2501
+ message: R(({ message: e }) => [c(P(Q), {
2202
2502
  message: e,
2203
- errors: j(d)
2503
+ errors: P(d)
2204
2504
  }, null, 8, ["message", "errors"])]),
2205
2505
  _: 1
2206
2506
  }, 16, ["modelValue", "type"]))], 2)) : r("", !0);
2207
2507
  };
2208
2508
  }
2209
- }), hn = Ae.create({
2509
+ }), Gn = Oe.create({
2210
2510
  name: "classAttribute",
2211
2511
  addGlobalAttributes() {
2212
2512
  return [{
@@ -2224,8 +2524,8 @@ var on = ["title", "aria-label"], sn = /* @__PURE__ */ l({
2224
2524
  }];
2225
2525
  }
2226
2526
  });
2227
- function gn(e, t) {
2228
- return je.create({
2527
+ function Kn(e, t) {
2528
+ return ke.create({
2229
2529
  name: e,
2230
2530
  parseHTML() {
2231
2531
  return [{ tag: `span.${t}` }];
@@ -2233,13 +2533,13 @@ function gn(e, t) {
2233
2533
  renderHTML({ HTMLAttributes: e }) {
2234
2534
  return [
2235
2535
  "span",
2236
- Ne(e, { class: t }),
2536
+ je(e, { class: t }),
2237
2537
  0
2238
2538
  ];
2239
2539
  }
2240
2540
  });
2241
2541
  }
2242
- var _n = gn("marker", "marker"), vn = gn("spoiler", "spoiler"), yn = [
2542
+ var qn = Kn("marker", "marker"), Jn = Kn("spoiler", "spoiler"), Yn = [
2243
2543
  {
2244
2544
  key: "ArticleCategory",
2245
2545
  kind: "heading",
@@ -2289,67 +2589,67 @@ var _n = gn("marker", "marker"), vn = gn("spoiler", "spoiler"), yn = [
2289
2589
  className: "fancy-code fancy-code-bright"
2290
2590
  }
2291
2591
  ];
2292
- function bn(e) {
2592
+ function Xn(e) {
2293
2593
  let { state: t } = e, { $from: n } = t.selection;
2294
2594
  return n.depth > 0 || t.doc.content.size === 0 ? n : t.doc.resolve(Math.min(1, t.doc.content.size));
2295
2595
  }
2296
- function xn(e) {
2297
- return bn(e).parent;
2596
+ function Zn(e) {
2597
+ return Xn(e).parent;
2298
2598
  }
2299
- function Sn(e, t) {
2300
- let n = bn(e);
2599
+ function Qn(e, t) {
2600
+ let n = Xn(e);
2301
2601
  for (let e = n.depth; e >= 0; --e) if (n.node(e).type.name === t) return n.node(e);
2302
2602
  return null;
2303
2603
  }
2304
- function Cn(e, t) {
2604
+ function $n(e, t) {
2305
2605
  switch (t.kind) {
2306
2606
  case "heading": {
2307
- let n = xn(e);
2607
+ let n = Zn(e);
2308
2608
  return n.type.name === "heading" && n.attrs.level === t.level && n.attrs.class === t.className;
2309
2609
  }
2310
2610
  case "paragraph": {
2311
- let n = xn(e);
2611
+ let n = Zn(e);
2312
2612
  return n.type.name === "paragraph" && n.attrs.class === t.className;
2313
2613
  }
2314
2614
  case "codeBlock": {
2315
- let n = xn(e);
2615
+ let n = Zn(e);
2316
2616
  return n.type.name === "codeBlock" && n.attrs.class === t.className;
2317
2617
  }
2318
2618
  case "blockquote": {
2319
- let n = Sn(e, "blockquote");
2619
+ let n = Qn(e, "blockquote");
2320
2620
  return !!n && n.attrs.class === t.className;
2321
2621
  }
2322
2622
  case "mark": return e.isActive(t.markName);
2323
2623
  default: return !1;
2324
2624
  }
2325
2625
  }
2326
- function wn(e, t) {
2626
+ function er(e, t) {
2327
2627
  let n = e.chain().focus(), { $from: r } = e.state.selection;
2328
- switch (t.kind !== "mark" && r.depth === 0 && e.state.doc.content.size > 0 && n.setTextSelection(bn(e).pos), t.kind) {
2628
+ switch (t.kind !== "mark" && r.depth === 0 && e.state.doc.content.size > 0 && n.setTextSelection(Xn(e).pos), t.kind) {
2329
2629
  case "heading":
2330
- Cn(e, t) ? n.setParagraph().updateAttributes("paragraph", { class: null }).run() : n.setNode("heading", { level: t.level }).updateAttributes("heading", { class: t.className }).run();
2630
+ $n(e, t) ? n.setParagraph().updateAttributes("paragraph", { class: null }).run() : n.setNode("heading", { level: t.level }).updateAttributes("heading", { class: t.className }).run();
2331
2631
  break;
2332
2632
  case "paragraph":
2333
- Cn(e, t) ? n.setParagraph().updateAttributes("paragraph", { class: null }).run() : n.setParagraph().updateAttributes("paragraph", { class: t.className }).run();
2633
+ $n(e, t) ? n.setParagraph().updateAttributes("paragraph", { class: null }).run() : n.setParagraph().updateAttributes("paragraph", { class: t.className }).run();
2334
2634
  break;
2335
2635
  case "blockquote":
2336
- Cn(e, t) ? n.unsetBlockquote().run() : Sn(e, "blockquote") ? n.updateAttributes("blockquote", { class: t.className }).run() : n.setBlockquote().updateAttributes("blockquote", { class: t.className }).run();
2636
+ $n(e, t) ? n.unsetBlockquote().run() : Qn(e, "blockquote") ? n.updateAttributes("blockquote", { class: t.className }).run() : n.setBlockquote().updateAttributes("blockquote", { class: t.className }).run();
2337
2637
  break;
2338
2638
  case "codeBlock":
2339
- Cn(e, t) ? n.toggleCodeBlock().updateAttributes("paragraph", { class: null }).run() : xn(e).type.name === "codeBlock" ? n.updateAttributes("codeBlock", { class: t.className }).run() : n.setCodeBlock().updateAttributes("codeBlock", { class: t.className }).run();
2639
+ $n(e, t) ? n.toggleCodeBlock().updateAttributes("paragraph", { class: null }).run() : Zn(e).type.name === "codeBlock" ? n.updateAttributes("codeBlock", { class: t.className }).run() : n.setCodeBlock().updateAttributes("codeBlock", { class: t.className }).run();
2340
2640
  break;
2341
2641
  case "mark": n.toggleMark(t.markName).run();
2342
2642
  }
2343
2643
  }
2344
2644
  //#endregion
2345
2645
  //#region src/helpers/rtf-editor/image-paste.ts
2346
- function Tn(e) {
2646
+ function tr(e) {
2347
2647
  return new Promise((t, n) => {
2348
2648
  let r = new FileReader();
2349
2649
  r.onload = () => t(r.result), r.onerror = () => n(r.error), r.readAsDataURL(e);
2350
2650
  });
2351
2651
  }
2352
- function En(e) {
2652
+ function nr(e) {
2353
2653
  if (!e) return [];
2354
2654
  let t = [];
2355
2655
  return Array.from(e.items || []).forEach((e) => {
@@ -2361,25 +2661,25 @@ function En(e) {
2361
2661
  e.type.startsWith("image/") && t.push(e);
2362
2662
  }), t;
2363
2663
  }
2364
- function Dn(e) {
2664
+ function rr(e) {
2365
2665
  let t = 0;
2366
2666
  return e.forEach((e) => {
2367
- e.type.name === "image" ? t += 1 : e.content.size && (t += Dn(e.content));
2667
+ e.type.name === "image" ? t += 1 : e.content.size && (t += rr(e.content));
2368
2668
  }), t;
2369
2669
  }
2370
- function On(e, t, n) {
2670
+ function ir(e, t, n) {
2371
2671
  let r = [];
2372
2672
  return e.forEach((e) => {
2373
- e.type.name === "image" && n.index < t.length ? (r.push(e.type.create(J(J({}, e.attrs), {}, { src: t[n.index] }), e.content, e.marks)), n.index += 1) : e.content.size ? r.push(e.copy(On(e.content, t, n))) : r.push(e);
2374
- }), Pe.fromArray(r);
2673
+ e.type.name === "image" && n.index < t.length ? (r.push(e.type.create(Z(Z({}, e.attrs), {}, { src: t[n.index] }), e.content, e.marks)), n.index += 1) : e.content.size ? r.push(e.copy(ir(e.content, t, n))) : r.push(e);
2674
+ }), Me.fromArray(r);
2375
2675
  }
2376
- function kn(e) {
2676
+ function ar(e) {
2377
2677
  return (t, n, r) => {
2378
- let i = En(n.clipboardData);
2379
- return i.length !== 0 && (n.preventDefault(), Promise.all(i.map(Tn)).then((n) => {
2678
+ let i = nr(n.clipboardData);
2679
+ return i.length !== 0 && (n.preventDefault(), Promise.all(i.map(tr)).then((n) => {
2380
2680
  var i;
2381
- if (Dn(r.content) > 0) {
2382
- let e = On(r.content, n, { index: 0 }), i = new Fe(e, r.openStart, r.openEnd);
2681
+ if (rr(r.content) > 0) {
2682
+ let e = ir(r.content, n, { index: 0 }), i = new Ne(e, r.openStart, r.openEnd);
2383
2683
  t.dispatch(t.state.tr.replaceSelection(i).scrollIntoView());
2384
2684
  return;
2385
2685
  }
@@ -2392,11 +2692,11 @@ function kn(e) {
2392
2692
  }
2393
2693
  //#endregion
2394
2694
  //#region src/helpers/rtf-editor/link-with-download.ts
2395
- var An = Ie.extend({
2695
+ var or = Pe.extend({
2396
2696
  name: "link",
2397
2697
  addAttributes() {
2398
2698
  var e;
2399
- return J(J({}, (e = this.parent) == null ? void 0 : e.call(this)), {}, { download: {
2699
+ return Z(Z({}, (e = this.parent) == null ? void 0 : e.call(this)), {}, { download: {
2400
2700
  default: null,
2401
2701
  parseHTML: (e) => e.getAttribute("download"),
2402
2702
  renderHTML: (e) => e.download ? { download: e.download } : {}
@@ -2405,7 +2705,7 @@ var An = Ie.extend({
2405
2705
  });
2406
2706
  //#endregion
2407
2707
  //#region src/helpers/rtf-editor/media-embed.ts
2408
- function jn(e) {
2708
+ function sr(e) {
2409
2709
  let t;
2410
2710
  try {
2411
2711
  t = new URL(e);
@@ -2431,7 +2731,7 @@ function jn(e) {
2431
2731
  }
2432
2732
  return null;
2433
2733
  }
2434
- var Mn = Me.create({
2734
+ var cr = Ae.create({
2435
2735
  name: "mediaEmbed",
2436
2736
  group: "block",
2437
2737
  atom: !0,
@@ -2443,7 +2743,7 @@ var Mn = Me.create({
2443
2743
  return [{ tag: "iframe.media-embed" }];
2444
2744
  },
2445
2745
  renderHTML({ HTMLAttributes: e }) {
2446
- return ["iframe", Ne({
2746
+ return ["iframe", je({
2447
2747
  class: "media-embed",
2448
2748
  frameborder: "0",
2449
2749
  allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",
@@ -2453,32 +2753,32 @@ var Mn = Me.create({
2453
2753
  });
2454
2754
  //#endregion
2455
2755
  //#region src/helpers/rtf-editor/use-editor-tick.ts
2456
- function Nn(e) {
2457
- let t = S(0), n, r = () => {
2756
+ function lr(e) {
2757
+ let t = w(0), n, r = () => {
2458
2758
  t.value += 1;
2459
2759
  }, i = (e) => {
2460
2760
  n == null || n.off("transaction", r), n == null || n.off("update", r), n = e, n == null || n.on("transaction", r), n == null || n.on("update", r);
2461
2761
  };
2462
- return N(e, i, { immediate: !0 }), y(() => i(void 0)), t;
2762
+ return I(e, i, { immediate: !0 }), x(() => i(void 0)), t;
2463
2763
  }
2464
2764
  //#endregion
2465
2765
  //#region src/helpers/rtf-editor/rtf-toolbar.vue?vue&type=script&setup=true&lang.ts
2466
- var Pn = { class: "rtf-toolbar-group" }, Fn = { class: "d-flex justify-end ga-2 mt-2" }, In = { class: "d-flex justify-space-between align-center ga-2 mt-2" }, Ln = { class: "d-flex justify-end mt-2" }, Rn = /* @__PURE__ */ l({
2766
+ var ur = { class: "rtf-toolbar-group" }, dr = { class: "d-flex justify-end ga-2 mt-2" }, fr = { class: "d-flex justify-space-between align-center ga-2 mt-2" }, pr = { class: "d-flex justify-end mt-2" }, mr = /* @__PURE__ */ l({
2467
2767
  __name: "rtf-toolbar",
2468
2768
  props: {
2469
2769
  editor: { default: void 0 },
2470
2770
  buttonSize: { default: "small" }
2471
2771
  },
2472
2772
  setup(o) {
2473
- let l = o, u = t(() => l.buttonSize), d = Lt, f = t(() => l.editor), p = Nn(f), h = t(() => {
2773
+ let l = o, u = t(() => l.buttonSize), d = bn, f = t(() => l.editor), p = lr(f), m = t(() => {
2474
2774
  var e;
2475
2775
  return p.value, !!((e = l.editor) != null && e.isEditable);
2476
- }), _ = t(() => ({
2776
+ }), h = t(() => ({
2477
2777
  size: u.value,
2478
2778
  density: "comfortable",
2479
2779
  variant: "text",
2480
- disabled: !h.value
2481
- })), v = t(() => ({
2780
+ disabled: !m.value
2781
+ })), _ = t(() => ({
2482
2782
  buttonSize: u.value,
2483
2783
  buttonDensity: "comfortable"
2484
2784
  })), y = t(() => {
@@ -2507,210 +2807,210 @@ var Pn = { class: "rtf-toolbar-group" }, Fn = { class: "d-flex justify-end ga-2
2507
2807
  if (y.value.alignRight) return "right";
2508
2808
  if (y.value.alignJustify) return "justify";
2509
2809
  });
2510
- function w(e) {
2810
+ function x(e) {
2511
2811
  var t;
2512
2812
  typeof e == "string" && ((t = f.value) == null || t.chain().focus().setTextAlign(e).run());
2513
2813
  }
2514
- let E = [];
2515
- function D(e, t, n, r, i) {
2516
- let a = new B({
2814
+ let S = [];
2815
+ function E(e, t, n, r, i) {
2816
+ let a = new te({
2517
2817
  value: {
2518
2818
  icon: e,
2519
2819
  renderAs: "text",
2520
2820
  showIcon: !0,
2521
2821
  showLabel: !1
2522
2822
  },
2523
- actions: [new ne((e, n, r) => (t(), n(e, r)))]
2823
+ actions: [new W((e, n, r) => (t(), n(e, r)))]
2524
2824
  });
2525
- return E.push({
2825
+ return S.push({
2526
2826
  action: a,
2527
2827
  title: n,
2528
2828
  disabled: r,
2529
2829
  active: i
2530
2830
  }), a;
2531
2831
  }
2532
- function k({ action: e, title: t, disabled: n, active: r }) {
2832
+ function O({ action: e, title: t, disabled: n, active: r }) {
2533
2833
  var i;
2534
2834
  let a = {
2535
2835
  title: t(),
2536
2836
  icon: !0
2537
2837
  };
2538
- r && (a.active = r()), ce((i = e.value.passthroughAttrs) == null ? {} : i, a) || (e.value = J(J({}, e.value), {}, { passthroughAttrs: a }));
2838
+ r && (a.active = r()), oe((i = e.value.passthroughAttrs) == null ? {} : i, a) || (e.value = Z(Z({}, e.value), {}, { passthroughAttrs: a }));
2539
2839
  let o = !n();
2540
2840
  e.enabled !== o && (e.access = o ? "editable" : "disabled");
2541
2841
  }
2542
- let A = [D("mdi-undo", () => {
2842
+ let k = [E("mdi-undo", () => {
2543
2843
  var e;
2544
2844
  return (e = f.value) == null ? void 0 : e.chain().focus().undo().run();
2545
- }, () => d.Undo, () => !h.value || !y.value.canUndo), D("mdi-redo", () => {
2845
+ }, () => d("Undo"), () => !m.value || !y.value.canUndo), E("mdi-redo", () => {
2546
2846
  var e;
2547
2847
  return (e = f.value) == null ? void 0 : e.chain().focus().redo().run();
2548
- }, () => d.Redo, () => !h.value || !y.value.canRedo)], ee = [D("mdi-format-bold", () => {
2848
+ }, () => d("Redo"), () => !m.value || !y.value.canRedo)], j = [E("mdi-format-bold", () => {
2549
2849
  var e;
2550
2850
  return (e = f.value) == null ? void 0 : e.chain().focus().toggleBold().run();
2551
- }, () => d.Bold, () => !h.value, () => y.value.bold), D("mdi-format-italic", () => {
2851
+ }, () => d("Bold"), () => !m.value, () => y.value.bold), E("mdi-format-italic", () => {
2552
2852
  var e;
2553
2853
  return (e = f.value) == null ? void 0 : e.chain().focus().toggleItalic().run();
2554
- }, () => d.Italic, () => !h.value, () => y.value.italic)], M = [
2854
+ }, () => d("Italic"), () => !m.value, () => y.value.italic)], M = [
2555
2855
  {
2556
2856
  value: "left",
2557
2857
  icon: "mdi-format-align-left",
2558
- title: () => d.AlignLeft
2858
+ title: () => d("AlignLeft")
2559
2859
  },
2560
2860
  {
2561
2861
  value: "center",
2562
2862
  icon: "mdi-format-align-center",
2563
- title: () => d.AlignCenter
2863
+ title: () => d("AlignCenter")
2564
2864
  },
2565
2865
  {
2566
2866
  value: "right",
2567
2867
  icon: "mdi-format-align-right",
2568
- title: () => d.AlignRight
2868
+ title: () => d("AlignRight")
2569
2869
  },
2570
2870
  {
2571
2871
  value: "justify",
2572
2872
  icon: "mdi-format-align-justify",
2573
- title: () => d.AlignJustify
2873
+ title: () => d("AlignJustify")
2574
2874
  }
2575
- ].map((e) => D(e.icon, () => w(e.value), e.title, () => !h.value, () => b.value === e.value)), te = [
2576
- D("mdi-format-list-bulleted", () => {
2875
+ ].map((e) => E(e.icon, () => x(e.value), e.title, () => !m.value, () => b.value === e.value)), N = [
2876
+ E("mdi-format-list-bulleted", () => {
2577
2877
  var e;
2578
2878
  return (e = f.value) == null ? void 0 : e.chain().focus().toggleBulletList().run();
2579
- }, () => d.BulletedList, () => !h.value, () => y.value.bulletList),
2580
- D("mdi-format-list-numbered", () => {
2879
+ }, () => d("BulletedList"), () => !m.value, () => y.value.bulletList),
2880
+ E("mdi-format-list-numbered", () => {
2581
2881
  var e;
2582
2882
  return (e = f.value) == null ? void 0 : e.chain().focus().toggleOrderedList().run();
2583
- }, () => d.NumberedList, () => !h.value, () => y.value.orderedList),
2584
- D("mdi-format-indent-decrease", () => {
2883
+ }, () => d("NumberedList"), () => !m.value, () => y.value.orderedList),
2884
+ E("mdi-format-indent-decrease", () => {
2585
2885
  var e;
2586
2886
  return (e = f.value) == null ? void 0 : e.chain().focus().liftListItem("listItem").run();
2587
- }, () => d.Outdent, () => !h.value || !y.value.canLift),
2588
- D("mdi-format-indent-increase", () => {
2887
+ }, () => d("Outdent"), () => !m.value || !y.value.canLift),
2888
+ E("mdi-format-indent-increase", () => {
2589
2889
  var e;
2590
2890
  return (e = f.value) == null ? void 0 : e.chain().focus().sinkListItem("listItem").run();
2591
- }, () => d.Indent, () => !h.value || !y.value.canSink)
2891
+ }, () => d("Indent"), () => !m.value || !y.value.canSink)
2592
2892
  ];
2593
- P(() => {
2594
- E.forEach(k);
2893
+ L(() => {
2894
+ S.forEach(O);
2595
2895
  });
2596
- let N = t(() => [
2896
+ let ee = t(() => [
2597
2897
  {
2598
2898
  level: 0,
2599
- label: d.Paragraph
2899
+ label: d("Paragraph")
2600
2900
  },
2601
2901
  {
2602
2902
  level: 1,
2603
- label: d.Heading1
2903
+ label: d("Heading1")
2604
2904
  },
2605
2905
  {
2606
2906
  level: 2,
2607
- label: d.Heading2
2907
+ label: d("Heading2")
2608
2908
  },
2609
2909
  {
2610
2910
  level: 3,
2611
- label: d.Heading3
2911
+ label: d("Heading3")
2612
2912
  },
2613
2913
  {
2614
2914
  level: 4,
2615
- label: d.Heading4
2915
+ label: d("Heading4")
2616
2916
  },
2617
2917
  {
2618
2918
  level: 5,
2619
- label: d.Heading5
2919
+ label: d("Heading5")
2620
2920
  },
2621
2921
  {
2622
2922
  level: 6,
2623
- label: d.Heading6
2923
+ label: d("Heading6")
2624
2924
  }
2625
2925
  ]);
2626
- function L(e) {
2926
+ function F(e) {
2627
2927
  var t, n;
2628
2928
  return p.value, e === 0 ? !!((t = f.value) != null && t.isActive("paragraph")) : !!((n = f.value) != null && n.isActive("heading", { level: e }));
2629
2929
  }
2630
- let z = t(() => {
2930
+ let I = t(() => {
2631
2931
  var e, t;
2632
- return (e = (t = N.value.find((e) => L(e.level))) == null ? void 0 : t.label) == null ? d.Paragraph : e;
2932
+ return (e = (t = ee.value.find((e) => F(e.level))) == null ? void 0 : t.label) == null ? d("Paragraph") : e;
2633
2933
  });
2634
- function re(e) {
2934
+ function B(e) {
2635
2935
  var t;
2636
2936
  let n = (t = f.value) == null ? void 0 : t.chain().focus();
2637
2937
  n && (e === 0 ? n.setParagraph().run() : n.toggleHeading({ level: e }).run());
2638
2938
  }
2639
- let V = yn;
2640
- function ie(e) {
2641
- return p.value, !!f.value && Cn(f.value, e);
2939
+ let H = Yn;
2940
+ function U(e) {
2941
+ return p.value, !!f.value && $n(f.value, e);
2642
2942
  }
2643
- let H = S(""), U = S(!1);
2644
- function ae() {
2943
+ let G = w(""), ne = w(!1);
2944
+ function re() {
2645
2945
  var e, t, n;
2646
2946
  let r = (e = (t = f.value) == null ? void 0 : t.getAttributes("link")) == null ? {} : e;
2647
- H.value = (n = r.href) == null ? "" : n, U.value = !!r.download;
2947
+ G.value = (n = r.href) == null ? "" : n, ne.value = !!r.download;
2648
2948
  }
2649
- function oe() {
2949
+ function ie() {
2650
2950
  var e;
2651
- H.value && ((e = f.value) == null || e.chain().focus().extendMarkRange("link").setLink({ href: H.value }).updateAttributes("link", { download: U.value ? "file" : null }).run());
2951
+ G.value && ((e = f.value) == null || e.chain().focus().extendMarkRange("link").setLink({ href: G.value }).updateAttributes("link", { download: ne.value ? "file" : null }).run());
2652
2952
  }
2653
- function W() {
2953
+ function ae() {
2654
2954
  var e;
2655
2955
  (e = f.value) == null || e.chain().focus().unsetLink().run();
2656
2956
  }
2657
- let G = S(""), se = S();
2658
- function le() {
2957
+ let K = w(""), q = w();
2958
+ function se() {
2659
2959
  var e;
2660
- G.value && ((e = f.value) == null || e.chain().focus().setImage({ src: G.value }).run(), G.value = "");
2960
+ K.value && ((e = f.value) == null || e.chain().focus().setImage({ src: K.value }).run(), K.value = "");
2661
2961
  }
2662
- function ue() {
2962
+ function ce() {
2663
2963
  var e;
2664
- (e = se.value) == null || e.click();
2964
+ (e = q.value) == null || e.click();
2665
2965
  }
2666
- function de(e) {
2667
- return K.apply(this, arguments);
2966
+ function le(e) {
2967
+ return J.apply(this, arguments);
2668
2968
  }
2669
- function K() {
2670
- return K = an(function* (e) {
2969
+ function J() {
2970
+ return J = Fn(function* (e) {
2671
2971
  var t, n;
2672
2972
  let r = (t = e.target.files) == null ? void 0 : t[0];
2673
2973
  if (!r) return;
2674
- let i = yield Tn(r);
2974
+ let i = yield tr(r);
2675
2975
  (n = f.value) == null || n.chain().focus().setImage({ src: i }).run(), e.target.value = "";
2676
- }), K.apply(this, arguments);
2976
+ }), J.apply(this, arguments);
2677
2977
  }
2678
- let q = S("");
2679
- function fe() {
2978
+ let Y = w("");
2979
+ function ue() {
2680
2980
  var e;
2681
- if (!q.value) return;
2682
- let t = jn(q.value), n = (e = f.value) == null ? void 0 : e.chain().focus();
2981
+ if (!Y.value) return;
2982
+ let t = sr(Y.value), n = (e = f.value) == null ? void 0 : e.chain().focus();
2683
2983
  n && (t ? n.insertContent({
2684
2984
  type: "mediaEmbed",
2685
2985
  attrs: { src: t }
2686
2986
  }).run() : n.insertContent({
2687
2987
  type: "text",
2688
- text: q.value,
2988
+ text: Y.value,
2689
2989
  marks: [{
2690
2990
  type: "link",
2691
- attrs: { href: q.value }
2991
+ attrs: { href: Y.value }
2692
2992
  }]
2693
- }).run(), q.value = "");
2993
+ }).run(), Y.value = "");
2694
2994
  }
2695
2995
  return (t, o) => {
2696
- let l = T("v-divider"), u = T("v-btn"), p = T("v-list-item-title"), b = T("v-list-item"), S = T("v-list"), w = T("v-menu"), E = T("v-text-field"), D = T("v-checkbox"), k = T("v-card");
2697
- return x(), i("div", { class: g(["rtf-toolbar", { "rtf-toolbar--disabled": !h.value }]) }, [
2698
- c($t, m({ actions: A }, v.value, { "show-as-group": "grouped-no-borders" }), null, 16),
2996
+ let l = D("v-divider"), u = D("v-btn"), p = D("v-list-item-title"), b = D("v-list-item"), x = D("v-list"), S = D("v-menu"), w = D("v-text-field"), E = D("v-checkbox"), O = D("v-card");
2997
+ return C(), i("div", { class: v(["rtf-toolbar", { "rtf-toolbar--disabled": !m.value }]) }, [
2998
+ c(En, g({ actions: k }, _.value, { "show-as-group": "grouped-no-borders" }), null, 16),
2699
2999
  c(l, {
2700
3000
  vertical: "",
2701
3001
  inset: "",
2702
3002
  class: "mx-1"
2703
3003
  }),
2704
- c(u, m(_.value, {
3004
+ c(u, g(h.value, {
2705
3005
  icon: "",
2706
3006
  rounded: "sm",
2707
- title: j(d).SelectAll,
3007
+ title: P(d)("SelectAll"),
2708
3008
  onClick: o[0] || (o[0] = (e) => {
2709
3009
  var t;
2710
3010
  return (t = f.value) == null ? void 0 : t.chain().focus().selectAll().run();
2711
3011
  })
2712
3012
  }), {
2713
- default: F(() => [c(j(R), { name: "mdi-select-all" })]),
3013
+ default: R(() => [c(P(V), { name: "mdi-select-all" })]),
2714
3014
  _: 1
2715
3015
  }, 16, ["title"]),
2716
3016
  c(l, {
@@ -2718,19 +3018,19 @@ var Pn = { class: "rtf-toolbar-group" }, Fn = { class: "d-flex justify-end ga-2
2718
3018
  inset: "",
2719
3019
  class: "mx-1"
2720
3020
  }),
2721
- c(w, null, {
2722
- activator: F(({ props: e }) => [c(u, m(J(J({}, _.value), e), { "append-icon": "mdi-chevron-down" }), {
2723
- default: F(() => [s(O(z.value), 1)]),
3021
+ c(S, null, {
3022
+ activator: R(({ props: e }) => [c(u, g(Z(Z({}, h.value), e), { "append-icon": "mdi-chevron-down" }), {
3023
+ default: R(() => [s(A(I.value), 1)]),
2724
3024
  _: 1
2725
3025
  }, 16)]),
2726
- default: F(() => [c(S, { density: "compact" }, {
2727
- default: F(() => [(x(!0), i(e, null, C(N.value, (e) => (x(), n(b, {
3026
+ default: R(() => [c(x, { density: "compact" }, {
3027
+ default: R(() => [(C(!0), i(e, null, T(ee.value, (e) => (C(), n(b, {
2728
3028
  key: e.level,
2729
- active: L(e.level),
2730
- onClick: (t) => re(e.level)
3029
+ active: F(e.level),
3030
+ onClick: (t) => B(e.level)
2731
3031
  }, {
2732
- default: F(() => [c(p, null, {
2733
- default: F(() => [s(O(e.label), 1)]),
3032
+ default: R(() => [c(p, null, {
3033
+ default: R(() => [s(A(e.label), 1)]),
2734
3034
  _: 2
2735
3035
  }, 1024)]),
2736
3036
  _: 2
@@ -2739,19 +3039,19 @@ var Pn = { class: "rtf-toolbar-group" }, Fn = { class: "d-flex justify-end ga-2
2739
3039
  })]),
2740
3040
  _: 1
2741
3041
  }),
2742
- c(w, null, {
2743
- activator: F(({ props: e }) => [c(u, m(J(J({}, _.value), e), { "append-icon": "mdi-chevron-down" }), {
2744
- default: F(() => [s(O(j(d).Style), 1)]),
3042
+ c(S, null, {
3043
+ activator: R(({ props: e }) => [c(u, g(Z(Z({}, h.value), e), { "append-icon": "mdi-chevron-down" }), {
3044
+ default: R(() => [s(A(P(d)("Style")), 1)]),
2745
3045
  _: 1
2746
3046
  }, 16)]),
2747
- default: F(() => [c(S, { density: "compact" }, {
2748
- default: F(() => [(x(!0), i(e, null, C(j(V), (e) => (x(), n(b, {
3047
+ default: R(() => [c(x, { density: "compact" }, {
3048
+ default: R(() => [(C(!0), i(e, null, T(P(H), (e) => (C(), n(b, {
2749
3049
  key: e.key,
2750
- active: ie(e),
2751
- onClick: (t) => f.value && j(wn)(f.value, e)
3050
+ active: U(e),
3051
+ onClick: (t) => f.value && P(er)(f.value, e)
2752
3052
  }, {
2753
- default: F(() => [c(p, null, {
2754
- default: F(() => [s(O(j(d)[e.key]), 1)]),
3053
+ default: R(() => [c(p, null, {
3054
+ default: R(() => [s(A(P(d)(e.key)), 1)]),
2755
3055
  _: 2
2756
3056
  }, 1024)]),
2757
3057
  _: 2
@@ -2765,73 +3065,73 @@ var Pn = { class: "rtf-toolbar-group" }, Fn = { class: "d-flex justify-end ga-2
2765
3065
  inset: "",
2766
3066
  class: "mx-1"
2767
3067
  }),
2768
- c($t, m({ actions: ee }, v.value, { "show-as-group": "grouped-no-borders" }), null, 16),
3068
+ c(En, g({ actions: j }, _.value, { "show-as-group": "grouped-no-borders" }), null, 16),
2769
3069
  c(l, {
2770
3070
  vertical: "",
2771
3071
  inset: "",
2772
3072
  class: "mx-1"
2773
3073
  }),
2774
- a("div", Pn, [
2775
- c(u, m(_.value, {
3074
+ a("div", ur, [
3075
+ c(u, g(h.value, {
2776
3076
  icon: "",
2777
- title: j(d).HorizontalLine,
3077
+ title: P(d)("HorizontalLine"),
2778
3078
  onClick: o[1] || (o[1] = (e) => {
2779
3079
  var t;
2780
3080
  return (t = f.value) == null ? void 0 : t.chain().focus().setHorizontalRule().run();
2781
3081
  })
2782
3082
  }), {
2783
- default: F(() => [c(j(R), { name: "mdi-minus" })]),
3083
+ default: R(() => [c(P(V), { name: "mdi-minus" })]),
2784
3084
  _: 1
2785
3085
  }, 16, ["title"]),
2786
- c(w, {
3086
+ c(S, {
2787
3087
  "close-on-content-click": !1,
2788
- "onUpdate:modelValue": o[4] || (o[4] = (e) => e && ae())
3088
+ "onUpdate:modelValue": o[4] || (o[4] = (e) => e && re())
2789
3089
  }, {
2790
- activator: F(({ props: e }) => [c(u, m(J(J({}, _.value), e), {
3090
+ activator: R(({ props: e }) => [c(u, g(Z(Z({}, h.value), e), {
2791
3091
  icon: "",
2792
- title: j(d).Link,
3092
+ title: P(d)("Link"),
2793
3093
  active: y.value.link
2794
3094
  }), {
2795
- default: F(() => [c(j(R), { name: "mdi-link-variant" })]),
3095
+ default: R(() => [c(P(V), { name: "mdi-link-variant" })]),
2796
3096
  _: 1
2797
3097
  }, 16, ["title", "active"])]),
2798
- default: F(() => [c(k, {
3098
+ default: R(() => [c(O, {
2799
3099
  "min-width": "280",
2800
3100
  class: "pa-3"
2801
3101
  }, {
2802
- default: F(() => [
2803
- c(E, {
2804
- modelValue: H.value,
2805
- "onUpdate:modelValue": o[2] || (o[2] = (e) => H.value = e),
2806
- label: j(d).LinkUrl,
3102
+ default: R(() => [
3103
+ c(w, {
3104
+ modelValue: G.value,
3105
+ "onUpdate:modelValue": o[2] || (o[2] = (e) => G.value = e),
3106
+ label: P(d)("LinkUrl"),
2807
3107
  density: "compact",
2808
3108
  "hide-details": "",
2809
3109
  autofocus: "",
2810
- onKeydown: I(oe, ["enter"])
3110
+ onKeydown: z(ie, ["enter"])
2811
3111
  }, null, 8, ["modelValue", "label"]),
2812
- c(D, {
2813
- modelValue: U.value,
2814
- "onUpdate:modelValue": o[3] || (o[3] = (e) => U.value = e),
2815
- label: j(d).Downloadable,
3112
+ c(E, {
3113
+ modelValue: ne.value,
3114
+ "onUpdate:modelValue": o[3] || (o[3] = (e) => ne.value = e),
3115
+ label: P(d)("Downloadable"),
2816
3116
  density: "compact",
2817
3117
  "hide-details": "",
2818
3118
  class: "mt-1"
2819
3119
  }, null, 8, ["modelValue", "label"]),
2820
- a("div", Fn, [y.value.link ? (x(), n(u, {
3120
+ a("div", dr, [y.value.link ? (C(), n(u, {
2821
3121
  key: 0,
2822
3122
  size: "small",
2823
3123
  variant: "text",
2824
- onClick: W
3124
+ onClick: ae
2825
3125
  }, {
2826
- default: F(() => [s(O(j(d).LinkRemove), 1)]),
3126
+ default: R(() => [s(A(P(d)("LinkRemove")), 1)]),
2827
3127
  _: 1
2828
3128
  })) : r("", !0), c(u, {
2829
3129
  size: "small",
2830
3130
  color: "primary",
2831
3131
  variant: "tonal",
2832
- onClick: oe
3132
+ onClick: ie
2833
3133
  }, {
2834
- default: F(() => [s(O(j(d).LinkApply), 1)]),
3134
+ default: R(() => [s(A(P(d)("LinkApply")), 1)]),
2835
3135
  _: 1
2836
3136
  })])
2837
3137
  ]),
@@ -2839,41 +3139,41 @@ var Pn = { class: "rtf-toolbar-group" }, Fn = { class: "d-flex justify-end ga-2
2839
3139
  })]),
2840
3140
  _: 1
2841
3141
  }),
2842
- c(w, { "close-on-content-click": !1 }, {
2843
- activator: F(({ props: e }) => [c(u, m(J(J({}, _.value), e), {
3142
+ c(S, { "close-on-content-click": !1 }, {
3143
+ activator: R(({ props: e }) => [c(u, g(Z(Z({}, h.value), e), {
2844
3144
  icon: "",
2845
- title: j(d).Image
3145
+ title: P(d)("Image")
2846
3146
  }), {
2847
- default: F(() => [c(j(R), { name: "mdi-image-plus" })]),
3147
+ default: R(() => [c(P(V), { name: "mdi-image-plus" })]),
2848
3148
  _: 1
2849
3149
  }, 16, ["title"])]),
2850
- default: F(() => [c(k, {
3150
+ default: R(() => [c(O, {
2851
3151
  "min-width": "280",
2852
3152
  class: "pa-3"
2853
3153
  }, {
2854
- default: F(() => [c(E, {
2855
- modelValue: G.value,
2856
- "onUpdate:modelValue": o[5] || (o[5] = (e) => G.value = e),
2857
- label: j(d).ImageUrl,
3154
+ default: R(() => [c(w, {
3155
+ modelValue: K.value,
3156
+ "onUpdate:modelValue": o[5] || (o[5] = (e) => K.value = e),
3157
+ label: P(d)("ImageUrl"),
2858
3158
  density: "compact",
2859
3159
  "hide-details": "",
2860
3160
  autofocus: "",
2861
- onKeydown: I(le, ["enter"])
2862
- }, null, 8, ["modelValue", "label"]), a("div", In, [c(u, {
3161
+ onKeydown: z(se, ["enter"])
3162
+ }, null, 8, ["modelValue", "label"]), a("div", fr, [c(u, {
2863
3163
  size: "small",
2864
3164
  variant: "text",
2865
3165
  "prepend-icon": "mdi-upload",
2866
- onClick: ue
3166
+ onClick: ce
2867
3167
  }, {
2868
- default: F(() => [s(O(j(d).ImageUpload), 1)]),
3168
+ default: R(() => [s(A(P(d)("ImageUpload")), 1)]),
2869
3169
  _: 1
2870
3170
  }), c(u, {
2871
3171
  size: "small",
2872
3172
  color: "primary",
2873
3173
  variant: "tonal",
2874
- onClick: le
3174
+ onClick: se
2875
3175
  }, {
2876
- default: F(() => [s(O(j(d).ImageInsert), 1)]),
3176
+ default: R(() => [s(A(P(d)("ImageInsert")), 1)]),
2877
3177
  _: 1
2878
3178
  })])]),
2879
3179
  _: 1
@@ -2882,55 +3182,55 @@ var Pn = { class: "rtf-toolbar-group" }, Fn = { class: "d-flex justify-end ga-2
2882
3182
  }),
2883
3183
  a("input", {
2884
3184
  ref_key: "imageInput",
2885
- ref: se,
3185
+ ref: q,
2886
3186
  type: "file",
2887
3187
  accept: "image/*",
2888
3188
  class: "d-none",
2889
- onChange: de
3189
+ onChange: le
2890
3190
  }, null, 544),
2891
- c(w, { "close-on-content-click": !1 }, {
2892
- activator: F(({ props: e }) => [c(u, m(J(J({}, _.value), e), {
3191
+ c(S, { "close-on-content-click": !1 }, {
3192
+ activator: R(({ props: e }) => [c(u, g(Z(Z({}, h.value), e), {
2893
3193
  icon: "",
2894
- title: j(d).MediaEmbed
3194
+ title: P(d)("MediaEmbed")
2895
3195
  }), {
2896
- default: F(() => [c(j(R), { name: "mdi-video-plus" })]),
3196
+ default: R(() => [c(P(V), { name: "mdi-video-plus" })]),
2897
3197
  _: 1
2898
3198
  }, 16, ["title"])]),
2899
- default: F(() => [c(k, {
3199
+ default: R(() => [c(O, {
2900
3200
  "min-width": "280",
2901
3201
  class: "pa-3"
2902
3202
  }, {
2903
- default: F(() => [c(E, {
2904
- modelValue: q.value,
2905
- "onUpdate:modelValue": o[6] || (o[6] = (e) => q.value = e),
2906
- label: j(d).MediaEmbedUrl,
3203
+ default: R(() => [c(w, {
3204
+ modelValue: Y.value,
3205
+ "onUpdate:modelValue": o[6] || (o[6] = (e) => Y.value = e),
3206
+ label: P(d)("MediaEmbedUrl"),
2907
3207
  density: "compact",
2908
3208
  "hide-details": "",
2909
3209
  autofocus: "",
2910
- onKeydown: I(fe, ["enter"])
2911
- }, null, 8, ["modelValue", "label"]), a("div", Ln, [c(u, {
3210
+ onKeydown: z(ue, ["enter"])
3211
+ }, null, 8, ["modelValue", "label"]), a("div", pr, [c(u, {
2912
3212
  size: "small",
2913
3213
  color: "primary",
2914
3214
  variant: "tonal",
2915
- onClick: fe
3215
+ onClick: ue
2916
3216
  }, {
2917
- default: F(() => [s(O(j(d).MediaEmbedInsert), 1)]),
3217
+ default: R(() => [s(A(P(d)("MediaEmbedInsert")), 1)]),
2918
3218
  _: 1
2919
3219
  })])]),
2920
3220
  _: 1
2921
3221
  })]),
2922
3222
  _: 1
2923
3223
  }),
2924
- c(w, null, {
2925
- activator: F(({ props: e }) => [c(u, m(J(J({}, _.value), e), {
3224
+ c(S, null, {
3225
+ activator: R(({ props: e }) => [c(u, g(Z(Z({}, h.value), e), {
2926
3226
  icon: "",
2927
- title: j(d).Table
3227
+ title: P(d)("Table")
2928
3228
  }), {
2929
- default: F(() => [c(j(R), { name: "mdi-table" })]),
3229
+ default: R(() => [c(P(V), { name: "mdi-table" })]),
2930
3230
  _: 1
2931
3231
  }, 16, ["title"])]),
2932
- default: F(() => [c(S, { density: "compact" }, {
2933
- default: F(() => [
3232
+ default: R(() => [c(x, { density: "compact" }, {
3233
+ default: R(() => [
2934
3234
  c(b, { onClick: o[7] || (o[7] = (e) => {
2935
3235
  var t;
2936
3236
  return (t = f.value) == null ? void 0 : t.chain().focus().insertTable({
@@ -2939,9 +3239,9 @@ var Pn = { class: "rtf-toolbar-group" }, Fn = { class: "d-flex justify-end ga-2
2939
3239
  withHeaderRow: !0
2940
3240
  }).run();
2941
3241
  }) }, {
2942
- prepend: F(() => [c(j(R), { name: "mdi-table-plus" })]),
2943
- default: F(() => [c(p, null, {
2944
- default: F(() => [s(O(j(d).TableInsert), 1)]),
3242
+ prepend: R(() => [c(P(V), { name: "mdi-table-plus" })]),
3243
+ default: R(() => [c(p, null, {
3244
+ default: R(() => [s(A(P(d)("TableInsert")), 1)]),
2945
3245
  _: 1
2946
3246
  })]),
2947
3247
  _: 1
@@ -2954,9 +3254,9 @@ var Pn = { class: "rtf-toolbar-group" }, Fn = { class: "d-flex justify-end ga-2
2954
3254
  return (t = f.value) == null ? void 0 : t.chain().focus().addRowBefore().run();
2955
3255
  })
2956
3256
  }, {
2957
- prepend: F(() => [c(j(R), { name: "mdi-table-row-plus-before" })]),
2958
- default: F(() => [c(p, null, {
2959
- default: F(() => [s(O(j(d).TableAddRowAbove), 1)]),
3257
+ prepend: R(() => [c(P(V), { name: "mdi-table-row-plus-before" })]),
3258
+ default: R(() => [c(p, null, {
3259
+ default: R(() => [s(A(P(d)("TableAddRowAbove")), 1)]),
2960
3260
  _: 1
2961
3261
  })]),
2962
3262
  _: 1
@@ -2968,9 +3268,9 @@ var Pn = { class: "rtf-toolbar-group" }, Fn = { class: "d-flex justify-end ga-2
2968
3268
  return (t = f.value) == null ? void 0 : t.chain().focus().addRowAfter().run();
2969
3269
  })
2970
3270
  }, {
2971
- prepend: F(() => [c(j(R), { name: "mdi-table-row-plus-after" })]),
2972
- default: F(() => [c(p, null, {
2973
- default: F(() => [s(O(j(d).TableAddRowBelow), 1)]),
3271
+ prepend: R(() => [c(P(V), { name: "mdi-table-row-plus-after" })]),
3272
+ default: R(() => [c(p, null, {
3273
+ default: R(() => [s(A(P(d)("TableAddRowBelow")), 1)]),
2974
3274
  _: 1
2975
3275
  })]),
2976
3276
  _: 1
@@ -2982,9 +3282,9 @@ var Pn = { class: "rtf-toolbar-group" }, Fn = { class: "d-flex justify-end ga-2
2982
3282
  return (t = f.value) == null ? void 0 : t.chain().focus().deleteRow().run();
2983
3283
  })
2984
3284
  }, {
2985
- prepend: F(() => [c(j(R), { name: "mdi-table-row-remove" })]),
2986
- default: F(() => [c(p, null, {
2987
- default: F(() => [s(O(j(d).TableDeleteRow), 1)]),
3285
+ prepend: R(() => [c(P(V), { name: "mdi-table-row-remove" })]),
3286
+ default: R(() => [c(p, null, {
3287
+ default: R(() => [s(A(P(d)("TableDeleteRow")), 1)]),
2988
3288
  _: 1
2989
3289
  })]),
2990
3290
  _: 1
@@ -2997,9 +3297,9 @@ var Pn = { class: "rtf-toolbar-group" }, Fn = { class: "d-flex justify-end ga-2
2997
3297
  return (t = f.value) == null ? void 0 : t.chain().focus().addColumnBefore().run();
2998
3298
  })
2999
3299
  }, {
3000
- prepend: F(() => [c(j(R), { name: "mdi-table-column-plus-before" })]),
3001
- default: F(() => [c(p, null, {
3002
- default: F(() => [s(O(j(d).TableAddColumnBefore), 1)]),
3300
+ prepend: R(() => [c(P(V), { name: "mdi-table-column-plus-before" })]),
3301
+ default: R(() => [c(p, null, {
3302
+ default: R(() => [s(A(P(d)("TableAddColumnBefore")), 1)]),
3003
3303
  _: 1
3004
3304
  })]),
3005
3305
  _: 1
@@ -3011,9 +3311,9 @@ var Pn = { class: "rtf-toolbar-group" }, Fn = { class: "d-flex justify-end ga-2
3011
3311
  return (t = f.value) == null ? void 0 : t.chain().focus().addColumnAfter().run();
3012
3312
  })
3013
3313
  }, {
3014
- prepend: F(() => [c(j(R), { name: "mdi-table-column-plus-after" })]),
3015
- default: F(() => [c(p, null, {
3016
- default: F(() => [s(O(j(d).TableAddColumnAfter), 1)]),
3314
+ prepend: R(() => [c(P(V), { name: "mdi-table-column-plus-after" })]),
3315
+ default: R(() => [c(p, null, {
3316
+ default: R(() => [s(A(P(d)("TableAddColumnAfter")), 1)]),
3017
3317
  _: 1
3018
3318
  })]),
3019
3319
  _: 1
@@ -3025,9 +3325,9 @@ var Pn = { class: "rtf-toolbar-group" }, Fn = { class: "d-flex justify-end ga-2
3025
3325
  return (t = f.value) == null ? void 0 : t.chain().focus().deleteColumn().run();
3026
3326
  })
3027
3327
  }, {
3028
- prepend: F(() => [c(j(R), { name: "mdi-table-column-remove" })]),
3029
- default: F(() => [c(p, null, {
3030
- default: F(() => [s(O(j(d).TableDeleteColumn), 1)]),
3328
+ prepend: R(() => [c(P(V), { name: "mdi-table-column-remove" })]),
3329
+ default: R(() => [c(p, null, {
3330
+ default: R(() => [s(A(P(d)("TableDeleteColumn")), 1)]),
3031
3331
  _: 1
3032
3332
  })]),
3033
3333
  _: 1
@@ -3040,9 +3340,9 @@ var Pn = { class: "rtf-toolbar-group" }, Fn = { class: "d-flex justify-end ga-2
3040
3340
  return (t = f.value) == null ? void 0 : t.chain().focus().toggleHeaderRow().run();
3041
3341
  })
3042
3342
  }, {
3043
- prepend: F(() => [c(j(R), { name: "mdi-table-row" })]),
3044
- default: F(() => [c(p, null, {
3045
- default: F(() => [s(O(j(d).TableToggleHeaderRow), 1)]),
3343
+ prepend: R(() => [c(P(V), { name: "mdi-table-row" })]),
3344
+ default: R(() => [c(p, null, {
3345
+ default: R(() => [s(A(P(d)("TableToggleHeaderRow")), 1)]),
3046
3346
  _: 1
3047
3347
  })]),
3048
3348
  _: 1
@@ -3054,9 +3354,9 @@ var Pn = { class: "rtf-toolbar-group" }, Fn = { class: "d-flex justify-end ga-2
3054
3354
  return (t = f.value) == null ? void 0 : t.chain().focus().deleteTable().run();
3055
3355
  })
3056
3356
  }, {
3057
- prepend: F(() => [c(j(R), { name: "mdi-table-remove" })]),
3058
- default: F(() => [c(p, null, {
3059
- default: F(() => [s(O(j(d).TableDeleteTable), 1)]),
3357
+ prepend: R(() => [c(P(V), { name: "mdi-table-remove" })]),
3358
+ default: R(() => [c(p, null, {
3359
+ default: R(() => [s(A(P(d)("TableDeleteTable")), 1)]),
3060
3360
  _: 1
3061
3361
  })]),
3062
3362
  _: 1
@@ -3066,16 +3366,16 @@ var Pn = { class: "rtf-toolbar-group" }, Fn = { class: "d-flex justify-end ga-2
3066
3366
  })]),
3067
3367
  _: 1
3068
3368
  }),
3069
- c(u, m(_.value, {
3369
+ c(u, g(h.value, {
3070
3370
  icon: "",
3071
- title: j(d).Blockquote,
3371
+ title: P(d)("Blockquote"),
3072
3372
  active: y.value.blockquote,
3073
3373
  onClick: o[16] || (o[16] = (e) => {
3074
3374
  var t;
3075
3375
  return (t = f.value) == null ? void 0 : t.chain().focus().toggleBlockquote().run();
3076
3376
  })
3077
3377
  }), {
3078
- default: F(() => [c(j(R), { name: "mdi-format-quote-close" })]),
3378
+ default: R(() => [c(P(V), { name: "mdi-format-quote-close" })]),
3079
3379
  _: 1
3080
3380
  }, 16, ["title", "active"])
3081
3381
  ]),
@@ -3084,18 +3384,18 @@ var Pn = { class: "rtf-toolbar-group" }, Fn = { class: "d-flex justify-end ga-2
3084
3384
  inset: "",
3085
3385
  class: "mx-1"
3086
3386
  }),
3087
- c($t, m({ actions: j(M) }, v.value, { "show-as-group": "grouped-no-borders" }), null, 16, ["actions"]),
3387
+ c(En, g({ actions: P(M) }, _.value, { "show-as-group": "grouped-no-borders" }), null, 16, ["actions"]),
3088
3388
  c(l, {
3089
3389
  vertical: "",
3090
3390
  inset: "",
3091
3391
  class: "mx-1"
3092
3392
  }),
3093
- c($t, m({ actions: te }, v.value, { "show-as-group": "grouped-no-borders" }), null, 16)
3393
+ c(En, g({ actions: N }, _.value, { "show-as-group": "grouped-no-borders" }), null, 16)
3094
3394
  ], 2);
3095
3395
  };
3096
3396
  }
3097
- }), zn = /^[a-z][a-z0-9]*:[a-z]/i, Bn = /mso-[a-z-]+\s*:[^;]+;?/gi, Vn = /^Mso/i, Hn = /background(?:-color)?\s*:[^;]+;?/gi;
3098
- function Un(e) {
3397
+ }), hr = /^[a-z][a-z0-9]*:[a-z]/i, gr = /mso-[a-z-]+\s*:[^;]+;?/gi, _r = /^Mso/i, vr = /background(?:-color)?\s*:[^;]+;?/gi;
3398
+ function yr(e) {
3099
3399
  let t = document.createTreeWalker(e, NodeFilter.SHOW_COMMENT), n = [];
3100
3400
  for (let e = t.nextNode(); e; e = t.nextNode()) n.push(e);
3101
3401
  n.forEach((e) => {
@@ -3103,42 +3403,45 @@ function Un(e) {
3103
3403
  return (t = e.parentNode) == null ? void 0 : t.removeChild(e);
3104
3404
  });
3105
3405
  }
3106
- function Wn(e) {
3406
+ function br(e) {
3107
3407
  let t = e.parentNode;
3108
3408
  if (t) {
3109
3409
  for (; e.firstChild;) t.insertBefore(e.firstChild, e);
3110
3410
  t.removeChild(e);
3111
3411
  }
3112
3412
  }
3113
- function Gn(e) {
3413
+ function xr(e) {
3114
3414
  let t = e.getAttribute("style");
3115
3415
  if (t != null) {
3116
- let n = t.replace(Bn, "").replace(Hn, "").trim();
3416
+ let n = t.replace(gr, "").replace(vr, "").trim();
3117
3417
  n ? e.setAttribute("style", n) : e.removeAttribute("style");
3118
3418
  }
3119
3419
  let n = e.getAttribute("class");
3120
3420
  if (n != null) {
3121
- let t = n.split(/\s+/).filter((e) => e && !Vn.test(e)).join(" ");
3421
+ let t = n.split(/\s+/).filter((e) => e && !_r.test(e)).join(" ");
3122
3422
  t ? e.setAttribute("class", t) : e.removeAttribute("class");
3123
3423
  }
3124
3424
  e.removeAttribute("lang"), e.removeAttribute("xml:lang"), e.removeAttribute("id"), e.removeAttribute("align"), e.removeAttribute("bgcolor");
3125
3425
  }
3126
- function Kn(e) {
3426
+ function Sr(e) {
3127
3427
  if (!e || typeof DOMParser > "u") return e;
3128
3428
  let t = new DOMParser().parseFromString(e, "text/html").body;
3129
- return t ? (Un(t), t.querySelectorAll("xml, style, script, meta, link").forEach((e) => e.remove()), Array.from(t.querySelectorAll("*")).forEach((e) => {
3130
- if (zn.test(e.tagName) || e.tagName === "FONT") {
3131
- Wn(e);
3429
+ return t ? (yr(t), t.querySelectorAll("xml, style, script, meta, link").forEach((e) => e.remove()), Array.from(t.querySelectorAll("*")).forEach((e) => {
3430
+ if (hr.test(e.tagName) || e.tagName === "FONT") {
3431
+ br(e);
3132
3432
  return;
3133
3433
  }
3134
- Gn(e);
3434
+ xr(e);
3135
3435
  }), Array.from(t.querySelectorAll("span, div")).forEach((e) => {
3136
- e.attributes.length === 0 && Wn(e);
3436
+ e.attributes.length === 0 && br(e);
3137
3437
  }), t.innerHTML) : e;
3138
3438
  }
3139
3439
  //#endregion
3140
3440
  //#region src/helpers/rtf-editor/editor-core.vue?vue&type=script&setup=true&lang.ts
3141
- var qn = { class: "editor-container" }, Jn = { class: "rtf-bubble-menu" }, Yn = /* @__PURE__ */ l({
3441
+ var Cr = { class: "editor-container" }, wr = {
3442
+ key: 2,
3443
+ class: "editor-container__editor"
3444
+ }, Tr = { class: "rtf-bubble-menu" }, Er = /* @__PURE__ */ l({
3142
3445
  __name: "editor-core",
3143
3446
  props: {
3144
3447
  modelValue: { default: "" },
@@ -3152,29 +3455,36 @@ var qn = { class: "editor-container" }, Jn = { class: "rtf-bubble-menu" }, Yn =
3152
3455
  },
3153
3456
  emits: ["update:modelValue"],
3154
3457
  setup(e, { emit: o }) {
3155
- M((e) => ({
3156
- b8a5bbe0: e.fontFamily,
3157
- v21b01608: e.minHeight
3458
+ ee((e) => ({
3459
+ a2b42c4a: e.fontFamily,
3460
+ v6b6187d1: e.minHeight
3158
3461
  }));
3159
- let s = e, l = o, u = S(), d;
3160
- b(() => {
3462
+ let s = e, l = o, u = w(null);
3463
+ function d(e) {
3464
+ u.value = e;
3465
+ }
3466
+ let f = On(), p = t(() => {
3161
3467
  var e;
3162
- let t = (e = u.value) == null ? void 0 : e.$el, n = t == null ? void 0 : t.closest(".v-field");
3163
- !t || !n || (d = new ResizeObserver(([e]) => {
3468
+ return Ut(new It((e = s.modelValue) == null ? "" : e));
3469
+ }), m = xn(), h;
3470
+ I(u, (e) => {
3471
+ h == null || h.disconnect();
3472
+ let t = e == null ? void 0 : e.$el, n = t == null ? void 0 : t.closest(".v-field");
3473
+ !t || !n || (h = new ResizeObserver(([e]) => {
3164
3474
  n.style.setProperty("--rtf-toolbar-height", `${e.contentRect.height}px`);
3165
- }), d.observe(t));
3166
- }), y(() => d == null ? void 0 : d.disconnect());
3167
- let f = Oe({
3475
+ }), h.observe(t));
3476
+ }, { flush: "post" }), x(() => h == null ? void 0 : h.disconnect());
3477
+ let _ = Ee({
3168
3478
  content: s.modelValue,
3169
3479
  editable: !s.disabled,
3170
3480
  extensions: [
3171
- Ee.configure({ link: !1 }),
3172
- An.configure({
3481
+ we.configure({ link: !1 }),
3482
+ or.configure({
3173
3483
  openOnClick: !1,
3174
3484
  autolink: !0,
3175
3485
  defaultProtocol: "https"
3176
3486
  }),
3177
- ve.configure({
3487
+ ge.configure({
3178
3488
  inline: !0,
3179
3489
  allowBase64: !0,
3180
3490
  resize: {
@@ -3193,119 +3503,120 @@ var qn = { class: "editor-container" }, Jn = { class: "rtf-bubble-menu" }, Yn =
3193
3503
  minHeight: 24
3194
3504
  }
3195
3505
  }),
3196
- we.configure({ types: ["heading", "paragraph"] }),
3197
- be.configure({ resizable: !0 }),
3198
- Ce,
3199
- Se,
3506
+ Se.configure({ types: ["heading", "paragraph"] }),
3507
+ ve.configure({ resizable: !0 }),
3200
3508
  xe,
3201
- ye.configure({ placeholder: "" }),
3202
- hn,
3203
- _n,
3204
- vn,
3205
- Mn
3509
+ be,
3510
+ ye,
3511
+ _e.configure({ placeholder: "" }),
3512
+ Gn,
3513
+ qn,
3514
+ Jn,
3515
+ cr
3206
3516
  ],
3207
3517
  editorProps: {
3208
3518
  attributes: { class: "rtf-content" },
3209
- transformPastedHTML: (e) => Kn(e),
3210
- handlePaste: kn(() => f.value)
3519
+ transformPastedHTML: (e) => Sr(e),
3520
+ handlePaste: ar(() => _.value)
3211
3521
  },
3212
3522
  onUpdate: ({ editor: e }) => {
3213
3523
  l("update:modelValue", e.isEmpty ? "" : e.getHTML());
3214
3524
  }
3215
3525
  });
3216
- N(() => s.modelValue, (e) => {
3217
- let t = f.value;
3526
+ I(() => s.modelValue, (e) => {
3527
+ let t = _.value;
3218
3528
  if (!t) return;
3219
3529
  let n = e == null ? "" : e;
3220
3530
  n !== t.getHTML() && t.commands.setContent(n, { emitUpdate: !1 });
3221
- }), N(() => s.disabled, (e) => {
3531
+ }), I(() => s.disabled, (e) => {
3222
3532
  var t;
3223
- return (t = f.value) == null ? void 0 : t.setEditable(!e);
3224
- }), N(f, (e) => e == null ? void 0 : e.setEditable(!s.disabled));
3225
- let p = {
3533
+ return (t = _.value) == null ? void 0 : t.setEditable(!e, !1);
3534
+ }), I(_, (e) => e == null ? void 0 : e.setEditable(!s.disabled, !1));
3535
+ let v = {
3226
3536
  icon: !0,
3227
3537
  size: "small",
3228
3538
  density: "comfortable",
3229
3539
  variant: "text"
3230
- }, h = Nn(f), g = t(() => {
3540
+ }, y = lr(_), b = t(() => {
3231
3541
  var e, t, n, r, i;
3232
- return h.value, {
3233
- bold: !!((e = f.value) != null && e.isActive("bold")),
3234
- italic: !!((t = f.value) != null && t.isActive("italic")),
3235
- link: !!((n = f.value) != null && n.isActive("link")),
3236
- bulletList: !!((r = f.value) != null && r.isActive("bulletList")),
3237
- orderedList: !!((i = f.value) != null && i.isActive("orderedList"))
3542
+ return y.value, {
3543
+ bold: !!((e = _.value) != null && e.isActive("bold")),
3544
+ italic: !!((t = _.value) != null && t.isActive("italic")),
3545
+ link: !!((n = _.value) != null && n.isActive("link")),
3546
+ bulletList: !!((r = _.value) != null && r.isActive("bulletList")),
3547
+ orderedList: !!((i = _.value) != null && i.isActive("orderedList"))
3238
3548
  };
3239
3549
  });
3240
- function _({ state: e }) {
3241
- return !e.selection.empty && !(e.selection instanceof Te);
3550
+ function S({ state: e }) {
3551
+ return !e.selection.empty && !(e.selection instanceof Ce);
3242
3552
  }
3243
- function v(e) {
3553
+ function T(e) {
3244
3554
  var t;
3245
- (t = f.value) == null || t.chain().focus()[e]().run();
3555
+ (t = _.value) == null || t.chain().focus()[e]().run();
3246
3556
  }
3247
- function C() {
3248
- let e = f.value;
3557
+ function E() {
3558
+ let e = _.value;
3249
3559
  if (!e) return;
3250
3560
  if (e.isActive("link")) {
3251
3561
  e.chain().focus().unsetLink().run();
3252
3562
  return;
3253
3563
  }
3254
- let t = window.prompt(Lt.LinkUrl);
3564
+ let t = window.prompt(m("LinkUrl"));
3255
3565
  t && e.chain().focus().extendMarkRange("link").setLink({ href: t }).run();
3256
3566
  }
3257
3567
  return (t, o) => {
3258
- let s = T("v-btn");
3259
- return x(), i("div", qn, [
3260
- c(Rn, {
3261
- ref_key: "toolbarRef",
3262
- ref: u,
3263
- editor: j(f),
3568
+ let s = D("v-btn");
3569
+ return C(), i("div", Cr, [
3570
+ P(f) ? (C(), n(mr, {
3571
+ key: 0,
3572
+ ref: d,
3573
+ editor: P(_),
3264
3574
  "button-size": e.toolbarButtonSize
3265
- }, null, 8, ["editor", "button-size"]),
3266
- c(j(De), {
3575
+ }, null, 8, ["editor", "button-size"])) : r("", !0),
3576
+ P(f) ? (C(), n(P(Te), {
3577
+ key: 1,
3267
3578
  class: "editor-container__editor",
3268
- editor: j(f)
3269
- }, null, 8, ["editor"]),
3270
- j(f) ? (x(), n(j(ke), {
3271
- key: 0,
3272
- editor: j(f),
3273
- "should-show": _
3579
+ editor: P(_)
3580
+ }, null, 8, ["editor"])) : (C(), i("div", wr, A(p.value), 1)),
3581
+ P(_) ? (C(), n(P(De), {
3582
+ key: 3,
3583
+ editor: P(_),
3584
+ "should-show": S
3274
3585
  }, {
3275
- default: F(() => [a("div", Jn, [
3276
- c(s, m(p, {
3277
- active: g.value.bold,
3278
- onClick: o[0] || (o[0] = (e) => v("toggleBold"))
3586
+ default: R(() => [a("div", Tr, [
3587
+ c(s, g(v, {
3588
+ active: b.value.bold,
3589
+ onClick: o[0] || (o[0] = (e) => T("toggleBold"))
3279
3590
  }), {
3280
- default: F(() => [c(j(R), { name: "mdi-format-bold" })]),
3591
+ default: R(() => [c(P(V), { name: "mdi-format-bold" })]),
3281
3592
  _: 1
3282
3593
  }, 16, ["active"]),
3283
- c(s, m(p, {
3284
- active: g.value.italic,
3285
- onClick: o[1] || (o[1] = (e) => v("toggleItalic"))
3594
+ c(s, g(v, {
3595
+ active: b.value.italic,
3596
+ onClick: o[1] || (o[1] = (e) => T("toggleItalic"))
3286
3597
  }), {
3287
- default: F(() => [c(j(R), { name: "mdi-format-italic" })]),
3598
+ default: R(() => [c(P(V), { name: "mdi-format-italic" })]),
3288
3599
  _: 1
3289
3600
  }, 16, ["active"]),
3290
- c(s, m(p, {
3291
- active: g.value.link,
3292
- onClick: C
3601
+ c(s, g(v, {
3602
+ active: b.value.link,
3603
+ onClick: E
3293
3604
  }), {
3294
- default: F(() => [c(j(R), { name: "mdi-link-variant" })]),
3605
+ default: R(() => [c(P(V), { name: "mdi-link-variant" })]),
3295
3606
  _: 1
3296
3607
  }, 16, ["active"]),
3297
- c(s, m(p, {
3298
- active: g.value.bulletList,
3299
- onClick: o[2] || (o[2] = (e) => v("toggleBulletList"))
3608
+ c(s, g(v, {
3609
+ active: b.value.bulletList,
3610
+ onClick: o[2] || (o[2] = (e) => T("toggleBulletList"))
3300
3611
  }), {
3301
- default: F(() => [c(j(R), { name: "mdi-format-list-bulleted" })]),
3612
+ default: R(() => [c(P(V), { name: "mdi-format-list-bulleted" })]),
3302
3613
  _: 1
3303
3614
  }, 16, ["active"]),
3304
- c(s, m(p, {
3305
- active: g.value.orderedList,
3306
- onClick: o[3] || (o[3] = (e) => v("toggleOrderedList"))
3615
+ c(s, g(v, {
3616
+ active: b.value.orderedList,
3617
+ onClick: o[3] || (o[3] = (e) => T("toggleOrderedList"))
3307
3618
  }), {
3308
- default: F(() => [c(j(R), { name: "mdi-format-list-numbered" })]),
3619
+ default: R(() => [c(P(V), { name: "mdi-format-list-numbered" })]),
3309
3620
  _: 1
3310
3621
  }, 16, ["active"])
3311
3622
  ])]),
@@ -3314,9 +3625,9 @@ var qn = { class: "editor-container" }, Jn = { class: "rtf-bubble-menu" }, Yn =
3314
3625
  ]);
3315
3626
  };
3316
3627
  }
3317
- }), Xn = /* @__PURE__ */ l({
3628
+ }), Dr = /* @__PURE__ */ l({
3318
3629
  __name: "df-rtf-editor",
3319
- props: /*@__PURE__*/ p({
3630
+ props: /*@__PURE__*/ h({
3320
3631
  minHeight: {},
3321
3632
  toolbarButtonSize: {},
3322
3633
  fontFamily: {},
@@ -3334,18 +3645,17 @@ var qn = { class: "editor-container" }, Jn = { class: "rtf-bubble-menu" }, Yn =
3334
3645
  passthroughAttrs: {},
3335
3646
  density: {},
3336
3647
  variant: {}
3337
- }, J(J({}, Z), {}, { minHeight: void 0 })),
3648
+ }, Z(Z({}, en), {}, { minHeight: void 0 })),
3338
3649
  emits: ["update:modelValue", "click:clear"],
3339
3650
  setup(e, { emit: t }) {
3340
- let r = e, { densityClass: i, value: a, vuetifyBindings: o } = Q(r, t);
3341
- return (t, s) => (x(), n(j(It), m(r, { class: ["rtf-editor", j(i)] }), {
3342
- default: F((t) => [c(Yn, m({
3343
- ref: "$editor",
3344
- modelValue: j(a),
3345
- "onUpdate:modelValue": s[0] || (s[0] = (e) => f(a) ? a.value = e : null),
3651
+ let r = e, { densityClass: i, value: a, vuetifyBindings: o } = tn(r, t);
3652
+ return (t, s) => (C(), n(P(rn), g(r, { class: ["rtf-editor", P(i)] }), {
3653
+ default: R((t) => [c(Er, g({
3654
+ modelValue: P(a),
3655
+ "onUpdate:modelValue": s[0] || (s[0] = (e) => m(a) ? a.value = e : null),
3346
3656
  class: { "mt-6": !!e.label },
3347
3657
  "min-height": e.minHeight,
3348
- disabled: j(o).disabled,
3658
+ disabled: P(o).disabled,
3349
3659
  "toolbar-button-size": e.toolbarButtonSize,
3350
3660
  "font-family": e.fontFamily
3351
3661
  }, e.passthroughAttrs, {
@@ -3367,48 +3677,48 @@ var qn = { class: "editor-container" }, Jn = { class: "rtf-bubble-menu" }, Yn =
3367
3677
  });
3368
3678
  //#endregion
3369
3679
  //#region src/helpers/df-select.helper.ts
3370
- function Zn(e) {
3680
+ function Or(e) {
3371
3681
  return e.map((e) => ({
3372
3682
  value: e.id,
3373
3683
  title: e.text,
3374
3684
  icon: e.icon
3375
3685
  }));
3376
3686
  }
3377
- function $(e, t) {
3687
+ function kr(e, t) {
3378
3688
  var n;
3379
- return e == null || W(e) && e.length === 0 ? null : t ? U(e) : W(e) ? (n = oe(e)) == null ? null : n : e;
3689
+ return e == null || ae(e) && e.length === 0 ? null : t ? ne(e) : ae(e) ? (n = ie(e)) == null ? null : n : e;
3380
3690
  }
3381
- function Qn(e, t) {
3691
+ function Ar(e, t) {
3382
3692
  if (t == null) return [];
3383
- let n = U(t);
3693
+ let n = ne(t);
3384
3694
  return e.filter((e) => n.some((t) => t === e.id));
3385
3695
  }
3386
- function $n(e, t, n, r, i) {
3387
- let a = $(e, n);
3696
+ function jr(e, t, n, r, i) {
3697
+ let a = kr(e, n);
3388
3698
  if (a == null) {
3389
3699
  t.value = n ? [] : null;
3390
3700
  return;
3391
3701
  }
3392
- if (n) t.value = r ? a : Qn(i, a).map((e) => e.id);
3702
+ if (n) t.value = r ? a : Ar(i, a).map((e) => e.id);
3393
3703
  else if (r) t.value = a;
3394
3704
  else {
3395
3705
  var o;
3396
- let e = oe(Qn(i, a));
3706
+ let e = ie(Ar(i, a));
3397
3707
  t.value = (o = e == null ? void 0 : e.id) == null ? null : o;
3398
3708
  }
3399
3709
  }
3400
3710
  //#endregion
3401
3711
  //#region src/df-select.vue?vue&type=script&setup=true&lang.ts
3402
- var er = {
3712
+ var Mr = {
3403
3713
  key: 0,
3404
3714
  class: "me-1"
3405
- }, tr = /*#__PURE__*/ ((e, t) => {
3715
+ }, Nr = /*#__PURE__*/ ((e, t) => {
3406
3716
  let n = e.__vccOpts || e;
3407
3717
  for (let [e, r] of t) n[e] = r;
3408
3718
  return n;
3409
3719
  })(/* @__PURE__ */ l({
3410
3720
  __name: "df-select",
3411
- props: /*@__PURE__*/ p({
3721
+ props: /*@__PURE__*/ h({
3412
3722
  choices: {},
3413
3723
  multiple: { type: Boolean },
3414
3724
  allowTags: { type: Boolean },
@@ -3428,7 +3738,7 @@ var er = {
3428
3738
  passthroughAttrs: {},
3429
3739
  density: {},
3430
3740
  variant: {}
3431
- }, J(J({}, Z), {}, {
3741
+ }, Z(Z({}, en), {}, {
3432
3742
  choices: void 0,
3433
3743
  multiple: !1,
3434
3744
  allowTags: !1,
@@ -3442,204 +3752,232 @@ var er = {
3442
3752
  ],
3443
3753
  setup(e, { emit: s }) {
3444
3754
  var l;
3445
- let d = e, { choices: f, multiple: p, allowTags: v, allowNull: y, cssClass: b } = A(d), C = s, D = S(null), { densityClass: k, isRendered: ee, label: M, shownErrors: te, touched: P, value: I, visibilityClass: L, vuetifyBindings: z } = Q(d, C), B = S(null), ne = S(!1), re = S([]), V = t(() => j(ne) ? j(re) : j(f) || []), ie = t(() => Zn(V.value)), H = S(null), ae = S(0), oe = S(!1), W = S(0), G = S(0), se = t(() => G.value > 0 || W.value > 0);
3446
- (l = f.value) != null && l.length && d.fetchChoices !== void 0 && console.warn("Both choices and fetchChoices are set. Only one of them should be set.");
3755
+ let u = e, { choices: f, multiple: p, allowTags: m, allowNull: h, cssClass: b } = M(u), x = s, S = w(null), { densityClass: T, isRendered: k, label: j, shownErrors: N, touched: ee, value: F, visibilityClass: L, vuetifyBindings: z } = tn(u, x), B = On(), H = w(null), U = w(!1), te = w([]), W = t(() => P(U) ? P(te) : P(f) || []), G = t(() => Or(W.value)), re = t(() => Ar(W.value, kr(F.value, p.value)).map((e) => e.text).join(", ")), ie = w(null), ae = w(0), K = w(!1), q = w(0), se = w(0), ce = t(() => se.value > 0 || q.value > 0);
3756
+ (l = f.value) != null && l.length && u.fetchChoices !== void 0 && console.warn("Both choices and fetchChoices are set. Only one of them should be set.");
3447
3757
  function le(e) {
3448
- C("update:modelValueDisplay", Qn(V.value, e));
3758
+ x("update:modelValueDisplay", Ar(W.value, e));
3449
3759
  }
3450
- let ue = S(!1);
3451
- function de(e) {
3452
- ue.value = !0;
3760
+ let J = w(!1);
3761
+ function Y(e) {
3762
+ J.value = !0;
3453
3763
  try {
3454
- I.value = e;
3764
+ F.value = e;
3455
3765
  } finally {
3456
- h(() => {
3457
- let t = $(I.value, p.value);
3458
- ce(t, e) || $n(t, B, p.value, v.value, V.value), ue.value = !1;
3766
+ _(() => {
3767
+ let t = kr(F.value, p.value);
3768
+ oe(t, e) || jr(t, H, p.value, m.value, W.value), J.value = !1;
3459
3769
  });
3460
3770
  }
3461
3771
  }
3462
- function K(e) {
3772
+ function de(e) {
3463
3773
  if (!e) return 0;
3464
3774
  let t = e.getBoundingClientRect(), n = window.getComputedStyle(e);
3465
3775
  return t.width + parseFloat(n.marginLeft) + parseFloat(n.marginRight);
3466
3776
  }
3467
- function q() {
3468
- if (p.value && y.value && B.value != null && B.value.length > 0 && D.value) {
3777
+ function fe() {
3778
+ if (p.value && h.value && H.value != null && H.value.length > 0 && S.value) {
3469
3779
  var e;
3470
- let t = D.value.$el, n = (e = t.querySelector(".v-input__control")) == null ? void 0 : e.clientWidth, r = t.querySelector(".v-field__input"), i = r.querySelectorAll(".v-autocomplete__selection, .v-combobox__selection"), a = window.getComputedStyle(r), o = parseFloat(a.paddingLeft) + parseFloat(a.paddingRight);
3780
+ let t = S.value.$el, n = (e = t.querySelector(".v-input__control")) == null ? void 0 : e.clientWidth, r = t.querySelector(".v-field__input"), i = r.querySelectorAll(".v-autocomplete__selection, .v-combobox__selection"), a = window.getComputedStyle(r), o = parseFloat(a.paddingLeft) + parseFloat(a.paddingRight);
3471
3781
  i.forEach((e) => {
3472
- o += K(e);
3782
+ o += de(e);
3473
3783
  });
3474
- let s = K(t.querySelector(".v-field .v-field__clearable")), c = K(t.querySelector(".v-field .v-field__append-inner"));
3475
- oe.value = n - o - i.length * 2 - c < s;
3476
- } else oe.value = !1;
3784
+ let s = de(t.querySelector(".v-field .v-field__clearable")), c = de(t.querySelector(".v-field .v-field__append-inner"));
3785
+ K.value = n - o - i.length * 2 - c < s;
3786
+ } else K.value = !1;
3477
3787
  }
3478
3788
  function pe(e) {
3479
3789
  let t = e.target;
3480
3790
  t instanceof HTMLElement && t.closest(".v-chip__close") && (e.stopPropagation(), e.preventDefault());
3481
3791
  }
3482
- N(B, (e) => {
3483
- z.value.readonly || W.value > 0 || h(() => {
3484
- let t = $(e, p.value);
3485
- le(t), de(t);
3792
+ I(H, (e) => {
3793
+ z.value.readonly || q.value > 0 || _(() => {
3794
+ let t = kr(e, p.value);
3795
+ le(t), Y(t);
3486
3796
  });
3487
- }, { deep: !0 }), N(I, (e) => {
3488
- if (ue.value) return;
3489
- let t = $(e, p.value), n = ye(t);
3490
- $n(t, B, p.value, !1, V.value), n == null || n.then(() => {
3491
- ce($(I.value, p.value), t) && $n(t, B, p.value, !1, V.value);
3797
+ }, { deep: !0 }), I(F, (e) => {
3798
+ if (J.value) return;
3799
+ let t = kr(e, p.value), n = ye(t);
3800
+ jr(t, H, p.value, !1, W.value), n == null || n.then(() => {
3801
+ oe(kr(F.value, p.value), t) && jr(t, H, p.value, !1, W.value);
3492
3802
  });
3493
- }, { deep: !0 }), N(ue, () => {
3494
- ue.value || q();
3803
+ }, { deep: !0 }), I(J, () => {
3804
+ J.value || fe();
3495
3805
  });
3496
3806
  function me() {
3497
- H.value != null && H.value.length > 0 && (H.value = null, _e());
3807
+ ie.value != null && ie.value.length > 0 && (ie.value = null, _e());
3498
3808
  }
3499
3809
  function he() {
3500
- if (me(), z.value.readonly || v.value) return;
3501
- let e = $(B.value, p.value);
3502
- $n(e, B, p.value, !1, V.value), de(e);
3810
+ if (me(), z.value.readonly || m.value) return;
3811
+ let e = kr(H.value, p.value);
3812
+ jr(e, H, p.value, !1, W.value), Y(e);
3503
3813
  }
3504
3814
  function ge(e, t) {
3505
- if (e.stopPropagation(), z.value.readonly || v.value) {
3506
- v.value && (B.value = B.value.filter((e) => e !== t));
3815
+ if (e.stopPropagation(), z.value.readonly || m.value) {
3816
+ m.value && (H.value = H.value.filter((e) => e !== t));
3507
3817
  return;
3508
3818
  }
3509
3819
  let n;
3510
- n = p.value && Array.isArray(B.value) ? $(B.value.filter((e) => e !== t), p.value) : null, $n(n, B, p.value, !1, V.value), de(n);
3820
+ n = p.value && Array.isArray(H.value) ? kr(H.value.filter((e) => e !== t), p.value) : null, jr(n, H, p.value, !1, W.value), Y(n);
3511
3821
  }
3512
3822
  function _e(e, t) {
3513
3823
  return ve.apply(this, arguments);
3514
3824
  }
3515
3825
  function ve() {
3516
- return ve = an(function* (e, t) {
3517
- if (z.value.readonly || (H.value = e, f.value || d.fetchChoices === void 0)) return;
3826
+ return ve = Fn(function* (e, t) {
3827
+ if (z.value.readonly || (ie.value = e, f.value || u.fetchChoices === void 0)) return;
3518
3828
  let n = ++ae.value;
3519
- G.value++;
3829
+ se.value++;
3520
3830
  try {
3521
- let r = yield d.fetchChoices(e, t);
3831
+ let r = yield u.fetchChoices(e, t);
3522
3832
  if (n !== ae.value) return;
3523
- let i = Qn(V.value, $(I.value, p.value));
3524
- re.value = fe([...i, ...r], "id"), ne.value = !0;
3833
+ let i = Ar(W.value, kr(F.value, p.value));
3834
+ te.value = ue([...i, ...r], "id"), U.value = !0;
3835
+ } catch (e) {
3836
+ console.error(e);
3525
3837
  } finally {
3526
- G.value--;
3838
+ se.value--;
3527
3839
  }
3528
3840
  }), ve.apply(this, arguments);
3529
3841
  }
3530
3842
  function ye(e) {
3531
- let t = d.fetchChoices;
3532
- if (t === void 0 || v.value || e == null) return null;
3533
- let n = U(e).filter((e) => !V.value.some((t) => t.id === e));
3534
- return n.length ? (W.value++, an(function* () {
3843
+ let t = u.fetchChoices;
3844
+ if (t === void 0 || m.value || e == null) return null;
3845
+ let n = ne(e).filter((e) => !W.value.some((t) => t.id === e));
3846
+ return n.length ? (q.value++, Fn(function* () {
3535
3847
  try {
3536
3848
  let e = yield t(void 0, p.value ? n : n[0]);
3537
- re.value = fe([...V.value, ...e], "id"), ne.value = !0;
3849
+ te.value = ue([...W.value, ...e], "id"), U.value = !0;
3850
+ } catch (e) {
3851
+ console.error(e);
3538
3852
  } finally {
3539
- W.value--;
3853
+ q.value--;
3540
3854
  }
3541
3855
  })()) : null;
3542
3856
  }
3543
3857
  function be() {
3544
- let e = z.value.readonly, t = I.value;
3545
- !e && !y.value && t == null && ie.value.length && (t = ie.value[0].value), t = $(t, p.value), $n(t, B, p.value, v.value, V.value), !(W.value > 0) && (le(t), e || de(t));
3858
+ let e = z.value.readonly, t = F.value;
3859
+ !e && !h.value && t == null && G.value.length && (t = G.value[0].value), t = kr(t, p.value), jr(t, H, p.value, m.value, W.value), !(q.value > 0) && (le(t), e || Y(t));
3546
3860
  }
3547
- let xe = null;
3548
- if (d.fetchChoices !== void 0) {
3549
- var Se;
3550
- xe = (Se = ye($(I.value, p.value))) == null ? _e(void 0, I.value) : Se;
3861
+ let xe = typeof window < "u", Se = null;
3862
+ if (u.fetchChoices !== void 0 && xe) {
3863
+ var Ce;
3864
+ Se = (Ce = ye(kr(F.value, p.value))) == null ? _e(void 0, F.value) : Ce;
3551
3865
  }
3552
- return be(), xe == null || xe.then(() => {
3866
+ return (xe || u.fetchChoices === void 0) && be(), Se == null || Se.then(() => {
3553
3867
  be();
3554
- }), N(() => z.value.readonly, (e) => {
3868
+ }), I(() => z.value.readonly, (e) => {
3555
3869
  e || be();
3556
3870
  }), (e, t) => {
3557
- let s = T("v-chip"), l = T("v-list-item");
3558
- return j(ee) ? (x(), n(E(j(v) ? "v-combobox" : "v-autocomplete"), m({
3871
+ var s, l;
3872
+ let u = D("v-text-field"), f = D("v-chip"), _ = D("v-list-item");
3873
+ return P(k) && !P(B) ? (C(), n(u, g({
3559
3874
  key: 0,
3875
+ class: [
3876
+ P(b),
3877
+ P(T),
3878
+ P(L)
3879
+ ],
3880
+ "model-value": re.value
3881
+ }, P(z), { readonly: "" }), {
3882
+ label: R((e) => [c(P($), {
3883
+ data: e,
3884
+ label: P(j)
3885
+ }, null, 8, ["data", "label"])]),
3886
+ message: R(({ message: e }) => [c(P(Q), {
3887
+ message: e,
3888
+ errors: P(N)
3889
+ }, null, 8, ["message", "errors"])]),
3890
+ _: 1
3891
+ }, 16, ["class", "model-value"])) : P(k) ? (C(), n(O(P(m) ? "v-combobox" : "v-autocomplete"), g({
3892
+ key: 1,
3560
3893
  ref_key: "dfSelectRef",
3561
- ref: D,
3562
- modelValue: B.value,
3563
- "onUpdate:modelValue": t[0] || (t[0] = (e) => B.value = e),
3894
+ ref: S,
3895
+ modelValue: H.value,
3896
+ "onUpdate:modelValue": t[0] || (t[0] = (e) => H.value = e),
3564
3897
  class: [
3565
- j(b),
3566
- j(k),
3567
- j(L),
3568
- { "df-select-multirow": oe.value }
3898
+ P(b),
3899
+ P(T),
3900
+ P(L),
3901
+ {
3902
+ "df-select-multirow": K.value,
3903
+ "df-select-single": !P(p)
3904
+ }
3569
3905
  ],
3570
- items: ie.value,
3906
+ style: { "--df-select-search-width": `${((s = (l = ie.value) == null ? void 0 : l.length) == null ? 0 : s) + 1}ch` },
3907
+ items: G.value,
3571
3908
  "return-object": !1,
3572
3909
  chips: "",
3573
3910
  "auto-select-first": !0,
3574
- "closable-chips": j(y) || j(p) && B.value.length > 1,
3575
- clearable: j(y),
3576
- multiple: j(p),
3577
- loading: se.value,
3911
+ "closable-chips": P(h) || P(p) && H.value.length > 1,
3912
+ clearable: P(h),
3913
+ multiple: P(p),
3914
+ loading: ce.value,
3578
3915
  "hide-selected": !1,
3579
- "aria-describedby": j(z).helpText ? `${j(z).name}-help` : null,
3916
+ "aria-describedby": P(z).helpText ? `${P(z).name}-help` : null,
3580
3917
  "menu-props": { maxHeight: "400" },
3581
- search: H.value
3582
- }, j(z), {
3918
+ search: ie.value
3919
+ }, P(z), {
3583
3920
  "onUpdate:search": t[1] || (t[1] = (e) => _e(e, void 0)),
3584
3921
  "onUpdate:modelValue": he,
3585
- "onClick:clear": t[2] || (t[2] = (e) => B.value = null),
3586
- onBlur: t[3] || (t[3] = (e) => P.value = !0),
3922
+ "onClick:clear": t[2] || (t[2] = (e) => H.value = null),
3923
+ onBlur: t[3] || (t[3] = (e) => ee.value = !0),
3587
3924
  onMousedownCapture: t[4] || (t[4] = (e) => pe(e))
3588
3925
  }), o({
3589
- chip: F(({ item: e }) => [(x(), n(s, {
3926
+ chip: R(({ item: e }) => [(C(), n(f, {
3590
3927
  key: e.value,
3591
3928
  label: "",
3592
3929
  size: "small",
3593
3930
  class: "d-flex align-middle",
3594
- variant: j(p) ? "tonal" : "text",
3595
- closable: j(p),
3931
+ variant: P(p) ? "tonal" : "text",
3932
+ closable: P(p),
3596
3933
  "onClick:close": (t) => ge(t, e.value)
3597
3934
  }, {
3598
- prepend: F(() => {
3935
+ prepend: R(() => {
3599
3936
  var t;
3600
- return [(t = e.raw) != null && t.icon ? (x(), n(j(R), {
3937
+ return [(t = e.raw) != null && t.icon ? (C(), n(P(V), {
3601
3938
  key: 0,
3602
3939
  class: "me-1",
3603
3940
  name: e.raw.icon
3604
3941
  }, null, 8, ["name"])) : r("", !0)];
3605
3942
  }),
3606
- default: F(() => [a("span", { class: g({ "text-body-1": !j(p) }) }, O(e.title), 3)]),
3943
+ default: R(() => [a("span", { class: v({ "text-body-1": !P(p) }) }, A(e.title), 3)]),
3607
3944
  _: 2
3608
3945
  }, 1032, [
3609
3946
  "variant",
3610
3947
  "closable",
3611
3948
  "onClick:close"
3612
3949
  ]))]),
3613
- label: F((e) => [c(j(X), {
3950
+ label: R((e) => [c(P($), {
3614
3951
  data: e,
3615
- label: j(M)
3952
+ label: P(j)
3616
3953
  }, null, 8, ["data", "label"])]),
3617
- item: F(({ props: e, item: t }) => [c(l, _(u(e)), {
3618
- prepend: F(() => {
3954
+ item: R(({ props: e, item: t }) => [c(_, y(d(e)), {
3955
+ prepend: R(() => {
3619
3956
  var e;
3620
- return [(e = t.raw) != null && e.icon ? (x(), i("span", er, [c(j(R), {
3957
+ return [(e = t.raw) != null && e.icon ? (C(), i("span", Mr, [c(P(V), {
3621
3958
  class: "action-icon",
3622
3959
  name: t.raw.icon
3623
3960
  }, null, 8, ["name"])])) : r("", !0)];
3624
3961
  }),
3625
3962
  _: 2
3626
3963
  }, 1040)]),
3627
- message: F(({ message: e }) => [c(j(Y), {
3964
+ message: R(({ message: e }) => [c(P(Q), {
3628
3965
  message: e,
3629
- errors: j(te)
3966
+ errors: P(N)
3630
3967
  }, null, 8, ["message", "errors"])]),
3631
3968
  _: 2
3632
3969
  }, [e.$slots["append-inner"] ? {
3633
3970
  name: "append-inner",
3634
- fn: F((t) => [w(e.$slots, "append-inner", _(u(t)), void 0, !0)]),
3971
+ fn: R((t) => [E(e.$slots, "append-inner", y(d(t)), void 0, !0)]),
3635
3972
  key: "0"
3636
3973
  } : void 0, e.$slots["prepend-inner"] ? {
3637
3974
  name: "prepend-inner",
3638
- fn: F((t) => [w(e.$slots, "prepend-inner", _(u(t)), void 0, !0)]),
3975
+ fn: R((t) => [E(e.$slots, "prepend-inner", y(d(t)), void 0, !0)]),
3639
3976
  key: "1"
3640
3977
  } : void 0]), 1040, [
3641
3978
  "modelValue",
3642
3979
  "class",
3980
+ "style",
3643
3981
  "items",
3644
3982
  "closable-chips",
3645
3983
  "clearable",
@@ -3650,9 +3988,9 @@ var er = {
3650
3988
  ])) : r("", !0);
3651
3989
  };
3652
3990
  }
3653
- }), [["__scopeId", "data-v-94b008ba"]]), nr = /* @__PURE__ */ l({
3991
+ }), [["__scopeId", "data-v-1c000b27"]]), Pr = /* @__PURE__ */ l({
3654
3992
  __name: "df-text-area",
3655
- props: /*@__PURE__*/ p({
3993
+ props: /*@__PURE__*/ h({
3656
3994
  rows: {},
3657
3995
  maxRows: {},
3658
3996
  control: {},
@@ -3669,33 +4007,33 @@ var er = {
3669
4007
  passthroughAttrs: {},
3670
4008
  density: {},
3671
4009
  variant: {}
3672
- }, J(J({}, Z), {}, {
4010
+ }, Z(Z({}, en), {}, {
3673
4011
  rows: void 0,
3674
4012
  maxRows: void 0
3675
4013
  })),
3676
4014
  emits: ["update:modelValue", "click:clear"],
3677
4015
  setup(e, { emit: t }) {
3678
- let n = e, { densityClass: a, isRendered: o, label: s, shownErrors: l, touched: u, value: d, visibilityClass: p, vuetifyBindings: h } = Q(n, t), { cssClass: _ } = A(n);
4016
+ let n = e, { densityClass: a, isRendered: o, label: s, shownErrors: l, touched: u, value: d, visibilityClass: f, vuetifyBindings: p } = tn(n, t), { cssClass: h } = M(n);
3679
4017
  return (t, n) => {
3680
- let v = T("v-textarea");
3681
- return j(o) ? (x(), i("div", {
4018
+ let _ = D("v-textarea");
4019
+ return P(o) ? (C(), i("div", {
3682
4020
  key: 0,
3683
- class: g(["df-textarea-container", [j(a), j(p)]])
3684
- }, [c(v, m({
3685
- modelValue: j(d),
3686
- "onUpdate:modelValue": n[0] || (n[0] = (e) => f(d) ? d.value = e : null),
3687
- class: j(_),
4021
+ class: v(["df-textarea-container", [P(a), P(f)]])
4022
+ }, [c(_, g({
4023
+ modelValue: P(d),
4024
+ "onUpdate:modelValue": n[0] || (n[0] = (e) => m(d) ? d.value = e : null),
4025
+ class: P(h),
3688
4026
  rows: e.rows,
3689
4027
  "auto-grow": (e.maxRows || 0) > 0,
3690
4028
  "max-rows": e.maxRows
3691
- }, j(h), { onBlur: n[1] || (n[1] = (e) => u.value = !0) }), {
3692
- label: F((e) => [c(j(X), {
4029
+ }, P(p), { onBlur: n[1] || (n[1] = (e) => u.value = !0) }), {
4030
+ label: R((e) => [c(P($), {
3693
4031
  data: e,
3694
- label: j(s)
4032
+ label: P(s)
3695
4033
  }, null, 8, ["data", "label"])]),
3696
- message: F(({ message: e }) => [c(j(Y), {
4034
+ message: R(({ message: e }) => [c(P(Q), {
3697
4035
  message: e,
3698
- errors: j(l)
4036
+ errors: P(l)
3699
4037
  }, null, 8, ["message", "errors"])]),
3700
4038
  _: 1
3701
4039
  }, 16, [
@@ -3707,62 +4045,69 @@ var er = {
3707
4045
  ])], 2)) : r("", !0);
3708
4046
  };
3709
4047
  }
3710
- }), rr = /* @__PURE__ */ ct({
3711
- DfActions: () => $t,
3712
- DfCheckbox: () => en,
3713
- DfColor: () => tn,
3714
- DfDateTime: () => nn,
3715
- DfFile: () => sn,
3716
- DfImage: () => pn,
3717
- DfInput: () => mn,
3718
- DfInputHint: () => Y,
3719
- DfLabel: () => X,
3720
- DfRtfEditor: () => Xn,
3721
- DfSelect: () => tr,
3722
- DfTextArea: () => nr
3723
- }), ir = /* @__PURE__ */ ct({
3724
- VAutocomplete: () => Le,
3725
- VBtn: () => Re,
3726
- VCheckbox: () => ze,
3727
- VChip: () => Be,
3728
- VCol: () => qe,
3729
- VColorPicker: () => He,
3730
- VCombobox: () => Ve,
3731
- VConfirmEdit: () => Ue,
3732
- VDatePicker: () => We,
3733
- VField: () => Ge,
3734
- VFileInput: () => Ke,
3735
- VIcon: () => Ye,
3736
- VImg: () => Xe,
3737
- VInput: () => Ze,
3738
- VListItem: () => Qe,
3739
- VMenu: () => $e,
3740
- VNumberInput: () => et,
3741
- VProgressLinear: () => tt,
3742
- VRow: () => Je,
3743
- VSelect: () => nt,
3744
- VSwitch: () => rt,
3745
- VTextField: () => at,
3746
- VTextarea: () => it,
3747
- VTimePicker: () => ot
3748
- }), ar = {
3749
- "df-actions": $t,
3750
- "df-checkbox": en,
3751
- "df-color": tn,
3752
- "df-date-time": nn,
3753
- "df-file": sn,
3754
- "df-image": pn,
3755
- "df-input": mn,
3756
- "df-input-hint": Y,
3757
- "df-label": X,
3758
- "df-rtf-editor": Xn,
3759
- "df-select": tr,
3760
- "df-text-area": nr
3761
- }, or = /* @__PURE__ */ ct({}), sr = { install: (e, t) => {
4048
+ }), Fr = /* @__PURE__ */ pt({
4049
+ DfActions: () => En,
4050
+ DfCheckbox: () => Dn,
4051
+ DfColor: () => Mn,
4052
+ DfDateTime: () => Nn,
4053
+ DfFile: () => Ln,
4054
+ DfImage: () => Un,
4055
+ DfInput: () => Wn,
4056
+ DfInputHint: () => Q,
4057
+ DfLabel: () => $,
4058
+ DfRtfEditor: () => Dr,
4059
+ DfSelect: () => Nr,
4060
+ DfTextArea: () => Pr
4061
+ }), Ir = /* @__PURE__ */ pt({
4062
+ VAutocomplete: () => Fe,
4063
+ VBtn: () => Ie,
4064
+ VBtnGroup: () => Le,
4065
+ VBtnToggle: () => Re,
4066
+ VCard: () => ze,
4067
+ VCardActions: () => Be,
4068
+ VCheckbox: () => Ve,
4069
+ VChip: () => He,
4070
+ VCol: () => Xe,
4071
+ VColorPicker: () => We,
4072
+ VCombobox: () => Ue,
4073
+ VConfirmEdit: () => Ge,
4074
+ VDatePicker: () => Ke,
4075
+ VDivider: () => qe,
4076
+ VField: () => Je,
4077
+ VFileInput: () => Ye,
4078
+ VIcon: () => Qe,
4079
+ VImg: () => $e,
4080
+ VInput: () => et,
4081
+ VList: () => tt,
4082
+ VListItem: () => nt,
4083
+ VListItemTitle: () => rt,
4084
+ VMenu: () => it,
4085
+ VNumberInput: () => at,
4086
+ VProgressLinear: () => ot,
4087
+ VRow: () => Ze,
4088
+ VSelect: () => st,
4089
+ VSwitch: () => ct,
4090
+ VTextField: () => ut,
4091
+ VTextarea: () => lt,
4092
+ VTimePicker: () => dt
4093
+ }), Lr = {
4094
+ "df-actions": En,
4095
+ "df-checkbox": Dn,
4096
+ "df-color": Mn,
4097
+ "df-date-time": Nn,
4098
+ "df-file": Ln,
4099
+ "df-image": Un,
4100
+ "df-input": Wn,
4101
+ "df-input-hint": Q,
4102
+ "df-label": $,
4103
+ "df-rtf-editor": Dr,
4104
+ "df-select": Nr,
4105
+ "df-text-area": Pr
4106
+ }, Rr = /* @__PURE__ */ pt({}), zr = { install: (e, t) => {
3762
4107
  var n, r;
3763
- e.provide(jt, t == null ? {} : t), (n = t == null ? void 0 : t.registerComponents) != null && n && Object.entries(rr).map(([t, n]) => e.component(t, n)), (r = t == null ? void 0 : t.registerVuetifyComponents) != null && r && Object.entries(ir).map(([t, n]) => e.component(t, n));
4108
+ e.provide(Yt, t == null ? {} : t), (n = t == null ? void 0 : t.registerComponents) != null && n && Object.entries(Fr).map(([t, n]) => e.component(t, n)), (r = t == null ? void 0 : t.registerVuetifyComponents) != null && r && Object.entries(Ir).map(([t, n]) => e.component(t, n));
3764
4109
  } };
3765
4110
  //#endregion
3766
- export { Jt as Action, kt as DateTimeLocaleConfig, $t as DfActions, en as DfCheckbox, tn as DfColor, nn as DfDateTime, sn as DfFile, pn as DfImage, mn as DfInput, or as DfInputComponentProps, rr as DfInputComponents, Y as DfInputHint, X as DfLabel, Xn as DfRtfEditor, tr as DfSelect, nr as DfTextArea, sr as DynamicFormsInputs, At as FileGoneError, It as InputBase, Pt as Label, Kt as ResponsiveActionRenderOptions, Ut as ResponsiveRenderOptions, ir as VuetifyComponents, zt as actionDisplayStyles, Z as defaultBaseProps, Bt as defaultDisplayStyle, ar as dfInputComponentsByTag, Wt as getBreakpointName, qt as getRenderOptionsForBreakpoint, Vt as isActionDisplayStyle, Ht as responsiveBreakpoints, Mt as selectShownErrors, Xt as setFileGoneError, Lt as translatableStrings, Rt as translateStrings, Gt as useBreakpoint, Yt as useFileTouchKeepAlive, Q as useInputBase, Nt as useShownErrors, jt as vuetifyInputsSettingsKey };
4111
+ export { mn as Action, Nt as DateTimeLocaleConfig, En as DfActions, Dn as DfCheckbox, Mn as DfColor, Nn as DfDateTime, Ln as DfFile, Un as DfImage, Wn as DfInput, Rr as DfInputComponentProps, Fr as DfInputComponents, Q as DfInputHint, $ as DfLabel, Dr as DfRtfEditor, Nr as DfSelect, Pr as DfTextArea, zr as DynamicFormsInputs, Pt as FileGoneError, It as HtmlString, rn as InputBase, $t as Label, Ft as MdString, Xt as MessagesWidget, Kt as RenderableValue, fn as ResponsiveActionRenderOptions, ln as ResponsiveRenderOptions, Ir as VuetifyComponents, an as actionDisplayStyles, en as defaultBaseProps, on as defaultDisplayStyle, Lr as dfInputComponentsByTag, Jt as errorText, un as getBreakpointName, pn as getRenderOptionsForBreakpoint, sn as isActionDisplayStyle, Gt as isCallableFunction, Rt as isRenderContent, Lt as isSimpleComponentDef, Ut as renderContentText, cn as responsiveBreakpoints, Zt as selectShownErrors, Cn as setFileGoneError, qt as toErrorDescription, bn as translate, _n as translateStrings, dn as useBreakpoint, Sn as useFileTouchKeepAlive, tn as useInputBase, Qt as useShownErrors, xn as useTranslate, Yt as vuetifyInputsSettingsKey };
3767
4112
 
3768
4113
  //# sourceMappingURL=dynamicforms-vuetify-inputs.js.map