@vergelijkdirect/comparison-forms 1.3.17-ver-8380.1 → 1.3.17-ver-8380.3
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/comparison-forms.js +30270 -6
- package/dist-rollup/comparison-forms.umd.cjs +29 -15
- package/package.json +4 -7
- package/dist-rollup/AddressHandler-jwYRDHTI.js +0 -288
- package/dist-rollup/BikeForm-30I53uCm.js +0 -126
- package/dist-rollup/BikeFormHorizontal-u1PW-9KV.js +0 -126
- package/dist-rollup/BirthdateInput-1tsGzxTx.js +0 -84
- package/dist-rollup/BusinessCarForm-oeBpet3X.js +0 -119
- package/dist-rollup/BusinessCarFormHorizontal-lBxuzRso.js +0 -119
- package/dist-rollup/CarForm-xTslX4mq.js +0 -102
- package/dist-rollup/CarFormHorizontal-z_-Ew9Ji.js +0 -101
- package/dist-rollup/CaravanForm-BWUCqXZ8.js +0 -137
- package/dist-rollup/CaravanFormHorizontal-qVPTYW4D.js +0 -137
- package/dist-rollup/CaravanFormOld-JaY01RDW.js +0 -130
- package/dist-rollup/DefaultForm-4umbLheg.js +0 -60
- package/dist-rollup/DefaultInput-zxU1ufPA.js +0 -435
- package/dist-rollup/DefaultPlainRadioGroup-i8P1ACl4.js +0 -145
- package/dist-rollup/DefaultSelect-t64f_R7v.js +0 -93
- package/dist-rollup/ErrorHandler-9Zxi6g3R.js +0 -45
- package/dist-rollup/FamilyCompositionInput-dWbnEFac.js +0 -51
- package/dist-rollup/HouseForm-ga4I0nPa.js +0 -105
- package/dist-rollup/HouseFormHorizontal-zcNNDuDQ.js +0 -104
- package/dist-rollup/LegalAssistanceForm-M2yX72hT.js +0 -109
- package/dist-rollup/LegalAssistanceFormHorizontal-NztH_5Yq.js +0 -108
- package/dist-rollup/LiabilityForm-D09YaRGm.js +0 -102
- package/dist-rollup/LiabilityFormHorizontal-nV1JerpT.js +0 -102
- package/dist-rollup/LicensePlate-BMeYEcIe.js +0 -505
- package/dist-rollup/Loader-_esX79Uz.js +0 -1105
- package/dist-rollup/ManualNewValueModal-S0C68NGl.js +0 -2586
- package/dist-rollup/MopedForm-ZL3526H3.js +0 -112
- package/dist-rollup/MopedFormHorizontal-6btf9cMz.js +0 -112
- package/dist-rollup/MotorForm-M6FHM1pV.js +0 -111
- package/dist-rollup/MotorFormHorizontal-NcCjW3P5.js +0 -105
- package/dist-rollup/PackageForm-HcPVbqOI.js +0 -305
- package/dist-rollup/PetForm-OvLvibk1.js +0 -115
- package/dist-rollup/PetFormHorizontal-u7P_iNbx.js +0 -124
- package/dist-rollup/PetFormOld-9yiD9akJ.js +0 -126
- package/dist-rollup/PhoneInput-l6YwvwSj.js +0 -131
- package/dist-rollup/QuestionnaireForm-mDU7NBoo.js +0 -64
- package/dist-rollup/QuotationForm-j1i5zScM.js +0 -183
- package/dist-rollup/RiskScannerForm-JGojbshZ.js +0 -152
- package/dist-rollup/SearchableSelect-1GCKHHKe.js +0 -232
- package/dist-rollup/Session.util-aedjr12J.js +0 -42
- package/dist-rollup/SimpleCard-_Mg9wAqJ.js +0 -50
- package/dist-rollup/TravelForm-goy4CZNN.js +0 -117
- package/dist-rollup/TravelFormHorizontal-q396jXWh.js +0 -117
- package/dist-rollup/TravelFormOld-83YKTgP8.js +0 -123
- package/dist-rollup/ZipcodeInput-z5W6JSl0.js +0 -61
- package/dist-rollup/_commonjsHelpers-4t9S7M5p.js +0 -30
- package/dist-rollup/array.util-agNtEyks.js +0 -16
- package/dist-rollup/bikeBrands.model-FYepHp3k.js +0 -338
- package/dist-rollup/businessCar-Mt6F5U-j.js +0 -188
- package/dist-rollup/car-oIzIKvsB.js +0 -85
- package/dist-rollup/common-J_DOueuE.js +0 -1577
- package/dist-rollup/createLoanComparisonForm-T4s_32PC.js +0 -96
- package/dist-rollup/familyComposition.model-1F80igwZ.js +0 -21
- package/dist-rollup/familySize.model-9dESnIuL.js +0 -98
- package/dist-rollup/form-radio-group-J-EQJhh9.js +0 -1238
- package/dist-rollup/house-iRMRIU6o.js +0 -73
- package/dist-rollup/index-WjnHra7k.js +0 -619
- package/dist-rollup/liability-W6z2ze1t.js +0 -73
- package/dist-rollup/loanPurpose-nICjCm1d.js +0 -273
- package/dist-rollup/moped-T6_xyOsb.js +0 -84
- package/dist-rollup/motor-fCU2n3O5.js +0 -83
- package/dist-rollup/paymentTerms.model-J3WNhgPU.js +0 -145
- package/dist-rollup/updateLoanComparisonForm-iyTnJD5A.js +0 -92
- package/dist-rollup/useSkipUpdateComparison-WseHt-cH.js +0 -437
- package/dist-rollup/vue-popper.min-O3ciEEKg.js +0 -1159
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
var f = (e, m, t) => new Promise((u, l) => {
|
|
2
|
-
var c = (o) => {
|
|
3
|
-
try {
|
|
4
|
-
i(t.next(o));
|
|
5
|
-
} catch (n) {
|
|
6
|
-
l(n);
|
|
7
|
-
}
|
|
8
|
-
}, d = (o) => {
|
|
9
|
-
try {
|
|
10
|
-
i(t.throw(o));
|
|
11
|
-
} catch (n) {
|
|
12
|
-
l(n);
|
|
13
|
-
}
|
|
14
|
-
}, i = (o) => o.done ? u(o.value) : Promise.resolve(o.value).then(c, d);
|
|
15
|
-
i((t = t.apply(e, m)).next());
|
|
16
|
-
});
|
|
17
|
-
import { ref as D, onMounted as g } from "vue";
|
|
18
|
-
import { F as b, u as s, q as r, v as C } from "./index-WjnHra7k.js";
|
|
19
|
-
import { F } from "./familyComposition.model-1F80igwZ.js";
|
|
20
|
-
import { r as S } from "./array.util-agNtEyks.js";
|
|
21
|
-
import { u as v } from "./common-J_DOueuE.js";
|
|
22
|
-
const I = () => [{
|
|
23
|
-
name: "liability",
|
|
24
|
-
data: {
|
|
25
|
-
Amount: 15e5,
|
|
26
|
-
Deductables: 100
|
|
27
|
-
}
|
|
28
|
-
}], P = (e, m) => {
|
|
29
|
-
const {
|
|
30
|
-
submitFormAndUpdateFormData: t,
|
|
31
|
-
submitFormAndCreateComparison: u,
|
|
32
|
-
setInitialUserInfoInStore: l,
|
|
33
|
-
removeSessionState: c,
|
|
34
|
-
openQuotationModal: d
|
|
35
|
-
} = v(m), i = D(!1), o = [
|
|
36
|
-
{ rule: "required", text: "Kies een gezinsamenstelling" }
|
|
37
|
-
], n = () => `${e.link}#/<<COMPARISONID>>/resultaten/`, p = () => f(void 0, null, function* () {
|
|
38
|
-
return (yield C([
|
|
39
|
-
"zipcode",
|
|
40
|
-
"housenumber",
|
|
41
|
-
"housenumberaddition",
|
|
42
|
-
"birthdate",
|
|
43
|
-
"familyComposition"
|
|
44
|
-
])) && !i.value;
|
|
45
|
-
}), y = () => f(void 0, null, function* () {
|
|
46
|
-
try {
|
|
47
|
-
if (yield p())
|
|
48
|
-
if (e.formLocation === b.isOnResultPage)
|
|
49
|
-
t({ userInformation: s });
|
|
50
|
-
else {
|
|
51
|
-
const a = I();
|
|
52
|
-
yield u("liability", a, n());
|
|
53
|
-
}
|
|
54
|
-
} catch (a) {
|
|
55
|
-
h(a);
|
|
56
|
-
}
|
|
57
|
-
}), h = (a) => {
|
|
58
|
-
console.error(a), r.refId = "192", r.notes.push({ text: "Kan geen comparison ID aanmaken voor aansprakelijkheidsverzekering vergelijking" }), r.notes.push({
|
|
59
|
-
text: `Postcode: ${s.zipcode} | Huisnummer: ${s.houseNumber} | Huisnummer toevoeging: ${s.houseNumberAddition} | Geboortedatum: ${s.birthdate} | Gezinssamenstelling: ${s.familyComposition}`
|
|
60
|
-
}), r.notes = S(r.notes), d();
|
|
61
|
-
};
|
|
62
|
-
return g(() => {
|
|
63
|
-
e.formLocation === b.isOnResultPage && l(e), e.formLocation === b.isBeforeFlow && c("liability-storage", "liability-path");
|
|
64
|
-
}), {
|
|
65
|
-
familyCompositionModel: F,
|
|
66
|
-
houseError: i,
|
|
67
|
-
familyCompositionErrorData: o,
|
|
68
|
-
validateBeforeSubmit: y
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
export {
|
|
72
|
-
P as u
|
|
73
|
-
};
|
|
@@ -1,273 +0,0 @@
|
|
|
1
|
-
var g = (t, e, n) => new Promise((i, m) => {
|
|
2
|
-
var p = (s) => {
|
|
3
|
-
try {
|
|
4
|
-
c(n.next(s));
|
|
5
|
-
} catch (a) {
|
|
6
|
-
m(a);
|
|
7
|
-
}
|
|
8
|
-
}, f = (s) => {
|
|
9
|
-
try {
|
|
10
|
-
c(n.throw(s));
|
|
11
|
-
} catch (a) {
|
|
12
|
-
m(a);
|
|
13
|
-
}
|
|
14
|
-
}, c = (s) => s.done ? i(s.value) : Promise.resolve(s.value).then(p, f);
|
|
15
|
-
c((n = n.apply(t, e)).next());
|
|
16
|
-
});
|
|
17
|
-
import { ref as x, computed as N, defineComponent as D } from "vue";
|
|
18
|
-
import { User as H } from "@vergelijkdirect/insurance-transmission-client";
|
|
19
|
-
import { d as M, B as l, u, v as y, j as A, e as k, h as F, n as P } from "./index-WjnHra7k.js";
|
|
20
|
-
import { u as j } from "./BirthdateInput-1tsGzxTx.js";
|
|
21
|
-
import { D as $ } from "./DefaultInput-zxU1ufPA.js";
|
|
22
|
-
import { D as E } from "./DefaultSelect-t64f_R7v.js";
|
|
23
|
-
import { E as w } from "./ErrorHandler-9Zxi6g3R.js";
|
|
24
|
-
const z = "192";
|
|
25
|
-
function L(t) {
|
|
26
|
-
const e = {
|
|
27
|
-
CreationForm: "CreationForm",
|
|
28
|
-
Aanvragen: "Aanvragen",
|
|
29
|
-
Common: "Common"
|
|
30
|
-
};
|
|
31
|
-
let n = x([]);
|
|
32
|
-
const i = {
|
|
33
|
-
[e.CreationForm]: {
|
|
34
|
-
title: "Oeps... er gaat iets mis!",
|
|
35
|
-
refId: z,
|
|
36
|
-
notes: [
|
|
37
|
-
{
|
|
38
|
-
text: "Kan geen comparison ID aanmaken voor geld lenen vergelijking"
|
|
39
|
-
}
|
|
40
|
-
],
|
|
41
|
-
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!"
|
|
42
|
-
},
|
|
43
|
-
[e.Aanvragen]: {
|
|
44
|
-
description: "Er gaat iets niet helemaal goed. Je kunt op dit moment niet verder met je vergelijking of aanvraag. Vul je gegevens in en we gaan zo snel mogelijk contact met je opnemen om je verder te helpen."
|
|
45
|
-
},
|
|
46
|
-
[e.Common]: {
|
|
47
|
-
description: "Momenteel kunnen we je lening online niet berekenen. Vul je gegevens in en we gaan zo snel mogelijk contact met je opnemen om je verder te helpen."
|
|
48
|
-
}
|
|
49
|
-
}, m = (a = "Common") => {
|
|
50
|
-
t("emit-event-hub", { event: "open-quotation-modal", data: s(a) });
|
|
51
|
-
}, p = (a) => {
|
|
52
|
-
const v = c(a);
|
|
53
|
-
n.value.push(v);
|
|
54
|
-
}, f = () => {
|
|
55
|
-
n.value = [];
|
|
56
|
-
}, c = (a) => ({ text: a }), s = (a) => {
|
|
57
|
-
const { title: v, refId: b, notes: _, description: o } = i[a];
|
|
58
|
-
return { title: v, refId: b, notes: [..._ || [], ...n.value], description: o };
|
|
59
|
-
};
|
|
60
|
-
return {
|
|
61
|
-
QuotationType: e,
|
|
62
|
-
openQuotationModal: m,
|
|
63
|
-
addNote: p,
|
|
64
|
-
resetNotes: f,
|
|
65
|
-
convertToNote: c,
|
|
66
|
-
renderQuotationData: s
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
let C = x(!1);
|
|
70
|
-
const ee = (t, e) => {
|
|
71
|
-
const {
|
|
72
|
-
QuotationType: n,
|
|
73
|
-
openQuotationModal: i,
|
|
74
|
-
addNote: m,
|
|
75
|
-
resetNotes: p
|
|
76
|
-
} = L(e), f = N(() => t.formOrientation === M.Horizontal), c = (o) => `${t.link}#/${o}`, s = (o) => g(void 0, null, function* () {
|
|
77
|
-
p();
|
|
78
|
-
try {
|
|
79
|
-
const d = yield A.comparisonService.create("loan", o);
|
|
80
|
-
return yield A.comparisonService.update(d), d;
|
|
81
|
-
} catch (d) {
|
|
82
|
-
console.error(d), m(`
|
|
83
|
-
Leendoel: ${l.loanPurpose} |
|
|
84
|
-
Leenbedrag: ${l.loanAmount} |
|
|
85
|
-
Geboortedatum: ${u.birthdate} |
|
|
86
|
-
Gezinssituatie: ${u.familyComposition}
|
|
87
|
-
`), i(n.CreationForm);
|
|
88
|
-
}
|
|
89
|
-
}), a = () => {
|
|
90
|
-
l.loanAmount = t.insuranceState.LoanAmount || l.loanAmount, l.loanPurpose = t.insuranceState.LoanPurpose || l.loanPurpose, u.birthdate = t.userInformation.birthdate || u.birthdate, u.familyComposition = t.userInformation.familyComposition || u.familyComposition;
|
|
91
|
-
}, v = () => {
|
|
92
|
-
const o = new H({});
|
|
93
|
-
return o.setDetail(null, {}), o.setBirthDate(u.birthdate), o.setFamilyComposition(u.familyComposition), o.setDetail("loanData", {
|
|
94
|
-
LoanPurpose: l.loanPurpose,
|
|
95
|
-
LoanAmount: l.loanAmount
|
|
96
|
-
}), o;
|
|
97
|
-
};
|
|
98
|
-
return {
|
|
99
|
-
loanState: l,
|
|
100
|
-
inSubmissions: C,
|
|
101
|
-
isHorizontalForm: f,
|
|
102
|
-
setFormData: a,
|
|
103
|
-
submitUpdateForm: () => g(void 0, null, function* () {
|
|
104
|
-
C.value = !0;
|
|
105
|
-
try {
|
|
106
|
-
(yield y(["birthdate", "familyComposition", "loanAmount", "loanPurpose"])) && e("submit-form", { userInformation: u, loanState: l });
|
|
107
|
-
} catch (o) {
|
|
108
|
-
console.error(o), e("emit-event-hub", { event: "open-quotation-modal" });
|
|
109
|
-
}
|
|
110
|
-
C.value = !1;
|
|
111
|
-
}),
|
|
112
|
-
submitCreateForm: () => g(void 0, null, function* () {
|
|
113
|
-
try {
|
|
114
|
-
if (!(yield y(["birthdate", "familyComposition", "loanAmount", "loanPurpose"])))
|
|
115
|
-
return;
|
|
116
|
-
const d = v(), h = yield s(d);
|
|
117
|
-
h && h.getId() ? e("redirect-page", { link: c(h.getId()) }) : i(n.CreationForm);
|
|
118
|
-
} catch (o) {
|
|
119
|
-
console.error(o), i(n.CreationForm);
|
|
120
|
-
}
|
|
121
|
-
})
|
|
122
|
-
};
|
|
123
|
-
}, V = D({
|
|
124
|
-
name: "LoanAmount",
|
|
125
|
-
components: {
|
|
126
|
-
DefaultInput: $,
|
|
127
|
-
DefaultSelect: E,
|
|
128
|
-
ErrorHandler: w
|
|
129
|
-
},
|
|
130
|
-
setup(t, { attrs: e, listeners: n }) {
|
|
131
|
-
const { inputId: i } = j();
|
|
132
|
-
return {
|
|
133
|
-
errors: k,
|
|
134
|
-
hasNewDesign: F,
|
|
135
|
-
attrs: e,
|
|
136
|
-
listeners: n,
|
|
137
|
-
loansErrorData: [
|
|
138
|
-
{
|
|
139
|
-
rule: "required",
|
|
140
|
-
text: "Leenbedrag is verplicht"
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
rule: "min_value",
|
|
144
|
-
text: "Je kunt niet minder dan €3500,- lenen. Vul een hoger bedrag in"
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
rule: "max_value",
|
|
148
|
-
text: "De input mag niet groter zijn dan de maximum waarde: 75000"
|
|
149
|
-
}
|
|
150
|
-
],
|
|
151
|
-
inputId: i
|
|
152
|
-
};
|
|
153
|
-
}
|
|
154
|
-
});
|
|
155
|
-
var I = function() {
|
|
156
|
-
var e = this, n = e._self._c;
|
|
157
|
-
return e._self._setupProxy, n("default-input", e._g(e._b({ attrs: { id: e.inputId("loanAmount"), label: "Leenbedrag", name: "loanAmount", type: "text", "prepend-text": "€", placeholder: "bv. 10 000", mask: "#####", "has-prepend": !0, validation: "required|min_value:3500|max_value:75000", "is-required": !0 }, scopedSlots: e._u([{ key: "error-messages", fn: function() {
|
|
158
|
-
return [n("ErrorHandler", { attrs: { name: "loanAmount", "errors-data": e.loansErrorData } })];
|
|
159
|
-
}, proxy: !0 }, { key: "additional-info", fn: function() {
|
|
160
|
-
return [n("span", { class: e.hasNewDesign ? "vd-form-additional-info-text" : "text-primary" }, [n("i", { staticClass: "fas fa-info-circle", class: e.hasNewDesign ? "vd-tip-icon vd-tip-icon_additional-text" : "text-primary fz-big cursor-pointer", attrs: { slot: "reference", id: "popover-target-loan-amount" }, slot: "reference" }), n("span", [e._v(" Je kunt minimaal € 3.500,- en maximaal € 75.000,- lenen. Vul hele euro's in. ")])])];
|
|
161
|
-
}, proxy: !0 }]) }, "default-input", e.attrs, !1), e.listeners));
|
|
162
|
-
}, q = [];
|
|
163
|
-
I._withStripped = !0;
|
|
164
|
-
var O = /* @__PURE__ */ P(
|
|
165
|
-
V,
|
|
166
|
-
I,
|
|
167
|
-
q,
|
|
168
|
-
!1,
|
|
169
|
-
null,
|
|
170
|
-
null,
|
|
171
|
-
null,
|
|
172
|
-
null
|
|
173
|
-
);
|
|
174
|
-
O.options.__file = "/Users/vergelijkdirect/Documents/projects/comparison-forms/src/insurances/loan/components/formFields/loanAmount.vue";
|
|
175
|
-
const te = O.exports;
|
|
176
|
-
var r = /* @__PURE__ */ ((t) => (t.PurchaseCar = "02", t.PurchaseBoat = "03", t.PurchaseCaravanCamper = "04", t.PurchaseHousehold = "32", t.PurchaseMotor = "05", t.PurchaseRecreationalHome = "11", t.RefinanceExistingLoans = "09", t.HomeRenovation = "06", t.EnergySavingMeasures = "07", t.PayOffMortgageDebt = "12", t.ExtraFinances = "33", t.Other = "99", t))(r || {});
|
|
177
|
-
const Q = [
|
|
178
|
-
{
|
|
179
|
-
title: "Aankoop auto",
|
|
180
|
-
value: r.PurchaseCar
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
title: "Aankoop boot",
|
|
184
|
-
value: r.PurchaseBoat
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
title: "Aankoop caravan/camper",
|
|
188
|
-
value: r.PurchaseCaravanCamper
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
title: "Aankoop inboedel",
|
|
192
|
-
value: r.PurchaseHousehold
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
title: "Aankoop motor",
|
|
196
|
-
value: r.PurchaseMotor
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
title: "Aankoop recreatiewoning",
|
|
200
|
-
value: r.PurchaseRecreationalHome
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
title: "Oversluiten lopende leningen",
|
|
204
|
-
value: r.RefinanceExistingLoans
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
title: "Verbouwing woning",
|
|
208
|
-
value: r.HomeRenovation
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
title: "Energie besparende maatregelen",
|
|
212
|
-
value: r.EnergySavingMeasures
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
title: "Aflossen restschuld woning",
|
|
216
|
-
value: r.PayOffMortgageDebt
|
|
217
|
-
},
|
|
218
|
-
{
|
|
219
|
-
title: "Extra financiële ruimte",
|
|
220
|
-
value: r.ExtraFinances
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
title: "Anders",
|
|
224
|
-
value: r.Other
|
|
225
|
-
}
|
|
226
|
-
], U = D({
|
|
227
|
-
name: "LoanPurpose",
|
|
228
|
-
components: {
|
|
229
|
-
DefaultSelect: E,
|
|
230
|
-
ErrorHandler: w
|
|
231
|
-
},
|
|
232
|
-
setup(t, { attrs: e, listeners: n }) {
|
|
233
|
-
const { inputId: i } = j();
|
|
234
|
-
return {
|
|
235
|
-
errors: k,
|
|
236
|
-
hasNewDesign: F,
|
|
237
|
-
attrs: e,
|
|
238
|
-
listeners: n,
|
|
239
|
-
loanPurposeOptions: Q,
|
|
240
|
-
loansErrorData: [
|
|
241
|
-
{
|
|
242
|
-
rule: "required",
|
|
243
|
-
text: "Leendoel is verplicht"
|
|
244
|
-
}
|
|
245
|
-
],
|
|
246
|
-
inputId: i
|
|
247
|
-
};
|
|
248
|
-
}
|
|
249
|
-
});
|
|
250
|
-
var R = function() {
|
|
251
|
-
var e = this, n = e._self._c;
|
|
252
|
-
return e._self._setupProxy, n("default-select", e._g(e._b({ attrs: { id: e.inputId("loanPurpose"), label: "Leendoel", name: "loanPurpose", options: e.loanPurposeOptions, "is-required": !0 }, scopedSlots: e._u([{ key: "error-messages", fn: function() {
|
|
253
|
-
return [n("ErrorHandler", { attrs: { name: "loanPurpose", "errors-data": e.loansErrorData } })];
|
|
254
|
-
}, proxy: !0 }]) }, "default-select", e.attrs, !1), e.listeners));
|
|
255
|
-
}, B = [];
|
|
256
|
-
R._withStripped = !0;
|
|
257
|
-
var S = /* @__PURE__ */ P(
|
|
258
|
-
U,
|
|
259
|
-
R,
|
|
260
|
-
B,
|
|
261
|
-
!1,
|
|
262
|
-
null,
|
|
263
|
-
null,
|
|
264
|
-
null,
|
|
265
|
-
null
|
|
266
|
-
);
|
|
267
|
-
S.options.__file = "/Users/vergelijkdirect/Documents/projects/comparison-forms/src/insurances/loan/components/formFields/loanPurpose.vue";
|
|
268
|
-
const ne = S.exports;
|
|
269
|
-
export {
|
|
270
|
-
ne as L,
|
|
271
|
-
te as a,
|
|
272
|
-
ee as u
|
|
273
|
-
};
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
var p = (e, d, a) => new Promise((u, c) => {
|
|
2
|
-
var l = (o) => {
|
|
3
|
-
try {
|
|
4
|
-
s(a.next(o));
|
|
5
|
-
} catch (r) {
|
|
6
|
-
c(r);
|
|
7
|
-
}
|
|
8
|
-
}, f = (o) => {
|
|
9
|
-
try {
|
|
10
|
-
s(a.throw(o));
|
|
11
|
-
} catch (r) {
|
|
12
|
-
c(r);
|
|
13
|
-
}
|
|
14
|
-
}, s = (o) => o.done ? u(o.value) : Promise.resolve(o.value).then(l, f);
|
|
15
|
-
s((a = a.apply(e, d)).next());
|
|
16
|
-
});
|
|
17
|
-
import { ref as v, onMounted as D } from "vue";
|
|
18
|
-
import { m as i, F, u as t, q as m, v as L } from "./index-WjnHra7k.js";
|
|
19
|
-
import { u as P } from "./common-J_DOueuE.js";
|
|
20
|
-
import { u as H } from "./useSkipUpdateComparison-WseHt-cH.js";
|
|
21
|
-
import { r as k } from "./array.util-agNtEyks.js";
|
|
22
|
-
const A = () => [{
|
|
23
|
-
name: "moped",
|
|
24
|
-
data: i
|
|
25
|
-
}];
|
|
26
|
-
let S = v(!1);
|
|
27
|
-
const M = { min: 16, max: 99 }, U = (e, d) => {
|
|
28
|
-
const {
|
|
29
|
-
closeFormWithoutUpdateComparison: a,
|
|
30
|
-
submitFormAndCreateComparison: u,
|
|
31
|
-
submitFormAndUpdateFormData: c,
|
|
32
|
-
setInitialUserInfoInStore: l,
|
|
33
|
-
removeSessionState: f,
|
|
34
|
-
openQuotationModal: s
|
|
35
|
-
} = P(d), { vehicleFormDataIsNotChanged: o } = H(
|
|
36
|
-
e.userInformation,
|
|
37
|
-
e.insuranceState,
|
|
38
|
-
i
|
|
39
|
-
), r = () => p(void 0, null, function* () {
|
|
40
|
-
return (yield L([
|
|
41
|
-
"license",
|
|
42
|
-
"zipcode",
|
|
43
|
-
"housenumber",
|
|
44
|
-
"housenumberaddition",
|
|
45
|
-
"birthdate",
|
|
46
|
-
"isLicenseTemplateIncorrectHiddenField",
|
|
47
|
-
"unknownLicensePlateHiddenField",
|
|
48
|
-
"noLicensePlateHiddenField",
|
|
49
|
-
"incorrectLicensePlateHiddenField",
|
|
50
|
-
"isLicensePlateCantBeRetrievedHiddenField"
|
|
51
|
-
])) && !S.value;
|
|
52
|
-
}), g = () => `${e.link}#/<<COMPARISONID>>`, h = () => {
|
|
53
|
-
Object.assign(i, e.insuranceState);
|
|
54
|
-
}, C = (n) => {
|
|
55
|
-
t.city = n.city, t.street = n.street;
|
|
56
|
-
}, I = () => p(void 0, null, function* () {
|
|
57
|
-
if (o()) {
|
|
58
|
-
a();
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
try {
|
|
62
|
-
(yield r()) && (e.formLocation === F.isOnCoveragePage ? c({ userInformation: t, mopedState: i }) : yield u("moped", A(), g()));
|
|
63
|
-
} catch (n) {
|
|
64
|
-
b(n);
|
|
65
|
-
}
|
|
66
|
-
}), b = (n) => {
|
|
67
|
-
console.error("Handle comparison error", n), m.refId = "192", m.notes.push({ text: "Kan geen comparison ID aanmaken voor mopedzekering vergelijking" }), m.notes.push({
|
|
68
|
-
text: `Kenteken: ${i.LicensePlate} | Postcode: ${t.zipcode} | Huisnummer: ${t.houseNumber} | Huisnummer toevoeging: ${t.houseNumberAddition} | Geboortedatum: ${t.birthdate}`
|
|
69
|
-
}), m.notes = k(m.notes), s();
|
|
70
|
-
};
|
|
71
|
-
return D(() => {
|
|
72
|
-
e.formLocation === F.isOnCoveragePage && (l(e), h()), e.formLocation === F.isBeforeFlow && f("moped-storage", "moped-path");
|
|
73
|
-
}), {
|
|
74
|
-
acceptableAges: M,
|
|
75
|
-
houseError: S,
|
|
76
|
-
mopedState: i,
|
|
77
|
-
setHouseInformation: C,
|
|
78
|
-
userState: t,
|
|
79
|
-
validateBeforeSubmit: I
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
export {
|
|
83
|
-
U as u
|
|
84
|
-
};
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
var F = (e, c, a) => new Promise((d, u) => {
|
|
2
|
-
var l = (o) => {
|
|
3
|
-
try {
|
|
4
|
-
i(a.next(o));
|
|
5
|
-
} catch (s) {
|
|
6
|
-
u(s);
|
|
7
|
-
}
|
|
8
|
-
}, f = (o) => {
|
|
9
|
-
try {
|
|
10
|
-
i(a.throw(o));
|
|
11
|
-
} catch (s) {
|
|
12
|
-
u(s);
|
|
13
|
-
}
|
|
14
|
-
}, i = (o) => o.done ? d(o.value) : Promise.resolve(o.value).then(l, f);
|
|
15
|
-
i((a = a.apply(e, c)).next());
|
|
16
|
-
});
|
|
17
|
-
import { ref as b, onMounted as D } from "vue";
|
|
18
|
-
import { o as r, F as S, u as t, q as m, v as L } from "./index-WjnHra7k.js";
|
|
19
|
-
import { u as P } from "./useSkipUpdateComparison-WseHt-cH.js";
|
|
20
|
-
import { u as H } from "./common-J_DOueuE.js";
|
|
21
|
-
import { r as k } from "./array.util-agNtEyks.js";
|
|
22
|
-
const A = () => [{
|
|
23
|
-
name: "motor",
|
|
24
|
-
data: r
|
|
25
|
-
}];
|
|
26
|
-
let h = b(!1);
|
|
27
|
-
const N = (e, c) => {
|
|
28
|
-
const {
|
|
29
|
-
closeFormWithoutUpdateComparison: a,
|
|
30
|
-
submitFormAndCreateComparison: d,
|
|
31
|
-
submitFormAndUpdateFormData: u,
|
|
32
|
-
setInitialUserInfoInStore: l,
|
|
33
|
-
removeSessionState: f,
|
|
34
|
-
openQuotationModal: i
|
|
35
|
-
} = H(c), { vehicleFormDataIsNotChanged: o } = P(
|
|
36
|
-
e.userInformation,
|
|
37
|
-
e.insuranceState,
|
|
38
|
-
r
|
|
39
|
-
), s = () => F(void 0, null, function* () {
|
|
40
|
-
return (yield L([
|
|
41
|
-
"license",
|
|
42
|
-
"incorrectLicensePlateHiddenField",
|
|
43
|
-
"noLicensePlateHiddenField",
|
|
44
|
-
"unknownLicensePlateHiddenField",
|
|
45
|
-
"isLicenseTemplateIncorrectHiddenField",
|
|
46
|
-
"zipcode",
|
|
47
|
-
"housenumber",
|
|
48
|
-
"housenumberaddition",
|
|
49
|
-
"birthdate",
|
|
50
|
-
"isLicensePlateCantBeRetrievedHiddenField"
|
|
51
|
-
])) && !h.value;
|
|
52
|
-
}), g = () => `${e.link}#/<<COMPARISONID>>`, p = () => {
|
|
53
|
-
Object.assign(r, e.insuranceState);
|
|
54
|
-
}, C = (n) => {
|
|
55
|
-
t.city = n.city, t.street = n.street;
|
|
56
|
-
}, I = () => F(void 0, null, function* () {
|
|
57
|
-
if (o()) {
|
|
58
|
-
a();
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
try {
|
|
62
|
-
(yield s()) && (e.formLocation === S.isOnCoveragePage ? u({ userInformation: t, motorState: r }) : yield d("motor", A(), g()));
|
|
63
|
-
} catch (n) {
|
|
64
|
-
v(n);
|
|
65
|
-
}
|
|
66
|
-
}), v = (n) => {
|
|
67
|
-
console.error("Handle comparison error", n), m.refId = "192", m.notes.push({ text: "Kan geen comparison ID aanmaken voor motorzekering vergelijking" }), m.notes.push({
|
|
68
|
-
text: `Kenteken: ${r.LicensePlate} | Postcode: ${t.zipcode} | Huisnummer: ${t.houseNumber} | Huisnummer toevoeging: ${t.houseNumberAddition} | Geboortedatum: ${t.birthdate}`
|
|
69
|
-
}), m.notes = k(m.notes), i();
|
|
70
|
-
};
|
|
71
|
-
return D(() => {
|
|
72
|
-
e.formLocation === S.isOnCoveragePage && (l(e), p()), e.formLocation === S.isBeforeFlow && f("motor-storage", "motor-path");
|
|
73
|
-
}), {
|
|
74
|
-
userState: t,
|
|
75
|
-
motorState: r,
|
|
76
|
-
houseError: h,
|
|
77
|
-
setHouseInformation: C,
|
|
78
|
-
validateBeforeSubmit: I
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
export {
|
|
82
|
-
N as u
|
|
83
|
-
};
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
var L = Object.defineProperty, b = Object.defineProperties;
|
|
2
|
-
var k = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var h = Object.getOwnPropertySymbols;
|
|
4
|
-
var A = Object.prototype.hasOwnProperty, F = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var S = (e, t, a) => t in e ? L(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a, T = (e, t) => {
|
|
6
|
-
for (var a in t || (t = {}))
|
|
7
|
-
A.call(t, a) && S(e, a, t[a]);
|
|
8
|
-
if (h)
|
|
9
|
-
for (var a of h(t))
|
|
10
|
-
F.call(t, a) && S(e, a, t[a]);
|
|
11
|
-
return e;
|
|
12
|
-
}, M = (e, t) => b(e, k(t));
|
|
13
|
-
var p = (e, t, a) => new Promise((c, d) => {
|
|
14
|
-
var v = (o) => {
|
|
15
|
-
try {
|
|
16
|
-
m(a.next(o));
|
|
17
|
-
} catch (l) {
|
|
18
|
-
d(l);
|
|
19
|
-
}
|
|
20
|
-
}, g = (o) => {
|
|
21
|
-
try {
|
|
22
|
-
m(a.throw(o));
|
|
23
|
-
} catch (l) {
|
|
24
|
-
d(l);
|
|
25
|
-
}
|
|
26
|
-
}, m = (o) => o.done ? c(o.value) : Promise.resolve(o.value).then(v, g);
|
|
27
|
-
m((a = a.apply(e, t)).next());
|
|
28
|
-
});
|
|
29
|
-
import { ref as N, watch as I, onMounted as E } from "vue";
|
|
30
|
-
import { y as n, u as i, F as u, v as P, q as s } from "./index-WjnHra7k.js";
|
|
31
|
-
import { u as w } from "./common-J_DOueuE.js";
|
|
32
|
-
import { r as x } from "./array.util-agNtEyks.js";
|
|
33
|
-
import f from "moment";
|
|
34
|
-
var O = /* @__PURE__ */ ((e) => (e.FamilyWithChildren = "I", e.FamilyWithoutChildren = "H", e.SingleWithoutChildren = "A", e.SingleWithChildren = "K", e))(O || {});
|
|
35
|
-
const B = () => [{
|
|
36
|
-
name: "comparison",
|
|
37
|
-
data: {
|
|
38
|
-
Partner: {
|
|
39
|
-
name: "",
|
|
40
|
-
initials: "",
|
|
41
|
-
gender: "",
|
|
42
|
-
birthdate: "",
|
|
43
|
-
nameInfix: ""
|
|
44
|
-
},
|
|
45
|
-
Kids: [],
|
|
46
|
-
TravelData: {
|
|
47
|
-
CommencingDate: f().format("YYYY-MM-DD"),
|
|
48
|
-
PaymentTerm: n.paymentTerm,
|
|
49
|
-
NumberOfKids: 0,
|
|
50
|
-
MaximumTravelDuration: 60,
|
|
51
|
-
CoverageRegion: "E",
|
|
52
|
-
ExtraOrdinaryCosts: "J",
|
|
53
|
-
Money: "N",
|
|
54
|
-
Accidents: "J",
|
|
55
|
-
MedicalExpenses: "J",
|
|
56
|
-
Legal: "N",
|
|
57
|
-
BusinessTrip: "N",
|
|
58
|
-
WinterSports: "N",
|
|
59
|
-
AdventurousSport: "N",
|
|
60
|
-
SportsEquipment: "N",
|
|
61
|
-
GolfEquipment: "N",
|
|
62
|
-
DiveEquipment: "N",
|
|
63
|
-
AmountLuggage: 1e3,
|
|
64
|
-
CoverageCancellation: n.paymentTerm === "L" ? "3008" : "3017",
|
|
65
|
-
AmountCancellation: 0,
|
|
66
|
-
NumberOfCars: 0,
|
|
67
|
-
NumberOfCaravans: 0,
|
|
68
|
-
NumberOfTrailers: 0,
|
|
69
|
-
ReturnProvision: "0,00",
|
|
70
|
-
CoverageArea: "E",
|
|
71
|
-
Luggage: "J",
|
|
72
|
-
MotoristHelp: "N",
|
|
73
|
-
StartDate: f().format("YYYY-MM-DD"),
|
|
74
|
-
EndDate: f().add(7, "days").format("YYYY-MM-DD"),
|
|
75
|
-
BookDate: f().format("YYYY-MM-DD"),
|
|
76
|
-
Manufacturing: "",
|
|
77
|
-
CompositeJourney: "J",
|
|
78
|
-
Observer: "N"
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}];
|
|
82
|
-
let C = N(!1), y = N(!1);
|
|
83
|
-
const $ = (e, t) => {
|
|
84
|
-
const {
|
|
85
|
-
submitFormAndUpdateFormData: a,
|
|
86
|
-
submitFormAndCreateComparison: c,
|
|
87
|
-
setInitialUserInfoInStore: d,
|
|
88
|
-
removeSessionState: v,
|
|
89
|
-
openQuotationModal: g
|
|
90
|
-
} = w(t), m = () => i.familyComposition === O.SingleWithoutChildren && n.paymentTerm === "L" ? `${e.link}#/<<COMPARISONID>>/resultaten/` : `${e.link}#/<<COMPARISONID>>/gezinsleden/`, o = () => p(void 0, null, function* () {
|
|
91
|
-
try {
|
|
92
|
-
if (yield l())
|
|
93
|
-
if (e.formLocation === u.isOnResultPage)
|
|
94
|
-
a({ userInformation: i, travelState: M(T({}, n), { isPaymentTermChanged: y.value, isFamilyCompositionChanged: C.value }) });
|
|
95
|
-
else {
|
|
96
|
-
const r = B();
|
|
97
|
-
yield c("travel", r, m());
|
|
98
|
-
}
|
|
99
|
-
y.value = !1, C.value = !1;
|
|
100
|
-
} catch (r) {
|
|
101
|
-
Y(r);
|
|
102
|
-
}
|
|
103
|
-
}), l = () => p(void 0, null, function* () {
|
|
104
|
-
return yield P([
|
|
105
|
-
"birthdate",
|
|
106
|
-
"familyComposition"
|
|
107
|
-
]);
|
|
108
|
-
}), Y = (r) => {
|
|
109
|
-
console.error(r), s.refId = "192", s.headerTitle = "Oops. Er gaat iets mis", s.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!", s.notes.push({ text: "Kan geen comparison ID aanmaken voor reisverzekering vergelijking" }), s.notes.push({
|
|
110
|
-
text: `Dekking: ${n.paymentTerm} | Geboortedatum: ${i.birthdate} | Gezinssituatie: ${i.familyComposition}`
|
|
111
|
-
}), s.notes = x(s.notes), g();
|
|
112
|
-
}, D = () => {
|
|
113
|
-
if (e.additionalOptions && e.additionalOptions.travelCoverageType) {
|
|
114
|
-
n.paymentTerm = e.additionalOptions.travelCoverageType === "short" ? "S" : "L";
|
|
115
|
-
return;
|
|
116
|
-
}
|
|
117
|
-
n.paymentTerm = e.insuranceState.paymentTerm || n.paymentTerm;
|
|
118
|
-
};
|
|
119
|
-
return I(() => i.familyComposition, (r) => {
|
|
120
|
-
e.formLocation !== u.isBeforeFlow && i.familyComposition !== e.userInformation.familyComposition && (C.value = !0);
|
|
121
|
-
}), I(() => n.paymentTerm, (r) => {
|
|
122
|
-
e.formLocation !== u.isBeforeFlow && n.paymentTerm !== e.insuranceState.paymentTerm && (y.value = !0);
|
|
123
|
-
}), E(() => {
|
|
124
|
-
e.formLocation === u.isOnResultPage && (d(e), D()), e.formLocation === u.isBeforeFlow && (D(), v("travel-storage", "travel-path"));
|
|
125
|
-
}), {
|
|
126
|
-
userState: i,
|
|
127
|
-
travelState: n,
|
|
128
|
-
validateBeforeSubmit: o
|
|
129
|
-
};
|
|
130
|
-
}, z = [
|
|
131
|
-
{
|
|
132
|
-
value: "L",
|
|
133
|
-
text: "Doorlopend",
|
|
134
|
-
title: "Doorlopend"
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
value: "S",
|
|
138
|
-
text: "Kortlopend",
|
|
139
|
-
title: "Kortlopend"
|
|
140
|
-
}
|
|
141
|
-
];
|
|
142
|
-
export {
|
|
143
|
-
z as p,
|
|
144
|
-
$ as u
|
|
145
|
-
};
|