@vue-interface/tooltip 1.0.0-beta.2 → 1.0.0-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,1137 +0,0 @@
1
- import { openBlock as gt, createElementBlock as bt, normalizeClass as yt, createElementVNode as Fe, renderSlot as wt, createTextVNode as xt, toDisplayString as Ot, h as Et, render as At } from "vue";
2
- var j = "top", C = "bottom", k = "right", $ = "left", we = "auto", fe = [j, C, k, $], Z = "start", pe = "end", Pt = "clippingParents", rt = "viewport", ae = "popper", St = "reference", Xe = /* @__PURE__ */ fe.reduce(function(t, e) {
3
- return t.concat([e + "-" + Z, e + "-" + pe]);
4
- }, []), nt = /* @__PURE__ */ [].concat(fe, [we]).reduce(function(t, e) {
5
- return t.concat([e, e + "-" + Z, e + "-" + pe]);
6
- }, []), Dt = "beforeRead", Rt = "read", Tt = "afterRead", jt = "beforeMain", $t = "main", Nt = "afterMain", Bt = "beforeWrite", Ct = "write", kt = "afterWrite", Se = [Dt, Rt, Tt, jt, $t, Nt, Bt, Ct, kt];
7
- function W(t) {
8
- return t ? (t.nodeName || "").toLowerCase() : null;
9
- }
10
- function L(t) {
11
- if (t == null)
12
- return window;
13
- if (t.toString() !== "[object Window]") {
14
- var e = t.ownerDocument;
15
- return e && e.defaultView || window;
16
- }
17
- return t;
18
- }
19
- function K(t) {
20
- var e = L(t).Element;
21
- return t instanceof e || t instanceof Element;
22
- }
23
- function B(t) {
24
- var e = L(t).HTMLElement;
25
- return t instanceof e || t instanceof HTMLElement;
26
- }
27
- function Te(t) {
28
- if (typeof ShadowRoot > "u")
29
- return !1;
30
- var e = L(t).ShadowRoot;
31
- return t instanceof e || t instanceof ShadowRoot;
32
- }
33
- function Lt(t) {
34
- var e = t.state;
35
- Object.keys(e.elements).forEach(function(r) {
36
- var n = e.styles[r] || {}, o = e.attributes[r] || {}, s = e.elements[r];
37
- !B(s) || !W(s) || (Object.assign(s.style, n), Object.keys(o).forEach(function(c) {
38
- var i = o[c];
39
- i === !1 ? s.removeAttribute(c) : s.setAttribute(c, i === !0 ? "" : i);
40
- }));
41
- });
42
- }
43
- function Mt(t) {
44
- var e = t.state, r = {
45
- popper: {
46
- position: e.options.strategy,
47
- left: "0",
48
- top: "0",
49
- margin: "0"
50
- },
51
- arrow: {
52
- position: "absolute"
53
- },
54
- reference: {}
55
- };
56
- return Object.assign(e.elements.popper.style, r.popper), e.styles = r, e.elements.arrow && Object.assign(e.elements.arrow.style, r.arrow), function() {
57
- Object.keys(e.elements).forEach(function(n) {
58
- var o = e.elements[n], s = e.attributes[n] || {}, c = Object.keys(e.styles.hasOwnProperty(n) ? e.styles[n] : r[n]), i = c.reduce(function(a, f) {
59
- return a[f] = "", a;
60
- }, {});
61
- !B(o) || !W(o) || (Object.assign(o.style, i), Object.keys(s).forEach(function(a) {
62
- o.removeAttribute(a);
63
- }));
64
- });
65
- };
66
- }
67
- const It = {
68
- name: "applyStyles",
69
- enabled: !0,
70
- phase: "write",
71
- fn: Lt,
72
- effect: Mt,
73
- requires: ["computeStyles"]
74
- };
75
- function I(t) {
76
- return t.split("-")[0];
77
- }
78
- var J = Math.max, ye = Math.min, ee = Math.round;
79
- function De() {
80
- var t = navigator.userAgentData;
81
- return t != null && t.brands ? t.brands.map(function(e) {
82
- return e.brand + "/" + e.version;
83
- }).join(" ") : navigator.userAgent;
84
- }
85
- function ot() {
86
- return !/^((?!chrome|android).)*safari/i.test(De());
87
- }
88
- function te(t, e, r) {
89
- e === void 0 && (e = !1), r === void 0 && (r = !1);
90
- var n = t.getBoundingClientRect(), o = 1, s = 1;
91
- e && B(t) && (o = t.offsetWidth > 0 && ee(n.width) / t.offsetWidth || 1, s = t.offsetHeight > 0 && ee(n.height) / t.offsetHeight || 1);
92
- var c = K(t) ? L(t) : window, i = c.visualViewport, a = !ot() && r, f = (n.left + (a && i ? i.offsetLeft : 0)) / o, p = (n.top + (a && i ? i.offsetTop : 0)) / s, u = n.width / o, v = n.height / s;
93
- return {
94
- width: u,
95
- height: v,
96
- top: p,
97
- right: f + u,
98
- bottom: p + v,
99
- left: f,
100
- x: f,
101
- y: p
102
- };
103
- }
104
- function je(t) {
105
- var e = te(t), r = t.offsetWidth, n = t.offsetHeight;
106
- return Math.abs(e.width - r) <= 1 && (r = e.width), Math.abs(e.height - n) <= 1 && (n = e.height), {
107
- x: t.offsetLeft,
108
- y: t.offsetTop,
109
- width: r,
110
- height: n
111
- };
112
- }
113
- function at(t, e) {
114
- var r = e.getRootNode && e.getRootNode();
115
- if (t.contains(e))
116
- return !0;
117
- if (r && Te(r)) {
118
- var n = e;
119
- do {
120
- if (n && t.isSameNode(n))
121
- return !0;
122
- n = n.parentNode || n.host;
123
- } while (n);
124
- }
125
- return !1;
126
- }
127
- function V(t) {
128
- return L(t).getComputedStyle(t);
129
- }
130
- function Vt(t) {
131
- return ["table", "td", "th"].indexOf(W(t)) >= 0;
132
- }
133
- function _(t) {
134
- return ((K(t) ? t.ownerDocument : t.document) || window.document).documentElement;
135
- }
136
- function xe(t) {
137
- return W(t) === "html" ? t : t.assignedSlot || t.parentNode || (Te(t) ? t.host : null) || _(t);
138
- }
139
- function Ye(t) {
140
- return !B(t) || V(t).position === "fixed" ? null : t.offsetParent;
141
- }
142
- function Wt(t) {
143
- var e = /firefox/i.test(De()), r = /Trident/i.test(De());
144
- if (r && B(t)) {
145
- var n = V(t);
146
- if (n.position === "fixed")
147
- return null;
148
- }
149
- var o = xe(t);
150
- for (Te(o) && (o = o.host); B(o) && ["html", "body"].indexOf(W(o)) < 0; ) {
151
- var s = V(o);
152
- if (s.transform !== "none" || s.perspective !== "none" || s.contain === "paint" || ["transform", "perspective"].indexOf(s.willChange) !== -1 || e && s.willChange === "filter" || e && s.filter && s.filter !== "none")
153
- return o;
154
- o = o.parentNode;
155
- }
156
- return null;
157
- }
158
- function le(t) {
159
- for (var e = L(t), r = Ye(t); r && Vt(r) && V(r).position === "static"; )
160
- r = Ye(r);
161
- return r && (W(r) === "html" || W(r) === "body" && V(r).position === "static") ? e : r || Wt(t) || e;
162
- }
163
- function $e(t) {
164
- return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
165
- }
166
- function ie(t, e, r) {
167
- return J(t, ye(e, r));
168
- }
169
- function Ht(t, e, r) {
170
- var n = ie(t, e, r);
171
- return n > r ? r : n;
172
- }
173
- function it() {
174
- return {
175
- top: 0,
176
- right: 0,
177
- bottom: 0,
178
- left: 0
179
- };
180
- }
181
- function st(t) {
182
- return Object.assign({}, it(), t);
183
- }
184
- function pt(t, e) {
185
- return e.reduce(function(r, n) {
186
- return r[n] = t, r;
187
- }, {});
188
- }
189
- var qt = function(e, r) {
190
- return e = typeof e == "function" ? e(Object.assign({}, r.rects, {
191
- placement: r.placement
192
- })) : e, st(typeof e != "number" ? e : pt(e, fe));
193
- };
194
- function _t(t) {
195
- var e, r = t.state, n = t.name, o = t.options, s = r.elements.arrow, c = r.modifiersData.popperOffsets, i = I(r.placement), a = $e(i), f = [$, k].indexOf(i) >= 0, p = f ? "height" : "width";
196
- if (!(!s || !c)) {
197
- var u = qt(o.padding, r), v = je(s), d = a === "y" ? j : $, x = a === "y" ? C : k, h = r.rects.reference[p] + r.rects.reference[a] - c[a] - r.rects.popper[p], l = c[a] - r.rects.reference[a], y = le(s), A = y ? a === "y" ? y.clientHeight || 0 : y.clientWidth || 0 : 0, O = h / 2 - l / 2, m = u[d], b = A - v[p] - u[x], g = A / 2 - v[p] / 2 + O, E = ie(m, g, b), P = a;
198
- r.modifiersData[n] = (e = {}, e[P] = E, e.centerOffset = E - g, e);
199
- }
200
- }
201
- function Ft(t) {
202
- var e = t.state, r = t.options, n = r.element, o = n === void 0 ? "[data-popper-arrow]" : n;
203
- if (o != null && !(typeof o == "string" && (o = e.elements.popper.querySelector(o), !o))) {
204
- if (process.env.NODE_ENV !== "production" && (B(o) || console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).', "To use an SVG arrow, wrap it in an HTMLElement that will be used as", "the arrow."].join(" "))), !at(e.elements.popper, o)) {
205
- process.env.NODE_ENV !== "production" && console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', "element."].join(" "));
206
- return;
207
- }
208
- e.elements.arrow = o;
209
- }
210
- }
211
- const Xt = {
212
- name: "arrow",
213
- enabled: !0,
214
- phase: "main",
215
- fn: _t,
216
- effect: Ft,
217
- requires: ["popperOffsets"],
218
- requiresIfExists: ["preventOverflow"]
219
- };
220
- function re(t) {
221
- return t.split("-")[1];
222
- }
223
- var Yt = {
224
- top: "auto",
225
- right: "auto",
226
- bottom: "auto",
227
- left: "auto"
228
- };
229
- function zt(t) {
230
- var e = t.x, r = t.y, n = window, o = n.devicePixelRatio || 1;
231
- return {
232
- x: ee(e * o) / o || 0,
233
- y: ee(r * o) / o || 0
234
- };
235
- }
236
- function ze(t) {
237
- var e, r = t.popper, n = t.popperRect, o = t.placement, s = t.variation, c = t.offsets, i = t.position, a = t.gpuAcceleration, f = t.adaptive, p = t.roundOffsets, u = t.isFixed, v = c.x, d = v === void 0 ? 0 : v, x = c.y, h = x === void 0 ? 0 : x, l = typeof p == "function" ? p({
238
- x: d,
239
- y: h
240
- }) : {
241
- x: d,
242
- y: h
243
- };
244
- d = l.x, h = l.y;
245
- var y = c.hasOwnProperty("x"), A = c.hasOwnProperty("y"), O = $, m = j, b = window;
246
- if (f) {
247
- var g = le(r), E = "clientHeight", P = "clientWidth";
248
- if (g === L(r) && (g = _(r), V(g).position !== "static" && i === "absolute" && (E = "scrollHeight", P = "scrollWidth")), g = g, o === j || (o === $ || o === k) && s === pe) {
249
- m = C;
250
- var S = u && g === b && b.visualViewport ? b.visualViewport.height : g[E];
251
- h -= S - n.height, h *= a ? 1 : -1;
252
- }
253
- if (o === $ || (o === j || o === C) && s === pe) {
254
- O = k;
255
- var D = u && g === b && b.visualViewport ? b.visualViewport.width : g[P];
256
- d -= D - n.width, d *= a ? 1 : -1;
257
- }
258
- }
259
- var w = Object.assign({
260
- position: i
261
- }, f && Yt), R = p === !0 ? zt({
262
- x: d,
263
- y: h
264
- }) : {
265
- x: d,
266
- y: h
267
- };
268
- if (d = R.x, h = R.y, a) {
269
- var T;
270
- return Object.assign({}, w, (T = {}, T[m] = A ? "0" : "", T[O] = y ? "0" : "", T.transform = (b.devicePixelRatio || 1) <= 1 ? "translate(" + d + "px, " + h + "px)" : "translate3d(" + d + "px, " + h + "px, 0)", T));
271
- }
272
- return Object.assign({}, w, (e = {}, e[m] = A ? h + "px" : "", e[O] = y ? d + "px" : "", e.transform = "", e));
273
- }
274
- function Ut(t) {
275
- var e = t.state, r = t.options, n = r.gpuAcceleration, o = n === void 0 ? !0 : n, s = r.adaptive, c = s === void 0 ? !0 : s, i = r.roundOffsets, a = i === void 0 ? !0 : i;
276
- if (process.env.NODE_ENV !== "production") {
277
- var f = V(e.elements.popper).transitionProperty || "";
278
- c && ["transform", "top", "right", "bottom", "left"].some(function(u) {
279
- return f.indexOf(u) >= 0;
280
- }) && console.warn(["Popper: Detected CSS transitions on at least one of the following", 'CSS properties: "transform", "top", "right", "bottom", "left".', `
281
-
282
- `, 'Disable the "computeStyles" modifier\'s `adaptive` option to allow', "for smooth transitions, or remove these properties from the CSS", "transition declaration on the popper element if only transitioning", "opacity or background-color for example.", `
283
-
284
- `, "We recommend using the popper element as a wrapper around an inner", "element that can have any CSS property transitioned for animations."].join(" "));
285
- }
286
- var p = {
287
- placement: I(e.placement),
288
- variation: re(e.placement),
289
- popper: e.elements.popper,
290
- popperRect: e.rects.popper,
291
- gpuAcceleration: o,
292
- isFixed: e.options.strategy === "fixed"
293
- };
294
- e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, ze(Object.assign({}, p, {
295
- offsets: e.modifiersData.popperOffsets,
296
- position: e.options.strategy,
297
- adaptive: c,
298
- roundOffsets: a
299
- })))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, ze(Object.assign({}, p, {
300
- offsets: e.modifiersData.arrow,
301
- position: "absolute",
302
- adaptive: !1,
303
- roundOffsets: a
304
- })))), e.attributes.popper = Object.assign({}, e.attributes.popper, {
305
- "data-popper-placement": e.placement
306
- });
307
- }
308
- const Gt = {
309
- name: "computeStyles",
310
- enabled: !0,
311
- phase: "beforeWrite",
312
- fn: Ut,
313
- data: {}
314
- };
315
- var ge = {
316
- passive: !0
317
- };
318
- function Jt(t) {
319
- var e = t.state, r = t.instance, n = t.options, o = n.scroll, s = o === void 0 ? !0 : o, c = n.resize, i = c === void 0 ? !0 : c, a = L(e.elements.popper), f = [].concat(e.scrollParents.reference, e.scrollParents.popper);
320
- return s && f.forEach(function(p) {
321
- p.addEventListener("scroll", r.update, ge);
322
- }), i && a.addEventListener("resize", r.update, ge), function() {
323
- s && f.forEach(function(p) {
324
- p.removeEventListener("scroll", r.update, ge);
325
- }), i && a.removeEventListener("resize", r.update, ge);
326
- };
327
- }
328
- const Kt = {
329
- name: "eventListeners",
330
- enabled: !0,
331
- phase: "write",
332
- fn: function() {
333
- },
334
- effect: Jt,
335
- data: {}
336
- };
337
- var Qt = {
338
- left: "right",
339
- right: "left",
340
- bottom: "top",
341
- top: "bottom"
342
- };
343
- function be(t) {
344
- return t.replace(/left|right|bottom|top/g, function(e) {
345
- return Qt[e];
346
- });
347
- }
348
- var Zt = {
349
- start: "end",
350
- end: "start"
351
- };
352
- function Ue(t) {
353
- return t.replace(/start|end/g, function(e) {
354
- return Zt[e];
355
- });
356
- }
357
- function Ne(t) {
358
- var e = L(t), r = e.pageXOffset, n = e.pageYOffset;
359
- return {
360
- scrollLeft: r,
361
- scrollTop: n
362
- };
363
- }
364
- function Be(t) {
365
- return te(_(t)).left + Ne(t).scrollLeft;
366
- }
367
- function er(t, e) {
368
- var r = L(t), n = _(t), o = r.visualViewport, s = n.clientWidth, c = n.clientHeight, i = 0, a = 0;
369
- if (o) {
370
- s = o.width, c = o.height;
371
- var f = ot();
372
- (f || !f && e === "fixed") && (i = o.offsetLeft, a = o.offsetTop);
373
- }
374
- return {
375
- width: s,
376
- height: c,
377
- x: i + Be(t),
378
- y: a
379
- };
380
- }
381
- function tr(t) {
382
- var e, r = _(t), n = Ne(t), o = (e = t.ownerDocument) == null ? void 0 : e.body, s = J(r.scrollWidth, r.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), c = J(r.scrollHeight, r.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), i = -n.scrollLeft + Be(t), a = -n.scrollTop;
383
- return V(o || r).direction === "rtl" && (i += J(r.clientWidth, o ? o.clientWidth : 0) - s), {
384
- width: s,
385
- height: c,
386
- x: i,
387
- y: a
388
- };
389
- }
390
- function Ce(t) {
391
- var e = V(t), r = e.overflow, n = e.overflowX, o = e.overflowY;
392
- return /auto|scroll|overlay|hidden/.test(r + o + n);
393
- }
394
- function ct(t) {
395
- return ["html", "body", "#document"].indexOf(W(t)) >= 0 ? t.ownerDocument.body : B(t) && Ce(t) ? t : ct(xe(t));
396
- }
397
- function se(t, e) {
398
- var r;
399
- e === void 0 && (e = []);
400
- var n = ct(t), o = n === ((r = t.ownerDocument) == null ? void 0 : r.body), s = L(n), c = o ? [s].concat(s.visualViewport || [], Ce(n) ? n : []) : n, i = e.concat(c);
401
- return o ? i : i.concat(se(xe(c)));
402
- }
403
- function Re(t) {
404
- return Object.assign({}, t, {
405
- left: t.x,
406
- top: t.y,
407
- right: t.x + t.width,
408
- bottom: t.y + t.height
409
- });
410
- }
411
- function rr(t, e) {
412
- var r = te(t, !1, e === "fixed");
413
- return r.top = r.top + t.clientTop, r.left = r.left + t.clientLeft, r.bottom = r.top + t.clientHeight, r.right = r.left + t.clientWidth, r.width = t.clientWidth, r.height = t.clientHeight, r.x = r.left, r.y = r.top, r;
414
- }
415
- function Ge(t, e, r) {
416
- return e === rt ? Re(er(t, r)) : K(e) ? rr(e, r) : Re(tr(_(t)));
417
- }
418
- function nr(t) {
419
- var e = se(xe(t)), r = ["absolute", "fixed"].indexOf(V(t).position) >= 0, n = r && B(t) ? le(t) : t;
420
- return K(n) ? e.filter(function(o) {
421
- return K(o) && at(o, n) && W(o) !== "body";
422
- }) : [];
423
- }
424
- function or(t, e, r, n) {
425
- var o = e === "clippingParents" ? nr(t) : [].concat(e), s = [].concat(o, [r]), c = s[0], i = s.reduce(function(a, f) {
426
- var p = Ge(t, f, n);
427
- return a.top = J(p.top, a.top), a.right = ye(p.right, a.right), a.bottom = ye(p.bottom, a.bottom), a.left = J(p.left, a.left), a;
428
- }, Ge(t, c, n));
429
- return i.width = i.right - i.left, i.height = i.bottom - i.top, i.x = i.left, i.y = i.top, i;
430
- }
431
- function ft(t) {
432
- var e = t.reference, r = t.element, n = t.placement, o = n ? I(n) : null, s = n ? re(n) : null, c = e.x + e.width / 2 - r.width / 2, i = e.y + e.height / 2 - r.height / 2, a;
433
- switch (o) {
434
- case j:
435
- a = {
436
- x: c,
437
- y: e.y - r.height
438
- };
439
- break;
440
- case C:
441
- a = {
442
- x: c,
443
- y: e.y + e.height
444
- };
445
- break;
446
- case k:
447
- a = {
448
- x: e.x + e.width,
449
- y: i
450
- };
451
- break;
452
- case $:
453
- a = {
454
- x: e.x - r.width,
455
- y: i
456
- };
457
- break;
458
- default:
459
- a = {
460
- x: e.x,
461
- y: e.y
462
- };
463
- }
464
- var f = o ? $e(o) : null;
465
- if (f != null) {
466
- var p = f === "y" ? "height" : "width";
467
- switch (s) {
468
- case Z:
469
- a[f] = a[f] - (e[p] / 2 - r[p] / 2);
470
- break;
471
- case pe:
472
- a[f] = a[f] + (e[p] / 2 - r[p] / 2);
473
- break;
474
- }
475
- }
476
- return a;
477
- }
478
- function ce(t, e) {
479
- e === void 0 && (e = {});
480
- var r = e, n = r.placement, o = n === void 0 ? t.placement : n, s = r.strategy, c = s === void 0 ? t.strategy : s, i = r.boundary, a = i === void 0 ? Pt : i, f = r.rootBoundary, p = f === void 0 ? rt : f, u = r.elementContext, v = u === void 0 ? ae : u, d = r.altBoundary, x = d === void 0 ? !1 : d, h = r.padding, l = h === void 0 ? 0 : h, y = st(typeof l != "number" ? l : pt(l, fe)), A = v === ae ? St : ae, O = t.rects.popper, m = t.elements[x ? A : v], b = or(K(m) ? m : m.contextElement || _(t.elements.popper), a, p, c), g = te(t.elements.reference), E = ft({
481
- reference: g,
482
- element: O,
483
- strategy: "absolute",
484
- placement: o
485
- }), P = Re(Object.assign({}, O, E)), S = v === ae ? P : g, D = {
486
- top: b.top - S.top + y.top,
487
- bottom: S.bottom - b.bottom + y.bottom,
488
- left: b.left - S.left + y.left,
489
- right: S.right - b.right + y.right
490
- }, w = t.modifiersData.offset;
491
- if (v === ae && w) {
492
- var R = w[o];
493
- Object.keys(D).forEach(function(T) {
494
- var F = [k, C].indexOf(T) >= 0 ? 1 : -1, X = [j, C].indexOf(T) >= 0 ? "y" : "x";
495
- D[T] += R[X] * F;
496
- });
497
- }
498
- return D;
499
- }
500
- function ar(t, e) {
501
- e === void 0 && (e = {});
502
- var r = e, n = r.placement, o = r.boundary, s = r.rootBoundary, c = r.padding, i = r.flipVariations, a = r.allowedAutoPlacements, f = a === void 0 ? nt : a, p = re(n), u = p ? i ? Xe : Xe.filter(function(x) {
503
- return re(x) === p;
504
- }) : fe, v = u.filter(function(x) {
505
- return f.indexOf(x) >= 0;
506
- });
507
- v.length === 0 && (v = u, process.env.NODE_ENV !== "production" && console.error(["Popper: The `allowedAutoPlacements` option did not allow any", "placements. Ensure the `placement` option matches the variation", "of the allowed placements.", 'For example, "auto" cannot be used to allow "bottom-start".', 'Use "auto-start" instead.'].join(" ")));
508
- var d = v.reduce(function(x, h) {
509
- return x[h] = ce(t, {
510
- placement: h,
511
- boundary: o,
512
- rootBoundary: s,
513
- padding: c
514
- })[I(h)], x;
515
- }, {});
516
- return Object.keys(d).sort(function(x, h) {
517
- return d[x] - d[h];
518
- });
519
- }
520
- function ir(t) {
521
- if (I(t) === we)
522
- return [];
523
- var e = be(t);
524
- return [Ue(t), e, Ue(e)];
525
- }
526
- function sr(t) {
527
- var e = t.state, r = t.options, n = t.name;
528
- if (!e.modifiersData[n]._skip) {
529
- for (var o = r.mainAxis, s = o === void 0 ? !0 : o, c = r.altAxis, i = c === void 0 ? !0 : c, a = r.fallbackPlacements, f = r.padding, p = r.boundary, u = r.rootBoundary, v = r.altBoundary, d = r.flipVariations, x = d === void 0 ? !0 : d, h = r.allowedAutoPlacements, l = e.options.placement, y = I(l), A = y === l, O = a || (A || !x ? [be(l)] : ir(l)), m = [l].concat(O).reduce(function(Q, H) {
530
- return Q.concat(I(H) === we ? ar(e, {
531
- placement: H,
532
- boundary: p,
533
- rootBoundary: u,
534
- padding: f,
535
- flipVariations: x,
536
- allowedAutoPlacements: h
537
- }) : H);
538
- }, []), b = e.rects.reference, g = e.rects.popper, E = /* @__PURE__ */ new Map(), P = !0, S = m[0], D = 0; D < m.length; D++) {
539
- var w = m[D], R = I(w), T = re(w) === Z, F = [j, C].indexOf(R) >= 0, X = F ? "width" : "height", N = ce(e, {
540
- placement: w,
541
- boundary: p,
542
- rootBoundary: u,
543
- altBoundary: v,
544
- padding: f
545
- }), M = F ? T ? k : $ : T ? C : j;
546
- b[X] > g[X] && (M = be(M));
547
- var ue = be(M), Y = [];
548
- if (s && Y.push(N[R] <= 0), i && Y.push(N[M] <= 0, N[ue] <= 0), Y.every(function(Q) {
549
- return Q;
550
- })) {
551
- S = w, P = !1;
552
- break;
553
- }
554
- E.set(w, Y);
555
- }
556
- if (P)
557
- for (var de = x ? 3 : 1, Oe = function(H) {
558
- var oe = m.find(function(he) {
559
- var z = E.get(he);
560
- if (z)
561
- return z.slice(0, H).every(function(Ee) {
562
- return Ee;
563
- });
564
- });
565
- if (oe)
566
- return S = oe, "break";
567
- }, ne = de; ne > 0; ne--) {
568
- var ve = Oe(ne);
569
- if (ve === "break")
570
- break;
571
- }
572
- e.placement !== S && (e.modifiersData[n]._skip = !0, e.placement = S, e.reset = !0);
573
- }
574
- }
575
- const pr = {
576
- name: "flip",
577
- enabled: !0,
578
- phase: "main",
579
- fn: sr,
580
- requiresIfExists: ["offset"],
581
- data: {
582
- _skip: !1
583
- }
584
- };
585
- function Je(t, e, r) {
586
- return r === void 0 && (r = {
587
- x: 0,
588
- y: 0
589
- }), {
590
- top: t.top - e.height - r.y,
591
- right: t.right - e.width + r.x,
592
- bottom: t.bottom - e.height + r.y,
593
- left: t.left - e.width - r.x
594
- };
595
- }
596
- function Ke(t) {
597
- return [j, k, C, $].some(function(e) {
598
- return t[e] >= 0;
599
- });
600
- }
601
- function cr(t) {
602
- var e = t.state, r = t.name, n = e.rects.reference, o = e.rects.popper, s = e.modifiersData.preventOverflow, c = ce(e, {
603
- elementContext: "reference"
604
- }), i = ce(e, {
605
- altBoundary: !0
606
- }), a = Je(c, n), f = Je(i, o, s), p = Ke(a), u = Ke(f);
607
- e.modifiersData[r] = {
608
- referenceClippingOffsets: a,
609
- popperEscapeOffsets: f,
610
- isReferenceHidden: p,
611
- hasPopperEscaped: u
612
- }, e.attributes.popper = Object.assign({}, e.attributes.popper, {
613
- "data-popper-reference-hidden": p,
614
- "data-popper-escaped": u
615
- });
616
- }
617
- const fr = {
618
- name: "hide",
619
- enabled: !0,
620
- phase: "main",
621
- requiresIfExists: ["preventOverflow"],
622
- fn: cr
623
- };
624
- function lr(t, e, r) {
625
- var n = I(t), o = [$, j].indexOf(n) >= 0 ? -1 : 1, s = typeof r == "function" ? r(Object.assign({}, e, {
626
- placement: t
627
- })) : r, c = s[0], i = s[1];
628
- return c = c || 0, i = (i || 0) * o, [$, k].indexOf(n) >= 0 ? {
629
- x: i,
630
- y: c
631
- } : {
632
- x: c,
633
- y: i
634
- };
635
- }
636
- function ur(t) {
637
- var e = t.state, r = t.options, n = t.name, o = r.offset, s = o === void 0 ? [0, 0] : o, c = nt.reduce(function(p, u) {
638
- return p[u] = lr(u, e.rects, s), p;
639
- }, {}), i = c[e.placement], a = i.x, f = i.y;
640
- e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += a, e.modifiersData.popperOffsets.y += f), e.modifiersData[n] = c;
641
- }
642
- const dr = {
643
- name: "offset",
644
- enabled: !0,
645
- phase: "main",
646
- requires: ["popperOffsets"],
647
- fn: ur
648
- };
649
- function vr(t) {
650
- var e = t.state, r = t.name;
651
- e.modifiersData[r] = ft({
652
- reference: e.rects.reference,
653
- element: e.rects.popper,
654
- strategy: "absolute",
655
- placement: e.placement
656
- });
657
- }
658
- const hr = {
659
- name: "popperOffsets",
660
- enabled: !0,
661
- phase: "read",
662
- fn: vr,
663
- data: {}
664
- };
665
- function mr(t) {
666
- return t === "x" ? "y" : "x";
667
- }
668
- function gr(t) {
669
- var e = t.state, r = t.options, n = t.name, o = r.mainAxis, s = o === void 0 ? !0 : o, c = r.altAxis, i = c === void 0 ? !1 : c, a = r.boundary, f = r.rootBoundary, p = r.altBoundary, u = r.padding, v = r.tether, d = v === void 0 ? !0 : v, x = r.tetherOffset, h = x === void 0 ? 0 : x, l = ce(e, {
670
- boundary: a,
671
- rootBoundary: f,
672
- padding: u,
673
- altBoundary: p
674
- }), y = I(e.placement), A = re(e.placement), O = !A, m = $e(y), b = mr(m), g = e.modifiersData.popperOffsets, E = e.rects.reference, P = e.rects.popper, S = typeof h == "function" ? h(Object.assign({}, e.rects, {
675
- placement: e.placement
676
- })) : h, D = typeof S == "number" ? {
677
- mainAxis: S,
678
- altAxis: S
679
- } : Object.assign({
680
- mainAxis: 0,
681
- altAxis: 0
682
- }, S), w = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, R = {
683
- x: 0,
684
- y: 0
685
- };
686
- if (!!g) {
687
- if (s) {
688
- var T, F = m === "y" ? j : $, X = m === "y" ? C : k, N = m === "y" ? "height" : "width", M = g[m], ue = M + l[F], Y = M - l[X], de = d ? -P[N] / 2 : 0, Oe = A === Z ? E[N] : P[N], ne = A === Z ? -P[N] : -E[N], ve = e.elements.arrow, Q = d && ve ? je(ve) : {
689
- width: 0,
690
- height: 0
691
- }, H = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : it(), oe = H[F], he = H[X], z = ie(0, E[N], Q[N]), Ee = O ? E[N] / 2 - de - z - oe - D.mainAxis : Oe - z - oe - D.mainAxis, lt = O ? -E[N] / 2 + de + z + he + D.mainAxis : ne + z + he + D.mainAxis, Ae = e.elements.arrow && le(e.elements.arrow), ut = Ae ? m === "y" ? Ae.clientTop || 0 : Ae.clientLeft || 0 : 0, ke = (T = w == null ? void 0 : w[m]) != null ? T : 0, dt = M + Ee - ke - ut, vt = M + lt - ke, Le = ie(d ? ye(ue, dt) : ue, M, d ? J(Y, vt) : Y);
692
- g[m] = Le, R[m] = Le - M;
693
- }
694
- if (i) {
695
- var Me, ht = m === "x" ? j : $, mt = m === "x" ? C : k, U = g[b], me = b === "y" ? "height" : "width", Ie = U + l[ht], Ve = U - l[mt], Pe = [j, $].indexOf(y) !== -1, We = (Me = w == null ? void 0 : w[b]) != null ? Me : 0, He = Pe ? Ie : U - E[me] - P[me] - We + D.altAxis, qe = Pe ? U + E[me] + P[me] - We - D.altAxis : Ve, _e = d && Pe ? Ht(He, U, qe) : ie(d ? He : Ie, U, d ? qe : Ve);
696
- g[b] = _e, R[b] = _e - U;
697
- }
698
- e.modifiersData[n] = R;
699
- }
700
- }
701
- const br = {
702
- name: "preventOverflow",
703
- enabled: !0,
704
- phase: "main",
705
- fn: gr,
706
- requiresIfExists: ["offset"]
707
- };
708
- function yr(t) {
709
- return {
710
- scrollLeft: t.scrollLeft,
711
- scrollTop: t.scrollTop
712
- };
713
- }
714
- function wr(t) {
715
- return t === L(t) || !B(t) ? Ne(t) : yr(t);
716
- }
717
- function xr(t) {
718
- var e = t.getBoundingClientRect(), r = ee(e.width) / t.offsetWidth || 1, n = ee(e.height) / t.offsetHeight || 1;
719
- return r !== 1 || n !== 1;
720
- }
721
- function Or(t, e, r) {
722
- r === void 0 && (r = !1);
723
- var n = B(e), o = B(e) && xr(e), s = _(e), c = te(t, o, r), i = {
724
- scrollLeft: 0,
725
- scrollTop: 0
726
- }, a = {
727
- x: 0,
728
- y: 0
729
- };
730
- return (n || !n && !r) && ((W(e) !== "body" || Ce(s)) && (i = wr(e)), B(e) ? (a = te(e, !0), a.x += e.clientLeft, a.y += e.clientTop) : s && (a.x = Be(s))), {
731
- x: c.left + i.scrollLeft - a.x,
732
- y: c.top + i.scrollTop - a.y,
733
- width: c.width,
734
- height: c.height
735
- };
736
- }
737
- function Er(t) {
738
- var e = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), n = [];
739
- t.forEach(function(s) {
740
- e.set(s.name, s);
741
- });
742
- function o(s) {
743
- r.add(s.name);
744
- var c = [].concat(s.requires || [], s.requiresIfExists || []);
745
- c.forEach(function(i) {
746
- if (!r.has(i)) {
747
- var a = e.get(i);
748
- a && o(a);
749
- }
750
- }), n.push(s);
751
- }
752
- return t.forEach(function(s) {
753
- r.has(s.name) || o(s);
754
- }), n;
755
- }
756
- function Ar(t) {
757
- var e = Er(t);
758
- return Se.reduce(function(r, n) {
759
- return r.concat(e.filter(function(o) {
760
- return o.phase === n;
761
- }));
762
- }, []);
763
- }
764
- function Pr(t) {
765
- var e;
766
- return function() {
767
- return e || (e = new Promise(function(r) {
768
- Promise.resolve().then(function() {
769
- e = void 0, r(t());
770
- });
771
- })), e;
772
- };
773
- }
774
- function q(t) {
775
- for (var e = arguments.length, r = new Array(e > 1 ? e - 1 : 0), n = 1; n < e; n++)
776
- r[n - 1] = arguments[n];
777
- return [].concat(r).reduce(function(o, s) {
778
- return o.replace(/%s/, s);
779
- }, t);
780
- }
781
- var G = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s', Sr = 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available', Qe = ["name", "enabled", "phase", "fn", "effect", "requires", "options"];
782
- function Dr(t) {
783
- t.forEach(function(e) {
784
- [].concat(Object.keys(e), Qe).filter(function(r, n, o) {
785
- return o.indexOf(r) === n;
786
- }).forEach(function(r) {
787
- switch (r) {
788
- case "name":
789
- typeof e.name != "string" && console.error(q(G, String(e.name), '"name"', '"string"', '"' + String(e.name) + '"'));
790
- break;
791
- case "enabled":
792
- typeof e.enabled != "boolean" && console.error(q(G, e.name, '"enabled"', '"boolean"', '"' + String(e.enabled) + '"'));
793
- break;
794
- case "phase":
795
- Se.indexOf(e.phase) < 0 && console.error(q(G, e.name, '"phase"', "either " + Se.join(", "), '"' + String(e.phase) + '"'));
796
- break;
797
- case "fn":
798
- typeof e.fn != "function" && console.error(q(G, e.name, '"fn"', '"function"', '"' + String(e.fn) + '"'));
799
- break;
800
- case "effect":
801
- e.effect != null && typeof e.effect != "function" && console.error(q(G, e.name, '"effect"', '"function"', '"' + String(e.fn) + '"'));
802
- break;
803
- case "requires":
804
- e.requires != null && !Array.isArray(e.requires) && console.error(q(G, e.name, '"requires"', '"array"', '"' + String(e.requires) + '"'));
805
- break;
806
- case "requiresIfExists":
807
- Array.isArray(e.requiresIfExists) || console.error(q(G, e.name, '"requiresIfExists"', '"array"', '"' + String(e.requiresIfExists) + '"'));
808
- break;
809
- case "options":
810
- case "data":
811
- break;
812
- default:
813
- console.error('PopperJS: an invalid property has been provided to the "' + e.name + '" modifier, valid properties are ' + Qe.map(function(n) {
814
- return '"' + n + '"';
815
- }).join(", ") + '; but "' + r + '" was provided.');
816
- }
817
- e.requires && e.requires.forEach(function(n) {
818
- t.find(function(o) {
819
- return o.name === n;
820
- }) == null && console.error(q(Sr, String(e.name), n, n));
821
- });
822
- });
823
- });
824
- }
825
- function Rr(t, e) {
826
- var r = /* @__PURE__ */ new Set();
827
- return t.filter(function(n) {
828
- var o = e(n);
829
- if (!r.has(o))
830
- return r.add(o), !0;
831
- });
832
- }
833
- function Tr(t) {
834
- var e = t.reduce(function(r, n) {
835
- var o = r[n.name];
836
- return r[n.name] = o ? Object.assign({}, o, n, {
837
- options: Object.assign({}, o.options, n.options),
838
- data: Object.assign({}, o.data, n.data)
839
- }) : n, r;
840
- }, {});
841
- return Object.keys(e).map(function(r) {
842
- return e[r];
843
- });
844
- }
845
- var Ze = "Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.", jr = "Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.", et = {
846
- placement: "bottom",
847
- modifiers: [],
848
- strategy: "absolute"
849
- };
850
- function tt() {
851
- for (var t = arguments.length, e = new Array(t), r = 0; r < t; r++)
852
- e[r] = arguments[r];
853
- return !e.some(function(n) {
854
- return !(n && typeof n.getBoundingClientRect == "function");
855
- });
856
- }
857
- function $r(t) {
858
- t === void 0 && (t = {});
859
- var e = t, r = e.defaultModifiers, n = r === void 0 ? [] : r, o = e.defaultOptions, s = o === void 0 ? et : o;
860
- return function(i, a, f) {
861
- f === void 0 && (f = s);
862
- var p = {
863
- placement: "bottom",
864
- orderedModifiers: [],
865
- options: Object.assign({}, et, s),
866
- modifiersData: {},
867
- elements: {
868
- reference: i,
869
- popper: a
870
- },
871
- attributes: {},
872
- styles: {}
873
- }, u = [], v = !1, d = {
874
- state: p,
875
- setOptions: function(y) {
876
- var A = typeof y == "function" ? y(p.options) : y;
877
- h(), p.options = Object.assign({}, s, p.options, A), p.scrollParents = {
878
- reference: K(i) ? se(i) : i.contextElement ? se(i.contextElement) : [],
879
- popper: se(a)
880
- };
881
- var O = Ar(Tr([].concat(n, p.options.modifiers)));
882
- if (p.orderedModifiers = O.filter(function(w) {
883
- return w.enabled;
884
- }), process.env.NODE_ENV !== "production") {
885
- var m = Rr([].concat(O, p.options.modifiers), function(w) {
886
- var R = w.name;
887
- return R;
888
- });
889
- if (Dr(m), I(p.options.placement) === we) {
890
- var b = p.orderedModifiers.find(function(w) {
891
- var R = w.name;
892
- return R === "flip";
893
- });
894
- b || console.error(['Popper: "auto" placements require the "flip" modifier be', "present and enabled to work."].join(" "));
895
- }
896
- var g = V(a), E = g.marginTop, P = g.marginRight, S = g.marginBottom, D = g.marginLeft;
897
- [E, P, S, D].some(function(w) {
898
- return parseFloat(w);
899
- }) && console.warn(['Popper: CSS "margin" styles cannot be used to apply padding', "between the popper and its reference element or boundary.", "To replicate margin, use the `offset` modifier, as well as", "the `padding` option in the `preventOverflow` and `flip`", "modifiers."].join(" "));
900
- }
901
- return x(), d.update();
902
- },
903
- forceUpdate: function() {
904
- if (!v) {
905
- var y = p.elements, A = y.reference, O = y.popper;
906
- if (!tt(A, O)) {
907
- process.env.NODE_ENV !== "production" && console.error(Ze);
908
- return;
909
- }
910
- p.rects = {
911
- reference: Or(A, le(O), p.options.strategy === "fixed"),
912
- popper: je(O)
913
- }, p.reset = !1, p.placement = p.options.placement, p.orderedModifiers.forEach(function(w) {
914
- return p.modifiersData[w.name] = Object.assign({}, w.data);
915
- });
916
- for (var m = 0, b = 0; b < p.orderedModifiers.length; b++) {
917
- if (process.env.NODE_ENV !== "production" && (m += 1, m > 100)) {
918
- console.error(jr);
919
- break;
920
- }
921
- if (p.reset === !0) {
922
- p.reset = !1, b = -1;
923
- continue;
924
- }
925
- var g = p.orderedModifiers[b], E = g.fn, P = g.options, S = P === void 0 ? {} : P, D = g.name;
926
- typeof E == "function" && (p = E({
927
- state: p,
928
- options: S,
929
- name: D,
930
- instance: d
931
- }) || p);
932
- }
933
- }
934
- },
935
- update: Pr(function() {
936
- return new Promise(function(l) {
937
- d.forceUpdate(), l(p);
938
- });
939
- }),
940
- destroy: function() {
941
- h(), v = !0;
942
- }
943
- };
944
- if (!tt(i, a))
945
- return process.env.NODE_ENV !== "production" && console.error(Ze), d;
946
- d.setOptions(f).then(function(l) {
947
- !v && f.onFirstUpdate && f.onFirstUpdate(l);
948
- });
949
- function x() {
950
- p.orderedModifiers.forEach(function(l) {
951
- var y = l.name, A = l.options, O = A === void 0 ? {} : A, m = l.effect;
952
- if (typeof m == "function") {
953
- var b = m({
954
- state: p,
955
- name: y,
956
- instance: d,
957
- options: O
958
- }), g = function() {
959
- };
960
- u.push(b || g);
961
- }
962
- });
963
- }
964
- function h() {
965
- u.forEach(function(l) {
966
- return l();
967
- }), u = [];
968
- }
969
- return d;
970
- };
971
- }
972
- var Nr = [Kt, hr, Gt, It, dr, pr, br, Xt, fr], Br = /* @__PURE__ */ $r({
973
- defaultModifiers: Nr
974
- });
975
- const Cr = {
976
- props: {
977
- offset: Array,
978
- popper: Object,
979
- show: Boolean,
980
- target: {
981
- type: HTMLElement,
982
- required: !0
983
- },
984
- title: String,
985
- placement: String,
986
- top: Boolean,
987
- bottom: Boolean,
988
- left: Boolean,
989
- right: Boolean
990
- },
991
- data() {
992
- return {
993
- currentShow: !1,
994
- popperInstance: null
995
- };
996
- },
997
- methods: {
998
- open() {
999
- this.currentShow = !0;
1000
- },
1001
- close() {
1002
- this.currentShow = !1;
1003
- }
1004
- },
1005
- computed: {
1006
- computedPlacement() {
1007
- return this.placement ? this.placement : this.bottom ? "bottom" : this.left ? "left" : this.right ? "right" : "top";
1008
- },
1009
- tooltipClasses() {
1010
- return {
1011
- show: this.currentShow,
1012
- [`bs-tooltip-${this.computedPlacement}`]: !0
1013
- };
1014
- }
1015
- },
1016
- mounted() {
1017
- this.popperInstance = Br(this.target, this.$el, Object.assign({
1018
- placement: this.computedPlacement,
1019
- modifiers: [{
1020
- name: "offset",
1021
- options: {
1022
- offset: [0, 6]
1023
- }
1024
- }, {
1025
- name: "arrow",
1026
- options: {
1027
- element: this.$refs.arrow
1028
- }
1029
- }]
1030
- }, this.popper)), this.$nextTick(() => {
1031
- this.currentShow = this.show;
1032
- });
1033
- },
1034
- beforeDestroy() {
1035
- this.popperInstance && this.popperInstance.destroy();
1036
- }
1037
- }, kr = {
1038
- mixins: [
1039
- Cr
1040
- ]
1041
- };
1042
- const Lr = (t, e) => {
1043
- const r = t.__vccOpts || t;
1044
- for (const [n, o] of e)
1045
- r[n] = o;
1046
- return r;
1047
- }, Mr = {
1048
- ref: "arrow",
1049
- class: "tooltip-arrow"
1050
- }, Ir = {
1051
- ref: "inner",
1052
- class: "tooltip-inner"
1053
- };
1054
- function Vr(t, e, r, n, o, s) {
1055
- return gt(), bt("div", {
1056
- class: yt(["tooltip", t.tooltipClasses]),
1057
- role: "tooltip"
1058
- }, [
1059
- Fe("div", Mr, null, 512),
1060
- Fe("div", Ir, [
1061
- wt(t.$slots, "default", {}, () => [
1062
- xt(Ot(t.title), 1)
1063
- ])
1064
- ], 512)
1065
- ], 2);
1066
- }
1067
- const Wr = /* @__PURE__ */ Lr(kr, [["render", Vr]]);
1068
- function qr(t, e = {
1069
- delay: void 0,
1070
- prefix: "data-tooltip",
1071
- triggers: {
1072
- open: ["mouseover:750", "focus"],
1073
- close: ["mouseout:1000", "blur"]
1074
- }
1075
- }) {
1076
- const r = e.prefix.replace(/[-]+$/, ""), n = new RegExp(`^${r}-`);
1077
- function o(i) {
1078
- return Array.from(i.attributes).map((a) => [a.name, a.value]).filter(([a]) => a === "title" || a.match(n)).map(([a, f]) => [a.replace(new RegExp(n), ""), f]).reduce((a, f) => Object.assign(a, { [f[0]]: f[1] }), {});
1079
- }
1080
- function s(i, a = {}) {
1081
- const f = document.createElement("template"), p = Et(Wr, Object.assign({
1082
- target: i,
1083
- show: !0
1084
- }, a));
1085
- At(p, f);
1086
- const [u] = [...f.children];
1087
- return document.body.append(u), () => {
1088
- var v;
1089
- (v = p.component) == null || v.ctx.close(), setTimeout(() => u.remove(), 150);
1090
- };
1091
- }
1092
- function c(i, a = {}) {
1093
- const f = Object.assign({
1094
- title: i.getAttribute(r)
1095
- }, a, o(i));
1096
- if (!f.title || i.hasAttribute(`${r}-id`))
1097
- return;
1098
- const p = Math.random().toString(36).slice(2, 7);
1099
- let u, v;
1100
- i.setAttribute(`${r}-id`, p), i.removeAttribute("title");
1101
- function d(l = 0) {
1102
- clearTimeout(v), u || (v = setTimeout(() => {
1103
- u = s(i, f);
1104
- }, l));
1105
- }
1106
- function x(l = 0) {
1107
- clearTimeout(v), u && (v = setTimeout(() => {
1108
- u && u(), u = null;
1109
- }, l));
1110
- }
1111
- function h(l, y) {
1112
- const [A, O] = l.split(":");
1113
- i.addEventListener(A, () => y(Number(O || 0)));
1114
- }
1115
- e.triggers.open.map((l) => h(l, d)), e.triggers.close.map((l) => h(l, x));
1116
- }
1117
- t.mixin({
1118
- mounted() {
1119
- let i = this.$el;
1120
- this.$el instanceof Text && (i = this.$el.parentNode), i instanceof HTMLElement && c(i);
1121
- const a = document.createTreeWalker(
1122
- i,
1123
- NodeFilter.SHOW_ALL,
1124
- (f) => f instanceof Element ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_REJECT
1125
- );
1126
- for (; a.nextNode(); )
1127
- a.currentNode instanceof Element && c(a.currentNode);
1128
- }
1129
- }), t.directive("tooltip", (i, a) => c(
1130
- i,
1131
- Object.assign({}, a.modifiers, a.value)
1132
- ));
1133
- }
1134
- export {
1135
- Wr as Tooltip,
1136
- qr as TooltipPlugin
1137
- };