@vue-interface/btn-dropdown 1.0.4 → 2.0.0-beta.0
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.es.js +1131 -1661
- package/dist/btn-dropdown.umd.js +5 -1
- package/package.json +10 -8
- package/src/BtnDropdownSingle.vue +1 -1
- package/src/BtnDropdownSplit.vue +3 -3
- package/src/DropdownHandler.js +26 -0
package/dist/btn-dropdown.es.js
CHANGED
|
@@ -1,84 +1,49 @@
|
|
|
1
|
-
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var reference = "reference";
|
|
13
|
-
var variationPlacements = /* @__PURE__ */ basePlacements.reduce(function(acc, placement) {
|
|
14
|
-
return acc.concat([placement + "-" + start, placement + "-" + end]);
|
|
15
|
-
}, []);
|
|
16
|
-
var placements = /* @__PURE__ */ [].concat(basePlacements, [auto]).reduce(function(acc, placement) {
|
|
17
|
-
return acc.concat([placement, placement + "-" + start, placement + "-" + end]);
|
|
18
|
-
}, []);
|
|
19
|
-
var beforeRead = "beforeRead";
|
|
20
|
-
var read = "read";
|
|
21
|
-
var afterRead = "afterRead";
|
|
22
|
-
var beforeMain = "beforeMain";
|
|
23
|
-
var main = "main";
|
|
24
|
-
var afterMain = "afterMain";
|
|
25
|
-
var beforeWrite = "beforeWrite";
|
|
26
|
-
var write = "write";
|
|
27
|
-
var afterWrite = "afterWrite";
|
|
28
|
-
var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];
|
|
29
|
-
function getNodeName(element) {
|
|
30
|
-
return element ? (element.nodeName || "").toLowerCase() : null;
|
|
31
|
-
}
|
|
32
|
-
function getWindow(node) {
|
|
33
|
-
if (node == null) {
|
|
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 Xe, normalizeClass as F, h as Nt, resolveComponent as te, createVNode as we, normalizeProps as ie, createCommentVNode as de, guardReactiveProps as Re, normalizeStyle as Mt, createSlots as Lt } from "vue";
|
|
2
|
+
var R = "top", I = "bottom", N = "right", j = "left", ze = "auto", $e = [R, I, N, j], ae = "start", xe = "end", Vt = "clippingParents", wt = "viewport", ve = "popper", qt = "reference", st = /* @__PURE__ */ $e.reduce(function(e, t) {
|
|
3
|
+
return e.concat([t + "-" + ae, t + "-" + xe]);
|
|
4
|
+
}, []), xt = /* @__PURE__ */ [].concat($e, [ze]).reduce(function(e, t) {
|
|
5
|
+
return e.concat([t, t + "-" + ae, t + "-" + xe]);
|
|
6
|
+
}, []), Ft = "beforeRead", Wt = "read", Ht = "afterRead", Xt = "beforeMain", Yt = "main", Ut = "afterMain", Gt = "beforeWrite", Jt = "write", Kt = "afterWrite", qe = [Ft, Wt, Ht, Xt, Yt, Ut, Gt, Jt, Kt];
|
|
7
|
+
function H(e) {
|
|
8
|
+
return e ? (e.nodeName || "").toLowerCase() : null;
|
|
9
|
+
}
|
|
10
|
+
function M(e) {
|
|
11
|
+
if (e == null)
|
|
34
12
|
return window;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
function
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
if (!isHTMLElement(element) || !getNodeName(element)) {
|
|
64
|
-
return;
|
|
65
|
-
}
|
|
66
|
-
Object.assign(element.style, style);
|
|
67
|
-
Object.keys(attributes).forEach(function(name2) {
|
|
68
|
-
var value = attributes[name2];
|
|
69
|
-
if (value === false) {
|
|
70
|
-
element.removeAttribute(name2);
|
|
71
|
-
} else {
|
|
72
|
-
element.setAttribute(name2, value === true ? "" : value);
|
|
73
|
-
}
|
|
74
|
-
});
|
|
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 Ye(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 Qt(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
|
+
}));
|
|
75
41
|
});
|
|
76
42
|
}
|
|
77
|
-
function
|
|
78
|
-
var
|
|
79
|
-
var initialStyles = {
|
|
43
|
+
function Zt(e) {
|
|
44
|
+
var t = e.state, r = {
|
|
80
45
|
popper: {
|
|
81
|
-
position:
|
|
46
|
+
position: t.options.strategy,
|
|
82
47
|
left: "0",
|
|
83
48
|
top: "0",
|
|
84
49
|
margin: "0"
|
|
@@ -88,167 +53,124 @@ function effect$2(_ref2) {
|
|
|
88
53
|
},
|
|
89
54
|
reference: {}
|
|
90
55
|
};
|
|
91
|
-
Object.assign(
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
}
|
|
96
|
-
return function() {
|
|
97
|
-
Object.keys(state.elements).forEach(function(name) {
|
|
98
|
-
var element = state.elements[name];
|
|
99
|
-
var attributes = state.attributes[name] || {};
|
|
100
|
-
var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]);
|
|
101
|
-
var style = styleProperties.reduce(function(style2, property) {
|
|
102
|
-
style2[property] = "";
|
|
103
|
-
return style2;
|
|
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;
|
|
104
60
|
}, {});
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
}
|
|
108
|
-
Object.assign(element.style, style);
|
|
109
|
-
Object.keys(attributes).forEach(function(attribute) {
|
|
110
|
-
element.removeAttribute(attribute);
|
|
111
|
-
});
|
|
61
|
+
!T(o) || !H(o) || (Object.assign(o.style, l), Object.keys(i).forEach(function(s) {
|
|
62
|
+
o.removeAttribute(s);
|
|
63
|
+
}));
|
|
112
64
|
});
|
|
113
65
|
};
|
|
114
66
|
}
|
|
115
|
-
|
|
67
|
+
const _t = {
|
|
116
68
|
name: "applyStyles",
|
|
117
|
-
enabled:
|
|
69
|
+
enabled: !0,
|
|
118
70
|
phase: "write",
|
|
119
|
-
fn:
|
|
120
|
-
effect:
|
|
71
|
+
fn: Qt,
|
|
72
|
+
effect: Zt,
|
|
121
73
|
requires: ["computeStyles"]
|
|
122
74
|
};
|
|
123
|
-
function
|
|
124
|
-
return
|
|
125
|
-
}
|
|
126
|
-
var max = Math.
|
|
127
|
-
|
|
128
|
-
var
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
}
|
|
142
|
-
if (offsetHeight > 0) {
|
|
143
|
-
scaleY = round(rect.height) / offsetHeight || 1;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
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 Ot() {
|
|
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 = !Ot() && 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;
|
|
146
93
|
return {
|
|
147
|
-
width:
|
|
148
|
-
height:
|
|
149
|
-
top:
|
|
150
|
-
right:
|
|
151
|
-
bottom:
|
|
152
|
-
left:
|
|
153
|
-
x:
|
|
154
|
-
y:
|
|
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
|
|
155
102
|
};
|
|
156
103
|
}
|
|
157
|
-
function
|
|
158
|
-
var
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
width
|
|
163
|
-
|
|
164
|
-
if (Math.abs(clientRect.height - height) <= 1) {
|
|
165
|
-
height = clientRect.height;
|
|
166
|
-
}
|
|
167
|
-
return {
|
|
168
|
-
x: element.offsetLeft,
|
|
169
|
-
y: element.offsetTop,
|
|
170
|
-
width,
|
|
171
|
-
height
|
|
104
|
+
function Ue(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
|
|
172
111
|
};
|
|
173
112
|
}
|
|
174
|
-
function
|
|
175
|
-
var
|
|
176
|
-
if (
|
|
177
|
-
return
|
|
178
|
-
|
|
179
|
-
var
|
|
113
|
+
function $t(e, t) {
|
|
114
|
+
var r = t.getRootNode && t.getRootNode();
|
|
115
|
+
if (e.contains(t))
|
|
116
|
+
return !0;
|
|
117
|
+
if (r && Ye(r)) {
|
|
118
|
+
var n = t;
|
|
180
119
|
do {
|
|
181
|
-
if (
|
|
182
|
-
return
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
} while (next);
|
|
120
|
+
if (n && e.isSameNode(n))
|
|
121
|
+
return !0;
|
|
122
|
+
n = n.parentNode || n.host;
|
|
123
|
+
} while (n);
|
|
186
124
|
}
|
|
187
|
-
return
|
|
125
|
+
return !1;
|
|
188
126
|
}
|
|
189
|
-
function
|
|
190
|
-
return
|
|
127
|
+
function q(e) {
|
|
128
|
+
return M(e).getComputedStyle(e);
|
|
191
129
|
}
|
|
192
|
-
function
|
|
193
|
-
return ["table", "td", "th"].indexOf(
|
|
130
|
+
function er(e) {
|
|
131
|
+
return ["table", "td", "th"].indexOf(H(e)) >= 0;
|
|
194
132
|
}
|
|
195
|
-
function
|
|
196
|
-
return ((
|
|
133
|
+
function U(e) {
|
|
134
|
+
return ((ne(e) ? e.ownerDocument : e.document) || window.document).documentElement;
|
|
197
135
|
}
|
|
198
|
-
function
|
|
199
|
-
|
|
200
|
-
return element;
|
|
201
|
-
}
|
|
202
|
-
return element.assignedSlot || element.parentNode || (isShadowRoot(element) ? element.host : null) || getDocumentElement(element);
|
|
136
|
+
function Te(e) {
|
|
137
|
+
return H(e) === "html" ? e : e.assignedSlot || e.parentNode || (Ye(e) ? e.host : null) || U(e);
|
|
203
138
|
}
|
|
204
|
-
function
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
var isIE = navigator.userAgent.indexOf("Trident") !== -1;
|
|
213
|
-
if (isIE && isHTMLElement(element)) {
|
|
214
|
-
var elementCss = getComputedStyle(element);
|
|
215
|
-
if (elementCss.position === "fixed") {
|
|
139
|
+
function lt(e) {
|
|
140
|
+
return !T(e) || q(e).position === "fixed" ? null : e.offsetParent;
|
|
141
|
+
}
|
|
142
|
+
function tr(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")
|
|
216
147
|
return null;
|
|
217
|
-
}
|
|
218
148
|
}
|
|
219
|
-
var
|
|
220
|
-
|
|
221
|
-
var
|
|
222
|
-
if (
|
|
223
|
-
return
|
|
224
|
-
|
|
225
|
-
currentNode = currentNode.parentNode;
|
|
226
|
-
}
|
|
149
|
+
var o = Te(e);
|
|
150
|
+
for (Ye(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;
|
|
227
155
|
}
|
|
228
156
|
return null;
|
|
229
157
|
}
|
|
230
|
-
function
|
|
231
|
-
var
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
offsetParent = getTrueOffsetParent(offsetParent);
|
|
235
|
-
}
|
|
236
|
-
if (offsetParent && (getNodeName(offsetParent) === "html" || getNodeName(offsetParent) === "body" && getComputedStyle(offsetParent).position === "static")) {
|
|
237
|
-
return window2;
|
|
238
|
-
}
|
|
239
|
-
return offsetParent || getContainingBlock(element) || window2;
|
|
158
|
+
function Ce(e) {
|
|
159
|
+
for (var t = M(e), r = lt(e); r && er(r) && q(r).position === "static"; )
|
|
160
|
+
r = lt(r);
|
|
161
|
+
return r && (H(r) === "html" || H(r) === "body" && q(r).position === "static") ? t : r || tr(e) || t;
|
|
240
162
|
}
|
|
241
|
-
function
|
|
242
|
-
return ["top", "bottom"].indexOf(
|
|
163
|
+
function Ge(e) {
|
|
164
|
+
return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
|
|
243
165
|
}
|
|
244
|
-
function
|
|
245
|
-
return
|
|
166
|
+
function he(e, t, r) {
|
|
167
|
+
return re(e, je(t, r));
|
|
246
168
|
}
|
|
247
|
-
function
|
|
248
|
-
var
|
|
249
|
-
return
|
|
169
|
+
function rr(e, t, r) {
|
|
170
|
+
var n = he(e, t, r);
|
|
171
|
+
return n > r ? r : n;
|
|
250
172
|
}
|
|
251
|
-
function
|
|
173
|
+
function Ct() {
|
|
252
174
|
return {
|
|
253
175
|
top: 0,
|
|
254
176
|
right: 0,
|
|
@@ -256,1319 +178,923 @@ function getFreshSideObject() {
|
|
|
256
178
|
left: 0
|
|
257
179
|
};
|
|
258
180
|
}
|
|
259
|
-
function
|
|
260
|
-
return Object.assign({},
|
|
181
|
+
function Pt(e) {
|
|
182
|
+
return Object.assign({}, Ct(), e);
|
|
261
183
|
}
|
|
262
|
-
function
|
|
263
|
-
return
|
|
264
|
-
|
|
265
|
-
return hashMap;
|
|
184
|
+
function Et(e, t) {
|
|
185
|
+
return t.reduce(function(r, n) {
|
|
186
|
+
return r[n] = e, r;
|
|
266
187
|
}, {});
|
|
267
188
|
}
|
|
268
|
-
var
|
|
269
|
-
|
|
270
|
-
placement:
|
|
271
|
-
})) :
|
|
272
|
-
return mergePaddingObject(typeof padding !== "number" ? padding : expandToHashMap(padding, basePlacements));
|
|
189
|
+
var nr = function(t, r) {
|
|
190
|
+
return t = typeof t == "function" ? t(Object.assign({}, r.rects, {
|
|
191
|
+
placement: r.placement
|
|
192
|
+
})) : t, Pt(typeof t != "number" ? t : Et(t, $e));
|
|
273
193
|
};
|
|
274
|
-
function
|
|
275
|
-
var
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
var
|
|
283
|
-
if (!
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
var paddingObject = toPaddingObject(options.padding, state);
|
|
287
|
-
var arrowRect = getLayoutRect(arrowElement);
|
|
288
|
-
var minProp = axis === "y" ? top : left;
|
|
289
|
-
var maxProp = axis === "y" ? bottom : right;
|
|
290
|
-
var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets2[axis] - state.rects.popper[len];
|
|
291
|
-
var startDiff = popperOffsets2[axis] - state.rects.reference[axis];
|
|
292
|
-
var arrowOffsetParent = getOffsetParent(arrowElement);
|
|
293
|
-
var clientSize = arrowOffsetParent ? axis === "y" ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;
|
|
294
|
-
var centerToReference = endDiff / 2 - startDiff / 2;
|
|
295
|
-
var min2 = paddingObject[minProp];
|
|
296
|
-
var max2 = clientSize - arrowRect[len] - paddingObject[maxProp];
|
|
297
|
-
var center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;
|
|
298
|
-
var offset2 = within(min2, center, max2);
|
|
299
|
-
var axisProp = axis;
|
|
300
|
-
state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset2, _state$modifiersData$.centerOffset = offset2 - center, _state$modifiersData$);
|
|
301
|
-
}
|
|
302
|
-
function effect$1(_ref2) {
|
|
303
|
-
var state = _ref2.state, options = _ref2.options;
|
|
304
|
-
var _options$element = options.element, arrowElement = _options$element === void 0 ? "[data-popper-arrow]" : _options$element;
|
|
305
|
-
if (arrowElement == null) {
|
|
306
|
-
return;
|
|
307
|
-
}
|
|
308
|
-
if (typeof arrowElement === "string") {
|
|
309
|
-
arrowElement = state.elements.popper.querySelector(arrowElement);
|
|
310
|
-
if (!arrowElement) {
|
|
194
|
+
function or(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, N].indexOf(l) >= 0, p = f ? "height" : "width";
|
|
196
|
+
if (!(!i || !a)) {
|
|
197
|
+
var h = nr(o.padding, r), y = Ue(i), u = s === "y" ? R : j, x = s === "y" ? I : N, 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[x], d = C / 2 - y[p] / 2 + $, O = he(c, d, g), E = s;
|
|
198
|
+
r.modifiersData[n] = (t = {}, t[E] = O, t.centerOffset = O - d, t);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
function ir(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(" "))), !$t(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(" "));
|
|
311
206
|
return;
|
|
312
207
|
}
|
|
208
|
+
t.elements.arrow = o;
|
|
313
209
|
}
|
|
314
|
-
if (!contains(state.elements.popper, arrowElement)) {
|
|
315
|
-
return;
|
|
316
|
-
}
|
|
317
|
-
state.elements.arrow = arrowElement;
|
|
318
210
|
}
|
|
319
|
-
|
|
211
|
+
const ar = {
|
|
320
212
|
name: "arrow",
|
|
321
|
-
enabled:
|
|
213
|
+
enabled: !0,
|
|
322
214
|
phase: "main",
|
|
323
|
-
fn:
|
|
324
|
-
effect:
|
|
215
|
+
fn: or,
|
|
216
|
+
effect: ir,
|
|
325
217
|
requires: ["popperOffsets"],
|
|
326
218
|
requiresIfExists: ["preventOverflow"]
|
|
327
219
|
};
|
|
328
|
-
function
|
|
329
|
-
return
|
|
220
|
+
function pe(e) {
|
|
221
|
+
return e.split("-")[1];
|
|
330
222
|
}
|
|
331
|
-
var
|
|
223
|
+
var sr = {
|
|
332
224
|
top: "auto",
|
|
333
225
|
right: "auto",
|
|
334
226
|
bottom: "auto",
|
|
335
227
|
left: "auto"
|
|
336
228
|
};
|
|
337
|
-
function
|
|
338
|
-
var
|
|
339
|
-
var win = window;
|
|
340
|
-
var dpr = win.devicePixelRatio || 1;
|
|
229
|
+
function lr(e) {
|
|
230
|
+
var t = e.x, r = e.y, n = window, o = n.devicePixelRatio || 1;
|
|
341
231
|
return {
|
|
342
|
-
x:
|
|
343
|
-
y:
|
|
232
|
+
x: se(t * o) / o || 0,
|
|
233
|
+
y: se(r * o) / o || 0
|
|
344
234
|
};
|
|
345
235
|
}
|
|
346
|
-
function
|
|
347
|
-
var
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
var _ref3 = typeof roundOffsets === "function" ? roundOffsets({
|
|
351
|
-
x,
|
|
352
|
-
y
|
|
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, x = a.y, m = x === void 0 ? 0 : x, v = typeof p == "function" ? p({
|
|
238
|
+
x: u,
|
|
239
|
+
y: m
|
|
353
240
|
}) : {
|
|
354
|
-
x,
|
|
355
|
-
y
|
|
241
|
+
x: u,
|
|
242
|
+
y: m
|
|
356
243
|
};
|
|
357
|
-
x =
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
var offsetParent = getOffsetParent(popper2);
|
|
366
|
-
var heightProp = "clientHeight";
|
|
367
|
-
var widthProp = "clientWidth";
|
|
368
|
-
if (offsetParent === getWindow(popper2)) {
|
|
369
|
-
offsetParent = getDocumentElement(popper2);
|
|
370
|
-
if (getComputedStyle(offsetParent).position !== "static" && position === "absolute") {
|
|
371
|
-
heightProp = "scrollHeight";
|
|
372
|
-
widthProp = "scrollWidth";
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
offsetParent = offsetParent;
|
|
376
|
-
if (placement === top || (placement === left || placement === right) && variation === end) {
|
|
377
|
-
sideY = bottom;
|
|
378
|
-
var offsetY = isFixed && win.visualViewport ? win.visualViewport.height : offsetParent[heightProp];
|
|
379
|
-
y -= offsetY - popperRect.height;
|
|
380
|
-
y *= gpuAcceleration ? 1 : -1;
|
|
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), O = "clientHeight", E = "clientWidth";
|
|
248
|
+
if (d === M(r) && (d = U(r), q(d).position !== "static" && l === "absolute" && (O = "scrollHeight", E = "scrollWidth")), d = d, o === R || (o === j || o === N) && i === xe) {
|
|
249
|
+
c = I;
|
|
250
|
+
var S = h && d === g && g.visualViewport ? g.visualViewport.height : d[O];
|
|
251
|
+
m -= S - n.height, m *= s ? 1 : -1;
|
|
381
252
|
}
|
|
382
|
-
if (
|
|
383
|
-
|
|
384
|
-
var
|
|
385
|
-
|
|
386
|
-
x *= gpuAcceleration ? 1 : -1;
|
|
253
|
+
if (o === j || (o === R || o === I) && i === xe) {
|
|
254
|
+
$ = N;
|
|
255
|
+
var k = h && d === g && g.visualViewport ? g.visualViewport.width : d[E];
|
|
256
|
+
u -= k - n.width, u *= s ? 1 : -1;
|
|
387
257
|
}
|
|
388
258
|
}
|
|
389
|
-
var
|
|
390
|
-
position
|
|
391
|
-
},
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
y
|
|
259
|
+
var b = Object.assign({
|
|
260
|
+
position: l
|
|
261
|
+
}, f && sr), D = p === !0 ? lr({
|
|
262
|
+
x: u,
|
|
263
|
+
y: m
|
|
395
264
|
}) : {
|
|
396
|
-
x,
|
|
397
|
-
y
|
|
265
|
+
x: u,
|
|
266
|
+
y: m
|
|
398
267
|
};
|
|
399
|
-
x =
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
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 pr(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"
|
|
417
293
|
};
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
adaptive: false,
|
|
431
|
-
roundOffsets
|
|
432
|
-
})));
|
|
433
|
-
}
|
|
434
|
-
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
435
|
-
"data-popper-placement": state.placement
|
|
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
|
|
436
306
|
});
|
|
437
307
|
}
|
|
438
|
-
|
|
308
|
+
const fr = {
|
|
439
309
|
name: "computeStyles",
|
|
440
|
-
enabled:
|
|
310
|
+
enabled: !0,
|
|
441
311
|
phase: "beforeWrite",
|
|
442
|
-
fn:
|
|
312
|
+
fn: pr,
|
|
443
313
|
data: {}
|
|
444
314
|
};
|
|
445
|
-
var
|
|
446
|
-
passive:
|
|
315
|
+
var De = {
|
|
316
|
+
passive: !0
|
|
447
317
|
};
|
|
448
|
-
function
|
|
449
|
-
var
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
});
|
|
457
|
-
}
|
|
458
|
-
if (resize) {
|
|
459
|
-
window2.addEventListener("resize", instance.update, passive);
|
|
460
|
-
}
|
|
461
|
-
return function() {
|
|
462
|
-
if (scroll) {
|
|
463
|
-
scrollParents.forEach(function(scrollParent) {
|
|
464
|
-
scrollParent.removeEventListener("scroll", instance.update, passive);
|
|
465
|
-
});
|
|
466
|
-
}
|
|
467
|
-
if (resize) {
|
|
468
|
-
window2.removeEventListener("resize", instance.update, passive);
|
|
469
|
-
}
|
|
318
|
+
function ur(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);
|
|
470
326
|
};
|
|
471
327
|
}
|
|
472
|
-
|
|
328
|
+
const cr = {
|
|
473
329
|
name: "eventListeners",
|
|
474
|
-
enabled:
|
|
330
|
+
enabled: !0,
|
|
475
331
|
phase: "write",
|
|
476
|
-
fn: function
|
|
332
|
+
fn: function() {
|
|
477
333
|
},
|
|
478
|
-
effect,
|
|
334
|
+
effect: ur,
|
|
479
335
|
data: {}
|
|
480
336
|
};
|
|
481
|
-
var
|
|
337
|
+
var dr = {
|
|
482
338
|
left: "right",
|
|
483
339
|
right: "left",
|
|
484
340
|
bottom: "top",
|
|
485
341
|
top: "bottom"
|
|
486
342
|
};
|
|
487
|
-
function
|
|
488
|
-
return
|
|
489
|
-
return
|
|
343
|
+
function Ae(e) {
|
|
344
|
+
return e.replace(/left|right|bottom|top/g, function(t) {
|
|
345
|
+
return dr[t];
|
|
490
346
|
});
|
|
491
347
|
}
|
|
492
|
-
var
|
|
348
|
+
var vr = {
|
|
493
349
|
start: "end",
|
|
494
350
|
end: "start"
|
|
495
351
|
};
|
|
496
|
-
function
|
|
497
|
-
return
|
|
498
|
-
return
|
|
352
|
+
function ft(e) {
|
|
353
|
+
return e.replace(/start|end/g, function(t) {
|
|
354
|
+
return vr[t];
|
|
499
355
|
});
|
|
500
356
|
}
|
|
501
|
-
function
|
|
502
|
-
var
|
|
503
|
-
var scrollLeft = win.pageXOffset;
|
|
504
|
-
var scrollTop = win.pageYOffset;
|
|
357
|
+
function Je(e) {
|
|
358
|
+
var t = M(e), r = t.pageXOffset, n = t.pageYOffset;
|
|
505
359
|
return {
|
|
506
|
-
scrollLeft,
|
|
507
|
-
scrollTop
|
|
360
|
+
scrollLeft: r,
|
|
361
|
+
scrollTop: n
|
|
508
362
|
};
|
|
509
363
|
}
|
|
510
|
-
function
|
|
511
|
-
return
|
|
512
|
-
}
|
|
513
|
-
function getViewportRect(element) {
|
|
514
|
-
var win = getWindow(element);
|
|
515
|
-
var html = getDocumentElement(element);
|
|
516
|
-
var visualViewport = win.visualViewport;
|
|
517
|
-
var width = html.clientWidth;
|
|
518
|
-
var height = html.clientHeight;
|
|
519
|
-
var x = 0;
|
|
520
|
-
var y = 0;
|
|
521
|
-
if (visualViewport) {
|
|
522
|
-
width = visualViewport.width;
|
|
523
|
-
height = visualViewport.height;
|
|
524
|
-
if (!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)) {
|
|
525
|
-
x = visualViewport.offsetLeft;
|
|
526
|
-
y = visualViewport.offsetTop;
|
|
527
|
-
}
|
|
528
|
-
}
|
|
529
|
-
return {
|
|
530
|
-
width,
|
|
531
|
-
height,
|
|
532
|
-
x: x + getWindowScrollBarX(element),
|
|
533
|
-
y
|
|
534
|
-
};
|
|
364
|
+
function Ke(e) {
|
|
365
|
+
return le(U(e)).left + Je(e).scrollLeft;
|
|
535
366
|
}
|
|
536
|
-
function
|
|
537
|
-
var
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
543
|
-
var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
|
|
544
|
-
var y = -winScroll.scrollTop;
|
|
545
|
-
if (getComputedStyle(body || html).direction === "rtl") {
|
|
546
|
-
x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
367
|
+
function hr(e, t) {
|
|
368
|
+
var r = M(e), n = U(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 = Ot();
|
|
372
|
+
(f || !f && t === "fixed") && (l = o.offsetLeft, s = o.offsetTop);
|
|
547
373
|
}
|
|
548
374
|
return {
|
|
549
|
-
width,
|
|
550
|
-
height,
|
|
551
|
-
x,
|
|
552
|
-
y
|
|
375
|
+
width: i,
|
|
376
|
+
height: a,
|
|
377
|
+
x: l + Ke(e),
|
|
378
|
+
y: s
|
|
553
379
|
};
|
|
554
380
|
}
|
|
555
|
-
function
|
|
556
|
-
var
|
|
557
|
-
return
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
}
|
|
563
|
-
if (isHTMLElement(node) && isScrollParent(node)) {
|
|
564
|
-
return node;
|
|
565
|
-
}
|
|
566
|
-
return getScrollParent(getParentNode(node));
|
|
567
|
-
}
|
|
568
|
-
function listScrollParents(element, list) {
|
|
569
|
-
var _element$ownerDocumen;
|
|
570
|
-
if (list === void 0) {
|
|
571
|
-
list = [];
|
|
572
|
-
}
|
|
573
|
-
var scrollParent = getScrollParent(element);
|
|
574
|
-
var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);
|
|
575
|
-
var win = getWindow(scrollParent);
|
|
576
|
-
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
577
|
-
var updatedList = list.concat(target);
|
|
578
|
-
return isBody ? updatedList : updatedList.concat(listScrollParents(getParentNode(target)));
|
|
579
|
-
}
|
|
580
|
-
function rectToClientRect(rect) {
|
|
581
|
-
return Object.assign({}, rect, {
|
|
582
|
-
left: rect.x,
|
|
583
|
-
top: rect.y,
|
|
584
|
-
right: rect.x + rect.width,
|
|
585
|
-
bottom: rect.y + rect.height
|
|
586
|
-
});
|
|
381
|
+
function mr(e) {
|
|
382
|
+
var t, r = U(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
|
+
};
|
|
587
389
|
}
|
|
588
|
-
function
|
|
589
|
-
var
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
}
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
if (!isElement(clipperElement)) {
|
|
608
|
-
return [];
|
|
609
|
-
}
|
|
610
|
-
return clippingParents2.filter(function(clippingParent) {
|
|
611
|
-
return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== "body";
|
|
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 St(e) {
|
|
395
|
+
return ["html", "body", "#document"].indexOf(H(e)) >= 0 ? e.ownerDocument.body : T(e) && Qe(e) ? e : St(Te(e));
|
|
396
|
+
}
|
|
397
|
+
function me(e, t) {
|
|
398
|
+
var r;
|
|
399
|
+
t === void 0 && (t = []);
|
|
400
|
+
var n = St(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
|
|
612
409
|
});
|
|
613
410
|
}
|
|
614
|
-
function
|
|
615
|
-
var
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
return
|
|
625
|
-
}
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
var
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
offsets = {
|
|
642
|
-
x: commonX,
|
|
643
|
-
y: reference2.y - element.height
|
|
411
|
+
function gr(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 === wt ? We(hr(e, r)) : ne(t) ? gr(t, r) : We(mr(U(e)));
|
|
417
|
+
}
|
|
418
|
+
function br(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) && $t(o, n) && H(o) !== "body";
|
|
422
|
+
}) : [];
|
|
423
|
+
}
|
|
424
|
+
function yr(e, t, r, n) {
|
|
425
|
+
var o = t === "clippingParents" ? br(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 kt(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
|
|
644
438
|
};
|
|
645
439
|
break;
|
|
646
|
-
case
|
|
647
|
-
|
|
648
|
-
x:
|
|
649
|
-
y:
|
|
440
|
+
case I:
|
|
441
|
+
s = {
|
|
442
|
+
x: a,
|
|
443
|
+
y: t.y + t.height
|
|
650
444
|
};
|
|
651
445
|
break;
|
|
652
|
-
case
|
|
653
|
-
|
|
654
|
-
x:
|
|
655
|
-
y:
|
|
446
|
+
case N:
|
|
447
|
+
s = {
|
|
448
|
+
x: t.x + t.width,
|
|
449
|
+
y: l
|
|
656
450
|
};
|
|
657
451
|
break;
|
|
658
|
-
case
|
|
659
|
-
|
|
660
|
-
x:
|
|
661
|
-
y:
|
|
452
|
+
case j:
|
|
453
|
+
s = {
|
|
454
|
+
x: t.x - r.width,
|
|
455
|
+
y: l
|
|
662
456
|
};
|
|
663
457
|
break;
|
|
664
458
|
default:
|
|
665
|
-
|
|
666
|
-
x:
|
|
667
|
-
y:
|
|
459
|
+
s = {
|
|
460
|
+
x: t.x,
|
|
461
|
+
y: t.y
|
|
668
462
|
};
|
|
669
463
|
}
|
|
670
|
-
var
|
|
671
|
-
if (
|
|
672
|
-
var
|
|
673
|
-
switch (
|
|
674
|
-
case
|
|
675
|
-
|
|
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);
|
|
676
470
|
break;
|
|
677
|
-
case
|
|
678
|
-
|
|
471
|
+
case xe:
|
|
472
|
+
s[f] = s[f] + (t[p] / 2 - r[p] / 2);
|
|
679
473
|
break;
|
|
680
474
|
}
|
|
681
475
|
}
|
|
682
|
-
return
|
|
476
|
+
return s;
|
|
683
477
|
}
|
|
684
|
-
function
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
var paddingObject = mergePaddingObject(typeof padding !== "number" ? padding : expandToHashMap(padding, basePlacements));
|
|
690
|
-
var altContext = elementContext === popper ? reference : popper;
|
|
691
|
-
var popperRect = state.rects.popper;
|
|
692
|
-
var element = state.elements[altBoundary ? altContext : elementContext];
|
|
693
|
-
var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary);
|
|
694
|
-
var referenceClientRect = getBoundingClientRect(state.elements.reference);
|
|
695
|
-
var popperOffsets2 = computeOffsets({
|
|
696
|
-
reference: referenceClientRect,
|
|
697
|
-
element: popperRect,
|
|
478
|
+
function Oe(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 ? Vt : l, f = r.rootBoundary, p = f === void 0 ? wt : f, h = r.elementContext, y = h === void 0 ? ve : h, u = r.altBoundary, x = u === void 0 ? !1 : u, m = r.padding, v = m === void 0 ? 0 : m, w = Pt(typeof v != "number" ? v : Et(v, $e)), C = y === ve ? qt : ve, $ = e.rects.popper, c = e.elements[x ? C : y], g = yr(ne(c) ? c : c.contextElement || U(e.elements.popper), s, p, a), d = le(e.elements.reference), O = kt({
|
|
481
|
+
reference: d,
|
|
482
|
+
element: $,
|
|
698
483
|
strategy: "absolute",
|
|
699
|
-
placement
|
|
700
|
-
})
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
var offset2 = offsetData[placement];
|
|
712
|
-
Object.keys(overflowOffsets).forEach(function(key) {
|
|
713
|
-
var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1;
|
|
714
|
-
var axis = [top, bottom].indexOf(key) >= 0 ? "y" : "x";
|
|
715
|
-
overflowOffsets[key] += offset2[axis] * multiply;
|
|
484
|
+
placement: o
|
|
485
|
+
}), E = We(Object.assign({}, $, O)), 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 = [N, I].indexOf(A) >= 0 ? 1 : -1, J = [R, I].indexOf(A) >= 0 ? "y" : "x";
|
|
495
|
+
k[A] += D[J] * G;
|
|
716
496
|
});
|
|
717
497
|
}
|
|
718
|
-
return
|
|
498
|
+
return k;
|
|
719
499
|
}
|
|
720
|
-
function
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
var placements$1 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function(placement2) {
|
|
727
|
-
return getVariation(placement2) === variation;
|
|
728
|
-
}) : basePlacements;
|
|
729
|
-
var allowedPlacements = placements$1.filter(function(placement2) {
|
|
730
|
-
return allowedAutoPlacements.indexOf(placement2) >= 0;
|
|
500
|
+
function wr(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 ? xt : s, p = pe(n), h = p ? l ? st : st.filter(function(x) {
|
|
503
|
+
return pe(x) === p;
|
|
504
|
+
}) : $e, y = h.filter(function(x) {
|
|
505
|
+
return f.indexOf(x) >= 0;
|
|
731
506
|
});
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
padding
|
|
741
|
-
})[getBasePlacement(placement2)];
|
|
742
|
-
return acc;
|
|
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(x, m) {
|
|
509
|
+
return x[m] = Oe(e, {
|
|
510
|
+
placement: m,
|
|
511
|
+
boundary: o,
|
|
512
|
+
rootBoundary: i,
|
|
513
|
+
padding: a
|
|
514
|
+
})[V(m)], x;
|
|
743
515
|
}, {});
|
|
744
|
-
return Object.keys(
|
|
745
|
-
return
|
|
516
|
+
return Object.keys(u).sort(function(x, m) {
|
|
517
|
+
return u[x] - u[m];
|
|
746
518
|
});
|
|
747
519
|
}
|
|
748
|
-
function
|
|
749
|
-
if (
|
|
520
|
+
function xr(e) {
|
|
521
|
+
if (V(e) === ze)
|
|
750
522
|
return [];
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
for (var i = 0; i < placements2.length; i++) {
|
|
781
|
-
var placement = placements2[i];
|
|
782
|
-
var _basePlacement = getBasePlacement(placement);
|
|
783
|
-
var isStartVariation = getVariation(placement) === start;
|
|
784
|
-
var isVertical = [top, bottom].indexOf(_basePlacement) >= 0;
|
|
785
|
-
var len = isVertical ? "width" : "height";
|
|
786
|
-
var overflow = detectOverflow(state, {
|
|
787
|
-
placement,
|
|
788
|
-
boundary,
|
|
789
|
-
rootBoundary,
|
|
790
|
-
altBoundary,
|
|
791
|
-
padding
|
|
792
|
-
});
|
|
793
|
-
var mainVariationSide = isVertical ? isStartVariation ? right : left : isStartVariation ? bottom : top;
|
|
794
|
-
if (referenceRect[len] > popperRect[len]) {
|
|
795
|
-
mainVariationSide = getOppositePlacement(mainVariationSide);
|
|
796
|
-
}
|
|
797
|
-
var altVariationSide = getOppositePlacement(mainVariationSide);
|
|
798
|
-
var checks = [];
|
|
799
|
-
if (checkMainAxis) {
|
|
800
|
-
checks.push(overflow[_basePlacement] <= 0);
|
|
801
|
-
}
|
|
802
|
-
if (checkAltAxis) {
|
|
803
|
-
checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0);
|
|
804
|
-
}
|
|
805
|
-
if (checks.every(function(check) {
|
|
806
|
-
return check;
|
|
807
|
-
})) {
|
|
808
|
-
firstFittingPlacement = placement;
|
|
809
|
-
makeFallbackChecks = false;
|
|
810
|
-
break;
|
|
811
|
-
}
|
|
812
|
-
checksMap.set(placement, checks);
|
|
813
|
-
}
|
|
814
|
-
if (makeFallbackChecks) {
|
|
815
|
-
var numberOfChecks = flipVariations ? 3 : 1;
|
|
816
|
-
var _loop = function _loop2(_i2) {
|
|
817
|
-
var fittingPlacement = placements2.find(function(placement2) {
|
|
818
|
-
var checks2 = checksMap.get(placement2);
|
|
819
|
-
if (checks2) {
|
|
820
|
-
return checks2.slice(0, _i2).every(function(check) {
|
|
821
|
-
return check;
|
|
822
|
-
});
|
|
823
|
-
}
|
|
824
|
-
});
|
|
825
|
-
if (fittingPlacement) {
|
|
826
|
-
firstFittingPlacement = fittingPlacement;
|
|
827
|
-
return "break";
|
|
828
|
-
}
|
|
829
|
-
};
|
|
830
|
-
for (var _i = numberOfChecks; _i > 0; _i--) {
|
|
831
|
-
var _ret = _loop(_i);
|
|
832
|
-
if (_ret === "break")
|
|
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, x = u === void 0 ? !0 : u, m = r.allowedAutoPlacements, v = t.options.placement, w = V(v), C = w === v, $ = s || (C || !x ? [Ae(v)] : xr(v)), c = [v].concat($).reduce(function(oe, X) {
|
|
530
|
+
return oe.concat(V(X) === ze ? wr(t, {
|
|
531
|
+
placement: X,
|
|
532
|
+
boundary: p,
|
|
533
|
+
rootBoundary: h,
|
|
534
|
+
padding: f,
|
|
535
|
+
flipVariations: x,
|
|
536
|
+
allowedAutoPlacements: m
|
|
537
|
+
}) : X);
|
|
538
|
+
}, []), g = t.rects.reference, d = t.rects.popper, O = /* @__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, I].indexOf(D) >= 0, J = G ? "width" : "height", z = Oe(t, {
|
|
540
|
+
placement: b,
|
|
541
|
+
boundary: p,
|
|
542
|
+
rootBoundary: h,
|
|
543
|
+
altBoundary: y,
|
|
544
|
+
padding: f
|
|
545
|
+
}), L = G ? A ? N : j : A ? I : 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;
|
|
833
552
|
break;
|
|
553
|
+
}
|
|
554
|
+
O.set(b, K);
|
|
834
555
|
}
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
556
|
+
if (E)
|
|
557
|
+
for (var Ee = x ? 3 : 1, Ie = function(X) {
|
|
558
|
+
var ce = c.find(function(ke) {
|
|
559
|
+
var Q = O.get(ke);
|
|
560
|
+
if (Q)
|
|
561
|
+
return Q.slice(0, X).every(function(Ne) {
|
|
562
|
+
return Ne;
|
|
563
|
+
});
|
|
564
|
+
});
|
|
565
|
+
if (ce)
|
|
566
|
+
return S = ce, "break";
|
|
567
|
+
}, ue = Ee; ue > 0; ue--) {
|
|
568
|
+
var Se = Ie(ue);
|
|
569
|
+
if (Se === "break")
|
|
570
|
+
break;
|
|
571
|
+
}
|
|
572
|
+
t.placement !== S && (t.modifiersData[n]._skip = !0, t.placement = S, t.reset = !0);
|
|
840
573
|
}
|
|
841
574
|
}
|
|
842
|
-
|
|
575
|
+
const $r = {
|
|
843
576
|
name: "flip",
|
|
844
|
-
enabled:
|
|
577
|
+
enabled: !0,
|
|
845
578
|
phase: "main",
|
|
846
|
-
fn:
|
|
579
|
+
fn: Or,
|
|
847
580
|
requiresIfExists: ["offset"],
|
|
848
581
|
data: {
|
|
849
|
-
_skip:
|
|
582
|
+
_skip: !1
|
|
850
583
|
}
|
|
851
584
|
};
|
|
852
|
-
function
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
right: overflow.right - rect.width + preventedOffsets.x,
|
|
862
|
-
bottom: overflow.bottom - rect.height + preventedOffsets.y,
|
|
863
|
-
left: overflow.left - rect.width - preventedOffsets.x
|
|
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
|
|
864
594
|
};
|
|
865
595
|
}
|
|
866
|
-
function
|
|
867
|
-
return [
|
|
868
|
-
return
|
|
596
|
+
function dt(e) {
|
|
597
|
+
return [R, N, I, j].some(function(t) {
|
|
598
|
+
return e[t] >= 0;
|
|
869
599
|
});
|
|
870
600
|
}
|
|
871
|
-
function
|
|
872
|
-
var
|
|
873
|
-
var referenceRect = state.rects.reference;
|
|
874
|
-
var popperRect = state.rects.popper;
|
|
875
|
-
var preventedOffsets = state.modifiersData.preventOverflow;
|
|
876
|
-
var referenceOverflow = detectOverflow(state, {
|
|
601
|
+
function Cr(e) {
|
|
602
|
+
var t = e.state, r = e.name, n = t.rects.reference, o = t.rects.popper, i = t.modifiersData.preventOverflow, a = Oe(t, {
|
|
877
603
|
elementContext: "reference"
|
|
878
|
-
})
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
isReferenceHidden,
|
|
890
|
-
hasPopperEscaped
|
|
891
|
-
};
|
|
892
|
-
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
893
|
-
"data-popper-reference-hidden": isReferenceHidden,
|
|
894
|
-
"data-popper-escaped": hasPopperEscaped
|
|
604
|
+
}), l = Oe(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
|
|
895
615
|
});
|
|
896
616
|
}
|
|
897
|
-
|
|
617
|
+
const Pr = {
|
|
898
618
|
name: "hide",
|
|
899
|
-
enabled:
|
|
619
|
+
enabled: !0,
|
|
900
620
|
phase: "main",
|
|
901
621
|
requiresIfExists: ["preventOverflow"],
|
|
902
|
-
fn:
|
|
622
|
+
fn: Cr
|
|
903
623
|
};
|
|
904
|
-
function
|
|
905
|
-
var
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
distance = (distance || 0) * invertDistance;
|
|
912
|
-
return [left, right].indexOf(basePlacement) >= 0 ? {
|
|
913
|
-
x: distance,
|
|
914
|
-
y: skidding
|
|
624
|
+
function Er(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, N].indexOf(n) >= 0 ? {
|
|
629
|
+
x: l,
|
|
630
|
+
y: a
|
|
915
631
|
} : {
|
|
916
|
-
x:
|
|
917
|
-
y:
|
|
632
|
+
x: a,
|
|
633
|
+
y: l
|
|
918
634
|
};
|
|
919
635
|
}
|
|
920
|
-
function
|
|
921
|
-
var
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
return acc;
|
|
926
|
-
}, {});
|
|
927
|
-
var _data$state$placement = data[state.placement], x = _data$state$placement.x, y = _data$state$placement.y;
|
|
928
|
-
if (state.modifiersData.popperOffsets != null) {
|
|
929
|
-
state.modifiersData.popperOffsets.x += x;
|
|
930
|
-
state.modifiersData.popperOffsets.y += y;
|
|
931
|
-
}
|
|
932
|
-
state.modifiersData[name] = data;
|
|
636
|
+
function Sr(e) {
|
|
637
|
+
var t = e.state, r = e.options, n = e.name, o = r.offset, i = o === void 0 ? [0, 0] : o, a = xt.reduce(function(p, h) {
|
|
638
|
+
return p[h] = Er(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;
|
|
933
641
|
}
|
|
934
|
-
|
|
642
|
+
const kr = {
|
|
935
643
|
name: "offset",
|
|
936
|
-
enabled:
|
|
644
|
+
enabled: !0,
|
|
937
645
|
phase: "main",
|
|
938
646
|
requires: ["popperOffsets"],
|
|
939
|
-
fn:
|
|
647
|
+
fn: Sr
|
|
940
648
|
};
|
|
941
|
-
function
|
|
942
|
-
var
|
|
943
|
-
|
|
944
|
-
reference:
|
|
945
|
-
element:
|
|
649
|
+
function Br(e) {
|
|
650
|
+
var t = e.state, r = e.name;
|
|
651
|
+
t.modifiersData[r] = kt({
|
|
652
|
+
reference: t.rects.reference,
|
|
653
|
+
element: t.rects.popper,
|
|
946
654
|
strategy: "absolute",
|
|
947
|
-
placement:
|
|
655
|
+
placement: t.placement
|
|
948
656
|
});
|
|
949
657
|
}
|
|
950
|
-
|
|
658
|
+
const Dr = {
|
|
951
659
|
name: "popperOffsets",
|
|
952
|
-
enabled:
|
|
660
|
+
enabled: !0,
|
|
953
661
|
phase: "read",
|
|
954
|
-
fn:
|
|
662
|
+
fn: Br,
|
|
955
663
|
data: {}
|
|
956
664
|
};
|
|
957
|
-
function
|
|
958
|
-
return
|
|
959
|
-
}
|
|
960
|
-
function
|
|
961
|
-
var
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
})
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
var isBasePlacement = !variation;
|
|
972
|
-
var mainAxis = getMainAxisFromPlacement(basePlacement);
|
|
973
|
-
var altAxis = getAltAxis(mainAxis);
|
|
974
|
-
var popperOffsets2 = state.modifiersData.popperOffsets;
|
|
975
|
-
var referenceRect = state.rects.reference;
|
|
976
|
-
var popperRect = state.rects.popper;
|
|
977
|
-
var tetherOffsetValue = typeof tetherOffset === "function" ? tetherOffset(Object.assign({}, state.rects, {
|
|
978
|
-
placement: state.placement
|
|
979
|
-
})) : tetherOffset;
|
|
980
|
-
var normalizedTetherOffsetValue = typeof tetherOffsetValue === "number" ? {
|
|
981
|
-
mainAxis: tetherOffsetValue,
|
|
982
|
-
altAxis: tetherOffsetValue
|
|
665
|
+
function Ar(e) {
|
|
666
|
+
return e === "x" ? "y" : "x";
|
|
667
|
+
}
|
|
668
|
+
function Rr(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, x = r.tetherOffset, m = x === void 0 ? 0 : x, v = Oe(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 = Ar(c), d = t.modifiersData.popperOffsets, O = 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
|
|
983
679
|
} : Object.assign({
|
|
984
680
|
mainAxis: 0,
|
|
985
681
|
altAxis: 0
|
|
986
|
-
},
|
|
987
|
-
var offsetModifierState = state.modifiersData.offset ? state.modifiersData.offset[state.placement] : null;
|
|
988
|
-
var data = {
|
|
682
|
+
}, S), b = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, D = {
|
|
989
683
|
x: 0,
|
|
990
684
|
y: 0
|
|
991
685
|
};
|
|
992
|
-
if (
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
var maxLen = variation === start ? -popperRect[len] : -referenceRect[len];
|
|
1006
|
-
var arrowElement = state.elements.arrow;
|
|
1007
|
-
var arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : {
|
|
1008
|
-
width: 0,
|
|
1009
|
-
height: 0
|
|
1010
|
-
};
|
|
1011
|
-
var arrowPaddingObject = state.modifiersData["arrow#persistent"] ? state.modifiersData["arrow#persistent"].padding : getFreshSideObject();
|
|
1012
|
-
var arrowPaddingMin = arrowPaddingObject[mainSide];
|
|
1013
|
-
var arrowPaddingMax = arrowPaddingObject[altSide];
|
|
1014
|
-
var arrowLen = within(0, referenceRect[len], arrowRect[len]);
|
|
1015
|
-
var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis;
|
|
1016
|
-
var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis;
|
|
1017
|
-
var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);
|
|
1018
|
-
var clientOffset = arrowOffsetParent ? mainAxis === "y" ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;
|
|
1019
|
-
var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? void 0 : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0;
|
|
1020
|
-
var tetherMin = offset2 + minOffset - offsetModifierValue - clientOffset;
|
|
1021
|
-
var tetherMax = offset2 + maxOffset - offsetModifierValue;
|
|
1022
|
-
var preventedOffset = within(tether ? min(min$1, tetherMin) : min$1, offset2, tether ? max(max$1, tetherMax) : max$1);
|
|
1023
|
-
popperOffsets2[mainAxis] = preventedOffset;
|
|
1024
|
-
data[mainAxis] = preventedOffset - offset2;
|
|
1025
|
-
}
|
|
1026
|
-
if (checkAltAxis) {
|
|
1027
|
-
var _offsetModifierState$2;
|
|
1028
|
-
var _mainSide = mainAxis === "x" ? top : left;
|
|
1029
|
-
var _altSide = mainAxis === "x" ? bottom : right;
|
|
1030
|
-
var _offset = popperOffsets2[altAxis];
|
|
1031
|
-
var _len = altAxis === "y" ? "height" : "width";
|
|
1032
|
-
var _min = _offset + overflow[_mainSide];
|
|
1033
|
-
var _max = _offset - overflow[_altSide];
|
|
1034
|
-
var isOriginSide = [top, left].indexOf(basePlacement) !== -1;
|
|
1035
|
-
var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ? void 0 : offsetModifierState[altAxis]) != null ? _offsetModifierState$2 : 0;
|
|
1036
|
-
var _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis;
|
|
1037
|
-
var _tetherMax = isOriginSide ? _offset + referenceRect[_len] + popperRect[_len] - _offsetModifierValue - normalizedTetherOffsetValue.altAxis : _max;
|
|
1038
|
-
var _preventedOffset = tether && isOriginSide ? withinMaxClamp(_tetherMin, _offset, _tetherMax) : within(tether ? _tetherMin : _min, _offset, tether ? _tetherMax : _max);
|
|
1039
|
-
popperOffsets2[altAxis] = _preventedOffset;
|
|
1040
|
-
data[altAxis] = _preventedOffset - _offset;
|
|
686
|
+
if (!!d) {
|
|
687
|
+
if (i) {
|
|
688
|
+
var A, G = c === "y" ? R : j, J = c === "y" ? I : N, z = c === "y" ? "height" : "width", L = d[c], Pe = L + v[G], K = L - v[J], Ee = u ? -E[z] / 2 : 0, Ie = C === ae ? O[z] : E[z], ue = C === ae ? -E[z] : -O[z], Se = t.elements.arrow, oe = u && Se ? Ue(Se) : {
|
|
689
|
+
width: 0,
|
|
690
|
+
height: 0
|
|
691
|
+
}, X = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Ct(), ce = X[G], ke = X[J], Q = he(0, O[z], oe[z]), Ne = $ ? O[z] / 2 - Ee - Q - ce - k.mainAxis : Ie - Q - ce - k.mainAxis, At = $ ? -O[z] / 2 + Ee + Q + ke + k.mainAxis : ue + Q + ke + k.mainAxis, Me = t.elements.arrow && Ce(t.elements.arrow), Rt = Me ? c === "y" ? Me.clientTop || 0 : Me.clientLeft || 0 : 0, Ze = (A = b == null ? void 0 : b[c]) != null ? A : 0, jt = L + Ne - Ze - Rt, zt = L + At - Ze, _e = he(u ? je(Pe, jt) : Pe, L, u ? re(K, zt) : K);
|
|
692
|
+
d[c] = _e, D[c] = _e - L;
|
|
693
|
+
}
|
|
694
|
+
if (l) {
|
|
695
|
+
var et, Tt = c === "x" ? R : j, It = c === "x" ? I : N, Z = d[g], Be = g === "y" ? "height" : "width", tt = Z + v[Tt], rt = Z - v[It], Le = [R, j].indexOf(w) !== -1, nt = (et = b == null ? void 0 : b[g]) != null ? et : 0, ot = Le ? tt : Z - O[Be] - E[Be] - nt + k.altAxis, it = Le ? Z + O[Be] + E[Be] - nt - k.altAxis : rt, at = u && Le ? rr(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;
|
|
1041
699
|
}
|
|
1042
|
-
state.modifiersData[name] = data;
|
|
1043
700
|
}
|
|
1044
|
-
|
|
701
|
+
const jr = {
|
|
1045
702
|
name: "preventOverflow",
|
|
1046
|
-
enabled:
|
|
703
|
+
enabled: !0,
|
|
1047
704
|
phase: "main",
|
|
1048
|
-
fn:
|
|
705
|
+
fn: Rr,
|
|
1049
706
|
requiresIfExists: ["offset"]
|
|
1050
707
|
};
|
|
1051
|
-
function
|
|
708
|
+
function zr(e) {
|
|
1052
709
|
return {
|
|
1053
|
-
scrollLeft:
|
|
1054
|
-
scrollTop:
|
|
710
|
+
scrollLeft: e.scrollLeft,
|
|
711
|
+
scrollTop: e.scrollTop
|
|
1055
712
|
};
|
|
1056
713
|
}
|
|
1057
|
-
function
|
|
1058
|
-
|
|
1059
|
-
return getWindowScroll(node);
|
|
1060
|
-
} else {
|
|
1061
|
-
return getHTMLElementScroll(node);
|
|
1062
|
-
}
|
|
714
|
+
function Tr(e) {
|
|
715
|
+
return e === M(e) || !T(e) ? Je(e) : zr(e);
|
|
1063
716
|
}
|
|
1064
|
-
function
|
|
1065
|
-
var
|
|
1066
|
-
|
|
1067
|
-
var scaleY = round(rect.height) / element.offsetHeight || 1;
|
|
1068
|
-
return scaleX !== 1 || scaleY !== 1;
|
|
717
|
+
function Ir(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;
|
|
1069
720
|
}
|
|
1070
|
-
function
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
}
|
|
1074
|
-
var isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
1075
|
-
var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);
|
|
1076
|
-
var documentElement = getDocumentElement(offsetParent);
|
|
1077
|
-
var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled);
|
|
1078
|
-
var scroll = {
|
|
721
|
+
function Nr(e, t, r) {
|
|
722
|
+
r === void 0 && (r = !1);
|
|
723
|
+
var n = T(t), o = T(t) && Ir(t), i = U(t), a = le(e, o, r), l = {
|
|
1079
724
|
scrollLeft: 0,
|
|
1080
725
|
scrollTop: 0
|
|
1081
|
-
}
|
|
1082
|
-
var offsets = {
|
|
726
|
+
}, s = {
|
|
1083
727
|
x: 0,
|
|
1084
728
|
y: 0
|
|
1085
729
|
};
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
offsets = getBoundingClientRect(offsetParent, true);
|
|
1092
|
-
offsets.x += offsetParent.clientLeft;
|
|
1093
|
-
offsets.y += offsetParent.clientTop;
|
|
1094
|
-
} else if (documentElement) {
|
|
1095
|
-
offsets.x = getWindowScrollBarX(documentElement);
|
|
1096
|
-
}
|
|
1097
|
-
}
|
|
1098
|
-
return {
|
|
1099
|
-
x: rect.left + scroll.scrollLeft - offsets.x,
|
|
1100
|
-
y: rect.top + scroll.scrollTop - offsets.y,
|
|
1101
|
-
width: rect.width,
|
|
1102
|
-
height: rect.height
|
|
730
|
+
return (n || !n && !r) && ((H(t) !== "body" || Qe(i)) && (l = Tr(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
|
|
1103
735
|
};
|
|
1104
736
|
}
|
|
1105
|
-
function
|
|
1106
|
-
var
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
modifiers.forEach(function(modifier) {
|
|
1110
|
-
map.set(modifier.name, modifier);
|
|
737
|
+
function Mr(e) {
|
|
738
|
+
var t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), n = [];
|
|
739
|
+
e.forEach(function(i) {
|
|
740
|
+
t.set(i.name, i);
|
|
1111
741
|
});
|
|
1112
|
-
function
|
|
1113
|
-
|
|
1114
|
-
var
|
|
1115
|
-
|
|
1116
|
-
if (!
|
|
1117
|
-
var
|
|
1118
|
-
|
|
1119
|
-
sort(depModifier);
|
|
1120
|
-
}
|
|
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);
|
|
1121
749
|
}
|
|
1122
|
-
});
|
|
1123
|
-
result.push(modifier);
|
|
750
|
+
}), n.push(i);
|
|
1124
751
|
}
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
}
|
|
1129
|
-
});
|
|
1130
|
-
return result;
|
|
752
|
+
return e.forEach(function(i) {
|
|
753
|
+
r.has(i.name) || o(i);
|
|
754
|
+
}), n;
|
|
1131
755
|
}
|
|
1132
|
-
function
|
|
1133
|
-
var
|
|
1134
|
-
return
|
|
1135
|
-
return
|
|
1136
|
-
return
|
|
756
|
+
function Lr(e) {
|
|
757
|
+
var t = Mr(e);
|
|
758
|
+
return qe.reduce(function(r, n) {
|
|
759
|
+
return r.concat(t.filter(function(o) {
|
|
760
|
+
return o.phase === n;
|
|
1137
761
|
}));
|
|
1138
762
|
}, []);
|
|
1139
763
|
}
|
|
1140
|
-
function
|
|
1141
|
-
var
|
|
764
|
+
function Vr(e) {
|
|
765
|
+
var t;
|
|
1142
766
|
return function() {
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
pending = void 0;
|
|
1147
|
-
resolve(fn2());
|
|
1148
|
-
});
|
|
767
|
+
return t || (t = new Promise(function(r) {
|
|
768
|
+
Promise.resolve().then(function() {
|
|
769
|
+
t = void 0, r(e());
|
|
1149
770
|
});
|
|
1150
|
-
}
|
|
1151
|
-
return pending;
|
|
771
|
+
})), t;
|
|
1152
772
|
};
|
|
1153
773
|
}
|
|
1154
|
-
function
|
|
1155
|
-
var
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
774
|
+
function Y(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', qr = 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available', vt = ["name", "enabled", "phase", "fn", "effect", "requires", "options"];
|
|
782
|
+
function Fr(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(Y(_, String(t.name), '"name"', '"string"', '"' + String(t.name) + '"'));
|
|
790
|
+
break;
|
|
791
|
+
case "enabled":
|
|
792
|
+
typeof t.enabled != "boolean" && console.error(Y(_, t.name, '"enabled"', '"boolean"', '"' + String(t.enabled) + '"'));
|
|
793
|
+
break;
|
|
794
|
+
case "phase":
|
|
795
|
+
qe.indexOf(t.phase) < 0 && console.error(Y(_, t.name, '"phase"', "either " + qe.join(", "), '"' + String(t.phase) + '"'));
|
|
796
|
+
break;
|
|
797
|
+
case "fn":
|
|
798
|
+
typeof t.fn != "function" && console.error(Y(_, t.name, '"fn"', '"function"', '"' + String(t.fn) + '"'));
|
|
799
|
+
break;
|
|
800
|
+
case "effect":
|
|
801
|
+
t.effect != null && typeof t.effect != "function" && console.error(Y(_, t.name, '"effect"', '"function"', '"' + String(t.fn) + '"'));
|
|
802
|
+
break;
|
|
803
|
+
case "requires":
|
|
804
|
+
t.requires != null && !Array.isArray(t.requires) && console.error(Y(_, t.name, '"requires"', '"array"', '"' + String(t.requires) + '"'));
|
|
805
|
+
break;
|
|
806
|
+
case "requiresIfExists":
|
|
807
|
+
Array.isArray(t.requiresIfExists) || console.error(Y(_, 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(Y(qr, String(t.name), n, n));
|
|
821
|
+
});
|
|
822
|
+
});
|
|
823
|
+
});
|
|
824
|
+
}
|
|
825
|
+
function Wr(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 Hr(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;
|
|
1162
840
|
}, {});
|
|
1163
|
-
return Object.keys(
|
|
1164
|
-
return
|
|
841
|
+
return Object.keys(t).map(function(r) {
|
|
842
|
+
return t[r];
|
|
1165
843
|
});
|
|
1166
844
|
}
|
|
1167
|
-
var
|
|
845
|
+
var ht = "Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.", Xr = "Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.", mt = {
|
|
1168
846
|
placement: "bottom",
|
|
1169
847
|
modifiers: [],
|
|
1170
848
|
strategy: "absolute"
|
|
1171
849
|
};
|
|
1172
|
-
function
|
|
1173
|
-
for (var
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
return !(element && typeof element.getBoundingClientRect === "function");
|
|
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");
|
|
1178
855
|
});
|
|
1179
856
|
}
|
|
1180
|
-
function
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
if (options === void 0) {
|
|
1187
|
-
options = defaultOptions;
|
|
1188
|
-
}
|
|
1189
|
-
var state = {
|
|
857
|
+
function Yr(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 = {
|
|
1190
863
|
placement: "bottom",
|
|
1191
864
|
orderedModifiers: [],
|
|
1192
|
-
options: Object.assign({},
|
|
865
|
+
options: Object.assign({}, mt, i),
|
|
1193
866
|
modifiersData: {},
|
|
1194
867
|
elements: {
|
|
1195
|
-
reference:
|
|
1196
|
-
popper:
|
|
868
|
+
reference: l,
|
|
869
|
+
popper: s
|
|
1197
870
|
},
|
|
1198
871
|
attributes: {},
|
|
1199
872
|
styles: {}
|
|
1200
|
-
}
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
cleanupModifierEffects();
|
|
1208
|
-
state.options = Object.assign({}, defaultOptions, state.options, options2);
|
|
1209
|
-
state.scrollParents = {
|
|
1210
|
-
reference: isElement(reference2) ? listScrollParents(reference2) : reference2.contextElement ? listScrollParents(reference2.contextElement) : [],
|
|
1211
|
-
popper: listScrollParents(popper2)
|
|
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)
|
|
1212
880
|
};
|
|
1213
|
-
var
|
|
1214
|
-
|
|
1215
|
-
return
|
|
1216
|
-
})
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
881
|
+
var $ = Lr(Hr([].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 = Wr([].concat($, p.options.modifiers), function(b) {
|
|
886
|
+
var D = b.name;
|
|
887
|
+
return D;
|
|
888
|
+
});
|
|
889
|
+
if (Fr(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), O = d.marginTop, E = d.marginRight, S = d.marginBottom, k = d.marginLeft;
|
|
897
|
+
[O, 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(" "));
|
|
1227
900
|
}
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
});
|
|
1237
|
-
for (var index = 0; index < state.orderedModifiers.length; index++) {
|
|
1238
|
-
if (state.reset === true) {
|
|
1239
|
-
state.reset = false;
|
|
1240
|
-
index = -1;
|
|
1241
|
-
continue;
|
|
901
|
+
return x(), 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;
|
|
1242
909
|
}
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
910
|
+
p.rects = {
|
|
911
|
+
reference: Nr(C, Ce($), p.options.strategy === "fixed"),
|
|
912
|
+
popper: Ue($)
|
|
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(Xr);
|
|
919
|
+
break;
|
|
920
|
+
}
|
|
921
|
+
if (p.reset === !0) {
|
|
922
|
+
p.reset = !1, g = -1;
|
|
923
|
+
continue;
|
|
924
|
+
}
|
|
925
|
+
var d = p.orderedModifiers[g], O = d.fn, E = d.options, S = E === void 0 ? {} : E, k = d.name;
|
|
926
|
+
typeof O == "function" && (p = O({
|
|
927
|
+
state: p,
|
|
928
|
+
options: S,
|
|
929
|
+
name: k,
|
|
930
|
+
instance: u
|
|
931
|
+
}) || p);
|
|
1251
932
|
}
|
|
1252
933
|
}
|
|
1253
934
|
},
|
|
1254
|
-
update:
|
|
1255
|
-
return new Promise(function(
|
|
1256
|
-
|
|
1257
|
-
resolve(state);
|
|
935
|
+
update: Vr(function() {
|
|
936
|
+
return new Promise(function(v) {
|
|
937
|
+
u.forceUpdate(), v(p);
|
|
1258
938
|
});
|
|
1259
939
|
}),
|
|
1260
|
-
destroy: function
|
|
1261
|
-
|
|
1262
|
-
isDestroyed = true;
|
|
940
|
+
destroy: function() {
|
|
941
|
+
m(), y = !0;
|
|
1263
942
|
}
|
|
1264
943
|
};
|
|
1265
|
-
if (!
|
|
1266
|
-
return
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
if (!isDestroyed && options.onFirstUpdate) {
|
|
1270
|
-
options.onFirstUpdate(state2);
|
|
1271
|
-
}
|
|
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);
|
|
1272
948
|
});
|
|
1273
|
-
function
|
|
1274
|
-
|
|
1275
|
-
var
|
|
1276
|
-
if (typeof
|
|
1277
|
-
var
|
|
1278
|
-
state,
|
|
1279
|
-
name,
|
|
1280
|
-
instance,
|
|
1281
|
-
options:
|
|
1282
|
-
})
|
|
1283
|
-
var noopFn = function noopFn2() {
|
|
949
|
+
function x() {
|
|
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() {
|
|
1284
959
|
};
|
|
1285
|
-
|
|
960
|
+
h.push(g || d);
|
|
1286
961
|
}
|
|
1287
962
|
});
|
|
1288
963
|
}
|
|
1289
|
-
function
|
|
1290
|
-
|
|
1291
|
-
return
|
|
1292
|
-
});
|
|
1293
|
-
effectCleanupFns = [];
|
|
964
|
+
function m() {
|
|
965
|
+
h.forEach(function(v) {
|
|
966
|
+
return v();
|
|
967
|
+
}), h = [];
|
|
1294
968
|
}
|
|
1295
|
-
return
|
|
969
|
+
return u;
|
|
1296
970
|
};
|
|
1297
971
|
}
|
|
1298
|
-
var
|
|
1299
|
-
|
|
1300
|
-
defaultModifiers
|
|
972
|
+
var Ur = [cr, Dr, fr, _t, kr, $r, jr, ar, Pr], Gr = /* @__PURE__ */ Yr({
|
|
973
|
+
defaultModifiers: Ur
|
|
1301
974
|
});
|
|
1302
|
-
|
|
975
|
+
const Jr = {
|
|
1303
976
|
props: {
|
|
977
|
+
componentPrefix: String,
|
|
1304
978
|
size: String,
|
|
1305
|
-
sizePrefix:
|
|
1306
|
-
type: String,
|
|
1307
|
-
default() {
|
|
1308
|
-
return this.$options.name && this.$options.name.toLowerCase();
|
|
1309
|
-
}
|
|
1310
|
-
}
|
|
979
|
+
sizePrefix: String
|
|
1311
980
|
},
|
|
1312
981
|
computed: {
|
|
1313
982
|
sizeableClassPrefix() {
|
|
1314
|
-
return this.sizePrefix;
|
|
983
|
+
return this.sizePrefix || this.componentPrefix;
|
|
984
|
+
},
|
|
985
|
+
hasSizeablePrefix() {
|
|
986
|
+
return this.size && !!this.size.match(
|
|
987
|
+
new RegExp(`^${this.sizeableClassPrefix}`)
|
|
988
|
+
);
|
|
1315
989
|
},
|
|
1316
990
|
sizeableClass() {
|
|
1317
|
-
|
|
1318
|
-
return "";
|
|
1319
|
-
}
|
|
1320
|
-
return `${this.sizeableClassPrefix}-${this.size}`;
|
|
991
|
+
return this.size ? !this.sizeableClassPrefix || this.hasSizeablePrefix ? this.size : `${this.sizeableClassPrefix}-${this.size}` : "";
|
|
1321
992
|
}
|
|
1322
993
|
}
|
|
1323
|
-
}
|
|
1324
|
-
var Variant = {
|
|
994
|
+
}, Kr = {
|
|
1325
995
|
props: {
|
|
996
|
+
componentPrefix: String,
|
|
1326
997
|
variant: String,
|
|
1327
|
-
variantPrefix:
|
|
1328
|
-
type: String,
|
|
1329
|
-
default() {
|
|
1330
|
-
return this.$options.name && this.$options.name.toLowerCase();
|
|
1331
|
-
}
|
|
1332
|
-
}
|
|
998
|
+
variantPrefix: String
|
|
1333
999
|
},
|
|
1334
1000
|
computed: {
|
|
1335
1001
|
variantClassPrefix() {
|
|
1336
|
-
return this.variantPrefix;
|
|
1002
|
+
return this.variantPrefix || this.componentPrefix;
|
|
1337
1003
|
},
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
return `${this.variantClassPrefix}-${this.variant}`;
|
|
1343
|
-
}
|
|
1344
|
-
}
|
|
1345
|
-
};
|
|
1346
|
-
var render$5 = function() {
|
|
1347
|
-
var _vm = this;
|
|
1348
|
-
var _h = _vm.$createElement;
|
|
1349
|
-
var _c = _vm._self._c || _h;
|
|
1350
|
-
return _vm.to ? _c("router-link", {
|
|
1351
|
-
class: _vm.classes,
|
|
1352
|
-
attrs: {
|
|
1353
|
-
"to": _vm.to,
|
|
1354
|
-
"disabled": _vm.disabled,
|
|
1355
|
-
"role": "button"
|
|
1356
|
-
},
|
|
1357
|
-
on: {
|
|
1358
|
-
"click": _vm.onClick
|
|
1359
|
-
}
|
|
1360
|
-
}, [_vm._t("default")], 2) : _vm.href ? _c("a", {
|
|
1361
|
-
class: _vm.classes,
|
|
1362
|
-
attrs: {
|
|
1363
|
-
"href": _vm.href,
|
|
1364
|
-
"disabled": _vm.disabled,
|
|
1365
|
-
"role": "button"
|
|
1004
|
+
hasVariantPrefix() {
|
|
1005
|
+
return this.variant && !!this.variant.match(
|
|
1006
|
+
new RegExp(`^${this.variantClassPrefix}`)
|
|
1007
|
+
);
|
|
1366
1008
|
},
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
}
|
|
1370
|
-
}, [_vm._t("default")], 2) : _vm.label ? _c("label", {
|
|
1371
|
-
class: _vm.classes,
|
|
1372
|
-
attrs: {
|
|
1373
|
-
"disabled": _vm.disabled,
|
|
1374
|
-
"role": "button"
|
|
1375
|
-
},
|
|
1376
|
-
on: {
|
|
1377
|
-
"click": _vm.onClick
|
|
1378
|
-
}
|
|
1379
|
-
}, [_vm._t("default")], 2) : _c("button", {
|
|
1380
|
-
class: _vm.classes,
|
|
1381
|
-
attrs: {
|
|
1382
|
-
"type": _vm.type,
|
|
1383
|
-
"disabled": _vm.disabled
|
|
1384
|
-
},
|
|
1385
|
-
on: {
|
|
1386
|
-
"click": _vm.onClick
|
|
1387
|
-
}
|
|
1388
|
-
}, [_vm._t("default")], 2);
|
|
1389
|
-
};
|
|
1390
|
-
var staticRenderFns$5 = [];
|
|
1391
|
-
function normalizeComponent$2(scriptExports, render2, staticRenderFns2, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
|
|
1392
|
-
var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
|
|
1393
|
-
if (render2) {
|
|
1394
|
-
options.render = render2;
|
|
1395
|
-
options.staticRenderFns = staticRenderFns2;
|
|
1396
|
-
options._compiled = true;
|
|
1397
|
-
}
|
|
1398
|
-
if (functionalTemplate) {
|
|
1399
|
-
options.functional = true;
|
|
1400
|
-
}
|
|
1401
|
-
if (scopeId) {
|
|
1402
|
-
options._scopeId = "data-v-" + scopeId;
|
|
1403
|
-
}
|
|
1404
|
-
var hook;
|
|
1405
|
-
if (moduleIdentifier) {
|
|
1406
|
-
hook = function(context) {
|
|
1407
|
-
context = context || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext;
|
|
1408
|
-
if (!context && typeof __VUE_SSR_CONTEXT__ !== "undefined") {
|
|
1409
|
-
context = __VUE_SSR_CONTEXT__;
|
|
1410
|
-
}
|
|
1411
|
-
if (injectStyles) {
|
|
1412
|
-
injectStyles.call(this, context);
|
|
1413
|
-
}
|
|
1414
|
-
if (context && context._registeredComponents) {
|
|
1415
|
-
context._registeredComponents.add(moduleIdentifier);
|
|
1416
|
-
}
|
|
1417
|
-
};
|
|
1418
|
-
options._ssrRegister = hook;
|
|
1419
|
-
} else if (injectStyles) {
|
|
1420
|
-
hook = shadowMode ? function() {
|
|
1421
|
-
injectStyles.call(this, (options.functional ? this.parent : this).$root.$options.shadowRoot);
|
|
1422
|
-
} : injectStyles;
|
|
1423
|
-
}
|
|
1424
|
-
if (hook) {
|
|
1425
|
-
if (options.functional) {
|
|
1426
|
-
options._injectStyles = hook;
|
|
1427
|
-
var originalRender = options.render;
|
|
1428
|
-
options.render = function renderWithStyleInjection(h, context) {
|
|
1429
|
-
hook.call(context);
|
|
1430
|
-
return originalRender(h, context);
|
|
1431
|
-
};
|
|
1432
|
-
} else {
|
|
1433
|
-
var existing = options.beforeCreate;
|
|
1434
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
1009
|
+
variantClass() {
|
|
1010
|
+
return this.variant ? !this.variantClassPrefix || this.hasVariantPrefix ? this.variant : `${this.variantClassPrefix}-${this.variant}` : "";
|
|
1435
1011
|
}
|
|
1436
1012
|
}
|
|
1437
|
-
|
|
1438
|
-
exports: scriptExports,
|
|
1439
|
-
options
|
|
1440
|
-
};
|
|
1441
|
-
}
|
|
1442
|
-
const __vue2_script$6 = {
|
|
1013
|
+
}, Qr = {
|
|
1443
1014
|
name: "Btn",
|
|
1444
|
-
mixins: [
|
|
1015
|
+
mixins: [
|
|
1016
|
+
Jr,
|
|
1017
|
+
Kr
|
|
1018
|
+
],
|
|
1445
1019
|
props: {
|
|
1446
1020
|
active: Boolean,
|
|
1447
1021
|
block: Boolean,
|
|
1022
|
+
componentPrefix: {
|
|
1023
|
+
type: String,
|
|
1024
|
+
default: "btn"
|
|
1025
|
+
},
|
|
1448
1026
|
disabled: Boolean,
|
|
1449
|
-
|
|
1450
|
-
label: Boolean,
|
|
1027
|
+
label: String,
|
|
1451
1028
|
outline: Boolean,
|
|
1452
|
-
|
|
1453
|
-
|
|
1029
|
+
tag: String,
|
|
1030
|
+
variant: {
|
|
1031
|
+
type: String,
|
|
1032
|
+
default: "primary"
|
|
1033
|
+
}
|
|
1454
1034
|
},
|
|
1455
1035
|
computed: {
|
|
1456
|
-
variantClassPrefix() {
|
|
1457
|
-
return this.variantPrefix + (this.outline ? "-outline" : "");
|
|
1458
|
-
},
|
|
1459
1036
|
classes() {
|
|
1460
|
-
return [
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
this
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
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" : "");
|
|
1470
1051
|
}
|
|
1471
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;
|
|
1472
1058
|
};
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
}
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1059
|
+
function Zr(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 _r = /* @__PURE__ */ fe(Qr, [["render", Zr]]), en = {
|
|
1484
1074
|
props: {
|
|
1075
|
+
componentPrefix: String,
|
|
1485
1076
|
size: String,
|
|
1486
|
-
sizePrefix:
|
|
1487
|
-
type: String,
|
|
1488
|
-
default() {
|
|
1489
|
-
return this.$options.name && this.$options.name.toLowerCase();
|
|
1490
|
-
}
|
|
1491
|
-
}
|
|
1077
|
+
sizePrefix: String
|
|
1492
1078
|
},
|
|
1493
1079
|
computed: {
|
|
1494
1080
|
sizeableClassPrefix() {
|
|
1495
|
-
return this.sizePrefix;
|
|
1081
|
+
return this.sizePrefix || this.componentPrefix;
|
|
1082
|
+
},
|
|
1083
|
+
hasSizeablePrefix() {
|
|
1084
|
+
return this.size && !!this.size.match(new RegExp(`^${this.sizeableClassPrefix}`));
|
|
1496
1085
|
},
|
|
1497
1086
|
sizeableClass() {
|
|
1498
|
-
|
|
1499
|
-
return "";
|
|
1500
|
-
}
|
|
1501
|
-
return `${this.sizeableClassPrefix}-${this.size}`;
|
|
1087
|
+
return this.size ? !this.sizeableClassPrefix || this.hasSizeablePrefix ? this.size : `${this.sizeableClassPrefix}-${this.size}` : "";
|
|
1502
1088
|
}
|
|
1503
1089
|
}
|
|
1504
|
-
}
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
class: _vm.classes,
|
|
1511
|
-
attrs: {
|
|
1512
|
-
"data-toggle": _vm.toggle ? "buttons" : false,
|
|
1513
|
-
"role": "group"
|
|
1514
|
-
}
|
|
1515
|
-
}, [_vm._t("default")], 2);
|
|
1516
|
-
};
|
|
1517
|
-
var staticRenderFns$2$1 = [];
|
|
1518
|
-
function normalizeComponent$1(scriptExports, render2, staticRenderFns2, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
|
|
1519
|
-
var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
|
|
1520
|
-
if (render2) {
|
|
1521
|
-
options.render = render2;
|
|
1522
|
-
options.staticRenderFns = staticRenderFns2;
|
|
1523
|
-
options._compiled = true;
|
|
1524
|
-
}
|
|
1525
|
-
if (functionalTemplate) {
|
|
1526
|
-
options.functional = true;
|
|
1527
|
-
}
|
|
1528
|
-
if (scopeId) {
|
|
1529
|
-
options._scopeId = "data-v-" + scopeId;
|
|
1530
|
-
}
|
|
1531
|
-
var hook;
|
|
1532
|
-
if (moduleIdentifier) {
|
|
1533
|
-
hook = function(context) {
|
|
1534
|
-
context = context || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext;
|
|
1535
|
-
if (!context && typeof __VUE_SSR_CONTEXT__ !== "undefined") {
|
|
1536
|
-
context = __VUE_SSR_CONTEXT__;
|
|
1537
|
-
}
|
|
1538
|
-
if (injectStyles) {
|
|
1539
|
-
injectStyles.call(this, context);
|
|
1540
|
-
}
|
|
1541
|
-
if (context && context._registeredComponents) {
|
|
1542
|
-
context._registeredComponents.add(moduleIdentifier);
|
|
1543
|
-
}
|
|
1544
|
-
};
|
|
1545
|
-
options._ssrRegister = hook;
|
|
1546
|
-
} else if (injectStyles) {
|
|
1547
|
-
hook = shadowMode ? function() {
|
|
1548
|
-
injectStyles.call(this, (options.functional ? this.parent : this).$root.$options.shadowRoot);
|
|
1549
|
-
} : injectStyles;
|
|
1550
|
-
}
|
|
1551
|
-
if (hook) {
|
|
1552
|
-
if (options.functional) {
|
|
1553
|
-
options._injectStyles = hook;
|
|
1554
|
-
var originalRender = options.render;
|
|
1555
|
-
options.render = function renderWithStyleInjection(h, context) {
|
|
1556
|
-
hook.call(context);
|
|
1557
|
-
return originalRender(h, context);
|
|
1558
|
-
};
|
|
1559
|
-
} else {
|
|
1560
|
-
var existing = options.beforeCreate;
|
|
1561
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
1562
|
-
}
|
|
1563
|
-
}
|
|
1564
|
-
return {
|
|
1565
|
-
exports: scriptExports,
|
|
1566
|
-
options
|
|
1567
|
-
};
|
|
1568
|
-
}
|
|
1569
|
-
const __vue2_script$2$1 = {
|
|
1090
|
+
}, tn = (e, t) => {
|
|
1091
|
+
const r = e.__vccOpts || e;
|
|
1092
|
+
for (const [n, o] of t)
|
|
1093
|
+
r[n] = o;
|
|
1094
|
+
return r;
|
|
1095
|
+
}, rn = {
|
|
1570
1096
|
name: "BtnGroup",
|
|
1571
|
-
mixins: [
|
|
1097
|
+
mixins: [en],
|
|
1572
1098
|
props: {
|
|
1573
1099
|
sizePrefix: {
|
|
1574
1100
|
type: String,
|
|
@@ -1589,172 +1115,84 @@ const __vue2_script$2$1 = {
|
|
|
1589
1115
|
};
|
|
1590
1116
|
}
|
|
1591
1117
|
}
|
|
1592
|
-
};
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
}
|
|
1599
|
-
}
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
}();
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
options.staticRenderFns = staticRenderFns2;
|
|
1608
|
-
options._compiled = true;
|
|
1609
|
-
}
|
|
1610
|
-
if (functionalTemplate) {
|
|
1611
|
-
options.functional = true;
|
|
1612
|
-
}
|
|
1613
|
-
if (scopeId) {
|
|
1614
|
-
options._scopeId = "data-v-" + scopeId;
|
|
1615
|
-
}
|
|
1616
|
-
var hook;
|
|
1617
|
-
if (moduleIdentifier) {
|
|
1618
|
-
hook = function(context) {
|
|
1619
|
-
context = context || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext;
|
|
1620
|
-
if (!context && typeof __VUE_SSR_CONTEXT__ !== "undefined") {
|
|
1621
|
-
context = __VUE_SSR_CONTEXT__;
|
|
1622
|
-
}
|
|
1623
|
-
if (injectStyles) {
|
|
1624
|
-
injectStyles.call(this, context);
|
|
1625
|
-
}
|
|
1626
|
-
if (context && context._registeredComponents) {
|
|
1627
|
-
context._registeredComponents.add(moduleIdentifier);
|
|
1628
|
-
}
|
|
1629
|
-
};
|
|
1630
|
-
options._ssrRegister = hook;
|
|
1631
|
-
} else if (injectStyles) {
|
|
1632
|
-
hook = shadowMode ? function() {
|
|
1633
|
-
injectStyles.call(this, (options.functional ? this.parent : this).$root.$options.shadowRoot);
|
|
1634
|
-
} : injectStyles;
|
|
1635
|
-
}
|
|
1636
|
-
if (hook) {
|
|
1637
|
-
if (options.functional) {
|
|
1638
|
-
options._injectStyles = hook;
|
|
1639
|
-
var originalRender = options.render;
|
|
1640
|
-
options.render = function renderWithStyleInjection(h, context) {
|
|
1641
|
-
hook.call(context);
|
|
1642
|
-
return originalRender(h, context);
|
|
1643
|
-
};
|
|
1644
|
-
} else {
|
|
1645
|
-
var existing = options.beforeCreate;
|
|
1646
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
1647
|
-
}
|
|
1648
|
-
}
|
|
1649
|
-
return {
|
|
1650
|
-
exports: scriptExports,
|
|
1651
|
-
options
|
|
1118
|
+
}, nn = ["data-toggle"];
|
|
1119
|
+
function on(e, t, r, n, o, i) {
|
|
1120
|
+
return W(), Xe("div", {
|
|
1121
|
+
class: F(i.classes),
|
|
1122
|
+
"data-toggle": r.toggle ? "buttons" : !1,
|
|
1123
|
+
role: "group"
|
|
1124
|
+
}, [P(e.$slots, "default")], 10, nn);
|
|
1125
|
+
}
|
|
1126
|
+
const an = /* @__PURE__ */ tn(rn, [["render", on]]);
|
|
1127
|
+
function Ve(e, t) {
|
|
1128
|
+
e.props.class = `${e.props.class || ""} ${t}`.trim();
|
|
1129
|
+
}
|
|
1130
|
+
function bt(e, t) {
|
|
1131
|
+
return (r) => {
|
|
1132
|
+
typeof t == "function" && t(r), r.cancelBubble || e(r);
|
|
1652
1133
|
};
|
|
1653
1134
|
}
|
|
1654
|
-
function
|
|
1655
|
-
|
|
1135
|
+
function yt(e, t) {
|
|
1136
|
+
return e.attrs.on[t] || e.type && e.type.listeners && e.componentOptions.listeners[t];
|
|
1656
1137
|
}
|
|
1657
|
-
function
|
|
1658
|
-
return (e
|
|
1659
|
-
if (typeof fn2 === "function") {
|
|
1660
|
-
fn2(e);
|
|
1661
|
-
}
|
|
1662
|
-
if (!e.cancelBubble) {
|
|
1663
|
-
wrapper(e);
|
|
1664
|
-
}
|
|
1665
|
-
};
|
|
1138
|
+
function sn(e) {
|
|
1139
|
+
return e && e.type && (e.type === "fragment" || typeof e.type == "symbol");
|
|
1666
1140
|
}
|
|
1667
|
-
function
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
const isDropdownItem = vnode.data.staticClass && vnode.data.staticClass.match(/dropdown-item/);
|
|
1679
|
-
const isDropdownDivider = vnode.data.staticClass && vnode.data.staticClass.match(/dropdown-divider/);
|
|
1680
|
-
vnode.data.on.click = wrap((e) => {
|
|
1681
|
-
context.parent.$emit("click-item", e, vnode);
|
|
1682
|
-
}, listener(vnode, "click"));
|
|
1683
|
-
vnode.data.on.blur = wrap((e) => {
|
|
1684
|
-
context.parent.$emit("blur-item", e, vnode);
|
|
1685
|
-
}, listener(vnode, "blur"));
|
|
1686
|
-
if (vnode.tag.match(/^h\d$/)) {
|
|
1687
|
-
appendClass(vnode, "dropdown-header");
|
|
1688
|
-
} else if (vnode.tag === "hr" && !isDropdownDivider) {
|
|
1689
|
-
vnode.tag = "div";
|
|
1690
|
-
appendClass(vnode, "dropdown-divider");
|
|
1691
|
-
} else if (!isDropdownItem && !isDropdownDivider) {
|
|
1692
|
-
appendClass(vnode, "dropdown-item");
|
|
1693
|
-
}
|
|
1694
|
-
});
|
|
1695
|
-
return context.children;
|
|
1696
|
-
}
|
|
1697
|
-
};
|
|
1698
|
-
let __vue2_render, __vue2_staticRenderFns;
|
|
1699
|
-
const __cssModules$5 = {};
|
|
1700
|
-
var __component__$5 = /* @__PURE__ */ normalizeComponent(__vue2_script$5, __vue2_render, __vue2_staticRenderFns, false, __vue2_injectStyles$5, null, null, null);
|
|
1701
|
-
function __vue2_injectStyles$5(context) {
|
|
1702
|
-
for (let o in __cssModules$5) {
|
|
1703
|
-
this[o] = __cssModules$5[o];
|
|
1141
|
+
function Bt(e) {
|
|
1142
|
+
for (const t of e) {
|
|
1143
|
+
if (sn(t))
|
|
1144
|
+
return Bt(t.children);
|
|
1145
|
+
t.props = Object.assign({ class: void 0 }, t.props), t.attrs = Object.assign({}, t.attrs), t.attrs.on || (t.attrs.on = {});
|
|
1146
|
+
const r = t.props.class && t.props.class.match(/dropdown-item/), n = t.props.class && t.props.class.match(/dropdown-divider/);
|
|
1147
|
+
t.attrs.on.click = bt((o) => {
|
|
1148
|
+
context.parent.$emit("click-item", o, t);
|
|
1149
|
+
}, yt(t, "click")), t.attrs.on.blur = bt((o) => {
|
|
1150
|
+
context.parent.$emit("blur-item", o, t);
|
|
1151
|
+
}, yt(t, "blur")), 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");
|
|
1704
1152
|
}
|
|
1153
|
+
return e;
|
|
1705
1154
|
}
|
|
1706
|
-
|
|
1707
|
-
return __component__$5.exports;
|
|
1708
|
-
}();
|
|
1709
|
-
var render$4 = function() {
|
|
1710
|
-
var _vm = this;
|
|
1711
|
-
var _h = _vm.$createElement;
|
|
1712
|
-
var _c = _vm._self._c || _h;
|
|
1713
|
-
return _c("div", { staticClass: "dropdown-menu", class: {
|
|
1714
|
-
"dropdown-menu-left": _vm.align === "left",
|
|
1715
|
-
"dropdown-menu-right": _vm.align === "right",
|
|
1716
|
-
"show": _vm.show
|
|
1717
|
-
}, attrs: { "aria-labelledby": _vm.$attrs.id } }, [_c("dropdown-menu-items", [_vm._t("default")], 2)], 1);
|
|
1718
|
-
};
|
|
1719
|
-
var staticRenderFns$4 = [];
|
|
1720
|
-
const __vue2_script$4 = {
|
|
1155
|
+
const ln = (e, t) => Nt("div", {}, Bt(t.slots.default())), pn = ln, fn = {
|
|
1721
1156
|
name: "DropdownMenu",
|
|
1722
1157
|
components: {
|
|
1723
|
-
DropdownMenuItems
|
|
1158
|
+
DropdownMenuItems: pn
|
|
1724
1159
|
},
|
|
1725
1160
|
props: {
|
|
1726
1161
|
align: {
|
|
1727
1162
|
type: String,
|
|
1728
1163
|
default: "left",
|
|
1729
|
-
validate(
|
|
1730
|
-
return ["left", "right"].indexOf(
|
|
1164
|
+
validate(e) {
|
|
1165
|
+
return ["left", "right"].indexOf(e.toLowerCase()) !== -1;
|
|
1731
1166
|
}
|
|
1732
1167
|
},
|
|
1733
1168
|
show: Boolean
|
|
1734
1169
|
}
|
|
1735
|
-
};
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
}
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1170
|
+
}, un = ["aria-labelledby"];
|
|
1171
|
+
function cn(e, t, r, n, o, i) {
|
|
1172
|
+
const a = te("dropdown-menu-items");
|
|
1173
|
+
return W(), Xe("div", {
|
|
1174
|
+
class: F(["dropdown-menu", {
|
|
1175
|
+
"dropdown-menu-left": r.align === "left",
|
|
1176
|
+
"dropdown-menu-right": r.align === "right",
|
|
1177
|
+
show: r.show
|
|
1178
|
+
}]),
|
|
1179
|
+
"aria-labelledby": e.$attrs.id
|
|
1180
|
+
}, [
|
|
1181
|
+
we(a, null, {
|
|
1182
|
+
default: B(() => [
|
|
1183
|
+
P(e.$slots, "default", {
|
|
1184
|
+
onClick: t[0] || (t[0] = (...l) => e.onItemClick && e.onItemClick(...l))
|
|
1185
|
+
})
|
|
1186
|
+
]),
|
|
1187
|
+
_: 3
|
|
1188
|
+
})
|
|
1189
|
+
], 10, un);
|
|
1190
|
+
}
|
|
1191
|
+
const dn = /* @__PURE__ */ fe(fn, [["render", cn]]), vn = {
|
|
1754
1192
|
props: {
|
|
1755
1193
|
expanded: {
|
|
1756
1194
|
type: Boolean,
|
|
1757
|
-
default:
|
|
1195
|
+
default: !1
|
|
1758
1196
|
},
|
|
1759
1197
|
id: String,
|
|
1760
1198
|
href: String,
|
|
@@ -1762,61 +1200,57 @@ const __vue2_script$3 = {
|
|
|
1762
1200
|
},
|
|
1763
1201
|
computed: {
|
|
1764
1202
|
is() {
|
|
1765
|
-
|
|
1766
|
-
return "router-link";
|
|
1767
|
-
}
|
|
1768
|
-
if (this.href) {
|
|
1769
|
-
return "a";
|
|
1770
|
-
}
|
|
1771
|
-
return "button";
|
|
1203
|
+
return this.to ? "router-link" : this.href ? "a" : "button";
|
|
1772
1204
|
}
|
|
1773
1205
|
}
|
|
1774
1206
|
};
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
}
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1207
|
+
function hn(e, t, r, n, o, i) {
|
|
1208
|
+
return W(), ee(He(i.is), ge({ id: r.id }, r.to ? { to: r.to } : { href: r.href }, {
|
|
1209
|
+
"aria-haspopup": "true",
|
|
1210
|
+
"aria-expanded": r.expanded,
|
|
1211
|
+
type: i.is === "button" ? "button" : void 0
|
|
1212
|
+
}), {
|
|
1213
|
+
default: B(() => [
|
|
1214
|
+
P(e.$slots, "default")
|
|
1215
|
+
]),
|
|
1216
|
+
_: 3
|
|
1217
|
+
}, 16, ["id", "aria-expanded", "type"]);
|
|
1218
|
+
}
|
|
1219
|
+
const mn = /* @__PURE__ */ fe(vn, [["render", hn]]), Dt = {
|
|
1786
1220
|
components: {
|
|
1787
|
-
BtnDropdownAction,
|
|
1788
|
-
BtnGroup,
|
|
1789
|
-
DropdownMenu
|
|
1221
|
+
BtnDropdownAction: mn,
|
|
1222
|
+
BtnGroup: an,
|
|
1223
|
+
DropdownMenu: dn
|
|
1790
1224
|
},
|
|
1791
|
-
extends:
|
|
1225
|
+
extends: _r,
|
|
1792
1226
|
props: {
|
|
1793
1227
|
align: {
|
|
1794
1228
|
type: String,
|
|
1795
1229
|
default: "left",
|
|
1796
|
-
validate(
|
|
1797
|
-
return ["left", "right"].indexOf(
|
|
1230
|
+
validate(e) {
|
|
1231
|
+
return ["left", "right"].indexOf(e.toLowerCase()) !== -1;
|
|
1798
1232
|
}
|
|
1799
1233
|
},
|
|
1800
1234
|
animated: {
|
|
1801
1235
|
type: Boolean,
|
|
1802
|
-
default:
|
|
1236
|
+
default: !0
|
|
1803
1237
|
},
|
|
1804
1238
|
buttonClass: [Object, String],
|
|
1805
1239
|
caret: {
|
|
1806
1240
|
type: Boolean,
|
|
1807
|
-
default:
|
|
1241
|
+
default: !0
|
|
1808
1242
|
},
|
|
1809
1243
|
dropup: {
|
|
1810
1244
|
type: Boolean,
|
|
1811
|
-
default:
|
|
1245
|
+
default: !1
|
|
1812
1246
|
},
|
|
1813
1247
|
dropright: {
|
|
1814
1248
|
type: Boolean,
|
|
1815
|
-
default:
|
|
1249
|
+
default: !1
|
|
1816
1250
|
},
|
|
1817
1251
|
dropleft: {
|
|
1818
1252
|
type: Boolean,
|
|
1819
|
-
default:
|
|
1253
|
+
default: !1
|
|
1820
1254
|
},
|
|
1821
1255
|
height: String,
|
|
1822
1256
|
href: String,
|
|
@@ -1828,11 +1262,11 @@ var DropdownHandler = {
|
|
|
1828
1262
|
},
|
|
1829
1263
|
rotate: {
|
|
1830
1264
|
type: Boolean,
|
|
1831
|
-
default:
|
|
1265
|
+
default: !1
|
|
1832
1266
|
},
|
|
1833
1267
|
split: {
|
|
1834
1268
|
type: Boolean,
|
|
1835
|
-
default:
|
|
1269
|
+
default: !1
|
|
1836
1270
|
},
|
|
1837
1271
|
to: [String, Object],
|
|
1838
1272
|
type: {
|
|
@@ -1844,22 +1278,33 @@ var DropdownHandler = {
|
|
|
1844
1278
|
data() {
|
|
1845
1279
|
return {
|
|
1846
1280
|
popper: null,
|
|
1847
|
-
triggerAnimation:
|
|
1848
|
-
expanded:
|
|
1281
|
+
triggerAnimation: !1,
|
|
1282
|
+
expanded: !1
|
|
1849
1283
|
};
|
|
1850
1284
|
},
|
|
1851
1285
|
computed: {
|
|
1286
|
+
scope() {
|
|
1287
|
+
return {
|
|
1288
|
+
placement: this.placement,
|
|
1289
|
+
variantClassPrefix: this.variantClassPrefix,
|
|
1290
|
+
sizeableClassPrefix: this.sizeableClassPrefix,
|
|
1291
|
+
classes: this.classes,
|
|
1292
|
+
actionClasses: this.actionClasses,
|
|
1293
|
+
toggleStyle: this.toggleStyle,
|
|
1294
|
+
toggleClasses: this.toggleClasses,
|
|
1295
|
+
focus: this.focus,
|
|
1296
|
+
queryFocusable: this.queryFocusable,
|
|
1297
|
+
isFocusable: this.isFocusable,
|
|
1298
|
+
toggle: this.toggle,
|
|
1299
|
+
show: this.show,
|
|
1300
|
+
hide: this.hide,
|
|
1301
|
+
onBlur: this.onBlur,
|
|
1302
|
+
onClickItem: this.onClickItem,
|
|
1303
|
+
onClickToggle: this.onClickToggle
|
|
1304
|
+
};
|
|
1305
|
+
},
|
|
1852
1306
|
placement() {
|
|
1853
|
-
|
|
1854
|
-
return "top";
|
|
1855
|
-
}
|
|
1856
|
-
if (this.dropleft) {
|
|
1857
|
-
return "left";
|
|
1858
|
-
}
|
|
1859
|
-
if (this.dropright) {
|
|
1860
|
-
return "right";
|
|
1861
|
-
}
|
|
1862
|
-
return "bottom";
|
|
1307
|
+
return this.dropup ? "top" : this.dropleft ? "left" : this.dropright ? "right" : "bottom";
|
|
1863
1308
|
},
|
|
1864
1309
|
variantClassPrefix() {
|
|
1865
1310
|
return "btn" + (this.outline ? "-outline" : "");
|
|
@@ -1869,22 +1314,22 @@ var DropdownHandler = {
|
|
|
1869
1314
|
},
|
|
1870
1315
|
classes() {
|
|
1871
1316
|
return {
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1317
|
+
dropdown: this.dropup && this.dropright && this.dropleft,
|
|
1318
|
+
dropup: this.dropup,
|
|
1319
|
+
dropright: this.dropright,
|
|
1320
|
+
dropleft: this.dropleft,
|
|
1876
1321
|
"icon-only": !this.nav && !this.split && !!this.$slots.icon && !this.$slots.label,
|
|
1877
1322
|
"hide-caret": !this.caret,
|
|
1878
|
-
|
|
1323
|
+
expanded: this.expanded,
|
|
1879
1324
|
"rotate-90": !this.nav && this.split && this.rotate && this.expanded
|
|
1880
1325
|
};
|
|
1881
1326
|
},
|
|
1882
1327
|
actionClasses() {
|
|
1883
1328
|
return Object.assign({
|
|
1884
|
-
|
|
1329
|
+
btn: !this.nav,
|
|
1885
1330
|
[this.variantClass]: !this.nav && !!this.variant,
|
|
1886
1331
|
[this.sizeableClass]: !!this.size
|
|
1887
|
-
}, typeof this.buttonClass
|
|
1332
|
+
}, typeof this.buttonClass == "object" ? this.buttonClass : {
|
|
1888
1333
|
[this.buttonClass]: !!this.buttonClass
|
|
1889
1334
|
});
|
|
1890
1335
|
},
|
|
@@ -1896,16 +1341,16 @@ var DropdownHandler = {
|
|
|
1896
1341
|
},
|
|
1897
1342
|
toggleClasses() {
|
|
1898
1343
|
return Object.assign({
|
|
1899
|
-
|
|
1900
|
-
|
|
1344
|
+
active: this.active,
|
|
1345
|
+
btn: !this.nav,
|
|
1901
1346
|
"btn-block": !!this.block,
|
|
1902
1347
|
"nav-link": !!this.nav,
|
|
1903
1348
|
"rotate-90": !this.split && this.rotate && this.expanded,
|
|
1904
|
-
"dropdown-toggle":
|
|
1349
|
+
"dropdown-toggle": !0,
|
|
1905
1350
|
"dropdown-toggle-split": !this.nav && this.split,
|
|
1906
1351
|
[this.variantClass]: !this.nav && !!this.variant,
|
|
1907
1352
|
[this.sizeableClass]: !!this.size
|
|
1908
|
-
}, typeof this.buttonClass
|
|
1353
|
+
}, typeof this.buttonClass == "object" ? this.buttonClass : {
|
|
1909
1354
|
[this.buttonClass]: !!this.buttonClass
|
|
1910
1355
|
});
|
|
1911
1356
|
}
|
|
@@ -1920,208 +1365,233 @@ var DropdownHandler = {
|
|
|
1920
1365
|
queryFocusable() {
|
|
1921
1366
|
return this.$el.querySelector(".dropdown-menu").querySelectorAll('label, input, select, textarea, [tabindex]:not([tabindex="-1"])');
|
|
1922
1367
|
},
|
|
1923
|
-
isFocusable(
|
|
1924
|
-
const
|
|
1925
|
-
for (let
|
|
1926
|
-
if (
|
|
1927
|
-
return
|
|
1928
|
-
|
|
1929
|
-
}
|
|
1930
|
-
return false;
|
|
1368
|
+
isFocusable(e) {
|
|
1369
|
+
const t = this.queryFocusable();
|
|
1370
|
+
for (let r in t)
|
|
1371
|
+
if (e === t[r])
|
|
1372
|
+
return !0;
|
|
1373
|
+
return !1;
|
|
1931
1374
|
},
|
|
1932
1375
|
toggle(e) {
|
|
1933
|
-
|
|
1376
|
+
this.expanded ? this.hide() : this.show();
|
|
1934
1377
|
},
|
|
1935
1378
|
show() {
|
|
1936
|
-
this.expanded =
|
|
1937
|
-
const
|
|
1938
|
-
|
|
1939
|
-
this.
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
});
|
|
1951
|
-
} else if (this.popper) {
|
|
1952
|
-
this.popper.update();
|
|
1953
|
-
}
|
|
1379
|
+
this.expanded = !0;
|
|
1380
|
+
const e = this.$refs.split && this.$refs.split.$el || this.$el;
|
|
1381
|
+
!this.nav && !this.popper ? this.popper = Gr(e, this.$refs.menu.$el, {
|
|
1382
|
+
placement: `${this.placement}-${this.align === "left" ? "start" : "end"}`,
|
|
1383
|
+
onFirstUpdate: () => {
|
|
1384
|
+
this.triggerAnimation = this.animated;
|
|
1385
|
+
},
|
|
1386
|
+
modifiers: [{
|
|
1387
|
+
name: "offset",
|
|
1388
|
+
options: {
|
|
1389
|
+
offset: [0, this.nav ? 1 : this.offset]
|
|
1390
|
+
}
|
|
1391
|
+
}]
|
|
1392
|
+
}) : this.popper && this.popper.update();
|
|
1954
1393
|
},
|
|
1955
1394
|
hide() {
|
|
1956
|
-
this.expanded =
|
|
1395
|
+
this.expanded = !1;
|
|
1957
1396
|
},
|
|
1958
1397
|
onBlur(e) {
|
|
1959
|
-
|
|
1960
|
-
this.hide();
|
|
1961
|
-
}
|
|
1398
|
+
this.$el.contains(e.relatedTarget) || this.hide();
|
|
1962
1399
|
},
|
|
1963
1400
|
onClickItem(e) {
|
|
1964
|
-
|
|
1965
|
-
this.hide();
|
|
1966
|
-
}
|
|
1401
|
+
this.isFocusable(e.target) || this.hide();
|
|
1967
1402
|
},
|
|
1968
1403
|
onClickToggle(e) {
|
|
1969
|
-
this.$emit("click-toggle", e);
|
|
1970
|
-
if (!e.defaultPrevented) {
|
|
1971
|
-
this.toggle();
|
|
1972
|
-
}
|
|
1404
|
+
e.target.focus(), this.$emit("click-toggle", e), e.defaultPrevented || this.toggle();
|
|
1973
1405
|
}
|
|
1974
1406
|
},
|
|
1975
1407
|
watch: {
|
|
1976
|
-
expanded(
|
|
1408
|
+
expanded(e) {
|
|
1977
1409
|
this.$nextTick(() => {
|
|
1978
|
-
this.$emit(
|
|
1979
|
-
this.$emit("toggle", value);
|
|
1410
|
+
this.$emit(e ? "show" : "hide"), this.$emit("toggle", e);
|
|
1980
1411
|
});
|
|
1981
1412
|
}
|
|
1982
1413
|
}
|
|
1983
|
-
}
|
|
1984
|
-
var render$2 = function() {
|
|
1985
|
-
var _vm = this;
|
|
1986
|
-
var _h = _vm.$createElement;
|
|
1987
|
-
var _c = _vm._self._c || _h;
|
|
1988
|
-
return _c("btn-group", { staticClass: "btn-dropdown-split", class: _vm.classes, on: { "click": _vm.onClick } }, [!_vm.dropleft ? _vm._t("button", function() {
|
|
1989
|
-
return [!_vm.dropleft ? _c("btn-dropdown-action", { ref: "button", class: _vm.actionClasses, attrs: { "id": _vm.$attrs.id, "expanded": _vm.expanded, "href": _vm.href, "to": _vm.to }, nativeOn: { "click": function($event) {
|
|
1990
|
-
return function(e) {
|
|
1991
|
-
return _vm.$emit("click", e);
|
|
1992
|
-
}.apply(null, arguments);
|
|
1993
|
-
} } }, [_vm._t("icon"), _vm._t("label", function() {
|
|
1994
|
-
return [_vm._v(" " + _vm._s(_vm.label) + " ")];
|
|
1995
|
-
})], 2) : _vm._e()];
|
|
1996
|
-
}, null, this) : _vm._e(), _c("btn-group", { ref: "split" }, [_vm._t("split", function() {
|
|
1997
|
-
return [_vm.split ? _c("button", { class: _vm.toggleClasses, attrs: { "id": _vm.$attrs.id, "type": "button", "aria-haspopup": "true", "aria-expanded": _vm.expanded }, on: { "blur": _vm.onBlur, "click": _vm.onClickToggle } }) : _vm._e()];
|
|
1998
|
-
}, null, this), _c("dropdown-menu", { ref: "menu", class: { animated: _vm.triggerAnimation }, attrs: { "id": _vm.$attrs.id, "align": _vm.align, "show": _vm.expanded }, on: { "click-item": _vm.onClickItem, "blur-item": _vm.onBlur } }, [_vm._t("default")], 2)], 2), _vm.dropleft ? _vm._t("button", function() {
|
|
1999
|
-
return [_vm.dropleft ? _c("btn-dropdown-action", { ref: "button", class: _vm.actionClasses, attrs: { "id": _vm.$attrs.id, "expanded": _vm.expanded, "href": _vm.href, "to": _vm.to }, nativeOn: { "click": function($event) {
|
|
2000
|
-
return function(e) {
|
|
2001
|
-
return _vm.$emit("click", e);
|
|
2002
|
-
}.apply(null, arguments);
|
|
2003
|
-
} } }, [_vm._t("icon"), _vm._t("label", function() {
|
|
2004
|
-
return [_vm._v(" " + _vm._s(_vm.label) + " ")];
|
|
2005
|
-
})], 2) : _vm._e()];
|
|
2006
|
-
}, null, this) : _vm._e()], 2);
|
|
2007
|
-
};
|
|
2008
|
-
var staticRenderFns$2 = [];
|
|
2009
|
-
const __vue2_script$2 = {
|
|
1414
|
+
}, gn = {
|
|
2010
1415
|
mixins: [
|
|
2011
|
-
|
|
1416
|
+
Dt
|
|
2012
1417
|
]
|
|
2013
|
-
};
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
}
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
1418
|
+
}, bn = ["id", "aria-expanded"];
|
|
1419
|
+
function yn(e, t, r, n, o, i) {
|
|
1420
|
+
const a = te("btn-dropdown-action"), l = te("dropdown-menu"), s = te("btn-group");
|
|
1421
|
+
return W(), ee(s, {
|
|
1422
|
+
class: F([e.classes, "btn-dropdown-split"]),
|
|
1423
|
+
onClick: e.onClick
|
|
1424
|
+
}, {
|
|
1425
|
+
default: B(() => [
|
|
1426
|
+
e.dropleft ? de("", !0) : P(e.$slots, "button", ie(ge({ key: 0 }, e.scope)), () => [
|
|
1427
|
+
e.dropleft ? de("", !0) : (W(), ee(a, {
|
|
1428
|
+
key: 0,
|
|
1429
|
+
id: e.$attrs.id,
|
|
1430
|
+
ref: "button",
|
|
1431
|
+
expanded: e.expanded,
|
|
1432
|
+
href: e.href,
|
|
1433
|
+
to: e.to,
|
|
1434
|
+
class: F(e.actionClasses),
|
|
1435
|
+
onClick: t[0] || (t[0] = (f) => e.$emit("click", f))
|
|
1436
|
+
}, {
|
|
1437
|
+
default: B(() => [
|
|
1438
|
+
P(e.$slots, "icon"),
|
|
1439
|
+
P(e.$slots, "label", {}, () => [
|
|
1440
|
+
be(ye(e.label), 1)
|
|
1441
|
+
])
|
|
1442
|
+
]),
|
|
1443
|
+
_: 3
|
|
1444
|
+
}, 8, ["id", "expanded", "href", "to", "class"]))
|
|
1445
|
+
]),
|
|
1446
|
+
we(s, { ref: "split" }, {
|
|
1447
|
+
default: B(() => [
|
|
1448
|
+
P(e.$slots, "split", ie(Re(e.scope)), () => [
|
|
1449
|
+
e.split ? (W(), Xe("button", {
|
|
1450
|
+
key: 0,
|
|
1451
|
+
id: e.$attrs.id,
|
|
1452
|
+
type: "button",
|
|
1453
|
+
"aria-haspopup": "true",
|
|
1454
|
+
"aria-expanded": e.expanded,
|
|
1455
|
+
class: F(e.toggleClasses),
|
|
1456
|
+
onBlur: t[1] || (t[1] = (...f) => e.onBlur && e.onBlur(...f)),
|
|
1457
|
+
onClick: t[2] || (t[2] = (...f) => e.onClickToggle && e.onClickToggle(...f))
|
|
1458
|
+
}, null, 42, bn)) : de("", !0)
|
|
1459
|
+
]),
|
|
1460
|
+
we(l, {
|
|
1461
|
+
id: e.$attrs.id,
|
|
1462
|
+
ref: "menu",
|
|
1463
|
+
align: e.align,
|
|
1464
|
+
show: e.expanded,
|
|
1465
|
+
class: F({ animated: e.triggerAnimation }),
|
|
1466
|
+
onClickItem: e.onClickItem,
|
|
1467
|
+
onBlurItem: e.onBlur
|
|
1468
|
+
}, {
|
|
1469
|
+
default: B(() => [
|
|
1470
|
+
P(e.$slots, "default")
|
|
1471
|
+
]),
|
|
1472
|
+
_: 3
|
|
1473
|
+
}, 8, ["id", "align", "show", "class", "onClickItem", "onBlurItem"])
|
|
1474
|
+
]),
|
|
1475
|
+
_: 3
|
|
1476
|
+
}, 512),
|
|
1477
|
+
e.dropleft ? P(e.$slots, "button", ie(ge({ key: 1 }, e.scope)), () => [
|
|
1478
|
+
e.dropleft ? (W(), ee(a, {
|
|
1479
|
+
key: 0,
|
|
1480
|
+
id: e.$attrs.id,
|
|
1481
|
+
ref: "button",
|
|
1482
|
+
expanded: e.expanded,
|
|
1483
|
+
href: e.href,
|
|
1484
|
+
to: e.to,
|
|
1485
|
+
class: F(e.actionClasses),
|
|
1486
|
+
onClick: t[3] || (t[3] = (f) => e.$emit("click", f))
|
|
1487
|
+
}, {
|
|
1488
|
+
default: B(() => [
|
|
1489
|
+
P(e.$slots, "icon"),
|
|
1490
|
+
P(e.$slots, "label", {}, () => [
|
|
1491
|
+
be(ye(e.label), 1)
|
|
1492
|
+
])
|
|
1493
|
+
]),
|
|
1494
|
+
_: 3
|
|
1495
|
+
}, 8, ["id", "expanded", "href", "to", "class"])) : de("", !0)
|
|
1496
|
+
]) : de("", !0)
|
|
1497
|
+
]),
|
|
1498
|
+
_: 3
|
|
1499
|
+
}, 8, ["class", "onClick"]);
|
|
1500
|
+
}
|
|
1501
|
+
const wn = /* @__PURE__ */ fe(gn, [["render", yn]]), xn = {
|
|
2040
1502
|
mixins: [
|
|
2041
|
-
|
|
1503
|
+
Dt
|
|
2042
1504
|
]
|
|
2043
1505
|
};
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
var args = [], len = arguments.length;
|
|
2092
|
-
while (len--)
|
|
2093
|
-
args[len] = arguments[len];
|
|
2094
|
-
return (ref = this$1$1).$emit.apply(ref, ["toggle"].concat(args));
|
|
2095
|
-
} }, scopedSlots: _vm._u([{ key: "icon", fn: function() {
|
|
2096
|
-
return [_vm._t("icon")];
|
|
2097
|
-
}, proxy: true }, _vm.$attrs.label || this.$slots.label ? { key: "label", fn: function() {
|
|
2098
|
-
return [_vm._t("label", function() {
|
|
2099
|
-
return [_vm._v(" " + _vm._s(_vm.$attrs.label) + " ")];
|
|
2100
|
-
})];
|
|
2101
|
-
}, proxy: true } : null, { key: "button", fn: function(slot) {
|
|
2102
|
-
return [_vm._t("button", null, null, slot)];
|
|
2103
|
-
} }, { key: "split", fn: function(slot) {
|
|
2104
|
-
return [_vm._t("split", null, null, slot)];
|
|
2105
|
-
} }], null, true) }, "component", _vm.$attrs, false), [_vm._t("default")], 2);
|
|
2106
|
-
};
|
|
2107
|
-
var staticRenderFns = [];
|
|
2108
|
-
var BtnDropdown_vue_vue_type_style_index_0_lang = "";
|
|
2109
|
-
const __vue2_script = {
|
|
1506
|
+
function On(e, t, r, n, o, i) {
|
|
1507
|
+
const a = te("btn-dropdown-action"), l = te("dropdown-menu"), s = te("btn-group");
|
|
1508
|
+
return W(), ee(s, {
|
|
1509
|
+
class: F(e.classes)
|
|
1510
|
+
}, {
|
|
1511
|
+
default: B(() => [
|
|
1512
|
+
P(e.$slots, "button", ie(Re(e.scope)), () => [
|
|
1513
|
+
we(a, {
|
|
1514
|
+
id: e.$attrs.id,
|
|
1515
|
+
ref: "button",
|
|
1516
|
+
expanded: e.expanded,
|
|
1517
|
+
href: e.href,
|
|
1518
|
+
to: e.to,
|
|
1519
|
+
style: Mt(e.toggleStyle),
|
|
1520
|
+
class: F(e.toggleClasses),
|
|
1521
|
+
onBlur: e.onBlur,
|
|
1522
|
+
onClick: e.onClickToggle
|
|
1523
|
+
}, {
|
|
1524
|
+
default: B(() => [
|
|
1525
|
+
P(e.$slots, "icon"),
|
|
1526
|
+
P(e.$slots, "label", {}, () => [
|
|
1527
|
+
be(ye(e.label), 1)
|
|
1528
|
+
])
|
|
1529
|
+
]),
|
|
1530
|
+
_: 3
|
|
1531
|
+
}, 8, ["id", "expanded", "href", "to", "style", "class", "onBlur", "onClick"])
|
|
1532
|
+
]),
|
|
1533
|
+
we(l, {
|
|
1534
|
+
id: e.$attrs.id,
|
|
1535
|
+
ref: "menu",
|
|
1536
|
+
align: e.align,
|
|
1537
|
+
show: e.expanded,
|
|
1538
|
+
class: F({ animated: e.triggerAnimation }),
|
|
1539
|
+
onBlurItem: e.onBlur,
|
|
1540
|
+
onClickItem: e.onClickItem
|
|
1541
|
+
}, {
|
|
1542
|
+
default: B(() => [
|
|
1543
|
+
P(e.$slots, "default")
|
|
1544
|
+
]),
|
|
1545
|
+
_: 3
|
|
1546
|
+
}, 8, ["id", "align", "show", "class", "onBlurItem", "onClickItem"])
|
|
1547
|
+
]),
|
|
1548
|
+
_: 3
|
|
1549
|
+
}, 8, ["class"]);
|
|
1550
|
+
}
|
|
1551
|
+
const $n = /* @__PURE__ */ fe(xn, [["render", On]]);
|
|
1552
|
+
const Cn = {
|
|
2110
1553
|
name: "BtnDropdown",
|
|
2111
1554
|
components: {
|
|
2112
|
-
BtnDropdownSplit,
|
|
2113
|
-
BtnDropdownSingle
|
|
1555
|
+
BtnDropdownSplit: wn,
|
|
1556
|
+
BtnDropdownSingle: $n
|
|
2114
1557
|
},
|
|
2115
|
-
inheritAttrs:
|
|
1558
|
+
inheritAttrs: !1
|
|
1559
|
+
};
|
|
1560
|
+
function Pn(e, t, r, n, o, i) {
|
|
1561
|
+
return W(), ee(He(e.$attrs.split === void 0 || !!e.$attrs.nav ? "btn-dropdown-single" : "btn-dropdown-split"), ge({ class: "btn-dropdown" }, e.$attrs, {
|
|
1562
|
+
onClick: t[0] || (t[0] = (...a) => this.$emit("click", ...a)),
|
|
1563
|
+
onClickToggle: t[1] || (t[1] = (...a) => this.$emit("click-toggle", ...a)),
|
|
1564
|
+
onDropdown: t[2] || (t[2] = (...a) => this.$emit("dropdown", ...a)),
|
|
1565
|
+
onShow: t[3] || (t[3] = (...a) => this.$emit("show", ...a)),
|
|
1566
|
+
onHide: t[4] || (t[4] = (...a) => this.$emit("hide", ...a)),
|
|
1567
|
+
onToggle: t[5] || (t[5] = (...a) => this.$emit("toggle", ...a))
|
|
1568
|
+
}), Lt({
|
|
1569
|
+
icon: B(() => [
|
|
1570
|
+
P(e.$slots, "icon")
|
|
1571
|
+
]),
|
|
1572
|
+
button: B((a) => [
|
|
1573
|
+
P(e.$slots, "button", ie(Re(a)))
|
|
1574
|
+
]),
|
|
1575
|
+
split: B((a) => [
|
|
1576
|
+
P(e.$slots, "split", ie(Re(a)))
|
|
1577
|
+
]),
|
|
1578
|
+
default: B(() => [
|
|
1579
|
+
P(e.$slots, "default")
|
|
1580
|
+
]),
|
|
1581
|
+
_: 2
|
|
1582
|
+
}, [
|
|
1583
|
+
e.$attrs.label || this.$slots.label ? {
|
|
1584
|
+
name: "label",
|
|
1585
|
+
fn: B(() => [
|
|
1586
|
+
P(e.$slots, "label", {}, () => [
|
|
1587
|
+
be(ye(e.$attrs.label), 1)
|
|
1588
|
+
])
|
|
1589
|
+
]),
|
|
1590
|
+
key: "0"
|
|
1591
|
+
} : void 0
|
|
1592
|
+
]), 1040);
|
|
1593
|
+
}
|
|
1594
|
+
const Sn = /* @__PURE__ */ fe(Cn, [["render", Pn]]);
|
|
1595
|
+
export {
|
|
1596
|
+
Sn as BtnDropdown
|
|
2116
1597
|
};
|
|
2117
|
-
const __cssModules = {};
|
|
2118
|
-
var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles, null, null, null);
|
|
2119
|
-
function __vue2_injectStyles(context) {
|
|
2120
|
-
for (let o in __cssModules) {
|
|
2121
|
-
this[o] = __cssModules[o];
|
|
2122
|
-
}
|
|
2123
|
-
}
|
|
2124
|
-
var BtnDropdown = /* @__PURE__ */ function() {
|
|
2125
|
-
return __component__.exports;
|
|
2126
|
-
}();
|
|
2127
|
-
export { BtnDropdown };
|