@vergelijkdirect/comparison-forms 1.3.17-ver-8380.1 → 1.3.17-ver-8380.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/dist-rollup/comparison-forms.js +30271 -6
  2. package/dist-rollup/comparison-forms.umd.cjs +29 -15
  3. package/package.json +4 -7
  4. package/dist-rollup/AddressHandler-jwYRDHTI.js +0 -288
  5. package/dist-rollup/BikeForm-30I53uCm.js +0 -126
  6. package/dist-rollup/BikeFormHorizontal-u1PW-9KV.js +0 -126
  7. package/dist-rollup/BirthdateInput-1tsGzxTx.js +0 -84
  8. package/dist-rollup/BusinessCarForm-oeBpet3X.js +0 -119
  9. package/dist-rollup/BusinessCarFormHorizontal-lBxuzRso.js +0 -119
  10. package/dist-rollup/CarForm-xTslX4mq.js +0 -102
  11. package/dist-rollup/CarFormHorizontal-z_-Ew9Ji.js +0 -101
  12. package/dist-rollup/CaravanForm-BWUCqXZ8.js +0 -137
  13. package/dist-rollup/CaravanFormHorizontal-qVPTYW4D.js +0 -137
  14. package/dist-rollup/CaravanFormOld-JaY01RDW.js +0 -130
  15. package/dist-rollup/DefaultForm-4umbLheg.js +0 -60
  16. package/dist-rollup/DefaultInput-zxU1ufPA.js +0 -435
  17. package/dist-rollup/DefaultPlainRadioGroup-i8P1ACl4.js +0 -145
  18. package/dist-rollup/DefaultSelect-t64f_R7v.js +0 -93
  19. package/dist-rollup/ErrorHandler-9Zxi6g3R.js +0 -45
  20. package/dist-rollup/FamilyCompositionInput-dWbnEFac.js +0 -51
  21. package/dist-rollup/HouseForm-ga4I0nPa.js +0 -105
  22. package/dist-rollup/HouseFormHorizontal-zcNNDuDQ.js +0 -104
  23. package/dist-rollup/LegalAssistanceForm-M2yX72hT.js +0 -109
  24. package/dist-rollup/LegalAssistanceFormHorizontal-NztH_5Yq.js +0 -108
  25. package/dist-rollup/LiabilityForm-D09YaRGm.js +0 -102
  26. package/dist-rollup/LiabilityFormHorizontal-nV1JerpT.js +0 -102
  27. package/dist-rollup/LicensePlate-BMeYEcIe.js +0 -505
  28. package/dist-rollup/Loader-_esX79Uz.js +0 -1105
  29. package/dist-rollup/ManualNewValueModal-S0C68NGl.js +0 -2586
  30. package/dist-rollup/MopedForm-ZL3526H3.js +0 -112
  31. package/dist-rollup/MopedFormHorizontal-6btf9cMz.js +0 -112
  32. package/dist-rollup/MotorForm-M6FHM1pV.js +0 -111
  33. package/dist-rollup/MotorFormHorizontal-NcCjW3P5.js +0 -105
  34. package/dist-rollup/PackageForm-HcPVbqOI.js +0 -305
  35. package/dist-rollup/PetForm-OvLvibk1.js +0 -115
  36. package/dist-rollup/PetFormHorizontal-u7P_iNbx.js +0 -124
  37. package/dist-rollup/PetFormOld-9yiD9akJ.js +0 -126
  38. package/dist-rollup/PhoneInput-l6YwvwSj.js +0 -131
  39. package/dist-rollup/QuestionnaireForm-mDU7NBoo.js +0 -64
  40. package/dist-rollup/QuotationForm-j1i5zScM.js +0 -183
  41. package/dist-rollup/RiskScannerForm-JGojbshZ.js +0 -152
  42. package/dist-rollup/SearchableSelect-1GCKHHKe.js +0 -232
  43. package/dist-rollup/Session.util-aedjr12J.js +0 -42
  44. package/dist-rollup/SimpleCard-_Mg9wAqJ.js +0 -50
  45. package/dist-rollup/TravelForm-goy4CZNN.js +0 -117
  46. package/dist-rollup/TravelFormHorizontal-q396jXWh.js +0 -117
  47. package/dist-rollup/TravelFormOld-83YKTgP8.js +0 -123
  48. package/dist-rollup/ZipcodeInput-z5W6JSl0.js +0 -61
  49. package/dist-rollup/_commonjsHelpers-4t9S7M5p.js +0 -30
  50. package/dist-rollup/array.util-agNtEyks.js +0 -16
  51. package/dist-rollup/bikeBrands.model-FYepHp3k.js +0 -338
  52. package/dist-rollup/businessCar-Mt6F5U-j.js +0 -188
  53. package/dist-rollup/car-oIzIKvsB.js +0 -85
  54. package/dist-rollup/common-J_DOueuE.js +0 -1577
  55. package/dist-rollup/createLoanComparisonForm-T4s_32PC.js +0 -96
  56. package/dist-rollup/familyComposition.model-1F80igwZ.js +0 -21
  57. package/dist-rollup/familySize.model-9dESnIuL.js +0 -98
  58. package/dist-rollup/form-radio-group-J-EQJhh9.js +0 -1238
  59. package/dist-rollup/house-iRMRIU6o.js +0 -73
  60. package/dist-rollup/index-WjnHra7k.js +0 -619
  61. package/dist-rollup/liability-W6z2ze1t.js +0 -73
  62. package/dist-rollup/loanPurpose-nICjCm1d.js +0 -273
  63. package/dist-rollup/moped-T6_xyOsb.js +0 -84
  64. package/dist-rollup/motor-fCU2n3O5.js +0 -83
  65. package/dist-rollup/paymentTerms.model-J3WNhgPU.js +0 -145
  66. package/dist-rollup/updateLoanComparisonForm-iyTnJD5A.js +0 -92
  67. package/dist-rollup/useSkipUpdateComparison-WseHt-cH.js +0 -437
  68. package/dist-rollup/vue-popper.min-O3ciEEKg.js +0 -1159
@@ -1,1159 +0,0 @@
1
- import { a as ce, c as de, g as he } from "./_commonjsHelpers-4t9S7M5p.js";
2
- var K = { exports: {} };
3
- /**!
4
- * @fileOverview Kickass library to create and place poppers near their reference elements.
5
- * @version 1.16.1
6
- * @license
7
- * Copyright (c) 2016 Federico Zivolo and contributors
8
- *
9
- * Permission is hereby granted, free of charge, to any person obtaining a copy
10
- * of this software and associated documentation files (the "Software"), to deal
11
- * in the Software without restriction, including without limitation the rights
12
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
- * copies of the Software, and to permit persons to whom the Software is
14
- * furnished to do so, subject to the following conditions:
15
- *
16
- * The above copyright notice and this permission notice shall be included in all
17
- * copies or substantial portions of the Software.
18
- *
19
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25
- * SOFTWARE.
26
- */
27
- var L = typeof window != "undefined" && typeof document != "undefined" && typeof navigator != "undefined", ve = function() {
28
- for (var e = ["Edge", "Trident", "Firefox"], t = 0; t < e.length; t += 1)
29
- if (L && navigator.userAgent.indexOf(e[t]) >= 0)
30
- return 1;
31
- return 0;
32
- }();
33
- function me(e) {
34
- var t = !1;
35
- return function() {
36
- t || (t = !0, window.Promise.resolve().then(function() {
37
- t = !1, e();
38
- }));
39
- };
40
- }
41
- function ge(e) {
42
- var t = !1;
43
- return function() {
44
- t || (t = !0, setTimeout(function() {
45
- t = !1, e();
46
- }, ve));
47
- };
48
- }
49
- var we = L && window.Promise, be = we ? me : ge;
50
- function X(e) {
51
- var t = {};
52
- return e && t.toString.call(e) === "[object Function]";
53
- }
54
- function E(e, t) {
55
- if (e.nodeType !== 1)
56
- return [];
57
- var r = e.ownerDocument.defaultView, o = r.getComputedStyle(e, null);
58
- return t ? o[t] : o;
59
- }
60
- function H(e) {
61
- return e.nodeName === "HTML" ? e : e.parentNode || e.host;
62
- }
63
- function M(e) {
64
- if (!e)
65
- return document.body;
66
- switch (e.nodeName) {
67
- case "HTML":
68
- case "BODY":
69
- return e.ownerDocument.body;
70
- case "#document":
71
- return e.body;
72
- }
73
- var t = E(e), r = t.overflow, o = t.overflowX, i = t.overflowY;
74
- return /(auto|scroll|overlay)/.test(r + i + o) ? e : M(H(e));
75
- }
76
- function Q(e) {
77
- return e && e.referenceNode ? e.referenceNode : e;
78
- }
79
- var J = L && !!(window.MSInputMethodContext && document.documentMode), z = L && /MSIE 10/.test(navigator.userAgent);
80
- function T(e) {
81
- return e === 11 ? J : e === 10 ? z : J || z;
82
- }
83
- function S(e) {
84
- if (!e)
85
- return document.documentElement;
86
- for (var t = T(10) ? document.body : null, r = e.offsetParent || null; r === t && e.nextElementSibling; )
87
- r = (e = e.nextElementSibling).offsetParent;
88
- var o = r && r.nodeName;
89
- return !o || o === "BODY" || o === "HTML" ? e ? e.ownerDocument.documentElement : document.documentElement : ["TH", "TD", "TABLE"].indexOf(r.nodeName) !== -1 && E(r, "position") === "static" ? S(r) : r;
90
- }
91
- function ye(e) {
92
- var t = e.nodeName;
93
- return t === "BODY" ? !1 : t === "HTML" || S(e.firstElementChild) === e;
94
- }
95
- function F(e) {
96
- return e.parentNode !== null ? F(e.parentNode) : e;
97
- }
98
- function D(e, t) {
99
- if (!e || !e.nodeType || !t || !t.nodeType)
100
- return document.documentElement;
101
- var r = e.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_FOLLOWING, o = r ? e : t, i = r ? t : e, s = document.createRange();
102
- s.setStart(o, 0), s.setEnd(i, 0);
103
- var a = s.commonAncestorContainer;
104
- if (e !== a && t !== a || o.contains(i))
105
- return ye(a) ? a : S(a);
106
- var n = F(e);
107
- return n.host ? D(n.host, t) : D(e, F(t).host);
108
- }
109
- function P(e) {
110
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "top", r = t === "top" ? "scrollTop" : "scrollLeft", o = e.nodeName;
111
- if (o === "BODY" || o === "HTML") {
112
- var i = e.ownerDocument.documentElement, s = e.ownerDocument.scrollingElement || i;
113
- return s[r];
114
- }
115
- return e[r];
116
- }
117
- function Oe(e, t) {
118
- var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, o = P(t, "top"), i = P(t, "left"), s = r ? -1 : 1;
119
- return e.top += o * s, e.bottom += o * s, e.left += i * s, e.right += i * s, e;
120
- }
121
- function Y(e, t) {
122
- var r = t === "x" ? "Left" : "Top", o = r === "Left" ? "Right" : "Bottom";
123
- return parseFloat(e["border" + r + "Width"]) + parseFloat(e["border" + o + "Width"]);
124
- }
125
- function q(e, t, r, o) {
126
- return Math.max(t["offset" + e], t["scroll" + e], r["client" + e], r["offset" + e], r["scroll" + e], T(10) ? parseInt(r["offset" + e]) + parseInt(o["margin" + (e === "Height" ? "Top" : "Left")]) + parseInt(o["margin" + (e === "Height" ? "Bottom" : "Right")]) : 0);
127
- }
128
- function Z(e) {
129
- var t = e.body, r = e.documentElement, o = T(10) && getComputedStyle(r);
130
- return {
131
- height: q("Height", t, r, o),
132
- width: q("Width", t, r, o)
133
- };
134
- }
135
- var Ee = function(e, t) {
136
- if (!(e instanceof t))
137
- throw new TypeError("Cannot call a class as a function");
138
- }, Se = /* @__PURE__ */ function() {
139
- function e(t, r) {
140
- for (var o = 0; o < r.length; o++) {
141
- var i = r[o];
142
- i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(t, i.key, i);
143
- }
144
- }
145
- return function(t, r, o) {
146
- return r && e(t.prototype, r), o && e(t, o), t;
147
- };
148
- }(), x = function(e, t, r) {
149
- return t in e ? Object.defineProperty(e, t, {
150
- value: r,
151
- enumerable: !0,
152
- configurable: !0,
153
- writable: !0
154
- }) : e[t] = r, e;
155
- }, b = Object.assign || function(e) {
156
- for (var t = 1; t < arguments.length; t++) {
157
- var r = arguments[t];
158
- for (var o in r)
159
- Object.prototype.hasOwnProperty.call(r, o) && (e[o] = r[o]);
160
- }
161
- return e;
162
- };
163
- function O(e) {
164
- return b({}, e, {
165
- right: e.left + e.width,
166
- bottom: e.top + e.height
167
- });
168
- }
169
- function $(e) {
170
- var t = {};
171
- try {
172
- if (T(10)) {
173
- t = e.getBoundingClientRect();
174
- var r = P(e, "top"), o = P(e, "left");
175
- t.top += r, t.left += o, t.bottom += r, t.right += o;
176
- } else
177
- t = e.getBoundingClientRect();
178
- } catch (u) {
179
- }
180
- var i = {
181
- left: t.left,
182
- top: t.top,
183
- width: t.right - t.left,
184
- height: t.bottom - t.top
185
- }, s = e.nodeName === "HTML" ? Z(e.ownerDocument) : {}, a = s.width || e.clientWidth || i.width, n = s.height || e.clientHeight || i.height, f = e.offsetWidth - a, p = e.offsetHeight - n;
186
- if (f || p) {
187
- var l = E(e);
188
- f -= Y(l, "x"), p -= Y(l, "y"), i.width -= f, i.height -= p;
189
- }
190
- return O(i);
191
- }
192
- function I(e, t) {
193
- var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, o = T(10), i = t.nodeName === "HTML", s = $(e), a = $(t), n = M(e), f = E(t), p = parseFloat(f.borderTopWidth), l = parseFloat(f.borderLeftWidth);
194
- r && i && (a.top = Math.max(a.top, 0), a.left = Math.max(a.left, 0));
195
- var u = O({
196
- top: s.top - a.top - p,
197
- left: s.left - a.left - l,
198
- width: s.width,
199
- height: s.height
200
- });
201
- if (u.marginTop = 0, u.marginLeft = 0, !o && i) {
202
- var h = parseFloat(f.marginTop), c = parseFloat(f.marginLeft);
203
- u.top -= p - h, u.bottom -= p - h, u.left -= l - c, u.right -= l - c, u.marginTop = h, u.marginLeft = c;
204
- }
205
- return (o && !r ? t.contains(n) : t === n && n.nodeName !== "BODY") && (u = Oe(u, t)), u;
206
- }
207
- function Pe(e) {
208
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, r = e.ownerDocument.documentElement, o = I(e, r), i = Math.max(r.clientWidth, window.innerWidth || 0), s = Math.max(r.clientHeight, window.innerHeight || 0), a = t ? 0 : P(r), n = t ? 0 : P(r, "left"), f = {
209
- top: a - o.top + o.marginTop,
210
- left: n - o.left + o.marginLeft,
211
- width: i,
212
- height: s
213
- };
214
- return O(f);
215
- }
216
- function ee(e) {
217
- var t = e.nodeName;
218
- if (t === "BODY" || t === "HTML")
219
- return !1;
220
- if (E(e, "position") === "fixed")
221
- return !0;
222
- var r = H(e);
223
- return r ? ee(r) : !1;
224
- }
225
- function te(e) {
226
- if (!e || !e.parentElement || T())
227
- return document.documentElement;
228
- for (var t = e.parentElement; t && E(t, "transform") === "none"; )
229
- t = t.parentElement;
230
- return t || document.documentElement;
231
- }
232
- function V(e, t, r, o) {
233
- var i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1, s = { top: 0, left: 0 }, a = i ? te(e) : D(e, Q(t));
234
- if (o === "viewport")
235
- s = Pe(a, i);
236
- else {
237
- var n = void 0;
238
- o === "scrollParent" ? (n = M(H(t)), n.nodeName === "BODY" && (n = e.ownerDocument.documentElement)) : o === "window" ? n = e.ownerDocument.documentElement : n = o;
239
- var f = I(n, a, i);
240
- if (n.nodeName === "HTML" && !ee(a)) {
241
- var p = Z(e.ownerDocument), l = p.height, u = p.width;
242
- s.top += f.top - f.marginTop, s.bottom = l + f.top, s.left += f.left - f.marginLeft, s.right = u + f.left;
243
- } else
244
- s = f;
245
- }
246
- r = r || 0;
247
- var h = typeof r == "number";
248
- return s.left += h ? r : r.left || 0, s.top += h ? r : r.top || 0, s.right -= h ? r : r.right || 0, s.bottom -= h ? r : r.bottom || 0, s;
249
- }
250
- function xe(e) {
251
- var t = e.width, r = e.height;
252
- return t * r;
253
- }
254
- function re(e, t, r, o, i) {
255
- var s = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : 0;
256
- if (e.indexOf("auto") === -1)
257
- return e;
258
- var a = V(r, o, s, i), n = {
259
- top: {
260
- width: a.width,
261
- height: t.top - a.top
262
- },
263
- right: {
264
- width: a.right - t.right,
265
- height: a.height
266
- },
267
- bottom: {
268
- width: a.width,
269
- height: a.bottom - t.bottom
270
- },
271
- left: {
272
- width: t.left - a.left,
273
- height: a.height
274
- }
275
- }, f = Object.keys(n).map(function(h) {
276
- return b({
277
- key: h
278
- }, n[h], {
279
- area: xe(n[h])
280
- });
281
- }).sort(function(h, c) {
282
- return c.area - h.area;
283
- }), p = f.filter(function(h) {
284
- var c = h.width, d = h.height;
285
- return c >= r.clientWidth && d >= r.clientHeight;
286
- }), l = p.length > 0 ? p[0].key : f[0].key, u = e.split("-")[1];
287
- return l + (u ? "-" + u : "");
288
- }
289
- function oe(e, t, r) {
290
- var o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : null, i = o ? te(t) : D(t, Q(r));
291
- return I(r, i, o);
292
- }
293
- function ne(e) {
294
- var t = e.ownerDocument.defaultView, r = t.getComputedStyle(e), o = parseFloat(r.marginTop || 0) + parseFloat(r.marginBottom || 0), i = parseFloat(r.marginLeft || 0) + parseFloat(r.marginRight || 0), s = {
295
- width: e.offsetWidth + i,
296
- height: e.offsetHeight + o
297
- };
298
- return s;
299
- }
300
- function A(e) {
301
- var t = { left: "right", right: "left", bottom: "top", top: "bottom" };
302
- return e.replace(/left|right|bottom|top/g, function(r) {
303
- return t[r];
304
- });
305
- }
306
- function ie(e, t, r) {
307
- r = r.split("-")[0];
308
- var o = ne(e), i = {
309
- width: o.width,
310
- height: o.height
311
- }, s = ["right", "left"].indexOf(r) !== -1, a = s ? "top" : "left", n = s ? "left" : "top", f = s ? "height" : "width", p = s ? "width" : "height";
312
- return i[a] = t[a] + t[f] / 2 - o[f] / 2, r === n ? i[n] = t[n] - o[p] : i[n] = t[A(n)], i;
313
- }
314
- function B(e, t) {
315
- return Array.prototype.find ? e.find(t) : e.filter(t)[0];
316
- }
317
- function Te(e, t, r) {
318
- if (Array.prototype.findIndex)
319
- return e.findIndex(function(i) {
320
- return i[t] === r;
321
- });
322
- var o = B(e, function(i) {
323
- return i[t] === r;
324
- });
325
- return e.indexOf(o);
326
- }
327
- function se(e, t, r) {
328
- var o = r === void 0 ? e : e.slice(0, Te(e, "name", r));
329
- return o.forEach(function(i) {
330
- i.function && console.warn("`modifier.function` is deprecated, use `modifier.fn`!");
331
- var s = i.function || i.fn;
332
- i.enabled && X(s) && (t.offsets.popper = O(t.offsets.popper), t.offsets.reference = O(t.offsets.reference), t = s(t, i));
333
- }), t;
334
- }
335
- function Ce() {
336
- if (!this.state.isDestroyed) {
337
- var e = {
338
- instance: this,
339
- styles: {},
340
- arrowStyles: {},
341
- attributes: {},
342
- flipped: !1,
343
- offsets: {}
344
- };
345
- e.offsets.reference = oe(this.state, this.popper, this.reference, this.options.positionFixed), e.placement = re(this.options.placement, e.offsets.reference, this.popper, this.reference, this.options.modifiers.flip.boundariesElement, this.options.modifiers.flip.padding), e.originalPlacement = e.placement, e.positionFixed = this.options.positionFixed, e.offsets.popper = ie(this.popper, e.offsets.reference, e.placement), e.offsets.popper.position = this.options.positionFixed ? "fixed" : "absolute", e = se(this.modifiers, e), this.state.isCreated ? this.options.onUpdate(e) : (this.state.isCreated = !0, this.options.onCreate(e));
346
- }
347
- }
348
- function ae(e, t) {
349
- return e.some(function(r) {
350
- var o = r.name, i = r.enabled;
351
- return i && o === t;
352
- });
353
- }
354
- function j(e) {
355
- for (var t = [!1, "ms", "Webkit", "Moz", "O"], r = e.charAt(0).toUpperCase() + e.slice(1), o = 0; o < t.length; o++) {
356
- var i = t[o], s = i ? "" + i + r : e;
357
- if (typeof document.body.style[s] != "undefined")
358
- return s;
359
- }
360
- return null;
361
- }
362
- function Le() {
363
- return this.state.isDestroyed = !0, ae(this.modifiers, "applyStyle") && (this.popper.removeAttribute("x-placement"), this.popper.style.position = "", this.popper.style.top = "", this.popper.style.left = "", this.popper.style.right = "", this.popper.style.bottom = "", this.popper.style.willChange = "", this.popper.style[j("transform")] = ""), this.disableEventListeners(), this.options.removeOnDestroy && this.popper.parentNode.removeChild(this.popper), this;
364
- }
365
- function fe(e) {
366
- var t = e.ownerDocument;
367
- return t ? t.defaultView : window;
368
- }
369
- function pe(e, t, r, o) {
370
- var i = e.nodeName === "BODY", s = i ? e.ownerDocument.defaultView : e;
371
- s.addEventListener(t, r, { passive: !0 }), i || pe(M(s.parentNode), t, r, o), o.push(s);
372
- }
373
- function Me(e, t, r, o) {
374
- r.updateBound = o, fe(e).addEventListener("resize", r.updateBound, { passive: !0 });
375
- var i = M(e);
376
- return pe(i, "scroll", r.updateBound, r.scrollParents), r.scrollElement = i, r.eventsEnabled = !0, r;
377
- }
378
- function Be() {
379
- this.state.eventsEnabled || (this.state = Me(this.reference, this.options, this.state, this.scheduleUpdate));
380
- }
381
- function De(e, t) {
382
- return fe(e).removeEventListener("resize", t.updateBound), t.scrollParents.forEach(function(r) {
383
- r.removeEventListener("scroll", t.updateBound);
384
- }), t.updateBound = null, t.scrollParents = [], t.scrollElement = null, t.eventsEnabled = !1, t;
385
- }
386
- function Ae() {
387
- this.state.eventsEnabled && (cancelAnimationFrame(this.scheduleUpdate), this.state = De(this.reference, this.state));
388
- }
389
- function U(e) {
390
- return e !== "" && !isNaN(parseFloat(e)) && isFinite(e);
391
- }
392
- function W(e, t) {
393
- Object.keys(t).forEach(function(r) {
394
- var o = "";
395
- ["width", "height", "top", "right", "bottom", "left"].indexOf(r) !== -1 && U(t[r]) && (o = "px"), e.style[r] = t[r] + o;
396
- });
397
- }
398
- function Ne(e, t) {
399
- Object.keys(t).forEach(function(r) {
400
- var o = t[r];
401
- o !== !1 ? e.setAttribute(r, t[r]) : e.removeAttribute(r);
402
- });
403
- }
404
- function ke(e) {
405
- return W(e.instance.popper, e.styles), Ne(e.instance.popper, e.attributes), e.arrowElement && Object.keys(e.arrowStyles).length && W(e.arrowElement, e.arrowStyles), e;
406
- }
407
- function _e(e, t, r, o, i) {
408
- var s = oe(i, t, e, r.positionFixed), a = re(r.placement, s, t, e, r.modifiers.flip.boundariesElement, r.modifiers.flip.padding);
409
- return t.setAttribute("x-placement", a), W(t, { position: r.positionFixed ? "fixed" : "absolute" }), r;
410
- }
411
- function Re(e, t) {
412
- var r = e.offsets, o = r.popper, i = r.reference, s = Math.round, a = Math.floor, n = function(g) {
413
- return g;
414
- }, f = s(i.width), p = s(o.width), l = ["left", "right"].indexOf(e.placement) !== -1, u = e.placement.indexOf("-") !== -1, h = f % 2 === p % 2, c = f % 2 === 1 && p % 2 === 1, d = t ? l || u || h ? s : a : n, v = t ? s : n;
415
- return {
416
- left: d(c && !u && t ? o.left - 1 : o.left),
417
- top: v(o.top),
418
- bottom: v(o.bottom),
419
- right: d(o.right)
420
- };
421
- }
422
- var Fe = L && /Firefox/i.test(navigator.userAgent);
423
- function $e(e, t) {
424
- var r = t.x, o = t.y, i = e.offsets.popper, s = B(e.instance.modifiers, function(m) {
425
- return m.name === "applyStyle";
426
- }).gpuAcceleration;
427
- s !== void 0 && console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");
428
- var a = s !== void 0 ? s : t.gpuAcceleration, n = S(e.instance.popper), f = $(n), p = {
429
- position: i.position
430
- }, l = Re(e, window.devicePixelRatio < 2 || !Fe), u = r === "bottom" ? "top" : "bottom", h = o === "right" ? "left" : "right", c = j("transform"), d = void 0, v = void 0;
431
- if (u === "bottom" ? n.nodeName === "HTML" ? v = -n.clientHeight + l.bottom : v = -f.height + l.bottom : v = l.top, h === "right" ? n.nodeName === "HTML" ? d = -n.clientWidth + l.right : d = -f.width + l.right : d = l.left, a && c)
432
- p[c] = "translate3d(" + d + "px, " + v + "px, 0)", p[u] = 0, p[h] = 0, p.willChange = "transform";
433
- else {
434
- var y = u === "bottom" ? -1 : 1, g = h === "right" ? -1 : 1;
435
- p[u] = v * y, p[h] = d * g, p.willChange = u + ", " + h;
436
- }
437
- var w = {
438
- "x-placement": e.placement
439
- };
440
- return e.attributes = b({}, w, e.attributes), e.styles = b({}, p, e.styles), e.arrowStyles = b({}, e.offsets.arrow, e.arrowStyles), e;
441
- }
442
- function ue(e, t, r) {
443
- var o = B(e, function(n) {
444
- var f = n.name;
445
- return f === t;
446
- }), i = !!o && e.some(function(n) {
447
- return n.name === r && n.enabled && n.order < o.order;
448
- });
449
- if (!i) {
450
- var s = "`" + t + "`", a = "`" + r + "`";
451
- console.warn(a + " modifier is required by " + s + " modifier in order to work, be sure to include it before " + s + "!");
452
- }
453
- return i;
454
- }
455
- function We(e, t) {
456
- var r;
457
- if (!ue(e.instance.modifiers, "arrow", "keepTogether"))
458
- return e;
459
- var o = t.element;
460
- if (typeof o == "string") {
461
- if (o = e.instance.popper.querySelector(o), !o)
462
- return e;
463
- } else if (!e.instance.popper.contains(o))
464
- return console.warn("WARNING: `arrow.element` must be child of its popper element!"), e;
465
- var i = e.placement.split("-")[0], s = e.offsets, a = s.popper, n = s.reference, f = ["left", "right"].indexOf(i) !== -1, p = f ? "height" : "width", l = f ? "Top" : "Left", u = l.toLowerCase(), h = f ? "left" : "top", c = f ? "bottom" : "right", d = ne(o)[p];
466
- n[c] - d < a[u] && (e.offsets.popper[u] -= a[u] - (n[c] - d)), n[u] + d > a[c] && (e.offsets.popper[u] += n[u] + d - a[c]), e.offsets.popper = O(e.offsets.popper);
467
- var v = n[u] + n[p] / 2 - d / 2, y = E(e.instance.popper), g = parseFloat(y["margin" + l]), w = parseFloat(y["border" + l + "Width"]), m = v - e.offsets.popper[u] - g - w;
468
- return m = Math.max(Math.min(a[p] - d, m), 0), e.arrowElement = o, e.offsets.arrow = (r = {}, x(r, u, Math.round(m)), x(r, h, ""), r), e;
469
- }
470
- function He(e) {
471
- return e === "end" ? "start" : e === "start" ? "end" : e;
472
- }
473
- var le = ["auto-start", "auto", "auto-end", "top-start", "top", "top-end", "right-start", "right", "right-end", "bottom-end", "bottom", "bottom-start", "left-end", "left", "left-start"], _ = le.slice(3);
474
- function G(e) {
475
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, r = _.indexOf(e), o = _.slice(r + 1).concat(_.slice(0, r));
476
- return t ? o.reverse() : o;
477
- }
478
- var R = {
479
- FLIP: "flip",
480
- CLOCKWISE: "clockwise",
481
- COUNTERCLOCKWISE: "counterclockwise"
482
- };
483
- function Ie(e, t) {
484
- if (ae(e.instance.modifiers, "inner") || e.flipped && e.placement === e.originalPlacement)
485
- return e;
486
- var r = V(e.instance.popper, e.instance.reference, t.padding, t.boundariesElement, e.positionFixed), o = e.placement.split("-")[0], i = A(o), s = e.placement.split("-")[1] || "", a = [];
487
- switch (t.behavior) {
488
- case R.FLIP:
489
- a = [o, i];
490
- break;
491
- case R.CLOCKWISE:
492
- a = G(o);
493
- break;
494
- case R.COUNTERCLOCKWISE:
495
- a = G(o, !0);
496
- break;
497
- default:
498
- a = t.behavior;
499
- }
500
- return a.forEach(function(n, f) {
501
- if (o !== n || a.length === f + 1)
502
- return e;
503
- o = e.placement.split("-")[0], i = A(o);
504
- var p = e.offsets.popper, l = e.offsets.reference, u = Math.floor, h = o === "left" && u(p.right) > u(l.left) || o === "right" && u(p.left) < u(l.right) || o === "top" && u(p.bottom) > u(l.top) || o === "bottom" && u(p.top) < u(l.bottom), c = u(p.left) < u(r.left), d = u(p.right) > u(r.right), v = u(p.top) < u(r.top), y = u(p.bottom) > u(r.bottom), g = o === "left" && c || o === "right" && d || o === "top" && v || o === "bottom" && y, w = ["top", "bottom"].indexOf(o) !== -1, m = !!t.flipVariations && (w && s === "start" && c || w && s === "end" && d || !w && s === "start" && v || !w && s === "end" && y), k = !!t.flipVariationsByContent && (w && s === "start" && d || w && s === "end" && c || !w && s === "start" && y || !w && s === "end" && v), C = m || k;
505
- (h || g || C) && (e.flipped = !0, (h || g) && (o = a[f + 1]), C && (s = He(s)), e.placement = o + (s ? "-" + s : ""), e.offsets.popper = b({}, e.offsets.popper, ie(e.instance.popper, e.offsets.reference, e.placement)), e = se(e.instance.modifiers, e, "flip"));
506
- }), e;
507
- }
508
- function Ve(e) {
509
- var t = e.offsets, r = t.popper, o = t.reference, i = e.placement.split("-")[0], s = Math.floor, a = ["top", "bottom"].indexOf(i) !== -1, n = a ? "right" : "bottom", f = a ? "left" : "top", p = a ? "width" : "height";
510
- return r[n] < s(o[f]) && (e.offsets.popper[f] = s(o[f]) - r[p]), r[f] > s(o[n]) && (e.offsets.popper[f] = s(o[n])), e;
511
- }
512
- function je(e, t, r, o) {
513
- var i = e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/), s = +i[1], a = i[2];
514
- if (!s)
515
- return e;
516
- if (a.indexOf("%") === 0) {
517
- var n = void 0;
518
- switch (a) {
519
- case "%p":
520
- n = r;
521
- break;
522
- case "%":
523
- case "%r":
524
- default:
525
- n = o;
526
- }
527
- var f = O(n);
528
- return f[t] / 100 * s;
529
- } else if (a === "vh" || a === "vw") {
530
- var p = void 0;
531
- return a === "vh" ? p = Math.max(document.documentElement.clientHeight, window.innerHeight || 0) : p = Math.max(document.documentElement.clientWidth, window.innerWidth || 0), p / 100 * s;
532
- } else
533
- return s;
534
- }
535
- function Ue(e, t, r, o) {
536
- var i = [0, 0], s = ["right", "left"].indexOf(o) !== -1, a = e.split(/(\+|\-)/).map(function(l) {
537
- return l.trim();
538
- }), n = a.indexOf(B(a, function(l) {
539
- return l.search(/,|\s/) !== -1;
540
- }));
541
- a[n] && a[n].indexOf(",") === -1 && console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");
542
- var f = /\s*,\s*|\s+/, p = n !== -1 ? [a.slice(0, n).concat([a[n].split(f)[0]]), [a[n].split(f)[1]].concat(a.slice(n + 1))] : [a];
543
- return p = p.map(function(l, u) {
544
- var h = (u === 1 ? !s : s) ? "height" : "width", c = !1;
545
- return l.reduce(function(d, v) {
546
- return d[d.length - 1] === "" && ["+", "-"].indexOf(v) !== -1 ? (d[d.length - 1] = v, c = !0, d) : c ? (d[d.length - 1] += v, c = !1, d) : d.concat(v);
547
- }, []).map(function(d) {
548
- return je(d, h, t, r);
549
- });
550
- }), p.forEach(function(l, u) {
551
- l.forEach(function(h, c) {
552
- U(h) && (i[u] += h * (l[c - 1] === "-" ? -1 : 1));
553
- });
554
- }), i;
555
- }
556
- function Je(e, t) {
557
- var r = t.offset, o = e.placement, i = e.offsets, s = i.popper, a = i.reference, n = o.split("-")[0], f = void 0;
558
- return U(+r) ? f = [+r, 0] : f = Ue(r, s, a, n), n === "left" ? (s.top += f[0], s.left -= f[1]) : n === "right" ? (s.top += f[0], s.left += f[1]) : n === "top" ? (s.left += f[0], s.top -= f[1]) : n === "bottom" && (s.left += f[0], s.top += f[1]), e.popper = s, e;
559
- }
560
- function ze(e, t) {
561
- var r = t.boundariesElement || S(e.instance.popper);
562
- e.instance.reference === r && (r = S(r));
563
- var o = j("transform"), i = e.instance.popper.style, s = i.top, a = i.left, n = i[o];
564
- i.top = "", i.left = "", i[o] = "";
565
- var f = V(e.instance.popper, e.instance.reference, t.padding, r, e.positionFixed);
566
- i.top = s, i.left = a, i[o] = n, t.boundaries = f;
567
- var p = t.priority, l = e.offsets.popper, u = {
568
- primary: function(c) {
569
- var d = l[c];
570
- return l[c] < f[c] && !t.escapeWithReference && (d = Math.max(l[c], f[c])), x({}, c, d);
571
- },
572
- secondary: function(c) {
573
- var d = c === "right" ? "left" : "top", v = l[d];
574
- return l[c] > f[c] && !t.escapeWithReference && (v = Math.min(l[d], f[c] - (c === "right" ? l.width : l.height))), x({}, d, v);
575
- }
576
- };
577
- return p.forEach(function(h) {
578
- var c = ["left", "top"].indexOf(h) !== -1 ? "primary" : "secondary";
579
- l = b({}, l, u[c](h));
580
- }), e.offsets.popper = l, e;
581
- }
582
- function Ye(e) {
583
- var t = e.placement, r = t.split("-")[0], o = t.split("-")[1];
584
- if (o) {
585
- var i = e.offsets, s = i.reference, a = i.popper, n = ["bottom", "top"].indexOf(r) !== -1, f = n ? "left" : "top", p = n ? "width" : "height", l = {
586
- start: x({}, f, s[f]),
587
- end: x({}, f, s[f] + s[p] - a[p])
588
- };
589
- e.offsets.popper = b({}, a, l[o]);
590
- }
591
- return e;
592
- }
593
- function qe(e) {
594
- if (!ue(e.instance.modifiers, "hide", "preventOverflow"))
595
- return e;
596
- var t = e.offsets.reference, r = B(e.instance.modifiers, function(o) {
597
- return o.name === "preventOverflow";
598
- }).boundaries;
599
- if (t.bottom < r.top || t.left > r.right || t.top > r.bottom || t.right < r.left) {
600
- if (e.hide === !0)
601
- return e;
602
- e.hide = !0, e.attributes["x-out-of-boundaries"] = "";
603
- } else {
604
- if (e.hide === !1)
605
- return e;
606
- e.hide = !1, e.attributes["x-out-of-boundaries"] = !1;
607
- }
608
- return e;
609
- }
610
- function Ge(e) {
611
- var t = e.placement, r = t.split("-")[0], o = e.offsets, i = o.popper, s = o.reference, a = ["left", "right"].indexOf(r) !== -1, n = ["top", "left"].indexOf(r) === -1;
612
- return i[a ? "left" : "top"] = s[r] - (n ? i[a ? "width" : "height"] : 0), e.placement = A(t), e.offsets.popper = O(i), e;
613
- }
614
- var Ke = {
615
- /**
616
- * Modifier used to shift the popper on the start or end of its reference
617
- * element.<br />
618
- * It will read the variation of the `placement` property.<br />
619
- * It can be one either `-end` or `-start`.
620
- * @memberof modifiers
621
- * @inner
622
- */
623
- shift: {
624
- /** @prop {number} order=100 - Index used to define the order of execution */
625
- order: 100,
626
- /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
627
- enabled: !0,
628
- /** @prop {ModifierFn} */
629
- fn: Ye
630
- },
631
- /**
632
- * The `offset` modifier can shift your popper on both its axis.
633
- *
634
- * It accepts the following units:
635
- * - `px` or unit-less, interpreted as pixels
636
- * - `%` or `%r`, percentage relative to the length of the reference element
637
- * - `%p`, percentage relative to the length of the popper element
638
- * - `vw`, CSS viewport width unit
639
- * - `vh`, CSS viewport height unit
640
- *
641
- * For length is intended the main axis relative to the placement of the popper.<br />
642
- * This means that if the placement is `top` or `bottom`, the length will be the
643
- * `width`. In case of `left` or `right`, it will be the `height`.
644
- *
645
- * You can provide a single value (as `Number` or `String`), or a pair of values
646
- * as `String` divided by a comma or one (or more) white spaces.<br />
647
- * The latter is a deprecated method because it leads to confusion and will be
648
- * removed in v2.<br />
649
- * Additionally, it accepts additions and subtractions between different units.
650
- * Note that multiplications and divisions aren't supported.
651
- *
652
- * Valid examples are:
653
- * ```
654
- * 10
655
- * '10%'
656
- * '10, 10'
657
- * '10%, 10'
658
- * '10 + 10%'
659
- * '10 - 5vh + 3%'
660
- * '-10px + 5vh, 5px - 6%'
661
- * ```
662
- * > **NB**: If you desire to apply offsets to your poppers in a way that may make them overlap
663
- * > with their reference element, unfortunately, you will have to disable the `flip` modifier.
664
- * > You can read more on this at this [issue](https://github.com/FezVrasta/popper.js/issues/373).
665
- *
666
- * @memberof modifiers
667
- * @inner
668
- */
669
- offset: {
670
- /** @prop {number} order=200 - Index used to define the order of execution */
671
- order: 200,
672
- /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
673
- enabled: !0,
674
- /** @prop {ModifierFn} */
675
- fn: Je,
676
- /** @prop {Number|String} offset=0
677
- * The offset value as described in the modifier description
678
- */
679
- offset: 0
680
- },
681
- /**
682
- * Modifier used to prevent the popper from being positioned outside the boundary.
683
- *
684
- * A scenario exists where the reference itself is not within the boundaries.<br />
685
- * We can say it has "escaped the boundaries" — or just "escaped".<br />
686
- * In this case we need to decide whether the popper should either:
687
- *
688
- * - detach from the reference and remain "trapped" in the boundaries, or
689
- * - if it should ignore the boundary and "escape with its reference"
690
- *
691
- * When `escapeWithReference` is set to`true` and reference is completely
692
- * outside its boundaries, the popper will overflow (or completely leave)
693
- * the boundaries in order to remain attached to the edge of the reference.
694
- *
695
- * @memberof modifiers
696
- * @inner
697
- */
698
- preventOverflow: {
699
- /** @prop {number} order=300 - Index used to define the order of execution */
700
- order: 300,
701
- /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
702
- enabled: !0,
703
- /** @prop {ModifierFn} */
704
- fn: ze,
705
- /**
706
- * @prop {Array} [priority=['left','right','top','bottom']]
707
- * Popper will try to prevent overflow following these priorities by default,
708
- * then, it could overflow on the left and on top of the `boundariesElement`
709
- */
710
- priority: ["left", "right", "top", "bottom"],
711
- /**
712
- * @prop {number} padding=5
713
- * Amount of pixel used to define a minimum distance between the boundaries
714
- * and the popper. This makes sure the popper always has a little padding
715
- * between the edges of its container
716
- */
717
- padding: 5,
718
- /**
719
- * @prop {String|HTMLElement} boundariesElement='scrollParent'
720
- * Boundaries used by the modifier. Can be `scrollParent`, `window`,
721
- * `viewport` or any DOM element.
722
- */
723
- boundariesElement: "scrollParent"
724
- },
725
- /**
726
- * Modifier used to make sure the reference and its popper stay near each other
727
- * without leaving any gap between the two. Especially useful when the arrow is
728
- * enabled and you want to ensure that it points to its reference element.
729
- * It cares only about the first axis. You can still have poppers with margin
730
- * between the popper and its reference element.
731
- * @memberof modifiers
732
- * @inner
733
- */
734
- keepTogether: {
735
- /** @prop {number} order=400 - Index used to define the order of execution */
736
- order: 400,
737
- /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
738
- enabled: !0,
739
- /** @prop {ModifierFn} */
740
- fn: Ve
741
- },
742
- /**
743
- * This modifier is used to move the `arrowElement` of the popper to make
744
- * sure it is positioned between the reference element and its popper element.
745
- * It will read the outer size of the `arrowElement` node to detect how many
746
- * pixels of conjunction are needed.
747
- *
748
- * It has no effect if no `arrowElement` is provided.
749
- * @memberof modifiers
750
- * @inner
751
- */
752
- arrow: {
753
- /** @prop {number} order=500 - Index used to define the order of execution */
754
- order: 500,
755
- /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
756
- enabled: !0,
757
- /** @prop {ModifierFn} */
758
- fn: We,
759
- /** @prop {String|HTMLElement} element='[x-arrow]' - Selector or node used as arrow */
760
- element: "[x-arrow]"
761
- },
762
- /**
763
- * Modifier used to flip the popper's placement when it starts to overlap its
764
- * reference element.
765
- *
766
- * Requires the `preventOverflow` modifier before it in order to work.
767
- *
768
- * **NOTE:** this modifier will interrupt the current update cycle and will
769
- * restart it if it detects the need to flip the placement.
770
- * @memberof modifiers
771
- * @inner
772
- */
773
- flip: {
774
- /** @prop {number} order=600 - Index used to define the order of execution */
775
- order: 600,
776
- /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
777
- enabled: !0,
778
- /** @prop {ModifierFn} */
779
- fn: Ie,
780
- /**
781
- * @prop {String|Array} behavior='flip'
782
- * The behavior used to change the popper's placement. It can be one of
783
- * `flip`, `clockwise`, `counterclockwise` or an array with a list of valid
784
- * placements (with optional variations)
785
- */
786
- behavior: "flip",
787
- /**
788
- * @prop {number} padding=5
789
- * The popper will flip if it hits the edges of the `boundariesElement`
790
- */
791
- padding: 5,
792
- /**
793
- * @prop {String|HTMLElement} boundariesElement='viewport'
794
- * The element which will define the boundaries of the popper position.
795
- * The popper will never be placed outside of the defined boundaries
796
- * (except if `keepTogether` is enabled)
797
- */
798
- boundariesElement: "viewport",
799
- /**
800
- * @prop {Boolean} flipVariations=false
801
- * The popper will switch placement variation between `-start` and `-end` when
802
- * the reference element overlaps its boundaries.
803
- *
804
- * The original placement should have a set variation.
805
- */
806
- flipVariations: !1,
807
- /**
808
- * @prop {Boolean} flipVariationsByContent=false
809
- * The popper will switch placement variation between `-start` and `-end` when
810
- * the popper element overlaps its reference boundaries.
811
- *
812
- * The original placement should have a set variation.
813
- */
814
- flipVariationsByContent: !1
815
- },
816
- /**
817
- * Modifier used to make the popper flow toward the inner of the reference element.
818
- * By default, when this modifier is disabled, the popper will be placed outside
819
- * the reference element.
820
- * @memberof modifiers
821
- * @inner
822
- */
823
- inner: {
824
- /** @prop {number} order=700 - Index used to define the order of execution */
825
- order: 700,
826
- /** @prop {Boolean} enabled=false - Whether the modifier is enabled or not */
827
- enabled: !1,
828
- /** @prop {ModifierFn} */
829
- fn: Ge
830
- },
831
- /**
832
- * Modifier used to hide the popper when its reference element is outside of the
833
- * popper boundaries. It will set a `x-out-of-boundaries` attribute which can
834
- * be used to hide with a CSS selector the popper when its reference is
835
- * out of boundaries.
836
- *
837
- * Requires the `preventOverflow` modifier before it in order to work.
838
- * @memberof modifiers
839
- * @inner
840
- */
841
- hide: {
842
- /** @prop {number} order=800 - Index used to define the order of execution */
843
- order: 800,
844
- /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
845
- enabled: !0,
846
- /** @prop {ModifierFn} */
847
- fn: qe
848
- },
849
- /**
850
- * Computes the style that will be applied to the popper element to gets
851
- * properly positioned.
852
- *
853
- * Note that this modifier will not touch the DOM, it just prepares the styles
854
- * so that `applyStyle` modifier can apply it. This separation is useful
855
- * in case you need to replace `applyStyle` with a custom implementation.
856
- *
857
- * This modifier has `850` as `order` value to maintain backward compatibility
858
- * with previous versions of Popper.js. Expect the modifiers ordering method
859
- * to change in future major versions of the library.
860
- *
861
- * @memberof modifiers
862
- * @inner
863
- */
864
- computeStyle: {
865
- /** @prop {number} order=850 - Index used to define the order of execution */
866
- order: 850,
867
- /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
868
- enabled: !0,
869
- /** @prop {ModifierFn} */
870
- fn: $e,
871
- /**
872
- * @prop {Boolean} gpuAcceleration=true
873
- * If true, it uses the CSS 3D transformation to position the popper.
874
- * Otherwise, it will use the `top` and `left` properties
875
- */
876
- gpuAcceleration: !0,
877
- /**
878
- * @prop {string} [x='bottom']
879
- * Where to anchor the X axis (`bottom` or `top`). AKA X offset origin.
880
- * Change this if your popper should grow in a direction different from `bottom`
881
- */
882
- x: "bottom",
883
- /**
884
- * @prop {string} [x='left']
885
- * Where to anchor the Y axis (`left` or `right`). AKA Y offset origin.
886
- * Change this if your popper should grow in a direction different from `right`
887
- */
888
- y: "right"
889
- },
890
- /**
891
- * Applies the computed styles to the popper element.
892
- *
893
- * All the DOM manipulations are limited to this modifier. This is useful in case
894
- * you want to integrate Popper.js inside a framework or view library and you
895
- * want to delegate all the DOM manipulations to it.
896
- *
897
- * Note that if you disable this modifier, you must make sure the popper element
898
- * has its position set to `absolute` before Popper.js can do its work!
899
- *
900
- * Just disable this modifier and define your own to achieve the desired effect.
901
- *
902
- * @memberof modifiers
903
- * @inner
904
- */
905
- applyStyle: {
906
- /** @prop {number} order=900 - Index used to define the order of execution */
907
- order: 900,
908
- /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
909
- enabled: !0,
910
- /** @prop {ModifierFn} */
911
- fn: ke,
912
- /** @prop {Function} */
913
- onLoad: _e,
914
- /**
915
- * @deprecated since version 1.10.0, the property moved to `computeStyle` modifier
916
- * @prop {Boolean} gpuAcceleration=true
917
- * If true, it uses the CSS 3D transformation to position the popper.
918
- * Otherwise, it will use the `top` and `left` properties
919
- */
920
- gpuAcceleration: void 0
921
- }
922
- }, Xe = {
923
- /**
924
- * Popper's placement.
925
- * @prop {Popper.placements} placement='bottom'
926
- */
927
- placement: "bottom",
928
- /**
929
- * Set this to true if you want popper to position it self in 'fixed' mode
930
- * @prop {Boolean} positionFixed=false
931
- */
932
- positionFixed: !1,
933
- /**
934
- * Whether events (resize, scroll) are initially enabled.
935
- * @prop {Boolean} eventsEnabled=true
936
- */
937
- eventsEnabled: !0,
938
- /**
939
- * Set to true if you want to automatically remove the popper when
940
- * you call the `destroy` method.
941
- * @prop {Boolean} removeOnDestroy=false
942
- */
943
- removeOnDestroy: !1,
944
- /**
945
- * Callback called when the popper is created.<br />
946
- * By default, it is set to no-op.<br />
947
- * Access Popper.js instance with `data.instance`.
948
- * @prop {onCreate}
949
- */
950
- onCreate: function() {
951
- },
952
- /**
953
- * Callback called when the popper is updated. This callback is not called
954
- * on the initialization/creation of the popper, but only on subsequent
955
- * updates.<br />
956
- * By default, it is set to no-op.<br />
957
- * Access Popper.js instance with `data.instance`.
958
- * @prop {onUpdate}
959
- */
960
- onUpdate: function() {
961
- },
962
- /**
963
- * List of modifiers used to modify the offsets before they are applied to the popper.
964
- * They provide most of the functionalities of Popper.js.
965
- * @prop {modifiers}
966
- */
967
- modifiers: Ke
968
- }, N = function() {
969
- function e(t, r) {
970
- var o = this, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
971
- Ee(this, e), this.scheduleUpdate = function() {
972
- return requestAnimationFrame(o.update);
973
- }, this.update = be(this.update.bind(this)), this.options = b({}, e.Defaults, i), this.state = {
974
- isDestroyed: !1,
975
- isCreated: !1,
976
- scrollParents: []
977
- }, this.reference = t && t.jquery ? t[0] : t, this.popper = r && r.jquery ? r[0] : r, this.options.modifiers = {}, Object.keys(b({}, e.Defaults.modifiers, i.modifiers)).forEach(function(a) {
978
- o.options.modifiers[a] = b({}, e.Defaults.modifiers[a] || {}, i.modifiers ? i.modifiers[a] : {});
979
- }), this.modifiers = Object.keys(this.options.modifiers).map(function(a) {
980
- return b({
981
- name: a
982
- }, o.options.modifiers[a]);
983
- }).sort(function(a, n) {
984
- return a.order - n.order;
985
- }), this.modifiers.forEach(function(a) {
986
- a.enabled && X(a.onLoad) && a.onLoad(o.reference, o.popper, o.options, a, o.state);
987
- }), this.update();
988
- var s = this.options.eventsEnabled;
989
- s && this.enableEventListeners(), this.state.eventsEnabled = s;
990
- }
991
- return Se(e, [{
992
- key: "update",
993
- value: function() {
994
- return Ce.call(this);
995
- }
996
- }, {
997
- key: "destroy",
998
- value: function() {
999
- return Le.call(this);
1000
- }
1001
- }, {
1002
- key: "enableEventListeners",
1003
- value: function() {
1004
- return Be.call(this);
1005
- }
1006
- }, {
1007
- key: "disableEventListeners",
1008
- value: function() {
1009
- return Ae.call(this);
1010
- }
1011
- /**
1012
- * Schedules an update. It will run on the next UI update available.
1013
- * @method scheduleUpdate
1014
- * @memberof Popper
1015
- */
1016
- /**
1017
- * Collection of utilities useful when writing custom modifiers.
1018
- * Starting from version 1.7, this method is available only if you
1019
- * include `popper-utils.js` before `popper.js`.
1020
- *
1021
- * **DEPRECATION**: This way to access PopperUtils is deprecated
1022
- * and will be removed in v2! Use the PopperUtils module directly instead.
1023
- * Due to the high instability of the methods contained in Utils, we can't
1024
- * guarantee them to follow semver. Use them at your own risk!
1025
- * @static
1026
- * @private
1027
- * @type {Object}
1028
- * @deprecated since version 1.8
1029
- * @member Utils
1030
- * @memberof Popper
1031
- */
1032
- }]), e;
1033
- }();
1034
- N.Utils = (typeof window != "undefined" ? window : global).PopperUtils;
1035
- N.placements = le;
1036
- N.Defaults = Xe;
1037
- const Qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1038
- __proto__: null,
1039
- default: N
1040
- }, Symbol.toStringTag, { value: "Module" })), Ze = /* @__PURE__ */ ce(Qe);
1041
- (function(e, t) {
1042
- (function(r, o) {
1043
- e.exports = o(Ze);
1044
- })(de, function(r) {
1045
- function o(n, f, p) {
1046
- n && f && p && (document.addEventListener ? n.addEventListener(f, p, !1) : n.attachEvent("on" + f, p));
1047
- }
1048
- function i(n, f, p) {
1049
- n && f && (document.removeEventListener ? n.removeEventListener(f, p, !1) : n.detachEvent("on" + f, p));
1050
- }
1051
- r = r && r.hasOwnProperty("default") ? r.default : r;
1052
- var s = { props: { tagName: { type: String, default: "span" }, trigger: { type: String, default: "hover", validator: function(n) {
1053
- return ["clickToOpen", "click", "clickToToggle", "hover", "focus"].indexOf(n) > -1;
1054
- } }, delayOnMouseOver: { type: Number, default: 10 }, delayOnMouseOut: { type: Number, default: 10 }, disabled: { type: Boolean, default: !1 }, content: String, enterActiveClass: String, leaveActiveClass: String, boundariesSelector: String, reference: {}, forceShow: { type: Boolean, default: !1 }, dataValue: { default: null }, appendToBody: { type: Boolean, default: !1 }, visibleArrow: { type: Boolean, default: !0 }, transition: { type: String, default: "" }, stopPropagation: { type: Boolean, default: !1 }, preventDefault: { type: Boolean, default: !1 }, options: { type: Object, default: function() {
1055
- return {};
1056
- } }, rootClass: { type: String, default: "" } }, data: function() {
1057
- return { referenceElm: null, popperJS: null, showPopper: !1, currentPlacement: "", popperOptions: { placement: "bottom", computeStyle: { gpuAcceleration: !1 } } };
1058
- }, watch: { showPopper: function(n) {
1059
- n ? (this.$emit("show", this), this.popperJS && this.popperJS.enableEventListeners(), this.updatePopper()) : (this.popperJS && this.popperJS.disableEventListeners(), this.$emit("hide", this));
1060
- }, forceShow: { handler: function(n) {
1061
- this[n ? "doShow" : "doClose"]();
1062
- }, immediate: !0 }, disabled: function(n) {
1063
- n && (this.showPopper = !1);
1064
- } }, created: function() {
1065
- this.appendedArrow = !1, this.appendedToBody = !1, this.popperOptions = Object.assign(this.popperOptions, this.options);
1066
- }, mounted: function() {
1067
- switch (this.referenceElm = this.reference || this.$slots.reference[0].elm, this.popper = this.$slots.default[0].elm, this.trigger) {
1068
- case "clickToOpen":
1069
- o(this.referenceElm, "click", this.doShow), o(document, "click", this.handleDocumentClick);
1070
- break;
1071
- case "click":
1072
- case "clickToToggle":
1073
- o(this.referenceElm, "click", this.doToggle), o(document, "click", this.handleDocumentClick);
1074
- break;
1075
- case "hover":
1076
- o(this.referenceElm, "mouseover", this.onMouseOver), o(this.popper, "mouseover", this.onMouseOver), o(this.referenceElm, "mouseout", this.onMouseOut), o(this.popper, "mouseout", this.onMouseOut);
1077
- break;
1078
- case "focus":
1079
- o(this.referenceElm, "focus", this.onMouseOver), o(this.popper, "focus", this.onMouseOver), o(this.referenceElm, "blur", this.onMouseOut), o(this.popper, "blur", this.onMouseOut);
1080
- }
1081
- }, methods: { doToggle: function(n) {
1082
- this.stopPropagation && n.stopPropagation(), this.preventDefault && n.preventDefault(), this.forceShow || (this.showPopper = !this.showPopper);
1083
- }, doShow: function() {
1084
- this.showPopper = !0;
1085
- }, doClose: function() {
1086
- this.showPopper = !1;
1087
- }, doDestroy: function() {
1088
- this.showPopper || (this.popperJS && (this.popperJS.destroy(), this.popperJS = null), this.appendedToBody && (this.appendedToBody = !1, document.body.removeChild(this.popper.parentElement)));
1089
- }, createPopper: function() {
1090
- var n = this;
1091
- this.$nextTick(function() {
1092
- if (n.visibleArrow && n.appendArrow(n.popper), n.appendToBody && !n.appendedToBody && (n.appendedToBody = !0, document.body.appendChild(n.popper.parentElement)), n.popperJS && n.popperJS.destroy && n.popperJS.destroy(), n.boundariesSelector) {
1093
- var f = document.querySelector(n.boundariesSelector);
1094
- f && (n.popperOptions.modifiers = Object.assign({}, n.popperOptions.modifiers), n.popperOptions.modifiers.preventOverflow = Object.assign({}, n.popperOptions.modifiers.preventOverflow), n.popperOptions.modifiers.preventOverflow.boundariesElement = f);
1095
- }
1096
- n.popperOptions.onCreate = function() {
1097
- n.$emit("created", n), n.$nextTick(n.updatePopper);
1098
- }, n.popperJS = new r(n.referenceElm, n.popper, n.popperOptions);
1099
- });
1100
- }, destroyPopper: function() {
1101
- i(this.referenceElm, "click", this.doToggle), i(this.referenceElm, "mouseup", this.doClose), i(this.referenceElm, "mousedown", this.doShow), i(this.referenceElm, "focus", this.doShow), i(this.referenceElm, "blur", this.doClose), i(this.referenceElm, "mouseout", this.onMouseOut), i(this.referenceElm, "mouseover", this.onMouseOver), i(document, "click", this.handleDocumentClick), this.showPopper = !1, this.doDestroy();
1102
- }, appendArrow: function(n) {
1103
- if (!this.appendedArrow) {
1104
- this.appendedArrow = !0;
1105
- var f = document.createElement("div");
1106
- f.setAttribute("x-arrow", ""), f.className = "popper__arrow", n.appendChild(f);
1107
- }
1108
- }, updatePopper: function() {
1109
- this.popperJS ? this.popperJS.scheduleUpdate() : this.createPopper();
1110
- }, onMouseOver: function() {
1111
- var n = this;
1112
- clearTimeout(this._timer), this._timer = setTimeout(function() {
1113
- n.showPopper = !0;
1114
- }, this.delayOnMouseOver);
1115
- }, onMouseOut: function() {
1116
- var n = this;
1117
- clearTimeout(this._timer), this._timer = setTimeout(function() {
1118
- n.showPopper = !1;
1119
- }, this.delayOnMouseOut);
1120
- }, handleDocumentClick: function(n) {
1121
- this.$el && this.referenceElm && !this.elementContains(this.$el, n.target) && !this.elementContains(this.referenceElm, n.target) && this.popper && !this.elementContains(this.popper, n.target) && (this.$emit("documentClick", this), this.forceShow || (this.showPopper = !1));
1122
- }, elementContains: function(n, f) {
1123
- return typeof n.contains == "function" && n.contains(f);
1124
- } }, destroyed: function() {
1125
- this.destroyPopper();
1126
- } };
1127
- const a = s;
1128
- return s.__file = "popper.js.vue", function(n, f, p, l, u, h, c, d, v, y) {
1129
- typeof c == "function" && (v = d, d = c, c = !1);
1130
- const g = typeof p == "function" ? p.options : p;
1131
- let w;
1132
- if (n && n.render && (g.render = n.render, g.staticRenderFns = n.staticRenderFns, g._compiled = !0, u && (g.functional = !0)), l && (g._scopeId = l), h ? (w = function(m) {
1133
- (m = m || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) || typeof __VUE_SSR_CONTEXT__ == "undefined" || (m = __VUE_SSR_CONTEXT__), f && f.call(this, v(m)), m && m._registeredComponents && m._registeredComponents.add(h);
1134
- }, g._ssrRegister = w) : f && (w = c ? function() {
1135
- f.call(this, y(this.$root.$options.shadowRoot));
1136
- } : function(m) {
1137
- f.call(this, d(m));
1138
- }), w)
1139
- if (g.functional) {
1140
- const m = g.render;
1141
- g.render = function(k, C) {
1142
- return w.call(C), m(k, C);
1143
- };
1144
- } else {
1145
- const m = g.beforeCreate;
1146
- g.beforeCreate = m ? [].concat(m, w) : [w];
1147
- }
1148
- return p;
1149
- }({ render: function() {
1150
- var n = this, f = n.$createElement, p = n._self._c || f;
1151
- return p(n.tagName, { tag: "component" }, [p("transition", { attrs: { name: n.transition, "enter-active-class": n.enterActiveClass, "leave-active-class": n.leaveActiveClass }, on: { "after-leave": n.doDestroy } }, [p("span", { directives: [{ name: "show", rawName: "v-show", value: !n.disabled && n.showPopper, expression: "!disabled && showPopper" }], ref: "popper", class: n.rootClass }, [n._t("default", [n._v(n._s(n.content))])], 2)]), n._v(" "), n._t("reference")], 2);
1152
- }, staticRenderFns: [] }, void 0, a, void 0, !1, void 0, void 0, void 0);
1153
- });
1154
- })(K);
1155
- var et = K.exports;
1156
- const rt = /* @__PURE__ */ he(et);
1157
- export {
1158
- rt as P
1159
- };