@wastedondestiny/destiny-library 1.3.1 → 1.3.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 +76 -76
- 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 SA, ref as m, onMounted as XA, nextTick as KB, onBeforeUnmount as JB, openBlock as x, createElementBlock as X, createElementVNode as U, normalizeClass as H, toDisplayString as iA, normalizeStyle as lB, renderSlot as YA, withDirectives as TB, vShow as uB, watch as ag, unref as Cg, reactive as
|
|
1
|
+
import { defineComponent as SA, ref as m, onMounted as XA, nextTick as KB, onBeforeUnmount as JB, openBlock as x, createElementBlock as X, createElementVNode as U, normalizeClass as H, toDisplayString as iA, normalizeStyle as lB, renderSlot as YA, withDirectives as TB, vShow as uB, watch as ag, unref as Cg, reactive as wC, h as pA, getCurrentInstance as DC, shallowRef as iC, onUnmounted as oC, isRef as kA, isReactive as Pg, isVNode as YC, createApp as Og, createBlock as BA, mergeProps as nB, createSlots as FC, withCtx as T, createCommentVNode as DA, normalizeProps as UC, guardReactiveProps as NC, createTextVNode as q, Fragment as sg, createVNode as vg, 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" }, SC = { class: "text-xs font-bold text-zinc-900" }, EE = /* @__PURE__ */ SA({
|
|
3
3
|
__name: "Collapsible",
|
|
4
4
|
props: {
|
|
@@ -140,9 +140,9 @@ const wE = /* @__PURE__ */ sC(tC, [["render", lC]]), $g = "data:image/svg+xml;ba
|
|
|
140
140
|
* (c) 2025
|
|
141
141
|
* @license MIT
|
|
142
142
|
*/
|
|
143
|
-
var b = "top", $ = "bottom", _ = "right", f = "left", Zg = "auto", Mg = [b, $, _, f], ZA = "start", Ig = "end", uC = "clippingParents",
|
|
143
|
+
var b = "top", $ = "bottom", _ = "right", f = "left", Zg = "auto", Mg = [b, $, _, f], ZA = "start", Ig = "end", uC = "clippingParents", yB = "viewport", _A = "popper", nC = "reference", QB = /* @__PURE__ */ Mg.reduce(function(g, A) {
|
|
144
144
|
return g.concat([A + "-" + ZA, A + "-" + Ig]);
|
|
145
|
-
}, []),
|
|
145
|
+
}, []), xB = /* @__PURE__ */ [].concat(Mg, [Zg]).reduce(function(g, A) {
|
|
146
146
|
return g.concat([A, A + "-" + ZA, A + "-" + Ig]);
|
|
147
147
|
}, []), yC = "beforeRead", xC = "read", OC = "afterRead", VC = "beforeMain", mC = "main", HC = "afterMain", pC = "beforeWrite", ZC = "write", rC = "afterWrite", WC = [yC, xC, OC, VC, mC, HC, pC, ZC, rC];
|
|
148
148
|
function UA(g) {
|
|
@@ -165,7 +165,7 @@ function v(g) {
|
|
|
165
165
|
var A = QA(g).HTMLElement;
|
|
166
166
|
return g instanceof A || g instanceof HTMLElement;
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function OB(g) {
|
|
169
169
|
if (typeof ShadowRoot > "u")
|
|
170
170
|
return !1;
|
|
171
171
|
var A = QA(g).ShadowRoot;
|
|
@@ -205,7 +205,7 @@ function zC(g) {
|
|
|
205
205
|
});
|
|
206
206
|
};
|
|
207
207
|
}
|
|
208
|
-
var
|
|
208
|
+
var VB = {
|
|
209
209
|
name: "applyStyles",
|
|
210
210
|
enabled: !0,
|
|
211
211
|
phase: "write",
|
|
@@ -244,11 +244,11 @@ function rg(g) {
|
|
|
244
244
|
height: C
|
|
245
245
|
};
|
|
246
246
|
}
|
|
247
|
-
function
|
|
247
|
+
function mB(g, A) {
|
|
248
248
|
var B = A.getRootNode && A.getRootNode();
|
|
249
249
|
if (g.contains(A))
|
|
250
250
|
return !0;
|
|
251
|
-
if (B &&
|
|
251
|
+
if (B && OB(B)) {
|
|
252
252
|
var C = A;
|
|
253
253
|
do {
|
|
254
254
|
if (C && g.isSameNode(C))
|
|
@@ -277,7 +277,7 @@ function Kg(g) {
|
|
|
277
277
|
// $FlowFixMe[prop-missing]
|
|
278
278
|
g.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
279
279
|
g.parentNode || // DOM Element detected
|
|
280
|
-
(
|
|
280
|
+
(OB(g) ? g.host : null) || // ShadowRoot detected
|
|
281
281
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
282
282
|
sA(g)
|
|
283
283
|
);
|
|
@@ -316,7 +316,7 @@ function bC(g, A, B) {
|
|
|
316
316
|
var C = gg(g, A, B);
|
|
317
317
|
return C > B ? B : C;
|
|
318
318
|
}
|
|
319
|
-
function
|
|
319
|
+
function HB() {
|
|
320
320
|
return {
|
|
321
321
|
top: 0,
|
|
322
322
|
right: 0,
|
|
@@ -324,10 +324,10 @@ function mB() {
|
|
|
324
324
|
left: 0
|
|
325
325
|
};
|
|
326
326
|
}
|
|
327
|
-
function
|
|
328
|
-
return Object.assign({},
|
|
327
|
+
function pB(g) {
|
|
328
|
+
return Object.assign({}, HB(), g);
|
|
329
329
|
}
|
|
330
|
-
function
|
|
330
|
+
function ZB(g, A) {
|
|
331
331
|
return A.reduce(function(B, C) {
|
|
332
332
|
return B[C] = g, B;
|
|
333
333
|
}, {});
|
|
@@ -335,7 +335,7 @@ function pB(g, A) {
|
|
|
335
335
|
var fC = function(A, B) {
|
|
336
336
|
return A = typeof A == "function" ? A(Object.assign({}, B.rects, {
|
|
337
337
|
placement: B.placement
|
|
338
|
-
})) : A,
|
|
338
|
+
})) : A, pB(typeof A != "number" ? A : ZB(A, Mg));
|
|
339
339
|
};
|
|
340
340
|
function PC(g) {
|
|
341
341
|
var A, B = g.state, C = g.name, I = g.options, E = B.elements.arrow, w = B.modifiersData.popperOffsets, M = FA(B.placement), D = Wg(M), Y = [f, _].indexOf(M) >= 0, o = Y ? "height" : "width";
|
|
@@ -346,7 +346,7 @@ function PC(g) {
|
|
|
346
346
|
}
|
|
347
347
|
function vC(g) {
|
|
348
348
|
var A = g.state, B = g.options, C = B.element, I = C === void 0 ? "[data-popper-arrow]" : C;
|
|
349
|
-
I != null && (typeof I == "string" && (I = A.elements.popper.querySelector(I), !I) ||
|
|
349
|
+
I != null && (typeof I == "string" && (I = A.elements.popper.querySelector(I), !I) || mB(A.elements.popper, I) && (A.elements.arrow = I));
|
|
350
350
|
}
|
|
351
351
|
var $C = {
|
|
352
352
|
name: "arrow",
|
|
@@ -505,13 +505,13 @@ function qg(g) {
|
|
|
505
505
|
var A = NA(g), B = A.overflow, C = A.overflowX, I = A.overflowY;
|
|
506
506
|
return /auto|scroll|overlay|hidden/.test(B + I + C);
|
|
507
507
|
}
|
|
508
|
-
function
|
|
509
|
-
return ["html", "body", "#document"].indexOf(UA(g)) >= 0 ? g.ownerDocument.body : v(g) && qg(g) ? g :
|
|
508
|
+
function rB(g) {
|
|
509
|
+
return ["html", "body", "#document"].indexOf(UA(g)) >= 0 ? g.ownerDocument.body : v(g) && qg(g) ? g : rB(Kg(g));
|
|
510
510
|
}
|
|
511
511
|
function Bg(g, A) {
|
|
512
512
|
var B;
|
|
513
513
|
A === void 0 && (A = []);
|
|
514
|
-
var C =
|
|
514
|
+
var C = rB(g), I = C === ((B = g.ownerDocument) == null ? void 0 : B.body), E = QA(C), w = I ? [E].concat(E.visualViewport || [], qg(C) ? C : []) : C, M = A.concat(w);
|
|
515
515
|
return I ? M : (
|
|
516
516
|
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
517
517
|
M.concat(Bg(Kg(w)))
|
|
@@ -530,12 +530,12 @@ function DI(g) {
|
|
|
530
530
|
return A.top = A.top + g.clientTop, A.left = A.left + g.clientLeft, A.bottom = A.top + g.clientHeight, A.right = A.left + g.clientWidth, A.width = g.clientWidth, A.height = g.clientHeight, A.x = A.left, A.y = A.top, A;
|
|
531
531
|
}
|
|
532
532
|
function DB(g, A) {
|
|
533
|
-
return A ===
|
|
533
|
+
return A === yB ? Vg(MI(g)) : rA(A) ? DI(A) : Vg(wI(sA(g)));
|
|
534
534
|
}
|
|
535
535
|
function iI(g) {
|
|
536
536
|
var A = Bg(Kg(g)), B = ["absolute", "fixed"].indexOf(NA(g).position) >= 0, C = B && v(g) ? wg(g) : g;
|
|
537
537
|
return rA(C) ? A.filter(function(I) {
|
|
538
|
-
return rA(I) &&
|
|
538
|
+
return rA(I) && mB(I, C) && UA(I) !== "body" && (B ? NA(I).position !== "static" : !0);
|
|
539
539
|
}) : [];
|
|
540
540
|
}
|
|
541
541
|
function oI(g, A, B) {
|
|
@@ -545,7 +545,7 @@ function oI(g, A, B) {
|
|
|
545
545
|
}, DB(g, E));
|
|
546
546
|
return w.width = w.right - w.left, w.height = w.bottom - w.top, w.x = w.left, w.y = w.top, w;
|
|
547
547
|
}
|
|
548
|
-
function
|
|
548
|
+
function WB(g) {
|
|
549
549
|
var A = g.reference, B = g.element, C = g.placement, I = C ? FA(C) : null, E = C ? zA(C) : null, w = A.x + A.width / 2 - B.width / 2, M = A.y + A.height / 2 - B.height / 2, D;
|
|
550
550
|
switch (I) {
|
|
551
551
|
case b:
|
|
@@ -594,7 +594,7 @@ function rB(g) {
|
|
|
594
594
|
}
|
|
595
595
|
function Qg(g, A) {
|
|
596
596
|
A === void 0 && (A = {});
|
|
597
|
-
var B = A, C = B.placement, I = C === void 0 ? g.placement : C, E = B.boundary, w = E === void 0 ? uC : E, M = B.rootBoundary, D = M === void 0 ?
|
|
597
|
+
var B = A, C = B.placement, I = C === void 0 ? g.placement : C, E = B.boundary, w = E === void 0 ? uC : E, M = B.rootBoundary, D = M === void 0 ? yB : M, Y = B.elementContext, o = Y === void 0 ? _A : Y, a = B.altBoundary, j = a === void 0 ? !1 : a, S = B.padding, L = S === void 0 ? 0 : S, h = pB(typeof L != "number" ? L : ZB(L, Mg)), s = o === _A ? nC : _A, c = g.rects.popper, t = g.elements[j ? s : o], J = oI(rA(t) ? t : t.contextElement || sA(g.elements.popper), w, D), Q = dA(g.elements.reference), e = WB({
|
|
598
598
|
reference: Q,
|
|
599
599
|
element: c,
|
|
600
600
|
strategy: "absolute",
|
|
@@ -616,7 +616,7 @@ function Qg(g, A) {
|
|
|
616
616
|
}
|
|
617
617
|
function YI(g, A) {
|
|
618
618
|
A === void 0 && (A = {});
|
|
619
|
-
var B = A, C = B.placement, I = B.boundary, E = B.rootBoundary, w = B.padding, M = B.flipVariations, D = B.allowedAutoPlacements, Y = D === void 0 ?
|
|
619
|
+
var B = A, C = B.placement, I = B.boundary, E = B.rootBoundary, w = B.padding, M = B.flipVariations, D = B.allowedAutoPlacements, Y = D === void 0 ? xB : D, o = zA(C), a = o ? M ? QB : QB.filter(function(L) {
|
|
620
620
|
return zA(L) === o;
|
|
621
621
|
}) : Mg, j = a.filter(function(L) {
|
|
622
622
|
return Y.indexOf(L) >= 0;
|
|
@@ -751,7 +751,7 @@ function GI(g, A, B) {
|
|
|
751
751
|
};
|
|
752
752
|
}
|
|
753
753
|
function hI(g) {
|
|
754
|
-
var A = g.state, B = g.options, C = g.name, I = B.offset, E = I === void 0 ? [0, 0] : I, w =
|
|
754
|
+
var A = g.state, B = g.options, C = g.name, I = B.offset, E = I === void 0 ? [0, 0] : I, w = xB.reduce(function(o, a) {
|
|
755
755
|
return o[a] = GI(a, A.rects, E), o;
|
|
756
756
|
}, {}), M = w[A.placement], D = M.x, Y = M.y;
|
|
757
757
|
A.modifiersData.popperOffsets != null && (A.modifiersData.popperOffsets.x += D, A.modifiersData.popperOffsets.y += Y), A.modifiersData[C] = w;
|
|
@@ -765,7 +765,7 @@ var SI = {
|
|
|
765
765
|
};
|
|
766
766
|
function eI(g) {
|
|
767
767
|
var A = g.state, B = g.name;
|
|
768
|
-
A.modifiersData[B] =
|
|
768
|
+
A.modifiersData[B] = WB({
|
|
769
769
|
reference: A.rects.reference,
|
|
770
770
|
element: A.rects.popper,
|
|
771
771
|
strategy: "absolute",
|
|
@@ -805,7 +805,7 @@ function aI(g) {
|
|
|
805
805
|
var p, z = Q === "y" ? b : f, AA = Q === "y" ? $ : _, r = Q === "y" ? "height" : "width", W = N[Q], Z = W + s[z], EA = W - s[AA], MA = S ? -G[r] / 2 : 0, tA = t === ZA ? F[r] : G[r], wA = t === ZA ? -G[r] : -F[r], jA = A.elements.arrow, cA = S && jA ? rg(jA) : {
|
|
806
806
|
width: 0,
|
|
807
807
|
height: 0
|
|
808
|
-
}, gA = A.modifiersData["arrow#persistent"] ? A.modifiersData["arrow#persistent"].padding :
|
|
808
|
+
}, gA = A.modifiersData["arrow#persistent"] ? A.modifiersData["arrow#persistent"].padding : HB(), LA = gA[z], yA = gA[AA], GA = gg(0, F[r], cA[r]), xA = J ? F[r] / 2 - MA - GA - LA - O.mainAxis : tA - GA - LA - O.mainAxis, eA = J ? -F[r] / 2 + MA + GA + yA + O.mainAxis : wA + GA + yA + O.mainAxis, OA = A.elements.arrow && wg(A.elements.arrow), Dg = OA ? Q === "y" ? OA.clientTop || 0 : OA.clientLeft || 0 : 0, bA = (p = V == null ? void 0 : V[Q]) != null ? p : 0, ig = W + xA - bA - Dg, og = W + eA - bA, fA = gg(S ? tg(Z, ig) : Z, W, S ? uA(EA, og) : EA);
|
|
809
809
|
N[Q] = fA, y[Q] = fA - W;
|
|
810
810
|
}
|
|
811
811
|
if (M) {
|
|
@@ -1012,12 +1012,12 @@ function yI(g) {
|
|
|
1012
1012
|
return S;
|
|
1013
1013
|
};
|
|
1014
1014
|
}
|
|
1015
|
-
var xI = [II, RI, BI,
|
|
1015
|
+
var xI = [II, RI, BI, VB, SI, NI, sI, $C, LI], OI = /* @__PURE__ */ yI({
|
|
1016
1016
|
defaultModifiers: xI
|
|
1017
|
-
}), VI = "tippy-box",
|
|
1017
|
+
}), VI = "tippy-box", dB = "tippy-content", zB = "tippy-backdrop", qB = "tippy-arrow", XB = "tippy-svg-arrow", lA = {
|
|
1018
1018
|
passive: !0,
|
|
1019
1019
|
capture: !0
|
|
1020
|
-
},
|
|
1020
|
+
}, bB = function() {
|
|
1021
1021
|
return document.body;
|
|
1022
1022
|
};
|
|
1023
1023
|
function ug(g, A, B) {
|
|
@@ -1031,7 +1031,7 @@ function Xg(g, A) {
|
|
|
1031
1031
|
var B = {}.toString.call(g);
|
|
1032
1032
|
return B.indexOf("[object") === 0 && B.indexOf(A + "]") > -1;
|
|
1033
1033
|
}
|
|
1034
|
-
function
|
|
1034
|
+
function fB(g, A) {
|
|
1035
1035
|
return typeof g == "function" ? g.apply(void 0, A) : g;
|
|
1036
1036
|
}
|
|
1037
1037
|
function UB(g, A) {
|
|
@@ -1064,7 +1064,7 @@ function pI(g) {
|
|
|
1064
1064
|
return g.indexOf(A) === B;
|
|
1065
1065
|
});
|
|
1066
1066
|
}
|
|
1067
|
-
function
|
|
1067
|
+
function PB(g) {
|
|
1068
1068
|
return g.split("-")[0];
|
|
1069
1069
|
}
|
|
1070
1070
|
function qA(g) {
|
|
@@ -1105,14 +1105,14 @@ function Eg(g, A) {
|
|
|
1105
1105
|
B && B.setAttribute("data-state", A);
|
|
1106
1106
|
});
|
|
1107
1107
|
}
|
|
1108
|
-
function
|
|
1108
|
+
function vB(g) {
|
|
1109
1109
|
var A, B = TA(g), C = B[0];
|
|
1110
1110
|
return C != null && (A = C.ownerDocument) != null && A.body ? C.ownerDocument : document;
|
|
1111
1111
|
}
|
|
1112
1112
|
function dI(g, A) {
|
|
1113
1113
|
var B = A.clientX, C = A.clientY;
|
|
1114
1114
|
return g.every(function(I) {
|
|
1115
|
-
var E = I.popperRect, w = I.popperState, M = I.props, D = M.interactiveBorder, Y =
|
|
1115
|
+
var E = I.popperRect, w = I.popperState, M = I.props, D = M.interactiveBorder, Y = PB(w.placement), o = w.modifiersData.offset;
|
|
1116
1116
|
if (!o)
|
|
1117
1117
|
return !0;
|
|
1118
1118
|
var a = Y === "bottom" ? o.top.y : 0, j = Y === "top" ? o.bottom.y : 0, S = Y === "right" ? o.left.x : 0, L = Y === "left" ? o.right.x : 0, h = E.top - C + a > D, s = C - E.bottom - j > D, c = E.left - B + S > D, t = B - E.right - L > D;
|
|
@@ -1138,11 +1138,11 @@ var oA = {
|
|
|
1138
1138
|
isTouch: !1
|
|
1139
1139
|
}, GB = 0;
|
|
1140
1140
|
function zI() {
|
|
1141
|
-
oA.isTouch || (oA.isTouch = !0, window.performance && document.addEventListener("mousemove",
|
|
1141
|
+
oA.isTouch || (oA.isTouch = !0, window.performance && document.addEventListener("mousemove", $B));
|
|
1142
1142
|
}
|
|
1143
|
-
function
|
|
1143
|
+
function $B() {
|
|
1144
1144
|
var g = performance.now();
|
|
1145
|
-
g - GB < 20 && (oA.isTouch = !1, document.removeEventListener("mousemove",
|
|
1145
|
+
g - GB < 20 && (oA.isTouch = !1, document.removeEventListener("mousemove", $B)), GB = g;
|
|
1146
1146
|
}
|
|
1147
1147
|
function qI() {
|
|
1148
1148
|
var g = document.activeElement;
|
|
@@ -1173,7 +1173,7 @@ var bI = typeof window < "u" && typeof document < "u", fI = bI ? (
|
|
|
1173
1173
|
theme: "",
|
|
1174
1174
|
zIndex: 9999
|
|
1175
1175
|
}, IA = Object.assign({
|
|
1176
|
-
appendTo:
|
|
1176
|
+
appendTo: bB,
|
|
1177
1177
|
aria: {
|
|
1178
1178
|
content: "auto",
|
|
1179
1179
|
expanded: "auto"
|
|
@@ -1226,7 +1226,7 @@ var bI = typeof window < "u" && typeof document < "u", fI = bI ? (
|
|
|
1226
1226
|
IA[C] = A[C];
|
|
1227
1227
|
});
|
|
1228
1228
|
};
|
|
1229
|
-
function
|
|
1229
|
+
function _B(g) {
|
|
1230
1230
|
var A = g.plugins || [], B = A.reduce(function(C, I) {
|
|
1231
1231
|
var E = I.name, w = I.defaultValue;
|
|
1232
1232
|
if (E) {
|
|
@@ -1238,7 +1238,7 @@ function $B(g) {
|
|
|
1238
1238
|
return Object.assign({}, g, B);
|
|
1239
1239
|
}
|
|
1240
1240
|
function AQ(g, A) {
|
|
1241
|
-
var B = A ? Object.keys(
|
|
1241
|
+
var B = A ? Object.keys(_B(Object.assign({}, IA, {
|
|
1242
1242
|
plugins: A
|
|
1243
1243
|
}))) : $I, C = B.reduce(function(I, E) {
|
|
1244
1244
|
var w = (g.getAttribute("data-tippy-" + E) || "").trim();
|
|
@@ -1258,7 +1258,7 @@ function AQ(g, A) {
|
|
|
1258
1258
|
}
|
|
1259
1259
|
function hB(g, A) {
|
|
1260
1260
|
var B = Object.assign({}, A, {
|
|
1261
|
-
content:
|
|
1261
|
+
content: fB(A.content, [g])
|
|
1262
1262
|
}, A.ignoreAttributes ? {} : AQ(g, A.plugins));
|
|
1263
1263
|
return B.aria = Object.assign({}, IA.aria, B.aria), B.aria = {
|
|
1264
1264
|
expanded: B.aria.expanded === "auto" ? A.interactive : B.aria.expanded,
|
|
@@ -1273,7 +1273,7 @@ function mg(g, A) {
|
|
|
1273
1273
|
}
|
|
1274
1274
|
function SB(g) {
|
|
1275
1275
|
var A = nA();
|
|
1276
|
-
return g === !0 ? A.className =
|
|
1276
|
+
return g === !0 ? A.className = qB : (A.className = XB, Jg(g) ? A.appendChild(g) : mg(A, g)), A;
|
|
1277
1277
|
}
|
|
1278
1278
|
function eB(g, A) {
|
|
1279
1279
|
Jg(A.content) ? (mg(g, ""), g.appendChild(A.content)) : typeof A.content != "function" && (A.allowHTML ? mg(g, A.content) : g.textContent = A.content);
|
|
@@ -1283,21 +1283,21 @@ function jg(g) {
|
|
|
1283
1283
|
return {
|
|
1284
1284
|
box: A,
|
|
1285
1285
|
content: B.find(function(C) {
|
|
1286
|
-
return C.classList.contains(
|
|
1286
|
+
return C.classList.contains(dB);
|
|
1287
1287
|
}),
|
|
1288
1288
|
arrow: B.find(function(C) {
|
|
1289
|
-
return C.classList.contains(
|
|
1289
|
+
return C.classList.contains(qB) || C.classList.contains(XB);
|
|
1290
1290
|
}),
|
|
1291
1291
|
backdrop: B.find(function(C) {
|
|
1292
|
-
return C.classList.contains(
|
|
1292
|
+
return C.classList.contains(zB);
|
|
1293
1293
|
})
|
|
1294
1294
|
};
|
|
1295
1295
|
}
|
|
1296
|
-
function
|
|
1296
|
+
function AC(g) {
|
|
1297
1297
|
var A = nA(), B = nA();
|
|
1298
1298
|
B.className = VI, B.setAttribute("data-state", "hidden"), B.setAttribute("tabindex", "-1");
|
|
1299
1299
|
var C = nA();
|
|
1300
|
-
C.className =
|
|
1300
|
+
C.className = dB, C.setAttribute("data-state", "hidden"), eB(C, g.props), A.appendChild(B), B.appendChild(C), I(g.props, g.props);
|
|
1301
1301
|
function I(E, w) {
|
|
1302
1302
|
var M = jg(A), D = M.box, Y = M.content, o = M.arrow;
|
|
1303
1303
|
w.theme ? D.setAttribute("data-theme", w.theme) : D.removeAttribute("data-theme"), typeof w.animation == "string" ? D.setAttribute("data-animation", w.animation) : D.removeAttribute("data-animation"), w.inertia ? D.setAttribute("data-inertia", "") : D.removeAttribute("data-inertia"), D.style.maxWidth = typeof w.maxWidth == "number" ? w.maxWidth + "px" : w.maxWidth, w.role ? D.setAttribute("role", w.role) : D.removeAttribute("role"), (E.content !== w.content || E.allowHTML !== w.allowHTML) && eB(Y, g.props), w.arrow ? o ? E.arrow !== w.arrow && (D.removeChild(o), D.appendChild(SB(w.arrow))) : D.appendChild(SB(w.arrow)) : o && D.removeChild(o);
|
|
@@ -1307,10 +1307,10 @@ function _B(g) {
|
|
|
1307
1307
|
onUpdate: I
|
|
1308
1308
|
};
|
|
1309
1309
|
}
|
|
1310
|
-
|
|
1310
|
+
AC.$$tippy = !0;
|
|
1311
1311
|
var BQ = 1, eg = [], xg = [];
|
|
1312
1312
|
function CQ(g, A) {
|
|
1313
|
-
var B = hB(g, Object.assign({}, IA,
|
|
1313
|
+
var B = hB(g, Object.assign({}, IA, _B(cB(A)))), C, I, E, w = !1, M = !1, D = !1, Y = !1, o, a, j, S = [], L = UB(ig, B.interactiveDebounce), h, s = BQ++, c = null, t = pI(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?
|
|
@@ -1334,13 +1334,13 @@ function CQ(g, A) {
|
|
|
1334
1334
|
clearDelayTimeouts: Ng,
|
|
1335
1335
|
setProps: cg,
|
|
1336
1336
|
setContent: Lg,
|
|
1337
|
-
show:
|
|
1338
|
-
hide:
|
|
1339
|
-
hideWithInteractivity:
|
|
1337
|
+
show: BC,
|
|
1338
|
+
hide: CC,
|
|
1339
|
+
hideWithInteractivity: IC,
|
|
1340
1340
|
enable: $A,
|
|
1341
1341
|
disable: Ug,
|
|
1342
|
-
unmount:
|
|
1343
|
-
destroy:
|
|
1342
|
+
unmount: QC,
|
|
1343
|
+
destroy: EC
|
|
1344
1344
|
};
|
|
1345
1345
|
if (!B.render)
|
|
1346
1346
|
return Q;
|
|
@@ -1370,7 +1370,7 @@ function CQ(g, A) {
|
|
|
1370
1370
|
}
|
|
1371
1371
|
function z() {
|
|
1372
1372
|
var i = p().parentNode;
|
|
1373
|
-
return i ?
|
|
1373
|
+
return i ? vB(i) : document;
|
|
1374
1374
|
}
|
|
1375
1375
|
function AA() {
|
|
1376
1376
|
return jg(N);
|
|
@@ -1555,7 +1555,7 @@ function CQ(g, A) {
|
|
|
1555
1555
|
fn: function(Gg) {
|
|
1556
1556
|
var mA = Gg.state;
|
|
1557
1557
|
if (y()) {
|
|
1558
|
-
var
|
|
1558
|
+
var MC = AA(), Tg = MC.box;
|
|
1559
1559
|
["placement", "reference-hidden", "escaped"].forEach(function(hg) {
|
|
1560
1560
|
hg === "placement" ? Tg.setAttribute("data-placement", mA.placement) : mA.attributes.popper["data-popper-" + hg] ? Tg.setAttribute("data-" + hg, "") : Tg.removeAttribute("data-" + hg);
|
|
1561
1561
|
}), mA.attributes.popper = {};
|
|
@@ -1604,7 +1604,7 @@ function CQ(g, A) {
|
|
|
1604
1604
|
}
|
|
1605
1605
|
function hA() {
|
|
1606
1606
|
var i = Q.props.appendTo, R, K = p();
|
|
1607
|
-
Q.props.interactive && i ===
|
|
1607
|
+
Q.props.interactive && i === bB || i === "parent" ? R = K.parentNode : R = fB(i, [K]), R.contains(N) || R.appendChild(N), Q.state.isMounted = !0, Yg();
|
|
1608
1608
|
}
|
|
1609
1609
|
function RA() {
|
|
1610
1610
|
return qA(N.querySelectorAll("[data-tippy-root]"));
|
|
@@ -1657,7 +1657,7 @@ function CQ(g, A) {
|
|
|
1657
1657
|
content: i
|
|
1658
1658
|
});
|
|
1659
1659
|
}
|
|
1660
|
-
function
|
|
1660
|
+
function BC() {
|
|
1661
1661
|
var i = Q.state.isVisible, R = Q.state.isDestroyed, K = !Q.state.isEnabled, n = oA.isTouch && !Q.props.touch, l = ug(Q.props.duration, 0, IA.duration);
|
|
1662
1662
|
if (!(i || R || K || n) && !p().hasAttribute("disabled") && (Z("onShow", [Q], !1), Q.props.onShow(Q) !== !1)) {
|
|
1663
1663
|
if (Q.state.isVisible = !0, y() && (N.style.visibility = "visible"), W(), gA(), Q.state.isMounted || (N.style.transition = "none"), y()) {
|
|
@@ -1678,7 +1678,7 @@ function CQ(g, A) {
|
|
|
1678
1678
|
}, hA();
|
|
1679
1679
|
}
|
|
1680
1680
|
}
|
|
1681
|
-
function
|
|
1681
|
+
function CC() {
|
|
1682
1682
|
var i = !Q.state.isVisible, R = Q.state.isDestroyed, K = !Q.state.isEnabled, n = ug(Q.props.duration, 1, IA.duration);
|
|
1683
1683
|
if (!(i || R || K) && (Z("onHide", [Q], !1), Q.props.onHide(Q) !== !1)) {
|
|
1684
1684
|
if (Q.state.isVisible = !1, Q.state.isShown = !1, Y = !1, w = !1, y() && (N.style.visibility = "hidden"), tA(), LA(), W(!0), y()) {
|
|
@@ -1688,17 +1688,17 @@ function CQ(g, A) {
|
|
|
1688
1688
|
EA(), MA(), Q.props.animation ? y() && yA(n, Q.unmount) : Q.unmount();
|
|
1689
1689
|
}
|
|
1690
1690
|
}
|
|
1691
|
-
function
|
|
1691
|
+
function IC(i) {
|
|
1692
1692
|
z().addEventListener("mousemove", L), NB(eg, L), L(i);
|
|
1693
1693
|
}
|
|
1694
|
-
function
|
|
1694
|
+
function QC() {
|
|
1695
1695
|
Q.state.isVisible && Q.hide(), Q.state.isMounted && (Fg(), RA().forEach(function(i) {
|
|
1696
1696
|
i._tippy.unmount();
|
|
1697
1697
|
}), N.parentNode && N.parentNode.removeChild(N), xg = xg.filter(function(i) {
|
|
1698
1698
|
return i !== Q;
|
|
1699
1699
|
}), Q.state.isMounted = !1, Z("onHidden", [Q]));
|
|
1700
1700
|
}
|
|
1701
|
-
function
|
|
1701
|
+
function EC() {
|
|
1702
1702
|
Q.state.isDestroyed || (Q.clearDelayTimeouts(), Q.unmount(), Dg(), delete g._tippy, Q.state.isDestroyed = !0, Z("onDestroy", [Q]));
|
|
1703
1703
|
}
|
|
1704
1704
|
}
|
|
@@ -1717,7 +1717,7 @@ function k(g, A) {
|
|
|
1717
1717
|
k.defaultProps = IA;
|
|
1718
1718
|
k.setDefaultProps = _I;
|
|
1719
1719
|
k.currentInput = oA;
|
|
1720
|
-
var IQ = Object.assign({},
|
|
1720
|
+
var IQ = Object.assign({}, VB, {
|
|
1721
1721
|
effect: function(A) {
|
|
1722
1722
|
var B = A.state, C = {
|
|
1723
1723
|
popper: {
|
|
@@ -1875,13 +1875,13 @@ var IQ = Object.assign({}, OB, {
|
|
|
1875
1875
|
};
|
|
1876
1876
|
function MQ() {
|
|
1877
1877
|
var g = nA();
|
|
1878
|
-
return g.className =
|
|
1878
|
+
return g.className = zB, Eg([g], "hidden"), g;
|
|
1879
1879
|
}
|
|
1880
1880
|
var Hg = {
|
|
1881
1881
|
clientX: 0,
|
|
1882
1882
|
clientY: 0
|
|
1883
1883
|
}, Rg = [];
|
|
1884
|
-
function
|
|
1884
|
+
function gC(g) {
|
|
1885
1885
|
var A = g.clientX, B = g.clientY;
|
|
1886
1886
|
Hg = {
|
|
1887
1887
|
clientX: A,
|
|
@@ -1889,16 +1889,16 @@ function AC(g) {
|
|
|
1889
1889
|
};
|
|
1890
1890
|
}
|
|
1891
1891
|
function wQ(g) {
|
|
1892
|
-
g.addEventListener("mousemove",
|
|
1892
|
+
g.addEventListener("mousemove", gC);
|
|
1893
1893
|
}
|
|
1894
1894
|
function DQ(g) {
|
|
1895
|
-
g.removeEventListener("mousemove",
|
|
1895
|
+
g.removeEventListener("mousemove", gC);
|
|
1896
1896
|
}
|
|
1897
1897
|
var iQ = {
|
|
1898
1898
|
name: "followCursor",
|
|
1899
1899
|
defaultValue: !1,
|
|
1900
1900
|
fn: function(A) {
|
|
1901
|
-
var B = A.reference, C =
|
|
1901
|
+
var B = A.reference, C = vB(A.props.triggerTarget || B), I = !1, E = !1, w = !0, M = A.props;
|
|
1902
1902
|
function D() {
|
|
1903
1903
|
return A.props.followCursor === "initial" && A.state.isVisible;
|
|
1904
1904
|
}
|
|
@@ -2004,7 +2004,7 @@ var YQ = {
|
|
|
2004
2004
|
}
|
|
2005
2005
|
};
|
|
2006
2006
|
function Y(j) {
|
|
2007
|
-
return FQ(
|
|
2007
|
+
return FQ(PB(j), B.getBoundingClientRect(), qA(B.getClientRects()), E);
|
|
2008
2008
|
}
|
|
2009
2009
|
function o(j) {
|
|
2010
2010
|
w = !0, A.setProps(j), w = !1;
|
|
@@ -2096,7 +2096,7 @@ function RB(g, A) {
|
|
|
2096
2096
|
return g && A ? g.top !== A.top || g.right !== A.right || g.bottom !== A.bottom || g.left !== A.left : !0;
|
|
2097
2097
|
}
|
|
2098
2098
|
k.setDefaultProps({
|
|
2099
|
-
render:
|
|
2099
|
+
render: AC
|
|
2100
2100
|
});
|
|
2101
2101
|
k.setDefaultProps({
|
|
2102
2102
|
//@ts-ignore
|
|
@@ -2108,17 +2108,17 @@ k.setDefaultProps({
|
|
|
2108
2108
|
const NQ = (g) => g instanceof Object && "$" in g && "$el" in g;
|
|
2109
2109
|
function cQ(g, A = {}, B = { mount: !0, appName: "Tippy" }) {
|
|
2110
2110
|
B = Object.assign({ mount: !0, appName: "Tippy" }, B);
|
|
2111
|
-
const C =
|
|
2111
|
+
const C = DC(), I = m(), E = m({
|
|
2112
2112
|
isEnabled: !1,
|
|
2113
2113
|
isVisible: !1,
|
|
2114
2114
|
isDestroyed: !1,
|
|
2115
2115
|
isMounted: !1,
|
|
2116
2116
|
isShown: !1
|
|
2117
|
-
}), w =
|
|
2117
|
+
}), w = iC();
|
|
2118
2118
|
let M = null;
|
|
2119
2119
|
const D = () => M || (M = document.createDocumentFragment(), M), Y = (F) => {
|
|
2120
2120
|
let G, u = kA(F) ? F.value : F;
|
|
2121
|
-
return
|
|
2121
|
+
return YC(u) ? (w.value || (w.value = Og({
|
|
2122
2122
|
name: B.appName,
|
|
2123
2123
|
setup: () => () => kA(F) ? F.value : F
|
|
2124
2124
|
}), C && Object.assign(w.value._context, C.appContext), w.value.mount(D())), G = () => D()) : typeof u == "object" ? (w.value || (w.value = Og({
|
|
@@ -2204,7 +2204,7 @@ function cQ(g, A = {}, B = { mount: !0, appName: "Tippy" }) {
|
|
|
2204
2204
|
mount: e,
|
|
2205
2205
|
state: E
|
|
2206
2206
|
};
|
|
2207
|
-
return B.mount && (C ? C.isMounted ? e() : XA(e) : e()), C &&
|
|
2207
|
+
return B.mount && (C ? C.isMounted ? e() : XA(e) : e()), C && oC(() => {
|
|
2208
2208
|
h();
|
|
2209
2209
|
}), kA(A) || Pg(A) ? ag(A, a, { immediate: !1 }) : kA(A.content) && ag(A.content, j, { immediate: !1 }), N;
|
|
2210
2210
|
}
|
|
@@ -2312,7 +2312,7 @@ const SQ = SA({
|
|
|
2312
2312
|
}, { immediate: !0, deep: !0 }), ag(() => g, () => {
|
|
2313
2313
|
o.setProps(D()), a && o.setContent(() => w.value);
|
|
2314
2314
|
}, { deep: !0 });
|
|
2315
|
-
let j =
|
|
2315
|
+
let j = wC({
|
|
2316
2316
|
elem: I,
|
|
2317
2317
|
contentElem: w,
|
|
2318
2318
|
mounted: M,
|
|
@@ -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) => (x(), BA(Cg(SQ),
|
|
2410
|
+
return (A, B) => (x(), BA(Cg(SQ), nB(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
|
|
@@ -2801,9 +2801,9 @@ const kQ = { class: "w-full p-4 text-zinc-800 bg-zinc-200 rounded-xl shadow-lg s
|
|
|
2801
2801
|
A.value = !1, document.body.style.overflowY = "";
|
|
2802
2802
|
}
|
|
2803
2803
|
return (I, E) => (x(), X(sg, null, [
|
|
2804
|
-
U("button", { onClick: B }, [
|
|
2804
|
+
U("button", nB(I.$attrs, { onClick: B }), [
|
|
2805
2805
|
YA(I.$slots, "default")
|
|
2806
|
-
]),
|
|
2806
|
+
], 16),
|
|
2807
2807
|
(x(), BA(cC, { to: "body" }, [
|
|
2808
2808
|
TB(U("div", {
|
|
2809
2809
|
class: "w-full h-[100dvh] py-8 px-2 flex flex-col justify-center items-center bg-black/25 backdrop-blur-sm fixed inset-0 z-30",
|