@vergelijkdirect/comparison-forms 2.0.2-rc.0 → 2.1.0-ver-9053.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/dist/vue/VdInput-CRb-iTiH.js +145 -0
- package/dist/vue/VdPopover-B78nVpNU.js +200 -0
- package/dist/vue/VdRadioGroup-D5kHcpsY.js +166 -0
- package/dist/vue/VdSearchableSelect-THqVGo_Q.js +209 -0
- package/dist/vue/VdSelect-Dv35x4sz.js +112 -0
- package/dist/vue/bike-BmAOIT7K.js +2 -0
- package/dist/vue/bike.presenter-B28PW7O5.js +1673 -0
- package/dist/vue/birthdate.schema-DX1aYftY.js +91 -0
- package/dist/vue/businessCar.presenter-DR-Ozf6B.js +121 -0
- package/dist/vue/businessLiability-w4xhGnik.js +2 -0
- package/dist/vue/businessLiability.presenter-8iyRbLgw.js +80 -0
- package/dist/vue/car-business-DMYPV4UK.js +2 -0
- package/dist/vue/car-pxn56jlK.js +2 -0
- package/dist/vue/car.presenter-CMGN_MtF.js +130 -0
- package/dist/vue/caravan-CuhGro4y.js +2 -0
- package/dist/vue/caravan.presenter-DCV4ltB7.js +157 -0
- package/dist/vue/company.schema-DStHJpGH.js +241 -0
- package/dist/vue/comparison-forms.d.ts +36 -35
- package/dist/vue/comparison-forms.js +119 -5590
- package/dist/vue/date.util-DjJZwKvn.js +24 -0
- package/dist/vue/familyComposition.enum-D26VYo_a.js +6 -0
- package/dist/vue/familyComposition.schema-A9W0CwZq.js +75 -0
- package/dist/vue/house-DJhbPxyX.js +2 -0
- package/dist/vue/house.presenter-C7k4TwbP.js +118 -0
- package/dist/vue/houseOwnedBuilding.model-DskEdrSG.js +14 -0
- package/dist/vue/itc-KSDsJZsI.js +10 -0
- package/dist/vue/legal-Ce2WzBp6.js +2 -0
- package/dist/vue/legal.presenter-Ddiovxkq.js +175 -0
- package/dist/vue/liability-NHH24ecQ.js +2 -0
- package/dist/vue/liability.presenter-gHGQxRPP.js +110 -0
- package/dist/vue/loan-C9dmM3Vm.js +2 -0
- package/dist/vue/loan.presenter-p24T0XvQ.js +198 -0
- package/dist/vue/messages-DfcG9Qfd.js +41 -0
- package/dist/vue/moped-CnYiLYBp.js +2 -0
- package/dist/vue/moped.presenter-C5TcsOIe.js +133 -0
- package/dist/vue/motor-DSFijIK7.js +2 -0
- package/dist/vue/motor.presenter-Chlott4j.js +130 -0
- package/dist/vue/package-TSBIFNzu.js +2 -0
- package/dist/vue/package.presenter-Bit_w4np.js +137 -0
- package/dist/vue/pet-DRap9f-q.js +2 -0
- package/dist/vue/pet.presenter-BrWNvh7j.js +170 -0
- package/dist/vue/rules-3BZkSj_K.js +13 -0
- package/dist/vue/travel-DB9sfL8A.js +2 -0
- package/dist/vue/travel.presenter-CVkNDJwI.js +108 -0
- package/dist/vue/useAddress-C-h1pGI5.js +245 -0
- package/dist/vue/useLicensePlate-wAVrX9tr.js +187 -0
- package/dist/vue/useValidator-B8ZuqyvJ.js +535 -0
- package/dist/vue/yesNo-BvJlCm7Y.js +6 -0
- package/dist/wc/comparison-forms.js +14922 -14424
- package/dist/wc-forms/bike.cjs +1 -1
- package/dist/wc-forms/{birthdate.schema-rpmbSDZH.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-DW6scNvt.cjs → familyComposition.schema-gvSnx-ea.cjs} +1 -1
- package/dist/wc-forms/house.cjs +1 -1
- package/dist/wc-forms/houseOwnedBuilding.model-G9AqKTZo.cjs +1 -0
- 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-stJTqN-x.cjs → messages-CX8jVyEo.cjs} +1 -1
- 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 +3 -3
- package/package.json +1 -1
- package/dist/client/.vite/ssr-manifest.json +0 -600
- package/dist/client/assets/index-6Enzr9rU.css +0 -4
- package/dist/client/assets/index-6Enzr9rU.css.br +0 -0
- package/dist/client/assets/index-DUchBxEo.js +0 -57
- package/dist/client/assets/index-DUchBxEo.js.br +0 -0
- package/dist/client/index.html +0 -15
- package/dist/server/entry-server.js +0 -9981
- package/dist/server/entry-server.js.br +0 -0
- package/dist/wc-forms/houseOwnedBuilding.model-DgIQ2pQN.cjs +0 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import e from "dayjs";
|
|
2
|
+
import t from "dayjs/plugin/customParseFormat.js";
|
|
3
|
+
//#region src/utils/date.util.ts
|
|
4
|
+
e.extend(t);
|
|
5
|
+
function n() {
|
|
6
|
+
return e().startOf("day");
|
|
7
|
+
}
|
|
8
|
+
function r() {
|
|
9
|
+
return n().year();
|
|
10
|
+
}
|
|
11
|
+
function i(t, n) {
|
|
12
|
+
let r = e(t ?? "", n, !0);
|
|
13
|
+
return r.isValid() ? r.startOf("day") : null;
|
|
14
|
+
}
|
|
15
|
+
function a(e, t) {
|
|
16
|
+
let r = n();
|
|
17
|
+
return {
|
|
18
|
+
today: r,
|
|
19
|
+
earliest: r.subtract(t.value + 1, t.unit).add(1, "day"),
|
|
20
|
+
latest: r.subtract(e.value, e.unit)
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
export { r as n, i as r, a as t };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { t as e } from "./familyComposition.enum-D26VYo_a.js";
|
|
2
|
+
import { t } from "./VdSelect-Dv35x4sz.js";
|
|
3
|
+
import { t as n } from "./messages-DfcG9Qfd.js";
|
|
4
|
+
import { n as r } from "./rules-3BZkSj_K.js";
|
|
5
|
+
import { createBlock as i, createSlots as a, defineComponent as o, mergeModels as s, mergeProps as c, openBlock as l, renderSlot as u, unref as d, useModel as f, useSlots as p, withCtx as m } from "vue";
|
|
6
|
+
import "yup";
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region src/components/fields/VdFamilyCompositionSelect.vue
|
|
9
|
+
var h = /* @__PURE__ */ o({
|
|
10
|
+
inheritAttrs: !1,
|
|
11
|
+
__name: "VdFamilyCompositionSelect",
|
|
12
|
+
props: /*@__PURE__*/ s({
|
|
13
|
+
label: { default: "Gezinssituatie" },
|
|
14
|
+
name: { default: "familyComposition" },
|
|
15
|
+
required: {
|
|
16
|
+
type: Boolean,
|
|
17
|
+
default: !1
|
|
18
|
+
}
|
|
19
|
+
}, {
|
|
20
|
+
modelValue: { required: !0 },
|
|
21
|
+
modelModifiers: {}
|
|
22
|
+
}),
|
|
23
|
+
emits: ["update:modelValue"],
|
|
24
|
+
setup(n) {
|
|
25
|
+
let r = [
|
|
26
|
+
{
|
|
27
|
+
value: e.SingleWithoutChildren,
|
|
28
|
+
title: "Alleenstaand zonder kinderen"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
value: e.FamilyWithoutChildren,
|
|
32
|
+
title: "Gezin zonder kinderen"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
value: e.SingleWithChildren,
|
|
36
|
+
title: "Alleenstaand met kinderen"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
value: e.FamilyWithChildren,
|
|
40
|
+
title: "Gezin met kinderen"
|
|
41
|
+
}
|
|
42
|
+
], o = p(), s = f(n, "modelValue");
|
|
43
|
+
return (e, f) => (l(), i(t, c({
|
|
44
|
+
modelValue: s.value,
|
|
45
|
+
"onUpdate:modelValue": f[0] ||= (e) => s.value = e,
|
|
46
|
+
label: n.label,
|
|
47
|
+
name: n.name,
|
|
48
|
+
required: n.required,
|
|
49
|
+
options: r,
|
|
50
|
+
placeholder: ""
|
|
51
|
+
}, e.$attrs), a({ _: 2 }, [d(o).popover ? {
|
|
52
|
+
name: "popover",
|
|
53
|
+
fn: m(() => [u(e.$slots, "popover")]),
|
|
54
|
+
key: "0"
|
|
55
|
+
} : void 0]), 1040, [
|
|
56
|
+
"modelValue",
|
|
57
|
+
"label",
|
|
58
|
+
"name",
|
|
59
|
+
"required"
|
|
60
|
+
]));
|
|
61
|
+
}
|
|
62
|
+
}), g = [
|
|
63
|
+
e.SingleWithoutChildren,
|
|
64
|
+
e.FamilyWithoutChildren,
|
|
65
|
+
e.SingleWithChildren,
|
|
66
|
+
e.FamilyWithChildren
|
|
67
|
+
];
|
|
68
|
+
//#endregion
|
|
69
|
+
//#region src/schemas/familyComposition.schema.ts
|
|
70
|
+
function _(e = n.familyComposition.required) {
|
|
71
|
+
return r(g, e);
|
|
72
|
+
}
|
|
73
|
+
var v = _();
|
|
74
|
+
//#endregion
|
|
75
|
+
export { v as n, h as r, _ as t };
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { i as e, o as t, r as n, s as r, t as i, u as a } from "./useValidator-B8ZuqyvJ.js";
|
|
2
|
+
import { t as o } from "./familyComposition.enum-D26VYo_a.js";
|
|
3
|
+
import { n as s } from "./yesNo-BvJlCm7Y.js";
|
|
4
|
+
import { t as c } from "./VdRadioGroup-D5kHcpsY.js";
|
|
5
|
+
import { n as l, t as u } from "./useAddress-C-h1pGI5.js";
|
|
6
|
+
import { r as d, t as f } from "./familyComposition.schema-A9W0CwZq.js";
|
|
7
|
+
import { t as p } from "./messages-DfcG9Qfd.js";
|
|
8
|
+
import { n as m, t as h } from "./houseOwnedBuilding.model-DskEdrSG.js";
|
|
9
|
+
import { createBlock as g, createVNode as _, defineComponent as v, isRef as y, mergeDefaults as b, mergeProps as x, openBlock as S, unref as C, withCtx as w } from "vue";
|
|
10
|
+
import { object as T } from "yup";
|
|
11
|
+
//#region src/comparisons/house/house.schema.ts
|
|
12
|
+
var E = (e) => T({
|
|
13
|
+
address: e,
|
|
14
|
+
ownedBuilding: m,
|
|
15
|
+
familyComposition: f(p.house.familyCompositionRequired)
|
|
16
|
+
}), D = /* @__PURE__ */ v({
|
|
17
|
+
__name: "HouseForm",
|
|
18
|
+
props: /*@__PURE__*/ b({
|
|
19
|
+
initialData: {},
|
|
20
|
+
title: {},
|
|
21
|
+
description: {},
|
|
22
|
+
banner: {},
|
|
23
|
+
layout: {},
|
|
24
|
+
card: { type: Boolean },
|
|
25
|
+
flat: { type: Boolean },
|
|
26
|
+
fullWidth: { type: Boolean },
|
|
27
|
+
submitLabel: {},
|
|
28
|
+
submitDisabled: { type: Boolean }
|
|
29
|
+
}, {
|
|
30
|
+
...t,
|
|
31
|
+
title: "Woonverzekering vergelijken"
|
|
32
|
+
}),
|
|
33
|
+
emits: ["submitted"],
|
|
34
|
+
setup(t, { emit: a }) {
|
|
35
|
+
let f = t, p = r(f), m = a, { addressSchema: v, draft: b, resolvedAddress: T, additionOptions: D } = u({ initial: f.initialData?.address }), { isSubmitting: O, handleSubmit: k, defineField: A } = i(E(v), {
|
|
36
|
+
ownedBuilding: f.initialData?.ownedBuilding ?? s.Yes,
|
|
37
|
+
familyComposition: f.initialData?.familyComposition ?? o.SingleWithoutChildren,
|
|
38
|
+
address: b
|
|
39
|
+
}), [j, M, N] = A("ownedBuilding"), [P, F, I] = A("familyComposition", { validateAt: "change" });
|
|
40
|
+
function L() {
|
|
41
|
+
k(({ ownedBuilding: e, familyComposition: t }) => {
|
|
42
|
+
m("submitted", {
|
|
43
|
+
ownedBuilding: e,
|
|
44
|
+
familyComposition: t,
|
|
45
|
+
address: T.value
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
return (r, i) => (S(), g(C(n), x(C(p), {
|
|
50
|
+
"submit-disabled": t.submitDisabled || C(O),
|
|
51
|
+
onSubmit: L
|
|
52
|
+
}), {
|
|
53
|
+
default: w(() => [
|
|
54
|
+
_(C(e), {
|
|
55
|
+
span: "4",
|
|
56
|
+
md: "6"
|
|
57
|
+
}, {
|
|
58
|
+
default: w(() => [_(C(l), {
|
|
59
|
+
"resolved-address": C(T),
|
|
60
|
+
"onUpdate:resolvedAddress": i[0] ||= (e) => y(T) ? T.value = e : null,
|
|
61
|
+
"addition-options": C(D)
|
|
62
|
+
}, null, 8, ["resolved-address", "addition-options"])]),
|
|
63
|
+
_: 1
|
|
64
|
+
}),
|
|
65
|
+
_(C(e), {
|
|
66
|
+
span: "3",
|
|
67
|
+
md: "3"
|
|
68
|
+
}, {
|
|
69
|
+
default: w(() => [_(C(c), x({
|
|
70
|
+
modelValue: C(j),
|
|
71
|
+
"onUpdate:modelValue": i[1] ||= (e) => y(j) ? j.value = e : null,
|
|
72
|
+
legend: "Jouw woning is...",
|
|
73
|
+
name: "ownedBuilding",
|
|
74
|
+
options: C(h),
|
|
75
|
+
variant: "boxed",
|
|
76
|
+
required: !1,
|
|
77
|
+
"error-message": C(N)
|
|
78
|
+
}, C(M)), null, 16, [
|
|
79
|
+
"modelValue",
|
|
80
|
+
"options",
|
|
81
|
+
"error-message"
|
|
82
|
+
])]),
|
|
83
|
+
_: 1
|
|
84
|
+
}),
|
|
85
|
+
_(C(e), {
|
|
86
|
+
span: "3",
|
|
87
|
+
md: "3"
|
|
88
|
+
}, {
|
|
89
|
+
default: w(() => [_(C(d), x({
|
|
90
|
+
modelValue: C(P),
|
|
91
|
+
"onUpdate:modelValue": i[2] ||= (e) => y(P) ? P.value = e : null,
|
|
92
|
+
"error-message": C(I)
|
|
93
|
+
}, C(F)), null, 16, ["modelValue", "error-message"])]),
|
|
94
|
+
_: 1
|
|
95
|
+
})
|
|
96
|
+
]),
|
|
97
|
+
_: 1
|
|
98
|
+
}, 16, ["submit-disabled"]));
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
//#endregion
|
|
102
|
+
//#region src/comparisons/house/house.presenter.ts
|
|
103
|
+
function O(e) {
|
|
104
|
+
return {
|
|
105
|
+
comparison: a.Housing,
|
|
106
|
+
detail: { house: { ownedBuilding: e.ownedBuilding } },
|
|
107
|
+
user: {
|
|
108
|
+
zipCode: e.address.zipCode,
|
|
109
|
+
houseNumber: e.address.houseNumber,
|
|
110
|
+
houseNumberAddition: e.address.houseNumberAddition,
|
|
111
|
+
street: e.address.street,
|
|
112
|
+
city: e.address.city,
|
|
113
|
+
familyComposition: e.familyComposition
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
//#endregion
|
|
118
|
+
export { D as n, O as t };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { n as e, t } from "./yesNo-BvJlCm7Y.js";
|
|
2
|
+
import { t as n } from "./messages-DfcG9Qfd.js";
|
|
3
|
+
import { n as r } from "./rules-3BZkSj_K.js";
|
|
4
|
+
import "yup";
|
|
5
|
+
//#region src/schemas/ownedBuilding.schema.ts
|
|
6
|
+
var i = r(t, n.ownedBuilding.required), a = [{
|
|
7
|
+
value: e.Yes,
|
|
8
|
+
label: "Gekocht"
|
|
9
|
+
}, {
|
|
10
|
+
value: e.No,
|
|
11
|
+
label: "Verhuurd"
|
|
12
|
+
}];
|
|
13
|
+
//#endregion
|
|
14
|
+
export { i as n, a as t };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComparisonService as e, DataService as t, DataValidationService as n, HomeService as r, User as i } from "@vergelijkdirect/insurance-transmission-client";
|
|
2
|
+
//#region src/data/itc.ts
|
|
3
|
+
var a, o = () => ({
|
|
4
|
+
dataService: new t(),
|
|
5
|
+
dataValidationService: new n(),
|
|
6
|
+
homeService: new r(),
|
|
7
|
+
comparisonService: new e()
|
|
8
|
+
}), s = () => (a ||= o(), a);
|
|
9
|
+
//#endregion
|
|
10
|
+
export { s as n, i as t };
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { i as e, o as t, r as n, s as r, t as i, u as a } from "./useValidator-B8ZuqyvJ.js";
|
|
2
|
+
import { t as o } from "./familyComposition.enum-D26VYo_a.js";
|
|
3
|
+
import { n as s } from "./yesNo-BvJlCm7Y.js";
|
|
4
|
+
import { t as c } from "./VdSelect-Dv35x4sz.js";
|
|
5
|
+
import { t as l } from "./VdRadioGroup-D5kHcpsY.js";
|
|
6
|
+
import { n as u, t as d } from "./useAddress-C-h1pGI5.js";
|
|
7
|
+
import { a as f, t as p } from "./birthdate.schema-DX1aYftY.js";
|
|
8
|
+
import { n as m, r as h } from "./familyComposition.schema-A9W0CwZq.js";
|
|
9
|
+
import { t as g } from "./messages-DfcG9Qfd.js";
|
|
10
|
+
import { n as _, t as v } from "./houseOwnedBuilding.model-DskEdrSG.js";
|
|
11
|
+
import { computed as y, createBlock as b, createCommentVNode as x, createVNode as S, defineComponent as C, isRef as w, mergeDefaults as T, mergeProps as E, openBlock as D, unref as O, watch as k, withCtx as A } from "vue";
|
|
12
|
+
import { object as j, string as M } from "yup";
|
|
13
|
+
//#region src/comparisons/legal/constants.ts
|
|
14
|
+
var N = o.SingleWithChildren, P = (e) => j({
|
|
15
|
+
address: e,
|
|
16
|
+
ownedBuilding: _,
|
|
17
|
+
birthdate: p(),
|
|
18
|
+
familyComposition: m,
|
|
19
|
+
familySize: M().defined().when("familyComposition", {
|
|
20
|
+
is: N,
|
|
21
|
+
then: (e) => e.required(g.legal.familySizeRequired)
|
|
22
|
+
})
|
|
23
|
+
}), F = [{
|
|
24
|
+
title: "Alleenstaande met 1 kind",
|
|
25
|
+
value: "2"
|
|
26
|
+
}, {
|
|
27
|
+
title: "Alleenstaande met 2 of meer kinderen",
|
|
28
|
+
value: "3"
|
|
29
|
+
}], I = /* @__PURE__ */ C({
|
|
30
|
+
__name: "LegalForm",
|
|
31
|
+
props: /*@__PURE__*/ T({
|
|
32
|
+
initialData: {},
|
|
33
|
+
title: {},
|
|
34
|
+
description: {},
|
|
35
|
+
banner: {},
|
|
36
|
+
layout: {},
|
|
37
|
+
card: { type: Boolean },
|
|
38
|
+
flat: { type: Boolean },
|
|
39
|
+
fullWidth: { type: Boolean },
|
|
40
|
+
submitLabel: {},
|
|
41
|
+
submitDisabled: { type: Boolean }
|
|
42
|
+
}, {
|
|
43
|
+
...t,
|
|
44
|
+
title: "Rechtsbijstandverzekering vergelijken"
|
|
45
|
+
}),
|
|
46
|
+
emits: ["submitted"],
|
|
47
|
+
setup(t, { emit: a }) {
|
|
48
|
+
let p = t, m = r(p), g = a, { addressSchema: _, draft: C, resolvedAddress: T, additionOptions: j } = d({ initial: p.initialData?.address }), { isSubmitting: M, handleSubmit: I, defineField: L, resetField: R } = i(P(_), {
|
|
49
|
+
ownedBuilding: p.initialData?.ownedBuilding ?? s.Yes,
|
|
50
|
+
birthdate: p.initialData?.birthdate ?? "",
|
|
51
|
+
familyComposition: p.initialData?.familyComposition ?? o.SingleWithoutChildren,
|
|
52
|
+
familySize: p.initialData?.familySize ?? "",
|
|
53
|
+
address: C
|
|
54
|
+
}), [z, B, V] = L("ownedBuilding"), [H, U, W] = L("birthdate"), [G, K, q] = L("familyComposition", { validateAt: "change" }), [J, Y, X] = L("familySize", { validateAt: "change" }), Z = y(() => G.value === N);
|
|
55
|
+
k(G, (e) => {
|
|
56
|
+
e !== N && R("familySize", { value: "" });
|
|
57
|
+
}, { immediate: !0 });
|
|
58
|
+
function Q() {
|
|
59
|
+
I(({ ownedBuilding: e, birthdate: t, familyComposition: n, familySize: r }) => {
|
|
60
|
+
g("submitted", {
|
|
61
|
+
ownedBuilding: e,
|
|
62
|
+
birthdate: t,
|
|
63
|
+
familyComposition: n,
|
|
64
|
+
familySize: r,
|
|
65
|
+
address: T.value
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
return (r, i) => (D(), b(O(n), E(O(m), {
|
|
70
|
+
"submit-disabled": t.submitDisabled || O(M),
|
|
71
|
+
onSubmit: Q
|
|
72
|
+
}), {
|
|
73
|
+
default: A(() => [
|
|
74
|
+
S(O(e), {
|
|
75
|
+
span: "3",
|
|
76
|
+
md: "6"
|
|
77
|
+
}, {
|
|
78
|
+
default: A(() => [S(O(u), {
|
|
79
|
+
"resolved-address": O(T),
|
|
80
|
+
"onUpdate:resolvedAddress": i[0] ||= (e) => w(T) ? T.value = e : null,
|
|
81
|
+
"addition-options": O(j)
|
|
82
|
+
}, null, 8, ["resolved-address", "addition-options"])]),
|
|
83
|
+
_: 1
|
|
84
|
+
}),
|
|
85
|
+
S(O(e), {
|
|
86
|
+
span: "3",
|
|
87
|
+
md: "6"
|
|
88
|
+
}, {
|
|
89
|
+
default: A(() => [S(O(l), E({
|
|
90
|
+
modelValue: O(z),
|
|
91
|
+
"onUpdate:modelValue": i[1] ||= (e) => w(z) ? z.value = e : null,
|
|
92
|
+
legend: "Jouw woning is...",
|
|
93
|
+
name: "ownedBuilding",
|
|
94
|
+
options: O(v),
|
|
95
|
+
variant: "boxed",
|
|
96
|
+
required: !1,
|
|
97
|
+
"error-message": O(V)
|
|
98
|
+
}, O(B)), null, 16, [
|
|
99
|
+
"modelValue",
|
|
100
|
+
"options",
|
|
101
|
+
"error-message"
|
|
102
|
+
])]),
|
|
103
|
+
_: 1
|
|
104
|
+
}),
|
|
105
|
+
S(O(e), {
|
|
106
|
+
span: "2",
|
|
107
|
+
md: "6"
|
|
108
|
+
}, {
|
|
109
|
+
default: A(() => [S(O(f), E({
|
|
110
|
+
modelValue: O(H),
|
|
111
|
+
"onUpdate:modelValue": i[2] ||= (e) => w(H) ? H.value = e : null,
|
|
112
|
+
"error-message": O(W)
|
|
113
|
+
}, O(U)), null, 16, ["modelValue", "error-message"])]),
|
|
114
|
+
_: 1
|
|
115
|
+
}),
|
|
116
|
+
S(O(e), {
|
|
117
|
+
span: "2",
|
|
118
|
+
md: "6"
|
|
119
|
+
}, {
|
|
120
|
+
default: A(() => [S(O(h), E({
|
|
121
|
+
modelValue: O(G),
|
|
122
|
+
"onUpdate:modelValue": i[3] ||= (e) => w(G) ? G.value = e : null,
|
|
123
|
+
"error-message": O(q)
|
|
124
|
+
}, O(K)), null, 16, ["modelValue", "error-message"])]),
|
|
125
|
+
_: 1
|
|
126
|
+
}),
|
|
127
|
+
Z.value ? (D(), b(O(e), {
|
|
128
|
+
key: 0,
|
|
129
|
+
span: "2",
|
|
130
|
+
md: "6"
|
|
131
|
+
}, {
|
|
132
|
+
default: A(() => [S(O(c), E({
|
|
133
|
+
modelValue: O(J),
|
|
134
|
+
"onUpdate:modelValue": i[4] ||= (e) => w(J) ? J.value = e : null,
|
|
135
|
+
label: "Aantal kinderen",
|
|
136
|
+
placeholder: "Maak een keuze",
|
|
137
|
+
options: O(F),
|
|
138
|
+
name: "familySize",
|
|
139
|
+
required: !1,
|
|
140
|
+
"error-message": O(X)
|
|
141
|
+
}, O(Y)), null, 16, [
|
|
142
|
+
"modelValue",
|
|
143
|
+
"options",
|
|
144
|
+
"error-message"
|
|
145
|
+
])]),
|
|
146
|
+
_: 1
|
|
147
|
+
})) : x("", !0)
|
|
148
|
+
]),
|
|
149
|
+
_: 1
|
|
150
|
+
}, 16, ["submit-disabled"]));
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
//#endregion
|
|
154
|
+
//#region src/comparisons/legal/legal.presenter.ts
|
|
155
|
+
function L(e) {
|
|
156
|
+
return {
|
|
157
|
+
comparison: a.LegalAssistance,
|
|
158
|
+
detail: { comparison: {
|
|
159
|
+
familySize: e.familyComposition === N ? e.familySize : "",
|
|
160
|
+
deductables: 300,
|
|
161
|
+
ownedBuilding: e.ownedBuilding
|
|
162
|
+
} },
|
|
163
|
+
user: {
|
|
164
|
+
zipCode: e.address.zipCode,
|
|
165
|
+
houseNumber: e.address.houseNumber,
|
|
166
|
+
houseNumberAddition: e.address.houseNumberAddition,
|
|
167
|
+
birthdate: e.birthdate,
|
|
168
|
+
street: e.address.street,
|
|
169
|
+
city: e.address.city,
|
|
170
|
+
familyComposition: e.familyComposition
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
//#endregion
|
|
175
|
+
export { I as n, L as t };
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { i as e, o as t, r as n, s as r, t as i, u as a } from "./useValidator-B8ZuqyvJ.js";
|
|
2
|
+
import { t as o } from "./familyComposition.enum-D26VYo_a.js";
|
|
3
|
+
import { n as s, t as c } from "./useAddress-C-h1pGI5.js";
|
|
4
|
+
import { a as l, t as u } from "./birthdate.schema-DX1aYftY.js";
|
|
5
|
+
import { n as d, r as f } from "./familyComposition.schema-A9W0CwZq.js";
|
|
6
|
+
import { createBlock as p, createVNode as m, defineComponent as h, isRef as g, mergeDefaults as _, mergeProps as v, openBlock as y, unref as b, withCtx as x } from "vue";
|
|
7
|
+
import { object as S } from "yup";
|
|
8
|
+
//#region src/comparisons/liability/liability.schema.ts
|
|
9
|
+
var C = (e) => S({
|
|
10
|
+
address: e,
|
|
11
|
+
birthdate: u(),
|
|
12
|
+
familyComposition: d
|
|
13
|
+
}), w = /* @__PURE__ */ h({
|
|
14
|
+
__name: "LiabilityForm",
|
|
15
|
+
props: /*@__PURE__*/ _({
|
|
16
|
+
initialData: {},
|
|
17
|
+
title: {},
|
|
18
|
+
description: {},
|
|
19
|
+
banner: {},
|
|
20
|
+
layout: {},
|
|
21
|
+
card: { type: Boolean },
|
|
22
|
+
flat: { type: Boolean },
|
|
23
|
+
fullWidth: { type: Boolean },
|
|
24
|
+
submitLabel: {},
|
|
25
|
+
submitDisabled: { type: Boolean }
|
|
26
|
+
}, {
|
|
27
|
+
...t,
|
|
28
|
+
title: "Aansprakelijkheidsverzekering vergelijken"
|
|
29
|
+
}),
|
|
30
|
+
emits: ["submitted"],
|
|
31
|
+
setup(t, { emit: a }) {
|
|
32
|
+
let u = t, d = r(u), h = a, { addressSchema: _, draft: S, resolvedAddress: w, additionOptions: T } = c({ initial: u.initialData?.address }), { isSubmitting: E, handleSubmit: D, defineField: O } = i(C(_), {
|
|
33
|
+
birthdate: u.initialData?.birthdate ?? "",
|
|
34
|
+
familyComposition: u.initialData?.familyComposition ?? o.SingleWithoutChildren,
|
|
35
|
+
address: S
|
|
36
|
+
}), [k, A, j] = O("birthdate"), [M, N, P] = O("familyComposition", { validateAt: "change" });
|
|
37
|
+
function F() {
|
|
38
|
+
D(({ birthdate: e, familyComposition: t }) => {
|
|
39
|
+
h("submitted", {
|
|
40
|
+
birthdate: e,
|
|
41
|
+
familyComposition: t,
|
|
42
|
+
address: w.value
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
return (r, i) => (y(), p(b(n), v(b(d), {
|
|
47
|
+
"submit-disabled": t.submitDisabled || b(E),
|
|
48
|
+
onSubmit: F
|
|
49
|
+
}), {
|
|
50
|
+
default: x(() => [
|
|
51
|
+
m(b(e), {
|
|
52
|
+
span: "5",
|
|
53
|
+
md: "6"
|
|
54
|
+
}, {
|
|
55
|
+
default: x(() => [m(b(s), {
|
|
56
|
+
"resolved-address": b(w),
|
|
57
|
+
"onUpdate:resolvedAddress": i[0] ||= (e) => g(w) ? w.value = e : null,
|
|
58
|
+
"addition-options": b(T)
|
|
59
|
+
}, null, 8, ["resolved-address", "addition-options"])]),
|
|
60
|
+
_: 1
|
|
61
|
+
}),
|
|
62
|
+
m(b(e), {
|
|
63
|
+
span: "2",
|
|
64
|
+
md: "6"
|
|
65
|
+
}, {
|
|
66
|
+
default: x(() => [m(b(l), v({
|
|
67
|
+
modelValue: b(k),
|
|
68
|
+
"onUpdate:modelValue": i[1] ||= (e) => g(k) ? k.value = e : null,
|
|
69
|
+
"error-message": b(j)
|
|
70
|
+
}, b(A)), null, 16, ["modelValue", "error-message"])]),
|
|
71
|
+
_: 1
|
|
72
|
+
}),
|
|
73
|
+
m(b(e), {
|
|
74
|
+
span: "3",
|
|
75
|
+
md: "6"
|
|
76
|
+
}, {
|
|
77
|
+
default: x(() => [m(b(f), v({
|
|
78
|
+
modelValue: b(M),
|
|
79
|
+
"onUpdate:modelValue": i[2] ||= (e) => g(M) ? M.value = e : null,
|
|
80
|
+
"error-message": b(P)
|
|
81
|
+
}, b(N)), null, 16, ["modelValue", "error-message"])]),
|
|
82
|
+
_: 1
|
|
83
|
+
})
|
|
84
|
+
]),
|
|
85
|
+
_: 1
|
|
86
|
+
}, 16, ["submit-disabled"]));
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
//#endregion
|
|
90
|
+
//#region src/comparisons/liability/liability.presenter.ts
|
|
91
|
+
function T(e) {
|
|
92
|
+
return {
|
|
93
|
+
comparison: a.Liability,
|
|
94
|
+
detail: { liability: {
|
|
95
|
+
Amount: 15e5,
|
|
96
|
+
Deductables: 100
|
|
97
|
+
} },
|
|
98
|
+
user: {
|
|
99
|
+
zipCode: e.address.zipCode,
|
|
100
|
+
houseNumber: e.address.houseNumber,
|
|
101
|
+
houseNumberAddition: e.address.houseNumberAddition,
|
|
102
|
+
birthdate: e.birthdate,
|
|
103
|
+
street: e.address.street,
|
|
104
|
+
city: e.address.city,
|
|
105
|
+
familyComposition: e.familyComposition
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
//#endregion
|
|
110
|
+
export { w as n, T as t };
|