@vergelijkdirect/comparison-forms 2.0.0-rc.13 → 2.0.0-rc.14
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/wc-forms/VdInput-PLH7DZsc.js +331 -0
- package/dist/wc-forms/VdPopover-CcRVedXS.js +285 -0
- package/dist/wc-forms/VdRadioGroup-BsMaGEuY.js +166 -0
- package/dist/wc-forms/VdSearchableSelect-CY7qBcIO.js +4516 -0
- package/dist/wc-forms/VdSelect-BPB3Jh_f.js +108 -0
- package/dist/wc-forms/bike.js +1647 -0
- package/dist/wc-forms/birthdate.schema-DGsq2GQR.js +89 -0
- package/dist/wc-forms/business-car.js +109 -0
- package/dist/wc-forms/business-liability.js +71 -0
- package/dist/wc-forms/car.js +112 -0
- package/dist/wc-forms/caravan.js +144 -0
- package/dist/wc-forms/company.schema-CUG4hnMP.js +239 -0
- package/dist/wc-forms/date.util-D9xNHiuY.js +474 -0
- package/dist/wc-forms/familyComposition.schema-fY4w6P1J.js +74 -0
- package/dist/wc-forms/floating-ui.dom-B6uyM6oK.js +856 -0
- package/dist/wc-forms/house.js +101 -0
- package/dist/wc-forms/houseOwnedBuilding.model-CPULUrWv.js +14 -0
- package/dist/wc-forms/legal.js +153 -0
- package/dist/wc-forms/liability.js +89 -0
- package/dist/wc-forms/loan.js +173 -0
- package/dist/wc-forms/messages-kbFdNTrA.js +40 -0
- package/dist/wc-forms/moped.js +115 -0
- package/dist/wc-forms/motor.js +112 -0
- package/dist/wc-forms/package.js +119 -0
- package/dist/wc-forms/pet.js +158 -0
- package/dist/wc-forms/rolldown-runtime-Dqa2HsxW.js +20 -0
- package/dist/wc-forms/rules-Cj1sWDmF.js +13 -0
- package/dist/wc-forms/services-CG6XsnRT.js +16 -0
- package/dist/wc-forms/travel.js +99 -0
- package/dist/wc-forms/useAddress-LSZ7sQk9.js +243 -0
- package/dist/wc-forms/useLicensePlate-KLwykzxF.js +187 -0
- package/dist/wc-forms/useValidator-DdXn8soU.js +7197 -0
- package/dist/wc-forms/yesNo-BvJlCm7Y.js +6 -0
- package/package.json +7 -4
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { Dn as e, Sr as t, Un as n, c as r, d as i, dt as a, in as o, kn as s, nn as c, qt as l, r as u, ri as d, s as f, t as p, u as m, zr as h } from "./useValidator-DdXn8soU.js";
|
|
2
|
+
import { t as g } from "./VdPopover-CcRVedXS.js";
|
|
3
|
+
import { n as _, t as v } from "./useAddress-LSZ7sQk9.js";
|
|
4
|
+
import { a as y, t as b } from "./birthdate.schema-DGsq2GQR.js";
|
|
5
|
+
import { n as x, r as S, t as C } from "./useLicensePlate-KLwykzxF.js";
|
|
6
|
+
//#region src/comparisons/motor/motor.schema.ts
|
|
7
|
+
var w = (e, t) => u({
|
|
8
|
+
licensePlate: e,
|
|
9
|
+
address: t,
|
|
10
|
+
birthdate: b()
|
|
11
|
+
}), T = /* @__PURE__ */ o({
|
|
12
|
+
__name: "MotorForm",
|
|
13
|
+
props: /*@__PURE__*/ e({
|
|
14
|
+
initialData: {},
|
|
15
|
+
title: {},
|
|
16
|
+
description: {},
|
|
17
|
+
banner: {},
|
|
18
|
+
layout: {},
|
|
19
|
+
card: { type: Boolean },
|
|
20
|
+
flat: { type: Boolean },
|
|
21
|
+
fullWidth: { type: Boolean },
|
|
22
|
+
submitLabel: {},
|
|
23
|
+
submitDisabled: { type: Boolean }
|
|
24
|
+
}, {
|
|
25
|
+
...m,
|
|
26
|
+
title: "Motorverzekering vergelijken"
|
|
27
|
+
}),
|
|
28
|
+
emits: ["submit"],
|
|
29
|
+
setup(e, { emit: a }) {
|
|
30
|
+
let o = e, u = i(o), m = a, { addressSchema: b, draft: T, resolvedAddress: E, additionOptions: D } = v({ initial: o.initialData?.address }), { vehicleData: O, licensePlateSchema: k } = C(S.Motor, { initialData: o.initialData?.vehicle ?? void 0 }), { isSubmitting: A, handleSubmit: j, defineField: M } = p(w(k, b), {
|
|
31
|
+
licensePlate: o.initialData?.licensePlate ?? "",
|
|
32
|
+
birthdate: o.initialData?.birthdate ?? "",
|
|
33
|
+
address: T
|
|
34
|
+
}), [N, P, F, I] = M("licensePlate"), [L, R, z] = M("birthdate");
|
|
35
|
+
function B() {
|
|
36
|
+
j(({ licensePlate: e, birthdate: t }) => {
|
|
37
|
+
m("submit", {
|
|
38
|
+
licensePlate: e,
|
|
39
|
+
birthdate: t,
|
|
40
|
+
address: E.value,
|
|
41
|
+
vehicle: O.value
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
return (i, a) => (n(), l(d(f), s(d(u), {
|
|
46
|
+
"submit-disabled": e.submitDisabled || d(A),
|
|
47
|
+
onSubmit: B
|
|
48
|
+
}), {
|
|
49
|
+
default: t(() => [
|
|
50
|
+
c(d(r), {
|
|
51
|
+
span: "3",
|
|
52
|
+
md: "6"
|
|
53
|
+
}, {
|
|
54
|
+
default: t(() => [c(d(x), s({
|
|
55
|
+
modelValue: d(N),
|
|
56
|
+
"onUpdate:modelValue": a[0] ||= (e) => h(N) ? N.value = e : null,
|
|
57
|
+
"vehicle-data": d(O),
|
|
58
|
+
"onUpdate:vehicleData": a[1] ||= (e) => h(O) ? O.value = e : null,
|
|
59
|
+
name: "licensePlate",
|
|
60
|
+
"error-message": d(F),
|
|
61
|
+
loading: d(I).isValidating
|
|
62
|
+
}, d(P)), {
|
|
63
|
+
popover: t(() => [c(d(g), {
|
|
64
|
+
"ref-variant": "blue-icon",
|
|
65
|
+
"tooltip-variant": "blue",
|
|
66
|
+
"tooltip-size": "small",
|
|
67
|
+
content: {
|
|
68
|
+
title: "Kentekengegevens",
|
|
69
|
+
description: "Op basis van je kenteken halen we automatisch de technische gegevens van je motor op voor een exacte premieberekening."
|
|
70
|
+
}
|
|
71
|
+
})]),
|
|
72
|
+
_: 1
|
|
73
|
+
}, 16, [
|
|
74
|
+
"modelValue",
|
|
75
|
+
"vehicle-data",
|
|
76
|
+
"error-message",
|
|
77
|
+
"loading"
|
|
78
|
+
])]),
|
|
79
|
+
_: 1
|
|
80
|
+
}),
|
|
81
|
+
c(d(r), {
|
|
82
|
+
span: "4",
|
|
83
|
+
md: "6"
|
|
84
|
+
}, {
|
|
85
|
+
default: t(() => [c(d(_), {
|
|
86
|
+
"resolved-address": d(E),
|
|
87
|
+
"onUpdate:resolvedAddress": a[2] ||= (e) => h(E) ? E.value = e : null,
|
|
88
|
+
"addition-options": d(D)
|
|
89
|
+
}, null, 8, ["resolved-address", "addition-options"])]),
|
|
90
|
+
_: 1
|
|
91
|
+
}),
|
|
92
|
+
c(d(r), {
|
|
93
|
+
span: "3",
|
|
94
|
+
md: "6"
|
|
95
|
+
}, {
|
|
96
|
+
default: t(() => [c(d(y), s({
|
|
97
|
+
modelValue: d(L),
|
|
98
|
+
"onUpdate:modelValue": a[3] ||= (e) => h(L) ? L.value = e : null,
|
|
99
|
+
label: "Geboortedatum hoofdbestuurder",
|
|
100
|
+
"error-message": d(z)
|
|
101
|
+
}, d(R)), null, 16, ["modelValue", "error-message"])]),
|
|
102
|
+
_: 1
|
|
103
|
+
})
|
|
104
|
+
]),
|
|
105
|
+
_: 1
|
|
106
|
+
}, 16, ["submit-disabled"]));
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
//#endregion
|
|
110
|
+
//#region src/entries/wc-forms/motor.ts
|
|
111
|
+
customElements.define("vd-motor-form", a(T, { shadowRoot: !1 }));
|
|
112
|
+
//#endregion
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { Dn as e, Gt as t, Jt as n, Sr as r, Un as i, _r as a, a as o, c as s, d as c, dt as l, in as u, kn as d, nn as f, qt as p, r as m, ri as h, s as g, t as _, u as v, zr as y } from "./useValidator-DdXn8soU.js";
|
|
2
|
+
import { n as b, t as x } from "./useAddress-LSZ7sQk9.js";
|
|
3
|
+
import { a as S, t as C } from "./birthdate.schema-DGsq2GQR.js";
|
|
4
|
+
import { i as w, n as T, r as E } from "./familyComposition.schema-fY4w6P1J.js";
|
|
5
|
+
//#region src/utils/familyComposition.util.ts
|
|
6
|
+
var D = [w.FamilyWithChildren, w.FamilyWithoutChildren];
|
|
7
|
+
function O(e) {
|
|
8
|
+
return D.includes(e);
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/comparisons/package/package.schema.ts
|
|
12
|
+
var k = (e) => m({
|
|
13
|
+
address: e,
|
|
14
|
+
birthdate: C(),
|
|
15
|
+
familyComposition: T,
|
|
16
|
+
partnerBirthdate: o().defined().when("familyComposition", {
|
|
17
|
+
is: O,
|
|
18
|
+
then: () => C()
|
|
19
|
+
})
|
|
20
|
+
}), A = /* @__PURE__ */ u({
|
|
21
|
+
__name: "PackageForm",
|
|
22
|
+
props: /*@__PURE__*/ e({
|
|
23
|
+
initialData: {},
|
|
24
|
+
title: {},
|
|
25
|
+
description: {},
|
|
26
|
+
banner: {},
|
|
27
|
+
layout: {},
|
|
28
|
+
card: { type: Boolean },
|
|
29
|
+
flat: { type: Boolean },
|
|
30
|
+
fullWidth: { type: Boolean },
|
|
31
|
+
submitLabel: {},
|
|
32
|
+
submitDisabled: { type: Boolean }
|
|
33
|
+
}, {
|
|
34
|
+
...v,
|
|
35
|
+
title: "Combineer al je verzekeringen in 1 verzekeringspakket"
|
|
36
|
+
}),
|
|
37
|
+
emits: ["submit"],
|
|
38
|
+
setup(e, { emit: o }) {
|
|
39
|
+
let l = e, u = c(l), m = o, { addressSchema: v, draft: C, resolvedAddress: T, additionOptions: D } = x({ initial: l.initialData?.address }), { isSubmitting: A, handleSubmit: j, defineField: M, resetField: N } = _(k(v), {
|
|
40
|
+
birthdate: l.initialData?.birthdate ?? "",
|
|
41
|
+
familyComposition: l.initialData?.familyComposition ?? w.SingleWithoutChildren,
|
|
42
|
+
partnerBirthdate: l.initialData?.partnerBirthdate ?? "",
|
|
43
|
+
address: C
|
|
44
|
+
}), [P, F, I] = M("birthdate"), [L, R, z] = M("familyComposition", { validateAt: "change" }), [B, V, H] = M("partnerBirthdate"), U = t(() => O(L.value));
|
|
45
|
+
a(L, (e) => {
|
|
46
|
+
O(e) || N("partnerBirthdate", { value: "" });
|
|
47
|
+
}, { immediate: !0 });
|
|
48
|
+
function W() {
|
|
49
|
+
j(({ birthdate: e, familyComposition: t, partnerBirthdate: n }) => {
|
|
50
|
+
m("submit", {
|
|
51
|
+
birthdate: e,
|
|
52
|
+
familyComposition: t,
|
|
53
|
+
partnerBirthdate: n,
|
|
54
|
+
address: T.value
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
return (t, a) => (i(), p(h(g), d(h(u), {
|
|
59
|
+
"submit-disabled": e.submitDisabled || h(A),
|
|
60
|
+
onSubmit: W
|
|
61
|
+
}), {
|
|
62
|
+
default: r(() => [
|
|
63
|
+
f(h(s), {
|
|
64
|
+
span: "4",
|
|
65
|
+
md: "6"
|
|
66
|
+
}, {
|
|
67
|
+
default: r(() => [f(h(b), {
|
|
68
|
+
"resolved-address": h(T),
|
|
69
|
+
"onUpdate:resolvedAddress": a[0] ||= (e) => y(T) ? T.value = e : null,
|
|
70
|
+
"addition-options": h(D)
|
|
71
|
+
}, null, 8, ["resolved-address", "addition-options"])]),
|
|
72
|
+
_: 1
|
|
73
|
+
}),
|
|
74
|
+
f(h(s), {
|
|
75
|
+
span: U.value ? 2 : 3,
|
|
76
|
+
md: "6"
|
|
77
|
+
}, {
|
|
78
|
+
default: r(() => [f(h(S), d({
|
|
79
|
+
modelValue: h(P),
|
|
80
|
+
"onUpdate:modelValue": a[1] ||= (e) => y(P) ? P.value = e : null,
|
|
81
|
+
label: "Geboortedatum",
|
|
82
|
+
"error-message": h(I)
|
|
83
|
+
}, h(F)), null, 16, ["modelValue", "error-message"])]),
|
|
84
|
+
_: 1
|
|
85
|
+
}, 8, ["span"]),
|
|
86
|
+
f(h(s), {
|
|
87
|
+
span: U.value ? 2 : 3,
|
|
88
|
+
md: "6"
|
|
89
|
+
}, {
|
|
90
|
+
default: r(() => [f(h(E), d({
|
|
91
|
+
modelValue: h(L),
|
|
92
|
+
"onUpdate:modelValue": a[2] ||= (e) => y(L) ? L.value = e : null,
|
|
93
|
+
"error-message": h(z)
|
|
94
|
+
}, h(R)), null, 16, ["modelValue", "error-message"])]),
|
|
95
|
+
_: 1
|
|
96
|
+
}, 8, ["span"]),
|
|
97
|
+
U.value ? (i(), p(h(s), {
|
|
98
|
+
key: 0,
|
|
99
|
+
span: "2",
|
|
100
|
+
md: "6"
|
|
101
|
+
}, {
|
|
102
|
+
default: r(() => [f(h(S), d({
|
|
103
|
+
modelValue: h(B),
|
|
104
|
+
"onUpdate:modelValue": a[3] ||= (e) => y(B) ? B.value = e : null,
|
|
105
|
+
label: "Geboortedatum partner",
|
|
106
|
+
name: "partnerBirthdate",
|
|
107
|
+
"error-message": h(H)
|
|
108
|
+
}, h(V)), null, 16, ["modelValue", "error-message"])]),
|
|
109
|
+
_: 1
|
|
110
|
+
})) : n("", !0)
|
|
111
|
+
]),
|
|
112
|
+
_: 1
|
|
113
|
+
}, 16, ["submit-disabled"]));
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
//#endregion
|
|
117
|
+
//#region src/entries/wc-forms/package.ts
|
|
118
|
+
customElements.define("vd-package-form", l(A, { shadowRoot: !1 }));
|
|
119
|
+
//#endregion
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { Dn as e, Sr as t, Un as n, a as r, c as i, d as a, dt as o, in as s, kn as c, nn as l, qt as u, r as d, ri as f, s as p, t as m, u as h, zr as g } from "./useValidator-DdXn8soU.js";
|
|
2
|
+
import { t as _ } from "./VdInput-PLH7DZsc.js";
|
|
3
|
+
import { t as v } from "./VdSelect-BPB3Jh_f.js";
|
|
4
|
+
import { t as y } from "./VdPopover-CcRVedXS.js";
|
|
5
|
+
import { a as b, i as x, n as S, r as C } from "./birthdate.schema-DGsq2GQR.js";
|
|
6
|
+
import { t as w } from "./messages-kbFdNTrA.js";
|
|
7
|
+
//#region src/comparisons/pet/constants.ts
|
|
8
|
+
var T = {
|
|
9
|
+
min: 0,
|
|
10
|
+
max: 99
|
|
11
|
+
}, E = d({
|
|
12
|
+
kind: r().required(w.pet.kindRequired),
|
|
13
|
+
age: r().required(w.birthdate.required).test("date_format", w.birthdate.dateFormat, S).test(C({
|
|
14
|
+
min: {
|
|
15
|
+
value: 7,
|
|
16
|
+
unit: "week"
|
|
17
|
+
},
|
|
18
|
+
max: {
|
|
19
|
+
value: T.max,
|
|
20
|
+
unit: "year"
|
|
21
|
+
}
|
|
22
|
+
}, {
|
|
23
|
+
future: () => w.birthdate.tooYoung(T.min),
|
|
24
|
+
tooYoung: ({ earliest: e, latest: t }) => w.pet.outOfRange(e.format(x), t.format(x)),
|
|
25
|
+
tooOld: () => w.birthdate.tooOld(T.max)
|
|
26
|
+
}, "birthdate_range")),
|
|
27
|
+
zipcode: r().required(w.pet.zipcodeRequired).matches(/^\d{4}\s?[a-zA-Z]{2}$/, w.pet.zipcodeInvalid)
|
|
28
|
+
}), D = [
|
|
29
|
+
{
|
|
30
|
+
title: "Hond",
|
|
31
|
+
value: "dog"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
title: "Kat",
|
|
35
|
+
value: "cat"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
title: "Konijn",
|
|
39
|
+
value: "rabbit"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
title: "Vogel",
|
|
43
|
+
value: "bird"
|
|
44
|
+
}
|
|
45
|
+
], O = /* @__PURE__ */ s({
|
|
46
|
+
__name: "PetForm",
|
|
47
|
+
props: /*@__PURE__*/ e({
|
|
48
|
+
initialData: {},
|
|
49
|
+
title: {},
|
|
50
|
+
description: {},
|
|
51
|
+
banner: {},
|
|
52
|
+
layout: {},
|
|
53
|
+
card: { type: Boolean },
|
|
54
|
+
flat: { type: Boolean },
|
|
55
|
+
fullWidth: { type: Boolean },
|
|
56
|
+
submitLabel: {},
|
|
57
|
+
submitDisabled: { type: Boolean }
|
|
58
|
+
}, {
|
|
59
|
+
...h,
|
|
60
|
+
title: "Dierenverzekering vergelijken"
|
|
61
|
+
}),
|
|
62
|
+
emits: ["submit"],
|
|
63
|
+
setup(e, { emit: r }) {
|
|
64
|
+
let o = e, s = a(o), d = r, { isSubmitting: h, handleSubmit: x, defineField: S } = m(E, {
|
|
65
|
+
kind: o.initialData?.kind ?? "dog",
|
|
66
|
+
age: o.initialData?.age ?? "",
|
|
67
|
+
zipcode: o.initialData?.zipcode ?? ""
|
|
68
|
+
}), [C, w, T] = S("kind", { validateAt: "change" }), [O, k, A] = S("age"), [j, M, N] = S("zipcode");
|
|
69
|
+
function P() {
|
|
70
|
+
x((e) => {
|
|
71
|
+
d("submit", { ...e });
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
return (r, a) => (n(), u(f(p), c(f(s), {
|
|
75
|
+
"submit-disabled": e.submitDisabled || f(h),
|
|
76
|
+
onSubmit: P
|
|
77
|
+
}), {
|
|
78
|
+
default: t(() => [
|
|
79
|
+
l(f(i), {
|
|
80
|
+
span: "4",
|
|
81
|
+
md: "6"
|
|
82
|
+
}, {
|
|
83
|
+
default: t(() => [l(f(v), c({
|
|
84
|
+
modelValue: f(C),
|
|
85
|
+
"onUpdate:modelValue": a[0] ||= (e) => g(C) ? C.value = e : null,
|
|
86
|
+
label: "Wat voor huisdier wil je verzekeren?",
|
|
87
|
+
placeholder: "",
|
|
88
|
+
options: f(D),
|
|
89
|
+
name: "kind",
|
|
90
|
+
required: !1,
|
|
91
|
+
"error-message": f(T)
|
|
92
|
+
}, f(w)), null, 16, [
|
|
93
|
+
"modelValue",
|
|
94
|
+
"options",
|
|
95
|
+
"error-message"
|
|
96
|
+
])]),
|
|
97
|
+
_: 1
|
|
98
|
+
}),
|
|
99
|
+
l(f(i), {
|
|
100
|
+
span: "4",
|
|
101
|
+
md: "6"
|
|
102
|
+
}, {
|
|
103
|
+
default: t(() => [l(f(b), c({
|
|
104
|
+
modelValue: f(O),
|
|
105
|
+
"onUpdate:modelValue": a[1] ||= (e) => g(O) ? O.value = e : null,
|
|
106
|
+
label: "Geboortedatum huisdier",
|
|
107
|
+
"error-message": f(A)
|
|
108
|
+
}, f(k)), {
|
|
109
|
+
popover: t(() => [l(f(y), {
|
|
110
|
+
"ref-variant": "blue-icon",
|
|
111
|
+
"tooltip-variant": "blue",
|
|
112
|
+
"tooltip-size": "small",
|
|
113
|
+
content: {
|
|
114
|
+
title: "Waarom de geboortedatum?",
|
|
115
|
+
description: "De leeftijd van je huisdier is cruciaal voor de premieberekening. Oudere dieren hebben vaak hogere premies vanwege verhoogde gezondheidsrisico's. Als je de exacte datum niet weet, gebruik dan een schatting."
|
|
116
|
+
}
|
|
117
|
+
})]),
|
|
118
|
+
_: 1
|
|
119
|
+
}, 16, ["modelValue", "error-message"])]),
|
|
120
|
+
_: 1
|
|
121
|
+
}),
|
|
122
|
+
l(f(i), {
|
|
123
|
+
span: "2",
|
|
124
|
+
md: "6"
|
|
125
|
+
}, {
|
|
126
|
+
default: t(() => [l(f(_), c({
|
|
127
|
+
modelValue: f(j),
|
|
128
|
+
"onUpdate:modelValue": a[2] ||= (e) => g(j) ? j.value = e : null,
|
|
129
|
+
label: "Postcode",
|
|
130
|
+
placeholder: "bv. 1234 AZ",
|
|
131
|
+
name: "zipcode",
|
|
132
|
+
mask: "####@@",
|
|
133
|
+
capitalize: "",
|
|
134
|
+
required: !1,
|
|
135
|
+
"error-message": f(N)
|
|
136
|
+
}, f(M)), {
|
|
137
|
+
popover: t(() => [l(f(y), {
|
|
138
|
+
"ref-variant": "blue-icon",
|
|
139
|
+
"tooltip-variant": "blue",
|
|
140
|
+
"tooltip-size": "small",
|
|
141
|
+
content: {
|
|
142
|
+
title: "Waarom je postcode?",
|
|
143
|
+
description: "Je postcode helpt ons om de juiste premie voor jouw huisdier te berekenen, omdat sommige verzekeraars hun tarieven op basis van je woonlocatie bepalen."
|
|
144
|
+
}
|
|
145
|
+
})]),
|
|
146
|
+
_: 1
|
|
147
|
+
}, 16, ["modelValue", "error-message"])]),
|
|
148
|
+
_: 1
|
|
149
|
+
})
|
|
150
|
+
]),
|
|
151
|
+
_: 1
|
|
152
|
+
}, 16, ["submit-disabled"]));
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
//#endregion
|
|
156
|
+
//#region src/entries/wc-forms/pet.ts
|
|
157
|
+
customElements.define("vd-pet-form", o(O, { shadowRoot: !1 }));
|
|
158
|
+
//#endregion
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), s = (e, n) => {
|
|
3
|
+
let r = {};
|
|
4
|
+
for (var i in e) t(r, i, {
|
|
5
|
+
get: e[i],
|
|
6
|
+
enumerable: !0
|
|
7
|
+
});
|
|
8
|
+
return n || t(r, Symbol.toStringTag, { value: "Module" }), r;
|
|
9
|
+
}, c = (e, i, o, s) => {
|
|
10
|
+
if (i && typeof i == "object" || typeof i == "function") for (var c = r(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !a.call(e, d) && d !== o && t(e, d, {
|
|
11
|
+
get: ((e) => i[e]).bind(null, d),
|
|
12
|
+
enumerable: !(s = n(i, d)) || s.enumerable
|
|
13
|
+
});
|
|
14
|
+
return e;
|
|
15
|
+
}, l = (n, r, a) => (a = n == null ? {} : e(i(n)), c(r || !n || !n.__esModule ? t(a, "default", {
|
|
16
|
+
value: n,
|
|
17
|
+
enumerable: !0
|
|
18
|
+
}) : a, n));
|
|
19
|
+
//#endregion
|
|
20
|
+
export { s as n, l as r, o as t };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { a as e, i as t } from "./useValidator-DdXn8soU.js";
|
|
2
|
+
//#region src/schemas/rules.ts
|
|
3
|
+
function n(t, n) {
|
|
4
|
+
return e().required(n).oneOf(t, n);
|
|
5
|
+
}
|
|
6
|
+
function r(t) {
|
|
7
|
+
return e().required(t);
|
|
8
|
+
}
|
|
9
|
+
function i(e) {
|
|
10
|
+
return t().typeError(e).required(e);
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
export { n, r, i as t };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ComparisonService as e, DataService as t, DataValidationService as n, HomeService as r } from "@vergelijkdirect/insurance-transmission-client";
|
|
2
|
+
//#region src/data/services.ts
|
|
3
|
+
var i;
|
|
4
|
+
function a() {
|
|
5
|
+
return {
|
|
6
|
+
dataService: new t(),
|
|
7
|
+
dataValidationService: new n(),
|
|
8
|
+
homeService: new r(),
|
|
9
|
+
comparisonService: new e()
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
function o() {
|
|
13
|
+
return i ||= a(), i;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { o as t };
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { Dn as e, Sr as t, Un as n, c as r, d as i, dt as a, in as o, kn as s, nn as c, qt as l, r as u, ri as d, s as f, t as p, u as m, zr as h } from "./useValidator-DdXn8soU.js";
|
|
2
|
+
import { t as g } from "./VdRadioGroup-BsMaGEuY.js";
|
|
3
|
+
import { t as _ } from "./VdPopover-CcRVedXS.js";
|
|
4
|
+
import { a as v, t as y } from "./birthdate.schema-DGsq2GQR.js";
|
|
5
|
+
import { t as b } from "./messages-kbFdNTrA.js";
|
|
6
|
+
import { n as x } from "./rules-Cj1sWDmF.js";
|
|
7
|
+
//#region src/comparisons/travel/paymentTerm.enum.ts
|
|
8
|
+
var S = /* @__PURE__ */ function(e) {
|
|
9
|
+
return e.Continuous = "L", e.ShortTerm = "S", e;
|
|
10
|
+
}({}), C = u({
|
|
11
|
+
PaymentTerm: x([S.Continuous, S.ShortTerm], b.travel.paymentTermRequired),
|
|
12
|
+
birthdate: y()
|
|
13
|
+
}), w = [{
|
|
14
|
+
value: S.Continuous,
|
|
15
|
+
label: "Doorlopend"
|
|
16
|
+
}, {
|
|
17
|
+
value: S.ShortTerm,
|
|
18
|
+
label: "Kortlopend"
|
|
19
|
+
}], T = /* @__PURE__ */ o({
|
|
20
|
+
__name: "TravelForm",
|
|
21
|
+
props: /*@__PURE__*/ e({
|
|
22
|
+
initialData: {},
|
|
23
|
+
title: {},
|
|
24
|
+
description: {},
|
|
25
|
+
banner: {},
|
|
26
|
+
layout: {},
|
|
27
|
+
card: { type: Boolean },
|
|
28
|
+
flat: { type: Boolean },
|
|
29
|
+
fullWidth: { type: Boolean },
|
|
30
|
+
submitLabel: {},
|
|
31
|
+
submitDisabled: { type: Boolean }
|
|
32
|
+
}, {
|
|
33
|
+
...m,
|
|
34
|
+
title: "Reisverzekering vergelijken"
|
|
35
|
+
}),
|
|
36
|
+
emits: ["submit"],
|
|
37
|
+
setup(e, { emit: a }) {
|
|
38
|
+
let o = e, u = i(o), m = a, { isSubmitting: y, handleSubmit: b, defineField: x } = p(C, {
|
|
39
|
+
PaymentTerm: o.initialData?.PaymentTerm ?? S.Continuous,
|
|
40
|
+
birthdate: o.initialData?.birthdate ?? ""
|
|
41
|
+
}), [T, E, D] = x("PaymentTerm", { validateAt: "change" }), [O, k, A] = x("birthdate");
|
|
42
|
+
function j() {
|
|
43
|
+
b((e) => {
|
|
44
|
+
m("submit", { ...e });
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
return (i, a) => (n(), l(d(f), s(d(u), {
|
|
48
|
+
"submit-disabled": e.submitDisabled || d(y),
|
|
49
|
+
onSubmit: j
|
|
50
|
+
}), {
|
|
51
|
+
default: t(() => [c(d(r), {
|
|
52
|
+
span: "5",
|
|
53
|
+
md: "6"
|
|
54
|
+
}, {
|
|
55
|
+
default: t(() => [c(d(g), s({
|
|
56
|
+
modelValue: d(T),
|
|
57
|
+
"onUpdate:modelValue": a[0] ||= (e) => h(T) ? T.value = e : null,
|
|
58
|
+
legend: "Kies je dekking",
|
|
59
|
+
name: "PaymentTerm",
|
|
60
|
+
options: d(w),
|
|
61
|
+
variant: "boxed",
|
|
62
|
+
required: !1,
|
|
63
|
+
"error-message": d(D)
|
|
64
|
+
}, d(E)), {
|
|
65
|
+
popover: t(() => [c(d(_), {
|
|
66
|
+
"ref-variant": "blue-icon",
|
|
67
|
+
"tooltip-variant": "blue",
|
|
68
|
+
"tooltip-size": "small",
|
|
69
|
+
content: {
|
|
70
|
+
title: "Kies je dekking",
|
|
71
|
+
description: "Doorlopend is al goedkoper wanneer je meer dan 1 keer op vakantie gaat. Ook weekendjes weg zijn meeverzekerd!"
|
|
72
|
+
}
|
|
73
|
+
})]),
|
|
74
|
+
_: 1
|
|
75
|
+
}, 16, [
|
|
76
|
+
"modelValue",
|
|
77
|
+
"options",
|
|
78
|
+
"error-message"
|
|
79
|
+
])]),
|
|
80
|
+
_: 1
|
|
81
|
+
}), c(d(r), {
|
|
82
|
+
span: "5",
|
|
83
|
+
md: "6"
|
|
84
|
+
}, {
|
|
85
|
+
default: t(() => [c(d(v), s({
|
|
86
|
+
modelValue: d(O),
|
|
87
|
+
"onUpdate:modelValue": a[1] ||= (e) => h(O) ? O.value = e : null,
|
|
88
|
+
"error-message": d(A)
|
|
89
|
+
}, d(k)), null, 16, ["modelValue", "error-message"])]),
|
|
90
|
+
_: 1
|
|
91
|
+
})]),
|
|
92
|
+
_: 1
|
|
93
|
+
}, 16, ["submit-disabled"]));
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
//#endregion
|
|
97
|
+
//#region src/entries/wc-forms/travel.ts
|
|
98
|
+
customElements.define("vd-travel-form", a(T, { shadowRoot: !1 }));
|
|
99
|
+
//#endregion
|