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