@vergelijkdirect/comparison-forms 2.0.0-rc.31 → 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.
@@ -2211,6 +2211,7 @@ var Q = {
2211
2211
  kindRequired: "Selecteer je fiets",
2212
2212
  conditionRequired: "Is je fiets nieuw of tweedehands gekocht?",
2213
2213
  priceRequired: "Vul de aankoopprijs in (afgerond bedrag)",
2214
+ priceMin: "Het ingevulde bedrag is te laag. Voer een bedrag hoger dan € 0,- in",
2214
2215
  priceMax: (e) => `Het ingevulde bedrag is te hoog. Voer een bedrag in tot maximaal € ${e},-`,
2215
2216
  brandRequired: "Kies het merk van je fiets"
2216
2217
  },
@@ -2274,22 +2275,29 @@ function Qr(e = Q.familyComposition.required) {
2274
2275
  var $r = Qr(), ei = Yr(Rr, Q.ownedBuilding.required), ti = [1, 7], ni = [3, 4], ri = {
2275
2276
  raceOrMtb: 15e3,
2276
2277
  default: 9999
2277
- }, ii = (e, t) => e.test("max-value", Q.bike.priceMax(t), (e) => {
2278
+ }, ii = {
2279
+ mask: "N####",
2280
+ tokens: { N: { pattern: /[1-9]/ } }
2281
+ }, ai = (e, t) => e.test("max-value", Q.bike.priceMax(t), (e) => {
2278
2282
  let n = Number(e);
2279
2283
  return Number.isNaN(n) || n <= t;
2280
- }), ai = R({
2284
+ }), oi = R({
2281
2285
  kind: Zr(Q.bike.kindRequired),
2282
2286
  condition: Zr(Q.bike.conditionRequired),
2283
- price: z().required(Q.bike.priceRequired).when("kind", {
2287
+ price: z().required(Q.bike.priceRequired).test("min-value", Q.bike.priceMin, (e) => {
2288
+ if (!e) return !0;
2289
+ let t = Number(e);
2290
+ return Number.isNaN(t) || t > 0;
2291
+ }).when("kind", {
2284
2292
  is: (e) => ni.includes(Number(e)),
2285
- then: (e) => ii(e, ri.raceOrMtb),
2286
- otherwise: (e) => ii(e, ri.default)
2293
+ then: (e) => ai(e, ri.raceOrMtb),
2294
+ otherwise: (e) => ai(e, ri.default)
2287
2295
  }),
2288
2296
  brand: z().when("kind", {
2289
2297
  is: (e) => ti.includes(Number(e)),
2290
2298
  then: (e) => e.required(Q.bike.brandRequired)
2291
2299
  })
2292
- }), oi = [
2300
+ }), si = [
2293
2301
  {
2294
2302
  value: 4,
2295
2303
  title: "ATB / Mountainbike",
@@ -2356,13 +2364,13 @@ var $r = Qr(), ei = Yr(Rr, Q.ownedBuilding.required), ti = [1, 7], ni = [3, 4],
2356
2364
  name: "Vouwfiets",
2357
2365
  isEBike: !1
2358
2366
  }
2359
- ], si = [{
2367
+ ], ci = [{
2360
2368
  value: 1,
2361
2369
  label: "Nieuw"
2362
2370
  }, {
2363
2371
  value: 0,
2364
2372
  label: "Tweedehands"
2365
- }], ci = [
2373
+ }], li = [
2366
2374
  {
2367
2375
  id: "Ander merk",
2368
2376
  name: "Ander merk"
@@ -3783,7 +3791,7 @@ var $r = Qr(), ei = Yr(Rr, Q.ownedBuilding.required), ti = [1, 7], ni = [3, 4],
3783
3791
  id: "Zündapp",
3784
3792
  name: "Zündapp"
3785
3793
  }
3786
- ], li = /* @__PURE__ */ l({
3794
+ ], ui = /* @__PURE__ */ l({
3787
3795
  __name: "BikeForm",
3788
3796
  props: /*@__PURE__*/ f({
3789
3797
  initialData: {},
@@ -3802,7 +3810,7 @@ var $r = Qr(), ei = Yr(Rr, Q.ownedBuilding.required), ti = [1, 7], ni = [3, 4],
3802
3810
  }),
3803
3811
  emits: ["submitted"],
3804
3812
  setup(e, { emit: i }) {
3805
- let a = e, o = q(a), s = i, { isSubmitting: l, handleSubmit: u, defineField: f, resetField: p } = Z(ai, {
3813
+ let a = e, o = q(a), s = i, { isSubmitting: l, handleSubmit: u, defineField: f, resetField: p } = Z(oi, {
3806
3814
  kind: a.initialData?.kind ?? null,
3807
3815
  condition: a.initialData?.condition ?? 1,
3808
3816
  price: a.initialData?.price ?? "",
@@ -3830,7 +3838,7 @@ var $r = Qr(), ei = Yr(Rr, Q.ownedBuilding.required), ti = [1, 7], ni = [3, 4],
3830
3838
  "onUpdate:modelValue": i[0] ||= (e) => d(h) ? h.value = e : null,
3831
3839
  modelModifiers: { number: !0 },
3832
3840
  label: "Soort fiets",
3833
- options: E(oi),
3841
+ options: E(si),
3834
3842
  name: "kind",
3835
3843
  required: !1,
3836
3844
  "error-message": E(_)
@@ -3851,7 +3859,7 @@ var $r = Qr(), ei = Yr(Rr, Q.ownedBuilding.required), ti = [1, 7], ni = [3, 4],
3851
3859
  "onUpdate:modelValue": i[1] ||= (e) => d(v) ? v.value = e : null,
3852
3860
  label: "Merk fiets",
3853
3861
  placeholder: "Typ of kies je merk",
3854
- options: E(ci),
3862
+ options: E(li),
3855
3863
  "label-key": "name",
3856
3864
  "value-key": "id",
3857
3865
  name: "brand",
@@ -3873,7 +3881,7 @@ var $r = Qr(), ei = Yr(Rr, Q.ownedBuilding.required), ti = [1, 7], ni = [3, 4],
3873
3881
  "onUpdate:modelValue": i[2] ||= (e) => d(S) ? S.value = e : null,
3874
3882
  legend: "Gekocht als",
3875
3883
  name: "condition",
3876
- options: E(si),
3884
+ options: E(ci),
3877
3885
  variant: "boxed",
3878
3886
  required: !1,
3879
3887
  "error-message": E(w)
@@ -3895,10 +3903,14 @@ var $r = Qr(), ei = Yr(Rr, Q.ownedBuilding.required), ti = [1, 7], ni = [3, 4],
3895
3903
  placeholder: "bv. 1 000",
3896
3904
  icon: "far fa-euro-sign",
3897
3905
  name: "price",
3898
- mask: "#####",
3906
+ mask: E(ii),
3899
3907
  required: !1,
3900
3908
  "error-message": E(O)
3901
- }, E(D)), null, 16, ["modelValue", "error-message"])]),
3909
+ }, E(D)), null, 16, [
3910
+ "modelValue",
3911
+ "mask",
3912
+ "error-message"
3913
+ ])]),
3902
3914
  _: 1
3903
3915
  })
3904
3916
  ]),
@@ -3908,7 +3920,7 @@ var $r = Qr(), ei = Yr(Rr, Q.ownedBuilding.required), ti = [1, 7], ni = [3, 4],
3908
3920
  });
3909
3921
  //#endregion
3910
3922
  //#region src/comparisons/bike/bike.presenter.ts
3911
- function ui(e) {
3923
+ function di(e) {
3912
3924
  return {
3913
3925
  comparison: V.Bike,
3914
3926
  detail: { bike: {
@@ -3922,10 +3934,10 @@ function ui(e) {
3922
3934
  }
3923
3935
  //#endregion
3924
3936
  //#region src/comparisons/pet/constants.ts
3925
- var di = {
3937
+ var fi = {
3926
3938
  min: 0,
3927
3939
  max: 99
3928
- }, fi = R({
3940
+ }, pi = R({
3929
3941
  kind: z().required(Q.pet.kindRequired),
3930
3942
  age: z().required(Q.birthdate.required).test("date_format", Q.birthdate.dateFormat, Jr).test(qr({
3931
3943
  min: {
@@ -3933,16 +3945,16 @@ var di = {
3933
3945
  unit: "week"
3934
3946
  },
3935
3947
  max: {
3936
- value: di.max,
3948
+ value: fi.max,
3937
3949
  unit: "year"
3938
3950
  }
3939
3951
  }, {
3940
- future: () => Q.birthdate.tooYoung(di.min),
3952
+ future: () => Q.birthdate.tooYoung(fi.min),
3941
3953
  tooYoung: ({ earliest: e, latest: t }) => Q.pet.outOfRange(e.format(Ir), t.format(Ir)),
3942
- tooOld: () => Q.birthdate.tooOld(di.max)
3954
+ tooOld: () => Q.birthdate.tooOld(fi.max)
3943
3955
  }, "birthdate_range")),
3944
3956
  zipCode: z().required(Q.pet.zipCodeRequired).matches(/^\d{4}\s?[a-zA-Z]{2}$/, Q.pet.zipCodeInvalid)
3945
- }), pi = [
3957
+ }), mi = [
3946
3958
  {
3947
3959
  title: "Hond",
3948
3960
  value: "dog"
@@ -3959,7 +3971,7 @@ var di = {
3959
3971
  title: "Vogel",
3960
3972
  value: "bird"
3961
3973
  }
3962
- ], mi = /* @__PURE__ */ l({
3974
+ ], hi = /* @__PURE__ */ l({
3963
3975
  __name: "PetForm",
3964
3976
  props: /*@__PURE__*/ f({
3965
3977
  initialData: {},
@@ -3978,7 +3990,7 @@ var di = {
3978
3990
  }),
3979
3991
  emits: ["submitted"],
3980
3992
  setup(e, { emit: t }) {
3981
- let r = e, i = q(r), a = t, { isSubmitting: o, handleSubmit: s, defineField: l } = Z(fi, {
3993
+ let r = e, i = q(r), a = t, { isSubmitting: o, handleSubmit: s, defineField: l } = Z(pi, {
3982
3994
  kind: r.initialData?.kind ?? "dog",
3983
3995
  age: r.initialData?.age ?? "",
3984
3996
  zipCode: r.initialData?.zipCode ?? ""
@@ -4002,7 +4014,7 @@ var di = {
4002
4014
  "onUpdate:modelValue": r[0] ||= (e) => d(u) ? u.value = e : null,
4003
4015
  label: "Wat voor huisdier wil je verzekeren?",
4004
4016
  placeholder: "",
4005
- options: E(pi),
4017
+ options: E(mi),
4006
4018
  name: "kind",
4007
4019
  required: !1,
4008
4020
  "error-message": E(p)
@@ -4071,7 +4083,7 @@ var di = {
4071
4083
  });
4072
4084
  //#endregion
4073
4085
  //#region src/comparisons/pet/pet.presenter.ts
4074
- function hi(e) {
4086
+ function gi(e) {
4075
4087
  return {
4076
4088
  comparison: V.Pet,
4077
4089
  detail: { pet: {
@@ -4083,11 +4095,11 @@ function hi(e) {
4083
4095
  }
4084
4096
  //#endregion
4085
4097
  //#region src/comparisons/caravan/caravan.schema.ts
4086
- var gi = R({
4098
+ var _i = R({
4087
4099
  TypeOfCaravan: Xr(Q.caravan.typeOfCaravanRequired),
4088
4100
  NewOrOccasion: Yr(Rr, Q.caravan.newOrOccasionRequired),
4089
4101
  BuildYear: Xr(Q.caravan.buildYearRequired)
4090
- }), _i = [
4102
+ }), vi = [
4091
4103
  {
4092
4104
  value: "CS",
4093
4105
  title: "Stacaravan"
@@ -4100,7 +4112,7 @@ var gi = R({
4100
4112
  value: "CV",
4101
4113
  title: "Vouwwagen"
4102
4114
  }
4103
- ], vi = [{
4115
+ ], yi = [{
4104
4116
  value: U.Yes,
4105
4117
  label: "Nieuw"
4106
4118
  }, {
@@ -4109,7 +4121,7 @@ var gi = R({
4109
4121
  }];
4110
4122
  //#endregion
4111
4123
  //#region src/comparisons/caravan/models/buildYears.model.ts
4112
- function yi() {
4124
+ function bi() {
4113
4125
  let e = Br();
4114
4126
  return Array.from({ length: 126 }, (t, n) => ({
4115
4127
  title: String(e - n),
@@ -4118,7 +4130,7 @@ function yi() {
4118
4130
  }
4119
4131
  //#endregion
4120
4132
  //#region src/comparisons/caravan/CaravanForm.vue
4121
- var bi = /* @__PURE__ */ l({
4133
+ var xi = /* @__PURE__ */ l({
4122
4134
  __name: "CaravanForm",
4123
4135
  props: /*@__PURE__*/ f({
4124
4136
  initialData: {},
@@ -4137,7 +4149,7 @@ var bi = /* @__PURE__ */ l({
4137
4149
  }),
4138
4150
  emits: ["submitted"],
4139
4151
  setup(e, { emit: t }) {
4140
- let r = e, i = q(r), a = t, o = yi(), { isSubmitting: s, handleSubmit: l, defineField: u } = Z(gi, {
4152
+ let r = e, i = q(r), a = t, o = bi(), { isSubmitting: s, handleSubmit: l, defineField: u } = Z(_i, {
4141
4153
  TypeOfCaravan: r.initialData?.TypeOfCaravan ?? null,
4142
4154
  NewOrOccasion: r.initialData?.NewOrOccasion ?? U.Yes,
4143
4155
  BuildYear: r.initialData?.BuildYear ?? null
@@ -4160,7 +4172,7 @@ var bi = /* @__PURE__ */ l({
4160
4172
  modelValue: E(f),
4161
4173
  "onUpdate:modelValue": r[0] ||= (e) => d(f) ? f.value = e : null,
4162
4174
  label: "Soort caravan",
4163
- options: E(_i),
4175
+ options: E(vi),
4164
4176
  name: "typeOfCaravan",
4165
4177
  required: !1,
4166
4178
  "error-message": E(h)
@@ -4180,7 +4192,7 @@ var bi = /* @__PURE__ */ l({
4180
4192
  "onUpdate:modelValue": r[1] ||= (e) => d(g) ? g.value = e : null,
4181
4193
  legend: "Gekocht als",
4182
4194
  name: "newOrOccasion",
4183
- options: E(vi),
4195
+ options: E(yi),
4184
4196
  variant: "boxed",
4185
4197
  required: !1,
4186
4198
  "error-message": E(v)
@@ -4217,7 +4229,7 @@ var bi = /* @__PURE__ */ l({
4217
4229
  });
4218
4230
  //#endregion
4219
4231
  //#region src/comparisons/caravan/caravan.presenter.ts
4220
- function xi(e) {
4232
+ function Si(e) {
4221
4233
  return {
4222
4234
  comparison: V.Caravan,
4223
4235
  detail: { caravan: {
@@ -4230,18 +4242,18 @@ function xi(e) {
4230
4242
  }
4231
4243
  //#endregion
4232
4244
  //#region src/comparisons/travel/paymentTerm.enum.ts
4233
- var Si = /* @__PURE__ */ function(e) {
4245
+ var Ci = /* @__PURE__ */ function(e) {
4234
4246
  return e.Continuous = "L", e.ShortTerm = "S", e;
4235
- }({}), Ci = R({
4236
- PaymentTerm: Yr([Si.Continuous, Si.ShortTerm], Q.travel.paymentTermRequired),
4247
+ }({}), wi = R({
4248
+ PaymentTerm: Yr([Ci.Continuous, Ci.ShortTerm], Q.travel.paymentTermRequired),
4237
4249
  birthdate: $()
4238
- }), wi = [{
4239
- value: Si.Continuous,
4250
+ }), Ti = [{
4251
+ value: Ci.Continuous,
4240
4252
  label: "Doorlopend"
4241
4253
  }, {
4242
- value: Si.ShortTerm,
4254
+ value: Ci.ShortTerm,
4243
4255
  label: "Kortlopend"
4244
- }], Ti = /* @__PURE__ */ l({
4256
+ }], Ei = /* @__PURE__ */ l({
4245
4257
  __name: "TravelForm",
4246
4258
  props: /*@__PURE__*/ f({
4247
4259
  initialData: {},
@@ -4260,8 +4272,8 @@ var Si = /* @__PURE__ */ function(e) {
4260
4272
  }),
4261
4273
  emits: ["submitted"],
4262
4274
  setup(e, { emit: t }) {
4263
- let r = e, i = q(r), a = t, { isSubmitting: o, handleSubmit: s, defineField: l } = Z(Ci, {
4264
- PaymentTerm: r.initialData?.PaymentTerm ?? Si.Continuous,
4275
+ let r = e, i = q(r), a = t, { isSubmitting: o, handleSubmit: s, defineField: l } = Z(wi, {
4276
+ PaymentTerm: r.initialData?.PaymentTerm ?? Ci.Continuous,
4265
4277
  birthdate: r.initialData?.birthdate ?? ""
4266
4278
  }), [u, f, p] = l("PaymentTerm", { validateAt: "change" }), [h, g, _] = l("birthdate");
4267
4279
  function v() {
@@ -4282,7 +4294,7 @@ var Si = /* @__PURE__ */ function(e) {
4282
4294
  "onUpdate:modelValue": r[0] ||= (e) => d(u) ? u.value = e : null,
4283
4295
  legend: "Kies je dekking",
4284
4296
  name: "PaymentTerm",
4285
- options: E(wi),
4297
+ options: E(Ti),
4286
4298
  variant: "boxed",
4287
4299
  required: !1,
4288
4300
  "error-message": E(p)
@@ -4320,7 +4332,7 @@ var Si = /* @__PURE__ */ function(e) {
4320
4332
  });
4321
4333
  //#endregion
4322
4334
  //#region src/comparisons/travel/travel.presenter.ts
4323
- function Ei(e) {
4335
+ function Di(e) {
4324
4336
  return {
4325
4337
  comparison: V.Travel,
4326
4338
  detail: { comparison: { PaymentTerm: e.PaymentTerm } },
@@ -4329,11 +4341,11 @@ function Ei(e) {
4329
4341
  }
4330
4342
  //#endregion
4331
4343
  //#region src/comparisons/liability/liability.schema.ts
4332
- var Di = (e) => R({
4344
+ var Oi = (e) => R({
4333
4345
  address: e,
4334
4346
  birthdate: $(),
4335
4347
  familyComposition: $r
4336
- }), Oi = /* @__PURE__ */ l({
4348
+ }), ki = /* @__PURE__ */ l({
4337
4349
  __name: "LiabilityForm",
4338
4350
  props: /*@__PURE__*/ f({
4339
4351
  initialData: {},
@@ -4352,7 +4364,7 @@ var Di = (e) => R({
4352
4364
  }),
4353
4365
  emits: ["submitted"],
4354
4366
  setup(e, { emit: t }) {
4355
- let r = e, i = q(r), a = t, { addressSchema: o, draft: s, resolvedAddress: l, additionOptions: u } = Hn({ initial: r.initialData?.address }), { isSubmitting: f, handleSubmit: p, defineField: h } = Z(Di(o), {
4367
+ let r = e, i = q(r), a = t, { addressSchema: o, draft: s, resolvedAddress: l, additionOptions: u } = Hn({ initial: r.initialData?.address }), { isSubmitting: f, handleSubmit: p, defineField: h } = Z(Oi(o), {
4356
4368
  birthdate: r.initialData?.birthdate ?? "",
4357
4369
  familyComposition: r.initialData?.familyComposition ?? H.SingleWithoutChildren,
4358
4370
  address: s
@@ -4411,7 +4423,7 @@ var Di = (e) => R({
4411
4423
  });
4412
4424
  //#endregion
4413
4425
  //#region src/comparisons/liability/liability.presenter.ts
4414
- function ki(e) {
4426
+ function Ai(e) {
4415
4427
  return {
4416
4428
  comparison: V.Liability,
4417
4429
  detail: { liability: {
@@ -4431,17 +4443,17 @@ function ki(e) {
4431
4443
  }
4432
4444
  //#endregion
4433
4445
  //#region src/models/houseOwnedBuilding.model.ts
4434
- var Ai = [{
4446
+ var ji = [{
4435
4447
  value: U.Yes,
4436
4448
  label: "Gekocht"
4437
4449
  }, {
4438
4450
  value: U.No,
4439
4451
  label: "Verhuurd"
4440
- }], ji = (e) => R({
4452
+ }], Mi = (e) => R({
4441
4453
  address: e,
4442
4454
  ownedBuilding: ei,
4443
4455
  familyComposition: Qr(Q.house.familyCompositionRequired)
4444
- }), Mi = /* @__PURE__ */ l({
4456
+ }), Ni = /* @__PURE__ */ l({
4445
4457
  __name: "HouseForm",
4446
4458
  props: /*@__PURE__*/ f({
4447
4459
  initialData: {},
@@ -4460,7 +4472,7 @@ var Ai = [{
4460
4472
  }),
4461
4473
  emits: ["submitted"],
4462
4474
  setup(e, { emit: t }) {
4463
- let r = e, i = q(r), a = t, { addressSchema: o, draft: s, resolvedAddress: l, additionOptions: u } = Hn({ initial: r.initialData?.address }), { isSubmitting: f, handleSubmit: p, defineField: h } = Z(ji(o), {
4475
+ let r = e, i = q(r), a = t, { addressSchema: o, draft: s, resolvedAddress: l, additionOptions: u } = Hn({ initial: r.initialData?.address }), { isSubmitting: f, handleSubmit: p, defineField: h } = Z(Mi(o), {
4464
4476
  ownedBuilding: r.initialData?.ownedBuilding ?? U.Yes,
4465
4477
  familyComposition: r.initialData?.familyComposition ?? H.SingleWithoutChildren,
4466
4478
  address: s
@@ -4499,7 +4511,7 @@ var Ai = [{
4499
4511
  "onUpdate:modelValue": r[1] ||= (e) => d(g) ? g.value = e : null,
4500
4512
  legend: "Jouw woning is...",
4501
4513
  name: "ownedBuilding",
4502
- options: E(Ai),
4514
+ options: E(ji),
4503
4515
  variant: "boxed",
4504
4516
  required: !1,
4505
4517
  "error-message": E(v)
@@ -4528,7 +4540,7 @@ var Ai = [{
4528
4540
  });
4529
4541
  //#endregion
4530
4542
  //#region src/comparisons/house/house.presenter.ts
4531
- function Ni(e) {
4543
+ function Pi(e) {
4532
4544
  return {
4533
4545
  comparison: V.Housing,
4534
4546
  detail: { house: { ownedBuilding: e.ownedBuilding } },
@@ -4544,22 +4556,22 @@ function Ni(e) {
4544
4556
  }
4545
4557
  //#endregion
4546
4558
  //#region src/comparisons/legal/constants.ts
4547
- var Pi = H.SingleWithChildren, Fi = (e) => R({
4559
+ var Fi = H.SingleWithChildren, Ii = (e) => R({
4548
4560
  address: e,
4549
4561
  ownedBuilding: ei,
4550
4562
  birthdate: $(),
4551
4563
  familyComposition: $r,
4552
4564
  familySize: z().defined().when("familyComposition", {
4553
- is: Pi,
4565
+ is: Fi,
4554
4566
  then: (e) => e.required(Q.legal.familySizeRequired)
4555
4567
  })
4556
- }), Ii = [{
4568
+ }), Li = [{
4557
4569
  title: "Alleenstaande met 1 kind",
4558
4570
  value: "2"
4559
4571
  }, {
4560
4572
  title: "Alleenstaande met 2 of meer kinderen",
4561
4573
  value: "3"
4562
- }], Li = /* @__PURE__ */ l({
4574
+ }], Ri = /* @__PURE__ */ l({
4563
4575
  __name: "LegalForm",
4564
4576
  props: /*@__PURE__*/ f({
4565
4577
  initialData: {},
@@ -4578,15 +4590,15 @@ var Pi = H.SingleWithChildren, Fi = (e) => R({
4578
4590
  }),
4579
4591
  emits: ["submitted"],
4580
4592
  setup(e, { emit: i }) {
4581
- let a = e, o = q(a), s = i, { addressSchema: l, draft: u, resolvedAddress: f, additionOptions: p } = Hn({ initial: a.initialData?.address }), { isSubmitting: h, handleSubmit: g, defineField: _, resetField: v } = Z(Fi(l), {
4593
+ let a = e, o = q(a), s = i, { addressSchema: l, draft: u, resolvedAddress: f, additionOptions: p } = Hn({ initial: a.initialData?.address }), { isSubmitting: h, handleSubmit: g, defineField: _, resetField: v } = Z(Ii(l), {
4582
4594
  ownedBuilding: a.initialData?.ownedBuilding ?? U.Yes,
4583
4595
  birthdate: a.initialData?.birthdate ?? "",
4584
4596
  familyComposition: a.initialData?.familyComposition ?? H.SingleWithoutChildren,
4585
4597
  familySize: a.initialData?.familySize ?? "",
4586
4598
  address: u
4587
- }), [b, x, S] = _("ownedBuilding"), [C, w, T] = _("birthdate"), [D, O, k] = _("familyComposition", { validateAt: "change" }), [A, j, M] = _("familySize", { validateAt: "change" }), F = t(() => D.value === Pi);
4599
+ }), [b, x, S] = _("ownedBuilding"), [C, w, T] = _("birthdate"), [D, O, k] = _("familyComposition", { validateAt: "change" }), [A, j, M] = _("familySize", { validateAt: "change" }), F = t(() => D.value === Fi);
4588
4600
  N(D, (e) => {
4589
- e !== Pi && v("familySize", { value: "" });
4601
+ e !== Fi && v("familySize", { value: "" });
4590
4602
  }, { immediate: !0 });
4591
4603
  function I() {
4592
4604
  g(({ ownedBuilding: e, birthdate: t, familyComposition: n, familySize: r }) => {
@@ -4624,7 +4636,7 @@ var Pi = H.SingleWithChildren, Fi = (e) => R({
4624
4636
  "onUpdate:modelValue": i[1] ||= (e) => d(b) ? b.value = e : null,
4625
4637
  legend: "Jouw woning is...",
4626
4638
  name: "ownedBuilding",
4627
- options: E(Ai),
4639
+ options: E(ji),
4628
4640
  variant: "boxed",
4629
4641
  required: !1,
4630
4642
  "error-message": E(S)
@@ -4667,7 +4679,7 @@ var Pi = H.SingleWithChildren, Fi = (e) => R({
4667
4679
  "onUpdate:modelValue": i[4] ||= (e) => d(A) ? A.value = e : null,
4668
4680
  label: "Aantal kinderen",
4669
4681
  placeholder: "Maak een keuze",
4670
- options: E(Ii),
4682
+ options: E(Li),
4671
4683
  name: "familySize",
4672
4684
  required: !1,
4673
4685
  "error-message": E(M)
@@ -4685,11 +4697,11 @@ var Pi = H.SingleWithChildren, Fi = (e) => R({
4685
4697
  });
4686
4698
  //#endregion
4687
4699
  //#region src/comparisons/legal/legal.presenter.ts
4688
- function Ri(e) {
4700
+ function zi(e) {
4689
4701
  return {
4690
4702
  comparison: V.LegalAssistance,
4691
4703
  detail: { comparison: {
4692
- familySize: e.familyComposition === Pi ? e.familySize : "",
4704
+ familySize: e.familyComposition === Fi ? e.familySize : "",
4693
4705
  deductables: 300,
4694
4706
  ownedBuilding: e.ownedBuilding
4695
4707
  } },
@@ -4706,7 +4718,7 @@ function Ri(e) {
4706
4718
  }
4707
4719
  //#endregion
4708
4720
  //#region src/comparisons/package/package.schema.ts
4709
- var zi = (e) => R({
4721
+ var Bi = (e) => R({
4710
4722
  address: e,
4711
4723
  birthdate: $(),
4712
4724
  familyComposition: $r,
@@ -4714,7 +4726,7 @@ var zi = (e) => R({
4714
4726
  is: Wr,
4715
4727
  then: () => $()
4716
4728
  })
4717
- }), Bi = /* @__PURE__ */ l({
4729
+ }), Vi = /* @__PURE__ */ l({
4718
4730
  __name: "PackageForm",
4719
4731
  props: /*@__PURE__*/ f({
4720
4732
  initialData: {},
@@ -4733,7 +4745,7 @@ var zi = (e) => R({
4733
4745
  }),
4734
4746
  emits: ["submitted"],
4735
4747
  setup(e, { emit: i }) {
4736
- let a = e, o = q(a), s = i, { addressSchema: l, draft: u, resolvedAddress: f, additionOptions: p } = Hn({ initial: a.initialData?.address }), { isSubmitting: h, handleSubmit: g, defineField: _, resetField: v } = Z(zi(l), {
4748
+ let a = e, o = q(a), s = i, { addressSchema: l, draft: u, resolvedAddress: f, additionOptions: p } = Hn({ initial: a.initialData?.address }), { isSubmitting: h, handleSubmit: g, defineField: _, resetField: v } = Z(Bi(l), {
4737
4749
  birthdate: a.initialData?.birthdate ?? "",
4738
4750
  familyComposition: a.initialData?.familyComposition ?? H.SingleWithoutChildren,
4739
4751
  partnerBirthdate: a.initialData?.partnerBirthdate ?? "",
@@ -4812,7 +4824,7 @@ var zi = (e) => R({
4812
4824
  });
4813
4825
  //#endregion
4814
4826
  //#region src/comparisons/package/package.presenter.ts
4815
- function Vi(e) {
4827
+ function Hi(e) {
4816
4828
  return {
4817
4829
  comparison: V.Package,
4818
4830
  detail: { partner: { birthdate: e.partnerBirthdate } },
@@ -4829,18 +4841,18 @@ function Vi(e) {
4829
4841
  }
4830
4842
  //#endregion
4831
4843
  //#region src/comparisons/loan/constants.ts
4832
- var Hi = {
4844
+ var Ui = {
4833
4845
  min: 21,
4834
4846
  max: 74
4835
- }, Ui = {
4847
+ }, Wi = {
4836
4848
  min: 3500,
4837
4849
  max: 75e3
4838
- }, Wi = R({
4850
+ }, Gi = R({
4839
4851
  LoanPurpose: z().required(Q.loan.purposeRequired),
4840
- LoanAmount: Zr(Q.loan.amountRequired).min(Ui.min, Q.loan.amountMin(Ui.min)).max(Ui.max, Q.loan.amountMax(Ui.max)),
4841
- birthdate: $(Hi),
4852
+ LoanAmount: Zr(Q.loan.amountRequired).min(Wi.min, Q.loan.amountMin(Wi.min)).max(Wi.max, Q.loan.amountMax(Wi.max)),
4853
+ birthdate: $(Ui),
4842
4854
  familyComposition: $r
4843
- }), Gi = [
4855
+ }), Ki = [
4844
4856
  {
4845
4857
  title: "Aankoop auto",
4846
4858
  value: "02"
@@ -4889,7 +4901,7 @@ var Hi = {
4889
4901
  title: "Anders",
4890
4902
  value: "99"
4891
4903
  }
4892
- ], Ki = /* @__PURE__ */ l({
4904
+ ], qi = /* @__PURE__ */ l({
4893
4905
  __name: "LoanForm",
4894
4906
  props: /*@__PURE__*/ f({
4895
4907
  initialData: {},
@@ -4908,7 +4920,7 @@ var Hi = {
4908
4920
  }),
4909
4921
  emits: ["submitted"],
4910
4922
  setup(e, { emit: t }) {
4911
- let r = e, i = q(r), a = t, { isSubmitting: o, handleSubmit: s, defineField: l } = Z(Wi, {
4923
+ let r = e, i = q(r), a = t, { isSubmitting: o, handleSubmit: s, defineField: l } = Z(Gi, {
4912
4924
  LoanPurpose: r.initialData?.LoanPurpose ?? "",
4913
4925
  LoanAmount: r.initialData?.LoanAmount ?? null,
4914
4926
  birthdate: r.initialData?.birthdate ?? "",
@@ -4933,7 +4945,7 @@ var Hi = {
4933
4945
  "onUpdate:modelValue": r[0] ||= (e) => d(u) ? u.value = e : null,
4934
4946
  label: "Leendoel",
4935
4947
  placeholder: "Maak een keuze",
4936
- options: E(Gi),
4948
+ options: E(Ki),
4937
4949
  name: "LoanPurpose",
4938
4950
  required: !1,
4939
4951
  "error-message": E(p)
@@ -4992,19 +5004,19 @@ var Hi = {
4992
5004
  });
4993
5005
  //#endregion
4994
5006
  //#region src/comparisons/loan/loan.presenter.ts
4995
- function qi(e) {
5007
+ function Ji(e) {
4996
5008
  let t = Vr(e, Ir);
4997
5009
  if (!t) return 120;
4998
5010
  let n = t.add(76, "year").diff(ke(), "month", !0), r = Math.floor(n / 12) * 12;
4999
5011
  return Math.min(r, 120);
5000
5012
  }
5001
- function Ji(e) {
5013
+ function Yi(e) {
5002
5014
  return {
5003
5015
  comparison: V.Loan,
5004
5016
  detail: { loan: {
5005
5017
  LoanPurpose: e.LoanPurpose,
5006
5018
  LoanAmount: e.LoanAmount,
5007
- MaxDurationByLegalLimit: qi(e.birthdate)
5019
+ MaxDurationByLegalLimit: Ji(e.birthdate)
5008
5020
  } },
5009
5021
  user: {
5010
5022
  birthdate: e.birthdate,
@@ -5014,14 +5026,14 @@ function Ji(e) {
5014
5026
  }
5015
5027
  //#endregion
5016
5028
  //#region src/comparisons/moped/constants.ts
5017
- var Yi = {
5029
+ var Xi = {
5018
5030
  min: 16,
5019
5031
  max: 99
5020
- }, Xi = (e, t) => R({
5032
+ }, Zi = (e, t) => R({
5021
5033
  licensePlate: e,
5022
5034
  address: t,
5023
- birthdate: $(Yi)
5024
- }), Zi = /* @__PURE__ */ l({
5035
+ birthdate: $(Xi)
5036
+ }), Qi = /* @__PURE__ */ l({
5025
5037
  __name: "MopedForm",
5026
5038
  props: /*@__PURE__*/ f({
5027
5039
  initialData: {},
@@ -5040,7 +5052,7 @@ var Yi = {
5040
5052
  }),
5041
5053
  emits: ["submitted"],
5042
5054
  setup(e, { emit: t }) {
5043
- let r = e, i = q(r), a = t, { addressSchema: o, draft: s, resolvedAddress: l, additionOptions: u } = Hn({ initial: r.initialData?.address }), { vehicleData: f, licensePlateSchema: p } = cr(V.Moped, { initialData: r.initialData?.vehicle ?? void 0 }), { isSubmitting: h, handleSubmit: g, defineField: _ } = Z(Xi(p, o), {
5055
+ let r = e, i = q(r), a = t, { addressSchema: o, draft: s, resolvedAddress: l, additionOptions: u } = Hn({ initial: r.initialData?.address }), { vehicleData: f, licensePlateSchema: p } = cr(V.Moped, { initialData: r.initialData?.vehicle ?? void 0 }), { isSubmitting: h, handleSubmit: g, defineField: _ } = Z(Zi(p, o), {
5044
5056
  licensePlate: r.initialData?.licensePlate ?? "",
5045
5057
  birthdate: r.initialData?.birthdate ?? "",
5046
5058
  address: s
@@ -5121,7 +5133,7 @@ var Yi = {
5121
5133
  });
5122
5134
  //#endregion
5123
5135
  //#region src/comparisons/moped/moped.presenter.ts
5124
- function Qi(e) {
5136
+ function $i(e) {
5125
5137
  return {
5126
5138
  comparison: V.Moped,
5127
5139
  detail: { moped: { ...e.vehicle } },
@@ -5138,11 +5150,11 @@ function Qi(e) {
5138
5150
  }
5139
5151
  //#endregion
5140
5152
  //#region src/comparisons/motor/motor.schema.ts
5141
- var $i = (e, t) => R({
5153
+ var ea = (e, t) => R({
5142
5154
  licensePlate: e,
5143
5155
  address: t,
5144
5156
  birthdate: $()
5145
- }), ea = /* @__PURE__ */ l({
5157
+ }), ta = /* @__PURE__ */ l({
5146
5158
  __name: "MotorForm",
5147
5159
  props: /*@__PURE__*/ f({
5148
5160
  initialData: {},
@@ -5161,7 +5173,7 @@ var $i = (e, t) => R({
5161
5173
  }),
5162
5174
  emits: ["submitted"],
5163
5175
  setup(e, { emit: t }) {
5164
- let r = e, i = q(r), a = t, { addressSchema: o, draft: s, resolvedAddress: l, additionOptions: u } = Hn({ initial: r.initialData?.address }), { vehicleData: f, licensePlateSchema: p } = cr(V.Motor, { initialData: r.initialData?.vehicle ?? void 0 }), { isSubmitting: h, handleSubmit: g, defineField: _ } = Z($i(p, o), {
5176
+ let r = e, i = q(r), a = t, { addressSchema: o, draft: s, resolvedAddress: l, additionOptions: u } = Hn({ initial: r.initialData?.address }), { vehicleData: f, licensePlateSchema: p } = cr(V.Motor, { initialData: r.initialData?.vehicle ?? void 0 }), { isSubmitting: h, handleSubmit: g, defineField: _ } = Z(ea(p, o), {
5165
5177
  licensePlate: r.initialData?.licensePlate ?? "",
5166
5178
  birthdate: r.initialData?.birthdate ?? "",
5167
5179
  address: s
@@ -5242,7 +5254,7 @@ var $i = (e, t) => R({
5242
5254
  });
5243
5255
  //#endregion
5244
5256
  //#region src/comparisons/motor/motor.presenter.ts
5245
- function ta(e) {
5257
+ function na(e) {
5246
5258
  return {
5247
5259
  comparison: V.Motor,
5248
5260
  detail: { motor: { ...e.vehicle } },
@@ -5259,11 +5271,11 @@ function ta(e) {
5259
5271
  }
5260
5272
  //#endregion
5261
5273
  //#region src/comparisons/car/car.schema.ts
5262
- var na = (e, t) => R({
5274
+ var ra = (e, t) => R({
5263
5275
  licensePlate: e,
5264
5276
  address: t,
5265
5277
  birthdate: $()
5266
- }), ra = /* @__PURE__ */ l({
5278
+ }), ia = /* @__PURE__ */ l({
5267
5279
  __name: "CarForm",
5268
5280
  props: /*@__PURE__*/ f({
5269
5281
  initialData: {},
@@ -5282,7 +5294,7 @@ var na = (e, t) => R({
5282
5294
  }),
5283
5295
  emits: ["submitted"],
5284
5296
  setup(e, { emit: t }) {
5285
- let r = e, i = q(r), a = t, { addressSchema: o, draft: s, resolvedAddress: l, additionOptions: u } = Hn({ initial: r.initialData?.address }), { vehicleData: f, licensePlateSchema: p } = cr(V.Car, { initialData: r.initialData?.vehicle ?? void 0 }), { isSubmitting: h, handleSubmit: g, defineField: _ } = Z(na(p, o), {
5297
+ let r = e, i = q(r), a = t, { addressSchema: o, draft: s, resolvedAddress: l, additionOptions: u } = Hn({ initial: r.initialData?.address }), { vehicleData: f, licensePlateSchema: p } = cr(V.Car, { initialData: r.initialData?.vehicle ?? void 0 }), { isSubmitting: h, handleSubmit: g, defineField: _ } = Z(ra(p, o), {
5286
5298
  licensePlate: r.initialData?.licensePlate ?? "",
5287
5299
  birthdate: r.initialData?.birthdate ?? "",
5288
5300
  address: s
@@ -5363,7 +5375,7 @@ var na = (e, t) => R({
5363
5375
  });
5364
5376
  //#endregion
5365
5377
  //#region src/comparisons/car/car.presenter.ts
5366
- function ia(e) {
5378
+ function aa(e) {
5367
5379
  return {
5368
5380
  comparison: V.Car,
5369
5381
  detail: { car: { ...e.vehicle } },
@@ -5380,10 +5392,10 @@ function ia(e) {
5380
5392
  }
5381
5393
  //#endregion
5382
5394
  //#region src/comparisons/car-business/businessCar.schema.ts
5383
- var aa = (e) => R({
5395
+ var oa = (e) => R({
5384
5396
  licensePlate: e,
5385
5397
  company: Pr()
5386
- }), oa = /* @__PURE__ */ l({
5398
+ }), sa = /* @__PURE__ */ l({
5387
5399
  __name: "BusinessCarForm",
5388
5400
  props: /*@__PURE__*/ f({
5389
5401
  initialData: {},
@@ -5402,7 +5414,7 @@ var aa = (e) => R({
5402
5414
  }),
5403
5415
  emits: ["submitted"],
5404
5416
  setup(e, { emit: i }) {
5405
- let a = e, o = q(a), s = i, { vehicleData: l, licensePlateSchema: u } = cr(V.Car, { initialData: a.initialData?.vehicle ?? void 0 }), { isSubmitting: f, handleSubmit: p, defineField: h, setErrors: g, removeError: _ } = Z(aa(u), {
5417
+ let a = e, o = q(a), s = i, { vehicleData: l, licensePlateSchema: u } = cr(V.Car, { initialData: a.initialData?.vehicle ?? void 0 }), { isSubmitting: f, handleSubmit: p, defineField: h, setErrors: g, removeError: _ } = Z(oa(u), {
5406
5418
  licensePlate: a.initialData?.licensePlate ?? "",
5407
5419
  company: a.initialData?.company ?? null
5408
5420
  }), [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);
@@ -5482,7 +5494,7 @@ var aa = (e) => R({
5482
5494
  });
5483
5495
  //#endregion
5484
5496
  //#region src/comparisons/car-business/businessCar.presenter.ts
5485
- function sa(e) {
5497
+ function ca(e) {
5486
5498
  return {
5487
5499
  comparison: V.CarBusiness,
5488
5500
  detail: {
@@ -5494,7 +5506,7 @@ function sa(e) {
5494
5506
  }
5495
5507
  //#endregion
5496
5508
  //#region src/comparisons/businessLiability/businessLiability.schema.ts
5497
- var ca = R({ company: Pr() }), la = /* @__PURE__ */ l({
5509
+ var la = R({ company: Pr() }), ua = /* @__PURE__ */ l({
5498
5510
  __name: "BusinessLiabilityForm",
5499
5511
  props: /*@__PURE__*/ f({
5500
5512
  initialData: {},
@@ -5515,7 +5527,7 @@ var ca = R({ company: Pr() }), la = /* @__PURE__ */ l({
5515
5527
  }),
5516
5528
  emits: ["submitted"],
5517
5529
  setup(e, { emit: i }) {
5518
- let a = e, o = q(a), s = i, { isSubmitting: l, handleSubmit: u, defineField: f, setErrors: p, removeError: h } = Z(ca, { company: a.initialData?.company ?? null }), [g, _, v] = f("company"), b = (e) => e ? p({ company: e }) : h("company"), x = t(() => !!g.value && !g.value.hasVisitingAddress);
5530
+ let a = e, o = q(a), s = i, { isSubmitting: l, handleSubmit: u, defineField: f, setErrors: p, removeError: h } = Z(la, { company: a.initialData?.company ?? null }), [g, _, v] = f("company"), b = (e) => e ? p({ company: e }) : h("company"), x = t(() => !!g.value && !g.value.hasVisitingAddress);
5519
5531
  function S() {
5520
5532
  u(({ company: e }) => {
5521
5533
  s("submitted", { company: e });
@@ -5559,7 +5571,7 @@ var ca = R({ company: Pr() }), la = /* @__PURE__ */ l({
5559
5571
  });
5560
5572
  //#endregion
5561
5573
  //#region src/comparisons/businessLiability/businessLiability.presenter.ts
5562
- function ua(e) {
5574
+ function da(e) {
5563
5575
  return {
5564
5576
  comparison: V.BusinessLiability,
5565
5577
  detail: { companyData: { ...e.company } },
@@ -5568,9 +5580,9 @@ function ua(e) {
5568
5580
  }
5569
5581
  //#endregion
5570
5582
  //#region src/flow/useComparisonSubmit.ts
5571
- var da = { [V.Travel]: "/tarieven/" }, fa = (e, t, n) => `${e}#/${n}${da[t] ?? ""}`, pa = (e) => {
5583
+ var fa = { [V.Travel]: "/tarieven/" }, pa = (e, t, n) => `${e}#/${n}${fa[t] ?? ""}`, ma = (e) => {
5572
5584
  window.location.href = e;
5573
- }, ma = ({ user: e, detail: t }) => new Oe({
5585
+ }, ha = ({ user: e, detail: t }) => new Oe({
5574
5586
  email: e.email || null,
5575
5587
  name: e.firstName || null,
5576
5588
  zip_code: e.zipCode || null,
@@ -5584,14 +5596,14 @@ var da = { [V.Travel]: "/tarieven/" }, fa = (e, t, n) => `${e}#/${n}${da[t] ?? "
5584
5596
  ...e.city && { city: e.city }
5585
5597
  }
5586
5598
  });
5587
- function ha(e) {
5599
+ function ga(e) {
5588
5600
  let t = x(!1), n = x(null);
5589
5601
  return {
5590
5602
  submit: async (r) => {
5591
5603
  t.value = !0, n.value = null;
5592
5604
  try {
5593
- let t = await Dn().comparisonService.create(r.comparison, ma(r)), n = fa(e.link, r.comparison, t.getId());
5594
- e.onRedirect ? e.onRedirect(n) : pa(n);
5605
+ let t = await Dn().comparisonService.create(r.comparison, ha(r)), n = pa(e.link, r.comparison, t.getId());
5606
+ e.onRedirect ? e.onRedirect(n) : ma(n);
5595
5607
  } catch (t) {
5596
5608
  n.value = t, e.onError?.(t, r);
5597
5609
  } finally {
@@ -5604,66 +5616,66 @@ function ha(e) {
5604
5616
  }
5605
5617
  //#endregion
5606
5618
  //#region src/comparisons/bike/index.ts
5607
- var ga = /* @__PURE__ */ B({
5608
- Form: () => li,
5609
- presenter: () => ui
5610
- }), _a = /* @__PURE__ */ B({
5611
- Form: () => mi,
5612
- presenter: () => hi
5619
+ var _a = /* @__PURE__ */ B({
5620
+ Form: () => ui,
5621
+ presenter: () => di
5613
5622
  }), va = /* @__PURE__ */ B({
5614
- Form: () => bi,
5615
- presenter: () => xi
5623
+ Form: () => hi,
5624
+ presenter: () => gi
5616
5625
  }), ya = /* @__PURE__ */ B({
5617
- Form: () => Ti,
5618
- presenter: () => Ei
5626
+ Form: () => xi,
5627
+ presenter: () => Si
5619
5628
  }), ba = /* @__PURE__ */ B({
5620
- Form: () => Oi,
5621
- presenter: () => ki
5629
+ Form: () => Ei,
5630
+ presenter: () => Di
5622
5631
  }), xa = /* @__PURE__ */ B({
5623
- Form: () => Mi,
5624
- presenter: () => Ni
5632
+ Form: () => ki,
5633
+ presenter: () => Ai
5625
5634
  }), Sa = /* @__PURE__ */ B({
5626
- Form: () => Li,
5627
- presenter: () => Ri
5635
+ Form: () => Ni,
5636
+ presenter: () => Pi
5628
5637
  }), Ca = /* @__PURE__ */ B({
5629
- Form: () => Bi,
5630
- presenter: () => Vi
5638
+ Form: () => Ri,
5639
+ presenter: () => zi
5631
5640
  }), wa = /* @__PURE__ */ B({
5632
- Form: () => Ki,
5633
- presenter: () => Ji
5641
+ Form: () => Vi,
5642
+ presenter: () => Hi
5634
5643
  }), Ta = /* @__PURE__ */ B({
5635
- Form: () => Zi,
5636
- presenter: () => Qi
5644
+ Form: () => qi,
5645
+ presenter: () => Yi
5637
5646
  }), Ea = /* @__PURE__ */ B({
5638
- Form: () => ea,
5639
- presenter: () => ta
5647
+ Form: () => Qi,
5648
+ presenter: () => $i
5640
5649
  }), Da = /* @__PURE__ */ B({
5641
- Form: () => ra,
5642
- presenter: () => ia
5650
+ Form: () => ta,
5651
+ presenter: () => na
5643
5652
  }), Oa = /* @__PURE__ */ B({
5644
- Form: () => oa,
5645
- presenter: () => sa
5653
+ Form: () => ia,
5654
+ presenter: () => aa
5646
5655
  }), ka = /* @__PURE__ */ B({
5647
- Form: () => la,
5648
- presenter: () => ua
5649
- }), Aa = {
5650
- [V.Bike]: ga,
5651
- [V.Pet]: _a,
5652
- [V.Caravan]: va,
5653
- [V.Travel]: ya,
5654
- [V.Liability]: ba,
5655
- [V.Housing]: xa,
5656
- house: xa,
5657
- [V.LegalAssistance]: Sa,
5658
- [V.Package]: Ca,
5659
- [V.Loan]: wa,
5660
- [V.Moped]: Ta,
5661
- [V.Motor]: Ea,
5662
- [V.Car]: Da,
5663
- [V.CarBusiness]: Oa,
5664
- "business-car": Oa,
5665
- [V.BusinessLiability]: ka
5666
- }, ja = /* @__PURE__ */ l({
5656
+ Form: () => sa,
5657
+ presenter: () => ca
5658
+ }), Aa = /* @__PURE__ */ B({
5659
+ Form: () => ua,
5660
+ presenter: () => da
5661
+ }), ja = {
5662
+ [V.Bike]: _a,
5663
+ [V.Pet]: va,
5664
+ [V.Caravan]: ya,
5665
+ [V.Travel]: ba,
5666
+ [V.Liability]: xa,
5667
+ [V.Housing]: Sa,
5668
+ house: Sa,
5669
+ [V.LegalAssistance]: Ca,
5670
+ [V.Package]: wa,
5671
+ [V.Loan]: Ta,
5672
+ [V.Moped]: Ea,
5673
+ [V.Motor]: Da,
5674
+ [V.Car]: Oa,
5675
+ [V.CarBusiness]: ka,
5676
+ "business-car": ka,
5677
+ [V.BusinessLiability]: Aa
5678
+ }, Ma = /* @__PURE__ */ l({
5667
5679
  __name: "ComparisonFormFlow",
5668
5680
  props: {
5669
5681
  form: {},
@@ -5694,7 +5706,7 @@ var ga = /* @__PURE__ */ B({
5694
5706
  },
5695
5707
  emits: ["submitted", "error"],
5696
5708
  setup(e, { emit: i }) {
5697
- let a = e, o = i, s = q(a), c = t(() => Aa[a.form]), { submit: l, isSubmitting: u } = ha({
5709
+ let a = e, o = i, s = q(a), c = t(() => ja[a.form]), { submit: l, isSubmitting: u } = ga({
5698
5710
  link: a.link,
5699
5711
  onRedirect: (e) => {
5700
5712
  o("submitted", e), a.redirect ? a.redirect(e) : window.location.href = e;
@@ -5710,16 +5722,16 @@ var ga = /* @__PURE__ */ B({
5710
5722
  onSubmitted: d
5711
5723
  }), null, 16, ["initial-data", "submit-disabled"])) : r("", !0);
5712
5724
  }
5713
- }), Ma = { class: "vd-form vd-form--vertical vd-form--card" }, Na = {
5725
+ }), Na = { class: "vd-form vd-form--vertical vd-form--card" }, Pa = {
5714
5726
  key: 0,
5715
5727
  class: "vd-form__header"
5716
- }, Pa = {
5728
+ }, Fa = {
5717
5729
  key: 0,
5718
5730
  class: "vd-form__title"
5719
- }, Fa = {
5731
+ }, Ia = {
5720
5732
  key: 1,
5721
5733
  class: "vd-form__description"
5722
- }, Ia = /* @__PURE__ */ l({
5734
+ }, La = /* @__PURE__ */ l({
5723
5735
  __name: "QuestionnaireForm",
5724
5736
  props: {
5725
5737
  link: {},
@@ -5738,7 +5750,7 @@ var ga = /* @__PURE__ */ B({
5738
5750
  qaId: n.qaId,
5739
5751
  template: n.thankyouPageTemplate
5740
5752
  }));
5741
- 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), {
5753
+ return (t, n) => (y(), i("div", Na, [e.showTitle && e.title || e.description ? (y(), i("div", Pa, [e.showTitle && e.title ? (y(), i("h2", Fa, T(e.title), 1)) : r("", !0), e.description ? (y(), i("p", Ia, T(e.description), 1)) : r("", !0)])) : r("", !0), c(E(Ne), {
5742
5754
  href: a.value,
5743
5755
  label: e.buttonText,
5744
5756
  "button-type": "green",
@@ -5747,16 +5759,16 @@ var ga = /* @__PURE__ */ B({
5747
5759
  block: ""
5748
5760
  }, null, 8, ["href", "label"])]));
5749
5761
  }
5750
- }), La = {
5762
+ }), Ra = {
5751
5763
  key: 0,
5752
5764
  class: "vd-form__header"
5753
- }, Ra = {
5765
+ }, za = {
5754
5766
  key: 0,
5755
5767
  class: "vd-form__title"
5756
- }, za = {
5768
+ }, Ba = {
5757
5769
  key: 1,
5758
5770
  class: "vd-form__description"
5759
- }, 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({
5771
+ }, Va = { class: "vd-form__row" }, Ha = { class: "vd-form__col-10 vd-form__col-md-6" }, Ua = { class: "vd-form__col-2 vd-form__action" }, Wa = /* @__PURE__ */ l({
5760
5772
  __name: "RiskScannerForm",
5761
5773
  props: {
5762
5774
  qaUrl: { default: "" },
@@ -5810,7 +5822,7 @@ var ga = /* @__PURE__ */ B({
5810
5822
  return (t, o) => (y(), i("form", {
5811
5823
  class: "vd-form vd-form--vertical vd-form--card",
5812
5824
  onSubmit: I(w, ["prevent", "stop"])
5813
- }, [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(Nr), m({
5825
+ }, [e.showTitle && e.title || e.description ? (y(), i("div", Ra, [e.showTitle && e.title ? (y(), i("h2", za, T(e.title), 1)) : r("", !0), e.description ? (y(), i("p", Ba, T(e.description), 1)) : r("", !0)])) : r("", !0), a("div", Va, [a("div", Ha, [c(E(Nr), m({
5814
5826
  modelValue: E(g),
5815
5827
  "onUpdate:modelValue": o[0] ||= (e) => d(g) ? g.value = e : null
5816
5828
  }, E(_), {
@@ -5821,7 +5833,7 @@ var ga = /* @__PURE__ */ B({
5821
5833
  key: 0,
5822
5834
  style: { "margin-top": "12px" },
5823
5835
  text: "Dit bedrijf heeft geen geregistreerd bezoekadres. Voeg dit toe bij de KvK om door te gaan met de aanvraag."
5824
- })) : r("", !0)]), a("div", Ha, [c(E(Ne), {
5836
+ })) : r("", !0)]), a("div", Ua, [c(E(Ne), {
5825
5837
  type: "submit",
5826
5838
  label: e.buttonText,
5827
5839
  "is-loading": E(l),
@@ -5838,4 +5850,4 @@ var ga = /* @__PURE__ */ B({
5838
5850
  }
5839
5851
  });
5840
5852
  //#endregion
5841
- export { li as BikeForm, oa as BusinessCarForm, la as BusinessLiabilityForm, ra as CarForm, bi as CaravanForm, ja as ComparisonFormFlow, V as ComparisonName, Mi as HouseForm, Li as LegalForm, Oi as LiabilityForm, Ki as LoanForm, Zi as MopedForm, ea as MotorForm, Bi as PackageForm, mi as PetForm, Ia as QuestionnaireForm, Ua as RiskScannerForm, Ti as TravelForm, ui as bikePresenter, sa as businessCarPresenter, ua as businessLiabilityPresenter, ia as carPresenter, xi as caravanPresenter, Ni as housePresenter, Ri as legalPresenter, ki as liabilityPresenter, Ji as loanPresenter, Qi as mopedPresenter, ta as motorPresenter, Vi as packagePresenter, hi as petPresenter, Ei as travelPresenter, ha as useComparisonSubmit };
5853
+ export { ui as BikeForm, sa as BusinessCarForm, ua as BusinessLiabilityForm, ia as CarForm, xi as CaravanForm, Ma as ComparisonFormFlow, V as ComparisonName, Ni as HouseForm, Ri as LegalForm, ki as LiabilityForm, qi as LoanForm, Qi as MopedForm, ta as MotorForm, Vi as PackageForm, hi as PetForm, La as QuestionnaireForm, Wa as RiskScannerForm, Ei as TravelForm, di as bikePresenter, ca as businessCarPresenter, da as businessLiabilityPresenter, aa as carPresenter, Si as caravanPresenter, Pi as housePresenter, zi as legalPresenter, Ai as liabilityPresenter, Yi as loanPresenter, $i as mopedPresenter, na as motorPresenter, Hi as packagePresenter, gi as petPresenter, Di as travelPresenter, ga as useComparisonSubmit };