@eodash/eodash 5.0.0-alpha.2.1 → 5.0.0-alpha.2.4

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 (94) hide show
  1. package/README.md +10 -1
  2. package/core/client/App.vue +27 -0
  3. package/core/client/SuspensedDashboard.ce.vue +91 -0
  4. package/core/client/components/DashboardLayout.vue +36 -0
  5. package/core/client/components/ErrorAlert.vue +19 -0
  6. package/core/{components → client/components}/Loading.vue +12 -1
  7. package/core/{components → client/components}/MobileLayout.vue +19 -11
  8. package/core/{composables → client/composables}/DefineWidgets.js +11 -5
  9. package/core/{composables → client/composables}/index.js +16 -13
  10. package/core/{eodash.js → client/eodash.js} +0 -2
  11. package/core/{plugins → client/plugins}/vuetify.js +9 -3
  12. package/core/{store → client/store}/stac.js +6 -2
  13. package/core/{types.d.ts → client/types.d.ts} +11 -25
  14. package/core/{views → client/views}/Dashboard.vue +35 -6
  15. package/dist/client/DashboardLayout-ZaSRMD1M.js +149 -0
  16. package/dist/{DynamicWebComponent-BrHVTesn.js → client/DynamicWebComponent-C4Hotc4H.js} +12 -12
  17. package/dist/client/EodashDatePicker-C4kKjxKy.js +1653 -0
  18. package/dist/{EodashItemFilter-BLAGx2UD.js → client/EodashItemFilter-cBHC0YEM.js} +2 -2
  19. package/dist/{EodashMap-Bxl_aqY2.js → client/EodashMap-CGrQjZ1P.js} +2490 -2496
  20. package/dist/client/Footer-pS636dEP.js +118 -0
  21. package/dist/{Header-DC50S6GR.js → client/Header-DQuaLdjl.js} +225 -229
  22. package/dist/{IframeWrapper-Dd9zrX9s.js → client/IframeWrapper-Cg3GMmfW.js} +1 -1
  23. package/dist/client/MobileLayout-BLXFBWI_.js +987 -0
  24. package/dist/client/VMain-BHYlmRic.js +39 -0
  25. package/dist/{WidgetsContainer-DxfCu0I3.js → client/WidgetsContainer-dje9QSk0.js} +18 -18
  26. package/dist/client/asWebComponent-Bvb3xkxI.js +13311 -0
  27. package/dist/{decoder-kAoyGIq9-BBR5CgzS.js → client/decoder-HRvnjnEI-BQ2rajuJ.js} +1 -1
  28. package/dist/client/eo-dash.js +6 -0
  29. package/dist/{eox-map-BJ9SIixs.js → client/eox-map-C3DL31fp.js} +1882 -1809
  30. package/dist/client/eox-stacinfo-l7ALSV90.js +13969 -0
  31. package/dist/{index-DTkOfh2g.js → client/index-CaDDfJYE.js} +75 -43
  32. package/dist/client/index-DlNICb3T.js +34 -0
  33. package/dist/{lerc-C9VL9kri-cIdbW0sg.js → client/lerc-_E46UbWQ-Beu35ovS.js} +1 -1
  34. package/dist/{ssrBoot-D-b4-M19.js → client/ssrBoot-Dd7m-btU.js} +3 -3
  35. package/dist/client/style.css +5 -0
  36. package/dist/node/cli.js +20 -0
  37. package/dist/node/main.js +2 -0
  38. package/{bin → dist/node}/types.d.ts +3 -2
  39. package/package.json +22 -20
  40. package/widgets/EodashDatePicker.vue +1 -0
  41. package/widgets/EodashItemFilter.vue +1 -1
  42. package/widgets/WidgetsContainer.vue +7 -5
  43. package/bin/app.js +0 -22
  44. package/bin/cli.js +0 -62
  45. package/bin/main.js +0 -9
  46. package/bin/serverConfig.js +0 -165
  47. package/bin/utils.js +0 -103
  48. package/core/App.vue +0 -19
  49. package/core/SuspensedDashboard.ce.vue +0 -65
  50. package/core/components/DashboardLayout.vue +0 -44
  51. package/dist/DashboardLayout-Dp8AnYD9.js +0 -141
  52. package/dist/EodashDatePicker-D_udZ26j.js +0 -1645
  53. package/dist/Footer-AohCH8U7.js +0 -118
  54. package/dist/MobileLayout-CgToA7Gp.js +0 -523
  55. package/dist/VBtn-Bz7ruRUg.js +0 -1106
  56. package/dist/VMain-BHfWJU2j.js +0 -35
  57. package/dist/asWebComponent-C8rb3b1D.js +0 -11323
  58. package/dist/color-DpYEub1f.js +0 -115
  59. package/dist/dimensions-CJaGeSrj.js +0 -53
  60. package/dist/eo-dash.js +0 -6
  61. package/dist/eox-stacinfo-B-YrT7Ug.js +0 -13698
  62. package/dist/index-Sa2Vg_gx.js +0 -65
  63. package/dist/style.css +0 -5
  64. /package/core/{asWebComponent.d.ts → client/asWebComponent.d.ts} +0 -0
  65. /package/core/{asWebComponent.js → client/asWebComponent.js} +0 -0
  66. /package/core/{components → client/components}/DynamicWebComponent.vue +0 -0
  67. /package/core/{components → client/components}/Footer.vue +0 -0
  68. /package/core/{components → client/components}/Header.vue +0 -0
  69. /package/core/{components → client/components}/IframeWrapper.vue +0 -0
  70. /package/core/{composables → client/composables}/DefineEodash.js +0 -0
  71. /package/core/{main.js → client/main.js} +0 -0
  72. /package/core/{plugins → client/plugins}/index.js +0 -0
  73. /package/core/{render.js → client/render.js} +0 -0
  74. /package/core/{store → client/store}/Actions.js +0 -0
  75. /package/core/{store → client/store}/States.js +0 -0
  76. /package/core/{store → client/store}/index.js +0 -0
  77. /package/core/{utils → client/utils}/eodashSTAC.js +0 -0
  78. /package/core/{utils → client/utils}/helpers.js +0 -0
  79. /package/core/{utils → client/utils}/index.js +0 -0
  80. /package/core/{utils → client/utils}/keys.js +0 -0
  81. /package/core/{vite-env.d.ts → client/vite-env.d.ts} +0 -0
  82. /package/dist/{.gitkeep → client/.gitkeep} +0 -0
  83. /package/dist/{_commonjsHelpers-DaMA6jEr.js → client/_commonjsHelpers-DaMA6jEr.js} +0 -0
  84. /package/dist/{basedecoder-Qm25PwVp-CHo5Pomv.js → client/basedecoder-Qm25PwVp-CHo5Pomv.js} +0 -0
  85. /package/dist/{deflate-Be2Arps5-hDqMz3RA.js → client/deflate-Be2Arps5-hDqMz3RA.js} +0 -0
  86. /package/dist/{eox-itemfilter-DcQkRD2l.js → client/eox-itemfilter-DcQkRD2l.js} +0 -0
  87. /package/dist/{forwardRefs-Bxeu9Obx.js → client/forwardRefs-Bxeu9Obx.js} +0 -0
  88. /package/dist/{jpeg-DNfUpLwy-Fjan-04T.js → client/jpeg-DNfUpLwy-Fjan-04T.js} +0 -0
  89. /package/dist/{lzw-BOMhmEDy-Dboc93VO.js → client/lzw-BOMhmEDy-Dboc93VO.js} +0 -0
  90. /package/dist/{packbits-DaUD6MLm-Bu1PoTGa.js → client/packbits-DaUD6MLm-Bu1PoTGa.js} +0 -0
  91. /package/dist/{pako.esm-C3kYPGGQ-BMki8cQY.js → client/pako.esm-C3kYPGGQ-BMki8cQY.js} +0 -0
  92. /package/dist/{raw-CcGKjn8q-DFOt-i8n.js → client/raw-CcGKjn8q-DFOt-i8n.js} +0 -0
  93. /package/dist/{webfontloader-CyOFAuFB.js → client/webfontloader-CyOFAuFB.js} +0 -0
  94. /package/dist/{webimage-D2c098k3-DLj1LQxB.js → client/webimage-D2c098k3-DLj1LQxB.js} +0 -0
@@ -1,27 +1,25 @@
1
- import { p as x, b as N, e as G, g as B, u as k, a as t, c as v, t as z, U as ie, s as y, r as A, w as V, V as ue, W as ce, X as de, Y as J, M as j, Z as ve, F as me, m as U, v as C, P as ge, _ as fe, $ as he, f as be, q as ye, l as Se, C as _e, a0 as Te, a1 as Ve, n as xe, a2 as Be, a3 as ke, a4 as Pe, y as Ce, z as we, D as Ie, E as Re, G as O, O as ze, Q as Ne, J as q } from "./asWebComponent-C8rb3b1D.js";
2
- import { m as Ee, u as He, V as H } from "./dimensions-CJaGeSrj.js";
3
- import { m as K, a as Q, b as X, c as Ae, d as Ue, e as De, f as Me } from "./color-DpYEub1f.js";
4
- import { m as We, i as Fe, M as R } from "./index-Sa2Vg_gx.js";
5
- import { a as Le } from "./index-DTkOfh2g.js";
6
- import { u as je } from "./ssrBoot-D-b4-M19.js";
7
- const Z = x({
1
+ import { p as B, e as H, f as Y, g as k, a as P, b as t, ab as ie, ac as ue, c as v, ad as Z, R as G, S as z, ae as J, O as ce, s as b, r as A, w as V, af as de, ag as ve, D as me, ah as Q, t as M, v as ge, F as fe, d as U, C as I, B as he, ai as ye, aj as be, h as Se, ak as _e, al as Te, i as xe, j as Ve, T as Be, am as E, an as ke, Z as Pe, ao as Ie, ap as Ce, y as Re, aq as we, ar as Ne, as as ze, x as He, W as Ee, _ as Ae, $ as Ue, a0 as O, a8 as De, aa as je, a2 as q } from "./asWebComponent-Bvb3xkxI.js";
2
+ import { m as We, M as N, a as Fe } from "./index-CaDDfJYE.js";
3
+ import { I as Le } from "./index-DlNICb3T.js";
4
+ import { u as Me } from "./ssrBoot-Dd7m-btU.js";
5
+ const X = B({
8
6
  text: String,
9
- ...N(),
10
- ...G()
11
- }, "VToolbarTitle"), p = B()({
7
+ ...H(),
8
+ ...Y()
9
+ }, "VToolbarTitle"), p = k()({
12
10
  name: "VToolbarTitle",
13
- props: Z(),
14
- setup(e, u) {
11
+ props: X(),
12
+ setup(e, d) {
15
13
  let {
16
14
  slots: a
17
- } = u;
18
- return k(() => {
19
- const s = !!(a.default || a.text || e.text);
15
+ } = d;
16
+ return P(() => {
17
+ const o = !!(a.default || a.text || e.text);
20
18
  return t(e.tag, {
21
19
  class: ["v-toolbar-title", e.class],
22
20
  style: e.style
23
21
  }, {
24
- default: () => [s && t("div", {
22
+ default: () => [o && t("div", {
25
23
  class: "v-toolbar-title__placeholder"
26
24
  }, [a.text ? a.text() : e.text, a.default?.()])]
27
25
  });
@@ -31,44 +29,44 @@ const Z = x({
31
29
  function Oe(e) {
32
30
  return {
33
31
  aspectStyles: v(() => {
34
- const u = Number(e.aspectRatio);
35
- return u ? {
36
- paddingBottom: String(1 / u * 100) + "%"
32
+ const d = Number(e.aspectRatio);
33
+ return d ? {
34
+ paddingBottom: String(1 / d * 100) + "%"
37
35
  } : void 0;
38
36
  })
39
37
  };
40
38
  }
41
- const ee = x({
39
+ const ee = B({
42
40
  aspectRatio: [String, Number],
43
- contentClass: String,
41
+ contentClass: null,
44
42
  inline: Boolean,
45
- ...N(),
46
- ...Ee()
47
- }, "VResponsive"), $ = B()({
43
+ ...H(),
44
+ ...ie()
45
+ }, "VResponsive"), $ = k()({
48
46
  name: "VResponsive",
49
47
  props: ee(),
50
- setup(e, u) {
48
+ setup(e, d) {
51
49
  let {
52
50
  slots: a
53
- } = u;
51
+ } = d;
54
52
  const {
55
- aspectStyles: s
53
+ aspectStyles: o
56
54
  } = Oe(e), {
57
- dimensionStyles: c
58
- } = He(e);
59
- return k(() => t("div", {
55
+ dimensionStyles: u
56
+ } = ue(e);
57
+ return P(() => t("div", {
60
58
  class: ["v-responsive", {
61
59
  "v-responsive--inline": e.inline
62
60
  }, e.class],
63
- style: [c.value, e.style]
61
+ style: [u.value, e.style]
64
62
  }, [t("div", {
65
63
  class: "v-responsive__sizer",
66
- style: s.value
64
+ style: o.value
67
65
  }, null), a.additional?.(), a.default && t("div", {
68
66
  class: ["v-responsive__content", e.contentClass]
69
67
  }, [a.default()])])), {};
70
68
  }
71
- }), qe = x({
69
+ }), qe = B({
72
70
  alt: String,
73
71
  cover: Boolean,
74
72
  color: String,
@@ -99,13 +97,13 @@ const ee = x({
99
97
  srcset: String,
100
98
  position: String,
101
99
  ...ee(),
102
- ...N(),
103
- ...K(),
100
+ ...H(),
101
+ ...Z(),
104
102
  ...We()
105
- }, "VImg"), te = B()({
103
+ }, "VImg"), te = k()({
106
104
  name: "VImg",
107
105
  directives: {
108
- intersect: Fe
106
+ intersect: Le
109
107
  },
110
108
  props: qe(),
111
109
  emits: {
@@ -113,17 +111,17 @@ const ee = x({
113
111
  load: (e) => !0,
114
112
  error: (e) => !0
115
113
  },
116
- setup(e, u) {
114
+ setup(e, d) {
117
115
  let {
118
116
  emit: a,
119
- slots: s
120
- } = u;
117
+ slots: o
118
+ } = d;
121
119
  const {
122
- backgroundColorClasses: c,
120
+ backgroundColorClasses: u,
123
121
  backgroundColorStyles: r
124
- } = Q(z(e, "color")), {
125
- roundedClasses: S
126
- } = X(e), g = ie("VImg"), _ = y(""), o = A(), l = y(e.eager ? "loading" : "idle"), f = y(), m = y(), n = v(() => e.src && typeof e.src == "object" ? {
122
+ } = G(z(e, "color")), {
123
+ roundedClasses: _
124
+ } = J(e), m = ce("VImg"), S = b(""), i = A(), l = b(e.eager ? "loading" : "idle"), f = b(), g = b(), n = v(() => e.src && typeof e.src == "object" ? {
127
125
  src: e.src.src,
128
126
  srcset: e.srcset || e.src.srcset,
129
127
  lazySrc: e.lazySrc || e.src.lazySrc,
@@ -133,55 +131,55 @@ const ee = x({
133
131
  srcset: e.srcset,
134
132
  lazySrc: e.lazySrc,
135
133
  aspect: Number(e.aspectRatio || 0)
136
- }), h = v(() => n.value.aspect || f.value / m.value || 0);
134
+ }), h = v(() => n.value.aspect || f.value / g.value || 0);
137
135
  V(() => e.src, () => {
138
136
  T(l.value !== "idle");
139
- }), V(h, (i, b) => {
140
- !i && b && o.value && P(o.value);
141
- }), ue(() => T());
142
- function T(i) {
143
- if (!(e.eager && i) && !(ce && !i && !e.eager)) {
137
+ }), V(h, (c, y) => {
138
+ !c && y && i.value && x(i.value);
139
+ }), de(() => T());
140
+ function T(c) {
141
+ if (!(e.eager && c) && !(ve && !c && !e.eager)) {
144
142
  if (l.value = "loading", n.value.lazySrc) {
145
- const b = new Image();
146
- b.src = n.value.lazySrc, P(b, null);
143
+ const y = new Image();
144
+ y.src = n.value.lazySrc, x(y, null);
147
145
  }
148
- n.value.src && de(() => {
149
- a("loadstart", o.value?.currentSrc || n.value.src), setTimeout(() => {
150
- if (!g.isUnmounted)
151
- if (o.value?.complete) {
152
- if (o.value.naturalWidth || d(), l.value === "error")
146
+ n.value.src && me(() => {
147
+ a("loadstart", i.value?.currentSrc || n.value.src), setTimeout(() => {
148
+ if (!m.isUnmounted)
149
+ if (i.value?.complete) {
150
+ if (i.value.naturalWidth || R(), l.value === "error")
153
151
  return;
154
- h.value || P(o.value, null), l.value === "loading" && w();
152
+ h.value || x(i.value, null), l.value === "loading" && C();
155
153
  } else
156
- h.value || P(o.value), I();
154
+ h.value || x(i.value), w();
157
155
  });
158
156
  });
159
157
  }
160
158
  }
161
- function w() {
162
- g.isUnmounted || (I(), P(o.value), l.value = "loaded", a("load", o.value?.currentSrc || n.value.src));
159
+ function C() {
160
+ m.isUnmounted || (w(), x(i.value), l.value = "loaded", a("load", i.value?.currentSrc || n.value.src));
163
161
  }
164
- function d() {
165
- g.isUnmounted || (l.value = "error", a("error", o.value?.currentSrc || n.value.src));
162
+ function R() {
163
+ m.isUnmounted || (l.value = "error", a("error", i.value?.currentSrc || n.value.src));
166
164
  }
167
- function I() {
168
- const i = o.value;
169
- i && (_.value = i.currentSrc || i.src);
165
+ function w() {
166
+ const c = i.value;
167
+ c && (S.value = c.currentSrc || c.src);
170
168
  }
171
- let E = -1;
172
- J(() => {
173
- clearTimeout(E);
169
+ let s = -1;
170
+ Q(() => {
171
+ clearTimeout(s);
174
172
  });
175
- function P(i) {
176
- let b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 100;
173
+ function x(c) {
174
+ let y = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 100;
177
175
  const W = () => {
178
- if (clearTimeout(E), g.isUnmounted)
176
+ if (clearTimeout(s), m.isUnmounted)
179
177
  return;
180
178
  const {
181
179
  naturalHeight: F,
182
180
  naturalWidth: L
183
- } = i;
184
- F || L ? (f.value = L, m.value = F) : !i.complete && l.value === "loading" && b != null ? E = window.setTimeout(W, b) : (i.currentSrc.endsWith(".svg") || i.currentSrc.startsWith("data:image/svg+xml")) && (f.value = 1, m.value = 1);
181
+ } = c;
182
+ F || L ? (f.value = L, g.value = F) : !c.complete && l.value === "loading" && y != null ? s = window.setTimeout(W, y) : (c.currentSrc.endsWith(".svg") || c.currentSrc.startsWith("data:image/svg+xml")) && (f.value = 1, g.value = 1);
185
183
  };
186
184
  W();
187
185
  }
@@ -191,7 +189,7 @@ const ee = x({
191
189
  })), le = () => {
192
190
  if (!n.value.src || l.value === "idle")
193
191
  return null;
194
- const i = t("img", {
192
+ const c = t("img", {
195
193
  class: ["v-img__img", D.value],
196
194
  style: {
197
195
  objectPosition: e.position
@@ -203,19 +201,19 @@ const ee = x({
203
201
  referrerpolicy: e.referrerpolicy,
204
202
  draggable: e.draggable,
205
203
  sizes: e.sizes,
206
- ref: o,
207
- onLoad: w,
208
- onError: d
209
- }, null), b = s.sources?.();
210
- return t(R, {
204
+ ref: i,
205
+ onLoad: C,
206
+ onError: R
207
+ }, null), y = o.sources?.();
208
+ return t(N, {
211
209
  transition: e.transition,
212
210
  appear: !0
213
211
  }, {
214
- default: () => [j(b ? t("picture", {
212
+ default: () => [M(y ? t("picture", {
215
213
  class: "v-img__picture"
216
- }, [b, i]) : i, [[ge, l.value === "loaded"]])]
214
+ }, [y, c]) : c, [[he, l.value === "loaded"]])]
217
215
  });
218
- }, ne = () => t(R, {
216
+ }, ne = () => t(N, {
219
217
  transition: e.transition
220
218
  }, {
221
219
  default: () => [n.value.lazySrc && l.value !== "loaded" && t("img", {
@@ -229,66 +227,66 @@ const ee = x({
229
227
  referrerpolicy: e.referrerpolicy,
230
228
  draggable: e.draggable
231
229
  }, null)]
232
- }), re = () => s.placeholder ? t(R, {
230
+ }), re = () => o.placeholder ? t(N, {
233
231
  transition: e.transition,
234
232
  appear: !0
235
233
  }, {
236
- default: () => [(l.value === "loading" || l.value === "error" && !s.error) && t("div", {
234
+ default: () => [(l.value === "loading" || l.value === "error" && !o.error) && t("div", {
237
235
  class: "v-img__placeholder"
238
- }, [s.placeholder()])]
239
- }) : null, se = () => s.error ? t(R, {
236
+ }, [o.placeholder()])]
237
+ }) : null, se = () => o.error ? t(N, {
240
238
  transition: e.transition,
241
239
  appear: !0
242
240
  }, {
243
241
  default: () => [l.value === "error" && t("div", {
244
242
  class: "v-img__error"
245
- }, [s.error()])]
243
+ }, [o.error()])]
246
244
  }) : null, oe = () => e.gradient ? t("div", {
247
245
  class: "v-img__gradient",
248
246
  style: {
249
247
  backgroundImage: `linear-gradient(${e.gradient})`
250
248
  }
251
- }, null) : null, M = y(!1);
249
+ }, null) : null, j = b(!1);
252
250
  {
253
- const i = V(h, (b) => {
254
- b && (requestAnimationFrame(() => {
251
+ const c = V(h, (y) => {
252
+ y && (requestAnimationFrame(() => {
255
253
  requestAnimationFrame(() => {
256
- M.value = !0;
254
+ j.value = !0;
257
255
  });
258
- }), i());
256
+ }), c());
259
257
  });
260
258
  }
261
- return k(() => {
262
- const i = $.filterProps(e);
263
- return j(t($, U({
259
+ return P(() => {
260
+ const c = $.filterProps(e);
261
+ return M(t($, U({
264
262
  class: ["v-img", {
265
- "v-img--booting": !M.value
266
- }, c.value, S.value, e.class],
263
+ "v-img--booting": !j.value
264
+ }, u.value, _.value, e.class],
267
265
  style: [{
268
- width: C(e.width === "auto" ? f.value : e.width)
266
+ width: I(e.width === "auto" ? f.value : e.width)
269
267
  }, r.value, e.style]
270
- }, i, {
268
+ }, c, {
271
269
  aspectRatio: h.value,
272
270
  "aria-label": e.alt,
273
271
  role: e.alt ? "img" : void 0
274
272
  }), {
275
- additional: () => t(me, null, [t(le, null, null), t(ne, null, null), t(oe, null, null), t(re, null, null), t(se, null, null)]),
276
- default: s.default
277
- }), [[ve("intersect"), {
273
+ additional: () => t(fe, null, [t(le, null, null), t(ne, null, null), t(oe, null, null), t(re, null, null), t(se, null, null)]),
274
+ default: o.default
275
+ }), [[ge("intersect"), {
278
276
  handler: T,
279
277
  options: e.options
280
278
  }, null, {
281
279
  once: !0
282
280
  }]]);
283
281
  }), {
284
- currentSrc: _,
285
- image: o,
282
+ currentSrc: S,
283
+ image: i,
286
284
  state: l,
287
285
  naturalWidth: f,
288
- naturalHeight: m
286
+ naturalHeight: g
289
287
  };
290
288
  }
291
- }), $e = [null, "prominent", "default", "comfortable", "compact"], ae = x({
289
+ }), $e = [null, "prominent", "default", "comfortable", "compact"], ae = B({
292
290
  absolute: Boolean,
293
291
  collapse: Boolean,
294
292
  color: String,
@@ -310,40 +308,40 @@ const ee = x({
310
308
  },
311
309
  image: String,
312
310
  title: String,
313
- ...Ae(),
314
- ...N(),
315
- ...Ue(),
316
- ...K(),
317
- ...G({
311
+ ...ye(),
312
+ ...H(),
313
+ ...be(),
314
+ ...Z(),
315
+ ...Y({
318
316
  tag: "header"
319
317
  }),
320
- ...fe()
321
- }, "VToolbar"), Y = B()({
318
+ ...Se()
319
+ }, "VToolbar"), K = k()({
322
320
  name: "VToolbar",
323
321
  props: ae(),
324
- setup(e, u) {
322
+ setup(e, d) {
325
323
  let {
326
324
  slots: a
327
- } = u;
325
+ } = d;
328
326
  const {
329
- backgroundColorClasses: s,
330
- backgroundColorStyles: c
331
- } = Q(z(e, "color")), {
327
+ backgroundColorClasses: o,
328
+ backgroundColorStyles: u
329
+ } = G(z(e, "color")), {
332
330
  borderClasses: r
333
- } = De(e), {
334
- elevationClasses: S
335
- } = Me(e), {
336
- roundedClasses: g
337
- } = X(e), {
338
- themeClasses: _
339
- } = he(e), {
340
- rtlClasses: o
341
- } = be(), l = y(!!(e.extended || a.extension?.())), f = v(() => parseInt(Number(e.height) + (e.density === "prominent" ? Number(e.height) : 0) - (e.density === "comfortable" ? 8 : 0) - (e.density === "compact" ? 16 : 0), 10)), m = v(() => l.value ? parseInt(Number(e.extensionHeight) + (e.density === "prominent" ? Number(e.extensionHeight) : 0) - (e.density === "comfortable" ? 4 : 0) - (e.density === "compact" ? 8 : 0), 10) : 0);
342
- return ye({
331
+ } = _e(e), {
332
+ elevationClasses: _
333
+ } = Te(e), {
334
+ roundedClasses: m
335
+ } = J(e), {
336
+ themeClasses: S
337
+ } = xe(e), {
338
+ rtlClasses: i
339
+ } = Ve(), l = b(!!(e.extended || a.extension?.())), f = v(() => parseInt(Number(e.height) + (e.density === "prominent" ? Number(e.height) : 0) - (e.density === "comfortable" ? 8 : 0) - (e.density === "compact" ? 16 : 0), 10)), g = v(() => l.value ? parseInt(Number(e.extensionHeight) + (e.density === "prominent" ? Number(e.extensionHeight) : 0) - (e.density === "comfortable" ? 4 : 0) - (e.density === "compact" ? 8 : 0), 10) : 0);
340
+ return Be({
343
341
  VBtn: {
344
342
  variant: "text"
345
343
  }
346
- }), k(() => {
344
+ }), P(() => {
347
345
  const n = !!(e.title || a.title), h = !!(a.image || e.image), T = a.extension?.();
348
346
  return l.value = !!(e.extended || T), t(e.tag, {
349
347
  class: ["v-toolbar", {
@@ -352,13 +350,13 @@ const ee = x({
352
350
  "v-toolbar--flat": e.flat,
353
351
  "v-toolbar--floating": e.floating,
354
352
  [`v-toolbar--density-${e.density}`]: !0
355
- }, s.value, r.value, S.value, g.value, _.value, o.value, e.class],
356
- style: [c.value, e.style]
353
+ }, o.value, r.value, _.value, m.value, S.value, i.value, e.class],
354
+ style: [u.value, e.style]
357
355
  }, {
358
356
  default: () => [h && t("div", {
359
357
  key: "image",
360
358
  class: "v-toolbar__image"
361
- }, [a.image ? t(H, {
359
+ }, [a.image ? t(E, {
362
360
  key: "image-defaults",
363
361
  disabled: !e.image,
364
362
  defaults: {
@@ -371,17 +369,17 @@ const ee = x({
371
369
  key: "image-img",
372
370
  cover: !0,
373
371
  src: e.image
374
- }, null)]), t(H, {
372
+ }, null)]), t(E, {
375
373
  defaults: {
376
374
  VTabs: {
377
- height: C(f.value)
375
+ height: I(f.value)
378
376
  }
379
377
  }
380
378
  }, {
381
379
  default: () => [t("div", {
382
380
  class: "v-toolbar__content",
383
381
  style: {
384
- height: C(f.value)
382
+ height: I(f.value)
385
383
  }
386
384
  }, [a.prepend && t("div", {
387
385
  class: "v-toolbar__prepend"
@@ -393,18 +391,18 @@ const ee = x({
393
391
  }), a.default?.(), a.append && t("div", {
394
392
  class: "v-toolbar__append"
395
393
  }, [a.append?.()])])]
396
- }), t(H, {
394
+ }), t(E, {
397
395
  defaults: {
398
396
  VTabs: {
399
- height: C(m.value)
397
+ height: I(g.value)
400
398
  }
401
399
  }
402
400
  }, {
403
- default: () => [t(Le, null, {
401
+ default: () => [t(Fe, null, {
404
402
  default: () => [l.value && t("div", {
405
403
  class: "v-toolbar__extension",
406
404
  style: {
407
- height: C(m.value)
405
+ height: I(g.value)
408
406
  }
409
407
  }, [T])]
410
408
  })]
@@ -412,10 +410,10 @@ const ee = x({
412
410
  });
413
411
  }), {
414
412
  contentHeight: f,
415
- extensionHeight: m
413
+ extensionHeight: g
416
414
  };
417
415
  }
418
- }), Ye = x({
416
+ }), Ke = B({
419
417
  scrollTarget: {
420
418
  type: String
421
419
  },
@@ -424,51 +422,51 @@ const ee = x({
424
422
  default: 300
425
423
  }
426
424
  }, "scroll");
427
- function Ge(e) {
428
- let u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
425
+ function Ye(e) {
426
+ let d = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
429
427
  const {
430
428
  canScroll: a
431
- } = u;
432
- let s = 0;
433
- const c = A(null), r = y(0), S = y(0), g = y(0), _ = y(!1), o = y(!1), l = v(() => Number(e.scrollThreshold)), f = v(() => Se((l.value - r.value) / l.value || 0)), m = () => {
434
- const n = c.value;
435
- !n || a && !a.value || (s = r.value, r.value = "window" in n ? n.pageYOffset : n.scrollTop, o.value = r.value < s, g.value = Math.abs(r.value - l.value));
429
+ } = d;
430
+ let o = 0;
431
+ const u = A(null), r = b(0), _ = b(0), m = b(0), S = b(!1), i = b(!1), l = v(() => Number(e.scrollThreshold)), f = v(() => ke((l.value - r.value) / l.value || 0)), g = () => {
432
+ const n = u.value;
433
+ !n || a && !a.value || (o = r.value, r.value = "window" in n ? n.pageYOffset : n.scrollTop, i.value = r.value < o, m.value = Math.abs(r.value - l.value));
436
434
  };
437
- return V(o, () => {
438
- S.value = S.value || r.value;
439
- }), V(_, () => {
440
- S.value = 0;
441
- }), _e(() => {
435
+ return V(i, () => {
436
+ _.value = _.value || r.value;
437
+ }), V(S, () => {
438
+ _.value = 0;
439
+ }), Pe(() => {
442
440
  V(() => e.scrollTarget, (n) => {
443
441
  const h = n ? document.querySelector(n) : window;
444
442
  if (!h) {
445
- Te(`Unable to locate element with identifier ${n}`);
443
+ Ie(`Unable to locate element with identifier ${n}`);
446
444
  return;
447
445
  }
448
- h !== c.value && (c.value?.removeEventListener("scroll", m), c.value = h, c.value.addEventListener("scroll", m, {
446
+ h !== u.value && (u.value?.removeEventListener("scroll", g), u.value = h, u.value.addEventListener("scroll", g, {
449
447
  passive: !0
450
448
  }));
451
449
  }, {
452
450
  immediate: !0
453
451
  });
454
- }), J(() => {
455
- c.value?.removeEventListener("scroll", m);
456
- }), a && V(a, m, {
452
+ }), Q(() => {
453
+ u.value?.removeEventListener("scroll", g);
454
+ }), a && V(a, g, {
457
455
  immediate: !0
458
456
  }), {
459
457
  scrollThreshold: l,
460
458
  currentScroll: r,
461
- currentThreshold: g,
462
- isScrollActive: _,
459
+ currentThreshold: m,
460
+ isScrollActive: S,
463
461
  scrollRatio: f,
464
462
  // required only for testing
465
463
  // probably can be removed
466
464
  // later (2 chars chlng)
467
- isScrollingUp: o,
468
- savedScroll: S
465
+ isScrollingUp: i,
466
+ savedScroll: _
469
467
  };
470
468
  }
471
- const Je = x({
469
+ const Ze = B({
472
470
  scrollBehavior: String,
473
471
  modelValue: {
474
472
  type: Boolean,
@@ -480,112 +478,110 @@ const Je = x({
480
478
  validator: (e) => ["top", "bottom"].includes(e)
481
479
  },
482
480
  ...ae(),
483
- ...Ve(),
484
- ...Ye(),
481
+ ...Ce(),
482
+ ...Ke(),
485
483
  height: {
486
484
  type: [Number, String],
487
485
  default: 64
488
486
  }
489
- }, "VAppBar"), Ke = B()({
487
+ }, "VAppBar"), Ge = k()({
490
488
  name: "VAppBar",
491
- props: Je(),
489
+ props: Ze(),
492
490
  emits: {
493
491
  "update:modelValue": (e) => !0
494
492
  },
495
- setup(e, u) {
493
+ setup(e, d) {
496
494
  let {
497
495
  slots: a
498
- } = u;
499
- const s = A(), c = xe(e, "modelValue"), r = v(() => {
500
- const d = new Set(e.scrollBehavior?.split(" ") ?? []);
496
+ } = d;
497
+ const o = A(), u = Re(e, "modelValue"), r = v(() => {
498
+ const s = new Set(e.scrollBehavior?.split(" ") ?? []);
501
499
  return {
502
- hide: d.has("hide"),
503
- // fullyHide: behavior.has('fully-hide'),
504
- inverted: d.has("inverted"),
505
- collapse: d.has("collapse"),
506
- elevate: d.has("elevate"),
507
- fadeImage: d.has("fade-image")
500
+ hide: s.has("hide"),
501
+ fullyHide: s.has("fully-hide"),
502
+ inverted: s.has("inverted"),
503
+ collapse: s.has("collapse"),
504
+ elevate: s.has("elevate"),
505
+ fadeImage: s.has("fade-image")
508
506
  // shrink: behavior.has('shrink'),
509
507
  };
510
- }), S = v(() => {
511
- const d = r.value;
512
- return d.hide || // behavior.fullyHide ||
513
- d.inverted || d.collapse || d.elevate || d.fadeImage || // behavior.shrink ||
514
- !c.value;
508
+ }), _ = v(() => {
509
+ const s = r.value;
510
+ return s.hide || s.fullyHide || s.inverted || s.collapse || s.elevate || s.fadeImage || // behavior.shrink ||
511
+ !u.value;
515
512
  }), {
516
- currentScroll: g,
517
- scrollThreshold: _,
518
- isScrollingUp: o,
513
+ currentScroll: m,
514
+ scrollThreshold: S,
515
+ isScrollingUp: i,
519
516
  scrollRatio: l
520
- } = Ge(e, {
521
- canScroll: S
522
- }), f = v(() => e.collapse || r.value.collapse && (r.value.inverted ? l.value > 0 : l.value === 0)), m = v(() => e.flat || r.value.elevate && (r.value.inverted ? g.value > 0 : g.value === 0)), n = v(() => r.value.fadeImage ? r.value.inverted ? 1 - l.value : l.value : void 0), h = v(() => {
523
- if (r.value.hide && r.value.inverted)
524
- return 0;
525
- const d = s.value?.contentHeight ?? 0, I = s.value?.extensionHeight ?? 0;
526
- return d + I;
517
+ } = Ye(e, {
518
+ canScroll: _
519
+ }), f = v(() => r.value.hide || r.value.fullyHide), g = v(() => e.collapse || r.value.collapse && (r.value.inverted ? l.value > 0 : l.value === 0)), n = v(() => e.flat || r.value.fullyHide && !u.value || r.value.elevate && (r.value.inverted ? m.value > 0 : m.value === 0)), h = v(() => r.value.fadeImage ? r.value.inverted ? 1 - l.value : l.value : void 0), T = v(() => {
520
+ const s = Number(o.value?.contentHeight ?? e.height), x = Number(o.value?.extensionHeight ?? 0);
521
+ return f.value ? m.value < S.value || r.value.fullyHide ? s + x : s : s + x;
527
522
  });
528
- Be(v(() => !!e.scrollBehavior), () => {
529
- ke(() => {
530
- r.value.hide ? r.value.inverted ? c.value = g.value > _.value : c.value = o.value || g.value < _.value : c.value = !0;
523
+ we(v(() => !!e.scrollBehavior), () => {
524
+ Ne(() => {
525
+ f.value ? r.value.inverted ? u.value = m.value > S.value : u.value = i.value || m.value < S.value : u.value = !0;
531
526
  });
532
527
  });
533
528
  const {
534
- ssrBootStyles: T
535
- } = je(), {
536
- layoutItemStyles: w
537
- } = Pe({
529
+ ssrBootStyles: C
530
+ } = Me(), {
531
+ layoutItemStyles: R,
532
+ layoutIsReady: w
533
+ } = ze({
538
534
  id: e.name,
539
535
  order: v(() => parseInt(e.order, 10)),
540
536
  position: z(e, "location"),
541
- layoutSize: h,
542
- elementSize: y(void 0),
543
- active: c,
537
+ layoutSize: T,
538
+ elementSize: b(void 0),
539
+ active: u,
544
540
  absolute: z(e, "absolute")
545
541
  });
546
- return k(() => {
547
- const d = Y.filterProps(e);
548
- return t(Y, U({
549
- ref: s,
542
+ return P(() => {
543
+ const s = K.filterProps(e);
544
+ return t(K, U({
545
+ ref: o,
550
546
  class: ["v-app-bar", {
551
547
  "v-app-bar--bottom": e.location === "bottom"
552
548
  }, e.class],
553
549
  style: [{
554
- ...w.value,
555
- "--v-toolbar-image-opacity": n.value,
550
+ ...R.value,
551
+ "--v-toolbar-image-opacity": h.value,
556
552
  height: void 0,
557
- ...T.value
553
+ ...C.value
558
554
  }, e.style]
559
- }, d, {
560
- collapse: f.value,
561
- flat: m.value
555
+ }, s, {
556
+ collapse: g.value,
557
+ flat: n.value
562
558
  }), a);
563
- }), {};
559
+ }), w;
564
560
  }
565
- }), Qe = B()({
561
+ }), Je = k()({
566
562
  name: "VAppBarTitle",
567
- props: Z(),
568
- setup(e, u) {
563
+ props: X(),
564
+ setup(e, d) {
569
565
  let {
570
566
  slots: a
571
- } = u;
572
- return k(() => t(p, U(e, {
567
+ } = d;
568
+ return P(() => t(p, U(e, {
573
569
  class: "v-app-bar-title"
574
570
  }), a)), {};
575
571
  }
576
- }), lt = {
572
+ }), tt = {
577
573
  __name: "Header",
578
574
  setup(e) {
579
- const u = (
575
+ const d = (
580
576
  /** @type {import("@/types").Eodash} */
581
- Ce(we)
582
- ), a = u.brand?.name;
583
- return (s, c) => (Ie(), Re(Ke, { color: "primary" }, {
577
+ He(Ee)
578
+ ), a = d.brand?.name;
579
+ return (o, u) => (Ae(), Ue(Ge, { color: "primary" }, {
584
580
  default: O(() => [
585
- t(Qe, null, {
581
+ t(Je, null, {
586
582
  default: O(() => [
587
- ze(
588
- Ne(q(a)),
583
+ De(
584
+ je(q(a)),
589
585
  1
590
586
  /* TEXT */
591
587
  )
@@ -596,7 +592,7 @@ const Je = x({
596
592
  t(te, {
597
593
  class: "mx-12",
598
594
  style: { "max-width": "140px" },
599
- src: q(u).brand?.logo
595
+ src: q(d).brand?.logo
600
596
  }, null, 8, ["src"])
601
597
  ]),
602
598
  _: 1
@@ -605,5 +601,5 @@ const Je = x({
605
601
  }
606
602
  };
607
603
  export {
608
- lt as default
604
+ tt as default
609
605
  };