@dynamicforms/vuetify-inputs 0.6.3 → 0.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,64 +1,64 @@
1
- var st = Object.defineProperty, ut = Object.defineProperties;
2
- var ct = Object.getOwnPropertyDescriptors;
3
- var $e = Object.getOwnPropertySymbols;
4
- var dt = Object.prototype.hasOwnProperty, mt = Object.prototype.propertyIsEnumerable;
5
- var Ce = (e, n, o) => n in e ? st(e, n, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[n] = o, S = (e, n) => {
6
- for (var o in n || (n = {}))
7
- dt.call(n, o) && Ce(e, o, n[o]);
8
- if ($e)
9
- for (var o of $e(n))
10
- mt.call(n, o) && Ce(e, o, n[o]);
1
+ var nt = Object.defineProperty, ot = Object.defineProperties;
2
+ var lt = Object.getOwnPropertyDescriptors;
3
+ var Ee = Object.getOwnPropertySymbols;
4
+ var at = Object.prototype.hasOwnProperty, rt = Object.prototype.propertyIsEnumerable;
5
+ var Ce = (e, t, n) => t in e ? nt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, S = (e, t) => {
6
+ for (var n in t || (t = {}))
7
+ at.call(t, n) && Ce(e, n, t[n]);
8
+ if (Ee)
9
+ for (var n of Ee(t))
10
+ rt.call(t, n) && Ce(e, n, t[n]);
11
11
  return e;
12
- }, L = (e, n) => ut(e, ct(n));
13
- var Me = (e, n, o) => Ce(e, typeof n != "symbol" ? n + "" : n, o);
14
- var ye = (e, n, o) => new Promise((l, d) => {
15
- var t = (s) => {
12
+ }, L = (e, t) => ot(e, lt(t));
13
+ var $e = (e, t, n) => Ce(e, typeof t != "symbol" ? t + "" : t, n);
14
+ var ge = (e, t, n) => new Promise((l, a) => {
15
+ var r = (i) => {
16
16
  try {
17
- r(o.next(s));
18
- } catch (u) {
19
- d(u);
17
+ p(n.next(i));
18
+ } catch (d) {
19
+ a(d);
20
20
  }
21
- }, a = (s) => {
21
+ }, s = (i) => {
22
22
  try {
23
- r(o.throw(s));
24
- } catch (u) {
25
- d(u);
23
+ p(n.throw(i));
24
+ } catch (d) {
25
+ a(d);
26
26
  }
27
- }, r = (s) => s.done ? l(s.value) : Promise.resolve(s.value).then(t, a);
28
- r((o = o.apply(e, n)).next());
27
+ }, p = (i) => i.done ? l(i.value) : Promise.resolve(i.value).then(r, s);
28
+ p((n = n.apply(e, t)).next());
29
29
  });
30
- import * as Ne from "vue";
31
- import { defineComponent as U, mergeModels as Le, useModel as ft, ref as M, watch as ue, onMounted as Ze, markRaw as pt, onBeforeUnmount as Je, createBlock as E, openBlock as D, resolveDynamicComponent as be, version as ht, isRef as le, computed as T, resolveComponent as $, createElementBlock as W, normalizeClass as G, createCommentVNode as F, Fragment as Be, unref as i, createTextVNode as vt, toDisplayString as Pe, inject as Te, h as we, createSlots as Ee, withCtx as j, createVNode as I, renderSlot as se, normalizeProps as ee, guardReactiveProps as te, createElementVNode as oe, renderList as bt, withModifiers as gt, mergeDefaults as Y, mergeProps as R, normalizeStyle as et, toRefs as je, withKeys as Fe, useCssVars as yt, nextTick as Ue } from "vue";
32
- import { debounce as wt, isString as ne, isEmpty as he, isObjectLike as kt, isBoolean as Re, clone as Vt, toNumber as We, isNaN as ze, isArray as He, castArray as tt, first as nt, unionBy as _t } from "lodash-es";
33
- import { CachedIcon as ge } from "vue-cached-icon";
34
- import Ke, { MdString as jt, ValidationErrorRenderContent as Ct, DisplayMode as q, Action as Tt } from "@dynamicforms/vue-forms";
35
- import lt from "vue-markdown-render";
36
- import { useDisplay as Dt } from "vuetify";
37
- import { format as me, parse as At } from "date-fns";
38
- import { AccessibilityHelp as xt, Alignment as It, AutoImage as Bt, AutoLink as Et, Autosave as Pt, BalloonToolbar as St, BlockQuote as Ot, Bold as $t, CloudServices as Mt, Essentials as Nt, GeneralHtmlSupport as Lt, Heading as Ft, HorizontalLine as Ut, ImageBlock as Rt, ImageCaption as Wt, ImageInline as zt, ImageInsertViaUrl as Ht, ImageResize as Kt, ImageStyle as qt, ImageToolbar as Xt, ImageUpload as Gt, Indent as Yt, IndentBlock as Qt, Italic as Zt, Link as Jt, List as en, Autoformat as tn, MediaEmbed as nn, Paragraph as ln, PasteFromMarkdownExperimental as on, PasteFromOffice as an, SelectAll as rn, Style as sn, Table as un, TableCellProperties as cn, TableColumnResize as dn, TableProperties as mn, TableToolbar as fn, Undo as pn, TextTransformation as hn, Base64UploadAdapter as vn, ClassicEditor as bn } from "ckeditor5";
39
- import { VAutocomplete as gn } from "vuetify/components/VAutocomplete";
40
- import { VBtn as yn } from "vuetify/components/VBtn";
41
- import { VCheckbox as wn } from "vuetify/components/VCheckbox";
42
- import { VChip as kn } from "vuetify/components/VChip";
43
- import { VCombobox as Vn } from "vuetify/components/VCombobox";
44
- import { VColorPicker as _n } from "vuetify/components/VColorPicker";
45
- import { VConfirmEdit as jn } from "vuetify/components/VConfirmEdit";
46
- import { VDatePicker as Cn } from "vuetify/components/VDatePicker";
47
- import { VField as Tn } from "vuetify/components/VField";
48
- import { VFileInput as Dn } from "vuetify/components/VFileInput";
49
- import { VCol as An, VRow as xn } from "vuetify/components/VGrid";
50
- import { VIcon as In } from "vuetify/components/VIcon";
51
- import { VImg as Bn } from "vuetify/components/VImg";
52
- import { VInput as En } from "vuetify/components/VInput";
53
- import { VListItem as Pn } from "vuetify/components/VList";
54
- import { VMenu as Sn } from "vuetify/components/VMenu";
55
- import { VNumberInput as On } from "vuetify/components/VNumberInput";
56
- import { VProgressLinear as $n } from "vuetify/components/VProgressLinear";
57
- import { VSelect as Mn } from "vuetify/components/VSelect";
58
- import { VSwitch as Nn } from "vuetify/components/VSwitch";
59
- import { VTextarea as Ln } from "vuetify/components/VTextarea";
60
- import { VTextField as Fn } from "vuetify/components/VTextField";
61
- import { VTimePicker as Un } from "vuetify/components/VTimePicker";
30
+ import * as Ae from "vue";
31
+ import { defineComponent as O, mergeModels as Ne, useModel as it, ref as N, watch as se, onMounted as Ke, markRaw as st, onBeforeUnmount as Xe, createBlock as D, openBlock as V, resolveDynamicComponent as he, version as ut, isRef as ne, computed as w, resolveComponent as A, createElementBlock as W, normalizeClass as G, createCommentVNode as U, Fragment as Ie, unref as o, createTextVNode as ct, toDisplayString as De, inject as Te, h as we, createSlots as Pe, withCtx as g, createVNode as I, renderSlot as ie, normalizeProps as J, guardReactiveProps as ee, createElementVNode as oe, renderList as dt, withModifiers as mt, mergeDefaults as q, mergeProps as R, normalizeStyle as Ge, toRefs as je, withKeys as Fe, useCssVars as pt, nextTick as Me } from "vue";
32
+ import { debounce as ft, isString as te, isEmpty as fe, isObjectLike as vt, isBoolean as Le, clone as ht, toNumber as Ue, isNaN as Oe, isArray as Re, castArray as qe, first as Ye, unionBy as bt } from "lodash-es";
33
+ import { CachedIcon as be } from "vue-cached-icon";
34
+ import We, { MdString as gt, ValidationErrorRenderContent as wt, DisplayMode as K, Action as yt } from "@dynamicforms/vue-forms";
35
+ import Qe from "vue-markdown-render";
36
+ import { useDisplay as kt } from "vuetify";
37
+ import { format as de, parse as Vt } from "date-fns";
38
+ import { AccessibilityHelp as jt, Alignment as Ct, AutoImage as Tt, AutoLink as _t, Autosave as Bt, BalloonToolbar as It, BlockQuote as Pt, Bold as Dt, CloudServices as xt, Essentials as St, GeneralHtmlSupport as Et, Heading as $t, HorizontalLine as At, ImageBlock as Nt, ImageCaption as Ft, ImageInline as Mt, ImageInsertViaUrl as Lt, ImageResize as Ut, ImageStyle as Ot, ImageToolbar as Rt, ImageUpload as Wt, Indent as zt, IndentBlock as Ht, Italic as Kt, Link as Xt, List as Gt, Autoformat as qt, MediaEmbed as Yt, Paragraph as Qt, PasteFromMarkdownExperimental as Zt, PasteFromOffice as Jt, SelectAll as en, Style as tn, Table as nn, TableCellProperties as on, TableColumnResize as ln, TableProperties as an, TableToolbar as rn, Undo as sn, TextTransformation as un, Base64UploadAdapter as cn, ClassicEditor as dn } from "ckeditor5";
39
+ import { VAutocomplete as mn } from "vuetify/components/VAutocomplete";
40
+ import { VBtn as pn } from "vuetify/components/VBtn";
41
+ import { VCheckbox as fn } from "vuetify/components/VCheckbox";
42
+ import { VChip as vn } from "vuetify/components/VChip";
43
+ import { VCombobox as hn } from "vuetify/components/VCombobox";
44
+ import { VColorPicker as bn } from "vuetify/components/VColorPicker";
45
+ import { VConfirmEdit as gn } from "vuetify/components/VConfirmEdit";
46
+ import { VDatePicker as wn } from "vuetify/components/VDatePicker";
47
+ import { VField as yn } from "vuetify/components/VField";
48
+ import { VFileInput as kn } from "vuetify/components/VFileInput";
49
+ import { VCol as Vn, VRow as jn } from "vuetify/components/VGrid";
50
+ import { VIcon as Cn } from "vuetify/components/VIcon";
51
+ import { VImg as Tn } from "vuetify/components/VImg";
52
+ import { VInput as _n } from "vuetify/components/VInput";
53
+ import { VListItem as Bn } from "vuetify/components/VList";
54
+ import { VMenu as In } from "vuetify/components/VMenu";
55
+ import { VNumberInput as Pn } from "vuetify/components/VNumberInput";
56
+ import { VProgressLinear as Dn } from "vuetify/components/VProgressLinear";
57
+ import { VSelect as xn } from "vuetify/components/VSelect";
58
+ import { VSwitch as Sn } from "vuetify/components/VSwitch";
59
+ import { VTextarea as En } from "vuetify/components/VTextarea";
60
+ import { VTextField as $n } from "vuetify/components/VTextField";
61
+ import { VTimePicker as An } from "vuetify/components/VTimePicker";
62
62
  /**
63
63
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
64
64
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
@@ -67,17 +67,17 @@ import { VTimePicker as Un } from "vuetify/components/VTimePicker";
67
67
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
68
68
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
69
69
  */
70
- new Array(256).fill("").map((e, n) => ("0" + n.toString(16)).slice(-2));
70
+ new Array(256).fill("").map((e, t) => ("0" + t.toString(16)).slice(-2));
71
71
  /**
72
72
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
73
73
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
74
74
  */
75
- function Rn(e, n) {
76
- const o = e.extraPlugins || [];
75
+ function Nn(e, t) {
76
+ const n = e.extraPlugins || [];
77
77
  return L(S({}, e), {
78
78
  extraPlugins: [
79
- ...o,
80
- ...n.filter((l) => !o.includes(l))
79
+ ...n,
80
+ ...t.filter((l) => !n.includes(l))
81
81
  ]
82
82
  });
83
83
  }
@@ -85,30 +85,30 @@ function Rn(e, n) {
85
85
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
86
86
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
87
87
  */
88
- function ot(e) {
88
+ function Ze(e) {
89
89
  return !!e && /^\d+\.\d+\.\d+/.test(e);
90
90
  }
91
91
  /**
92
92
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
93
93
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
94
94
  */
95
- function at(e) {
96
- return e ? ["nightly", "alpha", "internal", "nightly-", "staging"].some((n) => e.includes(n)) : !1;
95
+ function Je(e) {
96
+ return e ? ["nightly", "alpha", "internal", "nightly-", "staging"].some((t) => e.includes(t)) : !1;
97
97
  }
98
- function Wn(e) {
99
- return ot(e) || at(e);
98
+ function Fn(e) {
99
+ return Ze(e) || Je(e);
100
100
  }
101
101
  /**
102
102
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
103
103
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
104
104
  */
105
- function zn(e) {
106
- if (!ot(e))
105
+ function Mn(e) {
106
+ if (!Ze(e))
107
107
  throw new Error(`Invalid semantic version: ${e || "<blank>"}.`);
108
- const [n, o, l] = e.split(".");
108
+ const [t, n, l] = e.split(".");
109
109
  return {
110
- major: Number.parseInt(n, 10),
111
- minor: Number.parseInt(o, 10),
110
+ major: Number.parseInt(t, 10),
111
+ minor: Number.parseInt(n, 10),
112
112
  patch: Number.parseInt(l, 10)
113
113
  };
114
114
  }
@@ -116,14 +116,14 @@ function zn(e) {
116
116
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
117
117
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
118
118
  */
119
- function Hn(e) {
120
- if (at(e))
119
+ function Ln(e) {
120
+ if (Je(e))
121
121
  return 3;
122
- const { major: n } = zn(e);
122
+ const { major: t } = Mn(e);
123
123
  switch (!0) {
124
- case n >= 44:
124
+ case t >= 44:
125
125
  return 3;
126
- case n >= 38:
126
+ case t >= 38:
127
127
  return 2;
128
128
  default:
129
129
  return 1;
@@ -133,10 +133,10 @@ function Hn(e) {
133
133
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
134
134
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
135
135
  */
136
- function Kn() {
137
- const { CKEDITOR_VERSION: e, CKEDITOR: n } = window;
138
- return Wn(e) ? {
139
- source: n ? "cdn" : "npm",
136
+ function Un() {
137
+ const { CKEDITOR_VERSION: e, CKEDITOR: t } = window;
138
+ return Fn(e) ? {
139
+ source: t ? "cdn" : "npm",
140
140
  version: e
141
141
  } : null;
142
142
  }
@@ -144,16 +144,16 @@ function Kn() {
144
144
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
145
145
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
146
146
  */
147
- function qn() {
148
- const e = Kn();
149
- return e ? Hn(e.version) : null;
147
+ function On() {
148
+ const e = Un();
149
+ return e ? Ln(e.version) : null;
150
150
  }
151
151
  /**
152
152
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
153
153
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
154
154
  */
155
- function rt(e, n) {
156
- switch (n || (n = qn() || void 0), n) {
155
+ function et(e, t) {
156
+ switch (t || (t = On() || void 0), t) {
157
157
  case 1:
158
158
  case 2:
159
159
  return e === void 0;
@@ -167,10 +167,10 @@ function rt(e, n) {
167
167
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
168
168
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
169
169
  */
170
- function Xn(e, n) {
170
+ function Rn(e, t) {
171
171
  return function(l) {
172
- rt(l.config.get("licenseKey")) || l.on("collectUsageData", (d, { setUsageData: t }) => {
173
- t(`integration.${e}`, n);
172
+ et(l.config.get("licenseKey")) || l.on("collectUsageData", (a, { setUsageData: r }) => {
173
+ r(`integration.${e}`, t);
174
174
  });
175
175
  };
176
176
  }
@@ -178,31 +178,31 @@ function Xn(e, n) {
178
178
  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
179
179
  * For licensing, see LICENSE.md.
180
180
  */
181
- const Gn = Xn(
181
+ const Wn = Rn(
182
182
  "vue",
183
183
  {
184
184
  version: "7.3.0",
185
- frameworkVersion: ht
185
+ frameworkVersion: ut
186
186
  }
187
187
  );
188
188
  /**
189
189
  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
190
190
  * For licensing, see LICENSE.md.
191
191
  */
192
- function Yn(e) {
193
- return rt(e.licenseKey) ? e : Rn(e, [
192
+ function zn(e) {
193
+ return et(e.licenseKey) ? e : Nn(e, [
194
194
  /**
195
195
  * This part of the code is not executed in open-source implementations using a GPL key.
196
196
  * It only runs when a specific license key is provided. If you are uncertain whether
197
197
  * this applies to your installation, please contact our support team.
198
198
  */
199
- Gn
199
+ Wn
200
200
  ]);
201
201
  }
202
- const De = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", Qn = 300, Zn = /* @__PURE__ */ U({
202
+ const _e = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", Hn = 300, Kn = /* @__PURE__ */ O({
203
203
  name: "CKEditor",
204
204
  __name: "ckeditor",
205
- props: /* @__PURE__ */ Le({
205
+ props: /* @__PURE__ */ Ne({
206
206
  editor: {},
207
207
  config: { default: () => ({}) },
208
208
  tagName: { default: "div" },
@@ -212,51 +212,51 @@ const De = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", Qn = 300, Zn =
212
212
  modelValue: { type: String, default: "" },
213
213
  modelModifiers: {}
214
214
  }),
215
- emits: /* @__PURE__ */ Le(["ready", "destroy", "blur", "focus", "input", "update:modelValue"], ["update:modelValue"]),
216
- setup(e, { expose: n, emit: o }) {
217
- const l = ft(e, "modelValue"), d = e, t = o, a = M(), r = M(), s = M();
218
- n({
219
- instance: r,
220
- lastEditorData: s
221
- }), ue(l, (m) => {
222
- r.value && m !== s.value && r.value.data.set(m);
223
- }), ue(() => d.disabled, (m) => {
224
- m ? r.value.enableReadOnlyMode(De) : r.value.disableReadOnlyMode(De);
215
+ emits: /* @__PURE__ */ Ne(["ready", "destroy", "blur", "focus", "input", "update:modelValue"], ["update:modelValue"]),
216
+ setup(e, { expose: t, emit: n }) {
217
+ const l = it(e, "modelValue"), a = e, r = n, s = N(), p = N(), i = N();
218
+ t({
219
+ instance: p,
220
+ lastEditorData: i
221
+ }), se(l, (m) => {
222
+ p.value && m !== i.value && p.value.data.set(m);
223
+ }), se(() => a.disabled, (m) => {
224
+ m ? p.value.enableReadOnlyMode(_e) : p.value.disableReadOnlyMode(_e);
225
225
  });
226
- function u() {
226
+ function d() {
227
227
  const m = window.CKEDITOR_VERSION;
228
228
  if (!m)
229
229
  return console.warn('Cannot find the "CKEDITOR_VERSION" in the "window" scope.');
230
- const [g] = m.split(".").map(Number);
231
- g >= 42 || m.startsWith("0.0.0") || console.warn("The <CKEditor> component requires using CKEditor 5 in version 42+ or nightly build.");
230
+ const [b] = m.split(".").map(Number);
231
+ b >= 42 || m.startsWith("0.0.0") || console.warn("The <CKEditor> component requires using CKEditor 5 in version 42+ or nightly build.");
232
232
  }
233
- function c(m) {
234
- const g = wt((f) => {
235
- if (d.disableTwoWayDataBinding)
233
+ function v(m) {
234
+ const b = ft((c) => {
235
+ if (a.disableTwoWayDataBinding)
236
236
  return;
237
- const b = s.value = m.data.get();
238
- t("update:modelValue", b, f, m), t("input", b, f, m);
239
- }, Qn, { leading: !0 });
240
- m.model.document.on("change:data", g), m.editing.view.document.on("focus", (f) => {
241
- t("focus", f, m);
242
- }), m.editing.view.document.on("blur", (f) => {
243
- t("blur", f, m);
237
+ const T = i.value = m.data.get();
238
+ r("update:modelValue", T, c, m), r("input", T, c, m);
239
+ }, Hn, { leading: !0 });
240
+ m.model.document.on("change:data", b), m.editing.view.document.on("focus", (c) => {
241
+ r("focus", c, m);
242
+ }), m.editing.view.document.on("blur", (c) => {
243
+ r("blur", c, m);
244
244
  });
245
245
  }
246
- return u(), Ze(() => {
247
- const m = Yn(
248
- Object.assign({}, d.config)
246
+ return d(), Ke(() => {
247
+ const m = zn(
248
+ Object.assign({}, a.config)
249
249
  );
250
- l.value && (m.initialData = l.value), d.editor.create(a.value, m).then((g) => {
251
- r.value = pt(g), c(g), l.value !== m.initialData && g.data.set(l.value), d.disabled && g.enableReadOnlyMode(De), t("ready", g);
252
- }).catch((g) => {
253
- console.error(g);
250
+ l.value && (m.initialData = l.value), a.editor.create(s.value, m).then((b) => {
251
+ p.value = st(b), v(b), l.value !== m.initialData && b.data.set(l.value), a.disabled && b.enableReadOnlyMode(_e), r("ready", b);
252
+ }).catch((b) => {
253
+ console.error(b);
254
254
  });
255
- }), Je(() => {
256
- r.value && (r.value.destroy(), r.value = void 0), t("destroy");
257
- }), (m, g) => (D(), E(be(m.tagName), {
255
+ }), Xe(() => {
256
+ p.value && (p.value.destroy(), p.value = void 0), r("destroy");
257
+ }), (m, b) => (V(), D(he(m.tagName), {
258
258
  ref_key: "element",
259
- ref: a
259
+ ref: s
260
260
  }, null, 512));
261
261
  }
262
262
  });
@@ -265,24 +265,24 @@ const De = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", Qn = 300, Zn =
265
265
  * For licensing, see LICENSE.md.
266
266
  */
267
267
  /* istanbul ignore if -- @preserve */
268
- if (!Ne.version || !Ne.version.startsWith("3."))
268
+ if (!Ae.version || !Ae.version.startsWith("3."))
269
269
  throw new Error(
270
270
  "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"
271
271
  );
272
- const Jn = {
272
+ const Xn = {
273
273
  /**
274
274
  * Installs the plugin, registering the `<ckeditor>` component.
275
275
  *
276
276
  * @param app The application instance.
277
277
  */
278
278
  install(e) {
279
- e.component("Ckeditor", Zn);
279
+ e.component("Ckeditor", Kn);
280
280
  }
281
281
  };
282
- function el(e) {
282
+ function Gn(e) {
283
283
  return e.one !== void 0;
284
284
  }
285
- const tl = {
285
+ const qn = {
286
286
  lessThanXSeconds: {
287
287
  present: {
288
288
  one: "manj kot {{count}} sekunda",
@@ -559,7 +559,7 @@ const tl = {
559
559
  }
560
560
  }
561
561
  };
562
- function nl(e) {
562
+ function Yn(e) {
563
563
  switch (e % 100) {
564
564
  case 1:
565
565
  return "one";
@@ -572,53 +572,53 @@ function nl(e) {
572
572
  return "other";
573
573
  }
574
574
  }
575
- const ll = (e, n, o) => {
576
- let l = "", d = "present";
577
- o != null && o.addSuffix && (o.comparison && o.comparison > 0 ? (d = "future", l = "čez ") : (d = "past", l = "pred "));
578
- const t = tl[e];
579
- if (typeof t == "string")
580
- l += t;
575
+ const Qn = (e, t, n) => {
576
+ let l = "", a = "present";
577
+ n != null && n.addSuffix && (n.comparison && n.comparison > 0 ? (a = "future", l = "čez ") : (a = "past", l = "pred "));
578
+ const r = qn[e];
579
+ if (typeof r == "string")
580
+ l += r;
581
581
  else {
582
- const a = nl(n);
583
- el(t) ? l += t[a].replace("{{count}}", String(n)) : l += t[d][a].replace("{{count}}", String(n));
582
+ const s = Yn(t);
583
+ Gn(r) ? l += r[s].replace("{{count}}", String(t)) : l += r[a][s].replace("{{count}}", String(t));
584
584
  }
585
585
  return l;
586
586
  };
587
- function Ae(e) {
588
- return (n = {}) => {
589
- const o = n.width ? String(n.width) : e.defaultWidth;
590
- return e.formats[o] || e.formats[e.defaultWidth];
587
+ function Be(e) {
588
+ return (t = {}) => {
589
+ const n = t.width ? String(t.width) : e.defaultWidth;
590
+ return e.formats[n] || e.formats[e.defaultWidth];
591
591
  };
592
592
  }
593
- const ol = {
593
+ const Zn = {
594
594
  full: "EEEE, dd. MMMM y",
595
595
  long: "dd. MMMM y",
596
596
  medium: "d. MMM y",
597
597
  short: "d. MM. yy"
598
- }, al = {
598
+ }, Jn = {
599
599
  full: "HH:mm:ss zzzz",
600
600
  long: "HH:mm:ss z",
601
601
  medium: "HH:mm:ss",
602
602
  short: "HH:mm"
603
- }, rl = {
603
+ }, eo = {
604
604
  full: "{{date}} {{time}}",
605
605
  long: "{{date}} {{time}}",
606
606
  medium: "{{date}} {{time}}",
607
607
  short: "{{date}} {{time}}"
608
- }, il = {
609
- date: Ae({
610
- formats: ol,
608
+ }, to = {
609
+ date: Be({
610
+ formats: Zn,
611
611
  defaultWidth: "full"
612
612
  }),
613
- time: Ae({
614
- formats: al,
613
+ time: Be({
614
+ formats: Jn,
615
615
  defaultWidth: "full"
616
616
  }),
617
- dateTime: Ae({
618
- formats: rl,
617
+ dateTime: Be({
618
+ formats: eo,
619
619
  defaultWidth: "full"
620
620
  })
621
- }, sl = {
621
+ }, no = {
622
622
  lastWeek: (e) => {
623
623
  switch (e.getDay()) {
624
624
  case 0:
@@ -647,34 +647,34 @@ const ol = {
647
647
  }
648
648
  },
649
649
  other: "P"
650
- }, ul = (e, n, o, l) => {
651
- const d = sl[e];
652
- return typeof d == "function" ? d(n) : d;
650
+ }, oo = (e, t, n, l) => {
651
+ const a = no[e];
652
+ return typeof a == "function" ? a(t) : a;
653
653
  };
654
- function fe(e) {
655
- return (n, o) => {
656
- const l = o != null && o.context ? String(o.context) : "standalone";
657
- let d;
654
+ function me(e) {
655
+ return (t, n) => {
656
+ const l = n != null && n.context ? String(n.context) : "standalone";
657
+ let a;
658
658
  if (l === "formatting" && e.formattingValues) {
659
- const a = e.defaultFormattingWidth || e.defaultWidth, r = o != null && o.width ? String(o.width) : a;
660
- d = e.formattingValues[r] || e.formattingValues[a];
659
+ const s = e.defaultFormattingWidth || e.defaultWidth, p = n != null && n.width ? String(n.width) : s;
660
+ a = e.formattingValues[p] || e.formattingValues[s];
661
661
  } else {
662
- const a = e.defaultWidth, r = o != null && o.width ? String(o.width) : e.defaultWidth;
663
- d = e.values[r] || e.values[a];
662
+ const s = e.defaultWidth, p = n != null && n.width ? String(n.width) : e.defaultWidth;
663
+ a = e.values[p] || e.values[s];
664
664
  }
665
- const t = e.argumentCallback ? e.argumentCallback(n) : n;
666
- return d[t];
665
+ const r = e.argumentCallback ? e.argumentCallback(t) : t;
666
+ return a[r];
667
667
  };
668
668
  }
669
- const cl = {
669
+ const lo = {
670
670
  narrow: ["pr. n. št.", "po n. št."],
671
671
  abbreviated: ["pr. n. št.", "po n. št."],
672
672
  wide: ["pred našim štetjem", "po našem štetju"]
673
- }, dl = {
673
+ }, ao = {
674
674
  narrow: ["1", "2", "3", "4"],
675
675
  abbreviated: ["1. čet.", "2. čet.", "3. čet.", "4. čet."],
676
676
  wide: ["1. četrtletje", "2. četrtletje", "3. četrtletje", "4. četrtletje"]
677
- }, ml = {
677
+ }, ro = {
678
678
  narrow: ["j", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"],
679
679
  abbreviated: [
680
680
  "jan.",
@@ -704,7 +704,7 @@ const cl = {
704
704
  "november",
705
705
  "december"
706
706
  ]
707
- }, fl = {
707
+ }, io = {
708
708
  narrow: ["n", "p", "t", "s", "č", "p", "s"],
709
709
  short: ["ned.", "pon.", "tor.", "sre.", "čet.", "pet.", "sob."],
710
710
  abbreviated: ["ned.", "pon.", "tor.", "sre.", "čet.", "pet.", "sob."],
@@ -717,7 +717,7 @@ const cl = {
717
717
  "petek",
718
718
  "sobota"
719
719
  ]
720
- }, pl = {
720
+ }, so = {
721
721
  narrow: {
722
722
  am: "d",
723
723
  pm: "p",
@@ -748,7 +748,7 @@ const cl = {
748
748
  evening: "večer",
749
749
  night: "noč"
750
750
  }
751
- }, hl = {
751
+ }, uo = {
752
752
  narrow: {
753
753
  am: "d",
754
754
  pm: "p",
@@ -779,88 +779,88 @@ const cl = {
779
779
  evening: "zvečer",
780
780
  night: "ponoči"
781
781
  }
782
- }, vl = (e, n) => Number(e) + ".", bl = {
783
- ordinalNumber: vl,
784
- era: fe({
785
- values: cl,
782
+ }, co = (e, t) => Number(e) + ".", mo = {
783
+ ordinalNumber: co,
784
+ era: me({
785
+ values: lo,
786
786
  defaultWidth: "wide"
787
787
  }),
788
- quarter: fe({
789
- values: dl,
788
+ quarter: me({
789
+ values: ao,
790
790
  defaultWidth: "wide",
791
791
  argumentCallback: (e) => e - 1
792
792
  }),
793
- month: fe({
794
- values: ml,
793
+ month: me({
794
+ values: ro,
795
795
  defaultWidth: "wide"
796
796
  }),
797
- day: fe({
798
- values: fl,
797
+ day: me({
798
+ values: io,
799
799
  defaultWidth: "wide"
800
800
  }),
801
- dayPeriod: fe({
802
- values: pl,
801
+ dayPeriod: me({
802
+ values: so,
803
803
  defaultWidth: "wide",
804
- formattingValues: hl,
804
+ formattingValues: uo,
805
805
  defaultFormattingWidth: "wide"
806
806
  })
807
807
  };
808
808
  function pe(e) {
809
- return (n, o = {}) => {
810
- const l = o.width, d = l && e.matchPatterns[l] || e.matchPatterns[e.defaultMatchWidth], t = n.match(d);
811
- if (!t)
809
+ return (t, n = {}) => {
810
+ const l = n.width, a = l && e.matchPatterns[l] || e.matchPatterns[e.defaultMatchWidth], r = t.match(a);
811
+ if (!r)
812
812
  return null;
813
- const a = t[0], r = l && e.parsePatterns[l] || e.parsePatterns[e.defaultParseWidth], s = Array.isArray(r) ? yl(r, (m) => m.test(a)) : (
813
+ const s = r[0], p = l && e.parsePatterns[l] || e.parsePatterns[e.defaultParseWidth], i = Array.isArray(p) ? fo(p, (m) => m.test(s)) : (
814
814
  // [TODO] -- I challenge you to fix the type
815
- gl(r, (m) => m.test(a))
815
+ po(p, (m) => m.test(s))
816
816
  );
817
- let u;
818
- u = e.valueCallback ? e.valueCallback(s) : s, u = o.valueCallback ? (
817
+ let d;
818
+ d = e.valueCallback ? e.valueCallback(i) : i, d = n.valueCallback ? (
819
819
  // [TODO] -- I challenge you to fix the type
820
- o.valueCallback(u)
821
- ) : u;
822
- const c = n.slice(a.length);
823
- return { value: u, rest: c };
820
+ n.valueCallback(d)
821
+ ) : d;
822
+ const v = t.slice(s.length);
823
+ return { value: d, rest: v };
824
824
  };
825
825
  }
826
- function gl(e, n) {
827
- for (const o in e)
828
- if (Object.prototype.hasOwnProperty.call(e, o) && n(e[o]))
829
- return o;
826
+ function po(e, t) {
827
+ for (const n in e)
828
+ if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n]))
829
+ return n;
830
830
  }
831
- function yl(e, n) {
832
- for (let o = 0; o < e.length; o++)
833
- if (n(e[o]))
834
- return o;
831
+ function fo(e, t) {
832
+ for (let n = 0; n < e.length; n++)
833
+ if (t(e[n]))
834
+ return n;
835
835
  }
836
- function wl(e) {
837
- return (n, o = {}) => {
838
- const l = n.match(e.matchPattern);
836
+ function vo(e) {
837
+ return (t, n = {}) => {
838
+ const l = t.match(e.matchPattern);
839
839
  if (!l) return null;
840
- const d = l[0], t = n.match(e.parsePattern);
841
- if (!t) return null;
842
- let a = e.valueCallback ? e.valueCallback(t[0]) : t[0];
843
- a = o.valueCallback ? o.valueCallback(a) : a;
844
- const r = n.slice(d.length);
845
- return { value: a, rest: r };
840
+ const a = l[0], r = t.match(e.parsePattern);
841
+ if (!r) return null;
842
+ let s = e.valueCallback ? e.valueCallback(r[0]) : r[0];
843
+ s = n.valueCallback ? n.valueCallback(s) : s;
844
+ const p = t.slice(a.length);
845
+ return { value: s, rest: p };
846
846
  };
847
847
  }
848
- const kl = /^(\d+)\./i, Vl = /\d+/i, _l = {
848
+ const ho = /^(\d+)\./i, bo = /\d+/i, go = {
849
849
  abbreviated: /^(pr\. n\. št\.|po n\. št\.)/i,
850
850
  wide: /^(pred Kristusom|pred na[sš]im [sš]tetjem|po Kristusu|po na[sš]em [sš]tetju|na[sš]ega [sš]tetja)/i
851
- }, jl = {
851
+ }, wo = {
852
852
  any: [/^pr/i, /^(po|na[sš]em)/i]
853
- }, Cl = {
853
+ }, yo = {
854
854
  narrow: /^[1234]/i,
855
855
  abbreviated: /^[1234]\.\s?[čc]et\.?/i,
856
856
  wide: /^[1234]\. [čc]etrtletje/i
857
- }, Tl = {
857
+ }, ko = {
858
858
  any: [/1/i, /2/i, /3/i, /4/i]
859
- }, Dl = {
859
+ }, Vo = {
860
860
  narrow: /^[jfmasond]/i,
861
861
  abbreviated: /^(jan\.|feb\.|mar\.|apr\.|maj|jun\.|jul\.|avg\.|sep\.|okt\.|nov\.|dec\.)/i,
862
862
  wide: /^(januar|februar|marec|april|maj|junij|julij|avgust|september|oktober|november|december)/i
863
- }, Al = {
863
+ }, jo = {
864
864
  narrow: [
865
865
  /^j/i,
866
866
  /^f/i,
@@ -903,18 +903,18 @@ const kl = /^(\d+)\./i, Vl = /\d+/i, _l = {
903
903
  /^n/i,
904
904
  /^d/i
905
905
  ]
906
- }, xl = {
906
+ }, Co = {
907
907
  narrow: /^[nptsčc]/i,
908
908
  short: /^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,
909
909
  abbreviated: /^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,
910
910
  wide: /^(nedelja|ponedeljek|torek|sreda|[cč]etrtek|petek|sobota)/i
911
- }, Il = {
911
+ }, To = {
912
912
  narrow: [/^n/i, /^p/i, /^t/i, /^s/i, /^[cč]/i, /^p/i, /^s/i],
913
913
  any: [/^n/i, /^po/i, /^t/i, /^sr/i, /^[cč]/i, /^pe/i, /^so/i]
914
- }, Bl = {
914
+ }, _o = {
915
915
  narrow: /^(d|po?|z?v|n|z?j|24\.00|12\.00)/i,
916
916
  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
917
- }, El = {
917
+ }, Bo = {
918
918
  narrow: {
919
919
  am: /^d/i,
920
920
  pm: /^p/i,
@@ -935,737 +935,60 @@ const kl = /^(\d+)\./i, Vl = /\d+/i, _l = {
935
935
  evening: /^z?ve/i,
936
936
  night: /(po)?no/i
937
937
  }
938
- }, Pl = {
939
- ordinalNumber: wl({
940
- matchPattern: kl,
941
- parsePattern: Vl,
938
+ }, Io = {
939
+ ordinalNumber: vo({
940
+ matchPattern: ho,
941
+ parsePattern: bo,
942
942
  valueCallback: (e) => parseInt(e, 10)
943
943
  }),
944
944
  era: pe({
945
- matchPatterns: _l,
945
+ matchPatterns: go,
946
946
  defaultMatchWidth: "wide",
947
- parsePatterns: jl,
947
+ parsePatterns: wo,
948
948
  defaultParseWidth: "any"
949
949
  }),
950
950
  quarter: pe({
951
- matchPatterns: Cl,
951
+ matchPatterns: yo,
952
952
  defaultMatchWidth: "wide",
953
- parsePatterns: Tl,
953
+ parsePatterns: ko,
954
954
  defaultParseWidth: "any",
955
955
  valueCallback: (e) => e + 1
956
956
  }),
957
957
  month: pe({
958
- matchPatterns: Dl,
958
+ matchPatterns: Vo,
959
959
  defaultMatchWidth: "wide",
960
- parsePatterns: Al,
960
+ parsePatterns: jo,
961
961
  defaultParseWidth: "wide"
962
962
  }),
963
963
  day: pe({
964
- matchPatterns: xl,
964
+ matchPatterns: Co,
965
965
  defaultMatchWidth: "wide",
966
- parsePatterns: Il,
966
+ parsePatterns: To,
967
967
  defaultParseWidth: "any"
968
968
  }),
969
969
  dayPeriod: pe({
970
- matchPatterns: Bl,
970
+ matchPatterns: _o,
971
971
  defaultMatchWidth: "any",
972
- parsePatterns: El,
972
+ parsePatterns: Bo,
973
973
  defaultParseWidth: "any"
974
974
  })
975
- }, Sl = {
975
+ }, Po = {
976
976
  code: "sl",
977
- formatDistance: ll,
978
- formatLong: il,
979
- formatRelative: ul,
980
- localize: bl,
981
- match: Pl,
977
+ formatDistance: Qn,
978
+ formatLong: to,
979
+ formatRelative: oo,
980
+ localize: mo,
981
+ match: Io,
982
982
  options: {
983
983
  weekStartsOn: 1,
984
984
  firstWeekContainsDate: 1
985
985
  }
986
- }, Ol = {
987
- dateTimeLocale: M(Sl),
986
+ }, Do = {
987
+ dateTimeLocale: N(Po),
988
988
  setDateTimeLocale(e) {
989
- le(e) ? this.dateTimeLocale = e : this.dateTimeLocale.value = e;
990
- }
991
- };
992
- function $l(e) {
993
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
994
- }
995
- var K = {}, qe;
996
- function Ml() {
997
- if (qe) return K;
998
- qe = 1, K.getAttrs = function(t, a, r) {
999
- const s = /[^\t\n\f />"'=]/, f = [];
1000
- let b = "", h = "", v = !0, p = !1;
1001
- for (let _ = a + r.leftDelimiter.length; _ < t.length; _++) {
1002
- if (t.slice(_, _ + r.rightDelimiter.length) === r.rightDelimiter) {
1003
- b !== "" && f.push([b, h]);
1004
- break;
1005
- }
1006
- const w = t.charAt(_);
1007
- if (w === "=" && v) {
1008
- v = !1;
1009
- continue;
1010
- }
1011
- if (w === "." && b === "") {
1012
- t.charAt(_ + 1) === "." ? (b = "css-module", _ += 1) : b = "class", v = !1;
1013
- continue;
1014
- }
1015
- if (w === "#" && b === "") {
1016
- b = "id", v = !1;
1017
- continue;
1018
- }
1019
- if (w === '"' && h === "" && !p) {
1020
- p = !0;
1021
- continue;
1022
- }
1023
- if (w === '"' && p) {
1024
- p = !1;
1025
- continue;
1026
- }
1027
- if (w === " " && !p) {
1028
- if (b === "")
1029
- continue;
1030
- f.push([b, h]), b = "", h = "", v = !0;
1031
- continue;
1032
- }
1033
- if (!(v && w.search(s) === -1)) {
1034
- if (v) {
1035
- b += w;
1036
- continue;
1037
- }
1038
- h += w;
1039
- }
1040
- }
1041
- if (r.allowedAttributes && r.allowedAttributes.length) {
1042
- const _ = r.allowedAttributes;
1043
- return f.filter(function(w) {
1044
- const V = w[0];
1045
- function C(N) {
1046
- return V === N || N instanceof RegExp && N.test(V);
1047
- }
1048
- return _.some(C);
1049
- });
1050
- }
1051
- return f;
1052
- }, K.addAttrs = function(t, a) {
1053
- for (let r = 0, s = t.length; r < s; ++r) {
1054
- const u = t[r][0];
1055
- u === "class" ? a.attrJoin("class", t[r][1]) : u === "css-module" ? a.attrJoin("css-module", t[r][1]) : a.attrPush(t[r]);
1056
- }
1057
- return a;
1058
- }, K.hasDelimiters = function(t, a) {
1059
- if (!t)
1060
- throw new Error('Parameter `where` not passed. Should be "start", "end" or "only".');
1061
- return function(r) {
1062
- const s = a.leftDelimiter.length + 1 + a.rightDelimiter.length;
1063
- if (!r || typeof r != "string" || r.length < s)
1064
- return !1;
1065
- function u(h) {
1066
- const v = h.charAt(a.leftDelimiter.length) === ".", p = h.charAt(a.leftDelimiter.length) === "#";
1067
- return v || p ? h.length >= s + 1 : h.length >= s;
1068
- }
1069
- let c, m, g, f;
1070
- const b = s - a.rightDelimiter.length;
1071
- switch (t) {
1072
- case "start":
1073
- g = r.slice(0, a.leftDelimiter.length), c = g === a.leftDelimiter ? 0 : -1, m = c === -1 ? -1 : r.indexOf(a.rightDelimiter, b), f = r.charAt(m + a.rightDelimiter.length), f && a.rightDelimiter.indexOf(f) !== -1 && (m = -1);
1074
- break;
1075
- case "end":
1076
- c = r.lastIndexOf(a.leftDelimiter), m = c === -1 ? -1 : r.indexOf(a.rightDelimiter, c + b), m = m === r.length - a.rightDelimiter.length ? m : -1;
1077
- break;
1078
- case "only":
1079
- g = r.slice(0, a.leftDelimiter.length), c = g === a.leftDelimiter ? 0 : -1, g = r.slice(r.length - a.rightDelimiter.length), m = g === a.rightDelimiter ? r.length - a.rightDelimiter.length : -1;
1080
- break;
1081
- default:
1082
- throw new Error(`Unexpected case ${t}, expected 'start', 'end' or 'only'`);
1083
- }
1084
- return c !== -1 && m !== -1 && u(r.substring(c, m + a.rightDelimiter.length));
1085
- };
1086
- }, K.removeDelimiter = function(t, a) {
1087
- const r = e(a.leftDelimiter), s = e(a.rightDelimiter), u = new RegExp(
1088
- "[ \\n]?" + r + "[^" + r + s + "]+" + s + "$"
1089
- ), c = t.search(u);
1090
- return c !== -1 ? t.slice(0, c) : t;
1091
- };
1092
- function e(t) {
1093
- return t.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&");
1094
- }
1095
- K.escapeRegExp = e, K.getMatchingOpeningToken = function(t, a) {
1096
- if (t[a].type === "softbreak")
1097
- return !1;
1098
- if (t[a].nesting === 0)
1099
- return t[a];
1100
- const r = t[a].level, s = t[a].type.replace("_close", "_open");
1101
- for (; a >= 0; --a)
1102
- if (t[a].type === s && t[a].level === r)
1103
- return t[a];
1104
- return !1;
1105
- };
1106
- const n = /[&<>"]/, o = /[&<>"]/g, l = {
1107
- "&": "&amp;",
1108
- "<": "&lt;",
1109
- ">": "&gt;",
1110
- '"': "&quot;"
1111
- };
1112
- function d(t) {
1113
- return l[t];
1114
- }
1115
- return K.escapeHtml = function(t) {
1116
- return n.test(t) ? t.replace(o, d) : t;
1117
- }, K;
1118
- }
1119
- var xe, Xe;
1120
- function Nl() {
1121
- if (Xe) return xe;
1122
- Xe = 1;
1123
- const e = Ml();
1124
- xe = (l) => {
1125
- const d = new RegExp("^ {0,3}[-*_]{3,} ?" + e.escapeRegExp(l.leftDelimiter) + "[^" + e.escapeRegExp(l.rightDelimiter) + "]");
1126
- return [
1127
- {
1128
- /**
1129
- * ```python {.cls}
1130
- * for i in range(10):
1131
- * print(i)
1132
- * ```
1133
- */
1134
- name: "fenced code blocks",
1135
- tests: [
1136
- {
1137
- shift: 0,
1138
- block: !0,
1139
- info: e.hasDelimiters("end", l)
1140
- }
1141
- ],
1142
- transform: (t, a) => {
1143
- const r = t[a], s = r.info.lastIndexOf(l.leftDelimiter), u = e.getAttrs(r.info, s, l);
1144
- e.addAttrs(u, r), r.info = e.removeDelimiter(r.info, l);
1145
- }
1146
- },
1147
- {
1148
- /**
1149
- * bla `click()`{.c} ![](img.png){.d}
1150
- *
1151
- * differs from 'inline attributes' as it does
1152
- * not have a closing tag (nesting: -1)
1153
- */
1154
- name: "inline nesting 0",
1155
- tests: [
1156
- {
1157
- shift: 0,
1158
- type: "inline",
1159
- children: [
1160
- {
1161
- shift: -1,
1162
- type: (t) => t === "image" || t === "code_inline"
1163
- },
1164
- {
1165
- shift: 0,
1166
- type: "text",
1167
- content: e.hasDelimiters("start", l)
1168
- }
1169
- ]
1170
- }
1171
- ],
1172
- /**
1173
- * @param {!number} j
1174
- */
1175
- transform: (t, a, r) => {
1176
- const s = t[a].children[r], u = s.content.indexOf(l.rightDelimiter), c = t[a].children[r - 1], m = e.getAttrs(s.content, 0, l);
1177
- e.addAttrs(m, c), s.content.length === u + l.rightDelimiter.length ? t[a].children.splice(r, 1) : s.content = s.content.slice(u + l.rightDelimiter.length);
1178
- }
1179
- },
1180
- {
1181
- /**
1182
- * | h1 |
1183
- * | -- |
1184
- * | c1 |
1185
- *
1186
- * {.c}
1187
- */
1188
- name: "tables",
1189
- tests: [
1190
- {
1191
- // let this token be i, such that for-loop continues at
1192
- // next token after tokens.splice
1193
- shift: 0,
1194
- type: "table_close"
1195
- },
1196
- {
1197
- shift: 1,
1198
- type: "paragraph_open"
1199
- },
1200
- {
1201
- shift: 2,
1202
- type: "inline",
1203
- content: e.hasDelimiters("only", l)
1204
- }
1205
- ],
1206
- transform: (t, a) => {
1207
- const r = t[a + 2], s = e.getMatchingOpeningToken(t, a), u = e.getAttrs(r.content, 0, l);
1208
- e.addAttrs(u, s), t.splice(a + 1, 3);
1209
- }
1210
- },
1211
- {
1212
- /**
1213
- * | A | B |
1214
- * | -- | -- |
1215
- * | 1 | 2 |
1216
- *
1217
- * | C | D |
1218
- * | -- | -- |
1219
- *
1220
- * only `| A | B |` sets the colsnum metadata
1221
- */
1222
- name: "tables thead metadata",
1223
- tests: [
1224
- {
1225
- shift: 0,
1226
- type: "tr_close"
1227
- },
1228
- {
1229
- shift: 1,
1230
- type: "thead_close"
1231
- },
1232
- {
1233
- shift: 2,
1234
- type: "tbody_open"
1235
- }
1236
- ],
1237
- transform: (t, a) => {
1238
- const r = e.getMatchingOpeningToken(t, a), s = t[a - 1];
1239
- let u = 0, c = a;
1240
- for (; --c; ) {
1241
- if (t[c] === r) {
1242
- t[c - 1].meta = Object.assign({}, t[c + 2].meta, { colsnum: u });
1243
- break;
1244
- }
1245
- u += (t[c].level === s.level && t[c].type === s.type) >> 0;
1246
- }
1247
- t[a + 2].meta = Object.assign({}, t[a + 2].meta, { colsnum: u });
1248
- }
1249
- },
1250
- {
1251
- /**
1252
- * | A | B | C | D |
1253
- * | -- | -- | -- | -- |
1254
- * | 1 | 11 | 111 | 1111 {rowspan=3} |
1255
- * | 2 {colspan=2 rowspan=2} | 22 | 222 | 2222 |
1256
- * | 3 | 33 | 333 | 3333 |
1257
- */
1258
- name: "tables tbody calculate",
1259
- tests: [
1260
- {
1261
- shift: 0,
1262
- type: "tbody_close",
1263
- hidden: !1
1264
- }
1265
- ],
1266
- /**
1267
- * @param {number} i index of the tbody ending
1268
- */
1269
- transform: (t, a) => {
1270
- let r = a - 2;
1271
- for (; r > 0 && t[--r].type !== "tbody_open"; ) ;
1272
- const s = t[r].meta.colsnum >> 0;
1273
- if (s < 2)
1274
- return;
1275
- const u = t[a].level + 2;
1276
- for (let c = r; c < a; c++) {
1277
- if (t[c].level > u)
1278
- continue;
1279
- const m = t[c], g = m.hidden ? 0 : m.attrGet("rowspan") >> 0, f = m.hidden ? 0 : m.attrGet("colspan") >> 0;
1280
- if (g > 1) {
1281
- let b = s - (f > 0 ? f : 1);
1282
- for (let h = c, v = g; v > 1; h++)
1283
- t[h].type == "tr_open" && (t[h].meta = Object.assign({}, t[h].meta), t[h].meta && t[h].meta.colsnum && (b -= 1), t[h].meta.colsnum = b, v--);
1284
- }
1285
- if (m.type == "tr_open" && m.meta && m.meta.colsnum) {
1286
- const b = m.meta.colsnum;
1287
- for (let h = c, v = 0; h < a; h++) {
1288
- if (t[h].type == "td_open")
1289
- v += 1;
1290
- else if (t[h].type == "tr_close")
1291
- break;
1292
- v > b && (t[h].hidden || o(t[h]));
1293
- }
1294
- }
1295
- if (f > 1) {
1296
- const b = [];
1297
- let h = c + 3, v = s;
1298
- for (let w = c; w > r; w--)
1299
- if (t[w].type == "tr_open") {
1300
- v = t[w].meta && t[w].meta.colsnum || v;
1301
- break;
1302
- } else t[w].type === "td_open" && b.unshift(w);
1303
- for (let w = c + 2; w < a; w++)
1304
- if (t[w].type == "tr_close") {
1305
- h = w;
1306
- break;
1307
- } else t[w].type == "td_open" && b.push(w);
1308
- const p = b.indexOf(c);
1309
- let _ = v - p;
1310
- _ = _ > f ? f : _, f > _ && m.attrSet("colspan", _ + "");
1311
- for (let w = b.slice(v + 1 - s - _)[0]; w < h; w++)
1312
- t[w].hidden || o(t[w]);
1313
- }
1314
- }
1315
- }
1316
- },
1317
- {
1318
- /**
1319
- * *emphasis*{.with attrs=1}
1320
- */
1321
- name: "inline attributes",
1322
- tests: [
1323
- {
1324
- shift: 0,
1325
- type: "inline",
1326
- children: [
1327
- {
1328
- shift: -1,
1329
- nesting: -1
1330
- // closing inline tag, </em>{.a}
1331
- },
1332
- {
1333
- shift: 0,
1334
- type: "text",
1335
- content: e.hasDelimiters("start", l)
1336
- }
1337
- ]
1338
- }
1339
- ],
1340
- /**
1341
- * @param {!number} j
1342
- */
1343
- transform: (t, a, r) => {
1344
- const s = t[a].children[r], u = s.content, c = e.getAttrs(u, 0, l), m = e.getMatchingOpeningToken(t[a].children, r - 1);
1345
- e.addAttrs(c, m), s.content = u.slice(u.indexOf(l.rightDelimiter) + l.rightDelimiter.length);
1346
- }
1347
- },
1348
- {
1349
- /**
1350
- * - item
1351
- * {.a}
1352
- */
1353
- name: "list softbreak",
1354
- tests: [
1355
- {
1356
- shift: -2,
1357
- type: "list_item_open"
1358
- },
1359
- {
1360
- shift: 0,
1361
- type: "inline",
1362
- children: [
1363
- {
1364
- position: -2,
1365
- type: "softbreak"
1366
- },
1367
- {
1368
- position: -1,
1369
- type: "text",
1370
- content: e.hasDelimiters("only", l)
1371
- }
1372
- ]
1373
- }
1374
- ],
1375
- /**
1376
- * @param {!number} j
1377
- */
1378
- transform: (t, a, r) => {
1379
- const u = t[a].children[r].content, c = e.getAttrs(u, 0, l);
1380
- let m = a - 2;
1381
- for (; t[m - 1] && t[m - 1].type !== "ordered_list_open" && t[m - 1].type !== "bullet_list_open"; )
1382
- m--;
1383
- e.addAttrs(c, t[m - 1]), t[a].children = t[a].children.slice(0, -2);
1384
- }
1385
- },
1386
- {
1387
- /**
1388
- * - nested list
1389
- * - with double \n
1390
- * {.a} <-- apply to nested ul
1391
- *
1392
- * {.b} <-- apply to root <ul>
1393
- */
1394
- name: "list double softbreak",
1395
- tests: [
1396
- {
1397
- // let this token be i = 0 so that we can erase
1398
- // the <p>{.a}</p> tokens below
1399
- shift: 0,
1400
- type: (t) => t === "bullet_list_close" || t === "ordered_list_close"
1401
- },
1402
- {
1403
- shift: 1,
1404
- type: "paragraph_open"
1405
- },
1406
- {
1407
- shift: 2,
1408
- type: "inline",
1409
- content: e.hasDelimiters("only", l),
1410
- children: (t) => t.length === 1
1411
- },
1412
- {
1413
- shift: 3,
1414
- type: "paragraph_close"
1415
- }
1416
- ],
1417
- transform: (t, a) => {
1418
- const s = t[a + 2].content, u = e.getAttrs(s, 0, l), c = e.getMatchingOpeningToken(t, a);
1419
- e.addAttrs(u, c), t.splice(a + 1, 3);
1420
- }
1421
- },
1422
- {
1423
- /**
1424
- * - end of {.list-item}
1425
- */
1426
- name: "list item end",
1427
- tests: [
1428
- {
1429
- shift: -2,
1430
- type: "list_item_open"
1431
- },
1432
- {
1433
- shift: 0,
1434
- type: "inline",
1435
- children: [
1436
- {
1437
- position: -1,
1438
- type: "text",
1439
- content: e.hasDelimiters("end", l)
1440
- }
1441
- ]
1442
- }
1443
- ],
1444
- /**
1445
- * @param {!number} j
1446
- */
1447
- transform: (t, a, r) => {
1448
- const s = t[a].children[r], u = s.content, c = e.getAttrs(u, u.lastIndexOf(l.leftDelimiter), l);
1449
- e.addAttrs(c, t[a - 2]);
1450
- const m = u.slice(0, u.lastIndexOf(l.leftDelimiter));
1451
- s.content = n(m) !== " " ? m : m.slice(0, -1);
1452
- }
1453
- },
1454
- {
1455
- /**
1456
- * something with softbreak
1457
- * {.cls}
1458
- */
1459
- name: `
1460
- {.a} softbreak then curly in start`,
1461
- tests: [
1462
- {
1463
- shift: 0,
1464
- type: "inline",
1465
- children: [
1466
- {
1467
- position: -2,
1468
- type: "softbreak"
1469
- },
1470
- {
1471
- position: -1,
1472
- type: "text",
1473
- content: e.hasDelimiters("only", l)
1474
- }
1475
- ]
1476
- }
1477
- ],
1478
- /**
1479
- * @param {!number} j
1480
- */
1481
- transform: (t, a, r) => {
1482
- const s = t[a].children[r], u = e.getAttrs(s.content, 0, l);
1483
- let c = a + 1;
1484
- for (; t[c + 1] && t[c + 1].nesting === -1; )
1485
- c++;
1486
- const m = e.getMatchingOpeningToken(t, c);
1487
- e.addAttrs(u, m), t[a].children = t[a].children.slice(0, -2);
1488
- }
1489
- },
1490
- {
1491
- /**
1492
- * horizontal rule --- {#id}
1493
- */
1494
- name: "horizontal rule",
1495
- tests: [
1496
- {
1497
- shift: 0,
1498
- type: "paragraph_open"
1499
- },
1500
- {
1501
- shift: 1,
1502
- type: "inline",
1503
- children: (t) => t.length === 1,
1504
- content: (t) => t.match(d) !== null
1505
- },
1506
- {
1507
- shift: 2,
1508
- type: "paragraph_close"
1509
- }
1510
- ],
1511
- transform: (t, a) => {
1512
- const r = t[a];
1513
- r.type = "hr", r.tag = "hr", r.nesting = 0;
1514
- const s = t[a + 1].content, u = s.lastIndexOf(l.leftDelimiter), c = e.getAttrs(s, u, l);
1515
- e.addAttrs(c, r), r.markup = s, t.splice(a + 1, 2);
1516
- }
1517
- },
1518
- {
1519
- /**
1520
- * end of {.block}
1521
- */
1522
- name: "end of block",
1523
- tests: [
1524
- {
1525
- shift: 0,
1526
- type: "inline",
1527
- children: [
1528
- {
1529
- position: -1,
1530
- content: e.hasDelimiters("end", l),
1531
- type: (t) => t !== "code_inline" && t !== "math_inline"
1532
- }
1533
- ]
1534
- }
1535
- ],
1536
- /**
1537
- * @param {!number} j
1538
- */
1539
- transform: (t, a, r) => {
1540
- const s = t[a].children[r], u = s.content, c = e.getAttrs(u, u.lastIndexOf(l.leftDelimiter), l);
1541
- let m = a + 1;
1542
- do
1543
- if (t[m] && t[m].nesting === -1)
1544
- break;
1545
- while (m++ < t.length);
1546
- const g = e.getMatchingOpeningToken(t, m);
1547
- e.addAttrs(c, g);
1548
- const f = u.slice(0, u.lastIndexOf(l.leftDelimiter));
1549
- s.content = n(f) !== " " ? f : f.slice(0, -1);
1550
- }
1551
- }
1552
- ];
1553
- };
1554
- function n(l) {
1555
- return l.slice(-1)[0];
989
+ ne(e) ? this.dateTimeLocale = e : this.dateTimeLocale.value = e;
1556
990
  }
1557
- function o(l) {
1558
- l.hidden = !0, l.children && l.children.forEach((d) => (d.content = "", o(d), void 0));
1559
- }
1560
- return xe;
1561
- }
1562
- var Ie, Ge;
1563
- function Ll() {
1564
- if (Ge) return Ie;
1565
- Ge = 1;
1566
- const e = Nl(), n = {
1567
- leftDelimiter: "{",
1568
- rightDelimiter: "}",
1569
- allowedAttributes: []
1570
- };
1571
- Ie = function(s, u) {
1572
- let c = Object.assign({}, n);
1573
- c = Object.assign(c, u);
1574
- const m = e(c);
1575
- function g(f) {
1576
- const b = f.tokens;
1577
- for (let h = 0; h < b.length; h++)
1578
- for (let v = 0; v < m.length; v++) {
1579
- const p = m[v];
1580
- let _ = null;
1581
- if (p.tests.every((V) => {
1582
- const C = o(b, h, V);
1583
- return C.j !== null && (_ = C.j), C.match;
1584
- }))
1585
- try {
1586
- p.transform(b, h, _), (p.name === "inline attributes" || p.name === "inline nesting 0") && v--;
1587
- } catch (V) {
1588
- console.error(`markdown-it-attrs: Error in pattern '${p.name}': ${V.message}`), console.error(V.stack);
1589
- }
1590
- }
1591
- }
1592
- s.core.ruler.before("linkify", "curly_attributes", g);
1593
- };
1594
- function o(r, s, u) {
1595
- const c = {
1596
- match: !1,
1597
- j: null
1598
- // position of child
1599
- }, m = u.shift !== void 0 ? s + u.shift : u.position;
1600
- if (u.shift !== void 0 && m < 0)
1601
- return c;
1602
- const g = t(r, m);
1603
- if (g === void 0)
1604
- return c;
1605
- for (const f of Object.keys(u))
1606
- if (!(f === "shift" || f === "position")) {
1607
- if (g[f] === void 0)
1608
- return c;
1609
- if (f === "children" && l(u.children)) {
1610
- if (g.children.length === 0)
1611
- return c;
1612
- let b;
1613
- const h = u.children, v = g.children;
1614
- if (h.every((p) => p.position !== void 0)) {
1615
- if (b = h.every((p) => o(v, p.position, p).match), b) {
1616
- const p = a(h).position;
1617
- c.j = p >= 0 ? p : v.length + p;
1618
- }
1619
- } else
1620
- for (let p = 0; p < v.length; p++)
1621
- if (b = h.every((_) => o(v, p, _).match), b) {
1622
- c.j = p;
1623
- break;
1624
- }
1625
- if (b === !1)
1626
- return c;
1627
- continue;
1628
- }
1629
- switch (typeof u[f]) {
1630
- case "boolean":
1631
- case "number":
1632
- case "string":
1633
- if (g[f] !== u[f])
1634
- return c;
1635
- break;
1636
- case "function":
1637
- if (!u[f](g[f]))
1638
- return c;
1639
- break;
1640
- case "object":
1641
- if (d(u[f])) {
1642
- if (u[f].every((h) => h(g[f])) === !1)
1643
- return c;
1644
- break;
1645
- }
1646
- // fall through for objects !== arrays of functions
1647
- default:
1648
- throw new Error(`Unknown type of pattern test (key: ${f}). Test should be of type boolean, number, string, function or array of functions.`);
1649
- }
1650
- }
1651
- return c.match = !0, c;
1652
- }
1653
- function l(r) {
1654
- return Array.isArray(r) && r.length && r.every((s) => typeof s == "object");
1655
- }
1656
- function d(r) {
1657
- return Array.isArray(r) && r.length && r.every((s) => typeof s == "function");
1658
- }
1659
- function t(r, s) {
1660
- return s >= 0 ? r[s] : r[r.length + s];
1661
- }
1662
- function a(r) {
1663
- return r.slice(-1)[0] || {};
1664
- }
1665
- return Ie;
1666
- }
1667
- var Fl = Ll();
1668
- const Ul = /* @__PURE__ */ $l(Fl), ae = /* @__PURE__ */ U({
991
+ }, le = /* @__PURE__ */ O({
1669
992
  __name: "df-label",
1670
993
  props: {
1671
994
  data: {},
@@ -1673,115 +996,116 @@ const Ul = /* @__PURE__ */ $l(Fl), ae = /* @__PURE__ */ U({
1673
996
  allowWrap: { type: Boolean }
1674
997
  },
1675
998
  setup(e) {
1676
- const n = e, o = T(() => n.data ? n.data.label : n.label.text);
1677
- return (l, d) => {
1678
- const t = $("v-img");
1679
- return D(), W("div", {
999
+ const t = e, n = w(() => t.data ? t.data.label : t.label.text);
1000
+ return (l, a) => {
1001
+ const r = A("v-img");
1002
+ return V(), W("div", {
1680
1003
  class: G(["df-label", { "allow-wrap": l.allowWrap }])
1681
1004
  }, [
1682
- l.label.icon ? (D(), W(Be, { key: 0 }, [
1683
- l.label.iconComponent === "v-icon" ? (D(), E(i(ge), {
1005
+ l.label.icon ? (V(), W(Ie, { key: 0 }, [
1006
+ l.label.iconComponent === "v-icon" ? (V(), D(o(be), {
1684
1007
  key: 0,
1685
1008
  name: l.label.icon,
1686
1009
  size: "1.25em"
1687
- }, null, 8, ["name"])) : l.label.iconComponent === "v-img" ? (D(), E(t, {
1010
+ }, null, 8, ["name"])) : l.label.iconComponent === "v-img" ? (V(), D(r, {
1688
1011
  key: 1,
1689
1012
  class: "icon",
1690
1013
  src: l.label.icon
1691
- }, null, 8, ["src"])) : (D(), E(be(l.label.iconComponent), {
1014
+ }, null, 8, ["src"])) : (V(), D(he(l.label.iconComponent), {
1692
1015
  key: 2,
1693
1016
  src: l.label.icon
1694
1017
  }, null, 8, ["src"]))
1695
- ], 64)) : F("", !0),
1696
- o.value instanceof i(jt) ? (D(), E(i(lt), {
1018
+ ], 64)) : U("", !0),
1019
+ n.value instanceof o(gt) ? (V(), D(o(Qe), {
1697
1020
  key: 1,
1698
1021
  class: "markdown",
1699
- source: o.value.toString(),
1700
- plugins: [i(Ul)]
1701
- }, null, 8, ["source", "plugins"])) : (D(), W(Be, { key: 2 }, [
1702
- vt(Pe(o.value), 1)
1022
+ source: n.value.toString(),
1023
+ options: n.value.options,
1024
+ plugins: n.value.plugins
1025
+ }, null, 8, ["source", "options", "plugins"])) : (V(), W(Ie, { key: 2 }, [
1026
+ ct(De(n.value), 1)
1703
1027
  ], 64))
1704
1028
  ], 2);
1705
1029
  };
1706
1030
  }
1707
- }), it = Symbol("vuetifyInputsSettingsKey");
1708
- class Rl {
1709
- constructor(n, o, l = "v-icon") {
1710
- this.text = n, this.icon = o, this.iconComponent = l;
1031
+ }), tt = Symbol("vuetifyInputsSettingsKey");
1032
+ class xo {
1033
+ constructor(t, n, l = "v-icon") {
1034
+ this.text = t, this.icon = n, this.iconComponent = l;
1711
1035
  }
1712
1036
  }
1713
- const Q = { enabled: void 0, clearable: !0 };
1714
- function X(e, n) {
1715
- const o = Te(it, {}), l = M(null), d = T({
1037
+ const Y = { enabled: void 0, clearable: !0 };
1038
+ function X(e, t) {
1039
+ const n = Te(tt, {}), l = N(null), a = w({
1716
1040
  get() {
1717
1041
  return e.control ? e.control.value : e.modelValue === void 0 ? l.value : e.modelValue;
1718
1042
  },
1719
- set(V) {
1720
- e.control && (e.control.value = V), e.modelValue === void 0 && (l.value = V), n("update:modelValue", V);
1043
+ set(k) {
1044
+ e.control && (e.control.value = k), e.modelValue === void 0 && (l.value = k), t("update:modelValue", k);
1721
1045
  }
1722
1046
  });
1723
- if (e.control && !(e.control instanceof Ke.FieldBase))
1047
+ if (e.control && !(e.control instanceof We.FieldBase))
1724
1048
  throw new Error("control prop is not a vue-form control instance");
1725
- const t = T({
1049
+ const r = w({
1726
1050
  get() {
1727
1051
  return e.control.touched;
1728
1052
  },
1729
- set(V) {
1730
- e.control.touched = V;
1053
+ set(k) {
1054
+ e.control.touched = k;
1731
1055
  }
1732
- }), a = e.control ? t : M(!1), r = T(() => e.control ? e.control.valid : !0), s = T(
1733
- () => e.control ? e.control.errors : (e.errors || []).map((V) => new Ct(V))
1734
- ), u = T(() => a.value && s.value.length > 0 ? " " : void 0), c = T(() => e.control ? e.control.enabled : e.enabled !== !1), m = T(
1735
- () => e.control ? e.control.visibility : e.visibility || Ke.DisplayMode.FULL
1736
- ), g = T(
1737
- () => ne(e.label || "") ? new Rl(e.label || "") : e.label
1738
- ), f = T(() => e.placeholder || ""), b = T(() => e.helpText || ""), h = T(() => e.hint || ""), v = T(() => e.cssClass || ""), p = T(
1056
+ }), s = e.control ? r : N(!1), p = w(() => e.control ? e.control.valid : !0), i = w(
1057
+ () => e.control ? e.control.errors : (e.errors || []).map((k) => new wt(k))
1058
+ ), d = w(() => s.value && i.value.length > 0 ? " " : void 0), v = w(() => e.control ? e.control.enabled : e.enabled !== !1), m = w(
1059
+ () => e.control ? e.control.visibility : e.visibility || We.DisplayMode.FULL
1060
+ ), b = w(
1061
+ () => te(e.label || "") ? new xo(e.label || "") : e.label
1062
+ ), c = w(() => e.placeholder || ""), T = w(() => e.helpText || ""), _ = w(() => e.hint || ""), y = w(() => e.cssClass || ""), h = w(
1739
1063
  () => {
1740
- var V, C, N;
1741
- return (N = (C = (V = e.density) != null ? V : Te("field-density", null)) != null ? C : o.defaultDensity) != null ? N : "default";
1064
+ var k, j, M;
1065
+ return (M = (j = (k = e.density) != null ? k : Te("field-density", null)) != null ? j : n.defaultDensity) != null ? M : "default";
1742
1066
  }
1743
- ), _ = T(() => p.value === "inline" ? "default" : p.value), w = T(
1067
+ ), E = w(() => h.value === "inline" ? "default" : h.value), F = w(
1744
1068
  () => {
1745
- var V, C, N;
1746
- return (N = (C = (V = e.variant) != null ? V : Te("field-variant", null)) != null ? C : o.defaultVariant) != null ? N : "underlined";
1069
+ var k, j, M;
1070
+ return (M = (j = (k = e.variant) != null ? k : Te("field-variant", null)) != null ? j : n.defaultVariant) != null ? M : "underlined";
1747
1071
  }
1748
1072
  );
1749
1073
  return {
1750
- value: d,
1751
- valid: r,
1752
- enabled: c,
1753
- errors: s,
1074
+ value: a,
1075
+ valid: p,
1076
+ enabled: v,
1077
+ errors: i,
1754
1078
  visibility: m,
1755
- label: g,
1756
- touched: a,
1757
- density: p.value,
1758
- densityClass: T(() => `df-density-${p.value}`),
1759
- vuetifyBindings: T(() => {
1760
- var V;
1079
+ label: b,
1080
+ touched: s,
1081
+ density: h.value,
1082
+ densityClass: w(() => `df-density-${h.value}`),
1083
+ vuetifyBindings: w(() => {
1084
+ var k;
1761
1085
  return S({
1762
- name: (V = e.control) == null ? void 0 : V.fieldName,
1763
- class: v.value,
1764
- density: _.value,
1765
- variant: w.value,
1766
- label: g.value.text,
1767
- messages: u.value,
1768
- errorMessages: u.value,
1086
+ name: (k = e.control) == null ? void 0 : k.fieldName,
1087
+ class: y.value,
1088
+ density: E.value,
1089
+ variant: F.value,
1090
+ label: b.value.text,
1091
+ messages: d.value,
1092
+ errorMessages: d.value,
1769
1093
  // 'error-count': errors?.value.length || 0,
1770
- readonly: !c.value,
1771
- disabled: !c.value,
1772
- placeholder: f.value,
1773
- "persistent-placeholder": !he(f.value),
1774
- hint: h.value,
1094
+ readonly: !v.value,
1095
+ disabled: !v.value,
1096
+ placeholder: c.value,
1097
+ "persistent-placeholder": !fe(c.value),
1098
+ hint: _.value,
1775
1099
  persistentHint: !0,
1776
1100
  // we want persistent hint always
1777
1101
  hideDetails: "auto",
1778
1102
  // we want to hide the hint element when hint isn't there
1779
- helpText: b.value
1103
+ helpText: T.value
1780
1104
  }, e.passthroughAttrs || {});
1781
1105
  })
1782
1106
  };
1783
1107
  }
1784
- const re = /* @__PURE__ */ U({
1108
+ const ae = /* @__PURE__ */ O({
1785
1109
  __name: "messages-widget",
1786
1110
  props: {
1787
1111
  errors: {},
@@ -1789,33 +1113,37 @@ const re = /* @__PURE__ */ U({
1789
1113
  classes: { default: "text-error" }
1790
1114
  },
1791
1115
  setup(e) {
1792
- const n = e, o = () => {
1793
- if (n.message !== " ") return we("span", { class: n.classes }, n.message);
1116
+ const t = e, n = () => {
1117
+ if (t.message !== " ") return we("span", { class: t.classes }, t.message);
1794
1118
  const l = [];
1795
- return n.errors.forEach((d) => {
1796
- switch (d.componentName) {
1119
+ return t.errors.forEach((a) => {
1120
+ switch (a.componentName) {
1797
1121
  case "template":
1798
- l.push(we("div", { class: n.classes }, d.componentBody));
1122
+ l.push(we("div", { class: t.classes }, a.componentBody));
1799
1123
  break;
1800
- case "vue-markdown":
1124
+ case "vue-markdown": {
1125
+ const r = a.componentBindings;
1801
1126
  l.push(
1802
- we(lt, {
1803
- class: [n.classes, "df-messages-widget-markdown"],
1804
- source: d.componentBindings.source
1127
+ we(Qe, {
1128
+ class: [t.classes, "df-messages-widget-markdown"],
1129
+ source: r.source,
1130
+ options: r.options,
1131
+ plugins: r.plugins
1805
1132
  })
1806
1133
  );
1807
1134
  break;
1135
+ }
1808
1136
  default:
1809
1137
  l.push(
1810
- we(d.componentName, L(S({ class: n.classes }, d.componentBindings), { innerHTML: d.componentBody }))
1138
+ we(a.componentName, L(S({ class: t.classes }, a.componentBindings), { innerHTML: a.componentBody }))
1811
1139
  );
1812
1140
  break;
1813
1141
  }
1814
1142
  }), l;
1815
1143
  };
1816
- return (l, d) => (D(), E(o));
1144
+ return (l, a) => (V(), D(n));
1817
1145
  }
1818
- }), Wl = { class: "d-flex w-100 df-style-resetting" }, Se = /* @__PURE__ */ U({
1146
+ }), So = { class: "d-flex w-100 df-style-resetting" }, xe = /* @__PURE__ */ O({
1819
1147
  __name: "input-base",
1820
1148
  props: {
1821
1149
  control: {},
@@ -1835,69 +1163,69 @@ const re = /* @__PURE__ */ U({
1835
1163
  loading: { type: Boolean }
1836
1164
  },
1837
1165
  emits: ["update:modelValue", "click:clear", "blur"],
1838
- setup(e, { emit: n }) {
1839
- const o = e, l = n, { errors: d, label: t, value: a, touched: r, visibility: s, vuetifyBindings: u } = X(o, l), c = T(() => !!(i(o.clearable) && i(a))), m = M(!1);
1840
- function g(f) {
1841
- m.value = f, f || (r.value = !0, l("blur"));
1166
+ setup(e, { emit: t }) {
1167
+ const n = e, l = t, { errors: a, label: r, value: s, touched: p, visibility: i, vuetifyBindings: d } = X(n, l), v = w(() => !!(o(n.clearable) && o(s))), m = N(!1);
1168
+ function b(c) {
1169
+ m.value = c, c || (p.value = !0, l("blur"));
1842
1170
  }
1843
- return (f, b) => {
1844
- const h = $("v-field"), v = $("v-input");
1845
- return i(s) !== i(q).SUPPRESS ? (D(), E(v, {
1171
+ return (c, T) => {
1172
+ const _ = A("v-field"), y = A("v-input");
1173
+ return o(i) !== o(K).SUPPRESS ? (V(), D(y, {
1846
1174
  key: 0,
1847
- name: i(u).name,
1848
- density: i(u).density,
1849
- hint: i(u).hint,
1850
- "persistent-hint": i(u).persistentHint,
1851
- "hide-details": i(u).hideDetails,
1852
- "error-messages": i(u).errorMessages,
1175
+ name: o(d).name,
1176
+ density: o(d).density,
1177
+ hint: o(d).hint,
1178
+ "persistent-hint": o(d).persistentHint,
1179
+ "hide-details": o(d).hideDetails,
1180
+ "error-messages": o(d).errorMessages,
1853
1181
  class: G([
1854
- f.cssClass,
1182
+ c.cssClass,
1855
1183
  {
1856
- "d-none": i(s) === i(q).HIDDEN,
1857
- invisible: i(s) === i(q).INVISIBLE
1184
+ "d-none": o(i) === o(K).HIDDEN,
1185
+ invisible: o(i) === o(K).INVISIBLE
1858
1186
  }
1859
1187
  ])
1860
- }, Ee({
1861
- message: j(({ message: p }) => [
1862
- I(re, {
1863
- message: p,
1864
- errors: i(d)
1188
+ }, Pe({
1189
+ message: g(({ message: h }) => [
1190
+ I(ae, {
1191
+ message: h,
1192
+ errors: o(a)
1865
1193
  }, null, 8, ["message", "errors"])
1866
1194
  ]),
1867
- default: j(() => [
1868
- I(h, {
1869
- variant: i(u).variant,
1870
- density: i(u).density,
1871
- label: i(u).label,
1872
- disabled: i(u).disabled,
1873
- clearable: c.value,
1195
+ default: g(() => [
1196
+ I(_, {
1197
+ variant: o(d).variant,
1198
+ density: o(d).density,
1199
+ label: o(d).label,
1200
+ disabled: o(d).disabled,
1201
+ clearable: v.value,
1874
1202
  "persistent-clear": !0,
1875
- dirty: !!i(a),
1203
+ dirty: !!o(s),
1876
1204
  active: m.value,
1877
- loading: f.loading,
1878
- "onClick:clear": b[0] || (b[0] = (p) => l("click:clear")),
1879
- "onUpdate:focused": b[1] || (b[1] = (p) => g(p))
1880
- }, Ee({
1881
- label: j((p) => [
1882
- I(ae, {
1883
- data: p,
1884
- label: i(t)
1205
+ loading: c.loading,
1206
+ "onClick:clear": T[0] || (T[0] = (h) => l("click:clear")),
1207
+ "onUpdate:focused": T[1] || (T[1] = (h) => b(h))
1208
+ }, Pe({
1209
+ label: g((h) => [
1210
+ I(le, {
1211
+ data: h,
1212
+ label: o(r)
1885
1213
  }, null, 8, ["data", "label"])
1886
1214
  ]),
1887
- default: j((p) => [
1888
- oe("div", Wl, [
1889
- se(f.$slots, "default", ee(te(p)))
1215
+ default: g((h) => [
1216
+ oe("div", So, [
1217
+ ie(c.$slots, "default", J(ee(h)))
1890
1218
  ])
1891
1219
  ]),
1892
- loader: j((p) => [
1893
- se(f.$slots, "loader", ee(te(p)))
1220
+ loader: g((h) => [
1221
+ ie(c.$slots, "loader", J(ee(h)))
1894
1222
  ]),
1895
1223
  _: 2
1896
1224
  }, [
1897
- f.$slots["prepend-inner"] ? {
1225
+ c.$slots["prepend-inner"] ? {
1898
1226
  name: "prepend-inner",
1899
- fn: j((p) => [
1900
- se(f.$slots, "prepend-inner", ee(te(p)))
1227
+ fn: g((h) => [
1228
+ ie(c.$slots, "prepend-inner", J(ee(h)))
1901
1229
  ]),
1902
1230
  key: "0"
1903
1231
  } : void 0
@@ -1905,14 +1233,14 @@ const re = /* @__PURE__ */ U({
1905
1233
  ]),
1906
1234
  _: 2
1907
1235
  }, [
1908
- f.$slots.prepend ? {
1236
+ c.$slots.prepend ? {
1909
1237
  name: "prepend",
1910
- fn: j((p) => [
1911
- se(f.$slots, "prepend", ee(te(p)))
1238
+ fn: g((h) => [
1239
+ ie(c.$slots, "prepend", J(ee(h)))
1912
1240
  ]),
1913
1241
  key: "0"
1914
1242
  } : void 0
1915
- ]), 1032, ["name", "density", "hint", "persistent-hint", "hide-details", "error-messages", "class"])) : F("", !0);
1243
+ ]), 1032, ["name", "density", "hint", "persistent-hint", "hide-details", "error-messages", "class"])) : U("", !0);
1916
1244
  };
1917
1245
  }
1918
1246
  }), ve = {
@@ -1920,78 +1248,78 @@ const re = /* @__PURE__ */ U({
1920
1248
  No: "No",
1921
1249
  Close: "Close"
1922
1250
  };
1923
- function Ko(e) {
1924
- Object.keys(ve).forEach((n) => {
1925
- ve[n] = e(n);
1251
+ function $l(e) {
1252
+ Object.keys(ve).forEach((t) => {
1253
+ ve[t] = e(t);
1926
1254
  });
1927
1255
  }
1928
1256
  var z = /* @__PURE__ */ ((e) => (e[e.BUTTON = 0] = "BUTTON", e[e.TEXT = 1] = "TEXT", e))(z || {});
1929
- const Ye = 0;
1257
+ const ze = 0;
1930
1258
  ((e) => {
1931
- function n(d) {
1932
- return d.toUpperCase() === "BUTTON" ? 0 : d.toUpperCase() === "TEXT" ? 1 : Ye;
1259
+ function t(a) {
1260
+ return a.toUpperCase() === "BUTTON" ? 0 : a.toUpperCase() === "TEXT" ? 1 : ze;
1933
1261
  }
1934
- e.fromString = n;
1935
- function o(d) {
1936
- const t = typeof d == "number" ? d : e.fromString(d);
1937
- return Object.values(e).includes(t) ? t : Ye;
1262
+ e.fromString = t;
1263
+ function n(a) {
1264
+ const r = typeof a == "number" ? a : e.fromString(a);
1265
+ return Object.values(e).includes(r) ? r : ze;
1938
1266
  }
1939
- e.fromAny = o;
1940
- function l(d) {
1941
- const t = typeof d == "number" ? d : e.fromString(d);
1942
- return Object.values(e).includes(t);
1267
+ e.fromAny = n;
1268
+ function l(a) {
1269
+ const r = typeof a == "number" ? a : e.fromString(a);
1270
+ return Object.values(e).includes(r);
1943
1271
  }
1944
1272
  e.isDefined = l;
1945
1273
  })(z || (z = {}));
1946
1274
  Object.freeze(z);
1947
- const Qe = ["xs", "sm", "md", "lg", "xl"];
1948
- class zl {
1949
- constructor(n) {
1950
- Me(this, "_value");
1951
- this._value = this.cleanBreakpoint(n, !0), n && Qe.forEach((o) => {
1952
- const l = this.cleanBreakpoint(n[o]);
1953
- l && (this._value[o] = l);
1275
+ const He = ["xs", "sm", "md", "lg", "xl"];
1276
+ class Eo {
1277
+ constructor(t) {
1278
+ $e(this, "_value");
1279
+ this._value = this.cleanBreakpoint(t, !0), t && He.forEach((n) => {
1280
+ const l = this.cleanBreakpoint(t[n]);
1281
+ l && (this._value[n] = l);
1954
1282
  });
1955
1283
  }
1956
- getOptionsForBreakpoint(n) {
1957
- const o = this.cleanBreakpoint(this._value), l = Object.keys(o);
1958
- for (const d of Qe) {
1959
- const t = this._value[d];
1960
- for (const a of l)
1961
- (t == null ? void 0 : t[a]) != null && (o[a] = t[a]);
1962
- if (d === n) break;
1284
+ getOptionsForBreakpoint(t) {
1285
+ const n = this.cleanBreakpoint(this._value), l = Object.keys(n);
1286
+ for (const a of He) {
1287
+ const r = this._value[a];
1288
+ for (const s of l)
1289
+ (r == null ? void 0 : r[s]) != null && (n[s] = r[s]);
1290
+ if (a === t) break;
1963
1291
  }
1964
- return o;
1292
+ return n;
1965
1293
  }
1966
1294
  }
1967
- function Hl(e) {
1295
+ function $o(e) {
1968
1296
  return e.xlAndUp.value ? "xl" : e.lgAndUp.value ? "lg" : e.mdAndUp.value ? "md" : e.smAndUp.value ? "sm" : "xs";
1969
1297
  }
1970
- function Kl() {
1971
- const e = Dt();
1972
- return T(() => Hl(e));
1298
+ function Ao() {
1299
+ const e = kt();
1300
+ return w(() => $o(e));
1973
1301
  }
1974
- class ql extends zl {
1975
- cleanBreakpoint(n, o = !1) {
1976
- if ((!n || !kt(n)) && !o) return null;
1302
+ class No extends Eo {
1303
+ cleanBreakpoint(t, n = !1) {
1304
+ if ((!t || !vt(t)) && !n) return null;
1977
1305
  const l = {};
1978
- return o && (l.renderAs = z.BUTTON, l.showLabel = !0, l.showIcon = !0), n && (n.renderAs != null && (l.renderAs = z.fromAny(n.renderAs)), ne(n.label) && (l.label = n.label), ne(n.icon) && (l.icon = n.icon), Re(n.showLabel) && (l.showLabel = n.showLabel), Re(n.showIcon) && (l.showIcon = n.showIcon)), Object.keys(l).length ? l : null;
1306
+ return n && (l.renderAs = z.BUTTON, l.showLabel = !0, l.showIcon = !0), t && (t.renderAs != null && (l.renderAs = z.fromAny(t.renderAs)), te(t.label) && (l.label = t.label), te(t.icon) && (l.icon = t.icon), Le(t.showLabel) && (l.showLabel = t.showLabel), Le(t.showIcon) && (l.showIcon = t.showIcon)), Object.keys(l).length ? l : null;
1979
1307
  }
1980
1308
  }
1981
- class Ve extends Tt {
1982
- static create(n) {
1983
- return super.create(n);
1309
+ class ke extends yt {
1310
+ static create(t) {
1311
+ return super.create(t);
1984
1312
  }
1985
- getBreakpointValue(n) {
1986
- return T(() => {
1987
- const l = new ql(this.value).getOptionsForBreakpoint(n.value);
1313
+ getBreakpointValue(t) {
1314
+ return w(() => {
1315
+ const l = new No(this.value).getOptionsForBreakpoint(t.value);
1988
1316
  return {
1989
1317
  name: l.name,
1990
1318
  label: l.showLabel ? l.label : void 0,
1991
1319
  icon: l.showIcon ? l.icon : void 0,
1992
1320
  renderAs: l.renderAs,
1993
- showLabel: ne(l.label) && !he(l.label) ? l.showLabel : !1,
1994
- showIcon: ne(l.icon) && !he(l.icon) ? l.showIcon : !1
1321
+ showLabel: te(l.label) && !fe(l.label) ? l.showLabel : !1,
1322
+ showIcon: te(l.icon) && !fe(l.icon) ? l.showIcon : !1
1995
1323
  };
1996
1324
  });
1997
1325
  }
@@ -2002,20 +1330,20 @@ class Ve extends Tt {
2002
1330
  return this.value.showLabel ? this.value.label : void 0;
2003
1331
  }
2004
1332
  get showLabel() {
2005
- return ne(this.value.label) && !he(this.value.label) ? this.value.showLabel : !1;
1333
+ return te(this.value.label) && !fe(this.value.label) ? this.value.showLabel : !1;
2006
1334
  }
2007
1335
  get icon() {
2008
1336
  return this.value.showIcon ? this.value.icon : void 0;
2009
1337
  }
2010
1338
  get showIcon() {
2011
- return ne(this.value.icon) && !he(this.value.icon) ? this.value.showIcon : !1;
1339
+ return te(this.value.icon) && !fe(this.value.icon) ? this.value.showIcon : !1;
2012
1340
  }
2013
1341
  get renderAs() {
2014
1342
  return this.value.renderAs;
2015
1343
  }
2016
- static closeAction(n) {
1344
+ static closeAction(t) {
2017
1345
  var l;
2018
- const o = L(S({}, n != null ? n : {}), {
1346
+ const n = L(S({}, t != null ? t : {}), {
2019
1347
  // any properties in data should overwrite properties in the constant
2020
1348
  value: {
2021
1349
  name: "close",
@@ -2026,11 +1354,11 @@ class Ve extends Tt {
2026
1354
  showIcon: !0
2027
1355
  }
2028
1356
  });
2029
- return o.value = S(S({}, o.value), (l = n == null ? void 0 : n.value) != null ? l : {}), Ve.create(o);
1357
+ return n.value = S(S({}, n.value), (l = t == null ? void 0 : t.value) != null ? l : {}), ke.create(n);
2030
1358
  }
2031
- static yesAction(n) {
1359
+ static yesAction(t) {
2032
1360
  var l;
2033
- const o = L(S({}, n != null ? n : {}), {
1361
+ const n = L(S({}, t != null ? t : {}), {
2034
1362
  // any properties in data should overwrite properties in the constant
2035
1363
  value: {
2036
1364
  name: "yes",
@@ -2041,11 +1369,11 @@ class Ve extends Tt {
2041
1369
  showIcon: !0
2042
1370
  }
2043
1371
  });
2044
- return o.value = S(S({}, o.value), (l = n == null ? void 0 : n.value) != null ? l : {}), Ve.create(o);
1372
+ return n.value = S(S({}, n.value), (l = t == null ? void 0 : t.value) != null ? l : {}), ke.create(n);
2045
1373
  }
2046
- static noAction(n) {
1374
+ static noAction(t) {
2047
1375
  var l;
2048
- const o = L(S({}, n != null ? n : {}), {
1376
+ const n = L(S({}, t != null ? t : {}), {
2049
1377
  // any properties in data should overwrite properties in the constant
2050
1378
  value: {
2051
1379
  name: "no",
@@ -2056,13 +1384,13 @@ class Ve extends Tt {
2056
1384
  showIcon: !0
2057
1385
  }
2058
1386
  });
2059
- return o.value = S(S({}, o.value), (l = n == null ? void 0 : n.value) != null ? l : {}), Ve.create(o);
1387
+ return n.value = S(S({}, n.value), (l = t == null ? void 0 : t.value) != null ? l : {}), ke.create(n);
2060
1388
  }
2061
1389
  }
2062
- const Xl = {
1390
+ const Fo = {
2063
1391
  key: 1,
2064
1392
  style: { width: "0.5rem" }
2065
- }, Gl = { key: 2 }, Yl = /* @__PURE__ */ U({
1393
+ }, Mo = { key: 2 }, Lo = /* @__PURE__ */ O({
2066
1394
  __name: "df-actions",
2067
1395
  props: {
2068
1396
  actions: {},
@@ -2070,43 +1398,43 @@ const Xl = {
2070
1398
  showAsGroup: { default: "no" }
2071
1399
  },
2072
1400
  setup(e) {
2073
- const n = e, o = Kl(), l = T(() => i(n.actions)), d = T(
2074
- () => l.value.map((t) => S({
2075
- action: t
2076
- }, i(t.getBreakpointValue(o))))
1401
+ const t = e, n = Ao(), l = w(() => o(t.actions)), a = w(
1402
+ () => l.value.map((r) => S({
1403
+ action: r
1404
+ }, o(r.getBreakpointValue(n))))
2077
1405
  );
2078
- return (t, a) => {
2079
- const r = $("v-btn");
2080
- return l.value.length > 0 ? (D(), W("div", {
1406
+ return (r, s) => {
1407
+ const p = A("v-btn");
1408
+ return l.value.length > 0 ? (V(), W("div", {
2081
1409
  key: 0,
2082
1410
  class: G(["text-end df-actions", {
2083
- "button-group": t.showAsGroup === "grouped" || t.showAsGroup === "grouped-no-borders",
2084
- "with-border": t.showAsGroup === "grouped"
1411
+ "button-group": r.showAsGroup === "grouped" || r.showAsGroup === "grouped-no-borders",
1412
+ "with-border": r.showAsGroup === "grouped"
2085
1413
  }])
2086
1414
  }, [
2087
- (D(!0), W(Be, null, bt(d.value, (s, u) => (D(), E(r, {
2088
- key: u,
2089
- variant: s.renderAs === i(z).BUTTON ? "tonal" : "text",
1415
+ (V(!0), W(Ie, null, dt(a.value, (i, d) => (V(), D(p, {
1416
+ key: d,
1417
+ variant: i.renderAs === o(z).BUTTON ? "tonal" : "text",
2090
1418
  elevation: 0,
2091
- size: t.buttonSize,
2092
- onClick: gt((c) => s.action.execute(c), ["stop"])
1419
+ size: r.buttonSize,
1420
+ onClick: mt((v) => i.action.execute(v), ["stop"])
2093
1421
  }, {
2094
- default: j(() => [
2095
- s.icon ? (D(), E(i(ge), {
1422
+ default: g(() => [
1423
+ i.icon ? (V(), D(o(be), {
2096
1424
  key: 0,
2097
- name: s.icon
2098
- }, null, 8, ["name"])) : F("", !0),
2099
- s.icon && s.label ? (D(), W("span", Xl)) : F("", !0),
2100
- s.label ? (D(), W("span", Gl, Pe(s.label), 1)) : F("", !0)
1425
+ name: i.icon
1426
+ }, null, 8, ["name"])) : U("", !0),
1427
+ i.icon && i.label ? (V(), W("span", Fo)) : U("", !0),
1428
+ i.label ? (V(), W("span", Mo, De(i.label), 1)) : U("", !0)
2101
1429
  ]),
2102
1430
  _: 2
2103
1431
  }, 1032, ["variant", "size", "onClick"]))), 128))
2104
- ], 2)) : F("", !0);
1432
+ ], 2)) : U("", !0);
2105
1433
  };
2106
1434
  }
2107
- }), Ql = /* @__PURE__ */ U({
1435
+ }), Uo = /* @__PURE__ */ O({
2108
1436
  __name: "df-checkbox",
2109
- props: /* @__PURE__ */ Y({
1437
+ props: /* @__PURE__ */ q({
2110
1438
  allowNull: { type: Boolean },
2111
1439
  control: {},
2112
1440
  modelValue: {},
@@ -2122,54 +1450,54 @@ const Xl = {
2122
1450
  passthroughAttrs: {},
2123
1451
  density: {},
2124
1452
  variant: {}
2125
- }, L(S({}, Q), { allowNull: !1 })),
1453
+ }, L(S({}, Y), { allowNull: !1 })),
2126
1454
  emits: ["update:modelValue", "click:clear"],
2127
- setup(e, { emit: n }) {
2128
- const o = e, l = n, { densityClass: d, errors: t, label: a, touched: r, value: s, vuetifyBindings: u } = X(o, l), c = T(() => o.allowNull && s.value == null), m = T({
1455
+ setup(e, { emit: t }) {
1456
+ const n = e, l = t, { densityClass: a, errors: r, label: s, touched: p, value: i, vuetifyBindings: d } = X(n, l), v = w(() => n.allowNull && i.value == null), m = w({
2129
1457
  get() {
2130
- return s.value;
1458
+ return i.value;
2131
1459
  },
2132
1460
  set() {
2133
1461
  }
2134
1462
  });
2135
- function g() {
2136
- const f = Vt(s.value);
2137
- f === !0 ? s.value = o.allowNull ? null : !1 : s.value = f === !1;
1463
+ function b() {
1464
+ const c = ht(i.value);
1465
+ c === !0 ? i.value = n.allowNull ? null : !1 : i.value = c === !1;
2138
1466
  }
2139
- return (f, b) => {
2140
- const h = $("v-checkbox");
2141
- return D(), E(h, R({
1467
+ return (c, T) => {
1468
+ const _ = A("v-checkbox");
1469
+ return V(), D(_, R({
2142
1470
  modelValue: m.value,
2143
- "onUpdate:modelValue": b[0] || (b[0] = (v) => m.value = v)
2144
- }, i(u), {
1471
+ "onUpdate:modelValue": T[0] || (T[0] = (y) => m.value = y)
1472
+ }, o(d), {
2145
1473
  density: "compact",
2146
- class: i(d),
2147
- indeterminate: c.value,
1474
+ class: o(a),
1475
+ indeterminate: v.value,
2148
1476
  "false-value": !1,
2149
1477
  "true-value": !0,
2150
- onChange: g,
2151
- onBlur: b[1] || (b[1] = (v) => r.value = !0)
1478
+ onChange: b,
1479
+ onBlur: T[1] || (T[1] = (y) => p.value = !0)
2152
1480
  }), {
2153
- label: j((v) => [
2154
- I(i(ae), {
1481
+ label: g((y) => [
1482
+ I(o(le), {
2155
1483
  "allow-wrap": !0,
2156
- data: v,
2157
- label: i(a)
1484
+ data: y,
1485
+ label: o(s)
2158
1486
  }, null, 8, ["data", "label"])
2159
1487
  ]),
2160
- message: j(({ message: v }) => [
2161
- I(i(re), {
2162
- message: v,
2163
- errors: i(t)
1488
+ message: g(({ message: y }) => [
1489
+ I(o(ae), {
1490
+ message: y,
1491
+ errors: o(r)
2164
1492
  }, null, 8, ["message", "errors"])
2165
1493
  ]),
2166
1494
  _: 1
2167
1495
  }, 16, ["modelValue", "class", "indeterminate"]);
2168
1496
  };
2169
1497
  }
2170
- }), Zl = /* @__PURE__ */ U({
1498
+ }), Oo = /* @__PURE__ */ O({
2171
1499
  __name: "df-color",
2172
- props: /* @__PURE__ */ Y({
1500
+ props: /* @__PURE__ */ q({
2173
1501
  allowNull: { type: Boolean },
2174
1502
  control: {},
2175
1503
  modelValue: {},
@@ -2185,52 +1513,52 @@ const Xl = {
2185
1513
  passthroughAttrs: {},
2186
1514
  density: {},
2187
1515
  variant: {}
2188
- }, L(S({}, Q), { allowNull: !1 })),
1516
+ }, L(S({}, Y), { allowNull: !1 })),
2189
1517
  emits: ["update:modelValue", "click:clear"],
2190
- setup(e, { emit: n }) {
2191
- const o = e, l = n, { densityClass: d, errors: t, label: a, touched: r, value: s, vuetifyBindings: u } = X(o, l), c = M(!1), m = T(() => [
2192
- (g) => o.control || !g && o.allowNull || /^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$/.test(g) ? !0 : "Not a valid hex string."
1518
+ setup(e, { emit: t }) {
1519
+ const n = e, l = t, { densityClass: a, errors: r, label: s, touched: p, value: i, vuetifyBindings: d } = X(n, l), v = N(!1), m = w(() => [
1520
+ (b) => n.control || !b && n.allowNull || /^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$/.test(b) ? !0 : "Not a valid hex string."
2193
1521
  ]);
2194
- return (g, f) => {
2195
- const b = $("v-color-picker"), h = $("v-menu"), v = $("v-text-field");
2196
- return D(), E(v, R({
2197
- modelValue: i(s),
2198
- "onUpdate:modelValue": f[2] || (f[2] = (p) => le(s) ? s.value = p : null)
2199
- }, i(u), {
2200
- class: i(d),
2201
- clearable: g.allowNull,
1522
+ return (b, c) => {
1523
+ const T = A("v-color-picker"), _ = A("v-menu"), y = A("v-text-field");
1524
+ return V(), D(y, R({
1525
+ modelValue: o(i),
1526
+ "onUpdate:modelValue": c[2] || (c[2] = (h) => ne(i) ? i.value = h : null)
1527
+ }, o(d), {
1528
+ class: o(a),
1529
+ clearable: b.allowNull,
2202
1530
  type: "text",
2203
1531
  rules: m.value,
2204
- onBlur: f[3] || (f[3] = (p) => r.value = !0)
1532
+ onBlur: c[3] || (c[3] = (h) => p.value = !0)
2205
1533
  }), {
2206
- label: j((p) => [
2207
- I(i(ae), {
2208
- data: p,
2209
- label: i(a)
1534
+ label: g((h) => [
1535
+ I(o(le), {
1536
+ data: h,
1537
+ label: o(s)
2210
1538
  }, null, 8, ["data", "label"])
2211
1539
  ]),
2212
- message: j(({ message: p }) => [
2213
- I(i(re), {
2214
- message: p,
2215
- errors: i(t)
1540
+ message: g(({ message: h }) => [
1541
+ I(o(ae), {
1542
+ message: h,
1543
+ errors: o(r)
2216
1544
  }, null, 8, ["message", "errors"])
2217
1545
  ]),
2218
- "prepend-inner": j(() => [
1546
+ "prepend-inner": g(() => [
2219
1547
  oe("div", {
2220
- style: et([{ width: "24px", height: "24px", "border-radius": "4px", border: "1px solid #ccc" }, { backgroundColor: i(s) }])
1548
+ style: Ge([{ width: "24px", height: "24px", "border-radius": "4px", border: "1px solid #ccc" }, { backgroundColor: o(i) }])
2221
1549
  }, null, 4)
2222
1550
  ]),
2223
- default: j(() => [
2224
- I(h, {
2225
- modelValue: c.value,
2226
- "onUpdate:modelValue": f[1] || (f[1] = (p) => c.value = p),
1551
+ default: g(() => [
1552
+ I(_, {
1553
+ modelValue: v.value,
1554
+ "onUpdate:modelValue": c[1] || (c[1] = (h) => v.value = h),
2227
1555
  "close-on-content-click": !1,
2228
1556
  activator: "parent"
2229
1557
  }, {
2230
- default: j(() => [
2231
- I(b, {
2232
- modelValue: i(s),
2233
- "onUpdate:modelValue": f[0] || (f[0] = (p) => le(s) ? s.value = p : null),
1558
+ default: g(() => [
1559
+ I(T, {
1560
+ modelValue: o(i),
1561
+ "onUpdate:modelValue": c[0] || (c[0] = (h) => ne(i) ? i.value = h : null),
2234
1562
  mode: "hexa"
2235
1563
  }, null, 8, ["modelValue"])
2236
1564
  ]),
@@ -2241,9 +1569,9 @@ const Xl = {
2241
1569
  }, 16, ["modelValue", "class", "clearable", "rules"]);
2242
1570
  };
2243
1571
  }
2244
- }), Jl = /* @__PURE__ */ U({
1572
+ }), Ro = /* @__PURE__ */ O({
2245
1573
  __name: "df-datetime",
2246
- props: /* @__PURE__ */ Y({
1574
+ props: /* @__PURE__ */ q({
2247
1575
  inputType: {},
2248
1576
  displayFormatDate: {},
2249
1577
  displayFormatTime: {},
@@ -2262,150 +1590,150 @@ const Xl = {
2262
1590
  passthroughAttrs: {},
2263
1591
  density: {},
2264
1592
  variant: {}
2265
- }, L(S({}, Q), {
1593
+ }, L(S({}, Y), {
2266
1594
  inputType: "datetime",
2267
1595
  displayFormatDate: "P",
2268
1596
  displayFormatTime: "p"
2269
1597
  })),
2270
1598
  emits: ["update:modelValue", "click:clear"],
2271
- setup(e, { emit: n }) {
2272
- const o = e, l = n, d = T(() => {
2273
- var k;
2274
- return (k = o.locale) != null ? k : i(Ol.dateTimeLocale);
2275
- }), t = T(() => {
2276
- var k, y;
2277
- return (y = (k = d.value.options) == null ? void 0 : k.weekStartsOn) != null ? y : 1;
2278
- }), { densityClass: a, touched: r, value: s, vuetifyBindings: u } = X(o, l), { inputType: c, displayFormatDate: m, displayFormatTime: g } = je(o), f = M(""), b = T({
1599
+ setup(e, { emit: t }) {
1600
+ const n = e, l = t, a = w(() => {
1601
+ var f;
1602
+ return (f = n.locale) != null ? f : o(Do.dateTimeLocale);
1603
+ }), r = w(() => {
1604
+ var f, u;
1605
+ return (u = (f = a.value.options) == null ? void 0 : f.weekStartsOn) != null ? u : 1;
1606
+ }), { densityClass: s, touched: p, value: i, vuetifyBindings: d } = X(n, l), { inputType: v, displayFormatDate: m, displayFormatTime: b } = je(n), c = N(""), T = w({
2279
1607
  get() {
2280
- return i(f) === "date";
1608
+ return o(c) === "date";
2281
1609
  },
2282
- set(k) {
2283
- f.value = k ? "date" : "";
1610
+ set(f) {
1611
+ c.value = f ? "date" : "";
2284
1612
  }
2285
- }), h = T({
1613
+ }), _ = w({
2286
1614
  get() {
2287
- return i(f) === "time";
1615
+ return o(c) === "time";
2288
1616
  },
2289
- set(k) {
2290
- f.value = k ? "time" : "";
1617
+ set(f) {
1618
+ c.value = f ? "time" : "";
2291
1619
  }
2292
- }), v = (k) => `${me(k, "yyyy-MM-dd")}T${me(k, "HH:mm")}:00`, p = M(null);
2293
- function _(k, y) {
2294
- if (k == null)
2295
- p.value = null;
2296
- else if (y === -1)
2297
- if (i(c) === "time")
2298
- p.value = v(/* @__PURE__ */ new Date()), _(`T${k}`, 1);
1620
+ }), y = (f) => `${de(f, "yyyy-MM-dd")}T${de(f, "HH:mm")}:00`, h = N(null);
1621
+ function E(f, u) {
1622
+ if (f == null)
1623
+ h.value = null;
1624
+ else if (u === -1)
1625
+ if (o(v) === "time")
1626
+ h.value = y(/* @__PURE__ */ new Date()), E(`T${f}`, 1);
2299
1627
  else {
2300
- const O = v(new Date(k));
2301
- _(O, 0), _(O, 1);
1628
+ const $ = y(new Date(f));
1629
+ E($, 0), E($, 1);
2302
1630
  }
2303
1631
  else {
2304
- p.value == null && (p.value = v(/* @__PURE__ */ new Date()));
2305
- const O = p.value.split(/[TZ]/g), H = k.split(/[TZ]/g);
2306
- O[y] = H[y], p.value = v(/* @__PURE__ */ new Date(`${O[0]}T${O[1].split(".")[0]}`)), i(c) === "date" ? s.value = O[0] : i(c) === "time" ? s.value = O[1] : s.value = i(p) + me(/* @__PURE__ */ new Date(), "XXX");
1632
+ h.value == null && (h.value = y(/* @__PURE__ */ new Date()));
1633
+ const $ = h.value.split(/[TZ]/g), H = f.split(/[TZ]/g);
1634
+ $[u] = H[u], h.value = y(/* @__PURE__ */ new Date(`${$[0]}T${$[1].split(".")[0]}`)), o(v) === "date" ? i.value = $[0] : o(v) === "time" ? i.value = $[1] : i.value = o(h) + de(/* @__PURE__ */ new Date(), "XXX");
2307
1635
  }
2308
1636
  }
2309
- ue(s, (k) => _(k, -1), { immediate: !0 });
2310
- const w = T({
1637
+ se(i, (f) => E(f, -1), { immediate: !0 });
1638
+ const F = w({
2311
1639
  get() {
2312
- const k = i(p);
2313
- if (k == null) return null;
2314
- const y = new Date(k);
2315
- return Number.isNaN(y.getTime()) ? null : y;
1640
+ const f = o(h);
1641
+ if (f == null) return null;
1642
+ const u = new Date(f);
1643
+ return Number.isNaN(u.getTime()) ? null : u;
2316
1644
  },
2317
- set(k) {
2318
- _(v(k), 0);
1645
+ set(f) {
1646
+ E(y(f), 0);
2319
1647
  }
2320
- }), V = T({
1648
+ }), k = w({
2321
1649
  get() {
2322
- const k = i(p);
2323
- return k == null ? "" : k.split(/[TZ]/g)[1].split(".")[0];
1650
+ const f = o(h);
1651
+ return f == null ? "" : f.split(/[TZ]/g)[1].split(".")[0];
2324
1652
  },
2325
- set(k) {
2326
- _(`T${k}`, 1);
1653
+ set(f) {
1654
+ E(`T${f}`, 1);
2327
1655
  }
2328
- }), C = T({
1656
+ }), j = w({
2329
1657
  get() {
2330
- const k = i(w);
2331
- return k == null ? "" : me(k, i(m), { locale: d.value });
1658
+ const f = o(F);
1659
+ return f == null ? "" : de(f, o(m), { locale: a.value });
2332
1660
  },
2333
- set(k) {
1661
+ set(f) {
2334
1662
  try {
2335
- const y = At(k, i(m), /* @__PURE__ */ new Date(), { locale: d.value });
2336
- _(v(y), 0);
2337
- } catch (y) {
2338
- console.error(y);
1663
+ const u = Vt(f, o(m), /* @__PURE__ */ new Date(), { locale: a.value });
1664
+ E(y(u), 0);
1665
+ } catch (u) {
1666
+ console.error(u);
2339
1667
  }
2340
1668
  }
2341
- }), N = T({
1669
+ }), M = w({
2342
1670
  get() {
2343
- const k = i(w);
2344
- return k == null ? "" : me(k, i(g), { locale: d.value });
1671
+ const f = o(F);
1672
+ return f == null ? "" : de(f, o(b), { locale: a.value });
2345
1673
  },
2346
- set(k) {
2347
- const y = k.match(/(\d+):(\d+)\s?([a-zA-Z]+)?/);
2348
- if (y == null) return;
2349
- let O = We(y[1]);
2350
- const H = We(y[2]);
2351
- ze(O) || ze(H) || (y[3] && y[3].toLowerCase() === "pm" && O < 13 && (O += 12), _(`T${O.toString().padStart(2, "0")}:${H.toString().padStart(2, "0")}:00`, 1));
1674
+ set(f) {
1675
+ const u = f.match(/(\d+):(\d+)\s?([a-zA-Z]+)?/);
1676
+ if (u == null) return;
1677
+ let $ = Ue(u[1]);
1678
+ const H = Ue(u[2]);
1679
+ Oe($) || Oe(H) || (u[3] && u[3].toLowerCase() === "pm" && $ < 13 && ($ += 12), E(`T${$.toString().padStart(2, "0")}:${H.toString().padStart(2, "0")}:00`, 1));
2352
1680
  }
2353
1681
  });
2354
- return (k, y) => {
2355
- const O = $("v-date-picker"), H = $("v-confirm-edit"), ce = $("v-menu"), de = $("v-text-field"), x = $("v-time-picker");
2356
- return D(), E(i(Se), R(o, {
2357
- class: i(a),
2358
- clearable: k.clearable,
2359
- "onClick:clear": y[14] || (y[14] = (B) => s.value = null),
2360
- onBlur: y[15] || (y[15] = (B) => r.value = !0)
1682
+ return (f, u) => {
1683
+ const $ = A("v-date-picker"), H = A("v-confirm-edit"), ue = A("v-menu"), ce = A("v-text-field"), B = A("v-time-picker");
1684
+ return V(), D(o(xe), R(n, {
1685
+ class: o(s),
1686
+ clearable: f.clearable,
1687
+ "onClick:clear": u[14] || (u[14] = (P) => i.value = null),
1688
+ onBlur: u[15] || (u[15] = (P) => p.value = !0)
2361
1689
  }), {
2362
- default: j((B) => [
1690
+ default: g((P) => [
2363
1691
  oe("div", {
2364
- class: G(["d-flex w-100 ml-4 df-input-wrapper", k.density])
1692
+ class: G(["d-flex w-100 ml-4 df-input-wrapper", f.density])
2365
1693
  }, [
2366
- ["date", "datetime"].includes(i(c)) ? (D(), E(de, R({
1694
+ ["date", "datetime"].includes(o(v)) ? (V(), D(ce, R({
2367
1695
  key: 0,
2368
- modelValue: C.value,
2369
- "onUpdate:modelValue": y[4] || (y[4] = (A) => C.value = A),
1696
+ modelValue: j.value,
1697
+ "onUpdate:modelValue": u[4] || (u[4] = (C) => j.value = C),
2370
1698
  style: { "flex-grow": "4" },
2371
1699
  density: "compact",
2372
1700
  variant: "plain",
2373
1701
  clearable: !1,
2374
1702
  "hide-details": !0,
2375
- readonly: i(u).readonly,
2376
- disabled: i(u).disabled,
2377
- name: `${i(u).name}-date`
2378
- }, k.passthroughAttrs, {
2379
- onClick: y[5] || (y[5] = (A) => f.value = "date"),
2380
- onKeydown: y[6] || (y[6] = Fe((A) => f.value = "date", ["space"])),
2381
- onFocus: (A) => B.focus(),
2382
- onBlur: (A) => B.blur()
1703
+ readonly: o(d).readonly,
1704
+ disabled: o(d).disabled,
1705
+ name: `${o(d).name}-date`
1706
+ }, f.passthroughAttrs, {
1707
+ onClick: u[5] || (u[5] = (C) => c.value = "date"),
1708
+ onKeydown: u[6] || (u[6] = Fe((C) => c.value = "date", ["space"])),
1709
+ onFocus: (C) => P.focus(),
1710
+ onBlur: (C) => P.blur()
2383
1711
  }), {
2384
- default: j(() => [
2385
- I(ce, {
2386
- modelValue: b.value,
2387
- "onUpdate:modelValue": y[3] || (y[3] = (A) => b.value = A),
1712
+ default: g(() => [
1713
+ I(ue, {
1714
+ modelValue: T.value,
1715
+ "onUpdate:modelValue": u[3] || (u[3] = (C) => T.value = C),
2388
1716
  "close-on-content-click": !1,
2389
1717
  activator: "parent"
2390
1718
  }, {
2391
- default: j(() => [
1719
+ default: g(() => [
2392
1720
  I(H, {
2393
- modelValue: w.value,
2394
- "onUpdate:modelValue": y[0] || (y[0] = (A) => w.value = A),
2395
- onCancel: y[1] || (y[1] = (A) => f.value = ""),
2396
- onSave: y[2] || (y[2] = (A) => f.value = "")
1721
+ modelValue: F.value,
1722
+ "onUpdate:modelValue": u[0] || (u[0] = (C) => F.value = C),
1723
+ onCancel: u[1] || (u[1] = (C) => c.value = ""),
1724
+ onSave: u[2] || (u[2] = (C) => c.value = "")
2397
1725
  }, {
2398
- default: j(({ model: A, actions: Z }) => [
2399
- I(O, {
2400
- modelValue: A.value,
2401
- "onUpdate:modelValue": (P) => A.value = P,
1726
+ default: g(({ model: C, actions: Q }) => [
1727
+ I($, {
1728
+ modelValue: C.value,
1729
+ "onUpdate:modelValue": (x) => C.value = x,
2402
1730
  "hide-header": !0,
2403
- "first-day-of-week": t.value,
1731
+ "first-day-of-week": r.value,
2404
1732
  "show-adjacent-months": !0,
2405
1733
  "show-week": !0
2406
1734
  }, {
2407
- actions: j(() => [
2408
- (D(), E(be(Z)))
1735
+ actions: g(() => [
1736
+ (V(), D(he(Q)))
2409
1737
  ]),
2410
1738
  _: 2
2411
1739
  }, 1032, ["modelValue", "onUpdate:modelValue", "first-day-of-week"])
@@ -2417,48 +1745,48 @@ const Xl = {
2417
1745
  }, 8, ["modelValue"])
2418
1746
  ]),
2419
1747
  _: 1
2420
- }, 16, ["modelValue", "readonly", "disabled", "name", "onFocus", "onBlur"])) : F("", !0),
2421
- ["time", "datetime"].includes(i(c)) ? (D(), E(de, R({
1748
+ }, 16, ["modelValue", "readonly", "disabled", "name", "onFocus", "onBlur"])) : U("", !0),
1749
+ ["time", "datetime"].includes(o(v)) ? (V(), D(ce, R({
2422
1750
  key: 1,
2423
- modelValue: N.value,
2424
- "onUpdate:modelValue": y[11] || (y[11] = (A) => N.value = A),
1751
+ modelValue: M.value,
1752
+ "onUpdate:modelValue": u[11] || (u[11] = (C) => M.value = C),
2425
1753
  style: { "flex-grow": "3" },
2426
1754
  density: "compact",
2427
1755
  variant: "plain",
2428
1756
  clearable: !1,
2429
1757
  "hide-details": !0,
2430
- readonly: i(u).readonly,
2431
- disabled: i(u).disabled,
2432
- name: `${i(u).name}-time`
2433
- }, k.passthroughAttrs, {
2434
- onClick: y[12] || (y[12] = (A) => f.value = "time"),
2435
- onKeydown: y[13] || (y[13] = Fe((A) => f.value = "time", ["space"])),
2436
- onFocus: (A) => B.focus(),
2437
- onBlur: (A) => B.blur()
1758
+ readonly: o(d).readonly,
1759
+ disabled: o(d).disabled,
1760
+ name: `${o(d).name}-time`
1761
+ }, f.passthroughAttrs, {
1762
+ onClick: u[12] || (u[12] = (C) => c.value = "time"),
1763
+ onKeydown: u[13] || (u[13] = Fe((C) => c.value = "time", ["space"])),
1764
+ onFocus: (C) => P.focus(),
1765
+ onBlur: (C) => P.blur()
2438
1766
  }), {
2439
- default: j(() => [
2440
- I(ce, {
2441
- modelValue: h.value,
2442
- "onUpdate:modelValue": y[10] || (y[10] = (A) => h.value = A),
1767
+ default: g(() => [
1768
+ I(ue, {
1769
+ modelValue: _.value,
1770
+ "onUpdate:modelValue": u[10] || (u[10] = (C) => _.value = C),
2443
1771
  "close-on-content-click": !1,
2444
1772
  activator: "parent"
2445
1773
  }, {
2446
- default: j(() => [
1774
+ default: g(() => [
2447
1775
  I(H, {
2448
- modelValue: V.value,
2449
- "onUpdate:modelValue": y[7] || (y[7] = (A) => V.value = A),
2450
- onCancel: y[8] || (y[8] = (A) => f.value = ""),
2451
- onSave: y[9] || (y[9] = (A) => f.value = "")
1776
+ modelValue: k.value,
1777
+ "onUpdate:modelValue": u[7] || (u[7] = (C) => k.value = C),
1778
+ onCancel: u[8] || (u[8] = (C) => c.value = ""),
1779
+ onSave: u[9] || (u[9] = (C) => c.value = "")
2452
1780
  }, {
2453
- default: j(({ model: A, actions: Z }) => [
2454
- I(x, {
2455
- modelValue: A.value,
2456
- "onUpdate:modelValue": (P) => A.value = P,
1781
+ default: g(({ model: C, actions: Q }) => [
1782
+ I(B, {
1783
+ modelValue: C.value,
1784
+ "onUpdate:modelValue": (x) => C.value = x,
2457
1785
  "hide-header": !0,
2458
1786
  format: "24hr"
2459
1787
  }, {
2460
- actions: j(() => [
2461
- (D(), E(be(Z)))
1788
+ actions: g(() => [
1789
+ (V(), D(he(Q)))
2462
1790
  ]),
2463
1791
  _: 2
2464
1792
  }, 1032, ["modelValue", "onUpdate:modelValue"])
@@ -2470,16 +1798,16 @@ const Xl = {
2470
1798
  }, 8, ["modelValue"])
2471
1799
  ]),
2472
1800
  _: 1
2473
- }, 16, ["modelValue", "readonly", "disabled", "name", "onFocus", "onBlur"])) : F("", !0)
1801
+ }, 16, ["modelValue", "readonly", "disabled", "name", "onFocus", "onBlur"])) : U("", !0)
2474
1802
  ], 2)
2475
1803
  ]),
2476
1804
  _: 1
2477
1805
  }, 16, ["class", "clearable"]);
2478
1806
  };
2479
1807
  }
2480
- }), eo = /* @__PURE__ */ U({
1808
+ }), Wo = /* @__PURE__ */ O({
2481
1809
  __name: "df-file",
2482
- props: /* @__PURE__ */ Y({
1810
+ props: /* @__PURE__ */ q({
2483
1811
  comms: {},
2484
1812
  control: {},
2485
1813
  modelValue: {},
@@ -2495,82 +1823,82 @@ const Xl = {
2495
1823
  passthroughAttrs: {},
2496
1824
  density: {},
2497
1825
  variant: {}
2498
- }, Q),
1826
+ }, Y),
2499
1827
  emits: ["update:modelValue", "click:clear"],
2500
- setup(e, { emit: n }) {
2501
- const o = e, l = n, { densityClass: d, touched: t, value: a, vuetifyBindings: r } = X(o, l), s = M(null), u = M(null), c = M(0), m = M(Math.round(Math.random() * 1e3)), g = M(), f = T(() => u.value && c.value < 100), b = T(() => !g.value && a.value ? o.modelValue : "");
2502
- function h() {
2503
- s.value && window.clearInterval(s.value);
1828
+ setup(e, { emit: t }) {
1829
+ const n = e, l = t, { densityClass: a, touched: r, value: s, vuetifyBindings: p } = X(n, l), i = N(null), d = N(null), v = N(0), m = N(Math.round(Math.random() * 1e3)), b = N(), c = w(() => d.value && v.value < 100), T = w(() => !b.value && s.value ? n.modelValue : "");
1830
+ function _() {
1831
+ i.value && window.clearInterval(i.value);
2504
1832
  }
2505
- function v() {
2506
- h(), s.value = window.setInterval(() => {
2507
- a.value && o.comms.touch(a.value);
1833
+ function y() {
1834
+ _(), i.value = window.setInterval(() => {
1835
+ s.value && n.comms.touch(s.value);
2508
1836
  }, 60 * 1e3);
2509
1837
  }
2510
- Je(() => h()), ue(a, (V) => {
2511
- V ? v() : h();
1838
+ Xe(() => _()), se(s, (k) => {
1839
+ k ? y() : _();
2512
1840
  });
2513
- function p() {
2514
- return ye(this, null, function* () {
2515
- a.value && (yield o.comms.delete(a.value)), a.value = null, c.value = 0, m.value = Math.round(Math.random() * 1e3), u.value = null, g.value = null, h();
1841
+ function h() {
1842
+ return ge(this, null, function* () {
1843
+ s.value && (yield n.comms.delete(s.value)), s.value = null, v.value = 0, m.value = Math.round(Math.random() * 1e3), d.value = null, b.value = null, _();
2516
1844
  });
2517
1845
  }
2518
- function _(V) {
2519
- return ye(this, null, function* () {
2520
- c.value = -1, u.value = V;
1846
+ function E(k) {
1847
+ return ge(this, null, function* () {
1848
+ v.value = -1, d.value = k;
2521
1849
  try {
2522
- a.value = yield o.comms.upload(V, (C, N) => {
2523
- c.value = Math.round(C * 100 / N);
2524
- }), c.value = 100, v();
2525
- } catch (C) {
2526
- throw c.value = 0, u.value = null, m.value = Math.round(Math.random() * 1e3), g.value = null, C;
1850
+ s.value = yield n.comms.upload(k, (j, M) => {
1851
+ v.value = Math.round(j * 100 / M);
1852
+ }), v.value = 100, y();
1853
+ } catch (j) {
1854
+ throw v.value = 0, d.value = null, m.value = Math.round(Math.random() * 1e3), b.value = null, j;
2527
1855
  }
2528
1856
  });
2529
1857
  }
2530
- function w(V) {
2531
- V && (Array.isArray(V) ? console.error("Uploading multiple files not supported right now") : _(V));
1858
+ function F(k) {
1859
+ k && (Array.isArray(k) ? console.error("Uploading multiple files not supported right now") : E(k));
2532
1860
  }
2533
- return (V, C) => {
2534
- const N = $("v-progress-linear"), k = $("v-file-input");
2535
- return D(), E(i(Se), R(L(S({}, o), { loading: f.value }), {
2536
- class: i(d),
1861
+ return (k, j) => {
1862
+ const M = A("v-progress-linear"), f = A("v-file-input");
1863
+ return V(), D(o(xe), R(L(S({}, n), { loading: c.value }), {
1864
+ class: o(a),
2537
1865
  clearable: "",
2538
- "onClick:clear": p,
2539
- onBlur: C[1] || (C[1] = (y) => t.value = !0)
1866
+ "onClick:clear": h,
1867
+ onBlur: j[1] || (j[1] = (u) => r.value = !0)
2540
1868
  }), {
2541
- "prepend-inner": j(() => [
2542
- I(i(ge), { name: "mdi-paperclip" })
1869
+ "prepend-inner": g(() => [
1870
+ I(o(be), { name: "mdi-paperclip" })
2543
1871
  ]),
2544
- loader: j(() => [
2545
- u.value && c.value < 100 ? (D(), E(N, {
1872
+ loader: g(() => [
1873
+ d.value && v.value < 100 ? (V(), D(M, {
2546
1874
  key: 0,
2547
- "model-value": c.value,
2548
- indeterminate: c.value === -1
2549
- }, null, 8, ["model-value", "indeterminate"])) : F("", !0)
1875
+ "model-value": v.value,
1876
+ indeterminate: v.value === -1
1877
+ }, null, 8, ["model-value", "indeterminate"])) : U("", !0)
2550
1878
  ]),
2551
- default: j((y) => [
1879
+ default: g((u) => [
2552
1880
  oe("div", {
2553
- class: G(["d-flex w-100 position-relative df-input-wrapper", V.density])
1881
+ class: G(["d-flex w-100 position-relative df-input-wrapper", k.density])
2554
1882
  }, [
2555
- I(k, R({
2556
- modelValue: g.value,
2557
- "onUpdate:modelValue": C[0] || (C[0] = (O) => g.value = O),
2558
- label: b.value,
1883
+ I(f, R({
1884
+ modelValue: b.value,
1885
+ "onUpdate:modelValue": j[0] || (j[0] = ($) => b.value = $),
1886
+ label: T.value,
2559
1887
  density: "compact",
2560
1888
  variant: "plain",
2561
- readonly: i(r).readonly,
2562
- disabled: i(r).disabled,
2563
- name: i(r).name,
1889
+ readonly: o(p).readonly,
1890
+ disabled: o(p).disabled,
1891
+ name: o(p).name,
2564
1892
  "hide-details": !0,
2565
1893
  "show-size": !0,
2566
1894
  multiple: !1,
2567
- style: u.value && c.value < 100 ? "visibility: hidden" : "",
1895
+ style: d.value && v.value < 100 ? "visibility: hidden" : "",
2568
1896
  clearable: !1
2569
- }, V.passthroughAttrs, {
1897
+ }, k.passthroughAttrs, {
2570
1898
  "prepend-icon": "",
2571
- "onUpdate:modelValue": w,
2572
- onFocus: (O) => y.focus(),
2573
- onBlur: (O) => y.blur()
1899
+ "onUpdate:modelValue": F,
1900
+ onFocus: ($) => u.focus(),
1901
+ onBlur: ($) => u.blur()
2574
1902
  }), null, 16, ["modelValue", "label", "readonly", "disabled", "name", "style", "onFocus", "onBlur"])
2575
1903
  ], 2)
2576
1904
  ]),
@@ -2578,9 +1906,9 @@ const Xl = {
2578
1906
  }, 16, ["class"]);
2579
1907
  };
2580
1908
  }
2581
- }), to = /* @__PURE__ */ U({
1909
+ }), zo = /* @__PURE__ */ O({
2582
1910
  __name: "df-input",
2583
- props: /* @__PURE__ */ Y({
1911
+ props: /* @__PURE__ */ q({
2584
1912
  inputType: {},
2585
1913
  precision: {},
2586
1914
  step: {},
@@ -2600,7 +1928,7 @@ const Xl = {
2600
1928
  passthroughAttrs: {},
2601
1929
  density: {},
2602
1930
  variant: {}
2603
- }, L(S({}, Q), {
1931
+ }, L(S({}, Y), {
2604
1932
  inputType: "text",
2605
1933
  precision: null,
2606
1934
  step: void 0,
@@ -2608,54 +1936,54 @@ const Xl = {
2608
1936
  max: void 0
2609
1937
  })),
2610
1938
  emits: ["update:modelValue", "click:clear"],
2611
- setup(e, { emit: n }) {
2612
- const o = e, l = n, { densityClass: d, errors: t, label: a, touched: r, value: s, vuetifyBindings: u } = X(o, l), { inputType: c, max: m, min: g, precision: f, step: b } = je(o), h = T(() => c.value === "number"), v = T(
2613
- () => h.value ? { min: i(g), max: i(m), precision: i(f), step: i(b) } : {}
1939
+ setup(e, { emit: t }) {
1940
+ const n = e, l = t, { densityClass: a, errors: r, label: s, touched: p, value: i, vuetifyBindings: d } = X(n, l), { inputType: v, max: m, min: b, precision: c, step: T } = je(n), _ = w(() => v.value === "number"), y = w(
1941
+ () => _.value ? { min: o(b), max: o(m), precision: o(c), step: o(T) } : {}
2614
1942
  );
2615
- return (p, _) => {
2616
- const w = $("v-text-field"), V = $("v-number-input");
2617
- return D(), W("div", {
2618
- class: G(["df-input-container", i(d)])
1943
+ return (h, E) => {
1944
+ const F = A("v-text-field"), k = A("v-number-input");
1945
+ return V(), W("div", {
1946
+ class: G(["df-input-container", o(a)])
2619
1947
  }, [
2620
- h.value ? (D(), E(V, R({
1948
+ _.value ? (V(), D(k, R({
2621
1949
  key: 1,
2622
- modelValue: i(s),
2623
- "onUpdate:modelValue": _[2] || (_[2] = (C) => le(s) ? s.value = C : null)
2624
- }, S(S({}, i(u)), v.value), {
1950
+ modelValue: o(i),
1951
+ "onUpdate:modelValue": E[2] || (E[2] = (j) => ne(i) ? i.value = j : null)
1952
+ }, S(S({}, o(d)), y.value), {
2625
1953
  density: "compact",
2626
1954
  "control-variant": "stacked"
2627
1955
  }), {
2628
- label: j((C) => [
2629
- I(i(ae), {
2630
- data: C,
2631
- label: i(a)
1956
+ label: g((j) => [
1957
+ I(o(le), {
1958
+ data: j,
1959
+ label: o(s)
2632
1960
  }, null, 8, ["data", "label"])
2633
1961
  ]),
2634
- message: j(({ message: C }) => [
2635
- I(i(re), {
2636
- message: C,
2637
- errors: i(t)
1962
+ message: g(({ message: j }) => [
1963
+ I(o(ae), {
1964
+ message: j,
1965
+ errors: o(r)
2638
1966
  }, null, 8, ["message", "errors"])
2639
1967
  ]),
2640
1968
  _: 1
2641
- }, 16, ["modelValue"])) : (D(), E(w, R({
1969
+ }, 16, ["modelValue"])) : (V(), D(F, R({
2642
1970
  key: 0,
2643
- modelValue: i(s),
2644
- "onUpdate:modelValue": _[0] || (_[0] = (C) => le(s) ? s.value = C : null)
2645
- }, i(u), {
2646
- type: i(c),
2647
- onBlur: _[1] || (_[1] = (C) => r.value = !0)
1971
+ modelValue: o(i),
1972
+ "onUpdate:modelValue": E[0] || (E[0] = (j) => ne(i) ? i.value = j : null)
1973
+ }, o(d), {
1974
+ type: o(v),
1975
+ onBlur: E[1] || (E[1] = (j) => p.value = !0)
2648
1976
  }), {
2649
- label: j((C) => [
2650
- I(i(ae), {
2651
- data: C,
2652
- label: i(a)
1977
+ label: g((j) => [
1978
+ I(o(le), {
1979
+ data: j,
1980
+ label: o(s)
2653
1981
  }, null, 8, ["data", "label"])
2654
1982
  ]),
2655
- message: j(({ message: C }) => [
2656
- I(i(re), {
2657
- message: C,
2658
- errors: i(t)
1983
+ message: g(({ message: j }) => [
1984
+ I(o(ae), {
1985
+ message: j,
1986
+ errors: o(r)
2659
1987
  }, null, 8, ["message", "errors"])
2660
1988
  ]),
2661
1989
  _: 1
@@ -2663,7 +1991,7 @@ const Xl = {
2663
1991
  ], 2);
2664
1992
  };
2665
1993
  }
2666
- }), no = { class: "editor-container" }, lo = { class: "editor-container__editor" }, oo = { ref: "editorElement" }, ao = /* @__PURE__ */ U({
1994
+ }), Ho = { class: "editor-container" }, Ko = { class: "editor-container__editor" }, Xo = { ref: "editorElement" }, Go = /* @__PURE__ */ O({
2667
1995
  __name: "ck-editor-custom",
2668
1996
  props: {
2669
1997
  modelValue: { default: "" },
@@ -2671,11 +1999,11 @@ const Xl = {
2671
1999
  disabled: { type: Boolean, default: !1 }
2672
2000
  },
2673
2001
  emits: ["update:modelValue"],
2674
- setup(e, { expose: n, emit: o }) {
2675
- yt((m) => ({
2002
+ setup(e, { expose: t, emit: n }) {
2003
+ pt((m) => ({
2676
2004
  "5f8a2e8c": m.minHeight
2677
2005
  }));
2678
- const l = o, d = M(!1), t = bn, u = {
2006
+ const l = n, a = N(!1), r = dn, d = {
2679
2007
  toolbar: {
2680
2008
  items: [
2681
2009
  "undo",
@@ -2707,27 +2035,33 @@ const Xl = {
2707
2035
  shouldNotGroupWhenFull: !1
2708
2036
  },
2709
2037
  plugins: [
2710
- xt,
2711
- It,
2038
+ jt,
2039
+ Ct,
2040
+ Tt,
2041
+ _t,
2712
2042
  Bt,
2713
- Et,
2043
+ It,
2714
2044
  Pt,
2045
+ Dt,
2046
+ xt,
2715
2047
  St,
2716
- Ot,
2048
+ Et,
2717
2049
  $t,
2718
- Mt,
2050
+ At,
2719
2051
  Nt,
2720
- Lt,
2721
2052
  Ft,
2053
+ Mt,
2054
+ Lt,
2722
2055
  Ut,
2056
+ Ot,
2723
2057
  Rt,
2724
2058
  Wt,
2725
2059
  zt,
2726
2060
  Ht,
2727
2061
  Kt,
2728
- qt,
2729
2062
  Xt,
2730
2063
  Gt,
2064
+ qt,
2731
2065
  Yt,
2732
2066
  Qt,
2733
2067
  Zt,
@@ -2735,19 +2069,13 @@ const Xl = {
2735
2069
  en,
2736
2070
  tn,
2737
2071
  nn,
2738
- ln,
2739
2072
  on,
2073
+ ln,
2740
2074
  an,
2741
2075
  rn,
2742
2076
  sn,
2743
2077
  un,
2744
- cn,
2745
- dn,
2746
- mn,
2747
- fn,
2748
- pn,
2749
- hn,
2750
- vn
2078
+ cn
2751
2079
  ],
2752
2080
  balloonToolbar: ["bold", "italic", "|", "link", "|", "bulletedList", "numberedList"],
2753
2081
  heading: {
@@ -2804,34 +2132,34 @@ const Xl = {
2804
2132
  },
2805
2133
  table: { contentToolbar: ["tableColumn", "tableRow", "mergeTableCells", "tableProperties", "tableCellProperties"] }
2806
2134
  };
2807
- Ze(() => {
2808
- d.value = !0;
2135
+ Ke(() => {
2136
+ a.value = !0;
2809
2137
  });
2810
- const c = (m) => {
2138
+ const v = (m) => {
2811
2139
  };
2812
- return n({ onEditorReady: c }), (m, g) => {
2813
- const f = $("ckeditor");
2814
- return D(), W("div", no, [
2815
- oe("div", lo, [
2816
- oe("div", oo, [
2817
- d.value ? (D(), E(f, {
2140
+ return t({ onEditorReady: v }), (m, b) => {
2141
+ const c = A("ckeditor");
2142
+ return V(), W("div", Ho, [
2143
+ oe("div", Ko, [
2144
+ oe("div", Xo, [
2145
+ a.value ? (V(), D(c, {
2818
2146
  key: 0,
2819
2147
  "model-value": m.modelValue,
2820
- editor: i(t),
2821
- config: u,
2148
+ editor: o(r),
2149
+ config: d,
2822
2150
  disabled: m.disabled,
2823
- style: et(`min-height: ${m.minHeight}`),
2824
- onReady: c,
2825
- "onUpdate:modelValue": g[0] || (g[0] = (b) => l("update:modelValue", b))
2826
- }, null, 8, ["model-value", "editor", "disabled", "style"])) : F("", !0)
2151
+ style: Ge(`min-height: ${m.minHeight}`),
2152
+ onReady: v,
2153
+ "onUpdate:modelValue": b[0] || (b[0] = (T) => l("update:modelValue", T))
2154
+ }, null, 8, ["model-value", "editor", "disabled", "style"])) : U("", !0)
2827
2155
  ], 512)
2828
2156
  ])
2829
2157
  ]);
2830
2158
  };
2831
2159
  }
2832
- }), ro = /* @__PURE__ */ U({
2160
+ }), qo = /* @__PURE__ */ O({
2833
2161
  __name: "df-rtf-editor",
2834
- props: /* @__PURE__ */ Y({
2162
+ props: /* @__PURE__ */ q({
2835
2163
  minHeight: {},
2836
2164
  control: {},
2837
2165
  modelValue: {},
@@ -2847,65 +2175,65 @@ const Xl = {
2847
2175
  passthroughAttrs: {},
2848
2176
  density: {},
2849
2177
  variant: {}
2850
- }, L(S({}, Q), { minHeight: void 0 })),
2178
+ }, L(S({}, Y), { minHeight: void 0 })),
2851
2179
  emits: ["update:modelValue", "click:clear"],
2852
- setup(e, { emit: n }) {
2853
- const o = e, l = n, { densityClass: d, value: t, vuetifyBindings: a } = X(o, l);
2854
- return (r, s) => (D(), E(i(Se), R(o, {
2855
- class: ["ck-editor-custom", i(d)]
2180
+ setup(e, { emit: t }) {
2181
+ const n = e, l = t, { densityClass: a, value: r, vuetifyBindings: s } = X(n, l);
2182
+ return (p, i) => (V(), D(o(xe), R(n, {
2183
+ class: ["ck-editor-custom", o(a)]
2856
2184
  }), {
2857
- default: j((u) => [
2858
- I(ao, R({
2185
+ default: g((d) => [
2186
+ I(Go, R({
2859
2187
  ref: "$editor",
2860
- modelValue: i(t),
2861
- "onUpdate:modelValue": s[0] || (s[0] = (c) => le(t) ? t.value = c : null),
2862
- class: { "mt-6": !!r.label },
2863
- "min-height": r.minHeight,
2864
- disabled: i(a).disabled,
2188
+ modelValue: o(r),
2189
+ "onUpdate:modelValue": i[0] || (i[0] = (v) => ne(r) ? r.value = v : null),
2190
+ class: { "mt-6": !!p.label },
2191
+ "min-height": p.minHeight,
2192
+ disabled: o(s).disabled,
2865
2193
  placeholder: "dfsjghdf"
2866
- }, r.passthroughAttrs, {
2867
- onFocusin: (c) => u.focus(),
2868
- onFocusout: (c) => u.blur()
2194
+ }, p.passthroughAttrs, {
2195
+ onFocusin: (v) => d.focus(),
2196
+ onFocusout: (v) => d.blur()
2869
2197
  }), null, 16, ["modelValue", "class", "min-height", "disabled", "onFocusin", "onFocusout"])
2870
2198
  ]),
2871
2199
  _: 1
2872
2200
  }, 16, ["class"]));
2873
2201
  }
2874
2202
  });
2875
- function io(e) {
2876
- return e.map((n) => ({ value: n.id, title: n.text, icon: n.icon }));
2203
+ function Yo(e) {
2204
+ return e.map((t) => ({ value: t.id, title: t.text, icon: t.icon }));
2877
2205
  }
2878
- function J(e, n) {
2879
- var o;
2880
- return e == null || He(e) && e.length === 0 ? null : n ? tt(e) : He(e) ? (o = nt(e)) != null ? o : null : e;
2206
+ function Z(e, t) {
2207
+ var n;
2208
+ return e == null || Re(e) && e.length === 0 ? null : t ? qe(e) : Re(e) ? (n = Ye(e)) != null ? n : null : e;
2881
2209
  }
2882
- function _e(e, n) {
2883
- if (n == null) return [];
2884
- const o = tt(n);
2885
- return e.filter((l) => o.some((d) => d === l.id));
2210
+ function Ve(e, t) {
2211
+ if (t == null) return [];
2212
+ const n = qe(t);
2213
+ return e.filter((l) => n.some((a) => a === l.id));
2886
2214
  }
2887
- function ke(e, n, o, l, d) {
2888
- var a;
2889
- const t = J(e, o);
2890
- if (t == null) {
2891
- n.value = o ? [] : null;
2215
+ function ye(e, t, n, l, a) {
2216
+ var s;
2217
+ const r = Z(e, n);
2218
+ if (r == null) {
2219
+ t.value = n ? [] : null;
2892
2220
  return;
2893
2221
  }
2894
- if (o)
2895
- l ? n.value = t : n.value = _e(d, t).map((r) => r.id);
2222
+ if (n)
2223
+ l ? t.value = r : t.value = Ve(a, r).map((p) => p.id);
2896
2224
  else if (l)
2897
- n.value = t;
2225
+ t.value = r;
2898
2226
  else {
2899
- const r = nt(_e(d, t));
2900
- n.value = (a = r == null ? void 0 : r.id) != null ? a : null;
2227
+ const p = Ye(Ve(a, r));
2228
+ t.value = (s = p == null ? void 0 : p.id) != null ? s : null;
2901
2229
  }
2902
2230
  }
2903
- const so = {
2231
+ const Qo = {
2904
2232
  key: 0,
2905
2233
  class: "me-1"
2906
- }, uo = /* @__PURE__ */ U({
2234
+ }, Zo = /* @__PURE__ */ O({
2907
2235
  __name: "df-select",
2908
- props: /* @__PURE__ */ Y({
2236
+ props: /* @__PURE__ */ q({
2909
2237
  choices: {},
2910
2238
  multiple: { type: Boolean },
2911
2239
  allowTags: { type: Boolean },
@@ -2925,7 +2253,7 @@ const so = {
2925
2253
  passthroughAttrs: {},
2926
2254
  density: {},
2927
2255
  variant: {}
2928
- }, L(S({}, Q), {
2256
+ }, L(S({}, Y), {
2929
2257
  choices: void 0,
2930
2258
  multiple: !1,
2931
2259
  allowTags: !1,
@@ -2933,189 +2261,189 @@ const so = {
2933
2261
  fetchChoices: void 0
2934
2262
  })),
2935
2263
  emits: ["update:modelValueDisplay", "update:modelValue", "click:clear"],
2936
- setup(e, { emit: n }) {
2937
- const o = e, { choices: l, multiple: d, allowTags: t, allowNull: a, cssClass: r, visibility: s } = je(o), u = n, {
2938
- densityClass: c,
2264
+ setup(e, { emit: t }) {
2265
+ const n = e, { choices: l, multiple: a, allowTags: r, allowNull: s, cssClass: p, visibility: i } = je(n), d = t, {
2266
+ densityClass: v,
2939
2267
  errors: m,
2940
- label: g,
2941
- touched: f,
2942
- value: b,
2943
- vuetifyBindings: h
2944
- } = X(o, u), v = M(null), p = M(!1), _ = M([]), w = T(() => i(p) ? i(_) : i(l) || []), V = M(!1), C = T(() => io(w.value));
2945
- C.value && o.fetchChoices !== void 0 && console.warn("Both options and fetchChoices are set. Only one of them should be set.");
2946
- function N(x) {
2947
- u("update:modelValueDisplay", _e(w.value, x));
2268
+ label: b,
2269
+ touched: c,
2270
+ value: T,
2271
+ vuetifyBindings: _
2272
+ } = X(n, d), y = N(null), h = N(!1), E = N([]), F = w(() => o(h) ? o(E) : o(l) || []), k = N(!1), j = w(() => Yo(F.value));
2273
+ j.value && n.fetchChoices !== void 0 && console.warn("Both options and fetchChoices are set. Only one of them should be set.");
2274
+ function M(B) {
2275
+ d("update:modelValueDisplay", Ve(F.value, B));
2948
2276
  }
2949
- let k = !1;
2950
- function y(x) {
2951
- k = !0, b.value = x, Ue(() => {
2952
- k = !1;
2277
+ let f = !1;
2278
+ function u(B) {
2279
+ f = !0, T.value = B, Me(() => {
2280
+ f = !1;
2953
2281
  });
2954
2282
  }
2955
- ue(
2956
- v,
2957
- (x) => {
2958
- h.value.readonly || Ue(() => {
2959
- const B = J(x, d.value);
2960
- N(B), y(B);
2283
+ se(
2284
+ y,
2285
+ (B) => {
2286
+ _.value.readonly || Me(() => {
2287
+ const P = Z(B, a.value);
2288
+ M(P), u(P);
2961
2289
  });
2962
2290
  },
2963
2291
  { deep: !0 }
2964
- ), ue(
2965
- b,
2966
- (x) => {
2967
- if (!k) {
2968
- const B = J(x, d.value);
2969
- ke(B, v, d.value, !1, w.value);
2292
+ ), se(
2293
+ T,
2294
+ (B) => {
2295
+ if (!f) {
2296
+ const P = Z(B, a.value);
2297
+ ye(P, y, a.value, !1, F.value);
2970
2298
  }
2971
2299
  },
2972
2300
  { deep: !0 }
2973
2301
  );
2974
- function O() {
2975
- if (h.value.readonly || t.value) return;
2976
- const x = J(v.value, d.value);
2977
- ke(x, v, d.value, !1, w.value), y(x);
2302
+ function $() {
2303
+ if (_.value.readonly || r.value) return;
2304
+ const B = Z(y.value, a.value);
2305
+ ye(B, y, a.value, !1, F.value), u(B);
2978
2306
  }
2979
- function H(x) {
2980
- let B;
2981
- d.value && Array.isArray(v.value) ? B = J(
2982
- v.value.filter((A) => A !== x),
2983
- d.value
2984
- ) : B = null, ke(B, v, d.value, !1, w.value), y(B);
2307
+ function H(B) {
2308
+ let P;
2309
+ a.value && Array.isArray(y.value) ? P = Z(
2310
+ y.value.filter((C) => C !== B),
2311
+ a.value
2312
+ ) : P = null, ye(P, y, a.value, !1, F.value), u(P);
2985
2313
  }
2986
- function ce(x, B) {
2987
- return ye(this, null, function* () {
2988
- if (!(l.value || o.fetchChoices === void 0)) {
2989
- V.value = !0;
2314
+ function ue(B, P) {
2315
+ return ge(this, null, function* () {
2316
+ if (!(l.value || n.fetchChoices === void 0)) {
2317
+ k.value = !0;
2990
2318
  try {
2991
- const A = _e(
2992
- w.value,
2993
- J(v.value, d.value)
2994
- ), Z = yield o.fetchChoices(x, B);
2995
- _.value = _t([...A, ...Z], "id"), p.value = !0;
2319
+ const C = Ve(
2320
+ F.value,
2321
+ Z(y.value, a.value)
2322
+ ), Q = yield n.fetchChoices(B, P);
2323
+ E.value = bt([...C, ...Q], "id"), h.value = !0;
2996
2324
  } finally {
2997
- V.value = !1;
2325
+ k.value = !1;
2998
2326
  }
2999
2327
  }
3000
2328
  });
3001
2329
  }
3002
- function de() {
3003
- let x = b.value;
3004
- !a.value && x == null && C.value.length && (x = C.value[0].value), x = J(x, d.value), ke(x, v, d.value, t.value, w.value), N(x), y(x);
2330
+ function ce() {
2331
+ let B = T.value;
2332
+ !s.value && B == null && j.value.length && (B = j.value[0].value), B = Z(B, a.value), ye(B, y, a.value, r.value, F.value), M(B), u(B);
3005
2333
  }
3006
- return de(), o.fetchChoices !== void 0 && ce(void 0, b.value).then(() => {
3007
- de();
3008
- }), (x, B) => {
3009
- const A = $("v-chip"), Z = $("v-list-item");
3010
- return i(s) !== i(q).SUPPRESS ? (D(), E(be(i(t) ? "v-combobox" : "v-autocomplete"), R({
2334
+ return ce(), n.fetchChoices !== void 0 && ue(void 0, T.value).then(() => {
2335
+ ce();
2336
+ }), (B, P) => {
2337
+ const C = A("v-chip"), Q = A("v-list-item");
2338
+ return o(i) !== o(K).SUPPRESS ? (V(), D(he(o(r) ? "v-combobox" : "v-autocomplete"), R({
3011
2339
  key: 0,
3012
- modelValue: v.value,
3013
- "onUpdate:modelValue": B[0] || (B[0] = (P) => v.value = P),
2340
+ modelValue: y.value,
2341
+ "onUpdate:modelValue": P[0] || (P[0] = (x) => y.value = x),
3014
2342
  class: [
3015
- i(r),
3016
- i(c),
2343
+ o(p),
2344
+ o(v),
3017
2345
  {
3018
- "d-none": i(s) === i(q).HIDDEN,
3019
- invisible: i(s) === i(q).INVISIBLE
2346
+ "d-none": o(i) === o(K).HIDDEN,
2347
+ invisible: o(i) === o(K).INVISIBLE
3020
2348
  }
3021
2349
  ],
3022
- items: C.value,
2350
+ items: j.value,
3023
2351
  "return-object": !1
3024
- }, i(h), {
3025
- label: i(h).label,
2352
+ }, o(_), {
2353
+ label: o(_).label,
3026
2354
  chips: "",
3027
2355
  "auto-select-first": !0,
3028
- "closable-chips": i(a) || i(d) && v.value.length > 1,
3029
- clearable: i(a),
3030
- multiple: i(d),
3031
- loading: V.value,
2356
+ "closable-chips": o(s) || o(a) && y.value.length > 1,
2357
+ clearable: o(s),
2358
+ multiple: o(a),
2359
+ loading: k.value,
3032
2360
  "hide-selected": !1,
3033
- "aria-describedby": i(h).helpText ? `${i(h).name}-help` : null,
2361
+ "aria-describedby": o(_).helpText ? `${o(_).name}-help` : null,
3034
2362
  "menu-props": { maxHeight: "400" },
3035
2363
  "hide-details": "auto",
3036
- "onUpdate:search": B[1] || (B[1] = (P) => ce(P, void 0)),
3037
- "onUpdate:modelValue": O,
3038
- "onClick:clear": B[2] || (B[2] = (P) => v.value = null),
3039
- onBlur: B[3] || (B[3] = (P) => f.value = !0)
3040
- }), Ee({
3041
- chip: j(({ item: P }) => [
3042
- (D(), E(A, {
3043
- key: P.value,
2364
+ "onUpdate:search": P[1] || (P[1] = (x) => ue(x, void 0)),
2365
+ "onUpdate:modelValue": $,
2366
+ "onClick:clear": P[2] || (P[2] = (x) => y.value = null),
2367
+ onBlur: P[3] || (P[3] = (x) => c.value = !0)
2368
+ }), Pe({
2369
+ chip: g(({ item: x }) => [
2370
+ (V(), D(C, {
2371
+ key: x.value,
3044
2372
  label: "",
3045
2373
  size: "small",
3046
2374
  class: "d-flex align-middle",
3047
- variant: i(d) ? "tonal" : "text",
3048
- closable: i(d),
3049
- "onClick:close": (ie) => H(P.value)
2375
+ variant: o(a) ? "tonal" : "text",
2376
+ closable: o(a),
2377
+ "onClick:close": (re) => H(x.value)
3050
2378
  }, {
3051
- prepend: j(() => {
3052
- var ie;
2379
+ prepend: g(() => {
2380
+ var re;
3053
2381
  return [
3054
- (ie = P.raw) != null && ie.icon ? (D(), E(i(ge), {
2382
+ (re = x.raw) != null && re.icon ? (V(), D(o(be), {
3055
2383
  key: 0,
3056
2384
  class: "me-1",
3057
- name: P.raw.icon
3058
- }, null, 8, ["name"])) : F("", !0)
2385
+ name: x.raw.icon
2386
+ }, null, 8, ["name"])) : U("", !0)
3059
2387
  ];
3060
2388
  }),
3061
- default: j(() => [
2389
+ default: g(() => [
3062
2390
  oe("span", {
3063
- class: G({ "text-body-1": !i(d) })
3064
- }, Pe(P.title), 3)
2391
+ class: G({ "text-body-1": !o(a) })
2392
+ }, De(x.title), 3)
3065
2393
  ]),
3066
2394
  _: 2
3067
2395
  }, 1032, ["variant", "closable", "onClick:close"]))
3068
2396
  ]),
3069
- label: j((P) => [
3070
- I(i(ae), {
3071
- data: P,
3072
- label: i(g)
2397
+ label: g((x) => [
2398
+ I(o(le), {
2399
+ data: x,
2400
+ label: o(b)
3073
2401
  }, null, 8, ["data", "label"])
3074
2402
  ]),
3075
- item: j(({ props: P, item: ie }) => [
3076
- I(Z, ee(te(P)), {
3077
- prepend: j(() => {
3078
- var Oe;
2403
+ item: g(({ props: x, item: re }) => [
2404
+ I(Q, J(ee(x)), {
2405
+ prepend: g(() => {
2406
+ var Se;
3079
2407
  return [
3080
- (Oe = ie.raw) != null && Oe.icon ? (D(), W("span", so, [
3081
- I(i(ge), {
2408
+ (Se = re.raw) != null && Se.icon ? (V(), W("span", Qo, [
2409
+ I(o(be), {
3082
2410
  class: "action-icon",
3083
- name: ie.raw.icon
2411
+ name: re.raw.icon
3084
2412
  }, null, 8, ["name"])
3085
- ])) : F("", !0)
2413
+ ])) : U("", !0)
3086
2414
  ];
3087
2415
  }),
3088
2416
  _: 2
3089
2417
  }, 1040)
3090
2418
  ]),
3091
- message: j(({ message: P }) => [
3092
- I(i(re), {
3093
- message: P,
3094
- errors: i(m)
2419
+ message: g(({ message: x }) => [
2420
+ I(o(ae), {
2421
+ message: x,
2422
+ errors: o(m)
3095
2423
  }, null, 8, ["message", "errors"])
3096
2424
  ]),
3097
2425
  _: 2
3098
2426
  }, [
3099
- x.$slots["append-inner"] ? {
2427
+ B.$slots["append-inner"] ? {
3100
2428
  name: "append-inner",
3101
- fn: j((P) => [
3102
- se(x.$slots, "append-inner", ee(te(P)))
2429
+ fn: g((x) => [
2430
+ ie(B.$slots, "append-inner", J(ee(x)))
3103
2431
  ]),
3104
2432
  key: "0"
3105
2433
  } : void 0,
3106
- x.$slots["prepend-inner"] ? {
2434
+ B.$slots["prepend-inner"] ? {
3107
2435
  name: "prepend-inner",
3108
- fn: j((P) => [
3109
- se(x.$slots, "prepend-inner", ee(te(P)))
2436
+ fn: g((x) => [
2437
+ ie(B.$slots, "prepend-inner", J(ee(x)))
3110
2438
  ]),
3111
2439
  key: "1"
3112
2440
  } : void 0
3113
- ]), 1040, ["modelValue", "class", "items", "label", "closable-chips", "clearable", "multiple", "loading", "aria-describedby"])) : F("", !0);
2441
+ ]), 1040, ["modelValue", "class", "items", "label", "closable-chips", "clearable", "multiple", "loading", "aria-describedby"])) : U("", !0);
3114
2442
  };
3115
2443
  }
3116
- }), co = /* @__PURE__ */ U({
2444
+ }), Jo = /* @__PURE__ */ O({
3117
2445
  __name: "df-text-area",
3118
- props: /* @__PURE__ */ Y({
2446
+ props: /* @__PURE__ */ q({
3119
2447
  rows: {},
3120
2448
  maxRows: {},
3121
2449
  control: {},
@@ -3132,128 +2460,128 @@ const so = {
3132
2460
  passthroughAttrs: {},
3133
2461
  density: {},
3134
2462
  variant: {}
3135
- }, L(S({}, Q), {
2463
+ }, L(S({}, Y), {
3136
2464
  rows: void 0,
3137
2465
  maxRows: void 0
3138
2466
  })),
3139
2467
  emits: ["update:modelValue", "click:clear"],
3140
- setup(e, { emit: n }) {
3141
- const o = e, l = n, { densityClass: d, errors: t, label: a, touched: r, value: s, vuetifyBindings: u } = X(o, l), { cssClass: c, visibility: m } = je(o);
3142
- return (g, f) => {
3143
- const b = $("v-textarea");
3144
- return D(), W("div", {
3145
- class: G(["df-textarea-container", i(d)])
2468
+ setup(e, { emit: t }) {
2469
+ const n = e, l = t, { densityClass: a, errors: r, label: s, touched: p, value: i, vuetifyBindings: d } = X(n, l), { cssClass: v, visibility: m } = je(n);
2470
+ return (b, c) => {
2471
+ const T = A("v-textarea");
2472
+ return V(), W("div", {
2473
+ class: G(["df-textarea-container", o(a)])
3146
2474
  }, [
3147
- i(m) !== i(q).SUPPRESS ? (D(), E(b, R({
2475
+ o(m) !== o(K).SUPPRESS ? (V(), D(T, R({
3148
2476
  key: 0,
3149
- modelValue: i(s),
3150
- "onUpdate:modelValue": f[0] || (f[0] = (h) => le(s) ? s.value = h : null),
2477
+ modelValue: o(i),
2478
+ "onUpdate:modelValue": c[0] || (c[0] = (_) => ne(i) ? i.value = _ : null),
3151
2479
  class: [
3152
- i(c),
2480
+ o(v),
3153
2481
  {
3154
- "d-none": i(m) === i(q).HIDDEN,
3155
- invisible: i(m) === i(q).INVISIBLE
2482
+ "d-none": o(m) === o(K).HIDDEN,
2483
+ invisible: o(m) === o(K).INVISIBLE
3156
2484
  }
3157
2485
  ],
3158
- rows: g.rows,
3159
- "auto-grow": (g.maxRows || 0) > 0,
3160
- "max-rows": g.maxRows
3161
- }, i(u), {
3162
- onBlur: f[1] || (f[1] = (h) => r.value = !0)
2486
+ rows: b.rows,
2487
+ "auto-grow": (b.maxRows || 0) > 0,
2488
+ "max-rows": b.maxRows
2489
+ }, o(d), {
2490
+ onBlur: c[1] || (c[1] = (_) => p.value = !0)
3163
2491
  }), {
3164
- label: j((h) => [
3165
- I(i(ae), {
3166
- data: h,
3167
- label: i(a)
2492
+ label: g((_) => [
2493
+ I(o(le), {
2494
+ data: _,
2495
+ label: o(s)
3168
2496
  }, null, 8, ["data", "label"])
3169
2497
  ]),
3170
- message: j(({ message: h }) => [
3171
- I(i(re), {
3172
- message: h,
3173
- errors: i(t)
2498
+ message: g(({ message: _ }) => [
2499
+ I(o(ae), {
2500
+ message: _,
2501
+ errors: o(r)
3174
2502
  }, null, 8, ["message", "errors"])
3175
2503
  ]),
3176
2504
  _: 1
3177
- }, 16, ["modelValue", "class", "rows", "auto-grow", "max-rows"])) : F("", !0)
2505
+ }, 16, ["modelValue", "class", "rows", "auto-grow", "max-rows"])) : U("", !0)
3178
2506
  ], 2);
3179
2507
  };
3180
2508
  }
3181
- }), mo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2509
+ }), el = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3182
2510
  __proto__: null,
3183
- DfActions: Yl,
3184
- DfCheckbox: Ql,
3185
- DfColor: Zl,
3186
- DfDateTime: Jl,
3187
- DfFile: eo,
3188
- DfInput: to,
3189
- DfRtfEditor: ro,
3190
- DfSelect: uo,
3191
- DfTextArea: co
3192
- }, Symbol.toStringTag, { value: "Module" })), fo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2511
+ DfActions: Lo,
2512
+ DfCheckbox: Uo,
2513
+ DfColor: Oo,
2514
+ DfDateTime: Ro,
2515
+ DfFile: Wo,
2516
+ DfInput: zo,
2517
+ DfRtfEditor: qo,
2518
+ DfSelect: Zo,
2519
+ DfTextArea: Jo
2520
+ }, Symbol.toStringTag, { value: "Module" })), tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3193
2521
  __proto__: null,
3194
- VAutocomplete: gn,
3195
- VBtn: yn,
3196
- VCheckbox: wn,
3197
- VChip: kn,
3198
- VCol: An,
3199
- VColorPicker: _n,
3200
- VCombobox: Vn,
3201
- VConfirmEdit: jn,
3202
- VDatePicker: Cn,
3203
- VField: Tn,
3204
- VFileInput: Dn,
3205
- VIcon: In,
3206
- VImg: Bn,
3207
- VInput: En,
3208
- VListItem: Pn,
3209
- VMenu: Sn,
3210
- VNumberInput: On,
3211
- VProgressLinear: $n,
3212
- VRow: xn,
3213
- VSelect: Mn,
3214
- VSwitch: Nn,
3215
- VTextField: Fn,
3216
- VTextarea: Ln,
3217
- VTimePicker: Un
3218
- }, Symbol.toStringTag, { value: "Module" })), qo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2522
+ VAutocomplete: mn,
2523
+ VBtn: pn,
2524
+ VCheckbox: fn,
2525
+ VChip: vn,
2526
+ VCol: Vn,
2527
+ VColorPicker: bn,
2528
+ VCombobox: hn,
2529
+ VConfirmEdit: gn,
2530
+ VDatePicker: wn,
2531
+ VField: yn,
2532
+ VFileInput: kn,
2533
+ VIcon: Cn,
2534
+ VImg: Tn,
2535
+ VInput: _n,
2536
+ VListItem: Bn,
2537
+ VMenu: In,
2538
+ VNumberInput: Pn,
2539
+ VProgressLinear: Dn,
2540
+ VRow: jn,
2541
+ VSelect: xn,
2542
+ VSwitch: Sn,
2543
+ VTextField: $n,
2544
+ VTextarea: En,
2545
+ VTimePicker: An
2546
+ }, Symbol.toStringTag, { value: "Module" })), Al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3219
2547
  __proto__: null
3220
- }, Symbol.toStringTag, { value: "Module" })), Xo = {
3221
- install: (e, n) => {
3222
- var o, l;
3223
- e.use(Jn), e.provide(it, n != null ? n : {}), (o = n == null ? void 0 : n.registerComponents) != null && o && Object.entries(mo).map(([d, t]) => e.component(d, t)), (l = n == null ? void 0 : n.registerVuetifyComponents) != null && l && Object.entries(fo).map(([d, t]) => e.component(d, t));
2548
+ }, Symbol.toStringTag, { value: "Module" })), Nl = {
2549
+ install: (e, t) => {
2550
+ var n, l;
2551
+ e.use(Xn), e.provide(tt, t != null ? t : {}), (n = t == null ? void 0 : t.registerComponents) != null && n && Object.entries(el).map(([a, r]) => e.component(a, r)), (l = t == null ? void 0 : t.registerVuetifyComponents) != null && l && Object.entries(tl).map(([a, r]) => e.component(a, r));
3224
2552
  }
3225
2553
  };
3226
2554
  export {
3227
- Ve as Action,
2555
+ ke as Action,
3228
2556
  z as ActionDisplayStyle,
3229
- Ol as DateTimeLocaleConfig,
3230
- Yl as DfActions,
3231
- Ql as DfCheckbox,
3232
- Zl as DfColor,
3233
- Jl as DfDateTime,
3234
- eo as DfFile,
3235
- to as DfInput,
3236
- qo as DfInputComponentProps,
3237
- mo as DfInputComponents,
3238
- ae as DfLabel,
3239
- ro as DfRtfEditor,
3240
- uo as DfSelect,
3241
- co as DfTextArea,
3242
- Xo as DynamicFormsInputs,
3243
- Se as InputBase,
3244
- Rl as Label,
3245
- re as MessagesWidget,
3246
- ql as ResponsiveActionRenderOptions,
3247
- zl as ResponsiveRenderOptions,
3248
- fo as VuetifyComponents,
3249
- Q as defaultBaseProps,
3250
- Ye as defaultDisplayStyle,
3251
- Hl as getBreakpointName,
3252
- Qe as responsiveBreakpoints,
2557
+ Do as DateTimeLocaleConfig,
2558
+ Lo as DfActions,
2559
+ Uo as DfCheckbox,
2560
+ Oo as DfColor,
2561
+ Ro as DfDateTime,
2562
+ Wo as DfFile,
2563
+ zo as DfInput,
2564
+ Al as DfInputComponentProps,
2565
+ el as DfInputComponents,
2566
+ le as DfLabel,
2567
+ qo as DfRtfEditor,
2568
+ Zo as DfSelect,
2569
+ Jo as DfTextArea,
2570
+ Nl as DynamicFormsInputs,
2571
+ xe as InputBase,
2572
+ xo as Label,
2573
+ ae as MessagesWidget,
2574
+ No as ResponsiveActionRenderOptions,
2575
+ Eo as ResponsiveRenderOptions,
2576
+ tl as VuetifyComponents,
2577
+ Y as defaultBaseProps,
2578
+ ze as defaultDisplayStyle,
2579
+ $o as getBreakpointName,
2580
+ He as responsiveBreakpoints,
3253
2581
  ve as translatableStrings,
3254
- Ko as translateStrings,
3255
- Kl as useBreakpoint,
2582
+ $l as translateStrings,
2583
+ Ao as useBreakpoint,
3256
2584
  X as useInputBase,
3257
- it as vuetifyInputsSettingsKey
2585
+ tt as vuetifyInputsSettingsKey
3258
2586
  };
3259
2587
  //# sourceMappingURL=dynamicforms-vuetify-inputs.js.map