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

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 (91) hide show
  1. package/README.md +14 -5
  2. package/core/{SuspensedDashboard.ce.vue → client/SuspensedDashboard.ce.vue} +30 -16
  3. package/core/client/components/DashboardLayout.vue +59 -0
  4. package/core/{components → client/components}/ErrorAlert.vue +6 -1
  5. package/core/{components → client/components}/Footer.vue +6 -1
  6. package/core/{components → client/components}/Header.vue +6 -1
  7. package/core/{components → client/components}/IframeWrapper.vue +1 -1
  8. package/core/{components → client/components}/MobileLayout.vue +41 -10
  9. package/core/{composables → client/composables}/DefineEodash.js +2 -1
  10. package/core/{composables → client/composables}/DefineWidgets.js +14 -8
  11. package/core/{composables → client/composables}/index.js +18 -119
  12. package/core/{eodash.js → client/eodash.js} +38 -36
  13. package/core/{plugins → client/plugins}/index.js +3 -0
  14. package/core/{plugins → client/plugins}/vuetify.js +1 -1
  15. package/core/{types.d.ts → client/types.d.ts} +42 -85
  16. package/core/{utils → client/utils}/eodashSTAC.js +29 -25
  17. package/core/client/utils/index.js +32 -0
  18. package/core/{views → client/views}/Dashboard.vue +39 -10
  19. package/dist/client/DashboardLayout-BYROtP-7.js +156 -0
  20. package/dist/{DynamicWebComponent-CgDh2csQ.js → client/DynamicWebComponent-BQhxFPM0.js} +6 -6
  21. package/dist/client/EodashDatePicker-CFltnt5d.js +1194 -0
  22. package/dist/client/EodashItemFilter-DIBDAHcc.js +65 -0
  23. package/dist/{EodashMap-CyR-Ldpk.js → client/EodashMap-C6jJ2Lb_.js} +14337 -15676
  24. package/dist/client/Footer-BVIZms1S.js +115 -0
  25. package/dist/client/Header-TsTL1d2R.js +633 -0
  26. package/dist/{IframeWrapper-Csep3rMg.js → client/IframeWrapper-XKChM78a.js} +4 -4
  27. package/dist/client/MobileLayout-BlGcMQra.js +957 -0
  28. package/dist/{VMain-COrg6UtF.js → client/VMain-C9XV5Lyg.js} +8 -8
  29. package/dist/{WidgetsContainer-XA6_dKOm.js → client/WidgetsContainer-BQXHnZpa.js} +8 -8
  30. package/dist/client/asWebComponent-CbdGxelK.js +20188 -0
  31. package/dist/{decoder-kAoyGIq9-DjQanfeo.js → client/decoder-HRvnjnEI-CHAYOWhz.js} +1 -1
  32. package/dist/client/eo-dash.js +6 -0
  33. package/dist/{eox-map-BJ9SIixs.js → client/eox-map-C3DL31fp.js} +1882 -1809
  34. package/dist/client/eox-stacinfo-l7ALSV90.js +13969 -0
  35. package/dist/client/forwardRefs-CyCJOFsz.js +192 -0
  36. package/dist/client/http-ZWiLaAeR.js +1337 -0
  37. package/dist/{index-Cskxla5D.js → client/index-CabQjjQg.js} +43 -74
  38. package/dist/{lerc-C9VL9kri-O4muG-MO.js → client/lerc-_E46UbWQ-TxBH4OeK.js} +1 -1
  39. package/dist/{ssrBoot-DCCAW5xY.js → client/ssrBoot-DWJ-z4I-.js} +3 -3
  40. package/dist/{style.css → client/style.css} +2 -2
  41. package/dist/client/transition-BlLt41wg.js +34 -0
  42. package/dist/node/cli.js +20 -0
  43. package/dist/node/main.js +2 -0
  44. package/{bin → dist/node}/types.d.ts +2 -2
  45. package/package.json +22 -21
  46. package/widgets/EodashDatePicker.vue +89 -36
  47. package/widgets/EodashItemFilter.vue +30 -14
  48. package/bin/app.js +0 -22
  49. package/bin/cli.js +0 -62
  50. package/bin/main.js +0 -9
  51. package/bin/serverConfig.js +0 -165
  52. package/bin/utils.js +0 -103
  53. package/core/components/DashboardLayout.vue +0 -36
  54. package/core/utils/index.js +0 -28
  55. package/dist/DashboardLayout-lzEvtalW.js +0 -148
  56. package/dist/EodashDatePicker-bIyNUYaG.js +0 -1653
  57. package/dist/EodashItemFilter-CpgyrJRX.js +0 -51
  58. package/dist/Footer-C2sIHSym.js +0 -118
  59. package/dist/Header-DFz2BUnp.js +0 -605
  60. package/dist/MobileLayout-CXNJL_q6.js +0 -984
  61. package/dist/asWebComponent-fqvymeM-.js +0 -13092
  62. package/dist/eo-dash.js +0 -6
  63. package/dist/eox-stacinfo-B-YrT7Ug.js +0 -13698
  64. package/dist/forwardRefs-Bxeu9Obx.js +0 -142
  65. package/dist/index-Zv5eTiB6.js +0 -34
  66. /package/core/{App.vue → client/App.vue} +0 -0
  67. /package/core/{asWebComponent.d.ts → client/asWebComponent.d.ts} +0 -0
  68. /package/core/{asWebComponent.js → client/asWebComponent.js} +0 -0
  69. /package/core/{components → client/components}/DynamicWebComponent.vue +0 -0
  70. /package/core/{components → client/components}/Loading.vue +0 -0
  71. /package/core/{main.js → client/main.js} +0 -0
  72. /package/core/{render.js → client/render.js} +0 -0
  73. /package/core/{store → client/store}/Actions.js +0 -0
  74. /package/core/{store → client/store}/States.js +0 -0
  75. /package/core/{store → client/store}/index.js +0 -0
  76. /package/core/{store → client/store}/stac.js +0 -0
  77. /package/core/{utils → client/utils}/helpers.js +0 -0
  78. /package/core/{utils → client/utils}/keys.js +0 -0
  79. /package/core/{vite-env.d.ts → client/vite-env.d.ts} +0 -0
  80. /package/dist/{.gitkeep → client/.gitkeep} +0 -0
  81. /package/dist/{_commonjsHelpers-DaMA6jEr.js → client/_commonjsHelpers-DaMA6jEr.js} +0 -0
  82. /package/dist/{basedecoder-Qm25PwVp-CHo5Pomv.js → client/basedecoder-Qm25PwVp-CHo5Pomv.js} +0 -0
  83. /package/dist/{deflate-Be2Arps5-hDqMz3RA.js → client/deflate-Be2Arps5-hDqMz3RA.js} +0 -0
  84. /package/dist/{eox-itemfilter-DcQkRD2l.js → client/eox-itemfilter-DcQkRD2l.js} +0 -0
  85. /package/dist/{jpeg-DNfUpLwy-Fjan-04T.js → client/jpeg-DNfUpLwy-Fjan-04T.js} +0 -0
  86. /package/dist/{lzw-BOMhmEDy-Dboc93VO.js → client/lzw-BOMhmEDy-Dboc93VO.js} +0 -0
  87. /package/dist/{packbits-DaUD6MLm-Bu1PoTGa.js → client/packbits-DaUD6MLm-Bu1PoTGa.js} +0 -0
  88. /package/dist/{pako.esm-C3kYPGGQ-BMki8cQY.js → client/pako.esm-C3kYPGGQ-BMki8cQY.js} +0 -0
  89. /package/dist/{raw-CcGKjn8q-DFOt-i8n.js → client/raw-CcGKjn8q-DFOt-i8n.js} +0 -0
  90. /package/dist/{webfontloader-CyOFAuFB.js → client/webfontloader-CyOFAuFB.js} +0 -0
  91. /package/dist/{webimage-D2c098k3-DLj1LQxB.js → client/webimage-D2c098k3-DLj1LQxB.js} +0 -0
@@ -0,0 +1,1194 @@
1
+ import { aB as Be, aC as Me, p as $, r as M, L as W, as as ue, w as L, aD as N, aE as et, aF as ye, aG as te, aH as ne, aI as ge, c as w, D as fe, aJ as tt, aK as he, C as V, ap as be, at as ve, aL as Re, aM as nt, ah as Fe, x as de, aN as we, d as R, aO as ot, s as Y, H as at, Z as _e, aP as De, q as rt, aQ as it, ay as lt, aR as st, e as ct, ac as ut, h as ft, g as Ve, y as Ne, i as vt, j as dt, Q as mt, R as yt, ad as gt, aj as ht, aS as bt, a as He, b as T, aT as wt, t as Ie, B as Et, v as St, F as je, ab as xt, aU as kt, o as pt, aV as Ot, aW as Ct, aX as We, T as Pt, aw as At, aY as Tt, aZ as Lt, $ as Ee, a6 as Bt, a1 as oe, a3 as Se, a_ as Mt, W as Rt, a9 as xe, a$ as Ft, b0 as _t, a0 as Dt, M as Vt, b1 as Nt, V as Ht, b2 as ae } from "./asWebComponent-CbdGxelK.js";
2
+ import { t as ke } from "./http-ZWiLaAeR.js";
3
+ import { g as It, B as re, c as pe, n as jt, m as Wt, u as $t, b as $e, a as qt, s as zt, f as Yt } from "./forwardRefs-CyCJOFsz.js";
4
+ import { m as Ut, M as Gt } from "./transition-BlLt41wg.js";
5
+ const K = /* @__PURE__ */ new WeakMap();
6
+ function Kt(e, t) {
7
+ Object.keys(t).forEach((n) => {
8
+ if (Be(n)) {
9
+ const a = Me(n), r = K.get(e);
10
+ if (t[n] == null)
11
+ r?.forEach((i) => {
12
+ const [o, l] = i;
13
+ o === a && (e.removeEventListener(a, l), r.delete(i));
14
+ });
15
+ else if (!r || ![...r].some((i) => i[0] === a && i[1] === t[n])) {
16
+ e.addEventListener(a, t[n]);
17
+ const i = r || /* @__PURE__ */ new Set();
18
+ i.add([a, t[n]]), K.has(e) || K.set(e, i);
19
+ }
20
+ } else
21
+ t[n] == null ? e.removeAttribute(n) : e.setAttribute(n, t[n]);
22
+ });
23
+ }
24
+ function Xt(e, t) {
25
+ Object.keys(t).forEach((n) => {
26
+ if (Be(n)) {
27
+ const a = Me(n), r = K.get(e);
28
+ r?.forEach((i) => {
29
+ const [o, l] = i;
30
+ o === a && (e.removeEventListener(a, l), r.delete(i));
31
+ });
32
+ } else
33
+ e.removeAttribute(n);
34
+ });
35
+ }
36
+ function qe(e) {
37
+ if (typeof e.getRootNode != "function") {
38
+ for (; e.parentNode; )
39
+ e = e.parentNode;
40
+ return e !== document ? null : document;
41
+ }
42
+ const t = e.getRootNode();
43
+ return t !== document && t.getRootNode({
44
+ composed: !0
45
+ }) !== document ? null : t;
46
+ }
47
+ function Zt(e) {
48
+ let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
49
+ for (; e; ) {
50
+ if (t ? Qt(e) : me(e))
51
+ return e;
52
+ e = e.parentElement;
53
+ }
54
+ return document.scrollingElement;
55
+ }
56
+ function X(e, t) {
57
+ const n = [];
58
+ if (t && e && !t.contains(e))
59
+ return n;
60
+ for (; e && (me(e) && n.push(e), e !== t); )
61
+ e = e.parentElement;
62
+ return n;
63
+ }
64
+ function me(e) {
65
+ if (!e || e.nodeType !== Node.ELEMENT_NODE)
66
+ return !1;
67
+ const t = window.getComputedStyle(e);
68
+ return t.overflowY === "scroll" || t.overflowY === "auto" && e.scrollHeight > e.clientHeight;
69
+ }
70
+ function Qt(e) {
71
+ if (!e || e.nodeType !== Node.ELEMENT_NODE)
72
+ return !1;
73
+ const t = window.getComputedStyle(e);
74
+ return ["scroll", "auto"].includes(t.overflowY);
75
+ }
76
+ function Jt(e) {
77
+ for (; e; ) {
78
+ if (window.getComputedStyle(e).position === "fixed")
79
+ return !0;
80
+ e = e.offsetParent;
81
+ }
82
+ return !1;
83
+ }
84
+ function en() {
85
+ return !0;
86
+ }
87
+ function ze(e, t, n) {
88
+ if (!e || Ye(e, n) === !1)
89
+ return !1;
90
+ const a = qe(t);
91
+ if (typeof ShadowRoot < "u" && a instanceof ShadowRoot && a.host === e.target)
92
+ return !1;
93
+ const r = (typeof n.value == "object" && n.value.include || (() => []))();
94
+ return r.push(t), !r.some((i) => i?.contains(e.target));
95
+ }
96
+ function Ye(e, t) {
97
+ return (typeof t.value == "object" && t.value.closeConditional || en)(e);
98
+ }
99
+ function tn(e, t, n) {
100
+ const a = typeof n.value == "function" ? n.value : n.value.handler;
101
+ t._clickOutside.lastMousedownWasOutside && ze(e, t, n) && setTimeout(() => {
102
+ Ye(e, n) && a && a(e);
103
+ }, 0);
104
+ }
105
+ function Oe(e, t) {
106
+ const n = qe(e);
107
+ t(document), typeof ShadowRoot < "u" && n instanceof ShadowRoot && t(n);
108
+ }
109
+ const nn = {
110
+ // [data-app] may not be found
111
+ // if using bind, inserted makes
112
+ // sure that the root element is
113
+ // available, iOS does not support
114
+ // clicks on body
115
+ mounted(e, t) {
116
+ const n = (r) => tn(r, e, t), a = (r) => {
117
+ e._clickOutside.lastMousedownWasOutside = ze(r, e, t);
118
+ };
119
+ Oe(e, (r) => {
120
+ r.addEventListener("click", n, !0), r.addEventListener("mousedown", a, !0);
121
+ }), e._clickOutside || (e._clickOutside = {
122
+ lastMousedownWasOutside: !1
123
+ }), e._clickOutside[t.instance.$.uid] = {
124
+ onClick: n,
125
+ onMousedown: a
126
+ };
127
+ },
128
+ unmounted(e, t) {
129
+ e._clickOutside && (Oe(e, (n) => {
130
+ if (!n || !e._clickOutside?.[t.instance.$.uid])
131
+ return;
132
+ const {
133
+ onClick: a,
134
+ onMousedown: r
135
+ } = e._clickOutside[t.instance.$.uid];
136
+ n.removeEventListener("click", a, !0), n.removeEventListener("mousedown", r, !0);
137
+ }), delete e._clickOutside[t.instance.$.uid]);
138
+ }
139
+ };
140
+ function ie(e, t) {
141
+ return {
142
+ x: e.x + t.x,
143
+ y: e.y + t.y
144
+ };
145
+ }
146
+ function on(e, t) {
147
+ return {
148
+ x: e.x - t.x,
149
+ y: e.y - t.y
150
+ };
151
+ }
152
+ function Ce(e, t) {
153
+ if (e.side === "top" || e.side === "bottom") {
154
+ const {
155
+ side: n,
156
+ align: a
157
+ } = e, r = a === "left" ? 0 : a === "center" ? t.width / 2 : a === "right" ? t.width : a, i = n === "top" ? 0 : n === "bottom" ? t.height : n;
158
+ return ie({
159
+ x: r,
160
+ y: i
161
+ }, t);
162
+ } else if (e.side === "left" || e.side === "right") {
163
+ const {
164
+ side: n,
165
+ align: a
166
+ } = e, r = n === "left" ? 0 : n === "right" ? t.width : n, i = a === "top" ? 0 : a === "center" ? t.height / 2 : a === "bottom" ? t.height : a;
167
+ return ie({
168
+ x: r,
169
+ y: i
170
+ }, t);
171
+ }
172
+ return ie({
173
+ x: t.width / 2,
174
+ y: t.height / 2
175
+ }, t);
176
+ }
177
+ const Ue = {
178
+ static: ln,
179
+ // specific viewport position, usually centered
180
+ connected: cn
181
+ // connected to a certain element
182
+ }, an = $({
183
+ locationStrategy: {
184
+ type: [String, Function],
185
+ default: "static",
186
+ validator: (e) => typeof e == "function" || e in Ue
187
+ },
188
+ location: {
189
+ type: String,
190
+ default: "bottom"
191
+ },
192
+ origin: {
193
+ type: String,
194
+ default: "auto"
195
+ },
196
+ offset: [Number, String, Array]
197
+ }, "VOverlay-location-strategies");
198
+ function rn(e, t) {
199
+ const n = M({}), a = M();
200
+ W && ue(() => !!(t.isActive.value && e.locationStrategy), (i) => {
201
+ L(() => e.locationStrategy, i), N(() => {
202
+ window.removeEventListener("resize", r), a.value = void 0;
203
+ }), window.addEventListener("resize", r, {
204
+ passive: !0
205
+ }), typeof e.locationStrategy == "function" ? a.value = e.locationStrategy(t, e, n)?.updateLocation : a.value = Ue[e.locationStrategy](t, e, n)?.updateLocation;
206
+ });
207
+ function r(i) {
208
+ a.value?.(i);
209
+ }
210
+ return {
211
+ contentStyles: n,
212
+ updateLocation: a
213
+ };
214
+ }
215
+ function ln() {
216
+ }
217
+ function sn(e, t) {
218
+ t ? e.style.removeProperty("left") : e.style.removeProperty("right");
219
+ const n = jt(e);
220
+ return t ? n.x += parseFloat(e.style.right || 0) : n.x -= parseFloat(e.style.left || 0), n.y -= parseFloat(e.style.top || 0), n;
221
+ }
222
+ function cn(e, t, n) {
223
+ (Array.isArray(e.target.value) || Jt(e.target.value)) && Object.assign(n.value, {
224
+ position: "fixed",
225
+ top: 0,
226
+ [e.isRtl.value ? "right" : "left"]: 0
227
+ });
228
+ const {
229
+ preferredAnchor: r,
230
+ preferredOrigin: i
231
+ } = et(() => {
232
+ const v = ye(t.location, e.isRtl.value), u = t.origin === "overlap" ? v : t.origin === "auto" ? te(v) : ye(t.origin, e.isRtl.value);
233
+ return v.side === u.side && v.align === ne(u).align ? {
234
+ preferredAnchor: ge(v),
235
+ preferredOrigin: ge(u)
236
+ } : {
237
+ preferredAnchor: v,
238
+ preferredOrigin: u
239
+ };
240
+ }), [o, l, c, f] = ["minWidth", "minHeight", "maxWidth", "maxHeight"].map((v) => w(() => {
241
+ const u = parseFloat(t[v]);
242
+ return isNaN(u) ? 1 / 0 : u;
243
+ })), y = w(() => {
244
+ if (Array.isArray(t.offset))
245
+ return t.offset;
246
+ if (typeof t.offset == "string") {
247
+ const v = t.offset.split(" ").map(parseFloat);
248
+ return v.length < 2 && v.push(0), v;
249
+ }
250
+ return typeof t.offset == "number" ? [t.offset, 0] : [0, 0];
251
+ });
252
+ let x = !1;
253
+ const g = new ResizeObserver(() => {
254
+ x && E();
255
+ });
256
+ L([e.target, e.contentEl], (v, u) => {
257
+ let [C, P] = v, [S, h] = u;
258
+ S && !Array.isArray(S) && g.unobserve(S), C && !Array.isArray(C) && g.observe(C), h && g.unobserve(h), P && g.observe(P);
259
+ }, {
260
+ immediate: !0
261
+ }), N(() => {
262
+ g.disconnect();
263
+ });
264
+ function E() {
265
+ if (x = !1, requestAnimationFrame(() => x = !0), !e.target.value || !e.contentEl.value)
266
+ return;
267
+ const v = It(e.target.value), u = sn(e.contentEl.value, e.isRtl.value), C = X(e.contentEl.value), P = 12;
268
+ C.length || (C.push(document.documentElement), e.contentEl.value.style.top && e.contentEl.value.style.left || (u.x -= parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x") || 0), u.y -= parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y") || 0)));
269
+ const S = C.reduce((k, b) => {
270
+ const d = b.getBoundingClientRect(), m = new re({
271
+ x: b === document.documentElement ? 0 : d.x,
272
+ y: b === document.documentElement ? 0 : d.y,
273
+ width: b.clientWidth,
274
+ height: b.clientHeight
275
+ });
276
+ return k ? new re({
277
+ x: Math.max(k.left, m.left),
278
+ y: Math.max(k.top, m.top),
279
+ width: Math.min(k.right, m.right) - Math.max(k.left, m.left),
280
+ height: Math.min(k.bottom, m.bottom) - Math.max(k.top, m.top)
281
+ }) : m;
282
+ }, void 0);
283
+ S.x += P, S.y += P, S.width -= P * 2, S.height -= P * 2;
284
+ let h = {
285
+ anchor: r.value,
286
+ origin: i.value
287
+ };
288
+ function H(k) {
289
+ const b = new re(u), d = Ce(k.anchor, v), m = Ce(k.origin, b);
290
+ let {
291
+ x: _,
292
+ y: B
293
+ } = on(d, m);
294
+ switch (k.anchor.side) {
295
+ case "top":
296
+ B -= y.value[0];
297
+ break;
298
+ case "bottom":
299
+ B += y.value[0];
300
+ break;
301
+ case "left":
302
+ _ -= y.value[0];
303
+ break;
304
+ case "right":
305
+ _ += y.value[0];
306
+ break;
307
+ }
308
+ switch (k.anchor.align) {
309
+ case "top":
310
+ B -= y.value[1];
311
+ break;
312
+ case "bottom":
313
+ B += y.value[1];
314
+ break;
315
+ case "left":
316
+ _ -= y.value[1];
317
+ break;
318
+ case "right":
319
+ _ += y.value[1];
320
+ break;
321
+ }
322
+ return b.x += _, b.y += B, b.width = Math.min(b.width, c.value), b.height = Math.min(b.height, f.value), {
323
+ overflows: pe(b, S),
324
+ x: _,
325
+ y: B
326
+ };
327
+ }
328
+ let F = 0, A = 0;
329
+ const s = {
330
+ x: 0,
331
+ y: 0
332
+ }, I = {
333
+ x: !1,
334
+ y: !1
335
+ };
336
+ let Q = -1;
337
+ for (; ; ) {
338
+ if (Q++ > 10) {
339
+ tt("Infinite loop detected in connectedLocationStrategy");
340
+ break;
341
+ }
342
+ const {
343
+ x: k,
344
+ y: b,
345
+ overflows: d
346
+ } = H(h);
347
+ F += k, A += b, u.x += k, u.y += b;
348
+ {
349
+ const m = he(h.anchor), _ = d.x.before || d.x.after, B = d.y.before || d.y.after;
350
+ let q = !1;
351
+ if (["x", "y"].forEach((O) => {
352
+ if (O === "x" && _ && !I.x || O === "y" && B && !I.y) {
353
+ const D = {
354
+ anchor: {
355
+ ...h.anchor
356
+ },
357
+ origin: {
358
+ ...h.origin
359
+ }
360
+ }, U = O === "x" ? m === "y" ? ne : te : m === "y" ? te : ne;
361
+ D.anchor = U(D.anchor), D.origin = U(D.origin);
362
+ const {
363
+ overflows: j
364
+ } = H(D);
365
+ (j[O].before <= d[O].before && j[O].after <= d[O].after || j[O].before + j[O].after < (d[O].before + d[O].after) / 2) && (h = D, q = I[O] = !0);
366
+ }
367
+ }), q)
368
+ continue;
369
+ }
370
+ d.x.before && (F += d.x.before, u.x += d.x.before), d.x.after && (F -= d.x.after, u.x -= d.x.after), d.y.before && (A += d.y.before, u.y += d.y.before), d.y.after && (A -= d.y.after, u.y -= d.y.after);
371
+ {
372
+ const m = pe(u, S);
373
+ s.x = S.width - m.x.before - m.x.after, s.y = S.height - m.y.before - m.y.after, F += m.x.before, u.x += m.x.before, A += m.y.before, u.y += m.y.before;
374
+ }
375
+ break;
376
+ }
377
+ const J = he(h.anchor);
378
+ return Object.assign(n.value, {
379
+ "--v-overlay-anchor-origin": `${h.anchor.side} ${h.anchor.align}`,
380
+ transformOrigin: `${h.origin.side} ${h.origin.align}`,
381
+ // transform: `translate(${pixelRound(x)}px, ${pixelRound(y)}px)`,
382
+ top: V(le(A)),
383
+ left: e.isRtl.value ? void 0 : V(le(F)),
384
+ right: e.isRtl.value ? V(le(-F)) : void 0,
385
+ minWidth: V(J === "y" ? Math.min(o.value, v.width) : o.value),
386
+ maxWidth: V(Pe(be(s.x, o.value === 1 / 0 ? 0 : o.value, c.value))),
387
+ maxHeight: V(Pe(be(s.y, l.value === 1 / 0 ? 0 : l.value, f.value)))
388
+ }), {
389
+ available: s,
390
+ contentBox: u
391
+ };
392
+ }
393
+ return L(() => [r.value, i.value, t.offset, t.minWidth, t.minHeight, t.maxWidth, t.maxHeight], () => E()), fe(() => {
394
+ const v = E();
395
+ if (!v)
396
+ return;
397
+ const {
398
+ available: u,
399
+ contentBox: C
400
+ } = v;
401
+ C.height > u.y && requestAnimationFrame(() => {
402
+ E(), requestAnimationFrame(() => {
403
+ E();
404
+ });
405
+ });
406
+ }), {
407
+ updateLocation: E
408
+ };
409
+ }
410
+ function le(e) {
411
+ return Math.round(e * devicePixelRatio) / devicePixelRatio;
412
+ }
413
+ function Pe(e) {
414
+ return Math.ceil(e * devicePixelRatio) / devicePixelRatio;
415
+ }
416
+ let se = !0;
417
+ const Z = [];
418
+ function un(e) {
419
+ !se || Z.length ? (Z.push(e), ce()) : (se = !1, e(), ce());
420
+ }
421
+ let Ae = -1;
422
+ function ce() {
423
+ cancelAnimationFrame(Ae), Ae = requestAnimationFrame(() => {
424
+ const e = Z.shift();
425
+ e && e(), Z.length ? ce() : se = !0;
426
+ });
427
+ }
428
+ const Ge = {
429
+ none: null,
430
+ close: dn,
431
+ block: mn,
432
+ reposition: yn
433
+ }, fn = $({
434
+ scrollStrategy: {
435
+ type: [String, Function],
436
+ default: "block",
437
+ validator: (e) => typeof e == "function" || e in Ge
438
+ }
439
+ }, "VOverlay-scroll-strategies");
440
+ function vn(e, t) {
441
+ if (!W)
442
+ return;
443
+ let n;
444
+ ve(async () => {
445
+ n?.stop(), t.isActive.value && e.scrollStrategy && (n = Re(), await new Promise((a) => setTimeout(a)), n.active && n.run(() => {
446
+ typeof e.scrollStrategy == "function" ? e.scrollStrategy(t, e, n) : Ge[e.scrollStrategy]?.(t, e, n);
447
+ }));
448
+ }), N(() => {
449
+ n?.stop();
450
+ });
451
+ }
452
+ function dn(e) {
453
+ function t(n) {
454
+ e.isActive.value = !1;
455
+ }
456
+ Ke(e.targetEl.value ?? e.contentEl.value, t);
457
+ }
458
+ function mn(e, t) {
459
+ const n = e.root.value?.offsetParent, a = [.../* @__PURE__ */ new Set([...X(e.targetEl.value, t.contained ? n : void 0), ...X(e.contentEl.value, t.contained ? n : void 0)])].filter((o) => !o.classList.contains("v-overlay-scroll-blocked")), r = window.innerWidth - document.documentElement.offsetWidth, i = ((o) => me(o) && o)(n || document.documentElement);
460
+ i && e.root.value.classList.add("v-overlay--scroll-blocked"), a.forEach((o, l) => {
461
+ o.style.setProperty("--v-body-scroll-x", V(-o.scrollLeft)), o.style.setProperty("--v-body-scroll-y", V(-o.scrollTop)), o !== document.documentElement && o.style.setProperty("--v-scrollbar-offset", V(r)), o.classList.add("v-overlay-scroll-blocked");
462
+ }), N(() => {
463
+ a.forEach((o, l) => {
464
+ const c = parseFloat(o.style.getPropertyValue("--v-body-scroll-x")), f = parseFloat(o.style.getPropertyValue("--v-body-scroll-y")), y = o.style.scrollBehavior;
465
+ o.style.scrollBehavior = "auto", o.style.removeProperty("--v-body-scroll-x"), o.style.removeProperty("--v-body-scroll-y"), o.style.removeProperty("--v-scrollbar-offset"), o.classList.remove("v-overlay-scroll-blocked"), o.scrollLeft = -c, o.scrollTop = -f, o.style.scrollBehavior = y;
466
+ }), i && e.root.value.classList.remove("v-overlay--scroll-blocked");
467
+ });
468
+ }
469
+ function yn(e, t, n) {
470
+ let a = !1, r = -1, i = -1;
471
+ function o(l) {
472
+ un(() => {
473
+ const c = performance.now();
474
+ e.updateLocation.value?.(l), a = (performance.now() - c) / (1e3 / 60) > 2;
475
+ });
476
+ }
477
+ i = (typeof requestIdleCallback > "u" ? (l) => l() : requestIdleCallback)(() => {
478
+ n.run(() => {
479
+ Ke(e.targetEl.value ?? e.contentEl.value, (l) => {
480
+ a ? (cancelAnimationFrame(r), r = requestAnimationFrame(() => {
481
+ r = requestAnimationFrame(() => {
482
+ o(l);
483
+ });
484
+ })) : o(l);
485
+ });
486
+ });
487
+ }), N(() => {
488
+ typeof cancelIdleCallback < "u" && cancelIdleCallback(i), cancelAnimationFrame(r);
489
+ });
490
+ }
491
+ function Ke(e, t) {
492
+ const n = [document, ...X(e)];
493
+ n.forEach((a) => {
494
+ a.addEventListener("scroll", t, {
495
+ passive: !0
496
+ });
497
+ }), N(() => {
498
+ n.forEach((a) => {
499
+ a.removeEventListener("scroll", t);
500
+ });
501
+ });
502
+ }
503
+ const gn = Symbol.for("vuetify:v-menu"), hn = $({
504
+ closeDelay: [Number, String],
505
+ openDelay: [Number, String]
506
+ }, "delay");
507
+ function bn(e, t) {
508
+ let n = () => {
509
+ };
510
+ function a(o) {
511
+ n?.();
512
+ const l = Number(o ? e.openDelay : e.closeDelay);
513
+ return new Promise((c) => {
514
+ n = nt(l, () => {
515
+ t?.(o), c(o);
516
+ });
517
+ });
518
+ }
519
+ function r() {
520
+ return a(!0);
521
+ }
522
+ function i() {
523
+ return a(!1);
524
+ }
525
+ return {
526
+ clearDelay: n,
527
+ runOpenDelay: r,
528
+ runCloseDelay: i
529
+ };
530
+ }
531
+ const wn = $({
532
+ target: [String, Object],
533
+ activator: [String, Object],
534
+ activatorProps: {
535
+ type: Object,
536
+ default: () => ({})
537
+ },
538
+ openOnClick: {
539
+ type: Boolean,
540
+ default: void 0
541
+ },
542
+ openOnHover: Boolean,
543
+ openOnFocus: {
544
+ type: Boolean,
545
+ default: void 0
546
+ },
547
+ closeOnContentClick: Boolean,
548
+ ...hn()
549
+ }, "VOverlay-activator");
550
+ function En(e, t) {
551
+ let {
552
+ isActive: n,
553
+ isTop: a
554
+ } = t;
555
+ const r = Fe("useActivator"), i = M();
556
+ let o = !1, l = !1, c = !0;
557
+ const f = w(() => e.openOnFocus || e.openOnFocus == null && e.openOnHover), y = w(() => e.openOnClick || e.openOnClick == null && !e.openOnHover && !f.value), {
558
+ runOpenDelay: x,
559
+ runCloseDelay: g
560
+ } = bn(e, (s) => {
561
+ s === (e.openOnHover && o || f.value && l) && !(e.openOnHover && n.value && !a.value) && (n.value !== s && (c = !0), n.value = s);
562
+ }), E = M(), v = {
563
+ onClick: (s) => {
564
+ s.stopPropagation(), i.value = s.currentTarget || s.target, n.value || (E.value = [s.clientX, s.clientY]), n.value = !n.value;
565
+ },
566
+ onMouseenter: (s) => {
567
+ s.sourceCapabilities?.firesTouchEvents || (o = !0, i.value = s.currentTarget || s.target, x());
568
+ },
569
+ onMouseleave: (s) => {
570
+ o = !1, g();
571
+ },
572
+ onFocus: (s) => {
573
+ ot(s.target, ":focus-visible") !== !1 && (l = !0, s.stopPropagation(), i.value = s.currentTarget || s.target, x());
574
+ },
575
+ onBlur: (s) => {
576
+ l = !1, s.stopPropagation(), g();
577
+ }
578
+ }, u = w(() => {
579
+ const s = {};
580
+ return y.value && (s.onClick = v.onClick), e.openOnHover && (s.onMouseenter = v.onMouseenter, s.onMouseleave = v.onMouseleave), f.value && (s.onFocus = v.onFocus, s.onBlur = v.onBlur), s;
581
+ }), C = w(() => {
582
+ const s = {};
583
+ if (e.openOnHover && (s.onMouseenter = () => {
584
+ o = !0, x();
585
+ }, s.onMouseleave = () => {
586
+ o = !1, g();
587
+ }), f.value && (s.onFocusin = () => {
588
+ l = !0, x();
589
+ }, s.onFocusout = () => {
590
+ l = !1, g();
591
+ }), e.closeOnContentClick) {
592
+ const I = de(gn, null);
593
+ s.onClick = () => {
594
+ n.value = !1, I?.closeParents();
595
+ };
596
+ }
597
+ return s;
598
+ }), P = w(() => {
599
+ const s = {};
600
+ return e.openOnHover && (s.onMouseenter = () => {
601
+ c && (o = !0, c = !1, x());
602
+ }, s.onMouseleave = () => {
603
+ o = !1, g();
604
+ }), s;
605
+ });
606
+ L(a, (s) => {
607
+ s && (e.openOnHover && !o && (!f.value || !l) || f.value && !l && (!e.openOnHover || !o)) && (n.value = !1);
608
+ }), L(n, (s) => {
609
+ s || setTimeout(() => {
610
+ E.value = void 0;
611
+ });
612
+ }, {
613
+ flush: "post"
614
+ });
615
+ const S = we();
616
+ ve(() => {
617
+ S.value && fe(() => {
618
+ i.value = S.el;
619
+ });
620
+ });
621
+ const h = we(), H = w(() => e.target === "cursor" && E.value ? E.value : h.value ? h.el : Xe(e.target, r) || i.value), F = w(() => Array.isArray(H.value) ? void 0 : H.value);
622
+ let A;
623
+ return L(() => !!e.activator, (s) => {
624
+ s && W ? (A = Re(), A.run(() => {
625
+ Sn(e, r, {
626
+ activatorEl: i,
627
+ activatorEvents: u
628
+ });
629
+ })) : A && A.stop();
630
+ }, {
631
+ flush: "post",
632
+ immediate: !0
633
+ }), N(() => {
634
+ A?.stop();
635
+ }), {
636
+ activatorEl: i,
637
+ activatorRef: S,
638
+ target: H,
639
+ targetEl: F,
640
+ targetRef: h,
641
+ activatorEvents: u,
642
+ contentEvents: C,
643
+ scrimEvents: P
644
+ };
645
+ }
646
+ function Sn(e, t, n) {
647
+ let {
648
+ activatorEl: a,
649
+ activatorEvents: r
650
+ } = n;
651
+ L(() => e.activator, (c, f) => {
652
+ if (f && c !== f) {
653
+ const y = l(f);
654
+ y && o(y);
655
+ }
656
+ c && fe(() => i());
657
+ }, {
658
+ immediate: !0
659
+ }), L(() => e.activatorProps, () => {
660
+ i();
661
+ }), N(() => {
662
+ o();
663
+ });
664
+ function i() {
665
+ let c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : l(), f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : e.activatorProps;
666
+ c && Kt(c, R(r.value, f));
667
+ }
668
+ function o() {
669
+ let c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : l(), f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : e.activatorProps;
670
+ c && Xt(c, R(r.value, f));
671
+ }
672
+ function l() {
673
+ let c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : e.activator;
674
+ const f = Xe(c, t);
675
+ return a.value = f?.nodeType === Node.ELEMENT_NODE ? f : void 0, a.value;
676
+ }
677
+ }
678
+ function Xe(e, t) {
679
+ if (!e)
680
+ return;
681
+ let n;
682
+ if (e === "parent") {
683
+ let a = t?.proxy?.$el?.parentNode;
684
+ for (; a?.hasAttribute("data-no-activator"); )
685
+ a = a.parentNode;
686
+ n = a;
687
+ } else
688
+ typeof e == "string" ? n = document.querySelector(e) : "$el" in e ? n = e.$el : n = e;
689
+ return n;
690
+ }
691
+ function xn() {
692
+ if (!W)
693
+ return Y(!1);
694
+ const {
695
+ ssr: e
696
+ } = at();
697
+ if (e) {
698
+ const t = Y(!1);
699
+ return _e(() => {
700
+ t.value = !0;
701
+ }), t;
702
+ } else
703
+ return Y(!0);
704
+ }
705
+ const Te = Symbol.for("vuetify:stack"), z = De([]);
706
+ function kn(e, t, n) {
707
+ const a = Fe("useStack"), r = !n, i = de(Te, void 0), o = De({
708
+ activeChildren: /* @__PURE__ */ new Set()
709
+ });
710
+ rt(Te, o);
711
+ const l = Y(+t.value);
712
+ ue(e, () => {
713
+ const y = z.at(-1)?.[1];
714
+ l.value = y ? y + 10 : +t.value, r && z.push([a.uid, l.value]), i?.activeChildren.add(a.uid), N(() => {
715
+ if (r) {
716
+ const x = it(z).findIndex((g) => g[0] === a.uid);
717
+ z.splice(x, 1);
718
+ }
719
+ i?.activeChildren.delete(a.uid);
720
+ });
721
+ });
722
+ const c = Y(!0);
723
+ r && ve(() => {
724
+ const y = z.at(-1)?.[0] === a.uid;
725
+ setTimeout(() => c.value = y);
726
+ });
727
+ const f = w(() => !o.activeChildren.size);
728
+ return {
729
+ globalTop: lt(c),
730
+ localTop: f,
731
+ stackStyles: w(() => ({
732
+ zIndex: l.value
733
+ }))
734
+ };
735
+ }
736
+ function pn(e) {
737
+ return {
738
+ teleportTarget: w(() => {
739
+ const n = e.value;
740
+ if (n === !0 || !W)
741
+ return;
742
+ const a = n === !1 ? document.body : typeof n == "string" ? document.querySelector(n) : n;
743
+ if (a == null) {
744
+ st(`Unable to locate target ${n}`);
745
+ return;
746
+ }
747
+ let r = a.querySelector(":scope > .v-overlay-container");
748
+ return r || (r = document.createElement("div"), r.className = "v-overlay-container", a.appendChild(r)), r;
749
+ })
750
+ };
751
+ }
752
+ function On(e) {
753
+ const {
754
+ modelValue: t,
755
+ color: n,
756
+ ...a
757
+ } = e;
758
+ return T(xt, {
759
+ name: "fade-transition",
760
+ appear: !0
761
+ }, {
762
+ default: () => [e.modelValue && T("div", R({
763
+ class: ["v-overlay__scrim", e.color.backgroundColorClasses.value],
764
+ style: e.color.backgroundColorStyles.value
765
+ }, a), null)]
766
+ });
767
+ }
768
+ const Ze = $({
769
+ absolute: Boolean,
770
+ attach: [Boolean, String, Object],
771
+ closeOnBack: {
772
+ type: Boolean,
773
+ default: !0
774
+ },
775
+ contained: Boolean,
776
+ contentClass: null,
777
+ contentProps: null,
778
+ disabled: Boolean,
779
+ opacity: [Number, String],
780
+ noClickAnimation: Boolean,
781
+ modelValue: Boolean,
782
+ persistent: Boolean,
783
+ scrim: {
784
+ type: [Boolean, String],
785
+ default: !0
786
+ },
787
+ zIndex: {
788
+ type: [Number, String],
789
+ default: 2e3
790
+ },
791
+ ...wn(),
792
+ ...ct(),
793
+ ...ut(),
794
+ ...Wt(),
795
+ ...an(),
796
+ ...fn(),
797
+ ...ft(),
798
+ ...Ut()
799
+ }, "VOverlay"), Le = Ve()({
800
+ name: "VOverlay",
801
+ directives: {
802
+ ClickOutside: nn
803
+ },
804
+ inheritAttrs: !1,
805
+ props: {
806
+ _disableGlobalStack: Boolean,
807
+ ...Ze()
808
+ },
809
+ emits: {
810
+ "click:outside": (e) => !0,
811
+ "update:modelValue": (e) => !0,
812
+ afterEnter: () => !0,
813
+ afterLeave: () => !0
814
+ },
815
+ setup(e, t) {
816
+ let {
817
+ slots: n,
818
+ attrs: a,
819
+ emit: r
820
+ } = t;
821
+ const i = Ne(e, "modelValue"), o = w({
822
+ get: () => i.value,
823
+ set: (p) => {
824
+ p && e.disabled || (i.value = p);
825
+ }
826
+ }), {
827
+ teleportTarget: l
828
+ } = pn(w(() => e.attach || e.contained)), {
829
+ themeClasses: c
830
+ } = vt(e), {
831
+ rtlClasses: f,
832
+ isRtl: y
833
+ } = dt(), {
834
+ hasContent: x,
835
+ onAfterLeave: g
836
+ } = $t(e, o), E = mt(w(() => typeof e.scrim == "string" ? e.scrim : null)), {
837
+ globalTop: v,
838
+ localTop: u,
839
+ stackStyles: C
840
+ } = kn(o, yt(e, "zIndex"), e._disableGlobalStack), {
841
+ activatorEl: P,
842
+ activatorRef: S,
843
+ target: h,
844
+ targetEl: H,
845
+ targetRef: F,
846
+ activatorEvents: A,
847
+ contentEvents: s,
848
+ scrimEvents: I
849
+ } = En(e, {
850
+ isActive: o,
851
+ isTop: u
852
+ }), {
853
+ dimensionStyles: Q
854
+ } = gt(e), J = xn(), {
855
+ scopeId: k
856
+ } = $e();
857
+ L(() => e.disabled, (p) => {
858
+ p && (o.value = !1);
859
+ });
860
+ const b = M(), d = M(), m = M(), {
861
+ contentStyles: _,
862
+ updateLocation: B
863
+ } = rn(e, {
864
+ isRtl: y,
865
+ contentEl: m,
866
+ target: h,
867
+ isActive: o
868
+ });
869
+ vn(e, {
870
+ root: b,
871
+ contentEl: m,
872
+ targetEl: H,
873
+ isActive: o,
874
+ updateLocation: B
875
+ });
876
+ function q(p) {
877
+ r("click:outside", p), e.persistent ? G() : o.value = !1;
878
+ }
879
+ function O(p) {
880
+ return o.value && v.value && // If using scrim, only close if clicking on it rather than anything opened on top
881
+ (!e.scrim || p.target === d.value);
882
+ }
883
+ W && L(o, (p) => {
884
+ p ? window.addEventListener("keydown", D) : window.removeEventListener("keydown", D);
885
+ }, {
886
+ immediate: !0
887
+ }), ht(() => {
888
+ W && window.removeEventListener("keydown", D);
889
+ });
890
+ function D(p) {
891
+ p.key === "Escape" && v.value && (e.persistent ? G() : (o.value = !1, m.value?.contains(document.activeElement) && P.value?.focus()));
892
+ }
893
+ const U = bt();
894
+ ue(() => e.closeOnBack, () => {
895
+ kt(U, (p) => {
896
+ v.value && o.value ? (p(!1), e.persistent ? G() : o.value = !1) : p();
897
+ });
898
+ });
899
+ const j = M();
900
+ L(() => o.value && (e.absolute || e.contained) && l.value == null, (p) => {
901
+ if (p) {
902
+ const ee = Zt(b.value);
903
+ ee && ee !== document.scrollingElement && (j.value = ee.scrollTop);
904
+ }
905
+ });
906
+ function G() {
907
+ e.noClickAnimation || m.value && qt(m.value, [{
908
+ transformOrigin: "center"
909
+ }, {
910
+ transform: "scale(1.03)"
911
+ }, {
912
+ transformOrigin: "center"
913
+ }], {
914
+ duration: 150,
915
+ easing: zt
916
+ });
917
+ }
918
+ function Qe() {
919
+ r("afterEnter");
920
+ }
921
+ function Je() {
922
+ g(), r("afterLeave");
923
+ }
924
+ return He(() => T(je, null, [n.activator?.({
925
+ isActive: o.value,
926
+ targetRef: F,
927
+ props: R({
928
+ ref: S
929
+ }, A.value, e.activatorProps)
930
+ }), J.value && x.value && T(wt, {
931
+ disabled: !l.value,
932
+ to: l.value
933
+ }, {
934
+ default: () => [T("div", R({
935
+ class: ["v-overlay", {
936
+ "v-overlay--absolute": e.absolute || e.contained,
937
+ "v-overlay--active": o.value,
938
+ "v-overlay--contained": e.contained
939
+ }, c.value, f.value, e.class],
940
+ style: [C.value, {
941
+ "--v-overlay-opacity": e.opacity,
942
+ top: V(j.value)
943
+ }, e.style],
944
+ ref: b
945
+ }, k, a), [T(On, R({
946
+ color: E,
947
+ modelValue: o.value && !!e.scrim,
948
+ ref: d
949
+ }, I.value), null), T(Gt, {
950
+ appear: !0,
951
+ persisted: !0,
952
+ transition: e.transition,
953
+ target: h.value,
954
+ onAfterEnter: Qe,
955
+ onAfterLeave: Je
956
+ }, {
957
+ default: () => [Ie(T("div", R({
958
+ ref: m,
959
+ class: ["v-overlay__content", e.contentClass],
960
+ style: [Q.value, _.value]
961
+ }, s.value, e.contentProps), [n.default?.({
962
+ isActive: o
963
+ })]), [[Et, o.value], [St("click-outside"), {
964
+ handler: q,
965
+ closeConditional: O,
966
+ include: () => [P.value]
967
+ }]])]
968
+ })])]
969
+ })])), {
970
+ activatorEl: P,
971
+ scrimEl: d,
972
+ target: h,
973
+ animateClick: G,
974
+ contentEl: m,
975
+ globalTop: v,
976
+ localTop: u,
977
+ updateLocation: B
978
+ };
979
+ }
980
+ }), Cn = $({
981
+ id: String,
982
+ text: String,
983
+ ...pt(Ze({
984
+ closeOnBack: !1,
985
+ location: "end",
986
+ locationStrategy: "connected",
987
+ eager: !0,
988
+ minWidth: 0,
989
+ offset: 10,
990
+ openOnClick: !1,
991
+ openOnHover: !0,
992
+ origin: "auto",
993
+ scrim: !1,
994
+ scrollStrategy: "reposition",
995
+ transition: !1
996
+ }), ["absolute", "persistent"])
997
+ }, "VTooltip"), Pn = Ve()({
998
+ name: "VTooltip",
999
+ props: Cn(),
1000
+ emits: {
1001
+ "update:modelValue": (e) => !0
1002
+ },
1003
+ setup(e, t) {
1004
+ let {
1005
+ slots: n
1006
+ } = t;
1007
+ const a = Ne(e, "modelValue"), {
1008
+ scopeId: r
1009
+ } = $e(), i = Ot(), o = w(() => e.id || `v-tooltip-${i}`), l = M(), c = w(() => e.location.split(" ").length > 1 ? e.location : e.location + " center"), f = w(() => e.origin === "auto" || e.origin === "overlap" || e.origin.split(" ").length > 1 || e.location.split(" ").length > 1 ? e.origin : e.origin + " center"), y = w(() => e.transition ? e.transition : a.value ? "scale-transition" : "fade-transition"), x = w(() => R({
1010
+ "aria-describedby": o.value
1011
+ }, e.activatorProps));
1012
+ return He(() => {
1013
+ const g = Le.filterProps(e);
1014
+ return T(Le, R({
1015
+ ref: l,
1016
+ class: ["v-tooltip", e.class],
1017
+ style: e.style,
1018
+ id: o.value
1019
+ }, g, {
1020
+ modelValue: a.value,
1021
+ "onUpdate:modelValue": (E) => a.value = E,
1022
+ transition: y.value,
1023
+ absolute: !0,
1024
+ location: c.value,
1025
+ origin: f.value,
1026
+ persistent: !0,
1027
+ role: "tooltip",
1028
+ activatorProps: x.value,
1029
+ _disableGlobalStack: !0
1030
+ }, r), {
1031
+ activator: n.activator,
1032
+ default: function() {
1033
+ for (var E = arguments.length, v = new Array(E), u = 0; u < E; u++)
1034
+ v[u] = arguments[u];
1035
+ return n.default?.(...v) ?? e.text;
1036
+ }
1037
+ });
1038
+ }), Yt({}, l);
1039
+ }
1040
+ });
1041
+ function An(e, t) {
1042
+ const n = typeof e == "string" ? Ct(e) : e, a = Tn(n, t);
1043
+ return {
1044
+ mounted: a,
1045
+ updated: a,
1046
+ unmounted(r) {
1047
+ We(null, r);
1048
+ }
1049
+ };
1050
+ }
1051
+ function Tn(e, t) {
1052
+ return function(n, a, r) {
1053
+ const i = typeof t == "function" ? t(a) : t, o = a.value?.text ?? a.value ?? i?.text, l = Pt(a.value) ? a.value : {}, c = () => o ?? n.innerHTML, f = (r.ctx === a.instance.$ ? Ln(r, a.instance.$)?.provides : r.ctx?.provides) ?? a.instance.$.provides, y = At(e, R(i, l), c);
1054
+ y.appContext = Object.assign(/* @__PURE__ */ Object.create(null), a.instance.$.appContext, {
1055
+ provides: f
1056
+ }), We(y, n);
1057
+ };
1058
+ }
1059
+ function Ln(e, t) {
1060
+ const n = /* @__PURE__ */ new Set(), a = (i) => {
1061
+ for (const o of i) {
1062
+ if (!o)
1063
+ continue;
1064
+ if (o === e)
1065
+ return !0;
1066
+ n.add(o);
1067
+ let l;
1068
+ if (o.suspense ? l = a([o.ssContent]) : Array.isArray(o.children) ? l = a(o.children) : o.component?.vnode && (l = a([o.component?.subTree])), l)
1069
+ return l;
1070
+ n.delete(o);
1071
+ }
1072
+ return !1;
1073
+ };
1074
+ if (!a([t.subTree]))
1075
+ throw new Error("Could not find original vnode");
1076
+ const r = Array.from(n).reverse();
1077
+ for (const i of r)
1078
+ if (i.component)
1079
+ return i.component;
1080
+ return t;
1081
+ }
1082
+ const Bn = An(Pn, (e) => ({
1083
+ activator: "parent",
1084
+ location: e.arg?.replace("-", " ") ?? "top",
1085
+ text: typeof e.value == "boolean" ? void 0 : e.value
1086
+ })), Mn = {
1087
+ class: "flex rounded-lg border border-gray-300 dark:border-gray-600",
1088
+ style: { margin: "2px" }
1089
+ }, Rn = ["value"], Nn = {
1090
+ __name: "EodashDatePicker",
1091
+ setup(e) {
1092
+ function t() {
1093
+ if (r.value && r.value.length > 0) {
1094
+ let o = 0;
1095
+ r.value.forEach((l) => {
1096
+ l?.dates && l.dates.forEach((c) => {
1097
+ c instanceof Date && c.getTime() > o && (o = c.getTime());
1098
+ });
1099
+ }), o !== 0 && (i.value = new Date(o));
1100
+ }
1101
+ }
1102
+ const n = (
1103
+ /** @type {import("@/types").Eodash} */
1104
+ de(Rt)
1105
+ ), a = M({
1106
+ input: "YYYY-MM-DD"
1107
+ }), r = M([]), i = w({
1108
+ get() {
1109
+ return new Date(ae.value) ?? /* @__PURE__ */ new Date();
1110
+ },
1111
+ /** @param {Date | string} updatedDate */
1112
+ set(o) {
1113
+ o instanceof Date && !isNaN(o) ? ae.value = new Date(o.getTime() - o.getTimezoneOffset() * 6e4).toISOString() : ae.value = (/* @__PURE__ */ new Date()).toISOString();
1114
+ }
1115
+ });
1116
+ return _e(() => {
1117
+ const { selectedStac: o } = Tt(Lt());
1118
+ L(
1119
+ [o],
1120
+ async ([l]) => {
1121
+ if (l) {
1122
+ const c = ke(
1123
+ `./${l.id}/collection.json`,
1124
+ n.stacEndpoint
1125
+ ), f = ke(
1126
+ l.links[1].href,
1127
+ c
1128
+ ), x = (await (await fetch(f)).json()).links.filter(
1129
+ (g) => g.rel === "item" && "datetime" in g
1130
+ ).map((g) => new Date(g.datetime));
1131
+ r.value = [
1132
+ {
1133
+ bar: !0,
1134
+ dates: x
1135
+ }
1136
+ ];
1137
+ }
1138
+ },
1139
+ { immediate: !0 }
1140
+ );
1141
+ }), (o, l) => (Ee(), Bt(
1142
+ je,
1143
+ null,
1144
+ [
1145
+ T(Se(_t), {
1146
+ modelValue: i.value,
1147
+ "onUpdate:modelValue": l[0] || (l[0] = (c) => i.value = c),
1148
+ masks: a.value,
1149
+ attributes: r.value
1150
+ }, {
1151
+ default: oe(({ inputValue: c, inputEvents: f }) => [
1152
+ xe("div", Mn, [
1153
+ xe("input", R({ value: c }, Ft(f, !0), {
1154
+ style: { margin: "1px" },
1155
+ class: "flex-grow px-1 py-1 bg-white dark:bg-gray-700"
1156
+ }), null, 16, Rn)
1157
+ ])
1158
+ ]),
1159
+ _: 1
1160
+ /* STABLE */
1161
+ }, 8, ["modelValue", "masks", "attributes"]),
1162
+ T(Mt, {
1163
+ align: "center",
1164
+ justify: "center",
1165
+ style: { "margin-top": "6px" }
1166
+ }, {
1167
+ default: oe(() => [
1168
+ Ie((Ee(), Dt(Ht, {
1169
+ density: "compact",
1170
+ onClick: t
1171
+ }, {
1172
+ default: oe(() => [
1173
+ T(Vt, {
1174
+ icon: [Se(Nt)]
1175
+ }, null, 8, ["icon"])
1176
+ ]),
1177
+ _: 1
1178
+ /* STABLE */
1179
+ })), [
1180
+ [Bn, "Set date to latest available dataset", "bottom"]
1181
+ ])
1182
+ ]),
1183
+ _: 1
1184
+ /* STABLE */
1185
+ })
1186
+ ],
1187
+ 64
1188
+ /* STABLE_FRAGMENT */
1189
+ ));
1190
+ }
1191
+ };
1192
+ export {
1193
+ Nn as default
1194
+ };