sprintify-ui 0.10.45 → 0.10.47

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.
@@ -2,7 +2,7 @@ var Ld = Object.defineProperty;
2
2
  var Fd = (t, n, e) => n in t ? Ld(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e;
3
3
  var un = (t, n, e) => Fd(t, typeof n != "symbol" ? n + "" : n, e);
4
4
  import * as Hi from "vue";
5
- import { defineComponent as Q, computed as w, inject as He, resolveComponent as St, createBlock as ee, createElementBlock as z, openBlock as b, withCtx as K, createElementVNode as E, withModifiers as an, normalizeClass as H, unref as c, renderSlot as ue, createCommentVNode as X, toDisplayString as re, ref as P, nextTick as wt, watchEffect as Ht, onMounted as Qe, cloneVNode as Pd, h as st, Fragment as De, provide as qe, onUnmounted as Ut, watch as Ye, shallowRef as Xl, getCurrentInstance as Js, Teleport as Sn, reactive as Zl, normalizeStyle as je, createVNode as Z, getCurrentScope as eu, onScopeDispose as tu, shallowReadonly as Eo, Transition as tn, renderList as We, resolveDynamicComponent as vn, toRef as Nd, readonly as $o, customRef as Vd, createTextVNode as Ot, onBeforeUnmount as yn, withDirectives as Kt, mergeProps as Mt, Comment as jd, useSlots as nu, isRef as Mn, TransitionGroup as ou, createStaticVNode as ru, vModelCheckbox as Hd, normalizeProps as ft, guardReactiveProps as pt, vShow as An, withKeys as ma, vModelText as ha, createSlots as au, vModelSelect as qd, defineAsyncComponent as Wd } from "vue";
5
+ import { defineComponent as Q, computed as w, inject as He, resolveComponent as St, createBlock as ee, createElementBlock as z, openBlock as b, withCtx as K, createElementVNode as E, withModifiers as an, normalizeClass as H, unref as c, renderSlot as ue, createCommentVNode as X, toDisplayString as re, ref as P, nextTick as wt, watchEffect as Ht, onMounted as Ze, cloneVNode as Pd, h as st, Fragment as De, provide as qe, onUnmounted as Ut, watch as Ye, shallowRef as Xl, getCurrentInstance as Js, Teleport as Sn, reactive as Zl, normalizeStyle as je, createVNode as Z, getCurrentScope as eu, onScopeDispose as tu, shallowReadonly as Eo, Transition as tn, renderList as We, resolveDynamicComponent as vn, toRef as Nd, readonly as $o, customRef as Vd, createTextVNode as Ot, onBeforeUnmount as yn, withDirectives as Kt, mergeProps as Mt, Comment as jd, useSlots as nu, isRef as Mn, TransitionGroup as ou, createStaticVNode as ru, vModelCheckbox as Hd, normalizeProps as ft, guardReactiveProps as pt, vShow as An, withKeys as ma, vModelText as ha, createSlots as au, vModelSelect as qd, defineAsyncComponent as Wd } from "vue";
6
6
  import Ud from "axios";
7
7
  import { padStart as ea, cloneDeep as kt, debounce as jt, uniqueId as wo, get as Vt, isArray as _t, isString as Fo, uniq as Yd, isObject as Vn, isFunction as qi, throttle as Ql, truncate as Kd, trim as Gd, isNumber as to, merge as Do, range as Kn, sortBy as Wi, set as Nr, isEqual as Xd, isPlainObject as Zd, reject as Qd, round as Ui, isBoolean as Jd, isNull as ef, capitalize as tf } from "lodash";
8
8
  import Yi from "qs";
@@ -2589,7 +2589,7 @@ function Qi(t, n) {
2589
2589
  }
2590
2590
  function ri(t, n) {
2591
2591
  let e = P(Qi(t.value.type, t.value.as));
2592
- return Qe(() => {
2592
+ return Ze(() => {
2593
2593
  e.value = Qi(t.value.type, t.value.as);
2594
2594
  }), Ht(() => {
2595
2595
  var o;
@@ -2793,7 +2793,7 @@ let Zo = Object.assign(Q({ name: "FocusTrap", props: { as: { type: [Object, Stri
2793
2793
  let r = P(null);
2794
2794
  o({ el: r, $el: r });
2795
2795
  let a = w(() => Cn(r)), l = P(!1);
2796
- Qe(() => l.value = !0), Ut(() => l.value = !1), pp({ ownerDocument: a }, w(() => l.value && !!(t.features & 16)));
2796
+ Ze(() => l.value = !0), Ut(() => l.value = !1), pp({ ownerDocument: a }, w(() => l.value && !!(t.features & 16)));
2797
2797
  let s = mp({ ownerDocument: a, container: r, initialFocus: w(() => t.initialFocus) }, w(() => l.value && !!(t.features & 2)));
2798
2798
  hp({ ownerDocument: a, container: r, containers: t.containers, previousActiveElement: s }, w(() => l.value && !!(t.features & 8)));
2799
2799
  let u = si();
@@ -2838,7 +2838,7 @@ function fp(t) {
2838
2838
  }
2839
2839
  function pp({ ownerDocument: t }, n) {
2840
2840
  let e = fp(n);
2841
- Qe(() => {
2841
+ Ze(() => {
2842
2842
  Ht(() => {
2843
2843
  var o, r;
2844
2844
  n.value || ((o = t.value) == null ? void 0 : o.activeElement) === ((r = t.value) == null ? void 0 : r.body) && eo(e());
@@ -2849,7 +2849,7 @@ function pp({ ownerDocument: t }, n) {
2849
2849
  }
2850
2850
  function mp({ ownerDocument: t, container: n, initialFocus: e }, o) {
2851
2851
  let r = P(null), a = P(!1);
2852
- return Qe(() => a.value = !0), Ut(() => a.value = !1), Qe(() => {
2852
+ return Ze(() => a.value = !0), Ut(() => a.value = !1), Ze(() => {
2853
2853
  Ye([n, e, o], (l, s) => {
2854
2854
  if (l.every((d, p) => (s == null ? void 0 : s[p]) === d) || !o.value) return;
2855
2855
  let u = Ie(n);
@@ -3066,7 +3066,7 @@ function Bp({ type: t, enabled: n, element: e, onUpdate: o }) {
3066
3066
  function a(...l) {
3067
3067
  o == null || o(...l), r(...l);
3068
3068
  }
3069
- Qe(() => {
3069
+ Ze(() => {
3070
3070
  Ye(n, (l, s) => {
3071
3071
  l ? a(0, t, e) : s === !0 && a(1, t, e);
3072
3072
  }, { immediate: !0, flush: "sync" });
@@ -3093,7 +3093,7 @@ function _u({ slot: t = P({}), name: n = "Description", props: e = {} } = {}) {
3093
3093
  Q({ name: "Description", props: { as: { type: [Object, String], default: "p" }, id: { type: String, default: null } }, setup(t, { attrs: n, slots: e }) {
3094
3094
  var o;
3095
3095
  let r = (o = t.id) != null ? o : `headlessui-description-${Wt()}`, a = Mp();
3096
- return Qe(() => Ut(a.register(r))), () => {
3096
+ return Ze(() => Ut(a.register(r))), () => {
3097
3097
  let { name: l = "Description", slot: s = P({}), props: u = {} } = a, { ...d } = t, p = { ...Object.entries(u).reduce((f, [m, v]) => Object.assign(f, { [m]: c(v) }), {}), id: r };
3098
3098
  return Ct({ ourProps: p, theirProps: d, slot: s.value, attrs: n, slots: e, name: l });
3099
3099
  };
@@ -3122,7 +3122,7 @@ let Iu = Q({ name: "Portal", props: { as: { type: [Object, String], default: "di
3122
3122
  let o = P(null), r = w(() => Cn(o)), a = Cp(), l = He(Du, null), s = P(a === !0 || l == null ? _p(o.value) : l.resolveTarget());
3123
3123
  s.value && ts(s.value, (m) => m + 1);
3124
3124
  let u = P(!1);
3125
- Qe(() => {
3125
+ Ze(() => {
3126
3126
  u.value = !0;
3127
3127
  }), Ht(() => {
3128
3128
  a || l != null && (s.value = l.resolveTarget());
@@ -3181,7 +3181,7 @@ function Ir(t) {
3181
3181
  let Hr = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Ap = Q({ name: "Dialog", inheritAttrs: !1, props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, open: { type: [Boolean, String], default: Hr }, initialFocus: { type: Object, default: null }, id: { type: String, default: null }, role: { type: String, default: "dialog" } }, emits: { close: (t) => !0 }, setup(t, { emit: n, attrs: e, slots: o, expose: r }) {
3182
3182
  var a, l;
3183
3183
  let s = (a = t.id) != null ? a : `headlessui-dialog-${Wt()}`, u = P(!1);
3184
- Qe(() => {
3184
+ Ze(() => {
3185
3185
  u.value = !0;
3186
3186
  });
3187
3187
  let d = !1, p = w(() => t.role === "dialog" || t.role === "alertdialog" ? t.role : (d || (d = !0, console.warn(`Invalid role [${p}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog")), f = P(0), m = Wo(), v = w(() => t.open === Hr && m !== null ? (m.value & Dt.Open) === Dt.Open : t.open), g = P(null), h = w(() => Cn(g));
@@ -3250,7 +3250,7 @@ Q({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div"
3250
3250
  Q({ name: "DialogBackdrop", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: null } }, inheritAttrs: !1, setup(t, { attrs: n, slots: e, expose: o }) {
3251
3251
  var r;
3252
3252
  let a = (r = t.id) != null ? r : `headlessui-dialog-backdrop-${Wt()}`, l = Ir("DialogBackdrop"), s = P(null);
3253
- return o({ el: s, $el: s }), Qe(() => {
3253
+ return o({ el: s, $el: s }), Ze(() => {
3254
3254
  if (l.panelRef.value === null) throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.");
3255
3255
  }), () => {
3256
3256
  let { ...u } = t, d = { id: a, ref: s, "aria-hidden": !0 };
@@ -3272,7 +3272,7 @@ let Tp = Q({ name: "DialogPanel", props: { as: { type: [Object, String], default
3272
3272
  Q({ name: "DialogTitle", props: { as: { type: [Object, String], default: "h2" }, id: { type: String, default: null } }, setup(t, { attrs: n, slots: e }) {
3273
3273
  var o;
3274
3274
  let r = (o = t.id) != null ? o : `headlessui-dialog-title-${Wt()}`, a = Ir("DialogTitle");
3275
- return Qe(() => {
3275
+ return Ze(() => {
3276
3276
  a.setTitleId(r), Ut(() => a.setTitleId(null));
3277
3277
  }), () => {
3278
3278
  let { ...l } = t;
@@ -3473,7 +3473,7 @@ let Pp = Q({ name: "Menu", props: { as: { type: [Object, String], default: "temp
3473
3473
  let u = w(() => l.activeItemIndex.value !== null ? l.items.value[l.activeItemIndex.value].id === a : !1), d = Op(s), p = w(() => ({ disabled: t.disabled, get textValue() {
3474
3474
  return d();
3475
3475
  }, domRef: s }));
3476
- Qe(() => l.registerItem(a, p)), Ut(() => l.unregisterItem(a)), Ht(() => {
3476
+ Ze(() => l.registerItem(a, p)), Ut(() => l.unregisterItem(a)), Ht(() => {
3477
3477
  l.menuState.value === 0 && u.value && l.activationTrigger.value !== 0 && wt(() => {
3478
3478
  var C, $;
3479
3479
  return ($ = (C = Ie(s)) == null ? void 0 : C.scrollIntoView) == null ? void 0 : $.call(C, { block: "nearest" });
@@ -3560,7 +3560,7 @@ let Lu = Q({ name: "Popover", inheritAttrs: !1, props: { as: { type: [Object, St
3560
3560
  } }), qp = Q({ name: "PopoverButton", props: { as: { type: [Object, String], default: "button" }, disabled: { type: [Boolean], default: !1 }, id: { type: String, default: null } }, inheritAttrs: !1, setup(t, { attrs: n, slots: e, expose: o }) {
3561
3561
  var r;
3562
3562
  let a = (r = t.id) != null ? r : `headlessui-popover-button-${Wt()}`, l = La("PopoverButton"), s = w(() => Cn(l.button));
3563
- o({ el: l.button, $el: l.button }), Qe(() => {
3563
+ o({ el: l.button, $el: l.button }), Ze(() => {
3564
3564
  l.buttonId.value = a;
3565
3565
  }), Ut(() => {
3566
3566
  l.buttonId.value = null;
@@ -3629,7 +3629,7 @@ Q({ name: "PopoverOverlay", props: { as: { type: [Object, String], default: "div
3629
3629
  let Wp = Q({ name: "PopoverPanel", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, focus: { type: Boolean, default: !1 }, id: { type: String, default: null } }, inheritAttrs: !1, setup(t, { attrs: n, slots: e, expose: o }) {
3630
3630
  var r;
3631
3631
  let a = (r = t.id) != null ? r : `headlessui-popover-panel-${Wt()}`, { focus: l } = t, s = La("PopoverPanel"), u = w(() => Cn(s.panel)), d = `headlessui-focus-sentinel-before-${Wt()}`, p = `headlessui-focus-sentinel-after-${Wt()}`;
3632
- o({ el: s.panel, $el: s.panel }), Qe(() => {
3632
+ o({ el: s.panel, $el: s.panel }), Ze(() => {
3633
3633
  s.panelId.value = a;
3634
3634
  }), Ut(() => {
3635
3635
  s.panelId.value = null;
@@ -3746,7 +3746,7 @@ function Up({ slot: t = {}, name: n = "Label", props: e = {} } = {}) {
3746
3746
  let Yp = Q({ name: "Label", props: { as: { type: [Object, String], default: "label" }, passive: { type: [Boolean], default: !1 }, id: { type: String, default: null } }, setup(t, { slots: n, attrs: e }) {
3747
3747
  var o;
3748
3748
  let r = (o = t.id) != null ? o : `headlessui-label-${Wt()}`, a = Pu();
3749
- return Qe(() => Ut(a.register(r))), () => {
3749
+ return Ze(() => Ut(a.register(r))), () => {
3750
3750
  let { name: l = "Label", slot: s = {}, props: u = {} } = a, { passive: d, ...p } = t, f = { ...Object.entries(u).reduce((m, [v, g]) => Object.assign(m, { [v]: c(g) }), {}), id: r };
3751
3751
  return d && (delete f.onClick, delete f.htmlFor, delete p.onClick), Ct({ ourProps: f, theirProps: p, slot: s, attrs: e, slots: n, name: l });
3752
3752
  };
@@ -3779,7 +3779,7 @@ let Yp = Q({ name: "Label", props: { as: { type: [Object, String], default: "lab
3779
3779
  var $, i;
3780
3780
  return (i = ($ = Ie(m)) == null ? void 0 : $.closest) == null ? void 0 : i.call($, "form");
3781
3781
  });
3782
- return Qe(() => {
3782
+ return Ze(() => {
3783
3783
  Ye([C], () => {
3784
3784
  if (!C.value || t.defaultChecked === void 0) return;
3785
3785
  function $() {
@@ -3848,7 +3848,7 @@ function Fa(t) {
3848
3848
  }
3849
3849
  function Vu(t) {
3850
3850
  let n = P([]), e = P(!1);
3851
- Qe(() => e.value = !0), Ut(() => e.value = !1);
3851
+ Ze(() => e.value = !0), Ut(() => e.value = !1);
3852
3852
  function o(a, l = Zn.Hidden) {
3853
3853
  let s = n.value.findIndex(({ id: u }) => u === a);
3854
3854
  s !== -1 && (Gt(l, { [Zn.Unmount]() {
@@ -3883,7 +3883,7 @@ let ju = On.RenderStrategy, ta = Q({ props: { as: { type: [Object, String], defa
3883
3883
  let { show: m, appear: v } = tm(), { register: g, unregister: h } = nm(), y = P(m.value ? "visible" : "hidden"), C = { value: !0 }, $ = Wt(), i = { value: !1 }, S = Vu(() => {
3884
3884
  !i.value && y.value !== "hidden" && (y.value = "hidden", h($), d());
3885
3885
  });
3886
- Qe(() => {
3886
+ Ze(() => {
3887
3887
  let ne = g($);
3888
3888
  Ut(ne);
3889
3889
  }), Ht(() => {
@@ -3896,7 +3896,7 @@ let ju = On.RenderStrategy, ta = Q({ props: { as: { type: [Object, String], defa
3896
3896
  }
3897
3897
  });
3898
3898
  let O = ao(t.enter), B = ao(t.enterFrom), I = ao(t.enterTo), x = ao(t.entered), k = ao(t.leave), _ = ao(t.leaveFrom), A = ao(t.leaveTo);
3899
- Qe(() => {
3899
+ Ze(() => {
3900
3900
  Ht(() => {
3901
3901
  if (y.value === "visible") {
3902
3902
  let ne = Ie(p);
@@ -3912,7 +3912,7 @@ let ju = On.RenderStrategy, ta = Q({ props: { as: { type: [Object, String], defa
3912
3912
  i.value = !1, G === Tl.Finished && (Fa(S) || (y.value = "hidden", h($), d()));
3913
3913
  })));
3914
3914
  }
3915
- return Qe(() => {
3915
+ return Ze(() => {
3916
3916
  Ye([m], (ne, J, le) => {
3917
3917
  F(le), C.value = !1;
3918
3918
  }, { immediate: !0 });
@@ -3928,7 +3928,7 @@ let ju = On.RenderStrategy, ta = Q({ props: { as: { type: [Object, String], defa
3928
3928
  let l = P(a.value ? "visible" : "hidden"), s = Vu(() => {
3929
3929
  l.value = "hidden";
3930
3930
  }), u = P(!0), d = { show: a, appear: w(() => t.appear || !u.value) };
3931
- return Qe(() => {
3931
+ return Ze(() => {
3932
3932
  Ht(() => {
3933
3933
  u.value = !1, a.value ? l.value = "visible" : Fa(s) || (l.value = "hidden");
3934
3934
  });
@@ -8705,7 +8705,7 @@ const tv = ["value", "name", "disabled", "required"], nv = ["value"], ul = "", c
8705
8705
  }
8706
8706
  );
8707
8707
  let h = null;
8708
- Qe(() => {
8708
+ Ze(() => {
8709
8709
  window.google && g.value && (h = new window.google.maps.places.Autocomplete(
8710
8710
  g.value
8711
8711
  ), y(), h.addListener("place_changed", C));
@@ -9161,7 +9161,7 @@ const cv = {
9161
9161
  emits: ["cancel", "confirm"],
9162
9162
  setup(t, { emit: n }) {
9163
9163
  const e = t, o = n, r = P(null), a = P(null);
9164
- Qe(() => {
9164
+ Ze(() => {
9165
9165
  a.value ? a.value.focus() : r.value && r.value.focus();
9166
9166
  });
9167
9167
  const l = P(""), s = w(() => e.input === !1 ? null : typeof e.input == "object" ? e.input : {
@@ -10687,7 +10687,7 @@ const Dc = /* @__PURE__ */ Yo(Gv, [["render", Zv]]), Qv = { class: "relative w-f
10687
10687
  w(() => !1)
10688
10688
  );
10689
10689
  let d = 0;
10690
- Qe(() => {
10690
+ Ze(() => {
10691
10691
  d = setTimeout(() => {
10692
10692
  o.focusOnMount && x();
10693
10693
  }, 10);
@@ -10712,7 +10712,7 @@ const Dc = /* @__PURE__ */ Yo(Gv, [["render", Zv]]), Qv = { class: "relative w-f
10712
10712
  { immediate: !0 }
10713
10713
  ), $c(h, () => {
10714
10714
  k();
10715
- }, { includes: () => [f] }), Qe(() => {
10715
+ }, { includes: () => [f] }), Ze(() => {
10716
10716
  window.addEventListener("keydown", I);
10717
10717
  }), yn(() => {
10718
10718
  window.removeEventListener("keydown", I);
@@ -11936,7 +11936,7 @@ const c0 = {
11936
11936
  },
11937
11937
  setup(t) {
11938
11938
  const n = P(1), e = P(0), o = P(null);
11939
- Qe(() => {
11939
+ Ze(() => {
11940
11940
  window.addEventListener("resize", r), a();
11941
11941
  }), yn(() => {
11942
11942
  window.removeEventListener("resize", r);
@@ -13144,7 +13144,7 @@ function Y0(t) {
13144
13144
  function K0(t, n = "data:application/octet-stream") {
13145
13145
  return t.match(/^data:.*\/.*;base64,/) || (t = `${n};base64,${t}`), t;
13146
13146
  }
13147
- async function FS(t, n = "data:application/octet-stream") {
13147
+ async function PS(t, n = "data:application/octet-stream") {
13148
13148
  return t = K0(t, n), (await fetch(t)).blob();
13149
13149
  }
13150
13150
  class Lc {
@@ -13239,7 +13239,7 @@ const Z0 = {
13239
13239
  () => {
13240
13240
  g();
13241
13241
  }
13242
- ), Qe(() => {
13242
+ ), Ze(() => {
13243
13243
  y();
13244
13244
  }), yn(() => {
13245
13245
  setTimeout(() => {
@@ -13450,7 +13450,7 @@ function Pc(t, n) {
13450
13450
  o();
13451
13451
  },
13452
13452
  { immediate: !0 }
13453
- ), Qe(() => {
13453
+ ), Ze(() => {
13454
13454
  e.value = !0, o();
13455
13455
  }), yn(() => {
13456
13456
  a();
@@ -13642,7 +13642,7 @@ const ry = {
13642
13642
  maxWidth: d.value
13643
13643
  }
13644
13644
  }));
13645
- Qe(() => {
13645
+ Ze(() => {
13646
13646
  f(), a.value = !0, window.addEventListener("resize", p);
13647
13647
  }), yn(() => {
13648
13648
  window.removeEventListener("resize", p);
@@ -15047,7 +15047,7 @@ const Sa = /* @__PURE__ */ Wa(cy), dy = { class: "flex grow items-center justify
15047
15047
  lu(F, J, {
15048
15048
  attributes: !1,
15049
15049
  childList: !0
15050
- }), Qe(() => {
15050
+ }), Ze(() => {
15051
15051
  ne();
15052
15052
  }), Ye(
15053
15053
  () => k.value,
@@ -15216,7 +15216,7 @@ const Sa = /* @__PURE__ */ Wa(cy), dy = { class: "flex grow items-center justify
15216
15216
  ));
15217
15217
  let T = kt(I.value);
15218
15218
  const W = te();
15219
- T = Do(T, W), be(T), Qe(() => {
15219
+ T = Do(T, W), be(T), Ze(() => {
15220
15220
  q();
15221
15221
  });
15222
15222
  const oe = P(null), pe = w(() => ({
@@ -16831,7 +16831,7 @@ const Pr = /* @__PURE__ */ Q({
16831
16831
  return u[e.itemKey] ?? wo();
16832
16832
  }
16833
16833
  let l = null;
16834
- Qe(() => {
16834
+ Ze(() => {
16835
16835
  r.value && (l = Xe.create(r.value, {
16836
16836
  handle: e.handle,
16837
16837
  disabled: e.disabled,
@@ -17272,7 +17272,7 @@ const Mb = ["align", "colspan"], _b = ["innerHTML"], cd = /* @__PURE__ */ Q({
17272
17272
  const r = w(() => o !== void 0), a = P(null), l = P(!1), s = P(void 0), u = He("table:virtualScrollingDefaultRowHeight", void 0), d = He("table:setVirtualScrollingDefaultRowHeight", void 0), p = jt(f, 10);
17273
17273
  window.addEventListener("scroll", p), Ut(() => {
17274
17274
  window.removeEventListener("scroll", p);
17275
- }), Qe(() => {
17275
+ }), Ze(() => {
17276
17276
  f();
17277
17277
  });
17278
17278
  function f() {
@@ -17575,7 +17575,7 @@ const Mb = ["align", "colspan"], _b = ["innerHTML"], cd = /* @__PURE__ */ Q({
17575
17575
  () => {
17576
17576
  G();
17577
17577
  }
17578
- ), Qe(() => {
17578
+ ), Ze(() => {
17579
17579
  wt(() => {
17580
17580
  G();
17581
17581
  });
@@ -18237,7 +18237,7 @@ const Mb = ["align", "colspan"], _b = ["innerHTML"], cd = /* @__PURE__ */ Q({
18237
18237
  }
18238
18238
  }
18239
18239
  const $ = mt.settingsStorage, i = P([]), S = Hs + s.storageKey + ".visible_columns";
18240
- Qe(async () => {
18240
+ Ze(async () => {
18241
18241
  const se = await $.get(S);
18242
18242
  let xe = [];
18243
18243
  if (typeof se == "string")
@@ -18255,7 +18255,7 @@ const Mb = ["align", "colspan"], _b = ["innerHTML"], cd = /* @__PURE__ */ Q({
18255
18255
  );
18256
18256
  }
18257
18257
  const B = P([]), I = Hs + s.storageKey + ".column_order";
18258
- Qe(async () => {
18258
+ Ze(async () => {
18259
18259
  var te;
18260
18260
  const se = await $.get(I);
18261
18261
  let xe = [];
@@ -19080,8 +19080,8 @@ function i1(t, n) {
19080
19080
  L = Math.min(L, Fe.getHours()), L === Fe.getHours() && (N = Math.min(N, Fe.getMinutes())), N === Fe.getMinutes() && (Y = Math.min(Y, Fe.getSeconds()));
19081
19081
  }
19082
19082
  if (ie) {
19083
- var Ze = e.config.minTime !== void 0 ? e.config.minTime : e.config.minDate;
19084
- L = Math.max(L, Ze.getHours()), L === Ze.getHours() && N < Ze.getMinutes() && (N = Ze.getMinutes()), N === Ze.getMinutes() && (Y = Math.max(Y, Ze.getSeconds()));
19083
+ var Qe = e.config.minTime !== void 0 ? e.config.minTime : e.config.minDate;
19084
+ L = Math.max(L, Qe.getHours()), L === Qe.getHours() && N < Qe.getMinutes() && (N = Qe.getMinutes()), N === Qe.getMinutes() && (Y = Math.max(Y, Qe.getSeconds()));
19085
19085
  }
19086
19086
  }
19087
19087
  v(L, N, Y);
@@ -19192,9 +19192,9 @@ function i1(t, n) {
19192
19192
  function k(L, N) {
19193
19193
  for (var Y = L.className.indexOf("Month") === -1 ? L.dateObj.getMonth() : e.currentMonth, ie = N > 0 ? e.config.showMonths : -1, Se = N > 0 ? 1 : -1, Ae = Y - e.currentMonth; Ae != ie; Ae += Se)
19194
19194
  for (var et = e.daysContainer.children[Ae], Ve = Y - e.currentMonth === Ae ? L.$i + N : N < 0 ? et.children.length - 1 : 0, rt = et.children.length, Fe = Ve; Fe >= 0 && Fe < rt && Fe != (N > 0 ? rt : -1); Fe += Se) {
19195
- var Ze = et.children[Fe];
19196
- if (Ze.className.indexOf("hidden") === -1 && fe(Ze.dateObj) && Math.abs(L.$i - Fe) >= Math.abs(N))
19197
- return I(Ze);
19195
+ var Qe = et.children[Fe];
19196
+ if (Qe.className.indexOf("hidden") === -1 && fe(Qe.dateObj) && Math.abs(L.$i - Fe) >= Math.abs(N))
19197
+ return I(Qe);
19198
19198
  }
19199
19199
  e.changeMonth(Se), _(x(Se), 0);
19200
19200
  }
@@ -19203,12 +19203,12 @@ function i1(t, n) {
19203
19203
  Se === void 0 ? e._input.focus() : ie ? k(Se, N) : I(Se);
19204
19204
  }
19205
19205
  function A(L, N) {
19206
- for (var Y = (new Date(L, N, 1).getDay() - e.l10n.firstDayOfWeek + 7) % 7, ie = e.utils.getDaysInMonth((N - 1 + 12) % 12, L), Se = e.utils.getDaysInMonth(N, L), Ae = window.document.createDocumentFragment(), et = e.config.showMonths > 1, Ve = et ? "prevMonthDay hidden" : "prevMonthDay", rt = et ? "nextMonthDay hidden" : "nextMonthDay", Fe = ie + 1 - Y, Ze = 0; Fe <= ie; Fe++, Ze++)
19207
- Ae.appendChild(B("flatpickr-day " + Ve, new Date(L, N - 1, Fe), Fe, Ze));
19208
- for (Fe = 1; Fe <= Se; Fe++, Ze++)
19209
- Ae.appendChild(B("flatpickr-day", new Date(L, N, Fe), Fe, Ze));
19210
- for (var vt = Se + 1; vt <= 42 - Y && (e.config.showMonths === 1 || Ze % 7 !== 0); vt++, Ze++)
19211
- Ae.appendChild(B("flatpickr-day " + rt, new Date(L, N + 1, vt % Se), vt, Ze));
19206
+ for (var Y = (new Date(L, N, 1).getDay() - e.l10n.firstDayOfWeek + 7) % 7, ie = e.utils.getDaysInMonth((N - 1 + 12) % 12, L), Se = e.utils.getDaysInMonth(N, L), Ae = window.document.createDocumentFragment(), et = e.config.showMonths > 1, Ve = et ? "prevMonthDay hidden" : "prevMonthDay", rt = et ? "nextMonthDay hidden" : "nextMonthDay", Fe = ie + 1 - Y, Qe = 0; Fe <= ie; Fe++, Qe++)
19207
+ Ae.appendChild(B("flatpickr-day " + Ve, new Date(L, N - 1, Fe), Fe, Qe));
19208
+ for (Fe = 1; Fe <= Se; Fe++, Qe++)
19209
+ Ae.appendChild(B("flatpickr-day", new Date(L, N, Fe), Fe, Qe));
19210
+ for (var vt = Se + 1; vt <= 42 - Y && (e.config.showMonths === 1 || Qe % 7 !== 0); vt++, Qe++)
19211
+ Ae.appendChild(B("flatpickr-day " + rt, new Date(L, N + 1, vt % Se), vt, Qe));
19212
19212
  var $n = dt("div", "dayContainer");
19213
19213
  return $n.appendChild(Ae), $n;
19214
19214
  }
@@ -19476,16 +19476,16 @@ function i1(t, n) {
19476
19476
  break;
19477
19477
  case 9:
19478
19478
  if (et) {
19479
- var Ze = [
19479
+ var Qe = [
19480
19480
  e.hourElement,
19481
19481
  e.minuteElement,
19482
19482
  e.secondElement,
19483
19483
  e.amPM
19484
19484
  ].concat(e.pluginElements).filter(function(sn) {
19485
19485
  return sn;
19486
- }), vt = Ze.indexOf(N);
19486
+ }), vt = Qe.indexOf(N);
19487
19487
  if (vt !== -1) {
19488
- var $n = Ze[vt + (L.shiftKey ? -1 : 1)];
19488
+ var $n = Qe[vt + (L.shiftKey ? -1 : 1)];
19489
19489
  L.preventDefault(), ($n || e._input).focus();
19490
19490
  }
19491
19491
  } else !e.config.noCalendar && e.daysContainer && e.daysContainer.contains(N) && L.shiftKey && (L.preventDefault(), e._input.focus());
@@ -19509,8 +19509,8 @@ function i1(t, n) {
19509
19509
  if (N === void 0 && (N = "flatpickr-day"), !(e.selectedDates.length !== 1 || L && (!L.classList.contains(N) || L.classList.contains("flatpickr-disabled")))) {
19510
19510
  for (var Y = L ? L.dateObj.getTime() : e.days.firstElementChild.dateObj.getTime(), ie = e.parseDate(e.selectedDates[0], void 0, !0).getTime(), Se = Math.min(Y, e.selectedDates[0].getTime()), Ae = Math.max(Y, e.selectedDates[0].getTime()), et = !1, Ve = 0, rt = 0, Fe = Se; Fe < Ae; Fe += a1.DAY)
19511
19511
  fe(new Date(Fe), !0) || (et = et || Fe > Se && Fe < Ae, Fe < ie && (!Ve || Fe > Ve) ? Ve = Fe : Fe > ie && (!rt || Fe < rt) && (rt = Fe));
19512
- var Ze = Array.from(e.rContainer.querySelectorAll("*:nth-child(-n+" + e.config.showMonths + ") > ." + N));
19513
- Ze.forEach(function(vt) {
19512
+ var Qe = Array.from(e.rContainer.querySelectorAll("*:nth-child(-n+" + e.config.showMonths + ") > ." + N));
19513
+ Qe.forEach(function(vt) {
19514
19514
  var $n = vt.dateObj, sn = $n.getTime(), Ko = Ve > 0 && sn < Ve || rt > 0 && sn > rt;
19515
19515
  if (Ko) {
19516
19516
  vt.classList.add("notAllowed"), ["inRange", "startRange", "endRange"].forEach(function(Co) {
@@ -19573,15 +19573,15 @@ function i1(t, n) {
19573
19573
  get: function() {
19574
19574
  return e.config._enable;
19575
19575
  },
19576
- set: function(Ze) {
19577
- e.config._enable = T(Ze);
19576
+ set: function(Qe) {
19577
+ e.config._enable = T(Qe);
19578
19578
  }
19579
19579
  }), Object.defineProperty(e.config, "disable", {
19580
19580
  get: function() {
19581
19581
  return e.config._disable;
19582
19582
  },
19583
- set: function(Ze) {
19584
- e.config._disable = T(Ze);
19583
+ set: function(Qe) {
19584
+ e.config._disable = T(Qe);
19585
19585
  }
19586
19586
  });
19587
19587
  var ie = N.mode === "time";
@@ -19604,9 +19604,9 @@ function i1(t, n) {
19604
19604
  },
19605
19605
  set: Te("max")
19606
19606
  });
19607
- var et = function(Ze) {
19607
+ var et = function(Qe) {
19608
19608
  return function(vt) {
19609
- e.config[Ze === "min" ? "_minTime" : "_maxTime"] = e.parseDate(vt, "H:i:S");
19609
+ e.config[Qe === "min" ? "_minTime" : "_maxTime"] = e.parseDate(vt, "H:i:S");
19610
19610
  };
19611
19611
  };
19612
19612
  Object.defineProperty(e.config, "minTime", {
@@ -19622,10 +19622,10 @@ function i1(t, n) {
19622
19622
  }), N.mode === "time" && (e.config.noCalendar = !0, e.config.enableTime = !0), Object.assign(e.config, Y, N);
19623
19623
  for (var Ve = 0; Ve < L.length; Ve++)
19624
19624
  e.config[L[Ve]] = e.config[L[Ve]] === !0 || e.config[L[Ve]] === "true";
19625
- wl.filter(function(Ze) {
19626
- return e.config[Ze] !== void 0;
19627
- }).forEach(function(Ze) {
19628
- e.config[Ze] = xl(e.config[Ze] || []).map(l);
19625
+ wl.filter(function(Qe) {
19626
+ return e.config[Qe] !== void 0;
19627
+ }).forEach(function(Qe) {
19628
+ e.config[Qe] = xl(e.config[Qe] || []).map(l);
19629
19629
  }), e.isMobile = !e.config.disableMobile && !e.config.inline && e.config.mode === "single" && !e.config.disable.length && !e.config.enable && !e.config.weekNumbers && /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
19630
19630
  for (var Ve = 0; Ve < e.config.plugins.length; Ve++) {
19631
19631
  var rt = e.config.plugins[Ve](e) || {};
@@ -19649,13 +19649,13 @@ function i1(t, n) {
19649
19649
  _e("onPreCalendarPosition");
19650
19650
  var N = L || e._positionElement, Y = Array.prototype.reduce.call(e.calendarContainer.children, function(Od, Rd) {
19651
19651
  return Od + Rd.offsetHeight;
19652
- }, 0), ie = e.calendarContainer.offsetWidth, Se = e.config.position.split(" "), Ae = Se[0], et = Se.length > 1 ? Se[1] : null, Ve = N.getBoundingClientRect(), rt = window.innerHeight - Ve.bottom, Fe = Ae === "above" || Ae !== "below" && rt < Y && Ve.top > Y, Ze = window.pageYOffset + Ve.top + (Fe ? -Y - 2 : N.offsetHeight + 2);
19652
+ }, 0), ie = e.calendarContainer.offsetWidth, Se = e.config.position.split(" "), Ae = Se[0], et = Se.length > 1 ? Se[1] : null, Ve = N.getBoundingClientRect(), rt = window.innerHeight - Ve.bottom, Fe = Ae === "above" || Ae !== "below" && rt < Y && Ve.top > Y, Qe = window.pageYOffset + Ve.top + (Fe ? -Y - 2 : N.offsetHeight + 2);
19653
19653
  if (Jt(e.calendarContainer, "arrowTop", !Fe), Jt(e.calendarContainer, "arrowBottom", Fe), !e.config.inline) {
19654
19654
  var vt = window.pageXOffset + Ve.left, $n = !1, sn = !1;
19655
19655
  et === "center" ? (vt -= (ie - Ve.width) / 2, $n = !0) : et === "right" && (vt -= ie - Ve.width, sn = !0), Jt(e.calendarContainer, "arrowLeft", !$n && !sn), Jt(e.calendarContainer, "arrowCenter", $n), Jt(e.calendarContainer, "arrowRight", sn);
19656
19656
  var Ko = window.document.body.offsetWidth - (window.pageXOffset + Ve.right), Co = vt + ie > window.document.body.offsetWidth, _d = Ko + ie > window.document.body.offsetWidth;
19657
19657
  if (Jt(e.calendarContainer, "rightMost", Co), !e.config.static)
19658
- if (e.calendarContainer.style.top = Ze + "px", !Co)
19658
+ if (e.calendarContainer.style.top = Qe + "px", !Co)
19659
19659
  e.calendarContainer.style.left = vt + "px", e.calendarContainer.style.right = "auto";
19660
19660
  else if (!_d)
19661
19661
  e.calendarContainer.style.left = "auto", e.calendarContainer.style.right = Ko + "px";
@@ -19696,8 +19696,8 @@ function i1(t, n) {
19696
19696
  }
19697
19697
  function Nt(L) {
19698
19698
  L.preventDefault(), L.stopPropagation();
19699
- var N = function(Ze) {
19700
- return Ze.classList && Ze.classList.contains("flatpickr-day") && !Ze.classList.contains("flatpickr-disabled") && !Ze.classList.contains("notAllowed");
19699
+ var N = function(Qe) {
19700
+ return Qe.classList && Qe.classList.contains("flatpickr-day") && !Qe.classList.contains("flatpickr-disabled") && !Qe.classList.contains("notAllowed");
19701
19701
  }, Y = fd(cn(L), N);
19702
19702
  if (Y !== void 0) {
19703
19703
  var ie = Y, Se = e.latestSelectedDateObj = new Date(ie.dateObj.getTime()), Ae = (Se.getMonth() < e.currentMonth || Se.getMonth() > e.currentMonth + e.config.showMonths - 1) && e.config.mode !== "range";
@@ -19706,8 +19706,8 @@ function i1(t, n) {
19706
19706
  else if (e.config.mode === "multiple") {
19707
19707
  var et = ce(Se);
19708
19708
  et ? e.selectedDates.splice(parseInt(et), 1) : e.selectedDates.push(Se);
19709
- } else e.config.mode === "range" && (e.selectedDates.length === 2 && e.clear(!1, !1), e.latestSelectedDateObj = Se, e.selectedDates.push(Se), fn(Se, e.selectedDates[0], !0) !== 0 && e.selectedDates.sort(function(Ze, vt) {
19710
- return Ze.getTime() - vt.getTime();
19709
+ } else e.config.mode === "range" && (e.selectedDates.length === 2 && e.clear(!1, !1), e.latestSelectedDateObj = Se, e.selectedDates.push(Se), fn(Se, e.selectedDates[0], !0) !== 0 && e.selectedDates.sort(function(Qe, vt) {
19710
+ return Qe.getTime() - vt.getTime();
19711
19711
  }));
19712
19712
  if (f(), Ae) {
19713
19713
  var Ve = e.currentYear !== Se.getFullYear();
@@ -19875,8 +19875,8 @@ function i1(t, n) {
19875
19875
  e.amPM !== void 0 && Y === e.amPM && (e.amPM.textContent = e.l10n.amPM[bn(e.amPM.textContent === e.l10n.amPM[0])]);
19876
19876
  var Se = parseFloat(ie.getAttribute("min")), Ae = parseFloat(ie.getAttribute("max")), et = parseFloat(ie.getAttribute("step")), Ve = parseInt(ie.value, 10), rt = L.delta || (N ? L.which === 38 ? 1 : -1 : 0), Fe = Ve + et * rt;
19877
19877
  if (typeof ie.value < "u" && ie.value.length === 2) {
19878
- var Ze = ie === e.hourElement, vt = ie === e.minuteElement;
19879
- Fe < Se ? (Fe = Ae + Fe + bn(!Ze) + (bn(Ze) && bn(!e.amPM)), vt && S(void 0, -1, e.hourElement)) : Fe > Ae && (Fe = ie === e.hourElement ? Fe - Ae - bn(!e.amPM) : Se, vt && S(void 0, 1, e.hourElement)), e.amPM && Ze && (et === 1 ? Fe + Ve === 23 : Math.abs(Fe - Ve) > et) && (e.amPM.textContent = e.l10n.amPM[bn(e.amPM.textContent === e.l10n.amPM[0])]), ie.value = on(Fe);
19878
+ var Qe = ie === e.hourElement, vt = ie === e.minuteElement;
19879
+ Fe < Se ? (Fe = Ae + Fe + bn(!Qe) + (bn(Qe) && bn(!e.amPM)), vt && S(void 0, -1, e.hourElement)) : Fe > Ae && (Fe = ie === e.hourElement ? Fe - Ae - bn(!e.amPM) : Se, vt && S(void 0, 1, e.hourElement)), e.amPM && Qe && (et === 1 ? Fe + Ve === 23 : Math.abs(Fe - Ve) > et) && (e.amPM.textContent = e.l10n.amPM[bn(e.amPM.textContent === e.l10n.amPM[0])]), ie.value = on(Fe);
19880
19880
  }
19881
19881
  }
19882
19882
  return r(), e;
@@ -20140,7 +20140,7 @@ const c1 = ["disabled", "placeholder"], d1 = /* @__PURE__ */ Q({
20140
20140
  prevArrow: '<svg class="fill-current" width="7" height="11" viewBox="0 0 7 11"><path d="M5.4 10.8l1.4-1.4-4-4 4-4L5.4 0 0 5.4z" /></svg>',
20141
20141
  nextArrow: '<svg class="fill-current" width="7" height="11" viewBox="0 0 7 11"><path d="M1.4 10.8L0 9.4l4-4-4-4L1.4 0l5.4 5.4z" /></svg>'
20142
20142
  }));
20143
- Qe(() => {
20143
+ Ze(() => {
20144
20144
  Xd(e.modelValue, u.value) || l(u.value);
20145
20145
  }), Ye(
20146
20146
  () => u.value,
@@ -20165,7 +20165,7 @@ const c1 = ["disabled", "placeholder"], d1 = /* @__PURE__ */ Q({
20165
20165
  deep: !0,
20166
20166
  immediate: !0
20167
20167
  }
20168
- ), Qe(() => {
20168
+ ), Ze(() => {
20169
20169
  $();
20170
20170
  }), Ut(() => {
20171
20171
  setTimeout(() => {
@@ -20484,7 +20484,7 @@ const c1 = ["disabled", "placeholder"], d1 = /* @__PURE__ */ Q({
20484
20484
  var a;
20485
20485
  e.value = ((a = n.value) == null ? void 0 : a.clientWidth) ?? Us;
20486
20486
  }
20487
- return Qe(() => {
20487
+ return Ze(() => {
20488
20488
  r();
20489
20489
  }), Er(n, jt(r, 50)), (a, l) => (b(), z("div", {
20490
20490
  ref_key: "item",
@@ -22146,7 +22146,7 @@ const S1 = /* @__PURE__ */ Wa(k1), C1 = { class: "text-xs text-slate-600" }, hd
22146
22146
  w(() => r.valueKey),
22147
22147
  w(() => !0)
22148
22148
  );
22149
- Qe(() => {
22149
+ Ze(() => {
22150
22150
  window.addEventListener("keydown", p);
22151
22151
  }), yn(() => {
22152
22152
  window.removeEventListener("keydown", p);
@@ -22158,7 +22158,7 @@ const S1 = /* @__PURE__ */ Wa(k1), C1 = { class: "text-xs text-slate-600" }, hd
22158
22158
  V === "Tab" && A(), V === "Escape" && A();
22159
22159
  }
22160
22160
  let f = 0;
22161
- Qe(() => {
22161
+ Ze(() => {
22162
22162
  f = setTimeout(() => {
22163
22163
  r.focusOnMount && _();
22164
22164
  }, 10);
@@ -23633,7 +23633,7 @@ const Q1 = ["onClick"], J1 = { class: "px-2 flex items-center" }, ew = { class:
23633
23633
  });
23634
23634
  }
23635
23635
  const v = jt(m, 200);
23636
- Qe(() => {
23636
+ Ze(() => {
23637
23637
  setTimeout(() => {
23638
23638
  m(), Ye(() => f.value, v, { deep: !0 });
23639
23639
  }, 1);
@@ -24268,7 +24268,7 @@ const Q1 = ["onClick"], J1 = { class: "px-2 flex items-center" }, ew = { class:
24268
24268
  S != "" && (S = "-" + S), o("update:modelValue", i + S);
24269
24269
  });
24270
24270
  }
24271
- return Qe(() => {
24271
+ return Ze(() => {
24272
24272
  h();
24273
24273
  }), (i, S) => (b(), z("div", {
24274
24274
  class: "w-full overflow-hidden rounded border bg-white",
@@ -24571,7 +24571,7 @@ const Q1 = ["onClick"], J1 = { class: "px-2 flex items-center" }, ew = { class:
24571
24571
  () => {
24572
24572
  l();
24573
24573
  }
24574
- )) : Qe(() => {
24574
+ )) : Ze(() => {
24575
24575
  l();
24576
24576
  }), Ut(() => {
24577
24577
  clearTimeout(a);
@@ -26100,7 +26100,7 @@ const dk = /* @__PURE__ */ Yo(ak, [["render", ck]]), fk = { class: "space-y-3" }
26100
26100
  "-webkit-line-clamp": e.maxLines,
26101
26101
  "-webkit-box-orient": "vertical"
26102
26102
  }));
26103
- Qe(() => {
26103
+ Ze(() => {
26104
26104
  l(), lu(
26105
26105
  n.value,
26106
26106
  () => {
@@ -26867,7 +26867,7 @@ const Nk = /* @__PURE__ */ Yo(Ak, [["render", Pk]]), Vk = { class: "flex-shrink-
26867
26867
  });
26868
26868
  }
26869
26869
  const p = P(null);
26870
- Qe(() => {
26870
+ Ze(() => {
26871
26871
  wt(() => {
26872
26872
  f(!1);
26873
26873
  });
@@ -27645,7 +27645,7 @@ const Nk = /* @__PURE__ */ Yo(Ak, [["render", Pk]]), Vk = { class: "flex-shrink-
27645
27645
  s.value[g + S] = C[S], a.code += C[S];
27646
27646
  (i = l.value[g + C.length]) == null || i.focus(), h.preventDefault();
27647
27647
  };
27648
- return Qe(async () => {
27648
+ return Ze(async () => {
27649
27649
  await wt(), l.value = Array.from(
27650
27650
  { length: e.numberOfCharacters },
27651
27651
  (h, y) => l.value[y]
@@ -28086,7 +28086,7 @@ const Nk = /* @__PURE__ */ Yo(Ak, [["render", Pk]]), Vk = { class: "flex-shrink-
28086
28086
  }), uS = { class: "min-h-full" }, cS = { class: "fixed inset-0 z-40 flex" }, dS = { class: "absolute top-0 right-0 pt-2 -mr-12" }, fS = ["src", "alt"], pS = {
28087
28087
  "data-scroll-lock-scrollable": "",
28088
28088
  class: "flex-1 h-0 mt-5 overflow-y-auto"
28089
- }, mS = { class: "sticky top-0 left-0 z-10 shadow shrink-0 || print:hidden" }, hS = { class: "flex flex-1" }, gS = { class: "relative flex-1 min-h-full" }, vS = ["src", "alt"], yS = { class: "flex flex-1" }, bS = { class: "flex-1" }, Md = /* @__PURE__ */ Q({
28089
+ }, mS = { class: "sticky top-0 left-0 z-10 shadow shrink-0 || print:hidden" }, hS = { class: "flex flex-1" }, gS = { class: "relative flex-1 min-h-full" }, vS = ["src", "alt"], yS = { class: "flex flex-1" }, bS = { class: "flex-1" }, wS = "base_layout_sidebar.", Md = /* @__PURE__ */ Q({
28090
28090
  __name: "BaseLayoutSidebar",
28091
28091
  props: {
28092
28092
  appName: {
@@ -28121,13 +28121,16 @@ const Nk = /* @__PURE__ */ Yo(Ak, [["render", Pk]]), Vk = { class: "flex-shrink-
28121
28121
  function s() {
28122
28122
  r.value = !1;
28123
28123
  }
28124
- const u = P(!1);
28125
- function d() {
28126
- u.value = !u.value;
28124
+ const u = mt.settingsStorage, d = `${wS}.collapsed`, p = P(!1);
28125
+ Ze(async () => {
28126
+ p.value = await u.get(d) == 1;
28127
+ });
28128
+ function f() {
28129
+ p.value = !p.value, u.set(d, p.value ? "1" : "0");
28127
28130
  }
28128
- const p = w(() => n.size === "xs" ? 50 : n.size === "sm" ? 54 : 64);
28129
- return qe("toggleMenu", a), qe("openMenu", l), qe("closeMenu", s), (f, m) => {
28130
- const v = St("RouterLink");
28131
+ const m = w(() => n.size === "xs" ? 50 : n.size === "sm" ? 54 : 64);
28132
+ return qe("toggleMenu", a), qe("openMenu", l), qe("closeMenu", s), (v, g) => {
28133
+ const h = St("RouterLink");
28131
28134
  return b(), z("div", uS, [
28132
28135
  Z(c(Hu), {
28133
28136
  as: "template",
@@ -28137,7 +28140,7 @@ const Nk = /* @__PURE__ */ Yo(Ak, [["render", Pk]]), Vk = { class: "flex-shrink-
28137
28140
  Z(c(Ap), {
28138
28141
  as: "div",
28139
28142
  class: "relative z-40 xl:hidden",
28140
- onClose: m[1] || (m[1] = (g) => r.value = !1)
28143
+ onClose: g[1] || (g[1] = (y) => r.value = !1)
28141
28144
  }, {
28142
28145
  default: K(() => [
28143
28146
  Z(c(ta), {
@@ -28149,7 +28152,7 @@ const Nk = /* @__PURE__ */ Yo(Ak, [["render", Pk]]), Vk = { class: "flex-shrink-
28149
28152
  "leave-from": "opacity-100",
28150
28153
  "leave-to": "opacity-0"
28151
28154
  }, {
28152
- default: K(() => m[3] || (m[3] = [
28155
+ default: K(() => g[3] || (g[3] = [
28153
28156
  E("div", { class: "fixed inset-0 bg-opacity-75 bg-slate-600" }, null, -1)
28154
28157
  ])),
28155
28158
  _: 1
@@ -28183,9 +28186,9 @@ const Nk = /* @__PURE__ */ Yo(Ak, [["render", Pk]]), Vk = { class: "flex-shrink-
28183
28186
  E("button", {
28184
28187
  type: "button",
28185
28188
  class: "flex items-center justify-center w-10 h-10 ml-1 rounded-full",
28186
- onClick: m[0] || (m[0] = (g) => r.value = !1)
28189
+ onClick: g[0] || (g[0] = (y) => r.value = !1)
28187
28190
  }, [
28188
- m[4] || (m[4] = E("span", { class: "sr-only" }, "Close sidebar", -1)),
28191
+ g[4] || (g[4] = E("span", { class: "sr-only" }, "Close sidebar", -1)),
28189
28192
  Z(c(Ue), {
28190
28193
  icon: "heroicons:x-mark",
28191
28194
  class: "w-6 h-6 text-white",
@@ -28196,7 +28199,7 @@ const Nk = /* @__PURE__ */ Yo(Ak, [["render", Pk]]), Vk = { class: "flex-shrink-
28196
28199
  ]),
28197
28200
  _: 1
28198
28201
  }),
28199
- Z(v, {
28202
+ Z(h, {
28200
28203
  to: t.logoTo,
28201
28204
  class: "flex items-center flex-shrink-0 px-4",
28202
28205
  onClick: s
@@ -28212,7 +28215,7 @@ const Nk = /* @__PURE__ */ Yo(Ak, [["render", Pk]]), Vk = { class: "flex-shrink-
28212
28215
  }, 8, ["to"]),
28213
28216
  E("div", pS, [
28214
28217
  E("nav", null, [
28215
- ue(f.$slots, "menu")
28218
+ ue(v.$slots, "menu")
28216
28219
  ])
28217
28220
  ])
28218
28221
  ]),
@@ -28221,7 +28224,7 @@ const Nk = /* @__PURE__ */ Yo(Ak, [["render", Pk]]), Vk = { class: "flex-shrink-
28221
28224
  ]),
28222
28225
  _: 3
28223
28226
  }),
28224
- m[5] || (m[5] = E("div", {
28227
+ g[5] || (g[5] = E("div", {
28225
28228
  class: "flex-shrink-0 w-14",
28226
28229
  "aria-hidden": "true"
28227
28230
  }, null, -1))
@@ -28233,32 +28236,32 @@ const Nk = /* @__PURE__ */ Yo(Ak, [["render", Pk]]), Vk = { class: "flex-shrink-
28233
28236
  _: 3
28234
28237
  }, 8, ["show"]),
28235
28238
  E("div", {
28236
- class: H(["flex flex-col min-h-full || xl:print:pl-0", [u.value ? "xl:pl-14" : "xl:pl-64"]])
28239
+ class: H(["flex flex-col min-h-full || xl:print:pl-0", [p.value ? "xl:pl-14" : "xl:pl-64"]])
28237
28240
  }, [
28238
28241
  E("div", mS, [
28239
- (b(!0), z(De, null, We(c(o), (g) => (b(), ee(ji, {
28240
- key: g.id,
28241
- color: g.color,
28242
- to: g.to,
28243
- action: g.action,
28244
- closable: g.closable,
28245
- onClose: (h) => c(e).remove(g.id)
28242
+ (b(!0), z(De, null, We(c(o), (y) => (b(), ee(ji, {
28243
+ key: y.id,
28244
+ color: y.color,
28245
+ to: y.to,
28246
+ action: y.action,
28247
+ closable: y.closable,
28248
+ onClose: (C) => c(e).remove(y.id)
28246
28249
  }, {
28247
28250
  default: K(() => [
28248
- Ot(re(g.message), 1)
28251
+ Ot(re(y.message), 1)
28249
28252
  ]),
28250
28253
  _: 2
28251
28254
  }, 1032, ["color", "to", "action", "closable", "onClose"]))), 128)),
28252
28255
  E("div", {
28253
28256
  class: "flex bg-white",
28254
- style: je({ height: c(p) + "px" })
28257
+ style: je({ height: c(m) + "px" })
28255
28258
  }, [
28256
28259
  E("button", {
28257
28260
  type: "button",
28258
28261
  class: "px-4 border-r border-slate-200 text-slate-500 xl:hidden",
28259
- onClick: m[2] || (m[2] = (g) => r.value = !0)
28262
+ onClick: g[2] || (g[2] = (y) => r.value = !0)
28260
28263
  }, [
28261
- m[6] || (m[6] = E("span", { class: "sr-only" }, "Open sidebar", -1)),
28264
+ g[6] || (g[6] = E("span", { class: "sr-only" }, "Open sidebar", -1)),
28262
28265
  Z(c(Ue), {
28263
28266
  icon: "heroicons:bars-3-bottom-left",
28264
28267
  class: "w-6 h-6",
@@ -28266,16 +28269,16 @@ const Nk = /* @__PURE__ */ Yo(Ak, [["render", Pk]]), Vk = { class: "flex-shrink-
28266
28269
  })
28267
28270
  ]),
28268
28271
  E("div", hS, [
28269
- ue(f.$slots, "navbar")
28272
+ ue(v.$slots, "navbar")
28270
28273
  ])
28271
28274
  ], 4)
28272
28275
  ]),
28273
28276
  E("main", gS, [
28274
- ue(f.$slots, "default")
28277
+ ue(v.$slots, "default")
28275
28278
  ])
28276
28279
  ], 2),
28277
28280
  E("div", {
28278
- class: H(["z-10 hidden || xl:fixed xl:inset-y-0 xl:flex xl:flex-col || xl:print:hidden", [u.value ? "xl:w-14" : "xl:w-64"]])
28281
+ class: H(["z-10 hidden || xl:fixed xl:inset-y-0 xl:flex xl:flex-col || xl:print:hidden", [p.value ? "xl:w-14" : "xl:w-64"]])
28279
28282
  }, [
28280
28283
  E("div", {
28281
28284
  "data-scroll-lock-scrollable": "",
@@ -28283,9 +28286,9 @@ const Nk = /* @__PURE__ */ Yo(Ak, [["render", Pk]]), Vk = { class: "flex-shrink-
28283
28286
  }, [
28284
28287
  E("div", {
28285
28288
  class: H(["flex items-center shrink-0", [t.dark ? "bg-slate-900" : "border-b"]]),
28286
- style: je({ height: c(p) + "px" })
28289
+ style: je({ height: c(m) + "px" })
28287
28290
  }, [
28288
- u.value ? X("", !0) : (b(), ee(v, {
28291
+ p.value ? X("", !0) : (b(), ee(h, {
28289
28292
  key: 0,
28290
28293
  to: t.logoTo,
28291
28294
  class: "flex items-center flex-shrink-0 grow px-4",
@@ -28304,9 +28307,9 @@ const Nk = /* @__PURE__ */ Yo(Ak, [["render", Pk]]), Vk = { class: "flex-shrink-
28304
28307
  type: "button",
28305
28308
  class: H(["px-3 flex justify-center items-center", [
28306
28309
  t.dark ? "text-slate-400 hover:text-slate-50" : "text-slate-500 hover:text-slate-900",
28307
- u.value ? "w-full" : "shrink-0"
28310
+ p.value ? "w-full" : "shrink-0"
28308
28311
  ]]),
28309
- onClick: d
28312
+ onClick: f
28310
28313
  }, [
28311
28314
  Z(c(Ue), {
28312
28315
  icon: "mdi:dock-left",
@@ -28316,7 +28319,7 @@ const Nk = /* @__PURE__ */ Yo(Ak, [["render", Pk]]), Vk = { class: "flex-shrink-
28316
28319
  ], 6),
28317
28320
  E("div", yS, [
28318
28321
  E("nav", bS, [
28319
- ue(f.$slots, "menu", { collapsed: u.value })
28322
+ ue(v.$slots, "menu", { collapsed: p.value })
28320
28323
  ])
28321
28324
  ])
28322
28325
  ], 2)
@@ -28324,10 +28327,10 @@ const Nk = /* @__PURE__ */ Yo(Ak, [["render", Pk]]), Vk = { class: "flex-shrink-
28324
28327
  ]);
28325
28328
  };
28326
28329
  }
28327
- }), wS = {
28330
+ }), xS = {
28328
28331
  key: 1,
28329
28332
  class: "px-4"
28330
- }, xS = { class: "flex flex-1 justify-between px-4" }, kS = { class: "flex grow" }, SS = { class: "ml-4 flex items-center md:ml-6" }, CS = /* @__PURE__ */ Q({
28333
+ }, kS = { class: "flex flex-1 justify-between px-4" }, SS = { class: "flex grow" }, CS = { class: "ml-4 flex items-center md:ml-6" }, ES = /* @__PURE__ */ Q({
28331
28334
  __name: "BaseLayoutSidebarConfigurable",
28332
28335
  props: {
28333
28336
  appName: {
@@ -28399,7 +28402,7 @@ const Nk = /* @__PURE__ */ Yo(Ak, [["render", Pk]]), Vk = { class: "flex-shrink-
28399
28402
  p.label && !p.href && !p.to && !p.action ? (b(), z("div", {
28400
28403
  key: p.label
28401
28404
  }, [
28402
- d ? (b(), z("div", wS, u[0] || (u[0] = [
28405
+ d ? (b(), z("div", xS, u[0] || (u[0] = [
28403
28406
  E("hr", { class: "my-2 border-slate-600" }, null, -1)
28404
28407
  ]))) : (b(), z("h2", {
28405
28408
  key: 0,
@@ -28432,11 +28435,11 @@ const Nk = /* @__PURE__ */ Yo(Ak, [["render", Pk]]), Vk = { class: "flex-shrink-
28432
28435
  ], 2)
28433
28436
  ]),
28434
28437
  navbar: K(() => [
28435
- E("div", xS, [
28436
- E("div", kS, [
28438
+ E("div", kS, [
28439
+ E("div", SS, [
28437
28440
  ue(s.$slots, "navbar")
28438
28441
  ]),
28439
- E("div", SS, [
28442
+ E("div", CS, [
28440
28443
  t.notifications ? (b(), ee(Bd, {
28441
28444
  key: 0,
28442
28445
  "notifications-config": t.notifications,
@@ -28539,7 +28542,7 @@ const Nk = /* @__PURE__ */ Yo(Ak, [["render", Pk]]), Vk = { class: "flex-shrink-
28539
28542
  BaseInputPercent: zw,
28540
28543
  BaseJsonReader: Vw,
28541
28544
  BaseLayoutSidebar: Md,
28542
- BaseLayoutSidebarConfigurable: CS,
28545
+ BaseLayoutSidebarConfigurable: ES,
28543
28546
  BaseLayoutStacked: Ed,
28544
28547
  BaseLayoutStackedConfigurable: sS,
28545
28548
  BaseLazy: Hw,
@@ -28591,7 +28594,7 @@ const Nk = /* @__PURE__ */ Yo(Ak, [["render", Pk]]), Vk = { class: "flex-shrink-
28591
28594
  BaseTooltip: Uo,
28592
28595
  BaseUniqueCode: K2
28593
28596
  }, Symbol.toStringTag, { value: "Module" })), Qs = "sui.";
28594
- class ES {
28597
+ class BS {
28595
28598
  constructor(n, e) {
28596
28599
  un(this, "getFunction");
28597
28600
  un(this, "setFunction");
@@ -28605,10 +28608,10 @@ class ES {
28605
28608
  return this.setFunction(n, e);
28606
28609
  }
28607
28610
  }
28608
- const BS = 100, PS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
28611
+ const MS = 100, NS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
28609
28612
  __proto__: null,
28610
- MAGIC_NUM: BS
28611
- }, Symbol.toStringTag, { value: "Module" })), NS = { en: kc, fr: Sc }, mt = {
28613
+ MAGIC_NUM: MS
28614
+ }, Symbol.toStringTag, { value: "Module" })), VS = { en: kc, fr: Sc }, mt = {
28612
28615
  http: Ud.create(),
28613
28616
  locales: {
28614
28617
  en: "English",
@@ -28628,14 +28631,14 @@ const BS = 100, PS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.define
28628
28631
  //comma: true,
28629
28632
  });
28630
28633
  },
28631
- settingsStorage: new ES(),
28634
+ settingsStorage: new BS(),
28632
28635
  countries: [],
28633
28636
  regions: [],
28634
28637
  props: {
28635
28638
  size: "md"
28636
28639
  }
28637
28640
  };
28638
- function MS(t, n) {
28641
+ function _S(t, n) {
28639
28642
  for (const e in Zs)
28640
28643
  t.component(e, Zs[e]);
28641
28644
  n != null && n.http && (mt.http = n.http), n != null && n.locales && (mt.locales = n.locales), n != null && n.upload_url && (mt.upload_url = n.upload_url), n != null && n.formatQueryString && (mt.formatQueryString = n.formatQueryString), n != null && n.parseQueryString && (mt.parseQueryString = n.parseQueryString), n != null && n.settingsStorage && (mt.settingsStorage = n.settingsStorage), n != null && n.countries && (mt.countries = n.countries), n != null && n.regions && (mt.regions = n.regions), n != null && n.props && (mt.props = n.props), t.config.globalProperties.$i18n && Ye(
@@ -28646,7 +28649,7 @@ function MS(t, n) {
28646
28649
  { immediate: !0 }
28647
28650
  );
28648
28651
  }
28649
- const VS = { install: MS };
28652
+ const jS = { install: _S };
28650
28653
  export {
28651
28654
  gi as BaseActionButtons,
28652
28655
  Jn as BaseActionItem,
@@ -28706,7 +28709,7 @@ export {
28706
28709
  zw as BaseInputPercent,
28707
28710
  Vw as BaseJsonReader,
28708
28711
  Md as BaseLayoutSidebar,
28709
- CS as BaseLayoutSidebarConfigurable,
28712
+ ES as BaseLayoutSidebarConfigurable,
28710
28713
  Ed as BaseLayoutStacked,
28711
28714
  sS as BaseLayoutStackedConfigurable,
28712
28715
  Hw as BaseLazy,
@@ -28757,16 +28760,16 @@ export {
28757
28760
  Sd as BaseTimelineItem,
28758
28761
  Uo as BaseTooltip,
28759
28762
  K2 as BaseUniqueCode,
28760
- PS as MyConstants,
28761
- ES as SettingsStorage,
28762
- FS as base64ToBlob,
28763
+ NS as MyConstants,
28764
+ BS as SettingsStorage,
28765
+ PS as base64ToBlob,
28763
28766
  Y0 as blobToBase64,
28764
28767
  mt as config,
28765
- VS as default,
28768
+ jS as default,
28766
28769
  Ci as disableScroll,
28767
28770
  Ei as enableScroll,
28768
28771
  Xa as fileSizeFormat,
28769
- NS as messages,
28772
+ VS as messages,
28770
28773
  U0 as resizeImageFromURI,
28771
28774
  W0 as toHumanList,
28772
28775
  $c as useClickOutside,
@@ -8,9 +8,9 @@ import { RouteLocationRaw } from 'vue-router';
8
8
  */
9
9
  declare const systemAlertStore: import("pinia").Store<"systemAlerts", {
10
10
  count: number;
11
- systemAlerts: import("..").SystemAlert[];
11
+ systemAlerts: import("@/index").SystemAlert[];
12
12
  }, {}, {
13
- push(systemAlert: import("..").SystemAlertOptions): string | number;
13
+ push(systemAlert: import("@/index").SystemAlertOptions): string | number;
14
14
  remove(alertId: number | string): void;
15
15
  clear(): void;
16
16
  }>;
@@ -43,9 +43,6 @@ declare const systemAlerts: import("vue").ComputedRef<{
43
43
  */
44
44
  declare const showMobileMenu: import("vue").Ref<boolean, boolean>;
45
45
  declare function closeMenu(): void;
46
- /**
47
- * Collapse
48
- */
49
46
  declare const collapsed: import("vue").Ref<boolean, boolean>;
50
47
  declare function toggleCollapse(): void;
51
48
  declare const navbarHeight: import("vue").ComputedRef<number>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprintify-ui",
3
- "version": "0.10.45",
3
+ "version": "0.10.47",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "build": "rimraf dist && vue-tsc && vite build",
@@ -204,7 +204,7 @@ import {
204
204
  TransitionChild,
205
205
  TransitionRoot,
206
206
  } from '@headlessui/vue';
207
-
207
+ import { config } from '@/index';
208
208
  import { useSystemAlertStore } from '../stores/systemAlerts';
209
209
  import { Icon as BaseIcon } from '@iconify/vue';
210
210
  import BaseSystemAlert from './BaseSystemAlert.vue';
@@ -265,10 +265,21 @@ function closeMenu() {
265
265
  * Collapse
266
266
  */
267
267
 
268
+ const componentStorageKey = 'base_layout_sidebar.';
269
+ const settingsStorage = config.settingsStorage;
270
+
271
+ const collapsedKey = `${componentStorageKey}.collapsed`;
272
+
268
273
  const collapsed = ref(false);
269
274
 
275
+ onMounted(async () => {
276
+ collapsed.value = (await settingsStorage.get(collapsedKey)) == 1;
277
+ });
278
+
270
279
  function toggleCollapse() {
271
280
  collapsed.value = !collapsed.value;
281
+
282
+ settingsStorage.set(collapsedKey, collapsed.value ? "1" : "0");
272
283
  }
273
284
 
274
285
  const navbarHeight = computed<number>(() => {