@signal24/vue-foundation 4.1.1 → 4.2.1

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,16 +1,16 @@
1
- var Le = Object.defineProperty;
2
- var Ie = (e, t, n) => t in e ? Le(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var f = (e, t, n) => (Ie(e, typeof t != "symbol" ? t + "" : t, n), n);
4
- import { defineComponent as M, defineProps as De, defineEmits as He, ref as I, computed as D, openBlock as a, createElementBlock as d, createElementVNode as v, toDisplayString as w, withDirectives as H, createCommentVNode as g, Fragment as $, renderList as W, vModelSelect as $e, reactive as Ae, h as he, markRaw as Be, onMounted as q, onBeforeUnmount as U, getCurrentInstance as fe, createBlock as z, Teleport as Ve, normalizeClass as E, withModifiers as Fe, renderSlot as F, resolveDirective as pe, createSlots as Ne, withCtx as N, unref as R, createTextVNode as J, vModelText as _e, watch as ee, onActivated as me, onDeactivated as ve } from "vue";
5
- import { debounce as Ke, isEqual as ge, upperFirst as Re, startCase as je, cloneDeep as Pe, remove as We } from "lodash";
6
- import { escapeHtml as qe } from "@vue/shared";
7
- import { escapeHtml as $n } from "@vue/shared";
8
- import { format as j } from "date-fns";
9
- const Ue = M({
1
+ var Ce = Object.defineProperty;
2
+ var xe = (e, t, n) => t in e ? Ce(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var f = (e, t, n) => (xe(e, typeof t != "symbol" ? t + "" : t, n), n);
4
+ import { defineComponent as L, defineProps as Ie, defineEmits as He, ref as I, computed as H, openBlock as a, createElementBlock as d, createElementVNode as v, toDisplayString as w, withDirectives as D, createCommentVNode as g, Fragment as $, renderList as P, vModelSelect as De, reactive as $e, h as ue, markRaw as Ae, onMounted as W, onBeforeUnmount as q, getCurrentInstance as he, createBlock as U, Teleport as Be, normalizeClass as E, withModifiers as Ve, renderSlot as F, resolveDirective as fe, createSlots as Fe, withCtx as _, createTextVNode as Q, vModelText as _e, watch as J, onActivated as pe, onDeactivated as me } from "vue";
5
+ import { debounce as Ne, isEqual as ve, upperFirst as Ke, startCase as Re, cloneDeep as je, remove as Pe } from "lodash";
6
+ import { escapeHtml as We } from "@vue/shared";
7
+ import { escapeHtml as Dn } from "@vue/shared";
8
+ import { format as R } from "date-fns";
9
+ const qe = L({
10
10
  setup() {
11
- const e = De();
11
+ const e = Ie();
12
12
  He(["update:modelValue"]);
13
- const t = I(null), n = D(() => t.value ? t.value.map((o) => e.preprocesor ? e.preprocesor(o) : o[e.displayKey ?? ""]) : null), i = I(e.modelValue ?? null);
13
+ const t = I(null), n = H(() => t.value ? t.value.map((o) => e.preprocesor ? e.preprocesor(o) : o[e.displayKey ?? ""]) : null), i = I(e.modelValue ?? null);
14
14
  return { props: e, options: t, renderOptions: n, selectedItem: i };
15
15
  },
16
16
  watch: {
@@ -32,116 +32,116 @@ const Ue = M({
32
32
  this.options = await this.props.loadFn();
33
33
  }
34
34
  }
35
- }), ye = (e, t) => {
35
+ }), ge = (e, t) => {
36
36
  const n = e.__vccOpts || e;
37
37
  for (const [i, s] of t)
38
38
  n[i] = s;
39
39
  return n;
40
- }, ze = {
40
+ }, Ue = {
41
41
  key: 0,
42
42
  disabled: ""
43
- }, Xe = {
43
+ }, ze = {
44
44
  key: 0,
45
45
  value: null
46
- }, Ye = ["value"];
47
- function Ze(e, t, n, i, s, o) {
48
- return e.renderOptions ? H((a(), d("select", {
46
+ }, Xe = ["value"];
47
+ function Ye(e, t, n, i, s, o) {
48
+ return e.renderOptions ? D((a(), d("select", {
49
49
  key: 1,
50
50
  "onUpdate:modelValue": t[0] || (t[0] = (l) => e.selectedItem = l)
51
51
  }, [
52
- e.props.nullText ? (a(), d("option", Xe, w(e.props.nullText), 1)) : g("", !0),
53
- (a(!0), d($, null, W(e.renderOptions, (l, r) => {
52
+ e.props.nullText ? (a(), d("option", ze, w(e.props.nullText), 1)) : g("", !0),
53
+ (a(!0), d($, null, P(e.renderOptions, (l, r) => {
54
54
  var c;
55
55
  return a(), d("option", {
56
56
  key: r,
57
57
  value: (c = e.options) == null ? void 0 : c[r]
58
- }, w(l), 9, Ye);
58
+ }, w(l), 9, Xe);
59
59
  }), 128))
60
60
  ], 512)), [
61
- [$e, e.selectedItem]
62
- ]) : (a(), d("select", ze, [
61
+ [De, e.selectedItem]
62
+ ]) : (a(), d("select", Ue, [
63
63
  v("option", null, w(e.props.loadingText || "Loading..."), 1)
64
64
  ]));
65
65
  }
66
- const an = /* @__PURE__ */ ye(Ue, [["render", Ze]]);
67
- let Ge = 0;
68
- const y = Ae([]), cn = M({
66
+ const rn = /* @__PURE__ */ ge(qe, [["render", Ye]]);
67
+ let Ze = 0;
68
+ const y = $e([]), an = L({
69
69
  setup() {
70
- return () => he("div", { id: "modal-container" }, [
71
- W(y, (e) => e.vnode)
70
+ return () => ue("div", { id: "modal-container" }, [
71
+ P(y, (e) => e.vnode)
72
72
  ]);
73
73
  }
74
74
  });
75
- function Ee(e, t) {
75
+ function ye(e, t) {
76
76
  const n = document.getElementById("vf-modal-target") ?? document.createElement("div");
77
77
  n.id = "vf-modal-target", n.removeAttribute("inert"), document.body.appendChild(n);
78
- const i = Be(e), s = {
79
- id: String(++Ge),
78
+ const i = Ae(e), s = {
79
+ id: String(++Ze),
80
80
  component: i,
81
81
  props: t,
82
- vnode: he(i, t)
82
+ vnode: ue(i, t)
83
83
  };
84
84
  return y.push(s), s;
85
85
  }
86
- function Te(e) {
86
+ function Ee(e) {
87
87
  const t = y.indexOf(e);
88
88
  t >= 0 && y.splice(t, 1);
89
89
  }
90
- function dn(e) {
91
- Oe(e.$);
90
+ function cn(e) {
91
+ Te(e.$);
92
92
  }
93
- function Oe(e) {
93
+ function Te(e) {
94
94
  let t = e;
95
- for (; t && !Qe(t.vnode); )
95
+ for (; t && !Ge(t.vnode); )
96
96
  t = t.parent;
97
97
  }
98
- function Qe(e) {
98
+ function Ge(e) {
99
99
  var n, i;
100
100
  const t = y.findIndex((s) => s.vnode.component === e.component);
101
101
  return t >= 0 ? ((i = (n = y[t].props).callback) == null || i.call(n, void 0), y.splice(t, 1), !0) : !1;
102
102
  }
103
- async function X(e, t) {
103
+ async function z(e, t) {
104
104
  return new Promise((n) => {
105
105
  let i = null;
106
106
  const o = { ...t, callback: (l) => {
107
- Te(i), n(l);
107
+ Ee(i), n(l);
108
108
  } };
109
- i = Ee(e, o);
109
+ i = ye(e, o);
110
110
  });
111
111
  }
112
112
  function A(e, t) {
113
113
  return { title: t ? e : void 0, message: t ?? e };
114
114
  }
115
- async function te(e, t) {
116
- await X(V, A(e, t));
115
+ async function ee(e, t) {
116
+ await z(V, A(e, t));
117
117
  }
118
- async function un(e, t) {
119
- return await X(V, {
118
+ async function dn(e, t) {
119
+ return await z(V, {
120
120
  ...A(e, t),
121
121
  shouldConfirm: !0
122
122
  }) === !0;
123
123
  }
124
- async function hn(e, t) {
125
- return await X(V, {
124
+ async function un(e, t) {
125
+ return await z(V, {
126
126
  ...A(e, t),
127
127
  shouldConfirm: !0,
128
128
  classes: ["destructive"]
129
129
  }) === !0;
130
130
  }
131
- function fn(e, t) {
132
- const n = Ee(V, {
131
+ function hn(e, t) {
132
+ const n = ye(V, {
133
133
  ...A(e, t),
134
134
  callback: () => {
135
135
  }
136
136
  });
137
- return () => Te(n);
137
+ return () => Ee(n);
138
138
  }
139
139
  const C = {
140
140
  unhandledErrorSupportText: "please contact support",
141
141
  errorHandler: (e) => console.error("Unhandled error:", e),
142
142
  defaultDateTimeFormat: "MM/dd/yy HH:mm"
143
143
  };
144
- function pn(e) {
144
+ function fn(e) {
145
145
  Object.assign(C, e);
146
146
  }
147
147
  class B extends Error {
@@ -149,46 +149,46 @@ class B extends Error {
149
149
  super(t), this.name = "UserError";
150
150
  }
151
151
  }
152
- function Je(e) {
152
+ function Qe(e) {
153
153
  return e instanceof B ? e.message : `An application error has occurred:
154
154
 
155
- ${Y(e).message}
155
+ ${X(e).message}
156
156
 
157
157
  Please refresh the page and try again. If this error persists, ${C.unhandledErrorSupportText}.`;
158
158
  }
159
- function Y(e) {
159
+ function X(e) {
160
160
  return e instanceof Error ? e : new Error(String(e));
161
161
  }
162
- async function mn(e, t) {
163
- const n = Y(e);
164
- return n instanceof B || C.errorHandler(n), t ? te(t, n) : te(n);
162
+ async function pn(e, t) {
163
+ const n = X(e);
164
+ return n instanceof B || C.errorHandler(n), t ? ee(t, n) : ee(n);
165
165
  }
166
- async function vn(e) {
167
- const t = Y(e);
166
+ async function mn(e) {
167
+ const t = X(e);
168
168
  t instanceof B || C.errorHandler(t);
169
169
  }
170
- const et = ["id"], tt = {
170
+ const Je = ["id"], et = {
171
171
  key: 0,
172
172
  class: "vf-modal-header"
173
- }, nt = { class: "vf-modal-content" }, it = {
173
+ }, tt = { class: "vf-modal-content" }, nt = {
174
174
  key: 1,
175
175
  class: "vf-modal-footer"
176
- }, st = /* @__PURE__ */ M({
176
+ }, it = /* @__PURE__ */ L({
177
177
  __name: "modal",
178
178
  props: {
179
- id: null,
179
+ id: {},
180
180
  closeOnMaskClick: { type: Boolean },
181
181
  scrolls: { type: Boolean },
182
182
  closeX: { type: Boolean },
183
- class: null
183
+ class: {}
184
184
  },
185
185
  emits: ["formSubmit"],
186
186
  setup(e) {
187
187
  const t = e, n = I();
188
- q(() => {
188
+ W(() => {
189
189
  var l;
190
190
  window.addEventListener("keydown", s), document.body.classList.add("vf-modal-open"), t.closeOnMaskClick && ((l = n.value) == null || l.addEventListener("click", i));
191
- }), U(() => {
191
+ }), q(() => {
192
192
  document.body.querySelectorAll(".vf-modal").length > 0 || document.body.classList.remove("vf-modal-open");
193
193
  });
194
194
  function i(l) {
@@ -201,22 +201,22 @@ const et = ["id"], tt = {
201
201
  }
202
202
  }
203
203
  function o() {
204
- const l = fe();
205
- Oe(l);
204
+ const l = he();
205
+ Te(l);
206
206
  }
207
- return (l, r) => (a(), z(Ve, { to: "#vf-modal-target" }, [
207
+ return (l, r) => (a(), U(Be, { to: "#vf-modal-target" }, [
208
208
  v("div", {
209
- id: e.id,
209
+ id: l.id,
210
210
  class: E(["vf-overlay vf-modal-wrap", t.class]),
211
211
  ref_key: "overlay",
212
212
  ref: n
213
213
  }, [
214
214
  v("form", {
215
215
  action: ".",
216
- class: E(["vf-modal", { scrolls: e.scrolls }]),
217
- onSubmit: r[0] || (r[0] = Fe((c) => l.$emit("formSubmit"), ["prevent"]))
216
+ class: E(["vf-modal", { scrolls: l.scrolls }]),
217
+ onSubmit: r[0] || (r[0] = Ve((c) => l.$emit("formSubmit"), ["prevent"]))
218
218
  }, [
219
- l.$slots.header ? (a(), d("div", tt, [
219
+ l.$slots.header ? (a(), d("div", et, [
220
220
  F(l.$slots, "header"),
221
221
  t.closeX ? (a(), d("i", {
222
222
  key: 0,
@@ -224,76 +224,76 @@ const et = ["id"], tt = {
224
224
  onClick: o
225
225
  })) : g("", !0)
226
226
  ])) : g("", !0),
227
- v("div", nt, [
227
+ v("div", tt, [
228
228
  F(l.$slots, "default")
229
229
  ]),
230
- l.$slots.footer ? (a(), d("div", it, [
230
+ l.$slots.footer ? (a(), d("div", nt, [
231
231
  F(l.$slots, "footer")
232
232
  ])) : g("", !0)
233
233
  ], 34)
234
- ], 10, et)
234
+ ], 10, Je)
235
235
  ]));
236
236
  }
237
237
  });
238
- const ot = ["innerHtml"], lt = ["innerText"], V = /* @__PURE__ */ M({
238
+ const st = ["innerHtml"], ot = ["innerText"], V = /* @__PURE__ */ L({
239
239
  __name: "alert-modal",
240
240
  props: {
241
241
  isBare: { type: Boolean },
242
242
  isHtml: { type: Boolean },
243
- classes: null,
244
- title: null,
245
- message: null,
243
+ classes: {},
244
+ title: {},
245
+ message: {},
246
246
  shouldConfirm: { type: Boolean },
247
247
  callback: { type: Function }
248
248
  },
249
249
  setup(e) {
250
- const t = e, n = D(() => t.message instanceof Error ? Je(t.message) : t.message);
250
+ const t = e, n = H(() => t.message instanceof Error ? Qe(t.message) : t.message);
251
251
  return (i, s) => {
252
- const o = pe("autofocus");
253
- return a(), z(st, {
254
- class: E(["vf-alert", e.classes])
255
- }, Ne({
256
- default: N(() => [
257
- e.isHtml ? (a(), d("div", {
252
+ const o = fe("autofocus");
253
+ return a(), U(it, {
254
+ class: E(["vf-alert", i.classes])
255
+ }, Fe({
256
+ default: _(() => [
257
+ i.isHtml ? (a(), d("div", {
258
258
  key: 0,
259
- innerHtml: e.message,
259
+ innerHtml: i.message,
260
260
  class: "user-message"
261
- }, null, 8, ot)) : (a(), d("div", {
261
+ }, null, 8, st)) : (a(), d("div", {
262
262
  key: 1,
263
- innerText: R(n)
264
- }, null, 8, lt))
263
+ innerText: n.value
264
+ }, null, 8, ot))
265
265
  ]),
266
266
  _: 2
267
267
  }, [
268
- e.isBare ? void 0 : {
268
+ i.isBare ? void 0 : {
269
269
  name: "header",
270
- fn: N(() => [
271
- v("h1", null, w(e.title), 1)
270
+ fn: _(() => [
271
+ v("h1", null, w(i.title), 1)
272
272
  ]),
273
273
  key: "0"
274
274
  },
275
- e.isBare ? void 0 : {
275
+ i.isBare ? void 0 : {
276
276
  name: "footer",
277
- fn: N(() => [
278
- e.shouldConfirm ? (a(), d($, { key: 0 }, [
279
- H((a(), d("button", {
277
+ fn: _(() => [
278
+ i.shouldConfirm ? (a(), d($, { key: 0 }, [
279
+ D((a(), d("button", {
280
280
  class: "primary",
281
- onClick: s[0] || (s[0] = () => e.callback(!0))
281
+ onClick: s[0] || (s[0] = () => i.callback(!0))
282
282
  }, [
283
- J("Confirm")
283
+ Q("Confirm")
284
284
  ])), [
285
285
  [o]
286
286
  ]),
287
287
  v("button", {
288
288
  class: "default",
289
- onClick: s[1] || (s[1] = () => e.callback(!1))
289
+ onClick: s[1] || (s[1] = () => i.callback(!1))
290
290
  }, "Cancel")
291
- ], 64)) : H((a(), d("button", {
291
+ ], 64)) : D((a(), d("button", {
292
292
  key: 1,
293
293
  class: "default",
294
- onClick: s[2] || (s[2] = () => e.callback(!0))
294
+ onClick: s[2] || (s[2] = () => i.callback(!0))
295
295
  }, [
296
- J("OK")
296
+ Q("OK")
297
297
  ])), [
298
298
  [o]
299
299
  ])
@@ -304,20 +304,20 @@ const ot = ["innerHtml"], lt = ["innerText"], V = /* @__PURE__ */ M({
304
304
  };
305
305
  }
306
306
  });
307
- function gn(e) {
307
+ function vn(e) {
308
308
  return e.replace(/\n/g, "<br>");
309
309
  }
310
- function rt(e) {
310
+ function lt(e) {
311
311
  return e.replace(/_/g, " ");
312
312
  }
313
- function at(e) {
313
+ function rt(e) {
314
314
  const t = e.replace(/\D/g, "").replace(/^1/, "");
315
315
  return t.length != 10 ? e : "(" + t.substring(0, 3) + ") " + t.substring(3, 6) + "-" + t.substring(6);
316
316
  }
317
- function ct(e) {
317
+ function at(e) {
318
318
  return "$" + Number(e).toFixed(3).replace(/0$/, "").replace(/\B(?=(\d{3})+(?!\d))/g, ",");
319
319
  }
320
- const O = Symbol("null"), ne = Symbol("create"), dt = "`1234567890-=[]\\;',./~!@#$%^&*()_+{}|:\"<>?qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", ut = {
320
+ const O = Symbol("null"), te = Symbol("create"), ct = "`1234567890-=[]\\;',./~!@#$%^&*()_+{}|:\"<>?qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", dt = {
321
321
  props: {
322
322
  modelValue: {
323
323
  type: null,
@@ -414,7 +414,7 @@ const O = Symbol("null"), ne = Symbol("create"), dt = "`1234567890-=[]\\;',./~!@
414
414
  const t = this.searchText.trim().toLowerCase();
415
415
  if (t.length) {
416
416
  e = e.filter((s) => s.searchContent.includes(t));
417
- const n = qe(this.searchText).replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&"), i = new RegExp(`(${n})`, "ig");
417
+ const n = We(this.searchText).replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&"), i = new RegExp(`(${n})`, "ig");
418
418
  e = e.map((s) => {
419
419
  var o;
420
420
  return {
@@ -423,7 +423,7 @@ const O = Symbol("null"), ne = Symbol("create"), dt = "`1234567890-=[]\\;',./~!@
423
423
  subtitle: (o = s.subtitle) == null ? void 0 : o.replace(i, "<mark>$1</mark>")
424
424
  };
425
425
  }), this.shouldShowCreateOption && (e.find((o) => o.searchContent === t) !== void 0 || e.push({
426
- key: ne,
426
+ key: te,
427
427
  title: "Create <strong>" + this.searchText.trim() + "</strong>..."
428
428
  }));
429
429
  }
@@ -464,7 +464,7 @@ const O = Symbol("null"), ne = Symbol("create"), dt = "`1234567890-=[]\\;',./~!@
464
464
  "update:modelValue",
465
465
  this.selectedOption && this.valueExtractor ? this.valueExtractor(this.selectedOption) : this.selectedOption
466
466
  );
467
- }), this.remoteSearch && this.$watch("searchText", Ke(this.reloadOptionsIfSearching, 250));
467
+ }), this.remoteSearch && this.$watch("searchText", Ne(this.reloadOptionsIfSearching, 250));
468
468
  },
469
469
  methods: {
470
470
  async loadRemoteOptions() {
@@ -509,7 +509,7 @@ const O = Symbol("null"), ne = Symbol("create"), dt = "`1234567890-=[]\\;',./~!@
509
509
  this.searchText.length > 1 && (this.isSearching = !0);
510
510
  return;
511
511
  }
512
- !e.metaKey && dt.includes(e.key) && (this.isSearching = !0);
512
+ !e.metaKey && ct.includes(e.key) && (this.isSearching = !0);
513
513
  }
514
514
  },
515
515
  handleInputFocused() {
@@ -527,7 +527,7 @@ const O = Symbol("null"), ne = Symbol("create"), dt = "`1234567890-=[]\\;',./~!@
527
527
  const t = this.effectiveOptions.find((i) => i.ref === e);
528
528
  if (t)
529
529
  return t;
530
- const n = this.effectiveOptions.find((i) => ge(i.ref, e));
530
+ const n = this.effectiveOptions.find((i) => ve(i.ref, e));
531
531
  return n || null;
532
532
  },
533
533
  handleInputBlurred() {
@@ -567,7 +567,7 @@ const O = Symbol("null"), ne = Symbol("create"), dt = "`1234567890-=[]\\;',./~!@
567
567
  selectOption(e) {
568
568
  if (this.isSearching = !1, e.key == O)
569
569
  this.searchText = "", this.selectedOption = null, this.selectedOptionTitle = null;
570
- else if (e.key === ne) {
570
+ else if (e.key === te) {
571
571
  const t = this.searchText.trim();
572
572
  this.searchText = "", this.selectedOption = null, this.selectedOptionTitle = null, this.$emit("createItem", t);
573
573
  } else {
@@ -584,23 +584,23 @@ const O = Symbol("null"), ne = Symbol("create"), dt = "`1234567890-=[]\\;',./~!@
584
584
  }
585
585
  }
586
586
  };
587
- const ht = ["placeholder"], ft = {
587
+ const ut = ["placeholder"], ht = {
588
588
  key: 0,
589
589
  ref: "optionsContainer",
590
590
  class: "vf-smart-select-options"
591
- }, pt = {
591
+ }, ft = {
592
592
  key: 0,
593
593
  class: "no-results"
594
- }, mt = ["onMousemove", "onMousedown"], vt = ["innerHTML"], gt = ["innerHTML"], yt = {
594
+ }, pt = ["onMousemove", "onMousedown"], mt = ["innerHTML"], vt = ["innerHTML"], gt = {
595
595
  key: 0,
596
596
  class: "no-results"
597
597
  };
598
- function Et(e, t, n, i, s, o) {
599
- const l = pe("disabled");
598
+ function yt(e, t, n, i, s, o) {
599
+ const l = fe("disabled");
600
600
  return a(), d("div", {
601
601
  class: E(["vf-smart-select", { disabled: o.effectiveDisabled, open: e.shouldDisplayOptions }])
602
602
  }, [
603
- H(v("input", {
603
+ D(v("input", {
604
604
  "onUpdate:modelValue": t[0] || (t[0] = (r) => e.searchText = r),
605
605
  ref: "searchField",
606
606
  type: "text",
@@ -609,13 +609,13 @@ function Et(e, t, n, i, s, o) {
609
609
  placeholder: o.effectivePlaceholder,
610
610
  onFocus: t[2] || (t[2] = (...r) => o.handleInputFocused && o.handleInputFocused(...r)),
611
611
  onBlur: t[3] || (t[3] = (...r) => o.handleInputBlurred && o.handleInputBlurred(...r))
612
- }, null, 42, ht), [
612
+ }, null, 42, ut), [
613
613
  [_e, e.searchText],
614
614
  [l, o.effectiveDisabled]
615
615
  ]),
616
- e.shouldDisplayOptions ? (a(), d("div", ft, [
616
+ e.shouldDisplayOptions ? (a(), d("div", ht, [
617
617
  e.isLoaded ? (a(), d($, { key: 1 }, [
618
- (a(!0), d($, null, W(o.effectiveOptions, (r) => (a(), d("div", {
618
+ (a(!0), d($, null, P(o.effectiveOptions, (r) => (a(), d("div", {
619
619
  key: String(r.key),
620
620
  class: E(["option", {
621
621
  highlighted: e.highlightedOptionKey === r.key
@@ -626,104 +626,104 @@ function Et(e, t, n, i, s, o) {
626
626
  v("div", {
627
627
  class: "title",
628
628
  innerHTML: r.title
629
- }, null, 8, vt),
629
+ }, null, 8, mt),
630
630
  r.subtitle ? (a(), d("div", {
631
631
  key: 0,
632
632
  class: "subtitle",
633
633
  innerHTML: r.subtitle
634
- }, null, 8, gt)) : g("", !0)
635
- ], 42, mt))), 128)),
636
- !o.effectiveOptions.length && e.searchText ? (a(), d("div", yt, w(o.effectiveNoResultsText), 1)) : g("", !0)
637
- ], 64)) : (a(), d("div", pt, "Loading..."))
634
+ }, null, 8, vt)) : g("", !0)
635
+ ], 42, pt))), 128)),
636
+ !o.effectiveOptions.length && e.searchText ? (a(), d("div", gt, w(o.effectiveNoResultsText), 1)) : g("", !0)
637
+ ], 64)) : (a(), d("div", ft, "Loading..."))
638
638
  ], 512)) : g("", !0)
639
639
  ], 2);
640
640
  }
641
- const Tt = /* @__PURE__ */ ye(ut, [["render", Et]]), yn = /* @__PURE__ */ M({
641
+ const Et = /* @__PURE__ */ ge(dt, [["render", yt]]), gn = /* @__PURE__ */ L({
642
642
  __name: "ez-smart-select",
643
643
  props: {
644
- modelValue: null,
645
- nullTitle: null,
646
- placeholder: null,
647
- options: null,
644
+ modelValue: {},
645
+ nullTitle: {},
646
+ placeholder: {},
647
+ options: {},
648
648
  formatter: { type: Function }
649
649
  },
650
650
  emits: ["update:modelValue"],
651
651
  setup(e, { emit: t }) {
652
- const n = e, i = D(() => Array.isArray(n.options) ? n.options.map((l) => ({ value: l, label: l })) : Object.entries(n.options).map(([l, r]) => ({
652
+ const n = e, i = H(() => Array.isArray(n.options) ? n.options.map((l) => ({ value: l, label: l })) : Object.entries(n.options).map(([l, r]) => ({
653
653
  value: l,
654
654
  label: r
655
- }))), s = D(() => n.formatter ? (l) => {
655
+ }))), s = H(() => n.formatter ? (l) => {
656
656
  var r;
657
657
  return (r = n.formatter) == null ? void 0 : r.call(n, l.label);
658
658
  } : (l) => l.label), o = I(i.value.find((l) => l.value === n.modelValue) ?? null);
659
- return ee(
659
+ return J(
660
660
  () => n.modelValue,
661
661
  (l) => {
662
662
  o.value = i.value.find((r) => r.value === l) ?? null;
663
663
  }
664
- ), ee(o, (l) => {
664
+ ), J(o, (l) => {
665
665
  var r;
666
- t("update:modelValue", l ? ((r = i.value.find((c) => ge(c, l))) == null ? void 0 : r.value) ?? null : null);
667
- }), (l, r) => (a(), z(Tt, {
666
+ t("update:modelValue", l ? ((r = i.value.find((c) => ve(c, l))) == null ? void 0 : r.value) ?? null : null);
667
+ }), (l, r) => (a(), U(Et, {
668
668
  modelValue: o.value,
669
669
  "onUpdate:modelValue": r[0] || (r[0] = (c) => o.value = c),
670
- options: R(i),
671
- formatter: R(s),
672
- "null-title": e.nullTitle
670
+ options: i.value,
671
+ formatter: s.value,
672
+ "null-title": l.nullTitle
673
673
  }, null, 8, ["modelValue", "options", "formatter", "null-title"]));
674
674
  }
675
675
  });
676
- function Ot(e) {
676
+ function Tt(e) {
677
677
  const t = Math.floor(Math.log(e) / Math.log(1024)), i = (e / Math.pow(1024, t)).toFixed(2), s = ["B", "KB", "MB", "GB", "TB"][t];
678
678
  return `${i} ${s}`;
679
679
  }
680
- function bt(e) {
680
+ function Ot(e) {
681
681
  return e != null && String(e).length ? e : "-";
682
682
  }
683
- function wt(e) {
683
+ function bt(e) {
684
684
  return e || "-";
685
685
  }
686
+ function wt(e) {
687
+ return e === null || typeof e == "string" && !/^\d+$/.test(e) ? e : $t(Number(e));
688
+ }
686
689
  function St(e) {
687
- return e === null || typeof e == "string" && !/^\d+$/.test(e) ? e : At(Number(e));
690
+ return e && rt(e);
688
691
  }
689
692
  function kt(e) {
690
- return e && at(e);
693
+ return e ? Ke(e) : null;
691
694
  }
692
- function xt(e) {
695
+ function Mt(e) {
693
696
  return e ? Re(e) : null;
694
697
  }
695
- function Mt(e) {
696
- return e ? je(e) : null;
698
+ function Lt(e) {
699
+ return e ? e.toUpperCase() : null;
697
700
  }
698
701
  function Ct(e) {
699
- return e ? e.toUpperCase() : null;
702
+ return e ? lt(e) : null;
700
703
  }
701
- function Lt(e) {
702
- return e ? rt(e) : null;
703
- }
704
- function It(e) {
705
- return ct(e);
706
- }
707
- const ie = {
708
- bytes: Ot,
709
- dash: bt,
710
- dashZeros: wt,
711
- number: St,
712
- phone: kt,
713
- upperFirst: xt,
704
+ function xt(e) {
705
+ return at(e);
706
+ }
707
+ const ne = {
708
+ bytes: Tt,
709
+ dash: Ot,
710
+ dashZeros: bt,
711
+ number: wt,
712
+ phone: St,
713
+ upperFirst: kt,
714
714
  startCase: Mt,
715
- upperCase: Ct,
716
- desnake: Lt,
717
- usCurrency: It
718
- }, En = (e) => ({
719
- ...ie,
720
- ...e(ie)
715
+ upperCase: Lt,
716
+ desnake: Ct,
717
+ usCurrency: xt
718
+ }, yn = (e) => ({
719
+ ...ne,
720
+ ...e(ne)
721
721
  });
722
- function Tn(e, t, n) {
722
+ function En(e, t, n) {
723
723
  const i = typeof t == "function" ? e.findIndex(t) : e.indexOf(t);
724
724
  return i === -1 ? !1 : (e.splice(i, 1, n), !0);
725
725
  }
726
- function On(e, t) {
726
+ function Tn(e, t) {
727
727
  const n = document.createElement("div");
728
728
  n.classList.add("vf-overlay"), n.addEventListener("click", T), document.body.appendChild(n);
729
729
  const i = document.createElement("div");
@@ -731,12 +731,12 @@ function On(e, t) {
731
731
  const s = e.currentTarget;
732
732
  s.style.userSelect = "none", s.classList.add("context-menu-active"), t.targetClass && s.classList.add(t.targetClass), t.class && i.classList.add(t.class), t.items.forEach((u) => {
733
733
  if (u == "-") {
734
- const L = document.createElement("div");
735
- L.classList.add("separator"), i.appendChild(L);
734
+ const x = document.createElement("div");
735
+ x.classList.add("separator"), i.appendChild(x);
736
736
  return;
737
737
  }
738
738
  const m = document.createElement("div");
739
- m.classList.add("item"), m.style.userSelect = "none", m.innerText = u.title, i.appendChild(m), u.class && m.classList.add(u.class), u.shouldConfirm ? m.addEventListener("click", () => u.handler()) : m.addEventListener("click", () => Ce(m, u.handler));
739
+ m.classList.add("item"), m.style.userSelect = "none", m.innerText = u.title, i.appendChild(m), u.class && m.classList.add(u.class), u.shouldConfirm ? m.addEventListener("click", () => u.handler()) : m.addEventListener("click", () => Le(m, u.handler));
740
740
  });
741
741
  const o = window.innerWidth - e.clientX, l = window.innerHeight - e.clientY, r = i.offsetHeight, c = i.offsetWidth, p = o < c ? e.clientX - c - 1 : e.clientX + 1, h = l < r ? e.clientY - r - 1 : e.clientY + 1;
742
742
  i.style.left = p + "px", i.style.top = h + "px", setTimeout(() => {
@@ -745,62 +745,62 @@ function On(e, t) {
745
745
  function T() {
746
746
  t.targetClass && s.classList.remove(t.targetClass), s.classList.remove("context-menu-active"), s.style.userSelect = "", n.remove();
747
747
  }
748
- function Ce(u, m) {
748
+ function Le(u, m) {
749
749
  if (u.classList.contains("pending-confirm"))
750
750
  return m();
751
- const L = u.innerHTML;
751
+ const x = u.innerHTML;
752
752
  u.classList.add("pending-confirm"), u.innerText = "Confirm";
753
- const Q = () => {
754
- u.classList.remove("pending-confirm"), u.innerHTML = L, u.removeEventListener("mouseleave", Q);
753
+ const G = () => {
754
+ u.classList.remove("pending-confirm"), u.innerHTML = x, u.removeEventListener("mouseleave", G);
755
755
  };
756
- u.addEventListener("mouseleave", Q), e.stopPropagation();
756
+ u.addEventListener("mouseleave", G), e.stopPropagation();
757
757
  }
758
758
  }
759
- const Dt = (e) => new Promise((t) => setTimeout(t, e)), bn = (e) => Dt(e * 1e3), S = Symbol("MaskState");
760
- function wn(e, t) {
759
+ const It = (e) => new Promise((t) => setTimeout(t, e)), On = (e) => It(e * 1e3), S = Symbol("MaskState");
760
+ function bn(e, t) {
761
761
  const n = e.$.vnode.el, i = n.closest(".vf-modal");
762
762
  return Ht(i ?? n, t);
763
763
  }
764
- function Sn(e) {
764
+ function wn(e) {
765
765
  const t = e.$.vnode.el, n = t.closest(".vf-modal");
766
- return be(n ?? t);
766
+ return Oe(n ?? t);
767
767
  }
768
768
  function Ht(e, t) {
769
769
  if (!e[S]) {
770
770
  const n = document.createElement("div");
771
771
  n.classList.add("vf-mask"), e.appendChild(n), e[S] = { maskEl: n };
772
772
  }
773
- return e[S].maskEl.innerText = t ?? "", () => be(e);
773
+ return e[S].maskEl.innerText = t ?? "", () => Oe(e);
774
774
  }
775
- function be(e) {
775
+ function Oe(e) {
776
776
  e[S] && e.removeChild(e[S].maskEl);
777
777
  }
778
- const P = Symbol("FormMaskState");
779
- function kn(e, t, n) {
780
- const i = e instanceof Element ? e : we(e);
778
+ const j = Symbol("FormMaskState");
779
+ function Sn(e, t, n) {
780
+ const i = e instanceof Element ? e : be(e);
781
781
  i.classList.add("vf-masked");
782
- const s = t instanceof Element ? t : i.querySelectorAll(t ?? "button:not([disabled])")[0], o = s.tagName === "INPUT" ? s.value : s.innerText;
782
+ const s = t instanceof Element ? t : i.querySelectorAll(t ?? "button:not([disabled])")[0], o = s.tagName === "INPUT" ? s.value : s.innerHTML;
783
783
  s.setAttribute("disabled", "disabled"), s.innerText = n ?? "Please wait...";
784
784
  const r = [...i.querySelectorAll("input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled])")];
785
- return r.forEach((c) => c.setAttribute("disabled", "disabled")), i[P] = {
785
+ return r.forEach((c) => c.setAttribute("disabled", "disabled")), i[j] = {
786
786
  disabledElements: r,
787
787
  waitButton: s,
788
- buttonText: o
789
- }, () => $t(i);
788
+ buttonHtml: o
789
+ }, () => Dt(i);
790
790
  }
791
- function $t(e) {
792
- const t = e instanceof Element ? e : we(e), n = t[P];
793
- n && (t.classList.remove("vf-masked"), n.disabledElements.forEach((i) => i.removeAttribute("disabled")), n.waitButton.innerText = n.buttonText, n.waitButton.removeAttribute("disabled"), delete t[P]);
791
+ function Dt(e) {
792
+ const t = e instanceof Element ? e : be(e), n = t[j];
793
+ n && (t.classList.remove("vf-masked"), n.disabledElements.forEach((i) => i.removeAttribute("disabled")), n.waitButton.innerHTML = n.buttonHtml, n.waitButton.removeAttribute("disabled"), delete t[j]);
794
794
  }
795
- function we(e) {
795
+ function be(e) {
796
796
  const t = e.$.vnode.el;
797
797
  return t.tagName === "FORM" ? t : t.querySelector("form");
798
798
  }
799
- function At(e) {
799
+ function $t(e) {
800
800
  return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
801
801
  }
802
- function xn(e, t) {
803
- return e != null ? Pe(e) : t;
802
+ function kn(e, t) {
803
+ return e != null ? je(e) : t;
804
804
  }
805
805
  function Mn(e, t) {
806
806
  const n = { ...e };
@@ -808,15 +808,15 @@ function Mn(e, t) {
808
808
  n[i] === "" && (n[i] = null);
809
809
  return n;
810
810
  }
811
- function Bt(e) {
811
+ function At(e) {
812
812
  return e instanceof Error && "status" in e && "body" in e;
813
813
  }
814
- function Cn({ apiClient: e, onRequest: t, onError: n, CancelablePromise: i }) {
814
+ function Ln({ apiClient: e, onRequest: t, onError: n, CancelablePromise: i }) {
815
815
  const s = e.request.request.bind(e.request);
816
816
  e.request.request = (o) => (t && (o = t(o)), new i((l, r, c) => {
817
817
  const p = s(o);
818
818
  c(p.cancel), p.then(l).catch((h) => {
819
- if (Bt(h) && typeof h.body == "object" && "error" in h.body && h.status === 422)
819
+ if (At(h) && typeof h.body == "object" && "error" in h.body && h.status === 422)
820
820
  return r(new B(h.body.error));
821
821
  if (n) {
822
822
  const T = n(h, o);
@@ -829,36 +829,36 @@ function Cn({ apiClient: e, onRequest: t, onError: n, CancelablePromise: i }) {
829
829
  });
830
830
  }));
831
831
  }
832
- const Z = Symbol("HookState");
833
- function Vt(e, t) {
834
- const n = t ?? fe();
835
- q(() => Ft(n, e), n), me(() => Nt(n), n), ve(() => se(n), n), U(() => se(n), n);
832
+ const Y = Symbol("HookState");
833
+ function Bt(e, t) {
834
+ const n = t ?? he();
835
+ W(() => Vt(n, e), n), pe(() => Ft(n), n), me(() => ie(n), n), q(() => ie(n), n);
836
836
  }
837
- function Ft(e, t) {
837
+ function Vt(e, t) {
838
838
  const n = {};
839
839
  if (t.elScrolledToBottom && (n.el = new K(e.vnode.el, t.elScrolledToBottom), n.el.install()), t.ancestorScrolledToBottom) {
840
- const i = Se(e.vnode.el);
840
+ const i = we(e.vnode.el);
841
841
  i ? (n.ancestor = new K(i, t.ancestorScrolledToBottom), n.ancestor.install()) : console.warn("no scollable ancestor found for component:", e);
842
842
  }
843
- t.windowScrolledToBottom && (n.window = new K(window, t.windowScrolledToBottom), n.window.install()), e[Z] = n;
843
+ t.windowScrolledToBottom && (n.window = new K(window, t.windowScrolledToBottom), n.window.install()), e[Y] = n;
844
844
  }
845
- function Nt(e) {
845
+ function Ft(e) {
846
846
  var n, i, s;
847
- const t = e[Z];
847
+ const t = e[Y];
848
848
  (n = t == null ? void 0 : t.el) == null || n.install(), (i = t == null ? void 0 : t.ancestor) == null || i.install(), (s = t == null ? void 0 : t.window) == null || s.install();
849
849
  }
850
- function se(e) {
850
+ function ie(e) {
851
851
  var n, i, s;
852
- const t = e[Z];
852
+ const t = e[Y];
853
853
  (n = t == null ? void 0 : t.el) == null || n.uninstall(), (i = t == null ? void 0 : t.ancestor) == null || i.uninstall(), (s = t == null ? void 0 : t.window) == null || s.uninstall();
854
854
  }
855
- const _ = ["auto", "scroll"];
856
- function Se(e) {
855
+ const N = ["auto", "scroll"];
856
+ function we(e) {
857
857
  const t = e.parentElement;
858
858
  if (!t)
859
859
  return null;
860
860
  const n = window.getComputedStyle(t);
861
- return _.includes(n.overflow) || _.includes(n.overflowX) || _.includes(n.overflowY) ? t : Se(t);
861
+ return N.includes(n.overflow) || N.includes(n.overflowX) || N.includes(n.overflowY) ? t : we(t);
862
862
  }
863
863
  class K {
864
864
  constructor(t, n) {
@@ -876,24 +876,24 @@ class K {
876
876
  Math.ceil(this.el.scrollTop + this.el.clientHeight + 5) >= this.el.scrollHeight ? this.isTripped || (this.handler(t), this.isTripped = !0) : this.isTripped && (this.isTripped = !1);
877
877
  }
878
878
  }
879
- function Ln(e) {
880
- q(() => window.addEventListener("resize", e)), me(() => window.addEventListener("resize", e)), ve(() => window.removeEventListener("resize", e)), U(() => window.removeEventListener("resize", e));
879
+ function Cn(e) {
880
+ W(() => window.addEventListener("resize", e)), pe(() => window.addEventListener("resize", e)), me(() => window.removeEventListener("resize", e)), q(() => window.removeEventListener("resize", e));
881
881
  }
882
882
  const _t = {
883
- mounted: le,
884
- updated: le
885
- }, oe = Symbol("HasAutoFocused");
886
- function le(e, t) {
887
- if (t.value === void 0 && e[oe] || t.value !== void 0 && !t.value || t.oldValue !== void 0 && t.value == t.oldValue)
883
+ mounted: oe,
884
+ updated: oe
885
+ }, se = Symbol("HasAutoFocused");
886
+ function oe(e, t) {
887
+ if (t.value === void 0 && e[se] || t.value !== void 0 && !t.value || t.oldValue !== void 0 && t.value == t.oldValue)
888
888
  return;
889
- e[oe] = !0;
889
+ e[se] = !0;
890
890
  const n = ["BUTTON", "INPUT", "TEXTAREA", "SELECT"].indexOf(e.tagName) > -1 ? e : e.querySelectorAll("input")[0];
891
891
  setTimeout(() => n.focus(), 10);
892
892
  }
893
- const Kt = {
894
- mounted: Rt
893
+ const Nt = {
894
+ mounted: Kt
895
895
  }, b = Symbol("ConfirmState");
896
- function Rt(e) {
896
+ function Kt(e) {
897
897
  e.addEventListener("click", (t) => {
898
898
  const n = Date.now();
899
899
  if (e[b]) {
@@ -913,25 +913,25 @@ function Rt(e) {
913
913
  e[b] = i, e.innerHTML = "Confirm", e.addEventListener("mouseout", i.resetHandler);
914
914
  });
915
915
  }
916
- const jt = {
917
- beforeMount: Pt
916
+ const Rt = {
917
+ beforeMount: jt
918
918
  };
919
- function Pt(e) {
919
+ function jt(e) {
920
920
  e.addEventListener("blur", () => {
921
921
  let t = e.value;
922
- /^\d{1,2}\/\d{1,2}$/.test(t) && (t += "/" + j(/* @__PURE__ */ new Date(), "yy"));
922
+ /^\d{1,2}\/\d{1,2}$/.test(t) && (t += "/" + R(/* @__PURE__ */ new Date(), "yy"));
923
923
  const n = Date.parse(t);
924
- isNaN(n) ? e.value = "" : e.value = j(n, "MM/dd/yyyy"), e.dispatchEvent(new Event("input"));
924
+ isNaN(n) ? e.value = "" : e.value = R(n, "MM/dd/yyyy"), e.dispatchEvent(new Event("input"));
925
925
  });
926
926
  }
927
- const Wt = {
928
- beforeMount: re,
929
- updated: re
927
+ const Pt = {
928
+ beforeMount: le,
929
+ updated: le
930
930
  };
931
- function re(e, t) {
932
- t.value == t.oldValue && e.innerHTML.length || (e.innerText = qt(e, t));
931
+ function le(e, t) {
932
+ t.value == t.oldValue && e.innerHTML.length || (e.innerText = Wt(e, t));
933
933
  }
934
- function qt(e, t) {
934
+ function Wt(e, t) {
935
935
  var c, p;
936
936
  if (!t.value)
937
937
  return ((c = e.attributes.getNamedItem("placeholder")) == null ? void 0 : c.value) ?? "";
@@ -944,49 +944,49 @@ function qt(e, t) {
944
944
  h.getFullYear() == o.getFullYear() && h.getMonth() == o.getMonth() && h.getDate() == o.getDate() && (n = "at", l = "HH:mm");
945
945
  }
946
946
  l || (l = C.defaultDateTimeFormat);
947
- let r = j(o, l);
947
+ let r = R(o, l);
948
948
  return n && (r = n + " " + r), r;
949
949
  }
950
- const Ut = {
951
- beforeMount: ae,
952
- updated: ae,
953
- unmounted: zt
950
+ const qt = {
951
+ beforeMount: re,
952
+ updated: re,
953
+ unmounted: Ut
954
954
  };
955
- function ae(e, t) {
955
+ function re(e, t) {
956
956
  e.tagName === "LABEL" && (t.value ? e.classList.remove("disabled") : e.classList.add("disabled"), e = e.querySelector("input")), t.value ? e.setAttribute("disabled", "disabled") : e.removeAttribute("disabled");
957
957
  }
958
- function zt(e) {
958
+ function Ut(e) {
959
959
  e.tagName === "LABEL" && (e.classList.remove("disabled"), e = e.querySelector("input")), e.removeAttribute("disabled");
960
960
  }
961
- const Xt = {
962
- beforeMount: ce,
963
- updated: ce,
964
- unmounted: xe
965
- }, x = Symbol("HasAutoFocused"), G = [];
966
- function Yt() {
967
- G.forEach(ke);
961
+ const zt = {
962
+ beforeMount: ae,
963
+ updated: ae,
964
+ unmounted: ke
965
+ }, M = Symbol("HasAutoFocused"), Z = [];
966
+ function Xt() {
967
+ Z.forEach(Se);
968
968
  }
969
- setInterval(Yt, 1e3);
970
- function ce(e, t) {
969
+ setInterval(Xt, 1e3);
970
+ function ae(e, t) {
971
971
  var l;
972
972
  if (t.value == t.oldValue)
973
973
  return;
974
974
  if (!t.value)
975
- return xe(e);
975
+ return ke(e);
976
976
  const n = new Date(t.value), i = (l = e.attributes.getNamedItem("base-time")) == null ? void 0 : l.value, s = n.getTime() - (i ? new Date(i).getTime() - t.value * 1e3 : 0), o = e.getAttribute("no-seconds") === null;
977
- e[x] || G.push(e), e[x] = {
977
+ e[M] || Z.push(e), e[M] = {
978
978
  startTs: s,
979
979
  includeSeconds: o
980
- }, ke(e);
980
+ }, Se(e);
981
981
  }
982
- function ke(e) {
983
- const t = e[x], n = Math.round((Date.now() - t.startTs) / 1e3);
984
- e.innerText = Zt(n, t.includeSeconds);
982
+ function Se(e) {
983
+ const t = e[M], n = Math.round((Date.now() - t.startTs) / 1e3);
984
+ e.innerText = Yt(n, t.includeSeconds);
985
985
  }
986
- function xe(e) {
987
- e[x] && (We(G, e), delete e[x]), e.innerText = "-";
986
+ function ke(e) {
987
+ e[M] && (Pe(Z, e), delete e[M]), e.innerText = "-";
988
988
  }
989
- function Zt(e, t) {
989
+ function Yt(e, t) {
990
990
  const n = [], i = Math.floor(e / 86400);
991
991
  i && n.push(i + "d"), e -= i * 86400;
992
992
  const s = Math.floor(e / 3600);
@@ -994,23 +994,23 @@ function Zt(e, t) {
994
994
  const o = Math.floor(e / 60);
995
995
  return (i || s || o) && n.push(o + "m"), t ? n.length || n.push("0m") : (e -= o * 60, n.push(e + "s")), n.join(" ");
996
996
  }
997
- const Gt = {
997
+ const Zt = {
998
998
  created(e, t) {
999
- Vt(t.value, t.instance.$);
999
+ Bt(t.value, t.instance.$);
1000
1000
  }
1001
- }, Qt = {
1002
- beforeMount: de,
1003
- updated: de
1001
+ }, Gt = {
1002
+ beforeMount: ce,
1003
+ updated: ce
1004
1004
  };
1005
- function de(e, t) {
1005
+ function ce(e, t) {
1006
1006
  e.tagName == "LABEL" && (e = e.querySelector("input")), t.value ? e.setAttribute("readonly", "readonly") : e.removeAttribute("readonly");
1007
1007
  }
1008
- const Jt = {
1009
- mounted: ue,
1010
- updated: ue,
1008
+ const Qt = {
1009
+ mounted: de,
1010
+ updated: de,
1011
1011
  unmounted: Me
1012
1012
  }, k = Symbol("TooltipState");
1013
- function ue(e, t) {
1013
+ function de(e, t) {
1014
1014
  var i;
1015
1015
  let n = ((i = e.attributes.getNamedItem("tip")) == null ? void 0 : i.value) ?? t.value;
1016
1016
  if (t.value || (n = null), n) {
@@ -1018,7 +1018,7 @@ function ue(e, t) {
1018
1018
  content: n,
1019
1019
  html: e.getAttribute("html") !== null
1020
1020
  };
1021
- e[k] ? e[k].configure(s) : e[k] = new en(e, s);
1021
+ e[k] ? e[k].configure(s) : e[k] = new Jt(e, s);
1022
1022
  } else
1023
1023
  Me(e);
1024
1024
  }
@@ -1026,7 +1026,7 @@ function Me(e) {
1026
1026
  var t;
1027
1027
  (t = e[k]) == null || t.destroy(), delete e[k];
1028
1028
  }
1029
- class en {
1029
+ class Jt {
1030
1030
  constructor(t, n) {
1031
1031
  f(this, "lastMoveEvt");
1032
1032
  f(this, "checkInterval");
@@ -1074,56 +1074,56 @@ class en {
1074
1074
  this.shouldShow = !1, this.removeTooltip(), this.el.removeEventListener("mouseenter", this.handleTargetMouseEnterWithContext), this.el.removeEventListener("mouseleave", this.handleTargetMouseLeaveWithContext);
1075
1075
  }
1076
1076
  }
1077
- function tn(e) {
1078
- e.directive("autofocus", _t), e.directive("confirm-button", Kt), e.directive("date-input", jt), e.directive("datetime", Wt), e.directive("disabled", Ut), e.directive("duration", Xt), e.directive("infinite-scroll", Gt), e.directive("readonly", Qt), e.directive("tooltip", Jt);
1077
+ function en(e) {
1078
+ e.directive("autofocus", _t), e.directive("confirm-button", Nt), e.directive("date-input", Rt), e.directive("datetime", Pt), e.directive("disabled", qt), e.directive("duration", zt), e.directive("infinite-scroll", Zt), e.directive("readonly", Gt), e.directive("tooltip", Qt);
1079
1079
  }
1080
- function In(e) {
1081
- tn(e);
1080
+ function xn(e) {
1081
+ en(e);
1082
1082
  }
1083
1083
  export {
1084
- cn as ModalContainer,
1084
+ an as ModalContainer,
1085
1085
  B as UserError,
1086
- an as VfAjaxSelect,
1086
+ rn as VfAjaxSelect,
1087
1087
  V as VfAlertModal,
1088
- yn as VfEzSmartSelect,
1089
- st as VfModal,
1090
- Tt as VfSmartSelect,
1091
- xn as cloneProp,
1092
- pn as configureVf,
1093
- En as createFilters,
1094
- Ee as createModalInjection,
1095
- rt as desnakeCase,
1096
- $n as escapeHtml,
1097
- Je as formatError,
1098
- At as formatNumber,
1099
- at as formatPhone,
1100
- ct as formatUSCurrency,
1101
- vn as handleError,
1102
- mn as handleErrorAndAlert,
1103
- Cn as installApiClientInterceptors,
1104
- In as installVf,
1105
- wn as maskComponent,
1088
+ gn as VfEzSmartSelect,
1089
+ it as VfModal,
1090
+ Et as VfSmartSelect,
1091
+ kn as cloneProp,
1092
+ fn as configureVf,
1093
+ yn as createFilters,
1094
+ ye as createModalInjection,
1095
+ lt as desnakeCase,
1096
+ Dn as escapeHtml,
1097
+ Qe as formatError,
1098
+ $t as formatNumber,
1099
+ rt as formatPhone,
1100
+ at as formatUSCurrency,
1101
+ mn as handleError,
1102
+ pn as handleErrorAndAlert,
1103
+ Ln as installApiClientInterceptors,
1104
+ xn as installVf,
1105
+ bn as maskComponent,
1106
1106
  Ht as maskEl,
1107
- kn as maskForm,
1108
- gn as nl2br,
1107
+ Sn as maskForm,
1108
+ vn as nl2br,
1109
1109
  Mn as nullifyEmptyInputs,
1110
- X as presentModal,
1111
- Te as removeModalInjection,
1112
- dn as removeModalInjectionByInstance,
1113
- Oe as removeModalInjectionByInternalInstance,
1114
- Qe as removeModalInjectionByVnode,
1115
- Tn as replaceElement,
1116
- te as showAlert,
1117
- un as showConfirm,
1118
- hn as showConfirmDestroy,
1119
- On as showContextMenu,
1120
- fn as showWait,
1121
- Dt as sleep,
1122
- bn as sleepSecs,
1123
- Y as toError,
1124
- Sn as unmaskComponent,
1125
- be as unmaskEl,
1126
- $t as unmaskForm,
1127
- Vt as useInfiniteScroll,
1128
- Ln as useResizeWatcher
1110
+ z as presentModal,
1111
+ Ee as removeModalInjection,
1112
+ cn as removeModalInjectionByInstance,
1113
+ Te as removeModalInjectionByInternalInstance,
1114
+ Ge as removeModalInjectionByVnode,
1115
+ En as replaceElement,
1116
+ ee as showAlert,
1117
+ dn as showConfirm,
1118
+ un as showConfirmDestroy,
1119
+ Tn as showContextMenu,
1120
+ hn as showWait,
1121
+ It as sleep,
1122
+ On as sleepSecs,
1123
+ X as toError,
1124
+ wn as unmaskComponent,
1125
+ Oe as unmaskEl,
1126
+ Dt as unmaskForm,
1127
+ Bt as useInfiniteScroll,
1128
+ Cn as useResizeWatcher
1129
1129
  };