@signal24/vue-foundation 4.7.2 → 4.7.4

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 Ve = Object.defineProperty;
2
- var Fe = (e, t, n) => t in e ? Ve(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var v = (e, t, n) => (Fe(e, typeof t != "symbol" ? t + "" : t, n), n);
4
- import { defineComponent as C, defineProps as Ne, defineEmits as Re, ref as w, computed as V, openBlock as u, createElementBlock as f, createElementVNode as O, toDisplayString as x, withDirectives as U, createCommentVNode as T, Fragment as j, renderList as J, vModelSelect as Ke, getCurrentInstance as ee, onMounted as L, normalizeClass as k, normalizeStyle as Ue, withModifiers as te, renderSlot as K, reactive as je, h as W, Teleport as We, markRaw as Pe, onBeforeUnmount as ne, resolveDirective as Te, createBlock as ke, createSlots as qe, withCtx as Y, createTextVNode as ae, vModelText as ze, watch as ce, onActivated as Se, onDeactivated as Ce } from "vue";
5
- import { compact as Xe, debounce as Ye, isEqual as xe, upperFirst as Ze, startCase as Ge, cloneDeep as Qe, remove as Je } from "lodash";
6
- import { escapeHtml as et } from "@vue/shared";
7
- import { escapeHtml as si } from "@vue/shared";
1
+ var Fe = Object.defineProperty;
2
+ var Ne = (e, t, n) => t in e ? Fe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var v = (e, t, n) => (Ne(e, typeof t != "symbol" ? t + "" : t, n), n);
4
+ import { defineComponent as C, defineProps as Re, defineEmits as je, ref as T, computed as V, openBlock as u, createElementBlock as f, createElementVNode as w, toDisplayString as x, withDirectives as K, createCommentVNode as O, Fragment as U, renderList as J, vModelSelect as Ke, getCurrentInstance as ee, onMounted as L, normalizeClass as k, normalizeStyle as Ue, withModifiers as te, renderSlot as j, reactive as We, h as W, Teleport as Pe, markRaw as qe, onBeforeUnmount as ne, resolveDirective as Oe, createBlock as ke, createSlots as ze, withCtx as Y, createTextVNode as ae, vModelText as Xe, watch as ce, onActivated as Se, onDeactivated as Ce } from "vue";
5
+ import { compact as Ye, debounce as Ze, isEqual as xe, upperFirst as Ge, startCase as Qe, cloneDeep as Je, remove as et } from "lodash";
6
+ import { escapeHtml as tt } from "@vue/shared";
7
+ import { escapeHtml as oi } from "@vue/shared";
8
8
  import { format as G } from "date-fns";
9
- const tt = C({
9
+ const nt = C({
10
10
  setup() {
11
- const e = Ne();
12
- Re(["update:modelValue"]);
13
- const t = w(null), n = V(() => t.value ? t.value.map((o) => e.preprocesor ? e.preprocesor(o) : o[e.displayKey ?? ""]) : null), i = w(e.modelValue ?? null);
11
+ const e = Re();
12
+ je(["update:modelValue"]);
13
+ const t = T(null), n = V(() => t.value ? t.value.map((o) => e.preprocesor ? e.preprocesor(o) : o[e.displayKey ?? ""]) : null), i = T(e.modelValue ?? null);
14
14
  return { props: e, options: t, renderOptions: n, selectedItem: i };
15
15
  },
16
16
  watch: {
@@ -37,40 +37,40 @@ const tt = C({
37
37
  for (const [i, s] of t)
38
38
  n[i] = s;
39
39
  return n;
40
- }, nt = {
40
+ }, it = {
41
41
  key: 0,
42
42
  disabled: ""
43
- }, it = {
43
+ }, st = {
44
44
  key: 0,
45
45
  value: null
46
- }, st = ["value"];
47
- function ot(e, t, n, i, s, o) {
48
- return e.renderOptions ? U((u(), f("select", {
46
+ }, ot = ["value"];
47
+ function lt(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 ? (u(), f("option", it, x(e.props.nullText), 1)) : T("", !0),
53
- (u(!0), f(j, null, J(e.renderOptions, (r, l) => {
52
+ e.props.nullText ? (u(), f("option", st, x(e.props.nullText), 1)) : O("", !0),
53
+ (u(!0), f(U, null, J(e.renderOptions, (r, l) => {
54
54
  var c;
55
55
  return u(), f("option", {
56
56
  key: l,
57
57
  value: (c = e.options) == null ? void 0 : c[l]
58
- }, x(r), 9, st);
58
+ }, x(r), 9, ot);
59
59
  }), 128))
60
60
  ], 512)), [
61
61
  [Ke, e.selectedItem]
62
- ]) : (u(), f("select", nt, [
63
- O("option", null, x(e.props.loadingText || "Loading..."), 1)
62
+ ]) : (u(), f("select", it, [
63
+ w("option", null, x(e.props.loadingText || "Loading..."), 1)
64
64
  ]));
65
65
  }
66
- const Hn = /* @__PURE__ */ Le(tt, [["render", ot]]), lt = ["onClick"], rt = /* @__PURE__ */ C({
66
+ const _n = /* @__PURE__ */ Le(nt, [["render", lt]]), rt = ["onClick"], at = /* @__PURE__ */ C({
67
67
  __name: "overlay-anchor",
68
68
  props: {
69
69
  overlayId: {},
70
70
  anchor: {}
71
71
  },
72
72
  setup(e) {
73
- const t = e, n = t.anchor instanceof HTMLElement ? t.anchor : t.anchor.el, i = w({ visibility: "hidden", top: "0", left: "0" }), s = w([]), o = ee();
73
+ const t = e, n = t.anchor instanceof HTMLElement ? t.anchor : t.anchor.el, i = T({ visibility: "hidden", top: "0", left: "0" }), s = T([]), o = ee();
74
74
  L(r);
75
75
  function r() {
76
76
  const h = o.vnode.el, { styles: b, classes: m } = l(h, n);
@@ -104,7 +104,7 @@ const Hn = /* @__PURE__ */ Le(tt, [["render", ot]]), lt = ["onClick"], rt = /* @
104
104
  };
105
105
  }
106
106
  function c() {
107
- window.removeEventListener("click", c), dt(t.overlayId);
107
+ window.removeEventListener("click", c), ut(t.overlayId);
108
108
  }
109
109
  return L(() => {
110
110
  setTimeout(() => {
@@ -115,22 +115,22 @@ const Hn = /* @__PURE__ */ Le(tt, [["render", ot]]), lt = ["onClick"], rt = /* @
115
115
  style: Ue(i.value),
116
116
  onClick: te(c, ["stop"])
117
117
  }, [
118
- K(h.$slots, "default")
119
- ], 14, lt));
118
+ j(h.$slots, "default")
119
+ ], 14, rt));
120
120
  }
121
121
  });
122
- let at = 0;
123
- const S = je([]), _n = C({
122
+ let ct = 0;
123
+ const S = We([]), Dn = C({
124
124
  setup() {
125
125
  return () => W("div", [
126
- J(S, (e) => W(We, { key: e.id, to: "#vf-overlay-target" }, [e.wrapperVnode ?? e.vnode]))
126
+ J(S, (e) => W(Pe, { key: e.id, to: "#vf-overlay-target" }, [e.wrapperVnode ?? e.vnode]))
127
127
  ]);
128
128
  }
129
129
  });
130
130
  function ie(e, t, n) {
131
131
  const i = document.getElementById("vf-overlay-target") ?? document.createElement("div");
132
132
  i.id = "vf-overlay-target", i.removeAttribute("inert"), document.body.appendChild(i);
133
- const s = String(++at), o = Pe(e), r = W(o, t), l = n != null && n.anchor ? W(rt, { overlayId: s, anchor: n.anchor }, () => [r]) : void 0, c = {
133
+ const s = String(++ct), o = qe(e), r = W(o, t), l = n != null && n.anchor ? W(at, { overlayId: s, anchor: n.anchor }, () => [r]) : void 0, c = {
134
134
  id: s,
135
135
  component: o,
136
136
  props: t,
@@ -140,19 +140,19 @@ function ie(e, t, n) {
140
140
  };
141
141
  return S.push(c), c;
142
142
  }
143
- function Dn(e) {
143
+ function $n(e) {
144
144
  Me(e.$);
145
145
  }
146
146
  function Me(e) {
147
147
  let t = e;
148
- for (; t && !ct(t.vnode); )
148
+ for (; t && !dt(t.vnode); )
149
149
  t = t.parent;
150
150
  }
151
- function ct(e) {
151
+ function dt(e) {
152
152
  const t = S.findIndex((n) => n.vnode.component === e.component);
153
153
  return t >= 0 ? (S[t].props.callback(), !0) : !1;
154
154
  }
155
- function dt(e) {
155
+ function ut(e) {
156
156
  const t = S.findIndex((n) => n.id === e);
157
157
  return t >= 0 ? (S[t].props.callback(), !0) : !1;
158
158
  }
@@ -175,20 +175,20 @@ function q(e, t) {
175
175
  async function de(e, t) {
176
176
  await se(X, q(e, t));
177
177
  }
178
- async function $n(e, t) {
178
+ async function An(e, t) {
179
179
  return await se(X, {
180
180
  ...q(e, t),
181
181
  shouldConfirm: !0
182
182
  }) === !0;
183
183
  }
184
- async function An(e, t) {
184
+ async function Bn(e, t) {
185
185
  return await se(X, {
186
186
  ...q(e, t),
187
187
  shouldConfirm: !0,
188
188
  classes: ["destructive"]
189
189
  }) === !0;
190
190
  }
191
- function Bn(e, t) {
191
+ function Vn(e, t) {
192
192
  const n = ie(X, {
193
193
  ...q(e, t),
194
194
  isBare: !0,
@@ -203,7 +203,7 @@ const N = {
203
203
  errorHandler: (e) => console.error("Unhandled error:", e),
204
204
  defaultDateTimeFormat: "MM/dd/yy HH:mm"
205
205
  };
206
- function Vn(e) {
206
+ function Fn(e) {
207
207
  Object.assign(N, e);
208
208
  }
209
209
  class z extends Error {
@@ -211,7 +211,7 @@ class z extends Error {
211
211
  super(t), this.name = "UserError";
212
212
  }
213
213
  }
214
- function ut(e) {
214
+ function ht(e) {
215
215
  return e instanceof z ? e.message : `An application error has occurred:
216
216
 
217
217
  ${oe(e).message}
@@ -221,24 +221,24 @@ Please refresh the page and try again. If this error persists, ${N.unhandledErro
221
221
  function oe(e) {
222
222
  return e instanceof Error ? e : new Error(String(e));
223
223
  }
224
- async function Fn(e, t) {
224
+ async function Nn(e, t) {
225
225
  const n = oe(e);
226
226
  return n instanceof z || N.errorHandler(n), t ? de(t, n) : de(n);
227
227
  }
228
- async function Nn(e) {
228
+ async function Rn(e) {
229
229
  const t = oe(e);
230
230
  t instanceof z || N.errorHandler(t);
231
231
  }
232
232
  const $ = Symbol("MaskState");
233
- function Rn(e, t) {
233
+ function jn(e, t) {
234
234
  const n = e.$.vnode.el, i = n.closest(".vf-modal");
235
- return ht(i ?? n, t);
235
+ return ft(i ?? n, t);
236
236
  }
237
237
  function Kn(e) {
238
238
  const t = e.$.vnode.el, n = t.closest(".vf-modal");
239
239
  return Ie(n ?? t);
240
240
  }
241
- function ht(e, t) {
241
+ function ft(e, t) {
242
242
  if (!e[$]) {
243
243
  const n = document.createElement("div");
244
244
  n.classList.add("vf-mask"), e.appendChild(n), e[$] = { maskEl: n };
@@ -249,11 +249,12 @@ function Ie(e) {
249
249
  e[$] && e.removeChild(e[$].maskEl);
250
250
  }
251
251
  const Q = Symbol("FormMaskState");
252
- function ft(e, t, n) {
252
+ function pt(e, t, n) {
253
253
  const i = e instanceof Element ? e : _e(e);
254
254
  i.classList.add("vf-masked");
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;
256
- s.setAttribute("disabled", "disabled"), s.innerText = n ?? "Please wait...";
255
+ const s = t instanceof Element ? t : i.querySelectorAll(t ?? 'button:not([disabled]):not([type="button"])')[0];
256
+ let o;
257
+ s && (o = s.tagName === "INPUT" ? s.value : s.innerHTML, s.setAttribute("disabled", "disabled"), s.innerText = n ?? "Please wait...");
257
258
  const l = [...i.querySelectorAll("input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled])")];
258
259
  return l.forEach((c) => c.setAttribute("disabled", "disabled")), i[Q] = {
259
260
  disabledElements: l,
@@ -263,19 +264,19 @@ function ft(e, t, n) {
263
264
  }
264
265
  function He(e) {
265
266
  const t = e instanceof Element ? e : _e(e), n = t[Q];
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[Q]);
267
+ n && (t.classList.remove("vf-masked"), n.disabledElements.forEach((i) => i.removeAttribute("disabled")), n.waitButton && (n.waitButton.innerHTML = n.buttonHtml, n.waitButton.removeAttribute("disabled")), delete t[Q]);
267
268
  }
268
269
  function _e(e) {
269
270
  const t = e.$.vnode.el;
270
271
  return t.tagName === "FORM" ? t : t.querySelector("form");
271
272
  }
272
- const pt = ["id"], mt = {
273
+ const mt = ["id"], vt = {
273
274
  key: 0,
274
275
  class: "vf-modal-header"
275
- }, vt = { class: "vf-modal-content" }, yt = {
276
+ }, yt = { class: "vf-modal-content" }, gt = {
276
277
  key: 1,
277
278
  class: "vf-modal-footer"
278
- }, gt = /* @__PURE__ */ C({
279
+ }, bt = /* @__PURE__ */ C({
279
280
  __name: "modal",
280
281
  props: {
281
282
  id: {},
@@ -288,7 +289,7 @@ const pt = ["id"], mt = {
288
289
  setup(e, { expose: t }) {
289
290
  const n = e, i = ee();
290
291
  t({ mask: m, unmask: y, hide: p, unhide: a });
291
- const s = w(), o = w(), r = w(!1), l = V(() => Xe([n.class, r.value && "hidden"]));
292
+ const s = T(), o = T(), r = T(!1), l = V(() => Ye([n.class, r.value && "hidden"]));
292
293
  L(() => {
293
294
  var d;
294
295
  document.body.classList.add("vf-modal-open"), n.closeOnMaskClick && (window.addEventListener("keydown", h), (d = s.value) == null || d.addEventListener("click", c));
@@ -308,7 +309,7 @@ const pt = ["id"], mt = {
308
309
  Me(i);
309
310
  }
310
311
  function m() {
311
- ft(o.value);
312
+ pt(o.value);
312
313
  }
313
314
  function y() {
314
315
  He(o.value);
@@ -325,32 +326,32 @@ const pt = ["id"], mt = {
325
326
  ref_key: "overlay",
326
327
  ref: s
327
328
  }, [
328
- O("form", {
329
+ w("form", {
329
330
  action: ".",
330
331
  class: k(["vf-modal", { scrolls: d.scrolls }]),
331
332
  onSubmit: E[0] || (E[0] = te((M) => d.$emit("formSubmit"), ["prevent"])),
332
333
  ref_key: "form",
333
334
  ref: o
334
335
  }, [
335
- d.$slots.header ? (u(), f("div", mt, [
336
- K(d.$slots, "header"),
336
+ d.$slots.header ? (u(), f("div", vt, [
337
+ j(d.$slots, "header"),
337
338
  n.closeX ? (u(), f("i", {
338
339
  key: 0,
339
340
  class: "close",
340
341
  onClick: b
341
- })) : T("", !0)
342
- ])) : T("", !0),
343
- O("div", vt, [
344
- K(d.$slots, "default")
342
+ })) : O("", !0)
343
+ ])) : O("", !0),
344
+ w("div", yt, [
345
+ j(d.$slots, "default")
345
346
  ]),
346
- d.$slots.footer ? (u(), f("div", yt, [
347
- K(d.$slots, "footer")
348
- ])) : T("", !0)
347
+ d.$slots.footer ? (u(), f("div", gt, [
348
+ j(d.$slots, "footer")
349
+ ])) : O("", !0)
349
350
  ], 34)
350
- ], 10, pt));
351
+ ], 10, mt));
351
352
  }
352
353
  });
353
- const bt = ["innerHtml"], Et = ["innerText"], X = /* @__PURE__ */ C({
354
+ const Et = ["innerHtml"], wt = ["innerText"], X = /* @__PURE__ */ C({
354
355
  __name: "alert-modal",
355
356
  props: {
356
357
  isBare: { type: Boolean },
@@ -362,36 +363,36 @@ const bt = ["innerHtml"], Et = ["innerText"], X = /* @__PURE__ */ C({
362
363
  callback: { type: Function }
363
364
  },
364
365
  setup(e) {
365
- const t = e, n = V(() => t.message instanceof Error ? ut(t.message) : t.message);
366
+ const t = e, n = V(() => t.message instanceof Error ? ht(t.message) : t.message);
366
367
  return (i, s) => {
367
- const o = Te("autofocus");
368
- return u(), ke(gt, {
368
+ const o = Oe("autofocus");
369
+ return u(), ke(bt, {
369
370
  class: k(["vf-alert", i.classes])
370
- }, qe({
371
+ }, ze({
371
372
  default: Y(() => [
372
373
  i.isHtml ? (u(), f("div", {
373
374
  key: 0,
374
375
  innerHtml: i.message,
375
376
  class: "user-message"
376
- }, null, 8, bt)) : (u(), f("div", {
377
+ }, null, 8, Et)) : (u(), f("div", {
377
378
  key: 1,
378
379
  innerText: n.value
379
- }, null, 8, Et))
380
+ }, null, 8, wt))
380
381
  ]),
381
382
  _: 2
382
383
  }, [
383
384
  i.title ? {
384
385
  name: "header",
385
386
  fn: Y(() => [
386
- O("h1", null, x(i.title), 1)
387
+ w("h1", null, x(i.title), 1)
387
388
  ]),
388
389
  key: "0"
389
390
  } : void 0,
390
391
  i.isBare ? void 0 : {
391
392
  name: "footer",
392
393
  fn: Y(() => [
393
- i.shouldConfirm ? (u(), f(j, { key: 0 }, [
394
- U((u(), f("button", {
394
+ i.shouldConfirm ? (u(), f(U, { key: 0 }, [
395
+ K((u(), f("button", {
395
396
  class: "primary",
396
397
  onClick: s[0] || (s[0] = () => i.callback(!0))
397
398
  }, [
@@ -399,11 +400,11 @@ const bt = ["innerHtml"], Et = ["innerText"], X = /* @__PURE__ */ C({
399
400
  ])), [
400
401
  [o]
401
402
  ]),
402
- O("button", {
403
+ w("button", {
403
404
  class: "default",
404
405
  onClick: s[1] || (s[1] = () => i.callback(!1))
405
406
  }, "Cancel")
406
- ], 64)) : U((u(), f("button", {
407
+ ], 64)) : K((u(), f("button", {
407
408
  key: 1,
408
409
  class: "default",
409
410
  onClick: s[2] || (s[2] = () => i.callback(!0))
@@ -420,51 +421,51 @@ const bt = ["innerHtml"], Et = ["innerText"], X = /* @__PURE__ */ C({
420
421
  }
421
422
  });
422
423
  let R;
423
- const Ot = new Uint8Array(16);
424
- function wt() {
424
+ const Tt = new Uint8Array(16);
425
+ function Ot() {
425
426
  if (!R && (R = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !R))
426
427
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
427
- return R(Ot);
428
+ return R(Tt);
428
429
  }
429
430
  const g = [];
430
431
  for (let e = 0; e < 256; ++e)
431
432
  g.push((e + 256).toString(16).slice(1));
432
- function Tt(e, t = 0) {
433
+ function kt(e, t = 0) {
433
434
  return (g[e[t + 0]] + g[e[t + 1]] + g[e[t + 2]] + g[e[t + 3]] + "-" + g[e[t + 4]] + g[e[t + 5]] + "-" + g[e[t + 6]] + g[e[t + 7]] + "-" + g[e[t + 8]] + g[e[t + 9]] + "-" + g[e[t + 10]] + g[e[t + 11]] + g[e[t + 12]] + g[e[t + 13]] + g[e[t + 14]] + g[e[t + 15]]).toLowerCase();
434
435
  }
435
- const kt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ue = {
436
- randomUUID: kt
436
+ const St = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ue = {
437
+ randomUUID: St
437
438
  };
438
- function St(e, t, n) {
439
+ function Ct(e, t, n) {
439
440
  if (ue.randomUUID && !t && !e)
440
441
  return ue.randomUUID();
441
442
  e = e || {};
442
- const i = e.random || (e.rng || wt)();
443
+ const i = e.random || (e.rng || Ot)();
443
444
  if (i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128, t) {
444
445
  n = n || 0;
445
446
  for (let s = 0; s < 16; ++s)
446
447
  t[n + s] = i[s];
447
448
  return t;
448
449
  }
449
- return Tt(i);
450
+ return kt(i);
450
451
  }
451
452
  function Un(e) {
452
453
  return e.replace(/\n/g, "<br>");
453
454
  }
454
- function Ct(e) {
455
+ function xt(e) {
455
456
  return e.replace(/_/g, " ");
456
457
  }
457
- function xt(e) {
458
+ function Lt(e) {
458
459
  const t = e.replace(/\D/g, "").replace(/^1/, "");
459
460
  return t.length != 10 ? e : "(" + t.substring(0, 3) + ") " + t.substring(3, 6) + "-" + t.substring(6);
460
461
  }
461
- function Lt(e) {
462
+ function Mt(e) {
462
463
  return "$" + Number(e).toFixed(3).replace(/0$/, "").replace(/\B(?=(\d{3})+(?!\d))/g, ",");
463
464
  }
464
- function jn() {
465
- return St();
465
+ function Wn() {
466
+ return Ct();
466
467
  }
467
- const H = Symbol("null"), he = Symbol("create"), Mt = "`1234567890-=[]\\;',./~!@#$%^&*()_+{}|:\"<>?qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", It = {
468
+ const H = Symbol("null"), he = Symbol("create"), It = "`1234567890-=[]\\;',./~!@#$%^&*()_+{}|:\"<>?qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", Ht = {
468
469
  props: {
469
470
  modelValue: {
470
471
  type: null,
@@ -561,7 +562,7 @@ const H = Symbol("null"), he = Symbol("create"), Mt = "`1234567890-=[]\\;',./~!@
561
562
  const t = this.searchText.trim().toLowerCase();
562
563
  if (t.length) {
563
564
  e = e.filter((s) => s.searchContent.includes(t));
564
- const n = et(this.searchText).replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&"), i = new RegExp(`(${n})`, "ig");
565
+ const n = tt(this.searchText).replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&"), i = new RegExp(`(${n})`, "ig");
565
566
  e = e.map((s) => {
566
567
  var o;
567
568
  return {
@@ -611,7 +612,7 @@ const H = Symbol("null"), he = Symbol("create"), Mt = "`1234567890-=[]\\;',./~!@
611
612
  "update:modelValue",
612
613
  this.selectedOption && this.valueExtractor ? this.valueExtractor(this.selectedOption) : this.selectedOption
613
614
  );
614
- }), this.remoteSearch && this.$watch("searchText", Ye(this.reloadOptionsIfSearching, 250));
615
+ }), this.remoteSearch && this.$watch("searchText", Ze(this.reloadOptionsIfSearching, 250));
615
616
  },
616
617
  methods: {
617
618
  async loadRemoteOptions() {
@@ -651,7 +652,7 @@ const H = Symbol("null"), he = Symbol("create"), Mt = "`1234567890-=[]\\;',./~!@
651
652
  this.searchText.length > 1 && (this.isSearching = !0);
652
653
  return;
653
654
  }
654
- !e.metaKey && Mt.includes(e.key) && (this.isSearching = !0);
655
+ !e.metaKey && It.includes(e.key) && (this.isSearching = !0);
655
656
  }
656
657
  },
657
658
  handleInputFocused() {
@@ -727,23 +728,23 @@ const H = Symbol("null"), he = Symbol("create"), Mt = "`1234567890-=[]\\;',./~!@
727
728
  }
728
729
  }
729
730
  };
730
- const Ht = ["placeholder", "required"], _t = {
731
+ const _t = ["placeholder", "required"], Dt = {
731
732
  key: 0,
732
733
  ref: "optionsContainer",
733
734
  class: "vf-smart-select-options"
734
- }, Dt = {
735
+ }, $t = {
735
736
  key: 0,
736
737
  class: "no-results"
737
- }, $t = ["onMousemove", "onMousedown"], At = ["innerHTML"], Bt = ["innerHTML"], Vt = {
738
+ }, At = ["onMousemove", "onMousedown"], Bt = ["innerHTML"], Vt = ["innerHTML"], Ft = {
738
739
  key: 0,
739
740
  class: "no-results"
740
741
  };
741
- function Ft(e, t, n, i, s, o) {
742
- const r = Te("disabled");
742
+ function Nt(e, t, n, i, s, o) {
743
+ const r = Oe("disabled");
743
744
  return u(), f("div", {
744
745
  class: k(["vf-smart-select", { disabled: o.effectiveDisabled, open: e.shouldDisplayOptions }])
745
746
  }, [
746
- U(O("input", {
747
+ K(w("input", {
747
748
  "onUpdate:modelValue": t[0] || (t[0] = (l) => e.searchText = l),
748
749
  ref: "searchField",
749
750
  type: "text",
@@ -753,13 +754,13 @@ function Ft(e, t, n, i, s, o) {
753
754
  onFocus: t[2] || (t[2] = (...l) => o.handleInputFocused && o.handleInputFocused(...l)),
754
755
  onBlur: t[3] || (t[3] = (...l) => o.handleInputBlurred && o.handleInputBlurred(...l)),
755
756
  required: n.required
756
- }, null, 42, Ht), [
757
- [ze, e.searchText],
757
+ }, null, 42, _t), [
758
+ [Xe, e.searchText],
758
759
  [r, o.effectiveDisabled]
759
760
  ]),
760
- e.shouldDisplayOptions ? (u(), f("div", _t, [
761
- e.isLoaded ? (u(), f(j, { key: 1 }, [
762
- (u(!0), f(j, null, J(o.effectiveOptions, (l) => (u(), f("div", {
761
+ e.shouldDisplayOptions ? (u(), f("div", Dt, [
762
+ e.isLoaded ? (u(), f(U, { key: 1 }, [
763
+ (u(!0), f(U, null, J(o.effectiveOptions, (l) => (u(), f("div", {
763
764
  key: String(l.key),
764
765
  class: k(["option", {
765
766
  highlighted: e.highlightedOptionKey === l.key
@@ -767,22 +768,22 @@ function Ft(e, t, n, i, s, o) {
767
768
  onMousemove: (c) => o.handleOptionHover(l),
768
769
  onMousedown: (c) => o.selectOption(l)
769
770
  }, [
770
- O("div", {
771
+ w("div", {
771
772
  class: "title",
772
773
  innerHTML: l.title
773
- }, null, 8, At),
774
+ }, null, 8, Bt),
774
775
  l.subtitle ? (u(), f("div", {
775
776
  key: 0,
776
777
  class: "subtitle",
777
778
  innerHTML: l.subtitle
778
- }, null, 8, Bt)) : T("", !0)
779
- ], 42, $t))), 128)),
780
- !o.effectiveOptions.length && e.searchText ? (u(), f("div", Vt, x(o.effectiveNoResultsText), 1)) : T("", !0)
781
- ], 64)) : (u(), f("div", Dt, "Loading..."))
782
- ], 512)) : T("", !0)
779
+ }, null, 8, Vt)) : O("", !0)
780
+ ], 42, At))), 128)),
781
+ !o.effectiveOptions.length && e.searchText ? (u(), f("div", Ft, x(o.effectiveNoResultsText), 1)) : O("", !0)
782
+ ], 64)) : (u(), f("div", $t, "Loading..."))
783
+ ], 512)) : O("", !0)
783
784
  ], 2);
784
785
  }
785
- const Nt = /* @__PURE__ */ Le(It, [["render", Ft]]), Wn = /* @__PURE__ */ C({
786
+ const Rt = /* @__PURE__ */ Le(Ht, [["render", Nt]]), Pn = /* @__PURE__ */ C({
786
787
  __name: "ez-smart-select",
787
788
  props: {
788
789
  modelValue: {},
@@ -799,7 +800,7 @@ const Nt = /* @__PURE__ */ Le(It, [["render", Ft]]), Wn = /* @__PURE__ */ C({
799
800
  }))), s = V(() => n.formatter ? (r) => {
800
801
  var l;
801
802
  return (l = n.formatter) == null ? void 0 : l.call(n, r.label);
802
- } : (r) => r.label), o = w(i.value.find((r) => r.value === n.modelValue) ?? null);
803
+ } : (r) => r.label), o = T(i.value.find((r) => r.value === n.modelValue) ?? null);
803
804
  return ce(
804
805
  () => n.modelValue,
805
806
  (r) => {
@@ -808,7 +809,7 @@ const Nt = /* @__PURE__ */ Le(It, [["render", Ft]]), Wn = /* @__PURE__ */ C({
808
809
  ), ce(o, (r) => {
809
810
  var l;
810
811
  t("update:modelValue", r ? ((l = i.value.find((c) => xe(c, r))) == null ? void 0 : l.value) ?? null : null);
811
- }), (r, l) => (u(), ke(Nt, {
812
+ }), (r, l) => (u(), ke(Rt, {
812
813
  modelValue: o.value,
813
814
  "onUpdate:modelValue": l[0] || (l[0] = (c) => o.value = c),
814
815
  options: i.value,
@@ -816,13 +817,13 @@ const Nt = /* @__PURE__ */ Le(It, [["render", Ft]]), Wn = /* @__PURE__ */ C({
816
817
  "null-title": r.nullTitle
817
818
  }, null, 8, ["modelValue", "options", "formatter", "null-title"]));
818
819
  }
819
- }), Rt = ["onClick"], Kt = { class: "content" }, Ut = { class: "message" }, jt = {
820
+ }), jt = ["onClick"], Kt = { class: "content" }, Ut = { class: "message" }, Wt = {
820
821
  key: 0,
821
822
  class: "close"
822
- }, Wt = {
823
+ }, Pt = {
823
824
  key: 0,
824
825
  class: "progress-bar"
825
- }, Pt = /* @__PURE__ */ C({
826
+ }, qt = /* @__PURE__ */ C({
826
827
  __name: "toast",
827
828
  props: {
828
829
  message: {},
@@ -837,7 +838,7 @@ const Nt = /* @__PURE__ */ Le(It, [["render", Ft]]), Wn = /* @__PURE__ */ C({
837
838
  function n() {
838
839
  t.onClick ? t.onClick() : t.disableClose || t.callback();
839
840
  }
840
- const i = w();
841
+ const i = T();
841
842
  return t.durationSecs !== null && L(() => {
842
843
  var o;
843
844
  const s = t.durationSecs ?? 5;
@@ -849,78 +850,78 @@ const Nt = /* @__PURE__ */ Le(It, [["render", Ft]]), Wn = /* @__PURE__ */ C({
849
850
  class: k(["vf-toast", s.className]),
850
851
  onClick: te(n, ["stop"])
851
852
  }, [
852
- O("div", Kt, [
853
- O("div", Ut, x(s.message), 1),
854
- s.disableClose ? T("", !0) : (u(), f("div", jt, "x"))
853
+ w("div", Kt, [
854
+ w("div", Ut, x(s.message), 1),
855
+ s.disableClose ? O("", !0) : (u(), f("div", Wt, "x"))
855
856
  ]),
856
- s.durationSecs !== null ? (u(), f("div", Wt, [
857
- O("div", {
857
+ s.durationSecs !== null ? (u(), f("div", Pt, [
858
+ w("div", {
858
859
  ref_key: "progressInnerEl",
859
860
  ref: i,
860
861
  class: "inner"
861
862
  }, null, 512)
862
- ])) : T("", !0)
863
- ], 10, Rt));
863
+ ])) : O("", !0)
864
+ ], 10, jt));
864
865
  }
865
866
  });
866
- function Pn(e) {
867
- const t = ie(Pt, {
867
+ function qn(e) {
868
+ const t = ie(qt, {
868
869
  ...e,
869
870
  callback: () => P(t)
870
871
  });
871
872
  return () => P(t);
872
873
  }
873
- function qt(e) {
874
+ function zt(e) {
874
875
  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];
875
876
  return `${i} ${s}`;
876
877
  }
877
- function zt(e) {
878
- return e != null && String(e).length ? e : "-";
879
- }
880
878
  function Xt(e) {
881
- return e || "-";
879
+ return e != null && String(e).length ? e : "-";
882
880
  }
883
881
  function Yt(e) {
884
- return e === null || typeof e == "string" && !/^\d+$/.test(e) ? e : sn(Number(e));
882
+ return e || "-";
885
883
  }
886
884
  function Zt(e) {
887
- return e && xt(e);
885
+ return e === null || typeof e == "string" && !/^\d+$/.test(e) ? e : on(Number(e));
888
886
  }
889
887
  function Gt(e) {
890
- return e ? Ze(e) : null;
888
+ return e && Lt(e);
891
889
  }
892
890
  function Qt(e) {
893
891
  return e ? Ge(e) : null;
894
892
  }
895
893
  function Jt(e) {
896
- return e ? e.toUpperCase() : null;
894
+ return e ? Qe(e) : null;
897
895
  }
898
896
  function en(e) {
899
- return e ? Ct(e) : null;
897
+ return e ? e.toUpperCase() : null;
900
898
  }
901
899
  function tn(e) {
902
- return Lt(e);
900
+ return e ? xt(e) : null;
901
+ }
902
+ function nn(e) {
903
+ return Mt(e);
903
904
  }
904
905
  const fe = {
905
- bytes: qt,
906
- dash: zt,
907
- dashZeros: Xt,
908
- number: Yt,
909
- phone: Zt,
910
- upperFirst: Gt,
911
- startCase: Qt,
912
- upperCase: Jt,
913
- desnake: en,
914
- usCurrency: tn
915
- }, qn = (e) => ({
906
+ bytes: zt,
907
+ dash: Xt,
908
+ dashZeros: Yt,
909
+ number: Zt,
910
+ phone: Gt,
911
+ upperFirst: Qt,
912
+ startCase: Jt,
913
+ upperCase: en,
914
+ desnake: tn,
915
+ usCurrency: nn
916
+ }, zn = (e) => ({
916
917
  ...fe,
917
918
  ...e(fe)
918
919
  });
919
- function zn(e, t, n) {
920
+ function Xn(e, t, n) {
920
921
  const i = typeof t == "function" ? e.findIndex(t) : e.indexOf(t);
921
922
  return i === -1 ? !1 : (e.splice(i, 1, n), !0);
922
923
  }
923
- function Xn(e, t) {
924
+ function Yn(e, t) {
924
925
  const n = document.createElement("div");
925
926
  n.classList.add("vf-overlay"), n.addEventListener("click", m), document.body.appendChild(n);
926
927
  const i = document.createElement("div");
@@ -953,33 +954,28 @@ function Xn(e, t) {
953
954
  a.addEventListener("mouseleave", M), p.stopPropagation();
954
955
  }
955
956
  }
956
- const nn = (e) => new Promise((t) => setTimeout(t, e)), Yn = (e) => nn(e * 1e3);
957
- function sn(e) {
957
+ const sn = (e) => new Promise((t) => setTimeout(t, e)), Zn = (e) => sn(e * 1e3);
958
+ function on(e) {
958
959
  return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
959
960
  }
960
- function Zn(e, t) {
961
- return e != null ? Qe(e) : t;
962
- }
963
961
  function Gn(e, t) {
962
+ return e != null ? Je(e) : t;
963
+ }
964
+ function Qn(e, t) {
964
965
  const n = { ...e };
965
966
  for (const i of t)
966
967
  n[i] === "" && (n[i] = null);
967
968
  return n;
968
969
  }
969
- function on(e) {
970
+ function De(e) {
970
971
  return e instanceof Error && "status" in e && "body" in e;
971
972
  }
972
- function Qn({ apiClient: e, wrapper: t, onRequest: n, onError: i, afterRequest: s, CancelablePromise: o }) {
973
+ function ln({ apiClient: e, wrapper: t, onRequest: n, onError: i, afterRequest: s, CancelablePromise: o }) {
973
974
  const r = e.request.request.bind(e.request), l = t ?? ((c, h) => h(c));
974
- e.request.request = (c) => l(c, (h) => (h = ln(h), n && (h = n(h)), new o((b, m, y) => {
975
+ e.request.request = (c) => l(c, (h) => (h = rn(h), n && (h = n(h)), new o((b, m, y) => {
975
976
  const p = r(h);
976
977
  y(p.cancel), p.then(b).catch((a) => {
977
- if (on(a) && typeof a.body == "object" && "error" in a.body) {
978
- if (a.status === 422)
979
- return m(new z(a.body.error));
980
- a.message = `${a.body.error} (${a.status})`;
981
- }
982
- if (i) {
978
+ if (De(a) && typeof a.body == "object" && "error" in a.body && (a.message = `${a.body.error} (${a.status})`), i) {
983
979
  const d = i(a, h);
984
980
  if (d === null)
985
981
  return;
@@ -1002,7 +998,7 @@ class pe {
1002
998
  this.blob = t;
1003
999
  }
1004
1000
  }
1005
- function ln(e) {
1001
+ function rn(e) {
1006
1002
  if (!(typeof e.body == "object" && Object.values(e.body).some((s) => s instanceof pe)))
1007
1003
  return e;
1008
1004
  const n = {}, i = {};
@@ -1014,20 +1010,29 @@ function ln(e) {
1014
1010
  formData: n
1015
1011
  };
1016
1012
  }
1013
+ function Jn(e) {
1014
+ ln({
1015
+ ...e,
1016
+ onError(t, n) {
1017
+ var i;
1018
+ De(t) && t.status === 422 && typeof t.body == "object" && "error" in t.body && (t = new z(t.body.error)), (i = e.onError) == null || i.call(e, t, n);
1019
+ }
1020
+ });
1021
+ }
1017
1022
  const le = Symbol("HookState");
1018
- function Jn(e, t) {
1023
+ function ei(e, t) {
1019
1024
  const n = t ?? ee();
1020
- L(() => rn(n, e), n), Se(() => an(n), n), Ce(() => me(n), n), ne(() => me(n), n);
1025
+ L(() => an(n, e), n), Se(() => cn(n), n), Ce(() => me(n), n), ne(() => me(n), n);
1021
1026
  }
1022
- function rn(e, t) {
1027
+ function an(e, t) {
1023
1028
  const n = {};
1024
1029
  if (t.elScrolledToBottom && (n.el = new A(e.vnode.el, t.elScrolledToBottom)), t.ancestorScrolledToBottom) {
1025
- const i = De(e.vnode.el);
1030
+ const i = $e(e.vnode.el);
1026
1031
  i ? n.ancestor = new A(i, t.ancestorScrolledToBottom) : console.warn("[VueFoundation] No scollable ancestor found for component:", e);
1027
1032
  }
1028
1033
  t.windowScrolledToBottom && (n.window = new A(window, t.windowScrolledToBottom)), e[le] = n;
1029
1034
  }
1030
- function an(e) {
1035
+ function cn(e) {
1031
1036
  var n, i, s;
1032
1037
  const t = e[le];
1033
1038
  (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();
@@ -1038,12 +1043,12 @@ function me(e) {
1038
1043
  (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();
1039
1044
  }
1040
1045
  const Z = ["auto", "scroll"];
1041
- function De(e) {
1046
+ function $e(e) {
1042
1047
  const t = e.parentElement;
1043
1048
  if (!t)
1044
1049
  return null;
1045
1050
  const n = window.getComputedStyle(t);
1046
- return Z.includes(n.overflow) || Z.includes(n.overflowX) || Z.includes(n.overflowY) ? t : De(t);
1051
+ return Z.includes(n.overflow) || Z.includes(n.overflowX) || Z.includes(n.overflowY) ? t : $e(t);
1047
1052
  }
1048
1053
  class A {
1049
1054
  constructor(t, n) {
@@ -1061,10 +1066,10 @@ class A {
1061
1066
  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);
1062
1067
  }
1063
1068
  }
1064
- function ei(e) {
1069
+ function ti(e) {
1065
1070
  L(() => window.addEventListener("resize", e)), Se(() => window.addEventListener("resize", e)), Ce(() => window.removeEventListener("resize", e)), ne(() => window.removeEventListener("resize", e));
1066
1071
  }
1067
- const cn = {
1072
+ const dn = {
1068
1073
  mounted: ye,
1069
1074
  updated: ye
1070
1075
  }, ve = Symbol("HasAutoFocused");
@@ -1075,10 +1080,10 @@ function ye(e, t) {
1075
1080
  const n = ["BUTTON", "INPUT", "TEXTAREA", "SELECT"].indexOf(e.tagName) > -1 ? e : e.querySelectorAll("input")[0];
1076
1081
  setTimeout(() => n.focus(), 10);
1077
1082
  }
1078
- const dn = {
1079
- mounted: un
1083
+ const un = {
1084
+ mounted: hn
1080
1085
  }, _ = Symbol("ConfirmState");
1081
- function un(e) {
1086
+ function hn(e) {
1082
1087
  e.addEventListener("click", (t) => {
1083
1088
  const n = Date.now();
1084
1089
  if (e[_]) {
@@ -1098,10 +1103,10 @@ function un(e) {
1098
1103
  e[_] = i, e.innerHTML = "Confirm", e.addEventListener("mouseout", i.resetHandler);
1099
1104
  });
1100
1105
  }
1101
- const hn = {
1102
- beforeMount: fn
1106
+ const fn = {
1107
+ beforeMount: pn
1103
1108
  };
1104
- function fn(e) {
1109
+ function pn(e) {
1105
1110
  e.addEventListener("blur", () => {
1106
1111
  let t = e.value;
1107
1112
  /^\d{1,2}\/\d{1,2}$/.test(t) && (t += "/" + G(/* @__PURE__ */ new Date(), "yy"));
@@ -1109,14 +1114,14 @@ function fn(e) {
1109
1114
  isNaN(n) ? e.value = "" : e.value = G(n, "MM/dd/yyyy"), e.dispatchEvent(new Event("input"));
1110
1115
  });
1111
1116
  }
1112
- const pn = {
1117
+ const mn = {
1113
1118
  beforeMount: ge,
1114
1119
  updated: ge
1115
1120
  };
1116
1121
  function ge(e, t) {
1117
- t.value == t.oldValue && e.innerHTML.length || (e.innerText = mn(e, t));
1122
+ t.value == t.oldValue && e.innerHTML.length || (e.innerText = vn(e, t));
1118
1123
  }
1119
- function mn(e, t) {
1124
+ function vn(e, t) {
1120
1125
  var c, h;
1121
1126
  if (!t.value)
1122
1127
  return ((c = e.attributes.getNamedItem("placeholder")) == null ? void 0 : c.value) ?? "";
@@ -1132,46 +1137,46 @@ function mn(e, t) {
1132
1137
  let l = G(o, r);
1133
1138
  return n && (l = n + " " + l), l;
1134
1139
  }
1135
- const vn = {
1140
+ const yn = {
1136
1141
  beforeMount: be,
1137
1142
  updated: be,
1138
- unmounted: yn
1143
+ unmounted: gn
1139
1144
  };
1140
1145
  function be(e, t) {
1141
1146
  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");
1142
1147
  }
1143
- function yn(e) {
1148
+ function gn(e) {
1144
1149
  e.tagName === "LABEL" && (e.classList.remove("disabled"), e = e.querySelector("input")), e.removeAttribute("disabled");
1145
1150
  }
1146
- const gn = {
1151
+ const bn = {
1147
1152
  beforeMount: Ee,
1148
1153
  updated: Ee,
1149
- unmounted: Ae
1154
+ unmounted: Be
1150
1155
  }, F = Symbol("HasAutoFocused"), re = [];
1151
- function bn() {
1152
- re.forEach($e);
1156
+ function En() {
1157
+ re.forEach(Ae);
1153
1158
  }
1154
- setInterval(bn, 1e3);
1159
+ setInterval(En, 1e3);
1155
1160
  function Ee(e, t) {
1156
1161
  var r;
1157
1162
  if (t.value == t.oldValue)
1158
1163
  return;
1159
1164
  if (!t.value)
1160
- return Ae(e);
1165
+ return Be(e);
1161
1166
  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;
1162
1167
  e[F] || re.push(e), e[F] = {
1163
1168
  startTs: s,
1164
1169
  includeSeconds: o
1165
- }, $e(e);
1170
+ }, Ae(e);
1166
1171
  }
1167
- function $e(e) {
1172
+ function Ae(e) {
1168
1173
  const t = e[F], n = Math.round((Date.now() - t.startTs) / 1e3);
1169
- e.innerText = En(n, t.includeSeconds);
1174
+ e.innerText = wn(n, t.includeSeconds);
1170
1175
  }
1171
- function Ae(e) {
1172
- e[F] && (Je(re, e), delete e[F]), e.innerText = "-";
1176
+ function Be(e) {
1177
+ e[F] && (et(re, e), delete e[F]), e.innerText = "-";
1173
1178
  }
1174
- function En(e, t) {
1179
+ function wn(e, t) {
1175
1180
  const n = [], i = Math.floor(e / 86400);
1176
1181
  i && n.push(i + "d"), e -= i * 86400;
1177
1182
  const s = Math.floor(e / 3600);
@@ -1179,7 +1184,7 @@ function En(e, t) {
1179
1184
  const o = Math.floor(e / 60);
1180
1185
  return (i || s || o) && n.push(o + "m"), t ? n.length || n.push("0m") : (e -= o * 60, n.push(e + "s")), n.join(" ");
1181
1186
  }
1182
- const D = Symbol("InfiniteScrollHandler"), On = {
1187
+ const D = Symbol("InfiniteScrollHandler"), Tn = {
1183
1188
  mounted(e, t) {
1184
1189
  e[D] = new A(e, t.value);
1185
1190
  },
@@ -1191,19 +1196,19 @@ const D = Symbol("InfiniteScrollHandler"), On = {
1191
1196
  var t;
1192
1197
  (t = e[D]) == null || t.uninstall(), delete e[D];
1193
1198
  }
1194
- }, wn = {
1195
- beforeMount: Oe,
1196
- updated: Oe
1199
+ }, On = {
1200
+ beforeMount: we,
1201
+ updated: we
1197
1202
  };
1198
- function Oe(e, t) {
1203
+ function we(e, t) {
1199
1204
  e.tagName == "LABEL" && (e = e.querySelector("input")), t.value ? e.setAttribute("readonly", "readonly") : e.removeAttribute("readonly");
1200
1205
  }
1201
- const Tn = {
1202
- mounted: we,
1203
- updated: we,
1204
- unmounted: Be
1206
+ const kn = {
1207
+ mounted: Te,
1208
+ updated: Te,
1209
+ unmounted: Ve
1205
1210
  }, B = Symbol("TooltipState");
1206
- function we(e, t) {
1211
+ function Te(e, t) {
1207
1212
  var i;
1208
1213
  let n = ((i = e.attributes.getNamedItem("tip")) == null ? void 0 : i.value) ?? t.value;
1209
1214
  if (t.value || (n = null), n) {
@@ -1211,15 +1216,15 @@ function we(e, t) {
1211
1216
  content: n,
1212
1217
  html: e.getAttribute("html") !== null
1213
1218
  };
1214
- e[B] ? e[B].configure(s) : e[B] = new kn(e, s);
1219
+ e[B] ? e[B].configure(s) : e[B] = new Sn(e, s);
1215
1220
  } else
1216
- Be(e);
1221
+ Ve(e);
1217
1222
  }
1218
- function Be(e) {
1223
+ function Ve(e) {
1219
1224
  var t;
1220
1225
  (t = e[B]) == null || t.destroy(), delete e[B];
1221
1226
  }
1222
- class kn {
1227
+ class Sn {
1223
1228
  constructor(t, n) {
1224
1229
  v(this, "lastMoveEvt");
1225
1230
  v(this, "checkInterval");
@@ -1267,61 +1272,59 @@ class kn {
1267
1272
  this.shouldShow = !1, this.removeTooltip(), this.el.removeEventListener("mouseenter", this.handleTargetMouseEnterWithContext), this.el.removeEventListener("mouseleave", this.handleTargetMouseLeaveWithContext);
1268
1273
  }
1269
1274
  }
1270
- function Sn(e) {
1271
- e.directive("autofocus", cn), e.directive("confirm-button", dn), e.directive("date-input", hn), e.directive("datetime", pn), e.directive("disabled", vn), e.directive("duration", gn), e.directive("infinite-scroll", On), e.directive("readonly", wn), e.directive("tooltip", Tn);
1275
+ function Cn(e) {
1276
+ e.directive("autofocus", dn), e.directive("confirm-button", un), e.directive("date-input", fn), e.directive("datetime", mn), e.directive("disabled", yn), e.directive("duration", bn), e.directive("infinite-scroll", Tn), e.directive("readonly", On), e.directive("tooltip", kn);
1272
1277
  }
1273
- function ti(e) {
1274
- Sn(e);
1278
+ function ni(e) {
1279
+ Cn(e);
1275
1280
  }
1276
1281
  export {
1277
- pe as FileUploadRequest,
1278
- _n as OverlayContainer,
1282
+ Dn as OverlayContainer,
1279
1283
  z as UserError,
1280
- Hn as VfAjaxSelect,
1284
+ _n as VfAjaxSelect,
1281
1285
  X as VfAlertModal,
1282
- Wn as VfEzSmartSelect,
1283
- gt as VfModal,
1284
- Nt as VfSmartSelect,
1285
- Zn as cloneProp,
1286
- Vn as configureVf,
1287
- qn as createFilters,
1286
+ Pn as VfEzSmartSelect,
1287
+ bt as VfModal,
1288
+ Rt as VfSmartSelect,
1289
+ Gn as cloneProp,
1290
+ Fn as configureVf,
1291
+ zn as createFilters,
1288
1292
  ie as createOverlayInjection,
1289
- Ct as desnakeCase,
1290
- dt as dismissOverlayInjectionById,
1291
- Dn as dismissOverlayInjectionByInstance,
1293
+ xt as desnakeCase,
1294
+ ut as dismissOverlayInjectionById,
1295
+ $n as dismissOverlayInjectionByInstance,
1292
1296
  Me as dismissOverlayInjectionByInternalInstance,
1293
- ct as dismissOverlayInjectionByVnode,
1294
- si as escapeHtml,
1295
- ut as formatError,
1296
- sn as formatNumber,
1297
- xt as formatPhone,
1298
- Lt as formatUSCurrency,
1299
- Nn as handleError,
1300
- Fn as handleErrorAndAlert,
1301
- Qn as installApiClientInterceptors,
1302
- ti as installVf,
1303
- on as isApiError,
1304
- Rn as maskComponent,
1305
- ht as maskEl,
1306
- ft as maskForm,
1297
+ dt as dismissOverlayInjectionByVnode,
1298
+ oi as escapeHtml,
1299
+ ht as formatError,
1300
+ on as formatNumber,
1301
+ Lt as formatPhone,
1302
+ Mt as formatUSCurrency,
1303
+ Rn as handleError,
1304
+ Nn as handleErrorAndAlert,
1305
+ Jn as installApiClientInterceptors,
1306
+ ni as installVf,
1307
+ jn as maskComponent,
1308
+ ft as maskEl,
1309
+ pt as maskForm,
1307
1310
  Un as nl2br,
1308
- Gn as nullifyEmptyInputs,
1311
+ Qn as nullifyEmptyInputs,
1309
1312
  se as presentOverlay,
1310
1313
  P as removeOverlayInjection,
1311
- zn as replaceElement,
1314
+ Xn as replaceElement,
1312
1315
  de as showAlert,
1313
- $n as showConfirm,
1314
- An as showConfirmDestroy,
1315
- Xn as showContextMenu,
1316
- Pn as showToast,
1317
- Bn as showWait,
1318
- nn as sleep,
1319
- Yn as sleepSecs,
1316
+ An as showConfirm,
1317
+ Bn as showConfirmDestroy,
1318
+ Yn as showContextMenu,
1319
+ qn as showToast,
1320
+ Vn as showWait,
1321
+ sn as sleep,
1322
+ Zn as sleepSecs,
1320
1323
  oe as toError,
1321
1324
  Kn as unmaskComponent,
1322
1325
  Ie as unmaskEl,
1323
1326
  He as unmaskForm,
1324
- Jn as useInfiniteScroll,
1325
- ei as useResizeWatcher,
1326
- jn as uuid
1327
+ ei as useInfiniteScroll,
1328
+ ti as useResizeWatcher,
1329
+ Wn as uuid
1327
1330
  };