@dynamicforms/vuetify-inputs 0.6.5 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,64 +1,64 @@
1
- var nt = Object.defineProperty, ot = Object.defineProperties;
2
- var lt = Object.getOwnPropertyDescriptors;
1
+ var tt = Object.defineProperty, nt = Object.defineProperties;
2
+ var ot = Object.getOwnPropertyDescriptors;
3
3
  var Ee = Object.getOwnPropertySymbols;
4
- var at = Object.prototype.hasOwnProperty, rt = Object.prototype.propertyIsEnumerable;
5
- var Ce = (e, t, n) => t in e ? nt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, S = (e, t) => {
4
+ var at = Object.prototype.hasOwnProperty, lt = Object.prototype.propertyIsEnumerable;
5
+ var je = (e, t, n) => t in e ? tt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, x = (e, t) => {
6
6
  for (var n in t || (t = {}))
7
- at.call(t, n) && Ce(e, n, t[n]);
7
+ at.call(t, n) && je(e, n, t[n]);
8
8
  if (Ee)
9
9
  for (var n of Ee(t))
10
- rt.call(t, n) && Ce(e, n, t[n]);
10
+ lt.call(t, n) && je(e, n, t[n]);
11
11
  return e;
12
- }, L = (e, t) => ot(e, lt(t));
13
- var $e = (e, t, n) => Ce(e, typeof t != "symbol" ? t + "" : t, n);
14
- var ge = (e, t, n) => new Promise((l, a) => {
12
+ }, O = (e, t) => nt(e, ot(t));
13
+ var $e = (e, t, n) => je(e, typeof t != "symbol" ? t + "" : t, n);
14
+ var ge = (e, t, n) => new Promise((a, l) => {
15
15
  var r = (i) => {
16
16
  try {
17
- p(n.next(i));
18
- } catch (d) {
19
- a(d);
17
+ m(n.next(i));
18
+ } catch (p) {
19
+ l(p);
20
20
  }
21
21
  }, s = (i) => {
22
22
  try {
23
- p(n.throw(i));
24
- } catch (d) {
25
- a(d);
23
+ m(n.throw(i));
24
+ } catch (p) {
25
+ l(p);
26
26
  }
27
- }, p = (i) => i.done ? l(i.value) : Promise.resolve(i.value).then(r, s);
28
- p((n = n.apply(e, t)).next());
27
+ }, m = (i) => i.done ? a(i.value) : Promise.resolve(i.value).then(r, s);
28
+ m((n = n.apply(e, t)).next());
29
29
  });
30
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";
31
+ import { defineComponent as H, mergeModels as Ne, useModel as rt, ref as F, watch as ue, onMounted as Ke, markRaw as it, onBeforeUnmount as Xe, createBlock as D, openBlock as V, resolveDynamicComponent as he, version as st, isRef as ae, computed as b, unref as o, resolveComponent as N, createElementBlock as W, normalizeClass as Y, createCommentVNode as U, Fragment as Ie, createTextVNode as ut, toDisplayString as Pe, inject as Te, createSlots as De, withCtx as w, createVNode as B, renderSlot as se, normalizeProps as te, guardReactiveProps as ne, createElementVNode as le, renderList as ct, withModifiers as dt, mergeDefaults as Q, mergeProps as R, normalizeStyle as Ge, toRefs as Ce, withKeys as Fe, useCssVars as mt, nextTick as Me } from "vue";
32
+ import { debounce as pt, isString as oe, isEmpty as ve, isObjectLike as ft, isBoolean as Le, clone as vt, toNumber as Ue, isNaN as He, isArray as Oe, castArray as qe, first as Ye, unionBy as ht } from "lodash-es";
33
33
  import { CachedIcon as be } from "vue-cached-icon";
34
- import We, { MdString as gt, ValidationErrorRenderContent as wt, DisplayMode as K, Action as yt } from "@dynamicforms/vue-forms";
35
- import Qe from "vue-markdown-render";
36
- import { useDisplay as kt } from "vuetify";
37
- import { format as de, parse as Vt } from "date-fns";
38
- import { AccessibilityHelp as jt, Alignment as Ct, AutoImage as Tt, AutoLink as _t, Autosave as Bt, BalloonToolbar as It, BlockQuote as Pt, Bold as Dt, CloudServices as xt, Essentials as St, GeneralHtmlSupport as Et, Heading as $t, HorizontalLine as At, ImageBlock as Nt, ImageCaption as Ft, ImageInline as Mt, ImageInsertViaUrl as Lt, ImageResize as Ut, ImageStyle as Ot, ImageToolbar as Rt, ImageUpload as Wt, Indent as zt, IndentBlock as Ht, Italic as Kt, Link as Xt, List as Gt, Autoformat as qt, MediaEmbed as Yt, Paragraph as Qt, PasteFromMarkdownExperimental as Zt, PasteFromOffice as Jt, SelectAll as en, Style as tn, Table as nn, TableCellProperties as on, TableColumnResize as ln, TableProperties as an, TableToolbar as rn, Undo as sn, TextTransformation as un, Base64UploadAdapter as cn, ClassicEditor as dn } from "ckeditor5";
39
- import { VAutocomplete as mn } from "vuetify/components/VAutocomplete";
40
- import { VBtn as pn } from "vuetify/components/VBtn";
41
- import { VCheckbox as fn } from "vuetify/components/VCheckbox";
42
- import { VChip as vn } from "vuetify/components/VChip";
43
- import { VCombobox as hn } from "vuetify/components/VCombobox";
44
- import { VColorPicker as bn } from "vuetify/components/VColorPicker";
45
- import { VConfirmEdit as gn } from "vuetify/components/VConfirmEdit";
46
- import { VDatePicker as wn } from "vuetify/components/VDatePicker";
47
- import { VField as yn } from "vuetify/components/VField";
48
- import { VFileInput as kn } from "vuetify/components/VFileInput";
49
- import { VCol as Vn, VRow as jn } from "vuetify/components/VGrid";
50
- import { VIcon as Cn } from "vuetify/components/VIcon";
51
- import { VImg as Tn } from "vuetify/components/VImg";
52
- import { VInput as _n } from "vuetify/components/VInput";
53
- import { VListItem as Bn } from "vuetify/components/VList";
54
- import { VMenu as In } from "vuetify/components/VMenu";
34
+ import Re, { MessagesWidget as bt, MdString as gt, ValidationErrorRenderContent as wt, DisplayMode as X, Action as yt } from "@dynamicforms/vue-forms";
35
+ import kt from "vue-markdown-render";
36
+ import { useDisplay as Vt } from "vuetify";
37
+ import { format as me, parse as Ct } from "date-fns";
38
+ import { AccessibilityHelp as jt, Alignment as Tt, AutoImage as _t, AutoLink as Bt, Autosave as It, BalloonToolbar as Dt, BlockQuote as Pt, Bold as St, CloudServices as xt, Essentials as Et, GeneralHtmlSupport as $t, Heading as At, HorizontalLine as Nt, ImageBlock as Ft, ImageCaption as Mt, ImageInline as Lt, ImageInsertViaUrl as Ut, ImageResize as Ht, ImageStyle as Ot, ImageToolbar as Rt, ImageUpload as Wt, Indent as zt, IndentBlock as Kt, Italic as Xt, Link as Gt, List as qt, Autoformat as Yt, MediaEmbed as Qt, Paragraph as Zt, PasteFromMarkdownExperimental as Jt, PasteFromOffice as en, SelectAll as tn, Style as nn, Table as on, TableCellProperties as an, TableColumnResize as ln, TableProperties as rn, TableToolbar as sn, Undo as un, TextTransformation as cn, Base64UploadAdapter as dn, ClassicEditor as mn } from "ckeditor5";
39
+ import { VAutocomplete as pn } from "vuetify/components/VAutocomplete";
40
+ import { VBtn as fn } from "vuetify/components/VBtn";
41
+ import { VCheckbox as vn } from "vuetify/components/VCheckbox";
42
+ import { VChip as hn } from "vuetify/components/VChip";
43
+ import { VCombobox as bn } from "vuetify/components/VCombobox";
44
+ import { VColorPicker as gn } from "vuetify/components/VColorPicker";
45
+ import { VConfirmEdit as wn } from "vuetify/components/VConfirmEdit";
46
+ import { VDatePicker as yn } from "vuetify/components/VDatePicker";
47
+ import { VField as kn } from "vuetify/components/VField";
48
+ import { VFileInput as Vn } from "vuetify/components/VFileInput";
49
+ import { VCol as Cn, VRow as jn } from "vuetify/components/VGrid";
50
+ import { VIcon as Tn } from "vuetify/components/VIcon";
51
+ import { VImg as _n } from "vuetify/components/VImg";
52
+ import { VInput as Bn } from "vuetify/components/VInput";
53
+ import { VListItem as In } from "vuetify/components/VList";
54
+ import { VMenu as Dn } from "vuetify/components/VMenu";
55
55
  import { VNumberInput as Pn } from "vuetify/components/VNumberInput";
56
- import { VProgressLinear as Dn } from "vuetify/components/VProgressLinear";
56
+ import { VProgressLinear as Sn } from "vuetify/components/VProgressLinear";
57
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";
58
+ import { VSwitch as En } from "vuetify/components/VSwitch";
59
+ import { VTextarea as $n } from "vuetify/components/VTextarea";
60
+ import { VTextField as An } from "vuetify/components/VTextField";
61
+ import { VTimePicker as Nn } 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
@@ -72,12 +72,12 @@ new Array(256).fill("").map((e, t) => ("0" + t.toString(16)).slice(-2));
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) {
75
+ function Fn(e, t) {
76
76
  const n = e.extraPlugins || [];
77
- return L(S({}, e), {
77
+ return O(x({}, e), {
78
78
  extraPlugins: [
79
79
  ...n,
80
- ...t.filter((l) => !n.includes(l))
80
+ ...t.filter((a) => !n.includes(a))
81
81
  ]
82
82
  });
83
83
  }
@@ -85,41 +85,41 @@ 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 Qe(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) {
95
+ function Ze(e) {
96
96
  return e ? ["nightly", "alpha", "internal", "nightly-", "staging"].some((t) => e.includes(t)) : !1;
97
97
  }
98
- function Fn(e) {
99
- return Ze(e) || Je(e);
98
+ function Mn(e) {
99
+ return Qe(e) || Ze(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 Ln(e) {
106
+ if (!Qe(e))
107
107
  throw new Error(`Invalid semantic version: ${e || "<blank>"}.`);
108
- const [t, n, l] = e.split(".");
108
+ const [t, n, a] = e.split(".");
109
109
  return {
110
110
  major: Number.parseInt(t, 10),
111
111
  minor: Number.parseInt(n, 10),
112
- patch: Number.parseInt(l, 10)
112
+ patch: Number.parseInt(a, 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 Un(e) {
120
+ if (Ze(e))
121
121
  return 3;
122
- const { major: t } = Mn(e);
122
+ const { major: t } = Ln(e);
123
123
  switch (!0) {
124
124
  case t >= 44:
125
125
  return 3;
@@ -133,9 +133,9 @@ 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() {
136
+ function Hn() {
137
137
  const { CKEDITOR_VERSION: e, CKEDITOR: t } = window;
138
- return Fn(e) ? {
138
+ return Mn(e) ? {
139
139
  source: t ? "cdn" : "npm",
140
140
  version: e
141
141
  } : null;
@@ -145,14 +145,14 @@ function Un() {
145
145
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
146
146
  */
147
147
  function On() {
148
- const e = Un();
149
- return e ? Ln(e.version) : null;
148
+ const e = Hn();
149
+ return e ? Un(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) {
155
+ function Je(e, t) {
156
156
  switch (t || (t = On() || void 0), t) {
157
157
  case 1:
158
158
  case 2:
@@ -168,8 +168,8 @@ function et(e, t) {
168
168
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
169
169
  */
170
170
  function Rn(e, t) {
171
- return function(l) {
172
- et(l.config.get("licenseKey")) || l.on("collectUsageData", (a, { setUsageData: r }) => {
171
+ return function(a) {
172
+ Je(a.config.get("licenseKey")) || a.on("collectUsageData", (l, { setUsageData: r }) => {
173
173
  r(`integration.${e}`, t);
174
174
  });
175
175
  };
@@ -182,7 +182,7 @@ const Wn = Rn(
182
182
  "vue",
183
183
  {
184
184
  version: "7.3.0",
185
- frameworkVersion: ut
185
+ frameworkVersion: st
186
186
  }
187
187
  );
188
188
  /**
@@ -190,7 +190,7 @@ const Wn = Rn(
190
190
  * For licensing, see LICENSE.md.
191
191
  */
192
192
  function zn(e) {
193
- return et(e.licenseKey) ? e : Nn(e, [
193
+ return Je(e.licenseKey) ? e : Fn(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
@@ -199,7 +199,7 @@ function zn(e) {
199
199
  Wn
200
200
  ]);
201
201
  }
202
- const _e = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", Hn = 300, Kn = /* @__PURE__ */ O({
202
+ const _e = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", Kn = 300, Xn = /* @__PURE__ */ H({
203
203
  name: "CKEditor",
204
204
  __name: "ckeditor",
205
205
  props: /* @__PURE__ */ Ne({
@@ -214,47 +214,47 @@ const _e = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", Hn = 300, Kn =
214
214
  }),
215
215
  emits: /* @__PURE__ */ Ne(["ready", "destroy", "blur", "focus", "input", "update:modelValue"], ["update:modelValue"]),
216
216
  setup(e, { expose: t, emit: n }) {
217
- const l = it(e, "modelValue"), a = e, r = n, s = N(), p = N(), i = N();
217
+ const a = rt(e, "modelValue"), l = e, r = n, s = F(), m = F(), i = F();
218
218
  t({
219
- instance: p,
219
+ instance: m,
220
220
  lastEditorData: i
221
- }), se(l, (m) => {
222
- p.value && m !== i.value && p.value.data.set(m);
223
- }), se(() => a.disabled, (m) => {
224
- m ? p.value.enableReadOnlyMode(_e) : p.value.disableReadOnlyMode(_e);
221
+ }), ue(a, (d) => {
222
+ m.value && d !== i.value && m.value.data.set(d);
223
+ }), ue(() => l.disabled, (d) => {
224
+ d ? m.value.enableReadOnlyMode(_e) : m.value.disableReadOnlyMode(_e);
225
225
  });
226
- function d() {
227
- const m = window.CKEDITOR_VERSION;
228
- if (!m)
226
+ function p() {
227
+ const d = window.CKEDITOR_VERSION;
228
+ if (!d)
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 [y] = d.split(".").map(Number);
231
+ y >= 42 || d.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 (a.disableTwoWayDataBinding)
233
+ function h(d) {
234
+ const y = pt((c) => {
235
+ if (l.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 j = i.value = d.data.get();
238
+ r("update:modelValue", j, c, d), r("input", j, c, d);
239
+ }, Kn, { leading: !0 });
240
+ d.model.document.on("change:data", y), d.editing.view.document.on("focus", (c) => {
241
+ r("focus", c, d);
242
+ }), d.editing.view.document.on("blur", (c) => {
243
+ r("blur", c, d);
244
244
  });
245
245
  }
246
- return d(), Ke(() => {
247
- const m = zn(
248
- Object.assign({}, a.config)
246
+ return p(), Ke(() => {
247
+ const d = zn(
248
+ Object.assign({}, l.config)
249
249
  );
250
- l.value && (m.initialData = l.value), a.editor.create(s.value, m).then((b) => {
251
- p.value = st(b), v(b), l.value !== m.initialData && b.data.set(l.value), a.disabled && b.enableReadOnlyMode(_e), r("ready", b);
252
- }).catch((b) => {
253
- console.error(b);
250
+ a.value && (d.initialData = a.value), l.editor.create(s.value, d).then((y) => {
251
+ m.value = it(y), h(y), a.value !== d.initialData && y.data.set(a.value), l.disabled && y.enableReadOnlyMode(_e), r("ready", y);
252
+ }).catch((y) => {
253
+ console.error(y);
254
254
  });
255
255
  }), Xe(() => {
256
- p.value && (p.value.destroy(), p.value = void 0), r("destroy");
257
- }), (m, b) => (V(), D(he(m.tagName), {
256
+ m.value && (m.value.destroy(), m.value = void 0), r("destroy");
257
+ }), (d, y) => (V(), D(he(d.tagName), {
258
258
  ref_key: "element",
259
259
  ref: s
260
260
  }, null, 512));
@@ -269,20 +269,20 @@ if (!Ae.version || !Ae.version.startsWith("3."))
269
269
  throw new Error(
270
270
  "The CKEditor plugin works only with Vue 3+. For more information, please refer to https://ckeditor.com/docs/ckeditor5/latest/builds/guides/integration/frameworks/vuejs-v3.html"
271
271
  );
272
- const Xn = {
272
+ const Gn = {
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", Xn);
280
280
  }
281
281
  };
282
- function Gn(e) {
282
+ function qn(e) {
283
283
  return e.one !== void 0;
284
284
  }
285
- const qn = {
285
+ const Yn = {
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 Qn(e) {
563
563
  switch (e % 100) {
564
564
  case 1:
565
565
  return "one";
@@ -572,17 +572,17 @@ function Yn(e) {
572
572
  return "other";
573
573
  }
574
574
  }
575
- const Qn = (e, t, n) => {
576
- let l = "", a = "present";
577
- n != null && n.addSuffix && (n.comparison && n.comparison > 0 ? (a = "future", l = "čez ") : (a = "past", l = "pred "));
578
- const r = qn[e];
575
+ const Zn = (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 = Yn[e];
579
579
  if (typeof r == "string")
580
- l += r;
580
+ a += r;
581
581
  else {
582
- const s = Yn(t);
583
- Gn(r) ? l += r[s].replace("{{count}}", String(t)) : l += r[a][s].replace("{{count}}", String(t));
582
+ const s = Qn(t);
583
+ qn(r) ? a += r[s].replace("{{count}}", String(t)) : a += r[l][s].replace("{{count}}", String(t));
584
584
  }
585
- return l;
585
+ return a;
586
586
  };
587
587
  function Be(e) {
588
588
  return (t = {}) => {
@@ -590,35 +590,35 @@ function Be(e) {
590
590
  return e.formats[n] || e.formats[e.defaultWidth];
591
591
  };
592
592
  }
593
- const Zn = {
593
+ const Jn = {
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
+ }, eo = {
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
+ }, to = {
604
604
  full: "{{date}} {{time}}",
605
605
  long: "{{date}} {{time}}",
606
606
  medium: "{{date}} {{time}}",
607
607
  short: "{{date}} {{time}}"
608
- }, to = {
608
+ }, no = {
609
609
  date: Be({
610
- formats: Zn,
610
+ formats: Jn,
611
611
  defaultWidth: "full"
612
612
  }),
613
613
  time: Be({
614
- formats: Jn,
614
+ formats: eo,
615
615
  defaultWidth: "full"
616
616
  }),
617
617
  dateTime: Be({
618
- formats: eo,
618
+ formats: to,
619
619
  defaultWidth: "full"
620
620
  })
621
- }, no = {
621
+ }, oo = {
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, l) => {
651
- const a = no[e];
652
- return typeof a == "function" ? a(t) : a;
650
+ }, ao = (e, t, n, a) => {
651
+ const l = oo[e];
652
+ return typeof l == "function" ? l(t) : l;
653
653
  };
654
- function me(e) {
654
+ function pe(e) {
655
655
  return (t, n) => {
656
- const l = n != null && n.context ? String(n.context) : "standalone";
657
- let a;
658
- if (l === "formatting" && e.formattingValues) {
659
- const s = e.defaultFormattingWidth || e.defaultWidth, p = n != null && n.width ? String(n.width) : s;
660
- a = e.formattingValues[p] || e.formattingValues[s];
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, m = n != null && n.width ? String(n.width) : s;
660
+ l = e.formattingValues[m] || e.formattingValues[s];
661
661
  } else {
662
- const s = e.defaultWidth, p = n != null && n.width ? String(n.width) : e.defaultWidth;
663
- a = e.values[p] || e.values[s];
662
+ const s = e.defaultWidth, m = n != null && n.width ? String(n.width) : e.defaultWidth;
663
+ l = e.values[m] || e.values[s];
664
664
  }
665
665
  const r = e.argumentCallback ? e.argumentCallback(t) : t;
666
- return a[r];
666
+ return l[r];
667
667
  };
668
668
  }
669
669
  const lo = {
670
670
  narrow: ["pr. n. št.", "po n. št."],
671
671
  abbreviated: ["pr. n. št.", "po n. št."],
672
672
  wide: ["pred našim štetjem", "po našem štetju"]
673
- }, ao = {
673
+ }, ro = {
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
+ }, io = {
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 lo = {
704
704
  "november",
705
705
  "december"
706
706
  ]
707
- }, io = {
707
+ }, so = {
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 lo = {
717
717
  "petek",
718
718
  "sobota"
719
719
  ]
720
- }, so = {
720
+ }, uo = {
721
721
  narrow: {
722
722
  am: "d",
723
723
  pm: "p",
@@ -748,7 +748,7 @@ const lo = {
748
748
  evening: "večer",
749
749
  night: "noč"
750
750
  }
751
- }, uo = {
751
+ }, co = {
752
752
  narrow: {
753
753
  am: "d",
754
754
  pm: "p",
@@ -779,84 +779,84 @@ const lo = {
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({
782
+ }, mo = (e, t) => Number(e) + ".", po = {
783
+ ordinalNumber: mo,
784
+ era: pe({
785
785
  values: lo,
786
786
  defaultWidth: "wide"
787
787
  }),
788
- quarter: me({
789
- values: ao,
788
+ quarter: pe({
789
+ values: ro,
790
790
  defaultWidth: "wide",
791
791
  argumentCallback: (e) => e - 1
792
792
  }),
793
- month: me({
794
- values: ro,
795
- defaultWidth: "wide"
796
- }),
797
- day: me({
793
+ month: pe({
798
794
  values: io,
799
795
  defaultWidth: "wide"
800
796
  }),
801
- dayPeriod: me({
797
+ day: pe({
802
798
  values: so,
799
+ defaultWidth: "wide"
800
+ }),
801
+ dayPeriod: pe({
802
+ values: uo,
803
803
  defaultWidth: "wide",
804
- formattingValues: uo,
804
+ formattingValues: co,
805
805
  defaultFormattingWidth: "wide"
806
806
  })
807
807
  };
808
- function pe(e) {
808
+ function fe(e) {
809
809
  return (t, n = {}) => {
810
- const l = n.width, a = l && e.matchPatterns[l] || e.matchPatterns[e.defaultMatchWidth], r = t.match(a);
810
+ const a = n.width, l = a && e.matchPatterns[a] || e.matchPatterns[e.defaultMatchWidth], r = t.match(l);
811
811
  if (!r)
812
812
  return null;
813
- const s = r[0], p = l && e.parsePatterns[l] || e.parsePatterns[e.defaultParseWidth], i = Array.isArray(p) ? fo(p, (m) => m.test(s)) : (
813
+ const s = r[0], m = a && e.parsePatterns[a] || e.parsePatterns[e.defaultParseWidth], i = Array.isArray(m) ? vo(m, (d) => d.test(s)) : (
814
814
  // [TODO] -- I challenge you to fix the type
815
- po(p, (m) => m.test(s))
815
+ fo(m, (d) => d.test(s))
816
816
  );
817
- let d;
818
- d = e.valueCallback ? e.valueCallback(i) : i, d = n.valueCallback ? (
817
+ let p;
818
+ p = e.valueCallback ? e.valueCallback(i) : i, p = n.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
+ n.valueCallback(p)
821
+ ) : p;
822
+ const h = t.slice(s.length);
823
+ return { value: p, rest: h };
824
824
  };
825
825
  }
826
- function po(e, t) {
826
+ function fo(e, t) {
827
827
  for (const n in e)
828
828
  if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n]))
829
829
  return n;
830
830
  }
831
- function fo(e, t) {
831
+ function vo(e, t) {
832
832
  for (let n = 0; n < e.length; n++)
833
833
  if (t(e[n]))
834
834
  return n;
835
835
  }
836
- function vo(e) {
836
+ function ho(e) {
837
837
  return (t, n = {}) => {
838
- const l = t.match(e.matchPattern);
839
- if (!l) return null;
840
- const a = l[0], r = t.match(e.parsePattern);
838
+ const a = t.match(e.matchPattern);
839
+ if (!a) return null;
840
+ const l = a[0], r = t.match(e.parsePattern);
841
841
  if (!r) return null;
842
842
  let s = e.valueCallback ? e.valueCallback(r[0]) : r[0];
843
843
  s = n.valueCallback ? n.valueCallback(s) : s;
844
- const p = t.slice(a.length);
845
- return { value: s, rest: p };
844
+ const m = t.slice(l.length);
845
+ return { value: s, rest: m };
846
846
  };
847
847
  }
848
- const ho = /^(\d+)\./i, bo = /\d+/i, go = {
848
+ const bo = /^(\d+)\./i, go = /\d+/i, wo = {
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 = {
852
- any: [/^pr/i, /^(po|na[sš]em)/i]
853
851
  }, yo = {
852
+ any: [/^pr/i, /^(po|na[sš]em)/i]
853
+ }, ko = {
854
854
  narrow: /^[1234]/i,
855
855
  abbreviated: /^[1234]\.\s?[čc]et\.?/i,
856
856
  wide: /^[1234]\. [čc]etrtletje/i
857
- }, ko = {
858
- any: [/1/i, /2/i, /3/i, /4/i]
859
857
  }, Vo = {
858
+ any: [/1/i, /2/i, /3/i, /4/i]
859
+ }, Co = {
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
@@ -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
+ }, To = {
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
+ }, _o = {
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
+ }, Bo = {
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
+ }, Io = {
918
918
  narrow: {
919
919
  am: /^d/i,
920
920
  pm: /^p/i,
@@ -935,60 +935,75 @@ 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
+ }, Do = {
939
+ ordinalNumber: ho({
940
+ matchPattern: bo,
941
+ parsePattern: go,
942
942
  valueCallback: (e) => parseInt(e, 10)
943
943
  }),
944
- era: pe({
945
- matchPatterns: go,
944
+ era: fe({
945
+ matchPatterns: wo,
946
946
  defaultMatchWidth: "wide",
947
- parsePatterns: wo,
947
+ parsePatterns: yo,
948
948
  defaultParseWidth: "any"
949
949
  }),
950
- quarter: pe({
951
- matchPatterns: yo,
950
+ quarter: fe({
951
+ matchPatterns: ko,
952
952
  defaultMatchWidth: "wide",
953
- parsePatterns: ko,
953
+ parsePatterns: Vo,
954
954
  defaultParseWidth: "any",
955
955
  valueCallback: (e) => e + 1
956
956
  }),
957
- month: pe({
958
- matchPatterns: Vo,
957
+ month: fe({
958
+ matchPatterns: Co,
959
959
  defaultMatchWidth: "wide",
960
960
  parsePatterns: jo,
961
961
  defaultParseWidth: "wide"
962
962
  }),
963
- day: pe({
964
- matchPatterns: Co,
963
+ day: fe({
964
+ matchPatterns: To,
965
965
  defaultMatchWidth: "wide",
966
- parsePatterns: To,
966
+ parsePatterns: _o,
967
967
  defaultParseWidth: "any"
968
968
  }),
969
- dayPeriod: pe({
970
- matchPatterns: _o,
969
+ dayPeriod: fe({
970
+ matchPatterns: Bo,
971
971
  defaultMatchWidth: "any",
972
- parsePatterns: Bo,
972
+ parsePatterns: Io,
973
973
  defaultParseWidth: "any"
974
974
  })
975
975
  }, Po = {
976
976
  code: "sl",
977
- formatDistance: Qn,
978
- formatLong: to,
979
- formatRelative: oo,
980
- localize: mo,
981
- match: Io,
977
+ formatDistance: Zn,
978
+ formatLong: no,
979
+ formatRelative: ao,
980
+ localize: po,
981
+ match: Do,
982
982
  options: {
983
983
  weekStartsOn: 1,
984
984
  firstWeekContainsDate: 1
985
985
  }
986
- }, Do = {
987
- dateTimeLocale: N(Po),
986
+ }, So = {
987
+ dateTimeLocale: F(Po),
988
988
  setDateTimeLocale(e) {
989
- ne(e) ? this.dateTimeLocale = e : this.dateTimeLocale.value = e;
989
+ ae(e) ? this.dateTimeLocale = e : this.dateTimeLocale.value = e;
990
990
  }
991
- }, le = /* @__PURE__ */ O({
991
+ }, q = /* @__PURE__ */ H({
992
+ __name: "df-input-hint",
993
+ props: {
994
+ errors: { default: "" },
995
+ message: { default: "" },
996
+ errorClasses: { default: "text-error" },
997
+ messageClasses: { default: "" }
998
+ },
999
+ setup(e) {
1000
+ const t = e, n = b(() => t.errors ? typeof t.errors == "string" ? t.errors.trim().length > 0 : t.errors.length > 0 : !1), a = b(() => n.value ? t.errors : t.message), l = b(() => n.value ? t.errorClasses : t.messageClasses);
1001
+ return (r, s) => (V(), D(o(bt), {
1002
+ message: a.value,
1003
+ classes: l.value
1004
+ }, null, 8, ["message", "classes"]));
1005
+ }
1006
+ }), re = /* @__PURE__ */ H({
992
1007
  __name: "df-label",
993
1008
  props: {
994
1009
  data: {},
@@ -996,106 +1011,106 @@ const ho = /^(\d+)\./i, bo = /\d+/i, go = {
996
1011
  allowWrap: { type: Boolean }
997
1012
  },
998
1013
  setup(e) {
999
- const t = e, n = w(() => t.data ? t.data.label : t.label.text);
1000
- return (l, a) => {
1001
- const r = A("v-img");
1014
+ const t = e, n = b(() => t.data ? t.data.label : t.label.text);
1015
+ return (a, l) => {
1016
+ const r = N("v-img");
1002
1017
  return V(), W("div", {
1003
- class: G(["df-label", { "allow-wrap": l.allowWrap }])
1018
+ class: Y(["df-label", { "allow-wrap": a.allowWrap }])
1004
1019
  }, [
1005
- l.label.icon ? (V(), W(Ie, { key: 0 }, [
1006
- l.label.iconComponent === "v-icon" ? (V(), D(o(be), {
1020
+ a.label.icon ? (V(), W(Ie, { key: 0 }, [
1021
+ a.label.iconComponent === "v-icon" ? (V(), D(o(be), {
1007
1022
  key: 0,
1008
- name: l.label.icon,
1023
+ name: a.label.icon,
1009
1024
  size: "1.25em"
1010
- }, null, 8, ["name"])) : l.label.iconComponent === "v-img" ? (V(), D(r, {
1025
+ }, null, 8, ["name"])) : a.label.iconComponent === "v-img" ? (V(), D(r, {
1011
1026
  key: 1,
1012
1027
  class: "icon",
1013
- src: l.label.icon
1014
- }, null, 8, ["src"])) : (V(), D(he(l.label.iconComponent), {
1028
+ src: a.label.icon
1029
+ }, null, 8, ["src"])) : (V(), D(he(a.label.iconComponent), {
1015
1030
  key: 2,
1016
- src: l.label.icon
1031
+ src: a.label.icon
1017
1032
  }, null, 8, ["src"]))
1018
1033
  ], 64)) : U("", !0),
1019
- n.value instanceof o(gt) ? (V(), D(o(Qe), {
1034
+ n.value instanceof o(gt) ? (V(), D(o(kt), {
1020
1035
  key: 1,
1021
1036
  class: "markdown",
1022
1037
  source: n.value.toString(),
1023
1038
  options: n.value.options,
1024
1039
  plugins: n.value.plugins
1025
1040
  }, null, 8, ["source", "options", "plugins"])) : (V(), W(Ie, { key: 2 }, [
1026
- ct(De(n.value), 1)
1041
+ ut(Pe(n.value), 1)
1027
1042
  ], 64))
1028
1043
  ], 2);
1029
1044
  };
1030
1045
  }
1031
- }), tt = Symbol("vuetifyInputsSettingsKey");
1046
+ }), et = Symbol("vuetifyInputsSettingsKey");
1032
1047
  class xo {
1033
- constructor(t, n, l = "v-icon") {
1034
- this.text = t, this.icon = n, this.iconComponent = l;
1048
+ constructor(t, n, a = "v-icon") {
1049
+ this.text = t, this.icon = n, this.iconComponent = a;
1035
1050
  }
1036
1051
  }
1037
- const Y = { enabled: void 0, clearable: !0 };
1038
- function X(e, t) {
1039
- const n = Te(tt, {}), l = N(null), a = w({
1052
+ const Z = { enabled: void 0, clearable: !0 };
1053
+ function G(e, t) {
1054
+ const n = Te(et, {}), a = F(null), l = b({
1040
1055
  get() {
1041
- return e.control ? e.control.value : e.modelValue === void 0 ? l.value : e.modelValue;
1056
+ return e.control ? e.control.value : e.modelValue === void 0 ? a.value : e.modelValue;
1042
1057
  },
1043
- set(k) {
1044
- e.control && (e.control.value = k), e.modelValue === void 0 && (l.value = k), t("update:modelValue", k);
1058
+ set(v) {
1059
+ e.control && (e.control.value = v), e.modelValue === void 0 && (a.value = v), t("update:modelValue", v);
1045
1060
  }
1046
1061
  });
1047
- if (e.control && !(e.control instanceof We.FieldBase))
1062
+ if (e.control && !(e.control instanceof Re.FieldBase))
1048
1063
  throw new Error("control prop is not a vue-form control instance");
1049
- const r = w({
1064
+ const r = b({
1050
1065
  get() {
1051
1066
  return e.control.touched;
1052
1067
  },
1053
- set(k) {
1054
- e.control.touched = k;
1068
+ set(v) {
1069
+ e.control.touched = v;
1055
1070
  }
1056
- }), s = e.control ? r : N(!1), p = w(() => e.control ? e.control.valid : !0), i = w(
1057
- () => e.control ? e.control.errors : (e.errors || []).map((k) => new wt(k))
1058
- ), d = w(() => s.value && i.value.length > 0 ? " " : void 0), v = w(() => e.control ? e.control.enabled : e.enabled !== !1), m = w(
1059
- () => e.control ? e.control.visibility : e.visibility || We.DisplayMode.FULL
1060
- ), b = w(
1061
- () => te(e.label || "") ? new xo(e.label || "") : e.label
1062
- ), c = w(() => e.placeholder || ""), T = w(() => e.helpText || ""), _ = w(() => e.hint || ""), y = w(() => e.cssClass || ""), h = w(
1071
+ }), s = e.control ? r : F(!1), m = b(() => e.control ? e.control.valid : !0), i = b(
1072
+ () => e.control ? e.control.errors : (e.errors || []).map((v) => new wt(v))
1073
+ ), p = b(() => s.value && i.value.length > 0 ? " " : void 0), h = b(() => s.value ? i.value : void 0), d = b(() => e.control ? e.control.enabled : e.enabled !== !1), y = b(
1074
+ () => e.control ? e.control.visibility : e.visibility || Re.DisplayMode.FULL
1075
+ ), c = b(
1076
+ () => oe(e.label || "") ? new xo(e.label || "") : e.label
1077
+ ), j = b(() => e.placeholder || ""), T = b(() => e.helpText || ""), k = b(() => e.hint || ""), g = b(() => e.cssClass || ""), P = b(
1063
1078
  () => {
1064
- var k, j, M;
1065
- return (M = (j = (k = e.density) != null ? k : Te("field-density", null)) != null ? j : n.defaultDensity) != null ? M : "default";
1079
+ var v, L, f;
1080
+ return (f = (L = (v = e.density) != null ? v : Te("field-density", null)) != null ? L : n.defaultDensity) != null ? f : "default";
1066
1081
  }
1067
- ), E = w(() => h.value === "inline" ? "default" : h.value), F = w(
1082
+ ), M = b(() => P.value === "inline" ? "default" : P.value), E = b(
1068
1083
  () => {
1069
- var k, j, M;
1070
- return (M = (j = (k = e.variant) != null ? k : Te("field-variant", null)) != null ? j : n.defaultVariant) != null ? M : "underlined";
1084
+ var v, L, f;
1085
+ return (f = (L = (v = e.variant) != null ? v : Te("field-variant", null)) != null ? L : n.defaultVariant) != null ? f : "underlined";
1071
1086
  }
1072
1087
  );
1073
1088
  return {
1074
- value: a,
1075
- valid: p,
1076
- enabled: v,
1089
+ value: l,
1090
+ valid: m,
1091
+ enabled: d,
1077
1092
  errors: i,
1078
- visibility: m,
1079
- label: b,
1093
+ showErrors: h,
1094
+ visibility: y,
1095
+ label: c,
1080
1096
  touched: s,
1081
- density: h.value,
1082
- densityClass: w(() => `df-density-${h.value}`),
1083
- vuetifyBindings: w(() => {
1084
- var k;
1085
- return S({
1086
- name: (k = e.control) == null ? void 0 : k.fieldName,
1087
- class: y.value,
1088
- density: E.value,
1089
- variant: F.value,
1090
- label: b.value.text,
1091
- messages: d.value,
1092
- errorMessages: d.value,
1097
+ density: P.value,
1098
+ densityClass: b(() => `df-density-${P.value}`),
1099
+ vuetifyBindings: b(() => {
1100
+ var v;
1101
+ return x({
1102
+ name: (v = e.control) == null ? void 0 : v.fieldName,
1103
+ class: g.value,
1104
+ density: M.value,
1105
+ variant: E.value,
1106
+ label: c.value.text,
1107
+ errorMessages: p.value,
1093
1108
  // 'error-count': errors?.value.length || 0,
1094
- readonly: !v.value,
1095
- disabled: !v.value,
1096
- placeholder: c.value,
1097
- "persistent-placeholder": !fe(c.value),
1098
- hint: _.value,
1109
+ readonly: !d.value,
1110
+ disabled: !d.value,
1111
+ placeholder: j.value,
1112
+ "persistent-placeholder": !ve(j.value),
1113
+ hint: k.value,
1099
1114
  persistentHint: !0,
1100
1115
  // we want persistent hint always
1101
1116
  hideDetails: "auto",
@@ -1105,45 +1120,7 @@ function X(e, t) {
1105
1120
  })
1106
1121
  };
1107
1122
  }
1108
- const ae = /* @__PURE__ */ O({
1109
- __name: "messages-widget",
1110
- props: {
1111
- errors: {},
1112
- message: {},
1113
- classes: { default: "text-error" }
1114
- },
1115
- setup(e) {
1116
- const t = e, n = () => {
1117
- if (t.message !== " ") return we("span", { class: t.classes }, t.message);
1118
- const l = [];
1119
- return t.errors.forEach((a) => {
1120
- switch (a.componentName) {
1121
- case "template":
1122
- l.push(we("div", { class: t.classes }, a.componentBody));
1123
- break;
1124
- case "vue-markdown": {
1125
- const r = a.componentBindings;
1126
- l.push(
1127
- we(Qe, {
1128
- class: [t.classes, "df-messages-widget-markdown"],
1129
- source: r.source,
1130
- options: r.options,
1131
- plugins: r.plugins
1132
- })
1133
- );
1134
- break;
1135
- }
1136
- default:
1137
- l.push(
1138
- we(a.componentName, L(S({ class: t.classes }, a.componentBindings), { innerHTML: a.componentBody }))
1139
- );
1140
- break;
1141
- }
1142
- }), l;
1143
- };
1144
- return (l, a) => (V(), D(n));
1145
- }
1146
- }), So = { class: "d-flex w-100 df-style-resetting" }, xe = /* @__PURE__ */ O({
1123
+ const Eo = { class: "d-flex w-100 df-style-resetting" }, Se = /* @__PURE__ */ H({
1147
1124
  __name: "input-base",
1148
1125
  props: {
1149
1126
  control: {},
@@ -1164,68 +1141,68 @@ const ae = /* @__PURE__ */ O({
1164
1141
  },
1165
1142
  emits: ["update:modelValue", "click:clear", "blur"],
1166
1143
  setup(e, { emit: t }) {
1167
- const n = e, l = t, { errors: a, label: r, value: s, touched: p, visibility: i, vuetifyBindings: d } = X(n, l), v = w(() => !!(o(n.clearable) && o(s))), m = N(!1);
1168
- function b(c) {
1169
- m.value = c, c || (p.value = !0, l("blur"));
1144
+ const n = e, a = t, { label: l, showErrors: r, touched: s, value: m, visibility: i, vuetifyBindings: p } = G(n, a), h = b(() => !!(o(n.clearable) && o(m))), d = F(!1);
1145
+ function y(c) {
1146
+ d.value = c, c || (s.value = !0, a("blur"));
1170
1147
  }
1171
- return (c, T) => {
1172
- const _ = A("v-field"), y = A("v-input");
1173
- return o(i) !== o(K).SUPPRESS ? (V(), D(y, {
1148
+ return (c, j) => {
1149
+ const T = N("v-field"), k = N("v-input");
1150
+ return o(i) !== o(X).SUPPRESS ? (V(), D(k, {
1174
1151
  key: 0,
1175
- name: o(d).name,
1176
- density: o(d).density,
1177
- hint: o(d).hint,
1178
- "persistent-hint": o(d).persistentHint,
1179
- "hide-details": o(d).hideDetails,
1180
- "error-messages": o(d).errorMessages,
1181
- class: G([
1152
+ name: o(p).name,
1153
+ density: o(p).density,
1154
+ hint: o(p).hint,
1155
+ "persistent-hint": o(p).persistentHint,
1156
+ "hide-details": o(p).hideDetails,
1157
+ "error-messages": o(p).errorMessages,
1158
+ class: Y([
1182
1159
  c.cssClass,
1183
1160
  {
1184
- "d-none": o(i) === o(K).HIDDEN,
1185
- invisible: o(i) === o(K).INVISIBLE
1161
+ "d-none": o(i) === o(X).HIDDEN,
1162
+ invisible: o(i) === o(X).INVISIBLE
1186
1163
  }
1187
1164
  ])
1188
- }, Pe({
1189
- message: g(({ message: h }) => [
1190
- I(ae, {
1191
- message: h,
1192
- errors: o(a)
1165
+ }, De({
1166
+ message: w(({ message: g }) => [
1167
+ B(q, {
1168
+ message: g,
1169
+ errors: o(r)
1193
1170
  }, null, 8, ["message", "errors"])
1194
1171
  ]),
1195
- default: g(() => [
1196
- I(_, {
1197
- variant: o(d).variant,
1198
- density: o(d).density,
1199
- label: o(d).label,
1200
- disabled: o(d).disabled,
1201
- clearable: v.value,
1172
+ default: w(() => [
1173
+ B(T, {
1174
+ variant: o(p).variant,
1175
+ density: o(p).density,
1176
+ label: o(p).label,
1177
+ disabled: o(p).disabled,
1178
+ clearable: h.value,
1202
1179
  "persistent-clear": !0,
1203
- dirty: !!o(s),
1204
- active: m.value,
1180
+ dirty: !!o(m),
1181
+ active: d.value,
1205
1182
  loading: c.loading,
1206
- "onClick:clear": T[0] || (T[0] = (h) => l("click:clear")),
1207
- "onUpdate:focused": T[1] || (T[1] = (h) => b(h))
1208
- }, Pe({
1209
- label: g((h) => [
1210
- I(le, {
1211
- data: h,
1212
- label: o(r)
1183
+ "onClick:clear": j[0] || (j[0] = (g) => a("click:clear")),
1184
+ "onUpdate:focused": j[1] || (j[1] = (g) => y(g))
1185
+ }, De({
1186
+ label: w((g) => [
1187
+ B(re, {
1188
+ data: g,
1189
+ label: o(l)
1213
1190
  }, null, 8, ["data", "label"])
1214
1191
  ]),
1215
- default: g((h) => [
1216
- oe("div", So, [
1217
- ie(c.$slots, "default", J(ee(h)))
1192
+ default: w((g) => [
1193
+ le("div", Eo, [
1194
+ se(c.$slots, "default", te(ne(g)))
1218
1195
  ])
1219
1196
  ]),
1220
- loader: g((h) => [
1221
- ie(c.$slots, "loader", J(ee(h)))
1197
+ loader: w((g) => [
1198
+ se(c.$slots, "loader", te(ne(g)))
1222
1199
  ]),
1223
1200
  _: 2
1224
1201
  }, [
1225
1202
  c.$slots["prepend-inner"] ? {
1226
1203
  name: "prepend-inner",
1227
- fn: g((h) => [
1228
- ie(c.$slots, "prepend-inner", J(ee(h)))
1204
+ fn: w((g) => [
1205
+ se(c.$slots, "prepend-inner", te(ne(g)))
1229
1206
  ]),
1230
1207
  key: "0"
1231
1208
  } : void 0
@@ -1235,91 +1212,116 @@ const ae = /* @__PURE__ */ O({
1235
1212
  }, [
1236
1213
  c.$slots.prepend ? {
1237
1214
  name: "prepend",
1238
- fn: g((h) => [
1239
- ie(c.$slots, "prepend", J(ee(h)))
1215
+ fn: w((g) => [
1216
+ se(c.$slots, "prepend", te(ne(g)))
1240
1217
  ]),
1241
1218
  key: "0"
1242
1219
  } : void 0
1243
1220
  ]), 1032, ["name", "density", "hint", "persistent-hint", "hide-details", "error-messages", "class"])) : U("", !0);
1244
1221
  };
1245
1222
  }
1246
- }), ve = {
1223
+ }), $ = {
1247
1224
  Yes: "Yes",
1248
1225
  No: "No",
1249
- Close: "Close"
1226
+ Close: "Close",
1227
+ Paragraph: "Paragraph",
1228
+ Heading1: "Heading 1",
1229
+ Heading2: "Heading 2",
1230
+ Heading3: "Heading 3",
1231
+ Heading4: "Heading 4",
1232
+ Heading5: "Heading 5",
1233
+ Heading6: "Heading 6",
1234
+ Downloadable: "Downloadable",
1235
+ ArticleCategory: "Article category",
1236
+ Title: "Title",
1237
+ Subtitle: "Subtitle",
1238
+ InfoBox: "Info box",
1239
+ SideQuote: "Side quote",
1240
+ Marker: "Marker",
1241
+ Spoiler: "Spoiler",
1242
+ CodeDark: "Code (dark)",
1243
+ CodeBright: "Code (bright)"
1250
1244
  };
1251
- function $l(e) {
1252
- Object.keys(ve).forEach((t) => {
1253
- ve[t] = e(t);
1245
+ function Aa(e) {
1246
+ Object.keys($).forEach((t) => {
1247
+ const n = e(t);
1248
+ n != null && ($[t] = n);
1254
1249
  });
1255
1250
  }
1251
+ function Na(e, t) {
1252
+ ke.language = e, ke.translations = t;
1253
+ }
1254
+ const ke = {
1255
+ language: "en",
1256
+ translations: void 0
1257
+ };
1256
1258
  var z = /* @__PURE__ */ ((e) => (e[e.BUTTON = 0] = "BUTTON", e[e.TEXT = 1] = "TEXT", e))(z || {});
1257
- const ze = 0;
1259
+ const We = 0;
1258
1260
  ((e) => {
1259
- function t(a) {
1260
- return a.toUpperCase() === "BUTTON" ? 0 : a.toUpperCase() === "TEXT" ? 1 : ze;
1261
+ function t(l) {
1262
+ return l.toUpperCase() === "BUTTON" ? 0 : l.toUpperCase() === "TEXT" ? 1 : We;
1261
1263
  }
1262
1264
  e.fromString = t;
1263
- function n(a) {
1264
- const r = typeof a == "number" ? a : e.fromString(a);
1265
- return Object.values(e).includes(r) ? r : ze;
1265
+ function n(l) {
1266
+ const r = typeof l == "number" ? l : e.fromString(l);
1267
+ return Object.values(e).includes(r) ? r : We;
1266
1268
  }
1267
1269
  e.fromAny = n;
1268
- function l(a) {
1269
- const r = typeof a == "number" ? a : e.fromString(a);
1270
+ function a(l) {
1271
+ const r = typeof l == "number" ? l : e.fromString(l);
1270
1272
  return Object.values(e).includes(r);
1271
1273
  }
1272
- e.isDefined = l;
1274
+ e.isDefined = a;
1273
1275
  })(z || (z = {}));
1274
1276
  Object.freeze(z);
1275
- const He = ["xs", "sm", "md", "lg", "xl"];
1276
- class Eo {
1277
+ const ze = ["xs", "sm", "md", "lg", "xl"];
1278
+ class $o {
1277
1279
  constructor(t) {
1278
1280
  $e(this, "_value");
1279
- this._value = this.cleanBreakpoint(t, !0), t && He.forEach((n) => {
1280
- const l = this.cleanBreakpoint(t[n]);
1281
- l && (this._value[n] = l);
1281
+ this._value = this.cleanBreakpoint(t, !0), t && ze.forEach((n) => {
1282
+ const a = this.cleanBreakpoint(t[n]);
1283
+ a && (this._value[n] = a);
1282
1284
  });
1283
1285
  }
1284
1286
  getOptionsForBreakpoint(t) {
1285
- const n = this.cleanBreakpoint(this._value), l = Object.keys(n);
1286
- for (const a of He) {
1287
- const r = this._value[a];
1288
- for (const s of l)
1287
+ const n = this.cleanBreakpoint(this._value), a = Object.keys(n);
1288
+ for (const l of ze) {
1289
+ const r = this._value[l];
1290
+ for (const s of a)
1289
1291
  (r == null ? void 0 : r[s]) != null && (n[s] = r[s]);
1290
- if (a === t) break;
1292
+ if (l === t) break;
1291
1293
  }
1292
1294
  return n;
1293
1295
  }
1294
1296
  }
1295
- function $o(e) {
1297
+ function Ao(e) {
1296
1298
  return e.xlAndUp.value ? "xl" : e.lgAndUp.value ? "lg" : e.mdAndUp.value ? "md" : e.smAndUp.value ? "sm" : "xs";
1297
1299
  }
1298
- function Ao() {
1299
- const e = kt();
1300
- return w(() => $o(e));
1300
+ function No() {
1301
+ const e = Vt();
1302
+ return b(() => Ao(e));
1301
1303
  }
1302
- class No extends Eo {
1304
+ class Fo extends $o {
1303
1305
  cleanBreakpoint(t, n = !1) {
1304
- if ((!t || !vt(t)) && !n) return null;
1305
- const l = {};
1306
- return n && (l.renderAs = z.BUTTON, l.showLabel = !0, l.showIcon = !0), t && (t.renderAs != null && (l.renderAs = z.fromAny(t.renderAs)), te(t.label) && (l.label = t.label), te(t.icon) && (l.icon = t.icon), Le(t.showLabel) && (l.showLabel = t.showLabel), Le(t.showIcon) && (l.showIcon = t.showIcon)), Object.keys(l).length ? l : null;
1306
+ if ((!t || !ft(t)) && !n) return null;
1307
+ const a = {};
1308
+ return n && (a.renderAs = z.BUTTON, a.showLabel = !0, a.showIcon = !0), t && (t.renderAs != null && (a.renderAs = z.fromAny(t.renderAs)), oe(t.label) && (a.label = t.label), oe(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;
1307
1309
  }
1308
1310
  }
1309
- class ke extends yt {
1311
+ class ye extends yt {
1310
1312
  static create(t) {
1311
1313
  return super.create(t);
1312
1314
  }
1313
1315
  getBreakpointValue(t) {
1314
- return w(() => {
1315
- const l = new No(this.value).getOptionsForBreakpoint(t.value);
1316
+ return b(() => {
1317
+ const a = new Fo(this.value).getOptionsForBreakpoint(t.value);
1316
1318
  return {
1317
- name: l.name,
1318
- label: l.showLabel ? l.label : void 0,
1319
- icon: l.showIcon ? l.icon : void 0,
1320
- renderAs: l.renderAs,
1321
- showLabel: te(l.label) && !fe(l.label) ? l.showLabel : !1,
1322
- showIcon: te(l.icon) && !fe(l.icon) ? l.showIcon : !1
1319
+ name: a.name,
1320
+ label: a.showLabel ? a.label : void 0,
1321
+ icon: a.showIcon ? a.icon : void 0,
1322
+ renderAs: a.renderAs,
1323
+ showLabel: oe(a.label) && !ve(a.label) ? a.showLabel : !1,
1324
+ showIcon: oe(a.icon) && !ve(a.icon) ? a.showIcon : !1
1323
1325
  };
1324
1326
  });
1325
1327
  }
@@ -1330,67 +1332,67 @@ class ke extends yt {
1330
1332
  return this.value.showLabel ? this.value.label : void 0;
1331
1333
  }
1332
1334
  get showLabel() {
1333
- return te(this.value.label) && !fe(this.value.label) ? this.value.showLabel : !1;
1335
+ return oe(this.value.label) && !ve(this.value.label) ? this.value.showLabel : !1;
1334
1336
  }
1335
1337
  get icon() {
1336
1338
  return this.value.showIcon ? this.value.icon : void 0;
1337
1339
  }
1338
1340
  get showIcon() {
1339
- return te(this.value.icon) && !fe(this.value.icon) ? this.value.showIcon : !1;
1341
+ return oe(this.value.icon) && !ve(this.value.icon) ? this.value.showIcon : !1;
1340
1342
  }
1341
1343
  get renderAs() {
1342
1344
  return this.value.renderAs;
1343
1345
  }
1344
1346
  static closeAction(t) {
1345
- var l;
1346
- const n = L(S({}, t != null ? t : {}), {
1347
+ var a;
1348
+ const n = O(x({}, t != null ? t : {}), {
1347
1349
  // any properties in data should overwrite properties in the constant
1348
1350
  value: {
1349
1351
  name: "close",
1350
- label: ve.Close,
1352
+ label: $.Close,
1351
1353
  icon: "close-outline",
1352
1354
  renderAs: z.BUTTON,
1353
1355
  showLabel: !0,
1354
1356
  showIcon: !0
1355
1357
  }
1356
1358
  });
1357
- return n.value = S(S({}, n.value), (l = t == null ? void 0 : t.value) != null ? l : {}), ke.create(n);
1359
+ return n.value = x(x({}, n.value), (a = t == null ? void 0 : t.value) != null ? a : {}), ye.create(n);
1358
1360
  }
1359
1361
  static yesAction(t) {
1360
- var l;
1361
- const n = L(S({}, t != null ? t : {}), {
1362
+ var a;
1363
+ const n = O(x({}, t != null ? t : {}), {
1362
1364
  // any properties in data should overwrite properties in the constant
1363
1365
  value: {
1364
1366
  name: "yes",
1365
- label: ve.Yes,
1367
+ label: $.Yes,
1366
1368
  icon: "thumbs-up-outline",
1367
1369
  renderAs: z.BUTTON,
1368
1370
  showLabel: !0,
1369
1371
  showIcon: !0
1370
1372
  }
1371
1373
  });
1372
- return n.value = S(S({}, n.value), (l = t == null ? void 0 : t.value) != null ? l : {}), ke.create(n);
1374
+ return n.value = x(x({}, n.value), (a = t == null ? void 0 : t.value) != null ? a : {}), ye.create(n);
1373
1375
  }
1374
1376
  static noAction(t) {
1375
- var l;
1376
- const n = L(S({}, t != null ? t : {}), {
1377
+ var a;
1378
+ const n = O(x({}, t != null ? t : {}), {
1377
1379
  // any properties in data should overwrite properties in the constant
1378
1380
  value: {
1379
1381
  name: "no",
1380
- label: ve.No,
1382
+ label: $.No,
1381
1383
  icon: "thumbs-down-outline",
1382
1384
  renderAs: z.BUTTON,
1383
1385
  showLabel: !0,
1384
1386
  showIcon: !0
1385
1387
  }
1386
1388
  });
1387
- return n.value = S(S({}, n.value), (l = t == null ? void 0 : t.value) != null ? l : {}), ke.create(n);
1389
+ return n.value = x(x({}, n.value), (a = t == null ? void 0 : t.value) != null ? a : {}), ye.create(n);
1388
1390
  }
1389
1391
  }
1390
- const Fo = {
1392
+ const Mo = {
1391
1393
  key: 1,
1392
1394
  style: { width: "0.5rem" }
1393
- }, Mo = { key: 2 }, Lo = /* @__PURE__ */ O({
1395
+ }, Lo = { key: 2 }, Uo = /* @__PURE__ */ H({
1394
1396
  __name: "df-actions",
1395
1397
  props: {
1396
1398
  actions: {},
@@ -1398,43 +1400,43 @@ const Fo = {
1398
1400
  showAsGroup: { default: "no" }
1399
1401
  },
1400
1402
  setup(e) {
1401
- const t = e, n = Ao(), l = w(() => o(t.actions)), a = w(
1402
- () => l.value.map((r) => S({
1403
+ const t = e, n = No(), a = b(() => o(t.actions)), l = b(
1404
+ () => a.value.map((r) => x({
1403
1405
  action: r
1404
1406
  }, o(r.getBreakpointValue(n))))
1405
1407
  );
1406
1408
  return (r, s) => {
1407
- const p = A("v-btn");
1408
- return l.value.length > 0 ? (V(), W("div", {
1409
+ const m = N("v-btn");
1410
+ return a.value.length > 0 ? (V(), W("div", {
1409
1411
  key: 0,
1410
- class: G(["text-end df-actions", {
1412
+ class: Y(["text-end df-actions", {
1411
1413
  "button-group": r.showAsGroup === "grouped" || r.showAsGroup === "grouped-no-borders",
1412
1414
  "with-border": r.showAsGroup === "grouped"
1413
1415
  }])
1414
1416
  }, [
1415
- (V(!0), W(Ie, null, dt(a.value, (i, d) => (V(), D(p, {
1416
- key: d,
1417
+ (V(!0), W(Ie, null, ct(l.value, (i, p) => (V(), D(m, {
1418
+ key: p,
1417
1419
  variant: i.renderAs === o(z).BUTTON ? "tonal" : "text",
1418
1420
  elevation: 0,
1419
1421
  size: r.buttonSize,
1420
- onClick: mt((v) => i.action.execute(v), ["stop"])
1422
+ onClick: dt((h) => i.action.execute(h), ["stop"])
1421
1423
  }, {
1422
- default: g(() => [
1424
+ default: w(() => [
1423
1425
  i.icon ? (V(), D(o(be), {
1424
1426
  key: 0,
1425
1427
  name: i.icon
1426
1428
  }, null, 8, ["name"])) : U("", !0),
1427
- i.icon && i.label ? (V(), W("span", Fo)) : U("", !0),
1428
- i.label ? (V(), W("span", Mo, De(i.label), 1)) : U("", !0)
1429
+ i.icon && i.label ? (V(), W("span", Mo)) : U("", !0),
1430
+ i.label ? (V(), W("span", Lo, Pe(i.label), 1)) : U("", !0)
1429
1431
  ]),
1430
1432
  _: 2
1431
1433
  }, 1032, ["variant", "size", "onClick"]))), 128))
1432
1434
  ], 2)) : U("", !0);
1433
1435
  };
1434
1436
  }
1435
- }), Uo = /* @__PURE__ */ O({
1437
+ }), Ho = /* @__PURE__ */ H({
1436
1438
  __name: "df-checkbox",
1437
- props: /* @__PURE__ */ q({
1439
+ props: /* @__PURE__ */ Q({
1438
1440
  allowNull: { type: Boolean },
1439
1441
  control: {},
1440
1442
  modelValue: {},
@@ -1450,54 +1452,54 @@ const Fo = {
1450
1452
  passthroughAttrs: {},
1451
1453
  density: {},
1452
1454
  variant: {}
1453
- }, L(S({}, Y), { allowNull: !1 })),
1455
+ }, O(x({}, Z), { allowNull: !1 })),
1454
1456
  emits: ["update:modelValue", "click:clear"],
1455
1457
  setup(e, { emit: t }) {
1456
- const n = e, l = t, { densityClass: a, errors: r, label: s, touched: p, value: i, vuetifyBindings: d } = X(n, l), v = w(() => n.allowNull && i.value == null), m = w({
1458
+ const n = e, a = t, { densityClass: l, label: r, showErrors: s, touched: m, value: i, vuetifyBindings: p } = G(n, a), h = b(() => n.allowNull && i.value == null), d = b({
1457
1459
  get() {
1458
1460
  return i.value;
1459
1461
  },
1460
1462
  set() {
1461
1463
  }
1462
1464
  });
1463
- function b() {
1464
- const c = ht(i.value);
1465
+ function y() {
1466
+ const c = vt(i.value);
1465
1467
  c === !0 ? i.value = n.allowNull ? null : !1 : i.value = c === !1;
1466
1468
  }
1467
- return (c, T) => {
1468
- const _ = A("v-checkbox");
1469
- return V(), D(_, R({
1470
- modelValue: m.value,
1471
- "onUpdate:modelValue": T[0] || (T[0] = (y) => m.value = y)
1472
- }, o(d), {
1469
+ return (c, j) => {
1470
+ const T = N("v-checkbox");
1471
+ return V(), D(T, R({
1472
+ modelValue: d.value,
1473
+ "onUpdate:modelValue": j[0] || (j[0] = (k) => d.value = k)
1474
+ }, o(p), {
1473
1475
  density: "compact",
1474
- class: o(a),
1475
- indeterminate: v.value,
1476
+ class: o(l),
1477
+ indeterminate: h.value,
1476
1478
  "false-value": !1,
1477
1479
  "true-value": !0,
1478
- onChange: b,
1479
- onBlur: T[1] || (T[1] = (y) => p.value = !0)
1480
+ onChange: y,
1481
+ onBlur: j[1] || (j[1] = (k) => m.value = !0)
1480
1482
  }), {
1481
- label: g((y) => [
1482
- I(o(le), {
1483
+ label: w((k) => [
1484
+ B(o(re), {
1483
1485
  "allow-wrap": !0,
1484
- data: y,
1485
- label: o(s)
1486
+ data: k,
1487
+ label: o(r)
1486
1488
  }, null, 8, ["data", "label"])
1487
1489
  ]),
1488
- message: g(({ message: y }) => [
1489
- I(o(ae), {
1490
- message: y,
1491
- errors: o(r)
1490
+ message: w(({ message: k }) => [
1491
+ B(o(q), {
1492
+ message: k,
1493
+ errors: o(s)
1492
1494
  }, null, 8, ["message", "errors"])
1493
1495
  ]),
1494
1496
  _: 1
1495
1497
  }, 16, ["modelValue", "class", "indeterminate"]);
1496
1498
  };
1497
1499
  }
1498
- }), Oo = /* @__PURE__ */ O({
1500
+ }), Oo = /* @__PURE__ */ H({
1499
1501
  __name: "df-color",
1500
- props: /* @__PURE__ */ q({
1502
+ props: /* @__PURE__ */ Q({
1501
1503
  allowNull: { type: Boolean },
1502
1504
  control: {},
1503
1505
  modelValue: {},
@@ -1513,52 +1515,52 @@ const Fo = {
1513
1515
  passthroughAttrs: {},
1514
1516
  density: {},
1515
1517
  variant: {}
1516
- }, L(S({}, Y), { allowNull: !1 })),
1518
+ }, O(x({}, Z), { allowNull: !1 })),
1517
1519
  emits: ["update:modelValue", "click:clear"],
1518
1520
  setup(e, { emit: t }) {
1519
- const n = e, l = t, { densityClass: a, errors: r, label: s, touched: p, value: i, vuetifyBindings: d } = X(n, l), v = N(!1), m = w(() => [
1520
- (b) => n.control || !b && n.allowNull || /^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$/.test(b) ? !0 : "Not a valid hex string."
1521
+ const n = e, a = t, { densityClass: l, label: r, showErrors: s, touched: m, value: i, vuetifyBindings: p } = G(n, a), h = F(!1), d = b(() => [
1522
+ (y) => n.control || !y && n.allowNull || /^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$/.test(y) ? !0 : "Not a valid hex string."
1521
1523
  ]);
1522
- return (b, c) => {
1523
- const T = A("v-color-picker"), _ = A("v-menu"), y = A("v-text-field");
1524
- return V(), D(y, R({
1524
+ return (y, c) => {
1525
+ const j = N("v-color-picker"), T = N("v-menu"), k = N("v-text-field");
1526
+ return V(), D(k, R({
1525
1527
  modelValue: o(i),
1526
- "onUpdate:modelValue": c[2] || (c[2] = (h) => ne(i) ? i.value = h : null)
1527
- }, o(d), {
1528
- class: o(a),
1529
- clearable: b.allowNull,
1528
+ "onUpdate:modelValue": c[2] || (c[2] = (g) => ae(i) ? i.value = g : null)
1529
+ }, o(p), {
1530
+ class: o(l),
1531
+ clearable: y.allowNull,
1530
1532
  type: "text",
1531
- rules: m.value,
1532
- onBlur: c[3] || (c[3] = (h) => p.value = !0)
1533
+ rules: d.value,
1534
+ onBlur: c[3] || (c[3] = (g) => m.value = !0)
1533
1535
  }), {
1534
- label: g((h) => [
1535
- I(o(le), {
1536
- data: h,
1537
- label: o(s)
1536
+ label: w((g) => [
1537
+ B(o(re), {
1538
+ data: g,
1539
+ label: o(r)
1538
1540
  }, null, 8, ["data", "label"])
1539
1541
  ]),
1540
- message: g(({ message: h }) => [
1541
- I(o(ae), {
1542
- message: h,
1543
- errors: o(r)
1542
+ message: w(({ message: g }) => [
1543
+ B(o(q), {
1544
+ message: g,
1545
+ errors: o(s)
1544
1546
  }, null, 8, ["message", "errors"])
1545
1547
  ]),
1546
- "prepend-inner": g(() => [
1547
- oe("div", {
1548
+ "prepend-inner": w(() => [
1549
+ le("div", {
1548
1550
  style: Ge([{ width: "24px", height: "24px", "border-radius": "4px", border: "1px solid #ccc" }, { backgroundColor: o(i) }])
1549
1551
  }, null, 4)
1550
1552
  ]),
1551
- default: g(() => [
1552
- I(_, {
1553
- modelValue: v.value,
1554
- "onUpdate:modelValue": c[1] || (c[1] = (h) => v.value = h),
1553
+ default: w(() => [
1554
+ B(T, {
1555
+ modelValue: h.value,
1556
+ "onUpdate:modelValue": c[1] || (c[1] = (g) => h.value = g),
1555
1557
  "close-on-content-click": !1,
1556
1558
  activator: "parent"
1557
1559
  }, {
1558
- default: g(() => [
1559
- I(T, {
1560
+ default: w(() => [
1561
+ B(j, {
1560
1562
  modelValue: o(i),
1561
- "onUpdate:modelValue": c[0] || (c[0] = (h) => ne(i) ? i.value = h : null),
1563
+ "onUpdate:modelValue": c[0] || (c[0] = (g) => ae(i) ? i.value = g : null),
1562
1564
  mode: "hexa"
1563
1565
  }, null, 8, ["modelValue"])
1564
1566
  ]),
@@ -1569,9 +1571,9 @@ const Fo = {
1569
1571
  }, 16, ["modelValue", "class", "clearable", "rules"]);
1570
1572
  };
1571
1573
  }
1572
- }), Ro = /* @__PURE__ */ O({
1574
+ }), Ro = /* @__PURE__ */ H({
1573
1575
  __name: "df-datetime",
1574
- props: /* @__PURE__ */ q({
1576
+ props: /* @__PURE__ */ Q({
1575
1577
  inputType: {},
1576
1578
  displayFormatDate: {},
1577
1579
  displayFormatTime: {},
@@ -1590,150 +1592,150 @@ const Fo = {
1590
1592
  passthroughAttrs: {},
1591
1593
  density: {},
1592
1594
  variant: {}
1593
- }, L(S({}, Y), {
1595
+ }, O(x({}, Z), {
1594
1596
  inputType: "datetime",
1595
1597
  displayFormatDate: "P",
1596
1598
  displayFormatTime: "p"
1597
1599
  })),
1598
1600
  emits: ["update:modelValue", "click:clear"],
1599
1601
  setup(e, { emit: t }) {
1600
- const n = e, l = t, a = w(() => {
1602
+ const n = e, a = t, l = b(() => {
1601
1603
  var f;
1602
- return (f = n.locale) != null ? f : o(Do.dateTimeLocale);
1603
- }), r = w(() => {
1604
+ return (f = n.locale) != null ? f : o(So.dateTimeLocale);
1605
+ }), r = b(() => {
1604
1606
  var f, u;
1605
- return (u = (f = a.value.options) == null ? void 0 : f.weekStartsOn) != null ? u : 1;
1606
- }), { densityClass: s, touched: p, value: i, vuetifyBindings: d } = X(n, l), { inputType: v, displayFormatDate: m, displayFormatTime: b } = je(n), c = N(""), T = w({
1607
+ return (u = (f = l.value.options) == null ? void 0 : f.weekStartsOn) != null ? u : 1;
1608
+ }), { densityClass: s, touched: m, value: i, vuetifyBindings: p } = G(n, a), { inputType: h, displayFormatDate: d, displayFormatTime: y } = Ce(n), c = F(""), j = b({
1607
1609
  get() {
1608
1610
  return o(c) === "date";
1609
1611
  },
1610
1612
  set(f) {
1611
1613
  c.value = f ? "date" : "";
1612
1614
  }
1613
- }), _ = w({
1615
+ }), T = b({
1614
1616
  get() {
1615
1617
  return o(c) === "time";
1616
1618
  },
1617
1619
  set(f) {
1618
1620
  c.value = f ? "time" : "";
1619
1621
  }
1620
- }), y = (f) => `${de(f, "yyyy-MM-dd")}T${de(f, "HH:mm")}:00`, h = N(null);
1621
- function E(f, u) {
1622
+ }), k = (f) => `${me(f, "yyyy-MM-dd")}T${me(f, "HH:mm")}:00`, g = F(null);
1623
+ function P(f, u) {
1622
1624
  if (f == null)
1623
- h.value = null;
1625
+ g.value = null;
1624
1626
  else if (u === -1)
1625
- if (o(v) === "time")
1626
- h.value = y(/* @__PURE__ */ new Date()), E(`T${f}`, 1);
1627
+ if (o(h) === "time")
1628
+ g.value = k(/* @__PURE__ */ new Date()), P(`T${f}`, 1);
1627
1629
  else {
1628
- const $ = y(new Date(f));
1629
- E($, 0), E($, 1);
1630
+ const A = k(new Date(f));
1631
+ P(A, 0), P(A, 1);
1630
1632
  }
1631
1633
  else {
1632
- h.value == null && (h.value = y(/* @__PURE__ */ new Date()));
1633
- const $ = h.value.split(/[TZ]/g), H = f.split(/[TZ]/g);
1634
- $[u] = H[u], h.value = y(/* @__PURE__ */ new Date(`${$[0]}T${$[1].split(".")[0]}`)), o(v) === "date" ? i.value = $[0] : o(v) === "time" ? i.value = $[1] : i.value = o(h) + de(/* @__PURE__ */ new Date(), "XXX");
1634
+ g.value == null && (g.value = k(/* @__PURE__ */ new Date()));
1635
+ const A = g.value.split(/[TZ]/g), K = f.split(/[TZ]/g);
1636
+ A[u] = K[u], g.value = k(/* @__PURE__ */ new Date(`${A[0]}T${A[1].split(".")[0]}`)), o(h) === "date" ? i.value = A[0] : o(h) === "time" ? i.value = A[1] : i.value = o(g) + me(/* @__PURE__ */ new Date(), "XXX");
1635
1637
  }
1636
1638
  }
1637
- se(i, (f) => E(f, -1), { immediate: !0 });
1638
- const F = w({
1639
+ ue(i, (f) => P(f, -1), { immediate: !0 });
1640
+ const M = b({
1639
1641
  get() {
1640
- const f = o(h);
1642
+ const f = o(g);
1641
1643
  if (f == null) return null;
1642
1644
  const u = new Date(f);
1643
1645
  return Number.isNaN(u.getTime()) ? null : u;
1644
1646
  },
1645
1647
  set(f) {
1646
- E(y(f), 0);
1648
+ P(k(f), 0);
1647
1649
  }
1648
- }), k = w({
1650
+ }), E = b({
1649
1651
  get() {
1650
- const f = o(h);
1652
+ const f = o(g);
1651
1653
  return f == null ? "" : f.split(/[TZ]/g)[1].split(".")[0];
1652
1654
  },
1653
1655
  set(f) {
1654
- E(`T${f}`, 1);
1656
+ P(`T${f}`, 1);
1655
1657
  }
1656
- }), j = w({
1658
+ }), v = b({
1657
1659
  get() {
1658
- const f = o(F);
1659
- return f == null ? "" : de(f, o(m), { locale: a.value });
1660
+ const f = o(M);
1661
+ return f == null ? "" : me(f, o(d), { locale: l.value });
1660
1662
  },
1661
1663
  set(f) {
1662
1664
  try {
1663
- const u = Vt(f, o(m), /* @__PURE__ */ new Date(), { locale: a.value });
1664
- E(y(u), 0);
1665
+ const u = Ct(f, o(d), /* @__PURE__ */ new Date(), { locale: l.value });
1666
+ P(k(u), 0);
1665
1667
  } catch (u) {
1666
1668
  console.error(u);
1667
1669
  }
1668
1670
  }
1669
- }), M = w({
1671
+ }), L = b({
1670
1672
  get() {
1671
- const f = o(F);
1672
- return f == null ? "" : de(f, o(b), { locale: a.value });
1673
+ const f = o(M);
1674
+ return f == null ? "" : me(f, o(y), { locale: l.value });
1673
1675
  },
1674
1676
  set(f) {
1675
1677
  const u = f.match(/(\d+):(\d+)\s?([a-zA-Z]+)?/);
1676
1678
  if (u == null) return;
1677
- let $ = Ue(u[1]);
1678
- const H = Ue(u[2]);
1679
- Oe($) || Oe(H) || (u[3] && u[3].toLowerCase() === "pm" && $ < 13 && ($ += 12), E(`T${$.toString().padStart(2, "0")}:${H.toString().padStart(2, "0")}:00`, 1));
1679
+ let A = Ue(u[1]);
1680
+ const K = Ue(u[2]);
1681
+ He(A) || He(K) || (u[3] && u[3].toLowerCase() === "pm" && A < 13 && (A += 12), P(`T${A.toString().padStart(2, "0")}:${K.toString().padStart(2, "0")}:00`, 1));
1680
1682
  }
1681
1683
  });
1682
1684
  return (f, u) => {
1683
- const $ = A("v-date-picker"), H = A("v-confirm-edit"), ue = A("v-menu"), ce = A("v-text-field"), B = A("v-time-picker");
1684
- return V(), D(o(xe), R(n, {
1685
+ const A = N("v-date-picker"), K = N("v-confirm-edit"), ce = N("v-menu"), de = N("v-text-field"), _ = N("v-time-picker");
1686
+ return V(), D(o(Se), R(n, {
1685
1687
  class: o(s),
1686
1688
  clearable: f.clearable,
1687
- "onClick:clear": u[14] || (u[14] = (P) => i.value = null),
1688
- onBlur: u[15] || (u[15] = (P) => p.value = !0)
1689
+ "onClick:clear": u[14] || (u[14] = (I) => i.value = null),
1690
+ onBlur: u[15] || (u[15] = (I) => m.value = !0)
1689
1691
  }), {
1690
- default: g((P) => [
1691
- oe("div", {
1692
- class: G(["d-flex w-100 ml-4 df-input-wrapper", f.density])
1692
+ default: w((I) => [
1693
+ le("div", {
1694
+ class: Y(["d-flex w-100 ml-4 df-input-wrapper", f.density])
1693
1695
  }, [
1694
- ["date", "datetime"].includes(o(v)) ? (V(), D(ce, R({
1696
+ ["date", "datetime"].includes(o(h)) ? (V(), D(de, R({
1695
1697
  key: 0,
1696
- modelValue: j.value,
1697
- "onUpdate:modelValue": u[4] || (u[4] = (C) => j.value = C),
1698
+ modelValue: v.value,
1699
+ "onUpdate:modelValue": u[4] || (u[4] = (C) => v.value = C),
1698
1700
  style: { "flex-grow": "4" },
1699
1701
  density: "compact",
1700
1702
  variant: "plain",
1701
1703
  clearable: !1,
1702
1704
  "hide-details": !0,
1703
- readonly: o(d).readonly,
1704
- disabled: o(d).disabled,
1705
- name: `${o(d).name}-date`
1705
+ readonly: o(p).readonly,
1706
+ disabled: o(p).disabled,
1707
+ name: `${o(p).name}-date`
1706
1708
  }, f.passthroughAttrs, {
1707
1709
  onClick: u[5] || (u[5] = (C) => c.value = "date"),
1708
1710
  onKeydown: u[6] || (u[6] = Fe((C) => c.value = "date", ["space"])),
1709
- onFocus: (C) => P.focus(),
1710
- onBlur: (C) => P.blur()
1711
+ onFocus: (C) => I.focus(),
1712
+ onBlur: (C) => I.blur()
1711
1713
  }), {
1712
- default: g(() => [
1713
- I(ue, {
1714
- modelValue: T.value,
1715
- "onUpdate:modelValue": u[3] || (u[3] = (C) => T.value = C),
1714
+ default: w(() => [
1715
+ B(ce, {
1716
+ modelValue: j.value,
1717
+ "onUpdate:modelValue": u[3] || (u[3] = (C) => j.value = C),
1716
1718
  "close-on-content-click": !1,
1717
1719
  activator: "parent"
1718
1720
  }, {
1719
- default: g(() => [
1720
- I(H, {
1721
- modelValue: F.value,
1722
- "onUpdate:modelValue": u[0] || (u[0] = (C) => F.value = C),
1721
+ default: w(() => [
1722
+ B(K, {
1723
+ modelValue: M.value,
1724
+ "onUpdate:modelValue": u[0] || (u[0] = (C) => M.value = C),
1723
1725
  onCancel: u[1] || (u[1] = (C) => c.value = ""),
1724
1726
  onSave: u[2] || (u[2] = (C) => c.value = "")
1725
1727
  }, {
1726
- default: g(({ model: C, actions: Q }) => [
1727
- I($, {
1728
+ default: w(({ model: C, actions: J }) => [
1729
+ B(A, {
1728
1730
  modelValue: C.value,
1729
- "onUpdate:modelValue": (x) => C.value = x,
1731
+ "onUpdate:modelValue": (S) => C.value = S,
1730
1732
  "hide-header": !0,
1731
1733
  "first-day-of-week": r.value,
1732
1734
  "show-adjacent-months": !0,
1733
1735
  "show-week": !0
1734
1736
  }, {
1735
- actions: g(() => [
1736
- (V(), D(he(Q)))
1737
+ actions: w(() => [
1738
+ (V(), D(he(J)))
1737
1739
  ]),
1738
1740
  _: 2
1739
1741
  }, 1032, ["modelValue", "onUpdate:modelValue", "first-day-of-week"])
@@ -1746,47 +1748,47 @@ const Fo = {
1746
1748
  ]),
1747
1749
  _: 1
1748
1750
  }, 16, ["modelValue", "readonly", "disabled", "name", "onFocus", "onBlur"])) : U("", !0),
1749
- ["time", "datetime"].includes(o(v)) ? (V(), D(ce, R({
1751
+ ["time", "datetime"].includes(o(h)) ? (V(), D(de, R({
1750
1752
  key: 1,
1751
- modelValue: M.value,
1752
- "onUpdate:modelValue": u[11] || (u[11] = (C) => M.value = C),
1753
+ modelValue: L.value,
1754
+ "onUpdate:modelValue": u[11] || (u[11] = (C) => L.value = C),
1753
1755
  style: { "flex-grow": "3" },
1754
1756
  density: "compact",
1755
1757
  variant: "plain",
1756
1758
  clearable: !1,
1757
1759
  "hide-details": !0,
1758
- readonly: o(d).readonly,
1759
- disabled: o(d).disabled,
1760
- name: `${o(d).name}-time`
1760
+ readonly: o(p).readonly,
1761
+ disabled: o(p).disabled,
1762
+ name: `${o(p).name}-time`
1761
1763
  }, f.passthroughAttrs, {
1762
1764
  onClick: u[12] || (u[12] = (C) => c.value = "time"),
1763
1765
  onKeydown: u[13] || (u[13] = Fe((C) => c.value = "time", ["space"])),
1764
- onFocus: (C) => P.focus(),
1765
- onBlur: (C) => P.blur()
1766
+ onFocus: (C) => I.focus(),
1767
+ onBlur: (C) => I.blur()
1766
1768
  }), {
1767
- default: g(() => [
1768
- I(ue, {
1769
- modelValue: _.value,
1770
- "onUpdate:modelValue": u[10] || (u[10] = (C) => _.value = C),
1769
+ default: w(() => [
1770
+ B(ce, {
1771
+ modelValue: T.value,
1772
+ "onUpdate:modelValue": u[10] || (u[10] = (C) => T.value = C),
1771
1773
  "close-on-content-click": !1,
1772
1774
  activator: "parent"
1773
1775
  }, {
1774
- default: g(() => [
1775
- I(H, {
1776
- modelValue: k.value,
1777
- "onUpdate:modelValue": u[7] || (u[7] = (C) => k.value = C),
1776
+ default: w(() => [
1777
+ B(K, {
1778
+ modelValue: E.value,
1779
+ "onUpdate:modelValue": u[7] || (u[7] = (C) => E.value = C),
1778
1780
  onCancel: u[8] || (u[8] = (C) => c.value = ""),
1779
1781
  onSave: u[9] || (u[9] = (C) => c.value = "")
1780
1782
  }, {
1781
- default: g(({ model: C, actions: Q }) => [
1782
- I(B, {
1783
+ default: w(({ model: C, actions: J }) => [
1784
+ B(_, {
1783
1785
  modelValue: C.value,
1784
- "onUpdate:modelValue": (x) => C.value = x,
1786
+ "onUpdate:modelValue": (S) => C.value = S,
1785
1787
  "hide-header": !0,
1786
1788
  format: "24hr"
1787
1789
  }, {
1788
- actions: g(() => [
1789
- (V(), D(he(Q)))
1790
+ actions: w(() => [
1791
+ (V(), D(he(J)))
1790
1792
  ]),
1791
1793
  _: 2
1792
1794
  }, 1032, ["modelValue", "onUpdate:modelValue"])
@@ -1805,9 +1807,9 @@ const Fo = {
1805
1807
  }, 16, ["class", "clearable"]);
1806
1808
  };
1807
1809
  }
1808
- }), Wo = /* @__PURE__ */ O({
1810
+ }), Wo = /* @__PURE__ */ H({
1809
1811
  __name: "df-file",
1810
- props: /* @__PURE__ */ q({
1812
+ props: /* @__PURE__ */ Q({
1811
1813
  comms: {},
1812
1814
  control: {},
1813
1815
  modelValue: {},
@@ -1823,82 +1825,82 @@ const Fo = {
1823
1825
  passthroughAttrs: {},
1824
1826
  density: {},
1825
1827
  variant: {}
1826
- }, Y),
1828
+ }, Z),
1827
1829
  emits: ["update:modelValue", "click:clear"],
1828
1830
  setup(e, { emit: t }) {
1829
- const n = e, l = t, { densityClass: a, touched: r, value: s, vuetifyBindings: p } = X(n, l), i = N(null), d = N(null), v = N(0), m = N(Math.round(Math.random() * 1e3)), b = N(), c = w(() => d.value && v.value < 100), T = w(() => !b.value && s.value ? n.modelValue : "");
1830
- function _() {
1831
+ const n = e, a = t, { densityClass: l, touched: r, value: s, vuetifyBindings: m } = G(n, a), i = F(null), p = F(null), h = F(0), d = F(Math.round(Math.random() * 1e3)), y = F(), c = b(() => p.value && h.value < 100), j = b(() => !y.value && s.value ? n.modelValue : "");
1832
+ function T() {
1831
1833
  i.value && window.clearInterval(i.value);
1832
1834
  }
1833
- function y() {
1834
- _(), i.value = window.setInterval(() => {
1835
+ function k() {
1836
+ T(), i.value = window.setInterval(() => {
1835
1837
  s.value && n.comms.touch(s.value);
1836
1838
  }, 60 * 1e3);
1837
1839
  }
1838
- Xe(() => _()), se(s, (k) => {
1839
- k ? y() : _();
1840
+ Xe(() => T()), ue(s, (E) => {
1841
+ E ? k() : T();
1840
1842
  });
1841
- function h() {
1843
+ function g() {
1842
1844
  return ge(this, null, function* () {
1843
- s.value && (yield n.comms.delete(s.value)), s.value = null, v.value = 0, m.value = Math.round(Math.random() * 1e3), d.value = null, b.value = null, _();
1845
+ s.value && (yield n.comms.delete(s.value)), s.value = null, h.value = 0, d.value = Math.round(Math.random() * 1e3), p.value = null, y.value = null, T();
1844
1846
  });
1845
1847
  }
1846
- function E(k) {
1848
+ function P(E) {
1847
1849
  return ge(this, null, function* () {
1848
- v.value = -1, d.value = k;
1850
+ h.value = -1, p.value = E;
1849
1851
  try {
1850
- s.value = yield n.comms.upload(k, (j, M) => {
1851
- v.value = Math.round(j * 100 / M);
1852
- }), v.value = 100, y();
1853
- } catch (j) {
1854
- throw v.value = 0, d.value = null, m.value = Math.round(Math.random() * 1e3), b.value = null, j;
1852
+ s.value = yield n.comms.upload(E, (v, L) => {
1853
+ h.value = Math.round(v * 100 / L);
1854
+ }), h.value = 100, k();
1855
+ } catch (v) {
1856
+ throw h.value = 0, p.value = null, d.value = Math.round(Math.random() * 1e3), y.value = null, v;
1855
1857
  }
1856
1858
  });
1857
1859
  }
1858
- function F(k) {
1859
- k && (Array.isArray(k) ? console.error("Uploading multiple files not supported right now") : E(k));
1860
+ function M(E) {
1861
+ E && (Array.isArray(E) ? console.error("Uploading multiple files not supported right now") : P(E));
1860
1862
  }
1861
- return (k, j) => {
1862
- const M = A("v-progress-linear"), f = A("v-file-input");
1863
- return V(), D(o(xe), R(L(S({}, n), { loading: c.value }), {
1864
- class: o(a),
1863
+ return (E, v) => {
1864
+ const L = N("v-progress-linear"), f = N("v-file-input");
1865
+ return V(), D(o(Se), R(O(x({}, n), { loading: c.value }), {
1866
+ class: o(l),
1865
1867
  clearable: "",
1866
- "onClick:clear": h,
1867
- onBlur: j[1] || (j[1] = (u) => r.value = !0)
1868
+ "onClick:clear": g,
1869
+ onBlur: v[1] || (v[1] = (u) => r.value = !0)
1868
1870
  }), {
1869
- "prepend-inner": g(() => [
1870
- I(o(be), { name: "mdi-paperclip" })
1871
+ "prepend-inner": w(() => [
1872
+ B(o(be), { name: "mdi-paperclip" })
1871
1873
  ]),
1872
- loader: g(() => [
1873
- d.value && v.value < 100 ? (V(), D(M, {
1874
+ loader: w(() => [
1875
+ p.value && h.value < 100 ? (V(), D(L, {
1874
1876
  key: 0,
1875
- "model-value": v.value,
1876
- indeterminate: v.value === -1
1877
+ "model-value": h.value,
1878
+ indeterminate: h.value === -1
1877
1879
  }, null, 8, ["model-value", "indeterminate"])) : U("", !0)
1878
1880
  ]),
1879
- default: g((u) => [
1880
- oe("div", {
1881
- class: G(["d-flex w-100 position-relative df-input-wrapper", k.density])
1881
+ default: w((u) => [
1882
+ le("div", {
1883
+ class: Y(["d-flex w-100 position-relative df-input-wrapper", E.density])
1882
1884
  }, [
1883
- I(f, R({
1884
- modelValue: b.value,
1885
- "onUpdate:modelValue": j[0] || (j[0] = ($) => b.value = $),
1886
- label: T.value,
1885
+ B(f, R({
1886
+ modelValue: y.value,
1887
+ "onUpdate:modelValue": v[0] || (v[0] = (A) => y.value = A),
1888
+ label: j.value,
1887
1889
  density: "compact",
1888
1890
  variant: "plain",
1889
- readonly: o(p).readonly,
1890
- disabled: o(p).disabled,
1891
- name: o(p).name,
1891
+ readonly: o(m).readonly,
1892
+ disabled: o(m).disabled,
1893
+ name: o(m).name,
1892
1894
  "hide-details": !0,
1893
1895
  "show-size": !0,
1894
1896
  multiple: !1,
1895
- style: d.value && v.value < 100 ? "visibility: hidden" : "",
1897
+ style: p.value && h.value < 100 ? "visibility: hidden" : "",
1896
1898
  clearable: !1
1897
- }, k.passthroughAttrs, {
1899
+ }, E.passthroughAttrs, {
1898
1900
  "prepend-icon": "",
1899
- "onUpdate:modelValue": F,
1900
- onFocus: ($) => u.focus(),
1901
- onBlur: ($) => u.blur()
1901
+ "onUpdate:modelValue": M,
1902
+ onFocus: (A) => u.focus(),
1903
+ onBlur: (A) => u.blur()
1902
1904
  }), null, 16, ["modelValue", "label", "readonly", "disabled", "name", "style", "onFocus", "onBlur"])
1903
1905
  ], 2)
1904
1906
  ]),
@@ -1906,9 +1908,9 @@ const Fo = {
1906
1908
  }, 16, ["class"]);
1907
1909
  };
1908
1910
  }
1909
- }), zo = /* @__PURE__ */ O({
1911
+ }), zo = /* @__PURE__ */ H({
1910
1912
  __name: "df-input",
1911
- props: /* @__PURE__ */ q({
1913
+ props: /* @__PURE__ */ Q({
1912
1914
  inputType: {},
1913
1915
  precision: {},
1914
1916
  step: {},
@@ -1928,7 +1930,7 @@ const Fo = {
1928
1930
  passthroughAttrs: {},
1929
1931
  density: {},
1930
1932
  variant: {}
1931
- }, L(S({}, Y), {
1933
+ }, O(x({}, Z), {
1932
1934
  inputType: "text",
1933
1935
  precision: null,
1934
1936
  step: void 0,
@@ -1937,53 +1939,53 @@ const Fo = {
1937
1939
  })),
1938
1940
  emits: ["update:modelValue", "click:clear"],
1939
1941
  setup(e, { emit: t }) {
1940
- const n = e, l = t, { densityClass: a, errors: r, label: s, touched: p, value: i, vuetifyBindings: d } = X(n, l), { inputType: v, max: m, min: b, precision: c, step: T } = je(n), _ = w(() => v.value === "number"), y = w(
1941
- () => _.value ? { min: o(b), max: o(m), precision: o(c), step: o(T) } : {}
1942
+ const n = e, a = t, { densityClass: l, label: r, showErrors: s, touched: m, value: i, vuetifyBindings: p } = G(n, a), { inputType: h, max: d, min: y, precision: c, step: j } = Ce(n), T = b(() => h.value === "number"), k = b(
1943
+ () => T.value ? { min: o(y), max: o(d), precision: o(c), step: o(j) } : {}
1942
1944
  );
1943
- return (h, E) => {
1944
- const F = A("v-text-field"), k = A("v-number-input");
1945
+ return (g, P) => {
1946
+ const M = N("v-text-field"), E = N("v-number-input");
1945
1947
  return V(), W("div", {
1946
- class: G(["df-input-container", o(a)])
1948
+ class: Y(["df-input-container", o(l)])
1947
1949
  }, [
1948
- _.value ? (V(), D(k, R({
1950
+ T.value ? (V(), D(E, R({
1949
1951
  key: 1,
1950
1952
  modelValue: o(i),
1951
- "onUpdate:modelValue": E[2] || (E[2] = (j) => ne(i) ? i.value = j : null)
1952
- }, S(S({}, o(d)), y.value), {
1953
+ "onUpdate:modelValue": P[2] || (P[2] = (v) => ae(i) ? i.value = v : null)
1954
+ }, x(x({}, o(p)), k.value), {
1953
1955
  density: "compact",
1954
1956
  "control-variant": "stacked"
1955
1957
  }), {
1956
- label: g((j) => [
1957
- I(o(le), {
1958
- data: j,
1959
- label: o(s)
1958
+ label: w((v) => [
1959
+ B(o(re), {
1960
+ data: v,
1961
+ label: o(r)
1960
1962
  }, null, 8, ["data", "label"])
1961
1963
  ]),
1962
- message: g(({ message: j }) => [
1963
- I(o(ae), {
1964
- message: j,
1965
- errors: o(r)
1964
+ message: w(({ message: v }) => [
1965
+ B(o(q), {
1966
+ message: v,
1967
+ errors: o(s)
1966
1968
  }, null, 8, ["message", "errors"])
1967
1969
  ]),
1968
1970
  _: 1
1969
- }, 16, ["modelValue"])) : (V(), D(F, R({
1971
+ }, 16, ["modelValue"])) : (V(), D(M, R({
1970
1972
  key: 0,
1971
1973
  modelValue: o(i),
1972
- "onUpdate:modelValue": E[0] || (E[0] = (j) => ne(i) ? i.value = j : null)
1973
- }, o(d), {
1974
- type: o(v),
1975
- onBlur: E[1] || (E[1] = (j) => p.value = !0)
1974
+ "onUpdate:modelValue": P[0] || (P[0] = (v) => ae(i) ? i.value = v : null)
1975
+ }, o(p), {
1976
+ type: o(h),
1977
+ onBlur: P[1] || (P[1] = (v) => m.value = !0)
1976
1978
  }), {
1977
- label: g((j) => [
1978
- I(o(le), {
1979
- data: j,
1980
- label: o(s)
1979
+ label: w((v) => [
1980
+ B(o(re), {
1981
+ data: v,
1982
+ label: o(r)
1981
1983
  }, null, 8, ["data", "label"])
1982
1984
  ]),
1983
- message: g(({ message: j }) => [
1984
- I(o(ae), {
1985
- message: j,
1986
- errors: o(r)
1985
+ message: w(({ message: v }) => [
1986
+ B(o(q), {
1987
+ message: v,
1988
+ errors: o(s)
1987
1989
  }, null, 8, ["message", "errors"])
1988
1990
  ]),
1989
1991
  _: 1
@@ -1991,7 +1993,7 @@ const Fo = {
1991
1993
  ], 2);
1992
1994
  };
1993
1995
  }
1994
- }), Ho = { class: "editor-container" }, Ko = { class: "editor-container__editor" }, Xo = { ref: "editorElement" }, Go = /* @__PURE__ */ O({
1996
+ }), Ko = { class: "editor-container" }, Xo = { class: "editor-container__editor" }, Go = { ref: "editorElement" }, qo = /* @__PURE__ */ H({
1995
1997
  __name: "ck-editor-custom",
1996
1998
  props: {
1997
1999
  modelValue: { default: "" },
@@ -2000,95 +2002,96 @@ const Fo = {
2000
2002
  },
2001
2003
  emits: ["update:modelValue"],
2002
2004
  setup(e, { expose: t, emit: n }) {
2003
- pt((m) => ({
2004
- "5f8a2e8c": m.minHeight
2005
+ mt((d) => ({
2006
+ "32dcdf6e": d.minHeight
2005
2007
  }));
2006
- const l = n, a = N(!1), r = dn, d = {
2007
- toolbar: {
2008
- items: [
2009
- "undo",
2010
- "redo",
2011
- "|",
2012
- "selectAll",
2013
- "|",
2014
- "heading",
2015
- "style",
2016
- "|",
2017
- "bold",
2018
- "italic",
2019
- "|",
2020
- "horizontalLine",
2021
- "link",
2022
- "mediaEmbed",
2023
- "insertTable",
2024
- "blockQuote",
2025
- "|",
2026
- "alignment",
2027
- "|",
2028
- "bulletedList",
2029
- "numberedList",
2030
- "outdent",
2031
- "indent",
2032
- "|",
2033
- "accessibilityHelp"
2034
- ],
2035
- shouldNotGroupWhenFull: !1
2036
- },
2037
- plugins: [
2038
- jt,
2039
- Ct,
2040
- Tt,
2041
- _t,
2042
- Bt,
2043
- It,
2044
- Pt,
2045
- Dt,
2046
- xt,
2047
- St,
2048
- Et,
2049
- $t,
2050
- At,
2051
- Nt,
2052
- Ft,
2053
- Mt,
2054
- Lt,
2055
- Ut,
2056
- Ot,
2057
- Rt,
2058
- Wt,
2059
- zt,
2060
- Ht,
2061
- Kt,
2062
- Xt,
2063
- Gt,
2064
- qt,
2065
- Yt,
2066
- Qt,
2067
- Zt,
2068
- Jt,
2069
- en,
2070
- tn,
2071
- nn,
2072
- on,
2073
- ln,
2074
- an,
2075
- rn,
2076
- sn,
2077
- un,
2078
- cn
2008
+ const a = n, l = F(!1), r = mn, s = {
2009
+ items: [
2010
+ "undo",
2011
+ "redo",
2012
+ "|",
2013
+ "selectAll",
2014
+ "|",
2015
+ "heading",
2016
+ "style",
2017
+ "|",
2018
+ "bold",
2019
+ "italic",
2020
+ "|",
2021
+ "horizontalLine",
2022
+ "link",
2023
+ "mediaEmbed",
2024
+ "insertTable",
2025
+ "blockQuote",
2026
+ "|",
2027
+ "alignment",
2028
+ "|",
2029
+ "bulletedList",
2030
+ "numberedList",
2031
+ "outdent",
2032
+ "indent",
2033
+ "|",
2034
+ "accessibilityHelp"
2079
2035
  ],
2036
+ shouldNotGroupWhenFull: !1
2037
+ }, m = [
2038
+ jt,
2039
+ Tt,
2040
+ _t,
2041
+ Bt,
2042
+ It,
2043
+ Dt,
2044
+ Pt,
2045
+ St,
2046
+ xt,
2047
+ Et,
2048
+ $t,
2049
+ At,
2050
+ Nt,
2051
+ Ft,
2052
+ Mt,
2053
+ Lt,
2054
+ Ut,
2055
+ Ht,
2056
+ Ot,
2057
+ Rt,
2058
+ Wt,
2059
+ zt,
2060
+ Kt,
2061
+ Xt,
2062
+ Gt,
2063
+ qt,
2064
+ Yt,
2065
+ Qt,
2066
+ Zt,
2067
+ Jt,
2068
+ en,
2069
+ tn,
2070
+ nn,
2071
+ on,
2072
+ an,
2073
+ ln,
2074
+ rn,
2075
+ sn,
2076
+ un,
2077
+ cn,
2078
+ dn
2079
+ ], i = {
2080
+ options: [
2081
+ { model: "paragraph", title: $.Paragraph, class: "ck-heading_paragraph" },
2082
+ { model: "heading1", view: "h1", title: $.Heading1, class: "ck-heading_heading1" },
2083
+ { model: "heading2", view: "h2", title: $.Heading2, class: "ck-heading_heading2" },
2084
+ { model: "heading3", view: "h3", title: $.Heading3, class: "ck-heading_heading3" },
2085
+ { model: "heading4", view: "h4", title: $.Heading4, class: "ck-heading_heading4" },
2086
+ { model: "heading5", view: "h5", title: $.Heading5, class: "ck-heading_heading5" },
2087
+ { model: "heading6", view: "h6", title: $.Heading6, class: "ck-heading_heading6" }
2088
+ ]
2089
+ }, p = {
2090
+ language: ke.language,
2091
+ toolbar: s,
2092
+ plugins: m,
2080
2093
  balloonToolbar: ["bold", "italic", "|", "link", "|", "bulletedList", "numberedList"],
2081
- heading: {
2082
- options: [
2083
- { model: "paragraph", title: "Paragraph", class: "ck-heading_paragraph" },
2084
- { model: "heading1", view: "h1", title: "Heading 1", class: "ck-heading_heading1" },
2085
- { model: "heading2", view: "h2", title: "Heading 2", class: "ck-heading_heading2" },
2086
- { model: "heading3", view: "h3", title: "Heading 3", class: "ck-heading_heading3" },
2087
- { model: "heading4", view: "h4", title: "Heading 4", class: "ck-heading_heading4" },
2088
- { model: "heading5", view: "h5", title: "Heading 5", class: "ck-heading_heading5" },
2089
- { model: "heading6", view: "h6", title: "Heading 6", class: "ck-heading_heading6" }
2090
- ]
2091
- },
2094
+ heading: i,
2092
2095
  htmlSupport: {
2093
2096
  allow: [{ name: /^.*$/, styles: !0, attributes: !0, classes: !0 }]
2094
2097
  },
@@ -2111,7 +2114,7 @@ const Fo = {
2111
2114
  decorators: {
2112
2115
  toggleDownloadable: {
2113
2116
  mode: "manual",
2114
- label: "Downloadable",
2117
+ label: $.Downloadable,
2115
2118
  attributes: { download: "file" }
2116
2119
  }
2117
2120
  }
@@ -2119,47 +2122,48 @@ const Fo = {
2119
2122
  placeholder: "",
2120
2123
  style: {
2121
2124
  definitions: [
2122
- { name: "Article category", element: "h3", classes: ["category"] },
2123
- { name: "Title", element: "h2", classes: ["document-title"] },
2124
- { name: "Subtitle", element: "h3", classes: ["document-subtitle"] },
2125
- { name: "Info box", element: "p", classes: ["info-box"] },
2126
- { name: "Side quote", element: "blockquote", classes: ["side-quote"] },
2127
- { name: "Marker", element: "span", classes: ["marker"] },
2128
- { name: "Spoiler", element: "span", classes: ["spoiler"] },
2129
- { name: "Code (dark)", element: "pre", classes: ["fancy-code", "fancy-code-dark"] },
2130
- { name: "Code (bright)", element: "pre", classes: ["fancy-code", "fancy-code-bright"] }
2125
+ { name: $.ArticleCategory, element: "h3", classes: ["category"] },
2126
+ { name: $.Title, element: "h2", classes: ["document-title"] },
2127
+ { name: $.Subtitle, element: "h3", classes: ["document-subtitle"] },
2128
+ { name: $.InfoBox, element: "p", classes: ["info-box"] },
2129
+ { name: $.SideQuote, element: "blockquote", classes: ["side-quote"] },
2130
+ { name: $.Marker, element: "span", classes: ["marker"] },
2131
+ { name: $.Spoiler, element: "span", classes: ["spoiler"] },
2132
+ { name: $.CodeDark, element: "pre", classes: ["fancy-code", "fancy-code-dark"] },
2133
+ { name: $.CodeBright, element: "pre", classes: ["fancy-code", "fancy-code-bright"] }
2131
2134
  ]
2132
2135
  },
2133
- table: { contentToolbar: ["tableColumn", "tableRow", "mergeTableCells", "tableProperties", "tableCellProperties"] }
2136
+ table: { contentToolbar: ["tableColumn", "tableRow", "mergeTableCells", "tableProperties", "tableCellProperties"] },
2137
+ translations: ke.translations
2134
2138
  };
2135
2139
  Ke(() => {
2136
- a.value = !0;
2140
+ l.value = !0;
2137
2141
  });
2138
- const v = (m) => {
2142
+ const h = (d) => {
2139
2143
  };
2140
- return t({ onEditorReady: v }), (m, b) => {
2141
- const c = A("ckeditor");
2142
- return V(), W("div", Ho, [
2143
- oe("div", Ko, [
2144
- oe("div", Xo, [
2145
- a.value ? (V(), D(c, {
2144
+ return t({ onEditorReady: h }), (d, y) => {
2145
+ const c = N("ckeditor");
2146
+ return V(), W("div", Ko, [
2147
+ le("div", Xo, [
2148
+ le("div", Go, [
2149
+ l.value ? (V(), D(c, {
2146
2150
  key: 0,
2147
- "model-value": m.modelValue,
2151
+ "model-value": d.modelValue,
2148
2152
  editor: o(r),
2149
- config: d,
2150
- disabled: m.disabled,
2151
- style: Ge(`min-height: ${m.minHeight}`),
2152
- onReady: v,
2153
- "onUpdate:modelValue": b[0] || (b[0] = (T) => l("update:modelValue", T))
2153
+ config: p,
2154
+ disabled: d.disabled,
2155
+ style: Ge(`min-height: ${d.minHeight}`),
2156
+ onReady: h,
2157
+ "onUpdate:modelValue": y[0] || (y[0] = (j) => a("update:modelValue", j))
2154
2158
  }, null, 8, ["model-value", "editor", "disabled", "style"])) : U("", !0)
2155
2159
  ], 512)
2156
2160
  ])
2157
2161
  ]);
2158
2162
  };
2159
2163
  }
2160
- }), qo = /* @__PURE__ */ O({
2164
+ }), Yo = /* @__PURE__ */ H({
2161
2165
  __name: "df-rtf-editor",
2162
- props: /* @__PURE__ */ q({
2166
+ props: /* @__PURE__ */ Q({
2163
2167
  minHeight: {},
2164
2168
  control: {},
2165
2169
  modelValue: {},
@@ -2175,65 +2179,65 @@ const Fo = {
2175
2179
  passthroughAttrs: {},
2176
2180
  density: {},
2177
2181
  variant: {}
2178
- }, L(S({}, Y), { minHeight: void 0 })),
2182
+ }, O(x({}, Z), { minHeight: void 0 })),
2179
2183
  emits: ["update:modelValue", "click:clear"],
2180
2184
  setup(e, { emit: t }) {
2181
- const n = e, l = t, { densityClass: a, value: r, vuetifyBindings: s } = X(n, l);
2182
- return (p, i) => (V(), D(o(xe), R(n, {
2183
- class: ["ck-editor-custom", o(a)]
2185
+ const n = e, a = t, { densityClass: l, value: r, vuetifyBindings: s } = G(n, a);
2186
+ return (m, i) => (V(), D(o(Se), R(n, {
2187
+ class: ["ck-editor-custom", o(l)]
2184
2188
  }), {
2185
- default: g((d) => [
2186
- I(Go, R({
2189
+ default: w((p) => [
2190
+ B(qo, R({
2187
2191
  ref: "$editor",
2188
2192
  modelValue: o(r),
2189
- "onUpdate:modelValue": i[0] || (i[0] = (v) => ne(r) ? r.value = v : null),
2190
- class: { "mt-6": !!p.label },
2191
- "min-height": p.minHeight,
2193
+ "onUpdate:modelValue": i[0] || (i[0] = (h) => ae(r) ? r.value = h : null),
2194
+ class: { "mt-6": !!m.label },
2195
+ "min-height": m.minHeight,
2192
2196
  disabled: o(s).disabled,
2193
2197
  placeholder: "dfsjghdf"
2194
- }, p.passthroughAttrs, {
2195
- onFocusin: (v) => d.focus(),
2196
- onFocusout: (v) => d.blur()
2198
+ }, m.passthroughAttrs, {
2199
+ onFocusin: (h) => p.focus(),
2200
+ onFocusout: (h) => p.blur()
2197
2201
  }), null, 16, ["modelValue", "class", "min-height", "disabled", "onFocusin", "onFocusout"])
2198
2202
  ]),
2199
2203
  _: 1
2200
2204
  }, 16, ["class"]));
2201
2205
  }
2202
2206
  });
2203
- function Yo(e) {
2207
+ function Qo(e) {
2204
2208
  return e.map((t) => ({ value: t.id, title: t.text, icon: t.icon }));
2205
2209
  }
2206
- function Z(e, t) {
2210
+ function ee(e, t) {
2207
2211
  var n;
2208
- return e == null || Re(e) && e.length === 0 ? null : t ? qe(e) : Re(e) ? (n = Ye(e)) != null ? n : null : e;
2212
+ return e == null || Oe(e) && e.length === 0 ? null : t ? qe(e) : Oe(e) ? (n = Ye(e)) != null ? n : null : e;
2209
2213
  }
2210
2214
  function Ve(e, t) {
2211
2215
  if (t == null) return [];
2212
2216
  const n = qe(t);
2213
- return e.filter((l) => n.some((a) => a === l.id));
2217
+ return e.filter((a) => n.some((l) => l === a.id));
2214
2218
  }
2215
- function ye(e, t, n, l, a) {
2219
+ function we(e, t, n, a, l) {
2216
2220
  var s;
2217
- const r = Z(e, n);
2221
+ const r = ee(e, n);
2218
2222
  if (r == null) {
2219
2223
  t.value = n ? [] : null;
2220
2224
  return;
2221
2225
  }
2222
2226
  if (n)
2223
- l ? t.value = r : t.value = Ve(a, r).map((p) => p.id);
2224
- else if (l)
2227
+ a ? t.value = r : t.value = Ve(l, r).map((m) => m.id);
2228
+ else if (a)
2225
2229
  t.value = r;
2226
2230
  else {
2227
- const p = Ye(Ve(a, r));
2228
- t.value = (s = p == null ? void 0 : p.id) != null ? s : null;
2231
+ const m = Ye(Ve(l, r));
2232
+ t.value = (s = m == null ? void 0 : m.id) != null ? s : null;
2229
2233
  }
2230
2234
  }
2231
- const Qo = {
2235
+ const Zo = {
2232
2236
  key: 0,
2233
2237
  class: "me-1"
2234
- }, Zo = /* @__PURE__ */ O({
2238
+ }, Jo = /* @__PURE__ */ H({
2235
2239
  __name: "df-select",
2236
- props: /* @__PURE__ */ q({
2240
+ props: /* @__PURE__ */ Q({
2237
2241
  choices: {},
2238
2242
  multiple: { type: Boolean },
2239
2243
  allowTags: { type: Boolean },
@@ -2253,7 +2257,7 @@ const Qo = {
2253
2257
  passthroughAttrs: {},
2254
2258
  density: {},
2255
2259
  variant: {}
2256
- }, L(S({}, Y), {
2260
+ }, O(x({}, Z), {
2257
2261
  choices: void 0,
2258
2262
  multiple: !1,
2259
2263
  allowTags: !1,
@@ -2262,153 +2266,153 @@ const Qo = {
2262
2266
  })),
2263
2267
  emits: ["update:modelValueDisplay", "update:modelValue", "click:clear"],
2264
2268
  setup(e, { emit: t }) {
2265
- const n = e, { choices: l, multiple: a, allowTags: r, allowNull: s, cssClass: p, visibility: i } = je(n), d = t, {
2266
- densityClass: v,
2267
- errors: m,
2268
- label: b,
2269
+ const n = e, { choices: a, multiple: l, allowTags: r, allowNull: s, cssClass: m, visibility: i } = Ce(n), p = t, {
2270
+ densityClass: h,
2271
+ label: d,
2272
+ showErrors: y,
2269
2273
  touched: c,
2270
- value: T,
2271
- vuetifyBindings: _
2272
- } = X(n, d), y = N(null), h = N(!1), E = N([]), F = w(() => o(h) ? o(E) : o(l) || []), k = N(!1), j = w(() => Yo(F.value));
2273
- j.value && n.fetchChoices !== void 0 && console.warn("Both options and fetchChoices are set. Only one of them should be set.");
2274
- function M(B) {
2275
- d("update:modelValueDisplay", Ve(F.value, B));
2274
+ value: j,
2275
+ vuetifyBindings: T
2276
+ } = G(n, p), k = F(null), g = F(!1), P = F([]), M = b(() => o(g) ? o(P) : o(a) || []), E = F(!1), v = b(() => Qo(M.value));
2277
+ v.value && n.fetchChoices !== void 0 && console.warn("Both options and fetchChoices are set. Only one of them should be set.");
2278
+ function L(_) {
2279
+ p("update:modelValueDisplay", Ve(M.value, _));
2276
2280
  }
2277
2281
  let f = !1;
2278
- function u(B) {
2279
- f = !0, T.value = B, Me(() => {
2282
+ function u(_) {
2283
+ f = !0, j.value = _, Me(() => {
2280
2284
  f = !1;
2281
2285
  });
2282
2286
  }
2283
- se(
2284
- y,
2285
- (B) => {
2286
- _.value.readonly || Me(() => {
2287
- const P = Z(B, a.value);
2288
- M(P), u(P);
2287
+ ue(
2288
+ k,
2289
+ (_) => {
2290
+ T.value.readonly || Me(() => {
2291
+ const I = ee(_, l.value);
2292
+ L(I), u(I);
2289
2293
  });
2290
2294
  },
2291
2295
  { deep: !0 }
2292
- ), se(
2293
- T,
2294
- (B) => {
2296
+ ), ue(
2297
+ j,
2298
+ (_) => {
2295
2299
  if (!f) {
2296
- const P = Z(B, a.value);
2297
- ye(P, y, a.value, !1, F.value);
2300
+ const I = ee(_, l.value);
2301
+ we(I, k, l.value, !1, M.value);
2298
2302
  }
2299
2303
  },
2300
2304
  { deep: !0 }
2301
2305
  );
2302
- function $() {
2303
- if (_.value.readonly || r.value) return;
2304
- const B = Z(y.value, a.value);
2305
- ye(B, y, a.value, !1, F.value), u(B);
2306
+ function A() {
2307
+ if (T.value.readonly || r.value) return;
2308
+ const _ = ee(k.value, l.value);
2309
+ we(_, k, l.value, !1, M.value), u(_);
2306
2310
  }
2307
- function H(B) {
2308
- let P;
2309
- a.value && Array.isArray(y.value) ? P = Z(
2310
- y.value.filter((C) => C !== B),
2311
- a.value
2312
- ) : P = null, ye(P, y, a.value, !1, F.value), u(P);
2311
+ function K(_) {
2312
+ let I;
2313
+ l.value && Array.isArray(k.value) ? I = ee(
2314
+ k.value.filter((C) => C !== _),
2315
+ l.value
2316
+ ) : I = null, we(I, k, l.value, !1, M.value), u(I);
2313
2317
  }
2314
- function ue(B, P) {
2318
+ function ce(_, I) {
2315
2319
  return ge(this, null, function* () {
2316
- if (!(l.value || n.fetchChoices === void 0)) {
2317
- k.value = !0;
2320
+ if (!(a.value || n.fetchChoices === void 0)) {
2321
+ E.value = !0;
2318
2322
  try {
2319
2323
  const C = Ve(
2320
- F.value,
2321
- Z(y.value, a.value)
2322
- ), Q = yield n.fetchChoices(B, P);
2323
- E.value = bt([...C, ...Q], "id"), h.value = !0;
2324
+ M.value,
2325
+ ee(k.value, l.value)
2326
+ ), J = yield n.fetchChoices(_, I);
2327
+ P.value = ht([...C, ...J], "id"), g.value = !0;
2324
2328
  } finally {
2325
- k.value = !1;
2329
+ E.value = !1;
2326
2330
  }
2327
2331
  }
2328
2332
  });
2329
2333
  }
2330
- function ce() {
2331
- let B = T.value;
2332
- !s.value && B == null && j.value.length && (B = j.value[0].value), B = Z(B, a.value), ye(B, y, a.value, r.value, F.value), M(B), u(B);
2334
+ function de() {
2335
+ let _ = j.value;
2336
+ !s.value && _ == null && v.value.length && (_ = v.value[0].value), _ = ee(_, l.value), we(_, k, l.value, r.value, M.value), L(_), u(_);
2333
2337
  }
2334
- return ce(), n.fetchChoices !== void 0 && ue(void 0, T.value).then(() => {
2335
- ce();
2336
- }), (B, P) => {
2337
- const C = A("v-chip"), Q = A("v-list-item");
2338
- return o(i) !== o(K).SUPPRESS ? (V(), D(he(o(r) ? "v-combobox" : "v-autocomplete"), R({
2338
+ return de(), n.fetchChoices !== void 0 && ce(void 0, j.value).then(() => {
2339
+ de();
2340
+ }), (_, I) => {
2341
+ const C = N("v-chip"), J = N("v-list-item");
2342
+ return o(i) !== o(X).SUPPRESS ? (V(), D(he(o(r) ? "v-combobox" : "v-autocomplete"), R({
2339
2343
  key: 0,
2340
- modelValue: y.value,
2341
- "onUpdate:modelValue": P[0] || (P[0] = (x) => y.value = x),
2344
+ modelValue: k.value,
2345
+ "onUpdate:modelValue": I[0] || (I[0] = (S) => k.value = S),
2342
2346
  class: [
2343
- o(p),
2344
- o(v),
2347
+ o(m),
2348
+ o(h),
2345
2349
  {
2346
- "d-none": o(i) === o(K).HIDDEN,
2347
- invisible: o(i) === o(K).INVISIBLE
2350
+ "d-none": o(i) === o(X).HIDDEN,
2351
+ invisible: o(i) === o(X).INVISIBLE
2348
2352
  }
2349
2353
  ],
2350
- items: j.value,
2354
+ items: v.value,
2351
2355
  "return-object": !1
2352
- }, o(_), {
2353
- label: o(_).label,
2356
+ }, o(T), {
2357
+ label: o(T).label,
2354
2358
  chips: "",
2355
2359
  "auto-select-first": !0,
2356
- "closable-chips": o(s) || o(a) && y.value.length > 1,
2360
+ "closable-chips": o(s) || o(l) && k.value.length > 1,
2357
2361
  clearable: o(s),
2358
- multiple: o(a),
2359
- loading: k.value,
2362
+ multiple: o(l),
2363
+ loading: E.value,
2360
2364
  "hide-selected": !1,
2361
- "aria-describedby": o(_).helpText ? `${o(_).name}-help` : null,
2365
+ "aria-describedby": o(T).helpText ? `${o(T).name}-help` : null,
2362
2366
  "menu-props": { maxHeight: "400" },
2363
2367
  "hide-details": "auto",
2364
- "onUpdate:search": P[1] || (P[1] = (x) => ue(x, void 0)),
2365
- "onUpdate:modelValue": $,
2366
- "onClick:clear": P[2] || (P[2] = (x) => y.value = null),
2367
- onBlur: P[3] || (P[3] = (x) => c.value = !0)
2368
- }), Pe({
2369
- chip: g(({ item: x }) => [
2368
+ "onUpdate:search": I[1] || (I[1] = (S) => ce(S, void 0)),
2369
+ "onUpdate:modelValue": A,
2370
+ "onClick:clear": I[2] || (I[2] = (S) => k.value = null),
2371
+ onBlur: I[3] || (I[3] = (S) => c.value = !0)
2372
+ }), De({
2373
+ chip: w(({ item: S }) => [
2370
2374
  (V(), D(C, {
2371
- key: x.value,
2375
+ key: S.value,
2372
2376
  label: "",
2373
2377
  size: "small",
2374
2378
  class: "d-flex align-middle",
2375
- variant: o(a) ? "tonal" : "text",
2376
- closable: o(a),
2377
- "onClick:close": (re) => H(x.value)
2379
+ variant: o(l) ? "tonal" : "text",
2380
+ closable: o(l),
2381
+ "onClick:close": (ie) => K(S.value)
2378
2382
  }, {
2379
- prepend: g(() => {
2380
- var re;
2383
+ prepend: w(() => {
2384
+ var ie;
2381
2385
  return [
2382
- (re = x.raw) != null && re.icon ? (V(), D(o(be), {
2386
+ (ie = S.raw) != null && ie.icon ? (V(), D(o(be), {
2383
2387
  key: 0,
2384
2388
  class: "me-1",
2385
- name: x.raw.icon
2389
+ name: S.raw.icon
2386
2390
  }, null, 8, ["name"])) : U("", !0)
2387
2391
  ];
2388
2392
  }),
2389
- default: g(() => [
2390
- oe("span", {
2391
- class: G({ "text-body-1": !o(a) })
2392
- }, De(x.title), 3)
2393
+ default: w(() => [
2394
+ le("span", {
2395
+ class: Y({ "text-body-1": !o(l) })
2396
+ }, Pe(S.title), 3)
2393
2397
  ]),
2394
2398
  _: 2
2395
2399
  }, 1032, ["variant", "closable", "onClick:close"]))
2396
2400
  ]),
2397
- label: g((x) => [
2398
- I(o(le), {
2399
- data: x,
2400
- label: o(b)
2401
+ label: w((S) => [
2402
+ B(o(re), {
2403
+ data: S,
2404
+ label: o(d)
2401
2405
  }, null, 8, ["data", "label"])
2402
2406
  ]),
2403
- item: g(({ props: x, item: re }) => [
2404
- I(Q, J(ee(x)), {
2405
- prepend: g(() => {
2406
- var Se;
2407
+ item: w(({ props: S, item: ie }) => [
2408
+ B(J, te(ne(S)), {
2409
+ prepend: w(() => {
2410
+ var xe;
2407
2411
  return [
2408
- (Se = re.raw) != null && Se.icon ? (V(), W("span", Qo, [
2409
- I(o(be), {
2412
+ (xe = ie.raw) != null && xe.icon ? (V(), W("span", Zo, [
2413
+ B(o(be), {
2410
2414
  class: "action-icon",
2411
- name: re.raw.icon
2415
+ name: ie.raw.icon
2412
2416
  }, null, 8, ["name"])
2413
2417
  ])) : U("", !0)
2414
2418
  ];
@@ -2416,34 +2420,34 @@ const Qo = {
2416
2420
  _: 2
2417
2421
  }, 1040)
2418
2422
  ]),
2419
- message: g(({ message: x }) => [
2420
- I(o(ae), {
2421
- message: x,
2422
- errors: o(m)
2423
+ message: w(({ message: S }) => [
2424
+ B(o(q), {
2425
+ message: S,
2426
+ errors: o(y)
2423
2427
  }, null, 8, ["message", "errors"])
2424
2428
  ]),
2425
2429
  _: 2
2426
2430
  }, [
2427
- B.$slots["append-inner"] ? {
2431
+ _.$slots["append-inner"] ? {
2428
2432
  name: "append-inner",
2429
- fn: g((x) => [
2430
- ie(B.$slots, "append-inner", J(ee(x)))
2433
+ fn: w((S) => [
2434
+ se(_.$slots, "append-inner", te(ne(S)))
2431
2435
  ]),
2432
2436
  key: "0"
2433
2437
  } : void 0,
2434
- B.$slots["prepend-inner"] ? {
2438
+ _.$slots["prepend-inner"] ? {
2435
2439
  name: "prepend-inner",
2436
- fn: g((x) => [
2437
- ie(B.$slots, "prepend-inner", J(ee(x)))
2440
+ fn: w((S) => [
2441
+ se(_.$slots, "prepend-inner", te(ne(S)))
2438
2442
  ]),
2439
2443
  key: "1"
2440
2444
  } : void 0
2441
2445
  ]), 1040, ["modelValue", "class", "items", "label", "closable-chips", "clearable", "multiple", "loading", "aria-describedby"])) : U("", !0);
2442
2446
  };
2443
2447
  }
2444
- }), Jo = /* @__PURE__ */ O({
2448
+ }), ea = /* @__PURE__ */ H({
2445
2449
  __name: "df-text-area",
2446
- props: /* @__PURE__ */ q({
2450
+ props: /* @__PURE__ */ Q({
2447
2451
  rows: {},
2448
2452
  maxRows: {},
2449
2453
  control: {},
@@ -2460,45 +2464,45 @@ const Qo = {
2460
2464
  passthroughAttrs: {},
2461
2465
  density: {},
2462
2466
  variant: {}
2463
- }, L(S({}, Y), {
2467
+ }, O(x({}, Z), {
2464
2468
  rows: void 0,
2465
2469
  maxRows: void 0
2466
2470
  })),
2467
2471
  emits: ["update:modelValue", "click:clear"],
2468
2472
  setup(e, { emit: t }) {
2469
- const n = e, l = t, { densityClass: a, errors: r, label: s, touched: p, value: i, vuetifyBindings: d } = X(n, l), { cssClass: v, visibility: m } = je(n);
2470
- return (b, c) => {
2471
- const T = A("v-textarea");
2473
+ const n = e, a = t, { densityClass: l, label: r, showErrors: s, touched: m, value: i, vuetifyBindings: p } = G(n, a), { cssClass: h, visibility: d } = Ce(n);
2474
+ return (y, c) => {
2475
+ const j = N("v-textarea");
2472
2476
  return V(), W("div", {
2473
- class: G(["df-textarea-container", o(a)])
2477
+ class: Y(["df-textarea-container", o(l)])
2474
2478
  }, [
2475
- o(m) !== o(K).SUPPRESS ? (V(), D(T, R({
2479
+ o(d) !== o(X).SUPPRESS ? (V(), D(j, R({
2476
2480
  key: 0,
2477
2481
  modelValue: o(i),
2478
- "onUpdate:modelValue": c[0] || (c[0] = (_) => ne(i) ? i.value = _ : null),
2482
+ "onUpdate:modelValue": c[0] || (c[0] = (T) => ae(i) ? i.value = T : null),
2479
2483
  class: [
2480
- o(v),
2484
+ o(h),
2481
2485
  {
2482
- "d-none": o(m) === o(K).HIDDEN,
2483
- invisible: o(m) === o(K).INVISIBLE
2486
+ "d-none": o(d) === o(X).HIDDEN,
2487
+ invisible: o(d) === o(X).INVISIBLE
2484
2488
  }
2485
2489
  ],
2486
- rows: b.rows,
2487
- "auto-grow": (b.maxRows || 0) > 0,
2488
- "max-rows": b.maxRows
2489
- }, o(d), {
2490
- onBlur: c[1] || (c[1] = (_) => p.value = !0)
2490
+ rows: y.rows,
2491
+ "auto-grow": (y.maxRows || 0) > 0,
2492
+ "max-rows": y.maxRows
2493
+ }, o(p), {
2494
+ onBlur: c[1] || (c[1] = (T) => m.value = !0)
2491
2495
  }), {
2492
- label: g((_) => [
2493
- I(o(le), {
2494
- data: _,
2495
- label: o(s)
2496
+ label: w((T) => [
2497
+ B(o(re), {
2498
+ data: T,
2499
+ label: o(r)
2496
2500
  }, null, 8, ["data", "label"])
2497
2501
  ]),
2498
- message: g(({ message: _ }) => [
2499
- I(o(ae), {
2500
- message: _,
2501
- errors: o(r)
2502
+ message: w(({ message: T }) => [
2503
+ B(o(q), {
2504
+ message: T,
2505
+ errors: o(s)
2502
2506
  }, null, 8, ["message", "errors"])
2503
2507
  ]),
2504
2508
  _: 1
@@ -2506,82 +2510,86 @@ const Qo = {
2506
2510
  ], 2);
2507
2511
  };
2508
2512
  }
2509
- }), el = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2513
+ }), ta = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2510
2514
  __proto__: null,
2511
- DfActions: Lo,
2512
- DfCheckbox: Uo,
2515
+ DFInputHint: q,
2516
+ DfActions: Uo,
2517
+ DfCheckbox: Ho,
2513
2518
  DfColor: Oo,
2514
2519
  DfDateTime: Ro,
2515
2520
  DfFile: Wo,
2516
2521
  DfInput: zo,
2517
- DfRtfEditor: qo,
2518
- DfSelect: Zo,
2519
- DfTextArea: Jo
2520
- }, Symbol.toStringTag, { value: "Module" })), tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2522
+ DfRtfEditor: Yo,
2523
+ DfSelect: Jo,
2524
+ DfTextArea: ea
2525
+ }, Symbol.toStringTag, { value: "Module" })), na = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2521
2526
  __proto__: null,
2522
- VAutocomplete: mn,
2523
- VBtn: pn,
2524
- VCheckbox: fn,
2525
- VChip: vn,
2526
- VCol: Vn,
2527
- VColorPicker: bn,
2528
- VCombobox: hn,
2529
- VConfirmEdit: gn,
2530
- VDatePicker: wn,
2531
- VField: yn,
2532
- VFileInput: kn,
2533
- VIcon: Cn,
2534
- VImg: Tn,
2535
- VInput: _n,
2536
- VListItem: Bn,
2537
- VMenu: In,
2527
+ VAutocomplete: pn,
2528
+ VBtn: fn,
2529
+ VCheckbox: vn,
2530
+ VChip: hn,
2531
+ VCol: Cn,
2532
+ VColorPicker: gn,
2533
+ VCombobox: bn,
2534
+ VConfirmEdit: wn,
2535
+ VDatePicker: yn,
2536
+ VField: kn,
2537
+ VFileInput: Vn,
2538
+ VIcon: Tn,
2539
+ VImg: _n,
2540
+ VInput: Bn,
2541
+ VListItem: In,
2542
+ VMenu: Dn,
2538
2543
  VNumberInput: Pn,
2539
- VProgressLinear: Dn,
2544
+ VProgressLinear: Sn,
2540
2545
  VRow: jn,
2541
2546
  VSelect: xn,
2542
- VSwitch: Sn,
2543
- VTextField: $n,
2544
- VTextarea: En,
2545
- VTimePicker: An
2546
- }, Symbol.toStringTag, { value: "Module" })), Al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2547
+ VSwitch: En,
2548
+ VTextField: An,
2549
+ VTextarea: $n,
2550
+ VTimePicker: Nn
2551
+ }, Symbol.toStringTag, { value: "Module" })), Fa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2547
2552
  __proto__: null
2548
- }, Symbol.toStringTag, { value: "Module" })), Nl = {
2553
+ }, Symbol.toStringTag, { value: "Module" })), Ma = {
2549
2554
  install: (e, t) => {
2550
- var n, l;
2551
- e.use(Xn), e.provide(tt, t != null ? t : {}), (n = t == null ? void 0 : t.registerComponents) != null && n && Object.entries(el).map(([a, r]) => e.component(a, r)), (l = t == null ? void 0 : t.registerVuetifyComponents) != null && l && Object.entries(tl).map(([a, r]) => e.component(a, r));
2555
+ var n, a;
2556
+ e.use(Gn), e.provide(et, t != null ? t : {}), (n = t == null ? void 0 : t.registerComponents) != null && n && Object.entries(ta).map(([l, r]) => e.component(l, r)), (a = t == null ? void 0 : t.registerVuetifyComponents) != null && a && Object.entries(na).map(([l, r]) => e.component(l, r));
2552
2557
  }
2553
2558
  };
2554
2559
  export {
2555
- ke as Action,
2560
+ ye as Action,
2556
2561
  z as ActionDisplayStyle,
2557
- Do as DateTimeLocaleConfig,
2558
- Lo as DfActions,
2559
- Uo as DfCheckbox,
2562
+ q as DFInputHint,
2563
+ So as DateTimeLocaleConfig,
2564
+ Uo as DfActions,
2565
+ Ho as DfCheckbox,
2560
2566
  Oo as DfColor,
2561
2567
  Ro as DfDateTime,
2562
2568
  Wo as DfFile,
2563
2569
  zo as DfInput,
2564
- Al as DfInputComponentProps,
2565
- el as DfInputComponents,
2566
- le as DfLabel,
2567
- qo as DfRtfEditor,
2568
- Zo as DfSelect,
2569
- Jo as DfTextArea,
2570
- Nl as DynamicFormsInputs,
2571
- xe as InputBase,
2570
+ Fa as DfInputComponentProps,
2571
+ ta as DfInputComponents,
2572
+ q as DfInputHint,
2573
+ re as DfLabel,
2574
+ Yo as DfRtfEditor,
2575
+ Jo as DfSelect,
2576
+ ea as DfTextArea,
2577
+ Ma as DynamicFormsInputs,
2578
+ Se as InputBase,
2572
2579
  xo as Label,
2573
- ae as MessagesWidget,
2574
- No as ResponsiveActionRenderOptions,
2575
- Eo as ResponsiveRenderOptions,
2576
- tl as VuetifyComponents,
2577
- Y as defaultBaseProps,
2578
- ze as defaultDisplayStyle,
2579
- $o as getBreakpointName,
2580
- He as responsiveBreakpoints,
2581
- ve as translatableStrings,
2582
- $l as translateStrings,
2583
- Ao as useBreakpoint,
2584
- X as useInputBase,
2585
- tt as vuetifyInputsSettingsKey
2580
+ Fo as ResponsiveActionRenderOptions,
2581
+ $o as ResponsiveRenderOptions,
2582
+ na as VuetifyComponents,
2583
+ ke as ckEditorLanguage,
2584
+ Z as defaultBaseProps,
2585
+ We as defaultDisplayStyle,
2586
+ Ao as getBreakpointName,
2587
+ ze as responsiveBreakpoints,
2588
+ Na as setCkEditorLanguage,
2589
+ $ as translatableStrings,
2590
+ Aa as translateStrings,
2591
+ No as useBreakpoint,
2592
+ G as useInputBase,
2593
+ et as vuetifyInputsSettingsKey
2586
2594
  };
2587
2595
  //# sourceMappingURL=dynamicforms-vuetify-inputs.js.map