@dynamicforms/vuetify-inputs 0.10.3 → 0.10.5

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,18 +1,18 @@
1
- var Pt = Object.defineProperty, Nt = Object.defineProperties;
2
- var Et = Object.getOwnPropertyDescriptors;
1
+ var Pt = Object.defineProperty, Et = Object.defineProperties;
2
+ var Ft = Object.getOwnPropertyDescriptors;
3
3
  var et = Object.getOwnPropertySymbols;
4
- var Ut = Object.prototype.hasOwnProperty, zt = Object.prototype.propertyIsEnumerable;
5
- var Oe = (t, n, e) => n in t ? Pt(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e, z = (t, n) => {
4
+ var Nt = Object.prototype.hasOwnProperty, Ut = Object.prototype.propertyIsEnumerable;
5
+ var qe = (t, n, e) => n in t ? Pt(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e, z = (t, n) => {
6
6
  for (var e in n || (n = {}))
7
- Ut.call(n, e) && Oe(t, e, n[e]);
7
+ Nt.call(n, e) && qe(t, e, n[e]);
8
8
  if (et)
9
9
  for (var e of et(n))
10
- zt.call(n, e) && Oe(t, e, n[e]);
10
+ Ut.call(n, e) && qe(t, e, n[e]);
11
11
  return t;
12
- }, ee = (t, n) => Nt(t, Et(n));
13
- var xe = (t, n, e) => Oe(t, typeof n != "symbol" ? n + "" : n, e);
14
- var ge = (t, n, e) => new Promise((a, r) => {
15
- var u = (k) => {
12
+ }, te = (t, n) => Et(t, Ft(n));
13
+ var Ae = (t, n, e) => qe(t, typeof n != "symbol" ? n + "" : n, e);
14
+ var he = (t, n, e) => new Promise((a, r) => {
15
+ var c = (k) => {
16
16
  try {
17
17
  h(e.next(k));
18
18
  } catch (f) {
@@ -24,14 +24,14 @@ var ge = (t, n, e) => new Promise((a, r) => {
24
24
  } catch (f) {
25
25
  r(f);
26
26
  }
27
- }, h = (k) => k.done ? a(k.value) : Promise.resolve(k.value).then(u, d);
27
+ }, h = (k) => k.done ? a(k.value) : Promise.resolve(k.value).then(c, d);
28
28
  h((e = e.apply(t, n)).next());
29
29
  });
30
- import { ref as M, isRef as Ce, defineComponent as te, computed as x, openBlock as V, createBlock as F, unref as l, resolveComponent as R, createElementBlock as Z, normalizeClass as ue, Fragment as Se, resolveDynamicComponent as Ue, createCommentVNode as Y, createTextVNode as J, toDisplayString as G, inject as Pe, shallowRef as Ft, toRaw as tt, nextTick as Ke, createSlots as Ge, withCtx as s, createVNode as i, renderSlot as _e, normalizeProps as ye, guardReactiveProps as ke, createElementVNode as oe, onBeforeUnmount as Ye, watch as me, renderList as Xe, mergeProps as X, withModifiers as Te, mergeDefaults as pe, normalizeStyle as st, toRefs as Fe, withKeys as De, useId as Ht, useCssVars as Ot } from "vue";
31
- import Ae, { MessagesWidget as Wt, MdString as qt, ValidationErrorRenderContent as ut, Action as Kt, DisplayMode as We } from "@dynamicforms/vue-forms";
32
- import { CachedIcon as B } from "vue-cached-icon";
30
+ import { ref as R, isRef as xe, defineComponent as ne, computed as C, openBlock as T, createBlock as H, unref as l, resolveComponent as P, createElementBlock as Q, normalizeClass as ue, Fragment as Se, resolveDynamicComponent as Ue, createCommentVNode as Y, createTextVNode as J, toDisplayString as G, inject as Ee, shallowRef as zt, toRaw as tt, nextTick as Xe, createSlots as ze, withCtx as s, createVNode as i, renderSlot as Te, normalizeProps as we, guardReactiveProps as Ce, createElementVNode as ae, onBeforeUnmount as Je, watch as me, renderList as Ye, mergeProps as X, withModifiers as ke, mergeDefaults as pe, normalizeStyle as st, toRefs as Oe, withKeys as $e, useId as Ht, useCssVars as Ot } from "vue";
31
+ import _e, { MessagesWidget as Wt, MdString as qt, ValidationErrorRenderContent as ut, Action as Kt, DisplayMode as Ke } from "@dynamicforms/vue-forms";
32
+ import { CachedIcon as j } from "vue-cached-icon";
33
33
  import Gt from "vue-markdown-render";
34
- import { isString as he, isEmpty as Me, isPlainObject as ct, isObjectLike as Xt, isBoolean as Re, clone as Yt, toNumber as nt, isNaN as lt, isArray as at, castArray as dt, first as mt, isEqual as Jt, unionBy as Qt } from "lodash-es";
34
+ import { isString as ge, isEmpty as Me, isPlainObject as ct, isObjectLike as Xt, isBoolean as Pe, clone as Yt, toNumber as nt, isNaN as lt, isArray as at, castArray as dt, first as mt, isEqual as Jt, unionBy as Qt } from "lodash-es";
35
35
  import { useDisplay as Zt } from "vuetify";
36
36
  import { parse as en, format as je } from "date-fns";
37
37
  import tn from "@tiptap/extension-image";
@@ -53,23 +53,23 @@ import { VBtn as wn } from "vuetify/components/VBtn";
53
53
  import { VCheckbox as Cn } from "vuetify/components/VCheckbox";
54
54
  import { VChip as xn } from "vuetify/components/VChip";
55
55
  import { VCombobox as An } from "vuetify/components/VCombobox";
56
- import { VColorPicker as Tn } from "vuetify/components/VColorPicker";
57
- import { VConfirmEdit as _n } from "vuetify/components/VConfirmEdit";
56
+ import { VColorPicker as _n } from "vuetify/components/VColorPicker";
57
+ import { VConfirmEdit as Tn } from "vuetify/components/VConfirmEdit";
58
58
  import { VDatePicker as Vn } from "vuetify/components/VDatePicker";
59
59
  import { VField as jn } from "vuetify/components/VField";
60
60
  import { VFileInput as Bn } from "vuetify/components/VFileInput";
61
- import { VCol as Ln, VRow as In } from "vuetify/components/VGrid";
62
- import { VIcon as $n } from "vuetify/components/VIcon";
63
- import { VImg as Dn } from "vuetify/components/VImg";
61
+ import { VCol as Dn, VRow as In } from "vuetify/components/VGrid";
62
+ import { VIcon as Ln } from "vuetify/components/VIcon";
63
+ import { VImg as $n } from "vuetify/components/VImg";
64
64
  import { VInput as Sn } from "vuetify/components/VInput";
65
65
  import { VListItem as Mn } from "vuetify/components/VList";
66
66
  import { VMenu as Rn } from "vuetify/components/VMenu";
67
67
  import { VNumberInput as Pn } from "vuetify/components/VNumberInput";
68
- import { VProgressLinear as Nn } from "vuetify/components/VProgressLinear";
69
- import { VSelect as En } from "vuetify/components/VSelect";
70
- import { VSwitch as Un } from "vuetify/components/VSwitch";
71
- import { VTextarea as zn } from "vuetify/components/VTextarea";
72
- import { VTextField as Fn } from "vuetify/components/VTextField";
68
+ import { VProgressLinear as En } from "vuetify/components/VProgressLinear";
69
+ import { VSelect as Fn } from "vuetify/components/VSelect";
70
+ import { VSwitch as Nn } from "vuetify/components/VSwitch";
71
+ import { VTextarea as Un } from "vuetify/components/VTextarea";
72
+ import { VTextField as zn } from "vuetify/components/VTextField";
73
73
  import { VTimePicker as Hn } from "vuetify/components/VTimePicker";
74
74
  function On(t) {
75
75
  return t.one !== void 0;
@@ -367,16 +367,16 @@ function qn(t) {
367
367
  const Kn = (t, n, e) => {
368
368
  let a = "", r = "present";
369
369
  e != null && e.addSuffix && (e.comparison && e.comparison > 0 ? (r = "future", a = "čez ") : (r = "past", a = "pred "));
370
- const u = Wn[t];
371
- if (typeof u == "string")
372
- a += u;
370
+ const c = Wn[t];
371
+ if (typeof c == "string")
372
+ a += c;
373
373
  else {
374
374
  const d = qn(n);
375
- On(u) ? a += u[d].replace("{{count}}", String(n)) : a += u[r][d].replace("{{count}}", String(n));
375
+ On(c) ? a += c[d].replace("{{count}}", String(n)) : a += c[r][d].replace("{{count}}", String(n));
376
376
  }
377
377
  return a;
378
378
  };
379
- function qe(t) {
379
+ function Ge(t) {
380
380
  return (n = {}) => {
381
381
  const e = n.width ? String(n.width) : t.defaultWidth;
382
382
  return t.formats[e] || t.formats[t.defaultWidth];
@@ -398,15 +398,15 @@ const Gn = {
398
398
  medium: "{{date}} {{time}}",
399
399
  short: "{{date}} {{time}}"
400
400
  }, Jn = {
401
- date: qe({
401
+ date: Ge({
402
402
  formats: Gn,
403
403
  defaultWidth: "full"
404
404
  }),
405
- time: qe({
405
+ time: Ge({
406
406
  formats: Xn,
407
407
  defaultWidth: "full"
408
408
  }),
409
- dateTime: qe({
409
+ dateTime: Ge({
410
410
  formats: Yn,
411
411
  defaultWidth: "full"
412
412
  })
@@ -454,8 +454,8 @@ function Be(t) {
454
454
  const d = t.defaultWidth, h = e != null && e.width ? String(e.width) : t.defaultWidth;
455
455
  r = t.values[h] || t.values[d];
456
456
  }
457
- const u = t.argumentCallback ? t.argumentCallback(n) : n;
458
- return r[u];
457
+ const c = t.argumentCallback ? t.argumentCallback(n) : n;
458
+ return r[c];
459
459
  };
460
460
  }
461
461
  const el = {
@@ -597,14 +597,14 @@ const el = {
597
597
  defaultFormattingWidth: "wide"
598
598
  })
599
599
  };
600
- function Le(t) {
600
+ function De(t) {
601
601
  return (n, e = {}) => {
602
- const a = e.width, r = a && t.matchPatterns[a] || t.matchPatterns[t.defaultMatchWidth], u = n.match(r);
603
- if (!u)
602
+ const a = e.width, r = a && t.matchPatterns[a] || t.matchPatterns[t.defaultMatchWidth], c = n.match(r);
603
+ if (!c)
604
604
  return null;
605
- const d = u[0], h = a && t.parsePatterns[a] || t.parsePatterns[t.defaultParseWidth], k = Array.isArray(h) ? ul(h, (g) => g.test(d)) : (
605
+ const d = c[0], h = a && t.parsePatterns[a] || t.parsePatterns[t.defaultParseWidth], k = Array.isArray(h) ? ul(h, (b) => b.test(d)) : (
606
606
  // [TODO] -- I challenge you to fix the type
607
- sl(h, (g) => g.test(d))
607
+ sl(h, (b) => b.test(d))
608
608
  );
609
609
  let f;
610
610
  f = t.valueCallback ? t.valueCallback(k) : k, f = e.valueCallback ? (
@@ -629,9 +629,9 @@ function cl(t) {
629
629
  return (n, e = {}) => {
630
630
  const a = n.match(t.matchPattern);
631
631
  if (!a) return null;
632
- const r = a[0], u = n.match(t.parsePattern);
633
- if (!u) return null;
634
- let d = t.valueCallback ? t.valueCallback(u[0]) : u[0];
632
+ const r = a[0], c = n.match(t.parsePattern);
633
+ if (!c) return null;
634
+ let d = t.valueCallback ? t.valueCallback(c[0]) : c[0];
635
635
  d = e.valueCallback ? e.valueCallback(d) : d;
636
636
  const h = n.slice(r.length);
637
637
  return { value: d, rest: h };
@@ -733,32 +733,32 @@ const dl = /^(\d+)\./i, ml = /\d+/i, vl = {
733
733
  parsePattern: ml,
734
734
  valueCallback: (t) => parseInt(t, 10)
735
735
  }),
736
- era: Le({
736
+ era: De({
737
737
  matchPatterns: vl,
738
738
  defaultMatchWidth: "wide",
739
739
  parsePatterns: fl,
740
740
  defaultParseWidth: "any"
741
741
  }),
742
- quarter: Le({
742
+ quarter: De({
743
743
  matchPatterns: pl,
744
744
  defaultMatchWidth: "wide",
745
745
  parsePatterns: bl,
746
746
  defaultParseWidth: "any",
747
747
  valueCallback: (t) => t + 1
748
748
  }),
749
- month: Le({
749
+ month: De({
750
750
  matchPatterns: hl,
751
751
  defaultMatchWidth: "wide",
752
752
  parsePatterns: gl,
753
753
  defaultParseWidth: "wide"
754
754
  }),
755
- day: Le({
755
+ day: De({
756
756
  matchPatterns: yl,
757
757
  defaultMatchWidth: "wide",
758
758
  parsePatterns: kl,
759
759
  defaultParseWidth: "any"
760
760
  }),
761
- dayPeriod: Le({
761
+ dayPeriod: De({
762
762
  matchPatterns: wl,
763
763
  defaultMatchWidth: "any",
764
764
  parsePatterns: Cl,
@@ -775,20 +775,20 @@ const dl = /^(\d+)\./i, ml = /\d+/i, vl = {
775
775
  weekStartsOn: 1,
776
776
  firstWeekContainsDate: 1
777
777
  }
778
- }, Tl = {
779
- dateTimeLocale: M(Al),
778
+ }, _l = {
779
+ dateTimeLocale: R(Al),
780
780
  setDateTimeLocale(t) {
781
- Ce(t) ? this.dateTimeLocale = t : this.dateTimeLocale.value = t;
781
+ xe(t) ? this.dateTimeLocale = t : this.dateTimeLocale.value = t;
782
782
  }
783
783
  };
784
- class _l extends Error {
784
+ class Tl extends Error {
785
785
  constructor(e) {
786
786
  super(e);
787
- xe(this, "errorText");
787
+ Ae(this, "errorText");
788
788
  this.errorText = e;
789
789
  }
790
790
  }
791
- const ve = /* @__PURE__ */ te({
791
+ const ve = /* @__PURE__ */ ne({
792
792
  __name: "df-input-hint",
793
793
  props: {
794
794
  errors: { default: "" },
@@ -797,13 +797,13 @@ const ve = /* @__PURE__ */ te({
797
797
  messageClasses: { default: "" }
798
798
  },
799
799
  setup(t) {
800
- const n = t, e = x(() => n.errors ? typeof n.errors == "string" ? n.errors.trim().length > 0 : n.errors.length > 0 : !1), a = x(() => e.value ? n.errors : n.message), r = x(() => e.value ? n.errorClasses : n.messageClasses);
801
- return (u, d) => (V(), F(l(Wt), {
800
+ const n = t, e = C(() => n.errors ? typeof n.errors == "string" ? n.errors.trim().length > 0 : n.errors.length > 0 : !1), a = C(() => e.value ? n.errors : n.message), r = C(() => e.value ? n.errorClasses : n.messageClasses);
801
+ return (c, d) => (T(), H(l(Wt), {
802
802
  message: a.value,
803
803
  classes: r.value
804
804
  }, null, 8, ["message", "classes"]));
805
805
  }
806
- }), fe = /* @__PURE__ */ te({
806
+ }), fe = /* @__PURE__ */ ne({
807
807
  __name: "df-label",
808
808
  props: {
809
809
  data: {},
@@ -811,146 +811,146 @@ const ve = /* @__PURE__ */ te({
811
811
  allowWrap: { type: Boolean }
812
812
  },
813
813
  setup(t) {
814
- const n = t, e = x(() => n.data ? n.data.label : n.label.text);
814
+ const n = t, e = C(() => n.data ? n.data.label : n.label.text);
815
815
  return (a, r) => {
816
- const u = R("v-img");
817
- return V(), Z("div", {
816
+ const c = P("v-img");
817
+ return T(), Q("div", {
818
818
  class: ue(["df-label", { "allow-wrap": t.allowWrap }])
819
819
  }, [
820
- t.label.icon ? (V(), Z(Se, { key: 0 }, [
821
- t.label.iconComponent === "v-icon" ? (V(), F(l(B), {
820
+ t.label.icon ? (T(), Q(Se, { key: 0 }, [
821
+ t.label.iconComponent === "v-icon" ? (T(), H(l(j), {
822
822
  key: 0,
823
823
  name: t.label.icon,
824
824
  size: "1.25em"
825
- }, null, 8, ["name"])) : t.label.iconComponent === "v-img" ? (V(), F(u, {
825
+ }, null, 8, ["name"])) : t.label.iconComponent === "v-img" ? (T(), H(c, {
826
826
  key: 1,
827
827
  class: "icon",
828
828
  src: t.label.icon
829
- }, null, 8, ["src"])) : (V(), F(Ue(t.label.iconComponent), {
829
+ }, null, 8, ["src"])) : (T(), H(Ue(t.label.iconComponent), {
830
830
  key: 2,
831
831
  src: t.label.icon
832
832
  }, null, 8, ["src"]))
833
833
  ], 64)) : Y("", !0),
834
- e.value instanceof l(qt) ? (V(), F(l(Gt), {
834
+ e.value instanceof l(qt) ? (T(), H(l(Gt), {
835
835
  key: 1,
836
836
  class: "markdown",
837
837
  source: e.value.toString(),
838
838
  options: e.value.options,
839
839
  plugins: e.value.plugins
840
- }, null, 8, ["source", "options", "plugins"])) : (V(), Z(Se, { key: 2 }, [
840
+ }, null, 8, ["source", "options", "plugins"])) : (T(), Q(Se, { key: 2 }, [
841
841
  J(G(e.value), 1)
842
842
  ], 64))
843
843
  ], 2);
844
844
  };
845
845
  }
846
- }), Je = /* @__PURE__ */ Symbol("vuetifyInputsSettingsKey");
846
+ }), Qe = /* @__PURE__ */ Symbol("vuetifyInputsSettingsKey");
847
847
  class Vl {
848
848
  constructor(n, e, a = "v-icon") {
849
- xe(this, "text");
850
- xe(this, "icon");
851
- xe(this, "iconComponent");
849
+ Ae(this, "text");
850
+ Ae(this, "icon");
851
+ Ae(this, "iconComponent");
852
852
  this.text = n, this.icon = e, this.iconComponent = a;
853
853
  }
854
854
  }
855
855
  const be = { enabled: void 0, clearable: !0 };
856
856
  function ce(t, n) {
857
- const e = Pe(Je, {}), a = Pe("field-density", null), r = Pe("field-variant", null), u = M(null), d = Ft(null), h = x({
857
+ const e = Ee(Qe, {}), a = Ee("field-density", null), r = Ee("field-variant", null), c = R(null), d = zt(null), h = C({
858
858
  get() {
859
- return d.value ? d.value.value : t.control ? t.control.value : t.modelValue === void 0 ? u.value : t.modelValue;
859
+ return d.value ? d.value.value : t.control ? t.control.value : t.modelValue === void 0 ? c.value : t.modelValue;
860
860
  },
861
861
  set(m) {
862
862
  try {
863
863
  t.control && (t.control.value = m);
864
864
  } finally {
865
- t.control && !Object.is(tt(t.control.value), tt(m)) && (d.value = { value: m }, Ke(() => {
865
+ t.control && !Object.is(tt(t.control.value), tt(m)) && (d.value = { value: m }, Xe(() => {
866
866
  d.value = null;
867
867
  }));
868
868
  }
869
- t.modelValue === void 0 && (u.value = m), n("update:modelValue", t.control ? t.control.value : m);
869
+ t.modelValue === void 0 && (c.value = m), n("update:modelValue", t.control ? t.control.value : m);
870
870
  }
871
871
  });
872
- if (t.control && !(t.control instanceof Ae.FieldBase))
872
+ if (t.control && !(t.control instanceof _e.FieldBase))
873
873
  throw new Error("control prop is not a vue-form control instance");
874
- const k = x({
874
+ const k = C({
875
875
  get() {
876
876
  return t.control.touched;
877
877
  },
878
878
  set(m) {
879
879
  t.control.touched = m;
880
880
  }
881
- }), f = t.control ? k : M(!1), v = x(() => t.control ? t.control.valid : !0), g = x(
881
+ }), f = t.control ? k : R(!1), v = C(() => t.control ? t.control.valid : !0), b = C(
882
882
  () => t.control ? t.control.errors : (t.errors || []).map((m) => new ut(m))
883
- ), T = x(() => f.value && g.value.length > 0 ? " " : void 0), $ = x(() => f.value ? g.value : void 0), C = x(() => t.control ? t.control.effectiveEnabled : t.enabled !== !1), j = x(() => t.control ? t.control.visibility : t.visibility == null ? Ae.DisplayMode.FULL : Ae.DisplayMode.fromAny(t.visibility)), P = x(() => j.value !== Ae.DisplayMode.SUPPRESS), D = x(() => ({
884
- "d-none": j.value === Ae.DisplayMode.HIDDEN,
885
- invisible: j.value === Ae.DisplayMode.INVISIBLE
886
- })), b = x(() => {
887
- var m, _;
888
- return (_ = (m = t.control) == null ? void 0 : m.extra) != null ? _ : {};
889
- }), S = x(() => {
890
- var _;
891
- const m = (_ = t.label) != null ? _ : b.value.label;
892
- return he(m || "") ? new Vl(m || "") : m;
893
- }), H = x(() => {
894
- var m, _;
895
- return (_ = (m = t.placeholder) != null ? m : b.value.placeholder) != null ? _ : "";
896
- }), K = x(() => {
897
- var m, _;
898
- return (_ = (m = t.helpText) != null ? m : b.value.helpText) != null ? _ : "";
899
- }), W = x(() => {
900
- var m, _;
901
- return (_ = (m = t.hint) != null ? m : b.value.hint) != null ? _ : "";
902
- }), L = x(() => {
903
- var m, _;
904
- return (_ = (m = t.cssClass) != null ? m : b.value.cssClass) != null ? _ : "";
905
- }), w = x(
883
+ ), _ = C(() => f.value && b.value.length > 0 ? " " : void 0), B = C(() => f.value ? b.value : void 0), x = C(() => t.control ? t.control.effectiveEnabled : t.enabled !== !1), V = C(() => t.control ? t.control.visibility : t.visibility == null ? _e.DisplayMode.FULL : _e.DisplayMode.fromAny(t.visibility)), E = C(() => V.value !== _e.DisplayMode.SUPPRESS), L = C(() => ({
884
+ "d-none": V.value === _e.DisplayMode.HIDDEN,
885
+ invisible: V.value === _e.DisplayMode.INVISIBLE
886
+ })), g = C(() => {
887
+ var m, A;
888
+ return (A = (m = t.control) == null ? void 0 : m.extra) != null ? A : {};
889
+ }), $ = C(() => {
890
+ var A;
891
+ const m = (A = t.label) != null ? A : g.value.label;
892
+ return ge(m || "") ? new Vl(m || "") : m;
893
+ }), W = C(() => {
894
+ var m, A;
895
+ return (A = (m = t.placeholder) != null ? m : g.value.placeholder) != null ? A : "";
896
+ }), q = C(() => {
897
+ var m, A;
898
+ return (A = (m = t.helpText) != null ? m : g.value.helpText) != null ? A : "";
899
+ }), Z = C(() => {
900
+ var m, A;
901
+ return (A = (m = t.hint) != null ? m : g.value.hint) != null ? A : "";
902
+ }), M = C(() => {
903
+ var m, A;
904
+ return (A = (m = t.cssClass) != null ? m : g.value.cssClass) != null ? A : "";
905
+ }), w = C(
906
906
  () => {
907
- var m, _, N, O;
908
- return (O = (N = (_ = (m = t.density) != null ? m : b.value.density) != null ? _ : a) != null ? N : e.defaultDensity) != null ? O : "default";
907
+ var m, A, S, N;
908
+ return (N = (S = (A = (m = t.density) != null ? m : g.value.density) != null ? A : a) != null ? S : e.defaultDensity) != null ? N : "default";
909
909
  }
910
- ), o = x(() => w.value === "inline" ? "default" : w.value), c = x(
910
+ ), o = C(() => w.value === "inline" ? "default" : w.value), u = C(
911
911
  () => {
912
- var m, _, N, O;
913
- return (O = (N = (_ = (m = t.variant) != null ? m : b.value.variant) != null ? _ : r) != null ? N : e.defaultVariant) != null ? O : "underlined";
912
+ var m, A, S, N;
913
+ return (N = (S = (A = (m = t.variant) != null ? m : g.value.variant) != null ? A : r) != null ? S : e.defaultVariant) != null ? N : "underlined";
914
914
  }
915
915
  );
916
916
  return {
917
917
  value: h,
918
918
  valid: v,
919
- enabled: C,
920
- errors: g,
921
- showErrors: $,
922
- visibility: j,
923
- isRendered: P,
924
- visibilityClass: D,
925
- label: S,
919
+ enabled: x,
920
+ errors: b,
921
+ showErrors: B,
922
+ visibility: V,
923
+ isRendered: E,
924
+ visibilityClass: L,
925
+ label: $,
926
926
  touched: f,
927
927
  density: w,
928
- densityClass: x(() => `df-density-${w.value}`),
929
- vuetifyBindings: x(() => {
928
+ densityClass: C(() => `df-density-${w.value}`),
929
+ vuetifyBindings: C(() => {
930
930
  var m;
931
931
  return z({
932
932
  name: (m = t.control) == null ? void 0 : m.fieldName,
933
- class: L.value,
933
+ class: M.value,
934
934
  density: o.value,
935
- variant: c.value,
936
- label: S.value.text,
937
- errorMessages: T.value,
935
+ variant: u.value,
936
+ label: $.value.text,
937
+ errorMessages: _.value,
938
938
  // 'error-count': errors?.value.length || 0,
939
- readonly: !C.value,
940
- disabled: !C.value,
941
- placeholder: H.value,
942
- "persistent-placeholder": !Me(H.value),
943
- hint: W.value,
939
+ readonly: !x.value,
940
+ disabled: !x.value,
941
+ placeholder: W.value,
942
+ "persistent-placeholder": !Me(W.value),
943
+ hint: Z.value,
944
944
  persistentHint: !0,
945
945
  // we want persistent hint always
946
946
  hideDetails: "auto",
947
947
  // we want to hide the hint element when hint isn't there
948
- helpText: K.value
948
+ helpText: q.value
949
949
  }, t.passthroughAttrs || {});
950
950
  })
951
951
  };
952
952
  }
953
- const jl = { class: "d-flex w-100 df-style-resetting df-sub-field" }, He = /* @__PURE__ */ te({
953
+ const jl = { class: "d-flex w-100 df-style-resetting df-sub-field" }, We = /* @__PURE__ */ ne({
954
954
  __name: "input-base",
955
955
  props: {
956
956
  control: {},
@@ -971,13 +971,13 @@ const jl = { class: "d-flex w-100 df-style-resetting df-sub-field" }, He = /* @_
971
971
  },
972
972
  emits: ["update:modelValue", "click:clear", "blur"],
973
973
  setup(t, { emit: n }) {
974
- const e = t, a = n, { isRendered: r, label: u, showErrors: d, touched: h, value: k, visibilityClass: f, vuetifyBindings: v } = ce(e, a), g = x(() => !!(l(e.clearable) && l(k))), T = M(!1);
975
- function $(C) {
976
- T.value = C, C || (h.value = !0, a("blur"));
974
+ const e = t, a = n, { isRendered: r, label: c, showErrors: d, touched: h, value: k, visibilityClass: f, vuetifyBindings: v } = ce(e, a), b = C(() => !!(l(e.clearable) && l(k))), _ = R(!1);
975
+ function B(x) {
976
+ _.value = x, x || (h.value = !0, a("blur"));
977
977
  }
978
- return (C, j) => {
979
- const P = R("v-field"), D = R("v-input");
980
- return l(r) ? (V(), F(D, {
978
+ return (x, V) => {
979
+ const E = P("v-field"), L = P("v-input");
980
+ return l(r) ? (T(), H(L, {
981
981
  key: 0,
982
982
  name: l(v).name,
983
983
  density: l(v).density,
@@ -986,47 +986,47 @@ const jl = { class: "d-flex w-100 df-style-resetting df-sub-field" }, He = /* @_
986
986
  "hide-details": l(v).hideDetails,
987
987
  "error-messages": l(v).errorMessages,
988
988
  class: ue([t.cssClass, l(f)])
989
- }, Ge({
990
- message: s(({ message: b }) => [
989
+ }, ze({
990
+ message: s(({ message: g }) => [
991
991
  i(ve, {
992
- message: b,
992
+ message: g,
993
993
  errors: l(d)
994
994
  }, null, 8, ["message", "errors"])
995
995
  ]),
996
996
  default: s(() => [
997
- i(P, {
997
+ i(E, {
998
998
  variant: l(v).variant,
999
999
  density: l(v).density,
1000
1000
  label: l(v).label,
1001
1001
  disabled: l(v).disabled,
1002
- clearable: g.value,
1002
+ clearable: b.value,
1003
1003
  "persistent-clear": !0,
1004
1004
  dirty: !!l(k) || !!l(v).placeholder,
1005
- active: T.value,
1005
+ active: _.value,
1006
1006
  loading: t.loading,
1007
- "onClick:clear": j[0] || (j[0] = (b) => a("click:clear")),
1008
- "onUpdate:focused": j[1] || (j[1] = (b) => $(b))
1009
- }, Ge({
1010
- label: s((b) => [
1007
+ "onClick:clear": V[0] || (V[0] = (g) => a("click:clear")),
1008
+ "onUpdate:focused": V[1] || (V[1] = (g) => B(g))
1009
+ }, ze({
1010
+ label: s((g) => [
1011
1011
  i(fe, {
1012
- data: b,
1013
- label: l(u)
1012
+ data: g,
1013
+ label: l(c)
1014
1014
  }, null, 8, ["data", "label"])
1015
1015
  ]),
1016
- default: s((b) => [
1017
- oe("div", jl, [
1018
- _e(C.$slots, "default", ye(ke(b)))
1016
+ default: s((g) => [
1017
+ ae("div", jl, [
1018
+ Te(x.$slots, "default", we(Ce(g)))
1019
1019
  ])
1020
1020
  ]),
1021
- loader: s((b) => [
1022
- _e(C.$slots, "loader", ye(ke(b)))
1021
+ loader: s((g) => [
1022
+ Te(x.$slots, "loader", we(Ce(g)))
1023
1023
  ]),
1024
1024
  _: 2
1025
1025
  }, [
1026
- C.$slots["prepend-inner"] ? {
1026
+ x.$slots["prepend-inner"] ? {
1027
1027
  name: "prepend-inner",
1028
- fn: s((b) => [
1029
- _e(C.$slots, "prepend-inner", ye(ke(b)))
1028
+ fn: s((g) => [
1029
+ Te(x.$slots, "prepend-inner", we(Ce(g)))
1030
1030
  ]),
1031
1031
  key: "0"
1032
1032
  } : void 0
@@ -1034,17 +1034,17 @@ const jl = { class: "d-flex w-100 df-style-resetting df-sub-field" }, He = /* @_
1034
1034
  ]),
1035
1035
  _: 2
1036
1036
  }, [
1037
- C.$slots.prepend ? {
1037
+ x.$slots.prepend ? {
1038
1038
  name: "prepend",
1039
- fn: s((b) => [
1040
- _e(C.$slots, "prepend", ye(ke(b)))
1039
+ fn: s((g) => [
1040
+ Te(x.$slots, "prepend", we(Ce(g)))
1041
1041
  ]),
1042
1042
  key: "0"
1043
1043
  } : void 0
1044
1044
  ]), 1032, ["name", "density", "hint", "persistent-hint", "hide-details", "error-messages", "class"])) : Y("", !0);
1045
1045
  };
1046
1046
  }
1047
- }), we = {
1047
+ }), ye = {
1048
1048
  Yes: "Yes",
1049
1049
  No: "No",
1050
1050
  Close: "Close",
@@ -1090,6 +1090,8 @@ const jl = { class: "d-flex w-100 df-style-resetting df-sub-field" }, He = /* @_
1090
1090
  ImageInsert: "Insert",
1091
1091
  ImageDropHint: "Drop image here or click to browse",
1092
1092
  ImageReplace: "Replace image",
1093
+ ImageDownload: "Download image",
1094
+ FileDownload: "Download file",
1093
1095
  Table: "Table",
1094
1096
  TableInsert: "Insert table",
1095
1097
  TableAddRowAbove: "Add row above",
@@ -1105,10 +1107,10 @@ const jl = { class: "d-flex w-100 df-style-resetting df-sub-field" }, He = /* @_
1105
1107
  MediaEmbedUrl: "Video URL",
1106
1108
  MediaEmbedInsert: "Insert"
1107
1109
  };
1108
- function io(t) {
1109
- Object.keys(we).forEach((n) => {
1110
+ function so(t) {
1111
+ Object.keys(ye).forEach((n) => {
1110
1112
  const e = t(n);
1111
- e != null && (we[n] = e);
1113
+ e != null && (ye[n] = e);
1112
1114
  });
1113
1115
  }
1114
1116
  var se = /* @__PURE__ */ ((t) => (t[t.BUTTON = 0] = "BUTTON", t[t.TEXT = 1] = "TEXT", t))(se || {});
@@ -1119,13 +1121,13 @@ const ot = 0;
1119
1121
  }
1120
1122
  t.fromString = n;
1121
1123
  function e(r) {
1122
- const u = typeof r == "number" ? r : t.fromString(r);
1123
- return Object.values(t).includes(u) ? u : ot;
1124
+ const c = typeof r == "number" ? r : t.fromString(r);
1125
+ return Object.values(t).includes(c) ? c : ot;
1124
1126
  }
1125
1127
  t.fromAny = e;
1126
1128
  function a(r) {
1127
- const u = typeof r == "number" ? r : t.fromString(r);
1128
- return Object.values(t).includes(u);
1129
+ const c = typeof r == "number" ? r : t.fromString(r);
1130
+ return Object.values(t).includes(c);
1129
1131
  }
1130
1132
  t.isDefined = a;
1131
1133
  })(se || (se = {}));
@@ -1133,7 +1135,7 @@ Object.freeze(se);
1133
1135
  const it = ["xs", "sm", "md", "lg", "xl"];
1134
1136
  class Bl {
1135
1137
  constructor(n) {
1136
- xe(this, "_value");
1138
+ Ae(this, "_value");
1137
1139
  this._value = this.cleanBreakpoint(n, !0), n && it.forEach((e) => {
1138
1140
  const a = this.cleanBreakpoint(n[e]);
1139
1141
  a && (this._value[e] = a);
@@ -1142,49 +1144,49 @@ class Bl {
1142
1144
  getOptionsForBreakpoint(n) {
1143
1145
  var a, r;
1144
1146
  const e = (a = this.cleanBreakpoint(this._value)) != null ? a : {};
1145
- for (const u of it) {
1146
- const d = (r = this._value[u]) != null ? r : {};
1147
+ for (const c of it) {
1148
+ const d = (r = this._value[c]) != null ? r : {};
1147
1149
  for (const h of Object.keys(d)) {
1148
1150
  const k = d[h];
1149
1151
  k != null && (ct(k) ? e[h] = z(z({}, e[h]), k) : e[h] = k);
1150
1152
  }
1151
- if (u === n) break;
1153
+ if (c === n) break;
1152
1154
  }
1153
1155
  return e;
1154
1156
  }
1155
1157
  }
1156
- function Ll(t) {
1158
+ function Dl(t) {
1157
1159
  return t.xlAndUp.value ? "xl" : t.lgAndUp.value ? "lg" : t.mdAndUp.value ? "md" : t.smAndUp.value ? "sm" : "xs";
1158
1160
  }
1159
1161
  function Il() {
1160
1162
  const t = Zt();
1161
- return x(() => Ll(t));
1163
+ return C(() => Dl(t));
1162
1164
  }
1163
- class $l extends Bl {
1165
+ class Ll extends Bl {
1164
1166
  cleanBreakpoint(n, e = !1) {
1165
1167
  if ((!n || !Xt(n)) && !e) return null;
1166
1168
  const a = {};
1167
- return e && (a.renderAs = se.BUTTON, a.showLabel = !0, a.showIcon = !0), n && (n.renderAs != null && (a.renderAs = se.fromAny(n.renderAs)), he(n.label) && (a.label = n.label), he(n.icon) && (a.icon = n.icon), Re(n.showLabel) && (a.showLabel = n.showLabel), Re(n.showIcon) && (a.showIcon = n.showIcon), he(n.name) && (a.name = n.name), Re(n.defaultConfirm) && (a.defaultConfirm = n.defaultConfirm), Re(n.defaultReject) && (a.defaultReject = n.defaultReject), ct(n.passthroughAttrs) && (a.passthroughAttrs = z({}, n.passthroughAttrs))), Object.keys(a).length ? a : null;
1169
+ return e && (a.renderAs = se.BUTTON, a.showLabel = !0, a.showIcon = !0), n && (n.renderAs != null && (a.renderAs = se.fromAny(n.renderAs)), ge(n.label) && (a.label = n.label), ge(n.icon) && (a.icon = n.icon), Pe(n.showLabel) && (a.showLabel = n.showLabel), Pe(n.showIcon) && (a.showIcon = n.showIcon), ge(n.name) && (a.name = n.name), Pe(n.defaultConfirm) && (a.defaultConfirm = n.defaultConfirm), Pe(n.defaultReject) && (a.defaultReject = n.defaultReject), ct(n.passthroughAttrs) && (a.passthroughAttrs = z({}, n.passthroughAttrs))), Object.keys(a).length ? a : null;
1168
1170
  }
1169
1171
  }
1170
1172
  function ft(t, n) {
1171
- const a = new $l(t).getOptionsForBreakpoint(n);
1173
+ const a = new Ll(t).getOptionsForBreakpoint(n);
1172
1174
  return {
1173
1175
  name: a.name,
1174
1176
  label: a.showLabel ? a.label : void 0,
1175
1177
  icon: a.showIcon ? a.icon : void 0,
1176
1178
  renderAs: a.renderAs,
1177
- showLabel: he(a.label) && !Me(a.label) ? a.showLabel : !1,
1178
- showIcon: he(a.icon) && !Me(a.icon) ? a.showIcon : !1,
1179
+ showLabel: ge(a.label) && !Me(a.label) ? a.showLabel : !1,
1180
+ showIcon: ge(a.icon) && !Me(a.icon) ? a.showIcon : !1,
1179
1181
  defaultConfirm: a.defaultConfirm,
1180
1182
  defaultReject: a.defaultReject,
1181
1183
  passthroughAttrs: a.passthroughAttrs
1182
1184
  };
1183
1185
  }
1184
- class Ne extends Kt {
1186
+ class Fe extends Kt {
1185
1187
  /** @see getRenderOptionsForBreakpoint, which answers the same for the value of any `Action` */
1186
1188
  getBreakpointValue(n) {
1187
- return x(() => ft(this.value, n.value));
1189
+ return C(() => ft(this.value, n.value));
1188
1190
  }
1189
1191
  /** @see ActionRenderOptions.name */
1190
1192
  get name() {
@@ -1199,7 +1201,7 @@ class Ne extends Kt {
1199
1201
  }
1200
1202
  /** @see ActionRenderOptions.showLabel */
1201
1203
  get showLabel() {
1202
- return he(this.value.label) && !Me(this.value.label) ? this.value.showLabel : !1;
1204
+ return ge(this.value.label) && !Me(this.value.label) ? this.value.showLabel : !1;
1203
1205
  }
1204
1206
  /**
1205
1207
  * The icon as this action renders it: the name where {@link ActionRenderOptions.showIcon} states it is shown,
@@ -1210,7 +1212,7 @@ class Ne extends Kt {
1210
1212
  }
1211
1213
  /** @see ActionRenderOptions.showIcon */
1212
1214
  get showIcon() {
1213
- return he(this.value.icon) && !Me(this.value.icon) ? this.value.showIcon : !1;
1215
+ return ge(this.value.icon) && !Me(this.value.icon) ? this.value.showIcon : !1;
1214
1216
  }
1215
1217
  /** @see ActionRenderOptions.renderAs */
1216
1218
  get renderAs() {
@@ -1230,74 +1232,74 @@ class Ne extends Kt {
1230
1232
  }
1231
1233
  static closeAction(n) {
1232
1234
  var a;
1233
- const e = ee(z({}, n != null ? n : {}), {
1235
+ const e = te(z({}, n != null ? n : {}), {
1234
1236
  // any properties in data should overwrite properties in the constant
1235
1237
  value: {
1236
1238
  name: "close",
1237
- label: we.Close,
1239
+ label: ye.Close,
1238
1240
  icon: "ion-close-outline",
1239
1241
  renderAs: se.BUTTON,
1240
1242
  showLabel: !0,
1241
1243
  showIcon: !0
1242
1244
  }
1243
1245
  });
1244
- return e.value = z(z({}, e.value), (a = n == null ? void 0 : n.value) != null ? a : {}), new Ne(e);
1246
+ return e.value = z(z({}, e.value), (a = n == null ? void 0 : n.value) != null ? a : {}), new Fe(e);
1245
1247
  }
1246
1248
  static yesAction(n) {
1247
1249
  var a;
1248
- const e = ee(z({}, n != null ? n : {}), {
1250
+ const e = te(z({}, n != null ? n : {}), {
1249
1251
  // any properties in data should overwrite properties in the constant
1250
1252
  value: {
1251
1253
  name: "yes",
1252
- label: we.Yes,
1254
+ label: ye.Yes,
1253
1255
  icon: "ion-thumbs-up-outline",
1254
1256
  renderAs: se.BUTTON,
1255
1257
  showLabel: !0,
1256
1258
  showIcon: !0
1257
1259
  }
1258
1260
  });
1259
- return e.value = z(z({}, e.value), (a = n == null ? void 0 : n.value) != null ? a : {}), new Ne(e);
1261
+ return e.value = z(z({}, e.value), (a = n == null ? void 0 : n.value) != null ? a : {}), new Fe(e);
1260
1262
  }
1261
1263
  static noAction(n) {
1262
1264
  var a;
1263
- const e = ee(z({}, n != null ? n : {}), {
1265
+ const e = te(z({}, n != null ? n : {}), {
1264
1266
  // any properties in data should overwrite properties in the constant
1265
1267
  value: {
1266
1268
  name: "no",
1267
- label: we.No,
1269
+ label: ye.No,
1268
1270
  icon: "ion-thumbs-down-outline",
1269
1271
  renderAs: se.BUTTON,
1270
1272
  showLabel: !0,
1271
1273
  showIcon: !0
1272
1274
  }
1273
1275
  });
1274
- return e.value = z(z({}, e.value), (a = n == null ? void 0 : n.value) != null ? a : {}), new Ne(e);
1276
+ return e.value = z(z({}, e.value), (a = n == null ? void 0 : n.value) != null ? a : {}), new Fe(e);
1275
1277
  }
1276
1278
  }
1277
1279
  function pt(t, n, e, a) {
1278
- const r = Pe(Je, {}), u = M(null);
1280
+ const r = Ee(Qe, {}), c = R(null);
1279
1281
  function d() {
1280
- u.value && window.clearInterval(u.value);
1282
+ c.value && window.clearInterval(c.value);
1281
1283
  }
1282
1284
  function h() {
1283
1285
  var f, v;
1284
1286
  d();
1285
1287
  const k = (v = (f = e()) != null ? f : r.defaultTouchInterval) != null ? v : 6e4;
1286
- u.value = window.setInterval(() => {
1287
- t.value && n().touch(t.value).catch((g) => {
1288
- g instanceof _l && a(g.errorText);
1288
+ c.value = window.setInterval(() => {
1289
+ t.value && n().touch(t.value).catch((b) => {
1290
+ b instanceof Tl && a(b.errorText);
1289
1291
  });
1290
1292
  }, k);
1291
1293
  }
1292
- return Ye(() => d()), me(t, (k) => k ? h() : d()), { setupTouchInterval: h, clearTouchInterval: d };
1294
+ return Je(() => d()), me(t, (k) => k ? h() : d()), { setupTouchInterval: h, clearTouchInterval: d };
1293
1295
  }
1294
1296
  function bt(t, n) {
1295
1297
  t && (t.errors = [new ut(n)]);
1296
1298
  }
1297
- const Dl = {
1299
+ const $l = {
1298
1300
  key: 1,
1299
1301
  style: { width: "0.5rem" }
1300
- }, Sl = { key: 2 }, ht = /* @__PURE__ */ te({
1302
+ }, Sl = { key: 2 }, ht = /* @__PURE__ */ ne({
1301
1303
  __name: "df-actions",
1302
1304
  props: {
1303
1305
  actions: {},
@@ -1305,53 +1307,53 @@ const Dl = {
1305
1307
  showAsGroup: { default: "no" }
1306
1308
  },
1307
1309
  setup(t) {
1308
- const n = t, e = Il(), a = x(() => l(n.actions).filter((d) => d.visibility !== We.SUPPRESS)), r = x(
1310
+ const n = t, e = Il(), a = C(() => l(n.actions).filter((d) => d.visibility !== Ke.SUPPRESS)), r = C(
1309
1311
  () => a.value.map((d) => z({
1310
1312
  action: d
1311
1313
  }, ft(d.value, e.value)))
1312
1314
  );
1313
- function u(d) {
1315
+ function c(d) {
1314
1316
  if (d.defaultConfirm) return "primary";
1315
1317
  if (d.defaultReject) return "secondary";
1316
1318
  }
1317
1319
  return (d, h) => {
1318
- const k = R("v-btn");
1319
- return a.value.length > 0 ? (V(), Z("div", {
1320
+ const k = P("v-btn");
1321
+ return a.value.length > 0 ? (T(), Q("div", {
1320
1322
  key: 0,
1321
1323
  class: ue(["text-end df-actions", {
1322
1324
  "button-group": t.showAsGroup === "grouped" || t.showAsGroup === "grouped-no-borders",
1323
1325
  "with-border": t.showAsGroup === "grouped"
1324
1326
  }])
1325
1327
  }, [
1326
- (V(!0), Z(Se, null, Xe(r.value, (f, v) => (V(), F(k, X({
1328
+ (T(!0), Q(Se, null, Ye(r.value, (f, v) => (T(), H(k, X({
1327
1329
  key: v,
1328
1330
  variant: f.renderAs === l(se).BUTTON ? "tonal" : "text",
1329
- color: u(f),
1331
+ color: c(f),
1330
1332
  disabled: !f.action.effectiveEnabled || f.action.busy,
1331
1333
  loading: f.action.busy,
1332
1334
  elevation: 0,
1333
1335
  size: t.buttonSize,
1334
1336
  class: {
1335
- "d-none": f.action.visibility === l(We).HIDDEN,
1336
- invisible: f.action.visibility === l(We).INVISIBLE
1337
+ "d-none": f.action.visibility === l(Ke).HIDDEN,
1338
+ invisible: f.action.visibility === l(Ke).INVISIBLE
1337
1339
  }
1338
1340
  }, { ref_for: !0 }, f.passthroughAttrs, {
1339
- onClick: Te((g) => f.action.execute(g), ["stop"])
1341
+ onClick: ke((b) => f.action.execute(b), ["stop"])
1340
1342
  }), {
1341
1343
  default: s(() => [
1342
- f.icon ? (V(), F(l(B), {
1344
+ f.icon ? (T(), H(l(j), {
1343
1345
  key: 0,
1344
1346
  name: f.icon
1345
1347
  }, null, 8, ["name"])) : Y("", !0),
1346
- f.icon && f.label ? (V(), Z("span", Dl)) : Y("", !0),
1347
- f.label ? (V(), Z("span", Sl, G(f.label), 1)) : Y("", !0)
1348
+ f.icon && f.label ? (T(), Q("span", $l)) : Y("", !0),
1349
+ f.label ? (T(), Q("span", Sl, G(f.label), 1)) : Y("", !0)
1348
1350
  ]),
1349
1351
  _: 2
1350
1352
  }, 1040, ["variant", "color", "disabled", "loading", "size", "class", "onClick"]))), 128))
1351
1353
  ], 2)) : Y("", !0);
1352
1354
  };
1353
1355
  }
1354
- }), gt = /* @__PURE__ */ te({
1356
+ }), gt = /* @__PURE__ */ ne({
1355
1357
  __name: "df-checkbox",
1356
1358
  props: /* @__PURE__ */ pe({
1357
1359
  allowNull: { type: Boolean },
@@ -1369,48 +1371,48 @@ const Dl = {
1369
1371
  passthroughAttrs: {},
1370
1372
  density: {},
1371
1373
  variant: {}
1372
- }, ee(z({}, be), { allowNull: !1 })),
1374
+ }, te(z({}, be), { allowNull: !1 })),
1373
1375
  emits: ["update:modelValue", "click:clear"],
1374
1376
  setup(t, { emit: n }) {
1375
- const e = t, a = n, { densityClass: r, isRendered: u, label: d, showErrors: h, touched: k, value: f, visibilityClass: v, vuetifyBindings: g } = ce(
1377
+ const e = t, a = n, { densityClass: r, isRendered: c, label: d, showErrors: h, touched: k, value: f, visibilityClass: v, vuetifyBindings: b } = ce(
1376
1378
  e,
1377
1379
  a
1378
- ), T = x(() => e.allowNull && f.value == null), $ = x({
1380
+ ), _ = C(() => e.allowNull && f.value == null), B = C({
1379
1381
  get() {
1380
1382
  return f.value;
1381
1383
  },
1382
1384
  set() {
1383
1385
  }
1384
1386
  });
1385
- function C() {
1386
- const j = Yt(f.value);
1387
- j === !0 ? f.value = e.allowNull ? null : !1 : f.value = j === !1;
1387
+ function x() {
1388
+ const V = Yt(f.value);
1389
+ V === !0 ? f.value = e.allowNull ? null : !1 : f.value = V === !1;
1388
1390
  }
1389
- return (j, P) => {
1390
- const D = R("v-checkbox");
1391
- return l(u) ? (V(), F(D, X({
1391
+ return (V, E) => {
1392
+ const L = P("v-checkbox");
1393
+ return l(c) ? (T(), H(L, X({
1392
1394
  key: 0,
1393
- modelValue: $.value,
1394
- "onUpdate:modelValue": P[0] || (P[0] = (b) => $.value = b),
1395
+ modelValue: B.value,
1396
+ "onUpdate:modelValue": E[0] || (E[0] = (g) => B.value = g),
1395
1397
  density: "compact",
1396
1398
  class: [l(r), l(v)],
1397
- indeterminate: T.value,
1399
+ indeterminate: _.value,
1398
1400
  "false-value": !1,
1399
1401
  "true-value": !0
1400
- }, l(g), {
1401
- onChange: C,
1402
- onBlur: P[1] || (P[1] = (b) => k.value = !0)
1402
+ }, l(b), {
1403
+ onChange: x,
1404
+ onBlur: E[1] || (E[1] = (g) => k.value = !0)
1403
1405
  }), {
1404
- label: s((b) => [
1406
+ label: s((g) => [
1405
1407
  i(l(fe), {
1406
1408
  "allow-wrap": !0,
1407
- data: b,
1409
+ data: g,
1408
1410
  label: l(d)
1409
1411
  }, null, 8, ["data", "label"])
1410
1412
  ]),
1411
- message: s(({ message: b }) => [
1413
+ message: s(({ message: g }) => [
1412
1414
  i(l(ve), {
1413
- message: b,
1415
+ message: g,
1414
1416
  errors: l(h)
1415
1417
  }, null, 8, ["message", "errors"])
1416
1418
  ]),
@@ -1418,7 +1420,7 @@ const Dl = {
1418
1420
  }, 16, ["modelValue", "class", "indeterminate"])) : Y("", !0);
1419
1421
  };
1420
1422
  }
1421
- }), yt = /* @__PURE__ */ te({
1423
+ }), yt = /* @__PURE__ */ ne({
1422
1424
  __name: "df-color",
1423
1425
  props: /* @__PURE__ */ pe({
1424
1426
  allowNull: { type: Boolean },
@@ -1436,56 +1438,56 @@ const Dl = {
1436
1438
  passthroughAttrs: {},
1437
1439
  density: {},
1438
1440
  variant: {}
1439
- }, ee(z({}, be), { allowNull: !1 })),
1441
+ }, te(z({}, be), { allowNull: !1 })),
1440
1442
  emits: ["update:modelValue", "click:clear"],
1441
1443
  setup(t, { emit: n }) {
1442
- const e = t, a = n, { densityClass: r, isRendered: u, label: d, showErrors: h, touched: k, value: f, visibilityClass: v, vuetifyBindings: g } = ce(
1444
+ const e = t, a = n, { densityClass: r, isRendered: c, label: d, showErrors: h, touched: k, value: f, visibilityClass: v, vuetifyBindings: b } = ce(
1443
1445
  e,
1444
1446
  a
1445
- ), T = M(!1), $ = x(() => [
1446
- (C) => e.control || !C && e.allowNull || /^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$/.test(C) ? !0 : "Not a valid hex string."
1447
+ ), _ = R(!1), B = C(() => [
1448
+ (x) => e.control || !x && e.allowNull || /^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$/.test(x) ? !0 : "Not a valid hex string."
1447
1449
  ]);
1448
- return (C, j) => {
1449
- const P = R("v-color-picker"), D = R("v-menu"), b = R("v-text-field");
1450
- return l(u) ? (V(), F(b, X({
1450
+ return (x, V) => {
1451
+ const E = P("v-color-picker"), L = P("v-menu"), g = P("v-text-field");
1452
+ return l(c) ? (T(), H(g, X({
1451
1453
  key: 0,
1452
1454
  modelValue: l(f),
1453
- "onUpdate:modelValue": j[2] || (j[2] = (S) => Ce(f) ? f.value = S : null),
1455
+ "onUpdate:modelValue": V[2] || (V[2] = ($) => xe(f) ? f.value = $ : null),
1454
1456
  class: [l(r), l(v)],
1455
1457
  clearable: t.allowNull,
1456
1458
  type: "text",
1457
- rules: $.value
1458
- }, l(g), {
1459
- onBlur: j[3] || (j[3] = (S) => k.value = !0)
1459
+ rules: B.value
1460
+ }, l(b), {
1461
+ onBlur: V[3] || (V[3] = ($) => k.value = !0)
1460
1462
  }), {
1461
- label: s((S) => [
1463
+ label: s(($) => [
1462
1464
  i(l(fe), {
1463
- data: S,
1465
+ data: $,
1464
1466
  label: l(d)
1465
1467
  }, null, 8, ["data", "label"])
1466
1468
  ]),
1467
- message: s(({ message: S }) => [
1469
+ message: s(({ message: $ }) => [
1468
1470
  i(l(ve), {
1469
- message: S,
1471
+ message: $,
1470
1472
  errors: l(h)
1471
1473
  }, null, 8, ["message", "errors"])
1472
1474
  ]),
1473
1475
  "prepend-inner": s(() => [
1474
- oe("div", {
1476
+ ae("div", {
1475
1477
  style: st([{ width: "24px", height: "24px", "border-radius": "4px", border: "1px solid #ccc" }, { backgroundColor: l(f) }])
1476
1478
  }, null, 4)
1477
1479
  ]),
1478
1480
  default: s(() => [
1479
- i(D, {
1480
- modelValue: T.value,
1481
- "onUpdate:modelValue": j[1] || (j[1] = (S) => T.value = S),
1481
+ i(L, {
1482
+ modelValue: _.value,
1483
+ "onUpdate:modelValue": V[1] || (V[1] = ($) => _.value = $),
1482
1484
  "close-on-content-click": !1,
1483
1485
  activator: "parent"
1484
1486
  }, {
1485
1487
  default: s(() => [
1486
- i(P, {
1488
+ i(E, {
1487
1489
  modelValue: l(f),
1488
- "onUpdate:modelValue": j[0] || (j[0] = (S) => Ce(f) ? f.value = S : null),
1490
+ "onUpdate:modelValue": V[0] || (V[0] = ($) => xe(f) ? f.value = $ : null),
1489
1491
  mode: "hexa"
1490
1492
  }, null, 8, ["modelValue"])
1491
1493
  ]),
@@ -1496,7 +1498,7 @@ const Dl = {
1496
1498
  }, 16, ["modelValue", "class", "clearable", "rules"])) : Y("", !0);
1497
1499
  };
1498
1500
  }
1499
- }), kt = /* @__PURE__ */ te({
1501
+ }), kt = /* @__PURE__ */ ne({
1500
1502
  __name: "df-datetime",
1501
1503
  props: /* @__PURE__ */ pe({
1502
1504
  inputType: {},
@@ -1517,105 +1519,105 @@ const Dl = {
1517
1519
  passthroughAttrs: {},
1518
1520
  density: {},
1519
1521
  variant: {}
1520
- }, ee(z({}, be), {
1522
+ }, te(z({}, be), {
1521
1523
  inputType: "datetime",
1522
1524
  displayFormatDate: "P",
1523
1525
  displayFormatTime: "p"
1524
1526
  })),
1525
1527
  emits: ["update:modelValue", "click:clear"],
1526
1528
  setup(t, { emit: n }) {
1527
- const e = t, a = n, r = x(() => {
1529
+ const e = t, a = n, r = C(() => {
1528
1530
  var w;
1529
- return (w = e.locale) != null ? w : l(Tl.dateTimeLocale);
1530
- }), u = x(() => {
1531
+ return (w = e.locale) != null ? w : l(_l.dateTimeLocale);
1532
+ }), c = C(() => {
1531
1533
  var w, o;
1532
1534
  return (o = (w = r.value.options) == null ? void 0 : w.weekStartsOn) != null ? o : 1;
1533
- }), { density: d, densityClass: h, touched: k, value: f, vuetifyBindings: v } = ce(e, a), { inputType: g, displayFormatDate: T, displayFormatTime: $ } = Fe(e), C = M(""), j = x({
1535
+ }), { density: d, densityClass: h, touched: k, value: f, vuetifyBindings: v } = ce(e, a), { inputType: b, displayFormatDate: _, displayFormatTime: B } = Oe(e), x = R(""), V = C({
1534
1536
  get() {
1535
- return l(C) === "date";
1537
+ return l(x) === "date";
1536
1538
  },
1537
1539
  set(w) {
1538
- C.value = w ? "date" : "";
1540
+ x.value = w ? "date" : "";
1539
1541
  }
1540
- }), P = x({
1542
+ }), E = C({
1541
1543
  get() {
1542
- return l(C) === "time";
1544
+ return l(x) === "time";
1543
1545
  },
1544
1546
  set(w) {
1545
- C.value = w ? "time" : "";
1547
+ x.value = w ? "time" : "";
1546
1548
  }
1547
- }), D = (w) => `${je(w, "yyyy-MM-dd")}T${je(w, "HH:mm")}:00`, b = M(null);
1548
- function S(w, o) {
1549
+ }), L = (w) => `${je(w, "yyyy-MM-dd")}T${je(w, "HH:mm")}:00`, g = R(null);
1550
+ function $(w, o) {
1549
1551
  if (w == null)
1550
- b.value = null;
1552
+ g.value = null;
1551
1553
  else if (o === -1)
1552
- if (l(g) === "time")
1553
- b.value = D(/* @__PURE__ */ new Date()), S(`T${w}`, 1);
1554
+ if (l(b) === "time")
1555
+ g.value = L(/* @__PURE__ */ new Date()), $(`T${w}`, 1);
1554
1556
  else {
1555
- const c = D(new Date(w));
1556
- S(c, 0), S(c, 1);
1557
+ const u = L(new Date(w));
1558
+ $(u, 0), $(u, 1);
1557
1559
  }
1558
1560
  else {
1559
- b.value == null && (b.value = D(/* @__PURE__ */ new Date()));
1560
- const c = b.value.split(/[TZ]/g), m = w.split(/[TZ]/g);
1561
- c[o] = m[o], b.value = D(/* @__PURE__ */ new Date(`${c[0]}T${c[1].split(".")[0]}`)), l(g) === "date" ? f.value = c[0] : l(g) === "time" ? f.value = c[1] : f.value = l(b) + je(/* @__PURE__ */ new Date(), "XXX");
1561
+ g.value == null && (g.value = L(/* @__PURE__ */ new Date()));
1562
+ const u = g.value.split(/[TZ]/g), m = w.split(/[TZ]/g);
1563
+ u[o] = m[o], g.value = L(/* @__PURE__ */ new Date(`${u[0]}T${u[1].split(".")[0]}`)), l(b) === "date" ? f.value = u[0] : l(b) === "time" ? f.value = u[1] : f.value = l(g) + je(/* @__PURE__ */ new Date(), "XXX");
1562
1564
  }
1563
1565
  }
1564
- me(f, (w) => S(w, -1), { immediate: !0 });
1565
- const H = x({
1566
+ me(f, (w) => $(w, -1), { immediate: !0 });
1567
+ const W = C({
1566
1568
  get() {
1567
- const w = l(b);
1569
+ const w = l(g);
1568
1570
  if (w == null) return null;
1569
1571
  const o = new Date(w);
1570
1572
  return Number.isNaN(o.getTime()) ? null : o;
1571
1573
  },
1572
1574
  set(w) {
1573
- S(D(w), 0);
1575
+ $(L(w), 0);
1574
1576
  }
1575
- }), K = x({
1577
+ }), q = C({
1576
1578
  get() {
1577
- const w = l(b);
1579
+ const w = l(g);
1578
1580
  return w == null ? "" : w.split(/[TZ]/g)[1].split(".")[0];
1579
1581
  },
1580
1582
  set(w) {
1581
- S(`T${w}`, 1);
1583
+ $(`T${w}`, 1);
1582
1584
  }
1583
- }), W = x({
1585
+ }), Z = C({
1584
1586
  get() {
1585
- const w = l(H);
1586
- return w == null ? "" : je(w, l(T), { locale: r.value });
1587
+ const w = l(W);
1588
+ return w == null ? "" : je(w, l(_), { locale: r.value });
1587
1589
  },
1588
1590
  set(w) {
1589
1591
  try {
1590
- const o = en(w, l(T), /* @__PURE__ */ new Date(), { locale: r.value });
1591
- S(D(o), 0);
1592
+ const o = en(w, l(_), /* @__PURE__ */ new Date(), { locale: r.value });
1593
+ $(L(o), 0);
1592
1594
  } catch (o) {
1593
1595
  console.error(o);
1594
1596
  }
1595
1597
  }
1596
- }), L = x({
1598
+ }), M = C({
1597
1599
  get() {
1598
- const w = l(H);
1599
- return w == null ? "" : je(w, l($), { locale: r.value });
1600
+ const w = l(W);
1601
+ return w == null ? "" : je(w, l(B), { locale: r.value });
1600
1602
  },
1601
1603
  set(w) {
1602
1604
  const o = w.match(/(\d+):(\d+)\s?([a-zA-Z]+)?/);
1603
1605
  if (o == null) return;
1604
- let c = nt(o[1]);
1606
+ let u = nt(o[1]);
1605
1607
  const m = nt(o[2]);
1606
- lt(c) || lt(m) || (o[3] && o[3].toLowerCase() === "pm" && c < 13 && (c += 12), S(`T${c.toString().padStart(2, "0")}:${m.toString().padStart(2, "0")}:00`, 1));
1608
+ lt(u) || lt(m) || (o[3] && o[3].toLowerCase() === "pm" && u < 13 && (u += 12), $(`T${u.toString().padStart(2, "0")}:${m.toString().padStart(2, "0")}:00`, 1));
1607
1609
  }
1608
1610
  });
1609
1611
  return (w, o) => {
1610
- const c = R("v-date-picker"), m = R("v-confirm-edit"), _ = R("v-menu"), N = R("v-text-field"), O = R("v-time-picker");
1611
- return V(), F(l(He), X(e, {
1612
+ const u = P("v-date-picker"), m = P("v-confirm-edit"), A = P("v-menu"), S = P("v-text-field"), N = P("v-time-picker");
1613
+ return T(), H(l(We), X(e, {
1612
1614
  class: l(h),
1613
1615
  clearable: t.clearable,
1614
- "onClick:clear": o[14] || (o[14] = (ne) => f.value = null),
1615
- onBlur: o[15] || (o[15] = (ne) => k.value = !0)
1616
+ "onClick:clear": o[14] || (o[14] = (le) => f.value = null),
1617
+ onBlur: o[15] || (o[15] = (le) => k.value = !0)
1616
1618
  }), {
1617
- default: s((ne) => [
1618
- oe("div", {
1619
+ default: s((le) => [
1620
+ ae("div", {
1619
1621
  class: ue([
1620
1622
  "d-flex",
1621
1623
  "w-100",
@@ -1624,10 +1626,10 @@ const Dl = {
1624
1626
  l(d)
1625
1627
  ])
1626
1628
  }, [
1627
- ["date", "datetime"].includes(l(g)) ? (V(), F(N, X({
1629
+ ["date", "datetime"].includes(l(b)) ? (T(), H(S, X({
1628
1630
  key: 0,
1629
- modelValue: W.value,
1630
- "onUpdate:modelValue": o[4] || (o[4] = (A) => W.value = A),
1631
+ modelValue: Z.value,
1632
+ "onUpdate:modelValue": o[4] || (o[4] = (D) => Z.value = D),
1631
1633
  style: { "flex-grow": "4" },
1632
1634
  density: "compact",
1633
1635
  variant: "plain",
@@ -1638,36 +1640,36 @@ const Dl = {
1638
1640
  name: `${l(v).name}-date`,
1639
1641
  placeholder: l(v).placeholder
1640
1642
  }, t.passthroughAttrs, {
1641
- onClick: o[5] || (o[5] = (A) => C.value = "date"),
1642
- onKeydown: o[6] || (o[6] = De((A) => C.value = "date", ["space"])),
1643
- onFocus: (A) => ne.focus(),
1644
- onBlur: (A) => ne.blur()
1643
+ onClick: o[5] || (o[5] = (D) => x.value = "date"),
1644
+ onKeydown: o[6] || (o[6] = $e((D) => x.value = "date", ["space"])),
1645
+ onFocus: (D) => le.focus(),
1646
+ onBlur: (D) => le.blur()
1645
1647
  }), {
1646
1648
  default: s(() => [
1647
- i(_, {
1648
- modelValue: j.value,
1649
- "onUpdate:modelValue": o[3] || (o[3] = (A) => j.value = A),
1649
+ i(A, {
1650
+ modelValue: V.value,
1651
+ "onUpdate:modelValue": o[3] || (o[3] = (D) => V.value = D),
1650
1652
  "close-on-content-click": !1,
1651
1653
  activator: "parent"
1652
1654
  }, {
1653
1655
  default: s(() => [
1654
1656
  i(m, {
1655
- modelValue: H.value,
1656
- "onUpdate:modelValue": o[0] || (o[0] = (A) => H.value = A),
1657
- onCancel: o[1] || (o[1] = (A) => C.value = ""),
1658
- onSave: o[2] || (o[2] = (A) => C.value = "")
1657
+ modelValue: W.value,
1658
+ "onUpdate:modelValue": o[0] || (o[0] = (D) => W.value = D),
1659
+ onCancel: o[1] || (o[1] = (D) => x.value = ""),
1660
+ onSave: o[2] || (o[2] = (D) => x.value = "")
1659
1661
  }, {
1660
- default: s(({ model: A, actions: q }) => [
1661
- i(c, {
1662
- modelValue: A.value,
1663
- "onUpdate:modelValue": (Q) => A.value = Q,
1662
+ default: s(({ model: D, actions: O }) => [
1663
+ i(u, {
1664
+ modelValue: D.value,
1665
+ "onUpdate:modelValue": (K) => D.value = K,
1664
1666
  "hide-header": !0,
1665
- "first-day-of-week": u.value,
1667
+ "first-day-of-week": c.value,
1666
1668
  "show-adjacent-months": !0,
1667
1669
  "show-week": !0
1668
1670
  }, {
1669
1671
  actions: s(() => [
1670
- (V(), F(Ue(q)))
1672
+ (T(), H(Ue(O)))
1671
1673
  ]),
1672
1674
  _: 2
1673
1675
  }, 1032, ["modelValue", "onUpdate:modelValue", "first-day-of-week"])
@@ -1680,10 +1682,10 @@ const Dl = {
1680
1682
  ]),
1681
1683
  _: 1
1682
1684
  }, 16, ["modelValue", "readonly", "disabled", "name", "placeholder", "onFocus", "onBlur"])) : Y("", !0),
1683
- ["time", "datetime"].includes(l(g)) ? (V(), F(N, X({
1685
+ ["time", "datetime"].includes(l(b)) ? (T(), H(S, X({
1684
1686
  key: 1,
1685
- modelValue: L.value,
1686
- "onUpdate:modelValue": o[11] || (o[11] = (A) => L.value = A),
1687
+ modelValue: M.value,
1688
+ "onUpdate:modelValue": o[11] || (o[11] = (D) => M.value = D),
1687
1689
  style: { "flex-grow": "3" },
1688
1690
  density: "compact",
1689
1691
  variant: "plain",
@@ -1692,36 +1694,36 @@ const Dl = {
1692
1694
  readonly: l(v).readonly,
1693
1695
  disabled: l(v).disabled,
1694
1696
  name: `${l(v).name}-time`,
1695
- placeholder: l(g) === "time" ? l(v).placeholder : void 0
1697
+ placeholder: l(b) === "time" ? l(v).placeholder : void 0
1696
1698
  }, t.passthroughAttrs, {
1697
- onClick: o[12] || (o[12] = (A) => C.value = "time"),
1698
- onKeydown: o[13] || (o[13] = De((A) => C.value = "time", ["space"])),
1699
- onFocus: (A) => ne.focus(),
1700
- onBlur: (A) => ne.blur()
1699
+ onClick: o[12] || (o[12] = (D) => x.value = "time"),
1700
+ onKeydown: o[13] || (o[13] = $e((D) => x.value = "time", ["space"])),
1701
+ onFocus: (D) => le.focus(),
1702
+ onBlur: (D) => le.blur()
1701
1703
  }), {
1702
1704
  default: s(() => [
1703
- i(_, {
1704
- modelValue: P.value,
1705
- "onUpdate:modelValue": o[10] || (o[10] = (A) => P.value = A),
1705
+ i(A, {
1706
+ modelValue: E.value,
1707
+ "onUpdate:modelValue": o[10] || (o[10] = (D) => E.value = D),
1706
1708
  "close-on-content-click": !1,
1707
1709
  activator: "parent"
1708
1710
  }, {
1709
1711
  default: s(() => [
1710
1712
  i(m, {
1711
- modelValue: K.value,
1712
- "onUpdate:modelValue": o[7] || (o[7] = (A) => K.value = A),
1713
- onCancel: o[8] || (o[8] = (A) => C.value = ""),
1714
- onSave: o[9] || (o[9] = (A) => C.value = "")
1713
+ modelValue: q.value,
1714
+ "onUpdate:modelValue": o[7] || (o[7] = (D) => q.value = D),
1715
+ onCancel: o[8] || (o[8] = (D) => x.value = ""),
1716
+ onSave: o[9] || (o[9] = (D) => x.value = "")
1715
1717
  }, {
1716
- default: s(({ model: A, actions: q }) => [
1717
- i(O, {
1718
- modelValue: A.value,
1719
- "onUpdate:modelValue": (Q) => A.value = Q,
1718
+ default: s(({ model: D, actions: O }) => [
1719
+ i(N, {
1720
+ modelValue: D.value,
1721
+ "onUpdate:modelValue": (K) => D.value = K,
1720
1722
  "hide-header": !0,
1721
1723
  format: "24hr"
1722
1724
  }, {
1723
1725
  actions: s(() => [
1724
- (V(), F(Ue(q)))
1726
+ (T(), H(Ue(O)))
1725
1727
  ]),
1726
1728
  _: 2
1727
1729
  }, 1032, ["modelValue", "onUpdate:modelValue"])
@@ -1740,7 +1742,7 @@ const Dl = {
1740
1742
  }, 16, ["class", "clearable"]);
1741
1743
  };
1742
1744
  }
1743
- }), wt = /* @__PURE__ */ te({
1745
+ }), Ml = ["title", "aria-label"], wt = /* @__PURE__ */ ne({
1744
1746
  __name: "df-file",
1745
1747
  props: /* @__PURE__ */ pe({
1746
1748
  comms: {},
@@ -1762,65 +1764,72 @@ const Dl = {
1762
1764
  }, be),
1763
1765
  emits: ["update:modelValue", "click:clear"],
1764
1766
  setup(t, { emit: n }) {
1765
- const e = t, a = n, { density: r, densityClass: u, touched: d, value: h, vuetifyBindings: k } = ce(e, a), f = M(null), v = M(0), g = M(Math.round(Math.random() * 1e3)), T = M(), $ = x(() => f.value && v.value < 100), C = x(() => !T.value && h.value ? e.modelValue : "");
1766
- function j() {
1767
- h.value = null, v.value = 0, g.value = Math.round(Math.random() * 1e3), f.value = null, T.value = null, b();
1767
+ const e = t, a = n, { density: r, densityClass: c, touched: d, value: h, vuetifyBindings: k } = ce(e, a), f = ye, v = R(null), b = R(0), _ = R(Math.round(Math.random() * 1e3)), B = R(), x = C(() => v.value && b.value < 100), V = C(() => !B.value && h.value ? h.value : ""), E = C(() => !B.value && !!h.value && !!e.comms.getDownloadUrl);
1768
+ function L() {
1769
+ return he(this, null, function* () {
1770
+ if (!h.value || !e.comms.getDownloadUrl) return;
1771
+ const o = yield e.comms.getDownloadUrl(h.value), u = document.createElement("a");
1772
+ u.href = o, u.download = "", u.rel = "noopener", u.click();
1773
+ });
1774
+ }
1775
+ function g() {
1776
+ h.value = null, b.value = 0, _.value = Math.round(Math.random() * 1e3), v.value = null, B.value = null, q();
1768
1777
  }
1769
- function P(W) {
1770
- j(), bt(e.control, W);
1778
+ function $(o) {
1779
+ g(), bt(e.control, o);
1771
1780
  }
1772
- const { setupTouchInterval: D, clearTouchInterval: b } = pt(
1781
+ const { setupTouchInterval: W, clearTouchInterval: q } = pt(
1773
1782
  h,
1774
1783
  () => e.comms,
1775
1784
  () => e.touchInterval,
1776
- P
1785
+ $
1777
1786
  );
1778
- function S() {
1779
- return ge(this, null, function* () {
1780
- h.value && (yield e.comms.delete(h.value)), j();
1787
+ function Z() {
1788
+ return he(this, null, function* () {
1789
+ h.value && (yield e.comms.delete(h.value)), g();
1781
1790
  });
1782
1791
  }
1783
- function H(W) {
1784
- return ge(this, null, function* () {
1785
- v.value = -1, f.value = W;
1792
+ function M(o) {
1793
+ return he(this, null, function* () {
1794
+ b.value = -1, v.value = o;
1786
1795
  try {
1787
- h.value = yield e.comms.upload(W, (L, w) => {
1788
- v.value = Math.round(L * 100 / w);
1789
- }), v.value = 100, D();
1790
- } catch (L) {
1791
- throw v.value = 0, f.value = null, g.value = Math.round(Math.random() * 1e3), T.value = null, L;
1796
+ h.value = yield e.comms.upload(o, (u, m) => {
1797
+ b.value = Math.round(u * 100 / m);
1798
+ }), b.value = 100, W();
1799
+ } catch (u) {
1800
+ throw b.value = 0, v.value = null, _.value = Math.round(Math.random() * 1e3), B.value = null, u;
1792
1801
  }
1793
1802
  });
1794
1803
  }
1795
- function K(W) {
1796
- W && (Array.isArray(W) ? console.error("Uploading multiple files not supported right now") : H(W));
1804
+ function w(o) {
1805
+ o && (Array.isArray(o) ? console.error("Uploading multiple files not supported right now") : M(o));
1797
1806
  }
1798
- return (W, L) => {
1799
- const w = R("v-progress-linear"), o = R("v-file-input");
1800
- return V(), F(l(He), X(ee(z({}, e), { loading: $.value }), {
1801
- class: l(u),
1807
+ return (o, u) => {
1808
+ const m = P("v-progress-linear"), A = P("v-file-input");
1809
+ return T(), H(l(We), X(te(z({}, e), { loading: x.value }), {
1810
+ class: l(c),
1802
1811
  clearable: "",
1803
- "onClick:clear": S,
1804
- onBlur: L[1] || (L[1] = (c) => d.value = !0)
1812
+ "onClick:clear": Z,
1813
+ onBlur: u[1] || (u[1] = (S) => d.value = !0)
1805
1814
  }), {
1806
1815
  "prepend-inner": s(() => [
1807
- i(l(B), { name: "mdi-paperclip" })
1816
+ i(l(j), { name: "mdi-paperclip" })
1808
1817
  ]),
1809
1818
  loader: s(() => [
1810
- f.value && v.value < 100 ? (V(), F(w, {
1819
+ v.value && b.value < 100 ? (T(), H(m, {
1811
1820
  key: 0,
1812
- "model-value": v.value,
1813
- indeterminate: v.value === -1
1821
+ "model-value": b.value,
1822
+ indeterminate: b.value === -1
1814
1823
  }, null, 8, ["model-value", "indeterminate"])) : Y("", !0)
1815
1824
  ]),
1816
- default: s((c) => [
1817
- oe("div", {
1825
+ default: s((S) => [
1826
+ ae("div", {
1818
1827
  class: ue(["d-flex w-100 position-relative df-input-wrapper", l(r)])
1819
1828
  }, [
1820
- i(o, X({
1821
- modelValue: T.value,
1822
- "onUpdate:modelValue": L[0] || (L[0] = (m) => T.value = m),
1823
- label: C.value,
1829
+ i(A, X({
1830
+ modelValue: B.value,
1831
+ "onUpdate:modelValue": u[0] || (u[0] = (N) => B.value = N),
1832
+ label: V.value,
1824
1833
  density: "compact",
1825
1834
  variant: "plain",
1826
1835
  readonly: l(k).readonly,
@@ -1829,21 +1838,37 @@ const Dl = {
1829
1838
  "hide-details": !0,
1830
1839
  "show-size": !0,
1831
1840
  multiple: !1,
1832
- style: f.value && v.value < 100 ? "visibility: hidden" : "",
1841
+ style: v.value && b.value < 100 ? "visibility: hidden" : "",
1833
1842
  clearable: !1
1834
1843
  }, t.passthroughAttrs, {
1835
1844
  "prepend-icon": "",
1836
- "onUpdate:modelValue": K,
1837
- onFocus: (m) => c.focus(),
1838
- onBlur: (m) => c.blur()
1839
- }), null, 16, ["modelValue", "label", "readonly", "disabled", "name", "style", "onFocus", "onBlur"])
1845
+ "onUpdate:modelValue": w,
1846
+ onFocus: (N) => S.focus(),
1847
+ onBlur: (N) => S.blur()
1848
+ }), ze({ _: 2 }, [
1849
+ E.value ? {
1850
+ name: "append-inner",
1851
+ fn: s(() => [
1852
+ ae("button", {
1853
+ type: "button",
1854
+ class: "df-file-download-btn",
1855
+ title: l(f).FileDownload,
1856
+ "aria-label": l(f).FileDownload,
1857
+ onClick: ke(L, ["stop", "prevent"])
1858
+ }, [
1859
+ i(l(j), { name: "mdi-download" })
1860
+ ], 8, Ml)
1861
+ ]),
1862
+ key: "0"
1863
+ } : void 0
1864
+ ]), 1040, ["modelValue", "label", "readonly", "disabled", "name", "style", "onFocus", "onBlur"])
1840
1865
  ], 2)
1841
1866
  ]),
1842
1867
  _: 1
1843
1868
  }, 16, ["class"]);
1844
1869
  };
1845
1870
  }
1846
- }), Ml = ["id", "disabled", "name", "onFocus", "onBlur"], Rl = ["for"], Pl = ["for"], Nl = ["for", "title"], Ct = /* @__PURE__ */ te({
1871
+ }), Rl = ["id", "disabled", "name", "onFocus", "onBlur"], Pl = ["for"], El = ["for"], Fl = ["for", "title"], Nl = ["href", "title", "aria-label"], Ct = /* @__PURE__ */ ne({
1847
1872
  __name: "df-image",
1848
1873
  props: /* @__PURE__ */ pe({
1849
1874
  comms: {},
@@ -1865,133 +1890,146 @@ const Dl = {
1865
1890
  }, be),
1866
1891
  emits: ["update:modelValue", "click:clear"],
1867
1892
  setup(t, { emit: n }) {
1868
- const e = t, a = n, { density: r, densityClass: u, touched: d, value: h, vuetifyBindings: k } = ce(e, a), f = we, v = Ht(), g = M(null), T = M(0), $ = M(null), C = M(0), j = M(null), P = x(() => g.value && T.value < 100), D = x(() => !!(k.value.disabled || k.value.readonly)), b = x(() => C.value > 0), S = x(() => {
1869
- var A;
1870
- return (A = $.value) != null ? A : h.value ? h.value : null;
1871
- });
1872
- function H() {
1873
- $.value && (URL.revokeObjectURL($.value), $.value = null);
1893
+ const e = t, a = n, { density: r, densityClass: c, touched: d, value: h, vuetifyBindings: k } = ce(e, a), f = ye, v = Ht(), b = R(null), _ = R(0), B = R(null), x = R(0), V = R(null), E = C(() => b.value && _.value < 100), L = C(() => !!(k.value.disabled || k.value.readonly)), g = C(() => x.value > 0), $ = C(() => {
1894
+ var O;
1895
+ return (O = B.value) != null ? O : h.value ? h.value : null;
1896
+ }), W = C(() => !!h.value);
1897
+ function q() {
1898
+ B.value && (URL.revokeObjectURL(B.value), B.value = null);
1874
1899
  }
1875
- function K() {
1876
- h.value = null, T.value = 0, g.value = null, H(), w();
1900
+ function Z() {
1901
+ h.value = null, _.value = 0, b.value = null, q(), o();
1877
1902
  }
1878
- function W(A) {
1879
- K(), bt(e.control, A);
1903
+ function M(O) {
1904
+ Z(), bt(e.control, O);
1880
1905
  }
1881
- const { setupTouchInterval: L, clearTouchInterval: w } = pt(
1906
+ const { setupTouchInterval: w, clearTouchInterval: o } = pt(
1882
1907
  h,
1883
1908
  () => e.comms,
1884
1909
  () => e.touchInterval,
1885
- W
1910
+ M
1886
1911
  );
1887
- Ye(() => H());
1888
- function o() {
1889
- return ge(this, null, function* () {
1890
- h.value && (yield e.comms.delete(h.value)), K();
1912
+ Je(() => q());
1913
+ function u() {
1914
+ return he(this, null, function* () {
1915
+ h.value && (yield e.comms.delete(h.value)), Z();
1891
1916
  });
1892
1917
  }
1893
- function c(A) {
1894
- return ge(this, null, function* () {
1895
- T.value = -1, g.value = A, H(), $.value = URL.createObjectURL(A);
1918
+ function m(O) {
1919
+ return he(this, null, function* () {
1920
+ _.value = -1, b.value = O, q(), B.value = URL.createObjectURL(O);
1896
1921
  try {
1897
- h.value = yield e.comms.upload(A, (q, Q) => {
1898
- T.value = Math.round(q * 100 / Q);
1899
- }), T.value = 100, L();
1900
- } catch (q) {
1901
- throw T.value = 0, g.value = null, H(), q;
1922
+ h.value = yield e.comms.upload(O, (K, ee) => {
1923
+ _.value = Math.round(K * 100 / ee);
1924
+ }), _.value = 100, w();
1925
+ } catch (K) {
1926
+ throw _.value = 0, b.value = null, q(), K;
1902
1927
  }
1903
1928
  });
1904
1929
  }
1905
- function m(A) {
1906
- if (!A.type.startsWith("image/")) {
1930
+ function A(O) {
1931
+ if (!O.type.startsWith("image/")) {
1907
1932
  console.error("Only image files are supported");
1908
1933
  return;
1909
1934
  }
1910
- c(A);
1935
+ m(O);
1911
1936
  }
1912
- function _(A) {
1913
- var le;
1914
- const q = A.target, Q = (le = q.files) == null ? void 0 : le[0];
1915
- q.value = "", Q && m(Q);
1937
+ function S(O) {
1938
+ var y;
1939
+ const K = O.target, ee = (y = K.files) == null ? void 0 : y[0];
1940
+ K.value = "", ee && A(ee);
1916
1941
  }
1917
1942
  function N() {
1918
- D.value || (C.value += 1);
1943
+ L.value || (x.value += 1);
1919
1944
  }
1920
- function O() {
1921
- C.value = Math.max(0, C.value - 1);
1922
- }
1923
- function ne(A) {
1924
- var Q, le;
1925
- if (C.value = 0, D.value) return;
1926
- const q = (le = (Q = A.dataTransfer) == null ? void 0 : Q.files) == null ? void 0 : le[0];
1927
- q && m(q);
1928
- }
1929
- return (A, q) => {
1930
- const Q = R("v-progress-linear"), le = R("v-img");
1931
- return V(), F(l(He), X(ee(z({}, e), { loading: P.value }), {
1932
- class: ["df-image-field", l(u)],
1945
+ function le() {
1946
+ x.value = Math.max(0, x.value - 1);
1947
+ }
1948
+ function D(O) {
1949
+ var ee, y;
1950
+ if (x.value = 0, L.value) return;
1951
+ const K = (y = (ee = O.dataTransfer) == null ? void 0 : ee.files) == null ? void 0 : y[0];
1952
+ K && A(K);
1953
+ }
1954
+ return (O, K) => {
1955
+ const ee = P("v-progress-linear"), y = P("v-img");
1956
+ return T(), H(l(We), X(te(z({}, e), { loading: E.value }), {
1957
+ class: ["df-image-field", l(c)],
1933
1958
  clearable: "",
1934
- "onClick:clear": o,
1935
- onBlur: q[1] || (q[1] = (y) => d.value = !0)
1959
+ "onClick:clear": u,
1960
+ onBlur: K[2] || (K[2] = (p) => d.value = !0)
1936
1961
  }), {
1937
1962
  "prepend-inner": s(() => [
1938
- i(l(B), { name: "mdi-image" })
1963
+ i(l(j), { name: "mdi-image" })
1939
1964
  ]),
1940
1965
  loader: s(() => [
1941
- g.value && T.value < 100 ? (V(), F(Q, {
1966
+ b.value && _.value < 100 ? (T(), H(ee, {
1942
1967
  key: 0,
1943
- "model-value": T.value,
1944
- indeterminate: T.value === -1
1968
+ "model-value": _.value,
1969
+ indeterminate: _.value === -1
1945
1970
  }, null, 8, ["model-value", "indeterminate"])) : Y("", !0)
1946
1971
  ]),
1947
- default: s((y) => [
1948
- oe("div", {
1949
- class: ue(["d-flex w-100 position-relative df-input-wrapper df-image-wrapper", [l(r), { "df-image-dragging": b.value, "df-image-disabled": D.value }]]),
1950
- onDragenter: Te(N, ["prevent"]),
1951
- onDragover: Te(N, ["prevent"]),
1952
- onDragleave: Te(O, ["prevent"]),
1953
- onDrop: Te(ne, ["prevent"]),
1954
- onClick: q[0] || (q[0] = Te(() => {
1972
+ default: s((p) => [
1973
+ ae("div", {
1974
+ class: ue(["d-flex w-100 position-relative df-input-wrapper df-image-wrapper", [l(r), { "df-image-dragging": g.value, "df-image-disabled": L.value }]]),
1975
+ onDragenter: ke(N, ["prevent"]),
1976
+ onDragover: K[0] || (K[0] = ke(() => {
1977
+ }, ["prevent"])),
1978
+ onDragleave: ke(le, ["prevent"]),
1979
+ onDrop: ke(D, ["prevent"]),
1980
+ onClick: K[1] || (K[1] = ke(() => {
1955
1981
  }, ["stop"]))
1956
1982
  }, [
1957
- oe("input", {
1983
+ ae("input", {
1958
1984
  id: l(v),
1959
1985
  ref_key: "fileInputRef",
1960
- ref: j,
1986
+ ref: V,
1961
1987
  type: "file",
1962
1988
  accept: "image/*",
1963
1989
  class: "df-image-native-input",
1964
- disabled: D.value,
1990
+ disabled: L.value,
1965
1991
  name: l(k).name,
1966
- onChange: _,
1967
- onFocus: (p) => y.focus(),
1968
- onBlur: (p) => y.blur()
1969
- }, null, 40, Ml),
1970
- S.value ? (V(), Z("label", {
1992
+ onChange: S,
1993
+ onFocus: (Re) => p.focus(),
1994
+ onBlur: (Re) => p.blur()
1995
+ }, null, 40, Rl),
1996
+ $.value ? (T(), Q("label", {
1971
1997
  key: 0,
1972
1998
  for: l(v),
1973
1999
  class: "df-image-preview-label"
1974
2000
  }, [
1975
- i(le, {
1976
- src: S.value,
2001
+ i(y, {
2002
+ src: $.value,
1977
2003
  class: "df-image-preview",
1978
- style: st(g.value && T.value < 100 ? "visibility: hidden" : "")
2004
+ style: st(b.value && _.value < 100 ? "visibility: hidden" : "")
1979
2005
  }, null, 8, ["src", "style"])
1980
- ], 8, Rl)) : (V(), Z("label", {
2006
+ ], 8, Pl)) : (T(), Q("label", {
1981
2007
  key: 1,
1982
2008
  for: l(v),
1983
2009
  class: "df-image-placeholder"
1984
2010
  }, [
1985
- i(l(B), { name: "mdi-tray-arrow-up" }),
1986
- oe("span", null, G(l(f).ImageDropHint), 1)
1987
- ], 8, Pl)),
1988
- S.value && !D.value ? (V(), Z("label", {
2011
+ i(l(j), { name: "mdi-tray-arrow-up" }),
2012
+ ae("span", null, G(l(f).ImageDropHint), 1)
2013
+ ], 8, El)),
2014
+ $.value && !L.value ? (T(), Q("label", {
1989
2015
  key: 2,
1990
2016
  for: l(v),
1991
2017
  class: "df-image-replace-btn",
1992
2018
  title: l(f).ImageReplace
1993
2019
  }, [
1994
- i(l(B), { name: "mdi-pencil" })
2020
+ i(l(j), { name: "mdi-pencil" })
2021
+ ], 8, Fl)) : Y("", !0),
2022
+ W.value ? (T(), Q("a", {
2023
+ key: 3,
2024
+ href: l(h),
2025
+ download: "",
2026
+ target: "_blank",
2027
+ rel: "noopener",
2028
+ class: "df-image-download-btn",
2029
+ title: l(f).ImageDownload,
2030
+ "aria-label": l(f).ImageDownload
2031
+ }, [
2032
+ i(l(j), { name: "mdi-download" })
1995
2033
  ], 8, Nl)) : Y("", !0)
1996
2034
  ], 34)
1997
2035
  ]),
@@ -1999,7 +2037,7 @@ const Dl = {
1999
2037
  }, 16, ["class"]);
2000
2038
  };
2001
2039
  }
2002
- }), xt = /* @__PURE__ */ te({
2040
+ }), xt = /* @__PURE__ */ ne({
2003
2041
  __name: "df-input",
2004
2042
  props: /* @__PURE__ */ pe({
2005
2043
  inputType: {},
@@ -2021,7 +2059,7 @@ const Dl = {
2021
2059
  passthroughAttrs: {},
2022
2060
  density: {},
2023
2061
  variant: {}
2024
- }, ee(z({}, be), {
2062
+ }, te(z({}, be), {
2025
2063
  inputType: "text",
2026
2064
  precision: null,
2027
2065
  step: void 0,
@@ -2030,55 +2068,55 @@ const Dl = {
2030
2068
  })),
2031
2069
  emits: ["update:modelValue", "click:clear"],
2032
2070
  setup(t, { emit: n }) {
2033
- const e = t, a = n, { densityClass: r, isRendered: u, label: d, showErrors: h, touched: k, value: f, visibilityClass: v, vuetifyBindings: g } = ce(
2071
+ const e = t, a = n, { densityClass: r, isRendered: c, label: d, showErrors: h, touched: k, value: f, visibilityClass: v, vuetifyBindings: b } = ce(
2034
2072
  e,
2035
2073
  a
2036
- ), { inputType: T, max: $, min: C, precision: j, step: P } = Fe(e), D = x(() => T.value === "number"), b = x(
2037
- () => D.value ? { min: l(C), max: l($), precision: l(j), step: l(P) } : {}
2074
+ ), { inputType: _, max: B, min: x, precision: V, step: E } = Oe(e), L = C(() => _.value === "number"), g = C(
2075
+ () => L.value ? { min: l(x), max: l(B), precision: l(V), step: l(E) } : {}
2038
2076
  );
2039
- return (S, H) => {
2040
- const K = R("v-text-field"), W = R("v-number-input");
2041
- return l(u) ? (V(), Z("div", {
2077
+ return ($, W) => {
2078
+ const q = P("v-text-field"), Z = P("v-number-input");
2079
+ return l(c) ? (T(), Q("div", {
2042
2080
  key: 0,
2043
2081
  class: ue(["df-input-container", [l(r), l(v)]])
2044
2082
  }, [
2045
- D.value ? (V(), F(W, X({
2083
+ L.value ? (T(), H(Z, X({
2046
2084
  key: 1,
2047
2085
  modelValue: l(f),
2048
- "onUpdate:modelValue": H[2] || (H[2] = (L) => Ce(f) ? f.value = L : null),
2086
+ "onUpdate:modelValue": W[2] || (W[2] = (M) => xe(f) ? f.value = M : null),
2049
2087
  density: "compact",
2050
2088
  "control-variant": "stacked"
2051
- }, z(z({}, l(g)), b.value)), {
2052
- label: s((L) => [
2089
+ }, z(z({}, l(b)), g.value)), {
2090
+ label: s((M) => [
2053
2091
  i(l(fe), {
2054
- data: L,
2092
+ data: M,
2055
2093
  label: l(d)
2056
2094
  }, null, 8, ["data", "label"])
2057
2095
  ]),
2058
- message: s(({ message: L }) => [
2096
+ message: s(({ message: M }) => [
2059
2097
  i(l(ve), {
2060
- message: L,
2098
+ message: M,
2061
2099
  errors: l(h)
2062
2100
  }, null, 8, ["message", "errors"])
2063
2101
  ]),
2064
2102
  _: 1
2065
- }, 16, ["modelValue"])) : (V(), F(K, X({
2103
+ }, 16, ["modelValue"])) : (T(), H(q, X({
2066
2104
  key: 0,
2067
2105
  modelValue: l(f),
2068
- "onUpdate:modelValue": H[0] || (H[0] = (L) => Ce(f) ? f.value = L : null),
2069
- type: l(T)
2070
- }, l(g), {
2071
- onBlur: H[1] || (H[1] = (L) => k.value = !0)
2106
+ "onUpdate:modelValue": W[0] || (W[0] = (M) => xe(f) ? f.value = M : null),
2107
+ type: l(_)
2108
+ }, l(b), {
2109
+ onBlur: W[1] || (W[1] = (M) => k.value = !0)
2072
2110
  }), {
2073
- label: s((L) => [
2111
+ label: s((M) => [
2074
2112
  i(l(fe), {
2075
- data: L,
2113
+ data: M,
2076
2114
  label: l(d)
2077
2115
  }, null, 8, ["data", "label"])
2078
2116
  ]),
2079
- message: s(({ message: L }) => [
2117
+ message: s(({ message: M }) => [
2080
2118
  i(l(ve), {
2081
- message: L,
2119
+ message: M,
2082
2120
  errors: l(h)
2083
2121
  }, null, 8, ["message", "errors"])
2084
2122
  ]),
@@ -2087,7 +2125,7 @@ const Dl = {
2087
2125
  ], 2)) : Y("", !0);
2088
2126
  };
2089
2127
  }
2090
- }), El = fn.create({
2128
+ }), Ul = fn.create({
2091
2129
  name: "classAttribute",
2092
2130
  addGlobalAttributes() {
2093
2131
  return [
@@ -2115,7 +2153,7 @@ function At(t, n) {
2115
2153
  }
2116
2154
  });
2117
2155
  }
2118
- const Ul = At("marker", "marker"), zl = At("spoiler", "spoiler"), Fl = [
2156
+ const zl = At("marker", "marker"), Hl = At("spoiler", "spoiler"), Ol = [
2119
2157
  { key: "ArticleCategory", kind: "heading", level: 3, className: "category" },
2120
2158
  { key: "Title", kind: "heading", level: 2, className: "document-title" },
2121
2159
  { key: "Subtitle", kind: "heading", level: 3, className: "document-subtitle" },
@@ -2126,35 +2164,35 @@ const Ul = At("marker", "marker"), zl = At("spoiler", "spoiler"), Fl = [
2126
2164
  { key: "CodeDark", kind: "codeBlock", className: "fancy-code fancy-code-dark" },
2127
2165
  { key: "CodeBright", kind: "codeBlock", className: "fancy-code fancy-code-bright" }
2128
2166
  ];
2129
- function Qe(t) {
2167
+ function Ze(t) {
2130
2168
  const { state: n } = t, { $from: e } = n.selection;
2131
2169
  return e.depth > 0 || n.doc.content.size === 0 ? e : n.doc.resolve(Math.min(1, n.doc.content.size));
2132
2170
  }
2133
- function Ee(t) {
2134
- return Qe(t).parent;
2171
+ function Ne(t) {
2172
+ return Ze(t).parent;
2135
2173
  }
2136
- function Tt(t, n) {
2137
- const e = Qe(t);
2174
+ function _t(t, n) {
2175
+ const e = Ze(t);
2138
2176
  for (let a = e.depth; a >= 0; a -= 1)
2139
2177
  if (e.node(a).type.name === n) return e.node(a);
2140
2178
  return null;
2141
2179
  }
2142
- function $e(t, n) {
2180
+ function Le(t, n) {
2143
2181
  switch (n.kind) {
2144
2182
  case "heading": {
2145
- const e = Ee(t);
2183
+ const e = Ne(t);
2146
2184
  return e.type.name === "heading" && e.attrs.level === n.level && e.attrs.class === n.className;
2147
2185
  }
2148
2186
  case "paragraph": {
2149
- const e = Ee(t);
2187
+ const e = Ne(t);
2150
2188
  return e.type.name === "paragraph" && e.attrs.class === n.className;
2151
2189
  }
2152
2190
  case "codeBlock": {
2153
- const e = Ee(t);
2191
+ const e = Ne(t);
2154
2192
  return e.type.name === "codeBlock" && e.attrs.class === n.className;
2155
2193
  }
2156
2194
  case "blockquote": {
2157
- const e = Tt(t, "blockquote");
2195
+ const e = _t(t, "blockquote");
2158
2196
  return !!e && e.attrs.class === n.className;
2159
2197
  }
2160
2198
  case "mark":
@@ -2163,33 +2201,33 @@ function $e(t, n) {
2163
2201
  return !1;
2164
2202
  }
2165
2203
  }
2166
- function Hl(t, n) {
2204
+ function Wl(t, n) {
2167
2205
  const e = t.chain().focus(), { $from: a } = t.state.selection;
2168
- switch (n.kind !== "mark" && a.depth === 0 && t.state.doc.content.size > 0 && e.setTextSelection(Qe(t).pos), n.kind) {
2206
+ switch (n.kind !== "mark" && a.depth === 0 && t.state.doc.content.size > 0 && e.setTextSelection(Ze(t).pos), n.kind) {
2169
2207
  case "heading":
2170
- $e(t, n) ? e.setParagraph().updateAttributes("paragraph", { class: null }).run() : e.setNode("heading", { level: n.level }).updateAttributes("heading", { class: n.className }).run();
2208
+ Le(t, n) ? e.setParagraph().updateAttributes("paragraph", { class: null }).run() : e.setNode("heading", { level: n.level }).updateAttributes("heading", { class: n.className }).run();
2171
2209
  break;
2172
2210
  case "paragraph":
2173
- $e(t, n) ? e.setParagraph().updateAttributes("paragraph", { class: null }).run() : e.setParagraph().updateAttributes("paragraph", { class: n.className }).run();
2211
+ Le(t, n) ? e.setParagraph().updateAttributes("paragraph", { class: null }).run() : e.setParagraph().updateAttributes("paragraph", { class: n.className }).run();
2174
2212
  break;
2175
2213
  case "blockquote":
2176
- $e(t, n) ? e.unsetBlockquote().run() : Tt(t, "blockquote") ? e.updateAttributes("blockquote", { class: n.className }).run() : e.setBlockquote().updateAttributes("blockquote", { class: n.className }).run();
2214
+ Le(t, n) ? e.unsetBlockquote().run() : _t(t, "blockquote") ? e.updateAttributes("blockquote", { class: n.className }).run() : e.setBlockquote().updateAttributes("blockquote", { class: n.className }).run();
2177
2215
  break;
2178
2216
  case "codeBlock":
2179
- $e(t, n) ? e.toggleCodeBlock().updateAttributes("paragraph", { class: null }).run() : Ee(t).type.name === "codeBlock" ? e.updateAttributes("codeBlock", { class: n.className }).run() : e.setCodeBlock().updateAttributes("codeBlock", { class: n.className }).run();
2217
+ Le(t, n) ? e.toggleCodeBlock().updateAttributes("paragraph", { class: null }).run() : Ne(t).type.name === "codeBlock" ? e.updateAttributes("codeBlock", { class: n.className }).run() : e.setCodeBlock().updateAttributes("codeBlock", { class: n.className }).run();
2180
2218
  break;
2181
2219
  case "mark":
2182
2220
  e.toggleMark(n.markName).run();
2183
2221
  break;
2184
2222
  }
2185
2223
  }
2186
- function _t(t) {
2224
+ function Tt(t) {
2187
2225
  return new Promise((n, e) => {
2188
2226
  const a = new FileReader();
2189
2227
  a.onload = () => n(a.result), a.onerror = () => e(a.error), a.readAsDataURL(t);
2190
2228
  });
2191
2229
  }
2192
- function Ol(t) {
2230
+ function ql(t) {
2193
2231
  if (!t) return [];
2194
2232
  const n = [];
2195
2233
  return Array.from(t.items || []).forEach((e) => {
@@ -2210,28 +2248,28 @@ function Vt(t) {
2210
2248
  function jt(t, n, e) {
2211
2249
  const a = [];
2212
2250
  return t.forEach((r) => {
2213
- r.type.name === "image" && e.index < n.length ? (a.push(r.type.create(ee(z({}, r.attrs), { src: n[e.index] }), r.content, r.marks)), e.index += 1) : r.content.size ? a.push(r.copy(jt(r.content, n, e))) : a.push(r);
2251
+ r.type.name === "image" && e.index < n.length ? (a.push(r.type.create(te(z({}, r.attrs), { src: n[e.index] }), r.content, r.marks)), e.index += 1) : r.content.size ? a.push(r.copy(jt(r.content, n, e))) : a.push(r);
2214
2252
  }), gn.fromArray(a);
2215
2253
  }
2216
- function Wl(t) {
2254
+ function Kl(t) {
2217
2255
  return (n, e, a) => {
2218
- const r = Ol(e.clipboardData);
2219
- return r.length === 0 ? !1 : (e.preventDefault(), Promise.all(r.map(_t)).then((u) => {
2256
+ const r = ql(e.clipboardData);
2257
+ return r.length === 0 ? !1 : (e.preventDefault(), Promise.all(r.map(Tt)).then((c) => {
2220
2258
  var d;
2221
2259
  if (Vt(a.content) > 0) {
2222
- const h = jt(a.content, u, { index: 0 }), k = new hn(h, a.openStart, a.openEnd);
2260
+ const h = jt(a.content, c, { index: 0 }), k = new hn(h, a.openStart, a.openEnd);
2223
2261
  n.dispatch(n.state.tr.replaceSelection(k).scrollIntoView());
2224
2262
  return;
2225
2263
  }
2226
- (d = t()) == null || d.chain().focus().insertContent(u.map((h) => ({ type: "image", attrs: { src: h } }))).run();
2264
+ (d = t()) == null || d.chain().focus().insertContent(c.map((h) => ({ type: "image", attrs: { src: h } }))).run();
2227
2265
  }), !0);
2228
2266
  };
2229
2267
  }
2230
- const ql = yn.extend({
2268
+ const Gl = yn.extend({
2231
2269
  name: "link",
2232
2270
  addAttributes() {
2233
2271
  var t;
2234
- return ee(z({}, (t = this.parent) == null ? void 0 : t.call(this)), {
2272
+ return te(z({}, (t = this.parent) == null ? void 0 : t.call(this)), {
2235
2273
  download: {
2236
2274
  default: null,
2237
2275
  parseHTML: (n) => n.getAttribute("download"),
@@ -2240,7 +2278,7 @@ const ql = yn.extend({
2240
2278
  });
2241
2279
  }
2242
2280
  });
2243
- function Kl(t) {
2281
+ function Xl(t) {
2244
2282
  let n;
2245
2283
  try {
2246
2284
  n = new URL(t);
@@ -2253,8 +2291,8 @@ function Kl(t) {
2253
2291
  if (a) return `https://www.youtube.com/embed/${a}`;
2254
2292
  const r = n.pathname.match(/^\/embed\/([\w-]+)/);
2255
2293
  if (r) return `https://www.youtube.com/embed/${r[1]}`;
2256
- const u = n.pathname.match(/^\/shorts\/([\w-]+)/);
2257
- return u ? `https://www.youtube.com/embed/${u[1]}` : null;
2294
+ const c = n.pathname.match(/^\/shorts\/([\w-]+)/);
2295
+ return c ? `https://www.youtube.com/embed/${c[1]}` : null;
2258
2296
  }
2259
2297
  if (e === "youtu.be") {
2260
2298
  const a = n.pathname.slice(1);
@@ -2266,7 +2304,7 @@ function Kl(t) {
2266
2304
  }
2267
2305
  return null;
2268
2306
  }
2269
- const Gl = bn.create({
2307
+ const Yl = bn.create({
2270
2308
  name: "mediaEmbed",
2271
2309
  group: "block",
2272
2310
  atom: !0,
@@ -2295,25 +2333,25 @@ const Gl = bn.create({
2295
2333
  }
2296
2334
  });
2297
2335
  function Bt(t) {
2298
- const n = M(0);
2336
+ const n = R(0);
2299
2337
  let e;
2300
2338
  const a = () => {
2301
2339
  n.value += 1;
2302
- }, r = (u) => {
2303
- e == null || e.off("transaction", a), e = u, e == null || e.on("transaction", a);
2340
+ }, r = (c) => {
2341
+ e == null || e.off("transaction", a), e = c, e == null || e.on("transaction", a);
2304
2342
  };
2305
- return me(t, r, { immediate: !0 }), Ye(() => r(void 0)), n;
2343
+ return me(t, r, { immediate: !0 }), Je(() => r(void 0)), n;
2306
2344
  }
2307
- const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex justify-space-between align-center ga-2 mt-2" }, Jl = { class: "d-flex justify-end mt-2" }, Ql = /* @__PURE__ */ te({
2345
+ const Jl = { class: "d-flex justify-end ga-2 mt-2" }, Ql = { class: "d-flex justify-space-between align-center ga-2 mt-2" }, Zl = { class: "d-flex justify-end mt-2" }, ea = /* @__PURE__ */ ne({
2308
2346
  __name: "rtf-toolbar",
2309
2347
  props: {
2310
2348
  editor: {}
2311
2349
  },
2312
2350
  setup(t) {
2313
- const n = t, e = we, a = x(() => n.editor), r = Bt(a), u = x(() => {
2351
+ const n = t, e = ye, a = C(() => n.editor), r = Bt(a), c = C(() => {
2314
2352
  var o;
2315
2353
  return !!((o = n.editor) != null && o.isEditable);
2316
- }), d = x(() => {
2354
+ }), d = C(() => {
2317
2355
  r.value;
2318
2356
  const o = n.editor;
2319
2357
  return {
@@ -2343,81 +2381,81 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
2343
2381
  { level: 6, label: e.Heading6 }
2344
2382
  ];
2345
2383
  function k(o) {
2346
- var c, m;
2347
- return r.value, o === 0 ? !!((c = a.value) != null && c.isActive("paragraph")) : !!((m = a.value) != null && m.isActive("heading", { level: o }));
2384
+ var u, m;
2385
+ return r.value, o === 0 ? !!((u = a.value) != null && u.isActive("paragraph")) : !!((m = a.value) != null && m.isActive("heading", { level: o }));
2348
2386
  }
2349
- const f = x(
2387
+ const f = C(
2350
2388
  () => {
2351
- var o, c;
2352
- return (c = (o = h.find((m) => k(m.level))) == null ? void 0 : o.label) != null ? c : e.Paragraph;
2389
+ var o, u;
2390
+ return (u = (o = h.find((m) => k(m.level))) == null ? void 0 : o.label) != null ? u : e.Paragraph;
2353
2391
  }
2354
2392
  );
2355
2393
  function v(o) {
2356
2394
  var m;
2357
- const c = (m = a.value) == null ? void 0 : m.chain().focus();
2358
- c && (o === 0 ? c.setParagraph().run() : c.toggleHeading({ level: o }).run());
2395
+ const u = (m = a.value) == null ? void 0 : m.chain().focus();
2396
+ u && (o === 0 ? u.setParagraph().run() : u.toggleHeading({ level: o }).run());
2359
2397
  }
2360
- const g = Fl;
2361
- function T(o) {
2362
- return r.value, !!a.value && $e(a.value, o);
2398
+ const b = Ol;
2399
+ function _(o) {
2400
+ return r.value, !!a.value && Le(a.value, o);
2363
2401
  }
2364
- const $ = M(""), C = M(!1);
2365
- function j() {
2366
- var c, m, _;
2367
- const o = (m = (c = a.value) == null ? void 0 : c.getAttributes("link")) != null ? m : {};
2368
- $.value = (_ = o.href) != null ? _ : "", C.value = !!o.download;
2402
+ const B = R(""), x = R(!1);
2403
+ function V() {
2404
+ var u, m, A;
2405
+ const o = (m = (u = a.value) == null ? void 0 : u.getAttributes("link")) != null ? m : {};
2406
+ B.value = (A = o.href) != null ? A : "", x.value = !!o.download;
2369
2407
  }
2370
- function P() {
2408
+ function E() {
2371
2409
  var o;
2372
- $.value && ((o = a.value) == null || o.chain().focus().extendMarkRange("link").setLink({ href: $.value }).updateAttributes("link", { download: C.value ? "file" : null }).run());
2410
+ B.value && ((o = a.value) == null || o.chain().focus().extendMarkRange("link").setLink({ href: B.value }).updateAttributes("link", { download: x.value ? "file" : null }).run());
2373
2411
  }
2374
- function D() {
2412
+ function L() {
2375
2413
  var o;
2376
2414
  (o = a.value) == null || o.chain().focus().unsetLink().run();
2377
2415
  }
2378
- const b = M(""), S = M();
2379
- function H() {
2416
+ const g = R(""), $ = R();
2417
+ function W() {
2380
2418
  var o;
2381
- b.value && ((o = a.value) == null || o.chain().focus().setImage({ src: b.value }).run(), b.value = "");
2419
+ g.value && ((o = a.value) == null || o.chain().focus().setImage({ src: g.value }).run(), g.value = "");
2382
2420
  }
2383
- function K() {
2421
+ function q() {
2384
2422
  var o;
2385
- (o = S.value) == null || o.click();
2386
- }
2387
- function W(o) {
2388
- return ge(this, null, function* () {
2389
- var _, N;
2390
- const c = (_ = o.target.files) == null ? void 0 : _[0];
2391
- if (!c) return;
2392
- const m = yield _t(c);
2393
- (N = a.value) == null || N.chain().focus().setImage({ src: m }).run(), o.target.value = "";
2423
+ (o = $.value) == null || o.click();
2424
+ }
2425
+ function Z(o) {
2426
+ return he(this, null, function* () {
2427
+ var A, S;
2428
+ const u = (A = o.target.files) == null ? void 0 : A[0];
2429
+ if (!u) return;
2430
+ const m = yield Tt(u);
2431
+ (S = a.value) == null || S.chain().focus().setImage({ src: m }).run(), o.target.value = "";
2394
2432
  });
2395
2433
  }
2396
- const L = M("");
2434
+ const M = R("");
2397
2435
  function w() {
2398
2436
  var m;
2399
- if (!L.value) return;
2400
- const o = Kl(L.value), c = (m = a.value) == null ? void 0 : m.chain().focus();
2401
- c && (o ? c.insertContent({ type: "mediaEmbed", attrs: { src: o } }).run() : c.insertContent({ type: "text", text: L.value, marks: [{ type: "link", attrs: { href: L.value } }] }).run(), L.value = "");
2402
- }
2403
- return (o, c) => {
2404
- const m = R("v-btn"), _ = R("v-divider"), N = R("v-list-item-title"), O = R("v-list-item"), ne = R("v-list"), A = R("v-menu"), q = R("v-text-field"), Q = R("v-checkbox"), le = R("v-card");
2405
- return V(), Z("div", {
2406
- class: ue(["rtf-toolbar", { "rtf-toolbar--disabled": !u.value }])
2437
+ if (!M.value) return;
2438
+ const o = Xl(M.value), u = (m = a.value) == null ? void 0 : m.chain().focus();
2439
+ u && (o ? u.insertContent({ type: "mediaEmbed", attrs: { src: o } }).run() : u.insertContent({ type: "text", text: M.value, marks: [{ type: "link", attrs: { href: M.value } }] }).run(), M.value = "");
2440
+ }
2441
+ return (o, u) => {
2442
+ const m = P("v-btn"), A = P("v-divider"), S = P("v-list-item-title"), N = P("v-list-item"), le = P("v-list"), D = P("v-menu"), O = P("v-text-field"), K = P("v-checkbox"), ee = P("v-card");
2443
+ return T(), Q("div", {
2444
+ class: ue(["rtf-toolbar", { "rtf-toolbar--disabled": !c.value }])
2407
2445
  }, [
2408
2446
  i(m, {
2409
2447
  icon: "",
2410
2448
  size: "small",
2411
2449
  variant: "text",
2412
2450
  title: l(e).Undo,
2413
- disabled: !u.value || !d.value.canUndo,
2414
- onClick: c[0] || (c[0] = (y) => {
2451
+ disabled: !c.value || !d.value.canUndo,
2452
+ onClick: u[0] || (u[0] = (y) => {
2415
2453
  var p;
2416
2454
  return (p = a.value) == null ? void 0 : p.chain().focus().undo().run();
2417
2455
  })
2418
2456
  }, {
2419
2457
  default: s(() => [
2420
- i(l(B), { name: "mdi-undo" })
2458
+ i(l(j), { name: "mdi-undo" })
2421
2459
  ]),
2422
2460
  _: 1
2423
2461
  }, 8, ["title", "disabled"]),
@@ -2426,18 +2464,18 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
2426
2464
  size: "small",
2427
2465
  variant: "text",
2428
2466
  title: l(e).Redo,
2429
- disabled: !u.value || !d.value.canRedo,
2430
- onClick: c[1] || (c[1] = (y) => {
2467
+ disabled: !c.value || !d.value.canRedo,
2468
+ onClick: u[1] || (u[1] = (y) => {
2431
2469
  var p;
2432
2470
  return (p = a.value) == null ? void 0 : p.chain().focus().redo().run();
2433
2471
  })
2434
2472
  }, {
2435
2473
  default: s(() => [
2436
- i(l(B), { name: "mdi-redo" })
2474
+ i(l(j), { name: "mdi-redo" })
2437
2475
  ]),
2438
2476
  _: 1
2439
2477
  }, 8, ["title", "disabled"]),
2440
- i(_, {
2478
+ i(A, {
2441
2479
  vertical: "",
2442
2480
  inset: "",
2443
2481
  class: "mx-1"
@@ -2447,28 +2485,28 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
2447
2485
  size: "small",
2448
2486
  variant: "text",
2449
2487
  title: l(e).SelectAll,
2450
- disabled: !u.value,
2451
- onClick: c[2] || (c[2] = (y) => {
2488
+ disabled: !c.value,
2489
+ onClick: u[2] || (u[2] = (y) => {
2452
2490
  var p;
2453
2491
  return (p = a.value) == null ? void 0 : p.chain().focus().selectAll().run();
2454
2492
  })
2455
2493
  }, {
2456
2494
  default: s(() => [
2457
- i(l(B), { name: "mdi-select-all" })
2495
+ i(l(j), { name: "mdi-select-all" })
2458
2496
  ]),
2459
2497
  _: 1
2460
2498
  }, 8, ["title", "disabled"]),
2461
- i(_, {
2499
+ i(A, {
2462
2500
  vertical: "",
2463
2501
  inset: "",
2464
2502
  class: "mx-1"
2465
2503
  }),
2466
- i(A, null, {
2504
+ i(D, null, {
2467
2505
  activator: s(({ props: y }) => [
2468
2506
  i(m, X({
2469
2507
  size: "small",
2470
2508
  variant: "text",
2471
- disabled: !u.value
2509
+ disabled: !c.value
2472
2510
  }, y, { "append-icon": "mdi-chevron-down" }), {
2473
2511
  default: s(() => [
2474
2512
  J(G(f.value), 1)
@@ -2477,15 +2515,15 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
2477
2515
  }, 16, ["disabled"])
2478
2516
  ]),
2479
2517
  default: s(() => [
2480
- i(ne, { density: "compact" }, {
2518
+ i(le, { density: "compact" }, {
2481
2519
  default: s(() => [
2482
- (V(), Z(Se, null, Xe(h, (y) => i(O, {
2520
+ (T(), Q(Se, null, Ye(h, (y) => i(N, {
2483
2521
  key: y.level,
2484
2522
  active: k(y.level),
2485
2523
  onClick: (p) => v(y.level)
2486
2524
  }, {
2487
2525
  default: s(() => [
2488
- i(N, null, {
2526
+ i(S, null, {
2489
2527
  default: s(() => [
2490
2528
  J(G(y.label), 1)
2491
2529
  ]),
@@ -2500,12 +2538,12 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
2500
2538
  ]),
2501
2539
  _: 1
2502
2540
  }),
2503
- i(A, null, {
2541
+ i(D, null, {
2504
2542
  activator: s(({ props: y }) => [
2505
2543
  i(m, X({
2506
2544
  size: "small",
2507
2545
  variant: "text",
2508
- disabled: !u.value
2546
+ disabled: !c.value
2509
2547
  }, y, { "append-icon": "mdi-chevron-down" }), {
2510
2548
  default: s(() => [
2511
2549
  J(G(l(e).Style), 1)
@@ -2514,15 +2552,15 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
2514
2552
  }, 16, ["disabled"])
2515
2553
  ]),
2516
2554
  default: s(() => [
2517
- i(ne, { density: "compact" }, {
2555
+ i(le, { density: "compact" }, {
2518
2556
  default: s(() => [
2519
- (V(!0), Z(Se, null, Xe(l(g), (y) => (V(), F(O, {
2557
+ (T(!0), Q(Se, null, Ye(l(b), (y) => (T(), H(N, {
2520
2558
  key: y.key,
2521
- active: T(y),
2522
- onClick: (p) => a.value && l(Hl)(a.value, y)
2559
+ active: _(y),
2560
+ onClick: (p) => a.value && l(Wl)(a.value, y)
2523
2561
  }, {
2524
2562
  default: s(() => [
2525
- i(N, null, {
2563
+ i(S, null, {
2526
2564
  default: s(() => [
2527
2565
  J(G(l(e)[y.key]), 1)
2528
2566
  ]),
@@ -2537,7 +2575,7 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
2537
2575
  ]),
2538
2576
  _: 1
2539
2577
  }),
2540
- i(_, {
2578
+ i(A, {
2541
2579
  vertical: "",
2542
2580
  inset: "",
2543
2581
  class: "mx-1"
@@ -2547,15 +2585,15 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
2547
2585
  size: "small",
2548
2586
  variant: "text",
2549
2587
  title: l(e).Bold,
2550
- disabled: !u.value,
2588
+ disabled: !c.value,
2551
2589
  active: d.value.bold,
2552
- onClick: c[3] || (c[3] = (y) => {
2590
+ onClick: u[3] || (u[3] = (y) => {
2553
2591
  var p;
2554
2592
  return (p = a.value) == null ? void 0 : p.chain().focus().toggleBold().run();
2555
2593
  })
2556
2594
  }, {
2557
2595
  default: s(() => [
2558
- i(l(B), { name: "mdi-format-bold" })
2596
+ i(l(j), { name: "mdi-format-bold" })
2559
2597
  ]),
2560
2598
  _: 1
2561
2599
  }, 8, ["title", "disabled", "active"]),
@@ -2564,19 +2602,19 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
2564
2602
  size: "small",
2565
2603
  variant: "text",
2566
2604
  title: l(e).Italic,
2567
- disabled: !u.value,
2605
+ disabled: !c.value,
2568
2606
  active: d.value.italic,
2569
- onClick: c[4] || (c[4] = (y) => {
2607
+ onClick: u[4] || (u[4] = (y) => {
2570
2608
  var p;
2571
2609
  return (p = a.value) == null ? void 0 : p.chain().focus().toggleItalic().run();
2572
2610
  })
2573
2611
  }, {
2574
2612
  default: s(() => [
2575
- i(l(B), { name: "mdi-format-italic" })
2613
+ i(l(j), { name: "mdi-format-italic" })
2576
2614
  ]),
2577
2615
  _: 1
2578
2616
  }, 8, ["title", "disabled", "active"]),
2579
- i(_, {
2617
+ i(A, {
2580
2618
  vertical: "",
2581
2619
  inset: "",
2582
2620
  class: "mx-1"
@@ -2586,20 +2624,20 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
2586
2624
  size: "small",
2587
2625
  variant: "text",
2588
2626
  title: l(e).HorizontalLine,
2589
- disabled: !u.value,
2590
- onClick: c[5] || (c[5] = (y) => {
2627
+ disabled: !c.value,
2628
+ onClick: u[5] || (u[5] = (y) => {
2591
2629
  var p;
2592
2630
  return (p = a.value) == null ? void 0 : p.chain().focus().setHorizontalRule().run();
2593
2631
  })
2594
2632
  }, {
2595
2633
  default: s(() => [
2596
- i(l(B), { name: "mdi-minus" })
2634
+ i(l(j), { name: "mdi-minus" })
2597
2635
  ]),
2598
2636
  _: 1
2599
2637
  }, 8, ["title", "disabled"]),
2600
- i(A, {
2638
+ i(D, {
2601
2639
  "close-on-content-click": !1,
2602
- "onUpdate:modelValue": c[8] || (c[8] = (y) => y && j())
2640
+ "onUpdate:modelValue": u[8] || (u[8] = (y) => y && V())
2603
2641
  }, {
2604
2642
  activator: s(({ props: y }) => [
2605
2643
  i(m, X({
@@ -2607,44 +2645,44 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
2607
2645
  size: "small",
2608
2646
  variant: "text",
2609
2647
  title: l(e).Link,
2610
- disabled: !u.value,
2648
+ disabled: !c.value,
2611
2649
  active: d.value.link
2612
2650
  }, y), {
2613
2651
  default: s(() => [
2614
- i(l(B), { name: "mdi-link-variant" })
2652
+ i(l(j), { name: "mdi-link-variant" })
2615
2653
  ]),
2616
2654
  _: 1
2617
2655
  }, 16, ["title", "disabled", "active"])
2618
2656
  ]),
2619
2657
  default: s(() => [
2620
- i(le, {
2658
+ i(ee, {
2621
2659
  "min-width": "280",
2622
2660
  class: "pa-3"
2623
2661
  }, {
2624
2662
  default: s(() => [
2625
- i(q, {
2626
- modelValue: $.value,
2627
- "onUpdate:modelValue": c[6] || (c[6] = (y) => $.value = y),
2663
+ i(O, {
2664
+ modelValue: B.value,
2665
+ "onUpdate:modelValue": u[6] || (u[6] = (y) => B.value = y),
2628
2666
  label: l(e).LinkUrl,
2629
2667
  density: "compact",
2630
2668
  "hide-details": "",
2631
2669
  autofocus: "",
2632
- onKeydown: De(P, ["enter"])
2670
+ onKeydown: $e(E, ["enter"])
2633
2671
  }, null, 8, ["modelValue", "label"]),
2634
- i(Q, {
2635
- modelValue: C.value,
2636
- "onUpdate:modelValue": c[7] || (c[7] = (y) => C.value = y),
2672
+ i(K, {
2673
+ modelValue: x.value,
2674
+ "onUpdate:modelValue": u[7] || (u[7] = (y) => x.value = y),
2637
2675
  label: l(e).Downloadable,
2638
2676
  density: "compact",
2639
2677
  "hide-details": "",
2640
2678
  class: "mt-1"
2641
2679
  }, null, 8, ["modelValue", "label"]),
2642
- oe("div", Xl, [
2643
- d.value.link ? (V(), F(m, {
2680
+ ae("div", Jl, [
2681
+ d.value.link ? (T(), H(m, {
2644
2682
  key: 0,
2645
2683
  size: "small",
2646
2684
  variant: "text",
2647
- onClick: D
2685
+ onClick: L
2648
2686
  }, {
2649
2687
  default: s(() => [
2650
2688
  J(G(l(e).LinkRemove), 1)
@@ -2655,7 +2693,7 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
2655
2693
  size: "small",
2656
2694
  color: "primary",
2657
2695
  variant: "tonal",
2658
- onClick: P
2696
+ onClick: E
2659
2697
  }, {
2660
2698
  default: s(() => [
2661
2699
  J(G(l(e).LinkApply), 1)
@@ -2669,42 +2707,42 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
2669
2707
  ]),
2670
2708
  _: 1
2671
2709
  }),
2672
- i(A, { "close-on-content-click": !1 }, {
2710
+ i(D, { "close-on-content-click": !1 }, {
2673
2711
  activator: s(({ props: y }) => [
2674
2712
  i(m, X({
2675
2713
  icon: "",
2676
2714
  size: "small",
2677
2715
  variant: "text",
2678
2716
  title: l(e).Image,
2679
- disabled: !u.value
2717
+ disabled: !c.value
2680
2718
  }, y), {
2681
2719
  default: s(() => [
2682
- i(l(B), { name: "mdi-image-plus" })
2720
+ i(l(j), { name: "mdi-image-plus" })
2683
2721
  ]),
2684
2722
  _: 1
2685
2723
  }, 16, ["title", "disabled"])
2686
2724
  ]),
2687
2725
  default: s(() => [
2688
- i(le, {
2726
+ i(ee, {
2689
2727
  "min-width": "280",
2690
2728
  class: "pa-3"
2691
2729
  }, {
2692
2730
  default: s(() => [
2693
- i(q, {
2694
- modelValue: b.value,
2695
- "onUpdate:modelValue": c[9] || (c[9] = (y) => b.value = y),
2731
+ i(O, {
2732
+ modelValue: g.value,
2733
+ "onUpdate:modelValue": u[9] || (u[9] = (y) => g.value = y),
2696
2734
  label: l(e).ImageUrl,
2697
2735
  density: "compact",
2698
2736
  "hide-details": "",
2699
2737
  autofocus: "",
2700
- onKeydown: De(H, ["enter"])
2738
+ onKeydown: $e(W, ["enter"])
2701
2739
  }, null, 8, ["modelValue", "label"]),
2702
- oe("div", Yl, [
2740
+ ae("div", Ql, [
2703
2741
  i(m, {
2704
2742
  size: "small",
2705
2743
  variant: "text",
2706
2744
  "prepend-icon": "mdi-upload",
2707
- onClick: K
2745
+ onClick: q
2708
2746
  }, {
2709
2747
  default: s(() => [
2710
2748
  J(G(l(e).ImageUpload), 1)
@@ -2715,7 +2753,7 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
2715
2753
  size: "small",
2716
2754
  color: "primary",
2717
2755
  variant: "tonal",
2718
- onClick: H
2756
+ onClick: W
2719
2757
  }, {
2720
2758
  default: s(() => [
2721
2759
  J(G(l(e).ImageInsert), 1)
@@ -2729,45 +2767,45 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
2729
2767
  ]),
2730
2768
  _: 1
2731
2769
  }),
2732
- oe("input", {
2770
+ ae("input", {
2733
2771
  ref_key: "imageInput",
2734
- ref: S,
2772
+ ref: $,
2735
2773
  type: "file",
2736
2774
  accept: "image/*",
2737
2775
  class: "d-none",
2738
- onChange: W
2776
+ onChange: Z
2739
2777
  }, null, 544),
2740
- i(A, { "close-on-content-click": !1 }, {
2778
+ i(D, { "close-on-content-click": !1 }, {
2741
2779
  activator: s(({ props: y }) => [
2742
2780
  i(m, X({
2743
2781
  icon: "",
2744
2782
  size: "small",
2745
2783
  variant: "text",
2746
2784
  title: l(e).MediaEmbed,
2747
- disabled: !u.value
2785
+ disabled: !c.value
2748
2786
  }, y), {
2749
2787
  default: s(() => [
2750
- i(l(B), { name: "mdi-video-plus" })
2788
+ i(l(j), { name: "mdi-video-plus" })
2751
2789
  ]),
2752
2790
  _: 1
2753
2791
  }, 16, ["title", "disabled"])
2754
2792
  ]),
2755
2793
  default: s(() => [
2756
- i(le, {
2794
+ i(ee, {
2757
2795
  "min-width": "280",
2758
2796
  class: "pa-3"
2759
2797
  }, {
2760
2798
  default: s(() => [
2761
- i(q, {
2762
- modelValue: L.value,
2763
- "onUpdate:modelValue": c[10] || (c[10] = (y) => L.value = y),
2799
+ i(O, {
2800
+ modelValue: M.value,
2801
+ "onUpdate:modelValue": u[10] || (u[10] = (y) => M.value = y),
2764
2802
  label: l(e).MediaEmbedUrl,
2765
2803
  density: "compact",
2766
2804
  "hide-details": "",
2767
2805
  autofocus: "",
2768
- onKeydown: De(w, ["enter"])
2806
+ onKeydown: $e(w, ["enter"])
2769
2807
  }, null, 8, ["modelValue", "label"]),
2770
- oe("div", Jl, [
2808
+ ae("div", Zl, [
2771
2809
  i(m, {
2772
2810
  size: "small",
2773
2811
  color: "primary",
@@ -2786,35 +2824,35 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
2786
2824
  ]),
2787
2825
  _: 1
2788
2826
  }),
2789
- i(A, null, {
2827
+ i(D, null, {
2790
2828
  activator: s(({ props: y }) => [
2791
2829
  i(m, X({
2792
2830
  icon: "",
2793
2831
  size: "small",
2794
2832
  variant: "text",
2795
2833
  title: l(e).Table,
2796
- disabled: !u.value
2834
+ disabled: !c.value
2797
2835
  }, y), {
2798
2836
  default: s(() => [
2799
- i(l(B), { name: "mdi-table" })
2837
+ i(l(j), { name: "mdi-table" })
2800
2838
  ]),
2801
2839
  _: 1
2802
2840
  }, 16, ["title", "disabled"])
2803
2841
  ]),
2804
2842
  default: s(() => [
2805
- i(ne, { density: "compact" }, {
2843
+ i(le, { density: "compact" }, {
2806
2844
  default: s(() => [
2807
- i(O, {
2808
- onClick: c[11] || (c[11] = (y) => {
2845
+ i(N, {
2846
+ onClick: u[11] || (u[11] = (y) => {
2809
2847
  var p;
2810
2848
  return (p = a.value) == null ? void 0 : p.chain().focus().insertTable({ rows: 3, cols: 3, withHeaderRow: !0 }).run();
2811
2849
  })
2812
2850
  }, {
2813
2851
  prepend: s(() => [
2814
- i(l(B), { name: "mdi-table-plus" })
2852
+ i(l(j), { name: "mdi-table-plus" })
2815
2853
  ]),
2816
2854
  default: s(() => [
2817
- i(N, null, {
2855
+ i(S, null, {
2818
2856
  default: s(() => [
2819
2857
  J(G(l(e).TableInsert), 1)
2820
2858
  ]),
@@ -2823,19 +2861,19 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
2823
2861
  ]),
2824
2862
  _: 1
2825
2863
  }),
2826
- i(_),
2827
- i(O, {
2864
+ i(A),
2865
+ i(N, {
2828
2866
  disabled: !d.value.inTable,
2829
- onClick: c[12] || (c[12] = (y) => {
2867
+ onClick: u[12] || (u[12] = (y) => {
2830
2868
  var p;
2831
2869
  return (p = a.value) == null ? void 0 : p.chain().focus().addRowBefore().run();
2832
2870
  })
2833
2871
  }, {
2834
2872
  prepend: s(() => [
2835
- i(l(B), { name: "mdi-table-row-plus-before" })
2873
+ i(l(j), { name: "mdi-table-row-plus-before" })
2836
2874
  ]),
2837
2875
  default: s(() => [
2838
- i(N, null, {
2876
+ i(S, null, {
2839
2877
  default: s(() => [
2840
2878
  J(G(l(e).TableAddRowAbove), 1)
2841
2879
  ]),
@@ -2844,18 +2882,18 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
2844
2882
  ]),
2845
2883
  _: 1
2846
2884
  }, 8, ["disabled"]),
2847
- i(O, {
2885
+ i(N, {
2848
2886
  disabled: !d.value.inTable,
2849
- onClick: c[13] || (c[13] = (y) => {
2887
+ onClick: u[13] || (u[13] = (y) => {
2850
2888
  var p;
2851
2889
  return (p = a.value) == null ? void 0 : p.chain().focus().addRowAfter().run();
2852
2890
  })
2853
2891
  }, {
2854
2892
  prepend: s(() => [
2855
- i(l(B), { name: "mdi-table-row-plus-after" })
2893
+ i(l(j), { name: "mdi-table-row-plus-after" })
2856
2894
  ]),
2857
2895
  default: s(() => [
2858
- i(N, null, {
2896
+ i(S, null, {
2859
2897
  default: s(() => [
2860
2898
  J(G(l(e).TableAddRowBelow), 1)
2861
2899
  ]),
@@ -2864,18 +2902,18 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
2864
2902
  ]),
2865
2903
  _: 1
2866
2904
  }, 8, ["disabled"]),
2867
- i(O, {
2905
+ i(N, {
2868
2906
  disabled: !d.value.inTable,
2869
- onClick: c[14] || (c[14] = (y) => {
2907
+ onClick: u[14] || (u[14] = (y) => {
2870
2908
  var p;
2871
2909
  return (p = a.value) == null ? void 0 : p.chain().focus().deleteRow().run();
2872
2910
  })
2873
2911
  }, {
2874
2912
  prepend: s(() => [
2875
- i(l(B), { name: "mdi-table-row-remove" })
2913
+ i(l(j), { name: "mdi-table-row-remove" })
2876
2914
  ]),
2877
2915
  default: s(() => [
2878
- i(N, null, {
2916
+ i(S, null, {
2879
2917
  default: s(() => [
2880
2918
  J(G(l(e).TableDeleteRow), 1)
2881
2919
  ]),
@@ -2884,19 +2922,19 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
2884
2922
  ]),
2885
2923
  _: 1
2886
2924
  }, 8, ["disabled"]),
2887
- i(_),
2888
- i(O, {
2925
+ i(A),
2926
+ i(N, {
2889
2927
  disabled: !d.value.inTable,
2890
- onClick: c[15] || (c[15] = (y) => {
2928
+ onClick: u[15] || (u[15] = (y) => {
2891
2929
  var p;
2892
2930
  return (p = a.value) == null ? void 0 : p.chain().focus().addColumnBefore().run();
2893
2931
  })
2894
2932
  }, {
2895
2933
  prepend: s(() => [
2896
- i(l(B), { name: "mdi-table-column-plus-before" })
2934
+ i(l(j), { name: "mdi-table-column-plus-before" })
2897
2935
  ]),
2898
2936
  default: s(() => [
2899
- i(N, null, {
2937
+ i(S, null, {
2900
2938
  default: s(() => [
2901
2939
  J(G(l(e).TableAddColumnBefore), 1)
2902
2940
  ]),
@@ -2905,18 +2943,18 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
2905
2943
  ]),
2906
2944
  _: 1
2907
2945
  }, 8, ["disabled"]),
2908
- i(O, {
2946
+ i(N, {
2909
2947
  disabled: !d.value.inTable,
2910
- onClick: c[16] || (c[16] = (y) => {
2948
+ onClick: u[16] || (u[16] = (y) => {
2911
2949
  var p;
2912
2950
  return (p = a.value) == null ? void 0 : p.chain().focus().addColumnAfter().run();
2913
2951
  })
2914
2952
  }, {
2915
2953
  prepend: s(() => [
2916
- i(l(B), { name: "mdi-table-column-plus-after" })
2954
+ i(l(j), { name: "mdi-table-column-plus-after" })
2917
2955
  ]),
2918
2956
  default: s(() => [
2919
- i(N, null, {
2957
+ i(S, null, {
2920
2958
  default: s(() => [
2921
2959
  J(G(l(e).TableAddColumnAfter), 1)
2922
2960
  ]),
@@ -2925,18 +2963,18 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
2925
2963
  ]),
2926
2964
  _: 1
2927
2965
  }, 8, ["disabled"]),
2928
- i(O, {
2966
+ i(N, {
2929
2967
  disabled: !d.value.inTable,
2930
- onClick: c[17] || (c[17] = (y) => {
2968
+ onClick: u[17] || (u[17] = (y) => {
2931
2969
  var p;
2932
2970
  return (p = a.value) == null ? void 0 : p.chain().focus().deleteColumn().run();
2933
2971
  })
2934
2972
  }, {
2935
2973
  prepend: s(() => [
2936
- i(l(B), { name: "mdi-table-column-remove" })
2974
+ i(l(j), { name: "mdi-table-column-remove" })
2937
2975
  ]),
2938
2976
  default: s(() => [
2939
- i(N, null, {
2977
+ i(S, null, {
2940
2978
  default: s(() => [
2941
2979
  J(G(l(e).TableDeleteColumn), 1)
2942
2980
  ]),
@@ -2945,19 +2983,19 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
2945
2983
  ]),
2946
2984
  _: 1
2947
2985
  }, 8, ["disabled"]),
2948
- i(_),
2949
- i(O, {
2986
+ i(A),
2987
+ i(N, {
2950
2988
  disabled: !d.value.inTable,
2951
- onClick: c[18] || (c[18] = (y) => {
2989
+ onClick: u[18] || (u[18] = (y) => {
2952
2990
  var p;
2953
2991
  return (p = a.value) == null ? void 0 : p.chain().focus().toggleHeaderRow().run();
2954
2992
  })
2955
2993
  }, {
2956
2994
  prepend: s(() => [
2957
- i(l(B), { name: "mdi-table-row" })
2995
+ i(l(j), { name: "mdi-table-row" })
2958
2996
  ]),
2959
2997
  default: s(() => [
2960
- i(N, null, {
2998
+ i(S, null, {
2961
2999
  default: s(() => [
2962
3000
  J(G(l(e).TableToggleHeaderRow), 1)
2963
3001
  ]),
@@ -2966,18 +3004,18 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
2966
3004
  ]),
2967
3005
  _: 1
2968
3006
  }, 8, ["disabled"]),
2969
- i(O, {
3007
+ i(N, {
2970
3008
  disabled: !d.value.inTable,
2971
- onClick: c[19] || (c[19] = (y) => {
3009
+ onClick: u[19] || (u[19] = (y) => {
2972
3010
  var p;
2973
3011
  return (p = a.value) == null ? void 0 : p.chain().focus().deleteTable().run();
2974
3012
  })
2975
3013
  }, {
2976
3014
  prepend: s(() => [
2977
- i(l(B), { name: "mdi-table-remove" })
3015
+ i(l(j), { name: "mdi-table-remove" })
2978
3016
  ]),
2979
3017
  default: s(() => [
2980
- i(N, null, {
3018
+ i(S, null, {
2981
3019
  default: s(() => [
2982
3020
  J(G(l(e).TableDeleteTable), 1)
2983
3021
  ]),
@@ -2997,19 +3035,19 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
2997
3035
  size: "small",
2998
3036
  variant: "text",
2999
3037
  title: l(e).Blockquote,
3000
- disabled: !u.value,
3038
+ disabled: !c.value,
3001
3039
  active: d.value.blockquote,
3002
- onClick: c[20] || (c[20] = (y) => {
3040
+ onClick: u[20] || (u[20] = (y) => {
3003
3041
  var p;
3004
3042
  return (p = a.value) == null ? void 0 : p.chain().focus().toggleBlockquote().run();
3005
3043
  })
3006
3044
  }, {
3007
3045
  default: s(() => [
3008
- i(l(B), { name: "mdi-format-quote-close" })
3046
+ i(l(j), { name: "mdi-format-quote-close" })
3009
3047
  ]),
3010
3048
  _: 1
3011
3049
  }, 8, ["title", "disabled", "active"]),
3012
- i(_, {
3050
+ i(A, {
3013
3051
  vertical: "",
3014
3052
  inset: "",
3015
3053
  class: "mx-1"
@@ -3019,15 +3057,15 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
3019
3057
  size: "small",
3020
3058
  variant: "text",
3021
3059
  title: l(e).AlignLeft,
3022
- disabled: !u.value,
3060
+ disabled: !c.value,
3023
3061
  active: d.value.alignLeft,
3024
- onClick: c[21] || (c[21] = (y) => {
3062
+ onClick: u[21] || (u[21] = (y) => {
3025
3063
  var p;
3026
3064
  return (p = a.value) == null ? void 0 : p.chain().focus().setTextAlign("left").run();
3027
3065
  })
3028
3066
  }, {
3029
3067
  default: s(() => [
3030
- i(l(B), { name: "mdi-format-align-left" })
3068
+ i(l(j), { name: "mdi-format-align-left" })
3031
3069
  ]),
3032
3070
  _: 1
3033
3071
  }, 8, ["title", "disabled", "active"]),
@@ -3036,15 +3074,15 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
3036
3074
  size: "small",
3037
3075
  variant: "text",
3038
3076
  title: l(e).AlignCenter,
3039
- disabled: !u.value,
3077
+ disabled: !c.value,
3040
3078
  active: d.value.alignCenter,
3041
- onClick: c[22] || (c[22] = (y) => {
3079
+ onClick: u[22] || (u[22] = (y) => {
3042
3080
  var p;
3043
3081
  return (p = a.value) == null ? void 0 : p.chain().focus().setTextAlign("center").run();
3044
3082
  })
3045
3083
  }, {
3046
3084
  default: s(() => [
3047
- i(l(B), { name: "mdi-format-align-center" })
3085
+ i(l(j), { name: "mdi-format-align-center" })
3048
3086
  ]),
3049
3087
  _: 1
3050
3088
  }, 8, ["title", "disabled", "active"]),
@@ -3053,15 +3091,15 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
3053
3091
  size: "small",
3054
3092
  variant: "text",
3055
3093
  title: l(e).AlignRight,
3056
- disabled: !u.value,
3094
+ disabled: !c.value,
3057
3095
  active: d.value.alignRight,
3058
- onClick: c[23] || (c[23] = (y) => {
3096
+ onClick: u[23] || (u[23] = (y) => {
3059
3097
  var p;
3060
3098
  return (p = a.value) == null ? void 0 : p.chain().focus().setTextAlign("right").run();
3061
3099
  })
3062
3100
  }, {
3063
3101
  default: s(() => [
3064
- i(l(B), { name: "mdi-format-align-right" })
3102
+ i(l(j), { name: "mdi-format-align-right" })
3065
3103
  ]),
3066
3104
  _: 1
3067
3105
  }, 8, ["title", "disabled", "active"]),
@@ -3070,19 +3108,19 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
3070
3108
  size: "small",
3071
3109
  variant: "text",
3072
3110
  title: l(e).AlignJustify,
3073
- disabled: !u.value,
3111
+ disabled: !c.value,
3074
3112
  active: d.value.alignJustify,
3075
- onClick: c[24] || (c[24] = (y) => {
3113
+ onClick: u[24] || (u[24] = (y) => {
3076
3114
  var p;
3077
3115
  return (p = a.value) == null ? void 0 : p.chain().focus().setTextAlign("justify").run();
3078
3116
  })
3079
3117
  }, {
3080
3118
  default: s(() => [
3081
- i(l(B), { name: "mdi-format-align-justify" })
3119
+ i(l(j), { name: "mdi-format-align-justify" })
3082
3120
  ]),
3083
3121
  _: 1
3084
3122
  }, 8, ["title", "disabled", "active"]),
3085
- i(_, {
3123
+ i(A, {
3086
3124
  vertical: "",
3087
3125
  inset: "",
3088
3126
  class: "mx-1"
@@ -3092,15 +3130,15 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
3092
3130
  size: "small",
3093
3131
  variant: "text",
3094
3132
  title: l(e).BulletedList,
3095
- disabled: !u.value,
3133
+ disabled: !c.value,
3096
3134
  active: d.value.bulletList,
3097
- onClick: c[25] || (c[25] = (y) => {
3135
+ onClick: u[25] || (u[25] = (y) => {
3098
3136
  var p;
3099
3137
  return (p = a.value) == null ? void 0 : p.chain().focus().toggleBulletList().run();
3100
3138
  })
3101
3139
  }, {
3102
3140
  default: s(() => [
3103
- i(l(B), { name: "mdi-format-list-bulleted" })
3141
+ i(l(j), { name: "mdi-format-list-bulleted" })
3104
3142
  ]),
3105
3143
  _: 1
3106
3144
  }, 8, ["title", "disabled", "active"]),
@@ -3109,15 +3147,15 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
3109
3147
  size: "small",
3110
3148
  variant: "text",
3111
3149
  title: l(e).NumberedList,
3112
- disabled: !u.value,
3150
+ disabled: !c.value,
3113
3151
  active: d.value.orderedList,
3114
- onClick: c[26] || (c[26] = (y) => {
3152
+ onClick: u[26] || (u[26] = (y) => {
3115
3153
  var p;
3116
3154
  return (p = a.value) == null ? void 0 : p.chain().focus().toggleOrderedList().run();
3117
3155
  })
3118
3156
  }, {
3119
3157
  default: s(() => [
3120
- i(l(B), { name: "mdi-format-list-numbered" })
3158
+ i(l(j), { name: "mdi-format-list-numbered" })
3121
3159
  ]),
3122
3160
  _: 1
3123
3161
  }, 8, ["title", "disabled", "active"]),
@@ -3126,14 +3164,14 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
3126
3164
  size: "small",
3127
3165
  variant: "text",
3128
3166
  title: l(e).Outdent,
3129
- disabled: !u.value || !d.value.canLift,
3130
- onClick: c[27] || (c[27] = (y) => {
3167
+ disabled: !c.value || !d.value.canLift,
3168
+ onClick: u[27] || (u[27] = (y) => {
3131
3169
  var p;
3132
3170
  return (p = a.value) == null ? void 0 : p.chain().focus().liftListItem("listItem").run();
3133
3171
  })
3134
3172
  }, {
3135
3173
  default: s(() => [
3136
- i(l(B), { name: "mdi-format-indent-decrease" })
3174
+ i(l(j), { name: "mdi-format-indent-decrease" })
3137
3175
  ]),
3138
3176
  _: 1
3139
3177
  }, 8, ["title", "disabled"]),
@@ -3142,22 +3180,22 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
3142
3180
  size: "small",
3143
3181
  variant: "text",
3144
3182
  title: l(e).Indent,
3145
- disabled: !u.value || !d.value.canSink,
3146
- onClick: c[28] || (c[28] = (y) => {
3183
+ disabled: !c.value || !d.value.canSink,
3184
+ onClick: u[28] || (u[28] = (y) => {
3147
3185
  var p;
3148
3186
  return (p = a.value) == null ? void 0 : p.chain().focus().sinkListItem("listItem").run();
3149
3187
  })
3150
3188
  }, {
3151
3189
  default: s(() => [
3152
- i(l(B), { name: "mdi-format-indent-increase" })
3190
+ i(l(j), { name: "mdi-format-indent-increase" })
3153
3191
  ]),
3154
3192
  _: 1
3155
3193
  }, 8, ["title", "disabled"])
3156
3194
  ], 2);
3157
3195
  };
3158
3196
  }
3159
- }), Zl = /^[a-z][a-z0-9]*:[a-z]/i, ea = /mso-[a-z-]+\s*:[^;]+;?/gi, ta = /^Mso/i, na = /background(?:-color)?\s*:[^;]+;?/gi;
3160
- function la(t) {
3197
+ }), ta = /^[a-z][a-z0-9]*:[a-z]/i, na = /mso-[a-z-]+\s*:[^;]+;?/gi, la = /^Mso/i, aa = /background(?:-color)?\s*:[^;]+;?/gi;
3198
+ function oa(t) {
3161
3199
  const n = document.createTreeWalker(t, NodeFilter.SHOW_COMMENT), e = [];
3162
3200
  for (let a = n.nextNode(); a; a = n.nextNode()) e.push(a);
3163
3201
  e.forEach((a) => {
@@ -3172,33 +3210,33 @@ function rt(t) {
3172
3210
  n.removeChild(t);
3173
3211
  }
3174
3212
  }
3175
- function aa(t) {
3213
+ function ia(t) {
3176
3214
  const n = t.getAttribute("style");
3177
3215
  if (n != null) {
3178
- const a = n.replace(ea, "").replace(na, "").trim();
3216
+ const a = n.replace(na, "").replace(aa, "").trim();
3179
3217
  a ? t.setAttribute("style", a) : t.removeAttribute("style");
3180
3218
  }
3181
3219
  const e = t.getAttribute("class");
3182
3220
  if (e != null) {
3183
- const a = e.split(/\s+/).filter((r) => r && !ta.test(r)).join(" ");
3221
+ const a = e.split(/\s+/).filter((r) => r && !la.test(r)).join(" ");
3184
3222
  a ? t.setAttribute("class", a) : t.removeAttribute("class");
3185
3223
  }
3186
3224
  t.removeAttribute("lang"), t.removeAttribute("xml:lang"), t.removeAttribute("id"), t.removeAttribute("align"), t.removeAttribute("bgcolor");
3187
3225
  }
3188
- function oa(t) {
3226
+ function ra(t) {
3189
3227
  if (!t || typeof DOMParser == "undefined") return t;
3190
3228
  const e = new DOMParser().parseFromString(t, "text/html").body;
3191
- return e ? (la(e), e.querySelectorAll("xml, style, script, meta, link").forEach((a) => a.remove()), Array.from(e.querySelectorAll("*")).forEach((a) => {
3192
- if (Zl.test(a.tagName) || a.tagName === "FONT") {
3229
+ return e ? (oa(e), e.querySelectorAll("xml, style, script, meta, link").forEach((a) => a.remove()), Array.from(e.querySelectorAll("*")).forEach((a) => {
3230
+ if (ta.test(a.tagName) || a.tagName === "FONT") {
3193
3231
  rt(a);
3194
3232
  return;
3195
3233
  }
3196
- aa(a);
3234
+ ia(a);
3197
3235
  }), Array.from(e.querySelectorAll("span, div")).forEach((a) => {
3198
3236
  a.attributes.length === 0 && rt(a);
3199
3237
  }), e.innerHTML) : t;
3200
3238
  }
3201
- const ia = { class: "editor-container" }, ra = { class: "rtf-bubble-menu" }, sa = /* @__PURE__ */ te({
3239
+ const sa = { class: "editor-container" }, ua = { class: "rtf-bubble-menu" }, ca = /* @__PURE__ */ ne({
3202
3240
  __name: "editor-core",
3203
3241
  props: {
3204
3242
  modelValue: { default: "" },
@@ -3215,7 +3253,7 @@ const ia = { class: "editor-container" }, ra = { class: "rtf-bubble-menu" }, sa
3215
3253
  editable: !e.disabled,
3216
3254
  extensions: [
3217
3255
  cn.configure({ link: !1 }),
3218
- ql.configure({ openOnClick: !1, autolink: !0, defaultProtocol: "https" }),
3256
+ Gl.configure({ openOnClick: !1, autolink: !0, defaultProtocol: "https" }),
3219
3257
  tn.configure({
3220
3258
  inline: !0,
3221
3259
  allowBase64: !0,
@@ -3232,15 +3270,15 @@ const ia = { class: "editor-container" }, ra = { class: "rtf-bubble-menu" }, sa
3232
3270
  on,
3233
3271
  an,
3234
3272
  nn.configure({ placeholder: "" }),
3235
- El,
3236
3273
  Ul,
3237
3274
  zl,
3238
- Gl
3275
+ Hl,
3276
+ Yl
3239
3277
  ],
3240
3278
  editorProps: {
3241
3279
  attributes: { class: "rtf-content" },
3242
- transformPastedHTML: (v) => oa(v),
3243
- handlePaste: Wl(() => r.value)
3280
+ transformPastedHTML: (v) => ra(v),
3281
+ handlePaste: Kl(() => r.value)
3244
3282
  },
3245
3283
  onUpdate: ({ editor: v }) => {
3246
3284
  a("update:modelValue", v.getHTML());
@@ -3249,34 +3287,34 @@ const ia = { class: "editor-container" }, ra = { class: "rtf-bubble-menu" }, sa
3249
3287
  me(
3250
3288
  () => e.modelValue,
3251
3289
  (v) => {
3252
- const g = r.value;
3253
- if (!g) return;
3254
- const T = v != null ? v : "";
3255
- T !== g.getHTML() && g.commands.setContent(T, { emitUpdate: !1 });
3290
+ const b = r.value;
3291
+ if (!b) return;
3292
+ const _ = v != null ? v : "";
3293
+ _ !== b.getHTML() && b.commands.setContent(_, { emitUpdate: !1 });
3256
3294
  }
3257
3295
  ), me(
3258
3296
  () => e.disabled,
3259
3297
  (v) => {
3260
- var g;
3261
- return (g = r.value) == null ? void 0 : g.setEditable(!v);
3298
+ var b;
3299
+ return (b = r.value) == null ? void 0 : b.setEditable(!v);
3262
3300
  }
3263
3301
  ), me(r, (v) => v == null ? void 0 : v.setEditable(!e.disabled));
3264
- const u = Bt(r), d = x(() => {
3265
- var v, g, T, $, C;
3266
- return u.value, {
3302
+ const c = Bt(r), d = C(() => {
3303
+ var v, b, _, B, x;
3304
+ return c.value, {
3267
3305
  bold: !!((v = r.value) != null && v.isActive("bold")),
3268
- italic: !!((g = r.value) != null && g.isActive("italic")),
3269
- link: !!((T = r.value) != null && T.isActive("link")),
3270
- bulletList: !!(($ = r.value) != null && $.isActive("bulletList")),
3271
- orderedList: !!((C = r.value) != null && C.isActive("orderedList"))
3306
+ italic: !!((b = r.value) != null && b.isActive("italic")),
3307
+ link: !!((_ = r.value) != null && _.isActive("link")),
3308
+ bulletList: !!((B = r.value) != null && B.isActive("bulletList")),
3309
+ orderedList: !!((x = r.value) != null && x.isActive("orderedList"))
3272
3310
  };
3273
3311
  });
3274
3312
  function h({ state: v }) {
3275
3313
  return !v.selection.empty && !(v.selection instanceof un);
3276
3314
  }
3277
3315
  function k(v) {
3278
- var g;
3279
- (g = r.value) == null || g.chain().focus()[v]().run();
3316
+ var b;
3317
+ (b = r.value) == null || b.chain().focus()[v]().run();
3280
3318
  }
3281
3319
  function f() {
3282
3320
  const v = r.value;
@@ -3285,49 +3323,49 @@ const ia = { class: "editor-container" }, ra = { class: "rtf-bubble-menu" }, sa
3285
3323
  v.chain().focus().unsetLink().run();
3286
3324
  return;
3287
3325
  }
3288
- const g = window.prompt("URL");
3289
- g && v.chain().focus().extendMarkRange("link").setLink({ href: g }).run();
3326
+ const b = window.prompt("URL");
3327
+ b && v.chain().focus().extendMarkRange("link").setLink({ href: b }).run();
3290
3328
  }
3291
- return (v, g) => {
3292
- const T = R("v-btn");
3293
- return V(), Z("div", ia, [
3294
- i(Ql, { editor: l(r) }, null, 8, ["editor"]),
3329
+ return (v, b) => {
3330
+ const _ = P("v-btn");
3331
+ return T(), Q("div", sa, [
3332
+ i(ea, { editor: l(r) }, null, 8, ["editor"]),
3295
3333
  i(l(mn), {
3296
3334
  class: "editor-container__editor",
3297
3335
  editor: l(r)
3298
3336
  }, null, 8, ["editor"]),
3299
- l(r) ? (V(), F(l(vn), {
3337
+ l(r) ? (T(), H(l(vn), {
3300
3338
  key: 0,
3301
3339
  editor: l(r),
3302
3340
  "should-show": h
3303
3341
  }, {
3304
3342
  default: s(() => [
3305
- oe("div", ra, [
3306
- i(T, {
3343
+ ae("div", ua, [
3344
+ i(_, {
3307
3345
  icon: "",
3308
3346
  size: "small",
3309
3347
  variant: "text",
3310
3348
  active: d.value.bold,
3311
- onClick: g[0] || (g[0] = ($) => k("toggleBold"))
3349
+ onClick: b[0] || (b[0] = (B) => k("toggleBold"))
3312
3350
  }, {
3313
3351
  default: s(() => [
3314
- i(l(B), { name: "mdi-format-bold" })
3352
+ i(l(j), { name: "mdi-format-bold" })
3315
3353
  ]),
3316
3354
  _: 1
3317
3355
  }, 8, ["active"]),
3318
- i(T, {
3356
+ i(_, {
3319
3357
  icon: "",
3320
3358
  size: "small",
3321
3359
  variant: "text",
3322
3360
  active: d.value.italic,
3323
- onClick: g[1] || (g[1] = ($) => k("toggleItalic"))
3361
+ onClick: b[1] || (b[1] = (B) => k("toggleItalic"))
3324
3362
  }, {
3325
3363
  default: s(() => [
3326
- i(l(B), { name: "mdi-format-italic" })
3364
+ i(l(j), { name: "mdi-format-italic" })
3327
3365
  ]),
3328
3366
  _: 1
3329
3367
  }, 8, ["active"]),
3330
- i(T, {
3368
+ i(_, {
3331
3369
  icon: "",
3332
3370
  size: "small",
3333
3371
  variant: "text",
@@ -3335,31 +3373,31 @@ const ia = { class: "editor-container" }, ra = { class: "rtf-bubble-menu" }, sa
3335
3373
  onClick: f
3336
3374
  }, {
3337
3375
  default: s(() => [
3338
- i(l(B), { name: "mdi-link-variant" })
3376
+ i(l(j), { name: "mdi-link-variant" })
3339
3377
  ]),
3340
3378
  _: 1
3341
3379
  }, 8, ["active"]),
3342
- i(T, {
3380
+ i(_, {
3343
3381
  icon: "",
3344
3382
  size: "small",
3345
3383
  variant: "text",
3346
3384
  active: d.value.bulletList,
3347
- onClick: g[2] || (g[2] = ($) => k("toggleBulletList"))
3385
+ onClick: b[2] || (b[2] = (B) => k("toggleBulletList"))
3348
3386
  }, {
3349
3387
  default: s(() => [
3350
- i(l(B), { name: "mdi-format-list-bulleted" })
3388
+ i(l(j), { name: "mdi-format-list-bulleted" })
3351
3389
  ]),
3352
3390
  _: 1
3353
3391
  }, 8, ["active"]),
3354
- i(T, {
3392
+ i(_, {
3355
3393
  icon: "",
3356
3394
  size: "small",
3357
3395
  variant: "text",
3358
3396
  active: d.value.orderedList,
3359
- onClick: g[3] || (g[3] = ($) => k("toggleOrderedList"))
3397
+ onClick: b[3] || (b[3] = (B) => k("toggleOrderedList"))
3360
3398
  }, {
3361
3399
  default: s(() => [
3362
- i(l(B), { name: "mdi-format-list-numbered" })
3400
+ i(l(j), { name: "mdi-format-list-numbered" })
3363
3401
  ]),
3364
3402
  _: 1
3365
3403
  }, 8, ["active"])
@@ -3370,7 +3408,7 @@ const ia = { class: "editor-container" }, ra = { class: "rtf-bubble-menu" }, sa
3370
3408
  ]);
3371
3409
  };
3372
3410
  }
3373
- }), Lt = /* @__PURE__ */ te({
3411
+ }), Dt = /* @__PURE__ */ ne({
3374
3412
  __name: "df-rtf-editor",
3375
3413
  props: /* @__PURE__ */ pe({
3376
3414
  minHeight: {},
@@ -3388,18 +3426,18 @@ const ia = { class: "editor-container" }, ra = { class: "rtf-bubble-menu" }, sa
3388
3426
  passthroughAttrs: {},
3389
3427
  density: {},
3390
3428
  variant: {}
3391
- }, ee(z({}, be), { minHeight: void 0 })),
3429
+ }, te(z({}, be), { minHeight: void 0 })),
3392
3430
  emits: ["update:modelValue", "click:clear"],
3393
3431
  setup(t, { emit: n }) {
3394
- const e = t, a = n, { densityClass: r, value: u, vuetifyBindings: d } = ce(e, a);
3395
- return (h, k) => (V(), F(l(He), X(e, {
3432
+ const e = t, a = n, { densityClass: r, value: c, vuetifyBindings: d } = ce(e, a);
3433
+ return (h, k) => (T(), H(l(We), X(e, {
3396
3434
  class: ["rtf-editor", l(r)]
3397
3435
  }), {
3398
3436
  default: s((f) => [
3399
- i(sa, X({
3437
+ i(ca, X({
3400
3438
  ref: "$editor",
3401
- modelValue: l(u),
3402
- "onUpdate:modelValue": k[0] || (k[0] = (v) => Ce(u) ? u.value = v : null),
3439
+ modelValue: l(c),
3440
+ "onUpdate:modelValue": k[0] || (k[0] = (v) => xe(c) ? c.value = v : null),
3403
3441
  class: { "mt-6": !!t.label },
3404
3442
  "min-height": t.minHeight,
3405
3443
  disabled: l(d).disabled
@@ -3412,38 +3450,38 @@ const ia = { class: "editor-container" }, ra = { class: "rtf-bubble-menu" }, sa
3412
3450
  }, 16, ["class"]));
3413
3451
  }
3414
3452
  });
3415
- function ua(t) {
3453
+ function da(t) {
3416
3454
  return t.map((n) => ({ value: n.id, title: n.text, icon: n.icon }));
3417
3455
  }
3418
3456
  function de(t, n) {
3419
3457
  var e;
3420
3458
  return t == null || at(t) && t.length === 0 ? null : n ? dt(t) : at(t) ? (e = mt(t)) != null ? e : null : t;
3421
3459
  }
3422
- function ze(t, n) {
3460
+ function He(t, n) {
3423
3461
  if (n == null) return [];
3424
3462
  const e = dt(n);
3425
3463
  return t.filter((a) => e.some((r) => r === a.id));
3426
3464
  }
3427
3465
  function Ie(t, n, e, a, r) {
3428
3466
  var d;
3429
- const u = de(t, e);
3430
- if (u == null) {
3467
+ const c = de(t, e);
3468
+ if (c == null) {
3431
3469
  n.value = e ? [] : null;
3432
3470
  return;
3433
3471
  }
3434
3472
  if (e)
3435
- a ? n.value = u : n.value = ze(r, u).map((h) => h.id);
3473
+ a ? n.value = c : n.value = He(r, c).map((h) => h.id);
3436
3474
  else if (a)
3437
- n.value = u;
3475
+ n.value = c;
3438
3476
  else {
3439
- const h = mt(ze(r, u));
3477
+ const h = mt(He(r, c));
3440
3478
  n.value = (d = h == null ? void 0 : h.id) != null ? d : null;
3441
3479
  }
3442
3480
  }
3443
- const ca = {
3481
+ const ma = {
3444
3482
  key: 0,
3445
3483
  class: "me-1"
3446
- }, da = /* @__PURE__ */ te({
3484
+ }, va = /* @__PURE__ */ ne({
3447
3485
  __name: "df-select",
3448
3486
  props: /* @__PURE__ */ pe({
3449
3487
  choices: {},
@@ -3465,7 +3503,7 @@ const ca = {
3465
3503
  passthroughAttrs: {},
3466
3504
  density: {},
3467
3505
  variant: {}
3468
- }, ee(z({}, be), {
3506
+ }, te(z({}, be), {
3469
3507
  choices: void 0,
3470
3508
  multiple: !1,
3471
3509
  allowTags: !1,
@@ -3474,165 +3512,165 @@ const ca = {
3474
3512
  })),
3475
3513
  emits: ["update:modelValueDisplay", "update:modelValue", "click:clear"],
3476
3514
  setup(t, { emit: n }) {
3477
- var Ze;
3478
- const e = t, { choices: a, multiple: r, allowTags: u, allowNull: d, cssClass: h } = Fe(e), k = n, f = M(null), {
3515
+ var Re;
3516
+ const e = t, { choices: a, multiple: r, allowTags: c, allowNull: d, cssClass: h } = Oe(e), k = n, f = R(null), {
3479
3517
  densityClass: v,
3480
- isRendered: g,
3481
- label: T,
3482
- showErrors: $,
3483
- touched: C,
3484
- value: j,
3485
- visibilityClass: P,
3486
- vuetifyBindings: D
3487
- } = ce(e, k), b = M(null), S = M(!1), H = M([]), K = x(() => l(S) ? l(H) : l(a) || []), W = M(!1), L = x(() => ua(K.value)), w = M(null), o = M(0), c = M(!1);
3488
- (Ze = a.value) != null && Ze.length && e.fetchChoices !== void 0 && console.warn("Both choices and fetchChoices are set. Only one of them should be set.");
3518
+ isRendered: b,
3519
+ label: _,
3520
+ showErrors: B,
3521
+ touched: x,
3522
+ value: V,
3523
+ visibilityClass: E,
3524
+ vuetifyBindings: L
3525
+ } = ce(e, k), g = R(null), $ = R(!1), W = R([]), q = C(() => l($) ? l(W) : l(a) || []), Z = R(!1), M = C(() => da(q.value)), w = R(null), o = R(0), u = R(!1);
3526
+ (Re = a.value) != null && Re.length && e.fetchChoices !== void 0 && console.warn("Both choices and fetchChoices are set. Only one of them should be set.");
3489
3527
  function m(I) {
3490
- k("update:modelValueDisplay", ze(K.value, I));
3528
+ k("update:modelValueDisplay", He(q.value, I));
3491
3529
  }
3492
- const _ = M(!1);
3493
- function N(I) {
3494
- _.value = !0;
3530
+ const A = R(!1);
3531
+ function S(I) {
3532
+ A.value = !0;
3495
3533
  try {
3496
- j.value = I;
3534
+ V.value = I;
3497
3535
  } finally {
3498
- Jt(de(j.value, r.value), I) || Ie(
3499
- de(j.value, r.value),
3500
- b,
3536
+ Jt(de(V.value, r.value), I) || Ie(
3537
+ de(V.value, r.value),
3538
+ g,
3501
3539
  r.value,
3502
- u.value,
3503
- K.value
3504
- ), Ke(() => {
3505
- _.value = !1;
3540
+ c.value,
3541
+ q.value
3542
+ ), Xe(() => {
3543
+ A.value = !1;
3506
3544
  });
3507
3545
  }
3508
3546
  }
3509
- function O(I) {
3547
+ function N(I) {
3510
3548
  if (!I) return 0;
3511
- const E = I.getBoundingClientRect(), ae = window.getComputedStyle(I);
3512
- return E.width + parseFloat(ae.marginLeft) + parseFloat(ae.marginRight);
3549
+ const F = I.getBoundingClientRect(), oe = window.getComputedStyle(I);
3550
+ return F.width + parseFloat(oe.marginLeft) + parseFloat(oe.marginRight);
3513
3551
  }
3514
- function ne() {
3552
+ function le() {
3515
3553
  var I;
3516
- if (r.value && d.value && b.value != null && b.value.length > 0 && f.value) {
3517
- const E = f.value.$el, ae = (I = E.querySelector(".v-input__control")) == null ? void 0 : I.clientWidth, ie = E.querySelector(".v-field__input"), U = ie.querySelectorAll(".v-autocomplete__selection, .v-combobox__selection"), re = window.getComputedStyle(ie);
3554
+ if (r.value && d.value && g.value != null && g.value.length > 0 && f.value) {
3555
+ const F = f.value.$el, oe = (I = F.querySelector(".v-input__control")) == null ? void 0 : I.clientWidth, ie = F.querySelector(".v-field__input"), U = ie.querySelectorAll(".v-autocomplete__selection, .v-combobox__selection"), re = window.getComputedStyle(ie);
3518
3556
  let Ve = parseFloat(re.paddingLeft) + parseFloat(re.paddingRight);
3519
3557
  U.forEach((Rt) => {
3520
- Ve += O(Rt);
3558
+ Ve += N(Rt);
3521
3559
  });
3522
- const Dt = O(E.querySelector(".v-field .v-field__clearable")), St = O(E.querySelector(".v-field .v-field__append-inner")), Mt = 2;
3523
- c.value = ae - Ve - U.length * Mt - St < Dt;
3560
+ const $t = N(F.querySelector(".v-field .v-field__clearable")), St = N(F.querySelector(".v-field .v-field__append-inner")), Mt = 2;
3561
+ u.value = oe - Ve - U.length * Mt - St < $t;
3524
3562
  } else
3525
- c.value = !1;
3563
+ u.value = !1;
3526
3564
  }
3527
- function A(I) {
3528
- const E = I.target;
3529
- E instanceof HTMLElement && E.closest(".v-chip__close") && (I.stopPropagation(), I.preventDefault());
3565
+ function D(I) {
3566
+ const F = I.target;
3567
+ F instanceof HTMLElement && F.closest(".v-chip__close") && (I.stopPropagation(), I.preventDefault());
3530
3568
  }
3531
3569
  me(
3532
- b,
3570
+ g,
3533
3571
  (I) => {
3534
- D.value.readonly || Ke(() => {
3535
- const E = de(I, r.value);
3536
- m(E), N(E);
3572
+ L.value.readonly || Xe(() => {
3573
+ const F = de(I, r.value);
3574
+ m(F), S(F);
3537
3575
  });
3538
3576
  },
3539
3577
  { deep: !0 }
3540
3578
  ), me(
3541
- j,
3579
+ V,
3542
3580
  (I) => {
3543
- if (!_.value) {
3544
- const E = de(I, r.value);
3545
- Ie(E, b, r.value, !1, K.value);
3581
+ if (!A.value) {
3582
+ const F = de(I, r.value);
3583
+ Ie(F, g, r.value, !1, q.value);
3546
3584
  }
3547
3585
  },
3548
3586
  { deep: !0 }
3549
- ), me(_, () => {
3550
- _.value || ne();
3587
+ ), me(A, () => {
3588
+ A.value || le();
3551
3589
  });
3552
- function q() {
3590
+ function O() {
3553
3591
  w.value != null && w.value.length > 0 && (w.value = null, y());
3554
3592
  }
3555
- function Q() {
3556
- if (q(), D.value.readonly || u.value) return;
3557
- const I = de(b.value, r.value);
3558
- Ie(I, b, r.value, !1, K.value), N(I);
3593
+ function K() {
3594
+ if (O(), L.value.readonly || c.value) return;
3595
+ const I = de(g.value, r.value);
3596
+ Ie(I, g, r.value, !1, q.value), S(I);
3559
3597
  }
3560
- function le(I, E) {
3561
- if (I.stopPropagation(), D.value.readonly || u.value) {
3562
- u.value && (b.value = b.value.filter((ie) => ie !== E));
3598
+ function ee(I, F) {
3599
+ if (I.stopPropagation(), L.value.readonly || c.value) {
3600
+ c.value && (g.value = g.value.filter((ie) => ie !== F));
3563
3601
  return;
3564
3602
  }
3565
- let ae;
3566
- r.value && Array.isArray(b.value) ? ae = de(
3567
- b.value.filter((ie) => ie !== E),
3603
+ let oe;
3604
+ r.value && Array.isArray(g.value) ? oe = de(
3605
+ g.value.filter((ie) => ie !== F),
3568
3606
  r.value
3569
- ) : ae = null, Ie(ae, b, r.value, !1, K.value), N(ae);
3607
+ ) : oe = null, Ie(oe, g, r.value, !1, q.value), S(oe);
3570
3608
  }
3571
- function y(I, E) {
3572
- return ge(this, null, function* () {
3573
- if (D.value.readonly || (w.value = I, a.value || e.fetchChoices === void 0)) return;
3574
- const ae = ++o.value;
3575
- W.value = !0;
3609
+ function y(I, F) {
3610
+ return he(this, null, function* () {
3611
+ if (L.value.readonly || (w.value = I, a.value || e.fetchChoices === void 0)) return;
3612
+ const oe = ++o.value;
3613
+ Z.value = !0;
3576
3614
  try {
3577
- const ie = ze(
3578
- K.value,
3579
- de(b.value, r.value)
3580
- ), U = yield e.fetchChoices(I, E);
3581
- if (ae !== o.value) return;
3582
- H.value = Qt([...ie, ...U], "id"), S.value = !0;
3615
+ const ie = He(
3616
+ q.value,
3617
+ de(g.value, r.value)
3618
+ ), U = yield e.fetchChoices(I, F);
3619
+ if (oe !== o.value) return;
3620
+ W.value = Qt([...ie, ...U], "id"), $.value = !0;
3583
3621
  } finally {
3584
- W.value = !1;
3622
+ Z.value = !1;
3585
3623
  }
3586
3624
  });
3587
3625
  }
3588
3626
  function p() {
3589
- let I = j.value;
3590
- !d.value && I == null && L.value.length && (I = L.value[0].value), I = de(I, r.value), Ie(I, b, r.value, u.value, K.value), m(I), N(I);
3627
+ let I = V.value;
3628
+ !d.value && I == null && M.value.length && (I = M.value[0].value), I = de(I, r.value), Ie(I, g, r.value, c.value, q.value), m(I), S(I);
3591
3629
  }
3592
- return p(), e.fetchChoices !== void 0 && y(void 0, j.value).then(() => {
3630
+ return p(), e.fetchChoices !== void 0 && y(void 0, V.value).then(() => {
3593
3631
  p();
3594
- }), (I, E) => {
3595
- const ae = R("v-chip"), ie = R("v-list-item");
3596
- return l(g) ? (V(), F(Ue(l(u) ? "v-combobox" : "v-autocomplete"), X({
3632
+ }), (I, F) => {
3633
+ const oe = P("v-chip"), ie = P("v-list-item");
3634
+ return l(b) ? (T(), H(Ue(l(c) ? "v-combobox" : "v-autocomplete"), X({
3597
3635
  key: 0,
3598
3636
  ref_key: "dfSelectRef",
3599
3637
  ref: f,
3600
- modelValue: b.value,
3601
- "onUpdate:modelValue": E[0] || (E[0] = (U) => b.value = U),
3602
- class: [l(h), l(v), l(P), { "df-select-multirow": c.value }],
3603
- items: L.value,
3638
+ modelValue: g.value,
3639
+ "onUpdate:modelValue": F[0] || (F[0] = (U) => g.value = U),
3640
+ class: [l(h), l(v), l(E), { "df-select-multirow": u.value }],
3641
+ items: M.value,
3604
3642
  "return-object": !1,
3605
3643
  chips: "",
3606
3644
  "auto-select-first": !0,
3607
- "closable-chips": l(d) || l(r) && b.value.length > 1,
3645
+ "closable-chips": l(d) || l(r) && g.value.length > 1,
3608
3646
  clearable: l(d),
3609
3647
  multiple: l(r),
3610
- loading: W.value,
3648
+ loading: Z.value,
3611
3649
  "hide-selected": !1,
3612
- "aria-describedby": l(D).helpText ? `${l(D).name}-help` : null,
3650
+ "aria-describedby": l(L).helpText ? `${l(L).name}-help` : null,
3613
3651
  "menu-props": { maxHeight: "400" },
3614
3652
  search: w.value
3615
- }, l(D), {
3616
- "onUpdate:search": E[1] || (E[1] = (U) => y(U, void 0)),
3617
- "onUpdate:modelValue": Q,
3618
- "onClick:clear": E[2] || (E[2] = (U) => b.value = null),
3619
- onBlur: E[3] || (E[3] = (U) => C.value = !0),
3620
- onMousedownCapture: E[4] || (E[4] = (U) => A(U))
3621
- }), Ge({
3653
+ }, l(L), {
3654
+ "onUpdate:search": F[1] || (F[1] = (U) => y(U, void 0)),
3655
+ "onUpdate:modelValue": K,
3656
+ "onClick:clear": F[2] || (F[2] = (U) => g.value = null),
3657
+ onBlur: F[3] || (F[3] = (U) => x.value = !0),
3658
+ onMousedownCapture: F[4] || (F[4] = (U) => D(U))
3659
+ }), ze({
3622
3660
  chip: s(({ item: U }) => [
3623
- (V(), F(ae, {
3661
+ (T(), H(oe, {
3624
3662
  key: U.value,
3625
3663
  label: "",
3626
3664
  size: "small",
3627
3665
  class: "d-flex align-middle",
3628
3666
  variant: l(r) ? "tonal" : "text",
3629
3667
  closable: l(r),
3630
- "onClick:close": (re) => le(re, U.value)
3668
+ "onClick:close": (re) => ee(re, U.value)
3631
3669
  }, {
3632
3670
  prepend: s(() => {
3633
3671
  var re;
3634
3672
  return [
3635
- (re = U.raw) != null && re.icon ? (V(), F(l(B), {
3673
+ (re = U.raw) != null && re.icon ? (T(), H(l(j), {
3636
3674
  key: 0,
3637
3675
  class: "me-1",
3638
3676
  name: U.raw.icon
@@ -3640,7 +3678,7 @@ const ca = {
3640
3678
  ];
3641
3679
  }),
3642
3680
  default: s(() => [
3643
- oe("span", {
3681
+ ae("span", {
3644
3682
  class: ue({ "text-body-1": !l(r) })
3645
3683
  }, G(U.title), 3)
3646
3684
  ]),
@@ -3650,16 +3688,16 @@ const ca = {
3650
3688
  label: s((U) => [
3651
3689
  i(l(fe), {
3652
3690
  data: U,
3653
- label: l(T)
3691
+ label: l(_)
3654
3692
  }, null, 8, ["data", "label"])
3655
3693
  ]),
3656
3694
  item: s(({ props: U, item: re }) => [
3657
- i(ie, ye(ke(U)), {
3695
+ i(ie, we(Ce(U)), {
3658
3696
  prepend: s(() => {
3659
3697
  var Ve;
3660
3698
  return [
3661
- (Ve = re.raw) != null && Ve.icon ? (V(), Z("span", ca, [
3662
- i(l(B), {
3699
+ (Ve = re.raw) != null && Ve.icon ? (T(), Q("span", ma, [
3700
+ i(l(j), {
3663
3701
  class: "action-icon",
3664
3702
  name: re.raw.icon
3665
3703
  }, null, 8, ["name"])
@@ -3672,7 +3710,7 @@ const ca = {
3672
3710
  message: s(({ message: U }) => [
3673
3711
  i(l(ve), {
3674
3712
  message: U,
3675
- errors: l($)
3713
+ errors: l(B)
3676
3714
  }, null, 8, ["message", "errors"])
3677
3715
  ]),
3678
3716
  _: 2
@@ -3680,26 +3718,26 @@ const ca = {
3680
3718
  I.$slots["append-inner"] ? {
3681
3719
  name: "append-inner",
3682
3720
  fn: s((U) => [
3683
- _e(I.$slots, "append-inner", ye(ke(U)), void 0, !0)
3721
+ Te(I.$slots, "append-inner", we(Ce(U)), void 0, !0)
3684
3722
  ]),
3685
3723
  key: "0"
3686
3724
  } : void 0,
3687
3725
  I.$slots["prepend-inner"] ? {
3688
3726
  name: "prepend-inner",
3689
3727
  fn: s((U) => [
3690
- _e(I.$slots, "prepend-inner", ye(ke(U)), void 0, !0)
3728
+ Te(I.$slots, "prepend-inner", we(Ce(U)), void 0, !0)
3691
3729
  ]),
3692
3730
  key: "1"
3693
3731
  } : void 0
3694
3732
  ]), 1040, ["modelValue", "class", "items", "closable-chips", "clearable", "multiple", "loading", "aria-describedby", "search"])) : Y("", !0);
3695
3733
  };
3696
3734
  }
3697
- }), ma = (t, n) => {
3735
+ }), fa = (t, n) => {
3698
3736
  const e = t.__vccOpts || t;
3699
3737
  for (const [a, r] of n)
3700
3738
  e[a] = r;
3701
3739
  return e;
3702
- }, It = /* @__PURE__ */ ma(da, [["__scopeId", "data-v-7e5aa3b6"]]), $t = /* @__PURE__ */ te({
3740
+ }, It = /* @__PURE__ */ fa(va, [["__scopeId", "data-v-7e5aa3b6"]]), Lt = /* @__PURE__ */ ne({
3703
3741
  __name: "df-text-area",
3704
3742
  props: /* @__PURE__ */ pe({
3705
3743
  rows: {},
@@ -3718,41 +3756,41 @@ const ca = {
3718
3756
  passthroughAttrs: {},
3719
3757
  density: {},
3720
3758
  variant: {}
3721
- }, ee(z({}, be), {
3759
+ }, te(z({}, be), {
3722
3760
  rows: void 0,
3723
3761
  maxRows: void 0
3724
3762
  })),
3725
3763
  emits: ["update:modelValue", "click:clear"],
3726
3764
  setup(t, { emit: n }) {
3727
- const e = t, a = n, { densityClass: r, isRendered: u, label: d, showErrors: h, touched: k, value: f, visibilityClass: v, vuetifyBindings: g } = ce(
3765
+ const e = t, a = n, { densityClass: r, isRendered: c, label: d, showErrors: h, touched: k, value: f, visibilityClass: v, vuetifyBindings: b } = ce(
3728
3766
  e,
3729
3767
  a
3730
- ), { cssClass: T } = Fe(e);
3731
- return ($, C) => {
3732
- const j = R("v-textarea");
3733
- return l(u) ? (V(), Z("div", {
3768
+ ), { cssClass: _ } = Oe(e);
3769
+ return (B, x) => {
3770
+ const V = P("v-textarea");
3771
+ return l(c) ? (T(), Q("div", {
3734
3772
  key: 0,
3735
3773
  class: ue(["df-textarea-container", [l(r), l(v)]])
3736
3774
  }, [
3737
- i(j, X({
3775
+ i(V, X({
3738
3776
  modelValue: l(f),
3739
- "onUpdate:modelValue": C[0] || (C[0] = (P) => Ce(f) ? f.value = P : null),
3740
- class: l(T),
3777
+ "onUpdate:modelValue": x[0] || (x[0] = (E) => xe(f) ? f.value = E : null),
3778
+ class: l(_),
3741
3779
  rows: t.rows,
3742
3780
  "auto-grow": (t.maxRows || 0) > 0,
3743
3781
  "max-rows": t.maxRows
3744
- }, l(g), {
3745
- onBlur: C[1] || (C[1] = (P) => k.value = !0)
3782
+ }, l(b), {
3783
+ onBlur: x[1] || (x[1] = (E) => k.value = !0)
3746
3784
  }), {
3747
- label: s((P) => [
3785
+ label: s((E) => [
3748
3786
  i(l(fe), {
3749
- data: P,
3787
+ data: E,
3750
3788
  label: l(d)
3751
3789
  }, null, 8, ["data", "label"])
3752
3790
  ]),
3753
- message: s(({ message: P }) => [
3791
+ message: s(({ message: E }) => [
3754
3792
  i(l(ve), {
3755
- message: P,
3793
+ message: E,
3756
3794
  errors: l(h)
3757
3795
  }, null, 8, ["message", "errors"])
3758
3796
  ]),
@@ -3761,7 +3799,7 @@ const ca = {
3761
3799
  ], 2)) : Y("", !0);
3762
3800
  };
3763
3801
  }
3764
- }), va = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3802
+ }), pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3765
3803
  __proto__: null,
3766
3804
  DfActions: ht,
3767
3805
  DfCheckbox: gt,
@@ -3772,36 +3810,36 @@ const ca = {
3772
3810
  DfInput: xt,
3773
3811
  DfInputHint: ve,
3774
3812
  DfLabel: fe,
3775
- DfRtfEditor: Lt,
3813
+ DfRtfEditor: Dt,
3776
3814
  DfSelect: It,
3777
- DfTextArea: $t
3778
- }, Symbol.toStringTag, { value: "Module" })), fa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3815
+ DfTextArea: Lt
3816
+ }, Symbol.toStringTag, { value: "Module" })), ba = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3779
3817
  __proto__: null,
3780
3818
  VAutocomplete: kn,
3781
3819
  VBtn: wn,
3782
3820
  VCheckbox: Cn,
3783
3821
  VChip: xn,
3784
- VCol: Ln,
3785
- VColorPicker: Tn,
3822
+ VCol: Dn,
3823
+ VColorPicker: _n,
3786
3824
  VCombobox: An,
3787
- VConfirmEdit: _n,
3825
+ VConfirmEdit: Tn,
3788
3826
  VDatePicker: Vn,
3789
3827
  VField: jn,
3790
3828
  VFileInput: Bn,
3791
- VIcon: $n,
3792
- VImg: Dn,
3829
+ VIcon: Ln,
3830
+ VImg: $n,
3793
3831
  VInput: Sn,
3794
3832
  VListItem: Mn,
3795
3833
  VMenu: Rn,
3796
3834
  VNumberInput: Pn,
3797
- VProgressLinear: Nn,
3835
+ VProgressLinear: En,
3798
3836
  VRow: In,
3799
- VSelect: En,
3800
- VSwitch: Un,
3801
- VTextField: Fn,
3802
- VTextarea: zn,
3837
+ VSelect: Fn,
3838
+ VSwitch: Nn,
3839
+ VTextField: zn,
3840
+ VTextarea: Un,
3803
3841
  VTimePicker: Hn
3804
- }, Symbol.toStringTag, { value: "Module" })), ro = {
3842
+ }, Symbol.toStringTag, { value: "Module" })), uo = {
3805
3843
  "df-actions": ht,
3806
3844
  "df-checkbox": gt,
3807
3845
  "df-color": yt,
@@ -3811,21 +3849,21 @@ const ca = {
3811
3849
  "df-input": xt,
3812
3850
  "df-input-hint": ve,
3813
3851
  "df-label": fe,
3814
- "df-rtf-editor": Lt,
3852
+ "df-rtf-editor": Dt,
3815
3853
  "df-select": It,
3816
- "df-text-area": $t
3817
- }, so = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3854
+ "df-text-area": Lt
3855
+ }, co = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3818
3856
  __proto__: null
3819
- }, Symbol.toStringTag, { value: "Module" })), uo = {
3857
+ }, Symbol.toStringTag, { value: "Module" })), mo = {
3820
3858
  install: (t, n) => {
3821
3859
  var e, a;
3822
- t.provide(Je, n != null ? n : {}), (e = n == null ? void 0 : n.registerComponents) != null && e && Object.entries(va).map(([r, u]) => t.component(r, u)), (a = n == null ? void 0 : n.registerVuetifyComponents) != null && a && Object.entries(fa).map(([r, u]) => t.component(r, u));
3860
+ t.provide(Qe, n != null ? n : {}), (e = n == null ? void 0 : n.registerComponents) != null && e && Object.entries(pa).map(([r, c]) => t.component(r, c)), (a = n == null ? void 0 : n.registerVuetifyComponents) != null && a && Object.entries(ba).map(([r, c]) => t.component(r, c));
3823
3861
  }
3824
3862
  };
3825
3863
  export {
3826
- Ne as Action,
3864
+ Fe as Action,
3827
3865
  se as ActionDisplayStyle,
3828
- Tl as DateTimeLocaleConfig,
3866
+ _l as DateTimeLocaleConfig,
3829
3867
  ht as DfActions,
3830
3868
  gt as DfCheckbox,
3831
3869
  yt as DfColor,
@@ -3833,32 +3871,32 @@ export {
3833
3871
  wt as DfFile,
3834
3872
  Ct as DfImage,
3835
3873
  xt as DfInput,
3836
- so as DfInputComponentProps,
3837
- va as DfInputComponents,
3874
+ co as DfInputComponentProps,
3875
+ pa as DfInputComponents,
3838
3876
  ve as DfInputHint,
3839
3877
  fe as DfLabel,
3840
- Lt as DfRtfEditor,
3878
+ Dt as DfRtfEditor,
3841
3879
  It as DfSelect,
3842
- $t as DfTextArea,
3843
- uo as DynamicFormsInputs,
3844
- _l as FileGoneError,
3845
- He as InputBase,
3880
+ Lt as DfTextArea,
3881
+ mo as DynamicFormsInputs,
3882
+ Tl as FileGoneError,
3883
+ We as InputBase,
3846
3884
  Vl as Label,
3847
- $l as ResponsiveActionRenderOptions,
3885
+ Ll as ResponsiveActionRenderOptions,
3848
3886
  Bl as ResponsiveRenderOptions,
3849
- fa as VuetifyComponents,
3887
+ ba as VuetifyComponents,
3850
3888
  be as defaultBaseProps,
3851
3889
  ot as defaultDisplayStyle,
3852
- ro as dfInputComponentsByTag,
3853
- Ll as getBreakpointName,
3890
+ uo as dfInputComponentsByTag,
3891
+ Dl as getBreakpointName,
3854
3892
  ft as getRenderOptionsForBreakpoint,
3855
3893
  it as responsiveBreakpoints,
3856
3894
  bt as setFileGoneError,
3857
- we as translatableStrings,
3858
- io as translateStrings,
3895
+ ye as translatableStrings,
3896
+ so as translateStrings,
3859
3897
  Il as useBreakpoint,
3860
3898
  pt as useFileTouchKeepAlive,
3861
3899
  ce as useInputBase,
3862
- Je as vuetifyInputsSettingsKey
3900
+ Qe as vuetifyInputsSettingsKey
3863
3901
  };
3864
3902
  //# sourceMappingURL=dynamicforms-vuetify-inputs.js.map