@signal24/vue-foundation 4.30.0 → 4.30.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,5 +1,5 @@
1
- import { defineComponent as q, ref as N, computed as O, watch as V, onMounted as z, createElementBlock as I, withDirectives as fe, openBlock as S, createElementVNode as U, toDisplayString as J, createCommentVNode as W, Fragment as he, renderList as pe, vModelSelect as Vt, getCurrentInstance as Oe, withModifiers as Ne, normalizeStyle as $t, normalizeClass as P, renderSlot as K, reactive as Bt, h as ve, Teleport as _t, markRaw as Wt, onBeforeUnmount as me, resolveDirective as Pt, createBlock as at, createSlots as jt, withCtx as be, createTextVNode as te, onUpdated as Ut, vModelText as zt, onActivated as st, onDeactivated as lt } from "vue";
2
- import { compact as ut, cloneDeep as qt, uniq as Jt, groupBy as Kt, isEqual as Me, debounce as Yt, startCase as Xt, upperFirst as Zt, remove as Gt, last as Qt } from "lodash";
1
+ import { defineComponent as q, ref as N, computed as O, watch as H, onMounted as z, createElementBlock as I, withDirectives as fe, openBlock as T, createElementVNode as U, toDisplayString as J, createCommentVNode as W, Fragment as he, renderList as pe, vModelSelect as Ht, getCurrentInstance as Ne, withModifiers as Le, normalizeStyle as Vt, normalizeClass as P, renderSlot as K, reactive as Bt, h as ve, Teleport as _t, markRaw as Wt, onBeforeUnmount as me, resolveDirective as Pt, createBlock as at, createSlots as jt, withCtx as Se, createTextVNode as te, onUpdated as Ut, vModelText as zt, onActivated as st, onDeactivated as lt } from "vue";
2
+ import { compact as ut, cloneDeep as qt, uniq as Jt, groupBy as Kt, isEqual as Ce, debounce as Yt, startCase as Xt, upperFirst as Zt, remove as Gt, last as Qt } from "lodash";
3
3
  import { configureOpenApiClient as en, OpenApiError as tn } from "@signal24/openapi-client-codegen";
4
4
  import { escapeHtml as br } from "@vue/shared";
5
5
  import { format as X, addDays as nn, parse as on } from "date-fns";
@@ -25,29 +25,29 @@ const rn = {
25
25
  const c = v;
26
26
  return o.preprocesor ? o.preprocesor(c) : o.displayKey ? c[o.displayKey] : "";
27
27
  }) : null), y = N(o.modelValue ?? null);
28
- V(() => o.loadFn, g), V(
28
+ H(() => o.loadFn, g), H(
29
29
  () => o.modelValue,
30
30
  () => y.value = o.modelValue
31
- ), V(y, () => a("update:modelValue", y.value));
31
+ ), H(y, () => a("update:modelValue", y.value));
32
32
  async function g() {
33
33
  p.value = await o.loadFn();
34
34
  }
35
- return z(g), (E, v) => l.value ? fe((S(), I("select", {
35
+ return z(g), (E, v) => l.value ? fe((T(), I("select", {
36
36
  key: 1,
37
37
  "onUpdate:modelValue": v[0] || (v[0] = (c) => y.value = c)
38
38
  }, [
39
- o.nullText ? (S(), I("option", an, J(o.nullText), 1)) : W("", !0),
40
- (S(!0), I(he, null, pe(l.value, (c, n) => (S(), I("option", {
39
+ o.nullText ? (T(), I("option", an, J(o.nullText), 1)) : W("", !0),
40
+ (T(!0), I(he, null, pe(l.value, (c, n) => (T(), I("option", {
41
41
  key: n,
42
42
  value: p.value?.[n]
43
43
  }, J(c), 9, sn))), 128))
44
44
  ], 512)), [
45
- [Vt, y.value]
46
- ]) : (S(), I("select", rn, [
45
+ [Ht, y.value]
46
+ ]) : (T(), I("select", rn, [
47
47
  U("option", null, J(o.loadingText || "Loading..."), 1)
48
48
  ]));
49
49
  }
50
- }), H = {
50
+ }), $ = {
51
51
  unhandledErrorSupportText: "please contact support",
52
52
  errorHandler: (e) => console.error("Unhandled error:", e),
53
53
  defaultDateFormat: "M/d/yy",
@@ -55,7 +55,7 @@ const rn = {
55
55
  defaultCurrencyDivisor: 1
56
56
  };
57
57
  function Yo(e) {
58
- Object.assign(H, e);
58
+ Object.assign($, e);
59
59
  }
60
60
  const ln = /* @__PURE__ */ q({
61
61
  __name: "overlay-anchor",
@@ -64,7 +64,7 @@ const ln = /* @__PURE__ */ q({
64
64
  anchor: {}
65
65
  },
66
66
  setup(e) {
67
- const t = e, o = t.anchor instanceof HTMLElement ? t.anchor : t.anchor.el, a = N({ visibility: "hidden", top: "0", left: "0" }), p = N([]), l = Oe();
67
+ const t = e, o = t.anchor instanceof HTMLElement ? t.anchor : t.anchor.el, a = N({ visibility: "hidden", top: "0", left: "0" }), p = N([]), l = Ne();
68
68
  z(y);
69
69
  function y() {
70
70
  if (!l) return;
@@ -105,10 +105,10 @@ const ln = /* @__PURE__ */ q({
105
105
  setTimeout(() => {
106
106
  window.addEventListener("click", E);
107
107
  }, 10);
108
- }), (v, c) => (S(), I("div", {
108
+ }), (v, c) => (T(), I("div", {
109
109
  class: P(["vf-overlay-anchor", p.value]),
110
- style: $t(a.value),
111
- onClick: Ne(E, ["stop"])
110
+ style: Vt(a.value),
111
+ onClick: Le(E, ["stop"])
112
112
  }, [
113
113
  K(v.$slots, "default")
114
114
  ], 6));
@@ -116,8 +116,8 @@ const ln = /* @__PURE__ */ q({
116
116
  });
117
117
  let un = 0;
118
118
  const j = Bt([]);
119
- V(j, () => {
120
- H.onOverlaysChanged?.(j.length);
119
+ H(j, () => {
120
+ $.onOverlaysChanged?.(j.length);
121
121
  });
122
122
  const Xo = q({
123
123
  setup() {
@@ -159,7 +159,7 @@ function ie(e) {
159
159
  const t = j.indexOf(e);
160
160
  t >= 0 && j.splice(t, 1);
161
161
  }
162
- async function Le(e, t, o) {
162
+ async function Re(e, t, o) {
163
163
  return new Promise((a) => {
164
164
  let p = null;
165
165
  const y = { ...t, callback: async (g) => {
@@ -185,18 +185,18 @@ function se(e, t) {
185
185
  } : { title: t ? e : void 0, message: t ?? e, classes: [] };
186
186
  }
187
187
  async function hn(e, t) {
188
- await Le(le, se(e, t));
188
+ await Re(le, se(e, t));
189
189
  }
190
190
  async function Go(e, t) {
191
191
  const o = se(e, t);
192
- return await Le(le, {
192
+ return await Re(le, {
193
193
  ...o,
194
194
  shouldConfirm: !0
195
195
  }) === !0;
196
196
  }
197
197
  async function Qo(e, t) {
198
198
  const o = se(e, t);
199
- return await Le(le, {
199
+ return await Re(le, {
200
200
  ...o,
201
201
  shouldConfirm: !0,
202
202
  classes: ["destructive", ...o.classes]
@@ -235,27 +235,28 @@ class ye extends Error {
235
235
  function pn(e) {
236
236
  return e instanceof ye ? e.message : `An application error has occurred:
237
237
 
238
- ${Re(e).message}
238
+ ${Ee(e).message}
239
239
 
240
- Please refresh the page and try again. If this error persists, ${H.unhandledErrorSupportText}.`;
240
+ Please refresh the page and try again. If this error persists, ${$.unhandledErrorSupportText}.`;
241
241
  }
242
- function Re(e) {
243
- return vn(e) ? e : new Error(String(e));
242
+ function Ee(e, t) {
243
+ const o = vn(e) ? e : new Error(String(e));
244
+ return t && (o.cause = Ee(t)), o;
244
245
  }
245
246
  function vn(e) {
246
247
  return e instanceof Error || typeof e == "object" && e !== null && "message" in e && "name" in e;
247
248
  }
248
249
  async function nr(e, t) {
249
- const o = Re(e);
250
- return o instanceof ye || H.errorHandler(o), hn({
250
+ const o = Ee(e, t?.cause);
251
+ return o instanceof ye || $.errorHandler(o), hn({
251
252
  title: t?.title,
252
253
  message: o,
253
254
  classes: t?.classes
254
255
  });
255
256
  }
256
- async function or(e) {
257
- const t = Re(e);
258
- t instanceof ye || H.errorHandler(t);
257
+ async function or(e, t) {
258
+ const o = Ee(e, t);
259
+ o instanceof ye || $.errorHandler(o);
259
260
  }
260
261
  const ne = Symbol("MaskState");
261
262
  function rr(e, t) {
@@ -276,7 +277,7 @@ function mn(e, t) {
276
277
  function dt(e) {
277
278
  e[ne] && e.removeChild(e[ne].maskEl);
278
279
  }
279
- const Ce = Symbol("FormMaskState");
280
+ const Oe = Symbol("FormMaskState");
280
281
  function gn(e, t, o) {
281
282
  const a = e instanceof Element ? e : ht(e);
282
283
  if (!a) return () => {
@@ -286,7 +287,7 @@ function gn(e, t, o) {
286
287
  let l;
287
288
  p && (l = p.tagName === "INPUT" ? p.value : p.innerHTML, p.setAttribute("disabled", "disabled"), p.innerText = o ?? "Please wait...");
288
289
  const g = [...a.querySelectorAll("input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled])")];
289
- return g.forEach((E) => E.setAttribute("disabled", "disabled")), a[Ce] = {
290
+ return g.forEach((E) => E.setAttribute("disabled", "disabled")), a[Oe] = {
290
291
  disabledElements: g,
291
292
  waitButton: p,
292
293
  buttonHtml: l
@@ -295,8 +296,8 @@ function gn(e, t, o) {
295
296
  function ft(e) {
296
297
  const t = e instanceof Element ? e : ht(e);
297
298
  if (!t) return;
298
- const o = t[Ce];
299
- o && (t.classList.remove("vf-masked"), o.disabledElements.forEach((a) => a.removeAttribute("disabled")), o.waitButton && (o.waitButton.innerHTML = o.buttonHtml, o.waitButton.removeAttribute("disabled")), delete t[Ce]);
299
+ const o = t[Oe];
300
+ o && (t.classList.remove("vf-masked"), o.disabledElements.forEach((a) => a.removeAttribute("disabled")), o.waitButton && (o.waitButton.innerHTML = o.buttonHtml, o.waitButton.removeAttribute("disabled")), delete t[Oe]);
300
301
  }
301
302
  function ht(e) {
302
303
  const t = e?.$?.vnode.el;
@@ -319,7 +320,7 @@ const yn = ["id"], En = {
319
320
  },
320
321
  emits: ["formSubmit"],
321
322
  setup(e, { expose: t }) {
322
- const o = Oe(), a = e;
323
+ const o = Ne(), a = e;
323
324
  t({ mask: n, unmask: i, hide: r, unhide: s });
324
325
  const p = N(), l = N(), y = N(!1), g = O(() => ut([...Array.isArray(a.class) ? a.class : [a.class], y.value && "hidden"]));
325
326
  z(() => {
@@ -351,7 +352,7 @@ const yn = ["id"], En = {
351
352
  function s() {
352
353
  y.value = !1;
353
354
  }
354
- return (u, h) => (S(), I("div", {
355
+ return (u, h) => (T(), I("div", {
355
356
  id: e.id,
356
357
  ref_key: "overlay",
357
358
  ref: p,
@@ -362,11 +363,11 @@ const yn = ["id"], En = {
362
363
  ref: l,
363
364
  action: ".",
364
365
  class: P(["vf-modal", { scrolls: e.scrolls }]),
365
- onSubmit: h[0] || (h[0] = Ne((f) => u.$emit("formSubmit"), ["prevent"]))
366
+ onSubmit: h[0] || (h[0] = Le((f) => u.$emit("formSubmit"), ["prevent"]))
366
367
  }, [
367
- u.$slots.header ? (S(), I("div", En, [
368
+ u.$slots.header ? (T(), I("div", En, [
368
369
  K(u.$slots, "header"),
369
- a.closeX ? (S(), I("i", {
370
+ a.closeX ? (T(), I("i", {
370
371
  key: 0,
371
372
  class: "close",
372
373
  onClick: c
@@ -375,13 +376,13 @@ const yn = ["id"], En = {
375
376
  U("div", kn, [
376
377
  K(u.$slots, "default")
377
378
  ]),
378
- u.$slots.footer ? (S(), I("div", xn, [
379
+ u.$slots.footer ? (T(), I("div", xn, [
379
380
  K(u.$slots, "footer")
380
381
  ])) : W("", !0)
381
382
  ], 34)
382
383
  ], 10, yn));
383
384
  }
384
- }), bn = ["innerHtml"], Tn = ["innerText"], le = /* @__PURE__ */ q({
385
+ }), bn = ["innerHtml"], Sn = ["innerText"], le = /* @__PURE__ */ q({
385
386
  __name: "vf-alert-modal",
386
387
  props: {
387
388
  isBare: { type: Boolean },
@@ -397,38 +398,38 @@ const yn = ["id"], En = {
397
398
  const t = e, o = O(() => t.message instanceof Error ? pn(t.message) : t.message);
398
399
  return (a, p) => {
399
400
  const l = Pt("autofocus");
400
- return S(), at(wn, {
401
+ return T(), at(wn, {
401
402
  class: P(["vf-alert", ...e.classes ?? []]),
402
403
  scrolls: ""
403
404
  }, jt({
404
- default: be(() => [
405
- e.iconClass ? (S(), I("i", {
405
+ default: Se(() => [
406
+ e.iconClass ? (T(), I("i", {
406
407
  key: 0,
407
408
  class: P(["vf-alert-icon", e.iconClass])
408
409
  }, null, 2)) : W("", !0),
409
- e.isHtml ? (S(), I("div", {
410
+ e.isHtml ? (T(), I("div", {
410
411
  key: 1,
411
412
  innerHtml: e.message,
412
413
  class: "user-message"
413
- }, null, 8, bn)) : (S(), I("div", {
414
+ }, null, 8, bn)) : (T(), I("div", {
414
415
  key: 2,
415
416
  innerText: o.value
416
- }, null, 8, Tn))
417
+ }, null, 8, Sn))
417
418
  ]),
418
419
  _: 2
419
420
  }, [
420
421
  e.title ? {
421
422
  name: "header",
422
- fn: be(() => [
423
+ fn: Se(() => [
423
424
  te(J(e.title), 1)
424
425
  ]),
425
426
  key: "0"
426
427
  } : void 0,
427
428
  e.isBare ? void 0 : {
428
429
  name: "footer",
429
- fn: be(() => [
430
- e.shouldConfirm ? (S(), I(he, { key: 0 }, [
431
- fe((S(), I("button", {
430
+ fn: Se(() => [
431
+ e.shouldConfirm ? (T(), I(he, { key: 0 }, [
432
+ fe((T(), I("button", {
432
433
  class: "primary",
433
434
  onClick: p[0] || (p[0] = () => e.callback(!0))
434
435
  }, [...p[3] || (p[3] = [
@@ -440,7 +441,7 @@ const yn = ["id"], En = {
440
441
  class: "default",
441
442
  onClick: p[1] || (p[1] = () => e.callback(!1))
442
443
  }, "Cancel")
443
- ], 64)) : fe((S(), I("button", {
444
+ ], 64)) : fe((T(), I("button", {
444
445
  key: 1,
445
446
  class: "default",
446
447
  onClick: p[2] || (p[2] = () => e.callback(!0))
@@ -456,7 +457,7 @@ const yn = ["id"], En = {
456
457
  };
457
458
  }
458
459
  });
459
- function Sn(e) {
460
+ function Tn(e) {
460
461
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
461
462
  }
462
463
  var ce = { exports: {} };
@@ -573,9 +574,9 @@ function Mn() {
573
574
  var w = function() {
574
575
  --f <= 0 && u(m);
575
576
  };
576
- f || w(), h.forEach(function(T) {
577
- v.matches(T, s.exclude) ? w() : s.onIframeReady(T, function(C) {
578
- i(T) && (m++, r(C)), w();
577
+ f || w(), h.forEach(function(S) {
578
+ v.matches(S, s.exclude) ? w() : s.onIframeReady(S, function(C) {
579
+ i(S) && (m++, r(C)), w();
579
580
  }, w);
580
581
  });
581
582
  }
@@ -638,17 +639,17 @@ function Mn() {
638
639
  }, {
639
640
  key: "iterateThroughNodes",
640
641
  value: function(n, i, r, s, u) {
641
- for (var h = this, f = this.createIterator(i, n, s), m = [], w = [], T = void 0, C = void 0, L = function() {
642
+ for (var h = this, f = this.createIterator(i, n, s), m = [], w = [], S = void 0, C = void 0, L = function() {
642
643
  var F = h.getIteratorNode(f);
643
- return C = F.prevNode, T = F.node, T;
644
+ return C = F.prevNode, S = F.node, S;
644
645
  }; L(); )
645
646
  this.iframes && this.forEachIframe(i, function(R) {
646
- return h.checkIframeFilter(T, C, R, m);
647
+ return h.checkIframeFilter(S, C, R, m);
647
648
  }, function(R) {
648
649
  h.createInstanceOnIframe(R).forEachNode(n, function(F) {
649
650
  return w.push(F);
650
651
  }, s);
651
- }), w.push(T);
652
+ }), w.push(S);
652
653
  w.forEach(function(R) {
653
654
  r(R);
654
655
  }), this.iframes && this.handleOpenIframes(m, n, r, s), u();
@@ -876,9 +877,9 @@ function Mn() {
876
877
  if (typeof w > "u" || w.start > i) {
877
878
  if (!s(f.node))
878
879
  return !1;
879
- var T = i - f.start, C = (r > f.end ? f.end : r) - f.start, L = n.value.substr(0, f.start), R = n.value.substr(C + f.start);
880
- if (f.node = h.wrapRangeInTextNode(f.node, T, C), n.value = L + R, n.nodes.forEach(function(F, $) {
881
- $ >= m && (n.nodes[$].start > 0 && $ !== m && (n.nodes[$].start -= C), n.nodes[$].end -= C);
880
+ var S = i - f.start, C = (r > f.end ? f.end : r) - f.start, L = n.value.substr(0, f.start), R = n.value.substr(C + f.start);
881
+ if (f.node = h.wrapRangeInTextNode(f.node, S, C), n.value = L + R, n.nodes.forEach(function(F, V) {
882
+ V >= m && (n.nodes[V].start > 0 && V !== m && (n.nodes[V].start -= C), n.nodes[V].end -= C);
882
883
  }), r -= C, u(f.node.previousSibling, f.start), r > f.end)
883
884
  i = f.end;
884
885
  else
@@ -894,13 +895,13 @@ function Mn() {
894
895
  this.getTextNodes(function(m) {
895
896
  m.nodes.forEach(function(w) {
896
897
  w = w.node;
897
- for (var T = void 0; (T = n.exec(w.textContent)) !== null && T[f] !== ""; )
898
- if (r(T[f], w)) {
899
- var C = T.index;
898
+ for (var S = void 0; (S = n.exec(w.textContent)) !== null && S[f] !== ""; )
899
+ if (r(S[f], w)) {
900
+ var C = S.index;
900
901
  if (f !== 0)
901
902
  for (var L = 1; L < f; L++)
902
- C += T[L].length;
903
- w = h.wrapRangeInTextNode(w, C, C + T[f].length), s(w.previousSibling), n.lastIndex = 0;
903
+ C += S[L].length;
904
+ w = h.wrapRangeInTextNode(w, C, C + S[f].length), s(w.previousSibling), n.lastIndex = 0;
904
905
  }
905
906
  }), u();
906
907
  });
@@ -911,12 +912,12 @@ function Mn() {
911
912
  var h = this, f = i === 0 ? 0 : i + 1;
912
913
  this.getTextNodes(function(m) {
913
914
  for (var w = void 0; (w = n.exec(m.value)) !== null && w[f] !== ""; ) {
914
- var T = w.index;
915
+ var S = w.index;
915
916
  if (f !== 0)
916
917
  for (var C = 1; C < f; C++)
917
- T += w[C].length;
918
- var L = T + w[f].length;
919
- h.wrapRangeInMappedTextNode(m, T, L, function(R) {
918
+ S += w[C].length;
919
+ var L = S + w[f].length;
920
+ h.wrapRangeInMappedTextNode(m, S, L, function(R) {
920
921
  return r(w[f], R);
921
922
  }, function(R, F) {
922
923
  n.lastIndex = F, s(R);
@@ -932,7 +933,7 @@ function Mn() {
932
933
  this.getTextNodes(function(h) {
933
934
  var f = h.value.length;
934
935
  n.forEach(function(m, w) {
935
- var T = u.checkWhitespaceRanges(m, f, h.value), C = T.start, L = T.end, R = T.valid;
936
+ var S = u.checkWhitespaceRanges(m, f, h.value), C = S.start, L = S.end, R = S.valid;
936
937
  R && u.wrapRangeInMappedTextNode(h, C, L, function(F) {
937
938
  return i(F, m, h.value.substring(C, L), w);
938
939
  }, function(F) {
@@ -979,17 +980,17 @@ function Mn() {
979
980
  value: function(n, i) {
980
981
  var r = this;
981
982
  this.opt = i;
982
- var s = 0, u = "wrapMatches", h = this.getSeparatedKeywords(typeof n == "string" ? [n] : n), f = h.keywords, m = h.length, w = this.opt.caseSensitive ? "" : "i", T = function C(L) {
983
+ var s = 0, u = "wrapMatches", h = this.getSeparatedKeywords(typeof n == "string" ? [n] : n), f = h.keywords, m = h.length, w = this.opt.caseSensitive ? "" : "i", S = function C(L) {
983
984
  var R = new RegExp(r.createRegExp(L), "gm" + w), F = 0;
984
- r.log('Searching with expression "' + R + '"'), r[u](R, 1, function($, Ee) {
985
- return r.opt.filter(Ee, L, s, F);
986
- }, function($) {
987
- F++, s++, r.opt.each($);
985
+ r.log('Searching with expression "' + R + '"'), r[u](R, 1, function(V, ke) {
986
+ return r.opt.filter(ke, L, s, F);
987
+ }, function(V) {
988
+ F++, s++, r.opt.each(V);
988
989
  }, function() {
989
990
  F === 0 && r.opt.noMatch(L), f[m - 1] === L ? r.opt.done(s) : C(f[f.indexOf(L) + 1]);
990
991
  });
991
992
  };
992
- this.opt.acrossElements && (u = "wrapMatchesAcrossElements"), m === 0 ? this.opt.done(s) : T(f[0]);
993
+ this.opt.acrossElements && (u = "wrapMatchesAcrossElements"), m === 0 ? this.opt.done(s) : S(f[0]);
993
994
  }
994
995
  }, {
995
996
  key: "markRanges",
@@ -1077,7 +1078,7 @@ function Mn() {
1077
1078
  })(ce)), ce.exports;
1078
1079
  }
1079
1080
  var Cn = Mn();
1080
- const On = /* @__PURE__ */ Sn(Cn);
1081
+ const On = /* @__PURE__ */ Tn(Cn);
1081
1082
  function ar(e, t, o) {
1082
1083
  const a = typeof t == "function" ? e.findIndex(t) : e.indexOf(t);
1083
1084
  return a === -1 ? !1 : (e.splice(a, 1, o), !0);
@@ -1149,7 +1150,7 @@ var Rn = {
1149
1150
  precision: 2,
1150
1151
  pattern: "!#",
1151
1152
  negativePattern: "-!#",
1152
- format: Hn,
1153
+ format: $n,
1153
1154
  fromCents: !1
1154
1155
  }, pt = function(t) {
1155
1156
  return Math.round(t);
@@ -1181,7 +1182,7 @@ function de(e, t) {
1181
1182
  }
1182
1183
  return g || (a *= E, a = a.toFixed(4)), o ? pt(a) : a;
1183
1184
  }
1184
- function Hn(e, t) {
1185
+ function $n(e, t) {
1185
1186
  var o = t.pattern, a = t.negativePattern, p = t.symbol, l = t.separator, y = t.decimal, g = t.groups, E = ("" + e).replace(/^-/, "").split("."), v = E[0], c = E[1];
1186
1187
  return (e.value >= 0 ? o : a).replace("!", p).replace("#", v.replace(g, "$1" + l) + (c ? y + c : ""));
1187
1188
  }
@@ -1278,18 +1279,18 @@ _.prototype = {
1278
1279
  const A = [];
1279
1280
  for (let e = 0; e < 256; ++e)
1280
1281
  A.push((e + 256).toString(16).slice(1));
1281
- function Vn(e, t = 0) {
1282
+ function Hn(e, t = 0) {
1282
1283
  return (A[e[t + 0]] + A[e[t + 1]] + A[e[t + 2]] + A[e[t + 3]] + "-" + A[e[t + 4]] + A[e[t + 5]] + "-" + A[e[t + 6]] + A[e[t + 7]] + "-" + A[e[t + 8]] + A[e[t + 9]] + "-" + A[e[t + 10]] + A[e[t + 11]] + A[e[t + 12]] + A[e[t + 13]] + A[e[t + 14]] + A[e[t + 15]]).toLowerCase();
1283
1284
  }
1284
1285
  let Te;
1285
- const $n = new Uint8Array(16);
1286
+ const Vn = new Uint8Array(16);
1286
1287
  function Bn() {
1287
1288
  if (!Te) {
1288
1289
  if (typeof crypto > "u" || !crypto.getRandomValues)
1289
1290
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
1290
1291
  Te = crypto.getRandomValues.bind(crypto);
1291
1292
  }
1292
- return Te($n);
1293
+ return Te(Vn);
1293
1294
  }
1294
1295
  const _n = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Xe = { randomUUID: _n };
1295
1296
  function Wn(e, t, o) {
@@ -1297,7 +1298,7 @@ function Wn(e, t, o) {
1297
1298
  const a = e.random ?? e.rng?.() ?? Bn();
1298
1299
  if (a.length < 16)
1299
1300
  throw new Error("Random bytes length must be >= 16");
1300
- return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, Vn(a);
1301
+ return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, Hn(a);
1301
1302
  }
1302
1303
  function Pn(e, t, o) {
1303
1304
  return Xe.randomUUID && !e ? Xe.randomUUID() : Wn(e);
@@ -1313,7 +1314,7 @@ function Un(e) {
1313
1314
  return t.length !== 10 ? e : "(" + t.substring(0, 3) + ") " + t.substring(3, 6) + "-" + t.substring(6);
1314
1315
  }
1315
1316
  function zn(e, t) {
1316
- return _(e).divide(t ?? H.defaultCurrencyDivisor).format();
1317
+ return _(e).divide(t ?? $.defaultCurrencyDivisor).format();
1317
1318
  }
1318
1319
  function hr() {
1319
1320
  return Pn();
@@ -1366,16 +1367,16 @@ const qn = ["disabled", "placeholder", "required", "name"], Jn = {
1366
1367
  setup(e, { expose: t, emit: o }) {
1367
1368
  const a = Symbol("null"), p = Symbol("create"), l = e, y = o;
1368
1369
  t({
1369
- addRemoteOption: Ht
1370
+ addRemoteOption: $t
1370
1371
  });
1371
- const g = N(), E = N(), v = N(), c = N(!1), n = N(), i = N(!1), r = N(""), s = N(null), u = N(null), h = N(!1), f = N(null), m = N(!1), w = O(() => l.showCreateTextOnNewItem ?? !0), T = O(() => !!(l.options || n.value)), C = O(() => l.options ?? n.value ?? []), L = O(() => l.prependOptions ?? []), R = O(() => l.appendOptions ?? []), F = O(() => !!l.disabled || !T.value && !l.loadOptions), $ = O(() => l.loadingText || "..."), Ee = O(() => !T.value && (!l.loadOptions || l.preload || l.modelValue && (l.valueField || l.valueExtractor)) ? $.value : l.nullTitle ? l.nullTitle : l.placeholder || ""), bt = O(() => l.noResultsText || "No options match your search."), Z = O(() => l.valueExtractor ? l.valueExtractor : l.valueField ? (d) => d[l.valueField] : null), ke = O(() => l.keyExtractor ? l.keyExtractor : l.keyField ? (d) => String(d[l.keyField]) : Z.value ? (d) => String(Z.value(d)) : null), Tt = O(() => l.groupFormatter ? l.groupFormatter : l.groupField ? (d) => String(d[l.groupField]) : null), He = O(() => l.formatter ? l.formatter : l.labelField ? (d) => String(d[l.labelField]) : (d) => String(d)), Ve = O(() => l.selectionFormatter ? l.selectionFormatter : He.value), $e = O(() => [...L.value, ...C.value, ...R.value]), Be = O(() => !!(l.groupField || l.groupFormatter)), xe = O(() => $e.value.map((d, b) => {
1372
- const k = Tt.value?.(d), x = He.value(d), M = l.subtitleFormatter?.(d), B = x ? x.trim().toLowerCase() : "", qe = M ? M.trim().toLowerCase() : "", ue = [];
1372
+ const g = N(), E = N(), v = N(), c = N(!1), n = N(), i = N(!1), r = N(""), s = N(null), u = N(null), h = N(!1), f = N(null), m = N(!1), w = O(() => l.showCreateTextOnNewItem ?? !0), S = O(() => !!(l.options || n.value)), C = O(() => l.options ?? n.value ?? []), L = O(() => l.prependOptions ?? []), R = O(() => l.appendOptions ?? []), F = O(() => !!l.disabled || !S.value && !l.loadOptions), V = O(() => l.loadingText || "..."), ke = O(() => !S.value && (!l.loadOptions || l.preload || l.modelValue && (l.valueField || l.valueExtractor)) ? V.value : l.nullTitle ? l.nullTitle : l.placeholder || ""), bt = O(() => l.noResultsText || "No options match your search."), Z = O(() => l.valueExtractor ? l.valueExtractor : l.valueField ? (d) => d[l.valueField] : null), xe = O(() => l.keyExtractor ? l.keyExtractor : l.keyField ? (d) => String(d[l.keyField]) : Z.value ? (d) => String(Z.value(d)) : null), St = O(() => l.groupFormatter ? l.groupFormatter : l.groupField ? (d) => String(d[l.groupField]) : null), $e = O(() => l.formatter ? l.formatter : l.labelField ? (d) => String(d[l.labelField]) : (d) => String(d)), He = O(() => l.selectionFormatter ? l.selectionFormatter : $e.value), Ve = O(() => [...L.value, ...C.value, ...R.value]), Be = O(() => !!(l.groupField || l.groupFormatter)), we = O(() => Ve.value.map((d, b) => {
1373
+ const k = St.value?.(d), x = $e.value(d), M = l.subtitleFormatter?.(d), B = x ? x.trim().toLowerCase() : "", qe = M ? M.trim().toLowerCase() : "", ue = [];
1373
1374
  return l.searchFields ? l.searchFields.forEach((Je) => {
1374
1375
  d[Je] && ue.push(
1375
1376
  String(d[Je]).toLowerCase().replace(/^[a-z0-9 ]+$/i, "")
1376
1377
  );
1377
1378
  }) : (ue.push(B), qe && ue.push(qe)), {
1378
- key: ke.value?.(d) ?? String(b),
1379
+ key: xe.value?.(d) ?? String(b),
1379
1380
  group: k,
1380
1381
  title: x,
1381
1382
  subtitle: M,
@@ -1383,7 +1384,7 @@ const qn = ["disabled", "placeholder", "required", "name"], Jn = {
1383
1384
  ref: d
1384
1385
  };
1385
1386
  })), D = O(() => {
1386
- let d = [...xe.value];
1387
+ let d = [...we.value];
1387
1388
  if (i.value) {
1388
1389
  const b = r.value.trim().toLowerCase().replace(/[^a-z0-9 ]+$/i, "");
1389
1390
  b.length && (d = d.filter((k) => k.searchContent.includes(b)), m.value && (d.find((x) => x.searchContent === b) !== void 0 || d.push({
@@ -1395,7 +1396,7 @@ const qn = ["disabled", "placeholder", "required", "name"], Jn = {
1395
1396
  title: l.nullTitle
1396
1397
  });
1397
1398
  return d;
1398
- }), St = O(() => {
1399
+ }), Tt = O(() => {
1399
1400
  if (!Be.value)
1400
1401
  return [
1401
1402
  {
@@ -1409,19 +1410,19 @@ const qn = ["disabled", "placeholder", "required", "name"], Jn = {
1409
1410
  options: b[k]
1410
1411
  }));
1411
1412
  });
1412
- V(() => l.modelValue, G), V(xe, () => {
1413
+ H(() => l.modelValue, G), H(we, () => {
1413
1414
  h.value && setTimeout(je, 0);
1414
- }), V(r, () => {
1415
+ }), H(r, () => {
1415
1416
  i.value && !l.remoteSearch && !r.value.trim().length && (i.value = !1);
1416
- }), V(h, () => {
1417
+ }), H(h, () => {
1417
1418
  h.value ? setTimeout(Ft, 0) : (i.value = !1, r.value = u.value ?? "", v.value && (v.value.style.visibility = "hidden"));
1418
- }), V(D, () => {
1419
+ }), H(D, () => {
1419
1420
  l.modelValue !== null && s.value === null && G(), (f.value !== null || i.value) && !D.value.find((d) => d.key == f.value) && (f.value = D.value[0]?.key ?? a);
1420
1421
  }), z(async () => {
1421
- m.value = l.onCreateItem !== void 0, l.loadOptions && l.preload ? await _e() : !l.options && !l.loadOptions && (l.valueField || l.valueExtractor) || G(), V(s, () => {
1422
+ m.value = l.onCreateItem !== void 0, l.loadOptions && l.preload ? await _e() : !l.options && !l.loadOptions && (l.valueField || l.valueExtractor) || G(), H(s, () => {
1422
1423
  const d = Ye(s.value) && Z.value !== null ? Z.value(s.value) : s.value;
1423
- Me(l.modelValue, d) || y("update:modelValue", d);
1424
- }), l.remoteSearch && V(r, Yt(It, 250));
1424
+ Ce(l.modelValue, d) || y("update:modelValue", d);
1425
+ }), l.remoteSearch && H(r, Yt(It, 250));
1425
1426
  }), me(() => {
1426
1427
  v.value?.remove();
1427
1428
  });
@@ -1441,16 +1442,16 @@ const qn = ["disabled", "placeholder", "required", "name"], Jn = {
1441
1442
  return;
1442
1443
  }
1443
1444
  if (!(d.key == "ArrowLeft" || d.key == "ArrowRight") && d.key != "Tab") {
1444
- if (!T.value) {
1445
+ if (!S.value) {
1445
1446
  i.value || d.preventDefault();
1446
1447
  return;
1447
1448
  }
1448
1449
  if (d.key == "ArrowUp" || d.key == "ArrowDown")
1449
- return d.preventDefault(), we(d.key == "ArrowUp" ? -1 : 1);
1450
+ return d.preventDefault(), be(d.key == "ArrowUp" ? -1 : 1);
1450
1451
  if (d.key == "PageUp" || d.key == "PageDown")
1451
- return d.preventDefault(), we(d.key == "PageUp" ? -10 : 10);
1452
+ return d.preventDefault(), be(d.key == "PageUp" ? -10 : 10);
1452
1453
  if (d.key == "Home" || d.key == "End")
1453
- return d.preventDefault(), we(d.key == "Home" ? -Number.MAX_SAFE_INTEGER : Number.MAX_SAFE_INTEGER);
1454
+ return d.preventDefault(), be(d.key == "Home" ? -Number.MAX_SAFE_INTEGER : Number.MAX_SAFE_INTEGER);
1454
1455
  if (d.key == "Enter") {
1455
1456
  d.preventDefault();
1456
1457
  const b = D.value.find((k) => k.key == f.value);
@@ -1473,20 +1474,20 @@ const qn = ["disabled", "placeholder", "required", "name"], Jn = {
1473
1474
  s.value ? f.value = Nt(s.value) : l.nullTitle && (f.value = a);
1474
1475
  }
1475
1476
  function Nt(d) {
1476
- return ke.value ? ke.value(s.value) : Lt(d)?.key ?? "";
1477
+ return xe.value ? xe.value(s.value) : Lt(d)?.key ?? "";
1477
1478
  }
1478
1479
  function Lt(d) {
1479
1480
  const b = D.value.find((M) => M.ref === d);
1480
1481
  if (b)
1481
1482
  return b;
1482
- const k = l.keyExtractor ? (M, B) => l.keyExtractor(M) === l.keyExtractor(B) : Me, x = D.value.find((M) => k(M.ref, d));
1483
+ const k = l.keyExtractor ? (M, B) => l.keyExtractor(M) === l.keyExtractor(B) : Ce, x = D.value.find((M) => k(M.ref, d));
1483
1484
  return x || null;
1484
1485
  }
1485
1486
  function Rt() {
1486
1487
  l.debug || (!r.value.length && l.nullTitle && (s.value = null, u.value = null), h.value = !1);
1487
1488
  }
1488
1489
  function Ft() {
1489
- T.value || _e(), l.optionsListId && v.value?.setAttribute("id", l.optionsListId), At();
1490
+ S.value || _e(), l.optionsListId && v.value?.setAttribute("id", l.optionsListId), At();
1490
1491
  }
1491
1492
  function At() {
1492
1493
  const d = g.value.getBoundingClientRect(), b = d.y + d.height + 2, k = d.x, x = v.value, M = window.getComputedStyle(g.value);
@@ -1499,14 +1500,14 @@ const qn = ["disabled", "placeholder", "required", "name"], Jn = {
1499
1500
  x.style.visibility = "visible", document.body.appendChild(x), setTimeout(je, 0);
1500
1501
  }
1501
1502
  function je() {
1502
- if (!T.value || !f.value) return;
1503
+ if (!S.value || !f.value) return;
1503
1504
  const d = D.value.findIndex((x) => x.key == f.value), b = v.value, k = b?.querySelectorAll(".option")[d];
1504
1505
  k && (b.scrollTop = k.offsetTop);
1505
1506
  }
1506
1507
  function Dt(d) {
1507
1508
  f.value = d ? d.key : null;
1508
1509
  }
1509
- function we(d) {
1510
+ function be(d) {
1510
1511
  const b = D.value.findIndex((B) => B.key == f.value);
1511
1512
  let k = b + d;
1512
1513
  if (k < 0 ? k = 0 : k >= D.value.length && (k = D.value.length - 1), b == k) return;
@@ -1521,15 +1522,15 @@ const qn = ["disabled", "placeholder", "required", "name"], Jn = {
1521
1522
  const b = r.value.trim();
1522
1523
  r.value = "", s.value = null, u.value = null, l.onCreateItem?.(b);
1523
1524
  } else {
1524
- const k = xe.value.find((x) => x.key == d.key).ref;
1525
- s.value = k, u.value = Ve.value(k), r.value = u.value ?? "";
1525
+ const k = we.value.find((x) => x.key == d.key).ref;
1526
+ s.value = k, u.value = He.value(k), r.value = u.value ?? "";
1526
1527
  }
1527
1528
  E.value?.blur(), ze();
1528
1529
  }
1529
1530
  function G() {
1530
- l.modelValue !== null ? (s.value = Z.value ? $e.value.find((d) => l.modelValue === Z.value(d)) : l.modelValue, u.value = Ye(s.value) ? Ve.value(s.value) : null, r.value = u.value ?? "") : (s.value = null, u.value = null, r.value = "");
1531
+ l.modelValue !== null ? (s.value = Z.value ? Ve.value.find((d) => l.modelValue === Z.value(d)) : l.modelValue, u.value = Ye(s.value) ? He.value(s.value) : null, r.value = u.value ?? "") : (s.value = null, u.value = null, r.value = "");
1531
1532
  }
1532
- function Ht(d) {
1533
+ function $t(d) {
1533
1534
  n.value.unshift(d);
1534
1535
  }
1535
1536
  function ze() {
@@ -1554,7 +1555,7 @@ const qn = ["disabled", "placeholder", "required", "name"], Jn = {
1554
1555
  }
1555
1556
  });
1556
1557
  });
1557
- }), (d, b) => (S(), I("div", {
1558
+ }), (d, b) => (T(), I("div", {
1558
1559
  ref_key: "el",
1559
1560
  ref: g,
1560
1561
  class: P(["vf-smart-select", { disabled: F.value, open: h.value }])
@@ -1566,7 +1567,7 @@ const qn = ["disabled", "placeholder", "required", "name"], Jn = {
1566
1567
  type: "text",
1567
1568
  disabled: F.value,
1568
1569
  class: P({ nullable: !!e.nullTitle }),
1569
- placeholder: Ee.value,
1570
+ placeholder: ke.value,
1570
1571
  required: e.required,
1571
1572
  name: e.name,
1572
1573
  "data-1p-ignore": "",
@@ -1577,24 +1578,24 @@ const qn = ["disabled", "placeholder", "required", "name"], Jn = {
1577
1578
  }, null, 42, qn), [
1578
1579
  [zt, r.value]
1579
1580
  ]),
1580
- h.value ? (S(), I("div", {
1581
+ h.value ? (T(), I("div", {
1581
1582
  key: 0,
1582
1583
  ref_key: "optionsContainer",
1583
1584
  ref: v,
1584
1585
  class: P(["vf-smart-select-options", { grouped: Be.value }])
1585
1586
  }, [
1586
- T.value ? (S(!0), I(he, { key: 1 }, pe(St.value, (k) => (S(), I("div", {
1587
+ S.value ? (T(!0), I(he, { key: 1 }, pe(Tt.value, (k) => (T(), I("div", {
1587
1588
  key: k.groupTitle,
1588
1589
  class: "group"
1589
1590
  }, [
1590
- k.groupTitle ? (S(), I("div", Kn, [
1591
+ k.groupTitle ? (T(), I("div", Kn, [
1591
1592
  K(d.$slots, "group", {
1592
1593
  group: k.groupTitle
1593
1594
  }, () => [
1594
1595
  te(J(k.groupTitle), 1)
1595
1596
  ])
1596
1597
  ])) : W("", !0),
1597
- (S(!0), I(he, null, pe(k.options, (x) => (S(), I("div", {
1598
+ (T(!0), I(he, null, pe(k.options, (x) => (T(), I("div", {
1598
1599
  key: x.key,
1599
1600
  class: P(["option", [f.value === x.key && "highlighted", x.ref && e.classForOption?.(x.ref)]]),
1600
1601
  onMousemove: (M) => Dt(x),
@@ -1605,19 +1606,19 @@ const qn = ["disabled", "placeholder", "required", "name"], Jn = {
1605
1606
  class: "title",
1606
1607
  innerHTML: x.title
1607
1608
  }, null, 8, Xn),
1608
- x.subtitle ? (S(), I("div", {
1609
+ x.subtitle ? (T(), I("div", {
1609
1610
  key: 0,
1610
1611
  class: "subtitle",
1611
1612
  innerHTML: x.subtitle
1612
1613
  }, null, 8, Zn)) : W("", !0)
1613
1614
  ])
1614
1615
  ], 42, Yn))), 128)),
1615
- !D.value.length && r.value ? (S(), I("div", Gn, [
1616
+ !D.value.length && r.value ? (T(), I("div", Gn, [
1616
1617
  K(d.$slots, "no-results", {}, () => [
1617
1618
  te(J(bt.value), 1)
1618
1619
  ])
1619
1620
  ])) : W("", !0)
1620
- ]))), 128)) : (S(), I("div", Jn, "Loading..."))
1621
+ ]))), 128)) : (T(), I("div", Jn, "Loading..."))
1621
1622
  ], 2)) : W("", !0)
1622
1623
  ], 2));
1623
1624
  }
@@ -1637,15 +1638,15 @@ const qn = ["disabled", "placeholder", "required", "name"], Jn = {
1637
1638
  value: g,
1638
1639
  label: E
1639
1640
  }))), p = O(() => o.formatter ? (g) => o.formatter(g.label, g.value) : (g) => g.label), l = t, y = N(a.value.find((g) => g.value === o.modelValue) ?? null);
1640
- return V(
1641
+ return H(
1641
1642
  () => o.modelValue,
1642
1643
  (g) => {
1643
1644
  y.value = a.value.find((E) => E.value === g) ?? null;
1644
1645
  }
1645
- ), V(y, (g) => {
1646
- const E = g ? a.value.find((v) => Me(v, g))?.value : null;
1646
+ ), H(y, (g) => {
1647
+ const E = g ? a.value.find((v) => Ce(v, g))?.value : null;
1647
1648
  l("update:modelValue", E ?? null);
1648
- }), (g, E) => (S(), at(eo, {
1649
+ }), (g, E) => (T(), at(eo, {
1649
1650
  modelValue: y.value,
1650
1651
  "onUpdate:modelValue": E[0] || (E[0] = (v) => y.value = v),
1651
1652
  options: a.value,
@@ -1688,15 +1689,15 @@ const to = { class: "content" }, no = { class: "message" }, oo = {
1688
1689
  duration: p * 1e3,
1689
1690
  easing: "linear"
1690
1691
  }), setTimeout(() => t.callback(), p * 1e3);
1691
- }), (p, l) => (S(), I("div", {
1692
+ }), (p, l) => (T(), I("div", {
1692
1693
  class: P(["vf-toast", [e.className, { top: e.position === "top", bottom: e.position !== "top" }]]),
1693
- onClick: Ne(o, ["stop"])
1694
+ onClick: Le(o, ["stop"])
1694
1695
  }, [
1695
1696
  U("div", to, [
1696
1697
  U("div", no, J(e.message), 1),
1697
- e.disableClose ? W("", !0) : (S(), I("div", oo, "x"))
1698
+ e.disableClose ? W("", !0) : (T(), I("div", oo, "x"))
1698
1699
  ]),
1699
- e.durationSecs !== null ? (S(), I("div", ro, [
1700
+ e.durationSecs !== null ? (T(), I("div", ro, [
1700
1701
  U("div", {
1701
1702
  ref_key: "progressInnerEl",
1702
1703
  ref: a,
@@ -1751,16 +1752,16 @@ function go(e, t) {
1751
1752
  return _(e).divide(t).value;
1752
1753
  }
1753
1754
  function yo(e, t) {
1754
- return e && X(new Date(e), t ?? H.defaultDateFormat);
1755
+ return e && X(new Date(e), t ?? $.defaultDateFormat);
1755
1756
  }
1756
1757
  function Eo(e, t) {
1757
- return e && X(new Date(e), t ?? H.defaultTimeFormat);
1758
+ return e && X(new Date(e), t ?? $.defaultTimeFormat);
1758
1759
  }
1759
1760
  function ko(e, t) {
1760
- return e && X(new Date(e), t ?? `${H.defaultDateFormat} ${H.defaultTimeFormat}`);
1761
+ return e && X(new Date(e), t ?? `${$.defaultDateFormat} ${$.defaultTimeFormat}`);
1761
1762
  }
1762
1763
  function xo(e) {
1763
- return e && X(nn(on(e, "yyyy-MM-dd", /* @__PURE__ */ new Date()), 1), H.defaultDateFormat);
1764
+ return e && X(nn(on(e, "yyyy-MM-dd", /* @__PURE__ */ new Date()), 1), $.defaultDateFormat);
1764
1765
  }
1765
1766
  const Ze = {
1766
1767
  bytes: ao,
@@ -1784,7 +1785,7 @@ const Ze = {
1784
1785
  ...e(Ze)
1785
1786
  }), Ae = Symbol("HookState");
1786
1787
  function yr(e, t) {
1787
- const o = t ?? Oe();
1788
+ const o = t ?? Ne();
1788
1789
  z(() => wo(o, e), o), st(() => bo(o), o), lt(() => Ge(o), o), me(() => Ge(o), o);
1789
1790
  }
1790
1791
  function wo(e, t) {
@@ -1803,12 +1804,12 @@ function Ge(e) {
1803
1804
  const t = e[Ae];
1804
1805
  t?.el?.uninstall(), t?.ancestor?.uninstall(), t?.window?.uninstall();
1805
1806
  }
1806
- const Se = ["auto", "scroll"];
1807
+ const Ie = ["auto", "scroll"];
1807
1808
  function mt(e) {
1808
1809
  const t = e.parentElement;
1809
1810
  if (!t) return null;
1810
1811
  const o = window.getComputedStyle(t);
1811
- return Se.includes(o.overflow) || Se.includes(o.overflowX) || Se.includes(o.overflowY) ? t : mt(t);
1812
+ return Ie.includes(o.overflow) || Ie.includes(o.overflowX) || Ie.includes(o.overflowY) ? t : mt(t);
1812
1813
  }
1813
1814
  class oe {
1814
1815
  constructor(t, o) {
@@ -1829,7 +1830,7 @@ class oe {
1829
1830
  function Er(e) {
1830
1831
  z(() => window.addEventListener("resize", e)), st(() => window.addEventListener("resize", e)), lt(() => window.removeEventListener("resize", e)), me(() => window.removeEventListener("resize", e));
1831
1832
  }
1832
- const To = {
1833
+ const So = {
1833
1834
  mounted: et,
1834
1835
  updated: et
1835
1836
  }, Qe = Symbol("HasAutoFocused");
@@ -1839,7 +1840,7 @@ function et(e, t) {
1839
1840
  const o = ["BUTTON", "INPUT", "TEXTAREA", "SELECT"].indexOf(e.tagName) > -1 ? e : e.querySelectorAll("input")[0];
1840
1841
  setTimeout(() => o.focus(), 10);
1841
1842
  }
1842
- const So = {
1843
+ const To = {
1843
1844
  mounted: Io
1844
1845
  }, Q = Symbol("ConfirmState");
1845
1846
  function Io(e, t) {
@@ -1896,10 +1897,10 @@ function No(e, t) {
1896
1897
  let v = null;
1897
1898
  const c = /* @__PURE__ */ new Date();
1898
1899
  c.getFullYear() === l.getFullYear() ? (c.getMonth() !== l.getMonth() || c.getDate() !== l.getDate()) && (v = "M/d") : v = "M/d/yy";
1899
- const n = g ? null : H.defaultTimeFormat;
1900
+ const n = g ? null : $.defaultTimeFormat;
1900
1901
  y = ut([v, n]).join(" ");
1901
1902
  }
1902
- y || (g ? y = H.defaultDateFormat : y = `${H.defaultDateFormat} ${H.defaultTimeFormat}`);
1903
+ y || (g ? y = $.defaultDateFormat : y = `${$.defaultDateFormat} ${$.defaultTimeFormat}`);
1903
1904
  let E = X(l, y);
1904
1905
  return o && (E = o + " " + E), E;
1905
1906
  }
@@ -1947,9 +1948,9 @@ function Do(e, t) {
1947
1948
  const l = Math.floor(e / 60);
1948
1949
  return (a || p || l) && o.push(l + "m"), t ? o.length || o.push("0m") : (e -= l * 60, o.push(e + "s")), o.join(" ");
1949
1950
  }
1950
- const Ho = {
1951
+ const $o = {
1951
1952
  mounted: Et,
1952
- updated: Vo,
1953
+ updated: Ho,
1953
1954
  unmounted: kt
1954
1955
  }, Y = /* @__PURE__ */ new Map();
1955
1956
  function Et(e, t) {
@@ -1963,7 +1964,7 @@ function kt(e, t) {
1963
1964
  }
1964
1965
  Y.size === 0 && window.removeEventListener("keydown", xt);
1965
1966
  }
1966
- function Vo(e, t) {
1967
+ function Ho(e, t) {
1967
1968
  kt(e, t), Et(e, t);
1968
1969
  }
1969
1970
  function xt(e) {
@@ -1971,7 +1972,7 @@ function xt(e) {
1971
1972
  const t = e.key.toLowerCase(), o = Y.get(t);
1972
1973
  o && (Qt(o)?.click(), e.preventDefault());
1973
1974
  }
1974
- const ee = Symbol("InfiniteScrollHandler"), $o = {
1975
+ const ee = Symbol("InfiniteScrollHandler"), Vo = {
1975
1976
  mounted(e, t) {
1976
1977
  e[ee] = new oe(e, t.value);
1977
1978
  },
@@ -1988,17 +1989,17 @@ const ee = Symbol("InfiniteScrollHandler"), $o = {
1988
1989
  function rt(e, t) {
1989
1990
  e.tagName == "LABEL" && (e = e.querySelector("input")), t.value ? e.setAttribute("readonly", "readonly") : e.removeAttribute("readonly");
1990
1991
  }
1991
- const Ie = /* @__PURE__ */ new WeakMap(), _o = {
1992
+ const Me = /* @__PURE__ */ new WeakMap(), _o = {
1992
1993
  beforeMount(e) {
1993
1994
  const t = new ResizeObserver(() => {
1994
- const o = e.clientWidth;
1995
- e.style.minWidth = `${o}px`;
1995
+ const o = window.getComputedStyle(e).minWidth.match(/^(\d+)px$/)?.[1], a = o ? parseInt(o, 10) : 0;
1996
+ e.clientWidth <= a || (e.style.minWidth = `${e.clientWidth}px`);
1996
1997
  });
1997
- Ie.set(e, t), t.observe(e);
1998
+ Me.set(e, t), t.observe(e);
1998
1999
  },
1999
2000
  beforeUnmount(e) {
2000
- const t = Ie.get(e);
2001
- t && (t.unobserve(e), Ie.delete(e));
2001
+ const t = Me.get(e);
2002
+ t && (t.unobserve(e), Me.delete(e));
2002
2003
  }
2003
2004
  }, Wo = {
2004
2005
  mounted: it,
@@ -2067,7 +2068,7 @@ class Po {
2067
2068
  }
2068
2069
  }
2069
2070
  function jo(e) {
2070
- e.directive("autofocus", To), e.directive("confirm-button", So), e.directive("date-input", Mo), e.directive("datetime", Oo), e.directive("disabled", Lo), e.directive("duration", Fo), e.directive("hotkey", Ho), e.directive("infinite-scroll", $o), e.directive("readonly", Bo), e.directive("tooltip", Wo), e.directive("sticky-min-width", _o);
2071
+ e.directive("autofocus", So), e.directive("confirm-button", To), e.directive("date-input", Mo), e.directive("datetime", Oo), e.directive("disabled", Lo), e.directive("duration", Fo), e.directive("hotkey", $o), e.directive("infinite-scroll", Vo), e.directive("readonly", Bo), e.directive("tooltip", Wo), e.directive("sticky-min-width", _o);
2071
2072
  }
2072
2073
  function kr(e) {
2073
2074
  jo(e);
@@ -2105,7 +2106,7 @@ export {
2105
2106
  gn as maskForm,
2106
2107
  fr as nl2br,
2107
2108
  cr as nullifyEmptyInputs,
2108
- Le as presentOverlay,
2109
+ Re as presentOverlay,
2109
2110
  ie as removeOverlayInjection,
2110
2111
  ar as replaceElement,
2111
2112
  hn as showAlert,
@@ -2117,7 +2118,7 @@ export {
2117
2118
  er as showWait,
2118
2119
  Nn as sleep,
2119
2120
  lr as sleepSecs,
2120
- Re as toError,
2121
+ Ee as toError,
2121
2122
  ir as unmaskComponent,
2122
2123
  dt as unmaskEl,
2123
2124
  ft as unmaskForm,