@dynamicforms/vuetify-inputs 0.7.9 → 0.7.11

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