@vergelijkdirect/comparison-forms 1.2.2 → 1.2.3

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.
@@ -5876,13 +5876,13 @@ function We() {
5876
5876
  Object.defineProperty(t, "BusinessCarService", { enumerable: !0, get: function() {
5877
5877
  return E.default;
5878
5878
  } });
5879
- var j = v0();
5879
+ var F = v0();
5880
5880
  Object.defineProperty(t, "CarService", { enumerable: !0, get: function() {
5881
- return j.default;
5881
+ return F.default;
5882
5882
  } });
5883
- var F = b0();
5883
+ var j = b0();
5884
5884
  Object.defineProperty(t, "TravelService", { enumerable: !0, get: function() {
5885
- return F.default;
5885
+ return j.default;
5886
5886
  } });
5887
5887
  var V = xl;
5888
5888
  Object.defineProperty(t, "UserService", { enumerable: !0, get: function() {
@@ -14254,17 +14254,17 @@ function qx(t, e, r, n) {
14254
14254
  }).reverse();
14255
14255
  }).map(function(De) {
14256
14256
  return De[0];
14257
- }), j = xe(r, o);
14258
- if (isNaN(j))
14257
+ }), F = xe(r, o);
14258
+ if (isNaN(F))
14259
14259
  return /* @__PURE__ */ new Date(NaN);
14260
- var F = vm(j, Oo(j));
14260
+ var j = vm(F, Oo(F));
14261
14261
  for (y = 0; y < E.length; y++) {
14262
14262
  var V = E[y];
14263
- if (V.validate && !V.validate(F, V.value, h))
14263
+ if (V.validate && !V.validate(j, V.value, h))
14264
14264
  return /* @__PURE__ */ new Date(NaN);
14265
- F = V.set(F, V.value, h);
14265
+ j = V.set(j, V.value, h);
14266
14266
  }
14267
- return F;
14267
+ return j;
14268
14268
  }
14269
14269
  function zx(t) {
14270
14270
  var e = /* @__PURE__ */ new Date(0);
@@ -14724,14 +14724,14 @@ var nc = Fr(function(t, e) {
14724
14724
  var b = y.split("@"), w = b.pop(), C = b.join("@"), E = w.toLowerCase();
14725
14725
  if (m.domain_specific_validation && (E === "gmail.com" || E === "googlemail.com")) {
14726
14726
  C = C.toLowerCase();
14727
- var j = C.split("+")[0];
14728
- if (!(0, a.default)(j.replace(".", ""), {
14727
+ var F = C.split("+")[0];
14728
+ if (!(0, a.default)(F.replace(".", ""), {
14729
14729
  min: 6,
14730
14730
  max: 30
14731
14731
  }))
14732
14732
  return !1;
14733
- for (var F = j.split("."), V = 0; V < F.length; V++)
14734
- if (!d.test(F[V]))
14733
+ for (var j = F.split("."), V = 0; V < j.length; V++)
14734
+ if (!d.test(j[V]))
14735
14735
  return !1;
14736
14736
  }
14737
14737
  if (!(0, a.default)(C, {
@@ -16214,20 +16214,20 @@ function iE() {
16214
16214
  throw new Error("Text-mask:conformToMask; The mask property must be an array.");
16215
16215
  var n = r.guide, a = n === void 0 ? !0 : n, i = r.previousConformedValue, o = i === void 0 ? qr : i, u = r.placeholderChar, c = u === void 0 ? Gm : u, l = r.placeholder, s = l === void 0 ? tE(e, c) : l, d = r.currentCaretPosition, p = r.keepCharPositions, f = a === !1 && o !== void 0, h = t.length, v = o.length, y = s.length, m = e.length, g = h - v, b = g > 0, w = d + (b ? -g : 0), C = w + Math.abs(g);
16216
16216
  if (p === !0 && !b) {
16217
- for (var E = qr, j = w; j < C; j++)
16218
- s[j] === c && (E += c);
16217
+ for (var E = qr, F = w; F < C; F++)
16218
+ s[F] === c && (E += c);
16219
16219
  t = t.slice(0, w) + E + t.slice(w, h);
16220
16220
  }
16221
- for (var F = t.split(qr).map(function(U_, ed) {
16221
+ for (var j = t.split(qr).map(function(U_, ed) {
16222
16222
  return {
16223
16223
  char: U_,
16224
16224
  isNew: ed >= w && ed < C
16225
16225
  };
16226
16226
  }), V = h - 1; V >= 0; V--) {
16227
- var De = F[V].char;
16227
+ var De = j[V].char;
16228
16228
  if (De !== c) {
16229
16229
  var z = V >= w && v === m;
16230
- De === s[z ? V - g : V] && F.splice(V, 1);
16230
+ De === s[z ? V - g : V] && j.splice(V, 1);
16231
16231
  }
16232
16232
  }
16233
16233
  var B = qr, Be = !1;
@@ -16235,9 +16235,9 @@ function iE() {
16235
16235
  for (var Ne = 0; Ne < y; Ne++) {
16236
16236
  var ht = s[Ne];
16237
16237
  if (ht === c) {
16238
- if (F.length > 0)
16239
- for (; F.length > 0; ) {
16240
- var Vt = F.shift(), ne = Vt.char, mt = Vt.isNew;
16238
+ if (j.length > 0)
16239
+ for (; j.length > 0; ) {
16240
+ var Vt = j.shift(), ne = Vt.char, mt = Vt.isNew;
16241
16241
  if (ne === c && f !== !0) {
16242
16242
  B += c;
16243
16243
  continue e;
@@ -16245,8 +16245,8 @@ function iE() {
16245
16245
  if (p !== !0 || mt === !1 || o === qr || a === !1 || !b)
16246
16246
  B += ne;
16247
16247
  else {
16248
- for (var Gn = F.length, un = null, vt = 0; vt < Gn; vt++) {
16249
- var Br = F[vt];
16248
+ for (var Gn = j.length, un = null, vt = 0; vt < Gn; vt++) {
16249
+ var Br = j[vt];
16250
16250
  if (Br.char !== c && Br.isNew === !1)
16251
16251
  break;
16252
16252
  if (Br.char === c) {
@@ -16254,7 +16254,7 @@ function iE() {
16254
16254
  break;
16255
16255
  }
16256
16256
  }
16257
- un !== null ? (B += ne, F.splice(un, 1)) : Ne--;
16257
+ un !== null ? (B += ne, j.splice(un, 1)) : Ne--;
16258
16258
  }
16259
16259
  continue e;
16260
16260
  } else
@@ -21469,30 +21469,30 @@ const TA = A(
21469
21469
  }, y = (C) => {
21470
21470
  c.value = !1, e("blur");
21471
21471
  let E = C.srcElement.name;
21472
- const j = ae.fields.find({ name: E });
21473
- (j !== null || j !== void 0 && j) && ae.validate(j.name);
21474
- }, m = (C, E, j) => {
21472
+ const F = ae.fields.find({ name: E });
21473
+ (F !== null || F !== void 0 && F) && ae.validate(F.name);
21474
+ }, m = (C, E, F) => {
21475
21475
  E === "input" && (o.value = !1, u.value = !1), C || (i.value = !1), C.length < 8 && (n.value = {});
21476
- let F = Ki(C);
21477
- if (F === "no-template-found") {
21476
+ let j = Ki(C);
21477
+ if (j === "no-template-found") {
21478
21478
  r.value = C, ae.validate(t.name), e(E, C), e("on-error");
21479
21479
  return;
21480
21480
  }
21481
- e(E, F.toUpperCase()), r.value = F.toUpperCase(), h(F) && E === "input" && (ae.validate(t.name), j && w(F.toUpperCase()));
21481
+ e(E, j.toUpperCase()), r.value = j.toUpperCase(), h(j) && E === "input" && (ae.validate(t.name), F && w(j.toUpperCase()));
21482
21482
  }, g = (C) => {
21483
21483
  u.value = !1;
21484
21484
  let E = (C.clipboardData || window.clipboardData).getData("text");
21485
21485
  if (E = E.trim(), typeof E == "string" && E) {
21486
- let j = Ki(E);
21487
- if (j === "no-template-found") {
21486
+ let F = Ki(E);
21487
+ if (F === "no-template-found") {
21488
21488
  r.value = E, e("input", E), e("on-error"), C.preventDefault();
21489
21489
  return;
21490
21490
  }
21491
- e("input", j.toUpperCase()), r.value = j.toUpperCase(), e("license-correct"), h(j) && (ae.validate(t.name), w(j.toUpperCase())), C.preventDefault();
21491
+ e("input", F.toUpperCase()), r.value = F.toUpperCase(), e("license-correct"), h(F) && (ae.validate(t.name), w(F.toUpperCase())), C.preventDefault();
21492
21492
  }
21493
21493
  }, b = (C, E) => I(this, null, function* () {
21494
- const j = C.toLocaleLowerCase(), F = yield je.dataService.findVehicle(E, j);
21495
- return F || null;
21494
+ const F = C.toLocaleLowerCase(), j = yield je.dataService.findVehicle(E, F);
21495
+ return j || null;
21496
21496
  }), w = (C) => I(this, null, function* () {
21497
21497
  try {
21498
21498
  a.value = !0, i.value = !1, o.value = !1, n.value = {};
@@ -22536,11 +22536,11 @@ const VA = Sg.exports, qA = A({
22536
22536
  Rr(i, (w) => I(this, null, function* () {
22537
22537
  w && w.kvkNummer && (yield je.dataService.getProfileInfo(w.kvkNummer).then((C) => {
22538
22538
  h();
22539
- let E = C._embedded.hoofdvestiging.adressen.find((F) => F.type === "bezoekadres"), j = E.huisletter || "";
22540
- j += E.huisnummerToevoeging || "", a.kvk_number = C.kvkNummer, a.company_name = C.naam, a.legal_entity = C._embedded.eigenaar.rechtsvorm, a.rsin = C._embedded.eigenaar.rsin || null, a.branch_number = C._embedded.hoofdvestiging.vestigingsnummer, a.postcode = E.postcode || null, a.city = E.plaats || null, a.street = E.straatnaam || null, a.house_number = E.huisnummer || null, a.house_number_addition = j || null, a.full_address = E.volledigAdres || null, a.sbi_activities = C.sbiActiviteiten.map((F) => ({
22541
- code: F.sbiCode,
22542
- description: F.sbiOmschrijving,
22543
- is_main: F.indHoofdactiviteit === "Ja"
22539
+ let E = C._embedded.hoofdvestiging.adressen.find((j) => j.type === "bezoekadres" || j.type === "correspondentieadres"), F = E.huisletter || "";
22540
+ F += E.huisnummerToevoeging || "", a.kvk_number = C.kvkNummer, a.company_name = C.naam, a.legal_entity = C._embedded.eigenaar.rechtsvorm, a.rsin = C._embedded.eigenaar.rsin || null, a.branch_number = C._embedded.hoofdvestiging.vestigingsnummer, a.postcode = E.postcode || null, a.city = E.plaats || null, a.street = E.straatnaam || null, a.house_number = E.huisnummer || null, a.house_number_addition = F || null, a.full_address = E.volledigAdres || null, a.sbi_activities = C.sbiActiviteiten.map((j) => ({
22541
+ code: j.sbiCode,
22542
+ description: j.sbiOmschrijving,
22543
+ is_main: j.indHoofdactiviteit === "Ja"
22544
22544
  })), n("update-company-data", C);
22545
22545
  }));
22546
22546
  }));
@@ -22548,7 +22548,7 @@ const VA = Sg.exports, qA = A({
22548
22548
  u.value = !0, w.aantal = 30, je.dataService.searchBusinessInfo({ companyName: w.handelsnaam, kvkNumber: w.kvkNummer }, 1, w.aantal).then((C) => {
22549
22549
  u.value = !1;
22550
22550
  let E = C.resultaten;
22551
- E.length > 0 ? o.value = E.map((j) => (j.name = `${j.handelsnaam}`, j)) : o.value = [];
22551
+ E.length > 0 ? o.value = E.map((F) => (F.name = `${F.handelsnaam}`, F)) : o.value = [];
22552
22552
  }).catch((C) => {
22553
22553
  o.value = [], u.value = !1;
22554
22554
  });
@@ -23004,7 +23004,7 @@ const Un = /* @__PURE__ */ Bp(JA), QA = A({
23004
23004
  ]), m = oe(() => r.value ? "-" : "Kies toevoeging"), g = oe(() => `${o.value ? "" : "required"}|is_not:CHOOSE_OPTION`), b = (z, B, Be) => I(this, null, function* () {
23005
23005
  try {
23006
23006
  if (!z || !B) {
23007
- j(""), l.value = "CHOOSE_OPTION", a.value = !1, d.value.street = "", d.value.city = "", s.value = [{
23007
+ F(""), l.value = "CHOOSE_OPTION", a.value = !1, d.value.street = "", d.value.city = "", s.value = [{
23008
23008
  title: "Kies een toevoeging",
23009
23009
  value: "CHOOSE_OPTION",
23010
23010
  disabled: !0,
@@ -23030,10 +23030,10 @@ const Un = /* @__PURE__ */ Bp(JA), QA = A({
23030
23030
  value: De(ht[Vt])
23031
23031
  }];
23032
23032
  a.value = !1, Be || Cr(() => {
23033
- l.value = t.houseNumberAddition, F(z, B, t.houseNumberAddition);
23033
+ l.value = t.houseNumberAddition, j(z, B, t.houseNumberAddition);
23034
23034
  });
23035
23035
  } else
23036
- s.value[1] && (s.value[1].title = "Geen toevoeging"), r.value = !0, l.value = "", j(""), F(z, B);
23036
+ s.value[1] && (s.value[1].title = "Geen toevoeging"), r.value = !0, l.value = "", F(""), j(z, B);
23037
23037
  }).catch((Ne) => {
23038
23038
  a.value = !0, d.value.street = "", d.value.city = "", e("address-correct", !a.value), V("housenumberaddition"), console.error("Error fetching additions:", Ne);
23039
23039
  });
@@ -23050,9 +23050,9 @@ const Un = /* @__PURE__ */ Bp(JA), QA = A({
23050
23050
  p.value = !0, e("update-house-number", z), Cr(() => {
23051
23051
  b(t.zipcode, z, !0);
23052
23052
  });
23053
- }, j = (z) => {
23054
- e("update-house-number-addition", z), F(t.zipcode, t.houseNumber, z);
23055
- }, F = (z, B, Be = "") => I(this, null, function* () {
23053
+ }, F = (z) => {
23054
+ e("update-house-number-addition", z), j(t.zipcode, t.houseNumber, z);
23055
+ }, j = (z, B, Be = "") => I(this, null, function* () {
23056
23056
  try {
23057
23057
  if (!z || !B)
23058
23058
  return;
@@ -23100,8 +23100,8 @@ const Un = /* @__PURE__ */ Bp(JA), QA = A({
23100
23100
  getHouseInformationWithoutAddition: w,
23101
23101
  updateZipcode: C,
23102
23102
  updateHouseNumber: E,
23103
- updateHouseNumberAddition: j,
23104
- getHouseInformation: F,
23103
+ updateHouseNumberAddition: F,
23104
+ getHouseInformation: j,
23105
23105
  resetFieldValidation: V
23106
23106
  };
23107
23107
  }
@@ -23498,8 +23498,8 @@ class f$ {
23498
23498
  MonthlyCurrentLoansExpenses: w,
23499
23499
  MonthlyHouseExpenses: C,
23500
23500
  MonthlyNetIncome: E,
23501
- MonthlyStudentLoansExpenses: j,
23502
- OwnedBuilding: F,
23501
+ MonthlyStudentLoansExpenses: F,
23502
+ OwnedBuilding: j,
23503
23503
  PartnerIncomeType: V,
23504
23504
  PartnerMonthlyNetIncome: De,
23505
23505
  Sorting: z,
@@ -23529,8 +23529,8 @@ class f$ {
23529
23529
  MonthlyCurrentLoansExpenses: w,
23530
23530
  MonthlyHouseExpenses: C,
23531
23531
  MonthlyNetIncome: E,
23532
- MonthlyStudentLoansExpenses: j,
23533
- OwnedBuilding: F,
23532
+ MonthlyStudentLoansExpenses: F,
23533
+ OwnedBuilding: j,
23534
23534
  PartnerIncomeType: V,
23535
23535
  PartnerMonthlyNetIncome: De,
23536
23536
  Sorting: z,
@@ -24065,13 +24065,13 @@ const C$ = Zg.exports, Rc = [
24065
24065
  return J.newOrOccasion === "N" && ne.push("purchaseValue"), s.value = !J.newOrOccasion, (yield Xe(ne)) && !d.value && !s.value;
24066
24066
  }), w = () => `${t.link}#/<<COMPARISONID>>/dekkingen/`, C = (ne) => {
24067
24067
  console.error(ne), d.value = !0, u(h.value.comparisonError), o();
24068
- }, E = () => (j(), F(), !J.purchaseValue || !J.catalogValue ? (p.value.isOpened = !1, !0) : Number(J.purchaseValue) > Number(J.catalogValue) ? (p.value.isOpened = !0, !1) : (p.value.isOpened = !1, !0)), j = () => {
24068
+ }, E = () => (F(), j(), !J.purchaseValue || !J.catalogValue ? (p.value.isOpened = !1, !0) : Number(J.purchaseValue) > Number(J.catalogValue) ? (p.value.isOpened = !0, !1) : (p.value.isOpened = !1, !0)), F = () => {
24069
24069
  if (Number(J.purchaseValue) > 6e4) {
24070
24070
  u(h.value.purchaseValue), o();
24071
24071
  return;
24072
24072
  }
24073
24073
  d.value = !1;
24074
- }, F = () => {
24074
+ }, j = () => {
24075
24075
  if (Number(J.catalogValue) > 6e4) {
24076
24076
  u(h.value.catalogValue), o();
24077
24077
  return;
@@ -24198,7 +24198,7 @@ const C$ = Zg.exports, Rc = [
24198
24198
  b();
24199
24199
  }
24200
24200
  }
24201
- function j() {
24201
+ function F() {
24202
24202
  if (s.value = 0, !!c.value)
24203
24203
  try {
24204
24204
  je.caravanService.getCaravanCatalogPrice({
@@ -24213,7 +24213,7 @@ const C$ = Zg.exports, Rc = [
24213
24213
  b();
24214
24214
  }
24215
24215
  }
24216
- function F() {
24216
+ function j() {
24217
24217
  e("set-catalog-value", s.value), g();
24218
24218
  }
24219
24219
  return {
@@ -24232,8 +24232,8 @@ const C$ = Zg.exports, Rc = [
24232
24232
  nextStep: v,
24233
24233
  getCaravanTypes: E,
24234
24234
  previousStep: y,
24235
- getCaravanCatalogPrice: j,
24236
- setPrice: F,
24235
+ getCaravanCatalogPrice: F,
24236
+ setPrice: j,
24237
24237
  closeModal: g
24238
24238
  };
24239
24239
  }