@dynamicforms/vuetify-inputs 0.11.2 → 0.11.4

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