@dynamicforms/vuetify-inputs 0.9.1 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,255 +1,80 @@
1
- var wt = Object.defineProperty, kt = Object.defineProperties;
2
- var Ct = Object.getOwnPropertyDescriptors;
3
- var Xe = Object.getOwnPropertySymbols;
4
- var Vt = Object.prototype.hasOwnProperty, jt = Object.prototype.propertyIsEnumerable;
5
- var Ee = (e, t, n) => t in e ? wt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, B = (e, t) => {
6
- for (var n in t || (t = {}))
7
- Vt.call(t, n) && Ee(e, n, t[n]);
8
- if (Xe)
9
- for (var n of Xe(t))
10
- jt.call(t, n) && Ee(e, n, t[n]);
1
+ var $t = Object.defineProperty, St = Object.defineProperties;
2
+ var Mt = Object.getOwnPropertyDescriptors;
3
+ var Je = Object.getOwnPropertySymbols;
4
+ var Dt = Object.prototype.hasOwnProperty, It = Object.prototype.propertyIsEnumerable;
5
+ var Ue = (e, n, t) => n in e ? $t(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, U = (e, n) => {
6
+ for (var t in n || (n = {}))
7
+ Dt.call(n, t) && Ue(e, t, n[t]);
8
+ if (Je)
9
+ for (var t of Je(n))
10
+ It.call(n, t) && Ue(e, t, n[t]);
11
11
  return e;
12
- }, W = (e, t) => kt(e, Ct(t));
13
- var ye = (e, t, n) => Ee(e, typeof t != "symbol" ? t + "" : t, n);
14
- var _e = (e, t, n) => new Promise((l, a) => {
15
- var r = (g) => {
12
+ }, J = (e, n) => St(e, Mt(n));
13
+ var Ve = (e, n, t) => Ue(e, typeof n != "symbol" ? n + "" : n, t);
14
+ var Te = (e, n, t) => new Promise((a, r) => {
15
+ var d = (w) => {
16
16
  try {
17
- c(n.next(g));
18
- } catch (i) {
19
- a(i);
17
+ g(t.next(w));
18
+ } catch (v) {
19
+ r(v);
20
20
  }
21
- }, s = (g) => {
21
+ }, c = (w) => {
22
22
  try {
23
- c(n.throw(g));
24
- } catch (i) {
25
- a(i);
23
+ g(t.throw(w));
24
+ } catch (v) {
25
+ r(v);
26
26
  }
27
- }, c = (g) => g.done ? l(g.value) : Promise.resolve(g.value).then(r, s);
28
- c((n = n.apply(e, t)).next());
27
+ }, g = (w) => w.done ? a(w.value) : Promise.resolve(w.value).then(d, c);
28
+ g((t = t.apply(e, n)).next());
29
29
  });
30
- import * as qe from "vue";
31
- import { defineComponent as K, useModel as Tt, ref as F, watch as ue, onMounted as lt, markRaw as xt, onBeforeUnmount as at, openBlock as V, createBlock as R, resolveDynamicComponent as je, mergeModels as Ge, version as _t, isRef as ce, computed as b, unref as o, resolveComponent as N, createElementBlock as Y, normalizeClass as le, Fragment as Re, createCommentVNode as H, createTextVNode as Bt, toDisplayString as Ue, inject as Ae, shallowRef as Dt, toRaw as Ye, nextTick as Le, createSlots as Ne, withCtx as y, createVNode as I, renderSlot as pe, normalizeProps as ie, guardReactiveProps as se, createElementVNode as de, renderList as It, mergeProps as z, withModifiers as St, mergeDefaults as ae, normalizeStyle as rt, toRefs as Se, withKeys as Qe, useCssVars as Pt } from "vue";
32
- import { debounce as Et, isString as me, isEmpty as Te, isPlainObject as At, isObjectLike as $t, isBoolean as Ze, clone as Mt, toNumber as Je, isNaN as et, isArray as tt, castArray as it, first as st, isEqual as Ft, unionBy as Rt } from "lodash-es";
33
- import ve, { MessagesWidget as Lt, MdString as Nt, ValidationErrorRenderContent as Ut, Action as Ot, DisplayMode as $e } from "@dynamicforms/vue-forms";
34
- import { CachedIcon as xe } from "vue-cached-icon";
30
+ import { ref as F, isRef as ke, defineComponent as Z, computed as C, openBlock as j, createBlock as H, unref as l, resolveComponent as P, createElementBlock as Q, normalizeClass as ce, Fragment as Me, resolveDynamicComponent as Ne, createCommentVNode as G, createTextVNode as Y, toDisplayString as K, inject as Fe, shallowRef as Rt, toRaw as Qe, nextTick as Oe, createSlots as qe, withCtx as s, createVNode as i, renderSlot as we, normalizeProps as he, guardReactiveProps as ge, createElementVNode as ae, renderList as Ke, mergeProps as X, withModifiers as Pt, mergeDefaults as ve, normalizeStyle as Nt, toRefs as Ee, watch as se, withKeys as Se, onBeforeUnmount as ot, useCssVars as zt } from "vue";
31
+ import ye, { MessagesWidget as Et, MdString as Ut, ValidationErrorRenderContent as Ft, Action as Ht, DisplayMode as He } from "@dynamicforms/vue-forms";
32
+ import { CachedIcon as B } from "vue-cached-icon";
35
33
  import Wt from "vue-markdown-render";
36
- import { useDisplay as Ht } from "vuetify";
37
- import { parse as zt, format as we } from "date-fns";
38
- import { AccessibilityHelp as Kt, Alignment as Xt, AutoImage as qt, AutoLink as Gt, Autosave as Yt, BalloonToolbar as Qt, BlockQuote as Zt, Bold as Jt, CloudServices as en, Essentials as tn, GeneralHtmlSupport as nn, Heading as on, HorizontalLine as ln, ImageBlock as an, ImageCaption as rn, ImageInline as sn, ImageInsertViaUrl as un, ImageResize as cn, ImageStyle as dn, ImageToolbar as mn, ImageUpload as fn, Indent as vn, IndentBlock as pn, Italic as hn, Link as bn, List as gn, Autoformat as yn, MediaEmbed as wn, Paragraph as kn, PasteFromMarkdownExperimental as Cn, PasteFromOffice as Vn, SelectAll as jn, Style as Tn, Table as xn, TableCellProperties as _n, TableColumnResize as Bn, TableProperties as Dn, TableToolbar as In, Undo as Sn, TextTransformation as Pn, Base64UploadAdapter as En, ClassicEditor as An } from "ckeditor5";
39
- import { VAutocomplete as $n } from "vuetify/components/VAutocomplete";
40
- import { VBtn as Mn } from "vuetify/components/VBtn";
41
- import { VCheckbox as Fn } from "vuetify/components/VCheckbox";
42
- import { VChip as Rn } from "vuetify/components/VChip";
43
- import { VCombobox as Ln } from "vuetify/components/VCombobox";
44
- import { VColorPicker as Nn } from "vuetify/components/VColorPicker";
45
- import { VConfirmEdit as Un } from "vuetify/components/VConfirmEdit";
46
- import { VDatePicker as On } from "vuetify/components/VDatePicker";
47
- import { VField as Wn } from "vuetify/components/VField";
48
- import { VFileInput as Hn } from "vuetify/components/VFileInput";
49
- import { VCol as zn, VRow as Kn } from "vuetify/components/VGrid";
50
- import { VIcon as Xn } from "vuetify/components/VIcon";
51
- import { VImg as qn } from "vuetify/components/VImg";
52
- import { VInput as Gn } from "vuetify/components/VInput";
53
- import { VListItem as Yn } from "vuetify/components/VList";
54
- import { VMenu as Qn } from "vuetify/components/VMenu";
55
- import { VNumberInput as Zn } from "vuetify/components/VNumberInput";
56
- import { VProgressLinear as Jn } from "vuetify/components/VProgressLinear";
57
- import { VSelect as eo } from "vuetify/components/VSelect";
58
- import { VSwitch as to } from "vuetify/components/VSwitch";
59
- import { VTextarea as no } from "vuetify/components/VTextarea";
60
- import { VTextField as oo } from "vuetify/components/VTextField";
61
- import { VTimePicker as lo } from "vuetify/components/VTimePicker";
62
- new Array(256).fill("").map((e, t) => ("0" + t.toString(16)).slice(-2));
63
- function Oe(e) {
64
- return !!e && /^\d+\.\d+\.\d+/.test(e);
65
- }
66
- function ut(e) {
67
- if (!Oe(e))
68
- throw new Error(`Invalid semantic version: ${e || "<blank>"}.`);
69
- const [t, n, l] = e.split(".");
70
- return {
71
- major: Number.parseInt(t, 10),
72
- minor: Number.parseInt(n, 10),
73
- patch: Number.parseInt(l, 10)
74
- };
75
- }
76
- function We(e) {
77
- return e ? ["nightly", "alpha", "internal", "nightly-", "staging"].some((t) => e.includes(t)) : !1;
78
- }
79
- function ao(e) {
80
- return Oe(e) || We(e);
81
- }
82
- function ro(e, t) {
83
- const n = e.extraPlugins || [];
84
- return W(B({}, e), {
85
- extraPlugins: [
86
- ...n,
87
- ...t.filter((l) => !n.includes(l))
88
- ]
89
- });
90
- }
91
- function io(e) {
92
- if (We(e))
93
- return 3;
94
- const { major: t } = ut(e);
95
- switch (!0) {
96
- case t >= 44:
97
- return 3;
98
- case t >= 38:
99
- return 2;
100
- default:
101
- return 1;
102
- }
103
- }
104
- function ct() {
105
- const { CKEDITOR_VERSION: e, CKEDITOR: t } = window;
106
- return ao(e) ? {
107
- source: t ? "cdn" : "npm",
108
- version: e
109
- } : null;
110
- }
111
- function so() {
112
- const e = ct();
113
- return e ? io(e.version) : null;
114
- }
115
- function dt(e, t) {
116
- switch (t || (t = so() || void 0), t) {
117
- case 1:
118
- case 2:
119
- return e === void 0;
120
- case 3:
121
- return e === "GPL";
122
- default:
123
- return !1;
124
- }
125
- }
126
- function uo(e, t) {
127
- return function(l) {
128
- dt(l.config.get("licenseKey")) || l.on("collectUsageData", (a, { setUsageData: r }) => {
129
- r(`integration.${e}`, t);
130
- });
131
- };
132
- }
133
- const co = uo(
134
- "vue",
135
- {
136
- version: "7.4.0",
137
- frameworkVersion: _t
138
- }
139
- );
140
- function mo(e) {
141
- return dt(e.licenseKey) ? e : ro(e, [
142
- /**
143
- * This part of the code is not executed in open-source implementations using a GPL key.
144
- * It only runs when a specific license key is provided. If you are uncertain whether
145
- * this applies to your installation, please contact our support team.
146
- */
147
- co
148
- ]);
149
- }
150
- function fo(e, t) {
151
- var n;
152
- if (mt()) {
153
- const l = W(B({}, e), {
154
- roots: W(B({}, e.roots), {
155
- main: W(B(B({}, e.root), (n = e.roots) == null ? void 0 : n.main), {
156
- initialData: t
157
- })
158
- })
159
- });
160
- return delete l.root, delete l.initialData, l;
161
- }
162
- return W(B({}, e), {
163
- initialData: t
164
- });
165
- }
166
- function vo(e) {
167
- var t, n;
168
- return mt() ? (n = (t = e.roots) == null ? void 0 : t.main) == null ? void 0 : n.initialData : e.initialData;
169
- }
170
- function mt() {
171
- const e = ct();
172
- return e ? !Oe(e.version) || We(e.version) || ut(e.version).major >= 48 : !1;
173
- }
174
- const Me = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", po = 300, ho = /* @__PURE__ */ K({
175
- name: "CKEditor",
176
- __name: "ckeditor",
177
- props: /* @__PURE__ */ Ge({
178
- editor: {},
179
- config: { default: () => ({}) },
180
- tagName: { default: "div" },
181
- disabled: { type: Boolean, default: !1 },
182
- disableTwoWayDataBinding: { type: Boolean, default: !1 }
183
- }, {
184
- modelValue: { type: String, default: "" },
185
- modelModifiers: {}
186
- }),
187
- emits: /* @__PURE__ */ Ge(["ready", "destroy", "blur", "focus", "input", "update:modelValue"], ["update:modelValue"]),
188
- setup(e, { expose: t, emit: n }) {
189
- const l = Tt(e, "modelValue"), a = e, r = n, s = F(), c = F(), g = F();
190
- t({
191
- instance: c,
192
- lastEditorData: g
193
- }), ue(l, (u) => {
194
- c.value && u !== g.value && c.value.data.set(u);
195
- }), ue(() => a.disabled, (u) => {
196
- u ? c.value.enableReadOnlyMode(Me) : c.value.disableReadOnlyMode(Me);
197
- });
198
- function i() {
199
- const u = window.CKEDITOR_VERSION;
200
- if (!u)
201
- return console.warn('Cannot find the "CKEDITOR_VERSION" in the "window" scope.');
202
- const [C] = u.split(".").map(Number);
203
- C >= 42 || u.startsWith("0.0.0") || console.warn("The <CKEditor> component requires using CKEditor 5 in version 42+ or nightly build.");
204
- }
205
- function f(u) {
206
- const C = Et((x) => {
207
- if (a.disableTwoWayDataBinding)
208
- return;
209
- const p = g.value = u.data.get();
210
- r("update:modelValue", p, x, u), r("input", p, x, u);
211
- }, po, { leading: !0 });
212
- u.model.document.on("change:data", C), u.editing.view.document.on("focus", (x) => {
213
- r("focus", x, u);
214
- }), u.editing.view.document.on("blur", (x) => {
215
- r("blur", x, u);
216
- });
217
- }
218
- return i(), lt(() => {
219
- let u = mo(
220
- Object.assign({}, a.config)
221
- );
222
- l.value && (u = fo(u, l.value)), a.editor.create(s.value, u).then((C) => {
223
- c.value = xt(C), f(C), l.value !== vo(u) && C.data.set(l.value), a.disabled && C.enableReadOnlyMode(Me), r("ready", C);
224
- }).catch((C) => {
225
- console.error(C);
226
- });
227
- }), at(() => {
228
- c.value && (c.value.destroy(), c.value = void 0), r("destroy");
229
- }), (u, C) => (V(), R(je(e.tagName), {
230
- ref_key: "element",
231
- ref: s
232
- }, null, 512));
233
- }
234
- });
235
- if (!qe.version || !qe.version.startsWith("3."))
236
- throw new Error(
237
- "The CKEditor plugin works only with Vue 3+. For more information, please refer to https://ckeditor.com/docs/ckeditor5/latest/builds/guides/integration/frameworks/vuejs-v3.html"
238
- );
239
- const bo = {
240
- /**
241
- * Installs the plugin, registering the `<ckeditor>` component.
242
- *
243
- * @param app The application instance.
244
- */
245
- install(e) {
246
- e.component("Ckeditor", ho);
247
- }
248
- };
249
- function go(e) {
34
+ import { isString as fe, isEmpty as De, isPlainObject as it, isObjectLike as Ot, isBoolean as Ie, clone as qt, toNumber as Ze, isNaN as et, isArray as tt, castArray as rt, first as st, isEqual as Kt, unionBy as Xt } from "lodash-es";
35
+ import { useDisplay as Yt } from "vuetify";
36
+ import { parse as Gt, format as je } from "date-fns";
37
+ import Jt from "@tiptap/extension-image";
38
+ import Qt from "@tiptap/extension-placeholder";
39
+ import { Table as Zt } from "@tiptap/extension-table";
40
+ import en from "@tiptap/extension-table-cell";
41
+ import tn from "@tiptap/extension-table-header";
42
+ import nn from "@tiptap/extension-table-row";
43
+ import ln from "@tiptap/extension-text-align";
44
+ import { NodeSelection as an } from "@tiptap/pm/state";
45
+ import on from "@tiptap/starter-kit";
46
+ import { useEditor as rn, EditorContent as sn } from "@tiptap/vue-3";
47
+ import { BubbleMenu as un } from "@tiptap/vue-3/menus";
48
+ import { Extension as dn, Mark as cn, mergeAttributes as ut, Node as mn } from "@tiptap/core";
49
+ import { Slice as fn, Fragment as vn } from "@tiptap/pm/model";
50
+ import pn from "@tiptap/extension-link";
51
+ import { VAutocomplete as bn } from "vuetify/components/VAutocomplete";
52
+ import { VBtn as hn } from "vuetify/components/VBtn";
53
+ import { VCheckbox as gn } from "vuetify/components/VCheckbox";
54
+ import { VChip as kn } from "vuetify/components/VChip";
55
+ import { VCombobox as yn } from "vuetify/components/VCombobox";
56
+ import { VColorPicker as wn } from "vuetify/components/VColorPicker";
57
+ import { VConfirmEdit as Cn } from "vuetify/components/VConfirmEdit";
58
+ import { VDatePicker as An } from "vuetify/components/VDatePicker";
59
+ import { VField as xn } from "vuetify/components/VField";
60
+ import { VFileInput as Vn } from "vuetify/components/VFileInput";
61
+ import { VCol as Tn, VRow as jn } from "vuetify/components/VGrid";
62
+ import { VIcon as _n } from "vuetify/components/VIcon";
63
+ import { VImg as Bn } from "vuetify/components/VImg";
64
+ import { VInput as Ln } from "vuetify/components/VInput";
65
+ import { VListItem as $n } from "vuetify/components/VList";
66
+ import { VMenu as Sn } from "vuetify/components/VMenu";
67
+ import { VNumberInput as Mn } from "vuetify/components/VNumberInput";
68
+ import { VProgressLinear as Dn } from "vuetify/components/VProgressLinear";
69
+ import { VSelect as In } from "vuetify/components/VSelect";
70
+ import { VSwitch as Rn } from "vuetify/components/VSwitch";
71
+ import { VTextarea as Pn } from "vuetify/components/VTextarea";
72
+ import { VTextField as Nn } from "vuetify/components/VTextField";
73
+ import { VTimePicker as zn } from "vuetify/components/VTimePicker";
74
+ function En(e) {
250
75
  return e.one !== void 0;
251
76
  }
252
- const yo = {
77
+ const Un = {
253
78
  lessThanXSeconds: {
254
79
  present: {
255
80
  one: "manj kot {{count}} sekunda",
@@ -526,7 +351,7 @@ const yo = {
526
351
  }
527
352
  }
528
353
  };
529
- function wo(e) {
354
+ function Fn(e) {
530
355
  switch (e % 100) {
531
356
  case 1:
532
357
  return "one";
@@ -539,53 +364,53 @@ function wo(e) {
539
364
  return "other";
540
365
  }
541
366
  }
542
- const ko = (e, t, n) => {
543
- let l = "", a = "present";
544
- n != null && n.addSuffix && (n.comparison && n.comparison > 0 ? (a = "future", l = "čez ") : (a = "past", l = "pred "));
545
- const r = yo[e];
546
- if (typeof r == "string")
547
- l += r;
367
+ const Hn = (e, n, t) => {
368
+ let a = "", r = "present";
369
+ t != null && t.addSuffix && (t.comparison && t.comparison > 0 ? (r = "future", a = "čez ") : (r = "past", a = "pred "));
370
+ const d = Un[e];
371
+ if (typeof d == "string")
372
+ a += d;
548
373
  else {
549
- const s = wo(t);
550
- go(r) ? l += r[s].replace("{{count}}", String(t)) : l += r[a][s].replace("{{count}}", String(t));
374
+ const c = Fn(n);
375
+ En(d) ? a += d[c].replace("{{count}}", String(n)) : a += d[r][c].replace("{{count}}", String(n));
551
376
  }
552
- return l;
377
+ return a;
553
378
  };
554
- function Fe(e) {
555
- return (t = {}) => {
556
- const n = t.width ? String(t.width) : e.defaultWidth;
557
- return e.formats[n] || e.formats[e.defaultWidth];
379
+ function We(e) {
380
+ return (n = {}) => {
381
+ const t = n.width ? String(n.width) : e.defaultWidth;
382
+ return e.formats[t] || e.formats[e.defaultWidth];
558
383
  };
559
384
  }
560
- const Co = {
385
+ const Wn = {
561
386
  full: "EEEE, dd. MMMM y",
562
387
  long: "dd. MMMM y",
563
388
  medium: "d. MMM y",
564
389
  short: "d. MM. yy"
565
- }, Vo = {
390
+ }, On = {
566
391
  full: "HH:mm:ss zzzz",
567
392
  long: "HH:mm:ss z",
568
393
  medium: "HH:mm:ss",
569
394
  short: "HH:mm"
570
- }, jo = {
395
+ }, qn = {
571
396
  full: "{{date}} {{time}}",
572
397
  long: "{{date}} {{time}}",
573
398
  medium: "{{date}} {{time}}",
574
399
  short: "{{date}} {{time}}"
575
- }, To = {
576
- date: Fe({
577
- formats: Co,
400
+ }, Kn = {
401
+ date: We({
402
+ formats: Wn,
578
403
  defaultWidth: "full"
579
404
  }),
580
- time: Fe({
581
- formats: Vo,
405
+ time: We({
406
+ formats: On,
582
407
  defaultWidth: "full"
583
408
  }),
584
- dateTime: Fe({
585
- formats: jo,
409
+ dateTime: We({
410
+ formats: qn,
586
411
  defaultWidth: "full"
587
412
  })
588
- }, xo = {
413
+ }, Xn = {
589
414
  lastWeek: (e) => {
590
415
  switch (e.getDay()) {
591
416
  case 0:
@@ -614,34 +439,34 @@ const Co = {
614
439
  }
615
440
  },
616
441
  other: "P"
617
- }, _o = (e, t, n, l) => {
618
- const a = xo[e];
619
- return typeof a == "function" ? a(t) : a;
442
+ }, Yn = (e, n, t, a) => {
443
+ const r = Xn[e];
444
+ return typeof r == "function" ? r(n) : r;
620
445
  };
621
- function ke(e) {
622
- return (t, n) => {
623
- const l = n != null && n.context ? String(n.context) : "standalone";
624
- let a;
625
- if (l === "formatting" && e.formattingValues) {
626
- const s = e.defaultFormattingWidth || e.defaultWidth, c = n != null && n.width ? String(n.width) : s;
627
- a = e.formattingValues[c] || e.formattingValues[s];
446
+ function _e(e) {
447
+ return (n, t) => {
448
+ const a = t != null && t.context ? String(t.context) : "standalone";
449
+ let r;
450
+ if (a === "formatting" && e.formattingValues) {
451
+ const c = e.defaultFormattingWidth || e.defaultWidth, g = t != null && t.width ? String(t.width) : c;
452
+ r = e.formattingValues[g] || e.formattingValues[c];
628
453
  } else {
629
- const s = e.defaultWidth, c = n != null && n.width ? String(n.width) : e.defaultWidth;
630
- a = e.values[c] || e.values[s];
454
+ const c = e.defaultWidth, g = t != null && t.width ? String(t.width) : e.defaultWidth;
455
+ r = e.values[g] || e.values[c];
631
456
  }
632
- const r = e.argumentCallback ? e.argumentCallback(t) : t;
633
- return a[r];
457
+ const d = e.argumentCallback ? e.argumentCallback(n) : n;
458
+ return r[d];
634
459
  };
635
460
  }
636
- const Bo = {
461
+ const Gn = {
637
462
  narrow: ["pr. n. št.", "po n. št."],
638
463
  abbreviated: ["pr. n. št.", "po n. št."],
639
464
  wide: ["pred našim štetjem", "po našem štetju"]
640
- }, Do = {
465
+ }, Jn = {
641
466
  narrow: ["1", "2", "3", "4"],
642
467
  abbreviated: ["1. čet.", "2. čet.", "3. čet.", "4. čet."],
643
468
  wide: ["1. četrtletje", "2. četrtletje", "3. četrtletje", "4. četrtletje"]
644
- }, Io = {
469
+ }, Qn = {
645
470
  narrow: ["j", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"],
646
471
  abbreviated: [
647
472
  "jan.",
@@ -671,7 +496,7 @@ const Bo = {
671
496
  "november",
672
497
  "december"
673
498
  ]
674
- }, So = {
499
+ }, Zn = {
675
500
  narrow: ["n", "p", "t", "s", "č", "p", "s"],
676
501
  short: ["ned.", "pon.", "tor.", "sre.", "čet.", "pet.", "sob."],
677
502
  abbreviated: ["ned.", "pon.", "tor.", "sre.", "čet.", "pet.", "sob."],
@@ -684,7 +509,7 @@ const Bo = {
684
509
  "petek",
685
510
  "sobota"
686
511
  ]
687
- }, Po = {
512
+ }, el = {
688
513
  narrow: {
689
514
  am: "d",
690
515
  pm: "p",
@@ -715,7 +540,7 @@ const Bo = {
715
540
  evening: "večer",
716
541
  night: "noč"
717
542
  }
718
- }, Eo = {
543
+ }, tl = {
719
544
  narrow: {
720
545
  am: "d",
721
546
  pm: "p",
@@ -746,88 +571,88 @@ const Bo = {
746
571
  evening: "zvečer",
747
572
  night: "ponoči"
748
573
  }
749
- }, Ao = (e, t) => Number(e) + ".", $o = {
750
- ordinalNumber: Ao,
751
- era: ke({
752
- values: Bo,
574
+ }, nl = (e, n) => Number(e) + ".", ll = {
575
+ ordinalNumber: nl,
576
+ era: _e({
577
+ values: Gn,
753
578
  defaultWidth: "wide"
754
579
  }),
755
- quarter: ke({
756
- values: Do,
580
+ quarter: _e({
581
+ values: Jn,
757
582
  defaultWidth: "wide",
758
583
  argumentCallback: (e) => e - 1
759
584
  }),
760
- month: ke({
761
- values: Io,
585
+ month: _e({
586
+ values: Qn,
762
587
  defaultWidth: "wide"
763
588
  }),
764
- day: ke({
765
- values: So,
589
+ day: _e({
590
+ values: Zn,
766
591
  defaultWidth: "wide"
767
592
  }),
768
- dayPeriod: ke({
769
- values: Po,
593
+ dayPeriod: _e({
594
+ values: el,
770
595
  defaultWidth: "wide",
771
- formattingValues: Eo,
596
+ formattingValues: tl,
772
597
  defaultFormattingWidth: "wide"
773
598
  })
774
599
  };
775
- function Ce(e) {
776
- return (t, n = {}) => {
777
- const l = n.width, a = l && e.matchPatterns[l] || e.matchPatterns[e.defaultMatchWidth], r = t.match(a);
778
- if (!r)
600
+ function Be(e) {
601
+ return (n, t = {}) => {
602
+ const a = t.width, r = a && e.matchPatterns[a] || e.matchPatterns[e.defaultMatchWidth], d = n.match(r);
603
+ if (!d)
779
604
  return null;
780
- const s = r[0], c = l && e.parsePatterns[l] || e.parsePatterns[e.defaultParseWidth], g = Array.isArray(c) ? Fo(c, (u) => u.test(s)) : (
605
+ const c = d[0], g = a && e.parsePatterns[a] || e.parsePatterns[e.defaultParseWidth], w = Array.isArray(g) ? ol(g, (h) => h.test(c)) : (
781
606
  // [TODO] -- I challenge you to fix the type
782
- Mo(c, (u) => u.test(s))
607
+ al(g, (h) => h.test(c))
783
608
  );
784
- let i;
785
- i = e.valueCallback ? e.valueCallback(g) : g, i = n.valueCallback ? (
609
+ let v;
610
+ v = e.valueCallback ? e.valueCallback(w) : w, v = t.valueCallback ? (
786
611
  // [TODO] -- I challenge you to fix the type
787
- n.valueCallback(i)
788
- ) : i;
789
- const f = t.slice(s.length);
790
- return { value: i, rest: f };
612
+ t.valueCallback(v)
613
+ ) : v;
614
+ const f = n.slice(c.length);
615
+ return { value: v, rest: f };
791
616
  };
792
617
  }
793
- function Mo(e, t) {
794
- for (const n in e)
795
- if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n]))
796
- return n;
618
+ function al(e, n) {
619
+ for (const t in e)
620
+ if (Object.prototype.hasOwnProperty.call(e, t) && n(e[t]))
621
+ return t;
797
622
  }
798
- function Fo(e, t) {
799
- for (let n = 0; n < e.length; n++)
800
- if (t(e[n]))
801
- return n;
623
+ function ol(e, n) {
624
+ for (let t = 0; t < e.length; t++)
625
+ if (n(e[t]))
626
+ return t;
802
627
  }
803
- function Ro(e) {
804
- return (t, n = {}) => {
805
- const l = t.match(e.matchPattern);
806
- if (!l) return null;
807
- const a = l[0], r = t.match(e.parsePattern);
808
- if (!r) return null;
809
- let s = e.valueCallback ? e.valueCallback(r[0]) : r[0];
810
- s = n.valueCallback ? n.valueCallback(s) : s;
811
- const c = t.slice(a.length);
812
- return { value: s, rest: c };
628
+ function il(e) {
629
+ return (n, t = {}) => {
630
+ const a = n.match(e.matchPattern);
631
+ if (!a) return null;
632
+ const r = a[0], d = n.match(e.parsePattern);
633
+ if (!d) return null;
634
+ let c = e.valueCallback ? e.valueCallback(d[0]) : d[0];
635
+ c = t.valueCallback ? t.valueCallback(c) : c;
636
+ const g = n.slice(r.length);
637
+ return { value: c, rest: g };
813
638
  };
814
639
  }
815
- const Lo = /^(\d+)\./i, No = /\d+/i, Uo = {
640
+ const rl = /^(\d+)\./i, sl = /\d+/i, ul = {
816
641
  abbreviated: /^(pr\. n\. št\.|po n\. št\.)/i,
817
642
  wide: /^(pred Kristusom|pred na[sš]im [sš]tetjem|po Kristusu|po na[sš]em [sš]tetju|na[sš]ega [sš]tetja)/i
818
- }, Oo = {
643
+ }, dl = {
819
644
  any: [/^pr/i, /^(po|na[sš]em)/i]
820
- }, Wo = {
645
+ }, cl = {
821
646
  narrow: /^[1234]/i,
822
647
  abbreviated: /^[1234]\.\s?[čc]et\.?/i,
823
648
  wide: /^[1234]\. [čc]etrtletje/i
824
- }, Ho = {
649
+ }, ml = {
825
650
  any: [/1/i, /2/i, /3/i, /4/i]
826
- }, zo = {
651
+ }, fl = {
827
652
  narrow: /^[jfmasond]/i,
828
653
  abbreviated: /^(jan\.|feb\.|mar\.|apr\.|maj|jun\.|jul\.|avg\.|sep\.|okt\.|nov\.|dec\.)/i,
829
654
  wide: /^(januar|februar|marec|april|maj|junij|julij|avgust|september|oktober|november|december)/i
830
- }, Ko = {
655
+ }, vl = {
831
656
  narrow: [
832
657
  /^j/i,
833
658
  /^f/i,
@@ -870,18 +695,18 @@ const Lo = /^(\d+)\./i, No = /\d+/i, Uo = {
870
695
  /^n/i,
871
696
  /^d/i
872
697
  ]
873
- }, Xo = {
698
+ }, pl = {
874
699
  narrow: /^[nptsčc]/i,
875
700
  short: /^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,
876
701
  abbreviated: /^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,
877
702
  wide: /^(nedelja|ponedeljek|torek|sreda|[cč]etrtek|petek|sobota)/i
878
- }, qo = {
703
+ }, bl = {
879
704
  narrow: [/^n/i, /^p/i, /^t/i, /^s/i, /^[cč]/i, /^p/i, /^s/i],
880
705
  any: [/^n/i, /^po/i, /^t/i, /^sr/i, /^[cč]/i, /^pe/i, /^so/i]
881
- }, Go = {
706
+ }, hl = {
882
707
  narrow: /^(d|po?|z?v|n|z?j|24\.00|12\.00)/i,
883
708
  any: /^(dop\.|pop\.|o?poln(\.|o[cč]i?)|o?pold(\.|ne)|z?ve[cč](\.|er)|(po)?no[cč]i?|popold(ne|an)|jut(\.|ro)|zjut(\.|raj))/i
884
- }, Yo = {
709
+ }, gl = {
885
710
  narrow: {
886
711
  am: /^d/i,
887
712
  pm: /^p/i,
@@ -902,60 +727,60 @@ const Lo = /^(\d+)\./i, No = /\d+/i, Uo = {
902
727
  evening: /^z?ve/i,
903
728
  night: /(po)?no/i
904
729
  }
905
- }, Qo = {
906
- ordinalNumber: Ro({
907
- matchPattern: Lo,
908
- parsePattern: No,
730
+ }, kl = {
731
+ ordinalNumber: il({
732
+ matchPattern: rl,
733
+ parsePattern: sl,
909
734
  valueCallback: (e) => parseInt(e, 10)
910
735
  }),
911
- era: Ce({
912
- matchPatterns: Uo,
736
+ era: Be({
737
+ matchPatterns: ul,
913
738
  defaultMatchWidth: "wide",
914
- parsePatterns: Oo,
739
+ parsePatterns: dl,
915
740
  defaultParseWidth: "any"
916
741
  }),
917
- quarter: Ce({
918
- matchPatterns: Wo,
742
+ quarter: Be({
743
+ matchPatterns: cl,
919
744
  defaultMatchWidth: "wide",
920
- parsePatterns: Ho,
745
+ parsePatterns: ml,
921
746
  defaultParseWidth: "any",
922
747
  valueCallback: (e) => e + 1
923
748
  }),
924
- month: Ce({
925
- matchPatterns: zo,
749
+ month: Be({
750
+ matchPatterns: fl,
926
751
  defaultMatchWidth: "wide",
927
- parsePatterns: Ko,
752
+ parsePatterns: vl,
928
753
  defaultParseWidth: "wide"
929
754
  }),
930
- day: Ce({
931
- matchPatterns: Xo,
755
+ day: Be({
756
+ matchPatterns: pl,
932
757
  defaultMatchWidth: "wide",
933
- parsePatterns: qo,
758
+ parsePatterns: bl,
934
759
  defaultParseWidth: "any"
935
760
  }),
936
- dayPeriod: Ce({
937
- matchPatterns: Go,
761
+ dayPeriod: Be({
762
+ matchPatterns: hl,
938
763
  defaultMatchWidth: "any",
939
- parsePatterns: Yo,
764
+ parsePatterns: gl,
940
765
  defaultParseWidth: "any"
941
766
  })
942
- }, Zo = {
767
+ }, yl = {
943
768
  code: "sl",
944
- formatDistance: ko,
945
- formatLong: To,
946
- formatRelative: _o,
947
- localize: $o,
948
- match: Qo,
769
+ formatDistance: Hn,
770
+ formatLong: Kn,
771
+ formatRelative: Yn,
772
+ localize: ll,
773
+ match: kl,
949
774
  options: {
950
775
  weekStartsOn: 1,
951
776
  firstWeekContainsDate: 1
952
777
  }
953
- }, Jo = {
954
- dateTimeLocale: F(Zo),
778
+ }, wl = {
779
+ dateTimeLocale: F(yl),
955
780
  setDateTimeLocale(e) {
956
- ce(e) ? this.dateTimeLocale = e : this.dateTimeLocale.value = e;
781
+ ke(e) ? this.dateTimeLocale = e : this.dateTimeLocale.value = e;
957
782
  }
958
- }, oe = /* @__PURE__ */ K({
783
+ }, ue = /* @__PURE__ */ Z({
959
784
  __name: "df-input-hint",
960
785
  props: {
961
786
  errors: { default: "" },
@@ -964,13 +789,13 @@ const Lo = /^(\d+)\./i, No = /\d+/i, Uo = {
964
789
  messageClasses: { default: "" }
965
790
  },
966
791
  setup(e) {
967
- const t = e, n = b(() => t.errors ? typeof t.errors == "string" ? t.errors.trim().length > 0 : t.errors.length > 0 : !1), l = b(() => n.value ? t.errors : t.message), a = b(() => n.value ? t.errorClasses : t.messageClasses);
968
- return (r, s) => (V(), R(o(Lt), {
969
- message: l.value,
970
- classes: a.value
792
+ const n = e, t = C(() => n.errors ? typeof n.errors == "string" ? n.errors.trim().length > 0 : n.errors.length > 0 : !1), a = C(() => t.value ? n.errors : n.message), r = C(() => t.value ? n.errorClasses : n.messageClasses);
793
+ return (d, c) => (j(), H(l(Et), {
794
+ message: a.value,
795
+ classes: r.value
971
796
  }, null, 8, ["message", "classes"]));
972
797
  }
973
- }), fe = /* @__PURE__ */ K({
798
+ }), de = /* @__PURE__ */ Z({
974
799
  __name: "df-label",
975
800
  props: {
976
801
  data: {},
@@ -978,146 +803,146 @@ const Lo = /^(\d+)\./i, No = /\d+/i, Uo = {
978
803
  allowWrap: { type: Boolean }
979
804
  },
980
805
  setup(e) {
981
- const t = e, n = b(() => t.data ? t.data.label : t.label.text);
982
- return (l, a) => {
983
- const r = N("v-img");
984
- return V(), Y("div", {
985
- class: le(["df-label", { "allow-wrap": e.allowWrap }])
806
+ const n = e, t = C(() => n.data ? n.data.label : n.label.text);
807
+ return (a, r) => {
808
+ const d = P("v-img");
809
+ return j(), Q("div", {
810
+ class: ce(["df-label", { "allow-wrap": e.allowWrap }])
986
811
  }, [
987
- e.label.icon ? (V(), Y(Re, { key: 0 }, [
988
- e.label.iconComponent === "v-icon" ? (V(), R(o(xe), {
812
+ e.label.icon ? (j(), Q(Me, { key: 0 }, [
813
+ e.label.iconComponent === "v-icon" ? (j(), H(l(B), {
989
814
  key: 0,
990
815
  name: e.label.icon,
991
816
  size: "1.25em"
992
- }, null, 8, ["name"])) : e.label.iconComponent === "v-img" ? (V(), R(r, {
817
+ }, null, 8, ["name"])) : e.label.iconComponent === "v-img" ? (j(), H(d, {
993
818
  key: 1,
994
819
  class: "icon",
995
820
  src: e.label.icon
996
- }, null, 8, ["src"])) : (V(), R(je(e.label.iconComponent), {
821
+ }, null, 8, ["src"])) : (j(), H(Ne(e.label.iconComponent), {
997
822
  key: 2,
998
823
  src: e.label.icon
999
824
  }, null, 8, ["src"]))
1000
- ], 64)) : H("", !0),
1001
- n.value instanceof o(Nt) ? (V(), R(o(Wt), {
825
+ ], 64)) : G("", !0),
826
+ t.value instanceof l(Ut) ? (j(), H(l(Wt), {
1002
827
  key: 1,
1003
828
  class: "markdown",
1004
- source: n.value.toString(),
1005
- options: n.value.options,
1006
- plugins: n.value.plugins
1007
- }, null, 8, ["source", "options", "plugins"])) : (V(), Y(Re, { key: 2 }, [
1008
- Bt(Ue(n.value), 1)
829
+ source: t.value.toString(),
830
+ options: t.value.options,
831
+ plugins: t.value.plugins
832
+ }, null, 8, ["source", "options", "plugins"])) : (j(), Q(Me, { key: 2 }, [
833
+ Y(K(t.value), 1)
1009
834
  ], 64))
1010
835
  ], 2);
1011
836
  };
1012
837
  }
1013
- }), ft = /* @__PURE__ */ Symbol("vuetifyInputsSettingsKey");
1014
- class el {
1015
- constructor(t, n, l = "v-icon") {
1016
- ye(this, "text");
1017
- ye(this, "icon");
1018
- ye(this, "iconComponent");
1019
- this.text = t, this.icon = n, this.iconComponent = l;
838
+ }), dt = /* @__PURE__ */ Symbol("vuetifyInputsSettingsKey");
839
+ class Cl {
840
+ constructor(n, t, a = "v-icon") {
841
+ Ve(this, "text");
842
+ Ve(this, "icon");
843
+ Ve(this, "iconComponent");
844
+ this.text = n, this.icon = t, this.iconComponent = a;
1020
845
  }
1021
846
  }
1022
- const re = { enabled: void 0, clearable: !0 };
1023
- function te(e, t) {
1024
- const n = Ae(ft, {}), l = Ae("field-density", null), a = Ae("field-variant", null), r = F(null), s = Dt(null), c = b({
847
+ const pe = { enabled: void 0, clearable: !0 };
848
+ function me(e, n) {
849
+ const t = Fe(dt, {}), a = Fe("field-density", null), r = Fe("field-variant", null), d = F(null), c = Rt(null), g = C({
1025
850
  get() {
1026
- return s.value ? s.value.value : e.control ? e.control.value : e.modelValue === void 0 ? r.value : e.modelValue;
851
+ return c.value ? c.value.value : e.control ? e.control.value : e.modelValue === void 0 ? d.value : e.modelValue;
1027
852
  },
1028
- set(h) {
853
+ set(m) {
1029
854
  try {
1030
- e.control && (e.control.value = h);
855
+ e.control && (e.control.value = m);
1031
856
  } finally {
1032
- e.control && !Object.is(Ye(e.control.value), Ye(h)) && (s.value = { value: h }, Le(() => {
1033
- s.value = null;
857
+ e.control && !Object.is(Qe(e.control.value), Qe(m)) && (c.value = { value: m }, Oe(() => {
858
+ c.value = null;
1034
859
  }));
1035
860
  }
1036
- e.modelValue === void 0 && (r.value = h), t("update:modelValue", e.control ? e.control.value : h);
861
+ e.modelValue === void 0 && (d.value = m), n("update:modelValue", e.control ? e.control.value : m);
1037
862
  }
1038
863
  });
1039
- if (e.control && !(e.control instanceof ve.FieldBase))
864
+ if (e.control && !(e.control instanceof ye.FieldBase))
1040
865
  throw new Error("control prop is not a vue-form control instance");
1041
- const g = b({
866
+ const w = C({
1042
867
  get() {
1043
868
  return e.control.touched;
1044
869
  },
1045
- set(h) {
1046
- e.control.touched = h;
870
+ set(m) {
871
+ e.control.touched = m;
1047
872
  }
1048
- }), i = e.control ? g : F(!1), f = b(() => e.control ? e.control.valid : !0), u = b(
1049
- () => e.control ? e.control.errors : (e.errors || []).map((h) => new Ut(h))
1050
- ), C = b(() => i.value && u.value.length > 0 ? " " : void 0), x = b(() => i.value ? u.value : void 0), p = b(() => e.control ? e.control.effectiveEnabled : e.enabled !== !1), k = b(() => e.control ? e.control.visibility : e.visibility == null ? ve.DisplayMode.FULL : ve.DisplayMode.fromAny(e.visibility)), D = b(() => k.value !== ve.DisplayMode.SUPPRESS), S = b(() => ({
1051
- "d-none": k.value === ve.DisplayMode.HIDDEN,
1052
- invisible: k.value === ve.DisplayMode.INVISIBLE
1053
- })), d = b(() => {
1054
- var h, j;
1055
- return (j = (h = e.control) == null ? void 0 : h.extra) != null ? j : {};
1056
- }), P = b(() => {
1057
- var j;
1058
- const h = (j = e.label) != null ? j : d.value.label;
1059
- return me(h || "") ? new el(h || "") : h;
1060
- }), U = b(() => {
1061
- var h, j;
1062
- return (j = (h = e.placeholder) != null ? h : d.value.placeholder) != null ? j : "";
1063
- }), A = b(() => {
1064
- var h, j;
1065
- return (j = (h = e.helpText) != null ? h : d.value.helpText) != null ? j : "";
1066
- }), O = b(() => {
1067
- var h, j;
1068
- return (j = (h = e.hint) != null ? h : d.value.hint) != null ? j : "";
1069
- }), $ = b(() => {
1070
- var h, j;
1071
- return (j = (h = e.cssClass) != null ? h : d.value.cssClass) != null ? j : "";
1072
- }), v = b(
873
+ }), v = e.control ? w : F(!1), f = C(() => e.control ? e.control.valid : !0), h = C(
874
+ () => e.control ? e.control.errors : (e.errors || []).map((m) => new Ft(m))
875
+ ), L = C(() => v.value && h.value.length > 0 ? " " : void 0), $ = C(() => v.value ? h.value : void 0), A = C(() => e.control ? e.control.effectiveEnabled : e.enabled !== !1), V = C(() => e.control ? e.control.visibility : e.visibility == null ? ye.DisplayMode.FULL : ye.DisplayMode.fromAny(e.visibility)), M = C(() => V.value !== ye.DisplayMode.SUPPRESS), I = C(() => ({
876
+ "d-none": V.value === ye.DisplayMode.HIDDEN,
877
+ invisible: V.value === ye.DisplayMode.INVISIBLE
878
+ })), b = C(() => {
879
+ var m, x;
880
+ return (x = (m = e.control) == null ? void 0 : m.extra) != null ? x : {};
881
+ }), D = C(() => {
882
+ var x;
883
+ const m = (x = e.label) != null ? x : b.value.label;
884
+ return fe(m || "") ? new Cl(m || "") : m;
885
+ }), O = C(() => {
886
+ var m, x;
887
+ return (x = (m = e.placeholder) != null ? m : b.value.placeholder) != null ? x : "";
888
+ }), E = C(() => {
889
+ var m, x;
890
+ return (x = (m = e.helpText) != null ? m : b.value.helpText) != null ? x : "";
891
+ }), q = C(() => {
892
+ var m, x;
893
+ return (x = (m = e.hint) != null ? m : b.value.hint) != null ? x : "";
894
+ }), S = C(() => {
895
+ var m, x;
896
+ return (x = (m = e.cssClass) != null ? m : b.value.cssClass) != null ? x : "";
897
+ }), y = C(
1073
898
  () => {
1074
- var h, j, X, G;
1075
- return (G = (X = (j = (h = e.density) != null ? h : d.value.density) != null ? j : l) != null ? X : n.defaultDensity) != null ? G : "default";
899
+ var m, x, N, W;
900
+ return (W = (N = (x = (m = e.density) != null ? m : b.value.density) != null ? x : a) != null ? N : t.defaultDensity) != null ? W : "default";
1076
901
  }
1077
- ), m = b(() => v.value === "inline" ? "default" : v.value), M = b(
902
+ ), o = C(() => y.value === "inline" ? "default" : y.value), u = C(
1078
903
  () => {
1079
- var h, j, X, G;
1080
- return (G = (X = (j = (h = e.variant) != null ? h : d.value.variant) != null ? j : a) != null ? X : n.defaultVariant) != null ? G : "underlined";
904
+ var m, x, N, W;
905
+ return (W = (N = (x = (m = e.variant) != null ? m : b.value.variant) != null ? x : r) != null ? N : t.defaultVariant) != null ? W : "underlined";
1081
906
  }
1082
907
  );
1083
908
  return {
1084
- value: c,
909
+ value: g,
1085
910
  valid: f,
1086
- enabled: p,
1087
- errors: u,
1088
- showErrors: x,
1089
- visibility: k,
1090
- isRendered: D,
1091
- visibilityClass: S,
1092
- label: P,
1093
- touched: i,
1094
- density: v,
1095
- densityClass: b(() => `df-density-${v.value}`),
1096
- vuetifyBindings: b(() => {
1097
- var h;
1098
- return B({
1099
- name: (h = e.control) == null ? void 0 : h.fieldName,
1100
- class: $.value,
1101
- density: m.value,
1102
- variant: M.value,
1103
- label: P.value.text,
1104
- errorMessages: C.value,
911
+ enabled: A,
912
+ errors: h,
913
+ showErrors: $,
914
+ visibility: V,
915
+ isRendered: M,
916
+ visibilityClass: I,
917
+ label: D,
918
+ touched: v,
919
+ density: y,
920
+ densityClass: C(() => `df-density-${y.value}`),
921
+ vuetifyBindings: C(() => {
922
+ var m;
923
+ return U({
924
+ name: (m = e.control) == null ? void 0 : m.fieldName,
925
+ class: S.value,
926
+ density: o.value,
927
+ variant: u.value,
928
+ label: D.value.text,
929
+ errorMessages: L.value,
1105
930
  // 'error-count': errors?.value.length || 0,
1106
- readonly: !p.value,
1107
- disabled: !p.value,
1108
- placeholder: U.value,
1109
- "persistent-placeholder": !Te(U.value),
1110
- hint: O.value,
931
+ readonly: !A.value,
932
+ disabled: !A.value,
933
+ placeholder: O.value,
934
+ "persistent-placeholder": !De(O.value),
935
+ hint: q.value,
1111
936
  persistentHint: !0,
1112
937
  // we want persistent hint always
1113
938
  hideDetails: "auto",
1114
939
  // we want to hide the hint element when hint isn't there
1115
- helpText: A.value
940
+ helpText: E.value
1116
941
  }, e.passthroughAttrs || {});
1117
942
  })
1118
943
  };
1119
944
  }
1120
- const tl = { class: "d-flex w-100 df-style-resetting df-sub-field" }, He = /* @__PURE__ */ K({
945
+ const Al = { class: "d-flex w-100 df-style-resetting df-sub-field" }, Xe = /* @__PURE__ */ Z({
1121
946
  __name: "input-base",
1122
947
  props: {
1123
948
  control: {},
@@ -1137,63 +962,63 @@ const tl = { class: "d-flex w-100 df-style-resetting df-sub-field" }, He = /* @_
1137
962
  loading: { type: Boolean }
1138
963
  },
1139
964
  emits: ["update:modelValue", "click:clear", "blur"],
1140
- setup(e, { emit: t }) {
1141
- const n = e, l = t, { isRendered: a, label: r, showErrors: s, touched: c, value: g, visibilityClass: i, vuetifyBindings: f } = te(n, l), u = b(() => !!(o(n.clearable) && o(g))), C = F(!1);
1142
- function x(p) {
1143
- C.value = p, p || (c.value = !0, l("blur"));
965
+ setup(e, { emit: n }) {
966
+ const t = e, a = n, { isRendered: r, label: d, showErrors: c, touched: g, value: w, visibilityClass: v, vuetifyBindings: f } = me(t, a), h = C(() => !!(l(t.clearable) && l(w))), L = F(!1);
967
+ function $(A) {
968
+ L.value = A, A || (g.value = !0, a("blur"));
1144
969
  }
1145
- return (p, k) => {
1146
- const D = N("v-field"), S = N("v-input");
1147
- return o(a) ? (V(), R(S, {
970
+ return (A, V) => {
971
+ const M = P("v-field"), I = P("v-input");
972
+ return l(r) ? (j(), H(I, {
1148
973
  key: 0,
1149
- name: o(f).name,
1150
- density: o(f).density,
1151
- hint: o(f).hint,
1152
- "persistent-hint": o(f).persistentHint,
1153
- "hide-details": o(f).hideDetails,
1154
- "error-messages": o(f).errorMessages,
1155
- class: le([e.cssClass, o(i)])
1156
- }, Ne({
1157
- message: y(({ message: d }) => [
1158
- I(oe, {
1159
- message: d,
1160
- errors: o(s)
974
+ name: l(f).name,
975
+ density: l(f).density,
976
+ hint: l(f).hint,
977
+ "persistent-hint": l(f).persistentHint,
978
+ "hide-details": l(f).hideDetails,
979
+ "error-messages": l(f).errorMessages,
980
+ class: ce([e.cssClass, l(v)])
981
+ }, qe({
982
+ message: s(({ message: b }) => [
983
+ i(ue, {
984
+ message: b,
985
+ errors: l(c)
1161
986
  }, null, 8, ["message", "errors"])
1162
987
  ]),
1163
- default: y(() => [
1164
- I(D, {
1165
- variant: o(f).variant,
1166
- density: o(f).density,
1167
- label: o(f).label,
1168
- disabled: o(f).disabled,
1169
- clearable: u.value,
988
+ default: s(() => [
989
+ i(M, {
990
+ variant: l(f).variant,
991
+ density: l(f).density,
992
+ label: l(f).label,
993
+ disabled: l(f).disabled,
994
+ clearable: h.value,
1170
995
  "persistent-clear": !0,
1171
- dirty: !!o(g) || !!o(f).placeholder,
1172
- active: C.value,
996
+ dirty: !!l(w) || !!l(f).placeholder,
997
+ active: L.value,
1173
998
  loading: e.loading,
1174
- "onClick:clear": k[0] || (k[0] = (d) => l("click:clear")),
1175
- "onUpdate:focused": k[1] || (k[1] = (d) => x(d))
1176
- }, Ne({
1177
- label: y((d) => [
1178
- I(fe, {
1179
- data: d,
1180
- label: o(r)
999
+ "onClick:clear": V[0] || (V[0] = (b) => a("click:clear")),
1000
+ "onUpdate:focused": V[1] || (V[1] = (b) => $(b))
1001
+ }, qe({
1002
+ label: s((b) => [
1003
+ i(de, {
1004
+ data: b,
1005
+ label: l(d)
1181
1006
  }, null, 8, ["data", "label"])
1182
1007
  ]),
1183
- default: y((d) => [
1184
- de("div", tl, [
1185
- pe(p.$slots, "default", ie(se(d)))
1008
+ default: s((b) => [
1009
+ ae("div", Al, [
1010
+ we(A.$slots, "default", he(ge(b)))
1186
1011
  ])
1187
1012
  ]),
1188
- loader: y((d) => [
1189
- pe(p.$slots, "loader", ie(se(d)))
1013
+ loader: s((b) => [
1014
+ we(A.$slots, "loader", he(ge(b)))
1190
1015
  ]),
1191
1016
  _: 2
1192
1017
  }, [
1193
- p.$slots["prepend-inner"] ? {
1018
+ A.$slots["prepend-inner"] ? {
1194
1019
  name: "prepend-inner",
1195
- fn: y((d) => [
1196
- pe(p.$slots, "prepend-inner", ie(se(d)))
1020
+ fn: s((b) => [
1021
+ we(A.$slots, "prepend-inner", he(ge(b)))
1197
1022
  ]),
1198
1023
  key: "0"
1199
1024
  } : void 0
@@ -1201,17 +1026,17 @@ const tl = { class: "d-flex w-100 df-style-resetting df-sub-field" }, He = /* @_
1201
1026
  ]),
1202
1027
  _: 2
1203
1028
  }, [
1204
- p.$slots.prepend ? {
1029
+ A.$slots.prepend ? {
1205
1030
  name: "prepend",
1206
- fn: y((d) => [
1207
- pe(p.$slots, "prepend", ie(se(d)))
1031
+ fn: s((b) => [
1032
+ we(A.$slots, "prepend", he(ge(b)))
1208
1033
  ]),
1209
1034
  key: "0"
1210
1035
  } : void 0
1211
- ]), 1032, ["name", "density", "hint", "persistent-hint", "hide-details", "error-messages", "class"])) : H("", !0);
1036
+ ]), 1032, ["name", "density", "hint", "persistent-hint", "hide-details", "error-messages", "class"])) : G("", !0);
1212
1037
  };
1213
1038
  }
1214
- }), L = {
1039
+ }), Ce = {
1215
1040
  Yes: "Yes",
1216
1041
  No: "No",
1217
1042
  Close: "Close",
@@ -1231,91 +1056,125 @@ const tl = { class: "d-flex w-100 df-style-resetting df-sub-field" }, He = /* @_
1231
1056
  Marker: "Marker",
1232
1057
  Spoiler: "Spoiler",
1233
1058
  CodeDark: "Code (dark)",
1234
- CodeBright: "Code (bright)"
1059
+ CodeBright: "Code (bright)",
1060
+ Undo: "Undo",
1061
+ Redo: "Redo",
1062
+ SelectAll: "Select all",
1063
+ Bold: "Bold",
1064
+ Italic: "Italic",
1065
+ HorizontalLine: "Horizontal line",
1066
+ Blockquote: "Block quote",
1067
+ BulletedList: "Bulleted list",
1068
+ NumberedList: "Numbered list",
1069
+ Outdent: "Decrease indent",
1070
+ Indent: "Increase indent",
1071
+ AlignLeft: "Align left",
1072
+ AlignCenter: "Align center",
1073
+ AlignRight: "Align right",
1074
+ AlignJustify: "Justify",
1075
+ Link: "Link",
1076
+ LinkUrl: "URL",
1077
+ LinkApply: "Apply",
1078
+ LinkRemove: "Remove link",
1079
+ Image: "Image",
1080
+ ImageUrl: "Image URL",
1081
+ ImageUpload: "Upload image",
1082
+ ImageInsert: "Insert",
1083
+ Table: "Table",
1084
+ TableInsert: "Insert table",
1085
+ TableAddRowAbove: "Add row above",
1086
+ TableAddRowBelow: "Add row below",
1087
+ TableDeleteRow: "Delete row",
1088
+ TableAddColumnBefore: "Add column before",
1089
+ TableAddColumnAfter: "Add column after",
1090
+ TableDeleteColumn: "Delete column",
1091
+ TableToggleHeaderRow: "Toggle header row",
1092
+ TableDeleteTable: "Delete table",
1093
+ Style: "Style",
1094
+ MediaEmbed: "Insert media",
1095
+ MediaEmbedUrl: "Video URL",
1096
+ MediaEmbedInsert: "Insert"
1235
1097
  };
1236
- function aa(e) {
1237
- Object.keys(L).forEach((t) => {
1238
- const n = e(t);
1239
- n != null && (L[t] = n);
1098
+ function Ja(e) {
1099
+ Object.keys(Ce).forEach((n) => {
1100
+ const t = e(n);
1101
+ t != null && (Ce[n] = t);
1240
1102
  });
1241
1103
  }
1242
- function ra(e, t) {
1243
- De.language = e, De.translations = t;
1244
- }
1245
- const De = {
1246
- language: "en",
1247
- translations: void 0
1248
- };
1249
- var J = /* @__PURE__ */ ((e) => (e[e.BUTTON = 0] = "BUTTON", e[e.TEXT = 1] = "TEXT", e))(J || {});
1104
+ var oe = /* @__PURE__ */ ((e) => (e[e.BUTTON = 0] = "BUTTON", e[e.TEXT = 1] = "TEXT", e))(oe || {});
1250
1105
  const nt = 0;
1251
1106
  ((e) => {
1252
- function t(a) {
1253
- return a.toUpperCase() === "BUTTON" ? 0 : a.toUpperCase() === "TEXT" ? 1 : nt;
1107
+ function n(r) {
1108
+ return r.toUpperCase() === "BUTTON" ? 0 : r.toUpperCase() === "TEXT" ? 1 : nt;
1254
1109
  }
1255
- e.fromString = t;
1256
- function n(a) {
1257
- const r = typeof a == "number" ? a : e.fromString(a);
1258
- return Object.values(e).includes(r) ? r : nt;
1110
+ e.fromString = n;
1111
+ function t(r) {
1112
+ const d = typeof r == "number" ? r : e.fromString(r);
1113
+ return Object.values(e).includes(d) ? d : nt;
1259
1114
  }
1260
- e.fromAny = n;
1261
- function l(a) {
1262
- const r = typeof a == "number" ? a : e.fromString(a);
1263
- return Object.values(e).includes(r);
1115
+ e.fromAny = t;
1116
+ function a(r) {
1117
+ const d = typeof r == "number" ? r : e.fromString(r);
1118
+ return Object.values(e).includes(d);
1264
1119
  }
1265
- e.isDefined = l;
1266
- })(J || (J = {}));
1267
- Object.freeze(J);
1268
- const ot = ["xs", "sm", "md", "lg", "xl"];
1269
- class nl {
1270
- constructor(t) {
1271
- ye(this, "_value");
1272
- this._value = this.cleanBreakpoint(t, !0), t && ot.forEach((n) => {
1273
- const l = this.cleanBreakpoint(t[n]);
1274
- l && (this._value[n] = l);
1120
+ e.isDefined = a;
1121
+ })(oe || (oe = {}));
1122
+ Object.freeze(oe);
1123
+ const lt = ["xs", "sm", "md", "lg", "xl"];
1124
+ class xl {
1125
+ constructor(n) {
1126
+ Ve(this, "_value");
1127
+ this._value = this.cleanBreakpoint(n, !0), n && lt.forEach((t) => {
1128
+ const a = this.cleanBreakpoint(n[t]);
1129
+ a && (this._value[t] = a);
1275
1130
  });
1276
1131
  }
1277
- getOptionsForBreakpoint(t) {
1278
- const n = this.cleanBreakpoint(this._value), l = Object.keys(n);
1279
- for (const a of ot) {
1280
- const r = this._value[a];
1281
- for (const s of l) {
1282
- const c = r == null ? void 0 : r[s];
1283
- c != null && (At(c) ? n[s] = B(B({}, n[s]), c) : n[s] = c);
1132
+ getOptionsForBreakpoint(n) {
1133
+ var a, r;
1134
+ const t = (a = this.cleanBreakpoint(this._value)) != null ? a : {};
1135
+ for (const d of lt) {
1136
+ const c = (r = this._value[d]) != null ? r : {};
1137
+ for (const g of Object.keys(c)) {
1138
+ const w = c[g];
1139
+ w != null && (it(w) ? t[g] = U(U({}, t[g]), w) : t[g] = w);
1284
1140
  }
1285
- if (a === t) break;
1141
+ if (d === n) break;
1286
1142
  }
1287
- return n;
1143
+ return t;
1288
1144
  }
1289
1145
  }
1290
- function ol(e) {
1146
+ function Vl(e) {
1291
1147
  return e.xlAndUp.value ? "xl" : e.lgAndUp.value ? "lg" : e.mdAndUp.value ? "md" : e.smAndUp.value ? "sm" : "xs";
1292
1148
  }
1293
- function ll() {
1294
- const e = Ht();
1295
- return b(() => ol(e));
1149
+ function Tl() {
1150
+ const e = Yt();
1151
+ return C(() => Vl(e));
1296
1152
  }
1297
- class al extends nl {
1298
- cleanBreakpoint(t, n = !1) {
1299
- if ((!t || !$t(t)) && !n) return null;
1300
- const l = {};
1301
- return n && (l.renderAs = J.BUTTON, l.showLabel = !0, l.showIcon = !0), t && (t.renderAs != null && (l.renderAs = J.fromAny(t.renderAs)), me(t.label) && (l.label = t.label), me(t.icon) && (l.icon = t.icon), Ze(t.showLabel) && (l.showLabel = t.showLabel), Ze(t.showIcon) && (l.showIcon = t.showIcon)), Object.keys(l).length ? l : null;
1153
+ class jl extends xl {
1154
+ cleanBreakpoint(n, t = !1) {
1155
+ if ((!n || !Ot(n)) && !t) return null;
1156
+ const a = {};
1157
+ return t && (a.renderAs = oe.BUTTON, a.showLabel = !0, a.showIcon = !0), n && (n.renderAs != null && (a.renderAs = oe.fromAny(n.renderAs)), fe(n.label) && (a.label = n.label), fe(n.icon) && (a.icon = n.icon), Ie(n.showLabel) && (a.showLabel = n.showLabel), Ie(n.showIcon) && (a.showIcon = n.showIcon), fe(n.name) && (a.name = n.name), Ie(n.defaultConfirm) && (a.defaultConfirm = n.defaultConfirm), Ie(n.defaultReject) && (a.defaultReject = n.defaultReject), it(n.passthroughAttrs) && (a.passthroughAttrs = U({}, n.passthroughAttrs))), Object.keys(a).length ? a : null;
1302
1158
  }
1303
1159
  }
1304
- function vt(e, t) {
1305
- const l = new al(e).getOptionsForBreakpoint(t);
1160
+ function ct(e, n) {
1161
+ const a = new jl(e).getOptionsForBreakpoint(n);
1306
1162
  return {
1307
- name: l.name,
1308
- label: l.showLabel ? l.label : void 0,
1309
- icon: l.showIcon ? l.icon : void 0,
1310
- renderAs: l.renderAs,
1311
- showLabel: me(l.label) && !Te(l.label) ? l.showLabel : !1,
1312
- showIcon: me(l.icon) && !Te(l.icon) ? l.showIcon : !1
1163
+ name: a.name,
1164
+ label: a.showLabel ? a.label : void 0,
1165
+ icon: a.showIcon ? a.icon : void 0,
1166
+ renderAs: a.renderAs,
1167
+ showLabel: fe(a.label) && !De(a.label) ? a.showLabel : !1,
1168
+ showIcon: fe(a.icon) && !De(a.icon) ? a.showIcon : !1,
1169
+ defaultConfirm: a.defaultConfirm,
1170
+ defaultReject: a.defaultReject,
1171
+ passthroughAttrs: a.passthroughAttrs
1313
1172
  };
1314
1173
  }
1315
- class Be extends Ot {
1174
+ class Re extends Ht {
1316
1175
  /** @see getRenderOptionsForBreakpoint, which answers the same for the value of any `Action` */
1317
- getBreakpointValue(t) {
1318
- return b(() => vt(this.value, t.value));
1176
+ getBreakpointValue(n) {
1177
+ return C(() => ct(this.value, n.value));
1319
1178
  }
1320
1179
  /** @see ActionRenderOptions.name */
1321
1180
  get name() {
@@ -1330,7 +1189,7 @@ class Be extends Ot {
1330
1189
  }
1331
1190
  /** @see ActionRenderOptions.showLabel */
1332
1191
  get showLabel() {
1333
- return me(this.value.label) && !Te(this.value.label) ? this.value.showLabel : !1;
1192
+ return fe(this.value.label) && !De(this.value.label) ? this.value.showLabel : !1;
1334
1193
  }
1335
1194
  /**
1336
1195
  * The icon as this action renders it: the name where {@link ActionRenderOptions.showIcon} states it is shown,
@@ -1341,7 +1200,7 @@ class Be extends Ot {
1341
1200
  }
1342
1201
  /** @see ActionRenderOptions.showIcon */
1343
1202
  get showIcon() {
1344
- return me(this.value.icon) && !Te(this.value.icon) ? this.value.showIcon : !1;
1203
+ return fe(this.value.icon) && !De(this.value.icon) ? this.value.showIcon : !1;
1345
1204
  }
1346
1205
  /** @see ActionRenderOptions.renderAs */
1347
1206
  get renderAs() {
@@ -1359,56 +1218,56 @@ class Be extends Ot {
1359
1218
  get passthroughAttrs() {
1360
1219
  return this.value.passthroughAttrs;
1361
1220
  }
1362
- static closeAction(t) {
1363
- var l;
1364
- const n = W(B({}, t != null ? t : {}), {
1221
+ static closeAction(n) {
1222
+ var a;
1223
+ const t = J(U({}, n != null ? n : {}), {
1365
1224
  // any properties in data should overwrite properties in the constant
1366
1225
  value: {
1367
1226
  name: "close",
1368
- label: L.Close,
1227
+ label: Ce.Close,
1369
1228
  icon: "ion-close-outline",
1370
- renderAs: J.BUTTON,
1229
+ renderAs: oe.BUTTON,
1371
1230
  showLabel: !0,
1372
1231
  showIcon: !0
1373
1232
  }
1374
1233
  });
1375
- return n.value = B(B({}, n.value), (l = t == null ? void 0 : t.value) != null ? l : {}), new Be(n);
1234
+ return t.value = U(U({}, t.value), (a = n == null ? void 0 : n.value) != null ? a : {}), new Re(t);
1376
1235
  }
1377
- static yesAction(t) {
1378
- var l;
1379
- const n = W(B({}, t != null ? t : {}), {
1236
+ static yesAction(n) {
1237
+ var a;
1238
+ const t = J(U({}, n != null ? n : {}), {
1380
1239
  // any properties in data should overwrite properties in the constant
1381
1240
  value: {
1382
1241
  name: "yes",
1383
- label: L.Yes,
1242
+ label: Ce.Yes,
1384
1243
  icon: "ion-thumbs-up-outline",
1385
- renderAs: J.BUTTON,
1244
+ renderAs: oe.BUTTON,
1386
1245
  showLabel: !0,
1387
1246
  showIcon: !0
1388
1247
  }
1389
1248
  });
1390
- return n.value = B(B({}, n.value), (l = t == null ? void 0 : t.value) != null ? l : {}), new Be(n);
1249
+ return t.value = U(U({}, t.value), (a = n == null ? void 0 : n.value) != null ? a : {}), new Re(t);
1391
1250
  }
1392
- static noAction(t) {
1393
- var l;
1394
- const n = W(B({}, t != null ? t : {}), {
1251
+ static noAction(n) {
1252
+ var a;
1253
+ const t = J(U({}, n != null ? n : {}), {
1395
1254
  // any properties in data should overwrite properties in the constant
1396
1255
  value: {
1397
1256
  name: "no",
1398
- label: L.No,
1257
+ label: Ce.No,
1399
1258
  icon: "ion-thumbs-down-outline",
1400
- renderAs: J.BUTTON,
1259
+ renderAs: oe.BUTTON,
1401
1260
  showLabel: !0,
1402
1261
  showIcon: !0
1403
1262
  }
1404
1263
  });
1405
- return n.value = B(B({}, n.value), (l = t == null ? void 0 : t.value) != null ? l : {}), new Be(n);
1264
+ return t.value = U(U({}, t.value), (a = n == null ? void 0 : n.value) != null ? a : {}), new Re(t);
1406
1265
  }
1407
1266
  }
1408
- const rl = {
1267
+ const _l = {
1409
1268
  key: 1,
1410
1269
  style: { width: "0.5rem" }
1411
- }, il = { key: 2 }, sl = /* @__PURE__ */ K({
1270
+ }, Bl = { key: 2 }, mt = /* @__PURE__ */ Z({
1412
1271
  __name: "df-actions",
1413
1272
  props: {
1414
1273
  actions: {},
@@ -1416,56 +1275,55 @@ const rl = {
1416
1275
  showAsGroup: { default: "no" }
1417
1276
  },
1418
1277
  setup(e) {
1419
- const t = e, n = ll(), l = b(() => o(t.actions).filter((s) => s.visibility !== $e.SUPPRESS)), a = b(
1420
- () => l.value.map((s) => B({
1421
- action: s,
1422
- value: s.value
1423
- }, vt(s.value, n.value)))
1278
+ const n = e, t = Tl(), a = C(() => l(n.actions).filter((c) => c.visibility !== He.SUPPRESS)), r = C(
1279
+ () => a.value.map((c) => U({
1280
+ action: c
1281
+ }, ct(c.value, t.value)))
1424
1282
  );
1425
- function r(s) {
1426
- if (s.defaultConfirm) return "primary";
1427
- if (s.defaultReject) return "secondary";
1283
+ function d(c) {
1284
+ if (c.defaultConfirm) return "primary";
1285
+ if (c.defaultReject) return "secondary";
1428
1286
  }
1429
- return (s, c) => {
1430
- const g = N("v-btn");
1431
- return l.value.length > 0 ? (V(), Y("div", {
1287
+ return (c, g) => {
1288
+ const w = P("v-btn");
1289
+ return a.value.length > 0 ? (j(), Q("div", {
1432
1290
  key: 0,
1433
- class: le(["text-end df-actions", {
1291
+ class: ce(["text-end df-actions", {
1434
1292
  "button-group": e.showAsGroup === "grouped" || e.showAsGroup === "grouped-no-borders",
1435
1293
  "with-border": e.showAsGroup === "grouped"
1436
1294
  }])
1437
1295
  }, [
1438
- (V(!0), Y(Re, null, It(a.value, (i, f) => (V(), R(g, z({
1296
+ (j(!0), Q(Me, null, Ke(r.value, (v, f) => (j(), H(w, X({
1439
1297
  key: f,
1440
- variant: i.renderAs === o(J).BUTTON ? "tonal" : "text",
1441
- color: r(i.value),
1442
- disabled: !i.action.effectiveEnabled || i.action.busy,
1443
- loading: i.action.busy,
1298
+ variant: v.renderAs === l(oe).BUTTON ? "tonal" : "text",
1299
+ color: d(v),
1300
+ disabled: !v.action.effectiveEnabled || v.action.busy,
1301
+ loading: v.action.busy,
1444
1302
  elevation: 0,
1445
1303
  size: e.buttonSize,
1446
1304
  class: {
1447
- "d-none": i.action.visibility === o($e).HIDDEN,
1448
- invisible: i.action.visibility === o($e).INVISIBLE
1305
+ "d-none": v.action.visibility === l(He).HIDDEN,
1306
+ invisible: v.action.visibility === l(He).INVISIBLE
1449
1307
  }
1450
- }, { ref_for: !0 }, i.value.passthroughAttrs, {
1451
- onClick: St((u) => i.action.execute(u), ["stop"])
1308
+ }, { ref_for: !0 }, v.passthroughAttrs, {
1309
+ onClick: Pt((h) => v.action.execute(h), ["stop"])
1452
1310
  }), {
1453
- default: y(() => [
1454
- i.icon ? (V(), R(o(xe), {
1311
+ default: s(() => [
1312
+ v.icon ? (j(), H(l(B), {
1455
1313
  key: 0,
1456
- name: i.icon
1457
- }, null, 8, ["name"])) : H("", !0),
1458
- i.icon && i.label ? (V(), Y("span", rl)) : H("", !0),
1459
- i.label ? (V(), Y("span", il, Ue(i.label), 1)) : H("", !0)
1314
+ name: v.icon
1315
+ }, null, 8, ["name"])) : G("", !0),
1316
+ v.icon && v.label ? (j(), Q("span", _l)) : G("", !0),
1317
+ v.label ? (j(), Q("span", Bl, K(v.label), 1)) : G("", !0)
1460
1318
  ]),
1461
1319
  _: 2
1462
1320
  }, 1040, ["variant", "color", "disabled", "loading", "size", "class", "onClick"]))), 128))
1463
- ], 2)) : H("", !0);
1321
+ ], 2)) : G("", !0);
1464
1322
  };
1465
1323
  }
1466
- }), ul = /* @__PURE__ */ K({
1324
+ }), ft = /* @__PURE__ */ Z({
1467
1325
  __name: "df-checkbox",
1468
- props: /* @__PURE__ */ ae({
1326
+ props: /* @__PURE__ */ ve({
1469
1327
  allowNull: { type: Boolean },
1470
1328
  control: {},
1471
1329
  modelValue: {},
@@ -1481,58 +1339,58 @@ const rl = {
1481
1339
  passthroughAttrs: {},
1482
1340
  density: {},
1483
1341
  variant: {}
1484
- }, W(B({}, re), { allowNull: !1 })),
1342
+ }, J(U({}, pe), { allowNull: !1 })),
1485
1343
  emits: ["update:modelValue", "click:clear"],
1486
- setup(e, { emit: t }) {
1487
- const n = e, l = t, { densityClass: a, isRendered: r, label: s, showErrors: c, touched: g, value: i, visibilityClass: f, vuetifyBindings: u } = te(
1488
- n,
1489
- l
1490
- ), C = b(() => n.allowNull && i.value == null), x = b({
1344
+ setup(e, { emit: n }) {
1345
+ const t = e, a = n, { densityClass: r, isRendered: d, label: c, showErrors: g, touched: w, value: v, visibilityClass: f, vuetifyBindings: h } = me(
1346
+ t,
1347
+ a
1348
+ ), L = C(() => t.allowNull && v.value == null), $ = C({
1491
1349
  get() {
1492
- return i.value;
1350
+ return v.value;
1493
1351
  },
1494
1352
  set() {
1495
1353
  }
1496
1354
  });
1497
- function p() {
1498
- const k = Mt(i.value);
1499
- k === !0 ? i.value = n.allowNull ? null : !1 : i.value = k === !1;
1355
+ function A() {
1356
+ const V = qt(v.value);
1357
+ V === !0 ? v.value = t.allowNull ? null : !1 : v.value = V === !1;
1500
1358
  }
1501
- return (k, D) => {
1502
- const S = N("v-checkbox");
1503
- return o(r) ? (V(), R(S, z({
1359
+ return (V, M) => {
1360
+ const I = P("v-checkbox");
1361
+ return l(d) ? (j(), H(I, X({
1504
1362
  key: 0,
1505
- modelValue: x.value,
1506
- "onUpdate:modelValue": D[0] || (D[0] = (d) => x.value = d),
1363
+ modelValue: $.value,
1364
+ "onUpdate:modelValue": M[0] || (M[0] = (b) => $.value = b),
1507
1365
  density: "compact",
1508
- class: [o(a), o(f)],
1509
- indeterminate: C.value,
1366
+ class: [l(r), l(f)],
1367
+ indeterminate: L.value,
1510
1368
  "false-value": !1,
1511
1369
  "true-value": !0
1512
- }, o(u), {
1513
- onChange: p,
1514
- onBlur: D[1] || (D[1] = (d) => g.value = !0)
1370
+ }, l(h), {
1371
+ onChange: A,
1372
+ onBlur: M[1] || (M[1] = (b) => w.value = !0)
1515
1373
  }), {
1516
- label: y((d) => [
1517
- I(o(fe), {
1374
+ label: s((b) => [
1375
+ i(l(de), {
1518
1376
  "allow-wrap": !0,
1519
- data: d,
1520
- label: o(s)
1377
+ data: b,
1378
+ label: l(c)
1521
1379
  }, null, 8, ["data", "label"])
1522
1380
  ]),
1523
- message: y(({ message: d }) => [
1524
- I(o(oe), {
1525
- message: d,
1526
- errors: o(c)
1381
+ message: s(({ message: b }) => [
1382
+ i(l(ue), {
1383
+ message: b,
1384
+ errors: l(g)
1527
1385
  }, null, 8, ["message", "errors"])
1528
1386
  ]),
1529
1387
  _: 1
1530
- }, 16, ["modelValue", "class", "indeterminate"])) : H("", !0);
1388
+ }, 16, ["modelValue", "class", "indeterminate"])) : G("", !0);
1531
1389
  };
1532
1390
  }
1533
- }), cl = /* @__PURE__ */ K({
1391
+ }), vt = /* @__PURE__ */ Z({
1534
1392
  __name: "df-color",
1535
- props: /* @__PURE__ */ ae({
1393
+ props: /* @__PURE__ */ ve({
1536
1394
  allowNull: { type: Boolean },
1537
1395
  control: {},
1538
1396
  modelValue: {},
@@ -1548,56 +1406,56 @@ const rl = {
1548
1406
  passthroughAttrs: {},
1549
1407
  density: {},
1550
1408
  variant: {}
1551
- }, W(B({}, re), { allowNull: !1 })),
1409
+ }, J(U({}, pe), { allowNull: !1 })),
1552
1410
  emits: ["update:modelValue", "click:clear"],
1553
- setup(e, { emit: t }) {
1554
- const n = e, l = t, { densityClass: a, isRendered: r, label: s, showErrors: c, touched: g, value: i, visibilityClass: f, vuetifyBindings: u } = te(
1555
- n,
1556
- l
1557
- ), C = F(!1), x = b(() => [
1558
- (p) => n.control || !p && n.allowNull || /^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$/.test(p) ? !0 : "Not a valid hex string."
1411
+ setup(e, { emit: n }) {
1412
+ const t = e, a = n, { densityClass: r, isRendered: d, label: c, showErrors: g, touched: w, value: v, visibilityClass: f, vuetifyBindings: h } = me(
1413
+ t,
1414
+ a
1415
+ ), L = F(!1), $ = C(() => [
1416
+ (A) => t.control || !A && t.allowNull || /^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$/.test(A) ? !0 : "Not a valid hex string."
1559
1417
  ]);
1560
- return (p, k) => {
1561
- const D = N("v-color-picker"), S = N("v-menu"), d = N("v-text-field");
1562
- return o(r) ? (V(), R(d, z({
1418
+ return (A, V) => {
1419
+ const M = P("v-color-picker"), I = P("v-menu"), b = P("v-text-field");
1420
+ return l(d) ? (j(), H(b, X({
1563
1421
  key: 0,
1564
- modelValue: o(i),
1565
- "onUpdate:modelValue": k[2] || (k[2] = (P) => ce(i) ? i.value = P : null),
1566
- class: [o(a), o(f)],
1422
+ modelValue: l(v),
1423
+ "onUpdate:modelValue": V[2] || (V[2] = (D) => ke(v) ? v.value = D : null),
1424
+ class: [l(r), l(f)],
1567
1425
  clearable: e.allowNull,
1568
1426
  type: "text",
1569
- rules: x.value
1570
- }, o(u), {
1571
- onBlur: k[3] || (k[3] = (P) => g.value = !0)
1427
+ rules: $.value
1428
+ }, l(h), {
1429
+ onBlur: V[3] || (V[3] = (D) => w.value = !0)
1572
1430
  }), {
1573
- label: y((P) => [
1574
- I(o(fe), {
1575
- data: P,
1576
- label: o(s)
1431
+ label: s((D) => [
1432
+ i(l(de), {
1433
+ data: D,
1434
+ label: l(c)
1577
1435
  }, null, 8, ["data", "label"])
1578
1436
  ]),
1579
- message: y(({ message: P }) => [
1580
- I(o(oe), {
1581
- message: P,
1582
- errors: o(c)
1437
+ message: s(({ message: D }) => [
1438
+ i(l(ue), {
1439
+ message: D,
1440
+ errors: l(g)
1583
1441
  }, null, 8, ["message", "errors"])
1584
1442
  ]),
1585
- "prepend-inner": y(() => [
1586
- de("div", {
1587
- style: rt([{ width: "24px", height: "24px", "border-radius": "4px", border: "1px solid #ccc" }, { backgroundColor: o(i) }])
1443
+ "prepend-inner": s(() => [
1444
+ ae("div", {
1445
+ style: Nt([{ width: "24px", height: "24px", "border-radius": "4px", border: "1px solid #ccc" }, { backgroundColor: l(v) }])
1588
1446
  }, null, 4)
1589
1447
  ]),
1590
- default: y(() => [
1591
- I(S, {
1592
- modelValue: C.value,
1593
- "onUpdate:modelValue": k[1] || (k[1] = (P) => C.value = P),
1448
+ default: s(() => [
1449
+ i(I, {
1450
+ modelValue: L.value,
1451
+ "onUpdate:modelValue": V[1] || (V[1] = (D) => L.value = D),
1594
1452
  "close-on-content-click": !1,
1595
1453
  activator: "parent"
1596
1454
  }, {
1597
- default: y(() => [
1598
- I(D, {
1599
- modelValue: o(i),
1600
- "onUpdate:modelValue": k[0] || (k[0] = (P) => ce(i) ? i.value = P : null),
1455
+ default: s(() => [
1456
+ i(M, {
1457
+ modelValue: l(v),
1458
+ "onUpdate:modelValue": V[0] || (V[0] = (D) => ke(v) ? v.value = D : null),
1601
1459
  mode: "hexa"
1602
1460
  }, null, 8, ["modelValue"])
1603
1461
  ]),
@@ -1605,12 +1463,12 @@ const rl = {
1605
1463
  }, 8, ["modelValue"])
1606
1464
  ]),
1607
1465
  _: 1
1608
- }, 16, ["modelValue", "class", "clearable", "rules"])) : H("", !0);
1466
+ }, 16, ["modelValue", "class", "clearable", "rules"])) : G("", !0);
1609
1467
  };
1610
1468
  }
1611
- }), dl = /* @__PURE__ */ K({
1469
+ }), pt = /* @__PURE__ */ Z({
1612
1470
  __name: "df-datetime",
1613
- props: /* @__PURE__ */ ae({
1471
+ props: /* @__PURE__ */ ve({
1614
1472
  inputType: {},
1615
1473
  displayFormatDate: {},
1616
1474
  displayFormatTime: {},
@@ -1629,157 +1487,157 @@ const rl = {
1629
1487
  passthroughAttrs: {},
1630
1488
  density: {},
1631
1489
  variant: {}
1632
- }, W(B({}, re), {
1490
+ }, J(U({}, pe), {
1633
1491
  inputType: "datetime",
1634
1492
  displayFormatDate: "P",
1635
1493
  displayFormatTime: "p"
1636
1494
  })),
1637
1495
  emits: ["update:modelValue", "click:clear"],
1638
- setup(e, { emit: t }) {
1639
- const n = e, l = t, a = b(() => {
1640
- var v;
1641
- return (v = n.locale) != null ? v : o(Jo.dateTimeLocale);
1642
- }), r = b(() => {
1643
- var v, m;
1644
- return (m = (v = a.value.options) == null ? void 0 : v.weekStartsOn) != null ? m : 1;
1645
- }), { density: s, densityClass: c, touched: g, value: i, vuetifyBindings: f } = te(n, l), { inputType: u, displayFormatDate: C, displayFormatTime: x } = Se(n), p = F(""), k = b({
1496
+ setup(e, { emit: n }) {
1497
+ const t = e, a = n, r = C(() => {
1498
+ var y;
1499
+ return (y = t.locale) != null ? y : l(wl.dateTimeLocale);
1500
+ }), d = C(() => {
1501
+ var y, o;
1502
+ return (o = (y = r.value.options) == null ? void 0 : y.weekStartsOn) != null ? o : 1;
1503
+ }), { density: c, densityClass: g, touched: w, value: v, vuetifyBindings: f } = me(t, a), { inputType: h, displayFormatDate: L, displayFormatTime: $ } = Ee(t), A = F(""), V = C({
1646
1504
  get() {
1647
- return o(p) === "date";
1505
+ return l(A) === "date";
1648
1506
  },
1649
- set(v) {
1650
- p.value = v ? "date" : "";
1507
+ set(y) {
1508
+ A.value = y ? "date" : "";
1651
1509
  }
1652
- }), D = b({
1510
+ }), M = C({
1653
1511
  get() {
1654
- return o(p) === "time";
1512
+ return l(A) === "time";
1655
1513
  },
1656
- set(v) {
1657
- p.value = v ? "time" : "";
1514
+ set(y) {
1515
+ A.value = y ? "time" : "";
1658
1516
  }
1659
- }), S = (v) => `${we(v, "yyyy-MM-dd")}T${we(v, "HH:mm")}:00`, d = F(null);
1660
- function P(v, m) {
1661
- if (v == null)
1662
- d.value = null;
1663
- else if (m === -1)
1664
- if (o(u) === "time")
1665
- d.value = S(/* @__PURE__ */ new Date()), P(`T${v}`, 1);
1517
+ }), I = (y) => `${je(y, "yyyy-MM-dd")}T${je(y, "HH:mm")}:00`, b = F(null);
1518
+ function D(y, o) {
1519
+ if (y == null)
1520
+ b.value = null;
1521
+ else if (o === -1)
1522
+ if (l(h) === "time")
1523
+ b.value = I(/* @__PURE__ */ new Date()), D(`T${y}`, 1);
1666
1524
  else {
1667
- const M = S(new Date(v));
1668
- P(M, 0), P(M, 1);
1525
+ const u = I(new Date(y));
1526
+ D(u, 0), D(u, 1);
1669
1527
  }
1670
1528
  else {
1671
- d.value == null && (d.value = S(/* @__PURE__ */ new Date()));
1672
- const M = d.value.split(/[TZ]/g), h = v.split(/[TZ]/g);
1673
- M[m] = h[m], d.value = S(/* @__PURE__ */ new Date(`${M[0]}T${M[1].split(".")[0]}`)), o(u) === "date" ? i.value = M[0] : o(u) === "time" ? i.value = M[1] : i.value = o(d) + we(/* @__PURE__ */ new Date(), "XXX");
1529
+ b.value == null && (b.value = I(/* @__PURE__ */ new Date()));
1530
+ const u = b.value.split(/[TZ]/g), m = y.split(/[TZ]/g);
1531
+ u[o] = m[o], b.value = I(/* @__PURE__ */ new Date(`${u[0]}T${u[1].split(".")[0]}`)), l(h) === "date" ? v.value = u[0] : l(h) === "time" ? v.value = u[1] : v.value = l(b) + je(/* @__PURE__ */ new Date(), "XXX");
1674
1532
  }
1675
1533
  }
1676
- ue(i, (v) => P(v, -1), { immediate: !0 });
1677
- const U = b({
1534
+ se(v, (y) => D(y, -1), { immediate: !0 });
1535
+ const O = C({
1678
1536
  get() {
1679
- const v = o(d);
1680
- if (v == null) return null;
1681
- const m = new Date(v);
1682
- return Number.isNaN(m.getTime()) ? null : m;
1537
+ const y = l(b);
1538
+ if (y == null) return null;
1539
+ const o = new Date(y);
1540
+ return Number.isNaN(o.getTime()) ? null : o;
1683
1541
  },
1684
- set(v) {
1685
- P(S(v), 0);
1542
+ set(y) {
1543
+ D(I(y), 0);
1686
1544
  }
1687
- }), A = b({
1545
+ }), E = C({
1688
1546
  get() {
1689
- const v = o(d);
1690
- return v == null ? "" : v.split(/[TZ]/g)[1].split(".")[0];
1547
+ const y = l(b);
1548
+ return y == null ? "" : y.split(/[TZ]/g)[1].split(".")[0];
1691
1549
  },
1692
- set(v) {
1693
- P(`T${v}`, 1);
1550
+ set(y) {
1551
+ D(`T${y}`, 1);
1694
1552
  }
1695
- }), O = b({
1553
+ }), q = C({
1696
1554
  get() {
1697
- const v = o(U);
1698
- return v == null ? "" : we(v, o(C), { locale: a.value });
1555
+ const y = l(O);
1556
+ return y == null ? "" : je(y, l(L), { locale: r.value });
1699
1557
  },
1700
- set(v) {
1558
+ set(y) {
1701
1559
  try {
1702
- const m = zt(v, o(C), /* @__PURE__ */ new Date(), { locale: a.value });
1703
- P(S(m), 0);
1704
- } catch (m) {
1705
- console.error(m);
1560
+ const o = Gt(y, l(L), /* @__PURE__ */ new Date(), { locale: r.value });
1561
+ D(I(o), 0);
1562
+ } catch (o) {
1563
+ console.error(o);
1706
1564
  }
1707
1565
  }
1708
- }), $ = b({
1566
+ }), S = C({
1709
1567
  get() {
1710
- const v = o(U);
1711
- return v == null ? "" : we(v, o(x), { locale: a.value });
1568
+ const y = l(O);
1569
+ return y == null ? "" : je(y, l($), { locale: r.value });
1712
1570
  },
1713
- set(v) {
1714
- const m = v.match(/(\d+):(\d+)\s?([a-zA-Z]+)?/);
1715
- if (m == null) return;
1716
- let M = Je(m[1]);
1717
- const h = Je(m[2]);
1718
- et(M) || et(h) || (m[3] && m[3].toLowerCase() === "pm" && M < 13 && (M += 12), P(`T${M.toString().padStart(2, "0")}:${h.toString().padStart(2, "0")}:00`, 1));
1571
+ set(y) {
1572
+ const o = y.match(/(\d+):(\d+)\s?([a-zA-Z]+)?/);
1573
+ if (o == null) return;
1574
+ let u = Ze(o[1]);
1575
+ const m = Ze(o[2]);
1576
+ et(u) || et(m) || (o[3] && o[3].toLowerCase() === "pm" && u < 13 && (u += 12), D(`T${u.toString().padStart(2, "0")}:${m.toString().padStart(2, "0")}:00`, 1));
1719
1577
  }
1720
1578
  });
1721
- return (v, m) => {
1722
- const M = N("v-date-picker"), h = N("v-confirm-edit"), j = N("v-menu"), X = N("v-text-field"), G = N("v-time-picker");
1723
- return V(), R(o(He), z(n, {
1724
- class: o(c),
1579
+ return (y, o) => {
1580
+ const u = P("v-date-picker"), m = P("v-confirm-edit"), x = P("v-menu"), N = P("v-text-field"), W = P("v-time-picker");
1581
+ return j(), H(l(Xe), X(t, {
1582
+ class: l(g),
1725
1583
  clearable: e.clearable,
1726
- "onClick:clear": m[14] || (m[14] = (ne) => i.value = null),
1727
- onBlur: m[15] || (m[15] = (ne) => g.value = !0)
1584
+ "onClick:clear": o[14] || (o[14] = (te) => v.value = null),
1585
+ onBlur: o[15] || (o[15] = (te) => w.value = !0)
1728
1586
  }), {
1729
- default: y((ne) => [
1730
- de("div", {
1731
- class: le([
1587
+ default: s((te) => [
1588
+ ae("div", {
1589
+ class: ce([
1732
1590
  "d-flex",
1733
1591
  "w-100",
1734
- ["plain", "underlined"].includes(o(f).variant) ? void 0 : "ml-4",
1592
+ ["plain", "underlined"].includes(l(f).variant) ? void 0 : "ml-4",
1735
1593
  "df-input-wrapper",
1736
- o(s)
1594
+ l(c)
1737
1595
  ])
1738
1596
  }, [
1739
- ["date", "datetime"].includes(o(u)) ? (V(), R(X, z({
1597
+ ["date", "datetime"].includes(l(h)) ? (j(), H(N, X({
1740
1598
  key: 0,
1741
- modelValue: O.value,
1742
- "onUpdate:modelValue": m[4] || (m[4] = (T) => O.value = T),
1599
+ modelValue: q.value,
1600
+ "onUpdate:modelValue": o[4] || (o[4] = (_) => q.value = _),
1743
1601
  style: { "flex-grow": "4" },
1744
1602
  density: "compact",
1745
1603
  variant: "plain",
1746
1604
  clearable: !1,
1747
1605
  "hide-details": !0,
1748
- readonly: o(f).readonly,
1749
- disabled: o(f).disabled,
1750
- name: `${o(f).name}-date`,
1751
- placeholder: o(f).placeholder
1606
+ readonly: l(f).readonly,
1607
+ disabled: l(f).disabled,
1608
+ name: `${l(f).name}-date`,
1609
+ placeholder: l(f).placeholder
1752
1610
  }, e.passthroughAttrs, {
1753
- onClick: m[5] || (m[5] = (T) => p.value = "date"),
1754
- onKeydown: m[6] || (m[6] = Qe((T) => p.value = "date", ["space"])),
1755
- onFocus: (T) => ne.focus(),
1756
- onBlur: (T) => ne.blur()
1611
+ onClick: o[5] || (o[5] = (_) => A.value = "date"),
1612
+ onKeydown: o[6] || (o[6] = Se((_) => A.value = "date", ["space"])),
1613
+ onFocus: (_) => te.focus(),
1614
+ onBlur: (_) => te.blur()
1757
1615
  }), {
1758
- default: y(() => [
1759
- I(j, {
1760
- modelValue: k.value,
1761
- "onUpdate:modelValue": m[3] || (m[3] = (T) => k.value = T),
1616
+ default: s(() => [
1617
+ i(x, {
1618
+ modelValue: V.value,
1619
+ "onUpdate:modelValue": o[3] || (o[3] = (_) => V.value = _),
1762
1620
  "close-on-content-click": !1,
1763
1621
  activator: "parent"
1764
1622
  }, {
1765
- default: y(() => [
1766
- I(h, {
1767
- modelValue: U.value,
1768
- "onUpdate:modelValue": m[0] || (m[0] = (T) => U.value = T),
1769
- onCancel: m[1] || (m[1] = (T) => p.value = ""),
1770
- onSave: m[2] || (m[2] = (T) => p.value = "")
1623
+ default: s(() => [
1624
+ i(m, {
1625
+ modelValue: O.value,
1626
+ "onUpdate:modelValue": o[0] || (o[0] = (_) => O.value = _),
1627
+ onCancel: o[1] || (o[1] = (_) => A.value = ""),
1628
+ onSave: o[2] || (o[2] = (_) => A.value = "")
1771
1629
  }, {
1772
- default: y(({ model: T, actions: he }) => [
1773
- I(M, {
1774
- modelValue: T.value,
1775
- "onUpdate:modelValue": (be) => T.value = be,
1630
+ default: s(({ model: _, actions: ie }) => [
1631
+ i(u, {
1632
+ modelValue: _.value,
1633
+ "onUpdate:modelValue": (be) => _.value = be,
1776
1634
  "hide-header": !0,
1777
- "first-day-of-week": r.value,
1635
+ "first-day-of-week": d.value,
1778
1636
  "show-adjacent-months": !0,
1779
1637
  "show-week": !0
1780
1638
  }, {
1781
- actions: y(() => [
1782
- (V(), R(je(he)))
1639
+ actions: s(() => [
1640
+ (j(), H(Ne(ie)))
1783
1641
  ]),
1784
1642
  _: 2
1785
1643
  }, 1032, ["modelValue", "onUpdate:modelValue", "first-day-of-week"])
@@ -1791,49 +1649,49 @@ const rl = {
1791
1649
  }, 8, ["modelValue"])
1792
1650
  ]),
1793
1651
  _: 1
1794
- }, 16, ["modelValue", "readonly", "disabled", "name", "placeholder", "onFocus", "onBlur"])) : H("", !0),
1795
- ["time", "datetime"].includes(o(u)) ? (V(), R(X, z({
1652
+ }, 16, ["modelValue", "readonly", "disabled", "name", "placeholder", "onFocus", "onBlur"])) : G("", !0),
1653
+ ["time", "datetime"].includes(l(h)) ? (j(), H(N, X({
1796
1654
  key: 1,
1797
- modelValue: $.value,
1798
- "onUpdate:modelValue": m[11] || (m[11] = (T) => $.value = T),
1655
+ modelValue: S.value,
1656
+ "onUpdate:modelValue": o[11] || (o[11] = (_) => S.value = _),
1799
1657
  style: { "flex-grow": "3" },
1800
1658
  density: "compact",
1801
1659
  variant: "plain",
1802
1660
  clearable: !1,
1803
1661
  "hide-details": !0,
1804
- readonly: o(f).readonly,
1805
- disabled: o(f).disabled,
1806
- name: `${o(f).name}-time`,
1807
- placeholder: o(u) === "time" ? o(f).placeholder : void 0
1662
+ readonly: l(f).readonly,
1663
+ disabled: l(f).disabled,
1664
+ name: `${l(f).name}-time`,
1665
+ placeholder: l(h) === "time" ? l(f).placeholder : void 0
1808
1666
  }, e.passthroughAttrs, {
1809
- onClick: m[12] || (m[12] = (T) => p.value = "time"),
1810
- onKeydown: m[13] || (m[13] = Qe((T) => p.value = "time", ["space"])),
1811
- onFocus: (T) => ne.focus(),
1812
- onBlur: (T) => ne.blur()
1667
+ onClick: o[12] || (o[12] = (_) => A.value = "time"),
1668
+ onKeydown: o[13] || (o[13] = Se((_) => A.value = "time", ["space"])),
1669
+ onFocus: (_) => te.focus(),
1670
+ onBlur: (_) => te.blur()
1813
1671
  }), {
1814
- default: y(() => [
1815
- I(j, {
1816
- modelValue: D.value,
1817
- "onUpdate:modelValue": m[10] || (m[10] = (T) => D.value = T),
1672
+ default: s(() => [
1673
+ i(x, {
1674
+ modelValue: M.value,
1675
+ "onUpdate:modelValue": o[10] || (o[10] = (_) => M.value = _),
1818
1676
  "close-on-content-click": !1,
1819
1677
  activator: "parent"
1820
1678
  }, {
1821
- default: y(() => [
1822
- I(h, {
1823
- modelValue: A.value,
1824
- "onUpdate:modelValue": m[7] || (m[7] = (T) => A.value = T),
1825
- onCancel: m[8] || (m[8] = (T) => p.value = ""),
1826
- onSave: m[9] || (m[9] = (T) => p.value = "")
1679
+ default: s(() => [
1680
+ i(m, {
1681
+ modelValue: E.value,
1682
+ "onUpdate:modelValue": o[7] || (o[7] = (_) => E.value = _),
1683
+ onCancel: o[8] || (o[8] = (_) => A.value = ""),
1684
+ onSave: o[9] || (o[9] = (_) => A.value = "")
1827
1685
  }, {
1828
- default: y(({ model: T, actions: he }) => [
1829
- I(G, {
1830
- modelValue: T.value,
1831
- "onUpdate:modelValue": (be) => T.value = be,
1686
+ default: s(({ model: _, actions: ie }) => [
1687
+ i(W, {
1688
+ modelValue: _.value,
1689
+ "onUpdate:modelValue": (be) => _.value = be,
1832
1690
  "hide-header": !0,
1833
1691
  format: "24hr"
1834
1692
  }, {
1835
- actions: y(() => [
1836
- (V(), R(je(he)))
1693
+ actions: s(() => [
1694
+ (j(), H(Ne(ie)))
1837
1695
  ]),
1838
1696
  _: 2
1839
1697
  }, 1032, ["modelValue", "onUpdate:modelValue"])
@@ -1845,16 +1703,16 @@ const rl = {
1845
1703
  }, 8, ["modelValue"])
1846
1704
  ]),
1847
1705
  _: 1
1848
- }, 16, ["modelValue", "readonly", "disabled", "name", "placeholder", "onFocus", "onBlur"])) : H("", !0)
1706
+ }, 16, ["modelValue", "readonly", "disabled", "name", "placeholder", "onFocus", "onBlur"])) : G("", !0)
1849
1707
  ], 2)
1850
1708
  ]),
1851
1709
  _: 1
1852
1710
  }, 16, ["class", "clearable"]);
1853
1711
  };
1854
1712
  }
1855
- }), ml = /* @__PURE__ */ K({
1713
+ }), bt = /* @__PURE__ */ Z({
1856
1714
  __name: "df-file",
1857
- props: /* @__PURE__ */ ae({
1715
+ props: /* @__PURE__ */ ve({
1858
1716
  comms: {},
1859
1717
  control: {},
1860
1718
  modelValue: {},
@@ -1870,82 +1728,82 @@ const rl = {
1870
1728
  passthroughAttrs: {},
1871
1729
  density: {},
1872
1730
  variant: {}
1873
- }, re),
1731
+ }, pe),
1874
1732
  emits: ["update:modelValue", "click:clear"],
1875
- setup(e, { emit: t }) {
1876
- const n = e, l = t, { density: a, densityClass: r, touched: s, value: c, vuetifyBindings: g } = te(n, l), i = F(null), f = F(null), u = F(0), C = F(Math.round(Math.random() * 1e3)), x = F(), p = b(() => f.value && u.value < 100), k = b(() => !x.value && c.value ? n.modelValue : "");
1877
- function D() {
1878
- i.value && window.clearInterval(i.value);
1733
+ setup(e, { emit: n }) {
1734
+ const t = e, a = n, { density: r, densityClass: d, touched: c, value: g, vuetifyBindings: w } = me(t, a), v = F(null), f = F(null), h = F(0), L = F(Math.round(Math.random() * 1e3)), $ = F(), A = C(() => f.value && h.value < 100), V = C(() => !$.value && g.value ? t.modelValue : "");
1735
+ function M() {
1736
+ v.value && window.clearInterval(v.value);
1879
1737
  }
1880
- function S() {
1881
- D(), i.value = window.setInterval(() => {
1882
- c.value && n.comms.touch(c.value);
1738
+ function I() {
1739
+ M(), v.value = window.setInterval(() => {
1740
+ g.value && t.comms.touch(g.value);
1883
1741
  }, 60 * 1e3);
1884
1742
  }
1885
- at(() => D()), ue(c, (A) => {
1886
- A ? S() : D();
1743
+ ot(() => M()), se(g, (E) => {
1744
+ E ? I() : M();
1887
1745
  });
1888
- function d() {
1889
- return _e(this, null, function* () {
1890
- c.value && (yield n.comms.delete(c.value)), c.value = null, u.value = 0, C.value = Math.round(Math.random() * 1e3), f.value = null, x.value = null, D();
1746
+ function b() {
1747
+ return Te(this, null, function* () {
1748
+ g.value && (yield t.comms.delete(g.value)), g.value = null, h.value = 0, L.value = Math.round(Math.random() * 1e3), f.value = null, $.value = null, M();
1891
1749
  });
1892
1750
  }
1893
- function P(A) {
1894
- return _e(this, null, function* () {
1895
- u.value = -1, f.value = A;
1751
+ function D(E) {
1752
+ return Te(this, null, function* () {
1753
+ h.value = -1, f.value = E;
1896
1754
  try {
1897
- c.value = yield n.comms.upload(A, (O, $) => {
1898
- u.value = Math.round(O * 100 / $);
1899
- }), u.value = 100, S();
1900
- } catch (O) {
1901
- throw u.value = 0, f.value = null, C.value = Math.round(Math.random() * 1e3), x.value = null, O;
1755
+ g.value = yield t.comms.upload(E, (q, S) => {
1756
+ h.value = Math.round(q * 100 / S);
1757
+ }), h.value = 100, I();
1758
+ } catch (q) {
1759
+ throw h.value = 0, f.value = null, L.value = Math.round(Math.random() * 1e3), $.value = null, q;
1902
1760
  }
1903
1761
  });
1904
1762
  }
1905
- function U(A) {
1906
- A && (Array.isArray(A) ? console.error("Uploading multiple files not supported right now") : P(A));
1763
+ function O(E) {
1764
+ E && (Array.isArray(E) ? console.error("Uploading multiple files not supported right now") : D(E));
1907
1765
  }
1908
- return (A, O) => {
1909
- const $ = N("v-progress-linear"), v = N("v-file-input");
1910
- return V(), R(o(He), z(W(B({}, n), { loading: p.value }), {
1911
- class: o(r),
1766
+ return (E, q) => {
1767
+ const S = P("v-progress-linear"), y = P("v-file-input");
1768
+ return j(), H(l(Xe), X(J(U({}, t), { loading: A.value }), {
1769
+ class: l(d),
1912
1770
  clearable: "",
1913
- "onClick:clear": d,
1914
- onBlur: O[1] || (O[1] = (m) => s.value = !0)
1771
+ "onClick:clear": b,
1772
+ onBlur: q[1] || (q[1] = (o) => c.value = !0)
1915
1773
  }), {
1916
- "prepend-inner": y(() => [
1917
- I(o(xe), { name: "mdi-paperclip" })
1774
+ "prepend-inner": s(() => [
1775
+ i(l(B), { name: "mdi-paperclip" })
1918
1776
  ]),
1919
- loader: y(() => [
1920
- f.value && u.value < 100 ? (V(), R($, {
1777
+ loader: s(() => [
1778
+ f.value && h.value < 100 ? (j(), H(S, {
1921
1779
  key: 0,
1922
- "model-value": u.value,
1923
- indeterminate: u.value === -1
1924
- }, null, 8, ["model-value", "indeterminate"])) : H("", !0)
1780
+ "model-value": h.value,
1781
+ indeterminate: h.value === -1
1782
+ }, null, 8, ["model-value", "indeterminate"])) : G("", !0)
1925
1783
  ]),
1926
- default: y((m) => [
1927
- de("div", {
1928
- class: le(["d-flex w-100 position-relative df-input-wrapper", o(a)])
1784
+ default: s((o) => [
1785
+ ae("div", {
1786
+ class: ce(["d-flex w-100 position-relative df-input-wrapper", l(r)])
1929
1787
  }, [
1930
- I(v, z({
1931
- modelValue: x.value,
1932
- "onUpdate:modelValue": O[0] || (O[0] = (M) => x.value = M),
1933
- label: k.value,
1788
+ i(y, X({
1789
+ modelValue: $.value,
1790
+ "onUpdate:modelValue": q[0] || (q[0] = (u) => $.value = u),
1791
+ label: V.value,
1934
1792
  density: "compact",
1935
1793
  variant: "plain",
1936
- readonly: o(g).readonly,
1937
- disabled: o(g).disabled,
1938
- name: o(g).name,
1794
+ readonly: l(w).readonly,
1795
+ disabled: l(w).disabled,
1796
+ name: l(w).name,
1939
1797
  "hide-details": !0,
1940
1798
  "show-size": !0,
1941
1799
  multiple: !1,
1942
- style: f.value && u.value < 100 ? "visibility: hidden" : "",
1800
+ style: f.value && h.value < 100 ? "visibility: hidden" : "",
1943
1801
  clearable: !1
1944
1802
  }, e.passthroughAttrs, {
1945
1803
  "prepend-icon": "",
1946
- "onUpdate:modelValue": U,
1947
- onFocus: (M) => m.focus(),
1948
- onBlur: (M) => m.blur()
1804
+ "onUpdate:modelValue": O,
1805
+ onFocus: (u) => o.focus(),
1806
+ onBlur: (u) => o.blur()
1949
1807
  }), null, 16, ["modelValue", "label", "readonly", "disabled", "name", "style", "onFocus", "onBlur"])
1950
1808
  ], 2)
1951
1809
  ]),
@@ -1953,9 +1811,9 @@ const rl = {
1953
1811
  }, 16, ["class"]);
1954
1812
  };
1955
1813
  }
1956
- }), fl = /* @__PURE__ */ K({
1814
+ }), ht = /* @__PURE__ */ Z({
1957
1815
  __name: "df-input",
1958
- props: /* @__PURE__ */ ae({
1816
+ props: /* @__PURE__ */ ve({
1959
1817
  inputType: {},
1960
1818
  precision: {},
1961
1819
  step: {},
@@ -1975,7 +1833,7 @@ const rl = {
1975
1833
  passthroughAttrs: {},
1976
1834
  density: {},
1977
1835
  variant: {}
1978
- }, W(B({}, re), {
1836
+ }, J(U({}, pe), {
1979
1837
  inputType: "text",
1980
1838
  precision: null,
1981
1839
  step: void 0,
@@ -1983,235 +1841,1350 @@ const rl = {
1983
1841
  max: void 0
1984
1842
  })),
1985
1843
  emits: ["update:modelValue", "click:clear"],
1986
- setup(e, { emit: t }) {
1987
- const n = e, l = t, { densityClass: a, isRendered: r, label: s, showErrors: c, touched: g, value: i, visibilityClass: f, vuetifyBindings: u } = te(
1988
- n,
1989
- l
1990
- ), { inputType: C, max: x, min: p, precision: k, step: D } = Se(n), S = b(() => C.value === "number"), d = b(
1991
- () => S.value ? { min: o(p), max: o(x), precision: o(k), step: o(D) } : {}
1844
+ setup(e, { emit: n }) {
1845
+ const t = e, a = n, { densityClass: r, isRendered: d, label: c, showErrors: g, touched: w, value: v, visibilityClass: f, vuetifyBindings: h } = me(
1846
+ t,
1847
+ a
1848
+ ), { inputType: L, max: $, min: A, precision: V, step: M } = Ee(t), I = C(() => L.value === "number"), b = C(
1849
+ () => I.value ? { min: l(A), max: l($), precision: l(V), step: l(M) } : {}
1992
1850
  );
1993
- return (P, U) => {
1994
- const A = N("v-text-field"), O = N("v-number-input");
1995
- return o(r) ? (V(), Y("div", {
1851
+ return (D, O) => {
1852
+ const E = P("v-text-field"), q = P("v-number-input");
1853
+ return l(d) ? (j(), Q("div", {
1996
1854
  key: 0,
1997
- class: le(["df-input-container", [o(a), o(f)]])
1855
+ class: ce(["df-input-container", [l(r), l(f)]])
1998
1856
  }, [
1999
- S.value ? (V(), R(O, z({
1857
+ I.value ? (j(), H(q, X({
2000
1858
  key: 1,
2001
- modelValue: o(i),
2002
- "onUpdate:modelValue": U[2] || (U[2] = ($) => ce(i) ? i.value = $ : null),
1859
+ modelValue: l(v),
1860
+ "onUpdate:modelValue": O[2] || (O[2] = (S) => ke(v) ? v.value = S : null),
2003
1861
  density: "compact",
2004
1862
  "control-variant": "stacked"
2005
- }, B(B({}, o(u)), d.value)), {
2006
- label: y(($) => [
2007
- I(o(fe), {
2008
- data: $,
2009
- label: o(s)
1863
+ }, U(U({}, l(h)), b.value)), {
1864
+ label: s((S) => [
1865
+ i(l(de), {
1866
+ data: S,
1867
+ label: l(c)
2010
1868
  }, null, 8, ["data", "label"])
2011
1869
  ]),
2012
- message: y(({ message: $ }) => [
2013
- I(o(oe), {
2014
- message: $,
2015
- errors: o(c)
1870
+ message: s(({ message: S }) => [
1871
+ i(l(ue), {
1872
+ message: S,
1873
+ errors: l(g)
2016
1874
  }, null, 8, ["message", "errors"])
2017
1875
  ]),
2018
1876
  _: 1
2019
- }, 16, ["modelValue"])) : (V(), R(A, z({
1877
+ }, 16, ["modelValue"])) : (j(), H(E, X({
2020
1878
  key: 0,
2021
- modelValue: o(i),
2022
- "onUpdate:modelValue": U[0] || (U[0] = ($) => ce(i) ? i.value = $ : null),
2023
- type: o(C)
2024
- }, o(u), {
2025
- onBlur: U[1] || (U[1] = ($) => g.value = !0)
1879
+ modelValue: l(v),
1880
+ "onUpdate:modelValue": O[0] || (O[0] = (S) => ke(v) ? v.value = S : null),
1881
+ type: l(L)
1882
+ }, l(h), {
1883
+ onBlur: O[1] || (O[1] = (S) => w.value = !0)
2026
1884
  }), {
2027
- label: y(($) => [
2028
- I(o(fe), {
2029
- data: $,
2030
- label: o(s)
1885
+ label: s((S) => [
1886
+ i(l(de), {
1887
+ data: S,
1888
+ label: l(c)
2031
1889
  }, null, 8, ["data", "label"])
2032
1890
  ]),
2033
- message: y(({ message: $ }) => [
2034
- I(o(oe), {
2035
- message: $,
2036
- errors: o(c)
1891
+ message: s(({ message: S }) => [
1892
+ i(l(ue), {
1893
+ message: S,
1894
+ errors: l(g)
2037
1895
  }, null, 8, ["message", "errors"])
2038
1896
  ]),
2039
1897
  _: 1
2040
1898
  }, 16, ["modelValue", "type"]))
2041
- ], 2)) : H("", !0);
1899
+ ], 2)) : G("", !0);
1900
+ };
1901
+ }
1902
+ }), Ll = dn.create({
1903
+ name: "classAttribute",
1904
+ addGlobalAttributes() {
1905
+ return [
1906
+ {
1907
+ types: ["paragraph", "heading", "blockquote", "codeBlock"],
1908
+ attributes: {
1909
+ class: {
1910
+ default: null,
1911
+ parseHTML: (e) => e.getAttribute("class"),
1912
+ renderHTML: (e) => e.class ? { class: e.class } : {}
1913
+ }
1914
+ }
1915
+ }
1916
+ ];
1917
+ }
1918
+ });
1919
+ function gt(e, n) {
1920
+ return cn.create({
1921
+ name: e,
1922
+ parseHTML() {
1923
+ return [{ tag: `span.${n}` }];
1924
+ },
1925
+ renderHTML({ HTMLAttributes: t }) {
1926
+ return ["span", ut(t, { class: n }), 0];
1927
+ }
1928
+ });
1929
+ }
1930
+ const $l = gt("marker", "marker"), Sl = gt("spoiler", "spoiler"), Ml = [
1931
+ { key: "ArticleCategory", kind: "heading", level: 3, className: "category" },
1932
+ { key: "Title", kind: "heading", level: 2, className: "document-title" },
1933
+ { key: "Subtitle", kind: "heading", level: 3, className: "document-subtitle" },
1934
+ { key: "InfoBox", kind: "paragraph", className: "info-box" },
1935
+ { key: "SideQuote", kind: "blockquote", className: "side-quote" },
1936
+ { key: "Marker", kind: "mark", markName: "marker" },
1937
+ { key: "Spoiler", kind: "mark", markName: "spoiler" },
1938
+ { key: "CodeDark", kind: "codeBlock", className: "fancy-code fancy-code-dark" },
1939
+ { key: "CodeBright", kind: "codeBlock", className: "fancy-code fancy-code-bright" }
1940
+ ];
1941
+ function Ye(e) {
1942
+ const { state: n } = e, { $from: t } = n.selection;
1943
+ return t.depth > 0 || n.doc.content.size === 0 ? t : n.doc.resolve(Math.min(1, n.doc.content.size));
1944
+ }
1945
+ function Pe(e) {
1946
+ return Ye(e).parent;
1947
+ }
1948
+ function kt(e, n) {
1949
+ const t = Ye(e);
1950
+ for (let a = t.depth; a >= 0; a -= 1)
1951
+ if (t.node(a).type.name === n) return t.node(a);
1952
+ return null;
1953
+ }
1954
+ function $e(e, n) {
1955
+ switch (n.kind) {
1956
+ case "heading": {
1957
+ const t = Pe(e);
1958
+ return t.type.name === "heading" && t.attrs.level === n.level && t.attrs.class === n.className;
1959
+ }
1960
+ case "paragraph": {
1961
+ const t = Pe(e);
1962
+ return t.type.name === "paragraph" && t.attrs.class === n.className;
1963
+ }
1964
+ case "codeBlock": {
1965
+ const t = Pe(e);
1966
+ return t.type.name === "codeBlock" && t.attrs.class === n.className;
1967
+ }
1968
+ case "blockquote": {
1969
+ const t = kt(e, "blockquote");
1970
+ return !!t && t.attrs.class === n.className;
1971
+ }
1972
+ case "mark":
1973
+ return e.isActive(n.markName);
1974
+ default:
1975
+ return !1;
1976
+ }
1977
+ }
1978
+ function Dl(e, n) {
1979
+ const t = e.chain().focus(), { $from: a } = e.state.selection;
1980
+ switch (n.kind !== "mark" && a.depth === 0 && e.state.doc.content.size > 0 && t.setTextSelection(Ye(e).pos), n.kind) {
1981
+ case "heading":
1982
+ $e(e, n) ? t.setParagraph().updateAttributes("paragraph", { class: null }).run() : t.setNode("heading", { level: n.level }).updateAttributes("heading", { class: n.className }).run();
1983
+ break;
1984
+ case "paragraph":
1985
+ $e(e, n) ? t.setParagraph().updateAttributes("paragraph", { class: null }).run() : t.setParagraph().updateAttributes("paragraph", { class: n.className }).run();
1986
+ break;
1987
+ case "blockquote":
1988
+ $e(e, n) ? t.unsetBlockquote().run() : kt(e, "blockquote") ? t.updateAttributes("blockquote", { class: n.className }).run() : t.setBlockquote().updateAttributes("blockquote", { class: n.className }).run();
1989
+ break;
1990
+ case "codeBlock":
1991
+ $e(e, n) ? t.toggleCodeBlock().updateAttributes("paragraph", { class: null }).run() : Pe(e).type.name === "codeBlock" ? t.updateAttributes("codeBlock", { class: n.className }).run() : t.setCodeBlock().updateAttributes("codeBlock", { class: n.className }).run();
1992
+ break;
1993
+ case "mark":
1994
+ t.toggleMark(n.markName).run();
1995
+ break;
1996
+ }
1997
+ }
1998
+ function yt(e) {
1999
+ return new Promise((n, t) => {
2000
+ const a = new FileReader();
2001
+ a.onload = () => n(a.result), a.onerror = () => t(a.error), a.readAsDataURL(e);
2002
+ });
2003
+ }
2004
+ function Il(e) {
2005
+ if (!e) return [];
2006
+ const n = [];
2007
+ return Array.from(e.items || []).forEach((t) => {
2008
+ if (t.kind === "file") {
2009
+ const a = t.getAsFile();
2010
+ a && a.type.startsWith("image/") && n.push(a);
2011
+ }
2012
+ }), n.length === 0 && Array.from(e.files || []).forEach((t) => {
2013
+ t.type.startsWith("image/") && n.push(t);
2014
+ }), n;
2015
+ }
2016
+ function wt(e) {
2017
+ let n = 0;
2018
+ return e.forEach((t) => {
2019
+ t.type.name === "image" ? n += 1 : t.content.size && (n += wt(t.content));
2020
+ }), n;
2021
+ }
2022
+ function Ct(e, n, t) {
2023
+ const a = [];
2024
+ return e.forEach((r) => {
2025
+ r.type.name === "image" && t.index < n.length ? (a.push(r.type.create(J(U({}, r.attrs), { src: n[t.index] }), r.content, r.marks)), t.index += 1) : r.content.size ? a.push(r.copy(Ct(r.content, n, t))) : a.push(r);
2026
+ }), vn.fromArray(a);
2027
+ }
2028
+ function Rl(e) {
2029
+ return (n, t, a) => {
2030
+ const r = Il(t.clipboardData);
2031
+ return r.length === 0 ? !1 : (t.preventDefault(), Promise.all(r.map(yt)).then((d) => {
2032
+ var c;
2033
+ if (wt(a.content) > 0) {
2034
+ const g = Ct(a.content, d, { index: 0 }), w = new fn(g, a.openStart, a.openEnd);
2035
+ n.dispatch(n.state.tr.replaceSelection(w).scrollIntoView());
2036
+ return;
2037
+ }
2038
+ (c = e()) == null || c.chain().focus().insertContent(d.map((g) => ({ type: "image", attrs: { src: g } }))).run();
2039
+ }), !0);
2040
+ };
2041
+ }
2042
+ const Pl = pn.extend({
2043
+ name: "link",
2044
+ addAttributes() {
2045
+ var e;
2046
+ return J(U({}, (e = this.parent) == null ? void 0 : e.call(this)), {
2047
+ download: {
2048
+ default: null,
2049
+ parseHTML: (n) => n.getAttribute("download"),
2050
+ renderHTML: (n) => n.download ? { download: n.download } : {}
2051
+ }
2052
+ });
2053
+ }
2054
+ });
2055
+ function Nl(e) {
2056
+ let n;
2057
+ try {
2058
+ n = new URL(e);
2059
+ } catch (a) {
2060
+ return null;
2061
+ }
2062
+ const t = n.hostname.replace(/^www\.|^m\./, "");
2063
+ if (t === "youtube.com") {
2064
+ const a = n.searchParams.get("v");
2065
+ if (a) return `https://www.youtube.com/embed/${a}`;
2066
+ const r = n.pathname.match(/^\/embed\/([\w-]+)/);
2067
+ if (r) return `https://www.youtube.com/embed/${r[1]}`;
2068
+ const d = n.pathname.match(/^\/shorts\/([\w-]+)/);
2069
+ return d ? `https://www.youtube.com/embed/${d[1]}` : null;
2070
+ }
2071
+ if (t === "youtu.be") {
2072
+ const a = n.pathname.slice(1);
2073
+ return a ? `https://www.youtube.com/embed/${a}` : null;
2074
+ }
2075
+ if (t === "vimeo.com") {
2076
+ const a = n.pathname.split("/").filter(Boolean).pop();
2077
+ return a && /^\d+$/.test(a) ? `https://player.vimeo.com/video/${a}` : null;
2078
+ }
2079
+ return null;
2080
+ }
2081
+ const zl = mn.create({
2082
+ name: "mediaEmbed",
2083
+ group: "block",
2084
+ atom: !0,
2085
+ draggable: !0,
2086
+ addAttributes() {
2087
+ return {
2088
+ src: { default: null }
2089
+ };
2090
+ },
2091
+ parseHTML() {
2092
+ return [{ tag: "iframe.media-embed" }];
2093
+ },
2094
+ renderHTML({ HTMLAttributes: e }) {
2095
+ return [
2096
+ "iframe",
2097
+ ut(
2098
+ {
2099
+ class: "media-embed",
2100
+ frameborder: "0",
2101
+ allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",
2102
+ allowfullscreen: "true"
2103
+ },
2104
+ e
2105
+ )
2106
+ ];
2107
+ }
2108
+ });
2109
+ function At(e) {
2110
+ const n = F(0);
2111
+ let t;
2112
+ const a = () => {
2113
+ n.value += 1;
2114
+ }, r = (d) => {
2115
+ t == null || t.off("transaction", a), t = d, t == null || t.on("transaction", a);
2116
+ };
2117
+ return se(e, r, { immediate: !0 }), ot(() => r(void 0)), n;
2118
+ }
2119
+ const El = { class: "d-flex justify-end ga-2 mt-2" }, Ul = { class: "d-flex justify-space-between align-center ga-2 mt-2" }, Fl = { class: "d-flex justify-end mt-2" }, Hl = /* @__PURE__ */ Z({
2120
+ __name: "rtf-toolbar",
2121
+ props: {
2122
+ editor: {}
2123
+ },
2124
+ setup(e) {
2125
+ const n = e, t = Ce, a = C(() => n.editor), r = At(a), d = C(() => {
2126
+ var o;
2127
+ return !!((o = n.editor) != null && o.isEditable);
2128
+ }), c = C(() => {
2129
+ r.value;
2130
+ const o = n.editor;
2131
+ return {
2132
+ canUndo: !!(o != null && o.can().undo()),
2133
+ canRedo: !!(o != null && o.can().redo()),
2134
+ bold: !!(o != null && o.isActive("bold")),
2135
+ italic: !!(o != null && o.isActive("italic")),
2136
+ link: !!(o != null && o.isActive("link")),
2137
+ blockquote: !!(o != null && o.isActive("blockquote")),
2138
+ bulletList: !!(o != null && o.isActive("bulletList")),
2139
+ orderedList: !!(o != null && o.isActive("orderedList")),
2140
+ alignLeft: !!(o != null && o.isActive({ textAlign: "left" })),
2141
+ alignCenter: !!(o != null && o.isActive({ textAlign: "center" })),
2142
+ alignRight: !!(o != null && o.isActive({ textAlign: "right" })),
2143
+ alignJustify: !!(o != null && o.isActive({ textAlign: "justify" })),
2144
+ inTable: !!(o != null && o.isActive("table")),
2145
+ canLift: !!(o != null && o.can().liftListItem("listItem")),
2146
+ canSink: !!(o != null && o.can().sinkListItem("listItem"))
2147
+ };
2148
+ }), g = [
2149
+ { level: 0, label: t.Paragraph },
2150
+ { level: 1, label: t.Heading1 },
2151
+ { level: 2, label: t.Heading2 },
2152
+ { level: 3, label: t.Heading3 },
2153
+ { level: 4, label: t.Heading4 },
2154
+ { level: 5, label: t.Heading5 },
2155
+ { level: 6, label: t.Heading6 }
2156
+ ];
2157
+ function w(o) {
2158
+ var u, m;
2159
+ return r.value, o === 0 ? !!((u = a.value) != null && u.isActive("paragraph")) : !!((m = a.value) != null && m.isActive("heading", { level: o }));
2160
+ }
2161
+ const v = C(
2162
+ () => {
2163
+ var o, u;
2164
+ return (u = (o = g.find((m) => w(m.level))) == null ? void 0 : o.label) != null ? u : t.Paragraph;
2165
+ }
2166
+ );
2167
+ function f(o) {
2168
+ var m;
2169
+ const u = (m = a.value) == null ? void 0 : m.chain().focus();
2170
+ u && (o === 0 ? u.setParagraph().run() : u.toggleHeading({ level: o }).run());
2171
+ }
2172
+ const h = Ml;
2173
+ function L(o) {
2174
+ return r.value, !!a.value && $e(a.value, o);
2175
+ }
2176
+ const $ = F(""), A = F(!1);
2177
+ function V() {
2178
+ var u, m, x;
2179
+ const o = (m = (u = a.value) == null ? void 0 : u.getAttributes("link")) != null ? m : {};
2180
+ $.value = (x = o.href) != null ? x : "", A.value = !!o.download;
2181
+ }
2182
+ function M() {
2183
+ var o;
2184
+ $.value && ((o = a.value) == null || o.chain().focus().extendMarkRange("link").setLink({ href: $.value }).updateAttributes("link", { download: A.value ? "file" : null }).run());
2185
+ }
2186
+ function I() {
2187
+ var o;
2188
+ (o = a.value) == null || o.chain().focus().unsetLink().run();
2189
+ }
2190
+ const b = F(""), D = F();
2191
+ function O() {
2192
+ var o;
2193
+ b.value && ((o = a.value) == null || o.chain().focus().setImage({ src: b.value }).run(), b.value = "");
2194
+ }
2195
+ function E() {
2196
+ var o;
2197
+ (o = D.value) == null || o.click();
2198
+ }
2199
+ function q(o) {
2200
+ return Te(this, null, function* () {
2201
+ var x, N;
2202
+ const u = (x = o.target.files) == null ? void 0 : x[0];
2203
+ if (!u) return;
2204
+ const m = yield yt(u);
2205
+ (N = a.value) == null || N.chain().focus().setImage({ src: m }).run(), o.target.value = "";
2206
+ });
2207
+ }
2208
+ const S = F("");
2209
+ function y() {
2210
+ var m;
2211
+ if (!S.value) return;
2212
+ const o = Nl(S.value), u = (m = a.value) == null ? void 0 : m.chain().focus();
2213
+ u && (o ? u.insertContent({ type: "mediaEmbed", attrs: { src: o } }).run() : u.insertContent({ type: "text", text: S.value, marks: [{ type: "link", attrs: { href: S.value } }] }).run(), S.value = "");
2214
+ }
2215
+ return (o, u) => {
2216
+ const m = P("v-btn"), x = P("v-divider"), N = P("v-list-item-title"), W = P("v-list-item"), te = P("v-list"), _ = P("v-menu"), ie = P("v-text-field"), be = P("v-checkbox"), Ae = P("v-card");
2217
+ return j(), Q("div", {
2218
+ class: ce(["rtf-toolbar", { "rtf-toolbar--disabled": !d.value }])
2219
+ }, [
2220
+ i(m, {
2221
+ icon: "",
2222
+ size: "small",
2223
+ variant: "text",
2224
+ title: l(t).Undo,
2225
+ disabled: !d.value || !c.value.canUndo,
2226
+ onClick: u[0] || (u[0] = (k) => {
2227
+ var p;
2228
+ return (p = a.value) == null ? void 0 : p.chain().focus().undo().run();
2229
+ })
2230
+ }, {
2231
+ default: s(() => [
2232
+ i(l(B), { name: "mdi-undo" })
2233
+ ]),
2234
+ _: 1
2235
+ }, 8, ["title", "disabled"]),
2236
+ i(m, {
2237
+ icon: "",
2238
+ size: "small",
2239
+ variant: "text",
2240
+ title: l(t).Redo,
2241
+ disabled: !d.value || !c.value.canRedo,
2242
+ onClick: u[1] || (u[1] = (k) => {
2243
+ var p;
2244
+ return (p = a.value) == null ? void 0 : p.chain().focus().redo().run();
2245
+ })
2246
+ }, {
2247
+ default: s(() => [
2248
+ i(l(B), { name: "mdi-redo" })
2249
+ ]),
2250
+ _: 1
2251
+ }, 8, ["title", "disabled"]),
2252
+ i(x, {
2253
+ vertical: "",
2254
+ inset: "",
2255
+ class: "mx-1"
2256
+ }),
2257
+ i(m, {
2258
+ icon: "",
2259
+ size: "small",
2260
+ variant: "text",
2261
+ title: l(t).SelectAll,
2262
+ disabled: !d.value,
2263
+ onClick: u[2] || (u[2] = (k) => {
2264
+ var p;
2265
+ return (p = a.value) == null ? void 0 : p.chain().focus().selectAll().run();
2266
+ })
2267
+ }, {
2268
+ default: s(() => [
2269
+ i(l(B), { name: "mdi-select-all" })
2270
+ ]),
2271
+ _: 1
2272
+ }, 8, ["title", "disabled"]),
2273
+ i(x, {
2274
+ vertical: "",
2275
+ inset: "",
2276
+ class: "mx-1"
2277
+ }),
2278
+ i(_, null, {
2279
+ activator: s(({ props: k }) => [
2280
+ i(m, X({
2281
+ size: "small",
2282
+ variant: "text",
2283
+ disabled: !d.value
2284
+ }, k, { "append-icon": "mdi-chevron-down" }), {
2285
+ default: s(() => [
2286
+ Y(K(v.value), 1)
2287
+ ]),
2288
+ _: 1
2289
+ }, 16, ["disabled"])
2290
+ ]),
2291
+ default: s(() => [
2292
+ i(te, { density: "compact" }, {
2293
+ default: s(() => [
2294
+ (j(), Q(Me, null, Ke(g, (k) => i(W, {
2295
+ key: k.level,
2296
+ active: w(k.level),
2297
+ onClick: (p) => f(k.level)
2298
+ }, {
2299
+ default: s(() => [
2300
+ i(N, null, {
2301
+ default: s(() => [
2302
+ Y(K(k.label), 1)
2303
+ ]),
2304
+ _: 2
2305
+ }, 1024)
2306
+ ]),
2307
+ _: 2
2308
+ }, 1032, ["active", "onClick"])), 64))
2309
+ ]),
2310
+ _: 1
2311
+ })
2312
+ ]),
2313
+ _: 1
2314
+ }),
2315
+ i(_, null, {
2316
+ activator: s(({ props: k }) => [
2317
+ i(m, X({
2318
+ size: "small",
2319
+ variant: "text",
2320
+ disabled: !d.value
2321
+ }, k, { "append-icon": "mdi-chevron-down" }), {
2322
+ default: s(() => [
2323
+ Y(K(l(t).Style), 1)
2324
+ ]),
2325
+ _: 1
2326
+ }, 16, ["disabled"])
2327
+ ]),
2328
+ default: s(() => [
2329
+ i(te, { density: "compact" }, {
2330
+ default: s(() => [
2331
+ (j(!0), Q(Me, null, Ke(l(h), (k) => (j(), H(W, {
2332
+ key: k.key,
2333
+ active: L(k),
2334
+ onClick: (p) => a.value && l(Dl)(a.value, k)
2335
+ }, {
2336
+ default: s(() => [
2337
+ i(N, null, {
2338
+ default: s(() => [
2339
+ Y(K(l(t)[k.key]), 1)
2340
+ ]),
2341
+ _: 2
2342
+ }, 1024)
2343
+ ]),
2344
+ _: 2
2345
+ }, 1032, ["active", "onClick"]))), 128))
2346
+ ]),
2347
+ _: 1
2348
+ })
2349
+ ]),
2350
+ _: 1
2351
+ }),
2352
+ i(x, {
2353
+ vertical: "",
2354
+ inset: "",
2355
+ class: "mx-1"
2356
+ }),
2357
+ i(m, {
2358
+ icon: "",
2359
+ size: "small",
2360
+ variant: "text",
2361
+ title: l(t).Bold,
2362
+ disabled: !d.value,
2363
+ active: c.value.bold,
2364
+ onClick: u[3] || (u[3] = (k) => {
2365
+ var p;
2366
+ return (p = a.value) == null ? void 0 : p.chain().focus().toggleBold().run();
2367
+ })
2368
+ }, {
2369
+ default: s(() => [
2370
+ i(l(B), { name: "mdi-format-bold" })
2371
+ ]),
2372
+ _: 1
2373
+ }, 8, ["title", "disabled", "active"]),
2374
+ i(m, {
2375
+ icon: "",
2376
+ size: "small",
2377
+ variant: "text",
2378
+ title: l(t).Italic,
2379
+ disabled: !d.value,
2380
+ active: c.value.italic,
2381
+ onClick: u[4] || (u[4] = (k) => {
2382
+ var p;
2383
+ return (p = a.value) == null ? void 0 : p.chain().focus().toggleItalic().run();
2384
+ })
2385
+ }, {
2386
+ default: s(() => [
2387
+ i(l(B), { name: "mdi-format-italic" })
2388
+ ]),
2389
+ _: 1
2390
+ }, 8, ["title", "disabled", "active"]),
2391
+ i(x, {
2392
+ vertical: "",
2393
+ inset: "",
2394
+ class: "mx-1"
2395
+ }),
2396
+ i(m, {
2397
+ icon: "",
2398
+ size: "small",
2399
+ variant: "text",
2400
+ title: l(t).HorizontalLine,
2401
+ disabled: !d.value,
2402
+ onClick: u[5] || (u[5] = (k) => {
2403
+ var p;
2404
+ return (p = a.value) == null ? void 0 : p.chain().focus().setHorizontalRule().run();
2405
+ })
2406
+ }, {
2407
+ default: s(() => [
2408
+ i(l(B), { name: "mdi-minus" })
2409
+ ]),
2410
+ _: 1
2411
+ }, 8, ["title", "disabled"]),
2412
+ i(_, {
2413
+ "close-on-content-click": !1,
2414
+ "onUpdate:modelValue": u[8] || (u[8] = (k) => k && V())
2415
+ }, {
2416
+ activator: s(({ props: k }) => [
2417
+ i(m, X({
2418
+ icon: "",
2419
+ size: "small",
2420
+ variant: "text",
2421
+ title: l(t).Link,
2422
+ disabled: !d.value,
2423
+ active: c.value.link
2424
+ }, k), {
2425
+ default: s(() => [
2426
+ i(l(B), { name: "mdi-link-variant" })
2427
+ ]),
2428
+ _: 1
2429
+ }, 16, ["title", "disabled", "active"])
2430
+ ]),
2431
+ default: s(() => [
2432
+ i(Ae, {
2433
+ "min-width": "280",
2434
+ class: "pa-3"
2435
+ }, {
2436
+ default: s(() => [
2437
+ i(ie, {
2438
+ modelValue: $.value,
2439
+ "onUpdate:modelValue": u[6] || (u[6] = (k) => $.value = k),
2440
+ label: l(t).LinkUrl,
2441
+ density: "compact",
2442
+ "hide-details": "",
2443
+ autofocus: "",
2444
+ onKeydown: Se(M, ["enter"])
2445
+ }, null, 8, ["modelValue", "label"]),
2446
+ i(be, {
2447
+ modelValue: A.value,
2448
+ "onUpdate:modelValue": u[7] || (u[7] = (k) => A.value = k),
2449
+ label: l(t).Downloadable,
2450
+ density: "compact",
2451
+ "hide-details": "",
2452
+ class: "mt-1"
2453
+ }, null, 8, ["modelValue", "label"]),
2454
+ ae("div", El, [
2455
+ c.value.link ? (j(), H(m, {
2456
+ key: 0,
2457
+ size: "small",
2458
+ variant: "text",
2459
+ onClick: I
2460
+ }, {
2461
+ default: s(() => [
2462
+ Y(K(l(t).LinkRemove), 1)
2463
+ ]),
2464
+ _: 1
2465
+ })) : G("", !0),
2466
+ i(m, {
2467
+ size: "small",
2468
+ color: "primary",
2469
+ variant: "tonal",
2470
+ onClick: M
2471
+ }, {
2472
+ default: s(() => [
2473
+ Y(K(l(t).LinkApply), 1)
2474
+ ]),
2475
+ _: 1
2476
+ })
2477
+ ])
2478
+ ]),
2479
+ _: 1
2480
+ })
2481
+ ]),
2482
+ _: 1
2483
+ }),
2484
+ i(_, { "close-on-content-click": !1 }, {
2485
+ activator: s(({ props: k }) => [
2486
+ i(m, X({
2487
+ icon: "",
2488
+ size: "small",
2489
+ variant: "text",
2490
+ title: l(t).Image,
2491
+ disabled: !d.value
2492
+ }, k), {
2493
+ default: s(() => [
2494
+ i(l(B), { name: "mdi-image-plus" })
2495
+ ]),
2496
+ _: 1
2497
+ }, 16, ["title", "disabled"])
2498
+ ]),
2499
+ default: s(() => [
2500
+ i(Ae, {
2501
+ "min-width": "280",
2502
+ class: "pa-3"
2503
+ }, {
2504
+ default: s(() => [
2505
+ i(ie, {
2506
+ modelValue: b.value,
2507
+ "onUpdate:modelValue": u[9] || (u[9] = (k) => b.value = k),
2508
+ label: l(t).ImageUrl,
2509
+ density: "compact",
2510
+ "hide-details": "",
2511
+ autofocus: "",
2512
+ onKeydown: Se(O, ["enter"])
2513
+ }, null, 8, ["modelValue", "label"]),
2514
+ ae("div", Ul, [
2515
+ i(m, {
2516
+ size: "small",
2517
+ variant: "text",
2518
+ "prepend-icon": "mdi-upload",
2519
+ onClick: E
2520
+ }, {
2521
+ default: s(() => [
2522
+ Y(K(l(t).ImageUpload), 1)
2523
+ ]),
2524
+ _: 1
2525
+ }),
2526
+ i(m, {
2527
+ size: "small",
2528
+ color: "primary",
2529
+ variant: "tonal",
2530
+ onClick: O
2531
+ }, {
2532
+ default: s(() => [
2533
+ Y(K(l(t).ImageInsert), 1)
2534
+ ]),
2535
+ _: 1
2536
+ })
2537
+ ])
2538
+ ]),
2539
+ _: 1
2540
+ })
2541
+ ]),
2542
+ _: 1
2543
+ }),
2544
+ ae("input", {
2545
+ ref_key: "imageInput",
2546
+ ref: D,
2547
+ type: "file",
2548
+ accept: "image/*",
2549
+ class: "d-none",
2550
+ onChange: q
2551
+ }, null, 544),
2552
+ i(_, { "close-on-content-click": !1 }, {
2553
+ activator: s(({ props: k }) => [
2554
+ i(m, X({
2555
+ icon: "",
2556
+ size: "small",
2557
+ variant: "text",
2558
+ title: l(t).MediaEmbed,
2559
+ disabled: !d.value
2560
+ }, k), {
2561
+ default: s(() => [
2562
+ i(l(B), { name: "mdi-video-plus" })
2563
+ ]),
2564
+ _: 1
2565
+ }, 16, ["title", "disabled"])
2566
+ ]),
2567
+ default: s(() => [
2568
+ i(Ae, {
2569
+ "min-width": "280",
2570
+ class: "pa-3"
2571
+ }, {
2572
+ default: s(() => [
2573
+ i(ie, {
2574
+ modelValue: S.value,
2575
+ "onUpdate:modelValue": u[10] || (u[10] = (k) => S.value = k),
2576
+ label: l(t).MediaEmbedUrl,
2577
+ density: "compact",
2578
+ "hide-details": "",
2579
+ autofocus: "",
2580
+ onKeydown: Se(y, ["enter"])
2581
+ }, null, 8, ["modelValue", "label"]),
2582
+ ae("div", Fl, [
2583
+ i(m, {
2584
+ size: "small",
2585
+ color: "primary",
2586
+ variant: "tonal",
2587
+ onClick: y
2588
+ }, {
2589
+ default: s(() => [
2590
+ Y(K(l(t).MediaEmbedInsert), 1)
2591
+ ]),
2592
+ _: 1
2593
+ })
2594
+ ])
2595
+ ]),
2596
+ _: 1
2597
+ })
2598
+ ]),
2599
+ _: 1
2600
+ }),
2601
+ i(_, null, {
2602
+ activator: s(({ props: k }) => [
2603
+ i(m, X({
2604
+ icon: "",
2605
+ size: "small",
2606
+ variant: "text",
2607
+ title: l(t).Table,
2608
+ disabled: !d.value
2609
+ }, k), {
2610
+ default: s(() => [
2611
+ i(l(B), { name: "mdi-table" })
2612
+ ]),
2613
+ _: 1
2614
+ }, 16, ["title", "disabled"])
2615
+ ]),
2616
+ default: s(() => [
2617
+ i(te, { density: "compact" }, {
2618
+ default: s(() => [
2619
+ i(W, {
2620
+ onClick: u[11] || (u[11] = (k) => {
2621
+ var p;
2622
+ return (p = a.value) == null ? void 0 : p.chain().focus().insertTable({ rows: 3, cols: 3, withHeaderRow: !0 }).run();
2623
+ })
2624
+ }, {
2625
+ prepend: s(() => [
2626
+ i(l(B), { name: "mdi-table-plus" })
2627
+ ]),
2628
+ default: s(() => [
2629
+ i(N, null, {
2630
+ default: s(() => [
2631
+ Y(K(l(t).TableInsert), 1)
2632
+ ]),
2633
+ _: 1
2634
+ })
2635
+ ]),
2636
+ _: 1
2637
+ }),
2638
+ i(x),
2639
+ i(W, {
2640
+ disabled: !c.value.inTable,
2641
+ onClick: u[12] || (u[12] = (k) => {
2642
+ var p;
2643
+ return (p = a.value) == null ? void 0 : p.chain().focus().addRowBefore().run();
2644
+ })
2645
+ }, {
2646
+ prepend: s(() => [
2647
+ i(l(B), { name: "mdi-table-row-plus-before" })
2648
+ ]),
2649
+ default: s(() => [
2650
+ i(N, null, {
2651
+ default: s(() => [
2652
+ Y(K(l(t).TableAddRowAbove), 1)
2653
+ ]),
2654
+ _: 1
2655
+ })
2656
+ ]),
2657
+ _: 1
2658
+ }, 8, ["disabled"]),
2659
+ i(W, {
2660
+ disabled: !c.value.inTable,
2661
+ onClick: u[13] || (u[13] = (k) => {
2662
+ var p;
2663
+ return (p = a.value) == null ? void 0 : p.chain().focus().addRowAfter().run();
2664
+ })
2665
+ }, {
2666
+ prepend: s(() => [
2667
+ i(l(B), { name: "mdi-table-row-plus-after" })
2668
+ ]),
2669
+ default: s(() => [
2670
+ i(N, null, {
2671
+ default: s(() => [
2672
+ Y(K(l(t).TableAddRowBelow), 1)
2673
+ ]),
2674
+ _: 1
2675
+ })
2676
+ ]),
2677
+ _: 1
2678
+ }, 8, ["disabled"]),
2679
+ i(W, {
2680
+ disabled: !c.value.inTable,
2681
+ onClick: u[14] || (u[14] = (k) => {
2682
+ var p;
2683
+ return (p = a.value) == null ? void 0 : p.chain().focus().deleteRow().run();
2684
+ })
2685
+ }, {
2686
+ prepend: s(() => [
2687
+ i(l(B), { name: "mdi-table-row-remove" })
2688
+ ]),
2689
+ default: s(() => [
2690
+ i(N, null, {
2691
+ default: s(() => [
2692
+ Y(K(l(t).TableDeleteRow), 1)
2693
+ ]),
2694
+ _: 1
2695
+ })
2696
+ ]),
2697
+ _: 1
2698
+ }, 8, ["disabled"]),
2699
+ i(x),
2700
+ i(W, {
2701
+ disabled: !c.value.inTable,
2702
+ onClick: u[15] || (u[15] = (k) => {
2703
+ var p;
2704
+ return (p = a.value) == null ? void 0 : p.chain().focus().addColumnBefore().run();
2705
+ })
2706
+ }, {
2707
+ prepend: s(() => [
2708
+ i(l(B), { name: "mdi-table-column-plus-before" })
2709
+ ]),
2710
+ default: s(() => [
2711
+ i(N, null, {
2712
+ default: s(() => [
2713
+ Y(K(l(t).TableAddColumnBefore), 1)
2714
+ ]),
2715
+ _: 1
2716
+ })
2717
+ ]),
2718
+ _: 1
2719
+ }, 8, ["disabled"]),
2720
+ i(W, {
2721
+ disabled: !c.value.inTable,
2722
+ onClick: u[16] || (u[16] = (k) => {
2723
+ var p;
2724
+ return (p = a.value) == null ? void 0 : p.chain().focus().addColumnAfter().run();
2725
+ })
2726
+ }, {
2727
+ prepend: s(() => [
2728
+ i(l(B), { name: "mdi-table-column-plus-after" })
2729
+ ]),
2730
+ default: s(() => [
2731
+ i(N, null, {
2732
+ default: s(() => [
2733
+ Y(K(l(t).TableAddColumnAfter), 1)
2734
+ ]),
2735
+ _: 1
2736
+ })
2737
+ ]),
2738
+ _: 1
2739
+ }, 8, ["disabled"]),
2740
+ i(W, {
2741
+ disabled: !c.value.inTable,
2742
+ onClick: u[17] || (u[17] = (k) => {
2743
+ var p;
2744
+ return (p = a.value) == null ? void 0 : p.chain().focus().deleteColumn().run();
2745
+ })
2746
+ }, {
2747
+ prepend: s(() => [
2748
+ i(l(B), { name: "mdi-table-column-remove" })
2749
+ ]),
2750
+ default: s(() => [
2751
+ i(N, null, {
2752
+ default: s(() => [
2753
+ Y(K(l(t).TableDeleteColumn), 1)
2754
+ ]),
2755
+ _: 1
2756
+ })
2757
+ ]),
2758
+ _: 1
2759
+ }, 8, ["disabled"]),
2760
+ i(x),
2761
+ i(W, {
2762
+ disabled: !c.value.inTable,
2763
+ onClick: u[18] || (u[18] = (k) => {
2764
+ var p;
2765
+ return (p = a.value) == null ? void 0 : p.chain().focus().toggleHeaderRow().run();
2766
+ })
2767
+ }, {
2768
+ prepend: s(() => [
2769
+ i(l(B), { name: "mdi-table-row" })
2770
+ ]),
2771
+ default: s(() => [
2772
+ i(N, null, {
2773
+ default: s(() => [
2774
+ Y(K(l(t).TableToggleHeaderRow), 1)
2775
+ ]),
2776
+ _: 1
2777
+ })
2778
+ ]),
2779
+ _: 1
2780
+ }, 8, ["disabled"]),
2781
+ i(W, {
2782
+ disabled: !c.value.inTable,
2783
+ onClick: u[19] || (u[19] = (k) => {
2784
+ var p;
2785
+ return (p = a.value) == null ? void 0 : p.chain().focus().deleteTable().run();
2786
+ })
2787
+ }, {
2788
+ prepend: s(() => [
2789
+ i(l(B), { name: "mdi-table-remove" })
2790
+ ]),
2791
+ default: s(() => [
2792
+ i(N, null, {
2793
+ default: s(() => [
2794
+ Y(K(l(t).TableDeleteTable), 1)
2795
+ ]),
2796
+ _: 1
2797
+ })
2798
+ ]),
2799
+ _: 1
2800
+ }, 8, ["disabled"])
2801
+ ]),
2802
+ _: 1
2803
+ })
2804
+ ]),
2805
+ _: 1
2806
+ }),
2807
+ i(m, {
2808
+ icon: "",
2809
+ size: "small",
2810
+ variant: "text",
2811
+ title: l(t).Blockquote,
2812
+ disabled: !d.value,
2813
+ active: c.value.blockquote,
2814
+ onClick: u[20] || (u[20] = (k) => {
2815
+ var p;
2816
+ return (p = a.value) == null ? void 0 : p.chain().focus().toggleBlockquote().run();
2817
+ })
2818
+ }, {
2819
+ default: s(() => [
2820
+ i(l(B), { name: "mdi-format-quote-close" })
2821
+ ]),
2822
+ _: 1
2823
+ }, 8, ["title", "disabled", "active"]),
2824
+ i(x, {
2825
+ vertical: "",
2826
+ inset: "",
2827
+ class: "mx-1"
2828
+ }),
2829
+ i(m, {
2830
+ icon: "",
2831
+ size: "small",
2832
+ variant: "text",
2833
+ title: l(t).AlignLeft,
2834
+ disabled: !d.value,
2835
+ active: c.value.alignLeft,
2836
+ onClick: u[21] || (u[21] = (k) => {
2837
+ var p;
2838
+ return (p = a.value) == null ? void 0 : p.chain().focus().setTextAlign("left").run();
2839
+ })
2840
+ }, {
2841
+ default: s(() => [
2842
+ i(l(B), { name: "mdi-format-align-left" })
2843
+ ]),
2844
+ _: 1
2845
+ }, 8, ["title", "disabled", "active"]),
2846
+ i(m, {
2847
+ icon: "",
2848
+ size: "small",
2849
+ variant: "text",
2850
+ title: l(t).AlignCenter,
2851
+ disabled: !d.value,
2852
+ active: c.value.alignCenter,
2853
+ onClick: u[22] || (u[22] = (k) => {
2854
+ var p;
2855
+ return (p = a.value) == null ? void 0 : p.chain().focus().setTextAlign("center").run();
2856
+ })
2857
+ }, {
2858
+ default: s(() => [
2859
+ i(l(B), { name: "mdi-format-align-center" })
2860
+ ]),
2861
+ _: 1
2862
+ }, 8, ["title", "disabled", "active"]),
2863
+ i(m, {
2864
+ icon: "",
2865
+ size: "small",
2866
+ variant: "text",
2867
+ title: l(t).AlignRight,
2868
+ disabled: !d.value,
2869
+ active: c.value.alignRight,
2870
+ onClick: u[23] || (u[23] = (k) => {
2871
+ var p;
2872
+ return (p = a.value) == null ? void 0 : p.chain().focus().setTextAlign("right").run();
2873
+ })
2874
+ }, {
2875
+ default: s(() => [
2876
+ i(l(B), { name: "mdi-format-align-right" })
2877
+ ]),
2878
+ _: 1
2879
+ }, 8, ["title", "disabled", "active"]),
2880
+ i(m, {
2881
+ icon: "",
2882
+ size: "small",
2883
+ variant: "text",
2884
+ title: l(t).AlignJustify,
2885
+ disabled: !d.value,
2886
+ active: c.value.alignJustify,
2887
+ onClick: u[24] || (u[24] = (k) => {
2888
+ var p;
2889
+ return (p = a.value) == null ? void 0 : p.chain().focus().setTextAlign("justify").run();
2890
+ })
2891
+ }, {
2892
+ default: s(() => [
2893
+ i(l(B), { name: "mdi-format-align-justify" })
2894
+ ]),
2895
+ _: 1
2896
+ }, 8, ["title", "disabled", "active"]),
2897
+ i(x, {
2898
+ vertical: "",
2899
+ inset: "",
2900
+ class: "mx-1"
2901
+ }),
2902
+ i(m, {
2903
+ icon: "",
2904
+ size: "small",
2905
+ variant: "text",
2906
+ title: l(t).BulletedList,
2907
+ disabled: !d.value,
2908
+ active: c.value.bulletList,
2909
+ onClick: u[25] || (u[25] = (k) => {
2910
+ var p;
2911
+ return (p = a.value) == null ? void 0 : p.chain().focus().toggleBulletList().run();
2912
+ })
2913
+ }, {
2914
+ default: s(() => [
2915
+ i(l(B), { name: "mdi-format-list-bulleted" })
2916
+ ]),
2917
+ _: 1
2918
+ }, 8, ["title", "disabled", "active"]),
2919
+ i(m, {
2920
+ icon: "",
2921
+ size: "small",
2922
+ variant: "text",
2923
+ title: l(t).NumberedList,
2924
+ disabled: !d.value,
2925
+ active: c.value.orderedList,
2926
+ onClick: u[26] || (u[26] = (k) => {
2927
+ var p;
2928
+ return (p = a.value) == null ? void 0 : p.chain().focus().toggleOrderedList().run();
2929
+ })
2930
+ }, {
2931
+ default: s(() => [
2932
+ i(l(B), { name: "mdi-format-list-numbered" })
2933
+ ]),
2934
+ _: 1
2935
+ }, 8, ["title", "disabled", "active"]),
2936
+ i(m, {
2937
+ icon: "",
2938
+ size: "small",
2939
+ variant: "text",
2940
+ title: l(t).Outdent,
2941
+ disabled: !d.value || !c.value.canLift,
2942
+ onClick: u[27] || (u[27] = (k) => {
2943
+ var p;
2944
+ return (p = a.value) == null ? void 0 : p.chain().focus().liftListItem("listItem").run();
2945
+ })
2946
+ }, {
2947
+ default: s(() => [
2948
+ i(l(B), { name: "mdi-format-indent-decrease" })
2949
+ ]),
2950
+ _: 1
2951
+ }, 8, ["title", "disabled"]),
2952
+ i(m, {
2953
+ icon: "",
2954
+ size: "small",
2955
+ variant: "text",
2956
+ title: l(t).Indent,
2957
+ disabled: !d.value || !c.value.canSink,
2958
+ onClick: u[28] || (u[28] = (k) => {
2959
+ var p;
2960
+ return (p = a.value) == null ? void 0 : p.chain().focus().sinkListItem("listItem").run();
2961
+ })
2962
+ }, {
2963
+ default: s(() => [
2964
+ i(l(B), { name: "mdi-format-indent-increase" })
2965
+ ]),
2966
+ _: 1
2967
+ }, 8, ["title", "disabled"])
2968
+ ], 2);
2042
2969
  };
2043
2970
  }
2044
- }), vl = { class: "editor-container" }, pl = { class: "editor-container__editor" }, hl = { ref: "editorElement" }, bl = /* @__PURE__ */ K({
2045
- __name: "ck-editor-custom",
2971
+ }), Wl = /^[a-z][a-z0-9]*:[a-z]/i, Ol = /mso-[a-z-]+\s*:[^;]+;?/gi, ql = /^Mso/i, Kl = /background(?:-color)?\s*:[^;]+;?/gi;
2972
+ function Xl(e) {
2973
+ const n = document.createTreeWalker(e, NodeFilter.SHOW_COMMENT), t = [];
2974
+ for (let a = n.nextNode(); a; a = n.nextNode()) t.push(a);
2975
+ t.forEach((a) => {
2976
+ var r;
2977
+ return (r = a.parentNode) == null ? void 0 : r.removeChild(a);
2978
+ });
2979
+ }
2980
+ function at(e) {
2981
+ const n = e.parentNode;
2982
+ if (n) {
2983
+ for (; e.firstChild; ) n.insertBefore(e.firstChild, e);
2984
+ n.removeChild(e);
2985
+ }
2986
+ }
2987
+ function Yl(e) {
2988
+ const n = e.getAttribute("style");
2989
+ if (n != null) {
2990
+ const a = n.replace(Ol, "").replace(Kl, "").trim();
2991
+ a ? e.setAttribute("style", a) : e.removeAttribute("style");
2992
+ }
2993
+ const t = e.getAttribute("class");
2994
+ if (t != null) {
2995
+ const a = t.split(/\s+/).filter((r) => r && !ql.test(r)).join(" ");
2996
+ a ? e.setAttribute("class", a) : e.removeAttribute("class");
2997
+ }
2998
+ e.removeAttribute("lang"), e.removeAttribute("xml:lang"), e.removeAttribute("id"), e.removeAttribute("align"), e.removeAttribute("bgcolor");
2999
+ }
3000
+ function Gl(e) {
3001
+ if (!e || typeof DOMParser == "undefined") return e;
3002
+ const t = new DOMParser().parseFromString(e, "text/html").body;
3003
+ return t ? (Xl(t), t.querySelectorAll("xml, style, script, meta, link").forEach((a) => a.remove()), Array.from(t.querySelectorAll("*")).forEach((a) => {
3004
+ if (Wl.test(a.tagName) || a.tagName === "FONT") {
3005
+ at(a);
3006
+ return;
3007
+ }
3008
+ Yl(a);
3009
+ }), Array.from(t.querySelectorAll("span, div")).forEach((a) => {
3010
+ a.attributes.length === 0 && at(a);
3011
+ }), t.innerHTML) : e;
3012
+ }
3013
+ const Jl = { class: "editor-container" }, Ql = { class: "rtf-bubble-menu" }, Zl = /* @__PURE__ */ Z({
3014
+ __name: "editor-core",
2046
3015
  props: {
2047
3016
  modelValue: { default: "" },
2048
3017
  minHeight: { default: "7em" },
2049
3018
  disabled: { type: Boolean, default: !1 }
2050
3019
  },
2051
3020
  emits: ["update:modelValue"],
2052
- setup(e, { expose: t, emit: n }) {
2053
- Pt((u) => ({
2054
- v32dcdf6e: u.minHeight
3021
+ setup(e, { emit: n }) {
3022
+ zt((f) => ({
3023
+ v3d306a89: f.minHeight
2055
3024
  }));
2056
- const l = n, a = F(!1), r = An, s = {
2057
- items: [
2058
- "undo",
2059
- "redo",
2060
- "|",
2061
- "selectAll",
2062
- "|",
2063
- "heading",
2064
- "style",
2065
- "|",
2066
- "bold",
2067
- "italic",
2068
- "|",
2069
- "horizontalLine",
2070
- "link",
2071
- "mediaEmbed",
2072
- "insertTable",
2073
- "blockQuote",
2074
- "|",
2075
- "alignment",
2076
- "|",
2077
- "bulletedList",
2078
- "numberedList",
2079
- "outdent",
2080
- "indent",
2081
- "|",
2082
- "accessibilityHelp"
2083
- ],
2084
- shouldNotGroupWhenFull: !1
2085
- }, c = [
2086
- Kt,
2087
- Xt,
2088
- qt,
2089
- Gt,
2090
- Yt,
2091
- Qt,
2092
- Zt,
2093
- Jt,
2094
- en,
2095
- tn,
2096
- nn,
2097
- on,
2098
- ln,
2099
- an,
2100
- rn,
2101
- sn,
2102
- un,
2103
- cn,
2104
- dn,
2105
- mn,
2106
- fn,
2107
- vn,
2108
- pn,
2109
- hn,
2110
- bn,
2111
- gn,
2112
- yn,
2113
- wn,
2114
- kn,
2115
- Cn,
2116
- Vn,
2117
- jn,
2118
- Tn,
2119
- xn,
2120
- _n,
2121
- Bn,
2122
- Dn,
2123
- In,
2124
- Sn,
2125
- Pn,
2126
- En
2127
- ], g = {
2128
- options: [
2129
- { model: "paragraph", title: L.Paragraph, class: "ck-heading_paragraph" },
2130
- { model: "heading1", view: "h1", title: L.Heading1, class: "ck-heading_heading1" },
2131
- { model: "heading2", view: "h2", title: L.Heading2, class: "ck-heading_heading2" },
2132
- { model: "heading3", view: "h3", title: L.Heading3, class: "ck-heading_heading3" },
2133
- { model: "heading4", view: "h4", title: L.Heading4, class: "ck-heading_heading4" },
2134
- { model: "heading5", view: "h5", title: L.Heading5, class: "ck-heading_heading5" },
2135
- { model: "heading6", view: "h6", title: L.Heading6, class: "ck-heading_heading6" }
2136
- ]
2137
- }, i = {
2138
- language: De.language,
2139
- toolbar: s,
2140
- plugins: c,
2141
- balloonToolbar: ["bold", "italic", "|", "link", "|", "bulletedList", "numberedList"],
2142
- heading: g,
2143
- htmlSupport: {
2144
- allow: [{ name: /^.*$/, styles: !0, attributes: !0, classes: !0 }]
2145
- },
2146
- image: {
2147
- toolbar: [
2148
- "toggleImageCaption",
2149
- "imageTextAlternative",
2150
- "|",
2151
- "imageStyle:inline",
2152
- "imageStyle:wrapText",
2153
- "imageStyle:breakText",
2154
- "|",
2155
- "resizeImage"
2156
- ]
2157
- },
2158
- // initialData: '',
2159
- link: {
2160
- addTargetToExternalLinks: !0,
2161
- defaultProtocol: "https://",
2162
- decorators: {
2163
- toggleDownloadable: {
2164
- mode: "manual",
2165
- label: L.Downloadable,
2166
- attributes: { download: "file" }
3025
+ const t = e, a = n, r = rn({
3026
+ content: t.modelValue,
3027
+ editable: !t.disabled,
3028
+ extensions: [
3029
+ on.configure({ link: !1 }),
3030
+ Pl.configure({ openOnClick: !1, autolink: !0, defaultProtocol: "https" }),
3031
+ Jt.configure({
3032
+ inline: !0,
3033
+ allowBase64: !0,
3034
+ resize: {
3035
+ enabled: !0,
3036
+ directions: ["top", "right", "bottom", "left", "top-left", "top-right", "bottom-left", "bottom-right"],
3037
+ minWidth: 24,
3038
+ minHeight: 24
2167
3039
  }
2168
- }
2169
- },
2170
- placeholder: "",
2171
- style: {
2172
- definitions: [
2173
- { name: L.ArticleCategory, element: "h3", classes: ["category"] },
2174
- { name: L.Title, element: "h2", classes: ["document-title"] },
2175
- { name: L.Subtitle, element: "h3", classes: ["document-subtitle"] },
2176
- { name: L.InfoBox, element: "p", classes: ["info-box"] },
2177
- { name: L.SideQuote, element: "blockquote", classes: ["side-quote"] },
2178
- { name: L.Marker, element: "span", classes: ["marker"] },
2179
- { name: L.Spoiler, element: "span", classes: ["spoiler"] },
2180
- { name: L.CodeDark, element: "pre", classes: ["fancy-code", "fancy-code-dark"] },
2181
- { name: L.CodeBright, element: "pre", classes: ["fancy-code", "fancy-code-bright"] }
2182
- ]
3040
+ }),
3041
+ ln.configure({ types: ["heading", "paragraph"] }),
3042
+ Zt.configure({ resizable: !0 }),
3043
+ nn,
3044
+ tn,
3045
+ en,
3046
+ Qt.configure({ placeholder: "" }),
3047
+ Ll,
3048
+ $l,
3049
+ Sl,
3050
+ zl
3051
+ ],
3052
+ editorProps: {
3053
+ attributes: { class: "rtf-content" },
3054
+ transformPastedHTML: (f) => Gl(f),
3055
+ handlePaste: Rl(() => r.value)
2183
3056
  },
2184
- table: { contentToolbar: ["tableColumn", "tableRow", "mergeTableCells", "tableProperties", "tableCellProperties"] },
2185
- translations: De.translations
2186
- };
2187
- lt(() => {
2188
- a.value = !0;
3057
+ onUpdate: ({ editor: f }) => {
3058
+ a("update:modelValue", f.getHTML());
3059
+ }
2189
3060
  });
2190
- const f = (u) => {
2191
- };
2192
- return t({ onEditorReady: f }), (u, C) => {
2193
- const x = N("ckeditor");
2194
- return V(), Y("div", vl, [
2195
- de("div", pl, [
2196
- de("div", hl, [
2197
- a.value ? (V(), R(x, {
2198
- key: 0,
2199
- "model-value": e.modelValue,
2200
- editor: o(r),
2201
- config: i,
2202
- disabled: e.disabled,
2203
- style: rt(`min-height: ${e.minHeight}`),
2204
- onReady: f,
2205
- "onUpdate:modelValue": C[0] || (C[0] = (p) => l("update:modelValue", p))
2206
- }, null, 8, ["model-value", "editor", "disabled", "style"])) : H("", !0)
2207
- ], 512)
2208
- ])
3061
+ se(
3062
+ () => t.modelValue,
3063
+ (f) => {
3064
+ const h = r.value;
3065
+ if (!h) return;
3066
+ const L = f != null ? f : "";
3067
+ L !== h.getHTML() && h.commands.setContent(L, { emitUpdate: !1 });
3068
+ }
3069
+ ), se(
3070
+ () => t.disabled,
3071
+ (f) => {
3072
+ var h;
3073
+ return (h = r.value) == null ? void 0 : h.setEditable(!f);
3074
+ }
3075
+ ), se(r, (f) => f == null ? void 0 : f.setEditable(!t.disabled));
3076
+ const d = At(r), c = C(() => {
3077
+ var f, h, L, $, A;
3078
+ return d.value, {
3079
+ bold: !!((f = r.value) != null && f.isActive("bold")),
3080
+ italic: !!((h = r.value) != null && h.isActive("italic")),
3081
+ link: !!((L = r.value) != null && L.isActive("link")),
3082
+ bulletList: !!(($ = r.value) != null && $.isActive("bulletList")),
3083
+ orderedList: !!((A = r.value) != null && A.isActive("orderedList"))
3084
+ };
3085
+ });
3086
+ function g({ state: f }) {
3087
+ return !f.selection.empty && !(f.selection instanceof an);
3088
+ }
3089
+ function w(f) {
3090
+ var h;
3091
+ (h = r.value) == null || h.chain().focus()[f]().run();
3092
+ }
3093
+ function v() {
3094
+ const f = r.value;
3095
+ if (!f) return;
3096
+ if (f.isActive("link")) {
3097
+ f.chain().focus().unsetLink().run();
3098
+ return;
3099
+ }
3100
+ const h = window.prompt("URL");
3101
+ h && f.chain().focus().extendMarkRange("link").setLink({ href: h }).run();
3102
+ }
3103
+ return (f, h) => {
3104
+ const L = P("v-btn");
3105
+ return j(), Q("div", Jl, [
3106
+ i(Hl, { editor: l(r) }, null, 8, ["editor"]),
3107
+ i(l(sn), {
3108
+ class: "editor-container__editor",
3109
+ editor: l(r)
3110
+ }, null, 8, ["editor"]),
3111
+ l(r) ? (j(), H(l(un), {
3112
+ key: 0,
3113
+ editor: l(r),
3114
+ "should-show": g
3115
+ }, {
3116
+ default: s(() => [
3117
+ ae("div", Ql, [
3118
+ i(L, {
3119
+ icon: "",
3120
+ size: "small",
3121
+ variant: "text",
3122
+ active: c.value.bold,
3123
+ onClick: h[0] || (h[0] = ($) => w("toggleBold"))
3124
+ }, {
3125
+ default: s(() => [
3126
+ i(l(B), { name: "mdi-format-bold" })
3127
+ ]),
3128
+ _: 1
3129
+ }, 8, ["active"]),
3130
+ i(L, {
3131
+ icon: "",
3132
+ size: "small",
3133
+ variant: "text",
3134
+ active: c.value.italic,
3135
+ onClick: h[1] || (h[1] = ($) => w("toggleItalic"))
3136
+ }, {
3137
+ default: s(() => [
3138
+ i(l(B), { name: "mdi-format-italic" })
3139
+ ]),
3140
+ _: 1
3141
+ }, 8, ["active"]),
3142
+ i(L, {
3143
+ icon: "",
3144
+ size: "small",
3145
+ variant: "text",
3146
+ active: c.value.link,
3147
+ onClick: v
3148
+ }, {
3149
+ default: s(() => [
3150
+ i(l(B), { name: "mdi-link-variant" })
3151
+ ]),
3152
+ _: 1
3153
+ }, 8, ["active"]),
3154
+ i(L, {
3155
+ icon: "",
3156
+ size: "small",
3157
+ variant: "text",
3158
+ active: c.value.bulletList,
3159
+ onClick: h[2] || (h[2] = ($) => w("toggleBulletList"))
3160
+ }, {
3161
+ default: s(() => [
3162
+ i(l(B), { name: "mdi-format-list-bulleted" })
3163
+ ]),
3164
+ _: 1
3165
+ }, 8, ["active"]),
3166
+ i(L, {
3167
+ icon: "",
3168
+ size: "small",
3169
+ variant: "text",
3170
+ active: c.value.orderedList,
3171
+ onClick: h[3] || (h[3] = ($) => w("toggleOrderedList"))
3172
+ }, {
3173
+ default: s(() => [
3174
+ i(l(B), { name: "mdi-format-list-numbered" })
3175
+ ]),
3176
+ _: 1
3177
+ }, 8, ["active"])
3178
+ ])
3179
+ ]),
3180
+ _: 1
3181
+ }, 8, ["editor"])) : G("", !0)
2209
3182
  ]);
2210
3183
  };
2211
3184
  }
2212
- }), gl = /* @__PURE__ */ K({
3185
+ }), xt = /* @__PURE__ */ Z({
2213
3186
  __name: "df-rtf-editor",
2214
- props: /* @__PURE__ */ ae({
3187
+ props: /* @__PURE__ */ ve({
2215
3188
  minHeight: {},
2216
3189
  control: {},
2217
3190
  modelValue: {},
@@ -2227,64 +3200,64 @@ const rl = {
2227
3200
  passthroughAttrs: {},
2228
3201
  density: {},
2229
3202
  variant: {}
2230
- }, W(B({}, re), { minHeight: void 0 })),
3203
+ }, J(U({}, pe), { minHeight: void 0 })),
2231
3204
  emits: ["update:modelValue", "click:clear"],
2232
- setup(e, { emit: t }) {
2233
- const n = e, l = t, { densityClass: a, value: r, vuetifyBindings: s } = te(n, l);
2234
- return (c, g) => (V(), R(o(He), z(n, {
2235
- class: ["ck-editor-custom", o(a)]
3205
+ setup(e, { emit: n }) {
3206
+ const t = e, a = n, { densityClass: r, value: d, vuetifyBindings: c } = me(t, a);
3207
+ return (g, w) => (j(), H(l(Xe), X(t, {
3208
+ class: ["rtf-editor", l(r)]
2236
3209
  }), {
2237
- default: y((i) => [
2238
- I(bl, z({
3210
+ default: s((v) => [
3211
+ i(Zl, X({
2239
3212
  ref: "$editor",
2240
- modelValue: o(r),
2241
- "onUpdate:modelValue": g[0] || (g[0] = (f) => ce(r) ? r.value = f : null),
3213
+ modelValue: l(d),
3214
+ "onUpdate:modelValue": w[0] || (w[0] = (f) => ke(d) ? d.value = f : null),
2242
3215
  class: { "mt-6": !!e.label },
2243
3216
  "min-height": e.minHeight,
2244
- disabled: o(s).disabled
3217
+ disabled: l(c).disabled
2245
3218
  }, e.passthroughAttrs, {
2246
- onFocusin: (f) => i.focus(),
2247
- onFocusout: (f) => i.blur()
3219
+ onFocusin: (f) => v.focus(),
3220
+ onFocusout: (f) => v.blur()
2248
3221
  }), null, 16, ["modelValue", "class", "min-height", "disabled", "onFocusin", "onFocusout"])
2249
3222
  ]),
2250
3223
  _: 1
2251
3224
  }, 16, ["class"]));
2252
3225
  }
2253
3226
  });
2254
- function yl(e) {
2255
- return e.map((t) => ({ value: t.id, title: t.text, icon: t.icon }));
3227
+ function ea(e) {
3228
+ return e.map((n) => ({ value: n.id, title: n.text, icon: n.icon }));
2256
3229
  }
2257
- function ee(e, t) {
2258
- var n;
2259
- return e == null || tt(e) && e.length === 0 ? null : t ? it(e) : tt(e) ? (n = st(e)) != null ? n : null : e;
3230
+ function re(e, n) {
3231
+ var t;
3232
+ return e == null || tt(e) && e.length === 0 ? null : n ? rt(e) : tt(e) ? (t = st(e)) != null ? t : null : e;
2260
3233
  }
2261
- function Ie(e, t) {
2262
- if (t == null) return [];
2263
- const n = it(t);
2264
- return e.filter((l) => n.some((a) => a === l.id));
3234
+ function ze(e, n) {
3235
+ if (n == null) return [];
3236
+ const t = rt(n);
3237
+ return e.filter((a) => t.some((r) => r === a.id));
2265
3238
  }
2266
- function Ve(e, t, n, l, a) {
2267
- var s;
2268
- const r = ee(e, n);
2269
- if (r == null) {
2270
- t.value = n ? [] : null;
3239
+ function Le(e, n, t, a, r) {
3240
+ var c;
3241
+ const d = re(e, t);
3242
+ if (d == null) {
3243
+ n.value = t ? [] : null;
2271
3244
  return;
2272
3245
  }
2273
- if (n)
2274
- l ? t.value = r : t.value = Ie(a, r).map((c) => c.id);
2275
- else if (l)
2276
- t.value = r;
3246
+ if (t)
3247
+ a ? n.value = d : n.value = ze(r, d).map((g) => g.id);
3248
+ else if (a)
3249
+ n.value = d;
2277
3250
  else {
2278
- const c = st(Ie(a, r));
2279
- t.value = (s = c == null ? void 0 : c.id) != null ? s : null;
3251
+ const g = st(ze(r, d));
3252
+ n.value = (c = g == null ? void 0 : g.id) != null ? c : null;
2280
3253
  }
2281
3254
  }
2282
- const wl = {
3255
+ const ta = {
2283
3256
  key: 0,
2284
3257
  class: "me-1"
2285
- }, kl = /* @__PURE__ */ K({
3258
+ }, na = /* @__PURE__ */ Z({
2286
3259
  __name: "df-select",
2287
- props: /* @__PURE__ */ ae({
3260
+ props: /* @__PURE__ */ ve({
2288
3261
  choices: {},
2289
3262
  multiple: { type: Boolean },
2290
3263
  allowTags: { type: Boolean },
@@ -2304,7 +3277,7 @@ const wl = {
2304
3277
  passthroughAttrs: {},
2305
3278
  density: {},
2306
3279
  variant: {}
2307
- }, W(B({}, re), {
3280
+ }, J(U({}, pe), {
2308
3281
  choices: void 0,
2309
3282
  multiple: !1,
2310
3283
  allowTags: !1,
@@ -2312,235 +3285,235 @@ const wl = {
2312
3285
  fetchChoices: void 0
2313
3286
  })),
2314
3287
  emits: ["update:modelValueDisplay", "update:modelValue", "click:clear"],
2315
- setup(e, { emit: t }) {
2316
- var Ke;
2317
- const n = e, { choices: l, multiple: a, allowTags: r, allowNull: s, cssClass: c } = Se(n), g = t, i = F(null), {
3288
+ setup(e, { emit: n }) {
3289
+ var Ge;
3290
+ const t = e, { choices: a, multiple: r, allowTags: d, allowNull: c, cssClass: g } = Ee(t), w = n, v = F(null), {
2318
3291
  densityClass: f,
2319
- isRendered: u,
2320
- label: C,
2321
- showErrors: x,
2322
- touched: p,
2323
- value: k,
2324
- visibilityClass: D,
2325
- vuetifyBindings: S
2326
- } = te(n, g), d = F(null), P = F(!1), U = F([]), A = b(() => o(P) ? o(U) : o(l) || []), O = F(!1), $ = b(() => yl(A.value)), v = F(null), m = F(0), M = F(!1);
2327
- (Ke = l.value) != null && Ke.length && n.fetchChoices !== void 0 && console.warn("Both choices and fetchChoices are set. Only one of them should be set.");
2328
- function h(w) {
2329
- g("update:modelValueDisplay", Ie(A.value, w));
3292
+ isRendered: h,
3293
+ label: L,
3294
+ showErrors: $,
3295
+ touched: A,
3296
+ value: V,
3297
+ visibilityClass: M,
3298
+ vuetifyBindings: I
3299
+ } = me(t, w), b = F(null), D = F(!1), O = F([]), E = C(() => l(D) ? l(O) : l(a) || []), q = F(!1), S = C(() => ea(E.value)), y = F(null), o = F(0), u = F(!1);
3300
+ (Ge = a.value) != null && Ge.length && t.fetchChoices !== void 0 && console.warn("Both choices and fetchChoices are set. Only one of them should be set.");
3301
+ function m(T) {
3302
+ w("update:modelValueDisplay", ze(E.value, T));
2330
3303
  }
2331
- const j = F(!1);
2332
- function X(w) {
2333
- j.value = !0;
3304
+ const x = F(!1);
3305
+ function N(T) {
3306
+ x.value = !0;
2334
3307
  try {
2335
- k.value = w;
3308
+ V.value = T;
2336
3309
  } finally {
2337
- Ft(ee(k.value, a.value), w) || Ve(
2338
- ee(k.value, a.value),
2339
- d,
2340
- a.value,
3310
+ Kt(re(V.value, r.value), T) || Le(
3311
+ re(V.value, r.value),
3312
+ b,
2341
3313
  r.value,
2342
- A.value
2343
- ), Le(() => {
2344
- j.value = !1;
3314
+ d.value,
3315
+ E.value
3316
+ ), Oe(() => {
3317
+ x.value = !1;
2345
3318
  });
2346
3319
  }
2347
3320
  }
2348
- function G(w) {
2349
- if (!w) return 0;
2350
- const _ = w.getBoundingClientRect(), q = window.getComputedStyle(w);
2351
- return _.width + parseFloat(q.marginLeft) + parseFloat(q.marginRight);
3321
+ function W(T) {
3322
+ if (!T) return 0;
3323
+ const R = T.getBoundingClientRect(), ee = window.getComputedStyle(T);
3324
+ return R.width + parseFloat(ee.marginLeft) + parseFloat(ee.marginRight);
2352
3325
  }
2353
- function ne() {
2354
- var w;
2355
- if (a.value && s.value && d.value != null && d.value.length > 0 && i.value) {
2356
- const _ = i.value.$el, q = (w = _.querySelector(".v-input__control")) == null ? void 0 : w.clientWidth, Q = _.querySelector(".v-field__input"), E = Q.querySelectorAll(".v-autocomplete__selection, .v-combobox__selection"), Z = window.getComputedStyle(Q);
2357
- let ge = parseFloat(Z.paddingLeft) + parseFloat(Z.paddingRight);
2358
- E.forEach((yt) => {
2359
- ge += G(yt);
3326
+ function te() {
3327
+ var T;
3328
+ if (r.value && c.value && b.value != null && b.value.length > 0 && v.value) {
3329
+ const R = v.value.$el, ee = (T = R.querySelector(".v-input__control")) == null ? void 0 : T.clientWidth, ne = R.querySelector(".v-field__input"), z = ne.querySelectorAll(".v-autocomplete__selection, .v-combobox__selection"), le = window.getComputedStyle(ne);
3330
+ let xe = parseFloat(le.paddingLeft) + parseFloat(le.paddingRight);
3331
+ z.forEach((Lt) => {
3332
+ xe += W(Lt);
2360
3333
  });
2361
- const ht = G(_.querySelector(".v-field .v-field__clearable")), bt = G(_.querySelector(".v-field .v-field__append-inner")), gt = 2;
2362
- M.value = q - ge - E.length * gt - bt < ht;
3334
+ const jt = W(R.querySelector(".v-field .v-field__clearable")), _t = W(R.querySelector(".v-field .v-field__append-inner")), Bt = 2;
3335
+ u.value = ee - xe - z.length * Bt - _t < jt;
2363
3336
  } else
2364
- M.value = !1;
3337
+ u.value = !1;
2365
3338
  }
2366
- function T(w) {
2367
- const _ = w.target;
2368
- _ instanceof HTMLElement && _.closest(".v-chip__close") && (w.stopPropagation(), w.preventDefault());
3339
+ function _(T) {
3340
+ const R = T.target;
3341
+ R instanceof HTMLElement && R.closest(".v-chip__close") && (T.stopPropagation(), T.preventDefault());
2369
3342
  }
2370
- ue(
2371
- d,
2372
- (w) => {
2373
- S.value.readonly || Le(() => {
2374
- const _ = ee(w, a.value);
2375
- h(_), X(_);
3343
+ se(
3344
+ b,
3345
+ (T) => {
3346
+ I.value.readonly || Oe(() => {
3347
+ const R = re(T, r.value);
3348
+ m(R), N(R);
2376
3349
  });
2377
3350
  },
2378
3351
  { deep: !0 }
2379
- ), ue(
2380
- k,
2381
- (w) => {
2382
- if (!j.value) {
2383
- const _ = ee(w, a.value);
2384
- Ve(_, d, a.value, !1, A.value);
3352
+ ), se(
3353
+ V,
3354
+ (T) => {
3355
+ if (!x.value) {
3356
+ const R = re(T, r.value);
3357
+ Le(R, b, r.value, !1, E.value);
2385
3358
  }
2386
3359
  },
2387
3360
  { deep: !0 }
2388
- ), ue(j, () => {
2389
- j.value || ne();
3361
+ ), se(x, () => {
3362
+ x.value || te();
2390
3363
  });
2391
- function he() {
2392
- v.value != null && v.value.length > 0 && (v.value = null, Pe());
3364
+ function ie() {
3365
+ y.value != null && y.value.length > 0 && (y.value = null, k());
2393
3366
  }
2394
3367
  function be() {
2395
- if (he(), S.value.readonly || r.value) return;
2396
- const w = ee(d.value, a.value);
2397
- Ve(w, d, a.value, !1, A.value), X(w);
3368
+ if (ie(), I.value.readonly || d.value) return;
3369
+ const T = re(b.value, r.value);
3370
+ Le(T, b, r.value, !1, E.value), N(T);
2398
3371
  }
2399
- function pt(w, _) {
2400
- if (w.stopPropagation(), S.value.readonly || r.value) {
2401
- r.value && (d.value = d.value.filter((Q) => Q !== _));
3372
+ function Ae(T, R) {
3373
+ if (T.stopPropagation(), I.value.readonly || d.value) {
3374
+ d.value && (b.value = b.value.filter((ne) => ne !== R));
2402
3375
  return;
2403
3376
  }
2404
- let q;
2405
- a.value && Array.isArray(d.value) ? q = ee(
2406
- d.value.filter((Q) => Q !== _),
2407
- a.value
2408
- ) : q = null, Ve(q, d, a.value, !1, A.value), X(q);
3377
+ let ee;
3378
+ r.value && Array.isArray(b.value) ? ee = re(
3379
+ b.value.filter((ne) => ne !== R),
3380
+ r.value
3381
+ ) : ee = null, Le(ee, b, r.value, !1, E.value), N(ee);
2409
3382
  }
2410
- function Pe(w, _) {
2411
- return _e(this, null, function* () {
2412
- if (S.value.readonly || (v.value = w, l.value || n.fetchChoices === void 0)) return;
2413
- const q = ++m.value;
2414
- O.value = !0;
3383
+ function k(T, R) {
3384
+ return Te(this, null, function* () {
3385
+ if (I.value.readonly || (y.value = T, a.value || t.fetchChoices === void 0)) return;
3386
+ const ee = ++o.value;
3387
+ q.value = !0;
2415
3388
  try {
2416
- const Q = Ie(
2417
- A.value,
2418
- ee(d.value, a.value)
2419
- ), E = yield n.fetchChoices(w, _);
2420
- if (q !== m.value) return;
2421
- U.value = Rt([...Q, ...E], "id"), P.value = !0;
3389
+ const ne = ze(
3390
+ E.value,
3391
+ re(b.value, r.value)
3392
+ ), z = yield t.fetchChoices(T, R);
3393
+ if (ee !== o.value) return;
3394
+ O.value = Xt([...ne, ...z], "id"), D.value = !0;
2422
3395
  } finally {
2423
- O.value = !1;
3396
+ q.value = !1;
2424
3397
  }
2425
3398
  });
2426
3399
  }
2427
- function ze() {
2428
- let w = k.value;
2429
- !s.value && w == null && $.value.length && (w = $.value[0].value), w = ee(w, a.value), Ve(w, d, a.value, r.value, A.value), h(w), X(w);
3400
+ function p() {
3401
+ let T = V.value;
3402
+ !c.value && T == null && S.value.length && (T = S.value[0].value), T = re(T, r.value), Le(T, b, r.value, d.value, E.value), m(T), N(T);
2430
3403
  }
2431
- return ze(), n.fetchChoices !== void 0 && Pe(void 0, k.value).then(() => {
2432
- ze();
2433
- }), (w, _) => {
2434
- const q = N("v-chip"), Q = N("v-list-item");
2435
- return o(u) ? (V(), R(je(o(r) ? "v-combobox" : "v-autocomplete"), z({
3404
+ return p(), t.fetchChoices !== void 0 && k(void 0, V.value).then(() => {
3405
+ p();
3406
+ }), (T, R) => {
3407
+ const ee = P("v-chip"), ne = P("v-list-item");
3408
+ return l(h) ? (j(), H(Ne(l(d) ? "v-combobox" : "v-autocomplete"), X({
2436
3409
  key: 0,
2437
3410
  ref_key: "dfSelectRef",
2438
- ref: i,
2439
- modelValue: d.value,
2440
- "onUpdate:modelValue": _[0] || (_[0] = (E) => d.value = E),
2441
- class: [o(c), o(f), o(D), { "df-select-multirow": M.value }],
2442
- items: $.value,
3411
+ ref: v,
3412
+ modelValue: b.value,
3413
+ "onUpdate:modelValue": R[0] || (R[0] = (z) => b.value = z),
3414
+ class: [l(g), l(f), l(M), { "df-select-multirow": u.value }],
3415
+ items: S.value,
2443
3416
  "return-object": !1,
2444
3417
  chips: "",
2445
3418
  "auto-select-first": !0,
2446
- "closable-chips": o(s) || o(a) && d.value.length > 1,
2447
- clearable: o(s),
2448
- multiple: o(a),
2449
- loading: O.value,
3419
+ "closable-chips": l(c) || l(r) && b.value.length > 1,
3420
+ clearable: l(c),
3421
+ multiple: l(r),
3422
+ loading: q.value,
2450
3423
  "hide-selected": !1,
2451
- "aria-describedby": o(S).helpText ? `${o(S).name}-help` : null,
3424
+ "aria-describedby": l(I).helpText ? `${l(I).name}-help` : null,
2452
3425
  "menu-props": { maxHeight: "400" },
2453
- search: v.value
2454
- }, o(S), {
2455
- "onUpdate:search": _[1] || (_[1] = (E) => Pe(E, void 0)),
3426
+ search: y.value
3427
+ }, l(I), {
3428
+ "onUpdate:search": R[1] || (R[1] = (z) => k(z, void 0)),
2456
3429
  "onUpdate:modelValue": be,
2457
- "onClick:clear": _[2] || (_[2] = (E) => d.value = null),
2458
- onBlur: _[3] || (_[3] = (E) => p.value = !0),
2459
- onMousedownCapture: _[4] || (_[4] = (E) => T(E))
2460
- }), Ne({
2461
- chip: y(({ item: E }) => [
2462
- (V(), R(q, {
2463
- key: E.value,
3430
+ "onClick:clear": R[2] || (R[2] = (z) => b.value = null),
3431
+ onBlur: R[3] || (R[3] = (z) => A.value = !0),
3432
+ onMousedownCapture: R[4] || (R[4] = (z) => _(z))
3433
+ }), qe({
3434
+ chip: s(({ item: z }) => [
3435
+ (j(), H(ee, {
3436
+ key: z.value,
2464
3437
  label: "",
2465
3438
  size: "small",
2466
3439
  class: "d-flex align-middle",
2467
- variant: o(a) ? "tonal" : "text",
2468
- closable: o(a),
2469
- "onClick:close": (Z) => pt(Z, E.value)
3440
+ variant: l(r) ? "tonal" : "text",
3441
+ closable: l(r),
3442
+ "onClick:close": (le) => Ae(le, z.value)
2470
3443
  }, {
2471
- prepend: y(() => {
2472
- var Z;
3444
+ prepend: s(() => {
3445
+ var le;
2473
3446
  return [
2474
- (Z = E.raw) != null && Z.icon ? (V(), R(o(xe), {
3447
+ (le = z.raw) != null && le.icon ? (j(), H(l(B), {
2475
3448
  key: 0,
2476
3449
  class: "me-1",
2477
- name: E.raw.icon
2478
- }, null, 8, ["name"])) : H("", !0)
3450
+ name: z.raw.icon
3451
+ }, null, 8, ["name"])) : G("", !0)
2479
3452
  ];
2480
3453
  }),
2481
- default: y(() => [
2482
- de("span", {
2483
- class: le({ "text-body-1": !o(a) })
2484
- }, Ue(E.title), 3)
3454
+ default: s(() => [
3455
+ ae("span", {
3456
+ class: ce({ "text-body-1": !l(r) })
3457
+ }, K(z.title), 3)
2485
3458
  ]),
2486
3459
  _: 2
2487
3460
  }, 1032, ["variant", "closable", "onClick:close"]))
2488
3461
  ]),
2489
- label: y((E) => [
2490
- I(o(fe), {
2491
- data: E,
2492
- label: o(C)
3462
+ label: s((z) => [
3463
+ i(l(de), {
3464
+ data: z,
3465
+ label: l(L)
2493
3466
  }, null, 8, ["data", "label"])
2494
3467
  ]),
2495
- item: y(({ props: E, item: Z }) => [
2496
- I(Q, ie(se(E)), {
2497
- prepend: y(() => {
2498
- var ge;
3468
+ item: s(({ props: z, item: le }) => [
3469
+ i(ne, he(ge(z)), {
3470
+ prepend: s(() => {
3471
+ var xe;
2499
3472
  return [
2500
- (ge = Z.raw) != null && ge.icon ? (V(), Y("span", wl, [
2501
- I(o(xe), {
3473
+ (xe = le.raw) != null && xe.icon ? (j(), Q("span", ta, [
3474
+ i(l(B), {
2502
3475
  class: "action-icon",
2503
- name: Z.raw.icon
3476
+ name: le.raw.icon
2504
3477
  }, null, 8, ["name"])
2505
- ])) : H("", !0)
3478
+ ])) : G("", !0)
2506
3479
  ];
2507
3480
  }),
2508
3481
  _: 2
2509
3482
  }, 1040)
2510
3483
  ]),
2511
- message: y(({ message: E }) => [
2512
- I(o(oe), {
2513
- message: E,
2514
- errors: o(x)
3484
+ message: s(({ message: z }) => [
3485
+ i(l(ue), {
3486
+ message: z,
3487
+ errors: l($)
2515
3488
  }, null, 8, ["message", "errors"])
2516
3489
  ]),
2517
3490
  _: 2
2518
3491
  }, [
2519
- w.$slots["append-inner"] ? {
3492
+ T.$slots["append-inner"] ? {
2520
3493
  name: "append-inner",
2521
- fn: y((E) => [
2522
- pe(w.$slots, "append-inner", ie(se(E)), void 0, !0)
3494
+ fn: s((z) => [
3495
+ we(T.$slots, "append-inner", he(ge(z)), void 0, !0)
2523
3496
  ]),
2524
3497
  key: "0"
2525
3498
  } : void 0,
2526
- w.$slots["prepend-inner"] ? {
3499
+ T.$slots["prepend-inner"] ? {
2527
3500
  name: "prepend-inner",
2528
- fn: y((E) => [
2529
- pe(w.$slots, "prepend-inner", ie(se(E)), void 0, !0)
3501
+ fn: s((z) => [
3502
+ we(T.$slots, "prepend-inner", he(ge(z)), void 0, !0)
2530
3503
  ]),
2531
3504
  key: "1"
2532
3505
  } : void 0
2533
- ]), 1040, ["modelValue", "class", "items", "closable-chips", "clearable", "multiple", "loading", "aria-describedby", "search"])) : H("", !0);
3506
+ ]), 1040, ["modelValue", "class", "items", "closable-chips", "clearable", "multiple", "loading", "aria-describedby", "search"])) : G("", !0);
2534
3507
  };
2535
3508
  }
2536
- }), Cl = (e, t) => {
2537
- const n = e.__vccOpts || e;
2538
- for (const [l, a] of t)
2539
- n[l] = a;
2540
- return n;
2541
- }, Vl = /* @__PURE__ */ Cl(kl, [["__scopeId", "data-v-7e5aa3b6"]]), jl = /* @__PURE__ */ K({
3509
+ }), la = (e, n) => {
3510
+ const t = e.__vccOpts || e;
3511
+ for (const [a, r] of n)
3512
+ t[a] = r;
3513
+ return t;
3514
+ }, Vt = /* @__PURE__ */ la(na, [["__scopeId", "data-v-7e5aa3b6"]]), Tt = /* @__PURE__ */ Z({
2542
3515
  __name: "df-text-area",
2543
- props: /* @__PURE__ */ ae({
3516
+ props: /* @__PURE__ */ ve({
2544
3517
  rows: {},
2545
3518
  maxRows: {},
2546
3519
  control: {},
@@ -2557,129 +3530,141 @@ const wl = {
2557
3530
  passthroughAttrs: {},
2558
3531
  density: {},
2559
3532
  variant: {}
2560
- }, W(B({}, re), {
3533
+ }, J(U({}, pe), {
2561
3534
  rows: void 0,
2562
3535
  maxRows: void 0
2563
3536
  })),
2564
3537
  emits: ["update:modelValue", "click:clear"],
2565
- setup(e, { emit: t }) {
2566
- const n = e, l = t, { densityClass: a, isRendered: r, label: s, showErrors: c, touched: g, value: i, visibilityClass: f, vuetifyBindings: u } = te(
2567
- n,
2568
- l
2569
- ), { cssClass: C } = Se(n);
2570
- return (x, p) => {
2571
- const k = N("v-textarea");
2572
- return o(r) ? (V(), Y("div", {
3538
+ setup(e, { emit: n }) {
3539
+ const t = e, a = n, { densityClass: r, isRendered: d, label: c, showErrors: g, touched: w, value: v, visibilityClass: f, vuetifyBindings: h } = me(
3540
+ t,
3541
+ a
3542
+ ), { cssClass: L } = Ee(t);
3543
+ return ($, A) => {
3544
+ const V = P("v-textarea");
3545
+ return l(d) ? (j(), Q("div", {
2573
3546
  key: 0,
2574
- class: le(["df-textarea-container", [o(a), o(f)]])
3547
+ class: ce(["df-textarea-container", [l(r), l(f)]])
2575
3548
  }, [
2576
- I(k, z({
2577
- modelValue: o(i),
2578
- "onUpdate:modelValue": p[0] || (p[0] = (D) => ce(i) ? i.value = D : null),
2579
- class: o(C),
3549
+ i(V, X({
3550
+ modelValue: l(v),
3551
+ "onUpdate:modelValue": A[0] || (A[0] = (M) => ke(v) ? v.value = M : null),
3552
+ class: l(L),
2580
3553
  rows: e.rows,
2581
3554
  "auto-grow": (e.maxRows || 0) > 0,
2582
3555
  "max-rows": e.maxRows
2583
- }, o(u), {
2584
- onBlur: p[1] || (p[1] = (D) => g.value = !0)
3556
+ }, l(h), {
3557
+ onBlur: A[1] || (A[1] = (M) => w.value = !0)
2585
3558
  }), {
2586
- label: y((D) => [
2587
- I(o(fe), {
2588
- data: D,
2589
- label: o(s)
3559
+ label: s((M) => [
3560
+ i(l(de), {
3561
+ data: M,
3562
+ label: l(c)
2590
3563
  }, null, 8, ["data", "label"])
2591
3564
  ]),
2592
- message: y(({ message: D }) => [
2593
- I(o(oe), {
2594
- message: D,
2595
- errors: o(c)
3565
+ message: s(({ message: M }) => [
3566
+ i(l(ue), {
3567
+ message: M,
3568
+ errors: l(g)
2596
3569
  }, null, 8, ["message", "errors"])
2597
3570
  ]),
2598
3571
  _: 1
2599
3572
  }, 16, ["modelValue", "class", "rows", "auto-grow", "max-rows"])
2600
- ], 2)) : H("", !0);
3573
+ ], 2)) : G("", !0);
2601
3574
  };
2602
3575
  }
2603
- }), Tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3576
+ }), aa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2604
3577
  __proto__: null,
2605
- DfActions: sl,
2606
- DfCheckbox: ul,
2607
- DfColor: cl,
2608
- DfDateTime: dl,
2609
- DfFile: ml,
2610
- DfInput: fl,
2611
- DfInputHint: oe,
2612
- DfRtfEditor: gl,
2613
- DfSelect: Vl,
2614
- DfTextArea: jl
2615
- }, Symbol.toStringTag, { value: "Module" })), xl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3578
+ DfActions: mt,
3579
+ DfCheckbox: ft,
3580
+ DfColor: vt,
3581
+ DfDateTime: pt,
3582
+ DfFile: bt,
3583
+ DfInput: ht,
3584
+ DfInputHint: ue,
3585
+ DfLabel: de,
3586
+ DfRtfEditor: xt,
3587
+ DfSelect: Vt,
3588
+ DfTextArea: Tt
3589
+ }, Symbol.toStringTag, { value: "Module" })), oa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2616
3590
  __proto__: null,
2617
- VAutocomplete: $n,
2618
- VBtn: Mn,
2619
- VCheckbox: Fn,
2620
- VChip: Rn,
2621
- VCol: zn,
2622
- VColorPicker: Nn,
2623
- VCombobox: Ln,
2624
- VConfirmEdit: Un,
2625
- VDatePicker: On,
2626
- VField: Wn,
2627
- VFileInput: Hn,
2628
- VIcon: Xn,
2629
- VImg: qn,
2630
- VInput: Gn,
2631
- VListItem: Yn,
2632
- VMenu: Qn,
2633
- VNumberInput: Zn,
2634
- VProgressLinear: Jn,
2635
- VRow: Kn,
2636
- VSelect: eo,
2637
- VSwitch: to,
2638
- VTextField: oo,
2639
- VTextarea: no,
2640
- VTimePicker: lo
2641
- }, Symbol.toStringTag, { value: "Module" })), ia = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3591
+ VAutocomplete: bn,
3592
+ VBtn: hn,
3593
+ VCheckbox: gn,
3594
+ VChip: kn,
3595
+ VCol: Tn,
3596
+ VColorPicker: wn,
3597
+ VCombobox: yn,
3598
+ VConfirmEdit: Cn,
3599
+ VDatePicker: An,
3600
+ VField: xn,
3601
+ VFileInput: Vn,
3602
+ VIcon: _n,
3603
+ VImg: Bn,
3604
+ VInput: Ln,
3605
+ VListItem: $n,
3606
+ VMenu: Sn,
3607
+ VNumberInput: Mn,
3608
+ VProgressLinear: Dn,
3609
+ VRow: jn,
3610
+ VSelect: In,
3611
+ VSwitch: Rn,
3612
+ VTextField: Nn,
3613
+ VTextarea: Pn,
3614
+ VTimePicker: zn
3615
+ }, Symbol.toStringTag, { value: "Module" })), Qa = {
3616
+ "df-actions": mt,
3617
+ "df-checkbox": ft,
3618
+ "df-color": vt,
3619
+ "df-date-time": pt,
3620
+ "df-file": bt,
3621
+ "df-input": ht,
3622
+ "df-input-hint": ue,
3623
+ "df-label": de,
3624
+ "df-rtf-editor": xt,
3625
+ "df-select": Vt,
3626
+ "df-text-area": Tt
3627
+ }, Za = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2642
3628
  __proto__: null
2643
- }, Symbol.toStringTag, { value: "Module" })), sa = {
2644
- install: (e, t) => {
2645
- var n, l;
2646
- e.use(bo), e.provide(ft, t != null ? t : {}), (n = t == null ? void 0 : t.registerComponents) != null && n && Object.entries(Tl).map(([a, r]) => e.component(a, r)), (l = t == null ? void 0 : t.registerVuetifyComponents) != null && l && Object.entries(xl).map(([a, r]) => e.component(a, r));
3629
+ }, Symbol.toStringTag, { value: "Module" })), eo = {
3630
+ install: (e, n) => {
3631
+ var t, a;
3632
+ e.provide(dt, n != null ? n : {}), (t = n == null ? void 0 : n.registerComponents) != null && t && Object.entries(aa).map(([r, d]) => e.component(r, d)), (a = n == null ? void 0 : n.registerVuetifyComponents) != null && a && Object.entries(oa).map(([r, d]) => e.component(r, d));
2647
3633
  }
2648
3634
  };
2649
3635
  export {
2650
- Be as Action,
2651
- J as ActionDisplayStyle,
2652
- Jo as DateTimeLocaleConfig,
2653
- sl as DfActions,
2654
- ul as DfCheckbox,
2655
- cl as DfColor,
2656
- dl as DfDateTime,
2657
- ml as DfFile,
2658
- fl as DfInput,
2659
- ia as DfInputComponentProps,
2660
- Tl as DfInputComponents,
2661
- oe as DfInputHint,
2662
- fe as DfLabel,
2663
- gl as DfRtfEditor,
2664
- Vl as DfSelect,
2665
- jl as DfTextArea,
2666
- sa as DynamicFormsInputs,
2667
- He as InputBase,
2668
- el as Label,
2669
- al as ResponsiveActionRenderOptions,
2670
- nl as ResponsiveRenderOptions,
2671
- xl as VuetifyComponents,
2672
- De as ckEditorLanguage,
2673
- re as defaultBaseProps,
3636
+ Re as Action,
3637
+ oe as ActionDisplayStyle,
3638
+ wl as DateTimeLocaleConfig,
3639
+ mt as DfActions,
3640
+ ft as DfCheckbox,
3641
+ vt as DfColor,
3642
+ pt as DfDateTime,
3643
+ bt as DfFile,
3644
+ ht as DfInput,
3645
+ Za as DfInputComponentProps,
3646
+ aa as DfInputComponents,
3647
+ ue as DfInputHint,
3648
+ de as DfLabel,
3649
+ xt as DfRtfEditor,
3650
+ Vt as DfSelect,
3651
+ Tt as DfTextArea,
3652
+ eo as DynamicFormsInputs,
3653
+ Xe as InputBase,
3654
+ Cl as Label,
3655
+ jl as ResponsiveActionRenderOptions,
3656
+ xl as ResponsiveRenderOptions,
3657
+ oa as VuetifyComponents,
3658
+ pe as defaultBaseProps,
2674
3659
  nt as defaultDisplayStyle,
2675
- ol as getBreakpointName,
2676
- vt as getRenderOptionsForBreakpoint,
2677
- ot as responsiveBreakpoints,
2678
- ra as setCkEditorLanguage,
2679
- L as translatableStrings,
2680
- aa as translateStrings,
2681
- ll as useBreakpoint,
2682
- te as useInputBase,
2683
- ft as vuetifyInputsSettingsKey
3660
+ Qa as dfInputComponentsByTag,
3661
+ Vl as getBreakpointName,
3662
+ ct as getRenderOptionsForBreakpoint,
3663
+ lt as responsiveBreakpoints,
3664
+ Ce as translatableStrings,
3665
+ Ja as translateStrings,
3666
+ Tl as useBreakpoint,
3667
+ me as useInputBase,
3668
+ dt as vuetifyInputsSettingsKey
2684
3669
  };
2685
3670
  //# sourceMappingURL=dynamicforms-vuetify-inputs.js.map