@dynamicforms/vuetify-inputs 0.11.3 → 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 k, unref as A, useCssVars as j, useId as M, watch as N, watchEffect as P, withCtx as F, withKeys as I, withModifiers as L } from "vue";
2
- import R, { Action as z, DisplayMode as B, ExecuteAction as V, MdString as ee, MessagesWidget as te, ValidationErrorRenderContent as H } from "@dynamicforms/vue-forms";
3
- import { CachedIcon as U } from "vue-cached-icon";
4
- import ne from "vue-markdown-render";
5
- import { castArray as re, clone as W, first as ie, isArray as G, isBoolean as ae, isEmpty as K, isEqual as oe, isNaN as se, isObjectLike as ce, isPlainObject as le, isString as q, toNumber as ue, unionBy as de } from "lodash-es";
6
- import { createTranslatable as fe } from "@dynamicforms/translatable";
7
- import { useDisplay as pe } from "vuetify";
8
- import { format as me, parse as he } from "date-fns";
9
- import ge from "@tiptap/extension-image";
10
- import _e from "@tiptap/extension-placeholder";
11
- import { Table as ve } from "@tiptap/extension-table";
12
- import ye from "@tiptap/extension-table-cell";
13
- import be from "@tiptap/extension-table-header";
14
- import xe from "@tiptap/extension-table-row";
15
- import Se from "@tiptap/extension-text-align";
16
- import { NodeSelection as Ce } from "@tiptap/pm/state";
17
- import we from "@tiptap/starter-kit";
18
- import { EditorContent as Te, useEditor as Ee } from "@tiptap/vue-3";
19
- import { BubbleMenu as De } from "@tiptap/vue-3/menus";
20
- import { Extension as Oe, Mark as ke, Node as Ae, mergeAttributes as je } from "@tiptap/core";
21
- import { Fragment as Me, Slice as Ne } from "@tiptap/pm/model";
22
- import Pe from "@tiptap/extension-link";
23
- import { VAutocomplete as Fe } from "vuetify/components/VAutocomplete";
24
- import { VBtn as Ie } from "vuetify/components/VBtn";
25
- import { VCheckbox as Le } from "vuetify/components/VCheckbox";
26
- import { VChip as Re } from "vuetify/components/VChip";
27
- import { VCombobox as ze } from "vuetify/components/VCombobox";
28
- import { VColorPicker as Be } from "vuetify/components/VColorPicker";
29
- import { VConfirmEdit as Ve } from "vuetify/components/VConfirmEdit";
30
- import { VDatePicker as He } from "vuetify/components/VDatePicker";
31
- import { VField as Ue } from "vuetify/components/VField";
32
- import { VFileInput as We } from "vuetify/components/VFileInput";
33
- import { VCol as Ge, VRow as Ke } from "vuetify/components/VGrid";
34
- import { VIcon as qe } from "vuetify/components/VIcon";
35
- import { VImg as Je } from "vuetify/components/VImg";
36
- import { VInput as Ye } from "vuetify/components/VInput";
37
- import { VListItem as Xe } from "vuetify/components/VList";
38
- import { VMenu as Ze } from "vuetify/components/VMenu";
39
- import { VNumberInput as Qe } from "vuetify/components/VNumberInput";
40
- import { VProgressLinear as $e } from "vuetify/components/VProgressLinear";
41
- import { VSelect as et } from "vuetify/components/VSelect";
42
- import { VSwitch as tt } from "vuetify/components/VSwitch";
43
- import { VTextarea as nt } from "vuetify/components/VTextarea";
44
- import { VTextField as rt } from "vuetify/components/VTextField";
45
- import { VTimePicker as it } from "vuetify/components/VTimePicker";
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
+ import { CachedIcon as V } from "vue-cached-icon";
4
+ import H from "vue-markdown-render";
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 at = Object.defineProperty, ot = (e, t) => {
47
+ var ot = Object.defineProperty, st = (e, t) => {
48
48
  let n = {};
49
- for (var r in e) at(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 || at(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 st(e) {
57
+ function ct(e) {
58
58
  "@babel/helpers - typeof";
59
- return st = 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
- }, st(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 ct(e, t) {
68
- if (st(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 (st(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 lt(e) {
80
- var t = ct(e, "string");
81
- return st(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 ut(e, t, n) {
86
- return (t = lt(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 ut(e, t, n) {
92
92
  }
93
93
  //#endregion
94
94
  //#region \0@oxc-project+runtime@0.146.0/helpers/esm/objectSpread2.js
95
- function dt(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);
@@ -105,9 +105,9 @@ function dt(e, t) {
105
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 ? dt(Object(n), !0).forEach(function(t) {
109
- ut(e, t, n[t]);
110
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : dt(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 J(e) {
115
115
  }
116
116
  //#endregion
117
117
  //#region node_modules/date-fns/locale/sl/_lib/formatDistance.js
118
- function ft(e) {
118
+ function pt(e) {
119
119
  return e.one !== void 0;
120
120
  }
121
- var pt = {
121
+ var mt = {
122
122
  lessThanXSeconds: {
123
123
  present: {
124
124
  one: "manj kot {{count}} sekunda",
@@ -393,7 +393,7 @@ var pt = {
393
393
  }
394
394
  }
395
395
  };
396
- function mt(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 mt(e) {
402
402
  default: return "other";
403
403
  }
404
404
  }
405
- var ht = (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 = pt[e];
408
+ let a = mt[e];
409
409
  if (typeof a == "string") r += a;
410
410
  else {
411
- let e = mt(t);
412
- ft(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 gt(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 _t = {
425
- date: gt({
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 _t = {
431
431
  },
432
432
  defaultWidth: "full"
433
433
  }),
434
- time: gt({
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 _t = {
440
440
  },
441
441
  defaultWidth: "full"
442
442
  }),
443
- dateTime: gt({
443
+ dateTime: _t({
444
444
  formats: {
445
445
  full: "{{date}} {{time}}",
446
446
  long: "{{date}} {{time}}",
@@ -449,7 +449,7 @@ var _t = {
449
449
  },
450
450
  defaultWidth: "full"
451
451
  })
452
- }, vt = {
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 _t = {
470
470
  }
471
471
  },
472
472
  other: "P"
473
- }, yt = (e, t, n, r) => {
474
- let i = vt[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 bt(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 bt(e) {
490
490
  return i[a];
491
491
  };
492
492
  }
493
- var xt = {
493
+ var St = {
494
494
  ordinalNumber: (e, t) => Number(e) + ".",
495
- era: bt({
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 xt = {
500
500
  },
501
501
  defaultWidth: "wide"
502
502
  }),
503
- quarter: bt({
503
+ quarter: xt({
504
504
  values: {
505
505
  narrow: [
506
506
  "1",
@@ -524,7 +524,7 @@ var xt = {
524
524
  defaultWidth: "wide",
525
525
  argumentCallback: (e) => e - 1
526
526
  }),
527
- month: bt({
527
+ month: xt({
528
528
  values: {
529
529
  narrow: [
530
530
  "j",
@@ -571,7 +571,7 @@ var xt = {
571
571
  },
572
572
  defaultWidth: "wide"
573
573
  }),
574
- day: bt({
574
+ day: xt({
575
575
  values: {
576
576
  narrow: [
577
577
  "n",
@@ -612,7 +612,7 @@ var xt = {
612
612
  },
613
613
  defaultWidth: "wide"
614
614
  }),
615
- dayPeriod: bt({
615
+ dayPeriod: xt({
616
616
  values: {
617
617
  narrow: {
618
618
  am: "d",
@@ -683,11 +683,11 @@ var xt = {
683
683
  };
684
684
  //#endregion
685
685
  //#region node_modules/date-fns/locale/_lib/buildMatchFn.js
686
- function St(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) ? wt(s, (e) => e.test(o)) : Ct(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 St(e) {
696
696
  };
697
697
  };
698
698
  }
699
- function Ct(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 wt(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 Tt(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 Tt(e) {
721
721
  }
722
722
  //#endregion
723
723
  //#region node_modules/date-fns/locale/sl.js
724
- var Et = {
724
+ var Dt = {
725
725
  code: "sl",
726
- formatDistance: ht,
727
- formatLong: _t,
728
- formatRelative: yt,
729
- localize: xt,
726
+ formatDistance: gt,
727
+ formatLong: vt,
728
+ formatRelative: bt,
729
+ localize: St,
730
730
  match: {
731
- ordinalNumber: Tt({
731
+ ordinalNumber: Et({
732
732
  matchPattern: /^(\d+)\./i,
733
733
  parsePattern: /\d+/i,
734
734
  valueCallback: (e) => parseInt(e, 10)
735
735
  }),
736
- era: St({
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 Et = {
742
742
  parsePatterns: { any: [/^pr/i, /^(po|na[sš]em)/i] },
743
743
  defaultParseWidth: "any"
744
744
  }),
745
- quarter: St({
745
+ quarter: Ct({
746
746
  matchPatterns: {
747
747
  narrow: /^[1234]/i,
748
748
  abbreviated: /^[1234]\.\s?[čc]et\.?/i,
@@ -758,7 +758,7 @@ var Et = {
758
758
  defaultParseWidth: "any",
759
759
  valueCallback: (e) => e + 1
760
760
  }),
761
- month: St({
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 Et = {
811
811
  },
812
812
  defaultParseWidth: "wide"
813
813
  }),
814
- day: St({
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 Et = {
841
841
  },
842
842
  defaultParseWidth: "any"
843
843
  }),
844
- dayPeriod: St({
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,14 +876,14 @@ var Et = {
876
876
  weekStartsOn: 1,
877
877
  firstWeekContainsDate: 1
878
878
  }
879
- }, Dt = {
880
- dateTimeLocale: x(Et),
879
+ }, Ot = {
880
+ dateTimeLocale: S(Dt),
881
881
  setDateTimeLocale(e) {
882
882
  f(e) ? this.dateTimeLocale = e : this.dateTimeLocale.value = e;
883
883
  }
884
- }, Ot = class extends Error {
884
+ }, kt = class extends Error {
885
885
  constructor(e) {
886
- super(e), ut(this, "errorText", void 0), this.errorText = e;
886
+ super(e), dt(this, "errorText", void 0), this.errorText = e;
887
887
  }
888
888
  }, Y = /* @__PURE__ */ l({
889
889
  __name: "df-input-hint",
@@ -895,7 +895,7 @@ var Et = {
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(A(te), {
898
+ return (e, t) => (x(), n(j(B), {
899
899
  message: a.value,
900
900
  classes: o.value
901
901
  }, null, 8, ["message", "classes"]));
@@ -910,19 +910,19 @@ var Et = {
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(A(U), {
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 A(ee) ? (b(), n(A(ne), {
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 Et = {
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
- }), kt = Symbol("vuetifyInputsSettingsKey"), At = class {
938
+ }), At = Symbol("vuetifyInputsSettingsKey"), jt = class {
939
939
  constructor(e, t, n = "v-icon") {
940
- ut(this, "text", void 0), ut(this, "icon", void 0), ut(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
942
  }, Z = {
943
943
  enabled: void 0,
944
944
  clearable: !0
945
945
  };
946
946
  function Q(e, n) {
947
- let r = d(kt, {}), 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 R.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 H(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 ? R.DisplayMode.FULL : R.DisplayMode.fromAny(e.visibility)), y = t(() => v.value !== R.DisplayMode.SUPPRESS), b = t(() => ({
971
- "d-none": v.value === R.DisplayMode.HIDDEN,
972
- invisible: v.value === R.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 q(n || "") ? new At(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
- }), k = 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;
991
+ return (t = (n = e.cssClass) == null ? x.value.cssClass : n) == null ? "" : t;
992
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;
994
+ return (t = (n = (a = (o = e.density) == null ? x.value.density : o) == null ? i : a) == null ? r.defaultDensity : n) == null ? "default" : t;
995
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,
@@ -1013,7 +1013,7 @@ function Q(e, n) {
1013
1013
  var t;
1014
1014
  return J({
1015
1015
  name: (t = e.control) == null ? void 0 : t.fieldName,
1016
- class: k.value,
1016
+ class: O.value,
1017
1017
  density: j.value,
1018
1018
  variant: M.value,
1019
1019
  label: C.value.text,
@@ -1021,8 +1021,8 @@ function Q(e, n) {
1021
1021
  readonly: !_.value,
1022
1022
  disabled: !_.value,
1023
1023
  placeholder: w.value,
1024
- "persistent-placeholder": !K(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 jt = { class: "d-flex w-100 df-style-resetting df-sub-field" }, Mt = /* @__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 jt = { class: "d-flex w-100 df-style-resetting df-sub-field" }, Mt = /* @__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(() => !!(A(s.clearable) && A(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 A(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: A(y).name,
1069
- density: A(y).density,
1070
- hint: A(y).hint,
1071
- "persistent-hint": A(y).persistentHint,
1072
- "hide-details": A(y).hideDetails,
1073
- "error-messages": A(y).errorMessages,
1074
- class: g([e.cssClass, A(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: F(({ message: e }) => [c(Y, {
1076
+ message: P(({ message: e }) => [c(Y, {
1077
1077
  message: e,
1078
- errors: A(p)
1078
+ errors: j(p)
1079
1079
  }, null, 8, ["message", "errors"])]),
1080
- default: F(() => [c(s, {
1081
- variant: A(y).variant,
1082
- density: A(y).density,
1083
- label: A(y).label,
1084
- disabled: A(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: !!A(h) || !!A(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: F((e) => [c(X, {
1093
+ label: P((e) => [c(X, {
1094
1094
  data: e,
1095
- label: A(f)
1095
+ label: j(f)
1096
1096
  }, null, 8, ["data", "label"])]),
1097
- default: F((e) => [a("div", jt, [C(t.$slots, "default", _(u(e)))])]),
1098
- loader: F((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: F((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 jt = { class: "d-flex w-100 df-style-resetting df-sub-field" }, Mt = /* @__P
1114
1114
  _: 2
1115
1115
  }, [t.$slots.prepend ? {
1116
1116
  name: "prepend",
1117
- fn: F((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 jt = { class: "d-flex w-100 df-style-resetting df-sub-field" }, Mt = /* @__P
1127
1127
  ])) : r("", !0);
1128
1128
  };
1129
1129
  }
1130
- }), { strings: Nt, translateStrings: Pt } = fe({
1130
+ }), { strings: Pt, translateStrings: Ft } = pe({
1131
1131
  Yes: "Yes",
1132
1132
  No: "No",
1133
1133
  Close: "Close",
@@ -1192,7 +1192,7 @@ var jt = { class: "d-flex w-100 df-style-resetting df-sub-field" }, Mt = /* @__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
- }($ || {}), Ft = 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 jt = { class: "d-flex w-100 df-style-resetting df-sub-field" }, Mt = /* @__P
1211
1211
  })($ || ($ = {})), Object.freeze($);
1212
1212
  //#endregion
1213
1213
  //#region src/helpers/action/responsive-render-options.ts
1214
- var It = [
1214
+ var Lt = [
1215
1215
  "xs",
1216
1216
  "sm",
1217
1217
  "md",
1218
1218
  "lg",
1219
1219
  "xl"
1220
- ], Lt = class {
1220
+ ], Rt = class {
1221
1221
  constructor(e) {
1222
- ut(this, "_value", void 0), this._value = this.cleanBreakpoint(e, !0), e && It.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 It = [
1227
1227
  getOptionsForBreakpoint(e) {
1228
1228
  var t;
1229
1229
  let n = (t = this.cleanBreakpoint(this._value)) == null ? {} : t;
1230
- for (let t of It) {
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] = le(t) ? J(J({}, 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 Rt(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 zt() {
1246
- let e = pe();
1247
- return t(() => Rt(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 Bt = class extends Lt {
1251
+ var Vt = class extends Rt {
1252
1252
  cleanBreakpoint(e, t = !1) {
1253
- if ((!e || !ce(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)), q(e.label) && (n.label = e.label), q(e.icon) && (n.icon = e.icon), ae(e.showLabel) && (n.showLabel = e.showLabel), ae(e.showIcon) && (n.showIcon = e.showIcon), q(e.name) && (n.name = e.name), ae(e.defaultConfirm) && (n.defaultConfirm = e.defaultConfirm), ae(e.defaultReject) && (n.defaultReject = e.defaultReject), le(e.passthroughAttrs) && (n.passthroughAttrs = J({}, 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 Vt(e, t) {
1259
- let n = new Bt(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: q(n.label) && !K(n.label) ? n.showLabel : !1,
1266
- showIcon: q(n.icon) && !K(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 Vt(e, t) {
1271
1271
  }
1272
1272
  //#endregion
1273
1273
  //#region src/helpers/action/action.ts
1274
- var Ht = class e extends z {
1274
+ var Ut = class e extends R {
1275
1275
  getBreakpointValue(e) {
1276
- return t(() => Vt(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 Ht = class e extends z {
1282
1282
  return this.value.showLabel ? this.value.label : void 0;
1283
1283
  }
1284
1284
  get showLabel() {
1285
- return q(this.value.label) && !K(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 q(this.value.icon) && !K(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;
@@ -1306,7 +1306,7 @@ var Ht = class e extends z {
1306
1306
  var n;
1307
1307
  let r = J(J({}, t == null ? {} : t), {}, { value: {
1308
1308
  name: "close",
1309
- label: Nt.Close,
1309
+ label: Pt.Close,
1310
1310
  icon: "ion-close-outline",
1311
1311
  renderAs: $.BUTTON,
1312
1312
  showLabel: !0,
@@ -1318,7 +1318,7 @@ var Ht = class e extends z {
1318
1318
  var n;
1319
1319
  let r = J(J({}, t == null ? {} : t), {}, { value: {
1320
1320
  name: "yes",
1321
- label: Nt.Yes,
1321
+ label: Pt.Yes,
1322
1322
  icon: "ion-thumbs-up-outline",
1323
1323
  renderAs: $.BUTTON,
1324
1324
  showLabel: !0,
@@ -1330,7 +1330,7 @@ var Ht = class e extends z {
1330
1330
  var n;
1331
1331
  let r = J(J({}, t == null ? {} : t), {}, { value: {
1332
1332
  name: "no",
1333
- label: Nt.No,
1333
+ label: Pt.No,
1334
1334
  icon: "ion-thumbs-down-outline",
1335
1335
  renderAs: $.BUTTON,
1336
1336
  showLabel: !0,
@@ -1341,8 +1341,8 @@ var Ht = class e extends z {
1341
1341
  };
1342
1342
  //#endregion
1343
1343
  //#region src/helpers/use-file-touch-keepalive.ts
1344
- function Ut(e, t, n, r) {
1345
- let i = d(kt, {}), 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,7 +1352,7 @@ function Ut(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 Ot && r(e.errorText);
1355
+ e instanceof kt && r(e.errorText);
1356
1356
  });
1357
1357
  }, l);
1358
1358
  }
@@ -1361,55 +1361,57 @@ function Ut(e, t, n, r) {
1361
1361
  clearTouchInterval: o
1362
1362
  };
1363
1363
  }
1364
- function Wt(e, t) {
1365
- e && (e.errors = [new H(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 Gt = {
1369
+ var Kt = {
1370
1370
  key: 1,
1371
1371
  style: { width: "0.5rem" }
1372
- }, Kt = { key: 2 }, qt = /* @__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 = zt(), c = t(() => A(o.actions).filter((e) => e.visibility !== B.SUPPRESS)), l = t(() => c.value.map((e) => J({ action: e }, Vt(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 === A($).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 === A(B).HIDDEN,
1403
- invisible: e.action.visibility === A(B).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: L((t) => e.action.execute(t), ["stop"]) }), {
1406
- default: F(() => [
1407
- e.icon ? (b(), n(A(U), {
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", Gt)) : r("", !0),
1412
- e.label ? (b(), i("span", Kt, 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 Gt = {
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
- }), Jt = /* @__PURE__ */ l({
1429
+ }), Yt = /* @__PURE__ */ l({
1427
1430
  __name: "df-checkbox",
1428
1431
  props: /*@__PURE__*/ p({
1429
1432
  allowNull: { type: Boolean },
@@ -1451,32 +1454,32 @@ var Gt = {
1451
1454
  set() {}
1452
1455
  });
1453
1456
  function v() {
1454
- let e = W(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 A(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: [A(o), A(p)],
1467
+ class: [j(o), j(p)],
1465
1468
  indeterminate: g.value,
1466
1469
  "false-value": !1,
1467
1470
  "true-value": !0
1468
- }, A(h), {
1471
+ }, j(h), {
1469
1472
  onChange: v,
1470
1473
  onBlur: t[1] || (t[1] = (e) => d.value = !0)
1471
1474
  }), {
1472
- label: F((e) => [c(A(X), {
1475
+ label: P((e) => [c(j(X), {
1473
1476
  "allow-wrap": !0,
1474
1477
  data: e,
1475
- label: A(l)
1478
+ label: j(l)
1476
1479
  }, null, 8, ["data", "label"])]),
1477
- message: F(({ message: e }) => [c(A(Y), {
1480
+ message: P(({ message: e }) => [c(j(Y), {
1478
1481
  message: e,
1479
- errors: A(u)
1482
+ errors: j(u)
1480
1483
  }, null, 8, ["message", "errors"])]),
1481
1484
  _: 1
1482
1485
  }, 16, [
@@ -1486,7 +1489,7 @@ var Gt = {
1486
1489
  ])) : r("", !0);
1487
1490
  };
1488
1491
  }
1489
- }), Yt = /* @__PURE__ */ l({
1492
+ }), Xt = /* @__PURE__ */ l({
1490
1493
  __name: "df-color",
1491
1494
  props: /*@__PURE__*/ p({
1492
1495
  allowNull: { type: Boolean },
@@ -1507,40 +1510,40 @@ var Gt = {
1507
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 : Nt.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 A(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: A(h),
1518
+ modelValue: j(h),
1516
1519
  "onUpdate:modelValue": i[2] || (i[2] = (e) => f(h) ? h.value = e : null),
1517
- class: [A(s), A(g)],
1520
+ class: [j(s), j(g)],
1518
1521
  clearable: e.allowNull,
1519
1522
  type: "text",
1520
- rules: S.value
1521
- }, A(_), { onBlur: i[3] || (i[3] = (e) => p.value = !0) }), {
1522
- label: F((e) => [c(A(X), {
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: A(u)
1527
+ label: j(u)
1525
1528
  }, null, 8, ["data", "label"])]),
1526
- message: F(({ message: e }) => [c(A(Y), {
1529
+ message: P(({ message: e }) => [c(j(Y), {
1527
1530
  message: e,
1528
- errors: A(d)
1531
+ errors: j(d)
1529
1532
  }, null, 8, ["message", "errors"])]),
1530
- "prepend-inner": F(() => [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: A(h) }]) }, null, 4)]),
1536
- default: F(() => [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: F(() => [c(o, {
1543
- modelValue: A(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 Gt = {
1555
1558
  ])) : r("", !0);
1556
1559
  };
1557
1560
  }
1558
- }), Xt = /* @__PURE__ */ l({
1561
+ }), Zt = /* @__PURE__ */ l({
1559
1562
  __name: "df-datetime",
1560
1563
  props: /*@__PURE__*/ p({
1561
1564
  inputType: {},
@@ -1585,43 +1588,43 @@ var Gt = {
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 ? A(Dt.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 } = k(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 A(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 A(C) === "time";
1604
+ return j(C) === "time";
1602
1605
  },
1603
1606
  set(e) {
1604
1607
  C.value = e ? "time" : "";
1605
1608
  }
1606
- }), O = (e) => `${me(e, "yyyy-MM-dd")}T${me(e, "HH:mm")}:00`, j = x(null);
1609
+ }), O = (e) => `${he(e, "yyyy-MM-dd")}T${he(e, "HH:mm")}:00`, k = S(null);
1607
1610
  function M(e, t) {
1608
- if (e == null) j.value = null;
1611
+ if (e == null) k.value = null;
1609
1612
  else if (t === -1) {
1610
- if (A(v) === "time") j.value = O(/* @__PURE__ */ new Date()), M(`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
1616
  M(t, 0), M(t, 1);
1614
1617
  }
1615
1618
  } else {
1616
- j.value == null && (j.value = O(/* @__PURE__ */ new Date()));
1617
- let n = j.value.split(/[TZ]/g);
1618
- n[t] = e.split(/[TZ]/g)[t], j.value = O(/* @__PURE__ */ new Date(`${n[0]}T${n[1].split(".")[0]}`)), A(v) === "date" ? h.value = n[0] : A(v) === "time" ? h.value = n[1] : h.value = A(j) + me(/* @__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
1624
  N(h, (e) => M(e, -1), { immediate: !0 });
1622
- let P = t({
1625
+ let ee = t({
1623
1626
  get() {
1624
- let e = A(j);
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;
@@ -1629,85 +1632,85 @@ var Gt = {
1629
1632
  set(e) {
1630
1633
  M(O(e), 0);
1631
1634
  }
1632
- }), L = t({
1635
+ }), te = t({
1633
1636
  get() {
1634
- let e = A(j);
1637
+ let e = j(k);
1635
1638
  return e == null ? "" : e.split(/[TZ]/g)[1].split(".")[0];
1636
1639
  },
1637
1640
  set(e) {
1638
1641
  M(`T${e}`, 1);
1639
1642
  }
1640
- }), R = t({
1643
+ }), I = t({
1641
1644
  get() {
1642
- let e = A(P);
1643
- return e == null ? "" : me(e, A(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 = he(e, A(y), /* @__PURE__ */ new Date(), { locale: l.value });
1650
+ let t = ge(e, j(y), /* @__PURE__ */ new Date(), { locale: l.value });
1648
1651
  M(O(t), 0);
1649
1652
  } catch (e) {
1650
1653
  console.error(e);
1651
1654
  }
1652
1655
  }
1653
- }), z = t({
1656
+ }), L = t({
1654
1657
  get() {
1655
- let e = A(P);
1656
- return e == null ? "" : me(e, A(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 = ue(t[1]), r = ue(t[2]);
1662
- se(n) || se(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));
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(A(Mt), m(o, {
1668
- class: A(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: F((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(A(_).variant) ? void 0 : "ml-4",
1679
+ ["plain", "underlined"].includes(j(_).variant) ? void 0 : "ml-4",
1677
1680
  "df-input-wrapper",
1678
- A(d)
1679
- ]) }, [["date", "datetime"].includes(A(v)) ? (b(), n(x, m({
1681
+ j(d)
1682
+ ]) }, [["date", "datetime"].includes(j(v)) ? (x(), n(b, m({
1680
1683
  key: 0,
1681
- modelValue: R.value,
1682
- "onUpdate:modelValue": i[4] || (i[4] = (e) => R.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: A(_).readonly,
1689
- disabled: A(_).disabled,
1690
- name: `${A(_).name}-date`,
1691
- placeholder: A(_).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] = I((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: F(() => [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: F(() => [c(l, {
1705
- modelValue: P.value,
1706
- "onUpdate:modelValue": i[0] || (i[0] = (e) => P.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: F(({ 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 Gt = {
1715
1718
  "show-adjacent-months": !0,
1716
1719
  "show-week": !0
1717
1720
  }, {
1718
- actions: F(() => [(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 Gt = {
1735
1738
  "placeholder",
1736
1739
  "onFocus",
1737
1740
  "onBlur"
1738
- ])) : r("", !0), ["time", "datetime"].includes(A(v)) ? (b(), n(x, m({
1741
+ ])) : r("", !0), ["time", "datetime"].includes(j(v)) ? (x(), n(b, m({
1739
1742
  key: 1,
1740
- modelValue: z.value,
1741
- "onUpdate:modelValue": i[11] || (i[11] = (e) => z.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: A(_).readonly,
1748
- disabled: A(_).disabled,
1749
- name: `${A(_).name}-time`,
1750
- placeholder: A(v) === "time" ? A(_).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] = I((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: F(() => [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: F(() => [c(l, {
1764
- modelValue: L.value,
1765
- "onUpdate:modelValue": i[7] || (i[7] = (e) => L.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: F(({ 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: F(() => [(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 Gt = {
1796
1799
  });
1797
1800
  //#endregion
1798
1801
  //#region \0@oxc-project+runtime@0.146.0/helpers/esm/asyncToGenerator.js
1799
- function Zt(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 Zt(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 Qt(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
- Zt(a, r, i, o, s, "next", e);
1817
+ Qt(a, r, i, o, s, "next", e);
1815
1818
  }
1816
1819
  function s(e) {
1817
- Zt(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 Qt(e) {
1822
1825
  }
1823
1826
  //#endregion
1824
1827
  //#region src/df-file.vue?vue&type=script&setup=true&lang.ts
1825
- var $t = ["title", "aria-label"], en = /* @__PURE__ */ l({
1828
+ var en = ["title", "aria-label"], tn = /* @__PURE__ */ l({
1826
1829
  __name: "df-file",
1827
1830
  props: /*@__PURE__*/ p({
1828
1831
  comms: {},
@@ -1844,73 +1847,73 @@ var $t = ["title", "aria-label"], en = /* @__PURE__ */ l({
1844
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 = Nt, _ = 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 = Qt(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
1861
  function k() {
1859
- f.value = null, v.value = 0, y.value = Math.round(Math.random() * 1e3), _.value = null, S.value = null, N();
1862
+ f.value = null, v.value = 0, y.value = Math.round(Math.random() * 1e3), _.value = null, b.value = null, ee();
1860
1863
  }
1861
- function j(e) {
1862
- k(), Wt(s.control, e);
1864
+ function A(e) {
1865
+ k(), Gt(s.control, e);
1863
1866
  }
1864
- let { setupTouchInterval: M, clearTouchInterval: N } = Ut(f, () => s.comms, () => s.touchInterval, j);
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 = Qt(function* () {
1871
+ function te() {
1872
+ return te = $t(function* () {
1870
1873
  f.value && (yield s.comms.delete(f.value)), k();
1871
- }), I.apply(this, arguments);
1874
+ }), te.apply(this, arguments);
1872
1875
  }
1873
- function R(e) {
1874
- return z.apply(this, arguments);
1876
+ function F(e) {
1877
+ return L.apply(this, arguments);
1875
1878
  }
1876
- function z() {
1877
- return z = Qt(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
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
- }), z.apply(this, arguments);
1889
+ }), L.apply(this, arguments);
1887
1890
  }
1888
- function B(e) {
1889
- e && (Array.isArray(e) ? console.error("Uploading multiple files not supported right now") : R(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(A(Mt), m(J(J({}, s), {}, { loading: C.value }), {
1894
- class: A(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": F(() => [c(A(U), { name: "mdi-paperclip" })]),
1900
- loader: F(() => [_.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: F((t) => [a("div", { class: g(["d-flex w-100 position-relative df-input-wrapper", A(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: A(p).readonly,
1912
- disabled: A(p).disabled,
1913
- name: A(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 $t = ["title", "aria-label"], en = /* @__PURE__ */ l({
1918
1921
  clearable: !1
1919
1922
  }, e.passthroughAttrs, {
1920
1923
  "prepend-icon": "",
1921
- "onUpdate:modelValue": B,
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: F(() => [a("button", {
1929
+ fn: P(() => [a("button", {
1927
1930
  type: "button",
1928
1931
  class: "df-file-download-btn",
1929
- title: A(h).FileDownload,
1930
- "aria-label": A(h).FileDownload,
1931
- onClick: L(D, ["stop", "prevent"])
1932
- }, [c(A(U), { name: "mdi-download" })], 8, $t)]),
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 $t = ["title", "aria-label"], en = /* @__PURE__ */ l({
1945
1948
  }, 16, ["class"]);
1946
1949
  };
1947
1950
  }
1948
- }), tn = [
1951
+ }), nn = [
1949
1952
  "id",
1950
1953
  "disabled",
1951
1954
  "name",
1952
1955
  "onFocus",
1953
1956
  "onBlur"
1954
- ], nn = ["for"], rn = ["for"], an = ["for", "title"], on = [
1957
+ ], rn = ["for"], an = ["for"], on = ["for", "title"], sn = [
1955
1958
  "href",
1956
1959
  "title",
1957
1960
  "aria-label"
1958
- ], sn = /* @__PURE__ */ l({
1961
+ ], cn = /* @__PURE__ */ l({
1959
1962
  __name: "df-image",
1960
1963
  props: /*@__PURE__*/ p({
1961
1964
  comms: {},
@@ -1977,141 +1980,141 @@ var $t = ["title", "aria-label"], en = /* @__PURE__ */ l({
1977
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 = Nt, _ = M(), S = x(null), C = x(0), T = x(null), E = x(0), O = x(null), k = t(() => S.value && C.value < 100), j = t(() => !!(p.value.disabled || p.value.readonly)), N = 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 R() {
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 z() {
1988
- f.value = null, C.value = 0, S.value = null, R(), ee();
1990
+ function L() {
1991
+ f.value = null, C.value = 0, b.value = null, F(), ne();
1989
1992
  }
1990
- function B(e) {
1991
- z(), Wt(s.control, e);
1993
+ function R(e) {
1994
+ L(), Gt(s.control, e);
1992
1995
  }
1993
- let { setupTouchInterval: V, clearTouchInterval: ee } = Ut(f, () => s.comms, () => s.touchInterval, B);
1994
- y(() => R());
1995
- function te() {
1996
- return H.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 H() {
1999
- return H = Qt(function* () {
2000
- f.value && (yield s.comms.delete(f.value)), z();
2001
- }), H.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 re.apply(this, arguments);
2006
+ function ie(e) {
2007
+ return H.apply(this, arguments);
2005
2008
  }
2006
- function re() {
2007
- return re = Qt(function* (e) {
2008
- C.value = -1, S.value = e, R(), 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, V();
2015
+ }), C.value = 100, z();
2013
2016
  } catch (e) {
2014
- throw C.value = 0, S.value = null, R(), e;
2017
+ throw C.value = 0, b.value = null, F(), e;
2015
2018
  }
2016
- }), re.apply(this, arguments);
2019
+ }), H.apply(this, arguments);
2017
2020
  }
2018
- function W(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 ie(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 && W(r);
2031
+ n.value = "", r && U(r);
2029
2032
  }
2030
- function G() {
2031
- j.value || (E.value += 1);
2033
+ function oe() {
2034
+ A.value || (E.value += 1);
2032
2035
  }
2033
- function ae() {
2036
+ function se() {
2034
2037
  E.value = Math.max(0, E.value - 1);
2035
2038
  }
2036
- function K(e) {
2039
+ function W(e) {
2037
2040
  var t;
2038
- if (E.value = 0, j.value) return;
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 && W(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(A(Mt), m(J(J({}, s), {}, { loading: k.value }), {
2045
- class: ["df-image-field", A(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": te,
2050
+ "onClick:clear": re,
2048
2051
  onBlur: t[2] || (t[2] = (e) => d.value = !0)
2049
2052
  }), {
2050
- "prepend-inner": F(() => [c(A(U), { name: "mdi-image" })]),
2051
- loader: F(() => [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: F((e) => [a("div", {
2057
- class: g(["d-flex w-100 position-relative df-input-wrapper df-image-wrapper", [A(l), {
2058
- "df-image-dragging": N.value,
2059
- "df-image-disabled": j.value
2059
+ default: P((e) => [a("div", {
2060
+ class: g(["d-flex w-100 position-relative df-input-wrapper df-image-wrapper", [j(l), {
2061
+ "df-image-dragging": M.value,
2062
+ "df-image-disabled": A.value
2060
2063
  }]]),
2061
- onDragenter: L(G, ["prevent"]),
2062
- onDragover: t[0] || (t[0] = L(() => {}, ["prevent"])),
2063
- onDragleave: L(ae, ["prevent"]),
2064
- onDrop: L(K, ["prevent"]),
2065
- onClick: t[1] || (t[1] = L(() => {}, ["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: A(_),
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
- disabled: j.value,
2075
- name: A(p).name,
2076
- onChange: ie,
2077
+ disabled: A.value,
2078
+ name: j(p).name,
2079
+ onChange: ae,
2077
2080
  onFocus: (t) => e.focus(),
2078
2081
  onBlur: (t) => e.blur()
2079
- }, null, 40, tn),
2080
- P.value ? (b(), i("label", {
2082
+ }, null, 40, nn),
2083
+ N.value ? (x(), i("label", {
2081
2084
  key: 0,
2082
- for: A(_),
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, nn)) : (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: A(_),
2093
+ for: j(_),
2091
2094
  class: "df-image-placeholder"
2092
- }, [c(A(U), { name: "mdi-tray-arrow-up" }), a("span", null, D(A(h).ImageDropHint), 1)], 8, rn)),
2093
- P.value && !j.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: A(_),
2098
+ for: j(_),
2096
2099
  class: "df-image-replace-btn",
2097
- title: A(h).ImageReplace
2098
- }, [c(A(U), { name: "mdi-pencil" })], 8, an)) : 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: A(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: A(h).ImageDownload,
2107
- "aria-label": A(h).ImageDownload
2108
- }, [c(A(U), { name: "mdi-download" })], 8, on)) : 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
- }), cn = /* @__PURE__ */ l({
2117
+ }), ln = /* @__PURE__ */ l({
2115
2118
  __name: "df-input",
2116
2119
  props: /*@__PURE__*/ p({
2117
2120
  inputType: {},
@@ -2142,52 +2145,52 @@ var $t = ["title", "aria-label"], en = /* @__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 } = k(o), E = t(() => y.value === "number"), D = t(() => E.value ? {
2146
- min: A(S),
2147
- max: A(x),
2148
- precision: A(C),
2149
- step: A(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 A(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", [A(s), A(_)]])
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: A(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
- }, J(J({}, A(v)), D.value)), {
2163
- label: F((e) => [c(A(X), {
2165
+ }, J(J({}, j(v)), D.value)), {
2166
+ label: P((e) => [c(j(X), {
2164
2167
  data: e,
2165
- label: A(u)
2168
+ label: j(u)
2166
2169
  }, null, 8, ["data", "label"])]),
2167
- message: F(({ message: e }) => [c(A(Y), {
2170
+ message: P(({ message: e }) => [c(j(Y), {
2168
2171
  message: e,
2169
- errors: A(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: A(h),
2177
+ modelValue: j(h),
2175
2178
  "onUpdate:modelValue": t[0] || (t[0] = (e) => f(h) ? h.value = e : null),
2176
- type: A(y)
2177
- }, A(v), { onBlur: t[1] || (t[1] = (e) => p.value = !0) }), {
2178
- label: F((e) => [c(A(X), {
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: A(u)
2183
+ label: j(u)
2181
2184
  }, null, 8, ["data", "label"])]),
2182
- message: F(({ message: e }) => [c(A(Y), {
2185
+ message: P(({ message: e }) => [c(j(Y), {
2183
2186
  message: e,
2184
- errors: A(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
- }), ln = Oe.create({
2193
+ }), un = ke.create({
2191
2194
  name: "classAttribute",
2192
2195
  addGlobalAttributes() {
2193
2196
  return [{
@@ -2205,8 +2208,8 @@ var $t = ["title", "aria-label"], en = /* @__PURE__ */ l({
2205
2208
  }];
2206
2209
  }
2207
2210
  });
2208
- function un(e, t) {
2209
- return ke.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 un(e, t) {
2214
2217
  renderHTML({ HTMLAttributes: e }) {
2215
2218
  return [
2216
2219
  "span",
2217
- je(e, { class: t }),
2220
+ Me(e, { class: t }),
2218
2221
  0
2219
2222
  ];
2220
2223
  }
2221
2224
  });
2222
2225
  }
2223
- var dn = un("marker", "marker"), fn = un("spoiler", "spoiler"), pn = [
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 dn = un("marker", "marker"), fn = un("spoiler", "spoiler"), pn = [
2270
2273
  className: "fancy-code fancy-code-bright"
2271
2274
  }
2272
2275
  ];
2273
- function mn(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 hn(e) {
2278
- return mn(e).parent;
2280
+ function gn(e) {
2281
+ return hn(e).parent;
2279
2282
  }
2280
- function gn(e, t) {
2281
- let n = mn(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 _n(e, t) {
2288
+ function vn(e, t) {
2286
2289
  switch (t.kind) {
2287
2290
  case "heading": {
2288
- let n = hn(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 = hn(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 = hn(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 = gn(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 vn(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(mn(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
- _n(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
- _n(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
- _n(e, t) ? n.unsetBlockquote().run() : gn(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
- _n(e, t) ? n.toggleCodeBlock().updateAttributes("paragraph", { class: null }).run() : hn(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 yn(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 bn(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 bn(e) {
2342
2345
  e.type.startsWith("image/") && t.push(e);
2343
2346
  }), t;
2344
2347
  }
2345
- function xn(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 += xn(e.content));
2351
+ e.type.name === "image" ? t += 1 : e.content.size && (t += Sn(e.content));
2349
2352
  }), t;
2350
2353
  }
2351
- function Sn(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(J(J({}, e.attrs), {}, { src: t[n.index] }), e.content, e.marks)), n.index += 1) : e.content.size ? r.push(e.copy(Sn(e.content, t, n))) : r.push(e);
2355
- }), Me.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 Cn(e) {
2360
+ function wn(e) {
2358
2361
  return (t, n, r) => {
2359
- let i = bn(n.clipboardData);
2360
- return i.length !== 0 && (n.preventDefault(), Promise.all(i.map(yn)).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 (xn(r.content) > 0) {
2363
- let e = Sn(r.content, n, { index: 0 }), i = new Ne(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,7 +2376,7 @@ function Cn(e) {
2373
2376
  }
2374
2377
  //#endregion
2375
2378
  //#region src/helpers/rtf-editor/link-with-download.ts
2376
- var wn = Pe.extend({
2379
+ var Tn = Fe.extend({
2377
2380
  name: "link",
2378
2381
  addAttributes() {
2379
2382
  var e;
@@ -2386,7 +2389,7 @@ var wn = Pe.extend({
2386
2389
  });
2387
2390
  //#endregion
2388
2391
  //#region src/helpers/rtf-editor/media-embed.ts
2389
- function Tn(e) {
2392
+ function En(e) {
2390
2393
  let t;
2391
2394
  try {
2392
2395
  t = new URL(e);
@@ -2412,7 +2415,7 @@ function Tn(e) {
2412
2415
  }
2413
2416
  return null;
2414
2417
  }
2415
- var En = Ae.create({
2418
+ var Dn = je.create({
2416
2419
  name: "mediaEmbed",
2417
2420
  group: "block",
2418
2421
  atom: !0,
@@ -2424,7 +2427,7 @@ var En = Ae.create({
2424
2427
  return [{ tag: "iframe.media-embed" }];
2425
2428
  },
2426
2429
  renderHTML({ HTMLAttributes: e }) {
2427
- return ["iframe", je({
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,27 +2437,35 @@ var En = Ae.create({
2434
2437
  });
2435
2438
  //#endregion
2436
2439
  //#region src/helpers/rtf-editor/use-editor-tick.ts
2437
- function Dn(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
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 On = { class: "rtf-toolbar-group" }, kn = { class: "d-flex justify-end ga-2 mt-2" }, An = { class: "d-flex justify-space-between align-center ga-2 mt-2" }, jn = { class: "d-flex justify-end mt-2" }, Mn = /* @__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
2452
  props: {
2450
2453
  editor: { default: void 0 },
2451
2454
  buttonSize: { default: "small" }
2452
2455
  },
2453
2456
  setup(o) {
2454
- let l = o, u = t(() => l.buttonSize), d = Nt, f = t(() => l.editor), p = Dn(f), h = t(() => {
2457
+ let l = o, u = t(() => l.buttonSize), d = Pt, f = t(() => l.editor), p = On(f), h = t(() => {
2455
2458
  var e;
2456
- return !!((e = l.editor) != null && e.isEditable);
2457
- }), _ = t(() => {
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(() => {
2458
2469
  p.value;
2459
2470
  let e = l.editor;
2460
2471
  return {
@@ -2474,57 +2485,57 @@ var On = { class: "rtf-toolbar-group" }, kn = { class: "d-flex justify-end ga-2
2474
2485
  canLift: !!(e != null && e.can().liftListItem("listItem")),
2475
2486
  canSink: !!(e != null && e.can().sinkListItem("listItem"))
2476
2487
  };
2477
- }), v = t(() => {
2478
- if (_.value.alignLeft) return "left";
2479
- if (_.value.alignCenter) return "center";
2480
- if (_.value.alignRight) return "right";
2481
- if (_.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";
2482
2493
  });
2483
- function y(e) {
2494
+ function w(e) {
2484
2495
  var t;
2485
2496
  typeof e == "string" && ((t = f.value) == null || t.chain().focus().setTextAlign(e).run());
2486
2497
  }
2487
- let C = [];
2488
- function T(e, t, n, r, i) {
2489
- let a = new z({
2498
+ let E = [];
2499
+ function D(e, t, n, r, i) {
2500
+ let a = new R({
2490
2501
  value: {
2491
2502
  icon: e,
2492
2503
  renderAs: $.TEXT,
2493
2504
  showIcon: !0,
2494
2505
  showLabel: !1
2495
2506
  },
2496
- actions: [new V((e, n, r) => (t(), n(e, r)))]
2507
+ actions: [new ne((e, n, r) => (t(), n(e, r)))]
2497
2508
  });
2498
- return C.push({
2509
+ return E.push({
2499
2510
  action: a,
2500
2511
  title: n,
2501
2512
  disabled: r,
2502
2513
  active: i
2503
2514
  }), a;
2504
2515
  }
2505
- function E({ action: e, title: t, disabled: n, active: r }) {
2516
+ function k({ action: e, title: t, disabled: n, active: r }) {
2506
2517
  var i;
2507
2518
  let a = {
2508
2519
  title: t(),
2509
2520
  icon: !0
2510
2521
  };
2511
- r && (a.active = r()), oe((i = e.value.passthroughAttrs) == null ? {} : i, a) || (e.value = J(J({}, e.value), {}, { passthroughAttrs: a }));
2522
+ r && (a.active = r()), ce((i = e.value.passthroughAttrs) == null ? {} : i, a) || (e.value = J(J({}, e.value), {}, { passthroughAttrs: a }));
2512
2523
  let o = !n();
2513
2524
  e.enabled !== o && (e.enabled = o);
2514
2525
  }
2515
- let O = [T("mdi-undo", () => {
2526
+ let A = [D("mdi-undo", () => {
2516
2527
  var e;
2517
2528
  return (e = f.value) == null ? void 0 : e.chain().focus().undo().run();
2518
- }, () => d.Undo, () => !h.value || !_.value.canUndo), T("mdi-redo", () => {
2529
+ }, () => d.Undo, () => !h.value || !y.value.canUndo), D("mdi-redo", () => {
2519
2530
  var e;
2520
2531
  return (e = f.value) == null ? void 0 : e.chain().focus().redo().run();
2521
- }, () => d.Redo, () => !h.value || !_.value.canRedo)], k = [T("mdi-format-bold", () => {
2532
+ }, () => d.Redo, () => !h.value || !y.value.canRedo)], M = [D("mdi-format-bold", () => {
2522
2533
  var e;
2523
2534
  return (e = f.value) == null ? void 0 : e.chain().focus().toggleBold().run();
2524
- }, () => d.Bold, () => !h.value, () => _.value.bold), T("mdi-format-italic", () => {
2535
+ }, () => d.Bold, () => !h.value, () => y.value.bold), D("mdi-format-italic", () => {
2525
2536
  var e;
2526
2537
  return (e = f.value) == null ? void 0 : e.chain().focus().toggleItalic().run();
2527
- }, () => d.Italic, () => !h.value, () => _.value.italic)], j = [
2538
+ }, () => d.Italic, () => !h.value, () => y.value.italic)], ee = [
2528
2539
  {
2529
2540
  value: "left",
2530
2541
  icon: "mdi-format-align-left",
@@ -2545,28 +2556,28 @@ var On = { class: "rtf-toolbar-group" }, kn = { class: "d-flex justify-end ga-2
2545
2556
  icon: "mdi-format-align-justify",
2546
2557
  title: () => d.AlignJustify
2547
2558
  }
2548
- ].map((e) => T(e.icon, () => y(e.value), e.title, () => !h.value, () => v.value === e.value)), M = [
2549
- T("mdi-format-list-bulleted", () => {
2559
+ ].map((e) => D(e.icon, () => w(e.value), e.title, () => !h.value, () => b.value === e.value)), N = [
2560
+ D("mdi-format-list-bulleted", () => {
2550
2561
  var e;
2551
2562
  return (e = f.value) == null ? void 0 : e.chain().focus().toggleBulletList().run();
2552
- }, () => d.BulletedList, () => !h.value, () => _.value.bulletList),
2553
- T("mdi-format-list-numbered", () => {
2563
+ }, () => d.BulletedList, () => !h.value, () => y.value.bulletList),
2564
+ D("mdi-format-list-numbered", () => {
2554
2565
  var e;
2555
2566
  return (e = f.value) == null ? void 0 : e.chain().focus().toggleOrderedList().run();
2556
- }, () => d.NumberedList, () => !h.value, () => _.value.orderedList),
2557
- T("mdi-format-indent-decrease", () => {
2567
+ }, () => d.NumberedList, () => !h.value, () => y.value.orderedList),
2568
+ D("mdi-format-indent-decrease", () => {
2558
2569
  var e;
2559
2570
  return (e = f.value) == null ? void 0 : e.chain().focus().liftListItem("listItem").run();
2560
- }, () => d.Outdent, () => !h.value || !_.value.canLift),
2561
- T("mdi-format-indent-increase", () => {
2571
+ }, () => d.Outdent, () => !h.value || !y.value.canLift),
2572
+ D("mdi-format-indent-increase", () => {
2562
2573
  var e;
2563
2574
  return (e = f.value) == null ? void 0 : e.chain().focus().sinkListItem("listItem").run();
2564
- }, () => d.Indent, () => !h.value || !_.value.canSink)
2575
+ }, () => d.Indent, () => !h.value || !y.value.canSink)
2565
2576
  ];
2566
- P(() => {
2567
- C.forEach(E);
2577
+ te(() => {
2578
+ E.forEach(k);
2568
2579
  });
2569
- let N = t(() => [
2580
+ let I = t(() => [
2570
2581
  {
2571
2582
  level: 0,
2572
2583
  label: d.Paragraph
@@ -2600,59 +2611,59 @@ var On = { class: "rtf-toolbar-group" }, kn = { class: "d-flex justify-end ga-2
2600
2611
  var t, n;
2601
2612
  return p.value, e === 0 ? !!((t = f.value) != null && t.isActive("paragraph")) : !!((n = f.value) != null && n.isActive("heading", { level: e }));
2602
2613
  }
2603
- let R = t(() => {
2614
+ let z = t(() => {
2604
2615
  var e, t;
2605
- return (e = (t = N.value.find((e) => L(e.level))) == null ? void 0 : t.label) == null ? d.Paragraph : e;
2616
+ return (e = (t = I.value.find((e) => L(e.level))) == null ? void 0 : t.label) == null ? d.Paragraph : e;
2606
2617
  });
2607
- function B(e) {
2618
+ function re(e) {
2608
2619
  var t;
2609
2620
  let n = (t = f.value) == null ? void 0 : t.chain().focus();
2610
2621
  n && (e === 0 ? n.setParagraph().run() : n.toggleHeading({ level: e }).run());
2611
2622
  }
2612
- let ee = pn;
2613
- function te(e) {
2614
- return p.value, !!f.value && _n(f.value, e);
2623
+ let B = mn;
2624
+ function ie(e) {
2625
+ return p.value, !!f.value && vn(f.value, e);
2615
2626
  }
2616
- let H = x(""), ne = x(!1);
2617
- function re() {
2627
+ let H = S(""), U = S(!1);
2628
+ function ae() {
2618
2629
  var e, t, n;
2619
2630
  let r = (e = (t = f.value) == null ? void 0 : t.getAttributes("link")) == null ? {} : e;
2620
- H.value = (n = r.href) == null ? "" : n, ne.value = !!r.download;
2631
+ H.value = (n = r.href) == null ? "" : n, U.value = !!r.download;
2621
2632
  }
2622
- function W() {
2633
+ function oe() {
2623
2634
  var e;
2624
- H.value && ((e = f.value) == null || e.chain().focus().extendMarkRange("link").setLink({ href: H.value }).updateAttributes("link", { download: ne.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());
2625
2636
  }
2626
- function ie() {
2637
+ function se() {
2627
2638
  var e;
2628
2639
  (e = f.value) == null || e.chain().focus().unsetLink().run();
2629
2640
  }
2630
- let G = x(""), ae = x();
2631
- function K() {
2641
+ let W = S(""), G = S();
2642
+ function le() {
2632
2643
  var e;
2633
- G.value && ((e = f.value) == null || e.chain().focus().setImage({ src: G.value }).run(), G.value = "");
2644
+ W.value && ((e = f.value) == null || e.chain().focus().setImage({ src: W.value }).run(), W.value = "");
2634
2645
  }
2635
- function se() {
2646
+ function ue() {
2636
2647
  var e;
2637
- (e = ae.value) == null || e.click();
2648
+ (e = G.value) == null || e.click();
2638
2649
  }
2639
- function ce(e) {
2640
- return le.apply(this, arguments);
2650
+ function de(e) {
2651
+ return K.apply(this, arguments);
2641
2652
  }
2642
- function le() {
2643
- return le = Qt(function* (e) {
2653
+ function K() {
2654
+ return K = $t(function* (e) {
2644
2655
  var t, n;
2645
2656
  let r = (t = e.target.files) == null ? void 0 : t[0];
2646
2657
  if (!r) return;
2647
- let i = yield yn(r);
2658
+ let i = yield bn(r);
2648
2659
  (n = f.value) == null || n.chain().focus().setImage({ src: i }).run(), e.target.value = "";
2649
- }), le.apply(this, arguments);
2660
+ }), K.apply(this, arguments);
2650
2661
  }
2651
- let q = x("");
2652
- function ue() {
2662
+ let q = S("");
2663
+ function fe() {
2653
2664
  var e;
2654
2665
  if (!q.value) return;
2655
- let t = Tn(q.value), n = (e = f.value) == null ? void 0 : e.chain().focus();
2666
+ let t = En(q.value), n = (e = f.value) == null ? void 0 : e.chain().focus();
2656
2667
  n && (t ? n.insertContent({
2657
2668
  type: "mediaEmbed",
2658
2669
  attrs: { src: t }
@@ -2666,59 +2677,44 @@ var On = { class: "rtf-toolbar-group" }, kn = { class: "d-flex justify-end ga-2
2666
2677
  }).run(), q.value = "");
2667
2678
  }
2668
2679
  return (t, o) => {
2669
- let l = w("v-divider"), p = w("v-btn"), v = w("v-list-item-title"), y = w("v-list-item"), x = w("v-list"), C = w("v-menu"), T = w("v-text-field"), E = w("v-checkbox"), P = w("v-card");
2670
- return b(), i("div", { class: g(["rtf-toolbar", { "rtf-toolbar--disabled": !h.value }]) }, [
2671
- c(qt, {
2672
- actions: O,
2673
- "button-size": u.value,
2674
- "show-as-group": "grouped-no-borders"
2675
- }, null, 8, ["button-size"]),
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),
2676
2683
  c(l, {
2677
2684
  vertical: "",
2678
2685
  inset: "",
2679
2686
  class: "mx-1"
2680
2687
  }),
2681
- c(p, {
2688
+ c(u, m(_.value, {
2682
2689
  icon: "",
2683
- size: u.value,
2684
- variant: "text",
2685
2690
  rounded: "sm",
2686
- title: A(d).SelectAll,
2687
- disabled: !h.value,
2691
+ title: j(d).SelectAll,
2688
2692
  onClick: o[0] || (o[0] = (e) => {
2689
2693
  var t;
2690
2694
  return (t = f.value) == null ? void 0 : t.chain().focus().selectAll().run();
2691
2695
  })
2692
- }, {
2693
- default: F(() => [c(A(U), { name: "mdi-select-all" })]),
2696
+ }), {
2697
+ default: P(() => [c(j(V), { name: "mdi-select-all" })]),
2694
2698
  _: 1
2695
- }, 8, [
2696
- "size",
2697
- "title",
2698
- "disabled"
2699
- ]),
2699
+ }, 16, ["title"]),
2700
2700
  c(l, {
2701
2701
  vertical: "",
2702
2702
  inset: "",
2703
2703
  class: "mx-1"
2704
2704
  }),
2705
- c(C, null, {
2706
- activator: F(({ props: e }) => [c(p, m({
2707
- size: u.value,
2708
- variant: "text",
2709
- disabled: !h.value
2710
- }, e, { "append-icon": "mdi-chevron-down" }), {
2711
- default: F(() => [s(D(R.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)]),
2712
2708
  _: 1
2713
- }, 16, ["size", "disabled"])]),
2714
- default: F(() => [c(x, { density: "compact" }, {
2715
- default: F(() => [(b(!0), i(e, null, S(N.value, (e) => (b(), n(y, {
2709
+ }, 16)]),
2710
+ default: P(() => [c(S, { density: "compact" }, {
2711
+ default: P(() => [(x(!0), i(e, null, C(I.value, (e) => (x(), n(b, {
2716
2712
  key: e.level,
2717
2713
  active: L(e.level),
2718
- onClick: (t) => B(e.level)
2714
+ onClick: (t) => re(e.level)
2719
2715
  }, {
2720
- default: F(() => [c(v, null, {
2721
- default: F(() => [s(D(e.label), 1)]),
2716
+ default: P(() => [c(p, null, {
2717
+ default: P(() => [s(O(e.label), 1)]),
2722
2718
  _: 2
2723
2719
  }, 1024)]),
2724
2720
  _: 2
@@ -2727,23 +2723,19 @@ var On = { class: "rtf-toolbar-group" }, kn = { class: "d-flex justify-end ga-2
2727
2723
  })]),
2728
2724
  _: 1
2729
2725
  }),
2730
- c(C, null, {
2731
- activator: F(({ props: e }) => [c(p, m({
2732
- size: u.value,
2733
- variant: "text",
2734
- disabled: !h.value
2735
- }, e, { "append-icon": "mdi-chevron-down" }), {
2736
- default: F(() => [s(D(A(d).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)]),
2737
2729
  _: 1
2738
- }, 16, ["size", "disabled"])]),
2739
- default: F(() => [c(x, { density: "compact" }, {
2740
- default: F(() => [(b(!0), i(e, null, S(A(ee), (e) => (b(), n(y, {
2730
+ }, 16)]),
2731
+ default: P(() => [c(S, { density: "compact" }, {
2732
+ default: P(() => [(x(!0), i(e, null, C(j(B), (e) => (x(), n(b, {
2741
2733
  key: e.key,
2742
- active: te(e),
2743
- onClick: (t) => f.value && A(vn)(f.value, e)
2734
+ active: ie(e),
2735
+ onClick: (t) => f.value && j(yn)(f.value, e)
2744
2736
  }, {
2745
- default: F(() => [c(v, null, {
2746
- default: F(() => [s(D(A(d)[e.key]), 1)]),
2737
+ default: P(() => [c(p, null, {
2738
+ default: P(() => [s(O(j(d)[e.key]), 1)]),
2747
2739
  _: 2
2748
2740
  }, 1024)]),
2749
2741
  _: 2
@@ -2757,92 +2749,73 @@ var On = { class: "rtf-toolbar-group" }, kn = { class: "d-flex justify-end ga-2
2757
2749
  inset: "",
2758
2750
  class: "mx-1"
2759
2751
  }),
2760
- c(qt, {
2761
- actions: k,
2762
- "button-size": u.value,
2763
- "show-as-group": "grouped-no-borders"
2764
- }, null, 8, ["button-size"]),
2752
+ c(Jt, m({ actions: M }, v.value, { "show-as-group": "grouped-no-borders" }), null, 16),
2765
2753
  c(l, {
2766
2754
  vertical: "",
2767
2755
  inset: "",
2768
2756
  class: "mx-1"
2769
2757
  }),
2770
- a("div", On, [
2771
- c(p, {
2758
+ a("div", kn, [
2759
+ c(u, m(_.value, {
2772
2760
  icon: "",
2773
- size: u.value,
2774
- variant: "text",
2775
- title: A(d).HorizontalLine,
2776
- disabled: !h.value,
2761
+ title: j(d).HorizontalLine,
2777
2762
  onClick: o[1] || (o[1] = (e) => {
2778
2763
  var t;
2779
2764
  return (t = f.value) == null ? void 0 : t.chain().focus().setHorizontalRule().run();
2780
2765
  })
2781
- }, {
2782
- default: F(() => [c(A(U), { name: "mdi-minus" })]),
2766
+ }), {
2767
+ default: P(() => [c(j(V), { name: "mdi-minus" })]),
2783
2768
  _: 1
2784
- }, 8, [
2785
- "size",
2786
- "title",
2787
- "disabled"
2788
- ]),
2789
- c(C, {
2769
+ }, 16, ["title"]),
2770
+ c(w, {
2790
2771
  "close-on-content-click": !1,
2791
- "onUpdate:modelValue": o[4] || (o[4] = (e) => e && re())
2772
+ "onUpdate:modelValue": o[4] || (o[4] = (e) => e && ae())
2792
2773
  }, {
2793
- activator: F(({ props: e }) => [c(p, m({
2774
+ activator: P(({ props: e }) => [c(u, m(J(J({}, _.value), e), {
2794
2775
  icon: "",
2795
- size: u.value,
2796
- variant: "text",
2797
- title: A(d).Link,
2798
- disabled: !h.value,
2799
- active: _.value.link
2800
- }, e), {
2801
- default: F(() => [c(A(U), { name: "mdi-link-variant" })]),
2776
+ title: j(d).Link,
2777
+ active: y.value.link
2778
+ }), {
2779
+ default: P(() => [c(j(V), { name: "mdi-link-variant" })]),
2802
2780
  _: 1
2803
- }, 16, [
2804
- "size",
2805
- "title",
2806
- "disabled",
2807
- "active"
2808
- ])]),
2809
- default: F(() => [c(P, {
2781
+ }, 16, ["title", "active"])]),
2782
+ default: P(() => [c(k, {
2810
2783
  "min-width": "280",
2811
2784
  class: "pa-3"
2812
2785
  }, {
2813
- default: F(() => [
2814
- c(T, {
2786
+ default: P(() => [
2787
+ c(E, {
2815
2788
  modelValue: H.value,
2816
2789
  "onUpdate:modelValue": o[2] || (o[2] = (e) => H.value = e),
2817
- label: A(d).LinkUrl,
2790
+ label: j(d).LinkUrl,
2818
2791
  density: "compact",
2819
2792
  "hide-details": "",
2820
2793
  autofocus: "",
2821
- onKeydown: I(W, ["enter"])
2794
+ onKeydown: F(oe, ["enter"])
2822
2795
  }, null, 8, ["modelValue", "label"]),
2823
- c(E, {
2824
- modelValue: ne.value,
2825
- "onUpdate:modelValue": o[3] || (o[3] = (e) => ne.value = e),
2826
- label: A(d).Downloadable,
2796
+ c(D, {
2797
+ modelValue: U.value,
2798
+ "onUpdate:modelValue": o[3] || (o[3] = (e) => U.value = e),
2799
+ label: j(d).Downloadable,
2827
2800
  density: "compact",
2828
2801
  "hide-details": "",
2829
2802
  class: "mt-1"
2830
2803
  }, null, 8, ["modelValue", "label"]),
2831
- a("div", kn, [_.value.link ? (b(), n(p, {
2804
+ a("div", An, [y.value.link ? (x(), n(u, {
2832
2805
  key: 0,
2833
2806
  size: "small",
2834
2807
  variant: "text",
2835
- onClick: ie
2808
+ onClick: se
2836
2809
  }, {
2837
- default: F(() => [s(D(A(d).LinkRemove), 1)]),
2810
+ default: P(() => [s(O(j(d).LinkRemove), 1)]),
2838
2811
  _: 1
2839
- })) : r("", !0), c(p, {
2812
+ })) : r("", !0), c(u, {
2840
2813
  size: "small",
2841
2814
  color: "primary",
2842
2815
  variant: "tonal",
2843
- onClick: W
2816
+ onClick: oe
2844
2817
  }, {
2845
- default: F(() => [s(D(A(d).LinkApply), 1)]),
2818
+ default: P(() => [s(O(j(d).LinkApply), 1)]),
2846
2819
  _: 1
2847
2820
  })])
2848
2821
  ]),
@@ -2850,48 +2823,41 @@ var On = { class: "rtf-toolbar-group" }, kn = { class: "d-flex justify-end ga-2
2850
2823
  })]),
2851
2824
  _: 1
2852
2825
  }),
2853
- c(C, { "close-on-content-click": !1 }, {
2854
- activator: F(({ props: e }) => [c(p, m({
2826
+ c(w, { "close-on-content-click": !1 }, {
2827
+ activator: P(({ props: e }) => [c(u, m(J(J({}, _.value), e), {
2855
2828
  icon: "",
2856
- size: u.value,
2857
- variant: "text",
2858
- title: A(d).Image,
2859
- disabled: !h.value
2860
- }, e), {
2861
- default: F(() => [c(A(U), { name: "mdi-image-plus" })]),
2829
+ title: j(d).Image
2830
+ }), {
2831
+ default: P(() => [c(j(V), { name: "mdi-image-plus" })]),
2862
2832
  _: 1
2863
- }, 16, [
2864
- "size",
2865
- "title",
2866
- "disabled"
2867
- ])]),
2868
- default: F(() => [c(P, {
2833
+ }, 16, ["title"])]),
2834
+ default: P(() => [c(k, {
2869
2835
  "min-width": "280",
2870
2836
  class: "pa-3"
2871
2837
  }, {
2872
- default: F(() => [c(T, {
2873
- modelValue: G.value,
2874
- "onUpdate:modelValue": o[5] || (o[5] = (e) => G.value = e),
2875
- label: A(d).ImageUrl,
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,
2876
2842
  density: "compact",
2877
2843
  "hide-details": "",
2878
2844
  autofocus: "",
2879
- onKeydown: I(K, ["enter"])
2880
- }, null, 8, ["modelValue", "label"]), a("div", An, [c(p, {
2845
+ onKeydown: F(le, ["enter"])
2846
+ }, null, 8, ["modelValue", "label"]), a("div", jn, [c(u, {
2881
2847
  size: "small",
2882
2848
  variant: "text",
2883
2849
  "prepend-icon": "mdi-upload",
2884
- onClick: se
2850
+ onClick: ue
2885
2851
  }, {
2886
- default: F(() => [s(D(A(d).ImageUpload), 1)]),
2852
+ default: P(() => [s(O(j(d).ImageUpload), 1)]),
2887
2853
  _: 1
2888
- }), c(p, {
2854
+ }), c(u, {
2889
2855
  size: "small",
2890
2856
  color: "primary",
2891
2857
  variant: "tonal",
2892
- onClick: K
2858
+ onClick: le
2893
2859
  }, {
2894
- default: F(() => [s(D(A(d).ImageInsert), 1)]),
2860
+ default: P(() => [s(O(j(d).ImageInsert), 1)]),
2895
2861
  _: 1
2896
2862
  })])]),
2897
2863
  _: 1
@@ -2900,70 +2866,56 @@ var On = { class: "rtf-toolbar-group" }, kn = { class: "d-flex justify-end ga-2
2900
2866
  }),
2901
2867
  a("input", {
2902
2868
  ref_key: "imageInput",
2903
- ref: ae,
2869
+ ref: G,
2904
2870
  type: "file",
2905
2871
  accept: "image/*",
2906
2872
  class: "d-none",
2907
- onChange: ce
2873
+ onChange: de
2908
2874
  }, null, 544),
2909
- c(C, { "close-on-content-click": !1 }, {
2910
- activator: F(({ props: e }) => [c(p, m({
2875
+ c(w, { "close-on-content-click": !1 }, {
2876
+ activator: P(({ props: e }) => [c(u, m(J(J({}, _.value), e), {
2911
2877
  icon: "",
2912
- size: u.value,
2913
- variant: "text",
2914
- title: A(d).MediaEmbed,
2915
- disabled: !h.value
2916
- }, e), {
2917
- default: F(() => [c(A(U), { name: "mdi-video-plus" })]),
2878
+ title: j(d).MediaEmbed
2879
+ }), {
2880
+ default: P(() => [c(j(V), { name: "mdi-video-plus" })]),
2918
2881
  _: 1
2919
- }, 16, [
2920
- "size",
2921
- "title",
2922
- "disabled"
2923
- ])]),
2924
- default: F(() => [c(P, {
2882
+ }, 16, ["title"])]),
2883
+ default: P(() => [c(k, {
2925
2884
  "min-width": "280",
2926
2885
  class: "pa-3"
2927
2886
  }, {
2928
- default: F(() => [c(T, {
2887
+ default: P(() => [c(E, {
2929
2888
  modelValue: q.value,
2930
2889
  "onUpdate:modelValue": o[6] || (o[6] = (e) => q.value = e),
2931
- label: A(d).MediaEmbedUrl,
2890
+ label: j(d).MediaEmbedUrl,
2932
2891
  density: "compact",
2933
2892
  "hide-details": "",
2934
2893
  autofocus: "",
2935
- onKeydown: I(ue, ["enter"])
2936
- }, null, 8, ["modelValue", "label"]), a("div", jn, [c(p, {
2894
+ onKeydown: F(fe, ["enter"])
2895
+ }, null, 8, ["modelValue", "label"]), a("div", Mn, [c(u, {
2937
2896
  size: "small",
2938
2897
  color: "primary",
2939
2898
  variant: "tonal",
2940
- onClick: ue
2899
+ onClick: fe
2941
2900
  }, {
2942
- default: F(() => [s(D(A(d).MediaEmbedInsert), 1)]),
2901
+ default: P(() => [s(O(j(d).MediaEmbedInsert), 1)]),
2943
2902
  _: 1
2944
2903
  })])]),
2945
2904
  _: 1
2946
2905
  })]),
2947
2906
  _: 1
2948
2907
  }),
2949
- c(C, null, {
2950
- activator: F(({ props: e }) => [c(p, m({
2908
+ c(w, null, {
2909
+ activator: P(({ props: e }) => [c(u, m(J(J({}, _.value), e), {
2951
2910
  icon: "",
2952
- size: u.value,
2953
- variant: "text",
2954
- title: A(d).Table,
2955
- disabled: !h.value
2956
- }, e), {
2957
- default: F(() => [c(A(U), { name: "mdi-table" })]),
2911
+ title: j(d).Table
2912
+ }), {
2913
+ default: P(() => [c(j(V), { name: "mdi-table" })]),
2958
2914
  _: 1
2959
- }, 16, [
2960
- "size",
2961
- "title",
2962
- "disabled"
2963
- ])]),
2964
- default: F(() => [c(x, { density: "compact" }, {
2965
- default: F(() => [
2966
- c(y, { onClick: o[7] || (o[7] = (e) => {
2915
+ }, 16, ["title"])]),
2916
+ default: P(() => [c(S, { density: "compact" }, {
2917
+ default: P(() => [
2918
+ c(b, { onClick: o[7] || (o[7] = (e) => {
2967
2919
  var t;
2968
2920
  return (t = f.value) == null ? void 0 : t.chain().focus().insertTable({
2969
2921
  rows: 3,
@@ -2971,124 +2923,124 @@ var On = { class: "rtf-toolbar-group" }, kn = { class: "d-flex justify-end ga-2
2971
2923
  withHeaderRow: !0
2972
2924
  }).run();
2973
2925
  }) }, {
2974
- prepend: F(() => [c(A(U), { name: "mdi-table-plus" })]),
2975
- default: F(() => [c(v, null, {
2976
- default: F(() => [s(D(A(d).TableInsert), 1)]),
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)]),
2977
2929
  _: 1
2978
2930
  })]),
2979
2931
  _: 1
2980
2932
  }),
2981
2933
  c(l),
2982
- c(y, {
2983
- disabled: !_.value.inTable,
2934
+ c(b, {
2935
+ disabled: !y.value.inTable,
2984
2936
  onClick: o[8] || (o[8] = (e) => {
2985
2937
  var t;
2986
2938
  return (t = f.value) == null ? void 0 : t.chain().focus().addRowBefore().run();
2987
2939
  })
2988
2940
  }, {
2989
- prepend: F(() => [c(A(U), { name: "mdi-table-row-plus-before" })]),
2990
- default: F(() => [c(v, null, {
2991
- default: F(() => [s(D(A(d).TableAddRowAbove), 1)]),
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)]),
2992
2944
  _: 1
2993
2945
  })]),
2994
2946
  _: 1
2995
2947
  }, 8, ["disabled"]),
2996
- c(y, {
2997
- disabled: !_.value.inTable,
2948
+ c(b, {
2949
+ disabled: !y.value.inTable,
2998
2950
  onClick: o[9] || (o[9] = (e) => {
2999
2951
  var t;
3000
2952
  return (t = f.value) == null ? void 0 : t.chain().focus().addRowAfter().run();
3001
2953
  })
3002
2954
  }, {
3003
- prepend: F(() => [c(A(U), { name: "mdi-table-row-plus-after" })]),
3004
- default: F(() => [c(v, null, {
3005
- default: F(() => [s(D(A(d).TableAddRowBelow), 1)]),
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)]),
3006
2958
  _: 1
3007
2959
  })]),
3008
2960
  _: 1
3009
2961
  }, 8, ["disabled"]),
3010
- c(y, {
3011
- disabled: !_.value.inTable,
2962
+ c(b, {
2963
+ disabled: !y.value.inTable,
3012
2964
  onClick: o[10] || (o[10] = (e) => {
3013
2965
  var t;
3014
2966
  return (t = f.value) == null ? void 0 : t.chain().focus().deleteRow().run();
3015
2967
  })
3016
2968
  }, {
3017
- prepend: F(() => [c(A(U), { name: "mdi-table-row-remove" })]),
3018
- default: F(() => [c(v, null, {
3019
- default: F(() => [s(D(A(d).TableDeleteRow), 1)]),
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)]),
3020
2972
  _: 1
3021
2973
  })]),
3022
2974
  _: 1
3023
2975
  }, 8, ["disabled"]),
3024
2976
  c(l),
3025
- c(y, {
3026
- disabled: !_.value.inTable,
2977
+ c(b, {
2978
+ disabled: !y.value.inTable,
3027
2979
  onClick: o[11] || (o[11] = (e) => {
3028
2980
  var t;
3029
2981
  return (t = f.value) == null ? void 0 : t.chain().focus().addColumnBefore().run();
3030
2982
  })
3031
2983
  }, {
3032
- prepend: F(() => [c(A(U), { name: "mdi-table-column-plus-before" })]),
3033
- default: F(() => [c(v, null, {
3034
- default: F(() => [s(D(A(d).TableAddColumnBefore), 1)]),
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)]),
3035
2987
  _: 1
3036
2988
  })]),
3037
2989
  _: 1
3038
2990
  }, 8, ["disabled"]),
3039
- c(y, {
3040
- disabled: !_.value.inTable,
2991
+ c(b, {
2992
+ disabled: !y.value.inTable,
3041
2993
  onClick: o[12] || (o[12] = (e) => {
3042
2994
  var t;
3043
2995
  return (t = f.value) == null ? void 0 : t.chain().focus().addColumnAfter().run();
3044
2996
  })
3045
2997
  }, {
3046
- prepend: F(() => [c(A(U), { name: "mdi-table-column-plus-after" })]),
3047
- default: F(() => [c(v, null, {
3048
- default: F(() => [s(D(A(d).TableAddColumnAfter), 1)]),
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)]),
3049
3001
  _: 1
3050
3002
  })]),
3051
3003
  _: 1
3052
3004
  }, 8, ["disabled"]),
3053
- c(y, {
3054
- disabled: !_.value.inTable,
3005
+ c(b, {
3006
+ disabled: !y.value.inTable,
3055
3007
  onClick: o[13] || (o[13] = (e) => {
3056
3008
  var t;
3057
3009
  return (t = f.value) == null ? void 0 : t.chain().focus().deleteColumn().run();
3058
3010
  })
3059
3011
  }, {
3060
- prepend: F(() => [c(A(U), { name: "mdi-table-column-remove" })]),
3061
- default: F(() => [c(v, null, {
3062
- default: F(() => [s(D(A(d).TableDeleteColumn), 1)]),
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)]),
3063
3015
  _: 1
3064
3016
  })]),
3065
3017
  _: 1
3066
3018
  }, 8, ["disabled"]),
3067
3019
  c(l),
3068
- c(y, {
3069
- disabled: !_.value.inTable,
3020
+ c(b, {
3021
+ disabled: !y.value.inTable,
3070
3022
  onClick: o[14] || (o[14] = (e) => {
3071
3023
  var t;
3072
3024
  return (t = f.value) == null ? void 0 : t.chain().focus().toggleHeaderRow().run();
3073
3025
  })
3074
3026
  }, {
3075
- prepend: F(() => [c(A(U), { name: "mdi-table-row" })]),
3076
- default: F(() => [c(v, null, {
3077
- default: F(() => [s(D(A(d).TableToggleHeaderRow), 1)]),
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)]),
3078
3030
  _: 1
3079
3031
  })]),
3080
3032
  _: 1
3081
3033
  }, 8, ["disabled"]),
3082
- c(y, {
3083
- disabled: !_.value.inTable,
3034
+ c(b, {
3035
+ disabled: !y.value.inTable,
3084
3036
  onClick: o[15] || (o[15] = (e) => {
3085
3037
  var t;
3086
3038
  return (t = f.value) == null ? void 0 : t.chain().focus().deleteTable().run();
3087
3039
  })
3088
3040
  }, {
3089
- prepend: F(() => [c(A(U), { name: "mdi-table-remove" })]),
3090
- default: F(() => [c(v, null, {
3091
- default: F(() => [s(D(A(d).TableDeleteTable), 1)]),
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)]),
3092
3044
  _: 1
3093
3045
  })]),
3094
3046
  _: 1
@@ -3098,52 +3050,36 @@ var On = { class: "rtf-toolbar-group" }, kn = { class: "d-flex justify-end ga-2
3098
3050
  })]),
3099
3051
  _: 1
3100
3052
  }),
3101
- c(p, {
3053
+ c(u, m(_.value, {
3102
3054
  icon: "",
3103
- size: u.value,
3104
- variant: "text",
3105
- title: A(d).Blockquote,
3106
- disabled: !h.value,
3107
- active: _.value.blockquote,
3055
+ title: j(d).Blockquote,
3056
+ active: y.value.blockquote,
3108
3057
  onClick: o[16] || (o[16] = (e) => {
3109
3058
  var t;
3110
3059
  return (t = f.value) == null ? void 0 : t.chain().focus().toggleBlockquote().run();
3111
3060
  })
3112
- }, {
3113
- default: F(() => [c(A(U), { name: "mdi-format-quote-close" })]),
3061
+ }), {
3062
+ default: P(() => [c(j(V), { name: "mdi-format-quote-close" })]),
3114
3063
  _: 1
3115
- }, 8, [
3116
- "size",
3117
- "title",
3118
- "disabled",
3119
- "active"
3120
- ])
3064
+ }, 16, ["title", "active"])
3121
3065
  ]),
3122
3066
  c(l, {
3123
3067
  vertical: "",
3124
3068
  inset: "",
3125
3069
  class: "mx-1"
3126
3070
  }),
3127
- c(qt, {
3128
- actions: A(j),
3129
- "button-size": u.value,
3130
- "show-as-group": "grouped-no-borders"
3131
- }, null, 8, ["actions", "button-size"]),
3071
+ c(Jt, m({ actions: j(ee) }, v.value, { "show-as-group": "grouped-no-borders" }), null, 16, ["actions"]),
3132
3072
  c(l, {
3133
3073
  vertical: "",
3134
3074
  inset: "",
3135
3075
  class: "mx-1"
3136
3076
  }),
3137
- c(qt, {
3138
- actions: M,
3139
- "button-size": u.value,
3140
- "show-as-group": "grouped-no-borders"
3141
- }, null, 8, ["button-size"])
3077
+ c(Jt, m({ actions: N }, v.value, { "show-as-group": "grouped-no-borders" }), null, 16)
3142
3078
  ], 2);
3143
3079
  };
3144
3080
  }
3145
- }), Nn = /^[a-z][a-z0-9]*:[a-z]/i, Pn = /mso-[a-z-]+\s*:[^;]+;?/gi, Fn = /^Mso/i, In = /background(?:-color)?\s*:[^;]+;?/gi;
3146
- function Ln(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) {
3147
3083
  let t = document.createTreeWalker(e, NodeFilter.SHOW_COMMENT), n = [];
3148
3084
  for (let e = t.nextNode(); e; e = t.nextNode()) n.push(e);
3149
3085
  n.forEach((e) => {
@@ -3151,42 +3087,42 @@ function Ln(e) {
3151
3087
  return (t = e.parentNode) == null ? void 0 : t.removeChild(e);
3152
3088
  });
3153
3089
  }
3154
- function Rn(e) {
3090
+ function zn(e) {
3155
3091
  let t = e.parentNode;
3156
3092
  if (t) {
3157
3093
  for (; e.firstChild;) t.insertBefore(e.firstChild, e);
3158
3094
  t.removeChild(e);
3159
3095
  }
3160
3096
  }
3161
- function zn(e) {
3097
+ function Bn(e) {
3162
3098
  let t = e.getAttribute("style");
3163
3099
  if (t != null) {
3164
- let n = t.replace(Pn, "").replace(In, "").trim();
3100
+ let n = t.replace(Fn, "").replace(Ln, "").trim();
3165
3101
  n ? e.setAttribute("style", n) : e.removeAttribute("style");
3166
3102
  }
3167
3103
  let n = e.getAttribute("class");
3168
3104
  if (n != null) {
3169
- let t = n.split(/\s+/).filter((e) => e && !Fn.test(e)).join(" ");
3105
+ let t = n.split(/\s+/).filter((e) => e && !In.test(e)).join(" ");
3170
3106
  t ? e.setAttribute("class", t) : e.removeAttribute("class");
3171
3107
  }
3172
3108
  e.removeAttribute("lang"), e.removeAttribute("xml:lang"), e.removeAttribute("id"), e.removeAttribute("align"), e.removeAttribute("bgcolor");
3173
3109
  }
3174
- function Bn(e) {
3110
+ function Vn(e) {
3175
3111
  if (!e || typeof DOMParser > "u") return e;
3176
3112
  let t = new DOMParser().parseFromString(e, "text/html").body;
3177
- return t ? (Ln(t), t.querySelectorAll("xml, style, script, meta, link").forEach((e) => e.remove()), Array.from(t.querySelectorAll("*")).forEach((e) => {
3178
- if (Nn.test(e.tagName) || e.tagName === "FONT") {
3179
- Rn(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);
3180
3116
  return;
3181
3117
  }
3182
- zn(e);
3118
+ Bn(e);
3183
3119
  }), Array.from(t.querySelectorAll("span, div")).forEach((e) => {
3184
- e.attributes.length === 0 && Rn(e);
3120
+ e.attributes.length === 0 && zn(e);
3185
3121
  }), t.innerHTML) : e;
3186
3122
  }
3187
3123
  //#endregion
3188
3124
  //#region src/helpers/rtf-editor/editor-core.vue?vue&type=script&setup=true&lang.ts
3189
- var Vn = { class: "editor-container" }, Hn = { class: "rtf-bubble-menu" }, Un = /* @__PURE__ */ l({
3125
+ var Hn = { class: "editor-container" }, Un = { class: "rtf-bubble-menu" }, Wn = /* @__PURE__ */ l({
3190
3126
  __name: "editor-core",
3191
3127
  props: {
3192
3128
  modelValue: { default: "" },
@@ -3199,18 +3135,26 @@ var Vn = { class: "editor-container" }, Hn = { class: "rtf-bubble-menu" }, Un =
3199
3135
  },
3200
3136
  emits: ["update:modelValue"],
3201
3137
  setup(e, { emit: o }) {
3202
- j((e) => ({ fcaeeefe: e.minHeight }));
3203
- let s = e, l = o, u = Ee({
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({
3204
3148
  content: s.modelValue,
3205
3149
  editable: !s.disabled,
3206
3150
  extensions: [
3207
- we.configure({ link: !1 }),
3208
- wn.configure({
3151
+ Te.configure({ link: !1 }),
3152
+ Tn.configure({
3209
3153
  openOnClick: !1,
3210
3154
  autolink: !0,
3211
3155
  defaultProtocol: "https"
3212
3156
  }),
3213
- ge.configure({
3157
+ _e.configure({
3214
3158
  inline: !0,
3215
3159
  allowBase64: !0,
3216
3160
  resize: {
@@ -3229,136 +3173,128 @@ var Vn = { class: "editor-container" }, Hn = { class: "rtf-bubble-menu" }, Un =
3229
3173
  minHeight: 24
3230
3174
  }
3231
3175
  }),
3232
- Se.configure({ types: ["heading", "paragraph"] }),
3233
- ve.configure({ resizable: !0 }),
3176
+ Ce.configure({ types: ["heading", "paragraph"] }),
3177
+ ye.configure({ resizable: !0 }),
3178
+ Se,
3234
3179
  xe,
3235
3180
  be,
3236
- ye,
3237
- _e.configure({ placeholder: "" }),
3238
- ln,
3239
- dn,
3181
+ ve.configure({ placeholder: "" }),
3182
+ un,
3240
3183
  fn,
3241
- En
3184
+ pn,
3185
+ Dn
3242
3186
  ],
3243
3187
  editorProps: {
3244
3188
  attributes: { class: "rtf-content" },
3245
- transformPastedHTML: (e) => Bn(e),
3246
- handlePaste: Cn(() => u.value)
3189
+ transformPastedHTML: (e) => Vn(e),
3190
+ handlePaste: wn(() => f.value)
3247
3191
  },
3248
3192
  onUpdate: ({ editor: e }) => {
3249
3193
  l("update:modelValue", e.isEmpty ? "" : e.getHTML());
3250
3194
  }
3251
3195
  });
3252
3196
  N(() => s.modelValue, (e) => {
3253
- let t = u.value;
3197
+ let t = f.value;
3254
3198
  if (!t) return;
3255
3199
  let n = e == null ? "" : e;
3256
3200
  n !== t.getHTML() && t.commands.setContent(n, { emitUpdate: !1 });
3257
3201
  }), N(() => s.disabled, (e) => {
3258
3202
  var t;
3259
- return (t = u.value) == null ? void 0 : t.setEditable(!e);
3260
- }), N(u, (e) => e == null ? void 0 : e.setEditable(!s.disabled));
3261
- let d = Dn(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(() => {
3262
3211
  var e, t, n, r, i;
3263
- return d.value, {
3264
- bold: !!((e = u.value) != null && e.isActive("bold")),
3265
- italic: !!((t = u.value) != null && t.isActive("italic")),
3266
- link: !!((n = u.value) != null && n.isActive("link")),
3267
- bulletList: !!((r = u.value) != null && r.isActive("bulletList")),
3268
- 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"))
3269
3218
  };
3270
3219
  });
3271
- function p({ state: e }) {
3272
- return !e.selection.empty && !(e.selection instanceof Ce);
3220
+ function _({ state: e }) {
3221
+ return !e.selection.empty && !(e.selection instanceof we);
3273
3222
  }
3274
- function m(e) {
3223
+ function v(e) {
3275
3224
  var t;
3276
- (t = u.value) == null || t.chain().focus()[e]().run();
3225
+ (t = f.value) == null || t.chain().focus()[e]().run();
3277
3226
  }
3278
- function h() {
3279
- let e = u.value;
3227
+ function C() {
3228
+ let e = f.value;
3280
3229
  if (!e) return;
3281
3230
  if (e.isActive("link")) {
3282
3231
  e.chain().focus().unsetLink().run();
3283
3232
  return;
3284
3233
  }
3285
- let t = window.prompt(Nt.LinkUrl);
3234
+ let t = window.prompt(Pt.LinkUrl);
3286
3235
  t && e.chain().focus().extendMarkRange("link").setLink({ href: t }).run();
3287
3236
  }
3288
3237
  return (t, o) => {
3289
- let s = w("v-btn");
3290
- return b(), i("div", Vn, [
3291
- c(Mn, {
3292
- editor: A(u),
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),
3293
3244
  "button-size": e.toolbarButtonSize
3294
3245
  }, null, 8, ["editor", "button-size"]),
3295
- c(A(Te), {
3246
+ c(j(Ee), {
3296
3247
  class: "editor-container__editor",
3297
- editor: A(u)
3248
+ editor: j(f)
3298
3249
  }, null, 8, ["editor"]),
3299
- A(u) ? (b(), n(A(De), {
3250
+ j(f) ? (x(), n(j(Oe), {
3300
3251
  key: 0,
3301
- editor: A(u),
3302
- "should-show": p
3252
+ editor: j(f),
3253
+ "should-show": _
3303
3254
  }, {
3304
- default: F(() => [a("div", Hn, [
3305
- c(s, {
3306
- icon: "",
3307
- size: "small",
3308
- variant: "text",
3309
- active: f.value.bold,
3310
- onClick: o[0] || (o[0] = (e) => m("toggleBold"))
3311
- }, {
3312
- default: F(() => [c(A(U), { 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" })]),
3313
3261
  _: 1
3314
- }, 8, ["active"]),
3315
- c(s, {
3316
- icon: "",
3317
- size: "small",
3318
- variant: "text",
3319
- active: f.value.italic,
3320
- onClick: o[1] || (o[1] = (e) => m("toggleItalic"))
3321
- }, {
3322
- default: F(() => [c(A(U), { 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" })]),
3323
3268
  _: 1
3324
- }, 8, ["active"]),
3325
- c(s, {
3326
- icon: "",
3327
- size: "small",
3328
- variant: "text",
3329
- active: f.value.link,
3330
- onClick: h
3331
- }, {
3332
- default: F(() => [c(A(U), { 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" })]),
3333
3275
  _: 1
3334
- }, 8, ["active"]),
3335
- c(s, {
3336
- icon: "",
3337
- size: "small",
3338
- variant: "text",
3339
- active: f.value.bulletList,
3340
- onClick: o[2] || (o[2] = (e) => m("toggleBulletList"))
3341
- }, {
3342
- default: F(() => [c(A(U), { 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" })]),
3343
3282
  _: 1
3344
- }, 8, ["active"]),
3345
- c(s, {
3346
- icon: "",
3347
- size: "small",
3348
- variant: "text",
3349
- active: f.value.orderedList,
3350
- onClick: o[3] || (o[3] = (e) => m("toggleOrderedList"))
3351
- }, {
3352
- default: F(() => [c(A(U), { 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" })]),
3353
3289
  _: 1
3354
- }, 8, ["active"])
3290
+ }, 16, ["active"])
3355
3291
  ])]),
3356
3292
  _: 1
3357
3293
  }, 8, ["editor"])) : r("", !0)
3358
3294
  ]);
3359
3295
  };
3360
3296
  }
3361
- }), Wn = /* @__PURE__ */ l({
3297
+ }), Gn = /* @__PURE__ */ l({
3362
3298
  __name: "df-rtf-editor",
3363
3299
  props: /*@__PURE__*/ p({
3364
3300
  minHeight: {},
@@ -3381,14 +3317,14 @@ var Vn = { class: "editor-container" }, Hn = { class: "rtf-bubble-menu" }, Un =
3381
3317
  emits: ["update:modelValue", "click:clear"],
3382
3318
  setup(e, { emit: t }) {
3383
3319
  let r = e, { densityClass: i, value: a, vuetifyBindings: o } = Q(r, t);
3384
- return (t, s) => (b(), n(A(Mt), m(r, { class: ["rtf-editor", A(i)] }), {
3385
- default: F((t) => [c(Un, m({
3320
+ return (t, s) => (x(), n(j(Nt), m(r, { class: ["rtf-editor", j(i)] }), {
3321
+ default: P((t) => [c(Wn, m({
3386
3322
  ref: "$editor",
3387
- modelValue: A(a),
3323
+ modelValue: j(a),
3388
3324
  "onUpdate:modelValue": s[0] || (s[0] = (e) => f(a) ? a.value = e : null),
3389
3325
  class: { "mt-6": !!e.label },
3390
3326
  "min-height": e.minHeight,
3391
- disabled: A(o).disabled,
3327
+ disabled: j(o).disabled,
3392
3328
  "toolbar-button-size": e.toolbarButtonSize
3393
3329
  }, e.passthroughAttrs, {
3394
3330
  onFocusin: (e) => t.focus(),
@@ -3408,42 +3344,42 @@ var Vn = { class: "editor-container" }, Hn = { class: "rtf-bubble-menu" }, Un =
3408
3344
  });
3409
3345
  //#endregion
3410
3346
  //#region src/helpers/df-select.helper.ts
3411
- function Gn(e) {
3347
+ function Kn(e) {
3412
3348
  return e.map((e) => ({
3413
3349
  value: e.id,
3414
3350
  title: e.text,
3415
3351
  icon: e.icon
3416
3352
  }));
3417
3353
  }
3418
- function Kn(e, t) {
3354
+ function qn(e, t) {
3419
3355
  var n;
3420
- return e == null || G(e) && e.length === 0 ? null : t ? re(e) : G(e) ? (n = ie(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;
3421
3357
  }
3422
- function qn(e, t) {
3358
+ function Jn(e, t) {
3423
3359
  if (t == null) return [];
3424
- let n = re(t);
3360
+ let n = U(t);
3425
3361
  return e.filter((e) => n.some((t) => t === e.id));
3426
3362
  }
3427
- function Jn(e, t, n, r, i) {
3428
- let a = Kn(e, n);
3363
+ function Yn(e, t, n, r, i) {
3364
+ let a = qn(e, n);
3429
3365
  if (a == null) {
3430
3366
  t.value = n ? [] : null;
3431
3367
  return;
3432
3368
  }
3433
- if (n) t.value = r ? a : qn(i, a).map((e) => e.id);
3369
+ if (n) t.value = r ? a : Jn(i, a).map((e) => e.id);
3434
3370
  else if (r) t.value = a;
3435
3371
  else {
3436
3372
  var o;
3437
- let e = ie(qn(i, a));
3373
+ let e = oe(Jn(i, a));
3438
3374
  t.value = (o = e == null ? void 0 : e.id) == null ? null : o;
3439
3375
  }
3440
3376
  }
3441
3377
  //#endregion
3442
3378
  //#region src/df-select.vue?vue&type=script&setup=true&lang.ts
3443
- var Yn = {
3379
+ var Xn = {
3444
3380
  key: 0,
3445
3381
  class: "me-1"
3446
- }, Xn = /*#__PURE__*/ ((e, t) => {
3382
+ }, Zn = /*#__PURE__*/ ((e, t) => {
3447
3383
  let n = e.__vccOpts || e;
3448
3384
  for (let [e, r] of t) n[e] = r;
3449
3385
  return n;
@@ -3483,174 +3419,174 @@ var Yn = {
3483
3419
  ],
3484
3420
  setup(e, { emit: s }) {
3485
3421
  var l;
3486
- let d = e, { choices: f, multiple: p, allowTags: v, allowNull: y, cssClass: S } = k(d), E = s, O = x(null), { densityClass: j, isRendered: M, label: P, showErrors: I, touched: L, value: R, visibilityClass: z, vuetifyBindings: B } = Q(d, E), V = x(null), ee = x(!1), te = x([]), H = t(() => A(ee) ? A(te) : A(f) || []), ne = x(!1), re = t(() => Gn(H.value)), W = x(null), ie = x(0), G = 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);
3487
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.");
3488
- function ae(e) {
3489
- E("update:modelValueDisplay", qn(H.value, e));
3490
- }
3491
- let K = x(!1);
3492
3424
  function se(e) {
3493
- K.value = !0;
3425
+ C("update:modelValueDisplay", Jn(B.value, e));
3426
+ }
3427
+ let W = S(!1);
3428
+ function G(e) {
3429
+ W.value = !0;
3494
3430
  try {
3495
- R.value = e;
3431
+ I.value = e;
3496
3432
  } finally {
3497
- oe(Kn(R.value, p.value), e) || Jn(Kn(R.value, p.value), V, p.value, v.value, H.value), h(() => {
3498
- K.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;
3499
3435
  });
3500
3436
  }
3501
3437
  }
3502
- function ce(e) {
3438
+ function le(e) {
3503
3439
  if (!e) return 0;
3504
3440
  let t = e.getBoundingClientRect(), n = window.getComputedStyle(e);
3505
3441
  return t.width + parseFloat(n.marginLeft) + parseFloat(n.marginRight);
3506
3442
  }
3507
- function le() {
3508
- if (p.value && y.value && V.value != null && V.value.length > 0 && O.value) {
3443
+ function ue() {
3444
+ if (p.value && y.value && z.value != null && z.value.length > 0 && D.value) {
3509
3445
  var e;
3510
- 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);
3511
3447
  i.forEach((e) => {
3512
- o += ce(e);
3448
+ o += le(e);
3513
3449
  });
3514
- let s = ce(t.querySelector(".v-field .v-field__clearable")), c = ce(t.querySelector(".v-field .v-field__append-inner"));
3515
- G.value = n - o - i.length * 2 - c < s;
3516
- } else G.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;
3517
3453
  }
3518
- function q(e) {
3454
+ function de(e) {
3519
3455
  let t = e.target;
3520
3456
  t instanceof HTMLElement && t.closest(".v-chip__close") && (e.stopPropagation(), e.preventDefault());
3521
3457
  }
3522
- N(V, (e) => {
3523
- B.value.readonly || h(() => {
3524
- let t = Kn(e, p.value);
3525
- ae(t), se(t);
3458
+ N(z, (e) => {
3459
+ R.value.readonly || h(() => {
3460
+ let t = qn(e, p.value);
3461
+ se(t), G(t);
3526
3462
  });
3527
- }, { deep: !0 }), N(R, (e) => {
3528
- K.value || Jn(Kn(e, p.value), V, p.value, !1, H.value);
3529
- }, { deep: !0 }), N(K, () => {
3530
- K.value || le();
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();
3531
3467
  });
3532
- function ue() {
3533
- W.value != null && W.value.length > 0 && (W.value = null, me());
3468
+ function K() {
3469
+ U.value != null && U.value.length > 0 && (U.value = null, me());
3534
3470
  }
3535
- function fe() {
3536
- if (ue(), B.value.readonly || v.value) return;
3537
- let e = Kn(V.value, p.value);
3538
- Jn(e, V, p.value, !1, H.value), se(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);
3539
3475
  }
3540
3476
  function pe(e, t) {
3541
- if (e.stopPropagation(), B.value.readonly || v.value) {
3542
- v.value && (V.value = V.value.filter((e) => e !== t));
3477
+ if (e.stopPropagation(), R.value.readonly || v.value) {
3478
+ v.value && (z.value = z.value.filter((e) => e !== t));
3543
3479
  return;
3544
3480
  }
3545
3481
  let n;
3546
- n = p.value && Array.isArray(V.value) ? Kn(V.value.filter((e) => e !== t), p.value) : null, Jn(n, V, p.value, !1, H.value), se(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);
3547
3483
  }
3548
3484
  function me(e, t) {
3549
3485
  return he.apply(this, arguments);
3550
3486
  }
3551
3487
  function he() {
3552
- return he = Qt(function* (e, t) {
3553
- if (B.value.readonly || (W.value = e, f.value || d.fetchChoices === void 0)) return;
3554
- let n = ++ie.value;
3555
- ne.value = !0;
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;
3556
3492
  try {
3557
- let r = qn(H.value, Kn(V.value, p.value)), i = yield d.fetchChoices(e, t);
3558
- if (n !== ie.value) return;
3559
- te.value = de([...r, ...i], "id"), ee.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;
3560
3496
  } finally {
3561
- ne.value = !1;
3497
+ ie.value = !1;
3562
3498
  }
3563
3499
  }), he.apply(this, arguments);
3564
3500
  }
3565
3501
  function ge() {
3566
- let e = R.value;
3567
- !y.value && e == null && re.value.length && (e = re.value[0].value), e = Kn(e, p.value), Jn(e, V, p.value, v.value, H.value), ae(e), se(e);
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);
3568
3504
  }
3569
- return ge(), d.fetchChoices !== void 0 && me(void 0, R.value).then(() => {
3505
+ return ge(), d.fetchChoices !== void 0 && me(void 0, I.value).then(() => {
3570
3506
  ge();
3571
3507
  }), (e, t) => {
3572
- let s = w("v-chip"), l = w("v-list-item");
3573
- return A(M) ? (b(), n(T(A(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({
3574
3510
  key: 0,
3575
3511
  ref_key: "dfSelectRef",
3576
- ref: O,
3577
- modelValue: V.value,
3578
- "onUpdate:modelValue": t[0] || (t[0] = (e) => V.value = e),
3512
+ ref: D,
3513
+ modelValue: z.value,
3514
+ "onUpdate:modelValue": t[0] || (t[0] = (e) => z.value = e),
3579
3515
  class: [
3580
- A(S),
3581
- A(j),
3582
- A(z),
3583
- { "df-select-multirow": G.value }
3516
+ j(b),
3517
+ j(k),
3518
+ j(L),
3519
+ { "df-select-multirow": oe.value }
3584
3520
  ],
3585
- items: re.value,
3521
+ items: H.value,
3586
3522
  "return-object": !1,
3587
3523
  chips: "",
3588
3524
  "auto-select-first": !0,
3589
- "closable-chips": A(y) || A(p) && V.value.length > 1,
3590
- clearable: A(y),
3591
- multiple: A(p),
3592
- 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,
3593
3529
  "hide-selected": !1,
3594
- "aria-describedby": A(B).helpText ? `${A(B).name}-help` : null,
3530
+ "aria-describedby": j(R).helpText ? `${j(R).name}-help` : null,
3595
3531
  "menu-props": { maxHeight: "400" },
3596
- search: W.value
3597
- }, A(B), {
3532
+ search: U.value
3533
+ }, j(R), {
3598
3534
  "onUpdate:search": t[1] || (t[1] = (e) => me(e, void 0)),
3599
- "onUpdate:modelValue": fe,
3600
- "onClick:clear": t[2] || (t[2] = (e) => V.value = null),
3601
- onBlur: t[3] || (t[3] = (e) => L.value = !0),
3602
- onMousedownCapture: t[4] || (t[4] = (e) => q(e))
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))
3603
3539
  }), o({
3604
- chip: F(({ item: e }) => [(b(), n(s, {
3540
+ chip: P(({ item: e }) => [(x(), n(s, {
3605
3541
  key: e.value,
3606
3542
  label: "",
3607
3543
  size: "small",
3608
3544
  class: "d-flex align-middle",
3609
- variant: A(p) ? "tonal" : "text",
3610
- closable: A(p),
3545
+ variant: j(p) ? "tonal" : "text",
3546
+ closable: j(p),
3611
3547
  "onClick:close": (t) => pe(t, e.value)
3612
3548
  }, {
3613
- prepend: F(() => {
3549
+ prepend: P(() => {
3614
3550
  var t;
3615
- return [(t = e.raw) != null && t.icon ? (b(), n(A(U), {
3551
+ return [(t = e.raw) != null && t.icon ? (x(), n(j(V), {
3616
3552
  key: 0,
3617
3553
  class: "me-1",
3618
3554
  name: e.raw.icon
3619
3555
  }, null, 8, ["name"])) : r("", !0)];
3620
3556
  }),
3621
- default: F(() => [a("span", { class: g({ "text-body-1": !A(p) }) }, D(e.title), 3)]),
3557
+ default: P(() => [a("span", { class: g({ "text-body-1": !j(p) }) }, O(e.title), 3)]),
3622
3558
  _: 2
3623
3559
  }, 1032, [
3624
3560
  "variant",
3625
3561
  "closable",
3626
3562
  "onClick:close"
3627
3563
  ]))]),
3628
- label: F((e) => [c(A(X), {
3564
+ label: P((e) => [c(j(X), {
3629
3565
  data: e,
3630
- label: A(P)
3566
+ label: j(ee)
3631
3567
  }, null, 8, ["data", "label"])]),
3632
- item: F(({ props: e, item: t }) => [c(l, _(u(e)), {
3633
- prepend: F(() => {
3568
+ item: P(({ props: e, item: t }) => [c(l, _(u(e)), {
3569
+ prepend: P(() => {
3634
3570
  var e;
3635
- return [(e = t.raw) != null && e.icon ? (b(), i("span", Yn, [c(A(U), {
3571
+ return [(e = t.raw) != null && e.icon ? (x(), i("span", Xn, [c(j(V), {
3636
3572
  class: "action-icon",
3637
3573
  name: t.raw.icon
3638
3574
  }, null, 8, ["name"])])) : r("", !0)];
3639
3575
  }),
3640
3576
  _: 2
3641
3577
  }, 1040)]),
3642
- message: F(({ message: e }) => [c(A(Y), {
3578
+ message: P(({ message: e }) => [c(j(Y), {
3643
3579
  message: e,
3644
- errors: A(I)
3580
+ errors: j(te)
3645
3581
  }, null, 8, ["message", "errors"])]),
3646
3582
  _: 2
3647
3583
  }, [e.$slots["append-inner"] ? {
3648
3584
  name: "append-inner",
3649
- fn: F((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)]),
3650
3586
  key: "0"
3651
3587
  } : void 0, e.$slots["prepend-inner"] ? {
3652
3588
  name: "prepend-inner",
3653
- fn: F((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)]),
3654
3590
  key: "1"
3655
3591
  } : void 0]), 1040, [
3656
3592
  "modelValue",
@@ -3665,7 +3601,7 @@ var Yn = {
3665
3601
  ])) : r("", !0);
3666
3602
  };
3667
3603
  }
3668
- }), [["__scopeId", "data-v-7e5aa3b6"]]), Zn = /* @__PURE__ */ l({
3604
+ }), [["__scopeId", "data-v-7e5aa3b6"]]), Qn = /* @__PURE__ */ l({
3669
3605
  __name: "df-text-area",
3670
3606
  props: /*@__PURE__*/ p({
3671
3607
  rows: {},
@@ -3690,27 +3626,27 @@ var Yn = {
3690
3626
  })),
3691
3627
  emits: ["update:modelValue", "click:clear"],
3692
3628
  setup(e, { emit: t }) {
3693
- let n = e, { densityClass: a, isRendered: o, label: s, showErrors: l, touched: u, value: d, visibilityClass: p, vuetifyBindings: h } = Q(n, t), { cssClass: _ } = k(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);
3694
3630
  return (t, n) => {
3695
- let v = w("v-textarea");
3696
- return A(o) ? (b(), i("div", {
3631
+ let v = T("v-textarea");
3632
+ return j(o) ? (x(), i("div", {
3697
3633
  key: 0,
3698
- class: g(["df-textarea-container", [A(a), A(p)]])
3634
+ class: g(["df-textarea-container", [j(a), j(p)]])
3699
3635
  }, [c(v, m({
3700
- modelValue: A(d),
3636
+ modelValue: j(d),
3701
3637
  "onUpdate:modelValue": n[0] || (n[0] = (e) => f(d) ? d.value = e : null),
3702
- class: A(_),
3638
+ class: j(_),
3703
3639
  rows: e.rows,
3704
3640
  "auto-grow": (e.maxRows || 0) > 0,
3705
3641
  "max-rows": e.maxRows
3706
- }, A(h), { onBlur: n[1] || (n[1] = (e) => u.value = !0) }), {
3707
- label: F((e) => [c(A(X), {
3642
+ }, j(h), { onBlur: n[1] || (n[1] = (e) => u.value = !0) }), {
3643
+ label: P((e) => [c(j(X), {
3708
3644
  data: e,
3709
- label: A(s)
3645
+ label: j(s)
3710
3646
  }, null, 8, ["data", "label"])]),
3711
- message: F(({ message: e }) => [c(A(Y), {
3647
+ message: P(({ message: e }) => [c(j(Y), {
3712
3648
  message: e,
3713
- errors: A(l)
3649
+ errors: j(l)
3714
3650
  }, null, 8, ["message", "errors"])]),
3715
3651
  _: 1
3716
3652
  }, 16, [
@@ -3722,62 +3658,62 @@ var Yn = {
3722
3658
  ])], 2)) : r("", !0);
3723
3659
  };
3724
3660
  }
3725
- }), Qn = /* @__PURE__ */ ot({
3726
- DfActions: () => qt,
3727
- DfCheckbox: () => Jt,
3728
- DfColor: () => Yt,
3729
- DfDateTime: () => Xt,
3730
- DfFile: () => en,
3731
- DfImage: () => sn,
3732
- DfInput: () => cn,
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,
3733
3669
  DfInputHint: () => Y,
3734
3670
  DfLabel: () => X,
3735
- DfRtfEditor: () => Wn,
3736
- DfSelect: () => Xn,
3737
- DfTextArea: () => Zn
3738
- }), $n = /* @__PURE__ */ ot({
3739
- VAutocomplete: () => Fe,
3740
- VBtn: () => Ie,
3741
- VCheckbox: () => Le,
3742
- VChip: () => Re,
3743
- VCol: () => Ge,
3744
- VColorPicker: () => Be,
3745
- VCombobox: () => ze,
3746
- VConfirmEdit: () => Ve,
3747
- VDatePicker: () => He,
3748
- VField: () => Ue,
3749
- VFileInput: () => We,
3750
- VIcon: () => qe,
3751
- VImg: () => Je,
3752
- VInput: () => Ye,
3753
- VListItem: () => Xe,
3754
- VMenu: () => Ze,
3755
- VNumberInput: () => Qe,
3756
- VProgressLinear: () => $e,
3757
- VRow: () => Ke,
3758
- VSelect: () => et,
3759
- VSwitch: () => tt,
3760
- VTextField: () => rt,
3761
- VTextarea: () => nt,
3762
- VTimePicker: () => it
3763
- }), er = {
3764
- "df-actions": qt,
3765
- "df-checkbox": Jt,
3766
- "df-color": Yt,
3767
- "df-date-time": Xt,
3768
- "df-file": en,
3769
- "df-image": sn,
3770
- "df-input": cn,
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,
3771
3707
  "df-input-hint": Y,
3772
3708
  "df-label": X,
3773
- "df-rtf-editor": Wn,
3774
- "df-select": Xn,
3775
- "df-text-area": Zn
3776
- }, tr = /* @__PURE__ */ ot({}), nr = { install: (e, t) => {
3709
+ "df-rtf-editor": Gn,
3710
+ "df-select": Zn,
3711
+ "df-text-area": Qn
3712
+ }, nr = /* @__PURE__ */ st({}), rr = { install: (e, t) => {
3777
3713
  var n, r;
3778
- e.provide(kt, t == null ? {} : t), (n = t == null ? void 0 : t.registerComponents) != null && n && Object.entries(Qn).map(([t, n]) => e.component(t, n)), (r = t == null ? void 0 : t.registerVuetifyComponents) != null && r && Object.entries($n).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));
3779
3715
  } };
3780
3716
  //#endregion
3781
- export { Ht as Action, $ as ActionDisplayStyle, Dt as DateTimeLocaleConfig, qt as DfActions, Jt as DfCheckbox, Yt as DfColor, Xt as DfDateTime, en as DfFile, sn as DfImage, cn as DfInput, tr as DfInputComponentProps, Qn as DfInputComponents, Y as DfInputHint, X as DfLabel, Wn as DfRtfEditor, Xn as DfSelect, Zn as DfTextArea, nr as DynamicFormsInputs, Ot as FileGoneError, Mt as InputBase, At as Label, Bt as ResponsiveActionRenderOptions, Lt as ResponsiveRenderOptions, $n as VuetifyComponents, Z as defaultBaseProps, Ft as defaultDisplayStyle, er as dfInputComponentsByTag, Rt as getBreakpointName, Vt as getRenderOptionsForBreakpoint, It as responsiveBreakpoints, Wt as setFileGoneError, Nt as translatableStrings, Pt as translateStrings, zt as useBreakpoint, Ut as useFileTouchKeepAlive, Q as useInputBase, kt 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 };
3782
3718
 
3783
3719
  //# sourceMappingURL=dynamicforms-vuetify-inputs.js.map