@vergelijkdirect/comparison-forms 1.3.17-ver-8380.0 → 1.3.17-ver-8380.1
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-rollup/AddressHandler-jwYRDHTI.js +288 -0
- package/dist-rollup/BikeForm-30I53uCm.js +126 -0
- package/dist-rollup/BikeFormHorizontal-u1PW-9KV.js +126 -0
- package/dist-rollup/BirthdateInput-1tsGzxTx.js +84 -0
- package/dist-rollup/BusinessCarForm-oeBpet3X.js +119 -0
- package/dist-rollup/BusinessCarFormHorizontal-lBxuzRso.js +119 -0
- package/dist-rollup/CarForm-xTslX4mq.js +102 -0
- package/dist-rollup/CarFormHorizontal-z_-Ew9Ji.js +101 -0
- package/dist-rollup/CaravanForm-BWUCqXZ8.js +137 -0
- package/dist-rollup/CaravanFormHorizontal-qVPTYW4D.js +137 -0
- package/dist-rollup/CaravanFormOld-JaY01RDW.js +130 -0
- package/dist-rollup/DefaultForm-4umbLheg.js +60 -0
- package/dist-rollup/DefaultInput-zxU1ufPA.js +435 -0
- package/dist-rollup/DefaultPlainRadioGroup-i8P1ACl4.js +145 -0
- package/dist-rollup/DefaultSelect-t64f_R7v.js +93 -0
- package/dist-rollup/ErrorHandler-9Zxi6g3R.js +45 -0
- package/dist-rollup/FamilyCompositionInput-dWbnEFac.js +51 -0
- package/dist-rollup/HouseForm-ga4I0nPa.js +105 -0
- package/dist-rollup/HouseFormHorizontal-zcNNDuDQ.js +104 -0
- package/dist-rollup/LegalAssistanceForm-M2yX72hT.js +109 -0
- package/dist-rollup/LegalAssistanceFormHorizontal-NztH_5Yq.js +108 -0
- package/dist-rollup/LiabilityForm-D09YaRGm.js +102 -0
- package/dist-rollup/LiabilityFormHorizontal-nV1JerpT.js +102 -0
- package/dist-rollup/LicensePlate-BMeYEcIe.js +505 -0
- package/dist-rollup/Loader-_esX79Uz.js +1105 -0
- package/dist-rollup/ManualNewValueModal-S0C68NGl.js +2586 -0
- package/dist-rollup/MopedForm-ZL3526H3.js +112 -0
- package/dist-rollup/MopedFormHorizontal-6btf9cMz.js +112 -0
- package/dist-rollup/MotorForm-M6FHM1pV.js +111 -0
- package/dist-rollup/MotorFormHorizontal-NcCjW3P5.js +105 -0
- package/dist-rollup/PackageForm-HcPVbqOI.js +305 -0
- package/dist-rollup/PetForm-OvLvibk1.js +115 -0
- package/dist-rollup/PetFormHorizontal-u7P_iNbx.js +124 -0
- package/dist-rollup/PetFormOld-9yiD9akJ.js +126 -0
- package/dist-rollup/PhoneInput-l6YwvwSj.js +131 -0
- package/dist-rollup/QuestionnaireForm-mDU7NBoo.js +64 -0
- package/dist-rollup/QuotationForm-j1i5zScM.js +183 -0
- package/dist-rollup/RiskScannerForm-JGojbshZ.js +152 -0
- package/dist-rollup/SearchableSelect-1GCKHHKe.js +232 -0
- package/dist-rollup/Session.util-aedjr12J.js +42 -0
- package/dist-rollup/SimpleCard-_Mg9wAqJ.js +50 -0
- package/dist-rollup/TravelForm-goy4CZNN.js +117 -0
- package/dist-rollup/TravelFormHorizontal-q396jXWh.js +117 -0
- package/dist-rollup/TravelFormOld-83YKTgP8.js +123 -0
- package/dist-rollup/ZipcodeInput-z5W6JSl0.js +61 -0
- package/dist-rollup/_commonjsHelpers-4t9S7M5p.js +30 -0
- package/dist-rollup/array.util-agNtEyks.js +16 -0
- package/dist-rollup/bikeBrands.model-FYepHp3k.js +338 -0
- package/dist-rollup/businessCar-Mt6F5U-j.js +188 -0
- package/dist-rollup/car-oIzIKvsB.js +85 -0
- package/dist-rollup/common-J_DOueuE.js +1577 -0
- package/dist-rollup/comparison-forms.js +6 -30271
- package/dist-rollup/comparison-forms.umd.cjs +15 -29
- package/dist-rollup/createLoanComparisonForm-T4s_32PC.js +96 -0
- package/dist-rollup/familyComposition.model-1F80igwZ.js +21 -0
- package/dist-rollup/familySize.model-9dESnIuL.js +98 -0
- package/dist-rollup/form-radio-group-J-EQJhh9.js +1238 -0
- package/dist-rollup/house-iRMRIU6o.js +73 -0
- package/dist-rollup/index-WjnHra7k.js +619 -0
- package/dist-rollup/liability-W6z2ze1t.js +73 -0
- package/dist-rollup/loanPurpose-nICjCm1d.js +273 -0
- package/dist-rollup/moped-T6_xyOsb.js +84 -0
- package/dist-rollup/motor-fCU2n3O5.js +83 -0
- package/dist-rollup/paymentTerms.model-J3WNhgPU.js +145 -0
- package/dist-rollup/updateLoanComparisonForm-iyTnJD5A.js +92 -0
- package/dist-rollup/useSkipUpdateComparison-WseHt-cH.js +437 -0
- package/dist-rollup/vue-popper.min-O3ciEEKg.js +1159 -0
- package/package.json +7 -4
|
@@ -0,0 +1,2586 @@
|
|
|
1
|
+
var te = (n, e, t) => new Promise((r, a) => {
|
|
2
|
+
var i = (l) => {
|
|
3
|
+
try {
|
|
4
|
+
s(t.next(l));
|
|
5
|
+
} catch (u) {
|
|
6
|
+
a(u);
|
|
7
|
+
}
|
|
8
|
+
}, o = (l) => {
|
|
9
|
+
try {
|
|
10
|
+
s(t.throw(l));
|
|
11
|
+
} catch (u) {
|
|
12
|
+
a(u);
|
|
13
|
+
}
|
|
14
|
+
}, s = (l) => l.done ? r(l.value) : Promise.resolve(l.value).then(i, o);
|
|
15
|
+
s((t = t.apply(n, e)).next());
|
|
16
|
+
});
|
|
17
|
+
import P, { ref as p, computed as ne, onMounted as ot, defineComponent as st, watch as lt } from "vue";
|
|
18
|
+
import { g as c, F as Ce, v as Ye, j as re, h as ut, n as ct } from "./index-WjnHra7k.js";
|
|
19
|
+
import { u as Jt } from "./common-J_DOueuE.js";
|
|
20
|
+
import { h as De, N as en, i as Ie, a as tn, b as Ke, m as de, c as dt, d as je, e as nn, S as $e, n as rn, f as ft, k as fe, g as Ne, j as pe, l as U, o as x, t as Me, p as xe, R as an, q as on, r as sn, s as pt, u as ht, v as Le, w as vt, x as j, y as V, z as D, A as ln, C as un, D as gt, E as Y, F as mt, G as cn, H as dn, M as fn, I as pn, J as bt, K as T, L as hn, O as vn, P as S, Q as yt, T as gn, U as mn, V as Fe, W as F, X as K, Y as k, Z as z, _ as Ue, $ as we, a0 as ae, a1 as Se, a2 as ke, a3 as Te, a4 as _t, a5 as bn, a6 as yn, a7 as ie, a8 as _n, a9 as On, aa as Ee, ab as Cn } from "./form-radio-group-J-EQJhh9.js";
|
|
21
|
+
var Ot = function() {
|
|
22
|
+
return (Ot = Object.assign || function(n) {
|
|
23
|
+
for (var e, t = 1, r = arguments.length; t < r; t++)
|
|
24
|
+
for (var a in e = arguments[t])
|
|
25
|
+
Object.prototype.hasOwnProperty.call(e, a) && (n[a] = e[a]);
|
|
26
|
+
return n;
|
|
27
|
+
}).apply(this, arguments);
|
|
28
|
+
}, Pe = { kebab: /-(\w)/g, styleProp: /:(.*)/, styleList: /;(?![^(]*\))/g };
|
|
29
|
+
function wn(n, e) {
|
|
30
|
+
return e ? e.toUpperCase() : "";
|
|
31
|
+
}
|
|
32
|
+
function Sn(n) {
|
|
33
|
+
for (var e, t = {}, r = 0, a = n.split(Pe.styleList); r < a.length; r++) {
|
|
34
|
+
var i = a[r].split(Pe.styleProp), o = i[0], s = i[1];
|
|
35
|
+
(o = o.trim()) && (typeof s == "string" && (s = s.trim()), t[e = o, e.replace(Pe.kebab, wn)] = s);
|
|
36
|
+
}
|
|
37
|
+
return t;
|
|
38
|
+
}
|
|
39
|
+
function ze() {
|
|
40
|
+
for (var n, e, t = {}, r = arguments.length; r--; )
|
|
41
|
+
for (var a = 0, i = Object.keys(arguments[r]); a < i.length; a++)
|
|
42
|
+
switch (n = i[a]) {
|
|
43
|
+
case "class":
|
|
44
|
+
case "style":
|
|
45
|
+
case "directives":
|
|
46
|
+
if (Array.isArray(t[n]) || (t[n] = []), n === "style") {
|
|
47
|
+
var o = void 0;
|
|
48
|
+
o = Array.isArray(arguments[r].style) ? arguments[r].style : [arguments[r].style];
|
|
49
|
+
for (var s = 0; s < o.length; s++) {
|
|
50
|
+
var l = o[s];
|
|
51
|
+
typeof l == "string" && (o[s] = Sn(l));
|
|
52
|
+
}
|
|
53
|
+
arguments[r].style = o;
|
|
54
|
+
}
|
|
55
|
+
t[n] = t[n].concat(arguments[r][n]);
|
|
56
|
+
break;
|
|
57
|
+
case "staticClass":
|
|
58
|
+
if (!arguments[r][n])
|
|
59
|
+
break;
|
|
60
|
+
t[n] === void 0 && (t[n] = ""), t[n] && (t[n] += " "), t[n] += arguments[r][n].trim();
|
|
61
|
+
break;
|
|
62
|
+
case "on":
|
|
63
|
+
case "nativeOn":
|
|
64
|
+
t[n] || (t[n] = {});
|
|
65
|
+
for (var u = 0, f = Object.keys(arguments[r][n] || {}); u < f.length; u++)
|
|
66
|
+
e = f[u], t[n][e] ? t[n][e] = [].concat(t[n][e], arguments[r][n][e]) : t[n][e] = arguments[r][n][e];
|
|
67
|
+
break;
|
|
68
|
+
case "attrs":
|
|
69
|
+
case "props":
|
|
70
|
+
case "domProps":
|
|
71
|
+
case "scopedSlots":
|
|
72
|
+
case "staticStyle":
|
|
73
|
+
case "hook":
|
|
74
|
+
case "transition":
|
|
75
|
+
t[n] || (t[n] = {}), t[n] = Ot({}, arguments[r][n], t[n]);
|
|
76
|
+
break;
|
|
77
|
+
case "slot":
|
|
78
|
+
case "key":
|
|
79
|
+
case "ref":
|
|
80
|
+
case "tag":
|
|
81
|
+
case "show":
|
|
82
|
+
case "keepAlive":
|
|
83
|
+
default:
|
|
84
|
+
t[n] || (t[n] = arguments[r][n]);
|
|
85
|
+
}
|
|
86
|
+
return t;
|
|
87
|
+
}
|
|
88
|
+
function se(n) {
|
|
89
|
+
"@babel/helpers - typeof";
|
|
90
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? se = function(t) {
|
|
91
|
+
return typeof t;
|
|
92
|
+
} : se = function(t) {
|
|
93
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
94
|
+
}, se(n);
|
|
95
|
+
}
|
|
96
|
+
function Ct(n, e) {
|
|
97
|
+
if (!(n instanceof e))
|
|
98
|
+
throw new TypeError("Cannot call a class as a function");
|
|
99
|
+
}
|
|
100
|
+
function wt(n, e) {
|
|
101
|
+
if (typeof e != "function" && e !== null)
|
|
102
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
103
|
+
n.prototype = Object.create(e && e.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), e && q(n, e);
|
|
104
|
+
}
|
|
105
|
+
function St(n) {
|
|
106
|
+
var e = kt();
|
|
107
|
+
return function() {
|
|
108
|
+
var r = G(n), a;
|
|
109
|
+
if (e) {
|
|
110
|
+
var i = G(this).constructor;
|
|
111
|
+
a = Reflect.construct(r, arguments, i);
|
|
112
|
+
} else
|
|
113
|
+
a = r.apply(this, arguments);
|
|
114
|
+
return kn(this, a);
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
function kn(n, e) {
|
|
118
|
+
return e && (se(e) === "object" || typeof e == "function") ? e : Tn(n);
|
|
119
|
+
}
|
|
120
|
+
function Tn(n) {
|
|
121
|
+
if (n === void 0)
|
|
122
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
123
|
+
return n;
|
|
124
|
+
}
|
|
125
|
+
function Ve(n) {
|
|
126
|
+
var e = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
127
|
+
return Ve = function(r) {
|
|
128
|
+
if (r === null || !En(r))
|
|
129
|
+
return r;
|
|
130
|
+
if (typeof r != "function")
|
|
131
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
132
|
+
if (typeof e != "undefined") {
|
|
133
|
+
if (e.has(r))
|
|
134
|
+
return e.get(r);
|
|
135
|
+
e.set(r, a);
|
|
136
|
+
}
|
|
137
|
+
function a() {
|
|
138
|
+
return le(r, arguments, G(this).constructor);
|
|
139
|
+
}
|
|
140
|
+
return a.prototype = Object.create(r.prototype, { constructor: { value: a, enumerable: !1, writable: !0, configurable: !0 } }), q(a, r);
|
|
141
|
+
}, Ve(n);
|
|
142
|
+
}
|
|
143
|
+
function le(n, e, t) {
|
|
144
|
+
return kt() ? le = Reflect.construct : le = function(a, i, o) {
|
|
145
|
+
var s = [null];
|
|
146
|
+
s.push.apply(s, i);
|
|
147
|
+
var l = Function.bind.apply(a, s), u = new l();
|
|
148
|
+
return o && q(u, o.prototype), u;
|
|
149
|
+
}, le.apply(null, arguments);
|
|
150
|
+
}
|
|
151
|
+
function kt() {
|
|
152
|
+
if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
|
|
153
|
+
return !1;
|
|
154
|
+
if (typeof Proxy == "function")
|
|
155
|
+
return !0;
|
|
156
|
+
try {
|
|
157
|
+
return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
|
|
158
|
+
})), !0;
|
|
159
|
+
} catch (n) {
|
|
160
|
+
return !1;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
function En(n) {
|
|
164
|
+
return Function.toString.call(n).indexOf("[native code]") !== -1;
|
|
165
|
+
}
|
|
166
|
+
function q(n, e) {
|
|
167
|
+
return q = Object.setPrototypeOf || function(r, a) {
|
|
168
|
+
return r.__proto__ = a, r;
|
|
169
|
+
}, q(n, e);
|
|
170
|
+
}
|
|
171
|
+
function G(n) {
|
|
172
|
+
return G = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
|
|
173
|
+
return t.__proto__ || Object.getPrototypeOf(t);
|
|
174
|
+
}, G(n);
|
|
175
|
+
}
|
|
176
|
+
var Tt = De ? window : {}, Pn = De ? Tt.Element : /* @__PURE__ */ function(n) {
|
|
177
|
+
wt(t, n);
|
|
178
|
+
var e = St(t);
|
|
179
|
+
function t() {
|
|
180
|
+
return Ct(this, t), e.apply(this, arguments);
|
|
181
|
+
}
|
|
182
|
+
return t;
|
|
183
|
+
}(/* @__PURE__ */ Ve(Object)), Et = De ? Tt.HTMLElement : /* @__PURE__ */ function(n) {
|
|
184
|
+
wt(t, n);
|
|
185
|
+
var e = St(t);
|
|
186
|
+
function t() {
|
|
187
|
+
return Ct(this, t), e.apply(this, arguments);
|
|
188
|
+
}
|
|
189
|
+
return t;
|
|
190
|
+
}(Pn), An = function(e) {
|
|
191
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : NaN, r = parseInt(e, 10);
|
|
192
|
+
return isNaN(r) ? t : r;
|
|
193
|
+
}, oe = function(e) {
|
|
194
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : NaN, r = parseFloat(e);
|
|
195
|
+
return isNaN(r) ? t : r;
|
|
196
|
+
};
|
|
197
|
+
function qe(n, e) {
|
|
198
|
+
var t = Object.keys(n);
|
|
199
|
+
if (Object.getOwnPropertySymbols) {
|
|
200
|
+
var r = Object.getOwnPropertySymbols(n);
|
|
201
|
+
e && (r = r.filter(function(a) {
|
|
202
|
+
return Object.getOwnPropertyDescriptor(n, a).enumerable;
|
|
203
|
+
})), t.push.apply(t, r);
|
|
204
|
+
}
|
|
205
|
+
return t;
|
|
206
|
+
}
|
|
207
|
+
function I(n) {
|
|
208
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
209
|
+
var t = arguments[e] != null ? arguments[e] : {};
|
|
210
|
+
e % 2 ? qe(Object(t), !0).forEach(function(r) {
|
|
211
|
+
$n(n, r, t[r]);
|
|
212
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : qe(Object(t)).forEach(function(r) {
|
|
213
|
+
Object.defineProperty(n, r, Object.getOwnPropertyDescriptor(t, r));
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
return n;
|
|
217
|
+
}
|
|
218
|
+
function $n(n, e, t) {
|
|
219
|
+
return e in n ? Object.defineProperty(n, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : n[e] = t, n;
|
|
220
|
+
}
|
|
221
|
+
var Pt = {
|
|
222
|
+
name: "",
|
|
223
|
+
enterClass: "",
|
|
224
|
+
enterActiveClass: "",
|
|
225
|
+
enterToClass: "show",
|
|
226
|
+
leaveClass: "show",
|
|
227
|
+
leaveActiveClass: "",
|
|
228
|
+
leaveToClass: ""
|
|
229
|
+
}, Mn = I(I({}, Pt), {}, {
|
|
230
|
+
enterActiveClass: "fade",
|
|
231
|
+
leaveActiveClass: "fade"
|
|
232
|
+
}), xn = /* @__PURE__ */ P.extend({
|
|
233
|
+
name: en,
|
|
234
|
+
functional: !0,
|
|
235
|
+
props: {
|
|
236
|
+
noFade: {
|
|
237
|
+
// Only applicable to the built in transition
|
|
238
|
+
// Has no effect if `trans-props` provided
|
|
239
|
+
type: Boolean,
|
|
240
|
+
default: !1
|
|
241
|
+
},
|
|
242
|
+
appear: {
|
|
243
|
+
// Has no effect if `trans-props` provided
|
|
244
|
+
type: Boolean,
|
|
245
|
+
default: !1
|
|
246
|
+
},
|
|
247
|
+
mode: {
|
|
248
|
+
// Can be overridden by user supplied trans-props
|
|
249
|
+
type: String
|
|
250
|
+
// default: undefined
|
|
251
|
+
},
|
|
252
|
+
// For user supplied transitions (if needed)
|
|
253
|
+
transProps: {
|
|
254
|
+
type: Object,
|
|
255
|
+
default: null
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
render: function(e, t) {
|
|
259
|
+
var r = t.children, a = t.data, i = t.props, o = i.transProps;
|
|
260
|
+
return Ie(o) || (o = i.noFade ? Pt : Mn, i.appear && (o = I(I({}, o), {}, {
|
|
261
|
+
appear: !0,
|
|
262
|
+
appearClass: o.enterClass,
|
|
263
|
+
appearActiveClass: o.enterActiveClass,
|
|
264
|
+
appearToClass: o.enterToClass
|
|
265
|
+
}))), o = I(I({
|
|
266
|
+
mode: i.mode
|
|
267
|
+
}, o), {}, {
|
|
268
|
+
// We always need `css` true
|
|
269
|
+
css: !0
|
|
270
|
+
}), e(
|
|
271
|
+
"transition",
|
|
272
|
+
// Any transition event listeners will get merged here
|
|
273
|
+
ze(a, {
|
|
274
|
+
props: o
|
|
275
|
+
}),
|
|
276
|
+
r
|
|
277
|
+
);
|
|
278
|
+
}
|
|
279
|
+
});
|
|
280
|
+
const Vn = xn;
|
|
281
|
+
var At = function(e) {
|
|
282
|
+
return tn ? Ke(e) ? e : {
|
|
283
|
+
capture: !!e || !1
|
|
284
|
+
} : !!(Ke(e) ? e.capture : e);
|
|
285
|
+
}, He = function(e, t, r, a) {
|
|
286
|
+
e && e.addEventListener && e.addEventListener(t, r, At(a));
|
|
287
|
+
}, Z = function(e, t, r, a) {
|
|
288
|
+
e && e.removeEventListener && e.removeEventListener(t, r, At(a));
|
|
289
|
+
}, X = function(e) {
|
|
290
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = t.preventDefault, a = r === void 0 ? !0 : r, i = t.propagation, o = i === void 0 ? !0 : i, s = t.immediatePropagation, l = s === void 0 ? !1 : s;
|
|
291
|
+
a && e.preventDefault(), o && e.stopPropagation(), l && e.stopImmediatePropagation();
|
|
292
|
+
};
|
|
293
|
+
function Bn(n, e, t) {
|
|
294
|
+
return e in n ? Object.defineProperty(n, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : n[e] = t, n;
|
|
295
|
+
}
|
|
296
|
+
var Rn = de({
|
|
297
|
+
content: {
|
|
298
|
+
type: String,
|
|
299
|
+
default: "×"
|
|
300
|
+
},
|
|
301
|
+
disabled: {
|
|
302
|
+
type: Boolean,
|
|
303
|
+
default: !1
|
|
304
|
+
},
|
|
305
|
+
ariaLabel: {
|
|
306
|
+
type: String,
|
|
307
|
+
default: "Close"
|
|
308
|
+
},
|
|
309
|
+
textVariant: {
|
|
310
|
+
type: String
|
|
311
|
+
// `textVariant` is `undefined` to inherit the current text color
|
|
312
|
+
// default: undefined
|
|
313
|
+
}
|
|
314
|
+
}, dt), Dn = /* @__PURE__ */ P.extend({
|
|
315
|
+
name: dt,
|
|
316
|
+
functional: !0,
|
|
317
|
+
props: Rn,
|
|
318
|
+
render: function(e, t) {
|
|
319
|
+
var r = t.props, a = t.data, i = t.slots, o = t.scopedSlots, s = i(), l = o || {}, u = {
|
|
320
|
+
staticClass: "close",
|
|
321
|
+
class: Bn({}, "text-".concat(r.textVariant), r.textVariant),
|
|
322
|
+
attrs: {
|
|
323
|
+
type: "button",
|
|
324
|
+
disabled: r.disabled,
|
|
325
|
+
"aria-label": r.ariaLabel ? String(r.ariaLabel) : null
|
|
326
|
+
},
|
|
327
|
+
on: {
|
|
328
|
+
click: function(h) {
|
|
329
|
+
r.disabled && je(h) && X(h);
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
};
|
|
333
|
+
return nn($e, l, s) || (u.domProps = {
|
|
334
|
+
innerHTML: r.content
|
|
335
|
+
}), e("button", ze(a, u), rn($e, {}, l, s));
|
|
336
|
+
}
|
|
337
|
+
}), $t = function(e, t) {
|
|
338
|
+
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Ne;
|
|
339
|
+
return (ft(e) ? e.slice() : fe(e)).reduce(function(a, i) {
|
|
340
|
+
return a[r(i)] = t[i], a;
|
|
341
|
+
}, {});
|
|
342
|
+
}, Mt = "a", In = function(e) {
|
|
343
|
+
return "%" + e.charCodeAt(0).toString(16);
|
|
344
|
+
}, R = function(e) {
|
|
345
|
+
return encodeURIComponent(Me(e)).replace(an, In).replace(on, ",");
|
|
346
|
+
}, jn = function(e) {
|
|
347
|
+
if (!Ie(e))
|
|
348
|
+
return "";
|
|
349
|
+
var t = fe(e).map(function(r) {
|
|
350
|
+
var a = e[r];
|
|
351
|
+
return xe(a) ? "" : U(a) ? R(r) : ft(a) ? a.reduce(function(i, o) {
|
|
352
|
+
return U(o) ? i.push(R(r)) : xe(o) || i.push(R(r) + "=" + R(o)), i;
|
|
353
|
+
}, []).join("&") : R(r) + "=" + R(a);
|
|
354
|
+
}).filter(function(r) {
|
|
355
|
+
return r.length > 0;
|
|
356
|
+
}).join("&");
|
|
357
|
+
return t ? "?".concat(t) : "";
|
|
358
|
+
}, Nn = function(e) {
|
|
359
|
+
return !!(e.href || e.to);
|
|
360
|
+
}, xt = function(e) {
|
|
361
|
+
return !!(e && !pe(e, "a"));
|
|
362
|
+
}, Ln = function(e, t) {
|
|
363
|
+
var r = e.to, a = e.disabled, i = e.routerComponentName, o = !!t.$router;
|
|
364
|
+
return !o || o && (a || !r) ? Mt : i || (t.$nuxt ? "nuxt-link" : "router-link");
|
|
365
|
+
}, Fn = function() {
|
|
366
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.target, r = e.rel;
|
|
367
|
+
return t === "_blank" && U(r) ? "noopener" : r || null;
|
|
368
|
+
}, zn = function() {
|
|
369
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.href, r = e.to, a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Mt, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "#", o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "/";
|
|
370
|
+
if (t)
|
|
371
|
+
return t;
|
|
372
|
+
if (xt(a))
|
|
373
|
+
return null;
|
|
374
|
+
if (x(r))
|
|
375
|
+
return r || o;
|
|
376
|
+
if (Ie(r) && (r.path || r.query || r.hash)) {
|
|
377
|
+
var s = Me(r.path), l = jn(r.query), u = Me(r.hash);
|
|
378
|
+
return u = !u || u.charAt(0) === "#" ? u : "#".concat(u), "".concat(s).concat(l).concat(u) || o;
|
|
379
|
+
}
|
|
380
|
+
return i;
|
|
381
|
+
}, Hn = 13, Wn = 27, Yn = 32;
|
|
382
|
+
const Kn = sn("$listeners", "bvListeners");
|
|
383
|
+
function Un(n) {
|
|
384
|
+
return Xn(n) || Zn(n) || Gn(n) || qn();
|
|
385
|
+
}
|
|
386
|
+
function qn() {
|
|
387
|
+
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
388
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
389
|
+
}
|
|
390
|
+
function Gn(n, e) {
|
|
391
|
+
if (n) {
|
|
392
|
+
if (typeof n == "string")
|
|
393
|
+
return Be(n, e);
|
|
394
|
+
var t = Object.prototype.toString.call(n).slice(8, -1);
|
|
395
|
+
if (t === "Object" && n.constructor && (t = n.constructor.name), t === "Map" || t === "Set")
|
|
396
|
+
return Array.from(n);
|
|
397
|
+
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))
|
|
398
|
+
return Be(n, e);
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
function Zn(n) {
|
|
402
|
+
if (typeof Symbol != "undefined" && Symbol.iterator in Object(n))
|
|
403
|
+
return Array.from(n);
|
|
404
|
+
}
|
|
405
|
+
function Xn(n) {
|
|
406
|
+
if (Array.isArray(n))
|
|
407
|
+
return Be(n);
|
|
408
|
+
}
|
|
409
|
+
function Be(n, e) {
|
|
410
|
+
(e == null || e > n.length) && (e = n.length);
|
|
411
|
+
for (var t = 0, r = new Array(e); t < e; t++)
|
|
412
|
+
r[t] = n[t];
|
|
413
|
+
return r;
|
|
414
|
+
}
|
|
415
|
+
function Ge(n, e) {
|
|
416
|
+
var t = Object.keys(n);
|
|
417
|
+
if (Object.getOwnPropertySymbols) {
|
|
418
|
+
var r = Object.getOwnPropertySymbols(n);
|
|
419
|
+
e && (r = r.filter(function(a) {
|
|
420
|
+
return Object.getOwnPropertyDescriptor(n, a).enumerable;
|
|
421
|
+
})), t.push.apply(t, r);
|
|
422
|
+
}
|
|
423
|
+
return t;
|
|
424
|
+
}
|
|
425
|
+
function _(n) {
|
|
426
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
427
|
+
var t = arguments[e] != null ? arguments[e] : {};
|
|
428
|
+
e % 2 ? Ge(Object(t), !0).forEach(function(r) {
|
|
429
|
+
Vt(n, r, t[r]);
|
|
430
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : Ge(Object(t)).forEach(function(r) {
|
|
431
|
+
Object.defineProperty(n, r, Object.getOwnPropertyDescriptor(t, r));
|
|
432
|
+
});
|
|
433
|
+
}
|
|
434
|
+
return n;
|
|
435
|
+
}
|
|
436
|
+
function Vt(n, e, t) {
|
|
437
|
+
return e in n ? Object.defineProperty(n, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : n[e] = t, n;
|
|
438
|
+
}
|
|
439
|
+
var Bt = {
|
|
440
|
+
to: {
|
|
441
|
+
type: [String, Object],
|
|
442
|
+
default: null
|
|
443
|
+
},
|
|
444
|
+
append: {
|
|
445
|
+
type: Boolean,
|
|
446
|
+
default: !1
|
|
447
|
+
},
|
|
448
|
+
replace: {
|
|
449
|
+
type: Boolean,
|
|
450
|
+
default: !1
|
|
451
|
+
},
|
|
452
|
+
event: {
|
|
453
|
+
type: [String, Array],
|
|
454
|
+
default: "click"
|
|
455
|
+
},
|
|
456
|
+
activeClass: {
|
|
457
|
+
type: String
|
|
458
|
+
// default: undefined
|
|
459
|
+
},
|
|
460
|
+
exact: {
|
|
461
|
+
type: Boolean,
|
|
462
|
+
default: !1
|
|
463
|
+
},
|
|
464
|
+
exactActiveClass: {
|
|
465
|
+
type: String
|
|
466
|
+
// default: undefined
|
|
467
|
+
},
|
|
468
|
+
routerTag: {
|
|
469
|
+
type: String,
|
|
470
|
+
default: "a"
|
|
471
|
+
}
|
|
472
|
+
}, Rt = {
|
|
473
|
+
prefetch: {
|
|
474
|
+
type: Boolean,
|
|
475
|
+
// Must be `null` to fall back to the value defined in the
|
|
476
|
+
// `nuxt.config.js` configuration file for `router.prefetchLinks`
|
|
477
|
+
// We convert `null` to `undefined`, so that Nuxt.js will use the
|
|
478
|
+
// compiled default. Vue treats `undefined` as default of `false`
|
|
479
|
+
// for Boolean props, so we must set it as `null` here to be a
|
|
480
|
+
// true tri-state prop
|
|
481
|
+
default: null
|
|
482
|
+
},
|
|
483
|
+
noPrefetch: {
|
|
484
|
+
type: Boolean,
|
|
485
|
+
default: !1
|
|
486
|
+
}
|
|
487
|
+
}, Dt = de(_(_(_({
|
|
488
|
+
href: {
|
|
489
|
+
type: String,
|
|
490
|
+
default: null
|
|
491
|
+
},
|
|
492
|
+
rel: {
|
|
493
|
+
type: String,
|
|
494
|
+
// Must be `null` if no value provided
|
|
495
|
+
default: null
|
|
496
|
+
},
|
|
497
|
+
target: {
|
|
498
|
+
type: String,
|
|
499
|
+
default: "_self"
|
|
500
|
+
},
|
|
501
|
+
active: {
|
|
502
|
+
type: Boolean,
|
|
503
|
+
default: !1
|
|
504
|
+
},
|
|
505
|
+
disabled: {
|
|
506
|
+
type: Boolean,
|
|
507
|
+
default: !1
|
|
508
|
+
}
|
|
509
|
+
}, Bt), Rt), {}, {
|
|
510
|
+
// To support 3rd party router links based on `<router-link>` (i.e. `g-link` for Gridsome)
|
|
511
|
+
// Default is to auto choose between `<router-link>` and `<nuxt-link>`
|
|
512
|
+
// Gridsome doesn't provide a mechanism to auto detect and has caveats
|
|
513
|
+
// such as not supporting FQDN URLs or hash only URLs
|
|
514
|
+
routerComponentName: {
|
|
515
|
+
type: String
|
|
516
|
+
// default: undefined
|
|
517
|
+
}
|
|
518
|
+
}), pt), Qn = /* @__PURE__ */ P.extend({
|
|
519
|
+
name: pt,
|
|
520
|
+
// Mixin order is important!
|
|
521
|
+
mixins: [ht, Kn, Le],
|
|
522
|
+
inheritAttrs: !1,
|
|
523
|
+
props: Dt,
|
|
524
|
+
computed: {
|
|
525
|
+
computedTag: function() {
|
|
526
|
+
var e = this.to, t = this.disabled, r = this.routerComponentName;
|
|
527
|
+
return Ln({
|
|
528
|
+
to: e,
|
|
529
|
+
disabled: t,
|
|
530
|
+
routerComponentName: r
|
|
531
|
+
}, this);
|
|
532
|
+
},
|
|
533
|
+
isRouterLink: function() {
|
|
534
|
+
return xt(this.computedTag);
|
|
535
|
+
},
|
|
536
|
+
computedRel: function() {
|
|
537
|
+
var e = this.target, t = this.rel;
|
|
538
|
+
return Fn({
|
|
539
|
+
target: e,
|
|
540
|
+
rel: t
|
|
541
|
+
});
|
|
542
|
+
},
|
|
543
|
+
computedHref: function() {
|
|
544
|
+
var e = this.to, t = this.href;
|
|
545
|
+
return zn({
|
|
546
|
+
to: e,
|
|
547
|
+
href: t
|
|
548
|
+
}, this.computedTag);
|
|
549
|
+
},
|
|
550
|
+
computedProps: function() {
|
|
551
|
+
var e = this.prefetch;
|
|
552
|
+
return this.isRouterLink ? _(_({}, $t(_(_({}, Bt), Rt), this)), {}, {
|
|
553
|
+
// Coerce `prefetch` value `null` to be `undefined`
|
|
554
|
+
prefetch: vt(e) ? e : void 0,
|
|
555
|
+
// Pass `router-tag` as `tag` prop
|
|
556
|
+
tag: this.routerTag
|
|
557
|
+
}) : {};
|
|
558
|
+
},
|
|
559
|
+
computedAttrs: function() {
|
|
560
|
+
var e = this.bvAttrs, t = this.computedHref, r = this.computedRel, a = this.disabled, i = this.target, o = this.routerTag, s = this.isRouterLink;
|
|
561
|
+
return _(_(_(_({}, e), t ? {
|
|
562
|
+
href: t
|
|
563
|
+
} : {}), s && !pe(o, "a") ? {} : {
|
|
564
|
+
rel: r,
|
|
565
|
+
target: i
|
|
566
|
+
}), {}, {
|
|
567
|
+
tabindex: a ? "-1" : xe(e.tabindex) ? null : e.tabindex,
|
|
568
|
+
"aria-disabled": a ? "true" : null
|
|
569
|
+
});
|
|
570
|
+
},
|
|
571
|
+
computedListeners: function() {
|
|
572
|
+
return _(_({}, this.bvListeners), {}, {
|
|
573
|
+
// We want to overwrite any click handler since our callback
|
|
574
|
+
// will invoke the user supplied handler(s) if `!this.disabled`
|
|
575
|
+
click: this.onClick
|
|
576
|
+
});
|
|
577
|
+
}
|
|
578
|
+
},
|
|
579
|
+
methods: {
|
|
580
|
+
onClick: function(e) {
|
|
581
|
+
var t = arguments, r = je(e), a = this.isRouterLink, i = this.bvListeners.click;
|
|
582
|
+
r && this.disabled ? X(e, {
|
|
583
|
+
immediatePropagation: !0
|
|
584
|
+
}) : (a && e.currentTarget.__vue__ && e.currentTarget.__vue__.$emit("click", e), j(i).filter(function(o) {
|
|
585
|
+
return V(o);
|
|
586
|
+
}).forEach(function(o) {
|
|
587
|
+
o.apply(void 0, Un(t));
|
|
588
|
+
}), this.$root.$emit("clicked::link", e)), r && !a && this.computedHref === "#" && X(e, {
|
|
589
|
+
propagation: !1
|
|
590
|
+
});
|
|
591
|
+
},
|
|
592
|
+
focus: function() {
|
|
593
|
+
D(this.$el);
|
|
594
|
+
},
|
|
595
|
+
blur: function() {
|
|
596
|
+
ln(this.$el);
|
|
597
|
+
}
|
|
598
|
+
},
|
|
599
|
+
render: function(e) {
|
|
600
|
+
var t = this.active, r = this.disabled;
|
|
601
|
+
return e(this.computedTag, Vt({
|
|
602
|
+
class: {
|
|
603
|
+
active: t,
|
|
604
|
+
disabled: r
|
|
605
|
+
},
|
|
606
|
+
attrs: this.computedAttrs,
|
|
607
|
+
props: this.computedProps
|
|
608
|
+
}, this.isRouterLink ? "nativeOn" : "on", this.computedListeners), this.normalizeSlot());
|
|
609
|
+
}
|
|
610
|
+
});
|
|
611
|
+
function Ze(n, e) {
|
|
612
|
+
var t = Object.keys(n);
|
|
613
|
+
if (Object.getOwnPropertySymbols) {
|
|
614
|
+
var r = Object.getOwnPropertySymbols(n);
|
|
615
|
+
e && (r = r.filter(function(a) {
|
|
616
|
+
return Object.getOwnPropertyDescriptor(n, a).enumerable;
|
|
617
|
+
})), t.push.apply(t, r);
|
|
618
|
+
}
|
|
619
|
+
return t;
|
|
620
|
+
}
|
|
621
|
+
function Jn(n) {
|
|
622
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
623
|
+
var t = arguments[e] != null ? arguments[e] : {};
|
|
624
|
+
e % 2 ? Ze(Object(t), !0).forEach(function(r) {
|
|
625
|
+
M(n, r, t[r]);
|
|
626
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : Ze(Object(t)).forEach(function(r) {
|
|
627
|
+
Object.defineProperty(n, r, Object.getOwnPropertyDescriptor(t, r));
|
|
628
|
+
});
|
|
629
|
+
}
|
|
630
|
+
return n;
|
|
631
|
+
}
|
|
632
|
+
function M(n, e, t) {
|
|
633
|
+
return e in n ? Object.defineProperty(n, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : n[e] = t, n;
|
|
634
|
+
}
|
|
635
|
+
var he = un(Dt, ["event", "routerTag"]);
|
|
636
|
+
delete he.href.default;
|
|
637
|
+
delete he.to.default;
|
|
638
|
+
var er = de(Jn({
|
|
639
|
+
block: {
|
|
640
|
+
type: Boolean,
|
|
641
|
+
default: !1
|
|
642
|
+
},
|
|
643
|
+
disabled: {
|
|
644
|
+
type: Boolean,
|
|
645
|
+
default: !1
|
|
646
|
+
},
|
|
647
|
+
size: {
|
|
648
|
+
type: String
|
|
649
|
+
// default: null
|
|
650
|
+
},
|
|
651
|
+
variant: {
|
|
652
|
+
type: String,
|
|
653
|
+
default: "secondary"
|
|
654
|
+
},
|
|
655
|
+
type: {
|
|
656
|
+
type: String,
|
|
657
|
+
default: "button"
|
|
658
|
+
},
|
|
659
|
+
tag: {
|
|
660
|
+
type: String,
|
|
661
|
+
default: "button"
|
|
662
|
+
},
|
|
663
|
+
pill: {
|
|
664
|
+
type: Boolean,
|
|
665
|
+
default: !1
|
|
666
|
+
},
|
|
667
|
+
squared: {
|
|
668
|
+
type: Boolean,
|
|
669
|
+
default: !1
|
|
670
|
+
},
|
|
671
|
+
pressed: {
|
|
672
|
+
// Tri-state: `true`, `false` or `null`
|
|
673
|
+
// => On, off, not a toggle
|
|
674
|
+
type: Boolean,
|
|
675
|
+
default: null
|
|
676
|
+
}
|
|
677
|
+
}, he), gt), Xe = function(e) {
|
|
678
|
+
e.type === "focusin" ? Y(e.target, "focus") : e.type === "focusout" && mt(e.target, "focus");
|
|
679
|
+
}, Q = function(e) {
|
|
680
|
+
return Nn(e) || pe(e.tag, "a");
|
|
681
|
+
}, It = function(e) {
|
|
682
|
+
return vt(e.pressed);
|
|
683
|
+
}, jt = function(e) {
|
|
684
|
+
return !(Q(e) || e.tag && !pe(e.tag, "button"));
|
|
685
|
+
}, Nt = function(e) {
|
|
686
|
+
return !Q(e) && !jt(e);
|
|
687
|
+
}, tr = function(e) {
|
|
688
|
+
var t;
|
|
689
|
+
return ["btn-".concat(e.variant || "secondary"), (t = {}, M(t, "btn-".concat(e.size), e.size), M(t, "btn-block", e.block), M(t, "rounded-pill", e.pill), M(t, "rounded-0", e.squared && !e.pill), M(t, "disabled", e.disabled), M(t, "active", e.pressed), t)];
|
|
690
|
+
}, nr = function(e) {
|
|
691
|
+
return Q(e) ? $t(he, e) : {};
|
|
692
|
+
}, rr = function(e, t) {
|
|
693
|
+
var r = jt(e), a = Q(e), i = It(e), o = Nt(e), s = a && e.href === "#", l = t.attrs && t.attrs.role ? t.attrs.role : null, u = t.attrs ? t.attrs.tabindex : null;
|
|
694
|
+
return (o || s) && (u = "0"), {
|
|
695
|
+
// Type only used for "real" buttons
|
|
696
|
+
type: r && !a ? e.type : null,
|
|
697
|
+
// Disabled only set on "real" buttons
|
|
698
|
+
disabled: r ? e.disabled : null,
|
|
699
|
+
// We add a role of button when the tag is not a link or button for ARIA
|
|
700
|
+
// Don't bork any role provided in `data.attrs` when `isLink` or `isButton`
|
|
701
|
+
// Except when link has `href` of `#`
|
|
702
|
+
role: o || s ? "button" : l,
|
|
703
|
+
// We set the `aria-disabled` state for non-standard tags
|
|
704
|
+
"aria-disabled": o ? String(e.disabled) : null,
|
|
705
|
+
// For toggles, we need to set the pressed state for ARIA
|
|
706
|
+
"aria-pressed": i ? String(e.pressed) : null,
|
|
707
|
+
// `autocomplete="off"` is needed in toggle mode to prevent some browsers
|
|
708
|
+
// from remembering the previous setting when using the back button
|
|
709
|
+
autocomplete: i ? "off" : null,
|
|
710
|
+
// `tabindex` is used when the component is not a button
|
|
711
|
+
// Links are tabbable, but don't allow disabled, while non buttons or links
|
|
712
|
+
// are not tabbable, so we mimic that functionality by disabling tabbing
|
|
713
|
+
// when disabled, and adding a `tabindex="0"` to non buttons or non links
|
|
714
|
+
tabindex: e.disabled && !r ? "-1" : u
|
|
715
|
+
};
|
|
716
|
+
}, Qe = /* @__PURE__ */ P.extend({
|
|
717
|
+
name: gt,
|
|
718
|
+
functional: !0,
|
|
719
|
+
props: er,
|
|
720
|
+
render: function(e, t) {
|
|
721
|
+
var r = t.props, a = t.data, i = t.listeners, o = t.children, s = It(r), l = Q(r), u = Nt(r), f = l && r.href === "#", h = {
|
|
722
|
+
keydown: function(v) {
|
|
723
|
+
if (!(r.disabled || !(u || f))) {
|
|
724
|
+
var g = v.keyCode;
|
|
725
|
+
if (g === Yn || g === Hn && u) {
|
|
726
|
+
var L = v.currentTarget || v.target;
|
|
727
|
+
X(v, {
|
|
728
|
+
propagation: !1
|
|
729
|
+
}), L.click();
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
},
|
|
733
|
+
click: function(v) {
|
|
734
|
+
r.disabled && je(v) ? X(v) : s && i && i["update:pressed"] && j(i["update:pressed"]).forEach(function(g) {
|
|
735
|
+
V(g) && g(!r.pressed);
|
|
736
|
+
});
|
|
737
|
+
}
|
|
738
|
+
};
|
|
739
|
+
s && (h.focusin = Xe, h.focusout = Xe);
|
|
740
|
+
var b = {
|
|
741
|
+
staticClass: "btn",
|
|
742
|
+
class: tr(r),
|
|
743
|
+
props: nr(r),
|
|
744
|
+
attrs: rr(r, a),
|
|
745
|
+
on: h
|
|
746
|
+
};
|
|
747
|
+
return e(l ? Qn : r.tag, ze(a, b), o);
|
|
748
|
+
}
|
|
749
|
+
}), E = {
|
|
750
|
+
passive: !0,
|
|
751
|
+
capture: !1
|
|
752
|
+
};
|
|
753
|
+
function Je(n, e) {
|
|
754
|
+
var t = Object.keys(n);
|
|
755
|
+
if (Object.getOwnPropertySymbols) {
|
|
756
|
+
var r = Object.getOwnPropertySymbols(n);
|
|
757
|
+
e && (r = r.filter(function(a) {
|
|
758
|
+
return Object.getOwnPropertyDescriptor(n, a).enumerable;
|
|
759
|
+
})), t.push.apply(t, r);
|
|
760
|
+
}
|
|
761
|
+
return t;
|
|
762
|
+
}
|
|
763
|
+
function ar(n) {
|
|
764
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
765
|
+
var t = arguments[e] != null ? arguments[e] : {};
|
|
766
|
+
e % 2 ? Je(Object(t), !0).forEach(function(r) {
|
|
767
|
+
ir(n, r, t[r]);
|
|
768
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : Je(Object(t)).forEach(function(r) {
|
|
769
|
+
Object.defineProperty(n, r, Object.getOwnPropertyDescriptor(t, r));
|
|
770
|
+
});
|
|
771
|
+
}
|
|
772
|
+
return n;
|
|
773
|
+
}
|
|
774
|
+
function ir(n, e, t) {
|
|
775
|
+
return e in n ? Object.defineProperty(n, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : n[e] = t, n;
|
|
776
|
+
}
|
|
777
|
+
var or = function(e, t, r) {
|
|
778
|
+
if (e = e ? e.$el || e : null, !cn(e) || dn("observeDom"))
|
|
779
|
+
return null;
|
|
780
|
+
var a = new fn(function(i) {
|
|
781
|
+
for (var o = !1, s = 0; s < i.length && !o; s++) {
|
|
782
|
+
var l = i[s], u = l.type, f = l.target;
|
|
783
|
+
(u === "characterData" && f.nodeType === Node.TEXT_NODE || u === "attributes" || u === "childList" && (l.addedNodes.length > 0 || l.removedNodes.length > 0)) && (o = !0);
|
|
784
|
+
}
|
|
785
|
+
o && t();
|
|
786
|
+
});
|
|
787
|
+
return a.observe(e, ar({
|
|
788
|
+
childList: !0,
|
|
789
|
+
subtree: !0
|
|
790
|
+
}, r)), a;
|
|
791
|
+
};
|
|
792
|
+
const sr = {
|
|
793
|
+
methods: {
|
|
794
|
+
/**
|
|
795
|
+
* Safely register event listeners on the root Vue node
|
|
796
|
+
* While Vue automatically removes listeners for individual components,
|
|
797
|
+
* when a component registers a listener on root and is destroyed,
|
|
798
|
+
* this orphans a callback because the node is gone,
|
|
799
|
+
* but the root does not clear the callback
|
|
800
|
+
*
|
|
801
|
+
* When registering a `$root` listener, it also registers a listener on
|
|
802
|
+
* the component's `beforeDestroy()` hook to automatically remove the
|
|
803
|
+
* event listener from the `$root` instance
|
|
804
|
+
*
|
|
805
|
+
* @param {string} event
|
|
806
|
+
* @param {function} callback
|
|
807
|
+
*/
|
|
808
|
+
listenOnRoot: function(e, t) {
|
|
809
|
+
var r = this;
|
|
810
|
+
this.$root.$on(e, t), this.$on("hook:beforeDestroy", function() {
|
|
811
|
+
r.$root.$off(e, t);
|
|
812
|
+
});
|
|
813
|
+
},
|
|
814
|
+
/**
|
|
815
|
+
* Safely register a `$once()` event listener on the root Vue node
|
|
816
|
+
* While Vue automatically removes listeners for individual components,
|
|
817
|
+
* when a component registers a listener on root and is destroyed,
|
|
818
|
+
* this orphans a callback because the node is gone,
|
|
819
|
+
* but the root does not clear the callback
|
|
820
|
+
*
|
|
821
|
+
* When registering a $root listener, it also registers a listener on
|
|
822
|
+
* the component's `beforeDestroy` hook to automatically remove the
|
|
823
|
+
* event listener from the $root instance.
|
|
824
|
+
*
|
|
825
|
+
* @param {string} event
|
|
826
|
+
* @param {function} callback
|
|
827
|
+
*/
|
|
828
|
+
listenOnRootOnce: function(e, t) {
|
|
829
|
+
var r = this;
|
|
830
|
+
this.$root.$once(e, t), this.$on("hook:beforeDestroy", function() {
|
|
831
|
+
r.$root.$off(e, t);
|
|
832
|
+
});
|
|
833
|
+
},
|
|
834
|
+
/**
|
|
835
|
+
* Convenience method for calling `vm.$emit()` on `vm.$root`
|
|
836
|
+
*
|
|
837
|
+
* @param {string} event
|
|
838
|
+
* @param {*} args
|
|
839
|
+
*/
|
|
840
|
+
emitOnRoot: function(e) {
|
|
841
|
+
for (var t, r = arguments.length, a = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
|
|
842
|
+
a[i - 1] = arguments[i];
|
|
843
|
+
(t = this.$root).$emit.apply(t, [e].concat(a));
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
};
|
|
847
|
+
function lr(n, e) {
|
|
848
|
+
if (!(n instanceof e))
|
|
849
|
+
throw new TypeError("Cannot call a class as a function");
|
|
850
|
+
}
|
|
851
|
+
function et(n, e) {
|
|
852
|
+
for (var t = 0; t < e.length; t++) {
|
|
853
|
+
var r = e[t];
|
|
854
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(n, r.key, r);
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
function ur(n, e, t) {
|
|
858
|
+
return e && et(n.prototype, e), t && et(n, t), n;
|
|
859
|
+
}
|
|
860
|
+
var cr = /* @__PURE__ */ function() {
|
|
861
|
+
function n(e) {
|
|
862
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
863
|
+
if (lr(this, n), !e)
|
|
864
|
+
throw new TypeError("Failed to construct '".concat(this.constructor.name, "'. 1 argument required, ").concat(arguments.length, " given."));
|
|
865
|
+
pn(this, n.Defaults, this.constructor.Defaults, t, {
|
|
866
|
+
type: e
|
|
867
|
+
}), bt(this, {
|
|
868
|
+
type: T(),
|
|
869
|
+
cancelable: T(),
|
|
870
|
+
nativeEvent: T(),
|
|
871
|
+
target: T(),
|
|
872
|
+
relatedTarget: T(),
|
|
873
|
+
vueTarget: T(),
|
|
874
|
+
componentId: T()
|
|
875
|
+
});
|
|
876
|
+
var r = !1;
|
|
877
|
+
this.preventDefault = function() {
|
|
878
|
+
this.cancelable && (r = !0);
|
|
879
|
+
}, hn(this, "defaultPrevented", {
|
|
880
|
+
enumerable: !0,
|
|
881
|
+
get: function() {
|
|
882
|
+
return r;
|
|
883
|
+
}
|
|
884
|
+
});
|
|
885
|
+
}
|
|
886
|
+
return ur(n, null, [{
|
|
887
|
+
key: "Defaults",
|
|
888
|
+
get: function() {
|
|
889
|
+
return {
|
|
890
|
+
type: "",
|
|
891
|
+
cancelable: !0,
|
|
892
|
+
nativeEvent: null,
|
|
893
|
+
target: null,
|
|
894
|
+
relatedTarget: null,
|
|
895
|
+
vueTarget: null,
|
|
896
|
+
componentId: null
|
|
897
|
+
};
|
|
898
|
+
}
|
|
899
|
+
}]), n;
|
|
900
|
+
}(), dr = /* @__PURE__ */ P.extend({
|
|
901
|
+
// As an abstract component, it doesn't appear in the $parent chain of
|
|
902
|
+
// components, which means the next parent of any component rendered inside
|
|
903
|
+
// of this one will be the parent from which is was portal'd
|
|
904
|
+
abstract: !0,
|
|
905
|
+
name: gn,
|
|
906
|
+
props: {
|
|
907
|
+
nodes: {
|
|
908
|
+
// Even though we only support a single root element,
|
|
909
|
+
// VNodes are always passed as an array
|
|
910
|
+
type: [Array, Function]
|
|
911
|
+
// default: undefined
|
|
912
|
+
}
|
|
913
|
+
},
|
|
914
|
+
data: function(e) {
|
|
915
|
+
return {
|
|
916
|
+
updatedNodes: e.nodes
|
|
917
|
+
};
|
|
918
|
+
},
|
|
919
|
+
destroyed: function() {
|
|
920
|
+
mn(this.$el);
|
|
921
|
+
},
|
|
922
|
+
render: function(e) {
|
|
923
|
+
var t = V(this.updatedNodes) ? this.updatedNodes({}) : this.updatedNodes;
|
|
924
|
+
return t = j(t).filter(Boolean), t && t.length > 0 && !t[0].text ? t[0] : e();
|
|
925
|
+
}
|
|
926
|
+
}), fr = /* @__PURE__ */ P.extend({
|
|
927
|
+
name: vn,
|
|
928
|
+
mixins: [Le],
|
|
929
|
+
props: {
|
|
930
|
+
disabled: {
|
|
931
|
+
type: Boolean,
|
|
932
|
+
default: !1
|
|
933
|
+
},
|
|
934
|
+
container: {
|
|
935
|
+
// String: CSS selector,
|
|
936
|
+
// HTMLElement: Element reference
|
|
937
|
+
// Mainly needed for tooltips/popovers inside modals
|
|
938
|
+
type: [String, Et],
|
|
939
|
+
default: "body"
|
|
940
|
+
},
|
|
941
|
+
tag: {
|
|
942
|
+
// This should be set to match the root element type
|
|
943
|
+
type: String,
|
|
944
|
+
default: "div"
|
|
945
|
+
}
|
|
946
|
+
},
|
|
947
|
+
watch: {
|
|
948
|
+
disabled: {
|
|
949
|
+
immediate: !0,
|
|
950
|
+
handler: function(e) {
|
|
951
|
+
e ? this.unmountTarget() : this.$nextTick(this.mountTarget);
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
},
|
|
955
|
+
created: function() {
|
|
956
|
+
this.$_defaultFn = null, this.$_target = null;
|
|
957
|
+
},
|
|
958
|
+
beforeMount: function() {
|
|
959
|
+
this.mountTarget();
|
|
960
|
+
},
|
|
961
|
+
updated: function() {
|
|
962
|
+
this.updateTarget();
|
|
963
|
+
},
|
|
964
|
+
beforeDestroy: function() {
|
|
965
|
+
this.unmountTarget(), this.$_defaultFn = null;
|
|
966
|
+
},
|
|
967
|
+
methods: {
|
|
968
|
+
// Get the element which the target should be appended to
|
|
969
|
+
getContainer: function() {
|
|
970
|
+
if (S) {
|
|
971
|
+
var e = this.container;
|
|
972
|
+
return x(e) ? yt(e) : e;
|
|
973
|
+
} else
|
|
974
|
+
return null;
|
|
975
|
+
},
|
|
976
|
+
// Mount the target
|
|
977
|
+
mountTarget: function() {
|
|
978
|
+
if (!this.$_target) {
|
|
979
|
+
var e = this.getContainer();
|
|
980
|
+
if (e) {
|
|
981
|
+
var t = document.createElement("div");
|
|
982
|
+
e.appendChild(t), this.$_target = new dr({
|
|
983
|
+
el: t,
|
|
984
|
+
parent: this,
|
|
985
|
+
propsData: {
|
|
986
|
+
// Initial nodes to be rendered
|
|
987
|
+
nodes: j(this.normalizeSlot())
|
|
988
|
+
}
|
|
989
|
+
});
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
},
|
|
993
|
+
// Update the content of the target
|
|
994
|
+
updateTarget: function() {
|
|
995
|
+
if (S && this.$_target) {
|
|
996
|
+
var e = this.$scopedSlots.default;
|
|
997
|
+
this.disabled || (e && this.$_defaultFn !== e ? this.$_target.updatedNodes = e : e || (this.$_target.updatedNodes = this.$slots.default)), this.$_defaultFn = e;
|
|
998
|
+
}
|
|
999
|
+
},
|
|
1000
|
+
// Unmount the target
|
|
1001
|
+
unmountTarget: function() {
|
|
1002
|
+
this.$_target && this.$_target.$destroy(), this.$_target = null;
|
|
1003
|
+
}
|
|
1004
|
+
},
|
|
1005
|
+
render: function(e) {
|
|
1006
|
+
if (this.disabled) {
|
|
1007
|
+
var t = j(this.normalizeSlot()).filter(Ne);
|
|
1008
|
+
if (t.length > 0 && !t[0].text)
|
|
1009
|
+
return t[0];
|
|
1010
|
+
}
|
|
1011
|
+
return e();
|
|
1012
|
+
}
|
|
1013
|
+
}), C = "$_bv_documentHandlers_";
|
|
1014
|
+
const pr = {
|
|
1015
|
+
created: function() {
|
|
1016
|
+
var e = this;
|
|
1017
|
+
S && (this[C] = {}, this.$once("hook:beforeDestroy", function() {
|
|
1018
|
+
var t = e[C] || {};
|
|
1019
|
+
delete e[C], fe(t).forEach(function(r) {
|
|
1020
|
+
var a = t[r] || [];
|
|
1021
|
+
a.forEach(function(i) {
|
|
1022
|
+
return Z(document, r, i, E);
|
|
1023
|
+
});
|
|
1024
|
+
});
|
|
1025
|
+
}));
|
|
1026
|
+
},
|
|
1027
|
+
methods: {
|
|
1028
|
+
listenDocument: function(e, t, r) {
|
|
1029
|
+
e ? this.listenOnDocument(t, r) : this.listenOffDocument(t, r);
|
|
1030
|
+
},
|
|
1031
|
+
listenOnDocument: function(e, t) {
|
|
1032
|
+
this[C] && x(e) && V(t) && (this[C][e] = this[C][e] || [], Fe(this[C][e], t) || (this[C][e].push(t), He(document, e, t, E)));
|
|
1033
|
+
},
|
|
1034
|
+
listenOffDocument: function(e, t) {
|
|
1035
|
+
this[C] && x(e) && V(t) && (Z(document, e, t, E), this[C][e] = (this[C][e] || []).filter(function(r) {
|
|
1036
|
+
return r !== t;
|
|
1037
|
+
}));
|
|
1038
|
+
}
|
|
1039
|
+
}
|
|
1040
|
+
};
|
|
1041
|
+
var w = "$_bv_windowHandlers_";
|
|
1042
|
+
const hr = {
|
|
1043
|
+
beforeCreate: function() {
|
|
1044
|
+
this[w] = {};
|
|
1045
|
+
},
|
|
1046
|
+
beforeDestroy: function() {
|
|
1047
|
+
if (S) {
|
|
1048
|
+
var e = this[w];
|
|
1049
|
+
delete this[w], fe(e).forEach(function(t) {
|
|
1050
|
+
var r = e[t] || [];
|
|
1051
|
+
r.forEach(function(a) {
|
|
1052
|
+
return Z(window, t, a, E);
|
|
1053
|
+
});
|
|
1054
|
+
});
|
|
1055
|
+
}
|
|
1056
|
+
},
|
|
1057
|
+
methods: {
|
|
1058
|
+
listenWindow: function(e, t, r) {
|
|
1059
|
+
e ? this.listenOnWindow(t, r) : this.listenOffWindow(t, r);
|
|
1060
|
+
},
|
|
1061
|
+
listenOnWindow: function(e, t) {
|
|
1062
|
+
S && this[w] && x(e) && V(t) && (this[w][e] = this[w][e] || [], Fe(this[w][e], t) || (this[w][e].push(t), He(window, e, t, E)));
|
|
1063
|
+
},
|
|
1064
|
+
listenOffWindow: function(e, t) {
|
|
1065
|
+
S && this[w] && x(e) && V(t) && (Z(window, e, t, E), this[w][e] = (this[w][e] || []).filter(function(r) {
|
|
1066
|
+
return r !== t;
|
|
1067
|
+
}));
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
};
|
|
1071
|
+
var vr = function(e) {
|
|
1072
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
|
1073
|
+
return e && e.$options._scopeId || t;
|
|
1074
|
+
};
|
|
1075
|
+
function gr(n, e, t) {
|
|
1076
|
+
return e in n ? Object.defineProperty(n, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : n[e] = t, n;
|
|
1077
|
+
}
|
|
1078
|
+
const mr = {
|
|
1079
|
+
computed: {
|
|
1080
|
+
scopedStyleAttrs: function() {
|
|
1081
|
+
var e = vr(this.$parent);
|
|
1082
|
+
return e ? gr({}, e, "") : {};
|
|
1083
|
+
}
|
|
1084
|
+
}
|
|
1085
|
+
};
|
|
1086
|
+
var tt = 1040, Ae = {
|
|
1087
|
+
FIXED_CONTENT: ".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",
|
|
1088
|
+
STICKY_CONTENT: ".sticky-top",
|
|
1089
|
+
NAVBAR_TOGGLER: ".navbar-toggler"
|
|
1090
|
+
}, br = /* @__PURE__ */ P.extend({
|
|
1091
|
+
data: function() {
|
|
1092
|
+
return {
|
|
1093
|
+
modals: [],
|
|
1094
|
+
baseZIndex: null,
|
|
1095
|
+
scrollbarWidth: null,
|
|
1096
|
+
isBodyOverflowing: !1
|
|
1097
|
+
};
|
|
1098
|
+
},
|
|
1099
|
+
computed: {
|
|
1100
|
+
modalCount: function() {
|
|
1101
|
+
return this.modals.length;
|
|
1102
|
+
},
|
|
1103
|
+
modalsAreOpen: function() {
|
|
1104
|
+
return this.modalCount > 0;
|
|
1105
|
+
}
|
|
1106
|
+
},
|
|
1107
|
+
watch: {
|
|
1108
|
+
modalCount: function(e, t) {
|
|
1109
|
+
S && (this.getScrollbarWidth(), e > 0 && t === 0 ? (this.checkScrollbar(), this.setScrollbar(), Y(document.body, "modal-open")) : e === 0 && t > 0 && (this.resetScrollbar(), mt(document.body, "modal-open")), F(document.body, "data-modal-open-count", String(e)));
|
|
1110
|
+
},
|
|
1111
|
+
modals: function(e) {
|
|
1112
|
+
var t = this;
|
|
1113
|
+
this.checkScrollbar(), K(function() {
|
|
1114
|
+
t.updateModals(e || []);
|
|
1115
|
+
});
|
|
1116
|
+
}
|
|
1117
|
+
},
|
|
1118
|
+
methods: {
|
|
1119
|
+
// Public methods
|
|
1120
|
+
registerModal: function(e) {
|
|
1121
|
+
var t = this;
|
|
1122
|
+
e && this.modals.indexOf(e) === -1 && (this.modals.push(e), e.$once("hook:beforeDestroy", function() {
|
|
1123
|
+
t.unregisterModal(e);
|
|
1124
|
+
}));
|
|
1125
|
+
},
|
|
1126
|
+
unregisterModal: function(e) {
|
|
1127
|
+
var t = this.modals.indexOf(e);
|
|
1128
|
+
t > -1 && (this.modals.splice(t, 1), e._isBeingDestroyed || e._isDestroyed || this.resetModal(e));
|
|
1129
|
+
},
|
|
1130
|
+
getBaseZIndex: function() {
|
|
1131
|
+
if (U(this.baseZIndex) && S) {
|
|
1132
|
+
var e = document.createElement("div");
|
|
1133
|
+
Y(e, "modal-backdrop"), Y(e, "d-none"), k(e, "display", "none"), document.body.appendChild(e), this.baseZIndex = An(z(e).zIndex, tt), document.body.removeChild(e);
|
|
1134
|
+
}
|
|
1135
|
+
return this.baseZIndex || tt;
|
|
1136
|
+
},
|
|
1137
|
+
getScrollbarWidth: function() {
|
|
1138
|
+
if (U(this.scrollbarWidth) && S) {
|
|
1139
|
+
var e = document.createElement("div");
|
|
1140
|
+
Y(e, "modal-scrollbar-measure"), document.body.appendChild(e), this.scrollbarWidth = Ue(e).width - e.clientWidth, document.body.removeChild(e);
|
|
1141
|
+
}
|
|
1142
|
+
return this.scrollbarWidth || 0;
|
|
1143
|
+
},
|
|
1144
|
+
// Private methods
|
|
1145
|
+
updateModals: function(e) {
|
|
1146
|
+
var t = this, r = this.getBaseZIndex(), a = this.getScrollbarWidth();
|
|
1147
|
+
e.forEach(function(i, o) {
|
|
1148
|
+
i.zIndex = r + o, i.scrollbarWidth = a, i.isTop = o === t.modals.length - 1, i.isBodyOverflowing = t.isBodyOverflowing;
|
|
1149
|
+
});
|
|
1150
|
+
},
|
|
1151
|
+
resetModal: function(e) {
|
|
1152
|
+
e && (e.zIndex = this.getBaseZIndex(), e.isTop = !0, e.isBodyOverflowing = !1);
|
|
1153
|
+
},
|
|
1154
|
+
checkScrollbar: function() {
|
|
1155
|
+
var e = Ue(document.body), t = e.left, r = e.right;
|
|
1156
|
+
this.isBodyOverflowing = t + r < window.innerWidth;
|
|
1157
|
+
},
|
|
1158
|
+
setScrollbar: function() {
|
|
1159
|
+
var e = document.body;
|
|
1160
|
+
if (e._paddingChangedForModal = e._paddingChangedForModal || [], e._marginChangedForModal = e._marginChangedForModal || [], this.isBodyOverflowing) {
|
|
1161
|
+
var t = this.scrollbarWidth;
|
|
1162
|
+
we(Ae.FIXED_CONTENT).forEach(function(a) {
|
|
1163
|
+
var i = ae(a, "paddingRight") || "";
|
|
1164
|
+
F(a, "data-padding-right", i), k(a, "paddingRight", "".concat(oe(z(a).paddingRight, 0) + t, "px")), e._paddingChangedForModal.push(a);
|
|
1165
|
+
}), we(Ae.STICKY_CONTENT).forEach(function(a) {
|
|
1166
|
+
var i = ae(a, "marginRight") || "";
|
|
1167
|
+
F(a, "data-margin-right", i), k(a, "marginRight", "".concat(oe(z(a).marginRight, 0) - t, "px")), e._marginChangedForModal.push(a);
|
|
1168
|
+
}), we(Ae.NAVBAR_TOGGLER).forEach(function(a) {
|
|
1169
|
+
var i = ae(a, "marginRight") || "";
|
|
1170
|
+
F(a, "data-margin-right", i), k(a, "marginRight", "".concat(oe(z(a).marginRight, 0) + t, "px")), e._marginChangedForModal.push(a);
|
|
1171
|
+
});
|
|
1172
|
+
var r = ae(e, "paddingRight") || "";
|
|
1173
|
+
F(e, "data-padding-right", r), k(e, "paddingRight", "".concat(oe(z(e).paddingRight, 0) + t, "px"));
|
|
1174
|
+
}
|
|
1175
|
+
},
|
|
1176
|
+
resetScrollbar: function() {
|
|
1177
|
+
var e = document.body;
|
|
1178
|
+
e._paddingChangedForModal && e._paddingChangedForModal.forEach(function(t) {
|
|
1179
|
+
Se(t, "data-padding-right") && (k(t, "paddingRight", ke(t, "data-padding-right") || ""), Te(t, "data-padding-right"));
|
|
1180
|
+
}), e._marginChangedForModal && e._marginChangedForModal.forEach(function(t) {
|
|
1181
|
+
Se(t, "data-margin-right") && (k(t, "marginRight", ke(t, "data-margin-right") || ""), Te(t, "data-margin-right"));
|
|
1182
|
+
}), e._paddingChangedForModal = null, e._marginChangedForModal = null, Se(e, "data-padding-right") && (k(e, "paddingRight", ke(e, "data-padding-right") || ""), Te(e, "data-padding-right"));
|
|
1183
|
+
}
|
|
1184
|
+
}
|
|
1185
|
+
}), H = new br();
|
|
1186
|
+
function ue(n) {
|
|
1187
|
+
"@babel/helpers - typeof";
|
|
1188
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? ue = function(t) {
|
|
1189
|
+
return typeof t;
|
|
1190
|
+
} : ue = function(t) {
|
|
1191
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
1192
|
+
}, ue(n);
|
|
1193
|
+
}
|
|
1194
|
+
function nt(n, e) {
|
|
1195
|
+
var t = Object.keys(n);
|
|
1196
|
+
if (Object.getOwnPropertySymbols) {
|
|
1197
|
+
var r = Object.getOwnPropertySymbols(n);
|
|
1198
|
+
e && (r = r.filter(function(a) {
|
|
1199
|
+
return Object.getOwnPropertyDescriptor(n, a).enumerable;
|
|
1200
|
+
})), t.push.apply(t, r);
|
|
1201
|
+
}
|
|
1202
|
+
return t;
|
|
1203
|
+
}
|
|
1204
|
+
function rt(n) {
|
|
1205
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
1206
|
+
var t = arguments[e] != null ? arguments[e] : {};
|
|
1207
|
+
e % 2 ? nt(Object(t), !0).forEach(function(r) {
|
|
1208
|
+
yr(n, r, t[r]);
|
|
1209
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : nt(Object(t)).forEach(function(r) {
|
|
1210
|
+
Object.defineProperty(n, r, Object.getOwnPropertyDescriptor(t, r));
|
|
1211
|
+
});
|
|
1212
|
+
}
|
|
1213
|
+
return n;
|
|
1214
|
+
}
|
|
1215
|
+
function yr(n, e, t) {
|
|
1216
|
+
return e in n ? Object.defineProperty(n, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : n[e] = t, n;
|
|
1217
|
+
}
|
|
1218
|
+
function _r(n, e) {
|
|
1219
|
+
if (!(n instanceof e))
|
|
1220
|
+
throw new TypeError("Cannot call a class as a function");
|
|
1221
|
+
}
|
|
1222
|
+
function at(n, e) {
|
|
1223
|
+
for (var t = 0; t < e.length; t++) {
|
|
1224
|
+
var r = e[t];
|
|
1225
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(n, r.key, r);
|
|
1226
|
+
}
|
|
1227
|
+
}
|
|
1228
|
+
function Or(n, e, t) {
|
|
1229
|
+
return e && at(n.prototype, e), t && at(n, t), n;
|
|
1230
|
+
}
|
|
1231
|
+
function ce(n, e, t) {
|
|
1232
|
+
return typeof Reflect != "undefined" && Reflect.get ? ce = Reflect.get : ce = function(a, i, o) {
|
|
1233
|
+
var s = Cr(a, i);
|
|
1234
|
+
if (s) {
|
|
1235
|
+
var l = Object.getOwnPropertyDescriptor(s, i);
|
|
1236
|
+
return l.get ? l.get.call(o) : l.value;
|
|
1237
|
+
}
|
|
1238
|
+
}, ce(n, e, t || n);
|
|
1239
|
+
}
|
|
1240
|
+
function Cr(n, e) {
|
|
1241
|
+
for (; !Object.prototype.hasOwnProperty.call(n, e) && (n = N(n), n !== null); )
|
|
1242
|
+
;
|
|
1243
|
+
return n;
|
|
1244
|
+
}
|
|
1245
|
+
function wr(n, e) {
|
|
1246
|
+
if (typeof e != "function" && e !== null)
|
|
1247
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
1248
|
+
n.prototype = Object.create(e && e.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), e && Re(n, e);
|
|
1249
|
+
}
|
|
1250
|
+
function Re(n, e) {
|
|
1251
|
+
return Re = Object.setPrototypeOf || function(r, a) {
|
|
1252
|
+
return r.__proto__ = a, r;
|
|
1253
|
+
}, Re(n, e);
|
|
1254
|
+
}
|
|
1255
|
+
function Sr(n) {
|
|
1256
|
+
var e = Tr();
|
|
1257
|
+
return function() {
|
|
1258
|
+
var r = N(n), a;
|
|
1259
|
+
if (e) {
|
|
1260
|
+
var i = N(this).constructor;
|
|
1261
|
+
a = Reflect.construct(r, arguments, i);
|
|
1262
|
+
} else
|
|
1263
|
+
a = r.apply(this, arguments);
|
|
1264
|
+
return kr(this, a);
|
|
1265
|
+
};
|
|
1266
|
+
}
|
|
1267
|
+
function kr(n, e) {
|
|
1268
|
+
return e && (ue(e) === "object" || typeof e == "function") ? e : Lt(n);
|
|
1269
|
+
}
|
|
1270
|
+
function Lt(n) {
|
|
1271
|
+
if (n === void 0)
|
|
1272
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1273
|
+
return n;
|
|
1274
|
+
}
|
|
1275
|
+
function Tr() {
|
|
1276
|
+
if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
|
|
1277
|
+
return !1;
|
|
1278
|
+
if (typeof Proxy == "function")
|
|
1279
|
+
return !0;
|
|
1280
|
+
try {
|
|
1281
|
+
return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
|
|
1282
|
+
})), !0;
|
|
1283
|
+
} catch (n) {
|
|
1284
|
+
return !1;
|
|
1285
|
+
}
|
|
1286
|
+
}
|
|
1287
|
+
function N(n) {
|
|
1288
|
+
return N = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
|
|
1289
|
+
return t.__proto__ || Object.getPrototypeOf(t);
|
|
1290
|
+
}, N(n);
|
|
1291
|
+
}
|
|
1292
|
+
var Er = /* @__PURE__ */ function(n) {
|
|
1293
|
+
wr(t, n);
|
|
1294
|
+
var e = Sr(t);
|
|
1295
|
+
function t(r) {
|
|
1296
|
+
var a, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1297
|
+
return _r(this, t), a = e.call(this, r, i), bt(Lt(a), {
|
|
1298
|
+
trigger: T()
|
|
1299
|
+
}), a;
|
|
1300
|
+
}
|
|
1301
|
+
return Or(t, null, [{
|
|
1302
|
+
key: "Defaults",
|
|
1303
|
+
get: function() {
|
|
1304
|
+
return rt(rt({}, ce(N(t), "Defaults", this)), {}, {
|
|
1305
|
+
trigger: null
|
|
1306
|
+
});
|
|
1307
|
+
}
|
|
1308
|
+
}]), t;
|
|
1309
|
+
}(cr);
|
|
1310
|
+
function it(n, e) {
|
|
1311
|
+
var t = Object.keys(n);
|
|
1312
|
+
if (Object.getOwnPropertySymbols) {
|
|
1313
|
+
var r = Object.getOwnPropertySymbols(n);
|
|
1314
|
+
e && (r = r.filter(function(a) {
|
|
1315
|
+
return Object.getOwnPropertyDescriptor(n, a).enumerable;
|
|
1316
|
+
})), t.push.apply(t, r);
|
|
1317
|
+
}
|
|
1318
|
+
return t;
|
|
1319
|
+
}
|
|
1320
|
+
function W(n) {
|
|
1321
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
1322
|
+
var t = arguments[e] != null ? arguments[e] : {};
|
|
1323
|
+
e % 2 ? it(Object(t), !0).forEach(function(r) {
|
|
1324
|
+
O(n, r, t[r]);
|
|
1325
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : it(Object(t)).forEach(function(r) {
|
|
1326
|
+
Object.defineProperty(n, r, Object.getOwnPropertyDescriptor(t, r));
|
|
1327
|
+
});
|
|
1328
|
+
}
|
|
1329
|
+
return n;
|
|
1330
|
+
}
|
|
1331
|
+
function O(n, e, t) {
|
|
1332
|
+
return e in n ? Object.defineProperty(n, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : n[e] = t, n;
|
|
1333
|
+
}
|
|
1334
|
+
var Pr = {
|
|
1335
|
+
subtree: !0,
|
|
1336
|
+
childList: !0,
|
|
1337
|
+
characterData: !0,
|
|
1338
|
+
attributes: !0,
|
|
1339
|
+
attributeFilter: ["style", "class"]
|
|
1340
|
+
}, Ar = de({
|
|
1341
|
+
size: {
|
|
1342
|
+
type: String,
|
|
1343
|
+
default: "md"
|
|
1344
|
+
},
|
|
1345
|
+
centered: {
|
|
1346
|
+
type: Boolean,
|
|
1347
|
+
default: !1
|
|
1348
|
+
},
|
|
1349
|
+
scrollable: {
|
|
1350
|
+
type: Boolean,
|
|
1351
|
+
default: !1
|
|
1352
|
+
},
|
|
1353
|
+
buttonSize: {
|
|
1354
|
+
type: String
|
|
1355
|
+
// default: ''
|
|
1356
|
+
},
|
|
1357
|
+
noStacking: {
|
|
1358
|
+
type: Boolean,
|
|
1359
|
+
default: !1
|
|
1360
|
+
},
|
|
1361
|
+
noFade: {
|
|
1362
|
+
type: Boolean,
|
|
1363
|
+
default: !1
|
|
1364
|
+
},
|
|
1365
|
+
noCloseOnBackdrop: {
|
|
1366
|
+
type: Boolean,
|
|
1367
|
+
default: !1
|
|
1368
|
+
},
|
|
1369
|
+
noCloseOnEsc: {
|
|
1370
|
+
type: Boolean,
|
|
1371
|
+
default: !1
|
|
1372
|
+
},
|
|
1373
|
+
noEnforceFocus: {
|
|
1374
|
+
type: Boolean,
|
|
1375
|
+
default: !1
|
|
1376
|
+
},
|
|
1377
|
+
ignoreEnforceFocusSelector: {
|
|
1378
|
+
type: [Array, String],
|
|
1379
|
+
default: ""
|
|
1380
|
+
},
|
|
1381
|
+
title: {
|
|
1382
|
+
type: String,
|
|
1383
|
+
default: ""
|
|
1384
|
+
},
|
|
1385
|
+
titleHtml: {
|
|
1386
|
+
type: String
|
|
1387
|
+
},
|
|
1388
|
+
titleTag: {
|
|
1389
|
+
type: String,
|
|
1390
|
+
default: "h5"
|
|
1391
|
+
},
|
|
1392
|
+
titleClass: {
|
|
1393
|
+
type: [String, Array, Object]
|
|
1394
|
+
// default: null
|
|
1395
|
+
},
|
|
1396
|
+
titleSrOnly: {
|
|
1397
|
+
type: Boolean,
|
|
1398
|
+
default: !1
|
|
1399
|
+
},
|
|
1400
|
+
ariaLabel: {
|
|
1401
|
+
type: String
|
|
1402
|
+
// default: null
|
|
1403
|
+
},
|
|
1404
|
+
headerBgVariant: {
|
|
1405
|
+
type: String
|
|
1406
|
+
// default: undefined
|
|
1407
|
+
},
|
|
1408
|
+
headerBorderVariant: {
|
|
1409
|
+
type: String
|
|
1410
|
+
// default: undefined
|
|
1411
|
+
},
|
|
1412
|
+
headerTextVariant: {
|
|
1413
|
+
type: String
|
|
1414
|
+
// default: undefined
|
|
1415
|
+
},
|
|
1416
|
+
headerCloseVariant: {
|
|
1417
|
+
type: String
|
|
1418
|
+
// default: undefined
|
|
1419
|
+
},
|
|
1420
|
+
headerClass: {
|
|
1421
|
+
type: [String, Array, Object]
|
|
1422
|
+
// default: null
|
|
1423
|
+
},
|
|
1424
|
+
bodyBgVariant: {
|
|
1425
|
+
type: String
|
|
1426
|
+
// default: undefined
|
|
1427
|
+
},
|
|
1428
|
+
bodyTextVariant: {
|
|
1429
|
+
type: String
|
|
1430
|
+
// default: undefined
|
|
1431
|
+
},
|
|
1432
|
+
modalClass: {
|
|
1433
|
+
type: [String, Array, Object]
|
|
1434
|
+
// default: null
|
|
1435
|
+
},
|
|
1436
|
+
dialogClass: {
|
|
1437
|
+
type: [String, Array, Object]
|
|
1438
|
+
// default: null
|
|
1439
|
+
},
|
|
1440
|
+
contentClass: {
|
|
1441
|
+
type: [String, Array, Object]
|
|
1442
|
+
// default: null
|
|
1443
|
+
},
|
|
1444
|
+
bodyClass: {
|
|
1445
|
+
type: [String, Array, Object]
|
|
1446
|
+
// default: null
|
|
1447
|
+
},
|
|
1448
|
+
footerBgVariant: {
|
|
1449
|
+
type: String
|
|
1450
|
+
// default: undefined
|
|
1451
|
+
},
|
|
1452
|
+
footerBorderVariant: {
|
|
1453
|
+
type: String
|
|
1454
|
+
// default: undefined
|
|
1455
|
+
},
|
|
1456
|
+
footerTextVariant: {
|
|
1457
|
+
type: String
|
|
1458
|
+
// default: undefined
|
|
1459
|
+
},
|
|
1460
|
+
footerClass: {
|
|
1461
|
+
type: [String, Array, Object]
|
|
1462
|
+
// default: null
|
|
1463
|
+
},
|
|
1464
|
+
// TODO: Rename to `noHeader` and deprecate `hideHeader`
|
|
1465
|
+
hideHeader: {
|
|
1466
|
+
type: Boolean,
|
|
1467
|
+
default: !1
|
|
1468
|
+
},
|
|
1469
|
+
// TODO: Rename to `noFooter` and deprecate `hideFooter`
|
|
1470
|
+
hideFooter: {
|
|
1471
|
+
type: Boolean,
|
|
1472
|
+
default: !1
|
|
1473
|
+
},
|
|
1474
|
+
// TODO: Rename to `noHeaderClose` and deprecate `hideHeaderClose`
|
|
1475
|
+
hideHeaderClose: {
|
|
1476
|
+
type: Boolean,
|
|
1477
|
+
default: !1
|
|
1478
|
+
},
|
|
1479
|
+
// TODO: Rename to `noBackdrop` and deprecate `hideBackdrop`
|
|
1480
|
+
hideBackdrop: {
|
|
1481
|
+
type: Boolean,
|
|
1482
|
+
default: !1
|
|
1483
|
+
},
|
|
1484
|
+
okOnly: {
|
|
1485
|
+
type: Boolean,
|
|
1486
|
+
default: !1
|
|
1487
|
+
},
|
|
1488
|
+
okDisabled: {
|
|
1489
|
+
type: Boolean,
|
|
1490
|
+
default: !1
|
|
1491
|
+
},
|
|
1492
|
+
cancelDisabled: {
|
|
1493
|
+
type: Boolean,
|
|
1494
|
+
default: !1
|
|
1495
|
+
},
|
|
1496
|
+
visible: {
|
|
1497
|
+
type: Boolean,
|
|
1498
|
+
default: !1
|
|
1499
|
+
},
|
|
1500
|
+
returnFocus: {
|
|
1501
|
+
// HTML Element, CSS selector string or Vue component instance
|
|
1502
|
+
type: [Et, String, Object],
|
|
1503
|
+
default: null
|
|
1504
|
+
},
|
|
1505
|
+
headerCloseContent: {
|
|
1506
|
+
type: String,
|
|
1507
|
+
default: "×"
|
|
1508
|
+
},
|
|
1509
|
+
headerCloseLabel: {
|
|
1510
|
+
type: String,
|
|
1511
|
+
default: "Close"
|
|
1512
|
+
},
|
|
1513
|
+
cancelTitle: {
|
|
1514
|
+
type: String,
|
|
1515
|
+
default: "Cancel"
|
|
1516
|
+
},
|
|
1517
|
+
cancelTitleHtml: {
|
|
1518
|
+
type: String
|
|
1519
|
+
},
|
|
1520
|
+
okTitle: {
|
|
1521
|
+
type: String,
|
|
1522
|
+
default: "OK"
|
|
1523
|
+
},
|
|
1524
|
+
okTitleHtml: {
|
|
1525
|
+
type: String
|
|
1526
|
+
},
|
|
1527
|
+
cancelVariant: {
|
|
1528
|
+
type: String,
|
|
1529
|
+
default: "secondary"
|
|
1530
|
+
},
|
|
1531
|
+
okVariant: {
|
|
1532
|
+
type: String,
|
|
1533
|
+
default: "primary"
|
|
1534
|
+
},
|
|
1535
|
+
lazy: {
|
|
1536
|
+
type: Boolean,
|
|
1537
|
+
default: !1
|
|
1538
|
+
},
|
|
1539
|
+
busy: {
|
|
1540
|
+
type: Boolean,
|
|
1541
|
+
default: !1
|
|
1542
|
+
},
|
|
1543
|
+
static: {
|
|
1544
|
+
type: Boolean,
|
|
1545
|
+
default: !1
|
|
1546
|
+
},
|
|
1547
|
+
autoFocusButton: {
|
|
1548
|
+
type: String,
|
|
1549
|
+
default: null,
|
|
1550
|
+
/* istanbul ignore next */
|
|
1551
|
+
validator: function(e) {
|
|
1552
|
+
return Cn(e) || Fe(["ok", "cancel", "close"], e);
|
|
1553
|
+
}
|
|
1554
|
+
}
|
|
1555
|
+
}, _t), Ft = /* @__PURE__ */ P.extend({
|
|
1556
|
+
name: _t,
|
|
1557
|
+
mixins: [ht, bn, pr, sr, hr, Le, mr],
|
|
1558
|
+
inheritAttrs: !1,
|
|
1559
|
+
model: {
|
|
1560
|
+
prop: "visible",
|
|
1561
|
+
event: "change"
|
|
1562
|
+
},
|
|
1563
|
+
props: Ar,
|
|
1564
|
+
data: function() {
|
|
1565
|
+
return {
|
|
1566
|
+
isHidden: !0,
|
|
1567
|
+
// If modal should not be in document
|
|
1568
|
+
isVisible: !1,
|
|
1569
|
+
// Controls modal visible state
|
|
1570
|
+
isTransitioning: !1,
|
|
1571
|
+
// Used for style control
|
|
1572
|
+
isShow: !1,
|
|
1573
|
+
// Used for style control
|
|
1574
|
+
isBlock: !1,
|
|
1575
|
+
// Used for style control
|
|
1576
|
+
isOpening: !1,
|
|
1577
|
+
// To signal that the modal is in the process of opening
|
|
1578
|
+
isClosing: !1,
|
|
1579
|
+
// To signal that the modal is in the process of closing
|
|
1580
|
+
ignoreBackdropClick: !1,
|
|
1581
|
+
// Used to signify if click out listener should ignore the click
|
|
1582
|
+
isModalOverflowing: !1,
|
|
1583
|
+
return_focus: this.returnFocus || null,
|
|
1584
|
+
// The following items are controlled by the modalManager instance
|
|
1585
|
+
scrollbarWidth: 0,
|
|
1586
|
+
zIndex: H.getBaseZIndex(),
|
|
1587
|
+
isTop: !0,
|
|
1588
|
+
isBodyOverflowing: !1
|
|
1589
|
+
};
|
|
1590
|
+
},
|
|
1591
|
+
computed: {
|
|
1592
|
+
modalId: function() {
|
|
1593
|
+
return this.safeId();
|
|
1594
|
+
},
|
|
1595
|
+
modalOuterId: function() {
|
|
1596
|
+
return this.safeId("__BV_modal_outer_");
|
|
1597
|
+
},
|
|
1598
|
+
modalHeaderId: function() {
|
|
1599
|
+
return this.safeId("__BV_modal_header_");
|
|
1600
|
+
},
|
|
1601
|
+
modalBodyId: function() {
|
|
1602
|
+
return this.safeId("__BV_modal_body_");
|
|
1603
|
+
},
|
|
1604
|
+
modalTitleId: function() {
|
|
1605
|
+
return this.safeId("__BV_modal_title_");
|
|
1606
|
+
},
|
|
1607
|
+
modalContentId: function() {
|
|
1608
|
+
return this.safeId("__BV_modal_content_");
|
|
1609
|
+
},
|
|
1610
|
+
modalFooterId: function() {
|
|
1611
|
+
return this.safeId("__BV_modal_footer_");
|
|
1612
|
+
},
|
|
1613
|
+
modalBackdropId: function() {
|
|
1614
|
+
return this.safeId("__BV_modal_backdrop_");
|
|
1615
|
+
},
|
|
1616
|
+
modalClasses: function() {
|
|
1617
|
+
return [{
|
|
1618
|
+
fade: !this.noFade,
|
|
1619
|
+
show: this.isShow
|
|
1620
|
+
}, this.modalClass];
|
|
1621
|
+
},
|
|
1622
|
+
modalStyles: function() {
|
|
1623
|
+
var e = "".concat(this.scrollbarWidth, "px");
|
|
1624
|
+
return {
|
|
1625
|
+
paddingLeft: !this.isBodyOverflowing && this.isModalOverflowing ? e : "",
|
|
1626
|
+
paddingRight: this.isBodyOverflowing && !this.isModalOverflowing ? e : "",
|
|
1627
|
+
// Needed to fix issue https://github.com/bootstrap-vue/bootstrap-vue/issues/3457
|
|
1628
|
+
// Even though we are using v-show, we must ensure 'none' is restored in the styles
|
|
1629
|
+
display: this.isBlock ? "block" : "none"
|
|
1630
|
+
};
|
|
1631
|
+
},
|
|
1632
|
+
dialogClasses: function() {
|
|
1633
|
+
var e;
|
|
1634
|
+
return [(e = {}, O(e, "modal-".concat(this.size), this.size), O(e, "modal-dialog-centered", this.centered), O(e, "modal-dialog-scrollable", this.scrollable), e), this.dialogClass];
|
|
1635
|
+
},
|
|
1636
|
+
headerClasses: function() {
|
|
1637
|
+
var e;
|
|
1638
|
+
return [(e = {}, O(e, "bg-".concat(this.headerBgVariant), this.headerBgVariant), O(e, "text-".concat(this.headerTextVariant), this.headerTextVariant), O(e, "border-".concat(this.headerBorderVariant), this.headerBorderVariant), e), this.headerClass];
|
|
1639
|
+
},
|
|
1640
|
+
titleClasses: function() {
|
|
1641
|
+
return [{
|
|
1642
|
+
"sr-only": this.titleSrOnly
|
|
1643
|
+
}, this.titleClass];
|
|
1644
|
+
},
|
|
1645
|
+
bodyClasses: function() {
|
|
1646
|
+
var e;
|
|
1647
|
+
return [(e = {}, O(e, "bg-".concat(this.bodyBgVariant), this.bodyBgVariant), O(e, "text-".concat(this.bodyTextVariant), this.bodyTextVariant), e), this.bodyClass];
|
|
1648
|
+
},
|
|
1649
|
+
footerClasses: function() {
|
|
1650
|
+
var e;
|
|
1651
|
+
return [(e = {}, O(e, "bg-".concat(this.footerBgVariant), this.footerBgVariant), O(e, "text-".concat(this.footerTextVariant), this.footerTextVariant), O(e, "border-".concat(this.footerBorderVariant), this.footerBorderVariant), e), this.footerClass];
|
|
1652
|
+
},
|
|
1653
|
+
modalOuterStyle: function() {
|
|
1654
|
+
return {
|
|
1655
|
+
position: "absolute",
|
|
1656
|
+
zIndex: this.zIndex
|
|
1657
|
+
};
|
|
1658
|
+
},
|
|
1659
|
+
slotScope: function() {
|
|
1660
|
+
return {
|
|
1661
|
+
ok: this.onOk,
|
|
1662
|
+
cancel: this.onCancel,
|
|
1663
|
+
close: this.onClose,
|
|
1664
|
+
hide: this.hide,
|
|
1665
|
+
visible: this.isVisible
|
|
1666
|
+
};
|
|
1667
|
+
},
|
|
1668
|
+
computeIgnoreEnforceFocusSelector: function() {
|
|
1669
|
+
return j(this.ignoreEnforceFocusSelector).filter(Ne).join(",").trim();
|
|
1670
|
+
},
|
|
1671
|
+
computedAttrs: function() {
|
|
1672
|
+
var e = this.static ? {} : this.scopedStyleAttrs;
|
|
1673
|
+
return W(W(W({}, e), this.bvAttrs), {}, {
|
|
1674
|
+
id: this.modalOuterId
|
|
1675
|
+
});
|
|
1676
|
+
},
|
|
1677
|
+
computedModalAttrs: function() {
|
|
1678
|
+
var e = this.isVisible, t = this.ariaLabel;
|
|
1679
|
+
return {
|
|
1680
|
+
id: this.modalId,
|
|
1681
|
+
role: "dialog",
|
|
1682
|
+
"aria-hidden": e ? null : "true",
|
|
1683
|
+
"aria-modal": e ? "true" : null,
|
|
1684
|
+
"aria-label": t,
|
|
1685
|
+
"aria-labelledby": this.hideHeader || t || // TODO: Rename slot to `title` and deprecate `modal-title`
|
|
1686
|
+
!(this.hasNormalizedSlot("modal-title") || this.titleHtml || this.title) ? null : this.modalTitleId,
|
|
1687
|
+
"aria-describedby": this.modalBodyId
|
|
1688
|
+
};
|
|
1689
|
+
}
|
|
1690
|
+
},
|
|
1691
|
+
watch: {
|
|
1692
|
+
visible: function(e, t) {
|
|
1693
|
+
e !== t && this[e ? "show" : "hide"]();
|
|
1694
|
+
}
|
|
1695
|
+
},
|
|
1696
|
+
created: function() {
|
|
1697
|
+
this.$_observer = null;
|
|
1698
|
+
},
|
|
1699
|
+
mounted: function() {
|
|
1700
|
+
this.zIndex = H.getBaseZIndex(), this.listenOnRoot("bv::show::modal", this.showHandler), this.listenOnRoot("bv::hide::modal", this.hideHandler), this.listenOnRoot("bv::toggle::modal", this.toggleHandler), this.listenOnRoot("bv::modal::show", this.modalListener), this.visible === !0 && this.$nextTick(this.show);
|
|
1701
|
+
},
|
|
1702
|
+
beforeDestroy: function() {
|
|
1703
|
+
this.setObserver(!1), this.isVisible && (this.isVisible = !1, this.isShow = !1, this.isTransitioning = !1);
|
|
1704
|
+
},
|
|
1705
|
+
methods: {
|
|
1706
|
+
setObserver: function() {
|
|
1707
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
|
|
1708
|
+
this.$_observer && this.$_observer.disconnect(), this.$_observer = null, e && (this.$_observer = or(this.$refs.content, this.checkModalOverflow.bind(this), Pr));
|
|
1709
|
+
},
|
|
1710
|
+
// Private method to update the v-model
|
|
1711
|
+
updateModel: function(e) {
|
|
1712
|
+
e !== this.visible && this.$emit("change", e);
|
|
1713
|
+
},
|
|
1714
|
+
// Private method to create a BvModalEvent object
|
|
1715
|
+
buildEvent: function(e) {
|
|
1716
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1717
|
+
return new Er(e, W(W({
|
|
1718
|
+
// Default options
|
|
1719
|
+
cancelable: !1,
|
|
1720
|
+
target: this.$refs.modal || this.$el || null,
|
|
1721
|
+
relatedTarget: null,
|
|
1722
|
+
trigger: null
|
|
1723
|
+
}, t), {}, {
|
|
1724
|
+
// Options that can't be overridden
|
|
1725
|
+
vueTarget: this,
|
|
1726
|
+
componentId: this.modalId
|
|
1727
|
+
}));
|
|
1728
|
+
},
|
|
1729
|
+
// Public method to show modal
|
|
1730
|
+
show: function() {
|
|
1731
|
+
if (!(this.isVisible || this.isOpening)) {
|
|
1732
|
+
if (this.isClosing) {
|
|
1733
|
+
this.$once("hidden", this.show);
|
|
1734
|
+
return;
|
|
1735
|
+
}
|
|
1736
|
+
this.isOpening = !0, this.return_focus = this.return_focus || this.getActiveElement();
|
|
1737
|
+
var e = this.buildEvent("show", {
|
|
1738
|
+
cancelable: !0
|
|
1739
|
+
});
|
|
1740
|
+
if (this.emitEvent(e), e.defaultPrevented || this.isVisible) {
|
|
1741
|
+
this.isOpening = !1, this.updateModel(!1);
|
|
1742
|
+
return;
|
|
1743
|
+
}
|
|
1744
|
+
this.doShow();
|
|
1745
|
+
}
|
|
1746
|
+
},
|
|
1747
|
+
// Public method to hide modal
|
|
1748
|
+
hide: function() {
|
|
1749
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
|
1750
|
+
if (!(!this.isVisible || this.isClosing)) {
|
|
1751
|
+
this.isClosing = !0;
|
|
1752
|
+
var t = this.buildEvent("hide", {
|
|
1753
|
+
cancelable: e !== "FORCE",
|
|
1754
|
+
trigger: e || null
|
|
1755
|
+
});
|
|
1756
|
+
if (e === "ok" ? this.$emit("ok", t) : e === "cancel" ? this.$emit("cancel", t) : e === "headerclose" && this.$emit("close", t), this.emitEvent(t), t.defaultPrevented || !this.isVisible) {
|
|
1757
|
+
this.isClosing = !1, this.updateModel(!0);
|
|
1758
|
+
return;
|
|
1759
|
+
}
|
|
1760
|
+
this.setObserver(!1), this.isVisible = !1, this.updateModel(!1);
|
|
1761
|
+
}
|
|
1762
|
+
},
|
|
1763
|
+
// Public method to toggle modal visibility
|
|
1764
|
+
toggle: function(e) {
|
|
1765
|
+
e && (this.return_focus = e), this.isVisible ? this.hide("toggle") : this.show();
|
|
1766
|
+
},
|
|
1767
|
+
// Private method to get the current document active element
|
|
1768
|
+
getActiveElement: function() {
|
|
1769
|
+
var e = yn(S ? [document.body] : []);
|
|
1770
|
+
return e && e.focus ? e : null;
|
|
1771
|
+
},
|
|
1772
|
+
// Private method to finish showing modal
|
|
1773
|
+
doShow: function() {
|
|
1774
|
+
var e = this;
|
|
1775
|
+
if (H.modalsAreOpen && this.noStacking) {
|
|
1776
|
+
this.listenOnRootOnce("bv::modal::hidden", this.doShow);
|
|
1777
|
+
return;
|
|
1778
|
+
}
|
|
1779
|
+
H.registerModal(this), this.isHidden = !1, this.$nextTick(function() {
|
|
1780
|
+
e.isVisible = !0, e.isOpening = !1, e.updateModel(!0), e.$nextTick(function() {
|
|
1781
|
+
e.setObserver(!0);
|
|
1782
|
+
});
|
|
1783
|
+
});
|
|
1784
|
+
},
|
|
1785
|
+
// Transition handlers
|
|
1786
|
+
onBeforeEnter: function() {
|
|
1787
|
+
this.isTransitioning = !0, this.setResizeEvent(!0);
|
|
1788
|
+
},
|
|
1789
|
+
onEnter: function() {
|
|
1790
|
+
var e = this;
|
|
1791
|
+
this.isBlock = !0, K(function() {
|
|
1792
|
+
K(function() {
|
|
1793
|
+
e.isShow = !0;
|
|
1794
|
+
});
|
|
1795
|
+
});
|
|
1796
|
+
},
|
|
1797
|
+
onAfterEnter: function() {
|
|
1798
|
+
var e = this;
|
|
1799
|
+
this.checkModalOverflow(), this.isTransitioning = !1, K(function() {
|
|
1800
|
+
e.emitEvent(e.buildEvent("shown")), e.setEnforceFocus(!0), e.$nextTick(function() {
|
|
1801
|
+
e.focusFirst();
|
|
1802
|
+
});
|
|
1803
|
+
});
|
|
1804
|
+
},
|
|
1805
|
+
onBeforeLeave: function() {
|
|
1806
|
+
this.isTransitioning = !0, this.setResizeEvent(!1), this.setEnforceFocus(!1);
|
|
1807
|
+
},
|
|
1808
|
+
onLeave: function() {
|
|
1809
|
+
this.isShow = !1;
|
|
1810
|
+
},
|
|
1811
|
+
onAfterLeave: function() {
|
|
1812
|
+
var e = this;
|
|
1813
|
+
this.isBlock = !1, this.isTransitioning = !1, this.isModalOverflowing = !1, this.isHidden = !0, this.$nextTick(function() {
|
|
1814
|
+
e.isClosing = !1, H.unregisterModal(e), e.returnFocusTo(), e.emitEvent(e.buildEvent("hidden"));
|
|
1815
|
+
});
|
|
1816
|
+
},
|
|
1817
|
+
// Event emitter
|
|
1818
|
+
emitEvent: function(e) {
|
|
1819
|
+
var t = e.type;
|
|
1820
|
+
this.emitOnRoot("bv::modal::".concat(t), e, e.componentId), this.$emit(t, e);
|
|
1821
|
+
},
|
|
1822
|
+
// UI event handlers
|
|
1823
|
+
onDialogMousedown: function() {
|
|
1824
|
+
var e = this, t = this.$refs.modal, r = function a(i) {
|
|
1825
|
+
Z(t, "mouseup", a, E), i.target === t && (e.ignoreBackdropClick = !0);
|
|
1826
|
+
};
|
|
1827
|
+
He(t, "mouseup", r, E);
|
|
1828
|
+
},
|
|
1829
|
+
onClickOut: function(e) {
|
|
1830
|
+
if (this.ignoreBackdropClick) {
|
|
1831
|
+
this.ignoreBackdropClick = !1;
|
|
1832
|
+
return;
|
|
1833
|
+
}
|
|
1834
|
+
!this.isVisible || this.noCloseOnBackdrop || !ie(document.body, e.target) || ie(this.$refs.content, e.target) || this.hide("backdrop");
|
|
1835
|
+
},
|
|
1836
|
+
onOk: function() {
|
|
1837
|
+
this.hide("ok");
|
|
1838
|
+
},
|
|
1839
|
+
onCancel: function() {
|
|
1840
|
+
this.hide("cancel");
|
|
1841
|
+
},
|
|
1842
|
+
onClose: function() {
|
|
1843
|
+
this.hide("headerclose");
|
|
1844
|
+
},
|
|
1845
|
+
onEsc: function(e) {
|
|
1846
|
+
e.keyCode === Wn && this.isVisible && !this.noCloseOnEsc && this.hide("esc");
|
|
1847
|
+
},
|
|
1848
|
+
// Document focusin listener
|
|
1849
|
+
focusHandler: function(e) {
|
|
1850
|
+
var t = this.$refs.content, r = e.target;
|
|
1851
|
+
if (!(this.noEnforceFocus || !this.isTop || !this.isVisible || !t || document === r || ie(t, r) || this.computeIgnoreEnforceFocusSelector && _n(this.computeIgnoreEnforceFocusSelector, r, !0))) {
|
|
1852
|
+
var a = On(this.$refs.content), i = this.$refs, o = i.bottomTrap, s = i.topTrap;
|
|
1853
|
+
if (o && r === o) {
|
|
1854
|
+
if (D(a[0]))
|
|
1855
|
+
return;
|
|
1856
|
+
} else if (s && r === s && D(a[a.length - 1]))
|
|
1857
|
+
return;
|
|
1858
|
+
D(t, {
|
|
1859
|
+
preventScroll: !0
|
|
1860
|
+
});
|
|
1861
|
+
}
|
|
1862
|
+
},
|
|
1863
|
+
// Turn on/off focusin listener
|
|
1864
|
+
setEnforceFocus: function(e) {
|
|
1865
|
+
this.listenDocument(e, "focusin", this.focusHandler);
|
|
1866
|
+
},
|
|
1867
|
+
// Resize listener
|
|
1868
|
+
setResizeEvent: function(e) {
|
|
1869
|
+
this.listenWindow(e, "resize", this.checkModalOverflow), this.listenWindow(e, "orientationchange", this.checkModalOverflow);
|
|
1870
|
+
},
|
|
1871
|
+
// Root listener handlers
|
|
1872
|
+
showHandler: function(e, t) {
|
|
1873
|
+
e === this.modalId && (this.return_focus = t || this.getActiveElement(), this.show());
|
|
1874
|
+
},
|
|
1875
|
+
hideHandler: function(e) {
|
|
1876
|
+
e === this.modalId && this.hide("event");
|
|
1877
|
+
},
|
|
1878
|
+
toggleHandler: function(e, t) {
|
|
1879
|
+
e === this.modalId && this.toggle(t);
|
|
1880
|
+
},
|
|
1881
|
+
modalListener: function(e) {
|
|
1882
|
+
this.noStacking && e.vueTarget !== this && this.hide();
|
|
1883
|
+
},
|
|
1884
|
+
// Focus control handlers
|
|
1885
|
+
focusFirst: function() {
|
|
1886
|
+
var e = this;
|
|
1887
|
+
S && K(function() {
|
|
1888
|
+
var t = e.$refs.modal, r = e.$refs.content, a = e.getActiveElement();
|
|
1889
|
+
if (t && r && !(a && ie(r, a))) {
|
|
1890
|
+
var i = e.$refs["ok-button"], o = e.$refs["cancel-button"], s = e.$refs["close-button"], l = e.autoFocusButton, u = l === "ok" && i ? i.$el || i : l === "cancel" && o ? o.$el || o : l === "close" && s ? s.$el || s : r;
|
|
1891
|
+
D(u), u === r && e.$nextTick(function() {
|
|
1892
|
+
t.scrollTop = 0;
|
|
1893
|
+
});
|
|
1894
|
+
}
|
|
1895
|
+
});
|
|
1896
|
+
},
|
|
1897
|
+
returnFocusTo: function() {
|
|
1898
|
+
var e = this.returnFocus || this.return_focus || null;
|
|
1899
|
+
this.return_focus = null, this.$nextTick(function() {
|
|
1900
|
+
e = x(e) ? yt(e) : e, e && (e = e.$el || e, D(e));
|
|
1901
|
+
});
|
|
1902
|
+
},
|
|
1903
|
+
checkModalOverflow: function() {
|
|
1904
|
+
if (this.isVisible) {
|
|
1905
|
+
var e = this.$refs.modal;
|
|
1906
|
+
this.isModalOverflowing = e.scrollHeight > document.documentElement.clientHeight;
|
|
1907
|
+
}
|
|
1908
|
+
},
|
|
1909
|
+
makeModal: function(e) {
|
|
1910
|
+
var t = e();
|
|
1911
|
+
if (!this.hideHeader) {
|
|
1912
|
+
var r = this.normalizeSlot("modal-header", this.slotScope);
|
|
1913
|
+
if (!r) {
|
|
1914
|
+
var a = e();
|
|
1915
|
+
this.hideHeaderClose || (a = e(
|
|
1916
|
+
Dn,
|
|
1917
|
+
{
|
|
1918
|
+
props: {
|
|
1919
|
+
content: this.headerCloseContent,
|
|
1920
|
+
disabled: this.isTransitioning,
|
|
1921
|
+
ariaLabel: this.headerCloseLabel,
|
|
1922
|
+
textVariant: this.headerCloseVariant || this.headerTextVariant
|
|
1923
|
+
},
|
|
1924
|
+
on: {
|
|
1925
|
+
click: this.onClose
|
|
1926
|
+
},
|
|
1927
|
+
ref: "close-button"
|
|
1928
|
+
},
|
|
1929
|
+
// TODO: Rename slot to `header-close` and deprecate `modal-header-close`
|
|
1930
|
+
[this.normalizeSlot("modal-header-close")]
|
|
1931
|
+
)), r = [e(
|
|
1932
|
+
this.titleTag,
|
|
1933
|
+
{
|
|
1934
|
+
staticClass: "modal-title",
|
|
1935
|
+
class: this.titleClasses,
|
|
1936
|
+
attrs: {
|
|
1937
|
+
id: this.modalTitleId
|
|
1938
|
+
},
|
|
1939
|
+
// TODO: Rename slot to `title` and deprecate `modal-title`
|
|
1940
|
+
domProps: this.hasNormalizedSlot("modal-title") ? {} : Ee(this.titleHtml, this.title)
|
|
1941
|
+
},
|
|
1942
|
+
// TODO: Rename slot to `title` and deprecate `modal-title`
|
|
1943
|
+
this.normalizeSlot("modal-title", this.slotScope)
|
|
1944
|
+
), a];
|
|
1945
|
+
}
|
|
1946
|
+
t = e("header", {
|
|
1947
|
+
staticClass: "modal-header",
|
|
1948
|
+
class: this.headerClasses,
|
|
1949
|
+
attrs: {
|
|
1950
|
+
id: this.modalHeaderId
|
|
1951
|
+
},
|
|
1952
|
+
ref: "header"
|
|
1953
|
+
}, [r]);
|
|
1954
|
+
}
|
|
1955
|
+
var i = e("div", {
|
|
1956
|
+
staticClass: "modal-body",
|
|
1957
|
+
class: this.bodyClasses,
|
|
1958
|
+
attrs: {
|
|
1959
|
+
id: this.modalBodyId
|
|
1960
|
+
},
|
|
1961
|
+
ref: "body"
|
|
1962
|
+
}, this.normalizeSlot($e, this.slotScope)), o = e();
|
|
1963
|
+
if (!this.hideFooter) {
|
|
1964
|
+
var s = this.normalizeSlot("modal-footer", this.slotScope);
|
|
1965
|
+
if (!s) {
|
|
1966
|
+
var l = e();
|
|
1967
|
+
this.okOnly || (l = e(
|
|
1968
|
+
Qe,
|
|
1969
|
+
{
|
|
1970
|
+
props: {
|
|
1971
|
+
variant: this.cancelVariant,
|
|
1972
|
+
size: this.buttonSize,
|
|
1973
|
+
disabled: this.cancelDisabled || this.busy || this.isTransitioning
|
|
1974
|
+
},
|
|
1975
|
+
// TODO: Rename slot to `cancel-button` and deprecate `modal-cancel`
|
|
1976
|
+
domProps: this.hasNormalizedSlot("modal-cancel") ? {} : Ee(this.cancelTitleHtml, this.cancelTitle),
|
|
1977
|
+
on: {
|
|
1978
|
+
click: this.onCancel
|
|
1979
|
+
},
|
|
1980
|
+
ref: "cancel-button"
|
|
1981
|
+
},
|
|
1982
|
+
// TODO: Rename slot to `cancel-button` and deprecate `modal-cancel`
|
|
1983
|
+
this.normalizeSlot("modal-cancel")
|
|
1984
|
+
));
|
|
1985
|
+
var u = e(
|
|
1986
|
+
Qe,
|
|
1987
|
+
{
|
|
1988
|
+
props: {
|
|
1989
|
+
variant: this.okVariant,
|
|
1990
|
+
size: this.buttonSize,
|
|
1991
|
+
disabled: this.okDisabled || this.busy || this.isTransitioning
|
|
1992
|
+
},
|
|
1993
|
+
// TODO: Rename slot to `ok-button` and deprecate `modal-ok`
|
|
1994
|
+
domProps: this.hasNormalizedSlot("modal-ok") ? {} : Ee(this.okTitleHtml, this.okTitle),
|
|
1995
|
+
on: {
|
|
1996
|
+
click: this.onOk
|
|
1997
|
+
},
|
|
1998
|
+
ref: "ok-button"
|
|
1999
|
+
},
|
|
2000
|
+
// TODO: Rename slot to `ok-button` and deprecate `modal-ok`
|
|
2001
|
+
this.normalizeSlot("modal-ok")
|
|
2002
|
+
);
|
|
2003
|
+
s = [l, u];
|
|
2004
|
+
}
|
|
2005
|
+
o = e("footer", {
|
|
2006
|
+
staticClass: "modal-footer",
|
|
2007
|
+
class: this.footerClasses,
|
|
2008
|
+
attrs: {
|
|
2009
|
+
id: this.modalFooterId
|
|
2010
|
+
},
|
|
2011
|
+
ref: "footer"
|
|
2012
|
+
}, [s]);
|
|
2013
|
+
}
|
|
2014
|
+
var f = e("div", {
|
|
2015
|
+
staticClass: "modal-content",
|
|
2016
|
+
class: this.contentClass,
|
|
2017
|
+
attrs: {
|
|
2018
|
+
id: this.modalContentId,
|
|
2019
|
+
tabindex: "-1"
|
|
2020
|
+
},
|
|
2021
|
+
ref: "content"
|
|
2022
|
+
}, [t, i, o]), h = e(), b = e();
|
|
2023
|
+
this.isVisible && !this.noEnforceFocus && (h = e("span", {
|
|
2024
|
+
ref: "topTrap",
|
|
2025
|
+
attrs: {
|
|
2026
|
+
tabindex: "0"
|
|
2027
|
+
}
|
|
2028
|
+
}), b = e("span", {
|
|
2029
|
+
ref: "bottomTrap",
|
|
2030
|
+
attrs: {
|
|
2031
|
+
tabindex: "0"
|
|
2032
|
+
}
|
|
2033
|
+
}));
|
|
2034
|
+
var y = e("div", {
|
|
2035
|
+
staticClass: "modal-dialog",
|
|
2036
|
+
class: this.dialogClasses,
|
|
2037
|
+
on: {
|
|
2038
|
+
mousedown: this.onDialogMousedown
|
|
2039
|
+
},
|
|
2040
|
+
ref: "dialog"
|
|
2041
|
+
}, [h, f, b]), v = e("div", {
|
|
2042
|
+
staticClass: "modal",
|
|
2043
|
+
class: this.modalClasses,
|
|
2044
|
+
style: this.modalStyles,
|
|
2045
|
+
attrs: this.computedModalAttrs,
|
|
2046
|
+
on: {
|
|
2047
|
+
keydown: this.onEsc,
|
|
2048
|
+
click: this.onClickOut
|
|
2049
|
+
},
|
|
2050
|
+
directives: [{
|
|
2051
|
+
name: "show",
|
|
2052
|
+
value: this.isVisible
|
|
2053
|
+
}],
|
|
2054
|
+
ref: "modal"
|
|
2055
|
+
}, [y]);
|
|
2056
|
+
v = e("transition", {
|
|
2057
|
+
props: {
|
|
2058
|
+
enterClass: "",
|
|
2059
|
+
enterToClass: "",
|
|
2060
|
+
enterActiveClass: "",
|
|
2061
|
+
leaveClass: "",
|
|
2062
|
+
leaveActiveClass: "",
|
|
2063
|
+
leaveToClass: ""
|
|
2064
|
+
},
|
|
2065
|
+
on: {
|
|
2066
|
+
beforeEnter: this.onBeforeEnter,
|
|
2067
|
+
enter: this.onEnter,
|
|
2068
|
+
afterEnter: this.onAfterEnter,
|
|
2069
|
+
beforeLeave: this.onBeforeLeave,
|
|
2070
|
+
leave: this.onLeave,
|
|
2071
|
+
afterLeave: this.onAfterLeave
|
|
2072
|
+
}
|
|
2073
|
+
}, [v]);
|
|
2074
|
+
var g = e();
|
|
2075
|
+
return !this.hideBackdrop && this.isVisible && (g = e(
|
|
2076
|
+
"div",
|
|
2077
|
+
{
|
|
2078
|
+
staticClass: "modal-backdrop",
|
|
2079
|
+
attrs: {
|
|
2080
|
+
id: this.modalBackdropId
|
|
2081
|
+
}
|
|
2082
|
+
},
|
|
2083
|
+
// TODO: Rename slot to `backdrop` and deprecate `modal-backdrop`
|
|
2084
|
+
this.normalizeSlot("modal-backdrop")
|
|
2085
|
+
)), g = e(Vn, {
|
|
2086
|
+
props: {
|
|
2087
|
+
noFade: this.noFade
|
|
2088
|
+
}
|
|
2089
|
+
}, [g]), e("div", {
|
|
2090
|
+
style: this.modalOuterStyle,
|
|
2091
|
+
attrs: this.computedAttrs,
|
|
2092
|
+
key: "modal-outer-".concat(this._uid)
|
|
2093
|
+
}, [v, g]);
|
|
2094
|
+
}
|
|
2095
|
+
},
|
|
2096
|
+
render: function(e) {
|
|
2097
|
+
return this.static ? this.lazy && this.isHidden ? e() : this.makeModal(e) : this.isHidden ? e() : e(fr, [this.makeModal(e)]);
|
|
2098
|
+
}
|
|
2099
|
+
});
|
|
2100
|
+
const Fr = [
|
|
2101
|
+
{
|
|
2102
|
+
value: "J",
|
|
2103
|
+
text: "Nieuw",
|
|
2104
|
+
title: "Nieuw"
|
|
2105
|
+
},
|
|
2106
|
+
{
|
|
2107
|
+
value: "N",
|
|
2108
|
+
text: "Occasion",
|
|
2109
|
+
title: "Occasion"
|
|
2110
|
+
}
|
|
2111
|
+
], $r = [
|
|
2112
|
+
{
|
|
2113
|
+
value: "CS",
|
|
2114
|
+
title: "Stacaravan"
|
|
2115
|
+
},
|
|
2116
|
+
{
|
|
2117
|
+
value: "CT",
|
|
2118
|
+
title: "Toercaravan"
|
|
2119
|
+
},
|
|
2120
|
+
{
|
|
2121
|
+
value: "CV",
|
|
2122
|
+
title: "Vouwwagen"
|
|
2123
|
+
}
|
|
2124
|
+
], zr = [
|
|
2125
|
+
{
|
|
2126
|
+
value: "500",
|
|
2127
|
+
title: "Tot en met 5 meter"
|
|
2128
|
+
},
|
|
2129
|
+
{
|
|
2130
|
+
value: "700",
|
|
2131
|
+
title: "Tussen 5 en 7 meter"
|
|
2132
|
+
},
|
|
2133
|
+
{
|
|
2134
|
+
value: "1000",
|
|
2135
|
+
title: "Tussen 7 en 10 meter"
|
|
2136
|
+
},
|
|
2137
|
+
{
|
|
2138
|
+
value: "1500",
|
|
2139
|
+
title: "Tussen 10 en 15 meter"
|
|
2140
|
+
}
|
|
2141
|
+
], Mr = () => [{
|
|
2142
|
+
name: "caravan",
|
|
2143
|
+
data: {
|
|
2144
|
+
TypeOfCaravan: c.typeOfCaravan,
|
|
2145
|
+
Length: c.length,
|
|
2146
|
+
NewOrOccasion: c.newOrOccasion,
|
|
2147
|
+
PurchaseValue: c.purchaseValue,
|
|
2148
|
+
CatalogValue: c.catalogValue,
|
|
2149
|
+
BuildYear: c.buildYear,
|
|
2150
|
+
Coverage: null,
|
|
2151
|
+
PurchaseValueGuarantee: "99",
|
|
2152
|
+
NewValueGuarantee: "99",
|
|
2153
|
+
AdditionalCoverages: {
|
|
2154
|
+
AmountAnnex: null,
|
|
2155
|
+
AmountMarquise: null,
|
|
2156
|
+
AmountInventory: null,
|
|
2157
|
+
AmountOuthouse: null,
|
|
2158
|
+
AmountMover: null,
|
|
2159
|
+
AmountAwning: null,
|
|
2160
|
+
HailDamage: "N",
|
|
2161
|
+
HailResistantRoof: "N"
|
|
2162
|
+
}
|
|
2163
|
+
}
|
|
2164
|
+
}], Hr = (n, e) => {
|
|
2165
|
+
const {
|
|
2166
|
+
submitFormAndUpdateFormData: t,
|
|
2167
|
+
submitFormAndCreateComparison: r,
|
|
2168
|
+
setInitialUserInfoInStore: a,
|
|
2169
|
+
removeSessionState: i,
|
|
2170
|
+
openQuotationModal: o,
|
|
2171
|
+
setQuotationData: s
|
|
2172
|
+
} = Jt(e), l = p(!1), u = p(!1), f = p(!1), h = p(!1), b = p(null), y = p(null), v = ne(() => ({
|
|
2173
|
+
catalogValue: {
|
|
2174
|
+
refId: "112",
|
|
2175
|
+
headerTitle: "Cataloguswaarde te hoog",
|
|
2176
|
+
description: `Online kunnen we je ${g.value} niet verzekeren. Telefonisch kunnen we je waarschijnlijk wel verder helpen aan de juiste verzekering. Laat je gegevens achter en we nemen zo snel mogelijk contact met je op.`,
|
|
2177
|
+
notes: [{ text: "Cataloguswaarde caravan hoger dan 60.000" }]
|
|
2178
|
+
},
|
|
2179
|
+
purchaseValue: {
|
|
2180
|
+
refId: "112",
|
|
2181
|
+
headerTitle: "Aankoopwaarde te hoog",
|
|
2182
|
+
description: `Online kunnen we je ${g.value} niet verzekeren. Telefonisch kunnen we je waarschijnlijk wel verder helpen aan de juiste verzekering. Laat je gegevens achter en we nemen zo snel mogelijk contact met je op.`,
|
|
2183
|
+
notes: [{ text: "Aankoopwaardewaarde caravan hoger dan 60.000" }]
|
|
2184
|
+
},
|
|
2185
|
+
comparisonError: {
|
|
2186
|
+
refId: "192",
|
|
2187
|
+
headerTitle: "Oops. Er gaat iets mis",
|
|
2188
|
+
description: "Door een technische storing kunnen we op dit moment geen premies vergelijken. Laat je gegevens achter en we helpen je zo snel mogelijk telefonisch verder!",
|
|
2189
|
+
notes: [{ text: "Kan geen comparison ID aanmaken voor caravanverzekering vergelijking" }]
|
|
2190
|
+
}
|
|
2191
|
+
})), g = ne(() => c.typeOfCaravan === "" ? "caravan" : $r.find((A) => {
|
|
2192
|
+
if (A.value === c.typeOfCaravan)
|
|
2193
|
+
return !0;
|
|
2194
|
+
}).title), L = ne(() => {
|
|
2195
|
+
const d = (/* @__PURE__ */ new Date()).getFullYear(), A = 1990, _e = new Array(d - A + 1).fill(void 0).map(($, Oe) => Oe + A).sort(($, Oe) => Oe - $), We = [];
|
|
2196
|
+
for (let $ = 0; $ < _e.length; $++)
|
|
2197
|
+
We.push({ value: _e[$], title: _e[$] });
|
|
2198
|
+
return We;
|
|
2199
|
+
}), ve = ne(() => ({
|
|
2200
|
+
type: [
|
|
2201
|
+
{ rule: "required", text: "Kies je type caravan" }
|
|
2202
|
+
],
|
|
2203
|
+
length: [
|
|
2204
|
+
{ rule: "required", text: "Selecteer de lengte van je caravan zonder dissel" }
|
|
2205
|
+
],
|
|
2206
|
+
newOrOccasion: [
|
|
2207
|
+
{ rule: f.value, text: "Is je caravan nieuw of tweedehands gekocht?" }
|
|
2208
|
+
],
|
|
2209
|
+
buildYear: [
|
|
2210
|
+
{ rule: "required", text: "Kies het bouwjaar van je caravan" }
|
|
2211
|
+
],
|
|
2212
|
+
purchaseValue: [
|
|
2213
|
+
{ rule: "required", text: "Vul de aankoopwaarde in" },
|
|
2214
|
+
{ rule: "regex", text: "Aankoopwaarde mag niet beginnen met 0" },
|
|
2215
|
+
{ rule: "max_value", text: "Aankoopwaarde mag niet hoger zijn dan 60.000" }
|
|
2216
|
+
],
|
|
2217
|
+
catalogValue: [
|
|
2218
|
+
{ rule: "required", text: "Vul de nieuwwaarde in" },
|
|
2219
|
+
{ rule: "regex", text: "Nieuwwaarde mag niet beginnen met 0" },
|
|
2220
|
+
{ rule: "max_value", text: "Nieuwwaarde mag niet hoger zijn dan 60.000" }
|
|
2221
|
+
],
|
|
2222
|
+
helperValue: [
|
|
2223
|
+
{ rule: u.value, text: "Vul het bouwjaar en de soort van de caravan in" }
|
|
2224
|
+
]
|
|
2225
|
+
})), J = () => te(void 0, null, function* () {
|
|
2226
|
+
try {
|
|
2227
|
+
if (yield B())
|
|
2228
|
+
if (n.formLocation === Ce.isOnResultPage)
|
|
2229
|
+
t({ caravanState: c });
|
|
2230
|
+
else {
|
|
2231
|
+
const d = Mr();
|
|
2232
|
+
yield r("caravan", d, ge());
|
|
2233
|
+
}
|
|
2234
|
+
} catch (d) {
|
|
2235
|
+
me(d);
|
|
2236
|
+
}
|
|
2237
|
+
}), B = () => te(void 0, null, function* () {
|
|
2238
|
+
if (!ee())
|
|
2239
|
+
return;
|
|
2240
|
+
const d = [
|
|
2241
|
+
"caravanType",
|
|
2242
|
+
"caravanLength",
|
|
2243
|
+
"buildYear",
|
|
2244
|
+
"catalogValue"
|
|
2245
|
+
];
|
|
2246
|
+
return c.newOrOccasion === "N" && d.push("purchaseValue"), f.value = !c.newOrOccasion, (yield Ye(d)) && !h.value && !f.value;
|
|
2247
|
+
}), ge = () => `${n.link}#/<<COMPARISONID>>/dekkingen/`, me = (d) => {
|
|
2248
|
+
console.error(d), h.value = !0, s(v.value.comparisonError), o();
|
|
2249
|
+
}, ee = () => (be(), ye(), !c.purchaseValue || !c.catalogValue ? (b.value.isOpened = !1, !0) : Number(c.purchaseValue) > Number(c.catalogValue) ? (b.value.isOpened = !0, !1) : (b.value.isOpened = !1, !0)), be = () => {
|
|
2250
|
+
if (Number(c.purchaseValue) > 6e4) {
|
|
2251
|
+
s(v.value.purchaseValue), o();
|
|
2252
|
+
return;
|
|
2253
|
+
}
|
|
2254
|
+
h.value = !1;
|
|
2255
|
+
}, ye = () => {
|
|
2256
|
+
if (Number(c.catalogValue) > 6e4) {
|
|
2257
|
+
s(v.value.catalogValue), o();
|
|
2258
|
+
return;
|
|
2259
|
+
}
|
|
2260
|
+
h.value = !1;
|
|
2261
|
+
}, m = (d) => {
|
|
2262
|
+
c.catalogValue = d, l.value = !0;
|
|
2263
|
+
}, Kt = () => {
|
|
2264
|
+
c.newOrOccasion === "J" && (c.purchaseValue = "");
|
|
2265
|
+
}, Ut = () => te(void 0, null, function* () {
|
|
2266
|
+
l.value && (yield Ye(["catalogValue"])), l.value = !1;
|
|
2267
|
+
}), qt = () => {
|
|
2268
|
+
c.typeOfCaravan == "" || c.buildYear == "" ? u.value = !0 : (u.value = !1, y.value.isOpened = !0);
|
|
2269
|
+
}, Gt = () => {
|
|
2270
|
+
c.catalogValue = c.purchaseValue;
|
|
2271
|
+
}, Zt = (d, A) => {
|
|
2272
|
+
c.catalogValue = d, c.purchaseValue = A;
|
|
2273
|
+
}, Xt = () => {
|
|
2274
|
+
Object.keys(c).map((d) => {
|
|
2275
|
+
c[d] = n.insuranceState[Qt(d)] || c[d];
|
|
2276
|
+
});
|
|
2277
|
+
}, Qt = (d) => d.charAt(0).toUpperCase() + d.slice(1);
|
|
2278
|
+
return ot(() => {
|
|
2279
|
+
n.formLocation === Ce.isOnResultPage && (a(n), Xt()), n.formLocation === Ce.isBeforeFlow && i("caravan-storage", "caravan-path");
|
|
2280
|
+
}), {
|
|
2281
|
+
buildYear: L,
|
|
2282
|
+
catalogError: u,
|
|
2283
|
+
catalogValueModal: y,
|
|
2284
|
+
manualNewValueModal: b,
|
|
2285
|
+
newOrOccasionError: f,
|
|
2286
|
+
fieldsErrors: ve,
|
|
2287
|
+
purchaseValueChecker: Kt,
|
|
2288
|
+
isDataInModalCorrect: ee,
|
|
2289
|
+
catalogValueHelper: qt,
|
|
2290
|
+
validateBeforeSubmit: J,
|
|
2291
|
+
setCatalogusValue: m,
|
|
2292
|
+
switchValues: Zt,
|
|
2293
|
+
setPurchaseValueAsNewValue: Gt,
|
|
2294
|
+
validateCatalogValue: Ut
|
|
2295
|
+
};
|
|
2296
|
+
}, xr = st({
|
|
2297
|
+
name: "CatalogValueModal",
|
|
2298
|
+
components: {
|
|
2299
|
+
BModal: Ft
|
|
2300
|
+
},
|
|
2301
|
+
props: {
|
|
2302
|
+
buildYear: {
|
|
2303
|
+
type: String,
|
|
2304
|
+
required: !0
|
|
2305
|
+
},
|
|
2306
|
+
caravanType: {
|
|
2307
|
+
type: String,
|
|
2308
|
+
required: !0
|
|
2309
|
+
}
|
|
2310
|
+
},
|
|
2311
|
+
setup(n, { emit: e }) {
|
|
2312
|
+
const t = p(!1), r = p(0), a = p(""), i = p([]), o = p(""), s = p([]), l = p(""), u = p([]), f = p(0), h = [
|
|
2313
|
+
{ name: "ASK_BRAND" },
|
|
2314
|
+
{ name: "ASK_MODEL" },
|
|
2315
|
+
{ name: "ASK_TYPE" },
|
|
2316
|
+
{ name: "DISPLAY_PRICE" },
|
|
2317
|
+
{ name: "MANUAL_INPUT" },
|
|
2318
|
+
{ name: "DISPLAY_ERROR" }
|
|
2319
|
+
], b = {
|
|
2320
|
+
CT: 1,
|
|
2321
|
+
CV: 2
|
|
2322
|
+
}, y = 5;
|
|
2323
|
+
lt(t, (m) => {
|
|
2324
|
+
m === !0 && ge();
|
|
2325
|
+
});
|
|
2326
|
+
function v() {
|
|
2327
|
+
return h[r.value].name;
|
|
2328
|
+
}
|
|
2329
|
+
function g() {
|
|
2330
|
+
r.value++;
|
|
2331
|
+
}
|
|
2332
|
+
function L() {
|
|
2333
|
+
r.value--;
|
|
2334
|
+
}
|
|
2335
|
+
function ve() {
|
|
2336
|
+
a.value = "", o.value = "", l.value = "", r.value = 0;
|
|
2337
|
+
}
|
|
2338
|
+
function J() {
|
|
2339
|
+
t.value = !1;
|
|
2340
|
+
}
|
|
2341
|
+
function B() {
|
|
2342
|
+
r.value = y;
|
|
2343
|
+
}
|
|
2344
|
+
function ge() {
|
|
2345
|
+
try {
|
|
2346
|
+
re.caravanService.getCaravanBrands({
|
|
2347
|
+
year: n.buildYear,
|
|
2348
|
+
caravan_id: b[n.caravanType]
|
|
2349
|
+
}).then((m) => {
|
|
2350
|
+
i.value = m;
|
|
2351
|
+
});
|
|
2352
|
+
} catch (m) {
|
|
2353
|
+
B();
|
|
2354
|
+
}
|
|
2355
|
+
}
|
|
2356
|
+
function me() {
|
|
2357
|
+
if (o.value = "", !!a.value)
|
|
2358
|
+
try {
|
|
2359
|
+
re.caravanService.getCaravanModels({
|
|
2360
|
+
year: n.buildYear,
|
|
2361
|
+
brand_id: a.value
|
|
2362
|
+
}).then((m) => {
|
|
2363
|
+
s.value = m;
|
|
2364
|
+
});
|
|
2365
|
+
} catch (m) {
|
|
2366
|
+
B();
|
|
2367
|
+
}
|
|
2368
|
+
}
|
|
2369
|
+
function ee() {
|
|
2370
|
+
if (l.value = "", !!o.value)
|
|
2371
|
+
try {
|
|
2372
|
+
re.caravanService.getCaravanTypes({
|
|
2373
|
+
year: n.buildYear,
|
|
2374
|
+
model_id: o.value
|
|
2375
|
+
}).then((m) => {
|
|
2376
|
+
u.value = m;
|
|
2377
|
+
});
|
|
2378
|
+
} catch (m) {
|
|
2379
|
+
B();
|
|
2380
|
+
}
|
|
2381
|
+
}
|
|
2382
|
+
function be() {
|
|
2383
|
+
if (f.value = 0, !!l.value)
|
|
2384
|
+
try {
|
|
2385
|
+
re.caravanService.getCaravanCatalogPrice({
|
|
2386
|
+
year: n.buildYear,
|
|
2387
|
+
brand_id: a.value,
|
|
2388
|
+
model_id: o.value,
|
|
2389
|
+
type_id: l.value
|
|
2390
|
+
}).then(({ catalog_price: m }) => {
|
|
2391
|
+
f.value = m;
|
|
2392
|
+
});
|
|
2393
|
+
} catch (m) {
|
|
2394
|
+
B();
|
|
2395
|
+
}
|
|
2396
|
+
}
|
|
2397
|
+
function ye() {
|
|
2398
|
+
e("set-catalog-value", f.value), J();
|
|
2399
|
+
}
|
|
2400
|
+
return {
|
|
2401
|
+
hasNewDesign: ut,
|
|
2402
|
+
isOpened: t,
|
|
2403
|
+
brand: a,
|
|
2404
|
+
brandOptions: i,
|
|
2405
|
+
model: o,
|
|
2406
|
+
modelOptions: s,
|
|
2407
|
+
type: l,
|
|
2408
|
+
typeOptions: u,
|
|
2409
|
+
price: f,
|
|
2410
|
+
resetStep: ve,
|
|
2411
|
+
currentStep: v,
|
|
2412
|
+
getCaravanModels: me,
|
|
2413
|
+
nextStep: g,
|
|
2414
|
+
getCaravanTypes: ee,
|
|
2415
|
+
previousStep: L,
|
|
2416
|
+
getCaravanCatalogPrice: be,
|
|
2417
|
+
setPrice: ye,
|
|
2418
|
+
closeModal: J
|
|
2419
|
+
};
|
|
2420
|
+
}
|
|
2421
|
+
});
|
|
2422
|
+
var zt = function() {
|
|
2423
|
+
var e = this, t = e._self._c;
|
|
2424
|
+
return e._self._setupProxy, t("div", [t("b-modal", { staticClass: "form-modal", attrs: { "hide-footer": "", title: "Bereken de nieuwwaarde", centered: "", static: !0 }, on: { show: e.resetStep }, model: { value: e.isOpened, callback: function(r) {
|
|
2425
|
+
e.isOpened = r;
|
|
2426
|
+
}, expression: "isOpened" } }, [t("div", [e.currentStep() === "ASK_BRAND" ? t("div", [t("div", { staticClass: "row mb-3" }, [t("div", { staticClass: "col-md-12" }, [t("div", { staticClass: "vd-form-group mb-0" }, [t("label", { staticClass: "vd-form-group__label font-weight-bold", attrs: { for: "caravan-brands" } }, [e._v(" Wat is het merk van je toercaravan? ")]), t("div", { staticClass: "position-relative" }, [t("select", { directives: [{ name: "model", rawName: "v-model", value: e.brand, expression: "brand" }], staticClass: "vd-form-group__input form-control", attrs: { id: "caravan-brands", name: "caravan-brands" }, on: { change: [function(r) {
|
|
2427
|
+
var a = Array.prototype.filter.call(r.target.options, function(i) {
|
|
2428
|
+
return i.selected;
|
|
2429
|
+
}).map(function(i) {
|
|
2430
|
+
var o = "_value" in i ? i._value : i.value;
|
|
2431
|
+
return o;
|
|
2432
|
+
});
|
|
2433
|
+
e.brand = r.target.multiple ? a : a[0];
|
|
2434
|
+
}, function(r) {
|
|
2435
|
+
return e.getCaravanModels();
|
|
2436
|
+
}] } }, [t("option", { attrs: { value: "" } }, [e._v(" Maak een keuze ")]), e._l(e.brandOptions, function(r) {
|
|
2437
|
+
return t("option", { key: r.id, domProps: { value: r.id } }, [e._v(" " + e._s(r.title) + " ")]);
|
|
2438
|
+
})], 2), t("label", { staticClass: "vd-form-group__select-icon cursor-pointer", attrs: { for: "caravan-brands" } })])])])]), t("div", { staticClass: "row" }, [t("div", { staticClass: "col-md-12" }, [t("button", { staticClass: "btn-a btn-a--success btn-a--bold cursor-pointer btn-block mt-2", attrs: { disabled: !e.brand }, on: { click: e.nextStep } }, [e._v(" Volgende ")])])])]) : e._e(), e.currentStep() === "ASK_MODEL" ? t("div", [t("div", { staticClass: "row mb-3" }, [t("div", { staticClass: "col-md-12" }, [t("div", { staticClass: "vd-form-group mb-0" }, [t("label", { staticClass: "vd-form-group__label font-weight-bold", attrs: { for: "caravan-models" } }, [e._v(" Welk model heb je? ")]), t("div", { staticClass: "position-relative" }, [t("select", { directives: [{ name: "model", rawName: "v-model", value: e.model, expression: "model" }], staticClass: "vd-form-group__input form-control", attrs: { id: "caravan-models", name: "caravan-models" }, on: { change: [function(r) {
|
|
2439
|
+
var a = Array.prototype.filter.call(r.target.options, function(i) {
|
|
2440
|
+
return i.selected;
|
|
2441
|
+
}).map(function(i) {
|
|
2442
|
+
var o = "_value" in i ? i._value : i.value;
|
|
2443
|
+
return o;
|
|
2444
|
+
});
|
|
2445
|
+
e.model = r.target.multiple ? a : a[0];
|
|
2446
|
+
}, function(r) {
|
|
2447
|
+
return e.getCaravanTypes();
|
|
2448
|
+
}] } }, [t("option", { attrs: { value: "" } }, [e._v(" Maak een keuze ")]), e._l(e.modelOptions, function(r) {
|
|
2449
|
+
return t("option", { key: r.id, domProps: { value: r.id } }, [e._v(" " + e._s(r.title) + " ")]);
|
|
2450
|
+
})], 2), t("label", { staticClass: "vd-form-group__select-icon cursor-pointer", attrs: { for: "caravan-brands" } })])])])]), t("div", { staticClass: "row" }, [t("div", { staticClass: "col-md-6 mb-3 mb-md-0" }, [t("button", { staticClass: "btn-a btn-a--gray btn-a--bold cursor-pointer btn-block mt-2", on: { click: e.previousStep } }, [e._v(" Terug ")])]), t("div", { staticClass: "col-md-6" }, [t("button", { staticClass: "btn-a btn-a--success btn-a--bold cursor-pointer btn-block mt-2", attrs: { disabled: !e.model }, on: { click: e.nextStep } }, [e._v(" Volgende ")])])])]) : e._e(), e.currentStep() === "ASK_TYPE" ? t("div", [t("div", { staticClass: "row mb-3" }, [t("div", { staticClass: "col-md-12" }, [t("div", { staticClass: "vd-form-group mb-0" }, [t("label", { staticClass: "vd-form-group__label font-weight-bold", attrs: { for: "caravan-types" } }, [e._v(" Welk type heb je? ")]), t("div", { staticClass: "position-relative" }, [t("select", { directives: [{ name: "model", rawName: "v-model", value: e.type, expression: "type" }], staticClass: "vd-form-group__input form-control", attrs: { id: "caravan-types", name: "caravan-types" }, on: { change: [function(r) {
|
|
2451
|
+
var a = Array.prototype.filter.call(r.target.options, function(i) {
|
|
2452
|
+
return i.selected;
|
|
2453
|
+
}).map(function(i) {
|
|
2454
|
+
var o = "_value" in i ? i._value : i.value;
|
|
2455
|
+
return o;
|
|
2456
|
+
});
|
|
2457
|
+
e.type = r.target.multiple ? a : a[0];
|
|
2458
|
+
}, function(r) {
|
|
2459
|
+
return e.getCaravanCatalogPrice();
|
|
2460
|
+
}] } }, [t("option", { attrs: { value: "" } }, [e._v(" Maak een keuze ")]), e._l(e.typeOptions, function(r) {
|
|
2461
|
+
return t("option", { key: r.id, domProps: { value: r.id } }, [e._v(" " + e._s(r.title) + " ")]);
|
|
2462
|
+
})], 2), t("label", { staticClass: "vd-form-group__select-icon cursor-pointer", attrs: { for: "caravan-types" } })])])])]), t("div", { staticClass: "row" }, [t("div", { staticClass: "col-md-6 mb-3 mb-md-0" }, [t("button", { staticClass: "btn-a btn-a--gray btn-a--bold cursor-pointer btn-block mt-2", on: { click: e.previousStep } }, [e._v(" Terug ")])]), t("div", { staticClass: "col-md-6" }, [t("button", { staticClass: "btn-a btn-a--success btn-a--bold cursor-pointer btn-block mt-2", attrs: { disabled: !e.type }, on: { click: e.nextStep } }, [e._v(" Volgende ")])])])]) : e._e(), e.currentStep() === "DISPLAY_PRICE" ? t("div", [t("div", { staticClass: "row mb-3" }, [t("div", { staticClass: "col-md-12" }, [e._v(" De cataloguswaarde van je caravan is: €" + e._s(e.price) + " ")])]), t("div", { staticClass: "row" }, [t("div", { staticClass: "col-md-6 mb-3 mb-md-0" }, [t("button", { staticClass: "btn-a btn-a--gray btn-a--bold cursor-pointer btn-block mt-2", on: { click: e.previousStep } }, [e._v(" Terug ")])]), t("div", { staticClass: "col-md-6" }, [t("button", { staticClass: "btn-a btn-a--success btn-a--bold cursor-pointer btn-block mt-2", on: { click: function(r) {
|
|
2463
|
+
return e.setPrice();
|
|
2464
|
+
} } }, [e._v(" Doorgaan ")])])])]) : e._e(), e.currentStep() === "MANUAL_INPUT" ? t("div", [t("p", [e._v(" Helaas kunnen wij met de opgegeven informatie nieuwwaarde van deze caravan niet terug vinden. ")]), t("button", { staticClass: "btn-a btn-a--success btn-a--bold cursor-pointer btn-block mt-2", on: { click: e.closeModal } }, [e._v(" Doorgaan ")])]) : e._e(), e.currentStep() === "DISPLAY_ERROR" ? t("div", [t("p", [e._v(" Wegens een technische storing kunnen we helaas geen nieuwwaarde berekenen. Probeer het later nog eens. ")]), t("button", { staticClass: "btn-a btn-a--success btn-a--bold cursor-pointer btn-block mt-2", on: { click: e.closeModal } }, [e._v(" Doorgaan ")])]) : e._e()])])], 1);
|
|
2465
|
+
}, Vr = [];
|
|
2466
|
+
zt._withStripped = !0;
|
|
2467
|
+
var Ht = /* @__PURE__ */ ct(
|
|
2468
|
+
xr,
|
|
2469
|
+
zt,
|
|
2470
|
+
Vr,
|
|
2471
|
+
!1,
|
|
2472
|
+
null,
|
|
2473
|
+
null,
|
|
2474
|
+
null,
|
|
2475
|
+
null
|
|
2476
|
+
);
|
|
2477
|
+
Ht.options.__file = "/Users/vergelijkdirect/Documents/projects/comparison-forms/src/insurances/caravan/components/modals/CatalogValueModal.vue";
|
|
2478
|
+
const Wr = Ht.exports, Br = st({
|
|
2479
|
+
name: "ManualNewValueModal",
|
|
2480
|
+
components: {
|
|
2481
|
+
BModal: Ft
|
|
2482
|
+
},
|
|
2483
|
+
props: {
|
|
2484
|
+
caravanType: {
|
|
2485
|
+
type: String,
|
|
2486
|
+
required: !0
|
|
2487
|
+
},
|
|
2488
|
+
catalogValue: {
|
|
2489
|
+
required: !0
|
|
2490
|
+
},
|
|
2491
|
+
purchaseValue: {
|
|
2492
|
+
required: !0
|
|
2493
|
+
}
|
|
2494
|
+
},
|
|
2495
|
+
setup(n, { emit: e }) {
|
|
2496
|
+
const t = p(!1), r = p(""), a = p(0), i = p(""), o = [
|
|
2497
|
+
{ name: "PAID_MORE" },
|
|
2498
|
+
{ name: "PAID_MORE_CONFIRM" },
|
|
2499
|
+
{ name: "SWITCH_CONFIRM" }
|
|
2500
|
+
];
|
|
2501
|
+
function s() {
|
|
2502
|
+
switch (n.caravanType) {
|
|
2503
|
+
case "CT":
|
|
2504
|
+
i.value = "toercaravan";
|
|
2505
|
+
break;
|
|
2506
|
+
case "CS":
|
|
2507
|
+
i.value = "stacaravan";
|
|
2508
|
+
break;
|
|
2509
|
+
case "CV":
|
|
2510
|
+
i.value = "vouwwagen";
|
|
2511
|
+
break;
|
|
2512
|
+
}
|
|
2513
|
+
}
|
|
2514
|
+
lt(t, () => {
|
|
2515
|
+
s();
|
|
2516
|
+
});
|
|
2517
|
+
function l() {
|
|
2518
|
+
return o[a.value].name;
|
|
2519
|
+
}
|
|
2520
|
+
function u() {
|
|
2521
|
+
e("set-purchase-value-as-new-value"), a.value = 1, y();
|
|
2522
|
+
}
|
|
2523
|
+
function f() {
|
|
2524
|
+
e("switch-values"), a.value = 2, y();
|
|
2525
|
+
}
|
|
2526
|
+
function h() {
|
|
2527
|
+
a.value = 0, y();
|
|
2528
|
+
}
|
|
2529
|
+
function b() {
|
|
2530
|
+
t.value = !1;
|
|
2531
|
+
}
|
|
2532
|
+
function y() {
|
|
2533
|
+
switch (o[a.value].name) {
|
|
2534
|
+
case "PAID_MORE":
|
|
2535
|
+
r.value = "Klopt de waarde van je caravan?";
|
|
2536
|
+
break;
|
|
2537
|
+
case "PAID_MORE_CONFIRM":
|
|
2538
|
+
r.value = "Nieuwaarde aangepast";
|
|
2539
|
+
break;
|
|
2540
|
+
case "SWITCH_CONFIRM":
|
|
2541
|
+
r.value = "Aankoop- en nieuwwaarde omgewisseld";
|
|
2542
|
+
break;
|
|
2543
|
+
}
|
|
2544
|
+
}
|
|
2545
|
+
return ot(() => {
|
|
2546
|
+
y(), s();
|
|
2547
|
+
}), {
|
|
2548
|
+
hasNewDesign: ut,
|
|
2549
|
+
isOpened: t,
|
|
2550
|
+
currentTitle: r,
|
|
2551
|
+
caravanTypeName: i,
|
|
2552
|
+
resetStep: h,
|
|
2553
|
+
currentStep: l,
|
|
2554
|
+
setStepToPaidMoreConfirm: u,
|
|
2555
|
+
setStepToSwitchConfirm: f,
|
|
2556
|
+
closeModal: b
|
|
2557
|
+
};
|
|
2558
|
+
}
|
|
2559
|
+
});
|
|
2560
|
+
var Wt = function() {
|
|
2561
|
+
var e = this, t = e._self._c;
|
|
2562
|
+
return e._self._setupProxy, t("div", [t("b-modal", { staticClass: "form-modal", attrs: { "hide-footer": "", title: e.currentTitle, centered: "", static: !0 }, on: { show: e.resetStep }, model: { value: e.isOpened, callback: function(r) {
|
|
2563
|
+
e.isOpened = r;
|
|
2564
|
+
}, expression: "isOpened" } }, [t("div", [e.currentStep() === "PAID_MORE" ? t("div", [t("div", { staticClass: "row mb-3" }, [t("div", { staticClass: "col-md-12" }, [t("label", { staticClass: "modal-text-styling" }, [e._v(" Klopt het dat je meer hebt betaald dan de oorspronkelijke nieuwwaarde? Of heb je de aankoopwaarde per ongeluk verwisseld met de nieuwwaarde? ")])]), t("div", { staticClass: "col-md-12 mt-2" }, [t("label", { staticClass: "text-bold" }, [e._v(" Door jou opgegeven: ")]), t("label", { staticClass: "modal-text-styling" }, [e._v(" Aankoopwaarde: €" + e._s(e.purchaseValue) + " ")]), t("label", { staticClass: "modal-text-styling" }, [e._v(" Nieuwwaarde: €" + e._s(e.catalogValue) + " ")])])]), t("div", { staticClass: "row" }, [t("div", { staticClass: "col-md-12" }, [t("button", { staticClass: "btn-a btn-a--success btn-a--bold cursor-pointer btn-block", on: { click: e.setStepToPaidMoreConfirm } }, [e._v(" Ik heb meer betaald ")])]), t("div", { staticClass: "col-md-12" }, [t("button", { staticClass: "btn-a btn-a--success btn-a--bold cursor-pointer btn-block mt-2", on: { click: e.setStepToSwitchConfirm } }, [e._v(" Aankoop- en nieuwwaarde omgewisseld ")])])])]) : e._e(), e.currentStep() === "PAID_MORE_CONFIRM" ? t("div", [t("div", { staticClass: "row mb-3" }, [t("div", { staticClass: "col-md-12" }, [t("label", { staticClass: "modal-text-styling" }, [e._v(" Verzekeraars vergoeden in geval van total loss nooit meer dan de nieuwwaarde. We hebben je aankoopwaarde als nieuwwaarde ingesteld. Maak je gebruik van een aankoopwaardegarantie? Dan is het verzekerde bedrag niet te laag. ")])])]), t("div", { staticClass: "row" }, [t("div", { staticClass: "col-md-12" }, [t("button", { staticClass: "btn-a btn-a--success btn-a--bold cursor-pointer btn-block", on: { click: e.closeModal } }, [e._v(" OK, ik begrijp het. ")])])])]) : e._e(), e.currentStep() === "SWITCH_CONFIRM" ? t("div", [t("div", { staticClass: "row mb-3" }, [t("div", { staticClass: "col-md-12" }, [t("label", { staticClass: "modal-text-styling" }, [e._v(" We hebben de aankoop- en nieuwwaarde voor je omgewisseld. Je kunt direct verder gaan met het vergelijken van je " + e._s(e.caravanTypeName) + "verzekering! ")])])]), t("div", { staticClass: "row" }, [t("div", { staticClass: "col-md-12" }, [t("button", { staticClass: "btn-a btn-a--success btn-a--bold cursor-pointer btn-block", on: { click: e.closeModal } }, [e._v(" Ga verder ")])])])]) : e._e()])])], 1);
|
|
2565
|
+
}, Rr = [];
|
|
2566
|
+
Wt._withStripped = !0;
|
|
2567
|
+
var Yt = /* @__PURE__ */ ct(
|
|
2568
|
+
Br,
|
|
2569
|
+
Wt,
|
|
2570
|
+
Rr,
|
|
2571
|
+
!1,
|
|
2572
|
+
null,
|
|
2573
|
+
"75fdd988",
|
|
2574
|
+
null,
|
|
2575
|
+
null
|
|
2576
|
+
);
|
|
2577
|
+
Yt.options.__file = "/Users/vergelijkdirect/Documents/projects/comparison-forms/src/insurances/caravan/components/modals/ManualNewValueModal.vue";
|
|
2578
|
+
const Yr = Yt.exports;
|
|
2579
|
+
export {
|
|
2580
|
+
Wr as C,
|
|
2581
|
+
Yr as M,
|
|
2582
|
+
zr as l,
|
|
2583
|
+
Fr as n,
|
|
2584
|
+
$r as t,
|
|
2585
|
+
Hr as u
|
|
2586
|
+
};
|