@eodash/eodash 5.0.0-alpha.2.5 → 5.0.0-alpha.2.7

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