@dynamicforms/vuetify-inputs 0.9.2 → 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 It = Object.defineProperty, St = Object.defineProperties;
2
- var Pt = Object.getOwnPropertyDescriptors;
3
- var qe = Object.getOwnPropertySymbols;
4
- var Et = Object.prototype.hasOwnProperty, At = Object.prototype.propertyIsEnumerable;
5
- var Ae = (e, t, n) => t in e ? It(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, x = (e, t) => {
6
- for (var n in t || (t = {}))
7
- Et.call(t, n) && Ae(e, n, t[n]);
8
- if (qe)
9
- for (var n of qe(t))
10
- At.call(t, n) && Ae(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) => St(e, Pt(t));
13
- var ye = (e, t, n) => Ae(e, typeof t != "symbol" ? t + "" : t, n);
14
- var _e = (e, t, n) => new Promise((l, a) => {
15
- var r = (p) => {
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(p));
18
- } catch (i) {
19
- a(i);
17
+ g(t.next(w));
18
+ } catch (v) {
19
+ r(v);
20
20
  }
21
- }, u = (p) => {
21
+ }, c = (w) => {
22
22
  try {
23
- c(n.throw(p));
24
- } catch (i) {
25
- a(i);
23
+ g(t.throw(w));
24
+ } catch (v) {
25
+ r(v);
26
26
  }
27
- }, c = (p) => p.done ? l(p.value) : Promise.resolve(p.value).then(r, u);
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 Ge from "vue";
31
- import { defineComponent as K, useModel as $t, ref as R, watch as de, onMounted as lt, markRaw as Mt, onBeforeUnmount as at, openBlock as V, createBlock as F, resolveDynamicComponent as je, mergeModels as Ye, version as Rt, isRef as me, computed as g, unref as o, resolveComponent as N, createElementBlock as Y, normalizeClass as re, Fragment as Le, createCommentVNode as H, createTextVNode as Ft, toDisplayString as Oe, inject as $e, shallowRef as Lt, toRaw as Qe, nextTick as Ne, createSlots as Ue, withCtx as y, createVNode as I, renderSlot as pe, normalizeProps as ue, guardReactiveProps as ce, createElementVNode as fe, renderList as Nt, mergeProps as z, withModifiers as Ut, mergeDefaults as ie, normalizeStyle as rt, toRefs as Pe, withKeys as Ze, useCssVars as Ot } from "vue";
32
- import { debounce as Wt, isString as ae, isEmpty as Te, isPlainObject as it, isObjectLike as Ht, isBoolean as Be, clone as zt, toNumber as Je, isNaN as et, isArray as tt, castArray as st, first as ut, isEqual as Kt, unionBy as Xt } from "lodash-es";
33
- import ve, { MessagesWidget as qt, MdString as Gt, ValidationErrorRenderContent as Yt, Action as Qt, DisplayMode as Me } from "@dynamicforms/vue-forms";
34
- import { CachedIcon as xe } from "vue-cached-icon";
35
- import Zt from "vue-markdown-render";
36
- import { useDisplay as Jt } from "vuetify";
37
- import { parse as en, format as we } from "date-fns";
38
- import { AccessibilityHelp as tn, Alignment as nn, AutoImage as on, AutoLink as ln, Autosave as an, BalloonToolbar as rn, BlockQuote as sn, Bold as un, CloudServices as cn, Essentials as dn, GeneralHtmlSupport as mn, Heading as fn, HorizontalLine as vn, ImageBlock as pn, ImageCaption as hn, ImageInline as bn, ImageInsertViaUrl as gn, ImageResize as yn, ImageStyle as wn, ImageToolbar as kn, ImageUpload as Cn, Indent as Vn, IndentBlock as jn, Italic as Tn, Link as xn, List as _n, Autoformat as Bn, MediaEmbed as Dn, Paragraph as In, PasteFromMarkdownExperimental as Sn, PasteFromOffice as Pn, SelectAll as En, Style as An, Table as $n, TableCellProperties as Mn, TableColumnResize as Rn, TableProperties as Fn, TableToolbar as Ln, Undo as Nn, TextTransformation as Un, Base64UploadAdapter as On, ClassicEditor as Wn } from "ckeditor5";
39
- import { VAutocomplete as Hn } from "vuetify/components/VAutocomplete";
40
- import { VBtn as zn } from "vuetify/components/VBtn";
41
- import { VCheckbox as Kn } from "vuetify/components/VCheckbox";
42
- import { VChip as Xn } from "vuetify/components/VChip";
43
- import { VCombobox as qn } from "vuetify/components/VCombobox";
44
- import { VColorPicker as Gn } from "vuetify/components/VColorPicker";
45
- import { VConfirmEdit as Yn } from "vuetify/components/VConfirmEdit";
46
- import { VDatePicker as Qn } from "vuetify/components/VDatePicker";
47
- import { VField as Zn } from "vuetify/components/VField";
48
- import { VFileInput as Jn } from "vuetify/components/VFileInput";
49
- import { VCol as eo, VRow as to } from "vuetify/components/VGrid";
50
- import { VIcon as no } from "vuetify/components/VIcon";
51
- import { VImg as oo } from "vuetify/components/VImg";
52
- import { VInput as lo } from "vuetify/components/VInput";
53
- import { VListItem as ao } from "vuetify/components/VList";
54
- import { VMenu as ro } from "vuetify/components/VMenu";
55
- import { VNumberInput as io } from "vuetify/components/VNumberInput";
56
- import { VProgressLinear as so } from "vuetify/components/VProgressLinear";
57
- import { VSelect as uo } from "vuetify/components/VSelect";
58
- import { VSwitch as co } from "vuetify/components/VSwitch";
59
- import { VTextarea as mo } from "vuetify/components/VTextarea";
60
- import { VTextField as fo } from "vuetify/components/VTextField";
61
- import { VTimePicker as vo } from "vuetify/components/VTimePicker";
62
- new Array(256).fill("").map((e, t) => ("0" + t.toString(16)).slice(-2));
63
- function We(e) {
64
- return !!e && /^\d+\.\d+\.\d+/.test(e);
65
- }
66
- function ct(e) {
67
- if (!We(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 He(e) {
77
- return e ? ["nightly", "alpha", "internal", "nightly-", "staging"].some((t) => e.includes(t)) : !1;
78
- }
79
- function po(e) {
80
- return We(e) || He(e);
81
- }
82
- function ho(e, t) {
83
- const n = e.extraPlugins || [];
84
- return W(x({}, e), {
85
- extraPlugins: [
86
- ...n,
87
- ...t.filter((l) => !n.includes(l))
88
- ]
89
- });
90
- }
91
- function bo(e) {
92
- if (He(e))
93
- return 3;
94
- const { major: t } = ct(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 dt() {
105
- const { CKEDITOR_VERSION: e, CKEDITOR: t } = window;
106
- return po(e) ? {
107
- source: t ? "cdn" : "npm",
108
- version: e
109
- } : null;
110
- }
111
- function go() {
112
- const e = dt();
113
- return e ? bo(e.version) : null;
114
- }
115
- function mt(e, t) {
116
- switch (t || (t = go() || 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 yo(e, t) {
127
- return function(l) {
128
- mt(l.config.get("licenseKey")) || l.on("collectUsageData", (a, { setUsageData: r }) => {
129
- r(`integration.${e}`, t);
130
- });
131
- };
132
- }
133
- const wo = yo(
134
- "vue",
135
- {
136
- version: "7.4.0",
137
- frameworkVersion: Rt
138
- }
139
- );
140
- function ko(e) {
141
- return mt(e.licenseKey) ? e : ho(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
- wo
148
- ]);
149
- }
150
- function Co(e, t) {
151
- var n;
152
- if (ft()) {
153
- const l = W(x({}, e), {
154
- roots: W(x({}, e.roots), {
155
- main: W(x(x({}, 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(x({}, e), {
163
- initialData: t
164
- });
165
- }
166
- function Vo(e) {
167
- var t, n;
168
- return ft() ? (n = (t = e.roots) == null ? void 0 : t.main) == null ? void 0 : n.initialData : e.initialData;
169
- }
170
- function ft() {
171
- const e = dt();
172
- return e ? !We(e.version) || He(e.version) || ct(e.version).major >= 48 : !1;
173
- }
174
- const Re = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", jo = 300, To = /* @__PURE__ */ K({
175
- name: "CKEditor",
176
- __name: "ckeditor",
177
- props: /* @__PURE__ */ Ye({
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__ */ Ye(["ready", "destroy", "blur", "focus", "input", "update:modelValue"], ["update:modelValue"]),
188
- setup(e, { expose: t, emit: n }) {
189
- const l = $t(e, "modelValue"), a = e, r = n, u = R(), c = R(), p = R();
190
- t({
191
- instance: c,
192
- lastEditorData: p
193
- }), de(l, (s) => {
194
- c.value && s !== p.value && c.value.data.set(s);
195
- }), de(() => a.disabled, (s) => {
196
- s ? c.value.enableReadOnlyMode(Re) : c.value.disableReadOnlyMode(Re);
197
- });
198
- function i() {
199
- const s = window.CKEDITOR_VERSION;
200
- if (!s)
201
- return console.warn('Cannot find the "CKEDITOR_VERSION" in the "window" scope.');
202
- const [C] = s.split(".").map(Number);
203
- C >= 42 || s.startsWith("0.0.0") || console.warn("The <CKEditor> component requires using CKEditor 5 in version 42+ or nightly build.");
204
- }
205
- function f(s) {
206
- const C = Wt((_) => {
207
- if (a.disableTwoWayDataBinding)
208
- return;
209
- const h = p.value = s.data.get();
210
- r("update:modelValue", h, _, s), r("input", h, _, s);
211
- }, jo, { leading: !0 });
212
- s.model.document.on("change:data", C), s.editing.view.document.on("focus", (_) => {
213
- r("focus", _, s);
214
- }), s.editing.view.document.on("blur", (_) => {
215
- r("blur", _, s);
216
- });
217
- }
218
- return i(), lt(() => {
219
- let s = ko(
220
- Object.assign({}, a.config)
221
- );
222
- l.value && (s = Co(s, l.value)), a.editor.create(u.value, s).then((C) => {
223
- c.value = Mt(C), f(C), l.value !== Vo(s) && C.data.set(l.value), a.disabled && C.enableReadOnlyMode(Re), 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
- }), (s, C) => (V(), F(je(e.tagName), {
230
- ref_key: "element",
231
- ref: u
232
- }, null, 512));
233
- }
234
- });
235
- if (!Ge.version || !Ge.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 xo = {
240
- /**
241
- * Installs the plugin, registering the `<ckeditor>` component.
242
- *
243
- * @param app The application instance.
244
- */
245
- install(e) {
246
- e.component("Ckeditor", To);
247
- }
248
- };
249
- function _o(e) {
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";
33
+ import Wt from "vue-markdown-render";
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 Bo = {
77
+ const Un = {
253
78
  lessThanXSeconds: {
254
79
  present: {
255
80
  one: "manj kot {{count}} sekunda",
@@ -526,7 +351,7 @@ const Bo = {
526
351
  }
527
352
  }
528
353
  };
529
- function Do(e) {
354
+ function Fn(e) {
530
355
  switch (e % 100) {
531
356
  case 1:
532
357
  return "one";
@@ -539,53 +364,53 @@ function Do(e) {
539
364
  return "other";
540
365
  }
541
366
  }
542
- const Io = (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 = Bo[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 u = Do(t);
550
- _o(r) ? l += r[u].replace("{{count}}", String(t)) : l += r[a][u].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 So = {
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
- }, Po = {
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
- }, Eo = {
395
+ }, qn = {
571
396
  full: "{{date}} {{time}}",
572
397
  long: "{{date}} {{time}}",
573
398
  medium: "{{date}} {{time}}",
574
399
  short: "{{date}} {{time}}"
575
- }, Ao = {
576
- date: Fe({
577
- formats: So,
400
+ }, Kn = {
401
+ date: We({
402
+ formats: Wn,
578
403
  defaultWidth: "full"
579
404
  }),
580
- time: Fe({
581
- formats: Po,
405
+ time: We({
406
+ formats: On,
582
407
  defaultWidth: "full"
583
408
  }),
584
- dateTime: Fe({
585
- formats: Eo,
409
+ dateTime: We({
410
+ formats: qn,
586
411
  defaultWidth: "full"
587
412
  })
588
- }, $o = {
413
+ }, Xn = {
589
414
  lastWeek: (e) => {
590
415
  switch (e.getDay()) {
591
416
  case 0:
@@ -614,34 +439,34 @@ const So = {
614
439
  }
615
440
  },
616
441
  other: "P"
617
- }, Mo = (e, t, n, l) => {
618
- const a = $o[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 u = e.defaultFormattingWidth || e.defaultWidth, c = n != null && n.width ? String(n.width) : u;
627
- a = e.formattingValues[c] || e.formattingValues[u];
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 u = e.defaultWidth, c = n != null && n.width ? String(n.width) : e.defaultWidth;
630
- a = e.values[c] || e.values[u];
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 Ro = {
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
- }, Fo = {
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
- }, Lo = {
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 Ro = {
671
496
  "november",
672
497
  "december"
673
498
  ]
674
- }, No = {
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 Ro = {
684
509
  "petek",
685
510
  "sobota"
686
511
  ]
687
- }, Uo = {
512
+ }, el = {
688
513
  narrow: {
689
514
  am: "d",
690
515
  pm: "p",
@@ -715,7 +540,7 @@ const Ro = {
715
540
  evening: "večer",
716
541
  night: "noč"
717
542
  }
718
- }, Oo = {
543
+ }, tl = {
719
544
  narrow: {
720
545
  am: "d",
721
546
  pm: "p",
@@ -746,88 +571,88 @@ const Ro = {
746
571
  evening: "zvečer",
747
572
  night: "ponoči"
748
573
  }
749
- }, Wo = (e, t) => Number(e) + ".", Ho = {
750
- ordinalNumber: Wo,
751
- era: ke({
752
- values: Ro,
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: Fo,
580
+ quarter: _e({
581
+ values: Jn,
757
582
  defaultWidth: "wide",
758
583
  argumentCallback: (e) => e - 1
759
584
  }),
760
- month: ke({
761
- values: Lo,
585
+ month: _e({
586
+ values: Qn,
762
587
  defaultWidth: "wide"
763
588
  }),
764
- day: ke({
765
- values: No,
589
+ day: _e({
590
+ values: Zn,
766
591
  defaultWidth: "wide"
767
592
  }),
768
- dayPeriod: ke({
769
- values: Uo,
593
+ dayPeriod: _e({
594
+ values: el,
770
595
  defaultWidth: "wide",
771
- formattingValues: Oo,
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 u = r[0], c = l && e.parsePatterns[l] || e.parsePatterns[e.defaultParseWidth], p = Array.isArray(c) ? Ko(c, (s) => s.test(u)) : (
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
- zo(c, (s) => s.test(u))
607
+ al(g, (h) => h.test(c))
783
608
  );
784
- let i;
785
- i = e.valueCallback ? e.valueCallback(p) : p, 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(u.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 zo(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 Ko(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 Xo(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 u = e.valueCallback ? e.valueCallback(r[0]) : r[0];
810
- u = n.valueCallback ? n.valueCallback(u) : u;
811
- const c = t.slice(a.length);
812
- return { value: u, 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 qo = /^(\d+)\./i, Go = /\d+/i, Yo = {
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
- }, Qo = {
643
+ }, dl = {
819
644
  any: [/^pr/i, /^(po|na[sš]em)/i]
820
- }, Zo = {
645
+ }, cl = {
821
646
  narrow: /^[1234]/i,
822
647
  abbreviated: /^[1234]\.\s?[čc]et\.?/i,
823
648
  wide: /^[1234]\. [čc]etrtletje/i
824
- }, Jo = {
649
+ }, ml = {
825
650
  any: [/1/i, /2/i, /3/i, /4/i]
826
- }, el = {
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
- }, tl = {
655
+ }, vl = {
831
656
  narrow: [
832
657
  /^j/i,
833
658
  /^f/i,
@@ -870,18 +695,18 @@ const qo = /^(\d+)\./i, Go = /\d+/i, Yo = {
870
695
  /^n/i,
871
696
  /^d/i
872
697
  ]
873
- }, nl = {
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
- }, ol = {
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
- }, ll = {
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
- }, al = {
709
+ }, gl = {
885
710
  narrow: {
886
711
  am: /^d/i,
887
712
  pm: /^p/i,
@@ -902,60 +727,60 @@ const qo = /^(\d+)\./i, Go = /\d+/i, Yo = {
902
727
  evening: /^z?ve/i,
903
728
  night: /(po)?no/i
904
729
  }
905
- }, rl = {
906
- ordinalNumber: Xo({
907
- matchPattern: qo,
908
- parsePattern: Go,
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: Yo,
736
+ era: Be({
737
+ matchPatterns: ul,
913
738
  defaultMatchWidth: "wide",
914
- parsePatterns: Qo,
739
+ parsePatterns: dl,
915
740
  defaultParseWidth: "any"
916
741
  }),
917
- quarter: Ce({
918
- matchPatterns: Zo,
742
+ quarter: Be({
743
+ matchPatterns: cl,
919
744
  defaultMatchWidth: "wide",
920
- parsePatterns: Jo,
745
+ parsePatterns: ml,
921
746
  defaultParseWidth: "any",
922
747
  valueCallback: (e) => e + 1
923
748
  }),
924
- month: Ce({
925
- matchPatterns: el,
749
+ month: Be({
750
+ matchPatterns: fl,
926
751
  defaultMatchWidth: "wide",
927
- parsePatterns: tl,
752
+ parsePatterns: vl,
928
753
  defaultParseWidth: "wide"
929
754
  }),
930
- day: Ce({
931
- matchPatterns: nl,
755
+ day: Be({
756
+ matchPatterns: pl,
932
757
  defaultMatchWidth: "wide",
933
- parsePatterns: ol,
758
+ parsePatterns: bl,
934
759
  defaultParseWidth: "any"
935
760
  }),
936
- dayPeriod: Ce({
937
- matchPatterns: ll,
761
+ dayPeriod: Be({
762
+ matchPatterns: hl,
938
763
  defaultMatchWidth: "any",
939
- parsePatterns: al,
764
+ parsePatterns: gl,
940
765
  defaultParseWidth: "any"
941
766
  })
942
- }, il = {
767
+ }, yl = {
943
768
  code: "sl",
944
- formatDistance: Io,
945
- formatLong: Ao,
946
- formatRelative: Mo,
947
- localize: Ho,
948
- match: rl,
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
- }, sl = {
954
- dateTimeLocale: R(il),
778
+ }, wl = {
779
+ dateTimeLocale: F(yl),
955
780
  setDateTimeLocale(e) {
956
- me(e) ? this.dateTimeLocale = e : this.dateTimeLocale.value = e;
781
+ ke(e) ? this.dateTimeLocale = e : this.dateTimeLocale.value = e;
957
782
  }
958
- }, te = /* @__PURE__ */ K({
783
+ }, ue = /* @__PURE__ */ Z({
959
784
  __name: "df-input-hint",
960
785
  props: {
961
786
  errors: { default: "" },
@@ -964,13 +789,13 @@ const qo = /^(\d+)\./i, Go = /\d+/i, Yo = {
964
789
  messageClasses: { default: "" }
965
790
  },
966
791
  setup(e) {
967
- const t = e, n = g(() => t.errors ? typeof t.errors == "string" ? t.errors.trim().length > 0 : t.errors.length > 0 : !1), l = g(() => n.value ? t.errors : t.message), a = g(() => n.value ? t.errorClasses : t.messageClasses);
968
- return (r, u) => (V(), F(o(qt), {
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
- }), ne = /* @__PURE__ */ K({
798
+ }), de = /* @__PURE__ */ Z({
974
799
  __name: "df-label",
975
800
  props: {
976
801
  data: {},
@@ -978,146 +803,146 @@ const qo = /^(\d+)\./i, Go = /\d+/i, Yo = {
978
803
  allowWrap: { type: Boolean }
979
804
  },
980
805
  setup(e) {
981
- const t = e, n = g(() => 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: re(["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(Le, { key: 0 }, [
988
- e.label.iconComponent === "v-icon" ? (V(), F(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(), F(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(), F(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(Gt) ? (V(), F(o(Zt), {
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(Le, { key: 2 }, [
1008
- Ft(Oe(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
- }), vt = /* @__PURE__ */ Symbol("vuetifyInputsSettingsKey");
1014
- class ul {
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 se = { enabled: void 0, clearable: !0 };
1023
- function oe(e, t) {
1024
- const n = $e(vt, {}), l = $e("field-density", null), a = $e("field-variant", null), r = R(null), u = Lt(null), c = g({
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 u.value ? u.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(b) {
853
+ set(m) {
1029
854
  try {
1030
- e.control && (e.control.value = b);
855
+ e.control && (e.control.value = m);
1031
856
  } finally {
1032
- e.control && !Object.is(Qe(e.control.value), Qe(b)) && (u.value = { value: b }, Ne(() => {
1033
- u.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 = b), t("update:modelValue", e.control ? e.control.value : b);
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 p = g({
866
+ const w = C({
1042
867
  get() {
1043
868
  return e.control.touched;
1044
869
  },
1045
- set(b) {
1046
- e.control.touched = b;
870
+ set(m) {
871
+ e.control.touched = m;
1047
872
  }
1048
- }), i = e.control ? p : R(!1), f = g(() => e.control ? e.control.valid : !0), s = g(
1049
- () => e.control ? e.control.errors : (e.errors || []).map((b) => new Yt(b))
1050
- ), C = g(() => i.value && s.value.length > 0 ? " " : void 0), _ = g(() => i.value ? s.value : void 0), h = g(() => e.control ? e.control.effectiveEnabled : e.enabled !== !1), k = g(() => e.control ? e.control.visibility : e.visibility == null ? ve.DisplayMode.FULL : ve.DisplayMode.fromAny(e.visibility)), D = g(() => k.value !== ve.DisplayMode.SUPPRESS), S = g(() => ({
1051
- "d-none": k.value === ve.DisplayMode.HIDDEN,
1052
- invisible: k.value === ve.DisplayMode.INVISIBLE
1053
- })), d = g(() => {
1054
- var b, j;
1055
- return (j = (b = e.control) == null ? void 0 : b.extra) != null ? j : {};
1056
- }), P = g(() => {
1057
- var j;
1058
- const b = (j = e.label) != null ? j : d.value.label;
1059
- return ae(b || "") ? new ul(b || "") : b;
1060
- }), U = g(() => {
1061
- var b, j;
1062
- return (j = (b = e.placeholder) != null ? b : d.value.placeholder) != null ? j : "";
1063
- }), A = g(() => {
1064
- var b, j;
1065
- return (j = (b = e.helpText) != null ? b : d.value.helpText) != null ? j : "";
1066
- }), O = g(() => {
1067
- var b, j;
1068
- return (j = (b = e.hint) != null ? b : d.value.hint) != null ? j : "";
1069
- }), $ = g(() => {
1070
- var b, j;
1071
- return (j = (b = e.cssClass) != null ? b : d.value.cssClass) != null ? j : "";
1072
- }), v = g(
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 b, j, X, G;
1075
- return (G = (X = (j = (b = e.density) != null ? b : 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 = g(() => v.value === "inline" ? "default" : v.value), M = g(
902
+ ), o = C(() => y.value === "inline" ? "default" : y.value), u = C(
1078
903
  () => {
1079
- var b, j, X, G;
1080
- return (G = (X = (j = (b = e.variant) != null ? b : 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: h,
1087
- errors: s,
1088
- showErrors: _,
1089
- visibility: k,
1090
- isRendered: D,
1091
- visibilityClass: S,
1092
- label: P,
1093
- touched: i,
1094
- density: v,
1095
- densityClass: g(() => `df-density-${v.value}`),
1096
- vuetifyBindings: g(() => {
1097
- var b;
1098
- return x({
1099
- name: (b = e.control) == null ? void 0 : b.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: !h.value,
1107
- disabled: !h.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 cl = { class: "d-flex w-100 df-style-resetting df-sub-field" }, ze = /* @__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 cl = { class: "d-flex w-100 df-style-resetting df-sub-field" }, ze = /* @_
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: u, touched: c, value: p, visibilityClass: i, vuetifyBindings: f } = oe(n, l), s = g(() => !!(o(n.clearable) && o(p))), C = R(!1);
1142
- function _(h) {
1143
- C.value = h, h || (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 (h, k) => {
1146
- const D = N("v-field"), S = N("v-input");
1147
- return o(a) ? (V(), F(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: re([e.cssClass, o(i)])
1156
- }, Ue({
1157
- message: y(({ message: d }) => [
1158
- I(te, {
1159
- message: d,
1160
- errors: o(u)
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: s.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(p) || !!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) => _(d))
1176
- }, Ue({
1177
- label: y((d) => [
1178
- I(ne, {
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
- fe("div", cl, [
1185
- pe(h.$slots, "default", ue(ce(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(h.$slots, "loader", ue(ce(d)))
1013
+ loader: s((b) => [
1014
+ we(A.$slots, "loader", he(ge(b)))
1190
1015
  ]),
1191
1016
  _: 2
1192
1017
  }, [
1193
- h.$slots["prepend-inner"] ? {
1018
+ A.$slots["prepend-inner"] ? {
1194
1019
  name: "prepend-inner",
1195
- fn: y((d) => [
1196
- pe(h.$slots, "prepend-inner", ue(ce(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 cl = { class: "d-flex w-100 df-style-resetting df-sub-field" }, ze = /* @_
1201
1026
  ]),
1202
1027
  _: 2
1203
1028
  }, [
1204
- h.$slots.prepend ? {
1029
+ A.$slots.prepend ? {
1205
1030
  name: "prepend",
1206
- fn: y((d) => [
1207
- pe(h.$slots, "prepend", ue(ce(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,95 +1056,125 @@ const cl = { class: "d-flex w-100 df-style-resetting df-sub-field" }, ze = /* @_
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
- Ie.language = e, Ie.translations = t;
1244
- }
1245
- const Ie = {
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 dl {
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
- var l, a;
1279
- const n = (l = this.cleanBreakpoint(this._value)) != null ? l : {};
1280
- for (const r of ot) {
1281
- const u = (a = this._value[r]) != null ? a : {};
1282
- for (const c of Object.keys(u)) {
1283
- const p = u[c];
1284
- p != null && (it(p) ? n[c] = x(x({}, n[c]), p) : n[c] = p);
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);
1285
1140
  }
1286
- if (r === t) break;
1141
+ if (d === n) break;
1287
1142
  }
1288
- return n;
1143
+ return t;
1289
1144
  }
1290
1145
  }
1291
- function ml(e) {
1146
+ function Vl(e) {
1292
1147
  return e.xlAndUp.value ? "xl" : e.lgAndUp.value ? "lg" : e.mdAndUp.value ? "md" : e.smAndUp.value ? "sm" : "xs";
1293
1148
  }
1294
- function fl() {
1295
- const e = Jt();
1296
- return g(() => ml(e));
1149
+ function Tl() {
1150
+ const e = Yt();
1151
+ return C(() => Vl(e));
1297
1152
  }
1298
- class vl extends dl {
1299
- cleanBreakpoint(t, n = !1) {
1300
- if ((!t || !Ht(t)) && !n) return null;
1301
- const l = {};
1302
- return n && (l.renderAs = J.BUTTON, l.showLabel = !0, l.showIcon = !0), t && (t.renderAs != null && (l.renderAs = J.fromAny(t.renderAs)), ae(t.label) && (l.label = t.label), ae(t.icon) && (l.icon = t.icon), Be(t.showLabel) && (l.showLabel = t.showLabel), Be(t.showIcon) && (l.showIcon = t.showIcon), ae(t.name) && (l.name = t.name), Be(t.defaultConfirm) && (l.defaultConfirm = t.defaultConfirm), Be(t.defaultReject) && (l.defaultReject = t.defaultReject), it(t.passthroughAttrs) && (l.passthroughAttrs = x({}, t.passthroughAttrs))), 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;
1303
1158
  }
1304
1159
  }
1305
- function pt(e, t) {
1306
- const l = new vl(e).getOptionsForBreakpoint(t);
1160
+ function ct(e, n) {
1161
+ const a = new jl(e).getOptionsForBreakpoint(n);
1307
1162
  return {
1308
- name: l.name,
1309
- label: l.showLabel ? l.label : void 0,
1310
- icon: l.showIcon ? l.icon : void 0,
1311
- renderAs: l.renderAs,
1312
- showLabel: ae(l.label) && !Te(l.label) ? l.showLabel : !1,
1313
- showIcon: ae(l.icon) && !Te(l.icon) ? l.showIcon : !1,
1314
- defaultConfirm: l.defaultConfirm,
1315
- defaultReject: l.defaultReject,
1316
- passthroughAttrs: l.passthroughAttrs
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
1317
1172
  };
1318
1173
  }
1319
- class De extends Qt {
1174
+ class Re extends Ht {
1320
1175
  /** @see getRenderOptionsForBreakpoint, which answers the same for the value of any `Action` */
1321
- getBreakpointValue(t) {
1322
- return g(() => pt(this.value, t.value));
1176
+ getBreakpointValue(n) {
1177
+ return C(() => ct(this.value, n.value));
1323
1178
  }
1324
1179
  /** @see ActionRenderOptions.name */
1325
1180
  get name() {
@@ -1334,7 +1189,7 @@ class De extends Qt {
1334
1189
  }
1335
1190
  /** @see ActionRenderOptions.showLabel */
1336
1191
  get showLabel() {
1337
- return ae(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;
1338
1193
  }
1339
1194
  /**
1340
1195
  * The icon as this action renders it: the name where {@link ActionRenderOptions.showIcon} states it is shown,
@@ -1345,7 +1200,7 @@ class De extends Qt {
1345
1200
  }
1346
1201
  /** @see ActionRenderOptions.showIcon */
1347
1202
  get showIcon() {
1348
- return ae(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;
1349
1204
  }
1350
1205
  /** @see ActionRenderOptions.renderAs */
1351
1206
  get renderAs() {
@@ -1363,56 +1218,56 @@ class De extends Qt {
1363
1218
  get passthroughAttrs() {
1364
1219
  return this.value.passthroughAttrs;
1365
1220
  }
1366
- static closeAction(t) {
1367
- var l;
1368
- const n = W(x({}, t != null ? t : {}), {
1221
+ static closeAction(n) {
1222
+ var a;
1223
+ const t = J(U({}, n != null ? n : {}), {
1369
1224
  // any properties in data should overwrite properties in the constant
1370
1225
  value: {
1371
1226
  name: "close",
1372
- label: L.Close,
1227
+ label: Ce.Close,
1373
1228
  icon: "ion-close-outline",
1374
- renderAs: J.BUTTON,
1229
+ renderAs: oe.BUTTON,
1375
1230
  showLabel: !0,
1376
1231
  showIcon: !0
1377
1232
  }
1378
1233
  });
1379
- return n.value = x(x({}, n.value), (l = t == null ? void 0 : t.value) != null ? l : {}), new De(n);
1234
+ return t.value = U(U({}, t.value), (a = n == null ? void 0 : n.value) != null ? a : {}), new Re(t);
1380
1235
  }
1381
- static yesAction(t) {
1382
- var l;
1383
- const n = W(x({}, t != null ? t : {}), {
1236
+ static yesAction(n) {
1237
+ var a;
1238
+ const t = J(U({}, n != null ? n : {}), {
1384
1239
  // any properties in data should overwrite properties in the constant
1385
1240
  value: {
1386
1241
  name: "yes",
1387
- label: L.Yes,
1242
+ label: Ce.Yes,
1388
1243
  icon: "ion-thumbs-up-outline",
1389
- renderAs: J.BUTTON,
1244
+ renderAs: oe.BUTTON,
1390
1245
  showLabel: !0,
1391
1246
  showIcon: !0
1392
1247
  }
1393
1248
  });
1394
- return n.value = x(x({}, n.value), (l = t == null ? void 0 : t.value) != null ? l : {}), new De(n);
1249
+ return t.value = U(U({}, t.value), (a = n == null ? void 0 : n.value) != null ? a : {}), new Re(t);
1395
1250
  }
1396
- static noAction(t) {
1397
- var l;
1398
- const n = W(x({}, t != null ? t : {}), {
1251
+ static noAction(n) {
1252
+ var a;
1253
+ const t = J(U({}, n != null ? n : {}), {
1399
1254
  // any properties in data should overwrite properties in the constant
1400
1255
  value: {
1401
1256
  name: "no",
1402
- label: L.No,
1257
+ label: Ce.No,
1403
1258
  icon: "ion-thumbs-down-outline",
1404
- renderAs: J.BUTTON,
1259
+ renderAs: oe.BUTTON,
1405
1260
  showLabel: !0,
1406
1261
  showIcon: !0
1407
1262
  }
1408
1263
  });
1409
- return n.value = x(x({}, n.value), (l = t == null ? void 0 : t.value) != null ? l : {}), new De(n);
1264
+ return t.value = U(U({}, t.value), (a = n == null ? void 0 : n.value) != null ? a : {}), new Re(t);
1410
1265
  }
1411
1266
  }
1412
- const pl = {
1267
+ const _l = {
1413
1268
  key: 1,
1414
1269
  style: { width: "0.5rem" }
1415
- }, hl = { key: 2 }, ht = /* @__PURE__ */ K({
1270
+ }, Bl = { key: 2 }, mt = /* @__PURE__ */ Z({
1416
1271
  __name: "df-actions",
1417
1272
  props: {
1418
1273
  actions: {},
@@ -1420,55 +1275,55 @@ const pl = {
1420
1275
  showAsGroup: { default: "no" }
1421
1276
  },
1422
1277
  setup(e) {
1423
- const t = e, n = fl(), l = g(() => o(t.actions).filter((u) => u.visibility !== Me.SUPPRESS)), a = g(
1424
- () => l.value.map((u) => x({
1425
- action: u
1426
- }, pt(u.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)))
1427
1282
  );
1428
- function r(u) {
1429
- if (u.defaultConfirm) return "primary";
1430
- if (u.defaultReject) return "secondary";
1283
+ function d(c) {
1284
+ if (c.defaultConfirm) return "primary";
1285
+ if (c.defaultReject) return "secondary";
1431
1286
  }
1432
- return (u, c) => {
1433
- const p = N("v-btn");
1434
- 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", {
1435
1290
  key: 0,
1436
- class: re(["text-end df-actions", {
1291
+ class: ce(["text-end df-actions", {
1437
1292
  "button-group": e.showAsGroup === "grouped" || e.showAsGroup === "grouped-no-borders",
1438
1293
  "with-border": e.showAsGroup === "grouped"
1439
1294
  }])
1440
1295
  }, [
1441
- (V(!0), Y(Le, null, Nt(a.value, (i, f) => (V(), F(p, z({
1296
+ (j(!0), Q(Me, null, Ke(r.value, (v, f) => (j(), H(w, X({
1442
1297
  key: f,
1443
- variant: i.renderAs === o(J).BUTTON ? "tonal" : "text",
1444
- color: r(i),
1445
- disabled: !i.action.effectiveEnabled || i.action.busy,
1446
- 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,
1447
1302
  elevation: 0,
1448
1303
  size: e.buttonSize,
1449
1304
  class: {
1450
- "d-none": i.action.visibility === o(Me).HIDDEN,
1451
- invisible: i.action.visibility === o(Me).INVISIBLE
1305
+ "d-none": v.action.visibility === l(He).HIDDEN,
1306
+ invisible: v.action.visibility === l(He).INVISIBLE
1452
1307
  }
1453
- }, { ref_for: !0 }, i.passthroughAttrs, {
1454
- onClick: Ut((s) => i.action.execute(s), ["stop"])
1308
+ }, { ref_for: !0 }, v.passthroughAttrs, {
1309
+ onClick: Pt((h) => v.action.execute(h), ["stop"])
1455
1310
  }), {
1456
- default: y(() => [
1457
- i.icon ? (V(), F(o(xe), {
1311
+ default: s(() => [
1312
+ v.icon ? (j(), H(l(B), {
1458
1313
  key: 0,
1459
- name: i.icon
1460
- }, null, 8, ["name"])) : H("", !0),
1461
- i.icon && i.label ? (V(), Y("span", pl)) : H("", !0),
1462
- i.label ? (V(), Y("span", hl, Oe(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)
1463
1318
  ]),
1464
1319
  _: 2
1465
1320
  }, 1040, ["variant", "color", "disabled", "loading", "size", "class", "onClick"]))), 128))
1466
- ], 2)) : H("", !0);
1321
+ ], 2)) : G("", !0);
1467
1322
  };
1468
1323
  }
1469
- }), bt = /* @__PURE__ */ K({
1324
+ }), ft = /* @__PURE__ */ Z({
1470
1325
  __name: "df-checkbox",
1471
- props: /* @__PURE__ */ ie({
1326
+ props: /* @__PURE__ */ ve({
1472
1327
  allowNull: { type: Boolean },
1473
1328
  control: {},
1474
1329
  modelValue: {},
@@ -1484,58 +1339,58 @@ const pl = {
1484
1339
  passthroughAttrs: {},
1485
1340
  density: {},
1486
1341
  variant: {}
1487
- }, W(x({}, se), { allowNull: !1 })),
1342
+ }, J(U({}, pe), { allowNull: !1 })),
1488
1343
  emits: ["update:modelValue", "click:clear"],
1489
- setup(e, { emit: t }) {
1490
- const n = e, l = t, { densityClass: a, isRendered: r, label: u, showErrors: c, touched: p, value: i, visibilityClass: f, vuetifyBindings: s } = oe(
1491
- n,
1492
- l
1493
- ), C = g(() => n.allowNull && i.value == null), _ = g({
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({
1494
1349
  get() {
1495
- return i.value;
1350
+ return v.value;
1496
1351
  },
1497
1352
  set() {
1498
1353
  }
1499
1354
  });
1500
- function h() {
1501
- const k = zt(i.value);
1502
- 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;
1503
1358
  }
1504
- return (k, D) => {
1505
- const S = N("v-checkbox");
1506
- return o(r) ? (V(), F(S, z({
1359
+ return (V, M) => {
1360
+ const I = P("v-checkbox");
1361
+ return l(d) ? (j(), H(I, X({
1507
1362
  key: 0,
1508
- modelValue: _.value,
1509
- "onUpdate:modelValue": D[0] || (D[0] = (d) => _.value = d),
1363
+ modelValue: $.value,
1364
+ "onUpdate:modelValue": M[0] || (M[0] = (b) => $.value = b),
1510
1365
  density: "compact",
1511
- class: [o(a), o(f)],
1512
- indeterminate: C.value,
1366
+ class: [l(r), l(f)],
1367
+ indeterminate: L.value,
1513
1368
  "false-value": !1,
1514
1369
  "true-value": !0
1515
- }, o(s), {
1516
- onChange: h,
1517
- onBlur: D[1] || (D[1] = (d) => p.value = !0)
1370
+ }, l(h), {
1371
+ onChange: A,
1372
+ onBlur: M[1] || (M[1] = (b) => w.value = !0)
1518
1373
  }), {
1519
- label: y((d) => [
1520
- I(o(ne), {
1374
+ label: s((b) => [
1375
+ i(l(de), {
1521
1376
  "allow-wrap": !0,
1522
- data: d,
1523
- label: o(u)
1377
+ data: b,
1378
+ label: l(c)
1524
1379
  }, null, 8, ["data", "label"])
1525
1380
  ]),
1526
- message: y(({ message: d }) => [
1527
- I(o(te), {
1528
- message: d,
1529
- errors: o(c)
1381
+ message: s(({ message: b }) => [
1382
+ i(l(ue), {
1383
+ message: b,
1384
+ errors: l(g)
1530
1385
  }, null, 8, ["message", "errors"])
1531
1386
  ]),
1532
1387
  _: 1
1533
- }, 16, ["modelValue", "class", "indeterminate"])) : H("", !0);
1388
+ }, 16, ["modelValue", "class", "indeterminate"])) : G("", !0);
1534
1389
  };
1535
1390
  }
1536
- }), gt = /* @__PURE__ */ K({
1391
+ }), vt = /* @__PURE__ */ Z({
1537
1392
  __name: "df-color",
1538
- props: /* @__PURE__ */ ie({
1393
+ props: /* @__PURE__ */ ve({
1539
1394
  allowNull: { type: Boolean },
1540
1395
  control: {},
1541
1396
  modelValue: {},
@@ -1551,56 +1406,56 @@ const pl = {
1551
1406
  passthroughAttrs: {},
1552
1407
  density: {},
1553
1408
  variant: {}
1554
- }, W(x({}, se), { allowNull: !1 })),
1409
+ }, J(U({}, pe), { allowNull: !1 })),
1555
1410
  emits: ["update:modelValue", "click:clear"],
1556
- setup(e, { emit: t }) {
1557
- const n = e, l = t, { densityClass: a, isRendered: r, label: u, showErrors: c, touched: p, value: i, visibilityClass: f, vuetifyBindings: s } = oe(
1558
- n,
1559
- l
1560
- ), C = R(!1), _ = g(() => [
1561
- (h) => n.control || !h && n.allowNull || /^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$/.test(h) ? !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."
1562
1417
  ]);
1563
- return (h, k) => {
1564
- const D = N("v-color-picker"), S = N("v-menu"), d = N("v-text-field");
1565
- return o(r) ? (V(), F(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({
1566
1421
  key: 0,
1567
- modelValue: o(i),
1568
- "onUpdate:modelValue": k[2] || (k[2] = (P) => me(i) ? i.value = P : null),
1569
- 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)],
1570
1425
  clearable: e.allowNull,
1571
1426
  type: "text",
1572
- rules: _.value
1573
- }, o(s), {
1574
- onBlur: k[3] || (k[3] = (P) => p.value = !0)
1427
+ rules: $.value
1428
+ }, l(h), {
1429
+ onBlur: V[3] || (V[3] = (D) => w.value = !0)
1575
1430
  }), {
1576
- label: y((P) => [
1577
- I(o(ne), {
1578
- data: P,
1579
- label: o(u)
1431
+ label: s((D) => [
1432
+ i(l(de), {
1433
+ data: D,
1434
+ label: l(c)
1580
1435
  }, null, 8, ["data", "label"])
1581
1436
  ]),
1582
- message: y(({ message: P }) => [
1583
- I(o(te), {
1584
- message: P,
1585
- errors: o(c)
1437
+ message: s(({ message: D }) => [
1438
+ i(l(ue), {
1439
+ message: D,
1440
+ errors: l(g)
1586
1441
  }, null, 8, ["message", "errors"])
1587
1442
  ]),
1588
- "prepend-inner": y(() => [
1589
- fe("div", {
1590
- 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) }])
1591
1446
  }, null, 4)
1592
1447
  ]),
1593
- default: y(() => [
1594
- I(S, {
1595
- modelValue: C.value,
1596
- "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),
1597
1452
  "close-on-content-click": !1,
1598
1453
  activator: "parent"
1599
1454
  }, {
1600
- default: y(() => [
1601
- I(D, {
1602
- modelValue: o(i),
1603
- "onUpdate:modelValue": k[0] || (k[0] = (P) => me(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),
1604
1459
  mode: "hexa"
1605
1460
  }, null, 8, ["modelValue"])
1606
1461
  ]),
@@ -1608,12 +1463,12 @@ const pl = {
1608
1463
  }, 8, ["modelValue"])
1609
1464
  ]),
1610
1465
  _: 1
1611
- }, 16, ["modelValue", "class", "clearable", "rules"])) : H("", !0);
1466
+ }, 16, ["modelValue", "class", "clearable", "rules"])) : G("", !0);
1612
1467
  };
1613
1468
  }
1614
- }), yt = /* @__PURE__ */ K({
1469
+ }), pt = /* @__PURE__ */ Z({
1615
1470
  __name: "df-datetime",
1616
- props: /* @__PURE__ */ ie({
1471
+ props: /* @__PURE__ */ ve({
1617
1472
  inputType: {},
1618
1473
  displayFormatDate: {},
1619
1474
  displayFormatTime: {},
@@ -1632,157 +1487,157 @@ const pl = {
1632
1487
  passthroughAttrs: {},
1633
1488
  density: {},
1634
1489
  variant: {}
1635
- }, W(x({}, se), {
1490
+ }, J(U({}, pe), {
1636
1491
  inputType: "datetime",
1637
1492
  displayFormatDate: "P",
1638
1493
  displayFormatTime: "p"
1639
1494
  })),
1640
1495
  emits: ["update:modelValue", "click:clear"],
1641
- setup(e, { emit: t }) {
1642
- const n = e, l = t, a = g(() => {
1643
- var v;
1644
- return (v = n.locale) != null ? v : o(sl.dateTimeLocale);
1645
- }), r = g(() => {
1646
- var v, m;
1647
- return (m = (v = a.value.options) == null ? void 0 : v.weekStartsOn) != null ? m : 1;
1648
- }), { density: u, densityClass: c, touched: p, value: i, vuetifyBindings: f } = oe(n, l), { inputType: s, displayFormatDate: C, displayFormatTime: _ } = Pe(n), h = R(""), k = g({
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({
1649
1504
  get() {
1650
- return o(h) === "date";
1505
+ return l(A) === "date";
1651
1506
  },
1652
- set(v) {
1653
- h.value = v ? "date" : "";
1507
+ set(y) {
1508
+ A.value = y ? "date" : "";
1654
1509
  }
1655
- }), D = g({
1510
+ }), M = C({
1656
1511
  get() {
1657
- return o(h) === "time";
1512
+ return l(A) === "time";
1658
1513
  },
1659
- set(v) {
1660
- h.value = v ? "time" : "";
1514
+ set(y) {
1515
+ A.value = y ? "time" : "";
1661
1516
  }
1662
- }), S = (v) => `${we(v, "yyyy-MM-dd")}T${we(v, "HH:mm")}:00`, d = R(null);
1663
- function P(v, m) {
1664
- if (v == null)
1665
- d.value = null;
1666
- else if (m === -1)
1667
- if (o(s) === "time")
1668
- 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);
1669
1524
  else {
1670
- const M = S(new Date(v));
1671
- P(M, 0), P(M, 1);
1525
+ const u = I(new Date(y));
1526
+ D(u, 0), D(u, 1);
1672
1527
  }
1673
1528
  else {
1674
- d.value == null && (d.value = S(/* @__PURE__ */ new Date()));
1675
- const M = d.value.split(/[TZ]/g), b = v.split(/[TZ]/g);
1676
- M[m] = b[m], d.value = S(/* @__PURE__ */ new Date(`${M[0]}T${M[1].split(".")[0]}`)), o(s) === "date" ? i.value = M[0] : o(s) === "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");
1677
1532
  }
1678
1533
  }
1679
- de(i, (v) => P(v, -1), { immediate: !0 });
1680
- const U = g({
1534
+ se(v, (y) => D(y, -1), { immediate: !0 });
1535
+ const O = C({
1681
1536
  get() {
1682
- const v = o(d);
1683
- if (v == null) return null;
1684
- const m = new Date(v);
1685
- 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;
1686
1541
  },
1687
- set(v) {
1688
- P(S(v), 0);
1542
+ set(y) {
1543
+ D(I(y), 0);
1689
1544
  }
1690
- }), A = g({
1545
+ }), E = C({
1691
1546
  get() {
1692
- const v = o(d);
1693
- 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];
1694
1549
  },
1695
- set(v) {
1696
- P(`T${v}`, 1);
1550
+ set(y) {
1551
+ D(`T${y}`, 1);
1697
1552
  }
1698
- }), O = g({
1553
+ }), q = C({
1699
1554
  get() {
1700
- const v = o(U);
1701
- 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 });
1702
1557
  },
1703
- set(v) {
1558
+ set(y) {
1704
1559
  try {
1705
- const m = en(v, o(C), /* @__PURE__ */ new Date(), { locale: a.value });
1706
- P(S(m), 0);
1707
- } catch (m) {
1708
- 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);
1709
1564
  }
1710
1565
  }
1711
- }), $ = g({
1566
+ }), S = C({
1712
1567
  get() {
1713
- const v = o(U);
1714
- return v == null ? "" : we(v, o(_), { locale: a.value });
1568
+ const y = l(O);
1569
+ return y == null ? "" : je(y, l($), { locale: r.value });
1715
1570
  },
1716
- set(v) {
1717
- const m = v.match(/(\d+):(\d+)\s?([a-zA-Z]+)?/);
1718
- if (m == null) return;
1719
- let M = Je(m[1]);
1720
- const b = Je(m[2]);
1721
- et(M) || et(b) || (m[3] && m[3].toLowerCase() === "pm" && M < 13 && (M += 12), P(`T${M.toString().padStart(2, "0")}:${b.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));
1722
1577
  }
1723
1578
  });
1724
- return (v, m) => {
1725
- const M = N("v-date-picker"), b = N("v-confirm-edit"), j = N("v-menu"), X = N("v-text-field"), G = N("v-time-picker");
1726
- return V(), F(o(ze), z(n, {
1727
- 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),
1728
1583
  clearable: e.clearable,
1729
- "onClick:clear": m[14] || (m[14] = (le) => i.value = null),
1730
- onBlur: m[15] || (m[15] = (le) => p.value = !0)
1584
+ "onClick:clear": o[14] || (o[14] = (te) => v.value = null),
1585
+ onBlur: o[15] || (o[15] = (te) => w.value = !0)
1731
1586
  }), {
1732
- default: y((le) => [
1733
- fe("div", {
1734
- class: re([
1587
+ default: s((te) => [
1588
+ ae("div", {
1589
+ class: ce([
1735
1590
  "d-flex",
1736
1591
  "w-100",
1737
- ["plain", "underlined"].includes(o(f).variant) ? void 0 : "ml-4",
1592
+ ["plain", "underlined"].includes(l(f).variant) ? void 0 : "ml-4",
1738
1593
  "df-input-wrapper",
1739
- o(u)
1594
+ l(c)
1740
1595
  ])
1741
1596
  }, [
1742
- ["date", "datetime"].includes(o(s)) ? (V(), F(X, z({
1597
+ ["date", "datetime"].includes(l(h)) ? (j(), H(N, X({
1743
1598
  key: 0,
1744
- modelValue: O.value,
1745
- "onUpdate:modelValue": m[4] || (m[4] = (T) => O.value = T),
1599
+ modelValue: q.value,
1600
+ "onUpdate:modelValue": o[4] || (o[4] = (_) => q.value = _),
1746
1601
  style: { "flex-grow": "4" },
1747
1602
  density: "compact",
1748
1603
  variant: "plain",
1749
1604
  clearable: !1,
1750
1605
  "hide-details": !0,
1751
- readonly: o(f).readonly,
1752
- disabled: o(f).disabled,
1753
- name: `${o(f).name}-date`,
1754
- 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
1755
1610
  }, e.passthroughAttrs, {
1756
- onClick: m[5] || (m[5] = (T) => h.value = "date"),
1757
- onKeydown: m[6] || (m[6] = Ze((T) => h.value = "date", ["space"])),
1758
- onFocus: (T) => le.focus(),
1759
- onBlur: (T) => le.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()
1760
1615
  }), {
1761
- default: y(() => [
1762
- I(j, {
1763
- modelValue: k.value,
1764
- "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 = _),
1765
1620
  "close-on-content-click": !1,
1766
1621
  activator: "parent"
1767
1622
  }, {
1768
- default: y(() => [
1769
- I(b, {
1770
- modelValue: U.value,
1771
- "onUpdate:modelValue": m[0] || (m[0] = (T) => U.value = T),
1772
- onCancel: m[1] || (m[1] = (T) => h.value = ""),
1773
- onSave: m[2] || (m[2] = (T) => h.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 = "")
1774
1629
  }, {
1775
- default: y(({ model: T, actions: he }) => [
1776
- I(M, {
1777
- modelValue: T.value,
1778
- "onUpdate:modelValue": (be) => T.value = be,
1630
+ default: s(({ model: _, actions: ie }) => [
1631
+ i(u, {
1632
+ modelValue: _.value,
1633
+ "onUpdate:modelValue": (be) => _.value = be,
1779
1634
  "hide-header": !0,
1780
- "first-day-of-week": r.value,
1635
+ "first-day-of-week": d.value,
1781
1636
  "show-adjacent-months": !0,
1782
1637
  "show-week": !0
1783
1638
  }, {
1784
- actions: y(() => [
1785
- (V(), F(je(he)))
1639
+ actions: s(() => [
1640
+ (j(), H(Ne(ie)))
1786
1641
  ]),
1787
1642
  _: 2
1788
1643
  }, 1032, ["modelValue", "onUpdate:modelValue", "first-day-of-week"])
@@ -1794,49 +1649,49 @@ const pl = {
1794
1649
  }, 8, ["modelValue"])
1795
1650
  ]),
1796
1651
  _: 1
1797
- }, 16, ["modelValue", "readonly", "disabled", "name", "placeholder", "onFocus", "onBlur"])) : H("", !0),
1798
- ["time", "datetime"].includes(o(s)) ? (V(), F(X, z({
1652
+ }, 16, ["modelValue", "readonly", "disabled", "name", "placeholder", "onFocus", "onBlur"])) : G("", !0),
1653
+ ["time", "datetime"].includes(l(h)) ? (j(), H(N, X({
1799
1654
  key: 1,
1800
- modelValue: $.value,
1801
- "onUpdate:modelValue": m[11] || (m[11] = (T) => $.value = T),
1655
+ modelValue: S.value,
1656
+ "onUpdate:modelValue": o[11] || (o[11] = (_) => S.value = _),
1802
1657
  style: { "flex-grow": "3" },
1803
1658
  density: "compact",
1804
1659
  variant: "plain",
1805
1660
  clearable: !1,
1806
1661
  "hide-details": !0,
1807
- readonly: o(f).readonly,
1808
- disabled: o(f).disabled,
1809
- name: `${o(f).name}-time`,
1810
- placeholder: o(s) === "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
1811
1666
  }, e.passthroughAttrs, {
1812
- onClick: m[12] || (m[12] = (T) => h.value = "time"),
1813
- onKeydown: m[13] || (m[13] = Ze((T) => h.value = "time", ["space"])),
1814
- onFocus: (T) => le.focus(),
1815
- onBlur: (T) => le.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()
1816
1671
  }), {
1817
- default: y(() => [
1818
- I(j, {
1819
- modelValue: D.value,
1820
- "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 = _),
1821
1676
  "close-on-content-click": !1,
1822
1677
  activator: "parent"
1823
1678
  }, {
1824
- default: y(() => [
1825
- I(b, {
1826
- modelValue: A.value,
1827
- "onUpdate:modelValue": m[7] || (m[7] = (T) => A.value = T),
1828
- onCancel: m[8] || (m[8] = (T) => h.value = ""),
1829
- onSave: m[9] || (m[9] = (T) => h.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 = "")
1830
1685
  }, {
1831
- default: y(({ model: T, actions: he }) => [
1832
- I(G, {
1833
- modelValue: T.value,
1834
- "onUpdate:modelValue": (be) => T.value = be,
1686
+ default: s(({ model: _, actions: ie }) => [
1687
+ i(W, {
1688
+ modelValue: _.value,
1689
+ "onUpdate:modelValue": (be) => _.value = be,
1835
1690
  "hide-header": !0,
1836
1691
  format: "24hr"
1837
1692
  }, {
1838
- actions: y(() => [
1839
- (V(), F(je(he)))
1693
+ actions: s(() => [
1694
+ (j(), H(Ne(ie)))
1840
1695
  ]),
1841
1696
  _: 2
1842
1697
  }, 1032, ["modelValue", "onUpdate:modelValue"])
@@ -1848,16 +1703,16 @@ const pl = {
1848
1703
  }, 8, ["modelValue"])
1849
1704
  ]),
1850
1705
  _: 1
1851
- }, 16, ["modelValue", "readonly", "disabled", "name", "placeholder", "onFocus", "onBlur"])) : H("", !0)
1706
+ }, 16, ["modelValue", "readonly", "disabled", "name", "placeholder", "onFocus", "onBlur"])) : G("", !0)
1852
1707
  ], 2)
1853
1708
  ]),
1854
1709
  _: 1
1855
1710
  }, 16, ["class", "clearable"]);
1856
1711
  };
1857
1712
  }
1858
- }), wt = /* @__PURE__ */ K({
1713
+ }), bt = /* @__PURE__ */ Z({
1859
1714
  __name: "df-file",
1860
- props: /* @__PURE__ */ ie({
1715
+ props: /* @__PURE__ */ ve({
1861
1716
  comms: {},
1862
1717
  control: {},
1863
1718
  modelValue: {},
@@ -1873,82 +1728,82 @@ const pl = {
1873
1728
  passthroughAttrs: {},
1874
1729
  density: {},
1875
1730
  variant: {}
1876
- }, se),
1731
+ }, pe),
1877
1732
  emits: ["update:modelValue", "click:clear"],
1878
- setup(e, { emit: t }) {
1879
- const n = e, l = t, { density: a, densityClass: r, touched: u, value: c, vuetifyBindings: p } = oe(n, l), i = R(null), f = R(null), s = R(0), C = R(Math.round(Math.random() * 1e3)), _ = R(), h = g(() => f.value && s.value < 100), k = g(() => !_.value && c.value ? n.modelValue : "");
1880
- function D() {
1881
- 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);
1882
1737
  }
1883
- function S() {
1884
- D(), i.value = window.setInterval(() => {
1885
- c.value && n.comms.touch(c.value);
1738
+ function I() {
1739
+ M(), v.value = window.setInterval(() => {
1740
+ g.value && t.comms.touch(g.value);
1886
1741
  }, 60 * 1e3);
1887
1742
  }
1888
- at(() => D()), de(c, (A) => {
1889
- A ? S() : D();
1743
+ ot(() => M()), se(g, (E) => {
1744
+ E ? I() : M();
1890
1745
  });
1891
- function d() {
1892
- return _e(this, null, function* () {
1893
- c.value && (yield n.comms.delete(c.value)), c.value = null, s.value = 0, C.value = Math.round(Math.random() * 1e3), f.value = null, _.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();
1894
1749
  });
1895
1750
  }
1896
- function P(A) {
1897
- return _e(this, null, function* () {
1898
- s.value = -1, f.value = A;
1751
+ function D(E) {
1752
+ return Te(this, null, function* () {
1753
+ h.value = -1, f.value = E;
1899
1754
  try {
1900
- c.value = yield n.comms.upload(A, (O, $) => {
1901
- s.value = Math.round(O * 100 / $);
1902
- }), s.value = 100, S();
1903
- } catch (O) {
1904
- throw s.value = 0, f.value = null, C.value = Math.round(Math.random() * 1e3), _.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;
1905
1760
  }
1906
1761
  });
1907
1762
  }
1908
- function U(A) {
1909
- 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));
1910
1765
  }
1911
- return (A, O) => {
1912
- const $ = N("v-progress-linear"), v = N("v-file-input");
1913
- return V(), F(o(ze), z(W(x({}, n), { loading: h.value }), {
1914
- 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),
1915
1770
  clearable: "",
1916
- "onClick:clear": d,
1917
- onBlur: O[1] || (O[1] = (m) => u.value = !0)
1771
+ "onClick:clear": b,
1772
+ onBlur: q[1] || (q[1] = (o) => c.value = !0)
1918
1773
  }), {
1919
- "prepend-inner": y(() => [
1920
- I(o(xe), { name: "mdi-paperclip" })
1774
+ "prepend-inner": s(() => [
1775
+ i(l(B), { name: "mdi-paperclip" })
1921
1776
  ]),
1922
- loader: y(() => [
1923
- f.value && s.value < 100 ? (V(), F($, {
1777
+ loader: s(() => [
1778
+ f.value && h.value < 100 ? (j(), H(S, {
1924
1779
  key: 0,
1925
- "model-value": s.value,
1926
- indeterminate: s.value === -1
1927
- }, 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)
1928
1783
  ]),
1929
- default: y((m) => [
1930
- fe("div", {
1931
- class: re(["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)])
1932
1787
  }, [
1933
- I(v, z({
1934
- modelValue: _.value,
1935
- "onUpdate:modelValue": O[0] || (O[0] = (M) => _.value = M),
1936
- label: k.value,
1788
+ i(y, X({
1789
+ modelValue: $.value,
1790
+ "onUpdate:modelValue": q[0] || (q[0] = (u) => $.value = u),
1791
+ label: V.value,
1937
1792
  density: "compact",
1938
1793
  variant: "plain",
1939
- readonly: o(p).readonly,
1940
- disabled: o(p).disabled,
1941
- name: o(p).name,
1794
+ readonly: l(w).readonly,
1795
+ disabled: l(w).disabled,
1796
+ name: l(w).name,
1942
1797
  "hide-details": !0,
1943
1798
  "show-size": !0,
1944
1799
  multiple: !1,
1945
- style: f.value && s.value < 100 ? "visibility: hidden" : "",
1800
+ style: f.value && h.value < 100 ? "visibility: hidden" : "",
1946
1801
  clearable: !1
1947
1802
  }, e.passthroughAttrs, {
1948
1803
  "prepend-icon": "",
1949
- "onUpdate:modelValue": U,
1950
- onFocus: (M) => m.focus(),
1951
- onBlur: (M) => m.blur()
1804
+ "onUpdate:modelValue": O,
1805
+ onFocus: (u) => o.focus(),
1806
+ onBlur: (u) => o.blur()
1952
1807
  }), null, 16, ["modelValue", "label", "readonly", "disabled", "name", "style", "onFocus", "onBlur"])
1953
1808
  ], 2)
1954
1809
  ]),
@@ -1956,9 +1811,9 @@ const pl = {
1956
1811
  }, 16, ["class"]);
1957
1812
  };
1958
1813
  }
1959
- }), kt = /* @__PURE__ */ K({
1814
+ }), ht = /* @__PURE__ */ Z({
1960
1815
  __name: "df-input",
1961
- props: /* @__PURE__ */ ie({
1816
+ props: /* @__PURE__ */ ve({
1962
1817
  inputType: {},
1963
1818
  precision: {},
1964
1819
  step: {},
@@ -1978,7 +1833,7 @@ const pl = {
1978
1833
  passthroughAttrs: {},
1979
1834
  density: {},
1980
1835
  variant: {}
1981
- }, W(x({}, se), {
1836
+ }, J(U({}, pe), {
1982
1837
  inputType: "text",
1983
1838
  precision: null,
1984
1839
  step: void 0,
@@ -1986,235 +1841,1350 @@ const pl = {
1986
1841
  max: void 0
1987
1842
  })),
1988
1843
  emits: ["update:modelValue", "click:clear"],
1989
- setup(e, { emit: t }) {
1990
- const n = e, l = t, { densityClass: a, isRendered: r, label: u, showErrors: c, touched: p, value: i, visibilityClass: f, vuetifyBindings: s } = oe(
1991
- n,
1992
- l
1993
- ), { inputType: C, max: _, min: h, precision: k, step: D } = Pe(n), S = g(() => C.value === "number"), d = g(
1994
- () => S.value ? { min: o(h), max: o(_), 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) } : {}
1995
1850
  );
1996
- return (P, U) => {
1997
- const A = N("v-text-field"), O = N("v-number-input");
1998
- 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", {
1999
1854
  key: 0,
2000
- class: re(["df-input-container", [o(a), o(f)]])
1855
+ class: ce(["df-input-container", [l(r), l(f)]])
2001
1856
  }, [
2002
- S.value ? (V(), F(O, z({
1857
+ I.value ? (j(), H(q, X({
2003
1858
  key: 1,
2004
- modelValue: o(i),
2005
- "onUpdate:modelValue": U[2] || (U[2] = ($) => me(i) ? i.value = $ : null),
1859
+ modelValue: l(v),
1860
+ "onUpdate:modelValue": O[2] || (O[2] = (S) => ke(v) ? v.value = S : null),
2006
1861
  density: "compact",
2007
1862
  "control-variant": "stacked"
2008
- }, x(x({}, o(s)), d.value)), {
2009
- label: y(($) => [
2010
- I(o(ne), {
2011
- data: $,
2012
- label: o(u)
1863
+ }, U(U({}, l(h)), b.value)), {
1864
+ label: s((S) => [
1865
+ i(l(de), {
1866
+ data: S,
1867
+ label: l(c)
2013
1868
  }, null, 8, ["data", "label"])
2014
1869
  ]),
2015
- message: y(({ message: $ }) => [
2016
- I(o(te), {
2017
- message: $,
2018
- errors: o(c)
1870
+ message: s(({ message: S }) => [
1871
+ i(l(ue), {
1872
+ message: S,
1873
+ errors: l(g)
2019
1874
  }, null, 8, ["message", "errors"])
2020
1875
  ]),
2021
1876
  _: 1
2022
- }, 16, ["modelValue"])) : (V(), F(A, z({
1877
+ }, 16, ["modelValue"])) : (j(), H(E, X({
2023
1878
  key: 0,
2024
- modelValue: o(i),
2025
- "onUpdate:modelValue": U[0] || (U[0] = ($) => me(i) ? i.value = $ : null),
2026
- type: o(C)
2027
- }, o(s), {
2028
- onBlur: U[1] || (U[1] = ($) => p.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)
2029
1884
  }), {
2030
- label: y(($) => [
2031
- I(o(ne), {
2032
- data: $,
2033
- label: o(u)
1885
+ label: s((S) => [
1886
+ i(l(de), {
1887
+ data: S,
1888
+ label: l(c)
2034
1889
  }, null, 8, ["data", "label"])
2035
1890
  ]),
2036
- message: y(({ message: $ }) => [
2037
- I(o(te), {
2038
- message: $,
2039
- errors: o(c)
1891
+ message: s(({ message: S }) => [
1892
+ i(l(ue), {
1893
+ message: S,
1894
+ errors: l(g)
2040
1895
  }, null, 8, ["message", "errors"])
2041
1896
  ]),
2042
1897
  _: 1
2043
1898
  }, 16, ["modelValue", "type"]))
2044
- ], 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);
2045
2969
  };
2046
2970
  }
2047
- }), bl = { class: "editor-container" }, gl = { class: "editor-container__editor" }, yl = { ref: "editorElement" }, wl = /* @__PURE__ */ K({
2048
- __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",
2049
3015
  props: {
2050
3016
  modelValue: { default: "" },
2051
3017
  minHeight: { default: "7em" },
2052
3018
  disabled: { type: Boolean, default: !1 }
2053
3019
  },
2054
3020
  emits: ["update:modelValue"],
2055
- setup(e, { expose: t, emit: n }) {
2056
- Ot((s) => ({
2057
- v32dcdf6e: s.minHeight
3021
+ setup(e, { emit: n }) {
3022
+ zt((f) => ({
3023
+ v3d306a89: f.minHeight
2058
3024
  }));
2059
- const l = n, a = R(!1), r = Wn, u = {
2060
- items: [
2061
- "undo",
2062
- "redo",
2063
- "|",
2064
- "selectAll",
2065
- "|",
2066
- "heading",
2067
- "style",
2068
- "|",
2069
- "bold",
2070
- "italic",
2071
- "|",
2072
- "horizontalLine",
2073
- "link",
2074
- "mediaEmbed",
2075
- "insertTable",
2076
- "blockQuote",
2077
- "|",
2078
- "alignment",
2079
- "|",
2080
- "bulletedList",
2081
- "numberedList",
2082
- "outdent",
2083
- "indent",
2084
- "|",
2085
- "accessibilityHelp"
2086
- ],
2087
- shouldNotGroupWhenFull: !1
2088
- }, c = [
2089
- tn,
2090
- nn,
2091
- on,
2092
- ln,
2093
- an,
2094
- rn,
2095
- sn,
2096
- un,
2097
- cn,
2098
- dn,
2099
- mn,
2100
- fn,
2101
- vn,
2102
- pn,
2103
- hn,
2104
- bn,
2105
- gn,
2106
- yn,
2107
- wn,
2108
- kn,
2109
- Cn,
2110
- Vn,
2111
- jn,
2112
- Tn,
2113
- xn,
2114
- _n,
2115
- Bn,
2116
- Dn,
2117
- In,
2118
- Sn,
2119
- Pn,
2120
- En,
2121
- An,
2122
- $n,
2123
- Mn,
2124
- Rn,
2125
- Fn,
2126
- Ln,
2127
- Nn,
2128
- Un,
2129
- On
2130
- ], p = {
2131
- options: [
2132
- { model: "paragraph", title: L.Paragraph, class: "ck-heading_paragraph" },
2133
- { model: "heading1", view: "h1", title: L.Heading1, class: "ck-heading_heading1" },
2134
- { model: "heading2", view: "h2", title: L.Heading2, class: "ck-heading_heading2" },
2135
- { model: "heading3", view: "h3", title: L.Heading3, class: "ck-heading_heading3" },
2136
- { model: "heading4", view: "h4", title: L.Heading4, class: "ck-heading_heading4" },
2137
- { model: "heading5", view: "h5", title: L.Heading5, class: "ck-heading_heading5" },
2138
- { model: "heading6", view: "h6", title: L.Heading6, class: "ck-heading_heading6" }
2139
- ]
2140
- }, i = {
2141
- language: Ie.language,
2142
- toolbar: u,
2143
- plugins: c,
2144
- balloonToolbar: ["bold", "italic", "|", "link", "|", "bulletedList", "numberedList"],
2145
- heading: p,
2146
- htmlSupport: {
2147
- allow: [{ name: /^.*$/, styles: !0, attributes: !0, classes: !0 }]
2148
- },
2149
- image: {
2150
- toolbar: [
2151
- "toggleImageCaption",
2152
- "imageTextAlternative",
2153
- "|",
2154
- "imageStyle:inline",
2155
- "imageStyle:wrapText",
2156
- "imageStyle:breakText",
2157
- "|",
2158
- "resizeImage"
2159
- ]
2160
- },
2161
- // initialData: '',
2162
- link: {
2163
- addTargetToExternalLinks: !0,
2164
- defaultProtocol: "https://",
2165
- decorators: {
2166
- toggleDownloadable: {
2167
- mode: "manual",
2168
- label: L.Downloadable,
2169
- 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
2170
3039
  }
2171
- }
2172
- },
2173
- placeholder: "",
2174
- style: {
2175
- definitions: [
2176
- { name: L.ArticleCategory, element: "h3", classes: ["category"] },
2177
- { name: L.Title, element: "h2", classes: ["document-title"] },
2178
- { name: L.Subtitle, element: "h3", classes: ["document-subtitle"] },
2179
- { name: L.InfoBox, element: "p", classes: ["info-box"] },
2180
- { name: L.SideQuote, element: "blockquote", classes: ["side-quote"] },
2181
- { name: L.Marker, element: "span", classes: ["marker"] },
2182
- { name: L.Spoiler, element: "span", classes: ["spoiler"] },
2183
- { name: L.CodeDark, element: "pre", classes: ["fancy-code", "fancy-code-dark"] },
2184
- { name: L.CodeBright, element: "pre", classes: ["fancy-code", "fancy-code-bright"] }
2185
- ]
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)
2186
3056
  },
2187
- table: { contentToolbar: ["tableColumn", "tableRow", "mergeTableCells", "tableProperties", "tableCellProperties"] },
2188
- translations: Ie.translations
2189
- };
2190
- lt(() => {
2191
- a.value = !0;
3057
+ onUpdate: ({ editor: f }) => {
3058
+ a("update:modelValue", f.getHTML());
3059
+ }
2192
3060
  });
2193
- const f = (s) => {
2194
- };
2195
- return t({ onEditorReady: f }), (s, C) => {
2196
- const _ = N("ckeditor");
2197
- return V(), Y("div", bl, [
2198
- fe("div", gl, [
2199
- fe("div", yl, [
2200
- a.value ? (V(), F(_, {
2201
- key: 0,
2202
- "model-value": e.modelValue,
2203
- editor: o(r),
2204
- config: i,
2205
- disabled: e.disabled,
2206
- style: rt(`min-height: ${e.minHeight}`),
2207
- onReady: f,
2208
- "onUpdate:modelValue": C[0] || (C[0] = (h) => l("update:modelValue", h))
2209
- }, null, 8, ["model-value", "editor", "disabled", "style"])) : H("", !0)
2210
- ], 512)
2211
- ])
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)
2212
3182
  ]);
2213
3183
  };
2214
3184
  }
2215
- }), Ct = /* @__PURE__ */ K({
3185
+ }), xt = /* @__PURE__ */ Z({
2216
3186
  __name: "df-rtf-editor",
2217
- props: /* @__PURE__ */ ie({
3187
+ props: /* @__PURE__ */ ve({
2218
3188
  minHeight: {},
2219
3189
  control: {},
2220
3190
  modelValue: {},
@@ -2230,64 +3200,64 @@ const pl = {
2230
3200
  passthroughAttrs: {},
2231
3201
  density: {},
2232
3202
  variant: {}
2233
- }, W(x({}, se), { minHeight: void 0 })),
3203
+ }, J(U({}, pe), { minHeight: void 0 })),
2234
3204
  emits: ["update:modelValue", "click:clear"],
2235
- setup(e, { emit: t }) {
2236
- const n = e, l = t, { densityClass: a, value: r, vuetifyBindings: u } = oe(n, l);
2237
- return (c, p) => (V(), F(o(ze), z(n, {
2238
- 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)]
2239
3209
  }), {
2240
- default: y((i) => [
2241
- I(wl, z({
3210
+ default: s((v) => [
3211
+ i(Zl, X({
2242
3212
  ref: "$editor",
2243
- modelValue: o(r),
2244
- "onUpdate:modelValue": p[0] || (p[0] = (f) => me(r) ? r.value = f : null),
3213
+ modelValue: l(d),
3214
+ "onUpdate:modelValue": w[0] || (w[0] = (f) => ke(d) ? d.value = f : null),
2245
3215
  class: { "mt-6": !!e.label },
2246
3216
  "min-height": e.minHeight,
2247
- disabled: o(u).disabled
3217
+ disabled: l(c).disabled
2248
3218
  }, e.passthroughAttrs, {
2249
- onFocusin: (f) => i.focus(),
2250
- onFocusout: (f) => i.blur()
3219
+ onFocusin: (f) => v.focus(),
3220
+ onFocusout: (f) => v.blur()
2251
3221
  }), null, 16, ["modelValue", "class", "min-height", "disabled", "onFocusin", "onFocusout"])
2252
3222
  ]),
2253
3223
  _: 1
2254
3224
  }, 16, ["class"]));
2255
3225
  }
2256
3226
  });
2257
- function kl(e) {
2258
- 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 }));
2259
3229
  }
2260
- function ee(e, t) {
2261
- var n;
2262
- return e == null || tt(e) && e.length === 0 ? null : t ? st(e) : tt(e) ? (n = ut(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;
2263
3233
  }
2264
- function Se(e, t) {
2265
- if (t == null) return [];
2266
- const n = st(t);
2267
- 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));
2268
3238
  }
2269
- function Ve(e, t, n, l, a) {
2270
- var u;
2271
- const r = ee(e, n);
2272
- if (r == null) {
2273
- 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;
2274
3244
  return;
2275
3245
  }
2276
- if (n)
2277
- l ? t.value = r : t.value = Se(a, r).map((c) => c.id);
2278
- else if (l)
2279
- 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;
2280
3250
  else {
2281
- const c = ut(Se(a, r));
2282
- t.value = (u = c == null ? void 0 : c.id) != null ? u : null;
3251
+ const g = st(ze(r, d));
3252
+ n.value = (c = g == null ? void 0 : g.id) != null ? c : null;
2283
3253
  }
2284
3254
  }
2285
- const Cl = {
3255
+ const ta = {
2286
3256
  key: 0,
2287
3257
  class: "me-1"
2288
- }, Vl = /* @__PURE__ */ K({
3258
+ }, na = /* @__PURE__ */ Z({
2289
3259
  __name: "df-select",
2290
- props: /* @__PURE__ */ ie({
3260
+ props: /* @__PURE__ */ ve({
2291
3261
  choices: {},
2292
3262
  multiple: { type: Boolean },
2293
3263
  allowTags: { type: Boolean },
@@ -2307,7 +3277,7 @@ const Cl = {
2307
3277
  passthroughAttrs: {},
2308
3278
  density: {},
2309
3279
  variant: {}
2310
- }, W(x({}, se), {
3280
+ }, J(U({}, pe), {
2311
3281
  choices: void 0,
2312
3282
  multiple: !1,
2313
3283
  allowTags: !1,
@@ -2315,235 +3285,235 @@ const Cl = {
2315
3285
  fetchChoices: void 0
2316
3286
  })),
2317
3287
  emits: ["update:modelValueDisplay", "update:modelValue", "click:clear"],
2318
- setup(e, { emit: t }) {
2319
- var Xe;
2320
- const n = e, { choices: l, multiple: a, allowTags: r, allowNull: u, cssClass: c } = Pe(n), p = t, i = R(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), {
2321
3291
  densityClass: f,
2322
- isRendered: s,
2323
- label: C,
2324
- showErrors: _,
2325
- touched: h,
2326
- value: k,
2327
- visibilityClass: D,
2328
- vuetifyBindings: S
2329
- } = oe(n, p), d = R(null), P = R(!1), U = R([]), A = g(() => o(P) ? o(U) : o(l) || []), O = R(!1), $ = g(() => kl(A.value)), v = R(null), m = R(0), M = R(!1);
2330
- (Xe = l.value) != null && Xe.length && n.fetchChoices !== void 0 && console.warn("Both choices and fetchChoices are set. Only one of them should be set.");
2331
- function b(w) {
2332
- p("update:modelValueDisplay", Se(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));
2333
3303
  }
2334
- const j = R(!1);
2335
- function X(w) {
2336
- j.value = !0;
3304
+ const x = F(!1);
3305
+ function N(T) {
3306
+ x.value = !0;
2337
3307
  try {
2338
- k.value = w;
3308
+ V.value = T;
2339
3309
  } finally {
2340
- Kt(ee(k.value, a.value), w) || Ve(
2341
- ee(k.value, a.value),
2342
- d,
2343
- a.value,
3310
+ Kt(re(V.value, r.value), T) || Le(
3311
+ re(V.value, r.value),
3312
+ b,
2344
3313
  r.value,
2345
- A.value
2346
- ), Ne(() => {
2347
- j.value = !1;
3314
+ d.value,
3315
+ E.value
3316
+ ), Oe(() => {
3317
+ x.value = !1;
2348
3318
  });
2349
3319
  }
2350
3320
  }
2351
- function G(w) {
2352
- if (!w) return 0;
2353
- const B = w.getBoundingClientRect(), q = window.getComputedStyle(w);
2354
- return B.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);
2355
3325
  }
2356
- function le() {
2357
- var w;
2358
- if (a.value && u.value && d.value != null && d.value.length > 0 && i.value) {
2359
- const B = i.value.$el, q = (w = B.querySelector(".v-input__control")) == null ? void 0 : w.clientWidth, Q = B.querySelector(".v-field__input"), E = Q.querySelectorAll(".v-autocomplete__selection, .v-combobox__selection"), Z = window.getComputedStyle(Q);
2360
- let ge = parseFloat(Z.paddingLeft) + parseFloat(Z.paddingRight);
2361
- E.forEach((Dt) => {
2362
- ge += G(Dt);
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);
2363
3333
  });
2364
- const xt = G(B.querySelector(".v-field .v-field__clearable")), _t = G(B.querySelector(".v-field .v-field__append-inner")), Bt = 2;
2365
- M.value = q - ge - E.length * Bt - _t < xt;
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;
2366
3336
  } else
2367
- M.value = !1;
3337
+ u.value = !1;
2368
3338
  }
2369
- function T(w) {
2370
- const B = w.target;
2371
- B instanceof HTMLElement && B.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());
2372
3342
  }
2373
- de(
2374
- d,
2375
- (w) => {
2376
- S.value.readonly || Ne(() => {
2377
- const B = ee(w, a.value);
2378
- b(B), X(B);
3343
+ se(
3344
+ b,
3345
+ (T) => {
3346
+ I.value.readonly || Oe(() => {
3347
+ const R = re(T, r.value);
3348
+ m(R), N(R);
2379
3349
  });
2380
3350
  },
2381
3351
  { deep: !0 }
2382
- ), de(
2383
- k,
2384
- (w) => {
2385
- if (!j.value) {
2386
- const B = ee(w, a.value);
2387
- Ve(B, 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);
2388
3358
  }
2389
3359
  },
2390
3360
  { deep: !0 }
2391
- ), de(j, () => {
2392
- j.value || le();
3361
+ ), se(x, () => {
3362
+ x.value || te();
2393
3363
  });
2394
- function he() {
2395
- v.value != null && v.value.length > 0 && (v.value = null, Ee());
3364
+ function ie() {
3365
+ y.value != null && y.value.length > 0 && (y.value = null, k());
2396
3366
  }
2397
3367
  function be() {
2398
- if (he(), S.value.readonly || r.value) return;
2399
- const w = ee(d.value, a.value);
2400
- 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);
2401
3371
  }
2402
- function Tt(w, B) {
2403
- if (w.stopPropagation(), S.value.readonly || r.value) {
2404
- r.value && (d.value = d.value.filter((Q) => Q !== B));
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));
2405
3375
  return;
2406
3376
  }
2407
- let q;
2408
- a.value && Array.isArray(d.value) ? q = ee(
2409
- d.value.filter((Q) => Q !== B),
2410
- a.value
2411
- ) : 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);
2412
3382
  }
2413
- function Ee(w, B) {
2414
- return _e(this, null, function* () {
2415
- if (S.value.readonly || (v.value = w, l.value || n.fetchChoices === void 0)) return;
2416
- const q = ++m.value;
2417
- 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;
2418
3388
  try {
2419
- const Q = Se(
2420
- A.value,
2421
- ee(d.value, a.value)
2422
- ), E = yield n.fetchChoices(w, B);
2423
- if (q !== m.value) return;
2424
- U.value = Xt([...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;
2425
3395
  } finally {
2426
- O.value = !1;
3396
+ q.value = !1;
2427
3397
  }
2428
3398
  });
2429
3399
  }
2430
- function Ke() {
2431
- let w = k.value;
2432
- !u.value && w == null && $.value.length && (w = $.value[0].value), w = ee(w, a.value), Ve(w, d, a.value, r.value, A.value), b(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);
2433
3403
  }
2434
- return Ke(), n.fetchChoices !== void 0 && Ee(void 0, k.value).then(() => {
2435
- Ke();
2436
- }), (w, B) => {
2437
- const q = N("v-chip"), Q = N("v-list-item");
2438
- return o(s) ? (V(), F(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({
2439
3409
  key: 0,
2440
3410
  ref_key: "dfSelectRef",
2441
- ref: i,
2442
- modelValue: d.value,
2443
- "onUpdate:modelValue": B[0] || (B[0] = (E) => d.value = E),
2444
- class: [o(c), o(f), o(D), { "df-select-multirow": M.value }],
2445
- 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,
2446
3416
  "return-object": !1,
2447
3417
  chips: "",
2448
3418
  "auto-select-first": !0,
2449
- "closable-chips": o(u) || o(a) && d.value.length > 1,
2450
- clearable: o(u),
2451
- multiple: o(a),
2452
- 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,
2453
3423
  "hide-selected": !1,
2454
- "aria-describedby": o(S).helpText ? `${o(S).name}-help` : null,
3424
+ "aria-describedby": l(I).helpText ? `${l(I).name}-help` : null,
2455
3425
  "menu-props": { maxHeight: "400" },
2456
- search: v.value
2457
- }, o(S), {
2458
- "onUpdate:search": B[1] || (B[1] = (E) => Ee(E, void 0)),
3426
+ search: y.value
3427
+ }, l(I), {
3428
+ "onUpdate:search": R[1] || (R[1] = (z) => k(z, void 0)),
2459
3429
  "onUpdate:modelValue": be,
2460
- "onClick:clear": B[2] || (B[2] = (E) => d.value = null),
2461
- onBlur: B[3] || (B[3] = (E) => h.value = !0),
2462
- onMousedownCapture: B[4] || (B[4] = (E) => T(E))
2463
- }), Ue({
2464
- chip: y(({ item: E }) => [
2465
- (V(), F(q, {
2466
- 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,
2467
3437
  label: "",
2468
3438
  size: "small",
2469
3439
  class: "d-flex align-middle",
2470
- variant: o(a) ? "tonal" : "text",
2471
- closable: o(a),
2472
- "onClick:close": (Z) => Tt(Z, E.value)
3440
+ variant: l(r) ? "tonal" : "text",
3441
+ closable: l(r),
3442
+ "onClick:close": (le) => Ae(le, z.value)
2473
3443
  }, {
2474
- prepend: y(() => {
2475
- var Z;
3444
+ prepend: s(() => {
3445
+ var le;
2476
3446
  return [
2477
- (Z = E.raw) != null && Z.icon ? (V(), F(o(xe), {
3447
+ (le = z.raw) != null && le.icon ? (j(), H(l(B), {
2478
3448
  key: 0,
2479
3449
  class: "me-1",
2480
- name: E.raw.icon
2481
- }, null, 8, ["name"])) : H("", !0)
3450
+ name: z.raw.icon
3451
+ }, null, 8, ["name"])) : G("", !0)
2482
3452
  ];
2483
3453
  }),
2484
- default: y(() => [
2485
- fe("span", {
2486
- class: re({ "text-body-1": !o(a) })
2487
- }, Oe(E.title), 3)
3454
+ default: s(() => [
3455
+ ae("span", {
3456
+ class: ce({ "text-body-1": !l(r) })
3457
+ }, K(z.title), 3)
2488
3458
  ]),
2489
3459
  _: 2
2490
3460
  }, 1032, ["variant", "closable", "onClick:close"]))
2491
3461
  ]),
2492
- label: y((E) => [
2493
- I(o(ne), {
2494
- data: E,
2495
- label: o(C)
3462
+ label: s((z) => [
3463
+ i(l(de), {
3464
+ data: z,
3465
+ label: l(L)
2496
3466
  }, null, 8, ["data", "label"])
2497
3467
  ]),
2498
- item: y(({ props: E, item: Z }) => [
2499
- I(Q, ue(ce(E)), {
2500
- prepend: y(() => {
2501
- var ge;
3468
+ item: s(({ props: z, item: le }) => [
3469
+ i(ne, he(ge(z)), {
3470
+ prepend: s(() => {
3471
+ var xe;
2502
3472
  return [
2503
- (ge = Z.raw) != null && ge.icon ? (V(), Y("span", Cl, [
2504
- I(o(xe), {
3473
+ (xe = le.raw) != null && xe.icon ? (j(), Q("span", ta, [
3474
+ i(l(B), {
2505
3475
  class: "action-icon",
2506
- name: Z.raw.icon
3476
+ name: le.raw.icon
2507
3477
  }, null, 8, ["name"])
2508
- ])) : H("", !0)
3478
+ ])) : G("", !0)
2509
3479
  ];
2510
3480
  }),
2511
3481
  _: 2
2512
3482
  }, 1040)
2513
3483
  ]),
2514
- message: y(({ message: E }) => [
2515
- I(o(te), {
2516
- message: E,
2517
- errors: o(_)
3484
+ message: s(({ message: z }) => [
3485
+ i(l(ue), {
3486
+ message: z,
3487
+ errors: l($)
2518
3488
  }, null, 8, ["message", "errors"])
2519
3489
  ]),
2520
3490
  _: 2
2521
3491
  }, [
2522
- w.$slots["append-inner"] ? {
3492
+ T.$slots["append-inner"] ? {
2523
3493
  name: "append-inner",
2524
- fn: y((E) => [
2525
- pe(w.$slots, "append-inner", ue(ce(E)), void 0, !0)
3494
+ fn: s((z) => [
3495
+ we(T.$slots, "append-inner", he(ge(z)), void 0, !0)
2526
3496
  ]),
2527
3497
  key: "0"
2528
3498
  } : void 0,
2529
- w.$slots["prepend-inner"] ? {
3499
+ T.$slots["prepend-inner"] ? {
2530
3500
  name: "prepend-inner",
2531
- fn: y((E) => [
2532
- pe(w.$slots, "prepend-inner", ue(ce(E)), void 0, !0)
3501
+ fn: s((z) => [
3502
+ we(T.$slots, "prepend-inner", he(ge(z)), void 0, !0)
2533
3503
  ]),
2534
3504
  key: "1"
2535
3505
  } : void 0
2536
- ]), 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);
2537
3507
  };
2538
3508
  }
2539
- }), jl = (e, t) => {
2540
- const n = e.__vccOpts || e;
2541
- for (const [l, a] of t)
2542
- n[l] = a;
2543
- return n;
2544
- }, Vt = /* @__PURE__ */ jl(Vl, [["__scopeId", "data-v-7e5aa3b6"]]), jt = /* @__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({
2545
3515
  __name: "df-text-area",
2546
- props: /* @__PURE__ */ ie({
3516
+ props: /* @__PURE__ */ ve({
2547
3517
  rows: {},
2548
3518
  maxRows: {},
2549
3519
  control: {},
@@ -2560,143 +3530,141 @@ const Cl = {
2560
3530
  passthroughAttrs: {},
2561
3531
  density: {},
2562
3532
  variant: {}
2563
- }, W(x({}, se), {
3533
+ }, J(U({}, pe), {
2564
3534
  rows: void 0,
2565
3535
  maxRows: void 0
2566
3536
  })),
2567
3537
  emits: ["update:modelValue", "click:clear"],
2568
- setup(e, { emit: t }) {
2569
- const n = e, l = t, { densityClass: a, isRendered: r, label: u, showErrors: c, touched: p, value: i, visibilityClass: f, vuetifyBindings: s } = oe(
2570
- n,
2571
- l
2572
- ), { cssClass: C } = Pe(n);
2573
- return (_, h) => {
2574
- const k = N("v-textarea");
2575
- 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", {
2576
3546
  key: 0,
2577
- class: re(["df-textarea-container", [o(a), o(f)]])
3547
+ class: ce(["df-textarea-container", [l(r), l(f)]])
2578
3548
  }, [
2579
- I(k, z({
2580
- modelValue: o(i),
2581
- "onUpdate:modelValue": h[0] || (h[0] = (D) => me(i) ? i.value = D : null),
2582
- 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),
2583
3553
  rows: e.rows,
2584
3554
  "auto-grow": (e.maxRows || 0) > 0,
2585
3555
  "max-rows": e.maxRows
2586
- }, o(s), {
2587
- onBlur: h[1] || (h[1] = (D) => p.value = !0)
3556
+ }, l(h), {
3557
+ onBlur: A[1] || (A[1] = (M) => w.value = !0)
2588
3558
  }), {
2589
- label: y((D) => [
2590
- I(o(ne), {
2591
- data: D,
2592
- label: o(u)
3559
+ label: s((M) => [
3560
+ i(l(de), {
3561
+ data: M,
3562
+ label: l(c)
2593
3563
  }, null, 8, ["data", "label"])
2594
3564
  ]),
2595
- message: y(({ message: D }) => [
2596
- I(o(te), {
2597
- message: D,
2598
- errors: o(c)
3565
+ message: s(({ message: M }) => [
3566
+ i(l(ue), {
3567
+ message: M,
3568
+ errors: l(g)
2599
3569
  }, null, 8, ["message", "errors"])
2600
3570
  ]),
2601
3571
  _: 1
2602
3572
  }, 16, ["modelValue", "class", "rows", "auto-grow", "max-rows"])
2603
- ], 2)) : H("", !0);
3573
+ ], 2)) : G("", !0);
2604
3574
  };
2605
3575
  }
2606
- }), Tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3576
+ }), aa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2607
3577
  __proto__: null,
2608
- DfActions: ht,
2609
- DfCheckbox: bt,
2610
- DfColor: gt,
2611
- DfDateTime: yt,
2612
- DfFile: wt,
2613
- DfInput: kt,
2614
- DfInputHint: te,
2615
- DfLabel: ne,
2616
- DfRtfEditor: Ct,
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,
2617
3587
  DfSelect: Vt,
2618
- DfTextArea: jt
2619
- }, Symbol.toStringTag, { value: "Module" })), xl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3588
+ DfTextArea: Tt
3589
+ }, Symbol.toStringTag, { value: "Module" })), oa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2620
3590
  __proto__: null,
2621
- VAutocomplete: Hn,
2622
- VBtn: zn,
2623
- VCheckbox: Kn,
2624
- VChip: Xn,
2625
- VCol: eo,
2626
- VColorPicker: Gn,
2627
- VCombobox: qn,
2628
- VConfirmEdit: Yn,
2629
- VDatePicker: Qn,
2630
- VField: Zn,
2631
- VFileInput: Jn,
2632
- VIcon: no,
2633
- VImg: oo,
2634
- VInput: lo,
2635
- VListItem: ao,
2636
- VMenu: ro,
2637
- VNumberInput: io,
2638
- VProgressLinear: so,
2639
- VRow: to,
2640
- VSelect: uo,
2641
- VSwitch: co,
2642
- VTextField: fo,
2643
- VTextarea: mo,
2644
- VTimePicker: vo
2645
- }, Symbol.toStringTag, { value: "Module" })), ia = {
2646
- "df-actions": ht,
2647
- "df-checkbox": bt,
2648
- "df-color": gt,
2649
- "df-date-time": yt,
2650
- "df-file": wt,
2651
- "df-input": kt,
2652
- "df-input-hint": te,
2653
- "df-label": ne,
2654
- "df-rtf-editor": Ct,
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,
2655
3625
  "df-select": Vt,
2656
- "df-text-area": jt
2657
- }, sa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3626
+ "df-text-area": Tt
3627
+ }, Za = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2658
3628
  __proto__: null
2659
- }, Symbol.toStringTag, { value: "Module" })), ua = {
2660
- install: (e, t) => {
2661
- var n, l;
2662
- e.use(xo), e.provide(vt, 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));
2663
3633
  }
2664
3634
  };
2665
3635
  export {
2666
- De as Action,
2667
- J as ActionDisplayStyle,
2668
- sl as DateTimeLocaleConfig,
2669
- ht as DfActions,
2670
- bt as DfCheckbox,
2671
- gt as DfColor,
2672
- yt as DfDateTime,
2673
- wt as DfFile,
2674
- kt as DfInput,
2675
- sa as DfInputComponentProps,
2676
- Tl as DfInputComponents,
2677
- te as DfInputHint,
2678
- ne as DfLabel,
2679
- Ct as DfRtfEditor,
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,
2680
3650
  Vt as DfSelect,
2681
- jt as DfTextArea,
2682
- ua as DynamicFormsInputs,
2683
- ze as InputBase,
2684
- ul as Label,
2685
- vl as ResponsiveActionRenderOptions,
2686
- dl as ResponsiveRenderOptions,
2687
- xl as VuetifyComponents,
2688
- Ie as ckEditorLanguage,
2689
- se as defaultBaseProps,
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,
2690
3659
  nt as defaultDisplayStyle,
2691
- ia as dfInputComponentsByTag,
2692
- ml as getBreakpointName,
2693
- pt as getRenderOptionsForBreakpoint,
2694
- ot as responsiveBreakpoints,
2695
- ra as setCkEditorLanguage,
2696
- L as translatableStrings,
2697
- aa as translateStrings,
2698
- fl as useBreakpoint,
2699
- oe as useInputBase,
2700
- vt 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
2701
3669
  };
2702
3670
  //# sourceMappingURL=dynamicforms-vuetify-inputs.js.map