@dynamicforms/vuetify-inputs 0.10.3 → 0.10.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,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, F;
908
+ return (F = (S = (A = (m = t.density) != null ? m : g.value.density) != null ? A : a) != null ? S : e.defaultDensity) != null ? F : "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, F;
913
+ return (F = (S = (A = (m = t.variant) != null ? m : g.value.variant) != null ? A : r) != null ? S : e.defaultVariant) != null ? F : "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"), F = 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(F, {
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] = (F) => B.value = F),
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: (F) => S.focus(),
1847
+ onBlur: (F) => 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,145 @@ 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
- function N() {
1918
- D.value || (C.value += 1);
1942
+ function F() {
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[1] || (K[1] = (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(F, ["prevent"]),
1976
+ onDragover: ke(F, ["prevent"]),
1977
+ onDragleave: ke(le, ["prevent"]),
1978
+ onDrop: ke(D, ["prevent"]),
1979
+ onClick: K[0] || (K[0] = ke(() => {
1955
1980
  }, ["stop"]))
1956
1981
  }, [
1957
- oe("input", {
1982
+ ae("input", {
1958
1983
  id: l(v),
1959
1984
  ref_key: "fileInputRef",
1960
- ref: j,
1985
+ ref: V,
1961
1986
  type: "file",
1962
1987
  accept: "image/*",
1963
1988
  class: "df-image-native-input",
1964
- disabled: D.value,
1989
+ disabled: L.value,
1965
1990
  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", {
1991
+ onChange: S,
1992
+ onFocus: (Re) => p.focus(),
1993
+ onBlur: (Re) => p.blur()
1994
+ }, null, 40, Rl),
1995
+ $.value ? (T(), Q("label", {
1971
1996
  key: 0,
1972
1997
  for: l(v),
1973
1998
  class: "df-image-preview-label"
1974
1999
  }, [
1975
- i(le, {
1976
- src: S.value,
2000
+ i(y, {
2001
+ src: $.value,
1977
2002
  class: "df-image-preview",
1978
- style: st(g.value && T.value < 100 ? "visibility: hidden" : "")
2003
+ style: st(b.value && _.value < 100 ? "visibility: hidden" : "")
1979
2004
  }, null, 8, ["src", "style"])
1980
- ], 8, Rl)) : (V(), Z("label", {
2005
+ ], 8, Pl)) : (T(), Q("label", {
1981
2006
  key: 1,
1982
2007
  for: l(v),
1983
2008
  class: "df-image-placeholder"
1984
2009
  }, [
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", {
2010
+ i(l(j), { name: "mdi-tray-arrow-up" }),
2011
+ ae("span", null, G(l(f).ImageDropHint), 1)
2012
+ ], 8, El)),
2013
+ $.value && !L.value ? (T(), Q("label", {
1989
2014
  key: 2,
1990
2015
  for: l(v),
1991
2016
  class: "df-image-replace-btn",
1992
2017
  title: l(f).ImageReplace
1993
2018
  }, [
1994
- i(l(B), { name: "mdi-pencil" })
2019
+ i(l(j), { name: "mdi-pencil" })
2020
+ ], 8, Fl)) : Y("", !0),
2021
+ W.value ? (T(), Q("a", {
2022
+ key: 3,
2023
+ href: l(h),
2024
+ download: "",
2025
+ target: "_blank",
2026
+ rel: "noopener",
2027
+ class: "df-image-download-btn",
2028
+ title: l(f).ImageDownload,
2029
+ "aria-label": l(f).ImageDownload
2030
+ }, [
2031
+ i(l(j), { name: "mdi-download" })
1995
2032
  ], 8, Nl)) : Y("", !0)
1996
2033
  ], 34)
1997
2034
  ]),
@@ -1999,7 +2036,7 @@ const Dl = {
1999
2036
  }, 16, ["class"]);
2000
2037
  };
2001
2038
  }
2002
- }), xt = /* @__PURE__ */ te({
2039
+ }), xt = /* @__PURE__ */ ne({
2003
2040
  __name: "df-input",
2004
2041
  props: /* @__PURE__ */ pe({
2005
2042
  inputType: {},
@@ -2021,7 +2058,7 @@ const Dl = {
2021
2058
  passthroughAttrs: {},
2022
2059
  density: {},
2023
2060
  variant: {}
2024
- }, ee(z({}, be), {
2061
+ }, te(z({}, be), {
2025
2062
  inputType: "text",
2026
2063
  precision: null,
2027
2064
  step: void 0,
@@ -2030,55 +2067,55 @@ const Dl = {
2030
2067
  })),
2031
2068
  emits: ["update:modelValue", "click:clear"],
2032
2069
  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(
2070
+ const e = t, a = n, { densityClass: r, isRendered: c, label: d, showErrors: h, touched: k, value: f, visibilityClass: v, vuetifyBindings: b } = ce(
2034
2071
  e,
2035
2072
  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) } : {}
2073
+ ), { inputType: _, max: B, min: x, precision: V, step: E } = Oe(e), L = C(() => _.value === "number"), g = C(
2074
+ () => L.value ? { min: l(x), max: l(B), precision: l(V), step: l(E) } : {}
2038
2075
  );
2039
- return (S, H) => {
2040
- const K = R("v-text-field"), W = R("v-number-input");
2041
- return l(u) ? (V(), Z("div", {
2076
+ return ($, W) => {
2077
+ const q = P("v-text-field"), Z = P("v-number-input");
2078
+ return l(c) ? (T(), Q("div", {
2042
2079
  key: 0,
2043
2080
  class: ue(["df-input-container", [l(r), l(v)]])
2044
2081
  }, [
2045
- D.value ? (V(), F(W, X({
2082
+ L.value ? (T(), H(Z, X({
2046
2083
  key: 1,
2047
2084
  modelValue: l(f),
2048
- "onUpdate:modelValue": H[2] || (H[2] = (L) => Ce(f) ? f.value = L : null),
2085
+ "onUpdate:modelValue": W[2] || (W[2] = (M) => xe(f) ? f.value = M : null),
2049
2086
  density: "compact",
2050
2087
  "control-variant": "stacked"
2051
- }, z(z({}, l(g)), b.value)), {
2052
- label: s((L) => [
2088
+ }, z(z({}, l(b)), g.value)), {
2089
+ label: s((M) => [
2053
2090
  i(l(fe), {
2054
- data: L,
2091
+ data: M,
2055
2092
  label: l(d)
2056
2093
  }, null, 8, ["data", "label"])
2057
2094
  ]),
2058
- message: s(({ message: L }) => [
2095
+ message: s(({ message: M }) => [
2059
2096
  i(l(ve), {
2060
- message: L,
2097
+ message: M,
2061
2098
  errors: l(h)
2062
2099
  }, null, 8, ["message", "errors"])
2063
2100
  ]),
2064
2101
  _: 1
2065
- }, 16, ["modelValue"])) : (V(), F(K, X({
2102
+ }, 16, ["modelValue"])) : (T(), H(q, X({
2066
2103
  key: 0,
2067
2104
  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)
2105
+ "onUpdate:modelValue": W[0] || (W[0] = (M) => xe(f) ? f.value = M : null),
2106
+ type: l(_)
2107
+ }, l(b), {
2108
+ onBlur: W[1] || (W[1] = (M) => k.value = !0)
2072
2109
  }), {
2073
- label: s((L) => [
2110
+ label: s((M) => [
2074
2111
  i(l(fe), {
2075
- data: L,
2112
+ data: M,
2076
2113
  label: l(d)
2077
2114
  }, null, 8, ["data", "label"])
2078
2115
  ]),
2079
- message: s(({ message: L }) => [
2116
+ message: s(({ message: M }) => [
2080
2117
  i(l(ve), {
2081
- message: L,
2118
+ message: M,
2082
2119
  errors: l(h)
2083
2120
  }, null, 8, ["message", "errors"])
2084
2121
  ]),
@@ -2087,7 +2124,7 @@ const Dl = {
2087
2124
  ], 2)) : Y("", !0);
2088
2125
  };
2089
2126
  }
2090
- }), El = fn.create({
2127
+ }), Ul = fn.create({
2091
2128
  name: "classAttribute",
2092
2129
  addGlobalAttributes() {
2093
2130
  return [
@@ -2115,7 +2152,7 @@ function At(t, n) {
2115
2152
  }
2116
2153
  });
2117
2154
  }
2118
- const Ul = At("marker", "marker"), zl = At("spoiler", "spoiler"), Fl = [
2155
+ const zl = At("marker", "marker"), Hl = At("spoiler", "spoiler"), Ol = [
2119
2156
  { key: "ArticleCategory", kind: "heading", level: 3, className: "category" },
2120
2157
  { key: "Title", kind: "heading", level: 2, className: "document-title" },
2121
2158
  { key: "Subtitle", kind: "heading", level: 3, className: "document-subtitle" },
@@ -2126,35 +2163,35 @@ const Ul = At("marker", "marker"), zl = At("spoiler", "spoiler"), Fl = [
2126
2163
  { key: "CodeDark", kind: "codeBlock", className: "fancy-code fancy-code-dark" },
2127
2164
  { key: "CodeBright", kind: "codeBlock", className: "fancy-code fancy-code-bright" }
2128
2165
  ];
2129
- function Qe(t) {
2166
+ function Ze(t) {
2130
2167
  const { state: n } = t, { $from: e } = n.selection;
2131
2168
  return e.depth > 0 || n.doc.content.size === 0 ? e : n.doc.resolve(Math.min(1, n.doc.content.size));
2132
2169
  }
2133
- function Ee(t) {
2134
- return Qe(t).parent;
2170
+ function Ne(t) {
2171
+ return Ze(t).parent;
2135
2172
  }
2136
- function Tt(t, n) {
2137
- const e = Qe(t);
2173
+ function _t(t, n) {
2174
+ const e = Ze(t);
2138
2175
  for (let a = e.depth; a >= 0; a -= 1)
2139
2176
  if (e.node(a).type.name === n) return e.node(a);
2140
2177
  return null;
2141
2178
  }
2142
- function $e(t, n) {
2179
+ function Le(t, n) {
2143
2180
  switch (n.kind) {
2144
2181
  case "heading": {
2145
- const e = Ee(t);
2182
+ const e = Ne(t);
2146
2183
  return e.type.name === "heading" && e.attrs.level === n.level && e.attrs.class === n.className;
2147
2184
  }
2148
2185
  case "paragraph": {
2149
- const e = Ee(t);
2186
+ const e = Ne(t);
2150
2187
  return e.type.name === "paragraph" && e.attrs.class === n.className;
2151
2188
  }
2152
2189
  case "codeBlock": {
2153
- const e = Ee(t);
2190
+ const e = Ne(t);
2154
2191
  return e.type.name === "codeBlock" && e.attrs.class === n.className;
2155
2192
  }
2156
2193
  case "blockquote": {
2157
- const e = Tt(t, "blockquote");
2194
+ const e = _t(t, "blockquote");
2158
2195
  return !!e && e.attrs.class === n.className;
2159
2196
  }
2160
2197
  case "mark":
@@ -2163,33 +2200,33 @@ function $e(t, n) {
2163
2200
  return !1;
2164
2201
  }
2165
2202
  }
2166
- function Hl(t, n) {
2203
+ function Wl(t, n) {
2167
2204
  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) {
2205
+ switch (n.kind !== "mark" && a.depth === 0 && t.state.doc.content.size > 0 && e.setTextSelection(Ze(t).pos), n.kind) {
2169
2206
  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();
2207
+ Le(t, n) ? e.setParagraph().updateAttributes("paragraph", { class: null }).run() : e.setNode("heading", { level: n.level }).updateAttributes("heading", { class: n.className }).run();
2171
2208
  break;
2172
2209
  case "paragraph":
2173
- $e(t, n) ? e.setParagraph().updateAttributes("paragraph", { class: null }).run() : e.setParagraph().updateAttributes("paragraph", { class: n.className }).run();
2210
+ Le(t, n) ? e.setParagraph().updateAttributes("paragraph", { class: null }).run() : e.setParagraph().updateAttributes("paragraph", { class: n.className }).run();
2174
2211
  break;
2175
2212
  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();
2213
+ 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
2214
  break;
2178
2215
  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();
2216
+ 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
2217
  break;
2181
2218
  case "mark":
2182
2219
  e.toggleMark(n.markName).run();
2183
2220
  break;
2184
2221
  }
2185
2222
  }
2186
- function _t(t) {
2223
+ function Tt(t) {
2187
2224
  return new Promise((n, e) => {
2188
2225
  const a = new FileReader();
2189
2226
  a.onload = () => n(a.result), a.onerror = () => e(a.error), a.readAsDataURL(t);
2190
2227
  });
2191
2228
  }
2192
- function Ol(t) {
2229
+ function ql(t) {
2193
2230
  if (!t) return [];
2194
2231
  const n = [];
2195
2232
  return Array.from(t.items || []).forEach((e) => {
@@ -2210,28 +2247,28 @@ function Vt(t) {
2210
2247
  function jt(t, n, e) {
2211
2248
  const a = [];
2212
2249
  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);
2250
+ 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
2251
  }), gn.fromArray(a);
2215
2252
  }
2216
- function Wl(t) {
2253
+ function Kl(t) {
2217
2254
  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) => {
2255
+ const r = ql(e.clipboardData);
2256
+ return r.length === 0 ? !1 : (e.preventDefault(), Promise.all(r.map(Tt)).then((c) => {
2220
2257
  var d;
2221
2258
  if (Vt(a.content) > 0) {
2222
- const h = jt(a.content, u, { index: 0 }), k = new hn(h, a.openStart, a.openEnd);
2259
+ const h = jt(a.content, c, { index: 0 }), k = new hn(h, a.openStart, a.openEnd);
2223
2260
  n.dispatch(n.state.tr.replaceSelection(k).scrollIntoView());
2224
2261
  return;
2225
2262
  }
2226
- (d = t()) == null || d.chain().focus().insertContent(u.map((h) => ({ type: "image", attrs: { src: h } }))).run();
2263
+ (d = t()) == null || d.chain().focus().insertContent(c.map((h) => ({ type: "image", attrs: { src: h } }))).run();
2227
2264
  }), !0);
2228
2265
  };
2229
2266
  }
2230
- const ql = yn.extend({
2267
+ const Gl = yn.extend({
2231
2268
  name: "link",
2232
2269
  addAttributes() {
2233
2270
  var t;
2234
- return ee(z({}, (t = this.parent) == null ? void 0 : t.call(this)), {
2271
+ return te(z({}, (t = this.parent) == null ? void 0 : t.call(this)), {
2235
2272
  download: {
2236
2273
  default: null,
2237
2274
  parseHTML: (n) => n.getAttribute("download"),
@@ -2240,7 +2277,7 @@ const ql = yn.extend({
2240
2277
  });
2241
2278
  }
2242
2279
  });
2243
- function Kl(t) {
2280
+ function Xl(t) {
2244
2281
  let n;
2245
2282
  try {
2246
2283
  n = new URL(t);
@@ -2253,8 +2290,8 @@ function Kl(t) {
2253
2290
  if (a) return `https://www.youtube.com/embed/${a}`;
2254
2291
  const r = n.pathname.match(/^\/embed\/([\w-]+)/);
2255
2292
  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;
2293
+ const c = n.pathname.match(/^\/shorts\/([\w-]+)/);
2294
+ return c ? `https://www.youtube.com/embed/${c[1]}` : null;
2258
2295
  }
2259
2296
  if (e === "youtu.be") {
2260
2297
  const a = n.pathname.slice(1);
@@ -2266,7 +2303,7 @@ function Kl(t) {
2266
2303
  }
2267
2304
  return null;
2268
2305
  }
2269
- const Gl = bn.create({
2306
+ const Yl = bn.create({
2270
2307
  name: "mediaEmbed",
2271
2308
  group: "block",
2272
2309
  atom: !0,
@@ -2295,25 +2332,25 @@ const Gl = bn.create({
2295
2332
  }
2296
2333
  });
2297
2334
  function Bt(t) {
2298
- const n = M(0);
2335
+ const n = R(0);
2299
2336
  let e;
2300
2337
  const a = () => {
2301
2338
  n.value += 1;
2302
- }, r = (u) => {
2303
- e == null || e.off("transaction", a), e = u, e == null || e.on("transaction", a);
2339
+ }, r = (c) => {
2340
+ e == null || e.off("transaction", a), e = c, e == null || e.on("transaction", a);
2304
2341
  };
2305
- return me(t, r, { immediate: !0 }), Ye(() => r(void 0)), n;
2342
+ return me(t, r, { immediate: !0 }), Je(() => r(void 0)), n;
2306
2343
  }
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({
2344
+ 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
2345
  __name: "rtf-toolbar",
2309
2346
  props: {
2310
2347
  editor: {}
2311
2348
  },
2312
2349
  setup(t) {
2313
- const n = t, e = we, a = x(() => n.editor), r = Bt(a), u = x(() => {
2350
+ const n = t, e = ye, a = C(() => n.editor), r = Bt(a), c = C(() => {
2314
2351
  var o;
2315
2352
  return !!((o = n.editor) != null && o.isEditable);
2316
- }), d = x(() => {
2353
+ }), d = C(() => {
2317
2354
  r.value;
2318
2355
  const o = n.editor;
2319
2356
  return {
@@ -2343,81 +2380,81 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
2343
2380
  { level: 6, label: e.Heading6 }
2344
2381
  ];
2345
2382
  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 }));
2383
+ var u, m;
2384
+ return r.value, o === 0 ? !!((u = a.value) != null && u.isActive("paragraph")) : !!((m = a.value) != null && m.isActive("heading", { level: o }));
2348
2385
  }
2349
- const f = x(
2386
+ const f = C(
2350
2387
  () => {
2351
- var o, c;
2352
- return (c = (o = h.find((m) => k(m.level))) == null ? void 0 : o.label) != null ? c : e.Paragraph;
2388
+ var o, u;
2389
+ return (u = (o = h.find((m) => k(m.level))) == null ? void 0 : o.label) != null ? u : e.Paragraph;
2353
2390
  }
2354
2391
  );
2355
2392
  function v(o) {
2356
2393
  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());
2394
+ const u = (m = a.value) == null ? void 0 : m.chain().focus();
2395
+ u && (o === 0 ? u.setParagraph().run() : u.toggleHeading({ level: o }).run());
2359
2396
  }
2360
- const g = Fl;
2361
- function T(o) {
2362
- return r.value, !!a.value && $e(a.value, o);
2397
+ const b = Ol;
2398
+ function _(o) {
2399
+ return r.value, !!a.value && Le(a.value, o);
2363
2400
  }
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;
2401
+ const B = R(""), x = R(!1);
2402
+ function V() {
2403
+ var u, m, A;
2404
+ const o = (m = (u = a.value) == null ? void 0 : u.getAttributes("link")) != null ? m : {};
2405
+ B.value = (A = o.href) != null ? A : "", x.value = !!o.download;
2369
2406
  }
2370
- function P() {
2407
+ function E() {
2371
2408
  var o;
2372
- $.value && ((o = a.value) == null || o.chain().focus().extendMarkRange("link").setLink({ href: $.value }).updateAttributes("link", { download: C.value ? "file" : null }).run());
2409
+ B.value && ((o = a.value) == null || o.chain().focus().extendMarkRange("link").setLink({ href: B.value }).updateAttributes("link", { download: x.value ? "file" : null }).run());
2373
2410
  }
2374
- function D() {
2411
+ function L() {
2375
2412
  var o;
2376
2413
  (o = a.value) == null || o.chain().focus().unsetLink().run();
2377
2414
  }
2378
- const b = M(""), S = M();
2379
- function H() {
2415
+ const g = R(""), $ = R();
2416
+ function W() {
2380
2417
  var o;
2381
- b.value && ((o = a.value) == null || o.chain().focus().setImage({ src: b.value }).run(), b.value = "");
2418
+ g.value && ((o = a.value) == null || o.chain().focus().setImage({ src: g.value }).run(), g.value = "");
2382
2419
  }
2383
- function K() {
2420
+ function q() {
2384
2421
  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 = "";
2422
+ (o = $.value) == null || o.click();
2423
+ }
2424
+ function Z(o) {
2425
+ return he(this, null, function* () {
2426
+ var A, S;
2427
+ const u = (A = o.target.files) == null ? void 0 : A[0];
2428
+ if (!u) return;
2429
+ const m = yield Tt(u);
2430
+ (S = a.value) == null || S.chain().focus().setImage({ src: m }).run(), o.target.value = "";
2394
2431
  });
2395
2432
  }
2396
- const L = M("");
2433
+ const M = R("");
2397
2434
  function w() {
2398
2435
  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 }])
2436
+ if (!M.value) return;
2437
+ const o = Xl(M.value), u = (m = a.value) == null ? void 0 : m.chain().focus();
2438
+ 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 = "");
2439
+ }
2440
+ return (o, u) => {
2441
+ const m = P("v-btn"), A = P("v-divider"), S = P("v-list-item-title"), F = 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");
2442
+ return T(), Q("div", {
2443
+ class: ue(["rtf-toolbar", { "rtf-toolbar--disabled": !c.value }])
2407
2444
  }, [
2408
2445
  i(m, {
2409
2446
  icon: "",
2410
2447
  size: "small",
2411
2448
  variant: "text",
2412
2449
  title: l(e).Undo,
2413
- disabled: !u.value || !d.value.canUndo,
2414
- onClick: c[0] || (c[0] = (y) => {
2450
+ disabled: !c.value || !d.value.canUndo,
2451
+ onClick: u[0] || (u[0] = (y) => {
2415
2452
  var p;
2416
2453
  return (p = a.value) == null ? void 0 : p.chain().focus().undo().run();
2417
2454
  })
2418
2455
  }, {
2419
2456
  default: s(() => [
2420
- i(l(B), { name: "mdi-undo" })
2457
+ i(l(j), { name: "mdi-undo" })
2421
2458
  ]),
2422
2459
  _: 1
2423
2460
  }, 8, ["title", "disabled"]),
@@ -2426,18 +2463,18 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
2426
2463
  size: "small",
2427
2464
  variant: "text",
2428
2465
  title: l(e).Redo,
2429
- disabled: !u.value || !d.value.canRedo,
2430
- onClick: c[1] || (c[1] = (y) => {
2466
+ disabled: !c.value || !d.value.canRedo,
2467
+ onClick: u[1] || (u[1] = (y) => {
2431
2468
  var p;
2432
2469
  return (p = a.value) == null ? void 0 : p.chain().focus().redo().run();
2433
2470
  })
2434
2471
  }, {
2435
2472
  default: s(() => [
2436
- i(l(B), { name: "mdi-redo" })
2473
+ i(l(j), { name: "mdi-redo" })
2437
2474
  ]),
2438
2475
  _: 1
2439
2476
  }, 8, ["title", "disabled"]),
2440
- i(_, {
2477
+ i(A, {
2441
2478
  vertical: "",
2442
2479
  inset: "",
2443
2480
  class: "mx-1"
@@ -2447,28 +2484,28 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
2447
2484
  size: "small",
2448
2485
  variant: "text",
2449
2486
  title: l(e).SelectAll,
2450
- disabled: !u.value,
2451
- onClick: c[2] || (c[2] = (y) => {
2487
+ disabled: !c.value,
2488
+ onClick: u[2] || (u[2] = (y) => {
2452
2489
  var p;
2453
2490
  return (p = a.value) == null ? void 0 : p.chain().focus().selectAll().run();
2454
2491
  })
2455
2492
  }, {
2456
2493
  default: s(() => [
2457
- i(l(B), { name: "mdi-select-all" })
2494
+ i(l(j), { name: "mdi-select-all" })
2458
2495
  ]),
2459
2496
  _: 1
2460
2497
  }, 8, ["title", "disabled"]),
2461
- i(_, {
2498
+ i(A, {
2462
2499
  vertical: "",
2463
2500
  inset: "",
2464
2501
  class: "mx-1"
2465
2502
  }),
2466
- i(A, null, {
2503
+ i(D, null, {
2467
2504
  activator: s(({ props: y }) => [
2468
2505
  i(m, X({
2469
2506
  size: "small",
2470
2507
  variant: "text",
2471
- disabled: !u.value
2508
+ disabled: !c.value
2472
2509
  }, y, { "append-icon": "mdi-chevron-down" }), {
2473
2510
  default: s(() => [
2474
2511
  J(G(f.value), 1)
@@ -2477,15 +2514,15 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
2477
2514
  }, 16, ["disabled"])
2478
2515
  ]),
2479
2516
  default: s(() => [
2480
- i(ne, { density: "compact" }, {
2517
+ i(le, { density: "compact" }, {
2481
2518
  default: s(() => [
2482
- (V(), Z(Se, null, Xe(h, (y) => i(O, {
2519
+ (T(), Q(Se, null, Ye(h, (y) => i(F, {
2483
2520
  key: y.level,
2484
2521
  active: k(y.level),
2485
2522
  onClick: (p) => v(y.level)
2486
2523
  }, {
2487
2524
  default: s(() => [
2488
- i(N, null, {
2525
+ i(S, null, {
2489
2526
  default: s(() => [
2490
2527
  J(G(y.label), 1)
2491
2528
  ]),
@@ -2500,12 +2537,12 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
2500
2537
  ]),
2501
2538
  _: 1
2502
2539
  }),
2503
- i(A, null, {
2540
+ i(D, null, {
2504
2541
  activator: s(({ props: y }) => [
2505
2542
  i(m, X({
2506
2543
  size: "small",
2507
2544
  variant: "text",
2508
- disabled: !u.value
2545
+ disabled: !c.value
2509
2546
  }, y, { "append-icon": "mdi-chevron-down" }), {
2510
2547
  default: s(() => [
2511
2548
  J(G(l(e).Style), 1)
@@ -2514,15 +2551,15 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
2514
2551
  }, 16, ["disabled"])
2515
2552
  ]),
2516
2553
  default: s(() => [
2517
- i(ne, { density: "compact" }, {
2554
+ i(le, { density: "compact" }, {
2518
2555
  default: s(() => [
2519
- (V(!0), Z(Se, null, Xe(l(g), (y) => (V(), F(O, {
2556
+ (T(!0), Q(Se, null, Ye(l(b), (y) => (T(), H(F, {
2520
2557
  key: y.key,
2521
- active: T(y),
2522
- onClick: (p) => a.value && l(Hl)(a.value, y)
2558
+ active: _(y),
2559
+ onClick: (p) => a.value && l(Wl)(a.value, y)
2523
2560
  }, {
2524
2561
  default: s(() => [
2525
- i(N, null, {
2562
+ i(S, null, {
2526
2563
  default: s(() => [
2527
2564
  J(G(l(e)[y.key]), 1)
2528
2565
  ]),
@@ -2537,7 +2574,7 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
2537
2574
  ]),
2538
2575
  _: 1
2539
2576
  }),
2540
- i(_, {
2577
+ i(A, {
2541
2578
  vertical: "",
2542
2579
  inset: "",
2543
2580
  class: "mx-1"
@@ -2547,15 +2584,15 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
2547
2584
  size: "small",
2548
2585
  variant: "text",
2549
2586
  title: l(e).Bold,
2550
- disabled: !u.value,
2587
+ disabled: !c.value,
2551
2588
  active: d.value.bold,
2552
- onClick: c[3] || (c[3] = (y) => {
2589
+ onClick: u[3] || (u[3] = (y) => {
2553
2590
  var p;
2554
2591
  return (p = a.value) == null ? void 0 : p.chain().focus().toggleBold().run();
2555
2592
  })
2556
2593
  }, {
2557
2594
  default: s(() => [
2558
- i(l(B), { name: "mdi-format-bold" })
2595
+ i(l(j), { name: "mdi-format-bold" })
2559
2596
  ]),
2560
2597
  _: 1
2561
2598
  }, 8, ["title", "disabled", "active"]),
@@ -2564,19 +2601,19 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
2564
2601
  size: "small",
2565
2602
  variant: "text",
2566
2603
  title: l(e).Italic,
2567
- disabled: !u.value,
2604
+ disabled: !c.value,
2568
2605
  active: d.value.italic,
2569
- onClick: c[4] || (c[4] = (y) => {
2606
+ onClick: u[4] || (u[4] = (y) => {
2570
2607
  var p;
2571
2608
  return (p = a.value) == null ? void 0 : p.chain().focus().toggleItalic().run();
2572
2609
  })
2573
2610
  }, {
2574
2611
  default: s(() => [
2575
- i(l(B), { name: "mdi-format-italic" })
2612
+ i(l(j), { name: "mdi-format-italic" })
2576
2613
  ]),
2577
2614
  _: 1
2578
2615
  }, 8, ["title", "disabled", "active"]),
2579
- i(_, {
2616
+ i(A, {
2580
2617
  vertical: "",
2581
2618
  inset: "",
2582
2619
  class: "mx-1"
@@ -2586,20 +2623,20 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
2586
2623
  size: "small",
2587
2624
  variant: "text",
2588
2625
  title: l(e).HorizontalLine,
2589
- disabled: !u.value,
2590
- onClick: c[5] || (c[5] = (y) => {
2626
+ disabled: !c.value,
2627
+ onClick: u[5] || (u[5] = (y) => {
2591
2628
  var p;
2592
2629
  return (p = a.value) == null ? void 0 : p.chain().focus().setHorizontalRule().run();
2593
2630
  })
2594
2631
  }, {
2595
2632
  default: s(() => [
2596
- i(l(B), { name: "mdi-minus" })
2633
+ i(l(j), { name: "mdi-minus" })
2597
2634
  ]),
2598
2635
  _: 1
2599
2636
  }, 8, ["title", "disabled"]),
2600
- i(A, {
2637
+ i(D, {
2601
2638
  "close-on-content-click": !1,
2602
- "onUpdate:modelValue": c[8] || (c[8] = (y) => y && j())
2639
+ "onUpdate:modelValue": u[8] || (u[8] = (y) => y && V())
2603
2640
  }, {
2604
2641
  activator: s(({ props: y }) => [
2605
2642
  i(m, X({
@@ -2607,44 +2644,44 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
2607
2644
  size: "small",
2608
2645
  variant: "text",
2609
2646
  title: l(e).Link,
2610
- disabled: !u.value,
2647
+ disabled: !c.value,
2611
2648
  active: d.value.link
2612
2649
  }, y), {
2613
2650
  default: s(() => [
2614
- i(l(B), { name: "mdi-link-variant" })
2651
+ i(l(j), { name: "mdi-link-variant" })
2615
2652
  ]),
2616
2653
  _: 1
2617
2654
  }, 16, ["title", "disabled", "active"])
2618
2655
  ]),
2619
2656
  default: s(() => [
2620
- i(le, {
2657
+ i(ee, {
2621
2658
  "min-width": "280",
2622
2659
  class: "pa-3"
2623
2660
  }, {
2624
2661
  default: s(() => [
2625
- i(q, {
2626
- modelValue: $.value,
2627
- "onUpdate:modelValue": c[6] || (c[6] = (y) => $.value = y),
2662
+ i(O, {
2663
+ modelValue: B.value,
2664
+ "onUpdate:modelValue": u[6] || (u[6] = (y) => B.value = y),
2628
2665
  label: l(e).LinkUrl,
2629
2666
  density: "compact",
2630
2667
  "hide-details": "",
2631
2668
  autofocus: "",
2632
- onKeydown: De(P, ["enter"])
2669
+ onKeydown: $e(E, ["enter"])
2633
2670
  }, null, 8, ["modelValue", "label"]),
2634
- i(Q, {
2635
- modelValue: C.value,
2636
- "onUpdate:modelValue": c[7] || (c[7] = (y) => C.value = y),
2671
+ i(K, {
2672
+ modelValue: x.value,
2673
+ "onUpdate:modelValue": u[7] || (u[7] = (y) => x.value = y),
2637
2674
  label: l(e).Downloadable,
2638
2675
  density: "compact",
2639
2676
  "hide-details": "",
2640
2677
  class: "mt-1"
2641
2678
  }, null, 8, ["modelValue", "label"]),
2642
- oe("div", Xl, [
2643
- d.value.link ? (V(), F(m, {
2679
+ ae("div", Jl, [
2680
+ d.value.link ? (T(), H(m, {
2644
2681
  key: 0,
2645
2682
  size: "small",
2646
2683
  variant: "text",
2647
- onClick: D
2684
+ onClick: L
2648
2685
  }, {
2649
2686
  default: s(() => [
2650
2687
  J(G(l(e).LinkRemove), 1)
@@ -2655,7 +2692,7 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
2655
2692
  size: "small",
2656
2693
  color: "primary",
2657
2694
  variant: "tonal",
2658
- onClick: P
2695
+ onClick: E
2659
2696
  }, {
2660
2697
  default: s(() => [
2661
2698
  J(G(l(e).LinkApply), 1)
@@ -2669,42 +2706,42 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
2669
2706
  ]),
2670
2707
  _: 1
2671
2708
  }),
2672
- i(A, { "close-on-content-click": !1 }, {
2709
+ i(D, { "close-on-content-click": !1 }, {
2673
2710
  activator: s(({ props: y }) => [
2674
2711
  i(m, X({
2675
2712
  icon: "",
2676
2713
  size: "small",
2677
2714
  variant: "text",
2678
2715
  title: l(e).Image,
2679
- disabled: !u.value
2716
+ disabled: !c.value
2680
2717
  }, y), {
2681
2718
  default: s(() => [
2682
- i(l(B), { name: "mdi-image-plus" })
2719
+ i(l(j), { name: "mdi-image-plus" })
2683
2720
  ]),
2684
2721
  _: 1
2685
2722
  }, 16, ["title", "disabled"])
2686
2723
  ]),
2687
2724
  default: s(() => [
2688
- i(le, {
2725
+ i(ee, {
2689
2726
  "min-width": "280",
2690
2727
  class: "pa-3"
2691
2728
  }, {
2692
2729
  default: s(() => [
2693
- i(q, {
2694
- modelValue: b.value,
2695
- "onUpdate:modelValue": c[9] || (c[9] = (y) => b.value = y),
2730
+ i(O, {
2731
+ modelValue: g.value,
2732
+ "onUpdate:modelValue": u[9] || (u[9] = (y) => g.value = y),
2696
2733
  label: l(e).ImageUrl,
2697
2734
  density: "compact",
2698
2735
  "hide-details": "",
2699
2736
  autofocus: "",
2700
- onKeydown: De(H, ["enter"])
2737
+ onKeydown: $e(W, ["enter"])
2701
2738
  }, null, 8, ["modelValue", "label"]),
2702
- oe("div", Yl, [
2739
+ ae("div", Ql, [
2703
2740
  i(m, {
2704
2741
  size: "small",
2705
2742
  variant: "text",
2706
2743
  "prepend-icon": "mdi-upload",
2707
- onClick: K
2744
+ onClick: q
2708
2745
  }, {
2709
2746
  default: s(() => [
2710
2747
  J(G(l(e).ImageUpload), 1)
@@ -2715,7 +2752,7 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
2715
2752
  size: "small",
2716
2753
  color: "primary",
2717
2754
  variant: "tonal",
2718
- onClick: H
2755
+ onClick: W
2719
2756
  }, {
2720
2757
  default: s(() => [
2721
2758
  J(G(l(e).ImageInsert), 1)
@@ -2729,45 +2766,45 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
2729
2766
  ]),
2730
2767
  _: 1
2731
2768
  }),
2732
- oe("input", {
2769
+ ae("input", {
2733
2770
  ref_key: "imageInput",
2734
- ref: S,
2771
+ ref: $,
2735
2772
  type: "file",
2736
2773
  accept: "image/*",
2737
2774
  class: "d-none",
2738
- onChange: W
2775
+ onChange: Z
2739
2776
  }, null, 544),
2740
- i(A, { "close-on-content-click": !1 }, {
2777
+ i(D, { "close-on-content-click": !1 }, {
2741
2778
  activator: s(({ props: y }) => [
2742
2779
  i(m, X({
2743
2780
  icon: "",
2744
2781
  size: "small",
2745
2782
  variant: "text",
2746
2783
  title: l(e).MediaEmbed,
2747
- disabled: !u.value
2784
+ disabled: !c.value
2748
2785
  }, y), {
2749
2786
  default: s(() => [
2750
- i(l(B), { name: "mdi-video-plus" })
2787
+ i(l(j), { name: "mdi-video-plus" })
2751
2788
  ]),
2752
2789
  _: 1
2753
2790
  }, 16, ["title", "disabled"])
2754
2791
  ]),
2755
2792
  default: s(() => [
2756
- i(le, {
2793
+ i(ee, {
2757
2794
  "min-width": "280",
2758
2795
  class: "pa-3"
2759
2796
  }, {
2760
2797
  default: s(() => [
2761
- i(q, {
2762
- modelValue: L.value,
2763
- "onUpdate:modelValue": c[10] || (c[10] = (y) => L.value = y),
2798
+ i(O, {
2799
+ modelValue: M.value,
2800
+ "onUpdate:modelValue": u[10] || (u[10] = (y) => M.value = y),
2764
2801
  label: l(e).MediaEmbedUrl,
2765
2802
  density: "compact",
2766
2803
  "hide-details": "",
2767
2804
  autofocus: "",
2768
- onKeydown: De(w, ["enter"])
2805
+ onKeydown: $e(w, ["enter"])
2769
2806
  }, null, 8, ["modelValue", "label"]),
2770
- oe("div", Jl, [
2807
+ ae("div", Zl, [
2771
2808
  i(m, {
2772
2809
  size: "small",
2773
2810
  color: "primary",
@@ -2786,35 +2823,35 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
2786
2823
  ]),
2787
2824
  _: 1
2788
2825
  }),
2789
- i(A, null, {
2826
+ i(D, null, {
2790
2827
  activator: s(({ props: y }) => [
2791
2828
  i(m, X({
2792
2829
  icon: "",
2793
2830
  size: "small",
2794
2831
  variant: "text",
2795
2832
  title: l(e).Table,
2796
- disabled: !u.value
2833
+ disabled: !c.value
2797
2834
  }, y), {
2798
2835
  default: s(() => [
2799
- i(l(B), { name: "mdi-table" })
2836
+ i(l(j), { name: "mdi-table" })
2800
2837
  ]),
2801
2838
  _: 1
2802
2839
  }, 16, ["title", "disabled"])
2803
2840
  ]),
2804
2841
  default: s(() => [
2805
- i(ne, { density: "compact" }, {
2842
+ i(le, { density: "compact" }, {
2806
2843
  default: s(() => [
2807
- i(O, {
2808
- onClick: c[11] || (c[11] = (y) => {
2844
+ i(F, {
2845
+ onClick: u[11] || (u[11] = (y) => {
2809
2846
  var p;
2810
2847
  return (p = a.value) == null ? void 0 : p.chain().focus().insertTable({ rows: 3, cols: 3, withHeaderRow: !0 }).run();
2811
2848
  })
2812
2849
  }, {
2813
2850
  prepend: s(() => [
2814
- i(l(B), { name: "mdi-table-plus" })
2851
+ i(l(j), { name: "mdi-table-plus" })
2815
2852
  ]),
2816
2853
  default: s(() => [
2817
- i(N, null, {
2854
+ i(S, null, {
2818
2855
  default: s(() => [
2819
2856
  J(G(l(e).TableInsert), 1)
2820
2857
  ]),
@@ -2823,19 +2860,19 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
2823
2860
  ]),
2824
2861
  _: 1
2825
2862
  }),
2826
- i(_),
2827
- i(O, {
2863
+ i(A),
2864
+ i(F, {
2828
2865
  disabled: !d.value.inTable,
2829
- onClick: c[12] || (c[12] = (y) => {
2866
+ onClick: u[12] || (u[12] = (y) => {
2830
2867
  var p;
2831
2868
  return (p = a.value) == null ? void 0 : p.chain().focus().addRowBefore().run();
2832
2869
  })
2833
2870
  }, {
2834
2871
  prepend: s(() => [
2835
- i(l(B), { name: "mdi-table-row-plus-before" })
2872
+ i(l(j), { name: "mdi-table-row-plus-before" })
2836
2873
  ]),
2837
2874
  default: s(() => [
2838
- i(N, null, {
2875
+ i(S, null, {
2839
2876
  default: s(() => [
2840
2877
  J(G(l(e).TableAddRowAbove), 1)
2841
2878
  ]),
@@ -2844,18 +2881,18 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
2844
2881
  ]),
2845
2882
  _: 1
2846
2883
  }, 8, ["disabled"]),
2847
- i(O, {
2884
+ i(F, {
2848
2885
  disabled: !d.value.inTable,
2849
- onClick: c[13] || (c[13] = (y) => {
2886
+ onClick: u[13] || (u[13] = (y) => {
2850
2887
  var p;
2851
2888
  return (p = a.value) == null ? void 0 : p.chain().focus().addRowAfter().run();
2852
2889
  })
2853
2890
  }, {
2854
2891
  prepend: s(() => [
2855
- i(l(B), { name: "mdi-table-row-plus-after" })
2892
+ i(l(j), { name: "mdi-table-row-plus-after" })
2856
2893
  ]),
2857
2894
  default: s(() => [
2858
- i(N, null, {
2895
+ i(S, null, {
2859
2896
  default: s(() => [
2860
2897
  J(G(l(e).TableAddRowBelow), 1)
2861
2898
  ]),
@@ -2864,18 +2901,18 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
2864
2901
  ]),
2865
2902
  _: 1
2866
2903
  }, 8, ["disabled"]),
2867
- i(O, {
2904
+ i(F, {
2868
2905
  disabled: !d.value.inTable,
2869
- onClick: c[14] || (c[14] = (y) => {
2906
+ onClick: u[14] || (u[14] = (y) => {
2870
2907
  var p;
2871
2908
  return (p = a.value) == null ? void 0 : p.chain().focus().deleteRow().run();
2872
2909
  })
2873
2910
  }, {
2874
2911
  prepend: s(() => [
2875
- i(l(B), { name: "mdi-table-row-remove" })
2912
+ i(l(j), { name: "mdi-table-row-remove" })
2876
2913
  ]),
2877
2914
  default: s(() => [
2878
- i(N, null, {
2915
+ i(S, null, {
2879
2916
  default: s(() => [
2880
2917
  J(G(l(e).TableDeleteRow), 1)
2881
2918
  ]),
@@ -2884,19 +2921,19 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
2884
2921
  ]),
2885
2922
  _: 1
2886
2923
  }, 8, ["disabled"]),
2887
- i(_),
2888
- i(O, {
2924
+ i(A),
2925
+ i(F, {
2889
2926
  disabled: !d.value.inTable,
2890
- onClick: c[15] || (c[15] = (y) => {
2927
+ onClick: u[15] || (u[15] = (y) => {
2891
2928
  var p;
2892
2929
  return (p = a.value) == null ? void 0 : p.chain().focus().addColumnBefore().run();
2893
2930
  })
2894
2931
  }, {
2895
2932
  prepend: s(() => [
2896
- i(l(B), { name: "mdi-table-column-plus-before" })
2933
+ i(l(j), { name: "mdi-table-column-plus-before" })
2897
2934
  ]),
2898
2935
  default: s(() => [
2899
- i(N, null, {
2936
+ i(S, null, {
2900
2937
  default: s(() => [
2901
2938
  J(G(l(e).TableAddColumnBefore), 1)
2902
2939
  ]),
@@ -2905,18 +2942,18 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
2905
2942
  ]),
2906
2943
  _: 1
2907
2944
  }, 8, ["disabled"]),
2908
- i(O, {
2945
+ i(F, {
2909
2946
  disabled: !d.value.inTable,
2910
- onClick: c[16] || (c[16] = (y) => {
2947
+ onClick: u[16] || (u[16] = (y) => {
2911
2948
  var p;
2912
2949
  return (p = a.value) == null ? void 0 : p.chain().focus().addColumnAfter().run();
2913
2950
  })
2914
2951
  }, {
2915
2952
  prepend: s(() => [
2916
- i(l(B), { name: "mdi-table-column-plus-after" })
2953
+ i(l(j), { name: "mdi-table-column-plus-after" })
2917
2954
  ]),
2918
2955
  default: s(() => [
2919
- i(N, null, {
2956
+ i(S, null, {
2920
2957
  default: s(() => [
2921
2958
  J(G(l(e).TableAddColumnAfter), 1)
2922
2959
  ]),
@@ -2925,18 +2962,18 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
2925
2962
  ]),
2926
2963
  _: 1
2927
2964
  }, 8, ["disabled"]),
2928
- i(O, {
2965
+ i(F, {
2929
2966
  disabled: !d.value.inTable,
2930
- onClick: c[17] || (c[17] = (y) => {
2967
+ onClick: u[17] || (u[17] = (y) => {
2931
2968
  var p;
2932
2969
  return (p = a.value) == null ? void 0 : p.chain().focus().deleteColumn().run();
2933
2970
  })
2934
2971
  }, {
2935
2972
  prepend: s(() => [
2936
- i(l(B), { name: "mdi-table-column-remove" })
2973
+ i(l(j), { name: "mdi-table-column-remove" })
2937
2974
  ]),
2938
2975
  default: s(() => [
2939
- i(N, null, {
2976
+ i(S, null, {
2940
2977
  default: s(() => [
2941
2978
  J(G(l(e).TableDeleteColumn), 1)
2942
2979
  ]),
@@ -2945,19 +2982,19 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
2945
2982
  ]),
2946
2983
  _: 1
2947
2984
  }, 8, ["disabled"]),
2948
- i(_),
2949
- i(O, {
2985
+ i(A),
2986
+ i(F, {
2950
2987
  disabled: !d.value.inTable,
2951
- onClick: c[18] || (c[18] = (y) => {
2988
+ onClick: u[18] || (u[18] = (y) => {
2952
2989
  var p;
2953
2990
  return (p = a.value) == null ? void 0 : p.chain().focus().toggleHeaderRow().run();
2954
2991
  })
2955
2992
  }, {
2956
2993
  prepend: s(() => [
2957
- i(l(B), { name: "mdi-table-row" })
2994
+ i(l(j), { name: "mdi-table-row" })
2958
2995
  ]),
2959
2996
  default: s(() => [
2960
- i(N, null, {
2997
+ i(S, null, {
2961
2998
  default: s(() => [
2962
2999
  J(G(l(e).TableToggleHeaderRow), 1)
2963
3000
  ]),
@@ -2966,18 +3003,18 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
2966
3003
  ]),
2967
3004
  _: 1
2968
3005
  }, 8, ["disabled"]),
2969
- i(O, {
3006
+ i(F, {
2970
3007
  disabled: !d.value.inTable,
2971
- onClick: c[19] || (c[19] = (y) => {
3008
+ onClick: u[19] || (u[19] = (y) => {
2972
3009
  var p;
2973
3010
  return (p = a.value) == null ? void 0 : p.chain().focus().deleteTable().run();
2974
3011
  })
2975
3012
  }, {
2976
3013
  prepend: s(() => [
2977
- i(l(B), { name: "mdi-table-remove" })
3014
+ i(l(j), { name: "mdi-table-remove" })
2978
3015
  ]),
2979
3016
  default: s(() => [
2980
- i(N, null, {
3017
+ i(S, null, {
2981
3018
  default: s(() => [
2982
3019
  J(G(l(e).TableDeleteTable), 1)
2983
3020
  ]),
@@ -2997,19 +3034,19 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
2997
3034
  size: "small",
2998
3035
  variant: "text",
2999
3036
  title: l(e).Blockquote,
3000
- disabled: !u.value,
3037
+ disabled: !c.value,
3001
3038
  active: d.value.blockquote,
3002
- onClick: c[20] || (c[20] = (y) => {
3039
+ onClick: u[20] || (u[20] = (y) => {
3003
3040
  var p;
3004
3041
  return (p = a.value) == null ? void 0 : p.chain().focus().toggleBlockquote().run();
3005
3042
  })
3006
3043
  }, {
3007
3044
  default: s(() => [
3008
- i(l(B), { name: "mdi-format-quote-close" })
3045
+ i(l(j), { name: "mdi-format-quote-close" })
3009
3046
  ]),
3010
3047
  _: 1
3011
3048
  }, 8, ["title", "disabled", "active"]),
3012
- i(_, {
3049
+ i(A, {
3013
3050
  vertical: "",
3014
3051
  inset: "",
3015
3052
  class: "mx-1"
@@ -3019,15 +3056,15 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
3019
3056
  size: "small",
3020
3057
  variant: "text",
3021
3058
  title: l(e).AlignLeft,
3022
- disabled: !u.value,
3059
+ disabled: !c.value,
3023
3060
  active: d.value.alignLeft,
3024
- onClick: c[21] || (c[21] = (y) => {
3061
+ onClick: u[21] || (u[21] = (y) => {
3025
3062
  var p;
3026
3063
  return (p = a.value) == null ? void 0 : p.chain().focus().setTextAlign("left").run();
3027
3064
  })
3028
3065
  }, {
3029
3066
  default: s(() => [
3030
- i(l(B), { name: "mdi-format-align-left" })
3067
+ i(l(j), { name: "mdi-format-align-left" })
3031
3068
  ]),
3032
3069
  _: 1
3033
3070
  }, 8, ["title", "disabled", "active"]),
@@ -3036,15 +3073,15 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
3036
3073
  size: "small",
3037
3074
  variant: "text",
3038
3075
  title: l(e).AlignCenter,
3039
- disabled: !u.value,
3076
+ disabled: !c.value,
3040
3077
  active: d.value.alignCenter,
3041
- onClick: c[22] || (c[22] = (y) => {
3078
+ onClick: u[22] || (u[22] = (y) => {
3042
3079
  var p;
3043
3080
  return (p = a.value) == null ? void 0 : p.chain().focus().setTextAlign("center").run();
3044
3081
  })
3045
3082
  }, {
3046
3083
  default: s(() => [
3047
- i(l(B), { name: "mdi-format-align-center" })
3084
+ i(l(j), { name: "mdi-format-align-center" })
3048
3085
  ]),
3049
3086
  _: 1
3050
3087
  }, 8, ["title", "disabled", "active"]),
@@ -3053,15 +3090,15 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
3053
3090
  size: "small",
3054
3091
  variant: "text",
3055
3092
  title: l(e).AlignRight,
3056
- disabled: !u.value,
3093
+ disabled: !c.value,
3057
3094
  active: d.value.alignRight,
3058
- onClick: c[23] || (c[23] = (y) => {
3095
+ onClick: u[23] || (u[23] = (y) => {
3059
3096
  var p;
3060
3097
  return (p = a.value) == null ? void 0 : p.chain().focus().setTextAlign("right").run();
3061
3098
  })
3062
3099
  }, {
3063
3100
  default: s(() => [
3064
- i(l(B), { name: "mdi-format-align-right" })
3101
+ i(l(j), { name: "mdi-format-align-right" })
3065
3102
  ]),
3066
3103
  _: 1
3067
3104
  }, 8, ["title", "disabled", "active"]),
@@ -3070,19 +3107,19 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
3070
3107
  size: "small",
3071
3108
  variant: "text",
3072
3109
  title: l(e).AlignJustify,
3073
- disabled: !u.value,
3110
+ disabled: !c.value,
3074
3111
  active: d.value.alignJustify,
3075
- onClick: c[24] || (c[24] = (y) => {
3112
+ onClick: u[24] || (u[24] = (y) => {
3076
3113
  var p;
3077
3114
  return (p = a.value) == null ? void 0 : p.chain().focus().setTextAlign("justify").run();
3078
3115
  })
3079
3116
  }, {
3080
3117
  default: s(() => [
3081
- i(l(B), { name: "mdi-format-align-justify" })
3118
+ i(l(j), { name: "mdi-format-align-justify" })
3082
3119
  ]),
3083
3120
  _: 1
3084
3121
  }, 8, ["title", "disabled", "active"]),
3085
- i(_, {
3122
+ i(A, {
3086
3123
  vertical: "",
3087
3124
  inset: "",
3088
3125
  class: "mx-1"
@@ -3092,15 +3129,15 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
3092
3129
  size: "small",
3093
3130
  variant: "text",
3094
3131
  title: l(e).BulletedList,
3095
- disabled: !u.value,
3132
+ disabled: !c.value,
3096
3133
  active: d.value.bulletList,
3097
- onClick: c[25] || (c[25] = (y) => {
3134
+ onClick: u[25] || (u[25] = (y) => {
3098
3135
  var p;
3099
3136
  return (p = a.value) == null ? void 0 : p.chain().focus().toggleBulletList().run();
3100
3137
  })
3101
3138
  }, {
3102
3139
  default: s(() => [
3103
- i(l(B), { name: "mdi-format-list-bulleted" })
3140
+ i(l(j), { name: "mdi-format-list-bulleted" })
3104
3141
  ]),
3105
3142
  _: 1
3106
3143
  }, 8, ["title", "disabled", "active"]),
@@ -3109,15 +3146,15 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
3109
3146
  size: "small",
3110
3147
  variant: "text",
3111
3148
  title: l(e).NumberedList,
3112
- disabled: !u.value,
3149
+ disabled: !c.value,
3113
3150
  active: d.value.orderedList,
3114
- onClick: c[26] || (c[26] = (y) => {
3151
+ onClick: u[26] || (u[26] = (y) => {
3115
3152
  var p;
3116
3153
  return (p = a.value) == null ? void 0 : p.chain().focus().toggleOrderedList().run();
3117
3154
  })
3118
3155
  }, {
3119
3156
  default: s(() => [
3120
- i(l(B), { name: "mdi-format-list-numbered" })
3157
+ i(l(j), { name: "mdi-format-list-numbered" })
3121
3158
  ]),
3122
3159
  _: 1
3123
3160
  }, 8, ["title", "disabled", "active"]),
@@ -3126,14 +3163,14 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
3126
3163
  size: "small",
3127
3164
  variant: "text",
3128
3165
  title: l(e).Outdent,
3129
- disabled: !u.value || !d.value.canLift,
3130
- onClick: c[27] || (c[27] = (y) => {
3166
+ disabled: !c.value || !d.value.canLift,
3167
+ onClick: u[27] || (u[27] = (y) => {
3131
3168
  var p;
3132
3169
  return (p = a.value) == null ? void 0 : p.chain().focus().liftListItem("listItem").run();
3133
3170
  })
3134
3171
  }, {
3135
3172
  default: s(() => [
3136
- i(l(B), { name: "mdi-format-indent-decrease" })
3173
+ i(l(j), { name: "mdi-format-indent-decrease" })
3137
3174
  ]),
3138
3175
  _: 1
3139
3176
  }, 8, ["title", "disabled"]),
@@ -3142,22 +3179,22 @@ const Xl = { class: "d-flex justify-end ga-2 mt-2" }, Yl = { class: "d-flex just
3142
3179
  size: "small",
3143
3180
  variant: "text",
3144
3181
  title: l(e).Indent,
3145
- disabled: !u.value || !d.value.canSink,
3146
- onClick: c[28] || (c[28] = (y) => {
3182
+ disabled: !c.value || !d.value.canSink,
3183
+ onClick: u[28] || (u[28] = (y) => {
3147
3184
  var p;
3148
3185
  return (p = a.value) == null ? void 0 : p.chain().focus().sinkListItem("listItem").run();
3149
3186
  })
3150
3187
  }, {
3151
3188
  default: s(() => [
3152
- i(l(B), { name: "mdi-format-indent-increase" })
3189
+ i(l(j), { name: "mdi-format-indent-increase" })
3153
3190
  ]),
3154
3191
  _: 1
3155
3192
  }, 8, ["title", "disabled"])
3156
3193
  ], 2);
3157
3194
  };
3158
3195
  }
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) {
3196
+ }), ta = /^[a-z][a-z0-9]*:[a-z]/i, na = /mso-[a-z-]+\s*:[^;]+;?/gi, la = /^Mso/i, aa = /background(?:-color)?\s*:[^;]+;?/gi;
3197
+ function oa(t) {
3161
3198
  const n = document.createTreeWalker(t, NodeFilter.SHOW_COMMENT), e = [];
3162
3199
  for (let a = n.nextNode(); a; a = n.nextNode()) e.push(a);
3163
3200
  e.forEach((a) => {
@@ -3172,33 +3209,33 @@ function rt(t) {
3172
3209
  n.removeChild(t);
3173
3210
  }
3174
3211
  }
3175
- function aa(t) {
3212
+ function ia(t) {
3176
3213
  const n = t.getAttribute("style");
3177
3214
  if (n != null) {
3178
- const a = n.replace(ea, "").replace(na, "").trim();
3215
+ const a = n.replace(na, "").replace(aa, "").trim();
3179
3216
  a ? t.setAttribute("style", a) : t.removeAttribute("style");
3180
3217
  }
3181
3218
  const e = t.getAttribute("class");
3182
3219
  if (e != null) {
3183
- const a = e.split(/\s+/).filter((r) => r && !ta.test(r)).join(" ");
3220
+ const a = e.split(/\s+/).filter((r) => r && !la.test(r)).join(" ");
3184
3221
  a ? t.setAttribute("class", a) : t.removeAttribute("class");
3185
3222
  }
3186
3223
  t.removeAttribute("lang"), t.removeAttribute("xml:lang"), t.removeAttribute("id"), t.removeAttribute("align"), t.removeAttribute("bgcolor");
3187
3224
  }
3188
- function oa(t) {
3225
+ function ra(t) {
3189
3226
  if (!t || typeof DOMParser == "undefined") return t;
3190
3227
  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") {
3228
+ return e ? (oa(e), e.querySelectorAll("xml, style, script, meta, link").forEach((a) => a.remove()), Array.from(e.querySelectorAll("*")).forEach((a) => {
3229
+ if (ta.test(a.tagName) || a.tagName === "FONT") {
3193
3230
  rt(a);
3194
3231
  return;
3195
3232
  }
3196
- aa(a);
3233
+ ia(a);
3197
3234
  }), Array.from(e.querySelectorAll("span, div")).forEach((a) => {
3198
3235
  a.attributes.length === 0 && rt(a);
3199
3236
  }), e.innerHTML) : t;
3200
3237
  }
3201
- const ia = { class: "editor-container" }, ra = { class: "rtf-bubble-menu" }, sa = /* @__PURE__ */ te({
3238
+ const sa = { class: "editor-container" }, ua = { class: "rtf-bubble-menu" }, ca = /* @__PURE__ */ ne({
3202
3239
  __name: "editor-core",
3203
3240
  props: {
3204
3241
  modelValue: { default: "" },
@@ -3215,7 +3252,7 @@ const ia = { class: "editor-container" }, ra = { class: "rtf-bubble-menu" }, sa
3215
3252
  editable: !e.disabled,
3216
3253
  extensions: [
3217
3254
  cn.configure({ link: !1 }),
3218
- ql.configure({ openOnClick: !1, autolink: !0, defaultProtocol: "https" }),
3255
+ Gl.configure({ openOnClick: !1, autolink: !0, defaultProtocol: "https" }),
3219
3256
  tn.configure({
3220
3257
  inline: !0,
3221
3258
  allowBase64: !0,
@@ -3232,15 +3269,15 @@ const ia = { class: "editor-container" }, ra = { class: "rtf-bubble-menu" }, sa
3232
3269
  on,
3233
3270
  an,
3234
3271
  nn.configure({ placeholder: "" }),
3235
- El,
3236
3272
  Ul,
3237
3273
  zl,
3238
- Gl
3274
+ Hl,
3275
+ Yl
3239
3276
  ],
3240
3277
  editorProps: {
3241
3278
  attributes: { class: "rtf-content" },
3242
- transformPastedHTML: (v) => oa(v),
3243
- handlePaste: Wl(() => r.value)
3279
+ transformPastedHTML: (v) => ra(v),
3280
+ handlePaste: Kl(() => r.value)
3244
3281
  },
3245
3282
  onUpdate: ({ editor: v }) => {
3246
3283
  a("update:modelValue", v.getHTML());
@@ -3249,34 +3286,34 @@ const ia = { class: "editor-container" }, ra = { class: "rtf-bubble-menu" }, sa
3249
3286
  me(
3250
3287
  () => e.modelValue,
3251
3288
  (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 });
3289
+ const b = r.value;
3290
+ if (!b) return;
3291
+ const _ = v != null ? v : "";
3292
+ _ !== b.getHTML() && b.commands.setContent(_, { emitUpdate: !1 });
3256
3293
  }
3257
3294
  ), me(
3258
3295
  () => e.disabled,
3259
3296
  (v) => {
3260
- var g;
3261
- return (g = r.value) == null ? void 0 : g.setEditable(!v);
3297
+ var b;
3298
+ return (b = r.value) == null ? void 0 : b.setEditable(!v);
3262
3299
  }
3263
3300
  ), 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, {
3301
+ const c = Bt(r), d = C(() => {
3302
+ var v, b, _, B, x;
3303
+ return c.value, {
3267
3304
  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"))
3305
+ italic: !!((b = r.value) != null && b.isActive("italic")),
3306
+ link: !!((_ = r.value) != null && _.isActive("link")),
3307
+ bulletList: !!((B = r.value) != null && B.isActive("bulletList")),
3308
+ orderedList: !!((x = r.value) != null && x.isActive("orderedList"))
3272
3309
  };
3273
3310
  });
3274
3311
  function h({ state: v }) {
3275
3312
  return !v.selection.empty && !(v.selection instanceof un);
3276
3313
  }
3277
3314
  function k(v) {
3278
- var g;
3279
- (g = r.value) == null || g.chain().focus()[v]().run();
3315
+ var b;
3316
+ (b = r.value) == null || b.chain().focus()[v]().run();
3280
3317
  }
3281
3318
  function f() {
3282
3319
  const v = r.value;
@@ -3285,49 +3322,49 @@ const ia = { class: "editor-container" }, ra = { class: "rtf-bubble-menu" }, sa
3285
3322
  v.chain().focus().unsetLink().run();
3286
3323
  return;
3287
3324
  }
3288
- const g = window.prompt("URL");
3289
- g && v.chain().focus().extendMarkRange("link").setLink({ href: g }).run();
3325
+ const b = window.prompt("URL");
3326
+ b && v.chain().focus().extendMarkRange("link").setLink({ href: b }).run();
3290
3327
  }
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"]),
3328
+ return (v, b) => {
3329
+ const _ = P("v-btn");
3330
+ return T(), Q("div", sa, [
3331
+ i(ea, { editor: l(r) }, null, 8, ["editor"]),
3295
3332
  i(l(mn), {
3296
3333
  class: "editor-container__editor",
3297
3334
  editor: l(r)
3298
3335
  }, null, 8, ["editor"]),
3299
- l(r) ? (V(), F(l(vn), {
3336
+ l(r) ? (T(), H(l(vn), {
3300
3337
  key: 0,
3301
3338
  editor: l(r),
3302
3339
  "should-show": h
3303
3340
  }, {
3304
3341
  default: s(() => [
3305
- oe("div", ra, [
3306
- i(T, {
3342
+ ae("div", ua, [
3343
+ i(_, {
3307
3344
  icon: "",
3308
3345
  size: "small",
3309
3346
  variant: "text",
3310
3347
  active: d.value.bold,
3311
- onClick: g[0] || (g[0] = ($) => k("toggleBold"))
3348
+ onClick: b[0] || (b[0] = (B) => k("toggleBold"))
3312
3349
  }, {
3313
3350
  default: s(() => [
3314
- i(l(B), { name: "mdi-format-bold" })
3351
+ i(l(j), { name: "mdi-format-bold" })
3315
3352
  ]),
3316
3353
  _: 1
3317
3354
  }, 8, ["active"]),
3318
- i(T, {
3355
+ i(_, {
3319
3356
  icon: "",
3320
3357
  size: "small",
3321
3358
  variant: "text",
3322
3359
  active: d.value.italic,
3323
- onClick: g[1] || (g[1] = ($) => k("toggleItalic"))
3360
+ onClick: b[1] || (b[1] = (B) => k("toggleItalic"))
3324
3361
  }, {
3325
3362
  default: s(() => [
3326
- i(l(B), { name: "mdi-format-italic" })
3363
+ i(l(j), { name: "mdi-format-italic" })
3327
3364
  ]),
3328
3365
  _: 1
3329
3366
  }, 8, ["active"]),
3330
- i(T, {
3367
+ i(_, {
3331
3368
  icon: "",
3332
3369
  size: "small",
3333
3370
  variant: "text",
@@ -3335,31 +3372,31 @@ const ia = { class: "editor-container" }, ra = { class: "rtf-bubble-menu" }, sa
3335
3372
  onClick: f
3336
3373
  }, {
3337
3374
  default: s(() => [
3338
- i(l(B), { name: "mdi-link-variant" })
3375
+ i(l(j), { name: "mdi-link-variant" })
3339
3376
  ]),
3340
3377
  _: 1
3341
3378
  }, 8, ["active"]),
3342
- i(T, {
3379
+ i(_, {
3343
3380
  icon: "",
3344
3381
  size: "small",
3345
3382
  variant: "text",
3346
3383
  active: d.value.bulletList,
3347
- onClick: g[2] || (g[2] = ($) => k("toggleBulletList"))
3384
+ onClick: b[2] || (b[2] = (B) => k("toggleBulletList"))
3348
3385
  }, {
3349
3386
  default: s(() => [
3350
- i(l(B), { name: "mdi-format-list-bulleted" })
3387
+ i(l(j), { name: "mdi-format-list-bulleted" })
3351
3388
  ]),
3352
3389
  _: 1
3353
3390
  }, 8, ["active"]),
3354
- i(T, {
3391
+ i(_, {
3355
3392
  icon: "",
3356
3393
  size: "small",
3357
3394
  variant: "text",
3358
3395
  active: d.value.orderedList,
3359
- onClick: g[3] || (g[3] = ($) => k("toggleOrderedList"))
3396
+ onClick: b[3] || (b[3] = (B) => k("toggleOrderedList"))
3360
3397
  }, {
3361
3398
  default: s(() => [
3362
- i(l(B), { name: "mdi-format-list-numbered" })
3399
+ i(l(j), { name: "mdi-format-list-numbered" })
3363
3400
  ]),
3364
3401
  _: 1
3365
3402
  }, 8, ["active"])
@@ -3370,7 +3407,7 @@ const ia = { class: "editor-container" }, ra = { class: "rtf-bubble-menu" }, sa
3370
3407
  ]);
3371
3408
  };
3372
3409
  }
3373
- }), Lt = /* @__PURE__ */ te({
3410
+ }), Dt = /* @__PURE__ */ ne({
3374
3411
  __name: "df-rtf-editor",
3375
3412
  props: /* @__PURE__ */ pe({
3376
3413
  minHeight: {},
@@ -3388,18 +3425,18 @@ const ia = { class: "editor-container" }, ra = { class: "rtf-bubble-menu" }, sa
3388
3425
  passthroughAttrs: {},
3389
3426
  density: {},
3390
3427
  variant: {}
3391
- }, ee(z({}, be), { minHeight: void 0 })),
3428
+ }, te(z({}, be), { minHeight: void 0 })),
3392
3429
  emits: ["update:modelValue", "click:clear"],
3393
3430
  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, {
3431
+ const e = t, a = n, { densityClass: r, value: c, vuetifyBindings: d } = ce(e, a);
3432
+ return (h, k) => (T(), H(l(We), X(e, {
3396
3433
  class: ["rtf-editor", l(r)]
3397
3434
  }), {
3398
3435
  default: s((f) => [
3399
- i(sa, X({
3436
+ i(ca, X({
3400
3437
  ref: "$editor",
3401
- modelValue: l(u),
3402
- "onUpdate:modelValue": k[0] || (k[0] = (v) => Ce(u) ? u.value = v : null),
3438
+ modelValue: l(c),
3439
+ "onUpdate:modelValue": k[0] || (k[0] = (v) => xe(c) ? c.value = v : null),
3403
3440
  class: { "mt-6": !!t.label },
3404
3441
  "min-height": t.minHeight,
3405
3442
  disabled: l(d).disabled
@@ -3412,38 +3449,38 @@ const ia = { class: "editor-container" }, ra = { class: "rtf-bubble-menu" }, sa
3412
3449
  }, 16, ["class"]));
3413
3450
  }
3414
3451
  });
3415
- function ua(t) {
3452
+ function da(t) {
3416
3453
  return t.map((n) => ({ value: n.id, title: n.text, icon: n.icon }));
3417
3454
  }
3418
3455
  function de(t, n) {
3419
3456
  var e;
3420
3457
  return t == null || at(t) && t.length === 0 ? null : n ? dt(t) : at(t) ? (e = mt(t)) != null ? e : null : t;
3421
3458
  }
3422
- function ze(t, n) {
3459
+ function He(t, n) {
3423
3460
  if (n == null) return [];
3424
3461
  const e = dt(n);
3425
3462
  return t.filter((a) => e.some((r) => r === a.id));
3426
3463
  }
3427
3464
  function Ie(t, n, e, a, r) {
3428
3465
  var d;
3429
- const u = de(t, e);
3430
- if (u == null) {
3466
+ const c = de(t, e);
3467
+ if (c == null) {
3431
3468
  n.value = e ? [] : null;
3432
3469
  return;
3433
3470
  }
3434
3471
  if (e)
3435
- a ? n.value = u : n.value = ze(r, u).map((h) => h.id);
3472
+ a ? n.value = c : n.value = He(r, c).map((h) => h.id);
3436
3473
  else if (a)
3437
- n.value = u;
3474
+ n.value = c;
3438
3475
  else {
3439
- const h = mt(ze(r, u));
3476
+ const h = mt(He(r, c));
3440
3477
  n.value = (d = h == null ? void 0 : h.id) != null ? d : null;
3441
3478
  }
3442
3479
  }
3443
- const ca = {
3480
+ const ma = {
3444
3481
  key: 0,
3445
3482
  class: "me-1"
3446
- }, da = /* @__PURE__ */ te({
3483
+ }, va = /* @__PURE__ */ ne({
3447
3484
  __name: "df-select",
3448
3485
  props: /* @__PURE__ */ pe({
3449
3486
  choices: {},
@@ -3465,7 +3502,7 @@ const ca = {
3465
3502
  passthroughAttrs: {},
3466
3503
  density: {},
3467
3504
  variant: {}
3468
- }, ee(z({}, be), {
3505
+ }, te(z({}, be), {
3469
3506
  choices: void 0,
3470
3507
  multiple: !1,
3471
3508
  allowTags: !1,
@@ -3474,165 +3511,165 @@ const ca = {
3474
3511
  })),
3475
3512
  emits: ["update:modelValueDisplay", "update:modelValue", "click:clear"],
3476
3513
  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), {
3514
+ var Re;
3515
+ const e = t, { choices: a, multiple: r, allowTags: c, allowNull: d, cssClass: h } = Oe(e), k = n, f = R(null), {
3479
3516
  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.");
3517
+ isRendered: b,
3518
+ label: _,
3519
+ showErrors: B,
3520
+ touched: x,
3521
+ value: V,
3522
+ visibilityClass: E,
3523
+ vuetifyBindings: L
3524
+ } = 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);
3525
+ (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
3526
  function m(I) {
3490
- k("update:modelValueDisplay", ze(K.value, I));
3527
+ k("update:modelValueDisplay", He(q.value, I));
3491
3528
  }
3492
- const _ = M(!1);
3493
- function N(I) {
3494
- _.value = !0;
3529
+ const A = R(!1);
3530
+ function S(I) {
3531
+ A.value = !0;
3495
3532
  try {
3496
- j.value = I;
3533
+ V.value = I;
3497
3534
  } finally {
3498
- Jt(de(j.value, r.value), I) || Ie(
3499
- de(j.value, r.value),
3500
- b,
3535
+ Jt(de(V.value, r.value), I) || Ie(
3536
+ de(V.value, r.value),
3537
+ g,
3501
3538
  r.value,
3502
- u.value,
3503
- K.value
3504
- ), Ke(() => {
3505
- _.value = !1;
3539
+ c.value,
3540
+ q.value
3541
+ ), Xe(() => {
3542
+ A.value = !1;
3506
3543
  });
3507
3544
  }
3508
3545
  }
3509
- function O(I) {
3546
+ function F(I) {
3510
3547
  if (!I) return 0;
3511
- const E = I.getBoundingClientRect(), ae = window.getComputedStyle(I);
3512
- return E.width + parseFloat(ae.marginLeft) + parseFloat(ae.marginRight);
3548
+ const N = I.getBoundingClientRect(), oe = window.getComputedStyle(I);
3549
+ return N.width + parseFloat(oe.marginLeft) + parseFloat(oe.marginRight);
3513
3550
  }
3514
- function ne() {
3551
+ function le() {
3515
3552
  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);
3553
+ if (r.value && d.value && g.value != null && g.value.length > 0 && f.value) {
3554
+ const N = f.value.$el, oe = (I = N.querySelector(".v-input__control")) == null ? void 0 : I.clientWidth, ie = N.querySelector(".v-field__input"), U = ie.querySelectorAll(".v-autocomplete__selection, .v-combobox__selection"), re = window.getComputedStyle(ie);
3518
3555
  let Ve = parseFloat(re.paddingLeft) + parseFloat(re.paddingRight);
3519
3556
  U.forEach((Rt) => {
3520
- Ve += O(Rt);
3557
+ Ve += F(Rt);
3521
3558
  });
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;
3559
+ const $t = F(N.querySelector(".v-field .v-field__clearable")), St = F(N.querySelector(".v-field .v-field__append-inner")), Mt = 2;
3560
+ u.value = oe - Ve - U.length * Mt - St < $t;
3524
3561
  } else
3525
- c.value = !1;
3562
+ u.value = !1;
3526
3563
  }
3527
- function A(I) {
3528
- const E = I.target;
3529
- E instanceof HTMLElement && E.closest(".v-chip__close") && (I.stopPropagation(), I.preventDefault());
3564
+ function D(I) {
3565
+ const N = I.target;
3566
+ N instanceof HTMLElement && N.closest(".v-chip__close") && (I.stopPropagation(), I.preventDefault());
3530
3567
  }
3531
3568
  me(
3532
- b,
3569
+ g,
3533
3570
  (I) => {
3534
- D.value.readonly || Ke(() => {
3535
- const E = de(I, r.value);
3536
- m(E), N(E);
3571
+ L.value.readonly || Xe(() => {
3572
+ const N = de(I, r.value);
3573
+ m(N), S(N);
3537
3574
  });
3538
3575
  },
3539
3576
  { deep: !0 }
3540
3577
  ), me(
3541
- j,
3578
+ V,
3542
3579
  (I) => {
3543
- if (!_.value) {
3544
- const E = de(I, r.value);
3545
- Ie(E, b, r.value, !1, K.value);
3580
+ if (!A.value) {
3581
+ const N = de(I, r.value);
3582
+ Ie(N, g, r.value, !1, q.value);
3546
3583
  }
3547
3584
  },
3548
3585
  { deep: !0 }
3549
- ), me(_, () => {
3550
- _.value || ne();
3586
+ ), me(A, () => {
3587
+ A.value || le();
3551
3588
  });
3552
- function q() {
3589
+ function O() {
3553
3590
  w.value != null && w.value.length > 0 && (w.value = null, y());
3554
3591
  }
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);
3592
+ function K() {
3593
+ if (O(), L.value.readonly || c.value) return;
3594
+ const I = de(g.value, r.value);
3595
+ Ie(I, g, r.value, !1, q.value), S(I);
3559
3596
  }
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));
3597
+ function ee(I, N) {
3598
+ if (I.stopPropagation(), L.value.readonly || c.value) {
3599
+ c.value && (g.value = g.value.filter((ie) => ie !== N));
3563
3600
  return;
3564
3601
  }
3565
- let ae;
3566
- r.value && Array.isArray(b.value) ? ae = de(
3567
- b.value.filter((ie) => ie !== E),
3602
+ let oe;
3603
+ r.value && Array.isArray(g.value) ? oe = de(
3604
+ g.value.filter((ie) => ie !== N),
3568
3605
  r.value
3569
- ) : ae = null, Ie(ae, b, r.value, !1, K.value), N(ae);
3606
+ ) : oe = null, Ie(oe, g, r.value, !1, q.value), S(oe);
3570
3607
  }
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;
3608
+ function y(I, N) {
3609
+ return he(this, null, function* () {
3610
+ if (L.value.readonly || (w.value = I, a.value || e.fetchChoices === void 0)) return;
3611
+ const oe = ++o.value;
3612
+ Z.value = !0;
3576
3613
  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;
3614
+ const ie = He(
3615
+ q.value,
3616
+ de(g.value, r.value)
3617
+ ), U = yield e.fetchChoices(I, N);
3618
+ if (oe !== o.value) return;
3619
+ W.value = Qt([...ie, ...U], "id"), $.value = !0;
3583
3620
  } finally {
3584
- W.value = !1;
3621
+ Z.value = !1;
3585
3622
  }
3586
3623
  });
3587
3624
  }
3588
3625
  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);
3626
+ let I = V.value;
3627
+ !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
3628
  }
3592
- return p(), e.fetchChoices !== void 0 && y(void 0, j.value).then(() => {
3629
+ return p(), e.fetchChoices !== void 0 && y(void 0, V.value).then(() => {
3593
3630
  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({
3631
+ }), (I, N) => {
3632
+ const oe = P("v-chip"), ie = P("v-list-item");
3633
+ return l(b) ? (T(), H(Ue(l(c) ? "v-combobox" : "v-autocomplete"), X({
3597
3634
  key: 0,
3598
3635
  ref_key: "dfSelectRef",
3599
3636
  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,
3637
+ modelValue: g.value,
3638
+ "onUpdate:modelValue": N[0] || (N[0] = (U) => g.value = U),
3639
+ class: [l(h), l(v), l(E), { "df-select-multirow": u.value }],
3640
+ items: M.value,
3604
3641
  "return-object": !1,
3605
3642
  chips: "",
3606
3643
  "auto-select-first": !0,
3607
- "closable-chips": l(d) || l(r) && b.value.length > 1,
3644
+ "closable-chips": l(d) || l(r) && g.value.length > 1,
3608
3645
  clearable: l(d),
3609
3646
  multiple: l(r),
3610
- loading: W.value,
3647
+ loading: Z.value,
3611
3648
  "hide-selected": !1,
3612
- "aria-describedby": l(D).helpText ? `${l(D).name}-help` : null,
3649
+ "aria-describedby": l(L).helpText ? `${l(L).name}-help` : null,
3613
3650
  "menu-props": { maxHeight: "400" },
3614
3651
  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({
3652
+ }, l(L), {
3653
+ "onUpdate:search": N[1] || (N[1] = (U) => y(U, void 0)),
3654
+ "onUpdate:modelValue": K,
3655
+ "onClick:clear": N[2] || (N[2] = (U) => g.value = null),
3656
+ onBlur: N[3] || (N[3] = (U) => x.value = !0),
3657
+ onMousedownCapture: N[4] || (N[4] = (U) => D(U))
3658
+ }), ze({
3622
3659
  chip: s(({ item: U }) => [
3623
- (V(), F(ae, {
3660
+ (T(), H(oe, {
3624
3661
  key: U.value,
3625
3662
  label: "",
3626
3663
  size: "small",
3627
3664
  class: "d-flex align-middle",
3628
3665
  variant: l(r) ? "tonal" : "text",
3629
3666
  closable: l(r),
3630
- "onClick:close": (re) => le(re, U.value)
3667
+ "onClick:close": (re) => ee(re, U.value)
3631
3668
  }, {
3632
3669
  prepend: s(() => {
3633
3670
  var re;
3634
3671
  return [
3635
- (re = U.raw) != null && re.icon ? (V(), F(l(B), {
3672
+ (re = U.raw) != null && re.icon ? (T(), H(l(j), {
3636
3673
  key: 0,
3637
3674
  class: "me-1",
3638
3675
  name: U.raw.icon
@@ -3640,7 +3677,7 @@ const ca = {
3640
3677
  ];
3641
3678
  }),
3642
3679
  default: s(() => [
3643
- oe("span", {
3680
+ ae("span", {
3644
3681
  class: ue({ "text-body-1": !l(r) })
3645
3682
  }, G(U.title), 3)
3646
3683
  ]),
@@ -3650,16 +3687,16 @@ const ca = {
3650
3687
  label: s((U) => [
3651
3688
  i(l(fe), {
3652
3689
  data: U,
3653
- label: l(T)
3690
+ label: l(_)
3654
3691
  }, null, 8, ["data", "label"])
3655
3692
  ]),
3656
3693
  item: s(({ props: U, item: re }) => [
3657
- i(ie, ye(ke(U)), {
3694
+ i(ie, we(Ce(U)), {
3658
3695
  prepend: s(() => {
3659
3696
  var Ve;
3660
3697
  return [
3661
- (Ve = re.raw) != null && Ve.icon ? (V(), Z("span", ca, [
3662
- i(l(B), {
3698
+ (Ve = re.raw) != null && Ve.icon ? (T(), Q("span", ma, [
3699
+ i(l(j), {
3663
3700
  class: "action-icon",
3664
3701
  name: re.raw.icon
3665
3702
  }, null, 8, ["name"])
@@ -3672,7 +3709,7 @@ const ca = {
3672
3709
  message: s(({ message: U }) => [
3673
3710
  i(l(ve), {
3674
3711
  message: U,
3675
- errors: l($)
3712
+ errors: l(B)
3676
3713
  }, null, 8, ["message", "errors"])
3677
3714
  ]),
3678
3715
  _: 2
@@ -3680,26 +3717,26 @@ const ca = {
3680
3717
  I.$slots["append-inner"] ? {
3681
3718
  name: "append-inner",
3682
3719
  fn: s((U) => [
3683
- _e(I.$slots, "append-inner", ye(ke(U)), void 0, !0)
3720
+ Te(I.$slots, "append-inner", we(Ce(U)), void 0, !0)
3684
3721
  ]),
3685
3722
  key: "0"
3686
3723
  } : void 0,
3687
3724
  I.$slots["prepend-inner"] ? {
3688
3725
  name: "prepend-inner",
3689
3726
  fn: s((U) => [
3690
- _e(I.$slots, "prepend-inner", ye(ke(U)), void 0, !0)
3727
+ Te(I.$slots, "prepend-inner", we(Ce(U)), void 0, !0)
3691
3728
  ]),
3692
3729
  key: "1"
3693
3730
  } : void 0
3694
3731
  ]), 1040, ["modelValue", "class", "items", "closable-chips", "clearable", "multiple", "loading", "aria-describedby", "search"])) : Y("", !0);
3695
3732
  };
3696
3733
  }
3697
- }), ma = (t, n) => {
3734
+ }), fa = (t, n) => {
3698
3735
  const e = t.__vccOpts || t;
3699
3736
  for (const [a, r] of n)
3700
3737
  e[a] = r;
3701
3738
  return e;
3702
- }, It = /* @__PURE__ */ ma(da, [["__scopeId", "data-v-7e5aa3b6"]]), $t = /* @__PURE__ */ te({
3739
+ }, It = /* @__PURE__ */ fa(va, [["__scopeId", "data-v-7e5aa3b6"]]), Lt = /* @__PURE__ */ ne({
3703
3740
  __name: "df-text-area",
3704
3741
  props: /* @__PURE__ */ pe({
3705
3742
  rows: {},
@@ -3718,41 +3755,41 @@ const ca = {
3718
3755
  passthroughAttrs: {},
3719
3756
  density: {},
3720
3757
  variant: {}
3721
- }, ee(z({}, be), {
3758
+ }, te(z({}, be), {
3722
3759
  rows: void 0,
3723
3760
  maxRows: void 0
3724
3761
  })),
3725
3762
  emits: ["update:modelValue", "click:clear"],
3726
3763
  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(
3764
+ const e = t, a = n, { densityClass: r, isRendered: c, label: d, showErrors: h, touched: k, value: f, visibilityClass: v, vuetifyBindings: b } = ce(
3728
3765
  e,
3729
3766
  a
3730
- ), { cssClass: T } = Fe(e);
3731
- return ($, C) => {
3732
- const j = R("v-textarea");
3733
- return l(u) ? (V(), Z("div", {
3767
+ ), { cssClass: _ } = Oe(e);
3768
+ return (B, x) => {
3769
+ const V = P("v-textarea");
3770
+ return l(c) ? (T(), Q("div", {
3734
3771
  key: 0,
3735
3772
  class: ue(["df-textarea-container", [l(r), l(v)]])
3736
3773
  }, [
3737
- i(j, X({
3774
+ i(V, X({
3738
3775
  modelValue: l(f),
3739
- "onUpdate:modelValue": C[0] || (C[0] = (P) => Ce(f) ? f.value = P : null),
3740
- class: l(T),
3776
+ "onUpdate:modelValue": x[0] || (x[0] = (E) => xe(f) ? f.value = E : null),
3777
+ class: l(_),
3741
3778
  rows: t.rows,
3742
3779
  "auto-grow": (t.maxRows || 0) > 0,
3743
3780
  "max-rows": t.maxRows
3744
- }, l(g), {
3745
- onBlur: C[1] || (C[1] = (P) => k.value = !0)
3781
+ }, l(b), {
3782
+ onBlur: x[1] || (x[1] = (E) => k.value = !0)
3746
3783
  }), {
3747
- label: s((P) => [
3784
+ label: s((E) => [
3748
3785
  i(l(fe), {
3749
- data: P,
3786
+ data: E,
3750
3787
  label: l(d)
3751
3788
  }, null, 8, ["data", "label"])
3752
3789
  ]),
3753
- message: s(({ message: P }) => [
3790
+ message: s(({ message: E }) => [
3754
3791
  i(l(ve), {
3755
- message: P,
3792
+ message: E,
3756
3793
  errors: l(h)
3757
3794
  }, null, 8, ["message", "errors"])
3758
3795
  ]),
@@ -3761,7 +3798,7 @@ const ca = {
3761
3798
  ], 2)) : Y("", !0);
3762
3799
  };
3763
3800
  }
3764
- }), va = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3801
+ }), pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3765
3802
  __proto__: null,
3766
3803
  DfActions: ht,
3767
3804
  DfCheckbox: gt,
@@ -3772,36 +3809,36 @@ const ca = {
3772
3809
  DfInput: xt,
3773
3810
  DfInputHint: ve,
3774
3811
  DfLabel: fe,
3775
- DfRtfEditor: Lt,
3812
+ DfRtfEditor: Dt,
3776
3813
  DfSelect: It,
3777
- DfTextArea: $t
3778
- }, Symbol.toStringTag, { value: "Module" })), fa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3814
+ DfTextArea: Lt
3815
+ }, Symbol.toStringTag, { value: "Module" })), ba = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3779
3816
  __proto__: null,
3780
3817
  VAutocomplete: kn,
3781
3818
  VBtn: wn,
3782
3819
  VCheckbox: Cn,
3783
3820
  VChip: xn,
3784
- VCol: Ln,
3785
- VColorPicker: Tn,
3821
+ VCol: Dn,
3822
+ VColorPicker: _n,
3786
3823
  VCombobox: An,
3787
- VConfirmEdit: _n,
3824
+ VConfirmEdit: Tn,
3788
3825
  VDatePicker: Vn,
3789
3826
  VField: jn,
3790
3827
  VFileInput: Bn,
3791
- VIcon: $n,
3792
- VImg: Dn,
3828
+ VIcon: Ln,
3829
+ VImg: $n,
3793
3830
  VInput: Sn,
3794
3831
  VListItem: Mn,
3795
3832
  VMenu: Rn,
3796
3833
  VNumberInput: Pn,
3797
- VProgressLinear: Nn,
3834
+ VProgressLinear: En,
3798
3835
  VRow: In,
3799
- VSelect: En,
3800
- VSwitch: Un,
3801
- VTextField: Fn,
3802
- VTextarea: zn,
3836
+ VSelect: Fn,
3837
+ VSwitch: Nn,
3838
+ VTextField: zn,
3839
+ VTextarea: Un,
3803
3840
  VTimePicker: Hn
3804
- }, Symbol.toStringTag, { value: "Module" })), ro = {
3841
+ }, Symbol.toStringTag, { value: "Module" })), uo = {
3805
3842
  "df-actions": ht,
3806
3843
  "df-checkbox": gt,
3807
3844
  "df-color": yt,
@@ -3811,21 +3848,21 @@ const ca = {
3811
3848
  "df-input": xt,
3812
3849
  "df-input-hint": ve,
3813
3850
  "df-label": fe,
3814
- "df-rtf-editor": Lt,
3851
+ "df-rtf-editor": Dt,
3815
3852
  "df-select": It,
3816
- "df-text-area": $t
3817
- }, so = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3853
+ "df-text-area": Lt
3854
+ }, co = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3818
3855
  __proto__: null
3819
- }, Symbol.toStringTag, { value: "Module" })), uo = {
3856
+ }, Symbol.toStringTag, { value: "Module" })), mo = {
3820
3857
  install: (t, n) => {
3821
3858
  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));
3859
+ 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
3860
  }
3824
3861
  };
3825
3862
  export {
3826
- Ne as Action,
3863
+ Fe as Action,
3827
3864
  se as ActionDisplayStyle,
3828
- Tl as DateTimeLocaleConfig,
3865
+ _l as DateTimeLocaleConfig,
3829
3866
  ht as DfActions,
3830
3867
  gt as DfCheckbox,
3831
3868
  yt as DfColor,
@@ -3833,32 +3870,32 @@ export {
3833
3870
  wt as DfFile,
3834
3871
  Ct as DfImage,
3835
3872
  xt as DfInput,
3836
- so as DfInputComponentProps,
3837
- va as DfInputComponents,
3873
+ co as DfInputComponentProps,
3874
+ pa as DfInputComponents,
3838
3875
  ve as DfInputHint,
3839
3876
  fe as DfLabel,
3840
- Lt as DfRtfEditor,
3877
+ Dt as DfRtfEditor,
3841
3878
  It as DfSelect,
3842
- $t as DfTextArea,
3843
- uo as DynamicFormsInputs,
3844
- _l as FileGoneError,
3845
- He as InputBase,
3879
+ Lt as DfTextArea,
3880
+ mo as DynamicFormsInputs,
3881
+ Tl as FileGoneError,
3882
+ We as InputBase,
3846
3883
  Vl as Label,
3847
- $l as ResponsiveActionRenderOptions,
3884
+ Ll as ResponsiveActionRenderOptions,
3848
3885
  Bl as ResponsiveRenderOptions,
3849
- fa as VuetifyComponents,
3886
+ ba as VuetifyComponents,
3850
3887
  be as defaultBaseProps,
3851
3888
  ot as defaultDisplayStyle,
3852
- ro as dfInputComponentsByTag,
3853
- Ll as getBreakpointName,
3889
+ uo as dfInputComponentsByTag,
3890
+ Dl as getBreakpointName,
3854
3891
  ft as getRenderOptionsForBreakpoint,
3855
3892
  it as responsiveBreakpoints,
3856
3893
  bt as setFileGoneError,
3857
- we as translatableStrings,
3858
- io as translateStrings,
3894
+ ye as translatableStrings,
3895
+ so as translateStrings,
3859
3896
  Il as useBreakpoint,
3860
3897
  pt as useFileTouchKeepAlive,
3861
3898
  ce as useInputBase,
3862
- Je as vuetifyInputsSettingsKey
3899
+ Qe as vuetifyInputsSettingsKey
3863
3900
  };
3864
3901
  //# sourceMappingURL=dynamicforms-vuetify-inputs.js.map