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

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