@dynamicforms/vuetify-inputs 0.6.2 → 0.6.3

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