@vergelijkdirect/comparison-forms 2.0.1 → 2.0.2-rc.0

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.
Files changed (31) hide show
  1. package/README.md +46 -6
  2. package/dist/client/.vite/ssr-manifest.json +600 -0
  3. package/dist/client/assets/index-6Enzr9rU.css +4 -0
  4. package/dist/client/assets/index-6Enzr9rU.css.br +0 -0
  5. package/dist/client/assets/index-DUchBxEo.js +57 -0
  6. package/dist/client/assets/index-DUchBxEo.js.br +0 -0
  7. package/dist/client/index.html +15 -0
  8. package/dist/server/entry-server.js +9981 -0
  9. package/dist/server/entry-server.js.br +0 -0
  10. package/dist/vue/comparison-forms.d.ts +1 -2
  11. package/dist/vue/comparison-forms.js +180 -251
  12. package/dist/wc/comparison-forms.js +2808 -2879
  13. package/dist/wc-forms/bike.cjs +1 -1
  14. package/dist/wc-forms/{birthdate.schema-C-y732mA.cjs → birthdate.schema-rpmbSDZH.cjs} +1 -1
  15. package/dist/wc-forms/car.cjs +1 -1
  16. package/dist/wc-forms/caravan.cjs +1 -1
  17. package/dist/wc-forms/{familyComposition.schema-gvSnx-ea.cjs → familyComposition.schema-DW6scNvt.cjs} +1 -1
  18. package/dist/wc-forms/house.cjs +1 -1
  19. package/dist/wc-forms/houseOwnedBuilding.model-DgIQ2pQN.cjs +1 -0
  20. package/dist/wc-forms/legal.cjs +1 -1
  21. package/dist/wc-forms/liability.cjs +1 -1
  22. package/dist/wc-forms/loan.cjs +1 -1
  23. package/dist/wc-forms/{messages-CX8jVyEo.cjs → messages-stJTqN-x.cjs} +1 -1
  24. package/dist/wc-forms/moped.cjs +1 -1
  25. package/dist/wc-forms/motor.cjs +1 -1
  26. package/dist/wc-forms/package.cjs +1 -1
  27. package/dist/wc-forms/pet.cjs +1 -1
  28. package/dist/wc-forms/travel.cjs +1 -1
  29. package/dist/wc-noitc/comparison-forms.umd.cjs +1 -1
  30. package/package.json +4 -3
  31. package/dist/wc-forms/houseOwnedBuilding.model-G9AqKTZo.cjs +0 -1
@@ -290,7 +290,7 @@ var je = Object.defineProperty, B = (e, t) => {
290
290
  }, et = {
291
291
  key: 1,
292
292
  class: "vd-field__message vd-field__message--information"
293
- }, W = /* @__PURE__ */ l({
293
+ }, tt = /* @__PURE__ */ l({
294
294
  __name: "VdSelect",
295
295
  props: /*@__PURE__*/ p({
296
296
  id: { default: null },
@@ -371,29 +371,29 @@ var je = Object.defineProperty, B = (e, t) => {
371
371
  });
372
372
  //#endregion
373
373
  //#region node_modules/es-toolkit/dist/_internal/isEqualsSameValueZero.mjs
374
- function tt(e, t) {
374
+ function nt(e, t) {
375
375
  return e === t || Number.isNaN(e) && Number.isNaN(t);
376
376
  }
377
377
  //#endregion
378
378
  //#region node_modules/es-toolkit/dist/compat/util/toString.mjs
379
- function nt(e) {
379
+ function rt(e) {
380
380
  if (e == null) return "";
381
381
  if (typeof e == "string") return e;
382
- if (Array.isArray(e)) return e.map(nt).join(",");
382
+ if (Array.isArray(e)) return e.map(rt).join(",");
383
383
  let t = String(e);
384
384
  return t === "0" && Object.is(Number(e), -0) ? "-0" : t;
385
385
  }
386
386
  //#endregion
387
387
  //#region node_modules/es-toolkit/dist/compat/_internal/toKey.mjs
388
- function rt(e) {
388
+ function it(e) {
389
389
  return typeof e == "string" || typeof e == "symbol" ? e : Object.is(e?.valueOf?.(), -0) ? "-0" : String(e);
390
390
  }
391
391
  //#endregion
392
392
  //#region node_modules/es-toolkit/dist/compat/util/toPath.mjs
393
- function it(e) {
394
- if (Array.isArray(e)) return e.map(rt);
393
+ function at(e) {
394
+ if (Array.isArray(e)) return e.map(it);
395
395
  if (typeof e == "symbol") return [e];
396
- e = nt(e);
396
+ e = rt(e);
397
397
  let t = [], n = e.length;
398
398
  if (n === 0) return t;
399
399
  let r = 0, i = "", a = "", o = !1;
@@ -413,12 +413,12 @@ function it(e) {
413
413
  }
414
414
  //#endregion
415
415
  //#region node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs
416
- function at(e) {
416
+ function ot(e) {
417
417
  return e === "__proto__";
418
418
  }
419
419
  //#endregion
420
420
  //#region node_modules/es-toolkit/dist/compat/_internal/isDeepKey.mjs
421
- function ot(e) {
421
+ function st(e) {
422
422
  switch (typeof e) {
423
423
  case "number":
424
424
  case "symbol": return !1;
@@ -427,23 +427,23 @@ function ot(e) {
427
427
  }
428
428
  //#endregion
429
429
  //#region node_modules/es-toolkit/dist/compat/object/get.mjs
430
- function st(e, t, n) {
430
+ function W(e, t, n) {
431
431
  if (e == null) return n;
432
432
  switch (typeof t) {
433
433
  case "string": {
434
- if (at(t)) return n;
434
+ if (ot(t)) return n;
435
435
  let r = e[t];
436
- return r === void 0 ? ot(t) && !Object.hasOwn(e, t) ? st(e, it(t), n) : n : r;
436
+ return r === void 0 ? st(t) && !Object.hasOwn(e, t) ? W(e, at(t), n) : n : r;
437
437
  }
438
438
  case "number":
439
439
  case "symbol": {
440
- typeof t == "number" && (t = rt(t));
440
+ typeof t == "number" && (t = it(t));
441
441
  let r = e[t];
442
442
  return r === void 0 ? n : r;
443
443
  }
444
444
  default: {
445
445
  if (Array.isArray(t)) return ct(e, t, n);
446
- if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), at(t)) return n;
446
+ if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), ot(t)) return n;
447
447
  let r = e[t];
448
448
  return r === void 0 ? n : r;
449
449
  }
@@ -453,7 +453,7 @@ function ct(e, t, n) {
453
453
  if (t.length === 0) return n;
454
454
  let r = e;
455
455
  for (let e = 0; e < t.length; e++) {
456
- if (r == null || at(t[e])) return n;
456
+ if (r == null || ot(t[e])) return n;
457
457
  r = r[t[e]];
458
458
  }
459
459
  return r === void 0 ? n : r;
@@ -488,18 +488,18 @@ function ht(e, t) {
488
488
  //#region node_modules/es-toolkit/dist/compat/_internal/assignValue.mjs
489
489
  var gt = (e, t, n) => {
490
490
  let r = e[t];
491
- (!(Object.hasOwn(e, t) && tt(r, n)) || n === void 0 && !(t in e)) && (e[t] = n);
491
+ (!(Object.hasOwn(e, t) && nt(r, n)) || n === void 0 && !(t in e)) && (e[t] = n);
492
492
  };
493
493
  //#endregion
494
494
  //#region node_modules/es-toolkit/dist/compat/object/updateWith.mjs
495
495
  function _t(e, t, n, r) {
496
496
  if (e == null && !lt(e)) return e;
497
497
  let i;
498
- i = ht(t, e) ? [t] : Array.isArray(t) ? t : it(t);
499
- let a = n(st(e, i)), o = e;
498
+ i = ht(t, e) ? [t] : Array.isArray(t) ? t : at(t);
499
+ let a = n(W(e, i)), o = e;
500
500
  for (let t = 0; t < i.length && o != null; t++) {
501
- let n = rt(i[t]);
502
- if (at(n)) continue;
501
+ let n = it(i[t]);
502
+ if (ot(n)) continue;
503
503
  let s;
504
504
  if (t === i.length - 1) s = a;
505
505
  else {
@@ -588,7 +588,7 @@ var yt = {
588
588
  "update:searchTerm"
589
589
  ]),
590
590
  setup(o, { emit: l }) {
591
- let u = o, d = de(me(u, "name", "disabled", "by", "ignoreFilter")), f = k(o, "modelValue"), p = k(o, "open"), h = k(o, "searchTerm"), _ = l, v = A(), b = u.id ?? O(), x = t(() => !!u.icon || !!v.icon), w = (e) => typeof e == "object" && !!e, D = (e) => w(e) ? st(e, u.labelKey) ?? e.title ?? "" : String(e), j = (e) => w(e) ? u.valueKey === null ? e : st(e, u.valueKey) : e, M = (e) => w(e) ? e.disabled : void 0, N = (e, t) => e === void 0 || t === void 0 ? !1 : !w(e) || !w(t) ? e === t : typeof u.by == "function" ? u.by(e, t) : typeof u.by == "string" ? st(e, u.by) === st(t, u.by) : pe(e, t), F = (e) => e == null || e === "", I = t(() => !F(f.value)), L = t(() => u.errorMessage ? "error" : I.value && u.verified && !u.loading ? "verified" : "default"), fe = (e) => {
591
+ let u = o, d = de(me(u, "name", "disabled", "by", "ignoreFilter")), f = k(o, "modelValue"), p = k(o, "open"), h = k(o, "searchTerm"), _ = l, v = A(), b = u.id ?? O(), x = t(() => !!u.icon || !!v.icon), w = (e) => typeof e == "object" && !!e, D = (e) => w(e) ? W(e, u.labelKey) ?? e.title ?? "" : String(e), j = (e) => w(e) ? u.valueKey === null ? e : W(e, u.valueKey) : e, M = (e) => w(e) ? e.disabled : void 0, N = (e, t) => e === void 0 || t === void 0 ? !1 : !w(e) || !w(t) ? e === t : typeof u.by == "function" ? u.by(e, t) : typeof u.by == "string" ? W(e, u.by) === W(t, u.by) : pe(e, t), F = (e) => e == null || e === "", I = t(() => !F(f.value)), L = t(() => u.errorMessage ? "error" : I.value && u.verified && !u.loading ? "verified" : "default"), fe = (e) => {
592
592
  if (F(e)) return "";
593
593
  if (u.displayValue) return u.displayValue(e);
594
594
  let t = u.options.find((t) => N(j(t), e));
@@ -1293,7 +1293,7 @@ var en = /*#__PURE__*/ Xt(Zt, [["render", $t]]), J = /* @__PURE__ */ l({
1293
1293
  title: "Gezin met kinderen"
1294
1294
  }
1295
1295
  ], r = A(), i = k(e, "modelValue");
1296
- return (a, s) => (y(), n(W, m({
1296
+ return (a, s) => (y(), n(tt, m({
1297
1297
  modelValue: i.value,
1298
1298
  "onUpdate:modelValue": s[0] ||= (e) => i.value = e,
1299
1299
  label: e.label,
@@ -1337,14 +1337,14 @@ var en = /*#__PURE__*/ Xt(Zt, [["render", $t]]), J = /* @__PURE__ */ l({
1337
1337
  isValid: !N(e),
1338
1338
  isValidating: u.value[e]?.isValidating ?? !1
1339
1339
  })), g = (e, t) => {
1340
- let n = t && "value" in t ? t.value : st(a, e), r = { isValidating: t?.isValidating ?? !1 }, i = t?.error ?? "";
1340
+ let n = t && "value" in t ? t.value : W(a, e), r = { isValidating: t?.isValidating ?? !1 }, i = t?.error ?? "";
1341
1341
  y(e, fe(n)), _(e, r), i ? M({ [e]: i }) : P(e);
1342
1342
  }, _ = (e, t) => {
1343
1343
  u.value[e] = {
1344
1344
  ...u.value[e],
1345
1345
  ...t
1346
1346
  };
1347
- }, v = (e) => st(o.value, e), y = (e, t) => {
1347
+ }, v = (e) => W(o.value, e), y = (e, t) => {
1348
1348
  vt(o.value, e, t);
1349
1349
  }, S = (e, t) => {
1350
1350
  t === "blur" && j(e);
@@ -1556,7 +1556,7 @@ var en = /*#__PURE__*/ Xt(Zt, [["render", $t]]), J = /* @__PURE__ */ l({
1556
1556
  "error-message",
1557
1557
  "verified",
1558
1558
  "loading"
1559
- ]), c(W, {
1559
+ ]), c(tt, {
1560
1560
  modelValue: E(C),
1561
1561
  "onUpdate:modelValue": n[2] ||= (e) => d(C) ? C.value = e : null,
1562
1562
  name: "houseNumberAddition",
@@ -2175,7 +2175,6 @@ var Q = {
2175
2175
  buildYearRequired: "Kies het bouwjaar van je caravan"
2176
2176
  },
2177
2177
  house: { familyCompositionRequired: "Kies een gezinsamenstelling" },
2178
- legal: { familySizeRequired: "Kies het aantal kinderen" },
2179
2178
  loan: {
2180
2179
  purposeRequired: "Leendoel is verplicht",
2181
2180
  amountRequired: "Leenbedrag is verplicht",
@@ -3787,7 +3786,7 @@ var Yr = Jr(), Xr = Gr(Pr, Q.ownedBuilding.required), Zr = [1, 7], Qr = [3, 4],
3787
3786
  span: k.value ? 2 : 4,
3788
3787
  md: "6"
3789
3788
  }, {
3790
- default: P(() => [c(E(W), m({
3789
+ default: P(() => [c(E(tt), m({
3791
3790
  modelValue: E(h),
3792
3791
  "onUpdate:modelValue": i[0] ||= (e) => d(h) ? h.value = e : null,
3793
3792
  modelModifiers: { number: !0 },
@@ -3964,7 +3963,7 @@ var ci = {
3964
3963
  span: "4",
3965
3964
  md: "6"
3966
3965
  }, {
3967
- default: P(() => [c(E(W), m({
3966
+ default: P(() => [c(E(tt), m({
3968
3967
  modelValue: E(u),
3969
3968
  "onUpdate:modelValue": r[0] ||= (e) => d(u) ? u.value = e : null,
3970
3969
  label: "Wat voor huisdier wil je verzekeren?",
@@ -4123,7 +4122,7 @@ var _i = /* @__PURE__ */ l({
4123
4122
  span: "4",
4124
4123
  md: "6"
4125
4124
  }, {
4126
- default: P(() => [c(E(W), m({
4125
+ default: P(() => [c(E(tt), m({
4127
4126
  modelValue: E(f),
4128
4127
  "onUpdate:modelValue": r[0] ||= (e) => d(f) ? f.value = e : null,
4129
4128
  label: "Soort caravan",
@@ -4162,7 +4161,7 @@ var _i = /* @__PURE__ */ l({
4162
4161
  span: "2",
4163
4162
  md: "6"
4164
4163
  }, {
4165
- default: P(() => [c(E(W), m({
4164
+ default: P(() => [c(E(tt), m({
4166
4165
  modelValue: E(b),
4167
4166
  "onUpdate:modelValue": r[2] ||= (e) => d(b) ? b.value = e : null,
4168
4167
  label: "Bouwjaar",
@@ -4403,7 +4402,7 @@ var Di = [{
4403
4402
  label: "Gekocht"
4404
4403
  }, {
4405
4404
  value: U.No,
4406
- label: "Verhuurd"
4405
+ label: "Gehuurd"
4407
4406
  }], Oi = (e) => R({
4408
4407
  address: e,
4409
4408
  ownedBuilding: Xr,
@@ -4510,23 +4509,11 @@ function Ai(e) {
4510
4509
  };
4511
4510
  }
4512
4511
  //#endregion
4513
- //#region src/comparisons/legal/constants.ts
4514
- var ji = H.SingleWithChildren, Mi = (e) => R({
4512
+ //#region src/comparisons/legal/legal.schema.ts
4513
+ var ji = (e) => R({
4515
4514
  address: e,
4516
- ownedBuilding: Xr,
4517
- birthdate: $(),
4518
- familyComposition: Yr,
4519
- familySize: z().defined().when("familyComposition", {
4520
- is: ji,
4521
- then: (e) => e.required(Q.legal.familySizeRequired)
4522
- })
4523
- }), Ni = [{
4524
- title: "Alleenstaande met 1 kind",
4525
- value: "2"
4526
- }, {
4527
- title: "Alleenstaande met 2 of meer kinderen",
4528
- value: "3"
4529
- }], Pi = /* @__PURE__ */ l({
4515
+ ownedBuilding: Xr
4516
+ }), Mi = /* @__PURE__ */ l({
4530
4517
  __name: "LegalForm",
4531
4518
  props: /*@__PURE__*/ f({
4532
4519
  initialData: {},
@@ -4544,119 +4531,63 @@ var ji = H.SingleWithChildren, Mi = (e) => R({
4544
4531
  title: "Rechtsbijstandverzekering vergelijken"
4545
4532
  }),
4546
4533
  emits: ["submitted"],
4547
- setup(e, { emit: i }) {
4548
- let a = e, o = q(a), s = i, { addressSchema: l, draft: u, resolvedAddress: f, additionOptions: p } = Rn({ initial: a.initialData?.address }), { isSubmitting: h, handleSubmit: g, defineField: _, resetField: v } = Z(Mi(l), {
4549
- ownedBuilding: a.initialData?.ownedBuilding ?? U.Yes,
4550
- birthdate: a.initialData?.birthdate ?? "",
4551
- familyComposition: a.initialData?.familyComposition ?? H.SingleWithoutChildren,
4552
- familySize: a.initialData?.familySize ?? "",
4553
- address: u
4554
- }), [b, x, S] = _("ownedBuilding"), [C, w, T] = _("birthdate"), [D, O, k] = _("familyComposition", { validateAt: "change" }), [A, j, M] = _("familySize", { validateAt: "change" }), F = t(() => D.value === ji);
4555
- N(D, (e) => {
4556
- e !== ji && v("familySize", { value: "" });
4557
- }, { immediate: !0 });
4558
- function I() {
4559
- g(({ ownedBuilding: e, birthdate: t, familyComposition: n, familySize: r }) => {
4560
- s("submitted", {
4534
+ setup(e, { emit: t }) {
4535
+ let r = e, i = q(r), a = t, { addressSchema: o, draft: s, resolvedAddress: l, additionOptions: u } = Rn({ initial: r.initialData?.address }), { isSubmitting: f, handleSubmit: p, defineField: h } = Z(ji(o), {
4536
+ ownedBuilding: r.initialData?.ownedBuilding ?? U.Yes,
4537
+ address: s
4538
+ }), [g, _, v] = h("ownedBuilding");
4539
+ function b() {
4540
+ p(({ ownedBuilding: e }) => {
4541
+ a("submitted", {
4561
4542
  ownedBuilding: e,
4562
- birthdate: t,
4563
- familyComposition: n,
4564
- familySize: r,
4565
- address: f.value
4543
+ address: l.value
4566
4544
  });
4567
4545
  });
4568
4546
  }
4569
- return (t, i) => (y(), n(E(Y), m(E(o), {
4570
- "submit-disabled": e.submitDisabled || E(h),
4571
- onSubmit: I
4547
+ return (t, r) => (y(), n(E(Y), m(E(i), {
4548
+ "submit-disabled": e.submitDisabled || E(f),
4549
+ onSubmit: b
4572
4550
  }), {
4573
- default: P(() => [
4574
- c(E(J), {
4575
- span: "3",
4576
- md: "6"
4577
- }, {
4578
- default: P(() => [c(E(bn), {
4579
- "resolved-address": E(f),
4580
- "onUpdate:resolvedAddress": i[0] ||= (e) => d(f) ? f.value = e : null,
4581
- "addition-options": E(p)
4582
- }, null, 8, ["resolved-address", "addition-options"])]),
4583
- _: 1
4584
- }),
4585
- c(E(J), {
4586
- span: "3",
4587
- md: "6"
4588
- }, {
4589
- default: P(() => [c(E(Lt), m({
4590
- modelValue: E(b),
4591
- "onUpdate:modelValue": i[1] ||= (e) => d(b) ? b.value = e : null,
4592
- legend: "Jouw woning is...",
4593
- name: "ownedBuilding",
4594
- options: E(Di),
4595
- variant: "boxed",
4596
- required: !1,
4597
- "error-message": E(S)
4598
- }, E(x)), null, 16, [
4599
- "modelValue",
4600
- "options",
4601
- "error-message"
4602
- ])]),
4603
- _: 1
4604
- }),
4605
- c(E(J), {
4606
- span: "2",
4607
- md: "6"
4608
- }, {
4609
- default: P(() => [c(E(X), m({
4610
- modelValue: E(C),
4611
- "onUpdate:modelValue": i[2] ||= (e) => d(C) ? C.value = e : null,
4612
- "error-message": E(T)
4613
- }, E(w)), null, 16, ["modelValue", "error-message"])]),
4614
- _: 1
4615
- }),
4616
- c(E(J), {
4617
- span: "2",
4618
- md: "6"
4619
- }, {
4620
- default: P(() => [c(E(cn), m({
4621
- modelValue: E(D),
4622
- "onUpdate:modelValue": i[3] ||= (e) => d(D) ? D.value = e : null,
4623
- "error-message": E(k)
4624
- }, E(O)), null, 16, ["modelValue", "error-message"])]),
4625
- _: 1
4626
- }),
4627
- F.value ? (y(), n(E(J), {
4628
- key: 0,
4629
- span: "2",
4630
- md: "6"
4631
- }, {
4632
- default: P(() => [c(E(W), m({
4633
- modelValue: E(A),
4634
- "onUpdate:modelValue": i[4] ||= (e) => d(A) ? A.value = e : null,
4635
- label: "Aantal kinderen",
4636
- placeholder: "Maak een keuze",
4637
- options: E(Ni),
4638
- name: "familySize",
4639
- required: !1,
4640
- "error-message": E(M)
4641
- }, E(j)), null, 16, [
4642
- "modelValue",
4643
- "options",
4644
- "error-message"
4645
- ])]),
4646
- _: 1
4647
- })) : r("", !0)
4648
- ]),
4551
+ default: P(() => [c(E(J), {
4552
+ span: "5",
4553
+ md: "6"
4554
+ }, {
4555
+ default: P(() => [c(E(bn), {
4556
+ "resolved-address": E(l),
4557
+ "onUpdate:resolvedAddress": r[0] ||= (e) => d(l) ? l.value = e : null,
4558
+ "addition-options": E(u)
4559
+ }, null, 8, ["resolved-address", "addition-options"])]),
4560
+ _: 1
4561
+ }), c(E(J), {
4562
+ span: "5",
4563
+ md: "6"
4564
+ }, {
4565
+ default: P(() => [c(E(Lt), m({
4566
+ modelValue: E(g),
4567
+ "onUpdate:modelValue": r[1] ||= (e) => d(g) ? g.value = e : null,
4568
+ legend: "Jouw woning is...",
4569
+ name: "ownedBuilding",
4570
+ options: E(Di),
4571
+ variant: "boxed",
4572
+ required: !1,
4573
+ "error-message": E(v)
4574
+ }, E(_)), null, 16, [
4575
+ "modelValue",
4576
+ "options",
4577
+ "error-message"
4578
+ ])]),
4579
+ _: 1
4580
+ })]),
4649
4581
  _: 1
4650
4582
  }, 16, ["submit-disabled"]));
4651
4583
  }
4652
4584
  });
4653
4585
  //#endregion
4654
4586
  //#region src/comparisons/legal/legal.presenter.ts
4655
- function Fi(e) {
4587
+ function Ni(e) {
4656
4588
  return {
4657
4589
  comparison: V.LegalAssistance,
4658
4590
  detail: { comparison: {
4659
- familySize: e.familyComposition === ji ? e.familySize : "",
4660
4591
  deductables: 300,
4661
4592
  ownedBuilding: e.ownedBuilding
4662
4593
  } },
@@ -4664,16 +4595,14 @@ function Fi(e) {
4664
4595
  zipCode: e.address.zipCode,
4665
4596
  houseNumber: e.address.houseNumber,
4666
4597
  houseNumberAddition: e.address.houseNumberAddition,
4667
- birthdate: e.birthdate,
4668
4598
  street: e.address.street,
4669
- city: e.address.city,
4670
- familyComposition: e.familyComposition
4599
+ city: e.address.city
4671
4600
  }
4672
4601
  };
4673
4602
  }
4674
4603
  //#endregion
4675
4604
  //#region src/comparisons/package/package.schema.ts
4676
- var Ii = (e) => R({
4605
+ var Pi = (e) => R({
4677
4606
  address: e,
4678
4607
  birthdate: $(),
4679
4608
  familyComposition: Yr,
@@ -4681,7 +4610,7 @@ var Ii = (e) => R({
4681
4610
  is: Br,
4682
4611
  then: () => $()
4683
4612
  })
4684
- }), Li = /* @__PURE__ */ l({
4613
+ }), Fi = /* @__PURE__ */ l({
4685
4614
  __name: "PackageForm",
4686
4615
  props: /*@__PURE__*/ f({
4687
4616
  initialData: {},
@@ -4700,7 +4629,7 @@ var Ii = (e) => R({
4700
4629
  }),
4701
4630
  emits: ["submitted"],
4702
4631
  setup(e, { emit: i }) {
4703
- let a = e, o = q(a), s = i, { addressSchema: l, draft: u, resolvedAddress: f, additionOptions: p } = Rn({ initial: a.initialData?.address }), { isSubmitting: h, handleSubmit: g, defineField: _, resetField: v } = Z(Ii(l), {
4632
+ let a = e, o = q(a), s = i, { addressSchema: l, draft: u, resolvedAddress: f, additionOptions: p } = Rn({ initial: a.initialData?.address }), { isSubmitting: h, handleSubmit: g, defineField: _, resetField: v } = Z(Pi(l), {
4704
4633
  birthdate: a.initialData?.birthdate ?? "",
4705
4634
  familyComposition: a.initialData?.familyComposition ?? H.SingleWithoutChildren,
4706
4635
  partnerBirthdate: a.initialData?.partnerBirthdate ?? "",
@@ -4779,7 +4708,7 @@ var Ii = (e) => R({
4779
4708
  });
4780
4709
  //#endregion
4781
4710
  //#region src/comparisons/package/package.presenter.ts
4782
- function Ri(e) {
4711
+ function Ii(e) {
4783
4712
  return {
4784
4713
  comparison: V.Package,
4785
4714
  detail: { partner: { birthdate: e.partnerBirthdate } },
@@ -4796,18 +4725,18 @@ function Ri(e) {
4796
4725
  }
4797
4726
  //#endregion
4798
4727
  //#region src/comparisons/loan/constants.ts
4799
- var zi = {
4728
+ var Li = {
4800
4729
  min: 21,
4801
4730
  max: 74
4802
- }, Bi = {
4731
+ }, Ri = {
4803
4732
  min: 3500,
4804
4733
  max: 75e3
4805
- }, Vi = R({
4734
+ }, zi = R({
4806
4735
  LoanPurpose: z().required(Q.loan.purposeRequired),
4807
- LoanAmount: qr(Q.loan.amountRequired).min(Bi.min, Q.loan.amountMin(Bi.min)).max(Bi.max, Q.loan.amountMax(Bi.max)),
4808
- birthdate: $(zi),
4736
+ LoanAmount: qr(Q.loan.amountRequired).min(Ri.min, Q.loan.amountMin(Ri.min)).max(Ri.max, Q.loan.amountMax(Ri.max)),
4737
+ birthdate: $(Li),
4809
4738
  familyComposition: Yr
4810
- }), Hi = [
4739
+ }), Bi = [
4811
4740
  {
4812
4741
  title: "Aankoop auto",
4813
4742
  value: "02"
@@ -4856,7 +4785,7 @@ var zi = {
4856
4785
  title: "Anders",
4857
4786
  value: "99"
4858
4787
  }
4859
- ], Ui = /* @__PURE__ */ l({
4788
+ ], Vi = /* @__PURE__ */ l({
4860
4789
  __name: "LoanForm",
4861
4790
  props: /*@__PURE__*/ f({
4862
4791
  initialData: {},
@@ -4875,7 +4804,7 @@ var zi = {
4875
4804
  }),
4876
4805
  emits: ["submitted"],
4877
4806
  setup(e, { emit: t }) {
4878
- let r = e, i = q(r), a = t, { isSubmitting: o, handleSubmit: s, defineField: l } = Z(Vi, {
4807
+ let r = e, i = q(r), a = t, { isSubmitting: o, handleSubmit: s, defineField: l } = Z(zi, {
4879
4808
  LoanPurpose: r.initialData?.LoanPurpose ?? "",
4880
4809
  LoanAmount: r.initialData?.LoanAmount ?? null,
4881
4810
  birthdate: r.initialData?.birthdate ?? "",
@@ -4895,12 +4824,12 @@ var zi = {
4895
4824
  span: "3",
4896
4825
  md: "6"
4897
4826
  }, {
4898
- default: P(() => [c(E(W), m({
4827
+ default: P(() => [c(E(tt), m({
4899
4828
  modelValue: E(u),
4900
4829
  "onUpdate:modelValue": r[0] ||= (e) => d(u) ? u.value = e : null,
4901
4830
  label: "Leendoel",
4902
4831
  placeholder: "Maak een keuze",
4903
- options: E(Hi),
4832
+ options: E(Bi),
4904
4833
  name: "LoanPurpose",
4905
4834
  required: !1,
4906
4835
  "error-message": E(p)
@@ -4959,19 +4888,19 @@ var zi = {
4959
4888
  });
4960
4889
  //#endregion
4961
4890
  //#region src/comparisons/loan/loan.presenter.ts
4962
- function Wi(e) {
4891
+ function Hi(e) {
4963
4892
  let t = Lr(e, Mr);
4964
4893
  if (!t) return 120;
4965
4894
  let n = t.add(76, "year").diff(ke(), "month", !0), r = Math.floor(n / 12) * 12;
4966
4895
  return Math.min(r, 120);
4967
4896
  }
4968
- function Gi(e) {
4897
+ function Ui(e) {
4969
4898
  return {
4970
4899
  comparison: V.Loan,
4971
4900
  detail: { loan: {
4972
4901
  LoanPurpose: e.LoanPurpose,
4973
4902
  LoanAmount: e.LoanAmount,
4974
- MaxDurationByLegalLimit: Wi(e.birthdate)
4903
+ MaxDurationByLegalLimit: Hi(e.birthdate)
4975
4904
  } },
4976
4905
  user: {
4977
4906
  birthdate: e.birthdate,
@@ -4981,14 +4910,14 @@ function Gi(e) {
4981
4910
  }
4982
4911
  //#endregion
4983
4912
  //#region src/comparisons/moped/constants.ts
4984
- var Ki = {
4913
+ var Wi = {
4985
4914
  min: 16,
4986
4915
  max: 99
4987
- }, qi = (e, t) => R({
4916
+ }, Gi = (e, t) => R({
4988
4917
  licensePlate: e,
4989
4918
  address: t,
4990
- birthdate: $(Ki)
4991
- }), Ji = /* @__PURE__ */ l({
4919
+ birthdate: $(Wi)
4920
+ }), Ki = /* @__PURE__ */ l({
4992
4921
  __name: "MopedForm",
4993
4922
  props: /*@__PURE__*/ f({
4994
4923
  initialData: {},
@@ -5007,7 +4936,7 @@ var Ki = {
5007
4936
  }),
5008
4937
  emits: ["submitted"],
5009
4938
  setup(e, { emit: t }) {
5010
- let r = e, i = q(r), a = t, { addressSchema: o, draft: s, resolvedAddress: l, additionOptions: u } = Rn({ initial: r.initialData?.address }), { vehicleData: f, licensePlateSchema: p } = ir(V.Moped, { initialData: r.initialData?.vehicle ?? void 0 }), { isSubmitting: h, handleSubmit: g, defineField: _ } = Z(qi(p, o), {
4939
+ let r = e, i = q(r), a = t, { addressSchema: o, draft: s, resolvedAddress: l, additionOptions: u } = Rn({ initial: r.initialData?.address }), { vehicleData: f, licensePlateSchema: p } = ir(V.Moped, { initialData: r.initialData?.vehicle ?? void 0 }), { isSubmitting: h, handleSubmit: g, defineField: _ } = Z(Gi(p, o), {
5011
4940
  licensePlate: r.initialData?.licensePlate ?? "",
5012
4941
  birthdate: r.initialData?.birthdate ?? "",
5013
4942
  address: s
@@ -5088,7 +5017,7 @@ var Ki = {
5088
5017
  });
5089
5018
  //#endregion
5090
5019
  //#region src/comparisons/moped/moped.presenter.ts
5091
- function Yi(e) {
5020
+ function qi(e) {
5092
5021
  return {
5093
5022
  comparison: V.Moped,
5094
5023
  detail: { moped: { ...e.vehicle } },
@@ -5105,11 +5034,11 @@ function Yi(e) {
5105
5034
  }
5106
5035
  //#endregion
5107
5036
  //#region src/comparisons/motor/motor.schema.ts
5108
- var Xi = (e, t) => R({
5037
+ var Ji = (e, t) => R({
5109
5038
  licensePlate: e,
5110
5039
  address: t,
5111
5040
  birthdate: $()
5112
- }), Zi = /* @__PURE__ */ l({
5041
+ }), Yi = /* @__PURE__ */ l({
5113
5042
  __name: "MotorForm",
5114
5043
  props: /*@__PURE__*/ f({
5115
5044
  initialData: {},
@@ -5128,7 +5057,7 @@ var Xi = (e, t) => R({
5128
5057
  }),
5129
5058
  emits: ["submitted"],
5130
5059
  setup(e, { emit: t }) {
5131
- let r = e, i = q(r), a = t, { addressSchema: o, draft: s, resolvedAddress: l, additionOptions: u } = Rn({ initial: r.initialData?.address }), { vehicleData: f, licensePlateSchema: p } = ir(V.Motor, { initialData: r.initialData?.vehicle ?? void 0 }), { isSubmitting: h, handleSubmit: g, defineField: _ } = Z(Xi(p, o), {
5060
+ let r = e, i = q(r), a = t, { addressSchema: o, draft: s, resolvedAddress: l, additionOptions: u } = Rn({ initial: r.initialData?.address }), { vehicleData: f, licensePlateSchema: p } = ir(V.Motor, { initialData: r.initialData?.vehicle ?? void 0 }), { isSubmitting: h, handleSubmit: g, defineField: _ } = Z(Ji(p, o), {
5132
5061
  licensePlate: r.initialData?.licensePlate ?? "",
5133
5062
  birthdate: r.initialData?.birthdate ?? "",
5134
5063
  address: s
@@ -5209,7 +5138,7 @@ var Xi = (e, t) => R({
5209
5138
  });
5210
5139
  //#endregion
5211
5140
  //#region src/comparisons/motor/motor.presenter.ts
5212
- function Qi(e) {
5141
+ function Xi(e) {
5213
5142
  return {
5214
5143
  comparison: V.Motor,
5215
5144
  detail: { motor: { ...e.vehicle } },
@@ -5226,11 +5155,11 @@ function Qi(e) {
5226
5155
  }
5227
5156
  //#endregion
5228
5157
  //#region src/comparisons/car/car.schema.ts
5229
- var $i = (e, t) => R({
5158
+ var Zi = (e, t) => R({
5230
5159
  licensePlate: e,
5231
5160
  address: t,
5232
5161
  birthdate: $()
5233
- }), ea = /* @__PURE__ */ l({
5162
+ }), Qi = /* @__PURE__ */ l({
5234
5163
  __name: "CarForm",
5235
5164
  props: /*@__PURE__*/ f({
5236
5165
  initialData: {},
@@ -5249,7 +5178,7 @@ var $i = (e, t) => R({
5249
5178
  }),
5250
5179
  emits: ["submitted"],
5251
5180
  setup(e, { emit: t }) {
5252
- let r = e, i = q(r), a = t, { addressSchema: o, draft: s, resolvedAddress: l, additionOptions: u } = Rn({ initial: r.initialData?.address }), { vehicleData: f, licensePlateSchema: p } = ir(V.Car, { initialData: r.initialData?.vehicle ?? void 0 }), { isSubmitting: h, handleSubmit: g, defineField: _ } = Z($i(p, o), {
5181
+ let r = e, i = q(r), a = t, { addressSchema: o, draft: s, resolvedAddress: l, additionOptions: u } = Rn({ initial: r.initialData?.address }), { vehicleData: f, licensePlateSchema: p } = ir(V.Car, { initialData: r.initialData?.vehicle ?? void 0 }), { isSubmitting: h, handleSubmit: g, defineField: _ } = Z(Zi(p, o), {
5253
5182
  licensePlate: r.initialData?.licensePlate ?? "",
5254
5183
  birthdate: r.initialData?.birthdate ?? "",
5255
5184
  address: s
@@ -5330,7 +5259,7 @@ var $i = (e, t) => R({
5330
5259
  });
5331
5260
  //#endregion
5332
5261
  //#region src/comparisons/car/car.presenter.ts
5333
- function ta(e) {
5262
+ function $i(e) {
5334
5263
  return {
5335
5264
  comparison: V.Car,
5336
5265
  detail: { car: { ...e.vehicle } },
@@ -5347,10 +5276,10 @@ function ta(e) {
5347
5276
  }
5348
5277
  //#endregion
5349
5278
  //#region src/comparisons/car-business/businessCar.schema.ts
5350
- var na = (e) => R({
5279
+ var ea = (e) => R({
5351
5280
  licensePlate: e,
5352
5281
  company: Ar()
5353
- }), ra = /* @__PURE__ */ l({
5282
+ }), ta = /* @__PURE__ */ l({
5354
5283
  __name: "BusinessCarForm",
5355
5284
  props: /*@__PURE__*/ f({
5356
5285
  initialData: {},
@@ -5369,7 +5298,7 @@ var na = (e) => R({
5369
5298
  }),
5370
5299
  emits: ["submitted"],
5371
5300
  setup(e, { emit: i }) {
5372
- let a = e, o = q(a), s = i, { vehicleData: l, licensePlateSchema: u } = ir(V.Car, { initialData: a.initialData?.vehicle ?? void 0 }), { isSubmitting: f, handleSubmit: p, defineField: h, setErrors: g, removeError: _ } = Z(na(u), {
5301
+ let a = e, o = q(a), s = i, { vehicleData: l, licensePlateSchema: u } = ir(V.Car, { initialData: a.initialData?.vehicle ?? void 0 }), { isSubmitting: f, handleSubmit: p, defineField: h, setErrors: g, removeError: _ } = Z(ea(u), {
5373
5302
  licensePlate: a.initialData?.licensePlate ?? "",
5374
5303
  company: a.initialData?.company ?? null
5375
5304
  }), [v, b, x, S] = h("licensePlate"), [C, w, T] = h("company"), D = (e) => e ? g({ company: e }) : _("company"), O = t(() => !!C.value && !C.value.hasVisitingAddress);
@@ -5449,7 +5378,7 @@ var na = (e) => R({
5449
5378
  });
5450
5379
  //#endregion
5451
5380
  //#region src/comparisons/car-business/businessCar.presenter.ts
5452
- function ia(e) {
5381
+ function na(e) {
5453
5382
  return {
5454
5383
  comparison: V.CarBusiness,
5455
5384
  detail: {
@@ -5461,7 +5390,7 @@ function ia(e) {
5461
5390
  }
5462
5391
  //#endregion
5463
5392
  //#region src/comparisons/businessLiability/businessLiability.schema.ts
5464
- var aa = R({ company: Ar() }), oa = /* @__PURE__ */ l({
5393
+ var ra = R({ company: Ar() }), ia = /* @__PURE__ */ l({
5465
5394
  __name: "BusinessLiabilityForm",
5466
5395
  props: /*@__PURE__*/ f({
5467
5396
  initialData: {},
@@ -5482,7 +5411,7 @@ var aa = R({ company: Ar() }), oa = /* @__PURE__ */ l({
5482
5411
  }),
5483
5412
  emits: ["submitted"],
5484
5413
  setup(e, { emit: i }) {
5485
- let a = e, o = q(a), s = i, { isSubmitting: l, handleSubmit: u, defineField: f, setErrors: p, removeError: h } = Z(aa, { company: a.initialData?.company ?? null }), [g, _, v] = f("company"), b = (e) => e ? p({ company: e }) : h("company"), x = t(() => !!g.value && !g.value.hasVisitingAddress);
5414
+ let a = e, o = q(a), s = i, { isSubmitting: l, handleSubmit: u, defineField: f, setErrors: p, removeError: h } = Z(ra, { company: a.initialData?.company ?? null }), [g, _, v] = f("company"), b = (e) => e ? p({ company: e }) : h("company"), x = t(() => !!g.value && !g.value.hasVisitingAddress);
5486
5415
  function S() {
5487
5416
  u(({ company: e }) => {
5488
5417
  s("submitted", { company: e });
@@ -5526,7 +5455,7 @@ var aa = R({ company: Ar() }), oa = /* @__PURE__ */ l({
5526
5455
  });
5527
5456
  //#endregion
5528
5457
  //#region src/comparisons/businessLiability/businessLiability.presenter.ts
5529
- function sa(e) {
5458
+ function aa(e) {
5530
5459
  return {
5531
5460
  comparison: V.BusinessLiability,
5532
5461
  detail: { companyData: { ...e.company } },
@@ -5535,9 +5464,9 @@ function sa(e) {
5535
5464
  }
5536
5465
  //#endregion
5537
5466
  //#region src/flow/useComparisonSubmit.ts
5538
- var ca = { [V.Travel]: "/tarieven/" }, la = (e, t, n) => `${e}#/${n}${ca[t] ?? ""}`, ua = (e) => {
5467
+ var oa = { [V.Travel]: "/tarieven/" }, sa = (e, t, n) => `${e}#/${n}${oa[t] ?? ""}`, ca = (e) => {
5539
5468
  window.location.href = e;
5540
- }, da = ({ user: e, detail: t }) => new Oe({
5469
+ }, la = ({ user: e, detail: t }) => new Oe({
5541
5470
  email: e.email || null,
5542
5471
  name: e.firstName || null,
5543
5472
  zip_code: e.zipCode || null,
@@ -5551,14 +5480,14 @@ var ca = { [V.Travel]: "/tarieven/" }, la = (e, t, n) => `${e}#/${n}${ca[t] ?? "
5551
5480
  ...e.city && { city: e.city }
5552
5481
  }
5553
5482
  });
5554
- function fa(e) {
5483
+ function ua(e) {
5555
5484
  let t = x(!1), n = x(null);
5556
5485
  return {
5557
5486
  submit: async (r) => {
5558
5487
  t.value = !0, n.value = null;
5559
5488
  try {
5560
- let t = await Cn().comparisonService.create(r.comparison, da(r)), n = la(e.link, r.comparison, t.getId());
5561
- e.onRedirect ? e.onRedirect(n) : ua(n);
5489
+ let t = await Cn().comparisonService.create(r.comparison, la(r)), n = sa(e.link, r.comparison, t.getId());
5490
+ e.onRedirect ? e.onRedirect(n) : ca(n);
5562
5491
  } catch (t) {
5563
5492
  n.value = t, e.onError?.(t, r);
5564
5493
  } finally {
@@ -5571,66 +5500,66 @@ function fa(e) {
5571
5500
  }
5572
5501
  //#endregion
5573
5502
  //#region src/comparisons/bike/index.ts
5574
- var pa = /* @__PURE__ */ B({
5503
+ var da = /* @__PURE__ */ B({
5575
5504
  Form: () => oi,
5576
5505
  presenter: () => si
5577
- }), ma = /* @__PURE__ */ B({
5506
+ }), fa = /* @__PURE__ */ B({
5578
5507
  Form: () => di,
5579
5508
  presenter: () => fi
5580
- }), ha = /* @__PURE__ */ B({
5509
+ }), pa = /* @__PURE__ */ B({
5581
5510
  Form: () => _i,
5582
5511
  presenter: () => vi
5583
- }), ga = /* @__PURE__ */ B({
5512
+ }), ma = /* @__PURE__ */ B({
5584
5513
  Form: () => Si,
5585
5514
  presenter: () => Ci
5586
- }), _a = /* @__PURE__ */ B({
5515
+ }), ha = /* @__PURE__ */ B({
5587
5516
  Form: () => Ti,
5588
5517
  presenter: () => Ei
5589
- }), va = /* @__PURE__ */ B({
5518
+ }), ga = /* @__PURE__ */ B({
5590
5519
  Form: () => ki,
5591
5520
  presenter: () => Ai
5521
+ }), _a = /* @__PURE__ */ B({
5522
+ Form: () => Mi,
5523
+ presenter: () => Ni
5524
+ }), va = /* @__PURE__ */ B({
5525
+ Form: () => Fi,
5526
+ presenter: () => Ii
5592
5527
  }), ya = /* @__PURE__ */ B({
5593
- Form: () => Pi,
5594
- presenter: () => Fi
5528
+ Form: () => Vi,
5529
+ presenter: () => Ui
5595
5530
  }), ba = /* @__PURE__ */ B({
5596
- Form: () => Li,
5597
- presenter: () => Ri
5531
+ Form: () => Ki,
5532
+ presenter: () => qi
5598
5533
  }), xa = /* @__PURE__ */ B({
5599
- Form: () => Ui,
5600
- presenter: () => Gi
5534
+ Form: () => Yi,
5535
+ presenter: () => Xi
5601
5536
  }), Sa = /* @__PURE__ */ B({
5602
- Form: () => Ji,
5603
- presenter: () => Yi
5537
+ Form: () => Qi,
5538
+ presenter: () => $i
5604
5539
  }), Ca = /* @__PURE__ */ B({
5605
- Form: () => Zi,
5606
- presenter: () => Qi
5540
+ Form: () => ta,
5541
+ presenter: () => na
5607
5542
  }), wa = /* @__PURE__ */ B({
5608
- Form: () => ea,
5609
- presenter: () => ta
5610
- }), Ta = /* @__PURE__ */ B({
5611
- Form: () => ra,
5612
- presenter: () => ia
5613
- }), Ea = /* @__PURE__ */ B({
5614
- Form: () => oa,
5615
- presenter: () => sa
5616
- }), Da = {
5617
- [V.Bike]: pa,
5618
- [V.Pet]: ma,
5619
- [V.Caravan]: ha,
5620
- [V.Travel]: ga,
5621
- [V.Liability]: _a,
5622
- [V.Housing]: va,
5623
- house: va,
5624
- [V.LegalAssistance]: ya,
5625
- [V.Package]: ba,
5626
- [V.Loan]: xa,
5627
- [V.Moped]: Sa,
5628
- [V.Motor]: Ca,
5629
- [V.Car]: wa,
5630
- [V.CarBusiness]: Ta,
5631
- "business-car": Ta,
5632
- [V.BusinessLiability]: Ea
5633
- }, Oa = /* @__PURE__ */ l({
5543
+ Form: () => ia,
5544
+ presenter: () => aa
5545
+ }), Ta = {
5546
+ [V.Bike]: da,
5547
+ [V.Pet]: fa,
5548
+ [V.Caravan]: pa,
5549
+ [V.Travel]: ma,
5550
+ [V.Liability]: ha,
5551
+ [V.Housing]: ga,
5552
+ house: ga,
5553
+ [V.LegalAssistance]: _a,
5554
+ [V.Package]: va,
5555
+ [V.Loan]: ya,
5556
+ [V.Moped]: ba,
5557
+ [V.Motor]: xa,
5558
+ [V.Car]: Sa,
5559
+ [V.CarBusiness]: Ca,
5560
+ "business-car": Ca,
5561
+ [V.BusinessLiability]: wa
5562
+ }, Ea = /* @__PURE__ */ l({
5634
5563
  __name: "ComparisonFormFlow",
5635
5564
  props: {
5636
5565
  form: {},
@@ -5661,7 +5590,7 @@ var pa = /* @__PURE__ */ B({
5661
5590
  },
5662
5591
  emits: ["submitted", "error"],
5663
5592
  setup(e, { emit: i }) {
5664
- let a = e, o = i, s = q(a), c = t(() => Da[a.form]), { submit: l, isSubmitting: u } = fa({
5593
+ let a = e, o = i, s = q(a), c = t(() => Ta[a.form]), { submit: l, isSubmitting: u } = ua({
5665
5594
  link: a.link,
5666
5595
  onRedirect: (e) => {
5667
5596
  o("submitted", e), a.redirect ? a.redirect(e) : window.location.href = e;
@@ -5677,18 +5606,18 @@ var pa = /* @__PURE__ */ B({
5677
5606
  onSubmitted: d
5678
5607
  }), null, 16, ["initial-data", "submit-disabled"])) : r("", !0);
5679
5608
  }
5680
- }), ka, Aa = (e) => {
5681
- ka = e;
5682
- }, ja = () => ka?.url, Ma = { class: "vd-form vd-form--vertical vd-form--card" }, Na = {
5609
+ }), Da, Oa = (e) => {
5610
+ Da = e;
5611
+ }, ka = () => Da?.url, Aa = { class: "vd-form vd-form--vertical vd-form--card" }, ja = {
5683
5612
  key: 0,
5684
5613
  class: "vd-form__header"
5685
- }, Pa = {
5614
+ }, Ma = {
5686
5615
  key: 0,
5687
5616
  class: "vd-form__title"
5688
- }, Fa = {
5617
+ }, Na = {
5689
5618
  key: 1,
5690
5619
  class: "vd-form__description"
5691
- }, Ia = /* @__PURE__ */ l({
5620
+ }, Pa = /* @__PURE__ */ l({
5692
5621
  __name: "QuestionnaireForm",
5693
5622
  props: {
5694
5623
  link: {},
@@ -5707,7 +5636,7 @@ var pa = /* @__PURE__ */ B({
5707
5636
  qaId: n.qaId,
5708
5637
  template: n.thankyouPageTemplate
5709
5638
  }));
5710
- return (t, n) => (y(), i("div", Ma, [e.showTitle && e.title || e.description ? (y(), i("div", Na, [e.showTitle && e.title ? (y(), i("h2", Pa, T(e.title), 1)) : r("", !0), e.description ? (y(), i("p", Fa, T(e.description), 1)) : r("", !0)])) : r("", !0), c(E(Ne), {
5639
+ return (t, n) => (y(), i("div", Aa, [e.showTitle && e.title || e.description ? (y(), i("div", ja, [e.showTitle && e.title ? (y(), i("h2", Ma, T(e.title), 1)) : r("", !0), e.description ? (y(), i("p", Na, T(e.description), 1)) : r("", !0)])) : r("", !0), c(E(Ne), {
5711
5640
  href: a.value,
5712
5641
  label: e.buttonText,
5713
5642
  "button-type": "green",
@@ -5716,16 +5645,16 @@ var pa = /* @__PURE__ */ B({
5716
5645
  block: ""
5717
5646
  }, null, 8, ["href", "label"])]));
5718
5647
  }
5719
- }), La = {
5648
+ }), Fa = {
5720
5649
  key: 0,
5721
5650
  class: "vd-form__header"
5722
- }, Ra = {
5651
+ }, Ia = {
5723
5652
  key: 0,
5724
5653
  class: "vd-form__title"
5725
- }, za = {
5654
+ }, La = {
5726
5655
  key: 1,
5727
5656
  class: "vd-form__description"
5728
- }, Ba = { class: "vd-form__row" }, Va = { class: "vd-form__col-10 vd-form__col-md-6" }, Ha = { class: "vd-form__col-2 vd-form__action" }, Ua = /* @__PURE__ */ l({
5657
+ }, Ra = { class: "vd-form__row" }, za = { class: "vd-form__col-10 vd-form__col-md-6" }, Ba = { class: "vd-form__col-2 vd-form__action" }, Va = /* @__PURE__ */ l({
5729
5658
  __name: "RiskScannerForm",
5730
5659
  props: {
5731
5660
  qaUrl: { default: "" },
@@ -5745,7 +5674,7 @@ var pa = /* @__PURE__ */ B({
5745
5674
  setup(e) {
5746
5675
  let o = e, s = x(null), { isSubmitting: l, handleSubmit: u, defineField: f, setErrors: p, removeError: h } = Z(R({ company: Ar() }), { company: null }), [g, _, v] = f("company"), b = (e) => e ? p({ company: e }) : h("company"), S = t(() => !!g.value && !g.value.hasVisitingAddress);
5747
5676
  async function C(e) {
5748
- let t = o.qaUrl || ja();
5677
+ let t = o.qaUrl || ka();
5749
5678
  if (!t) throw Error("QA api url is required — set the qa-url attribute, or call configureQa({ url }) once at bootstrap.");
5750
5679
  let n = t.endsWith("/") ? t : `${t}/`, r = await fetch(`${n}api/v1/active-questionnaire/${o.qaId}/start`, {
5751
5680
  method: "POST",
@@ -5781,7 +5710,7 @@ var pa = /* @__PURE__ */ B({
5781
5710
  return (t, o) => (y(), i("form", {
5782
5711
  class: "vd-form vd-form--vertical vd-form--card",
5783
5712
  onSubmit: I(w, ["prevent", "stop"])
5784
- }, [e.showTitle && e.title || e.description ? (y(), i("div", La, [e.showTitle && e.title ? (y(), i("h2", Ra, T(e.title), 1)) : r("", !0), e.description ? (y(), i("p", za, T(e.description), 1)) : r("", !0)])) : r("", !0), a("div", Ba, [a("div", Va, [c(E(kr), m({
5713
+ }, [e.showTitle && e.title || e.description ? (y(), i("div", Fa, [e.showTitle && e.title ? (y(), i("h2", Ia, T(e.title), 1)) : r("", !0), e.description ? (y(), i("p", La, T(e.description), 1)) : r("", !0)])) : r("", !0), a("div", Ra, [a("div", za, [c(E(kr), m({
5785
5714
  modelValue: E(g),
5786
5715
  "onUpdate:modelValue": o[0] ||= (e) => d(g) ? g.value = e : null
5787
5716
  }, E(_), {
@@ -5792,7 +5721,7 @@ var pa = /* @__PURE__ */ B({
5792
5721
  key: 0,
5793
5722
  style: { "margin-top": "12px" },
5794
5723
  text: "Dit bedrijf heeft geen geregistreerd bezoekadres. Voeg dit toe bij de KvK om door te gaan met de aanvraag."
5795
- })) : r("", !0)]), a("div", Ha, [c(E(Ne), {
5724
+ })) : r("", !0)]), a("div", Ba, [c(E(Ne), {
5796
5725
  type: "submit",
5797
5726
  label: e.buttonText,
5798
5727
  "is-loading": E(l),
@@ -5809,4 +5738,4 @@ var pa = /* @__PURE__ */ B({
5809
5738
  }
5810
5739
  });
5811
5740
  //#endregion
5812
- export { oi as BikeForm, ra as BusinessCarForm, oa as BusinessLiabilityForm, ea as CarForm, _i as CaravanForm, Oa as ComparisonFormFlow, V as ComparisonName, ki as HouseForm, Pi as LegalForm, Ti as LiabilityForm, Ui as LoanForm, Ji as MopedForm, Zi as MotorForm, Li as PackageForm, di as PetForm, Ia as QuestionnaireForm, Ua as RiskScannerForm, Si as TravelForm, si as bikePresenter, ia as businessCarPresenter, sa as businessLiabilityPresenter, ta as carPresenter, vi as caravanPresenter, Aa as configureQa, Ai as housePresenter, Fi as legalPresenter, Ei as liabilityPresenter, Gi as loanPresenter, Yi as mopedPresenter, Qi as motorPresenter, Ri as packagePresenter, fi as petPresenter, Ci as travelPresenter, fa as useComparisonSubmit };
5741
+ export { oi as BikeForm, ta as BusinessCarForm, ia as BusinessLiabilityForm, Qi as CarForm, _i as CaravanForm, Ea as ComparisonFormFlow, V as ComparisonName, ki as HouseForm, Mi as LegalForm, Ti as LiabilityForm, Vi as LoanForm, Ki as MopedForm, Yi as MotorForm, Fi as PackageForm, di as PetForm, Pa as QuestionnaireForm, Va as RiskScannerForm, Si as TravelForm, si as bikePresenter, na as businessCarPresenter, aa as businessLiabilityPresenter, $i as carPresenter, vi as caravanPresenter, Oa as configureQa, Ai as housePresenter, Ni as legalPresenter, Ei as liabilityPresenter, Ui as loanPresenter, qi as mopedPresenter, Xi as motorPresenter, Ii as packagePresenter, fi as petPresenter, Ci as travelPresenter, ua as useComparisonSubmit };