@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,89 @@
|
|
|
1
|
+
import "./rolldown-runtime-Dqa2HsxW.js";
|
|
2
|
+
import { $t as e, On as t, Sr as n, Un as r, Xn as i, a, fr as o, in as s, kn as c, qt as l, ri as u, ur as d } from "./useValidator-DdXn8soU.js";
|
|
3
|
+
import { t as f } from "./VdInput-PLH7DZsc.js";
|
|
4
|
+
import { i as p, r as m, t as h } from "./date.util-D9xNHiuY.js";
|
|
5
|
+
import { t as g } from "./messages-kbFdNTrA.js";
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region src/components/fields/VdBirthdateInput.vue
|
|
8
|
+
var _ = /* @__PURE__ */ s({
|
|
9
|
+
inheritAttrs: !1,
|
|
10
|
+
__name: "VdBirthdateInput",
|
|
11
|
+
props: /*@__PURE__*/ t({
|
|
12
|
+
label: { default: "Geboortedatum" },
|
|
13
|
+
placeholder: { default: "DD-MM-JJJJ" },
|
|
14
|
+
name: { default: "birthdate" },
|
|
15
|
+
mask: { default: "##-##-####" },
|
|
16
|
+
required: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: !1
|
|
19
|
+
}
|
|
20
|
+
}, {
|
|
21
|
+
modelValue: { required: !0 },
|
|
22
|
+
modelModifiers: {}
|
|
23
|
+
}),
|
|
24
|
+
emits: ["update:modelValue"],
|
|
25
|
+
setup(t) {
|
|
26
|
+
let a = o(), s = d(t, "modelValue");
|
|
27
|
+
return (o, d) => (r(), l(f, c({
|
|
28
|
+
modelValue: s.value,
|
|
29
|
+
"onUpdate:modelValue": d[0] ||= (e) => s.value = e,
|
|
30
|
+
label: t.label,
|
|
31
|
+
placeholder: t.placeholder,
|
|
32
|
+
name: t.name,
|
|
33
|
+
mask: t.mask,
|
|
34
|
+
required: t.required,
|
|
35
|
+
inputmode: "numeric"
|
|
36
|
+
}, o.$attrs), e({ _: 2 }, [u(a).popover ? {
|
|
37
|
+
name: "popover",
|
|
38
|
+
fn: n(() => [i(o.$slots, "popover")]),
|
|
39
|
+
key: "0"
|
|
40
|
+
} : void 0]), 1040, [
|
|
41
|
+
"modelValue",
|
|
42
|
+
"label",
|
|
43
|
+
"placeholder",
|
|
44
|
+
"name",
|
|
45
|
+
"mask",
|
|
46
|
+
"required"
|
|
47
|
+
]));
|
|
48
|
+
}
|
|
49
|
+
}), v = {
|
|
50
|
+
min: 18,
|
|
51
|
+
max: 99
|
|
52
|
+
}, y = "DD-MM-YYYY";
|
|
53
|
+
p();
|
|
54
|
+
function b(e, t, n = "ageRange") {
|
|
55
|
+
return {
|
|
56
|
+
name: n,
|
|
57
|
+
test(n, r) {
|
|
58
|
+
let i = m(n, y);
|
|
59
|
+
if (!i) return !0;
|
|
60
|
+
let { today: a, earliest: o, latest: s } = h(e.min, e.max), c = {
|
|
61
|
+
earliest: o,
|
|
62
|
+
latest: s
|
|
63
|
+
};
|
|
64
|
+
return t.future && i.isAfter(a, "day") ? r.createError({ message: t.future(c) }) : i.isAfter(s, "day") ? r.createError({ message: t.tooYoung(c) }) : !i.isBefore(o, "day") || r.createError({ message: t.tooOld(c) });
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
//#endregion
|
|
69
|
+
//#region src/schemas/birthdate.schema.ts
|
|
70
|
+
function x(e) {
|
|
71
|
+
return m(e, y) !== null;
|
|
72
|
+
}
|
|
73
|
+
function S(e = v) {
|
|
74
|
+
return a().required(g.birthdate.required).test("date_format", g.birthdate.dateFormat, x).test(b({
|
|
75
|
+
min: {
|
|
76
|
+
value: e.min,
|
|
77
|
+
unit: "year"
|
|
78
|
+
},
|
|
79
|
+
max: {
|
|
80
|
+
value: e.max,
|
|
81
|
+
unit: "year"
|
|
82
|
+
}
|
|
83
|
+
}, {
|
|
84
|
+
tooYoung: () => g.birthdate.tooYoung(e.min),
|
|
85
|
+
tooOld: () => g.birthdate.tooOld(e.max)
|
|
86
|
+
}));
|
|
87
|
+
}
|
|
88
|
+
//#endregion
|
|
89
|
+
export { _ as a, y as i, x as n, b as r, S as t };
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { Dn as e, Gt as t, Jt as n, Sr as r, Un as i, c as a, d as o, dt as s, in as c, kn as l, nn as u, qt as d, r as f, ri as p, s as m, t as h, u as g, zr as _ } from "./useValidator-DdXn8soU.js";
|
|
2
|
+
import { n as v, r as y, t as b } from "./company.schema-CUG4hnMP.js";
|
|
3
|
+
import { t as x } from "./VdPopover-CcRVedXS.js";
|
|
4
|
+
import { n as S, r as C, t as w } from "./useLicensePlate-KLwykzxF.js";
|
|
5
|
+
//#region src/comparisons/car-business/businessCar.schema.ts
|
|
6
|
+
var T = (e) => f({
|
|
7
|
+
licensePlate: e,
|
|
8
|
+
company: b()
|
|
9
|
+
}), E = /* @__PURE__ */ c({
|
|
10
|
+
__name: "BusinessCarForm",
|
|
11
|
+
props: /*@__PURE__*/ e({
|
|
12
|
+
initialData: {},
|
|
13
|
+
title: {},
|
|
14
|
+
description: {},
|
|
15
|
+
banner: {},
|
|
16
|
+
layout: {},
|
|
17
|
+
card: { type: Boolean },
|
|
18
|
+
flat: { type: Boolean },
|
|
19
|
+
fullWidth: { type: Boolean },
|
|
20
|
+
submitLabel: {},
|
|
21
|
+
submitDisabled: { type: Boolean }
|
|
22
|
+
}, {
|
|
23
|
+
...g,
|
|
24
|
+
title: "Zakelijke autoverzekering vergelijken"
|
|
25
|
+
}),
|
|
26
|
+
emits: ["submit"],
|
|
27
|
+
setup(e, { emit: s }) {
|
|
28
|
+
let c = e, f = o(c), g = s, { vehicleData: b, licensePlateSchema: E } = w(C.Car, { initialData: c.initialData?.vehicle ?? void 0 }), { isSubmitting: D, handleSubmit: O, defineField: k, setErrors: A, removeError: j } = h(T(E), {
|
|
29
|
+
licensePlate: c.initialData?.licensePlate ?? "",
|
|
30
|
+
company: c.initialData?.company ?? null
|
|
31
|
+
}), [M, N, P, F] = k("licensePlate"), [I, L, R] = k("company"), z = (e) => e ? A({ company: e }) : j("company"), B = t(() => !!I.value && !I.value.hasVisitingAddress);
|
|
32
|
+
function V() {
|
|
33
|
+
O(({ licensePlate: e, company: t }) => {
|
|
34
|
+
g("submit", {
|
|
35
|
+
licensePlate: e,
|
|
36
|
+
company: t,
|
|
37
|
+
vehicle: b.value
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
return (t, o) => (i(), d(p(m), l(p(f), {
|
|
42
|
+
"submit-disabled": e.submitDisabled || p(D) || B.value,
|
|
43
|
+
onSubmit: V
|
|
44
|
+
}), {
|
|
45
|
+
default: r(() => [u(p(a), {
|
|
46
|
+
span: "5",
|
|
47
|
+
md: "6"
|
|
48
|
+
}, {
|
|
49
|
+
default: r(() => [u(p(S), l({
|
|
50
|
+
modelValue: p(M),
|
|
51
|
+
"onUpdate:modelValue": o[0] ||= (e) => _(M) ? M.value = e : null,
|
|
52
|
+
"vehicle-data": p(b),
|
|
53
|
+
"onUpdate:vehicleData": o[1] ||= (e) => _(b) ? b.value = e : null,
|
|
54
|
+
name: "licensePlate",
|
|
55
|
+
"error-message": p(P),
|
|
56
|
+
loading: p(F).isValidating
|
|
57
|
+
}, p(N)), {
|
|
58
|
+
popover: r(() => [u(p(x), {
|
|
59
|
+
"ref-variant": "blue-icon",
|
|
60
|
+
"tooltip-variant": "blue",
|
|
61
|
+
"tooltip-size": "small",
|
|
62
|
+
content: {
|
|
63
|
+
title: "Kentekengegevens",
|
|
64
|
+
description: "Op basis van je kenteken halen we automatisch de technische gegevens van je auto op voor een exacte premieberekening."
|
|
65
|
+
}
|
|
66
|
+
})]),
|
|
67
|
+
_: 1
|
|
68
|
+
}, 16, [
|
|
69
|
+
"modelValue",
|
|
70
|
+
"vehicle-data",
|
|
71
|
+
"error-message",
|
|
72
|
+
"loading"
|
|
73
|
+
])]),
|
|
74
|
+
_: 1
|
|
75
|
+
}), u(p(a), {
|
|
76
|
+
span: "5",
|
|
77
|
+
md: "6"
|
|
78
|
+
}, {
|
|
79
|
+
default: r(() => [u(p(v), l({
|
|
80
|
+
modelValue: p(I),
|
|
81
|
+
"onUpdate:modelValue": o[2] ||= (e) => _(I) ? I.value = e : null,
|
|
82
|
+
name: "company",
|
|
83
|
+
"error-message": p(R)
|
|
84
|
+
}, p(L), { onError: z }), {
|
|
85
|
+
popover: r(() => [u(p(x), {
|
|
86
|
+
"ref-variant": "blue-icon",
|
|
87
|
+
"tooltip-variant": "blue",
|
|
88
|
+
"tooltip-size": "small",
|
|
89
|
+
content: {
|
|
90
|
+
title: "Bedrijfsgegevens",
|
|
91
|
+
description: "Op basis van je KvK-registratie krijgt de verzekeraar direct inzicht in je bedrijfsactiviteiten, de regio waarin je rijdt en de grootte van je team. Deze factoren bepalen samen het risicoprofiel en de hoogte van je premie."
|
|
92
|
+
}
|
|
93
|
+
})]),
|
|
94
|
+
_: 1
|
|
95
|
+
}, 16, ["modelValue", "error-message"]), B.value ? (i(), d(p(y), {
|
|
96
|
+
key: 0,
|
|
97
|
+
style: { "margin-top": "12px" },
|
|
98
|
+
text: "Dit bedrijf heeft geen geregistreerd bezoekadres. Voeg dit toe bij de KvK om door te gaan met de aanvraag."
|
|
99
|
+
})) : n("", !0)]),
|
|
100
|
+
_: 1
|
|
101
|
+
})]),
|
|
102
|
+
_: 1
|
|
103
|
+
}, 16, ["submit-disabled"]));
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
//#endregion
|
|
107
|
+
//#region src/entries/wc-forms/business-car.ts
|
|
108
|
+
customElements.define("vd-business-car-form", s(E, { shadowRoot: !1 }));
|
|
109
|
+
//#endregion
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { Dn as e, Gt as t, Jt as n, Sr as r, Un as i, c as a, d as o, dt as s, in as c, kn as l, nn as u, qt as d, r as f, ri as p, s as m, t as h, u as g, zr as _ } from "./useValidator-DdXn8soU.js";
|
|
2
|
+
import { n as v, r as y, t as b } from "./company.schema-CUG4hnMP.js";
|
|
3
|
+
import { t as x } from "./VdPopover-CcRVedXS.js";
|
|
4
|
+
//#region src/comparisons/businessLiability/businessLiability.schema.ts
|
|
5
|
+
var S = f({ company: b() }), C = /* @__PURE__ */ c({
|
|
6
|
+
__name: "BusinessLiabilityForm",
|
|
7
|
+
props: /*@__PURE__*/ e({
|
|
8
|
+
initialData: {},
|
|
9
|
+
title: {},
|
|
10
|
+
description: {},
|
|
11
|
+
banner: {},
|
|
12
|
+
layout: {},
|
|
13
|
+
card: { type: Boolean },
|
|
14
|
+
flat: { type: Boolean },
|
|
15
|
+
fullWidth: { type: Boolean },
|
|
16
|
+
submitLabel: {},
|
|
17
|
+
submitDisabled: { type: Boolean }
|
|
18
|
+
}, {
|
|
19
|
+
...g,
|
|
20
|
+
title: "Vergelijk aansprakelijkheids-verzekeringen voor jouw bedrijf",
|
|
21
|
+
description: "Bescherm jouw bedrijf slim en voordelig. Om te starten hebben we je bedrijfsnaam of KVK-nummer nodig!",
|
|
22
|
+
submitLabel: "Start gratis vergelijken"
|
|
23
|
+
}),
|
|
24
|
+
emits: ["submit"],
|
|
25
|
+
setup(e, { emit: s }) {
|
|
26
|
+
let c = e, f = o(c), g = s, { isSubmitting: b, handleSubmit: C, defineField: w, setErrors: T, removeError: E } = h(S, { company: c.initialData?.company ?? null }), [D, O, k] = w("company"), A = (e) => e ? T({ company: e }) : E("company"), j = t(() => !!D.value && !D.value.hasVisitingAddress);
|
|
27
|
+
function M() {
|
|
28
|
+
C(({ company: e }) => {
|
|
29
|
+
g("submit", { company: e });
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
return (e, t) => (i(), d(p(m), l(p(f), {
|
|
33
|
+
"action-span": 4,
|
|
34
|
+
"submit-disabled": p(b) || j.value,
|
|
35
|
+
onSubmit: M
|
|
36
|
+
}), {
|
|
37
|
+
default: r(() => [u(p(a), {
|
|
38
|
+
span: "8",
|
|
39
|
+
md: "6"
|
|
40
|
+
}, {
|
|
41
|
+
default: r(() => [u(p(v), l({
|
|
42
|
+
modelValue: p(D),
|
|
43
|
+
"onUpdate:modelValue": t[0] ||= (e) => _(D) ? D.value = e : null,
|
|
44
|
+
name: "company",
|
|
45
|
+
"error-message": p(k)
|
|
46
|
+
}, p(O), { onError: A }), {
|
|
47
|
+
popover: r(() => [u(p(x), {
|
|
48
|
+
"ref-variant": "blue-icon",
|
|
49
|
+
"tooltip-variant": "blue",
|
|
50
|
+
"tooltip-size": "small",
|
|
51
|
+
content: {
|
|
52
|
+
title: "Bedrijfsgegevens",
|
|
53
|
+
description: "Op basis van je KvK-registratie krijgt de verzekeraar direct inzicht in je bedrijfsactiviteiten, de regio waarin je rijdt en de grootte van je team. Deze factoren bepalen samen het risicoprofiel en de hoogte van je premie."
|
|
54
|
+
}
|
|
55
|
+
})]),
|
|
56
|
+
_: 1
|
|
57
|
+
}, 16, ["modelValue", "error-message"]), j.value ? (i(), d(p(y), {
|
|
58
|
+
key: 0,
|
|
59
|
+
style: { "margin-top": "12px" },
|
|
60
|
+
text: "Dit bedrijf heeft geen geregistreerd bezoekadres. Voeg dit toe bij de KvK om door te gaan met de aanvraag."
|
|
61
|
+
})) : n("", !0)]),
|
|
62
|
+
_: 1
|
|
63
|
+
})]),
|
|
64
|
+
_: 1
|
|
65
|
+
}, 16, ["submit-disabled"]));
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
//#endregion
|
|
69
|
+
//#region src/entries/wc-forms/business-liability.ts
|
|
70
|
+
customElements.define("vd-business-liability-form", s(C, { shadowRoot: !1 }));
|
|
71
|
+
//#endregion
|
|
@@ -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/car/car.schema.ts
|
|
7
|
+
var w = (e, t) => u({
|
|
8
|
+
licensePlate: e,
|
|
9
|
+
address: t,
|
|
10
|
+
birthdate: b()
|
|
11
|
+
}), T = /* @__PURE__ */ o({
|
|
12
|
+
__name: "CarForm",
|
|
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: "Autoverzekering 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.Car, { 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 auto 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/car.ts
|
|
111
|
+
customElements.define("vd-car-form", a(T, { shadowRoot: !1 }));
|
|
112
|
+
//#endregion
|
|
@@ -0,0 +1,144 @@
|
|
|
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 "./VdSelect-BPB3Jh_f.js";
|
|
3
|
+
import { t as _ } from "./VdRadioGroup-BsMaGEuY.js";
|
|
4
|
+
import { n as v, t as y } from "./yesNo-BvJlCm7Y.js";
|
|
5
|
+
import { n as b } from "./date.util-D9xNHiuY.js";
|
|
6
|
+
import { t as x } from "./messages-kbFdNTrA.js";
|
|
7
|
+
import { n as S, r as C } from "./rules-Cj1sWDmF.js";
|
|
8
|
+
//#region src/comparisons/caravan/caravan.schema.ts
|
|
9
|
+
var w = u({
|
|
10
|
+
TypeOfCaravan: C(x.caravan.typeOfCaravanRequired),
|
|
11
|
+
NewOrOccasion: S(y, x.caravan.newOrOccasionRequired),
|
|
12
|
+
BuildYear: C(x.caravan.buildYearRequired)
|
|
13
|
+
}), T = [
|
|
14
|
+
{
|
|
15
|
+
value: "CS",
|
|
16
|
+
title: "Stacaravan"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
value: "CT",
|
|
20
|
+
title: "Toercaravan"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
value: "CV",
|
|
24
|
+
title: "Vouwwagen"
|
|
25
|
+
}
|
|
26
|
+
], E = [{
|
|
27
|
+
value: v.Yes,
|
|
28
|
+
label: "Nieuw"
|
|
29
|
+
}, {
|
|
30
|
+
value: v.No,
|
|
31
|
+
label: "Occasion"
|
|
32
|
+
}];
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region src/comparisons/caravan/models/buildYears.model.ts
|
|
35
|
+
function D() {
|
|
36
|
+
let e = b();
|
|
37
|
+
return Array.from({ length: 126 }, (t, n) => ({
|
|
38
|
+
title: String(e - n),
|
|
39
|
+
value: String(e - n)
|
|
40
|
+
}));
|
|
41
|
+
}
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region src/comparisons/caravan/CaravanForm.vue
|
|
44
|
+
var O = /* @__PURE__ */ o({
|
|
45
|
+
__name: "CaravanForm",
|
|
46
|
+
props: /*@__PURE__*/ e({
|
|
47
|
+
initialData: {},
|
|
48
|
+
title: {},
|
|
49
|
+
description: {},
|
|
50
|
+
banner: {},
|
|
51
|
+
layout: {},
|
|
52
|
+
card: { type: Boolean },
|
|
53
|
+
flat: { type: Boolean },
|
|
54
|
+
fullWidth: { type: Boolean },
|
|
55
|
+
submitLabel: {},
|
|
56
|
+
submitDisabled: { type: Boolean }
|
|
57
|
+
}, {
|
|
58
|
+
...m,
|
|
59
|
+
title: "Caravanverzekering vergelijken"
|
|
60
|
+
}),
|
|
61
|
+
emits: ["submit"],
|
|
62
|
+
setup(e, { emit: a }) {
|
|
63
|
+
let o = e, u = i(o), m = a, y = D(), { isSubmitting: b, handleSubmit: x, defineField: S } = p(w, {
|
|
64
|
+
TypeOfCaravan: o.initialData?.TypeOfCaravan ?? null,
|
|
65
|
+
NewOrOccasion: o.initialData?.NewOrOccasion ?? v.Yes,
|
|
66
|
+
BuildYear: o.initialData?.BuildYear ?? null
|
|
67
|
+
}), [C, O, k] = S("TypeOfCaravan", { validateAt: "change" }), [A, j, M] = S("NewOrOccasion"), [N, P, F] = S("BuildYear", { validateAt: "change" });
|
|
68
|
+
function I() {
|
|
69
|
+
x((e) => {
|
|
70
|
+
m("submit", { ...e });
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
return (i, a) => (n(), l(d(f), s(d(u), {
|
|
74
|
+
"submit-disabled": e.submitDisabled || d(b),
|
|
75
|
+
onSubmit: I
|
|
76
|
+
}), {
|
|
77
|
+
default: t(() => [
|
|
78
|
+
c(d(r), {
|
|
79
|
+
span: "4",
|
|
80
|
+
md: "6"
|
|
81
|
+
}, {
|
|
82
|
+
default: t(() => [c(d(g), s({
|
|
83
|
+
modelValue: d(C),
|
|
84
|
+
"onUpdate:modelValue": a[0] ||= (e) => h(C) ? C.value = e : null,
|
|
85
|
+
label: "Soort caravan",
|
|
86
|
+
options: d(T),
|
|
87
|
+
name: "typeOfCaravan",
|
|
88
|
+
required: !1,
|
|
89
|
+
"error-message": d(k)
|
|
90
|
+
}, d(O)), null, 16, [
|
|
91
|
+
"modelValue",
|
|
92
|
+
"options",
|
|
93
|
+
"error-message"
|
|
94
|
+
])]),
|
|
95
|
+
_: 1
|
|
96
|
+
}),
|
|
97
|
+
c(d(r), {
|
|
98
|
+
span: "4",
|
|
99
|
+
md: "6"
|
|
100
|
+
}, {
|
|
101
|
+
default: t(() => [c(d(_), s({
|
|
102
|
+
modelValue: d(A),
|
|
103
|
+
"onUpdate:modelValue": a[1] ||= (e) => h(A) ? A.value = e : null,
|
|
104
|
+
legend: "Gekocht als",
|
|
105
|
+
name: "newOrOccasion",
|
|
106
|
+
options: d(E),
|
|
107
|
+
variant: "boxed",
|
|
108
|
+
required: !1,
|
|
109
|
+
"error-message": d(M)
|
|
110
|
+
}, d(j)), null, 16, [
|
|
111
|
+
"modelValue",
|
|
112
|
+
"options",
|
|
113
|
+
"error-message"
|
|
114
|
+
])]),
|
|
115
|
+
_: 1
|
|
116
|
+
}),
|
|
117
|
+
c(d(r), {
|
|
118
|
+
span: "2",
|
|
119
|
+
md: "6"
|
|
120
|
+
}, {
|
|
121
|
+
default: t(() => [c(d(g), s({
|
|
122
|
+
modelValue: d(N),
|
|
123
|
+
"onUpdate:modelValue": a[2] ||= (e) => h(N) ? N.value = e : null,
|
|
124
|
+
label: "Bouwjaar",
|
|
125
|
+
options: d(y),
|
|
126
|
+
name: "buildYear",
|
|
127
|
+
required: !1,
|
|
128
|
+
"error-message": d(F)
|
|
129
|
+
}, d(P)), null, 16, [
|
|
130
|
+
"modelValue",
|
|
131
|
+
"options",
|
|
132
|
+
"error-message"
|
|
133
|
+
])]),
|
|
134
|
+
_: 1
|
|
135
|
+
})
|
|
136
|
+
]),
|
|
137
|
+
_: 1
|
|
138
|
+
}, 16, ["submit-disabled"]));
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
//#endregion
|
|
142
|
+
//#region src/entries/wc-forms/caravan.ts
|
|
143
|
+
customElements.define("vd-caravan-form", a(O, { shadowRoot: !1 }));
|
|
144
|
+
//#endregion
|