@wishbone-media/spark 0.49.1 → 0.51.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import { ref as Ee, reactive as Ct, watch as nt, onMounted as Yt, nextTick as ha, onUnmounted as In, openBlock as E, createElementBlock as P, createElementVNode as T, Fragment as ze, renderList as rt, toDisplayString as we, createTextVNode as Ue, createCommentVNode as ye, withDirectives as en, vModelText as mo, vModelSelect as va, vShow as dr, computed as te, shallowRef as ya, getCurrentScope as ba, onScopeDispose as xa, shallowReadonly as dn, unref as oe, resolveComponent as Ze, normalizeClass as Le, createVNode as se, renderSlot as Qe, createBlock as Oe, resolveDynamicComponent as yt, markRaw as wn, Transition as fr, withCtx as Se, normalizeProps as wa, mergeProps as St, Teleport as pr, TransitionGroup as Cn, inject as io, onUpdated as mr, provide as Sa, resolveDirective as ka, useSlots as Wo, normalizeStyle as Mo, withModifiers as Je, toHandlers as gr, h as as } from "vue";
1
+ import { ref as Ce, reactive as Et, watch as nt, onMounted as Yt, nextTick as ha, onUnmounted as In, openBlock as C, createElementBlock as P, createElementVNode as T, Fragment as ze, renderList as rt, toDisplayString as we, createTextVNode as Ue, createCommentVNode as ye, withDirectives as en, vModelText as mo, vModelSelect as va, vShow as dr, computed as te, shallowRef as ya, getCurrentScope as ba, onScopeDispose as xa, shallowReadonly as dn, unref as oe, resolveComponent as Ze, normalizeClass as Le, createVNode as se, renderSlot as Qe, createBlock as Oe, resolveDynamicComponent as yt, markRaw as wn, Transition as fr, withCtx as Se, normalizeProps as wa, mergeProps as St, Teleport as pr, TransitionGroup as En, inject as io, onUpdated as mr, provide as Sa, resolveDirective as ka, useSlots as Wo, normalizeStyle as Mo, withModifiers as Je, toHandlers as gr, h as as } from "vue";
2
2
  import { icon as Ut, library as hr } from "@fortawesome/fontawesome-svg-core";
3
3
  import { FontAwesomeIcon as Gn } from "@fortawesome/vue-fontawesome";
4
- import { faArrowUpRightFromSquare as Ea, faCopy as Ca, faCircleDot as vr, faEyeDropper as yr, faAnglesLeft as br, faAnglesRight as xr, faStar as Ta, faSpinnerThird as wr, faCircle as _a, faFile as Oo, faCalendar as Sr, faArrowUp as kr, faArrowDown as Er, faPlus as Cr, faCircleCheck as $a, faInbox as La, faCloudArrowUp as Ma, faCloudDownload as Oa, faBolt as Pa, faUndo as Aa, faLock as Ra, faEyeSlash as Ia, faEye as Fa, faSignOut as Da, faXmark as Po, faTrash as Tr, faTimes as ja, faStreetView as Ha, faSortUp as Va, faSortDown as za, faSort as Na, faScaleBalanced as Ba, faSatelliteDish as qa, faLayerPlus as Wa, faLaptopMobile as Ua, faInfoCircle as Za, faGripDotsVertical as _r, faGearComplex as Ga, faFlag as Ya, faFaceSmileWink as Xa, faFaceSmileRelaxed as Ka, faExclamationTriangle as Ja, faEllipsisVertical as Qa, faEllipsis as ei, faEdit as ti, faComments as ni, faCircleXmark as oi, faCircleUser as si, faChevronUp as ri, faChevronRight as $r, faChevronLeft as Lr, faChevronDown as Mr, faCheckCircle as ai, faCheck as Ao, faBullhorn as ii, faBellRing as li, faBarsSort as ci, faArrowRightToLine as ui, faArrowLeftToLine as di } from "@fortawesome/pro-regular-svg-icons";
4
+ import { faArrowUpRightFromSquare as Ca, faCopy as Ea, faCircleDot as vr, faEyeDropper as yr, faAnglesLeft as br, faAnglesRight as xr, faStar as Ta, faSpinnerThird as wr, faCircle as _a, faFile as Oo, faCalendar as Sr, faArrowUp as kr, faArrowDown as Cr, faPlus as Er, faCircleCheck as $a, faInbox as La, faCloudArrowUp as Ma, faCloudDownload as Oa, faBolt as Pa, faUndo as Aa, faLock as Ra, faEyeSlash as Ia, faEye as Fa, faSignOut as Da, faXmark as Po, faTrash as Tr, faTimes as ja, faStreetView as Ha, faSortUp as Va, faSortDown as za, faSort as Na, faScaleBalanced as Ba, faSatelliteDish as qa, faLayerPlus as Wa, faLaptopMobile as Ua, faInfoCircle as Za, faGripDotsVertical as _r, faGearComplex as Ga, faFlag as Ya, faFaceSmileWink as Xa, faFaceSmileRelaxed as Ka, faExclamationTriangle as Ja, faEllipsisVertical as Qa, faEllipsis as ei, faEdit as ti, faComments as ni, faCircleXmark as oi, faCircleUser as si, faChevronUp as ri, faChevronRight as $r, faChevronLeft as Lr, faChevronDown as Mr, faCheckCircle as ai, faCheck as Ao, faBullhorn as ii, faBellRing as li, faBarsSort as ci, faArrowRightToLine as ui, faArrowLeftToLine as di } from "@fortawesome/pro-regular-svg-icons";
5
5
  import { faSortUp as fi, faSortDown as pi, faSort as mi } from "@fortawesome/pro-duotone-svg-icons";
6
6
  import { defineStore as Fn } from "pinia";
7
7
  import { useRoute as jt, useRouter as Tt, onBeforeRouteLeave as gi } from "vue-router";
@@ -12,9 +12,9 @@ import { HotTable as bi } from "@handsontable/vue3";
12
12
  import "handsontable/styles/handsontable.css";
13
13
  import "handsontable/styles/ht-theme-classic.css";
14
14
  import { registerPlugin as Vn, AutoColumnSize as xi, CopyPaste as wi, StretchColumns as Si, NestedHeaders as ki } from "handsontable/plugins";
15
- import { registerAllCellTypes as Ei } from "handsontable/cellTypes";
15
+ import { registerAllCellTypes as Ci } from "handsontable/cellTypes";
16
16
  import { useDebounceFn as Rr, watchDebounced as is } from "@vueuse/core";
17
- import { registerRenderer as Ci, baseRenderer as Ti } from "handsontable/renderers";
17
+ import { registerRenderer as Ei, baseRenderer as Ti } from "handsontable/renderers";
18
18
  import vn from "axios";
19
19
  function _i(e, t) {
20
20
  e.src = t;
@@ -113,9 +113,9 @@ const Hi = { class: "spark-address-input" }, Vi = ["disabled"], zi = ["selected"
113
113
  },
114
114
  emits: ["update:modelValue", "error", "create-new"],
115
115
  setup(e, { emit: t }) {
116
- const n = e, o = t, r = Ee(n.mode), a = Ee(!1), s = Ee(null);
116
+ const n = e, o = t, r = Ce(n.mode), a = Ce(!1), s = Ce(null);
117
117
  let c = null, l = !1;
118
- const u = Ct({
118
+ const u = Et({
119
119
  id: null,
120
120
  street: "",
121
121
  city: "",
@@ -209,8 +209,8 @@ const Hi = { class: "spark-address-input" }, Vi = ["disabled"], zi = ["selected"
209
209
  v === "autocomplete" && (await ha(), f());
210
210
  }), In(() => {
211
211
  l = !0, c && (c.removeEventListener("gmp-select", h), c = null);
212
- }), (v, S) => (E(), P("div", Hi, [
213
- r.value === "select" ? (E(), P("select", {
212
+ }), (v, S) => (C(), P("div", Hi, [
213
+ r.value === "select" ? (C(), P("select", {
214
214
  key: 0,
215
215
  class: "w-full rounded border border-gray-300 px-2 py-1.5 text-sm focus:border-blue-500 focus:ring-1 focus:ring-blue-500 focus:outline-none",
216
216
  disabled: e.disabled,
@@ -221,13 +221,13 @@ const Hi = { class: "spark-address-input" }, Vi = ["disabled"], zi = ["selected"
221
221
  disabled: "",
222
222
  selected: !e.modelValue?.id
223
223
  }, "Select an address...", 8, zi),
224
- (E(!0), P(ze, null, rt(e.existingAddresses, (x) => (E(), P("option", {
224
+ (C(!0), P(ze, null, rt(e.existingAddresses, (x) => (C(), P("option", {
225
225
  key: x.id,
226
226
  value: x.id,
227
227
  selected: x.id === e.modelValue?.id
228
228
  }, we(x.formatted || b(x)), 9, Ni))), 128)),
229
229
  S[7] || (S[7] = T("option", { value: "__create_new__" }, ">>> Create a new address", -1))
230
- ], 40, Vi)) : (E(), P(ze, { key: 1 }, [
230
+ ], 40, Vi)) : (C(), P(ze, { key: 1 }, [
231
231
  T("div", {
232
232
  ref_key: "googleContainerRef",
233
233
  ref: s,
@@ -240,8 +240,8 @@ const Hi = { class: "spark-address-input" }, Vi = ["disabled"], zi = ["selected"
240
240
  disabled: e.disabled,
241
241
  onClick: S[1] || (S[1] = (x) => a.value = !a.value)
242
242
  }, [
243
- (E(), P("svg", Wi, [
244
- a.value ? (E(), P("path", Ui)) : (E(), P("path", Zi))
243
+ (C(), P("svg", Wi, [
244
+ a.value ? (C(), P("path", Ui)) : (C(), P("path", Zi))
245
245
  ])),
246
246
  Ue(" " + we(a.value ? "Hide manual entry" : "Manual entry"), 1)
247
247
  ], 8, qi),
@@ -266,7 +266,7 @@ const Hi = { class: "spark-address-input" }, Vi = ["disabled"], zi = ["selected"
266
266
  ], -1),
267
267
  Ue(" Clear ", -1)
268
268
  ])], 8, Gi),
269
- e.mode === "select" && r.value === "autocomplete" ? (E(), P("button", {
269
+ e.mode === "select" && r.value === "autocomplete" ? (C(), P("button", {
270
270
  key: 0,
271
271
  type: "button",
272
272
  class: "inline-flex items-center gap-1 rounded px-2 py-1 text-xs text-blue-600 hover:bg-blue-50",
@@ -311,7 +311,7 @@ const Hi = { class: "spark-address-input" }, Vi = ["disabled"], zi = ["selected"
311
311
  onChange: p
312
312
  }, [
313
313
  S[9] || (S[9] = T("option", { value: "" }, "State", -1)),
314
- (E(!0), P(ze, null, rt(e.states, (x) => (E(), P("option", {
314
+ (C(!0), P(ze, null, rt(e.states, (x) => (C(), P("option", {
315
315
  key: x,
316
316
  value: x
317
317
  }, we(x), 9, Qi))), 128))
@@ -866,7 +866,7 @@ function Hn(e) {
866
866
  overflowX: n,
867
867
  overflowY: o,
868
868
  display: r
869
- } = Et(e);
869
+ } = Ct(e);
870
870
  return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && r !== "inline" && r !== "contents";
871
871
  }
872
872
  function xl(e) {
@@ -887,7 +887,7 @@ function co(e) {
887
887
  const wl = /transform|translate|scale|rotate|perspective|filter/, Sl = /paint|layout|strict|content/, Xt = (e) => !!e && e !== "none";
888
888
  let ho;
889
889
  function Xo(e) {
890
- const t = kt(e) ? Et(e) : e;
890
+ const t = kt(e) ? Ct(e) : e;
891
891
  return Xt(t.transform) || Xt(t.translate) || Xt(t.scale) || Xt(t.rotate) || Xt(t.perspective) || !Ko() && (Xt(t.backdropFilter) || Xt(t.filter)) || wl.test(t.willChange || "") || Sl.test(t.contain || "");
892
892
  }
893
893
  function kl(e) {
@@ -907,7 +907,7 @@ function Ko() {
907
907
  function kn(e) {
908
908
  return /^(html|body|#document)$/.test(an(e));
909
909
  }
910
- function Et(e) {
910
+ function Ct(e) {
911
911
  return mt(e).getComputedStyle(e);
912
912
  }
913
913
  function uo(e) {
@@ -949,7 +949,7 @@ function Do(e) {
949
949
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
950
950
  }
951
951
  function Hr(e) {
952
- const t = Et(e);
952
+ const t = Ct(e);
953
953
  let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
954
954
  const r = Ht(e), a = r ? e.offsetWidth : n, s = r ? e.offsetHeight : o, c = Qn(n) !== a || Qn(o) !== s;
955
955
  return c && (n = a, o = s), {
@@ -976,15 +976,15 @@ function yn(e) {
976
976
  y: c
977
977
  };
978
978
  }
979
- const El = /* @__PURE__ */ Mt(0);
979
+ const Cl = /* @__PURE__ */ Mt(0);
980
980
  function Vr(e) {
981
981
  const t = mt(e);
982
- return !Ko() || !t.visualViewport ? El : {
982
+ return !Ko() || !t.visualViewport ? Cl : {
983
983
  x: t.visualViewport.offsetLeft,
984
984
  y: t.visualViewport.offsetTop
985
985
  };
986
986
  }
987
- function Cl(e, t, n) {
987
+ function El(e, t, n) {
988
988
  return t === void 0 && (t = !1), !n || t && n !== mt(e) ? !1 : t;
989
989
  }
990
990
  function rn(e, t, n, o) {
@@ -992,13 +992,13 @@ function rn(e, t, n, o) {
992
992
  const r = e.getBoundingClientRect(), a = Jo(e);
993
993
  let s = Mt(1);
994
994
  t && (o ? kt(o) && (s = yn(o)) : s = yn(e));
995
- const c = Cl(a, n, o) ? Vr(a) : Mt(0);
995
+ const c = El(a, n, o) ? Vr(a) : Mt(0);
996
996
  let l = (r.left + c.x) / s.x, u = (r.top + c.y) / s.y, d = r.width / s.x, g = r.height / s.y;
997
997
  if (a) {
998
998
  const i = mt(a), f = o && kt(o) ? mt(o) : o;
999
999
  let h = i, p = Do(h);
1000
1000
  for (; p && o && f !== h; ) {
1001
- const b = yn(p), m = p.getBoundingClientRect(), y = Et(p), v = m.left + (p.clientLeft + parseFloat(y.paddingLeft)) * b.x, S = m.top + (p.clientTop + parseFloat(y.paddingTop)) * b.y;
1001
+ const b = yn(p), m = p.getBoundingClientRect(), y = Ct(p), v = m.left + (p.clientLeft + parseFloat(y.paddingLeft)) * b.x, S = m.top + (p.clientTop + parseFloat(y.paddingTop)) * b.y;
1002
1002
  l *= b.x, u *= b.y, d *= b.x, g *= b.y, l += v, u += S, h = mt(p), p = Do(h);
1003
1003
  }
1004
1004
  }
@@ -1054,7 +1054,7 @@ function $l(e) {
1054
1054
  const t = Ot(e), n = uo(e), o = e.ownerDocument.body, r = nn(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), a = nn(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
1055
1055
  let s = -n.scrollLeft + fo(e);
1056
1056
  const c = -n.scrollTop;
1057
- return Et(o).direction === "rtl" && (s += nn(t.clientWidth, o.clientWidth) - r), {
1057
+ return Ct(o).direction === "rtl" && (s += nn(t.clientWidth, o.clientWidth) - r), {
1058
1058
  width: r,
1059
1059
  height: a,
1060
1060
  x: s,
@@ -1112,17 +1112,17 @@ function ms(e, t, n) {
1112
1112
  }
1113
1113
  function Nr(e, t) {
1114
1114
  const n = Zt(e);
1115
- return n === t || !kt(n) || kn(n) ? !1 : Et(n).position === "fixed" || Nr(n, t);
1115
+ return n === t || !kt(n) || kn(n) ? !1 : Ct(n).position === "fixed" || Nr(n, t);
1116
1116
  }
1117
1117
  function Ol(e, t) {
1118
1118
  const n = t.get(e);
1119
1119
  if (n)
1120
1120
  return n;
1121
1121
  let o = Pn(e, [], !1).filter((c) => kt(c) && an(c) !== "body"), r = null;
1122
- const a = Et(e).position === "fixed";
1122
+ const a = Ct(e).position === "fixed";
1123
1123
  let s = a ? Zt(e) : e;
1124
1124
  for (; kt(s) && !kn(s); ) {
1125
- const c = Et(s), l = Xo(s);
1125
+ const c = Ct(s), l = Xo(s);
1126
1126
  !l && c.position === "fixed" && (r = null), (a ? !l && !r : !l && c.position === "static" && !!r && (r.position === "absolute" || r.position === "fixed") || Hn(s) && !l && Nr(e, s)) ? o = o.filter((d) => d !== s) : r = c, s = Zt(s);
1127
1127
  }
1128
1128
  return t.set(e, o), o;
@@ -1182,10 +1182,10 @@ function Rl(e, t, n) {
1182
1182
  };
1183
1183
  }
1184
1184
  function vo(e) {
1185
- return Et(e).position === "static";
1185
+ return Ct(e).position === "static";
1186
1186
  }
1187
1187
  function gs(e, t) {
1188
- if (!Ht(e) || Et(e).position === "fixed")
1188
+ if (!Ht(e) || Ct(e).position === "fixed")
1189
1189
  return null;
1190
1190
  if (t)
1191
1191
  return t(e);
@@ -1223,7 +1223,7 @@ const Il = async function(e) {
1223
1223
  };
1224
1224
  };
1225
1225
  function Fl(e) {
1226
- return Et(e).direction === "rtl";
1226
+ return Ct(e).direction === "rtl";
1227
1227
  }
1228
1228
  const Dl = {
1229
1229
  convertOffsetParentRelativeRectToViewportRelativeRect: Tl,
@@ -1382,7 +1382,7 @@ function Nl(e, t, n) {
1382
1382
  }), l = te(() => {
1383
1383
  var M;
1384
1384
  return (M = fn(n.transform)) != null ? M : !0;
1385
- }), u = te(() => jo(e.value)), d = te(() => jo(t.value)), g = Ee(0), i = Ee(0), f = Ee(c.value), h = Ee(s.value), p = ya({}), b = Ee(!1), m = te(() => {
1385
+ }), u = te(() => jo(e.value)), d = te(() => jo(t.value)), g = Ce(0), i = Ce(0), f = Ce(c.value), h = Ce(s.value), p = ya({}), b = Ce(!1), m = te(() => {
1386
1386
  const M = {
1387
1387
  position: f.value,
1388
1388
  left: "0",
@@ -1614,8 +1614,8 @@ const Fe = {
1614
1614
  fadSortDown: pi,
1615
1615
  fadSortUp: fi,
1616
1616
  // Additional icons for FormKit genesis replacement
1617
- farPlus: Cr,
1618
- farArrowDown: Er,
1617
+ farPlus: Er,
1618
+ farArrowDown: Cr,
1619
1619
  farArrowUp: kr,
1620
1620
  farCalendar: Sr,
1621
1621
  farFile: Oo,
@@ -1626,16 +1626,16 @@ const Fe = {
1626
1626
  farAnglesLeft: br,
1627
1627
  farEyeDropper: yr,
1628
1628
  farCircleDot: vr,
1629
- farCopy: Ca,
1630
- farArrowUpRightFromSquare: Ea
1629
+ farCopy: Ea,
1630
+ farArrowUpRightFromSquare: Ca
1631
1631
  }, qp = Object.fromEntries(
1632
1632
  Object.entries(Fe).map(([e, t]) => {
1633
1633
  const n = Ut(t);
1634
1634
  return [e, n?.html?.[0] || ""];
1635
1635
  })
1636
1636
  ), Yl = {
1637
- add: Cr,
1638
- arrowDown: Er,
1637
+ add: Er,
1638
+ arrowDown: Cr,
1639
1639
  arrowUp: kr,
1640
1640
  check: Ao,
1641
1641
  close: Po,
@@ -1717,7 +1717,7 @@ const Xl = { class: "flex items-center" }, Kl = { class: "shrink-0 self-start" }
1717
1717
  })[t.type]);
1718
1718
  return (s, c) => {
1719
1719
  const l = Ze("font-awesome-icon");
1720
- return E(), P("div", {
1720
+ return C(), P("div", {
1721
1721
  class: Le(["rounded-md border p-4", n.value])
1722
1722
  }, [
1723
1723
  T("div", Xl, [
@@ -1730,7 +1730,7 @@ const Xl = { class: "flex items-center" }, Kl = { class: "shrink-0 self-start" }
1730
1730
  T("div", Jl, [
1731
1731
  Qe(s.$slots, "default")
1732
1732
  ]),
1733
- e.closeable ? (E(), P("div", Ql, [
1733
+ e.closeable ? (C(), P("div", Ql, [
1734
1734
  T("div", ec, [
1735
1735
  T("button", {
1736
1736
  type: "button",
@@ -1797,7 +1797,7 @@ const Xl = { class: "flex items-center" }, Kl = { class: "shrink-0 self-start" }
1797
1797
  icon: "farCompass"
1798
1798
  }
1799
1799
  ], Qr = Fn("sparkAppSelector", () => {
1800
- const e = Ct({
1800
+ const e = Et({
1801
1801
  apps: [...bo]
1802
1802
  }), t = (a = {}) => {
1803
1803
  if (a.apps && Array.isArray(a.apps)) {
@@ -1843,7 +1843,7 @@ const Xl = { class: "flex items-center" }, Kl = { class: "shrink-0 self-start" }
1843
1843
  }
1844
1844
  };
1845
1845
  }), ea = Fn("sparkApp", () => {
1846
- const e = Ct({
1846
+ const e = Et({
1847
1847
  app: "",
1848
1848
  homeRoute: "dashboard",
1849
1849
  showBrandSelector: !0,
@@ -1889,7 +1889,7 @@ const Xl = { class: "flex items-center" }, Kl = { class: "shrink-0 self-start" }
1889
1889
  };
1890
1890
  return (c, l) => {
1891
1891
  const u = Ze("font-awesome-icon");
1892
- return E(), P("div", tc, [
1892
+ return C(), P("div", tc, [
1893
1893
  T("div", nc, [
1894
1894
  T("div", oc, [
1895
1895
  T("div", sc, [
@@ -1902,7 +1902,7 @@ const Xl = { class: "flex items-center" }, Kl = { class: "shrink-0 self-start" }
1902
1902
  }, null, 8, ["icon"])
1903
1903
  ])
1904
1904
  ]),
1905
- (E(!0), P(ze, null, rt(a.value, (d) => (E(), P("a", {
1905
+ (C(!0), P(ze, null, rt(a.value, (d) => (C(), P("a", {
1906
1906
  key: d.name,
1907
1907
  href: d.href,
1908
1908
  target: "_blank",
@@ -1912,7 +1912,7 @@ const Xl = { class: "flex items-center" }, Kl = { class: "shrink-0 self-start" }
1912
1912
  T("div", ic, [
1913
1913
  T("div", lc, [
1914
1914
  T("div", cc, we(d.name), 1),
1915
- d.current ? (E(), P("span", uc, " Active ")) : ye("", !0)
1915
+ d.current ? (C(), P("span", uc, " Active ")) : ye("", !0)
1916
1916
  ]),
1917
1917
  T("div", dc, we(d.description), 1)
1918
1918
  ]),
@@ -1926,14 +1926,14 @@ const Xl = { class: "flex items-center" }, Kl = { class: "shrink-0 self-start" }
1926
1926
  l[2] || (l[2] = T("div", null, null, -1))
1927
1927
  ]),
1928
1928
  T("div", pc, [
1929
- c.$slots.bottom || e.bottomSlot ? (E(), P("div", mc, [
1929
+ c.$slots.bottom || e.bottomSlot ? (C(), P("div", mc, [
1930
1930
  Qe(c.$slots, "bottom", {}, () => [
1931
- e.bottomSlot ? (E(), Oe(yt(e.bottomSlot), { key: 0 })) : ye("", !0)
1931
+ e.bottomSlot ? (C(), Oe(yt(e.bottomSlot), { key: 0 })) : ye("", !0)
1932
1932
  ])
1933
1933
  ])) : ye("", !0),
1934
- c.$slots.footer || e.footerSlot ? (E(), P("div", gc, [
1934
+ c.$slots.footer || e.footerSlot ? (C(), P("div", gc, [
1935
1935
  Qe(c.$slots, "footer", {}, () => [
1936
- e.footerSlot ? (E(), Oe(yt(e.footerSlot), { key: 0 })) : ye("", !0)
1936
+ e.footerSlot ? (C(), Oe(yt(e.footerSlot), { key: 0 })) : ye("", !0)
1937
1937
  ])
1938
1938
  ])) : ye("", !0)
1939
1939
  ])
@@ -1949,7 +1949,7 @@ const Xl = { class: "flex items-center" }, Kl = { class: "shrink-0 self-start" }
1949
1949
  // sticky by default
1950
1950
  }, bs = ["top-left", "top-right", "center", "bottom-left", "bottom-right"];
1951
1951
  function vc() {
1952
- const e = Ct({
1952
+ const e = Et({
1953
1953
  isVisible: !1,
1954
1954
  type: "info",
1955
1955
  message: null,
@@ -2006,7 +2006,7 @@ function vc() {
2006
2006
  }
2007
2007
  class yc {
2008
2008
  constructor() {
2009
- this.outlets = /* @__PURE__ */ new Map(), this.toastState = Ct({
2009
+ this.outlets = /* @__PURE__ */ new Map(), this.toastState = Et({
2010
2010
  toasts: [],
2011
2011
  maxToasts: 3,
2012
2012
  defaultPosition: "bottom-right",
@@ -2231,7 +2231,7 @@ const tt = new yc(), Yp = {
2231
2231
  }
2232
2232
  },
2233
2233
  setup(e) {
2234
- const t = e, n = jt(), o = te(() => tt.getOutlet(t.name)), r = Ee(0);
2234
+ const t = e, n = jt(), o = te(() => tt.getOutlet(t.name)), r = Ce(0);
2235
2235
  nt(
2236
2236
  () => [o.value.state.message, o.value.state.component, o.value.state.type],
2237
2237
  () => {
@@ -2258,7 +2258,7 @@ const tt = new yc(), Yp = {
2258
2258
  }, c = () => {
2259
2259
  tt.resume(t.name);
2260
2260
  };
2261
- return (l, u) => (E(), Oe(fr, {
2261
+ return (l, u) => (C(), Oe(fr, {
2262
2262
  "enter-active-class": "transition-all duration-300 ease-out",
2263
2263
  "enter-from-class": "opacity-0 -translate-y-2",
2264
2264
  "enter-to-class": "opacity-100 translate-y-0",
@@ -2268,7 +2268,7 @@ const tt = new yc(), Yp = {
2268
2268
  mode: "out-in"
2269
2269
  }, {
2270
2270
  default: Se(() => [
2271
- o.value.state.isVisible ? (E(), Oe(pn, {
2271
+ o.value.state.isVisible ? (C(), Oe(pn, {
2272
2272
  key: r.value,
2273
2273
  type: o.value.state.type,
2274
2274
  closeable: o.value.state.closeable,
@@ -2277,7 +2277,7 @@ const tt = new yc(), Yp = {
2277
2277
  onMouseleave: c
2278
2278
  }, {
2279
2279
  default: Se(() => [
2280
- o.value.state.component ? (E(), Oe(yt(o.value.state.component), wa(St({ key: 0 }, o.value.state.props)), null, 16)) : (E(), P(ze, { key: 1 }, [
2280
+ o.value.state.component ? (C(), Oe(yt(o.value.state.component), wa(St({ key: 0 }, o.value.state.props)), null, 16)) : (C(), P(ze, { key: 1 }, [
2281
2281
  Ue(we(o.value.state.message), 1)
2282
2282
  ], 64))
2283
2283
  ]),
@@ -2301,9 +2301,9 @@ const tt = new yc(), Yp = {
2301
2301
  }, u = (d) => {
2302
2302
  tt.resumeToast(d);
2303
2303
  };
2304
- return (d, g) => (E(), Oe(pr, { to: "body" }, [
2304
+ return (d, g) => (C(), Oe(pr, { to: "body" }, [
2305
2305
  T("div", bc, [
2306
- se(Cn, {
2306
+ se(En, {
2307
2307
  "enter-active-class": "transition-all duration-300 ease-out",
2308
2308
  "enter-from-class": "opacity-0 -translate-x-4",
2309
2309
  "enter-to-class": "opacity-100 translate-x-0",
@@ -2312,7 +2312,7 @@ const tt = new yc(), Yp = {
2312
2312
  "leave-to-class": "opacity-0 -translate-x-4"
2313
2313
  }, {
2314
2314
  default: Se(() => [
2315
- (E(!0), P(ze, null, rt(n.value, (i) => (E(), P("div", {
2315
+ (C(!0), P(ze, null, rt(n.value, (i) => (C(), P("div", {
2316
2316
  key: i.id,
2317
2317
  class: "pointer-events-auto"
2318
2318
  }, [
@@ -2324,10 +2324,10 @@ const tt = new yc(), Yp = {
2324
2324
  onMouseleave: (f) => u(i.id)
2325
2325
  }, {
2326
2326
  default: Se(() => [
2327
- i.component ? (E(), Oe(yt(i.component), St({
2327
+ i.component ? (C(), Oe(yt(i.component), St({
2328
2328
  key: 0,
2329
2329
  ref_for: !0
2330
- }, i.props), null, 16)) : (E(), P(ze, { key: 1 }, [
2330
+ }, i.props), null, 16)) : (C(), P(ze, { key: 1 }, [
2331
2331
  Ue(we(i.message), 1)
2332
2332
  ], 64))
2333
2333
  ]),
@@ -2339,7 +2339,7 @@ const tt = new yc(), Yp = {
2339
2339
  })
2340
2340
  ]),
2341
2341
  T("div", xc, [
2342
- se(Cn, {
2342
+ se(En, {
2343
2343
  "enter-active-class": "transition-all duration-300 ease-out",
2344
2344
  "enter-from-class": "opacity-0 translate-x-4",
2345
2345
  "enter-to-class": "opacity-100 translate-x-0",
@@ -2348,7 +2348,7 @@ const tt = new yc(), Yp = {
2348
2348
  "leave-to-class": "opacity-0 translate-x-4"
2349
2349
  }, {
2350
2350
  default: Se(() => [
2351
- (E(!0), P(ze, null, rt(o.value, (i) => (E(), P("div", {
2351
+ (C(!0), P(ze, null, rt(o.value, (i) => (C(), P("div", {
2352
2352
  key: i.id,
2353
2353
  class: "pointer-events-auto"
2354
2354
  }, [
@@ -2360,10 +2360,10 @@ const tt = new yc(), Yp = {
2360
2360
  onMouseleave: (f) => u(i.id)
2361
2361
  }, {
2362
2362
  default: Se(() => [
2363
- i.component ? (E(), Oe(yt(i.component), St({
2363
+ i.component ? (C(), Oe(yt(i.component), St({
2364
2364
  key: 0,
2365
2365
  ref_for: !0
2366
- }, i.props), null, 16)) : (E(), P(ze, { key: 1 }, [
2366
+ }, i.props), null, 16)) : (C(), P(ze, { key: 1 }, [
2367
2367
  Ue(we(i.message), 1)
2368
2368
  ], 64))
2369
2369
  ]),
@@ -2375,7 +2375,7 @@ const tt = new yc(), Yp = {
2375
2375
  })
2376
2376
  ]),
2377
2377
  T("div", wc, [
2378
- se(Cn, {
2378
+ se(En, {
2379
2379
  "enter-active-class": "transition-all duration-300 ease-out",
2380
2380
  "enter-from-class": "opacity-0 scale-95",
2381
2381
  "enter-to-class": "opacity-100 scale-100",
@@ -2384,7 +2384,7 @@ const tt = new yc(), Yp = {
2384
2384
  "leave-to-class": "opacity-0 scale-95"
2385
2385
  }, {
2386
2386
  default: Se(() => [
2387
- (E(!0), P(ze, null, rt(r.value, (i) => (E(), P("div", {
2387
+ (C(!0), P(ze, null, rt(r.value, (i) => (C(), P("div", {
2388
2388
  key: i.id,
2389
2389
  class: "pointer-events-auto"
2390
2390
  }, [
@@ -2396,10 +2396,10 @@ const tt = new yc(), Yp = {
2396
2396
  onMouseleave: (f) => u(i.id)
2397
2397
  }, {
2398
2398
  default: Se(() => [
2399
- i.component ? (E(), Oe(yt(i.component), St({
2399
+ i.component ? (C(), Oe(yt(i.component), St({
2400
2400
  key: 0,
2401
2401
  ref_for: !0
2402
- }, i.props), null, 16)) : (E(), P(ze, { key: 1 }, [
2402
+ }, i.props), null, 16)) : (C(), P(ze, { key: 1 }, [
2403
2403
  Ue(we(i.message), 1)
2404
2404
  ], 64))
2405
2405
  ]),
@@ -2411,7 +2411,7 @@ const tt = new yc(), Yp = {
2411
2411
  })
2412
2412
  ]),
2413
2413
  T("div", Sc, [
2414
- se(Cn, {
2414
+ se(En, {
2415
2415
  "enter-active-class": "transition-all duration-300 ease-out",
2416
2416
  "enter-from-class": "opacity-0 -translate-x-4",
2417
2417
  "enter-to-class": "opacity-100 translate-x-0",
@@ -2420,7 +2420,7 @@ const tt = new yc(), Yp = {
2420
2420
  "leave-to-class": "opacity-0 -translate-x-4"
2421
2421
  }, {
2422
2422
  default: Se(() => [
2423
- (E(!0), P(ze, null, rt(a.value, (i) => (E(), P("div", {
2423
+ (C(!0), P(ze, null, rt(a.value, (i) => (C(), P("div", {
2424
2424
  key: i.id,
2425
2425
  class: "pointer-events-auto"
2426
2426
  }, [
@@ -2432,10 +2432,10 @@ const tt = new yc(), Yp = {
2432
2432
  onMouseleave: (f) => u(i.id)
2433
2433
  }, {
2434
2434
  default: Se(() => [
2435
- i.component ? (E(), Oe(yt(i.component), St({
2435
+ i.component ? (C(), Oe(yt(i.component), St({
2436
2436
  key: 0,
2437
2437
  ref_for: !0
2438
- }, i.props), null, 16)) : (E(), P(ze, { key: 1 }, [
2438
+ }, i.props), null, 16)) : (C(), P(ze, { key: 1 }, [
2439
2439
  Ue(we(i.message), 1)
2440
2440
  ], 64))
2441
2441
  ]),
@@ -2447,7 +2447,7 @@ const tt = new yc(), Yp = {
2447
2447
  })
2448
2448
  ]),
2449
2449
  T("div", kc, [
2450
- se(Cn, {
2450
+ se(En, {
2451
2451
  "enter-active-class": "transition-all duration-300 ease-out",
2452
2452
  "enter-from-class": "opacity-0 translate-x-4",
2453
2453
  "enter-to-class": "opacity-100 translate-x-0",
@@ -2456,7 +2456,7 @@ const tt = new yc(), Yp = {
2456
2456
  "leave-to-class": "opacity-0 translate-x-4"
2457
2457
  }, {
2458
2458
  default: Se(() => [
2459
- (E(!0), P(ze, null, rt(s.value, (i) => (E(), P("div", {
2459
+ (C(!0), P(ze, null, rt(s.value, (i) => (C(), P("div", {
2460
2460
  key: i.id,
2461
2461
  class: "pointer-events-auto"
2462
2462
  }, [
@@ -2468,10 +2468,10 @@ const tt = new yc(), Yp = {
2468
2468
  onMouseleave: (f) => u(i.id)
2469
2469
  }, {
2470
2470
  default: Se(() => [
2471
- i.component ? (E(), Oe(yt(i.component), St({
2471
+ i.component ? (C(), Oe(yt(i.component), St({
2472
2472
  key: 0,
2473
2473
  ref_for: !0
2474
- }, i.props), null, 16)) : (E(), P(ze, { key: 1 }, [
2474
+ }, i.props), null, 16)) : (C(), P(ze, { key: 1 }, [
2475
2475
  Ue(we(i.message), 1)
2476
2476
  ], 64))
2477
2477
  ]),
@@ -2487,7 +2487,7 @@ const tt = new yc(), Yp = {
2487
2487
  }, na = Fn(
2488
2488
  "brandFilter",
2489
2489
  () => {
2490
- const e = Ct({
2490
+ const e = Et({
2491
2491
  brands: []
2492
2492
  }), t = (a = {}) => {
2493
2493
  if (!a.brands || !Array.isArray(a.brands)) {
@@ -2528,7 +2528,7 @@ const tt = new yc(), Yp = {
2528
2528
  paths: ["state.brands"]
2529
2529
  }
2530
2530
  }
2531
- ), Ec = { class: "flex grow flex-col gap-y-5 overflow-y-auto bg-white rounded-lg" }, Cc = { class: "flex flex-1 flex-col" }, Tc = { class: "divide-y divide-gray-200" }, _c = { class: "flex px-[22px] py-2.5 text-[12px] items-center" }, $c = { class: "ml-auto flex items-center" }, Lc = {
2531
+ ), Cc = { class: "flex grow flex-col gap-y-5 overflow-y-auto bg-white rounded-lg" }, Ec = { class: "flex flex-1 flex-col" }, Tc = { class: "divide-y divide-gray-200" }, _c = { class: "flex px-[22px] py-2.5 text-[12px] items-center" }, $c = { class: "ml-auto flex items-center" }, Lc = {
2532
2532
  key: 0,
2533
2533
  class: "flex px-[22px] py-[15px] text-gray-500 text-sm"
2534
2534
  }, Mc = ["onClick"], Oc = { class: "w-full gap-y-1 flex justify-between" }, Pc = { class: "flex flex-col" }, Ac = { class: "flex items-center" }, Rc = { class: "font-medium text-base text-gray-900" }, Ic = {
@@ -2543,8 +2543,8 @@ const tt = new yc(), Yp = {
2543
2543
  };
2544
2544
  return (a, s) => {
2545
2545
  const c = Ze("font-awesome-icon");
2546
- return E(), P("div", Ec, [
2547
- T("div", Cc, [
2546
+ return C(), P("div", Cc, [
2547
+ T("div", Ec, [
2548
2548
  T("div", Tc, [
2549
2549
  T("div", _c, [
2550
2550
  s[1] || (s[1] = T("div", null, "Filter by Brand", -1)),
@@ -2556,8 +2556,8 @@ const tt = new yc(), Yp = {
2556
2556
  }, null, 8, ["icon"])
2557
2557
  ])
2558
2558
  ]),
2559
- oe(o).allBrands.length === 0 ? (E(), P("div", Lc, " No brands configured ")) : ye("", !0),
2560
- (E(!0), P(ze, null, rt(oe(o).allBrands, (l) => (E(), P("div", {
2559
+ oe(o).allBrands.length === 0 ? (C(), P("div", Lc, " No brands configured ")) : ye("", !0),
2560
+ (C(!0), P(ze, null, rt(oe(o).allBrands, (l) => (C(), P("div", {
2561
2561
  key: l.id,
2562
2562
  class: Le([l.current ? "bg-gray-50" : "hover:bg-gray-50", "flex px-[22px] py-[15px] cursor-pointer"]),
2563
2563
  onClick: (u) => r(l)
@@ -2566,7 +2566,7 @@ const tt = new yc(), Yp = {
2566
2566
  T("div", Pc, [
2567
2567
  T("div", Ac, [
2568
2568
  T("div", Rc, we(l.name), 1),
2569
- l.current ? (E(), P("span", Ic, " Current ")) : ye("", !0)
2569
+ l.current ? (C(), P("span", Ic, " Current ")) : ye("", !0)
2570
2570
  ]),
2571
2571
  T("div", Fc, we(l.current ? "Current Brand" : "Change to"), 1)
2572
2572
  ]),
@@ -2609,7 +2609,7 @@ const tt = new yc(), Yp = {
2609
2609
  },
2610
2610
  emits: ["click"],
2611
2611
  setup(e) {
2612
- const t = e, n = Ee(null), o = io("buttonGroup", null), r = te(() => {
2612
+ const t = e, n = Ce(null), o = io("buttonGroup", null), r = te(() => {
2613
2613
  if (!o?.isInGroup || !n.value) return null;
2614
2614
  const l = o.getButtonIndex(n.value), u = o.getButtonCount();
2615
2615
  return {
@@ -2682,12 +2682,15 @@ const tt = new yc(), Yp = {
2682
2682
  case "info":
2683
2683
  l += " bg-cyan-600 hover:bg-cyan-500 text-white";
2684
2684
  break;
2685
+ case "gray":
2686
+ l += " bg-gray-500 hover:bg-gray-400 text-white";
2687
+ break;
2685
2688
  default:
2686
2689
  l += ` bg-${t.variant}-600 hover:bg-${t.variant}-500 text-white`;
2687
2690
  }
2688
2691
  return l = s(l, t.buttonClass), l;
2689
2692
  });
2690
- return (l, u) => (E(), P("button", {
2693
+ return (l, u) => (C(), P("button", {
2691
2694
  ref_key: "buttonRef",
2692
2695
  ref: n,
2693
2696
  type: "button",
@@ -2701,7 +2704,7 @@ const tt = new yc(), Yp = {
2701
2704
  }, oa = {
2702
2705
  __name: "SparkButtonGroup",
2703
2706
  setup(e) {
2704
- const t = Ee(null), n = Ee(0);
2707
+ const t = Ce(null), n = Ce(0);
2705
2708
  function o() {
2706
2709
  n.value = t.value?.children.length || 0;
2707
2710
  }
@@ -2709,7 +2712,7 @@ const tt = new yc(), Yp = {
2709
2712
  isInGroup: !0,
2710
2713
  getButtonIndex: (s) => t.value ? Array.from(t.value.children).indexOf(s) : -1,
2711
2714
  getButtonCount: () => n.value
2712
- }), (s, c) => (E(), P("div", {
2715
+ }), (s, c) => (C(), P("div", {
2713
2716
  ref_key: "groupRef",
2714
2717
  ref: t,
2715
2718
  class: "inline-flex rounded-md shadow-xs"
@@ -2733,20 +2736,28 @@ const tt = new yc(), Yp = {
2733
2736
  paddedClass: {
2734
2737
  type: String,
2735
2738
  default: "p-5"
2739
+ },
2740
+ // Extra classes for the body wrapper, e.g. 'flex flex-col' so slot content
2741
+ // can use flex-1/min-h-0 for bounded-height (internally scrolling) layouts.
2742
+ // The wrapper is a plain block by default; child flex-item utilities are
2743
+ // inert without this.
2744
+ bodyClass: {
2745
+ type: String,
2746
+ default: ""
2736
2747
  }
2737
2748
  },
2738
2749
  setup(e) {
2739
2750
  const t = e;
2740
- return (n, o) => (E(), P("div", zc, [
2741
- n.$slots.header ? (E(), P("div", Nc, [
2751
+ return (n, o) => (C(), P("div", zc, [
2752
+ n.$slots.header ? (C(), P("div", Nc, [
2742
2753
  Qe(n.$slots, "header")
2743
2754
  ])) : ye("", !0),
2744
2755
  T("div", {
2745
- class: Le([t.padded ? t.paddedClass : "", "min-h-0 flex-1"])
2756
+ class: Le([t.padded ? t.paddedClass : "", "min-h-0 flex-1", t.bodyClass])
2746
2757
  }, [
2747
2758
  Qe(n.$slots, "default")
2748
2759
  ], 2),
2749
- n.$slots.footer ? (E(), P("div", Bc, [
2760
+ n.$slots.footer ? (C(), P("div", Bc, [
2750
2761
  Qe(n.$slots, "footer")
2751
2762
  ])) : ye("", !0)
2752
2763
  ]));
@@ -2856,7 +2867,7 @@ const tt = new yc(), Yp = {
2856
2867
  }
2857
2868
  return (p, b) => {
2858
2869
  const m = Ze("font-awesome-icon"), y = ka("spark-tooltip");
2859
- return en((E(), Oe(yt(g.value ? "a" : "span"), {
2870
+ return en((C(), Oe(yt(g.value ? "a" : "span"), {
2860
2871
  href: i.value || void 0,
2861
2872
  target: g.value && e.openNew ? "_blank" : void 0,
2862
2873
  rel: g.value && e.openNew ? "noopener noreferrer" : void 0,
@@ -2864,18 +2875,18 @@ const tt = new yc(), Yp = {
2864
2875
  onClick: h
2865
2876
  }, {
2866
2877
  default: Se(() => [
2867
- e.icon ? (E(), Oe(m, {
2878
+ e.icon ? (C(), Oe(m, {
2868
2879
  key: 0,
2869
2880
  icon: e.icon
2870
2881
  }, null, 8, ["icon"])) : ye("", !0),
2871
2882
  Qe(p.$slots, "default", {}, () => [
2872
2883
  Ue(we(e.label), 1)
2873
2884
  ]),
2874
- e.copyToClipboard ? (E(), Oe(m, {
2885
+ e.copyToClipboard ? (C(), Oe(m, {
2875
2886
  key: 1,
2876
2887
  icon: oe(Fe).farCopy,
2877
2888
  class: "opacity-60"
2878
- }, null, 8, ["icon"])) : u.value && e.openNew ? (E(), Oe(m, {
2889
+ }, null, 8, ["icon"])) : u.value && e.openNew ? (C(), Oe(m, {
2879
2890
  key: 2,
2880
2891
  icon: oe(Fe).farArrowUpRightFromSquare,
2881
2892
  class: "opacity-60 text-[0.6em]"
@@ -3064,9 +3075,9 @@ function Gt() {
3064
3075
  ge = Pe(-1 * Math.abs(d), ge, Math.abs(d));
3065
3076
  const ie = ge * c * u;
3066
3077
  ge += ((be > W ? -1 : 1) * (Math.abs(W - be) * l) - ie) / c * ne, be += ge * ne;
3067
- const Ce = b[me] > W ? be < W : be > W;
3078
+ const Ee = b[me] > W ? be < W : be > W;
3068
3079
  let De = Math.abs(ge) < g && Math.abs(W - be) <= i;
3069
- f && Ce && (De = !0), De ? (be = W, ge = 0) : he++, b[me] = be, y[me] = ge;
3080
+ f && Ee && (De = !0), De ? (be = W, ge = 0) : he++, b[me] = be, y[me] = ge;
3070
3081
  }
3071
3082
  q = !he;
3072
3083
  }
@@ -3122,28 +3133,28 @@ function Bn(e) {
3122
3133
  const t = e[0], n = e[1] || e[0];
3123
3134
  return t && n ? -1 * Math.sqrt((n.x - t.x) * (n.x - t.x) + (n.y - t.y) * (n.y - t.y)) : 0;
3124
3135
  }
3125
- const Es = (e) => {
3136
+ const Cs = (e) => {
3126
3137
  e.cancelable && e.preventDefault();
3127
3138
  }, zt = { passive: !1 }, Wc = { panThreshold: 5, swipeThreshold: 3, ignore: ["textarea", "input", "select", "[contenteditable]", "[data-selectable]", "[data-draggable]"] };
3128
3139
  let qn = !1, _n = !0;
3129
- const En = (e, t) => {
3140
+ const Cn = (e, t) => {
3130
3141
  let n, o, r, a, s, c = Object.assign(Object.assign({}, Wc), t), l = [], u = [], d = [], g = !1, i = !1, f = !1, h = !1, p = 0, b = 0, m = 0, y = 0, v = 0, S = 0, x = 0, _ = 0, M = 0, ee = [];
3131
3142
  const ue = /* @__PURE__ */ new Map();
3132
3143
  function J(W) {
3133
- const be = Bn(u), ge = Bn(d), ie = be && ge ? be / ge : 0, Ce = Math.abs(x) > Math.abs(_) ? x : _, De = { srcEvent: n, isPanRecognized: g, isSwipeRecognized: i, firstTouch: l, previousTouch: d, currentTouch: u, deltaX: m, deltaY: y, offsetX: v, offsetY: S, velocityX: x, velocityY: _, velocity: Ce, angle: M, axis: r, scale: ie, center: o };
3144
+ const be = Bn(u), ge = Bn(d), ie = be && ge ? be / ge : 0, Ee = Math.abs(x) > Math.abs(_) ? x : _, De = { srcEvent: n, isPanRecognized: g, isSwipeRecognized: i, firstTouch: l, previousTouch: d, currentTouch: u, deltaX: m, deltaY: y, offsetX: v, offsetY: S, velocityX: x, velocityY: _, velocity: Ee, angle: M, axis: r, scale: ie, center: o };
3134
3145
  for (const at of ue.get(W) || []) at(De);
3135
3146
  }
3136
3147
  function _e(W) {
3137
- const be = W.target, ge = W.composedPath()[0], ie = c.ignore.join(","), Ce = (De) => De && De instanceof HTMLElement && (De.matches(ie) || De.closest(ie));
3138
- if (Ce(be) || Ce(ge)) return !1;
3148
+ const be = W.target, ge = W.composedPath()[0], ie = c.ignore.join(","), Ee = (De) => De && De instanceof HTMLElement && (De.matches(ie) || De.closest(ie));
3149
+ if (Ee(be) || Ee(ge)) return !1;
3139
3150
  }
3140
3151
  function ae(W) {
3141
3152
  const be = Date.now();
3142
3153
  if (ee = ee.filter((ge) => !ge.ts || ge.ts > be - 100), W && ee.push(W), x = 0, _ = 0, ee.length > 3) {
3143
3154
  const ge = ee[0], ie = ee[ee.length - 1];
3144
3155
  if (ge && ie) {
3145
- const Ce = ie.x - ge.x, De = ie.y - ge.y, at = ge.ts && ie.ts ? ie.ts - ge.ts : 0;
3146
- at > 0 && (x = Math.abs(Ce) > 3 ? Ce / (at / 30) : 0, _ = Math.abs(De) > 3 ? De / (at / 30) : 0);
3156
+ const Ee = ie.x - ge.x, De = ie.y - ge.y, at = ge.ts && ie.ts ? ie.ts - ge.ts : 0;
3157
+ at > 0 && (x = Math.abs(Ee) > 3 ? Ee / (at / 30) : 0, _ = Math.abs(De) > 3 ? De / (at / 30) : 0);
3147
3158
  }
3148
3159
  }
3149
3160
  }
@@ -3154,7 +3165,7 @@ const En = (e, t) => {
3154
3165
  } else qn = !0;
3155
3166
  if (typeof MouseEvent < "u" && W instanceof MouseEvent) {
3156
3167
  if (!W.buttons || W.button !== 0) return;
3157
- Es(W);
3168
+ Cs(W);
3158
3169
  }
3159
3170
  W instanceof MouseEvent && (window.addEventListener("mousemove", H), window.addEventListener("mouseup", q)), window.addEventListener("blur", I), n = W, u = ks(W), l = [...u], d = [], b = u.length, o = Bt(u), b === 1 && (g = !1, i = !1, f = !1), b && ae(Bt(u));
3160
3171
  const be = Date.now(), ge = be - (p || be);
@@ -3166,12 +3177,12 @@ const En = (e, t) => {
3166
3177
  n = W, d = [...u], u = Ss(W);
3167
3178
  const ge = Bt(d), ie = Bt(Ss(W));
3168
3179
  if (ae(ie), b = u.length, o = ie, d.length === u.length ? (m = ie.x - ge.x, y = ie.y - ge.y) : (m = 0, y = 0), l.length) {
3169
- const Ce = Bt(l);
3170
- v = ie.x - Ce.x, S = ie.y - Ce.y;
3180
+ const Ee = Bt(l);
3181
+ v = ie.x - Ee.x, S = ie.y - Ee.y;
3171
3182
  }
3172
3183
  if (u.length > 1) {
3173
- const Ce = Bn(u), De = Bn(d);
3174
- Math.abs(Ce - De) >= 0.1 && (f = !0, J("pinch"));
3184
+ const Ee = Bn(u), De = Bn(d);
3185
+ Math.abs(Ee - De) >= 0.1 && (f = !0, J("pinch"));
3175
3186
  }
3176
3187
  g || (g = Math.abs(v) >= c.panThreshold || Math.abs(S) >= c.panThreshold, g && (_n = !1, clearTimeout(s), s = void 0, M = Math.abs(180 * Math.atan2(S, v) / Math.PI), r = M > 45 && M < 135 ? "y" : "x", l = [...u], d = [...u], v = 0, S = 0, m = 0, y = 0, (be = window.getSelection()) === null || be === void 0 || be.removeAllRanges(), J("panstart"))), g && (m || y) && J("pan"), J("move");
3177
3188
  }
@@ -3196,7 +3207,7 @@ const En = (e, t) => {
3196
3207
  }
3197
3208
  function he(W) {
3198
3209
  const be = W.target;
3199
- qn = !1, be && !W.defaultPrevented && (_n || (Es(W), W.stopPropagation()));
3210
+ qn = !1, be && !W.defaultPrevented && (_n || (Cs(W), W.stopPropagation()));
3200
3211
  }
3201
3212
  const me = { init: function() {
3202
3213
  return e && (e.addEventListener("click", he, zt), e.addEventListener("mousedown", j, zt), e.addEventListener("touchstart", j, zt), e.addEventListener("touchmove", H, zt), e.addEventListener("touchend", q), e.addEventListener("touchcancel", q)), me;
@@ -3211,17 +3222,17 @@ const En = (e, t) => {
3211
3222
  } };
3212
3223
  return me;
3213
3224
  };
3214
- En.isClickAllowed = () => _n;
3225
+ Cn.isClickAllowed = () => _n;
3215
3226
  const ts = { IMAGE_ERROR: "This image couldn't be loaded. <br /> Please try again later.", MOVE_UP: "Move up", MOVE_DOWN: "Move down", MOVE_LEFT: "Move left", MOVE_RIGHT: "Move right", ZOOM_IN: "Zoom in", ZOOM_OUT: "Zoom out", TOGGLE_FULL: "Toggle zoom level", TOGGLE_1TO1: "Toggle zoom level", ITERATE_ZOOM: "Toggle zoom level", ROTATE_CCW: "Rotate counterclockwise", ROTATE_CW: "Rotate clockwise", FLIP_X: "Flip horizontally", FLIP_Y: "Flip vertically", RESET: "Reset", TOGGLE_FS: "Toggle fullscreen" };
3216
3227
  const Kt = (e) => {
3217
3228
  e.cancelable && e.preventDefault();
3218
3229
  }, ct = (e, t = 1e4) => (e = parseFloat(e + "") || 0, Math.round((e + Number.EPSILON) * t) / t), $t = (e) => e instanceof HTMLImageElement;
3219
- var re, Cs;
3230
+ var re, Es;
3220
3231
  (function(e) {
3221
3232
  e.Reset = "reset", e.Zoom = "zoom", e.ZoomIn = "zoomIn", e.ZoomOut = "zoomOut", e.ZoomTo = "zoomTo", e.ToggleCover = "toggleCover", e.ToggleFull = "toggleFull", e.ToggleMax = "toggleMax", e.IterateZoom = "iterateZoom", e.Pan = "pan", e.Swipe = "swipe", e.Move = "move", e.MoveLeft = "moveLeft", e.MoveRight = "moveRight", e.MoveUp = "moveUp", e.MoveDown = "moveDown", e.RotateCCW = "rotateCCW", e.RotateCW = "rotateCW", e.FlipX = "flipX", e.FlipY = "flipY", e.ToggleFS = "toggleFS";
3222
3233
  })(re || (re = {})), (function(e) {
3223
3234
  e.Cover = "cover", e.Full = "full", e.Max = "max";
3224
- })(Cs || (Cs = {}));
3235
+ })(Es || (Es = {}));
3225
3236
  const wt = { x: 0, y: 0, scale: 1, angle: 0, flipX: 1, flipY: 1 }, Ho = { bounds: !0, classes: { container: "f-panzoom", wrapper: "f-panzoom__wrapper", content: "f-panzoom__content", viewport: "f-panzoom__viewport" }, clickAction: re.ToggleFull, dblClickAction: !1, gestures: {}, height: "auto", l10n: ts, maxScale: 4, minScale: 1, mouseMoveFactor: 1, panMode: "drag", protected: !1, singleClickAction: !1, spinnerTpl: '<div class="f-spinner"></div>', wheelAction: re.Zoom, width: "auto" };
3226
3237
  let Wn, Ts = 0, _s = 0, Un = 0;
3227
3238
  const Vo = (e, t = {}, n = {}) => {
@@ -3247,64 +3258,64 @@ const Vo = (e, t = {}, n = {}) => {
3247
3258
  if (on($)) return;
3248
3259
  const N = Date.now(), D = [-w.deltaX || 0, -w.deltaY || 0, -w.detail || 0].reduce(function(Q, de) {
3249
3260
  return Math.abs(de) > Math.abs(Q) ? de : Q;
3250
- }), C = Pe(-1, D, 1);
3251
- S("wheel", w, C);
3261
+ }), E = Pe(-1, D, 1);
3262
+ S("wheel", w, E);
3252
3263
  const O = m("wheelAction");
3253
3264
  if (!O || w.defaultPrevented) return;
3254
3265
  const G = p.scale;
3255
- let K = G * (C > 0 ? 1.5 : 0.5);
3266
+ let K = G * (E > 0 ? 1.5 : 0.5);
3256
3267
  if (O === re.Zoom) {
3257
3268
  const Q = Math.abs(w.deltaY) < 100 && Math.abs(w.deltaX) < 100;
3258
3269
  if (N - _s < (Q ? 200 : 45)) return void Kt(w);
3259
3270
  _s = N;
3260
3271
  const de = ne(), ve = W();
3261
- if (ct(K) < ct(de) && ct(G) <= ct(de) ? (Un += Math.abs(C), K = de) : ct(K) > ct(ve) && ct(G) >= ct(ve) ? (Un += Math.abs(C), K = ve) : (Un = 0, K = Pe(de, K, ve)), Un > 7) return;
3272
+ if (ct(K) < ct(de) && ct(G) <= ct(de) ? (Un += Math.abs(E), K = de) : ct(K) > ct(ve) && ct(G) >= ct(ve) ? (Un += Math.abs(E), K = ve) : (Un = 0, K = Pe(de, K, ve)), Un > 7) return;
3262
3273
  }
3263
3274
  switch (Kt(w), O) {
3264
3275
  case re.Pan:
3265
- Ce(O, { srcEvent: w, deltaX: 2 * -w.deltaX, deltaY: 2 * -w.deltaY });
3276
+ Ee(O, { srcEvent: w, deltaX: 2 * -w.deltaX, deltaY: 2 * -w.deltaY });
3266
3277
  break;
3267
3278
  case re.Zoom:
3268
- Ce(re.ZoomTo, { srcEvent: w, scale: K, center: { x: w.clientX, y: w.clientY } });
3279
+ Ee(re.ZoomTo, { srcEvent: w, scale: K, center: { x: w.clientX, y: w.clientY } });
3269
3280
  break;
3270
3281
  default:
3271
- Ce(O, { srcEvent: w });
3282
+ Ee(O, { srcEvent: w });
3272
3283
  }
3273
3284
  }
3274
3285
  function _(w) {
3275
3286
  var $, N;
3276
3287
  const D = w.composedPath()[0];
3277
- if (!En.isClickAllowed() || !mn(D) || w.defaultPrevented || !e?.contains(D) || D.hasAttribute("disabled") || D.hasAttribute("aria-disabled") || D.hasAttribute("data-carousel-go-prev") || D.hasAttribute("data-carousel-go-next")) return;
3278
- const C = D.closest("[data-panzoom-action]"), O = ($ = C?.dataset) === null || $ === void 0 ? void 0 : $.panzoomAction, G = ((N = C?.dataset) === null || N === void 0 ? void 0 : N.panzoomValue) || "";
3288
+ if (!Cn.isClickAllowed() || !mn(D) || w.defaultPrevented || !e?.contains(D) || D.hasAttribute("disabled") || D.hasAttribute("aria-disabled") || D.hasAttribute("data-carousel-go-prev") || D.hasAttribute("data-carousel-go-next")) return;
3289
+ const E = D.closest("[data-panzoom-action]"), O = ($ = E?.dataset) === null || $ === void 0 ? void 0 : $.panzoomAction, G = ((N = E?.dataset) === null || N === void 0 ? void 0 : N.panzoomValue) || "";
3279
3290
  if (O) {
3280
3291
  switch (Kt(w), O) {
3281
3292
  case re.ZoomTo:
3282
3293
  case re.ZoomIn:
3283
3294
  case re.ZoomOut:
3284
- Ce(O, { scale: parseFloat(G || "") || void 0 });
3295
+ Ee(O, { scale: parseFloat(G || "") || void 0 });
3285
3296
  break;
3286
3297
  case re.MoveLeft:
3287
3298
  case re.MoveRight:
3288
- Ce(O, { deltaX: parseFloat(G || "") || void 0 });
3299
+ Ee(O, { deltaX: parseFloat(G || "") || void 0 });
3289
3300
  break;
3290
3301
  case re.MoveUp:
3291
3302
  case re.MoveDown:
3292
- Ce(O, { deltaY: parseFloat(G || "") || void 0 });
3303
+ Ee(O, { deltaY: parseFloat(G || "") || void 0 });
3293
3304
  break;
3294
3305
  case re.ToggleFS:
3295
3306
  le();
3296
3307
  break;
3297
3308
  default:
3298
- Ce(O);
3309
+ Ee(O);
3299
3310
  }
3300
3311
  return;
3301
3312
  }
3302
3313
  if (!o?.contains(D)) return;
3303
3314
  const K = { srcEvent: w };
3304
- if (Ce(m("clickAction"), K), m("dblClickAction")) {
3315
+ if (Ee(m("clickAction"), K), m("dblClickAction")) {
3305
3316
  const Q = Date.now(), de = Q - (Ts || Q);
3306
- Ts = Q, de > 0 && de <= 250 ? (Wn && (clearTimeout(Wn), Wn = void 0), Ce(m("dblClickAction"), K)) : Wn = setTimeout(() => {
3307
- Ce(m("singleClickAction"), K);
3317
+ Ts = Q, de > 0 && de <= 250 ? (Wn && (clearTimeout(Wn), Wn = void 0), Ee(m("dblClickAction"), K)) : Wn = setTimeout(() => {
3318
+ Ee(m("singleClickAction"), K);
3308
3319
  }, 250);
3309
3320
  }
3310
3321
  }
@@ -3313,7 +3324,7 @@ const Vo = (e, t = {}, n = {}) => {
3313
3324
  const $ = q(p.scale);
3314
3325
  if (!$) return;
3315
3326
  const { x: N, y: D } = $;
3316
- Ce(re.Pan, { deltaX: N - p.x, deltaY: D - p.y });
3327
+ Ee(re.Pan, { deltaX: N - p.x, deltaY: D - p.y });
3317
3328
  }
3318
3329
  function ee() {
3319
3330
  var w;
@@ -3324,39 +3335,39 @@ const Vo = (e, t = {}, n = {}) => {
3324
3335
  if (ee(), $t(r) && (!r.complete || !r.naturalWidth)) return g = 2, o?.classList.add("has-error"), void S("error");
3325
3336
  S("loaded");
3326
3337
  const { width: w, height: $ } = ae();
3327
- $t(r) && (r.setAttribute("width", w + ""), r.setAttribute("height", $ + "")), o && (et(o, "has-error"), $t(r) && (o.setAttribute("width", w + ""), o.setAttribute("height", $ + ""), o.style.aspectRatio = `${w / $ || ""}`)), l = Gt().on("start", (D, C) => {
3328
- C.angle !== void 0 && (C.angle = 90 * Math.round(C.angle / 90)), C.flipX !== void 0 && (C.flipX = C.flipX > 0 ? 1 : -1), C.flipY !== void 0 && (C.flipY = C.flipY > 0 ? 1 : -1), p = Object.assign(Object.assign({}, wt), C), ie(), S("animationStart");
3338
+ $t(r) && (r.setAttribute("width", w + ""), r.setAttribute("height", $ + "")), o && (et(o, "has-error"), $t(r) && (o.setAttribute("width", w + ""), o.setAttribute("height", $ + ""), o.style.aspectRatio = `${w / $ || ""}`)), l = Gt().on("start", (D, E) => {
3339
+ E.angle !== void 0 && (E.angle = 90 * Math.round(E.angle / 90)), E.flipX !== void 0 && (E.flipX = E.flipX > 0 ? 1 : -1), E.flipY !== void 0 && (E.flipY = E.flipY > 0 ? 1 : -1), p = Object.assign(Object.assign({}, wt), E), ie(), S("animationStart");
3329
3340
  }).on("pause", (D) => {
3330
3341
  p = Object.assign(Object.assign({}, wt), D);
3331
3342
  }).on("step", (D) => {
3332
3343
  if (!y()) return void (l == null || l.end());
3333
3344
  if (h = Object.assign(Object.assign({}, wt), D), H() || !m("bounds") || Ne() || p.scale > h.scale || p.scale < he()) return void De();
3334
- const C = be(p.scale);
3345
+ const E = be(p.scale);
3335
3346
  let O = !1, G = !1, K = !1, Q = !1;
3336
- h.x < C.x[0] && (O = !0), h.x > C.x[1] && (G = !0), h.y < C.y[0] && (Q = !0), h.y > C.y[1] && (K = !0);
3347
+ h.x < E.x[0] && (O = !0), h.x > E.x[1] && (G = !0), h.y < E.y[0] && (Q = !0), h.y > E.y[1] && (K = !0);
3337
3348
  let de = !1, ve = !1, Te = !1, Me = !1;
3338
- p.x < C.x[0] && (de = !0), p.x > C.x[1] && (ve = !0), p.y < C.y[0] && (Me = !0), p.y > C.y[1] && (Te = !0);
3349
+ p.x < E.x[0] && (de = !0), p.x > E.x[1] && (ve = !0), p.y < E.y[0] && (Me = !0), p.y > E.y[1] && (Te = !0);
3339
3350
  let $e = !1;
3340
- (G && ve || O && de) && (p.x = Pe(C.x[0], p.x, C.x[1]), $e = !0), (K && Te || Q && Me) && (p.y = Pe(C.y[0], p.y, C.y[1]), $e = !0), $e && l && l.spring({ tension: 94, friction: 17, maxSpeed: 555 * p.scale, restDelta: 0.1, restSpeed: 0.1, velocity: l.getCurrentVelocities() }).from(h).to(p).start(), De();
3351
+ (G && ve || O && de) && (p.x = Pe(E.x[0], p.x, E.x[1]), $e = !0), (K && Te || Q && Me) && (p.y = Pe(E.y[0], p.y, E.y[1]), $e = !0), $e && l && l.spring({ tension: 94, friction: 17, maxSpeed: 555 * p.scale, restDelta: 0.1, restSpeed: 0.1, velocity: l.getCurrentVelocities() }).from(h).to(p).start(), De();
3341
3352
  }).on("end", () => {
3342
3353
  c?.isPointerDown() || ge(), l?.isRunning() || (ie(), S("animationEnd"));
3343
3354
  }), (function() {
3344
3355
  const D = m("gestures");
3345
3356
  if (!D || !s || !r) return;
3346
- let C = !1;
3347
- c = En(s, D).on("start", (O) => {
3357
+ let E = !1;
3358
+ c = Cn(s, D).on("start", (O) => {
3348
3359
  if (!m("gestures") || !l || !y() || H()) return;
3349
3360
  const G = O.srcEvent;
3350
- (h.scale > 1 || Ye(h.angle) || O.currentTouch.length > 1) && (G?.stopPropagation(), l.pause(), C = !0), O.currentTouch.length === 1 && S("touchStart");
3361
+ (h.scale > 1 || Ye(h.angle) || O.currentTouch.length > 1) && (G?.stopPropagation(), l.pause(), E = !0), O.currentTouch.length === 1 && S("touchStart");
3351
3362
  }).on("move", (O) => {
3352
3363
  var G;
3353
- C && (p.scale !== 1 || Ye(p.angle) || O.currentTouch.length > 1) && (Kt(O.srcEvent), (G = O.srcEvent) === null || G === void 0 || G.stopPropagation());
3364
+ E && (p.scale !== 1 || Ye(p.angle) || O.currentTouch.length > 1) && (Kt(O.srcEvent), (G = O.srcEvent) === null || G === void 0 || G.stopPropagation());
3354
3365
  }).on("pan", (O) => {
3355
- if (!C) return;
3366
+ if (!E) return;
3356
3367
  const G = O.srcEvent;
3357
- (p.scale !== 1 || Ye(p.angle) || O.currentTouch.length > 1) && (Kt(G), Ce(re.Pan, O));
3368
+ (p.scale !== 1 || Ye(p.angle) || O.currentTouch.length > 1) && (Kt(G), Ee(re.Pan, O));
3358
3369
  }).on("swipe", (O) => {
3359
- C && (p.scale > 1 || Ye(p.angle)) && Ce(re.Swipe, O);
3370
+ E && (p.scale > 1 || Ye(p.angle)) && Ee(re.Swipe, O);
3360
3371
  }).on("tap", (O) => {
3361
3372
  S("click", O);
3362
3373
  }).on("singleTap", (O) => {
@@ -3364,9 +3375,9 @@ const Vo = (e, t = {}, n = {}) => {
3364
3375
  }).on("doubleTap", (O) => {
3365
3376
  S("dblClick", O);
3366
3377
  }).on("pinch", (O) => {
3367
- C && (O.scale > he() ? Ce(re.ZoomIn, O) : O.scale < he() ? Ce(re.ZoomOut, O) : Ce(re.Pan, O));
3378
+ E && (O.scale > he() ? Ee(re.ZoomIn, O) : O.scale < he() ? Ee(re.ZoomOut, O) : Ee(re.Pan, O));
3368
3379
  }).on("end", (O) => {
3369
- C && (O.currentTouch.length ? (O.srcEvent.stopPropagation(), Kt(O.srcEvent), l?.end()) : (C = !1, ie(), ge(), S("touchEnd")));
3380
+ E && (O.currentTouch.length ? (O.srcEvent.stopPropagation(), Kt(O.srcEvent), l?.end()) : (E = !1, ie(), ge(), S("touchEnd")));
3370
3381
  }).init();
3371
3382
  })(), s && (s.addEventListener("wheel", x, { passive: !1 }), b.push(() => {
3372
3383
  s?.removeEventListener("wheel", x, { passive: !1 });
@@ -3382,9 +3393,9 @@ const Vo = (e, t = {}, n = {}) => {
3382
3393
  const w = Object.assign({}, m("startPos") || {});
3383
3394
  let $ = w.scale, N = 1;
3384
3395
  N = typeof $ == "string" ? I($) : typeof $ == "number" ? $ : he();
3385
- const D = Object.assign(Object.assign(Object.assign({}, wt), w), { scale: N }), C = H() ? q(N) : void 0;
3386
- if (C) {
3387
- const { x: O, y: G } = C;
3396
+ const D = Object.assign(Object.assign(Object.assign({}, wt), w), { scale: N }), E = H() ? q(N) : void 0;
3397
+ if (E) {
3398
+ const { x: O, y: G } = E;
3388
3399
  D.x = O, D.y = G;
3389
3400
  }
3390
3401
  return D;
@@ -3419,18 +3430,18 @@ const Vo = (e, t = {}, n = {}) => {
3419
3430
  function q(w) {
3420
3431
  const $ = d || m("event"), N = o?.getBoundingClientRect();
3421
3432
  if (!$ || !N || w <= 1) return { x: 0, y: 0 };
3422
- const D = ($.clientX || 0) - N.left, C = ($.clientY || 0) - N.top, { width: O, height: G } = j(), K = be(w);
3433
+ const D = ($.clientX || 0) - N.left, E = ($.clientY || 0) - N.top, { width: O, height: G } = j(), K = be(w);
3423
3434
  if (w > 1) {
3424
3435
  const Me = m("mouseMoveFactor");
3425
3436
  Me > 1 && (w *= Me);
3426
3437
  }
3427
- let Q = O * w, de = G * w, ve = 0.5 * (Q - O) - D / O * 100 / 100 * (Q - O), Te = 0.5 * (de - G) - C / G * 100 / 100 * (de - G);
3438
+ let Q = O * w, de = G * w, ve = 0.5 * (Q - O) - D / O * 100 / 100 * (Q - O), Te = 0.5 * (de - G) - E / G * 100 / 100 * (de - G);
3428
3439
  return ve = Pe(K.x[0], ve, K.x[1]), Te = Pe(K.y[0], Te, K.y[1]), { x: ve, y: Te };
3429
3440
  }
3430
3441
  function I(w) {
3431
3442
  if (!w) return p.scale;
3432
3443
  if (!e) return 1;
3433
- const $ = e.getBoundingClientRect(), N = _e(), { width: D, height: C } = ae(), O = (ve) => {
3444
+ const $ = e.getBoundingClientRect(), N = _e(), { width: D, height: E } = ae(), O = (ve) => {
3434
3445
  if (typeof ve == "number") return ve;
3435
3446
  switch (ve) {
3436
3447
  case "min":
@@ -3440,7 +3451,7 @@ const Vo = (e, t = {}, n = {}) => {
3440
3451
  return Math.max($.height / N.height, $.width / N.width) || 1;
3441
3452
  case "full":
3442
3453
  case "max": {
3443
- const Te = Ye(p.angle) ? C : D;
3454
+ const Te = Ye(p.angle) ? E : D;
3444
3455
  return Te && N.width ? Te / N.width : 1;
3445
3456
  }
3446
3457
  }
@@ -3473,14 +3484,14 @@ const Vo = (e, t = {}, n = {}) => {
3473
3484
  function be(w) {
3474
3485
  const $ = { x: [0, 0], y: [0, 0] }, N = e?.getBoundingClientRect();
3475
3486
  if (!N) return $;
3476
- const D = _e(), C = N.width, O = N.height;
3487
+ const D = _e(), E = N.width, O = N.height;
3477
3488
  let G = D.width, K = D.height, Q = w = w === void 0 ? p.scale : w, de = w;
3478
3489
  if (H() && w > 1) {
3479
3490
  const ve = m("mouseMoveFactor");
3480
- ve > 1 && (G * w > C + 0.01 && (Q *= ve), K * w > O + 0.01 && (de *= ve));
3491
+ ve > 1 && (G * w > E + 0.01 && (Q *= ve), K * w > O + 0.01 && (de *= ve));
3481
3492
  }
3482
- if (G *= Q, K *= de, G > C) {
3483
- $.x[0] = 0.5 * (C - G), $.x[1] = 0.5 * (G - C);
3493
+ if (G *= Q, K *= de, G > E) {
3494
+ $.x[0] = 0.5 * (E - G), $.x[1] = 0.5 * (G - E);
3484
3495
  const ve = 0.5 * (D.left - N.left), Te = 0.5 * (D.left + D.width - N.right);
3485
3496
  $.x[0] -= ve + Te, $.x[1] -= ve + Te;
3486
3497
  }
@@ -3494,7 +3505,7 @@ const Vo = (e, t = {}, n = {}) => {
3494
3505
  function ge() {
3495
3506
  if (!y() || !m("bounds") || !l) return;
3496
3507
  const w = ne(), $ = W(), N = Pe(w, p.scale, $);
3497
- if (p.scale < w - 0.01 || p.scale > $ + 0.01) return void Ce(re.ZoomTo, { scale: N });
3508
+ if (p.scale < w - 0.01 || p.scale > $ + 0.01) return void Ee(re.ZoomTo, { scale: N });
3498
3509
  if (l.isRunning() || Ne()) return;
3499
3510
  const D = be(N);
3500
3511
  p.x < D.x[0] || p.x > D.x[1] || p.y < D.y[0] || p.y > D.y[1] ? (p.x = Pe(D.x[0], p.x, D.x[1]), p.y = Pe(D.y[0], p.y, D.y[1]), l.spring({ tension: 170, friction: 17, restDelta: 1e-3, restSpeed: 1e-3, maxSpeed: 1 / 0, velocity: l.getCurrentVelocities() }), l.from(h).to(p).start()) : De();
@@ -3502,8 +3513,8 @@ const Vo = (e, t = {}, n = {}) => {
3502
3513
  function ie(w) {
3503
3514
  var $;
3504
3515
  if (!y()) return;
3505
- const N = Vt(), D = Ne(), C = A(), O = Z(), G = _t(), K = bt();
3506
- lt(o, "is-fullsize", O), lt(o, "is-expanded", C), lt(o, "is-dragging", D), lt(o, "can-drag", N), lt(o, "will-zoom-in", G), lt(o, "will-zoom-out", K);
3516
+ const N = Vt(), D = Ne(), E = A(), O = Z(), G = _t(), K = bt();
3517
+ lt(o, "is-fullsize", O), lt(o, "is-expanded", E), lt(o, "is-dragging", D), lt(o, "can-drag", N), lt(o, "will-zoom-in", G), lt(o, "will-zoom-out", K);
3507
3518
  const Q = Pt(), de = dt(), ve = xt(), Te = !y();
3508
3519
  for (const Me of (($ = w || e) === null || $ === void 0 ? void 0 : $.querySelectorAll("[data-panzoom-action]")) || []) {
3509
3520
  const $e = Me.dataset.panzoomAction;
@@ -3535,11 +3546,11 @@ const Vo = (e, t = {}, n = {}) => {
3535
3546
  Be ? (Me.setAttribute("aria-disabled", ""), Me.setAttribute("tabindex", "-1")) : (Me.removeAttribute("aria-disabled"), Me.removeAttribute("tabindex"));
3536
3547
  }
3537
3548
  }
3538
- function Ce(w, $) {
3549
+ function Ee(w, $) {
3539
3550
  var N;
3540
3551
  if (!(w && e && r && l && y()) || w === re.Swipe && Math.abs(l.getCurrentVelocities().scale) > 0.01) return;
3541
3552
  const D = Object.assign({}, p);
3542
- let C = Object.assign({}, p), O = be(H() ? D.scale : h.scale);
3553
+ let E = Object.assign({}, p), O = be(H() ? D.scale : h.scale);
3543
3554
  const G = l.getCurrentVelocities(), K = _e(), Q = (((N = ($ = $ || {}).currentTouch) === null || N === void 0 ? void 0 : N.length) || 0) > 1, de = $.velocityX || 0, ve = $.velocityY || 0;
3544
3555
  let Te = $.center;
3545
3556
  $.srcEvent && (Te = Bt(ra($.srcEvent)));
@@ -3558,10 +3569,10 @@ const Vo = (e, t = {}, n = {}) => {
3558
3569
  $e = $.deltaY || 100;
3559
3570
  }
3560
3571
  let Be = [];
3561
- if (typeof w == "number") C.scale = w;
3572
+ if (typeof w == "number") E.scale = w;
3562
3573
  else switch (w) {
3563
3574
  case re.Reset:
3564
- C = Object.assign({}, wt), C.scale = he();
3575
+ E = Object.assign({}, wt), E.scale = he();
3565
3576
  break;
3566
3577
  case re.ZoomTo:
3567
3578
  case re.ZoomIn:
@@ -3571,7 +3582,7 @@ const Vo = (e, t = {}, n = {}) => {
3571
3582
  case re.ToggleMax:
3572
3583
  case re.IterateZoom:
3573
3584
  case re.Zoom:
3574
- C.scale = at(w, $);
3585
+ E.scale = at(w, $);
3575
3586
  break;
3576
3587
  case re.Pan:
3577
3588
  case re.Move:
@@ -3581,36 +3592,36 @@ const Vo = (e, t = {}, n = {}) => {
3581
3592
  case re.MoveDown:
3582
3593
  if (Ne()) {
3583
3594
  let je = 1, ke = 1;
3584
- C.x <= O.x[0] && de <= 0 && (je = Math.max(0.01, 1 - Math.abs(1 / K.width * Math.abs(C.x - O.x[0]))), je *= 0.2), C.x >= O.x[1] && de >= 0 && (je = Math.max(0.01, 1 - Math.abs(1 / K.width * Math.abs(C.x - O.x[1]))), je *= 0.2), C.y <= O.y[0] && ve <= 0 && (ke = Math.max(0.01, 1 - Math.abs(1 / K.height * Math.abs(C.y - O.y[0]))), ke *= 0.2), C.y >= O.y[1] && ve >= 0 && (ke = Math.max(0.01, 1 - Math.abs(1 / K.height * Math.abs(C.y - O.y[1]))), ke *= 0.2), C.x += Me * je, C.y += $e * ke;
3585
- } else C.x = Pe(O.x[0], C.x + Me, O.x[1]), C.y = Pe(O.y[0], C.y + $e, O.y[1]);
3595
+ E.x <= O.x[0] && de <= 0 && (je = Math.max(0.01, 1 - Math.abs(1 / K.width * Math.abs(E.x - O.x[0]))), je *= 0.2), E.x >= O.x[1] && de >= 0 && (je = Math.max(0.01, 1 - Math.abs(1 / K.width * Math.abs(E.x - O.x[1]))), je *= 0.2), E.y <= O.y[0] && ve <= 0 && (ke = Math.max(0.01, 1 - Math.abs(1 / K.height * Math.abs(E.y - O.y[0]))), ke *= 0.2), E.y >= O.y[1] && ve >= 0 && (ke = Math.max(0.01, 1 - Math.abs(1 / K.height * Math.abs(E.y - O.y[1]))), ke *= 0.2), E.x += Me * je, E.y += $e * ke;
3596
+ } else E.x = Pe(O.x[0], E.x + Me, O.x[1]), E.y = Pe(O.y[0], E.y + $e, O.y[1]);
3586
3597
  break;
3587
3598
  case re.Swipe:
3588
3599
  const Re = (je = 0) => Math.sign(je) * Math.pow(Math.abs(je), 1.5);
3589
- C.x += Pe(-1e3, Re(de), 1e3), C.y += Pe(-1e3, Re(ve), 1e3), ve && !de && (C.x = Pe(O.x[0], C.x, O.x[1])), !ve && de && (C.y = Pe(O.y[0], C.y, O.y[1])), G.x = de, G.y = ve;
3600
+ E.x += Pe(-1e3, Re(de), 1e3), E.y += Pe(-1e3, Re(ve), 1e3), ve && !de && (E.x = Pe(O.x[0], E.x, O.x[1])), !ve && de && (E.y = Pe(O.y[0], E.y, O.y[1])), G.x = de, G.y = ve;
3590
3601
  break;
3591
3602
  case re.RotateCW:
3592
- C.angle += 90;
3603
+ E.angle += 90;
3593
3604
  break;
3594
3605
  case re.RotateCCW:
3595
- C.angle -= 90;
3606
+ E.angle -= 90;
3596
3607
  break;
3597
3608
  case re.FlipX:
3598
- C.flipX *= -1;
3609
+ E.flipX *= -1;
3599
3610
  break;
3600
3611
  case re.FlipY:
3601
- C.flipY *= -1;
3612
+ E.flipY *= -1;
3602
3613
  }
3603
- if (h.angle !== void 0 && Math.abs(h.angle) >= 360 && (C.angle -= 360 * Math.floor(h.angle / 360), h.angle -= 360 * Math.floor(h.angle / 360)), Be.length) {
3604
- const Re = Be.findIndex((je) => je > C.scale + 1e-4);
3605
- C.scale = Be[Re] || Be[0];
3614
+ if (h.angle !== void 0 && Math.abs(h.angle) >= 360 && (E.angle -= 360 * Math.floor(h.angle / 360), h.angle -= 360 * Math.floor(h.angle / 360)), Be.length) {
3615
+ const Re = Be.findIndex((je) => je > E.scale + 1e-4);
3616
+ E.scale = Be[Re] || Be[0];
3606
3617
  }
3607
- if (Q && (C.scale = Pe(ne() * (Q ? 0.8 : 1), C.scale, W() * (Q ? 1.6 : 1))), H()) {
3608
- const Re = q(C.scale);
3618
+ if (Q && (E.scale = Pe(ne() * (Q ? 0.8 : 1), E.scale, W() * (Q ? 1.6 : 1))), H()) {
3619
+ const Re = q(E.scale);
3609
3620
  if (Re) {
3610
3621
  const { x: je, y: ke } = Re;
3611
- C.x = je, C.y = ke;
3622
+ E.x = je, E.y = ke;
3612
3623
  }
3613
- } else if (Math.abs(C.scale - D.scale) > 1e-4) {
3624
+ } else if (Math.abs(E.scale - D.scale) > 1e-4) {
3614
3625
  let Re = 0, je = 0;
3615
3626
  if (Te) Re = Te.x, je = Te.y;
3616
3627
  else {
@@ -3620,16 +3631,16 @@ const Vo = (e, t = {}, n = {}) => {
3620
3631
  let ke = Re - K.left, k = je - K.top;
3621
3632
  ke -= 0.5 * K.width, k -= 0.5 * K.height;
3622
3633
  const L = (ke - D.x) / D.scale, R = (k - D.y) / D.scale;
3623
- C.x = ke - L * C.scale, C.y = k - R * C.scale, !Q && m("bounds") && (O = be(C.scale), C.x = Pe(O.x[0], C.x, O.x[1]), C.y = Pe(O.y[0], C.y, O.y[1]));
3634
+ E.x = ke - L * E.scale, E.y = k - R * E.scale, !Q && m("bounds") && (O = be(E.scale), E.x = Pe(O.x[0], E.x, O.x[1]), E.y = Pe(O.y[0], E.y, O.y[1]));
3624
3635
  }
3625
3636
  if (w === re.Swipe) {
3626
- let Re = 94, je = 17, ke = 500 * C.scale, k = G;
3637
+ let Re = 94, je = 17, ke = 500 * E.scale, k = G;
3627
3638
  l.spring({ tension: Re, friction: je, maxSpeed: ke, restDelta: 0.1, restSpeed: 0.1, velocity: k });
3628
3639
  } else w === re.Pan || Q ? l.spring({ tension: 900, friction: 17, restDelta: 0.01, restSpeed: 0.01, maxSpeed: 1 }) : l.spring({ tension: 170, friction: 17, restDelta: 1e-3, restSpeed: 1e-3, maxSpeed: 1 / 0, velocity: G });
3629
- if ($.velocity === 0 || An(h, C)) h = Object.assign({}, C), p = Object.assign({}, C), l.end(), De(), ie();
3640
+ if ($.velocity === 0 || An(h, E)) h = Object.assign({}, E), p = Object.assign({}, E), l.end(), De(), ie();
3630
3641
  else {
3631
- if (An(p, C)) return;
3632
- l.from(h).to(C).start();
3642
+ if (An(p, E)) return;
3643
+ l.from(h).to(E).start();
3633
3644
  }
3634
3645
  S("action", w);
3635
3646
  }
@@ -3645,12 +3656,12 @@ const Vo = (e, t = {}, n = {}) => {
3645
3656
  Me > $e ? (V = fe, z = xe) : (V = xe, z = fe), Y = Me > $e ? fe * k / Me || 1 : fe * k / $e || 1;
3646
3657
  let Ae = V ? Me * ce : 0, He = z ? $e * ce : 0, We = V && z ? Me * Y / Ae : 0;
3647
3658
  return je = je + 0.5 * V - 0.5 * Ae, ke = ke + 0.5 * z - 0.5 * He, { x: je, y: ke, width: Ae, height: He, scale: We, flipX: R, flipY: F, angle: L, fitWidth: Be, fitHeight: Re, fullWidth: Me, fullHeight: $e };
3648
- })(), { x: D, y: C, width: O, height: G, scale: K, angle: Q, flipX: de, flipY: ve } = N;
3649
- let Te = `translate(${ct(D, 100)}px, ${ct(C, 100)}px)`;
3659
+ })(), { x: D, y: E, width: O, height: G, scale: K, angle: Q, flipX: de, flipY: ve } = N;
3660
+ let Te = `translate(${ct(D, 100)}px, ${ct(E, 100)}px)`;
3650
3661
  Te += de !== 1 || ve !== 1 ? ` scaleX(${ct(K * de)}) scaleY(${ct(K * ve)})` : ` scale(${ct(K)})`, Q !== 0 && (Te += ` rotate(${Q}deg)`), s.style.width = `${ct(O)}px`, s.style.height = `${ct(G)}px`, s.style.transform = `${Te}`, S("render");
3651
3662
  }
3652
3663
  function at(w = m("clickAction"), $ = {}) {
3653
- let N = p.scale, D = he(), C = [];
3664
+ let N = p.scale, D = he(), E = [];
3654
3665
  if (typeof w == "number") D = w;
3655
3666
  else if (w) {
3656
3667
  switch (w) {
@@ -3664,16 +3675,16 @@ const Vo = (e, t = {}, n = {}) => {
3664
3675
  D = N * ($.scale || 0.5);
3665
3676
  break;
3666
3677
  case re.ToggleCover:
3667
- C = [he(), I("cover")];
3678
+ E = [he(), I("cover")];
3668
3679
  break;
3669
3680
  case re.ToggleFull:
3670
- C = [he(), me()];
3681
+ E = [he(), me()];
3671
3682
  break;
3672
3683
  case re.ToggleMax:
3673
- C = [he(), W()];
3684
+ E = [he(), W()];
3674
3685
  break;
3675
3686
  case re.IterateZoom:
3676
- C = [he(), me(), W()];
3687
+ E = [he(), me(), W()];
3677
3688
  break;
3678
3689
  case re.Zoom: {
3679
3690
  const O = me();
@@ -3681,8 +3692,8 @@ const Vo = (e, t = {}, n = {}) => {
3681
3692
  break;
3682
3693
  }
3683
3694
  }
3684
- if (C.length) {
3685
- const O = C.find((G) => G > N + 1e-4);
3695
+ if (E.length) {
3696
+ const O = E.find((G) => G > N + 1e-4);
3686
3697
  D = O ?? he();
3687
3698
  }
3688
3699
  }
@@ -3732,7 +3743,7 @@ const Vo = (e, t = {}, n = {}) => {
3732
3743
  for (const w of Object.values(f)) w?.destroy(U);
3733
3744
  for (const w of b) w();
3734
3745
  return o && (o.style.aspectRatio = "", o.style.maxWidth = "", o.style.maxHeight = ""), s && (s.style.width = "", s.style.height = "", s.style.transform = ""), o = void 0, r = void 0, s = void 0, h = Object.assign({}, wt), p = Object.assign({}, wt), l?.destroy(), l = void 0, c?.destroy(), c = void 0, g = 4, U;
3735
- }, emit: S, execute: Ce, getBoundaries: be, getContainer: function() {
3746
+ }, emit: S, execute: Ee, getBoundaries: be, getContainer: function() {
3736
3747
  return e;
3737
3748
  }, getContent: function() {
3738
3749
  return r;
@@ -3761,9 +3772,9 @@ const Vo = (e, t = {}, n = {}) => {
3761
3772
  S("initPlugins");
3762
3773
  })(), (function() {
3763
3774
  var w, $, N;
3764
- const D = Object.assign(Object.assign({}, Ho.classes), m("classes")), C = (w = D.content) === null || w === void 0 ? void 0 : w.split(" ").shift(), O = ($ = D.wrapper) === null || $ === void 0 ? void 0 : $.split(" ").shift(), G = (N = D.viewport) === null || N === void 0 ? void 0 : N.split(" ").shift();
3765
- if (!(!C || !O || !G) && e && (pe(e, D.container), r = e.querySelector(`.${C}:not(.is-clone)`), !!r)) {
3766
- if (r.setAttribute("draggable", "false"), o = e.querySelector(`.${O}`), o || (o = document.createElement("div"), pe(o, D.wrapper), r.insertAdjacentElement("beforebegin", o), o.insertAdjacentElement("afterbegin", r)), s = e.querySelector(`.${G}`), s || (s = document.createElement("div"), pe(s, D.viewport), o.insertAdjacentElement("beforeend", s)), s.contains(r) || s.insertAdjacentElement("afterbegin", r), a = e.querySelector(`.${C}.is-clone`), a || (a = r.cloneNode(!0), a.removeAttribute("id"), pe(a, "is-clone"), o.insertAdjacentElement("afterbegin", a)), r instanceof HTMLPictureElement && (r = r.querySelector("img")), a instanceof HTMLPictureElement && (a = a.querySelector("img")), s instanceof HTMLPictureElement && (s = s.querySelector("img")), s && (s.style.visibility = "hidden", m("protected"))) {
3775
+ const D = Object.assign(Object.assign({}, Ho.classes), m("classes")), E = (w = D.content) === null || w === void 0 ? void 0 : w.split(" ").shift(), O = ($ = D.wrapper) === null || $ === void 0 ? void 0 : $.split(" ").shift(), G = (N = D.viewport) === null || N === void 0 ? void 0 : N.split(" ").shift();
3776
+ if (!(!E || !O || !G) && e && (pe(e, D.container), r = e.querySelector(`.${E}:not(.is-clone)`), !!r)) {
3777
+ if (r.setAttribute("draggable", "false"), o = e.querySelector(`.${O}`), o || (o = document.createElement("div"), pe(o, D.wrapper), r.insertAdjacentElement("beforebegin", o), o.insertAdjacentElement("afterbegin", r)), s = e.querySelector(`.${G}`), s || (s = document.createElement("div"), pe(s, D.viewport), o.insertAdjacentElement("beforeend", s)), s.contains(r) || s.insertAdjacentElement("afterbegin", r), a = e.querySelector(`.${E}.is-clone`), a || (a = r.cloneNode(!0), a.removeAttribute("id"), pe(a, "is-clone"), o.insertAdjacentElement("afterbegin", a)), r instanceof HTMLPictureElement && (r = r.querySelector("img")), a instanceof HTMLPictureElement && (a = a.querySelector("img")), s instanceof HTMLPictureElement && (s = s.querySelector("img")), s && (s.style.visibility = "hidden", m("protected"))) {
3767
3778
  s.addEventListener("contextmenu", (Q) => {
3768
3779
  Kt(Q);
3769
3780
  });
@@ -3804,9 +3815,9 @@ const Vo = (e, t = {}, n = {}) => {
3804
3815
  })(), U;
3805
3816
  }, isDragging: Ne, isExpanded: A, isFullsize: Z, isMousemoveMode: H, localize: function(w, $ = []) {
3806
3817
  const N = m("l10n") || {};
3807
- w = String(w).replace(/\{\{(\w+)\}\}/g, (D, C) => N[C] || D);
3818
+ w = String(w).replace(/\{\{(\w+)\}\}/g, (D, E) => N[E] || D);
3808
3819
  for (let D = 0; D < $.length; D++) w = w.split($[D][0]).join($[D][1]);
3809
- return w = w.replace(/\{\{(.*?)\}\}/g, (D, C) => C);
3820
+ return w = w.replace(/\{\{(.*?)\}\}/g, (D, E) => E);
3810
3821
  }, off: function(w, $) {
3811
3822
  for (const N of w instanceof Array ? w : [w]) v.has(N) && v.set(N, v.get(N).filter((D) => D !== $));
3812
3823
  return U;
@@ -3850,7 +3861,7 @@ const ro = (e, t = {}, n = {}) => {
3850
3861
  for (const F of R) F && F instanceof Function && F(ke, ...L);
3851
3862
  k === "click" && K(L[0]), k !== "*" && ie("*", k, ...L);
3852
3863
  }
3853
- function Ce() {
3864
+ function Ee() {
3854
3865
  var k, L;
3855
3866
  const R = pt({}, $n, u);
3856
3867
  let F = "";
@@ -3930,7 +3941,7 @@ const ro = (e, t = {}, n = {}) => {
3930
3941
  function at() {
3931
3942
  W("gestures") === !1 ? o && (o.destroy(), o = void 0) : o || (function() {
3932
3943
  const k = W("gestures");
3933
- !o && k !== !1 && f && (o = En(f, k).on("start", (L) => {
3944
+ !o && k !== !1 && f && (o = Cn(f, k).on("start", (L) => {
3934
3945
  var R, F;
3935
3946
  if (!r || W("gestures", L) === !1) return;
3936
3947
  const { srcEvent: X } = L;
@@ -3939,7 +3950,7 @@ const ro = (e, t = {}, n = {}) => {
3939
3950
  V && H.has(V.index) && z && (x = V.offset || 0, x += ((function(Y) {
3940
3951
  const ce = window.getComputedStyle(Y), fe = new DOMMatrixReadOnly(ce.transform);
3941
3952
  return { width: fe.m41 || 0, height: fe.m42 || 0 };
3942
- })(z)[S] || 0) * (y && !v ? 1 : -1)), C(), m || (x < ue || x > J) && r.spring({ clamp: !0, mass: 1, tension: 500, friction: 25, velocity: ((F = r.getCurrentVelocities()) === null || F === void 0 ? void 0 : F.pos) || 0, restDelta: 1, restSpeed: 1 }).from({ pos: x }).to({ pos: Pe(ue, x, J) }).start();
3953
+ })(z)[S] || 0) * (y && !v ? 1 : -1)), E(), m || (x < ue || x > J) && r.spring({ clamp: !0, mass: 1, tension: 500, friction: 25, velocity: ((F = r.getCurrentVelocities()) === null || F === void 0 ? void 0 : F.pos) || 0, restDelta: 1, restSpeed: 1 }).from({ pos: x }).to({ pos: Pe(ue, x, J) }).start();
3943
3954
  }).on("move", (L) => {
3944
3955
  var R, F;
3945
3956
  if (W("gestures", L) === !1) return;
@@ -4179,7 +4190,7 @@ const ro = (e, t = {}, n = {}) => {
4179
4190
  const F = [`f-${R}Out`, `f-${R}In`, "to-prev", "to-next", "from-prev", "from-next"];
4180
4191
  k.removeEventListener("animationend", O), et(k, F.join(" ")), H.delete(L);
4181
4192
  }
4182
- function C() {
4193
+ function E() {
4183
4194
  if (!f) return;
4184
4195
  const k = H.size > 0;
4185
4196
  for (const L of j) D(L.el);
@@ -4257,14 +4268,14 @@ const ro = (e, t = {}, n = {}) => {
4257
4268
  fe = m ? (fe % Xe + Xe) % Xe : Pe(0, fe, Xe - 1), y && (Ke *= -1);
4258
4269
  const it = (Ae = I[M]) === null || Ae === void 0 ? void 0 : Ae.slides[0], ft = it?.index, Ve = (He = I[fe]) === null || He === void 0 ? void 0 : He.slides[0], st = Ve?.index, rs = (We = I[fe]) === null || We === void 0 ? void 0 : We.pos;
4259
4270
  if (st === void 0 || ft === void 0 || ft === st || x === rs || Math.abs(h - (Ve?.dim || 0)) > 1) return !1;
4260
- _ = !1, r.pause(), C(), pe(i, "in-transition"), x = ee = rs;
4271
+ _ = !1, r.pause(), E(), pe(i, "in-transition"), x = ee = rs;
4261
4272
  const cn = U(it), un = U(Ve);
4262
4273
  return bt(), cn && (H.add(ft), cn.style.transform = "", cn.addEventListener("animationend", O), et(cn, d.classes.isSelected), cn.inert = !1, pe(cn, `f-${xe}Out to-${Ke > 0 ? "next" : "prev"}`)), un && (H.add(st), un.style.transform = "", un.addEventListener("animationend", O), pe(un, d.classes.isSelected), un.inert = !1, pe(un, `f-${xe}In from-${Ke > 0 ? "prev" : "next"}`)), $e(), !0;
4263
4274
  })(k, X)) return;
4264
4275
  k = m ? (k % z + z) % z : Pe(0, k, z - 1), ee = ((R = I[k || 0]) === null || R === void 0 ? void 0 : R.pos) || 0;
4265
4276
  const ce = r.isRunning() ? r.getEndValues().pos : x;
4266
4277
  if (Math.abs(ee - ce) < 1) return x = ee, M !== k && (ve(), s = M, M = k, xt(), Pt(), ie("change", M, s)), $e(), void (_ || (_ = !0, ie("settle")));
4267
- if (r.pause(), C(), m) {
4278
+ if (r.pause(), E(), m) {
4268
4279
  const fe = Ne(), xe = Math.floor((ce - ((F = I[0]) === null || F === void 0 ? void 0 : F.pos)) / fe) || 0, Ae = ee + xe * fe;
4269
4280
  ee = [Ae + fe, Ae, Ae - fe].reduce(function(He, We) {
4270
4281
  return Math.abs(We - ce) < Math.abs(He - ce) ? We : He;
@@ -4330,7 +4341,7 @@ const ro = (e, t = {}, n = {}) => {
4330
4341
  const X = M, V = Ne(), z = r?.isRunning() ? r.getEndValues().pos : x, Y = V && Math.floor((z - (((R = I[0]) === null || R === void 0 ? void 0 : R.pos) || 0)) / V) || 0;
4331
4342
  return Z(k, L), _t(_e), N(), r && V && (X === M && (F -= Y * V), F === ee ? x = ee : r.spring({ clamp: !0, mass: 1, tension: 300, friction: 25, restDelta: 1, restSpeed: 1 }).from({ pos: F }).to({ pos: ee }).start()), $e(), ke;
4332
4343
  }, canGoPrev: Re, canGoNext: je, destroy: function() {
4333
- return ie("destroy"), window.removeEventListener("resize", Ce), Be(), ge.clear(), i = null, I = [], ae = [], d = Object.assign({}, $n), g = {}, j = [], c = void 0, _e = "*", l = 2, ke;
4344
+ return ie("destroy"), window.removeEventListener("resize", Ee), Be(), ge.clear(), i = null, I = [], ae = [], d = Object.assign({}, $n), g = {}, j = [], c = void 0, _e = "*", l = 2, ke;
4334
4345
  }, emit: ie, filter: function(k = "*") {
4335
4346
  return _t(k), N(), x = Pe(ue, x, J), $e(), ie("filter", k), ke;
4336
4347
  }, getContainer: function() {
@@ -4397,7 +4408,7 @@ const ro = (e, t = {}, n = {}) => {
4397
4408
  return s !== void 0;
4398
4409
  }, hideError: de, hideLoading: Q, init: function() {
4399
4410
  if (!e || !mn(e)) throw new Error("No Element found");
4400
- return l !== 0 && (Be(), l = 0), i = e, u = t, window.removeEventListener("resize", Ce), u.breakpoints && window.addEventListener("resize", Ce), Ce(), ke;
4411
+ return l !== 0 && (Be(), l = 0), i = e, u = t, window.removeEventListener("resize", Ee), u.breakpoints && window.addEventListener("resize", Ee), Ee(), ke;
4401
4412
  }, isInfinite: function() {
4402
4413
  return m;
4403
4414
  }, isInTransition: function() {
@@ -4419,7 +4430,7 @@ const ro = (e, t = {}, n = {}) => {
4419
4430
  }, prev: function(k = {}) {
4420
4431
  return Te(M - 1, k), ke;
4421
4432
  }, reInit: function(k = {}, L) {
4422
- return Be(), l = 0, c = void 0, _e = "*", t = k, u = k, ot(L) && (n = L), Ce(), ke;
4433
+ return Be(), l = 0, c = void 0, _e = "*", t = k, u = k, ot(L) && (n = L), Ee(), ke;
4423
4434
  }, remove: function(k) {
4424
4435
  k === void 0 && (k = ae.length - 1);
4425
4436
  const L = ae[k];
@@ -4835,13 +4846,13 @@ const Ns = { autoStart: !0, pauseOnHover: !0, showProgressbar: !0, timeout: 2e3
4835
4846
  } };
4836
4847
  return S;
4837
4848
  };
4838
- const Eo = { Carousel: { Lazyload: { showLoading: !1 } }, minCount: 2, showOnStart: !0, thumbTpl: '<button aria-label="Slide to #{{page}}"><img draggable="false" alt="{{alt}}" data-lazy-src="{{src}}" /></button>', type: "modern" };
4839
- let Co;
4849
+ const Co = { Carousel: { Lazyload: { showLoading: !1 } }, minCount: 2, showOnStart: !0, thumbTpl: '<button aria-label="Slide to #{{page}}"><img draggable="false" alt="{{alt}}" data-lazy-src="{{src}}" /></button>', type: "modern" };
4850
+ let Eo;
4840
4851
  const Yc = () => {
4841
4852
  let e, t, n, o, r, a = 0, s = 0, c = !0;
4842
4853
  function l(j) {
4843
4854
  const H = e?.getOptions().Thumbs;
4844
- let q = (ot(H) ? Object.assign(Object.assign({}, Eo), H) : Eo)[j];
4855
+ let q = (ot(H) ? Object.assign(Object.assign({}, Co), H) : Co)[j];
4845
4856
  return q && typeof q == "function" && e ? q(e) : q;
4846
4857
  }
4847
4858
  function u() {
@@ -4905,7 +4916,7 @@ const Yc = () => {
4905
4916
  }
4906
4917
  function m() {
4907
4918
  var j;
4908
- if (!Co || !e || !n || g() || t) return;
4919
+ if (!Eo || !e || !n || g() || t) return;
4909
4920
  const H = i();
4910
4921
  if (!H.length) return;
4911
4922
  const q = pt({}, { Sync: { target: e }, Lazyload: { preload: 1 }, slides: H, classes: { container: "f-thumbs", viewport: "f-thumbs__viewport", slide: "f-thumbs__slide" }, center: !0, fill: !d(), infinite: !1, dragFree: !0, rtl: e.getOptions().rtl || !1, slidesPerPage: (I) => {
@@ -4915,8 +4926,8 @@ const Yc = () => {
4915
4926
  const he = (me) => n && parseFloat(getComputedStyle(n).getPropertyValue("--f-thumb-" + me)) || 0;
4916
4927
  a = he("width"), s = he("clip-width");
4917
4928
  })(), ne = 4 * (a - s)), I && I.getTotalSlideDim() <= I.getViewportDim() - ne ? 1 / 0 : 1;
4918
- } }, Eo.Carousel || {}, l("Carousel") || {});
4919
- t = Co(n, q, { Sync: aa, Lazyload: ia }), t.on("ready", () => {
4929
+ } }, Co.Carousel || {}, l("Carousel") || {});
4930
+ t = Eo(n, q, { Sync: aa, Lazyload: ia }), t.on("ready", () => {
4920
4931
  pe(n, "is-syncing"), e?.emit("thumbs:ready"), d() && e?.on("render", x);
4921
4932
  }), t.on("destroy", () => {
4922
4933
  e?.emit("thumbs:destroy");
@@ -5005,7 +5016,7 @@ const Yc = () => {
5005
5016
  }
5006
5017
  }
5007
5018
  return { init: function(j, H) {
5008
- Co = H, e = j, e.on("ready", v), e.on("initSlides", y), e.on("change", _);
5019
+ Eo = H, e = j, e.on("ready", v), e.on("initSlides", y), e.on("change", _);
5009
5020
  }, destroy: function() {
5010
5021
  var j, H;
5011
5022
  g() && e?.emit("thumbs:destroy"), e?.off("ready", v), e?.off("initSlides", y), e?.off("change", _), e?.off("render", x), e?.off("addSlide", M), e?.off("click", ue), e?.off("refresh", J), (j = e?.getGestures()) === null || j === void 0 || j.off("start", S), (H = e?.getContainer()) === null || H === void 0 || H.classList.remove("has-thumbs"), e = void 0, t?.destroy(), t = void 0, n?.remove(), n = void 0;
@@ -5517,12 +5528,12 @@ const Ks = "with-fancybox", nu = () => {
5517
5528
  const w = new XMLHttpRequest();
5518
5529
  w.onreadystatechange = function() {
5519
5530
  if (w.readyState === XMLHttpRequest.DONE && c === Ge.Ready) if (o?.hideLoading(B), B.state = 1, w.status === 200) {
5520
- let N = w.responseText + "", D = null, C = null;
5531
+ let N = w.responseText + "", D = null, E = null;
5521
5532
  if (B.filter) {
5522
5533
  const O = document.createElement("div");
5523
- O.innerHTML = N, C = O.querySelector(B.filter + "");
5534
+ O.innerHTML = N, E = O.querySelector(B.filter + "");
5524
5535
  }
5525
- C && C instanceof HTMLElement ? D = C : (D = document.createElement("div"), D.innerHTML = N), D.classList.add("f-html"), B.htmlEl = D, U.classList.add("has-html"), U.classList.add("has-ajax"), U.prepend(D), o?.emit("contentReady", B);
5536
+ E && E instanceof HTMLElement ? D = E : (D = document.createElement("div"), D.innerHTML = N), D.classList.add("f-html"), B.htmlEl = D, U.classList.add("has-html"), U.classList.add("has-ajax"), U.prepend(D), o?.emit("contentReady", B);
5526
5537
  } else o?.showError(B);
5527
5538
  };
5528
5539
  const $ = p("ajax") || null;
@@ -5539,7 +5550,7 @@ const Ks = "with-fancybox", nu = () => {
5539
5550
  function _(A) {
5540
5551
  if (!be()) return;
5541
5552
  if (c !== Ge.Ready) return Lt(A), void A.stopPropagation();
5542
- if (A.defaultPrevented || !En.isClickAllowed()) return;
5553
+ if (A.defaultPrevented || !Cn.isClickAllowed()) return;
5543
5554
  const Z = A.composedPath()[0];
5544
5555
  Z.closest(".fancybox__carousel") && Z.classList.contains("fancybox__slide") && H(A);
5545
5556
  }
@@ -5555,7 +5566,7 @@ const Ks = "with-fancybox", nu = () => {
5555
5566
  var A;
5556
5567
  (function() {
5557
5568
  const le = o?.getViewport();
5558
- if (!p("dragToClose") || !o || !le || (r = En(le).init(), !r)) return;
5569
+ if (!p("dragToClose") || !o || !le || (r = Cn(le).init(), !r)) return;
5559
5570
  let B = !1, U = 0, w = 0, $ = {}, N = 1;
5560
5571
  function D() {
5561
5572
  var O, G;
@@ -5567,7 +5578,7 @@ const Ks = "with-fancybox", nu = () => {
5567
5578
  Q.execute(re.ZoomTo, { scale: de });
5568
5579
  }
5569
5580
  }
5570
- const C = (O) => {
5581
+ const E = (O) => {
5571
5582
  var G;
5572
5583
  const K = O.srcEvent, Q = K.target;
5573
5584
  return o && !(Mn(K) && ((G = K.touches) === null || G === void 0 ? void 0 : G.length) > 1) && Q && !on(Q);
@@ -5583,7 +5594,7 @@ const Ks = "with-fancybox", nu = () => {
5583
5594
  B || (a?.pause(), w = U);
5584
5595
  }).on("panstart", (O) => {
5585
5596
  var G, K;
5586
- if (!B && C(O) && O.axis === "y") {
5597
+ if (!B && E(O) && O.axis === "y") {
5587
5598
  Lt(O.srcEvent), B = !0, Pt(), (G = o?.getViewport()) === null || G === void 0 || G.classList.add("is-dragging");
5588
5599
  const Q = (K = ge()) === null || K === void 0 ? void 0 : K.panzoomRef;
5589
5600
  if (Q) {
@@ -5593,7 +5604,7 @@ const Ks = "with-fancybox", nu = () => {
5593
5604
  }
5594
5605
  } else B = !1;
5595
5606
  }).on("pan", function(O) {
5596
- B && C(O) && (Lt(O.srcEvent), O.srcEvent.stopPropagation(), O.axis === "y" && (w += O.deltaY, D()));
5607
+ B && E(O) && (Lt(O.srcEvent), O.srcEvent.stopPropagation(), O.axis === "y" && (w += O.deltaY, D()));
5597
5608
  }).on("end", (O) => {
5598
5609
  var G, K, Q;
5599
5610
  if ((G = o?.getViewport()) === null || G === void 0 || G.classList.remove("is-dragging"), B) {
@@ -5603,7 +5614,7 @@ const Ks = "with-fancybox", nu = () => {
5603
5614
  const ve = de.getOptions();
5604
5615
  ve.bounds = $.bounds || !1, ve.gestures = $.gestures || !1;
5605
5616
  }
5606
- C(O) && O.axis === "y" && (Math.abs(O.velocityY) > 5 || Math.abs(U) > 50) && dt(O.srcEvent, "f-throwOut" + (O.velocityY > 0 ? "Down" : "Up"));
5617
+ E(O) && O.axis === "y" && (Math.abs(O.velocityY) > 5 || Math.abs(U) > 50) && dt(O.srcEvent, "f-throwOut" + (O.velocityY > 0 ? "Down" : "Up"));
5607
5618
  }
5608
5619
  B = !1, c === Ge.Ready && U !== 0 && (w = 0, D());
5609
5620
  });
@@ -5681,7 +5692,7 @@ const Ks = "with-fancybox", nu = () => {
5681
5692
  function W(A) {
5682
5693
  if (!(f && o && o.getState() === 1 && A && A.index === o.getOptions().initialPage && A.el && A.el.parentElement) || A.state !== void 0 && A.state !== 1) return;
5683
5694
  f = !1;
5684
- const Z = A.panzoomRef, le = Z?.getTween(), B = p("zoomEffect") && le ? Ce(A) : void 0;
5695
+ const Z = A.panzoomRef, le = Z?.getTween(), B = p("zoomEffect") && le ? Ee(A) : void 0;
5685
5696
  if (Z && le && B) {
5686
5697
  const { x: w, y: $, scale: N } = Z.getStartPosition();
5687
5698
  return void le.spring({ tension: 215, friction: 25, restDelta: 1e-3, restSpeed: 1e-3, maxSpeed: 1 / 0 }).from(B).to({ x: w, y: $, scale: N }).start();
@@ -5701,7 +5712,7 @@ const Ks = "with-fancybox", nu = () => {
5701
5712
  const A = ge();
5702
5713
  return A ? A.triggerEl || p("triggerEl") : void 0;
5703
5714
  }
5704
- function Ce(A) {
5715
+ function Ee(A) {
5705
5716
  var Z, le;
5706
5717
  const B = A.thumbEl;
5707
5718
  if (!B || !((K) => {
@@ -5716,8 +5727,8 @@ const Ks = "with-fancybox", nu = () => {
5716
5727
  const U = (le = (Z = A.panzoomRef) === null || Z === void 0 ? void 0 : Z.getWrapper()) === null || le === void 0 ? void 0 : le.getBoundingClientRect(), w = U?.width, $ = U?.height;
5717
5728
  if (!w || !$) return;
5718
5729
  const N = B.getBoundingClientRect();
5719
- let D = N.width, C = N.height, O = N.left, G = N.top;
5720
- if (!(!N || !D || !C)) {
5730
+ let D = N.width, E = N.height, O = N.left, G = N.top;
5731
+ if (!(!N || !D || !E)) {
5721
5732
  if (B instanceof HTMLImageElement) {
5722
5733
  const K = window.getComputedStyle(B).getPropertyValue("object-fit");
5723
5734
  if (K === "contain" || K === "scale-down") {
@@ -5727,12 +5738,12 @@ const Ks = "with-fancybox", nu = () => {
5727
5738
  ve *= ke, Te *= ke;
5728
5739
  }
5729
5740
  return { width: ve, height: Te };
5730
- })(B.naturalWidth, B.naturalHeight, D, C, K);
5731
- O += 0.5 * (D - Q), G += 0.5 * (C - de), D = Q, C = de;
5741
+ })(B.naturalWidth, B.naturalHeight, D, E, K);
5742
+ O += 0.5 * (D - Q), G += 0.5 * (E - de), D = Q, E = de;
5732
5743
  }
5733
5744
  }
5734
- if (!(Math.abs(w / $ - D / C) > 0.1))
5735
- return { x: O + 0.5 * D - (U.left + 0.5 * w), y: G + 0.5 * C - (U.top + 0.5 * $), scale: D / w };
5745
+ if (!(Math.abs(w / $ - D / E) > 0.1))
5746
+ return { x: O + 0.5 * D - (U.left + 0.5 * w), y: G + 0.5 * E - (U.top + 0.5 * $), scale: D / w };
5736
5747
  }
5737
5748
  }
5738
5749
  function De() {
@@ -5775,8 +5786,8 @@ const Ks = "with-fancybox", nu = () => {
5775
5786
  }
5776
5787
  const D = o?.getPlugins();
5777
5788
  ($ = D?.Autoplay) === null || $ === void 0 || $.stop();
5778
- const C = D?.Fullscreen;
5779
- C && C.inFullscreen() ? Promise.resolve(C.exit()).then(() => {
5789
+ const E = D?.Fullscreen;
5790
+ E && E.inFullscreen() ? Promise.resolve(E.exit()).then(() => {
5780
5791
  setTimeout(() => {
5781
5792
  Vt(A, Z);
5782
5793
  }, 150);
@@ -5788,14 +5799,14 @@ const Ks = "with-fancybox", nu = () => {
5788
5799
  y("close", A), f = !1, document.body.removeEventListener("click", ne), document.body.removeEventListener("keydown", I, { passive: !1, capture: !0 }), p("placeFocusBack") && Pt();
5789
5800
  const U = document.activeElement;
5790
5801
  U && e?.contains(U) && U.blur(), p("fadeEffect") && (t?.classList.remove("is-ready"), t?.classList.add("is-hiding")), t?.classList.add("is-closing");
5791
- const w = ge(), $ = w?.el, N = w?.panzoomRef, D = (le = w?.panzoomRef) === null || le === void 0 ? void 0 : le.getTween(), C = Z || p("hideClass");
5802
+ const w = ge(), $ = w?.el, N = w?.panzoomRef, D = (le = w?.panzoomRef) === null || le === void 0 ? void 0 : le.getTween(), E = Z || p("hideClass");
5792
5803
  let O = !1, G = !1;
5793
5804
  if (o && w && $ && N && D) {
5794
5805
  let Q;
5795
- if (p("zoomEffect") && w.state === 1 && (Q = Ce(w)), Q) {
5806
+ if (p("zoomEffect") && w.state === 1 && (Q = Ee(w)), Q) {
5796
5807
  O = !0;
5797
5808
  const de = () => {
5798
- Q = Ce(w), Q ? D.to(Object.assign(Object.assign({}, wt), Q)) : Ye();
5809
+ Q = Ee(w), Q ? D.to(Object.assign(Object.assign({}, wt), Q)) : Ye();
5799
5810
  };
5800
5811
  N.on("refresh", () => {
5801
5812
  de();
@@ -5805,7 +5816,7 @@ const Ks = "with-fancybox", nu = () => {
5805
5816
  }
5806
5817
  }
5807
5818
  const K = w?.htmlEl || ((B = w?.panzoomRef) === null || B === void 0 ? void 0 : B.getWrapper());
5808
- K && fa(K), !O && C && K && (G = !0, Xs(K, C, () => {
5819
+ K && fa(K), !O && E && K && (G = !0, Xs(K, E, () => {
5809
5820
  Ye();
5810
5821
  })), O || G ? setTimeout(() => {
5811
5822
  Ye();
@@ -5856,20 +5867,20 @@ const Ks = "with-fancybox", nu = () => {
5856
5867
  const w = p("mainClass");
5857
5868
  w && pe(t, w);
5858
5869
  const $ = p("mainStyle");
5859
- if ($ && ot($)) for (const [C, O] of Object.entries($)) t.style.setProperty(C, O);
5870
+ if ($ && ot($)) for (const [E, O] of Object.entries($)) t.style.setProperty(E, O);
5860
5871
  const N = p("theme"), D = N === "auto" ? window.matchMedia("(prefers-color-scheme:light)").matches : N === "light";
5861
- t.setAttribute("theme", D ? "light" : "dark"), e.setAttribute("id", `${u}`), e.addEventListener("keydown", (C) => {
5862
- C.key === "Escape" && Lt(C);
5863
- }), e.addEventListener("wheel", (C) => {
5864
- const O = C.target;
5865
- let G = p("wheel", C);
5872
+ t.setAttribute("theme", D ? "light" : "dark"), e.setAttribute("id", `${u}`), e.addEventListener("keydown", (E) => {
5873
+ E.key === "Escape" && Lt(E);
5874
+ }), e.addEventListener("wheel", (E) => {
5875
+ const O = E.target;
5876
+ let G = p("wheel", E);
5866
5877
  O.closest(".f-thumbs") && (G = "slide");
5867
- const K = G === "slide", Q = [-C.deltaX || 0, -C.deltaY || 0, -C.detail || 0].reduce(function(Te, Me) {
5878
+ const K = G === "slide", Q = [-E.deltaX || 0, -E.deltaY || 0, -E.detail || 0].reduce(function(Te, Me) {
5868
5879
  return Math.abs(Me) > Math.abs(Te) ? Me : Te;
5869
5880
  }), de = Math.max(-1, Math.min(1, Q)), ve = Date.now();
5870
- h && ve - h < 300 ? K && Lt(C) : (h = ve, y("wheel", C, de), C.defaultPrevented || (G === "close" ? dt(C) : G === "slide" && o && !on(O) && (Lt(C), o[de > 0 ? "prev" : "next"]())));
5871
- }, { capture: !0, passive: !1 }), e.addEventListener("cancel", (C) => {
5872
- dt(C);
5881
+ h && ve - h < 300 ? K && Lt(E) : (h = ve, y("wheel", E, de), E.defaultPrevented || (G === "close" ? dt(E) : G === "slide" && o && !on(O) && (Lt(E), o[de > 0 ? "prev" : "next"]())));
5882
+ }, { capture: !0, passive: !1 }), e.addEventListener("cancel", (E) => {
5883
+ dt(E);
5873
5884
  }), B.append(e), Rt.size === 1 && (p("hideScrollbar") && xs(!0), document.documentElement.classList.add(Ks)), y("initLayout"), e instanceof HTMLDialogElement && (p("modal") ? e.showModal() : e.show());
5874
5885
  })(), (function() {
5875
5886
  if (n = e?.querySelector(".fancybox__carousel") || void 0, !n) return;
@@ -6045,7 +6056,7 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
6045
6056
  }
6046
6057
  },
6047
6058
  setup(e) {
6048
- const t = e, n = Ee(null);
6059
+ const t = e, n = Ce(null);
6049
6060
  function o() {
6050
6061
  n.value && qe.bind(n.value, t.selector, { ...t.options });
6051
6062
  }
@@ -6056,7 +6067,7 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
6056
6067
  r(), o();
6057
6068
  }), In(() => {
6058
6069
  r(), qe.close();
6059
- }), (a, s) => (E(), P("div", {
6070
+ }), (a, s) => (C(), P("div", {
6060
6071
  ref_key: "containerRef",
6061
6072
  ref: n
6062
6073
  }, [
@@ -6108,7 +6119,7 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
6108
6119
  }
6109
6120
  },
6110
6121
  setup(e) {
6111
- const t = e, n = Wo(), o = Ee(null), r = Ee(null), a = Ee(null), s = Ee(!1);
6122
+ const t = e, n = Wo(), o = Ce(null), r = Ce(null), a = Ce(null), s = Ce(!1);
6112
6123
  let c = null, l = null;
6113
6124
  const u = te(() => t.interactive ? typeof t.delay == "number" ? 150 : Math.max(t.delay.hide ?? 0, 150) : typeof t.delay == "number" ? 0 : t.delay.hide ?? 0), d = te(() => {
6114
6125
  const v = [Wr(t.offset), Zr(), Ur({ padding: 8 })];
@@ -6152,7 +6163,7 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
6152
6163
  }
6153
6164
  return In(() => {
6154
6165
  clearTimeout(c), clearTimeout(l);
6155
- }), (v, S) => (E(), P(ze, null, [
6166
+ }), (v, S) => (C(), P(ze, null, [
6156
6167
  T("div", {
6157
6168
  ref_key: "referenceRef",
6158
6169
  ref: o,
@@ -6164,10 +6175,10 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
6164
6175
  }, [
6165
6176
  Qe(v.$slots, "default")
6166
6177
  ], 544),
6167
- (E(), Oe(pr, { to: "body" }, [
6178
+ (C(), Oe(pr, { to: "body" }, [
6168
6179
  se(fr, { name: "spark-tooltip" }, {
6169
6180
  default: Se(() => [
6170
- s.value ? (E(), P("div", {
6181
+ s.value ? (C(), P("div", {
6171
6182
  key: 0,
6172
6183
  ref_key: "floatingRef",
6173
6184
  ref: r,
@@ -6178,12 +6189,12 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
6178
6189
  onMouseleave: y
6179
6190
  }, [
6180
6191
  Qe(v.$slots, "content", {}, () => [
6181
- e.html ? (E(), P("span", {
6192
+ e.html ? (C(), P("span", {
6182
6193
  key: 0,
6183
6194
  innerHTML: e.content
6184
- }, null, 8, su)) : (E(), P("span", ru, we(e.content), 1))
6195
+ }, null, 8, su)) : (C(), P("span", ru, we(e.content), 1))
6185
6196
  ]),
6186
- e.showArrow ? (E(), P("div", {
6197
+ e.showArrow ? (C(), P("div", {
6187
6198
  key: 0,
6188
6199
  ref_key: "arrowRef",
6189
6200
  ref: a,
@@ -6289,7 +6300,7 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
6289
6300
  "file-cleared"
6290
6301
  ],
6291
6302
  setup(e, { expose: t, emit: n }) {
6292
- const o = e, r = n, a = io("axios"), s = Ee(null), c = Ee(!1), l = Ee(!1), u = Ee(null);
6303
+ const o = e, r = n, a = io("axios"), s = Ce(null), c = Ce(!1), l = Ce(!1), u = Ce(null);
6293
6304
  function d() {
6294
6305
  o.disabled || c.value || (l.value = !0);
6295
6306
  }
@@ -6367,9 +6378,9 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
6367
6378
  uploading: c
6368
6379
  }), (y, v) => {
6369
6380
  const S = Ze("FormKit"), x = Ze("font-awesome-icon");
6370
- return E(), P("div", null, [
6371
- e.label ? (E(), P("label", au, we(e.label), 1)) : ye("", !0),
6372
- e.variant === "dashed" ? (E(), P("div", {
6381
+ return C(), P("div", null, [
6382
+ e.label ? (C(), P("label", au, we(e.label), 1)) : ye("", !0),
6383
+ e.variant === "dashed" ? (C(), P("div", {
6373
6384
  key: 1,
6374
6385
  class: Le(["border-2 border-dashed border-gray-300 rounded-lg p-8 text-center transition-colors", {
6375
6386
  "border-blue-500 bg-blue-50": l.value,
@@ -6390,7 +6401,7 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
6390
6401
  "outer-class": "hidden",
6391
6402
  onInput: h
6392
6403
  }, null, 8, ["name", "accept", "disabled"]),
6393
- s.value ? (E(), P("div", cu, [
6404
+ s.value ? (C(), P("div", cu, [
6394
6405
  se(x, {
6395
6406
  icon: oe(Fe).farFile,
6396
6407
  class: "text-2xl text-gray-500"
@@ -6408,7 +6419,7 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
6408
6419
  ]),
6409
6420
  _: 1
6410
6421
  })
6411
- ])) : (E(), P("div", iu, [
6422
+ ])) : (C(), P("div", iu, [
6412
6423
  se(x, {
6413
6424
  icon: e.icon,
6414
6425
  class: "text-4xl text-gray-400 mb-3"
@@ -6424,7 +6435,7 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
6424
6435
  _: 1
6425
6436
  })
6426
6437
  ]))
6427
- ], 34)) : (E(), P("div", {
6438
+ ], 34)) : (C(), P("div", {
6428
6439
  key: 2,
6429
6440
  class: Le(["relative rounded-md transition-colors", {
6430
6441
  "ring-2 ring-blue-500 ring-offset-2 bg-blue-50": l.value
@@ -6441,18 +6452,18 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
6441
6452
  disabled: e.disabled || c.value,
6442
6453
  onInput: h
6443
6454
  }, null, 8, ["name", "accept", "disabled"]),
6444
- l.value ? (E(), P("div", du, [...v[0] || (v[0] = [
6455
+ l.value ? (C(), P("div", du, [...v[0] || (v[0] = [
6445
6456
  T("span", { class: "text-sm text-blue-600 font-medium" }, "Drop file here", -1)
6446
6457
  ])])) : ye("", !0)
6447
6458
  ], 34)),
6448
- e.showUploadButton ? (E(), P("div", fu, [
6459
+ e.showUploadButton ? (C(), P("div", fu, [
6449
6460
  se(gt, {
6450
6461
  size: "lg",
6451
6462
  disabled: !s.value || c.value,
6452
6463
  onClick: m
6453
6464
  }, {
6454
6465
  default: Se(() => [
6455
- c.value ? (E(), Oe(x, {
6466
+ c.value ? (C(), Oe(x, {
6456
6467
  key: 0,
6457
6468
  icon: oe(Fe).farSpinner,
6458
6469
  class: "mr-2 animate-spin"
@@ -6462,7 +6473,7 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
6462
6473
  _: 1
6463
6474
  }, 8, ["disabled"])
6464
6475
  ])) : ye("", !0),
6465
- c.value && !e.showUploadButton ? (E(), P("p", pu, we(e.uploadingText), 1)) : ye("", !0)
6476
+ c.value && !e.showUploadButton ? (C(), P("p", pu, we(e.uploadingText), 1)) : ye("", !0)
6466
6477
  ]);
6467
6478
  };
6468
6479
  }
@@ -6525,7 +6536,7 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
6525
6536
  },
6526
6537
  emits: ["update:modelValue", "upload-start", "upload-success", "upload-error"],
6527
6538
  setup(e, { emit: t }) {
6528
- const n = e, o = t, r = io("axios"), a = Ee(!1), s = Ee(!1);
6539
+ const n = e, o = t, r = io("axios"), a = Ce(!1), s = Ce(!1);
6529
6540
  function c() {
6530
6541
  o("update:modelValue", "");
6531
6542
  }
@@ -6592,9 +6603,9 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
6592
6603
  }
6593
6604
  return (h, p) => {
6594
6605
  const b = Ze("font-awesome-icon"), m = Ze("FormKit");
6595
- return E(), P("div", null, [
6596
- e.label ? (E(), P("label", mu, we(e.label), 1)) : ye("", !0),
6597
- e.modelValue ? (E(), Oe(ou, {
6606
+ return C(), P("div", null, [
6607
+ e.label ? (C(), P("label", mu, we(e.label), 1)) : ye("", !0),
6608
+ e.modelValue ? (C(), Oe(ou, {
6598
6609
  key: 1,
6599
6610
  class: "mb-2 relative inline-block"
6600
6611
  }, {
@@ -6628,7 +6639,7 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
6628
6639
  ]),
6629
6640
  _: 1
6630
6641
  })) : ye("", !0),
6631
- e.modelValue ? ye("", !0) : (E(), P("div", {
6642
+ e.modelValue ? ye("", !0) : (C(), P("div", {
6632
6643
  key: 2,
6633
6644
  class: Le(["relative rounded-md transition-colors", {
6634
6645
  "ring-2 ring-blue-500 ring-offset-2 bg-blue-50": s.value
@@ -6645,11 +6656,11 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
6645
6656
  disabled: e.disabled || a.value,
6646
6657
  onInput: i
6647
6658
  }, null, 8, ["name", "accept", "disabled"]),
6648
- s.value ? (E(), P("div", yu, [...p[0] || (p[0] = [
6659
+ s.value ? (C(), P("div", yu, [...p[0] || (p[0] = [
6649
6660
  T("span", { class: "text-sm text-blue-600 font-medium" }, "Drop image here", -1)
6650
6661
  ])])) : ye("", !0)
6651
6662
  ], 34)),
6652
- a.value ? (E(), P("p", bu, "Uploading...")) : ye("", !0)
6663
+ a.value ? (C(), P("p", bu, "Uploading...")) : ye("", !0)
6653
6664
  ]);
6654
6665
  };
6655
6666
  }
@@ -6733,8 +6744,8 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
6733
6744
  })[t.type]);
6734
6745
  return (l, u) => {
6735
6746
  const d = Ze("font-awesome-icon");
6736
- return E(), P("div", xu, [
6737
- a.value ? (E(), P("div", {
6747
+ return C(), P("div", xu, [
6748
+ a.value ? (C(), P("div", {
6738
6749
  key: 0,
6739
6750
  class: Le(["mx-auto flex size-12 items-center justify-center rounded-full", s.value])
6740
6751
  }, [
@@ -6746,8 +6757,8 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
6746
6757
  T("div", {
6747
6758
  class: Le(["text-center", { "mt-3 sm:mt-5": a.value }])
6748
6759
  }, [
6749
- e.title ? (E(), P("h3", wu, we(e.title), 1)) : ye("", !0),
6750
- e.message ? (E(), P("div", {
6760
+ e.title ? (C(), P("h3", wu, we(e.title), 1)) : ye("", !0),
6761
+ e.message ? (C(), P("div", {
6751
6762
  key: 1,
6752
6763
  class: Le([{ "mt-2": e.title }, "text-sm text-gray-500"])
6753
6764
  }, we(e.message), 3)) : ye("", !0)
@@ -6755,7 +6766,7 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
6755
6766
  T("div", {
6756
6767
  class: Le(["mt-5 sm:mt-6", o.value])
6757
6768
  }, [
6758
- (E(!0), P(ze, null, rt(n.value, (g, i) => (E(), Oe(oe(gt), {
6769
+ (C(!0), P(ze, null, rt(n.value, (g, i) => (C(), Oe(oe(gt), {
6759
6770
  key: i,
6760
6771
  variant: g.variant,
6761
6772
  onClick: (f) => l.$emit(g.event, g)
@@ -6772,7 +6783,7 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
6772
6783
  };
6773
6784
  class ku {
6774
6785
  constructor() {
6775
- this.state = Ct({
6786
+ this.state = Et({
6776
6787
  isVisible: !1,
6777
6788
  content: null,
6778
6789
  props: {},
@@ -6828,10 +6839,10 @@ class ku {
6828
6839
  );
6829
6840
  });
6830
6841
  }
6831
- const It = new ku(), Eu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto" }, Cu = { class: "flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0" }, Tu = {
6842
+ const It = new ku(), Cu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto" }, Eu = { class: "flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0" }, Tu = {
6832
6843
  __name: "SparkModalContainer",
6833
6844
  setup(e) {
6834
- return (t, n) => (E(), Oe(oe(Or), {
6845
+ return (t, n) => (C(), Oe(oe(Or), {
6835
6846
  as: "template",
6836
6847
  show: oe(It).state.isVisible
6837
6848
  }, {
@@ -6855,8 +6866,8 @@ const It = new ku(), Eu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
6855
6866
  ])]),
6856
6867
  _: 1
6857
6868
  }),
6858
- T("div", Eu, [
6859
- T("div", Cu, [
6869
+ T("div", Cu, [
6870
+ T("div", Eu, [
6860
6871
  se(oe(Jn), {
6861
6872
  as: "template",
6862
6873
  enter: "ease-out duration-300",
@@ -6869,7 +6880,7 @@ const It = new ku(), Eu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
6869
6880
  default: Se(() => [
6870
6881
  se(oe(Ar), { class: "relative transform overflow-hidden rounded-lg bg-white text-left shadow-xl transition-all sm:my-8 sm:w-full sm:min-w-lg sm:max-w-max" }, {
6871
6882
  default: Se(() => [
6872
- (E(), Oe(yt(oe(It).state.content), St(oe(It).state.props, gr(oe(It).state.eventHandlers)), null, 16))
6883
+ (C(), Oe(yt(oe(It).state.content), St(oe(It).state.props, gr(oe(It).state.eventHandlers)), null, 16))
6873
6884
  ]),
6874
6885
  _: 1
6875
6886
  })
@@ -6900,7 +6911,7 @@ const It = new ku(), Eu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
6900
6911
  },
6901
6912
  emits: ["close"],
6902
6913
  setup(e, { emit: t }) {
6903
- const n = Ee(null), o = {
6914
+ const n = Ce(null), o = {
6904
6915
  xs: "w-[250px]",
6905
6916
  sm: "w-[300px]",
6906
6917
  md: "w-[450px]",
@@ -6909,7 +6920,7 @@ const It = new ku(), Eu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
6909
6920
  }, r = e, a = t, s = te(() => o[r.overlayInstance.state.size] || o.md), c = () => {
6910
6921
  r.overlayInstance.close(), a("close");
6911
6922
  };
6912
- return (l, u) => (E(), Oe(oe(Or), {
6923
+ return (l, u) => (C(), Oe(oe(Or), {
6913
6924
  show: e.overlayInstance.state.isVisible,
6914
6925
  as: "template"
6915
6926
  }, {
@@ -6955,7 +6966,7 @@ const It = new ku(), Eu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
6955
6966
  ])
6956
6967
  }, {
6957
6968
  default: Se(() => [
6958
- (E(), Oe(yt(e.overlayInstance.state.content), St(e.overlayInstance.state.props, gr(e.overlayInstance.state.eventHandlers)), null, 16))
6969
+ (C(), Oe(yt(e.overlayInstance.state.content), St(e.overlayInstance.state.props, gr(e.overlayInstance.state.eventHandlers)), null, 16))
6959
6970
  ]),
6960
6971
  _: 1
6961
6972
  }, 8, ["class"])
@@ -7046,7 +7057,7 @@ const It = new ku(), Eu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
7046
7057
  return m.push(y), p ? m.push("border-primary-600 text-primary-600") : b ? m.push("border-transparent text-gray-400") : m.push("border-transparent text-gray-600 hover:text-gray-900 hover:border-gray-300"), m;
7047
7058
  }
7048
7059
  function f(p, b) {
7049
- const m = ["font-medium text-sm py-1"];
7060
+ const m = ["font-medium text-[15px]/[20px] py-2"];
7050
7061
  return p ? m.push("text-primary-600") : b ? m.push("text-gray-400") : m.push("text-gray-600 hover:text-gray-900"), m;
7051
7062
  }
7052
7063
  function h(p) {
@@ -7062,7 +7073,7 @@ const It = new ku(), Eu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
7062
7073
  m[b] || m.primary
7063
7074
  ];
7064
7075
  }
7065
- return (p, b) => (E(), P("nav", {
7076
+ return (p, b) => (C(), P("nav", {
7066
7077
  class: Le(u.value)
7067
7078
  }, [
7068
7079
  n.layout === "custom" ? Qe(p.$slots, "default", {
@@ -7072,26 +7083,26 @@ const It = new ku(), Eu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
7072
7083
  isActive: s,
7073
7084
  isDisabled: c,
7074
7085
  navigate: l
7075
- }) : n.layout === "horizontal" ? (E(), Oe(oa, {
7086
+ }) : n.layout === "horizontal" ? (C(), Oe(oa, {
7076
7087
  key: 1,
7077
7088
  class: "isolate"
7078
7089
  }, {
7079
7090
  default: Se(() => [
7080
- (E(!0), P(ze, null, rt(r.value, (m) => (E(), Oe(gt, {
7091
+ (C(!0), P(ze, null, rt(r.value, (m) => (C(), Oe(gt, {
7081
7092
  key: m.id,
7082
7093
  size: "xl",
7083
- variant: s(m) ? "primary" : "secondary",
7094
+ variant: s(m) ? "gray" : "secondary",
7084
7095
  disabled: c(m),
7085
7096
  onClick: (y) => l(m)
7086
7097
  }, {
7087
7098
  default: Se(() => [
7088
- m.icon ? (E(), Oe(oe(Gn), {
7099
+ m.icon ? (C(), Oe(oe(Gn), {
7089
7100
  key: 0,
7090
7101
  icon: oe(Fe)[m.icon],
7091
7102
  class: "mr-1.5 size-4"
7092
7103
  }, null, 8, ["icon"])) : ye("", !0),
7093
7104
  Ue(" " + we(m.label) + " ", 1),
7094
- m.badge != null ? (E(), P("span", {
7105
+ m.badge != null ? (C(), P("span", {
7095
7106
  key: 1,
7096
7107
  class: Le(h(m))
7097
7108
  }, we(m.badge), 3)) : ye("", !0)
@@ -7100,24 +7111,24 @@ const It = new ku(), Eu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
7100
7111
  }, 1032, ["variant", "disabled", "onClick"]))), 128))
7101
7112
  ]),
7102
7113
  _: 1
7103
- })) : (E(!0), P(ze, { key: 2 }, rt(r.value, (m) => (E(), P("button", {
7114
+ })) : (C(!0), P(ze, { key: 2 }, rt(r.value, (m) => (C(), P("button", {
7104
7115
  key: m.id,
7105
7116
  class: Le(g(m)),
7106
7117
  disabled: c(m) || void 0,
7107
7118
  onClick: (y) => l(m)
7108
7119
  }, [
7109
- s(m) && n.layout === "vertical" ? (E(), Oe(oe(Gn), {
7120
+ s(m) && n.layout === "vertical" ? (C(), Oe(oe(Gn), {
7110
7121
  key: 0,
7111
7122
  icon: oe(Fe).farCircleCheck,
7112
7123
  class: "mr-2 size-4"
7113
7124
  }, null, 8, ["icon"])) : ye("", !0),
7114
- m.icon && !(s(m) && n.layout === "vertical") ? (E(), Oe(oe(Gn), {
7125
+ m.icon && !(s(m) && n.layout === "vertical") ? (C(), Oe(oe(Gn), {
7115
7126
  key: 1,
7116
7127
  icon: oe(Fe)[m.icon],
7117
- class: Le(["mr-2", d.value])
7128
+ class: Le(["text-gray-400 mr-2", d.value])
7118
7129
  }, null, 8, ["icon", "class"])) : ye("", !0),
7119
7130
  T("span", null, we(m.label), 1),
7120
- m.badge != null ? (E(), P("span", {
7131
+ m.badge != null ? (C(), P("span", {
7121
7132
  key: 2,
7122
7133
  class: Le(h(m))
7123
7134
  }, we(m.badge), 3)) : ye("", !0)
@@ -7487,7 +7498,7 @@ const Wu = (e) => {
7487
7498
  console.error("Error formatting datetime:", h, { value: s, format: u }), n.textContent = s;
7488
7499
  }
7489
7500
  }, Qu = /* @__PURE__ */ new Map(), At = (e, t) => {
7490
- Ci(e, (n, o, r, a, s, c, l) => {
7501
+ Ei(e, (n, o, r, a, s, c, l) => {
7491
7502
  Ti.apply(null, [n, o, r, a, s, c, l]), t(n, o, r, a, s, c, l);
7492
7503
  }), Qu.set(e, t);
7493
7504
  }, ed = (e) => {
@@ -7618,7 +7629,7 @@ const Wu = (e) => {
7618
7629
  },
7619
7630
  setup(e) {
7620
7631
  const t = e;
7621
- return (n, o) => (E(), P("div", null, [
7632
+ return (n, o) => (C(), P("div", null, [
7622
7633
  T("div", od, [
7623
7634
  T("div", sd, [
7624
7635
  T("div", rd, [
@@ -7664,9 +7675,9 @@ const Wu = (e) => {
7664
7675
  ), u = te(() => n.sparkTable.params.page > 1);
7665
7676
  return (d, g) => {
7666
7677
  const i = Ze("font-awesome-icon");
7667
- return E(), P("div", null, [
7678
+ return C(), P("div", null, [
7668
7679
  T("div", ud, [
7669
- c.value.length > 1 ? (E(), P("div", dd, [
7680
+ c.value.length > 1 ? (C(), P("div", dd, [
7670
7681
  T("div", null, [
7671
7682
  T("nav", fd, [
7672
7683
  T("a", {
@@ -7679,7 +7690,7 @@ const Wu = (e) => {
7679
7690
  class: "size-5"
7680
7691
  }, null, 8, ["icon"])
7681
7692
  ], 2),
7682
- (E(!0), P(ze, null, rt(c.value, (f) => (E(), P("a", {
7693
+ (C(!0), P(ze, null, rt(c.value, (f) => (C(), P("a", {
7683
7694
  key: `page-${f}`,
7684
7695
  href: "#",
7685
7696
  class: Le([
@@ -7731,7 +7742,7 @@ const Wu = (e) => {
7731
7742
  };
7732
7743
  return (s, c) => {
7733
7744
  const l = Ze("FormKit");
7734
- return E(), P("div", gd, [
7745
+ return C(), P("div", gd, [
7735
7746
  se(l, {
7736
7747
  "model-value": e.sparkTable.params.limit,
7737
7748
  type: "select",
@@ -7758,7 +7769,7 @@ const Wu = (e) => {
7758
7769
  const a = "spark-table-toolbar flex flex-wrap items-center gap-x-5 w-full";
7759
7770
  return t.position === "footer" ? `${a} spark-table-toolbar-footer justify-between` : `${a} spark-table-toolbar-header gap-y-5 py-5`;
7760
7771
  });
7761
- return (a, s) => o.value ? (E(), P("div", {
7772
+ return (a, s) => o.value ? (C(), P("div", {
7762
7773
  key: 0,
7763
7774
  class: Le(r.value)
7764
7775
  }, [
@@ -7784,7 +7795,7 @@ const Wu = (e) => {
7784
7795
  }
7785
7796
  },
7786
7797
  setup(e) {
7787
- const t = e, n = Ee(""), o = t.config.param || "search";
7798
+ const t = e, n = Ce(""), o = t.config.param || "search";
7788
7799
  t.sparkTable.params[o] ? n.value = t.sparkTable.params[o] : t.config.initialValue && (n.value = t.config.initialValue, t.sparkTable.methods.applyParams({
7789
7800
  [o]: t.config.initialValue
7790
7801
  }));
@@ -7805,7 +7816,7 @@ const Wu = (e) => {
7805
7816
  }
7806
7817
  ), (s, c) => {
7807
7818
  const l = Ze("FormKit");
7808
- return E(), P("div", yd, [
7819
+ return C(), P("div", yd, [
7809
7820
  se(l, St({
7810
7821
  modelValue: n.value,
7811
7822
  "onUpdate:modelValue": c[0] || (c[0] = (u) => n.value = u),
@@ -7835,7 +7846,7 @@ const Wu = (e) => {
7835
7846
  }
7836
7847
  },
7837
7848
  setup(e) {
7838
- const t = e, n = Ee(""), o = t.config.param || `filter[${t.config.key}]`;
7849
+ const t = e, n = Ce(""), o = t.config.param || `filter[${t.config.key}]`;
7839
7850
  t.sparkTable.params[o] ? n.value = t.sparkTable.params[o] : t.config.initialValue !== void 0 && t.config.initialValue !== null && (n.value = t.config.initialValue, t.sparkTable.methods.applyParams({
7840
7851
  [o]: t.config.initialValue
7841
7852
  }));
@@ -7852,7 +7863,7 @@ const Wu = (e) => {
7852
7863
  }
7853
7864
  ), (s, c) => {
7854
7865
  const l = Ze("FormKit");
7855
- return E(), P("div", wd, [
7866
+ return C(), P("div", wd, [
7856
7867
  se(l, St({
7857
7868
  modelValue: n.value,
7858
7869
  "onUpdate:modelValue": c[0] || (c[0] = (u) => n.value = u),
@@ -7866,7 +7877,7 @@ const Wu = (e) => {
7866
7877
  ]);
7867
7878
  };
7868
7879
  }
7869
- }, kd = /* @__PURE__ */ ln(Sd, [["__scopeId", "data-v-79c78a5b"]]), Ed = { class: "spark-table-filter-buttons" }, Cd = {
7880
+ }, kd = /* @__PURE__ */ ln(Sd, [["__scopeId", "data-v-79c78a5b"]]), Cd = { class: "spark-table-filter-buttons" }, Ed = {
7870
7881
  key: 0,
7871
7882
  class: "spark-table-filter-buttons-label"
7872
7883
  }, Td = {
@@ -7885,7 +7896,7 @@ const Wu = (e) => {
7885
7896
  }
7886
7897
  },
7887
7898
  setup(e) {
7888
- const t = e, n = Ee(null), o = t.config.label || null, r = t.config.param || `filter[${t.config.key}]`;
7899
+ const t = e, n = Ce(null), o = t.config.label || null, r = t.config.param || `filter[${t.config.key}]`;
7889
7900
  t.sparkTable.params[r] !== void 0 ? n.value = t.sparkTable.params[r] : t.config.initialValue !== void 0 && (n.value = t.config.initialValue, t.config.initialValue !== null && t.sparkTable.methods.applyParams({
7890
7901
  [r]: t.config.initialValue
7891
7902
  }));
@@ -7900,15 +7911,15 @@ const Wu = (e) => {
7900
7911
  (c) => {
7901
7912
  (c == null || c === "") && n.value ? n.value = null : c !== n.value && (n.value = c);
7902
7913
  }
7903
- ), (c, l) => (E(), P("div", Ed, [
7904
- oe(o) ? (E(), P("span", Cd, we(oe(o)), 1)) : ye("", !0),
7914
+ ), (c, l) => (C(), P("div", Cd, [
7915
+ oe(o) ? (C(), P("span", Ed, we(oe(o)), 1)) : ye("", !0),
7905
7916
  se(oa, { class: "isolate" }, {
7906
7917
  default: Se(() => [
7907
- (E(!0), P(ze, null, rt(e.config.options, (u) => (E(), Oe(gt, {
7918
+ (C(!0), P(ze, null, rt(e.config.options, (u) => (C(), Oe(gt, {
7908
7919
  key: u.value,
7909
7920
  size: "xl",
7910
7921
  "button-class": "px-3.5",
7911
- variant: a(u.value) ? "primary" : "secondary",
7922
+ variant: a(u.value) ? "gray" : "secondary",
7912
7923
  onClick: (d) => s(u.value)
7913
7924
  }, {
7914
7925
  default: Se(() => [
@@ -7921,7 +7932,7 @@ const Wu = (e) => {
7921
7932
  })
7922
7933
  ]));
7923
7934
  }
7924
- }, _d = /* @__PURE__ */ ln(Td, [["__scopeId", "data-v-0eb19c63"]]), $d = { class: "spark-table-date-picker" }, Ld = {
7935
+ }, _d = /* @__PURE__ */ ln(Td, [["__scopeId", "data-v-23f7a7cc"]]), $d = { class: "spark-table-date-picker" }, Ld = {
7925
7936
  __name: "SparkTableDatePicker",
7926
7937
  props: {
7927
7938
  /** SparkTable instance object */
@@ -7937,7 +7948,7 @@ const Wu = (e) => {
7937
7948
  }
7938
7949
  },
7939
7950
  setup(e) {
7940
- const t = e, n = Ee(null), o = t.config.label || null, r = t.config.param || `filter[${t.config.key}]`, a = Ee(`${r}-0`);
7951
+ const t = e, n = Ce(null), o = t.config.label || null, r = t.config.param || `filter[${t.config.key}]`, a = Ce(`${r}-0`);
7941
7952
  return t.sparkTable.params[r] ? n.value = t.sparkTable.params[r] : t.config.initialValue ? (n.value = t.config.initialValue, t.sparkTable.methods.applyParams({
7942
7953
  [r]: t.config.initialValue
7943
7954
  })) : n.value = null, nt(n, (s) => {
@@ -7956,8 +7967,8 @@ const Wu = (e) => {
7956
7967
  }
7957
7968
  ), (s, c) => {
7958
7969
  const l = Ze("FormKit");
7959
- return E(), P("div", $d, [
7960
- (E(), Oe(l, St({
7970
+ return C(), P("div", $d, [
7971
+ (C(), Oe(l, St({
7961
7972
  key: a.value,
7962
7973
  modelValue: n.value,
7963
7974
  "onUpdate:modelValue": c[0] || (c[0] = (u) => n.value = u),
@@ -8012,7 +8023,7 @@ const Wu = (e) => {
8012
8023
  };
8013
8024
  return (o, r) => {
8014
8025
  const a = Ze("font-awesome-icon");
8015
- return E(), P("div", Od, [
8026
+ return C(), P("div", Od, [
8016
8027
  se(gt, {
8017
8028
  variant: "secondary",
8018
8029
  "button-class": "px-3.5",
@@ -8020,12 +8031,12 @@ const Wu = (e) => {
8020
8031
  onClick: n
8021
8032
  }, {
8022
8033
  default: Se(() => [
8023
- e.config.icon ? (E(), Oe(a, {
8034
+ e.config.icon ? (C(), Oe(a, {
8024
8035
  key: 0,
8025
8036
  icon: ["far", e.config.icon],
8026
8037
  class: Le({ "mr-1.5": e.config.label })
8027
8038
  }, null, 8, ["icon", "class"])) : ye("", !0),
8028
- e.config.label ? (E(), P("span", Pd, we(e.config.label), 1)) : ye("", !0)
8039
+ e.config.label ? (C(), P("span", Pd, we(e.config.label), 1)) : ye("", !0)
8029
8040
  ]),
8030
8041
  _: 1
8031
8042
  })
@@ -8135,8 +8146,8 @@ const Wu = (e) => {
8135
8146
  const y = {};
8136
8147
  return m.cellPx !== void 0 && (y["--spark-table-cell-px"] = `${m.cellPx}px`), m.cellPy !== void 0 && (y["--spark-table-cell-py"] = `${m.cellPy}px`), m.headerPx !== void 0 && (y["--spark-table-header-px"] = `${m.headerPx}px`), m.headerPy !== void 0 && (y["--spark-table-header-py"] = `${m.headerPy}px`), y;
8137
8148
  });
8138
- Ei(), Vn(xi), Vn(wi), Vn(Si), Nt(o, "settings.nestedHeaders") && Vn(ki);
8139
- const a = n, s = io("axios"), c = Ee(null), l = Ee(!1), u = Ee(null);
8149
+ Ci(), Vn(xi), Vn(wi), Vn(Si), Nt(o, "settings.nestedHeaders") && Vn(ki);
8150
+ const a = n, s = io("axios"), c = Ce(null), l = Ce(!1), u = Ce(null);
8140
8151
  let d = !1;
8141
8152
  const g = {
8142
8153
  search: xd,
@@ -8144,7 +8155,7 @@ const Wu = (e) => {
8144
8155
  filterButtons: _d,
8145
8156
  datePicker: Md,
8146
8157
  reset: Rd
8147
- }, i = Ct({
8158
+ }, i = Et({
8148
8159
  hotInstance: null,
8149
8160
  url: te(() => o.url),
8150
8161
  plugins: o.plugins,
@@ -8342,16 +8353,16 @@ const Wu = (e) => {
8342
8353
  table: c
8343
8354
  }), (m, y) => {
8344
8355
  const v = Ze("font-awesome-icon");
8345
- return E(), P("div", {
8356
+ return C(), P("div", {
8346
8357
  class: "spark-table",
8347
8358
  style: Mo(r.value)
8348
8359
  }, [
8349
- i.computed.ready && b.value && b.value.length ? (E(), Oe(rr, {
8360
+ i.computed.ready && b.value && b.value.length ? (C(), Oe(rr, {
8350
8361
  key: 0,
8351
8362
  position: "header"
8352
8363
  }, {
8353
8364
  default: Se(() => [
8354
- (E(!0), P(ze, null, rt(b.value, (S) => (E(), Oe(yt(g[S.config.type]), {
8365
+ (C(!0), P(ze, null, rt(b.value, (S) => (C(), Oe(yt(g[S.config.type]), {
8355
8366
  key: S.name,
8356
8367
  class: Le(S.config.align ? `self-${S.config.align}` : ""),
8357
8368
  "spark-table": i,
@@ -8364,7 +8375,7 @@ const Wu = (e) => {
8364
8375
  })
8365
8376
  ]),
8366
8377
  _: 3
8367
- })) : (E(), P("div", Id)),
8378
+ })) : (C(), P("div", Id)),
8368
8379
  en(se(oe(bi), {
8369
8380
  ref_key: "table",
8370
8381
  ref: c,
@@ -8373,24 +8384,24 @@ const Wu = (e) => {
8373
8384
  }, null, 8, ["settings"]), [
8374
8385
  [dr, !f.value]
8375
8386
  ]),
8376
- f.value ? (E(), P("div", Fd, [
8387
+ f.value ? (C(), P("div", Fd, [
8377
8388
  se(v, {
8378
8389
  icon: oe(Fe).farInbox,
8379
8390
  class: "size-12 mb-4 text-gray-300"
8380
8391
  }, null, 8, ["icon"]),
8381
8392
  y[0] || (y[0] = T("p", { class: "text-sm" }, "No records found", -1))
8382
8393
  ])) : ye("", !0),
8383
- i.computed.ready ? (E(), Oe(rr, {
8394
+ i.computed.ready ? (C(), Oe(rr, {
8384
8395
  key: 3,
8385
8396
  position: "footer"
8386
8397
  }, {
8387
8398
  default: Se(() => [
8388
- f.value ? ye("", !0) : (E(), Oe(cd, {
8399
+ f.value ? ye("", !0) : (C(), Oe(cd, {
8389
8400
  key: 0,
8390
8401
  "spark-table": i
8391
8402
  }, null, 8, ["spark-table"])),
8392
8403
  T("div", Dd, [
8393
- f.value ? ye("", !0) : (E(), Oe(md, {
8404
+ f.value ? ye("", !0) : (C(), Oe(md, {
8394
8405
  key: 0,
8395
8406
  "spark-table": i,
8396
8407
  onPaginate: i.methods.applyParams
@@ -8413,7 +8424,7 @@ const Wu = (e) => {
8413
8424
  }
8414
8425
  };
8415
8426
  function ir() {
8416
- const e = Ct({
8427
+ const e = Et({
8417
8428
  isVisible: !1,
8418
8429
  content: null,
8419
8430
  props: {},
@@ -8515,7 +8526,7 @@ function sm(e) {
8515
8526
  };
8516
8527
  }
8517
8528
  const Lo = "bolt-next-token", Ft = Fn("auth", () => {
8518
- const e = Ct({
8529
+ const e = Et({
8519
8530
  user: null,
8520
8531
  token: null,
8521
8532
  ready: !1,
@@ -8671,7 +8682,7 @@ function am(e = {}) {
8671
8682
  showNotification: l = !0,
8672
8683
  setFieldErrors: u = !0,
8673
8684
  setFormErrors: d = !0
8674
- } = e, g = Tt(), i = Ee(!1);
8685
+ } = e, g = Tt(), i = Ce(!1);
8675
8686
  async function f(b) {
8676
8687
  const { submitFn: m, method: y = "create", node: v = null, isEditMode: S = !1 } = b;
8677
8688
  i.value = !0, v && v.clearErrors();
@@ -8730,7 +8741,7 @@ function am(e = {}) {
8730
8741
  };
8731
8742
  }
8732
8743
  function im(e, t = {}) {
8733
- const { queryParams: n = "", fetchFn: o = null, fetchOnCreate: r = !1 } = t, a = jt(), s = Ee(null), c = Ee(null), l = te(() => a.params.id ?? null), u = te(() => l.value !== null);
8744
+ const { queryParams: n = "", fetchFn: o = null, fetchOnCreate: r = !1 } = t, a = jt(), s = Ce(null), c = Ce(null), l = te(() => a.params.id ?? null), u = te(() => l.value !== null);
8734
8745
  async function d() {
8735
8746
  if (!(!r && !u.value)) {
8736
8747
  c.value = null;
@@ -8784,7 +8795,7 @@ function lm(e, t = {}) {
8784
8795
  return { handleDelete: c };
8785
8796
  }
8786
8797
  function cm(e = {}) {
8787
- const { items: t = [], defaultId: n = null, syncToQuery: o = !1 } = e, r = o === !0 ? "tab" : o || null, a = Tt(), s = jt(), c = Ee(t.map(l));
8798
+ const { items: t = [], defaultId: n = null, syncToQuery: o = !1 } = e, r = o === !0 ? "tab" : o || null, a = Tt(), s = jt(), c = Ce(t.map(l));
8788
8799
  function l(y) {
8789
8800
  return {
8790
8801
  id: y.id,
@@ -8905,7 +8916,7 @@ function um(e = {}) {
8905
8916
  confirmText: o = "Leave",
8906
8917
  cancelText: r = "Stay",
8907
8918
  useRouteGuard: a = !0
8908
- } = e, s = `form-${++Yd}`, c = Ee(!1);
8919
+ } = e, s = `form-${++Yd}`, c = Ce(!1);
8909
8920
  xn.set(s, {
8910
8921
  isDirty: !1,
8911
8922
  message: t
@@ -9018,7 +9029,7 @@ const dm = [
9018
9029
  }, p = te(() => n.mainNavStore.state.hidden ? ["w-0 overflow-hidden"] : [n.mainNavStore.state.collapsed ? "w-[80px]" : "w-[240px]"]), b = te(() => n.mainNavStore.state.hidden ? ["pl-2.5"] : [n.mainNavStore.state.collapsed ? "pl-[80px]" : "pl-[240px]"]);
9019
9030
  return (m, y) => {
9020
9031
  const v = Ze("font-awesome-icon"), S = Ze("router-view");
9021
- return E(), P(ze, null, [
9032
+ return C(), P(ze, null, [
9022
9033
  T("div", {
9023
9034
  class: Le([p.value, "fixed inset-y-0 flex transition-all z-100"])
9024
9035
  }, [
@@ -9034,14 +9045,14 @@ const dm = [
9034
9045
  class: "size-5"
9035
9046
  }, null, 8, ["icon"])
9036
9047
  ]),
9037
- e.mainNavStore.state.collapsed ? ye("", !0) : (E(), P("a", {
9048
+ e.mainNavStore.state.collapsed ? ye("", !0) : (C(), P("a", {
9038
9049
  key: 0,
9039
9050
  class: "font-medium text-gray-800 ml-[10px] cursor-pointer",
9040
9051
  onClick: y[1] || (y[1] = Je((x) => e.mainNavStore.goto(e.appStore.state.homeRoute), ["prevent"]))
9041
9052
  }, we(e.appStore.state.app), 1))
9042
9053
  ]),
9043
9054
  T("ul", nf, [
9044
- (E(!0), P(ze, null, rt(c.value, (x) => (E(), P("li", {
9055
+ (C(!0), P(ze, null, rt(c.value, (x) => (C(), P("li", {
9045
9056
  key: x.name,
9046
9057
  class: Le({ "mt-[10px]": x.children })
9047
9058
  }, [
@@ -9053,14 +9064,14 @@ const dm = [
9053
9064
  href: x?.href,
9054
9065
  onClick: Je((_) => e.mainNavStore.goto(x.href), ["prevent"])
9055
9066
  }, [
9056
- x.icon ? (E(), Oe(v, {
9067
+ x.icon ? (C(), Oe(v, {
9057
9068
  key: 0,
9058
9069
  icon: oe(Fe)[x.icon],
9059
9070
  class: Le([[(s(x), "text-gray-400")], "size-4"])
9060
9071
  }, null, 8, ["icon", "class"])) : ye("", !0),
9061
- e.mainNavStore.state.collapsed ? x?.children ? (E(), P("div", sf, [...y[6] || (y[6] = [
9072
+ e.mainNavStore.state.collapsed ? x?.children ? (C(), P("div", sf, [...y[6] || (y[6] = [
9062
9073
  T("div", { class: "w-[10px] h-px bg-gray-400" }, null, -1)
9063
- ])])) : ye("", !0) : (E(), P("span", {
9074
+ ])])) : ye("", !0) : (C(), P("span", {
9064
9075
  key: 1,
9065
9076
  class: Le({
9066
9077
  "text-[11px]": x?.children,
@@ -9070,8 +9081,8 @@ const dm = [
9070
9081
  })
9071
9082
  }, we(x.name), 3))
9072
9083
  ], 10, of),
9073
- x.children ? (E(), P("ul", rf, [
9074
- (E(!0), P(ze, null, rt(x.children, (_) => (E(), P("li", {
9084
+ x.children ? (C(), P("ul", rf, [
9085
+ (C(!0), P(ze, null, rt(x.children, (_) => (C(), P("li", {
9075
9086
  key: _.name
9076
9087
  }, [
9077
9088
  T("a", {
@@ -9079,20 +9090,20 @@ const dm = [
9079
9090
  href: _.href,
9080
9091
  onClick: Je((M) => e.mainNavStore.goto(_.href), ["prevent"])
9081
9092
  }, [
9082
- _.icon ? (E(), Oe(v, {
9093
+ _.icon ? (C(), Oe(v, {
9083
9094
  key: 0,
9084
9095
  icon: oe(Fe)[_.icon],
9085
9096
  class: Le([[(s(_), "text-gray-400")], "size-4"])
9086
9097
  }, null, 8, ["icon", "class"])) : ye("", !0),
9087
- e.mainNavStore.state.collapsed ? ye("", !0) : (E(), P("span", lf, we(_.name), 1))
9098
+ e.mainNavStore.state.collapsed ? ye("", !0) : (C(), P("span", lf, we(_.name), 1))
9088
9099
  ], 10, af)
9089
9100
  ]))), 128))
9090
9101
  ])) : ye("", !0)
9091
9102
  ], 2))), 128))
9092
9103
  ]),
9093
9104
  T("div", cf, [
9094
- l.value.length ? (E(), P("ul", uf, [
9095
- (E(!0), P(ze, null, rt(l.value, (x) => (E(), P("li", {
9105
+ l.value.length ? (C(), P("ul", uf, [
9106
+ (C(!0), P(ze, null, rt(l.value, (x) => (C(), P("li", {
9096
9107
  key: x.name
9097
9108
  }, [
9098
9109
  T("a", {
@@ -9100,12 +9111,12 @@ const dm = [
9100
9111
  href: x.href,
9101
9112
  onClick: Je((_) => e.mainNavStore.goto(x.href), ["prevent"])
9102
9113
  }, [
9103
- x.icon ? (E(), Oe(v, {
9114
+ x.icon ? (C(), Oe(v, {
9104
9115
  key: 0,
9105
9116
  icon: oe(Fe)[x.icon],
9106
9117
  class: Le([[(s(x), "text-gray-400")], "size-4"])
9107
9118
  }, null, 8, ["icon", "class"])) : ye("", !0),
9108
- e.mainNavStore.state.collapsed ? ye("", !0) : (E(), P("span", ff, we(x.name), 1))
9119
+ e.mainNavStore.state.collapsed ? ye("", !0) : (C(), P("span", ff, we(x.name), 1))
9109
9120
  ], 10, df)
9110
9121
  ]))), 128))
9111
9122
  ])) : ye("", !0),
@@ -9140,12 +9151,12 @@ const dm = [
9140
9151
  ])
9141
9152
  ]),
9142
9153
  Qe(m.$slots, "header-center", {}, () => [
9143
- i.value ? (E(), P("div", {
9154
+ i.value ? (C(), P("div", {
9144
9155
  key: 0,
9145
9156
  class: "absolute left-1/2 -translate-x-1/2 cursor-pointer h-9 flex items-center",
9146
9157
  onClick: h
9147
9158
  }, [
9148
- oe(u).currentBrand ? (E(), P("img", {
9159
+ oe(u).currentBrand ? (C(), P("img", {
9149
9160
  key: 0,
9150
9161
  src: oe(u).currentBrand.logo,
9151
9162
  alt: "",
@@ -9155,7 +9166,7 @@ const dm = [
9155
9166
  ]),
9156
9167
  T("div", yf, [
9157
9168
  Qe(m.$slots, "header-right", {}, () => [
9158
- e.appStore.state.showAppSelector ? (E(), P("button", {
9169
+ e.appStore.state.showAppSelector ? (C(), P("button", {
9159
9170
  key: 0,
9160
9171
  class: "rounded-sm bg-white w-[42px] h-[42px] ring-1 ring-inset ring-gray-300",
9161
9172
  type: "button",
@@ -9192,11 +9203,11 @@ const dm = [
9192
9203
  }, xf = {}, wf = { class: "h-full" };
9193
9204
  function Sf(e, t) {
9194
9205
  const n = Ze("router-view");
9195
- return E(), P("main", wf, [
9206
+ return C(), P("main", wf, [
9196
9207
  se(n)
9197
9208
  ]);
9198
9209
  }
9199
- const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid place-content-center relative" }, Ef = { class: "absolute top-8 left-8" }, Cf = ["src"], Tf = {
9210
+ const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid place-content-center relative" }, Cf = { class: "absolute top-8 left-8" }, Ef = ["src"], Tf = {
9200
9211
  key: 1,
9201
9212
  width: "59",
9202
9213
  height: "23",
@@ -9223,7 +9234,7 @@ const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid
9223
9234
  }
9224
9235
  },
9225
9236
  setup(e) {
9226
- const t = Tt(), n = jt(), o = ea(), r = Ft(), a = e, s = Ee(!1), c = Ee(""), l = async (u) => {
9237
+ const t = Tt(), n = jt(), o = ea(), r = Ft(), a = e, s = Ce(!1), c = Ce(""), l = async (u) => {
9227
9238
  s.value = !0, c.value = "";
9228
9239
  try {
9229
9240
  await r.login(u);
@@ -9244,14 +9255,14 @@ const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid
9244
9255
  };
9245
9256
  return (u, d) => {
9246
9257
  const g = Ze("FormKit"), i = Ze("router-link");
9247
- return E(), P("div", kf, [
9248
- T("div", Ef, [
9249
- a.logo ? (E(), P("img", {
9258
+ return C(), P("div", kf, [
9259
+ T("div", Cf, [
9260
+ a.logo ? (C(), P("img", {
9250
9261
  key: 0,
9251
9262
  src: a.logo,
9252
9263
  alt: "Logo",
9253
9264
  class: "h-[23px] w-auto"
9254
- }, null, 8, Cf)) : (E(), P("svg", Tf, [...d[0] || (d[0] = [
9265
+ }, null, 8, Ef)) : (C(), P("svg", Tf, [...d[0] || (d[0] = [
9255
9266
  T("path", {
9256
9267
  d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
9257
9268
  fill: "#1C64F2"
@@ -9311,7 +9322,7 @@ const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid
9311
9322
  _: 1
9312
9323
  }, 8, ["to"])
9313
9324
  ]),
9314
- c.value ? (E(), P("div", Of, we(c.value), 1)) : ye("", !0),
9325
+ c.value ? (C(), P("div", Of, we(c.value), 1)) : ye("", !0),
9315
9326
  se(oe(gt), {
9316
9327
  type: "submit",
9317
9328
  size: "xl",
@@ -9319,7 +9330,7 @@ const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid
9319
9330
  "button-class": "w-full mb-2"
9320
9331
  }, {
9321
9332
  default: Se(() => [
9322
- s.value ? (E(), P("span", Af, "Signing in...")) : (E(), P("span", Pf, "Sign in"))
9333
+ s.value ? (C(), P("span", Af, "Signing in...")) : (C(), P("span", Pf, "Sign in"))
9323
9334
  ]),
9324
9335
  _: 1
9325
9336
  }, 8, ["disabled"])
@@ -9344,7 +9355,7 @@ const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid
9344
9355
  await o.logout();
9345
9356
  const a = n.query.redirect;
9346
9357
  a && a.startsWith("http") ? window.location.href = a : await t.push(a || r.defaultRedirect);
9347
- }), (a, s) => (E(), P("span"));
9358
+ }), (a, s) => (C(), P("span"));
9348
9359
  }
9349
9360
  }, Ff = { class: "h-full grid place-content-center relative" }, Df = { class: "absolute top-8 left-8" }, jf = ["src"], Hf = {
9350
9361
  key: 1,
@@ -9372,7 +9383,7 @@ const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid
9372
9383
  }
9373
9384
  },
9374
9385
  setup(e) {
9375
- const t = Ft(), n = e, o = Ee(!1), r = Ee(""), a = Ee(""), s = async ({ email: c }) => {
9386
+ const t = Ft(), n = e, o = Ce(!1), r = Ce(""), a = Ce(""), s = async ({ email: c }) => {
9376
9387
  o.value = !0, r.value = "", a.value = "";
9377
9388
  try {
9378
9389
  await vn.post(t.state.endpoints.passwordEmail, { email: c }), a.value = "Password reset link sent! Check your email.";
@@ -9384,14 +9395,14 @@ const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid
9384
9395
  };
9385
9396
  return (c, l) => {
9386
9397
  const u = Ze("FormKit"), d = Ze("router-link");
9387
- return E(), P("div", Ff, [
9398
+ return C(), P("div", Ff, [
9388
9399
  T("div", Df, [
9389
- n.logo ? (E(), P("img", {
9400
+ n.logo ? (C(), P("img", {
9390
9401
  key: 0,
9391
9402
  src: n.logo,
9392
9403
  alt: "Logo",
9393
9404
  class: "h-[23px] w-auto"
9394
- }, null, 8, jf)) : (E(), P("svg", Hf, [...l[0] || (l[0] = [
9405
+ }, null, 8, jf)) : (C(), P("svg", Hf, [...l[0] || (l[0] = [
9395
9406
  T("path", {
9396
9407
  d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
9397
9408
  fill: "#1C64F2"
@@ -9429,8 +9440,8 @@ const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid
9429
9440
  validation: "required|email",
9430
9441
  "outer-class": "max-w-full"
9431
9442
  }),
9432
- r.value ? (E(), P("div", zf, we(r.value), 1)) : ye("", !0),
9433
- a.value ? (E(), P("div", Nf, we(a.value), 1)) : ye("", !0),
9443
+ r.value ? (C(), P("div", zf, we(r.value), 1)) : ye("", !0),
9444
+ a.value ? (C(), P("div", Nf, we(a.value), 1)) : ye("", !0),
9434
9445
  se(oe(gt), {
9435
9446
  type: "submit",
9436
9447
  size: "xl",
@@ -9438,7 +9449,7 @@ const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid
9438
9449
  "button-class": "w-full mb-2"
9439
9450
  }, {
9440
9451
  default: Se(() => [
9441
- o.value ? (E(), P("span", qf, "Sending...")) : (E(), P("span", Bf, "Send reset link"))
9452
+ o.value ? (C(), P("span", qf, "Sending...")) : (C(), P("span", Bf, "Send reset link"))
9442
9453
  ]),
9443
9454
  _: 1
9444
9455
  }, 8, ["disabled"]),
@@ -9481,7 +9492,7 @@ const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid
9481
9492
  }
9482
9493
  },
9483
9494
  setup(e) {
9484
- const t = Tt(), n = jt(), o = Ft(), r = e, a = Ee(!1), s = Ee(""), c = async ({ password: l, password_confirmation: u }) => {
9495
+ const t = Tt(), n = jt(), o = Ft(), r = e, a = Ce(!1), s = Ce(""), c = async ({ password: l, password_confirmation: u }) => {
9485
9496
  a.value = !0, s.value = "";
9486
9497
  try {
9487
9498
  await vn.post(o.state.endpoints.passwordReset, {
@@ -9498,14 +9509,14 @@ const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid
9498
9509
  };
9499
9510
  return (l, u) => {
9500
9511
  const d = Ze("FormKit");
9501
- return E(), P("div", Uf, [
9512
+ return C(), P("div", Uf, [
9502
9513
  T("div", Zf, [
9503
- r.logo ? (E(), P("img", {
9514
+ r.logo ? (C(), P("img", {
9504
9515
  key: 0,
9505
9516
  src: r.logo,
9506
9517
  alt: "Logo",
9507
9518
  class: "h-[23px] w-auto"
9508
- }, null, 8, Gf)) : (E(), P("svg", Yf, [...u[0] || (u[0] = [
9519
+ }, null, 8, Gf)) : (C(), P("svg", Yf, [...u[0] || (u[0] = [
9509
9520
  T("path", {
9510
9521
  d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
9511
9522
  fill: "#1C64F2"
@@ -9551,7 +9562,7 @@ const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid
9551
9562
  validation: "required|confirm:password",
9552
9563
  "outer-class": "max-w-full"
9553
9564
  }),
9554
- s.value ? (E(), P("div", Kf, we(s.value), 1)) : ye("", !0),
9565
+ s.value ? (C(), P("div", Kf, we(s.value), 1)) : ye("", !0),
9555
9566
  se(oe(gt), {
9556
9567
  type: "submit",
9557
9568
  size: "xl",
@@ -9559,7 +9570,7 @@ const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid
9559
9570
  "button-class": "w-full mb-2"
9560
9571
  }, {
9561
9572
  default: Se(() => [
9562
- a.value ? (E(), P("span", Qf, "Resetting...")) : (E(), P("span", Jf, "Reset password"))
9573
+ a.value ? (C(), P("span", Qf, "Resetting...")) : (C(), P("span", Jf, "Reset password"))
9563
9574
  ]),
9564
9575
  _: 1
9565
9576
  }, 8, ["disabled"])
@@ -9593,14 +9604,14 @@ const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid
9593
9604
  const t = Tt(), n = e, o = () => {
9594
9605
  t.push(n.homeRoute);
9595
9606
  };
9596
- return (r, a) => (E(), P("div", tp, [
9607
+ return (r, a) => (C(), P("div", tp, [
9597
9608
  T("div", np, [
9598
- n.logo ? (E(), P("img", {
9609
+ n.logo ? (C(), P("img", {
9599
9610
  key: 0,
9600
9611
  src: n.logo,
9601
9612
  alt: "Logo",
9602
9613
  class: "h-[23px] w-auto"
9603
- }, null, 8, op)) : (E(), P("svg", sp, [...a[0] || (a[0] = [
9614
+ }, null, 8, op)) : (C(), P("svg", sp, [...a[0] || (a[0] = [
9604
9615
  T("path", {
9605
9616
  d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
9606
9617
  fill: "#1C64F2"
@@ -9666,14 +9677,14 @@ const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid
9666
9677
  const t = Tt(), n = e, o = () => {
9667
9678
  t.push(n.homeRoute);
9668
9679
  };
9669
- return (r, a) => (E(), P("div", lp, [
9680
+ return (r, a) => (C(), P("div", lp, [
9670
9681
  T("div", cp, [
9671
- n.logo ? (E(), P("img", {
9682
+ n.logo ? (C(), P("img", {
9672
9683
  key: 0,
9673
9684
  src: n.logo,
9674
9685
  alt: "Logo",
9675
9686
  class: "h-[23px] w-auto"
9676
- }, null, 8, up)) : (E(), P("svg", dp, [...a[0] || (a[0] = [
9687
+ }, null, 8, up)) : (C(), P("svg", dp, [...a[0] || (a[0] = [
9677
9688
  T("path", {
9678
9689
  d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
9679
9690
  fill: "#1C64F2"
@@ -9747,14 +9758,14 @@ const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid
9747
9758
  const t = Tt(), n = e, o = () => {
9748
9759
  t.push(n.homeRoute);
9749
9760
  };
9750
- return (r, a) => (E(), P("div", gp, [
9761
+ return (r, a) => (C(), P("div", gp, [
9751
9762
  T("div", hp, [
9752
- n.logo ? (E(), P("img", {
9763
+ n.logo ? (C(), P("img", {
9753
9764
  key: 0,
9754
9765
  src: n.logo,
9755
9766
  alt: "Logo",
9756
9767
  class: "h-[23px] w-auto"
9757
- }, null, 8, vp)) : (E(), P("svg", yp, [...a[0] || (a[0] = [
9768
+ }, null, 8, vp)) : (C(), P("svg", yp, [...a[0] || (a[0] = [
9758
9769
  T("path", {
9759
9770
  d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
9760
9771
  fill: "#1C64F2"
@@ -9838,10 +9849,10 @@ function hm(e, t = {}) {
9838
9849
  const { defaultAuthenticatedRoute: n = "/dashboard" } = t;
9839
9850
  e.beforeEach(async (o, r, a) => {
9840
9851
  const s = Ft();
9841
- s.state.ready || await s.fetchUser(), Ep(o, a, s, n);
9852
+ s.state.ready || await s.fetchUser(), Cp(o, a, s, n);
9842
9853
  });
9843
9854
  }
9844
- function Ep(e, t, n, o) {
9855
+ function Cp(e, t, n, o) {
9845
9856
  const r = e.meta.auth !== !1, a = n.check;
9846
9857
  if (n.state.overrideToken && e.path === "/logout") {
9847
9858
  t({ path: o });
@@ -9958,7 +9969,7 @@ function wm() {
9958
9969
  };
9959
9970
  }
9960
9971
  const Sm = Fn("sparkNav", () => {
9961
- const e = Ct({
9972
+ const e = Et({
9962
9973
  menu: [],
9963
9974
  collapsed: !1,
9964
9975
  hidden: !1