@signal24/vue-foundation 4.20.0 → 4.20.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,9 +1,9 @@
1
1
  var Tt = Object.defineProperty;
2
2
  var St = (e, t, n) => t in e ? Tt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var O = (e, t, n) => St(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { defineComponent as N, ref as T, computed as M, watch as A, onMounted as V, openBlock as E, createElementBlock as b, createElementVNode as D, toDisplayString as U, withDirectives as Q, createCommentVNode as F, Fragment as J, renderList as he, vModelSelect as Ct, getCurrentInstance as pe, normalizeClass as B, normalizeStyle as xt, withModifiers as ye, renderSlot as G, reactive as Lt, h as ee, Teleport as Mt, markRaw as It, onBeforeUnmount as ge, resolveDirective as Ht, createBlock as qe, createSlots as Ot, withCtx as ue, createTextVNode as ce, vModelText as At, onActivated as ze, onDeactivated as Ke } from "vue";
5
- import { compact as Ye, debounce as Ft, isEqual as Xe, upperFirst as Dt, startCase as Bt, cloneDeep as $t, remove as Vt, last as _t } from "lodash";
6
- import { escapeHtml as Nt } from "@vue/shared";
3
+ var F = (e, t, n) => St(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import { defineComponent as _, ref as T, computed as x, watch as O, onMounted as V, openBlock as E, createElementBlock as b, createElementVNode as D, toDisplayString as U, withDirectives as J, createCommentVNode as A, Fragment as ee, renderList as he, vModelSelect as Ct, getCurrentInstance as pe, normalizeClass as B, normalizeStyle as Lt, withModifiers as ye, renderSlot as j, reactive as Mt, h as te, Teleport as xt, markRaw as It, onBeforeUnmount as ge, resolveDirective as Ht, createBlock as qe, createSlots as Ft, withCtx as ce, createTextVNode as Q, vModelText as Ot, onActivated as ze, onDeactivated as Ke } from "vue";
5
+ import { compact as Ye, debounce as At, isEqual as Xe, upperFirst as Dt, startCase as Bt, cloneDeep as $t, remove as Vt, last as Nt } from "lodash";
6
+ import { escapeHtml as _t } from "@vue/shared";
7
7
  import { escapeHtml as Uo } from "@vue/shared";
8
8
  import { configureOpenApiClient as Rt, OpenApiError as Wt } from "@signal24/openapi-client-codegen/browser";
9
9
  import { format as ve } from "date-fns";
@@ -13,7 +13,7 @@ const Ut = {
13
13
  }, jt = {
14
14
  key: 0,
15
15
  value: null
16
- }, Pt = ["value"], mo = /* @__PURE__ */ N({
16
+ }, Pt = ["value"], mo = /* @__PURE__ */ _({
17
17
  __name: "vf-ajax-select",
18
18
  props: {
19
19
  modelValue: {},
@@ -25,23 +25,23 @@ const Ut = {
25
25
  },
26
26
  emits: ["update:modelValue"],
27
27
  setup(e, { emit: t }) {
28
- const n = e, o = t, i = T(null), l = M(() => i.value ? i.value.map((g) => {
28
+ const n = e, o = t, i = T(null), l = x(() => i.value ? i.value.map((g) => {
29
29
  const k = g;
30
30
  return n.preprocesor ? n.preprocesor(k) : n.displayKey ? k[n.displayKey] : "";
31
31
  }) : null), u = T(n.modelValue ?? null);
32
- A(() => n.loadFn, a), A(
32
+ O(() => n.loadFn, r), O(
33
33
  () => n.modelValue,
34
34
  () => u.value = n.modelValue
35
- ), A(u, () => o("update:modelValue", u.value));
36
- async function a() {
35
+ ), O(u, () => o("update:modelValue", u.value));
36
+ async function r() {
37
37
  i.value = await n.loadFn();
38
38
  }
39
- return V(a), (d, g) => l.value ? Q((E(), b("select", {
39
+ return V(r), (d, g) => l.value ? J((E(), b("select", {
40
40
  key: 1,
41
41
  "onUpdate:modelValue": g[0] || (g[0] = (k) => u.value = k)
42
42
  }, [
43
- n.nullText ? (E(), b("option", jt, U(n.nullText), 1)) : F("", !0),
44
- (E(!0), b(J, null, he(l.value, (k, f) => {
43
+ n.nullText ? (E(), b("option", jt, U(n.nullText), 1)) : A("", !0),
44
+ (E(!0), b(ee, null, he(l.value, (k, f) => {
45
45
  var w;
46
46
  return E(), b("option", {
47
47
  key: f,
@@ -54,7 +54,7 @@ const Ut = {
54
54
  D("option", null, U(n.loadingText || "Loading..."), 1)
55
55
  ]));
56
56
  }
57
- }), qt = /* @__PURE__ */ N({
57
+ }), qt = /* @__PURE__ */ _({
58
58
  __name: "overlay-anchor",
59
59
  props: {
60
60
  overlayId: {},
@@ -65,34 +65,34 @@ const Ut = {
65
65
  V(u);
66
66
  function u() {
67
67
  if (!l) return;
68
- const g = l.vnode.el, { styles: k, classes: f } = a(g, n);
68
+ const g = l.vnode.el, { styles: k, classes: f } = r(g, n);
69
69
  o.value = k, i.value = f;
70
70
  }
71
- function a(g, k) {
72
- const f = t.anchor instanceof HTMLElement ? {} : t.anchor, w = k.getBoundingClientRect(), m = g.getBoundingClientRect();
73
- f.matchWidth && (m.width = w.width), f.matchHeight && (m.height = w.height);
74
- const r = f.class ? Array.isArray(f.class) ? f.class : [f.class] : [];
71
+ function r(g, k) {
72
+ const f = t.anchor instanceof HTMLElement ? {} : t.anchor, w = k.getBoundingClientRect(), p = g.getBoundingClientRect();
73
+ f.matchWidth && (p.width = w.width), f.matchHeight && (p.height = w.height);
74
+ const a = f.class ? Array.isArray(f.class) ? f.class : [f.class] : [];
75
75
  let c, S;
76
76
  if (f.y === "center")
77
- c = w.top + w.height / 2 - m.height / 2, r.push("anchored-center-y");
77
+ c = w.top + w.height / 2 - p.height / 2, a.push("anchored-center-y");
78
78
  else {
79
- const x = (w.bottom + m.height < window.innerHeight || f.y === "below") && f.y !== "above";
80
- c = x ? w.bottom : w.top - m.height, r.push(x ? "anchored-top" : "anchored-bottom");
79
+ const L = (w.bottom + p.height < window.innerHeight || f.y === "below") && f.y !== "above";
80
+ c = L ? w.bottom : w.top - p.height, a.push(L ? "anchored-top" : "anchored-bottom");
81
81
  }
82
82
  if (f.x === "center")
83
- S = w.left + w.width / 2 - m.width / 2, r.push("anchored-center-x");
83
+ S = w.left + w.width / 2 - p.width / 2, a.push("anchored-center-x");
84
84
  else {
85
- const x = (w.left + m.width < window.innerWidth || f.x === "left") && f.x !== "right";
86
- S = x ? w.left : w.right - m.width, r.push(x ? "anchored-left" : "anchored-right");
85
+ const L = (w.left + p.width < window.innerWidth || f.x === "left") && f.x !== "right";
86
+ S = L ? w.left : w.right - p.width, a.push(L ? "anchored-left" : "anchored-right");
87
87
  }
88
88
  return {
89
89
  styles: {
90
90
  top: `${c}px`,
91
91
  left: `${S}px`,
92
- ...f.matchWidth ? { width: `${m.width}px` } : {},
93
- ...f.matchHeight ? { height: `${m.height}px` } : {}
92
+ ...f.matchWidth ? { width: `${p.width}px` } : {},
93
+ ...f.matchHeight ? { height: `${p.height}px` } : {}
94
94
  },
95
- classes: r
95
+ classes: a
96
96
  };
97
97
  }
98
98
  function d() {
@@ -104,33 +104,33 @@ const Ut = {
104
104
  }, 10);
105
105
  }), (g, k) => (E(), b("div", {
106
106
  class: B(["vf-overlay-anchor", i.value]),
107
- style: xt(o.value),
107
+ style: Lt(o.value),
108
108
  onClick: ye(d, ["stop"])
109
109
  }, [
110
- G(g.$slots, "default")
110
+ j(g.$slots, "default")
111
111
  ], 6));
112
112
  }
113
113
  });
114
114
  let zt = 0;
115
- const _ = Lt([]), ho = N({
115
+ const N = Mt([]), ho = _({
116
116
  setup() {
117
- return () => ee("div", [
118
- he(_, (e) => ee(Mt, { key: e.id, to: "#vf-overlay-target" }, [e.wrapperVnode ?? e.vnode]))
117
+ return () => te("div", [
118
+ he(N, (e) => te(xt, { key: e.id, to: "#vf-overlay-target" }, [e.wrapperVnode ?? e.vnode]))
119
119
  ]);
120
120
  }
121
121
  });
122
122
  function we(e, t, n) {
123
123
  const o = document.getElementById("vf-overlay-target") ?? document.createElement("div");
124
124
  o.id = "vf-overlay-target", o.removeAttribute("inert"), document.body.appendChild(o);
125
- const i = String(++zt), l = It(e), u = ee(l, t), a = n != null && n.anchor ? ee(qt, { overlayId: i, anchor: n.anchor }, () => [u]) : void 0, d = {
125
+ const i = String(++zt), l = It(e), u = te(l, t), r = n != null && n.anchor ? te(qt, { overlayId: i, anchor: n.anchor }, () => [u]) : void 0, d = {
126
126
  id: i,
127
127
  component: l,
128
128
  props: t,
129
129
  options: n ?? {},
130
130
  vnode: u,
131
- wrapperVnode: a
131
+ wrapperVnode: r
132
132
  };
133
- return _.push(d), d;
133
+ return N.push(d), d;
134
134
  }
135
135
  function po(e) {
136
136
  e.$ && Ze(e.$);
@@ -141,64 +141,64 @@ function Ze(e) {
141
141
  t = t.parent;
142
142
  }
143
143
  function Kt(e) {
144
- const t = _.findIndex((n) => n.vnode.component === e.component);
145
- return t >= 0 ? (_[t].props.callback(), !0) : !1;
144
+ const t = N.findIndex((n) => n.vnode.component === e.component);
145
+ return t >= 0 ? (N[t].props.callback(), !0) : !1;
146
146
  }
147
147
  function Yt(e) {
148
- const t = _.findIndex((n) => n.id === e);
149
- return t >= 0 ? (_[t].props.callback(), !0) : !1;
148
+ const t = N.findIndex((n) => n.id === e);
149
+ return t >= 0 ? (N[t].props.callback(), !0) : !1;
150
150
  }
151
- function te(e) {
152
- const t = _.indexOf(e);
153
- t >= 0 && _.splice(t, 1);
151
+ function ne(e) {
152
+ const t = N.indexOf(e);
153
+ t >= 0 && N.splice(t, 1);
154
154
  }
155
155
  async function Ee(e, t, n) {
156
156
  return new Promise((o) => {
157
157
  let i = null;
158
- const u = { ...t, callback: async (a) => {
158
+ const u = { ...t, callback: async (r) => {
159
159
  if (n != null && n.onCallback) {
160
- const d = n.onCallback(a);
160
+ const d = n.onCallback(r);
161
161
  if (typeof d == "object" && "then" in d && typeof d.then == "function" && await d === !1)
162
162
  return;
163
163
  }
164
- te(i), o(a);
164
+ ne(i), o(r);
165
165
  } };
166
166
  i = we(e, u, n);
167
167
  });
168
168
  }
169
- function ne(e, t) {
169
+ function oe(e, t) {
170
170
  return typeof e == "object" && !(e instanceof Error) ? {
171
171
  ...e,
172
172
  classes: e.classes ?? []
173
173
  } : { title: t ? e : void 0, message: t ?? e, classes: [] };
174
174
  }
175
175
  async function Xt(e, t) {
176
- await Ee(le, ne(e, t));
176
+ await Ee(se, oe(e, t));
177
177
  }
178
178
  async function yo(e, t) {
179
- const n = ne(e, t);
180
- return await Ee(le, {
179
+ const n = oe(e, t);
180
+ return await Ee(se, {
181
181
  ...n,
182
182
  shouldConfirm: !0
183
183
  }) === !0;
184
184
  }
185
185
  async function go(e, t) {
186
- const n = ne(e, t);
187
- return await Ee(le, {
186
+ const n = oe(e, t);
187
+ return await Ee(se, {
188
188
  ...n,
189
189
  shouldConfirm: !0,
190
190
  classes: ["destructive", ...n.classes]
191
191
  }) === !0;
192
192
  }
193
193
  function wo(e, t) {
194
- const n = ne(e, t), o = we(le, {
194
+ const n = oe(e, t), o = we(se, {
195
195
  ...n,
196
196
  isBare: !0,
197
197
  classes: ["wait", ...n.classes],
198
198
  callback: () => {
199
199
  }
200
200
  });
201
- return () => te(o);
201
+ return () => ne(o);
202
202
  }
203
203
  const $ = {
204
204
  unhandledErrorSupportText: "please contact support",
@@ -209,13 +209,13 @@ const $ = {
209
209
  function Eo(e) {
210
210
  Object.assign($, e);
211
211
  }
212
- class oe extends Error {
212
+ class le extends Error {
213
213
  constructor(t) {
214
214
  super(t), this.name = "UserError";
215
215
  }
216
216
  }
217
217
  function Zt(e) {
218
- return e instanceof oe ? e.message : `An application error has occurred:
218
+ return e instanceof le ? e.message : `An application error has occurred:
219
219
 
220
220
  ${be(e).message}
221
221
 
@@ -226,7 +226,7 @@ function be(e) {
226
226
  }
227
227
  async function bo(e, t) {
228
228
  const n = be(e);
229
- return n instanceof oe || $.errorHandler(n), Xt({
229
+ return n instanceof le || $.errorHandler(n), Xt({
230
230
  title: t == null ? void 0 : t.title,
231
231
  message: n,
232
232
  classes: t == null ? void 0 : t.classes
@@ -234,9 +234,9 @@ async function bo(e, t) {
234
234
  }
235
235
  async function ko(e) {
236
236
  const t = be(e);
237
- t instanceof oe || $.errorHandler(t);
237
+ t instanceof le || $.errorHandler(t);
238
238
  }
239
- const z = Symbol("MaskState");
239
+ const K = Symbol("MaskState");
240
240
  function To(e, t) {
241
241
  var i;
242
242
  const n = (i = e.$) == null ? void 0 : i.vnode.el, o = n.closest(".vf-modal");
@@ -248,14 +248,14 @@ function So(e) {
248
248
  return Ge(n ?? t);
249
249
  }
250
250
  function Gt(e, t) {
251
- if (!e[z]) {
251
+ if (!e[K]) {
252
252
  const n = document.createElement("div");
253
- n.classList.add("vf-mask"), e.appendChild(n), e[z] = { maskEl: n };
253
+ n.classList.add("vf-mask"), e.appendChild(n), e[K] = { maskEl: n };
254
254
  }
255
- return e[z].maskEl.innerText = t ?? "", () => Ge(e);
255
+ return e[K].maskEl.innerText = t ?? "", () => Ge(e);
256
256
  }
257
257
  function Ge(e) {
258
- e[z] && e.removeChild(e[z].maskEl);
258
+ e[K] && e.removeChild(e[K].maskEl);
259
259
  }
260
260
  const me = Symbol("FormMaskState");
261
261
  function Qt(e, t, n) {
@@ -266,9 +266,9 @@ function Qt(e, t, n) {
266
266
  const i = t instanceof Element ? t : o.querySelectorAll(t ?? 'button:not([disabled]):not([type="button"])')[0];
267
267
  let l;
268
268
  i && (l = i.tagName === "INPUT" ? i.value : i.innerHTML, i.setAttribute("disabled", "disabled"), i.innerText = n ?? "Please wait...");
269
- const a = [...o.querySelectorAll("input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled])")];
270
- return a.forEach((d) => d.setAttribute("disabled", "disabled")), o[me] = {
271
- disabledElements: a,
269
+ const r = [...o.querySelectorAll("input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled])")];
270
+ return r.forEach((d) => d.setAttribute("disabled", "disabled")), o[me] = {
271
+ disabledElements: r,
272
272
  waitButton: i,
273
273
  buttonHtml: l
274
274
  }, () => Qe(o);
@@ -290,7 +290,7 @@ const Jt = ["id"], en = {
290
290
  }, tn = { class: "vf-modal-content" }, nn = {
291
291
  key: 1,
292
292
  class: "vf-modal-footer"
293
- }, on = /* @__PURE__ */ N({
293
+ }, on = /* @__PURE__ */ _({
294
294
  __name: "vf-modal",
295
295
  props: {
296
296
  id: {},
@@ -302,8 +302,8 @@ const Jt = ["id"], en = {
302
302
  emits: ["formSubmit"],
303
303
  setup(e, { expose: t }) {
304
304
  const n = pe(), o = e;
305
- t({ mask: f, unmask: w, hide: m, unhide: r });
306
- const i = T(), l = T(), u = T(!1), a = M(() => Ye([...Array.isArray(o.class) ? o.class : [o.class], u.value && "hidden"]));
305
+ t({ mask: f, unmask: w, hide: p, unhide: a });
306
+ const i = T(), l = T(), u = T(!1), r = x(() => Ye([...Array.isArray(o.class) ? o.class : [o.class], u.value && "hidden"]));
307
307
  V(() => {
308
308
  var c;
309
309
  document.body.classList.add("vf-modal-open"), o.closeOnMaskClick && (window.addEventListener("keydown", g), (c = i.value) == null || c.addEventListener("click", d));
@@ -328,17 +328,17 @@ const Jt = ["id"], en = {
328
328
  function w() {
329
329
  Qe(l.value);
330
330
  }
331
- function m() {
332
- return u.value = !0, () => r();
331
+ function p() {
332
+ return u.value = !0, () => a();
333
333
  }
334
- function r() {
334
+ function a() {
335
335
  u.value = !1;
336
336
  }
337
337
  return (c, S) => (E(), b("div", {
338
338
  id: c.id,
339
339
  ref_key: "overlay",
340
340
  ref: i,
341
- class: B(["vf-overlay vf-modal-wrap", a.value])
341
+ class: B(["vf-overlay vf-modal-wrap", r.value])
342
342
  }, [
343
343
  D("form", {
344
344
  ref_key: "form",
@@ -348,23 +348,23 @@ const Jt = ["id"], en = {
348
348
  onSubmit: S[0] || (S[0] = ye((I) => c.$emit("formSubmit"), ["prevent"]))
349
349
  }, [
350
350
  c.$slots.header ? (E(), b("div", en, [
351
- G(c.$slots, "header"),
351
+ j(c.$slots, "header"),
352
352
  o.closeX ? (E(), b("i", {
353
353
  key: 0,
354
354
  class: "close",
355
355
  onClick: k
356
- })) : F("", !0)
357
- ])) : F("", !0),
356
+ })) : A("", !0)
357
+ ])) : A("", !0),
358
358
  D("div", tn, [
359
- G(c.$slots, "default")
359
+ j(c.$slots, "default")
360
360
  ]),
361
361
  c.$slots.footer ? (E(), b("div", nn, [
362
- G(c.$slots, "footer")
363
- ])) : F("", !0)
362
+ j(c.$slots, "footer")
363
+ ])) : A("", !0)
364
364
  ], 34)
365
365
  ], 10, Jt));
366
366
  }
367
- }), ln = ["innerHtml"], sn = ["innerText"], le = /* @__PURE__ */ N({
367
+ }), ln = ["innerHtml"], sn = ["innerText"], se = /* @__PURE__ */ _({
368
368
  __name: "vf-alert-modal",
369
369
  props: {
370
370
  isBare: { type: Boolean },
@@ -377,17 +377,17 @@ const Jt = ["id"], en = {
377
377
  callback: { type: Function }
378
378
  },
379
379
  setup(e) {
380
- const t = e, n = M(() => t.message instanceof Error ? Zt(t.message) : t.message);
380
+ const t = e, n = x(() => t.message instanceof Error ? Zt(t.message) : t.message);
381
381
  return (o, i) => {
382
382
  const l = Ht("autofocus");
383
383
  return E(), qe(on, {
384
384
  class: B(["vf-alert", ...o.classes ?? []])
385
- }, Ot({
386
- default: ue(() => [
385
+ }, Ft({
386
+ default: ce(() => [
387
387
  o.iconClass ? (E(), b("i", {
388
388
  key: 0,
389
389
  class: B(["vf-alert-icon", o.iconClass])
390
- }, null, 2)) : F("", !0),
390
+ }, null, 2)) : A("", !0),
391
391
  o.isHtml ? (E(), b("div", {
392
392
  key: 1,
393
393
  innerHtml: o.message,
@@ -401,20 +401,20 @@ const Jt = ["id"], en = {
401
401
  }, [
402
402
  o.title ? {
403
403
  name: "header",
404
- fn: ue(() => [
405
- ce(U(o.title), 1)
404
+ fn: ce(() => [
405
+ Q(U(o.title), 1)
406
406
  ]),
407
407
  key: "0"
408
408
  } : void 0,
409
409
  o.isBare ? void 0 : {
410
410
  name: "footer",
411
- fn: ue(() => [
412
- o.shouldConfirm ? (E(), b(J, { key: 0 }, [
413
- Q((E(), b("button", {
411
+ fn: ce(() => [
412
+ o.shouldConfirm ? (E(), b(ee, { key: 0 }, [
413
+ J((E(), b("button", {
414
414
  class: "primary",
415
415
  onClick: i[0] || (i[0] = () => o.callback(!0))
416
416
  }, i[3] || (i[3] = [
417
- ce("Confirm")
417
+ Q("Confirm")
418
418
  ]))), [
419
419
  [l]
420
420
  ]),
@@ -422,12 +422,12 @@ const Jt = ["id"], en = {
422
422
  class: "default",
423
423
  onClick: i[1] || (i[1] = () => o.callback(!1))
424
424
  }, "Cancel")
425
- ], 64)) : Q((E(), b("button", {
425
+ ], 64)) : J((E(), b("button", {
426
426
  key: 1,
427
427
  class: "default",
428
428
  onClick: i[2] || (i[2] = () => o.callback(!0))
429
429
  }, i[4] || (i[4] = [
430
- ce("OK")
430
+ Q("OK")
431
431
  ]))), [
432
432
  [l]
433
433
  ])
@@ -437,21 +437,21 @@ const Jt = ["id"], en = {
437
437
  ]), 1032, ["class"]);
438
438
  };
439
439
  }
440
- }), L = [];
440
+ }), M = [];
441
441
  for (let e = 0; e < 256; ++e)
442
- L.push((e + 256).toString(16).slice(1));
443
- function an(e, t = 0) {
444
- return (L[e[t + 0]] + L[e[t + 1]] + L[e[t + 2]] + L[e[t + 3]] + "-" + L[e[t + 4]] + L[e[t + 5]] + "-" + L[e[t + 6]] + L[e[t + 7]] + "-" + L[e[t + 8]] + L[e[t + 9]] + "-" + L[e[t + 10]] + L[e[t + 11]] + L[e[t + 12]] + L[e[t + 13]] + L[e[t + 14]] + L[e[t + 15]]).toLowerCase();
442
+ M.push((e + 256).toString(16).slice(1));
443
+ function rn(e, t = 0) {
444
+ return (M[e[t + 0]] + M[e[t + 1]] + M[e[t + 2]] + M[e[t + 3]] + "-" + M[e[t + 4]] + M[e[t + 5]] + "-" + M[e[t + 6]] + M[e[t + 7]] + "-" + M[e[t + 8]] + M[e[t + 9]] + "-" + M[e[t + 10]] + M[e[t + 11]] + M[e[t + 12]] + M[e[t + 13]] + M[e[t + 14]] + M[e[t + 15]]).toLowerCase();
445
445
  }
446
446
  let de;
447
- const rn = new Uint8Array(16);
447
+ const an = new Uint8Array(16);
448
448
  function un() {
449
449
  if (!de) {
450
450
  if (typeof crypto > "u" || !crypto.getRandomValues)
451
451
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
452
452
  de = crypto.getRandomValues.bind(crypto);
453
453
  }
454
- return de(rn);
454
+ return de(an);
455
455
  }
456
456
  const cn = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Be = { randomUUID: cn };
457
457
  function dn(e, t, n) {
@@ -462,7 +462,7 @@ function dn(e, t, n) {
462
462
  const o = e.random ?? ((i = e.rng) == null ? void 0 : i.call(e)) ?? un();
463
463
  if (o.length < 16)
464
464
  throw new Error("Random bytes length must be >= 16");
465
- return o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, an(o);
465
+ return o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, rn(o);
466
466
  }
467
467
  function Co(e) {
468
468
  return e.replace(/\n/g, "<br>");
@@ -477,7 +477,7 @@ function vn(e) {
477
477
  function mn(e, t = 1) {
478
478
  return "$" + (Number(e) / t).toFixed(3).replace(/0$/, "").replace(/\B(?=(\d{3})+(?!\d))/g, ",");
479
479
  }
480
- function xo() {
480
+ function Lo() {
481
481
  return dn();
482
482
  }
483
483
  const hn = ["disabled", "placeholder", "required"], pn = {
@@ -486,7 +486,7 @@ const hn = ["disabled", "placeholder", "required"], pn = {
486
486
  }, yn = ["onMousemove", "onMousedown"], gn = ["innerHTML"], wn = ["innerHTML"], En = {
487
487
  key: 0,
488
488
  class: "no-results"
489
- }, bn = "`1234567890-=[]\\;',./~!@#$%^&*()_+{}|:\"<>?qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", kn = /* @__PURE__ */ N({
489
+ }, bn = "`1234567890-=[]\\;',./~!@#$%^&*()_+{}|:\"<>?qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", kn = /* @__PURE__ */ _({
490
490
  __name: "vf-smart-select",
491
491
  props: {
492
492
  modelValue: {},
@@ -506,6 +506,7 @@ const hn = ["disabled", "placeholder", "required"], pn = {
506
506
  labelField: {},
507
507
  formatter: { type: Function },
508
508
  subtitleFormatter: { type: Function },
509
+ classForOption: { type: Function },
509
510
  nullTitle: {},
510
511
  noResultsText: {},
511
512
  disabled: { type: Boolean },
@@ -521,35 +522,35 @@ const hn = ["disabled", "placeholder", "required"], pn = {
521
522
  t({
522
523
  addRemoteOption: kt
523
524
  });
524
- const a = T(), d = T(), g = T(), k = T(!1), f = T(!1), w = T([]), m = T(!1), r = T(""), c = T(null), S = T(null), I = T(!1), x = T(null), Se = T(!1), at = M(() => l.showCreateTextOnNewItem ?? !0), rt = M(() => l.prependOptions ?? []), ut = M(() => l.appendOptions ?? []), Ce = M(() => !!l.disabled), ct = M(() => !f.value && l.preload ? "Loading..." : l.nullTitle ? l.nullTitle : l.placeholder || ""), dt = M(() => l.noResultsText || "No options match your search."), W = M(() => l.valueExtractor ? l.valueExtractor : l.valueField ? (s) => s[l.valueField] : null), j = M(() => l.keyExtractor ? l.keyExtractor : l.keyField ? (s) => String(s[l.keyField]) : W.value ? (s) => String(W.value(s)) : null), se = M(() => l.formatter ? l.formatter : l.labelField ? (s) => String(s[l.labelField]) : (s) => String(s)), xe = M(() => [...rt.value, ...w.value, ...ut.value]), ie = M(() => xe.value.map((s, v) => {
525
- var Ae, Fe;
526
- const h = se.value(s), p = (Ae = l.subtitleFormatter) == null ? void 0 : Ae.call(l, s), y = h ? h.trim().toLowerCase() : "", C = p ? p.trim().toLowerCase() : "", Z = [];
525
+ const r = T(), d = T(), g = T(), k = T(!1), f = T(!1), w = T([]), p = T(!1), a = T(""), c = T(null), S = T(null), I = T(!1), L = T(null), Se = T(!1), rt = x(() => l.showCreateTextOnNewItem ?? !0), at = x(() => l.prependOptions ?? []), ut = x(() => l.appendOptions ?? []), Ce = x(() => !!l.disabled), ct = x(() => !f.value && l.preload ? "Loading..." : l.nullTitle ? l.nullTitle : l.placeholder || ""), dt = x(() => l.noResultsText || "No options match your search."), W = x(() => l.valueExtractor ? l.valueExtractor : l.valueField ? (s) => s[l.valueField] : null), P = x(() => l.keyExtractor ? l.keyExtractor : l.keyField ? (s) => String(s[l.keyField]) : W.value ? (s) => String(W.value(s)) : null), ie = x(() => l.formatter ? l.formatter : l.labelField ? (s) => String(s[l.labelField]) : (s) => String(s)), Le = x(() => [...at.value, ...w.value, ...ut.value]), re = x(() => Le.value.map((s, v) => {
526
+ var Oe, Ae;
527
+ const m = ie.value(s), h = (Oe = l.subtitleFormatter) == null ? void 0 : Oe.call(l, s), y = m ? m.trim().toLowerCase() : "", C = h ? h.trim().toLowerCase() : "", G = [];
527
528
  return l.searchFields ? l.searchFields.forEach((De) => {
528
- s[De] && Z.push(String(s[De]).toLowerCase());
529
- }) : (Z.push(y), C && Z.push(C)), {
530
- key: ((Fe = j.value) == null ? void 0 : Fe.call(j, s)) ?? String(v),
531
- title: h,
532
- subtitle: p,
533
- searchContent: Z.join(""),
529
+ s[De] && G.push(String(s[De]).toLowerCase());
530
+ }) : (G.push(y), C && G.push(C)), {
531
+ key: ((Ae = P.value) == null ? void 0 : Ae.call(P, s)) ?? String(v),
532
+ title: m,
533
+ subtitle: h,
534
+ searchContent: G.join(""),
534
535
  ref: s
535
536
  };
536
- })), H = M(() => {
537
- let s = [...ie.value];
538
- if (m.value) {
539
- const v = r.value.trim().toLowerCase();
537
+ })), H = x(() => {
538
+ let s = [...re.value];
539
+ if (p.value) {
540
+ const v = a.value.trim().toLowerCase();
540
541
  if (v.length) {
541
542
  s = s.filter((y) => y.searchContent.includes(v));
542
- const h = Nt(r.value).replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&"), p = new RegExp(`(${h})`, "ig");
543
+ const m = _t(a.value).replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&"), h = new RegExp(`(${m})`, "ig");
543
544
  s = s.map((y) => {
544
545
  var C;
545
546
  return {
546
547
  ...y,
547
- title: y.title.replace(p, "<mark>$1</mark>"),
548
- subtitle: (C = y.subtitle) == null ? void 0 : C.replace(p, "<mark>$1</mark>")
548
+ title: y.title.replace(h, "<mark>$1</mark>"),
549
+ subtitle: (C = y.subtitle) == null ? void 0 : C.replace(h, "<mark>$1</mark>")
549
550
  };
550
551
  }), Se.value && (s.find((C) => C.searchContent === v) !== void 0 || s.push({
551
552
  key: i,
552
- title: at.value ? "Create <strong>" + r.value.trim() + "</strong>..." : r.value.trim()
553
+ title: rt.value ? "Create <strong>" + a.value.trim() + "</strong>..." : a.value.trim()
553
554
  }));
554
555
  }
555
556
  } else l.nullTitle && s.unshift({
@@ -558,47 +559,47 @@ const hn = ["disabled", "placeholder", "required"], pn = {
558
559
  });
559
560
  return s;
560
561
  });
561
- A(() => l.modelValue, re), A(
562
+ O(() => l.modelValue, ue), O(
562
563
  () => l.options,
563
564
  () => {
564
565
  w.value = l.options ?? [], f.value = !0;
565
566
  }
566
- ), A(ie, () => {
567
+ ), O(re, () => {
567
568
  I.value && setTimeout(Ie, 0);
568
- }), A(r, () => {
569
- m.value && !l.remoteSearch && !r.value.trim().length && (m.value = !1);
570
- }), A(I, () => {
571
- I.value ? setTimeout(wt, 0) : (m.value = !1, r.value = S.value || "", g.value && (g.value.style.visibility = "hidden"));
572
- }), A(H, () => {
569
+ }), O(a, () => {
570
+ p.value && !l.remoteSearch && !a.value.trim().length && (p.value = !1);
571
+ }), O(I, () => {
572
+ I.value ? setTimeout(wt, 0) : (p.value = !1, a.value = S.value || "", g.value && (g.value.style.visibility = "hidden"));
573
+ }), O(H, () => {
573
574
  var s;
574
- l.modelValue && !c.value && re(), (x.value || m.value) && !H.value.find((v) => v.key == x.value) && (x.value = ((s = H.value[0]) == null ? void 0 : s.key) ?? o);
575
+ l.modelValue && !c.value && ue(), (L.value || p.value) && !H.value.find((v) => v.key == L.value) && (L.value = ((s = H.value[0]) == null ? void 0 : s.key) ?? o);
575
576
  }), V(async () => {
576
- Se.value = l.onCreateItem !== void 0, l.options ? (w.value = [...l.options], f.value = !0) : l.preload && await Le(), re(), A(c, () => {
577
+ Se.value = l.onCreateItem !== void 0, l.options ? (w.value = [...l.options], f.value = !0) : l.preload && await Me(), ue(), O(c, () => {
577
578
  c.value !== l.modelValue && u(
578
579
  "update:modelValue",
579
580
  c.value && W.value ? W.value(c.value) : c.value
580
581
  );
581
- }), l.remoteSearch && A(r, Ft(ft, 250));
582
+ }), l.remoteSearch && O(a, At(ft, 250));
582
583
  });
583
- async function Le() {
584
- await Me(), w.value && u("optionsLoaded", w.value);
585
- }
586
584
  async function Me() {
585
+ await xe(), w.value && u("optionsLoaded", w.value);
586
+ }
587
+ async function xe() {
587
588
  var v;
588
- const s = l.remoteSearch && m.value && r.value ? r.value : null;
589
+ const s = l.remoteSearch && p.value && a.value ? a.value : null;
589
590
  k.value = !0, w.value = await ((v = l.loadOptions) == null ? void 0 : v.call(l, s)) ?? [], k.value = !1, f.value = !0;
590
591
  }
591
592
  function ft() {
592
- m.value && (Me(), m.value = r.value.trim().length > 0);
593
+ p.value && (xe(), p.value = a.value.trim().length > 0);
593
594
  }
594
595
  function vt(s) {
595
596
  if (s.key == "Escape") {
596
- s.stopPropagation(), s.target.blur(), Oe();
597
+ s.stopPropagation(), s.target.blur(), Fe();
597
598
  return;
598
599
  }
599
600
  if (!(s.key == "ArrowLeft" || s.key == "ArrowRight") && s.key != "Tab") {
600
601
  if (!f.value) {
601
- m.value || s.preventDefault();
602
+ p.value || s.preventDefault();
602
603
  return;
603
604
  }
604
605
  if (s.key == "ArrowUp" || s.key == "ArrowDown")
@@ -609,14 +610,14 @@ const hn = ["disabled", "placeholder", "required"], pn = {
609
610
  return s.preventDefault(), ae(s.key == "Home" ? -Number.MAX_SAFE_INTEGER : Number.MAX_SAFE_INTEGER);
610
611
  if (s.key == "Enter") {
611
612
  s.preventDefault();
612
- const v = H.value.find((h) => h.key == x.value);
613
+ const v = H.value.find((m) => m.key == L.value);
613
614
  if (v) return He(v);
614
615
  }
615
616
  if (s.key === "Delete" || s.key === "Backspace") {
616
- r.value.length > 1 && (m.value = !0);
617
+ a.value.length > 1 && (p.value = !0);
617
618
  return;
618
619
  }
619
- !s.metaKey && bn.includes(s.key) && (m.value = !0);
620
+ !s.metaKey && bn.includes(s.key) && (p.value = !0);
620
621
  }
621
622
  }
622
623
  function mt() {
@@ -626,92 +627,92 @@ const hn = ["disabled", "placeholder", "required"], pn = {
626
627
  }, 0);
627
628
  }
628
629
  function ht(s) {
629
- c.value ? x.value = pt(c.value) : l.nullTitle && (x.value = o);
630
+ c.value ? L.value = pt(c.value) : l.nullTitle && (L.value = o);
630
631
  }
631
632
  function pt(s) {
632
633
  var v;
633
- return j.value ? j.value(c.value) : ((v = yt(s)) == null ? void 0 : v.key) ?? "";
634
+ return P.value ? P.value(c.value) : ((v = yt(s)) == null ? void 0 : v.key) ?? "";
634
635
  }
635
636
  function yt(s) {
636
637
  const v = H.value.find((y) => y.ref === s);
637
638
  if (v)
638
639
  return v;
639
- const h = l.keyExtractor ? (y, C) => l.keyExtractor(y) === l.keyExtractor(C) : Xe, p = H.value.find((y) => h(y.ref, s));
640
- return p || null;
640
+ const m = l.keyExtractor ? (y, C) => l.keyExtractor(y) === l.keyExtractor(C) : Xe, h = H.value.find((y) => m(y.ref, s));
641
+ return h || null;
641
642
  }
642
643
  function gt() {
643
- l.debug || (!r.value.length && l.nullTitle && (c.value = null, S.value = null), I.value = !1);
644
+ l.debug || (!a.value.length && l.nullTitle && (c.value = null, S.value = null), I.value = !1);
644
645
  }
645
646
  function wt() {
646
647
  var s;
647
- f.value || Le(), l.optionsListId && ((s = g.value) == null || s.setAttribute("id", l.optionsListId)), Et();
648
+ f.value || Me(), l.optionsListId && ((s = g.value) == null || s.setAttribute("id", l.optionsListId)), Et();
648
649
  }
649
650
  function Et() {
650
- const s = a.value.getBoundingClientRect(), v = s.y + s.height + 2, h = s.x, p = g.value, y = window.getComputedStyle(a.value);
651
+ const s = r.value.getBoundingClientRect(), v = s.y + s.height + 2, m = s.x, h = g.value, y = window.getComputedStyle(r.value);
651
652
  for (let C in y)
652
- /^(font|text)/.test(C) && (p.style[C] = y[C]);
653
- if (p.style.top = v + "px", p.style.left = h + "px", p.style.minWidth = s.width + "px", !y.maxHeight || y.maxHeight == "none") {
653
+ /^(font|text)/.test(C) && (h.style[C] = y[C]);
654
+ if (h.style.top = v + "px", h.style.left = m + "px", h.style.minWidth = s.width + "px", !y.maxHeight || y.maxHeight == "none") {
654
655
  const C = window.innerHeight - v - 12;
655
- p.style.maxHeight = C + "px";
656
+ h.style.maxHeight = C + "px";
656
657
  }
657
- p.style.visibility = "visible", document.body.appendChild(p), setTimeout(Ie, 0);
658
+ h.style.visibility = "visible", document.body.appendChild(h), setTimeout(Ie, 0);
658
659
  }
659
660
  function Ie() {
660
- if (!f.value || !x.value) return;
661
- const s = H.value.findIndex((p) => p.key == x.value), v = g.value, h = v == null ? void 0 : v.querySelectorAll(".option")[s];
662
- h && (v.scrollTop = h.offsetTop);
661
+ if (!f.value || !L.value) return;
662
+ const s = H.value.findIndex((h) => h.key == L.value), v = g.value, m = v == null ? void 0 : v.querySelectorAll(".option")[s];
663
+ m && (v.scrollTop = m.offsetTop);
663
664
  }
664
665
  function bt(s) {
665
- x.value = s ? s.key : null;
666
+ L.value = s ? s.key : null;
666
667
  }
667
668
  function ae(s) {
668
- const v = H.value.findIndex((C) => C.key == x.value);
669
- let h = v + s;
670
- if (h < 0 ? h = 0 : h >= H.value.length && (h = H.value.length - 1), v == h) return;
671
- x.value = H.value[h].key;
672
- const p = g.value, y = p == null ? void 0 : p.querySelectorAll(".option")[h];
673
- y && (y.offsetTop < p.scrollTop ? p.scrollTop = y.offsetTop : y.offsetTop + y.offsetHeight > p.scrollTop + p.clientHeight && (p.scrollTop = y.offsetTop + y.offsetHeight - p.clientHeight));
669
+ const v = H.value.findIndex((C) => C.key == L.value);
670
+ let m = v + s;
671
+ if (m < 0 ? m = 0 : m >= H.value.length && (m = H.value.length - 1), v == m) return;
672
+ L.value = H.value[m].key;
673
+ const h = g.value, y = h == null ? void 0 : h.querySelectorAll(".option")[m];
674
+ y && (y.offsetTop < h.scrollTop ? h.scrollTop = y.offsetTop : y.offsetTop + y.offsetHeight > h.scrollTop + h.clientHeight && (h.scrollTop = y.offsetTop + y.offsetHeight - h.clientHeight));
674
675
  }
675
676
  function He(s) {
676
- var v, h;
677
- if (m.value = !1, s.key == o)
678
- r.value = "", c.value = null, S.value = null;
677
+ var v, m;
678
+ if (p.value = !1, s.key == o)
679
+ a.value = "", c.value = null, S.value = null;
679
680
  else if (s.key === i) {
680
- const p = r.value.trim();
681
- r.value = "", c.value = null, S.value = null, (v = l.onCreateItem) == null || v.call(l, p);
681
+ const h = a.value.trim();
682
+ a.value = "", c.value = null, S.value = null, (v = l.onCreateItem) == null || v.call(l, h);
682
683
  } else {
683
- const y = ie.value.find((C) => C.key == s.key).ref;
684
- c.value = y, S.value = se.value(y), r.value = S.value || "";
684
+ const y = re.value.find((C) => C.key == s.key).ref;
685
+ c.value = y, S.value = ie.value(y), a.value = S.value || "";
685
686
  }
686
- (h = d.value) == null || h.blur(), Oe();
687
+ (m = d.value) == null || m.blur(), Fe();
687
688
  }
688
- function re() {
689
- l.modelValue ? (c.value = W.value ? xe.value.find((s) => l.modelValue === W.value(s)) : l.modelValue, S.value = c.value ? se.value(c.value) : null, r.value = S.value || "") : (c.value = null, S.value = null, r.value = "");
689
+ function ue() {
690
+ l.modelValue ? (c.value = W.value ? Le.value.find((s) => l.modelValue === W.value(s)) : l.modelValue, S.value = c.value ? ie.value(c.value) : null, a.value = S.value || "") : (c.value = null, S.value = null, a.value = "");
690
691
  }
691
692
  function kt(s) {
692
693
  w.value.unshift(s);
693
694
  }
694
- function Oe() {
695
+ function Fe() {
695
696
  var y;
696
697
  if (!l.autoNext) return;
697
- let s = (y = a.value) == null ? void 0 : y.parentElement;
698
+ let s = (y = r.value) == null ? void 0 : y.parentElement;
698
699
  for (; s && s.tagName !== "FORM" && s.tagName !== "BODY"; )
699
700
  s = s.parentElement;
700
701
  if (!s) return;
701
702
  const v = s.querySelectorAll('input, button, textarea, select, [tabindex]:not([tabindex="-1"])');
702
703
  if (!v) return;
703
- const h = Array.from(v).findIndex((C) => C === d.value), p = v[h + 1];
704
- p && setTimeout(() => p.focus(), 0);
704
+ const m = Array.from(v).findIndex((C) => C === d.value), h = v[m + 1];
705
+ h && setTimeout(() => h.focus(), 0);
705
706
  }
706
707
  return (s, v) => (E(), b("div", {
707
708
  ref_key: "el",
708
- ref: a,
709
+ ref: r,
709
710
  class: B(["vf-smart-select", { disabled: Ce.value, open: I.value }])
710
711
  }, [
711
- Q(D("input", {
712
+ J(D("input", {
712
713
  ref_key: "searchField",
713
714
  ref: d,
714
- "onUpdate:modelValue": v[0] || (v[0] = (h) => r.value = h),
715
+ "onUpdate:modelValue": v[0] || (v[0] = (m) => a.value = m),
715
716
  type: "text",
716
717
  disabled: Ce.value,
717
718
  class: B({ nullable: !!s.nullTitle }),
@@ -722,7 +723,7 @@ const hn = ["disabled", "placeholder", "required"], pn = {
722
723
  onFocus: mt,
723
724
  onBlur: gt
724
725
  }, null, 42, hn), [
725
- [At, r.value]
726
+ [Ot, a.value]
726
727
  ]),
727
728
  I.value ? (E(), b("div", {
728
729
  key: 0,
@@ -730,31 +731,38 @@ const hn = ["disabled", "placeholder", "required"], pn = {
730
731
  ref: g,
731
732
  class: "vf-smart-select-options"
732
733
  }, [
733
- f.value ? (E(), b(J, { key: 1 }, [
734
- (E(!0), b(J, null, he(H.value, (h) => (E(), b("div", {
735
- key: String(h.key),
736
- class: B(["option", {
737
- highlighted: x.value === h.key
738
- }]),
739
- onMousemove: (p) => bt(h),
740
- onMousedown: (p) => He(h)
741
- }, [
742
- D("div", {
743
- class: "title",
744
- innerHTML: h.title
745
- }, null, 8, gn),
746
- h.subtitle ? (E(), b("div", {
747
- key: 0,
748
- class: "subtitle",
749
- innerHTML: h.subtitle
750
- }, null, 8, wn)) : F("", !0)
751
- ], 42, yn))), 128)),
752
- !H.value.length && r.value ? (E(), b("div", En, U(dt.value), 1)) : F("", !0)
734
+ f.value ? (E(), b(ee, { key: 1 }, [
735
+ (E(!0), b(ee, null, he(H.value, (m) => {
736
+ var h;
737
+ return E(), b("div", {
738
+ key: String(m.key),
739
+ class: B(["option", [L.value === m.key && "highlighted", m.ref && ((h = s.classForOption) == null ? void 0 : h.call(s, m.ref))]]),
740
+ onMousemove: (y) => bt(m),
741
+ onMousedown: (y) => He(m)
742
+ }, [
743
+ j(s.$slots, "option", { option: m }, () => [
744
+ D("div", {
745
+ class: "title",
746
+ innerHTML: m.title
747
+ }, null, 8, gn),
748
+ m.subtitle ? (E(), b("div", {
749
+ key: 0,
750
+ class: "subtitle",
751
+ innerHTML: m.subtitle
752
+ }, null, 8, wn)) : A("", !0)
753
+ ])
754
+ ], 42, yn);
755
+ }), 128)),
756
+ !H.value.length && a.value ? (E(), b("div", En, [
757
+ j(s.$slots, "no-results", {}, () => [
758
+ Q(U(dt.value), 1)
759
+ ])
760
+ ])) : A("", !0)
753
761
  ], 64)) : (E(), b("div", pn, "Loading..."))
754
- ], 512)) : F("", !0)
762
+ ], 512)) : A("", !0)
755
763
  ], 2));
756
764
  }
757
- }), Lo = /* @__PURE__ */ N({
765
+ }), Mo = /* @__PURE__ */ _({
758
766
  __name: "vf-ez-smart-select",
759
767
  props: {
760
768
  modelValue: {},
@@ -765,39 +773,39 @@ const hn = ["disabled", "placeholder", "required"], pn = {
765
773
  },
766
774
  emits: ["update:modelValue"],
767
775
  setup(e, { emit: t }) {
768
- const n = e, o = M(() => Array.isArray(n.options) ? n.options.map((a) => ({ value: a, label: a })) : Object.entries(n.options).map(([a, d]) => ({
769
- value: a,
776
+ const n = e, o = x(() => Array.isArray(n.options) ? n.options.map((r) => ({ value: r, label: r })) : Object.entries(n.options).map(([r, d]) => ({
777
+ value: r,
770
778
  label: d
771
- }))), i = M(() => n.formatter ? (a) => n.formatter(a.label) : (a) => a.label), l = t, u = T(o.value.find((a) => a.value === n.modelValue) ?? null);
772
- return A(
779
+ }))), i = x(() => n.formatter ? (r) => n.formatter(r.label) : (r) => r.label), l = t, u = T(o.value.find((r) => r.value === n.modelValue) ?? null);
780
+ return O(
773
781
  () => n.modelValue,
774
- (a) => {
775
- u.value = o.value.find((d) => d.value === a) ?? null;
782
+ (r) => {
783
+ u.value = o.value.find((d) => d.value === r) ?? null;
776
784
  }
777
- ), A(u, (a) => {
785
+ ), O(u, (r) => {
778
786
  var g;
779
- const d = a ? (g = o.value.find((k) => Xe(k, a))) == null ? void 0 : g.value : null;
787
+ const d = r ? (g = o.value.find((k) => Xe(k, r))) == null ? void 0 : g.value : null;
780
788
  l("update:modelValue", d ?? null);
781
- }), (a, d) => (E(), qe(kn, {
789
+ }), (r, d) => (E(), qe(kn, {
782
790
  modelValue: u.value,
783
791
  "onUpdate:modelValue": d[0] || (d[0] = (g) => u.value = g),
784
792
  options: o.value,
785
793
  formatter: i.value,
786
- "null-title": a.nullTitle,
787
- placeholder: a.placeholder
794
+ "null-title": r.nullTitle,
795
+ placeholder: r.placeholder
788
796
  }, null, 8, ["modelValue", "options", "formatter", "null-title", "placeholder"]));
789
797
  }
790
798
  });
791
- function Mo() {
799
+ function xo() {
792
800
  return T();
793
801
  }
794
802
  const Tn = { class: "content" }, Sn = { class: "message" }, Cn = {
795
803
  key: 0,
796
804
  class: "close"
797
- }, xn = {
805
+ }, Ln = {
798
806
  key: 0,
799
807
  class: "progress-bar"
800
- }, Ln = /* @__PURE__ */ N({
808
+ }, Mn = /* @__PURE__ */ _({
801
809
  __name: "vf-toast",
802
810
  props: {
803
811
  message: {},
@@ -826,26 +834,26 @@ const Tn = { class: "content" }, Sn = { class: "message" }, Cn = {
826
834
  }, [
827
835
  D("div", Tn, [
828
836
  D("div", Sn, U(i.message), 1),
829
- i.disableClose ? F("", !0) : (E(), b("div", Cn, "x"))
837
+ i.disableClose ? A("", !0) : (E(), b("div", Cn, "x"))
830
838
  ]),
831
- i.durationSecs !== null ? (E(), b("div", xn, [
839
+ i.durationSecs !== null ? (E(), b("div", Ln, [
832
840
  D("div", {
833
841
  ref_key: "progressInnerEl",
834
842
  ref: o,
835
843
  class: "inner"
836
844
  }, null, 512)
837
- ])) : F("", !0)
845
+ ])) : A("", !0)
838
846
  ], 2));
839
847
  }
840
848
  });
841
849
  function Io(e) {
842
- const t = we(Ln, {
850
+ const t = we(Mn, {
843
851
  ...e,
844
- callback: () => te(t)
852
+ callback: () => ne(t)
845
853
  });
846
- return () => te(t);
854
+ return () => ne(t);
847
855
  }
848
- function Mn(e) {
856
+ function xn(e) {
849
857
  const t = Math.floor(Math.log(e) / Math.log(1024)), o = (e / Math.pow(1024, t)).toFixed(2), i = ["B", "KB", "MB", "GB", "TB"][t];
850
858
  return `${o} ${i}`;
851
859
  }
@@ -855,13 +863,13 @@ function In(e) {
855
863
  function Hn(e) {
856
864
  return e || "-";
857
865
  }
858
- function On(e) {
859
- return e === null || typeof e == "string" && !/^\d+$/.test(e) ? e : Nn(Number(e));
866
+ function Fn(e) {
867
+ return e === null || typeof e == "string" && !/^\d+$/.test(e) ? e : _n(Number(e));
860
868
  }
861
- function An(e) {
869
+ function On(e) {
862
870
  return e && vn(e);
863
871
  }
864
- function Fn(e) {
872
+ function An(e) {
865
873
  return e ? Dt(e) : null;
866
874
  }
867
875
  function Dn(e) {
@@ -877,12 +885,12 @@ function Vn(e, t = 1) {
877
885
  return mn(e, t);
878
886
  }
879
887
  const $e = {
880
- bytes: Mn,
888
+ bytes: xn,
881
889
  dash: In,
882
890
  dashZeros: Hn,
883
- number: On,
884
- phone: An,
885
- upperFirst: Fn,
891
+ number: Fn,
892
+ phone: On,
893
+ upperFirst: An,
886
894
  startCase: Dn,
887
895
  upperCase: Bn,
888
896
  desnake: $n,
@@ -891,45 +899,45 @@ const $e = {
891
899
  ...$e,
892
900
  ...e($e)
893
901
  });
894
- function Oo(e, t, n) {
902
+ function Fo(e, t, n) {
895
903
  const o = typeof t == "function" ? e.findIndex(t) : e.indexOf(t);
896
904
  return o === -1 ? !1 : (e.splice(o, 1, n), !0);
897
905
  }
898
- function Ao(e, t) {
906
+ function Oo(e, t) {
899
907
  const n = document.createElement("div");
900
908
  n.classList.add("vf-overlay"), n.addEventListener("click", f), document.body.appendChild(n);
901
909
  const o = document.createElement("div");
902
910
  o.classList.add("vf-context-menu"), o.style.position = "absolute", n.appendChild(o);
903
911
  const i = e.currentTarget;
904
- i.style.userSelect = "none", i.classList.add("context-menu-active"), t.targetClass && i.classList.add(t.targetClass), t.class && o.classList.add(t.class), t.items.forEach((m) => {
905
- if (m == "-") {
912
+ i.style.userSelect = "none", i.classList.add("context-menu-active"), t.targetClass && i.classList.add(t.targetClass), t.class && o.classList.add(t.class), t.items.forEach((p) => {
913
+ if (p == "-") {
906
914
  const c = document.createElement("div");
907
915
  c.classList.add("separator"), o.appendChild(c);
908
916
  return;
909
917
  }
910
- const r = document.createElement("div");
911
- r.classList.add("item"), r.style.userSelect = "none", r.innerText = m.title, o.appendChild(r), m.class && r.classList.add(m.class), m.shouldConfirm ? r.addEventListener("click", (c) => w(c, r, m.handler)) : r.addEventListener("click", () => m.handler());
918
+ const a = document.createElement("div");
919
+ a.classList.add("item"), a.style.userSelect = "none", a.innerText = p.title, o.appendChild(a), p.class && a.classList.add(p.class), p.shouldConfirm ? a.addEventListener("click", (c) => w(c, a, p.handler)) : a.addEventListener("click", () => p.handler());
912
920
  });
913
- const l = window.innerWidth - e.clientX, u = window.innerHeight - e.clientY, a = o.offsetHeight, d = o.offsetWidth, g = l < d ? e.clientX - d - 1 : e.clientX + 1, k = u < a ? e.clientY - a - 1 : e.clientY + 1;
921
+ const l = window.innerWidth - e.clientX, u = window.innerHeight - e.clientY, r = o.offsetHeight, d = o.offsetWidth, g = l < d ? e.clientX - d - 1 : e.clientX + 1, k = u < r ? e.clientY - r - 1 : e.clientY + 1;
914
922
  o.style.left = g + "px", o.style.top = k + "px", setTimeout(() => {
915
923
  o.style.width = o.offsetWidth + "px";
916
924
  }, 50);
917
925
  function f() {
918
926
  t.targetClass && i.classList.remove(t.targetClass), i.classList.remove("context-menu-active"), i.style.userSelect = "", n.remove();
919
927
  }
920
- function w(m, r, c) {
921
- if (r.classList.contains("pending-confirm"))
928
+ function w(p, a, c) {
929
+ if (a.classList.contains("pending-confirm"))
922
930
  return c();
923
- const S = r.innerHTML;
924
- r.classList.add("pending-confirm"), r.innerText = "Confirm";
931
+ const S = a.innerHTML;
932
+ a.classList.add("pending-confirm"), a.innerText = "Confirm";
925
933
  const I = () => {
926
- r.classList.remove("pending-confirm"), r.innerHTML = S, r.removeEventListener("mouseleave", I);
934
+ a.classList.remove("pending-confirm"), a.innerHTML = S, a.removeEventListener("mouseleave", I);
927
935
  };
928
- r.addEventListener("mouseleave", I), m.stopPropagation();
936
+ a.addEventListener("mouseleave", I), p.stopPropagation();
929
937
  }
930
938
  }
931
- const _n = (e) => new Promise((t) => setTimeout(t, e)), Fo = (e) => _n(e * 1e3);
932
- function Nn(e) {
939
+ const Nn = (e) => new Promise((t) => setTimeout(t, e)), Ao = (e) => Nn(e * 1e3);
940
+ function _n(e) {
933
941
  return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
934
942
  }
935
943
  function Do(e, t) {
@@ -946,7 +954,7 @@ function $o(e, t) {
946
954
  ...t,
947
955
  onError(n, o) {
948
956
  var l;
949
- n instanceof Wt && n.response.status === 422 && typeof n.body == "object" && n.body && "error" in n.body && typeof n.body.error == "string" && (n = new oe(n.body.error));
957
+ n instanceof Wt && n.response.status === 422 && typeof n.body == "object" && n.body && "error" in n.body && typeof n.body.error == "string" && (n = new le(n.body.error));
950
958
  const i = (l = t.onError) == null ? void 0 : l.call(t, n, o);
951
959
  return i !== void 0 ? i : n;
952
960
  }
@@ -959,11 +967,11 @@ function Vo(e, t) {
959
967
  }
960
968
  function Rn(e, t) {
961
969
  const n = {};
962
- if (t.elScrolledToBottom && (n.el = new K(e.vnode.el, t.elScrolledToBottom)), t.ancestorScrolledToBottom) {
970
+ if (t.elScrolledToBottom && (n.el = new Y(e.vnode.el, t.elScrolledToBottom)), t.ancestorScrolledToBottom) {
963
971
  const o = et(e.vnode.el);
964
- o ? n.ancestor = new K(o, t.ancestorScrolledToBottom) : console.warn("[VueFoundation] No scollable ancestor found for component:", e);
972
+ o ? n.ancestor = new Y(o, t.ancestorScrolledToBottom) : console.warn("[VueFoundation] No scollable ancestor found for component:", e);
965
973
  }
966
- t.windowScrolledToBottom && (n.window = new K(window, t.windowScrolledToBottom)), e[ke] = n;
974
+ t.windowScrolledToBottom && (n.window = new Y(window, t.windowScrolledToBottom)), e[ke] = n;
967
975
  }
968
976
  function Wn(e) {
969
977
  var n, o, i;
@@ -982,10 +990,10 @@ function et(e) {
982
990
  const n = window.getComputedStyle(t);
983
991
  return fe.includes(n.overflow) || fe.includes(n.overflowX) || fe.includes(n.overflowY) ? t : et(t);
984
992
  }
985
- class K {
993
+ class Y {
986
994
  constructor(t, n) {
987
- O(this, "isTripped", !1);
988
- O(this, "onScrollWithContext", this.onScroll.bind(this));
995
+ F(this, "isTripped", !1);
996
+ F(this, "onScrollWithContext", this.onScroll.bind(this));
989
997
  this.el = t, this.handler = n, this.install();
990
998
  }
991
999
  install() {
@@ -998,30 +1006,30 @@ class K {
998
1006
  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);
999
1007
  }
1000
1008
  }
1001
- function _o(e) {
1009
+ function No(e) {
1002
1010
  V(() => window.addEventListener("resize", e)), ze(() => window.addEventListener("resize", e)), Ke(() => window.removeEventListener("resize", e)), ge(() => window.removeEventListener("resize", e));
1003
1011
  }
1004
1012
  const Un = {
1005
- mounted: Ne,
1006
- updated: Ne
1007
- }, _e = Symbol("HasAutoFocused");
1008
- function Ne(e, t) {
1009
- if (t.value === void 0 && e[_e] || t.value !== void 0 && !t.value || t.oldValue !== void 0 && t.value == t.oldValue) return;
1010
- e[_e] = !0;
1013
+ mounted: _e,
1014
+ updated: _e
1015
+ }, Ne = Symbol("HasAutoFocused");
1016
+ function _e(e, t) {
1017
+ if (t.value === void 0 && e[Ne] || t.value !== void 0 && !t.value || t.oldValue !== void 0 && t.value == t.oldValue) return;
1018
+ e[Ne] = !0;
1011
1019
  const n = ["BUTTON", "INPUT", "TEXTAREA", "SELECT"].indexOf(e.tagName) > -1 ? e : e.querySelectorAll("input")[0];
1012
1020
  setTimeout(() => n.focus(), 10);
1013
1021
  }
1014
1022
  const jn = {
1015
1023
  mounted: Pn
1016
- }, P = Symbol("ConfirmState");
1024
+ }, q = Symbol("ConfirmState");
1017
1025
  function Pn(e, t) {
1018
1026
  e.addEventListener("click", (n) => {
1019
- var u, a;
1027
+ var u, r;
1020
1028
  const o = Date.now(), i = ((u = t.value) == null ? void 0 : u.text) !== void 0 ? t.value.text : "Confirm";
1021
- if (e[P]) {
1022
- if (o - e[P].initTime < 300)
1029
+ if (e[q]) {
1030
+ if (o - e[q].initTime < 300)
1023
1031
  return;
1024
- e[P].resetHandler(), e.dispatchEvent(new Event("confirm"));
1032
+ e[q].resetHandler(), e.dispatchEvent(new Event("confirm"));
1025
1033
  return;
1026
1034
  }
1027
1035
  n.preventDefault(), n.stopImmediatePropagation();
@@ -1030,10 +1038,10 @@ function Pn(e, t) {
1030
1038
  preconfirmHtml: e.innerHTML,
1031
1039
  resetHandler: () => {
1032
1040
  var d;
1033
- i && (e.innerHTML = l.preconfirmHtml), (d = t.value) != null && d.class && e.classList.remove(t.value.class), e.blur(), e.removeEventListener("mouseout", l.resetHandler), delete e[P];
1041
+ i && (e.innerHTML = l.preconfirmHtml), (d = t.value) != null && d.class && e.classList.remove(t.value.class), e.blur(), e.removeEventListener("mouseout", l.resetHandler), delete e[q];
1034
1042
  }
1035
1043
  };
1036
- e[P] = l, i && (e.innerHTML = i), (a = t.value) != null && a.class && e.classList.add(t.value.class), e.addEventListener("mouseout", l.resetHandler);
1044
+ e[q] = l, i && (e.innerHTML = i), (r = t.value) != null && r.class && e.classList.add(t.value.class), e.addEventListener("mouseout", l.resetHandler);
1037
1045
  });
1038
1046
  }
1039
1047
  const qn = {
@@ -1062,7 +1070,7 @@ function Yn(e, t) {
1062
1070
  const o = t.value.replace(/ /g, "T").replace(/\.\d+Z$/, "Z"), i = e.attributes.getNamedItem("local") !== null ? o.replace(/Z$/, "") : o.replace(/(Z|\+00:00)?$/, "Z"), l = new Date(i);
1063
1071
  e.attributes.getNamedItem("display-utc") !== null && l.setMinutes(l.getMinutes() - l.getTimezoneOffset());
1064
1072
  let u = (k = e.attributes.getNamedItem("format")) == null ? void 0 : k.value;
1065
- const a = e.attributes.getNamedItem("date-only") !== null;
1073
+ const r = e.attributes.getNamedItem("date-only") !== null;
1066
1074
  if (!u && e.attributes.getNamedItem("relative-date") !== null) {
1067
1075
  const f = /* @__PURE__ */ new Date();
1068
1076
  f.getFullYear() === l.getFullYear() && f.getMonth() === l.getMonth() && f.getDate() === l.getDate() && (n = "at", u = "HH:mm");
@@ -1071,10 +1079,10 @@ function Yn(e, t) {
1071
1079
  let f = null;
1072
1080
  const w = /* @__PURE__ */ new Date();
1073
1081
  w.getFullYear() === l.getFullYear() ? (w.getMonth() !== l.getMonth() || w.getDate() !== l.getDate()) && (f = "M/d") : f = "M/d/yy";
1074
- const m = a ? null : $.defaultTimeFormat;
1075
- u = Ye([f, m]).join(" ");
1082
+ const p = r ? null : $.defaultTimeFormat;
1083
+ u = Ye([f, p]).join(" ");
1076
1084
  }
1077
- u || (a ? u = $.defaultDateFormat : u = `${$.defaultDateFormat} ${$.defaultTimeFormat}`);
1085
+ u || (r ? u = $.defaultDateFormat : u = `${$.defaultDateFormat} ${$.defaultTimeFormat}`);
1078
1086
  let d = ve(l, u);
1079
1087
  return n && (d = n + " " + d), d;
1080
1088
  }
@@ -1093,7 +1101,7 @@ const Gn = {
1093
1101
  beforeMount: Ue,
1094
1102
  updated: Ue,
1095
1103
  unmounted: nt
1096
- }, X = Symbol("HasAutoFocused"), Te = [];
1104
+ }, Z = Symbol("HasAutoFocused"), Te = [];
1097
1105
  function Qn() {
1098
1106
  Te.forEach(tt);
1099
1107
  }
@@ -1103,17 +1111,17 @@ function Ue(e, t) {
1103
1111
  if (t.value == t.oldValue) return;
1104
1112
  if (!t.value) return nt(e);
1105
1113
  const n = new Date(t.value), o = (u = e.attributes.getNamedItem("base-time")) == null ? void 0 : u.value, i = n.getTime() - (o ? new Date(o).getTime() - t.value * 1e3 : 0), l = e.getAttribute("no-seconds") === null;
1106
- e[X] || Te.push(e), e[X] = {
1114
+ e[Z] || Te.push(e), e[Z] = {
1107
1115
  startTs: i,
1108
1116
  includeSeconds: l
1109
1117
  }, tt(e);
1110
1118
  }
1111
1119
  function tt(e) {
1112
- const t = e[X], n = Math.round((Date.now() - t.startTs) / 1e3);
1120
+ const t = e[Z], n = Math.round((Date.now() - t.startTs) / 1e3);
1113
1121
  e.innerText = Jn(n, t.includeSeconds);
1114
1122
  }
1115
1123
  function nt(e) {
1116
- e[X] && (Vt(Te, e), delete e[X]), e.innerText = "-";
1124
+ e[Z] && (Vt(Te, e), delete e[Z]), e.innerText = "-";
1117
1125
  }
1118
1126
  function Jn(e, t) {
1119
1127
  const n = [], o = Math.floor(e / 86400);
@@ -1146,21 +1154,21 @@ function st(e) {
1146
1154
  if (typeof e.key != "string") return;
1147
1155
  const t = e.key.toLowerCase(), n = R.get(t);
1148
1156
  if (n) {
1149
- const o = _t(n);
1157
+ const o = Nt(n);
1150
1158
  o == null || o.click(), e.preventDefault();
1151
1159
  }
1152
1160
  }
1153
- const q = Symbol("InfiniteScrollHandler"), no = {
1161
+ const z = Symbol("InfiniteScrollHandler"), no = {
1154
1162
  mounted(e, t) {
1155
- e[q] = new K(e, t.value);
1163
+ e[z] = new Y(e, t.value);
1156
1164
  },
1157
1165
  updated(e, t) {
1158
1166
  var n;
1159
- (n = e[q]) == null || n.uninstall(), e[q] = new K(e, t.value);
1167
+ (n = e[z]) == null || n.uninstall(), e[z] = new Y(e, t.value);
1160
1168
  },
1161
1169
  unmounted(e) {
1162
1170
  var t;
1163
- (t = e[q]) == null || t.uninstall(), delete e[q];
1171
+ (t = e[z]) == null || t.uninstall(), delete e[z];
1164
1172
  }
1165
1173
  }, oo = {
1166
1174
  beforeMount: je,
@@ -1173,7 +1181,7 @@ const lo = {
1173
1181
  mounted: Pe,
1174
1182
  updated: Pe,
1175
1183
  unmounted: it
1176
- }, Y = Symbol("TooltipState");
1184
+ }, X = Symbol("TooltipState");
1177
1185
  function Pe(e, t) {
1178
1186
  var o;
1179
1187
  let n = ((o = e.attributes.getNamedItem("tip")) == null ? void 0 : o.value) ?? t.value;
@@ -1182,26 +1190,26 @@ function Pe(e, t) {
1182
1190
  content: n,
1183
1191
  html: e.getAttribute("html") !== null
1184
1192
  };
1185
- e[Y] ? e[Y].configure(i) : e[Y] = new so(e, i);
1193
+ e[X] ? e[X].configure(i) : e[X] = new so(e, i);
1186
1194
  } else
1187
1195
  it(e);
1188
1196
  }
1189
1197
  function it(e) {
1190
1198
  var t;
1191
- (t = e[Y]) == null || t.destroy(), delete e[Y];
1199
+ (t = e[X]) == null || t.destroy(), delete e[X];
1192
1200
  }
1193
1201
  class so {
1194
1202
  constructor(t, n) {
1195
- O(this, "lastMoveEvt");
1196
- O(this, "checkInterval");
1197
- O(this, "shouldShow", !1);
1198
- O(this, "tipEl");
1199
- O(this, "titleEl");
1200
- O(this, "contentEl");
1201
- O(this, "mouseMoveBound", !1);
1202
- O(this, "handleMouseMoveWithContext", this.handleMouseMove.bind(this));
1203
- O(this, "handleTargetMouseEnterWithContext", this.handleTargetMouseEnter.bind(this));
1204
- O(this, "handleTargetMouseLeaveWithContext", this.handleTargetMouseLeave.bind(this));
1203
+ F(this, "lastMoveEvt");
1204
+ F(this, "checkInterval");
1205
+ F(this, "shouldShow", !1);
1206
+ F(this, "tipEl");
1207
+ F(this, "titleEl");
1208
+ F(this, "contentEl");
1209
+ F(this, "mouseMoveBound", !1);
1210
+ F(this, "handleMouseMoveWithContext", this.handleMouseMove.bind(this));
1211
+ F(this, "handleTargetMouseEnterWithContext", this.handleTargetMouseEnter.bind(this));
1212
+ F(this, "handleTargetMouseLeaveWithContext", this.handleTargetMouseLeave.bind(this));
1205
1213
  this.el = t, this.config = n, t.addEventListener("mouseenter", this.handleTargetMouseEnterWithContext), t.addEventListener("mouseleave", this.handleTargetMouseLeaveWithContext), t.addEventListener("click", this.handleTargetMouseLeaveWithContext);
1206
1214
  }
1207
1215
  configure(t) {
@@ -1227,8 +1235,8 @@ class so {
1227
1235
  }
1228
1236
  handleMouseMove(t) {
1229
1237
  const n = this.tipEl.offsetWidth, o = this.tipEl.offsetHeight, i = window.innerWidth, l = window.innerHeight;
1230
- let u = t.pageX + 10, a = t.pageY + 20;
1231
- u + n > i && (u = t.pageX - 5 - n), a + o > l && (a = t.pageY - 5 - o), this.tipEl.style.left = u + "px", this.tipEl.style.top = a + "px", this.lastMoveEvt = t;
1238
+ let u = t.pageX + 10, r = t.pageY + 20;
1239
+ u + n > i && (u = t.pageX - 5 - n), r + o > l && (r = t.pageY - 5 - o), this.tipEl.style.left = u + "px", this.tipEl.style.top = r + "px", this.lastMoveEvt = t;
1232
1240
  }
1233
1241
  checkMoveEvent() {
1234
1242
  var t;
@@ -1241,15 +1249,15 @@ class so {
1241
1249
  function io(e) {
1242
1250
  e.directive("autofocus", Un), e.directive("confirm-button", jn), e.directive("date-input", qn), e.directive("datetime", Kn), e.directive("disabled", Xn), e.directive("duration", Gn), e.directive("hotkey", eo), e.directive("infinite-scroll", no), e.directive("readonly", oo), e.directive("tooltip", lo);
1243
1251
  }
1244
- function No(e) {
1252
+ function _o(e) {
1245
1253
  io(e);
1246
1254
  }
1247
1255
  export {
1248
1256
  ho as OverlayContainer,
1249
- oe as UserError,
1257
+ le as UserError,
1250
1258
  mo as VfAjaxSelect,
1251
- le as VfAlertModal,
1252
- Lo as VfEzSmartSelect,
1259
+ se as VfAlertModal,
1260
+ Mo as VfEzSmartSelect,
1253
1261
  on as VfModal,
1254
1262
  kn as VfSmartSelect,
1255
1263
  Do as cloneProp,
@@ -1264,34 +1272,34 @@ export {
1264
1272
  Kt as dismissOverlayInjectionByVnode,
1265
1273
  Uo as escapeHtml,
1266
1274
  Zt as formatError,
1267
- Nn as formatNumber,
1275
+ _n as formatNumber,
1268
1276
  vn as formatPhone,
1269
1277
  mn as formatUSCurrency,
1270
1278
  ko as handleError,
1271
1279
  bo as handleErrorAndAlert,
1272
- No as installVf,
1280
+ _o as installVf,
1273
1281
  To as maskComponent,
1274
1282
  Gt as maskEl,
1275
1283
  Qt as maskForm,
1276
1284
  Co as nl2br,
1277
1285
  Bo as nullifyEmptyInputs,
1278
1286
  Ee as presentOverlay,
1279
- te as removeOverlayInjection,
1280
- Oo as replaceElement,
1287
+ ne as removeOverlayInjection,
1288
+ Fo as replaceElement,
1281
1289
  Xt as showAlert,
1282
1290
  yo as showConfirm,
1283
1291
  go as showConfirmDestroy,
1284
- Ao as showContextMenu,
1292
+ Oo as showContextMenu,
1285
1293
  Io as showToast,
1286
1294
  wo as showWait,
1287
- _n as sleep,
1288
- Fo as sleepSecs,
1295
+ Nn as sleep,
1296
+ Ao as sleepSecs,
1289
1297
  be as toError,
1290
1298
  So as unmaskComponent,
1291
1299
  Ge as unmaskEl,
1292
1300
  Qe as unmaskForm,
1293
1301
  Vo as useInfiniteScroll,
1294
- _o as useResizeWatcher,
1295
- xo as uuid,
1296
- Mo as vfModalRef
1302
+ No as useResizeWatcher,
1303
+ Lo as uuid,
1304
+ xo as vfModalRef
1297
1305
  };