@wishbone-media/spark 0.38.0 → 0.40.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.
Files changed (66) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.js +818 -845
  3. package/formkit.theme.mjs +3415 -3415
  4. package/package.json +31 -1
  5. package/src/assets/css/spark-table.css +1 -1
  6. package/src/assets/css/spark-tooltip.css +9 -3
  7. package/src/components/SparkAddressInput.vue +20 -3
  8. package/src/components/SparkAppSelector.vue +7 -7
  9. package/src/components/SparkBrandSelector.vue +2 -2
  10. package/src/components/SparkButton.vue +4 -4
  11. package/src/components/SparkButtonGroup.vue +2 -2
  12. package/src/components/SparkCard.vue +5 -3
  13. package/src/components/SparkEntityBadge.vue +3 -9
  14. package/src/components/SparkFileDragUpload.vue +13 -9
  15. package/src/components/SparkImageUpload.vue +4 -1
  16. package/src/components/SparkModalContainer.vue +23 -19
  17. package/src/components/SparkModalDialog.vue +36 -17
  18. package/src/components/SparkNotificationOutlet.vue +1 -1
  19. package/src/components/SparkOverlay.vue +20 -24
  20. package/src/components/SparkSubNav.vue +7 -14
  21. package/src/components/SparkTable.vue +72 -73
  22. package/src/components/SparkTablePaginationPaging.vue +2 -2
  23. package/src/components/SparkTableToolbar.vue +1 -1
  24. package/src/components/SparkToastContainer.vue +25 -41
  25. package/src/components/SparkTooltip.vue +14 -22
  26. package/src/components/plugins/SparkTableFilterButtons.vue +5 -1
  27. package/src/components/plugins/SparkTableFilterSelect.vue +1 -4
  28. package/src/components/plugins/SparkTableReset.vue +21 -19
  29. package/src/components/plugins/SparkTableSearch.vue +3 -2
  30. package/src/composables/index.js +1 -1
  31. package/src/composables/sparkModalService.js +64 -64
  32. package/src/composables/sparkNotificationService.js +10 -8
  33. package/src/composables/sparkOverlayService.js +36 -36
  34. package/src/composables/useCrudResource.js +1 -7
  35. package/src/composables/useFormSubmission.js +1 -3
  36. package/src/composables/useSparkOverlay.js +1 -1
  37. package/src/composables/useSparkTableRouteSync.js +4 -6
  38. package/src/composables/useSubNavigation.js +18 -15
  39. package/src/containers/SparkDefaultContainer.vue +8 -8
  40. package/src/containers/SparkPublicContainer.vue +1 -2
  41. package/src/directives/sparkTooltip.js +4 -11
  42. package/src/index.js +1 -1
  43. package/src/plugins/app-bootstrap.js +1 -1
  44. package/src/plugins/axios.js +1 -1
  45. package/src/plugins/fontawesome.js +3 -3
  46. package/src/plugins/index.js +17 -3
  47. package/src/plugins/router.js +8 -12
  48. package/src/stores/auth.js +1 -1
  49. package/src/stores/brand-filter.js +40 -40
  50. package/src/stores/index.js +1 -1
  51. package/src/stores/navigation.js +1 -1
  52. package/src/utils/formatTemporal.js +4 -4
  53. package/src/utils/sparkTable/renderers/badge.js +1 -1
  54. package/src/utils/sparkTable/renderers/boolean.js +3 -3
  55. package/src/utils/sparkTable/renderers/currency.js +1 -1
  56. package/src/utils/sparkTable/renderers/date.js +14 -6
  57. package/src/utils/sparkTable/renderers/datetime.js +1 -1
  58. package/src/utils/sparkTable/renderers/image.js +1 -1
  59. package/src/utils/sparkTable/renderers/link.js +1 -1
  60. package/src/views/SparkError403View.vue +3 -7
  61. package/src/views/SparkError404View.vue +3 -9
  62. package/src/views/SparkErrorGeneralView.vue +1 -3
  63. package/src/views/SparkForgotPasswordView.vue +7 -4
  64. package/src/views/SparkLoginView.vue +8 -7
  65. package/src/views/SparkLogoutView.vue +2 -1
  66. package/src/views/SparkResetPasswordView.vue +4 -6
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { ref as Ee, reactive as Et, watch as et, onMounted as sn, nextTick as ua, onUnmounted as Fn, createElementBlock as A, openBlock as T, createElementVNode as _, Fragment as Ne, renderList as st, toDisplayString as we, withDirectives as Jt, createCommentVNode as he, createTextVNode as qe, vModelText as po, vModelSelect as da, vShow as sr, computed as se, shallowRef as fa, getCurrentScope as pa, onScopeDispose as ma, shallowReadonly as un, unref as ee, resolveComponent as Ue, normalizeClass as Me, createVNode as te, renderSlot as Xe, createBlock as Le, resolveDynamicComponent as vt, markRaw as wn, Transition as rr, withCtx as xe, normalizeProps as ga, mergeProps as wt, Teleport as ar, TransitionGroup as Tn, inject as ao, provide as ha, resolveDirective as va, onUpdated as ya, useSlots as Bo, normalizeStyle as os, withModifiers as Je, toHandlers as ir, h as ss } from "vue";
1
+ import { ref as Ee, reactive as Et, watch as et, onMounted as sn, nextTick as ua, onUnmounted as Fn, createElementBlock as P, openBlock as T, createElementVNode as _, Fragment as Ne, renderList as st, toDisplayString as we, withDirectives as Jt, createCommentVNode as he, createTextVNode as qe, vModelText as po, vModelSelect as da, vShow as sr, computed as se, shallowRef as fa, getCurrentScope as pa, onScopeDispose as ma, shallowReadonly as un, unref as ee, resolveComponent as Ue, normalizeClass as Me, createVNode as te, renderSlot as Xe, createBlock as Le, resolveDynamicComponent as vt, markRaw as wn, Transition as rr, withCtx as xe, normalizeProps as ga, mergeProps as wt, Teleport as ar, TransitionGroup as Tn, inject as ao, provide as ha, resolveDirective as va, onUpdated as ya, useSlots as Bo, normalizeStyle as os, withModifiers as Je, toHandlers as ir, h as ss } from "vue";
2
2
  import { icon as Wt, library as lr } from "@fortawesome/fontawesome-svg-core";
3
3
  import { FontAwesomeIcon as Zn } from "@fortawesome/vue-fontawesome";
4
4
  import { faArrowUpRightFromSquare as ba, faCopy as xa, faCircleDot as cr, faEyeDropper as ur, faAnglesLeft as dr, faAnglesRight as fr, faStar as pr, faSpinnerThird as mr, faCircle as wa, faFile as Mo, faCalendar as gr, faArrowUp as hr, faArrowDown as vr, faPlus as yr, faCircleCheck as Sa, faInbox as ka, faCloudArrowUp as Ea, faCloudDownload as Ta, faBolt as Ca, faUndo as _a, faEye as $a, faSignOut as Ma, faXmark as Lo, faTrash as br, faTimes as La, faStreetView as Oa, faSortUp as Pa, faSortDown as Aa, faSort as Ra, faScaleBalanced as Fa, faSatelliteDish as Ia, faLayerPlus as Da, faLaptopMobile as ja, faInfoCircle as Ha, faGripDotsVertical as xr, faGearComplex as Va, faFlag as za, faFaceSmileWink as Na, faFaceSmileRelaxed as Ba, faExclamationTriangle as qa, faEllipsisVertical as Wa, faEllipsis as Ua, faEdit as Za, faComments as Ga, faCircleXmark as Ya, faCircleUser as Xa, faChevronUp as Ka, faChevronRight as wr, faChevronLeft as Sr, faChevronDown as kr, faCheckCircle as Ja, faCheck as Oo, faBullhorn as Qa, faBellRing as ei, faBarsSort as ti, faArrowRightToLine as ni, faArrowLeftToLine as oi } from "@fortawesome/pro-regular-svg-icons";
@@ -20,13 +20,13 @@ function bi(e, t) {
20
20
  e.src = t;
21
21
  }
22
22
  const xi = (e) => {
23
- var t, n, o, s = "The Google Maps JavaScript API", a = "google", r = "importLibrary", l = "__ib__", i = document, c = window, d = c[a] || (c[a] = {}), f = d.maps || (d.maps = {}), u = /* @__PURE__ */ new Set(), m = new URLSearchParams(), y = () => t || (t = new Promise(async (g, p) => {
23
+ var t, n, o, s = "The Google Maps JavaScript API", a = "google", r = "importLibrary", l = "__ib__", i = document, c = window, f = c[a] || (c[a] = {}), d = f.maps || (f.maps = {}), u = /* @__PURE__ */ new Set(), m = new URLSearchParams(), y = () => t || (t = new Promise(async (g, p) => {
24
24
  await (n = i.createElement("script")), m.set("libraries", [...u] + "");
25
25
  for (o in e)
26
26
  m.set(o.replace(/[A-Z]/g, (h) => "_" + h[0].toLowerCase()), e[o]);
27
- m.set("callback", a + ".maps." + l), bi(n, "https://maps.googleapis.com/maps/api/js?" + m), f[l] = g, n.onerror = () => t = p(Error(s + " could not load.")), n.nonce = i.querySelector("script[nonce]")?.nonce || "", i.head.append(n);
27
+ m.set("callback", a + ".maps." + l), bi(n, "https://maps.googleapis.com/maps/api/js?" + m), d[l] = g, n.onerror = () => t = p(Error(s + " could not load.")), n.nonce = i.querySelector("script[nonce]")?.nonce || "", i.head.append(n);
28
28
  }));
29
- f[r] ? console.warn(s + " only loads once. Ignoring:", e) : f[r] = (g, ...p) => u.add(g) && y().then(() => f[r](g, ...p));
29
+ d[r] ? console.warn(s + " only loads once. Ignoring:", e) : d[r] = (g, ...p) => u.add(g) && y().then(() => d[r](g, ...p));
30
30
  }, wi = (e) => `The setOptions() function should only be called once. The options passed to the additional call (${JSON.stringify(e)}) will be ignored.`, Si = (e) => `The google.maps.importLibrary() function is already defined, and @googlemaps/js-api-loader will use the existing function instead of overwriting it. The options passed to setOptions (${JSON.stringify(e)}) will be ignored.`, ki = "No options were set before calling importLibrary. Make sure to configure the loader using setOptions().", Ei = "There already is a script loading the Google Maps JavaScript API, and no google.maps.importLibrary function is defined. @googlemaps/js-api-loader will proceed to bootstrap the API with the specified options, but the existing script might cause problems using the API. Make sure to remove the script loading the API.", $r = process.env.NODE_ENV !== "production", qo = $r ? (e) => {
31
31
  console.warn(`[@googlemaps/js-api-loader] ${e}`);
32
32
  } : () => {
@@ -125,16 +125,16 @@ const Oi = { class: "spark-address-input" }, Pi = ["disabled"], Ai = ["selected"
125
125
  longitude: null,
126
126
  formatted: ""
127
127
  });
128
- function d() {
128
+ function f() {
129
129
  return Array.isArray(n.country) ? n.country : [n.country];
130
130
  }
131
- function f(v) {
131
+ function d(v) {
132
132
  v && (c.id = v.id ?? null, c.street = v.street ?? "", c.city = v.city ?? "", c.state = v.state ?? "", c.postcode = v.postcode ?? "", c.latitude = v.latitude ?? null, c.longitude = v.longitude ?? null, c.formatted = v.formatted ?? "");
133
133
  }
134
134
  et(
135
135
  () => n.modelValue,
136
136
  (v) => {
137
- f(v), v?.formatted && l && (l.value = v.formatted);
137
+ d(v), v?.formatted && l && (l.value = v.formatted);
138
138
  },
139
139
  { immediate: !0, deep: !0 }
140
140
  );
@@ -145,7 +145,7 @@ const Oi = { class: "spark-address-input" }, Pi = ["disabled"], Ai = ["selected"
145
145
  const v = await u(n.apiKey);
146
146
  if (i || !r.value) return;
147
147
  l && (l.removeEventListener("gmp-select", y), l = null), r.value.innerHTML = "", l = new v.PlaceAutocompleteElement({
148
- includedRegionCodes: d()
148
+ includedRegionCodes: f()
149
149
  }), r.value.appendChild(l), l.addEventListener("gmp-select", y), c.formatted && (l.value = c.formatted);
150
150
  } catch (v) {
151
151
  console.error("[SparkAddressInput] Failed to load Google Places:", v);
@@ -201,7 +201,7 @@ const Oi = { class: "spark-address-input" }, Pi = ["disabled"], Ai = ["selected"
201
201
  return;
202
202
  }
203
203
  const k = parseInt(v, 10), S = n.existingAddresses.find((F) => F.id === k);
204
- S && (f(S), o("update:modelValue", { ...S }));
204
+ S && (d(S), o("update:modelValue", { ...S }));
205
205
  }
206
206
  return sn(() => {
207
207
  s.value === "autocomplete" && m();
@@ -209,8 +209,8 @@ const Oi = { class: "spark-address-input" }, Pi = ["disabled"], Ai = ["selected"
209
209
  v === "autocomplete" && (await ua(), m());
210
210
  }), Fn(() => {
211
211
  i = !0, l && (l.removeEventListener("gmp-select", y), l = null);
212
- }), (v, k) => (T(), A("div", Oi, [
213
- s.value === "select" ? (T(), A("select", {
212
+ }), (v, k) => (T(), P("div", Oi, [
213
+ s.value === "select" ? (T(), 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 Oi = { class: "spark-address-input" }, Pi = ["disabled"], Ai = ["selected"
221
221
  disabled: "",
222
222
  selected: !e.modelValue?.id
223
223
  }, "Select an address...", 8, Ai),
224
- (T(!0), A(Ne, null, st(e.existingAddresses, (S) => (T(), A("option", {
224
+ (T(!0), P(Ne, null, st(e.existingAddresses, (S) => (T(), P("option", {
225
225
  key: S.id,
226
226
  value: S.id,
227
227
  selected: S.id === e.modelValue?.id
228
228
  }, we(S.formatted || p(S)), 9, Ri))), 128)),
229
229
  k[7] || (k[7] = _("option", { value: "__create_new__" }, ">>> Create a new address", -1))
230
- ], 40, Pi)) : (T(), A(Ne, { key: 1 }, [
230
+ ], 40, Pi)) : (T(), P(Ne, { key: 1 }, [
231
231
  _("div", {
232
232
  ref_key: "googleContainerRef",
233
233
  ref: r,
@@ -240,8 +240,8 @@ const Oi = { class: "spark-address-input" }, Pi = ["disabled"], Ai = ["selected"
240
240
  disabled: e.disabled,
241
241
  onClick: k[1] || (k[1] = (S) => a.value = !a.value)
242
242
  }, [
243
- (T(), A("svg", Di, [
244
- a.value ? (T(), A("path", ji)) : (T(), A("path", Hi))
243
+ (T(), P("svg", Di, [
244
+ a.value ? (T(), P("path", ji)) : (T(), P("path", Hi))
245
245
  ])),
246
246
  qe(" " + we(a.value ? "Hide manual entry" : "Manual entry"), 1)
247
247
  ], 8, Ii),
@@ -266,7 +266,7 @@ const Oi = { class: "spark-address-input" }, Pi = ["disabled"], Ai = ["selected"
266
266
  ], -1),
267
267
  qe(" Clear ", -1)
268
268
  ])], 8, Vi),
269
- e.mode === "select" && s.value === "autocomplete" ? (T(), A("button", {
269
+ e.mode === "select" && s.value === "autocomplete" ? (T(), 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 Oi = { class: "spark-address-input" }, Pi = ["disabled"], Ai = ["selected"
311
311
  onChange: g
312
312
  }, [
313
313
  k[9] || (k[9] = _("option", { value: "" }, "State", -1)),
314
- (T(!0), A(Ne, null, st(e.states, (S) => (T(), A("option", {
314
+ (T(!0), P(Ne, null, st(e.states, (S) => (T(), P("option", {
315
315
  key: S,
316
316
  value: S
317
317
  }, we(S), 9, Wi))), 128))
@@ -456,31 +456,31 @@ function cs(e, t, n) {
456
456
  reference: o,
457
457
  floating: s
458
458
  } = e;
459
- const a = qt(t), r = Uo(t), l = Wo(r), i = nn(t), c = a === "y", d = o.x + o.width / 2 - s.width / 2, f = o.y + o.height / 2 - s.height / 2, u = o[l] / 2 - s[l] / 2;
459
+ const a = qt(t), r = Uo(t), l = Wo(r), i = nn(t), c = a === "y", f = o.x + o.width / 2 - s.width / 2, d = o.y + o.height / 2 - s.height / 2, u = o[l] / 2 - s[l] / 2;
460
460
  let m;
461
461
  switch (i) {
462
462
  case "top":
463
463
  m = {
464
- x: d,
464
+ x: f,
465
465
  y: o.y - s.height
466
466
  };
467
467
  break;
468
468
  case "bottom":
469
469
  m = {
470
- x: d,
470
+ x: f,
471
471
  y: o.y + o.height
472
472
  };
473
473
  break;
474
474
  case "right":
475
475
  m = {
476
476
  x: o.x + o.width,
477
- y: f
477
+ y: d
478
478
  };
479
479
  break;
480
480
  case "left":
481
481
  m = {
482
482
  x: o.x - s.width,
483
- y: f
483
+ y: d
484
484
  };
485
485
  break;
486
486
  default:
@@ -511,16 +511,16 @@ async function ol(e, t) {
511
511
  strategy: i
512
512
  } = e, {
513
513
  boundary: c = "clippingAncestors",
514
- rootBoundary: d = "viewport",
515
- elementContext: f = "floating",
514
+ rootBoundary: f = "viewport",
515
+ elementContext: d = "floating",
516
516
  altBoundary: u = !1,
517
517
  padding: m = 0
518
- } = Dn(t, e), y = Lr(m), p = l[u ? f === "floating" ? "reference" : "floating" : f], h = eo(await a.getClippingRect({
518
+ } = Dn(t, e), y = Lr(m), p = l[u ? d === "floating" ? "reference" : "floating" : d], h = eo(await a.getClippingRect({
519
519
  element: (n = await (a.isElement == null ? void 0 : a.isElement(p))) == null || n ? p : p.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(l.floating)),
520
520
  boundary: c,
521
- rootBoundary: d,
521
+ rootBoundary: f,
522
522
  strategy: i
523
- })), x = f === "floating" ? {
523
+ })), x = d === "floating" ? {
524
524
  x: o,
525
525
  y: s,
526
526
  width: r.floating.width,
@@ -559,8 +559,8 @@ const sl = 50, rl = async (e, t, n) => {
559
559
  floating: t,
560
560
  strategy: s
561
561
  }), {
562
- x: d,
563
- y: f
562
+ x: f,
563
+ y: d
564
564
  } = cs(c, o, i), u = o, m = 0;
565
565
  const y = {};
566
566
  for (let g = 0; g < a.length; g++) {
@@ -576,8 +576,8 @@ const sl = 50, rl = async (e, t, n) => {
576
576
  data: S,
577
577
  reset: F
578
578
  } = await x({
579
- x: d,
580
- y: f,
579
+ x: f,
580
+ y: d,
581
581
  initialPlacement: o,
582
582
  placement: u,
583
583
  strategy: s,
@@ -589,7 +589,7 @@ const sl = 50, rl = async (e, t, n) => {
589
589
  floating: t
590
590
  }
591
591
  });
592
- d = v ?? d, f = k ?? f, y[h] = {
592
+ f = v ?? f, d = k ?? d, y[h] = {
593
593
  ...y[h],
594
594
  ...S
595
595
  }, F && m < sl && (m++, typeof F == "object" && (F.placement && (u = F.placement), F.rects && (c = F.rects === !0 ? await r.getElementRects({
@@ -597,13 +597,13 @@ const sl = 50, rl = async (e, t, n) => {
597
597
  floating: t,
598
598
  strategy: s
599
599
  }) : F.rects), {
600
- x: d,
601
- y: f
600
+ x: f,
601
+ y: d
602
602
  } = cs(c, u, i)), g = -1);
603
603
  }
604
604
  return {
605
- x: d,
606
- y: f,
605
+ x: f,
606
+ y: d,
607
607
  placement: u,
608
608
  strategy: s,
609
609
  middlewareData: y
@@ -622,17 +622,17 @@ const sl = 50, rl = async (e, t, n) => {
622
622
  middlewareData: i
623
623
  } = t, {
624
624
  element: c,
625
- padding: d = 0
625
+ padding: f = 0
626
626
  } = Dn(e, t) || {};
627
627
  if (c == null)
628
628
  return {};
629
- const f = Lr(d), u = {
629
+ const d = Lr(f), u = {
630
630
  x: n,
631
631
  y: o
632
632
  }, m = Uo(s), y = Wo(m), g = await r.getDimensions(c), p = m === "y", h = p ? "top" : "left", x = p ? "bottom" : "right", v = p ? "clientHeight" : "clientWidth", k = a.reference[y] + a.reference[m] - u[m] - a.floating[y], S = u[m] - a.reference[m], F = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(c));
633
633
  let M = F ? F[v] : 0;
634
634
  (!M || !await (r.isElement == null ? void 0 : r.isElement(F))) && (M = l.floating[v] || a.floating[y]);
635
- const ne = k / 2 - S / 2, ye = M / 2 - g[y] / 2 - 1, le = Sn(f[h], ye), $e = Sn(f[x], ye), ae = le, j = M - g[y] - $e, V = M / 2 - g[y] / 2 + ne, N = Ao(ae, V, j), R = !i.arrow && jn(s) != null && V !== N && a.reference[y] / 2 - (V < ae ? le : $e) - g[y] / 2 < 0, J = R ? V < ae ? V - ae : V - j : 0;
635
+ const ne = k / 2 - S / 2, ye = M / 2 - g[y] / 2 - 1, le = Sn(d[h], ye), $e = Sn(d[x], ye), ae = le, j = M - g[y] - $e, V = M / 2 - g[y] / 2 + ne, N = Ao(ae, V, j), R = !i.arrow && jn(s) != null && V !== N && a.reference[y] / 2 - (V < ae ? le : $e) - g[y] / 2 < 0, J = R ? V < ae ? V - ae : V - j : 0;
636
636
  return {
637
637
  [m]: u[m] + J,
638
638
  data: {
@@ -659,8 +659,8 @@ const sl = 50, rl = async (e, t, n) => {
659
659
  platform: i,
660
660
  elements: c
661
661
  } = t, {
662
- mainAxis: d = !0,
663
- crossAxis: f = !0,
662
+ mainAxis: f = !0,
663
+ crossAxis: d = !0,
664
664
  fallbackPlacements: u,
665
665
  fallbackStrategy: m = "bestFit",
666
666
  fallbackAxisSideDirection: y = "none",
@@ -673,7 +673,7 @@ const sl = 50, rl = async (e, t, n) => {
673
673
  !u && F && S.push(...tl(l, g, y, k));
674
674
  const M = [l, ...S], ne = await i.detectOverflow(t, p), ye = [];
675
675
  let le = ((o = a.flip) == null ? void 0 : o.overflows) || [];
676
- if (d && ye.push(ne[h]), f) {
676
+ if (f && ye.push(ne[h]), d) {
677
677
  const V = Xi(s, r, k);
678
678
  ye.push(ne[V[0]], ne[V[1]]);
679
679
  }
@@ -683,7 +683,7 @@ const sl = 50, rl = async (e, t, n) => {
683
683
  }], !ye.every((V) => V <= 0)) {
684
684
  var $e, ae;
685
685
  const V = ((($e = a.flip) == null ? void 0 : $e.index) || 0) + 1, N = M[V];
686
- if (N && (!(f === "alignment" ? x !== qt(N) : !1) || // We leave the current main axis only if every placement on that axis
686
+ if (N && (!(d === "alignment" ? x !== qt(N) : !1) || // We leave the current main axis only if every placement on that axis
687
687
  // overflows the main axis.
688
688
  le.every((ge) => qt(ge.placement) === x ? ge.overflows[0] > 0 : !0)))
689
689
  return {
@@ -732,26 +732,26 @@ async function cl(e, t) {
732
732
  placement: n,
733
733
  platform: o,
734
734
  elements: s
735
- } = e, a = await (o.isRTL == null ? void 0 : o.isRTL(s.floating)), r = nn(n), l = jn(n), i = qt(n) === "y", c = ll.has(r) ? -1 : 1, d = a && i ? -1 : 1, f = Dn(t, e);
735
+ } = e, a = await (o.isRTL == null ? void 0 : o.isRTL(s.floating)), r = nn(n), l = jn(n), i = qt(n) === "y", c = ll.has(r) ? -1 : 1, f = a && i ? -1 : 1, d = Dn(t, e);
736
736
  let {
737
737
  mainAxis: u,
738
738
  crossAxis: m,
739
739
  alignmentAxis: y
740
- } = typeof f == "number" ? {
741
- mainAxis: f,
740
+ } = typeof d == "number" ? {
741
+ mainAxis: d,
742
742
  crossAxis: 0,
743
743
  alignmentAxis: null
744
744
  } : {
745
- mainAxis: f.mainAxis || 0,
746
- crossAxis: f.crossAxis || 0,
747
- alignmentAxis: f.alignmentAxis
745
+ mainAxis: d.mainAxis || 0,
746
+ crossAxis: d.crossAxis || 0,
747
+ alignmentAxis: d.alignmentAxis
748
748
  };
749
749
  return l && typeof y == "number" && (m = l === "end" ? y * -1 : y), i ? {
750
- x: m * d,
750
+ x: m * f,
751
751
  y: u * c
752
752
  } : {
753
753
  x: u * c,
754
- y: m * d
754
+ y: m * f
755
755
  };
756
756
  }
757
757
  const ul = function(e) {
@@ -802,17 +802,17 @@ const ul = function(e) {
802
802
  }
803
803
  },
804
804
  ...c
805
- } = Dn(e, t), d = {
805
+ } = Dn(e, t), f = {
806
806
  x: n,
807
807
  y: o
808
- }, f = await a.detectOverflow(t, c), u = qt(nn(s)), m = Mr(u);
809
- let y = d[m], g = d[u];
808
+ }, d = await a.detectOverflow(t, c), u = qt(nn(s)), m = Mr(u);
809
+ let y = f[m], g = f[u];
810
810
  if (r) {
811
- const h = m === "y" ? "top" : "left", x = m === "y" ? "bottom" : "right", v = y + f[h], k = y - f[x];
811
+ const h = m === "y" ? "top" : "left", x = m === "y" ? "bottom" : "right", v = y + d[h], k = y - d[x];
812
812
  y = Ao(v, y, k);
813
813
  }
814
814
  if (l) {
815
- const h = u === "y" ? "top" : "left", x = u === "y" ? "bottom" : "right", v = g + f[h], k = g - f[x];
815
+ const h = u === "y" ? "top" : "left", x = u === "y" ? "bottom" : "right", v = g + d[h], k = g - d[x];
816
816
  g = Ao(v, g, k);
817
817
  }
818
818
  const p = i.fn({
@@ -993,18 +993,18 @@ function on(e, t, n, o) {
993
993
  let r = Mt(1);
994
994
  t && (o ? St(o) && (r = yn(o)) : r = yn(e));
995
995
  const l = vl(a, n, o) ? Ar(a) : Mt(0);
996
- let i = (s.left + l.x) / r.x, c = (s.top + l.y) / r.y, d = s.width / r.x, f = s.height / r.y;
996
+ let i = (s.left + l.x) / r.x, c = (s.top + l.y) / r.y, f = s.width / r.x, d = s.height / r.y;
997
997
  if (a) {
998
998
  const u = pt(a), m = o && St(o) ? pt(o) : o;
999
999
  let y = u, g = Fo(y);
1000
1000
  for (; g && o && m !== y; ) {
1001
1001
  const p = yn(g), h = g.getBoundingClientRect(), x = kt(g), v = h.left + (g.clientLeft + parseFloat(x.paddingLeft)) * p.x, k = h.top + (g.clientTop + parseFloat(x.paddingTop)) * p.y;
1002
- i *= p.x, c *= p.y, d *= p.x, f *= p.y, i += v, c += k, y = pt(g), g = Fo(y);
1002
+ i *= p.x, c *= p.y, f *= p.x, d *= p.y, i += v, c += k, y = pt(g), g = Fo(y);
1003
1003
  }
1004
1004
  }
1005
1005
  return eo({
1006
- width: d,
1007
- height: f,
1006
+ width: f,
1007
+ height: d,
1008
1008
  x: i,
1009
1009
  y: c
1010
1010
  });
@@ -1034,17 +1034,17 @@ function yl(e) {
1034
1034
  scrollLeft: 0,
1035
1035
  scrollTop: 0
1036
1036
  }, c = Mt(1);
1037
- const d = Mt(0), f = jt(o);
1038
- if ((f || !f && !a) && ((rn(o) !== "body" || Hn(r)) && (i = co(o)), f)) {
1037
+ const f = Mt(0), d = jt(o);
1038
+ if ((d || !d && !a) && ((rn(o) !== "body" || Hn(r)) && (i = co(o)), d)) {
1039
1039
  const m = on(o);
1040
- c = yn(o), d.x = m.x + o.clientLeft, d.y = m.y + o.clientTop;
1040
+ c = yn(o), f.x = m.x + o.clientLeft, f.y = m.y + o.clientTop;
1041
1041
  }
1042
- const u = r && !f && !a ? Rr(r, i) : Mt(0);
1042
+ const u = r && !d && !a ? Rr(r, i) : Mt(0);
1043
1043
  return {
1044
1044
  width: n.width * c.x,
1045
1045
  height: n.height * c.y,
1046
- x: n.x * c.x - i.scrollLeft * c.x + d.x + u.x,
1047
- y: n.y * c.y - i.scrollTop * c.y + d.y + u.y
1046
+ x: n.x * c.x - i.scrollLeft * c.x + f.x + u.x,
1047
+ y: n.y * c.y - i.scrollTop * c.y + f.y + u.y
1048
1048
  };
1049
1049
  }
1050
1050
  function bl(e) {
@@ -1067,12 +1067,12 @@ function wl(e, t) {
1067
1067
  let a = o.clientWidth, r = o.clientHeight, l = 0, i = 0;
1068
1068
  if (s) {
1069
1069
  a = s.width, r = s.height;
1070
- const d = Yo();
1071
- (!d || d && t === "fixed") && (l = s.offsetLeft, i = s.offsetTop);
1070
+ const f = Yo();
1071
+ (!f || f && t === "fixed") && (l = s.offsetLeft, i = s.offsetTop);
1072
1072
  }
1073
1073
  const c = uo(o);
1074
1074
  if (c <= 0) {
1075
- const d = o.ownerDocument, f = d.body, u = getComputedStyle(f), m = d.compatMode === "CSS1Compat" && parseFloat(u.marginLeft) + parseFloat(u.marginRight) || 0, y = Math.abs(o.clientWidth - f.clientWidth - m);
1075
+ const f = o.ownerDocument, d = f.body, u = getComputedStyle(d), m = f.compatMode === "CSS1Compat" && parseFloat(u.marginLeft) + parseFloat(u.marginRight) || 0, y = Math.abs(o.clientWidth - d.clientWidth - m);
1076
1076
  y <= ds && (a -= y);
1077
1077
  } else c <= ds && (a += c);
1078
1078
  return {
@@ -1123,7 +1123,7 @@ function kl(e, t) {
1123
1123
  let r = a ? Ut(e) : e;
1124
1124
  for (; St(r) && !kn(r); ) {
1125
1125
  const l = kt(r), i = Go(r);
1126
- !i && l.position === "fixed" && (s = null), (a ? !i && !s : !i && l.position === "static" && !!s && (s.position === "absolute" || s.position === "fixed") || Hn(r) && !i && Fr(e, r)) ? o = o.filter((d) => d !== r) : s = l, r = Ut(r);
1126
+ !i && l.position === "fixed" && (s = null), (a ? !i && !s : !i && l.position === "static" && !!s && (s.position === "absolute" || s.position === "fixed") || Hn(r) && !i && Fr(e, r)) ? o = o.filter((f) => f !== r) : s = l, r = Ut(r);
1127
1127
  }
1128
1128
  return t.set(e, o), o;
1129
1129
  }
@@ -1135,15 +1135,15 @@ function El(e) {
1135
1135
  strategy: s
1136
1136
  } = e;
1137
1137
  const r = [...n === "clippingAncestors" ? lo(t) ? [] : kl(t, this._c) : [].concat(n), o], l = fs(t, r[0], s);
1138
- let i = l.top, c = l.right, d = l.bottom, f = l.left;
1138
+ let i = l.top, c = l.right, f = l.bottom, d = l.left;
1139
1139
  for (let u = 1; u < r.length; u++) {
1140
1140
  const m = fs(t, r[u], s);
1141
- i = en(m.top, i), c = Sn(m.right, c), d = Sn(m.bottom, d), f = en(m.left, f);
1141
+ i = en(m.top, i), c = Sn(m.right, c), f = Sn(m.bottom, f), d = en(m.left, d);
1142
1142
  }
1143
1143
  return {
1144
- width: c - f,
1145
- height: d - i,
1146
- x: f,
1144
+ width: c - d,
1145
+ height: f - i,
1146
+ x: d,
1147
1147
  y: i
1148
1148
  };
1149
1149
  }
@@ -1173,9 +1173,9 @@ function Cl(e, t, n) {
1173
1173
  i.x = m.x + t.clientLeft, i.y = m.y + t.clientTop;
1174
1174
  } else s && c();
1175
1175
  a && !o && s && c();
1176
- const d = s && !o && !a ? Rr(s, l) : Mt(0), f = r.left + l.scrollLeft - i.x - d.x, u = r.top + l.scrollTop - i.y - d.y;
1176
+ const f = s && !o && !a ? Rr(s, l) : Mt(0), d = r.left + l.scrollLeft - i.x - f.x, u = r.top + l.scrollTop - i.y - f.y;
1177
1177
  return {
1178
- x: f,
1178
+ x: d,
1179
1179
  y: u,
1180
1180
  width: r.width,
1181
1181
  height: r.height
@@ -1250,14 +1250,14 @@ function Ll(e, t) {
1250
1250
  function r(l, i) {
1251
1251
  l === void 0 && (l = !1), i === void 0 && (i = 1), a();
1252
1252
  const c = e.getBoundingClientRect(), {
1253
- left: d,
1254
- top: f,
1253
+ left: f,
1254
+ top: d,
1255
1255
  width: u,
1256
1256
  height: m
1257
1257
  } = c;
1258
1258
  if (l || t(), !u || !m)
1259
1259
  return;
1260
- const y = Nn(f), g = Nn(s.clientWidth - (d + u)), p = Nn(s.clientHeight - (f + m)), h = Nn(d), v = {
1260
+ const y = Nn(d), g = Nn(s.clientWidth - (f + u)), p = Nn(s.clientHeight - (d + m)), h = Nn(f), v = {
1261
1261
  rootMargin: -y + "px " + -g + "px " + -p + "px " + -h + "px",
1262
1262
  threshold: en(0, Sn(1, i)) || 1
1263
1263
  };
@@ -1294,13 +1294,13 @@ function Ol(e, t, n, o) {
1294
1294
  elementResize: r = typeof ResizeObserver == "function",
1295
1295
  layoutShift: l = typeof IntersectionObserver == "function",
1296
1296
  animationFrame: i = !1
1297
- } = o, c = Xo(e), d = s || a ? [...c ? Pn(c) : [], ...t ? Pn(t) : []] : [];
1298
- d.forEach((h) => {
1297
+ } = o, c = Xo(e), f = s || a ? [...c ? Pn(c) : [], ...t ? Pn(t) : []] : [];
1298
+ f.forEach((h) => {
1299
1299
  s && h.addEventListener("scroll", n, {
1300
1300
  passive: !0
1301
1301
  }), a && h.addEventListener("resize", n);
1302
1302
  });
1303
- const f = c && l ? Ll(c, n) : null;
1303
+ const d = c && l ? Ll(c, n) : null;
1304
1304
  let u = -1, m = null;
1305
1305
  r && (m = new ResizeObserver((h) => {
1306
1306
  let [x] = h;
@@ -1317,9 +1317,9 @@ function Ol(e, t, n, o) {
1317
1317
  }
1318
1318
  return n(), () => {
1319
1319
  var h;
1320
- d.forEach((x) => {
1320
+ f.forEach((x) => {
1321
1321
  s && x.removeEventListener("scroll", n), a && x.removeEventListener("resize", n);
1322
- }), f?.(), (h = m) == null || h.disconnect(), m = null, i && cancelAnimationFrame(y);
1322
+ }), d?.(), (h = m) == null || h.disconnect(), m = null, i && cancelAnimationFrame(y);
1323
1323
  };
1324
1324
  }
1325
1325
  const jr = ul, Hr = dl, Vr = il, Pl = al, zr = (e, t, n) => {
@@ -1382,19 +1382,19 @@ function Rl(e, t, n) {
1382
1382
  }), i = se(() => {
1383
1383
  var M;
1384
1384
  return (M = dn(n.transform)) != null ? M : !0;
1385
- }), c = se(() => Io(e.value)), d = se(() => Io(t.value)), f = Ee(0), u = Ee(0), m = Ee(l.value), y = Ee(r.value), g = fa({}), p = Ee(!1), h = se(() => {
1385
+ }), c = se(() => Io(e.value)), f = se(() => Io(t.value)), d = Ee(0), u = Ee(0), m = Ee(l.value), y = Ee(r.value), g = fa({}), p = Ee(!1), h = se(() => {
1386
1386
  const M = {
1387
1387
  position: m.value,
1388
1388
  left: "0",
1389
1389
  top: "0"
1390
1390
  };
1391
- if (!d.value)
1391
+ if (!f.value)
1392
1392
  return M;
1393
- const ne = ms(d.value, f.value), ye = ms(d.value, u.value);
1393
+ const ne = ms(f.value, d.value), ye = ms(f.value, u.value);
1394
1394
  return i.value ? {
1395
1395
  ...M,
1396
1396
  transform: "translate(" + ne + "px, " + ye + "px)",
1397
- ...Br(d.value) >= 1.5 && {
1397
+ ...Br(f.value) >= 1.5 && {
1398
1398
  willChange: "transform"
1399
1399
  }
1400
1400
  } : {
@@ -1405,15 +1405,15 @@ function Rl(e, t, n) {
1405
1405
  });
1406
1406
  let x;
1407
1407
  function v() {
1408
- if (c.value == null || d.value == null)
1408
+ if (c.value == null || f.value == null)
1409
1409
  return;
1410
1410
  const M = s.value;
1411
- zr(c.value, d.value, {
1411
+ zr(c.value, f.value, {
1412
1412
  middleware: a.value,
1413
1413
  placement: r.value,
1414
1414
  strategy: l.value
1415
1415
  }).then((ne) => {
1416
- f.value = ne.x, u.value = ne.y, m.value = ne.strategy, y.value = ne.placement, g.value = ne.middlewareData, p.value = M !== !1;
1416
+ d.value = ne.x, u.value = ne.y, m.value = ne.strategy, y.value = ne.placement, g.value = ne.middlewareData, p.value = M !== !1;
1417
1417
  });
1418
1418
  }
1419
1419
  function k() {
@@ -1424,8 +1424,8 @@ function Rl(e, t, n) {
1424
1424
  v();
1425
1425
  return;
1426
1426
  }
1427
- if (c.value != null && d.value != null) {
1428
- x = o(c.value, d.value, v);
1427
+ if (c.value != null && f.value != null) {
1428
+ x = o(c.value, f.value, v);
1429
1429
  return;
1430
1430
  }
1431
1431
  }
@@ -1434,12 +1434,12 @@ function Rl(e, t, n) {
1434
1434
  }
1435
1435
  return et([a, r, l, s], v, {
1436
1436
  flush: "sync"
1437
- }), et([c, d], S, {
1437
+ }), et([c, f], S, {
1438
1438
  flush: "sync"
1439
1439
  }), et(s, F, {
1440
1440
  flush: "sync"
1441
1441
  }), pa() && ma(k), {
1442
- x: un(f),
1442
+ x: un(d),
1443
1443
  y: un(u),
1444
1444
  strategy: un(m),
1445
1445
  placement: un(y),
@@ -1470,11 +1470,7 @@ function Il(e) {
1470
1470
  return t;
1471
1471
  }
1472
1472
  async function qr(e, t, n) {
1473
- const o = t.querySelector(`.${to}`), s = [
1474
- jr(n.offset ?? 8),
1475
- Vr(),
1476
- Hr({ padding: 8 })
1477
- ];
1473
+ const o = t.querySelector(`.${to}`), s = [jr(n.offset ?? 8), Vr(), Hr({ padding: 8 })];
1478
1474
  o && s.push(Nr({ element: o, padding: 5 }));
1479
1475
  const { x: a, y: r, placement: l, middlewareData: i } = await zr(e, t, {
1480
1476
  placement: n.placement || "top",
@@ -1485,10 +1481,10 @@ async function qr(e, t, n) {
1485
1481
  left: `${a}px`,
1486
1482
  top: `${r}px`
1487
1483
  }), o && i.arrow) {
1488
- const { x: c, y: d } = i.arrow, f = l.split("-")[0], u = { top: "bottom", right: "left", bottom: "top", left: "right" }[f];
1484
+ const { x: c, y: f } = i.arrow, d = l.split("-")[0], u = { top: "bottom", right: "left", bottom: "top", left: "right" }[d];
1489
1485
  Object.assign(o.style, {
1490
1486
  left: c != null ? `${c}px` : "",
1491
- top: d != null ? `${d}px` : "",
1487
+ top: f != null ? `${f}px` : "",
1492
1488
  right: "",
1493
1489
  bottom: "",
1494
1490
  [u]: "-4px"
@@ -1709,7 +1705,7 @@ const Nl = { class: "flex items-center" }, Bl = { class: "shrink-0 self-start" }
1709
1705
  })[t.type]);
1710
1706
  return (r, l) => {
1711
1707
  const i = Ue("font-awesome-icon");
1712
- return T(), A("div", {
1708
+ return T(), P("div", {
1713
1709
  class: Me(["rounded-md border p-4", n.value])
1714
1710
  }, [
1715
1711
  _("div", Nl, [
@@ -1722,7 +1718,7 @@ const Nl = { class: "flex items-center" }, Bl = { class: "shrink-0 self-start" }
1722
1718
  _("div", ql, [
1723
1719
  Xe(r.$slots, "default")
1724
1720
  ]),
1725
- e.closeable ? (T(), A("div", Wl, [
1721
+ e.closeable ? (T(), P("div", Wl, [
1726
1722
  _("div", Ul, [
1727
1723
  _("button", {
1728
1724
  type: "button",
@@ -1876,12 +1872,12 @@ const Nl = { class: "flex items-center" }, Bl = { class: "shrink-0 self-start" }
1876
1872
  ...i,
1877
1873
  current: l && i.name.toLowerCase() === l.toLowerCase()
1878
1874
  }));
1879
- }), r = (l, i) => {
1875
+ }), r = (l) => {
1880
1876
  n("select", l);
1881
1877
  };
1882
1878
  return (l, i) => {
1883
1879
  const c = Ue("font-awesome-icon");
1884
- return T(), A("div", Zl, [
1880
+ return T(), P("div", Zl, [
1885
1881
  _("div", Gl, [
1886
1882
  _("div", Yl, [
1887
1883
  _("div", Xl, [
@@ -1890,40 +1886,40 @@ const Nl = { class: "flex items-center" }, Bl = { class: "shrink-0 self-start" }
1890
1886
  te(c, {
1891
1887
  icon: ee(Ie).farTimes,
1892
1888
  class: "h-[15px] w-[15px] shrink-0 text-gray-400 cursor-pointer",
1893
- onClick: i[0] || (i[0] = (d) => n("close"))
1889
+ onClick: i[0] || (i[0] = (f) => n("close"))
1894
1890
  }, null, 8, ["icon"])
1895
1891
  ])
1896
1892
  ]),
1897
- (T(!0), A(Ne, null, st(a.value, (d) => (T(), A("a", {
1898
- key: d.name,
1899
- href: d.href,
1893
+ (T(!0), P(Ne, null, st(a.value, (f) => (T(), P("a", {
1894
+ key: f.name,
1895
+ href: f.href,
1900
1896
  target: "_blank",
1901
- class: Me([d.current ? "bg-gray-50" : "hover:bg-gray-50", "flex px-[22px] py-[15px] cursor-pointer"]),
1902
- onClick: (f) => d.current ? f.preventDefault() : r(d)
1897
+ class: Me([f.current ? "bg-gray-50" : "hover:bg-gray-50", "flex px-[22px] py-[15px] cursor-pointer"]),
1898
+ onClick: (d) => f.current ? d.preventDefault() : r(f)
1903
1899
  }, [
1904
1900
  _("div", Ql, [
1905
1901
  _("div", ec, [
1906
- _("div", tc, we(d.name), 1),
1907
- d.current ? (T(), A("span", nc, " Active ")) : he("", !0)
1902
+ _("div", tc, we(f.name), 1),
1903
+ f.current ? (T(), P("span", nc, " Active ")) : he("", !0)
1908
1904
  ]),
1909
- _("div", oc, we(d.description), 1)
1905
+ _("div", oc, we(f.description), 1)
1910
1906
  ]),
1911
1907
  _("div", sc, [
1912
1908
  te(c, {
1913
- class: Me([d.current ? "text-gray-700" : "text-gray-400", "h-5 w-5 shrink-0"]),
1914
- icon: ee(Ie)[d.icon]
1909
+ class: Me([f.current ? "text-gray-700" : "text-gray-400", "h-5 w-5 shrink-0"]),
1910
+ icon: ee(Ie)[f.icon]
1915
1911
  }, null, 8, ["class", "icon"])
1916
1912
  ])
1917
1913
  ], 10, Jl))), 128)),
1918
1914
  i[2] || (i[2] = _("div", null, null, -1))
1919
1915
  ]),
1920
1916
  _("div", rc, [
1921
- l.$slots.bottom || e.bottomSlot ? (T(), A("div", ac, [
1917
+ l.$slots.bottom || e.bottomSlot ? (T(), P("div", ac, [
1922
1918
  Xe(l.$slots, "bottom", {}, () => [
1923
1919
  e.bottomSlot ? (T(), Le(vt(e.bottomSlot), { key: 0 })) : he("", !0)
1924
1920
  ])
1925
1921
  ])) : he("", !0),
1926
- l.$slots.footer || e.footerSlot ? (T(), A("div", ic, [
1922
+ l.$slots.footer || e.footerSlot ? (T(), P("div", ic, [
1927
1923
  Xe(l.$slots, "footer", {}, () => [
1928
1924
  e.footerSlot ? (T(), Le(vt(e.footerSlot), { key: 0 })) : he("", !0)
1929
1925
  ])
@@ -2117,27 +2113,27 @@ class uc {
2117
2113
  closeable: r = !0,
2118
2114
  duration: l = null,
2119
2115
  position: i = null
2120
- } = t, c = ++this._toastIdCounter, d = i && hs.includes(i) ? i : this.toastState.defaultPosition, f = l !== null ? l : Yr[n], u = {
2116
+ } = t, c = ++this._toastIdCounter, f = i && hs.includes(i) ? i : this.toastState.defaultPosition, d = l !== null ? l : Yr[n], u = {
2121
2117
  id: c,
2122
2118
  type: n,
2123
2119
  message: o,
2124
2120
  component: s ? wn(s) : null,
2125
2121
  props: a,
2126
2122
  closeable: r,
2127
- duration: f,
2128
- position: d,
2123
+ duration: d,
2124
+ position: f,
2129
2125
  createdAt: Date.now()
2130
- }, m = this.toastState.toasts.filter((y) => y.position === d);
2126
+ }, m = this.toastState.toasts.filter((y) => y.position === f);
2131
2127
  if (m.length >= this.toastState.maxToasts) {
2132
2128
  const y = this.toastState.newestOnTop ? m[m.length - 1] : m[0];
2133
2129
  this.hideToast(y.id);
2134
2130
  }
2135
2131
  if (this.toastState.newestOnTop) {
2136
- const y = this.toastState.toasts.findIndex((g) => g.position === d);
2132
+ const y = this.toastState.toasts.findIndex((g) => g.position === f);
2137
2133
  y === -1 ? this.toastState.toasts.push(u) : this.toastState.toasts.splice(y, 0, u);
2138
2134
  } else
2139
2135
  this.toastState.toasts.push(u);
2140
- return f > 0 && this._startToastTimer(c, f), c;
2136
+ return d > 0 && this._startToastTimer(c, d), c;
2141
2137
  }
2142
2138
  /**
2143
2139
  * Hide a specific toast by ID
@@ -2269,7 +2265,7 @@ const Qe = new uc(), zp = {
2269
2265
  onMouseleave: l
2270
2266
  }, {
2271
2267
  default: xe(() => [
2272
- o.value.state.component ? (T(), Le(vt(o.value.state.component), ga(wt({ key: 0 }, o.value.state.props)), null, 16)) : (T(), A(Ne, { key: 1 }, [
2268
+ o.value.state.component ? (T(), Le(vt(o.value.state.component), ga(wt({ key: 0 }, o.value.state.props)), null, 16)) : (T(), P(Ne, { key: 1 }, [
2273
2269
  qe(we(o.value.state.message), 1)
2274
2270
  ], 64))
2275
2271
  ]),
@@ -2282,24 +2278,18 @@ const Qe = new uc(), zp = {
2282
2278
  }, dc = { class: "fixed top-4 left-4 z-[2000] flex flex-col gap-3 max-w-sm w-full pointer-events-none" }, fc = { class: "fixed top-4 right-4 z-[2000] flex flex-col gap-3 max-w-sm w-full pointer-events-none" }, pc = { class: "fixed top-[40%] left-1/2 -translate-x-1/2 -translate-y-1/2 z-[2000] flex flex-col gap-3 max-w-sm w-full pointer-events-none" }, mc = { class: "fixed bottom-4 left-4 z-[2000] flex flex-col-reverse gap-3 max-w-sm w-full pointer-events-none" }, gc = { class: "fixed bottom-4 right-4 z-[2000] flex flex-col-reverse gap-3 max-w-sm w-full pointer-events-none" }, Np = {
2283
2279
  __name: "SparkToastContainer",
2284
2280
  setup(e) {
2285
- const t = Qe.toastState, n = se(
2286
- () => t.toasts.filter((d) => d.position === "top-left")
2287
- ), o = se(
2288
- () => t.toasts.filter((d) => d.position === "top-right")
2289
- ), s = se(
2290
- () => t.toasts.filter((d) => d.position === "center")
2291
- ), a = se(
2292
- () => t.toasts.filter((d) => d.position === "bottom-left")
2281
+ const t = Qe.toastState, n = se(() => t.toasts.filter((f) => f.position === "top-left")), o = se(() => t.toasts.filter((f) => f.position === "top-right")), s = se(() => t.toasts.filter((f) => f.position === "center")), a = se(
2282
+ () => t.toasts.filter((f) => f.position === "bottom-left")
2293
2283
  ), r = se(
2294
- () => t.toasts.filter((d) => d.position === "bottom-right")
2295
- ), l = (d) => {
2296
- Qe.hideToast(d);
2297
- }, i = (d) => {
2298
- Qe.pauseToast(d);
2299
- }, c = (d) => {
2300
- Qe.resumeToast(d);
2284
+ () => t.toasts.filter((f) => f.position === "bottom-right")
2285
+ ), l = (f) => {
2286
+ Qe.hideToast(f);
2287
+ }, i = (f) => {
2288
+ Qe.pauseToast(f);
2289
+ }, c = (f) => {
2290
+ Qe.resumeToast(f);
2301
2291
  };
2302
- return (d, f) => (T(), Le(ar, { to: "body" }, [
2292
+ return (f, d) => (T(), Le(ar, { to: "body" }, [
2303
2293
  _("div", dc, [
2304
2294
  te(Tn, {
2305
2295
  "enter-active-class": "transition-all duration-300 ease-out",
@@ -2310,7 +2300,7 @@ const Qe = new uc(), zp = {
2310
2300
  "leave-to-class": "opacity-0 -translate-x-4"
2311
2301
  }, {
2312
2302
  default: xe(() => [
2313
- (T(!0), A(Ne, null, st(n.value, (u) => (T(), A("div", {
2303
+ (T(!0), P(Ne, null, st(n.value, (u) => (T(), P("div", {
2314
2304
  key: u.id,
2315
2305
  class: "pointer-events-auto"
2316
2306
  }, [
@@ -2325,7 +2315,7 @@ const Qe = new uc(), zp = {
2325
2315
  u.component ? (T(), Le(vt(u.component), wt({
2326
2316
  key: 0,
2327
2317
  ref_for: !0
2328
- }, u.props), null, 16)) : (T(), A(Ne, { key: 1 }, [
2318
+ }, u.props), null, 16)) : (T(), P(Ne, { key: 1 }, [
2329
2319
  qe(we(u.message), 1)
2330
2320
  ], 64))
2331
2321
  ]),
@@ -2346,7 +2336,7 @@ const Qe = new uc(), zp = {
2346
2336
  "leave-to-class": "opacity-0 translate-x-4"
2347
2337
  }, {
2348
2338
  default: xe(() => [
2349
- (T(!0), A(Ne, null, st(o.value, (u) => (T(), A("div", {
2339
+ (T(!0), P(Ne, null, st(o.value, (u) => (T(), P("div", {
2350
2340
  key: u.id,
2351
2341
  class: "pointer-events-auto"
2352
2342
  }, [
@@ -2361,7 +2351,7 @@ const Qe = new uc(), zp = {
2361
2351
  u.component ? (T(), Le(vt(u.component), wt({
2362
2352
  key: 0,
2363
2353
  ref_for: !0
2364
- }, u.props), null, 16)) : (T(), A(Ne, { key: 1 }, [
2354
+ }, u.props), null, 16)) : (T(), P(Ne, { key: 1 }, [
2365
2355
  qe(we(u.message), 1)
2366
2356
  ], 64))
2367
2357
  ]),
@@ -2382,7 +2372,7 @@ const Qe = new uc(), zp = {
2382
2372
  "leave-to-class": "opacity-0 scale-95"
2383
2373
  }, {
2384
2374
  default: xe(() => [
2385
- (T(!0), A(Ne, null, st(s.value, (u) => (T(), A("div", {
2375
+ (T(!0), P(Ne, null, st(s.value, (u) => (T(), P("div", {
2386
2376
  key: u.id,
2387
2377
  class: "pointer-events-auto"
2388
2378
  }, [
@@ -2397,7 +2387,7 @@ const Qe = new uc(), zp = {
2397
2387
  u.component ? (T(), Le(vt(u.component), wt({
2398
2388
  key: 0,
2399
2389
  ref_for: !0
2400
- }, u.props), null, 16)) : (T(), A(Ne, { key: 1 }, [
2390
+ }, u.props), null, 16)) : (T(), P(Ne, { key: 1 }, [
2401
2391
  qe(we(u.message), 1)
2402
2392
  ], 64))
2403
2393
  ]),
@@ -2418,7 +2408,7 @@ const Qe = new uc(), zp = {
2418
2408
  "leave-to-class": "opacity-0 -translate-x-4"
2419
2409
  }, {
2420
2410
  default: xe(() => [
2421
- (T(!0), A(Ne, null, st(a.value, (u) => (T(), A("div", {
2411
+ (T(!0), P(Ne, null, st(a.value, (u) => (T(), P("div", {
2422
2412
  key: u.id,
2423
2413
  class: "pointer-events-auto"
2424
2414
  }, [
@@ -2433,7 +2423,7 @@ const Qe = new uc(), zp = {
2433
2423
  u.component ? (T(), Le(vt(u.component), wt({
2434
2424
  key: 0,
2435
2425
  ref_for: !0
2436
- }, u.props), null, 16)) : (T(), A(Ne, { key: 1 }, [
2426
+ }, u.props), null, 16)) : (T(), P(Ne, { key: 1 }, [
2437
2427
  qe(we(u.message), 1)
2438
2428
  ], 64))
2439
2429
  ]),
@@ -2454,7 +2444,7 @@ const Qe = new uc(), zp = {
2454
2444
  "leave-to-class": "opacity-0 translate-x-4"
2455
2445
  }, {
2456
2446
  default: xe(() => [
2457
- (T(!0), A(Ne, null, st(r.value, (u) => (T(), A("div", {
2447
+ (T(!0), P(Ne, null, st(r.value, (u) => (T(), P("div", {
2458
2448
  key: u.id,
2459
2449
  class: "pointer-events-auto"
2460
2450
  }, [
@@ -2469,7 +2459,7 @@ const Qe = new uc(), zp = {
2469
2459
  u.component ? (T(), Le(vt(u.component), wt({
2470
2460
  key: 0,
2471
2461
  ref_for: !0
2472
- }, u.props), null, 16)) : (T(), A(Ne, { key: 1 }, [
2462
+ }, u.props), null, 16)) : (T(), P(Ne, { key: 1 }, [
2473
2463
  qe(we(u.message), 1)
2474
2464
  ], 64))
2475
2465
  ]),
@@ -2541,7 +2531,7 @@ const Qe = new uc(), zp = {
2541
2531
  };
2542
2532
  return (a, r) => {
2543
2533
  const l = Ue("font-awesome-icon");
2544
- return T(), A("div", hc, [
2534
+ return T(), P("div", hc, [
2545
2535
  _("div", vc, [
2546
2536
  _("div", yc, [
2547
2537
  _("div", bc, [
@@ -2554,8 +2544,8 @@ const Qe = new uc(), zp = {
2554
2544
  }, null, 8, ["icon"])
2555
2545
  ])
2556
2546
  ]),
2557
- ee(o).allBrands.length === 0 ? (T(), A("div", wc, " No brands configured ")) : he("", !0),
2558
- (T(!0), A(Ne, null, st(ee(o).allBrands, (i) => (T(), A("div", {
2547
+ ee(o).allBrands.length === 0 ? (T(), P("div", wc, " No brands configured ")) : he("", !0),
2548
+ (T(!0), P(Ne, null, st(ee(o).allBrands, (i) => (T(), P("div", {
2559
2549
  key: i.id,
2560
2550
  class: Me([i.current ? "bg-gray-50" : "hover:bg-gray-50", "flex px-[22px] py-[15px] cursor-pointer"]),
2561
2551
  onClick: (c) => s(i)
@@ -2564,7 +2554,7 @@ const Qe = new uc(), zp = {
2564
2554
  _("div", Ec, [
2565
2555
  _("div", Tc, [
2566
2556
  _("div", Cc, we(i.name), 1),
2567
- i.current ? (T(), A("span", _c, " Current ")) : he("", !0)
2557
+ i.current ? (T(), P("span", _c, " Current ")) : he("", !0)
2568
2558
  ]),
2569
2559
  _("div", $c, we(i.current ? "Current Brand" : "Change to"), 1)
2570
2560
  ]),
@@ -2628,15 +2618,15 @@ const Qe = new uc(), zp = {
2628
2618
  text: /^text-(?!white|black)/
2629
2619
  }, r = (i, c) => {
2630
2620
  if (!c) return i;
2631
- const d = i.split(" ").filter(Boolean), f = c.split(" ").filter(Boolean);
2632
- return [...d.filter((m) => !f.some((y) => {
2621
+ const f = i.split(" ").filter(Boolean), d = c.split(" ").filter(Boolean);
2622
+ return [...f.filter((m) => !d.some((y) => {
2633
2623
  const g = Object.entries(a).find(
2634
- ([h, x]) => x.test(m)
2624
+ ([, h]) => h.test(m)
2635
2625
  )?.[0], p = Object.entries(a).find(
2636
- ([h, x]) => x.test(y)
2626
+ ([, h]) => h.test(y)
2637
2627
  )?.[0];
2638
2628
  return g && g === p;
2639
- })), ...f].join(" ");
2629
+ })), ...d].join(" ");
2640
2630
  }, l = se(() => {
2641
2631
  let i = "cursor-pointer", c = "";
2642
2632
  switch (t.size) {
@@ -2657,8 +2647,8 @@ const Qe = new uc(), zp = {
2657
2647
  break;
2658
2648
  }
2659
2649
  if (o?.isInGroup && s.value) {
2660
- const { isFirst: d, isLast: f } = s.value;
2661
- i += " relative inline-flex items-center focus:z-10", d && f ? i += ` rounded-${c}` : d ? i += ` rounded-l-${c} rounded-r-none` : f ? i += ` rounded-r-${c} rounded-l-none -ml-px` : i += " rounded-none -ml-px";
2650
+ const { isFirst: f, isLast: d } = s.value;
2651
+ i += " relative inline-flex items-center focus:z-10", f && d ? i += ` rounded-${c}` : f ? i += ` rounded-l-${c} rounded-r-none` : d ? i += ` rounded-r-${c} rounded-l-none -ml-px` : i += " rounded-none -ml-px";
2662
2652
  } else
2663
2653
  i += ` shadow-xs rounded-${c}`;
2664
2654
  switch (t.variant) {
@@ -2685,13 +2675,13 @@ const Qe = new uc(), zp = {
2685
2675
  }
2686
2676
  return i = r(i, t.buttonClass), i;
2687
2677
  });
2688
- return (i, c) => (T(), A("button", {
2689
- type: "button",
2678
+ return (i, c) => (T(), P("button", {
2690
2679
  ref_key: "buttonRef",
2691
2680
  ref: n,
2681
+ type: "button",
2692
2682
  class: Me(l.value),
2693
2683
  disabled: e.disabled,
2694
- onClick: c[0] || (c[0] = (d) => i.$emit("click"))
2684
+ onClick: c[0] || (c[0] = (f) => i.$emit("click"))
2695
2685
  }, [
2696
2686
  Xe(i.$slots, "default")
2697
2687
  ], 10, Pc));
@@ -2704,15 +2694,15 @@ const Qe = new uc(), zp = {
2704
2694
  isInGroup: !0,
2705
2695
  getButtonIndex: (s) => t.value ? Array.from(t.value.children).indexOf(s) : -1,
2706
2696
  getButtonCount: () => t.value?.children.length || 0
2707
- }), (s, a) => (T(), A("div", {
2708
- class: "inline-flex rounded-md shadow-xs",
2697
+ }), (s, a) => (T(), P("div", {
2709
2698
  ref_key: "groupRef",
2710
- ref: t
2699
+ ref: t,
2700
+ class: "inline-flex rounded-md shadow-xs"
2711
2701
  }, [
2712
2702
  Xe(s.$slots, "default")
2713
2703
  ], 512));
2714
2704
  }
2715
- }, Ac = { class: "divide-y divide-gray-300 rounded-lg border border-gray-300 text-gray-700 bg-gray-100" }, Rc = {
2705
+ }, Ac = { class: "flex flex-col divide-y divide-gray-300 rounded-lg border border-gray-300 text-gray-700 bg-gray-100" }, Rc = {
2716
2706
  key: 0,
2717
2707
  class: "px-[30px] py-5"
2718
2708
  }, Fc = {
@@ -2732,16 +2722,16 @@ const Qe = new uc(), zp = {
2732
2722
  },
2733
2723
  setup(e) {
2734
2724
  const t = e;
2735
- return (n, o) => (T(), A("div", Ac, [
2736
- n.$slots.header ? (T(), A("div", Rc, [
2725
+ return (n, o) => (T(), P("div", Ac, [
2726
+ n.$slots.header ? (T(), P("div", Rc, [
2737
2727
  Xe(n.$slots, "header")
2738
2728
  ])) : he("", !0),
2739
2729
  _("div", {
2740
- class: Me([t.padded ? t.paddedClass : ""])
2730
+ class: Me([t.padded ? t.paddedClass : "", "min-h-0 flex-1"])
2741
2731
  }, [
2742
2732
  Xe(n.$slots, "default")
2743
2733
  ], 2),
2744
- n.$slots.footer ? (T(), A("div", Fc, [
2734
+ n.$slots.footer ? (T(), P("div", Fc, [
2745
2735
  Xe(n.$slots, "footer")
2746
2736
  ])) : he("", !0)
2747
2737
  ]));
@@ -2822,9 +2812,7 @@ const Qe = new uc(), zp = {
2822
2812
  sm: "text-[11px] px-1.5 py-0.5",
2823
2813
  md: "text-xs px-2 py-0.5",
2824
2814
  lg: "text-sm px-2.5 py-1"
2825
- }, l = se(() => a[n.variant] || a.primary), i = se(() => r[n.size] || r.md), c = se(
2826
- () => n.routeName && n.entityId != null || n.href
2827
- ), d = se(() => c.value || n.copyToClipboard), f = se(() => c.value && !n.disabled), u = se(() => {
2815
+ }, l = se(() => a[n.variant] || a.primary), i = se(() => r[n.size] || r.md), c = se(() => n.routeName && n.entityId != null || n.href), f = se(() => c.value || n.copyToClipboard), d = se(() => c.value && !n.disabled), u = se(() => {
2828
2816
  if (n.href) return n.href;
2829
2817
  if (n.routeName && n.entityId != null)
2830
2818
  try {
@@ -2833,7 +2821,7 @@ const Qe = new uc(), zp = {
2833
2821
  return null;
2834
2822
  }
2835
2823
  return null;
2836
- }), m = se(() => n.disabled ? "opacity-50 cursor-not-allowed" : d.value ? "cursor-pointer hover:opacity-80 transition-opacity" : "cursor-default");
2824
+ }), m = se(() => n.disabled ? "opacity-50 cursor-not-allowed" : f.value ? "cursor-pointer hover:opacity-80 transition-opacity" : "cursor-default");
2837
2825
  function y(g) {
2838
2826
  if (!n.disabled) {
2839
2827
  if (o("click"), n.copyToClipboard && n.tooltip) {
@@ -2853,10 +2841,10 @@ const Qe = new uc(), zp = {
2853
2841
  }
2854
2842
  return (g, p) => {
2855
2843
  const h = Ue("font-awesome-icon"), x = va("spark-tooltip");
2856
- return Jt((T(), Le(vt(f.value ? "a" : "span"), {
2844
+ return Jt((T(), Le(vt(d.value ? "a" : "span"), {
2857
2845
  href: u.value || void 0,
2858
- target: f.value && e.openNew ? "_blank" : void 0,
2859
- rel: f.value && e.openNew ? "noopener noreferrer" : void 0,
2846
+ target: d.value && e.openNew ? "_blank" : void 0,
2847
+ rel: d.value && e.openNew ? "noopener noreferrer" : void 0,
2860
2848
  class: Me(["inline-flex items-center gap-1 rounded-full font-medium whitespace-nowrap", [l.value, i.value, m.value]]),
2861
2849
  onClick: y
2862
2850
  }, {
@@ -2983,7 +2971,7 @@ var ct, Bt, gn;
2983
2971
  const oo = /* @__PURE__ */ new Set();
2984
2972
  let bn = null, bo = 0;
2985
2973
  function Zt() {
2986
- let e = ct.Initializing, t = Bt.Ease, n = 0, o = 0, s = Zt.Easings.Linear, a = 500, r = 0, l = 0, i = 0, c = 0, d = 1 / 0, f = 0.01, u = 0.01, m = !1, y = {}, g = null, p = {}, h = {}, x = {}, v = 0, k = 0, S = gn.Loop, F = Zt.Easings.Linear;
2974
+ let e = ct.Initializing, t = Bt.Ease, n = 0, o = 0, s = Zt.Easings.Linear, a = 500, r = 0, l = 0, i = 0, c = 0, f = 1 / 0, d = 0.01, u = 0.01, m = !1, y = {}, g = null, p = {}, h = {}, x = {}, v = 0, k = 0, S = gn.Loop, F = Zt.Easings.Linear;
2987
2975
  const M = /* @__PURE__ */ new Map();
2988
2976
  function ne(j, ...V) {
2989
2977
  for (const N of M.get(j) || []) N(...V);
@@ -3015,7 +3003,7 @@ function Zt() {
3015
3003
  }, spring: function(j = {}) {
3016
3004
  t = Bt.Spring;
3017
3005
  const V = { velocity: 0, mass: 1, tension: 170, friction: 26, restDelta: 0.1, restSpeed: 0.1, maxSpeed: 1 / 0, clamp: !0 }, { velocity: N, mass: R, tension: J, friction: ge, restDelta: fe, restSpeed: W, maxSpeed: ve, clamp: pe } = Object.assign(Object.assign({}, V), j);
3018
- return r = N, l = R, i = J, c = ge, u = fe, f = W, d = ve, m = pe, x = {}, ae;
3006
+ return r = N, l = R, i = J, c = ge, u = fe, d = W, f = ve, m = pe, x = {}, ae;
3019
3007
  }, isRunning: function() {
3020
3008
  return e === ct.Running;
3021
3009
  }, isSpring: function() {
@@ -3058,11 +3046,11 @@ function Zt() {
3058
3046
  }
3059
3047
  x[fe] || (typeof r == "object" && typeof r[fe] == "number" ? x[fe] = r[fe] : x[fe] = typeof r == "number" ? r : 0);
3060
3048
  let pe = x[fe];
3061
- pe = Oe(-1 * Math.abs(d), pe, Math.abs(d));
3049
+ pe = Oe(-1 * Math.abs(f), pe, Math.abs(f));
3062
3050
  const ie = pe * l * c;
3063
3051
  pe += ((ve > W ? -1 : 1) * (Math.abs(W - ve) * i) - ie) / l * J, ve += pe * J;
3064
3052
  const ke = p[fe] > W ? ve < W : ve > W;
3065
- let De = Math.abs(pe) < f && Math.abs(W - ve) <= u;
3053
+ let De = Math.abs(pe) < d && Math.abs(W - ve) <= u;
3066
3054
  m && ke && (De = !0), De ? (ve = W, pe = 0) : ge++, p[fe] = ve, x[fe] = pe;
3067
3055
  }
3068
3056
  N = !ge;
@@ -3124,10 +3112,10 @@ const ws = (e) => {
3124
3112
  }, Vt = { passive: !1 }, Dc = { panThreshold: 5, swipeThreshold: 3, ignore: ["textarea", "input", "select", "[contenteditable]", "[data-selectable]", "[data-draggable]"] };
3125
3113
  let qn = !1, $n = !0;
3126
3114
  const En = (e, t) => {
3127
- let n, o, s, a, r, l = Object.assign(Object.assign({}, Dc), t), i = [], c = [], d = [], f = !1, u = !1, m = !1, y = !1, g = 0, p = 0, h = 0, x = 0, v = 0, k = 0, S = 0, F = 0, M = 0, ne = [];
3115
+ let n, o, s, a, r, l = Object.assign(Object.assign({}, Dc), t), i = [], c = [], f = [], d = !1, u = !1, m = !1, y = !1, g = 0, p = 0, h = 0, x = 0, v = 0, k = 0, S = 0, F = 0, M = 0, ne = [];
3128
3116
  const ye = /* @__PURE__ */ new Map();
3129
3117
  function le(W) {
3130
- const ve = Bn(c), pe = Bn(d), ie = ve && pe ? ve / pe : 0, ke = Math.abs(S) > Math.abs(F) ? S : F, De = { srcEvent: n, isPanRecognized: f, isSwipeRecognized: u, firstTouch: i, previousTouch: d, currentTouch: c, deltaX: h, deltaY: x, offsetX: v, offsetY: k, velocityX: S, velocityY: F, velocity: ke, angle: M, axis: s, scale: ie, center: o };
3118
+ const ve = Bn(c), pe = Bn(f), ie = ve && pe ? ve / pe : 0, ke = Math.abs(S) > Math.abs(F) ? S : F, De = { srcEvent: n, isPanRecognized: d, isSwipeRecognized: u, firstTouch: i, previousTouch: f, currentTouch: c, deltaX: h, deltaY: x, offsetX: v, offsetY: k, velocityX: S, velocityY: F, velocity: ke, angle: M, axis: s, scale: ie, center: o };
3131
3119
  for (const rt of ye.get(W) || []) rt(De);
3132
3120
  }
3133
3121
  function $e(W) {
@@ -3153,41 +3141,41 @@ const En = (e, t) => {
3153
3141
  if (!W.buttons || W.button !== 0) return;
3154
3142
  ws(W);
3155
3143
  }
3156
- W instanceof MouseEvent && (window.addEventListener("mousemove", V), window.addEventListener("mouseup", N)), window.addEventListener("blur", R), n = W, c = xs(W), i = [...c], d = [], p = c.length, o = Nt(c), p === 1 && (f = !1, u = !1, m = !1), p && ae(Nt(c));
3144
+ W instanceof MouseEvent && (window.addEventListener("mousemove", V), window.addEventListener("mouseup", N)), window.addEventListener("blur", R), n = W, c = xs(W), i = [...c], f = [], p = c.length, o = Nt(c), p === 1 && (d = !1, u = !1, m = !1), p && ae(Nt(c));
3157
3145
  const ve = Date.now(), pe = ve - (g || ve);
3158
3146
  y = pe > 0 && pe <= 250 && p === 1, g = ve, clearTimeout(a), le("start");
3159
3147
  }
3160
3148
  function V(W) {
3161
3149
  var ve;
3162
3150
  if (!i.length || W.defaultPrevented || $e(W) === !1) return;
3163
- n = W, d = [...c], c = bs(W);
3164
- const pe = Nt(d), ie = Nt(bs(W));
3165
- if (ae(ie), p = c.length, o = ie, d.length === c.length ? (h = ie.x - pe.x, x = ie.y - pe.y) : (h = 0, x = 0), i.length) {
3151
+ n = W, f = [...c], c = bs(W);
3152
+ const pe = Nt(f), ie = Nt(bs(W));
3153
+ if (ae(ie), p = c.length, o = ie, f.length === c.length ? (h = ie.x - pe.x, x = ie.y - pe.y) : (h = 0, x = 0), i.length) {
3166
3154
  const ke = Nt(i);
3167
3155
  v = ie.x - ke.x, k = ie.y - ke.y;
3168
3156
  }
3169
3157
  if (c.length > 1) {
3170
- const ke = Bn(c), De = Bn(d);
3158
+ const ke = Bn(c), De = Bn(f);
3171
3159
  Math.abs(ke - De) >= 0.1 && (m = !0, le("pinch"));
3172
3160
  }
3173
- f || (f = Math.abs(v) >= l.panThreshold || Math.abs(k) >= l.panThreshold, f && ($n = !1, clearTimeout(r), r = void 0, M = Math.abs(180 * Math.atan2(k, v) / Math.PI), s = M > 45 && M < 135 ? "y" : "x", i = [...c], d = [...c], v = 0, k = 0, h = 0, x = 0, (ve = window.getSelection()) === null || ve === void 0 || ve.removeAllRanges(), le("panstart"))), f && (h || x) && le("pan"), le("move");
3161
+ d || (d = Math.abs(v) >= l.panThreshold || Math.abs(k) >= l.panThreshold, d && ($n = !1, clearTimeout(r), r = void 0, M = Math.abs(180 * Math.atan2(k, v) / Math.PI), s = M > 45 && M < 135 ? "y" : "x", i = [...c], f = [...c], v = 0, k = 0, h = 0, x = 0, (ve = window.getSelection()) === null || ve === void 0 || ve.removeAllRanges(), le("panstart"))), d && (h || x) && le("pan"), le("move");
3174
3162
  }
3175
3163
  function N(W) {
3176
3164
  if (n = W, !i.length) return;
3177
3165
  const ve = xs(W), pe = Qr(W);
3178
- if (p = ve.length, o = Nt(pe), pe.length && ae(Nt(pe)), d = [...c], c = [...ve], i = [...ve], p > 0) le("end"), f = !1, u = !1, ne = [];
3166
+ if (p = ve.length, o = Nt(pe), pe.length && ae(Nt(pe)), f = [...c], c = [...ve], i = [...ve], p > 0) le("end"), d = !1, u = !1, ne = [];
3179
3167
  else {
3180
3168
  const ie = l.swipeThreshold;
3181
- (Math.abs(S) > ie || Math.abs(F) > ie) && (u = !0), f && le("panend"), u && le("swipe"), f || u || m || (le("tap"), y ? le("doubleTap") : a = setTimeout(function() {
3169
+ (Math.abs(S) > ie || Math.abs(F) > ie) && (u = !0), d && le("panend"), u && le("swipe"), d || u || m || (le("tap"), y ? le("doubleTap") : a = setTimeout(function() {
3182
3170
  le("singleTap");
3183
3171
  }, 250)), le("end"), J();
3184
3172
  }
3185
3173
  }
3186
3174
  function R() {
3187
- clearTimeout(a), J(), f && le("panend"), le("end");
3175
+ clearTimeout(a), J(), d && le("panend"), le("end");
3188
3176
  }
3189
3177
  function J() {
3190
- qn = !1, f = !1, u = !1, y = !1, p = 0, ne = [], c = [], d = [], i = [], h = 0, x = 0, v = 0, k = 0, S = 0, F = 0, M = 0, s = void 0, window.removeEventListener("mousemove", V), window.removeEventListener("mouseup", N), window.removeEventListener("blur", R), $n || r || (r = setTimeout(() => {
3178
+ qn = !1, d = !1, u = !1, y = !1, p = 0, ne = [], c = [], f = [], i = [], h = 0, x = 0, v = 0, k = 0, S = 0, F = 0, M = 0, s = void 0, window.removeEventListener("mousemove", V), window.removeEventListener("mouseup", N), window.removeEventListener("blur", R), $n || r || (r = setTimeout(() => {
3191
3179
  $n = !0, r = void 0;
3192
3180
  }, 100));
3193
3181
  }
@@ -3222,14 +3210,14 @@ var oe, Ss;
3222
3210
  const xt = { x: 0, y: 0, scale: 1, angle: 0, flipX: 1, flipY: 1 }, Do = { bounds: !0, classes: { container: "f-panzoom", wrapper: "f-panzoom__wrapper", content: "f-panzoom__content", viewport: "f-panzoom__viewport" }, clickAction: oe.ToggleFull, dblClickAction: !1, gestures: {}, height: "auto", l10n: Jo, maxScale: 4, minScale: 1, mouseMoveFactor: 1, panMode: "drag", protected: !1, singleClickAction: !1, spinnerTpl: '<div class="f-spinner"></div>', wheelAction: oe.Zoom, width: "auto" };
3223
3211
  let Wn, ks = 0, Es = 0, Un = 0;
3224
3212
  const jo = (e, t = {}, n = {}) => {
3225
- let o, s, a, r, l, i, c, d, f = 0, u = Object.assign(Object.assign({}, Do), t), m = {}, y = Object.assign({}, xt), g = Object.assign({}, xt);
3213
+ let o, s, a, r, l, i, c, f, d = 0, u = Object.assign(Object.assign({}, Do), t), m = {}, y = Object.assign({}, xt), g = Object.assign({}, xt);
3226
3214
  const p = [];
3227
3215
  function h(b) {
3228
3216
  let E = u[b];
3229
3217
  return E && typeof E == "function" ? E(B) : E;
3230
3218
  }
3231
3219
  function x() {
3232
- return e && e.parentElement && o && f === 3;
3220
+ return e && e.parentElement && o && d === 3;
3233
3221
  }
3234
3222
  const v = /* @__PURE__ */ new Map();
3235
3223
  function k(b, ...E) {
@@ -3306,7 +3294,7 @@ const jo = (e, t = {}, n = {}) => {
3306
3294
  }
3307
3295
  }
3308
3296
  function M(b) {
3309
- if (d = b, !x() || !V() || y.scale <= 1 || g.scale <= 1 || (o?.dataset.animationName || "").indexOf("zoom") > -1) return;
3297
+ if (f = b, !x() || !V() || y.scale <= 1 || g.scale <= 1 || (o?.dataset.animationName || "").indexOf("zoom") > -1) return;
3310
3298
  const E = N(g.scale);
3311
3299
  if (!E) return;
3312
3300
  const { x: D, y: H } = E;
@@ -3318,7 +3306,7 @@ const jo = (e, t = {}, n = {}) => {
3318
3306
  }
3319
3307
  function ye() {
3320
3308
  if (!e || !s) return;
3321
- if (ne(), _t(s) && (!s.complete || !s.naturalWidth)) return f = 2, o?.classList.add("has-error"), void k("error");
3309
+ if (ne(), _t(s) && (!s.complete || !s.naturalWidth)) return d = 2, o?.classList.add("has-error"), void k("error");
3322
3310
  k("loaded");
3323
3311
  const { width: b, height: E } = ae();
3324
3312
  _t(s) && (s.setAttribute("width", b + ""), s.setAttribute("height", E + "")), o && (ot(o, "has-error"), _t(s) && (o.setAttribute("width", b + ""), o.setAttribute("height", E + ""), o.style.aspectRatio = `${b / E || ""}`)), i = Zt().on("start", (H, C) => {
@@ -3371,8 +3359,8 @@ const jo = (e, t = {}, n = {}) => {
3371
3359
  e?.removeEventListener("click", F), document?.removeEventListener("mousemove", M);
3372
3360
  });
3373
3361
  const D = le();
3374
- y = Object.assign({}, D), g = Object.assign({}, D), f = 3, De(), ie(), k("ready"), requestAnimationFrame(() => {
3375
- f === 3 && (ne(), r && (r.style.visibility = ""));
3362
+ y = Object.assign({}, D), g = Object.assign({}, D), d = 3, De(), ie(), k("ready"), requestAnimationFrame(() => {
3363
+ d === 3 && (ne(), r && (r.style.visibility = ""));
3376
3364
  });
3377
3365
  }
3378
3366
  function le() {
@@ -3414,7 +3402,7 @@ const jo = (e, t = {}, n = {}) => {
3414
3402
  return h("panMode") === "mousemove" && matchMedia("(hover: hover)").matches;
3415
3403
  }
3416
3404
  function N(b) {
3417
- const E = d || h("event"), D = o?.getBoundingClientRect();
3405
+ const E = f || h("event"), D = o?.getBoundingClientRect();
3418
3406
  if (!E || !D || b <= 1) return { x: 0, y: 0 };
3419
3407
  const H = (E.clientX || 0) - D.left, C = (E.clientY || 0) - D.top, { width: L, height: Z } = j(), Y = ve(b);
3420
3408
  if (b > 1) {
@@ -3606,8 +3594,8 @@ const jo = (e, t = {}, n = {}) => {
3606
3594
  }
3607
3595
  let Se = Re - Y.left, w = je - Y.top;
3608
3596
  Se -= 0.5 * Y.width, w -= 0.5 * Y.height;
3609
- const $ = (Se - H.x) / H.scale, P = (w - H.y) / H.scale;
3610
- C.x = Se - $ * C.scale, C.y = w - P * C.scale, !Q && h("bounds") && (L = ve(C.scale), C.x = Oe(L.x[0], C.x, L.x[1]), C.y = Oe(L.y[0], C.y, L.y[1]));
3597
+ const $ = (Se - H.x) / H.scale, A = (w - H.y) / H.scale;
3598
+ C.x = Se - $ * C.scale, C.y = w - A * C.scale, !Q && h("bounds") && (L = ve(C.scale), C.x = Oe(L.x[0], C.x, L.x[1]), C.y = Oe(L.y[0], C.y, L.y[1]));
3611
3599
  }
3612
3600
  if (b === oe.Swipe) {
3613
3601
  let Re = 94, je = 17, Se = 500 * C.scale, w = Z;
@@ -3627,11 +3615,11 @@ const jo = (e, t = {}, n = {}) => {
3627
3615
  const D = (function() {
3628
3616
  const { width: Ce, height: _e } = ae(), { width: Pe, height: Re } = j();
3629
3617
  if (!e) return { x: 0, y: 0, width: 0, height: 0, scale: 0, flipX: 0, flipY: 0, angle: 0, fitWidth: Pe, fitHeight: Re, fullWidth: Ce, fullHeight: _e };
3630
- let { x: je, y: Se, scale: w, angle: $, flipX: P, flipY: I } = y, q = 1 / fe(), z = Ce, G = _e, X = y.scale * q, de = g.scale * q;
3618
+ let { x: je, y: Se, scale: w, angle: $, flipX: A, flipY: I } = y, q = 1 / fe(), z = Ce, G = _e, X = y.scale * q, de = g.scale * q;
3631
3619
  const me = Math.max(Pe, Re), be = Math.min(Pe, Re);
3632
3620
  Ce > _e ? (z = me, G = be) : (z = be, G = me), X = Ce > _e ? me * w / Ce || 1 : me * w / _e || 1;
3633
3621
  let Ae = z ? Ce * de : 0, He = G ? _e * de : 0, Be = z && G ? Ce * X / Ae : 0;
3634
- return je = je + 0.5 * z - 0.5 * Ae, Se = Se + 0.5 * G - 0.5 * He, { x: je, y: Se, width: Ae, height: He, scale: Be, flipX: P, flipY: I, angle: $, fitWidth: Pe, fitHeight: Re, fullWidth: Ce, fullHeight: _e };
3622
+ return je = je + 0.5 * z - 0.5 * Ae, Se = Se + 0.5 * G - 0.5 * He, { x: je, y: Se, width: Ae, height: He, scale: Be, flipX: A, flipY: I, angle: $, fitWidth: Pe, fitHeight: Re, fullWidth: Ce, fullHeight: _e };
3635
3623
  })(), { x: H, y: C, width: L, height: Z, scale: Y, angle: Q, flipX: K, flipY: ce } = D;
3636
3624
  let Te = `translate(${lt(H)}px, ${lt(C)}px)`;
3637
3625
  Te += K !== 1 || ce !== 1 ? ` scaleX(${lt(Y * K)}) scaleY(${lt(Y * ce)})` : ` scale(${lt(Y)})`, Q !== 0 && (Te += ` rotate(${Q}deg)`), r.style.width = `${lt(L)}px`, r.style.height = `${lt(Z)}px`, r.style.transform = `${Te}`, k("render");
@@ -3713,7 +3701,7 @@ const jo = (e, t = {}, n = {}) => {
3713
3701
  k("destroy");
3714
3702
  for (const b of Object.values(m)) b?.destroy(B);
3715
3703
  for (const b of p) b();
3716
- return o && (o.style.aspectRatio = "", o.style.maxWidth = "", o.style.maxHeight = ""), r && (r.style.width = "", r.style.height = "", r.style.transform = ""), o = void 0, s = void 0, r = void 0, y = Object.assign({}, xt), g = Object.assign({}, xt), i?.destroy(), i = void 0, l?.destroy(), l = void 0, f = 4, B;
3704
+ return o && (o.style.aspectRatio = "", o.style.maxWidth = "", o.style.maxHeight = ""), r && (r.style.width = "", r.style.height = "", r.style.transform = ""), o = void 0, s = void 0, r = void 0, y = Object.assign({}, xt), g = Object.assign({}, xt), i?.destroy(), i = void 0, l?.destroy(), l = void 0, d = 4, B;
3717
3705
  }, emit: k, execute: ke, getBoundaries: ve, getContainer: function() {
3718
3706
  return e;
3719
3707
  }, getContent: function() {
@@ -3725,7 +3713,7 @@ const jo = (e, t = {}, n = {}) => {
3725
3713
  }, getPlugins: function() {
3726
3714
  return m;
3727
3715
  }, getScale: R, getStartPosition: le, getState: function() {
3728
- return f;
3716
+ return d;
3729
3717
  }, getTransform: function(b) {
3730
3718
  return b === !0 ? g : y;
3731
3719
  }, getTween: function() {
@@ -3735,7 +3723,7 @@ const jo = (e, t = {}, n = {}) => {
3735
3723
  }, getWrapper: function() {
3736
3724
  return o;
3737
3725
  }, init: function() {
3738
- return f = 0, k("init"), (function() {
3726
+ return d = 0, k("init"), (function() {
3739
3727
  for (const [b, E] of Object.entries(Object.assign(Object.assign({}, n), u.plugins || {}))) if (b && !m[b] && E instanceof Function) {
3740
3728
  const D = E();
3741
3729
  D.init(B), m[b] = D;
@@ -3775,7 +3763,7 @@ const jo = (e, t = {}, n = {}) => {
3775
3763
  ye();
3776
3764
  });
3777
3765
  };
3778
- if (f = 1, e.classList.add("is-loading"), k("loading"), a.src && a.complete) return void b();
3766
+ if (d = 1, e.classList.add("is-loading"), k("loading"), a.src && a.complete) return void b();
3779
3767
  (function() {
3780
3768
  if (!e || e?.querySelector(".f-spinner")) return;
3781
3769
  const E = h("spinnerTpl"), D = It(E);
@@ -3812,43 +3800,43 @@ const Xt = (e) => {
3812
3800
  let Ts, Cs = 0;
3813
3801
  const so = (e, t = {}, n = {}) => {
3814
3802
  Cs++;
3815
- let o, s, a, r, l, i = 0, c = Object.assign({}, pn), d = Object.assign({}, pn), f = {}, u = null, m = null, y = 0, g = 0, p = 0, h = !1, x = !1, v = !1, k = "height", S = 0, F = !0, M = 0, ne = 0, ye = 0, le = 0, $e = "*", ae = [], j = [];
3803
+ let o, s, a, r, l, i = 0, c = Object.assign({}, pn), f = Object.assign({}, pn), d = {}, u = null, m = null, y = 0, g = 0, p = 0, h = !1, x = !1, v = !1, k = "height", S = 0, F = !0, M = 0, ne = 0, ye = 0, le = 0, $e = "*", ae = [], j = [];
3816
3804
  const V = /* @__PURE__ */ new Set();
3817
3805
  let N = [], R = [], J = 0, ge = 0, fe = 0;
3818
3806
  function W(w, ...$) {
3819
- let P = d[w];
3820
- return P && P instanceof Function ? P(Se, ...$) : P;
3807
+ let A = f[w];
3808
+ return A && A instanceof Function ? A(Se, ...$) : A;
3821
3809
  }
3822
3810
  function ve(w, $ = []) {
3823
- const P = W("l10n") || {};
3824
- w = String(w).replace(/\{\{(\w+)\}\}/g, (I, q) => P[q] || I);
3811
+ const A = W("l10n") || {};
3812
+ w = String(w).replace(/\{\{(\w+)\}\}/g, (I, q) => A[q] || I);
3825
3813
  for (let I = 0; I < $.length; I++) w = w.split($[I][0]).join($[I][1]);
3826
3814
  return w = w.replace(/\{\{(.*?)\}\}/g, (I, q) => q);
3827
3815
  }
3828
3816
  const pe = /* @__PURE__ */ new Map();
3829
3817
  function ie(w, ...$) {
3830
- const P = [...pe.get(w) || []];
3831
- d.on && P.push(d.on[w]);
3832
- for (const I of P) I && I instanceof Function && I(Se, ...$);
3818
+ const A = [...pe.get(w) || []];
3819
+ f.on && A.push(f.on[w]);
3820
+ for (const I of A) I && I instanceof Function && I(Se, ...$);
3833
3821
  w !== "*" && ie("*", w, ...$);
3834
3822
  }
3835
3823
  function ke() {
3836
3824
  var w, $;
3837
- const P = ft({}, pn, c);
3838
- ft(P, pn, c);
3825
+ const A = ft({}, pn, c);
3826
+ ft(A, pn, c);
3839
3827
  let I = "";
3840
3828
  const q = c.breakpoints || {};
3841
- if (q) for (const [z, G] of Object.entries(q)) window.matchMedia(z).matches && (I += z, ft(P, G));
3829
+ if (q) for (const [z, G] of Object.entries(q)) window.matchMedia(z).matches && (I += z, ft(A, G));
3842
3830
  if (l === void 0 || I !== l) {
3843
3831
  if (l = I, i !== 0) {
3844
3832
  let z = ($ = (w = R[M]) === null || w === void 0 ? void 0 : w.slides[0]) === null || $ === void 0 ? void 0 : $.index;
3845
- z === void 0 && (z = d.initialSlide), P.initialSlide = z, P.slides = [];
3846
- for (const G of ae) G.isVirtual && P.slides.push(G);
3833
+ z === void 0 && (z = f.initialSlide), A.initialSlide = z, A.slides = [];
3834
+ for (const G of ae) G.isVirtual && A.slides.push(G);
3847
3835
  }
3848
- Pe(), d = P, W("enabled") !== !1 && (i = 0, ie("init"), (function() {
3849
- for (const [z, G] of Object.entries(Object.assign(Object.assign({}, n), d.plugins || {}))) if (z && !f[z] && G instanceof Function) {
3836
+ Pe(), f = A, W("enabled") !== !1 && (i = 0, ie("init"), (function() {
3837
+ for (const [z, G] of Object.entries(Object.assign(Object.assign({}, n), f.plugins || {}))) if (z && !d[z] && G instanceof Function) {
3850
3838
  const X = G();
3851
- X.init(Se, so), f[z] = X;
3839
+ X.init(Se, so), d[z] = X;
3852
3840
  }
3853
3841
  ie("initPlugins");
3854
3842
  })(), (function() {
@@ -3871,7 +3859,7 @@ const so = (e, t = {}, n = {}) => {
3871
3859
  U(W("slides"));
3872
3860
  for (const G of ae) {
3873
3861
  const X = G.el;
3874
- X?.parentElement === m && (ue(X, d.classes.slide), ue(X, G.class), ce(G), ie("attachSlideEl", G));
3862
+ X?.parentElement === m && (ue(X, f.classes.slide), ue(X, G.class), ce(G), ie("attachSlideEl", G));
3875
3863
  }
3876
3864
  ie("initSlides");
3877
3865
  })(), H(), i = 1, ue(u, (W("classes") || {}).isEnabled || ""), _e(), bt(), s = Zt().on("start", () => {
@@ -3907,20 +3895,20 @@ const so = (e, t = {}, n = {}) => {
3907
3895
  W("gestures") === !1 ? o && (o.destroy(), o = void 0) : o || (function() {
3908
3896
  const w = W("gestures");
3909
3897
  !o && w !== !1 && m && (o = En(m, w).on("start", ($) => {
3910
- var P, I;
3898
+ var A, I;
3911
3899
  if (!s || W("gestures", $) === !1) return;
3912
3900
  const { srcEvent: q } = $;
3913
3901
  v && Ln(q) && !tn(q.target) && Xt(q), s.pause(), s.getCurrentVelocities().pos = 0;
3914
- const z = (P = R[M]) === null || P === void 0 ? void 0 : P.slides[0], G = z?.el;
3902
+ const z = (A = R[M]) === null || A === void 0 ? void 0 : A.slides[0], G = z?.el;
3915
3903
  z && V.has(z.index) && G && (S = z.offset || 0, S += ((function(X) {
3916
3904
  const de = window.getComputedStyle(X), me = new DOMMatrixReadOnly(de.transform);
3917
3905
  return { width: me.m41 || 0, height: me.m42 || 0 };
3918
3906
  })(G)[k] || 0) * (x && !v ? 1 : -1)), L(), h || (S < ye || S > le) && s.spring({ clamp: !0, mass: 1, tension: 500, friction: 25, velocity: ((I = s.getCurrentVelocities()) === null || I === void 0 ? void 0 : I.pos) || 0, restDelta: 1, restSpeed: 1 }).from({ pos: S }).to({ pos: Oe(ye, S, le) }).start();
3919
3907
  }).on("move", ($) => {
3920
- var P, I;
3908
+ var A, I;
3921
3909
  if (W("gestures", $) === !1) return;
3922
3910
  const { srcEvent: q, axis: z, deltaX: G, deltaY: X } = $;
3923
- if (Ln(q) && ((P = q.touches) === null || P === void 0 ? void 0 : P.length) > 1) return;
3911
+ if (Ln(q) && ((A = q.touches) === null || A === void 0 ? void 0 : A.length) > 1) return;
3924
3912
  const de = q.target, me = tn(de), be = me ? me.scrollHeight > me.clientHeight ? "y" : "x" : void 0;
3925
3913
  if (me && me !== m && (!z || z === be)) return;
3926
3914
  if (!z) return Xt(q), q.stopPropagation(), void q.stopImmediatePropagation();
@@ -3933,7 +3921,7 @@ const so = (e, t = {}, n = {}) => {
3933
3921
  }).on("panend", ($) => {
3934
3922
  W("gestures", $) !== !1 && ot(m, "is-dragging");
3935
3923
  }).on("end", ($) => {
3936
- var P, I;
3924
+ var A, I;
3937
3925
  if (W("gestures", $) === !1) return;
3938
3926
  const { srcEvent: q, axis: z, velocityX: G, velocityY: X, currentTouch: de } = $;
3939
3927
  if (de.length > 0 || !s) return;
@@ -3949,8 +3937,8 @@ const so = (e, t = {}, n = {}) => {
3949
3937
  let nt = 0;
3950
3938
  return Math.abs(Ye) > 0 && (nt = 2 * Math.abs(Ye), nt = Math.min(0.3 * Ke(), nt)), at = Oe(ye + -1 * nt, at, le + nt), void s.spring({ clamp: !0, mass: 1, tension: 380, friction: 25, velocity: -1 * Ye, restDelta: 1, restSpeed: 1 }).from({ pos: S }).to({ pos: at }).start();
3951
3939
  }
3952
- if (Ge || !((P = f.Autoscroll) === null || P === void 0) && P.isEnabled()) return void (Math.abs(Ye) > 10 ? s.spring({ clamp: !0, mass: 1, tension: 150, friction: 25, velocity: -1 * Ye, restDelta: 1, restSpeed: 1 }).from({ pos: S }).to({ pos: at }).start() : s.isRunning() || F || (F = !0, ie("settle")));
3953
- if (!Ge && !(!((I = f.Autoscroll) === null || I === void 0) && I.isEnabled()) && (!$.offsetX && !$.offsetY || z === "y" && !v || z === "x" && v)) return void Te(M, { transition: "tween" });
3940
+ if (Ge || !((A = d.Autoscroll) === null || A === void 0) && A.isEnabled()) return void (Math.abs(Ye) > 10 ? s.spring({ clamp: !0, mass: 1, tension: 150, friction: 25, velocity: -1 * Ye, restDelta: 1, restSpeed: 1 }).from({ pos: S }).to({ pos: at }).start() : s.isRunning() || F || (F = !0, ie("settle")));
3941
+ if (!Ge && !(!((I = d.Autoscroll) === null || I === void 0) && I.isEnabled()) && (!$.offsetX && !$.offsetY || z === "y" && !v || z === "x" && v)) return void Te(M, { transition: "tween" });
3954
3942
  let Ve = ut(at);
3955
3943
  Math.abs(Ye) > 10 && Ve === M && (Ve += Ye > 0 ? x && !v ? 1 : -1 : x && !v ? -1 : 1), Te(Ve, { transition: "tween", tween: { velocity: -1 * Ye } });
3956
3944
  }).init());
@@ -3958,9 +3946,9 @@ const so = (e, t = {}, n = {}) => {
3958
3946
  }
3959
3947
  function Ct(w = "*") {
3960
3948
  var $;
3961
- const P = [];
3962
- for (const I of ae) (w === "*" || I.class && I.class.includes(w) || I.el && (!(($ = I.el) === null || $ === void 0) && $.classList.contains(w))) && P.push(I);
3963
- r = void 0, $e = w, j = [...P];
3949
+ const A = [];
3950
+ for (const I of ae) (w === "*" || I.class && I.class.includes(w) || I.el && (!(($ = I.el) === null || $ === void 0) && $.classList.contains(w))) && A.push(I);
3951
+ r = void 0, $e = w, j = [...A];
3964
3952
  }
3965
3953
  function yt() {
3966
3954
  if (!s) return;
@@ -3977,23 +3965,23 @@ const so = (e, t = {}, n = {}) => {
3977
3965
  parseInt(((w = q.dataset) === null || w === void 0 ? void 0 : w.carouselGoTo) || "-1", 10) === M ? q.setAttribute("aria-current", "true") : q.removeAttribute("aria-current");
3978
3966
  for (const q of u.querySelectorAll("[data-carousel-go-prev]")) q.toggleAttribute("aria-disabled", !Re()), Re() ? q.removeAttribute("tabindex") : q.setAttribute("tabindex", "-1");
3979
3967
  for (const q of u.querySelectorAll("[data-carousel-go-next]")) q.toggleAttribute("aria-disabled", !je()), je() ? q.removeAttribute("tabindex") : q.setAttribute("tabindex", "-1");
3980
- let P = !1;
3968
+ let A = !1;
3981
3969
  const I = ($ = R[M]) === null || $ === void 0 ? void 0 : $.slides[0];
3982
- I && (I.downloadSrc || I.type === "image" && I.src) && (P = !0);
3983
- for (const q of u.querySelectorAll("[data-carousel-download]")) q.toggleAttribute("aria-disabled", !P);
3970
+ I && (I.downloadSrc || I.type === "image" && I.src) && (A = !0);
3971
+ for (const q of u.querySelectorAll("[data-carousel-download]")) q.toggleAttribute("aria-disabled", !A);
3984
3972
  }
3985
3973
  function Ot(w) {
3986
3974
  var $;
3987
3975
  w || (w = ($ = R[M]) === null || $ === void 0 ? void 0 : $.slides[0]);
3988
- const P = w?.el;
3989
- if (P) for (const I of P.querySelectorAll("[data-slide-index]")) I.innerHTML = w.index + 1 + "";
3976
+ const A = w?.el;
3977
+ if (A) for (const I of A.querySelectorAll("[data-slide-index]")) I.innerHTML = w.index + 1 + "";
3990
3978
  }
3991
3979
  function ut(w) {
3992
- var $, P, I;
3980
+ var $, A, I;
3993
3981
  if (!R.length) return 0;
3994
3982
  const q = We();
3995
3983
  let z = w;
3996
- h ? z -= Math.floor((w - (($ = R[0]) === null || $ === void 0 ? void 0 : $.pos)) / q) * q || 0 : z = Oe((P = R[0]) === null || P === void 0 ? void 0 : P.pos, w, (I = R[R.length - 1]) === null || I === void 0 ? void 0 : I.pos);
3984
+ h ? z -= Math.floor((w - (($ = R[0]) === null || $ === void 0 ? void 0 : $.pos)) / q) * q || 0 : z = Oe((A = R[0]) === null || A === void 0 ? void 0 : A.pos, w, (I = R[R.length - 1]) === null || I === void 0 ? void 0 : I.pos);
3997
3985
  const G = /* @__PURE__ */ new Map();
3998
3986
  let X = 0;
3999
3987
  for (const me of R) {
@@ -4010,31 +3998,31 @@ const so = (e, t = {}, n = {}) => {
4010
3998
  return y;
4011
3999
  }
4012
4000
  function We(w = !0) {
4013
- return j.length ? j.reduce(($, P) => $ + P.dim, 0) + (j.length - (h && w ? 0 : 1)) * fe : 0;
4001
+ return j.length ? j.reduce(($, A) => $ + A.dim, 0) + (j.length - (h && w ? 0 : 1)) * fe : 0;
4014
4002
  }
4015
4003
  function O(w) {
4016
- const $ = We(), P = Ke();
4017
- if (!$ || !m || !P) return [];
4004
+ const $ = We(), A = Ke();
4005
+ if (!$ || !m || !A) return [];
4018
4006
  const I = [];
4019
4007
  w = w === void 0 ? S : w, h && (w -= Math.floor(w / $) * $ || 0);
4020
4008
  let q = 0;
4021
4009
  for (let z of j) {
4022
4010
  const G = (X = 0) => {
4023
- I.indexOf(z) > -1 || (z.pos = q - w + X || 0, z.offset + X > w - z.dim - g + 0.51 && z.offset + X < w + P + p - 0.51 && I.push(z));
4011
+ I.indexOf(z) > -1 || (z.pos = q - w + X || 0, z.offset + X > w - z.dim - g + 0.51 && z.offset + X < w + A + p - 0.51 && I.push(z));
4024
4012
  };
4025
4013
  z.offset = q, h && (G($), G(-1 * $)), G(), q += z.dim + fe;
4026
4014
  }
4027
4015
  return I;
4028
4016
  }
4029
4017
  function U(w, $) {
4030
- const P = [];
4018
+ const A = [];
4031
4019
  for (const I of Array.isArray(w) ? w : [w]) {
4032
4020
  const q = re(Object.assign(Object.assign({}, I), { isVirtual: !0 }));
4033
- q.el || (q.el = document.createElement("div")), ie("createSlide", q), P.push(q);
4021
+ q.el || (q.el = document.createElement("div")), ie("createSlide", q), A.push(q);
4034
4022
  }
4035
- ae.splice($ === void 0 ? ae.length : $, 0, ...P), D();
4036
- for (const I of P) ie("addSlide", I), B(I);
4037
- return Ct($e), P;
4023
+ ae.splice($ === void 0 ? ae.length : $, 0, ...A), D();
4024
+ for (const I of A) ie("addSlide", I), B(I);
4025
+ return Ct($e), A;
4038
4026
  }
4039
4027
  function re(w) {
4040
4028
  return (Fe(w) || w instanceof HTMLElement) && (w = { html: w }), Object.assign({ index: -1, el: void 0, class: "", isVirtual: !0, dim: 0, pos: 0, offset: 0, html: "", src: "" }, w);
@@ -4042,21 +4030,21 @@ const so = (e, t = {}, n = {}) => {
4042
4030
  function B(w) {
4043
4031
  let $ = w.el;
4044
4032
  if (!w || !$) return;
4045
- const P = w.html ? w.html instanceof HTMLElement ? w.html : It(w.html) : void 0;
4046
- P && (ue(P, "f-html"), w.htmlEl = P, ue($, "has-html"), $.append(P), ie("contentReady", w));
4033
+ const A = w.html ? w.html instanceof HTMLElement ? w.html : It(w.html) : void 0;
4034
+ A && (ue(A, "f-html"), w.htmlEl = A, ue($, "has-html"), $.append(A), ie("contentReady", w));
4047
4035
  }
4048
4036
  function b(w) {
4049
4037
  if (!m || !w) return;
4050
4038
  let $ = w.el;
4051
4039
  if ($) {
4052
4040
  if ($.setAttribute("index", w.index + ""), $.parentElement !== m) {
4053
- let P;
4054
- ue($, d.classes.slide), ue($, w.class), ce(w);
4041
+ let A;
4042
+ ue($, f.classes.slide), ue($, w.class), ce(w);
4055
4043
  for (const I of ae) if (I.index > w.index) {
4056
- P = I.el;
4044
+ A = I.el;
4057
4045
  break;
4058
4046
  }
4059
- m.insertBefore($, P && m.contains(P) ? P : null), ie("attachSlideEl", w);
4047
+ m.insertBefore($, A && m.contains(A) ? A : null), ie("attachSlideEl", w);
4060
4048
  }
4061
4049
  return Ot(w), $;
4062
4050
  }
@@ -4067,12 +4055,12 @@ const so = (e, t = {}, n = {}) => {
4067
4055
  }
4068
4056
  function D() {
4069
4057
  for (let w = 0; w < ae.length; w++) {
4070
- const $ = ae[w], P = $.el;
4071
- P && ($.index !== w && C(P), P.setAttribute("index", `${w}`)), $.index = w;
4058
+ const $ = ae[w], A = $.el;
4059
+ A && ($.index !== w && C(A), A.setAttribute("index", `${w}`)), $.index = w;
4072
4060
  }
4073
4061
  }
4074
4062
  function H() {
4075
- var w, $, P, I, q;
4063
+ var w, $, A, I, q;
4076
4064
  if (!u || !m) return;
4077
4065
  x = W("rtl"), v = W("vertical"), k = v ? "height" : "width";
4078
4066
  const z = W("classes");
@@ -4088,7 +4076,7 @@ const so = (e, t = {}, n = {}) => {
4088
4076
  let X = 0;
4089
4077
  if (m) {
4090
4078
  let de = document.createElement("div");
4091
- de.style.display = "block", ue(de, d.classes.slide), m.appendChild(de), X = de.getBoundingClientRect()[k], de.remove(), de = void 0;
4079
+ de.style.display = "block", ue(de, f.classes.slide), m.appendChild(de), X = de.getBoundingClientRect()[k], de.remove(), de = void 0;
4092
4080
  }
4093
4081
  return X;
4094
4082
  })();
@@ -4135,7 +4123,7 @@ const so = (e, t = {}, n = {}) => {
4135
4123
  dt && Math.abs(nt.pos - dt.pos) < 0.1 ? (dt.dim += nt.dim, dt.slides = [...dt.slides, ...nt.slides]) : (dt = nt, nt.index = at.length, at.push(nt));
4136
4124
  }
4137
4125
  R = at, M = Oe(0, M, R.length - 1);
4138
- })(), ye = ((P = R[0]) === null || P === void 0 ? void 0 : P.pos) || 0, le = ((I = R[R.length - 1]) === null || I === void 0 ? void 0 : I.pos) || 0, i === 0 ? (function() {
4126
+ })(), ye = ((A = R[0]) === null || A === void 0 ? void 0 : A.pos) || 0, le = ((I = R[R.length - 1]) === null || I === void 0 ? void 0 : I.pos) || 0, i === 0 ? (function() {
4139
4127
  var X;
4140
4128
  r = void 0, M = W("initialPage");
4141
4129
  const de = W("initialSlide") || void 0;
@@ -4145,13 +4133,13 @@ const so = (e, t = {}, n = {}) => {
4145
4133
  function C(w) {
4146
4134
  if (!w || !mn(w)) return;
4147
4135
  const $ = parseInt(w.getAttribute("index") || "-1");
4148
- let P = "";
4136
+ let A = "";
4149
4137
  for (const q of Array.from(w.classList)) {
4150
4138
  const z = q.match(/^f-(\w+)(Out|In)$/);
4151
- z && z[1] && (P = z[1] + "");
4139
+ z && z[1] && (A = z[1] + "");
4152
4140
  }
4153
- if (!w || !P) return;
4154
- const I = [`f-${P}Out`, `f-${P}In`, "to-prev", "to-next", "from-prev", "from-next"];
4141
+ if (!w || !A) return;
4142
+ const I = [`f-${A}Out`, `f-${A}In`, "to-prev", "to-next", "from-prev", "from-next"];
4155
4143
  w.removeEventListener("animationend", Z), ot(w, I.join(" ")), V.delete($);
4156
4144
  }
4157
4145
  function L() {
@@ -4167,12 +4155,12 @@ const so = (e, t = {}, n = {}) => {
4167
4155
  function Y(w) {
4168
4156
  var $;
4169
4157
  if (w.defaultPrevented) return;
4170
- const P = w.composedPath()[0];
4171
- if (P.closest("[data-carousel-go-prev]")) return Xt(w), void Se.prev();
4172
- if (P.closest("[data-carousel-go-next]")) return Xt(w), void Se.next();
4173
- const I = P.closest("[data-carousel-go-to]");
4158
+ const A = w.composedPath()[0];
4159
+ if (A.closest("[data-carousel-go-prev]")) return Xt(w), void Se.prev();
4160
+ if (A.closest("[data-carousel-go-next]")) return Xt(w), void Se.next();
4161
+ const I = A.closest("[data-carousel-go-to]");
4174
4162
  if (I) return Xt(w), void Se.goTo(parseFloat(I.dataset.carouselGoTo || "") || 0);
4175
- if (P.closest("[data-carousel-download]")) {
4163
+ if (A.closest("[data-carousel-download]")) {
4176
4164
  Xt(w);
4177
4165
  const q = ($ = R[M]) === null || $ === void 0 ? void 0 : $.slides[0];
4178
4166
  if (q && (q.downloadSrc || q.type === "image" && q.src)) {
@@ -4185,19 +4173,19 @@ const so = (e, t = {}, n = {}) => {
4185
4173
  }
4186
4174
  function Q(w) {
4187
4175
  var $;
4188
- const P = w.el;
4189
- P && (($ = P.querySelector(".f-spinner")) === null || $ === void 0 || $.remove());
4176
+ const A = w.el;
4177
+ A && (($ = A.querySelector(".f-spinner")) === null || $ === void 0 || $.remove());
4190
4178
  }
4191
4179
  function K(w) {
4192
4180
  var $;
4193
- const P = w.el;
4194
- P && (($ = P.querySelector(".f-html.is-error")) === null || $ === void 0 || $.remove(), ot(P, "has-error"));
4181
+ const A = w.el;
4182
+ A && (($ = A.querySelector(".f-html.is-error")) === null || $ === void 0 || $.remove(), ot(A, "has-error"));
4195
4183
  }
4196
4184
  function ce(w) {
4197
4185
  var $;
4198
4186
  w || (w = ($ = R[M]) === null || $ === void 0 ? void 0 : $.slides[0]);
4199
- const P = w?.el;
4200
- if (!P) return;
4187
+ const A = w?.el;
4188
+ if (!A) return;
4201
4189
  let I = W("formatCaption", w);
4202
4190
  I === void 0 && (I = w.caption), I = I || "";
4203
4191
  const q = W("captionEl");
@@ -4210,14 +4198,14 @@ const so = (e, t = {}, n = {}) => {
4210
4198
  return;
4211
4199
  }
4212
4200
  if (!I) return;
4213
- let z = w.captionEl || P.querySelector(".f-caption");
4201
+ let z = w.captionEl || A.querySelector(".f-caption");
4214
4202
  !z && I instanceof HTMLElement && I.classList.contains("f-caption") && (z = I), z || (z = document.createElement("div"), ue(z, "f-caption"), Fe(I) ? z.innerHTML = ve(I + "") : I instanceof HTMLElement && (I.parentElement && (I = I.cloneNode(!0)), z.append(I)));
4215
4203
  const G = `f-caption-${Cs}_${w.index}`;
4216
- z.setAttribute("id", G), z.dataset.selectable = "true", ue(P, "has-caption"), P.setAttribute("aria-labelledby", G), w.captionEl = z, P.insertAdjacentElement("beforeend", z);
4204
+ z.setAttribute("id", G), z.dataset.selectable = "true", ue(A, "has-caption"), A.setAttribute("aria-labelledby", G), w.captionEl = z, A.insertAdjacentElement("beforeend", z);
4217
4205
  }
4218
4206
  function Te(w, $ = {}) {
4219
- var P, I;
4220
- let { transition: q, tween: z } = Object.assign({ transition: d.transition, tween: d.tween }, $ || {});
4207
+ var A, I;
4208
+ let { transition: q, tween: z } = Object.assign({ transition: f.transition, tween: f.tween }, $ || {});
4221
4209
  if (!u || !s) return;
4222
4210
  const G = R.length;
4223
4211
  if (!G || (function(me, be) {
@@ -4232,9 +4220,9 @@ const so = (e, t = {}, n = {}) => {
4232
4220
  if (nt === void 0 || dt === void 0 || dt === nt || S === ns || Math.abs(y - (Ve?.dim || 0)) > 1) return !1;
4233
4221
  F = !1, s.pause(), L(), ue(u, "in-transition"), S = ne = ns;
4234
4222
  const ln = b(at), cn = b(Ve);
4235
- return yt(), ln && (V.add(dt), ln.style.transform = "", ln.addEventListener("animationend", Z), ot(ln, d.classes.isSelected), ln.inert = !1, ue(ln, `f-${be}Out to-${Ye > 0 ? "next" : "prev"}`)), cn && (V.add(nt), cn.style.transform = "", cn.addEventListener("animationend", Z), ue(cn, d.classes.isSelected), cn.inert = !1, ue(cn, `f-${be}In from-${Ye > 0 ? "prev" : "next"}`)), _e(), !0;
4223
+ return yt(), ln && (V.add(dt), ln.style.transform = "", ln.addEventListener("animationend", Z), ot(ln, f.classes.isSelected), ln.inert = !1, ue(ln, `f-${be}Out to-${Ye > 0 ? "next" : "prev"}`)), cn && (V.add(nt), cn.style.transform = "", cn.addEventListener("animationend", Z), ue(cn, f.classes.isSelected), cn.inert = !1, ue(cn, `f-${be}In from-${Ye > 0 ? "prev" : "next"}`)), _e(), !0;
4236
4224
  })(w, q)) return;
4237
- w = h ? (w % G + G) % G : Oe(0, w, G - 1), ne = ((P = R[w || 0]) === null || P === void 0 ? void 0 : P.pos) || 0;
4225
+ w = h ? (w % G + G) % G : Oe(0, w, G - 1), ne = ((A = R[w || 0]) === null || A === void 0 ? void 0 : A.pos) || 0;
4238
4226
  const de = s.isRunning() ? s.getEndValues().pos : S;
4239
4227
  if (Math.abs(ne - de) < 1) return S = ne, M !== w && (ce(), r = M, M = w, bt(), Ot(), ie("change", M, r)), _e(), void (F || (F = !0, ie("settle")));
4240
4228
  if (s.pause(), L(), h) {
@@ -4243,34 +4231,34 @@ const so = (e, t = {}, n = {}) => {
4243
4231
  return Math.abs(Be - de) < Math.abs(He - de) ? Be : He;
4244
4232
  });
4245
4233
  }
4246
- q !== !1 && tt(z) ? s.spring(ft({}, d.tween, z)).from({ pos: S }).to({ pos: ne }).start() : (S = ne, yt(), _e(), F || (F = !0, ie("settle")));
4234
+ q !== !1 && tt(z) ? s.spring(ft({}, f.tween, z)).from({ pos: S }).to({ pos: ne }).start() : (S = ne, yt(), _e(), F || (F = !0, ie("settle")));
4247
4235
  }
4248
4236
  function Ce(w) {
4249
4237
  var $;
4250
- let P = S;
4238
+ let A = S;
4251
4239
  if (h && w !== !0) {
4252
4240
  const I = We();
4253
- P -= (Math.floor((S - (($ = R[0]) === null || $ === void 0 ? void 0 : $.pos) || 0) / I) || 0) * I;
4241
+ A -= (Math.floor((S - (($ = R[0]) === null || $ === void 0 ? void 0 : $.pos) || 0) / I) || 0) * I;
4254
4242
  }
4255
- return P;
4243
+ return A;
4256
4244
  }
4257
4245
  function _e() {
4258
4246
  var w;
4259
4247
  if (!u || !m) return;
4260
4248
  N = O();
4261
- const $ = /* @__PURE__ */ new Set(), P = [], I = R[M], q = d.setTransform;
4249
+ const $ = /* @__PURE__ */ new Set(), A = [], I = R[M], q = f.setTransform;
4262
4250
  let z;
4263
4251
  for (const G of j) {
4264
4252
  const X = V.has(G.index), de = N.indexOf(G) > -1, me = ((w = I?.slides) === null || w === void 0 ? void 0 : w.indexOf(G)) > -1;
4265
4253
  if (G.isVirtual && !X && !de) continue;
4266
4254
  let be = b(G);
4267
- if (be && (P.push(G), me && $.add(be), W("adaptiveHeight") && me)) {
4255
+ if (be && (A.push(G), me && $.add(be), W("adaptiveHeight") && me)) {
4268
4256
  const Ae = (be.lastElementChild || be).getBoundingClientRect().height;
4269
4257
  z = z == null ? Ae : Math.max(z, Ae);
4270
4258
  }
4271
4259
  }
4272
- m && z && (m.style.height = `${z}px`), [...xo(m, `.${d.classes.slide}`)].forEach((G) => {
4273
- it(G, d.classes.isSelected, $.has(G));
4260
+ m && z && (m.style.height = `${z}px`), [...xo(m, `.${f.classes.slide}`)].forEach((G) => {
4261
+ it(G, f.classes.isSelected, $.has(G));
4274
4262
  const X = ae[parseInt(G.getAttribute("index") || "-1")];
4275
4263
  if (!X) return G.remove(), void C(G);
4276
4264
  const de = V.has(X.index), me = N.indexOf(X) > -1;
@@ -4278,7 +4266,7 @@ const so = (e, t = {}, n = {}) => {
4278
4266
  if (G.inert = !me, q === !1) return;
4279
4267
  let be = X.pos ? Math.round(1e4 * X.pos) / 1e4 : 0, Ae = 0, He = 0, Be = 0, Ge = 0;
4280
4268
  de || (Ae = v ? 0 : x ? -1 * be : be, He = v ? be : 0, Be = no(Ae, 0, X.dim, 0, 100), Ge = no(He, 0, X.dim, 0, 100)), q instanceof Function && !de ? q(Se, X, { x: Ae, y: He, xPercent: Be, yPercent: Ge }) : G.style.transform = Ae || He ? `translate3d(${Be}%, ${Ge}%,0)` : "";
4281
- }), ie("render", P);
4269
+ }), ie("render", A);
4282
4270
  }
4283
4271
  function Pe() {
4284
4272
  u?.removeEventListener("click", Y), document.removeEventListener("mousemove", De), V.clear(), a?.disconnect(), a = void 0;
@@ -4286,9 +4274,9 @@ const so = (e, t = {}, n = {}) => {
4286
4274
  let $ = w.el;
4287
4275
  $ && mn($) && (w.state = void 0, Q(w), K(w), w.isVirtual ? (E(w), w.el = void 0) : (C($), $.style.transform = "", m && !m.contains($) && m.appendChild($)));
4288
4276
  }
4289
- for (const w of Object.values(f)) w?.destroy();
4290
- f = {}, o?.destroy(), o = void 0, s?.destroy(), s = void 0;
4291
- for (const [w, $] of Object.entries(d.classes || {})) w !== "container" && ot(u, $);
4277
+ for (const w of Object.values(d)) w?.destroy();
4278
+ d = {}, o?.destroy(), o = void 0, s?.destroy(), s = void 0;
4279
+ for (const [w, $] of Object.entries(f.classes || {})) w !== "container" && ot(u, $);
4292
4280
  ot(m, "is-draggable");
4293
4281
  }
4294
4282
  function Re() {
@@ -4298,12 +4286,12 @@ const so = (e, t = {}, n = {}) => {
4298
4286
  return h || M < R.length - 1;
4299
4287
  }
4300
4288
  const Se = { add: function(w, $) {
4301
- var P;
4289
+ var A;
4302
4290
  let I = S;
4303
- const q = M, z = We(), G = s?.isRunning() ? s.getEndValues().pos : S, X = z && Math.floor((G - (((P = R[0]) === null || P === void 0 ? void 0 : P.pos) || 0)) / z) || 0;
4291
+ const q = M, z = We(), G = s?.isRunning() ? s.getEndValues().pos : S, X = z && Math.floor((G - (((A = R[0]) === null || A === void 0 ? void 0 : A.pos) || 0)) / z) || 0;
4304
4292
  return U(w, $), Ct($e), H(), s && z && (q === M && (I -= X * z), I === ne ? S = ne : s.spring({ clamp: !0, mass: 1, tension: 300, friction: 25, restDelta: 1, restSpeed: 1 }).from({ pos: I }).to({ pos: ne }).start()), _e(), Se;
4305
4293
  }, canGoPrev: Re, canGoNext: je, destroy: function() {
4306
- return ie("destroy"), window.removeEventListener("resize", ke), Pe(), pe.clear(), u = null, R = [], ae = [], d = Object.assign({}, pn), f = {}, j = [], l = void 0, $e = "*", i = 2, Se;
4294
+ return ie("destroy"), window.removeEventListener("resize", ke), Pe(), pe.clear(), u = null, R = [], ae = [], f = Object.assign({}, pn), d = {}, j = [], l = void 0, $e = "*", i = 2, Se;
4307
4295
  }, emit: ie, filter: function(w = "*") {
4308
4296
  return Ct(w), H(), S = Oe(ye, S, le), _e(), ie("filter", w), Se;
4309
4297
  }, getContainer: function() {
@@ -4315,24 +4303,24 @@ const so = (e, t = {}, n = {}) => {
4315
4303
  }, getOption: function(w) {
4316
4304
  return W(w);
4317
4305
  }, getOptions: function() {
4318
- return d;
4306
+ return f;
4319
4307
  }, getPage: function() {
4320
4308
  return R[M];
4321
4309
  }, getPageIndex: function(w) {
4322
4310
  if (w !== void 0) {
4323
- for (const $ of R || []) for (const P of $.slides) if (P.index === w) return $.index;
4311
+ for (const $ of R || []) for (const A of $.slides) if (A.index === w) return $.index;
4324
4312
  return -1;
4325
4313
  }
4326
4314
  return M;
4327
4315
  }, getPageIndexFromPosition: ut, getPageProgress: function(w, $) {
4328
- var P;
4316
+ var A;
4329
4317
  w === void 0 && (w = M);
4330
4318
  const I = R[w];
4331
4319
  if (!I) return w > M ? -1 : 1;
4332
4320
  const q = We(), z = Ht();
4333
4321
  let G = I.pos, X = Ce();
4334
4322
  if (h && $ !== !0) {
4335
- const de = Math.floor((X - ((P = R[0]) === null || P === void 0 ? void 0 : P.pos)) / q) || 0;
4323
+ const de = Math.floor((X - ((A = R[0]) === null || A === void 0 ? void 0 : A.pos)) / q) || 0;
4336
4324
  X -= de * q, G = [G + q, G, G - q].reduce(function(me, be) {
4337
4325
  return Math.abs(be - X) < Math.abs(me - X) ? be : me;
4338
4326
  });
@@ -4341,21 +4329,21 @@ const so = (e, t = {}, n = {}) => {
4341
4329
  }, getPageVisibility: function(w) {
4342
4330
  var $;
4343
4331
  w === void 0 && (w = M);
4344
- const P = R[w];
4345
- if (!P) return w > M ? -1 : 1;
4332
+ const A = R[w];
4333
+ if (!A) return w > M ? -1 : 1;
4346
4334
  const I = Ce(), q = Ke();
4347
- let z = P.pos;
4335
+ let z = A.pos;
4348
4336
  if (h) {
4349
4337
  const G = We(), X = z + (Math.floor((I - (($ = R[0]) === null || $ === void 0 ? void 0 : $.pos)) / G) || 0) * G;
4350
4338
  z = [X + G, X, X - G].reduce(function(de, me) {
4351
4339
  return Math.abs(me - I) < Math.abs(de - I) ? me : de;
4352
4340
  });
4353
4341
  }
4354
- return z > I && z + P.dim < I + q ? 1 : z < I ? (z + P.dim - I) / P.dim || 0 : z + P.dim > I + q && (I + q - z) / P.dim || 0;
4342
+ return z > I && z + A.dim < I + q ? 1 : z < I ? (z + A.dim - I) / A.dim || 0 : z + A.dim > I + q && (I + q - z) / A.dim || 0;
4355
4343
  }, getPages: function() {
4356
4344
  return R;
4357
4345
  }, getPlugins: function() {
4358
- return f;
4346
+ return d;
4359
4347
  }, getPosition: Ce, getSlides: function() {
4360
4348
  return ae;
4361
4349
  }, getState: function() {
@@ -4384,10 +4372,10 @@ const so = (e, t = {}, n = {}) => {
4384
4372
  }, localize: ve, next: function(w = {}) {
4385
4373
  return Te(M + 1, w), Se;
4386
4374
  }, off: function(w, $) {
4387
- for (const P of w instanceof Array ? w : [w]) pe.has(P) && pe.set(P, pe.get(P).filter((I) => I !== $));
4375
+ for (const A of w instanceof Array ? w : [w]) pe.has(A) && pe.set(A, pe.get(A).filter((I) => I !== $));
4388
4376
  return Se;
4389
4377
  }, on: function(w, $) {
4390
- for (const P of w instanceof Array ? w : [w]) pe.set(P, [...pe.get(P) || [], $]);
4378
+ for (const A of w instanceof Array ? w : [w]) pe.set(A, [...pe.get(A) || [], $]);
4391
4379
  return Se;
4392
4380
  }, prev: function(w = {}) {
4393
4381
  return Te(M - 1, w), Se;
@@ -4402,16 +4390,16 @@ const so = (e, t = {}, n = {}) => {
4402
4390
  }, showError: function(w, $) {
4403
4391
  if (i === 1) {
4404
4392
  Q(w), K(w);
4405
- const P = w.el;
4406
- if (P) {
4393
+ const A = w.el;
4394
+ if (A) {
4407
4395
  const I = document.createElement("div");
4408
- ue(I, "f-html"), ue(I, "is-error"), I.innerHTML = ve($ || "<p>{{ERROR}}</p>"), w.htmlEl = I, ue(P, "has-html has-error"), P.insertAdjacentElement("afterbegin", I), ie("contentReady", w);
4396
+ ue(I, "f-html"), ue(I, "is-error"), I.innerHTML = ve($ || "<p>{{ERROR}}</p>"), w.htmlEl = I, ue(A, "has-html has-error"), A.insertAdjacentElement("afterbegin", I), ie("contentReady", w);
4409
4397
  }
4410
4398
  }
4411
4399
  return Se;
4412
4400
  }, showLoading: function(w) {
4413
- const $ = w.el, P = $?.querySelector(".f-spinner");
4414
- if (!$ || P) return Se;
4401
+ const $ = w.el, A = $?.querySelector(".f-spinner");
4402
+ if (!$ || A) return Se;
4415
4403
  const I = W("spinnerTpl"), q = It(I);
4416
4404
  return q && (ue(q, "f-spinner"), $.insertAdjacentElement("beforeend", q)), Se;
4417
4405
  }, version: "6.1.13" };
@@ -4426,48 +4414,48 @@ const _s = { tpl: (e) => `<img class="f-panzoom__content"
4426
4414
  ${e.sizes ? 'data-lazy-sizes="{{sizes}}"' : ""}
4427
4415
  data-lazy-src="{{src}}" alt="{{alt}}" />` }, jc = () => {
4428
4416
  let e;
4429
- function t(d, f) {
4417
+ function t(f, d) {
4430
4418
  const u = e?.getOptions().Zoomable;
4431
- let m = (tt(u) ? Object.assign(Object.assign({}, _s), u) : _s)[d];
4432
- return m && typeof m == "function" && f ? m(f) : m;
4419
+ let m = (tt(u) ? Object.assign(Object.assign({}, _s), u) : _s)[f];
4420
+ return m && typeof m == "function" && d ? m(d) : m;
4433
4421
  }
4434
4422
  function n() {
4435
4423
  e && e.getOptions().Zoomable !== !1 && (e.on("addSlide", a), e.on("removeSlide", r), e.on("attachSlideEl", l), e.on("click", s), e.on("change", o), e.on("ready", o));
4436
4424
  }
4437
4425
  function o() {
4438
4426
  i();
4439
- const d = e?.getVisibleSlides() || [];
4440
- if (d.length > 1 || e?.getOption("transition") === "slide") for (const f of d) {
4441
- const u = f.panzoomRef;
4442
- u && (e?.getPage().slides || []).indexOf(f) < 0 && u.execute(oe.ZoomTo, Object.assign({}, u.getStartPosition()));
4443
- }
4444
- }
4445
- function s(d, f) {
4446
- const u = f.target;
4447
- u && !f.defaultPrevented && u.dataset.panzoomAction && c(u.dataset.panzoomAction);
4448
- }
4449
- function a(d, f) {
4450
- const u = f.el;
4451
- if (!e || !u || f.panzoomRef) return;
4452
- const m = f.src || f.lazySrc || "", y = f.alt || f.caption || `Image #${f.index}`, g = f.srcset || f.lazySrcset || "", p = f.sizes || f.lazySizes || "";
4453
- if (m && Fe(m) && !f.html && (!f.type || f.type === "image")) {
4454
- f.type = "image", f.thumbSrc = f.thumbSrc || m;
4455
- let S = t("tpl", f);
4427
+ const f = e?.getVisibleSlides() || [];
4428
+ if (f.length > 1 || e?.getOption("transition") === "slide") for (const d of f) {
4429
+ const u = d.panzoomRef;
4430
+ u && (e?.getPage().slides || []).indexOf(d) < 0 && u.execute(oe.ZoomTo, Object.assign({}, u.getStartPosition()));
4431
+ }
4432
+ }
4433
+ function s(f, d) {
4434
+ const u = d.target;
4435
+ u && !d.defaultPrevented && u.dataset.panzoomAction && c(u.dataset.panzoomAction);
4436
+ }
4437
+ function a(f, d) {
4438
+ const u = d.el;
4439
+ if (!e || !u || d.panzoomRef) return;
4440
+ const m = d.src || d.lazySrc || "", y = d.alt || d.caption || `Image #${d.index}`, g = d.srcset || d.lazySrcset || "", p = d.sizes || d.lazySizes || "";
4441
+ if (m && Fe(m) && !d.html && (!d.type || d.type === "image")) {
4442
+ d.type = "image", d.thumbSrc = d.thumbSrc || m;
4443
+ let S = t("tpl", d);
4456
4444
  S = Qt(S, "{{src}}", m + ""), S = Qt(S, "{{srcset}}", g + ""), S = Qt(S, "{{sizes}}", p + ""), u.insertAdjacentHTML("afterbegin", S);
4457
4445
  }
4458
4446
  const h = u.querySelector(".f-panzoom__content");
4459
4447
  if (!h) return;
4460
4448
  h.setAttribute("alt", y + "");
4461
- const x = f.width && f.width !== "auto" ? parseFloat(f.width + "") : "auto", v = f.height && f.height !== "auto" ? parseFloat(f.height + "") : "auto", k = jo(u, Object.assign({ width: x, height: v, classes: { container: "f-zoomable" }, event: () => e?.getLastMouseMove(), spinnerTpl: () => e?.getOption("spinnerTpl") || "" }, t("Panzoom")));
4449
+ const x = d.width && d.width !== "auto" ? parseFloat(d.width + "") : "auto", v = d.height && d.height !== "auto" ? parseFloat(d.height + "") : "auto", k = jo(u, Object.assign({ width: x, height: v, classes: { container: "f-zoomable" }, event: () => e?.getLastMouseMove(), spinnerTpl: () => e?.getOption("spinnerTpl") || "" }, t("Panzoom")));
4462
4450
  k.on("*", (S, F, ...M) => {
4463
- e && (F === "loading" && (f.state = 0), F === "loaded" && (f.state = 1), F === "error" && (f.state = 2, e?.showError(f, "{{IMAGE_ERROR}}")), e.emit(`panzoom:${F}`, f, ...M), F === "loading" && e.emit("contentLoading", f), F === "ready" && e.emit("contentReady", f), f.index === e?.getPageIndex() && i());
4464
- }), f.panzoomRef = k;
4451
+ e && (F === "loading" && (d.state = 0), F === "loaded" && (d.state = 1), F === "error" && (d.state = 2, e?.showError(d, "{{IMAGE_ERROR}}")), e.emit(`panzoom:${F}`, d, ...M), F === "loading" && e.emit("contentLoading", d), F === "ready" && e.emit("contentReady", d), d.index === e?.getPageIndex() && i());
4452
+ }), d.panzoomRef = k;
4465
4453
  }
4466
- function r(d, f) {
4467
- f.panzoomRef && (f.panzoomRef.destroy(), f.panzoomRef = void 0);
4454
+ function r(f, d) {
4455
+ d.panzoomRef && (d.panzoomRef.destroy(), d.panzoomRef = void 0);
4468
4456
  }
4469
- function l(d, f) {
4470
- const u = f.panzoomRef;
4457
+ function l(f, d) {
4458
+ const u = d.panzoomRef;
4471
4459
  if (u) switch (u.getState()) {
4472
4460
  case 0:
4473
4461
  u.init();
@@ -4477,21 +4465,21 @@ const _s = { tpl: (e) => `<img class="f-panzoom__content"
4477
4465
  }
4478
4466
  }
4479
4467
  function i() {
4480
- var d, f;
4481
- const u = e?.getContainer() || void 0, m = (f = (d = e?.getPage()) === null || d === void 0 ? void 0 : d.slides[0]) === null || f === void 0 ? void 0 : f.panzoomRef;
4468
+ var f, d;
4469
+ const u = e?.getContainer() || void 0, m = (d = (f = e?.getPage()) === null || f === void 0 ? void 0 : f.slides[0]) === null || d === void 0 ? void 0 : d.panzoomRef;
4482
4470
  if (u) if (m) m.updateControls(u);
4483
4471
  else for (const y of u.querySelectorAll("[data-panzoom-action]") || []) y.setAttribute("aria-disabled", ""), y.setAttribute("tabindex", "-1");
4484
4472
  }
4485
- function c(d, ...f) {
4473
+ function c(f, ...d) {
4486
4474
  var u;
4487
- (u = e?.getPage().slides[0].panzoomRef) === null || u === void 0 || u.execute(d, ...f);
4475
+ (u = e?.getPage().slides[0].panzoomRef) === null || u === void 0 || u.execute(f, ...d);
4488
4476
  }
4489
- return { init: function(d) {
4490
- e = d, e.on("initPlugins", n);
4477
+ return { init: function(f) {
4478
+ e = f, e.on("initPlugins", n);
4491
4479
  }, destroy: function() {
4492
4480
  if (e) {
4493
4481
  e.off("initPlugins", n), e.off("addSlide", a), e.off("removeSlide", r), e.off("attachSlideEl", l), e.off("click", s), e.off("change", o), e.off("ready", o);
4494
- for (const d of e.getSlides()) r(0, d);
4482
+ for (const f of e.getSlides()) r(0, f);
4495
4483
  }
4496
4484
  e = void 0;
4497
4485
  }, execute: c };
@@ -4505,7 +4493,7 @@ const $s = { syncOnChange: !1, syncOnClick: !0, syncOnHover: !1 }, ea = () => {
4505
4493
  function o(m) {
4506
4494
  var y, g, p;
4507
4495
  e && m && (t = m, e.getOptions().classes = Object.assign(Object.assign({}, e.getOptions().classes), { isSelected: "" }), e.getOptions().initialSlide = ((g = (y = t.getPage()) === null || y === void 0 ? void 0 : y.slides[0]) === null || g === void 0 ? void 0 : g.index) || 0, n().syncOnChange && e.on("change", r), n().syncOnClick && e.on("click", i), n().syncOnHover && ((p = e.getViewport()) === null || p === void 0 || p.addEventListener("mouseover", c)), (function() {
4508
- !e || !t || (e.on("ready", a), e.on("refresh", d), t.on("change", l), t.on("filter", f));
4496
+ !e || !t || (e.on("ready", a), e.on("refresh", f), t.on("change", l), t.on("filter", d));
4509
4497
  })());
4510
4498
  }
4511
4499
  function s() {
@@ -4543,14 +4531,14 @@ const $s = { syncOnChange: !1, syncOnClick: !0, syncOnHover: !1 }, ea = () => {
4543
4531
  function c(m) {
4544
4532
  e && i(0, m);
4545
4533
  }
4546
- function d() {
4534
+ function f() {
4547
4535
  var m;
4548
4536
  if (e && t) {
4549
4537
  const y = e.getPageIndex(((m = t.getPage()) === null || m === void 0 ? void 0 : m.slides[0].index) || 0);
4550
4538
  y > -1 && e.goTo(y, { tween: !1, transition: !1 }), u();
4551
4539
  }
4552
4540
  }
4553
- function f(m, y) {
4541
+ function d(m, y) {
4554
4542
  e && t && (e.filter(y), l());
4555
4543
  }
4556
4544
  function u() {
@@ -4563,7 +4551,7 @@ const $s = { syncOnChange: !1, syncOnClick: !0, syncOnHover: !1 }, ea = () => {
4563
4551
  e = m, e.on("initSlides", s);
4564
4552
  }, destroy: function() {
4565
4553
  var m;
4566
- e?.off("ready", a), e?.off("refresh", d), e?.off("change", r), e?.off("click", i), (m = e?.getViewport()) === null || m === void 0 || m.removeEventListener("mouseover", c), t?.off("change", l), t?.off("filter", f), t = void 0, e?.off("initSlides", s), e = void 0;
4554
+ e?.off("ready", a), e?.off("refresh", f), e?.off("change", r), e?.off("click", i), (m = e?.getViewport()) === null || m === void 0 || m.removeEventListener("mouseover", c), t?.off("change", l), t?.off("filter", d), t = void 0, e?.off("initSlides", s), e = void 0;
4567
4555
  }, getTarget: function() {
4568
4556
  return t;
4569
4557
  } };
@@ -4581,9 +4569,9 @@ const Ms = { showLoading: !0, preload: 1 }, Cn = "is-lazyloading", wo = "is-lazy
4581
4569
  const l = "[data-lazy-src],[data-lazy-srcset],[data-lazy-bg]", i = Array.from(r.querySelectorAll(l));
4582
4570
  r.matches(l) && i.push(r);
4583
4571
  for (const c of i) {
4584
- const d = c.dataset.lazySrc, f = c.dataset.lazySrcset, u = c.dataset.lazySizes, m = c.dataset.lazyBg, y = (c instanceof HTMLImageElement || c instanceof HTMLSourceElement) && (d || f), g = c instanceof HTMLElement && m;
4572
+ const f = c.dataset.lazySrc, d = c.dataset.lazySrcset, u = c.dataset.lazySizes, m = c.dataset.lazyBg, y = (c instanceof HTMLImageElement || c instanceof HTMLSourceElement) && (f || d), g = c instanceof HTMLElement && m;
4585
4573
  if (!y && !g) continue;
4586
- const p = d || f || m;
4574
+ const p = f || d || m;
4587
4575
  if (p) {
4588
4576
  if (y && p) {
4589
4577
  const h = (a = c.parentElement) === null || a === void 0 ? void 0 : a.classList.contains("f-panzoom__wrapper");
@@ -4595,7 +4583,7 @@ const Ms = { showLoading: !0, preload: 1 }, Cn = "is-lazyloading", wo = "is-lazy
4595
4583
  }) : (ot(c, Cn), ue(c, wo)), h || e == null || e.emit("lazyLoad:loaded", s, c, p);
4596
4584
  }), c.addEventListener("error", () => {
4597
4585
  e?.hideLoading(s), ot(c, Cn), ue(c, Ls), h || e == null || e.emit("lazyLoad:error", s, c, p);
4598
- }), c.classList.add("f-lazyload"), c.classList.add(Cn), h || e == null || e.emit("lazyLoad:load", s, c, p), d && (c.src = d), f && (c.srcset = f), u && (c.sizes = u);
4586
+ }), c.classList.add("f-lazyload"), c.classList.add(Cn), h || e == null || e.emit("lazyLoad:load", s, c, p), f && (c.src = f), d && (c.srcset = d), u && (c.sizes = u);
4599
4587
  } else g && (document.body.contains(c) || (document.createElement("img").src = m), c.style.backgroundImage = `url('${m}')`);
4600
4588
  delete c.dataset.lazySrc, delete c.dataset.lazySrcset, delete c.dataset.lazySizes, delete c.dataset.lazyBg;
4601
4589
  }
@@ -4665,9 +4653,9 @@ const Fs = Object.assign({ counter: { tpl: '<div class="f-counter"><span data-ca
4665
4653
  let r = n("enabled");
4666
4654
  if (!r) return;
4667
4655
  const l = n("absolute"), i = e.getSlides().length > 1;
4668
- let c = !1, d = !1;
4669
- for (const p of e.getSlides()) p.panzoomRef && (c = !0), (p.downloadSrc || p.type === "image" && p.src) && (d = !0);
4670
- const f = ((s = e.getPlugins().Thumbs) === null || s === void 0 ? void 0 : s.isEnabled()) || !1, u = i && e.getPlugins().Autoplay || !1, m = e.getPlugins().Fullscreen && (document.fullscreenEnabled || document.webkitFullscreenEnabled);
4656
+ let c = !1, f = !1;
4657
+ for (const p of e.getSlides()) p.panzoomRef && (c = !0), (p.downloadSrc || p.type === "image" && p.src) && (f = !0);
4658
+ const d = ((s = e.getPlugins().Thumbs) === null || s === void 0 ? void 0 : s.isEnabled()) || !1, u = i && e.getPlugins().Autoplay || !1, m = e.getPlugins().Fullscreen && (document.fullscreenEnabled || document.webkitFullscreenEnabled);
4671
4659
  if (r === "auto" && (r = c), !r) return;
4672
4660
  t = a.querySelector(".f-carousel__toolbar") || void 0, t || (t = document.createElement("div"), ue(t, "f-carousel__toolbar"));
4673
4661
  const y = n("display"), g = ft({}, Fs, n("items"));
@@ -4677,7 +4665,7 @@ const Fs = Object.assign({ counter: { tpl: '<div class="f-counter"><span data-ca
4677
4665
  for (const v of h) {
4678
4666
  let k;
4679
4667
  if (Fe(v)) {
4680
- if (v === "counter" && !i || v === "autoplay" && !u || es[v] && !c || v === "fullscreen" && !m || v === "thumbs" && !f || v === "download" && !d) continue;
4668
+ if (v === "counter" && !i || v === "autoplay" && !u || es[v] && !c || v === "fullscreen" && !m || v === "thumbs" && !d || v === "download" && !f) continue;
4681
4669
  k = g[v];
4682
4670
  }
4683
4671
  if (tt(v) && (k = v), k && k.tpl) {
@@ -4728,7 +4716,7 @@ const Ds = { autoStart: !0, pauseOnHover: !0, showProgressbar: !0, timeout: 2e3
4728
4716
  })()) return;
4729
4717
  (function() {
4730
4718
  var F, M, ne, ye;
4731
- if (!e || (f(), !r("showProgressbar"))) return;
4719
+ if (!e || (d(), !r("showProgressbar"))) return;
4732
4720
  let le = r("progressbarParentEl");
4733
4721
  if (!le && (!((F = e.getPlugins().Toolbar) === null || F === void 0) && F.isEnabled()) && (le = e.getContainer()), !le && ((M = e.getPlugins().Toolbar) === null || M === void 0 ? void 0 : M.isEnabled()) !== !0) {
4734
4722
  const ae = ((ne = e.getPages()[0]) === null || ne === void 0 ? void 0 : ne.slides) || [], j = ((ye = e.getPage()) === null || ye === void 0 ? void 0 : ye.slides) || [];
@@ -4749,21 +4737,21 @@ const Ds = { autoStart: !0, pauseOnHover: !0, showProgressbar: !0, timeout: 2e3
4749
4737
  if (!e || e.getPages().length < 2 || e.getOptions().Autoplay === !1 || n) return;
4750
4738
  n = !0, e.emit("autoplay:start", r("timeout")), ue(e.getContainer(), "has-autoplay"), (S = e.getTween()) === null || S === void 0 || S.on("start", h);
4751
4739
  const F = e?.getContainer();
4752
- F && r("pauseOnHover") && matchMedia("(hover: hover)").matches && (F.addEventListener("mouseenter", x, !1), F.addEventListener("mouseleave", v, !1)), e.on("change", g), e.on("settle", p), e.on("contentReady", m), e.on("panzoom:touchStart", d), e.on("panzoom:wheel", d), e.isSettled() && i();
4740
+ F && r("pauseOnHover") && matchMedia("(hover: hover)").matches && (F.addEventListener("mouseenter", x, !1), F.addEventListener("mouseleave", v, !1)), e.on("change", g), e.on("settle", p), e.on("contentReady", m), e.on("panzoom:touchStart", f), e.on("panzoom:wheel", f), e.isSettled() && i();
4753
4741
  }
4754
- function d() {
4742
+ function f() {
4755
4743
  var S;
4756
- if (l(), f(), e) {
4744
+ if (l(), d(), e) {
4757
4745
  if (n) {
4758
4746
  e.emit("autoplay:end"), (S = e.getTween()) === null || S === void 0 || S.off("start", h);
4759
4747
  const F = e.getContainer();
4760
4748
  F && (F.classList.remove("has-autoplay"), F.removeEventListener("mouseenter", x, !1), F.removeEventListener("mouseleave", v, !1));
4761
4749
  }
4762
- e.off("change", g), e.off("settle", p), e.off("contentReady", m), e.off("panzoom:touchStart", d), e.off("panzoom:wheel", d);
4750
+ e.off("change", g), e.off("settle", p), e.off("contentReady", m), e.off("panzoom:touchStart", f), e.off("panzoom:wheel", f);
4763
4751
  }
4764
4752
  n = !1, o = !1;
4765
4753
  }
4766
- function f() {
4754
+ function d() {
4767
4755
  a && (a.remove(), a = null);
4768
4756
  }
4769
4757
  function u() {
@@ -4777,16 +4765,16 @@ const Ds = { autoStart: !0, pauseOnHover: !0, showProgressbar: !0, timeout: 2e3
4777
4765
  M && !F.defaultPrevented && M.dataset.autoplayAction === "toggle" && k.toggle();
4778
4766
  }
4779
4767
  function g() {
4780
- !e || !e?.isInfinite() && e.getPageIndex() === e.getPages().length - 1 ? d() : (f(), l());
4768
+ !e || !e?.isInfinite() && e.getPageIndex() === e.getPages().length - 1 ? f() : (d(), l());
4781
4769
  }
4782
4770
  function p() {
4783
4771
  i();
4784
4772
  }
4785
4773
  function h() {
4786
- l(), f();
4774
+ l(), d();
4787
4775
  }
4788
4776
  function x() {
4789
- s = !0, n && (f(), l());
4777
+ s = !0, n && (d(), l());
4790
4778
  }
4791
4779
  function v() {
4792
4780
  s = !1, n && !o && e?.isSettled() && i();
@@ -4794,7 +4782,7 @@ const Ds = { autoStart: !0, pauseOnHover: !0, showProgressbar: !0, timeout: 2e3
4794
4782
  const k = { init: function(S) {
4795
4783
  e = S, e.on("ready", u), e.on("click", y);
4796
4784
  }, destroy: function() {
4797
- d(), e?.off("ready", u), e?.off("click", y), e = void 0;
4785
+ f(), e?.off("ready", u), e?.off("click", y), e = void 0;
4798
4786
  }, isEnabled: () => n, pause: function() {
4799
4787
  o = !0, l();
4800
4788
  }, resume: function() {
@@ -4802,9 +4790,9 @@ const Ds = { autoStart: !0, pauseOnHover: !0, showProgressbar: !0, timeout: 2e3
4802
4790
  }, start() {
4803
4791
  c();
4804
4792
  }, stop() {
4805
- d();
4793
+ f();
4806
4794
  }, toggle() {
4807
- n ? d() : c();
4795
+ n ? f() : c();
4808
4796
  } };
4809
4797
  return k;
4810
4798
  };
@@ -4823,10 +4811,10 @@ const Nc = () => {
4823
4811
  for (const V of e.getSlides()) V.thumbSrc && j++;
4824
4812
  return j >= i("minCount");
4825
4813
  }
4826
- function d() {
4814
+ function f() {
4827
4815
  return i("type") === "modern";
4828
4816
  }
4829
- function f() {
4817
+ function d() {
4830
4818
  return i("type") === "scrollable";
4831
4819
  }
4832
4820
  function u() {
@@ -4859,7 +4847,7 @@ const Nc = () => {
4859
4847
  ue(n, R.container), ue(n, "f-thumbs"), ue(n, `is-${i("type")}`), j && ue(n, "is-hidden");
4860
4848
  }
4861
4849
  function p() {
4862
- if (!n || !f()) return;
4850
+ if (!n || !d()) return;
4863
4851
  o = document.createElement("div"), ue(o, "f-thumbs__viewport");
4864
4852
  let j = "";
4865
4853
  for (const V of u())
@@ -4878,19 +4866,19 @@ const Nc = () => {
4878
4866
  }
4879
4867
  function h() {
4880
4868
  var j;
4881
- if (!Eo || !e || !n || f() || t) return;
4869
+ if (!Eo || !e || !n || d() || t) return;
4882
4870
  const V = u();
4883
4871
  if (!V.length) return;
4884
- const N = ft({}, { Sync: { target: e }, Lazyload: { preload: 1 }, slides: V, 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: (R) => {
4872
+ const N = ft({}, { Sync: { target: e }, Lazyload: { preload: 1 }, slides: V, classes: { container: "f-thumbs", viewport: "f-thumbs__viewport", slide: "f-thumbs__slide" }, center: !0, fill: !f(), infinite: !1, dragFree: !0, rtl: e.getOptions().rtl || !1, slidesPerPage: (R) => {
4885
4873
  let J = 0;
4886
- return d() && ((function() {
4887
- if (!d() || !n) return;
4874
+ return f() && ((function() {
4875
+ if (!f() || !n) return;
4888
4876
  const ge = (fe) => n && parseFloat(getComputedStyle(n).getPropertyValue("--f-thumb-" + fe)) || 0;
4889
4877
  a = ge("width"), r = ge("clip-width");
4890
4878
  })(), J = 4 * (a - r)), R && R.getTotalSlideDim() <= R.getViewportDim() - J ? 1 / 0 : 1;
4891
4879
  } }, ko.Carousel || {}, i("Carousel") || {});
4892
4880
  t = Eo(n, N, { Sync: ea, Lazyload: ta }), t.on("ready", () => {
4893
- ue(n, "is-syncing"), e?.emit("thumbs:ready"), d() && e?.on("render", S);
4881
+ ue(n, "is-syncing"), e?.emit("thumbs:ready"), f() && e?.on("render", S);
4894
4882
  }), t.on("destroy", () => {
4895
4883
  e?.emit("thumbs:destroy");
4896
4884
  }), t.init(), (j = t.getGestures()) === null || j === void 0 || j.on("start", () => {
@@ -4917,7 +4905,7 @@ const Nc = () => {
4917
4905
  function S() {
4918
4906
  var j, V;
4919
4907
  n?.classList.toggle("is-syncing", e?.hasNavigated() === !1 || ((j = e?.getTween()) === null || j === void 0 ? void 0 : j.isRunning())), ae(), !((V = e?.getGestures()) === null || V === void 0) && V.isPointerDown() && (function() {
4920
- if (!d() || !e || !t || !l) return;
4908
+ if (!f() || !e || !t || !l) return;
4921
4909
  const N = t.getTween(), R = t.getPages(), J = e.getPageIndex() || 0, ge = e.getPageProgress() || 0;
4922
4910
  if (!(e && R && R[J] && N)) return;
4923
4911
  const fe = N.isRunning() ? N.getCurrentValues().pos : t.getPosition();
@@ -4954,7 +4942,7 @@ const Nc = () => {
4954
4942
  $e();
4955
4943
  }
4956
4944
  function $e(j = !1) {
4957
- if (!e || !o || !f()) return;
4945
+ if (!e || !o || !d()) return;
4958
4946
  const V = e.getPageIndex();
4959
4947
  o.querySelectorAll(".is-selected").forEach((R) => {
4960
4948
  R.classList.remove("is-selected");
@@ -4967,7 +4955,7 @@ const Nc = () => {
4967
4955
  }
4968
4956
  }
4969
4957
  function ae() {
4970
- if (!d() || !e || !t) return;
4958
+ if (!f() || !e || !t) return;
4971
4959
  const j = t?.getSlides() || [];
4972
4960
  let V = -0.5 * a;
4973
4961
  for (const N of j) {
@@ -4981,7 +4969,7 @@ const Nc = () => {
4981
4969
  Eo = V, e = j, e.on("ready", v), e.on("initSlides", x), e.on("change", F);
4982
4970
  }, destroy: function() {
4983
4971
  var j, V;
4984
- f() && e?.emit("thumbs:destroy"), e?.off("ready", v), e?.off("initSlides", x), e?.off("change", F), e?.off("render", S), e?.off("addSlide", M), e?.off("click", ye), e?.off("refresh", le), (j = e?.getGestures()) === null || j === void 0 || j.off("start", k), (V = e?.getContainer()) === null || V === void 0 || V.classList.remove("has-thumbs"), e = void 0, t?.destroy(), t = void 0, n?.remove(), n = void 0;
4972
+ d() && e?.emit("thumbs:destroy"), e?.off("ready", v), e?.off("initSlides", x), e?.off("change", F), e?.off("render", S), e?.off("addSlide", M), e?.off("click", ye), e?.off("refresh", le), (j = e?.getGestures()) === null || j === void 0 || j.off("start", k), (V = e?.getContainer()) === null || V === void 0 || V.classList.remove("has-thumbs"), e = void 0, t?.destroy(), t = void 0, n?.remove(), n = void 0;
4985
4973
  }, getCarousel: function() {
4986
4974
  return t;
4987
4975
  }, getContainer: function() {
@@ -5004,28 +4992,28 @@ const js = { autosize: !1, iframeAttr: { allow: "autoplay; fullscreen", scrollin
5004
4992
  let i = l.type, c = l.src;
5005
4993
  if (!i && Fe(c)) {
5006
4994
  if (c.charAt(0) === "#" ? i = "inline" : c.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.((a)?png|avif|gif|jp(g|eg)|pjp(eg)?|jfif|svg|webp|bmp|ico|tif(f)?)((\?|#).*)?$)/i) ? i = "image" : c.match(/\.(pdf)((\?|#).*)?$/i) ? i = "pdf" : c.match(/\.(html|php)((\?|#).*)?$/i) && (i = "iframe"), !i) {
5007
- const d = c.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:(?:(?:maps\/(?:place\/(?:.*)\/)?\@(.*),(\d+.?\d+?)z))|(?:\?ll=))(.*)?/i);
5008
- d && (c = `https://maps.google.${d[1]}/?ll=${(d[2] ? d[2] + "&z=" + Math.floor(parseFloat(d[3])) + (d[4] ? d[4].replace(/^\//, "&") : "") : d[4] + "").replace(/\?/, "&")}&output=${d[4] && d[4].indexOf("layer=c") > 0 ? "svembed" : "embed"}`, i = "gmap");
4995
+ const f = c.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:(?:(?:maps\/(?:place\/(?:.*)\/)?\@(.*),(\d+.?\d+?)z))|(?:\?ll=))(.*)?/i);
4996
+ f && (c = `https://maps.google.${f[1]}/?ll=${(f[2] ? f[2] + "&z=" + Math.floor(parseFloat(f[3])) + (f[4] ? f[4].replace(/^\//, "&") : "") : f[4] + "").replace(/\?/, "&")}&output=${f[4] && f[4].indexOf("layer=c") > 0 ? "svembed" : "embed"}`, i = "gmap");
5009
4997
  }
5010
4998
  if (!i) {
5011
- const d = c.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:maps\/search\/)(.*)/i);
5012
- d && (c = `https://maps.google.${d[1]}/maps?q=${d[2].replace("query=", "q=").replace("api=1", "")}&output=embed`, i = "gmap");
4999
+ const f = c.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:maps\/search\/)(.*)/i);
5000
+ f && (c = `https://maps.google.${f[1]}/maps?q=${f[2].replace("query=", "q=").replace("api=1", "")}&output=embed`, i = "gmap");
5013
5001
  }
5014
5002
  i && (l.src = c, l.type = i);
5015
5003
  }
5016
5004
  }
5017
5005
  function s(r, l) {
5018
5006
  l.type !== "iframe" && l.type !== "pdf" && l.type !== "gmap" || (function(i) {
5019
- const c = i.el, d = i.src;
5020
- if (!e || !c || !d) return;
5021
- const f = document.createElement("iframe");
5022
- ue(f, "f-iframe");
5023
- for (const [g, p] of Object.entries(t().iframeAttr || {})) f.setAttribute(g, p);
5024
- f.onerror = () => {
5007
+ const c = i.el, f = i.src;
5008
+ if (!e || !c || !f) return;
5009
+ const d = document.createElement("iframe");
5010
+ ue(d, "f-iframe");
5011
+ for (const [g, p] of Object.entries(t().iframeAttr || {})) d.setAttribute(g, p);
5012
+ d.onerror = () => {
5025
5013
  i.state = 2, e?.showError(i, "{{IFRAME_ERROR}}");
5026
5014
  };
5027
5015
  const u = document.createElement("div");
5028
- if (ue(u, "f-html"), u.append(f), i.width) {
5016
+ if (ue(u, "f-html"), u.append(d), i.width) {
5029
5017
  let g = `${i.width}`;
5030
5018
  g.match(/^\d+$/) && (g += "px"), u.style.maxWidth = `${g}`;
5031
5019
  }
@@ -5037,13 +5025,13 @@ const js = { autosize: !1, iframeAttr: { allow: "autoplay; fullscreen", scrollin
5037
5025
  const g = c.getBoundingClientRect();
5038
5026
  u.style.aspectRatio = `${i.aspectRatio}`, u.style[g.width > g.height ? "width" : "height"] = "auto", u.style[g.width > g.height ? "maxWidth" : "maxHeight"] = "none";
5039
5027
  }
5040
- i.htmlEl = u, i.contentEl = f, ue(c, `has-html has-iframe has-${i.type}`), c.prepend(u);
5028
+ i.htmlEl = u, i.contentEl = d, ue(c, `has-html has-iframe has-${i.type}`), c.prepend(u);
5041
5029
  const m = n(i, "preload"), y = n(i, "autosize");
5042
- i.type === "iframe" && (m || y) ? (i.state = 0, e.showLoading(i), ue(c, "is-loading"), f.onload = () => {
5043
- if (!e || e.getState() !== 1 || !f.src.length) return;
5030
+ i.type === "iframe" && (m || y) ? (i.state = 0, e.showLoading(i), ue(c, "is-loading"), d.onload = () => {
5031
+ if (!e || e.getState() !== 1 || !d.src.length) return;
5044
5032
  i.state = 1;
5045
- const g = f.dataset.ready !== "true";
5046
- f.dataset.ready = "true", (function(p) {
5033
+ const g = d.dataset.ready !== "true";
5034
+ d.dataset.ready = "true", (function(p) {
5047
5035
  const h = p.contentEl, x = h?.parentElement, v = x?.style;
5048
5036
  let k = n(p, "autosize"), S = p.width || 0, F = p.height || 0;
5049
5037
  if (S && F && (k = !1), !!(h && x && v && k)) {
@@ -5063,7 +5051,7 @@ const js = { autosize: !1, iframeAttr: { allow: "autoplay; fullscreen", scrollin
5063
5051
  }
5064
5052
  }
5065
5053
  })(i), e.hideLoading(i), g && e.emit("contentReady", i), ot(c, "is-loading");
5066
- }, f.src = `${d}`) : (f.src = `${d}`, e.emit("contentReady", i));
5054
+ }, d.src = `${f}`) : (d.src = `${f}`, e.emit("contentReady", i));
5067
5055
  })(l);
5068
5056
  }
5069
5057
  function a(r, l) {
@@ -5081,8 +5069,8 @@ const Hs = (e, t = {}) => {
5081
5069
  for (const [l, i] of [...o, ...Object.entries(t)]) {
5082
5070
  let c = i + "";
5083
5071
  if (l === "t") {
5084
- let d = c.match(/((\d*)m)?(\d*)s?/);
5085
- d && s.set("start", 60 * parseInt(d[2] || "0") + parseInt(d[3] || "0") + "");
5072
+ let f = c.match(/((\d*)m)?(\d*)s?/);
5073
+ f && s.set("start", 60 * parseInt(f[2] || "0") + parseInt(f[3] || "0") + "");
5086
5074
  } else s.set(l, c);
5087
5075
  }
5088
5076
  let a = s + "", r = e.match(/#t=((.*)?\d+s)/);
@@ -5144,7 +5132,7 @@ const Hs = (e, t = {}) => {
5144
5132
  const v = y.poster || (y.thumb && Fe(y.thumb) ? y.thumb : ""), k = It(h.replace(/\{\{src\}\}/gi, p + "").replace(/\{\{format\}\}/gi, x || "").replace(/\{\{poster\}\}/gi, v + ""));
5145
5133
  if (!k) return;
5146
5134
  const S = document.createElement("div");
5147
- ue(S, "f-html"), S.append(k), y.contentEl = k, y.htmlEl = S, ue(g, `has-${y.type}`), g.prepend(S), d(y), e.emit("contentReady", y);
5135
+ ue(S, "f-html"), S.append(k), y.contentEl = k, y.htmlEl = S, ue(g, `has-${y.type}`), g.prepend(S), f(y), e.emit("contentReady", y);
5148
5136
  })(m), m.type !== "youtube" && m.type !== "vimeo" || (function(y) {
5149
5137
  const g = y.el, p = y.src;
5150
5138
  if (!e || !g || !p) return;
@@ -5158,7 +5146,7 @@ const Hs = (e, t = {}) => {
5158
5146
  e?.showError(y, "{{IFRAME_ERROR}}");
5159
5147
  };
5160
5148
  const x = document.createElement("div");
5161
- ue(x, "f-html"), x.append(h), y.contentEl = h, y.htmlEl = x, ue(g, `has-html has-iframe has-${y.type}`), h.src = `${y.src}`, g.prepend(x), d(y), e.emit("contentReady", y);
5149
+ ue(x, "f-html"), x.append(h), y.contentEl = h, y.htmlEl = x, ue(g, `has-html has-iframe has-${y.type}`), h.src = `${y.src}`, g.prepend(x), f(y), e.emit("contentReady", y);
5162
5150
  })(m);
5163
5151
  }
5164
5152
  function l(u, m) {
@@ -5202,7 +5190,7 @@ const Hs = (e, t = {}) => {
5202
5190
  g();
5203
5191
  })());
5204
5192
  }
5205
- function d(u) {
5193
+ function f(u) {
5206
5194
  const m = u?.htmlEl;
5207
5195
  if (u && m && (u.type === "html5video" || u.type === "youtube" || u.type === "vimeo")) {
5208
5196
  if (m.style.aspectRatio = "", m.style.width = "", m.style.height = "", m.style.maxWidth = "", m.style.maxHeight = "", u.width) {
@@ -5221,67 +5209,67 @@ const Hs = (e, t = {}) => {
5221
5209
  }
5222
5210
  }
5223
5211
  }
5224
- function f() {
5225
- d(o());
5212
+ function d() {
5213
+ f(o());
5226
5214
  }
5227
5215
  return { init: function(u) {
5228
- e = u, e.on("addSlide", a), e.on("attachSlideEl", r), e.on("detachSlideEl", l), e.on("ready", c), e.on("change", i), e.on("settle", c), e.on("refresh", f), window.addEventListener("message", s);
5216
+ e = u, e.on("addSlide", a), e.on("attachSlideEl", r), e.on("detachSlideEl", l), e.on("ready", c), e.on("change", i), e.on("settle", c), e.on("refresh", d), window.addEventListener("message", s);
5229
5217
  }, destroy: function() {
5230
- e?.off("addSlide", a), e?.off("attachSlideEl", r), e?.off("detachSlideEl", l), e?.off("ready", c), e?.off("change", i), e?.off("settle", c), e?.off("refresh", f), window.removeEventListener("message", s), e = void 0;
5218
+ e?.off("addSlide", a), e?.off("attachSlideEl", r), e?.off("detachSlideEl", l), e?.off("ready", c), e?.off("change", i), e?.off("settle", c), e?.off("refresh", d), window.removeEventListener("message", s), e = void 0;
5231
5219
  } };
5232
5220
  };
5233
5221
  const zs = { autoStart: !1, btnTpl: '<button data-fullscreen-action="toggle" class="f-button" title="{{TOGGLE_FULLSCREEN}}"><svg><g><path d="M8 3H5a2 2 0 0 0-2 2v3M21 8V5a2 2 0 0 0-2-2h-3M3 16v3a2 2 0 0 0 2 2h3M16 21h3a2 2 0 0 0 2-2v-3"/></g><g><path d="M15 19v-2a2 2 0 0 1 2-2h2M15 5v2a2 2 0 0 0 2 2h2M5 15h2a2 2 0 0 1 2 2v2M5 9h2a2 2 0 0 0 2-2V5"/></g></svg></button>' }, Ns = "in-fullscreen-mode", Wc = () => {
5234
5222
  let e;
5235
- function t(d) {
5236
- const f = e?.getOptions().Fullscreen;
5237
- let u = (tt(f) ? Object.assign(Object.assign({}, zs), f) : zs)[d];
5223
+ function t(f) {
5224
+ const d = e?.getOptions().Fullscreen;
5225
+ let u = (tt(d) ? Object.assign(Object.assign({}, zs), d) : zs)[f];
5238
5226
  return u && typeof u == "function" && e ? u(e) : u;
5239
5227
  }
5240
5228
  function n() {
5241
- var d;
5242
- (d = e?.getPlugins().Toolbar) === null || d === void 0 || d.add("fullscreen", { tpl: t("btnTpl") });
5229
+ var f;
5230
+ (f = e?.getPlugins().Toolbar) === null || f === void 0 || f.add("fullscreen", { tpl: t("btnTpl") });
5243
5231
  }
5244
5232
  function o() {
5245
5233
  if (t("autoStart")) {
5246
- const d = a();
5247
- d && l(d);
5234
+ const f = a();
5235
+ f && l(f);
5248
5236
  }
5249
5237
  }
5250
- function s(d, f) {
5251
- const u = f.target;
5252
- u && !f.defaultPrevented && u.dataset.fullscreenAction === "toggle" && c();
5238
+ function s(f, d) {
5239
+ const u = d.target;
5240
+ u && !d.defaultPrevented && u.dataset.fullscreenAction === "toggle" && c();
5253
5241
  }
5254
5242
  function a() {
5255
5243
  return t("el") || e?.getContainer() || void 0;
5256
5244
  }
5257
5245
  function r() {
5258
- const d = document;
5259
- return d.fullscreenEnabled ? !!d.fullscreenElement : !!d.webkitFullscreenEnabled && !!d.webkitFullscreenElement;
5260
- }
5261
- function l(d) {
5262
5246
  const f = document;
5247
+ return f.fullscreenEnabled ? !!f.fullscreenElement : !!f.webkitFullscreenEnabled && !!f.webkitFullscreenElement;
5248
+ }
5249
+ function l(f) {
5250
+ const d = document;
5263
5251
  let u;
5264
- return d || (d = f.documentElement), f.fullscreenEnabled ? u = d.requestFullscreen() : f.webkitFullscreenEnabled && (u = d.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)), u && u.then(() => {
5265
- d.classList.add(Ns);
5252
+ return f || (f = d.documentElement), d.fullscreenEnabled ? u = f.requestFullscreen() : d.webkitFullscreenEnabled && (u = f.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)), u && u.then(() => {
5253
+ f.classList.add(Ns);
5266
5254
  }), u;
5267
5255
  }
5268
5256
  function i() {
5269
- const d = document;
5270
- let f;
5271
- return d.fullscreenEnabled ? f = d.fullscreenElement && d.exitFullscreen() : d.webkitFullscreenEnabled && (f = d.webkitFullscreenElement && d.webkitExitFullscreen()), f && f.then(() => {
5257
+ const f = document;
5258
+ let d;
5259
+ return f.fullscreenEnabled ? d = f.fullscreenElement && f.exitFullscreen() : f.webkitFullscreenEnabled && (d = f.webkitFullscreenElement && f.webkitExitFullscreen()), d && d.then(() => {
5272
5260
  var u;
5273
5261
  (u = a()) === null || u === void 0 || u.classList.remove(Ns);
5274
- }), f;
5262
+ }), d;
5275
5263
  }
5276
5264
  function c() {
5277
5265
  if (r()) i();
5278
5266
  else {
5279
- const d = a();
5280
- d && l(d);
5267
+ const f = a();
5268
+ f && l(f);
5281
5269
  }
5282
5270
  }
5283
- return { init: function(d) {
5284
- e = d, e.on("initPlugins", n), e.on("ready", o), e.on("click", s);
5271
+ return { init: function(f) {
5272
+ e = f, e.on("initPlugins", n), e.on("ready", o), e.on("click", s);
5285
5273
  }, destroy: function() {
5286
5274
  e?.off("initPlugins", n), e?.off("ready", o), e?.off("click", s);
5287
5275
  }, exit: i, inFullscreen: r, request: l, toggle: c };
@@ -5341,11 +5329,11 @@ const Xn = () => {
5341
5329
  if (!r || !e.getSlide()) return;
5342
5330
  const l = Yn(e);
5343
5331
  if (!l) return;
5344
- const { urlHash: i, urlSlug: c } = fo(), d = Bs(e);
5345
- i !== d && (t = i), history.scrollRestoration && !On && (On = history.scrollRestoration, history.scrollRestoration = "manual", window.addEventListener("beforeunload", Co)), r.on("change", o);
5346
- const f = l !== c;
5332
+ const { urlHash: i, urlSlug: c } = fo(), f = Bs(e);
5333
+ i !== f && (t = i), history.scrollRestoration && !On && (On = history.scrollRestoration, history.scrollRestoration = "manual", window.addEventListener("beforeunload", Co)), r.on("change", o);
5334
+ const d = l !== c;
5347
5335
  try {
5348
- window.history[f ? "pushState" : "replaceState"]({}, document.title, window.location.pathname + window.location.search + d), f && (Vo = !0);
5336
+ window.history[d ? "pushState" : "replaceState"]({}, document.title, window.location.pathname + window.location.search + f), d && (Vo = !0);
5349
5337
  } catch {
5350
5338
  }
5351
5339
  }
@@ -5416,7 +5404,7 @@ const Rn = { ajax: null, backdropClick: "close", Carousel: {}, closeButton: "aut
5416
5404
  </dialog>`, modal: !0, on: {}, parentEl: void 0, placeFocusBack: !0, showClass: "f-zoomInUp", startIndex: 0, sync: void 0, theme: "dark", triggerEl: void 0, triggerEvent: void 0, zoomEffect: !0 }, At = /* @__PURE__ */ new Map();
5417
5405
  let Gc = 0;
5418
5406
  const Us = "with-fancybox", Yc = () => {
5419
- let e, t, n, o, s, a, r, l = Ze.Init, i = Object.assign({}, Rn), c = -1, d = {}, f = [], u = !1, m = !0, y = 0;
5407
+ let e, t, n, o, s, a, r, l = Ze.Init, i = Object.assign({}, Rn), c = -1, f = {}, d = [], u = !1, m = !0, y = 0;
5420
5408
  function g(O, ...U) {
5421
5409
  let re = i[O];
5422
5410
  return re && typeof re == "function" ? re(We, ...U) : re;
@@ -5773,8 +5761,8 @@ const Us = "with-fancybox", Yc = () => {
5773
5761
  l = Ze.Destroyed;
5774
5762
  const E = ie();
5775
5763
  x("destroy"), (U = (O = g("sync")) === null || O === void 0 ? void 0 : O.getPlugins().Autoplay) === null || U === void 0 || U.resume(), (B = (re = g("sync")) === null || re === void 0 ? void 0 : re.getPlugins().Autoscroll) === null || B === void 0 || B.resume(), e instanceof HTMLDialogElement && e.close(), (b = o?.getContainer()) === null || b === void 0 || b.classList.remove("is-idle"), o?.destroy();
5776
- for (const D of Object.values(d)) D?.destroy();
5777
- if (d = {}, e?.remove(), e = void 0, t = void 0, o = void 0, At.delete(c), !At.size && (vs(!1), document.documentElement.classList.remove(Us), g("placeFocusBack") && E && !E.closest("[inert]"))) try {
5764
+ for (const D of Object.values(f)) D?.destroy();
5765
+ if (f = {}, e?.remove(), e = void 0, t = void 0, o = void 0, At.delete(c), !At.size && (vs(!1), document.documentElement.classList.remove(Us), g("placeFocusBack") && E && !E.closest("[inert]"))) try {
5778
5766
  E?.focus({ preventScroll: !0 });
5779
5767
  } catch {
5780
5768
  }
@@ -5788,7 +5776,7 @@ const Us = "with-fancybox", Yc = () => {
5788
5776
  }, getOptions: function() {
5789
5777
  return i;
5790
5778
  }, getPlugins: function() {
5791
- return d;
5779
+ return f;
5792
5780
  }, getSlide: function() {
5793
5781
  return pe();
5794
5782
  }, getState: function() {
@@ -5797,13 +5785,13 @@ const Us = "with-fancybox", Yc = () => {
5797
5785
  l !== Ze.Init && (We.destroy(), l = Ze.Init), i = ft({}, Rn, U), c = g("id") || "fancybox-" + ++Gc;
5798
5786
  const re = At.get(c);
5799
5787
  if (re && re.destroy(), At.set(c, We), x("init"), (function() {
5800
- for (const [B, b] of Object.entries(Object.assign(Object.assign({}, ze.Plugins), i.plugins || {}))) if (B && !d[B] && b instanceof Function) {
5788
+ for (const [B, b] of Object.entries(Object.assign(Object.assign({}, ze.Plugins), i.plugins || {}))) if (B && !f[B] && b instanceof Function) {
5801
5789
  const E = b();
5802
- E.init(We), d[B] = E;
5790
+ E.init(We), f[B] = E;
5803
5791
  }
5804
5792
  x("initPlugins");
5805
5793
  })(), (function(B = []) {
5806
- x("initSlides", B), f = [...B];
5794
+ x("initSlides", B), d = [...B];
5807
5795
  })(O), (function() {
5808
5796
  const B = g("parentEl") || document.body;
5809
5797
  if (!(B && B instanceof HTMLElement)) return;
@@ -5833,7 +5821,7 @@ const Us = "with-fancybox", Yc = () => {
5833
5821
  const B = ft({}, { Autoplay: { autoStart: !1, pauseOnHover: !1, progressbarParentEl: (b) => {
5834
5822
  const E = b.getContainer();
5835
5823
  return E?.querySelector(".f-carousel__toolbar [data-autoplay-action]") || E;
5836
- } }, Fullscreen: { el: t }, Toolbar: { absolute: !0, items: { counter: { tpl: '<div class="f-counter"><span data-fancybox-page></span>/<span data-fancybox-pages></span></div>' } }, display: { left: ["counter"], right: ["toggleFull", "autoplay", "fullscreen", "thumbs", "close"] } }, Video: { autoplay: !0 }, Thumbs: { minCount: 2, Carousel: { classes: { container: "fancybox__thumbs" } } }, classes: { container: "fancybox__carousel", viewport: "fancybox__viewport", slide: "fancybox__slide" }, spinnerTpl: '<div class="f-spinner" data-fancybox-close></div>', dragFree: !1, slidesPerPage: 1, plugins: { Sync: ea, Arrows: Hc, Lazyload: ta, Zoomable: jc, Html: Bc, Video: qc, Autoplay: zc, Fullscreen: Wc, Thumbs: Nc, Toolbar: oa } }, g("Carousel") || {}, { slides: f, enabled: !0, initialPage: g("startIndex") || 0, l10n: g("l10n") });
5824
+ } }, Fullscreen: { el: t }, Toolbar: { absolute: !0, items: { counter: { tpl: '<div class="f-counter"><span data-fancybox-page></span>/<span data-fancybox-pages></span></div>' } }, display: { left: ["counter"], right: ["toggleFull", "autoplay", "fullscreen", "thumbs", "close"] } }, Video: { autoplay: !0 }, Thumbs: { minCount: 2, Carousel: { classes: { container: "fancybox__thumbs" } } }, classes: { container: "fancybox__carousel", viewport: "fancybox__viewport", slide: "fancybox__slide" }, spinnerTpl: '<div class="f-spinner" data-fancybox-close></div>', dragFree: !1, slidesPerPage: 1, plugins: { Sync: ea, Arrows: Hc, Lazyload: ta, Zoomable: jc, Html: Bc, Video: qc, Autoplay: zc, Fullscreen: Wc, Thumbs: Nc, Toolbar: oa } }, g("Carousel") || {}, { slides: d, enabled: !0, initialPage: g("startIndex") || 0, l10n: g("l10n") });
5837
5825
  o = so(n, B), x("initCarousel", o), o.on("*", (b, E, ...D) => {
5838
5826
  x(`Carousel.${E}`, b, ...D);
5839
5827
  }), o.on("attachSlideEl", k), o.on("detachSlideEl", S), o.on("contentLoading", le), o.on("contentReady", $e), o.on("ready", ne), o.on("change", M), o.on("settle", ye), o.on("thumbs:ready", ae), o.on("thumbs:destroy", ae), o.init();
@@ -5886,8 +5874,8 @@ function Gs(e, t = {}) {
5886
5874
  }
5887
5875
  }
5888
5876
  if (!r || !i || !a) return;
5889
- const d = ft({}, Rn, t, c, { triggerEl: a });
5890
- let f = [].slice.call((l || r).querySelectorAll(i));
5877
+ const f = ft({}, Rn, t, c, { triggerEl: a });
5878
+ let d = [].slice.call((l || r).querySelectorAll(i));
5891
5879
  const u = a.closest(".f-carousel"), m = u?.carousel;
5892
5880
  if (m && (!l || !u.contains(l))) {
5893
5881
  const p = [];
@@ -5895,28 +5883,28 @@ function Gs(e, t = {}) {
5895
5883
  const x = h.el;
5896
5884
  x && (x.matches(i) ? p.push(x) : p.push(...[].slice.call(x.querySelectorAll(i))));
5897
5885
  }
5898
- p.length && (f = [...p], (n = m.getPlugins().Autoplay) === null || n === void 0 || n.pause(), (o = m.getPlugins().Autoscroll) === null || o === void 0 || o.pause(), d.sync = m);
5886
+ p.length && (d = [...p], (n = m.getPlugins().Autoplay) === null || n === void 0 || n.pause(), (o = m.getPlugins().Autoscroll) === null || o === void 0 || o.pause(), f.sync = m);
5899
5887
  }
5900
- if (d.groupAll === !1) {
5901
- const p = d.groupAttr, h = p && a ? a.getAttribute(`${p}`) : "";
5902
- f = p && h ? f.filter((x) => x.getAttribute(`${p}`) === h) : [a];
5888
+ if (f.groupAll === !1) {
5889
+ const p = f.groupAttr, h = p && a ? a.getAttribute(`${p}`) : "";
5890
+ d = p && h ? d.filter((x) => x.getAttribute(`${p}`) === h) : [a];
5903
5891
  }
5904
- if (!f.length) return;
5905
- (s = d.triggerEvent) === null || s === void 0 || s.preventDefault();
5892
+ if (!d.length) return;
5893
+ (s = f.triggerEvent) === null || s === void 0 || s.preventDefault();
5906
5894
  const y = ze.getInstance(), g = y?.getState();
5907
5895
  if (y && (g === Ze.Init || g === Ze.Ready)) {
5908
5896
  const p = y.getOptions().triggerEl;
5909
- if (p && f.indexOf(p) > -1) return;
5897
+ if (p && d.indexOf(p) > -1) return;
5910
5898
  }
5911
- return Object.assign({}, d.Carousel || {}).rtl && (f = f.reverse()), a && t.startIndex === void 0 && (d.startIndex = f.indexOf(a)), ze.fromNodes(f, d);
5899
+ return Object.assign({}, f.Carousel || {}).rtl && (d = d.reverse()), a && t.startIndex === void 0 && (f.startIndex = d.indexOf(a)), ze.fromNodes(d, f);
5912
5900
  }
5913
5901
  const ze = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */ new Map(), bind: function(e, t, n, o) {
5914
5902
  if (!Gn()) return;
5915
5903
  let s = document.body, a = null, r = "[data-fancybox]", l = {};
5916
- e instanceof Element && (s = e), Fe(e) && Fe(t) ? (a = e, r = t) : Fe(t) && Fe(n) ? (a = t, r = n) : Fe(t) ? r = t : Fe(e) && (r = e), typeof t == "object" && (l = t || {}), typeof n == "object" && (l = n || {}), typeof o == "object" && (l = o || {}), (function(i, c, d, f = {}) {
5917
- if (!(i && i instanceof Element && d)) return;
5904
+ e instanceof Element && (s = e), Fe(e) && Fe(t) ? (a = e, r = t) : Fe(t) && Fe(n) ? (a = t, r = n) : Fe(t) ? r = t : Fe(e) && (r = e), typeof t == "object" && (l = t || {}), typeof n == "object" && (l = n || {}), typeof o == "object" && (l = o || {}), (function(i, c, f, d = {}) {
5905
+ if (!(i && i instanceof Element && f)) return;
5918
5906
  const u = ze.openers.get(i) || /* @__PURE__ */ new Map(), m = u.get(c) || /* @__PURE__ */ new Map();
5919
- m.set(d, f), u.set(c, m), ze.openers.set(i, u), u.size === 1 && i.addEventListener("click", ze.fromEvent), Zs();
5907
+ m.set(f, d), u.set(c, m), ze.openers.set(i, u), u.size === 1 && i.addEventListener("click", ze.fromEvent), Zs();
5920
5908
  })(s, a, r, l);
5921
5909
  }, close: function(e = !0, ...t) {
5922
5910
  if (e) for (const n of At.values()) n.close(...t);
@@ -5944,20 +5932,20 @@ const ze = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
5944
5932
  t = ft({}, Rn, t || {});
5945
5933
  const n = [], o = (s) => s instanceof HTMLImageElement ? s : s instanceof HTMLElement ? s.querySelector("img:not([aria-hidden])") : void 0;
5946
5934
  for (const s of e) {
5947
- const a = s.dataset || {}, r = t.delegateEl && e.indexOf(s) === t.startIndex ? t.delegateEl : void 0, l = o(r) || o(s) || void 0, i = a.src || s.getAttribute("href") || s.getAttribute("currentSrc") || s.getAttribute("src") || void 0, c = a.thumb || a.thumbSrc || l?.getAttribute("currentSrc") || l?.getAttribute("src") || l?.dataset.lazySrc || void 0, d = { src: i, alt: a.alt || l?.getAttribute("alt") || void 0, thumbSrc: c, thumbEl: l, triggerEl: s, delegateEl: r };
5948
- for (const f in a) {
5949
- let u = a[f] + "";
5950
- u = u !== "false" && (u === "true" || u), d[f] = u;
5935
+ const a = s.dataset || {}, r = t.delegateEl && e.indexOf(s) === t.startIndex ? t.delegateEl : void 0, l = o(r) || o(s) || void 0, i = a.src || s.getAttribute("href") || s.getAttribute("currentSrc") || s.getAttribute("src") || void 0, c = a.thumb || a.thumbSrc || l?.getAttribute("currentSrc") || l?.getAttribute("src") || l?.dataset.lazySrc || void 0, f = { src: i, alt: a.alt || l?.getAttribute("alt") || void 0, thumbSrc: c, thumbEl: l, triggerEl: s, delegateEl: r };
5936
+ for (const d in a) {
5937
+ let u = a[d] + "";
5938
+ u = u !== "false" && (u === "true" || u), f[d] = u;
5951
5939
  }
5952
- n.push(d);
5940
+ n.push(f);
5953
5941
  }
5954
5942
  return ze.show(n, t);
5955
5943
  }, fromSelector: function(e, t, n, o) {
5956
5944
  if (!Gn()) return;
5957
5945
  let s = document.body, a = null, r = "[data-fancybox]", l = {};
5958
5946
  e instanceof Element && (s = e), Fe(e) && Fe(t) ? (a = e, r = t) : Fe(t) && Fe(n) ? (a = t, r = n) : Fe(t) ? r = t : Fe(e) && (r = e), typeof t == "object" && (l = t || {}), typeof n == "object" && (l = n || {}), typeof o == "object" && (l = o || {});
5959
- for (const [i, c] of ze.openers) for (const [d, f] of c) for (const [u, m] of f) if (i === s && d === a) {
5960
- const y = s.querySelector((d ? `${d} ` : "") + r);
5947
+ for (const [i, c] of ze.openers) for (const [f, d] of c) for (const [u, m] of d) if (i === s && f === a) {
5948
+ const y = s.querySelector((f ? `${f} ` : "") + r);
5961
5949
  if (y && y.matches(u)) return ze.fromTriggerEl(y, l);
5962
5950
  }
5963
5951
  }, fromTriggerEl: Gs, getCarousel: function() {
@@ -5983,8 +5971,8 @@ const ze = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
5983
5971
  let o = document.body, s = null, a = "[data-fancybox]";
5984
5972
  e instanceof Element && (o = e), Fe(e) && Fe(t) ? (s = e, a = t) : Fe(t) && Fe(n) ? (s = t, a = n) : Fe(t) ? a = t : Fe(e) && (a = e), (function(r, l, i) {
5985
5973
  if (!(r && r instanceof Element && i)) return;
5986
- const c = ze.openers.get(r) || /* @__PURE__ */ new Map(), d = c.get(l) || /* @__PURE__ */ new Map();
5987
- d && i && d.delete(i), d.size && i || c.delete(l), c.size || (ze.openers.delete(r), r.removeEventListener("click", ze.fromEvent));
5974
+ const c = ze.openers.get(r) || /* @__PURE__ */ new Map(), f = c.get(l) || /* @__PURE__ */ new Map();
5975
+ f && i && f.delete(i), f.size && i || c.delete(l), c.size || (ze.openers.delete(r), r.removeEventListener("click", ze.fromEvent));
5988
5976
  })(o, s, a);
5989
5977
  } }, Xc = {
5990
5978
  __name: "SparkFancybox",
@@ -6012,7 +6000,7 @@ const ze = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
6012
6000
  s(), o();
6013
6001
  }), Fn(() => {
6014
6002
  s(), ze.close();
6015
- }), (a, r) => (T(), A("div", {
6003
+ }), (a, r) => (T(), P("div", {
6016
6004
  ref_key: "containerRef",
6017
6005
  ref: n
6018
6006
  }, [
@@ -6062,22 +6050,18 @@ const ze = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
6062
6050
  const t = e, n = Bo(), o = Ee(null), s = Ee(null), a = Ee(null), r = Ee(!1);
6063
6051
  let l = null, i = null;
6064
6052
  const c = se(() => {
6065
- const p = [
6066
- jr(t.offset),
6067
- Vr(),
6068
- Hr({ padding: 8 })
6069
- ];
6053
+ const p = [jr(t.offset), Vr(), Hr({ padding: 8 })];
6070
6054
  return t.showArrow && p.push(Nr({ element: a, padding: 5 })), p;
6071
- }), { floatingStyles: d, middlewareData: f, placement: u } = Rl(
6072
- o,
6073
- s,
6074
- {
6075
- placement: se(() => t.placement),
6076
- middleware: c,
6077
- whileElementsMounted: Ol
6078
- }
6079
- ), m = se(() => {
6080
- const p = f.value?.arrow;
6055
+ }), {
6056
+ floatingStyles: f,
6057
+ middlewareData: d,
6058
+ placement: u
6059
+ } = Rl(o, s, {
6060
+ placement: se(() => t.placement),
6061
+ middleware: c,
6062
+ whileElementsMounted: Ol
6063
+ }), m = se(() => {
6064
+ const p = d.value?.arrow;
6081
6065
  if (!p) return {};
6082
6066
  const h = u.value.split("-")[0], x = { top: "bottom", right: "left", bottom: "top", left: "right" }[h];
6083
6067
  return {
@@ -6103,7 +6087,7 @@ const ze = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
6103
6087
  }
6104
6088
  return Fn(() => {
6105
6089
  clearTimeout(l), clearTimeout(i);
6106
- }), (p, h) => (T(), A(Ne, null, [
6090
+ }), (p, h) => (T(), P(Ne, null, [
6107
6091
  _("div", {
6108
6092
  ref_key: "referenceRef",
6109
6093
  ref: o,
@@ -6118,21 +6102,21 @@ const ze = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
6118
6102
  (T(), Le(ar, { to: "body" }, [
6119
6103
  te(rr, { name: "spark-tooltip" }, {
6120
6104
  default: xe(() => [
6121
- r.value ? (T(), A("div", {
6105
+ r.value ? (T(), P("div", {
6122
6106
  key: 0,
6123
6107
  ref_key: "floatingRef",
6124
6108
  ref: s,
6125
- style: os(ee(d)),
6109
+ style: os(ee(f)),
6126
6110
  class: "spark-tooltip",
6127
6111
  role: "tooltip"
6128
6112
  }, [
6129
6113
  Xe(p.$slots, "content", {}, () => [
6130
- e.html ? (T(), A("span", {
6114
+ e.html ? (T(), P("span", {
6131
6115
  key: 0,
6132
6116
  innerHTML: e.content
6133
- }, null, 8, Kc)) : (T(), A("span", Jc, we(e.content), 1))
6117
+ }, null, 8, Kc)) : (T(), P("span", Jc, we(e.content), 1))
6134
6118
  ]),
6135
- e.showArrow ? (T(), A("div", {
6119
+ e.showArrow ? (T(), P("div", {
6136
6120
  key: 0,
6137
6121
  ref_key: "arrowRef",
6138
6122
  ref: a,
@@ -6230,13 +6214,19 @@ const ze = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
6230
6214
  default: (e) => e.data
6231
6215
  }
6232
6216
  },
6233
- emits: ["upload-start", "upload-success", "upload-error", "file-selected", "file-cleared"],
6217
+ emits: [
6218
+ "upload-start",
6219
+ "upload-success",
6220
+ "upload-error",
6221
+ "file-selected",
6222
+ "file-cleared"
6223
+ ],
6234
6224
  setup(e, { expose: t, emit: n }) {
6235
6225
  const o = e, s = n, a = ao("axios"), r = Ee(null), l = Ee(!1), i = Ee(!1), c = Ee(null);
6236
- function d() {
6226
+ function f() {
6237
6227
  o.disabled || l.value || (i.value = !0);
6238
6228
  }
6239
- function f() {
6229
+ function d() {
6240
6230
  i.value = !1;
6241
6231
  }
6242
6232
  function u(x) {
@@ -6310,17 +6300,17 @@ const ze = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
6310
6300
  uploading: l
6311
6301
  }), (x, v) => {
6312
6302
  const k = Ue("FormKit"), S = Ue("font-awesome-icon");
6313
- return T(), A("div", null, [
6314
- e.label ? (T(), A("label", Qc, we(e.label), 1)) : he("", !0),
6315
- e.variant === "dashed" ? (T(), A("div", {
6303
+ return T(), P("div", null, [
6304
+ e.label ? (T(), P("label", Qc, we(e.label), 1)) : he("", !0),
6305
+ e.variant === "dashed" ? (T(), P("div", {
6316
6306
  key: 1,
6317
6307
  class: Me(["border-2 border-dashed border-gray-300 rounded-lg p-8 text-center transition-colors", {
6318
6308
  "border-blue-500 bg-blue-50": i.value,
6319
6309
  "opacity-50 pointer-events-none": e.disabled || l.value
6320
6310
  }]),
6321
- onDragover: Je(d, ["prevent"]),
6322
- onDragenter: Je(d, ["prevent"]),
6323
- onDragleave: Je(f, ["prevent"]),
6311
+ onDragover: Je(f, ["prevent"]),
6312
+ onDragenter: Je(f, ["prevent"]),
6313
+ onDragleave: Je(d, ["prevent"]),
6324
6314
  onDrop: Je(u, ["prevent"])
6325
6315
  }, [
6326
6316
  te(k, {
@@ -6333,7 +6323,7 @@ const ze = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
6333
6323
  "outer-class": "hidden",
6334
6324
  onInput: y
6335
6325
  }, null, 8, ["name", "accept", "disabled"]),
6336
- r.value ? (T(), A("div", nu, [
6326
+ r.value ? (T(), P("div", nu, [
6337
6327
  te(S, {
6338
6328
  icon: ee(Ie).farFile,
6339
6329
  class: "text-2xl text-gray-500"
@@ -6351,7 +6341,7 @@ const ze = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
6351
6341
  ]),
6352
6342
  _: 1
6353
6343
  })
6354
- ])) : (T(), A("div", eu, [
6344
+ ])) : (T(), P("div", eu, [
6355
6345
  te(S, {
6356
6346
  icon: e.icon,
6357
6347
  class: "text-4xl text-gray-400 mb-3"
@@ -6367,14 +6357,14 @@ const ze = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
6367
6357
  _: 1
6368
6358
  })
6369
6359
  ]))
6370
- ], 34)) : (T(), A("div", {
6360
+ ], 34)) : (T(), P("div", {
6371
6361
  key: 2,
6372
6362
  class: Me(["relative rounded-md transition-colors", {
6373
6363
  "ring-2 ring-blue-500 ring-offset-2 bg-blue-50": i.value
6374
6364
  }]),
6375
- onDragover: Je(d, ["prevent"]),
6376
- onDragenter: Je(d, ["prevent"]),
6377
- onDragleave: Je(f, ["prevent"]),
6365
+ onDragover: Je(f, ["prevent"]),
6366
+ onDragenter: Je(f, ["prevent"]),
6367
+ onDragleave: Je(d, ["prevent"]),
6378
6368
  onDrop: Je(u, ["prevent"])
6379
6369
  }, [
6380
6370
  te(k, {
@@ -6384,11 +6374,11 @@ const ze = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
6384
6374
  disabled: e.disabled || l.value,
6385
6375
  onInput: y
6386
6376
  }, null, 8, ["name", "accept", "disabled"]),
6387
- i.value ? (T(), A("div", su, [...v[0] || (v[0] = [
6377
+ i.value ? (T(), P("div", su, [...v[0] || (v[0] = [
6388
6378
  _("span", { class: "text-sm text-blue-600 font-medium" }, "Drop file here", -1)
6389
6379
  ])])) : he("", !0)
6390
6380
  ], 34)),
6391
- e.showUploadButton ? (T(), A("div", ru, [
6381
+ e.showUploadButton ? (T(), P("div", ru, [
6392
6382
  te(mt, {
6393
6383
  size: "lg",
6394
6384
  disabled: !r.value || l.value,
@@ -6405,7 +6395,7 @@ const ze = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
6405
6395
  _: 1
6406
6396
  }, 8, ["disabled"])
6407
6397
  ])) : he("", !0),
6408
- l.value && !e.showUploadButton ? (T(), A("p", au, we(e.uploadingText), 1)) : he("", !0)
6398
+ l.value && !e.showUploadButton ? (T(), P("p", au, we(e.uploadingText), 1)) : he("", !0)
6409
6399
  ]);
6410
6400
  };
6411
6401
  }
@@ -6474,11 +6464,11 @@ const ze = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
6474
6464
  function c() {
6475
6465
  r.value = !1;
6476
6466
  }
6477
- function d(y) {
6467
+ function f(y) {
6478
6468
  if (r.value = !1, n.disabled || a.value) return;
6479
6469
  const g = y.dataTransfer?.files?.[0];
6480
6470
  if (g) {
6481
- if (!f(g)) {
6471
+ if (!d(g)) {
6482
6472
  Qe.show({
6483
6473
  type: "danger",
6484
6474
  message: "File type not accepted."
@@ -6488,7 +6478,7 @@ const ze = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
6488
6478
  m(g);
6489
6479
  }
6490
6480
  }
6491
- function f(y) {
6481
+ function d(y) {
6492
6482
  const g = n.accept.split(",").map((p) => p.trim());
6493
6483
  for (const p of g) {
6494
6484
  if (p === "*/*") return !0;
@@ -6531,8 +6521,8 @@ const ze = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
6531
6521
  }
6532
6522
  return (y, g) => {
6533
6523
  const p = Ue("font-awesome-icon"), h = Ue("FormKit");
6534
- return T(), A("div", null, [
6535
- e.label ? (T(), A("label", iu, we(e.label), 1)) : he("", !0),
6524
+ return T(), P("div", null, [
6525
+ e.label ? (T(), P("label", iu, we(e.label), 1)) : he("", !0),
6536
6526
  e.modelValue ? (T(), Le(Xc, {
6537
6527
  key: 1,
6538
6528
  class: "mb-2 relative inline-block"
@@ -6546,7 +6536,10 @@ const ze = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
6546
6536
  _("img", {
6547
6537
  src: e.modelValue,
6548
6538
  alt: e.label || "Image preview",
6549
- class: Me([e.height, "w-auto object-contain border border-gray-300 rounded-md cursor-pointer hover:opacity-80 transition-opacity"])
6539
+ class: Me([
6540
+ e.height,
6541
+ "w-auto object-contain border border-gray-300 rounded-md cursor-pointer hover:opacity-80 transition-opacity"
6542
+ ])
6550
6543
  }, null, 10, cu)
6551
6544
  ], 8, lu),
6552
6545
  _("button", {
@@ -6563,7 +6556,7 @@ const ze = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
6563
6556
  ]),
6564
6557
  _: 1
6565
6558
  })) : he("", !0),
6566
- e.modelValue ? he("", !0) : (T(), A("div", {
6559
+ e.modelValue ? he("", !0) : (T(), P("div", {
6567
6560
  key: 2,
6568
6561
  class: Me(["relative rounded-md transition-colors", {
6569
6562
  "ring-2 ring-blue-500 ring-offset-2 bg-blue-50": r.value
@@ -6571,7 +6564,7 @@ const ze = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
6571
6564
  onDragover: Je(i, ["prevent"]),
6572
6565
  onDragenter: Je(i, ["prevent"]),
6573
6566
  onDragleave: Je(c, ["prevent"]),
6574
- onDrop: Je(d, ["prevent"])
6567
+ onDrop: Je(f, ["prevent"])
6575
6568
  }, [
6576
6569
  te(h, {
6577
6570
  type: "file",
@@ -6580,11 +6573,11 @@ const ze = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
6580
6573
  disabled: e.disabled || a.value,
6581
6574
  onInput: u
6582
6575
  }, null, 8, ["name", "accept", "disabled"]),
6583
- r.value ? (T(), A("div", du, [...g[0] || (g[0] = [
6576
+ r.value ? (T(), P("div", du, [...g[0] || (g[0] = [
6584
6577
  _("span", { class: "text-sm text-blue-600 font-medium" }, "Drop image here", -1)
6585
6578
  ])])) : he("", !0)
6586
6579
  ], 34)),
6587
- a.value ? (T(), A("p", fu, "Uploading...")) : he("", !0)
6580
+ a.value ? (T(), P("p", fu, "Uploading...")) : he("", !0)
6588
6581
  ]);
6589
6582
  };
6590
6583
  }
@@ -6613,9 +6606,7 @@ const ze = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
6613
6606
  },
6614
6607
  buttons: {
6615
6608
  type: Array,
6616
- default: () => [
6617
- { text: "OK", variant: "primary", event: "ok" }
6618
- ]
6609
+ default: () => [{ text: "OK", variant: "primary", event: "ok" }]
6619
6610
  }
6620
6611
  },
6621
6612
  emits: [
@@ -6669,13 +6660,13 @@ const ze = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
6669
6660
  danger: "text-red-400"
6670
6661
  })[t.type]);
6671
6662
  return (i, c) => {
6672
- const d = Ue("font-awesome-icon");
6673
- return T(), A("div", pu, [
6674
- a.value ? (T(), A("div", {
6663
+ const f = Ue("font-awesome-icon");
6664
+ return T(), P("div", pu, [
6665
+ a.value ? (T(), P("div", {
6675
6666
  key: 0,
6676
6667
  class: Me(["mx-auto flex size-12 items-center justify-center rounded-full", r.value])
6677
6668
  }, [
6678
- te(d, {
6669
+ te(f, {
6679
6670
  icon: ee(Ie)[a.value],
6680
6671
  class: Me(["h-5 w-5", l.value])
6681
6672
  }, null, 8, ["icon", "class"])
@@ -6683,8 +6674,8 @@ const ze = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
6683
6674
  _("div", {
6684
6675
  class: Me(["text-center", { "mt-3 sm:mt-5": a.value }])
6685
6676
  }, [
6686
- e.title ? (T(), A("h3", mu, we(e.title), 1)) : he("", !0),
6687
- e.message ? (T(), A("div", {
6677
+ e.title ? (T(), P("h3", mu, we(e.title), 1)) : he("", !0),
6678
+ e.message ? (T(), P("div", {
6688
6679
  key: 1,
6689
6680
  class: Me([{ "mt-2": e.title }, "text-sm text-gray-500"])
6690
6681
  }, we(e.message), 3)) : he("", !0)
@@ -6692,13 +6683,13 @@ const ze = { Plugins: { Hash: Xn }, version: "6.1.13", openers: /* @__PURE__ */
6692
6683
  _("div", {
6693
6684
  class: Me(["mt-5 sm:mt-6", o.value])
6694
6685
  }, [
6695
- (T(!0), A(Ne, null, st(n.value, (f, u) => (T(), Le(ee(mt), {
6686
+ (T(!0), P(Ne, null, st(n.value, (d, u) => (T(), Le(ee(mt), {
6696
6687
  key: u,
6697
- variant: f.variant,
6698
- onClick: (m) => i.$emit(f.event, f)
6688
+ variant: d.variant,
6689
+ onClick: (m) => i.$emit(d.event, d)
6699
6690
  }, {
6700
6691
  default: xe(() => [
6701
- qe(we(f.text), 1)
6692
+ qe(we(d.text), 1)
6702
6693
  ]),
6703
6694
  _: 2
6704
6695
  }, 1032, ["variant", "onClick"]))), 128))
@@ -6852,7 +6843,7 @@ const Rt = new hu(), vu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
6852
6843
  }, {
6853
6844
  default: xe(() => [
6854
6845
  te(ee(Tr), {
6855
- initialFocus: n.value,
6846
+ "initial-focus": n.value,
6856
6847
  class: "relative z-1000",
6857
6848
  onClose: l
6858
6849
  }, {
@@ -6902,7 +6893,7 @@ const Rt = new hu(), vu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
6902
6893
  ])
6903
6894
  ]),
6904
6895
  _: 1
6905
- }, 8, ["initialFocus"])
6896
+ }, 8, ["initial-focus"])
6906
6897
  ]),
6907
6898
  _: 1
6908
6899
  }, 8, ["show"]));
@@ -6970,8 +6961,8 @@ const Rt = new hu(), vu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
6970
6961
  horizontal: "",
6971
6962
  // SparkButtonGroup handles its own styling
6972
6963
  custom: ""
6973
- }[n.layout]]), d = se(() => n.compact ? "text-sm" : "");
6974
- function f(g) {
6964
+ }[n.layout]]), f = se(() => n.compact ? "text-sm" : "");
6965
+ function d(g) {
6975
6966
  const p = r(g), h = l(g), x = [
6976
6967
  "inline-flex items-center transition-colors cursor-pointer",
6977
6968
  "focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-offset-1"
@@ -6994,9 +6985,12 @@ const Rt = new hu(), vu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
6994
6985
  warning: "bg-yellow-100 text-yellow-700",
6995
6986
  danger: "bg-red-100 text-red-700"
6996
6987
  };
6997
- return ["ml-2 px-2 py-0.5 text-xs font-medium rounded-full", h[p] || h.primary];
6988
+ return [
6989
+ "ml-2 px-2 py-0.5 text-xs font-medium rounded-full",
6990
+ h[p] || h.primary
6991
+ ];
6998
6992
  }
6999
- return (g, p) => (T(), A("nav", {
6993
+ return (g, p) => (T(), P("nav", {
7000
6994
  class: Me(c.value)
7001
6995
  }, [
7002
6996
  n.layout === "custom" ? Xe(g.$slots, "default", {
@@ -7011,7 +7005,7 @@ const Rt = new hu(), vu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
7011
7005
  class: "isolate"
7012
7006
  }, {
7013
7007
  default: xe(() => [
7014
- (T(!0), A(Ne, null, st(s.value, (h) => (T(), Le(mt, {
7008
+ (T(!0), P(Ne, null, st(s.value, (h) => (T(), Le(mt, {
7015
7009
  key: h.id,
7016
7010
  size: "xl",
7017
7011
  variant: r(h) ? "primary" : "secondary",
@@ -7025,7 +7019,7 @@ const Rt = new hu(), vu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
7025
7019
  class: "mr-1.5 size-4"
7026
7020
  }, null, 8, ["icon"])) : he("", !0),
7027
7021
  qe(" " + we(h.label) + " ", 1),
7028
- h.badge != null ? (T(), A("span", {
7022
+ h.badge != null ? (T(), P("span", {
7029
7023
  key: 1,
7030
7024
  class: Me(y(h))
7031
7025
  }, we(h.badge), 3)) : he("", !0)
@@ -7034,9 +7028,9 @@ const Rt = new hu(), vu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
7034
7028
  }, 1032, ["variant", "disabled", "onClick"]))), 128))
7035
7029
  ]),
7036
7030
  _: 1
7037
- })) : (T(!0), A(Ne, { key: 2 }, st(s.value, (h) => (T(), A("button", {
7031
+ })) : (T(!0), P(Ne, { key: 2 }, st(s.value, (h) => (T(), P("button", {
7038
7032
  key: h.id,
7039
- class: Me(f(h)),
7033
+ class: Me(d(h)),
7040
7034
  disabled: l(h) || void 0,
7041
7035
  onClick: (x) => i(h)
7042
7036
  }, [
@@ -7048,10 +7042,10 @@ const Rt = new hu(), vu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
7048
7042
  h.icon && !(r(h) && n.layout === "vertical") ? (T(), Le(ee(Zn), {
7049
7043
  key: 1,
7050
7044
  icon: ee(Ie)[h.icon],
7051
- class: Me(["mr-2", d.value])
7045
+ class: Me(["mr-2", f.value])
7052
7046
  }, null, 8, ["icon", "class"])) : he("", !0),
7053
7047
  _("span", null, we(h.label), 1),
7054
- h.badge != null ? (T(), A("span", {
7048
+ h.badge != null ? (T(), P("span", {
7055
7049
  key: 2,
7056
7050
  class: Me(y(h))
7057
7051
  }, we(h.badge), 3)) : he("", !0)
@@ -7121,9 +7115,9 @@ const Rt = new hu(), vu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
7121
7115
  const c = (l.rendererConfig || {}).actions || [];
7122
7116
  if (c.length === 0)
7123
7117
  return;
7124
- const d = t.getSourceDataAtRow(t.toPhysicalRow(o)), f = document.createElement("div");
7125
- f.classList.add("flex", "items-center", "gap-2"), c.forEach((u) => {
7126
- if (u.condition && typeof u.condition == "function" && !u.condition(d))
7118
+ const f = t.getSourceDataAtRow(t.toPhysicalRow(o)), d = document.createElement("div");
7119
+ d.classList.add("flex", "items-center", "gap-2"), c.forEach((u) => {
7120
+ if (u.condition && typeof u.condition == "function" && !u.condition(f))
7127
7121
  return;
7128
7122
  const m = document.createElement("button");
7129
7123
  if (m.type = "button", m.classList.add("spark-table-action-button"), u.icon) {
@@ -7147,9 +7141,9 @@ const Rt = new hu(), vu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
7147
7141
  }))
7148
7142
  return;
7149
7143
  }
7150
- u.event && e.methods.fireEvent(u.event, d), u.handler && typeof u.handler == "function" && u.handler(d);
7151
- }), f.appendChild(m);
7152
- }), n.appendChild(f);
7144
+ u.event && e.methods.fireEvent(u.event, f), u.handler && typeof u.handler == "function" && u.handler(f);
7145
+ }), d.appendChild(m);
7146
+ }), n.appendChild(d);
7153
7147
  }, Xs = {
7154
7148
  green: "bg-green-100 text-green-800",
7155
7149
  red: "bg-red-100 text-red-800",
@@ -7162,7 +7156,7 @@ const Rt = new hu(), vu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
7162
7156
  }, Mu = (e) => (t, n, o, s, a, r, l) => {
7163
7157
  if (n.innerHTML = "", n.classList.add("spark-table-cell-badge"), !r)
7164
7158
  return;
7165
- const c = (l.rendererConfig || {}).colorMap || {}, d = c[r] || c[r?.toLowerCase()] || "gray", f = Xs[d] || Xs.gray, u = document.createElement("span");
7159
+ const c = (l.rendererConfig || {}).colorMap || {}, f = c[r] || c[r?.toLowerCase()] || "gray", d = Xs[f] || Xs.gray, u = document.createElement("span");
7166
7160
  u.classList.add(
7167
7161
  "inline-flex",
7168
7162
  "items-center",
@@ -7172,7 +7166,7 @@ const Rt = new hu(), vu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
7172
7166
  "text-xs",
7173
7167
  "font-medium",
7174
7168
  "capitalize",
7175
- ...f.split(" ")
7169
+ ...d.split(" ")
7176
7170
  ), u.textContent = r, n.appendChild(u);
7177
7171
  }, Ks = {
7178
7172
  green: { bg: "bg-green-100", text: "text-green-500" },
@@ -7195,7 +7189,7 @@ const Rt = new hu(), vu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
7195
7189
  return !1;
7196
7190
  }, Ou = (e) => (t, n, o, s, a, r, l) => {
7197
7191
  n.innerHTML = "", n.classList.add("spark-table-cell-boolean");
7198
- const i = l.rendererConfig || {}, c = Lu(r), d = c ? i.trueIcon || "check" : i.falseIcon || "xmark", f = c ? i.trueColor || "green" : i.falseColor || "red", u = i.size || 32, m = i.iconPrefix || "far", y = Ks[f] || Ks.gray;
7192
+ const i = l.rendererConfig || {}, c = Lu(r), f = c ? i.trueIcon || "check" : i.falseIcon || "xmark", d = c ? i.trueColor || "green" : i.falseColor || "red", u = i.size || 32, m = i.iconPrefix || "far", y = Ks[d] || Ks.gray;
7199
7193
  n.dataset.copyValue = c ? "true" : "false";
7200
7194
  const g = document.createElement("div");
7201
7195
  g.classList.add(
@@ -7207,7 +7201,7 @@ const Rt = new hu(), vu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
7207
7201
  y.text
7208
7202
  ), g.style.width = `${u}px`, g.style.height = `${u}px`;
7209
7203
  const p = document.createElement("span");
7210
- p.innerHTML = Wt({ prefix: m, iconName: d }).html, p.classList.add("flex", "items-center", "justify-center");
7204
+ p.innerHTML = Wt({ prefix: m, iconName: f }).html, p.classList.add("flex", "items-center", "justify-center");
7211
7205
  const h = Math.round(u * 0.5);
7212
7206
  p.style.fontSize = `${h}px`, g.appendChild(p), n.appendChild(g);
7213
7207
  }, Pu = (e, t = 2) => {
@@ -7220,28 +7214,28 @@ const Rt = new hu(), vu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
7220
7214
  return o ? `-$${a}` : `$${a}`;
7221
7215
  }, Au = (e) => (t, n, o, s, a, r, l) => {
7222
7216
  n.innerHTML = "", n.classList.add("spark-table-cell-currency");
7223
- const i = l.rendererConfig || {}, { decimals: c = 2, emptyText: d = "" } = i;
7217
+ const i = l.rendererConfig || {}, { decimals: c = 2, emptyText: f = "" } = i;
7224
7218
  if (r == null || r === "") {
7225
- n.textContent = d;
7219
+ n.textContent = f;
7226
7220
  return;
7227
7221
  }
7228
- const f = Pu(r, c);
7229
- if (f === null) {
7230
- n.textContent = d;
7222
+ const d = Pu(r, c);
7223
+ if (d === null) {
7224
+ n.textContent = f;
7231
7225
  return;
7232
7226
  }
7233
7227
  const u = document.createElement("span");
7234
- u.textContent = f, n.appendChild(u);
7228
+ u.textContent = d, n.appendChild(u);
7235
7229
  }, Ru = (e) => (t, n, o, s, a, r, l) => {
7236
7230
  if (n.innerHTML = "", n.classList.add("spark-table-cell-link"), !r)
7237
7231
  return;
7238
7232
  const i = l.rendererConfig || {}, c = t.getSourceDataAtRow(t.toPhysicalRow(o));
7239
- let d = r;
7240
- i.href && (typeof i.href == "function" ? d = i.href(c) : i.href === "email" ? d = `mailto:${r}` : i.href === "tel" ? d = `tel:${r}` : typeof i.href == "string" && (d = c[i.href] || r));
7241
- const f = document.createElement("a");
7242
- f.href = d, f.textContent = r, f.classList.add("text-primary-600", "hover:text-primary-900", "hover:underline"), i.target && (f.target = i.target), i.rel && (f.rel = i.rel), f.addEventListener("click", (u) => {
7233
+ let f = r;
7234
+ i.href && (typeof i.href == "function" ? f = i.href(c) : i.href === "email" ? f = `mailto:${r}` : i.href === "tel" ? f = `tel:${r}` : typeof i.href == "string" && (f = c[i.href] || r));
7235
+ const d = document.createElement("a");
7236
+ d.href = f, d.textContent = r, d.classList.add("text-primary-600", "hover:text-primary-900", "hover:underline"), i.target && (d.target = i.target), i.rel && (d.rel = i.rel), d.addEventListener("click", (u) => {
7243
7237
  u.stopPropagation();
7244
- }), n.appendChild(f);
7238
+ }), n.appendChild(d);
7245
7239
  }, Js = {
7246
7240
  sm: "h-6 w-6",
7247
7241
  md: "h-8 w-8",
@@ -7249,11 +7243,11 @@ const Rt = new hu(), vu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
7249
7243
  }, Fu = (e) => (t, n, o, s, a, r, l) => {
7250
7244
  if (n.innerHTML = "", n.classList.add("spark-table-cell-image"), !r)
7251
7245
  return;
7252
- const i = l.rendererConfig || {}, c = t.getSourceDataAtRow(t.toPhysicalRow(o)), d = i.size || "md", f = Js[d] || Js.md, u = i.rounded !== !1, m = i.lightbox || !1, y = i.group || "table-images";
7246
+ const i = l.rendererConfig || {}, c = t.getSourceDataAtRow(t.toPhysicalRow(o)), f = i.size || "md", d = Js[f] || Js.md, u = i.rounded !== !1, m = i.lightbox || !1, y = i.group || "table-images";
7253
7247
  let g = i.alt || "";
7254
7248
  typeof i.alt == "string" && c[i.alt] && (g = c[i.alt]);
7255
7249
  const p = document.createElement("img");
7256
- if (p.src = r, p.alt = g, p.classList.add(...f.split(" "), "object-cover"), u ? p.classList.add("rounded-full") : p.classList.add("rounded"), m) {
7250
+ if (p.src = r, p.alt = g, p.classList.add(...d.split(" "), "object-cover"), u ? p.classList.add("rounded-full") : p.classList.add("rounded"), m) {
7257
7251
  const h = document.createElement("a");
7258
7252
  h.href = r, h.setAttribute("data-fancybox", y), g && h.setAttribute("data-caption", g), p.classList.add("cursor-pointer", "hover:opacity-80", "transition-opacity"), h.appendChild(p), n.appendChild(h);
7259
7253
  } else
@@ -7261,20 +7255,20 @@ const Rt = new hu(), vu = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
7261
7255
  }, Iu = (e) => (t, n, o, s, a, r, l) => {
7262
7256
  if (n.innerHTML = "", n.classList.add("spark-table-cell-date"), !r)
7263
7257
  return;
7264
- const i = l.rendererConfig || {}, c = i.format || "short", d = i.locale || "en-US";
7265
- let f = r;
7258
+ const i = l.rendererConfig || {}, c = i.format || "short", f = i.locale || "en-US";
7259
+ let d;
7266
7260
  try {
7267
7261
  const m = new Date(r);
7268
- isNaN(m.getTime()) ? f = r : typeof c == "function" ? f = c(m) : c === "short" ? f = m.toLocaleDateString(d) : c === "long" ? f = m.toLocaleDateString(d, {
7262
+ isNaN(m.getTime()) ? d = r : typeof c == "function" ? d = c(m) : c === "short" ? d = m.toLocaleDateString(f) : c === "long" ? d = m.toLocaleDateString(f, {
7269
7263
  year: "numeric",
7270
7264
  month: "long",
7271
7265
  day: "numeric"
7272
- }) : c === "relative" ? f = Du(m) : c === "datetime" ? f = m.toLocaleString(d) : f = m.toLocaleDateString(d);
7266
+ }) : c === "relative" ? d = Du(m) : c === "datetime" ? d = m.toLocaleString(f) : d = m.toLocaleDateString(f);
7273
7267
  } catch (m) {
7274
- console.error("Error formatting date:", m), f = r;
7268
+ console.error("Error formatting date:", m), d = r;
7275
7269
  }
7276
7270
  const u = document.createElement("span");
7277
- u.textContent = f, n.appendChild(u);
7271
+ u.textContent = d, n.appendChild(u);
7278
7272
  };
7279
7273
  function Du(e) {
7280
7274
  const n = /* @__PURE__ */ new Date() - e, o = Math.floor(Math.abs(n) / 1e3), s = Math.floor(o / 60), a = Math.floor(s / 60), r = Math.floor(a / 24), l = Math.floor(r / 30), i = Math.floor(r / 365), c = n > 0;
@@ -7384,11 +7378,11 @@ const ju = (e) => {
7384
7378
  return console.error("Failed to parse date string:", e, i), e;
7385
7379
  }
7386
7380
  const a = Nu(s, o), r = a.map(([i]) => i).join("|"), l = new RegExp(`\\[([^\\]]+)\\]|(${r})`, "g");
7387
- return t.replace(l, (i, c, d) => {
7381
+ return t.replace(l, (i, c, f) => {
7388
7382
  if (c !== void 0)
7389
7383
  return c;
7390
- const f = a.find(([u]) => u === d);
7391
- return f ? f[1]() : i;
7384
+ const d = a.find(([u]) => u === f);
7385
+ return d ? d[1]() : i;
7392
7386
  });
7393
7387
  }, qu = (e, t = {}) => {
7394
7388
  const { fromTimezone: n, toTimezone: o } = t;
@@ -7400,8 +7394,8 @@ const ju = (e) => {
7400
7394
  n.innerHTML = "", n.classList.add("spark-table-cell-datetime");
7401
7395
  const i = l.rendererConfig || {}, {
7402
7396
  format: c = "DD MMM YYYY, HH:mm",
7403
- fromTimezone: d,
7404
- toTimezone: f,
7397
+ fromTimezone: f,
7398
+ toTimezone: d,
7405
7399
  locale: u = "en-US",
7406
7400
  emptyText: m = ""
7407
7401
  } = i;
@@ -7410,7 +7404,7 @@ const ju = (e) => {
7410
7404
  return;
7411
7405
  }
7412
7406
  try {
7413
- const y = qu(r, { fromTimezone: d, toTimezone: f });
7407
+ const y = qu(r, { fromTimezone: f, toTimezone: d });
7414
7408
  if (!y) {
7415
7409
  n.textContent = m;
7416
7410
  return;
@@ -7435,11 +7429,11 @@ const ju = (e) => {
7435
7429
  });
7436
7430
  }, Gu = () => {
7437
7431
  }, Yu = (e, t = {}) => {
7438
- const n = Tt(), o = Dt(), s = t.namespace, a = s === null, r = t.syncToRoute !== !1, l = t.persistToStorage === !0, i = t.restoreOnMount !== !1, c = t.storageTTL || 7, d = a ? `spark-table:${o.path}` : `spark-table:${s}`, f = (v, k = "") => {
7432
+ const n = Tt(), o = Dt(), s = t.namespace, a = s === null, r = t.syncToRoute !== !1, l = t.persistToStorage === !0, i = t.restoreOnMount !== !1, c = t.storageTTL || 7, f = a ? `spark-table:${o.path}` : `spark-table:${s}`, d = (v, k = "") => {
7439
7433
  const S = {};
7440
7434
  return Object.keys(v).forEach((F) => {
7441
7435
  const M = v[F], ne = k ? `${k}[${F}]` : F;
7442
- M != null && (typeof M == "object" && !Array.isArray(M) ? Object.assign(S, f(M, ne)) : S[ne] = String(M));
7436
+ M != null && (typeof M == "object" && !Array.isArray(M) ? Object.assign(S, d(M, ne)) : S[ne] = String(M));
7443
7437
  }), S;
7444
7438
  }, u = () => {
7445
7439
  if (l)
@@ -7448,20 +7442,20 @@ const ju = (e) => {
7448
7442
  params: e.params,
7449
7443
  timestamp: Date.now()
7450
7444
  };
7451
- localStorage.setItem(d, JSON.stringify(v));
7445
+ localStorage.setItem(f, JSON.stringify(v));
7452
7446
  } catch (v) {
7453
7447
  console.warn("Failed to save table state to localStorage:", v);
7454
7448
  }
7455
7449
  }, m = () => {
7456
7450
  if (!l) return null;
7457
7451
  try {
7458
- const v = localStorage.getItem(d);
7452
+ const v = localStorage.getItem(f);
7459
7453
  if (!v) return null;
7460
7454
  const k = JSON.parse(v);
7461
7455
  if (c > 0) {
7462
7456
  const S = Date.now() - k.timestamp, F = c * 24 * 60 * 60 * 1e3;
7463
7457
  if (S > F)
7464
- return localStorage.removeItem(d), null;
7458
+ return localStorage.removeItem(f), null;
7465
7459
  }
7466
7460
  return k.params;
7467
7461
  } catch (v) {
@@ -7469,7 +7463,7 @@ const ju = (e) => {
7469
7463
  }
7470
7464
  }, y = () => {
7471
7465
  try {
7472
- localStorage.removeItem(d);
7466
+ localStorage.removeItem(f);
7473
7467
  } catch (v) {
7474
7468
  console.warn("Failed to clear table state from localStorage:", v);
7475
7469
  }
@@ -7480,13 +7474,13 @@ const ju = (e) => {
7480
7474
  Object.keys(v).forEach((S) => {
7481
7475
  p(S) && delete v[S];
7482
7476
  });
7483
- const k = f(e.params);
7477
+ const k = d(e.params);
7484
7478
  Object.assign(v, k);
7485
7479
  } else {
7486
7480
  Object.keys(v).forEach((S) => {
7487
7481
  (S.startsWith(`${s}[`) || S === s) && delete v[S];
7488
7482
  });
7489
- const k = f(e.params, s);
7483
+ const k = d(e.params, s);
7490
7484
  Object.assign(v, k);
7491
7485
  }
7492
7486
  n.replace({ query: v });
@@ -7520,14 +7514,12 @@ const ju = (e) => {
7520
7514
  ), i && sn(() => {
7521
7515
  let v = !1;
7522
7516
  if (r) {
7523
- let k = !1;
7517
+ let k;
7524
7518
  if (a)
7525
7519
  k = Object.keys(o.query).some((S) => p(S));
7526
7520
  else {
7527
7521
  const S = `${s}[`;
7528
- k = Object.keys(o.query).some(
7529
- (F) => F.startsWith(S)
7530
- );
7522
+ k = Object.keys(o.query).some((F) => F.startsWith(S));
7531
7523
  }
7532
7524
  k && (v = !0, x());
7533
7525
  }
@@ -7554,7 +7546,7 @@ const ju = (e) => {
7554
7546
  },
7555
7547
  setup(e) {
7556
7548
  const t = e;
7557
- return (n, o) => (T(), A("div", null, [
7549
+ return (n, o) => (T(), P("div", null, [
7558
7550
  _("div", Xu, [
7559
7551
  _("div", Ku, [
7560
7552
  _("div", Ju, [
@@ -7586,11 +7578,11 @@ const ju = (e) => {
7586
7578
  },
7587
7579
  emits: ["paginate"],
7588
7580
  setup(e, { emit: t }) {
7589
- const n = e, o = t, s = (d) => {
7590
- a(n.sparkTable.params.page + d);
7591
- }, a = (d) => {
7592
- d < 1 || d > n.sparkTable.response.meta.last_page || o("paginate", {
7593
- page: d
7581
+ const n = e, o = t, s = (f) => {
7582
+ a(n.sparkTable.params.page + f);
7583
+ }, a = (f) => {
7584
+ f < 1 || f > n.sparkTable.response.meta.last_page || o("paginate", {
7585
+ page: f
7594
7586
  });
7595
7587
  }, r = se(() => n.sparkTable.params.page ? Math.ceil(n.sparkTable.params.page / 10) * 10 : 1), l = se(() => n.sparkTable.computed.ready ? li(
7596
7588
  Math.floor((r.value - 1) / 10) * 10 + 1,
@@ -7598,24 +7590,24 @@ const ju = (e) => {
7598
7590
  ) : []), i = se(
7599
7591
  () => n.sparkTable.params.page < zt(n.sparkTable.response.meta, "last_page", 1)
7600
7592
  ), c = se(() => n.sparkTable.params.page > 1);
7601
- return (d, f) => {
7593
+ return (f, d) => {
7602
7594
  const u = Ue("font-awesome-icon");
7603
- return T(), A("div", null, [
7595
+ return T(), P("div", null, [
7604
7596
  _("div", od, [
7605
- l.value.length > 1 ? (T(), A("div", sd, [
7597
+ l.value.length > 1 ? (T(), P("div", sd, [
7606
7598
  _("div", null, [
7607
7599
  _("nav", rd, [
7608
7600
  _("a", {
7609
7601
  class: Me([c.value ? "" : "disabled", "relative inline-flex items-center rounded-l-md px-2 py-[9px] text-gray-400 ring-1 ring-gray-300 ring-inset hover:bg-gray-50 focus:z-20 focus:outline-offset-0"]),
7610
7602
  href: "#",
7611
- onClick: f[0] || (f[0] = Je((m) => s(-1), ["prevent"]))
7603
+ onClick: d[0] || (d[0] = Je((m) => s(-1), ["prevent"]))
7612
7604
  }, [
7613
7605
  te(u, {
7614
7606
  icon: ee(Ie).farChevronLeft,
7615
7607
  class: "size-5"
7616
7608
  }, null, 8, ["icon"])
7617
7609
  ], 2),
7618
- (T(!0), A(Ne, null, st(l.value, (m) => (T(), A("a", {
7610
+ (T(!0), P(Ne, null, st(l.value, (m) => (T(), P("a", {
7619
7611
  key: `page-${m}`,
7620
7612
  href: "#",
7621
7613
  class: Me([
@@ -7626,8 +7618,8 @@ const ju = (e) => {
7626
7618
  }, we(m), 11, ad))), 128)),
7627
7619
  _("a", {
7628
7620
  class: Me([i.value ? "" : "disabled", "relative inline-flex items-center rounded-r-md px-2 py-[9px] text-gray-400 ring-1 ring-gray-300 ring-inset hover:bg-gray-50 focus:z-20 focus:outline-offset-0"]),
7629
- onClick: f[1] || (f[1] = Je((m) => s(1), ["prevent"])),
7630
- href: "#"
7621
+ href: "#",
7622
+ onClick: d[1] || (d[1] = Je((m) => s(1), ["prevent"]))
7631
7623
  }, [
7632
7624
  te(u, {
7633
7625
  icon: ee(Ie).farChevronRight,
@@ -7667,7 +7659,7 @@ const ju = (e) => {
7667
7659
  };
7668
7660
  return (r, l) => {
7669
7661
  const i = Ue("FormKit");
7670
- return T(), A("div", ld, [
7662
+ return T(), P("div", ld, [
7671
7663
  te(i, {
7672
7664
  "model-value": e.sparkTable.params.limit,
7673
7665
  type: "select",
@@ -7694,7 +7686,7 @@ const ju = (e) => {
7694
7686
  const a = "spark-table-toolbar flex flex-wrap items-center gap-x-5 w-full";
7695
7687
  return t.position === "footer" ? `${a} spark-table-toolbar-footer justify-between` : `${a} spark-table-toolbar-header gap-y-5 py-5`;
7696
7688
  });
7697
- return (a, r) => o.value ? (T(), A("div", {
7689
+ return (a, r) => o.value ? (T(), P("div", {
7698
7690
  key: 0,
7699
7691
  class: Me(s.value)
7700
7692
  }, [
@@ -7741,13 +7733,13 @@ const ju = (e) => {
7741
7733
  }
7742
7734
  ), (r, l) => {
7743
7735
  const i = Ue("FormKit");
7744
- return T(), A("div", dd, [
7736
+ return T(), P("div", dd, [
7745
7737
  te(i, wt({
7746
7738
  modelValue: n.value,
7747
7739
  "onUpdate:modelValue": l[0] || (l[0] = (c) => n.value = c),
7748
7740
  type: "text",
7749
7741
  placeholder: ee(a),
7750
- suffixIcon: "search",
7742
+ "suffix-icon": "search",
7751
7743
  "outer-class": "!mb-0",
7752
7744
  "wrapper-class": "!mb-0",
7753
7745
  "input-class": "!w-44 !pr-8"
@@ -7755,7 +7747,7 @@ const ju = (e) => {
7755
7747
  ]);
7756
7748
  };
7757
7749
  }
7758
- }, pd = /* @__PURE__ */ an(fd, [["__scopeId", "data-v-976170dc"]]), md = { class: "spark-table-filter-select" }, gd = {
7750
+ }, pd = /* @__PURE__ */ an(fd, [["__scopeId", "data-v-18795b8f"]]), md = { class: "spark-table-filter-select" }, gd = {
7759
7751
  __name: "SparkTableFilterSelect",
7760
7752
  props: {
7761
7753
  /** SparkTable instance object */
@@ -7775,10 +7767,7 @@ const ju = (e) => {
7775
7767
  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({
7776
7768
  [o]: t.config.initialValue
7777
7769
  }));
7778
- const s = t.config.label || null, a = se(() => [
7779
- { label: t.config.placeholder || "All", value: "" },
7780
- ...t.config.options
7781
- ]);
7770
+ const s = t.config.label || null, a = se(() => [{ label: t.config.placeholder || "All", value: "" }, ...t.config.options]);
7782
7771
  return et(n, (r) => {
7783
7772
  r ? t.sparkTable.methods.applyParams({
7784
7773
  page: 1,
@@ -7791,7 +7780,7 @@ const ju = (e) => {
7791
7780
  }
7792
7781
  ), (r, l) => {
7793
7782
  const i = Ue("FormKit");
7794
- return T(), A("div", md, [
7783
+ return T(), P("div", md, [
7795
7784
  te(i, wt({
7796
7785
  modelValue: n.value,
7797
7786
  "onUpdate:modelValue": l[0] || (l[0] = (c) => n.value = c),
@@ -7805,7 +7794,7 @@ const ju = (e) => {
7805
7794
  ]);
7806
7795
  };
7807
7796
  }
7808
- }, hd = /* @__PURE__ */ an(gd, [["__scopeId", "data-v-642dbc69"]]), vd = { class: "spark-table-filter-buttons" }, yd = {
7797
+ }, hd = /* @__PURE__ */ an(gd, [["__scopeId", "data-v-79c78a5b"]]), vd = { class: "spark-table-filter-buttons" }, yd = {
7809
7798
  key: 0,
7810
7799
  class: "spark-table-filter-buttons-label"
7811
7800
  }, bd = {
@@ -7839,16 +7828,16 @@ const ju = (e) => {
7839
7828
  (l) => {
7840
7829
  (l == null || l === "") && n.value ? n.value = null : l !== n.value && (n.value = l);
7841
7830
  }
7842
- ), (l, i) => (T(), A("div", vd, [
7843
- ee(o) ? (T(), A("span", yd, we(ee(o)), 1)) : he("", !0),
7831
+ ), (l, i) => (T(), P("div", vd, [
7832
+ ee(o) ? (T(), P("span", yd, we(ee(o)), 1)) : he("", !0),
7844
7833
  te(Kr, { class: "isolate" }, {
7845
7834
  default: xe(() => [
7846
- (T(!0), A(Ne, null, st(e.config.options, (c) => (T(), Le(mt, {
7835
+ (T(!0), P(Ne, null, st(e.config.options, (c) => (T(), Le(mt, {
7847
7836
  key: c.value,
7848
7837
  size: "xl",
7849
7838
  "button-class": "px-3.5",
7850
7839
  variant: a(c.value) ? "primary" : "secondary",
7851
- onClick: (d) => r(c.value)
7840
+ onClick: (f) => r(c.value)
7852
7841
  }, {
7853
7842
  default: xe(() => [
7854
7843
  qe(we(c.label), 1)
@@ -7860,7 +7849,7 @@ const ju = (e) => {
7860
7849
  })
7861
7850
  ]));
7862
7851
  }
7863
- }, xd = /* @__PURE__ */ an(bd, [["__scopeId", "data-v-01a49899"]]), wd = { class: "spark-table-date-picker" }, Sd = {
7852
+ }, xd = /* @__PURE__ */ an(bd, [["__scopeId", "data-v-0eb19c63"]]), wd = { class: "spark-table-date-picker" }, Sd = {
7864
7853
  __name: "SparkTableDatePicker",
7865
7854
  props: {
7866
7855
  /** SparkTable instance object */
@@ -7895,7 +7884,7 @@ const ju = (e) => {
7895
7884
  }
7896
7885
  ), (r, l) => {
7897
7886
  const i = Ue("FormKit");
7898
- return T(), A("div", wd, [
7887
+ return T(), P("div", wd, [
7899
7888
  (T(), Le(i, wt({
7900
7889
  key: a.value,
7901
7890
  modelValue: n.value,
@@ -7930,16 +7919,16 @@ const ju = (e) => {
7930
7919
  setup(e) {
7931
7920
  const t = e, n = () => {
7932
7921
  const o = t.sparkTable.plugins || {}, s = [], a = {};
7933
- Object.entries(o).forEach(([c, d]) => {
7934
- if (!d || d.type === "reset" || !(typeof d.enabled == "function" ? d.enabled(t.sparkTable.params) : d.enabled))
7922
+ Object.entries(o).forEach(([, c]) => {
7923
+ if (!c || c.type === "reset" || !(typeof c.enabled == "function" ? c.enabled(t.sparkTable.params) : c.enabled))
7935
7924
  return;
7936
- let u = null;
7937
- d.type === "search" ? u = d.param || "search" : d.type === "filterSelect" || d.type === "filterButtons" ? u = d.param || `filter[${d.key}]` : d.type === "datePicker" && (u = d.param || `filter[${d.key}]`), u && (d.initialValue !== void 0 && d.initialValue !== null ? a[u] = d.initialValue : s.push(u));
7925
+ let d = null;
7926
+ c.type === "search" ? d = c.param || "search" : c.type === "filterSelect" || c.type === "filterButtons" ? d = c.param || `filter[${c.key}]` : c.type === "datePicker" && (d = c.param || `filter[${c.key}]`), d && (c.initialValue !== void 0 && c.initialValue !== null ? a[d] = c.initialValue : s.push(d));
7938
7927
  });
7939
7928
  const r = s.filter(
7940
7929
  (c) => t.sparkTable.params[c] !== void 0 && t.sparkTable.params[c] !== null && t.sparkTable.params[c] !== ""
7941
7930
  ), l = Object.entries(a).filter(
7942
- ([c, d]) => t.sparkTable.params[c] !== d
7931
+ ([c, f]) => t.sparkTable.params[c] !== f
7943
7932
  );
7944
7933
  if (r.length === 0 && l.length === 0)
7945
7934
  return;
@@ -7951,12 +7940,12 @@ const ju = (e) => {
7951
7940
  };
7952
7941
  return (o, s) => {
7953
7942
  const a = Ue("font-awesome-icon");
7954
- return T(), A("div", Ed, [
7943
+ return T(), P("div", Ed, [
7955
7944
  te(mt, {
7956
- onClick: n,
7957
7945
  variant: "secondary",
7958
7946
  "button-class": "px-3.5",
7959
- size: "xl"
7947
+ size: "xl",
7948
+ onClick: n
7960
7949
  }, {
7961
7950
  default: xe(() => [
7962
7951
  e.config.icon ? (T(), Le(a, {
@@ -7964,14 +7953,14 @@ const ju = (e) => {
7964
7953
  icon: ["far", e.config.icon],
7965
7954
  class: Me({ "mr-1.5": e.config.label })
7966
7955
  }, null, 8, ["icon", "class"])) : he("", !0),
7967
- e.config.label ? (T(), A("span", Td, we(e.config.label), 1)) : he("", !0)
7956
+ e.config.label ? (T(), P("span", Td, we(e.config.label), 1)) : he("", !0)
7968
7957
  ]),
7969
7958
  _: 1
7970
7959
  })
7971
7960
  ]);
7972
7961
  };
7973
7962
  }
7974
- }, _d = /* @__PURE__ */ an(Cd, [["__scopeId", "data-v-0894e3bf"]]), $d = { class: "spark-table" }, Md = {
7963
+ }, _d = /* @__PURE__ */ an(Cd, [["__scopeId", "data-v-6df5499a"]]), $d = { class: "spark-table" }, Md = {
7975
7964
  key: 1,
7976
7965
  class: "pt-5"
7977
7966
  }, Ld = {
@@ -7997,10 +7986,12 @@ const ju = (e) => {
7997
7986
  __name: "SparkTable",
7998
7987
  props: {
7999
7988
  url: {
8000
- type: String
7989
+ type: String,
7990
+ default: null
8001
7991
  },
8002
7992
  dataProvider: {
8003
- type: Function
7993
+ type: Function,
7994
+ default: null
8004
7995
  },
8005
7996
  dataTransformer: {
8006
7997
  type: Function,
@@ -8061,13 +8052,13 @@ const ju = (e) => {
8061
8052
  hi(), Vn(fi), Vn(pi), Vn(mi), zt(o, "settings.nestedHeaders") && Vn(gi);
8062
8053
  const s = n, a = ao("axios"), r = Ee(null), l = Ee(!1), i = Ee(null);
8063
8054
  let c = !1;
8064
- const d = {
8055
+ const f = {
8065
8056
  search: pd,
8066
8057
  filterSelect: hd,
8067
8058
  filterButtons: xd,
8068
8059
  datePicker: kd,
8069
8060
  reset: _d
8070
- }, f = Et({
8061
+ }, d = Et({
8071
8062
  hotInstance: null,
8072
8063
  url: se(() => o.url),
8073
8064
  plugins: o.plugins,
@@ -8078,38 +8069,38 @@ const ju = (e) => {
8078
8069
  },
8079
8070
  methods: {
8080
8071
  applyParams: (p) => {
8081
- p && (f.params = {
8082
- ...f.params,
8072
+ p && (d.params = {
8073
+ ...d.params,
8083
8074
  ...p
8084
- }, s("page-change", f.params));
8075
+ }, s("page-change", d.params));
8085
8076
  },
8086
8077
  removeParam: async (p) => {
8087
- f.params[p] && (delete f.params[p], await f.methods.loadTable());
8078
+ d.params[p] && (delete d.params[p], await d.methods.loadTable());
8088
8079
  },
8089
8080
  loadTable: async (p) => {
8090
8081
  if (!(!r.value || !r.value.hotInstance)) {
8091
- l.value = !0, i.value = null, s("loading", !0), mo.start(), f.hotInstance = r.value.hotInstance;
8082
+ l.value = !0, i.value = null, s("loading", !0), mo.start(), d.hotInstance = r.value.hotInstance;
8092
8083
  try {
8093
8084
  if (o.dataProvider) {
8094
- const v = await o.dataProvider(f.computed.params);
8095
- f.response = o.dataTransformer(v, o);
8085
+ const v = await o.dataProvider(d.computed.params);
8086
+ d.response = o.dataTransformer(v, o);
8096
8087
  } else if (o.url) {
8097
8088
  const v = await a.get(o.url, {
8098
- params: f.computed.params
8089
+ params: d.computed.params
8099
8090
  });
8100
- f.response = o.dataTransformer(v, o);
8091
+ d.response = o.dataTransformer(v, o);
8101
8092
  } else {
8102
8093
  console.error("No data provider or URL provided"), l.value = !1, s("loading", !1), mo.done();
8103
8094
  return;
8104
8095
  }
8105
8096
  if (c) return;
8106
- f.hotInstance.updateData(f.response.data), f.options.callback && typeof f.options.callback == "function" && await f.options.callback();
8107
- const h = f.hotInstance.getPlugin("autoColumnSize");
8097
+ d.hotInstance.updateData(d.response.data), d.options.callback && typeof d.options.callback == "function" && await d.options.callback();
8098
+ const h = d.hotInstance.getPlugin("autoColumnSize");
8108
8099
  zt(o.settings, "columns", []).forEach((v, k) => {
8109
8100
  v.width || h.calculateColumnsWidth(k, k, !0);
8110
8101
  }), s("load", {
8111
- data: f.response.data,
8112
- meta: f.response.meta
8102
+ data: d.response.data,
8103
+ meta: d.response.meta
8113
8104
  }), p && typeof p == "function" && p();
8114
8105
  } catch (h) {
8115
8106
  i.value = h, s("error", h), console.error("Error loading table data:", h);
@@ -8123,26 +8114,26 @@ const ju = (e) => {
8123
8114
  fireEvent: (p, h) => {
8124
8115
  s(p, h);
8125
8116
  },
8126
- getSettingsForProp: (p) => ci(zt(f.tableSettings, "columns"), { data: p }),
8117
+ getSettingsForProp: (p) => ci(zt(d.tableSettings, "columns"), { data: p }),
8127
8118
  // Helper methods for easier param access
8128
- getParams: () => f.computed.params,
8129
- getParam: (p) => f.computed.params[p],
8119
+ getParams: () => d.computed.params,
8120
+ getParam: (p) => d.computed.params[p],
8130
8121
  setParam: (p, h) => {
8131
- f.methods.applyParams({ [p]: h });
8122
+ d.methods.applyParams({ [p]: h });
8132
8123
  },
8133
- clearParam: (p) => f.methods.removeParam(p),
8124
+ clearParam: (p) => d.methods.removeParam(p),
8134
8125
  clearParams: (p) => {
8135
8126
  (Array.isArray(p) ? p : [p]).forEach((x) => {
8136
- f.params[x] !== void 0 && delete f.params[x];
8137
- }), f.methods.applyParams({ page: 1 });
8127
+ d.params[x] !== void 0 && delete d.params[x];
8128
+ }), d.methods.applyParams({ page: 1 });
8138
8129
  }
8139
8130
  },
8140
8131
  computed: {
8141
8132
  params: se(() => ({
8142
8133
  ...o.params,
8143
- ...f.params
8134
+ ...d.params
8144
8135
  })),
8145
- ready: se(() => ui(f, "response.meta.last_page"))
8136
+ ready: se(() => ui(d, "response.meta.last_page"))
8146
8137
  },
8147
8138
  options: se(() => ({
8148
8139
  ...No,
@@ -8152,23 +8143,14 @@ const ju = (e) => {
8152
8143
  ...tr,
8153
8144
  nestedHeaders: zt(o.settings, "nestedHeaders", []),
8154
8145
  ...!zt(o.settings, "nestedHeaders") && {
8155
- afterGetColHeader: (p, h) => Cu(p, h, f)
8146
+ afterGetColHeader: (p, h) => Cu(p, h, d)
8156
8147
  },
8157
8148
  afterChange: (p, h) => Gu(),
8158
- afterRender: () => _u(f),
8159
- /**
8160
- * Prevent columns with explicit width from being stretched
8161
- * This hook fires BEFORE stretchH is applied, allowing us to cap specific columns
8162
- * while letting others stretch normally
8163
- */
8149
+ afterRender: () => _u(d),
8164
8150
  beforeStretchingColumnWidth: (p, h) => {
8165
8151
  const v = zt(o.settings, "columns", [])[h];
8166
8152
  return v && v.width !== void 0 ? v.width : p;
8167
8153
  },
8168
- /**
8169
- * Copy displayed cell content instead of raw data values
8170
- * This ensures custom renderers copy their visual output, not the underlying data
8171
- */
8172
8154
  beforeCopy: (p, h) => {
8173
8155
  const x = r.value?.hotInstance;
8174
8156
  x && h.forEach((v) => {
@@ -8184,9 +8166,7 @@ const ju = (e) => {
8184
8166
  },
8185
8167
  ...o.settings
8186
8168
  }))
8187
- }), u = se(
8188
- () => f.computed.ready && f.response.data?.length === 0
8189
- ), m = (p) => {
8169
+ }), u = se(() => d.computed.ready && d.response.data?.length === 0), m = (p) => {
8190
8170
  if (!p) return null;
8191
8171
  switch (p.type) {
8192
8172
  case "search":
@@ -8198,24 +8178,24 @@ const ju = (e) => {
8198
8178
  default:
8199
8179
  return null;
8200
8180
  }
8201
- }, y = (p) => p ? typeof p.enabled == "function" ? p.enabled(f.params) : p.enabled : !1, g = se(() => Object.entries(o.plugins).filter(([p, h]) => y(h)).map(([p, h]) => ({ name: p, config: h })));
8181
+ }, y = (p) => p ? typeof p.enabled == "function" ? p.enabled(d.params) : p.enabled : !1, g = se(() => Object.entries(o.plugins).filter(([, p]) => y(p)).map(([p, h]) => ({ name: p, config: h })));
8202
8182
  if (et(
8203
- () => ({ ...f.params }),
8183
+ () => ({ ...d.params }),
8204
8184
  () => {
8205
8185
  const p = [];
8206
8186
  Object.values(o.plugins).forEach((h) => {
8207
8187
  const x = m(h);
8208
8188
  if (!x) return;
8209
- const v = y(h), k = f.params[x] !== void 0;
8189
+ const v = y(h), k = d.params[x] !== void 0;
8210
8190
  !v && k && p.push(x);
8211
8191
  }), p.length > 0 && p.forEach((h) => {
8212
- delete f.params[h];
8192
+ delete d.params[h];
8213
8193
  });
8214
8194
  },
8215
8195
  { deep: !0, flush: "sync" }
8216
8196
  ), o.syncToRoute || o.persistToStorage) {
8217
8197
  const p = typeof o.syncToRoute == "string";
8218
- Yu(f, {
8198
+ Yu(d, {
8219
8199
  namespace: p ? o.syncToRoute : null,
8220
8200
  syncToRoute: !!o.syncToRoute,
8221
8201
  persistToStorage: o.persistToStorage
@@ -8224,94 +8204,94 @@ const ju = (e) => {
8224
8204
  return rs(
8225
8205
  () => o.params,
8226
8206
  async () => {
8227
- f.params.page = 1, await f.methods.loadTable();
8207
+ d.params.page = 1, await d.methods.loadTable();
8228
8208
  },
8229
8209
  { debounce: 50, maxWait: 1e3 }
8230
8210
  ), rs(
8231
- () => f.params,
8211
+ () => d.params,
8232
8212
  async () => {
8233
- await f.methods.loadTable();
8213
+ await d.methods.loadTable();
8234
8214
  },
8235
8215
  { debounce: 50, maxWait: 1e3 }
8236
8216
  ), et(
8237
8217
  () => o.url,
8238
8218
  async (p, h) => {
8239
- p !== h && (f.params.page = 1, await f.methods.loadTable());
8219
+ p !== h && (d.params.page = 1, await d.methods.loadTable());
8240
8220
  }
8241
8221
  ), sn(async () => {
8242
- await f.methods.loadTable(), s("ready");
8222
+ await d.methods.loadTable(), s("ready");
8243
8223
  }), Fn(() => {
8244
8224
  c = !0;
8245
- }), Zu(f), t({
8246
- refresh: () => f.methods.loadTable(),
8247
- getParams: () => f.methods.getParams(),
8248
- getParam: (p) => f.methods.getParam(p),
8249
- setParam: (p, h) => f.methods.setParam(p, h),
8250
- clearParam: (p) => f.methods.clearParam(p),
8251
- clearParams: (p) => f.methods.clearParams(p),
8252
- applyParams: (p) => f.methods.applyParams(p),
8225
+ }), Zu(d), t({
8226
+ refresh: () => d.methods.loadTable(),
8227
+ getParams: () => d.methods.getParams(),
8228
+ getParam: (p) => d.methods.getParam(p),
8229
+ setParam: (p, h) => d.methods.setParam(p, h),
8230
+ clearParam: (p) => d.methods.clearParam(p),
8231
+ clearParams: (p) => d.methods.clearParams(p),
8232
+ applyParams: (p) => d.methods.applyParams(p),
8253
8233
  loading: l,
8254
8234
  error: i,
8255
- sparkTable: f,
8235
+ sparkTable: d,
8256
8236
  table: r
8257
8237
  }), (p, h) => {
8258
8238
  const x = Ue("font-awesome-icon");
8259
- return T(), A("div", $d, [
8260
- f.computed.ready && g.value && g.value.length ? (T(), Le(er, {
8239
+ return T(), P("div", $d, [
8240
+ d.computed.ready && g.value && g.value.length ? (T(), Le(er, {
8261
8241
  key: 0,
8262
8242
  position: "header"
8263
8243
  }, {
8264
8244
  default: xe(() => [
8265
- (T(!0), A(Ne, null, st(g.value, (v) => (T(), Le(vt(d[v.config.type]), {
8245
+ (T(!0), P(Ne, null, st(g.value, (v) => (T(), Le(vt(f[v.config.type]), {
8266
8246
  key: v.name,
8267
8247
  class: Me(v.config.align ? `self-${v.config.align}` : ""),
8268
- "spark-table": f,
8248
+ "spark-table": d,
8269
8249
  config: v.config
8270
8250
  }, null, 8, ["class", "spark-table", "config"]))), 128)),
8271
8251
  Xe(p.$slots, "header", {
8272
- sparkTable: f,
8252
+ sparkTable: d,
8273
8253
  loading: l.value,
8274
8254
  error: i.value
8275
8255
  })
8276
8256
  ]),
8277
8257
  _: 3
8278
- })) : (T(), A("div", Md)),
8258
+ })) : (T(), P("div", Md)),
8279
8259
  Jt(te(ee(di), {
8280
- "theme-name": "ht-theme-classic",
8281
8260
  ref_key: "table",
8282
8261
  ref: r,
8283
- settings: f.tableSettings
8262
+ "theme-name": "ht-theme-classic",
8263
+ settings: d.tableSettings
8284
8264
  }, null, 8, ["settings"]), [
8285
8265
  [sr, !u.value]
8286
8266
  ]),
8287
- u.value ? (T(), A("div", Ld, [
8267
+ u.value ? (T(), P("div", Ld, [
8288
8268
  te(x, {
8289
8269
  icon: ee(Ie).farInbox,
8290
8270
  class: "size-12 mb-4 text-gray-300"
8291
8271
  }, null, 8, ["icon"]),
8292
8272
  h[0] || (h[0] = _("p", { class: "text-sm" }, "No records found", -1))
8293
8273
  ])) : he("", !0),
8294
- f.computed.ready ? (T(), Le(er, {
8274
+ d.computed.ready ? (T(), Le(er, {
8295
8275
  key: 3,
8296
8276
  position: "footer"
8297
8277
  }, {
8298
8278
  default: xe(() => [
8299
8279
  u.value ? he("", !0) : (T(), Le(nd, {
8300
8280
  key: 0,
8301
- "spark-table": f
8281
+ "spark-table": d
8302
8282
  }, null, 8, ["spark-table"])),
8303
8283
  _("div", Od, [
8304
8284
  u.value ? he("", !0) : (T(), Le(id, {
8305
8285
  key: 0,
8306
- "spark-table": f,
8307
- onPaginate: f.methods.applyParams
8286
+ "spark-table": d,
8287
+ onPaginate: d.methods.applyParams
8308
8288
  }, null, 8, ["spark-table", "onPaginate"])),
8309
8289
  te(ud, {
8310
- "spark-table": f,
8311
- onPaginate: f.methods.applyParams
8290
+ "spark-table": d,
8291
+ onPaginate: d.methods.applyParams
8312
8292
  }, null, 8, ["spark-table", "onPaginate"]),
8313
8293
  Xe(p.$slots, "footer", {
8314
- sparkTable: f,
8294
+ sparkTable: d,
8315
8295
  loading: l.value,
8316
8296
  error: i.value
8317
8297
  })
@@ -8465,8 +8445,8 @@ const $o = "bolt-next-token", Ft = In("auth", () => {
8465
8445
  }, o = () => {
8466
8446
  Id($o), e.token = null;
8467
8447
  }, s = () => Rd($o), a = async (c) => {
8468
- const d = await vn.post(e.endpoints.login, c), f = d.headers.authorization;
8469
- return n(f), e.user = d.data, e.callbacks.onLoginSuccess && await e.callbacks.onLoginSuccess(d.data), d.data;
8448
+ const f = await vn.post(e.endpoints.login, c), d = f.headers.authorization;
8449
+ return n(d), e.user = f.data, e.callbacks.onLoginSuccess && await e.callbacks.onLoginSuccess(f.data), f.data;
8470
8450
  }, r = async () => {
8471
8451
  try {
8472
8452
  await vn.post(
@@ -8488,12 +8468,12 @@ const $o = "bolt-next-token", Ft = In("auth", () => {
8488
8468
  if (!c)
8489
8469
  return e.ready = !0, null;
8490
8470
  try {
8491
- const { data: d } = await vn.get(e.endpoints.fetch, {
8471
+ const { data: f } = await vn.get(e.endpoints.fetch, {
8492
8472
  headers: {
8493
8473
  Authorization: `Bearer ${c}`
8494
8474
  }
8495
8475
  });
8496
- e.user = d, e.overrideToken || (e.token = c);
8476
+ e.user = f, e.overrideToken || (e.token = c);
8497
8477
  } catch {
8498
8478
  e.overrideToken || o();
8499
8479
  } finally {
@@ -8581,8 +8561,8 @@ function Jp(e = {}) {
8581
8561
  onError: l = null,
8582
8562
  showNotification: i = !0,
8583
8563
  setFieldErrors: c = !0,
8584
- setFormErrors: d = !0
8585
- } = e, f = Tt(), u = Ee(!1);
8564
+ setFormErrors: f = !0
8565
+ } = e, d = Tt(), u = Ee(!1);
8586
8566
  async function m(p) {
8587
8567
  const { submitFn: h, method: x = "create", node: v = null, isEditMode: k = !1 } = p;
8588
8568
  u.value = !0, v && v.clearErrors();
@@ -8590,7 +8570,7 @@ function Jp(e = {}) {
8590
8570
  const F = (await h()).data;
8591
8571
  if (r && await r(F), !k && a) {
8592
8572
  const M = typeof a == "function" ? a(F) : a;
8593
- await f.push(M);
8573
+ await d.push(M);
8594
8574
  }
8595
8575
  if (i) {
8596
8576
  const M = k ? s : x === "create" ? o : n;
@@ -8606,7 +8586,7 @@ function Jp(e = {}) {
8606
8586
  return { success: !1, data: null, error: S };
8607
8587
  if (zd(F)) {
8608
8588
  const M = Vd(F);
8609
- M && v && c && v.setErrors([], M), d && (Qe.show({
8589
+ M && v && c && v.setErrors([], M), f && (Qe.show({
8610
8590
  type: "danger",
8611
8591
  message: or(F)
8612
8592
  }), window.scrollTo({ top: 0, behavior: "smooth" }));
@@ -8642,7 +8622,7 @@ function Jp(e = {}) {
8642
8622
  }
8643
8623
  function Qp(e, t = {}) {
8644
8624
  const { queryParams: n = "", fetchFn: o = null, fetchOnCreate: s = !1 } = t, a = Dt(), r = Ee(null), l = Ee(null), i = se(() => a.params.id ?? null), c = se(() => i.value !== null);
8645
- async function d() {
8625
+ async function f() {
8646
8626
  if (!(!s && !c.value)) {
8647
8627
  l.value = null;
8648
8628
  try {
@@ -8666,21 +8646,15 @@ function Qp(e, t = {}) {
8666
8646
  }
8667
8647
  }
8668
8648
  }
8669
- function f() {
8670
- c.value && d();
8649
+ function d() {
8650
+ c.value && f();
8671
8651
  }
8672
8652
  return sn(() => {
8673
- (s || c.value) && d();
8674
- }), { data: r, error: l, resourceId: i, isEditMode: c, fetch: d, handleSuccess: f };
8653
+ (s || c.value) && f();
8654
+ }), { data: r, error: l, resourceId: i, isEditMode: c, fetch: f, handleSuccess: d };
8675
8655
  }
8676
8656
  function em(e, t = {}) {
8677
- const {
8678
- endpoint: n,
8679
- successMessage: o,
8680
- errorMessage: s,
8681
- onSuccess: a,
8682
- onError: r
8683
- } = t;
8657
+ const { endpoint: n, successMessage: o, errorMessage: s, onSuccess: a, onError: r } = t;
8684
8658
  async function l(i) {
8685
8659
  try {
8686
8660
  await ro().delete(`/${n}/${i.id}`);
@@ -8725,7 +8699,7 @@ function tm(e = {}) {
8725
8699
  const h = typeof p == "string" ? a.value.find((x) => x.id === p) : p;
8726
8700
  return h ? l(h.disabled) : !1;
8727
8701
  }
8728
- function d(p) {
8702
+ function f(p) {
8729
8703
  const h = typeof p == "string" ? a.value.find((v) => v.id === p) : p;
8730
8704
  if (!h || !h.route) return !1;
8731
8705
  const x = typeof h.route == "string" ? { name: h.route } : h.route;
@@ -8737,10 +8711,10 @@ function tm(e = {}) {
8737
8711
  }
8738
8712
  return !1;
8739
8713
  }
8740
- const f = se(() => {
8741
- const p = i.value.find((h) => d(h));
8714
+ const d = se(() => {
8715
+ const p = i.value.find((h) => f(h));
8742
8716
  return p || (n ? i.value.find((h) => h.id === n) || i.value[0] : i.value[0] || null);
8743
- }), u = se(() => f.value?.id || null);
8717
+ }), u = se(() => d.value?.id || null);
8744
8718
  async function m(p) {
8745
8719
  const h = typeof p == "string" ? a.value.find((x) => x.id === p) : p;
8746
8720
  if (!h)
@@ -8752,7 +8726,13 @@ function tm(e = {}) {
8752
8726
  return await o.push(x), !0;
8753
8727
  }
8754
8728
  if (h.overlay) {
8755
- const { component: x, props: v = {}, eventHandlers: k = {}, position: S = "right", size: F } = h.overlay;
8729
+ const {
8730
+ component: x,
8731
+ props: v = {},
8732
+ eventHandlers: k = {},
8733
+ position: S = "right",
8734
+ size: F
8735
+ } = h.overlay;
8756
8736
  return Kt[S === "left" ? "showLeft" : "showRight"](wn(x), v, k, { size: F }), !0;
8757
8737
  }
8758
8738
  if (h.modal) {
@@ -8775,10 +8755,10 @@ function tm(e = {}) {
8775
8755
  return {
8776
8756
  items: a,
8777
8757
  visibleItems: i,
8778
- activeItem: f,
8758
+ activeItem: d,
8779
8759
  activeId: u,
8780
8760
  navigateTo: m,
8781
- isActive: d,
8761
+ isActive: f,
8782
8762
  isDisabled: c,
8783
8763
  setItems: y,
8784
8764
  updateItem: g
@@ -8820,7 +8800,7 @@ function nm(e = {}) {
8820
8800
  p && (p.isDirty = g);
8821
8801
  }, c = () => {
8822
8802
  i(!1);
8823
- }, d = async (g = {}) => {
8803
+ }, f = async (g = {}) => {
8824
8804
  if (!l.value)
8825
8805
  return !0;
8826
8806
  const p = await Rt.confirm({
@@ -8832,22 +8812,22 @@ function nm(e = {}) {
8832
8812
  });
8833
8813
  return p && c(), p;
8834
8814
  };
8835
- let f = !1;
8815
+ let d = !1;
8836
8816
  const u = (g) => {
8837
8817
  if (l.value)
8838
8818
  return g.preventDefault(), g.returnValue = "", "";
8839
8819
  }, m = () => {
8840
- f || (window.addEventListener("beforeunload", u), f = !0);
8820
+ d || (window.addEventListener("beforeunload", u), d = !0);
8841
8821
  }, y = () => {
8842
- f && (window.removeEventListener("beforeunload", u), f = !1);
8822
+ d && (window.removeEventListener("beforeunload", u), d = !1);
8843
8823
  };
8844
- return a && ii(async () => await d()), Fn(() => {
8824
+ return a && ii(async () => await f()), Fn(() => {
8845
8825
  xn.delete(r), y();
8846
8826
  }), {
8847
8827
  isDirty: l,
8848
8828
  setDirty: i,
8849
8829
  setClean: c,
8850
- checkDirty: d,
8830
+ checkDirty: f,
8851
8831
  enableBrowserWarning: m,
8852
8832
  disableBrowserWarning: y
8853
8833
  };
@@ -8894,10 +8874,10 @@ const om = [
8894
8874
  },
8895
8875
  emits: ["overlayClose"],
8896
8876
  setup(e, { emit: t }) {
8897
- const n = e, o = t, s = Bo(), a = Dt(), r = (g) => g.href ? !!(g.href === a.name || g.href === a.path || a.path.startsWith(g.href + "/")) : !1, l = Xr(), i = Zr(), c = se(() => i.getAppIcon(n.appStore.state.app)), d = se(() => a.meta.hideBrandSelector === !0 ? !1 : n.appStore.state.showBrandSelector), f = () => {
8877
+ const n = e, o = t, s = Bo(), a = Dt(), r = (g) => g.href ? !!(g.href === a.name || g.href === a.path || a.path.startsWith(g.href + "/")) : !1, l = Xr(), i = Zr(), c = se(() => i.getAppIcon(n.appStore.state.app)), f = se(() => a.meta.hideBrandSelector === !0 ? !1 : n.appStore.state.showBrandSelector), d = () => {
8898
8878
  const g = {};
8899
8879
  s["app-selector-bottom"] ? g.bottomSlot = () => ss("div", {}, s["app-selector-bottom"]()) : n.appSelectorSlots.bottomSlot && (g.bottomSlot = n.appSelectorSlots.bottomSlot), s["app-selector-footer"] ? g.footerSlot = () => ss("div", {}, s["app-selector-footer"]()) : n.appSelectorSlots.footerSlot && (g.footerSlot = n.appSelectorSlots.footerSlot), Kt.showRight(lc, g, {
8900
- select: (p) => {
8880
+ select: () => {
8901
8881
  Kt.closeRight();
8902
8882
  }
8903
8883
  });
@@ -8914,7 +8894,7 @@ const om = [
8914
8894
  }, m = se(() => n.mainNavStore.state.hidden ? ["w-0 overflow-hidden"] : [n.mainNavStore.state.collapsed ? "w-[80px]" : "w-[240px]"]), y = se(() => n.mainNavStore.state.hidden ? ["pl-2.5"] : [n.mainNavStore.state.collapsed ? "pl-[80px]" : "pl-[240px]"]);
8915
8895
  return (g, p) => {
8916
8896
  const h = Ue("font-awesome-icon"), x = Ue("router-view");
8917
- return T(), A(Ne, null, [
8897
+ return T(), P(Ne, null, [
8918
8898
  _("div", {
8919
8899
  class: Me([m.value, "fixed inset-y-0 flex transition-all z-100"])
8920
8900
  }, [
@@ -8933,13 +8913,13 @@ const om = [
8933
8913
  class: "size-5"
8934
8914
  }, null, 8, ["icon"])
8935
8915
  ]),
8936
- e.mainNavStore.state.collapsed ? he("", !0) : (T(), A("a", {
8916
+ e.mainNavStore.state.collapsed ? he("", !0) : (T(), P("a", {
8937
8917
  key: 0,
8938
- onClick: p[1] || (p[1] = Je((v) => e.mainNavStore.goto(e.appStore.state.homeRoute), ["prevent"])),
8939
- class: "font-medium text-gray-800 ml-[10px] cursor-pointer"
8918
+ class: "font-medium text-gray-800 ml-[10px] cursor-pointer",
8919
+ onClick: p[1] || (p[1] = Je((v) => e.mainNavStore.goto(e.appStore.state.homeRoute), ["prevent"]))
8940
8920
  }, we(e.appStore.state.app), 1))
8941
8921
  ]),
8942
- (T(!0), A(Ne, null, st(e.mainNavStore.state.menu, (v) => (T(), A("li", {
8922
+ (T(!0), P(Ne, null, st(e.mainNavStore.state.menu, (v) => (T(), P("li", {
8943
8923
  key: v.name,
8944
8924
  class: Me({
8945
8925
  "mt-[10px]": v.children,
@@ -8959,9 +8939,9 @@ const om = [
8959
8939
  icon: ee(Ie)[v.icon],
8960
8940
  class: Me([[(r(v), "text-gray-400")], "size-4"])
8961
8941
  }, null, 8, ["icon", "class"])) : he("", !0),
8962
- e.mainNavStore.state.collapsed ? v?.children ? (T(), A("div", Qd, [...p[6] || (p[6] = [
8942
+ e.mainNavStore.state.collapsed ? v?.children ? (T(), P("div", Qd, [...p[6] || (p[6] = [
8963
8943
  _("div", { class: "w-[10px] h-px bg-gray-400" }, null, -1)
8964
- ])])) : he("", !0) : (T(), A("span", {
8944
+ ])])) : he("", !0) : (T(), P("span", {
8965
8945
  key: 1,
8966
8946
  class: Me({
8967
8947
  "text-[11px]": v?.children,
@@ -8971,8 +8951,8 @@ const om = [
8971
8951
  })
8972
8952
  }, we(v.name), 3))
8973
8953
  ], 10, Jd),
8974
- v.children ? (T(), A("ul", ef, [
8975
- (T(!0), A(Ne, null, st(v.children, (k) => (T(), A("li", {
8954
+ v.children ? (T(), P("ul", ef, [
8955
+ (T(!0), P(Ne, null, st(v.children, (k) => (T(), P("li", {
8976
8956
  key: k.name
8977
8957
  }, [
8978
8958
  _("a", {
@@ -8985,7 +8965,7 @@ const om = [
8985
8965
  icon: ee(Ie)[k.icon],
8986
8966
  class: Me([[(r(k), "text-gray-400")], "size-4"])
8987
8967
  }, null, 8, ["icon", "class"])) : he("", !0),
8988
- e.mainNavStore.state.collapsed ? he("", !0) : (T(), A("span", nf, we(k.name), 1))
8968
+ e.mainNavStore.state.collapsed ? he("", !0) : (T(), P("span", nf, we(k.name), 1))
8989
8969
  ], 10, tf)
8990
8970
  ]))), 128))
8991
8971
  ])) : he("", !0)
@@ -9025,12 +9005,12 @@ const om = [
9025
9005
  ])
9026
9006
  ]),
9027
9007
  Xe(g.$slots, "header-center", {}, () => [
9028
- d.value ? (T(), A("div", {
9008
+ f.value ? (T(), P("div", {
9029
9009
  key: 0,
9030
9010
  class: "absolute left-1/2 -translate-x-1/2 cursor-pointer h-9 flex items-center",
9031
9011
  onClick: u
9032
9012
  }, [
9033
- ee(l).currentBrand ? (T(), A("img", {
9013
+ ee(l).currentBrand ? (T(), P("img", {
9034
9014
  key: 0,
9035
9015
  src: ee(l).currentBrand.logo,
9036
9016
  alt: "",
@@ -9040,11 +9020,11 @@ const om = [
9040
9020
  ]),
9041
9021
  _("div", uf, [
9042
9022
  Xe(g.$slots, "header-right", {}, () => [
9043
- e.appStore.state.showAppSelector ? (T(), A("button", {
9023
+ e.appStore.state.showAppSelector ? (T(), P("button", {
9044
9024
  key: 0,
9045
9025
  class: "rounded-sm bg-white w-[42px] h-[42px] ring-1 ring-inset ring-gray-300",
9046
9026
  type: "button",
9047
- onClick: f
9027
+ onClick: d
9048
9028
  }, [
9049
9029
  te(h, {
9050
9030
  icon: ee(Ie).farGripDotsVertical,
@@ -9077,7 +9057,7 @@ const om = [
9077
9057
  }, ff = {}, pf = { class: "h-full" };
9078
9058
  function mf(e, t) {
9079
9059
  const n = Ue("router-view");
9080
- return T(), A("main", pf, [
9060
+ return T(), P("main", pf, [
9081
9061
  te(n)
9082
9062
  ]);
9083
9063
  }
@@ -9112,31 +9092,31 @@ const rm = /* @__PURE__ */ an(ff, [["render", mf]]), gf = { class: "h-full grid
9112
9092
  r.value = !0, l.value = "";
9113
9093
  try {
9114
9094
  await s.login(c);
9115
- const d = n.query.redirect;
9116
- if (d) {
9117
- if (d.startsWith("http")) {
9118
- window.location.href = d;
9095
+ const f = n.query.redirect;
9096
+ if (f) {
9097
+ if (f.startsWith("http")) {
9098
+ window.location.href = f;
9119
9099
  return;
9120
9100
  }
9121
- await t.push(d);
9101
+ await t.push(f);
9122
9102
  } else
9123
9103
  await t.push(a.defaultRedirect);
9124
- } catch (d) {
9125
- l.value = d.response?.data?.message || d.message || "Login failed. Please try again.";
9104
+ } catch (f) {
9105
+ l.value = f.response?.data?.message || f.message || "Login failed. Please try again.";
9126
9106
  } finally {
9127
9107
  r.value = !1;
9128
9108
  }
9129
9109
  };
9130
- return (c, d) => {
9131
- const f = Ue("FormKit"), u = Ue("router-link");
9132
- return T(), A("div", gf, [
9110
+ return (c, f) => {
9111
+ const d = Ue("FormKit"), u = Ue("router-link");
9112
+ return T(), P("div", gf, [
9133
9113
  _("div", hf, [
9134
- a.logo ? (T(), A("img", {
9114
+ a.logo ? (T(), P("img", {
9135
9115
  key: 0,
9136
9116
  src: a.logo,
9137
9117
  alt: "Logo",
9138
9118
  class: "h-[23px] w-auto"
9139
- }, null, 8, vf)) : (T(), A("svg", yf, [...d[0] || (d[0] = [
9119
+ }, null, 8, vf)) : (T(), P("svg", yf, [...f[0] || (f[0] = [
9140
9120
  _("path", {
9141
9121
  d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
9142
9122
  fill: "#1C64F2"
@@ -9157,16 +9137,16 @@ const rm = /* @__PURE__ */ an(ff, [["render", mf]]), gf = { class: "h-full grid
9157
9137
  ]),
9158
9138
  _("div", bf, [
9159
9139
  _("div", xf, [
9160
- d[1] || (d[1] = _("h1", { class: "text-4xl text-gray-900 semibold tracking-tight mb-3" }, "Log in", -1)),
9140
+ f[1] || (f[1] = _("h1", { class: "text-4xl text-gray-900 semibold tracking-tight mb-3" }, "Log in", -1)),
9161
9141
  _("p", wf, " Welcome back" + we(ee(o).state.app ? ` to ${ee(o).state.app}` : "") + "! Please enter your details. ", 1)
9162
9142
  ]),
9163
- te(f, {
9143
+ te(d, {
9164
9144
  type: "form",
9165
- onSubmit: i,
9166
- actions: !1
9145
+ actions: !1,
9146
+ onSubmit: i
9167
9147
  }, {
9168
9148
  default: xe(() => [
9169
- te(f, {
9149
+ te(d, {
9170
9150
  label: "Email",
9171
9151
  name: "email",
9172
9152
  placeholder: "Enter your email",
@@ -9175,7 +9155,7 @@ const rm = /* @__PURE__ */ an(ff, [["render", mf]]), gf = { class: "h-full grid
9175
9155
  "outer-class": "max-w-full",
9176
9156
  value: ee(s).state.devCredentials.username
9177
9157
  }, null, 8, ["value"]),
9178
- te(f, {
9158
+ te(d, {
9179
9159
  label: "Password",
9180
9160
  name: "password",
9181
9161
  placeholder: "••••••••",
@@ -9185,18 +9165,18 @@ const rm = /* @__PURE__ */ an(ff, [["render", mf]]), gf = { class: "h-full grid
9185
9165
  value: ee(s).state.devCredentials.password
9186
9166
  }, null, 8, ["value"]),
9187
9167
  _("div", Sf, [
9188
- d[3] || (d[3] = _("span", null, null, -1)),
9168
+ f[3] || (f[3] = _("span", null, null, -1)),
9189
9169
  te(u, {
9190
9170
  to: a.forgotPasswordRoute,
9191
9171
  class: "text-sm text-primary-600 font-semibold"
9192
9172
  }, {
9193
- default: xe(() => [...d[2] || (d[2] = [
9173
+ default: xe(() => [...f[2] || (f[2] = [
9194
9174
  qe(" Forgot password ", -1)
9195
9175
  ])]),
9196
9176
  _: 1
9197
9177
  }, 8, ["to"])
9198
9178
  ]),
9199
- l.value ? (T(), A("div", kf, we(l.value), 1)) : he("", !0),
9179
+ l.value ? (T(), P("div", kf, we(l.value), 1)) : he("", !0),
9200
9180
  te(ee(mt), {
9201
9181
  type: "submit",
9202
9182
  size: "xl",
@@ -9204,7 +9184,7 @@ const rm = /* @__PURE__ */ an(ff, [["render", mf]]), gf = { class: "h-full grid
9204
9184
  "button-class": "w-full mb-2"
9205
9185
  }, {
9206
9186
  default: xe(() => [
9207
- r.value ? (T(), A("span", Tf, "Signing in...")) : (T(), A("span", Ef, "Sign in"))
9187
+ r.value ? (T(), P("span", Tf, "Signing in...")) : (T(), P("span", Ef, "Sign in"))
9208
9188
  ]),
9209
9189
  _: 1
9210
9190
  }, 8, ["disabled"])
@@ -9229,7 +9209,7 @@ const rm = /* @__PURE__ */ an(ff, [["render", mf]]), gf = { class: "h-full grid
9229
9209
  await o.logout();
9230
9210
  const a = n.query.redirect;
9231
9211
  a && a.startsWith("http") ? window.location.href = a : await t.push(a || s.defaultRedirect);
9232
- }), (a, r) => null;
9212
+ }), (a, r) => (T(), P("span"));
9233
9213
  }
9234
9214
  }, $f = { class: "h-full grid place-content-center relative" }, Mf = { class: "absolute top-8 left-8" }, Lf = ["src"], Of = {
9235
9215
  key: 1,
@@ -9268,15 +9248,15 @@ const rm = /* @__PURE__ */ an(ff, [["render", mf]]), gf = { class: "h-full grid
9268
9248
  }
9269
9249
  };
9270
9250
  return (l, i) => {
9271
- const c = Ue("FormKit"), d = Ue("router-link");
9272
- return T(), A("div", $f, [
9251
+ const c = Ue("FormKit"), f = Ue("router-link");
9252
+ return T(), P("div", $f, [
9273
9253
  _("div", Mf, [
9274
- n.logo ? (T(), A("img", {
9254
+ n.logo ? (T(), P("img", {
9275
9255
  key: 0,
9276
9256
  src: n.logo,
9277
9257
  alt: "Logo",
9278
9258
  class: "h-[23px] w-auto"
9279
- }, null, 8, Lf)) : (T(), A("svg", Of, [...i[0] || (i[0] = [
9259
+ }, null, 8, Lf)) : (T(), P("svg", Of, [...i[0] || (i[0] = [
9280
9260
  _("path", {
9281
9261
  d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
9282
9262
  fill: "#1C64F2"
@@ -9302,8 +9282,8 @@ const rm = /* @__PURE__ */ an(ff, [["render", mf]]), gf = { class: "h-full grid
9302
9282
  ], -1)),
9303
9283
  te(c, {
9304
9284
  type: "form",
9305
- onSubmit: r,
9306
- actions: !1
9285
+ actions: !1,
9286
+ onSubmit: r
9307
9287
  }, {
9308
9288
  default: xe(() => [
9309
9289
  te(c, {
@@ -9314,8 +9294,8 @@ const rm = /* @__PURE__ */ an(ff, [["render", mf]]), gf = { class: "h-full grid
9314
9294
  validation: "required|email",
9315
9295
  "outer-class": "max-w-full"
9316
9296
  }),
9317
- s.value ? (T(), A("div", Af, we(s.value), 1)) : he("", !0),
9318
- a.value ? (T(), A("div", Rf, we(a.value), 1)) : he("", !0),
9297
+ s.value ? (T(), P("div", Af, we(s.value), 1)) : he("", !0),
9298
+ a.value ? (T(), P("div", Rf, we(a.value), 1)) : he("", !0),
9319
9299
  te(ee(mt), {
9320
9300
  type: "submit",
9321
9301
  size: "xl",
@@ -9323,11 +9303,11 @@ const rm = /* @__PURE__ */ an(ff, [["render", mf]]), gf = { class: "h-full grid
9323
9303
  "button-class": "w-full mb-2"
9324
9304
  }, {
9325
9305
  default: xe(() => [
9326
- o.value ? (T(), A("span", If, "Sending...")) : (T(), A("span", Ff, "Send reset link"))
9306
+ o.value ? (T(), P("span", If, "Sending...")) : (T(), P("span", Ff, "Send reset link"))
9327
9307
  ]),
9328
9308
  _: 1
9329
9309
  }, 8, ["disabled"]),
9330
- te(d, {
9310
+ te(f, {
9331
9311
  to: n.loginRoute,
9332
9312
  class: "text-sm text-center text-primary-600 font-semibold block"
9333
9313
  }, {
@@ -9375,22 +9355,22 @@ const rm = /* @__PURE__ */ an(ff, [["render", mf]]), gf = { class: "h-full grid
9375
9355
  password: i,
9376
9356
  password_confirmation: c
9377
9357
  }), await t.push(s.loginRoute);
9378
- } catch (d) {
9379
- r.value = d.response?.data?.message || "Failed to reset password.";
9358
+ } catch (f) {
9359
+ r.value = f.response?.data?.message || "Failed to reset password.";
9380
9360
  } finally {
9381
9361
  a.value = !1;
9382
9362
  }
9383
9363
  };
9384
9364
  return (i, c) => {
9385
- const d = Ue("FormKit");
9386
- return T(), A("div", jf, [
9365
+ const f = Ue("FormKit");
9366
+ return T(), P("div", jf, [
9387
9367
  _("div", Hf, [
9388
- s.logo ? (T(), A("img", {
9368
+ s.logo ? (T(), P("img", {
9389
9369
  key: 0,
9390
9370
  src: s.logo,
9391
9371
  alt: "Logo",
9392
9372
  class: "h-[23px] w-auto"
9393
- }, null, 8, Vf)) : (T(), A("svg", zf, [...c[0] || (c[0] = [
9373
+ }, null, 8, Vf)) : (T(), P("svg", zf, [...c[0] || (c[0] = [
9394
9374
  _("path", {
9395
9375
  d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
9396
9376
  fill: "#1C64F2"
@@ -9412,15 +9392,15 @@ const rm = /* @__PURE__ */ an(ff, [["render", mf]]), gf = { class: "h-full grid
9412
9392
  _("div", Nf, [
9413
9393
  c[1] || (c[1] = _("div", { class: "mb-7" }, [
9414
9394
  _("h1", { class: "text-4xl text-gray-900 semibold tracking-tight mb-3" }, "Set new password"),
9415
- _("p", { class: "text-gray-600" }, " Enter your new password below. ")
9395
+ _("p", { class: "text-gray-600" }, "Enter your new password below.")
9416
9396
  ], -1)),
9417
- te(d, {
9397
+ te(f, {
9418
9398
  type: "form",
9419
- onSubmit: l,
9420
- actions: !1
9399
+ actions: !1,
9400
+ onSubmit: l
9421
9401
  }, {
9422
9402
  default: xe(() => [
9423
- te(d, {
9403
+ te(f, {
9424
9404
  label: "New Password",
9425
9405
  name: "password",
9426
9406
  placeholder: "••••••••",
@@ -9428,7 +9408,7 @@ const rm = /* @__PURE__ */ an(ff, [["render", mf]]), gf = { class: "h-full grid
9428
9408
  validation: "required|length:8",
9429
9409
  "outer-class": "max-w-full"
9430
9410
  }),
9431
- te(d, {
9411
+ te(f, {
9432
9412
  label: "Confirm Password",
9433
9413
  name: "password_confirmation",
9434
9414
  placeholder: "••••••••",
@@ -9436,7 +9416,7 @@ const rm = /* @__PURE__ */ an(ff, [["render", mf]]), gf = { class: "h-full grid
9436
9416
  validation: "required|confirm:password",
9437
9417
  "outer-class": "max-w-full"
9438
9418
  }),
9439
- r.value ? (T(), A("div", Bf, we(r.value), 1)) : he("", !0),
9419
+ r.value ? (T(), P("div", Bf, we(r.value), 1)) : he("", !0),
9440
9420
  te(ee(mt), {
9441
9421
  type: "submit",
9442
9422
  size: "xl",
@@ -9444,7 +9424,7 @@ const rm = /* @__PURE__ */ an(ff, [["render", mf]]), gf = { class: "h-full grid
9444
9424
  "button-class": "w-full mb-2"
9445
9425
  }, {
9446
9426
  default: xe(() => [
9447
- a.value ? (T(), A("span", Wf, "Resetting...")) : (T(), A("span", qf, "Reset password"))
9427
+ a.value ? (T(), P("span", Wf, "Resetting...")) : (T(), P("span", qf, "Reset password"))
9448
9428
  ]),
9449
9429
  _: 1
9450
9430
  }, 8, ["disabled"])
@@ -9478,14 +9458,14 @@ const rm = /* @__PURE__ */ an(ff, [["render", mf]]), gf = { class: "h-full grid
9478
9458
  const t = Tt(), n = e, o = () => {
9479
9459
  t.push(n.homeRoute);
9480
9460
  };
9481
- return (s, a) => (T(), A("div", Zf, [
9461
+ return (s, a) => (T(), P("div", Zf, [
9482
9462
  _("div", Gf, [
9483
- n.logo ? (T(), A("img", {
9463
+ n.logo ? (T(), P("img", {
9484
9464
  key: 0,
9485
9465
  src: n.logo,
9486
9466
  alt: "Logo",
9487
9467
  class: "h-[23px] w-auto"
9488
- }, null, 8, Yf)) : (T(), A("svg", Xf, [...a[0] || (a[0] = [
9468
+ }, null, 8, Yf)) : (T(), P("svg", Xf, [...a[0] || (a[0] = [
9489
9469
  _("path", {
9490
9470
  d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
9491
9471
  fill: "#1C64F2"
@@ -9507,7 +9487,7 @@ const rm = /* @__PURE__ */ an(ff, [["render", mf]]), gf = { class: "h-full grid
9507
9487
  _("div", Kf, [
9508
9488
  a[2] || (a[2] = _("div", null, [
9509
9489
  _("div", { class: "text-primary-600 text-7xl font-bold mb-4" }, "403"),
9510
- _("h1", { class: "text-3xl text-gray-900 font-semibold tracking-tight mb-3" }, " Access Forbidden "),
9490
+ _("h1", { class: "text-3xl text-gray-900 font-semibold tracking-tight mb-3" }, "Access Forbidden"),
9511
9491
  _("p", { class: "text-gray-600" }, [
9512
9492
  qe(" You don't have permission to access this resource."),
9513
9493
  _("br"),
@@ -9516,8 +9496,8 @@ const rm = /* @__PURE__ */ an(ff, [["render", mf]]), gf = { class: "h-full grid
9516
9496
  ], -1)),
9517
9497
  _("div", Jf, [
9518
9498
  te(ee(mt), {
9519
- onClick: o,
9520
- size: "lg"
9499
+ size: "lg",
9500
+ onClick: o
9521
9501
  }, {
9522
9502
  default: xe(() => [...a[1] || (a[1] = [
9523
9503
  qe(" Go to Home ", -1)
@@ -9551,14 +9531,14 @@ const rm = /* @__PURE__ */ an(ff, [["render", mf]]), gf = { class: "h-full grid
9551
9531
  const t = Tt(), n = e, o = () => {
9552
9532
  t.push(n.homeRoute);
9553
9533
  };
9554
- return (s, a) => (T(), A("div", ep, [
9534
+ return (s, a) => (T(), P("div", ep, [
9555
9535
  _("div", tp, [
9556
- n.logo ? (T(), A("img", {
9536
+ n.logo ? (T(), P("img", {
9557
9537
  key: 0,
9558
9538
  src: n.logo,
9559
9539
  alt: "Logo",
9560
9540
  class: "h-[23px] w-auto"
9561
- }, null, 8, np)) : (T(), A("svg", op, [...a[0] || (a[0] = [
9541
+ }, null, 8, np)) : (T(), P("svg", op, [...a[0] || (a[0] = [
9562
9542
  _("path", {
9563
9543
  d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
9564
9544
  fill: "#1C64F2"
@@ -9580,13 +9560,13 @@ const rm = /* @__PURE__ */ an(ff, [["render", mf]]), gf = { class: "h-full grid
9580
9560
  _("div", sp, [
9581
9561
  a[2] || (a[2] = _("div", null, [
9582
9562
  _("div", { class: "text-primary-600 text-7xl font-bold mb-4" }, "404"),
9583
- _("h1", { class: "text-3xl text-gray-900 font-semibold tracking-tight mb-3" }, " Page Not Found "),
9584
- _("p", { class: "text-gray-600" }, " The page you're looking for doesn't exist or has been moved. ")
9563
+ _("h1", { class: "text-3xl text-gray-900 font-semibold tracking-tight mb-3" }, "Page Not Found"),
9564
+ _("p", { class: "text-gray-600" }, "The page you're looking for doesn't exist or has been moved.")
9585
9565
  ], -1)),
9586
9566
  _("div", rp, [
9587
9567
  te(ee(mt), {
9588
- onClick: o,
9589
- size: "lg"
9568
+ size: "lg",
9569
+ onClick: o
9590
9570
  }, {
9591
9571
  default: xe(() => [...a[1] || (a[1] = [
9592
9572
  qe(" Go to Home ", -1)
@@ -9632,14 +9612,14 @@ const rm = /* @__PURE__ */ an(ff, [["render", mf]]), gf = { class: "h-full grid
9632
9612
  const t = Tt(), n = e, o = () => {
9633
9613
  t.push(n.homeRoute);
9634
9614
  };
9635
- return (s, a) => (T(), A("div", ip, [
9615
+ return (s, a) => (T(), P("div", ip, [
9636
9616
  _("div", lp, [
9637
- n.logo ? (T(), A("img", {
9617
+ n.logo ? (T(), P("img", {
9638
9618
  key: 0,
9639
9619
  src: n.logo,
9640
9620
  alt: "Logo",
9641
9621
  class: "h-[23px] w-auto"
9642
- }, null, 8, cp)) : (T(), A("svg", up, [...a[0] || (a[0] = [
9622
+ }, null, 8, cp)) : (T(), P("svg", up, [...a[0] || (a[0] = [
9643
9623
  _("path", {
9644
9624
  d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
9645
9625
  fill: "#1C64F2"
@@ -9666,8 +9646,8 @@ const rm = /* @__PURE__ */ an(ff, [["render", mf]]), gf = { class: "h-full grid
9666
9646
  ]),
9667
9647
  _("div", gp, [
9668
9648
  te(ee(mt), {
9669
- onClick: o,
9670
- size: "lg"
9649
+ size: "lg",
9650
+ onClick: o
9671
9651
  }, {
9672
9652
  default: xe(() => [...a[1] || (a[1] = [
9673
9653
  qe(" Go to Home ", -1)
@@ -9765,11 +9745,7 @@ function hp(e, t, n, o) {
9765
9745
  }
9766
9746
  }
9767
9747
  function cm(e = {}) {
9768
- const {
9769
- forbiddenPath: t = "/error/403",
9770
- logo: n = "",
9771
- homeRoute: o = "/dashboard"
9772
- } = e;
9748
+ const { forbiddenPath: t = "/error/403", logo: n = "", homeRoute: o = "/dashboard" } = e;
9773
9749
  return {
9774
9750
  path: t,
9775
9751
  name: "error-403",
@@ -9779,10 +9755,7 @@ function cm(e = {}) {
9779
9755
  };
9780
9756
  }
9781
9757
  function um(e = {}) {
9782
- const {
9783
- logo: t = "",
9784
- homeRoute: n = "/dashboard"
9785
- } = e;
9758
+ const { logo: t = "", homeRoute: n = "/dashboard" } = e;
9786
9759
  return {
9787
9760
  path: "/:pathMatch(.*)*",
9788
9761
  name: "error-404",
@@ -9828,20 +9801,20 @@ const pm = In("sparkNav", () => {
9828
9801
  hidden: !1
9829
9802
  }), t = Tt(), n = Dt(), o = (c = []) => {
9830
9803
  e.menu = c, i();
9831
- }, s = (c, d) => {
9832
- for (const f of c) {
9833
- if (f.href === d) return f;
9834
- if (f.children) {
9835
- const u = s(f.children, d);
9804
+ }, s = (c, f) => {
9805
+ for (const d of c) {
9806
+ if (d.href === f) return d;
9807
+ if (d.children) {
9808
+ const u = s(d.children, f);
9836
9809
  if (u) return u;
9837
9810
  }
9838
9811
  }
9839
9812
  return null;
9840
9813
  }, a = async (c) => {
9841
9814
  if (c) {
9842
- const d = s(e.menu, c);
9843
- if (d && typeof d.action == "function") {
9844
- d.action();
9815
+ const f = s(e.menu, c);
9816
+ if (f && typeof f.action == "function") {
9817
+ f.action();
9845
9818
  return;
9846
9819
  }
9847
9820
  await t.push(c);
@@ -9853,12 +9826,12 @@ const pm = In("sparkNav", () => {
9853
9826
  }, i = () => {
9854
9827
  const c = n.name || n.path.replace("/", "");
9855
9828
  if (c) {
9856
- const d = (f) => {
9857
- f.forEach((u) => {
9858
- u.current = u.href === c, u.children && d(u.children);
9829
+ const f = (d) => {
9830
+ d.forEach((u) => {
9831
+ u.current = u.href === c, u.children && f(u.children);
9859
9832
  });
9860
9833
  };
9861
- d(e.menu);
9834
+ f(e.menu);
9862
9835
  }
9863
9836
  };
9864
9837
  return et(