@signal24/vue-foundation 4.3.6 → 4.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,16 +1,16 @@
1
- var $e = Object.defineProperty;
2
- var Ae = (e, t, n) => t in e ? $e(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var m = (e, t, n) => (Ae(e, typeof t != "symbol" ? t + "" : t, n), n);
4
- import { defineComponent as D, defineProps as Ve, defineEmits as Be, ref as I, computed as B, openBlock as c, createElementBlock as u, createElementVNode as y, toDisplayString as M, withDirectives as F, createCommentVNode as T, Fragment as _, renderList as z, vModelSelect as Fe, reactive as _e, h as ve, markRaw as Ne, getCurrentInstance as ge, onMounted as X, onBeforeUnmount as Y, createBlock as Z, Teleport as Ke, normalizeClass as b, withModifiers as Re, renderSlot as U, resolveDirective as ye, createSlots as Ue, withCtx as j, createTextVNode as ne, vModelText as je, watch as ie, onActivated as Ee, onDeactivated as Te } from "vue";
5
- import { debounce as Pe, isEqual as Oe, upperFirst as We, startCase as qe, cloneDeep as ze, remove as Xe } from "lodash";
6
- import { escapeHtml as Ye } from "@vue/shared";
7
- import { escapeHtml as Un } from "@vue/shared";
8
- import { format as W } from "date-fns";
9
- const Ze = D({
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 g = (e, t, n) => (Ve(e, typeof t != "symbol" ? t + "" : t, n), n);
4
+ import { defineComponent as x, defineProps as Fe, defineEmits as Re, ref as b, computed as N, openBlock as u, createElementBlock as f, createElementVNode as k, toDisplayString as H, withDirectives as K, createCommentVNode as T, Fragment as U, renderList as G, vModelSelect as Ne, getCurrentInstance as Q, onMounted as _, normalizeClass as w, normalizeStyle as Ke, withModifiers as ge, renderSlot as R, reactive as Ue, h as W, Teleport as We, markRaw as je, onBeforeUnmount as J, resolveDirective as Ee, createBlock as Oe, createSlots as Pe, withCtx as z, createTextVNode as se, vModelText as qe, watch as oe, onActivated as Te, onDeactivated as we } from "vue";
5
+ import { debounce as ze, isEqual as be, upperFirst as Xe, startCase as Ye, cloneDeep as Ze, remove as Ge } from "lodash";
6
+ import { escapeHtml as Qe } from "@vue/shared";
7
+ import { escapeHtml as Xn } from "@vue/shared";
8
+ import { format as Y } from "date-fns";
9
+ const Je = x({
10
10
  setup() {
11
- const e = Ve();
12
- Be(["update:modelValue"]);
13
- const t = I(null), n = B(() => t.value ? t.value.map((o) => e.preprocesor ? e.preprocesor(o) : o[e.displayKey ?? ""]) : null), i = I(e.modelValue ?? null);
11
+ const e = Fe();
12
+ Re(["update:modelValue"]);
13
+ const t = b(null), n = N(() => t.value ? t.value.map((o) => e.preprocesor ? e.preprocesor(o) : o[e.displayKey ?? ""]) : null), i = b(e.modelValue ?? null);
14
14
  return { props: e, options: t, renderOptions: n, selectedItem: i };
15
15
  },
16
16
  watch: {
@@ -32,190 +32,250 @@ const Ze = D({
32
32
  this.options = await this.props.loadFn();
33
33
  }
34
34
  }
35
- }), be = (e, t) => {
35
+ }), ke = (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
- }, Ge = {
40
+ }, et = {
41
41
  key: 0,
42
42
  disabled: ""
43
- }, Qe = {
43
+ }, tt = {
44
44
  key: 0,
45
45
  value: null
46
- }, Je = ["value"];
47
- function et(e, t, n, i, s, o) {
48
- return e.renderOptions ? F((c(), u("select", {
46
+ }, nt = ["value"];
47
+ function it(e, t, n, i, s, o) {
48
+ return e.renderOptions ? K((u(), f("select", {
49
49
  key: 1,
50
50
  "onUpdate:modelValue": t[0] || (t[0] = (r) => e.selectedItem = r)
51
51
  }, [
52
- e.props.nullText ? (c(), u("option", Qe, M(e.props.nullText), 1)) : T("", !0),
53
- (c(!0), u(_, null, z(e.renderOptions, (r, l) => {
54
- var a;
55
- return c(), u("option", {
52
+ e.props.nullText ? (u(), f("option", tt, H(e.props.nullText), 1)) : T("", !0),
53
+ (u(!0), f(U, null, G(e.renderOptions, (r, l) => {
54
+ var c;
55
+ return u(), f("option", {
56
56
  key: l,
57
- value: (a = e.options) == null ? void 0 : a[l]
58
- }, M(r), 9, Je);
57
+ value: (c = e.options) == null ? void 0 : c[l]
58
+ }, H(r), 9, nt);
59
59
  }), 128))
60
60
  ], 512)), [
61
- [Fe, e.selectedItem]
62
- ]) : (c(), u("select", Ge, [
63
- y("option", null, M(e.props.loadingText || "Loading..."), 1)
61
+ [Ne, e.selectedItem]
62
+ ]) : (u(), f("select", et, [
63
+ k("option", null, H(e.props.loadingText || "Loading..."), 1)
64
64
  ]));
65
65
  }
66
- const vn = /* @__PURE__ */ be(Ze, [["render", et]]);
67
- let tt = 0;
68
- const O = _e([]), gn = D({
66
+ const wn = /* @__PURE__ */ ke(Je, [["render", it]]), st = ["onClick"], ot = /* @__PURE__ */ x({
67
+ __name: "overlay-anchor",
68
+ props: {
69
+ overlayId: {},
70
+ anchor: {}
71
+ },
72
+ setup(e) {
73
+ const t = e, n = t.anchor instanceof HTMLElement ? t.anchor : t.anchor.el, i = b({ visibility: "hidden", top: "0", left: "0" }), s = b([]), o = Q();
74
+ _(r);
75
+ function r() {
76
+ const m = o.vnode.el, { styles: h, classes: a } = l(m, n);
77
+ i.value = h, s.value = a;
78
+ }
79
+ function l(m, h) {
80
+ const a = t.anchor instanceof HTMLElement ? {} : t.anchor, p = h.getBoundingClientRect(), d = m.getBoundingClientRect();
81
+ a.matchWidth && (d.width = p.width), a.matchHeight && (d.height = p.height);
82
+ const y = a.class ? Array.isArray(a.class) ? a.class : [a.class] : [];
83
+ let E, S;
84
+ if (a.y === "center")
85
+ E = p.top + p.height / 2 - d.height / 2, y.push("anchored-center-y");
86
+ else {
87
+ const L = (p.bottom + d.height < window.innerHeight || a.y === "below") && a.y !== "above";
88
+ E = L ? p.bottom : p.top - d.height, y.push(L ? "anchored-top" : "anchored-bottom");
89
+ }
90
+ if (a.x === "center")
91
+ S = p.left + p.width / 2 - d.width / 2, y.push("anchored-center-x");
92
+ else {
93
+ const L = (p.left + d.width < window.innerWidth || a.x === "left") && a.x !== "right";
94
+ S = L ? p.left : p.right - d.width, y.push(L ? "anchored-left" : "anchored-right");
95
+ }
96
+ return {
97
+ styles: {
98
+ top: `${E}px`,
99
+ left: `${S}px`,
100
+ ...a.matchWidth ? { width: `${d.width}px` } : {},
101
+ ...a.matchHeight ? { height: `${d.height}px` } : {}
102
+ },
103
+ classes: y
104
+ };
105
+ }
106
+ function c() {
107
+ window.removeEventListener("click", c), at(t.overlayId);
108
+ }
109
+ return _(() => {
110
+ setTimeout(() => {
111
+ window.addEventListener("click", c);
112
+ }, 10);
113
+ }), (m, h) => (u(), f("div", {
114
+ class: w(["vf-overlay-anchor", s.value]),
115
+ style: Ke(i.value),
116
+ onClick: ge(c, ["stop"])
117
+ }, [
118
+ R(m.$slots, "default")
119
+ ], 14, st));
120
+ }
121
+ });
122
+ let lt = 0;
123
+ const O = Ue([]), bn = x({
69
124
  setup() {
70
- return () => ve("div", { id: "modal-container" }, [
71
- z(O, (e) => e.vnode)
125
+ return () => W("div", [
126
+ G(O, (e) => W(We, { key: e.id, to: "#vf-overlay-target" }, [e.wrapperVnode ?? e.vnode]))
72
127
  ]);
73
128
  }
74
129
  });
75
- function we(e, t) {
76
- const n = document.getElementById("vf-modal-target") ?? document.createElement("div");
77
- n.id = "vf-modal-target", n.removeAttribute("inert"), document.body.appendChild(n);
78
- const i = Ne(e), s = {
79
- id: String(++tt),
80
- component: i,
130
+ function Se(e, t, n) {
131
+ const i = document.getElementById("vf-overlay-target") ?? document.createElement("div");
132
+ i.id = "vf-overlay-target", i.removeAttribute("inert"), document.body.appendChild(i);
133
+ const s = String(++lt), o = je(e), r = W(o, t), l = n != null && n.anchor ? W(ot, { overlayId: s, anchor: n.anchor }, () => [r]) : void 0, c = {
134
+ id: s,
135
+ component: o,
81
136
  props: t,
82
- vnode: ve(i, t)
137
+ options: n ?? {},
138
+ vnode: r,
139
+ wrapperVnode: l
83
140
  };
84
- return O.push(s), s;
141
+ return O.push(c), c;
85
142
  }
86
- function Se(e) {
87
- const t = O.indexOf(e);
88
- t >= 0 && O.splice(t, 1);
143
+ function kn(e) {
144
+ xe(e.$);
89
145
  }
90
- function yn(e) {
91
- ke(e.$);
92
- }
93
- function ke(e) {
146
+ function xe(e) {
94
147
  let t = e;
95
- for (; t && !nt(t.vnode); )
148
+ for (; t && !rt(t.vnode); )
96
149
  t = t.parent;
97
150
  }
98
- function nt(e) {
99
- var n, i;
100
- const t = O.findIndex((s) => s.vnode.component === e.component);
101
- return t >= 0 ? ((i = (n = O[t].props).callback) == null || i.call(n, void 0), O.splice(t, 1), !0) : !1;
151
+ function rt(e) {
152
+ const t = O.findIndex((n) => n.vnode.component === e.component);
153
+ return t >= 0 ? (O[t].props.callback(), !0) : !1;
154
+ }
155
+ function at(e) {
156
+ const t = O.findIndex((n) => n.id === e);
157
+ return t >= 0 ? (O[t].props.callback(), !0) : !1;
158
+ }
159
+ function Le(e) {
160
+ const t = O.indexOf(e);
161
+ t >= 0 && O.splice(t, 1);
102
162
  }
103
- async function G(e, t) {
104
- return new Promise((n) => {
105
- let i = null;
106
- const o = { ...t, callback: (r) => {
107
- Se(i), n(r);
163
+ async function ee(e, t, n) {
164
+ return new Promise((i) => {
165
+ let s = null;
166
+ const r = { ...t, callback: (l) => {
167
+ Le(s), i(l);
108
168
  } };
109
- i = we(e, o);
169
+ s = Se(e, r, n);
110
170
  });
111
171
  }
112
- function N(e, t) {
172
+ function j(e, t) {
113
173
  return { title: t ? e : void 0, message: t ?? e };
114
174
  }
115
- async function se(e, t) {
116
- await G(R, N(e, t));
175
+ async function le(e, t) {
176
+ await ee(q, j(e, t));
117
177
  }
118
- async function En(e, t) {
119
- return await G(R, {
120
- ...N(e, t),
178
+ async function Sn(e, t) {
179
+ return await ee(q, {
180
+ ...j(e, t),
121
181
  shouldConfirm: !0
122
182
  }) === !0;
123
183
  }
124
- async function Tn(e, t) {
125
- return await G(R, {
126
- ...N(e, t),
184
+ async function xn(e, t) {
185
+ return await ee(q, {
186
+ ...j(e, t),
127
187
  shouldConfirm: !0,
128
188
  classes: ["destructive"]
129
189
  }) === !0;
130
190
  }
131
- function On(e, t) {
132
- const n = we(R, {
133
- ...N(e, t),
191
+ function Ln(e, t) {
192
+ const n = Se(q, {
193
+ ...j(e, t),
134
194
  isBare: !0,
135
195
  classes: ["wait"],
136
196
  callback: () => {
137
197
  }
138
198
  });
139
- return () => Se(n);
199
+ return () => Le(n);
140
200
  }
141
- const $ = {
201
+ const V = {
142
202
  unhandledErrorSupportText: "please contact support",
143
203
  errorHandler: (e) => console.error("Unhandled error:", e),
144
204
  defaultDateTimeFormat: "MM/dd/yy HH:mm"
145
205
  };
146
- function bn(e) {
147
- Object.assign($, e);
206
+ function Cn(e) {
207
+ Object.assign(V, e);
148
208
  }
149
- class K extends Error {
209
+ class P extends Error {
150
210
  constructor(t) {
151
211
  super(t), this.name = "UserError";
152
212
  }
153
213
  }
154
- function it(e) {
155
- return e instanceof K ? e.message : `An application error has occurred:
214
+ function ct(e) {
215
+ return e instanceof P ? e.message : `An application error has occurred:
156
216
 
157
- ${Q(e).message}
217
+ ${te(e).message}
158
218
 
159
- Please refresh the page and try again. If this error persists, ${$.unhandledErrorSupportText}.`;
219
+ Please refresh the page and try again. If this error persists, ${V.unhandledErrorSupportText}.`;
160
220
  }
161
- function Q(e) {
221
+ function te(e) {
162
222
  return e instanceof Error ? e : new Error(String(e));
163
223
  }
164
- async function wn(e, t) {
165
- const n = Q(e);
166
- return n instanceof K || $.errorHandler(n), t ? se(t, n) : se(n);
224
+ async function Mn(e, t) {
225
+ const n = te(e);
226
+ return n instanceof P || V.errorHandler(n), t ? le(t, n) : le(n);
167
227
  }
168
- async function Sn(e) {
169
- const t = Q(e);
170
- t instanceof K || $.errorHandler(t);
228
+ async function In(e) {
229
+ const t = te(e);
230
+ t instanceof P || V.errorHandler(t);
171
231
  }
172
- const x = Symbol("MaskState");
173
- function kn(e, t) {
232
+ const D = Symbol("MaskState");
233
+ function Hn(e, t) {
174
234
  const n = e.$.vnode.el, i = n.closest(".vf-modal");
175
- return st(i ?? n, t);
235
+ return dt(i ?? n, t);
176
236
  }
177
- function Mn(e) {
237
+ function Dn(e) {
178
238
  const t = e.$.vnode.el, n = t.closest(".vf-modal");
179
- return Me(n ?? t);
239
+ return Ce(n ?? t);
180
240
  }
181
- function st(e, t) {
182
- if (!e[x]) {
241
+ function dt(e, t) {
242
+ if (!e[D]) {
183
243
  const n = document.createElement("div");
184
- n.classList.add("vf-mask"), e.appendChild(n), e[x] = { maskEl: n };
244
+ n.classList.add("vf-mask"), e.appendChild(n), e[D] = { maskEl: n };
185
245
  }
186
- return e[x].maskEl.innerText = t ?? "", () => Me(e);
246
+ return e[D].maskEl.innerText = t ?? "", () => Ce(e);
187
247
  }
188
- function Me(e) {
189
- e[x] && e.removeChild(e[x].maskEl);
248
+ function Ce(e) {
249
+ e[D] && e.removeChild(e[D].maskEl);
190
250
  }
191
- const q = Symbol("FormMaskState");
192
- function ot(e, t, n) {
193
- const i = e instanceof Element ? e : Le(e);
251
+ const Z = Symbol("FormMaskState");
252
+ function ut(e, t, n) {
253
+ const i = e instanceof Element ? e : Ie(e);
194
254
  i.classList.add("vf-masked");
195
255
  const s = t instanceof Element ? t : i.querySelectorAll(t ?? 'button:not([disabled]):not([type="button"])')[0], o = s.tagName === "INPUT" ? s.value : s.innerHTML;
196
256
  s.setAttribute("disabled", "disabled"), s.innerText = n ?? "Please wait...";
197
257
  const l = [...i.querySelectorAll("input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled])")];
198
- return l.forEach((a) => a.setAttribute("disabled", "disabled")), i[q] = {
258
+ return l.forEach((c) => c.setAttribute("disabled", "disabled")), i[Z] = {
199
259
  disabledElements: l,
200
260
  waitButton: s,
201
261
  buttonHtml: o
202
- }, () => xe(i);
262
+ }, () => Me(i);
203
263
  }
204
- function xe(e) {
205
- const t = e instanceof Element ? e : Le(e), n = t[q];
206
- n && (t.classList.remove("vf-masked"), n.disabledElements.forEach((i) => i.removeAttribute("disabled")), n.waitButton.innerHTML = n.buttonHtml, n.waitButton.removeAttribute("disabled"), delete t[q]);
264
+ function Me(e) {
265
+ const t = e instanceof Element ? e : Ie(e), n = t[Z];
266
+ n && (t.classList.remove("vf-masked"), n.disabledElements.forEach((i) => i.removeAttribute("disabled")), n.waitButton.innerHTML = n.buttonHtml, n.waitButton.removeAttribute("disabled"), delete t[Z]);
207
267
  }
208
- function Le(e) {
268
+ function Ie(e) {
209
269
  const t = e.$.vnode.el;
210
270
  return t.tagName === "FORM" ? t : t.querySelector("form");
211
271
  }
212
- const lt = ["id"], rt = {
272
+ const ht = ["id"], ft = {
213
273
  key: 0,
214
274
  class: "vf-modal-header"
215
- }, at = { class: "vf-modal-content" }, ct = {
275
+ }, pt = { class: "vf-modal-content" }, mt = {
216
276
  key: 1,
217
277
  class: "vf-modal-footer"
218
- }, dt = /* @__PURE__ */ D({
278
+ }, vt = /* @__PURE__ */ x({
219
279
  __name: "modal",
220
280
  props: {
221
281
  id: {},
@@ -226,67 +286,65 @@ const lt = ["id"], rt = {
226
286
  },
227
287
  emits: ["formSubmit"],
228
288
  setup(e, { expose: t }) {
229
- const n = e, i = ge();
230
- t({ mask: v, unmask: h });
231
- const s = I(), o = I();
232
- X(() => {
233
- var d;
234
- document.body.classList.add("vf-modal-open"), n.closeOnMaskClick && (window.addEventListener("keydown", l), (d = s.value) == null || d.addEventListener("click", r));
235
- }), Y(() => {
289
+ const n = e, i = Q();
290
+ t({ mask: m, unmask: h });
291
+ const s = b(), o = b();
292
+ _(() => {
293
+ var a;
294
+ document.body.classList.add("vf-modal-open"), n.closeOnMaskClick && (window.addEventListener("keydown", l), (a = s.value) == null || a.addEventListener("click", r));
295
+ }), J(() => {
236
296
  window.removeEventListener("keydown", l), document.body.querySelectorAll(".vf-modal").length > 0 || document.body.classList.remove("vf-modal-open");
237
297
  });
238
- function r(d) {
239
- d.target == s.value && a();
298
+ function r(a) {
299
+ a.target == s.value && c();
240
300
  }
241
- function l(d) {
242
- if (d.key === "Esc" || d.key === "Escape") {
243
- const E = document.querySelectorAll(".vf-modal-wrap");
244
- E[E.length - 1] === s.value && a();
301
+ function l(a) {
302
+ if (a.key === "Esc" || a.key === "Escape") {
303
+ const p = document.querySelectorAll(".vf-modal-wrap");
304
+ p[p.length - 1] === s.value && c();
245
305
  }
246
306
  }
247
- function a() {
248
- ke(i);
307
+ function c() {
308
+ xe(i);
249
309
  }
250
- function v() {
251
- ot(o.value);
310
+ function m() {
311
+ ut(o.value);
252
312
  }
253
313
  function h() {
254
- xe(o.value);
314
+ Me(o.value);
255
315
  }
256
- return (d, E) => (c(), Z(Ke, { to: "#vf-modal-target" }, [
257
- y("div", {
258
- id: d.id,
259
- class: b(["vf-overlay vf-modal-wrap", n.class]),
260
- ref_key: "overlay",
261
- ref: s
316
+ return (a, p) => (u(), f("div", {
317
+ id: a.id,
318
+ class: w(["vf-overlay vf-modal-wrap", n.class]),
319
+ ref_key: "overlay",
320
+ ref: s
321
+ }, [
322
+ k("form", {
323
+ action: ".",
324
+ class: w(["vf-modal", { scrolls: a.scrolls }]),
325
+ onSubmit: p[0] || (p[0] = ge((d) => a.$emit("formSubmit"), ["prevent"])),
326
+ ref_key: "form",
327
+ ref: o
262
328
  }, [
263
- y("form", {
264
- action: ".",
265
- class: b(["vf-modal", { scrolls: d.scrolls }]),
266
- onSubmit: E[0] || (E[0] = Re((f) => d.$emit("formSubmit"), ["prevent"])),
267
- ref_key: "form",
268
- ref: o
269
- }, [
270
- d.$slots.header ? (c(), u("div", rt, [
271
- U(d.$slots, "header"),
272
- n.closeX ? (c(), u("i", {
273
- key: 0,
274
- class: "close",
275
- onClick: a
276
- })) : T("", !0)
277
- ])) : T("", !0),
278
- y("div", at, [
279
- U(d.$slots, "default")
280
- ]),
281
- d.$slots.footer ? (c(), u("div", ct, [
282
- U(d.$slots, "footer")
283
- ])) : T("", !0)
284
- ], 34)
285
- ], 10, lt)
286
- ]));
329
+ a.$slots.header ? (u(), f("div", ft, [
330
+ R(a.$slots, "header"),
331
+ n.closeX ? (u(), f("i", {
332
+ key: 0,
333
+ class: "close",
334
+ onClick: c
335
+ })) : T("", !0)
336
+ ])) : T("", !0),
337
+ k("div", pt, [
338
+ R(a.$slots, "default")
339
+ ]),
340
+ a.$slots.footer ? (u(), f("div", mt, [
341
+ R(a.$slots, "footer")
342
+ ])) : T("", !0)
343
+ ], 34)
344
+ ], 10, ht));
287
345
  }
288
346
  });
289
- const ut = ["innerHtml"], ht = ["innerText"], R = /* @__PURE__ */ D({
347
+ const yt = ["innerHtml"], gt = ["innerText"], q = /* @__PURE__ */ x({
290
348
  __name: "alert-modal",
291
349
  props: {
292
350
  isBare: { type: Boolean },
@@ -298,53 +356,53 @@ const ut = ["innerHtml"], ht = ["innerText"], R = /* @__PURE__ */ D({
298
356
  callback: { type: Function }
299
357
  },
300
358
  setup(e) {
301
- const t = e, n = B(() => t.message instanceof Error ? it(t.message) : t.message);
359
+ const t = e, n = N(() => t.message instanceof Error ? ct(t.message) : t.message);
302
360
  return (i, s) => {
303
- const o = ye("autofocus");
304
- return c(), Z(dt, {
305
- class: b(["vf-alert", i.classes])
306
- }, Ue({
307
- default: j(() => [
308
- i.isHtml ? (c(), u("div", {
361
+ const o = Ee("autofocus");
362
+ return u(), Oe(vt, {
363
+ class: w(["vf-alert", i.classes])
364
+ }, Pe({
365
+ default: z(() => [
366
+ i.isHtml ? (u(), f("div", {
309
367
  key: 0,
310
368
  innerHtml: i.message,
311
369
  class: "user-message"
312
- }, null, 8, ut)) : (c(), u("div", {
370
+ }, null, 8, yt)) : (u(), f("div", {
313
371
  key: 1,
314
372
  innerText: n.value
315
- }, null, 8, ht))
373
+ }, null, 8, gt))
316
374
  ]),
317
375
  _: 2
318
376
  }, [
319
377
  i.title ? {
320
378
  name: "header",
321
- fn: j(() => [
322
- y("h1", null, M(i.title), 1)
379
+ fn: z(() => [
380
+ k("h1", null, H(i.title), 1)
323
381
  ]),
324
382
  key: "0"
325
383
  } : void 0,
326
384
  i.isBare ? void 0 : {
327
385
  name: "footer",
328
- fn: j(() => [
329
- i.shouldConfirm ? (c(), u(_, { key: 0 }, [
330
- F((c(), u("button", {
386
+ fn: z(() => [
387
+ i.shouldConfirm ? (u(), f(U, { key: 0 }, [
388
+ K((u(), f("button", {
331
389
  class: "primary",
332
390
  onClick: s[0] || (s[0] = () => i.callback(!0))
333
391
  }, [
334
- ne("Confirm")
392
+ se("Confirm")
335
393
  ])), [
336
394
  [o]
337
395
  ]),
338
- y("button", {
396
+ k("button", {
339
397
  class: "default",
340
398
  onClick: s[1] || (s[1] = () => i.callback(!1))
341
399
  }, "Cancel")
342
- ], 64)) : F((c(), u("button", {
400
+ ], 64)) : K((u(), f("button", {
343
401
  key: 1,
344
402
  class: "default",
345
403
  onClick: s[2] || (s[2] = () => i.callback(!0))
346
404
  }, [
347
- ne("OK")
405
+ se("OK")
348
406
  ])), [
349
407
  [o]
350
408
  ])
@@ -355,52 +413,52 @@ const ut = ["innerHtml"], ht = ["innerText"], R = /* @__PURE__ */ D({
355
413
  };
356
414
  }
357
415
  });
358
- let V;
359
- const ft = new Uint8Array(16);
360
- function pt() {
361
- if (!V && (V = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !V))
416
+ let F;
417
+ const Et = new Uint8Array(16);
418
+ function Ot() {
419
+ if (!F && (F = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !F))
362
420
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
363
- return V(ft);
421
+ return F(Et);
364
422
  }
365
- const p = [];
423
+ const v = [];
366
424
  for (let e = 0; e < 256; ++e)
367
- p.push((e + 256).toString(16).slice(1));
368
- function mt(e, t = 0) {
369
- return (p[e[t + 0]] + p[e[t + 1]] + p[e[t + 2]] + p[e[t + 3]] + "-" + p[e[t + 4]] + p[e[t + 5]] + "-" + p[e[t + 6]] + p[e[t + 7]] + "-" + p[e[t + 8]] + p[e[t + 9]] + "-" + p[e[t + 10]] + p[e[t + 11]] + p[e[t + 12]] + p[e[t + 13]] + p[e[t + 14]] + p[e[t + 15]]).toLowerCase();
425
+ v.push((e + 256).toString(16).slice(1));
426
+ function Tt(e, t = 0) {
427
+ 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]]).toLowerCase();
370
428
  }
371
- const vt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), oe = {
372
- randomUUID: vt
429
+ const wt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), re = {
430
+ randomUUID: wt
373
431
  };
374
- function gt(e, t, n) {
375
- if (oe.randomUUID && !t && !e)
376
- return oe.randomUUID();
432
+ function bt(e, t, n) {
433
+ if (re.randomUUID && !t && !e)
434
+ return re.randomUUID();
377
435
  e = e || {};
378
- const i = e.random || (e.rng || pt)();
436
+ const i = e.random || (e.rng || Ot)();
379
437
  if (i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128, t) {
380
438
  n = n || 0;
381
439
  for (let s = 0; s < 16; ++s)
382
440
  t[n + s] = i[s];
383
441
  return t;
384
442
  }
385
- return mt(i);
443
+ return Tt(i);
386
444
  }
387
- function xn(e) {
445
+ function An(e) {
388
446
  return e.replace(/\n/g, "<br>");
389
447
  }
390
- function yt(e) {
448
+ function kt(e) {
391
449
  return e.replace(/_/g, " ");
392
450
  }
393
- function Et(e) {
451
+ function St(e) {
394
452
  const t = e.replace(/\D/g, "").replace(/^1/, "");
395
453
  return t.length != 10 ? e : "(" + t.substring(0, 3) + ") " + t.substring(3, 6) + "-" + t.substring(6);
396
454
  }
397
- function Tt(e) {
455
+ function xt(e) {
398
456
  return "$" + Number(e).toFixed(3).replace(/0$/, "").replace(/\B(?=(\d{3})+(?!\d))/g, ",");
399
457
  }
400
- function Ln() {
401
- return gt();
458
+ function $n() {
459
+ return bt();
402
460
  }
403
- const w = Symbol("null"), le = Symbol("create"), Ot = "`1234567890-=[]\\;',./~!@#$%^&*()_+{}|:\"<>?qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", bt = {
461
+ const C = Symbol("null"), ae = Symbol("create"), Lt = "`1234567890-=[]\\;',./~!@#$%^&*()_+{}|:\"<>?qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", Ct = {
404
462
  props: {
405
463
  modelValue: {
406
464
  type: null,
@@ -477,13 +535,13 @@ const w = Symbol("null"), le = Symbol("create"), Ot = "`1234567890-=[]\\;',./~!@
477
535
  },
478
536
  optionsDescriptors() {
479
537
  return this.allOptions.map((e, t) => {
480
- var l, a;
538
+ var l, c;
481
539
  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 = [];
482
- return this.searchFields ? this.searchFields.forEach((v) => {
483
- e[v] && r.push(String(e[v]).toLowerCase());
540
+ return this.searchFields ? this.searchFields.forEach((m) => {
541
+ e[m] && r.push(String(e[m]).toLowerCase());
484
542
  }) : (r.push(s), o && r.push(o)), {
485
543
  // eslint-disable-next-line vue/no-use-computed-property-like-method
486
- key: ((a = this.effectiveKeyExtractor) == null ? void 0 : a.call(this, e)) ?? String(t),
544
+ key: ((c = this.effectiveKeyExtractor) == null ? void 0 : c.call(this, e)) ?? String(t),
487
545
  title: n,
488
546
  subtitle: i,
489
547
  searchContent: r.join(""),
@@ -497,7 +555,7 @@ const w = Symbol("null"), le = Symbol("create"), Ot = "`1234567890-=[]\\;',./~!@
497
555
  const t = this.searchText.trim().toLowerCase();
498
556
  if (t.length) {
499
557
  e = e.filter((s) => s.searchContent.includes(t));
500
- const n = Ye(this.searchText).replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&"), i = new RegExp(`(${n})`, "ig");
558
+ const n = Qe(this.searchText).replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&"), i = new RegExp(`(${n})`, "ig");
501
559
  e = e.map((s) => {
502
560
  var o;
503
561
  return {
@@ -506,13 +564,13 @@ const w = Symbol("null"), le = Symbol("create"), Ot = "`1234567890-=[]\\;',./~!@
506
564
  subtitle: (o = s.subtitle) == null ? void 0 : o.replace(i, "<mark>$1</mark>")
507
565
  };
508
566
  }), this.shouldShowCreateOption && (e.find((o) => o.searchContent === t) !== void 0 || e.push({
509
- key: le,
567
+ key: ae,
510
568
  title: "Create <strong>" + this.searchText.trim() + "</strong>..."
511
569
  }));
512
570
  }
513
571
  } else
514
572
  this.nullTitle && e.unshift({
515
- key: w,
573
+ key: C,
516
574
  title: this.nullTitle
517
575
  });
518
576
  return e;
@@ -538,7 +596,7 @@ const w = Symbol("null"), le = Symbol("create"), Ot = "`1234567890-=[]\\;',./~!@
538
596
  },
539
597
  effectiveOptions() {
540
598
  var e;
541
- this.modelValue && !this.selectedOption && this.handleValueChanged(), this.highlightedOptionKey && !this.effectiveOptions.find((t) => t.key == this.highlightedOptionKey) && (this.highlightedOptionKey = ((e = this.effectiveOptions[0]) == null ? void 0 : e.key) ?? w);
599
+ this.modelValue && !this.selectedOption && this.handleValueChanged(), this.highlightedOptionKey && !this.effectiveOptions.find((t) => t.key == this.highlightedOptionKey) && (this.highlightedOptionKey = ((e = this.effectiveOptions[0]) == null ? void 0 : e.key) ?? C);
542
600
  }
543
601
  },
544
602
  async mounted() {
@@ -547,7 +605,7 @@ const w = Symbol("null"), le = Symbol("create"), Ot = "`1234567890-=[]\\;',./~!@
547
605
  "update:modelValue",
548
606
  this.selectedOption && this.valueExtractor ? this.valueExtractor(this.selectedOption) : this.selectedOption
549
607
  );
550
- }), this.remoteSearch && this.$watch("searchText", Pe(this.reloadOptionsIfSearching, 250));
608
+ }), this.remoteSearch && this.$watch("searchText", ze(this.reloadOptionsIfSearching, 250));
551
609
  },
552
610
  methods: {
553
611
  async loadRemoteOptions() {
@@ -592,7 +650,7 @@ const w = Symbol("null"), le = Symbol("create"), Ot = "`1234567890-=[]\\;',./~!@
592
650
  this.searchText.length > 1 && (this.isSearching = !0);
593
651
  return;
594
652
  }
595
- !e.metaKey && Ot.includes(e.key) && (this.isSearching = !0);
653
+ !e.metaKey && Lt.includes(e.key) && (this.isSearching = !0);
596
654
  }
597
655
  },
598
656
  handleInputFocused() {
@@ -600,7 +658,7 @@ const w = Symbol("null"), le = Symbol("create"), Ot = "`1234567890-=[]\\;',./~!@
600
658
  },
601
659
  setHighlightedOptionKey(e) {
602
660
  var t;
603
- this.selectedOption ? this.highlightedOptionKey = this.getOptionKey(this.selectedOption) : e ? this.highlightedOptionKey = ((t = this.effectiveOptions) == null ? void 0 : t[0].key) ?? w : this.nullTitle && (this.highlightedOptionKey = w);
661
+ this.selectedOption ? this.highlightedOptionKey = this.getOptionKey(this.selectedOption) : e ? this.highlightedOptionKey = ((t = this.effectiveOptions) == null ? void 0 : t[0].key) ?? C : this.nullTitle && (this.highlightedOptionKey = C);
604
662
  },
605
663
  getOptionKey(e) {
606
664
  var t;
@@ -610,7 +668,7 @@ const w = Symbol("null"), le = Symbol("create"), Ot = "`1234567890-=[]\\;',./~!@
610
668
  const t = this.effectiveOptions.find((i) => i.ref === e);
611
669
  if (t)
612
670
  return t;
613
- const n = this.effectiveOptions.find((i) => Oe(i.ref, e));
671
+ const n = this.effectiveOptions.find((i) => be(i.ref, e));
614
672
  return n || null;
615
673
  },
616
674
  handleInputBlurred() {
@@ -648,9 +706,9 @@ const w = Symbol("null"), le = Symbol("create"), Ot = "`1234567890-=[]\\;',./~!@
648
706
  s.offsetTop < i.scrollTop ? i.scrollTop = s.offsetTop : s.offsetTop + s.offsetHeight > i.scrollTop + i.clientHeight && (i.scrollTop = s.offsetTop + s.offsetHeight - i.clientHeight);
649
707
  },
650
708
  selectOption(e) {
651
- if (this.isSearching = !1, e.key == w)
709
+ if (this.isSearching = !1, e.key == C)
652
710
  this.searchText = "", this.selectedOption = null, this.selectedOptionTitle = null;
653
- else if (e.key === le) {
711
+ else if (e.key === ae) {
654
712
  const t = this.searchText.trim();
655
713
  this.searchText = "", this.selectedOption = null, this.selectedOptionTitle = null, this.$emit("createItem", t);
656
714
  } else {
@@ -667,61 +725,61 @@ const w = Symbol("null"), le = Symbol("create"), Ot = "`1234567890-=[]\\;',./~!@
667
725
  }
668
726
  }
669
727
  };
670
- const wt = ["placeholder"], St = {
728
+ const Mt = ["placeholder"], It = {
671
729
  key: 0,
672
730
  ref: "optionsContainer",
673
731
  class: "vf-smart-select-options"
674
- }, kt = {
732
+ }, Ht = {
675
733
  key: 0,
676
734
  class: "no-results"
677
- }, Mt = ["onMousemove", "onMousedown"], xt = ["innerHTML"], Lt = ["innerHTML"], Ct = {
735
+ }, Dt = ["onMousemove", "onMousedown"], At = ["innerHTML"], $t = ["innerHTML"], _t = {
678
736
  key: 0,
679
737
  class: "no-results"
680
738
  };
681
- function It(e, t, n, i, s, o) {
682
- const r = ye("disabled");
683
- return c(), u("div", {
684
- class: b(["vf-smart-select", { disabled: o.effectiveDisabled, open: e.shouldDisplayOptions }])
739
+ function Bt(e, t, n, i, s, o) {
740
+ const r = Ee("disabled");
741
+ return u(), f("div", {
742
+ class: w(["vf-smart-select", { disabled: o.effectiveDisabled, open: e.shouldDisplayOptions }])
685
743
  }, [
686
- F(y("input", {
744
+ K(k("input", {
687
745
  "onUpdate:modelValue": t[0] || (t[0] = (l) => e.searchText = l),
688
746
  ref: "searchField",
689
747
  type: "text",
690
- class: b({ nullable: !!n.nullTitle }),
748
+ class: w({ nullable: !!n.nullTitle }),
691
749
  onKeydown: t[1] || (t[1] = (...l) => o.handleKeyDown && o.handleKeyDown(...l)),
692
750
  placeholder: o.effectivePlaceholder,
693
751
  onFocus: t[2] || (t[2] = (...l) => o.handleInputFocused && o.handleInputFocused(...l)),
694
752
  onBlur: t[3] || (t[3] = (...l) => o.handleInputBlurred && o.handleInputBlurred(...l))
695
- }, null, 42, wt), [
696
- [je, e.searchText],
753
+ }, null, 42, Mt), [
754
+ [qe, e.searchText],
697
755
  [r, o.effectiveDisabled]
698
756
  ]),
699
- e.shouldDisplayOptions ? (c(), u("div", St, [
700
- e.isLoaded ? (c(), u(_, { key: 1 }, [
701
- (c(!0), u(_, null, z(o.effectiveOptions, (l) => (c(), u("div", {
757
+ e.shouldDisplayOptions ? (u(), f("div", It, [
758
+ e.isLoaded ? (u(), f(U, { key: 1 }, [
759
+ (u(!0), f(U, null, G(o.effectiveOptions, (l) => (u(), f("div", {
702
760
  key: String(l.key),
703
- class: b(["option", {
761
+ class: w(["option", {
704
762
  highlighted: e.highlightedOptionKey === l.key
705
763
  }]),
706
- onMousemove: (a) => o.handleOptionHover(l),
707
- onMousedown: (a) => o.selectOption(l)
764
+ onMousemove: (c) => o.handleOptionHover(l),
765
+ onMousedown: (c) => o.selectOption(l)
708
766
  }, [
709
- y("div", {
767
+ k("div", {
710
768
  class: "title",
711
769
  innerHTML: l.title
712
- }, null, 8, xt),
713
- l.subtitle ? (c(), u("div", {
770
+ }, null, 8, At),
771
+ l.subtitle ? (u(), f("div", {
714
772
  key: 0,
715
773
  class: "subtitle",
716
774
  innerHTML: l.subtitle
717
- }, null, 8, Lt)) : T("", !0)
718
- ], 42, Mt))), 128)),
719
- !o.effectiveOptions.length && e.searchText ? (c(), u("div", Ct, M(o.effectiveNoResultsText), 1)) : T("", !0)
720
- ], 64)) : (c(), u("div", kt, "Loading..."))
775
+ }, null, 8, $t)) : T("", !0)
776
+ ], 42, Dt))), 128)),
777
+ !o.effectiveOptions.length && e.searchText ? (u(), f("div", _t, H(o.effectiveNoResultsText), 1)) : T("", !0)
778
+ ], 64)) : (u(), f("div", Ht, "Loading..."))
721
779
  ], 512)) : T("", !0)
722
780
  ], 2);
723
781
  }
724
- const Ht = /* @__PURE__ */ be(bt, [["render", It]]), Cn = /* @__PURE__ */ D({
782
+ const Vt = /* @__PURE__ */ ke(Ct, [["render", Bt]]), _n = /* @__PURE__ */ x({
725
783
  __name: "ez-smart-select",
726
784
  props: {
727
785
  modelValue: {},
@@ -732,185 +790,185 @@ const Ht = /* @__PURE__ */ be(bt, [["render", It]]), Cn = /* @__PURE__ */ D({
732
790
  },
733
791
  emits: ["update:modelValue"],
734
792
  setup(e, { emit: t }) {
735
- const n = e, i = B(() => Array.isArray(n.options) ? n.options.map((r) => ({ value: r, label: r })) : Object.entries(n.options).map(([r, l]) => ({
793
+ const n = e, i = N(() => Array.isArray(n.options) ? n.options.map((r) => ({ value: r, label: r })) : Object.entries(n.options).map(([r, l]) => ({
736
794
  value: r,
737
795
  label: l
738
- }))), s = B(() => n.formatter ? (r) => {
796
+ }))), s = N(() => n.formatter ? (r) => {
739
797
  var l;
740
798
  return (l = n.formatter) == null ? void 0 : l.call(n, r.label);
741
- } : (r) => r.label), o = I(i.value.find((r) => r.value === n.modelValue) ?? null);
742
- return ie(
799
+ } : (r) => r.label), o = b(i.value.find((r) => r.value === n.modelValue) ?? null);
800
+ return oe(
743
801
  () => n.modelValue,
744
802
  (r) => {
745
803
  o.value = i.value.find((l) => l.value === r) ?? null;
746
804
  }
747
- ), ie(o, (r) => {
805
+ ), oe(o, (r) => {
748
806
  var l;
749
- t("update:modelValue", r ? ((l = i.value.find((a) => Oe(a, r))) == null ? void 0 : l.value) ?? null : null);
750
- }), (r, l) => (c(), Z(Ht, {
807
+ t("update:modelValue", r ? ((l = i.value.find((c) => be(c, r))) == null ? void 0 : l.value) ?? null : null);
808
+ }), (r, l) => (u(), Oe(Vt, {
751
809
  modelValue: o.value,
752
- "onUpdate:modelValue": l[0] || (l[0] = (a) => o.value = a),
810
+ "onUpdate:modelValue": l[0] || (l[0] = (c) => o.value = c),
753
811
  options: i.value,
754
812
  formatter: s.value,
755
813
  "null-title": r.nullTitle
756
814
  }, null, 8, ["modelValue", "options", "formatter", "null-title"]));
757
815
  }
758
816
  });
759
- function Dt(e) {
817
+ function Ft(e) {
760
818
  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];
761
819
  return `${i} ${s}`;
762
820
  }
763
- function $t(e) {
821
+ function Rt(e) {
764
822
  return e != null && String(e).length ? e : "-";
765
823
  }
766
- function At(e) {
824
+ function Nt(e) {
767
825
  return e || "-";
768
826
  }
769
- function Vt(e) {
770
- return e === null || typeof e == "string" && !/^\d+$/.test(e) ? e : jt(Number(e));
827
+ function Kt(e) {
828
+ return e === null || typeof e == "string" && !/^\d+$/.test(e) ? e : Yt(Number(e));
771
829
  }
772
- function Bt(e) {
773
- return e && Et(e);
830
+ function Ut(e) {
831
+ return e && St(e);
774
832
  }
775
- function Ft(e) {
776
- return e ? We(e) : null;
833
+ function Wt(e) {
834
+ return e ? Xe(e) : null;
777
835
  }
778
- function _t(e) {
779
- return e ? qe(e) : null;
836
+ function jt(e) {
837
+ return e ? Ye(e) : null;
780
838
  }
781
- function Nt(e) {
839
+ function Pt(e) {
782
840
  return e ? e.toUpperCase() : null;
783
841
  }
784
- function Kt(e) {
785
- return e ? yt(e) : null;
786
- }
787
- function Rt(e) {
788
- return Tt(e);
789
- }
790
- const re = {
791
- bytes: Dt,
792
- dash: $t,
793
- dashZeros: At,
794
- number: Vt,
795
- phone: Bt,
796
- upperFirst: Ft,
797
- startCase: _t,
798
- upperCase: Nt,
799
- desnake: Kt,
800
- usCurrency: Rt
801
- }, In = (e) => ({
802
- ...re,
803
- ...e(re)
842
+ function qt(e) {
843
+ return e ? kt(e) : null;
844
+ }
845
+ function zt(e) {
846
+ return xt(e);
847
+ }
848
+ const ce = {
849
+ bytes: Ft,
850
+ dash: Rt,
851
+ dashZeros: Nt,
852
+ number: Kt,
853
+ phone: Ut,
854
+ upperFirst: Wt,
855
+ startCase: jt,
856
+ upperCase: Pt,
857
+ desnake: qt,
858
+ usCurrency: zt
859
+ }, Bn = (e) => ({
860
+ ...ce,
861
+ ...e(ce)
804
862
  });
805
- function Hn(e, t, n) {
863
+ function Vn(e, t, n) {
806
864
  const i = typeof t == "function" ? e.findIndex(t) : e.indexOf(t);
807
865
  return i === -1 ? !1 : (e.splice(i, 1, n), !0);
808
866
  }
809
- function Dn(e, t) {
867
+ function Fn(e, t) {
810
868
  const n = document.createElement("div");
811
- n.classList.add("vf-overlay"), n.addEventListener("click", d), document.body.appendChild(n);
869
+ n.classList.add("vf-overlay"), n.addEventListener("click", a), document.body.appendChild(n);
812
870
  const i = document.createElement("div");
813
871
  i.classList.add("vf-context-menu"), i.style.position = "absolute", n.appendChild(i);
814
872
  const s = e.currentTarget;
815
- 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) => {
816
- if (f == "-") {
817
- const A = document.createElement("div");
818
- A.classList.add("separator"), i.appendChild(A);
873
+ 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((d) => {
874
+ if (d == "-") {
875
+ const E = document.createElement("div");
876
+ E.classList.add("separator"), i.appendChild(E);
819
877
  return;
820
878
  }
821
- const g = document.createElement("div");
822
- g.classList.add("item"), g.style.userSelect = "none", g.innerText = f.title, i.appendChild(g), f.class && g.classList.add(f.class), f.shouldConfirm ? g.addEventListener("click", () => E(g, f.handler)) : g.addEventListener("click", () => f.handler());
879
+ const y = document.createElement("div");
880
+ y.classList.add("item"), y.style.userSelect = "none", y.innerText = d.title, i.appendChild(y), d.class && y.classList.add(d.class), d.shouldConfirm ? y.addEventListener("click", () => p(y, d.handler)) : y.addEventListener("click", () => d.handler());
823
881
  });
824
- const o = window.innerWidth - e.clientX, r = window.innerHeight - e.clientY, l = i.offsetHeight, a = i.offsetWidth, v = o < a ? e.clientX - a - 1 : e.clientX + 1, h = r < l ? e.clientY - l - 1 : e.clientY + 1;
825
- i.style.left = v + "px", i.style.top = h + "px", setTimeout(() => {
882
+ const o = window.innerWidth - e.clientX, r = window.innerHeight - e.clientY, l = i.offsetHeight, c = i.offsetWidth, m = o < c ? e.clientX - c - 1 : e.clientX + 1, h = r < l ? e.clientY - l - 1 : e.clientY + 1;
883
+ i.style.left = m + "px", i.style.top = h + "px", setTimeout(() => {
826
884
  i.style.width = i.offsetWidth + "px";
827
885
  }, 50);
828
- function d() {
886
+ function a() {
829
887
  t.targetClass && s.classList.remove(t.targetClass), s.classList.remove("context-menu-active"), s.style.userSelect = "", n.remove();
830
888
  }
831
- function E(f, g) {
832
- if (f.classList.contains("pending-confirm"))
833
- return g();
834
- const A = f.innerHTML;
835
- f.classList.add("pending-confirm"), f.innerText = "Confirm";
836
- const te = () => {
837
- f.classList.remove("pending-confirm"), f.innerHTML = A, f.removeEventListener("mouseleave", te);
889
+ function p(d, y) {
890
+ if (d.classList.contains("pending-confirm"))
891
+ return y();
892
+ const E = d.innerHTML;
893
+ d.classList.add("pending-confirm"), d.innerText = "Confirm";
894
+ const S = () => {
895
+ d.classList.remove("pending-confirm"), d.innerHTML = E, d.removeEventListener("mouseleave", S);
838
896
  };
839
- f.addEventListener("mouseleave", te), e.stopPropagation();
897
+ d.addEventListener("mouseleave", S), e.stopPropagation();
840
898
  }
841
899
  }
842
- const Ut = (e) => new Promise((t) => setTimeout(t, e)), $n = (e) => Ut(e * 1e3);
843
- function jt(e) {
900
+ const Xt = (e) => new Promise((t) => setTimeout(t, e)), Rn = (e) => Xt(e * 1e3);
901
+ function Yt(e) {
844
902
  return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
845
903
  }
846
- function An(e, t) {
847
- return e != null ? ze(e) : t;
904
+ function Nn(e, t) {
905
+ return e != null ? Ze(e) : t;
848
906
  }
849
- function Vn(e, t) {
907
+ function Kn(e, t) {
850
908
  const n = { ...e };
851
909
  for (const i of t)
852
910
  n[i] === "" && (n[i] = null);
853
911
  return n;
854
912
  }
855
- function Pt(e) {
913
+ function Zt(e) {
856
914
  return e instanceof Error && "status" in e && "body" in e;
857
915
  }
858
- function Bn({ apiClient: e, onRequest: t, onError: n, CancelablePromise: i }) {
916
+ function Un({ apiClient: e, onRequest: t, onError: n, CancelablePromise: i }) {
859
917
  const s = e.request.request.bind(e.request);
860
- e.request.request = (o) => (t && (o = t(o)), new i((r, l, a) => {
861
- const v = s(o);
862
- a(v.cancel), v.then(r).catch((h) => {
863
- if (Pt(h) && typeof h.body == "object" && "error" in h.body) {
918
+ e.request.request = (o) => (t && (o = t(o)), new i((r, l, c) => {
919
+ const m = s(o);
920
+ c(m.cancel), m.then(r).catch((h) => {
921
+ if (Zt(h) && typeof h.body == "object" && "error" in h.body) {
864
922
  if (h.status === 422)
865
- return l(new K(h.body.error));
923
+ return l(new P(h.body.error));
866
924
  h.message = `${h.body.error} (${h.status})`;
867
925
  }
868
926
  if (n) {
869
- const d = n(h, o);
870
- if (d === null)
927
+ const a = n(h, o);
928
+ if (a === null)
871
929
  return;
872
- if (d instanceof Error)
873
- return l(d);
930
+ if (a instanceof Error)
931
+ return l(a);
874
932
  }
875
933
  l(h);
876
934
  });
877
935
  }));
878
936
  }
879
- const J = Symbol("HookState");
880
- function Fn(e, t) {
881
- const n = t ?? ge();
882
- X(() => Wt(n, e), n), Ee(() => qt(n), n), Te(() => ae(n), n), Y(() => ae(n), n);
937
+ const ne = Symbol("HookState");
938
+ function Wn(e, t) {
939
+ const n = t ?? Q();
940
+ _(() => Gt(n, e), n), Te(() => Qt(n), n), we(() => de(n), n), J(() => de(n), n);
883
941
  }
884
- function Wt(e, t) {
942
+ function Gt(e, t) {
885
943
  const n = {};
886
- if (t.elScrolledToBottom && (n.el = new L(e.vnode.el, t.elScrolledToBottom)), t.ancestorScrolledToBottom) {
887
- const i = Ce(e.vnode.el);
888
- i ? n.ancestor = new L(i, t.ancestorScrolledToBottom) : console.warn("[VueFoundation] No scollable ancestor found for component:", e);
944
+ if (t.elScrolledToBottom && (n.el = new A(e.vnode.el, t.elScrolledToBottom)), t.ancestorScrolledToBottom) {
945
+ const i = He(e.vnode.el);
946
+ i ? n.ancestor = new A(i, t.ancestorScrolledToBottom) : console.warn("[VueFoundation] No scollable ancestor found for component:", e);
889
947
  }
890
- t.windowScrolledToBottom && (n.window = new L(window, t.windowScrolledToBottom)), e[J] = n;
948
+ t.windowScrolledToBottom && (n.window = new A(window, t.windowScrolledToBottom)), e[ne] = n;
891
949
  }
892
- function qt(e) {
950
+ function Qt(e) {
893
951
  var n, i, s;
894
- const t = e[J];
952
+ const t = e[ne];
895
953
  (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();
896
954
  }
897
- function ae(e) {
955
+ function de(e) {
898
956
  var n, i, s;
899
- const t = e[J];
957
+ const t = e[ne];
900
958
  (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();
901
959
  }
902
- const P = ["auto", "scroll"];
903
- function Ce(e) {
960
+ const X = ["auto", "scroll"];
961
+ function He(e) {
904
962
  const t = e.parentElement;
905
963
  if (!t)
906
964
  return null;
907
965
  const n = window.getComputedStyle(t);
908
- return P.includes(n.overflow) || P.includes(n.overflowX) || P.includes(n.overflowY) ? t : Ce(t);
966
+ return X.includes(n.overflow) || X.includes(n.overflowX) || X.includes(n.overflowY) ? t : He(t);
909
967
  }
910
- class L {
968
+ class A {
911
969
  constructor(t, n) {
912
- m(this, "isTripped", !1);
913
- m(this, "onScrollWithContext", this.onScroll.bind(this));
970
+ g(this, "isTripped", !1);
971
+ g(this, "onScrollWithContext", this.onScroll.bind(this));
914
972
  this.el = t, this.handler = n, this.install();
915
973
  }
916
974
  install() {
@@ -923,30 +981,30 @@ class L {
923
981
  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);
924
982
  }
925
983
  }
926
- function _n(e) {
927
- X(() => window.addEventListener("resize", e)), Ee(() => window.addEventListener("resize", e)), Te(() => window.removeEventListener("resize", e)), Y(() => window.removeEventListener("resize", e));
984
+ function jn(e) {
985
+ _(() => window.addEventListener("resize", e)), Te(() => window.addEventListener("resize", e)), we(() => window.removeEventListener("resize", e)), J(() => window.removeEventListener("resize", e));
928
986
  }
929
- const zt = {
930
- mounted: de,
931
- updated: de
932
- }, ce = Symbol("HasAutoFocused");
933
- function de(e, t) {
934
- if (t.value === void 0 && e[ce] || t.value !== void 0 && !t.value || t.oldValue !== void 0 && t.value == t.oldValue)
987
+ const Jt = {
988
+ mounted: he,
989
+ updated: he
990
+ }, ue = Symbol("HasAutoFocused");
991
+ function he(e, t) {
992
+ if (t.value === void 0 && e[ue] || t.value !== void 0 && !t.value || t.oldValue !== void 0 && t.value == t.oldValue)
935
993
  return;
936
- e[ce] = !0;
994
+ e[ue] = !0;
937
995
  const n = ["BUTTON", "INPUT", "TEXTAREA", "SELECT"].indexOf(e.tagName) > -1 ? e : e.querySelectorAll("input")[0];
938
996
  setTimeout(() => n.focus(), 10);
939
997
  }
940
- const Xt = {
941
- mounted: Yt
942
- }, S = Symbol("ConfirmState");
943
- function Yt(e) {
998
+ const en = {
999
+ mounted: tn
1000
+ }, M = Symbol("ConfirmState");
1001
+ function tn(e) {
944
1002
  e.addEventListener("click", (t) => {
945
1003
  const n = Date.now();
946
- if (e[S]) {
947
- if (n - e[S].initTime < 300)
1004
+ if (e[M]) {
1005
+ if (n - e[M].initTime < 300)
948
1006
  return;
949
- e[S].resetHandler(), e.dispatchEvent(new Event("confirm"));
1007
+ e[M].resetHandler(), e.dispatchEvent(new Event("confirm"));
950
1008
  return;
951
1009
  }
952
1010
  t.preventDefault(), t.stopImmediatePropagation();
@@ -954,86 +1012,86 @@ function Yt(e) {
954
1012
  initTime: n,
955
1013
  preconfirmHtml: e.innerHTML,
956
1014
  resetHandler: () => {
957
- e.innerHTML = i.preconfirmHtml, e.blur(), e.removeEventListener("mouseout", i.resetHandler), delete e[S];
1015
+ e.innerHTML = i.preconfirmHtml, e.blur(), e.removeEventListener("mouseout", i.resetHandler), delete e[M];
958
1016
  }
959
1017
  };
960
- e[S] = i, e.innerHTML = "Confirm", e.addEventListener("mouseout", i.resetHandler);
1018
+ e[M] = i, e.innerHTML = "Confirm", e.addEventListener("mouseout", i.resetHandler);
961
1019
  });
962
1020
  }
963
- const Zt = {
964
- beforeMount: Gt
1021
+ const nn = {
1022
+ beforeMount: sn
965
1023
  };
966
- function Gt(e) {
1024
+ function sn(e) {
967
1025
  e.addEventListener("blur", () => {
968
1026
  let t = e.value;
969
- /^\d{1,2}\/\d{1,2}$/.test(t) && (t += "/" + W(/* @__PURE__ */ new Date(), "yy"));
1027
+ /^\d{1,2}\/\d{1,2}$/.test(t) && (t += "/" + Y(/* @__PURE__ */ new Date(), "yy"));
970
1028
  const n = Date.parse(t);
971
- isNaN(n) ? e.value = "" : e.value = W(n, "MM/dd/yyyy"), e.dispatchEvent(new Event("input"));
1029
+ isNaN(n) ? e.value = "" : e.value = Y(n, "MM/dd/yyyy"), e.dispatchEvent(new Event("input"));
972
1030
  });
973
1031
  }
974
- const Qt = {
975
- beforeMount: ue,
976
- updated: ue
1032
+ const on = {
1033
+ beforeMount: fe,
1034
+ updated: fe
977
1035
  };
978
- function ue(e, t) {
979
- t.value == t.oldValue && e.innerHTML.length || (e.innerText = Jt(e, t));
1036
+ function fe(e, t) {
1037
+ t.value == t.oldValue && e.innerHTML.length || (e.innerText = ln(e, t));
980
1038
  }
981
- function Jt(e, t) {
982
- var a, v;
1039
+ function ln(e, t) {
1040
+ var c, m;
983
1041
  if (!t.value)
984
- return ((a = e.attributes.getNamedItem("placeholder")) == null ? void 0 : a.value) ?? "";
1042
+ return ((c = e.attributes.getNamedItem("placeholder")) == null ? void 0 : c.value) ?? "";
985
1043
  let n = "";
986
1044
  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);
987
1045
  e.attributes.getNamedItem("display-utc") !== null && o.setMinutes(o.getMinutes() - o.getTimezoneOffset());
988
- let r = (v = e.attributes.getNamedItem("format")) == null ? void 0 : v.value;
1046
+ let r = (m = e.attributes.getNamedItem("format")) == null ? void 0 : m.value;
989
1047
  if (!r && e.attributes.getNamedItem("relative-date") !== null) {
990
1048
  const h = /* @__PURE__ */ new Date();
991
1049
  h.getFullYear() == o.getFullYear() && h.getMonth() == o.getMonth() && h.getDate() == o.getDate() && (n = "at", r = "HH:mm");
992
1050
  }
993
- r || (r = $.defaultDateTimeFormat);
994
- let l = W(o, r);
1051
+ r || (r = V.defaultDateTimeFormat);
1052
+ let l = Y(o, r);
995
1053
  return n && (l = n + " " + l), l;
996
1054
  }
997
- const en = {
998
- beforeMount: he,
999
- updated: he,
1000
- unmounted: tn
1055
+ const rn = {
1056
+ beforeMount: pe,
1057
+ updated: pe,
1058
+ unmounted: an
1001
1059
  };
1002
- function he(e, t) {
1060
+ function pe(e, t) {
1003
1061
  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");
1004
1062
  }
1005
- function tn(e) {
1063
+ function an(e) {
1006
1064
  e.tagName === "LABEL" && (e.classList.remove("disabled"), e = e.querySelector("input")), e.removeAttribute("disabled");
1007
1065
  }
1008
- const nn = {
1009
- beforeMount: fe,
1010
- updated: fe,
1011
- unmounted: He
1012
- }, H = Symbol("HasAutoFocused"), ee = [];
1013
- function sn() {
1014
- ee.forEach(Ie);
1066
+ const cn = {
1067
+ beforeMount: me,
1068
+ updated: me,
1069
+ unmounted: Ae
1070
+ }, B = Symbol("HasAutoFocused"), ie = [];
1071
+ function dn() {
1072
+ ie.forEach(De);
1015
1073
  }
1016
- setInterval(sn, 1e3);
1017
- function fe(e, t) {
1074
+ setInterval(dn, 1e3);
1075
+ function me(e, t) {
1018
1076
  var r;
1019
1077
  if (t.value == t.oldValue)
1020
1078
  return;
1021
1079
  if (!t.value)
1022
- return He(e);
1080
+ return Ae(e);
1023
1081
  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;
1024
- e[H] || ee.push(e), e[H] = {
1082
+ e[B] || ie.push(e), e[B] = {
1025
1083
  startTs: s,
1026
1084
  includeSeconds: o
1027
- }, Ie(e);
1085
+ }, De(e);
1028
1086
  }
1029
- function Ie(e) {
1030
- const t = e[H], n = Math.round((Date.now() - t.startTs) / 1e3);
1031
- e.innerText = on(n, t.includeSeconds);
1087
+ function De(e) {
1088
+ const t = e[B], n = Math.round((Date.now() - t.startTs) / 1e3);
1089
+ e.innerText = un(n, t.includeSeconds);
1032
1090
  }
1033
- function He(e) {
1034
- e[H] && (Xe(ee, e), delete e[H]), e.innerText = "-";
1091
+ function Ae(e) {
1092
+ e[B] && (Ge(ie, e), delete e[B]), e.innerText = "-";
1035
1093
  }
1036
- function on(e, t) {
1094
+ function un(e, t) {
1037
1095
  const n = [], i = Math.floor(e / 86400);
1038
1096
  i && n.push(i + "d"), e -= i * 86400;
1039
1097
  const s = Math.floor(e / 3600);
@@ -1041,31 +1099,31 @@ function on(e, t) {
1041
1099
  const o = Math.floor(e / 60);
1042
1100
  return (i || s || o) && n.push(o + "m"), t ? n.length || n.push("0m") : (e -= o * 60, n.push(e + "s")), n.join(" ");
1043
1101
  }
1044
- const k = Symbol("InfiniteScrollHandler"), ln = {
1102
+ const I = Symbol("InfiniteScrollHandler"), hn = {
1045
1103
  mounted(e, t) {
1046
- e[k] = new L(e, t.value);
1104
+ e[I] = new A(e, t.value);
1047
1105
  },
1048
1106
  updated(e, t) {
1049
1107
  var n;
1050
- (n = e[k]) == null || n.uninstall(), e[k] = new L(e, t.value);
1108
+ (n = e[I]) == null || n.uninstall(), e[I] = new A(e, t.value);
1051
1109
  },
1052
1110
  unmounted(e) {
1053
1111
  var t;
1054
- (t = e[k]) == null || t.uninstall(), delete e[k];
1112
+ (t = e[I]) == null || t.uninstall(), delete e[I];
1055
1113
  }
1056
- }, rn = {
1057
- beforeMount: pe,
1058
- updated: pe
1114
+ }, fn = {
1115
+ beforeMount: ve,
1116
+ updated: ve
1059
1117
  };
1060
- function pe(e, t) {
1118
+ function ve(e, t) {
1061
1119
  e.tagName == "LABEL" && (e = e.querySelector("input")), t.value ? e.setAttribute("readonly", "readonly") : e.removeAttribute("readonly");
1062
1120
  }
1063
- const an = {
1064
- mounted: me,
1065
- updated: me,
1066
- unmounted: De
1067
- }, C = Symbol("TooltipState");
1068
- function me(e, t) {
1121
+ const pn = {
1122
+ mounted: ye,
1123
+ updated: ye,
1124
+ unmounted: $e
1125
+ }, $ = Symbol("TooltipState");
1126
+ function ye(e, t) {
1069
1127
  var i;
1070
1128
  let n = ((i = e.attributes.getNamedItem("tip")) == null ? void 0 : i.value) ?? t.value;
1071
1129
  if (t.value || (n = null), n) {
@@ -1073,26 +1131,26 @@ function me(e, t) {
1073
1131
  content: n,
1074
1132
  html: e.getAttribute("html") !== null
1075
1133
  };
1076
- e[C] ? e[C].configure(s) : e[C] = new cn(e, s);
1134
+ e[$] ? e[$].configure(s) : e[$] = new mn(e, s);
1077
1135
  } else
1078
- De(e);
1136
+ $e(e);
1079
1137
  }
1080
- function De(e) {
1138
+ function $e(e) {
1081
1139
  var t;
1082
- (t = e[C]) == null || t.destroy(), delete e[C];
1140
+ (t = e[$]) == null || t.destroy(), delete e[$];
1083
1141
  }
1084
- class cn {
1142
+ class mn {
1085
1143
  constructor(t, n) {
1086
- m(this, "lastMoveEvt");
1087
- m(this, "checkInterval");
1088
- m(this, "shouldShow", !1);
1089
- m(this, "tipEl");
1090
- m(this, "titleEl");
1091
- m(this, "contentEl");
1092
- m(this, "mouseMoveBound", !1);
1093
- m(this, "handleMouseMoveWithContext", this.handleMouseMove.bind(this));
1094
- m(this, "handleTargetMouseEnterWithContext", this.handleTargetMouseEnter.bind(this));
1095
- m(this, "handleTargetMouseLeaveWithContext", this.handleTargetMouseLeave.bind(this));
1144
+ g(this, "lastMoveEvt");
1145
+ g(this, "checkInterval");
1146
+ g(this, "shouldShow", !1);
1147
+ g(this, "tipEl");
1148
+ g(this, "titleEl");
1149
+ g(this, "contentEl");
1150
+ g(this, "mouseMoveBound", !1);
1151
+ g(this, "handleMouseMoveWithContext", this.handleMouseMove.bind(this));
1152
+ g(this, "handleTargetMouseEnterWithContext", this.handleTargetMouseEnter.bind(this));
1153
+ g(this, "handleTargetMouseLeaveWithContext", this.handleTargetMouseLeave.bind(this));
1096
1154
  this.el = t, this.config = n, t.addEventListener("mouseenter", this.handleTargetMouseEnterWithContext), t.addEventListener("mouseleave", this.handleTargetMouseLeaveWithContext);
1097
1155
  }
1098
1156
  configure(t) {
@@ -1129,58 +1187,59 @@ class cn {
1129
1187
  this.shouldShow = !1, this.removeTooltip(), this.el.removeEventListener("mouseenter", this.handleTargetMouseEnterWithContext), this.el.removeEventListener("mouseleave", this.handleTargetMouseLeaveWithContext);
1130
1188
  }
1131
1189
  }
1132
- function dn(e) {
1133
- e.directive("autofocus", zt), e.directive("confirm-button", Xt), e.directive("date-input", Zt), e.directive("datetime", Qt), e.directive("disabled", en), e.directive("duration", nn), e.directive("infinite-scroll", ln), e.directive("readonly", rn), e.directive("tooltip", an);
1190
+ function vn(e) {
1191
+ e.directive("autofocus", Jt), e.directive("confirm-button", en), e.directive("date-input", nn), e.directive("datetime", on), e.directive("disabled", rn), e.directive("duration", cn), e.directive("infinite-scroll", hn), e.directive("readonly", fn), e.directive("tooltip", pn);
1134
1192
  }
1135
- function Nn(e) {
1136
- dn(e);
1193
+ function Pn(e) {
1194
+ vn(e);
1137
1195
  }
1138
1196
  export {
1139
- gn as ModalContainer,
1140
- K as UserError,
1141
- vn as VfAjaxSelect,
1142
- R as VfAlertModal,
1143
- Cn as VfEzSmartSelect,
1144
- dt as VfModal,
1145
- Ht as VfSmartSelect,
1146
- An as cloneProp,
1147
- bn as configureVf,
1148
- In as createFilters,
1149
- we as createModalInjection,
1150
- yt as desnakeCase,
1151
- Un as escapeHtml,
1152
- it as formatError,
1153
- jt as formatNumber,
1154
- Et as formatPhone,
1155
- Tt as formatUSCurrency,
1156
- Sn as handleError,
1157
- wn as handleErrorAndAlert,
1158
- Bn as installApiClientInterceptors,
1159
- Nn as installVf,
1160
- Pt as isApiError,
1161
- kn as maskComponent,
1162
- st as maskEl,
1163
- ot as maskForm,
1164
- xn as nl2br,
1165
- Vn as nullifyEmptyInputs,
1166
- G as presentModal,
1167
- Se as removeModalInjection,
1168
- yn as removeModalInjectionByInstance,
1169
- ke as removeModalInjectionByInternalInstance,
1170
- nt as removeModalInjectionByVnode,
1171
- Hn as replaceElement,
1172
- se as showAlert,
1173
- En as showConfirm,
1174
- Tn as showConfirmDestroy,
1175
- Dn as showContextMenu,
1176
- On as showWait,
1177
- Ut as sleep,
1178
- $n as sleepSecs,
1179
- Q as toError,
1180
- Mn as unmaskComponent,
1181
- Me as unmaskEl,
1182
- xe as unmaskForm,
1183
- Fn as useInfiniteScroll,
1184
- _n as useResizeWatcher,
1185
- Ln as uuid
1197
+ bn as OverlayContainer,
1198
+ P as UserError,
1199
+ wn as VfAjaxSelect,
1200
+ q as VfAlertModal,
1201
+ _n as VfEzSmartSelect,
1202
+ vt as VfModal,
1203
+ Vt as VfSmartSelect,
1204
+ Nn as cloneProp,
1205
+ Cn as configureVf,
1206
+ Bn as createFilters,
1207
+ Se as createOverlayInjection,
1208
+ kt as desnakeCase,
1209
+ at as dismissOverlayInjectionById,
1210
+ kn as dismissOverlayInjectionByInstance,
1211
+ xe as dismissOverlayInjectionByInternalInstance,
1212
+ rt as dismissOverlayInjectionByVnode,
1213
+ Xn as escapeHtml,
1214
+ ct as formatError,
1215
+ Yt as formatNumber,
1216
+ St as formatPhone,
1217
+ xt as formatUSCurrency,
1218
+ In as handleError,
1219
+ Mn as handleErrorAndAlert,
1220
+ Un as installApiClientInterceptors,
1221
+ Pn as installVf,
1222
+ Zt as isApiError,
1223
+ Hn as maskComponent,
1224
+ dt as maskEl,
1225
+ ut as maskForm,
1226
+ An as nl2br,
1227
+ Kn as nullifyEmptyInputs,
1228
+ ee as presentOverlay,
1229
+ Le as removeOverlayInjection,
1230
+ Vn as replaceElement,
1231
+ le as showAlert,
1232
+ Sn as showConfirm,
1233
+ xn as showConfirmDestroy,
1234
+ Fn as showContextMenu,
1235
+ Ln as showWait,
1236
+ Xt as sleep,
1237
+ Rn as sleepSecs,
1238
+ te as toError,
1239
+ Dn as unmaskComponent,
1240
+ Ce as unmaskEl,
1241
+ Me as unmaskForm,
1242
+ Wn as useInfiniteScroll,
1243
+ jn as useResizeWatcher,
1244
+ $n as uuid
1186
1245
  };