@vergelijkdirect/comparison-forms 1.3.17-ver-8380.1 → 1.3.17-ver-8380.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-rollup/comparison-forms.js +30271 -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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vergelijkdirect/comparison-forms",
|
|
3
|
-
"version": "1.3.17-ver-8380.
|
|
3
|
+
"version": "1.3.17-ver-8380.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"watch": "node server",
|
|
@@ -20,15 +20,10 @@
|
|
|
20
20
|
"@vitejs/plugin-vue2": "^2.3.1",
|
|
21
21
|
"typescript": "^5.4.5",
|
|
22
22
|
"vite": "^5.0.0",
|
|
23
|
-
"vite-bundle-analyzer": "^1.1.0",
|
|
24
23
|
"vite-plugin-compression2": "^0.10.6"
|
|
25
24
|
},
|
|
26
|
-
"peerDependencies": {
|
|
27
|
-
"@vergelijkdirect/insurance-transmission-client": "1.3.38",
|
|
28
|
-
"moment": "^2.29.1",
|
|
29
|
-
"vee-validate": "^2.2.15"
|
|
30
|
-
},
|
|
31
25
|
"dependencies": {
|
|
26
|
+
"@vergelijkdirect/insurance-transmission-client": "1.3.38",
|
|
32
27
|
"@vergelijkdirect/styles": "1.1.13",
|
|
33
28
|
"axios": "^1.6.8",
|
|
34
29
|
"bootstrap": "^4.5.3",
|
|
@@ -37,9 +32,11 @@
|
|
|
37
32
|
"esbuild": "^0.21.5",
|
|
38
33
|
"express": "^4.18.2",
|
|
39
34
|
"lodash": "^4.17.20",
|
|
35
|
+
"moment": "^2.29.1",
|
|
40
36
|
"sass": "^1.30.0",
|
|
41
37
|
"sirv": "^2.0.3",
|
|
42
38
|
"v-mask": "^2.2.4",
|
|
39
|
+
"vee-validate": "^2.2.15",
|
|
43
40
|
"vue": "2.7.14",
|
|
44
41
|
"vue-popperjs": "^2.3.0",
|
|
45
42
|
"vue-server-renderer": "^2.7.14"
|
|
@@ -1,288 +0,0 @@
|
|
|
1
|
-
var y = (a, e, t) => new Promise((o, i) => {
|
|
2
|
-
var b = (l) => {
|
|
3
|
-
try {
|
|
4
|
-
p(t.next(l));
|
|
5
|
-
} catch (m) {
|
|
6
|
-
i(m);
|
|
7
|
-
}
|
|
8
|
-
}, f = (l) => {
|
|
9
|
-
try {
|
|
10
|
-
p(t.throw(l));
|
|
11
|
-
} catch (m) {
|
|
12
|
-
i(m);
|
|
13
|
-
}
|
|
14
|
-
}, p = (l) => l.done ? o(l.value) : Promise.resolve(l.value).then(b, f);
|
|
15
|
-
p((t = t.apply(a, e)).next());
|
|
16
|
-
});
|
|
17
|
-
import { defineComponent as U, ref as n, computed as x, onMounted as $, nextTick as E } from "vue";
|
|
18
|
-
import { e as H, h as G, i as M, j as z, $ as k, n as K } from "./index-WjnHra7k.js";
|
|
19
|
-
import { D as W } from "./DefaultInput-zxU1ufPA.js";
|
|
20
|
-
import { D as j } from "./DefaultSelect-t64f_R7v.js";
|
|
21
|
-
import { E as B } from "./ErrorHandler-9Zxi6g3R.js";
|
|
22
|
-
import { P as J } from "./vue-popper.min-O3ciEEKg.js";
|
|
23
|
-
const Q = U({
|
|
24
|
-
components: {
|
|
25
|
-
DefaultInput: W,
|
|
26
|
-
DefaultSelect: j,
|
|
27
|
-
ErrorHandler: B,
|
|
28
|
-
Popper: J
|
|
29
|
-
},
|
|
30
|
-
props: {
|
|
31
|
-
template: {
|
|
32
|
-
type: String,
|
|
33
|
-
default: "FORM",
|
|
34
|
-
validator: (a) => ["FORM", "USER_INFORMATION", "NEW_USER_INFORMATION", "PACKAGE", "FORM_HORIZONTAL"].includes(a)
|
|
35
|
-
},
|
|
36
|
-
zipcode: {
|
|
37
|
-
type: String,
|
|
38
|
-
required: !0
|
|
39
|
-
},
|
|
40
|
-
houseNumber: {
|
|
41
|
-
type: String,
|
|
42
|
-
required: !0
|
|
43
|
-
},
|
|
44
|
-
houseNumberAddition: {
|
|
45
|
-
type: String,
|
|
46
|
-
required: !0
|
|
47
|
-
},
|
|
48
|
-
zipcodeName: {
|
|
49
|
-
type: String,
|
|
50
|
-
required: !0
|
|
51
|
-
},
|
|
52
|
-
houseNumberName: {
|
|
53
|
-
type: String,
|
|
54
|
-
required: !0
|
|
55
|
-
},
|
|
56
|
-
houseNumberAdditionName: {
|
|
57
|
-
type: String,
|
|
58
|
-
required: !0
|
|
59
|
-
},
|
|
60
|
-
showStreetAndCity: {
|
|
61
|
-
type: Boolean,
|
|
62
|
-
default: !0
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
setup(a, { emit: e }) {
|
|
66
|
-
const t = n(!1), o = n(!1), i = n(!1), b = n(!0), f = n(!1), p = n(""), l = n(""), m = n(""), u = n([]), c = n({
|
|
67
|
-
street: "",
|
|
68
|
-
city: ""
|
|
69
|
-
}), N = n(!1), q = [
|
|
70
|
-
{
|
|
71
|
-
rule: "required",
|
|
72
|
-
text: "Vul je postcode in"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
rule: "regex",
|
|
76
|
-
text: "Postcode is incorrect"
|
|
77
|
-
}
|
|
78
|
-
], S = [
|
|
79
|
-
{
|
|
80
|
-
rule: "required",
|
|
81
|
-
text: "Huisnummer is verplicht"
|
|
82
|
-
}
|
|
83
|
-
], F = x(() => [
|
|
84
|
-
{
|
|
85
|
-
rule: H.has(a.houseNumberAdditionName),
|
|
86
|
-
text: "Een toevoeging is verplicht"
|
|
87
|
-
}
|
|
88
|
-
]), P = x(() => [
|
|
89
|
-
{
|
|
90
|
-
rule: i.value,
|
|
91
|
-
text: "Postcode en huisnummer combinatie onbekend."
|
|
92
|
-
}
|
|
93
|
-
]), T = x(() => t.value ? "-" : "Kies toevoeging"), R = x(() => `${f.value ? "" : "required"}|is_not:CHOOSE_OPTION`), g = (r, s, v) => y(this, null, function* () {
|
|
94
|
-
try {
|
|
95
|
-
if (M.value = !0, !r || !s) {
|
|
96
|
-
I(""), m.value = "CHOOSE_OPTION", i.value = !1, c.value.street = "", c.value.city = "", u.value = [{
|
|
97
|
-
title: "Kies een toevoeging",
|
|
98
|
-
value: "CHOOSE_OPTION",
|
|
99
|
-
disabled: !0,
|
|
100
|
-
selected: !0
|
|
101
|
-
}];
|
|
102
|
-
return;
|
|
103
|
-
}
|
|
104
|
-
u.value = [], v && (m.value = "CHOOSE_OPTION"), u.value.push({
|
|
105
|
-
title: "Kies een toevoeging",
|
|
106
|
-
value: "CHOOSE_OPTION",
|
|
107
|
-
disabled: !0,
|
|
108
|
-
selected: !0
|
|
109
|
-
}), f.value = yield w(r, s), f.value && (u.value = [...u.value, {
|
|
110
|
-
title: "Geen toevoeging",
|
|
111
|
-
value: ""
|
|
112
|
-
}]), z.homeService.getAddition({ zipcode: r, houseNumber: s }).then((d) => {
|
|
113
|
-
const h = d;
|
|
114
|
-
if (b.value = !0, A(a.houseNumberAdditionName), h.length) {
|
|
115
|
-
t.value = !1;
|
|
116
|
-
for (let C = 0; C < h.length; C++)
|
|
117
|
-
u.value = [...u.value, {
|
|
118
|
-
title: h[C],
|
|
119
|
-
value: L(h[C])
|
|
120
|
-
}];
|
|
121
|
-
i.value = !1, v || E(() => {
|
|
122
|
-
m.value = a.houseNumberAddition, _(r, s, a.houseNumberAddition);
|
|
123
|
-
});
|
|
124
|
-
} else
|
|
125
|
-
u.value[1] && (u.value[1].title = "Geen toevoeging"), t.value = !0, m.value = "", I(""), _(r, s);
|
|
126
|
-
}).catch((d) => {
|
|
127
|
-
i.value = !0, c.value.street = "", c.value.city = "", e("address-correct", !i.value), A("housenumberaddition"), console.error("Error fetching additions:", d);
|
|
128
|
-
});
|
|
129
|
-
} catch (d) {
|
|
130
|
-
console.error("Error in getHouseNumberAdditions:", d);
|
|
131
|
-
} finally {
|
|
132
|
-
M.value = !1;
|
|
133
|
-
}
|
|
134
|
-
}), w = (r, s) => y(this, null, function* () {
|
|
135
|
-
return yield z.dataValidationService.validateZipCode(r, s).then(() => !0).catch(() => !1);
|
|
136
|
-
}), V = (r) => {
|
|
137
|
-
N.value = !0, p.value = r.toUpperCase(), e("update-zipcode", r.toUpperCase()), E(() => {
|
|
138
|
-
g(r.toUpperCase(), a.houseNumber, !0);
|
|
139
|
-
});
|
|
140
|
-
}, Z = (r) => {
|
|
141
|
-
N.value = !0, e("update-house-number", r), E(() => {
|
|
142
|
-
g(a.zipcode, r, !0);
|
|
143
|
-
});
|
|
144
|
-
}, I = (r) => {
|
|
145
|
-
e("update-house-number-addition", r), _(a.zipcode, a.houseNumber, r);
|
|
146
|
-
}, _ = (r, s, v = "") => y(this, null, function* () {
|
|
147
|
-
try {
|
|
148
|
-
if (M.value = !0, !r || !s)
|
|
149
|
-
return;
|
|
150
|
-
o.value = !0, i.value = !1, c.value.street = "", c.value.city = "", e("address-correct", !i.value);
|
|
151
|
-
const { Street: d, Place: h } = yield z.dataValidationService.validateZipCode(
|
|
152
|
-
r,
|
|
153
|
-
s,
|
|
154
|
-
v
|
|
155
|
-
);
|
|
156
|
-
N.value = !1, c.value.street = d, c.value.city = h, e("update-house-information", c.value), o.value = !1;
|
|
157
|
-
} catch (d) {
|
|
158
|
-
i.value = !0, o.value = !1, e("address-correct", !i.value), A("housenumberaddition"), console.error("Error getting house information:", d);
|
|
159
|
-
} finally {
|
|
160
|
-
M.value = !1;
|
|
161
|
-
}
|
|
162
|
-
}), A = (r) => {
|
|
163
|
-
var v, d;
|
|
164
|
-
const s = k.fields.find({ name: r });
|
|
165
|
-
(s !== null || s !== void 0 && s) && (s == null || s.reset(), (d = (v = k) == null ? void 0 : v.errors) == null || d.remove(s == null ? void 0 : s.name, s == null ? void 0 : s.scope));
|
|
166
|
-
}, L = (r) => r.includes("-") ? r.replace("-", "") : r;
|
|
167
|
-
return $(() => {
|
|
168
|
-
E(() => {
|
|
169
|
-
p.value = a.zipcode, l.value = a.houseNumber, g(a.zipcode, a.houseNumber, !1);
|
|
170
|
-
});
|
|
171
|
-
}), {
|
|
172
|
-
errors: H,
|
|
173
|
-
hasNewDesign: G,
|
|
174
|
-
additionLabel: T,
|
|
175
|
-
additionValidationRules: R,
|
|
176
|
-
disableAdditionField: t,
|
|
177
|
-
isLoading: o,
|
|
178
|
-
addressError: i,
|
|
179
|
-
firstTimeCalled: b,
|
|
180
|
-
canBeWithoutAddition: f,
|
|
181
|
-
zipcodeModel: p,
|
|
182
|
-
houseNumberModel: l,
|
|
183
|
-
houseAdditionNumberModel: m,
|
|
184
|
-
additions: u,
|
|
185
|
-
houseInformation: c,
|
|
186
|
-
isAddressEditing: N,
|
|
187
|
-
props: a,
|
|
188
|
-
zipcodeErrorsData: q,
|
|
189
|
-
houseNumberErrorsData: S,
|
|
190
|
-
houseNumberAdditionErrorsData: F,
|
|
191
|
-
addressErrorsData: P,
|
|
192
|
-
getHouseNumberAdditions: g,
|
|
193
|
-
getHouseInformationWithoutAddition: w,
|
|
194
|
-
updateZipcode: V,
|
|
195
|
-
updateHouseNumber: Z,
|
|
196
|
-
updateHouseNumberAddition: I,
|
|
197
|
-
getHouseInformation: _,
|
|
198
|
-
resetFieldValidation: A
|
|
199
|
-
};
|
|
200
|
-
}
|
|
201
|
-
});
|
|
202
|
-
var D = function() {
|
|
203
|
-
var e = this, t = e._self._c;
|
|
204
|
-
return e._self._setupProxy, t("span", [e.template === "FORM" ? t("div", { class: e.hasNewDesign ? "" : "component-mb-1" }, [t("div", { staticClass: "row" }, [t("div", { staticClass: "col-md-12" }, [t("default-input", { attrs: { id: e.zipcodeName, mask: "####AA", "autocomplete-off": !0, placeholder: "bv. 1234 AZ", validation: { rules: { required: "required", regex: /^\d{4}(\s|)[a-z]{2}$/i } }, type: "text", label: "Postcode", name: e.zipcodeName, "is-required": !0 }, on: { change: e.updateZipcode }, model: { value: e.zipcodeModel, callback: function(o) {
|
|
205
|
-
e.zipcodeModel = o;
|
|
206
|
-
}, expression: "zipcodeModel" } }, [t("template", { slot: "error-messages" }, [t("ErrorHandler", { attrs: { name: e.zipcodeName, "errors-data": e.zipcodeErrorsData } })], 1)], 2)], 1)]), t("div", { staticClass: "row" }, [t("div", { class: e.hasNewDesign ? "house-number-field" : "col-md-6" }, [t("default-input", { staticClass: "mb-md-0", attrs: { id: "houseNumber", "autocomplete-off": !0, placeholder: "bv. 1", validation: "required|numeric", label: "Huisnummer", type: "text", name: e.houseNumberName, "is-required": !0 }, on: { change: e.updateHouseNumber }, model: { value: e.houseNumberModel, callback: function(o) {
|
|
207
|
-
e.houseNumberModel = o;
|
|
208
|
-
}, expression: "houseNumberModel" } }, [t("template", { slot: "error-messages" }, [t("ErrorHandler", { style: { "white-space": e.errors.has(e.houseNumberAdditionName) ? "" : "nowrap" }, attrs: { name: e.houseNumberName, "errors-data": e.houseNumberErrorsData } })], 1)], 2)], 1), t("div", { class: e.hasNewDesign ? "house-number-addition-field" : "col-md-6" }, [t("default-select", { staticClass: "mb-0", class: { "select-empty-value": e.houseAdditionNumberModel === "CHOOSE_OPTION" }, attrs: { id: "additions", validation: e.additionValidationRules, "no-default-placeholder": !0, disabled: e.disableAdditionField, name: e.houseNumberAdditionName, placeholder: e.additionLabel, options: e.additions }, on: { input: e.updateHouseNumberAddition }, scopedSlots: e._u([{ key: "title", fn: function() {
|
|
209
|
-
return [t("popper", { attrs: { options: {
|
|
210
|
-
placement: "auto",
|
|
211
|
-
modifiers: { offset: { offset: "0,10px" } }
|
|
212
|
-
}, disabled: e.addressError || !e.disableAdditionField, "visible-arrow": !e.hasNewDesign, trigger: "hover" } }, [t("div", { staticClass: "popover popper vd-popover" }, [t("div", { staticClass: "popover-header vd-popover-header" }, [e._v(" Toevoeging ")]), e._v(" Voor "), e.houseInformation.street && e.houseInformation.city ? t("span", [e._v(" " + e._s(e.houseInformation.street) + " " + e._s(e.houseNumberModel) + ", " + e._s(e.houseInformation.city) + " ")]) : t("span", [e._v(" dit adres ")]), e._v(" hebben we geen toevoegingen kunnen vinden. ")]), t("span", { attrs: { slot: "reference" }, slot: "reference" }, [e._v(" Toevoeging "), e.disableAdditionField && !e.addressError ? t("i", { staticClass: "fas fa-info-circle", class: e.hasNewDesign ? "vd-info-icon" : "text-primary cursor-pointer", attrs: { id: "popover-target" } }) : e._e(), !e.disableAdditionField && !e.addressError && e.additions.length > 2 ? t("span", { staticClass: "text-danger ml-1" }, [e._v(" *")]) : e._e()])])];
|
|
213
|
-
}, proxy: !0 }, { key: "error-messages", fn: function() {
|
|
214
|
-
return [t("ErrorHandler", { attrs: { "errors-data": e.houseNumberAdditionErrorsData } })];
|
|
215
|
-
}, proxy: !0 }], null, !1, 1041804111), model: { value: e.houseAdditionNumberModel, callback: function(o) {
|
|
216
|
-
e.houseAdditionNumberModel = o;
|
|
217
|
-
}, expression: "houseAdditionNumberModel" } })], 1)]), t("div", { staticClass: "row" }, [t("div", { staticClass: "col-md-12" }, [e.isLoading ? e._e() : t("div", [e.showStreetAndCity && !e.isAddressEditing && e.houseInformation.street && e.houseInformation.city ? t("div", { staticClass: "fz-medium mt-1" }, [t("i", { staticClass: "fa-map-marker-alt", class: e.hasNewDesign ? "fas vd-tip-icon" : "fad text-primary" }), e._v(" " + e._s(e.houseInformation.street) + ", " + e._s(e.houseInformation.city) + " ")]) : e._e(), e.addressError ? t("div", { staticClass: "vd-form-error mb-0" }, [t("i", { staticClass: "fas fa-info-circle" }), e._v(" Postcode en huisnummer combinatie onbekend. ")]) : e._e()]), e.isLoading ? t("div", { staticClass: "d-flex align-items-center mt-1" }, [t("span", { staticClass: "spinner-border spinner-small fz-medium spinner-border-sm mr-1 text-primary", attrs: { role: "status", "aria-hidden": "true" } }), t("span", { staticClass: "fz-medium" }, [e._v(" Adres ophalen ")])]) : e._e()])])]) : e._e(), e.template === "FORM_HORIZONTAL" ? t("div", { class: e.hasNewDesign ? "" : "component-mb-1" }, [t("span", { staticClass: "vd-form-card__content p-0" }, [t("div", { staticClass: "vd-form-group mb-0" }, [t("default-input", { staticClass: "mx-0 mb-lg-0", attrs: { id: e.zipcodeName, mask: "####AA", placeholder: "bv. 1234 AZ", "autocomplete-off": !0, validation: { rules: { required: "required", regex: /^\d{4}(\s|)[a-z]{2}$/i } }, type: "text", label: "Postcode", name: e.zipcodeName, "is-required": !0 }, on: { change: e.updateZipcode }, model: { value: e.zipcodeModel, callback: function(o) {
|
|
218
|
-
e.zipcodeModel = o;
|
|
219
|
-
}, expression: "zipcodeModel" } }, [t("template", { slot: "error-messages" }, [t("ErrorHandler", { attrs: { name: e.zipcodeName, "errors-data": e.zipcodeErrorsData } })], 1)], 2)], 1), t("div", { staticClass: "vd-form-group mb-0" }, [t("default-input", { staticClass: "mx-0 mb-lg-0", attrs: { id: "houseNumber", "autocomplete-off": !0, placeholder: "bv. 1", validation: "required|numeric", label: "Huisnummer", type: "text", name: e.houseNumberName, "is-required": !0 }, on: { change: e.updateHouseNumber }, model: { value: e.houseNumberModel, callback: function(o) {
|
|
220
|
-
e.houseNumberModel = o;
|
|
221
|
-
}, expression: "houseNumberModel" } }, [t("template", { slot: "error-messages" }, [t("ErrorHandler", { attrs: { name: e.houseNumberName, "errors-data": e.houseNumberErrorsData } })], 1)], 2)], 1), t("div", { staticClass: "vd-form-group mb-0" }, [t("default-select", { staticClass: "mx-0", class: { "mb-0": e.houseInformation.street && e.houseInformation.city }, attrs: { id: "additions", validation: e.additionValidationRules, disabled: e.disableAdditionField, name: e.houseNumberAdditionName, "no-default-placeholder": !0, placeholder: e.additionLabel, options: e.additions }, on: { input: e.updateHouseNumberAddition }, scopedSlots: e._u([{ key: "title", fn: function() {
|
|
222
|
-
return [t("popper", { attrs: { options: {
|
|
223
|
-
placement: "auto",
|
|
224
|
-
modifiers: { offset: { offset: "0,10px" } }
|
|
225
|
-
}, disabled: e.addressError || !e.disableAdditionField, "visible-arrow": !e.hasNewDesign, trigger: "hover" } }, [t("div", { staticClass: "popover popper" }, [t("div", { staticClass: "popover-header" }, [e._v(" Toevoeging ")]), e._v(" Voor "), e.houseInformation.street && e.houseInformation.city ? t("span", [e._v(" " + e._s(e.houseInformation.street) + " " + e._s(e.houseNumberModel) + ", " + e._s(e.houseInformation.city) + " ")]) : t("span", [e._v(" dit adres ")]), e._v(" hebben we geen toevoegingen kunnen vinden. ")]), t("span", { attrs: { slot: "reference" }, slot: "reference" }, [e._v(" Toevoeging "), e.disableAdditionField && !e.addressError ? t("i", { staticClass: "fas fa-info-circle", class: e.hasNewDesign ? "vd-info-icon" : "text-primary cursor-pointer", attrs: { id: "popover-target" } }) : e._e()])])];
|
|
226
|
-
}, proxy: !0 }, { key: "error-messages", fn: function() {
|
|
227
|
-
return [t("ErrorHandler", { attrs: { "errors-data": e.houseNumberAdditionErrorsData } })];
|
|
228
|
-
}, proxy: !0 }], null, !1, 3736528882), model: { value: e.houseAdditionNumberModel, callback: function(o) {
|
|
229
|
-
e.houseAdditionNumberModel = o;
|
|
230
|
-
}, expression: "houseAdditionNumberModel" } })], 1)]), e.isLoading ? e._e() : t("div", [e.showStreetAndCity && e.houseInformation.street && e.houseInformation.city ? t("div", { staticClass: "fz-medium mt-1" }, [t("i", { staticClass: "fa-map-marker-alt", class: e.hasNewDesign ? "fas vd-tip-icon" : "fad text-primary" }), e._v(" " + e._s(e.houseInformation.street) + ", " + e._s(e.houseInformation.city) + " ")]) : e._e(), e.addressError ? t("div", { staticClass: "vd-form-error position-relative" }, [t("i", { staticClass: "fas fa-exclamation-circle" }), e._v(" Postcode en huisnummer combinatie onbekend. ")]) : e._e()]), e.isLoading ? t("div", { staticClass: "d-flex align-items-center mt-1" }, [t("span", { staticClass: "spinner-border spinner-small fz-medium spinner-border-sm mr-1 text-primary", attrs: { role: "status", "aria-hidden": "true" } }), t("span", { staticClass: "fz-medium" }, [e._v(" Adres ophalen ")])]) : e._e()]) : e._e(), e.template === "USER_INFORMATION" ? t("div", [t("div", { staticClass: "row" }, [t("div", { staticClass: "col-md-3" }, [t("default-input", { attrs: { id: e.zipcodeName, mask: "####AA", "autocomplete-off": !0, validation: { rules: { required: "required", regex: /^\d{4}(\s|)[a-z]{2}$/i } }, type: "text", label: "Postcode", name: e.zipcodeName, "is-required": !0 }, on: { change: e.updateZipcode }, model: { value: e.zipcodeModel, callback: function(o) {
|
|
231
|
-
e.zipcodeModel = o;
|
|
232
|
-
}, expression: "zipcodeModel" } }, [t("template", { slot: "error-messages" }, [t("ErrorHandler", { attrs: { name: e.zipcodeName, "errors-data": e.zipcodeErrorsData } })], 1)], 2)], 1), t("div", { staticClass: "col-md-3" }, [t("default-input", { attrs: { id: "houseNumber", "autocomplete-off": !0, placeholder: "bv. 1", validation: "required|numeric", label: "Huisnummer", type: "text", name: e.houseNumberName, "is-required": !0 }, on: { change: e.updateHouseNumber }, model: { value: e.houseNumberModel, callback: function(o) {
|
|
233
|
-
e.houseNumberModel = o;
|
|
234
|
-
}, expression: "houseNumberModel" } }, [t("template", { slot: "error-messages" }, [t("ErrorHandler", { attrs: { name: e.houseNumberName, "errors-data": e.houseNumberErrorsData } })], 1)], 2)], 1), t("div", { staticClass: "col-md-6" }, [t("default-select", { attrs: { id: "additions", validation: e.additionValidationRules, disabled: e.disableAdditionField, name: e.houseNumberAdditionName, "no-default-placeholder": !0, placeholder: e.additionLabel, options: e.additions }, on: { input: e.updateHouseNumberAddition }, scopedSlots: e._u([{ key: "title", fn: function() {
|
|
235
|
-
return [t("popper", { attrs: { options: {
|
|
236
|
-
placement: "auto",
|
|
237
|
-
modifiers: { offset: { offset: "0,10px" } }
|
|
238
|
-
}, disabled: e.addressError || !e.disableAdditionField, "visible-arrow": !e.hasNewDesign, trigger: "hover" } }, [t("div", { staticClass: "popover popper" }, [t("div", { staticClass: "popover-header" }, [e._v(" Toevoeging ")]), e._v(" Voor "), e.houseInformation.street && e.houseInformation.city ? t("span", [e._v(" " + e._s(e.houseInformation.street) + " " + e._s(e.houseNumberModel) + ", " + e._s(e.houseInformation.city) + " ")]) : t("span", [e._v(" dit adres ")]), e._v(" hebben we geen toevoegingen kunnen vinden. ")]), t("span", { attrs: { slot: "reference" }, slot: "reference" }, [e._v(" Toevoeging "), e.disableAdditionField && !e.addressError ? t("i", { staticClass: "fas fa-info-circle", class: e.hasNewDesign ? "vd-info-icon" : "text-primary cursor-pointer", attrs: { id: "popover-target" } }) : e._e()])])];
|
|
239
|
-
}, proxy: !0 }, { key: "error-messages", fn: function() {
|
|
240
|
-
return [t("ErrorHandler", { attrs: { "errors-data": e.houseNumberAdditionErrorsData } })];
|
|
241
|
-
}, proxy: !0 }], null, !1, 3736528882), model: { value: e.houseAdditionNumberModel, callback: function(o) {
|
|
242
|
-
e.houseAdditionNumberModel = o;
|
|
243
|
-
}, expression: "houseAdditionNumberModel" } })], 1)]), t("div", { staticClass: "row" }, [t("div", { staticClass: "col-md-12" }, [t("div", { staticClass: "mb-2" }, [e.addressError ? t("div", { staticClass: "vd-form-error position-relative" }, [t("i", { staticClass: "fas fa-info-circle" }), e._v(" Postcode en huisnummer combinatie onbekend. ")]) : e._e()])])])]) : e._e(), e.template === "NEW_USER_INFORMATION" ? t("div", [t("div", { staticClass: "row mt-2" }, [t("div", { staticClass: "col-xl-4 col-lg-5 col-md-5" }, [t("label", { staticClass: "mt-2 font-weight-bold cursor-pointer", attrs: { for: e.zipcodeName } }, [e._v(" Postcode ")])]), t("div", { staticClass: "col-md-3" }, [t("default-input", { attrs: { id: e.zipcodeName, "hide-label": !0, mask: "####AA", placeholder: "bv. 1234 AZ", "autocomplete-off": !0, validation: { rules: { required: "required", regex: /^\d{4}(\s|)[a-z]{2}$/i } }, type: "text", label: "Postcode", name: e.zipcodeName, "is-required": !0 }, on: { change: e.updateZipcode }, model: { value: e.zipcodeModel, callback: function(o) {
|
|
244
|
-
e.zipcodeModel = o;
|
|
245
|
-
}, expression: "zipcodeModel" } }, [t("template", { slot: "error-messages" }, [t("ErrorHandler", { attrs: { name: e.zipcodeName, "errors-data": e.zipcodeErrorsData } })], 1)], 2)], 1)]), t("div", { staticClass: "row mt-2" }, [t("div", { staticClass: "col-xl-4 col-lg-5 col-md-5" }, [t("label", { staticClass: "mt-2 font-weight-bold cursor-pointer", attrs: { for: e.houseNumberName } }, [e._v(" Huisnummer en toevoeging ")])]), t("div", { staticClass: "col-md-3" }, [t("default-input", { attrs: { id: "houseNumber", "hide-label": !0, "autocomplete-off": !0, validation: "required|numeric", type: "text", name: e.houseNumberName, "is-required": !0 }, on: { change: e.updateHouseNumber }, model: { value: e.houseNumberModel, callback: function(o) {
|
|
246
|
-
e.houseNumberModel = o;
|
|
247
|
-
}, expression: "houseNumberModel" } }, [t("template", { slot: "error-messages" }, [t("ErrorHandler", { attrs: { name: e.houseNumberName, "errors-data": e.houseNumberErrorsData } })], 1)], 2)], 1), t("div", { staticClass: "col-md-3" }, [t("default-select", { attrs: { id: "additions", validation: e.additionValidationRules, "hide-label": !0, "no-default-placeholder": !0, disabled: e.disableAdditionField, name: e.houseNumberAdditionName, placeholder: e.additionLabel, options: e.additions }, on: { input: e.updateHouseNumberAddition }, scopedSlots: e._u([{ key: "title", fn: function() {
|
|
248
|
-
return [t("popper", { attrs: { options: {
|
|
249
|
-
placement: "auto",
|
|
250
|
-
modifiers: { offset: { offset: "0,10px" } }
|
|
251
|
-
}, disabled: e.addressError || !e.disableAdditionField, "visible-arrow": !e.hasNewDesign, trigger: "hover" } }, [t("div", { staticClass: "popover popper" }, [t("div", { staticClass: "popover-header" }, [e._v(" Toevoeging ")]), e._v(" Voor "), e.houseInformation.street && e.houseInformation.city ? t("span", [e._v(" " + e._s(e.houseInformation.street) + " " + e._s(e.houseNumberModel) + ", " + e._s(e.houseInformation.city) + " ")]) : t("span", [e._v(" dit adres ")]), e._v(" hebben we geen toevoegingen kunnen vinden. ")]), t("span", { attrs: { slot: "reference" }, slot: "reference" }, [e._v(" Toevoeging "), e.disableAdditionField && !e.addressError ? t("i", { staticClass: "fas fa-info-circle", class: e.hasNewDesign ? "vd-info-icon" : "text-primary cursor-pointer", attrs: { id: "popover-target" } }) : e._e()])])];
|
|
252
|
-
}, proxy: !0 }, { key: "error-messages", fn: function() {
|
|
253
|
-
return [t("ErrorHandler", { attrs: { "errors-data": e.houseNumberAdditionErrorsData } })];
|
|
254
|
-
}, proxy: !0 }], null, !1, 3736528882), model: { value: e.houseAdditionNumberModel, callback: function(o) {
|
|
255
|
-
e.houseAdditionNumberModel = o;
|
|
256
|
-
}, expression: "houseAdditionNumberModel" } })], 1)])]) : e._e(), e.template === "PACKAGE" ? t("div", [t("div", { staticClass: "row" }, [t("div", { staticClass: "col-md-4" }, [t("default-input", { staticClass: "mx-0", attrs: { id: e.zipcodeName, mask: "####AA", placeholder: "bv. 1234 AZ", "autocomplete-off": !0, validation: { rules: { required: "required", regex: /^\d{4}(\s|)[a-z]{2}$/i } }, type: "text", label: "Postcode", name: e.zipcodeName, "is-required": !0 }, on: { change: e.updateZipcode }, model: { value: e.zipcodeModel, callback: function(o) {
|
|
257
|
-
e.zipcodeModel = o;
|
|
258
|
-
}, expression: "zipcodeModel" } }, [t("template", { slot: "error-messages" }, [t("ErrorHandler", { attrs: { name: e.zipcodeName, "errors-data": e.zipcodeErrorsData } })], 1)], 2)], 1), t("div", { staticClass: "col-md-4" }, [t("default-input", { staticClass: "mx-0", attrs: { id: "houseNumber", "autocomplete-off": !0, placeholder: "bv. 1", validation: "required|numeric", label: "Huisnummer", type: "text", name: e.houseNumberName, "is-required": !0 }, on: { change: e.updateHouseNumber }, model: { value: e.houseNumberModel, callback: function(o) {
|
|
259
|
-
e.houseNumberModel = o;
|
|
260
|
-
}, expression: "houseNumberModel" } }, [t("template", { slot: "error-messages" }, [t("ErrorHandler", { attrs: { name: e.houseNumberName, "errors-data": e.houseNumberErrorsData } })], 1)], 2)], 1), t("div", { staticClass: "col-md-4" }, [t("default-select", { staticClass: "mx-0", attrs: { id: "additions", validation: e.additionValidationRules, disabled: e.disableAdditionField, name: e.houseNumberAdditionName, "no-default-placeholder": !0, placeholder: e.additionLabel, options: e.additions }, on: { input: e.updateHouseNumberAddition }, scopedSlots: e._u([{ key: "title", fn: function() {
|
|
261
|
-
return [t("popper", { attrs: { options: {
|
|
262
|
-
placement: "auto",
|
|
263
|
-
modifiers: { offset: { offset: "0,10px" } }
|
|
264
|
-
}, disabled: e.addressError || !e.disableAdditionField, "visible-arrow": !e.hasNewDesign, trigger: "hover" } }, [t("div", { staticClass: "popover popper" }, [t("div", { staticClass: "popover-header" }, [e._v(" Toevoeging ")]), e._v(" Voor "), e.houseInformation.street && e.houseInformation.city ? t("span", [e._v(" " + e._s(e.houseInformation.street) + " " + e._s(e.houseNumberModel) + ", " + e._s(e.houseInformation.city) + " ")]) : t("span", [e._v(" dit adres ")]), e._v(" hebben we geen toevoegingen kunnen vinden. ")]), t("span", { attrs: { slot: "reference" }, slot: "reference" }, [e._v(" Toevoeging "), e.disableAdditionField && !e.addressError ? t("i", { staticClass: "fas fa-info-circle", class: e.hasNewDesign ? "vd-info-icon" : "text-primary cursor-pointer", attrs: { id: "popover-target" } }) : e._e()])])];
|
|
265
|
-
}, proxy: !0 }, { key: "error-messages", fn: function() {
|
|
266
|
-
return [t("ErrorHandler", { attrs: { "errors-data": e.houseNumberAdditionErrorsData } })];
|
|
267
|
-
}, proxy: !0 }], null, !1, 3736528882), model: { value: e.houseAdditionNumberModel, callback: function(o) {
|
|
268
|
-
e.houseAdditionNumberModel = o;
|
|
269
|
-
}, expression: "houseAdditionNumberModel" } })], 1)]), t("div", { staticClass: "row" }, [t("div", { staticClass: "col-md-12" }, [t("div", { staticClass: "mb-2" }, [e.showStreetAndCity && e.houseInformation.street && e.houseInformation.city ? t("div", { staticClass: "text-success fz-small font-weight-bold" }, [t("i", { staticClass: "fas fa-info-circle" }), e._v(" " + e._s(e.houseInformation.street) + ", " + e._s(e.houseInformation.city) + " ")]) : e._e(), t("ErrorHandler", { attrs: { "errors-data": e.addressErrorsData } })], 1)])])]) : e._e(), t("input", { directives: [{ name: "model", rawName: "v-model", value: e.addressError, expression: "addressError" }, { name: "validate", rawName: "v-validate", value: { isValue: "false" }, expression: "{ isValue: 'false' }" }], attrs: { type: "hidden", name: "hidden-adress-error" }, domProps: { value: e.addressError }, on: { input: function(o) {
|
|
270
|
-
o.target.composing || (e.addressError = o.target.value);
|
|
271
|
-
} } })]);
|
|
272
|
-
}, X = [];
|
|
273
|
-
D._withStripped = !0;
|
|
274
|
-
var O = /* @__PURE__ */ K(
|
|
275
|
-
Q,
|
|
276
|
-
D,
|
|
277
|
-
X,
|
|
278
|
-
!1,
|
|
279
|
-
null,
|
|
280
|
-
null,
|
|
281
|
-
null,
|
|
282
|
-
null
|
|
283
|
-
);
|
|
284
|
-
O.options.__file = "/Users/vergelijkdirect/Documents/projects/comparison-forms/src/components/common/AddressHandler.vue";
|
|
285
|
-
const ie = O.exports;
|
|
286
|
-
export {
|
|
287
|
-
ie as A
|
|
288
|
-
};
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
import { defineComponent as c } from "vue";
|
|
2
|
-
import { u as m, b as p, a as b, c as f } from "./bikeBrands.model-FYepHp3k.js";
|
|
3
|
-
import { F as k, b as v, u as S, e as _, n as h } from "./index-WjnHra7k.js";
|
|
4
|
-
import { S as g } from "./SimpleCard-_Mg9wAqJ.js";
|
|
5
|
-
import { D as x } from "./DefaultSelect-t64f_R7v.js";
|
|
6
|
-
import { D as C } from "./DefaultInput-zxU1ufPA.js";
|
|
7
|
-
import { Z as B } from "./ZipcodeInput-z5W6JSl0.js";
|
|
8
|
-
import { B as y } from "./BirthdateInput-1tsGzxTx.js";
|
|
9
|
-
import { E } from "./ErrorHandler-9Zxi6g3R.js";
|
|
10
|
-
import { A as q } from "./AddressHandler-jwYRDHTI.js";
|
|
11
|
-
import { B as j } from "./form-radio-group-J-EQJhh9.js";
|
|
12
|
-
import "./common-J_DOueuE.js";
|
|
13
|
-
import "@vergelijkdirect/insurance-transmission-client";
|
|
14
|
-
import "./Session.util-aedjr12J.js";
|
|
15
|
-
import "./array.util-agNtEyks.js";
|
|
16
|
-
import "vee-validate";
|
|
17
|
-
import "moment";
|
|
18
|
-
import "./vue-popper.min-O3ciEEKg.js";
|
|
19
|
-
import "./_commonjsHelpers-4t9S7M5p.js";
|
|
20
|
-
const z = c({
|
|
21
|
-
name: "BikeForm",
|
|
22
|
-
components: {
|
|
23
|
-
SimpleCard: g,
|
|
24
|
-
DefaultSelect: x,
|
|
25
|
-
DefaultInput: C,
|
|
26
|
-
ZipcodeInput: B,
|
|
27
|
-
BirthdateInput: y,
|
|
28
|
-
ErrorHandler: E,
|
|
29
|
-
AddressHandler: q,
|
|
30
|
-
BFormRadioGroup: j
|
|
31
|
-
},
|
|
32
|
-
props: {
|
|
33
|
-
link: {
|
|
34
|
-
type: String,
|
|
35
|
-
required: !0
|
|
36
|
-
},
|
|
37
|
-
formLocation: {
|
|
38
|
-
type: String,
|
|
39
|
-
required: !1,
|
|
40
|
-
default: k.isBeforeFlow
|
|
41
|
-
},
|
|
42
|
-
title: {
|
|
43
|
-
type: String,
|
|
44
|
-
default: "Fietsverzekering vergelijken"
|
|
45
|
-
},
|
|
46
|
-
showTitle: {
|
|
47
|
-
type: Boolean,
|
|
48
|
-
default: !0
|
|
49
|
-
},
|
|
50
|
-
userInformation: {
|
|
51
|
-
required: !1
|
|
52
|
-
},
|
|
53
|
-
insuranceState: {
|
|
54
|
-
required: !1
|
|
55
|
-
},
|
|
56
|
-
classes: {
|
|
57
|
-
type: String
|
|
58
|
-
},
|
|
59
|
-
additionalOptions: {
|
|
60
|
-
required: !1
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
setup(a, { emit: e }) {
|
|
64
|
-
const {
|
|
65
|
-
hasBikeConditionError: t,
|
|
66
|
-
priceValidation: r,
|
|
67
|
-
houseError: o,
|
|
68
|
-
acceptableAges: n,
|
|
69
|
-
EBikes: d,
|
|
70
|
-
checkBikeCondition: l,
|
|
71
|
-
validateBeforeSubmit: u
|
|
72
|
-
} = m(a, e);
|
|
73
|
-
return {
|
|
74
|
-
bikeState: v,
|
|
75
|
-
userState: S,
|
|
76
|
-
bikeKinds: p,
|
|
77
|
-
bikeConditions: b,
|
|
78
|
-
bikeBrands: f,
|
|
79
|
-
errors: _,
|
|
80
|
-
hasBikeConditionError: t,
|
|
81
|
-
priceValidation: r,
|
|
82
|
-
houseError: o,
|
|
83
|
-
acceptableAges: n,
|
|
84
|
-
EBikes: d,
|
|
85
|
-
checkBikeCondition: l,
|
|
86
|
-
validateBeforeSubmit: u
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
var i = function() {
|
|
91
|
-
var e = this, t = e._self._c;
|
|
92
|
-
return e._self._setupProxy, t("simple-card", { staticClass: "vd-form-card vd-new-form", class: { [e.classes]: !!e.classes } }, [t("div", { staticClass: "vd-form-card__header" }, [e.showTitle ? t("p", { staticClass: "vd-form-card__title" }, [e._v(" " + e._s(e.title) + " ")]) : e._e()]), t("div", { staticClass: "vd-form-card__content" }, [t("default-select", { class: { "select-empty-value": !e.bikeState.kind }, attrs: { id: "kind", label: "Soort fiets", name: "kind", placeholder: "Maak een keuze", options: e.bikeKinds, "is-required": "" }, scopedSlots: e._u([{ key: "error-messages", fn: function() {
|
|
93
|
-
return [t("ErrorHandler", { attrs: { name: "kind", "errors-data": [{ rule: "required", text: "Selecteer je fiets" }] } })];
|
|
94
|
-
}, proxy: !0 }]), model: { value: e.bikeState.kind, callback: function(r) {
|
|
95
|
-
e.$set(e.bikeState, "kind", e._n(r));
|
|
96
|
-
}, expression: "bikeState.kind" } }), e.EBikes.includes(e.bikeState.kind) ? t("default-select", { class: { "select-empty-value": !e.bikeState.brand }, attrs: { id: "brand", label: "Merk fiets", name: "brand", placeholder: "Maak een keuze", options: e.bikeBrands, "is-required": "" }, scopedSlots: e._u([{ key: "error-messages", fn: function() {
|
|
97
|
-
return [t("ErrorHandler", { attrs: { name: "brand", "errors-data": [{ rule: "required", text: "Selecteer je merk fiets" }] } })];
|
|
98
|
-
}, proxy: !0 }], null, !1, 515551850), model: { value: e.bikeState.brand, callback: function(r) {
|
|
99
|
-
e.$set(e.bikeState, "brand", r);
|
|
100
|
-
}, expression: "bikeState.brand" } }) : e._e(), t("div", { staticClass: "vd-form-group" }, [t("address-handler", { attrs: { "zipcode-name": "zipcode", "house-number-name": "housenumber", "house-number-addition-name": "housenumberaddition", zipcode: e.userState.zipcode, "house-number": e.userState.houseNumber, "house-number-addition": e.userState.houseNumberAddition }, on: { "update-zipcode": (r) => e.userState.zipcode = r, "update-house-number": (r) => e.userState.houseNumber = r, "update-house-number-addition": (r) => e.userState.houseNumberAddition = r, "update-house-information": (r) => Object.assign(e.userState, r), "address-correct": (r) => e.houseError = !r } })], 1), t("birthdate-input", { attrs: { "ages-range": { min: e.acceptableAges.min, max: e.acceptableAges.max }, label: "Geboortedatum hoofdbestuurder" }, model: { value: e.userState.birthdate, callback: function(r) {
|
|
101
|
-
e.$set(e.userState, "birthdate", r);
|
|
102
|
-
}, expression: "userState.birthdate" } }), t("div", { staticClass: "vd-form-group vd-radio-group" }, [t("label", { staticClass: "vd-form-group__label", attrs: { for: "condition" } }, [e._v(" Gekocht als "), t("span", { staticClass: "text-danger mr-3 mt-2" }, [e._v("*")])]), t("b-form-radio-group", { staticClass: "vd-radio-buttons", attrs: { options: e.bikeConditions, "text-field": "label", name: "condition" }, on: { change: e.checkBikeCondition }, model: { value: e.bikeState.condition, callback: function(r) {
|
|
103
|
-
e.$set(e.bikeState, "condition", r);
|
|
104
|
-
}, expression: "bikeState.condition" } }), t("ErrorHandler", { attrs: { "errors-data": [{ rule: e.hasBikeConditionError, text: "Is je fiets nieuw of tweedehands gekocht?" }] } })], 1), t("default-input", { attrs: { id: "price", mask: "#####", "has-prepend": !0, "prepend-text": "€", name: "price", label: "Aankoopprijs", placeholder: "bv. 1 000", type: "text", "is-required": "", validation: e.priceValidation.rules }, model: { value: e.bikeState.price, callback: function(r) {
|
|
105
|
-
e.$set(e.bikeState, "price", r);
|
|
106
|
-
}, expression: "bikeState.price" } }, [t("template", { slot: "error-messages" }, [t("ErrorHandler", { attrs: { name: "price", "errors-data": [
|
|
107
|
-
{ rule: "required", text: "Vul de aankoopprijs in (afgerond bedrag)" },
|
|
108
|
-
{ rule: "max_value", text: e.priceValidation.text.max_value }
|
|
109
|
-
] } })], 1)], 2)], 1), t("div", { staticClass: "vd-form-card__footer" }, [t("button", { staticClass: "vd-btn vd-btn-green vd-btn-w-100", on: { click: e.validateBeforeSubmit } }, [e._v(" Vergelijken ")])])]);
|
|
110
|
-
}, A = [];
|
|
111
|
-
i._withStripped = !0;
|
|
112
|
-
var s = /* @__PURE__ */ h(
|
|
113
|
-
z,
|
|
114
|
-
i,
|
|
115
|
-
A,
|
|
116
|
-
!1,
|
|
117
|
-
null,
|
|
118
|
-
null,
|
|
119
|
-
null,
|
|
120
|
-
null
|
|
121
|
-
);
|
|
122
|
-
s.options.__file = "/Users/vergelijkdirect/Documents/projects/comparison-forms/src/insurances/bike/components/forms/BikeForm.vue";
|
|
123
|
-
const Q = s.exports;
|
|
124
|
-
export {
|
|
125
|
-
Q as default
|
|
126
|
-
};
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
import { defineComponent as c } from "vue";
|
|
2
|
-
import { u as m, b as p, a as b, c as f } from "./bikeBrands.model-FYepHp3k.js";
|
|
3
|
-
import { F as k, b as v, u as S, e as h, n as _ } from "./index-WjnHra7k.js";
|
|
4
|
-
import { S as g } from "./SimpleCard-_Mg9wAqJ.js";
|
|
5
|
-
import { D as x } from "./DefaultSelect-t64f_R7v.js";
|
|
6
|
-
import { D as C } from "./DefaultInput-zxU1ufPA.js";
|
|
7
|
-
import { Z as B } from "./ZipcodeInput-z5W6JSl0.js";
|
|
8
|
-
import { B as z } from "./BirthdateInput-1tsGzxTx.js";
|
|
9
|
-
import { E as y } from "./ErrorHandler-9Zxi6g3R.js";
|
|
10
|
-
import { A as E } from "./AddressHandler-jwYRDHTI.js";
|
|
11
|
-
import { B as j } from "./form-radio-group-J-EQJhh9.js";
|
|
12
|
-
import "./common-J_DOueuE.js";
|
|
13
|
-
import "@vergelijkdirect/insurance-transmission-client";
|
|
14
|
-
import "./Session.util-aedjr12J.js";
|
|
15
|
-
import "./array.util-agNtEyks.js";
|
|
16
|
-
import "vee-validate";
|
|
17
|
-
import "moment";
|
|
18
|
-
import "./vue-popper.min-O3ciEEKg.js";
|
|
19
|
-
import "./_commonjsHelpers-4t9S7M5p.js";
|
|
20
|
-
const q = c({
|
|
21
|
-
name: "BikeFormHorizontal",
|
|
22
|
-
components: {
|
|
23
|
-
SimpleCard: g,
|
|
24
|
-
DefaultSelect: x,
|
|
25
|
-
DefaultInput: C,
|
|
26
|
-
ZipcodeInput: B,
|
|
27
|
-
BirthdateInput: z,
|
|
28
|
-
ErrorHandler: y,
|
|
29
|
-
AddressHandler: E,
|
|
30
|
-
BFormRadioGroup: j
|
|
31
|
-
},
|
|
32
|
-
props: {
|
|
33
|
-
link: {
|
|
34
|
-
type: String,
|
|
35
|
-
required: !0
|
|
36
|
-
},
|
|
37
|
-
formLocation: {
|
|
38
|
-
type: String,
|
|
39
|
-
required: !1,
|
|
40
|
-
default: k.isBeforeFlow
|
|
41
|
-
},
|
|
42
|
-
title: {
|
|
43
|
-
type: String,
|
|
44
|
-
default: "Fietsverzekering vergelijken"
|
|
45
|
-
},
|
|
46
|
-
showTitle: {
|
|
47
|
-
type: Boolean,
|
|
48
|
-
default: !0
|
|
49
|
-
},
|
|
50
|
-
userInformation: {
|
|
51
|
-
required: !1
|
|
52
|
-
},
|
|
53
|
-
insuranceState: {
|
|
54
|
-
required: !1
|
|
55
|
-
},
|
|
56
|
-
classes: {
|
|
57
|
-
type: String
|
|
58
|
-
},
|
|
59
|
-
additionalOptions: {
|
|
60
|
-
required: !1
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
setup(a, { emit: e }) {
|
|
64
|
-
const {
|
|
65
|
-
hasBikeConditionError: t,
|
|
66
|
-
priceValidation: r,
|
|
67
|
-
houseError: s,
|
|
68
|
-
acceptableAges: n,
|
|
69
|
-
EBikes: d,
|
|
70
|
-
checkBikeCondition: l,
|
|
71
|
-
validateBeforeSubmit: u
|
|
72
|
-
} = m(a, e);
|
|
73
|
-
return {
|
|
74
|
-
bikeState: v,
|
|
75
|
-
userState: S,
|
|
76
|
-
bikeKinds: p,
|
|
77
|
-
bikeConditions: b,
|
|
78
|
-
bikeBrands: f,
|
|
79
|
-
errors: h,
|
|
80
|
-
hasBikeConditionError: t,
|
|
81
|
-
priceValidation: r,
|
|
82
|
-
houseError: s,
|
|
83
|
-
acceptableAges: n,
|
|
84
|
-
EBikes: d,
|
|
85
|
-
checkBikeCondition: l,
|
|
86
|
-
validateBeforeSubmit: u
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
var o = function() {
|
|
91
|
-
var e = this, t = e._self._c;
|
|
92
|
-
return e._self._setupProxy, t("simple-card", { staticClass: "vd-new-form vd-form-card vd-form-card--horizontal", class: { [e.classes]: !!e.classes } }, [e.showTitle ? t("p", { staticClass: "vd-form-card__title" }, [e._v(" " + e._s(e.title) + " ")]) : e._e(), t("div", { staticClass: "vd-form-card__content" }, [t("default-select", { attrs: { id: "kind", label: "Soort fiets", name: "kind", placeholder: "Selecteer je fiets", options: e.bikeKinds, "is-required": "" }, scopedSlots: e._u([{ key: "error-messages", fn: function() {
|
|
93
|
-
return [t("ErrorHandler", { attrs: { name: "kind", "errors-data": [{ rule: "required", text: "Selecteer je fiets" }] } })];
|
|
94
|
-
}, proxy: !0 }]), model: { value: e.bikeState.kind, callback: function(r) {
|
|
95
|
-
e.$set(e.bikeState, "kind", e._n(r));
|
|
96
|
-
}, expression: "bikeState.kind" } }), e.EBikes.includes(e.bikeState.kind) ? t("default-select", { class: { "select-empty-value": !e.bikeState.brand }, attrs: { id: "brand", label: "Merk fiets", name: "brand", placeholder: "Maak een keuze", options: e.bikeBrands, "is-required": "" }, scopedSlots: e._u([{ key: "error-messages", fn: function() {
|
|
97
|
-
return [t("ErrorHandler", { attrs: { name: "brand", "errors-data": [{ rule: "required", text: "Selecteer je merk fiets" }] } })];
|
|
98
|
-
}, proxy: !0 }], null, !1, 515551850), model: { value: e.bikeState.brand, callback: function(r) {
|
|
99
|
-
e.$set(e.bikeState, "brand", r);
|
|
100
|
-
}, expression: "bikeState.brand" } }) : e._e(), t("div", { staticClass: "vd-form-group vd-form-group--address-handler-block" }, [t("address-handler", { staticClass: "address-handler-horizontal-block", attrs: { "zipcode-name": "zipcode", "show-street-and-city": !0, "house-number-name": "housenumber", template: "FORM_HORIZONTAL", "house-number-addition-name": "housenumberaddition", zipcode: e.userState.zipcode, "house-number": e.userState.houseNumber, "house-number-addition": e.userState.houseNumberAddition }, on: { "update-zipcode": (r) => e.userState.zipcode = r, "update-house-number": (r) => e.userState.houseNumber = r, "update-house-number-addition": (r) => e.userState.houseNumberAddition = r, "update-house-information": (r) => Object.assign(e.userState, r), "address-correct": (r) => e.houseError = !r } })], 1), t("birthdate-input", { attrs: { "ages-range": { min: e.acceptableAges.min, max: e.acceptableAges.max }, label: "Geboortedatum hoofdbestuurder" }, model: { value: e.userState.birthdate, callback: function(r) {
|
|
101
|
-
e.$set(e.userState, "birthdate", r);
|
|
102
|
-
}, expression: "userState.birthdate" } }), t("div", { staticClass: "vd-form-group vd-radio-group" }, [t("label", { staticClass: "vd-form-group__label", attrs: { for: "condition" } }, [e._v(" Gekocht als "), t("span", { staticClass: "text-danger mr-3 mt-2" }, [e._v("*")])]), t("b-form-radio-group", { staticClass: "vd-radio-buttons mt-md-3 mt-xl-0", attrs: { options: e.bikeConditions, "text-field": "label", name: "condition" }, on: { change: e.checkBikeCondition }, model: { value: e.bikeState.condition, callback: function(r) {
|
|
103
|
-
e.$set(e.bikeState, "condition", r);
|
|
104
|
-
}, expression: "bikeState.condition" } }), t("ErrorHandler", { attrs: { "errors-data": [{ rule: e.hasBikeConditionError, text: "Is je fiets nieuw of tweedehands gekocht?" }] } })], 1), t("default-input", { attrs: { id: "price", mask: "#####", "has-prepend": !0, "prepend-text": "€", name: "price", label: "Aankoopprijs", placeholder: "bv. 1 000", type: "text", "is-required": "", validation: e.priceValidation.rules }, model: { value: e.bikeState.price, callback: function(r) {
|
|
105
|
-
e.$set(e.bikeState, "price", r);
|
|
106
|
-
}, expression: "bikeState.price" } }, [t("template", { slot: "error-messages" }, [t("ErrorHandler", { attrs: { name: "price", "errors-data": [
|
|
107
|
-
{ rule: "required", text: "Vul de aankoopprijs in (afgerond bedrag)" },
|
|
108
|
-
{ rule: "max_value", text: e.priceValidation.text.max_value }
|
|
109
|
-
] } })], 1)], 2), t("div", { staticClass: "vd-form-group vd-form-group__button" }, [t("button", { staticClass: "vd-btn vd-btn-green vd-btn-w-100", on: { click: e.validateBeforeSubmit } }, [e._v(" Vergelijken ")])])], 1)]);
|
|
110
|
-
}, A = [];
|
|
111
|
-
o._withStripped = !0;
|
|
112
|
-
var i = /* @__PURE__ */ _(
|
|
113
|
-
q,
|
|
114
|
-
o,
|
|
115
|
-
A,
|
|
116
|
-
!1,
|
|
117
|
-
null,
|
|
118
|
-
null,
|
|
119
|
-
null,
|
|
120
|
-
null
|
|
121
|
-
);
|
|
122
|
-
i.options.__file = "/Users/vergelijkdirect/Documents/projects/comparison-forms/src/insurances/bike/components/forms/BikeFormHorizontal.vue";
|
|
123
|
-
const Q = i.exports;
|
|
124
|
-
export {
|
|
125
|
-
Q as default
|
|
126
|
-
};
|