@vergelijkdirect/comparison-forms 2.0.0-rc.32 → 2.0.0-rc.33

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.
@@ -24313,6 +24313,7 @@ var cM = {
24313
24313
  kindRequired: "Selecteer je fiets",
24314
24314
  conditionRequired: "Is je fiets nieuw of tweedehands gekocht?",
24315
24315
  priceRequired: "Vul de aankoopprijs in (afgerond bedrag)",
24316
+ priceMin: "Het ingevulde bedrag is te laag. Voer een bedrag hoger dan € 0,- in",
24316
24317
  priceMax: (e) => `Het ingevulde bedrag is te hoog. Voer een bedrag in tot maximaal € ${e},-`,
24317
24318
  brandRequired: "Kies het merk van je fiets"
24318
24319
  },
@@ -24376,22 +24377,29 @@ function mM(e = cM.familyComposition.required) {
24376
24377
  var hM = mM(), gM = dM(Yj, cM.ownedBuilding.required), _M = [1, 7], vM = [3, 4], yM = {
24377
24378
  raceOrMtb: 15e3,
24378
24379
  default: 9999
24379
- }, bM = (e, t) => e.test("max-value", cM.bike.priceMax(t), (e) => {
24380
+ }, bM = {
24381
+ mask: "N####",
24382
+ tokens: { N: { pattern: /[1-9]/ } }
24383
+ }, xM = (e, t) => e.test("max-value", cM.bike.priceMax(t), (e) => {
24380
24384
  let n = Number(e);
24381
24385
  return Number.isNaN(n) || n <= t;
24382
- }), xM = Ob({
24386
+ }), SM = Ob({
24383
24387
  kind: pM(cM.bike.kindRequired),
24384
24388
  condition: pM(cM.bike.conditionRequired),
24385
- price: ub().required(cM.bike.priceRequired).when("kind", {
24389
+ price: ub().required(cM.bike.priceRequired).test("min-value", cM.bike.priceMin, (e) => {
24390
+ if (!e) return !0;
24391
+ let t = Number(e);
24392
+ return Number.isNaN(t) || t > 0;
24393
+ }).when("kind", {
24386
24394
  is: (e) => vM.includes(Number(e)),
24387
- then: (e) => bM(e, yM.raceOrMtb),
24388
- otherwise: (e) => bM(e, yM.default)
24395
+ then: (e) => xM(e, yM.raceOrMtb),
24396
+ otherwise: (e) => xM(e, yM.default)
24389
24397
  }),
24390
24398
  brand: ub().when("kind", {
24391
24399
  is: (e) => _M.includes(Number(e)),
24392
24400
  then: (e) => e.required(cM.bike.brandRequired)
24393
24401
  })
24394
- }), SM = [
24402
+ }), CM = [
24395
24403
  {
24396
24404
  value: 4,
24397
24405
  title: "ATB / Mountainbike",
@@ -24458,13 +24466,13 @@ var hM = mM(), gM = dM(Yj, cM.ownedBuilding.required), _M = [1, 7], vM = [3, 4],
24458
24466
  name: "Vouwfiets",
24459
24467
  isEBike: !1
24460
24468
  }
24461
- ], CM = [{
24469
+ ], wM = [{
24462
24470
  value: 1,
24463
24471
  label: "Nieuw"
24464
24472
  }, {
24465
24473
  value: 0,
24466
24474
  label: "Tweedehands"
24467
- }], wM = [
24475
+ }], TM = [
24468
24476
  {
24469
24477
  id: "Ander merk",
24470
24478
  name: "Ander merk"
@@ -25885,7 +25893,7 @@ var hM = mM(), gM = dM(Yj, cM.ownedBuilding.required), _M = [1, 7], vM = [3, 4],
25885
25893
  id: "Zündapp",
25886
25894
  name: "Zündapp"
25887
25895
  }
25888
- ], TM = /* @__PURE__ */ L({
25896
+ ], EM = /* @__PURE__ */ L({
25889
25897
  __name: "BikeForm",
25890
25898
  props: /*@__PURE__*/ Va({
25891
25899
  initialData: {},
@@ -25904,7 +25912,7 @@ var hM = mM(), gM = dM(Yj, cM.ownedBuilding.required), _M = [1, 7], vM = [3, 4],
25904
25912
  }),
25905
25913
  emits: ["submitted"],
25906
25914
  setup(e, { emit: t }) {
25907
- let n = e, r = _d(n), i = t, { isSubmitting: a, handleSubmit: o, defineField: s, resetField: c } = Vb(xM, {
25915
+ let n = e, r = _d(n), i = t, { isSubmitting: a, handleSubmit: o, defineField: s, resetField: c } = Vb(SM, {
25908
25916
  kind: n.initialData?.kind ?? null,
25909
25917
  condition: n.initialData?.condition ?? 1,
25910
25918
  price: n.initialData?.price ?? "",
@@ -25932,7 +25940,7 @@ var hM = mM(), gM = dM(Yj, cM.ownedBuilding.required), _M = [1, 7], vM = [3, 4],
25932
25940
  "onUpdate:modelValue": n[0] ||= (e) => /* @__PURE__ */ M(l) ? l.value = e : null,
25933
25941
  modelModifiers: { number: !0 },
25934
25942
  label: "Soort fiets",
25935
- options: P(SM),
25943
+ options: P(CM),
25936
25944
  name: "kind",
25937
25945
  required: !1,
25938
25946
  "error-message": P(d)
@@ -25953,7 +25961,7 @@ var hM = mM(), gM = dM(Yj, cM.ownedBuilding.required), _M = [1, 7], vM = [3, 4],
25953
25961
  "onUpdate:modelValue": n[1] ||= (e) => /* @__PURE__ */ M(f) ? f.value = e : null,
25954
25962
  label: "Merk fiets",
25955
25963
  placeholder: "Typ of kies je merk",
25956
- options: P(wM),
25964
+ options: P(TM),
25957
25965
  "label-key": "name",
25958
25966
  "value-key": "id",
25959
25967
  name: "brand",
@@ -25975,7 +25983,7 @@ var hM = mM(), gM = dM(Yj, cM.ownedBuilding.required), _M = [1, 7], vM = [3, 4],
25975
25983
  "onUpdate:modelValue": n[2] ||= (e) => /* @__PURE__ */ M(h) ? h.value = e : null,
25976
25984
  legend: "Gekocht als",
25977
25985
  name: "condition",
25978
- options: P(CM),
25986
+ options: P(wM),
25979
25987
  variant: "boxed",
25980
25988
  required: !1,
25981
25989
  "error-message": P(_)
@@ -25997,10 +26005,14 @@ var hM = mM(), gM = dM(Yj, cM.ownedBuilding.required), _M = [1, 7], vM = [3, 4],
25997
26005
  placeholder: "bv. 1 000",
25998
26006
  icon: "far fa-euro-sign",
25999
26007
  name: "price",
26000
- mask: "#####",
26008
+ mask: P(bM),
26001
26009
  required: !1,
26002
26010
  "error-message": P(b)
26003
- }, P(y)), null, 16, ["modelValue", "error-message"])]),
26011
+ }, P(y)), null, 16, [
26012
+ "modelValue",
26013
+ "mask",
26014
+ "error-message"
26015
+ ])]),
26004
26016
  _: 1
26005
26017
  })
26006
26018
  ]),
@@ -26010,7 +26022,7 @@ var hM = mM(), gM = dM(Yj, cM.ownedBuilding.required), _M = [1, 7], vM = [3, 4],
26010
26022
  });
26011
26023
  //#endregion
26012
26024
  //#region src/comparisons/bike/bike.presenter.ts
26013
- function EM(e) {
26025
+ function DM(e) {
26014
26026
  return {
26015
26027
  comparison: vd.Bike,
26016
26028
  detail: { bike: {
@@ -26024,13 +26036,13 @@ function EM(e) {
26024
26036
  }
26025
26037
  //#endregion
26026
26038
  //#region src/comparisons/bike/index.ts
26027
- var DM = /* @__PURE__ */ c({
26028
- Form: () => TM,
26029
- presenter: () => EM
26030
- }), OM = {
26039
+ var OM = /* @__PURE__ */ c({
26040
+ Form: () => EM,
26041
+ presenter: () => DM
26042
+ }), kM = {
26031
26043
  min: 0,
26032
26044
  max: 99
26033
- }, kM = Ob({
26045
+ }, AM = Ob({
26034
26046
  kind: ub().required(cM.pet.kindRequired),
26035
26047
  age: ub().required(cM.birthdate.required).test("date_format", cM.birthdate.dateFormat, lM).test(sM({
26036
26048
  min: {
@@ -26038,16 +26050,16 @@ var DM = /* @__PURE__ */ c({
26038
26050
  unit: "week"
26039
26051
  },
26040
26052
  max: {
26041
- value: OM.max,
26053
+ value: kM.max,
26042
26054
  unit: "year"
26043
26055
  }
26044
26056
  }, {
26045
- future: () => cM.birthdate.tooYoung(OM.min),
26057
+ future: () => cM.birthdate.tooYoung(kM.min),
26046
26058
  tooYoung: ({ earliest: e, latest: t }) => cM.pet.outOfRange(e.format(qj), t.format(qj)),
26047
- tooOld: () => cM.birthdate.tooOld(OM.max)
26059
+ tooOld: () => cM.birthdate.tooOld(kM.max)
26048
26060
  }, "birthdate_range")),
26049
26061
  zipCode: ub().required(cM.pet.zipCodeRequired).matches(/^\d{4}\s?[a-zA-Z]{2}$/, cM.pet.zipCodeInvalid)
26050
- }), AM = [
26062
+ }), jM = [
26051
26063
  {
26052
26064
  title: "Hond",
26053
26065
  value: "dog"
@@ -26064,7 +26076,7 @@ var DM = /* @__PURE__ */ c({
26064
26076
  title: "Vogel",
26065
26077
  value: "bird"
26066
26078
  }
26067
- ], jM = /* @__PURE__ */ L({
26079
+ ], MM = /* @__PURE__ */ L({
26068
26080
  __name: "PetForm",
26069
26081
  props: /*@__PURE__*/ Va({
26070
26082
  initialData: {},
@@ -26083,7 +26095,7 @@ var DM = /* @__PURE__ */ c({
26083
26095
  }),
26084
26096
  emits: ["submitted"],
26085
26097
  setup(e, { emit: t }) {
26086
- let n = e, r = _d(n), i = t, { isSubmitting: a, handleSubmit: o, defineField: s } = Vb(kM, {
26098
+ let n = e, r = _d(n), i = t, { isSubmitting: a, handleSubmit: o, defineField: s } = Vb(AM, {
26087
26099
  kind: n.initialData?.kind ?? "dog",
26088
26100
  age: n.initialData?.age ?? "",
26089
26101
  zipCode: n.initialData?.zipCode ?? ""
@@ -26107,7 +26119,7 @@ var DM = /* @__PURE__ */ c({
26107
26119
  "onUpdate:modelValue": n[0] ||= (e) => /* @__PURE__ */ M(c) ? c.value = e : null,
26108
26120
  label: "Wat voor huisdier wil je verzekeren?",
26109
26121
  placeholder: "",
26110
- options: P(AM),
26122
+ options: P(jM),
26111
26123
  name: "kind",
26112
26124
  required: !1,
26113
26125
  "error-message": P(u)
@@ -26176,7 +26188,7 @@ var DM = /* @__PURE__ */ c({
26176
26188
  });
26177
26189
  //#endregion
26178
26190
  //#region src/comparisons/pet/pet.presenter.ts
26179
- function MM(e) {
26191
+ function NM(e) {
26180
26192
  return {
26181
26193
  comparison: vd.Pet,
26182
26194
  detail: { pet: {
@@ -26188,14 +26200,14 @@ function MM(e) {
26188
26200
  }
26189
26201
  //#endregion
26190
26202
  //#region src/comparisons/pet/index.ts
26191
- var NM = /* @__PURE__ */ c({
26192
- Form: () => jM,
26193
- presenter: () => MM
26194
- }), PM = Ob({
26203
+ var PM = /* @__PURE__ */ c({
26204
+ Form: () => MM,
26205
+ presenter: () => NM
26206
+ }), FM = Ob({
26195
26207
  TypeOfCaravan: fM(cM.caravan.typeOfCaravanRequired),
26196
26208
  NewOrOccasion: dM(Yj, cM.caravan.newOrOccasionRequired),
26197
26209
  BuildYear: fM(cM.caravan.buildYearRequired)
26198
- }), FM = [
26210
+ }), IM = [
26199
26211
  {
26200
26212
  value: "CS",
26201
26213
  title: "Stacaravan"
@@ -26208,7 +26220,7 @@ var NM = /* @__PURE__ */ c({
26208
26220
  value: "CV",
26209
26221
  title: "Vouwwagen"
26210
26222
  }
26211
- ], IM = [{
26223
+ ], LM = [{
26212
26224
  value: bd.Yes,
26213
26225
  label: "Nieuw"
26214
26226
  }, {
@@ -26217,7 +26229,7 @@ var NM = /* @__PURE__ */ c({
26217
26229
  }];
26218
26230
  //#endregion
26219
26231
  //#region src/comparisons/caravan/models/buildYears.model.ts
26220
- function LM() {
26232
+ function RM() {
26221
26233
  let e = tM();
26222
26234
  return Array.from({ length: 126 }, (t, n) => ({
26223
26235
  title: String(e - n),
@@ -26226,7 +26238,7 @@ function LM() {
26226
26238
  }
26227
26239
  //#endregion
26228
26240
  //#region src/comparisons/caravan/CaravanForm.vue
26229
- var RM = /* @__PURE__ */ L({
26241
+ var zM = /* @__PURE__ */ L({
26230
26242
  __name: "CaravanForm",
26231
26243
  props: /*@__PURE__*/ Va({
26232
26244
  initialData: {},
@@ -26245,7 +26257,7 @@ var RM = /* @__PURE__ */ L({
26245
26257
  }),
26246
26258
  emits: ["submitted"],
26247
26259
  setup(e, { emit: t }) {
26248
- let n = e, r = _d(n), i = t, a = LM(), { isSubmitting: o, handleSubmit: s, defineField: c } = Vb(PM, {
26260
+ let n = e, r = _d(n), i = t, a = RM(), { isSubmitting: o, handleSubmit: s, defineField: c } = Vb(FM, {
26249
26261
  TypeOfCaravan: n.initialData?.TypeOfCaravan ?? null,
26250
26262
  NewOrOccasion: n.initialData?.NewOrOccasion ?? bd.Yes,
26251
26263
  BuildYear: n.initialData?.BuildYear ?? null
@@ -26268,7 +26280,7 @@ var RM = /* @__PURE__ */ L({
26268
26280
  modelValue: P(l),
26269
26281
  "onUpdate:modelValue": n[0] ||= (e) => /* @__PURE__ */ M(l) ? l.value = e : null,
26270
26282
  label: "Soort caravan",
26271
- options: P(FM),
26283
+ options: P(IM),
26272
26284
  name: "typeOfCaravan",
26273
26285
  required: !1,
26274
26286
  "error-message": P(d)
@@ -26288,7 +26300,7 @@ var RM = /* @__PURE__ */ L({
26288
26300
  "onUpdate:modelValue": n[1] ||= (e) => /* @__PURE__ */ M(f) ? f.value = e : null,
26289
26301
  legend: "Gekocht als",
26290
26302
  name: "newOrOccasion",
26291
- options: P(IM),
26303
+ options: P(LM),
26292
26304
  variant: "boxed",
26293
26305
  required: !1,
26294
26306
  "error-message": P(m)
@@ -26325,7 +26337,7 @@ var RM = /* @__PURE__ */ L({
26325
26337
  });
26326
26338
  //#endregion
26327
26339
  //#region src/comparisons/caravan/caravan.presenter.ts
26328
- function zM(e) {
26340
+ function BM(e) {
26329
26341
  return {
26330
26342
  comparison: vd.Caravan,
26331
26343
  detail: { caravan: {
@@ -26338,21 +26350,21 @@ function zM(e) {
26338
26350
  }
26339
26351
  //#endregion
26340
26352
  //#region src/comparisons/caravan/index.ts
26341
- var BM = /* @__PURE__ */ c({
26342
- Form: () => RM,
26343
- presenter: () => zM
26344
- }), VM = /* @__PURE__ */ function(e) {
26353
+ var VM = /* @__PURE__ */ c({
26354
+ Form: () => zM,
26355
+ presenter: () => BM
26356
+ }), HM = /* @__PURE__ */ function(e) {
26345
26357
  return e.Continuous = "L", e.ShortTerm = "S", e;
26346
- }({}), HM = Ob({
26347
- PaymentTerm: dM([VM.Continuous, VM.ShortTerm], cM.travel.paymentTermRequired),
26358
+ }({}), UM = Ob({
26359
+ PaymentTerm: dM([HM.Continuous, HM.ShortTerm], cM.travel.paymentTermRequired),
26348
26360
  birthdate: uM()
26349
- }), UM = [{
26350
- value: VM.Continuous,
26361
+ }), WM = [{
26362
+ value: HM.Continuous,
26351
26363
  label: "Doorlopend"
26352
26364
  }, {
26353
- value: VM.ShortTerm,
26365
+ value: HM.ShortTerm,
26354
26366
  label: "Kortlopend"
26355
- }], WM = /* @__PURE__ */ L({
26367
+ }], GM = /* @__PURE__ */ L({
26356
26368
  __name: "TravelForm",
26357
26369
  props: /*@__PURE__*/ Va({
26358
26370
  initialData: {},
@@ -26371,8 +26383,8 @@ var BM = /* @__PURE__ */ c({
26371
26383
  }),
26372
26384
  emits: ["submitted"],
26373
26385
  setup(e, { emit: t }) {
26374
- let n = e, r = _d(n), i = t, { isSubmitting: a, handleSubmit: o, defineField: s } = Vb(HM, {
26375
- PaymentTerm: n.initialData?.PaymentTerm ?? VM.Continuous,
26386
+ let n = e, r = _d(n), i = t, { isSubmitting: a, handleSubmit: o, defineField: s } = Vb(UM, {
26387
+ PaymentTerm: n.initialData?.PaymentTerm ?? HM.Continuous,
26376
26388
  birthdate: n.initialData?.birthdate ?? ""
26377
26389
  }), [c, l, u] = s("PaymentTerm", { validateAt: "change" }), [d, f, p] = s("birthdate");
26378
26390
  function m() {
@@ -26393,7 +26405,7 @@ var BM = /* @__PURE__ */ c({
26393
26405
  "onUpdate:modelValue": n[0] ||= (e) => /* @__PURE__ */ M(c) ? c.value = e : null,
26394
26406
  legend: "Kies je dekking",
26395
26407
  name: "PaymentTerm",
26396
- options: P(UM),
26408
+ options: P(WM),
26397
26409
  variant: "boxed",
26398
26410
  required: !1,
26399
26411
  "error-message": P(u)
@@ -26431,7 +26443,7 @@ var BM = /* @__PURE__ */ c({
26431
26443
  });
26432
26444
  //#endregion
26433
26445
  //#region src/comparisons/travel/travel.presenter.ts
26434
- function GM(e) {
26446
+ function KM(e) {
26435
26447
  return {
26436
26448
  comparison: vd.Travel,
26437
26449
  detail: { comparison: { PaymentTerm: e.PaymentTerm } },
@@ -26440,14 +26452,14 @@ function GM(e) {
26440
26452
  }
26441
26453
  //#endregion
26442
26454
  //#region src/comparisons/travel/index.ts
26443
- var KM = /* @__PURE__ */ c({
26444
- Form: () => WM,
26445
- presenter: () => GM
26446
- }), qM = (e) => Ob({
26455
+ var qM = /* @__PURE__ */ c({
26456
+ Form: () => GM,
26457
+ presenter: () => KM
26458
+ }), JM = (e) => Ob({
26447
26459
  address: e,
26448
26460
  birthdate: uM(),
26449
26461
  familyComposition: hM
26450
- }), JM = /* @__PURE__ */ L({
26462
+ }), YM = /* @__PURE__ */ L({
26451
26463
  __name: "LiabilityForm",
26452
26464
  props: /*@__PURE__*/ Va({
26453
26465
  initialData: {},
@@ -26466,7 +26478,7 @@ var KM = /* @__PURE__ */ c({
26466
26478
  }),
26467
26479
  emits: ["submitted"],
26468
26480
  setup(e, { emit: t }) {
26469
- let n = e, r = _d(n), i = t, { addressSchema: a, draft: o, resolvedAddress: s, additionOptions: c } = $A({ initial: n.initialData?.address }), { isSubmitting: l, handleSubmit: u, defineField: d } = Vb(qM(a), {
26481
+ let n = e, r = _d(n), i = t, { addressSchema: a, draft: o, resolvedAddress: s, additionOptions: c } = $A({ initial: n.initialData?.address }), { isSubmitting: l, handleSubmit: u, defineField: d } = Vb(JM(a), {
26470
26482
  birthdate: n.initialData?.birthdate ?? "",
26471
26483
  familyComposition: n.initialData?.familyComposition ?? yd.SingleWithoutChildren,
26472
26484
  address: o
@@ -26525,7 +26537,7 @@ var KM = /* @__PURE__ */ c({
26525
26537
  });
26526
26538
  //#endregion
26527
26539
  //#region src/comparisons/liability/liability.presenter.ts
26528
- function YM(e) {
26540
+ function XM(e) {
26529
26541
  return {
26530
26542
  comparison: vd.Liability,
26531
26543
  detail: { liability: {
@@ -26545,20 +26557,20 @@ function YM(e) {
26545
26557
  }
26546
26558
  //#endregion
26547
26559
  //#region src/comparisons/liability/index.ts
26548
- var XM = /* @__PURE__ */ c({
26549
- Form: () => JM,
26550
- presenter: () => YM
26551
- }), ZM = [{
26560
+ var ZM = /* @__PURE__ */ c({
26561
+ Form: () => YM,
26562
+ presenter: () => XM
26563
+ }), QM = [{
26552
26564
  value: bd.Yes,
26553
26565
  label: "Gekocht"
26554
26566
  }, {
26555
26567
  value: bd.No,
26556
26568
  label: "Verhuurd"
26557
- }], QM = (e) => Ob({
26569
+ }], $M = (e) => Ob({
26558
26570
  address: e,
26559
26571
  ownedBuilding: gM,
26560
26572
  familyComposition: mM(cM.house.familyCompositionRequired)
26561
- }), $M = /* @__PURE__ */ L({
26573
+ }), eN = /* @__PURE__ */ L({
26562
26574
  __name: "HouseForm",
26563
26575
  props: /*@__PURE__*/ Va({
26564
26576
  initialData: {},
@@ -26577,7 +26589,7 @@ var XM = /* @__PURE__ */ c({
26577
26589
  }),
26578
26590
  emits: ["submitted"],
26579
26591
  setup(e, { emit: t }) {
26580
- let n = e, r = _d(n), i = t, { addressSchema: a, draft: o, resolvedAddress: s, additionOptions: c } = $A({ initial: n.initialData?.address }), { isSubmitting: l, handleSubmit: u, defineField: d } = Vb(QM(a), {
26592
+ let n = e, r = _d(n), i = t, { addressSchema: a, draft: o, resolvedAddress: s, additionOptions: c } = $A({ initial: n.initialData?.address }), { isSubmitting: l, handleSubmit: u, defineField: d } = Vb($M(a), {
26581
26593
  ownedBuilding: n.initialData?.ownedBuilding ?? bd.Yes,
26582
26594
  familyComposition: n.initialData?.familyComposition ?? yd.SingleWithoutChildren,
26583
26595
  address: o
@@ -26616,7 +26628,7 @@ var XM = /* @__PURE__ */ c({
26616
26628
  "onUpdate:modelValue": n[1] ||= (e) => /* @__PURE__ */ M(f) ? f.value = e : null,
26617
26629
  legend: "Jouw woning is...",
26618
26630
  name: "ownedBuilding",
26619
- options: P(ZM),
26631
+ options: P(QM),
26620
26632
  variant: "boxed",
26621
26633
  required: !1,
26622
26634
  "error-message": P(m)
@@ -26645,7 +26657,7 @@ var XM = /* @__PURE__ */ c({
26645
26657
  });
26646
26658
  //#endregion
26647
26659
  //#region src/comparisons/house/house.presenter.ts
26648
- function eN(e) {
26660
+ function tN(e) {
26649
26661
  return {
26650
26662
  comparison: vd.Housing,
26651
26663
  detail: { house: { ownedBuilding: e.ownedBuilding } },
@@ -26661,25 +26673,25 @@ function eN(e) {
26661
26673
  }
26662
26674
  //#endregion
26663
26675
  //#region src/comparisons/house/index.ts
26664
- var tN = /* @__PURE__ */ c({
26665
- Form: () => $M,
26666
- presenter: () => eN
26667
- }), nN = yd.SingleWithChildren, rN = (e) => Ob({
26676
+ var nN = /* @__PURE__ */ c({
26677
+ Form: () => eN,
26678
+ presenter: () => tN
26679
+ }), rN = yd.SingleWithChildren, iN = (e) => Ob({
26668
26680
  address: e,
26669
26681
  ownedBuilding: gM,
26670
26682
  birthdate: uM(),
26671
26683
  familyComposition: hM,
26672
26684
  familySize: ub().defined().when("familyComposition", {
26673
- is: nN,
26685
+ is: rN,
26674
26686
  then: (e) => e.required(cM.legal.familySizeRequired)
26675
26687
  })
26676
- }), iN = [{
26688
+ }), aN = [{
26677
26689
  title: "Alleenstaande met 1 kind",
26678
26690
  value: "2"
26679
26691
  }, {
26680
26692
  title: "Alleenstaande met 2 of meer kinderen",
26681
26693
  value: "3"
26682
- }], aN = /* @__PURE__ */ L({
26694
+ }], oN = /* @__PURE__ */ L({
26683
26695
  __name: "LegalForm",
26684
26696
  props: /*@__PURE__*/ Va({
26685
26697
  initialData: {},
@@ -26698,15 +26710,15 @@ var tN = /* @__PURE__ */ c({
26698
26710
  }),
26699
26711
  emits: ["submitted"],
26700
26712
  setup(e, { emit: t }) {
26701
- let n = e, r = _d(n), i = t, { addressSchema: a, draft: o, resolvedAddress: s, additionOptions: c } = $A({ initial: n.initialData?.address }), { isSubmitting: l, handleSubmit: u, defineField: d, resetField: f } = Vb(rN(a), {
26713
+ let n = e, r = _d(n), i = t, { addressSchema: a, draft: o, resolvedAddress: s, additionOptions: c } = $A({ initial: n.initialData?.address }), { isSubmitting: l, handleSubmit: u, defineField: d, resetField: f } = Vb(iN(a), {
26702
26714
  ownedBuilding: n.initialData?.ownedBuilding ?? bd.Yes,
26703
26715
  birthdate: n.initialData?.birthdate ?? "",
26704
26716
  familyComposition: n.initialData?.familyComposition ?? yd.SingleWithoutChildren,
26705
26717
  familySize: n.initialData?.familySize ?? "",
26706
26718
  address: o
26707
- }), [p, m, h] = d("ownedBuilding"), [g, _, v] = d("birthdate"), [y, b, x] = d("familyComposition", { validateAt: "change" }), [S, C, w] = d("familySize", { validateAt: "change" }), T = K(() => y.value === nN);
26719
+ }), [p, m, h] = d("ownedBuilding"), [g, _, v] = d("birthdate"), [y, b, x] = d("familyComposition", { validateAt: "change" }), [S, C, w] = d("familySize", { validateAt: "change" }), T = K(() => y.value === rN);
26708
26720
  I(y, (e) => {
26709
- e !== nN && f("familySize", { value: "" });
26721
+ e !== rN && f("familySize", { value: "" });
26710
26722
  }, { immediate: !0 });
26711
26723
  function E() {
26712
26724
  u(({ ownedBuilding: e, birthdate: t, familyComposition: n, familySize: r }) => {
@@ -26744,7 +26756,7 @@ var tN = /* @__PURE__ */ c({
26744
26756
  "onUpdate:modelValue": n[1] ||= (e) => /* @__PURE__ */ M(p) ? p.value = e : null,
26745
26757
  legend: "Jouw woning is...",
26746
26758
  name: "ownedBuilding",
26747
- options: P(ZM),
26759
+ options: P(QM),
26748
26760
  variant: "boxed",
26749
26761
  required: !1,
26750
26762
  "error-message": P(h)
@@ -26787,7 +26799,7 @@ var tN = /* @__PURE__ */ c({
26787
26799
  "onUpdate:modelValue": n[4] ||= (e) => /* @__PURE__ */ M(S) ? S.value = e : null,
26788
26800
  label: "Aantal kinderen",
26789
26801
  placeholder: "Maak een keuze",
26790
- options: P(iN),
26802
+ options: P(aN),
26791
26803
  name: "familySize",
26792
26804
  required: !1,
26793
26805
  "error-message": P(w)
@@ -26805,11 +26817,11 @@ var tN = /* @__PURE__ */ c({
26805
26817
  });
26806
26818
  //#endregion
26807
26819
  //#region src/comparisons/legal/legal.presenter.ts
26808
- function oN(e) {
26820
+ function sN(e) {
26809
26821
  return {
26810
26822
  comparison: vd.LegalAssistance,
26811
26823
  detail: { comparison: {
26812
- familySize: e.familyComposition === nN ? e.familySize : "",
26824
+ familySize: e.familyComposition === rN ? e.familySize : "",
26813
26825
  deductables: 300,
26814
26826
  ownedBuilding: e.ownedBuilding
26815
26827
  } },
@@ -26826,10 +26838,10 @@ function oN(e) {
26826
26838
  }
26827
26839
  //#endregion
26828
26840
  //#region src/comparisons/legal/index.ts
26829
- var sN = /* @__PURE__ */ c({
26830
- Form: () => aN,
26831
- presenter: () => oN
26832
- }), cN = (e) => Ob({
26841
+ var cN = /* @__PURE__ */ c({
26842
+ Form: () => oN,
26843
+ presenter: () => sN
26844
+ }), lN = (e) => Ob({
26833
26845
  address: e,
26834
26846
  birthdate: uM(),
26835
26847
  familyComposition: hM,
@@ -26837,7 +26849,7 @@ var sN = /* @__PURE__ */ c({
26837
26849
  is: aM,
26838
26850
  then: () => uM()
26839
26851
  })
26840
- }), lN = /* @__PURE__ */ L({
26852
+ }), uN = /* @__PURE__ */ L({
26841
26853
  __name: "PackageForm",
26842
26854
  props: /*@__PURE__*/ Va({
26843
26855
  initialData: {},
@@ -26856,7 +26868,7 @@ var sN = /* @__PURE__ */ c({
26856
26868
  }),
26857
26869
  emits: ["submitted"],
26858
26870
  setup(e, { emit: t }) {
26859
- let n = e, r = _d(n), i = t, { addressSchema: a, draft: o, resolvedAddress: s, additionOptions: c } = $A({ initial: n.initialData?.address }), { isSubmitting: l, handleSubmit: u, defineField: d, resetField: f } = Vb(cN(a), {
26871
+ let n = e, r = _d(n), i = t, { addressSchema: a, draft: o, resolvedAddress: s, additionOptions: c } = $A({ initial: n.initialData?.address }), { isSubmitting: l, handleSubmit: u, defineField: d, resetField: f } = Vb(lN(a), {
26860
26872
  birthdate: n.initialData?.birthdate ?? "",
26861
26873
  familyComposition: n.initialData?.familyComposition ?? yd.SingleWithoutChildren,
26862
26874
  partnerBirthdate: n.initialData?.partnerBirthdate ?? "",
@@ -26935,7 +26947,7 @@ var sN = /* @__PURE__ */ c({
26935
26947
  });
26936
26948
  //#endregion
26937
26949
  //#region src/comparisons/package/package.presenter.ts
26938
- function uN(e) {
26950
+ function dN(e) {
26939
26951
  return {
26940
26952
  comparison: vd.Package,
26941
26953
  detail: { partner: { birthdate: e.partnerBirthdate } },
@@ -26952,21 +26964,21 @@ function uN(e) {
26952
26964
  }
26953
26965
  //#endregion
26954
26966
  //#region src/comparisons/package/index.ts
26955
- var dN = /* @__PURE__ */ c({
26956
- Form: () => lN,
26957
- presenter: () => uN
26958
- }), fN = {
26967
+ var fN = /* @__PURE__ */ c({
26968
+ Form: () => uN,
26969
+ presenter: () => dN
26970
+ }), pN = {
26959
26971
  min: 21,
26960
26972
  max: 74
26961
- }, pN = {
26973
+ }, mN = {
26962
26974
  min: 3500,
26963
26975
  max: 75e3
26964
- }, mN = Ob({
26976
+ }, hN = Ob({
26965
26977
  LoanPurpose: ub().required(cM.loan.purposeRequired),
26966
- LoanAmount: pM(cM.loan.amountRequired).min(pN.min, cM.loan.amountMin(pN.min)).max(pN.max, cM.loan.amountMax(pN.max)),
26967
- birthdate: uM(fN),
26978
+ LoanAmount: pM(cM.loan.amountRequired).min(mN.min, cM.loan.amountMin(mN.min)).max(mN.max, cM.loan.amountMax(mN.max)),
26979
+ birthdate: uM(pN),
26968
26980
  familyComposition: hM
26969
- }), hN = [
26981
+ }), gN = [
26970
26982
  {
26971
26983
  title: "Aankoop auto",
26972
26984
  value: "02"
@@ -27015,7 +27027,7 @@ var dN = /* @__PURE__ */ c({
27015
27027
  title: "Anders",
27016
27028
  value: "99"
27017
27029
  }
27018
- ], gN = /* @__PURE__ */ L({
27030
+ ], _N = /* @__PURE__ */ L({
27019
27031
  __name: "LoanForm",
27020
27032
  props: /*@__PURE__*/ Va({
27021
27033
  initialData: {},
@@ -27034,7 +27046,7 @@ var dN = /* @__PURE__ */ c({
27034
27046
  }),
27035
27047
  emits: ["submitted"],
27036
27048
  setup(e, { emit: t }) {
27037
- let n = e, r = _d(n), i = t, { isSubmitting: a, handleSubmit: o, defineField: s } = Vb(mN, {
27049
+ let n = e, r = _d(n), i = t, { isSubmitting: a, handleSubmit: o, defineField: s } = Vb(hN, {
27038
27050
  LoanPurpose: n.initialData?.LoanPurpose ?? "",
27039
27051
  LoanAmount: n.initialData?.LoanAmount ?? null,
27040
27052
  birthdate: n.initialData?.birthdate ?? "",
@@ -27059,7 +27071,7 @@ var dN = /* @__PURE__ */ c({
27059
27071
  "onUpdate:modelValue": n[0] ||= (e) => /* @__PURE__ */ M(c) ? c.value = e : null,
27060
27072
  label: "Leendoel",
27061
27073
  placeholder: "Maak een keuze",
27062
- options: P(hN),
27074
+ options: P(gN),
27063
27075
  name: "LoanPurpose",
27064
27076
  required: !1,
27065
27077
  "error-message": P(u)
@@ -27118,19 +27130,19 @@ var dN = /* @__PURE__ */ c({
27118
27130
  });
27119
27131
  //#endregion
27120
27132
  //#region src/comparisons/loan/loan.presenter.ts
27121
- function _N(e) {
27133
+ function vN(e) {
27122
27134
  let t = nM(e, qj);
27123
27135
  if (!t) return 120;
27124
27136
  let n = t.add(76, "year").diff((0, Qj.default)(), "month", !0), r = Math.floor(n / 12) * 12;
27125
27137
  return Math.min(r, 120);
27126
27138
  }
27127
- function vN(e) {
27139
+ function yN(e) {
27128
27140
  return {
27129
27141
  comparison: vd.Loan,
27130
27142
  detail: { loan: {
27131
27143
  LoanPurpose: e.LoanPurpose,
27132
27144
  LoanAmount: e.LoanAmount,
27133
- MaxDurationByLegalLimit: _N(e.birthdate)
27145
+ MaxDurationByLegalLimit: vN(e.birthdate)
27134
27146
  } },
27135
27147
  user: {
27136
27148
  birthdate: e.birthdate,
@@ -27140,17 +27152,17 @@ function vN(e) {
27140
27152
  }
27141
27153
  //#endregion
27142
27154
  //#region src/comparisons/loan/index.ts
27143
- var yN = /* @__PURE__ */ c({
27144
- Form: () => gN,
27145
- presenter: () => vN
27146
- }), bN = {
27155
+ var bN = /* @__PURE__ */ c({
27156
+ Form: () => _N,
27157
+ presenter: () => yN
27158
+ }), xN = {
27147
27159
  min: 16,
27148
27160
  max: 99
27149
- }, xN = (e, t) => Ob({
27161
+ }, SN = (e, t) => Ob({
27150
27162
  licensePlate: e,
27151
27163
  address: t,
27152
- birthdate: uM(bN)
27153
- }), SN = /* @__PURE__ */ L({
27164
+ birthdate: uM(xN)
27165
+ }), CN = /* @__PURE__ */ L({
27154
27166
  __name: "MopedForm",
27155
27167
  props: /*@__PURE__*/ Va({
27156
27168
  initialData: {},
@@ -27169,7 +27181,7 @@ var yN = /* @__PURE__ */ c({
27169
27181
  }),
27170
27182
  emits: ["submitted"],
27171
27183
  setup(e, { emit: t }) {
27172
- let n = e, r = _d(n), i = t, { addressSchema: a, draft: o, resolvedAddress: s, additionOptions: c } = $A({ initial: n.initialData?.address }), { vehicleData: l, licensePlateSchema: u } = yj(vd.Moped, { initialData: n.initialData?.vehicle ?? void 0 }), { isSubmitting: d, handleSubmit: f, defineField: p } = Vb(xN(u, a), {
27184
+ let n = e, r = _d(n), i = t, { addressSchema: a, draft: o, resolvedAddress: s, additionOptions: c } = $A({ initial: n.initialData?.address }), { vehicleData: l, licensePlateSchema: u } = yj(vd.Moped, { initialData: n.initialData?.vehicle ?? void 0 }), { isSubmitting: d, handleSubmit: f, defineField: p } = Vb(SN(u, a), {
27173
27185
  licensePlate: n.initialData?.licensePlate ?? "",
27174
27186
  birthdate: n.initialData?.birthdate ?? "",
27175
27187
  address: o
@@ -27250,7 +27262,7 @@ var yN = /* @__PURE__ */ c({
27250
27262
  });
27251
27263
  //#endregion
27252
27264
  //#region src/comparisons/moped/moped.presenter.ts
27253
- function CN(e) {
27265
+ function wN(e) {
27254
27266
  return {
27255
27267
  comparison: vd.Moped,
27256
27268
  detail: { moped: { ...e.vehicle } },
@@ -27267,14 +27279,14 @@ function CN(e) {
27267
27279
  }
27268
27280
  //#endregion
27269
27281
  //#region src/comparisons/moped/index.ts
27270
- var wN = /* @__PURE__ */ c({
27271
- Form: () => SN,
27272
- presenter: () => CN
27273
- }), TN = (e, t) => Ob({
27282
+ var TN = /* @__PURE__ */ c({
27283
+ Form: () => CN,
27284
+ presenter: () => wN
27285
+ }), EN = (e, t) => Ob({
27274
27286
  licensePlate: e,
27275
27287
  address: t,
27276
27288
  birthdate: uM()
27277
- }), EN = /* @__PURE__ */ L({
27289
+ }), DN = /* @__PURE__ */ L({
27278
27290
  __name: "MotorForm",
27279
27291
  props: /*@__PURE__*/ Va({
27280
27292
  initialData: {},
@@ -27293,7 +27305,7 @@ var wN = /* @__PURE__ */ c({
27293
27305
  }),
27294
27306
  emits: ["submitted"],
27295
27307
  setup(e, { emit: t }) {
27296
- let n = e, r = _d(n), i = t, { addressSchema: a, draft: o, resolvedAddress: s, additionOptions: c } = $A({ initial: n.initialData?.address }), { vehicleData: l, licensePlateSchema: u } = yj(vd.Motor, { initialData: n.initialData?.vehicle ?? void 0 }), { isSubmitting: d, handleSubmit: f, defineField: p } = Vb(TN(u, a), {
27308
+ let n = e, r = _d(n), i = t, { addressSchema: a, draft: o, resolvedAddress: s, additionOptions: c } = $A({ initial: n.initialData?.address }), { vehicleData: l, licensePlateSchema: u } = yj(vd.Motor, { initialData: n.initialData?.vehicle ?? void 0 }), { isSubmitting: d, handleSubmit: f, defineField: p } = Vb(EN(u, a), {
27297
27309
  licensePlate: n.initialData?.licensePlate ?? "",
27298
27310
  birthdate: n.initialData?.birthdate ?? "",
27299
27311
  address: o
@@ -27374,7 +27386,7 @@ var wN = /* @__PURE__ */ c({
27374
27386
  });
27375
27387
  //#endregion
27376
27388
  //#region src/comparisons/motor/motor.presenter.ts
27377
- function DN(e) {
27389
+ function ON(e) {
27378
27390
  return {
27379
27391
  comparison: vd.Motor,
27380
27392
  detail: { motor: { ...e.vehicle } },
@@ -27391,14 +27403,14 @@ function DN(e) {
27391
27403
  }
27392
27404
  //#endregion
27393
27405
  //#region src/comparisons/motor/index.ts
27394
- var ON = /* @__PURE__ */ c({
27395
- Form: () => EN,
27396
- presenter: () => DN
27397
- }), kN = (e, t) => Ob({
27406
+ var kN = /* @__PURE__ */ c({
27407
+ Form: () => DN,
27408
+ presenter: () => ON
27409
+ }), AN = (e, t) => Ob({
27398
27410
  licensePlate: e,
27399
27411
  address: t,
27400
27412
  birthdate: uM()
27401
- }), AN = /* @__PURE__ */ L({
27413
+ }), jN = /* @__PURE__ */ L({
27402
27414
  __name: "CarForm",
27403
27415
  props: /*@__PURE__*/ Va({
27404
27416
  initialData: {},
@@ -27417,7 +27429,7 @@ var ON = /* @__PURE__ */ c({
27417
27429
  }),
27418
27430
  emits: ["submitted"],
27419
27431
  setup(e, { emit: t }) {
27420
- let n = e, r = _d(n), i = t, { addressSchema: a, draft: o, resolvedAddress: s, additionOptions: c } = $A({ initial: n.initialData?.address }), { vehicleData: l, licensePlateSchema: u } = yj(vd.Car, { initialData: n.initialData?.vehicle ?? void 0 }), { isSubmitting: d, handleSubmit: f, defineField: p } = Vb(kN(u, a), {
27432
+ let n = e, r = _d(n), i = t, { addressSchema: a, draft: o, resolvedAddress: s, additionOptions: c } = $A({ initial: n.initialData?.address }), { vehicleData: l, licensePlateSchema: u } = yj(vd.Car, { initialData: n.initialData?.vehicle ?? void 0 }), { isSubmitting: d, handleSubmit: f, defineField: p } = Vb(AN(u, a), {
27421
27433
  licensePlate: n.initialData?.licensePlate ?? "",
27422
27434
  birthdate: n.initialData?.birthdate ?? "",
27423
27435
  address: o
@@ -27498,7 +27510,7 @@ var ON = /* @__PURE__ */ c({
27498
27510
  });
27499
27511
  //#endregion
27500
27512
  //#region src/comparisons/car/car.presenter.ts
27501
- function jN(e) {
27513
+ function MN(e) {
27502
27514
  return {
27503
27515
  comparison: vd.Car,
27504
27516
  detail: { car: { ...e.vehicle } },
@@ -27515,13 +27527,13 @@ function jN(e) {
27515
27527
  }
27516
27528
  //#endregion
27517
27529
  //#region src/comparisons/car/index.ts
27518
- var MN = /* @__PURE__ */ c({
27519
- Form: () => AN,
27520
- presenter: () => jN
27521
- }), NN = (e) => Ob({
27530
+ var NN = /* @__PURE__ */ c({
27531
+ Form: () => jN,
27532
+ presenter: () => MN
27533
+ }), PN = (e) => Ob({
27522
27534
  licensePlate: e,
27523
27535
  company: Gj()
27524
- }), PN = /* @__PURE__ */ L({
27536
+ }), FN = /* @__PURE__ */ L({
27525
27537
  __name: "BusinessCarForm",
27526
27538
  props: /*@__PURE__*/ Va({
27527
27539
  initialData: {},
@@ -27540,7 +27552,7 @@ var MN = /* @__PURE__ */ c({
27540
27552
  }),
27541
27553
  emits: ["submitted"],
27542
27554
  setup(e, { emit: t }) {
27543
- let n = e, r = _d(n), i = t, { vehicleData: a, licensePlateSchema: o } = yj(vd.Car, { initialData: n.initialData?.vehicle ?? void 0 }), { isSubmitting: s, handleSubmit: c, defineField: l, setErrors: u, removeError: d } = Vb(NN(o), {
27555
+ let n = e, r = _d(n), i = t, { vehicleData: a, licensePlateSchema: o } = yj(vd.Car, { initialData: n.initialData?.vehicle ?? void 0 }), { isSubmitting: s, handleSubmit: c, defineField: l, setErrors: u, removeError: d } = Vb(PN(o), {
27544
27556
  licensePlate: n.initialData?.licensePlate ?? "",
27545
27557
  company: n.initialData?.company ?? null
27546
27558
  }), [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);
@@ -27620,7 +27632,7 @@ var MN = /* @__PURE__ */ c({
27620
27632
  });
27621
27633
  //#endregion
27622
27634
  //#region src/comparisons/car-business/businessCar.presenter.ts
27623
- function FN(e) {
27635
+ function IN(e) {
27624
27636
  return {
27625
27637
  comparison: vd.CarBusiness,
27626
27638
  detail: {
@@ -27632,10 +27644,10 @@ function FN(e) {
27632
27644
  }
27633
27645
  //#endregion
27634
27646
  //#region src/comparisons/car-business/index.ts
27635
- var IN = /* @__PURE__ */ c({
27636
- Form: () => PN,
27637
- presenter: () => FN
27638
- }), LN = Ob({ company: Gj() }), RN = /* @__PURE__ */ L({
27647
+ var LN = /* @__PURE__ */ c({
27648
+ Form: () => FN,
27649
+ presenter: () => IN
27650
+ }), RN = Ob({ company: Gj() }), zN = /* @__PURE__ */ L({
27639
27651
  __name: "BusinessLiabilityForm",
27640
27652
  props: /*@__PURE__*/ Va({
27641
27653
  initialData: {},
@@ -27656,7 +27668,7 @@ var IN = /* @__PURE__ */ c({
27656
27668
  }),
27657
27669
  emits: ["submitted"],
27658
27670
  setup(e, { emit: t }) {
27659
- let n = e, r = _d(n), i = t, { isSubmitting: a, handleSubmit: o, defineField: s, setErrors: c, removeError: l } = Vb(LN, { 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);
27671
+ let n = e, r = _d(n), i = t, { isSubmitting: a, handleSubmit: o, defineField: s, setErrors: c, removeError: l } = Vb(RN, { 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);
27660
27672
  function h() {
27661
27673
  o(({ company: e }) => {
27662
27674
  i("submitted", { company: e });
@@ -27700,7 +27712,7 @@ var IN = /* @__PURE__ */ c({
27700
27712
  });
27701
27713
  //#endregion
27702
27714
  //#region src/comparisons/businessLiability/businessLiability.presenter.ts
27703
- function zN(e) {
27715
+ function BN(e) {
27704
27716
  return {
27705
27717
  comparison: vd.BusinessLiability,
27706
27718
  detail: { companyData: { ...e.company } },
@@ -27709,29 +27721,29 @@ function zN(e) {
27709
27721
  }
27710
27722
  //#endregion
27711
27723
  //#region src/comparisons/businessLiability/index.ts
27712
- var BN = /* @__PURE__ */ c({
27713
- Form: () => RN,
27714
- presenter: () => zN
27715
- }), VN = {
27716
- [vd.Bike]: DM,
27717
- [vd.Pet]: NM,
27718
- [vd.Caravan]: BM,
27719
- [vd.Travel]: KM,
27720
- [vd.Liability]: XM,
27721
- [vd.Housing]: tN,
27722
- house: tN,
27723
- [vd.LegalAssistance]: sN,
27724
- [vd.Package]: dN,
27725
- [vd.Loan]: yN,
27726
- [vd.Moped]: wN,
27727
- [vd.Motor]: ON,
27728
- [vd.Car]: MN,
27729
- [vd.CarBusiness]: IN,
27730
- "business-car": IN,
27731
- [vd.BusinessLiability]: BN
27732
- }, HN = { [vd.Travel]: "/tarieven/" }, UN = (e, t, n) => `${e}#/${n}${HN[t] ?? ""}`, WN = (e) => {
27724
+ var VN = /* @__PURE__ */ c({
27725
+ Form: () => zN,
27726
+ presenter: () => BN
27727
+ }), HN = {
27728
+ [vd.Bike]: OM,
27729
+ [vd.Pet]: PM,
27730
+ [vd.Caravan]: VM,
27731
+ [vd.Travel]: qM,
27732
+ [vd.Liability]: ZM,
27733
+ [vd.Housing]: nN,
27734
+ house: nN,
27735
+ [vd.LegalAssistance]: cN,
27736
+ [vd.Package]: fN,
27737
+ [vd.Loan]: bN,
27738
+ [vd.Moped]: TN,
27739
+ [vd.Motor]: kN,
27740
+ [vd.Car]: NN,
27741
+ [vd.CarBusiness]: LN,
27742
+ "business-car": LN,
27743
+ [vd.BusinessLiability]: VN
27744
+ }, UN = { [vd.Travel]: "/tarieven/" }, WN = (e, t, n) => `${e}#/${n}${UN[t] ?? ""}`, GN = (e) => {
27733
27745
  window.location.href = e;
27734
- }, GN = ({ user: e, detail: t }) => new MA.User({
27746
+ }, KN = ({ user: e, detail: t }) => new MA.User({
27735
27747
  email: e.email || null,
27736
27748
  name: e.firstName || null,
27737
27749
  zip_code: e.zipCode || null,
@@ -27745,14 +27757,14 @@ var BN = /* @__PURE__ */ c({
27745
27757
  ...e.city && { city: e.city }
27746
27758
  }
27747
27759
  });
27748
- function KN(e) {
27760
+ function qN(e) {
27749
27761
  let t = /* @__PURE__ */ N(!1), n = /* @__PURE__ */ N(null);
27750
27762
  return {
27751
27763
  submit: async (r) => {
27752
27764
  t.value = !0, n.value = null;
27753
27765
  try {
27754
- let t = await RA().comparisonService.create(r.comparison, GN(r)), n = UN(e.link, r.comparison, t.getId());
27755
- e.onRedirect ? e.onRedirect(n) : WN(n);
27766
+ let t = await RA().comparisonService.create(r.comparison, KN(r)), n = WN(e.link, r.comparison, t.getId());
27767
+ e.onRedirect ? e.onRedirect(n) : GN(n);
27756
27768
  } catch (t) {
27757
27769
  n.value = t, e.onError?.(t, r);
27758
27770
  } finally {
@@ -27765,7 +27777,7 @@ function KN(e) {
27765
27777
  }
27766
27778
  //#endregion
27767
27779
  //#region src/flow/ComparisonFormFlow.vue
27768
- var qN = /* @__PURE__ */ L({
27780
+ var JN = /* @__PURE__ */ L({
27769
27781
  __name: "ComparisonFormFlow",
27770
27782
  props: {
27771
27783
  form: {},
@@ -27796,7 +27808,7 @@ var qN = /* @__PURE__ */ L({
27796
27808
  },
27797
27809
  emits: ["submitted", "error"],
27798
27810
  setup(e, { emit: t }) {
27799
- let n = e, r = t, i = _d(n), a = K(() => VN[n.form]), { submit: o, isSubmitting: s } = KN({
27811
+ let n = e, r = t, i = _d(n), a = K(() => HN[n.form]), { submit: o, isSubmitting: s } = qN({
27800
27812
  link: n.link,
27801
27813
  onRedirect: (e) => {
27802
27814
  r("submitted", e), n.redirect ? n.redirect(e) : window.location.href = e;
@@ -27812,7 +27824,7 @@ var qN = /* @__PURE__ */ L({
27812
27824
  onSubmitted: c
27813
27825
  }), null, 16, ["initial-data", "submit-disabled"])) : W("", !0);
27814
27826
  }
27815
- }), JN = /* @__PURE__ */ kl(/* @__PURE__ */ L({
27827
+ }), YN = /* @__PURE__ */ kl(/* @__PURE__ */ L({
27816
27828
  __name: "ComparisonFormFlow.ce",
27817
27829
  props: {
27818
27830
  initialData: { type: [Object, String] },
@@ -27861,13 +27873,13 @@ var qN = /* @__PURE__ */ L({
27861
27873
  } catch (e) {
27862
27874
  i("error", e);
27863
27875
  }
27864
- }), (e, t) => s.value ? (z(), V(qN, G({ key: 0 }, P(r), {
27876
+ }), (e, t) => s.value ? (z(), V(JN, G({ key: 0 }, P(r), {
27865
27877
  "initial-data": o.value,
27866
27878
  onSubmitted: t[0] ||= (e) => i("submitted", e),
27867
27879
  onError: t[1] ||= (e, t) => i("error", e, t)
27868
27880
  }), null, 16, ["initial-data"])) : W("", !0);
27869
27881
  }
27870
27882
  }), { shadowRoot: !1 });
27871
- customElements.define("vd-comparison-form", JN);
27883
+ customElements.define("vd-comparison-form", YN);
27872
27884
  //#endregion
27873
- export { JN as VdComparisonFormElement };
27885
+ export { YN as VdComparisonFormElement };