@wastedondestiny/destiny-library 1.5.0 → 1.5.2
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.
- package/dist/destiny-library.js +72 -67
- package/dist/destiny-library.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/destiny-library.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as eA, ref as x, onMounted as XA, nextTick as JB, onBeforeUnmount as lB, openBlock as O, createElementBlock as X, createElementVNode as U, normalizeClass as
|
|
1
|
+
import { defineComponent as eA, ref as x, onMounted as XA, nextTick as JB, onBeforeUnmount as lB, openBlock as O, createElementBlock as X, createElementVNode as U, normalizeClass as p, toDisplayString as oA, normalizeStyle as TB, renderSlot as v, withDirectives as nB, vShow as uB, watch as Cg, unref as Hg, reactive as DC, h as HA, getCurrentInstance as iC, shallowRef as oC, onUnmounted as rg, isRef as kA, isReactive as vg, isVNode as YC, createApp as yg, createBlock as CA, mergeProps as yB, createSlots as FC, withCtx as T, createCommentVNode as iA, normalizeProps as UC, guardReactiveProps as NC, createTextVNode as z, Fragment as xg, createVNode as $g, Teleport as cC, withModifiers as LC, createStaticVNode as aA } from "vue";
|
|
2
2
|
const GC = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IS0tIFVwbG9hZGVkIHRvOiBTVkcgUmVwbywgd3d3LnN2Z3JlcG8uY29tLCBHZW5lcmF0b3I6IFNWRyBSZXBvIE1peGVyIFRvb2xzIC0tPg0KPHN2ZyB3aWR0aD0iODAwcHgiIGhlaWdodD0iODAwcHgiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iIzAwMDAwMCIgZD0ibTE5MiAzODQgMzIwIDM4NCAzMjAtMzg0eiIvPjwvc3ZnPg==", hC = { class: "overflow-hidden" }, eC = { class: "text-xs font-bold text-zinc-900" }, wE = /* @__PURE__ */ eA({
|
|
3
3
|
__name: "Collapsible",
|
|
4
4
|
props: {
|
|
@@ -30,13 +30,13 @@ const GC = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idX
|
|
|
30
30
|
(i = M.value) == null || i.disconnect();
|
|
31
31
|
}), (i, Y) => (O(), X("div", hC, [
|
|
32
32
|
U("span", {
|
|
33
|
-
class:
|
|
33
|
+
class: p(["border-b-2 border-black/25 mt-2 mb-1 flex justify-between items-center opacity-90", { "cursor-pointer hover:opacity-100 hover:border-black/50": !i.noInteract }]),
|
|
34
34
|
onClick: D
|
|
35
35
|
}, [
|
|
36
36
|
U("span", eC, oA(i.name), 1),
|
|
37
37
|
U("img", {
|
|
38
38
|
src: GC,
|
|
39
|
-
class:
|
|
39
|
+
class: p(["h-4 w-4 transition-transform duration-350 opacity-75", { "-rotate-180": i.open }])
|
|
40
40
|
}, null, 2)
|
|
41
41
|
], 2),
|
|
42
42
|
U("div", {
|
|
@@ -79,7 +79,7 @@ const DE = /* @__PURE__ */ eA({
|
|
|
79
79
|
}, [
|
|
80
80
|
U("button", {
|
|
81
81
|
onClick: C[0] || (C[0] = () => A.value = !A.value),
|
|
82
|
-
class:
|
|
82
|
+
class: p(["h-5 w-6 px-1", {
|
|
83
83
|
"bg-zinc-300 py-1.5 h-8 -mt-1.5": A.value,
|
|
84
84
|
"rounded-t-lg": A.value && !I.side,
|
|
85
85
|
"rounded-r-lg": A.value && I.side
|
|
@@ -89,7 +89,7 @@ const DE = /* @__PURE__ */ eA({
|
|
|
89
89
|
]), 2),
|
|
90
90
|
nB(U("div", {
|
|
91
91
|
style: TB({ width: I.width }),
|
|
92
|
-
class:
|
|
92
|
+
class: p(["bg-zinc-300 text-xs rounded-ss-lg rounded-b-lg flex flex-col overflow-hidden", {
|
|
93
93
|
"drop-shadow-lg": !I.side,
|
|
94
94
|
"-mt-8 mr-6 drop-shadow-[-10px_0_8px_rgba(0,0,0,0.04)_-4px_0_3px_rgba(0,0,0,0.1)]": I.side
|
|
95
95
|
}])
|
|
@@ -144,7 +144,7 @@ var b = "top", _ = "bottom", AA = "right", f = "left", Zg = "auto", Mg = [b, _,
|
|
|
144
144
|
return g.concat([A + "-" + rA, A + "-" + Ig]);
|
|
145
145
|
}, []), OB = /* @__PURE__ */ [].concat(Mg, [Zg]).reduce(function(g, A) {
|
|
146
146
|
return g.concat([A, A + "-" + rA, A + "-" + Ig]);
|
|
147
|
-
}, []), yC = "beforeRead", xC = "read", OC = "afterRead", VC = "beforeMain", mC = "main",
|
|
147
|
+
}, []), yC = "beforeRead", xC = "read", OC = "afterRead", VC = "beforeMain", mC = "main", pC = "afterMain", HC = "beforeWrite", rC = "write", ZC = "afterWrite", WC = [yC, xC, OC, VC, mC, pC, HC, rC, ZC];
|
|
148
148
|
function UA(g) {
|
|
149
149
|
return g ? (g.nodeName || "").toLowerCase() : null;
|
|
150
150
|
}
|
|
@@ -244,7 +244,7 @@ function Wg(g) {
|
|
|
244
244
|
height: I
|
|
245
245
|
};
|
|
246
246
|
}
|
|
247
|
-
function
|
|
247
|
+
function pB(g, A) {
|
|
248
248
|
var B = A.getRootNode && A.getRootNode();
|
|
249
249
|
if (g.contains(A))
|
|
250
250
|
return !0;
|
|
@@ -316,7 +316,7 @@ function bC(g, A, B) {
|
|
|
316
316
|
var I = gg(g, A, B);
|
|
317
317
|
return I > B ? B : I;
|
|
318
318
|
}
|
|
319
|
-
function
|
|
319
|
+
function HB() {
|
|
320
320
|
return {
|
|
321
321
|
top: 0,
|
|
322
322
|
right: 0,
|
|
@@ -325,7 +325,7 @@ function pB() {
|
|
|
325
325
|
};
|
|
326
326
|
}
|
|
327
327
|
function rB(g) {
|
|
328
|
-
return Object.assign({},
|
|
328
|
+
return Object.assign({}, HB(), g);
|
|
329
329
|
}
|
|
330
330
|
function ZB(g, A) {
|
|
331
331
|
return A.reduce(function(B, I) {
|
|
@@ -346,7 +346,7 @@ function PC(g) {
|
|
|
346
346
|
}
|
|
347
347
|
function vC(g) {
|
|
348
348
|
var A = g.state, B = g.options, I = B.element, C = I === void 0 ? "[data-popper-arrow]" : I;
|
|
349
|
-
C != null && (typeof C == "string" && (C = A.elements.popper.querySelector(C), !C) ||
|
|
349
|
+
C != null && (typeof C == "string" && (C = A.elements.popper.querySelector(C), !C) || pB(A.elements.popper, C) && (A.elements.arrow = C));
|
|
350
350
|
}
|
|
351
351
|
var $C = {
|
|
352
352
|
name: "arrow",
|
|
@@ -535,7 +535,7 @@ function iB(g, A) {
|
|
|
535
535
|
function iI(g) {
|
|
536
536
|
var A = Bg(tg(g)), B = ["absolute", "fixed"].indexOf(NA(g).position) >= 0, I = B && $(g) ? wg(g) : g;
|
|
537
537
|
return ZA(I) ? A.filter(function(C) {
|
|
538
|
-
return ZA(C) &&
|
|
538
|
+
return ZA(C) && pB(C, I) && UA(C) !== "body" && (B ? NA(C).position !== "static" : !0);
|
|
539
539
|
}) : [];
|
|
540
540
|
}
|
|
541
541
|
function oI(g, A, B) {
|
|
@@ -608,8 +608,8 @@ function Qg(g, A) {
|
|
|
608
608
|
if (Y === _A && n) {
|
|
609
609
|
var V = n[C];
|
|
610
610
|
Object.keys(G).forEach(function(m) {
|
|
611
|
-
var y = [AA, _].indexOf(m) >= 0 ? 1 : -1,
|
|
612
|
-
G[m] += V[
|
|
611
|
+
var y = [AA, _].indexOf(m) >= 0 ? 1 : -1, H = [b, _].indexOf(m) >= 0 ? "y" : "x";
|
|
612
|
+
G[m] += V[H] * y;
|
|
613
613
|
});
|
|
614
614
|
}
|
|
615
615
|
return G;
|
|
@@ -653,13 +653,13 @@ function UI(g) {
|
|
|
653
653
|
allowedAutoPlacements: h
|
|
654
654
|
}) : BA);
|
|
655
655
|
}, []), S = A.rects.reference, N = A.rects.popper, F = /* @__PURE__ */ new Map(), G = !0, n = E[0], V = 0; V < E.length; V++) {
|
|
656
|
-
var m = E[V], y = FA(m),
|
|
656
|
+
var m = E[V], y = FA(m), H = zA(m) === rA, q = [b, _].indexOf(y) >= 0, gA = q ? "width" : "height", Z = Qg(A, {
|
|
657
657
|
placement: m,
|
|
658
658
|
boundary: Y,
|
|
659
659
|
rootBoundary: k,
|
|
660
660
|
altBoundary: j,
|
|
661
661
|
padding: i
|
|
662
|
-
}), W = q ?
|
|
662
|
+
}), W = q ? H ? AA : f : H ? _ : b;
|
|
663
663
|
S[gA] > N[gA] && (W = kg(W));
|
|
664
664
|
var r = kg(W), MA = [];
|
|
665
665
|
if (Q && MA.push(Z[y] <= 0), w && MA.push(Z[W] <= 0, Z[r] <= 0), MA.every(function(cA) {
|
|
@@ -802,10 +802,10 @@ function aI(g) {
|
|
|
802
802
|
};
|
|
803
803
|
if (N) {
|
|
804
804
|
if (Q) {
|
|
805
|
-
var
|
|
805
|
+
var H, q = E === "y" ? b : f, gA = E === "y" ? _ : AA, Z = E === "y" ? "height" : "width", W = N[E], r = W + s[q], MA = W - s[gA], wA = e ? -G[Z] / 2 : 0, tA = t === rA ? F[Z] : G[Z], DA = t === rA ? -G[Z] : -F[Z], jA = A.elements.arrow, cA = e && jA ? Wg(jA) : {
|
|
806
806
|
width: 0,
|
|
807
807
|
height: 0
|
|
808
|
-
}, BA = A.modifiersData["arrow#persistent"] ? A.modifiersData["arrow#persistent"].padding :
|
|
808
|
+
}, BA = A.modifiersData["arrow#persistent"] ? A.modifiersData["arrow#persistent"].padding : HB(), LA = BA[q], yA = BA[gA], GA = gg(0, F[Z], cA[Z]), xA = J ? F[Z] / 2 - wA - GA - LA - V.mainAxis : tA - GA - LA - V.mainAxis, SA = J ? -F[Z] / 2 + wA + GA + yA + V.mainAxis : DA + GA + yA + V.mainAxis, OA = A.elements.arrow && wg(A.elements.arrow), Dg = OA ? E === "y" ? OA.clientTop || 0 : OA.clientLeft || 0 : 0, bA = (H = m == null ? void 0 : m[E]) != null ? H : 0, ig = W + xA - bA - Dg, og = W + SA - bA, fA = gg(e ? ag(r, ig) : r, W, e ? nA(MA, og) : MA);
|
|
809
809
|
N[E] = fA, y[E] = fA - W;
|
|
810
810
|
}
|
|
811
811
|
if (w) {
|
|
@@ -1050,7 +1050,7 @@ function mI(g, A) {
|
|
|
1050
1050
|
delete B[I];
|
|
1051
1051
|
}), B;
|
|
1052
1052
|
}
|
|
1053
|
-
function
|
|
1053
|
+
function pI(g) {
|
|
1054
1054
|
return g.split(/\s+/).filter(Boolean);
|
|
1055
1055
|
}
|
|
1056
1056
|
function TA(g) {
|
|
@@ -1059,7 +1059,7 @@ function TA(g) {
|
|
|
1059
1059
|
function cB(g, A) {
|
|
1060
1060
|
g.indexOf(A) === -1 && g.push(A);
|
|
1061
1061
|
}
|
|
1062
|
-
function
|
|
1062
|
+
function HI(g) {
|
|
1063
1063
|
return g.filter(function(A, B) {
|
|
1064
1064
|
return g.indexOf(A) === B;
|
|
1065
1065
|
});
|
|
@@ -1310,7 +1310,7 @@ function gC(g) {
|
|
|
1310
1310
|
gC.$$tippy = !0;
|
|
1311
1311
|
var BQ = 1, Sg = [], ug = [];
|
|
1312
1312
|
function CQ(g, A) {
|
|
1313
|
-
var B = eB(g, Object.assign({}, QA, AC(LB(A)))), I, C, Q, M = !1, w = !1, D = !1, i = !1, Y, k, j, e = [], L = NB(ig, B.interactiveDebounce), h, s = BQ++, c = null, t =
|
|
1313
|
+
var B = eB(g, Object.assign({}, QA, AC(LB(A)))), I, C, Q, M = !1, w = !1, D = !1, i = !1, Y, k, j, e = [], L = NB(ig, B.interactiveDebounce), h, s = BQ++, c = null, t = HI(B.plugins), J = {
|
|
1314
1314
|
// Is the instance currently enabled?
|
|
1315
1315
|
isEnabled: !0,
|
|
1316
1316
|
// Is the tippy currently showing and not transitioning out?
|
|
@@ -1365,11 +1365,11 @@ function CQ(g, A) {
|
|
|
1365
1365
|
var o;
|
|
1366
1366
|
return !!((o = E.props.render) != null && o.$$tippy);
|
|
1367
1367
|
}
|
|
1368
|
-
function
|
|
1368
|
+
function H() {
|
|
1369
1369
|
return h || g;
|
|
1370
1370
|
}
|
|
1371
1371
|
function q() {
|
|
1372
|
-
var o =
|
|
1372
|
+
var o = H().parentNode;
|
|
1373
1373
|
return o ? $B(o) : document;
|
|
1374
1374
|
}
|
|
1375
1375
|
function gA() {
|
|
@@ -1408,7 +1408,7 @@ function CQ(g, A) {
|
|
|
1408
1408
|
if (!(n || !E.props.aria.expanded)) {
|
|
1409
1409
|
var o = TA(E.props.triggerTarget || g);
|
|
1410
1410
|
o.forEach(function(R) {
|
|
1411
|
-
E.props.interactive ? R.setAttribute("aria-expanded", E.state.isVisible && R ===
|
|
1411
|
+
E.props.interactive ? R.setAttribute("aria-expanded", E.state.isVisible && R === H() ? "true" : "false") : R.removeAttribute("aria-expanded");
|
|
1412
1412
|
});
|
|
1413
1413
|
}
|
|
1414
1414
|
}
|
|
@@ -1482,7 +1482,7 @@ function CQ(g, A) {
|
|
|
1482
1482
|
passive: !0
|
|
1483
1483
|
}), SA("touchend", og, {
|
|
1484
1484
|
passive: !0
|
|
1485
|
-
})),
|
|
1485
|
+
})), pI(E.props.trigger).forEach(function(o) {
|
|
1486
1486
|
if (o !== "manual")
|
|
1487
1487
|
switch (SA(o, bA), o) {
|
|
1488
1488
|
case "mouseenter":
|
|
@@ -1513,7 +1513,7 @@ function CQ(g, A) {
|
|
|
1513
1513
|
}
|
|
1514
1514
|
}
|
|
1515
1515
|
function ig(o) {
|
|
1516
|
-
var R = o.target, K =
|
|
1516
|
+
var R = o.target, K = H().contains(R) || N.contains(R);
|
|
1517
1517
|
if (!(o.type === "mousemove" && K)) {
|
|
1518
1518
|
var u = RA().concat(N).map(function(l) {
|
|
1519
1519
|
var d, P = l._tippy, VA = (d = P.popperInstance) == null ? void 0 : d.state;
|
|
@@ -1537,7 +1537,7 @@ function CQ(g, A) {
|
|
|
1537
1537
|
}
|
|
1538
1538
|
}
|
|
1539
1539
|
function fA(o) {
|
|
1540
|
-
E.props.trigger.indexOf("focusin") < 0 && o.target !==
|
|
1540
|
+
E.props.trigger.indexOf("focusin") < 0 && o.target !== H() || E.props.interactive && o.relatedTarget && N.contains(o.relatedTarget) || KA(o);
|
|
1541
1541
|
}
|
|
1542
1542
|
function PA(o) {
|
|
1543
1543
|
return YA.isTouch ? m() !== o.type.indexOf("touch") >= 0 : !1;
|
|
@@ -1546,7 +1546,7 @@ function CQ(g, A) {
|
|
|
1546
1546
|
Fg();
|
|
1547
1547
|
var o = E.props, R = o.popperOptions, K = o.placement, u = o.offset, l = o.getReferenceClientRect, d = o.moveTransition, P = y() ? sg(N).arrow : null, VA = l ? {
|
|
1548
1548
|
getBoundingClientRect: l,
|
|
1549
|
-
contextElement: l.contextElement ||
|
|
1549
|
+
contextElement: l.contextElement || H()
|
|
1550
1550
|
} : g, Pg = {
|
|
1551
1551
|
name: "$$tippy",
|
|
1552
1552
|
enabled: !0,
|
|
@@ -1603,7 +1603,7 @@ function CQ(g, A) {
|
|
|
1603
1603
|
E.popperInstance && (E.popperInstance.destroy(), E.popperInstance = null);
|
|
1604
1604
|
}
|
|
1605
1605
|
function hA() {
|
|
1606
|
-
var o = E.props.appendTo, R, K =
|
|
1606
|
+
var o = E.props.appendTo, R, K = H();
|
|
1607
1607
|
E.props.interactive && o === fB || o === "parent" ? R = K.parentNode : R = PB(o, [K]), R.contains(N) || R.appendChild(N), E.state.isMounted = !0, Yg();
|
|
1608
1608
|
}
|
|
1609
1609
|
function RA() {
|
|
@@ -1659,7 +1659,7 @@ function CQ(g, A) {
|
|
|
1659
1659
|
}
|
|
1660
1660
|
function CC() {
|
|
1661
1661
|
var o = E.state.isVisible, R = E.state.isDestroyed, K = !E.state.isEnabled, u = YA.isTouch && !E.props.touch, l = lg(E.props.duration, 0, QA.duration);
|
|
1662
|
-
if (!(o || R || K || u) && !
|
|
1662
|
+
if (!(o || R || K || u) && !H().hasAttribute("disabled") && (r("onShow", [E], !1), E.props.onShow(E) !== !1)) {
|
|
1663
1663
|
if (E.state.isVisible = !0, y() && (N.style.visibility = "visible"), W(), BA(), E.state.isMounted || (N.style.transition = "none"), y()) {
|
|
1664
1664
|
var d = gA(), P = d.box, VA = d.content;
|
|
1665
1665
|
Tg([P, VA], 0);
|
|
@@ -1920,13 +1920,13 @@ var iQ = {
|
|
|
1920
1920
|
getReferenceClientRect: function() {
|
|
1921
1921
|
var G = B.getBoundingClientRect(), n = t, V = J;
|
|
1922
1922
|
c === "initial" && (n = G.left + S, V = G.top + N);
|
|
1923
|
-
var m = c === "horizontal" ? G.top : V, y = c === "vertical" ? G.right : n,
|
|
1923
|
+
var m = c === "horizontal" ? G.top : V, y = c === "vertical" ? G.right : n, H = c === "horizontal" ? G.bottom : V, q = c === "vertical" ? G.left : n;
|
|
1924
1924
|
return {
|
|
1925
1925
|
width: y - q,
|
|
1926
|
-
height:
|
|
1926
|
+
height: H - m,
|
|
1927
1927
|
top: m,
|
|
1928
1928
|
right: y,
|
|
1929
|
-
bottom:
|
|
1929
|
+
bottom: H,
|
|
1930
1930
|
left: q
|
|
1931
1931
|
};
|
|
1932
1932
|
}
|
|
@@ -2123,7 +2123,7 @@ function cQ(g, A = {}, B = { mount: !0, appName: "Tippy" }) {
|
|
|
2123
2123
|
setup: () => () => kA(F) ? F.value : F
|
|
2124
2124
|
}), I && Object.assign(M.value._context, I.appContext), M.value.mount(D())), G = () => D()) : typeof n == "object" ? (M.value || (M.value = yg({
|
|
2125
2125
|
name: B.appName,
|
|
2126
|
-
setup: () => () =>
|
|
2126
|
+
setup: () => () => HA(kA(F) ? F.value : F)
|
|
2127
2127
|
}), I && Object.assign(M.value._context, I.appContext), M.value.mount(D())), G = () => D()) : G = n, G;
|
|
2128
2128
|
}, Y = (F) => {
|
|
2129
2129
|
let G = {};
|
|
@@ -2218,7 +2218,7 @@ function LQ(g, A) {
|
|
|
2218
2218
|
};
|
|
2219
2219
|
}
|
|
2220
2220
|
function GQ(g) {
|
|
2221
|
-
return typeof g == "function" ? g() :
|
|
2221
|
+
return typeof g == "function" ? g() : Hg(g);
|
|
2222
2222
|
}
|
|
2223
2223
|
function hQ(g) {
|
|
2224
2224
|
var A, B;
|
|
@@ -2308,7 +2308,7 @@ const eQ = eA({
|
|
|
2308
2308
|
k && Y.setContent(() => M.value);
|
|
2309
2309
|
});
|
|
2310
2310
|
}), Cg(Y.state, () => {
|
|
2311
|
-
B("state",
|
|
2311
|
+
B("state", Hg(Y.state));
|
|
2312
2312
|
}, { immediate: !0, deep: !0 }), Cg(() => g, () => {
|
|
2313
2313
|
Y.setProps(D()), k && Y.setContent(() => M.value);
|
|
2314
2314
|
}, { deep: !0 });
|
|
@@ -2319,7 +2319,7 @@ const eQ = eA({
|
|
|
2319
2319
|
...Y
|
|
2320
2320
|
});
|
|
2321
2321
|
return I(j), () => {
|
|
2322
|
-
const e = (typeof g.contentTag == "string", g.contentTag), L = k ?
|
|
2322
|
+
const e = (typeof g.contentTag == "string", g.contentTag), L = k ? HA(e, {
|
|
2323
2323
|
ref: M,
|
|
2324
2324
|
style: { display: w.value ? "inherit" : "none" },
|
|
2325
2325
|
class: g.contentClass
|
|
@@ -2327,7 +2327,7 @@ const eQ = eA({
|
|
|
2327
2327
|
if (g.to === "parent") {
|
|
2328
2328
|
const c = [];
|
|
2329
2329
|
if (!C.value) {
|
|
2330
|
-
const t =
|
|
2330
|
+
const t = HA("span", {
|
|
2331
2331
|
ref: Q,
|
|
2332
2332
|
"data-v-tippy": "",
|
|
2333
2333
|
style: { display: "none" }
|
|
@@ -2338,14 +2338,14 @@ const eQ = eA({
|
|
|
2338
2338
|
}
|
|
2339
2339
|
const h = A.default ? A.default(j) : [];
|
|
2340
2340
|
if (!g.tag) {
|
|
2341
|
-
const c =
|
|
2341
|
+
const c = HA(h[0], {
|
|
2342
2342
|
ref: C,
|
|
2343
2343
|
"data-v-tippy": ""
|
|
2344
2344
|
});
|
|
2345
2345
|
return L ? [c, L] : c;
|
|
2346
2346
|
}
|
|
2347
2347
|
const s = (typeof g.tag == "string", g.tag);
|
|
2348
|
-
return
|
|
2348
|
+
return HA(s, { ref: C, "data-v-tippy": "" }, L ? [h, L] : h);
|
|
2349
2349
|
};
|
|
2350
2350
|
}
|
|
2351
2351
|
}), SQ = [
|
|
@@ -2364,21 +2364,21 @@ const eQ = eA({
|
|
|
2364
2364
|
"touch",
|
|
2365
2365
|
"touchHold"
|
|
2366
2366
|
];
|
|
2367
|
-
let
|
|
2367
|
+
let pg = {};
|
|
2368
2368
|
Object.keys(a.defaultProps).forEach((g) => {
|
|
2369
|
-
SQ.includes(g) ?
|
|
2369
|
+
SQ.includes(g) ? pg[g] = {
|
|
2370
2370
|
type: Boolean,
|
|
2371
2371
|
default: function() {
|
|
2372
2372
|
return a.defaultProps[g];
|
|
2373
2373
|
}
|
|
2374
|
-
} :
|
|
2374
|
+
} : pg[g] = {
|
|
2375
2375
|
default: function() {
|
|
2376
2376
|
return a.defaultProps[g];
|
|
2377
2377
|
}
|
|
2378
2378
|
};
|
|
2379
2379
|
});
|
|
2380
2380
|
eA({
|
|
2381
|
-
props:
|
|
2381
|
+
props: pg,
|
|
2382
2382
|
setup(g) {
|
|
2383
2383
|
const A = x([]), { singleton: B } = LQ(A, g);
|
|
2384
2384
|
return { instances: A, singleton: B };
|
|
@@ -2390,7 +2390,7 @@ eA({
|
|
|
2390
2390
|
},
|
|
2391
2391
|
render() {
|
|
2392
2392
|
let g = this.$slots.default ? this.$slots.default() : [];
|
|
2393
|
-
return
|
|
2393
|
+
return HA(() => g);
|
|
2394
2394
|
}
|
|
2395
2395
|
});
|
|
2396
2396
|
const RQ = a.setDefaultProps;
|
|
@@ -2407,7 +2407,7 @@ const kQ = { class: "w-full p-4 text-zinc-800 bg-zinc-200 rounded-xl shadow-lg s
|
|
|
2407
2407
|
url: {}
|
|
2408
2408
|
},
|
|
2409
2409
|
setup(g) {
|
|
2410
|
-
return (A, B) => (O(), CA(
|
|
2410
|
+
return (A, B) => (O(), CA(Hg(eQ), yB(A.$attrs, {
|
|
2411
2411
|
arrow: !0,
|
|
2412
2412
|
class: [{ "cursor-help": !A.noInteract && !A.url, "cursor-pointer": !A.noInteract && A.url }, A.otherClasses],
|
|
2413
2413
|
interactive: !!A.url
|
|
@@ -2423,7 +2423,7 @@ const kQ = { class: "w-full p-4 text-zinc-800 bg-zinc-200 rounded-xl shadow-lg s
|
|
|
2423
2423
|
U("div", kQ, [
|
|
2424
2424
|
A.$slots.icon ? (O(), X("div", {
|
|
2425
2425
|
key: 0,
|
|
2426
|
-
class:
|
|
2426
|
+
class: p(["float-left inline-flex items-center justify-center flex-shrink-0 w-8 h-8 p-1 mr-4 rounded-3xl", { "bg-yellow-200": A.warning, "bg-green-300": !A.warning }])
|
|
2427
2427
|
}, [
|
|
2428
2428
|
v(A.$slots, "icon")
|
|
2429
2429
|
], 2)) : iA("", !0),
|
|
@@ -2466,7 +2466,7 @@ const kQ = { class: "w-full p-4 text-zinc-800 bg-zinc-200 rounded-xl shadow-lg s
|
|
|
2466
2466
|
U("img", {
|
|
2467
2467
|
src: _g,
|
|
2468
2468
|
alt: "Cross Save",
|
|
2469
|
-
class:
|
|
2469
|
+
class: p({ "h-8 w-8": A.large, "h-4 w-4": !A.large })
|
|
2470
2470
|
}, null, 2)
|
|
2471
2471
|
]),
|
|
2472
2472
|
_: 1
|
|
@@ -2489,7 +2489,7 @@ const kQ = { class: "w-full p-4 text-zinc-800 bg-zinc-200 rounded-xl shadow-lg s
|
|
|
2489
2489
|
U("img", {
|
|
2490
2490
|
src: AB,
|
|
2491
2491
|
alt: "Xbox",
|
|
2492
|
-
class:
|
|
2492
|
+
class: p({ "h-8 w-8": A.large, "h-4 w-4": !A.large })
|
|
2493
2493
|
}, null, 2)
|
|
2494
2494
|
]),
|
|
2495
2495
|
_: 1
|
|
@@ -2512,7 +2512,7 @@ const kQ = { class: "w-full p-4 text-zinc-800 bg-zinc-200 rounded-xl shadow-lg s
|
|
|
2512
2512
|
U("img", {
|
|
2513
2513
|
src: gB,
|
|
2514
2514
|
alt: "Playstation",
|
|
2515
|
-
class:
|
|
2515
|
+
class: p({ "h-8 w-8": A.large, "h-4 w-4": !A.large })
|
|
2516
2516
|
}, null, 2)
|
|
2517
2517
|
]),
|
|
2518
2518
|
_: 1
|
|
@@ -2535,7 +2535,7 @@ const kQ = { class: "w-full p-4 text-zinc-800 bg-zinc-200 rounded-xl shadow-lg s
|
|
|
2535
2535
|
U("img", {
|
|
2536
2536
|
src: BB,
|
|
2537
2537
|
alt: "Steam",
|
|
2538
|
-
class:
|
|
2538
|
+
class: p({ "h-8 w-8": A.large, "h-4 w-4": !A.large })
|
|
2539
2539
|
}, null, 2)
|
|
2540
2540
|
]),
|
|
2541
2541
|
_: 1
|
|
@@ -2558,7 +2558,7 @@ const kQ = { class: "w-full p-4 text-zinc-800 bg-zinc-200 rounded-xl shadow-lg s
|
|
|
2558
2558
|
U("img", {
|
|
2559
2559
|
src: CB,
|
|
2560
2560
|
alt: "Stadia",
|
|
2561
|
-
class:
|
|
2561
|
+
class: p({ "h-8 w-8": A.large, "h-4 w-4": !A.large })
|
|
2562
2562
|
}, null, 2)
|
|
2563
2563
|
]),
|
|
2564
2564
|
_: 1
|
|
@@ -2581,7 +2581,7 @@ const kQ = { class: "w-full p-4 text-zinc-800 bg-zinc-200 rounded-xl shadow-lg s
|
|
|
2581
2581
|
U("img", {
|
|
2582
2582
|
src: IB,
|
|
2583
2583
|
alt: "Epic Games",
|
|
2584
|
-
class:
|
|
2584
|
+
class: p({ "h-8 w-8": A.large, "h-4 w-4": !A.large })
|
|
2585
2585
|
}, null, 2)
|
|
2586
2586
|
]),
|
|
2587
2587
|
_: 1
|
|
@@ -2728,7 +2728,7 @@ const OQ = {
|
|
|
2728
2728
|
}, VQ = {
|
|
2729
2729
|
key: 1,
|
|
2730
2730
|
class: "py-4 px-2 leading-4 text-sm sm:px-4 sm:text-xs sm:leading-3 lg:text-xl lg:leading-6 lg:px-10 uppercase text-black font-mono"
|
|
2731
|
-
}, mQ = { class: "mt-2 mb-10 text-zinc-200 flex flex-col lg:flex-row justify-center items-center gap-x-2 gap-y-1 text-center" },
|
|
2731
|
+
}, mQ = { class: "mt-2 mb-10 text-zinc-200 flex flex-col lg:flex-row justify-center items-center gap-x-2 gap-y-1 text-center" }, pQ = { class: "flex flex-col sm:flex-row justify-center items-center gap-x-2 gap-y-1 text-center" }, HQ = { class: "flex justify-center items-center gap-x-2 gap-y-1 text-center" }, rQ = { class: "flex flex-col sm:flex-row justify-center items-center gap-x-2 gap-y-1 text-center" }, ZQ = { class: "flex justify-center items-center gap-x-2 gap-y-1 text-center" }, WQ = {
|
|
2732
2732
|
key: 0,
|
|
2733
2733
|
href: "#top",
|
|
2734
2734
|
class: "opacity-75 hover:opacity-100 !decoration-1 !decoration-dotted"
|
|
@@ -2750,7 +2750,12 @@ const OQ = {
|
|
|
2750
2750
|
setup(g) {
|
|
2751
2751
|
const { waitForRamp: A } = yQ(), { waitForGoogle: B } = xQ(), I = x(), C = x(), Q = x(), M = x(Math.random() <= 1e-3);
|
|
2752
2752
|
function w() {
|
|
2753
|
-
|
|
2753
|
+
const D = [];
|
|
2754
|
+
if ({}.VITE_USE_PLAYWIRE === "true" && D.push(A), {}.VITE_USE_GOOGLE_ADSENSE === "true" && D.push(B), D.length === 0) {
|
|
2755
|
+
I.value = !1, console.debug("Footer: No ad providers configured, skipping ad check.");
|
|
2756
|
+
return;
|
|
2757
|
+
}
|
|
2758
|
+
Promise.race(D.map((i) => i())).then(() => {
|
|
2754
2759
|
I.value = !0;
|
|
2755
2760
|
}).catch(() => {
|
|
2756
2761
|
I.value = !1;
|
|
@@ -2794,12 +2799,12 @@ const OQ = {
|
|
|
2794
2799
|
], 512)
|
|
2795
2800
|
], 64)),
|
|
2796
2801
|
U("footer", mQ, [
|
|
2797
|
-
U("span",
|
|
2802
|
+
U("span", pQ, [
|
|
2798
2803
|
v(D.$slots, "default", {}, () => [
|
|
2799
2804
|
U("span", null, "© François (binarmorker) Allard " + oA((/* @__PURE__ */ new Date()).getFullYear()), 1)
|
|
2800
2805
|
]),
|
|
2801
2806
|
i[7] || (i[7] = U("span", { class: "hidden sm:inline" }, "|", -1)),
|
|
2802
|
-
U("span",
|
|
2807
|
+
U("span", HQ, [
|
|
2803
2808
|
$g(IA, null, {
|
|
2804
2809
|
content: T(() => i[2] || (i[2] = [
|
|
2805
2810
|
U("p", null, "Support me monthly on Patreon!", -1)
|
|
@@ -2909,28 +2914,28 @@ const OQ = {
|
|
|
2909
2914
|
U("a", {
|
|
2910
2915
|
href: C.active !== "wasted" ? "https://wastedondestiny.com" : "",
|
|
2911
2916
|
target: C.active !== "wasted" ? "_blank" : "",
|
|
2912
|
-
class:
|
|
2917
|
+
class: p(["flex items-center gap-2 no-underline hover:bg-blue-500 h-12 px-2", { "bg-blue-500": C.active === "wasted" }])
|
|
2913
2918
|
}, Q[0] || (Q[0] = [
|
|
2914
2919
|
aA('<img src="' + aB + '" class="invert w-8 h-8"><p class="flex flex-col"><span class="font-mono leading-4">TIME WASTED <span class="text-zinc-600">ON DESTINY</span></span><small class="leading-none">Time spent on Destiny 2</small></p>', 2)
|
|
2915
2920
|
]), 10, PQ),
|
|
2916
2921
|
U("a", {
|
|
2917
2922
|
href: C.active !== "crimson" ? "https://crimson.report" : "",
|
|
2918
2923
|
target: C.active !== "crimson" ? "_blank" : "",
|
|
2919
|
-
class:
|
|
2924
|
+
class: p(["flex items-center gap-2 no-underline hover:bg-red-500 h-12 px-2", { "bg-red-500": C.active === "crimson" }])
|
|
2920
2925
|
}, Q[1] || (Q[1] = [
|
|
2921
2926
|
aA('<img src="' + sB + '" class="invert w-8 h-8"><p class="flex flex-col"><span class="font-mono leading-4">CRIMSON<span class="text-zinc-600">.REPORT</span></span><small class="leading-none">Content owned on Destiny 2</small></p>', 2)
|
|
2922
2927
|
]), 10, vQ),
|
|
2923
2928
|
U("a", {
|
|
2924
2929
|
href: C.active !== "loot" ? "https://loot.report" : "",
|
|
2925
2930
|
target: C.active !== "loot" ? "_blank" : "",
|
|
2926
|
-
class:
|
|
2931
|
+
class: p(["flex items-center gap-2 no-underline hover:bg-yellow-500 h-12 px-2", { "bg-yellow-500": C.active === "loot" }])
|
|
2927
2932
|
}, Q[2] || (Q[2] = [
|
|
2928
2933
|
aA('<img src="' + tB + '" class="invert w-8 h-8"><p class="flex flex-col"><span class="font-mono leading-4">LOOT<span class="text-zinc-600">.REPORT</span></span><small class="leading-none">Exotics acquired on Destiny 2</small></p>', 2)
|
|
2929
2934
|
]), 10, $Q),
|
|
2930
2935
|
U("a", {
|
|
2931
2936
|
href: C.active !== "guesstiny" ? "https://guesstiny.com" : "",
|
|
2932
2937
|
target: C.active !== "guesstiny" ? "_blank" : "",
|
|
2933
|
-
class:
|
|
2938
|
+
class: p(["flex items-center gap-2 no-underline hover:bg-green-500 h-12 px-2", { "bg-green-500": C.active === "guesstiny" }])
|
|
2934
2939
|
}, Q[3] || (Q[3] = [
|
|
2935
2940
|
aA('<img src="' + jB + '" class="invert w-8 h-8"><p class="flex flex-col"><span class="font-mono leading-4">GUESS<span class="text-zinc-600">TINY</span></span><small class="leading-none">Test your knowledge of Destiny</small></p>', 2)
|
|
2936
2941
|
]), 10, _Q)
|
|
@@ -2980,28 +2985,28 @@ const OQ = {
|
|
|
2980
2985
|
U("a", {
|
|
2981
2986
|
href: C.active !== "wasted" ? "https://wastedondestiny.com" : "",
|
|
2982
2987
|
target: C.active !== "wasted" ? "_blank" : "",
|
|
2983
|
-
class:
|
|
2988
|
+
class: p(["flex items-center gap-2 no-underline hover:bg-blue-500 h-12 px-2", { "bg-blue-500": C.active === "wasted" }])
|
|
2984
2989
|
}, Q[7] || (Q[7] = [
|
|
2985
2990
|
aA('<img src="' + aB + '" class="invert w-8 h-8"><p class="flex flex-col"><span class="font-mono leading-4">TIME WASTED <span class="text-zinc-600">ON DESTINY</span></span><small class="leading-none">Time spent on Destiny 2</small></p>', 2)
|
|
2986
2991
|
]), 10, BE),
|
|
2987
2992
|
U("a", {
|
|
2988
2993
|
href: C.active !== "crimson" ? "https://crimson.report" : "",
|
|
2989
2994
|
target: C.active !== "crimson" ? "_blank" : "",
|
|
2990
|
-
class:
|
|
2995
|
+
class: p(["flex items-center gap-2 no-underline hover:bg-red-500 h-12 px-2", { "bg-red-500": C.active === "crimson" }])
|
|
2991
2996
|
}, Q[8] || (Q[8] = [
|
|
2992
2997
|
aA('<img src="' + sB + '" class="invert w-8 h-8"><p class="flex flex-col"><span class="font-mono leading-4">CRIMSON<span class="text-zinc-600">.REPORT</span></span><small class="leading-none">Content owned on Destiny 2</small></p>', 2)
|
|
2993
2998
|
]), 10, CE),
|
|
2994
2999
|
U("a", {
|
|
2995
3000
|
href: C.active !== "loot" ? "https://loot.report" : "",
|
|
2996
3001
|
target: C.active !== "loot" ? "_blank" : "",
|
|
2997
|
-
class:
|
|
3002
|
+
class: p(["flex items-center gap-2 no-underline hover:bg-yellow-500 h-12 px-2", { "bg-yellow-500": C.active === "loot" }])
|
|
2998
3003
|
}, Q[9] || (Q[9] = [
|
|
2999
3004
|
aA('<img src="' + tB + '" class="invert w-8 h-8"><p class="flex flex-col"><span class="font-mono leading-4">LOOT<span class="text-zinc-600">.REPORT</span></span><small class="leading-none">Exotics your clan owns on Destiny 2</small></p>', 2)
|
|
3000
3005
|
]), 10, IE),
|
|
3001
3006
|
U("a", {
|
|
3002
3007
|
href: C.active !== "guesstiny" ? "https://guesstiny.com" : "",
|
|
3003
3008
|
target: C.active !== "guesstiny" ? "_blank" : "",
|
|
3004
|
-
class:
|
|
3009
|
+
class: p(["flex items-center gap-2 no-underline hover:bg-green-500 h-12 px-2", { "bg-green-500": C.active === "guesstiny" }])
|
|
3005
3010
|
}, Q[10] || (Q[10] = [
|
|
3006
3011
|
aA('<img src="' + jB + '" class="invert w-8 h-8"><p class="flex flex-col"><span class="font-mono leading-4">GUESS<span class="text-zinc-600">TINY</span></span><small class="leading-none">Test your knowledge of Destiny</small></p>', 2)
|
|
3007
3012
|
]), 10, QE)
|
|
@@ -3045,7 +3050,7 @@ function hE(g, A = 100, B = 0) {
|
|
|
3045
3050
|
}
|
|
3046
3051
|
return I;
|
|
3047
3052
|
}
|
|
3048
|
-
function
|
|
3053
|
+
function pA(g, A, B) {
|
|
3049
3054
|
return B || (B = A + "s"), g === 1 ? A : B;
|
|
3050
3055
|
}
|
|
3051
3056
|
function eE(g) {
|
|
@@ -3053,7 +3058,7 @@ function eE(g) {
|
|
|
3053
3058
|
if (A > 5e8)
|
|
3054
3059
|
return "a long time ago";
|
|
3055
3060
|
let B = A / 31536e3;
|
|
3056
|
-
return B > 1 ? `${Math.floor(B)} ${
|
|
3061
|
+
return B > 1 ? `${Math.floor(B)} ${pA(Math.floor(B), "year")} ago` : (B = A / 2592e3, B > 1 ? `${Math.floor(B)} ${pA(Math.floor(B), "month")} ago` : (B = A / 86400, B > 1 ? `${Math.floor(B)} ${pA(Math.floor(B), "day")} ago` : (B = A / 3600, B > 1 ? `${Math.floor(B)} ${pA(Math.floor(B), "hour")} ago` : (B = A / 60, B > 1 ? `${Math.floor(B)} ${pA(Math.floor(B), "minute")} ago` : `${Math.floor(A)} ${pA(Math.floor(A), "second")} ago`))));
|
|
3057
3062
|
}
|
|
3058
3063
|
function SE(g) {
|
|
3059
3064
|
if (!g)
|
|
@@ -3110,7 +3115,7 @@ export {
|
|
|
3110
3115
|
SE as formatTime,
|
|
3111
3116
|
kE as formatUsername,
|
|
3112
3117
|
hE as getPerfectRounding,
|
|
3113
|
-
|
|
3118
|
+
pA as pluralize,
|
|
3114
3119
|
eE as timeSince,
|
|
3115
3120
|
RC as useClickOutside,
|
|
3116
3121
|
LE as useKonamiCode,
|