@vue-interface/btn-dropdown 2.0.0-beta.2 → 2.0.0-beta.21
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/btn-dropdown.js +399 -0
- package/dist/btn-dropdown.js.map +1 -0
- package/dist/btn-dropdown.umd.cjs +2 -0
- package/dist/btn-dropdown.umd.cjs.map +1 -0
- package/{index.js → dist/index.d.ts} +1 -4
- package/dist/src/BtnDropdown.vue.d.ts +37 -0
- package/dist/src/BtnDropdownAction.vue.d.ts +43 -0
- package/dist/src/BtnDropdownSingle.vue.d.ts +40 -0
- package/dist/src/BtnDropdownSplit.vue.d.ts +37 -0
- package/dist/src/dropdown.d.ts +52 -0
- package/package.json +38 -27
- package/dist/btn-dropdown.css +0 -1
- package/dist/btn-dropdown.es.js +0 -1592
- package/dist/btn-dropdown.umd.js +0 -5
- package/src/BtnDropdown.vue +0 -121
- package/src/BtnDropdownAction.vue +0 -38
- package/src/BtnDropdownSingle.vue +0 -43
- package/src/BtnDropdownSplit.vue +0 -77
- package/src/DropdownHandler.js +0 -435
package/dist/btn-dropdown.es.js
DELETED
|
@@ -1,1592 +0,0 @@
|
|
|
1
|
-
import { openBlock as W, createBlock as ee, resolveDynamicComponent as He, mergeProps as ge, withCtx as B, renderSlot as P, createTextVNode as be, toDisplayString as ye, createElementBlock as Ue, normalizeClass as F, h as Tt, Fragment as Nt, resolveComponent as te, createVNode as we, normalizeProps as ie, createCommentVNode as de, guardReactiveProps as Re, normalizeStyle as It, createSlots as Mt } from "vue";
|
|
2
|
-
var R = "top", N = "bottom", I = "right", j = "left", ze = "auto", $e = [R, N, I, j], ae = "start", Oe = "end", Lt = "clippingParents", bt = "viewport", ve = "popper", Vt = "reference", st = /* @__PURE__ */ $e.reduce(function(e, t) {
|
|
3
|
-
return e.concat([t + "-" + ae, t + "-" + Oe]);
|
|
4
|
-
}, []), yt = /* @__PURE__ */ [].concat($e, [ze]).reduce(function(e, t) {
|
|
5
|
-
return e.concat([t, t + "-" + ae, t + "-" + Oe]);
|
|
6
|
-
}, []), qt = "beforeRead", Ft = "read", Wt = "afterRead", Ht = "beforeMain", Ut = "main", Xt = "afterMain", Yt = "beforeWrite", Gt = "write", Jt = "afterWrite", qe = [qt, Ft, Wt, Ht, Ut, Xt, Yt, Gt, Jt];
|
|
7
|
-
function H(e) {
|
|
8
|
-
return e ? (e.nodeName || "").toLowerCase() : null;
|
|
9
|
-
}
|
|
10
|
-
function M(e) {
|
|
11
|
-
if (e == null)
|
|
12
|
-
return window;
|
|
13
|
-
if (e.toString() !== "[object Window]") {
|
|
14
|
-
var t = e.ownerDocument;
|
|
15
|
-
return t && t.defaultView || window;
|
|
16
|
-
}
|
|
17
|
-
return e;
|
|
18
|
-
}
|
|
19
|
-
function ne(e) {
|
|
20
|
-
var t = M(e).Element;
|
|
21
|
-
return e instanceof t || e instanceof Element;
|
|
22
|
-
}
|
|
23
|
-
function T(e) {
|
|
24
|
-
var t = M(e).HTMLElement;
|
|
25
|
-
return e instanceof t || e instanceof HTMLElement;
|
|
26
|
-
}
|
|
27
|
-
function Xe(e) {
|
|
28
|
-
if (typeof ShadowRoot > "u")
|
|
29
|
-
return !1;
|
|
30
|
-
var t = M(e).ShadowRoot;
|
|
31
|
-
return e instanceof t || e instanceof ShadowRoot;
|
|
32
|
-
}
|
|
33
|
-
function Kt(e) {
|
|
34
|
-
var t = e.state;
|
|
35
|
-
Object.keys(t.elements).forEach(function(r) {
|
|
36
|
-
var n = t.styles[r] || {}, o = t.attributes[r] || {}, i = t.elements[r];
|
|
37
|
-
!T(i) || !H(i) || (Object.assign(i.style, n), Object.keys(o).forEach(function(a) {
|
|
38
|
-
var l = o[a];
|
|
39
|
-
l === !1 ? i.removeAttribute(a) : i.setAttribute(a, l === !0 ? "" : l);
|
|
40
|
-
}));
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
function Qt(e) {
|
|
44
|
-
var t = e.state, r = {
|
|
45
|
-
popper: {
|
|
46
|
-
position: t.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(t.elements.popper.style, r.popper), t.styles = r, t.elements.arrow && Object.assign(t.elements.arrow.style, r.arrow), function() {
|
|
57
|
-
Object.keys(t.elements).forEach(function(n) {
|
|
58
|
-
var o = t.elements[n], i = t.attributes[n] || {}, a = Object.keys(t.styles.hasOwnProperty(n) ? t.styles[n] : r[n]), l = a.reduce(function(s, f) {
|
|
59
|
-
return s[f] = "", s;
|
|
60
|
-
}, {});
|
|
61
|
-
!T(o) || !H(o) || (Object.assign(o.style, l), Object.keys(i).forEach(function(s) {
|
|
62
|
-
o.removeAttribute(s);
|
|
63
|
-
}));
|
|
64
|
-
});
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
const Zt = {
|
|
68
|
-
name: "applyStyles",
|
|
69
|
-
enabled: !0,
|
|
70
|
-
phase: "write",
|
|
71
|
-
fn: Kt,
|
|
72
|
-
effect: Qt,
|
|
73
|
-
requires: ["computeStyles"]
|
|
74
|
-
};
|
|
75
|
-
function V(e) {
|
|
76
|
-
return e.split("-")[0];
|
|
77
|
-
}
|
|
78
|
-
var re = Math.max, je = Math.min, se = Math.round;
|
|
79
|
-
function Fe() {
|
|
80
|
-
var e = navigator.userAgentData;
|
|
81
|
-
return e != null && e.brands ? e.brands.map(function(t) {
|
|
82
|
-
return t.brand + "/" + t.version;
|
|
83
|
-
}).join(" ") : navigator.userAgent;
|
|
84
|
-
}
|
|
85
|
-
function wt() {
|
|
86
|
-
return !/^((?!chrome|android).)*safari/i.test(Fe());
|
|
87
|
-
}
|
|
88
|
-
function le(e, t, r) {
|
|
89
|
-
t === void 0 && (t = !1), r === void 0 && (r = !1);
|
|
90
|
-
var n = e.getBoundingClientRect(), o = 1, i = 1;
|
|
91
|
-
t && T(e) && (o = e.offsetWidth > 0 && se(n.width) / e.offsetWidth || 1, i = e.offsetHeight > 0 && se(n.height) / e.offsetHeight || 1);
|
|
92
|
-
var a = ne(e) ? M(e) : window, l = a.visualViewport, s = !wt() && r, f = (n.left + (s && l ? l.offsetLeft : 0)) / o, p = (n.top + (s && l ? l.offsetTop : 0)) / i, h = n.width / o, y = n.height / i;
|
|
93
|
-
return {
|
|
94
|
-
width: h,
|
|
95
|
-
height: y,
|
|
96
|
-
top: p,
|
|
97
|
-
right: f + h,
|
|
98
|
-
bottom: p + y,
|
|
99
|
-
left: f,
|
|
100
|
-
x: f,
|
|
101
|
-
y: p
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
|
-
function Ye(e) {
|
|
105
|
-
var t = le(e), r = e.offsetWidth, n = e.offsetHeight;
|
|
106
|
-
return Math.abs(t.width - r) <= 1 && (r = t.width), Math.abs(t.height - n) <= 1 && (n = t.height), {
|
|
107
|
-
x: e.offsetLeft,
|
|
108
|
-
y: e.offsetTop,
|
|
109
|
-
width: r,
|
|
110
|
-
height: n
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
function Ot(e, t) {
|
|
114
|
-
var r = t.getRootNode && t.getRootNode();
|
|
115
|
-
if (e.contains(t))
|
|
116
|
-
return !0;
|
|
117
|
-
if (r && Xe(r)) {
|
|
118
|
-
var n = t;
|
|
119
|
-
do {
|
|
120
|
-
if (n && e.isSameNode(n))
|
|
121
|
-
return !0;
|
|
122
|
-
n = n.parentNode || n.host;
|
|
123
|
-
} while (n);
|
|
124
|
-
}
|
|
125
|
-
return !1;
|
|
126
|
-
}
|
|
127
|
-
function q(e) {
|
|
128
|
-
return M(e).getComputedStyle(e);
|
|
129
|
-
}
|
|
130
|
-
function _t(e) {
|
|
131
|
-
return ["table", "td", "th"].indexOf(H(e)) >= 0;
|
|
132
|
-
}
|
|
133
|
-
function Y(e) {
|
|
134
|
-
return ((ne(e) ? e.ownerDocument : e.document) || window.document).documentElement;
|
|
135
|
-
}
|
|
136
|
-
function Te(e) {
|
|
137
|
-
return H(e) === "html" ? e : e.assignedSlot || e.parentNode || (Xe(e) ? e.host : null) || Y(e);
|
|
138
|
-
}
|
|
139
|
-
function lt(e) {
|
|
140
|
-
return !T(e) || q(e).position === "fixed" ? null : e.offsetParent;
|
|
141
|
-
}
|
|
142
|
-
function er(e) {
|
|
143
|
-
var t = /firefox/i.test(Fe()), r = /Trident/i.test(Fe());
|
|
144
|
-
if (r && T(e)) {
|
|
145
|
-
var n = q(e);
|
|
146
|
-
if (n.position === "fixed")
|
|
147
|
-
return null;
|
|
148
|
-
}
|
|
149
|
-
var o = Te(e);
|
|
150
|
-
for (Xe(o) && (o = o.host); T(o) && ["html", "body"].indexOf(H(o)) < 0; ) {
|
|
151
|
-
var i = q(o);
|
|
152
|
-
if (i.transform !== "none" || i.perspective !== "none" || i.contain === "paint" || ["transform", "perspective"].indexOf(i.willChange) !== -1 || t && i.willChange === "filter" || t && i.filter && i.filter !== "none")
|
|
153
|
-
return o;
|
|
154
|
-
o = o.parentNode;
|
|
155
|
-
}
|
|
156
|
-
return null;
|
|
157
|
-
}
|
|
158
|
-
function Ce(e) {
|
|
159
|
-
for (var t = M(e), r = lt(e); r && _t(r) && q(r).position === "static"; )
|
|
160
|
-
r = lt(r);
|
|
161
|
-
return r && (H(r) === "html" || H(r) === "body" && q(r).position === "static") ? t : r || er(e) || t;
|
|
162
|
-
}
|
|
163
|
-
function Ge(e) {
|
|
164
|
-
return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
|
|
165
|
-
}
|
|
166
|
-
function he(e, t, r) {
|
|
167
|
-
return re(e, je(t, r));
|
|
168
|
-
}
|
|
169
|
-
function tr(e, t, r) {
|
|
170
|
-
var n = he(e, t, r);
|
|
171
|
-
return n > r ? r : n;
|
|
172
|
-
}
|
|
173
|
-
function xt() {
|
|
174
|
-
return {
|
|
175
|
-
top: 0,
|
|
176
|
-
right: 0,
|
|
177
|
-
bottom: 0,
|
|
178
|
-
left: 0
|
|
179
|
-
};
|
|
180
|
-
}
|
|
181
|
-
function $t(e) {
|
|
182
|
-
return Object.assign({}, xt(), e);
|
|
183
|
-
}
|
|
184
|
-
function Ct(e, t) {
|
|
185
|
-
return t.reduce(function(r, n) {
|
|
186
|
-
return r[n] = e, r;
|
|
187
|
-
}, {});
|
|
188
|
-
}
|
|
189
|
-
var rr = function(t, r) {
|
|
190
|
-
return t = typeof t == "function" ? t(Object.assign({}, r.rects, {
|
|
191
|
-
placement: r.placement
|
|
192
|
-
})) : t, $t(typeof t != "number" ? t : Ct(t, $e));
|
|
193
|
-
};
|
|
194
|
-
function nr(e) {
|
|
195
|
-
var t, r = e.state, n = e.name, o = e.options, i = r.elements.arrow, a = r.modifiersData.popperOffsets, l = V(r.placement), s = Ge(l), f = [j, I].indexOf(l) >= 0, p = f ? "height" : "width";
|
|
196
|
-
if (!(!i || !a)) {
|
|
197
|
-
var h = rr(o.padding, r), y = Ye(i), u = s === "y" ? R : j, O = s === "y" ? N : I, m = r.rects.reference[p] + r.rects.reference[s] - a[s] - r.rects.popper[p], v = a[s] - r.rects.reference[s], w = Ce(i), C = w ? s === "y" ? w.clientHeight || 0 : w.clientWidth || 0 : 0, $ = m / 2 - v / 2, c = h[u], g = C - y[p] - h[O], d = C / 2 - y[p] / 2 + $, x = he(c, d, g), E = s;
|
|
198
|
-
r.modifiersData[n] = (t = {}, t[E] = x, t.centerOffset = x - d, t);
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
function or(e) {
|
|
202
|
-
var t = e.state, r = e.options, n = r.element, o = n === void 0 ? "[data-popper-arrow]" : n;
|
|
203
|
-
if (o != null && !(typeof o == "string" && (o = t.elements.popper.querySelector(o), !o))) {
|
|
204
|
-
if (process.env.NODE_ENV !== "production" && (T(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(" "))), !Ot(t.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
|
-
t.elements.arrow = o;
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
const ir = {
|
|
212
|
-
name: "arrow",
|
|
213
|
-
enabled: !0,
|
|
214
|
-
phase: "main",
|
|
215
|
-
fn: nr,
|
|
216
|
-
effect: or,
|
|
217
|
-
requires: ["popperOffsets"],
|
|
218
|
-
requiresIfExists: ["preventOverflow"]
|
|
219
|
-
};
|
|
220
|
-
function pe(e) {
|
|
221
|
-
return e.split("-")[1];
|
|
222
|
-
}
|
|
223
|
-
var ar = {
|
|
224
|
-
top: "auto",
|
|
225
|
-
right: "auto",
|
|
226
|
-
bottom: "auto",
|
|
227
|
-
left: "auto"
|
|
228
|
-
};
|
|
229
|
-
function sr(e) {
|
|
230
|
-
var t = e.x, r = e.y, n = window, o = n.devicePixelRatio || 1;
|
|
231
|
-
return {
|
|
232
|
-
x: se(t * o) / o || 0,
|
|
233
|
-
y: se(r * o) / o || 0
|
|
234
|
-
};
|
|
235
|
-
}
|
|
236
|
-
function pt(e) {
|
|
237
|
-
var t, r = e.popper, n = e.popperRect, o = e.placement, i = e.variation, a = e.offsets, l = e.position, s = e.gpuAcceleration, f = e.adaptive, p = e.roundOffsets, h = e.isFixed, y = a.x, u = y === void 0 ? 0 : y, O = a.y, m = O === void 0 ? 0 : O, v = typeof p == "function" ? p({
|
|
238
|
-
x: u,
|
|
239
|
-
y: m
|
|
240
|
-
}) : {
|
|
241
|
-
x: u,
|
|
242
|
-
y: m
|
|
243
|
-
};
|
|
244
|
-
u = v.x, m = v.y;
|
|
245
|
-
var w = a.hasOwnProperty("x"), C = a.hasOwnProperty("y"), $ = j, c = R, g = window;
|
|
246
|
-
if (f) {
|
|
247
|
-
var d = Ce(r), x = "clientHeight", E = "clientWidth";
|
|
248
|
-
if (d === M(r) && (d = Y(r), q(d).position !== "static" && l === "absolute" && (x = "scrollHeight", E = "scrollWidth")), d = d, o === R || (o === j || o === I) && i === Oe) {
|
|
249
|
-
c = N;
|
|
250
|
-
var S = h && d === g && g.visualViewport ? g.visualViewport.height : d[x];
|
|
251
|
-
m -= S - n.height, m *= s ? 1 : -1;
|
|
252
|
-
}
|
|
253
|
-
if (o === j || (o === R || o === N) && i === Oe) {
|
|
254
|
-
$ = I;
|
|
255
|
-
var k = h && d === g && g.visualViewport ? g.visualViewport.width : d[E];
|
|
256
|
-
u -= k - n.width, u *= s ? 1 : -1;
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
var b = Object.assign({
|
|
260
|
-
position: l
|
|
261
|
-
}, f && ar), D = p === !0 ? sr({
|
|
262
|
-
x: u,
|
|
263
|
-
y: m
|
|
264
|
-
}) : {
|
|
265
|
-
x: u,
|
|
266
|
-
y: m
|
|
267
|
-
};
|
|
268
|
-
if (u = D.x, m = D.y, s) {
|
|
269
|
-
var A;
|
|
270
|
-
return Object.assign({}, b, (A = {}, A[c] = C ? "0" : "", A[$] = w ? "0" : "", A.transform = (g.devicePixelRatio || 1) <= 1 ? "translate(" + u + "px, " + m + "px)" : "translate3d(" + u + "px, " + m + "px, 0)", A));
|
|
271
|
-
}
|
|
272
|
-
return Object.assign({}, b, (t = {}, t[c] = C ? m + "px" : "", t[$] = w ? u + "px" : "", t.transform = "", t));
|
|
273
|
-
}
|
|
274
|
-
function lr(e) {
|
|
275
|
-
var t = e.state, r = e.options, n = r.gpuAcceleration, o = n === void 0 ? !0 : n, i = r.adaptive, a = i === void 0 ? !0 : i, l = r.roundOffsets, s = l === void 0 ? !0 : l;
|
|
276
|
-
if (process.env.NODE_ENV !== "production") {
|
|
277
|
-
var f = q(t.elements.popper).transitionProperty || "";
|
|
278
|
-
a && ["transform", "top", "right", "bottom", "left"].some(function(h) {
|
|
279
|
-
return f.indexOf(h) >= 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: V(t.placement),
|
|
288
|
-
variation: pe(t.placement),
|
|
289
|
-
popper: t.elements.popper,
|
|
290
|
-
popperRect: t.rects.popper,
|
|
291
|
-
gpuAcceleration: o,
|
|
292
|
-
isFixed: t.options.strategy === "fixed"
|
|
293
|
-
};
|
|
294
|
-
t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, pt(Object.assign({}, p, {
|
|
295
|
-
offsets: t.modifiersData.popperOffsets,
|
|
296
|
-
position: t.options.strategy,
|
|
297
|
-
adaptive: a,
|
|
298
|
-
roundOffsets: s
|
|
299
|
-
})))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, pt(Object.assign({}, p, {
|
|
300
|
-
offsets: t.modifiersData.arrow,
|
|
301
|
-
position: "absolute",
|
|
302
|
-
adaptive: !1,
|
|
303
|
-
roundOffsets: s
|
|
304
|
-
})))), t.attributes.popper = Object.assign({}, t.attributes.popper, {
|
|
305
|
-
"data-popper-placement": t.placement
|
|
306
|
-
});
|
|
307
|
-
}
|
|
308
|
-
const pr = {
|
|
309
|
-
name: "computeStyles",
|
|
310
|
-
enabled: !0,
|
|
311
|
-
phase: "beforeWrite",
|
|
312
|
-
fn: lr,
|
|
313
|
-
data: {}
|
|
314
|
-
};
|
|
315
|
-
var De = {
|
|
316
|
-
passive: !0
|
|
317
|
-
};
|
|
318
|
-
function fr(e) {
|
|
319
|
-
var t = e.state, r = e.instance, n = e.options, o = n.scroll, i = o === void 0 ? !0 : o, a = n.resize, l = a === void 0 ? !0 : a, s = M(t.elements.popper), f = [].concat(t.scrollParents.reference, t.scrollParents.popper);
|
|
320
|
-
return i && f.forEach(function(p) {
|
|
321
|
-
p.addEventListener("scroll", r.update, De);
|
|
322
|
-
}), l && s.addEventListener("resize", r.update, De), function() {
|
|
323
|
-
i && f.forEach(function(p) {
|
|
324
|
-
p.removeEventListener("scroll", r.update, De);
|
|
325
|
-
}), l && s.removeEventListener("resize", r.update, De);
|
|
326
|
-
};
|
|
327
|
-
}
|
|
328
|
-
const ur = {
|
|
329
|
-
name: "eventListeners",
|
|
330
|
-
enabled: !0,
|
|
331
|
-
phase: "write",
|
|
332
|
-
fn: function() {
|
|
333
|
-
},
|
|
334
|
-
effect: fr,
|
|
335
|
-
data: {}
|
|
336
|
-
};
|
|
337
|
-
var cr = {
|
|
338
|
-
left: "right",
|
|
339
|
-
right: "left",
|
|
340
|
-
bottom: "top",
|
|
341
|
-
top: "bottom"
|
|
342
|
-
};
|
|
343
|
-
function Ae(e) {
|
|
344
|
-
return e.replace(/left|right|bottom|top/g, function(t) {
|
|
345
|
-
return cr[t];
|
|
346
|
-
});
|
|
347
|
-
}
|
|
348
|
-
var dr = {
|
|
349
|
-
start: "end",
|
|
350
|
-
end: "start"
|
|
351
|
-
};
|
|
352
|
-
function ft(e) {
|
|
353
|
-
return e.replace(/start|end/g, function(t) {
|
|
354
|
-
return dr[t];
|
|
355
|
-
});
|
|
356
|
-
}
|
|
357
|
-
function Je(e) {
|
|
358
|
-
var t = M(e), r = t.pageXOffset, n = t.pageYOffset;
|
|
359
|
-
return {
|
|
360
|
-
scrollLeft: r,
|
|
361
|
-
scrollTop: n
|
|
362
|
-
};
|
|
363
|
-
}
|
|
364
|
-
function Ke(e) {
|
|
365
|
-
return le(Y(e)).left + Je(e).scrollLeft;
|
|
366
|
-
}
|
|
367
|
-
function vr(e, t) {
|
|
368
|
-
var r = M(e), n = Y(e), o = r.visualViewport, i = n.clientWidth, a = n.clientHeight, l = 0, s = 0;
|
|
369
|
-
if (o) {
|
|
370
|
-
i = o.width, a = o.height;
|
|
371
|
-
var f = wt();
|
|
372
|
-
(f || !f && t === "fixed") && (l = o.offsetLeft, s = o.offsetTop);
|
|
373
|
-
}
|
|
374
|
-
return {
|
|
375
|
-
width: i,
|
|
376
|
-
height: a,
|
|
377
|
-
x: l + Ke(e),
|
|
378
|
-
y: s
|
|
379
|
-
};
|
|
380
|
-
}
|
|
381
|
-
function hr(e) {
|
|
382
|
-
var t, r = Y(e), n = Je(e), o = (t = e.ownerDocument) == null ? void 0 : t.body, i = re(r.scrollWidth, r.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), a = re(r.scrollHeight, r.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), l = -n.scrollLeft + Ke(e), s = -n.scrollTop;
|
|
383
|
-
return q(o || r).direction === "rtl" && (l += re(r.clientWidth, o ? o.clientWidth : 0) - i), {
|
|
384
|
-
width: i,
|
|
385
|
-
height: a,
|
|
386
|
-
x: l,
|
|
387
|
-
y: s
|
|
388
|
-
};
|
|
389
|
-
}
|
|
390
|
-
function Qe(e) {
|
|
391
|
-
var t = q(e), r = t.overflow, n = t.overflowX, o = t.overflowY;
|
|
392
|
-
return /auto|scroll|overlay|hidden/.test(r + o + n);
|
|
393
|
-
}
|
|
394
|
-
function Pt(e) {
|
|
395
|
-
return ["html", "body", "#document"].indexOf(H(e)) >= 0 ? e.ownerDocument.body : T(e) && Qe(e) ? e : Pt(Te(e));
|
|
396
|
-
}
|
|
397
|
-
function me(e, t) {
|
|
398
|
-
var r;
|
|
399
|
-
t === void 0 && (t = []);
|
|
400
|
-
var n = Pt(e), o = n === ((r = e.ownerDocument) == null ? void 0 : r.body), i = M(n), a = o ? [i].concat(i.visualViewport || [], Qe(n) ? n : []) : n, l = t.concat(a);
|
|
401
|
-
return o ? l : l.concat(me(Te(a)));
|
|
402
|
-
}
|
|
403
|
-
function We(e) {
|
|
404
|
-
return Object.assign({}, e, {
|
|
405
|
-
left: e.x,
|
|
406
|
-
top: e.y,
|
|
407
|
-
right: e.x + e.width,
|
|
408
|
-
bottom: e.y + e.height
|
|
409
|
-
});
|
|
410
|
-
}
|
|
411
|
-
function mr(e, t) {
|
|
412
|
-
var r = le(e, !1, t === "fixed");
|
|
413
|
-
return r.top = r.top + e.clientTop, r.left = r.left + e.clientLeft, r.bottom = r.top + e.clientHeight, r.right = r.left + e.clientWidth, r.width = e.clientWidth, r.height = e.clientHeight, r.x = r.left, r.y = r.top, r;
|
|
414
|
-
}
|
|
415
|
-
function ut(e, t, r) {
|
|
416
|
-
return t === bt ? We(vr(e, r)) : ne(t) ? mr(t, r) : We(hr(Y(e)));
|
|
417
|
-
}
|
|
418
|
-
function gr(e) {
|
|
419
|
-
var t = me(Te(e)), r = ["absolute", "fixed"].indexOf(q(e).position) >= 0, n = r && T(e) ? Ce(e) : e;
|
|
420
|
-
return ne(n) ? t.filter(function(o) {
|
|
421
|
-
return ne(o) && Ot(o, n) && H(o) !== "body";
|
|
422
|
-
}) : [];
|
|
423
|
-
}
|
|
424
|
-
function br(e, t, r, n) {
|
|
425
|
-
var o = t === "clippingParents" ? gr(e) : [].concat(t), i = [].concat(o, [r]), a = i[0], l = i.reduce(function(s, f) {
|
|
426
|
-
var p = ut(e, f, n);
|
|
427
|
-
return s.top = re(p.top, s.top), s.right = je(p.right, s.right), s.bottom = je(p.bottom, s.bottom), s.left = re(p.left, s.left), s;
|
|
428
|
-
}, ut(e, a, n));
|
|
429
|
-
return l.width = l.right - l.left, l.height = l.bottom - l.top, l.x = l.left, l.y = l.top, l;
|
|
430
|
-
}
|
|
431
|
-
function Et(e) {
|
|
432
|
-
var t = e.reference, r = e.element, n = e.placement, o = n ? V(n) : null, i = n ? pe(n) : null, a = t.x + t.width / 2 - r.width / 2, l = t.y + t.height / 2 - r.height / 2, s;
|
|
433
|
-
switch (o) {
|
|
434
|
-
case R:
|
|
435
|
-
s = {
|
|
436
|
-
x: a,
|
|
437
|
-
y: t.y - r.height
|
|
438
|
-
};
|
|
439
|
-
break;
|
|
440
|
-
case N:
|
|
441
|
-
s = {
|
|
442
|
-
x: a,
|
|
443
|
-
y: t.y + t.height
|
|
444
|
-
};
|
|
445
|
-
break;
|
|
446
|
-
case I:
|
|
447
|
-
s = {
|
|
448
|
-
x: t.x + t.width,
|
|
449
|
-
y: l
|
|
450
|
-
};
|
|
451
|
-
break;
|
|
452
|
-
case j:
|
|
453
|
-
s = {
|
|
454
|
-
x: t.x - r.width,
|
|
455
|
-
y: l
|
|
456
|
-
};
|
|
457
|
-
break;
|
|
458
|
-
default:
|
|
459
|
-
s = {
|
|
460
|
-
x: t.x,
|
|
461
|
-
y: t.y
|
|
462
|
-
};
|
|
463
|
-
}
|
|
464
|
-
var f = o ? Ge(o) : null;
|
|
465
|
-
if (f != null) {
|
|
466
|
-
var p = f === "y" ? "height" : "width";
|
|
467
|
-
switch (i) {
|
|
468
|
-
case ae:
|
|
469
|
-
s[f] = s[f] - (t[p] / 2 - r[p] / 2);
|
|
470
|
-
break;
|
|
471
|
-
case Oe:
|
|
472
|
-
s[f] = s[f] + (t[p] / 2 - r[p] / 2);
|
|
473
|
-
break;
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
return s;
|
|
477
|
-
}
|
|
478
|
-
function xe(e, t) {
|
|
479
|
-
t === void 0 && (t = {});
|
|
480
|
-
var r = t, n = r.placement, o = n === void 0 ? e.placement : n, i = r.strategy, a = i === void 0 ? e.strategy : i, l = r.boundary, s = l === void 0 ? Lt : l, f = r.rootBoundary, p = f === void 0 ? bt : f, h = r.elementContext, y = h === void 0 ? ve : h, u = r.altBoundary, O = u === void 0 ? !1 : u, m = r.padding, v = m === void 0 ? 0 : m, w = $t(typeof v != "number" ? v : Ct(v, $e)), C = y === ve ? Vt : ve, $ = e.rects.popper, c = e.elements[O ? C : y], g = br(ne(c) ? c : c.contextElement || Y(e.elements.popper), s, p, a), d = le(e.elements.reference), x = Et({
|
|
481
|
-
reference: d,
|
|
482
|
-
element: $,
|
|
483
|
-
strategy: "absolute",
|
|
484
|
-
placement: o
|
|
485
|
-
}), E = We(Object.assign({}, $, x)), S = y === ve ? E : d, k = {
|
|
486
|
-
top: g.top - S.top + w.top,
|
|
487
|
-
bottom: S.bottom - g.bottom + w.bottom,
|
|
488
|
-
left: g.left - S.left + w.left,
|
|
489
|
-
right: S.right - g.right + w.right
|
|
490
|
-
}, b = e.modifiersData.offset;
|
|
491
|
-
if (y === ve && b) {
|
|
492
|
-
var D = b[o];
|
|
493
|
-
Object.keys(k).forEach(function(A) {
|
|
494
|
-
var G = [I, N].indexOf(A) >= 0 ? 1 : -1, J = [R, N].indexOf(A) >= 0 ? "y" : "x";
|
|
495
|
-
k[A] += D[J] * G;
|
|
496
|
-
});
|
|
497
|
-
}
|
|
498
|
-
return k;
|
|
499
|
-
}
|
|
500
|
-
function yr(e, t) {
|
|
501
|
-
t === void 0 && (t = {});
|
|
502
|
-
var r = t, n = r.placement, o = r.boundary, i = r.rootBoundary, a = r.padding, l = r.flipVariations, s = r.allowedAutoPlacements, f = s === void 0 ? yt : s, p = pe(n), h = p ? l ? st : st.filter(function(O) {
|
|
503
|
-
return pe(O) === p;
|
|
504
|
-
}) : $e, y = h.filter(function(O) {
|
|
505
|
-
return f.indexOf(O) >= 0;
|
|
506
|
-
});
|
|
507
|
-
y.length === 0 && (y = h, 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 u = y.reduce(function(O, m) {
|
|
509
|
-
return O[m] = xe(e, {
|
|
510
|
-
placement: m,
|
|
511
|
-
boundary: o,
|
|
512
|
-
rootBoundary: i,
|
|
513
|
-
padding: a
|
|
514
|
-
})[V(m)], O;
|
|
515
|
-
}, {});
|
|
516
|
-
return Object.keys(u).sort(function(O, m) {
|
|
517
|
-
return u[O] - u[m];
|
|
518
|
-
});
|
|
519
|
-
}
|
|
520
|
-
function wr(e) {
|
|
521
|
-
if (V(e) === ze)
|
|
522
|
-
return [];
|
|
523
|
-
var t = Ae(e);
|
|
524
|
-
return [ft(e), t, ft(t)];
|
|
525
|
-
}
|
|
526
|
-
function Or(e) {
|
|
527
|
-
var t = e.state, r = e.options, n = e.name;
|
|
528
|
-
if (!t.modifiersData[n]._skip) {
|
|
529
|
-
for (var o = r.mainAxis, i = o === void 0 ? !0 : o, a = r.altAxis, l = a === void 0 ? !0 : a, s = r.fallbackPlacements, f = r.padding, p = r.boundary, h = r.rootBoundary, y = r.altBoundary, u = r.flipVariations, O = u === void 0 ? !0 : u, m = r.allowedAutoPlacements, v = t.options.placement, w = V(v), C = w === v, $ = s || (C || !O ? [Ae(v)] : wr(v)), c = [v].concat($).reduce(function(oe, U) {
|
|
530
|
-
return oe.concat(V(U) === ze ? yr(t, {
|
|
531
|
-
placement: U,
|
|
532
|
-
boundary: p,
|
|
533
|
-
rootBoundary: h,
|
|
534
|
-
padding: f,
|
|
535
|
-
flipVariations: O,
|
|
536
|
-
allowedAutoPlacements: m
|
|
537
|
-
}) : U);
|
|
538
|
-
}, []), g = t.rects.reference, d = t.rects.popper, x = /* @__PURE__ */ new Map(), E = !0, S = c[0], k = 0; k < c.length; k++) {
|
|
539
|
-
var b = c[k], D = V(b), A = pe(b) === ae, G = [R, N].indexOf(D) >= 0, J = G ? "width" : "height", z = xe(t, {
|
|
540
|
-
placement: b,
|
|
541
|
-
boundary: p,
|
|
542
|
-
rootBoundary: h,
|
|
543
|
-
altBoundary: y,
|
|
544
|
-
padding: f
|
|
545
|
-
}), L = G ? A ? I : j : A ? N : R;
|
|
546
|
-
g[J] > d[J] && (L = Ae(L));
|
|
547
|
-
var Pe = Ae(L), K = [];
|
|
548
|
-
if (i && K.push(z[D] <= 0), l && K.push(z[L] <= 0, z[Pe] <= 0), K.every(function(oe) {
|
|
549
|
-
return oe;
|
|
550
|
-
})) {
|
|
551
|
-
S = b, E = !1;
|
|
552
|
-
break;
|
|
553
|
-
}
|
|
554
|
-
x.set(b, K);
|
|
555
|
-
}
|
|
556
|
-
if (E)
|
|
557
|
-
for (var Ee = O ? 3 : 1, Ne = function(U) {
|
|
558
|
-
var ce = c.find(function(ke) {
|
|
559
|
-
var Q = x.get(ke);
|
|
560
|
-
if (Q)
|
|
561
|
-
return Q.slice(0, U).every(function(Ie) {
|
|
562
|
-
return Ie;
|
|
563
|
-
});
|
|
564
|
-
});
|
|
565
|
-
if (ce)
|
|
566
|
-
return S = ce, "break";
|
|
567
|
-
}, ue = Ee; ue > 0; ue--) {
|
|
568
|
-
var Se = Ne(ue);
|
|
569
|
-
if (Se === "break")
|
|
570
|
-
break;
|
|
571
|
-
}
|
|
572
|
-
t.placement !== S && (t.modifiersData[n]._skip = !0, t.placement = S, t.reset = !0);
|
|
573
|
-
}
|
|
574
|
-
}
|
|
575
|
-
const xr = {
|
|
576
|
-
name: "flip",
|
|
577
|
-
enabled: !0,
|
|
578
|
-
phase: "main",
|
|
579
|
-
fn: Or,
|
|
580
|
-
requiresIfExists: ["offset"],
|
|
581
|
-
data: {
|
|
582
|
-
_skip: !1
|
|
583
|
-
}
|
|
584
|
-
};
|
|
585
|
-
function ct(e, t, r) {
|
|
586
|
-
return r === void 0 && (r = {
|
|
587
|
-
x: 0,
|
|
588
|
-
y: 0
|
|
589
|
-
}), {
|
|
590
|
-
top: e.top - t.height - r.y,
|
|
591
|
-
right: e.right - t.width + r.x,
|
|
592
|
-
bottom: e.bottom - t.height + r.y,
|
|
593
|
-
left: e.left - t.width - r.x
|
|
594
|
-
};
|
|
595
|
-
}
|
|
596
|
-
function dt(e) {
|
|
597
|
-
return [R, I, N, j].some(function(t) {
|
|
598
|
-
return e[t] >= 0;
|
|
599
|
-
});
|
|
600
|
-
}
|
|
601
|
-
function $r(e) {
|
|
602
|
-
var t = e.state, r = e.name, n = t.rects.reference, o = t.rects.popper, i = t.modifiersData.preventOverflow, a = xe(t, {
|
|
603
|
-
elementContext: "reference"
|
|
604
|
-
}), l = xe(t, {
|
|
605
|
-
altBoundary: !0
|
|
606
|
-
}), s = ct(a, n), f = ct(l, o, i), p = dt(s), h = dt(f);
|
|
607
|
-
t.modifiersData[r] = {
|
|
608
|
-
referenceClippingOffsets: s,
|
|
609
|
-
popperEscapeOffsets: f,
|
|
610
|
-
isReferenceHidden: p,
|
|
611
|
-
hasPopperEscaped: h
|
|
612
|
-
}, t.attributes.popper = Object.assign({}, t.attributes.popper, {
|
|
613
|
-
"data-popper-reference-hidden": p,
|
|
614
|
-
"data-popper-escaped": h
|
|
615
|
-
});
|
|
616
|
-
}
|
|
617
|
-
const Cr = {
|
|
618
|
-
name: "hide",
|
|
619
|
-
enabled: !0,
|
|
620
|
-
phase: "main",
|
|
621
|
-
requiresIfExists: ["preventOverflow"],
|
|
622
|
-
fn: $r
|
|
623
|
-
};
|
|
624
|
-
function Pr(e, t, r) {
|
|
625
|
-
var n = V(e), o = [j, R].indexOf(n) >= 0 ? -1 : 1, i = typeof r == "function" ? r(Object.assign({}, t, {
|
|
626
|
-
placement: e
|
|
627
|
-
})) : r, a = i[0], l = i[1];
|
|
628
|
-
return a = a || 0, l = (l || 0) * o, [j, I].indexOf(n) >= 0 ? {
|
|
629
|
-
x: l,
|
|
630
|
-
y: a
|
|
631
|
-
} : {
|
|
632
|
-
x: a,
|
|
633
|
-
y: l
|
|
634
|
-
};
|
|
635
|
-
}
|
|
636
|
-
function Er(e) {
|
|
637
|
-
var t = e.state, r = e.options, n = e.name, o = r.offset, i = o === void 0 ? [0, 0] : o, a = yt.reduce(function(p, h) {
|
|
638
|
-
return p[h] = Pr(h, t.rects, i), p;
|
|
639
|
-
}, {}), l = a[t.placement], s = l.x, f = l.y;
|
|
640
|
-
t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += s, t.modifiersData.popperOffsets.y += f), t.modifiersData[n] = a;
|
|
641
|
-
}
|
|
642
|
-
const Sr = {
|
|
643
|
-
name: "offset",
|
|
644
|
-
enabled: !0,
|
|
645
|
-
phase: "main",
|
|
646
|
-
requires: ["popperOffsets"],
|
|
647
|
-
fn: Er
|
|
648
|
-
};
|
|
649
|
-
function kr(e) {
|
|
650
|
-
var t = e.state, r = e.name;
|
|
651
|
-
t.modifiersData[r] = Et({
|
|
652
|
-
reference: t.rects.reference,
|
|
653
|
-
element: t.rects.popper,
|
|
654
|
-
strategy: "absolute",
|
|
655
|
-
placement: t.placement
|
|
656
|
-
});
|
|
657
|
-
}
|
|
658
|
-
const Br = {
|
|
659
|
-
name: "popperOffsets",
|
|
660
|
-
enabled: !0,
|
|
661
|
-
phase: "read",
|
|
662
|
-
fn: kr,
|
|
663
|
-
data: {}
|
|
664
|
-
};
|
|
665
|
-
function Dr(e) {
|
|
666
|
-
return e === "x" ? "y" : "x";
|
|
667
|
-
}
|
|
668
|
-
function Ar(e) {
|
|
669
|
-
var t = e.state, r = e.options, n = e.name, o = r.mainAxis, i = o === void 0 ? !0 : o, a = r.altAxis, l = a === void 0 ? !1 : a, s = r.boundary, f = r.rootBoundary, p = r.altBoundary, h = r.padding, y = r.tether, u = y === void 0 ? !0 : y, O = r.tetherOffset, m = O === void 0 ? 0 : O, v = xe(t, {
|
|
670
|
-
boundary: s,
|
|
671
|
-
rootBoundary: f,
|
|
672
|
-
padding: h,
|
|
673
|
-
altBoundary: p
|
|
674
|
-
}), w = V(t.placement), C = pe(t.placement), $ = !C, c = Ge(w), g = Dr(c), d = t.modifiersData.popperOffsets, x = t.rects.reference, E = t.rects.popper, S = typeof m == "function" ? m(Object.assign({}, t.rects, {
|
|
675
|
-
placement: t.placement
|
|
676
|
-
})) : m, k = typeof S == "number" ? {
|
|
677
|
-
mainAxis: S,
|
|
678
|
-
altAxis: S
|
|
679
|
-
} : Object.assign({
|
|
680
|
-
mainAxis: 0,
|
|
681
|
-
altAxis: 0
|
|
682
|
-
}, S), b = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, D = {
|
|
683
|
-
x: 0,
|
|
684
|
-
y: 0
|
|
685
|
-
};
|
|
686
|
-
if (!!d) {
|
|
687
|
-
if (i) {
|
|
688
|
-
var A, G = c === "y" ? R : j, J = c === "y" ? N : I, z = c === "y" ? "height" : "width", L = d[c], Pe = L + v[G], K = L - v[J], Ee = u ? -E[z] / 2 : 0, Ne = C === ae ? x[z] : E[z], ue = C === ae ? -E[z] : -x[z], Se = t.elements.arrow, oe = u && Se ? Ye(Se) : {
|
|
689
|
-
width: 0,
|
|
690
|
-
height: 0
|
|
691
|
-
}, U = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : xt(), ce = U[G], ke = U[J], Q = he(0, x[z], oe[z]), Ie = $ ? x[z] / 2 - Ee - Q - ce - k.mainAxis : Ne - Q - ce - k.mainAxis, Bt = $ ? -x[z] / 2 + Ee + Q + ke + k.mainAxis : ue + Q + ke + k.mainAxis, Me = t.elements.arrow && Ce(t.elements.arrow), Dt = Me ? c === "y" ? Me.clientTop || 0 : Me.clientLeft || 0 : 0, Ze = (A = b == null ? void 0 : b[c]) != null ? A : 0, At = L + Ie - Ze - Dt, Rt = L + Bt - Ze, _e = he(u ? je(Pe, At) : Pe, L, u ? re(K, Rt) : K);
|
|
692
|
-
d[c] = _e, D[c] = _e - L;
|
|
693
|
-
}
|
|
694
|
-
if (l) {
|
|
695
|
-
var et, jt = c === "x" ? R : j, zt = c === "x" ? N : I, Z = d[g], Be = g === "y" ? "height" : "width", tt = Z + v[jt], rt = Z - v[zt], Le = [R, j].indexOf(w) !== -1, nt = (et = b == null ? void 0 : b[g]) != null ? et : 0, ot = Le ? tt : Z - x[Be] - E[Be] - nt + k.altAxis, it = Le ? Z + x[Be] + E[Be] - nt - k.altAxis : rt, at = u && Le ? tr(ot, Z, it) : he(u ? ot : tt, Z, u ? it : rt);
|
|
696
|
-
d[g] = at, D[g] = at - Z;
|
|
697
|
-
}
|
|
698
|
-
t.modifiersData[n] = D;
|
|
699
|
-
}
|
|
700
|
-
}
|
|
701
|
-
const Rr = {
|
|
702
|
-
name: "preventOverflow",
|
|
703
|
-
enabled: !0,
|
|
704
|
-
phase: "main",
|
|
705
|
-
fn: Ar,
|
|
706
|
-
requiresIfExists: ["offset"]
|
|
707
|
-
};
|
|
708
|
-
function jr(e) {
|
|
709
|
-
return {
|
|
710
|
-
scrollLeft: e.scrollLeft,
|
|
711
|
-
scrollTop: e.scrollTop
|
|
712
|
-
};
|
|
713
|
-
}
|
|
714
|
-
function zr(e) {
|
|
715
|
-
return e === M(e) || !T(e) ? Je(e) : jr(e);
|
|
716
|
-
}
|
|
717
|
-
function Tr(e) {
|
|
718
|
-
var t = e.getBoundingClientRect(), r = se(t.width) / e.offsetWidth || 1, n = se(t.height) / e.offsetHeight || 1;
|
|
719
|
-
return r !== 1 || n !== 1;
|
|
720
|
-
}
|
|
721
|
-
function Nr(e, t, r) {
|
|
722
|
-
r === void 0 && (r = !1);
|
|
723
|
-
var n = T(t), o = T(t) && Tr(t), i = Y(t), a = le(e, o, r), l = {
|
|
724
|
-
scrollLeft: 0,
|
|
725
|
-
scrollTop: 0
|
|
726
|
-
}, s = {
|
|
727
|
-
x: 0,
|
|
728
|
-
y: 0
|
|
729
|
-
};
|
|
730
|
-
return (n || !n && !r) && ((H(t) !== "body" || Qe(i)) && (l = zr(t)), T(t) ? (s = le(t, !0), s.x += t.clientLeft, s.y += t.clientTop) : i && (s.x = Ke(i))), {
|
|
731
|
-
x: a.left + l.scrollLeft - s.x,
|
|
732
|
-
y: a.top + l.scrollTop - s.y,
|
|
733
|
-
width: a.width,
|
|
734
|
-
height: a.height
|
|
735
|
-
};
|
|
736
|
-
}
|
|
737
|
-
function Ir(e) {
|
|
738
|
-
var t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), n = [];
|
|
739
|
-
e.forEach(function(i) {
|
|
740
|
-
t.set(i.name, i);
|
|
741
|
-
});
|
|
742
|
-
function o(i) {
|
|
743
|
-
r.add(i.name);
|
|
744
|
-
var a = [].concat(i.requires || [], i.requiresIfExists || []);
|
|
745
|
-
a.forEach(function(l) {
|
|
746
|
-
if (!r.has(l)) {
|
|
747
|
-
var s = t.get(l);
|
|
748
|
-
s && o(s);
|
|
749
|
-
}
|
|
750
|
-
}), n.push(i);
|
|
751
|
-
}
|
|
752
|
-
return e.forEach(function(i) {
|
|
753
|
-
r.has(i.name) || o(i);
|
|
754
|
-
}), n;
|
|
755
|
-
}
|
|
756
|
-
function Mr(e) {
|
|
757
|
-
var t = Ir(e);
|
|
758
|
-
return qe.reduce(function(r, n) {
|
|
759
|
-
return r.concat(t.filter(function(o) {
|
|
760
|
-
return o.phase === n;
|
|
761
|
-
}));
|
|
762
|
-
}, []);
|
|
763
|
-
}
|
|
764
|
-
function Lr(e) {
|
|
765
|
-
var t;
|
|
766
|
-
return function() {
|
|
767
|
-
return t || (t = new Promise(function(r) {
|
|
768
|
-
Promise.resolve().then(function() {
|
|
769
|
-
t = void 0, r(e());
|
|
770
|
-
});
|
|
771
|
-
})), t;
|
|
772
|
-
};
|
|
773
|
-
}
|
|
774
|
-
function X(e) {
|
|
775
|
-
for (var t = arguments.length, r = new Array(t > 1 ? t - 1 : 0), n = 1; n < t; n++)
|
|
776
|
-
r[n - 1] = arguments[n];
|
|
777
|
-
return [].concat(r).reduce(function(o, i) {
|
|
778
|
-
return o.replace(/%s/, i);
|
|
779
|
-
}, e);
|
|
780
|
-
}
|
|
781
|
-
var _ = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s', Vr = 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available', vt = ["name", "enabled", "phase", "fn", "effect", "requires", "options"];
|
|
782
|
-
function qr(e) {
|
|
783
|
-
e.forEach(function(t) {
|
|
784
|
-
[].concat(Object.keys(t), vt).filter(function(r, n, o) {
|
|
785
|
-
return o.indexOf(r) === n;
|
|
786
|
-
}).forEach(function(r) {
|
|
787
|
-
switch (r) {
|
|
788
|
-
case "name":
|
|
789
|
-
typeof t.name != "string" && console.error(X(_, String(t.name), '"name"', '"string"', '"' + String(t.name) + '"'));
|
|
790
|
-
break;
|
|
791
|
-
case "enabled":
|
|
792
|
-
typeof t.enabled != "boolean" && console.error(X(_, t.name, '"enabled"', '"boolean"', '"' + String(t.enabled) + '"'));
|
|
793
|
-
break;
|
|
794
|
-
case "phase":
|
|
795
|
-
qe.indexOf(t.phase) < 0 && console.error(X(_, t.name, '"phase"', "either " + qe.join(", "), '"' + String(t.phase) + '"'));
|
|
796
|
-
break;
|
|
797
|
-
case "fn":
|
|
798
|
-
typeof t.fn != "function" && console.error(X(_, t.name, '"fn"', '"function"', '"' + String(t.fn) + '"'));
|
|
799
|
-
break;
|
|
800
|
-
case "effect":
|
|
801
|
-
t.effect != null && typeof t.effect != "function" && console.error(X(_, t.name, '"effect"', '"function"', '"' + String(t.fn) + '"'));
|
|
802
|
-
break;
|
|
803
|
-
case "requires":
|
|
804
|
-
t.requires != null && !Array.isArray(t.requires) && console.error(X(_, t.name, '"requires"', '"array"', '"' + String(t.requires) + '"'));
|
|
805
|
-
break;
|
|
806
|
-
case "requiresIfExists":
|
|
807
|
-
Array.isArray(t.requiresIfExists) || console.error(X(_, t.name, '"requiresIfExists"', '"array"', '"' + String(t.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 "' + t.name + '" modifier, valid properties are ' + vt.map(function(n) {
|
|
814
|
-
return '"' + n + '"';
|
|
815
|
-
}).join(", ") + '; but "' + r + '" was provided.');
|
|
816
|
-
}
|
|
817
|
-
t.requires && t.requires.forEach(function(n) {
|
|
818
|
-
e.find(function(o) {
|
|
819
|
-
return o.name === n;
|
|
820
|
-
}) == null && console.error(X(Vr, String(t.name), n, n));
|
|
821
|
-
});
|
|
822
|
-
});
|
|
823
|
-
});
|
|
824
|
-
}
|
|
825
|
-
function Fr(e, t) {
|
|
826
|
-
var r = /* @__PURE__ */ new Set();
|
|
827
|
-
return e.filter(function(n) {
|
|
828
|
-
var o = t(n);
|
|
829
|
-
if (!r.has(o))
|
|
830
|
-
return r.add(o), !0;
|
|
831
|
-
});
|
|
832
|
-
}
|
|
833
|
-
function Wr(e) {
|
|
834
|
-
var t = e.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(t).map(function(r) {
|
|
842
|
-
return t[r];
|
|
843
|
-
});
|
|
844
|
-
}
|
|
845
|
-
var ht = "Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.", Hr = "Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.", mt = {
|
|
846
|
-
placement: "bottom",
|
|
847
|
-
modifiers: [],
|
|
848
|
-
strategy: "absolute"
|
|
849
|
-
};
|
|
850
|
-
function gt() {
|
|
851
|
-
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
|
852
|
-
t[r] = arguments[r];
|
|
853
|
-
return !t.some(function(n) {
|
|
854
|
-
return !(n && typeof n.getBoundingClientRect == "function");
|
|
855
|
-
});
|
|
856
|
-
}
|
|
857
|
-
function Ur(e) {
|
|
858
|
-
e === void 0 && (e = {});
|
|
859
|
-
var t = e, r = t.defaultModifiers, n = r === void 0 ? [] : r, o = t.defaultOptions, i = o === void 0 ? mt : o;
|
|
860
|
-
return function(l, s, f) {
|
|
861
|
-
f === void 0 && (f = i);
|
|
862
|
-
var p = {
|
|
863
|
-
placement: "bottom",
|
|
864
|
-
orderedModifiers: [],
|
|
865
|
-
options: Object.assign({}, mt, i),
|
|
866
|
-
modifiersData: {},
|
|
867
|
-
elements: {
|
|
868
|
-
reference: l,
|
|
869
|
-
popper: s
|
|
870
|
-
},
|
|
871
|
-
attributes: {},
|
|
872
|
-
styles: {}
|
|
873
|
-
}, h = [], y = !1, u = {
|
|
874
|
-
state: p,
|
|
875
|
-
setOptions: function(w) {
|
|
876
|
-
var C = typeof w == "function" ? w(p.options) : w;
|
|
877
|
-
m(), p.options = Object.assign({}, i, p.options, C), p.scrollParents = {
|
|
878
|
-
reference: ne(l) ? me(l) : l.contextElement ? me(l.contextElement) : [],
|
|
879
|
-
popper: me(s)
|
|
880
|
-
};
|
|
881
|
-
var $ = Mr(Wr([].concat(n, p.options.modifiers)));
|
|
882
|
-
if (p.orderedModifiers = $.filter(function(b) {
|
|
883
|
-
return b.enabled;
|
|
884
|
-
}), process.env.NODE_ENV !== "production") {
|
|
885
|
-
var c = Fr([].concat($, p.options.modifiers), function(b) {
|
|
886
|
-
var D = b.name;
|
|
887
|
-
return D;
|
|
888
|
-
});
|
|
889
|
-
if (qr(c), V(p.options.placement) === ze) {
|
|
890
|
-
var g = p.orderedModifiers.find(function(b) {
|
|
891
|
-
var D = b.name;
|
|
892
|
-
return D === "flip";
|
|
893
|
-
});
|
|
894
|
-
g || console.error(['Popper: "auto" placements require the "flip" modifier be', "present and enabled to work."].join(" "));
|
|
895
|
-
}
|
|
896
|
-
var d = q(s), x = d.marginTop, E = d.marginRight, S = d.marginBottom, k = d.marginLeft;
|
|
897
|
-
[x, E, S, k].some(function(b) {
|
|
898
|
-
return parseFloat(b);
|
|
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 O(), u.update();
|
|
902
|
-
},
|
|
903
|
-
forceUpdate: function() {
|
|
904
|
-
if (!y) {
|
|
905
|
-
var w = p.elements, C = w.reference, $ = w.popper;
|
|
906
|
-
if (!gt(C, $)) {
|
|
907
|
-
process.env.NODE_ENV !== "production" && console.error(ht);
|
|
908
|
-
return;
|
|
909
|
-
}
|
|
910
|
-
p.rects = {
|
|
911
|
-
reference: Nr(C, Ce($), p.options.strategy === "fixed"),
|
|
912
|
-
popper: Ye($)
|
|
913
|
-
}, p.reset = !1, p.placement = p.options.placement, p.orderedModifiers.forEach(function(b) {
|
|
914
|
-
return p.modifiersData[b.name] = Object.assign({}, b.data);
|
|
915
|
-
});
|
|
916
|
-
for (var c = 0, g = 0; g < p.orderedModifiers.length; g++) {
|
|
917
|
-
if (process.env.NODE_ENV !== "production" && (c += 1, c > 100)) {
|
|
918
|
-
console.error(Hr);
|
|
919
|
-
break;
|
|
920
|
-
}
|
|
921
|
-
if (p.reset === !0) {
|
|
922
|
-
p.reset = !1, g = -1;
|
|
923
|
-
continue;
|
|
924
|
-
}
|
|
925
|
-
var d = p.orderedModifiers[g], x = d.fn, E = d.options, S = E === void 0 ? {} : E, k = d.name;
|
|
926
|
-
typeof x == "function" && (p = x({
|
|
927
|
-
state: p,
|
|
928
|
-
options: S,
|
|
929
|
-
name: k,
|
|
930
|
-
instance: u
|
|
931
|
-
}) || p);
|
|
932
|
-
}
|
|
933
|
-
}
|
|
934
|
-
},
|
|
935
|
-
update: Lr(function() {
|
|
936
|
-
return new Promise(function(v) {
|
|
937
|
-
u.forceUpdate(), v(p);
|
|
938
|
-
});
|
|
939
|
-
}),
|
|
940
|
-
destroy: function() {
|
|
941
|
-
m(), y = !0;
|
|
942
|
-
}
|
|
943
|
-
};
|
|
944
|
-
if (!gt(l, s))
|
|
945
|
-
return process.env.NODE_ENV !== "production" && console.error(ht), u;
|
|
946
|
-
u.setOptions(f).then(function(v) {
|
|
947
|
-
!y && f.onFirstUpdate && f.onFirstUpdate(v);
|
|
948
|
-
});
|
|
949
|
-
function O() {
|
|
950
|
-
p.orderedModifiers.forEach(function(v) {
|
|
951
|
-
var w = v.name, C = v.options, $ = C === void 0 ? {} : C, c = v.effect;
|
|
952
|
-
if (typeof c == "function") {
|
|
953
|
-
var g = c({
|
|
954
|
-
state: p,
|
|
955
|
-
name: w,
|
|
956
|
-
instance: u,
|
|
957
|
-
options: $
|
|
958
|
-
}), d = function() {
|
|
959
|
-
};
|
|
960
|
-
h.push(g || d);
|
|
961
|
-
}
|
|
962
|
-
});
|
|
963
|
-
}
|
|
964
|
-
function m() {
|
|
965
|
-
h.forEach(function(v) {
|
|
966
|
-
return v();
|
|
967
|
-
}), h = [];
|
|
968
|
-
}
|
|
969
|
-
return u;
|
|
970
|
-
};
|
|
971
|
-
}
|
|
972
|
-
var Xr = [ur, Br, pr, Zt, Sr, xr, Rr, ir, Cr], Yr = /* @__PURE__ */ Ur({
|
|
973
|
-
defaultModifiers: Xr
|
|
974
|
-
});
|
|
975
|
-
const Gr = {
|
|
976
|
-
props: {
|
|
977
|
-
componentPrefix: String,
|
|
978
|
-
size: String,
|
|
979
|
-
sizePrefix: String
|
|
980
|
-
},
|
|
981
|
-
computed: {
|
|
982
|
-
sizeableClassPrefix() {
|
|
983
|
-
return this.sizePrefix || this.componentPrefix;
|
|
984
|
-
},
|
|
985
|
-
hasSizeablePrefix() {
|
|
986
|
-
return this.size && !!this.size.match(
|
|
987
|
-
new RegExp(`^${this.sizeableClassPrefix}`)
|
|
988
|
-
);
|
|
989
|
-
},
|
|
990
|
-
sizeableClass() {
|
|
991
|
-
return this.size ? !this.sizeableClassPrefix || this.hasSizeablePrefix ? this.size : `${this.sizeableClassPrefix}-${this.size}` : "";
|
|
992
|
-
}
|
|
993
|
-
}
|
|
994
|
-
}, Jr = {
|
|
995
|
-
props: {
|
|
996
|
-
componentPrefix: String,
|
|
997
|
-
variant: String,
|
|
998
|
-
variantPrefix: String
|
|
999
|
-
},
|
|
1000
|
-
computed: {
|
|
1001
|
-
variantClassPrefix() {
|
|
1002
|
-
return this.variantPrefix || this.componentPrefix;
|
|
1003
|
-
},
|
|
1004
|
-
hasVariantPrefix() {
|
|
1005
|
-
return this.variant && !!this.variant.match(
|
|
1006
|
-
new RegExp(`^${this.variantClassPrefix}`)
|
|
1007
|
-
);
|
|
1008
|
-
},
|
|
1009
|
-
variantClass() {
|
|
1010
|
-
return this.variant ? !this.variantClassPrefix || this.hasVariantPrefix ? this.variant : `${this.variantClassPrefix}-${this.variant}` : "";
|
|
1011
|
-
}
|
|
1012
|
-
}
|
|
1013
|
-
}, Kr = {
|
|
1014
|
-
name: "Btn",
|
|
1015
|
-
mixins: [
|
|
1016
|
-
Gr,
|
|
1017
|
-
Jr
|
|
1018
|
-
],
|
|
1019
|
-
props: {
|
|
1020
|
-
active: Boolean,
|
|
1021
|
-
block: Boolean,
|
|
1022
|
-
componentPrefix: {
|
|
1023
|
-
type: String,
|
|
1024
|
-
default: "btn"
|
|
1025
|
-
},
|
|
1026
|
-
disabled: Boolean,
|
|
1027
|
-
label: String,
|
|
1028
|
-
outline: Boolean,
|
|
1029
|
-
tag: String,
|
|
1030
|
-
variant: {
|
|
1031
|
-
type: String,
|
|
1032
|
-
default: "primary"
|
|
1033
|
-
}
|
|
1034
|
-
},
|
|
1035
|
-
computed: {
|
|
1036
|
-
classes() {
|
|
1037
|
-
return [
|
|
1038
|
-
"btn",
|
|
1039
|
-
this.variantClass,
|
|
1040
|
-
this.sizeableClass,
|
|
1041
|
-
this.active && "active",
|
|
1042
|
-
this.block && "btn-block",
|
|
1043
|
-
this.disabled && "disabled"
|
|
1044
|
-
];
|
|
1045
|
-
},
|
|
1046
|
-
component() {
|
|
1047
|
-
return this.tag ? this.tag : this.$attrs.href ? "a" : "button";
|
|
1048
|
-
},
|
|
1049
|
-
variantClassPrefix() {
|
|
1050
|
-
return (this.variantPrefix || this.componentPrefix) + (this.outline ? "-outline" : "");
|
|
1051
|
-
}
|
|
1052
|
-
}
|
|
1053
|
-
}, fe = (e, t) => {
|
|
1054
|
-
const r = e.__vccOpts || e;
|
|
1055
|
-
for (const [n, o] of t)
|
|
1056
|
-
r[n] = o;
|
|
1057
|
-
return r;
|
|
1058
|
-
};
|
|
1059
|
-
function Qr(e, t, r, n, o, i) {
|
|
1060
|
-
return W(), ee(He(i.component), ge(e.$attrs, {
|
|
1061
|
-
disabled: r.disabled,
|
|
1062
|
-
class: i.classes,
|
|
1063
|
-
role: "button"
|
|
1064
|
-
}), {
|
|
1065
|
-
default: B(() => [
|
|
1066
|
-
P(e.$slots, "default", {}, () => [
|
|
1067
|
-
be(ye(r.label), 1)
|
|
1068
|
-
])
|
|
1069
|
-
]),
|
|
1070
|
-
_: 3
|
|
1071
|
-
}, 16, ["disabled", "class"]);
|
|
1072
|
-
}
|
|
1073
|
-
const Zr = /* @__PURE__ */ fe(Kr, [["render", Qr]]), _r = {
|
|
1074
|
-
props: {
|
|
1075
|
-
componentPrefix: String,
|
|
1076
|
-
size: String,
|
|
1077
|
-
sizePrefix: String
|
|
1078
|
-
},
|
|
1079
|
-
computed: {
|
|
1080
|
-
sizeableClassPrefix() {
|
|
1081
|
-
return this.sizePrefix || this.componentPrefix;
|
|
1082
|
-
},
|
|
1083
|
-
hasSizeablePrefix() {
|
|
1084
|
-
return this.size && !!this.size.match(new RegExp(`^${this.sizeableClassPrefix}`));
|
|
1085
|
-
},
|
|
1086
|
-
sizeableClass() {
|
|
1087
|
-
return this.size ? !this.sizeableClassPrefix || this.hasSizeablePrefix ? this.size : `${this.sizeableClassPrefix}-${this.size}` : "";
|
|
1088
|
-
}
|
|
1089
|
-
}
|
|
1090
|
-
}, en = (e, t) => {
|
|
1091
|
-
const r = e.__vccOpts || e;
|
|
1092
|
-
for (const [n, o] of t)
|
|
1093
|
-
r[n] = o;
|
|
1094
|
-
return r;
|
|
1095
|
-
}, tn = {
|
|
1096
|
-
name: "BtnGroup",
|
|
1097
|
-
mixins: [_r],
|
|
1098
|
-
props: {
|
|
1099
|
-
sizePrefix: {
|
|
1100
|
-
type: String,
|
|
1101
|
-
default() {
|
|
1102
|
-
return "btn-group";
|
|
1103
|
-
}
|
|
1104
|
-
},
|
|
1105
|
-
toggle: Boolean,
|
|
1106
|
-
vertical: Boolean
|
|
1107
|
-
},
|
|
1108
|
-
computed: {
|
|
1109
|
-
classes() {
|
|
1110
|
-
return {
|
|
1111
|
-
"btn-group": !this.vertical,
|
|
1112
|
-
"btn-group-toggle": this.toggle,
|
|
1113
|
-
"btn-group-vertical": this.vertical,
|
|
1114
|
-
[this.sizeableClass]: !!this.size
|
|
1115
|
-
};
|
|
1116
|
-
}
|
|
1117
|
-
}
|
|
1118
|
-
}, rn = ["data-toggle"];
|
|
1119
|
-
function nn(e, t, r, n, o, i) {
|
|
1120
|
-
return W(), Ue("div", {
|
|
1121
|
-
class: F(i.classes),
|
|
1122
|
-
"data-toggle": r.toggle ? "buttons" : !1,
|
|
1123
|
-
role: "group"
|
|
1124
|
-
}, [P(e.$slots, "default")], 10, rn);
|
|
1125
|
-
}
|
|
1126
|
-
const on = /* @__PURE__ */ en(tn, [["render", nn]]);
|
|
1127
|
-
function Ve(e, t) {
|
|
1128
|
-
e.props.class = `${e.props.class || ""} ${t}`.trim();
|
|
1129
|
-
}
|
|
1130
|
-
function St(e) {
|
|
1131
|
-
for (const t of e) {
|
|
1132
|
-
t.type === Nt && St(t.children), t.props = Object.assign({ class: void 0 }, t.props), t.attrs = Object.assign({}, t.attrs), t.attrs.on || (t.attrs.on = {});
|
|
1133
|
-
const r = t.props.class && t.props.class.match(/dropdown-item/), n = t.props.class && t.props.class.match(/dropdown-divider/);
|
|
1134
|
-
typeof t.type == "string" && t.type.match(/^h\d$/) ? Ve(t, "dropdown-header") : t.type === "hr" && !n ? (t.type = "div", Ve(t, "dropdown-divider")) : !r && !n && Ve(t, "dropdown-item");
|
|
1135
|
-
}
|
|
1136
|
-
return e;
|
|
1137
|
-
}
|
|
1138
|
-
const an = (e, t) => Tt("div", {}, St(t.slots.default())), sn = an, ln = {
|
|
1139
|
-
name: "DropdownMenu",
|
|
1140
|
-
components: {
|
|
1141
|
-
DropdownMenuItems: sn
|
|
1142
|
-
},
|
|
1143
|
-
props: {
|
|
1144
|
-
align: {
|
|
1145
|
-
type: String,
|
|
1146
|
-
default: "left",
|
|
1147
|
-
validate(e) {
|
|
1148
|
-
return ["left", "right"].indexOf(e.toLowerCase()) !== -1;
|
|
1149
|
-
}
|
|
1150
|
-
},
|
|
1151
|
-
show: Boolean
|
|
1152
|
-
}
|
|
1153
|
-
}, pn = ["aria-labelledby"];
|
|
1154
|
-
function fn(e, t, r, n, o, i) {
|
|
1155
|
-
const a = te("dropdown-menu-items");
|
|
1156
|
-
return W(), Ue("div", {
|
|
1157
|
-
class: F(["dropdown-menu", {
|
|
1158
|
-
"dropdown-menu-left": r.align === "left",
|
|
1159
|
-
"dropdown-menu-right": r.align === "right",
|
|
1160
|
-
show: r.show
|
|
1161
|
-
}]),
|
|
1162
|
-
"aria-labelledby": e.$attrs.id
|
|
1163
|
-
}, [
|
|
1164
|
-
we(a, null, {
|
|
1165
|
-
default: B(() => [
|
|
1166
|
-
P(e.$slots, "default", {
|
|
1167
|
-
onClick: t[0] || (t[0] = (...l) => e.onItemClick && e.onItemClick(...l))
|
|
1168
|
-
})
|
|
1169
|
-
]),
|
|
1170
|
-
_: 3
|
|
1171
|
-
})
|
|
1172
|
-
], 10, pn);
|
|
1173
|
-
}
|
|
1174
|
-
const un = /* @__PURE__ */ fe(ln, [["render", fn]]), cn = {
|
|
1175
|
-
props: {
|
|
1176
|
-
expanded: {
|
|
1177
|
-
type: Boolean,
|
|
1178
|
-
default: !1
|
|
1179
|
-
},
|
|
1180
|
-
id: String,
|
|
1181
|
-
href: String,
|
|
1182
|
-
to: [String, Object]
|
|
1183
|
-
},
|
|
1184
|
-
computed: {
|
|
1185
|
-
is() {
|
|
1186
|
-
return this.to ? "router-link" : this.href ? "a" : "button";
|
|
1187
|
-
}
|
|
1188
|
-
}
|
|
1189
|
-
};
|
|
1190
|
-
function dn(e, t, r, n, o, i) {
|
|
1191
|
-
return W(), ee(He(i.is), ge({ id: r.id }, r.to ? { to: r.to } : { href: r.href }, {
|
|
1192
|
-
"aria-haspopup": "true",
|
|
1193
|
-
"aria-expanded": r.expanded,
|
|
1194
|
-
type: i.is === "button" ? "button" : void 0
|
|
1195
|
-
}), {
|
|
1196
|
-
default: B(() => [
|
|
1197
|
-
P(e.$slots, "default")
|
|
1198
|
-
]),
|
|
1199
|
-
_: 3
|
|
1200
|
-
}, 16, ["id", "aria-expanded", "type"]);
|
|
1201
|
-
}
|
|
1202
|
-
const vn = /* @__PURE__ */ fe(cn, [["render", dn]]), kt = {
|
|
1203
|
-
components: {
|
|
1204
|
-
BtnDropdownAction: vn,
|
|
1205
|
-
BtnGroup: on,
|
|
1206
|
-
DropdownMenu: un
|
|
1207
|
-
},
|
|
1208
|
-
extends: Zr,
|
|
1209
|
-
emits: ["click-toggle", "show", "hide", "toggle"],
|
|
1210
|
-
props: {
|
|
1211
|
-
align: {
|
|
1212
|
-
type: String,
|
|
1213
|
-
default: "left",
|
|
1214
|
-
validate(e) {
|
|
1215
|
-
return ["left", "right"].indexOf(e.toLowerCase()) !== -1;
|
|
1216
|
-
}
|
|
1217
|
-
},
|
|
1218
|
-
animated: {
|
|
1219
|
-
type: Boolean,
|
|
1220
|
-
default: !0
|
|
1221
|
-
},
|
|
1222
|
-
buttonClass: [Object, String],
|
|
1223
|
-
caret: {
|
|
1224
|
-
type: Boolean,
|
|
1225
|
-
default: !0
|
|
1226
|
-
},
|
|
1227
|
-
dropup: {
|
|
1228
|
-
type: Boolean,
|
|
1229
|
-
default: !1
|
|
1230
|
-
},
|
|
1231
|
-
dropright: {
|
|
1232
|
-
type: Boolean,
|
|
1233
|
-
default: !1
|
|
1234
|
-
},
|
|
1235
|
-
dropleft: {
|
|
1236
|
-
type: Boolean,
|
|
1237
|
-
default: !1
|
|
1238
|
-
},
|
|
1239
|
-
height: String,
|
|
1240
|
-
href: String,
|
|
1241
|
-
nav: Boolean,
|
|
1242
|
-
label: String,
|
|
1243
|
-
offset: {
|
|
1244
|
-
type: Number,
|
|
1245
|
-
default: 5
|
|
1246
|
-
},
|
|
1247
|
-
rotate: {
|
|
1248
|
-
type: Boolean,
|
|
1249
|
-
default: !1
|
|
1250
|
-
},
|
|
1251
|
-
split: {
|
|
1252
|
-
type: Boolean,
|
|
1253
|
-
default: !1
|
|
1254
|
-
},
|
|
1255
|
-
to: [String, Object],
|
|
1256
|
-
type: {
|
|
1257
|
-
type: String,
|
|
1258
|
-
default: "button"
|
|
1259
|
-
},
|
|
1260
|
-
width: String
|
|
1261
|
-
},
|
|
1262
|
-
data() {
|
|
1263
|
-
return {
|
|
1264
|
-
popper: null,
|
|
1265
|
-
triggerAnimation: !1,
|
|
1266
|
-
expanded: !1
|
|
1267
|
-
};
|
|
1268
|
-
},
|
|
1269
|
-
computed: {
|
|
1270
|
-
scope() {
|
|
1271
|
-
return {
|
|
1272
|
-
placement: this.placement,
|
|
1273
|
-
variantClassPrefix: this.variantClassPrefix,
|
|
1274
|
-
sizeableClassPrefix: this.sizeableClassPrefix,
|
|
1275
|
-
classes: this.classes,
|
|
1276
|
-
actionClasses: this.actionClasses,
|
|
1277
|
-
toggleStyle: this.toggleStyle,
|
|
1278
|
-
toggleClasses: this.toggleClasses,
|
|
1279
|
-
focus: this.focus,
|
|
1280
|
-
queryFocusable: this.queryFocusable,
|
|
1281
|
-
isFocusable: this.isFocusable,
|
|
1282
|
-
toggle: this.toggle,
|
|
1283
|
-
show: this.show,
|
|
1284
|
-
hide: this.hide,
|
|
1285
|
-
onBlur: this.onBlur,
|
|
1286
|
-
onClickItem: this.onClickItem,
|
|
1287
|
-
onClickToggle: this.onClickToggle,
|
|
1288
|
-
expanded: this.expanded
|
|
1289
|
-
};
|
|
1290
|
-
},
|
|
1291
|
-
placement() {
|
|
1292
|
-
return this.dropup ? "top" : this.dropleft ? "left" : this.dropright ? "right" : "bottom";
|
|
1293
|
-
},
|
|
1294
|
-
variantClassPrefix() {
|
|
1295
|
-
return "btn" + (this.outline ? "-outline" : "");
|
|
1296
|
-
},
|
|
1297
|
-
sizeableClassPrefix() {
|
|
1298
|
-
return "btn";
|
|
1299
|
-
},
|
|
1300
|
-
classes() {
|
|
1301
|
-
return {
|
|
1302
|
-
dropdown: this.dropup && this.dropright && this.dropleft,
|
|
1303
|
-
dropup: this.dropup,
|
|
1304
|
-
dropright: this.dropright,
|
|
1305
|
-
dropleft: this.dropleft,
|
|
1306
|
-
"icon-only": !this.nav && !this.split && !!this.$slots.icon && !this.$slots.label,
|
|
1307
|
-
"hide-caret": !this.caret,
|
|
1308
|
-
expanded: this.expanded,
|
|
1309
|
-
"rotate-90": !this.nav && this.split && this.rotate && this.expanded
|
|
1310
|
-
};
|
|
1311
|
-
},
|
|
1312
|
-
actionClasses() {
|
|
1313
|
-
return Object.assign({
|
|
1314
|
-
btn: !this.nav,
|
|
1315
|
-
[this.variantClass]: !this.nav && !!this.variant,
|
|
1316
|
-
[this.sizeableClass]: !!this.size
|
|
1317
|
-
}, typeof this.buttonClass == "object" ? this.buttonClass : {
|
|
1318
|
-
[this.buttonClass]: !!this.buttonClass
|
|
1319
|
-
});
|
|
1320
|
-
},
|
|
1321
|
-
toggleStyle() {
|
|
1322
|
-
return {
|
|
1323
|
-
width: this.width,
|
|
1324
|
-
height: this.height
|
|
1325
|
-
};
|
|
1326
|
-
},
|
|
1327
|
-
toggleClasses() {
|
|
1328
|
-
return Object.assign({
|
|
1329
|
-
active: this.active,
|
|
1330
|
-
btn: !this.nav,
|
|
1331
|
-
"btn-block": !!this.block,
|
|
1332
|
-
"nav-link": !!this.nav,
|
|
1333
|
-
"rotate-90": !this.split && this.rotate && this.expanded,
|
|
1334
|
-
"dropdown-toggle": !0,
|
|
1335
|
-
"dropdown-toggle-split": !this.nav && this.split,
|
|
1336
|
-
[this.variantClass]: !this.nav && !!this.variant,
|
|
1337
|
-
[this.sizeableClass]: !!this.size
|
|
1338
|
-
}, typeof this.buttonClass == "object" ? this.buttonClass : {
|
|
1339
|
-
[this.buttonClass]: !!this.buttonClass
|
|
1340
|
-
});
|
|
1341
|
-
}
|
|
1342
|
-
},
|
|
1343
|
-
beforeUnmount() {
|
|
1344
|
-
this.popper && this.popper.destroy();
|
|
1345
|
-
},
|
|
1346
|
-
methods: {
|
|
1347
|
-
focus() {
|
|
1348
|
-
this.$el.querySelector(".dropdown-toggle").focus();
|
|
1349
|
-
},
|
|
1350
|
-
queryFocusable() {
|
|
1351
|
-
return this.$el.querySelector(".dropdown-menu").querySelectorAll('label, input, select, textarea, [tabindex]:not([tabindex="-1"])');
|
|
1352
|
-
},
|
|
1353
|
-
isFocusable(e) {
|
|
1354
|
-
const t = this.queryFocusable();
|
|
1355
|
-
for (let r in t)
|
|
1356
|
-
if (e === t[r])
|
|
1357
|
-
return !0;
|
|
1358
|
-
return !1;
|
|
1359
|
-
},
|
|
1360
|
-
toggle(e) {
|
|
1361
|
-
this.expanded ? this.hide() : this.show();
|
|
1362
|
-
},
|
|
1363
|
-
show() {
|
|
1364
|
-
this.expanded = !0;
|
|
1365
|
-
const e = this.$refs.split && this.$refs.split.$el || this.$el;
|
|
1366
|
-
!this.nav && !this.popper ? this.popper = Yr(e, this.$refs.menu.$el, {
|
|
1367
|
-
placement: `${this.placement}-${this.align === "left" ? "start" : "end"}`,
|
|
1368
|
-
onFirstUpdate: () => {
|
|
1369
|
-
this.triggerAnimation = this.animated;
|
|
1370
|
-
},
|
|
1371
|
-
modifiers: [{
|
|
1372
|
-
name: "offset",
|
|
1373
|
-
options: {
|
|
1374
|
-
offset: [0, this.nav ? 1 : this.offset]
|
|
1375
|
-
}
|
|
1376
|
-
}]
|
|
1377
|
-
}) : this.popper && this.popper.update();
|
|
1378
|
-
},
|
|
1379
|
-
hide() {
|
|
1380
|
-
this.expanded = !1;
|
|
1381
|
-
},
|
|
1382
|
-
onBlur(e) {
|
|
1383
|
-
this.$el.contains(e.relatedTarget) || this.hide();
|
|
1384
|
-
},
|
|
1385
|
-
onClickItem(e) {
|
|
1386
|
-
this.isFocusable(e.target) || this.hide();
|
|
1387
|
-
},
|
|
1388
|
-
onClickToggle(e) {
|
|
1389
|
-
this.$emit("click-toggle", e), e.defaultPrevented || this.toggle();
|
|
1390
|
-
}
|
|
1391
|
-
},
|
|
1392
|
-
watch: {
|
|
1393
|
-
expanded(e) {
|
|
1394
|
-
this.$nextTick(() => {
|
|
1395
|
-
this.$emit(e ? "show" : "hide"), this.$emit("toggle", e);
|
|
1396
|
-
});
|
|
1397
|
-
}
|
|
1398
|
-
}
|
|
1399
|
-
}, hn = {
|
|
1400
|
-
mixins: [
|
|
1401
|
-
kt
|
|
1402
|
-
],
|
|
1403
|
-
emits: [
|
|
1404
|
-
"click"
|
|
1405
|
-
]
|
|
1406
|
-
}, mn = ["id", "aria-expanded"];
|
|
1407
|
-
function gn(e, t, r, n, o, i) {
|
|
1408
|
-
const a = te("btn-dropdown-action"), l = te("dropdown-menu"), s = te("btn-group");
|
|
1409
|
-
return W(), ee(s, {
|
|
1410
|
-
class: F([e.classes, "btn-dropdown-split"])
|
|
1411
|
-
}, {
|
|
1412
|
-
default: B(() => [
|
|
1413
|
-
e.dropleft ? de("", !0) : P(e.$slots, "button", ie(ge({ key: 0 }, e.scope)), () => [
|
|
1414
|
-
e.dropleft ? de("", !0) : (W(), ee(a, {
|
|
1415
|
-
key: 0,
|
|
1416
|
-
id: e.$attrs.id,
|
|
1417
|
-
ref: "button",
|
|
1418
|
-
expanded: e.expanded,
|
|
1419
|
-
href: e.href,
|
|
1420
|
-
to: e.to,
|
|
1421
|
-
class: F(e.actionClasses),
|
|
1422
|
-
onClick: t[0] || (t[0] = (f) => e.$emit("click", f))
|
|
1423
|
-
}, {
|
|
1424
|
-
default: B(() => [
|
|
1425
|
-
P(e.$slots, "icon"),
|
|
1426
|
-
P(e.$slots, "label", {}, () => [
|
|
1427
|
-
be(ye(e.label), 1)
|
|
1428
|
-
])
|
|
1429
|
-
]),
|
|
1430
|
-
_: 3
|
|
1431
|
-
}, 8, ["id", "expanded", "href", "to", "class"]))
|
|
1432
|
-
]),
|
|
1433
|
-
we(s, { ref: "split" }, {
|
|
1434
|
-
default: B(() => [
|
|
1435
|
-
P(e.$slots, "split", ie(Re(e.scope)), () => [
|
|
1436
|
-
e.split ? (W(), Ue("button", {
|
|
1437
|
-
key: 0,
|
|
1438
|
-
id: e.$attrs.id,
|
|
1439
|
-
type: "button",
|
|
1440
|
-
"aria-haspopup": "true",
|
|
1441
|
-
"aria-expanded": e.expanded,
|
|
1442
|
-
class: F(e.toggleClasses),
|
|
1443
|
-
onBlur: t[1] || (t[1] = (...f) => e.onBlur && e.onBlur(...f)),
|
|
1444
|
-
onClick: t[2] || (t[2] = (...f) => e.onClickToggle && e.onClickToggle(...f))
|
|
1445
|
-
}, null, 42, mn)) : de("", !0)
|
|
1446
|
-
]),
|
|
1447
|
-
we(l, {
|
|
1448
|
-
id: e.$attrs.id,
|
|
1449
|
-
ref: "menu",
|
|
1450
|
-
align: e.align,
|
|
1451
|
-
show: e.expanded,
|
|
1452
|
-
class: F({ animated: e.triggerAnimation }),
|
|
1453
|
-
onClick: e.onClickItem,
|
|
1454
|
-
onBlur: e.onBlur
|
|
1455
|
-
}, {
|
|
1456
|
-
default: B(() => [
|
|
1457
|
-
P(e.$slots, "default")
|
|
1458
|
-
]),
|
|
1459
|
-
_: 3
|
|
1460
|
-
}, 8, ["id", "align", "show", "class", "onClick", "onBlur"])
|
|
1461
|
-
]),
|
|
1462
|
-
_: 3
|
|
1463
|
-
}, 512),
|
|
1464
|
-
e.dropleft ? P(e.$slots, "button", ie(ge({ key: 1 }, e.scope)), () => [
|
|
1465
|
-
e.dropleft ? (W(), ee(a, {
|
|
1466
|
-
key: 0,
|
|
1467
|
-
id: e.$attrs.id,
|
|
1468
|
-
ref: "button",
|
|
1469
|
-
expanded: e.expanded,
|
|
1470
|
-
href: e.href,
|
|
1471
|
-
to: e.to,
|
|
1472
|
-
class: F(e.actionClasses),
|
|
1473
|
-
onClick: t[3] || (t[3] = (f) => e.$emit("click", f))
|
|
1474
|
-
}, {
|
|
1475
|
-
default: B(() => [
|
|
1476
|
-
P(e.$slots, "icon"),
|
|
1477
|
-
P(e.$slots, "label", {}, () => [
|
|
1478
|
-
be(ye(e.label), 1)
|
|
1479
|
-
])
|
|
1480
|
-
]),
|
|
1481
|
-
_: 3
|
|
1482
|
-
}, 8, ["id", "expanded", "href", "to", "class"])) : de("", !0)
|
|
1483
|
-
]) : de("", !0)
|
|
1484
|
-
]),
|
|
1485
|
-
_: 3
|
|
1486
|
-
}, 8, ["class"]);
|
|
1487
|
-
}
|
|
1488
|
-
const bn = /* @__PURE__ */ fe(hn, [["render", gn]]), yn = {
|
|
1489
|
-
mixins: [
|
|
1490
|
-
kt
|
|
1491
|
-
]
|
|
1492
|
-
};
|
|
1493
|
-
function wn(e, t, r, n, o, i) {
|
|
1494
|
-
const a = te("btn-dropdown-action"), l = te("dropdown-menu"), s = te("btn-group");
|
|
1495
|
-
return W(), ee(s, {
|
|
1496
|
-
class: F(e.classes)
|
|
1497
|
-
}, {
|
|
1498
|
-
default: B(() => [
|
|
1499
|
-
P(e.$slots, "button", ie(Re(e.scope)), () => [
|
|
1500
|
-
we(a, {
|
|
1501
|
-
id: e.$attrs.id,
|
|
1502
|
-
ref: "button",
|
|
1503
|
-
expanded: e.expanded,
|
|
1504
|
-
href: e.href,
|
|
1505
|
-
to: e.to,
|
|
1506
|
-
style: It(e.toggleStyle),
|
|
1507
|
-
class: F(e.toggleClasses),
|
|
1508
|
-
onBlur: e.onBlur,
|
|
1509
|
-
onClick: e.onClickToggle
|
|
1510
|
-
}, {
|
|
1511
|
-
default: B(() => [
|
|
1512
|
-
P(e.$slots, "icon"),
|
|
1513
|
-
P(e.$slots, "label", {}, () => [
|
|
1514
|
-
be(ye(e.label), 1)
|
|
1515
|
-
])
|
|
1516
|
-
]),
|
|
1517
|
-
_: 3
|
|
1518
|
-
}, 8, ["id", "expanded", "href", "to", "style", "class", "onBlur", "onClick"])
|
|
1519
|
-
]),
|
|
1520
|
-
we(l, {
|
|
1521
|
-
id: e.$attrs.id,
|
|
1522
|
-
ref: "menu",
|
|
1523
|
-
align: e.align,
|
|
1524
|
-
show: e.expanded,
|
|
1525
|
-
class: F({ animated: e.triggerAnimation }),
|
|
1526
|
-
onBlur: e.onBlur,
|
|
1527
|
-
onClick: e.onClickItem
|
|
1528
|
-
}, {
|
|
1529
|
-
default: B(() => [
|
|
1530
|
-
P(e.$slots, "default")
|
|
1531
|
-
]),
|
|
1532
|
-
_: 3
|
|
1533
|
-
}, 8, ["id", "align", "show", "class", "onBlur", "onClick"])
|
|
1534
|
-
]),
|
|
1535
|
-
_: 3
|
|
1536
|
-
}, 8, ["class"]);
|
|
1537
|
-
}
|
|
1538
|
-
const On = /* @__PURE__ */ fe(yn, [["render", wn]]);
|
|
1539
|
-
const xn = {
|
|
1540
|
-
name: "BtnDropdown",
|
|
1541
|
-
components: {
|
|
1542
|
-
BtnDropdownSplit: bn,
|
|
1543
|
-
BtnDropdownSingle: On
|
|
1544
|
-
},
|
|
1545
|
-
inheritAttrs: !1,
|
|
1546
|
-
emits: [
|
|
1547
|
-
"click",
|
|
1548
|
-
"click-toggle",
|
|
1549
|
-
"dropdown",
|
|
1550
|
-
"show",
|
|
1551
|
-
"hide",
|
|
1552
|
-
"toggle"
|
|
1553
|
-
]
|
|
1554
|
-
};
|
|
1555
|
-
function $n(e, t, r, n, o, i) {
|
|
1556
|
-
return W(), ee(He(e.$attrs.split === void 0 || !!e.$attrs.nav ? "btn-dropdown-single" : "btn-dropdown-split"), ge({ class: "btn-dropdown" }, e.$attrs, {
|
|
1557
|
-
onClick: t[0] || (t[0] = (...a) => e.$emit("click", ...a)),
|
|
1558
|
-
onClickToggle: t[1] || (t[1] = (...a) => e.$emit("click-toggle", ...a)),
|
|
1559
|
-
onDropdown: t[2] || (t[2] = (...a) => e.$emit("dropdown", ...a)),
|
|
1560
|
-
onShow: t[3] || (t[3] = (...a) => e.$emit("show", ...a)),
|
|
1561
|
-
onHide: t[4] || (t[4] = (...a) => e.$emit("hide", ...a)),
|
|
1562
|
-
onToggle: t[5] || (t[5] = (...a) => e.$emit("toggle", ...a))
|
|
1563
|
-
}), Mt({
|
|
1564
|
-
icon: B(() => [
|
|
1565
|
-
P(e.$slots, "icon")
|
|
1566
|
-
]),
|
|
1567
|
-
button: B((a) => [
|
|
1568
|
-
P(e.$slots, "button", ie(Re(a)))
|
|
1569
|
-
]),
|
|
1570
|
-
split: B((a) => [
|
|
1571
|
-
P(e.$slots, "split", ie(Re(a)))
|
|
1572
|
-
]),
|
|
1573
|
-
default: B(() => [
|
|
1574
|
-
P(e.$slots, "default")
|
|
1575
|
-
]),
|
|
1576
|
-
_: 2
|
|
1577
|
-
}, [
|
|
1578
|
-
e.$attrs.label || e.$slots.label ? {
|
|
1579
|
-
name: "label",
|
|
1580
|
-
fn: B(() => [
|
|
1581
|
-
P(e.$slots, "label", {}, () => [
|
|
1582
|
-
be(ye(e.$attrs.label), 1)
|
|
1583
|
-
])
|
|
1584
|
-
]),
|
|
1585
|
-
key: "0"
|
|
1586
|
-
} : void 0
|
|
1587
|
-
]), 1040);
|
|
1588
|
-
}
|
|
1589
|
-
const Pn = /* @__PURE__ */ fe(xn, [["render", $n]]);
|
|
1590
|
-
export {
|
|
1591
|
-
Pn as BtnDropdown
|
|
1592
|
-
};
|