@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,131 @@
|
|
|
1
|
+
import { defineComponent as s, computed as o } from "vue";
|
|
2
|
+
import { e as _, u as a, n as i } from "./index-WjnHra7k.js";
|
|
3
|
+
import { D as u } from "./DefaultInput-zxU1ufPA.js";
|
|
4
|
+
import { E as l } from "./ErrorHandler-9Zxi6g3R.js";
|
|
5
|
+
const f = s({
|
|
6
|
+
name: "EmailInput",
|
|
7
|
+
components: {
|
|
8
|
+
DefaultInput: u,
|
|
9
|
+
ErrorHandler: l
|
|
10
|
+
},
|
|
11
|
+
props: {
|
|
12
|
+
id: {
|
|
13
|
+
type: String,
|
|
14
|
+
required: !0
|
|
15
|
+
},
|
|
16
|
+
name: {
|
|
17
|
+
type: String,
|
|
18
|
+
required: !0
|
|
19
|
+
},
|
|
20
|
+
isRequired: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
required: !1,
|
|
23
|
+
default: !1
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
setup(n, { attrs: e, listeners: r }) {
|
|
27
|
+
const t = o(() => [
|
|
28
|
+
{
|
|
29
|
+
rule: "required",
|
|
30
|
+
text: "E-mailadres is verplicht"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
rule: "email",
|
|
34
|
+
text: "E-mailadres is incorrect"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
rule: "emailServerValidation",
|
|
38
|
+
text: "E-mailadres is incorrect"
|
|
39
|
+
}
|
|
40
|
+
]);
|
|
41
|
+
return {
|
|
42
|
+
errors: _,
|
|
43
|
+
userState: a,
|
|
44
|
+
attrs: e,
|
|
45
|
+
listeners: r,
|
|
46
|
+
errorsData: t
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
var m = function() {
|
|
51
|
+
var e = this, r = e._self._c;
|
|
52
|
+
return e._self._setupProxy, r("default-input", { attrs: { id: e.id, validation: { required: e.isRequired, email: !0, emailServerValidation: !0 }, type: "text", label: "E-mailadres", name: e.name, placeholder: "voorbeeld@gmail.com", "is-required": e.isRequired }, scopedSlots: e._u([{ key: "error-messages", fn: function() {
|
|
53
|
+
return [r("ErrorHandler", { attrs: { name: "emailInput", "errors-data": e.errorsData } })];
|
|
54
|
+
}, proxy: !0 }]), model: { value: e.userState.email, callback: function(t) {
|
|
55
|
+
e.$set(e.userState, "email", t);
|
|
56
|
+
}, expression: "userState.email" } });
|
|
57
|
+
}, v = [];
|
|
58
|
+
m._withStripped = !0;
|
|
59
|
+
var p = /* @__PURE__ */ i(
|
|
60
|
+
f,
|
|
61
|
+
m,
|
|
62
|
+
v,
|
|
63
|
+
!1,
|
|
64
|
+
null,
|
|
65
|
+
null,
|
|
66
|
+
null,
|
|
67
|
+
null
|
|
68
|
+
);
|
|
69
|
+
p.options.__file = "/Users/vergelijkdirect/Documents/projects/comparison-forms/src/components/common/inputs/EmailInput.vue";
|
|
70
|
+
const E = p.exports, x = s({
|
|
71
|
+
name: "PhoneInput",
|
|
72
|
+
components: {
|
|
73
|
+
DefaultInput: u,
|
|
74
|
+
ErrorHandler: l
|
|
75
|
+
},
|
|
76
|
+
props: {
|
|
77
|
+
id: {
|
|
78
|
+
type: String,
|
|
79
|
+
required: !0
|
|
80
|
+
},
|
|
81
|
+
name: {
|
|
82
|
+
type: String,
|
|
83
|
+
required: !0
|
|
84
|
+
},
|
|
85
|
+
isRequired: {
|
|
86
|
+
type: Boolean,
|
|
87
|
+
required: !1,
|
|
88
|
+
default: !1
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
setup() {
|
|
92
|
+
return {
|
|
93
|
+
errorsData: o(() => [
|
|
94
|
+
{
|
|
95
|
+
rule: "required",
|
|
96
|
+
text: "Mobiel nummer is verplicht"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
rule: "regex",
|
|
100
|
+
text: "Mobiel nummer is incorrect"
|
|
101
|
+
}
|
|
102
|
+
]),
|
|
103
|
+
userState: a
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
var c = function() {
|
|
108
|
+
var e = this, r = e._self._c;
|
|
109
|
+
return e._self._setupProxy, r("default-input", { attrs: { id: "phonenumber", mask: "##########", validation: { required: !0, regex: /^((06){1}[1-9]{1}[0-9]{7})$/ }, type: "text", label: "Telefoonnummer", name: "phonenumber", placeholder: "0612345678", "is-required": e.isRequired }, scopedSlots: e._u([{ key: "error-messages", fn: function() {
|
|
110
|
+
return [r("ErrorHandler", { attrs: { name: "phonenumber", "errors-data": e.errorsData } })];
|
|
111
|
+
}, proxy: !0 }]), model: { value: e.userState.phoneNumber, callback: function(t) {
|
|
112
|
+
e.$set(e.userState, "phoneNumber", t);
|
|
113
|
+
}, expression: "userState.phoneNumber" } });
|
|
114
|
+
}, h = [];
|
|
115
|
+
c._withStripped = !0;
|
|
116
|
+
var d = /* @__PURE__ */ i(
|
|
117
|
+
x,
|
|
118
|
+
c,
|
|
119
|
+
h,
|
|
120
|
+
!1,
|
|
121
|
+
null,
|
|
122
|
+
null,
|
|
123
|
+
null,
|
|
124
|
+
null
|
|
125
|
+
);
|
|
126
|
+
d.options.__file = "/Users/vergelijkdirect/Documents/projects/comparison-forms/src/components/common/inputs/PhoneInput.vue";
|
|
127
|
+
const g = d.exports;
|
|
128
|
+
export {
|
|
129
|
+
E,
|
|
130
|
+
g as P
|
|
131
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { defineComponent as i } from "vue";
|
|
2
|
+
import { S as o } from "./SimpleCard-_Mg9wAqJ.js";
|
|
3
|
+
import { n } from "./index-WjnHra7k.js";
|
|
4
|
+
import "@vergelijkdirect/insurance-transmission-client";
|
|
5
|
+
import "vee-validate";
|
|
6
|
+
import "moment";
|
|
7
|
+
const a = i({
|
|
8
|
+
name: "QuestionnaireForm",
|
|
9
|
+
components: {
|
|
10
|
+
SimpleCard: o
|
|
11
|
+
},
|
|
12
|
+
props: {
|
|
13
|
+
link: {
|
|
14
|
+
type: String,
|
|
15
|
+
required: !1
|
|
16
|
+
},
|
|
17
|
+
classes: {
|
|
18
|
+
required: !1,
|
|
19
|
+
type: String,
|
|
20
|
+
default: ""
|
|
21
|
+
},
|
|
22
|
+
title: {
|
|
23
|
+
type: String,
|
|
24
|
+
required: !1
|
|
25
|
+
},
|
|
26
|
+
description: {
|
|
27
|
+
type: String,
|
|
28
|
+
required: !1
|
|
29
|
+
},
|
|
30
|
+
buttonText: {
|
|
31
|
+
type: String,
|
|
32
|
+
required: !1
|
|
33
|
+
},
|
|
34
|
+
showTitle: {
|
|
35
|
+
required: !1,
|
|
36
|
+
type: Boolean,
|
|
37
|
+
default: !0
|
|
38
|
+
},
|
|
39
|
+
additionalOptions: {
|
|
40
|
+
required: !1,
|
|
41
|
+
type: Object
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
var r = function() {
|
|
46
|
+
var e = this, t = e._self._c;
|
|
47
|
+
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("p", { staticClass: "vd-form-card__description pb-0" }, [e._v(" " + e._s(e.description) + " ")])]), t("div", { staticClass: "vd-form-card__footer" }, [t("a", { staticClass: "vd-btn vd-btn-green vd-btn-w-100", attrs: { href: e.link + "?qaId=" + e.additionalOptions.qaId } }, [e._v(" " + e._s(e.buttonText) + " ")])])]);
|
|
48
|
+
}, l = [];
|
|
49
|
+
r._withStripped = !0;
|
|
50
|
+
var s = /* @__PURE__ */ n(
|
|
51
|
+
a,
|
|
52
|
+
r,
|
|
53
|
+
l,
|
|
54
|
+
!1,
|
|
55
|
+
null,
|
|
56
|
+
null,
|
|
57
|
+
null,
|
|
58
|
+
null
|
|
59
|
+
);
|
|
60
|
+
s.options.__file = "/Users/vergelijkdirect/Documents/projects/comparison-forms/src/components/common/QuestionnaireForm.vue";
|
|
61
|
+
const v = s.exports;
|
|
62
|
+
export {
|
|
63
|
+
v as default
|
|
64
|
+
};
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
var p = (o, e, t) => new Promise((s, a) => {
|
|
2
|
+
var n = (r) => {
|
|
3
|
+
try {
|
|
4
|
+
i(t.next(r));
|
|
5
|
+
} catch (d) {
|
|
6
|
+
a(d);
|
|
7
|
+
}
|
|
8
|
+
}, l = (r) => {
|
|
9
|
+
try {
|
|
10
|
+
i(t.throw(r));
|
|
11
|
+
} catch (d) {
|
|
12
|
+
a(d);
|
|
13
|
+
}
|
|
14
|
+
}, i = (r) => r.done ? s(r.value) : Promise.resolve(r.value).then(n, l);
|
|
15
|
+
i((t = t.apply(o, e)).next());
|
|
16
|
+
});
|
|
17
|
+
import { ref as y, computed as v, onMounted as g, defineComponent as b } from "vue";
|
|
18
|
+
import { i as m, t as q, u, v as w, h as x, n as D } from "./index-WjnHra7k.js";
|
|
19
|
+
import { S as k } from "./SimpleCard-_Mg9wAqJ.js";
|
|
20
|
+
import { E as I, P as E } from "./PhoneInput-l6YwvwSj.js";
|
|
21
|
+
import { D as A } from "./DefaultInput-zxU1ufPA.js";
|
|
22
|
+
import { E as N } from "./ErrorHandler-9Zxi6g3R.js";
|
|
23
|
+
import { u as F } from "./common-J_DOueuE.js";
|
|
24
|
+
import "@vergelijkdirect/insurance-transmission-client";
|
|
25
|
+
import "vee-validate";
|
|
26
|
+
import "moment";
|
|
27
|
+
import "./Session.util-aedjr12J.js";
|
|
28
|
+
let f = y(!1), _ = y("idle");
|
|
29
|
+
const Q = "254", T = (o, e) => {
|
|
30
|
+
const {
|
|
31
|
+
setQuotationData: t,
|
|
32
|
+
submitAndSendQuotationData: s
|
|
33
|
+
} = F(e), a = v(() => [{
|
|
34
|
+
rule: "required",
|
|
35
|
+
text: "Voornaam is verplicht"
|
|
36
|
+
}]), n = v(() => [
|
|
37
|
+
{
|
|
38
|
+
rule: "required",
|
|
39
|
+
text: "Om door te gaan moet je akkoord gaan met de voorwaarden"
|
|
40
|
+
}
|
|
41
|
+
]), l = (c) => {
|
|
42
|
+
_.value = c;
|
|
43
|
+
}, i = () => {
|
|
44
|
+
t({
|
|
45
|
+
refId: "",
|
|
46
|
+
description: "",
|
|
47
|
+
headerTitle: "",
|
|
48
|
+
notes: []
|
|
49
|
+
});
|
|
50
|
+
}, r = () => {
|
|
51
|
+
u.email = "", u.firstName = "", u.phoneNumber = "";
|
|
52
|
+
}, d = () => p(void 0, null, function* () {
|
|
53
|
+
return (yield w([
|
|
54
|
+
"name",
|
|
55
|
+
"phonenumber",
|
|
56
|
+
"emailInput",
|
|
57
|
+
"policyConfirm"
|
|
58
|
+
])) && f.value === !0;
|
|
59
|
+
}), S = () => p(void 0, null, function* () {
|
|
60
|
+
try {
|
|
61
|
+
if (yield d()) {
|
|
62
|
+
m.value = !0;
|
|
63
|
+
const c = yield s();
|
|
64
|
+
l(c ? "success" : "failed"), i(), r(), f.value = null, yield q(), m.value = !1;
|
|
65
|
+
}
|
|
66
|
+
} catch (c) {
|
|
67
|
+
l("failed"), console.error(c);
|
|
68
|
+
} finally {
|
|
69
|
+
m.value = !1;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
return g(() => {
|
|
73
|
+
t({
|
|
74
|
+
refId: o.additionalOptions.refId || Q,
|
|
75
|
+
description: o.additionalOptions.description || "",
|
|
76
|
+
headerTitle: o.additionalOptions.headerTitle || "",
|
|
77
|
+
notes: o.additionalOptions.notes || []
|
|
78
|
+
});
|
|
79
|
+
}), {
|
|
80
|
+
requestStatus: _,
|
|
81
|
+
policyConfirm: f,
|
|
82
|
+
nameInputErrorsData: a,
|
|
83
|
+
policyConfirmErrorsData: n,
|
|
84
|
+
validateBeforeSubmit: S
|
|
85
|
+
};
|
|
86
|
+
}, j = b({
|
|
87
|
+
name: "QuotationForm",
|
|
88
|
+
methods: {
|
|
89
|
+
hasNewDesign() {
|
|
90
|
+
return x;
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
components: {
|
|
94
|
+
SimpleCard: k,
|
|
95
|
+
DefaultInput: A,
|
|
96
|
+
EmailInput: I,
|
|
97
|
+
PhoneInput: E,
|
|
98
|
+
ErrorHandler: N
|
|
99
|
+
},
|
|
100
|
+
props: {
|
|
101
|
+
link: {
|
|
102
|
+
type: String,
|
|
103
|
+
required: !1
|
|
104
|
+
},
|
|
105
|
+
classes: {
|
|
106
|
+
required: !1,
|
|
107
|
+
type: String,
|
|
108
|
+
default: ""
|
|
109
|
+
},
|
|
110
|
+
title: {
|
|
111
|
+
type: String,
|
|
112
|
+
required: !1
|
|
113
|
+
},
|
|
114
|
+
description: {
|
|
115
|
+
type: String,
|
|
116
|
+
required: !1
|
|
117
|
+
},
|
|
118
|
+
buttonText: {
|
|
119
|
+
type: String,
|
|
120
|
+
required: !1,
|
|
121
|
+
default: "Solliciteren nu!"
|
|
122
|
+
},
|
|
123
|
+
showTitle: {
|
|
124
|
+
required: !1,
|
|
125
|
+
type: Boolean,
|
|
126
|
+
default: !0
|
|
127
|
+
},
|
|
128
|
+
additionalOptions: {
|
|
129
|
+
required: !1
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
setup(o, { emit: e }) {
|
|
133
|
+
const {
|
|
134
|
+
validateBeforeSubmit: t,
|
|
135
|
+
setEmailValidness: s,
|
|
136
|
+
nameInputErrorsData: a,
|
|
137
|
+
policyConfirmErrorsData: n,
|
|
138
|
+
requestStatus: l,
|
|
139
|
+
policyConfirm: i
|
|
140
|
+
} = T(o, e);
|
|
141
|
+
return {
|
|
142
|
+
userState: u,
|
|
143
|
+
isRequestIsHandling: m,
|
|
144
|
+
policyConfirm: i,
|
|
145
|
+
requestStatus: l,
|
|
146
|
+
nameInputErrorsData: a,
|
|
147
|
+
policyConfirmErrorsData: n,
|
|
148
|
+
setEmailValidness: s,
|
|
149
|
+
validateBeforeSubmit: t
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
var C = function() {
|
|
154
|
+
var e = this, t = e._self._c;
|
|
155
|
+
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 && e.title ? t("p", { staticClass: "vd-form-card__title" }, [e._v(e._s(e.title))]) : e._e(), e.description ? t("p", { staticClass: "vd-form-card__description pb-0" }, [e._v(" " + e._s(e.description) + " ")]) : e._e()]), t("div", { staticClass: "vd-form-card__content" }, [t("div", { staticClass: "vd-form-group" }, [t("default-input", { attrs: { id: "name", label: "Voornaam", name: "name", type: "text", placeholder: "Jouw naam", "is-required": !0 }, scopedSlots: e._u([{ key: "error-messages", fn: function() {
|
|
156
|
+
return [t("ErrorHandler", { attrs: { "errors-data": e.nameInputErrorsData, name: "name" } })];
|
|
157
|
+
}, proxy: !0 }]), model: { value: e.userState.firstName, callback: function(s) {
|
|
158
|
+
e.$set(e.userState, "firstName", s);
|
|
159
|
+
}, expression: "userState.firstName" } })], 1), t("div", { staticClass: "vd-form-group" }, [t("phone-input", { attrs: { id: "phonenumber", name: "phonenumber", "is-required": !0 } })], 1), t("div", { staticClass: "vd-form-group" }, [t("email-input", { attrs: { id: "emailInput", name: "emailInput", "is-required": !0 } })], 1), t("div", { staticClass: "vd-form-group" }, [t("label", { staticClass: "vd-new-form-policy-confirm", attrs: { for: "policyConfirm" } }, [t("input", { directives: [{ name: "validate", rawName: "v-validate", value: "required", expression: "'required'" }, { name: "model", rawName: "v-model", value: e.policyConfirm, expression: "policyConfirm" }], staticClass: "vd-checkbox", attrs: { id: "policyConfirm", type: "checkbox", name: "policyConfirm" }, domProps: { checked: Array.isArray(e.policyConfirm) ? e._i(e.policyConfirm, null) > -1 : e.policyConfirm }, on: { change: function(s) {
|
|
160
|
+
var a = e.policyConfirm, n = s.target, l = !!n.checked;
|
|
161
|
+
if (Array.isArray(a)) {
|
|
162
|
+
var i = null, r = e._i(a, i);
|
|
163
|
+
n.checked ? r < 0 && (e.policyConfirm = a.concat([i])) : r > -1 && (e.policyConfirm = a.slice(0, r).concat(a.slice(r + 1)));
|
|
164
|
+
} else
|
|
165
|
+
e.policyConfirm = l;
|
|
166
|
+
} } }), t("span", { staticClass: "vd-new-form-policy-confirm__text" }, [t("a", { attrs: { href: "https://vergelijkdirect.com/", target: "_blank" } }, [e._v("Vergelijkdirect.com")]), e._v(" mag mij telefonisch, via WhatsApp en per e-mail benaderen om een sollicitatieprocedure te starten."), t("span", { staticClass: "text-danger ml-1 mt-2" }, [e._v("*")])])]), t("ErrorHandler", { attrs: { "errors-data": e.policyConfirmErrorsData, name: "policyConfirm" } })], 1)]), t("div", { staticClass: "vd-form-card__footer" }, [t("button", { staticClass: "vd-btn vd-btn-green vd-btn-w-100", attrs: { disabled: e.isRequestIsHandling }, on: { click: e.validateBeforeSubmit } }, [e._v(" " + e._s(e.buttonText) + " ")])])]);
|
|
167
|
+
}, H = [];
|
|
168
|
+
C._withStripped = !0;
|
|
169
|
+
var h = /* @__PURE__ */ D(
|
|
170
|
+
j,
|
|
171
|
+
C,
|
|
172
|
+
H,
|
|
173
|
+
!1,
|
|
174
|
+
null,
|
|
175
|
+
null,
|
|
176
|
+
null,
|
|
177
|
+
null
|
|
178
|
+
);
|
|
179
|
+
h.options.__file = "/Users/vergelijkdirect/Documents/projects/comparison-forms/src/components/common/QuotationForm.vue";
|
|
180
|
+
const L = h.exports;
|
|
181
|
+
export {
|
|
182
|
+
L as default
|
|
183
|
+
};
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
var I = Object.defineProperty;
|
|
2
|
+
var f = Object.getOwnPropertySymbols;
|
|
3
|
+
var h = Object.prototype.hasOwnProperty, D = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var v = (a, e, t) => e in a ? I(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t, _ = (a, e) => {
|
|
5
|
+
for (var t in e || (e = {}))
|
|
6
|
+
h.call(e, t) && v(a, t, e[t]);
|
|
7
|
+
if (f)
|
|
8
|
+
for (var t of f(e))
|
|
9
|
+
D.call(e, t) && v(a, t, e[t]);
|
|
10
|
+
return a;
|
|
11
|
+
};
|
|
12
|
+
var y = (a, e, t) => new Promise((i, r) => {
|
|
13
|
+
var l = (s) => {
|
|
14
|
+
try {
|
|
15
|
+
n(t.next(s));
|
|
16
|
+
} catch (m) {
|
|
17
|
+
r(m);
|
|
18
|
+
}
|
|
19
|
+
}, c = (s) => {
|
|
20
|
+
try {
|
|
21
|
+
n(t.throw(s));
|
|
22
|
+
} catch (m) {
|
|
23
|
+
r(m);
|
|
24
|
+
}
|
|
25
|
+
}, n = (s) => s.done ? i(s.value) : Promise.resolve(s.value).then(l, c);
|
|
26
|
+
n((t = t.apply(a, e)).next());
|
|
27
|
+
});
|
|
28
|
+
import { ref as b, onMounted as q, defineComponent as R } from "vue";
|
|
29
|
+
import { C as j, w as u, x as w, i as p, a as d, n as x } from "./index-WjnHra7k.js";
|
|
30
|
+
import { u as O, a as F } from "./common-J_DOueuE.js";
|
|
31
|
+
import { S as L } from "./SimpleCard-_Mg9wAqJ.js";
|
|
32
|
+
import { C as U, L as M } from "./Loader-_esX79Uz.js";
|
|
33
|
+
import "@vergelijkdirect/insurance-transmission-client";
|
|
34
|
+
import "vee-validate";
|
|
35
|
+
import "moment";
|
|
36
|
+
import "./Session.util-aedjr12J.js";
|
|
37
|
+
import "./ErrorHandler-9Zxi6g3R.js";
|
|
38
|
+
const A = (a, e) => {
|
|
39
|
+
const {
|
|
40
|
+
submitFormAndRedirect: t
|
|
41
|
+
} = O(e), i = (o) => w(o) ? o : o + "/", r = b(!1);
|
|
42
|
+
let l = b(!1), c = a.additionalOptions.qaUrl || i(j.getQAUrl()), n = a.additionalOptions.qaId || u.qaId, s = a.additionalOptions.currentItemId || u.currentItemId, m = a.additionalOptions.nextItemId || u.nextItemId;
|
|
43
|
+
const C = () => y(void 0, null, function* () {
|
|
44
|
+
try {
|
|
45
|
+
if (p.value = !0, r.value = !Object.keys(d.companyData).length || !d.companyData.naam, !r.value) {
|
|
46
|
+
const g = {
|
|
47
|
+
leadid: (yield F.post(c + "api/v1/active-questionnaire/" + n + "/start", {
|
|
48
|
+
data: {
|
|
49
|
+
kvk_group: {
|
|
50
|
+
kvk_number: {
|
|
51
|
+
value: d.companyData.kvkNummer,
|
|
52
|
+
data: d.companyData
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
current_item_id: s,
|
|
57
|
+
next_item_id: m
|
|
58
|
+
})).data.leadId,
|
|
59
|
+
qaId: n
|
|
60
|
+
};
|
|
61
|
+
t(a.link, g);
|
|
62
|
+
}
|
|
63
|
+
} catch (o) {
|
|
64
|
+
console.error(o);
|
|
65
|
+
} finally {
|
|
66
|
+
p.value = !1;
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
return q(() => {
|
|
70
|
+
l.value = !0;
|
|
71
|
+
}), {
|
|
72
|
+
hasCompaniesListValidationError: r,
|
|
73
|
+
isMultiselectReady: l,
|
|
74
|
+
validateBeforeSubmit: C
|
|
75
|
+
};
|
|
76
|
+
}, B = R({
|
|
77
|
+
name: "RiskScannerForm",
|
|
78
|
+
components: {
|
|
79
|
+
SimpleCard: L,
|
|
80
|
+
CompaniesListSelect: U,
|
|
81
|
+
Loader: M
|
|
82
|
+
},
|
|
83
|
+
props: {
|
|
84
|
+
link: {
|
|
85
|
+
type: String,
|
|
86
|
+
required: !1
|
|
87
|
+
},
|
|
88
|
+
classes: {
|
|
89
|
+
required: !1,
|
|
90
|
+
type: String,
|
|
91
|
+
default: ""
|
|
92
|
+
},
|
|
93
|
+
title: {
|
|
94
|
+
type: String,
|
|
95
|
+
required: !1,
|
|
96
|
+
default: "Check de risico’s voor jouw bedrijf + ontvang gratis offerte!"
|
|
97
|
+
},
|
|
98
|
+
showTitle: {
|
|
99
|
+
required: !1,
|
|
100
|
+
type: Boolean,
|
|
101
|
+
default: !0
|
|
102
|
+
},
|
|
103
|
+
description: {
|
|
104
|
+
required: !1,
|
|
105
|
+
type: String,
|
|
106
|
+
default: "Doe onze risicoscan en ontdek de beste verzekering voor jouw specifieke bedrijf. Om te starten hebben we je bedrijfsnaam of KVK-nummer nodig!"
|
|
107
|
+
},
|
|
108
|
+
additionalOptions: {
|
|
109
|
+
required: !1,
|
|
110
|
+
type: Object
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
setup(a, { emit: e }) {
|
|
114
|
+
const {
|
|
115
|
+
hasCompaniesListValidationError: t,
|
|
116
|
+
isMultiselectReady: i,
|
|
117
|
+
validateBeforeSubmit: r
|
|
118
|
+
} = A(a, e);
|
|
119
|
+
return {
|
|
120
|
+
businessState: d,
|
|
121
|
+
isRequestIsHandling: p,
|
|
122
|
+
hasCompaniesListValidationError: t,
|
|
123
|
+
isMultiselectReady: i,
|
|
124
|
+
updateCompanyData: (c) => {
|
|
125
|
+
d.companyData = _({}, c);
|
|
126
|
+
},
|
|
127
|
+
validateBeforeSubmit: r
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
var S = function() {
|
|
132
|
+
var e = this, t = e._self._c;
|
|
133
|
+
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("p", { staticClass: "vd-form-card__description" }, [e._v(" " + e._s(e.description) + " ")])]), t("div", { staticClass: "vd-form-card__content" }, [t("div", { staticClass: "vd-form-group vd-form-group_risk-scanner" }, [e.isMultiselectReady ? t("companies-list-select", { attrs: { "has-companies-list-validation-error": e.hasCompaniesListValidationError }, on: { "update-company-data": e.updateCompanyData }, model: { value: e.businessState.companyData, callback: function(i) {
|
|
134
|
+
e.$set(e.businessState, "companyData", i);
|
|
135
|
+
}, expression: "businessState.companyData" } }) : t("loader")], 1)]), t("div", { staticClass: "vd-form-card__footer" }, [t("button", { staticClass: "vd-btn vd-btn-green vd-btn-w-100", attrs: { disabled: e.isRequestIsHandling }, on: { click: e.validateBeforeSubmit } }, [e._v(" Start de gratis scan ")])])]);
|
|
136
|
+
}, V = [];
|
|
137
|
+
S._withStripped = !0;
|
|
138
|
+
var k = /* @__PURE__ */ x(
|
|
139
|
+
B,
|
|
140
|
+
S,
|
|
141
|
+
V,
|
|
142
|
+
!1,
|
|
143
|
+
null,
|
|
144
|
+
null,
|
|
145
|
+
null,
|
|
146
|
+
null
|
|
147
|
+
);
|
|
148
|
+
k.options.__file = "/Users/vergelijkdirect/Documents/projects/comparison-forms/src/insurances/business/riskScanner/components/RiskScannerForm.vue";
|
|
149
|
+
const W = k.exports;
|
|
150
|
+
export {
|
|
151
|
+
W as default
|
|
152
|
+
};
|