@vergelijkdirect/comparison-forms 1.0.207 → 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(""), n = O(""), a = O(""), i = O(!1), o = O([]), u = [
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
- ], c = O([]), l = O(""), s = "https://mijn.vergelijkdirect.com/docs/VOORWAARDEN-MV.pdf", d = "https://vergelijkdirect.com/";
27160
- function h() {
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: l.value,
27165
- notes: c.value
27166
+ refId: o.value,
27167
+ notes: i.value
27166
27168
  }
27167
27169
  });
27168
27170
  }
27169
- function f() {
27171
+ function s() {
27170
27172
  return F(this, null, function* () {
27171
27173
  try {
27172
- const v = new te.User({});
27173
- return v.setDetail(null, {}), v.setName(r.value), v.setEmail(a.value), v.setDetail("phoneNumber", n.value), v.setDetail("insurances", o.value), yield _e.comparisonService.create("package", v);
27174
- } catch (v) {
27175
- c.value.push({
27176
- text: `Voornaam: ${r.value} | Mobiele telefoonnummer: ${n.value} | E-mailadres: ${a.value}`
27177
- }), c.value = Eu(c.value), h();
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 p() {
27183
+ function d() {
27182
27184
  return F(this, null, function* () {
27183
- var y;
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 g = (y = (yield f()).getId()) != null ? y : "";
27193
- g ? e("redirect-page", { link: `${t.link}#/${g}` }) : h();
27194
- } catch (m) {
27195
- h();
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
- firstName: r,
27203
- phoneNumber: n,
27204
- email: a,
27205
- agreement: i,
27206
- selectedComparisons: o,
27207
- phoneNumberErrors: u,
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",
@@ -29019,9 +29018,6 @@ const MB = u0.exports, RB = j({
29019
29018
  type: String,
29020
29019
  required: !0
29021
29020
  },
29022
- userInformation: {
29023
- required: !1
29024
- },
29025
29021
  insuranceState: {
29026
29022
  required: !1
29027
29023
  },
@@ -29060,30 +29056,23 @@ const MB = u0.exports, RB = j({
29060
29056
  value: "travel"
29061
29057
  }
29062
29058
  ], {
29063
- firstName: n,
29064
- phoneNumber: a,
29065
- email: i,
29066
- agreement: o,
29067
- selectedComparisons: u,
29068
- phoneNumberErrors: c,
29069
- conditionsLink: l,
29070
- siteLink: s,
29071
- setEmailValidness: d,
29072
- validateBeforeSubmit: h
29059
+ agreement: n,
29060
+ selectedComparisons: a,
29061
+ phoneNumberErrors: i,
29062
+ conditionsLink: o,
29063
+ siteLink: u,
29064
+ validateBeforeSubmit: c
29073
29065
  } = QL(t, e);
29074
29066
  return {
29075
29067
  hasNewDesign: G,
29068
+ userInformation: w,
29076
29069
  comparisonsPackage: r,
29077
- firstName: n,
29078
- phoneNumber: a,
29079
- email: i,
29080
- agreement: o,
29081
- selectedComparisons: u,
29082
- phoneNumberErrors: c,
29083
- conditionsLink: l,
29084
- siteLink: s,
29085
- setEmailValidness: d,
29086
- validateBeforeSubmit: h
29070
+ agreement: n,
29071
+ selectedComparisons: a,
29072
+ phoneNumberErrors: i,
29073
+ conditionsLink: o,
29074
+ siteLink: u,
29075
+ validateBeforeSubmit: c
29087
29076
  };
29088
29077
  }
29089
29078
  });
@@ -29095,15 +29084,15 @@ var l0 = function() {
29095
29084
  e.selectedComparisons = n;
29096
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() {
29097
29086
  return [r("ErrorHandler", { attrs: { name: "firstName", "errors-data": [{ rule: "required", text: "Dit veld is verplicht" }] } })];
29098
- }, proxy: !0 }]), model: { value: e.firstName, callback: function(n) {
29099
- e.firstName = n;
29100
- }, 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() {
29101
29090
  return [r("ErrorHandler", { attrs: { name: "phoneNumber", "errors-data": e.phoneNumberErrors } })];
29102
- }, proxy: !0 }]), model: { value: e.phoneNumber, callback: function(n) {
29103
- e.phoneNumber = n;
29104
- }, expression: "phoneNumber" } })], 1), r("div", { staticClass: "vd-form-group" }, [r("email-input", { attrs: { id: "email", name: "email" }, model: { value: e.email, callback: function(n) {
29105
- e.email = n;
29106
- }, 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() {
29107
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. ")];
29108
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" })])])])]);
29109
29098
  }, EB = [];