@wishbone-media/spark 0.50.0 → 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 {
@@ -2690,7 +2690,7 @@ const tt = new yc(), Yp = {
2690
2690
  }
2691
2691
  return l = s(l, t.buttonClass), l;
2692
2692
  });
2693
- return (l, u) => (E(), P("button", {
2693
+ return (l, u) => (C(), P("button", {
2694
2694
  ref_key: "buttonRef",
2695
2695
  ref: n,
2696
2696
  type: "button",
@@ -2704,7 +2704,7 @@ const tt = new yc(), Yp = {
2704
2704
  }, oa = {
2705
2705
  __name: "SparkButtonGroup",
2706
2706
  setup(e) {
2707
- const t = Ee(null), n = Ee(0);
2707
+ const t = Ce(null), n = Ce(0);
2708
2708
  function o() {
2709
2709
  n.value = t.value?.children.length || 0;
2710
2710
  }
@@ -2712,7 +2712,7 @@ const tt = new yc(), Yp = {
2712
2712
  isInGroup: !0,
2713
2713
  getButtonIndex: (s) => t.value ? Array.from(t.value.children).indexOf(s) : -1,
2714
2714
  getButtonCount: () => n.value
2715
- }), (s, c) => (E(), P("div", {
2715
+ }), (s, c) => (C(), P("div", {
2716
2716
  ref_key: "groupRef",
2717
2717
  ref: t,
2718
2718
  class: "inline-flex rounded-md shadow-xs"
@@ -2736,20 +2736,28 @@ const tt = new yc(), Yp = {
2736
2736
  paddedClass: {
2737
2737
  type: String,
2738
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: ""
2739
2747
  }
2740
2748
  },
2741
2749
  setup(e) {
2742
2750
  const t = e;
2743
- return (n, o) => (E(), P("div", zc, [
2744
- n.$slots.header ? (E(), P("div", Nc, [
2751
+ return (n, o) => (C(), P("div", zc, [
2752
+ n.$slots.header ? (C(), P("div", Nc, [
2745
2753
  Qe(n.$slots, "header")
2746
2754
  ])) : ye("", !0),
2747
2755
  T("div", {
2748
- 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])
2749
2757
  }, [
2750
2758
  Qe(n.$slots, "default")
2751
2759
  ], 2),
2752
- n.$slots.footer ? (E(), P("div", Bc, [
2760
+ n.$slots.footer ? (C(), P("div", Bc, [
2753
2761
  Qe(n.$slots, "footer")
2754
2762
  ])) : ye("", !0)
2755
2763
  ]));
@@ -2859,7 +2867,7 @@ const tt = new yc(), Yp = {
2859
2867
  }
2860
2868
  return (p, b) => {
2861
2869
  const m = Ze("font-awesome-icon"), y = ka("spark-tooltip");
2862
- return en((E(), Oe(yt(g.value ? "a" : "span"), {
2870
+ return en((C(), Oe(yt(g.value ? "a" : "span"), {
2863
2871
  href: i.value || void 0,
2864
2872
  target: g.value && e.openNew ? "_blank" : void 0,
2865
2873
  rel: g.value && e.openNew ? "noopener noreferrer" : void 0,
@@ -2867,18 +2875,18 @@ const tt = new yc(), Yp = {
2867
2875
  onClick: h
2868
2876
  }, {
2869
2877
  default: Se(() => [
2870
- e.icon ? (E(), Oe(m, {
2878
+ e.icon ? (C(), Oe(m, {
2871
2879
  key: 0,
2872
2880
  icon: e.icon
2873
2881
  }, null, 8, ["icon"])) : ye("", !0),
2874
2882
  Qe(p.$slots, "default", {}, () => [
2875
2883
  Ue(we(e.label), 1)
2876
2884
  ]),
2877
- e.copyToClipboard ? (E(), Oe(m, {
2885
+ e.copyToClipboard ? (C(), Oe(m, {
2878
2886
  key: 1,
2879
2887
  icon: oe(Fe).farCopy,
2880
2888
  class: "opacity-60"
2881
- }, null, 8, ["icon"])) : u.value && e.openNew ? (E(), Oe(m, {
2889
+ }, null, 8, ["icon"])) : u.value && e.openNew ? (C(), Oe(m, {
2882
2890
  key: 2,
2883
2891
  icon: oe(Fe).farArrowUpRightFromSquare,
2884
2892
  class: "opacity-60 text-[0.6em]"
@@ -3067,9 +3075,9 @@ function Gt() {
3067
3075
  ge = Pe(-1 * Math.abs(d), ge, Math.abs(d));
3068
3076
  const ie = ge * c * u;
3069
3077
  ge += ((be > W ? -1 : 1) * (Math.abs(W - be) * l) - ie) / c * ne, be += ge * ne;
3070
- const Ce = b[me] > W ? be < W : be > W;
3078
+ const Ee = b[me] > W ? be < W : be > W;
3071
3079
  let De = Math.abs(ge) < g && Math.abs(W - be) <= i;
3072
- 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;
3073
3081
  }
3074
3082
  q = !he;
3075
3083
  }
@@ -3125,28 +3133,28 @@ function Bn(e) {
3125
3133
  const t = e[0], n = e[1] || e[0];
3126
3134
  return t && n ? -1 * Math.sqrt((n.x - t.x) * (n.x - t.x) + (n.y - t.y) * (n.y - t.y)) : 0;
3127
3135
  }
3128
- const Es = (e) => {
3136
+ const Cs = (e) => {
3129
3137
  e.cancelable && e.preventDefault();
3130
3138
  }, zt = { passive: !1 }, Wc = { panThreshold: 5, swipeThreshold: 3, ignore: ["textarea", "input", "select", "[contenteditable]", "[data-selectable]", "[data-draggable]"] };
3131
3139
  let qn = !1, _n = !0;
3132
- const En = (e, t) => {
3140
+ const Cn = (e, t) => {
3133
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 = [];
3134
3142
  const ue = /* @__PURE__ */ new Map();
3135
3143
  function J(W) {
3136
- 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 };
3137
3145
  for (const at of ue.get(W) || []) at(De);
3138
3146
  }
3139
3147
  function _e(W) {
3140
- const be = W.target, ge = W.composedPath()[0], ie = c.ignore.join(","), Ce = (De) => De && De instanceof HTMLElement && (De.matches(ie) || De.closest(ie));
3141
- 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;
3142
3150
  }
3143
3151
  function ae(W) {
3144
3152
  const be = Date.now();
3145
3153
  if (ee = ee.filter((ge) => !ge.ts || ge.ts > be - 100), W && ee.push(W), x = 0, _ = 0, ee.length > 3) {
3146
3154
  const ge = ee[0], ie = ee[ee.length - 1];
3147
3155
  if (ge && ie) {
3148
- const Ce = ie.x - ge.x, De = ie.y - ge.y, at = ge.ts && ie.ts ? ie.ts - ge.ts : 0;
3149
- 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);
3150
3158
  }
3151
3159
  }
3152
3160
  }
@@ -3157,7 +3165,7 @@ const En = (e, t) => {
3157
3165
  } else qn = !0;
3158
3166
  if (typeof MouseEvent < "u" && W instanceof MouseEvent) {
3159
3167
  if (!W.buttons || W.button !== 0) return;
3160
- Es(W);
3168
+ Cs(W);
3161
3169
  }
3162
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));
3163
3171
  const be = Date.now(), ge = be - (p || be);
@@ -3169,12 +3177,12 @@ const En = (e, t) => {
3169
3177
  n = W, d = [...u], u = Ss(W);
3170
3178
  const ge = Bt(d), ie = Bt(Ss(W));
3171
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) {
3172
- const Ce = Bt(l);
3173
- 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;
3174
3182
  }
3175
3183
  if (u.length > 1) {
3176
- const Ce = Bn(u), De = Bn(d);
3177
- 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"));
3178
3186
  }
3179
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");
3180
3188
  }
@@ -3199,7 +3207,7 @@ const En = (e, t) => {
3199
3207
  }
3200
3208
  function he(W) {
3201
3209
  const be = W.target;
3202
- qn = !1, be && !W.defaultPrevented && (_n || (Es(W), W.stopPropagation()));
3210
+ qn = !1, be && !W.defaultPrevented && (_n || (Cs(W), W.stopPropagation()));
3203
3211
  }
3204
3212
  const me = { init: function() {
3205
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;
@@ -3214,17 +3222,17 @@ const En = (e, t) => {
3214
3222
  } };
3215
3223
  return me;
3216
3224
  };
3217
- En.isClickAllowed = () => _n;
3225
+ Cn.isClickAllowed = () => _n;
3218
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" };
3219
3227
  const Kt = (e) => {
3220
3228
  e.cancelable && e.preventDefault();
3221
3229
  }, ct = (e, t = 1e4) => (e = parseFloat(e + "") || 0, Math.round((e + Number.EPSILON) * t) / t), $t = (e) => e instanceof HTMLImageElement;
3222
- var re, Cs;
3230
+ var re, Es;
3223
3231
  (function(e) {
3224
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";
3225
3233
  })(re || (re = {})), (function(e) {
3226
3234
  e.Cover = "cover", e.Full = "full", e.Max = "max";
3227
- })(Cs || (Cs = {}));
3235
+ })(Es || (Es = {}));
3228
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" };
3229
3237
  let Wn, Ts = 0, _s = 0, Un = 0;
3230
3238
  const Vo = (e, t = {}, n = {}) => {
@@ -3250,64 +3258,64 @@ const Vo = (e, t = {}, n = {}) => {
3250
3258
  if (on($)) return;
3251
3259
  const N = Date.now(), D = [-w.deltaX || 0, -w.deltaY || 0, -w.detail || 0].reduce(function(Q, de) {
3252
3260
  return Math.abs(de) > Math.abs(Q) ? de : Q;
3253
- }), C = Pe(-1, D, 1);
3254
- S("wheel", w, C);
3261
+ }), E = Pe(-1, D, 1);
3262
+ S("wheel", w, E);
3255
3263
  const O = m("wheelAction");
3256
3264
  if (!O || w.defaultPrevented) return;
3257
3265
  const G = p.scale;
3258
- let K = G * (C > 0 ? 1.5 : 0.5);
3266
+ let K = G * (E > 0 ? 1.5 : 0.5);
3259
3267
  if (O === re.Zoom) {
3260
3268
  const Q = Math.abs(w.deltaY) < 100 && Math.abs(w.deltaX) < 100;
3261
3269
  if (N - _s < (Q ? 200 : 45)) return void Kt(w);
3262
3270
  _s = N;
3263
3271
  const de = ne(), ve = W();
3264
- 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;
3265
3273
  }
3266
3274
  switch (Kt(w), O) {
3267
3275
  case re.Pan:
3268
- 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 });
3269
3277
  break;
3270
3278
  case re.Zoom:
3271
- 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 } });
3272
3280
  break;
3273
3281
  default:
3274
- Ce(O, { srcEvent: w });
3282
+ Ee(O, { srcEvent: w });
3275
3283
  }
3276
3284
  }
3277
3285
  function _(w) {
3278
3286
  var $, N;
3279
3287
  const D = w.composedPath()[0];
3280
- 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;
3281
- 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) || "";
3282
3290
  if (O) {
3283
3291
  switch (Kt(w), O) {
3284
3292
  case re.ZoomTo:
3285
3293
  case re.ZoomIn:
3286
3294
  case re.ZoomOut:
3287
- Ce(O, { scale: parseFloat(G || "") || void 0 });
3295
+ Ee(O, { scale: parseFloat(G || "") || void 0 });
3288
3296
  break;
3289
3297
  case re.MoveLeft:
3290
3298
  case re.MoveRight:
3291
- Ce(O, { deltaX: parseFloat(G || "") || void 0 });
3299
+ Ee(O, { deltaX: parseFloat(G || "") || void 0 });
3292
3300
  break;
3293
3301
  case re.MoveUp:
3294
3302
  case re.MoveDown:
3295
- Ce(O, { deltaY: parseFloat(G || "") || void 0 });
3303
+ Ee(O, { deltaY: parseFloat(G || "") || void 0 });
3296
3304
  break;
3297
3305
  case re.ToggleFS:
3298
3306
  le();
3299
3307
  break;
3300
3308
  default:
3301
- Ce(O);
3309
+ Ee(O);
3302
3310
  }
3303
3311
  return;
3304
3312
  }
3305
3313
  if (!o?.contains(D)) return;
3306
3314
  const K = { srcEvent: w };
3307
- if (Ce(m("clickAction"), K), m("dblClickAction")) {
3315
+ if (Ee(m("clickAction"), K), m("dblClickAction")) {
3308
3316
  const Q = Date.now(), de = Q - (Ts || Q);
3309
- Ts = Q, de > 0 && de <= 250 ? (Wn && (clearTimeout(Wn), Wn = void 0), Ce(m("dblClickAction"), K)) : Wn = setTimeout(() => {
3310
- 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);
3311
3319
  }, 250);
3312
3320
  }
3313
3321
  }
@@ -3316,7 +3324,7 @@ const Vo = (e, t = {}, n = {}) => {
3316
3324
  const $ = q(p.scale);
3317
3325
  if (!$) return;
3318
3326
  const { x: N, y: D } = $;
3319
- Ce(re.Pan, { deltaX: N - p.x, deltaY: D - p.y });
3327
+ Ee(re.Pan, { deltaX: N - p.x, deltaY: D - p.y });
3320
3328
  }
3321
3329
  function ee() {
3322
3330
  var w;
@@ -3327,39 +3335,39 @@ const Vo = (e, t = {}, n = {}) => {
3327
3335
  if (ee(), $t(r) && (!r.complete || !r.naturalWidth)) return g = 2, o?.classList.add("has-error"), void S("error");
3328
3336
  S("loaded");
3329
3337
  const { width: w, height: $ } = ae();
3330
- $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) => {
3331
- 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");
3332
3340
  }).on("pause", (D) => {
3333
3341
  p = Object.assign(Object.assign({}, wt), D);
3334
3342
  }).on("step", (D) => {
3335
3343
  if (!y()) return void (l == null || l.end());
3336
3344
  if (h = Object.assign(Object.assign({}, wt), D), H() || !m("bounds") || Ne() || p.scale > h.scale || p.scale < he()) return void De();
3337
- const C = be(p.scale);
3345
+ const E = be(p.scale);
3338
3346
  let O = !1, G = !1, K = !1, Q = !1;
3339
- 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);
3340
3348
  let de = !1, ve = !1, Te = !1, Me = !1;
3341
- 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);
3342
3350
  let $e = !1;
3343
- (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();
3344
3352
  }).on("end", () => {
3345
3353
  c?.isPointerDown() || ge(), l?.isRunning() || (ie(), S("animationEnd"));
3346
3354
  }), (function() {
3347
3355
  const D = m("gestures");
3348
3356
  if (!D || !s || !r) return;
3349
- let C = !1;
3350
- c = En(s, D).on("start", (O) => {
3357
+ let E = !1;
3358
+ c = Cn(s, D).on("start", (O) => {
3351
3359
  if (!m("gestures") || !l || !y() || H()) return;
3352
3360
  const G = O.srcEvent;
3353
- (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");
3354
3362
  }).on("move", (O) => {
3355
3363
  var G;
3356
- 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());
3357
3365
  }).on("pan", (O) => {
3358
- if (!C) return;
3366
+ if (!E) return;
3359
3367
  const G = O.srcEvent;
3360
- (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));
3361
3369
  }).on("swipe", (O) => {
3362
- C && (p.scale > 1 || Ye(p.angle)) && Ce(re.Swipe, O);
3370
+ E && (p.scale > 1 || Ye(p.angle)) && Ee(re.Swipe, O);
3363
3371
  }).on("tap", (O) => {
3364
3372
  S("click", O);
3365
3373
  }).on("singleTap", (O) => {
@@ -3367,9 +3375,9 @@ const Vo = (e, t = {}, n = {}) => {
3367
3375
  }).on("doubleTap", (O) => {
3368
3376
  S("dblClick", O);
3369
3377
  }).on("pinch", (O) => {
3370
- 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));
3371
3379
  }).on("end", (O) => {
3372
- 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")));
3373
3381
  }).init();
3374
3382
  })(), s && (s.addEventListener("wheel", x, { passive: !1 }), b.push(() => {
3375
3383
  s?.removeEventListener("wheel", x, { passive: !1 });
@@ -3385,9 +3393,9 @@ const Vo = (e, t = {}, n = {}) => {
3385
3393
  const w = Object.assign({}, m("startPos") || {});
3386
3394
  let $ = w.scale, N = 1;
3387
3395
  N = typeof $ == "string" ? I($) : typeof $ == "number" ? $ : he();
3388
- const D = Object.assign(Object.assign(Object.assign({}, wt), w), { scale: N }), C = H() ? q(N) : void 0;
3389
- if (C) {
3390
- 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;
3391
3399
  D.x = O, D.y = G;
3392
3400
  }
3393
3401
  return D;
@@ -3422,18 +3430,18 @@ const Vo = (e, t = {}, n = {}) => {
3422
3430
  function q(w) {
3423
3431
  const $ = d || m("event"), N = o?.getBoundingClientRect();
3424
3432
  if (!$ || !N || w <= 1) return { x: 0, y: 0 };
3425
- 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);
3426
3434
  if (w > 1) {
3427
3435
  const Me = m("mouseMoveFactor");
3428
3436
  Me > 1 && (w *= Me);
3429
3437
  }
3430
- 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);
3431
3439
  return ve = Pe(K.x[0], ve, K.x[1]), Te = Pe(K.y[0], Te, K.y[1]), { x: ve, y: Te };
3432
3440
  }
3433
3441
  function I(w) {
3434
3442
  if (!w) return p.scale;
3435
3443
  if (!e) return 1;
3436
- 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) => {
3437
3445
  if (typeof ve == "number") return ve;
3438
3446
  switch (ve) {
3439
3447
  case "min":
@@ -3443,7 +3451,7 @@ const Vo = (e, t = {}, n = {}) => {
3443
3451
  return Math.max($.height / N.height, $.width / N.width) || 1;
3444
3452
  case "full":
3445
3453
  case "max": {
3446
- const Te = Ye(p.angle) ? C : D;
3454
+ const Te = Ye(p.angle) ? E : D;
3447
3455
  return Te && N.width ? Te / N.width : 1;
3448
3456
  }
3449
3457
  }
@@ -3476,14 +3484,14 @@ const Vo = (e, t = {}, n = {}) => {
3476
3484
  function be(w) {
3477
3485
  const $ = { x: [0, 0], y: [0, 0] }, N = e?.getBoundingClientRect();
3478
3486
  if (!N) return $;
3479
- const D = _e(), C = N.width, O = N.height;
3487
+ const D = _e(), E = N.width, O = N.height;
3480
3488
  let G = D.width, K = D.height, Q = w = w === void 0 ? p.scale : w, de = w;
3481
3489
  if (H() && w > 1) {
3482
3490
  const ve = m("mouseMoveFactor");
3483
- 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));
3484
3492
  }
3485
- if (G *= Q, K *= de, G > C) {
3486
- $.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);
3487
3495
  const ve = 0.5 * (D.left - N.left), Te = 0.5 * (D.left + D.width - N.right);
3488
3496
  $.x[0] -= ve + Te, $.x[1] -= ve + Te;
3489
3497
  }
@@ -3497,7 +3505,7 @@ const Vo = (e, t = {}, n = {}) => {
3497
3505
  function ge() {
3498
3506
  if (!y() || !m("bounds") || !l) return;
3499
3507
  const w = ne(), $ = W(), N = Pe(w, p.scale, $);
3500
- 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 });
3501
3509
  if (l.isRunning() || Ne()) return;
3502
3510
  const D = be(N);
3503
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();
@@ -3505,8 +3513,8 @@ const Vo = (e, t = {}, n = {}) => {
3505
3513
  function ie(w) {
3506
3514
  var $;
3507
3515
  if (!y()) return;
3508
- const N = Vt(), D = Ne(), C = A(), O = Z(), G = _t(), K = bt();
3509
- 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);
3510
3518
  const Q = Pt(), de = dt(), ve = xt(), Te = !y();
3511
3519
  for (const Me of (($ = w || e) === null || $ === void 0 ? void 0 : $.querySelectorAll("[data-panzoom-action]")) || []) {
3512
3520
  const $e = Me.dataset.panzoomAction;
@@ -3538,11 +3546,11 @@ const Vo = (e, t = {}, n = {}) => {
3538
3546
  Be ? (Me.setAttribute("aria-disabled", ""), Me.setAttribute("tabindex", "-1")) : (Me.removeAttribute("aria-disabled"), Me.removeAttribute("tabindex"));
3539
3547
  }
3540
3548
  }
3541
- function Ce(w, $) {
3549
+ function Ee(w, $) {
3542
3550
  var N;
3543
3551
  if (!(w && e && r && l && y()) || w === re.Swipe && Math.abs(l.getCurrentVelocities().scale) > 0.01) return;
3544
3552
  const D = Object.assign({}, p);
3545
- 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);
3546
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;
3547
3555
  let Te = $.center;
3548
3556
  $.srcEvent && (Te = Bt(ra($.srcEvent)));
@@ -3561,10 +3569,10 @@ const Vo = (e, t = {}, n = {}) => {
3561
3569
  $e = $.deltaY || 100;
3562
3570
  }
3563
3571
  let Be = [];
3564
- if (typeof w == "number") C.scale = w;
3572
+ if (typeof w == "number") E.scale = w;
3565
3573
  else switch (w) {
3566
3574
  case re.Reset:
3567
- C = Object.assign({}, wt), C.scale = he();
3575
+ E = Object.assign({}, wt), E.scale = he();
3568
3576
  break;
3569
3577
  case re.ZoomTo:
3570
3578
  case re.ZoomIn:
@@ -3574,7 +3582,7 @@ const Vo = (e, t = {}, n = {}) => {
3574
3582
  case re.ToggleMax:
3575
3583
  case re.IterateZoom:
3576
3584
  case re.Zoom:
3577
- C.scale = at(w, $);
3585
+ E.scale = at(w, $);
3578
3586
  break;
3579
3587
  case re.Pan:
3580
3588
  case re.Move:
@@ -3584,36 +3592,36 @@ const Vo = (e, t = {}, n = {}) => {
3584
3592
  case re.MoveDown:
3585
3593
  if (Ne()) {
3586
3594
  let je = 1, ke = 1;
3587
- 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;
3588
- } 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]);
3589
3597
  break;
3590
3598
  case re.Swipe:
3591
3599
  const Re = (je = 0) => Math.sign(je) * Math.pow(Math.abs(je), 1.5);
3592
- 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;
3593
3601
  break;
3594
3602
  case re.RotateCW:
3595
- C.angle += 90;
3603
+ E.angle += 90;
3596
3604
  break;
3597
3605
  case re.RotateCCW:
3598
- C.angle -= 90;
3606
+ E.angle -= 90;
3599
3607
  break;
3600
3608
  case re.FlipX:
3601
- C.flipX *= -1;
3609
+ E.flipX *= -1;
3602
3610
  break;
3603
3611
  case re.FlipY:
3604
- C.flipY *= -1;
3612
+ E.flipY *= -1;
3605
3613
  }
3606
- 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) {
3607
- const Re = Be.findIndex((je) => je > C.scale + 1e-4);
3608
- 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];
3609
3617
  }
3610
- if (Q && (C.scale = Pe(ne() * (Q ? 0.8 : 1), C.scale, W() * (Q ? 1.6 : 1))), H()) {
3611
- 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);
3612
3620
  if (Re) {
3613
3621
  const { x: je, y: ke } = Re;
3614
- C.x = je, C.y = ke;
3622
+ E.x = je, E.y = ke;
3615
3623
  }
3616
- } else if (Math.abs(C.scale - D.scale) > 1e-4) {
3624
+ } else if (Math.abs(E.scale - D.scale) > 1e-4) {
3617
3625
  let Re = 0, je = 0;
3618
3626
  if (Te) Re = Te.x, je = Te.y;
3619
3627
  else {
@@ -3623,16 +3631,16 @@ const Vo = (e, t = {}, n = {}) => {
3623
3631
  let ke = Re - K.left, k = je - K.top;
3624
3632
  ke -= 0.5 * K.width, k -= 0.5 * K.height;
3625
3633
  const L = (ke - D.x) / D.scale, R = (k - D.y) / D.scale;
3626
- 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]));
3627
3635
  }
3628
3636
  if (w === re.Swipe) {
3629
- let Re = 94, je = 17, ke = 500 * C.scale, k = G;
3637
+ let Re = 94, je = 17, ke = 500 * E.scale, k = G;
3630
3638
  l.spring({ tension: Re, friction: je, maxSpeed: ke, restDelta: 0.1, restSpeed: 0.1, velocity: k });
3631
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 });
3632
- 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();
3633
3641
  else {
3634
- if (An(p, C)) return;
3635
- l.from(h).to(C).start();
3642
+ if (An(p, E)) return;
3643
+ l.from(h).to(E).start();
3636
3644
  }
3637
3645
  S("action", w);
3638
3646
  }
@@ -3648,12 +3656,12 @@ const Vo = (e, t = {}, n = {}) => {
3648
3656
  Me > $e ? (V = fe, z = xe) : (V = xe, z = fe), Y = Me > $e ? fe * k / Me || 1 : fe * k / $e || 1;
3649
3657
  let Ae = V ? Me * ce : 0, He = z ? $e * ce : 0, We = V && z ? Me * Y / Ae : 0;
3650
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 };
3651
- })(), { x: D, y: C, width: O, height: G, scale: K, angle: Q, flipX: de, flipY: ve } = N;
3652
- 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)`;
3653
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");
3654
3662
  }
3655
3663
  function at(w = m("clickAction"), $ = {}) {
3656
- let N = p.scale, D = he(), C = [];
3664
+ let N = p.scale, D = he(), E = [];
3657
3665
  if (typeof w == "number") D = w;
3658
3666
  else if (w) {
3659
3667
  switch (w) {
@@ -3667,16 +3675,16 @@ const Vo = (e, t = {}, n = {}) => {
3667
3675
  D = N * ($.scale || 0.5);
3668
3676
  break;
3669
3677
  case re.ToggleCover:
3670
- C = [he(), I("cover")];
3678
+ E = [he(), I("cover")];
3671
3679
  break;
3672
3680
  case re.ToggleFull:
3673
- C = [he(), me()];
3681
+ E = [he(), me()];
3674
3682
  break;
3675
3683
  case re.ToggleMax:
3676
- C = [he(), W()];
3684
+ E = [he(), W()];
3677
3685
  break;
3678
3686
  case re.IterateZoom:
3679
- C = [he(), me(), W()];
3687
+ E = [he(), me(), W()];
3680
3688
  break;
3681
3689
  case re.Zoom: {
3682
3690
  const O = me();
@@ -3684,8 +3692,8 @@ const Vo = (e, t = {}, n = {}) => {
3684
3692
  break;
3685
3693
  }
3686
3694
  }
3687
- if (C.length) {
3688
- const O = C.find((G) => G > N + 1e-4);
3695
+ if (E.length) {
3696
+ const O = E.find((G) => G > N + 1e-4);
3689
3697
  D = O ?? he();
3690
3698
  }
3691
3699
  }
@@ -3735,7 +3743,7 @@ const Vo = (e, t = {}, n = {}) => {
3735
3743
  for (const w of Object.values(f)) w?.destroy(U);
3736
3744
  for (const w of b) w();
3737
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;
3738
- }, emit: S, execute: Ce, getBoundaries: be, getContainer: function() {
3746
+ }, emit: S, execute: Ee, getBoundaries: be, getContainer: function() {
3739
3747
  return e;
3740
3748
  }, getContent: function() {
3741
3749
  return r;
@@ -3764,9 +3772,9 @@ const Vo = (e, t = {}, n = {}) => {
3764
3772
  S("initPlugins");
3765
3773
  })(), (function() {
3766
3774
  var w, $, N;
3767
- 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();
3768
- if (!(!C || !O || !G) && e && (pe(e, D.container), r = e.querySelector(`.${C}:not(.is-clone)`), !!r)) {
3769
- 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"))) {
3770
3778
  s.addEventListener("contextmenu", (Q) => {
3771
3779
  Kt(Q);
3772
3780
  });
@@ -3807,9 +3815,9 @@ const Vo = (e, t = {}, n = {}) => {
3807
3815
  })(), U;
3808
3816
  }, isDragging: Ne, isExpanded: A, isFullsize: Z, isMousemoveMode: H, localize: function(w, $ = []) {
3809
3817
  const N = m("l10n") || {};
3810
- w = String(w).replace(/\{\{(\w+)\}\}/g, (D, C) => N[C] || D);
3818
+ w = String(w).replace(/\{\{(\w+)\}\}/g, (D, E) => N[E] || D);
3811
3819
  for (let D = 0; D < $.length; D++) w = w.split($[D][0]).join($[D][1]);
3812
- return w = w.replace(/\{\{(.*?)\}\}/g, (D, C) => C);
3820
+ return w = w.replace(/\{\{(.*?)\}\}/g, (D, E) => E);
3813
3821
  }, off: function(w, $) {
3814
3822
  for (const N of w instanceof Array ? w : [w]) v.has(N) && v.set(N, v.get(N).filter((D) => D !== $));
3815
3823
  return U;
@@ -3853,7 +3861,7 @@ const ro = (e, t = {}, n = {}) => {
3853
3861
  for (const F of R) F && F instanceof Function && F(ke, ...L);
3854
3862
  k === "click" && K(L[0]), k !== "*" && ie("*", k, ...L);
3855
3863
  }
3856
- function Ce() {
3864
+ function Ee() {
3857
3865
  var k, L;
3858
3866
  const R = pt({}, $n, u);
3859
3867
  let F = "";
@@ -3933,7 +3941,7 @@ const ro = (e, t = {}, n = {}) => {
3933
3941
  function at() {
3934
3942
  W("gestures") === !1 ? o && (o.destroy(), o = void 0) : o || (function() {
3935
3943
  const k = W("gestures");
3936
- !o && k !== !1 && f && (o = En(f, k).on("start", (L) => {
3944
+ !o && k !== !1 && f && (o = Cn(f, k).on("start", (L) => {
3937
3945
  var R, F;
3938
3946
  if (!r || W("gestures", L) === !1) return;
3939
3947
  const { srcEvent: X } = L;
@@ -3942,7 +3950,7 @@ const ro = (e, t = {}, n = {}) => {
3942
3950
  V && H.has(V.index) && z && (x = V.offset || 0, x += ((function(Y) {
3943
3951
  const ce = window.getComputedStyle(Y), fe = new DOMMatrixReadOnly(ce.transform);
3944
3952
  return { width: fe.m41 || 0, height: fe.m42 || 0 };
3945
- })(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();
3946
3954
  }).on("move", (L) => {
3947
3955
  var R, F;
3948
3956
  if (W("gestures", L) === !1) return;
@@ -4182,7 +4190,7 @@ const ro = (e, t = {}, n = {}) => {
4182
4190
  const F = [`f-${R}Out`, `f-${R}In`, "to-prev", "to-next", "from-prev", "from-next"];
4183
4191
  k.removeEventListener("animationend", O), et(k, F.join(" ")), H.delete(L);
4184
4192
  }
4185
- function C() {
4193
+ function E() {
4186
4194
  if (!f) return;
4187
4195
  const k = H.size > 0;
4188
4196
  for (const L of j) D(L.el);
@@ -4260,14 +4268,14 @@ const ro = (e, t = {}, n = {}) => {
4260
4268
  fe = m ? (fe % Xe + Xe) % Xe : Pe(0, fe, Xe - 1), y && (Ke *= -1);
4261
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;
4262
4270
  if (st === void 0 || ft === void 0 || ft === st || x === rs || Math.abs(h - (Ve?.dim || 0)) > 1) return !1;
4263
- _ = !1, r.pause(), C(), pe(i, "in-transition"), x = ee = rs;
4271
+ _ = !1, r.pause(), E(), pe(i, "in-transition"), x = ee = rs;
4264
4272
  const cn = U(it), un = U(Ve);
4265
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;
4266
4274
  })(k, X)) return;
4267
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;
4268
4276
  const ce = r.isRunning() ? r.getEndValues().pos : x;
4269
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")));
4270
- if (r.pause(), C(), m) {
4278
+ if (r.pause(), E(), m) {
4271
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;
4272
4280
  ee = [Ae + fe, Ae, Ae - fe].reduce(function(He, We) {
4273
4281
  return Math.abs(We - ce) < Math.abs(He - ce) ? We : He;
@@ -4333,7 +4341,7 @@ const ro = (e, t = {}, n = {}) => {
4333
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;
4334
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;
4335
4343
  }, canGoPrev: Re, canGoNext: je, destroy: function() {
4336
- 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;
4337
4345
  }, emit: ie, filter: function(k = "*") {
4338
4346
  return _t(k), N(), x = Pe(ue, x, J), $e(), ie("filter", k), ke;
4339
4347
  }, getContainer: function() {
@@ -4400,7 +4408,7 @@ const ro = (e, t = {}, n = {}) => {
4400
4408
  return s !== void 0;
4401
4409
  }, hideError: de, hideLoading: Q, init: function() {
4402
4410
  if (!e || !mn(e)) throw new Error("No Element found");
4403
- 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;
4404
4412
  }, isInfinite: function() {
4405
4413
  return m;
4406
4414
  }, isInTransition: function() {
@@ -4422,7 +4430,7 @@ const ro = (e, t = {}, n = {}) => {
4422
4430
  }, prev: function(k = {}) {
4423
4431
  return Te(M - 1, k), ke;
4424
4432
  }, reInit: function(k = {}, L) {
4425
- 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;
4426
4434
  }, remove: function(k) {
4427
4435
  k === void 0 && (k = ae.length - 1);
4428
4436
  const L = ae[k];
@@ -4838,13 +4846,13 @@ const Ns = { autoStart: !0, pauseOnHover: !0, showProgressbar: !0, timeout: 2e3
4838
4846
  } };
4839
4847
  return S;
4840
4848
  };
4841
- 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" };
4842
- 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;
4843
4851
  const Yc = () => {
4844
4852
  let e, t, n, o, r, a = 0, s = 0, c = !0;
4845
4853
  function l(j) {
4846
4854
  const H = e?.getOptions().Thumbs;
4847
- 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];
4848
4856
  return q && typeof q == "function" && e ? q(e) : q;
4849
4857
  }
4850
4858
  function u() {
@@ -4908,7 +4916,7 @@ const Yc = () => {
4908
4916
  }
4909
4917
  function m() {
4910
4918
  var j;
4911
- if (!Co || !e || !n || g() || t) return;
4919
+ if (!Eo || !e || !n || g() || t) return;
4912
4920
  const H = i();
4913
4921
  if (!H.length) return;
4914
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) => {
@@ -4918,8 +4926,8 @@ const Yc = () => {
4918
4926
  const he = (me) => n && parseFloat(getComputedStyle(n).getPropertyValue("--f-thumb-" + me)) || 0;
4919
4927
  a = he("width"), s = he("clip-width");
4920
4928
  })(), ne = 4 * (a - s)), I && I.getTotalSlideDim() <= I.getViewportDim() - ne ? 1 / 0 : 1;
4921
- } }, Eo.Carousel || {}, l("Carousel") || {});
4922
- 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", () => {
4923
4931
  pe(n, "is-syncing"), e?.emit("thumbs:ready"), d() && e?.on("render", x);
4924
4932
  }), t.on("destroy", () => {
4925
4933
  e?.emit("thumbs:destroy");
@@ -5008,7 +5016,7 @@ const Yc = () => {
5008
5016
  }
5009
5017
  }
5010
5018
  return { init: function(j, H) {
5011
- 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", _);
5012
5020
  }, destroy: function() {
5013
5021
  var j, H;
5014
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;
@@ -5520,12 +5528,12 @@ const Ks = "with-fancybox", nu = () => {
5520
5528
  const w = new XMLHttpRequest();
5521
5529
  w.onreadystatechange = function() {
5522
5530
  if (w.readyState === XMLHttpRequest.DONE && c === Ge.Ready) if (o?.hideLoading(B), B.state = 1, w.status === 200) {
5523
- let N = w.responseText + "", D = null, C = null;
5531
+ let N = w.responseText + "", D = null, E = null;
5524
5532
  if (B.filter) {
5525
5533
  const O = document.createElement("div");
5526
- O.innerHTML = N, C = O.querySelector(B.filter + "");
5534
+ O.innerHTML = N, E = O.querySelector(B.filter + "");
5527
5535
  }
5528
- 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);
5529
5537
  } else o?.showError(B);
5530
5538
  };
5531
5539
  const $ = p("ajax") || null;
@@ -5542,7 +5550,7 @@ const Ks = "with-fancybox", nu = () => {
5542
5550
  function _(A) {
5543
5551
  if (!be()) return;
5544
5552
  if (c !== Ge.Ready) return Lt(A), void A.stopPropagation();
5545
- if (A.defaultPrevented || !En.isClickAllowed()) return;
5553
+ if (A.defaultPrevented || !Cn.isClickAllowed()) return;
5546
5554
  const Z = A.composedPath()[0];
5547
5555
  Z.closest(".fancybox__carousel") && Z.classList.contains("fancybox__slide") && H(A);
5548
5556
  }
@@ -5558,7 +5566,7 @@ const Ks = "with-fancybox", nu = () => {
5558
5566
  var A;
5559
5567
  (function() {
5560
5568
  const le = o?.getViewport();
5561
- if (!p("dragToClose") || !o || !le || (r = En(le).init(), !r)) return;
5569
+ if (!p("dragToClose") || !o || !le || (r = Cn(le).init(), !r)) return;
5562
5570
  let B = !1, U = 0, w = 0, $ = {}, N = 1;
5563
5571
  function D() {
5564
5572
  var O, G;
@@ -5570,7 +5578,7 @@ const Ks = "with-fancybox", nu = () => {
5570
5578
  Q.execute(re.ZoomTo, { scale: de });
5571
5579
  }
5572
5580
  }
5573
- const C = (O) => {
5581
+ const E = (O) => {
5574
5582
  var G;
5575
5583
  const K = O.srcEvent, Q = K.target;
5576
5584
  return o && !(Mn(K) && ((G = K.touches) === null || G === void 0 ? void 0 : G.length) > 1) && Q && !on(Q);
@@ -5586,7 +5594,7 @@ const Ks = "with-fancybox", nu = () => {
5586
5594
  B || (a?.pause(), w = U);
5587
5595
  }).on("panstart", (O) => {
5588
5596
  var G, K;
5589
- if (!B && C(O) && O.axis === "y") {
5597
+ if (!B && E(O) && O.axis === "y") {
5590
5598
  Lt(O.srcEvent), B = !0, Pt(), (G = o?.getViewport()) === null || G === void 0 || G.classList.add("is-dragging");
5591
5599
  const Q = (K = ge()) === null || K === void 0 ? void 0 : K.panzoomRef;
5592
5600
  if (Q) {
@@ -5596,7 +5604,7 @@ const Ks = "with-fancybox", nu = () => {
5596
5604
  }
5597
5605
  } else B = !1;
5598
5606
  }).on("pan", function(O) {
5599
- 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()));
5600
5608
  }).on("end", (O) => {
5601
5609
  var G, K, Q;
5602
5610
  if ((G = o?.getViewport()) === null || G === void 0 || G.classList.remove("is-dragging"), B) {
@@ -5606,7 +5614,7 @@ const Ks = "with-fancybox", nu = () => {
5606
5614
  const ve = de.getOptions();
5607
5615
  ve.bounds = $.bounds || !1, ve.gestures = $.gestures || !1;
5608
5616
  }
5609
- 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"));
5610
5618
  }
5611
5619
  B = !1, c === Ge.Ready && U !== 0 && (w = 0, D());
5612
5620
  });
@@ -5684,7 +5692,7 @@ const Ks = "with-fancybox", nu = () => {
5684
5692
  function W(A) {
5685
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;
5686
5694
  f = !1;
5687
- 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;
5688
5696
  if (Z && le && B) {
5689
5697
  const { x: w, y: $, scale: N } = Z.getStartPosition();
5690
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();
@@ -5704,7 +5712,7 @@ const Ks = "with-fancybox", nu = () => {
5704
5712
  const A = ge();
5705
5713
  return A ? A.triggerEl || p("triggerEl") : void 0;
5706
5714
  }
5707
- function Ce(A) {
5715
+ function Ee(A) {
5708
5716
  var Z, le;
5709
5717
  const B = A.thumbEl;
5710
5718
  if (!B || !((K) => {
@@ -5719,8 +5727,8 @@ const Ks = "with-fancybox", nu = () => {
5719
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;
5720
5728
  if (!w || !$) return;
5721
5729
  const N = B.getBoundingClientRect();
5722
- let D = N.width, C = N.height, O = N.left, G = N.top;
5723
- if (!(!N || !D || !C)) {
5730
+ let D = N.width, E = N.height, O = N.left, G = N.top;
5731
+ if (!(!N || !D || !E)) {
5724
5732
  if (B instanceof HTMLImageElement) {
5725
5733
  const K = window.getComputedStyle(B).getPropertyValue("object-fit");
5726
5734
  if (K === "contain" || K === "scale-down") {
@@ -5730,12 +5738,12 @@ const Ks = "with-fancybox", nu = () => {
5730
5738
  ve *= ke, Te *= ke;
5731
5739
  }
5732
5740
  return { width: ve, height: Te };
5733
- })(B.naturalWidth, B.naturalHeight, D, C, K);
5734
- 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;
5735
5743
  }
5736
5744
  }
5737
- if (!(Math.abs(w / $ - D / C) > 0.1))
5738
- 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 };
5739
5747
  }
5740
5748
  }
5741
5749
  function De() {
@@ -5778,8 +5786,8 @@ const Ks = "with-fancybox", nu = () => {
5778
5786
  }
5779
5787
  const D = o?.getPlugins();
5780
5788
  ($ = D?.Autoplay) === null || $ === void 0 || $.stop();
5781
- const C = D?.Fullscreen;
5782
- C && C.inFullscreen() ? Promise.resolve(C.exit()).then(() => {
5789
+ const E = D?.Fullscreen;
5790
+ E && E.inFullscreen() ? Promise.resolve(E.exit()).then(() => {
5783
5791
  setTimeout(() => {
5784
5792
  Vt(A, Z);
5785
5793
  }, 150);
@@ -5791,14 +5799,14 @@ const Ks = "with-fancybox", nu = () => {
5791
5799
  y("close", A), f = !1, document.body.removeEventListener("click", ne), document.body.removeEventListener("keydown", I, { passive: !1, capture: !0 }), p("placeFocusBack") && Pt();
5792
5800
  const U = document.activeElement;
5793
5801
  U && e?.contains(U) && U.blur(), p("fadeEffect") && (t?.classList.remove("is-ready"), t?.classList.add("is-hiding")), t?.classList.add("is-closing");
5794
- 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");
5795
5803
  let O = !1, G = !1;
5796
5804
  if (o && w && $ && N && D) {
5797
5805
  let Q;
5798
- if (p("zoomEffect") && w.state === 1 && (Q = Ce(w)), Q) {
5806
+ if (p("zoomEffect") && w.state === 1 && (Q = Ee(w)), Q) {
5799
5807
  O = !0;
5800
5808
  const de = () => {
5801
- 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();
5802
5810
  };
5803
5811
  N.on("refresh", () => {
5804
5812
  de();
@@ -5808,7 +5816,7 @@ const Ks = "with-fancybox", nu = () => {
5808
5816
  }
5809
5817
  }
5810
5818
  const K = w?.htmlEl || ((B = w?.panzoomRef) === null || B === void 0 ? void 0 : B.getWrapper());
5811
- K && fa(K), !O && C && K && (G = !0, Xs(K, C, () => {
5819
+ K && fa(K), !O && E && K && (G = !0, Xs(K, E, () => {
5812
5820
  Ye();
5813
5821
  })), O || G ? setTimeout(() => {
5814
5822
  Ye();
@@ -5859,20 +5867,20 @@ const Ks = "with-fancybox", nu = () => {
5859
5867
  const w = p("mainClass");
5860
5868
  w && pe(t, w);
5861
5869
  const $ = p("mainStyle");
5862
- 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);
5863
5871
  const N = p("theme"), D = N === "auto" ? window.matchMedia("(prefers-color-scheme:light)").matches : N === "light";
5864
- t.setAttribute("theme", D ? "light" : "dark"), e.setAttribute("id", `${u}`), e.addEventListener("keydown", (C) => {
5865
- C.key === "Escape" && Lt(C);
5866
- }), e.addEventListener("wheel", (C) => {
5867
- const O = C.target;
5868
- 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);
5869
5877
  O.closest(".f-thumbs") && (G = "slide");
5870
- 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) {
5871
5879
  return Math.abs(Me) > Math.abs(Te) ? Me : Te;
5872
5880
  }), de = Math.max(-1, Math.min(1, Q)), ve = Date.now();
5873
- 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"]())));
5874
- }, { capture: !0, passive: !1 }), e.addEventListener("cancel", (C) => {
5875
- 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);
5876
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());
5877
5885
  })(), (function() {
5878
5886
  if (n = e?.querySelector(".fancybox__carousel") || void 0, !n) return;
@@ -6048,7 +6056,7 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
6048
6056
  }
6049
6057
  },
6050
6058
  setup(e) {
6051
- const t = e, n = Ee(null);
6059
+ const t = e, n = Ce(null);
6052
6060
  function o() {
6053
6061
  n.value && qe.bind(n.value, t.selector, { ...t.options });
6054
6062
  }
@@ -6059,7 +6067,7 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
6059
6067
  r(), o();
6060
6068
  }), In(() => {
6061
6069
  r(), qe.close();
6062
- }), (a, s) => (E(), P("div", {
6070
+ }), (a, s) => (C(), P("div", {
6063
6071
  ref_key: "containerRef",
6064
6072
  ref: n
6065
6073
  }, [
@@ -6111,7 +6119,7 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
6111
6119
  }
6112
6120
  },
6113
6121
  setup(e) {
6114
- 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);
6115
6123
  let c = null, l = null;
6116
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(() => {
6117
6125
  const v = [Wr(t.offset), Zr(), Ur({ padding: 8 })];
@@ -6155,7 +6163,7 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
6155
6163
  }
6156
6164
  return In(() => {
6157
6165
  clearTimeout(c), clearTimeout(l);
6158
- }), (v, S) => (E(), P(ze, null, [
6166
+ }), (v, S) => (C(), P(ze, null, [
6159
6167
  T("div", {
6160
6168
  ref_key: "referenceRef",
6161
6169
  ref: o,
@@ -6167,10 +6175,10 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
6167
6175
  }, [
6168
6176
  Qe(v.$slots, "default")
6169
6177
  ], 544),
6170
- (E(), Oe(pr, { to: "body" }, [
6178
+ (C(), Oe(pr, { to: "body" }, [
6171
6179
  se(fr, { name: "spark-tooltip" }, {
6172
6180
  default: Se(() => [
6173
- s.value ? (E(), P("div", {
6181
+ s.value ? (C(), P("div", {
6174
6182
  key: 0,
6175
6183
  ref_key: "floatingRef",
6176
6184
  ref: r,
@@ -6181,12 +6189,12 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
6181
6189
  onMouseleave: y
6182
6190
  }, [
6183
6191
  Qe(v.$slots, "content", {}, () => [
6184
- e.html ? (E(), P("span", {
6192
+ e.html ? (C(), P("span", {
6185
6193
  key: 0,
6186
6194
  innerHTML: e.content
6187
- }, null, 8, su)) : (E(), P("span", ru, we(e.content), 1))
6195
+ }, null, 8, su)) : (C(), P("span", ru, we(e.content), 1))
6188
6196
  ]),
6189
- e.showArrow ? (E(), P("div", {
6197
+ e.showArrow ? (C(), P("div", {
6190
6198
  key: 0,
6191
6199
  ref_key: "arrowRef",
6192
6200
  ref: a,
@@ -6292,7 +6300,7 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
6292
6300
  "file-cleared"
6293
6301
  ],
6294
6302
  setup(e, { expose: t, emit: n }) {
6295
- 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);
6296
6304
  function d() {
6297
6305
  o.disabled || c.value || (l.value = !0);
6298
6306
  }
@@ -6370,9 +6378,9 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
6370
6378
  uploading: c
6371
6379
  }), (y, v) => {
6372
6380
  const S = Ze("FormKit"), x = Ze("font-awesome-icon");
6373
- return E(), P("div", null, [
6374
- e.label ? (E(), P("label", au, we(e.label), 1)) : ye("", !0),
6375
- 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", {
6376
6384
  key: 1,
6377
6385
  class: Le(["border-2 border-dashed border-gray-300 rounded-lg p-8 text-center transition-colors", {
6378
6386
  "border-blue-500 bg-blue-50": l.value,
@@ -6393,7 +6401,7 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
6393
6401
  "outer-class": "hidden",
6394
6402
  onInput: h
6395
6403
  }, null, 8, ["name", "accept", "disabled"]),
6396
- s.value ? (E(), P("div", cu, [
6404
+ s.value ? (C(), P("div", cu, [
6397
6405
  se(x, {
6398
6406
  icon: oe(Fe).farFile,
6399
6407
  class: "text-2xl text-gray-500"
@@ -6411,7 +6419,7 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
6411
6419
  ]),
6412
6420
  _: 1
6413
6421
  })
6414
- ])) : (E(), P("div", iu, [
6422
+ ])) : (C(), P("div", iu, [
6415
6423
  se(x, {
6416
6424
  icon: e.icon,
6417
6425
  class: "text-4xl text-gray-400 mb-3"
@@ -6427,7 +6435,7 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
6427
6435
  _: 1
6428
6436
  })
6429
6437
  ]))
6430
- ], 34)) : (E(), P("div", {
6438
+ ], 34)) : (C(), P("div", {
6431
6439
  key: 2,
6432
6440
  class: Le(["relative rounded-md transition-colors", {
6433
6441
  "ring-2 ring-blue-500 ring-offset-2 bg-blue-50": l.value
@@ -6444,18 +6452,18 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
6444
6452
  disabled: e.disabled || c.value,
6445
6453
  onInput: h
6446
6454
  }, null, 8, ["name", "accept", "disabled"]),
6447
- l.value ? (E(), P("div", du, [...v[0] || (v[0] = [
6455
+ l.value ? (C(), P("div", du, [...v[0] || (v[0] = [
6448
6456
  T("span", { class: "text-sm text-blue-600 font-medium" }, "Drop file here", -1)
6449
6457
  ])])) : ye("", !0)
6450
6458
  ], 34)),
6451
- e.showUploadButton ? (E(), P("div", fu, [
6459
+ e.showUploadButton ? (C(), P("div", fu, [
6452
6460
  se(gt, {
6453
6461
  size: "lg",
6454
6462
  disabled: !s.value || c.value,
6455
6463
  onClick: m
6456
6464
  }, {
6457
6465
  default: Se(() => [
6458
- c.value ? (E(), Oe(x, {
6466
+ c.value ? (C(), Oe(x, {
6459
6467
  key: 0,
6460
6468
  icon: oe(Fe).farSpinner,
6461
6469
  class: "mr-2 animate-spin"
@@ -6465,7 +6473,7 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
6465
6473
  _: 1
6466
6474
  }, 8, ["disabled"])
6467
6475
  ])) : ye("", !0),
6468
- 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)
6469
6477
  ]);
6470
6478
  };
6471
6479
  }
@@ -6528,7 +6536,7 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
6528
6536
  },
6529
6537
  emits: ["update:modelValue", "upload-start", "upload-success", "upload-error"],
6530
6538
  setup(e, { emit: t }) {
6531
- 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);
6532
6540
  function c() {
6533
6541
  o("update:modelValue", "");
6534
6542
  }
@@ -6595,9 +6603,9 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
6595
6603
  }
6596
6604
  return (h, p) => {
6597
6605
  const b = Ze("font-awesome-icon"), m = Ze("FormKit");
6598
- return E(), P("div", null, [
6599
- e.label ? (E(), P("label", mu, we(e.label), 1)) : ye("", !0),
6600
- 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, {
6601
6609
  key: 1,
6602
6610
  class: "mb-2 relative inline-block"
6603
6611
  }, {
@@ -6631,7 +6639,7 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
6631
6639
  ]),
6632
6640
  _: 1
6633
6641
  })) : ye("", !0),
6634
- e.modelValue ? ye("", !0) : (E(), P("div", {
6642
+ e.modelValue ? ye("", !0) : (C(), P("div", {
6635
6643
  key: 2,
6636
6644
  class: Le(["relative rounded-md transition-colors", {
6637
6645
  "ring-2 ring-blue-500 ring-offset-2 bg-blue-50": s.value
@@ -6648,11 +6656,11 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
6648
6656
  disabled: e.disabled || a.value,
6649
6657
  onInput: i
6650
6658
  }, null, 8, ["name", "accept", "disabled"]),
6651
- s.value ? (E(), P("div", yu, [...p[0] || (p[0] = [
6659
+ s.value ? (C(), P("div", yu, [...p[0] || (p[0] = [
6652
6660
  T("span", { class: "text-sm text-blue-600 font-medium" }, "Drop image here", -1)
6653
6661
  ])])) : ye("", !0)
6654
6662
  ], 34)),
6655
- a.value ? (E(), P("p", bu, "Uploading...")) : ye("", !0)
6663
+ a.value ? (C(), P("p", bu, "Uploading...")) : ye("", !0)
6656
6664
  ]);
6657
6665
  };
6658
6666
  }
@@ -6736,8 +6744,8 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
6736
6744
  })[t.type]);
6737
6745
  return (l, u) => {
6738
6746
  const d = Ze("font-awesome-icon");
6739
- return E(), P("div", xu, [
6740
- a.value ? (E(), P("div", {
6747
+ return C(), P("div", xu, [
6748
+ a.value ? (C(), P("div", {
6741
6749
  key: 0,
6742
6750
  class: Le(["mx-auto flex size-12 items-center justify-center rounded-full", s.value])
6743
6751
  }, [
@@ -6749,8 +6757,8 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
6749
6757
  T("div", {
6750
6758
  class: Le(["text-center", { "mt-3 sm:mt-5": a.value }])
6751
6759
  }, [
6752
- e.title ? (E(), P("h3", wu, we(e.title), 1)) : ye("", !0),
6753
- e.message ? (E(), P("div", {
6760
+ e.title ? (C(), P("h3", wu, we(e.title), 1)) : ye("", !0),
6761
+ e.message ? (C(), P("div", {
6754
6762
  key: 1,
6755
6763
  class: Le([{ "mt-2": e.title }, "text-sm text-gray-500"])
6756
6764
  }, we(e.message), 3)) : ye("", !0)
@@ -6758,7 +6766,7 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
6758
6766
  T("div", {
6759
6767
  class: Le(["mt-5 sm:mt-6", o.value])
6760
6768
  }, [
6761
- (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), {
6762
6770
  key: i,
6763
6771
  variant: g.variant,
6764
6772
  onClick: (f) => l.$emit(g.event, g)
@@ -6775,7 +6783,7 @@ const qe = { Plugins: { Hash: Kn }, version: "6.1.14", openers: /* @__PURE__ */
6775
6783
  };
6776
6784
  class ku {
6777
6785
  constructor() {
6778
- this.state = Ct({
6786
+ this.state = Et({
6779
6787
  isVisible: !1,
6780
6788
  content: null,
6781
6789
  props: {},
@@ -6831,10 +6839,10 @@ class ku {
6831
6839
  );
6832
6840
  });
6833
6841
  }
6834
- 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 = {
6835
6843
  __name: "SparkModalContainer",
6836
6844
  setup(e) {
6837
- return (t, n) => (E(), Oe(oe(Or), {
6845
+ return (t, n) => (C(), Oe(oe(Or), {
6838
6846
  as: "template",
6839
6847
  show: oe(It).state.isVisible
6840
6848
  }, {
@@ -6858,8 +6866,8 @@ const It = new ku(), Eu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
6858
6866
  ])]),
6859
6867
  _: 1
6860
6868
  }),
6861
- T("div", Eu, [
6862
- T("div", Cu, [
6869
+ T("div", Cu, [
6870
+ T("div", Eu, [
6863
6871
  se(oe(Jn), {
6864
6872
  as: "template",
6865
6873
  enter: "ease-out duration-300",
@@ -6872,7 +6880,7 @@ const It = new ku(), Eu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
6872
6880
  default: Se(() => [
6873
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" }, {
6874
6882
  default: Se(() => [
6875
- (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))
6876
6884
  ]),
6877
6885
  _: 1
6878
6886
  })
@@ -6903,7 +6911,7 @@ const It = new ku(), Eu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
6903
6911
  },
6904
6912
  emits: ["close"],
6905
6913
  setup(e, { emit: t }) {
6906
- const n = Ee(null), o = {
6914
+ const n = Ce(null), o = {
6907
6915
  xs: "w-[250px]",
6908
6916
  sm: "w-[300px]",
6909
6917
  md: "w-[450px]",
@@ -6912,7 +6920,7 @@ const It = new ku(), Eu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
6912
6920
  }, r = e, a = t, s = te(() => o[r.overlayInstance.state.size] || o.md), c = () => {
6913
6921
  r.overlayInstance.close(), a("close");
6914
6922
  };
6915
- return (l, u) => (E(), Oe(oe(Or), {
6923
+ return (l, u) => (C(), Oe(oe(Or), {
6916
6924
  show: e.overlayInstance.state.isVisible,
6917
6925
  as: "template"
6918
6926
  }, {
@@ -6958,7 +6966,7 @@ const It = new ku(), Eu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
6958
6966
  ])
6959
6967
  }, {
6960
6968
  default: Se(() => [
6961
- (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))
6962
6970
  ]),
6963
6971
  _: 1
6964
6972
  }, 8, ["class"])
@@ -7065,7 +7073,7 @@ const It = new ku(), Eu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
7065
7073
  m[b] || m.primary
7066
7074
  ];
7067
7075
  }
7068
- return (p, b) => (E(), P("nav", {
7076
+ return (p, b) => (C(), P("nav", {
7069
7077
  class: Le(u.value)
7070
7078
  }, [
7071
7079
  n.layout === "custom" ? Qe(p.$slots, "default", {
@@ -7075,12 +7083,12 @@ const It = new ku(), Eu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
7075
7083
  isActive: s,
7076
7084
  isDisabled: c,
7077
7085
  navigate: l
7078
- }) : n.layout === "horizontal" ? (E(), Oe(oa, {
7086
+ }) : n.layout === "horizontal" ? (C(), Oe(oa, {
7079
7087
  key: 1,
7080
7088
  class: "isolate"
7081
7089
  }, {
7082
7090
  default: Se(() => [
7083
- (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, {
7084
7092
  key: m.id,
7085
7093
  size: "xl",
7086
7094
  variant: s(m) ? "gray" : "secondary",
@@ -7088,13 +7096,13 @@ const It = new ku(), Eu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
7088
7096
  onClick: (y) => l(m)
7089
7097
  }, {
7090
7098
  default: Se(() => [
7091
- m.icon ? (E(), Oe(oe(Gn), {
7099
+ m.icon ? (C(), Oe(oe(Gn), {
7092
7100
  key: 0,
7093
7101
  icon: oe(Fe)[m.icon],
7094
7102
  class: "mr-1.5 size-4"
7095
7103
  }, null, 8, ["icon"])) : ye("", !0),
7096
7104
  Ue(" " + we(m.label) + " ", 1),
7097
- m.badge != null ? (E(), P("span", {
7105
+ m.badge != null ? (C(), P("span", {
7098
7106
  key: 1,
7099
7107
  class: Le(h(m))
7100
7108
  }, we(m.badge), 3)) : ye("", !0)
@@ -7103,24 +7111,24 @@ const It = new ku(), Eu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
7103
7111
  }, 1032, ["variant", "disabled", "onClick"]))), 128))
7104
7112
  ]),
7105
7113
  _: 1
7106
- })) : (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", {
7107
7115
  key: m.id,
7108
7116
  class: Le(g(m)),
7109
7117
  disabled: c(m) || void 0,
7110
7118
  onClick: (y) => l(m)
7111
7119
  }, [
7112
- s(m) && n.layout === "vertical" ? (E(), Oe(oe(Gn), {
7120
+ s(m) && n.layout === "vertical" ? (C(), Oe(oe(Gn), {
7113
7121
  key: 0,
7114
7122
  icon: oe(Fe).farCircleCheck,
7115
7123
  class: "mr-2 size-4"
7116
7124
  }, null, 8, ["icon"])) : ye("", !0),
7117
- m.icon && !(s(m) && n.layout === "vertical") ? (E(), Oe(oe(Gn), {
7125
+ m.icon && !(s(m) && n.layout === "vertical") ? (C(), Oe(oe(Gn), {
7118
7126
  key: 1,
7119
7127
  icon: oe(Fe)[m.icon],
7120
7128
  class: Le(["text-gray-400 mr-2", d.value])
7121
7129
  }, null, 8, ["icon", "class"])) : ye("", !0),
7122
7130
  T("span", null, we(m.label), 1),
7123
- m.badge != null ? (E(), P("span", {
7131
+ m.badge != null ? (C(), P("span", {
7124
7132
  key: 2,
7125
7133
  class: Le(h(m))
7126
7134
  }, we(m.badge), 3)) : ye("", !0)
@@ -7490,7 +7498,7 @@ const Wu = (e) => {
7490
7498
  console.error("Error formatting datetime:", h, { value: s, format: u }), n.textContent = s;
7491
7499
  }
7492
7500
  }, Qu = /* @__PURE__ */ new Map(), At = (e, t) => {
7493
- Ci(e, (n, o, r, a, s, c, l) => {
7501
+ Ei(e, (n, o, r, a, s, c, l) => {
7494
7502
  Ti.apply(null, [n, o, r, a, s, c, l]), t(n, o, r, a, s, c, l);
7495
7503
  }), Qu.set(e, t);
7496
7504
  }, ed = (e) => {
@@ -7621,7 +7629,7 @@ const Wu = (e) => {
7621
7629
  },
7622
7630
  setup(e) {
7623
7631
  const t = e;
7624
- return (n, o) => (E(), P("div", null, [
7632
+ return (n, o) => (C(), P("div", null, [
7625
7633
  T("div", od, [
7626
7634
  T("div", sd, [
7627
7635
  T("div", rd, [
@@ -7667,9 +7675,9 @@ const Wu = (e) => {
7667
7675
  ), u = te(() => n.sparkTable.params.page > 1);
7668
7676
  return (d, g) => {
7669
7677
  const i = Ze("font-awesome-icon");
7670
- return E(), P("div", null, [
7678
+ return C(), P("div", null, [
7671
7679
  T("div", ud, [
7672
- c.value.length > 1 ? (E(), P("div", dd, [
7680
+ c.value.length > 1 ? (C(), P("div", dd, [
7673
7681
  T("div", null, [
7674
7682
  T("nav", fd, [
7675
7683
  T("a", {
@@ -7682,7 +7690,7 @@ const Wu = (e) => {
7682
7690
  class: "size-5"
7683
7691
  }, null, 8, ["icon"])
7684
7692
  ], 2),
7685
- (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", {
7686
7694
  key: `page-${f}`,
7687
7695
  href: "#",
7688
7696
  class: Le([
@@ -7734,7 +7742,7 @@ const Wu = (e) => {
7734
7742
  };
7735
7743
  return (s, c) => {
7736
7744
  const l = Ze("FormKit");
7737
- return E(), P("div", gd, [
7745
+ return C(), P("div", gd, [
7738
7746
  se(l, {
7739
7747
  "model-value": e.sparkTable.params.limit,
7740
7748
  type: "select",
@@ -7761,7 +7769,7 @@ const Wu = (e) => {
7761
7769
  const a = "spark-table-toolbar flex flex-wrap items-center gap-x-5 w-full";
7762
7770
  return t.position === "footer" ? `${a} spark-table-toolbar-footer justify-between` : `${a} spark-table-toolbar-header gap-y-5 py-5`;
7763
7771
  });
7764
- return (a, s) => o.value ? (E(), P("div", {
7772
+ return (a, s) => o.value ? (C(), P("div", {
7765
7773
  key: 0,
7766
7774
  class: Le(r.value)
7767
7775
  }, [
@@ -7787,7 +7795,7 @@ const Wu = (e) => {
7787
7795
  }
7788
7796
  },
7789
7797
  setup(e) {
7790
- const t = e, n = Ee(""), o = t.config.param || "search";
7798
+ const t = e, n = Ce(""), o = t.config.param || "search";
7791
7799
  t.sparkTable.params[o] ? n.value = t.sparkTable.params[o] : t.config.initialValue && (n.value = t.config.initialValue, t.sparkTable.methods.applyParams({
7792
7800
  [o]: t.config.initialValue
7793
7801
  }));
@@ -7808,7 +7816,7 @@ const Wu = (e) => {
7808
7816
  }
7809
7817
  ), (s, c) => {
7810
7818
  const l = Ze("FormKit");
7811
- return E(), P("div", yd, [
7819
+ return C(), P("div", yd, [
7812
7820
  se(l, St({
7813
7821
  modelValue: n.value,
7814
7822
  "onUpdate:modelValue": c[0] || (c[0] = (u) => n.value = u),
@@ -7838,7 +7846,7 @@ const Wu = (e) => {
7838
7846
  }
7839
7847
  },
7840
7848
  setup(e) {
7841
- 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}]`;
7842
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({
7843
7851
  [o]: t.config.initialValue
7844
7852
  }));
@@ -7855,7 +7863,7 @@ const Wu = (e) => {
7855
7863
  }
7856
7864
  ), (s, c) => {
7857
7865
  const l = Ze("FormKit");
7858
- return E(), P("div", wd, [
7866
+ return C(), P("div", wd, [
7859
7867
  se(l, St({
7860
7868
  modelValue: n.value,
7861
7869
  "onUpdate:modelValue": c[0] || (c[0] = (u) => n.value = u),
@@ -7869,7 +7877,7 @@ const Wu = (e) => {
7869
7877
  ]);
7870
7878
  };
7871
7879
  }
7872
- }, 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 = {
7873
7881
  key: 0,
7874
7882
  class: "spark-table-filter-buttons-label"
7875
7883
  }, Td = {
@@ -7888,7 +7896,7 @@ const Wu = (e) => {
7888
7896
  }
7889
7897
  },
7890
7898
  setup(e) {
7891
- 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}]`;
7892
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({
7893
7901
  [r]: t.config.initialValue
7894
7902
  }));
@@ -7903,11 +7911,11 @@ const Wu = (e) => {
7903
7911
  (c) => {
7904
7912
  (c == null || c === "") && n.value ? n.value = null : c !== n.value && (n.value = c);
7905
7913
  }
7906
- ), (c, l) => (E(), P("div", Ed, [
7907
- 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),
7908
7916
  se(oa, { class: "isolate" }, {
7909
7917
  default: Se(() => [
7910
- (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, {
7911
7919
  key: u.value,
7912
7920
  size: "xl",
7913
7921
  "button-class": "px-3.5",
@@ -7940,7 +7948,7 @@ const Wu = (e) => {
7940
7948
  }
7941
7949
  },
7942
7950
  setup(e) {
7943
- 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`);
7944
7952
  return t.sparkTable.params[r] ? n.value = t.sparkTable.params[r] : t.config.initialValue ? (n.value = t.config.initialValue, t.sparkTable.methods.applyParams({
7945
7953
  [r]: t.config.initialValue
7946
7954
  })) : n.value = null, nt(n, (s) => {
@@ -7959,8 +7967,8 @@ const Wu = (e) => {
7959
7967
  }
7960
7968
  ), (s, c) => {
7961
7969
  const l = Ze("FormKit");
7962
- return E(), P("div", $d, [
7963
- (E(), Oe(l, St({
7970
+ return C(), P("div", $d, [
7971
+ (C(), Oe(l, St({
7964
7972
  key: a.value,
7965
7973
  modelValue: n.value,
7966
7974
  "onUpdate:modelValue": c[0] || (c[0] = (u) => n.value = u),
@@ -8015,7 +8023,7 @@ const Wu = (e) => {
8015
8023
  };
8016
8024
  return (o, r) => {
8017
8025
  const a = Ze("font-awesome-icon");
8018
- return E(), P("div", Od, [
8026
+ return C(), P("div", Od, [
8019
8027
  se(gt, {
8020
8028
  variant: "secondary",
8021
8029
  "button-class": "px-3.5",
@@ -8023,12 +8031,12 @@ const Wu = (e) => {
8023
8031
  onClick: n
8024
8032
  }, {
8025
8033
  default: Se(() => [
8026
- e.config.icon ? (E(), Oe(a, {
8034
+ e.config.icon ? (C(), Oe(a, {
8027
8035
  key: 0,
8028
8036
  icon: ["far", e.config.icon],
8029
8037
  class: Le({ "mr-1.5": e.config.label })
8030
8038
  }, null, 8, ["icon", "class"])) : ye("", !0),
8031
- 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)
8032
8040
  ]),
8033
8041
  _: 1
8034
8042
  })
@@ -8138,8 +8146,8 @@ const Wu = (e) => {
8138
8146
  const y = {};
8139
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;
8140
8148
  });
8141
- Ei(), Vn(xi), Vn(wi), Vn(Si), Nt(o, "settings.nestedHeaders") && Vn(ki);
8142
- 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);
8143
8151
  let d = !1;
8144
8152
  const g = {
8145
8153
  search: xd,
@@ -8147,7 +8155,7 @@ const Wu = (e) => {
8147
8155
  filterButtons: _d,
8148
8156
  datePicker: Md,
8149
8157
  reset: Rd
8150
- }, i = Ct({
8158
+ }, i = Et({
8151
8159
  hotInstance: null,
8152
8160
  url: te(() => o.url),
8153
8161
  plugins: o.plugins,
@@ -8345,16 +8353,16 @@ const Wu = (e) => {
8345
8353
  table: c
8346
8354
  }), (m, y) => {
8347
8355
  const v = Ze("font-awesome-icon");
8348
- return E(), P("div", {
8356
+ return C(), P("div", {
8349
8357
  class: "spark-table",
8350
8358
  style: Mo(r.value)
8351
8359
  }, [
8352
- i.computed.ready && b.value && b.value.length ? (E(), Oe(rr, {
8360
+ i.computed.ready && b.value && b.value.length ? (C(), Oe(rr, {
8353
8361
  key: 0,
8354
8362
  position: "header"
8355
8363
  }, {
8356
8364
  default: Se(() => [
8357
- (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]), {
8358
8366
  key: S.name,
8359
8367
  class: Le(S.config.align ? `self-${S.config.align}` : ""),
8360
8368
  "spark-table": i,
@@ -8367,7 +8375,7 @@ const Wu = (e) => {
8367
8375
  })
8368
8376
  ]),
8369
8377
  _: 3
8370
- })) : (E(), P("div", Id)),
8378
+ })) : (C(), P("div", Id)),
8371
8379
  en(se(oe(bi), {
8372
8380
  ref_key: "table",
8373
8381
  ref: c,
@@ -8376,24 +8384,24 @@ const Wu = (e) => {
8376
8384
  }, null, 8, ["settings"]), [
8377
8385
  [dr, !f.value]
8378
8386
  ]),
8379
- f.value ? (E(), P("div", Fd, [
8387
+ f.value ? (C(), P("div", Fd, [
8380
8388
  se(v, {
8381
8389
  icon: oe(Fe).farInbox,
8382
8390
  class: "size-12 mb-4 text-gray-300"
8383
8391
  }, null, 8, ["icon"]),
8384
8392
  y[0] || (y[0] = T("p", { class: "text-sm" }, "No records found", -1))
8385
8393
  ])) : ye("", !0),
8386
- i.computed.ready ? (E(), Oe(rr, {
8394
+ i.computed.ready ? (C(), Oe(rr, {
8387
8395
  key: 3,
8388
8396
  position: "footer"
8389
8397
  }, {
8390
8398
  default: Se(() => [
8391
- f.value ? ye("", !0) : (E(), Oe(cd, {
8399
+ f.value ? ye("", !0) : (C(), Oe(cd, {
8392
8400
  key: 0,
8393
8401
  "spark-table": i
8394
8402
  }, null, 8, ["spark-table"])),
8395
8403
  T("div", Dd, [
8396
- f.value ? ye("", !0) : (E(), Oe(md, {
8404
+ f.value ? ye("", !0) : (C(), Oe(md, {
8397
8405
  key: 0,
8398
8406
  "spark-table": i,
8399
8407
  onPaginate: i.methods.applyParams
@@ -8416,7 +8424,7 @@ const Wu = (e) => {
8416
8424
  }
8417
8425
  };
8418
8426
  function ir() {
8419
- const e = Ct({
8427
+ const e = Et({
8420
8428
  isVisible: !1,
8421
8429
  content: null,
8422
8430
  props: {},
@@ -8518,7 +8526,7 @@ function sm(e) {
8518
8526
  };
8519
8527
  }
8520
8528
  const Lo = "bolt-next-token", Ft = Fn("auth", () => {
8521
- const e = Ct({
8529
+ const e = Et({
8522
8530
  user: null,
8523
8531
  token: null,
8524
8532
  ready: !1,
@@ -8674,7 +8682,7 @@ function am(e = {}) {
8674
8682
  showNotification: l = !0,
8675
8683
  setFieldErrors: u = !0,
8676
8684
  setFormErrors: d = !0
8677
- } = e, g = Tt(), i = Ee(!1);
8685
+ } = e, g = Tt(), i = Ce(!1);
8678
8686
  async function f(b) {
8679
8687
  const { submitFn: m, method: y = "create", node: v = null, isEditMode: S = !1 } = b;
8680
8688
  i.value = !0, v && v.clearErrors();
@@ -8733,7 +8741,7 @@ function am(e = {}) {
8733
8741
  };
8734
8742
  }
8735
8743
  function im(e, t = {}) {
8736
- 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);
8737
8745
  async function d() {
8738
8746
  if (!(!r && !u.value)) {
8739
8747
  c.value = null;
@@ -8787,7 +8795,7 @@ function lm(e, t = {}) {
8787
8795
  return { handleDelete: c };
8788
8796
  }
8789
8797
  function cm(e = {}) {
8790
- 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));
8791
8799
  function l(y) {
8792
8800
  return {
8793
8801
  id: y.id,
@@ -8908,7 +8916,7 @@ function um(e = {}) {
8908
8916
  confirmText: o = "Leave",
8909
8917
  cancelText: r = "Stay",
8910
8918
  useRouteGuard: a = !0
8911
- } = e, s = `form-${++Yd}`, c = Ee(!1);
8919
+ } = e, s = `form-${++Yd}`, c = Ce(!1);
8912
8920
  xn.set(s, {
8913
8921
  isDirty: !1,
8914
8922
  message: t
@@ -9021,7 +9029,7 @@ const dm = [
9021
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]"]);
9022
9030
  return (m, y) => {
9023
9031
  const v = Ze("font-awesome-icon"), S = Ze("router-view");
9024
- return E(), P(ze, null, [
9032
+ return C(), P(ze, null, [
9025
9033
  T("div", {
9026
9034
  class: Le([p.value, "fixed inset-y-0 flex transition-all z-100"])
9027
9035
  }, [
@@ -9037,14 +9045,14 @@ const dm = [
9037
9045
  class: "size-5"
9038
9046
  }, null, 8, ["icon"])
9039
9047
  ]),
9040
- e.mainNavStore.state.collapsed ? ye("", !0) : (E(), P("a", {
9048
+ e.mainNavStore.state.collapsed ? ye("", !0) : (C(), P("a", {
9041
9049
  key: 0,
9042
9050
  class: "font-medium text-gray-800 ml-[10px] cursor-pointer",
9043
9051
  onClick: y[1] || (y[1] = Je((x) => e.mainNavStore.goto(e.appStore.state.homeRoute), ["prevent"]))
9044
9052
  }, we(e.appStore.state.app), 1))
9045
9053
  ]),
9046
9054
  T("ul", nf, [
9047
- (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", {
9048
9056
  key: x.name,
9049
9057
  class: Le({ "mt-[10px]": x.children })
9050
9058
  }, [
@@ -9056,14 +9064,14 @@ const dm = [
9056
9064
  href: x?.href,
9057
9065
  onClick: Je((_) => e.mainNavStore.goto(x.href), ["prevent"])
9058
9066
  }, [
9059
- x.icon ? (E(), Oe(v, {
9067
+ x.icon ? (C(), Oe(v, {
9060
9068
  key: 0,
9061
9069
  icon: oe(Fe)[x.icon],
9062
9070
  class: Le([[(s(x), "text-gray-400")], "size-4"])
9063
9071
  }, null, 8, ["icon", "class"])) : ye("", !0),
9064
- 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] = [
9065
9073
  T("div", { class: "w-[10px] h-px bg-gray-400" }, null, -1)
9066
- ])])) : ye("", !0) : (E(), P("span", {
9074
+ ])])) : ye("", !0) : (C(), P("span", {
9067
9075
  key: 1,
9068
9076
  class: Le({
9069
9077
  "text-[11px]": x?.children,
@@ -9073,8 +9081,8 @@ const dm = [
9073
9081
  })
9074
9082
  }, we(x.name), 3))
9075
9083
  ], 10, of),
9076
- x.children ? (E(), P("ul", rf, [
9077
- (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", {
9078
9086
  key: _.name
9079
9087
  }, [
9080
9088
  T("a", {
@@ -9082,20 +9090,20 @@ const dm = [
9082
9090
  href: _.href,
9083
9091
  onClick: Je((M) => e.mainNavStore.goto(_.href), ["prevent"])
9084
9092
  }, [
9085
- _.icon ? (E(), Oe(v, {
9093
+ _.icon ? (C(), Oe(v, {
9086
9094
  key: 0,
9087
9095
  icon: oe(Fe)[_.icon],
9088
9096
  class: Le([[(s(_), "text-gray-400")], "size-4"])
9089
9097
  }, null, 8, ["icon", "class"])) : ye("", !0),
9090
- 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))
9091
9099
  ], 10, af)
9092
9100
  ]))), 128))
9093
9101
  ])) : ye("", !0)
9094
9102
  ], 2))), 128))
9095
9103
  ]),
9096
9104
  T("div", cf, [
9097
- l.value.length ? (E(), P("ul", uf, [
9098
- (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", {
9099
9107
  key: x.name
9100
9108
  }, [
9101
9109
  T("a", {
@@ -9103,12 +9111,12 @@ const dm = [
9103
9111
  href: x.href,
9104
9112
  onClick: Je((_) => e.mainNavStore.goto(x.href), ["prevent"])
9105
9113
  }, [
9106
- x.icon ? (E(), Oe(v, {
9114
+ x.icon ? (C(), Oe(v, {
9107
9115
  key: 0,
9108
9116
  icon: oe(Fe)[x.icon],
9109
9117
  class: Le([[(s(x), "text-gray-400")], "size-4"])
9110
9118
  }, null, 8, ["icon", "class"])) : ye("", !0),
9111
- 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))
9112
9120
  ], 10, df)
9113
9121
  ]))), 128))
9114
9122
  ])) : ye("", !0),
@@ -9143,12 +9151,12 @@ const dm = [
9143
9151
  ])
9144
9152
  ]),
9145
9153
  Qe(m.$slots, "header-center", {}, () => [
9146
- i.value ? (E(), P("div", {
9154
+ i.value ? (C(), P("div", {
9147
9155
  key: 0,
9148
9156
  class: "absolute left-1/2 -translate-x-1/2 cursor-pointer h-9 flex items-center",
9149
9157
  onClick: h
9150
9158
  }, [
9151
- oe(u).currentBrand ? (E(), P("img", {
9159
+ oe(u).currentBrand ? (C(), P("img", {
9152
9160
  key: 0,
9153
9161
  src: oe(u).currentBrand.logo,
9154
9162
  alt: "",
@@ -9158,7 +9166,7 @@ const dm = [
9158
9166
  ]),
9159
9167
  T("div", yf, [
9160
9168
  Qe(m.$slots, "header-right", {}, () => [
9161
- e.appStore.state.showAppSelector ? (E(), P("button", {
9169
+ e.appStore.state.showAppSelector ? (C(), P("button", {
9162
9170
  key: 0,
9163
9171
  class: "rounded-sm bg-white w-[42px] h-[42px] ring-1 ring-inset ring-gray-300",
9164
9172
  type: "button",
@@ -9195,11 +9203,11 @@ const dm = [
9195
9203
  }, xf = {}, wf = { class: "h-full" };
9196
9204
  function Sf(e, t) {
9197
9205
  const n = Ze("router-view");
9198
- return E(), P("main", wf, [
9206
+ return C(), P("main", wf, [
9199
9207
  se(n)
9200
9208
  ]);
9201
9209
  }
9202
- 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 = {
9203
9211
  key: 1,
9204
9212
  width: "59",
9205
9213
  height: "23",
@@ -9226,7 +9234,7 @@ const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid
9226
9234
  }
9227
9235
  },
9228
9236
  setup(e) {
9229
- 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) => {
9230
9238
  s.value = !0, c.value = "";
9231
9239
  try {
9232
9240
  await r.login(u);
@@ -9247,14 +9255,14 @@ const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid
9247
9255
  };
9248
9256
  return (u, d) => {
9249
9257
  const g = Ze("FormKit"), i = Ze("router-link");
9250
- return E(), P("div", kf, [
9251
- T("div", Ef, [
9252
- a.logo ? (E(), P("img", {
9258
+ return C(), P("div", kf, [
9259
+ T("div", Cf, [
9260
+ a.logo ? (C(), P("img", {
9253
9261
  key: 0,
9254
9262
  src: a.logo,
9255
9263
  alt: "Logo",
9256
9264
  class: "h-[23px] w-auto"
9257
- }, null, 8, Cf)) : (E(), P("svg", Tf, [...d[0] || (d[0] = [
9265
+ }, null, 8, Ef)) : (C(), P("svg", Tf, [...d[0] || (d[0] = [
9258
9266
  T("path", {
9259
9267
  d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
9260
9268
  fill: "#1C64F2"
@@ -9314,7 +9322,7 @@ const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid
9314
9322
  _: 1
9315
9323
  }, 8, ["to"])
9316
9324
  ]),
9317
- 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),
9318
9326
  se(oe(gt), {
9319
9327
  type: "submit",
9320
9328
  size: "xl",
@@ -9322,7 +9330,7 @@ const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid
9322
9330
  "button-class": "w-full mb-2"
9323
9331
  }, {
9324
9332
  default: Se(() => [
9325
- 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"))
9326
9334
  ]),
9327
9335
  _: 1
9328
9336
  }, 8, ["disabled"])
@@ -9347,7 +9355,7 @@ const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid
9347
9355
  await o.logout();
9348
9356
  const a = n.query.redirect;
9349
9357
  a && a.startsWith("http") ? window.location.href = a : await t.push(a || r.defaultRedirect);
9350
- }), (a, s) => (E(), P("span"));
9358
+ }), (a, s) => (C(), P("span"));
9351
9359
  }
9352
9360
  }, Ff = { class: "h-full grid place-content-center relative" }, Df = { class: "absolute top-8 left-8" }, jf = ["src"], Hf = {
9353
9361
  key: 1,
@@ -9375,7 +9383,7 @@ const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid
9375
9383
  }
9376
9384
  },
9377
9385
  setup(e) {
9378
- 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 }) => {
9379
9387
  o.value = !0, r.value = "", a.value = "";
9380
9388
  try {
9381
9389
  await vn.post(t.state.endpoints.passwordEmail, { email: c }), a.value = "Password reset link sent! Check your email.";
@@ -9387,14 +9395,14 @@ const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid
9387
9395
  };
9388
9396
  return (c, l) => {
9389
9397
  const u = Ze("FormKit"), d = Ze("router-link");
9390
- return E(), P("div", Ff, [
9398
+ return C(), P("div", Ff, [
9391
9399
  T("div", Df, [
9392
- n.logo ? (E(), P("img", {
9400
+ n.logo ? (C(), P("img", {
9393
9401
  key: 0,
9394
9402
  src: n.logo,
9395
9403
  alt: "Logo",
9396
9404
  class: "h-[23px] w-auto"
9397
- }, null, 8, jf)) : (E(), P("svg", Hf, [...l[0] || (l[0] = [
9405
+ }, null, 8, jf)) : (C(), P("svg", Hf, [...l[0] || (l[0] = [
9398
9406
  T("path", {
9399
9407
  d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
9400
9408
  fill: "#1C64F2"
@@ -9432,8 +9440,8 @@ const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid
9432
9440
  validation: "required|email",
9433
9441
  "outer-class": "max-w-full"
9434
9442
  }),
9435
- r.value ? (E(), P("div", zf, we(r.value), 1)) : ye("", !0),
9436
- 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),
9437
9445
  se(oe(gt), {
9438
9446
  type: "submit",
9439
9447
  size: "xl",
@@ -9441,7 +9449,7 @@ const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid
9441
9449
  "button-class": "w-full mb-2"
9442
9450
  }, {
9443
9451
  default: Se(() => [
9444
- 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"))
9445
9453
  ]),
9446
9454
  _: 1
9447
9455
  }, 8, ["disabled"]),
@@ -9484,7 +9492,7 @@ const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid
9484
9492
  }
9485
9493
  },
9486
9494
  setup(e) {
9487
- 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 }) => {
9488
9496
  a.value = !0, s.value = "";
9489
9497
  try {
9490
9498
  await vn.post(o.state.endpoints.passwordReset, {
@@ -9501,14 +9509,14 @@ const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid
9501
9509
  };
9502
9510
  return (l, u) => {
9503
9511
  const d = Ze("FormKit");
9504
- return E(), P("div", Uf, [
9512
+ return C(), P("div", Uf, [
9505
9513
  T("div", Zf, [
9506
- r.logo ? (E(), P("img", {
9514
+ r.logo ? (C(), P("img", {
9507
9515
  key: 0,
9508
9516
  src: r.logo,
9509
9517
  alt: "Logo",
9510
9518
  class: "h-[23px] w-auto"
9511
- }, null, 8, Gf)) : (E(), P("svg", Yf, [...u[0] || (u[0] = [
9519
+ }, null, 8, Gf)) : (C(), P("svg", Yf, [...u[0] || (u[0] = [
9512
9520
  T("path", {
9513
9521
  d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
9514
9522
  fill: "#1C64F2"
@@ -9554,7 +9562,7 @@ const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid
9554
9562
  validation: "required|confirm:password",
9555
9563
  "outer-class": "max-w-full"
9556
9564
  }),
9557
- 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),
9558
9566
  se(oe(gt), {
9559
9567
  type: "submit",
9560
9568
  size: "xl",
@@ -9562,7 +9570,7 @@ const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid
9562
9570
  "button-class": "w-full mb-2"
9563
9571
  }, {
9564
9572
  default: Se(() => [
9565
- 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"))
9566
9574
  ]),
9567
9575
  _: 1
9568
9576
  }, 8, ["disabled"])
@@ -9596,14 +9604,14 @@ const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid
9596
9604
  const t = Tt(), n = e, o = () => {
9597
9605
  t.push(n.homeRoute);
9598
9606
  };
9599
- return (r, a) => (E(), P("div", tp, [
9607
+ return (r, a) => (C(), P("div", tp, [
9600
9608
  T("div", np, [
9601
- n.logo ? (E(), P("img", {
9609
+ n.logo ? (C(), P("img", {
9602
9610
  key: 0,
9603
9611
  src: n.logo,
9604
9612
  alt: "Logo",
9605
9613
  class: "h-[23px] w-auto"
9606
- }, null, 8, op)) : (E(), P("svg", sp, [...a[0] || (a[0] = [
9614
+ }, null, 8, op)) : (C(), P("svg", sp, [...a[0] || (a[0] = [
9607
9615
  T("path", {
9608
9616
  d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
9609
9617
  fill: "#1C64F2"
@@ -9669,14 +9677,14 @@ const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid
9669
9677
  const t = Tt(), n = e, o = () => {
9670
9678
  t.push(n.homeRoute);
9671
9679
  };
9672
- return (r, a) => (E(), P("div", lp, [
9680
+ return (r, a) => (C(), P("div", lp, [
9673
9681
  T("div", cp, [
9674
- n.logo ? (E(), P("img", {
9682
+ n.logo ? (C(), P("img", {
9675
9683
  key: 0,
9676
9684
  src: n.logo,
9677
9685
  alt: "Logo",
9678
9686
  class: "h-[23px] w-auto"
9679
- }, null, 8, up)) : (E(), P("svg", dp, [...a[0] || (a[0] = [
9687
+ }, null, 8, up)) : (C(), P("svg", dp, [...a[0] || (a[0] = [
9680
9688
  T("path", {
9681
9689
  d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
9682
9690
  fill: "#1C64F2"
@@ -9750,14 +9758,14 @@ const pm = /* @__PURE__ */ ln(xf, [["render", Sf]]), kf = { class: "h-full grid
9750
9758
  const t = Tt(), n = e, o = () => {
9751
9759
  t.push(n.homeRoute);
9752
9760
  };
9753
- return (r, a) => (E(), P("div", gp, [
9761
+ return (r, a) => (C(), P("div", gp, [
9754
9762
  T("div", hp, [
9755
- n.logo ? (E(), P("img", {
9763
+ n.logo ? (C(), P("img", {
9756
9764
  key: 0,
9757
9765
  src: n.logo,
9758
9766
  alt: "Logo",
9759
9767
  class: "h-[23px] w-auto"
9760
- }, null, 8, vp)) : (E(), P("svg", yp, [...a[0] || (a[0] = [
9768
+ }, null, 8, vp)) : (C(), P("svg", yp, [...a[0] || (a[0] = [
9761
9769
  T("path", {
9762
9770
  d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
9763
9771
  fill: "#1C64F2"
@@ -9841,10 +9849,10 @@ function hm(e, t = {}) {
9841
9849
  const { defaultAuthenticatedRoute: n = "/dashboard" } = t;
9842
9850
  e.beforeEach(async (o, r, a) => {
9843
9851
  const s = Ft();
9844
- s.state.ready || await s.fetchUser(), Ep(o, a, s, n);
9852
+ s.state.ready || await s.fetchUser(), Cp(o, a, s, n);
9845
9853
  });
9846
9854
  }
9847
- function Ep(e, t, n, o) {
9855
+ function Cp(e, t, n, o) {
9848
9856
  const r = e.meta.auth !== !1, a = n.check;
9849
9857
  if (n.state.overrideToken && e.path === "/logout") {
9850
9858
  t({ path: o });
@@ -9961,7 +9969,7 @@ function wm() {
9961
9969
  };
9962
9970
  }
9963
9971
  const Sm = Fn("sparkNav", () => {
9964
- const e = Ct({
9972
+ const e = Et({
9965
9973
  menu: [],
9966
9974
  collapsed: !1,
9967
9975
  hidden: !1