@eodash/eodash 5.0.0-alpha.2.15 → 5.0.0-alpha.2.17

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 (54) hide show
  1. package/README.md +1 -1
  2. package/core/client/composables/EodashMap.js +296 -0
  3. package/core/client/composables/index.js +15 -4
  4. package/core/client/eodash.js +7 -2
  5. package/core/client/plugins/axios.js +8 -0
  6. package/core/client/store/Actions.js +32 -11
  7. package/core/client/store/States.js +8 -1
  8. package/core/client/store/stac.js +59 -6
  9. package/core/client/types.d.ts +6 -2
  10. package/core/client/utils/createLayers.js +187 -49
  11. package/core/client/utils/eodashSTAC.js +147 -31
  12. package/core/client/utils/helpers.js +259 -13
  13. package/core/client/utils/states.js +17 -0
  14. package/dist/client/{DashboardLayout-DQE4aB6e.js → DashboardLayout-BR1lU9ER.js} +2 -2
  15. package/dist/client/{DynamicWebComponent-TrDsJuF8.js → DynamicWebComponent-7z8VFsrZ.js} +1 -1
  16. package/dist/client/EodashDatePicker-o7ZOYIHL.js +259 -0
  17. package/dist/client/EodashItemFilter-lNjVkidr.js +7651 -0
  18. package/dist/client/EodashLayerControl-B0N8_XmX.js +24485 -0
  19. package/dist/client/{EodashMap--2y6XErO.js → EodashMap-DFT2R2Rk.js} +22298 -24006
  20. package/dist/client/{EodashMapBtns-BSf3iUAb.js → EodashMapBtns-CoGjVl8Y.js} +2 -2
  21. package/dist/client/{ExportState-BTONkMIz.js → ExportState-Dwv37MRw.js} +171 -158
  22. package/dist/client/{Footer-B7JDXdxT.js → Footer-DuScuHSx.js} +59 -57
  23. package/dist/client/{Header-Dlumetq0.js → Header-C4Y0u0E5.js} +70 -70
  24. package/dist/client/{IframeWrapper-DRjSqhFx.js → IframeWrapper-D1TfK4xH.js} +1 -1
  25. package/dist/client/{MobileLayout-9z2X_rmU.js → MobileLayout-C-b8DIFO.js} +43 -41
  26. package/dist/client/{PopUp-CXbMBYGh.js → PopUp-DBMZX3l3.js} +5 -5
  27. package/dist/client/{VImg-Dgk5tryv.js → VImg-bAMQHnMM.js} +33 -31
  28. package/dist/client/VMain-Df5VMG9r.js +38 -0
  29. package/dist/client/VOverlay-D5GzAYRY.js +973 -0
  30. package/dist/client/{WidgetsContainer-CHK_3dlD.js → WidgetsContainer-yZDmY6_u.js} +1 -1
  31. package/dist/client/asWebComponent-DhR2_xlP.js +24492 -0
  32. package/dist/client/eo-dash.js +1 -1
  33. package/dist/client/{forwardRefs-OX_5lLJW.js → forwardRefs-C0MQxvur.js} +1 -1
  34. package/dist/client/{index-B_KfD-iF.js → index-qNWeBhRh.js} +23 -23
  35. package/dist/client/{lerc-B4lXefGh-CplqAh1B.js → lerc-B4lXefGh-CsL-d8wY.js} +1 -1
  36. package/dist/client/{ssrBoot-BZTPJZkq.js → ssrBoot-Xmkz8T49.js} +1 -1
  37. package/dist/client/style.css +2 -2
  38. package/dist/client/{transition-Dq8XIV_D.js → transition-DRzZPWIN.js} +1 -1
  39. package/dist/client/{webfontloader-qotgY98I.js → webfontloader-CqD-lAx-.js} +1 -1
  40. package/dist/node/cli.js +1 -1
  41. package/package.json +27 -22
  42. package/widgets/EodashDatePicker.vue +104 -100
  43. package/widgets/EodashItemFilter.vue +2 -0
  44. package/widgets/EodashLayerControl.vue +69 -2
  45. package/widgets/EodashMap.vue +31 -214
  46. package/widgets/ExportState.vue +12 -9
  47. package/dist/client/EodashDatePicker-CkA9rHp6.js +0 -252
  48. package/dist/client/EodashItemFilter-Bp0lcvbI.js +0 -10121
  49. package/dist/client/EodashLayerControl-lfLYqyeU.js +0 -20963
  50. package/dist/client/VMain-Ubv9jyyL.js +0 -39
  51. package/dist/client/VOverlay-CqZC2CbA.js +0 -972
  52. package/dist/client/_commonjsHelpers-DaMA6jEr.js +0 -8
  53. package/dist/client/asWebComponent-Ddg71BJk.js +0 -20451
  54. package/dist/client/helpers-BCawTwFg.js +0 -1390
@@ -1,9 +1,9 @@
1
- import { k as Ie, p as R, o as Pe, m as Xe, g as $, u as Ye, r as I, c as y, a as M, V as G, b as v, F as O, d as z, e as ie, f as ue, h as Ge, i as De, j as pe, l as Ue, n as Be, s as E, w as Ee, q as je, t as q, v as Ne, x as re, y as ze, z as qe, A as Ke, B as le, C as ae, D as Qe, I as fe, E as Je, G as Ze, H as et, J as me, K as tt, L as he, M as ge, N as nt, O as ot, P as st, Q as lt, R as W, S as at, T as it, _ as ut, U as rt, W as ct, X as be, Y as dt, Z as vt, $ as C, a0 as A, a1 as F, a2 as ye, a3 as X, a4 as Se, a5 as se, a6 as Y, a7 as we, a8 as xe, a9 as ft, aa as mt } from "./asWebComponent-Ddg71BJk.js";
2
- import { f as ht, a as gt, s as bt, m as yt, u as St, b as wt } from "./forwardRefs-OX_5lLJW.js";
3
- import { u as xt } from "./ssrBoot-BZTPJZkq.js";
4
- import { M as kt } from "./transition-Dq8XIV_D.js";
5
- import { V as ke } from "./index-B_KfD-iF.js";
6
- import { V as Tt } from "./VMain-Ubv9jyyL.js";
1
+ import { k as Ie, p as R, o as Pe, m as Xe, g as $, u as Ye, r as I, c as y, a as M, V as G, b as v, F as O, d as z, e as re, f as ce, h as Ge, i as De, j as pe, l as Ue, n as Be, s as E, w as Ee, q as je, t as q, v as Ne, x as de, y as ze, z as qe, A as Ke, B as ie, C as ue, D as Qe, I as fe, E as Je, G as Ze, H as et, J as me, K as tt, L as he, M as ge, N as nt, O as ot, P as st, Q as lt, R as W, S as at, T as it, _ as ut, U as rt, W as ct, X as be, Y as dt, Z as vt, $ as C, a0 as A, a1 as F, a2 as ye, a3 as X, a4 as Se, a5 as ae, a6 as Y, a7 as we, a8 as xe, a9 as ft, aa as mt } from "./asWebComponent-DhR2_xlP.js";
2
+ import { f as ht, a as gt, s as bt, m as yt, u as St, b as wt } from "./forwardRefs-C0MQxvur.js";
3
+ import { u as xt } from "./ssrBoot-Xmkz8T49.js";
4
+ import { M as kt } from "./transition-DRzZPWIN.js";
5
+ import { V as ke } from "./index-qNWeBhRh.js";
6
+ import { V as Tt } from "./VMain-Df5VMG9r.js";
7
7
  const Vt = (e) => {
8
8
  const {
9
9
  touchstartX: n,
@@ -80,7 +80,7 @@ function Bt(e, n) {
80
80
  const We = {
81
81
  mounted: pt,
82
82
  unmounted: Bt
83
- }, Et = We, ce = Symbol.for("vuetify:v-tabs"), zt = R({
83
+ }, Et = We, ve = Symbol.for("vuetify:v-tabs"), zt = R({
84
84
  fixed: Boolean,
85
85
  sliderColor: String,
86
86
  hideSlider: Boolean,
@@ -125,7 +125,7 @@ const We = {
125
125
  return M(() => {
126
126
  const m = G.filterProps(e);
127
127
  return v(G, z({
128
- symbol: ce,
128
+ symbol: ve,
129
129
  ref: o,
130
130
  class: ["v-tab", e.class],
131
131
  style: e.style,
@@ -181,8 +181,8 @@ const We = {
181
181
  type: [Boolean, String],
182
182
  default: "force"
183
183
  },
184
- ...ie(),
185
- ...ue(),
184
+ ...re(),
185
+ ...ce(),
186
186
  ...Ge()
187
187
  }, "VWindow"), Te = $()({
188
188
  name: "VWindow",
@@ -295,7 +295,7 @@ const We = {
295
295
  let {
296
296
  slots: s
297
297
  } = n;
298
- const t = re(ce, null), l = ze(e, "modelValue"), u = y({
298
+ const t = de(ve, null), l = ze(e, "modelValue"), u = y({
299
299
  get() {
300
300
  return l.value != null || !t ? l.value : t.items.value.find((o) => t.selected.value.includes(o.id))?.value;
301
301
  },
@@ -326,7 +326,7 @@ const We = {
326
326
  type: [Boolean, String],
327
327
  default: void 0
328
328
  },
329
- ...ie(),
329
+ ...re(),
330
330
  ...qe(),
331
331
  ...yt()
332
332
  }, "VWindowItem"), Ve = $()({
@@ -342,7 +342,7 @@ const We = {
342
342
  let {
343
343
  slots: s
344
344
  } = n;
345
- const t = re($e), l = Ke(e, Me), {
345
+ const t = de($e), l = Ke(e, Me), {
346
346
  isBooted: u
347
347
  } = xt();
348
348
  if (!t || !l) throw new Error("[Vuetify] VWindowItem must be used inside VWindow");
@@ -351,14 +351,14 @@ const We = {
351
351
  !o.value || !t || (o.value = !1, t.transitionCount.value > 0 && (t.transitionCount.value -= 1, t.transitionCount.value === 0 && (t.transitionHeight.value = void 0)));
352
352
  }
353
353
  function h() {
354
- o.value || !t || (o.value = !0, t.transitionCount.value === 0 && (t.transitionHeight.value = ae(t.rootRef.value?.clientHeight)), t.transitionCount.value += 1);
354
+ o.value || !t || (o.value = !0, t.transitionCount.value === 0 && (t.transitionHeight.value = ue(t.rootRef.value?.clientHeight)), t.transitionCount.value += 1);
355
355
  }
356
356
  function x() {
357
357
  r();
358
358
  }
359
359
  function m(d) {
360
360
  o.value && Qe(() => {
361
- !f.value || !o.value || !t || (t.transitionHeight.value = ae(d.clientHeight));
361
+ !f.value || !o.value || !t || (t.transitionHeight.value = ue(d.clientHeight));
362
362
  });
363
363
  }
364
364
  const a = y(() => {
@@ -383,7 +383,7 @@ const We = {
383
383
  default: () => [q(v("div", {
384
384
  class: ["v-window-item", l.selectedClass.value, e.class],
385
385
  style: e.style
386
- }, [g.value && s.default?.()]), [[le, l.isSelected.value]])]
386
+ }, [g.value && s.default?.()]), [[ie, l.isSelected.value]])]
387
387
  })), {
388
388
  groupItem: l
389
389
  };
@@ -471,11 +471,11 @@ const Ot = Symbol.for("vuetify:v-slide-group"), Le = R({
471
471
  type: [Boolean, String],
472
472
  validator: (e) => typeof e == "boolean" || ["always", "desktop", "mobile"].includes(e)
473
473
  },
474
- ...ie(),
474
+ ...re(),
475
475
  ...Je({
476
476
  mobile: null
477
477
  }),
478
- ...ue(),
478
+ ...ce(),
479
479
  ...Ze({
480
480
  selectedClass: "v-slide-group-item--active"
481
481
  })
@@ -541,10 +541,10 @@ const Ot = Symbol.for("vuetify:v-slide-group"), Le = R({
541
541
  Math.abs(i - w) < 16)) {
542
542
  if (m.value && t.value && a.el) {
543
543
  const {
544
- scrollWidth: ne,
545
- offsetWidth: oe
544
+ scrollWidth: se,
545
+ offsetWidth: le
546
546
  } = a.el;
547
- i = ne - oe - i;
547
+ i = se - le - i;
548
548
  }
549
549
  m.value ? T.horizontal(i, V.value) : T(i, V.value);
550
550
  }
@@ -599,15 +599,15 @@ const Ot = Symbol.for("vuetify:v-slide-group"), Le = R({
599
599
  }
600
600
  function J(i) {
601
601
  const c = m.value && t.value ? -1 : 1, w = (i === "prev" ? -c : c) * h.value;
602
- let te = r.value + w;
602
+ let oe = r.value + w;
603
603
  if (m.value && t.value && a.el) {
604
604
  const {
605
- scrollWidth: ne,
606
- offsetWidth: oe
605
+ scrollWidth: se,
606
+ offsetWidth: le
607
607
  } = a.el;
608
- te += ne - oe;
608
+ oe += se - le;
609
609
  }
610
- k(te);
610
+ k(oe);
611
611
  }
612
612
  const Z = y(() => ({
613
613
  next: o.next,
@@ -627,7 +627,7 @@ const Ot = Symbol.for("vuetify:v-slide-group"), Le = R({
627
627
  default:
628
628
  return !u.value && (f.value || Math.abs(r.value) > 0);
629
629
  }
630
- }), de = y(() => Math.abs(r.value) > 1), ve = y(() => {
630
+ }), te = y(() => Math.abs(r.value) > 1), ne = y(() => {
631
631
  if (!a.value) return !1;
632
632
  const i = Ce(m.value, a.el), c = Ft(m.value, a.el);
633
633
  return i - c - Math.abs(r.value) > 1;
@@ -645,10 +645,10 @@ const Ot = Symbol.for("vuetify:v-slide-group"), Le = R({
645
645
  default: () => [ee.value && v("div", {
646
646
  key: "prev",
647
647
  class: ["v-slide-group__prev", {
648
- "v-slide-group__prev--disabled": !de.value
648
+ "v-slide-group__prev--disabled": !te.value
649
649
  }],
650
650
  onMousedown: j,
651
- onClick: () => de.value && J("prev")
651
+ onClick: () => te.value && J("prev")
652
652
  }, [s.prev?.(Z.value) ?? v(ke, null, {
653
653
  default: () => [v(ge, {
654
654
  icon: t.value ? e.nextIcon : e.prevIcon
@@ -667,10 +667,10 @@ const Ot = Symbol.for("vuetify:v-slide-group"), Le = R({
667
667
  }, [s.default?.(Z.value)])]), ee.value && v("div", {
668
668
  key: "next",
669
669
  class: ["v-slide-group__next", {
670
- "v-slide-group__next--disabled": !ve.value
670
+ "v-slide-group__next--disabled": !ne.value
671
671
  }],
672
672
  onMousedown: j,
673
- onClick: () => ve.value && J("next")
673
+ onClick: () => ne.value && J("next")
674
674
  }, [s.next?.(Z.value) ?? v(ke, null, {
675
675
  default: () => [v(ge, {
676
676
  icon: t.value ? e.prevIcon : e.nextIcon
@@ -680,7 +680,9 @@ const Ot = Symbol.for("vuetify:v-slide-group"), Le = R({
680
680
  selected: o.selected,
681
681
  scrollTo: J,
682
682
  scrollOffset: r,
683
- focus: L
683
+ focus: L,
684
+ hasPrev: te,
685
+ hasNext: ne
684
686
  };
685
687
  }
686
688
  });
@@ -715,7 +717,7 @@ const Xt = R({
715
717
  selectedClass: "v-tab-item--selected"
716
718
  }),
717
719
  ...ot(),
718
- ...ue()
720
+ ...ce()
719
721
  }, "VTabs"), Yt = $()({
720
722
  name: "VTabs",
721
723
  props: Xt(),
@@ -755,10 +757,10 @@ const Xt = R({
755
757
  "v-tabs--stacked": e.stacked
756
758
  }, o.value, f.value, e.class],
757
759
  style: [{
758
- "--v-tabs-height": ae(e.height)
760
+ "--v-tabs-height": ue(e.height)
759
761
  }, r.value, e.style],
760
762
  role: "tablist",
761
- symbol: ce
763
+ symbol: ve
762
764
  }, h, s), {
763
765
  default: () => [t.default?.() ?? u.value.map((a) => t.tab?.({
764
766
  item: a
@@ -801,7 +803,7 @@ const Xt = R({
801
803
  }));
802
804
  const n = (
803
805
  /** @type {import("@/types").Eodash} */
804
- re(ct)
806
+ de(ct)
805
807
  ), s = n.template.widgets, t = be(s), [l] = be([n.template?.background]), { mainRect: u } = dt(), o = I(-1), f = I(null), r = I(""), h = I(""), x = I("");
806
808
  return vt(() => {
807
809
  h.value = u.value.top + "px", x.value = (u.value.bottom || 48) + "px", r.value = u.value.bottom + (f.value?.$el?.clientHeight ?? 0) + "px";
@@ -818,7 +820,7 @@ const Xt = R({
818
820
  null,
819
821
  16
820
822
  /* FULL_PROPS */
821
- )) : se("v-if", !0)
823
+ )) : ae("v-if", !0)
822
824
  ]),
823
825
  _: 1
824
826
  /* STABLE */
@@ -869,7 +871,7 @@ const Xt = R({
869
871
  512
870
872
  /* NEED_PATCH */
871
873
  ), [
872
- [le, o.value === d]
874
+ [ie, o.value === d]
873
875
  ])
874
876
  ]),
875
877
  _: 2
@@ -882,8 +884,8 @@ const Xt = R({
882
884
  512
883
885
  /* NEED_PATCH */
884
886
  )), [
885
- [le, o.value === d]
886
- ]) : se("v-if", !0)
887
+ [ie, o.value === d]
888
+ ]) : ae("v-if", !0)
887
889
  ],
888
890
  64
889
891
  /* STABLE_FRAGMENT */
@@ -922,7 +924,7 @@ const Xt = R({
922
924
  ]),
923
925
  _: 2
924
926
  /* DYNAMIC */
925
- }, 1032, ["value"])) : se("v-if", !0)
927
+ }, 1032, ["value"])) : ae("v-if", !0)
926
928
  ],
927
929
  64
928
930
  /* STABLE_FRAGMENT */
@@ -1,6 +1,6 @@
1
- import { g as E, b as p, d as h, ab as w, p as V, y as R, r as O, L as M, w as x, a as T, D as q, ak as I, N, ae as W, e as j, ac as U, af as X, a$ as Y, b0 as z, ag as H, f as Q, h as G, i as J, Q as K, R as Z, ah as _, ad as ee, ai as te, b4 as ae, b5 as oe, aj as se, b8 as ne, b9 as re, X as ie, $ as P, a6 as k, a1 as S, a0 as le, a3 as b, a4 as ce, a5 as C, bk as ue } from "./asWebComponent-Ddg71BJk.js";
2
- import { m as de, V as B } from "./VOverlay-CqZC2CbA.js";
3
- import { a as y, d as me, s as D, c as fe, g as ge, n as ve, b as pe, f as he } from "./forwardRefs-OX_5lLJW.js";
1
+ import { g as E, b as p, d as h, ab as w, p as V, y as R, r as O, L as q, w as x, a as T, D as M, ak as I, N, ae as W, e as j, ac as U, af as X, b4 as Y, b5 as z, ag as H, f as Q, h as G, i as J, Q as K, R as Z, ah as _, ad as ee, ai as te, b9 as ae, ba as oe, aj as se, bd as ne, be as re, X as ie, $ as P, a6 as k, a1 as S, a0 as le, a3 as b, a4 as ce, a5 as C, bq as ue } from "./asWebComponent-DhR2_xlP.js";
2
+ import { m as de, V as B } from "./VOverlay-D5GzAYRY.js";
3
+ import { a as y, d as me, s as D, c as fe, g as ge, n as ve, b as pe, f as he } from "./forwardRefs-C0MQxvur.js";
4
4
  const ye = V({
5
5
  target: [Object, Array]
6
6
  }, "v-dialog-transition"), Pe = E()({
@@ -148,7 +148,7 @@ const be = V({
148
148
  u === v ? g.focus() : v.focus();
149
149
  }
150
150
  }
151
- M && x(() => t.value && e.retainFocus, (s) => {
151
+ q && x(() => t.value && e.retainFocus, (s) => {
152
152
  s ? document.addEventListener("focusin", l) : document.removeEventListener("focusin", l);
153
153
  }, {
154
154
  immediate: !0
@@ -162,7 +162,7 @@ const be = V({
162
162
  o("afterLeave");
163
163
  }
164
164
  return x(t, async (s) => {
165
- s || (await q(), a.value.activatorEl?.focus({
165
+ s || (await M(), a.value.activatorEl?.focus({
166
166
  preventScroll: !0
167
167
  }));
168
168
  }), T(() => {
@@ -1,9 +1,9 @@
1
- import { bf as O, p as W, e as D, ac as G, g as $, ad as J, a as E, b as n, c as h, ag as K, Q as X, R as Y, aj as Z, bg as p, s as f, r as ee, w as C, bh as te, D as ne, an as re, t as U, v as ae, F as se, d as ie, C as le, B as oe } from "./asWebComponent-Ddg71BJk.js";
2
- import { m as ue, M as b } from "./transition-Dq8XIV_D.js";
1
+ import { bl as O, p as W, e as D, ac as G, g as $, ad as J, a as E, b as n, c as h, ag as K, Q as X, R as Y, aj as Z, bm as p, s as f, r as ee, w as C, bn as te, D as ne, an as re, t as U, v as ae, F as se, d as ie, C as le, B as oe } from "./asWebComponent-DhR2_xlP.js";
2
+ import { m as ue, M as y } from "./transition-DRzZPWIN.js";
3
3
  function ce(e, s) {
4
4
  if (!O) return;
5
5
  const i = s.modifiers || {}, l = s.value, {
6
- handler: v,
6
+ handler: d,
7
7
  options: R
8
8
  } = typeof l == "object" ? l : {
9
9
  handler: l,
@@ -12,8 +12,8 @@ function ce(e, s) {
12
12
  let c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], _ = arguments.length > 1 ? arguments[1] : void 0;
13
13
  const r = e._observe?.[s.instance.$.uid];
14
14
  if (!r) return;
15
- const a = c.some((d) => d.isIntersecting);
16
- v && (!i.quiet || r.init) && (!i.once || a || r.init) && v(a, c, _), a && i.once ? M(e, s) : r.init = !0;
15
+ const a = c.some((v) => v.isIntersecting);
16
+ d && (!i.quiet || r.init) && (!i.once || a || r.init) && d(a, c, _), a && i.once ? M(e, s) : r.init = !0;
17
17
  }, R);
18
18
  e._observe = Object(e._observe), e._observe[s.instance.$.uid] = {
19
19
  init: !1,
@@ -24,11 +24,11 @@ function M(e, s) {
24
24
  const i = e._observe?.[s.instance.$.uid];
25
25
  i && (i.observer.unobserve(e), delete e._observe[s.instance.$.uid]);
26
26
  }
27
- const de = {
27
+ const ve = {
28
28
  mounted: ce,
29
29
  unmounted: M
30
30
  };
31
- function ve(e) {
31
+ function de(e) {
32
32
  return {
33
33
  aspectStyles: h(() => {
34
34
  const s = Number(e.aspectRatio);
@@ -53,14 +53,14 @@ const q = W({
53
53
  } = s;
54
54
  const {
55
55
  aspectStyles: l
56
- } = ve(e), {
57
- dimensionStyles: v
56
+ } = de(e), {
57
+ dimensionStyles: d
58
58
  } = J(e);
59
59
  return E(() => n("div", {
60
60
  class: ["v-responsive", {
61
61
  "v-responsive--inline": e.inline
62
62
  }, e.class],
63
- style: [v.value, e.style]
63
+ style: [d.value, e.style]
64
64
  }, [n("div", {
65
65
  class: "v-responsive__sizer",
66
66
  style: l.value
@@ -69,6 +69,7 @@ const q = W({
69
69
  }, [i.default()])])), {};
70
70
  }
71
71
  }), ge = W({
72
+ absolute: Boolean,
72
73
  alt: String,
73
74
  cover: Boolean,
74
75
  color: String,
@@ -105,7 +106,7 @@ const q = W({
105
106
  }, "VImg"), Se = $()({
106
107
  name: "VImg",
107
108
  directives: {
108
- intersect: de
109
+ intersect: ve
109
110
  },
110
111
  props: ge(),
111
112
  emits: {
@@ -119,11 +120,11 @@ const q = W({
119
120
  slots: l
120
121
  } = s;
121
122
  const {
122
- backgroundColorClasses: v,
123
+ backgroundColorClasses: d,
123
124
  backgroundColorStyles: R
124
125
  } = X(Y(e, "color")), {
125
126
  roundedClasses: S
126
- } = Z(e), c = p("VImg"), _ = f(""), r = ee(), a = f(e.eager ? "loading" : "idle"), d = f(), y = f(), o = h(() => e.src && typeof e.src == "object" ? {
127
+ } = Z(e), c = p("VImg"), _ = f(""), r = ee(), a = f(e.eager ? "loading" : "idle"), v = f(), b = f(), o = h(() => e.src && typeof e.src == "object" ? {
127
128
  src: e.src.src,
128
129
  srcset: e.srcset || e.src.srcset,
129
130
  lazySrc: e.lazySrc || e.src.lazySrc,
@@ -133,7 +134,7 @@ const q = W({
133
134
  srcset: e.srcset,
134
135
  lazySrc: e.lazySrc,
135
136
  aspect: Number(e.aspectRatio || 0)
136
- }), g = h(() => o.value.aspect || d.value / y.value || 0);
137
+ }), g = h(() => o.value.aspect || v.value / b.value || 0);
137
138
  C(() => e.src, () => {
138
139
  z(a.value !== "idle");
139
140
  }), C(g, (t, u) => {
@@ -173,23 +174,23 @@ const q = W({
173
174
  });
174
175
  function m(t) {
175
176
  let u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 100;
176
- const B = () => {
177
+ const V = () => {
177
178
  if (clearTimeout(I), c.isUnmounted) return;
178
179
  const {
179
180
  naturalHeight: j,
180
181
  naturalWidth: N
181
182
  } = t;
182
- j || N ? (d.value = N, y.value = j) : !t.complete && a.value === "loading" && u != null ? I = window.setTimeout(B, u) : (t.currentSrc.endsWith(".svg") || t.currentSrc.startsWith("data:image/svg+xml")) && (d.value = 1, y.value = 1);
183
+ j || N ? (v.value = N, b.value = j) : !t.complete && a.value === "loading" && u != null ? I = window.setTimeout(V, u) : (t.currentSrc.endsWith(".svg") || t.currentSrc.startsWith("data:image/svg+xml")) && (v.value = 1, b.value = 1);
183
184
  };
184
- B();
185
+ V();
185
186
  }
186
- const T = h(() => ({
187
+ const B = h(() => ({
187
188
  "v-img__img--cover": e.cover,
188
189
  "v-img__img--contain": !e.cover
189
190
  })), x = () => {
190
191
  if (!o.value.src || a.value === "idle") return null;
191
192
  const t = n("img", {
192
- class: ["v-img__img", T.value],
193
+ class: ["v-img__img", B.value],
193
194
  style: {
194
195
  objectPosition: e.position
195
196
  },
@@ -204,7 +205,7 @@ const q = W({
204
205
  onLoad: P,
205
206
  onError: w
206
207
  }, null), u = l.sources?.();
207
- return n(b, {
208
+ return n(y, {
208
209
  transition: e.transition,
209
210
  appear: !0
210
211
  }, {
@@ -212,11 +213,11 @@ const q = W({
212
213
  class: "v-img__picture"
213
214
  }, [u, t]) : t, [[oe, a.value === "loaded"]])]
214
215
  });
215
- }, A = () => n(b, {
216
+ }, A = () => n(y, {
216
217
  transition: e.transition
217
218
  }, {
218
219
  default: () => [o.value.lazySrc && a.value !== "loaded" && n("img", {
219
- class: ["v-img__img", "v-img__img--preload", T.value],
220
+ class: ["v-img__img", "v-img__img--preload", B.value],
220
221
  style: {
221
222
  objectPosition: e.position
222
223
  },
@@ -226,14 +227,14 @@ const q = W({
226
227
  referrerpolicy: e.referrerpolicy,
227
228
  draggable: e.draggable
228
229
  }, null)]
229
- }), H = () => l.placeholder ? n(b, {
230
+ }), H = () => l.placeholder ? n(y, {
230
231
  transition: e.transition,
231
232
  appear: !0
232
233
  }, {
233
234
  default: () => [(a.value === "loading" || a.value === "error" && !l.error) && n("div", {
234
235
  class: "v-img__placeholder"
235
236
  }, [l.placeholder()])]
236
- }) : null, L = () => l.error ? n(b, {
237
+ }) : null, L = () => l.error ? n(y, {
237
238
  transition: e.transition,
238
239
  appear: !0
239
240
  }, {
@@ -245,12 +246,12 @@ const q = W({
245
246
  style: {
246
247
  backgroundImage: `linear-gradient(${e.gradient})`
247
248
  }
248
- }, null) : null, V = f(!1);
249
+ }, null) : null, T = f(!1);
249
250
  {
250
251
  const t = C(g, (u) => {
251
252
  u && (requestAnimationFrame(() => {
252
253
  requestAnimationFrame(() => {
253
- V.value = !0;
254
+ T.value = !0;
254
255
  });
255
256
  }), t());
256
257
  });
@@ -259,10 +260,11 @@ const q = W({
259
260
  const t = F.filterProps(e);
260
261
  return U(n(F, ie({
261
262
  class: ["v-img", {
262
- "v-img--booting": !V.value
263
- }, v.value, S.value, e.class],
263
+ "v-img--absolute": e.absolute,
264
+ "v-img--booting": !T.value
265
+ }, d.value, S.value, e.class],
264
266
  style: [{
265
- width: le(e.width === "auto" ? d.value : e.width)
267
+ width: le(e.width === "auto" ? v.value : e.width)
266
268
  }, R.value, e.style]
267
269
  }, t, {
268
270
  aspectRatio: g.value,
@@ -281,8 +283,8 @@ const q = W({
281
283
  currentSrc: _,
282
284
  image: r,
283
285
  state: a,
284
- naturalWidth: d,
285
- naturalHeight: y
286
+ naturalWidth: v,
287
+ naturalHeight: b
286
288
  };
287
289
  }
288
290
  });
@@ -0,0 +1,38 @@
1
+ import { p as r, e as i, ac as m, f as c, g as u, ad as d, Y as v, a as y, b as e } from "./asWebComponent-DhR2_xlP.js";
2
+ import { u as f } from "./ssrBoot-Xmkz8T49.js";
3
+ const V = r({
4
+ scrollable: Boolean,
5
+ ...i(),
6
+ ...m(),
7
+ ...c({
8
+ tag: "main"
9
+ })
10
+ }, "VMain"), p = u()({
11
+ name: "VMain",
12
+ props: V(),
13
+ setup(a, o) {
14
+ let {
15
+ slots: s
16
+ } = o;
17
+ const {
18
+ dimensionStyles: l
19
+ } = d(a), {
20
+ mainStyles: n
21
+ } = v(), {
22
+ ssrBootStyles: t
23
+ } = f();
24
+ return y(() => e(a.tag, {
25
+ class: ["v-main", {
26
+ "v-main--scrollable": a.scrollable
27
+ }, a.class],
28
+ style: [n.value, t.value, l.value, a.style]
29
+ }, {
30
+ default: () => [a.scrollable ? e("div", {
31
+ class: "v-main__scroller"
32
+ }, [s.default?.()]) : s.default?.()]
33
+ })), {};
34
+ }
35
+ });
36
+ export {
37
+ p as V
38
+ };