@vergelijkdirect/comparison-forms 1.0.206 → 1.0.208
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.
|
@@ -17910,6 +17910,8 @@ const $N = (t = null) => {
|
|
|
17910
17910
|
email: "",
|
|
17911
17911
|
kidsAmount: 0,
|
|
17912
17912
|
familyComposition: "",
|
|
17913
|
+
firstName: "",
|
|
17914
|
+
phoneNumber: "",
|
|
17913
17915
|
partner: {
|
|
17914
17916
|
birthdate: "",
|
|
17915
17917
|
gender: "",
|
|
@@ -27153,34 +27155,34 @@ var Dw = /* @__PURE__ */ I(
|
|
|
27153
27155
|
);
|
|
27154
27156
|
Dw.options.__file = "/Users/mac/Work/comparison-forms/src/insurances/house/components/forms/HouseFormHorizontal.vue";
|
|
27155
27157
|
const JL = Dw.exports, QL = (t, e) => {
|
|
27156
|
-
const r = O(
|
|
27158
|
+
const r = O(!1), n = O([]), a = [
|
|
27157
27159
|
{ rule: "required", text: "Vul je mobiele telefoonnummer in" },
|
|
27158
27160
|
{ rule: "regex", text: "Je mobiele telefoonnummer is incorrect" }
|
|
27159
|
-
],
|
|
27160
|
-
function
|
|
27161
|
+
], i = O([]), o = O(""), u = "https://mijn.vergelijkdirect.com/docs/VOORWAARDEN-MV.pdf", c = "https://vergelijkdirect.com/";
|
|
27162
|
+
function l() {
|
|
27161
27163
|
e("emit-event-hub", {
|
|
27162
27164
|
event: "open-quotation-modal",
|
|
27163
27165
|
data: {
|
|
27164
|
-
refId:
|
|
27165
|
-
notes:
|
|
27166
|
+
refId: o.value,
|
|
27167
|
+
notes: i.value
|
|
27166
27168
|
}
|
|
27167
27169
|
});
|
|
27168
27170
|
}
|
|
27169
|
-
function
|
|
27171
|
+
function s() {
|
|
27170
27172
|
return F(this, null, function* () {
|
|
27171
27173
|
try {
|
|
27172
|
-
const
|
|
27173
|
-
return
|
|
27174
|
-
} catch (
|
|
27175
|
-
|
|
27176
|
-
text: `Voornaam: ${
|
|
27177
|
-
}),
|
|
27174
|
+
const h = new te.User({});
|
|
27175
|
+
return h.setDetail(null, {}), h.setName(w.firstName), h.setEmail(w.email), h.setDetail("phoneNumber", w.phoneNumber), h.setDetail("insurances", n.value), yield _e.comparisonService.create("package", h);
|
|
27176
|
+
} catch (h) {
|
|
27177
|
+
i.value.push({
|
|
27178
|
+
text: `Voornaam: ${w.firstName} | Mobiele telefoonnummer: ${w.phoneNumber} | E-mailadres: ${w.email}`
|
|
27179
|
+
}), i.value = Eu(i.value), l();
|
|
27178
27180
|
}
|
|
27179
27181
|
});
|
|
27180
27182
|
}
|
|
27181
|
-
function
|
|
27183
|
+
function d() {
|
|
27182
27184
|
return F(this, null, function* () {
|
|
27183
|
-
var
|
|
27185
|
+
var f;
|
|
27184
27186
|
if (yield ot([
|
|
27185
27187
|
"comparisons",
|
|
27186
27188
|
"firstName",
|
|
@@ -27189,25 +27191,22 @@ const JL = Dw.exports, QL = (t, e) => {
|
|
|
27189
27191
|
"agreement"
|
|
27190
27192
|
]))
|
|
27191
27193
|
try {
|
|
27192
|
-
const
|
|
27193
|
-
|
|
27194
|
-
} catch (
|
|
27195
|
-
|
|
27194
|
+
const v = (f = (yield s()).getId()) != null ? f : "";
|
|
27195
|
+
v ? e("redirect-page", { link: `${t.link}#/${v}` }) : l();
|
|
27196
|
+
} catch (p) {
|
|
27197
|
+
l();
|
|
27196
27198
|
}
|
|
27197
27199
|
});
|
|
27198
27200
|
}
|
|
27199
27201
|
return Ee(() => {
|
|
27200
27202
|
Yt.removeSessionState("package-path", "package-storage");
|
|
27201
27203
|
}), {
|
|
27202
|
-
|
|
27203
|
-
|
|
27204
|
-
|
|
27205
|
-
|
|
27206
|
-
|
|
27207
|
-
|
|
27208
|
-
conditionsLink: s,
|
|
27209
|
-
siteLink: d,
|
|
27210
|
-
validateBeforeSubmit: p
|
|
27204
|
+
agreement: r,
|
|
27205
|
+
selectedComparisons: n,
|
|
27206
|
+
phoneNumberErrors: a,
|
|
27207
|
+
conditionsLink: u,
|
|
27208
|
+
siteLink: c,
|
|
27209
|
+
validateBeforeSubmit: d
|
|
27211
27210
|
};
|
|
27212
27211
|
}, eV = j({
|
|
27213
27212
|
name: "EmailInput",
|
|
@@ -27223,11 +27222,6 @@ const JL = Dw.exports, QL = (t, e) => {
|
|
|
27223
27222
|
name: {
|
|
27224
27223
|
type: String,
|
|
27225
27224
|
required: !0
|
|
27226
|
-
},
|
|
27227
|
-
isRequired: {
|
|
27228
|
-
type: Boolean,
|
|
27229
|
-
required: !1,
|
|
27230
|
-
default: !1
|
|
27231
27225
|
}
|
|
27232
27226
|
},
|
|
27233
27227
|
setup(t, { attrs: e, listeners: r, emit: n }) {
|
|
@@ -27256,7 +27250,7 @@ const JL = Dw.exports, QL = (t, e) => {
|
|
|
27256
27250
|
});
|
|
27257
27251
|
var $w = function() {
|
|
27258
27252
|
var e = this, r = e._self._c;
|
|
27259
|
-
return e._self._setupProxy, r("DefaultInput", e._g(e._b({ attrs: { id: e.id, name: e.name, type: "text", placeholder: "example@gmail.com", label: "E-mailadres", validation:
|
|
27253
|
+
return e._self._setupProxy, r("DefaultInput", e._g(e._b({ attrs: { id: e.id, name: e.name, type: "text", placeholder: "example@gmail.com", label: "E-mailadres", validation: "required|email|emailServerValidation", "is-required": !0 }, scopedSlots: e._u([{ key: "error-messages", fn: function() {
|
|
27260
27254
|
return [r("ErrorHandler", { attrs: { name: "email", "errors-data": e.errorsData } })];
|
|
27261
27255
|
}, proxy: !0 }]) }, "DefaultInput", e.attrs, !1), e.listeners));
|
|
27262
27256
|
}, tV = [];
|
|
@@ -29024,9 +29018,6 @@ const MB = u0.exports, RB = j({
|
|
|
29024
29018
|
type: String,
|
|
29025
29019
|
required: !0
|
|
29026
29020
|
},
|
|
29027
|
-
userInformation: {
|
|
29028
|
-
required: !1
|
|
29029
|
-
},
|
|
29030
29021
|
insuranceState: {
|
|
29031
29022
|
required: !1
|
|
29032
29023
|
},
|
|
@@ -29065,30 +29056,23 @@ const MB = u0.exports, RB = j({
|
|
|
29065
29056
|
value: "travel"
|
|
29066
29057
|
}
|
|
29067
29058
|
], {
|
|
29068
|
-
|
|
29069
|
-
|
|
29070
|
-
|
|
29071
|
-
|
|
29072
|
-
|
|
29073
|
-
|
|
29074
|
-
conditionsLink: l,
|
|
29075
|
-
siteLink: s,
|
|
29076
|
-
setEmailValidness: d,
|
|
29077
|
-
validateBeforeSubmit: h
|
|
29059
|
+
agreement: n,
|
|
29060
|
+
selectedComparisons: a,
|
|
29061
|
+
phoneNumberErrors: i,
|
|
29062
|
+
conditionsLink: o,
|
|
29063
|
+
siteLink: u,
|
|
29064
|
+
validateBeforeSubmit: c
|
|
29078
29065
|
} = QL(t, e);
|
|
29079
29066
|
return {
|
|
29080
29067
|
hasNewDesign: G,
|
|
29068
|
+
userInformation: w,
|
|
29081
29069
|
comparisonsPackage: r,
|
|
29082
|
-
|
|
29083
|
-
|
|
29084
|
-
|
|
29085
|
-
|
|
29086
|
-
|
|
29087
|
-
|
|
29088
|
-
conditionsLink: l,
|
|
29089
|
-
siteLink: s,
|
|
29090
|
-
setEmailValidness: d,
|
|
29091
|
-
validateBeforeSubmit: h
|
|
29070
|
+
agreement: n,
|
|
29071
|
+
selectedComparisons: a,
|
|
29072
|
+
phoneNumberErrors: i,
|
|
29073
|
+
conditionsLink: o,
|
|
29074
|
+
siteLink: u,
|
|
29075
|
+
validateBeforeSubmit: c
|
|
29092
29076
|
};
|
|
29093
29077
|
}
|
|
29094
29078
|
});
|
|
@@ -29100,15 +29084,15 @@ var l0 = function() {
|
|
|
29100
29084
|
e.selectedComparisons = n;
|
|
29101
29085
|
}, expression: "selectedComparisons" } })], 1)]), r("div", { staticClass: "kiyoh-container kiyoh-container--tablet" }, [r("div", { staticClass: "d-flex kiyoh-container__wrapper" }, [r("kiyoh-card", { attrs: { "hide-title": !0, "kiyoh-xml": "https://www.kiyoh.com/v1/review/feed.xml?hash=9r0zjc1oypvquur", "kiyoh-summary-link": "https://www.kiyoh.com/reviews/1046148/vergelijkdirect_com" } })], 1)])])]), r("div", { staticClass: "package-form__form" }, [r("div", { staticClass: "vd-form-group" }, [r("default-input", { attrs: { id: "firstName", name: "firstName", label: "Voornaam", placeholder: "bv. Herman", type: "text", "is-required": "" }, scopedSlots: e._u([{ key: "error-messages", fn: function() {
|
|
29102
29086
|
return [r("ErrorHandler", { attrs: { name: "firstName", "errors-data": [{ rule: "required", text: "Dit veld is verplicht" }] } })];
|
|
29103
|
-
}, proxy: !0 }]), model: { value: e.firstName, callback: function(n) {
|
|
29104
|
-
e.firstName
|
|
29105
|
-
}, expression: "firstName" } })], 1), r("div", { staticClass: "vd-form-group" }, [r("default-input", { attrs: { id: "phoneNumber", mask: "##########", validation: { required: !0, regex: /^((06){1}[1-9]{1}[0-9]{7})$/ }, type: "text", label: "Telefoonnummer", placeholder: "0612345678", name: "phoneNumber", "is-required": "" }, scopedSlots: e._u([{ key: "error-messages", fn: function() {
|
|
29087
|
+
}, proxy: !0 }]), model: { value: e.userInformation.firstName, callback: function(n) {
|
|
29088
|
+
e.$set(e.userInformation, "firstName", n);
|
|
29089
|
+
}, expression: "userInformation.firstName" } })], 1), r("div", { staticClass: "vd-form-group" }, [r("default-input", { attrs: { id: "phoneNumber", mask: "##########", validation: { required: !0, regex: /^((06){1}[1-9]{1}[0-9]{7})$/ }, type: "text", label: "Telefoonnummer", placeholder: "0612345678", name: "phoneNumber", "is-required": "" }, scopedSlots: e._u([{ key: "error-messages", fn: function() {
|
|
29106
29090
|
return [r("ErrorHandler", { attrs: { name: "phoneNumber", "errors-data": e.phoneNumberErrors } })];
|
|
29107
|
-
}, proxy: !0 }]), model: { value: e.phoneNumber, callback: function(n) {
|
|
29108
|
-
e.phoneNumber
|
|
29109
|
-
}, expression: "phoneNumber" } })], 1), r("div", { staticClass: "vd-form-group" }, [r("email-input", { attrs: { id: "email", name: "email"
|
|
29110
|
-
e.email
|
|
29111
|
-
}, expression: "email" } })], 1), r("div", { staticClass: "vd-form-group" }, [r("default-checkbox", { staticClass: "agreement", attrs: { validation: "required", value: e.agreement, name: "agreement" }, on: { input: (n) => e.agreement = n }, scopedSlots: e._u([{ key: "title", fn: function() {
|
|
29091
|
+
}, proxy: !0 }]), model: { value: e.userInformation.phoneNumber, callback: function(n) {
|
|
29092
|
+
e.$set(e.userInformation, "phoneNumber", n);
|
|
29093
|
+
}, expression: "userInformation.phoneNumber" } })], 1), r("div", { staticClass: "vd-form-group" }, [r("email-input", { attrs: { id: "email", name: "email" }, model: { value: e.userInformation.email, callback: function(n) {
|
|
29094
|
+
e.$set(e.userInformation, "email", n);
|
|
29095
|
+
}, expression: "userInformation.email" } })], 1), r("div", { staticClass: "vd-form-group" }, [r("default-checkbox", { staticClass: "agreement", attrs: { validation: "required", value: e.agreement, name: "agreement" }, on: { input: (n) => e.agreement = n }, scopedSlots: e._u([{ key: "title", fn: function() {
|
|
29112
29096
|
return [e._v(" Ik ga akkoord met de "), r("a", { attrs: { href: e.conditionsLink, target: "_blank" } }, [e._v("voorwaarden")]), e._v(" en "), r("a", { attrs: { href: e.siteLink, target: "_blank" } }, [e._v("Vergelijkdirect.com")]), e._v(" mag mij telefonisch, via WhatsApp en per e-mail benaderen. ")];
|
|
29113
29097
|
}, proxy: !0 }]) })], 1), r("div", { staticClass: "vd-form-group mb-0" }, [r("div", { staticClass: "submit-btn", class: e.hasNewDesign ? "vd-btn vd-btn-green vd-btn-w-100" : "btn-a btn-a--success btn-a--bold btn-block cursor-pointer", on: { click: e.validateBeforeSubmit } }, [e._v(" Ga verder "), r("i", { staticClass: "icon fas fa-chevron-right ml-2" })])])])]);
|
|
29114
29098
|
}, EB = [];
|