@vergelijkdirect/comparison-forms 2.1.0-ver-9053.1 → 2.1.0-ver-9053.2

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.
@@ -14421,13 +14421,13 @@ var Mw, Nw, Pw, Fw, Iw, Lw, Rw, zw = o((() => {
14421
14421
  referrerPolicy: this.referrerPolicy
14422
14422
  };
14423
14423
  }, e.prototype.getDefaultHeaders = function() {
14424
- var e = {
14424
+ var e = t({
14425
14425
  "Content-Type": "application/json",
14426
14426
  ITC: "true"
14427
- }, t = this.environment?.api.credentials;
14428
- if (!t) return e;
14429
- var n = t.authType ?? "headers";
14430
- return (n === "headers" || n === "both") && (e["X-Partner-Access-Key"] = t.accessKey, e["X-Partner-Secret"] = t.secret), (n === "basic" || n === "both") && (e.Authorization = `Basic ${btoa(`${t.accessKey}:${t.secret}`)}`), e;
14427
+ }, this.environment?.api.headers ?? {}), n = this.environment?.api.credentials;
14428
+ if (!n) return e;
14429
+ var r = n.authType ?? "headers";
14430
+ return (r === "headers" || r === "both") && (e["X-Partner-Access-Key"] = n.accessKey, e["X-Partner-Secret"] = n.secret), (r === "basic" || r === "both") && (e.Authorization = `Basic ${btoa(`${n.accessKey}:${n.secret}`)}`), e;
14431
14431
  }, e.prototype.getRequest = function(e) {
14432
14432
  var n = this.getDefaultConfigurations(), r = this.transformer(e);
14433
14433
  return t(t({}, n), r);
@@ -14773,6 +14773,11 @@ var Mw, Nw, Pw, Fw, Iw, Lw, Rw, zw = o((() => {
14773
14773
  url: "/request",
14774
14774
  data: e
14775
14775
  });
14776
+ }, n.prototype.getRequestStatus = function(e) {
14777
+ return this.http({
14778
+ method: "get",
14779
+ url: `/request/status/${e}`
14780
+ });
14776
14781
  }, n;
14777
14782
  }(Jw().default);
14778
14783
  })), Zw = /* @__PURE__ */ s(((e) => {
@@ -15310,7 +15315,8 @@ var Mw, Nw, Pw, Fw, Iw, Lw, Rw, zw = o((() => {
15310
15315
  "laka",
15311
15316
  "enra",
15312
15317
  "vergelijkdirect",
15313
- "fietszeker"
15318
+ "fietszeker",
15319
+ "moneyview"
15314
15320
  ];
15315
15321
  }, r.prototype.getEnraRates = function(e) {
15316
15322
  return this.http({
@@ -16556,6 +16562,12 @@ var Mw, Nw, Pw, Fw, Iw, Lw, Rw, zw = o((() => {
16556
16562
  return [2, this.client.loanRequest(e)];
16557
16563
  });
16558
16564
  });
16565
+ }, a.prototype.getRequestStatus = function(e) {
16566
+ return n(this, void 0, void 0, function() {
16567
+ return r(this, function(t) {
16568
+ return [2, this.client.getRequestStatus(e)];
16569
+ });
16570
+ });
16559
16571
  }, a;
16560
16572
  }(a.RateService);
16561
16573
  })), ET = /* @__PURE__ */ s(((e) => {
@@ -18540,18 +18552,23 @@ var Mw, Nw, Pw, Fw, Iw, Lw, Rw, zw = o((() => {
18540
18552
  };
18541
18553
  Object.defineProperty(e, "__esModule", { value: !0 }), e.supplierPlacementTracker = void 0, e.supplierPlacementTracker = {
18542
18554
  setParams: function() {
18543
- var e = new URLSearchParams(window.location.search), t = e.get("supplierID"), n = e.get("placementID");
18544
- t && n && (localStorage.setItem("supplierID", t), localStorage.setItem("placementID", n));
18555
+ if (!(typeof window > "u" || typeof localStorage > "u")) {
18556
+ var e = new URLSearchParams(window.location.search), t = e.get("supplierID"), n = e.get("placementID");
18557
+ t && n && (localStorage.setItem("supplierID", t), localStorage.setItem("placementID", n));
18558
+ }
18545
18559
  },
18546
18560
  removeParams: function() {
18547
- localStorage.removeItem("supplierID"), localStorage.removeItem("placementID");
18561
+ typeof localStorage > "u" || (localStorage.removeItem("supplierID"), localStorage.removeItem("placementID"));
18548
18562
  },
18549
18563
  getSubId: function() {
18564
+ if (typeof window > "u") return "";
18550
18565
  var e = new URLSearchParams(window.location.search).get("subid") || this.getCookie("ivanhoe_id");
18551
18566
  return e && e.includes("ivan") ? e : "";
18552
18567
  },
18553
18568
  getCookie: function(e) {
18554
- var r, i, a = document.cookie.split(";");
18569
+ var r, i;
18570
+ if (typeof document > "u") return "";
18571
+ var a = document.cookie.split(";");
18555
18572
  try {
18556
18573
  for (var o = t(a), s = o.next(); !s.done; s = o.next()) {
18557
18574
  var c = s.value, l = n(c.trim().split("=")), u = l[0], d = l.slice(1);
@@ -18732,7 +18749,7 @@ var Mw, Nw, Pw, Fw, Iw, Lw, Rw, zw = o((() => {
18732
18749
  var t;
18733
18750
  return n(this, function(n) {
18734
18751
  switch (n.label) {
18735
- case 0: return localStorage.getItem("supplierID") && localStorage.getItem("placementID") && (e.SupplierID = localStorage.getItem("supplierID"), e.PlacementID = localStorage.getItem("placementID")), c.supplierPlacementTracker.getSubId() && (e.SubID = c.supplierPlacementTracker.getSubId()), [4, this.client.requestPackage(e)];
18752
+ case 0: return typeof localStorage < "u" && localStorage.getItem("supplierID") && localStorage.getItem("placementID") && (e.SupplierID = localStorage.getItem("supplierID"), e.PlacementID = localStorage.getItem("placementID")), c.supplierPlacementTracker.getSubId() && (e.SubID = c.supplierPlacementTracker.getSubId()), [4, this.client.requestPackage(e)];
18736
18753
  case 1: return t = n.sent(), c.supplierPlacementTracker.removeParams(), [2, t];
18737
18754
  }
18738
18755
  });
@@ -22677,7 +22694,7 @@ var Cj, wj, Tj, Ej, Dj, Oj, kj, Aj, jj, Mj, Nj, Pj, Fj, Ij, Lj, Rj, zj, Bj, Vj,
22677
22694
  var r = (NN(), d(kE)), i = zN();
22678
22695
  e.default = function() {
22679
22696
  function e(e, t, n, r, i, a) {
22680
- this.unique_id = e, this.funnel = t, this.data = n, this.user = r, this.location = window.location, this.updated_at = i, this.created_at = a;
22697
+ this.unique_id = e, this.funnel = t, this.data = n, this.user = r, this.location = typeof window < "u" ? window.location : { href: "" }, this.updated_at = i, this.created_at = a;
22681
22698
  }
22682
22699
  return e.prototype.getId = function() {
22683
22700
  return this.unique_id;
@@ -23310,7 +23327,24 @@ var Cj, wj, Tj, Ej, Dj, Oj, kj, Aj, jj, Mj, Nj, Pj, Fj, Ij, Lj, Rj, zj, Bj, Vj,
23310
23327
  }, e;
23311
23328
  }();
23312
23329
  })), UN = /* @__PURE__ */ s(((e) => {
23313
- Object.defineProperty(e, "__esModule", { value: !0 }), e.LocalStorageAdapter = void 0;
23330
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.default = function() {
23331
+ function e() {
23332
+ this.storage = {};
23333
+ }
23334
+ return e.prototype.save = function(e, t) {
23335
+ return this.storage[e] === void 0 && (this.storage[e] = []), this.storage[e].push(t), this;
23336
+ }, e.prototype.put = function(e, t) {
23337
+ return this.storage[e] = t, this;
23338
+ }, e.prototype.get = function(e) {
23339
+ return this.storage[e] === void 0 ? [] : this.storage[e];
23340
+ }, e.prototype.remove = function(e) {
23341
+ return delete this.storage[e], this;
23342
+ }, e.prototype.all = function() {
23343
+ return this.storage;
23344
+ }, e;
23345
+ }();
23346
+ })), WN = /* @__PURE__ */ s(((e) => {
23347
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.MemoryStorageAdapter = e.LocalStorageAdapter = void 0;
23314
23348
  var t = HN();
23315
23349
  Object.defineProperty(e, "LocalStorageAdapter", {
23316
23350
  enumerable: !0,
@@ -23318,7 +23352,14 @@ var Cj, wj, Tj, Ej, Dj, Oj, kj, Aj, jj, Mj, Nj, Pj, Fj, Ij, Lj, Rj, zj, Bj, Vj,
23318
23352
  return t.default;
23319
23353
  }
23320
23354
  });
23321
- })), WN = /* @__PURE__ */ s(((e) => {
23355
+ var n = UN();
23356
+ Object.defineProperty(e, "MemoryStorageAdapter", {
23357
+ enumerable: !0,
23358
+ get: function() {
23359
+ return n.default;
23360
+ }
23361
+ });
23362
+ })), GN = /* @__PURE__ */ s(((e) => {
23322
23363
  var t = e && e.__createBinding || (Object.create ? (function(e, t, n, r) {
23323
23364
  r === void 0 && (r = n);
23324
23365
  var i = Object.getOwnPropertyDescriptor(t, n);
@@ -23333,84 +23374,84 @@ var Cj, wj, Tj, Ej, Dj, Oj, kj, Aj, jj, Mj, Nj, Pj, Fj, Ij, Lj, Rj, zj, Bj, Vj,
23333
23374
  })), n = e && e.__exportStar || function(e, n) {
23334
23375
  for (var r in e) r !== "default" && !Object.prototype.hasOwnProperty.call(n, r) && t(n, e, r);
23335
23376
  };
23336
- Object.defineProperty(e, "__esModule", { value: !0 }), n(uw(), e), n(VN(), e), n(UN(), e), n(zN(), e), n(lE(), e);
23337
- })), GN, KN, qN, JN, YN, XN, ZN, QN, $N, eP, tP = o((() => {
23338
- GN = WN(), KN = WN(), qN = "v2", JN = null, XN = (e) => {
23377
+ Object.defineProperty(e, "__esModule", { value: !0 }), n(uw(), e), n(VN(), e), n(WN(), e), n(zN(), e), n(lE(), e);
23378
+ })), KN, qN, JN, YN, XN, ZN, QN, $N, eP, tP, nP = o((() => {
23379
+ KN = GN(), qN = GN(), JN = "v2", YN = null, ZN = (e) => {
23339
23380
  if (!e) throw Error("ITC api url is required — pass it to createItcClient(apiUrl) (custom elements: the api-url attribute).");
23340
23381
  return e + (e.endsWith("/") ? "api" : "/api");
23341
- }, ZN = async (e) => {
23342
- typeof window > "u" || await new GN.InsuranceTransmissionClient(new GN.LocalStorageAdapter("insurances")).configure({ api: {
23382
+ }, QN = async (e) => {
23383
+ typeof window > "u" || await new KN.InsuranceTransmissionClient(new KN.LocalStorageAdapter("insurances")).configure({ api: {
23343
23384
  baseUrl: e,
23344
- version: qN
23385
+ version: JN
23345
23386
  } });
23346
- }, QN = () => ({
23347
- dataService: new GN.DataService(),
23348
- dataValidationService: new GN.DataValidationService(),
23349
- homeService: new GN.HomeService(),
23350
- comparisonService: new GN.ComparisonService()
23351
- }), $N = (e) => {
23352
- let t = XN(e);
23353
- return JN ||= ZN(t), JN;
23354
- }, eP = () => (YN ||= QN(), YN);
23355
- })), nP = o((() => {
23356
- tP();
23357
- })), rP, iP = o((() => {
23358
- rP = (e) => ({
23387
+ }, $N = () => ({
23388
+ dataService: new KN.DataService(),
23389
+ dataValidationService: new KN.DataValidationService(),
23390
+ homeService: new KN.HomeService(),
23391
+ comparisonService: new KN.ComparisonService()
23392
+ }), eP = (e) => {
23393
+ let t = ZN(e);
23394
+ return YN ||= QN(t), YN;
23395
+ }, tP = () => (XN ||= $N(), XN);
23396
+ })), rP = o((() => {
23397
+ nP();
23398
+ })), iP, aP = o((() => {
23399
+ iP = (e) => ({
23359
23400
  zipCode: e.ZipCode,
23360
23401
  houseNumber: String(e.HouseNumber),
23361
23402
  houseNumberAddition: e.HouseNumberAddition,
23362
23403
  city: e.Place,
23363
23404
  street: e.Street
23364
23405
  });
23365
- })), aP, oP, sP = o((() => {
23366
- aP = /^\d{4}\s?[a-zA-Z]{2}$/, oP = /^\d+$/;
23406
+ })), oP, sP, cP = o((() => {
23407
+ oP = /^\d{4}\s?[a-zA-Z]{2}$/, sP = /^\d+$/;
23367
23408
  }));
23368
23409
  //#endregion
23369
23410
  //#region src/components/fields/address/useAddress.ts
23370
- function cP(e) {
23411
+ function lP(e) {
23371
23412
  return e.replace(/\s/g, "").toUpperCase();
23372
23413
  }
23373
- function lP(e) {
23374
- return e === dP ? "" : e.replace("-", "");
23414
+ function uP(e) {
23415
+ return e === fP ? "" : e.replace("-", "");
23375
23416
  }
23376
- var uP, dP, fP, pP, mP, hP, gP, _P, vP, yP, bP = o((() => {
23377
- q(), GC(), nP(), iP(), sP(), uP = {
23417
+ var dP, fP, pP, mP, hP, gP, _P, vP, yP, bP, xP = o((() => {
23418
+ q(), GC(), rP(), aP(), cP(), dP = {
23378
23419
  "needs-addition": "Een toevoeging is verplicht",
23379
23420
  "not-found": "Postcode en huisnummer combinatie onbekend.",
23380
23421
  error: "Adres ophalen is mislukt. Probeer het opnieuw."
23381
- }, dP = "NO_ADDITION", fP = (e) => e instanceof Error, pP = (e) => {
23382
- if (fP(e)) throw e;
23422
+ }, fP = "NO_ADDITION", pP = (e) => e instanceof Error, mP = (e) => {
23423
+ if (pP(e)) throw e;
23383
23424
  return null;
23384
- }, mP = (e, t, n) => eP().dataValidationService.validateZipCode(e, t, n).then((e) => e).catch(pP), hP = (e, t) => eP().homeService.getAddition({
23425
+ }, hP = (e, t, n) => tP().dataValidationService.validateZipCode(e, t, n).then((e) => e).catch(mP), gP = (e, t) => tP().homeService.getAddition({
23385
23426
  zipcode: e,
23386
23427
  houseNumber: t
23387
- }).then((e) => e ?? []).catch(pP), gP = async (e, t) => {
23388
- let [n, r] = await Promise.all([mP(e, t), hP(e, t)]);
23428
+ }).then((e) => e ?? []).catch(mP), _P = async (e, t) => {
23429
+ let [n, r] = await Promise.all([hP(e, t), gP(e, t)]);
23389
23430
  return !n && !r?.length ? null : {
23390
23431
  validWithoutAddition: !!n,
23391
23432
  template: n,
23392
23433
  additions: r ?? []
23393
23434
  };
23394
- }, _P = (e) => {
23435
+ }, vP = (e) => {
23395
23436
  let t = e.additions.map((e) => ({
23396
23437
  title: e,
23397
- value: lP(e)
23438
+ value: uP(e)
23398
23439
  }));
23399
23440
  return e.validWithoutAddition && t.length ? [{
23400
23441
  title: "Geen toevoeging",
23401
- value: dP
23442
+ value: fP
23402
23443
  }, ...t] : t;
23403
- }, vP = (e) => ({
23444
+ }, yP = (e) => ({
23404
23445
  zipCode: e?.zipCode ?? "",
23405
23446
  houseNumber: e?.houseNumber ?? "",
23406
- houseNumberAddition: e ? e.houseNumberAddition || dP : ""
23407
- }), yP = (e) => {
23408
- let t = e?.path ?? "address", n = vP(e?.initial), r = /* @__PURE__ */ N(null), i = /* @__PURE__ */ N([]), a = 0, o = null, s = async (e) => {
23409
- let t = cP(e.zipCode), n = e.houseNumber.trim(), r = lP(e.houseNumberAddition), i = `${t}:${n}`;
23447
+ houseNumberAddition: e ? e.houseNumberAddition || fP : ""
23448
+ }), bP = (e) => {
23449
+ let t = e?.path ?? "address", n = yP(e?.initial), r = /* @__PURE__ */ N(null), i = /* @__PURE__ */ N([]), a = 0, o = null, s = async (e) => {
23450
+ let t = lP(e.zipCode), n = e.houseNumber.trim(), r = uP(e.houseNumberAddition), i = `${t}:${n}`;
23410
23451
  try {
23411
23452
  let a = o?.key === i ? o : null;
23412
23453
  if (!a) {
23413
- let e = await gP(t, n);
23454
+ let e = await _P(t, n);
23414
23455
  if (!e) return {
23415
23456
  status: "not-found",
23416
23457
  options: [],
@@ -23421,14 +23462,14 @@ var uP, dP, fP, pP, mP, hP, gP, _P, vP, yP, bP = o((() => {
23421
23462
  verdict: e
23422
23463
  };
23423
23464
  }
23424
- let s = _P(a.verdict);
23465
+ let s = vP(a.verdict);
23425
23466
  if (a.verdict.additions.length && !e.houseNumberAddition) return {
23426
23467
  status: "needs-addition",
23427
23468
  options: s,
23428
23469
  address: null
23429
23470
  };
23430
23471
  if (!a.verdict.template) {
23431
- let e = await mP(t, n, r);
23472
+ let e = await hP(t, n, r);
23432
23473
  if (!e) return {
23433
23474
  status: "not-found",
23434
23475
  options: [],
@@ -23453,7 +23494,7 @@ var uP, dP, fP, pP, mP, hP, gP, _P, vP, yP, bP = o((() => {
23453
23494
  }
23454
23495
  }, c = async (e) => {
23455
23496
  let t = ++a, n = await s(e), o = t !== a;
23456
- return o || (i.value = n.options, r.value = n.address ? rP(n.address) : null), {
23497
+ return o || (i.value = n.options, r.value = n.address ? iP(n.address) : null), {
23457
23498
  ...n,
23458
23499
  stale: o
23459
23500
  };
@@ -23461,25 +23502,25 @@ var uP, dP, fP, pP, mP, hP, gP, _P, vP, yP, bP = o((() => {
23461
23502
  return {
23462
23503
  path: t,
23463
23504
  addressSchema: WS({
23464
- zipCode: IS().required("Vul je postcode in").matches(aP, "Postcode is incorrect"),
23465
- houseNumber: IS().required("Huisnummer is verplicht").matches(oP, "Huisnummer is incorrect"),
23505
+ zipCode: IS().required("Vul je postcode in").matches(oP, "Postcode is incorrect"),
23506
+ houseNumber: IS().required("Huisnummer is verplicht").matches(sP, "Huisnummer is incorrect"),
23466
23507
  houseNumberAddition: IS().defined()
23467
23508
  }).test("address-lookup", async (e, t) => {
23468
- let n = cP(e.zipCode ?? ""), r = String(e.houseNumber ?? "").trim();
23469
- if (!aP.test(n) || !oP.test(r)) return !0;
23509
+ let n = lP(e.zipCode ?? ""), r = String(e.houseNumber ?? "").trim();
23510
+ if (!oP.test(n) || !sP.test(r)) return !0;
23470
23511
  let { status: i, stale: a } = await c(e);
23471
23512
  return a || i === "resolved" ? !0 : i === "needs-addition" ? t.createError({
23472
23513
  path: `${t.path}.houseNumberAddition`,
23473
- message: uP[i]
23474
- }) : t.createError({ message: uP[i] });
23514
+ message: dP[i]
23515
+ }) : t.createError({ message: dP[i] });
23475
23516
  }),
23476
23517
  draft: n,
23477
23518
  resolvedAddress: r,
23478
23519
  additionOptions: i
23479
23520
  };
23480
23521
  };
23481
- })), xP, SP, CP, wP = o((() => {
23482
- Nd(), xP = {
23522
+ })), SP, CP, wP, TP = o((() => {
23523
+ Nd(), SP = {
23483
23524
  [Dd.Car]: {
23484
23525
  apiTypes: ["Car", "Van"],
23485
23526
  dutch: "auto",
@@ -23500,18 +23541,18 @@ var uP, dP, fP, pP, mP, hP, gP, _P, vP, yP, bP = o((() => {
23500
23541
  dutch: "caravan",
23501
23542
  icon: "fa-caravan-alt"
23502
23543
  }
23503
- }, SP = Object.fromEntries(Object.values(xP).flatMap(({ apiTypes: e, icon: t }) => e.map((e) => [e.toLowerCase(), t]))), CP = {
23544
+ }, CP = Object.fromEntries(Object.values(SP).flatMap(({ apiTypes: e, icon: t }) => e.map((e) => [e.toLowerCase(), t]))), wP = {
23504
23545
  brommobiel: "fa-car-side",
23505
23546
  "speed pedelec": "fa-bicycle"
23506
23547
  };
23507
- })), TP, EP, DP, OP = o((() => {
23508
- wP(), TP = (e) => !!e?.Brand && !!e.Model && !!e.ManufacturingYear, EP = (e) => {
23548
+ })), EP, DP, OP, kP = o((() => {
23549
+ TP(), EP = (e) => !!e?.Brand && !!e.Model && !!e.ManufacturingYear, DP = (e) => {
23509
23550
  if (!e) return "";
23510
23551
  let t = String(e.Model ?? "").toLowerCase().trim(), n = String(e.VehicleType ?? "").toLowerCase();
23511
- return CP[t] ?? SP[n] ?? "";
23512
- }, DP = (e) => e ? `${e.Brand} ${e.Model} (${e.ManufacturingYear})` : "";
23513
- })), kP, AP = o((() => {
23514
- kP = [
23552
+ return wP[t] ?? CP[n] ?? "";
23553
+ }, OP = (e) => e ? `${e.Brand} ${e.Model} (${e.ManufacturingYear})` : "";
23554
+ })), AP, jP = o((() => {
23555
+ AP = [
23515
23556
  "@@-##-@@",
23516
23557
  "##-##-@@",
23517
23558
  "##-@@-@@",
@@ -23530,22 +23571,22 @@ var uP, dP, fP, pP, mP, hP, gP, _P, vP, yP, bP = o((() => {
23530
23571
  }));
23531
23572
  //#endregion
23532
23573
  //#region src/components/fields/licensePlate/licensePlate.util.ts
23533
- function jP(e) {
23574
+ function MP(e) {
23534
23575
  return e.replace(/[\s\\-]/g, "");
23535
23576
  }
23536
- function MP(e) {
23537
- let t = jP(e).slice(0, 6);
23538
- if (t.length < 6) return NP;
23539
- let n = [...t].map((e) => /[0-9]/.test(e) ? "#" : "@").join(""), r = PP.indexOf(n);
23540
- return r === -1 ? NP : kP[r];
23541
- }
23542
- var NP, PP, FP = o((() => {
23543
- AP(), NP = "*".repeat(6), PP = kP.map((e) => e.replace(/-/g, ""));
23544
- })), IP, LP, RP, zP = o((() => {
23545
- q(), Iv(), OP(), FP(), IP = {
23577
+ function NP(e) {
23578
+ let t = MP(e).slice(0, 6);
23579
+ if (t.length < 6) return PP;
23580
+ let n = [...t].map((e) => /[0-9]/.test(e) ? "#" : "@").join(""), r = FP.indexOf(n);
23581
+ return r === -1 ? PP : AP[r];
23582
+ }
23583
+ var PP, FP, IP = o((() => {
23584
+ jP(), PP = "*".repeat(6), FP = AP.map((e) => e.replace(/-/g, ""));
23585
+ })), LP, RP, zP, BP = o((() => {
23586
+ q(), Iv(), kP(), IP(), LP = {
23546
23587
  key: 0,
23547
23588
  class: "vd-input-license-plate__loading-information"
23548
- }, LP = ["src"], RP = /*@__PURE__*/ L({
23589
+ }, RP = ["src"], zP = /*@__PURE__*/ L({
23549
23590
  inheritAttrs: !1,
23550
23591
  __name: "VdLicensePlate",
23551
23592
  props: /*@__PURE__*/ Di({
@@ -23568,16 +23609,16 @@ var NP, PP, FP = o((() => {
23568
23609
  }),
23569
23610
  emits: /*@__PURE__*/ Di(["input"], ["update:modelValue", "update:vehicleData"]),
23570
23611
  setup(e, { emit: t }) {
23571
- let n = { mask: MP }, r = e, i = Gi(e, "modelValue"), a = Gi(e, "vehicleData"), o = t, s = Ci(), c = Si(), l = K({
23612
+ let n = { mask: NP }, r = e, i = Gi(e, "modelValue"), a = Gi(e, "vehicleData"), o = t, s = Ci(), c = Si(), l = K({
23572
23613
  get: () => i.value ?? "",
23573
23614
  set: (e) => {
23574
23615
  i.value = e, o("input", e);
23575
23616
  }
23576
- }), u = (e, t) => jP(e).toUpperCase() === jP(t).toUpperCase();
23617
+ }), u = (e, t) => MP(e).toUpperCase() === MP(t).toUpperCase();
23577
23618
  I(i, (e) => {
23578
23619
  a.value && !u(e, a.value.LicensePlate) && (a.value = null);
23579
23620
  });
23580
- let d = K(() => TP(a.value) ? a.value : null), f = K(() => r.loading || !!d.value && !r.errorMessage), p = K(() => EP(d.value)), m = K(() => DP(d.value));
23621
+ let d = K(() => EP(a.value) ? a.value : null), f = K(() => r.loading || !!d.value && !r.errorMessage), p = K(() => DP(d.value)), m = K(() => OP(d.value));
23581
23622
  return (t, r) => (z(), V(Fv, W(P(s), {
23582
23623
  modelValue: l.value,
23583
23624
  "onUpdate:modelValue": r[0] ||= (e) => l.value = e,
@@ -23603,12 +23644,12 @@ var NP, PP, FP = o((() => {
23603
23644
  } : void 0,
23604
23645
  f.value ? {
23605
23646
  name: "information",
23606
- fn: F(() => [e.loading ? (z(), B("div", IP, [...r[1] ||= [H("i", { class: "fas fa-circle-notch vd-input-license-plate__loading-icon" }, null, -1), La(" Voertuig gegevens ophalen... ", -1)]])) : d.value ? (z(), B(Ks, { key: 1 }, [p.value ? (z(), B("img", {
23647
+ fn: F(() => [e.loading ? (z(), B("div", LP, [...r[1] ||= [H("i", { class: "fas fa-circle-notch vd-input-license-plate__loading-icon" }, null, -1), La(" Voertuig gegevens ophalen... ", -1)]])) : d.value ? (z(), B(Ks, { key: 1 }, [p.value ? (z(), B("img", {
23607
23648
  key: 0,
23608
23649
  src: `https://d12bmfj3oyxu0t.cloudfront.net/vergelijkdirect/icons/${p.value}.svg`,
23609
23650
  class: "vd-field__svg-message-icon",
23610
23651
  alt: "vehicle-icon"
23611
- }, null, 8, LP)) : U("", !0), La(" " + Re(m.value), 1)], 64)) : U("", !0)]),
23652
+ }, null, 8, RP)) : U("", !0), La(" " + Re(m.value), 1)], 64)) : U("", !0)]),
23612
23653
  key: "2"
23613
23654
  } : void 0
23614
23655
  ]), 1040, [
@@ -23621,63 +23662,63 @@ var NP, PP, FP = o((() => {
23621
23662
  ]));
23622
23663
  }
23623
23664
  });
23624
- })), BP, VP = o((() => {
23625
- zP(), zP(), BP = RP;
23626
- })), HP, UP, WP, GP, KP, qP, JP = o((() => {
23627
- q(), GC(), nP(), wP(), FP(), AP(), HP = /* @__PURE__ */ new Map(), UP = (e, t) => `${t}:${e}`, WP = {
23628
- "wrong-type": (e) => `Het ingevoerde kenteken is geen ${xP[e].dutch}`,
23665
+ })), VP, HP = o((() => {
23666
+ BP(), BP(), VP = zP;
23667
+ })), UP, WP, GP, KP, qP, JP, YP = o((() => {
23668
+ q(), GC(), rP(), TP(), IP(), jP(), UP = /* @__PURE__ */ new Map(), WP = (e, t) => `${t}:${e}`, GP = {
23669
+ "wrong-type": (e) => `Het ingevoerde kenteken is geen ${SP[e].dutch}`,
23629
23670
  unknown: () => "Voertuig onbekend - Voer ander kenteken in of neem contact op",
23630
23671
  "not-found": () => "Kenteken onbekend",
23631
23672
  error: () => "Kenteken is incorrect"
23632
- }, GP = async (e, t) => {
23673
+ }, KP = async (e, t) => {
23633
23674
  try {
23634
- let n = await eP().dataService.findVehicle(e, t);
23675
+ let n = await tP().dataService.findVehicle(e, t);
23635
23676
  if (Array.isArray(n) || !n || !Object.keys(n).length) return { status: "not-found" };
23636
23677
  let r = n;
23637
- return r.VehicleType ? xP[t].apiTypes.includes(r.VehicleType) ? {
23678
+ return r.VehicleType ? SP[t].apiTypes.includes(r.VehicleType) ? {
23638
23679
  status: "found",
23639
23680
  data: r
23640
23681
  } : { status: "wrong-type" } : { status: "unknown" };
23641
23682
  } catch (e) {
23642
23683
  return console.error("Error on ITC findVehicle", e), { status: "error" };
23643
23684
  }
23644
- }, KP = (e, t) => {
23645
- let n = UP(e, t), r = HP.get(n);
23646
- return r || (r = GP(e, t), HP.set(n, r), r.then(({ status: e }) => {
23647
- e === "error" && HP.delete(n);
23648
- }, () => HP.delete(n))), r;
23649
- }, qP = (e, t = {}) => {
23685
+ }, qP = (e, t) => {
23686
+ let n = WP(e, t), r = UP.get(n);
23687
+ return r || (r = KP(e, t), UP.set(n, r), r.then(({ status: e }) => {
23688
+ e === "error" && UP.delete(n);
23689
+ }, () => UP.delete(n))), r;
23690
+ }, JP = (e, t = {}) => {
23650
23691
  let n = /* @__PURE__ */ N(t.initialData ?? null), r = 0;
23651
- t.initialData?.LicensePlate && HP.set(UP(jP(t.initialData.LicensePlate), e), Promise.resolve({
23692
+ t.initialData?.LicensePlate && UP.set(WP(MP(t.initialData.LicensePlate), e), Promise.resolve({
23652
23693
  status: "found",
23653
23694
  data: t.initialData
23654
23695
  }));
23655
23696
  let i = async (t) => {
23656
- let i = jP(t), a = ++r, o = await KP(i, e);
23697
+ let i = MP(t), a = ++r, o = await qP(i, e);
23657
23698
  return a === r && (n.value = o.status === "found" ? o.data : null), o;
23658
23699
  };
23659
23700
  return {
23660
23701
  vehicleData: n,
23661
23702
  licensePlateSchema: IS().required("Dit veld is verplicht").test("license-plate-lookup", async (t, n) => {
23662
23703
  if (!t) return !0;
23663
- let r = jP(t);
23704
+ let r = MP(t);
23664
23705
  if (r.length < 6) return n.createError({ message: "Kenteken is incorrect" });
23665
23706
  let { status: a } = await i(r);
23666
- return a === "found" || n.createError({ message: WP[a](e) });
23707
+ return a === "found" || n.createError({ message: GP[a](e) });
23667
23708
  })
23668
23709
  };
23669
23710
  };
23670
- })), YP, XP, ZP = o((() => {
23671
- YP = (e) => /^\d{8}$/.test(e), XP = (e) => YP(e) ? {
23711
+ })), XP, ZP, QP = o((() => {
23712
+ XP = (e) => /^\d{8}$/.test(e), ZP = (e) => XP(e) ? {
23672
23713
  companyName: "",
23673
23714
  kvkNumber: e
23674
23715
  } : {
23675
23716
  companyName: e,
23676
23717
  kvkNumber: ""
23677
23718
  };
23678
- })), QP, $P, eF, tF, nF, rF, iF = o((() => {
23679
- QP = "bezoekadres", $P = (e) => e._embedded?.hoofdvestiging?.adressen?.find((e) => e.type === QP), eF = (e) => {
23680
- let t = $P(e), { huisnummer: n = 0, huisletter: r = "", huisnummerToevoeging: i = "", toevoegingAdres: a = "", plaats: o = "", postcode: s = "", straatnaam: c = "", volledigAdres: l = "" } = t ?? {};
23719
+ })), $P, eF, tF, nF, rF, iF, aF = o((() => {
23720
+ $P = "bezoekadres", eF = (e) => e._embedded?.hoofdvestiging?.adressen?.find((e) => e.type === $P), tF = (e) => {
23721
+ let t = eF(e), { huisnummer: n = 0, huisletter: r = "", huisnummerToevoeging: i = "", toevoegingAdres: a = "", plaats: o = "", postcode: s = "", straatnaam: c = "", volledigAdres: l = "" } = t ?? {};
23681
23722
  return {
23682
23723
  houseNumber: n,
23683
23724
  houseNumberAddition: r || i || a,
@@ -23687,7 +23728,7 @@ var NP, PP, FP = o((() => {
23687
23728
  fullAddress: l,
23688
23729
  hasVisitingAddress: !!t
23689
23730
  };
23690
- }, tF = (e = []) => {
23731
+ }, nF = (e = []) => {
23691
23732
  let [t, n, r] = e.reduce(([e, t, n], r) => {
23692
23733
  let i = {
23693
23734
  isMainActivity: r.indHoofdactiviteit,
@@ -23710,22 +23751,22 @@ var NP, PP, FP = o((() => {
23710
23751
  firstSBIs: t,
23711
23752
  secondSBIs: n
23712
23753
  };
23713
- }, nF = (e) => ({
23754
+ }, rF = (e) => ({
23714
23755
  kvkNumber: e.kvkNummer,
23715
23756
  name: e.naam,
23716
23757
  city: e.adres?.binnenlandsAdres?.plaats ?? "",
23717
23758
  street: e.adres?.binnenlandsAdres?.straatnaam ?? ""
23718
- }), rF = (e) => ({
23759
+ }), iF = (e) => ({
23719
23760
  name: e.naam,
23720
23761
  kvkNumber: e.kvkNummer,
23721
23762
  industry: e.sbiIndustryId,
23722
23763
  numberOfEmployees: e.totaalWerkzamePersonen,
23723
23764
  legalForm: e._embedded?.eigenaar?.rechtsvorm ?? "",
23724
- ...eF(e),
23725
- ...tF(e.sbiActiviteiten)
23765
+ ...tF(e),
23766
+ ...nF(e.sbiActiviteiten)
23726
23767
  });
23727
- })), aF, oF, sF, cF, lF, uF, dF = o((() => {
23728
- nP(), ZP(), iF(), aF = 30, oF = ["hoofdvestiging", "nevenvestiging"], sF = "IPD5200", cF = (e) => {
23768
+ })), oF, sF, cF, lF, uF, dF, fF = o((() => {
23769
+ rP(), QP(), aF(), oF = 30, sF = ["hoofdvestiging", "nevenvestiging"], cF = "IPD5200", lF = (e) => {
23729
23770
  let t = e, n = t?.response?.data?.fout;
23730
23771
  if (Array.isArray(n)) return n;
23731
23772
  if (Array.isArray(t?.fout)) return t.fout;
@@ -23733,26 +23774,26 @@ var NP, PP, FP = o((() => {
23733
23774
  let e = JSON.parse(t.message);
23734
23775
  if (Array.isArray(e?.fout)) return e.fout;
23735
23776
  } catch {}
23736
- }, lF = (e) => cF(e)?.some((e) => e.code === sF) ?? !1, uF = () => ({
23777
+ }, uF = (e) => lF(e)?.some((e) => e.code === cF) ?? !1, dF = () => ({
23737
23778
  search: async (e) => {
23738
23779
  try {
23739
- return ((await eP().dataService.searchBusinessInfoV2(XP(e), 1, aF))?.resultaten ?? []).filter((e) => oF.includes(e.type)).map(nF);
23780
+ return ((await tP().dataService.searchBusinessInfoV2(ZP(e), 1, oF))?.resultaten ?? []).filter((e) => sF.includes(e.type)).map(rF);
23740
23781
  } catch (e) {
23741
23782
  let t = await e;
23742
- if (lF(t)) return [];
23783
+ if (uF(t)) return [];
23743
23784
  throw t;
23744
23785
  }
23745
23786
  },
23746
23787
  getDetails: async (e) => {
23747
- let t = await eP().dataService.getProfileInfo(e);
23788
+ let t = await tP().dataService.getProfileInfo(e);
23748
23789
  return {
23749
- presenter: rF(t),
23790
+ presenter: iF(t),
23750
23791
  raw: t
23751
23792
  };
23752
23793
  }
23753
23794
  });
23754
- })), fF, pF, mF, hF, gF, _F, vF, yF, bF, xF, SF, CF = o((() => {
23755
- q(), Vb(), Sd(), dF(), fF = { class: "vd-combobox__multiline" }, pF = { class: "vd-combobox__title" }, mF = { class: "vd-combobox__subtext" }, hF = { class: "vd-combobox__subtext" }, gF = 400, _F = 3, vF = "Helaas, we hebben geen resultaten gevonden. Probeer te zoeken op de exacte naam waarmee je bedrijf is geregistreerd bij de Kamer van Koophandel, of gebruik je volledige KvK-nummer.", yF = "Typ je bedrijfsnaam of KvK-nummer", bF = "Aan het zoeken…", xF = "Er ging iets mis bij het ophalen van de gegevens. Probeer het later opnieuw.", SF = /*@__PURE__*/ L({
23795
+ })), pF, mF, hF, gF, _F, vF, yF, bF, xF, SF, CF, wF = o((() => {
23796
+ q(), Vb(), Sd(), fF(), pF = { class: "vd-combobox__multiline" }, mF = { class: "vd-combobox__title" }, hF = { class: "vd-combobox__subtext" }, gF = { class: "vd-combobox__subtext" }, _F = 400, vF = 3, yF = "Helaas, we hebben geen resultaten gevonden. Probeer te zoeken op de exacte naam waarmee je bedrijf is geregistreerd bij de Kamer van Koophandel, of gebruik je volledige KvK-nummer.", bF = "Typ je bedrijfsnaam of KvK-nummer", xF = "Aan het zoeken…", SF = "Er ging iets mis bij het ophalen van de gegevens. Probeer het later opnieuw.", CF = /*@__PURE__*/ L({
23756
23797
  inheritAttrs: !1,
23757
23798
  __name: "VdCompanySelect",
23758
23799
  props: /*@__PURE__*/ Di({
@@ -23771,7 +23812,7 @@ var NP, PP, FP = o((() => {
23771
23812
  "raw"
23772
23813
  ], ["update:modelValue"]),
23773
23814
  setup(e, { emit: t }) {
23774
- let n = t, r = Ci(), i = Si(), a = Gi(e, "modelValue"), { search: o, getDetails: s } = uF(), c = /* @__PURE__ */ N(), l = /* @__PURE__ */ N(), u = /* @__PURE__ */ N(), d = /* @__PURE__ */ N(""), f = $u(d, gF, { maxWait: 2e3 }), p = /* @__PURE__ */ N(!0), { state: m, isLoading: h, execute: g } = gd(async (e) => {
23815
+ let n = t, r = Ci(), i = Si(), a = Gi(e, "modelValue"), { search: o, getDetails: s } = dF(), c = /* @__PURE__ */ N(), l = /* @__PURE__ */ N(), u = /* @__PURE__ */ N(), d = /* @__PURE__ */ N(""), f = $u(d, _F, { maxWait: 2e3 }), p = /* @__PURE__ */ N(!0), { state: m, isLoading: h, execute: g } = gd(async (e) => {
23775
23816
  try {
23776
23817
  return {
23777
23818
  results: await o(e),
@@ -23794,20 +23835,20 @@ var NP, PP, FP = o((() => {
23794
23835
  let { presenter: t, raw: r } = await s(e);
23795
23836
  return a.value = t, n("raw", r), n("error", null), t;
23796
23837
  } catch (e) {
23797
- throw a.value = null, n("raw", null), u.value = void 0, c.value = void 0, n("error", xF), e;
23838
+ throw a.value = null, n("raw", null), u.value = void 0, c.value = void 0, n("error", SF), e;
23798
23839
  }
23799
23840
  }, null, {
23800
23841
  immediate: !1,
23801
23842
  resetOnExecute: !0
23802
- }), y = K(() => d.value.length >= _F), b = K(() => y.value ? h.value || d.value !== f.value ? "searching" : m.value.failed ? "error" : m.value.results.length ? "idle" : "no-results" : "idle"), x = K(() => b.value === "searching" ? [] : y.value ? m.value.results : p.value && u.value ? [u.value] : []), S = K(() => b.value === "searching" || _.value), C = K(() => !!a.value && !S.value), w = K(() => {
23843
+ }), y = K(() => d.value.length >= vF), b = K(() => y.value ? h.value || d.value !== f.value ? "searching" : m.value.failed ? "error" : m.value.results.length ? "idle" : "no-results" : "idle"), x = K(() => b.value === "searching" ? [] : y.value ? m.value.results : p.value && u.value ? [u.value] : []), S = K(() => b.value === "searching" || _.value), C = K(() => !!a.value && !S.value), w = K(() => {
23803
23844
  let e = a.value;
23804
23845
  return !e || S.value ? "" : e.fullAddress ? `Kvk: ${e.kvkNumber} ${e.fullAddress}` : `Kvk: ${e.kvkNumber}`;
23805
23846
  }), T = K(() => {
23806
23847
  switch (b.value) {
23807
- case "searching": return bF;
23808
- case "error": return xF;
23809
- case "no-results": return vF;
23810
- default: return yF;
23848
+ case "searching": return xF;
23849
+ case "error": return SF;
23850
+ case "no-results": return yF;
23851
+ default: return bF;
23811
23852
  }
23812
23853
  }), ee = (e) => {
23813
23854
  u.value = e, p.value = !0, e.kvkNumber === a.value?.kvkNumber ? n("error", null) : v(0, e.kvkNumber);
@@ -23825,7 +23866,7 @@ var NP, PP, FP = o((() => {
23825
23866
  return I(l, (e) => {
23826
23867
  e || (d.value = "", p.value = !0);
23827
23868
  }), I(f, (e) => {
23828
- e && e.length >= _F && g(0, e);
23869
+ e && e.length >= vF && g(0, e);
23829
23870
  }), I(a, (e) => {
23830
23871
  c.value = e ? ne(e) : void 0, p.value = !0, e || (u.value = void 0, n("raw", null));
23831
23872
  }, { immediate: !0 }), (t, n) => (z(), V(Bb, W(P(r), {
@@ -23853,10 +23894,10 @@ var NP, PP, FP = o((() => {
23853
23894
  onBlur: E,
23854
23895
  onSearch: te
23855
23896
  }), fi({
23856
- item: F(({ option: e }) => [H("div", fF, [
23857
- H("div", pF, Re(e.name), 1),
23858
- H("span", mF, "Kvk: " + Re(e.kvkNumber), 1),
23859
- H("span", hF, Re(e.city) + ", " + Re(e.street), 1)
23897
+ item: F(({ option: e }) => [H("div", pF, [
23898
+ H("div", mF, Re(e.name), 1),
23899
+ H("span", hF, "Kvk: " + Re(e.kvkNumber), 1),
23900
+ H("span", gF, Re(e.city) + ", " + Re(e.street), 1)
23860
23901
  ])]),
23861
23902
  _: 2
23862
23903
  }, [P(i).popover ? {
@@ -23883,31 +23924,31 @@ var NP, PP, FP = o((() => {
23883
23924
  ]));
23884
23925
  }
23885
23926
  });
23886
- })), wF, TF = o((() => {
23887
- CF(), CF(), wF = SF;
23888
- })), EF, DF = o((() => {
23889
- GC(), EF = (e = "Bedrijfsnaam of KVK-nummer is verplicht") => jS().nullable().required(e).test("has-kvk-number", e, (e) => !!e?.kvkNumber);
23890
- })), OF = o((() => {
23891
- Rd(), Iv(), Xv(), Vb(), ax(), dx(), Rx(), rS(), Gx(), Jx(), sS(), dS(), hS(), cw(), bP(), VP(), JP(), TF(), dF(), DF();
23892
- })), kF, AF = o((() => {
23893
- kF = {
23927
+ })), TF, EF = o((() => {
23928
+ wF(), wF(), TF = CF;
23929
+ })), DF, OF = o((() => {
23930
+ GC(), DF = (e = "Bedrijfsnaam of KVK-nummer is verplicht") => jS().nullable().required(e).test("has-kvk-number", e, (e) => !!e?.kvkNumber);
23931
+ })), kF = o((() => {
23932
+ Rd(), Iv(), Xv(), Vb(), ax(), dx(), Rx(), rS(), Gx(), Jx(), sS(), dS(), hS(), cw(), xP(), HP(), YP(), EF(), fF(), OF();
23933
+ })), AF, jF = o((() => {
23934
+ AF = {
23894
23935
  min: 18,
23895
23936
  max: 99
23896
23937
  };
23897
- })), jF, MF = o((() => {
23898
- jF = "DD-MM-YYYY";
23899
- })), NF, PF = o((() => {
23900
- Nd(), NF = [
23938
+ })), MF, NF = o((() => {
23939
+ MF = "DD-MM-YYYY";
23940
+ })), PF, FF = o((() => {
23941
+ Nd(), PF = [
23901
23942
  kd.SingleWithoutChildren,
23902
23943
  kd.FamilyWithoutChildren,
23903
23944
  kd.SingleWithChildren,
23904
23945
  kd.FamilyWithChildren
23905
23946
  ];
23906
- })), FF, IF = o((() => {
23907
- Nd(), FF = [jd.Yes, jd.No];
23908
- })), LF = o((() => {
23909
- AF(), MF(), PF(), IF();
23910
- })), RF = /* @__PURE__ */ s(((e, t) => {
23947
+ })), IF, LF = o((() => {
23948
+ Nd(), IF = [jd.Yes, jd.No];
23949
+ })), RF = o((() => {
23950
+ jF(), NF(), FF(), LF();
23951
+ })), zF = /* @__PURE__ */ s(((e, t) => {
23911
23952
  (function(n, r) {
23912
23953
  typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs = r();
23913
23954
  })(e, (function() {
@@ -24201,7 +24242,7 @@ var NP, PP, FP = o((() => {
24201
24242
  return w(1e3 * e);
24202
24243
  }, w.en = b[y], w.Ls = b, w.p = {}, w;
24203
24244
  }));
24204
- })), zF = /* @__PURE__ */ s(((e, t) => {
24245
+ })), BF = /* @__PURE__ */ s(((e, t) => {
24205
24246
  (function(n, r) {
24206
24247
  typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_plugin_customParseFormat = r();
24207
24248
  })(e, (function() {
@@ -24360,38 +24401,38 @@ var NP, PP, FP = o((() => {
24360
24401
  }));
24361
24402
  //#endregion
24362
24403
  //#region src/utils/date.util.ts
24363
- function BF() {
24364
- return (0, WF.default)().startOf("day");
24365
- }
24366
24404
  function VF() {
24367
- return BF().year();
24405
+ return (0, GF.default)().startOf("day");
24368
24406
  }
24369
- function HF(e, t) {
24370
- let n = (0, WF.default)(e ?? "", t, !0);
24371
- return n.isValid() ? n.startOf("day") : null;
24407
+ function HF() {
24408
+ return VF().year();
24372
24409
  }
24373
24410
  function UF(e, t) {
24374
- let n = BF();
24411
+ let n = (0, GF.default)(e ?? "", t, !0);
24412
+ return n.isValid() ? n.startOf("day") : null;
24413
+ }
24414
+ function WF(e, t) {
24415
+ let n = VF();
24375
24416
  return {
24376
24417
  today: n,
24377
24418
  earliest: n.subtract(t.value + 1, t.unit).add(1, "day"),
24378
24419
  latest: n.subtract(e.value, e.unit)
24379
24420
  };
24380
24421
  }
24381
- var WF, GF, KF = o((() => {
24382
- WF = /* @__PURE__ */ u(RF(), 1), GF = /* @__PURE__ */ u(zF(), 1), WF.default.extend(GF.default);
24422
+ var GF, KF, qF = o((() => {
24423
+ GF = /* @__PURE__ */ u(zF(), 1), KF = /* @__PURE__ */ u(BF(), 1), GF.default.extend(KF.default);
24383
24424
  }));
24384
24425
  //#endregion
24385
24426
  //#region src/utils/familyComposition.util.ts
24386
- function qF(e) {
24387
- return JF.includes(e);
24427
+ function JF(e) {
24428
+ return YF.includes(e);
24388
24429
  }
24389
- var JF, YF = o((() => {
24390
- Nd(), JF = [kd.FamilyWithChildren, kd.FamilyWithoutChildren];
24430
+ var YF, XF = o((() => {
24431
+ Nd(), YF = [kd.FamilyWithChildren, kd.FamilyWithoutChildren];
24391
24432
  }));
24392
24433
  //#endregion
24393
24434
  //#region src/utils/normalizeInitialData.util.ts
24394
- function XF(e) {
24435
+ function ZF(e) {
24395
24436
  if (e == null) return {};
24396
24437
  if (typeof e == "string") {
24397
24438
  let t = e.trim();
@@ -24406,20 +24447,20 @@ function XF(e) {
24406
24447
  }
24407
24448
  return Wy(e) ? { data: e } : { error: /* @__PURE__ */ Error("initial-data must be an object") };
24408
24449
  }
24409
- var ZF = o((() => {
24450
+ var QF = o((() => {
24410
24451
  nb();
24411
- })), QF = o((() => {
24412
- KF(), YF(), ZF();
24452
+ })), $F = o((() => {
24453
+ qF(), XF(), QF();
24413
24454
  }));
24414
24455
  //#endregion
24415
24456
  //#region src/schemas/birthdateRange.ts
24416
- function $F(e, t, n = "ageRange") {
24457
+ function eI(e, t, n = "ageRange") {
24417
24458
  return {
24418
24459
  name: n,
24419
24460
  test(n, r) {
24420
- let i = HF(n, jF);
24461
+ let i = UF(n, MF);
24421
24462
  if (!i) return !0;
24422
- let { today: a, earliest: o, latest: s } = UF(e.min, e.max), c = {
24463
+ let { today: a, earliest: o, latest: s } = WF(e.min, e.max), c = {
24423
24464
  earliest: o,
24424
24465
  latest: s
24425
24466
  };
@@ -24427,10 +24468,10 @@ function $F(e, t, n = "ageRange") {
24427
24468
  }
24428
24469
  };
24429
24470
  }
24430
- var eI = o((() => {
24431
- RF(), GC(), LF(), QF();
24432
- })), tI, nI = o((() => {
24433
- tI = {
24471
+ var tI = o((() => {
24472
+ zF(), GC(), RF(), $F();
24473
+ })), nI, rI = o((() => {
24474
+ nI = {
24434
24475
  birthdate: {
24435
24476
  required: "Geboortedatum is verplicht",
24436
24477
  dateFormat: "Geboortedatum is incorrect",
@@ -24470,11 +24511,11 @@ var eI = o((() => {
24470
24511
  }));
24471
24512
  //#endregion
24472
24513
  //#region src/schemas/birthdate.schema.ts
24473
- function rI(e) {
24474
- return HF(e, jF) !== null;
24514
+ function iI(e) {
24515
+ return UF(e, MF) !== null;
24475
24516
  }
24476
- function iI(e = kF) {
24477
- return IS().required(tI.birthdate.required).test("date_format", tI.birthdate.dateFormat, rI).test($F({
24517
+ function aI(e = AF) {
24518
+ return IS().required(nI.birthdate.required).test("date_format", nI.birthdate.dateFormat, iI).test(eI({
24478
24519
  min: {
24479
24520
  value: e.min,
24480
24521
  unit: "year"
@@ -24484,69 +24525,69 @@ function iI(e = kF) {
24484
24525
  unit: "year"
24485
24526
  }
24486
24527
  }, {
24487
- tooYoung: () => tI.birthdate.tooYoung(e.min),
24488
- tooOld: () => tI.birthdate.tooOld(e.max)
24528
+ tooYoung: () => nI.birthdate.tooYoung(e.min),
24529
+ tooOld: () => nI.birthdate.tooOld(e.max)
24489
24530
  }));
24490
24531
  }
24491
- var aI = o((() => {
24492
- GC(), LF(), QF(), eI(), nI();
24532
+ var oI = o((() => {
24533
+ GC(), RF(), $F(), tI(), rI();
24493
24534
  }));
24494
24535
  //#endregion
24495
24536
  //#region src/schemas/rules.ts
24496
- function oI(e, t) {
24537
+ function sI(e, t) {
24497
24538
  return IS().required(t).oneOf(e, t);
24498
24539
  }
24499
- function sI(e) {
24540
+ function cI(e) {
24500
24541
  return IS().required(e);
24501
24542
  }
24502
- function cI(e) {
24543
+ function lI(e) {
24503
24544
  return LS().typeError(e).required(e);
24504
24545
  }
24505
- var lI = o((() => {
24546
+ var uI = o((() => {
24506
24547
  GC();
24507
24548
  }));
24508
24549
  //#endregion
24509
24550
  //#region src/schemas/familyComposition.schema.ts
24510
- function uI(e = tI.familyComposition.required) {
24511
- return oI(NF, e);
24512
- }
24513
- var dI, fI = o((() => {
24514
- GC(), LF(), lI(), nI(), dI = uI();
24515
- })), pI, mI = o((() => {
24516
- GC(), LF(), lI(), nI(), pI = oI(FF, tI.ownedBuilding.required);
24517
- })), hI = o((() => {
24518
- aI(), eI(), fI(), mI(), lI(), nI();
24519
- })), gI, _I, vI, yI, bI = o((() => {
24520
- gI = [1, 7], _I = [3, 4], vI = {
24551
+ function dI(e = nI.familyComposition.required) {
24552
+ return sI(PF, e);
24553
+ }
24554
+ var fI, pI = o((() => {
24555
+ GC(), RF(), uI(), rI(), fI = dI();
24556
+ })), mI, hI = o((() => {
24557
+ GC(), RF(), uI(), rI(), mI = sI(IF, nI.ownedBuilding.required);
24558
+ })), gI = o((() => {
24559
+ oI(), tI(), pI(), hI(), uI(), rI();
24560
+ })), _I, vI, yI, bI, xI = o((() => {
24561
+ _I = [1, 7], vI = [3, 4], yI = {
24521
24562
  raceOrMtb: 15e3,
24522
24563
  default: 9999
24523
- }, yI = {
24564
+ }, bI = {
24524
24565
  mask: "N####",
24525
24566
  tokens: { N: { pattern: /[1-9]/ } }
24526
24567
  };
24527
- })), xI, SI, CI = o((() => {
24528
- GC(), hI(), bI(), xI = (e, t) => e.test("max-value", tI.bike.priceMax(t), (e) => {
24568
+ })), SI, CI, wI = o((() => {
24569
+ GC(), gI(), xI(), SI = (e, t) => e.test("max-value", nI.bike.priceMax(t), (e) => {
24529
24570
  let n = Number(e);
24530
24571
  return Number.isNaN(n) || n <= t;
24531
- }), SI = WS({
24532
- kind: cI(tI.bike.kindRequired),
24533
- condition: cI(tI.bike.conditionRequired),
24534
- price: IS().required(tI.bike.priceRequired).test("min-value", tI.bike.priceMin, (e) => {
24572
+ }), CI = WS({
24573
+ kind: lI(nI.bike.kindRequired),
24574
+ condition: lI(nI.bike.conditionRequired),
24575
+ price: IS().required(nI.bike.priceRequired).test("min-value", nI.bike.priceMin, (e) => {
24535
24576
  if (!e) return !0;
24536
24577
  let t = Number(e);
24537
24578
  return Number.isNaN(t) || t > 0;
24538
24579
  }).when("kind", {
24539
- is: (e) => _I.includes(Number(e)),
24540
- then: (e) => xI(e, vI.raceOrMtb),
24541
- otherwise: (e) => xI(e, vI.default)
24580
+ is: (e) => vI.includes(Number(e)),
24581
+ then: (e) => SI(e, yI.raceOrMtb),
24582
+ otherwise: (e) => SI(e, yI.default)
24542
24583
  }),
24543
24584
  brand: IS().when("kind", {
24544
- is: (e) => gI.includes(Number(e)),
24545
- then: (e) => e.required(tI.bike.brandRequired)
24585
+ is: (e) => _I.includes(Number(e)),
24586
+ then: (e) => e.required(nI.bike.brandRequired)
24546
24587
  })
24547
24588
  });
24548
- })), wI, TI = o((() => {
24549
- wI = [
24589
+ })), TI, EI = o((() => {
24590
+ TI = [
24550
24591
  {
24551
24592
  value: 4,
24552
24593
  title: "ATB / Mountainbike",
@@ -24614,16 +24655,16 @@ var dI, fI = o((() => {
24614
24655
  isEBike: !1
24615
24656
  }
24616
24657
  ];
24617
- })), EI, DI = o((() => {
24618
- EI = [{
24658
+ })), DI, OI = o((() => {
24659
+ DI = [{
24619
24660
  value: 1,
24620
24661
  label: "Nieuw"
24621
24662
  }, {
24622
24663
  value: 0,
24623
24664
  label: "Tweedehands"
24624
24665
  }];
24625
- })), OI, kI = o((() => {
24626
- OI = [
24666
+ })), kI, AI = o((() => {
24667
+ kI = [
24627
24668
  {
24628
24669
  id: "Ander merk",
24629
24670
  name: "Ander merk"
@@ -26045,10 +26086,10 @@ var dI, fI = o((() => {
26045
26086
  name: "Zündapp"
26046
26087
  }
26047
26088
  ];
26048
- })), AI = o((() => {
26049
- TI(), DI(), kI();
26050
- })), jI, MI = o((() => {
26051
- q(), OF(), Ed(), tw(), CI(), AI(), bI(), jI = /*@__PURE__*/ L({
26089
+ })), jI = o((() => {
26090
+ EI(), OI(), AI();
26091
+ })), MI, NI = o((() => {
26092
+ q(), kF(), Ed(), tw(), wI(), jI(), xI(), MI = /*@__PURE__*/ L({
26052
26093
  __name: "BikeForm",
26053
26094
  props: /*@__PURE__*/ Ei({
26054
26095
  initialData: {},
@@ -26067,14 +26108,14 @@ var dI, fI = o((() => {
26067
26108
  }),
26068
26109
  emits: ["submitted"],
26069
26110
  setup(e, { emit: t }) {
26070
- let n = e, r = Cd(n), i = t, { isSubmitting: a, handleSubmit: o, defineField: s, resetField: c } = $C(SI, {
26111
+ let n = e, r = Cd(n), i = t, { isSubmitting: a, handleSubmit: o, defineField: s, resetField: c } = $C(CI, {
26071
26112
  kind: n.initialData?.kind ?? null,
26072
26113
  condition: n.initialData?.condition ?? 1,
26073
26114
  price: n.initialData?.price ?? "",
26074
26115
  brand: n.initialData?.brand ?? ""
26075
- }), [l, u, d] = s("kind", { validateAt: "change" }), [f, p, m] = s("brand", { validateAt: "change" }), [h, g, _] = s("condition"), [v, y, b] = s("price"), x = K(() => gI.includes(Number(l.value)));
26116
+ }), [l, u, d] = s("kind", { validateAt: "change" }), [f, p, m] = s("brand", { validateAt: "change" }), [h, g, _] = s("condition"), [v, y, b] = s("price"), x = K(() => _I.includes(Number(l.value)));
26076
26117
  I(l, (e) => {
26077
- gI.includes(Number(e)) || c("brand", { value: "" });
26118
+ _I.includes(Number(e)) || c("brand", { value: "" });
26078
26119
  }, { immediate: !0 });
26079
26120
  function S() {
26080
26121
  o((e) => {
@@ -26095,7 +26136,7 @@ var dI, fI = o((() => {
26095
26136
  "onUpdate:modelValue": n[0] ||= (e) => /* @__PURE__ */ M(l) ? l.value = e : null,
26096
26137
  modelModifiers: { number: !0 },
26097
26138
  label: "Soort fiets",
26098
- options: P(wI),
26139
+ options: P(TI),
26099
26140
  name: "kind",
26100
26141
  required: !1,
26101
26142
  "error-message": P(d)
@@ -26116,7 +26157,7 @@ var dI, fI = o((() => {
26116
26157
  "onUpdate:modelValue": n[1] ||= (e) => /* @__PURE__ */ M(f) ? f.value = e : null,
26117
26158
  label: "Merk fiets",
26118
26159
  placeholder: "Typ of kies je merk",
26119
- options: P(OI),
26160
+ options: P(kI),
26120
26161
  "label-key": "name",
26121
26162
  "value-key": "id",
26122
26163
  name: "brand",
@@ -26138,7 +26179,7 @@ var dI, fI = o((() => {
26138
26179
  "onUpdate:modelValue": n[2] ||= (e) => /* @__PURE__ */ M(h) ? h.value = e : null,
26139
26180
  legend: "Gekocht als",
26140
26181
  name: "condition",
26141
- options: P(EI),
26182
+ options: P(DI),
26142
26183
  variant: "boxed",
26143
26184
  required: !1,
26144
26185
  "error-message": P(_)
@@ -26160,7 +26201,7 @@ var dI, fI = o((() => {
26160
26201
  placeholder: "bv. 1 000",
26161
26202
  icon: "far fa-euro-sign",
26162
26203
  name: "price",
26163
- mask: P(yI),
26204
+ mask: P(bI),
26164
26205
  inputmode: "numeric",
26165
26206
  required: !1,
26166
26207
  "error-message": P(b)
@@ -26176,12 +26217,12 @@ var dI, fI = o((() => {
26176
26217
  }, 16, ["submit-disabled"]));
26177
26218
  }
26178
26219
  });
26179
- })), NI, PI = o((() => {
26180
- MI(), MI(), NI = jI;
26220
+ })), PI, FI = o((() => {
26221
+ NI(), NI(), PI = MI;
26181
26222
  }));
26182
26223
  //#endregion
26183
26224
  //#region src/comparisons/bike/bike.presenter.ts
26184
- function FI(e) {
26225
+ function II(e) {
26185
26226
  return {
26186
26227
  comparison: Dd.Bike,
26187
26228
  detail: { bike: {
@@ -26193,39 +26234,39 @@ function FI(e) {
26193
26234
  user: {}
26194
26235
  };
26195
26236
  }
26196
- var II = o((() => {
26237
+ var LI = o((() => {
26197
26238
  Nd();
26198
- })), LI = /* @__PURE__ */ c({
26199
- Form: () => NI,
26200
- presenter: () => FI
26201
- }), RI = o((() => {
26202
- PI(), II();
26203
- })), zI, BI, VI = o((() => {
26204
- zI = {
26239
+ })), RI = /* @__PURE__ */ c({
26240
+ Form: () => PI,
26241
+ presenter: () => II
26242
+ }), zI = o((() => {
26243
+ FI(), LI();
26244
+ })), BI, VI, HI = o((() => {
26245
+ BI = {
26205
26246
  min: 0,
26206
26247
  max: 99
26207
- }, BI = /^\d{4}\s?[a-zA-Z]{2}$/;
26208
- })), HI, UI = o((() => {
26209
- GC(), LF(), hI(), VI(), HI = WS({
26210
- kind: IS().required(tI.pet.kindRequired),
26211
- age: IS().required(tI.birthdate.required).test("date_format", tI.birthdate.dateFormat, rI).test($F({
26248
+ }, VI = /^\d{4}\s?[a-zA-Z]{2}$/;
26249
+ })), UI, WI = o((() => {
26250
+ GC(), RF(), gI(), HI(), UI = WS({
26251
+ kind: IS().required(nI.pet.kindRequired),
26252
+ age: IS().required(nI.birthdate.required).test("date_format", nI.birthdate.dateFormat, iI).test(eI({
26212
26253
  min: {
26213
26254
  value: 7,
26214
26255
  unit: "week"
26215
26256
  },
26216
26257
  max: {
26217
- value: zI.max,
26258
+ value: BI.max,
26218
26259
  unit: "year"
26219
26260
  }
26220
26261
  }, {
26221
- future: () => tI.birthdate.tooYoung(zI.min),
26222
- tooYoung: ({ earliest: e, latest: t }) => tI.pet.outOfRange(e.format(jF), t.format(jF)),
26223
- tooOld: () => tI.birthdate.tooOld(zI.max)
26262
+ future: () => nI.birthdate.tooYoung(BI.min),
26263
+ tooYoung: ({ earliest: e, latest: t }) => nI.pet.outOfRange(e.format(MF), t.format(MF)),
26264
+ tooOld: () => nI.birthdate.tooOld(BI.max)
26224
26265
  }, "birthdate_range")),
26225
- zipCode: IS().required(tI.pet.zipCodeRequired).matches(BI, tI.pet.zipCodeInvalid)
26266
+ zipCode: IS().required(nI.pet.zipCodeRequired).matches(VI, nI.pet.zipCodeInvalid)
26226
26267
  });
26227
- })), WI, GI = o((() => {
26228
- WI = [
26268
+ })), GI, KI = o((() => {
26269
+ GI = [
26229
26270
  {
26230
26271
  title: "Hond",
26231
26272
  value: "dog"
@@ -26243,8 +26284,8 @@ var II = o((() => {
26243
26284
  value: "bird"
26244
26285
  }
26245
26286
  ];
26246
- })), KI, qI = o((() => {
26247
- q(), OF(), Ed(), tw(), UI(), GI(), KI = /*@__PURE__*/ L({
26287
+ })), qI, JI = o((() => {
26288
+ q(), kF(), Ed(), tw(), WI(), KI(), qI = /*@__PURE__*/ L({
26248
26289
  __name: "PetForm",
26249
26290
  props: /*@__PURE__*/ Ei({
26250
26291
  initialData: {},
@@ -26263,7 +26304,7 @@ var II = o((() => {
26263
26304
  }),
26264
26305
  emits: ["submitted"],
26265
26306
  setup(e, { emit: t }) {
26266
- let n = e, r = Cd(n), i = t, { isSubmitting: a, handleSubmit: o, defineField: s } = $C(HI, {
26307
+ let n = e, r = Cd(n), i = t, { isSubmitting: a, handleSubmit: o, defineField: s } = $C(UI, {
26267
26308
  kind: n.initialData?.kind ?? "dog",
26268
26309
  age: n.initialData?.age ?? "",
26269
26310
  zipCode: n.initialData?.zipCode ?? ""
@@ -26287,7 +26328,7 @@ var II = o((() => {
26287
26328
  "onUpdate:modelValue": n[0] ||= (e) => /* @__PURE__ */ M(c) ? c.value = e : null,
26288
26329
  label: "Wat voor huisdier wil je verzekeren?",
26289
26330
  placeholder: "",
26290
- options: P(WI),
26331
+ options: P(GI),
26291
26332
  name: "kind",
26292
26333
  required: !1,
26293
26334
  "error-message": P(u)
@@ -26354,12 +26395,12 @@ var II = o((() => {
26354
26395
  }, 16, ["submit-disabled"]));
26355
26396
  }
26356
26397
  });
26357
- })), JI, YI = o((() => {
26358
- qI(), qI(), JI = KI;
26398
+ })), YI, XI = o((() => {
26399
+ JI(), JI(), YI = qI;
26359
26400
  }));
26360
26401
  //#endregion
26361
26402
  //#region src/comparisons/pet/pet.presenter.ts
26362
- function XI(e) {
26403
+ function ZI(e) {
26363
26404
  return {
26364
26405
  comparison: Dd.Pet,
26365
26406
  detail: { pet: {
@@ -26369,21 +26410,21 @@ function XI(e) {
26369
26410
  user: { zipCode: e.zipCode }
26370
26411
  };
26371
26412
  }
26372
- var ZI = o((() => {
26413
+ var QI = o((() => {
26373
26414
  Nd();
26374
- })), QI = /* @__PURE__ */ c({
26375
- Form: () => JI,
26376
- presenter: () => XI
26377
- }), $I = o((() => {
26378
- YI(), ZI();
26379
- })), eL, tL = o((() => {
26380
- GC(), hI(), LF(), eL = WS({
26381
- TypeOfCaravan: sI(tI.caravan.typeOfCaravanRequired),
26382
- NewOrOccasion: oI(FF, tI.caravan.newOrOccasionRequired),
26383
- BuildYear: sI(tI.caravan.buildYearRequired)
26415
+ })), $I = /* @__PURE__ */ c({
26416
+ Form: () => YI,
26417
+ presenter: () => ZI
26418
+ }), eL = o((() => {
26419
+ XI(), QI();
26420
+ })), tL, nL = o((() => {
26421
+ GC(), gI(), RF(), tL = WS({
26422
+ TypeOfCaravan: cI(nI.caravan.typeOfCaravanRequired),
26423
+ NewOrOccasion: sI(IF, nI.caravan.newOrOccasionRequired),
26424
+ BuildYear: cI(nI.caravan.buildYearRequired)
26384
26425
  });
26385
- })), nL, rL = o((() => {
26386
- nL = [
26426
+ })), rL, iL = o((() => {
26427
+ rL = [
26387
26428
  {
26388
26429
  value: "CS",
26389
26430
  title: "Stacaravan"
@@ -26397,30 +26438,30 @@ var ZI = o((() => {
26397
26438
  title: "Vouwwagen"
26398
26439
  }
26399
26440
  ];
26400
- })), iL, aL = o((() => {
26401
- Nd(), iL = [{
26441
+ })), aL, oL = o((() => {
26442
+ Nd(), aL = [{
26402
26443
  value: jd.Yes,
26403
26444
  label: "Nieuw"
26404
26445
  }, {
26405
26446
  value: jd.No,
26406
26447
  label: "Occasion"
26407
26448
  }];
26408
- })), oL = o((() => {}));
26449
+ })), sL = o((() => {}));
26409
26450
  //#endregion
26410
26451
  //#region src/comparisons/caravan/models/buildYears.model.ts
26411
- function sL() {
26412
- let e = VF();
26452
+ function cL() {
26453
+ let e = HF();
26413
26454
  return Array.from({ length: 126 }, (t, n) => ({
26414
26455
  title: String(e - n),
26415
26456
  value: String(e - n)
26416
26457
  }));
26417
26458
  }
26418
- var cL = o((() => {
26419
- QF(), oL();
26420
- })), lL = o((() => {
26421
- rL(), aL(), cL();
26422
- })), uL, dL = o((() => {
26423
- q(), OF(), Ed(), tw(), Nd(), tL(), lL(), uL = /*@__PURE__*/ L({
26459
+ var lL = o((() => {
26460
+ $F(), sL();
26461
+ })), uL = o((() => {
26462
+ iL(), oL(), lL();
26463
+ })), dL, fL = o((() => {
26464
+ q(), kF(), Ed(), tw(), Nd(), nL(), uL(), dL = /*@__PURE__*/ L({
26424
26465
  __name: "CaravanForm",
26425
26466
  props: /*@__PURE__*/ Ei({
26426
26467
  initialData: {},
@@ -26439,7 +26480,7 @@ var cL = o((() => {
26439
26480
  }),
26440
26481
  emits: ["submitted"],
26441
26482
  setup(e, { emit: t }) {
26442
- let n = e, r = Cd(n), i = t, a = sL(), { isSubmitting: o, handleSubmit: s, defineField: c } = $C(eL, {
26483
+ let n = e, r = Cd(n), i = t, a = cL(), { isSubmitting: o, handleSubmit: s, defineField: c } = $C(tL, {
26443
26484
  TypeOfCaravan: n.initialData?.TypeOfCaravan ?? null,
26444
26485
  NewOrOccasion: n.initialData?.NewOrOccasion ?? jd.Yes,
26445
26486
  BuildYear: n.initialData?.BuildYear ?? null
@@ -26462,7 +26503,7 @@ var cL = o((() => {
26462
26503
  modelValue: P(l),
26463
26504
  "onUpdate:modelValue": n[0] ||= (e) => /* @__PURE__ */ M(l) ? l.value = e : null,
26464
26505
  label: "Soort caravan",
26465
- options: P(nL),
26506
+ options: P(rL),
26466
26507
  name: "typeOfCaravan",
26467
26508
  required: !1,
26468
26509
  "error-message": P(d)
@@ -26482,7 +26523,7 @@ var cL = o((() => {
26482
26523
  "onUpdate:modelValue": n[1] ||= (e) => /* @__PURE__ */ M(f) ? f.value = e : null,
26483
26524
  legend: "Gekocht als",
26484
26525
  name: "newOrOccasion",
26485
- options: P(iL),
26526
+ options: P(aL),
26486
26527
  variant: "boxed",
26487
26528
  required: !1,
26488
26529
  "error-message": P(m)
@@ -26517,12 +26558,12 @@ var cL = o((() => {
26517
26558
  }, 16, ["submit-disabled"]));
26518
26559
  }
26519
26560
  });
26520
- })), fL, pL = o((() => {
26521
- dL(), dL(), fL = uL;
26561
+ })), pL, mL = o((() => {
26562
+ fL(), fL(), pL = dL;
26522
26563
  }));
26523
26564
  //#endregion
26524
26565
  //#region src/comparisons/caravan/caravan.presenter.ts
26525
- function mL(e) {
26566
+ function hL(e) {
26526
26567
  return {
26527
26568
  comparison: Dd.Caravan,
26528
26569
  detail: { caravan: {
@@ -26533,32 +26574,32 @@ function mL(e) {
26533
26574
  user: {}
26534
26575
  };
26535
26576
  }
26536
- var hL = o((() => {
26577
+ var gL = o((() => {
26537
26578
  Nd();
26538
- })), gL = /* @__PURE__ */ c({
26539
- Form: () => fL,
26540
- presenter: () => mL
26541
- }), _L = o((() => {
26542
- pL(), hL();
26543
- })), vL, yL = o((() => {
26544
- vL = /* @__PURE__ */ function(e) {
26579
+ })), _L = /* @__PURE__ */ c({
26580
+ Form: () => pL,
26581
+ presenter: () => hL
26582
+ }), vL = o((() => {
26583
+ mL(), gL();
26584
+ })), yL, bL = o((() => {
26585
+ yL = /* @__PURE__ */ function(e) {
26545
26586
  return e.Continuous = "L", e.ShortTerm = "S", e;
26546
26587
  }({});
26547
- })), bL, xL, SL = o((() => {
26548
- GC(), hI(), yL(), bL = [vL.Continuous, vL.ShortTerm], xL = WS({
26549
- PaymentTerm: oI(bL, tI.travel.paymentTermRequired),
26550
- birthdate: iI()
26588
+ })), xL, SL, CL = o((() => {
26589
+ GC(), gI(), bL(), xL = [yL.Continuous, yL.ShortTerm], SL = WS({
26590
+ PaymentTerm: sI(xL, nI.travel.paymentTermRequired),
26591
+ birthdate: aI()
26551
26592
  });
26552
- })), CL, wL = o((() => {
26553
- yL(), CL = [{
26554
- value: vL.Continuous,
26593
+ })), wL, TL = o((() => {
26594
+ bL(), wL = [{
26595
+ value: yL.Continuous,
26555
26596
  label: "Doorlopend"
26556
26597
  }, {
26557
- value: vL.ShortTerm,
26598
+ value: yL.ShortTerm,
26558
26599
  label: "Kortlopend"
26559
26600
  }];
26560
- })), TL, EL = o((() => {
26561
- q(), OF(), Ed(), tw(), SL(), wL(), yL(), TL = /*@__PURE__*/ L({
26601
+ })), EL, DL = o((() => {
26602
+ q(), kF(), Ed(), tw(), CL(), TL(), bL(), EL = /*@__PURE__*/ L({
26562
26603
  __name: "TravelForm",
26563
26604
  props: /*@__PURE__*/ Ei({
26564
26605
  initialData: {},
@@ -26577,8 +26618,8 @@ var hL = o((() => {
26577
26618
  }),
26578
26619
  emits: ["submitted"],
26579
26620
  setup(e, { emit: t }) {
26580
- let n = e, r = Cd(n), i = t, { isSubmitting: a, handleSubmit: o, defineField: s } = $C(xL, {
26581
- PaymentTerm: n.initialData?.PaymentTerm ?? vL.Continuous,
26621
+ let n = e, r = Cd(n), i = t, { isSubmitting: a, handleSubmit: o, defineField: s } = $C(SL, {
26622
+ PaymentTerm: n.initialData?.PaymentTerm ?? yL.Continuous,
26582
26623
  birthdate: n.initialData?.birthdate ?? ""
26583
26624
  }), [c, l, u] = s("PaymentTerm", { validateAt: "change" }), [d, f, p] = s("birthdate");
26584
26625
  function m() {
@@ -26599,7 +26640,7 @@ var hL = o((() => {
26599
26640
  "onUpdate:modelValue": n[0] ||= (e) => /* @__PURE__ */ M(c) ? c.value = e : null,
26600
26641
  legend: "Kies je dekking",
26601
26642
  name: "PaymentTerm",
26602
- options: P(CL),
26643
+ options: P(wL),
26603
26644
  variant: "boxed",
26604
26645
  required: !1,
26605
26646
  "error-message": P(u)
@@ -26635,33 +26676,33 @@ var hL = o((() => {
26635
26676
  }, 16, ["submit-disabled"]));
26636
26677
  }
26637
26678
  });
26638
- })), DL, OL = o((() => {
26639
- EL(), EL(), DL = TL;
26679
+ })), OL, kL = o((() => {
26680
+ DL(), DL(), OL = EL;
26640
26681
  }));
26641
26682
  //#endregion
26642
26683
  //#region src/comparisons/travel/travel.presenter.ts
26643
- function kL(e) {
26684
+ function AL(e) {
26644
26685
  return {
26645
26686
  comparison: Dd.Travel,
26646
26687
  detail: { comparison: { PaymentTerm: e.PaymentTerm } },
26647
26688
  user: { birthdate: e.birthdate }
26648
26689
  };
26649
26690
  }
26650
- var AL = o((() => {
26691
+ var jL = o((() => {
26651
26692
  Nd();
26652
- })), jL = /* @__PURE__ */ c({
26653
- Form: () => DL,
26654
- presenter: () => kL
26655
- }), ML = o((() => {
26656
- OL(), AL();
26657
- })), NL, PL = o((() => {
26658
- GC(), hI(), NL = (e) => WS({
26693
+ })), ML = /* @__PURE__ */ c({
26694
+ Form: () => OL,
26695
+ presenter: () => AL
26696
+ }), NL = o((() => {
26697
+ kL(), jL();
26698
+ })), PL, FL = o((() => {
26699
+ GC(), gI(), PL = (e) => WS({
26659
26700
  address: e,
26660
- birthdate: iI(),
26661
- familyComposition: dI
26701
+ birthdate: aI(),
26702
+ familyComposition: fI
26662
26703
  });
26663
- })), FL, IL = o((() => {
26664
- q(), OF(), Ed(), tw(), Nd(), PL(), FL = /*@__PURE__*/ L({
26704
+ })), IL, LL = o((() => {
26705
+ q(), kF(), Ed(), tw(), Nd(), FL(), IL = /*@__PURE__*/ L({
26665
26706
  __name: "LiabilityForm",
26666
26707
  props: /*@__PURE__*/ Ei({
26667
26708
  initialData: {},
@@ -26680,7 +26721,7 @@ var AL = o((() => {
26680
26721
  }),
26681
26722
  emits: ["submitted"],
26682
26723
  setup(e, { emit: t }) {
26683
- let n = e, r = Cd(n), i = t, { addressSchema: a, draft: o, resolvedAddress: s, additionOptions: c } = yP({ initial: n.initialData?.address }), { isSubmitting: l, handleSubmit: u, defineField: d } = $C(NL(a), {
26724
+ let n = e, r = Cd(n), i = t, { addressSchema: a, draft: o, resolvedAddress: s, additionOptions: c } = bP({ initial: n.initialData?.address }), { isSubmitting: l, handleSubmit: u, defineField: d } = $C(PL(a), {
26684
26725
  birthdate: n.initialData?.birthdate ?? "",
26685
26726
  familyComposition: n.initialData?.familyComposition ?? kd.SingleWithoutChildren,
26686
26727
  address: o
@@ -26737,12 +26778,12 @@ var AL = o((() => {
26737
26778
  }, 16, ["submit-disabled"]));
26738
26779
  }
26739
26780
  });
26740
- })), LL, RL = o((() => {
26741
- IL(), IL(), LL = FL;
26781
+ })), RL, zL = o((() => {
26782
+ LL(), LL(), RL = IL;
26742
26783
  }));
26743
26784
  //#endregion
26744
26785
  //#region src/comparisons/liability/liability.presenter.ts
26745
- function zL(e) {
26786
+ function BL(e) {
26746
26787
  return {
26747
26788
  comparison: Dd.Liability,
26748
26789
  detail: { liability: {
@@ -26760,31 +26801,31 @@ function zL(e) {
26760
26801
  }
26761
26802
  };
26762
26803
  }
26763
- var BL = o((() => {
26804
+ var VL = o((() => {
26764
26805
  Nd();
26765
- })), VL = /* @__PURE__ */ c({
26766
- Form: () => LL,
26767
- presenter: () => zL
26768
- }), HL = o((() => {
26769
- RL(), BL();
26770
- })), UL, WL = o((() => {
26771
- Nd(), UL = [{
26806
+ })), HL = /* @__PURE__ */ c({
26807
+ Form: () => RL,
26808
+ presenter: () => BL
26809
+ }), UL = o((() => {
26810
+ zL(), VL();
26811
+ })), WL, GL = o((() => {
26812
+ Nd(), WL = [{
26772
26813
  value: jd.Yes,
26773
26814
  label: "Gekocht"
26774
26815
  }, {
26775
26816
  value: jd.No,
26776
26817
  label: "Gehuurd"
26777
26818
  }];
26778
- })), GL = o((() => {
26779
- WL();
26780
- })), KL, qL = o((() => {
26781
- GC(), hI(), KL = (e) => WS({
26819
+ })), KL = o((() => {
26820
+ GL();
26821
+ })), qL, JL = o((() => {
26822
+ GC(), gI(), qL = (e) => WS({
26782
26823
  address: e,
26783
- ownedBuilding: pI,
26784
- familyComposition: uI(tI.house.familyCompositionRequired)
26824
+ ownedBuilding: mI,
26825
+ familyComposition: dI(nI.house.familyCompositionRequired)
26785
26826
  });
26786
- })), JL, YL = o((() => {
26787
- q(), OF(), Ed(), tw(), Nd(), GL(), qL(), JL = /*@__PURE__*/ L({
26827
+ })), YL, XL = o((() => {
26828
+ q(), kF(), Ed(), tw(), Nd(), KL(), JL(), YL = /*@__PURE__*/ L({
26788
26829
  __name: "HouseForm",
26789
26830
  props: /*@__PURE__*/ Ei({
26790
26831
  initialData: {},
@@ -26803,7 +26844,7 @@ var BL = o((() => {
26803
26844
  }),
26804
26845
  emits: ["submitted"],
26805
26846
  setup(e, { emit: t }) {
26806
- let n = e, r = Cd(n), i = t, { addressSchema: a, draft: o, resolvedAddress: s, additionOptions: c } = yP({ initial: n.initialData?.address }), { isSubmitting: l, handleSubmit: u, defineField: d } = $C(KL(a), {
26847
+ let n = e, r = Cd(n), i = t, { addressSchema: a, draft: o, resolvedAddress: s, additionOptions: c } = bP({ initial: n.initialData?.address }), { isSubmitting: l, handleSubmit: u, defineField: d } = $C(qL(a), {
26807
26848
  ownedBuilding: n.initialData?.ownedBuilding ?? jd.Yes,
26808
26849
  familyComposition: n.initialData?.familyComposition ?? kd.SingleWithoutChildren,
26809
26850
  address: o
@@ -26842,7 +26883,7 @@ var BL = o((() => {
26842
26883
  "onUpdate:modelValue": n[1] ||= (e) => /* @__PURE__ */ M(f) ? f.value = e : null,
26843
26884
  legend: "Jouw woning is...",
26844
26885
  name: "ownedBuilding",
26845
- options: P(UL),
26886
+ options: P(WL),
26846
26887
  variant: "boxed",
26847
26888
  required: !1,
26848
26889
  "error-message": P(m)
@@ -26869,12 +26910,12 @@ var BL = o((() => {
26869
26910
  }, 16, ["submit-disabled"]));
26870
26911
  }
26871
26912
  });
26872
- })), XL, ZL = o((() => {
26873
- YL(), YL(), XL = JL;
26913
+ })), ZL, QL = o((() => {
26914
+ XL(), XL(), ZL = YL;
26874
26915
  }));
26875
26916
  //#endregion
26876
26917
  //#region src/comparisons/house/house.presenter.ts
26877
- function QL(e) {
26918
+ function $L(e) {
26878
26919
  return {
26879
26920
  comparison: Dd.Housing,
26880
26921
  detail: { house: { ownedBuilding: e.ownedBuilding } },
@@ -26888,20 +26929,20 @@ function QL(e) {
26888
26929
  }
26889
26930
  };
26890
26931
  }
26891
- var $L = o((() => {
26932
+ var eR = o((() => {
26892
26933
  Nd();
26893
- })), eR = /* @__PURE__ */ c({
26894
- Form: () => XL,
26895
- presenter: () => QL
26896
- }), tR = o((() => {
26897
- ZL(), $L();
26898
- })), nR, rR = o((() => {
26899
- GC(), hI(), nR = (e) => WS({
26934
+ })), tR = /* @__PURE__ */ c({
26935
+ Form: () => ZL,
26936
+ presenter: () => $L
26937
+ }), nR = o((() => {
26938
+ QL(), eR();
26939
+ })), rR, iR = o((() => {
26940
+ GC(), gI(), rR = (e) => WS({
26900
26941
  address: e,
26901
- ownedBuilding: pI
26942
+ ownedBuilding: mI
26902
26943
  });
26903
- })), iR, aR = o((() => {
26904
- q(), OF(), Ed(), tw(), Nd(), GL(), rR(), iR = /*@__PURE__*/ L({
26944
+ })), aR, oR = o((() => {
26945
+ q(), kF(), Ed(), tw(), Nd(), KL(), iR(), aR = /*@__PURE__*/ L({
26905
26946
  __name: "LegalForm",
26906
26947
  props: /*@__PURE__*/ Ei({
26907
26948
  initialData: {},
@@ -26920,7 +26961,7 @@ var $L = o((() => {
26920
26961
  }),
26921
26962
  emits: ["submitted"],
26922
26963
  setup(e, { emit: t }) {
26923
- let n = e, r = Cd(n), i = t, { addressSchema: a, draft: o, resolvedAddress: s, additionOptions: c } = yP({ initial: n.initialData?.address }), { isSubmitting: l, handleSubmit: u, defineField: d } = $C(nR(a), {
26964
+ let n = e, r = Cd(n), i = t, { addressSchema: a, draft: o, resolvedAddress: s, additionOptions: c } = bP({ initial: n.initialData?.address }), { isSubmitting: l, handleSubmit: u, defineField: d } = $C(rR(a), {
26924
26965
  ownedBuilding: n.initialData?.ownedBuilding ?? jd.Yes,
26925
26966
  address: o
26926
26967
  }), [f, p, m] = d("ownedBuilding");
@@ -26955,7 +26996,7 @@ var $L = o((() => {
26955
26996
  "onUpdate:modelValue": n[1] ||= (e) => /* @__PURE__ */ M(f) ? f.value = e : null,
26956
26997
  legend: "Jouw woning is...",
26957
26998
  name: "ownedBuilding",
26958
- options: P(UL),
26999
+ options: P(WL),
26959
27000
  variant: "boxed",
26960
27001
  required: !1,
26961
27002
  "error-message": P(m)
@@ -26970,12 +27011,12 @@ var $L = o((() => {
26970
27011
  }, 16, ["submit-disabled"]));
26971
27012
  }
26972
27013
  });
26973
- })), oR, sR = o((() => {
26974
- aR(), aR(), oR = iR;
27014
+ })), sR, cR = o((() => {
27015
+ oR(), oR(), sR = aR;
26975
27016
  }));
26976
27017
  //#endregion
26977
27018
  //#region src/comparisons/legal/legal.presenter.ts
26978
- function cR(e) {
27019
+ function lR(e) {
26979
27020
  return {
26980
27021
  comparison: Dd.LegalAssistance,
26981
27022
  detail: { comparison: {
@@ -26991,25 +27032,25 @@ function cR(e) {
26991
27032
  }
26992
27033
  };
26993
27034
  }
26994
- var lR = o((() => {
27035
+ var uR = o((() => {
26995
27036
  Nd();
26996
- })), uR = /* @__PURE__ */ c({
26997
- Form: () => oR,
26998
- presenter: () => cR
26999
- }), dR = o((() => {
27000
- sR(), lR();
27001
- })), fR, pR = o((() => {
27002
- GC(), QF(), hI(), fR = (e) => WS({
27037
+ })), dR = /* @__PURE__ */ c({
27038
+ Form: () => sR,
27039
+ presenter: () => lR
27040
+ }), fR = o((() => {
27041
+ cR(), uR();
27042
+ })), pR, mR = o((() => {
27043
+ GC(), $F(), gI(), pR = (e) => WS({
27003
27044
  address: e,
27004
- birthdate: iI(),
27005
- familyComposition: dI,
27045
+ birthdate: aI(),
27046
+ familyComposition: fI,
27006
27047
  partnerBirthdate: IS().defined().when("familyComposition", {
27007
- is: qF,
27008
- then: () => iI()
27048
+ is: JF,
27049
+ then: () => aI()
27009
27050
  })
27010
27051
  });
27011
- })), mR, hR = o((() => {
27012
- q(), OF(), Ed(), tw(), Nd(), QF(), pR(), mR = /*@__PURE__*/ L({
27052
+ })), hR, gR = o((() => {
27053
+ q(), kF(), Ed(), tw(), Nd(), $F(), mR(), hR = /*@__PURE__*/ L({
27013
27054
  __name: "PackageForm",
27014
27055
  props: /*@__PURE__*/ Ei({
27015
27056
  initialData: {},
@@ -27028,14 +27069,14 @@ var lR = o((() => {
27028
27069
  }),
27029
27070
  emits: ["submitted"],
27030
27071
  setup(e, { emit: t }) {
27031
- let n = e, r = Cd(n), i = t, { addressSchema: a, draft: o, resolvedAddress: s, additionOptions: c } = yP({ initial: n.initialData?.address }), { isSubmitting: l, handleSubmit: u, defineField: d, resetField: f } = $C(fR(a), {
27072
+ let n = e, r = Cd(n), i = t, { addressSchema: a, draft: o, resolvedAddress: s, additionOptions: c } = bP({ initial: n.initialData?.address }), { isSubmitting: l, handleSubmit: u, defineField: d, resetField: f } = $C(pR(a), {
27032
27073
  birthdate: n.initialData?.birthdate ?? "",
27033
27074
  familyComposition: n.initialData?.familyComposition ?? kd.SingleWithoutChildren,
27034
27075
  partnerBirthdate: n.initialData?.partnerBirthdate ?? "",
27035
27076
  address: o
27036
- }), [p, m, h] = d("birthdate"), [g, _, v] = d("familyComposition", { validateAt: "change" }), [y, b, x] = d("partnerBirthdate"), S = K(() => qF(g.value));
27077
+ }), [p, m, h] = d("birthdate"), [g, _, v] = d("familyComposition", { validateAt: "change" }), [y, b, x] = d("partnerBirthdate"), S = K(() => JF(g.value));
27037
27078
  I(g, (e) => {
27038
- qF(e) || f("partnerBirthdate", { value: "" });
27079
+ JF(e) || f("partnerBirthdate", { value: "" });
27039
27080
  }, { immediate: !0 });
27040
27081
  function C() {
27041
27082
  u(({ birthdate: e, familyComposition: t, partnerBirthdate: n }) => {
@@ -27105,12 +27146,12 @@ var lR = o((() => {
27105
27146
  }, 16, ["submit-disabled"]));
27106
27147
  }
27107
27148
  });
27108
- })), gR, _R = o((() => {
27109
- hR(), hR(), gR = mR;
27149
+ })), _R, vR = o((() => {
27150
+ gR(), gR(), _R = hR;
27110
27151
  }));
27111
27152
  //#endregion
27112
27153
  //#region src/comparisons/package/package.presenter.ts
27113
- function vR(e) {
27154
+ function yR(e) {
27114
27155
  return {
27115
27156
  comparison: Dd.Package,
27116
27157
  detail: { partner: { birthdate: e.partnerBirthdate } },
@@ -27125,30 +27166,30 @@ function vR(e) {
27125
27166
  }
27126
27167
  };
27127
27168
  }
27128
- var yR = o((() => {
27169
+ var bR = o((() => {
27129
27170
  Nd();
27130
- })), bR = /* @__PURE__ */ c({
27131
- Form: () => gR,
27132
- presenter: () => vR
27133
- }), xR = o((() => {
27134
- _R(), yR();
27135
- })), SR, CR, wR = o((() => {
27136
- SR = {
27171
+ })), xR = /* @__PURE__ */ c({
27172
+ Form: () => _R,
27173
+ presenter: () => yR
27174
+ }), SR = o((() => {
27175
+ vR(), bR();
27176
+ })), CR, wR, TR = o((() => {
27177
+ CR = {
27137
27178
  min: 21,
27138
27179
  max: 74
27139
- }, CR = {
27180
+ }, wR = {
27140
27181
  min: 3500,
27141
27182
  max: 75e3
27142
27183
  };
27143
- })), TR, ER = o((() => {
27144
- GC(), wR(), hI(), TR = WS({
27145
- LoanPurpose: IS().required(tI.loan.purposeRequired),
27146
- LoanAmount: cI(tI.loan.amountRequired).min(CR.min, tI.loan.amountMin(CR.min)).max(CR.max, tI.loan.amountMax(CR.max)),
27147
- birthdate: iI(SR),
27148
- familyComposition: dI
27184
+ })), ER, DR = o((() => {
27185
+ GC(), TR(), gI(), ER = WS({
27186
+ LoanPurpose: IS().required(nI.loan.purposeRequired),
27187
+ LoanAmount: lI(nI.loan.amountRequired).min(wR.min, nI.loan.amountMin(wR.min)).max(wR.max, nI.loan.amountMax(wR.max)),
27188
+ birthdate: aI(CR),
27189
+ familyComposition: fI
27149
27190
  });
27150
- })), DR, OR = o((() => {
27151
- DR = [
27191
+ })), OR, kR = o((() => {
27192
+ OR = [
27152
27193
  {
27153
27194
  title: "Aankoop auto",
27154
27195
  value: "02"
@@ -27198,10 +27239,10 @@ var yR = o((() => {
27198
27239
  value: "99"
27199
27240
  }
27200
27241
  ];
27201
- })), kR = o((() => {
27202
- OR();
27203
- })), AR, jR = o((() => {
27204
- q(), OF(), Ed(), tw(), Nd(), ER(), kR(), AR = /*@__PURE__*/ L({
27242
+ })), AR = o((() => {
27243
+ kR();
27244
+ })), jR, MR = o((() => {
27245
+ q(), kF(), Ed(), tw(), Nd(), DR(), AR(), jR = /*@__PURE__*/ L({
27205
27246
  __name: "LoanForm",
27206
27247
  props: /*@__PURE__*/ Ei({
27207
27248
  initialData: {},
@@ -27220,7 +27261,7 @@ var yR = o((() => {
27220
27261
  }),
27221
27262
  emits: ["submitted"],
27222
27263
  setup(e, { emit: t }) {
27223
- let n = e, r = Cd(n), i = t, { isSubmitting: a, handleSubmit: o, defineField: s } = $C(TR, {
27264
+ let n = e, r = Cd(n), i = t, { isSubmitting: a, handleSubmit: o, defineField: s } = $C(ER, {
27224
27265
  LoanPurpose: n.initialData?.LoanPurpose ?? "",
27225
27266
  LoanAmount: n.initialData?.LoanAmount ?? null,
27226
27267
  birthdate: n.initialData?.birthdate ?? "",
@@ -27245,7 +27286,7 @@ var yR = o((() => {
27245
27286
  "onUpdate:modelValue": n[0] ||= (e) => /* @__PURE__ */ M(c) ? c.value = e : null,
27246
27287
  label: "Leendoel",
27247
27288
  placeholder: "Maak een keuze",
27248
- options: P(DR),
27289
+ options: P(OR),
27249
27290
  name: "LoanPurpose",
27250
27291
  required: !1,
27251
27292
  "error-message": P(u)
@@ -27302,24 +27343,24 @@ var yR = o((() => {
27302
27343
  }, 16, ["submit-disabled"]));
27303
27344
  }
27304
27345
  });
27305
- })), MR, NR = o((() => {
27306
- jR(), jR(), MR = AR;
27346
+ })), NR, PR = o((() => {
27347
+ MR(), MR(), NR = jR;
27307
27348
  }));
27308
27349
  //#endregion
27309
27350
  //#region src/comparisons/loan/loan.presenter.ts
27310
- function PR(e) {
27311
- let t = HF(e, jF);
27351
+ function FR(e) {
27352
+ let t = UF(e, MF);
27312
27353
  if (!t) return 120;
27313
- let n = t.add(76, "year").diff((0, IR.default)(), "month", !0), r = Math.floor(n / 12) * 12;
27354
+ let n = t.add(76, "year").diff((0, LR.default)(), "month", !0), r = Math.floor(n / 12) * 12;
27314
27355
  return Math.min(r, 120);
27315
27356
  }
27316
- function FR(e) {
27357
+ function IR(e) {
27317
27358
  return {
27318
27359
  comparison: Dd.Loan,
27319
27360
  detail: { loan: {
27320
27361
  LoanPurpose: e.LoanPurpose,
27321
27362
  LoanAmount: e.LoanAmount,
27322
- MaxDurationByLegalLimit: PR(e.birthdate)
27363
+ MaxDurationByLegalLimit: FR(e.birthdate)
27323
27364
  } },
27324
27365
  user: {
27325
27366
  birthdate: e.birthdate,
@@ -27327,26 +27368,26 @@ function FR(e) {
27327
27368
  }
27328
27369
  };
27329
27370
  }
27330
- var IR, LR = o((() => {
27331
- IR = /* @__PURE__ */ u(RF(), 1), LF(), QF(), Nd(), wR();
27332
- })), RR = /* @__PURE__ */ c({
27333
- Form: () => MR,
27334
- presenter: () => FR
27335
- }), zR = o((() => {
27336
- NR(), LR();
27337
- })), BR, VR = o((() => {
27338
- BR = {
27371
+ var LR, RR = o((() => {
27372
+ LR = /* @__PURE__ */ u(zF(), 1), RF(), $F(), Nd(), TR();
27373
+ })), zR = /* @__PURE__ */ c({
27374
+ Form: () => NR,
27375
+ presenter: () => IR
27376
+ }), BR = o((() => {
27377
+ PR(), RR();
27378
+ })), VR, HR = o((() => {
27379
+ VR = {
27339
27380
  min: 16,
27340
27381
  max: 99
27341
27382
  };
27342
- })), HR, UR = o((() => {
27343
- GC(), hI(), VR(), HR = (e, t) => WS({
27383
+ })), UR, WR = o((() => {
27384
+ GC(), gI(), HR(), UR = (e, t) => WS({
27344
27385
  licensePlate: e,
27345
27386
  address: t,
27346
- birthdate: iI(BR)
27387
+ birthdate: aI(VR)
27347
27388
  });
27348
- })), WR, GR = o((() => {
27349
- q(), OF(), Ed(), tw(), Nd(), UR(), WR = /*@__PURE__*/ L({
27389
+ })), GR, KR = o((() => {
27390
+ q(), kF(), Ed(), tw(), Nd(), WR(), GR = /*@__PURE__*/ L({
27350
27391
  __name: "MopedForm",
27351
27392
  props: /*@__PURE__*/ Ei({
27352
27393
  initialData: {},
@@ -27365,7 +27406,7 @@ var IR, LR = o((() => {
27365
27406
  }),
27366
27407
  emits: ["submitted"],
27367
27408
  setup(e, { emit: t }) {
27368
- let n = e, r = Cd(n), i = t, { addressSchema: a, draft: o, resolvedAddress: s, additionOptions: c } = yP({ initial: n.initialData?.address }), { vehicleData: l, licensePlateSchema: u } = qP(Dd.Moped, { initialData: n.initialData?.vehicle ?? void 0 }), { isSubmitting: d, handleSubmit: f, defineField: p } = $C(HR(u, a), {
27409
+ let n = e, r = Cd(n), i = t, { addressSchema: a, draft: o, resolvedAddress: s, additionOptions: c } = bP({ initial: n.initialData?.address }), { vehicleData: l, licensePlateSchema: u } = JP(Dd.Moped, { initialData: n.initialData?.vehicle ?? void 0 }), { isSubmitting: d, handleSubmit: f, defineField: p } = $C(UR(u, a), {
27369
27410
  licensePlate: n.initialData?.licensePlate ?? "",
27370
27411
  birthdate: n.initialData?.birthdate ?? "",
27371
27412
  address: o
@@ -27389,7 +27430,7 @@ var IR, LR = o((() => {
27389
27430
  span: "3",
27390
27431
  md: "6"
27391
27432
  }, {
27392
- default: F(() => [G(P(BP), W({
27433
+ default: F(() => [G(P(VP), W({
27393
27434
  modelValue: P(m),
27394
27435
  "onUpdate:modelValue": n[0] ||= (e) => /* @__PURE__ */ M(m) ? m.value = e : null,
27395
27436
  "vehicle-data": P(l),
@@ -27444,12 +27485,12 @@ var IR, LR = o((() => {
27444
27485
  }, 16, ["submit-disabled"]));
27445
27486
  }
27446
27487
  });
27447
- })), KR, qR = o((() => {
27448
- GR(), GR(), KR = WR;
27488
+ })), qR, JR = o((() => {
27489
+ KR(), KR(), qR = GR;
27449
27490
  }));
27450
27491
  //#endregion
27451
27492
  //#region src/comparisons/moped/moped.presenter.ts
27452
- function JR(e) {
27493
+ function YR(e) {
27453
27494
  return {
27454
27495
  comparison: Dd.Moped,
27455
27496
  detail: { moped: { ...e.vehicle } },
@@ -27464,21 +27505,21 @@ function JR(e) {
27464
27505
  }
27465
27506
  };
27466
27507
  }
27467
- var YR = o((() => {
27508
+ var XR = o((() => {
27468
27509
  Nd();
27469
- })), XR = /* @__PURE__ */ c({
27470
- Form: () => KR,
27471
- presenter: () => JR
27472
- }), ZR = o((() => {
27473
- qR(), YR();
27474
- })), QR, $R = o((() => {
27475
- GC(), hI(), QR = (e, t) => WS({
27510
+ })), ZR = /* @__PURE__ */ c({
27511
+ Form: () => qR,
27512
+ presenter: () => YR
27513
+ }), QR = o((() => {
27514
+ JR(), XR();
27515
+ })), $R, ez = o((() => {
27516
+ GC(), gI(), $R = (e, t) => WS({
27476
27517
  licensePlate: e,
27477
27518
  address: t,
27478
- birthdate: iI()
27519
+ birthdate: aI()
27479
27520
  });
27480
- })), ez, tz = o((() => {
27481
- q(), OF(), Ed(), tw(), Nd(), $R(), ez = /*@__PURE__*/ L({
27521
+ })), tz, nz = o((() => {
27522
+ q(), kF(), Ed(), tw(), Nd(), ez(), tz = /*@__PURE__*/ L({
27482
27523
  __name: "MotorForm",
27483
27524
  props: /*@__PURE__*/ Ei({
27484
27525
  initialData: {},
@@ -27497,7 +27538,7 @@ var YR = o((() => {
27497
27538
  }),
27498
27539
  emits: ["submitted"],
27499
27540
  setup(e, { emit: t }) {
27500
- let n = e, r = Cd(n), i = t, { addressSchema: a, draft: o, resolvedAddress: s, additionOptions: c } = yP({ initial: n.initialData?.address }), { vehicleData: l, licensePlateSchema: u } = qP(Dd.Motor, { initialData: n.initialData?.vehicle ?? void 0 }), { isSubmitting: d, handleSubmit: f, defineField: p } = $C(QR(u, a), {
27541
+ let n = e, r = Cd(n), i = t, { addressSchema: a, draft: o, resolvedAddress: s, additionOptions: c } = bP({ initial: n.initialData?.address }), { vehicleData: l, licensePlateSchema: u } = JP(Dd.Motor, { initialData: n.initialData?.vehicle ?? void 0 }), { isSubmitting: d, handleSubmit: f, defineField: p } = $C($R(u, a), {
27501
27542
  licensePlate: n.initialData?.licensePlate ?? "",
27502
27543
  birthdate: n.initialData?.birthdate ?? "",
27503
27544
  address: o
@@ -27521,7 +27562,7 @@ var YR = o((() => {
27521
27562
  span: "3",
27522
27563
  md: "6"
27523
27564
  }, {
27524
- default: F(() => [G(P(BP), W({
27565
+ default: F(() => [G(P(VP), W({
27525
27566
  modelValue: P(m),
27526
27567
  "onUpdate:modelValue": n[0] ||= (e) => /* @__PURE__ */ M(m) ? m.value = e : null,
27527
27568
  "vehicle-data": P(l),
@@ -27576,12 +27617,12 @@ var YR = o((() => {
27576
27617
  }, 16, ["submit-disabled"]));
27577
27618
  }
27578
27619
  });
27579
- })), nz, rz = o((() => {
27580
- tz(), tz(), nz = ez;
27620
+ })), rz, iz = o((() => {
27621
+ nz(), nz(), rz = tz;
27581
27622
  }));
27582
27623
  //#endregion
27583
27624
  //#region src/comparisons/motor/motor.presenter.ts
27584
- function iz(e) {
27625
+ function az(e) {
27585
27626
  return {
27586
27627
  comparison: Dd.Motor,
27587
27628
  detail: { motor: { ...e.vehicle } },
@@ -27596,21 +27637,21 @@ function iz(e) {
27596
27637
  }
27597
27638
  };
27598
27639
  }
27599
- var az = o((() => {
27640
+ var oz = o((() => {
27600
27641
  Nd();
27601
- })), oz = /* @__PURE__ */ c({
27602
- Form: () => nz,
27603
- presenter: () => iz
27604
- }), sz = o((() => {
27605
- rz(), az();
27606
- })), cz, lz = o((() => {
27607
- GC(), hI(), cz = (e, t) => WS({
27642
+ })), sz = /* @__PURE__ */ c({
27643
+ Form: () => rz,
27644
+ presenter: () => az
27645
+ }), cz = o((() => {
27646
+ iz(), oz();
27647
+ })), lz, uz = o((() => {
27648
+ GC(), gI(), lz = (e, t) => WS({
27608
27649
  licensePlate: e,
27609
27650
  address: t,
27610
- birthdate: iI()
27651
+ birthdate: aI()
27611
27652
  });
27612
- })), uz, dz = o((() => {
27613
- q(), OF(), Ed(), tw(), Nd(), lz(), uz = /*@__PURE__*/ L({
27653
+ })), dz, fz = o((() => {
27654
+ q(), kF(), Ed(), tw(), Nd(), uz(), dz = /*@__PURE__*/ L({
27614
27655
  __name: "CarForm",
27615
27656
  props: /*@__PURE__*/ Ei({
27616
27657
  initialData: {},
@@ -27629,7 +27670,7 @@ var az = o((() => {
27629
27670
  }),
27630
27671
  emits: ["submitted"],
27631
27672
  setup(e, { emit: t }) {
27632
- let n = e, r = Cd(n), i = t, { addressSchema: a, draft: o, resolvedAddress: s, additionOptions: c } = yP({ initial: n.initialData?.address }), { vehicleData: l, licensePlateSchema: u } = qP(Dd.Car, { initialData: n.initialData?.vehicle ?? void 0 }), { isSubmitting: d, handleSubmit: f, defineField: p } = $C(cz(u, a), {
27673
+ let n = e, r = Cd(n), i = t, { addressSchema: a, draft: o, resolvedAddress: s, additionOptions: c } = bP({ initial: n.initialData?.address }), { vehicleData: l, licensePlateSchema: u } = JP(Dd.Car, { initialData: n.initialData?.vehicle ?? void 0 }), { isSubmitting: d, handleSubmit: f, defineField: p } = $C(lz(u, a), {
27633
27674
  licensePlate: n.initialData?.licensePlate ?? "",
27634
27675
  birthdate: n.initialData?.birthdate ?? "",
27635
27676
  address: o
@@ -27653,7 +27694,7 @@ var az = o((() => {
27653
27694
  span: "3",
27654
27695
  md: "6"
27655
27696
  }, {
27656
- default: F(() => [G(P(BP), W({
27697
+ default: F(() => [G(P(VP), W({
27657
27698
  modelValue: P(m),
27658
27699
  "onUpdate:modelValue": n[0] ||= (e) => /* @__PURE__ */ M(m) ? m.value = e : null,
27659
27700
  "vehicle-data": P(l),
@@ -27708,12 +27749,12 @@ var az = o((() => {
27708
27749
  }, 16, ["submit-disabled"]));
27709
27750
  }
27710
27751
  });
27711
- })), fz, pz = o((() => {
27712
- dz(), dz(), fz = uz;
27752
+ })), pz, mz = o((() => {
27753
+ fz(), fz(), pz = dz;
27713
27754
  }));
27714
27755
  //#endregion
27715
27756
  //#region src/comparisons/car/car.presenter.ts
27716
- function mz(e) {
27757
+ function hz(e) {
27717
27758
  return {
27718
27759
  comparison: Dd.Car,
27719
27760
  detail: { car: { ...e.vehicle } },
@@ -27728,20 +27769,20 @@ function mz(e) {
27728
27769
  }
27729
27770
  };
27730
27771
  }
27731
- var hz = o((() => {
27772
+ var gz = o((() => {
27732
27773
  Nd();
27733
- })), gz = /* @__PURE__ */ c({
27734
- Form: () => fz,
27735
- presenter: () => mz
27736
- }), _z = o((() => {
27737
- pz(), hz();
27738
- })), vz, yz = o((() => {
27739
- GC(), OF(), vz = (e) => WS({
27774
+ })), _z = /* @__PURE__ */ c({
27775
+ Form: () => pz,
27776
+ presenter: () => hz
27777
+ }), vz = o((() => {
27778
+ mz(), gz();
27779
+ })), yz, bz = o((() => {
27780
+ GC(), kF(), yz = (e) => WS({
27740
27781
  licensePlate: e,
27741
- company: EF()
27782
+ company: DF()
27742
27783
  });
27743
- })), bz, xz = o((() => {
27744
- q(), OF(), Ed(), tw(), Nd(), yz(), bz = /*@__PURE__*/ L({
27784
+ })), xz, Sz = o((() => {
27785
+ q(), kF(), Ed(), tw(), Nd(), bz(), xz = /*@__PURE__*/ L({
27745
27786
  __name: "BusinessCarForm",
27746
27787
  props: /*@__PURE__*/ Ei({
27747
27788
  initialData: {},
@@ -27760,7 +27801,7 @@ var hz = o((() => {
27760
27801
  }),
27761
27802
  emits: ["submitted"],
27762
27803
  setup(e, { emit: t }) {
27763
- let n = e, r = Cd(n), i = t, { vehicleData: a, licensePlateSchema: o } = qP(Dd.Car, { initialData: n.initialData?.vehicle ?? void 0 }), { isSubmitting: s, handleSubmit: c, defineField: l, setErrors: u, removeError: d } = $C(vz(o), {
27804
+ let n = e, r = Cd(n), i = t, { vehicleData: a, licensePlateSchema: o } = JP(Dd.Car, { initialData: n.initialData?.vehicle ?? void 0 }), { isSubmitting: s, handleSubmit: c, defineField: l, setErrors: u, removeError: d } = $C(yz(o), {
27764
27805
  licensePlate: n.initialData?.licensePlate ?? "",
27765
27806
  company: n.initialData?.company ?? null
27766
27807
  }), [f, p, m, h] = l("licensePlate"), [g, _, v] = l("company"), y = (e) => e ? u({ company: e }) : d("company"), b = K(() => !!g.value && !g.value.hasVisitingAddress);
@@ -27781,7 +27822,7 @@ var hz = o((() => {
27781
27822
  span: "5",
27782
27823
  md: "6"
27783
27824
  }, {
27784
- default: F(() => [G(P(BP), W({
27825
+ default: F(() => [G(P(VP), W({
27785
27826
  modelValue: P(f),
27786
27827
  "onUpdate:modelValue": n[0] ||= (e) => /* @__PURE__ */ M(f) ? f.value = e : null,
27787
27828
  "vehicle-data": P(a),
@@ -27811,7 +27852,7 @@ var hz = o((() => {
27811
27852
  span: "5",
27812
27853
  md: "6"
27813
27854
  }, {
27814
- default: F(() => [G(P(wF), W({
27855
+ default: F(() => [G(P(TF), W({
27815
27856
  modelValue: P(g),
27816
27857
  "onUpdate:modelValue": n[2] ||= (e) => /* @__PURE__ */ M(g) ? g.value = e : null,
27817
27858
  name: "company",
@@ -27838,12 +27879,12 @@ var hz = o((() => {
27838
27879
  }, 16, ["submit-disabled"]));
27839
27880
  }
27840
27881
  });
27841
- })), Sz, Cz = o((() => {
27842
- xz(), xz(), Sz = bz;
27882
+ })), Cz, wz = o((() => {
27883
+ Sz(), Sz(), Cz = xz;
27843
27884
  }));
27844
27885
  //#endregion
27845
27886
  //#region src/comparisons/car-business/businessCar.presenter.ts
27846
- function wz(e) {
27887
+ function Tz(e) {
27847
27888
  return {
27848
27889
  comparison: Dd.CarBusiness,
27849
27890
  detail: {
@@ -27853,17 +27894,17 @@ function wz(e) {
27853
27894
  user: {}
27854
27895
  };
27855
27896
  }
27856
- var Tz = o((() => {
27897
+ var Ez = o((() => {
27857
27898
  Nd();
27858
- })), Ez = /* @__PURE__ */ c({
27859
- Form: () => Sz,
27860
- presenter: () => wz
27861
- }), Dz = o((() => {
27862
- Cz(), Tz();
27863
- })), Oz, kz = o((() => {
27864
- GC(), OF(), Oz = WS({ company: EF() });
27865
- })), Az, jz = o((() => {
27866
- q(), OF(), Ed(), tw(), kz(), Az = /*@__PURE__*/ L({
27899
+ })), Dz = /* @__PURE__ */ c({
27900
+ Form: () => Cz,
27901
+ presenter: () => Tz
27902
+ }), Oz = o((() => {
27903
+ wz(), Ez();
27904
+ })), kz, Az = o((() => {
27905
+ GC(), kF(), kz = WS({ company: DF() });
27906
+ })), jz, Mz = o((() => {
27907
+ q(), kF(), Ed(), tw(), Az(), jz = /*@__PURE__*/ L({
27867
27908
  __name: "BusinessLiabilityForm",
27868
27909
  props: /*@__PURE__*/ Ei({
27869
27910
  initialData: {},
@@ -27884,7 +27925,7 @@ var Tz = o((() => {
27884
27925
  }),
27885
27926
  emits: ["submitted"],
27886
27927
  setup(e, { emit: t }) {
27887
- let n = e, r = Cd(n), i = t, { isSubmitting: a, handleSubmit: o, defineField: s, setErrors: c, removeError: l } = $C(Oz, { company: n.initialData?.company ?? null }), [u, d, f] = s("company"), p = (e) => e ? c({ company: e }) : l("company"), m = K(() => !!u.value && !u.value.hasVisitingAddress);
27928
+ let n = e, r = Cd(n), i = t, { isSubmitting: a, handleSubmit: o, defineField: s, setErrors: c, removeError: l } = $C(kz, { company: n.initialData?.company ?? null }), [u, d, f] = s("company"), p = (e) => e ? c({ company: e }) : l("company"), m = K(() => !!u.value && !u.value.hasVisitingAddress);
27888
27929
  function h() {
27889
27930
  o(({ company: e }) => {
27890
27931
  i("submitted", { company: e });
@@ -27899,7 +27940,7 @@ var Tz = o((() => {
27899
27940
  span: "8",
27900
27941
  md: "6"
27901
27942
  }, {
27902
- default: F(() => [G(P(wF), W({
27943
+ default: F(() => [G(P(TF), W({
27903
27944
  modelValue: P(u),
27904
27945
  "onUpdate:modelValue": t[0] ||= (e) => /* @__PURE__ */ M(u) ? u.value = e : null,
27905
27946
  name: "company",
@@ -27926,51 +27967,51 @@ var Tz = o((() => {
27926
27967
  }, 16, ["submit-disabled"]));
27927
27968
  }
27928
27969
  });
27929
- })), Mz, Nz = o((() => {
27930
- jz(), jz(), Mz = Az;
27970
+ })), Nz, Pz = o((() => {
27971
+ Mz(), Mz(), Nz = jz;
27931
27972
  }));
27932
27973
  //#endregion
27933
27974
  //#region src/comparisons/businessLiability/businessLiability.presenter.ts
27934
- function Pz(e) {
27975
+ function Fz(e) {
27935
27976
  return {
27936
27977
  comparison: Dd.BusinessLiability,
27937
27978
  detail: { companyData: { ...e.company } },
27938
27979
  user: {}
27939
27980
  };
27940
27981
  }
27941
- var Fz = o((() => {
27982
+ var Iz = o((() => {
27942
27983
  Nd();
27943
- })), Iz = /* @__PURE__ */ c({
27944
- Form: () => Mz,
27945
- presenter: () => Pz
27946
- }), Lz = o((() => {
27947
- Nz(), Fz();
27984
+ })), Lz = /* @__PURE__ */ c({
27985
+ Form: () => Nz,
27986
+ presenter: () => Fz
27987
+ }), Rz = o((() => {
27988
+ Pz(), Iz();
27948
27989
  }));
27949
27990
  //#endregion
27950
27991
  //#region src/comparisons/registry.ts
27951
27992
  Nd();
27952
- var Rz = {
27953
- [Dd.Bike]: () => Promise.resolve().then(() => (RI(), LI)),
27954
- [Dd.Pet]: () => Promise.resolve().then(() => ($I(), QI)),
27955
- [Dd.Caravan]: () => Promise.resolve().then(() => (_L(), gL)),
27956
- [Dd.Travel]: () => Promise.resolve().then(() => (ML(), jL)),
27957
- [Dd.Liability]: () => Promise.resolve().then(() => (HL(), VL)),
27958
- [Dd.Housing]: () => Promise.resolve().then(() => (tR(), eR)),
27959
- house: () => Promise.resolve().then(() => (tR(), eR)),
27960
- [Dd.LegalAssistance]: () => Promise.resolve().then(() => (dR(), uR)),
27961
- [Dd.Package]: () => Promise.resolve().then(() => (xR(), bR)),
27962
- [Dd.Loan]: () => Promise.resolve().then(() => (zR(), RR)),
27963
- [Dd.Moped]: () => Promise.resolve().then(() => (ZR(), XR)),
27964
- [Dd.Motor]: () => Promise.resolve().then(() => (sz(), oz)),
27965
- [Dd.Car]: () => Promise.resolve().then(() => (_z(), gz)),
27966
- [Dd.CarBusiness]: () => Promise.resolve().then(() => (Dz(), Ez)),
27967
- "business-car": () => Promise.resolve().then(() => (Dz(), Ez)),
27968
- [Dd.BusinessLiability]: () => Promise.resolve().then(() => (Lz(), Iz))
27993
+ var zz = {
27994
+ [Dd.Bike]: () => Promise.resolve().then(() => (zI(), RI)),
27995
+ [Dd.Pet]: () => Promise.resolve().then(() => (eL(), $I)),
27996
+ [Dd.Caravan]: () => Promise.resolve().then(() => (vL(), _L)),
27997
+ [Dd.Travel]: () => Promise.resolve().then(() => (NL(), ML)),
27998
+ [Dd.Liability]: () => Promise.resolve().then(() => (UL(), HL)),
27999
+ [Dd.Housing]: () => Promise.resolve().then(() => (nR(), tR)),
28000
+ house: () => Promise.resolve().then(() => (nR(), tR)),
28001
+ [Dd.LegalAssistance]: () => Promise.resolve().then(() => (fR(), dR)),
28002
+ [Dd.Package]: () => Promise.resolve().then(() => (SR(), xR)),
28003
+ [Dd.Loan]: () => Promise.resolve().then(() => (BR(), zR)),
28004
+ [Dd.Moped]: () => Promise.resolve().then(() => (QR(), ZR)),
28005
+ [Dd.Motor]: () => Promise.resolve().then(() => (cz(), sz)),
28006
+ [Dd.Car]: () => Promise.resolve().then(() => (vz(), _z)),
28007
+ [Dd.CarBusiness]: () => Promise.resolve().then(() => (Oz(), Dz)),
28008
+ "business-car": () => Promise.resolve().then(() => (Oz(), Dz)),
28009
+ [Dd.BusinessLiability]: () => Promise.resolve().then(() => (Rz(), Lz))
27969
28010
  };
27970
- q(), nP(), Nd();
27971
- var zz = { [Dd.Travel]: "/tarieven/" }, Bz = (e, t, n) => `${e}#/${n}${zz[t] ?? ""}`, Vz = (e) => {
28011
+ q(), rP(), Nd();
28012
+ var Bz = { [Dd.Travel]: "/tarieven/" }, Vz = (e, t, n) => `${e}#/${n}${Bz[t] ?? ""}`, Hz = (e) => {
27972
28013
  window.location.href = e;
27973
- }, Hz = ({ user: e, detail: t }) => new KN.User({
28014
+ }, Uz = ({ user: e, detail: t }) => new qN.User({
27974
28015
  email: e.email || null,
27975
28016
  name: e.firstName || null,
27976
28017
  zip_code: e.zipCode || null,
@@ -27984,14 +28025,14 @@ var zz = { [Dd.Travel]: "/tarieven/" }, Bz = (e, t, n) => `${e}#/${n}${zz[t] ??
27984
28025
  ...e.city && { city: e.city }
27985
28026
  }
27986
28027
  });
27987
- function Uz(e) {
28028
+ function Wz(e) {
27988
28029
  let t = /* @__PURE__ */ N(!1), n = /* @__PURE__ */ N(null);
27989
28030
  return {
27990
28031
  submit: async (r) => {
27991
28032
  t.value = !0, n.value = null;
27992
28033
  try {
27993
- let t = await eP().comparisonService.create(r.comparison, Hz(r)), n = Bz(e.link, r.comparison, t.getId());
27994
- e.onRedirect ? e.onRedirect(n) : Vz(n);
28034
+ let t = await tP().comparisonService.create(r.comparison, Uz(r)), n = Vz(e.link, r.comparison, t.getId());
28035
+ e.onRedirect ? e.onRedirect(n) : Hz(n);
27995
28036
  } catch (t) {
27996
28037
  n.value = t, e.onError?.(t, r);
27997
28038
  } finally {
@@ -28005,7 +28046,7 @@ function Uz(e) {
28005
28046
  q(), Ed();
28006
28047
  //#endregion
28007
28048
  //#region src/flow/ComparisonFormFlow.vue
28008
- var Wz = /* @__PURE__ */ L({
28049
+ var Gz = /* @__PURE__ */ L({
28009
28050
  __name: "ComparisonFormFlow",
28010
28051
  props: {
28011
28052
  form: {},
@@ -28039,7 +28080,7 @@ var Wz = /* @__PURE__ */ L({
28039
28080
  let n = e, r = t, i = Cd(n), a = /* @__PURE__ */ Pt();
28040
28081
  I(() => n.form, async (e) => {
28041
28082
  a.value = void 0;
28042
- let t = Rz[e];
28083
+ let t = zz[e];
28043
28084
  if (t) try {
28044
28085
  let r = await t();
28045
28086
  n.form === e && (a.value = r);
@@ -28047,7 +28088,7 @@ var Wz = /* @__PURE__ */ L({
28047
28088
  r("error", e);
28048
28089
  }
28049
28090
  }, { immediate: !0 });
28050
- let { submit: o, isSubmitting: s } = Uz({
28091
+ let { submit: o, isSubmitting: s } = Wz({
28051
28092
  link: n.link,
28052
28093
  onRedirect: (e) => {
28053
28094
  r("submitted", e), n.redirect ? n.redirect(e) : window.location.href = e;
@@ -28064,10 +28105,10 @@ var Wz = /* @__PURE__ */ L({
28064
28105
  }), null, 16, ["initial-data", "submit-disabled"])) : U("", !0);
28065
28106
  }
28066
28107
  });
28067
- q(), Sd(), nP(), QF();
28108
+ q(), Sd(), rP(), $F();
28068
28109
  //#endregion
28069
28110
  //#region src/entries/ComparisonFormFlow.ce.vue
28070
- var Gz = /* @__PURE__ */ L({
28111
+ var Kz = /* @__PURE__ */ L({
28071
28112
  __name: "ComparisonFormFlow.ce",
28072
28113
  props: {
28073
28114
  initialData: { type: [Object, String] },
@@ -28099,18 +28140,18 @@ var Gz = /* @__PURE__ */ L({
28099
28140
  },
28100
28141
  emits: ["submitted", "error"],
28101
28142
  setup(e, { emit: t }) {
28102
- let n = e, r = Yu(n, "apiUrl", "initialData"), i = t, a = K(() => XF(n.initialData)), o = K(() => a.value.data);
28143
+ let n = e, r = Yu(n, "apiUrl", "initialData"), i = t, a = K(() => ZF(n.initialData)), o = K(() => a.value.data);
28103
28144
  I(a, ({ error: e }) => {
28104
28145
  e && i("error", e);
28105
28146
  }, { immediate: !0 });
28106
28147
  let s = /* @__PURE__ */ N(!1);
28107
28148
  return os(async () => {
28108
28149
  try {
28109
- await $N(n.apiUrl ?? ""), s.value = !0;
28150
+ await eP(n.apiUrl ?? ""), s.value = !0;
28110
28151
  } catch (e) {
28111
28152
  i("error", e);
28112
28153
  }
28113
- }), (e, t) => s.value ? (z(), V(Wz, W({ key: 0 }, P(r), {
28154
+ }), (e, t) => s.value ? (z(), V(Gz, W({ key: 0 }, P(r), {
28114
28155
  "initial-data": o.value,
28115
28156
  onSubmitted: t[0] ||= (e) => i("submitted", e),
28116
28157
  onError: t[1] ||= (e, t) => i("error", e, t)
@@ -28120,7 +28161,7 @@ var Gz = /* @__PURE__ */ L({
28120
28161
  //#endregion
28121
28162
  //#region src/entries/wc.ts
28122
28163
  q();
28123
- var Kz = /* @__PURE__ */ Zc(Gz, { shadowRoot: !1 });
28124
- customElements.define("vd-comparison-form", Kz);
28164
+ var qz = /* @__PURE__ */ Zc(Kz, { shadowRoot: !1 });
28165
+ customElements.define("vd-comparison-form", qz);
28125
28166
  //#endregion
28126
- export { Kz as VdComparisonFormElement };
28167
+ export { qz as VdComparisonFormElement };