@dynamicforms/vuetify-inputs 0.3.2 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,63 +1,63 @@
1
- var ze = Object.defineProperty, Ke = Object.defineProperties;
2
- var Ge = Object.getOwnPropertyDescriptors;
3
- var ke = Object.getOwnPropertySymbols;
4
- var We = Object.prototype.hasOwnProperty, Xe = Object.prototype.propertyIsEnumerable;
5
- var pe = (l, e, n) => e in l ? ze(l, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : l[e] = n, E = (l, e) => {
1
+ var We = Object.defineProperty, Xe = Object.defineProperties;
2
+ var qe = Object.getOwnPropertyDescriptors;
3
+ var Ce = Object.getOwnPropertySymbols;
4
+ var Ze = Object.prototype.hasOwnProperty, Ye = Object.prototype.propertyIsEnumerable;
5
+ var be = (t, e, n) => e in t ? We(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, N = (t, e) => {
6
6
  for (var n in e || (e = {}))
7
- We.call(e, n) && pe(l, n, e[n]);
8
- if (ke)
9
- for (var n of ke(e))
10
- Xe.call(e, n) && pe(l, n, e[n]);
11
- return l;
12
- }, O = (l, e) => Ke(l, Ge(e));
13
- var oe = (l, e, n) => pe(l, typeof e != "symbol" ? e + "" : e, n);
14
- var re = (l, e, n) => new Promise((a, o) => {
15
- var i = (f) => {
7
+ Ze.call(e, n) && be(t, n, e[n]);
8
+ if (Ce)
9
+ for (var n of Ce(e))
10
+ Ye.call(e, n) && be(t, n, e[n]);
11
+ return t;
12
+ }, M = (t, e) => Xe(t, qe(e));
13
+ var ae = (t, e, n) => be(t, typeof e != "symbol" ? e + "" : e, n);
14
+ var ue = (t, e, n) => new Promise((a, o) => {
15
+ var i = (v) => {
16
16
  try {
17
- d(n.next(f));
18
- } catch (c) {
19
- o(c);
17
+ f(n.next(v));
18
+ } catch (s) {
19
+ o(s);
20
20
  }
21
- }, s = (f) => {
21
+ }, u = (v) => {
22
22
  try {
23
- d(n.throw(f));
24
- } catch (c) {
25
- o(c);
23
+ f(n.throw(v));
24
+ } catch (s) {
25
+ o(s);
26
26
  }
27
- }, d = (f) => f.done ? a(f.value) : Promise.resolve(f.value).then(i, s);
28
- d((n = n.apply(l, e)).next());
27
+ }, f = (v) => v.done ? a(v.value) : Promise.resolve(v.value).then(i, u);
28
+ f((n = n.apply(t, e)).next());
29
29
  });
30
- import * as we from "vue";
31
- import { defineComponent as L, mergeModels as Te, useModel as qe, ref as N, watch as ie, onMounted as Ee, markRaw as Ze, onBeforeUnmount as Ue, createBlock as C, openBlock as h, resolveDynamicComponent as ee, version as Ye, resolveComponent as I, createElementBlock as D, createCommentVNode as U, createTextVNode as he, Fragment as ye, toDisplayString as J, computed as T, renderList as Fe, normalizeClass as se, unref as t, mergeProps as H, withCtx as y, createVNode as V, createSlots as j, renderSlot as Qe, isRef as q, withModifiers as Je, mergeDefaults as W, createElementVNode as le, normalizeStyle as _e, toRefs as me, withKeys as Ce, useCssVars as el, normalizeProps as Le, guardReactiveProps as Pe, nextTick as ll } from "vue";
32
- import { debounce as tl, isString as de, isEmpty as nl, isObjectLike as ol, isBoolean as Ie, clone as al, toNumber as Be, isNaN as Ae, isArray as xe, castArray as Re, first as Oe, unionBy as il } from "lodash-es";
33
- import ge from "vue-ionicon";
34
- import { useDisplay as sl } from "vuetify";
35
- import Se, { ValidationErrorRenderContent as rl, DisplayMode as M, ExecuteAction as ul, Action as fe } from "@dynamicforms/vue-forms";
36
- import dl from "vue-markdown-render";
37
- import { format as ae, parse as cl } from "date-fns";
38
- import { AccessibilityHelp as ml, Alignment as pl, AutoImage as fl, AutoLink as vl, Autosave as bl, BalloonToolbar as gl, BlockQuote as hl, Bold as yl, CloudServices as _l, Essentials as Vl, GeneralHtmlSupport as kl, Heading as wl, HorizontalLine as Tl, ImageBlock as Cl, ImageCaption as Il, ImageInline as Bl, ImageInsertViaUrl as Al, ImageResize as xl, ImageStyle as Sl, ImageToolbar as Dl, ImageUpload as Nl, Indent as $l, IndentBlock as El, Italic as Ul, Link as Fl, List as Ll, Autoformat as Pl, MediaEmbed as Rl, Paragraph as Ol, PasteFromMarkdownExperimental as Ml, PasteFromOffice as Hl, SelectAll as jl, Style as zl, Table as Kl, TableCellProperties as Gl, TableColumnResize as Wl, TableProperties as Xl, TableToolbar as ql, Undo as Zl, TextTransformation as Yl, Base64UploadAdapter as Ql, ClassicEditor as Jl } from "ckeditor5";
39
- import { VAutocomplete as et } from "vuetify/components/VAutocomplete";
40
- import { VBtn as lt } from "vuetify/components/VBtn";
41
- import { VCheckbox as tt } from "vuetify/components/VCheckbox";
42
- import { VChip as nt } from "vuetify/components/VChip";
43
- import { VCombobox as ot } from "vuetify/components/VCombobox";
44
- import { VColorPicker as at } from "vuetify/components/VColorPicker";
45
- import { VConfirmEdit as it } from "vuetify/components/VConfirmEdit";
46
- import { VDatePicker as st } from "vuetify/components/VDatePicker";
47
- import { VFileInput as rt } from "vuetify/components/VFileInput";
48
- import { VCol as ut, VRow as dt } from "vuetify/components/VGrid";
49
- import { VIcon as ct } from "vuetify/components/VIcon";
50
- import { VImg as mt } from "vuetify/components/VImg";
51
- import { VInput as pt } from "vuetify/components/VInput";
52
- import { VListItem as ft } from "vuetify/components/VList";
53
- import { VMenu as vt } from "vuetify/components/VMenu";
54
- import { VNumberInput as bt } from "vuetify/components/VNumberInput";
55
- import { VProgressLinear as gt } from "vuetify/components/VProgressLinear";
56
- import { VSelect as ht } from "vuetify/components/VSelect";
57
- import { VSwitch as yt } from "vuetify/components/VSwitch";
58
- import { VTextarea as _t } from "vuetify/components/VTextarea";
59
- import { VTextField as Vt } from "vuetify/components/VTextField";
60
- import { VTimePicker as kt } from "vuetify/labs/VTimePicker";
30
+ import * as Ie from "vue";
31
+ import { defineComponent as F, mergeModels as Be, useModel as Qe, ref as $, watch as se, onMounted as Le, markRaw as Je, onBeforeUnmount as Pe, createBlock as T, openBlock as h, resolveDynamicComponent as te, version as et, resolveComponent as I, createElementBlock as D, createCommentVNode as E, createTextVNode as Ve, Fragment as ke, toDisplayString as ee, computed as V, renderList as Re, normalizeClass as re, unref as l, mergeProps as j, withCtx as y, createVNode as _, createSlots as q, renderSlot as tt, isRef as Z, withModifiers as lt, mergeDefaults as K, createElementVNode as le, normalizeStyle as we, toRefs as pe, withKeys as Ae, useCssVars as nt, normalizeProps as Oe, guardReactiveProps as Me, nextTick as ot } from "vue";
32
+ import { debounce as at, isString as ce, isEmpty as it, isObjectLike as st, isBoolean as xe, clone as rt, toNumber as Se, isNaN as De, isArray as $e, castArray as He, first as je, unionBy as ut } from "lodash-es";
33
+ import _e from "vue-ionicon";
34
+ import { useDisplay as dt } from "vuetify";
35
+ import Ne, { ValidationErrorRenderContent as ct, DisplayMode as H, ExecuteAction as mt, Action as ge } from "@dynamicforms/vue-forms";
36
+ import pt from "vue-markdown-render";
37
+ import { format as ie, parse as ft } from "date-fns";
38
+ import { AccessibilityHelp as vt, Alignment as bt, AutoImage as gt, AutoLink as ht, Autosave as yt, BalloonToolbar as _t, BlockQuote as Vt, Bold as kt, CloudServices as wt, Essentials as Tt, GeneralHtmlSupport as Ct, Heading as It, HorizontalLine as Bt, ImageBlock as At, ImageCaption as xt, ImageInline as St, ImageInsertViaUrl as Dt, ImageResize as $t, ImageStyle as Nt, ImageToolbar as Et, ImageUpload as Ut, Indent as Ft, IndentBlock as Lt, Italic as Pt, Link as Rt, List as Ot, Autoformat as Mt, MediaEmbed as Ht, Paragraph as jt, PasteFromMarkdownExperimental as zt, PasteFromOffice as Kt, SelectAll as Gt, Style as Wt, Table as Xt, TableCellProperties as qt, TableColumnResize as Zt, TableProperties as Yt, TableToolbar as Qt, Undo as Jt, TextTransformation as el, Base64UploadAdapter as tl, ClassicEditor as ll } from "ckeditor5";
39
+ import { VAutocomplete as nl } from "vuetify/components/VAutocomplete";
40
+ import { VBtn as ol } from "vuetify/components/VBtn";
41
+ import { VCheckbox as al } from "vuetify/components/VCheckbox";
42
+ import { VChip as il } from "vuetify/components/VChip";
43
+ import { VCombobox as sl } from "vuetify/components/VCombobox";
44
+ import { VColorPicker as rl } from "vuetify/components/VColorPicker";
45
+ import { VConfirmEdit as ul } from "vuetify/components/VConfirmEdit";
46
+ import { VDatePicker as dl } from "vuetify/components/VDatePicker";
47
+ import { VFileInput as cl } from "vuetify/components/VFileInput";
48
+ import { VCol as ml, VRow as pl } from "vuetify/components/VGrid";
49
+ import { VIcon as fl } from "vuetify/components/VIcon";
50
+ import { VImg as vl } from "vuetify/components/VImg";
51
+ import { VInput as bl } from "vuetify/components/VInput";
52
+ import { VListItem as gl } from "vuetify/components/VList";
53
+ import { VMenu as hl } from "vuetify/components/VMenu";
54
+ import { VNumberInput as yl } from "vuetify/components/VNumberInput";
55
+ import { VProgressLinear as _l } from "vuetify/components/VProgressLinear";
56
+ import { VSelect as Vl } from "vuetify/components/VSelect";
57
+ import { VSwitch as kl } from "vuetify/components/VSwitch";
58
+ import { VTextarea as wl } from "vuetify/components/VTextarea";
59
+ import { VTextField as Tl } from "vuetify/components/VTextField";
60
+ import { VTimePicker as Cl } from "vuetify/labs/VTimePicker";
61
61
  /**
62
62
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
63
63
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
@@ -66,14 +66,14 @@ import { VTimePicker as kt } from "vuetify/labs/VTimePicker";
66
66
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
67
67
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
68
68
  */
69
- new Array(256).fill("").map((l, e) => ("0" + e.toString(16)).slice(-2));
69
+ new Array(256).fill("").map((t, e) => ("0" + e.toString(16)).slice(-2));
70
70
  /**
71
71
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
72
72
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
73
73
  */
74
- function wt(l, e) {
75
- const n = l.extraPlugins || [];
76
- return O(E({}, l), {
74
+ function Il(t, e) {
75
+ const n = t.extraPlugins || [];
76
+ return M(N({}, t), {
77
77
  extraPlugins: [
78
78
  ...n,
79
79
  ...e.filter((a) => !n.includes(a))
@@ -84,27 +84,27 @@ function wt(l, e) {
84
84
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
85
85
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
86
86
  */
87
- function Me(l) {
88
- return !!l && /^\d+\.\d+\.\d+/.test(l);
87
+ function ze(t) {
88
+ return !!t && /^\d+\.\d+\.\d+/.test(t);
89
89
  }
90
90
  /**
91
91
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
92
92
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
93
93
  */
94
- function He(l) {
95
- return l ? ["nightly", "alpha", "internal", "nightly-", "staging"].some((e) => l.includes(e)) : !1;
94
+ function Ke(t) {
95
+ return t ? ["nightly", "alpha", "internal", "nightly-", "staging"].some((e) => t.includes(e)) : !1;
96
96
  }
97
- function Tt(l) {
98
- return Me(l) || He(l);
97
+ function Bl(t) {
98
+ return ze(t) || Ke(t);
99
99
  }
100
100
  /**
101
101
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
102
102
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
103
103
  */
104
- function Ct(l) {
105
- if (!Me(l))
106
- throw new Error(`Invalid semantic version: ${l || "<blank>"}.`);
107
- const [e, n, a] = l.split(".");
104
+ function Al(t) {
105
+ if (!ze(t))
106
+ throw new Error(`Invalid semantic version: ${t || "<blank>"}.`);
107
+ const [e, n, a] = t.split(".");
108
108
  return {
109
109
  major: Number.parseInt(e, 10),
110
110
  minor: Number.parseInt(n, 10),
@@ -115,10 +115,10 @@ function Ct(l) {
115
115
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
116
116
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
117
117
  */
118
- function It(l) {
119
- if (He(l))
118
+ function xl(t) {
119
+ if (Ke(t))
120
120
  return 3;
121
- const { major: e } = Ct(l);
121
+ const { major: e } = Al(t);
122
122
  switch (!0) {
123
123
  case e >= 44:
124
124
  return 3;
@@ -132,32 +132,32 @@ function It(l) {
132
132
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
133
133
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
134
134
  */
135
- function Bt() {
136
- const { CKEDITOR_VERSION: l, CKEDITOR: e } = window;
137
- return Tt(l) ? {
135
+ function Sl() {
136
+ const { CKEDITOR_VERSION: t, CKEDITOR: e } = window;
137
+ return Bl(t) ? {
138
138
  source: e ? "cdn" : "npm",
139
- version: l
139
+ version: t
140
140
  } : null;
141
141
  }
142
142
  /**
143
143
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
144
144
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
145
145
  */
146
- function At() {
147
- const l = Bt();
148
- return l ? It(l.version) : null;
146
+ function Dl() {
147
+ const t = Sl();
148
+ return t ? xl(t.version) : null;
149
149
  }
150
150
  /**
151
151
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
152
152
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
153
153
  */
154
- function je(l, e) {
155
- switch (e || (e = At() || void 0), e) {
154
+ function Ge(t, e) {
155
+ switch (e || (e = Dl() || void 0), e) {
156
156
  case 1:
157
157
  case 2:
158
- return l === void 0;
158
+ return t === void 0;
159
159
  case 3:
160
- return l === "GPL";
160
+ return t === "GPL";
161
161
  default:
162
162
  return !1;
163
163
  }
@@ -166,10 +166,10 @@ function je(l, e) {
166
166
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
167
167
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
168
168
  */
169
- function xt(l, e) {
169
+ function $l(t, e) {
170
170
  return function(a) {
171
- je(a.config.get("licenseKey")) || a.on("collectUsageData", (o, { setUsageData: i }) => {
172
- i(`integration.${l}`, e);
171
+ Ge(a.config.get("licenseKey")) || a.on("collectUsageData", (o, { setUsageData: i }) => {
172
+ i(`integration.${t}`, e);
173
173
  });
174
174
  };
175
175
  }
@@ -177,31 +177,31 @@ function xt(l, e) {
177
177
  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
178
178
  * For licensing, see LICENSE.md.
179
179
  */
180
- const St = xt(
180
+ const Nl = $l(
181
181
  "vue",
182
182
  {
183
183
  version: "7.3.0",
184
- frameworkVersion: Ye
184
+ frameworkVersion: et
185
185
  }
186
186
  );
187
187
  /**
188
188
  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
189
189
  * For licensing, see LICENSE.md.
190
190
  */
191
- function Dt(l) {
192
- return je(l.licenseKey) ? l : wt(l, [
191
+ function El(t) {
192
+ return Ge(t.licenseKey) ? t : Il(t, [
193
193
  /**
194
194
  * This part of the code is not executed in open-source implementations using a GPL key.
195
195
  * It only runs when a specific license key is provided. If you are uncertain whether
196
196
  * this applies to your installation, please contact our support team.
197
197
  */
198
- St
198
+ Nl
199
199
  ]);
200
200
  }
201
- const ve = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", Nt = 300, $t = /* @__PURE__ */ L({
201
+ const he = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", Ul = 300, Fl = /* @__PURE__ */ F({
202
202
  name: "CKEditor",
203
203
  __name: "ckeditor",
204
- props: /* @__PURE__ */ Te({
204
+ props: /* @__PURE__ */ Be({
205
205
  editor: {},
206
206
  config: { default: () => ({}) },
207
207
  tagName: { default: "div" },
@@ -211,51 +211,51 @@ const ve = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", Nt = 300, $t =
211
211
  modelValue: { type: String, default: "" },
212
212
  modelModifiers: {}
213
213
  }),
214
- emits: /* @__PURE__ */ Te(["ready", "destroy", "blur", "focus", "input", "update:modelValue"], ["update:modelValue"]),
215
- setup(l, { expose: e, emit: n }) {
216
- const a = qe(l, "modelValue"), o = l, i = n, s = N(), d = N(), f = N();
214
+ emits: /* @__PURE__ */ Be(["ready", "destroy", "blur", "focus", "input", "update:modelValue"], ["update:modelValue"]),
215
+ setup(t, { expose: e, emit: n }) {
216
+ const a = Qe(t, "modelValue"), o = t, i = n, u = $(), f = $(), v = $();
217
217
  e({
218
- instance: d,
219
- lastEditorData: f
220
- }), ie(a, (r) => {
221
- d.value && r !== f.value && d.value.data.set(r);
222
- }), ie(() => o.disabled, (r) => {
223
- r ? d.value.enableReadOnlyMode(ve) : d.value.disableReadOnlyMode(ve);
218
+ instance: f,
219
+ lastEditorData: v
220
+ }), se(a, (r) => {
221
+ f.value && r !== v.value && f.value.data.set(r);
222
+ }), se(() => o.disabled, (r) => {
223
+ r ? f.value.enableReadOnlyMode(he) : f.value.disableReadOnlyMode(he);
224
224
  });
225
- function c() {
225
+ function s() {
226
226
  const r = window.CKEDITOR_VERSION;
227
227
  if (!r)
228
228
  return console.warn('Cannot find the "CKEDITOR_VERSION" in the "window" scope.');
229
- const [p] = r.split(".").map(Number);
230
- p >= 42 || r.startsWith("0.0.0") || console.warn("The <CKEditor> component requires using CKEditor 5 in version 42+ or nightly build.");
229
+ const [d] = r.split(".").map(Number);
230
+ d >= 42 || r.startsWith("0.0.0") || console.warn("The <CKEditor> component requires using CKEditor 5 in version 42+ or nightly build.");
231
231
  }
232
- function u(r) {
233
- const p = tl((v) => {
232
+ function b(r) {
233
+ const d = at((m) => {
234
234
  if (o.disableTwoWayDataBinding)
235
235
  return;
236
- const g = f.value = r.data.get();
237
- i("update:modelValue", g, v, r), i("input", g, v, r);
238
- }, Nt, { leading: !0 });
239
- r.model.document.on("change:data", p), r.editing.view.document.on("focus", (v) => {
240
- i("focus", v, r);
241
- }), r.editing.view.document.on("blur", (v) => {
242
- i("blur", v, r);
236
+ const g = v.value = r.data.get();
237
+ i("update:modelValue", g, m, r), i("input", g, m, r);
238
+ }, Ul, { leading: !0 });
239
+ r.model.document.on("change:data", d), r.editing.view.document.on("focus", (m) => {
240
+ i("focus", m, r);
241
+ }), r.editing.view.document.on("blur", (m) => {
242
+ i("blur", m, r);
243
243
  });
244
244
  }
245
- return c(), Ee(() => {
246
- const r = Dt(
245
+ return s(), Le(() => {
246
+ const r = El(
247
247
  Object.assign({}, o.config)
248
248
  );
249
- a.value && (r.initialData = a.value), o.editor.create(s.value, r).then((p) => {
250
- d.value = Ze(p), u(p), a.value !== r.initialData && p.data.set(a.value), o.disabled && p.enableReadOnlyMode(ve), i("ready", p);
251
- }).catch((p) => {
252
- console.error(p);
249
+ a.value && (r.initialData = a.value), o.editor.create(u.value, r).then((d) => {
250
+ f.value = Je(d), b(d), a.value !== r.initialData && d.data.set(a.value), o.disabled && d.enableReadOnlyMode(he), i("ready", d);
251
+ }).catch((d) => {
252
+ console.error(d);
253
253
  });
254
- }), Ue(() => {
255
- d.value && (d.value.destroy(), d.value = void 0), i("destroy");
256
- }), (r, p) => (h(), C(ee(r.tagName), {
254
+ }), Pe(() => {
255
+ f.value && (f.value.destroy(), f.value = void 0), i("destroy");
256
+ }), (r, d) => (h(), T(te(r.tagName), {
257
257
  ref_key: "element",
258
- ref: s
258
+ ref: u
259
259
  }, null, 512));
260
260
  }
261
261
  });
@@ -264,145 +264,145 @@ const ve = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", Nt = 300, $t =
264
264
  * For licensing, see LICENSE.md.
265
265
  */
266
266
  /* istanbul ignore if -- @preserve */
267
- if (!we.version || !we.version.startsWith("3."))
267
+ if (!Ie.version || !Ie.version.startsWith("3."))
268
268
  throw new Error(
269
269
  "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"
270
270
  );
271
- const Et = {
271
+ const Ll = {
272
272
  /**
273
273
  * Installs the plugin, registering the `<ckeditor>` component.
274
274
  *
275
275
  * @param app The application instance.
276
276
  */
277
- install(l) {
278
- l.component("Ckeditor", $t);
277
+ install(t) {
278
+ t.component("Ckeditor", Fl);
279
279
  }
280
- }, Ut = { class: "label" }, Ft = /* @__PURE__ */ L({
280
+ }, Pl = { class: "label" }, Rl = /* @__PURE__ */ F({
281
281
  __name: "df-label",
282
282
  props: {
283
283
  data: {},
284
284
  label: {}
285
285
  },
286
- setup(l) {
286
+ setup(t) {
287
287
  return (e, n) => {
288
288
  const a = I("v-icon"), o = I("v-img");
289
- return h(), D("div", Ut, [
290
- e.label.icon ? (h(), D(ye, { key: 0 }, [
291
- e.label.iconComponent === "v-icon" ? (h(), C(a, {
289
+ return h(), D("div", Pl, [
290
+ e.label.icon ? (h(), D(ke, { key: 0 }, [
291
+ e.label.iconComponent === "v-icon" ? (h(), T(a, {
292
292
  key: 0,
293
293
  icon: e.label.icon,
294
294
  size: "1.25em"
295
- }, null, 8, ["icon"])) : e.label.iconComponent === "v-img" ? (h(), C(o, {
295
+ }, null, 8, ["icon"])) : e.label.iconComponent === "v-img" ? (h(), T(o, {
296
296
  key: 1,
297
297
  class: "icon",
298
298
  src: e.label.icon
299
- }, null, 8, ["src"])) : (h(), C(ee(e.label.iconComponent), {
299
+ }, null, 8, ["src"])) : (h(), T(te(e.label.iconComponent), {
300
300
  key: 2,
301
301
  src: e.label.icon
302
302
  }, null, 8, ["src"]))
303
- ], 64)) : U("", !0),
304
- he(" " + J(e.data ? e.data.label : e.label.text), 1)
303
+ ], 64)) : E("", !0),
304
+ Ve(" " + ee(e.data ? e.data.label : e.label.text), 1)
305
305
  ]);
306
306
  };
307
307
  }
308
- }), te = (l, e) => {
309
- const n = l.__vccOpts || l;
308
+ }), ne = (t, e) => {
309
+ const n = t.__vccOpts || t;
310
310
  for (const [a, o] of e)
311
311
  n[a] = o;
312
312
  return n;
313
- }, z = /* @__PURE__ */ te(Ft, [["__scopeId", "data-v-0034f29f"]]);
314
- class Lt {
313
+ }, Y = /* @__PURE__ */ ne(Rl, [["__scopeId", "data-v-0034f29f"]]);
314
+ class Ol {
315
315
  constructor(e, n, a = "v-icon") {
316
316
  this.text = e, this.icon = n, this.iconComponent = a;
317
317
  }
318
318
  }
319
- const X = { enabled: void 0 };
320
- function K(l, e) {
321
- const n = T({
319
+ const G = { enabled: void 0 };
320
+ function z(t, e) {
321
+ const n = V({
322
322
  get() {
323
- return l.control ? l.control.value : l.modelValue;
323
+ return t.control ? t.control.value : t.modelValue;
324
324
  },
325
- set(v) {
326
- l.control && (l.control.value = v), e("update:modelValue", v);
325
+ set(m) {
326
+ t.control && (t.control.value = m), e("update:modelValue", m);
327
327
  }
328
328
  });
329
- if (l.control && !(l.control instanceof Se.FieldBase))
329
+ if (t.control && !(t.control instanceof Ne.FieldBase))
330
330
  throw new Error("control prop is not a vue-form control instance");
331
- const a = T(() => l.control ? l.control.valid : !0), o = T(
332
- () => l.control ? l.control.errors : (l.errors || []).map((v) => new rl(v))
333
- ), i = T(() => o.value.length > 0 ? " " : void 0), s = T(() => l.control ? l.control.enabled : l.enabled !== !1), d = T(
334
- () => l.control ? l.control.visibility : l.visibility || Se.DisplayMode.FULL
335
- ), f = T(
336
- () => de(l.label || "") ? new Lt(l.label || "") : l.label
337
- ), c = T(() => l.placeholder || ""), u = T(() => l.helpText || ""), r = T(() => l.hint || ""), p = T(() => l.cssClass || "");
331
+ const a = V(() => t.control ? t.control.valid : !0), o = V(
332
+ () => t.control ? t.control.errors : (t.errors || []).map((m) => new ct(m))
333
+ ), i = V(() => o.value.length > 0 ? " " : void 0), u = V(() => t.control ? t.control.enabled : t.enabled !== !1), f = V(
334
+ () => t.control ? t.control.visibility : t.visibility || Ne.DisplayMode.FULL
335
+ ), v = V(
336
+ () => ce(t.label || "") ? new Ol(t.label || "") : t.label
337
+ ), s = V(() => t.placeholder || ""), b = V(() => t.helpText || ""), r = V(() => t.hint || ""), d = V(() => t.cssClass || "");
338
338
  return {
339
339
  value: n,
340
340
  valid: a,
341
- enabled: s,
341
+ enabled: u,
342
342
  errors: o,
343
- visibility: d,
344
- label: f,
345
- vuetifyBindings: T(() => {
346
- var v;
343
+ visibility: f,
344
+ label: v,
345
+ vuetifyBindings: V(() => {
346
+ var m;
347
347
  return {
348
- name: (v = l.control) == null ? void 0 : v.fieldName,
349
- class: p.value,
348
+ name: (m = t.control) == null ? void 0 : m.fieldName,
349
+ class: d.value,
350
350
  density: "default",
351
351
  variant: "underlined",
352
- label: f.value.text,
352
+ label: v.value.text,
353
353
  messages: i.value,
354
354
  // 'error-count': errors?.value.length || 0,
355
- readonly: !s.value,
356
- disabled: !s.value,
357
- placeholder: c.value,
358
- "persistent-placeholder": !nl(c.value),
355
+ readonly: !u.value,
356
+ disabled: !u.value,
357
+ placeholder: s.value,
358
+ "persistent-placeholder": !it(s.value),
359
359
  hint: r.value,
360
360
  persistentHint: !0,
361
361
  // we want persistent hint always
362
362
  hideDetails: "auto",
363
363
  // we want to hide the hint element when hint isn't there
364
- helpText: u.value
364
+ helpText: b.value
365
365
  };
366
366
  })
367
367
  };
368
368
  }
369
- const Pt = {
369
+ const Ml = {
370
370
  key: 0,
371
371
  class: "custom-error-display text-error"
372
- }, Rt = { key: 0 }, Ot = { key: 1 }, Mt = /* @__PURE__ */ L({
372
+ }, Hl = { key: 0 }, jl = { key: 1 }, zl = /* @__PURE__ */ F({
373
373
  __name: "messages-widget",
374
374
  props: {
375
375
  errors: {},
376
376
  message: {}
377
377
  },
378
- setup(l) {
379
- return (e, n) => e.message === " " ? (h(), D("div", Pt, [
380
- (h(!0), D(ye, null, Fe(e.errors, (a, o) => {
378
+ setup(t) {
379
+ return (e, n) => e.message === " " ? (h(), D("div", Ml, [
380
+ (h(!0), D(ke, null, Re(e.errors, (a, o) => {
381
381
  var i;
382
382
  return h(), D("div", {
383
383
  key: o,
384
- class: se({ "first-error": o === 0, "last-error": o === e.errors.length - 1 })
384
+ class: re({ "first-error": o === 0, "last-error": o === e.errors.length - 1 })
385
385
  }, [
386
- a.componentName === "template" ? (h(), D("div", Rt, J(a.componentBody), 1)) : a.componentName === "vue-markdown" ? (h(), C(t(dl), {
386
+ a.componentName === "template" ? (h(), D("div", Hl, ee(a.componentBody), 1)) : a.componentName === "vue-markdown" ? (h(), T(l(pt), {
387
387
  key: 1,
388
388
  source: (i = a.componentBindings) == null ? void 0 : i.source
389
- }, null, 8, ["source"])) : (h(), C(ee(a.componentName), H({
389
+ }, null, 8, ["source"])) : (h(), T(te(a.componentName), j({
390
390
  key: 2,
391
391
  ref_for: !0
392
392
  }, a.componentBindings), {
393
393
  default: y(() => [
394
- he(J(a.componentBody), 1)
394
+ Ve(ee(a.componentBody), 1)
395
395
  ]),
396
396
  _: 2
397
397
  }, 1040))
398
398
  ], 2);
399
399
  }), 128))
400
- ])) : (h(), D("span", Ot, J(e.message), 1));
400
+ ])) : (h(), D("span", jl, ee(e.message), 1));
401
401
  }
402
- }), Z = /* @__PURE__ */ te(Mt, [["__scopeId", "data-v-ff7a8b63"]]), Ht = {
402
+ }), Q = /* @__PURE__ */ ne(zl, [["__scopeId", "data-v-ff7a8b63"]]), Kl = {
403
403
  key: 0,
404
404
  for: "#following-v-input"
405
- }, Ve = /* @__PURE__ */ L({
405
+ }, Te = /* @__PURE__ */ F({
406
406
  __name: "input-base",
407
407
  props: {
408
408
  control: {},
@@ -418,47 +418,47 @@ const Pt = {
418
418
  clearable: { type: Boolean }
419
419
  },
420
420
  emits: ["update:modelValue", "click:clear"],
421
- setup(l, { emit: e }) {
422
- const n = l, a = e, { errors: o, label: i, value: s, visibility: d, vuetifyBindings: f } = K(n, a), c = T(() => t(n.clearable) && t(s));
423
- return (u, r) => {
424
- const p = I("v-icon"), v = I("v-input");
425
- return t(d) !== t(M).SUPPRESS ? (h(), D("div", {
421
+ setup(t, { emit: e }) {
422
+ const n = t, a = e, { errors: o, label: i, value: u, visibility: f, vuetifyBindings: v } = z(n, a), s = V(() => l(n.clearable) && l(u));
423
+ return (b, r) => {
424
+ const d = I("v-icon"), m = I("v-input");
425
+ return l(f) !== l(H).SUPPRESS ? (h(), D("div", {
426
426
  key: 0,
427
- class: se([
428
- u.cssClass,
427
+ class: re([
428
+ b.cssClass,
429
429
  {
430
- "d-none": t(d) === t(M).HIDDEN,
431
- invisible: t(d) === t(M).INVISIBLE
430
+ "d-none": l(f) === l(H).HIDDEN,
431
+ invisible: l(f) === l(H).INVISIBLE
432
432
  }
433
433
  ])
434
434
  }, [
435
- t(f).label ? (h(), D("label", Ht, [
436
- V(z, { label: t(i) }, null, 8, ["label"])
437
- ])) : U("", !0),
438
- V(v, {
439
- hint: t(f).hint,
440
- "persistent-hint": t(f).persistentHint,
441
- "hide-details": t(f).hideDetails
442
- }, j({
435
+ l(v).label ? (h(), D("label", Kl, [
436
+ _(Y, { label: l(i) }, null, 8, ["label"])
437
+ ])) : E("", !0),
438
+ _(m, {
439
+ hint: l(v).hint,
440
+ "persistent-hint": l(v).persistentHint,
441
+ "hide-details": l(v).hideDetails
442
+ }, q({
443
443
  message: y(({ message: g }) => [
444
- V(Z, {
444
+ _(Q, {
445
445
  message: g,
446
- errors: t(o)
446
+ errors: l(o)
447
447
  }, null, 8, ["message", "errors"])
448
448
  ]),
449
449
  default: y(() => [
450
- Qe(u.$slots, "default")
450
+ tt(b.$slots, "default")
451
451
  ]),
452
452
  _: 2
453
453
  }, [
454
- c.value ? {
454
+ s.value ? {
455
455
  name: "append",
456
456
  fn: y(() => [
457
- V(p, {
457
+ _(d, {
458
458
  onClick: r[0] || (r[0] = (g) => a("click:clear"))
459
459
  }, {
460
460
  default: y(() => r[1] || (r[1] = [
461
- he("mdi-close-circle")
461
+ Ve("mdi-close-circle")
462
462
  ])),
463
463
  _: 1
464
464
  })
@@ -466,68 +466,68 @@ const Pt = {
466
466
  key: "0"
467
467
  } : void 0
468
468
  ]), 1032, ["hint", "persistent-hint", "hide-details"])
469
- ], 2)) : U("", !0);
469
+ ], 2)) : E("", !0);
470
470
  };
471
471
  }
472
472
  });
473
- var P = /* @__PURE__ */ ((l) => (l[l.BUTTON = 0] = "BUTTON", l[l.TEXT = 1] = "TEXT", l))(P || {});
474
- const De = 0;
475
- ((l) => {
473
+ var P = /* @__PURE__ */ ((t) => (t[t.BUTTON = 0] = "BUTTON", t[t.TEXT = 1] = "TEXT", t))(P || {});
474
+ const Ee = 0;
475
+ ((t) => {
476
476
  function e(o) {
477
- return o.toUpperCase() === "BUTTON" ? 0 : o.toUpperCase() === "TEXT" ? 1 : De;
477
+ return o.toUpperCase() === "BUTTON" ? 0 : o.toUpperCase() === "TEXT" ? 1 : Ee;
478
478
  }
479
- l.fromString = e;
479
+ t.fromString = e;
480
480
  function n(o) {
481
- const i = typeof o == "number" ? o : l.fromString(o);
482
- return Object.values(l).includes(i) ? i : De;
481
+ const i = typeof o == "number" ? o : t.fromString(o);
482
+ return Object.values(t).includes(i) ? i : Ee;
483
483
  }
484
- l.fromAny = n;
484
+ t.fromAny = n;
485
485
  function a(o) {
486
- const i = typeof o == "number" ? o : l.fromString(o);
487
- return Object.values(l).includes(i);
486
+ const i = typeof o == "number" ? o : t.fromString(o);
487
+ return Object.values(t).includes(i);
488
488
  }
489
- l.isDefined = a;
489
+ t.isDefined = a;
490
490
  })(P || (P = {}));
491
491
  Object.freeze(P);
492
- const Ne = ["xs", "sm", "md", "lg", "xl"];
493
- class jt {
492
+ const Ue = ["xs", "sm", "md", "lg", "xl"];
493
+ class Gl {
494
494
  constructor(e) {
495
- oe(this, "_value");
496
- this._value = this.cleanBreakpoint(e, !0), e && Ne.forEach((n) => {
495
+ ae(this, "_value");
496
+ this._value = this.cleanBreakpoint(e, !0), e && Ue.forEach((n) => {
497
497
  const a = this.cleanBreakpoint(e[n]);
498
498
  a && (this._value[n] = a);
499
499
  });
500
500
  }
501
501
  getOptionsForBreakpoint(e) {
502
502
  const n = this.cleanBreakpoint(this._value), a = Object.keys(n);
503
- for (const o of Ne) {
503
+ for (const o of Ue) {
504
504
  const i = this._value[o];
505
- for (const s of a)
506
- (i == null ? void 0 : i[s]) != null && (n[s] = i[s]);
505
+ for (const u of a)
506
+ (i == null ? void 0 : i[u]) != null && (n[u] = i[u]);
507
507
  if (o === e) break;
508
508
  }
509
509
  return n;
510
510
  }
511
511
  }
512
- class zt extends jt {
512
+ class Wl extends Gl {
513
513
  // eslint-disable-next-line class-methods-use-this
514
514
  cleanBreakpoint(e, n = !1) {
515
- if ((!e || !ol(e)) && !n) return null;
515
+ if ((!e || !st(e)) && !n) return null;
516
516
  const a = {};
517
- return n && (a.renderAs = P.BUTTON, a.showLabel = !0, a.showIcon = !0), e && (e.renderAs != null && (a.renderAs = P.fromAny(e.renderAs)), de(e.label) && (a.label = e.label), Ie(e.showLabel) && (a.showLabel = e.showLabel), Ie(e.showIcon) && (a.showIcon = e.showIcon)), Object.keys(a).length ? a : null;
517
+ return n && (a.renderAs = P.BUTTON, a.showLabel = !0, a.showIcon = !0), e && (e.renderAs != null && (a.renderAs = P.fromAny(e.renderAs)), ce(e.label) && (a.label = e.label), xe(e.showLabel) && (a.showLabel = e.showLabel), xe(e.showIcon) && (a.showIcon = e.showIcon)), Object.keys(a).length ? a : null;
518
518
  }
519
519
  }
520
- function $e(l) {
521
- return l.xlAndUp.value ? "xl" : l.lgAndUp.value ? "lg" : l.mdAndUp.value ? "md" : l.smAndUp.value ? "sm" : "xs";
520
+ function Fe(t) {
521
+ return t.xlAndUp.value ? "xl" : t.lgAndUp.value ? "lg" : t.mdAndUp.value ? "md" : t.smAndUp.value ? "sm" : "xs";
522
522
  }
523
- class ue {
523
+ class de {
524
524
  constructor(e, n) {
525
- oe(this, "name");
526
- oe(this, "displayStyle");
527
- oe(this, "formAction");
525
+ ae(this, "name");
526
+ ae(this, "displayStyle");
527
+ ae(this, "formAction");
528
528
  if (e.name == null) throw new Error(`Action name must not be empty ${e}`);
529
- const a = !de(e.label) || e.label.length === 0 ? void 0 : e.label, o = !de(e.icon) || e.icon.length === 0 ? void 0 : e.icon;
530
- this.name = e.name, this.displayStyle = new zt(E({ label: a }, e.displayStyle)), this.formAction = n, this.formAction.icon = o, this.formAction.label = a;
529
+ const a = !ce(e.label) || e.label.length === 0 ? void 0 : e.label, o = !ce(e.icon) || e.icon.length === 0 ? void 0 : e.icon;
530
+ this.name = e.name, this.displayStyle = new Wl(N({ label: a }, e.displayStyle)), this.formAction = n, this.formAction.icon = o, this.formAction.label = a;
531
531
  }
532
532
  get label() {
533
533
  var e;
@@ -548,19 +548,19 @@ class ue {
548
548
  }
549
549
  static makeFormAction(e) {
550
550
  let n;
551
- if (e instanceof ul)
552
- n = fe.create().registerAction(e);
551
+ if (e instanceof mt)
552
+ n = ge.create().registerAction(e);
553
553
  else if (e === void 0)
554
- n = fe.create();
555
- else if (e instanceof fe)
554
+ n = ge.create();
555
+ else if (e instanceof ge)
556
556
  n = e;
557
557
  else
558
558
  throw new Error("actionOrExecuteHandler is not of any of supported types");
559
559
  return n;
560
560
  }
561
561
  static closeAction(e, n) {
562
- return new ue(
563
- E({
562
+ return new de(
563
+ N({
564
564
  name: "close",
565
565
  label: "Close",
566
566
  // TODO: needs translation
@@ -571,8 +571,8 @@ class ue {
571
571
  );
572
572
  }
573
573
  static yesAction(e, n) {
574
- return new ue(
575
- E({
574
+ return new de(
575
+ N({
576
576
  name: "yes",
577
577
  label: "Yes",
578
578
  // TODO: needs translation
@@ -583,8 +583,8 @@ class ue {
583
583
  );
584
584
  }
585
585
  static noAction(e, n) {
586
- return new ue(
587
- E({
586
+ return new de(
587
+ N({
588
588
  name: "no",
589
589
  label: "No",
590
590
  // TODO: needs translation
@@ -595,73 +595,73 @@ class ue {
595
595
  );
596
596
  }
597
597
  }
598
- const Kt = {
598
+ const Xl = {
599
599
  key: 1,
600
600
  style: { width: ".5rem" }
601
- }, Gt = { key: 2 }, Wt = /* @__PURE__ */ L({
601
+ }, ql = { key: 2 }, Zl = /* @__PURE__ */ F({
602
602
  __name: "df-actions",
603
603
  props: {
604
604
  actions: {},
605
605
  buttonSize: { default: "default" },
606
606
  showAsGroup: { default: "no" }
607
607
  },
608
- setup(l) {
609
- const e = l, n = q(e.actions) ? e.actions : N(e.actions), a = sl(), o = T(() => {
610
- const c = {};
611
- c["%breakpoint%"] = $e(a);
612
- for (const u of n.value)
613
- c[u.name] = u.displayStyle.getOptionsForBreakpoint($e(a));
614
- return c;
608
+ setup(t) {
609
+ const e = t, n = Z(e.actions) ? e.actions : $(e.actions), a = dt(), o = V(() => {
610
+ const s = {};
611
+ s["%breakpoint%"] = Fe(a);
612
+ for (const b of n.value)
613
+ s[b.name] = b.displayStyle.getOptionsForBreakpoint(Fe(a));
614
+ return s;
615
615
  });
616
- function i(c) {
617
- var u;
618
- return (u = o.value[c.name].showIcon && c.iconAvailable) != null ? u : !0;
616
+ function i(s) {
617
+ var b;
618
+ return (b = o.value[s.name].showIcon && s.iconAvailable) != null ? b : !0;
619
619
  }
620
- function s(c) {
621
- return o.value[c.name].showLabel && c.labelAvailable ? !0 : !i(c);
620
+ function u(s) {
621
+ return o.value[s.name].showLabel && s.labelAvailable ? !0 : !i(s);
622
622
  }
623
- function d(c) {
624
- var u;
625
- return (u = o.value[c.name].renderAs) != null ? u : P.BUTTON;
623
+ function f(s) {
624
+ var b;
625
+ return (b = o.value[s.name].renderAs) != null ? b : P.BUTTON;
626
626
  }
627
- function f(c) {
628
- var u;
629
- return c.labelAvailable ? (u = c.formAction.label) != null ? u : "" : c.name;
627
+ function v(s) {
628
+ var b;
629
+ return s.labelAvailable ? (b = s.formAction.label) != null ? b : "" : s.name;
630
630
  }
631
- return (c, u) => {
631
+ return (s, b) => {
632
632
  const r = I("v-btn");
633
- return t(n).length > 0 ? (h(), D("div", {
633
+ return l(n).length > 0 ? (h(), D("div", {
634
634
  key: 0,
635
- class: se(["text-end", {
636
- "button-group": c.showAsGroup === "grouped" || c.showAsGroup === "grouped-no-borders",
637
- "with-border": c.showAsGroup === "grouped"
635
+ class: re(["text-end", {
636
+ "button-group": s.showAsGroup === "grouped" || s.showAsGroup === "grouped-no-borders",
637
+ "with-border": s.showAsGroup === "grouped"
638
638
  }])
639
639
  }, [
640
- (h(!0), D(ye, null, Fe(t(n), (p, v) => (h(), C(r, {
641
- key: v,
642
- variant: d(p) === t(P).BUTTON ? "tonal" : "text",
640
+ (h(!0), D(ke, null, Re(l(n), (d, m) => (h(), T(r, {
641
+ key: m,
642
+ variant: f(d) === l(P).BUTTON ? "tonal" : "text",
643
643
  elevation: 0,
644
- class: se(v !== -1 ? "" : "ms-3"),
645
- size: c.buttonSize,
646
- onClick: Je((g) => p.formAction.execute(g), ["stop"])
644
+ class: re(m !== -1 ? "" : "ms-3"),
645
+ size: s.buttonSize,
646
+ onClick: lt((g) => d.formAction.execute(g), ["stop"])
647
647
  }, {
648
648
  default: y(() => [
649
- i(p) ? (h(), C(t(ge), {
649
+ i(d) ? (h(), T(l(_e), {
650
650
  key: 0,
651
651
  class: "action-icon",
652
- name: p.formAction.icon
653
- }, null, 8, ["name"])) : U("", !0),
654
- i(p) && s(p) ? (h(), D("span", Kt)) : U("", !0),
655
- s(p) ? (h(), D("span", Gt, J(f(p)), 1)) : U("", !0)
652
+ name: d.formAction.icon
653
+ }, null, 8, ["name"])) : E("", !0),
654
+ i(d) && u(d) ? (h(), D("span", Xl)) : E("", !0),
655
+ u(d) ? (h(), D("span", ql, ee(v(d)), 1)) : E("", !0)
656
656
  ]),
657
657
  _: 2
658
658
  }, 1032, ["variant", "class", "size", "onClick"]))), 128))
659
- ], 2)) : U("", !0);
659
+ ], 2)) : E("", !0);
660
660
  };
661
661
  }
662
- }), Xt = /* @__PURE__ */ te(Wt, [["__scopeId", "data-v-d7ba6fac"]]), qt = /* @__PURE__ */ L({
662
+ }), Yl = /* @__PURE__ */ ne(Zl, [["__scopeId", "data-v-d7ba6fac"]]), Ql = /* @__PURE__ */ F({
663
663
  __name: "df-checkbox",
664
- props: /* @__PURE__ */ W({
664
+ props: /* @__PURE__ */ K({
665
665
  allowNull: { type: Boolean },
666
666
  control: {},
667
667
  modelValue: {},
@@ -674,46 +674,46 @@ const Kt = {
674
674
  visibility: {},
675
675
  cssClass: {},
676
676
  clearable: { type: Boolean }
677
- }, O(E({}, X), { allowNull: !1 })),
677
+ }, M(N({}, G), { allowNull: !1 })),
678
678
  emits: ["update:modelValue", "click:clear"],
679
- setup(l, { emit: e }) {
680
- const n = l, a = e, { errors: o, label: i, value: s, vuetifyBindings: d } = K(n, a), f = T(() => n.allowNull && s.value == null), c = T({
679
+ setup(t, { emit: e }) {
680
+ const n = t, a = e, { errors: o, label: i, value: u, vuetifyBindings: f } = z(n, a), v = V(() => n.allowNull && u.value == null), s = V({
681
681
  get() {
682
- return s.value;
682
+ return u.value;
683
683
  },
684
684
  set() {
685
685
  }
686
686
  });
687
- function u() {
688
- const r = al(s.value);
689
- r === !0 ? s.value = n.allowNull ? null : !1 : s.value = r === !1;
687
+ function b() {
688
+ const r = rt(u.value);
689
+ r === !0 ? u.value = n.allowNull ? null : !1 : u.value = r === !1;
690
690
  }
691
- return (r, p) => {
692
- const v = I("v-checkbox");
693
- return h(), C(v, H({
694
- modelValue: c.value,
695
- "onUpdate:modelValue": p[0] || (p[0] = (g) => c.value = g)
696
- }, t(d), {
691
+ return (r, d) => {
692
+ const m = I("v-checkbox");
693
+ return h(), T(m, j({
694
+ modelValue: s.value,
695
+ "onUpdate:modelValue": d[0] || (d[0] = (g) => s.value = g)
696
+ }, l(f), {
697
697
  density: "compact",
698
- indeterminate: f.value,
698
+ indeterminate: v.value,
699
699
  "false-value": !1,
700
700
  "true-value": !0,
701
- onChange: u
702
- }), j({
701
+ onChange: b
702
+ }), q({
703
703
  message: y(({ message: g }) => [
704
- V(t(Z), {
704
+ _(l(Q), {
705
705
  message: g,
706
- errors: t(o)
706
+ errors: l(o)
707
707
  }, null, 8, ["message", "errors"])
708
708
  ]),
709
709
  _: 2
710
710
  }, [
711
- t(i).icon ? {
711
+ l(i).icon ? {
712
712
  name: "label",
713
713
  fn: y((g) => [
714
- V(t(z), {
714
+ _(l(Y), {
715
715
  data: g,
716
- label: t(i)
716
+ label: l(i)
717
717
  }, null, 8, ["data", "label"])
718
718
  ]),
719
719
  key: "0"
@@ -721,9 +721,9 @@ const Kt = {
721
721
  ]), 1040, ["modelValue", "indeterminate"]);
722
722
  };
723
723
  }
724
- }), Zt = /* @__PURE__ */ L({
724
+ }), Jl = /* @__PURE__ */ F({
725
725
  __name: "df-color",
726
- props: /* @__PURE__ */ W({
726
+ props: /* @__PURE__ */ K({
727
727
  allowNull: { type: Boolean },
728
728
  control: {},
729
729
  modelValue: {},
@@ -736,44 +736,44 @@ const Kt = {
736
736
  visibility: {},
737
737
  cssClass: {},
738
738
  clearable: { type: Boolean }
739
- }, O(E({}, X), { allowNull: !1 })),
739
+ }, M(N({}, G), { allowNull: !1 })),
740
740
  emits: ["update:modelValue", "click:clear"],
741
- setup(l, { emit: e }) {
742
- const n = l, a = e, { errors: o, label: i, value: s, vuetifyBindings: d } = K(n, a), f = N(!1), c = T(() => [
743
- (u) => n.control || !u && n.allowNull || /^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$/.test(u) ? !0 : "Not a valid hex string."
741
+ setup(t, { emit: e }) {
742
+ const n = t, a = e, { errors: o, label: i, value: u, vuetifyBindings: f } = z(n, a), v = $(!1), s = V(() => [
743
+ (b) => n.control || !b && n.allowNull || /^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$/.test(b) ? !0 : "Not a valid hex string."
744
744
  ]);
745
- return (u, r) => {
746
- const p = I("v-color-picker"), v = I("v-menu"), g = I("v-text-field");
747
- return h(), C(g, H({
748
- modelValue: t(s),
749
- "onUpdate:modelValue": r[2] || (r[2] = (k) => q(s) ? s.value = k : null)
750
- }, t(d), {
751
- clearable: u.allowNull,
745
+ return (b, r) => {
746
+ const d = I("v-color-picker"), m = I("v-menu"), g = I("v-text-field");
747
+ return h(), T(g, j({
748
+ modelValue: l(u),
749
+ "onUpdate:modelValue": r[2] || (r[2] = (k) => Z(u) ? u.value = k : null)
750
+ }, l(f), {
751
+ clearable: b.allowNull,
752
752
  type: "text",
753
- rules: c.value
754
- }), j({
753
+ rules: s.value
754
+ }), q({
755
755
  message: y(({ message: k }) => [
756
- V(t(Z), {
756
+ _(l(Q), {
757
757
  message: k,
758
- errors: t(o)
758
+ errors: l(o)
759
759
  }, null, 8, ["message", "errors"])
760
760
  ]),
761
761
  "prepend-inner": y(() => [
762
762
  le("div", {
763
- style: _e([{ width: "24px", height: "24px", "border-radius": "4px", border: "1px solid #ccc" }, { backgroundColor: t(s) }])
763
+ style: we([{ width: "24px", height: "24px", "border-radius": "4px", border: "1px solid #ccc" }, { backgroundColor: l(u) }])
764
764
  }, null, 4)
765
765
  ]),
766
766
  default: y(() => [
767
- V(v, {
768
- modelValue: f.value,
769
- "onUpdate:modelValue": r[1] || (r[1] = (k) => f.value = k),
767
+ _(m, {
768
+ modelValue: v.value,
769
+ "onUpdate:modelValue": r[1] || (r[1] = (k) => v.value = k),
770
770
  "close-on-content-click": !1,
771
771
  activator: "parent"
772
772
  }, {
773
773
  default: y(() => [
774
- V(p, {
775
- modelValue: t(s),
776
- "onUpdate:modelValue": r[0] || (r[0] = (k) => q(s) ? s.value = k : null),
774
+ _(d, {
775
+ modelValue: l(u),
776
+ "onUpdate:modelValue": r[0] || (r[0] = (k) => Z(u) ? u.value = k : null),
777
777
  mode: "hexa"
778
778
  }, null, 8, ["modelValue"])
779
779
  ]),
@@ -782,12 +782,12 @@ const Kt = {
782
782
  ]),
783
783
  _: 2
784
784
  }, [
785
- t(i).icon ? {
785
+ l(i).icon ? {
786
786
  name: "label",
787
787
  fn: y((k) => [
788
- V(t(z), {
788
+ _(l(Y), {
789
789
  data: k,
790
- label: t(i)
790
+ label: l(i)
791
791
  }, null, 8, ["data", "label"])
792
792
  ]),
793
793
  key: "0"
@@ -795,9 +795,9 @@ const Kt = {
795
795
  ]), 1040, ["modelValue", "clearable", "rules"]);
796
796
  };
797
797
  }
798
- }), Yt = { class: "d-flex w-100" }, Qt = /* @__PURE__ */ L({
798
+ }), en = { class: "d-flex w-100" }, tn = /* @__PURE__ */ F({
799
799
  __name: "df-datetime",
800
- props: /* @__PURE__ */ W({
800
+ props: /* @__PURE__ */ K({
801
801
  inputType: {},
802
802
  displayFormatDate: {},
803
803
  displayFormatTime: {},
@@ -812,230 +812,211 @@ const Kt = {
812
812
  visibility: {},
813
813
  cssClass: {},
814
814
  clearable: { type: Boolean }
815
- }, O(E({}, X), {
815
+ }, M(N({}, G), {
816
816
  inputType: "datetime",
817
817
  displayFormatDate: "P",
818
818
  displayFormatTime: "p"
819
819
  })),
820
820
  emits: ["update:modelValue", "click:clear"],
821
- setup(l, { emit: e }) {
822
- const n = l, a = e, { label: o, value: i, vuetifyBindings: s } = K(n, a), { inputType: d, displayFormatDate: f, displayFormatTime: c } = me(n), u = N(""), r = T({
821
+ setup(t, { emit: e }) {
822
+ const n = t, a = e, { value: o, vuetifyBindings: i } = z(n, a), { inputType: u, displayFormatDate: f, displayFormatTime: v } = pe(n), s = $(""), b = V({
823
823
  get() {
824
- return t(u) === "date";
824
+ return l(s) === "date";
825
825
  },
826
- set(_) {
827
- u.value = _ ? "date" : "";
826
+ set(c) {
827
+ s.value = c ? "date" : "";
828
828
  }
829
- }), p = T({
829
+ }), r = V({
830
830
  get() {
831
- return t(u) === "time";
831
+ return l(s) === "time";
832
832
  },
833
- set(_) {
834
- u.value = _ ? "time" : "";
833
+ set(c) {
834
+ s.value = c ? "time" : "";
835
835
  }
836
- }), v = (_) => `${ae(_, "yyyy-MM-dd")}T${ae(_, "HH:mm")}:00`, g = N(null);
837
- function k(_, m) {
838
- if (_ == null)
839
- g.value = null;
840
- else if (m === -1)
841
- if (t(d) === "time")
842
- g.value = v(/* @__PURE__ */ new Date()), k(`T${_}`, 1);
836
+ }), d = (c) => `${ie(c, "yyyy-MM-dd")}T${ie(c, "HH:mm")}:00`, m = $(null);
837
+ function g(c, p) {
838
+ if (c == null)
839
+ m.value = null;
840
+ else if (p === -1)
841
+ if (l(u) === "time")
842
+ m.value = d(/* @__PURE__ */ new Date()), g(`T${c}`, 1);
843
843
  else {
844
- const S = v(new Date(_));
845
- k(S, 0), k(S, 1);
844
+ const B = d(new Date(c));
845
+ g(B, 0), g(B, 1);
846
846
  }
847
847
  else {
848
- g.value == null && (g.value = v(/* @__PURE__ */ new Date()));
849
- const S = g.value.split(/[TZ]/g), w = _.split(/[TZ]/g);
850
- S[m] = w[m], g.value = v(/* @__PURE__ */ new Date(`${S[0]}T${S[1].split(".")[0]}`)), t(d) === "date" ? i.value = S[0] : t(d) === "time" ? i.value = S[1] : i.value = t(g) + ae(/* @__PURE__ */ new Date(), "XXX");
848
+ m.value == null && (m.value = d(/* @__PURE__ */ new Date()));
849
+ const B = m.value.split(/[TZ]/g), R = c.split(/[TZ]/g);
850
+ B[p] = R[p], m.value = d(/* @__PURE__ */ new Date(`${B[0]}T${B[1].split(".")[0]}`)), l(u) === "date" ? o.value = B[0] : l(u) === "time" ? o.value = B[1] : o.value = l(m) + ie(/* @__PURE__ */ new Date(), "XXX");
851
851
  }
852
852
  }
853
- ie(i, (_) => k(_, -1), { immediate: !0 });
854
- const $ = T({
853
+ se(o, (c) => g(c, -1), { immediate: !0 });
854
+ const k = V({
855
855
  get() {
856
- const _ = t(g);
857
- if (_ == null) return null;
858
- const m = new Date(_);
859
- return Number.isNaN(m.getTime()) ? null : m;
856
+ const c = l(m);
857
+ if (c == null) return null;
858
+ const p = new Date(c);
859
+ return Number.isNaN(p.getTime()) ? null : p;
860
860
  },
861
- set(_) {
862
- k(v(_), 0);
861
+ set(c) {
862
+ g(d(c), 0);
863
863
  }
864
- }), x = T({
864
+ }), L = V({
865
865
  get() {
866
- const _ = t(g);
867
- return _ == null ? "" : _.split(/[TZ]/g)[1].split(".")[0];
866
+ const c = l(m);
867
+ return c == null ? "" : c.split(/[TZ]/g)[1].split(".")[0];
868
868
  },
869
- set(_) {
870
- k(`T${_}`, 1);
869
+ set(c) {
870
+ g(`T${c}`, 1);
871
871
  }
872
- }), F = T({
872
+ }), S = V({
873
873
  get() {
874
- const _ = t($);
875
- return _ == null ? "" : ae(_, t(f));
874
+ const c = l(k);
875
+ return c == null ? "" : ie(c, l(f));
876
876
  },
877
- set(_) {
877
+ set(c) {
878
878
  try {
879
- const m = cl(_, t(f), /* @__PURE__ */ new Date());
880
- k(v(m), 0);
881
- } catch (m) {
882
- console.error(m);
879
+ const p = ft(c, l(f), /* @__PURE__ */ new Date());
880
+ g(d(p), 0);
881
+ } catch (p) {
882
+ console.error(p);
883
883
  }
884
884
  }
885
- }), B = T({
885
+ }), U = V({
886
886
  get() {
887
- const _ = t($);
888
- return _ == null ? "" : ae(_, t(c));
887
+ const c = l(k);
888
+ return c == null ? "" : ie(c, l(v));
889
889
  },
890
- set(_) {
891
- const m = _.match(/(\d+):(\d+)\s?([a-zA-Z]+)?/);
892
- if (m == null) return;
893
- let S = Be(m[1]);
894
- const w = Be(m[2]);
895
- Ae(S) || Ae(w) || (m[3] && m[3].toLowerCase() === "pm" && S < 13 && (S += 12), k(`T${S.toString().padStart(2, "0")}:${w.toString().padStart(2, "0")}:00`, 1));
890
+ set(c) {
891
+ const p = c.match(/(\d+):(\d+)\s?([a-zA-Z]+)?/);
892
+ if (p == null) return;
893
+ let B = Se(p[1]);
894
+ const R = Se(p[2]);
895
+ De(B) || De(R) || (p[3] && p[3].toLowerCase() === "pm" && B < 13 && (B += 12), g(`T${B.toString().padStart(2, "0")}:${R.toString().padStart(2, "0")}:00`, 1));
896
896
  }
897
897
  });
898
- return (_, m) => {
899
- const S = I("v-date-picker"), w = I("v-confirm-edit"), A = I("v-menu"), G = I("v-text-field"), ne = I("v-time-picker");
900
- return h(), C(t(Ve), H(n, {
898
+ return (c, p) => {
899
+ const B = I("v-date-picker"), R = I("v-confirm-edit"), C = I("v-menu"), A = I("v-text-field"), W = I("v-time-picker");
900
+ return h(), T(l(Te), j(n, {
901
901
  clearable: "",
902
- "onClick:clear": m[14] || (m[14] = (b) => i.value = null)
902
+ "onClick:clear": p[14] || (p[14] = (X) => o.value = null)
903
903
  }), {
904
- default: y(() => [
905
- le("div", Yt, [
906
- ["date", "datetime"].includes(t(d)) ? (h(), C(G, {
907
- key: 0,
908
- modelValue: F.value,
909
- "onUpdate:modelValue": m[4] || (m[4] = (b) => F.value = b),
910
- style: { "flex-grow": "4" },
911
- density: t(s).density,
912
- variant: t(s).variant,
913
- clearable: !1,
914
- "hide-details": !0,
915
- readonly: t(s).readonly,
916
- disabled: t(s).disabled,
917
- name: `${t(s).name}-date`,
918
- onClick: m[5] || (m[5] = (b) => u.value = "date"),
919
- onKeydown: m[6] || (m[6] = Ce((b) => u.value = "date", ["space"]))
920
- }, j({
921
- default: y(() => [
922
- V(A, {
923
- modelValue: r.value,
924
- "onUpdate:modelValue": m[3] || (m[3] = (b) => r.value = b),
925
- "close-on-content-click": !1,
926
- activator: "parent"
927
- }, {
928
- default: y(() => [
929
- V(w, {
930
- modelValue: $.value,
931
- "onUpdate:modelValue": m[0] || (m[0] = (b) => $.value = b),
932
- onCancel: m[1] || (m[1] = (b) => u.value = ""),
933
- onSave: m[2] || (m[2] = (b) => u.value = "")
934
- }, {
935
- default: y(({ model: b, actions: R }) => [
936
- V(S, {
937
- modelValue: b.value,
938
- "onUpdate:modelValue": (Y) => b.value = Y,
939
- "hide-header": !0,
940
- "first-day-of-week": 1,
941
- "show-adjacent-months": !0,
942
- "show-week": !0
943
- }, {
944
- actions: y(() => [
945
- (h(), C(ee(R)))
946
- ]),
947
- _: 2
948
- }, 1032, ["modelValue", "onUpdate:modelValue"])
949
- ]),
950
- _: 1
951
- }, 8, ["modelValue"])
952
- ]),
953
- _: 1
954
- }, 8, ["modelValue"])
955
- ]),
956
- _: 2
957
- }, [
958
- t(o).icon ? {
959
- name: "label",
960
- fn: y((b) => [
961
- V(t(z), {
962
- data: b,
963
- label: t(o)
964
- }, null, 8, ["data", "label"])
904
+ default: y(() => {
905
+ var X, x, O, oe;
906
+ return [
907
+ le("div", en, [
908
+ ["date", "datetime"].includes(l(u)) ? (h(), T(A, {
909
+ key: 0,
910
+ modelValue: S.value,
911
+ "onUpdate:modelValue": p[4] || (p[4] = (w) => S.value = w),
912
+ style: { "flex-grow": "4" },
913
+ density: (X = c.$attrs.density) != null ? X : l(i).density,
914
+ variant: (x = c.$attrs.variant) != null ? x : l(i).variant,
915
+ clearable: !1,
916
+ "hide-details": !0,
917
+ readonly: l(i).readonly,
918
+ disabled: l(i).disabled,
919
+ name: `${l(i).name}-date`,
920
+ onClick: p[5] || (p[5] = (w) => s.value = "date"),
921
+ onKeydown: p[6] || (p[6] = Ae((w) => s.value = "date", ["space"]))
922
+ }, {
923
+ default: y(() => [
924
+ _(C, {
925
+ modelValue: b.value,
926
+ "onUpdate:modelValue": p[3] || (p[3] = (w) => b.value = w),
927
+ "close-on-content-click": !1,
928
+ activator: "parent"
929
+ }, {
930
+ default: y(() => [
931
+ _(R, {
932
+ modelValue: k.value,
933
+ "onUpdate:modelValue": p[0] || (p[0] = (w) => k.value = w),
934
+ onCancel: p[1] || (p[1] = (w) => s.value = ""),
935
+ onSave: p[2] || (p[2] = (w) => s.value = "")
936
+ }, {
937
+ default: y(({ model: w, actions: fe }) => [
938
+ _(B, {
939
+ modelValue: w.value,
940
+ "onUpdate:modelValue": (ve) => w.value = ve,
941
+ "hide-header": !0,
942
+ "first-day-of-week": 1,
943
+ "show-adjacent-months": !0,
944
+ "show-week": !0
945
+ }, {
946
+ actions: y(() => [
947
+ (h(), T(te(fe)))
948
+ ]),
949
+ _: 2
950
+ }, 1032, ["modelValue", "onUpdate:modelValue"])
951
+ ]),
952
+ _: 1
953
+ }, 8, ["modelValue"])
954
+ ]),
955
+ _: 1
956
+ }, 8, ["modelValue"])
965
957
  ]),
966
- key: "0"
967
- } : void 0
968
- ]), 1032, ["modelValue", "density", "variant", "readonly", "disabled", "name"])) : U("", !0),
969
- ["time", "datetime"].includes(t(d)) ? (h(), C(G, {
970
- key: 1,
971
- modelValue: B.value,
972
- "onUpdate:modelValue": m[11] || (m[11] = (b) => B.value = b),
973
- style: { "flex-grow": "3" },
974
- density: t(s).density,
975
- variant: t(s).variant,
976
- clearable: !1,
977
- "hide-details": !0,
978
- readonly: t(s).readonly,
979
- disabled: t(s).disabled,
980
- name: `${t(s).name}-time`,
981
- onClick: m[12] || (m[12] = (b) => u.value = "time"),
982
- onKeydown: m[13] || (m[13] = Ce((b) => u.value = "time", ["space"]))
983
- }, j({
984
- default: y(() => [
985
- V(A, {
986
- modelValue: p.value,
987
- "onUpdate:modelValue": m[10] || (m[10] = (b) => p.value = b),
988
- "close-on-content-click": !1,
989
- activator: "parent"
990
- }, {
991
- default: y(() => [
992
- V(w, {
993
- modelValue: x.value,
994
- "onUpdate:modelValue": m[7] || (m[7] = (b) => x.value = b),
995
- onCancel: m[8] || (m[8] = (b) => u.value = ""),
996
- onSave: m[9] || (m[9] = (b) => u.value = "")
997
- }, {
998
- default: y(({ model: b, actions: R }) => [
999
- V(ne, {
1000
- modelValue: b.value,
1001
- "onUpdate:modelValue": (Y) => b.value = Y,
1002
- "hide-header": !0,
1003
- format: "24hr"
1004
- }, {
1005
- actions: y(() => [
1006
- (h(), C(ee(R)))
1007
- ]),
1008
- _: 2
1009
- }, 1032, ["modelValue", "onUpdate:modelValue"])
1010
- ]),
1011
- _: 1
1012
- }, 8, ["modelValue"])
1013
- ]),
1014
- _: 1
1015
- }, 8, ["modelValue"])
1016
- ]),
1017
- _: 2
1018
- }, [
1019
- t(o).icon ? {
1020
- name: "label",
1021
- fn: y((b) => [
1022
- V(t(z), {
1023
- data: b,
1024
- label: t(o)
1025
- }, null, 8, ["data", "label"])
958
+ _: 1
959
+ }, 8, ["modelValue", "density", "variant", "readonly", "disabled", "name"])) : E("", !0),
960
+ ["time", "datetime"].includes(l(u)) ? (h(), T(A, {
961
+ key: 1,
962
+ modelValue: U.value,
963
+ "onUpdate:modelValue": p[11] || (p[11] = (w) => U.value = w),
964
+ style: { "flex-grow": "3" },
965
+ density: (O = c.$attrs.density) != null ? O : l(i).density,
966
+ variant: (oe = c.$attrs.variant) != null ? oe : l(i).variant,
967
+ clearable: !1,
968
+ "hide-details": !0,
969
+ readonly: l(i).readonly,
970
+ disabled: l(i).disabled,
971
+ name: `${l(i).name}-time`,
972
+ onClick: p[12] || (p[12] = (w) => s.value = "time"),
973
+ onKeydown: p[13] || (p[13] = Ae((w) => s.value = "time", ["space"]))
974
+ }, {
975
+ default: y(() => [
976
+ _(C, {
977
+ modelValue: r.value,
978
+ "onUpdate:modelValue": p[10] || (p[10] = (w) => r.value = w),
979
+ "close-on-content-click": !1,
980
+ activator: "parent"
981
+ }, {
982
+ default: y(() => [
983
+ _(R, {
984
+ modelValue: L.value,
985
+ "onUpdate:modelValue": p[7] || (p[7] = (w) => L.value = w),
986
+ onCancel: p[8] || (p[8] = (w) => s.value = ""),
987
+ onSave: p[9] || (p[9] = (w) => s.value = "")
988
+ }, {
989
+ default: y(({ model: w, actions: fe }) => [
990
+ _(W, {
991
+ modelValue: w.value,
992
+ "onUpdate:modelValue": (ve) => w.value = ve,
993
+ "hide-header": !0,
994
+ format: "24hr"
995
+ }, {
996
+ actions: y(() => [
997
+ (h(), T(te(fe)))
998
+ ]),
999
+ _: 2
1000
+ }, 1032, ["modelValue", "onUpdate:modelValue"])
1001
+ ]),
1002
+ _: 1
1003
+ }, 8, ["modelValue"])
1004
+ ]),
1005
+ _: 1
1006
+ }, 8, ["modelValue"])
1026
1007
  ]),
1027
- key: "0"
1028
- } : void 0
1029
- ]), 1032, ["modelValue", "density", "variant", "readonly", "disabled", "name"])) : U("", !0)
1030
- ])
1031
- ]),
1008
+ _: 1
1009
+ }, 8, ["modelValue", "density", "variant", "readonly", "disabled", "name"])) : E("", !0)
1010
+ ])
1011
+ ];
1012
+ }),
1032
1013
  _: 1
1033
1014
  }, 16);
1034
1015
  };
1035
1016
  }
1036
- }), Jt = { style: { position: "relative", width: "100%" } }, en = /* @__PURE__ */ L({
1017
+ }), ln = { style: { position: "relative", width: "100%" } }, nn = /* @__PURE__ */ F({
1037
1018
  __name: "df-file",
1038
- props: /* @__PURE__ */ W({
1019
+ props: /* @__PURE__ */ K({
1039
1020
  comms: {},
1040
1021
  control: {},
1041
1022
  modelValue: {},
@@ -1048,75 +1029,75 @@ const Kt = {
1048
1029
  visibility: {},
1049
1030
  cssClass: {},
1050
1031
  clearable: { type: Boolean }
1051
- }, X),
1032
+ }, G),
1052
1033
  emits: ["update:modelValue", "click:clear"],
1053
- setup(l, { emit: e }) {
1054
- const n = l, a = e, { value: o, vuetifyBindings: i } = K(n, a), s = N(null), d = N(null), f = N(0), c = N(Math.round(Math.random() * 1e3)), u = N(), r = T(() => !u.value && o.value ? n.modelValue : "");
1055
- function p() {
1056
- s.value && window.clearInterval(s.value);
1034
+ setup(t, { emit: e }) {
1035
+ const n = t, a = e, { value: o, vuetifyBindings: i } = z(n, a), u = $(null), f = $(null), v = $(0), s = $(Math.round(Math.random() * 1e3)), b = $(), r = V(() => !b.value && o.value ? n.modelValue : "");
1036
+ function d() {
1037
+ u.value && window.clearInterval(u.value);
1057
1038
  }
1058
- function v() {
1059
- p(), s.value = window.setInterval(() => {
1039
+ function m() {
1040
+ d(), u.value = window.setInterval(() => {
1060
1041
  o.value && n.comms.touch(o.value);
1061
1042
  }, 60 * 1e3);
1062
1043
  }
1063
- Ue(() => p()), ie(o, (x) => {
1064
- x ? v() : p();
1044
+ Pe(() => d()), se(o, (S) => {
1045
+ S ? m() : d();
1065
1046
  });
1066
1047
  function g() {
1067
- return re(this, null, function* () {
1068
- o.value && (yield n.comms.delete(o.value)), o.value = null, f.value = 0, c.value = Math.round(Math.random() * 1e3), d.value = null, u.value = null, p();
1048
+ return ue(this, null, function* () {
1049
+ o.value && (yield n.comms.delete(o.value)), o.value = null, v.value = 0, s.value = Math.round(Math.random() * 1e3), f.value = null, b.value = null, d();
1069
1050
  });
1070
1051
  }
1071
- function k(x) {
1072
- return re(this, null, function* () {
1073
- f.value = -1, d.value = x;
1052
+ function k(S) {
1053
+ return ue(this, null, function* () {
1054
+ v.value = -1, f.value = S;
1074
1055
  try {
1075
1056
  o.value = yield n.comms.upload(
1076
- x,
1077
- (F, B) => {
1078
- f.value = Math.round(F * 100 / B);
1057
+ S,
1058
+ (U, c) => {
1059
+ v.value = Math.round(U * 100 / c);
1079
1060
  }
1080
- ), f.value = 100, v();
1081
- } catch (F) {
1082
- throw f.value = 0, d.value = null, c.value = Math.round(Math.random() * 1e3), u.value = null, F;
1061
+ ), v.value = 100, m();
1062
+ } catch (U) {
1063
+ throw v.value = 0, f.value = null, s.value = Math.round(Math.random() * 1e3), b.value = null, U;
1083
1064
  }
1084
1065
  });
1085
1066
  }
1086
- function $(x) {
1087
- x && (Array.isArray(x) ? console.error("Uploading multiple files not supported right now") : k(x));
1067
+ function L(S) {
1068
+ S && (Array.isArray(S) ? console.error("Uploading multiple files not supported right now") : k(S));
1088
1069
  }
1089
- return (x, F) => {
1090
- const B = I("v-progress-linear"), _ = I("v-file-input");
1091
- return h(), C(t(Ve), H(n, {
1070
+ return (S, U) => {
1071
+ const c = I("v-progress-linear"), p = I("v-file-input");
1072
+ return h(), T(l(Te), j(n, {
1092
1073
  clearable: "",
1093
1074
  "onClick:clear": g
1094
1075
  }), {
1095
1076
  default: y(() => [
1096
- le("div", Jt, [
1097
- d.value && f.value < 100 ? (h(), C(B, {
1077
+ le("div", ln, [
1078
+ f.value && v.value < 100 ? (h(), T(c, {
1098
1079
  key: 0,
1099
- "model-value": f.value,
1100
- indeterminate: f.value === -1,
1080
+ "model-value": v.value,
1081
+ indeterminate: v.value === -1,
1101
1082
  height: "10",
1102
1083
  style: { position: "absolute", top: "50%", transform: "translateY(-50%)", width: "100%" }
1103
- }, null, 8, ["model-value", "indeterminate"])) : U("", !0),
1104
- V(_, {
1105
- modelValue: u.value,
1084
+ }, null, 8, ["model-value", "indeterminate"])) : E("", !0),
1085
+ _(p, {
1086
+ modelValue: b.value,
1106
1087
  "onUpdate:modelValue": [
1107
- F[0] || (F[0] = (m) => u.value = m),
1108
- $
1088
+ U[0] || (U[0] = (B) => b.value = B),
1089
+ L
1109
1090
  ],
1110
1091
  label: r.value,
1111
- density: t(i).density,
1112
- variant: t(i).variant,
1113
- readonly: t(i).readonly,
1114
- disabled: t(i).disabled,
1115
- name: t(i).name,
1092
+ density: l(i).density,
1093
+ variant: l(i).variant,
1094
+ readonly: l(i).readonly,
1095
+ disabled: l(i).disabled,
1096
+ name: l(i).name,
1116
1097
  "hide-details": !0,
1117
1098
  "show-size": !0,
1118
1099
  multiple: !1,
1119
- style: _e(d.value && f.value < 100 ? "visibility: hidden" : ""),
1100
+ style: we(f.value && v.value < 100 ? "visibility: hidden" : ""),
1120
1101
  clearable: !1
1121
1102
  }, null, 8, ["modelValue", "label", "density", "variant", "readonly", "disabled", "name", "style"])
1122
1103
  ])
@@ -1125,9 +1106,9 @@ const Kt = {
1125
1106
  }, 16);
1126
1107
  };
1127
1108
  }
1128
- }), ln = { class: "container" }, tn = /* @__PURE__ */ L({
1109
+ }), on = { class: "container" }, an = /* @__PURE__ */ F({
1129
1110
  __name: "df-input",
1130
- props: /* @__PURE__ */ W({
1111
+ props: /* @__PURE__ */ K({
1131
1112
  inputType: {},
1132
1113
  precision: {},
1133
1114
  step: {},
@@ -1144,7 +1125,7 @@ const Kt = {
1144
1125
  visibility: {},
1145
1126
  cssClass: {},
1146
1127
  clearable: { type: Boolean }
1147
- }, O(E({}, X), {
1128
+ }, M(N({}, G), {
1148
1129
  inputType: "text",
1149
1130
  precision: null,
1150
1131
  step: void 0,
@@ -1152,56 +1133,56 @@ const Kt = {
1152
1133
  max: void 0
1153
1134
  })),
1154
1135
  emits: ["update:modelValue", "click:clear"],
1155
- setup(l, { emit: e }) {
1156
- const n = l, a = e, { errors: o, label: i, value: s, vuetifyBindings: d } = K(n, a), { inputType: f, max: c, min: u, precision: r, step: p } = me(n), v = T(() => f.value === "number"), g = T(() => v.value ? { min: t(u), max: t(c), precision: t(r), step: t(p) } : {});
1157
- return (k, $) => {
1158
- const x = I("v-text-field"), F = I("v-number-input");
1159
- return h(), D("div", ln, [
1160
- v.value ? (h(), C(F, H({
1136
+ setup(t, { emit: e }) {
1137
+ const n = t, a = e, { errors: o, label: i, value: u, vuetifyBindings: f } = z(n, a), { inputType: v, max: s, min: b, precision: r, step: d } = pe(n), m = V(() => v.value === "number"), g = V(() => m.value ? { min: l(b), max: l(s), precision: l(r), step: l(d) } : {});
1138
+ return (k, L) => {
1139
+ const S = I("v-text-field"), U = I("v-number-input");
1140
+ return h(), D("div", on, [
1141
+ m.value ? (h(), T(U, j({
1161
1142
  key: 1,
1162
- modelValue: t(s),
1163
- "onUpdate:modelValue": $[1] || ($[1] = (B) => q(s) ? s.value = B : null)
1164
- }, E(E({}, t(d)), g.value), {
1143
+ modelValue: l(u),
1144
+ "onUpdate:modelValue": L[1] || (L[1] = (c) => Z(u) ? u.value = c : null)
1145
+ }, N(N({}, l(f)), g.value), {
1165
1146
  density: "compact",
1166
1147
  "control-variant": "stacked"
1167
- }), j({
1168
- message: y(({ message: B }) => [
1169
- V(t(Z), {
1170
- message: B,
1171
- errors: t(o)
1148
+ }), q({
1149
+ message: y(({ message: c }) => [
1150
+ _(l(Q), {
1151
+ message: c,
1152
+ errors: l(o)
1172
1153
  }, null, 8, ["message", "errors"])
1173
1154
  ]),
1174
1155
  _: 2
1175
1156
  }, [
1176
- t(i).icon ? {
1157
+ l(i).icon ? {
1177
1158
  name: "label",
1178
- fn: y((B) => [
1179
- V(t(z), {
1180
- data: B,
1181
- label: t(i)
1159
+ fn: y((c) => [
1160
+ _(l(Y), {
1161
+ data: c,
1162
+ label: l(i)
1182
1163
  }, null, 8, ["data", "label"])
1183
1164
  ]),
1184
1165
  key: "0"
1185
1166
  } : void 0
1186
- ]), 1040, ["modelValue"])) : (h(), C(x, H({
1167
+ ]), 1040, ["modelValue"])) : (h(), T(S, j({
1187
1168
  key: 0,
1188
- modelValue: t(s),
1189
- "onUpdate:modelValue": $[0] || ($[0] = (B) => q(s) ? s.value = B : null)
1190
- }, t(d), { type: t(f) }), j({
1191
- message: y(({ message: B }) => [
1192
- V(t(Z), {
1193
- message: B,
1194
- errors: t(o)
1169
+ modelValue: l(u),
1170
+ "onUpdate:modelValue": L[0] || (L[0] = (c) => Z(u) ? u.value = c : null)
1171
+ }, l(f), { type: l(v) }), q({
1172
+ message: y(({ message: c }) => [
1173
+ _(l(Q), {
1174
+ message: c,
1175
+ errors: l(o)
1195
1176
  }, null, 8, ["message", "errors"])
1196
1177
  ]),
1197
1178
  _: 2
1198
1179
  }, [
1199
- t(i).icon ? {
1180
+ l(i).icon ? {
1200
1181
  name: "label",
1201
- fn: y((B) => [
1202
- V(t(z), {
1203
- data: B,
1204
- label: t(i)
1182
+ fn: y((c) => [
1183
+ _(l(Y), {
1184
+ data: c,
1185
+ label: l(i)
1205
1186
  }, null, 8, ["data", "label"])
1206
1187
  ]),
1207
1188
  key: "0"
@@ -1210,7 +1191,7 @@ const Kt = {
1210
1191
  ]);
1211
1192
  };
1212
1193
  }
1213
- }), nn = /* @__PURE__ */ te(tn, [["__scopeId", "data-v-542e53bc"]]), on = { class: "editor-container" }, an = { class: "editor-container__editor" }, sn = { ref: "editorElement" }, rn = /* @__PURE__ */ L({
1194
+ }), sn = /* @__PURE__ */ ne(an, [["__scopeId", "data-v-542e53bc"]]), rn = { class: "editor-container" }, un = { class: "editor-container__editor" }, dn = { ref: "editorElement" }, cn = /* @__PURE__ */ F({
1214
1195
  __name: "ck-editor-custom",
1215
1196
  props: {
1216
1197
  modelValue: { default: "" },
@@ -1218,11 +1199,11 @@ const Kt = {
1218
1199
  disabled: { type: Boolean, default: !1 }
1219
1200
  },
1220
1201
  emits: ["update:modelValue"],
1221
- setup(l, { expose: e, emit: n }) {
1222
- el((r) => ({
1202
+ setup(t, { expose: e, emit: n }) {
1203
+ nt((r) => ({
1223
1204
  "3d4d5a06": r.minHeight
1224
1205
  }));
1225
- const a = n, o = N(!1), i = Jl, c = {
1206
+ const a = n, o = $(!1), i = ll, s = {
1226
1207
  toolbar: {
1227
1208
  items: [
1228
1209
  "undo",
@@ -1254,47 +1235,47 @@ const Kt = {
1254
1235
  shouldNotGroupWhenFull: !1
1255
1236
  },
1256
1237
  plugins: [
1257
- ml,
1258
- pl,
1259
- fl,
1260
- vl,
1261
- bl,
1262
- gl,
1263
- hl,
1264
- yl,
1265
- _l,
1266
- Vl,
1267
- kl,
1268
- wl,
1269
- Tl,
1270
- Cl,
1271
- Il,
1272
- Bl,
1273
- Al,
1274
- xl,
1275
- Sl,
1276
- Dl,
1277
- Nl,
1278
- $l,
1279
- El,
1280
- Ul,
1281
- Fl,
1282
- Ll,
1283
- Pl,
1284
- Rl,
1285
- Ol,
1286
- Ml,
1287
- Hl,
1288
- jl,
1289
- zl,
1290
- Kl,
1291
- Gl,
1292
- Wl,
1293
- Xl,
1294
- ql,
1295
- Zl,
1296
- Yl,
1297
- Ql
1238
+ vt,
1239
+ bt,
1240
+ gt,
1241
+ ht,
1242
+ yt,
1243
+ _t,
1244
+ Vt,
1245
+ kt,
1246
+ wt,
1247
+ Tt,
1248
+ Ct,
1249
+ It,
1250
+ Bt,
1251
+ At,
1252
+ xt,
1253
+ St,
1254
+ Dt,
1255
+ $t,
1256
+ Nt,
1257
+ Et,
1258
+ Ut,
1259
+ Ft,
1260
+ Lt,
1261
+ Pt,
1262
+ Rt,
1263
+ Ot,
1264
+ Mt,
1265
+ Ht,
1266
+ jt,
1267
+ zt,
1268
+ Kt,
1269
+ Gt,
1270
+ Wt,
1271
+ Xt,
1272
+ qt,
1273
+ Zt,
1274
+ Yt,
1275
+ Qt,
1276
+ Jt,
1277
+ el,
1278
+ tl
1298
1279
  ],
1299
1280
  balloonToolbar: ["bold", "italic", "|", "link", "|", "bulletedList", "numberedList"],
1300
1281
  heading: {
@@ -1353,34 +1334,34 @@ const Kt = {
1353
1334
  },
1354
1335
  table: { contentToolbar: ["tableColumn", "tableRow", "mergeTableCells", "tableProperties", "tableCellProperties"] }
1355
1336
  };
1356
- Ee(() => {
1337
+ Le(() => {
1357
1338
  o.value = !0;
1358
1339
  });
1359
- const u = (r) => {
1340
+ const b = (r) => {
1360
1341
  };
1361
- return e({ onEditorReady: u }), (r, p) => {
1362
- const v = I("ckeditor");
1363
- return h(), D("div", on, [
1364
- le("div", an, [
1365
- le("div", sn, [
1366
- o.value ? (h(), C(v, {
1342
+ return e({ onEditorReady: b }), (r, d) => {
1343
+ const m = I("ckeditor");
1344
+ return h(), D("div", rn, [
1345
+ le("div", un, [
1346
+ le("div", dn, [
1347
+ o.value ? (h(), T(m, {
1367
1348
  key: 0,
1368
1349
  "model-value": r.modelValue,
1369
- editor: t(i),
1370
- config: c,
1350
+ editor: l(i),
1351
+ config: s,
1371
1352
  disabled: r.disabled,
1372
- style: _e(`min-height: ${r.minHeight}`),
1373
- onReady: u,
1374
- "onUpdate:modelValue": p[0] || (p[0] = (g) => a("update:modelValue", g))
1375
- }, null, 8, ["model-value", "editor", "disabled", "style"])) : U("", !0)
1353
+ style: we(`min-height: ${r.minHeight}`),
1354
+ onReady: b,
1355
+ "onUpdate:modelValue": d[0] || (d[0] = (g) => a("update:modelValue", g))
1356
+ }, null, 8, ["model-value", "editor", "disabled", "style"])) : E("", !0)
1376
1357
  ], 512)
1377
1358
  ])
1378
1359
  ]);
1379
1360
  };
1380
1361
  }
1381
- }), un = /* @__PURE__ */ L({
1362
+ }), mn = /* @__PURE__ */ F({
1382
1363
  __name: "df-rtf-editor",
1383
- props: /* @__PURE__ */ W({
1364
+ props: /* @__PURE__ */ K({
1384
1365
  minHeight: {},
1385
1366
  control: {},
1386
1367
  modelValue: {},
@@ -1393,58 +1374,58 @@ const Kt = {
1393
1374
  visibility: {},
1394
1375
  cssClass: {},
1395
1376
  clearable: { type: Boolean }
1396
- }, O(E({}, X), { minHeight: void 0 })),
1377
+ }, M(N({}, G), { minHeight: void 0 })),
1397
1378
  emits: ["update:modelValue", "click:clear"],
1398
- setup(l, { emit: e }) {
1399
- const n = l, a = e, { value: o, vuetifyBindings: i } = K(n, a);
1400
- return (s, d) => (h(), C(t(Ve), Le(Pe(n)), {
1379
+ setup(t, { emit: e }) {
1380
+ const n = t, a = e, { value: o, vuetifyBindings: i } = z(n, a);
1381
+ return (u, f) => (h(), T(l(Te), Oe(Me(n)), {
1401
1382
  default: y(() => [
1402
- V(rn, {
1383
+ _(cn, {
1403
1384
  ref: "$editor",
1404
- modelValue: t(o),
1405
- "onUpdate:modelValue": d[0] || (d[0] = (f) => q(o) ? o.value = f : null),
1406
- "min-height": s.minHeight,
1407
- disabled: t(i).disabled
1385
+ modelValue: l(o),
1386
+ "onUpdate:modelValue": f[0] || (f[0] = (v) => Z(o) ? o.value = v : null),
1387
+ "min-height": u.minHeight,
1388
+ disabled: l(i).disabled
1408
1389
  }, null, 8, ["modelValue", "min-height", "disabled"])
1409
1390
  ]),
1410
1391
  _: 1
1411
1392
  }, 16));
1412
1393
  }
1413
1394
  });
1414
- function dn(l) {
1415
- return l.map((e) => ({ value: e.id, title: e.text, icon: e.icon }));
1395
+ function pn(t) {
1396
+ return t.map((e) => ({ value: e.id, title: e.text, icon: e.icon }));
1416
1397
  }
1417
- function Q(l, e) {
1398
+ function J(t, e) {
1418
1399
  var n;
1419
- return l == null || xe(l) && l.length === 0 ? null : e ? Re(l) : xe(l) ? (n = Oe(l)) != null ? n : null : l;
1400
+ return t == null || $e(t) && t.length === 0 ? null : e ? He(t) : $e(t) ? (n = je(t)) != null ? n : null : t;
1420
1401
  }
1421
- function ce(l, e) {
1402
+ function me(t, e) {
1422
1403
  if (e == null) return [];
1423
- const n = Re(e);
1424
- return l.filter((a) => n.some((o) => o === a.id));
1404
+ const n = He(e);
1405
+ return t.filter((a) => n.some((o) => o === a.id));
1425
1406
  }
1426
- function be(l, e, n, a, o) {
1427
- var s;
1428
- const i = Q(l, n);
1407
+ function ye(t, e, n, a, o) {
1408
+ var u;
1409
+ const i = J(t, n);
1429
1410
  if (i == null) {
1430
1411
  e.value = n ? [] : null;
1431
1412
  return;
1432
1413
  }
1433
1414
  if (n)
1434
- a ? e.value = i : e.value = ce(o, i).map((d) => d.id);
1415
+ a ? e.value = i : e.value = me(o, i).map((f) => f.id);
1435
1416
  else if (a)
1436
1417
  e.value = i;
1437
1418
  else {
1438
- const d = Oe(ce(o, i));
1439
- e.value = (s = d == null ? void 0 : d.id) != null ? s : null;
1419
+ const f = je(me(o, i));
1420
+ e.value = (u = f == null ? void 0 : f.id) != null ? u : null;
1440
1421
  }
1441
1422
  }
1442
- const cn = {
1423
+ const fn = {
1443
1424
  key: 0,
1444
1425
  class: "me-1"
1445
- }, mn = /* @__PURE__ */ L({
1426
+ }, vn = /* @__PURE__ */ F({
1446
1427
  __name: "df-select",
1447
- props: /* @__PURE__ */ W({
1428
+ props: /* @__PURE__ */ K({
1448
1429
  choices: {},
1449
1430
  multiple: { type: Boolean },
1450
1431
  allowTags: { type: Boolean },
@@ -1461,7 +1442,7 @@ const cn = {
1461
1442
  visibility: {},
1462
1443
  cssClass: {},
1463
1444
  clearable: { type: Boolean }
1464
- }, O(E({}, X), {
1445
+ }, M(N({}, G), {
1465
1446
  choices: void 0,
1466
1447
  multiple: !1,
1467
1448
  allowTags: !1,
@@ -1469,144 +1450,144 @@ const cn = {
1469
1450
  fetchChoices: void 0
1470
1451
  })),
1471
1452
  emits: ["update:modelValueDisplay", "update:modelValue", "click:clear"],
1472
- setup(l, { emit: e }) {
1473
- const n = l, { choices: a } = n, { multiple: o, allowTags: i, allowNull: s, cssClass: d, visibility: f } = me(n), c = e, { errors: u, label: r, value: p, vuetifyBindings: v } = K(n, c), g = N(null), k = N(a || []), $ = N(!1), x = T(() => dn(k.value));
1474
- function F(w) {
1475
- c("update:modelValueDisplay", ce(k.value, w));
1453
+ setup(t, { emit: e }) {
1454
+ const n = t, { choices: a } = n, { multiple: o, allowTags: i, allowNull: u, cssClass: f, visibility: v } = pe(n), s = e, { errors: b, label: r, value: d, vuetifyBindings: m } = z(n, s), g = $(null), k = $(a || []), L = $(!1), S = V(() => pn(k.value));
1455
+ function U(C) {
1456
+ s("update:modelValueDisplay", me(k.value, C));
1476
1457
  }
1477
- ie(g, (w) => {
1478
- v.value.readonly || ll(() => {
1479
- const A = Q(w, o.value);
1480
- F(A), p.value = A;
1458
+ se(g, (C) => {
1459
+ m.value.readonly || ot(() => {
1460
+ const A = J(C, o.value);
1461
+ U(A), d.value = A;
1481
1462
  });
1482
1463
  }, { deep: !0 });
1483
- function B() {
1484
- if (v.value.readonly || i.value) return;
1485
- const w = Q(g.value, o.value);
1486
- be(w, g, o.value, !1, k.value), p.value = w;
1464
+ function c() {
1465
+ if (m.value.readonly || i.value) return;
1466
+ const C = J(g.value, o.value);
1467
+ ye(C, g, o.value, !1, k.value), d.value = C;
1487
1468
  }
1488
- function _(w) {
1469
+ function p(C) {
1489
1470
  let A;
1490
- o.value && Array.isArray(g.value) ? A = Q(g.value.filter((G) => G !== w), o.value) : A = null, be(A, g, o.value, !1, k.value), p.value = A;
1471
+ o.value && Array.isArray(g.value) ? A = J(g.value.filter((W) => W !== C), o.value) : A = null, ye(A, g, o.value, !1, k.value), d.value = A;
1491
1472
  }
1492
- function m(w, A) {
1493
- return re(this, null, function* () {
1473
+ function B(C, A) {
1474
+ return ue(this, null, function* () {
1494
1475
  if (!(a || n.fetchChoices === void 0)) {
1495
- $.value = !0;
1476
+ L.value = !0;
1496
1477
  try {
1497
- const G = ce(k.value, Q(g.value, o.value)), ne = yield n.fetchChoices(w, A);
1498
- k.value = il([...G, ...ne], "id");
1478
+ const W = me(k.value, J(g.value, o.value)), X = yield n.fetchChoices(C, A);
1479
+ k.value = ut([...W, ...X], "id");
1499
1480
  } finally {
1500
- $.value = !1;
1481
+ L.value = !1;
1501
1482
  }
1502
1483
  }
1503
1484
  });
1504
1485
  }
1505
- function S() {
1506
- let w = p.value;
1507
- !s.value && w == null && x.value.length && (w = x.value[0].value), w = Q(w, o.value), be(w, g, o.value, i.value, k.value), F(w), p.value = w;
1486
+ function R() {
1487
+ let C = d.value;
1488
+ !u.value && C == null && S.value.length && (C = S.value[0].value), C = J(C, o.value), ye(C, g, o.value, i.value, k.value), U(C), d.value = C;
1508
1489
  }
1509
- return S(), n.fetchChoices !== void 0 && m(void 0, p.value).then(() => {
1510
- S();
1511
- }), (w, A) => {
1512
- const G = I("v-chip"), ne = I("v-list-item");
1513
- return t(f) !== t(M).SUPPRESS ? (h(), C(ee(t(i) ? "v-combobox" : "v-autocomplete"), H({
1490
+ return R(), n.fetchChoices !== void 0 && B(void 0, d.value).then(() => {
1491
+ R();
1492
+ }), (C, A) => {
1493
+ const W = I("v-chip"), X = I("v-list-item");
1494
+ return l(v) !== l(H).SUPPRESS ? (h(), T(te(l(i) ? "v-combobox" : "v-autocomplete"), j({
1514
1495
  key: 0,
1515
1496
  modelValue: g.value,
1516
- "onUpdate:modelValue": A[0] || (A[0] = (b) => g.value = b),
1497
+ "onUpdate:modelValue": A[0] || (A[0] = (x) => g.value = x),
1517
1498
  class: [
1518
- t(d),
1499
+ l(f),
1519
1500
  {
1520
- "d-none": t(f) === t(M).HIDDEN,
1521
- invisible: t(f) === t(M).INVISIBLE
1501
+ "d-none": l(v) === l(H).HIDDEN,
1502
+ invisible: l(v) === l(H).INVISIBLE
1522
1503
  }
1523
1504
  ],
1524
- items: x.value,
1505
+ items: S.value,
1525
1506
  "return-object": !1
1526
- }, t(v), {
1527
- label: t(v).label,
1507
+ }, l(m), {
1508
+ label: l(m).label,
1528
1509
  chips: "",
1529
1510
  "auto-select-first": !0,
1530
- "closable-chips": t(s) || t(o) && g.value.length > 1,
1531
- clearable: t(s),
1532
- multiple: t(o),
1533
- loading: $.value,
1511
+ "closable-chips": l(u) || l(o) && g.value.length > 1,
1512
+ clearable: l(u),
1513
+ multiple: l(o),
1514
+ loading: L.value,
1534
1515
  "hide-selected": !1,
1535
- "aria-describedby": t(v).helpText ? `${t(v).name}-help` : null,
1516
+ "aria-describedby": l(m).helpText ? `${l(m).name}-help` : null,
1536
1517
  "menu-props": { maxHeight: "400" },
1537
1518
  "hide-details": "auto",
1538
- "onUpdate:search": A[1] || (A[1] = (b) => m(b, void 0)),
1539
- "onUpdate:modelValue": B,
1540
- "onClick:clear": A[2] || (A[2] = (b) => g.value = null)
1541
- }), j({
1542
- chip: y(({ item: b }) => [
1543
- (h(), C(G, {
1544
- key: b.value,
1519
+ "onUpdate:search": A[1] || (A[1] = (x) => B(x, void 0)),
1520
+ "onUpdate:modelValue": c,
1521
+ "onClick:clear": A[2] || (A[2] = (x) => g.value = null)
1522
+ }), q({
1523
+ chip: y(({ item: x }) => [
1524
+ (h(), T(W, {
1525
+ key: x.value,
1545
1526
  label: "",
1546
1527
  size: "small",
1547
1528
  class: "d-flex align-middle",
1548
- variant: t(o) ? "tonal" : "text",
1549
- closable: t(o),
1550
- "onClick:close": (R) => _(b.value)
1529
+ variant: l(o) ? "tonal" : "text",
1530
+ closable: l(o),
1531
+ "onClick:close": (O) => p(x.value)
1551
1532
  }, {
1552
1533
  prepend: y(() => {
1553
- var R;
1534
+ var O;
1554
1535
  return [
1555
- (R = b.raw) != null && R.icon ? (h(), C(t(ge), {
1536
+ (O = x.raw) != null && O.icon ? (h(), T(l(_e), {
1556
1537
  key: 0,
1557
1538
  class: "me-1 action-icon d-inline-block",
1558
- name: b.raw.icon
1559
- }, null, 8, ["name"])) : U("", !0)
1539
+ name: x.raw.icon
1540
+ }, null, 8, ["name"])) : E("", !0)
1560
1541
  ];
1561
1542
  }),
1562
1543
  default: y(() => [
1563
1544
  le("span", {
1564
- class: se({ "text-body-1": !t(o) })
1565
- }, J(b.title), 3)
1545
+ class: re({ "text-body-1": !l(o) })
1546
+ }, ee(x.title), 3)
1566
1547
  ]),
1567
1548
  _: 2
1568
1549
  }, 1032, ["variant", "closable", "onClick:close"]))
1569
1550
  ]),
1570
- item: y(({ props: b, item: R }) => [
1571
- V(ne, Le(Pe(b)), {
1551
+ item: y(({ props: x, item: O }) => [
1552
+ _(X, Oe(Me(x)), {
1572
1553
  prepend: y(() => {
1573
- var Y;
1554
+ var oe;
1574
1555
  return [
1575
- (Y = R.raw) != null && Y.icon ? (h(), D("span", cn, [
1576
- V(t(ge), {
1556
+ (oe = O.raw) != null && oe.icon ? (h(), D("span", fn, [
1557
+ _(l(_e), {
1577
1558
  class: "action-icon d-inline-block",
1578
- name: R.raw.icon
1559
+ name: O.raw.icon
1579
1560
  }, null, 8, ["name"])
1580
- ])) : U("", !0)
1561
+ ])) : E("", !0)
1581
1562
  ];
1582
1563
  }),
1583
1564
  _: 2
1584
1565
  }, 1040)
1585
1566
  ]),
1586
- message: y(({ message: b }) => [
1587
- V(t(Z), {
1588
- message: b,
1589
- errors: t(u)
1567
+ message: y(({ message: x }) => [
1568
+ _(l(Q), {
1569
+ message: x,
1570
+ errors: l(b)
1590
1571
  }, null, 8, ["message", "errors"])
1591
1572
  ]),
1592
1573
  _: 2
1593
1574
  }, [
1594
- t(r).icon ? {
1575
+ l(r).icon ? {
1595
1576
  name: "label",
1596
- fn: y((b) => [
1597
- V(t(z), {
1598
- data: b,
1599
- label: t(r)
1577
+ fn: y((x) => [
1578
+ _(l(Y), {
1579
+ data: x,
1580
+ label: l(r)
1600
1581
  }, null, 8, ["data", "label"])
1601
1582
  ]),
1602
1583
  key: "0"
1603
1584
  } : void 0
1604
- ]), 1040, ["modelValue", "class", "items", "label", "closable-chips", "clearable", "multiple", "loading", "aria-describedby"])) : U("", !0);
1585
+ ]), 1040, ["modelValue", "class", "items", "label", "closable-chips", "clearable", "multiple", "loading", "aria-describedby"])) : E("", !0);
1605
1586
  };
1606
1587
  }
1607
- }), pn = /* @__PURE__ */ te(mn, [["__scopeId", "data-v-3d69988d"]]), fn = { class: "container" }, vn = /* @__PURE__ */ L({
1588
+ }), bn = /* @__PURE__ */ ne(vn, [["__scopeId", "data-v-3d69988d"]]), gn = { class: "container" }, hn = /* @__PURE__ */ F({
1608
1589
  __name: "df-text-area",
1609
- props: /* @__PURE__ */ W({
1590
+ props: /* @__PURE__ */ K({
1610
1591
  rows: {},
1611
1592
  maxRows: {},
1612
1593
  control: {},
@@ -1620,119 +1601,119 @@ const cn = {
1620
1601
  visibility: {},
1621
1602
  cssClass: {},
1622
1603
  clearable: { type: Boolean }
1623
- }, O(E({}, X), {
1604
+ }, M(N({}, G), {
1624
1605
  rows: void 0,
1625
1606
  maxRows: void 0
1626
1607
  })),
1627
1608
  emits: ["update:modelValue", "click:clear"],
1628
- setup(l, { emit: e }) {
1629
- const n = l, a = e, { errors: o, label: i, value: s, vuetifyBindings: d } = K(n, a), { cssClass: f, visibility: c } = me(n);
1630
- return (u, r) => {
1631
- const p = I("v-textarea");
1632
- return h(), D("div", fn, [
1633
- t(c) !== t(M).SUPPRESS ? (h(), C(p, H({
1609
+ setup(t, { emit: e }) {
1610
+ const n = t, a = e, { errors: o, label: i, value: u, vuetifyBindings: f } = z(n, a), { cssClass: v, visibility: s } = pe(n);
1611
+ return (b, r) => {
1612
+ const d = I("v-textarea");
1613
+ return h(), D("div", gn, [
1614
+ l(s) !== l(H).SUPPRESS ? (h(), T(d, j({
1634
1615
  key: 0,
1635
- modelValue: t(s),
1636
- "onUpdate:modelValue": r[0] || (r[0] = (v) => q(s) ? s.value = v : null),
1616
+ modelValue: l(u),
1617
+ "onUpdate:modelValue": r[0] || (r[0] = (m) => Z(u) ? u.value = m : null),
1637
1618
  class: [
1638
- t(f),
1619
+ l(v),
1639
1620
  {
1640
- "d-none": t(c) === t(M).HIDDEN,
1641
- invisible: t(c) === t(M).INVISIBLE
1621
+ "d-none": l(s) === l(H).HIDDEN,
1622
+ invisible: l(s) === l(H).INVISIBLE
1642
1623
  }
1643
1624
  ],
1644
- rows: u.rows,
1645
- "auto-grow": (u.maxRows || 0) > 0,
1646
- "max-rows": u.maxRows
1647
- }, t(d)), j({
1648
- message: y(({ message: v }) => [
1649
- V(t(Z), {
1650
- message: v,
1651
- errors: t(o)
1625
+ rows: b.rows,
1626
+ "auto-grow": (b.maxRows || 0) > 0,
1627
+ "max-rows": b.maxRows
1628
+ }, l(f)), q({
1629
+ message: y(({ message: m }) => [
1630
+ _(l(Q), {
1631
+ message: m,
1632
+ errors: l(o)
1652
1633
  }, null, 8, ["message", "errors"])
1653
1634
  ]),
1654
1635
  _: 2
1655
1636
  }, [
1656
- t(i).icon ? {
1637
+ l(i).icon ? {
1657
1638
  name: "label",
1658
- fn: y((v) => [
1659
- V(t(z), {
1660
- data: v,
1661
- label: t(i)
1639
+ fn: y((m) => [
1640
+ _(l(Y), {
1641
+ data: m,
1642
+ label: l(i)
1662
1643
  }, null, 8, ["data", "label"])
1663
1644
  ]),
1664
1645
  key: "0"
1665
1646
  } : void 0
1666
- ]), 1040, ["modelValue", "class", "rows", "auto-grow", "max-rows"])) : U("", !0)
1647
+ ]), 1040, ["modelValue", "class", "rows", "auto-grow", "max-rows"])) : E("", !0)
1667
1648
  ]);
1668
1649
  };
1669
1650
  }
1670
- }), bn = /* @__PURE__ */ te(vn, [["__scopeId", "data-v-3ef7fb16"]]), gn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1651
+ }), yn = /* @__PURE__ */ ne(hn, [["__scopeId", "data-v-3ef7fb16"]]), _n = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1671
1652
  __proto__: null,
1672
- DfActions: Xt,
1673
- DfCheckbox: qt,
1674
- DfColor: Zt,
1675
- DfDateTime: Qt,
1676
- DfFile: en,
1677
- DfInput: nn,
1678
- DfRtfEditor: un,
1679
- DfSelect: pn,
1680
- DfTextArea: bn
1681
- }, Symbol.toStringTag, { value: "Module" })), hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1653
+ DfActions: Yl,
1654
+ DfCheckbox: Ql,
1655
+ DfColor: Jl,
1656
+ DfDateTime: tn,
1657
+ DfFile: nn,
1658
+ DfInput: sn,
1659
+ DfRtfEditor: mn,
1660
+ DfSelect: bn,
1661
+ DfTextArea: yn
1662
+ }, Symbol.toStringTag, { value: "Module" })), Vn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1682
1663
  __proto__: null,
1683
- VAutocomplete: et,
1684
- VBtn: lt,
1685
- VCheckbox: tt,
1686
- VChip: nt,
1687
- VCol: ut,
1688
- VColorPicker: at,
1689
- VCombobox: ot,
1690
- VConfirmEdit: it,
1691
- VDatePicker: st,
1692
- VFileInput: rt,
1693
- VIcon: ct,
1694
- VImg: mt,
1695
- VInput: pt,
1696
- VListItem: ft,
1697
- VMenu: vt,
1698
- VNumberInput: bt,
1699
- VProgressLinear: gt,
1700
- VRow: dt,
1701
- VSelect: ht,
1702
- VSwitch: yt,
1703
- VTextField: Vt,
1704
- VTextarea: _t,
1705
- VTimePicker: kt
1706
- }, Symbol.toStringTag, { value: "Module" })), Zn = {
1707
- install: (l, e) => {
1664
+ VAutocomplete: nl,
1665
+ VBtn: ol,
1666
+ VCheckbox: al,
1667
+ VChip: il,
1668
+ VCol: ml,
1669
+ VColorPicker: rl,
1670
+ VCombobox: sl,
1671
+ VConfirmEdit: ul,
1672
+ VDatePicker: dl,
1673
+ VFileInput: cl,
1674
+ VIcon: fl,
1675
+ VImg: vl,
1676
+ VInput: bl,
1677
+ VListItem: gl,
1678
+ VMenu: hl,
1679
+ VNumberInput: yl,
1680
+ VProgressLinear: _l,
1681
+ VRow: pl,
1682
+ VSelect: Vl,
1683
+ VSwitch: kl,
1684
+ VTextField: Tl,
1685
+ VTextarea: wl,
1686
+ VTimePicker: Cl
1687
+ }, Symbol.toStringTag, { value: "Module" })), Jn = {
1688
+ install: (t, e) => {
1708
1689
  var n, a;
1709
- l.use(Et), (n = e == null ? void 0 : e.registerComponents) != null && n && Object.entries(gn).map(([o, i]) => l.component(o, i)), (a = e == null ? void 0 : e.registerVuetifyComponents) != null && a && Object.entries(hn).map(([o, i]) => l.component(o, i));
1690
+ t.use(Ll), (n = e == null ? void 0 : e.registerComponents) != null && n && Object.entries(_n).map(([o, i]) => t.component(o, i)), (a = e == null ? void 0 : e.registerVuetifyComponents) != null && a && Object.entries(Vn).map(([o, i]) => t.component(o, i));
1710
1691
  }
1711
1692
  };
1712
1693
  export {
1713
- ue as Action,
1694
+ de as Action,
1714
1695
  P as ActionDisplayStyle,
1715
- Xt as DfActions,
1716
- qt as DfCheckbox,
1717
- Zt as DfColor,
1718
- Qt as DfDateTime,
1719
- en as DfFile,
1720
- nn as DfInput,
1721
- z as DfLabel,
1722
- un as DfRtfEditor,
1723
- pn as DfSelect,
1724
- bn as DfTextArea,
1725
- Zn as DynamicFormsInputs,
1726
- Ve as InputBase,
1727
- Lt as Label,
1728
- Z as MessagesWidget,
1729
- zt as ResponsiveLabelRenderOptions,
1730
- jt as ResponsiveRenderOptions,
1731
- hn as VuetifyComponents,
1732
- X as defaultBaseProps,
1733
- De as defaultDisplayStyle,
1734
- $e as getBreakpointName,
1735
- Ne as responsiveBreakpoints,
1736
- K as useInputBase
1696
+ Yl as DfActions,
1697
+ Ql as DfCheckbox,
1698
+ Jl as DfColor,
1699
+ tn as DfDateTime,
1700
+ nn as DfFile,
1701
+ sn as DfInput,
1702
+ Y as DfLabel,
1703
+ mn as DfRtfEditor,
1704
+ bn as DfSelect,
1705
+ yn as DfTextArea,
1706
+ Jn as DynamicFormsInputs,
1707
+ Te as InputBase,
1708
+ Ol as Label,
1709
+ Q as MessagesWidget,
1710
+ Wl as ResponsiveLabelRenderOptions,
1711
+ Gl as ResponsiveRenderOptions,
1712
+ Vn as VuetifyComponents,
1713
+ G as defaultBaseProps,
1714
+ Ee as defaultDisplayStyle,
1715
+ Fe as getBreakpointName,
1716
+ Ue as responsiveBreakpoints,
1717
+ z as useInputBase
1737
1718
  };
1738
1719
  //# sourceMappingURL=dynamicforms-vuetify-inputs.js.map