@signal24/vue-foundation 4.10.1 → 4.10.2

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,17 @@
1
- var Ve = Object.defineProperty;
2
- var Ne = (e, t, n) => t in e ? Ve(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var v = (e, t, n) => (Ne(e, typeof t != "symbol" ? t + "" : t, n), n);
4
- import { defineComponent as x, defineProps as Re, defineEmits as Ue, ref as w, computed as F, openBlock as h, createElementBlock as f, createElementVNode as T, toDisplayString as C, withDirectives as K, createCommentVNode as O, Fragment as j, renderList as J, vModelSelect as Ke, getCurrentInstance as ee, onMounted as L, normalizeClass as k, normalizeStyle as je, withModifiers as te, renderSlot as U, reactive as We, h as W, Teleport as Pe, markRaw as qe, onBeforeUnmount as ne, resolveDirective as Oe, createBlock as ke, createSlots as ze, withCtx as Y, createTextVNode as ce, vModelText as Xe, watch as de, onActivated as Se, onDeactivated as xe } from "vue";
5
- import { compact as Ye, debounce as Ze, isEqual as Ce, upperFirst as Ge, startCase as Qe, cloneDeep as Je, remove as et } from "lodash";
6
- import { escapeHtml as tt } from "@vue/shared";
7
- import { escapeHtml as ri } from "@vue/shared";
1
+ var Be = Object.defineProperty;
2
+ var Ve = (e, t, n) => t in e ? Be(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var E = (e, t, n) => (Ve(e, typeof t != "symbol" ? t + "" : t, n), n);
4
+ import { defineComponent as C, defineProps as Fe, defineEmits as Ne, ref as O, computed as V, openBlock as d, createElementBlock as u, createElementVNode as w, toDisplayString as x, withDirectives as j, createCommentVNode as b, Fragment as U, renderList as J, vModelSelect as Re, getCurrentInstance as ee, onMounted as L, normalizeClass as k, normalizeStyle as Ke, withModifiers as te, renderSlot as K, reactive as je, h as W, Teleport as Ue, markRaw as We, onBeforeUnmount as ne, resolveDirective as Oe, createBlock as be, createSlots as Pe, withCtx as Y, createTextVNode as ae, vModelText as qe, watch as ce, onActivated as ke, onDeactivated as Se } from "vue";
5
+ import { compact as ze, debounce as Xe, isEqual as Ce, upperFirst as Ye, startCase as Ze, cloneDeep as Ge, remove as Qe } from "lodash";
6
+ import { escapeHtml as Je } from "@vue/shared";
7
+ import { escapeHtml as si } from "@vue/shared";
8
+ import { installOpenApiClientInterceptors as et, isOpenApiError as tt } from "@signal24/openapi-client-codegen/browser";
8
9
  import { format as G } from "date-fns";
9
- const nt = x({
10
+ const nt = C({
10
11
  setup() {
11
- const e = Re();
12
- Ue(["update:modelValue"]);
13
- const t = w(null), n = F(() => t.value ? t.value.map((o) => e.preprocesor ? e.preprocesor(o) : o[e.displayKey ?? ""]) : null), i = w(e.modelValue ?? null);
12
+ const e = Fe();
13
+ Ne(["update:modelValue"]);
14
+ const t = O(null), n = V(() => t.value ? t.value.map((o) => e.preprocesor ? e.preprocesor(o) : o[e.displayKey ?? ""]) : null), i = O(e.modelValue ?? null);
14
15
  return { props: e, options: t, renderOptions: n, selectedItem: i };
15
16
  },
16
17
  watch: {
@@ -32,7 +33,7 @@ const nt = x({
32
33
  this.options = await this.props.loadFn();
33
34
  }
34
35
  }
35
- }), Le = (e, t) => {
36
+ }), xe = (e, t) => {
36
37
  const n = e.__vccOpts || e;
37
38
  for (const [i, s] of t)
38
39
  n[i] = s;
@@ -45,62 +46,62 @@ const nt = x({
45
46
  value: null
46
47
  }, ot = ["value"];
47
48
  function lt(e, t, n, i, s, o) {
48
- return e.renderOptions ? K((h(), f("select", {
49
+ return e.renderOptions ? j((d(), u("select", {
49
50
  key: 1,
50
51
  "onUpdate:modelValue": t[0] || (t[0] = (r) => e.selectedItem = r)
51
52
  }, [
52
- e.props.nullText ? (h(), f("option", st, C(e.props.nullText), 1)) : O("", !0),
53
- (h(!0), f(j, null, J(e.renderOptions, (r, l) => {
53
+ e.props.nullText ? (d(), u("option", st, x(e.props.nullText), 1)) : b("", !0),
54
+ (d(!0), u(U, null, J(e.renderOptions, (r, l) => {
54
55
  var a;
55
- return h(), f("option", {
56
+ return d(), u("option", {
56
57
  key: l,
57
58
  value: (a = e.options) == null ? void 0 : a[l]
58
- }, C(r), 9, ot);
59
+ }, x(r), 9, ot);
59
60
  }), 128))
60
61
  ], 512)), [
61
- [Ke, e.selectedItem]
62
- ]) : (h(), f("select", it, [
63
- T("option", null, C(e.props.loadingText || "Loading..."), 1)
62
+ [Re, e.selectedItem]
63
+ ]) : (d(), u("select", it, [
64
+ w("option", null, x(e.props.loadingText || "Loading..."), 1)
64
65
  ]));
65
66
  }
66
- const $n = /* @__PURE__ */ Le(nt, [["render", lt]]), rt = ["onClick"], at = /* @__PURE__ */ x({
67
+ const Hn = /* @__PURE__ */ xe(nt, [["render", lt]]), rt = ["onClick"], at = /* @__PURE__ */ C({
67
68
  __name: "overlay-anchor",
68
69
  props: {
69
70
  overlayId: {},
70
71
  anchor: {}
71
72
  },
72
73
  setup(e) {
73
- const t = e, n = t.anchor instanceof HTMLElement ? t.anchor : t.anchor.el, i = w({ visibility: "hidden", top: "0", left: "0" }), s = w([]), o = ee();
74
+ const t = e, n = t.anchor instanceof HTMLElement ? t.anchor : t.anchor.el, i = O({ visibility: "hidden", top: "0", left: "0" }), s = O([]), o = ee();
74
75
  L(r);
75
76
  function r() {
76
- const u = o.vnode.el, { styles: b, classes: m } = l(u, n);
77
- i.value = b, s.value = m;
77
+ const p = o.vnode.el, { styles: g, classes: m } = l(p, n);
78
+ i.value = g, s.value = m;
78
79
  }
79
- function l(u, b) {
80
- const m = t.anchor instanceof HTMLElement ? {} : t.anchor, y = b.getBoundingClientRect(), p = u.getBoundingClientRect();
81
- m.matchWidth && (p.width = y.width), m.matchHeight && (p.height = y.height);
82
- const c = m.class ? Array.isArray(m.class) ? m.class : [m.class] : [];
83
- let d, E;
80
+ function l(p, g) {
81
+ const m = t.anchor instanceof HTMLElement ? {} : t.anchor, y = g.getBoundingClientRect(), f = p.getBoundingClientRect();
82
+ m.matchWidth && (f.width = y.width), m.matchHeight && (f.height = y.height);
83
+ const h = m.class ? Array.isArray(m.class) ? m.class : [m.class] : [];
84
+ let c, T;
84
85
  if (m.y === "center")
85
- d = y.top + y.height / 2 - p.height / 2, c.push("anchored-center-y");
86
+ c = y.top + y.height / 2 - f.height / 2, h.push("anchored-center-y");
86
87
  else {
87
- const I = (y.bottom + p.height < window.innerHeight || m.y === "below") && m.y !== "above";
88
- d = I ? y.bottom : y.top - p.height, c.push(I ? "anchored-top" : "anchored-bottom");
88
+ const I = (y.bottom + f.height < window.innerHeight || m.y === "below") && m.y !== "above";
89
+ c = I ? y.bottom : y.top - f.height, h.push(I ? "anchored-top" : "anchored-bottom");
89
90
  }
90
91
  if (m.x === "center")
91
- E = y.left + y.width / 2 - p.width / 2, c.push("anchored-center-x");
92
+ T = y.left + y.width / 2 - f.width / 2, h.push("anchored-center-x");
92
93
  else {
93
- const I = (y.left + p.width < window.innerWidth || m.x === "left") && m.x !== "right";
94
- E = I ? y.left : y.right - p.width, c.push(I ? "anchored-left" : "anchored-right");
94
+ const I = (y.left + f.width < window.innerWidth || m.x === "left") && m.x !== "right";
95
+ T = I ? y.left : y.right - f.width, h.push(I ? "anchored-left" : "anchored-right");
95
96
  }
96
97
  return {
97
98
  styles: {
98
- top: `${d}px`,
99
- left: `${E}px`,
100
- ...m.matchWidth ? { width: `${p.width}px` } : {},
101
- ...m.matchHeight ? { height: `${p.height}px` } : {}
99
+ top: `${c}px`,
100
+ left: `${T}px`,
101
+ ...m.matchWidth ? { width: `${f.width}px` } : {},
102
+ ...m.matchHeight ? { height: `${f.height}px` } : {}
102
103
  },
103
- classes: c
104
+ classes: h
104
105
  };
105
106
  }
106
107
  function a() {
@@ -110,27 +111,27 @@ const $n = /* @__PURE__ */ Le(nt, [["render", lt]]), rt = ["onClick"], at = /* @
110
111
  setTimeout(() => {
111
112
  window.addEventListener("click", a);
112
113
  }, 10);
113
- }), (u, b) => (h(), f("div", {
114
+ }), (p, g) => (d(), u("div", {
114
115
  class: k(["vf-overlay-anchor", s.value]),
115
- style: je(i.value),
116
+ style: Ke(i.value),
116
117
  onClick: te(a, ["stop"])
117
118
  }, [
118
- U(u.$slots, "default")
119
+ K(p.$slots, "default")
119
120
  ], 14, rt));
120
121
  }
121
122
  });
122
123
  let ct = 0;
123
- const S = We([]), An = x({
124
+ const S = je([]), _n = C({
124
125
  setup() {
125
126
  return () => W("div", [
126
- J(S, (e) => W(Pe, { key: e.id, to: "#vf-overlay-target" }, [e.wrapperVnode ?? e.vnode]))
127
+ J(S, (e) => W(Ue, { key: e.id, to: "#vf-overlay-target" }, [e.wrapperVnode ?? e.vnode]))
127
128
  ]);
128
129
  }
129
130
  });
130
131
  function ie(e, t, n) {
131
132
  const i = document.getElementById("vf-overlay-target") ?? document.createElement("div");
132
133
  i.id = "vf-overlay-target", i.removeAttribute("inert"), document.body.appendChild(i);
133
- const s = String(++ct), o = qe(e), r = W(o, t), l = n != null && n.anchor ? W(at, { overlayId: s, anchor: n.anchor }, () => [r]) : void 0, a = {
134
+ const s = String(++ct), o = We(e), r = W(o, t), l = n != null && n.anchor ? W(at, { overlayId: s, anchor: n.anchor }, () => [r]) : void 0, a = {
134
135
  id: s,
135
136
  component: o,
136
137
  props: t,
@@ -140,10 +141,10 @@ function ie(e, t, n) {
140
141
  };
141
142
  return S.push(a), a;
142
143
  }
143
- function Bn(e) {
144
- Me(e.$);
144
+ function Dn(e) {
145
+ Le(e.$);
145
146
  }
146
- function Me(e) {
147
+ function Le(e) {
147
148
  let t = e;
148
149
  for (; t && !dt(t.vnode); )
149
150
  t = t.parent;
@@ -172,23 +173,23 @@ async function se(e, t, n) {
172
173
  function q(e, t) {
173
174
  return { title: t ? e : void 0, message: t ?? e };
174
175
  }
175
- async function ue(e, t) {
176
+ async function de(e, t) {
176
177
  await se(X, q(e, t));
177
178
  }
178
- async function Fn(e, t) {
179
+ async function An(e, t) {
179
180
  return await se(X, {
180
181
  ...q(e, t),
181
182
  shouldConfirm: !0
182
183
  }) === !0;
183
184
  }
184
- async function Vn(e, t) {
185
+ async function $n(e, t) {
185
186
  return await se(X, {
186
187
  ...q(e, t),
187
188
  shouldConfirm: !0,
188
189
  classes: ["destructive"]
189
190
  }) === !0;
190
191
  }
191
- function Nn(e, t) {
192
+ function Bn(e, t) {
192
193
  const n = ie(X, {
193
194
  ...q(e, t),
194
195
  isBare: !0,
@@ -203,7 +204,7 @@ const N = {
203
204
  errorHandler: (e) => console.error("Unhandled error:", e),
204
205
  defaultDateTimeFormat: "MM/dd/yy HH:mm"
205
206
  };
206
- function Rn(e) {
207
+ function Vn(e) {
207
208
  Object.assign(N, e);
208
209
  }
209
210
  class z extends Error {
@@ -221,36 +222,36 @@ Please refresh the page and try again. If this error persists, ${N.unhandledErro
221
222
  function oe(e) {
222
223
  return e instanceof Error ? e : new Error(String(e));
223
224
  }
224
- async function Un(e, t) {
225
+ async function Fn(e, t) {
225
226
  const n = oe(e);
226
- return n instanceof z || N.errorHandler(n), t ? ue(t, n) : ue(n);
227
+ return n instanceof z || N.errorHandler(n), t ? de(t, n) : de(n);
227
228
  }
228
- async function Kn(e) {
229
+ async function Nn(e) {
229
230
  const t = oe(e);
230
231
  t instanceof z || N.errorHandler(t);
231
232
  }
232
- const $ = Symbol("MaskState");
233
- function jn(e, t) {
233
+ const A = Symbol("MaskState");
234
+ function Rn(e, t) {
234
235
  const n = e.$.vnode.el, i = n.closest(".vf-modal");
235
236
  return ft(i ?? n, t);
236
237
  }
237
- function Wn(e) {
238
+ function Kn(e) {
238
239
  const t = e.$.vnode.el, n = t.closest(".vf-modal");
239
- return Ie(n ?? t);
240
+ return Me(n ?? t);
240
241
  }
241
242
  function ft(e, t) {
242
- if (!e[$]) {
243
+ if (!e[A]) {
243
244
  const n = document.createElement("div");
244
- n.classList.add("vf-mask"), e.appendChild(n), e[$] = { maskEl: n };
245
+ n.classList.add("vf-mask"), e.appendChild(n), e[A] = { maskEl: n };
245
246
  }
246
- return e[$].maskEl.innerText = t ?? "", () => Ie(e);
247
+ return e[A].maskEl.innerText = t ?? "", () => Me(e);
247
248
  }
248
- function Ie(e) {
249
- e[$] && e.removeChild(e[$].maskEl);
249
+ function Me(e) {
250
+ e[A] && e.removeChild(e[A].maskEl);
250
251
  }
251
252
  const Q = Symbol("FormMaskState");
252
253
  function pt(e, t, n) {
253
- const i = e instanceof Element ? e : _e(e);
254
+ const i = e instanceof Element ? e : He(e);
254
255
  i.classList.add("vf-masked");
255
256
  const s = t instanceof Element ? t : i.querySelectorAll(t ?? 'button:not([disabled]):not([type="button"])')[0];
256
257
  let o;
@@ -260,13 +261,13 @@ function pt(e, t, n) {
260
261
  disabledElements: l,
261
262
  waitButton: s,
262
263
  buttonHtml: o
263
- }, () => He(i);
264
+ }, () => Ie(i);
264
265
  }
265
- function He(e) {
266
- const t = e instanceof Element ? e : _e(e), n = t[Q];
266
+ function Ie(e) {
267
+ const t = e instanceof Element ? e : He(e), n = t[Q];
267
268
  n && (t.classList.remove("vf-masked"), n.disabledElements.forEach((i) => i.removeAttribute("disabled")), n.waitButton && (n.waitButton.innerHTML = n.buttonHtml, n.waitButton.removeAttribute("disabled")), delete t[Q]);
268
269
  }
269
- function _e(e) {
270
+ function He(e) {
270
271
  const t = e.$.vnode.el;
271
272
  return t.tagName === "FORM" ? t : t.querySelector("form");
272
273
  }
@@ -276,7 +277,7 @@ const mt = ["id"], vt = {
276
277
  }, yt = { class: "vf-modal-content" }, gt = {
277
278
  key: 1,
278
279
  class: "vf-modal-footer"
279
- }, bt = /* @__PURE__ */ x({
280
+ }, Et = /* @__PURE__ */ C({
280
281
  __name: "modal",
281
282
  props: {
282
283
  id: {},
@@ -288,70 +289,70 @@ const mt = ["id"], vt = {
288
289
  emits: ["formSubmit"],
289
290
  setup(e, { expose: t }) {
290
291
  const n = ee(), i = e;
291
- t({ mask: m, unmask: y, hide: p, unhide: c });
292
- const s = w(), o = w(), r = w(!1), l = F(() => Ye([i.class, r.value && "hidden"]));
292
+ t({ mask: m, unmask: y, hide: f, unhide: h });
293
+ const s = O(), o = O(), r = O(!1), l = V(() => ze([i.class, r.value && "hidden"]));
293
294
  L(() => {
294
- var d;
295
- document.body.classList.add("vf-modal-open"), i.closeOnMaskClick && (window.addEventListener("keydown", u), (d = s.value) == null || d.addEventListener("click", a));
295
+ var c;
296
+ document.body.classList.add("vf-modal-open"), i.closeOnMaskClick && (window.addEventListener("keydown", p), (c = s.value) == null || c.addEventListener("click", a));
296
297
  }), ne(() => {
297
- window.removeEventListener("keydown", u), document.body.querySelectorAll(".vf-modal").length > 0 || document.body.classList.remove("vf-modal-open");
298
+ window.removeEventListener("keydown", p), document.body.querySelectorAll(".vf-modal").length > 0 || document.body.classList.remove("vf-modal-open");
298
299
  });
299
- function a(d) {
300
- d.target == s.value && b();
300
+ function a(c) {
301
+ c.target == s.value && g();
301
302
  }
302
- function u(d) {
303
- if (d.key === "Esc" || d.key === "Escape") {
304
- const E = document.querySelectorAll(".vf-modal-wrap");
305
- E[E.length - 1] === s.value && b();
303
+ function p(c) {
304
+ if (c.key === "Esc" || c.key === "Escape") {
305
+ const T = document.querySelectorAll(".vf-modal-wrap");
306
+ T[T.length - 1] === s.value && g();
306
307
  }
307
308
  }
308
- function b() {
309
- Me(n);
309
+ function g() {
310
+ Le(n);
310
311
  }
311
312
  function m() {
312
313
  pt(o.value);
313
314
  }
314
315
  function y() {
315
- He(o.value);
316
+ Ie(o.value);
316
317
  }
317
- function p() {
318
+ function f() {
318
319
  r.value = !0;
319
320
  }
320
- function c() {
321
+ function h() {
321
322
  r.value = !1;
322
323
  }
323
- return (d, E) => (h(), f("div", {
324
- id: d.id,
324
+ return (c, T) => (d(), u("div", {
325
+ id: c.id,
325
326
  class: k(["vf-overlay vf-modal-wrap", l.value]),
326
327
  ref_key: "overlay",
327
328
  ref: s
328
329
  }, [
329
- T("form", {
330
+ w("form", {
330
331
  action: ".",
331
- class: k(["vf-modal", { scrolls: d.scrolls }]),
332
- onSubmit: E[0] || (E[0] = te((M) => d.$emit("formSubmit"), ["prevent"])),
332
+ class: k(["vf-modal", { scrolls: c.scrolls }]),
333
+ onSubmit: T[0] || (T[0] = te((M) => c.$emit("formSubmit"), ["prevent"])),
333
334
  ref_key: "form",
334
335
  ref: o
335
336
  }, [
336
- d.$slots.header ? (h(), f("div", vt, [
337
- U(d.$slots, "header"),
338
- i.closeX ? (h(), f("i", {
337
+ c.$slots.header ? (d(), u("div", vt, [
338
+ K(c.$slots, "header"),
339
+ i.closeX ? (d(), u("i", {
339
340
  key: 0,
340
341
  class: "close",
341
- onClick: b
342
- })) : O("", !0)
343
- ])) : O("", !0),
344
- T("div", yt, [
345
- U(d.$slots, "default")
342
+ onClick: g
343
+ })) : b("", !0)
344
+ ])) : b("", !0),
345
+ w("div", yt, [
346
+ K(c.$slots, "default")
346
347
  ]),
347
- d.$slots.footer ? (h(), f("div", gt, [
348
- U(d.$slots, "footer")
349
- ])) : O("", !0)
348
+ c.$slots.footer ? (d(), u("div", gt, [
349
+ K(c.$slots, "footer")
350
+ ])) : b("", !0)
350
351
  ], 34)
351
352
  ], 10, mt));
352
353
  }
353
354
  });
354
- const Et = ["innerHtml"], Tt = ["innerText"], X = /* @__PURE__ */ x({
355
+ const Tt = ["innerHtml"], wt = ["innerText"], X = /* @__PURE__ */ C({
355
356
  __name: "alert-modal",
356
357
  props: {
357
358
  isBare: { type: Boolean },
@@ -363,53 +364,53 @@ const Et = ["innerHtml"], Tt = ["innerText"], X = /* @__PURE__ */ x({
363
364
  callback: { type: Function }
364
365
  },
365
366
  setup(e) {
366
- const t = e, n = F(() => t.message instanceof Error ? ht(t.message) : t.message);
367
+ const t = e, n = V(() => t.message instanceof Error ? ht(t.message) : t.message);
367
368
  return (i, s) => {
368
369
  const o = Oe("autofocus");
369
- return h(), ke(bt, {
370
+ return d(), be(Et, {
370
371
  class: k(["vf-alert", i.classes])
371
- }, ze({
372
+ }, Pe({
372
373
  default: Y(() => [
373
- i.isHtml ? (h(), f("div", {
374
+ i.isHtml ? (d(), u("div", {
374
375
  key: 0,
375
376
  innerHtml: i.message,
376
377
  class: "user-message"
377
- }, null, 8, Et)) : (h(), f("div", {
378
+ }, null, 8, Tt)) : (d(), u("div", {
378
379
  key: 1,
379
380
  innerText: n.value
380
- }, null, 8, Tt))
381
+ }, null, 8, wt))
381
382
  ]),
382
383
  _: 2
383
384
  }, [
384
385
  i.title ? {
385
386
  name: "header",
386
387
  fn: Y(() => [
387
- T("h1", null, C(i.title), 1)
388
+ w("h1", null, x(i.title), 1)
388
389
  ]),
389
390
  key: "0"
390
391
  } : void 0,
391
392
  i.isBare ? void 0 : {
392
393
  name: "footer",
393
394
  fn: Y(() => [
394
- i.shouldConfirm ? (h(), f(j, { key: 0 }, [
395
- K((h(), f("button", {
395
+ i.shouldConfirm ? (d(), u(U, { key: 0 }, [
396
+ j((d(), u("button", {
396
397
  class: "primary",
397
398
  onClick: s[0] || (s[0] = () => i.callback(!0))
398
399
  }, [
399
- ce("Confirm")
400
+ ae("Confirm")
400
401
  ])), [
401
402
  [o]
402
403
  ]),
403
- T("button", {
404
+ w("button", {
404
405
  class: "default",
405
406
  onClick: s[1] || (s[1] = () => i.callback(!1))
406
407
  }, "Cancel")
407
- ], 64)) : K((h(), f("button", {
408
+ ], 64)) : j((d(), u("button", {
408
409
  key: 1,
409
410
  class: "default",
410
411
  onClick: s[2] || (s[2] = () => i.callback(!0))
411
412
  }, [
412
- ce("OK")
413
+ ae("OK")
413
414
  ])), [
414
415
  [o]
415
416
  ])
@@ -421,26 +422,26 @@ const Et = ["innerHtml"], Tt = ["innerText"], X = /* @__PURE__ */ x({
421
422
  }
422
423
  });
423
424
  let R;
424
- const wt = new Uint8Array(16);
425
- function Ot() {
425
+ const Ot = new Uint8Array(16);
426
+ function bt() {
426
427
  if (!R && (R = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !R))
427
428
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
428
- return R(wt);
429
+ return R(Ot);
429
430
  }
430
- const g = [];
431
+ const v = [];
431
432
  for (let e = 0; e < 256; ++e)
432
- g.push((e + 256).toString(16).slice(1));
433
+ v.push((e + 256).toString(16).slice(1));
433
434
  function kt(e, t = 0) {
434
- return g[e[t + 0]] + g[e[t + 1]] + g[e[t + 2]] + g[e[t + 3]] + "-" + g[e[t + 4]] + g[e[t + 5]] + "-" + g[e[t + 6]] + g[e[t + 7]] + "-" + g[e[t + 8]] + g[e[t + 9]] + "-" + g[e[t + 10]] + g[e[t + 11]] + g[e[t + 12]] + g[e[t + 13]] + g[e[t + 14]] + g[e[t + 15]];
435
+ return v[e[t + 0]] + v[e[t + 1]] + v[e[t + 2]] + v[e[t + 3]] + "-" + v[e[t + 4]] + v[e[t + 5]] + "-" + v[e[t + 6]] + v[e[t + 7]] + "-" + v[e[t + 8]] + v[e[t + 9]] + "-" + v[e[t + 10]] + v[e[t + 11]] + v[e[t + 12]] + v[e[t + 13]] + v[e[t + 14]] + v[e[t + 15]];
435
436
  }
436
- const St = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), he = {
437
+ const St = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ue = {
437
438
  randomUUID: St
438
439
  };
439
- function xt(e, t, n) {
440
- if (he.randomUUID && !t && !e)
441
- return he.randomUUID();
440
+ function Ct(e, t, n) {
441
+ if (ue.randomUUID && !t && !e)
442
+ return ue.randomUUID();
442
443
  e = e || {};
443
- const i = e.random || (e.rng || Ot)();
444
+ const i = e.random || (e.rng || bt)();
444
445
  if (i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128, t) {
445
446
  n = n || 0;
446
447
  for (let s = 0; s < 16; ++s)
@@ -449,10 +450,10 @@ function xt(e, t, n) {
449
450
  }
450
451
  return kt(i);
451
452
  }
452
- function Pn(e) {
453
+ function jn(e) {
453
454
  return e.replace(/\n/g, "<br>");
454
455
  }
455
- function Ct(e) {
456
+ function xt(e) {
456
457
  return e.replace(/_/g, " ");
457
458
  }
458
459
  function Lt(e) {
@@ -462,10 +463,10 @@ function Lt(e) {
462
463
  function Mt(e) {
463
464
  return "$" + Number(e).toFixed(3).replace(/0$/, "").replace(/\B(?=(\d{3})+(?!\d))/g, ",");
464
465
  }
465
- function qn() {
466
- return xt();
466
+ function Un() {
467
+ return Ct();
467
468
  }
468
- const H = Symbol("null"), fe = Symbol("create"), It = "`1234567890-=[]\\;',./~!@#$%^&*()_+{}|:\"<>?qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", Ht = {
469
+ const H = Symbol("null"), he = Symbol("create"), It = "`1234567890-=[]\\;',./~!@#$%^&*()_+{}|:\"<>?qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", Ht = {
469
470
  props: {
470
471
  modelValue: {
471
472
  type: null,
@@ -544,8 +545,8 @@ const H = Symbol("null"), fe = Symbol("create"), It = "`1234567890-=[]\\;',./~!@
544
545
  return this.allOptions.map((e, t) => {
545
546
  var l, a;
546
547
  const n = this.formatter(e), i = (l = this.subtitleFormatter) == null ? void 0 : l.call(this, e), s = n ? n.trim().toLowerCase() : "", o = i ? i.trim().toLowerCase() : "", r = [];
547
- return this.searchFields ? this.searchFields.forEach((u) => {
548
- e[u] && r.push(String(e[u]).toLowerCase());
548
+ return this.searchFields ? this.searchFields.forEach((p) => {
549
+ e[p] && r.push(String(e[p]).toLowerCase());
549
550
  }) : (r.push(s), o && r.push(o)), {
550
551
  // eslint-disable-next-line vue/no-use-computed-property-like-method
551
552
  key: ((a = this.effectiveKeyExtractor) == null ? void 0 : a.call(this, e)) ?? String(t),
@@ -562,7 +563,7 @@ const H = Symbol("null"), fe = Symbol("create"), It = "`1234567890-=[]\\;',./~!@
562
563
  const t = this.searchText.trim().toLowerCase();
563
564
  if (t.length) {
564
565
  e = e.filter((s) => s.searchContent.includes(t));
565
- const n = tt(this.searchText).replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&"), i = new RegExp(`(${n})`, "ig");
566
+ const n = Je(this.searchText).replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&"), i = new RegExp(`(${n})`, "ig");
566
567
  e = e.map((s) => {
567
568
  var o;
568
569
  return {
@@ -571,7 +572,7 @@ const H = Symbol("null"), fe = Symbol("create"), It = "`1234567890-=[]\\;',./~!@
571
572
  subtitle: (o = s.subtitle) == null ? void 0 : o.replace(i, "<mark>$1</mark>")
572
573
  };
573
574
  }), this.shouldShowCreateOption && (e.find((o) => o.searchContent === t) !== void 0 || e.push({
574
- key: fe,
575
+ key: he,
575
576
  title: "Create <strong>" + this.searchText.trim() + "</strong>..."
576
577
  }));
577
578
  }
@@ -612,7 +613,7 @@ const H = Symbol("null"), fe = Symbol("create"), It = "`1234567890-=[]\\;',./~!@
612
613
  "update:modelValue",
613
614
  this.selectedOption && this.valueExtractor ? this.valueExtractor(this.selectedOption) : this.selectedOption
614
615
  );
615
- }), this.remoteSearch && this.$watch("searchText", Ze(this.reloadOptionsIfSearching, 250));
616
+ }), this.remoteSearch && this.$watch("searchText", Xe(this.reloadOptionsIfSearching, 250));
616
617
  },
617
618
  methods: {
618
619
  async loadRemoteOptions() {
@@ -711,7 +712,7 @@ const H = Symbol("null"), fe = Symbol("create"), It = "`1234567890-=[]\\;',./~!@
711
712
  var t;
712
713
  if (this.isSearching = !1, e.key == H)
713
714
  this.searchText = "", this.selectedOption = null, this.selectedOptionTitle = null;
714
- else if (e.key === fe) {
715
+ else if (e.key === he) {
715
716
  const n = this.searchText.trim();
716
717
  this.searchText = "", this.selectedOption = null, this.selectedOptionTitle = null, (t = this.onCreateItem) == null || t.call(this, n);
717
718
  } else {
@@ -732,19 +733,19 @@ const _t = ["placeholder", "required"], Dt = {
732
733
  key: 0,
733
734
  ref: "optionsContainer",
734
735
  class: "vf-smart-select-options"
735
- }, $t = {
736
+ }, At = {
736
737
  key: 0,
737
738
  class: "no-results"
738
- }, At = ["onMousemove", "onMousedown"], Bt = ["innerHTML"], Ft = ["innerHTML"], Vt = {
739
+ }, $t = ["onMousemove", "onMousedown"], Bt = ["innerHTML"], Vt = ["innerHTML"], Ft = {
739
740
  key: 0,
740
741
  class: "no-results"
741
742
  };
742
743
  function Nt(e, t, n, i, s, o) {
743
744
  const r = Oe("disabled");
744
- return h(), f("div", {
745
+ return d(), u("div", {
745
746
  class: k(["vf-smart-select", { disabled: o.effectiveDisabled, open: e.shouldDisplayOptions }])
746
747
  }, [
747
- K(T("input", {
748
+ j(w("input", {
748
749
  "onUpdate:modelValue": t[0] || (t[0] = (l) => e.searchText = l),
749
750
  ref: "searchField",
750
751
  type: "text",
@@ -755,12 +756,12 @@ function Nt(e, t, n, i, s, o) {
755
756
  onBlur: t[3] || (t[3] = (...l) => o.handleInputBlurred && o.handleInputBlurred(...l)),
756
757
  required: n.required
757
758
  }, null, 42, _t), [
758
- [Xe, e.searchText],
759
+ [qe, e.searchText],
759
760
  [r, o.effectiveDisabled]
760
761
  ]),
761
- e.shouldDisplayOptions ? (h(), f("div", Dt, [
762
- e.isLoaded ? (h(), f(j, { key: 1 }, [
763
- (h(!0), f(j, null, J(o.effectiveOptions, (l) => (h(), f("div", {
762
+ e.shouldDisplayOptions ? (d(), u("div", Dt, [
763
+ e.isLoaded ? (d(), u(U, { key: 1 }, [
764
+ (d(!0), u(U, null, J(o.effectiveOptions, (l) => (d(), u("div", {
764
765
  key: String(l.key),
765
766
  class: k(["option", {
766
767
  highlighted: e.highlightedOptionKey === l.key
@@ -768,22 +769,22 @@ function Nt(e, t, n, i, s, o) {
768
769
  onMousemove: (a) => o.handleOptionHover(l),
769
770
  onMousedown: (a) => o.selectOption(l)
770
771
  }, [
771
- T("div", {
772
+ w("div", {
772
773
  class: "title",
773
774
  innerHTML: l.title
774
775
  }, null, 8, Bt),
775
- l.subtitle ? (h(), f("div", {
776
+ l.subtitle ? (d(), u("div", {
776
777
  key: 0,
777
778
  class: "subtitle",
778
779
  innerHTML: l.subtitle
779
- }, null, 8, Ft)) : O("", !0)
780
- ], 42, At))), 128)),
781
- !o.effectiveOptions.length && e.searchText ? (h(), f("div", Vt, C(o.effectiveNoResultsText), 1)) : O("", !0)
782
- ], 64)) : (h(), f("div", $t, "Loading..."))
783
- ], 512)) : O("", !0)
780
+ }, null, 8, Vt)) : b("", !0)
781
+ ], 42, $t))), 128)),
782
+ !o.effectiveOptions.length && e.searchText ? (d(), u("div", Ft, x(o.effectiveNoResultsText), 1)) : b("", !0)
783
+ ], 64)) : (d(), u("div", At, "Loading..."))
784
+ ], 512)) : b("", !0)
784
785
  ], 2);
785
786
  }
786
- const Rt = /* @__PURE__ */ Le(Ht, [["render", Nt]]), zn = /* @__PURE__ */ x({
787
+ const Rt = /* @__PURE__ */ xe(Ht, [["render", Nt]]), Wn = /* @__PURE__ */ C({
787
788
  __name: "ez-smart-select",
788
789
  props: {
789
790
  modelValue: {},
@@ -794,36 +795,36 @@ const Rt = /* @__PURE__ */ Le(Ht, [["render", Nt]]), zn = /* @__PURE__ */ x({
794
795
  },
795
796
  emits: ["update:modelValue"],
796
797
  setup(e, { emit: t }) {
797
- const n = e, i = F(() => Array.isArray(n.options) ? n.options.map((l) => ({ value: l, label: l })) : Object.entries(n.options).map(([l, a]) => ({
798
+ const n = e, i = V(() => Array.isArray(n.options) ? n.options.map((l) => ({ value: l, label: l })) : Object.entries(n.options).map(([l, a]) => ({
798
799
  value: l,
799
800
  label: a
800
- }))), s = F(() => n.formatter ? (l) => {
801
+ }))), s = V(() => n.formatter ? (l) => {
801
802
  var a;
802
803
  return (a = n.formatter) == null ? void 0 : a.call(n, l.label);
803
- } : (l) => l.label), o = t, r = w(i.value.find((l) => l.value === n.modelValue) ?? null);
804
- return de(
804
+ } : (l) => l.label), o = t, r = O(i.value.find((l) => l.value === n.modelValue) ?? null);
805
+ return ce(
805
806
  () => n.modelValue,
806
807
  (l) => {
807
808
  r.value = i.value.find((a) => a.value === l) ?? null;
808
809
  }
809
- ), de(r, (l) => {
810
+ ), ce(r, (l) => {
810
811
  var a;
811
- o("update:modelValue", l ? ((a = i.value.find((u) => Ce(u, l))) == null ? void 0 : a.value) ?? null : null);
812
- }), (l, a) => (h(), ke(Rt, {
812
+ o("update:modelValue", l ? ((a = i.value.find((p) => Ce(p, l))) == null ? void 0 : a.value) ?? null : null);
813
+ }), (l, a) => (d(), be(Rt, {
813
814
  modelValue: r.value,
814
- "onUpdate:modelValue": a[0] || (a[0] = (u) => r.value = u),
815
+ "onUpdate:modelValue": a[0] || (a[0] = (p) => r.value = p),
815
816
  options: i.value,
816
817
  formatter: s.value,
817
818
  "null-title": l.nullTitle
818
819
  }, null, 8, ["modelValue", "options", "formatter", "null-title"]));
819
820
  }
820
- }), Ut = ["onClick"], Kt = { class: "content" }, jt = { class: "message" }, Wt = {
821
+ }), Kt = ["onClick"], jt = { class: "content" }, Ut = { class: "message" }, Wt = {
821
822
  key: 0,
822
823
  class: "close"
823
824
  }, Pt = {
824
825
  key: 0,
825
826
  class: "progress-bar"
826
- }, qt = /* @__PURE__ */ x({
827
+ }, qt = /* @__PURE__ */ C({
827
828
  __name: "toast",
828
829
  props: {
829
830
  message: {},
@@ -838,7 +839,7 @@ const Rt = /* @__PURE__ */ Le(Ht, [["render", Nt]]), zn = /* @__PURE__ */ x({
838
839
  function n() {
839
840
  t.onClick ? t.onClick() : t.disableClose || t.callback();
840
841
  }
841
- const i = w();
842
+ const i = O();
842
843
  return t.durationSecs !== null && L(() => {
843
844
  var o;
844
845
  const s = t.durationSecs ?? 5;
@@ -846,25 +847,25 @@ const Rt = /* @__PURE__ */ Le(Ht, [["render", Nt]]), zn = /* @__PURE__ */ x({
846
847
  duration: s * 1e3,
847
848
  easing: "linear"
848
849
  }), setTimeout(() => t.callback(), s * 1e3);
849
- }), (s, o) => (h(), f("div", {
850
+ }), (s, o) => (d(), u("div", {
850
851
  class: k(["vf-toast", s.className]),
851
852
  onClick: te(n, ["stop"])
852
853
  }, [
853
- T("div", Kt, [
854
- T("div", jt, C(s.message), 1),
855
- s.disableClose ? O("", !0) : (h(), f("div", Wt, "x"))
854
+ w("div", jt, [
855
+ w("div", Ut, x(s.message), 1),
856
+ s.disableClose ? b("", !0) : (d(), u("div", Wt, "x"))
856
857
  ]),
857
- s.durationSecs !== null ? (h(), f("div", Pt, [
858
- T("div", {
858
+ s.durationSecs !== null ? (d(), u("div", Pt, [
859
+ w("div", {
859
860
  ref_key: "progressInnerEl",
860
861
  ref: i,
861
862
  class: "inner"
862
863
  }, null, 512)
863
- ])) : O("", !0)
864
- ], 10, Ut));
864
+ ])) : b("", !0)
865
+ ], 10, Kt));
865
866
  }
866
867
  });
867
- function Xn(e) {
868
+ function Pn(e) {
868
869
  const t = ie(qt, {
869
870
  ...e,
870
871
  callback: () => P(t)
@@ -888,21 +889,21 @@ function Gt(e) {
888
889
  return e && Lt(e);
889
890
  }
890
891
  function Qt(e) {
891
- return e ? Ge(e) : null;
892
+ return e ? Ye(e) : null;
892
893
  }
893
894
  function Jt(e) {
894
- return e ? Qe(e) : null;
895
+ return e ? Ze(e) : null;
895
896
  }
896
897
  function en(e) {
897
898
  return e ? e.toUpperCase() : null;
898
899
  }
899
900
  function tn(e) {
900
- return e ? Ct(e) : null;
901
+ return e ? xt(e) : null;
901
902
  }
902
903
  function nn(e) {
903
904
  return Mt(e);
904
905
  }
905
- const pe = {
906
+ const fe = {
906
907
  bytes: zt,
907
908
  dash: Xt,
908
909
  dashZeros: Yt,
@@ -913,161 +914,106 @@ const pe = {
913
914
  upperCase: en,
914
915
  desnake: tn,
915
916
  usCurrency: nn
916
- }, Yn = (e) => ({
917
- ...pe,
918
- ...e(pe)
917
+ }, qn = (e) => ({
918
+ ...fe,
919
+ ...e(fe)
919
920
  });
920
- function Zn(e, t, n) {
921
+ function zn(e, t, n) {
921
922
  const i = typeof t == "function" ? e.findIndex(t) : e.indexOf(t);
922
923
  return i === -1 ? !1 : (e.splice(i, 1, n), !0);
923
924
  }
924
- function Gn(e, t) {
925
+ function Xn(e, t) {
925
926
  const n = document.createElement("div");
926
927
  n.classList.add("vf-overlay"), n.addEventListener("click", m), document.body.appendChild(n);
927
928
  const i = document.createElement("div");
928
929
  i.classList.add("vf-context-menu"), i.style.position = "absolute", n.appendChild(i);
929
930
  const s = e.currentTarget;
930
- 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((p) => {
931
- if (p == "-") {
932
- const d = document.createElement("div");
933
- d.classList.add("separator"), i.appendChild(d);
931
+ 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((f) => {
932
+ if (f == "-") {
933
+ const c = document.createElement("div");
934
+ c.classList.add("separator"), i.appendChild(c);
934
935
  return;
935
936
  }
936
- const c = document.createElement("div");
937
- c.classList.add("item"), c.style.userSelect = "none", c.innerText = p.title, i.appendChild(c), p.class && c.classList.add(p.class), p.shouldConfirm ? c.addEventListener("click", (d) => y(d, c, p.handler)) : c.addEventListener("click", () => p.handler());
937
+ const h = document.createElement("div");
938
+ h.classList.add("item"), h.style.userSelect = "none", h.innerText = f.title, i.appendChild(h), f.class && h.classList.add(f.class), f.shouldConfirm ? h.addEventListener("click", (c) => y(c, h, f.handler)) : h.addEventListener("click", () => f.handler());
938
939
  });
939
- const o = window.innerWidth - e.clientX, r = window.innerHeight - e.clientY, l = i.offsetHeight, a = i.offsetWidth, u = o < a ? e.clientX - a - 1 : e.clientX + 1, b = r < l ? e.clientY - l - 1 : e.clientY + 1;
940
- i.style.left = u + "px", i.style.top = b + "px", setTimeout(() => {
940
+ const o = window.innerWidth - e.clientX, r = window.innerHeight - e.clientY, l = i.offsetHeight, a = i.offsetWidth, p = o < a ? e.clientX - a - 1 : e.clientX + 1, g = r < l ? e.clientY - l - 1 : e.clientY + 1;
941
+ i.style.left = p + "px", i.style.top = g + "px", setTimeout(() => {
941
942
  i.style.width = i.offsetWidth + "px";
942
943
  }, 50);
943
944
  function m() {
944
945
  t.targetClass && s.classList.remove(t.targetClass), s.classList.remove("context-menu-active"), s.style.userSelect = "", n.remove();
945
946
  }
946
- function y(p, c, d) {
947
- if (c.classList.contains("pending-confirm"))
948
- return d();
949
- const E = c.innerHTML;
950
- c.classList.add("pending-confirm"), c.innerText = "Confirm";
947
+ function y(f, h, c) {
948
+ if (h.classList.contains("pending-confirm"))
949
+ return c();
950
+ const T = h.innerHTML;
951
+ h.classList.add("pending-confirm"), h.innerText = "Confirm";
951
952
  const M = () => {
952
- c.classList.remove("pending-confirm"), c.innerHTML = E, c.removeEventListener("mouseleave", M);
953
+ h.classList.remove("pending-confirm"), h.innerHTML = T, h.removeEventListener("mouseleave", M);
953
954
  };
954
- c.addEventListener("mouseleave", M), p.stopPropagation();
955
+ h.addEventListener("mouseleave", M), f.stopPropagation();
955
956
  }
956
957
  }
957
- const sn = (e) => new Promise((t) => setTimeout(t, e)), Qn = (e) => sn(e * 1e3);
958
+ const sn = (e) => new Promise((t) => setTimeout(t, e)), Yn = (e) => sn(e * 1e3);
958
959
  function on(e) {
959
960
  return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
960
961
  }
961
- function Jn(e, t) {
962
- return e != null ? Je(e) : t;
962
+ function Zn(e, t) {
963
+ return e != null ? Ge(e) : t;
963
964
  }
964
- function ei(e, t) {
965
+ function Gn(e, t) {
965
966
  const n = { ...e };
966
967
  for (const i of t)
967
968
  n[i] === "" && (n[i] = null);
968
969
  return n;
969
970
  }
970
- function De(e) {
971
- return e instanceof Error && "status" in e && "body" in e;
972
- }
973
- function ln({ apiClient: e, wrapper: t, onRequest: n, onError: i, afterRequest: s, CancelablePromise: o }) {
974
- const r = e.request.request.bind(e.request), l = t ?? ((a, u) => u(a));
975
- e.request.request = (a) => l(a, (u) => (u = cn(u), n && (u = n(u)), new o((b, m, y) => {
976
- const p = r(u);
977
- y(p.cancel), p.then(b).catch((c) => {
978
- if (De(c) && typeof c.body == "object" && "error" in c.body && (c.message = `${c.body.error} (${c.status})`), i) {
979
- const d = i(c, u);
980
- if (d === null)
981
- return;
982
- if (d instanceof Error)
983
- return m(d);
984
- }
985
- m(c);
986
- }).finally(() => s == null ? void 0 : s(u));
987
- })));
988
- }
989
- class le {
990
- constructor() {
991
- v(this, "validator", null);
992
- v(this, "lastModifiedDate", null);
993
- v(this, "size", 0);
994
- v(this, "path", "");
995
- v(this, "name", "");
996
- v(this, "type", "");
997
- }
998
- }
999
- class rn extends le {
1000
- constructor(n) {
1001
- super();
1002
- v(this, "blob");
1003
- this.blob = n;
1004
- }
1005
- }
1006
- class an extends le {
1007
- constructor(n) {
1008
- super();
1009
- v(this, "uri");
1010
- this.uri = n.uri, this.name = n.name ?? void 0, this.type = n.type ?? void 0;
1011
- }
1012
- }
1013
- function cn(e) {
1014
- if (typeof e.body != "object" || !Object.values(e.body).some((s) => s instanceof le))
1015
- return e;
1016
- const n = new FormData(), i = {};
1017
- for (const [s, o] of Object.entries(e.body))
1018
- o instanceof an ? n.append(s, o) : o instanceof rn ? n.append(s, o.blob) : i[s] = o;
1019
- return n.append("_payload", JSON.stringify(i)), {
1020
- ...e,
1021
- mediaType: void 0,
1022
- body: n
1023
- };
1024
- }
1025
- function ti(e) {
1026
- ln({
971
+ function Qn(e) {
972
+ et({
1027
973
  ...e,
1028
974
  onError(t, n) {
1029
975
  var s;
1030
- De(t) && t.status === 422 && typeof t.body == "object" && "error" in t.body && (t = new z(t.body.error));
976
+ tt(t) && t.status === 422 && typeof t.body == "object" && "error" in t.body && (t = new z(t.body.error));
1031
977
  const i = (s = e.onError) == null ? void 0 : s.call(e, t, n);
1032
978
  return i !== void 0 ? i : t;
1033
979
  }
1034
980
  });
1035
981
  }
1036
- const re = Symbol("HookState");
1037
- function ni(e, t) {
982
+ const le = Symbol("HookState");
983
+ function Jn(e, t) {
1038
984
  const n = t ?? ee();
1039
- L(() => dn(n, e), n), Se(() => un(n), n), xe(() => me(n), n), ne(() => me(n), n);
985
+ L(() => ln(n, e), n), ke(() => rn(n), n), Se(() => pe(n), n), ne(() => pe(n), n);
1040
986
  }
1041
- function dn(e, t) {
987
+ function ln(e, t) {
1042
988
  const n = {};
1043
- if (t.elScrolledToBottom && (n.el = new A(e.vnode.el, t.elScrolledToBottom)), t.ancestorScrolledToBottom) {
1044
- const i = $e(e.vnode.el);
1045
- i ? n.ancestor = new A(i, t.ancestorScrolledToBottom) : console.warn("[VueFoundation] No scollable ancestor found for component:", e);
989
+ if (t.elScrolledToBottom && (n.el = new $(e.vnode.el, t.elScrolledToBottom)), t.ancestorScrolledToBottom) {
990
+ const i = _e(e.vnode.el);
991
+ i ? n.ancestor = new $(i, t.ancestorScrolledToBottom) : console.warn("[VueFoundation] No scollable ancestor found for component:", e);
1046
992
  }
1047
- t.windowScrolledToBottom && (n.window = new A(window, t.windowScrolledToBottom)), e[re] = n;
993
+ t.windowScrolledToBottom && (n.window = new $(window, t.windowScrolledToBottom)), e[le] = n;
1048
994
  }
1049
- function un(e) {
995
+ function rn(e) {
1050
996
  var n, i, s;
1051
- const t = e[re];
997
+ const t = e[le];
1052
998
  (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();
1053
999
  }
1054
- function me(e) {
1000
+ function pe(e) {
1055
1001
  var n, i, s;
1056
- const t = e[re];
1002
+ const t = e[le];
1057
1003
  (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();
1058
1004
  }
1059
1005
  const Z = ["auto", "scroll"];
1060
- function $e(e) {
1006
+ function _e(e) {
1061
1007
  const t = e.parentElement;
1062
1008
  if (!t)
1063
1009
  return null;
1064
1010
  const n = window.getComputedStyle(t);
1065
- return Z.includes(n.overflow) || Z.includes(n.overflowX) || Z.includes(n.overflowY) ? t : $e(t);
1011
+ return Z.includes(n.overflow) || Z.includes(n.overflowX) || Z.includes(n.overflowY) ? t : _e(t);
1066
1012
  }
1067
- class A {
1013
+ class $ {
1068
1014
  constructor(t, n) {
1069
- v(this, "isTripped", !1);
1070
- v(this, "onScrollWithContext", this.onScroll.bind(this));
1015
+ E(this, "isTripped", !1);
1016
+ E(this, "onScrollWithContext", this.onScroll.bind(this));
1071
1017
  this.el = t, this.handler = n, this.install();
1072
1018
  }
1073
1019
  install() {
@@ -1080,24 +1026,24 @@ class A {
1080
1026
  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);
1081
1027
  }
1082
1028
  }
1083
- function ii(e) {
1084
- L(() => window.addEventListener("resize", e)), Se(() => window.addEventListener("resize", e)), xe(() => window.removeEventListener("resize", e)), ne(() => window.removeEventListener("resize", e));
1029
+ function ei(e) {
1030
+ L(() => window.addEventListener("resize", e)), ke(() => window.addEventListener("resize", e)), Se(() => window.removeEventListener("resize", e)), ne(() => window.removeEventListener("resize", e));
1085
1031
  }
1086
- const hn = {
1087
- mounted: ye,
1088
- updated: ye
1089
- }, ve = Symbol("HasAutoFocused");
1090
- function ye(e, t) {
1091
- if (t.value === void 0 && e[ve] || t.value !== void 0 && !t.value || t.oldValue !== void 0 && t.value == t.oldValue)
1032
+ const an = {
1033
+ mounted: ve,
1034
+ updated: ve
1035
+ }, me = Symbol("HasAutoFocused");
1036
+ function ve(e, t) {
1037
+ if (t.value === void 0 && e[me] || t.value !== void 0 && !t.value || t.oldValue !== void 0 && t.value == t.oldValue)
1092
1038
  return;
1093
- e[ve] = !0;
1039
+ e[me] = !0;
1094
1040
  const n = ["BUTTON", "INPUT", "TEXTAREA", "SELECT"].indexOf(e.tagName) > -1 ? e : e.querySelectorAll("input")[0];
1095
1041
  setTimeout(() => n.focus(), 10);
1096
1042
  }
1097
- const fn = {
1098
- mounted: pn
1043
+ const cn = {
1044
+ mounted: dn
1099
1045
  }, _ = Symbol("ConfirmState");
1100
- function pn(e) {
1046
+ function dn(e) {
1101
1047
  e.addEventListener("click", (t) => {
1102
1048
  const n = Date.now();
1103
1049
  if (e[_]) {
@@ -1117,10 +1063,10 @@ function pn(e) {
1117
1063
  e[_] = i, e.innerHTML = "Confirm", e.addEventListener("mouseout", i.resetHandler);
1118
1064
  });
1119
1065
  }
1120
- const mn = {
1121
- beforeMount: vn
1066
+ const un = {
1067
+ beforeMount: hn
1122
1068
  };
1123
- function vn(e) {
1069
+ function hn(e) {
1124
1070
  e.addEventListener("blur", () => {
1125
1071
  let t = e.value;
1126
1072
  /^\d{1,2}\/\d{1,2}$/.test(t) && (t += "/" + G(/* @__PURE__ */ new Date(), "yy"));
@@ -1128,69 +1074,69 @@ function vn(e) {
1128
1074
  isNaN(n) ? e.value = "" : e.value = G(n, "MM/dd/yyyy"), e.dispatchEvent(new Event("input"));
1129
1075
  });
1130
1076
  }
1131
- const yn = {
1132
- beforeMount: ge,
1133
- updated: ge
1077
+ const fn = {
1078
+ beforeMount: ye,
1079
+ updated: ye
1134
1080
  };
1135
- function ge(e, t) {
1136
- t.value == t.oldValue && e.innerHTML.length || (e.innerText = gn(e, t));
1081
+ function ye(e, t) {
1082
+ t.value == t.oldValue && e.innerHTML.length || (e.innerText = pn(e, t));
1137
1083
  }
1138
- function gn(e, t) {
1139
- var a, u;
1084
+ function pn(e, t) {
1085
+ var a, p;
1140
1086
  if (!t.value)
1141
1087
  return ((a = e.attributes.getNamedItem("placeholder")) == null ? void 0 : a.value) ?? "";
1142
1088
  let n = "";
1143
1089
  const i = t.value.replace(/ /g, "T").replace(/\.\d+Z$/, "Z"), s = e.attributes.getNamedItem("local") !== null ? i.replace(/Z$/, "") : i.replace(/(Z|\+00:00)?$/, "Z"), o = new Date(s);
1144
1090
  e.attributes.getNamedItem("display-utc") !== null && o.setMinutes(o.getMinutes() - o.getTimezoneOffset());
1145
- let r = (u = e.attributes.getNamedItem("format")) == null ? void 0 : u.value;
1091
+ let r = (p = e.attributes.getNamedItem("format")) == null ? void 0 : p.value;
1146
1092
  if (!r && e.attributes.getNamedItem("relative-date") !== null) {
1147
- const b = /* @__PURE__ */ new Date();
1148
- b.getFullYear() == o.getFullYear() && b.getMonth() == o.getMonth() && b.getDate() == o.getDate() && (n = "at", r = "HH:mm");
1093
+ const g = /* @__PURE__ */ new Date();
1094
+ g.getFullYear() == o.getFullYear() && g.getMonth() == o.getMonth() && g.getDate() == o.getDate() && (n = "at", r = "HH:mm");
1149
1095
  }
1150
1096
  r || (r = N.defaultDateTimeFormat);
1151
1097
  let l = G(o, r);
1152
1098
  return n && (l = n + " " + l), l;
1153
1099
  }
1154
- const bn = {
1155
- beforeMount: be,
1156
- updated: be,
1157
- unmounted: En
1100
+ const mn = {
1101
+ beforeMount: ge,
1102
+ updated: ge,
1103
+ unmounted: vn
1158
1104
  };
1159
- function be(e, t) {
1105
+ function ge(e, t) {
1160
1106
  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");
1161
1107
  }
1162
- function En(e) {
1108
+ function vn(e) {
1163
1109
  e.tagName === "LABEL" && (e.classList.remove("disabled"), e = e.querySelector("input")), e.removeAttribute("disabled");
1164
1110
  }
1165
- const Tn = {
1111
+ const yn = {
1166
1112
  beforeMount: Ee,
1167
1113
  updated: Ee,
1168
- unmounted: Be
1169
- }, V = Symbol("HasAutoFocused"), ae = [];
1170
- function wn() {
1171
- ae.forEach(Ae);
1114
+ unmounted: Ae
1115
+ }, F = Symbol("HasAutoFocused"), re = [];
1116
+ function gn() {
1117
+ re.forEach(De);
1172
1118
  }
1173
- setInterval(wn, 1e3);
1119
+ setInterval(gn, 1e3);
1174
1120
  function Ee(e, t) {
1175
1121
  var r;
1176
1122
  if (t.value == t.oldValue)
1177
1123
  return;
1178
1124
  if (!t.value)
1179
- return Be(e);
1125
+ return Ae(e);
1180
1126
  const n = new Date(t.value), i = (r = e.attributes.getNamedItem("base-time")) == null ? void 0 : r.value, s = n.getTime() - (i ? new Date(i).getTime() - t.value * 1e3 : 0), o = e.getAttribute("no-seconds") === null;
1181
- e[V] || ae.push(e), e[V] = {
1127
+ e[F] || re.push(e), e[F] = {
1182
1128
  startTs: s,
1183
1129
  includeSeconds: o
1184
- }, Ae(e);
1130
+ }, De(e);
1185
1131
  }
1186
- function Ae(e) {
1187
- const t = e[V], n = Math.round((Date.now() - t.startTs) / 1e3);
1188
- e.innerText = On(n, t.includeSeconds);
1132
+ function De(e) {
1133
+ const t = e[F], n = Math.round((Date.now() - t.startTs) / 1e3);
1134
+ e.innerText = En(n, t.includeSeconds);
1189
1135
  }
1190
- function Be(e) {
1191
- e[V] && (et(ae, e), delete e[V]), e.innerText = "-";
1136
+ function Ae(e) {
1137
+ e[F] && (Qe(re, e), delete e[F]), e.innerText = "-";
1192
1138
  }
1193
- function On(e, t) {
1139
+ function En(e, t) {
1194
1140
  const n = [], i = Math.floor(e / 86400);
1195
1141
  i && n.push(i + "d"), e -= i * 86400;
1196
1142
  const s = Math.floor(e / 3600);
@@ -1198,29 +1144,29 @@ function On(e, t) {
1198
1144
  const o = Math.floor(e / 60);
1199
1145
  return (i || s || o) && n.push(o + "m"), t ? n.length || n.push("0m") : (e -= o * 60, n.push(e + "s")), n.join(" ");
1200
1146
  }
1201
- const D = Symbol("InfiniteScrollHandler"), kn = {
1147
+ const D = Symbol("InfiniteScrollHandler"), Tn = {
1202
1148
  mounted(e, t) {
1203
- e[D] = new A(e, t.value);
1149
+ e[D] = new $(e, t.value);
1204
1150
  },
1205
1151
  updated(e, t) {
1206
1152
  var n;
1207
- (n = e[D]) == null || n.uninstall(), e[D] = new A(e, t.value);
1153
+ (n = e[D]) == null || n.uninstall(), e[D] = new $(e, t.value);
1208
1154
  },
1209
1155
  unmounted(e) {
1210
1156
  var t;
1211
1157
  (t = e[D]) == null || t.uninstall(), delete e[D];
1212
1158
  }
1213
- }, Sn = {
1159
+ }, wn = {
1214
1160
  beforeMount: Te,
1215
1161
  updated: Te
1216
1162
  };
1217
1163
  function Te(e, t) {
1218
1164
  e.tagName == "LABEL" && (e = e.querySelector("input")), t.value ? e.setAttribute("readonly", "readonly") : e.removeAttribute("readonly");
1219
1165
  }
1220
- const xn = {
1166
+ const On = {
1221
1167
  mounted: we,
1222
1168
  updated: we,
1223
- unmounted: Fe
1169
+ unmounted: $e
1224
1170
  }, B = Symbol("TooltipState");
1225
1171
  function we(e, t) {
1226
1172
  var i;
@@ -1230,26 +1176,26 @@ function we(e, t) {
1230
1176
  content: n,
1231
1177
  html: e.getAttribute("html") !== null
1232
1178
  };
1233
- e[B] ? e[B].configure(s) : e[B] = new Cn(e, s);
1179
+ e[B] ? e[B].configure(s) : e[B] = new bn(e, s);
1234
1180
  } else
1235
- Fe(e);
1181
+ $e(e);
1236
1182
  }
1237
- function Fe(e) {
1183
+ function $e(e) {
1238
1184
  var t;
1239
1185
  (t = e[B]) == null || t.destroy(), delete e[B];
1240
1186
  }
1241
- class Cn {
1187
+ class bn {
1242
1188
  constructor(t, n) {
1243
- v(this, "lastMoveEvt");
1244
- v(this, "checkInterval");
1245
- v(this, "shouldShow", !1);
1246
- v(this, "tipEl");
1247
- v(this, "titleEl");
1248
- v(this, "contentEl");
1249
- v(this, "mouseMoveBound", !1);
1250
- v(this, "handleMouseMoveWithContext", this.handleMouseMove.bind(this));
1251
- v(this, "handleTargetMouseEnterWithContext", this.handleTargetMouseEnter.bind(this));
1252
- v(this, "handleTargetMouseLeaveWithContext", this.handleTargetMouseLeave.bind(this));
1189
+ E(this, "lastMoveEvt");
1190
+ E(this, "checkInterval");
1191
+ E(this, "shouldShow", !1);
1192
+ E(this, "tipEl");
1193
+ E(this, "titleEl");
1194
+ E(this, "contentEl");
1195
+ E(this, "mouseMoveBound", !1);
1196
+ E(this, "handleMouseMoveWithContext", this.handleMouseMove.bind(this));
1197
+ E(this, "handleTargetMouseEnterWithContext", this.handleTargetMouseEnter.bind(this));
1198
+ E(this, "handleTargetMouseLeaveWithContext", this.handleTargetMouseLeave.bind(this));
1253
1199
  this.el = t, this.config = n, t.addEventListener("mouseenter", this.handleTargetMouseEnterWithContext), t.addEventListener("mouseleave", this.handleTargetMouseLeaveWithContext);
1254
1200
  }
1255
1201
  configure(t) {
@@ -1286,59 +1232,59 @@ class Cn {
1286
1232
  this.shouldShow = !1, this.removeTooltip(), this.el.removeEventListener("mouseenter", this.handleTargetMouseEnterWithContext), this.el.removeEventListener("mouseleave", this.handleTargetMouseLeaveWithContext);
1287
1233
  }
1288
1234
  }
1289
- function Ln(e) {
1290
- e.directive("autofocus", hn), e.directive("confirm-button", fn), e.directive("date-input", mn), e.directive("datetime", yn), e.directive("disabled", bn), e.directive("duration", Tn), e.directive("infinite-scroll", kn), e.directive("readonly", Sn), e.directive("tooltip", xn);
1235
+ function kn(e) {
1236
+ e.directive("autofocus", an), e.directive("confirm-button", cn), e.directive("date-input", un), e.directive("datetime", fn), e.directive("disabled", mn), e.directive("duration", yn), e.directive("infinite-scroll", Tn), e.directive("readonly", wn), e.directive("tooltip", On);
1291
1237
  }
1292
- function si(e) {
1293
- Ln(e);
1238
+ function ti(e) {
1239
+ kn(e);
1294
1240
  }
1295
1241
  export {
1296
- An as OverlayContainer,
1242
+ _n as OverlayContainer,
1297
1243
  z as UserError,
1298
- $n as VfAjaxSelect,
1244
+ Hn as VfAjaxSelect,
1299
1245
  X as VfAlertModal,
1300
- zn as VfEzSmartSelect,
1301
- bt as VfModal,
1246
+ Wn as VfEzSmartSelect,
1247
+ Et as VfModal,
1302
1248
  Rt as VfSmartSelect,
1303
- Jn as cloneProp,
1304
- Rn as configureVf,
1305
- Yn as createFilters,
1249
+ Zn as cloneProp,
1250
+ Vn as configureVf,
1251
+ qn as createFilters,
1306
1252
  ie as createOverlayInjection,
1307
- Ct as desnakeCase,
1253
+ xt as desnakeCase,
1308
1254
  ut as dismissOverlayInjectionById,
1309
- Bn as dismissOverlayInjectionByInstance,
1310
- Me as dismissOverlayInjectionByInternalInstance,
1255
+ Dn as dismissOverlayInjectionByInstance,
1256
+ Le as dismissOverlayInjectionByInternalInstance,
1311
1257
  dt as dismissOverlayInjectionByVnode,
1312
- ri as escapeHtml,
1258
+ si as escapeHtml,
1313
1259
  ht as formatError,
1314
1260
  on as formatNumber,
1315
1261
  Lt as formatPhone,
1316
1262
  Mt as formatUSCurrency,
1317
- Kn as handleError,
1318
- Un as handleErrorAndAlert,
1319
- ti as installApiClientInterceptors,
1320
- si as installVf,
1321
- jn as maskComponent,
1263
+ Nn as handleError,
1264
+ Fn as handleErrorAndAlert,
1265
+ Qn as installApiClientInterceptors,
1266
+ ti as installVf,
1267
+ Rn as maskComponent,
1322
1268
  ft as maskEl,
1323
1269
  pt as maskForm,
1324
- Pn as nl2br,
1325
- ei as nullifyEmptyInputs,
1270
+ jn as nl2br,
1271
+ Gn as nullifyEmptyInputs,
1326
1272
  se as presentOverlay,
1327
1273
  P as removeOverlayInjection,
1328
- Zn as replaceElement,
1329
- ue as showAlert,
1330
- Fn as showConfirm,
1331
- Vn as showConfirmDestroy,
1332
- Gn as showContextMenu,
1333
- Xn as showToast,
1334
- Nn as showWait,
1274
+ zn as replaceElement,
1275
+ de as showAlert,
1276
+ An as showConfirm,
1277
+ $n as showConfirmDestroy,
1278
+ Xn as showContextMenu,
1279
+ Pn as showToast,
1280
+ Bn as showWait,
1335
1281
  sn as sleep,
1336
- Qn as sleepSecs,
1282
+ Yn as sleepSecs,
1337
1283
  oe as toError,
1338
- Wn as unmaskComponent,
1339
- Ie as unmaskEl,
1340
- He as unmaskForm,
1341
- ni as useInfiniteScroll,
1342
- ii as useResizeWatcher,
1343
- qn as uuid
1284
+ Kn as unmaskComponent,
1285
+ Me as unmaskEl,
1286
+ Ie as unmaskForm,
1287
+ Jn as useInfiniteScroll,
1288
+ ei as useResizeWatcher,
1289
+ Un as uuid
1344
1290
  };