@vergelijkdirect/comparison-forms 1.1.33 → 1.1.34-rc.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.
@@ -29397,8 +29397,19 @@ const G2 = B_.exports, Z2 = (t, e) => {
29397
29397
  businessState: _t,
29398
29398
  hasCompaniesListValidationError: r,
29399
29399
  isMultiselectReady: n,
29400
- updateCompanyData: (o) => {
29401
- _t.companyData = pt({}, o);
29400
+ case1: () => {
29401
+ window.location.href = "/some-url";
29402
+ },
29403
+ case2: () => {
29404
+ location.assign(location.origin + "/user_home.html");
29405
+ },
29406
+ case3: () => {
29407
+ setTimeout(function() {
29408
+ document.location.href = "user_home.html";
29409
+ }, 250);
29410
+ },
29411
+ updateCompanyData: (l) => {
29412
+ _t.companyData = pt({}, l);
29402
29413
  },
29403
29414
  validateBeforeSubmit: a
29404
29415
  };
@@ -29408,7 +29419,7 @@ var L_ = function() {
29408
29419
  var e = this, r = e._self._c;
29409
29420
  return e._self._setupProxy, r("simple-card", { staticClass: "vd-form-card vd-new-form", class: { [e.classes]: !!e.classes } }, [r("div", { staticClass: "vd-form-card__header" }, [e.showTitle ? r("p", { staticClass: "vd-form-card__title" }, [e._v(" " + e._s(e.title) + " ")]) : e._e(), r("p", { staticClass: "vd-form-card__description" }, [e._v(" Doe onze risicoscan en ontdek de beste verzekering voor jouw specifieke bedrijf. Om te starten hebben we je bedrijfsnaam of KVK-nummer nodig! ")])]), r("div", { staticClass: "vd-form-card__content" }, [r("div", { staticClass: "vd-form-group vd-form-group_risk-scanner" }, [e.isMultiselectReady ? r("companies-list-select", { attrs: { "has-companies-list-validation-error": e.hasCompaniesListValidationError }, on: { "update-company-data": e.updateCompanyData }, model: { value: e.businessState.companyData, callback: function(n) {
29410
29421
  e.$set(e.businessState, "companyData", n);
29411
- }, expression: "businessState.companyData" } }) : r("loader")], 1)]), r("div", { staticClass: "vd-form-card__footer" }, [r("button", { staticClass: "vd-btn vd-btn-green vd-btn-w-100", on: { click: e.validateBeforeSubmit } }, [e._v(" Start de gratis scan ")])])]);
29422
+ }, expression: "businessState.companyData" } }) : r("loader")], 1)]), r("div", { staticClass: "vd-form-card__footer" }, [r("button", { staticClass: "vd-btn vd-btn-green vd-btn-w-100", on: { click: e.validateBeforeSubmit } }, [e._v(" Start de gratis scan ")]), r("button", { on: { click: e.case1 } }, [e._v("CASE 1")]), r("button", { on: { click: e.case2 } }, [e._v("CASE 2")]), r("button", { on: { click: e.case3 } }, [e._v("CASE 3")])])]);
29412
29423
  }, X2 = [];
29413
29424
  L_._withStripped = !0;
29414
29425
  var V_ = /* @__PURE__ */ R(
@@ -30068,12 +30079,16 @@ const dI = Z_.exports, fI = $({
30068
30079
  }, n = (i) => {
30069
30080
  e("emit-event", i);
30070
30081
  }, a = ({ link: i, data: o = null }) => {
30071
- if (!o) {
30072
- window.location.href = i;
30082
+ if (console.warn(i), !o) {
30083
+ window.location.href = i, document.location.assign(i), setTimeout(function() {
30084
+ document.location.href = u;
30085
+ }, 250);
30073
30086
  return;
30074
30087
  }
30075
30088
  const u = Km(i, o);
30076
- window.location.href = u;
30089
+ window.location.href = u, document.location.assign(u), setTimeout(function() {
30090
+ document.location.href = u;
30091
+ }, 250);
30077
30092
  };
30078
30093
  return ok(dd("ITC", null)), XE(dd("$validator", null)), I.value = t.hasNewDesign, {
30079
30094
  FormLocations: Le,