@vergelijkdirect/comparison-forms 2.0.0-rc.9 → 2.0.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 +145 -109
- package/dist/vue/comparison-forms.css +1 -1
- package/dist/vue/comparison-forms.d.ts +91 -73
- package/dist/vue/comparison-forms.js +772 -755
- package/dist/wc/comparison-forms.css +1 -1
- package/dist/wc/comparison-forms.js +3328 -3277
- package/dist/wc-forms/VdInput-CQMUZonZ.cjs +1 -0
- package/dist/wc-forms/VdPopover-B7iU4v7L.cjs +1 -0
- package/dist/wc-forms/VdRadioGroup-CliXOc0N.cjs +1 -0
- package/dist/wc-forms/VdSearchableSelect-BOOYo1Cc.cjs +3 -0
- package/dist/wc-forms/VdSelect-BsnfIWYl.cjs +1 -0
- package/dist/wc-forms/bike.cjs +1 -0
- package/dist/wc-forms/birthdate.schema-C-y732mA.cjs +1 -0
- package/dist/wc-forms/business-car.cjs +1 -0
- package/dist/wc-forms/business-liability.cjs +1 -0
- package/dist/wc-forms/car.cjs +1 -0
- package/dist/wc-forms/caravan.cjs +1 -0
- package/dist/wc-forms/company.schema-Dhzxphqu.cjs +1 -0
- package/dist/wc-forms/date.util-DoOLYSV4.cjs +1 -0
- package/dist/wc-forms/familyComposition.schema-gvSnx-ea.cjs +1 -0
- package/dist/wc-forms/floating-ui.dom-QFQ2zVcn.cjs +1 -0
- package/dist/wc-forms/house.cjs +1 -0
- package/dist/wc-forms/houseOwnedBuilding.model-G9AqKTZo.cjs +1 -0
- package/dist/wc-forms/legal.cjs +1 -0
- package/dist/wc-forms/liability.cjs +1 -0
- package/dist/wc-forms/loan.cjs +1 -0
- package/dist/wc-forms/messages-CX8jVyEo.cjs +1 -0
- package/dist/wc-forms/moped.cjs +1 -0
- package/dist/wc-forms/motor.cjs +1 -0
- package/dist/wc-forms/package.cjs +1 -0
- package/dist/wc-forms/pet.cjs +1 -0
- package/dist/wc-forms/rolldown-runtime-Dbss1pSk.cjs +1 -0
- package/dist/wc-forms/rules-GF6hc_di.cjs +1 -0
- package/dist/wc-forms/services-BmRVYKgg.cjs +1 -0
- package/dist/wc-forms/travel.cjs +1 -0
- package/dist/wc-forms/useAddress-CNccyKT4.cjs +1 -0
- package/dist/wc-forms/useLicensePlate-Ct8T-GYB.cjs +1 -0
- package/dist/wc-forms/useValidator-C2pny0oV.cjs +3 -0
- package/dist/wc-forms/yesNo-DgihWhwI.cjs +1 -0
- package/dist/wc-noitc/comparison-forms.css +2 -13
- package/dist/wc-noitc/comparison-forms.umd.cjs +5 -0
- package/package.json +14 -10
- package/dist/wc-noitc/comparison-forms.js +0 -35
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createSlots as o, createTextVNode as s, createVNode as c, defineComponent as l, inject as u, isRef as d, mergeDefaults as f, mergeModels as p, mergeProps as m, nextTick as h, normalizeClass as g, normalizeStyle as _, onMounted as v, openBlock as y, provide as b, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as w, toDisplayString as T, unref as E, useAttrs as D, useId as O, useModel as k, useSlots as A, vModelRadio as j, vModelSelect as M, watch as N, withCtx as P, withDirectives as F, withModifiers as I } from "vue";
|
|
2
2
|
import { vMaska as L } from "maska/vue";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { ComboboxCancel as ee, ComboboxContent as te, ComboboxEmpty as ne, ComboboxInput as re, ComboboxItem as ie, ComboboxItemIndicator as ae, ComboboxRoot as oe, ComboboxTrigger as se, ComboboxViewport as ce, ComboboxVirtualizer as le, Label as ue, useForwardProps as de } from "reka-ui";
|
|
4
|
+
import { cloneDeep as fe, isEqual as pe } from "es-toolkit";
|
|
5
|
+
import { reactivePick as me, refDebounced as he, useAsyncState as ge } from "@vueuse/core";
|
|
6
6
|
import { autoUpdate as _e, flip as ve, offset as ye, shift as be, useFloating as xe } from "@floating-ui/vue";
|
|
7
7
|
import { mixed as Se, number as Ce, object as R, string as z } from "yup";
|
|
8
8
|
import { ComparisonService as we, DataService as Te, DataValidationService as Ee, HomeService as De, User as Oe } from "@vergelijkdirect/insurance-transmission-client";
|
|
@@ -22,20 +22,14 @@ var je = Object.defineProperty, B = (e, t) => {
|
|
|
22
22
|
return e.FamilyWithChildren = "I", e.FamilyWithoutChildren = "H", e.SingleWithoutChildren = "A", e.SingleWithChildren = "K", e;
|
|
23
23
|
}({}), U = /* @__PURE__ */ function(e) {
|
|
24
24
|
return e.Yes = "J", e.No = "N", e;
|
|
25
|
-
}({}), Me =
|
|
26
|
-
"href",
|
|
27
|
-
"target",
|
|
28
|
-
"tabindex"
|
|
29
|
-
], Ne = {
|
|
25
|
+
}({}), Me = {
|
|
30
26
|
key: 1,
|
|
31
27
|
class: "vd-btn-new__label"
|
|
32
|
-
},
|
|
33
|
-
key: 1,
|
|
34
|
-
class: "vd-btn-new__label"
|
|
35
|
-
}, Ie = /* @__PURE__ */ l({
|
|
28
|
+
}, Ne = /* @__PURE__ */ l({
|
|
36
29
|
__name: "VdButton",
|
|
37
30
|
props: {
|
|
38
31
|
buttonType: { default: "primary" },
|
|
32
|
+
type: { default: "button" },
|
|
39
33
|
label: { default: "" },
|
|
40
34
|
disabled: {
|
|
41
35
|
type: Boolean,
|
|
@@ -61,74 +55,82 @@ var je = Object.defineProperty, B = (e, t) => {
|
|
|
61
55
|
type: Boolean,
|
|
62
56
|
default: !1
|
|
63
57
|
},
|
|
64
|
-
tabindex: { default:
|
|
58
|
+
tabindex: { default: null }
|
|
65
59
|
},
|
|
66
60
|
emits: ["click"],
|
|
67
|
-
setup(e, { emit:
|
|
68
|
-
let
|
|
69
|
-
|
|
61
|
+
setup(e, { emit: o }) {
|
|
62
|
+
let c = e, l = o, u = A(), d = t(() => !!c.href), f = t(() => c.disabled || c.isLoading), p = t(() => !!c.label || !!u.default), h = t(() => d.value ? "a" : "button"), _ = t(() => [
|
|
63
|
+
"vd-btn-new",
|
|
64
|
+
...c.buttonType.split("-").map((e) => `vd-btn-new--${e}`),
|
|
65
|
+
{
|
|
66
|
+
"vd-btn-new--link-type": d.value,
|
|
67
|
+
"vd-btn-new--full-width": c.block,
|
|
68
|
+
"vd-btn-new--loading": c.isLoading,
|
|
69
|
+
"vd-btn-new--hide-label": c.hideLabelOnResize,
|
|
70
|
+
"vd-btn-new--disabled": f.value
|
|
71
|
+
},
|
|
72
|
+
c.size ? `vd-btn-new--${c.size}` : ""
|
|
73
|
+
]), v = t(() => {
|
|
74
|
+
let e = {
|
|
75
|
+
"aria-busy": c.isLoading || void 0,
|
|
76
|
+
"aria-label": c.hideLabelOnResize && c.label || void 0
|
|
77
|
+
};
|
|
78
|
+
return d.value ? {
|
|
79
|
+
...e,
|
|
80
|
+
href: f.value ? void 0 : c.href,
|
|
81
|
+
target: c.target,
|
|
82
|
+
rel: c.target === "_blank" ? "noopener noreferrer" : void 0,
|
|
83
|
+
"aria-disabled": f.value || void 0,
|
|
84
|
+
tabindex: f.value ? -1 : c.tabindex ?? void 0
|
|
85
|
+
} : {
|
|
86
|
+
...e,
|
|
87
|
+
type: c.type,
|
|
88
|
+
disabled: f.value,
|
|
89
|
+
tabindex: c.tabindex ?? void 0
|
|
90
|
+
};
|
|
91
|
+
}), b = (e) => {
|
|
92
|
+
if (f.value) {
|
|
93
|
+
e.preventDefault(), e.stopPropagation();
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
l("click", e);
|
|
70
97
|
};
|
|
71
|
-
return (t,
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
"
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
key: 1,
|
|
100
|
-
class: g(["vd-btn-new", [
|
|
101
|
-
...o(),
|
|
102
|
-
{
|
|
103
|
-
"vd-btn-new--full-width": e.block,
|
|
104
|
-
"vd-btn-new--loading": e.isLoading,
|
|
105
|
-
"vd-btn-new--hide-label": e.hideLabelOnResize
|
|
106
|
-
},
|
|
107
|
-
e.size ? `vd-btn-new--${e.size}` : ""
|
|
108
|
-
]]),
|
|
109
|
-
disabled: e.disabled || e.isLoading,
|
|
110
|
-
tabindex: e.tabindex,
|
|
111
|
-
onClick: c
|
|
112
|
-
}, [
|
|
113
|
-
e.icon && e.iconLeft ? (y(), i("i", {
|
|
114
|
-
key: 0,
|
|
115
|
-
class: g(["vd-btn-new__icon", [e.icon, { "vd-btn-new__icon--non-label": !e.label }]])
|
|
116
|
-
}, null, 2)) : r("", !0),
|
|
117
|
-
e.label ? (y(), i("span", Fe, T(e.label), 1)) : r("", !0),
|
|
118
|
-
e.icon && !e.iconLeft ? (y(), i("i", {
|
|
119
|
-
key: 2,
|
|
120
|
-
class: g(["vd-btn-new__icon", [e.icon, { "vd-btn-new__icon--non-label": !e.label }]])
|
|
121
|
-
}, null, 2)) : r("", !0),
|
|
122
|
-
n[1] ||= a("div", { class: "loader-circle" }, null, -1)
|
|
123
|
-
], 10, Pe));
|
|
98
|
+
return (t, o) => (y(), n(w(h.value), m({ class: _.value }, v.value, { onClick: b }), {
|
|
99
|
+
default: P(() => [
|
|
100
|
+
e.icon && e.iconLeft ? (y(), i("i", {
|
|
101
|
+
key: 0,
|
|
102
|
+
class: g([
|
|
103
|
+
"vd-btn-new__icon",
|
|
104
|
+
e.icon,
|
|
105
|
+
{ "vd-btn-new__icon--non-label": !p.value }
|
|
106
|
+
]),
|
|
107
|
+
"aria-hidden": "true"
|
|
108
|
+
}, null, 2)) : r("", !0),
|
|
109
|
+
p.value ? (y(), i("span", Me, [C(t.$slots, "default", {}, () => [s(T(e.label), 1)])])) : r("", !0),
|
|
110
|
+
e.icon && !e.iconLeft ? (y(), i("i", {
|
|
111
|
+
key: 2,
|
|
112
|
+
class: g([
|
|
113
|
+
"vd-btn-new__icon",
|
|
114
|
+
e.icon,
|
|
115
|
+
{ "vd-btn-new__icon--non-label": !p.value }
|
|
116
|
+
]),
|
|
117
|
+
"aria-hidden": "true"
|
|
118
|
+
}, null, 2)) : r("", !0),
|
|
119
|
+
o[0] ||= a("div", {
|
|
120
|
+
class: "loader-circle",
|
|
121
|
+
"aria-hidden": "true"
|
|
122
|
+
}, null, -1)
|
|
123
|
+
]),
|
|
124
|
+
_: 3
|
|
125
|
+
}, 16, ["class"]));
|
|
124
126
|
}
|
|
125
|
-
}),
|
|
127
|
+
}), Pe = { class: "vd-field" }, Fe = {
|
|
126
128
|
key: 0,
|
|
127
129
|
class: "vd-field__asterisk"
|
|
128
|
-
},
|
|
130
|
+
}, Ie = {
|
|
129
131
|
key: 1,
|
|
130
132
|
class: "vd-field__popover"
|
|
131
|
-
},
|
|
133
|
+
}, Le = [
|
|
132
134
|
"id",
|
|
133
135
|
"value",
|
|
134
136
|
"type",
|
|
@@ -138,22 +140,22 @@ var je = Object.defineProperty, B = (e, t) => {
|
|
|
138
140
|
"disabled",
|
|
139
141
|
"readonly",
|
|
140
142
|
"autocomplete"
|
|
141
|
-
],
|
|
143
|
+
], Re = {
|
|
142
144
|
key: 0,
|
|
143
145
|
class: "vd-field__icon-and-loader"
|
|
144
|
-
},
|
|
146
|
+
}, ze = {
|
|
145
147
|
key: 0,
|
|
146
148
|
class: "vd-field__icon vd-field__icon--with-loader"
|
|
147
|
-
},
|
|
149
|
+
}, Be = { key: 1 }, Ve = {
|
|
148
150
|
key: 0,
|
|
149
151
|
class: "vd-field__loader-circle"
|
|
150
|
-
},
|
|
152
|
+
}, He = {
|
|
151
153
|
key: 0,
|
|
152
154
|
class: "vd-field__message vd-field__message--error"
|
|
153
|
-
},
|
|
155
|
+
}, Ue = {
|
|
154
156
|
key: 1,
|
|
155
157
|
class: "vd-field__message vd-field__message--information"
|
|
156
|
-
},
|
|
158
|
+
}, We = /* @__PURE__ */ l({
|
|
157
159
|
__name: "VdInput",
|
|
158
160
|
props: /*@__PURE__*/ p({
|
|
159
161
|
id: { default: null },
|
|
@@ -207,26 +209,29 @@ var je = Object.defineProperty, B = (e, t) => {
|
|
|
207
209
|
modelModifiers: {}
|
|
208
210
|
}),
|
|
209
211
|
emits: /*@__PURE__*/ p(["blur", "change"], ["update:modelValue"]),
|
|
210
|
-
setup(e, { emit:
|
|
211
|
-
let
|
|
212
|
-
|
|
213
|
-
}, b = (e) => {
|
|
214
|
-
l("blur", f(e.target.value));
|
|
212
|
+
setup(e, { emit: o }) {
|
|
213
|
+
let c = e, l = k(e, "modelValue"), u = o, d = A(), f = c.id ?? O(), p = (e) => c.capitalize ? e.toUpperCase() : e, m = t(() => !c.errorMessage && !c.verified && !c.hasError), h = t(() => !!l.value && !c.errorMessage && c.verified && !c.hasError && !c.loading), _ = t(() => !!c.errorMessage || !!c.hasError), v = t(() => !!c.errorMessage || !!d.errorMessage), b = (e) => {
|
|
214
|
+
l.value = p(e.target.value);
|
|
215
215
|
}, x = (e) => {
|
|
216
|
-
|
|
216
|
+
u("blur", p(e.target.value));
|
|
217
|
+
}, S = (e) => {
|
|
218
|
+
u("change", p(e.target.value));
|
|
217
219
|
};
|
|
218
|
-
return (t,
|
|
220
|
+
return (t, o) => (y(), i("div", Pe, [
|
|
219
221
|
a("div", {
|
|
220
222
|
class: g(["vd-field__label-wrapper", { "vd-field__label-wrapper--disabled": e.disabled }]),
|
|
221
|
-
onClick:
|
|
222
|
-
}, [e.label || E(
|
|
223
|
+
onClick: o[0] ||= I(() => {}, ["prevent"])
|
|
224
|
+
}, [e.label || E(d).label ? (y(), n(E(ue), {
|
|
223
225
|
key: 0,
|
|
224
|
-
for:
|
|
226
|
+
for: E(f),
|
|
225
227
|
class: "vd-field__label"
|
|
226
|
-
},
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
228
|
+
}, {
|
|
229
|
+
default: P(() => [a("span", null, [C(t.$slots, "label", {}, () => [s(T(e.label), 1)]), e.required ? (y(), i("span", Fe, "*")) : r("", !0)])]),
|
|
230
|
+
_: 3
|
|
231
|
+
}, 8, ["for"])) : r("", !0), E(d).popover ? (y(), i("span", Ie, [C(t.$slots, "popover")])) : r("", !0)], 2),
|
|
232
|
+
a("div", { class: g(["vd-field__wrapper", { "vd-field__wrapper-checkmark": h.value && !(e.icon || E(d).icon) }]) }, [F(a("input", {
|
|
233
|
+
id: E(f),
|
|
234
|
+
value: l.value,
|
|
230
235
|
type: e.type,
|
|
231
236
|
name: e.name,
|
|
232
237
|
inputmode: e.inputmode,
|
|
@@ -235,54 +240,54 @@ var je = Object.defineProperty, B = (e, t) => {
|
|
|
235
240
|
readonly: e.readonly,
|
|
236
241
|
autocomplete: e.autocomplete ? "off" : "on",
|
|
237
242
|
class: g(["vd-field__input", {
|
|
238
|
-
"vd-field__input--verified":
|
|
239
|
-
"vd-field__input--default":
|
|
240
|
-
"vd-field__input--error":
|
|
241
|
-
"vd-field__input--icon-left": (e.icon || E(
|
|
242
|
-
"vd-field__input--icon-right": (e.icon || E(
|
|
243
|
+
"vd-field__input--verified": h.value,
|
|
244
|
+
"vd-field__input--default": m.value,
|
|
245
|
+
"vd-field__input--error": _.value,
|
|
246
|
+
"vd-field__input--icon-left": (e.icon || E(d).icon) && e.iconLeft,
|
|
247
|
+
"vd-field__input--icon-right": (e.icon || E(d).icon) && !e.iconLeft,
|
|
243
248
|
"vd-field__input--loading": e.loading,
|
|
244
|
-
"vd-field__input--loading vd-field__input--icon": e.loading && !e.iconLeft && (e.icon || E(
|
|
249
|
+
"vd-field__input--loading vd-field__input--icon": e.loading && !e.iconLeft && (e.icon || E(d).icon)
|
|
245
250
|
}]),
|
|
246
|
-
onInput:
|
|
247
|
-
onChange:
|
|
248
|
-
onBlur:
|
|
249
|
-
}, null, 42,
|
|
251
|
+
onInput: b,
|
|
252
|
+
onChange: S,
|
|
253
|
+
onBlur: x
|
|
254
|
+
}, null, 42, Le), [[E(L), e.mask || void 0]]), e.loading && e.icon && !e.iconLeft ? (y(), i("div", Re, [o[1] ||= a("div", { class: "vd-field__loader-circle vd-field__loader-circle--and-icon" }, null, -1), e.icon || E(d).icon ? (y(), i("span", ze, [C(t.$slots, "icon", {}, () => [a("i", { class: g(e.icon) }, null, 2)])])) : r("", !0)])) : (y(), i("div", Be, [e.loading ? (y(), i("div", Ve)) : r("", !0), e.icon || E(d).icon ? (y(), i("span", {
|
|
250
255
|
key: 1,
|
|
251
256
|
class: g(["vd-field__icon", {
|
|
252
257
|
"vd-field__icon--left": e.iconLeft,
|
|
253
258
|
"vd-field__icon--disabled": e.disabled
|
|
254
259
|
}])
|
|
255
260
|
}, [C(t.$slots, "icon", {}, () => [a("i", { class: g(e.icon) }, null, 2)])], 2)) : r("", !0)]))], 2),
|
|
256
|
-
|
|
257
|
-
e.infoMessage || E(
|
|
261
|
+
v.value || E(d).errorMessage ? (y(), i("div", He, [C(t.$slots, "errorMessage", {}, () => [o[2] ||= a("i", { class: "fas fa-exclamation-circle vd-field__message-icon" }, null, -1), s(" " + T(e.errorMessage), 1)])])) : r("", !0),
|
|
262
|
+
e.infoMessage || E(d).information ? (y(), i("div", Ue, [C(t.$slots, "information", {}, () => [o[3] ||= a("i", { class: "fas fa-info-circle vd-field__message-icon" }, null, -1), s(" " + T(e.infoMessage), 1)])])) : r("", !0)
|
|
258
263
|
]));
|
|
259
264
|
}
|
|
260
|
-
}),
|
|
265
|
+
}), Ge = { class: "vd-field" }, Ke = {
|
|
261
266
|
key: 0,
|
|
262
267
|
class: "vd-field__asterisk"
|
|
263
|
-
},
|
|
268
|
+
}, qe = {
|
|
264
269
|
key: 1,
|
|
265
270
|
class: "vd-field__popover"
|
|
266
|
-
},
|
|
271
|
+
}, Je = { class: "vd-field__wrapper" }, Ye = [
|
|
267
272
|
"id",
|
|
268
273
|
"name",
|
|
269
274
|
"disabled"
|
|
270
|
-
],
|
|
275
|
+
], Xe = {
|
|
271
276
|
key: 0,
|
|
272
277
|
value: "",
|
|
273
278
|
disabled: "",
|
|
274
279
|
selected: ""
|
|
275
|
-
},
|
|
280
|
+
}, Ze = [
|
|
276
281
|
"value",
|
|
277
282
|
"selected",
|
|
278
283
|
"disabled"
|
|
279
|
-
],
|
|
284
|
+
], Qe = {
|
|
280
285
|
key: 0,
|
|
281
286
|
class: "vd-field__icon-and-loader"
|
|
282
|
-
},
|
|
287
|
+
}, $e = {
|
|
283
288
|
key: 0,
|
|
284
289
|
class: "vd-field__message vd-field__message--error"
|
|
285
|
-
},
|
|
290
|
+
}, et = {
|
|
286
291
|
key: 1,
|
|
287
292
|
class: "vd-field__message vd-field__message--information"
|
|
288
293
|
}, W = /* @__PURE__ */ l({
|
|
@@ -316,76 +321,79 @@ var je = Object.defineProperty, B = (e, t) => {
|
|
|
316
321
|
modelModifiers: {}
|
|
317
322
|
}),
|
|
318
323
|
emits: /*@__PURE__*/ p(["blur", "select"], ["update:modelValue"]),
|
|
319
|
-
setup(
|
|
320
|
-
let
|
|
321
|
-
get: () =>
|
|
324
|
+
setup(o, { emit: c }) {
|
|
325
|
+
let l = o, u = k(o, "modelValue"), d = c, f = A(), p = l.id ?? O(), m = t({
|
|
326
|
+
get: () => u.value ?? "",
|
|
322
327
|
set: (e) => {
|
|
323
|
-
|
|
328
|
+
u.value = e === "" ? null : e;
|
|
324
329
|
}
|
|
325
|
-
}),
|
|
326
|
-
|
|
327
|
-
},
|
|
328
|
-
|
|
330
|
+
}), h = x(!0), _ = t(() => !l.errorMessage && l.verified && !l.disabled && !l.loading), v = t(() => !l.errorMessage && !_.value), b = t(() => !!l.errorMessage), w = () => `vd-field__select--placeholder-${!u.value && h.value ? "shown" : "hidden"}`, D = (e) => {
|
|
331
|
+
d("select", e.target.value), h.value = !1;
|
|
332
|
+
}, j = (e) => {
|
|
333
|
+
d("blur", e.target.value);
|
|
329
334
|
};
|
|
330
|
-
return (t,
|
|
331
|
-
a("div", { class: g(["vd-field__label-wrapper", { "vd-field__label-wrapper--disabled":
|
|
335
|
+
return (t, c) => (y(), i("div", Ge, [
|
|
336
|
+
a("div", { class: g(["vd-field__label-wrapper", { "vd-field__label-wrapper--disabled": o.disabled }]) }, [o.label || E(f).label ? (y(), n(E(ue), {
|
|
332
337
|
key: 0,
|
|
333
|
-
for:
|
|
338
|
+
for: E(p),
|
|
334
339
|
class: "vd-field__label"
|
|
335
|
-
},
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
"vd-
|
|
340
|
+
}, {
|
|
341
|
+
default: P(() => [a("span", null, [C(t.$slots, "label", {}, () => [s(T(o.label), 1)]), o.required ? (y(), i("span", Ke, "*")) : r("", !0)])]),
|
|
342
|
+
_: 3
|
|
343
|
+
}, 8, ["for"])) : r("", !0), E(f).popover ? (y(), i("span", qe, [C(t.$slots, "popover")])) : r("", !0)], 2),
|
|
344
|
+
a("div", Je, [F(a("select", {
|
|
345
|
+
id: E(p),
|
|
346
|
+
"onUpdate:modelValue": c[0] ||= (e) => m.value = e,
|
|
347
|
+
name: o.name,
|
|
348
|
+
disabled: o.disabled,
|
|
349
|
+
class: g(["vd-field__input vd-field__select", [w(), {
|
|
350
|
+
"vd-field__input--error": b.value,
|
|
351
|
+
"vd-field__input--verified": _.value,
|
|
352
|
+
"vd-field__input--default": v.value,
|
|
353
|
+
"vd-field__select--placeholder-with-loader-and-icon-shown": o.loading
|
|
346
354
|
}]]),
|
|
347
|
-
onChange:
|
|
348
|
-
onBlur:
|
|
349
|
-
}, [
|
|
355
|
+
onChange: D,
|
|
356
|
+
onBlur: j
|
|
357
|
+
}, [o.placeholder ? (y(), i("option", Xe, T(o.placeholder), 1)) : r("", !0), (y(!0), i(e, null, S(o.options, (e, t) => (y(), i("option", {
|
|
350
358
|
key: e.value + "_" + t,
|
|
351
359
|
value: e.value,
|
|
352
360
|
selected: e.selected || !1,
|
|
353
361
|
disabled: e.disabled || !1
|
|
354
|
-
}, T(e.title), 9,
|
|
362
|
+
}, T(e.title), 9, Ze))), 128))], 42, Ye), [[M, m.value]]), o.loading ? (y(), i("div", Qe, [...c[1] ||= [a("div", { class: "vd-field__loader-circle vd-field__loader-circle--and-icon" }, null, -1), a("span", { class: "vd-field__icon vd-field__icon--with-loader" }, [a("i", { class: "fas vd-field__select-icon--with-loader" })], -1)]])) : (y(), n(E(ue), {
|
|
355
363
|
key: 1,
|
|
356
|
-
for: E(
|
|
364
|
+
for: E(p),
|
|
357
365
|
class: "vd-field__select-icon"
|
|
358
|
-
}, null, 8,
|
|
359
|
-
|
|
360
|
-
|
|
366
|
+
}, null, 8, ["for"]))]),
|
|
367
|
+
b.value || E(f).errorMessage ? (y(), i("div", $e, [C(t.$slots, "errorMessage", {}, () => [c[2] ||= a("i", { class: "fas fa-exclamation-circle vd-field__message-icon" }, null, -1), s(" " + T(o.errorMessage), 1)])])) : r("", !0),
|
|
368
|
+
o.infoMessage || E(f).information ? (y(), i("div", et, [C(t.$slots, "information", {}, () => [c[3] ||= a("i", { class: "fas fa-info-circle vd-field__message-icon" }, null, -1), s(" " + T(o.infoMessage), 1)])])) : r("", !0)
|
|
361
369
|
]));
|
|
362
370
|
}
|
|
363
371
|
});
|
|
364
372
|
//#endregion
|
|
365
373
|
//#region node_modules/es-toolkit/dist/_internal/isEqualsSameValueZero.mjs
|
|
366
|
-
function
|
|
374
|
+
function tt(e, t) {
|
|
367
375
|
return e === t || Number.isNaN(e) && Number.isNaN(t);
|
|
368
376
|
}
|
|
369
377
|
//#endregion
|
|
370
378
|
//#region node_modules/es-toolkit/dist/compat/util/toString.mjs
|
|
371
|
-
function
|
|
379
|
+
function nt(e) {
|
|
372
380
|
if (e == null) return "";
|
|
373
381
|
if (typeof e == "string") return e;
|
|
374
|
-
if (Array.isArray(e)) return e.map(
|
|
382
|
+
if (Array.isArray(e)) return e.map(nt).join(",");
|
|
375
383
|
let t = String(e);
|
|
376
384
|
return t === "0" && Object.is(Number(e), -0) ? "-0" : t;
|
|
377
385
|
}
|
|
378
386
|
//#endregion
|
|
379
387
|
//#region node_modules/es-toolkit/dist/compat/_internal/toKey.mjs
|
|
380
|
-
function
|
|
388
|
+
function rt(e) {
|
|
381
389
|
return typeof e == "string" || typeof e == "symbol" ? e : Object.is(e?.valueOf?.(), -0) ? "-0" : String(e);
|
|
382
390
|
}
|
|
383
391
|
//#endregion
|
|
384
392
|
//#region node_modules/es-toolkit/dist/compat/util/toPath.mjs
|
|
385
|
-
function
|
|
386
|
-
if (Array.isArray(e)) return e.map(
|
|
393
|
+
function it(e) {
|
|
394
|
+
if (Array.isArray(e)) return e.map(rt);
|
|
387
395
|
if (typeof e == "symbol") return [e];
|
|
388
|
-
e =
|
|
396
|
+
e = nt(e);
|
|
389
397
|
let t = [], n = e.length;
|
|
390
398
|
if (n === 0) return t;
|
|
391
399
|
let r = 0, i = "", a = "", o = !1;
|
|
@@ -405,12 +413,12 @@ function ut(e) {
|
|
|
405
413
|
}
|
|
406
414
|
//#endregion
|
|
407
415
|
//#region node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs
|
|
408
|
-
function
|
|
416
|
+
function at(e) {
|
|
409
417
|
return e === "__proto__";
|
|
410
418
|
}
|
|
411
419
|
//#endregion
|
|
412
420
|
//#region node_modules/es-toolkit/dist/compat/_internal/isDeepKey.mjs
|
|
413
|
-
function
|
|
421
|
+
function ot(e) {
|
|
414
422
|
switch (typeof e) {
|
|
415
423
|
case "number":
|
|
416
424
|
case "symbol": return !1;
|
|
@@ -419,112 +427,112 @@ function ft(e) {
|
|
|
419
427
|
}
|
|
420
428
|
//#endregion
|
|
421
429
|
//#region node_modules/es-toolkit/dist/compat/object/get.mjs
|
|
422
|
-
function
|
|
430
|
+
function st(e, t, n) {
|
|
423
431
|
if (e == null) return n;
|
|
424
432
|
switch (typeof t) {
|
|
425
433
|
case "string": {
|
|
426
|
-
if (
|
|
434
|
+
if (at(t)) return n;
|
|
427
435
|
let r = e[t];
|
|
428
|
-
return r === void 0 ?
|
|
436
|
+
return r === void 0 ? ot(t) && !Object.hasOwn(e, t) ? st(e, it(t), n) : n : r;
|
|
429
437
|
}
|
|
430
438
|
case "number":
|
|
431
439
|
case "symbol": {
|
|
432
|
-
typeof t == "number" && (t =
|
|
440
|
+
typeof t == "number" && (t = rt(t));
|
|
433
441
|
let r = e[t];
|
|
434
442
|
return r === void 0 ? n : r;
|
|
435
443
|
}
|
|
436
444
|
default: {
|
|
437
|
-
if (Array.isArray(t)) return
|
|
438
|
-
if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t),
|
|
445
|
+
if (Array.isArray(t)) return ct(e, t, n);
|
|
446
|
+
if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), at(t)) return n;
|
|
439
447
|
let r = e[t];
|
|
440
448
|
return r === void 0 ? n : r;
|
|
441
449
|
}
|
|
442
450
|
}
|
|
443
451
|
}
|
|
444
|
-
function
|
|
452
|
+
function ct(e, t, n) {
|
|
445
453
|
if (t.length === 0) return n;
|
|
446
454
|
let r = e;
|
|
447
455
|
for (let e = 0; e < t.length; e++) {
|
|
448
|
-
if (r == null ||
|
|
456
|
+
if (r == null || at(t[e])) return n;
|
|
449
457
|
r = r[t[e]];
|
|
450
458
|
}
|
|
451
459
|
return r === void 0 ? n : r;
|
|
452
460
|
}
|
|
453
461
|
//#endregion
|
|
454
462
|
//#region node_modules/es-toolkit/dist/compat/predicate/isObject.mjs
|
|
455
|
-
function
|
|
463
|
+
function lt(e) {
|
|
456
464
|
return e !== null && (typeof e == "object" || typeof e == "function");
|
|
457
465
|
}
|
|
458
466
|
//#endregion
|
|
459
467
|
//#region node_modules/es-toolkit/dist/compat/_internal/isIndex.mjs
|
|
460
|
-
var
|
|
461
|
-
function
|
|
468
|
+
var ut = /^(?:0|[1-9]\d*)$/;
|
|
469
|
+
function dt(e, t = 2 ** 53 - 1) {
|
|
462
470
|
switch (typeof e) {
|
|
463
471
|
case "number": return Number.isInteger(e) && e >= 0 && e < t;
|
|
464
472
|
case "symbol": return !1;
|
|
465
|
-
case "string": return
|
|
473
|
+
case "string": return ut.test(e);
|
|
466
474
|
}
|
|
467
475
|
}
|
|
468
476
|
//#endregion
|
|
469
477
|
//#region node_modules/es-toolkit/dist/compat/predicate/isSymbol.mjs
|
|
470
|
-
function
|
|
478
|
+
function ft(e) {
|
|
471
479
|
return typeof e == "symbol" || e instanceof Symbol;
|
|
472
480
|
}
|
|
473
481
|
//#endregion
|
|
474
482
|
//#region node_modules/es-toolkit/dist/compat/_internal/isKey.mjs
|
|
475
|
-
var
|
|
476
|
-
function
|
|
477
|
-
return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null ||
|
|
483
|
+
var pt = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, mt = /^\w*$/;
|
|
484
|
+
function ht(e, t) {
|
|
485
|
+
return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || ft(e) ? !0 : typeof e == "string" && (mt.test(e) || !pt.test(e)) || t != null && Object.hasOwn(t, e);
|
|
478
486
|
}
|
|
479
487
|
//#endregion
|
|
480
488
|
//#region node_modules/es-toolkit/dist/compat/_internal/assignValue.mjs
|
|
481
|
-
var
|
|
489
|
+
var gt = (e, t, n) => {
|
|
482
490
|
let r = e[t];
|
|
483
|
-
(!(Object.hasOwn(e, t) &&
|
|
491
|
+
(!(Object.hasOwn(e, t) && tt(r, n)) || n === void 0 && !(t in e)) && (e[t] = n);
|
|
484
492
|
};
|
|
485
493
|
//#endregion
|
|
486
494
|
//#region node_modules/es-toolkit/dist/compat/object/updateWith.mjs
|
|
487
|
-
function
|
|
488
|
-
if (e == null && !
|
|
495
|
+
function _t(e, t, n, r) {
|
|
496
|
+
if (e == null && !lt(e)) return e;
|
|
489
497
|
let i;
|
|
490
|
-
i =
|
|
491
|
-
let a = n(
|
|
498
|
+
i = ht(t, e) ? [t] : Array.isArray(t) ? t : it(t);
|
|
499
|
+
let a = n(st(e, i)), o = e;
|
|
492
500
|
for (let t = 0; t < i.length && o != null; t++) {
|
|
493
|
-
let n =
|
|
494
|
-
if (
|
|
501
|
+
let n = rt(i[t]);
|
|
502
|
+
if (at(n)) continue;
|
|
495
503
|
let s;
|
|
496
504
|
if (t === i.length - 1) s = a;
|
|
497
505
|
else {
|
|
498
506
|
let a = o[n], c = r?.(a, n, e);
|
|
499
|
-
s = c === void 0 ?
|
|
507
|
+
s = c === void 0 ? lt(a) ? a : dt(i[t + 1]) ? [] : {} : c;
|
|
500
508
|
}
|
|
501
|
-
|
|
509
|
+
gt(o, n, s), o = o[n];
|
|
502
510
|
}
|
|
503
511
|
return e;
|
|
504
512
|
}
|
|
505
513
|
//#endregion
|
|
506
514
|
//#region node_modules/es-toolkit/dist/compat/object/set.mjs
|
|
507
|
-
function
|
|
508
|
-
return
|
|
515
|
+
function vt(e, t, n) {
|
|
516
|
+
return _t(e, t, () => n, () => void 0);
|
|
509
517
|
}
|
|
510
518
|
//#endregion
|
|
511
519
|
//#region src/components/ui/VdSearchableSelect.vue?vue&type=script&setup=true&lang.ts
|
|
512
|
-
var
|
|
520
|
+
var yt = {
|
|
513
521
|
key: 0,
|
|
514
522
|
class: "vd-field__asterisk"
|
|
515
|
-
},
|
|
523
|
+
}, bt = {
|
|
516
524
|
key: 1,
|
|
517
525
|
class: "vd-field__popover"
|
|
518
|
-
},
|
|
526
|
+
}, xt = { class: "vd-field__wrapper" }, St = {
|
|
519
527
|
key: 1,
|
|
520
528
|
class: "vd-field__loader-circle"
|
|
521
|
-
},
|
|
529
|
+
}, Ct = {
|
|
522
530
|
key: 0,
|
|
523
531
|
class: "vd-field__message vd-field__message--error"
|
|
524
|
-
},
|
|
532
|
+
}, wt = {
|
|
525
533
|
key: 1,
|
|
526
534
|
class: "vd-field__message vd-field__message--information"
|
|
527
|
-
},
|
|
535
|
+
}, Tt = /* @__PURE__ */ l({
|
|
528
536
|
__name: "VdSearchableSelect",
|
|
529
537
|
props: /*@__PURE__*/ p({
|
|
530
538
|
id: {},
|
|
@@ -580,17 +588,17 @@ var Tt = {
|
|
|
580
588
|
"update:searchTerm"
|
|
581
589
|
]),
|
|
582
590
|
setup(o, { emit: l }) {
|
|
583
|
-
let u = o, d =
|
|
591
|
+
let u = o, d = de(me(u, "name", "disabled", "by", "ignoreFilter")), f = k(o, "modelValue"), p = k(o, "open"), h = k(o, "searchTerm"), _ = l, v = A(), b = u.id ?? O(), x = t(() => !!u.icon || !!v.icon), w = (e) => typeof e == "object" && !!e, D = (e) => w(e) ? st(e, u.labelKey) ?? e.title ?? "" : String(e), j = (e) => w(e) ? u.valueKey === null ? e : st(e, u.valueKey) : e, M = (e) => w(e) ? e.disabled : void 0, N = (e, t) => e === void 0 || t === void 0 ? !1 : !w(e) || !w(t) ? e === t : typeof u.by == "function" ? u.by(e, t) : typeof u.by == "string" ? st(e, u.by) === st(t, u.by) : pe(e, t), F = (e) => e == null || e === "", I = t(() => !F(f.value)), L = t(() => u.errorMessage ? "error" : I.value && u.verified && !u.loading ? "verified" : "default"), fe = (e) => {
|
|
584
592
|
if (F(e)) return "";
|
|
585
593
|
if (u.displayValue) return u.displayValue(e);
|
|
586
594
|
let t = u.options.find((t) => N(j(t), e));
|
|
587
595
|
return D(t ?? e);
|
|
588
|
-
},
|
|
596
|
+
}, he = (e) => {
|
|
589
597
|
_("select", e);
|
|
590
|
-
},
|
|
598
|
+
}, ge = () => {
|
|
591
599
|
f.value = void 0, _("clear");
|
|
592
600
|
};
|
|
593
|
-
return (t, l) => (y(), n(E(
|
|
601
|
+
return (t, l) => (y(), n(E(oe), m({
|
|
594
602
|
modelValue: f.value,
|
|
595
603
|
"onUpdate:modelValue": l[3] ||= (e) => f.value = e,
|
|
596
604
|
open: p.value,
|
|
@@ -600,20 +608,20 @@ var Tt = {
|
|
|
600
608
|
"open-on-focus": ""
|
|
601
609
|
}, E(d)), {
|
|
602
610
|
default: P(() => [
|
|
603
|
-
a("div", { class: g(["vd-field__label-wrapper", { "vd-field__label-wrapper--disabled": o.disabled }]) }, [o.label || v.label ? (y(), n(E(
|
|
611
|
+
a("div", { class: g(["vd-field__label-wrapper", { "vd-field__label-wrapper--disabled": o.disabled }]) }, [o.label || v.label ? (y(), n(E(ue), {
|
|
604
612
|
key: 0,
|
|
605
613
|
for: E(b),
|
|
606
614
|
class: "vd-field__label"
|
|
607
615
|
}, {
|
|
608
|
-
default: P(() => [a("span", null, [C(t.$slots, "label", {}, () => [s(T(o.label), 1)]), o.required ? (y(), i("span",
|
|
616
|
+
default: P(() => [a("span", null, [C(t.$slots, "label", {}, () => [s(T(o.label), 1)]), o.required ? (y(), i("span", yt, "*")) : r("", !0)])]),
|
|
609
617
|
_: 3
|
|
610
|
-
}, 8, ["for"])) : r("", !0), v.popover ? (y(), i("span",
|
|
611
|
-
a("div",
|
|
612
|
-
c(E(
|
|
618
|
+
}, 8, ["for"])) : r("", !0), v.popover ? (y(), i("span", bt, [C(t.$slots, "popover")])) : r("", !0)], 2),
|
|
619
|
+
a("div", xt, [
|
|
620
|
+
c(E(re), {
|
|
613
621
|
id: E(b),
|
|
614
622
|
modelValue: h.value,
|
|
615
623
|
"onUpdate:modelValue": l[0] ||= (e) => h.value = e,
|
|
616
|
-
"display-value":
|
|
624
|
+
"display-value": fe,
|
|
617
625
|
placeholder: o.placeholder,
|
|
618
626
|
class: g(["vd-field__input vd-field__input--icon-right", [`vd-field__input--${L.value}`, { "vd-field__input--icon-left": x.value }]]),
|
|
619
627
|
onInput: l[1] ||= (e) => _("search", e.target.value),
|
|
@@ -628,15 +636,15 @@ var Tt = {
|
|
|
628
636
|
key: 0,
|
|
629
637
|
class: g(["vd-field__icon vd-field__icon--left", { "vd-field__icon--disabled": o.disabled }])
|
|
630
638
|
}, [C(t.$slots, "icon", {}, () => [a("i", { class: g(o.icon) }, null, 2)])], 2)) : r("", !0),
|
|
631
|
-
o.loading ? (y(), i("div",
|
|
639
|
+
o.loading ? (y(), i("div", St)) : o.clearable && I.value ? (y(), n(E(ee), {
|
|
632
640
|
key: 2,
|
|
633
641
|
as: "span",
|
|
634
642
|
class: "vd-field__icon",
|
|
635
|
-
onClick:
|
|
643
|
+
onClick: ge
|
|
636
644
|
}, {
|
|
637
645
|
default: P(() => [...l[5] ||= [a("i", { class: "far fa-times vd-field__icon--clickable" }, null, -1)]]),
|
|
638
646
|
_: 1
|
|
639
|
-
})) : (y(), n(E(
|
|
647
|
+
})) : (y(), n(E(se), {
|
|
640
648
|
key: 3,
|
|
641
649
|
as: "span",
|
|
642
650
|
class: "vd-field__icon"
|
|
@@ -644,23 +652,23 @@ var Tt = {
|
|
|
644
652
|
default: P(() => [a("i", { class: g(p.value ? "far fa-chevron-up" : "far fa-chevron-down") }, null, 2)]),
|
|
645
653
|
_: 1
|
|
646
654
|
})),
|
|
647
|
-
c(E(
|
|
648
|
-
default: P(() => [c(E(
|
|
649
|
-
default: P(() => [o.virtual ? (y(), n(E(
|
|
655
|
+
c(E(te), { class: "vd-combobox" }, {
|
|
656
|
+
default: P(() => [c(E(ce), { class: "vd-combobox__list" }, {
|
|
657
|
+
default: P(() => [o.virtual ? (y(), n(E(le), {
|
|
650
658
|
key: 0,
|
|
651
659
|
options: o.options,
|
|
652
660
|
"estimate-size": o.estimateSize,
|
|
653
661
|
overscan: o.overscan,
|
|
654
662
|
"text-content": D
|
|
655
663
|
}, {
|
|
656
|
-
default: P(({ option: e }) => [c(E(
|
|
664
|
+
default: P(({ option: e }) => [c(E(ie), {
|
|
657
665
|
value: j(e),
|
|
658
666
|
"text-value": D(e),
|
|
659
667
|
disabled: M(e),
|
|
660
668
|
class: "vd-combobox__item",
|
|
661
|
-
onSelect: (t) =>
|
|
669
|
+
onSelect: (t) => he(j(e))
|
|
662
670
|
}, {
|
|
663
|
-
default: P(() => [C(t.$slots, "item", { option: e }, () => [s(T(D(e)), 1)]), c(E(
|
|
671
|
+
default: P(() => [C(t.$slots, "item", { option: e }, () => [s(T(D(e)), 1)]), c(E(ae), { class: "vd-combobox__check" }, {
|
|
664
672
|
default: P(() => [...l[6] ||= [a("i", { class: "far fa-check" }, null, -1)]]),
|
|
665
673
|
_: 1
|
|
666
674
|
})]),
|
|
@@ -676,15 +684,15 @@ var Tt = {
|
|
|
676
684
|
"options",
|
|
677
685
|
"estimate-size",
|
|
678
686
|
"overscan"
|
|
679
|
-
])) : (y(!0), i(e, { key: 1 }, S(o.options, (e, r) => (y(), n(E(
|
|
687
|
+
])) : (y(!0), i(e, { key: 1 }, S(o.options, (e, r) => (y(), n(E(ie), {
|
|
680
688
|
key: r,
|
|
681
689
|
value: j(e),
|
|
682
690
|
"text-value": D(e),
|
|
683
691
|
disabled: M(e),
|
|
684
692
|
class: "vd-combobox__item",
|
|
685
|
-
onSelect: (t) =>
|
|
693
|
+
onSelect: (t) => he(j(e))
|
|
686
694
|
}, {
|
|
687
|
-
default: P(() => [C(t.$slots, "item", { option: e }, () => [s(T(D(e)), 1)]), c(E(
|
|
695
|
+
default: P(() => [C(t.$slots, "item", { option: e }, () => [s(T(D(e)), 1)]), c(E(ae), { class: "vd-combobox__check" }, {
|
|
688
696
|
default: P(() => [...l[7] ||= [a("i", { class: "far fa-check" }, null, -1)]]),
|
|
689
697
|
_: 1
|
|
690
698
|
})]),
|
|
@@ -694,7 +702,7 @@ var Tt = {
|
|
|
694
702
|
"text-value",
|
|
695
703
|
"disabled",
|
|
696
704
|
"onSelect"
|
|
697
|
-
]))), 128)), c(E(
|
|
705
|
+
]))), 128)), c(E(ne), { class: "vd-combobox__empty" }, {
|
|
698
706
|
default: P(() => [s(T(o.noResultsText), 1)]),
|
|
699
707
|
_: 1
|
|
700
708
|
})]),
|
|
@@ -703,18 +711,18 @@ var Tt = {
|
|
|
703
711
|
_: 3
|
|
704
712
|
})
|
|
705
713
|
]),
|
|
706
|
-
L.value === "error" || v.errorMessage ? (y(), i("div",
|
|
707
|
-
o.infoMessage || v.information ? (y(), i("div",
|
|
714
|
+
L.value === "error" || v.errorMessage ? (y(), i("div", Ct, [C(t.$slots, "errorMessage", {}, () => [l[8] ||= a("i", { class: "fas fa-exclamation-circle vd-field__message-icon" }, null, -1), s(" " + T(o.errorMessage), 1)])])) : r("", !0),
|
|
715
|
+
o.infoMessage || v.information ? (y(), i("div", wt, [C(t.$slots, "information", {}, () => [l[9] ||= a("i", { class: "fas fa-info-circle vd-field__message-icon" }, null, -1), s(" " + T(o.infoMessage), 1)])])) : r("", !0)
|
|
708
716
|
]),
|
|
709
717
|
_: 3
|
|
710
718
|
}, 16, ["modelValue", "open"]));
|
|
711
719
|
}
|
|
712
|
-
}),
|
|
720
|
+
}), Et = { class: "vd-radio-field" }, Dt = { class: "vd-radio-field__input" }, Ot = [
|
|
713
721
|
"id",
|
|
714
722
|
"disabled",
|
|
715
723
|
"name",
|
|
716
724
|
"value"
|
|
717
|
-
],
|
|
725
|
+
], kt = ["for"], At = /* @__PURE__ */ l({
|
|
718
726
|
__name: "VdRadio",
|
|
719
727
|
props: /*@__PURE__*/ p({
|
|
720
728
|
name: {},
|
|
@@ -760,8 +768,8 @@ var Tt = {
|
|
|
760
768
|
}, f = (e) => {
|
|
761
769
|
c("blur", n.value, e.target.value);
|
|
762
770
|
};
|
|
763
|
-
return (t, n) => (y(), i("div",
|
|
764
|
-
a("div",
|
|
771
|
+
return (t, n) => (y(), i("div", Et, [
|
|
772
|
+
a("div", Dt, [F(a("input", {
|
|
765
773
|
id: E(u),
|
|
766
774
|
"onUpdate:modelValue": n[0] ||= (e) => o.value = e,
|
|
767
775
|
disabled: e.disabled,
|
|
@@ -774,28 +782,28 @@ var Tt = {
|
|
|
774
782
|
type: "radio",
|
|
775
783
|
onChange: d,
|
|
776
784
|
onBlur: f
|
|
777
|
-
}, null, 42,
|
|
785
|
+
}, null, 42, Ot), [[j, o.value]])]),
|
|
778
786
|
e.label || E(l).label ? (y(), i("label", {
|
|
779
787
|
key: 0,
|
|
780
788
|
class: "vd-radio-field__label",
|
|
781
789
|
for: E(u)
|
|
782
|
-
}, [C(t.$slots, "label", {}, () => [s(T(e.label), 1)])], 8,
|
|
790
|
+
}, [C(t.$slots, "label", {}, () => [s(T(e.label), 1)])], 8, kt)) : r("", !0),
|
|
783
791
|
C(t.$slots, "popover")
|
|
784
792
|
]));
|
|
785
793
|
}
|
|
786
|
-
}),
|
|
794
|
+
}), jt = ["disabled"], Mt = { class: "vd-field__label" }, Nt = {
|
|
787
795
|
key: 0,
|
|
788
796
|
class: "vd-field__asterisk"
|
|
789
|
-
},
|
|
797
|
+
}, Pt = {
|
|
790
798
|
key: 0,
|
|
791
799
|
class: "vd-field__popover"
|
|
792
|
-
},
|
|
800
|
+
}, Ft = {
|
|
793
801
|
key: 1,
|
|
794
802
|
class: "vd-field__message vd-field__message--error"
|
|
795
|
-
},
|
|
803
|
+
}, It = {
|
|
796
804
|
key: 2,
|
|
797
805
|
class: "vd-field__message vd-field__message--information"
|
|
798
|
-
},
|
|
806
|
+
}, Lt = /* @__PURE__ */ l({
|
|
799
807
|
__name: "VdRadioGroup",
|
|
800
808
|
props: /*@__PURE__*/ p({
|
|
801
809
|
name: {},
|
|
@@ -842,8 +850,8 @@ var Tt = {
|
|
|
842
850
|
o.legend || E(f).legend ? (y(), i("legend", {
|
|
843
851
|
key: 0,
|
|
844
852
|
class: g(["vd-field__label-wrapper", { "vd-field__label-wrapper--disabled": o.disabled }])
|
|
845
|
-
}, [a("div",
|
|
846
|
-
a("div", { class: g(["vd-radio-group__list", o.groupClass]) }, [(y(!0), i(e, null, S(o.options, (e) => (y(), n(
|
|
853
|
+
}, [a("div", Mt, [C(t.$slots, "legend", {}, () => [s(T(o.legend), 1)]), o.required ? (y(), i("span", Nt, "*")) : r("", !0)]), E(f).popover ? (y(), i("span", Pt, [C(t.$slots, "popover")])) : r("", !0)], 2)) : r("", !0),
|
|
854
|
+
a("div", { class: g(["vd-radio-group__list", o.groupClass]) }, [(y(!0), i(e, null, S(o.options, (e) => (y(), n(At, {
|
|
847
855
|
key: e.value,
|
|
848
856
|
modelValue: u.value,
|
|
849
857
|
"onUpdate:modelValue": c[0] ||= (e) => u.value = e,
|
|
@@ -866,14 +874,14 @@ var Tt = {
|
|
|
866
874
|
"disabled",
|
|
867
875
|
"invalid"
|
|
868
876
|
]))), 128))], 2),
|
|
869
|
-
p.value ? (y(), i("div",
|
|
870
|
-
o.infoMessage || E(f).information ? (y(), i("div",
|
|
871
|
-
], 10,
|
|
877
|
+
p.value ? (y(), i("div", Ft, [c[1] ||= a("i", { class: "fas fa-exclamation-circle vd-field__message-icon" }, null, -1), s(" " + T(o.errorMessage), 1)])) : r("", !0),
|
|
878
|
+
o.infoMessage || E(f).information ? (y(), i("div", It, [C(t.$slots, "information", {}, () => [c[2] ||= a("i", { class: "fas fa-info-circle vd-field__message-icon" }, null, -1), s(" " + T(o.infoMessage), 1)])])) : r("", !0)
|
|
879
|
+
], 10, jt));
|
|
872
880
|
}
|
|
873
|
-
}),
|
|
881
|
+
}), Rt = { class: "vd-notification__content" }, zt = {
|
|
874
882
|
key: 0,
|
|
875
883
|
class: "vd-notification__title"
|
|
876
|
-
},
|
|
884
|
+
}, Bt = /* @__PURE__ */ l({
|
|
877
885
|
__name: "VdNotification",
|
|
878
886
|
props: {
|
|
879
887
|
type: { default: "warning" },
|
|
@@ -892,12 +900,12 @@ var Tt = {
|
|
|
892
900
|
success: "fas fa-check-circle",
|
|
893
901
|
error: "fas fa-times-circle"
|
|
894
902
|
};
|
|
895
|
-
return (n, o) => (y(), i("div", { class: g(["vd-notification", [`vd-notification--${e.type}`, { "vd-notification--small": e.small }]]) }, [a("i", { class: g([e.icon || t[e.type], "vd-notification__icon"]) }, null, 2), a("p",
|
|
903
|
+
return (n, o) => (y(), i("div", { class: g(["vd-notification", [`vd-notification--${e.type}`, { "vd-notification--small": e.small }]]) }, [a("i", { class: g([e.icon || t[e.type], "vd-notification__icon"]) }, null, 2), a("p", Rt, [e.title ? (y(), i("span", zt, T(e.title), 1)) : r("", !0), C(n.$slots, "default", {}, () => [s(T(e.text), 1)])])], 2));
|
|
896
904
|
}
|
|
897
|
-
}),
|
|
905
|
+
}), Vt = { class: "vd-popover__title" }, Ht = {
|
|
898
906
|
key: 0,
|
|
899
907
|
class: "vd-popover__title-icon"
|
|
900
|
-
},
|
|
908
|
+
}, Ut = { key: 1 }, Wt = /* @__PURE__ */ l({
|
|
901
909
|
__name: "VdPopoverHeader",
|
|
902
910
|
props: {
|
|
903
911
|
title: { default: "" },
|
|
@@ -908,12 +916,12 @@ var Tt = {
|
|
|
908
916
|
let n = t, o = () => {
|
|
909
917
|
n("close");
|
|
910
918
|
};
|
|
911
|
-
return (t, n) => (y(), i("div", { class: g(["vd-popover__header", { "vd-popover__header--only-close-icon": !e.title }]) }, [e.title ? C(t.$slots, "default", { key: 0 }, () => [a("div",
|
|
919
|
+
return (t, n) => (y(), i("div", { class: g(["vd-popover__header", { "vd-popover__header--only-close-icon": !e.title }]) }, [e.title ? C(t.$slots, "default", { key: 0 }, () => [a("div", Vt, [e.icon ? (y(), i("div", Ht, [a("i", { class: g(e.icon) }, null, 2)])) : r("", !0), e.title ? (y(), i("span", Ut, T(e.title), 1)) : r("", !0)])]) : r("", !0), a("button", {
|
|
912
920
|
class: "vd-popover__close-btn",
|
|
913
921
|
onClick: o
|
|
914
922
|
}, [...n[0] ||= [a("i", { class: "far fa-times vd-popover__close-btn-icon" }, null, -1)]])], 2));
|
|
915
923
|
}
|
|
916
|
-
}),
|
|
924
|
+
}), Gt = ["innerHTML"], Kt = /* @__PURE__ */ l({
|
|
917
925
|
__name: "VdPopoverTooltip",
|
|
918
926
|
props: {
|
|
919
927
|
content: { default: () => ({
|
|
@@ -936,7 +944,7 @@ var Tt = {
|
|
|
936
944
|
return (t, a) => (y(), i("div", {
|
|
937
945
|
class: g(["vd-popover__tooltip", [e.size ? `vd-popover__tooltip--${e.size}` : "", e.variant ? `vd-popover__tooltip--${e.variant}` : ""]]),
|
|
938
946
|
onPointerdown: a[0] ||= I(() => {}, ["prevent"])
|
|
939
|
-
}, [e.hideHeaderTooltip ? r("", !0) : (y(), n(
|
|
947
|
+
}, [e.hideHeaderTooltip ? r("", !0) : (y(), n(Wt, {
|
|
940
948
|
key: 0,
|
|
941
949
|
title: e.content.title,
|
|
942
950
|
icon: e.headerIconTooltip,
|
|
@@ -945,9 +953,9 @@ var Tt = {
|
|
|
945
953
|
key: 1,
|
|
946
954
|
class: "vd-popover__description",
|
|
947
955
|
innerHTML: e.content.description
|
|
948
|
-
}, null, 8,
|
|
956
|
+
}, null, 8, Gt)) : r("", !0)], 34));
|
|
949
957
|
}
|
|
950
|
-
}),
|
|
958
|
+
}), qt = { key: 1 }, Jt = /* @__PURE__ */ l({
|
|
951
959
|
__name: "VdPopoverReference",
|
|
952
960
|
props: {
|
|
953
961
|
label: { default: "" },
|
|
@@ -964,7 +972,7 @@ var Tt = {
|
|
|
964
972
|
key: 0,
|
|
965
973
|
class: g(e.icon)
|
|
966
974
|
}, null, 2)) : r("", !0),
|
|
967
|
-
e.label ? (y(), i("span",
|
|
975
|
+
e.label ? (y(), i("span", qt, T(e.label), 1)) : r("", !0),
|
|
968
976
|
e.iconLeft ? r("", !0) : (y(), i("i", {
|
|
969
977
|
key: 2,
|
|
970
978
|
class: g(e.icon)
|
|
@@ -1056,7 +1064,7 @@ var Tt = {
|
|
|
1056
1064
|
onMousedown: m,
|
|
1057
1065
|
isOpen: l.value,
|
|
1058
1066
|
close: f
|
|
1059
|
-
}, () => [c(
|
|
1067
|
+
}, () => [c(Jt, {
|
|
1060
1068
|
variant: e.refVariant,
|
|
1061
1069
|
label: e.label,
|
|
1062
1070
|
icon: e.iconRef,
|
|
@@ -1073,7 +1081,7 @@ var Tt = {
|
|
|
1073
1081
|
style: _(E(s)),
|
|
1074
1082
|
class: g(["vd-popover__floating", t.fullWidth ? "vd-popover__floating--full-width" : ""]),
|
|
1075
1083
|
onPointerdown: d[0] ||= I(() => {}, ["prevent"])
|
|
1076
|
-
}, [C(u.$slots, "tooltip", { close: f }, () => [c(
|
|
1084
|
+
}, [C(u.$slots, "tooltip", { close: f }, () => [c(Kt, {
|
|
1077
1085
|
content: e.content,
|
|
1078
1086
|
variant: e.tooltipVariant,
|
|
1079
1087
|
size: e.tooltipSize,
|
|
@@ -1098,21 +1106,21 @@ var Tt = {
|
|
|
1098
1106
|
fullWidth: !1,
|
|
1099
1107
|
submitLabel: "Vergelijken",
|
|
1100
1108
|
submitDisabled: !1
|
|
1101
|
-
},
|
|
1109
|
+
}, Yt = Object.keys(K);
|
|
1102
1110
|
function q(e) {
|
|
1103
|
-
return
|
|
1111
|
+
return me(e, ...Yt);
|
|
1104
1112
|
}
|
|
1105
1113
|
//#endregion
|
|
1106
1114
|
//#region \0plugin-vue:export-helper
|
|
1107
|
-
var
|
|
1115
|
+
var Xt = (e, t) => {
|
|
1108
1116
|
let n = e.__vccOpts || e;
|
|
1109
1117
|
for (let [e, r] of t) n[e] = r;
|
|
1110
1118
|
return n;
|
|
1111
|
-
},
|
|
1112
|
-
function
|
|
1113
|
-
return y(), i("div",
|
|
1119
|
+
}, Zt = {}, Qt = { class: "vd-form__row" };
|
|
1120
|
+
function $t(e, t) {
|
|
1121
|
+
return y(), i("div", Qt, [C(e.$slots, "default")]);
|
|
1114
1122
|
}
|
|
1115
|
-
var
|
|
1123
|
+
var en = /*#__PURE__*/ Xt(Zt, [["render", $t]]), J = /* @__PURE__ */ l({
|
|
1116
1124
|
__name: "VdFormCol",
|
|
1117
1125
|
props: {
|
|
1118
1126
|
span: { default: null },
|
|
@@ -1127,16 +1135,16 @@ var sn = /*#__PURE__*/ nn(rn, [["render", on]]), J = /* @__PURE__ */ l({
|
|
|
1127
1135
|
]);
|
|
1128
1136
|
return (e, t) => (y(), i("div", { class: g(r.value) }, [C(e.$slots, "default")], 2));
|
|
1129
1137
|
}
|
|
1130
|
-
}),
|
|
1138
|
+
}), tn = {
|
|
1131
1139
|
key: 0,
|
|
1132
1140
|
class: "vd-form__banner"
|
|
1133
|
-
},
|
|
1141
|
+
}, nn = ["innerHTML"], rn = {
|
|
1134
1142
|
key: 1,
|
|
1135
1143
|
class: "vd-form__header"
|
|
1136
|
-
},
|
|
1144
|
+
}, an = {
|
|
1137
1145
|
key: 0,
|
|
1138
1146
|
class: "vd-form__title"
|
|
1139
|
-
},
|
|
1147
|
+
}, on = {
|
|
1140
1148
|
key: 1,
|
|
1141
1149
|
class: "vd-form__description"
|
|
1142
1150
|
}, Y = /* @__PURE__ */ l({
|
|
@@ -1171,17 +1179,18 @@ var sn = /*#__PURE__*/ nn(rn, [["render", on]]), J = /* @__PURE__ */ l({
|
|
|
1171
1179
|
};
|
|
1172
1180
|
return (t, n) => (y(), i("form", {
|
|
1173
1181
|
class: g(u.value),
|
|
1174
|
-
onSubmit: I(d, ["prevent"])
|
|
1182
|
+
onSubmit: I(d, ["prevent", "stop"])
|
|
1175
1183
|
}, [
|
|
1176
|
-
E(l).banner || e.banner ? (y(), i("div",
|
|
1177
|
-
E(l).header || e.title || e.description ? (y(), i("div",
|
|
1178
|
-
c(
|
|
1184
|
+
E(l).banner || e.banner ? (y(), i("div", tn, [C(t.$slots, "banner", {}, () => [a("span", { innerHTML: e.banner }, null, 8, nn)])])) : r("", !0),
|
|
1185
|
+
E(l).header || e.title || e.description ? (y(), i("div", rn, [C(t.$slots, "header", {}, () => [e.title ? (y(), i("h2", an, T(e.title), 1)) : r("", !0), e.description ? (y(), i("p", on, T(e.description), 1)) : r("", !0)])])) : r("", !0),
|
|
1186
|
+
c(en, null, {
|
|
1179
1187
|
default: P(() => [C(t.$slots, "default"), c(J, {
|
|
1180
1188
|
class: "vd-form__action",
|
|
1181
1189
|
span: e.actionSpan,
|
|
1182
1190
|
md: e.actionMd
|
|
1183
1191
|
}, {
|
|
1184
|
-
default: P(() => [C(t.$slots, "action", {}, () => [c(
|
|
1192
|
+
default: P(() => [C(t.$slots, "action", {}, () => [c(Ne, {
|
|
1193
|
+
type: "submit",
|
|
1185
1194
|
label: e.submitLabel,
|
|
1186
1195
|
"button-type": "green",
|
|
1187
1196
|
size: "big",
|
|
@@ -1195,7 +1204,7 @@ var sn = /*#__PURE__*/ nn(rn, [["render", on]]), J = /* @__PURE__ */ l({
|
|
|
1195
1204
|
})
|
|
1196
1205
|
], 34));
|
|
1197
1206
|
}
|
|
1198
|
-
}),
|
|
1207
|
+
}), sn = /* @__PURE__ */ l({
|
|
1199
1208
|
__name: "VdFormGroup",
|
|
1200
1209
|
props: {
|
|
1201
1210
|
span: { default: null },
|
|
@@ -1228,7 +1237,7 @@ var sn = /*#__PURE__*/ nn(rn, [["render", on]]), J = /* @__PURE__ */ l({
|
|
|
1228
1237
|
emits: ["update:modelValue"],
|
|
1229
1238
|
setup(e) {
|
|
1230
1239
|
let t = A(), r = k(e, "modelValue");
|
|
1231
|
-
return (i, a) => (y(), n(
|
|
1240
|
+
return (i, a) => (y(), n(We, m({
|
|
1232
1241
|
modelValue: r.value,
|
|
1233
1242
|
"onUpdate:modelValue": a[0] ||= (e) => r.value = e,
|
|
1234
1243
|
label: e.label,
|
|
@@ -1250,7 +1259,7 @@ var sn = /*#__PURE__*/ nn(rn, [["render", on]]), J = /* @__PURE__ */ l({
|
|
|
1250
1259
|
"required"
|
|
1251
1260
|
]));
|
|
1252
1261
|
}
|
|
1253
|
-
}),
|
|
1262
|
+
}), cn = /* @__PURE__ */ l({
|
|
1254
1263
|
inheritAttrs: !1,
|
|
1255
1264
|
__name: "VdFamilyCompositionSelect",
|
|
1256
1265
|
props: /*@__PURE__*/ p({
|
|
@@ -1303,21 +1312,21 @@ var sn = /*#__PURE__*/ nn(rn, [["render", on]]), J = /* @__PURE__ */ l({
|
|
|
1303
1312
|
"required"
|
|
1304
1313
|
]));
|
|
1305
1314
|
}
|
|
1306
|
-
}),
|
|
1307
|
-
let n =
|
|
1315
|
+
}), ln = (e) => e.replace(/\["(\d+)"\]/g, "[$1]"), un = (e, t) => `${e}${t}`, dn = (e) => (e.inner || []).reduce((e, t) => {
|
|
1316
|
+
let n = ln(t.path);
|
|
1308
1317
|
return e[n] || (e[n] = t.message), e;
|
|
1309
|
-
}, {}),
|
|
1318
|
+
}, {}), fn = (e) => {
|
|
1310
1319
|
if (!e.inner) throw e;
|
|
1311
|
-
return
|
|
1312
|
-
},
|
|
1320
|
+
return dn(e);
|
|
1321
|
+
}, pn = { isValidating: !1 }, mn = {
|
|
1313
1322
|
validateAt: "blur",
|
|
1314
1323
|
strict: !0,
|
|
1315
1324
|
abortEarly: !1
|
|
1316
|
-
},
|
|
1325
|
+
}, hn = Symbol("useValidator"), Z = (e, n, r) => {
|
|
1317
1326
|
let i = {
|
|
1318
|
-
...
|
|
1327
|
+
...mn,
|
|
1319
1328
|
...r
|
|
1320
|
-
}, a =
|
|
1329
|
+
}, a = fe(n), o = x(fe(a)), s = x({}), c = x(!1), l = x(!1), u = x({}), d = (e) => t({
|
|
1321
1330
|
get: () => v(e),
|
|
1322
1331
|
set: (t) => y(e, t)
|
|
1323
1332
|
}), f = (e, n) => t(() => ({
|
|
@@ -1328,15 +1337,15 @@ var sn = /*#__PURE__*/ nn(rn, [["render", on]]), J = /* @__PURE__ */ l({
|
|
|
1328
1337
|
isValid: !N(e),
|
|
1329
1338
|
isValidating: u.value[e]?.isValidating ?? !1
|
|
1330
1339
|
})), g = (e, t) => {
|
|
1331
|
-
let n = t && "value" in t ? t.value :
|
|
1332
|
-
y(e,
|
|
1340
|
+
let n = t && "value" in t ? t.value : st(a, e), r = { isValidating: t?.isValidating ?? !1 }, i = t?.error ?? "";
|
|
1341
|
+
y(e, fe(n)), _(e, r), i ? M({ [e]: i }) : P(e);
|
|
1333
1342
|
}, _ = (e, t) => {
|
|
1334
1343
|
u.value[e] = {
|
|
1335
1344
|
...u.value[e],
|
|
1336
1345
|
...t
|
|
1337
1346
|
};
|
|
1338
|
-
}, v = (e) =>
|
|
1339
|
-
|
|
1347
|
+
}, v = (e) => st(o.value, e), y = (e, t) => {
|
|
1348
|
+
vt(o.value, e, t);
|
|
1340
1349
|
}, S = (e, t) => {
|
|
1341
1350
|
t === "blur" && j(e);
|
|
1342
1351
|
}, C = (e, t) => {
|
|
@@ -1345,7 +1354,7 @@ var sn = /*#__PURE__*/ nn(rn, [["render", on]]), J = /* @__PURE__ */ l({
|
|
|
1345
1354
|
t === "input" && h(() => j(e));
|
|
1346
1355
|
}, T = (e, t) => {
|
|
1347
1356
|
let n = t?.validateAt ?? i.validateAt;
|
|
1348
|
-
return _(e,
|
|
1357
|
+
return _(e, pn), [
|
|
1349
1358
|
d(e),
|
|
1350
1359
|
f(e, n),
|
|
1351
1360
|
p(e),
|
|
@@ -1353,10 +1362,10 @@ var sn = /*#__PURE__*/ nn(rn, [["render", on]]), J = /* @__PURE__ */ l({
|
|
|
1353
1362
|
];
|
|
1354
1363
|
}, E = (e) => {
|
|
1355
1364
|
let t = d(e), n = (t, n) => {
|
|
1356
|
-
let r = n?.validateAt ?? i.validateAt, a =
|
|
1365
|
+
let r = n?.validateAt ?? i.validateAt, a = un(e, t);
|
|
1357
1366
|
return f(a, r).value;
|
|
1358
1367
|
}, r = (t) => {
|
|
1359
|
-
let n =
|
|
1368
|
+
let n = un(e, t);
|
|
1360
1369
|
return N(n);
|
|
1361
1370
|
};
|
|
1362
1371
|
return {
|
|
@@ -1364,7 +1373,7 @@ var sn = /*#__PURE__*/ nn(rn, [["render", on]]), J = /* @__PURE__ */ l({
|
|
|
1364
1373
|
getAttrs: n,
|
|
1365
1374
|
getError: r,
|
|
1366
1375
|
getMeta: (t) => {
|
|
1367
|
-
let n =
|
|
1376
|
+
let n = un(e, t);
|
|
1368
1377
|
return m(n);
|
|
1369
1378
|
},
|
|
1370
1379
|
arrayError: r(e),
|
|
@@ -1373,7 +1382,7 @@ var sn = /*#__PURE__*/ nn(rn, [["render", on]]), J = /* @__PURE__ */ l({
|
|
|
1373
1382
|
console.warn(`Fields at path "${e}" is not initialized`);
|
|
1374
1383
|
return;
|
|
1375
1384
|
}
|
|
1376
|
-
for (let e = 0; e < r; e++) t.value.push(
|
|
1385
|
+
for (let e = 0; e < r; e++) t.value.push(fe(n));
|
|
1377
1386
|
P(e);
|
|
1378
1387
|
},
|
|
1379
1388
|
pop: (n = 1) => {
|
|
@@ -1394,7 +1403,7 @@ var sn = /*#__PURE__*/ nn(rn, [["render", on]]), J = /* @__PURE__ */ l({
|
|
|
1394
1403
|
t.startsWith(e) && P(t);
|
|
1395
1404
|
});
|
|
1396
1405
|
}, k = async (e, t) => {
|
|
1397
|
-
|
|
1406
|
+
ee(!0);
|
|
1398
1407
|
try {
|
|
1399
1408
|
let n = await A();
|
|
1400
1409
|
if (n && typeof e == "function") return await e(n);
|
|
@@ -1402,7 +1411,7 @@ var sn = /*#__PURE__*/ nn(rn, [["render", on]]), J = /* @__PURE__ */ l({
|
|
|
1402
1411
|
} catch (e) {
|
|
1403
1412
|
console.error(e);
|
|
1404
1413
|
} finally {
|
|
1405
|
-
|
|
1414
|
+
ee(!1);
|
|
1406
1415
|
}
|
|
1407
1416
|
}, A = async () => {
|
|
1408
1417
|
L(!0), I();
|
|
@@ -1412,7 +1421,7 @@ var sn = /*#__PURE__*/ nn(rn, [["render", on]]), J = /* @__PURE__ */ l({
|
|
|
1412
1421
|
abortEarly: i.abortEarly
|
|
1413
1422
|
}), o.value;
|
|
1414
1423
|
} catch (e) {
|
|
1415
|
-
let t =
|
|
1424
|
+
let t = fn(e);
|
|
1416
1425
|
M(t);
|
|
1417
1426
|
return;
|
|
1418
1427
|
} finally {
|
|
@@ -1426,7 +1435,7 @@ var sn = /*#__PURE__*/ nn(rn, [["render", on]]), J = /* @__PURE__ */ l({
|
|
|
1426
1435
|
abortEarly: i.abortEarly
|
|
1427
1436
|
});
|
|
1428
1437
|
} catch (e) {
|
|
1429
|
-
let t =
|
|
1438
|
+
let t = fn(e);
|
|
1430
1439
|
M(t);
|
|
1431
1440
|
} finally {
|
|
1432
1441
|
_(t, { isValidating: !1 });
|
|
@@ -1443,9 +1452,9 @@ var sn = /*#__PURE__*/ nn(rn, [["render", on]]), J = /* @__PURE__ */ l({
|
|
|
1443
1452
|
s.value = {};
|
|
1444
1453
|
}, L = (e) => {
|
|
1445
1454
|
l.value = e;
|
|
1446
|
-
},
|
|
1455
|
+
}, ee = (e) => {
|
|
1447
1456
|
c.value = e;
|
|
1448
|
-
},
|
|
1457
|
+
}, te = {
|
|
1449
1458
|
formData: o,
|
|
1450
1459
|
errors: t(() => s.value),
|
|
1451
1460
|
isValid: t(() => Object.keys(s.value).length === 0),
|
|
@@ -1464,18 +1473,18 @@ var sn = /*#__PURE__*/ nn(rn, [["render", on]]), J = /* @__PURE__ */ l({
|
|
|
1464
1473
|
validateForm: A,
|
|
1465
1474
|
validateField: j
|
|
1466
1475
|
};
|
|
1467
|
-
return b(
|
|
1468
|
-
},
|
|
1469
|
-
let e = u(
|
|
1476
|
+
return b(hn, te), te;
|
|
1477
|
+
}, gn = () => {
|
|
1478
|
+
let e = u(hn);
|
|
1470
1479
|
if (!e) throw Error("useValidatorContext must be used within a component that has called useValidator");
|
|
1471
1480
|
return e;
|
|
1472
|
-
},
|
|
1481
|
+
}, _n = { class: "vd-field" }, vn = {
|
|
1473
1482
|
key: 0,
|
|
1474
1483
|
class: "vd-field__message vd-field__message--error"
|
|
1475
|
-
},
|
|
1484
|
+
}, yn = {
|
|
1476
1485
|
key: 1,
|
|
1477
1486
|
class: "vd-field__message vd-field__message--information"
|
|
1478
|
-
},
|
|
1487
|
+
}, bn = /* @__PURE__ */ l({
|
|
1479
1488
|
__name: "VdAddress",
|
|
1480
1489
|
props: /*@__PURE__*/ p({
|
|
1481
1490
|
path: { default: "address" },
|
|
@@ -1486,7 +1495,7 @@ var sn = /*#__PURE__*/ nn(rn, [["render", on]]), J = /* @__PURE__ */ l({
|
|
|
1486
1495
|
}),
|
|
1487
1496
|
emits: ["update:resolvedAddress"],
|
|
1488
1497
|
setup(e) {
|
|
1489
|
-
let n = e, o = k(e, "resolvedAddress"), { path: l } = n, { defineField: u, validateField: f, getFieldMeta: p, getError: m, removeError: g } =
|
|
1498
|
+
let n = e, o = k(e, "resolvedAddress"), { path: l } = n, { defineField: u, validateField: f, getFieldMeta: p, getError: m, removeError: g } = gn(), [_, , b] = u(`${l}.zipCode`), [x, , S] = u(`${l}.houseNumber`), [C, , w] = u(`${l}.houseNumberAddition`), D = async () => {
|
|
1490
1499
|
await f(l), C.value || g(`${l}.houseNumberAddition`);
|
|
1491
1500
|
}, O = (e) => {
|
|
1492
1501
|
_.value && x.value ? D() : f(e);
|
|
@@ -1497,12 +1506,12 @@ var sn = /*#__PURE__*/ nn(rn, [["render", on]]), J = /* @__PURE__ */ l({
|
|
|
1497
1506
|
o.value = null;
|
|
1498
1507
|
}), v(() => {
|
|
1499
1508
|
_.value && x.value && D();
|
|
1500
|
-
}), (t, n) => (y(), i("div",
|
|
1509
|
+
}), (t, n) => (y(), i("div", _n, [c(en, null, {
|
|
1501
1510
|
default: P(() => [c(J, {
|
|
1502
1511
|
span: "5",
|
|
1503
1512
|
md: "3"
|
|
1504
1513
|
}, {
|
|
1505
|
-
default: P(() => [c(
|
|
1514
|
+
default: P(() => [c(We, {
|
|
1506
1515
|
modelValue: E(_),
|
|
1507
1516
|
"onUpdate:modelValue": n[0] ||= (e) => d(_) ? _.value = e : null,
|
|
1508
1517
|
modelModifiers: { trim: !0 },
|
|
@@ -1524,11 +1533,11 @@ var sn = /*#__PURE__*/ nn(rn, [["render", on]]), J = /* @__PURE__ */ l({
|
|
|
1524
1533
|
"loading"
|
|
1525
1534
|
])]),
|
|
1526
1535
|
_: 1
|
|
1527
|
-
}), c(
|
|
1536
|
+
}), c(sn, {
|
|
1528
1537
|
span: "7",
|
|
1529
1538
|
md: "3"
|
|
1530
1539
|
}, {
|
|
1531
|
-
default: P(() => [c(
|
|
1540
|
+
default: P(() => [c(We, {
|
|
1532
1541
|
modelValue: E(x),
|
|
1533
1542
|
"onUpdate:modelValue": n[1] ||= (e) => d(x) ? x.value = e : null,
|
|
1534
1543
|
modelModifiers: { trim: !0 },
|
|
@@ -1570,9 +1579,9 @@ var sn = /*#__PURE__*/ nn(rn, [["render", on]]), J = /* @__PURE__ */ l({
|
|
|
1570
1579
|
_: 1
|
|
1571
1580
|
})]),
|
|
1572
1581
|
_: 1
|
|
1573
|
-
}), I.value ? (y(), i("div",
|
|
1582
|
+
}), I.value ? (y(), i("div", vn, [n[3] ||= a("i", { class: "fas fa-exclamation-circle vd-field__message-icon" }, null, -1), s(" " + T(I.value), 1)])) : o.value ? (y(), i("div", yn, [n[4] ||= a("i", { class: "fas fa-info-circle vd-field__message-icon" }, null, -1), s(" " + T(o.value.street) + ", " + T(o.value.city), 1)])) : r("", !0)]));
|
|
1574
1583
|
}
|
|
1575
|
-
}),
|
|
1584
|
+
}), xn = {
|
|
1576
1585
|
vd: { url: "http://master.dev.vergelijkdirect.com/index.php" },
|
|
1577
1586
|
mijn: { url: "http://master.mijn-api.vergelijkdirect.com" },
|
|
1578
1587
|
api: { url: "http://master.api.vergelijkdirect.com/" },
|
|
@@ -1582,7 +1591,7 @@ var sn = /*#__PURE__*/ nn(rn, [["render", on]]), J = /* @__PURE__ */ l({
|
|
|
1582
1591
|
currentItemId: "6622695672245691fb02ce02",
|
|
1583
1592
|
nextItemId: "65e342a01f2b9e9db1060335"
|
|
1584
1593
|
}
|
|
1585
|
-
},
|
|
1594
|
+
}, Sn = class e {
|
|
1586
1595
|
values;
|
|
1587
1596
|
cached;
|
|
1588
1597
|
static instance = new e();
|
|
@@ -1595,22 +1604,22 @@ var sn = /*#__PURE__*/ nn(rn, [["render", on]]), J = /* @__PURE__ */ l({
|
|
|
1595
1604
|
get(e) {
|
|
1596
1605
|
return e in this.cached ? this.cached[e] : e in this.values ? this.cached[e] = this.values[e](this) : (`${e}`, !1);
|
|
1597
1606
|
}
|
|
1598
|
-
},
|
|
1607
|
+
}, Cn = class {
|
|
1599
1608
|
static configure(e) {
|
|
1600
|
-
let t =
|
|
1609
|
+
let t = Sn.instance;
|
|
1601
1610
|
e.api && e.api.url && t.constant("vd-api-url", e.api.url), e.mijn && e.mijn.url && t.constant("mijn-api-url", e.mijn.url), e.qa && e.qa.url && t.constant("qa-api-url", e.qa.url);
|
|
1602
1611
|
}
|
|
1603
1612
|
static getApiUrl() {
|
|
1604
|
-
return
|
|
1613
|
+
return Sn.instance.get("vd-api-url") || xn.api.url;
|
|
1605
1614
|
}
|
|
1606
1615
|
static getMijnUrl() {
|
|
1607
|
-
return
|
|
1616
|
+
return Sn.instance.get("mijn-api-url") || xn.mijn.url;
|
|
1608
1617
|
}
|
|
1609
1618
|
static getQAUrl() {
|
|
1610
|
-
return
|
|
1619
|
+
return Sn.instance.get("qa-api-url") || xn.qa.url;
|
|
1611
1620
|
}
|
|
1612
|
-
},
|
|
1613
|
-
function
|
|
1621
|
+
}, wn = () => Cn.getQAUrl(), Tn;
|
|
1622
|
+
function En() {
|
|
1614
1623
|
return {
|
|
1615
1624
|
dataService: new Te(),
|
|
1616
1625
|
dataValidationService: new Ee(),
|
|
@@ -1618,62 +1627,62 @@ function Mn() {
|
|
|
1618
1627
|
comparisonService: new we()
|
|
1619
1628
|
};
|
|
1620
1629
|
}
|
|
1621
|
-
function
|
|
1622
|
-
return
|
|
1630
|
+
function Dn() {
|
|
1631
|
+
return Tn ||= En(), Tn;
|
|
1623
1632
|
}
|
|
1624
1633
|
//#endregion
|
|
1625
1634
|
//#region src/components/fields/address/address.presenter.ts
|
|
1626
|
-
var
|
|
1635
|
+
var On = (e) => ({
|
|
1627
1636
|
zipCode: e.ZipCode,
|
|
1628
1637
|
houseNumber: String(e.HouseNumber),
|
|
1629
1638
|
houseNumberAddition: e.HouseNumberAddition,
|
|
1630
1639
|
city: e.Place,
|
|
1631
1640
|
street: e.Street
|
|
1632
|
-
}),
|
|
1641
|
+
}), kn = /^\d{4}\s?[a-zA-Z]{2}$/, An = /^\d+$/, jn = {
|
|
1633
1642
|
"needs-addition": "Een toevoeging is verplicht",
|
|
1634
1643
|
"not-found": "Postcode en huisnummer combinatie onbekend.",
|
|
1635
1644
|
error: "Adres ophalen is mislukt. Probeer het opnieuw."
|
|
1636
1645
|
};
|
|
1637
|
-
function
|
|
1646
|
+
function Mn(e) {
|
|
1638
1647
|
return e.replace(/\s/g, "").toUpperCase();
|
|
1639
1648
|
}
|
|
1640
|
-
var
|
|
1641
|
-
function
|
|
1642
|
-
return e ===
|
|
1649
|
+
var Nn = "NO_ADDITION";
|
|
1650
|
+
function Pn(e) {
|
|
1651
|
+
return e === Nn ? "" : e.replace("-", "");
|
|
1643
1652
|
}
|
|
1644
|
-
var
|
|
1645
|
-
if (
|
|
1653
|
+
var Fn = (e) => e instanceof Error, In = (e) => {
|
|
1654
|
+
if (Fn(e)) throw e;
|
|
1646
1655
|
return null;
|
|
1647
|
-
},
|
|
1656
|
+
}, Ln = (e, t, n) => Dn().dataValidationService.validateZipCode(e, t, n).then((e) => e).catch(In), Rn = (e, t) => Dn().homeService.getAddition({
|
|
1648
1657
|
zipcode: e,
|
|
1649
1658
|
houseNumber: t
|
|
1650
|
-
}).then((e) => e ?? []).catch(
|
|
1651
|
-
let [n, r] = await Promise.all([
|
|
1659
|
+
}).then((e) => e ?? []).catch(In), zn = async (e, t) => {
|
|
1660
|
+
let [n, r] = await Promise.all([Ln(e, t), Rn(e, t)]);
|
|
1652
1661
|
return !n && !r?.length ? null : {
|
|
1653
1662
|
validWithoutAddition: !!n,
|
|
1654
1663
|
template: n,
|
|
1655
1664
|
additions: r ?? []
|
|
1656
1665
|
};
|
|
1657
|
-
},
|
|
1666
|
+
}, Bn = (e) => {
|
|
1658
1667
|
let t = e.additions.map((e) => ({
|
|
1659
1668
|
title: e,
|
|
1660
|
-
value:
|
|
1669
|
+
value: Pn(e)
|
|
1661
1670
|
}));
|
|
1662
1671
|
return e.validWithoutAddition && t.length ? [{
|
|
1663
1672
|
title: "Geen toevoeging",
|
|
1664
|
-
value:
|
|
1673
|
+
value: Nn
|
|
1665
1674
|
}, ...t] : t;
|
|
1666
|
-
},
|
|
1675
|
+
}, Vn = (e) => ({
|
|
1667
1676
|
zipCode: e?.zipCode ?? "",
|
|
1668
1677
|
houseNumber: e?.houseNumber ?? "",
|
|
1669
|
-
houseNumberAddition: e ? e.houseNumberAddition ||
|
|
1670
|
-
}),
|
|
1671
|
-
let t = e?.path ?? "address", n =
|
|
1672
|
-
let t =
|
|
1678
|
+
houseNumberAddition: e ? e.houseNumberAddition || Nn : ""
|
|
1679
|
+
}), Hn = (e) => {
|
|
1680
|
+
let t = e?.path ?? "address", n = Vn(e?.initial), r = x(null), i = x([]), a = 0, o = null, s = async (e) => {
|
|
1681
|
+
let t = Mn(e.zipCode), n = e.houseNumber.trim(), r = Pn(e.houseNumberAddition), i = `${t}:${n}`;
|
|
1673
1682
|
try {
|
|
1674
1683
|
let a = o?.key === i ? o : null;
|
|
1675
1684
|
if (!a) {
|
|
1676
|
-
let e = await
|
|
1685
|
+
let e = await zn(t, n);
|
|
1677
1686
|
if (!e) return {
|
|
1678
1687
|
status: "not-found",
|
|
1679
1688
|
options: [],
|
|
@@ -1684,14 +1693,14 @@ var Vn = (e) => e instanceof Error, Hn = (e) => {
|
|
|
1684
1693
|
verdict: e
|
|
1685
1694
|
};
|
|
1686
1695
|
}
|
|
1687
|
-
let s =
|
|
1696
|
+
let s = Bn(a.verdict);
|
|
1688
1697
|
if (a.verdict.additions.length && !e.houseNumberAddition) return {
|
|
1689
1698
|
status: "needs-addition",
|
|
1690
1699
|
options: s,
|
|
1691
1700
|
address: null
|
|
1692
1701
|
};
|
|
1693
1702
|
if (!a.verdict.template) {
|
|
1694
|
-
let e = await
|
|
1703
|
+
let e = await Ln(t, n, r);
|
|
1695
1704
|
if (!e) return {
|
|
1696
1705
|
status: "not-found",
|
|
1697
1706
|
options: [],
|
|
@@ -1716,7 +1725,7 @@ var Vn = (e) => e instanceof Error, Hn = (e) => {
|
|
|
1716
1725
|
}
|
|
1717
1726
|
}, c = async (e) => {
|
|
1718
1727
|
let t = ++a, n = await s(e), o = t !== a;
|
|
1719
|
-
return o || (i.value = n.options, r.value = n.address ?
|
|
1728
|
+
return o || (i.value = n.options, r.value = n.address ? On(n.address) : null), {
|
|
1720
1729
|
...n,
|
|
1721
1730
|
stale: o
|
|
1722
1731
|
};
|
|
@@ -1724,23 +1733,23 @@ var Vn = (e) => e instanceof Error, Hn = (e) => {
|
|
|
1724
1733
|
return {
|
|
1725
1734
|
path: t,
|
|
1726
1735
|
addressSchema: R({
|
|
1727
|
-
zipCode: z().required("Vul je postcode in").matches(
|
|
1728
|
-
houseNumber: z().required("Huisnummer is verplicht").matches(
|
|
1736
|
+
zipCode: z().required("Vul je postcode in").matches(kn, "Postcode is incorrect"),
|
|
1737
|
+
houseNumber: z().required("Huisnummer is verplicht").matches(An, "Huisnummer is incorrect"),
|
|
1729
1738
|
houseNumberAddition: z().defined()
|
|
1730
1739
|
}).test("address-lookup", async (e, t) => {
|
|
1731
|
-
let n =
|
|
1732
|
-
if (!
|
|
1740
|
+
let n = Mn(e.zipCode ?? ""), r = String(e.houseNumber ?? "").trim();
|
|
1741
|
+
if (!kn.test(n) || !An.test(r)) return !0;
|
|
1733
1742
|
let { status: i, stale: a } = await c(e);
|
|
1734
1743
|
return a || i === "resolved" ? !0 : i === "needs-addition" ? t.createError({
|
|
1735
1744
|
path: `${t.path}.houseNumberAddition`,
|
|
1736
|
-
message:
|
|
1737
|
-
}) : t.createError({ message:
|
|
1745
|
+
message: jn[i]
|
|
1746
|
+
}) : t.createError({ message: jn[i] });
|
|
1738
1747
|
}),
|
|
1739
1748
|
draft: n,
|
|
1740
1749
|
resolvedAddress: r,
|
|
1741
1750
|
additionOptions: i
|
|
1742
1751
|
};
|
|
1743
|
-
},
|
|
1752
|
+
}, Un = {
|
|
1744
1753
|
[V.Car]: {
|
|
1745
1754
|
apiTypes: ["Car", "Van"],
|
|
1746
1755
|
dutch: "auto",
|
|
@@ -1761,14 +1770,14 @@ var Vn = (e) => e instanceof Error, Hn = (e) => {
|
|
|
1761
1770
|
dutch: "caravan",
|
|
1762
1771
|
icon: "fa-caravan-alt"
|
|
1763
1772
|
}
|
|
1764
|
-
},
|
|
1773
|
+
}, Wn = Object.fromEntries(Object.values(Un).flatMap(({ apiTypes: e, icon: t }) => e.map((e) => [e.toLowerCase(), t]))), Gn = {
|
|
1765
1774
|
brommobiel: "fa-car-side",
|
|
1766
1775
|
"speed pedelec": "fa-bicycle"
|
|
1767
|
-
},
|
|
1776
|
+
}, Kn = (e) => !!e?.Brand && !!e.Model && !!e.ManufacturingYear, qn = (e) => {
|
|
1768
1777
|
if (!e) return "";
|
|
1769
1778
|
let t = String(e.Model ?? "").toLowerCase().trim(), n = String(e.VehicleType ?? "").toLowerCase();
|
|
1770
|
-
return
|
|
1771
|
-
},
|
|
1779
|
+
return Gn[t] ?? Wn[n] ?? "";
|
|
1780
|
+
}, Jn = (e) => e ? `${e.Brand} ${e.Model} (${e.ManufacturingYear})` : "", Yn = [
|
|
1772
1781
|
"@@-##-@@",
|
|
1773
1782
|
"##-##-@@",
|
|
1774
1783
|
"##-@@-@@",
|
|
@@ -1786,22 +1795,22 @@ var Vn = (e) => e instanceof Error, Hn = (e) => {
|
|
|
1786
1795
|
];
|
|
1787
1796
|
//#endregion
|
|
1788
1797
|
//#region src/components/fields/licensePlate/licensePlate.util.ts
|
|
1789
|
-
function
|
|
1798
|
+
function Xn(e) {
|
|
1790
1799
|
return e.replace(/[\s\\-]/g, "");
|
|
1791
1800
|
}
|
|
1792
|
-
var
|
|
1793
|
-
function
|
|
1794
|
-
let t =
|
|
1795
|
-
if (t.length < 6) return
|
|
1796
|
-
let n = [...t].map((e) => /[0-9]/.test(e) ? "#" : "@").join(""), r =
|
|
1797
|
-
return r === -1 ?
|
|
1801
|
+
var Zn = "*".repeat(6), Qn = Yn.map((e) => e.replace(/-/g, ""));
|
|
1802
|
+
function $n(e) {
|
|
1803
|
+
let t = Xn(e).slice(0, 6);
|
|
1804
|
+
if (t.length < 6) return Zn;
|
|
1805
|
+
let n = [...t].map((e) => /[0-9]/.test(e) ? "#" : "@").join(""), r = Qn.indexOf(n);
|
|
1806
|
+
return r === -1 ? Zn : Yn[r];
|
|
1798
1807
|
}
|
|
1799
1808
|
//#endregion
|
|
1800
1809
|
//#region src/components/fields/licensePlate/VdLicensePlate.vue?vue&type=script&setup=true&lang.ts
|
|
1801
|
-
var
|
|
1810
|
+
var er = {
|
|
1802
1811
|
key: 0,
|
|
1803
1812
|
class: "vd-input-license-plate__loading-information"
|
|
1804
|
-
},
|
|
1813
|
+
}, tr = ["src"], nr = /* @__PURE__ */ l({
|
|
1805
1814
|
inheritAttrs: !1,
|
|
1806
1815
|
__name: "VdLicensePlate",
|
|
1807
1816
|
props: /*@__PURE__*/ p({
|
|
@@ -1824,17 +1833,17 @@ var or = {
|
|
|
1824
1833
|
}),
|
|
1825
1834
|
emits: /*@__PURE__*/ p(["input"], ["update:modelValue", "update:vehicleData"]),
|
|
1826
1835
|
setup(c, { emit: l }) {
|
|
1827
|
-
let u = { mask:
|
|
1836
|
+
let u = { mask: $n }, d = c, f = k(c, "modelValue"), p = k(c, "vehicleData"), h = l, g = D(), _ = A(), v = t({
|
|
1828
1837
|
get: () => f.value ?? "",
|
|
1829
1838
|
set: (e) => {
|
|
1830
1839
|
f.value = e, h("input", e);
|
|
1831
1840
|
}
|
|
1832
|
-
}), b = (e, t) =>
|
|
1841
|
+
}), b = (e, t) => Xn(e).toUpperCase() === Xn(t).toUpperCase();
|
|
1833
1842
|
N(f, (e) => {
|
|
1834
1843
|
p.value && !b(e, p.value.LicensePlate) && (p.value = null);
|
|
1835
1844
|
});
|
|
1836
|
-
let x = t(() =>
|
|
1837
|
-
return (t, l) => (y(), n(
|
|
1845
|
+
let x = t(() => Kn(p.value) ? p.value : null), S = t(() => d.loading || !!x.value && !d.errorMessage), w = t(() => qn(x.value)), O = t(() => Jn(x.value));
|
|
1846
|
+
return (t, l) => (y(), n(We, m(E(g), {
|
|
1838
1847
|
modelValue: v.value,
|
|
1839
1848
|
"onUpdate:modelValue": l[0] ||= (e) => v.value = e,
|
|
1840
1849
|
capitalize: "",
|
|
@@ -1859,12 +1868,12 @@ var or = {
|
|
|
1859
1868
|
} : void 0,
|
|
1860
1869
|
S.value ? {
|
|
1861
1870
|
name: "information",
|
|
1862
|
-
fn: P(() => [c.loading ? (y(), i("div",
|
|
1871
|
+
fn: P(() => [c.loading ? (y(), i("div", er, [...l[1] ||= [a("i", { class: "fas fa-circle-notch vd-input-license-plate__loading-icon" }, null, -1), s(" Voertuig gegevens ophalen... ", -1)]])) : x.value ? (y(), i(e, { key: 1 }, [w.value ? (y(), i("img", {
|
|
1863
1872
|
key: 0,
|
|
1864
1873
|
src: `https://d12bmfj3oyxu0t.cloudfront.net/vergelijkdirect/icons/${w.value}.svg`,
|
|
1865
1874
|
class: "vd-field__svg-message-icon",
|
|
1866
1875
|
alt: "vehicle-icon"
|
|
1867
|
-
}, null, 8,
|
|
1876
|
+
}, null, 8, tr)) : r("", !0), s(" " + T(O.value), 1)], 64)) : r("", !0)]),
|
|
1868
1877
|
key: "2"
|
|
1869
1878
|
} : void 0
|
|
1870
1879
|
]), 1040, [
|
|
@@ -1876,56 +1885,56 @@ var or = {
|
|
|
1876
1885
|
"loading"
|
|
1877
1886
|
]));
|
|
1878
1887
|
}
|
|
1879
|
-
}),
|
|
1880
|
-
"wrong-type": (e) => `Het ingevoerde kenteken is geen ${
|
|
1888
|
+
}), rr = /* @__PURE__ */ new Map(), ir = (e, t) => `${t}:${e}`, ar = {
|
|
1889
|
+
"wrong-type": (e) => `Het ingevoerde kenteken is geen ${Un[e].dutch}`,
|
|
1881
1890
|
unknown: () => "Voertuig onbekend - Voer ander kenteken in of neem contact op",
|
|
1882
1891
|
"not-found": () => "Kenteken onbekend",
|
|
1883
1892
|
error: () => "Kenteken is incorrect"
|
|
1884
|
-
},
|
|
1893
|
+
}, or = async (e, t) => {
|
|
1885
1894
|
try {
|
|
1886
|
-
let n = await
|
|
1895
|
+
let n = await Dn().dataService.findVehicle(e, t);
|
|
1887
1896
|
if (Array.isArray(n) || !n || !Object.keys(n).length) return { status: "not-found" };
|
|
1888
1897
|
let r = n;
|
|
1889
|
-
return r.VehicleType ?
|
|
1898
|
+
return r.VehicleType ? Un[t].apiTypes.includes(r.VehicleType) ? {
|
|
1890
1899
|
status: "found",
|
|
1891
1900
|
data: r
|
|
1892
1901
|
} : { status: "wrong-type" } : { status: "unknown" };
|
|
1893
1902
|
} catch (e) {
|
|
1894
1903
|
return console.error("Error on ITC findVehicle", e), { status: "error" };
|
|
1895
1904
|
}
|
|
1896
|
-
},
|
|
1897
|
-
let n =
|
|
1898
|
-
return r || (r =
|
|
1899
|
-
e === "error" &&
|
|
1900
|
-
}, () =>
|
|
1901
|
-
},
|
|
1905
|
+
}, sr = (e, t) => {
|
|
1906
|
+
let n = ir(e, t), r = rr.get(n);
|
|
1907
|
+
return r || (r = or(e, t), rr.set(n, r), r.then(({ status: e }) => {
|
|
1908
|
+
e === "error" && rr.delete(n);
|
|
1909
|
+
}, () => rr.delete(n))), r;
|
|
1910
|
+
}, cr = (e, t = {}) => {
|
|
1902
1911
|
let n = x(t.initialData ?? null), r = 0;
|
|
1903
|
-
t.initialData?.LicensePlate &&
|
|
1912
|
+
t.initialData?.LicensePlate && rr.set(ir(Xn(t.initialData.LicensePlate), e), Promise.resolve({
|
|
1904
1913
|
status: "found",
|
|
1905
1914
|
data: t.initialData
|
|
1906
1915
|
}));
|
|
1907
1916
|
let i = async (t) => {
|
|
1908
|
-
let i =
|
|
1917
|
+
let i = Xn(t), a = ++r, o = await sr(i, e);
|
|
1909
1918
|
return a === r && (n.value = o.status === "found" ? o.data : null), o;
|
|
1910
1919
|
};
|
|
1911
1920
|
return {
|
|
1912
1921
|
vehicleData: n,
|
|
1913
1922
|
licensePlateSchema: z().required("Dit veld is verplicht").test("license-plate-lookup", async (t, n) => {
|
|
1914
1923
|
if (!t) return !0;
|
|
1915
|
-
let r =
|
|
1924
|
+
let r = Xn(t);
|
|
1916
1925
|
if (r.length < 6) return n.createError({ message: "Kenteken is incorrect" });
|
|
1917
1926
|
let { status: a } = await i(r);
|
|
1918
|
-
return a === "found" || n.createError({ message:
|
|
1927
|
+
return a === "found" || n.createError({ message: ar[a](e) });
|
|
1919
1928
|
})
|
|
1920
1929
|
};
|
|
1921
|
-
},
|
|
1930
|
+
}, lr = (e) => /^\d{8}$/.test(e), ur = (e) => lr(e) ? {
|
|
1922
1931
|
companyName: "",
|
|
1923
1932
|
kvkNumber: e
|
|
1924
1933
|
} : {
|
|
1925
1934
|
companyName: e,
|
|
1926
1935
|
kvkNumber: ""
|
|
1927
|
-
},
|
|
1928
|
-
let t =
|
|
1936
|
+
}, dr = "bezoekadres", fr = (e) => e._embedded?.hoofdvestiging?.adressen?.find((e) => e.type === dr), pr = (e) => {
|
|
1937
|
+
let t = fr(e), { huisnummer: n = 0, huisletter: r = "", huisnummerToevoeging: i = "", toevoegingAdres: a = "", plaats: o = "", postcode: s = "", straatnaam: c = "", volledigAdres: l = "" } = t ?? {};
|
|
1929
1938
|
return {
|
|
1930
1939
|
houseNumber: n,
|
|
1931
1940
|
houseNumberAddition: r || i || a,
|
|
@@ -1935,7 +1944,7 @@ var or = {
|
|
|
1935
1944
|
fullAddress: l,
|
|
1936
1945
|
hasVisitingAddress: !!t
|
|
1937
1946
|
};
|
|
1938
|
-
},
|
|
1947
|
+
}, mr = (e = []) => {
|
|
1939
1948
|
let [t, n, r] = e.reduce(([e, t, n], r) => {
|
|
1940
1949
|
let i = {
|
|
1941
1950
|
isMainActivity: r.indHoofdactiviteit,
|
|
@@ -1958,20 +1967,20 @@ var or = {
|
|
|
1958
1967
|
firstSBIs: t,
|
|
1959
1968
|
secondSBIs: n
|
|
1960
1969
|
};
|
|
1961
|
-
},
|
|
1970
|
+
}, hr = (e) => ({
|
|
1962
1971
|
kvkNumber: e.kvkNummer,
|
|
1963
1972
|
name: e.naam,
|
|
1964
1973
|
city: e.adres?.binnenlandsAdres?.plaats ?? "",
|
|
1965
1974
|
street: e.adres?.binnenlandsAdres?.straatnaam ?? ""
|
|
1966
|
-
}),
|
|
1975
|
+
}), gr = (e) => ({
|
|
1967
1976
|
name: e.naam,
|
|
1968
1977
|
kvkNumber: e.kvkNummer,
|
|
1969
1978
|
industry: e.sbiIndustryId,
|
|
1970
1979
|
numberOfEmployees: e.totaalWerkzamePersonen,
|
|
1971
1980
|
legalForm: e._embedded?.eigenaar?.rechtsvorm ?? "",
|
|
1972
|
-
...
|
|
1973
|
-
...
|
|
1974
|
-
}),
|
|
1981
|
+
...pr(e),
|
|
1982
|
+
...mr(e.sbiActiviteiten)
|
|
1983
|
+
}), _r = 30, vr = ["hoofdvestiging", "nevenvestiging"], yr = "IPD5200", br = (e) => {
|
|
1975
1984
|
let t = e, n = t?.response?.data?.fout;
|
|
1976
1985
|
if (Array.isArray(n)) return n;
|
|
1977
1986
|
if (Array.isArray(t?.fout)) return t.fout;
|
|
@@ -1979,27 +1988,24 @@ var or = {
|
|
|
1979
1988
|
let e = JSON.parse(t.message);
|
|
1980
1989
|
if (Array.isArray(e?.fout)) return e.fout;
|
|
1981
1990
|
} catch {}
|
|
1982
|
-
},
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
if (Dr(t)) return [];
|
|
1991
|
-
throw t;
|
|
1992
|
-
}
|
|
1993
|
-
},
|
|
1994
|
-
getDetails: async (t) => {
|
|
1995
|
-
let n = await e.getProfileInfo(t);
|
|
1996
|
-
return {
|
|
1997
|
-
presenter: Sr(n),
|
|
1998
|
-
raw: n
|
|
1999
|
-
};
|
|
1991
|
+
}, xr = (e) => br(e)?.some((e) => e.code === yr) ?? !1, Sr = () => ({
|
|
1992
|
+
search: async (e) => {
|
|
1993
|
+
try {
|
|
1994
|
+
return ((await Dn().dataService.searchBusinessInfoV2(ur(e), 1, _r))?.resultaten ?? []).filter((e) => vr.includes(e.type)).map(hr);
|
|
1995
|
+
} catch (e) {
|
|
1996
|
+
let t = await e;
|
|
1997
|
+
if (xr(t)) return [];
|
|
1998
|
+
throw t;
|
|
2000
1999
|
}
|
|
2001
|
-
}
|
|
2002
|
-
|
|
2000
|
+
},
|
|
2001
|
+
getDetails: async (e) => {
|
|
2002
|
+
let t = await Dn().dataService.getProfileInfo(e);
|
|
2003
|
+
return {
|
|
2004
|
+
presenter: gr(t),
|
|
2005
|
+
raw: t
|
|
2006
|
+
};
|
|
2007
|
+
}
|
|
2008
|
+
}), Cr = { class: "vd-combobox__multiline" }, wr = { class: "vd-combobox__title" }, Tr = { class: "vd-combobox__subtext" }, Er = { class: "vd-combobox__subtext" }, Dr = 400, Or = 3, kr = "Helaas, we hebben geen resultaten gevonden. Probeer te zoeken op de exacte naam waarmee je bedrijf is geregistreerd bij de Kamer van Koophandel, of gebruik je volledige KvK-nummer.", Ar = "Typ je bedrijfsnaam of KvK-nummer", jr = "Aan het zoeken…", Mr = "Er ging iets mis bij het ophalen van de gegevens. Probeer het later opnieuw.", Nr = /* @__PURE__ */ l({
|
|
2003
2009
|
inheritAttrs: !1,
|
|
2004
2010
|
__name: "VdCompanySelect",
|
|
2005
2011
|
props: /*@__PURE__*/ p({
|
|
@@ -2018,7 +2024,7 @@ var or = {
|
|
|
2018
2024
|
"raw"
|
|
2019
2025
|
], ["update:modelValue"]),
|
|
2020
2026
|
setup(e, { emit: r }) {
|
|
2021
|
-
let i = r, s = D(), c = A(), l = k(e, "modelValue"), { search: u, getDetails: d } =
|
|
2027
|
+
let i = r, s = D(), c = A(), l = k(e, "modelValue"), { search: u, getDetails: d } = Sr(), f = x(), p = x(), h = x(), g = x(""), _ = he(g, Dr, { maxWait: 2e3 }), v = x(!0), { state: b, isLoading: S, execute: w } = ge(async (e) => {
|
|
2022
2028
|
try {
|
|
2023
2029
|
return {
|
|
2024
2030
|
results: await u(e),
|
|
@@ -2036,33 +2042,33 @@ var or = {
|
|
|
2036
2042
|
}, {
|
|
2037
2043
|
immediate: !1,
|
|
2038
2044
|
resetOnExecute: !1
|
|
2039
|
-
}), { isLoading: O, execute: j } =
|
|
2045
|
+
}), { isLoading: O, execute: j } = ge(async (e) => {
|
|
2040
2046
|
try {
|
|
2041
2047
|
let { presenter: t, raw: n } = await d(e);
|
|
2042
2048
|
return l.value = t, i("raw", n), i("error", null), t;
|
|
2043
2049
|
} catch (e) {
|
|
2044
|
-
throw l.value = null, i("raw", null), h.value = void 0, f.value = void 0, i("error",
|
|
2050
|
+
throw l.value = null, i("raw", null), h.value = void 0, f.value = void 0, i("error", Mr), e;
|
|
2045
2051
|
}
|
|
2046
2052
|
}, null, {
|
|
2047
2053
|
immediate: !1,
|
|
2048
2054
|
resetOnExecute: !0
|
|
2049
|
-
}), M = t(() => g.value.length >=
|
|
2055
|
+
}), M = t(() => g.value.length >= Or), F = t(() => M.value ? S.value || g.value !== _.value ? "searching" : b.value.failed ? "error" : b.value.results.length ? "idle" : "no-results" : "idle"), I = t(() => F.value === "searching" ? [] : M.value ? b.value.results : v.value && h.value ? [h.value] : []), L = t(() => F.value === "searching" || O.value), ee = t(() => !!l.value && !L.value), te = t(() => {
|
|
2050
2056
|
let e = l.value;
|
|
2051
2057
|
return !e || L.value ? "" : e.fullAddress ? `Kvk: ${e.kvkNumber} ${e.fullAddress}` : `Kvk: ${e.kvkNumber}`;
|
|
2052
2058
|
}), ne = t(() => {
|
|
2053
2059
|
switch (F.value) {
|
|
2054
|
-
case "searching": return
|
|
2055
|
-
case "error": return
|
|
2056
|
-
case "no-results": return
|
|
2057
|
-
default: return
|
|
2060
|
+
case "searching": return jr;
|
|
2061
|
+
case "error": return Mr;
|
|
2062
|
+
case "no-results": return kr;
|
|
2063
|
+
default: return Ar;
|
|
2058
2064
|
}
|
|
2059
|
-
}),
|
|
2065
|
+
}), re = (e) => {
|
|
2060
2066
|
h.value = e, v.value = !0, e.kvkNumber === l.value?.kvkNumber ? i("error", null) : j(0, e.kvkNumber);
|
|
2061
|
-
},
|
|
2067
|
+
}, ie = (e) => {
|
|
2062
2068
|
i("blur", e);
|
|
2063
|
-
},
|
|
2069
|
+
}, ae = (e) => {
|
|
2064
2070
|
g.value = e.trim(), v.value = !1;
|
|
2065
|
-
},
|
|
2071
|
+
}, oe = (e) => e.kvkNumber === l.value?.kvkNumber ? l.value.name : e.name, se = (e) => ({
|
|
2066
2072
|
kvkNumber: e.kvkNumber,
|
|
2067
2073
|
name: e.name,
|
|
2068
2074
|
city: e.city,
|
|
@@ -2072,10 +2078,10 @@ var or = {
|
|
|
2072
2078
|
return N(p, (e) => {
|
|
2073
2079
|
e || (g.value = "", v.value = !0);
|
|
2074
2080
|
}), N(_, (e) => {
|
|
2075
|
-
e && e.length >=
|
|
2081
|
+
e && e.length >= Or && w(0, e);
|
|
2076
2082
|
}), N(l, (e) => {
|
|
2077
|
-
f.value = e ?
|
|
2078
|
-
}, { immediate: !0 }), (t, r) => (y(), n(
|
|
2083
|
+
f.value = e ? se(e) : void 0, v.value = !0, e || (h.value = void 0, i("raw", null));
|
|
2084
|
+
}, { immediate: !0 }), (t, r) => (y(), n(Tt, m(E(s), {
|
|
2079
2085
|
modelValue: f.value,
|
|
2080
2086
|
"onUpdate:modelValue": r[0] ||= (e) => f.value = e,
|
|
2081
2087
|
open: p.value,
|
|
@@ -2087,7 +2093,7 @@ var or = {
|
|
|
2087
2093
|
options: I.value,
|
|
2088
2094
|
"value-key": null,
|
|
2089
2095
|
"label-key": "name",
|
|
2090
|
-
"display-value":
|
|
2096
|
+
"display-value": oe,
|
|
2091
2097
|
by: "kvkNumber",
|
|
2092
2098
|
loading: L.value,
|
|
2093
2099
|
verified: ee.value,
|
|
@@ -2096,14 +2102,14 @@ var or = {
|
|
|
2096
2102
|
"error-message": e.errorMessage,
|
|
2097
2103
|
"info-message": te.value,
|
|
2098
2104
|
"ignore-filter": "",
|
|
2099
|
-
onSelect:
|
|
2100
|
-
onBlur:
|
|
2101
|
-
onSearch:
|
|
2105
|
+
onSelect: re,
|
|
2106
|
+
onBlur: ie,
|
|
2107
|
+
onSearch: ae
|
|
2102
2108
|
}), o({
|
|
2103
|
-
item: P(({ option: e }) => [a("div",
|
|
2104
|
-
a("div",
|
|
2105
|
-
a("span",
|
|
2106
|
-
a("span",
|
|
2109
|
+
item: P(({ option: e }) => [a("div", Cr, [
|
|
2110
|
+
a("div", wr, T(e.name), 1),
|
|
2111
|
+
a("span", Tr, "Kvk: " + T(e.kvkNumber), 1),
|
|
2112
|
+
a("span", Er, T(e.city) + ", " + T(e.street), 1)
|
|
2107
2113
|
])]),
|
|
2108
2114
|
_: 2
|
|
2109
2115
|
}, [E(c).popover ? {
|
|
@@ -2129,30 +2135,30 @@ var or = {
|
|
|
2129
2135
|
"info-message"
|
|
2130
2136
|
]));
|
|
2131
2137
|
}
|
|
2132
|
-
}),
|
|
2138
|
+
}), Pr = (e = "Bedrijfsnaam of KVK-nummer is verplicht") => Se().nullable().required(e).test("has-kvk-number", e, (e) => !!e?.kvkNumber), Fr = {
|
|
2133
2139
|
min: 18,
|
|
2134
2140
|
max: 99
|
|
2135
|
-
},
|
|
2141
|
+
}, Ir = "DD-MM-YYYY", Lr = [
|
|
2136
2142
|
H.SingleWithoutChildren,
|
|
2137
2143
|
H.FamilyWithoutChildren,
|
|
2138
2144
|
H.SingleWithChildren,
|
|
2139
2145
|
H.FamilyWithChildren
|
|
2140
|
-
],
|
|
2146
|
+
], Rr = [U.Yes, U.No];
|
|
2141
2147
|
//#endregion
|
|
2142
2148
|
//#region src/utils/date.util.ts
|
|
2143
2149
|
ke.extend(Ae);
|
|
2144
|
-
function
|
|
2150
|
+
function zr() {
|
|
2145
2151
|
return ke().startOf("day");
|
|
2146
2152
|
}
|
|
2147
|
-
function
|
|
2148
|
-
return
|
|
2153
|
+
function Br() {
|
|
2154
|
+
return zr().year();
|
|
2149
2155
|
}
|
|
2150
|
-
function
|
|
2156
|
+
function Vr(e, t) {
|
|
2151
2157
|
let n = ke(e ?? "", t, !0);
|
|
2152
2158
|
return n.isValid() ? n.startOf("day") : null;
|
|
2153
2159
|
}
|
|
2154
|
-
function
|
|
2155
|
-
let n =
|
|
2160
|
+
function Hr(e, t) {
|
|
2161
|
+
let n = zr();
|
|
2156
2162
|
return {
|
|
2157
2163
|
today: n,
|
|
2158
2164
|
earliest: n.subtract(t.value + 1, t.unit).add(1, "day"),
|
|
@@ -2161,28 +2167,28 @@ function Jr(e, t) {
|
|
|
2161
2167
|
}
|
|
2162
2168
|
//#endregion
|
|
2163
2169
|
//#region src/utils/familyComposition.util.ts
|
|
2164
|
-
var
|
|
2165
|
-
function
|
|
2166
|
-
return
|
|
2170
|
+
var Ur = [H.FamilyWithChildren, H.FamilyWithoutChildren];
|
|
2171
|
+
function Wr(e) {
|
|
2172
|
+
return Ur.includes(e);
|
|
2167
2173
|
}
|
|
2168
2174
|
//#endregion
|
|
2169
2175
|
//#region src/utils/url.util.ts
|
|
2170
|
-
var
|
|
2176
|
+
var Gr = (e, t) => {
|
|
2171
2177
|
let [n, r = ""] = e.split("?"), i = new URLSearchParams(r);
|
|
2172
2178
|
return Object.entries(t).forEach(([e, t]) => i.set(e, t)), `${n}?${i.toString()}`;
|
|
2173
|
-
},
|
|
2179
|
+
}, Kr = (e, t) => {
|
|
2174
2180
|
let n = e.indexOf("#");
|
|
2175
|
-
return n === -1 ?
|
|
2181
|
+
return n === -1 ? Gr(e, t) : `${e.slice(0, n + 1)}${Gr(e.slice(n + 1), t)}`;
|
|
2176
2182
|
};
|
|
2177
2183
|
//#endregion
|
|
2178
2184
|
//#region src/schemas/birthdateRange.ts
|
|
2179
|
-
function
|
|
2185
|
+
function qr(e, t, n = "ageRange") {
|
|
2180
2186
|
return {
|
|
2181
2187
|
name: n,
|
|
2182
2188
|
test(n, r) {
|
|
2183
|
-
let i =
|
|
2189
|
+
let i = Vr(n, Ir);
|
|
2184
2190
|
if (!i) return !0;
|
|
2185
|
-
let { today: a, earliest: o, latest: s } =
|
|
2191
|
+
let { today: a, earliest: o, latest: s } = Hr(e.min, e.max), c = {
|
|
2186
2192
|
earliest: o,
|
|
2187
2193
|
latest: s
|
|
2188
2194
|
};
|
|
@@ -2205,6 +2211,7 @@ var Q = {
|
|
|
2205
2211
|
kindRequired: "Selecteer je fiets",
|
|
2206
2212
|
conditionRequired: "Is je fiets nieuw of tweedehands gekocht?",
|
|
2207
2213
|
priceRequired: "Vul de aankoopprijs in (afgerond bedrag)",
|
|
2214
|
+
priceMin: "Het ingevulde bedrag is te laag. Voer een bedrag hoger dan € 0,- in",
|
|
2208
2215
|
priceMax: (e) => `Het ingevulde bedrag is te hoog. Voer een bedrag in tot maximaal € ${e},-`,
|
|
2209
2216
|
brandRequired: "Kies het merk van je fiets"
|
|
2210
2217
|
},
|
|
@@ -2224,18 +2231,18 @@ var Q = {
|
|
|
2224
2231
|
pet: {
|
|
2225
2232
|
kindRequired: "Selecteer je huisdier",
|
|
2226
2233
|
outOfRange: (e, t) => `Je huisdier dient geboren te zijn tussen ${e} en ${t}`,
|
|
2227
|
-
|
|
2228
|
-
|
|
2234
|
+
zipCodeRequired: "Vul je postcode in",
|
|
2235
|
+
zipCodeInvalid: "Postcode is incorrect"
|
|
2229
2236
|
},
|
|
2230
2237
|
travel: { paymentTermRequired: "Selecteer een dekking" }
|
|
2231
2238
|
};
|
|
2232
2239
|
//#endregion
|
|
2233
2240
|
//#region src/schemas/birthdate.schema.ts
|
|
2234
|
-
function
|
|
2235
|
-
return
|
|
2241
|
+
function Jr(e) {
|
|
2242
|
+
return Vr(e, Ir) !== null;
|
|
2236
2243
|
}
|
|
2237
|
-
function $(e =
|
|
2238
|
-
return z().required(Q.birthdate.required).test("date_format", Q.birthdate.dateFormat,
|
|
2244
|
+
function $(e = Fr) {
|
|
2245
|
+
return z().required(Q.birthdate.required).test("date_format", Q.birthdate.dateFormat, Jr).test(qr({
|
|
2239
2246
|
min: {
|
|
2240
2247
|
value: e.min,
|
|
2241
2248
|
unit: "year"
|
|
@@ -2251,39 +2258,46 @@ function $(e = Vr) {
|
|
|
2251
2258
|
}
|
|
2252
2259
|
//#endregion
|
|
2253
2260
|
//#region src/schemas/rules.ts
|
|
2254
|
-
function
|
|
2261
|
+
function Yr(e, t) {
|
|
2255
2262
|
return z().required(t).oneOf(e, t);
|
|
2256
2263
|
}
|
|
2257
|
-
function
|
|
2264
|
+
function Xr(e) {
|
|
2258
2265
|
return z().required(e);
|
|
2259
2266
|
}
|
|
2260
|
-
function
|
|
2267
|
+
function Zr(e) {
|
|
2261
2268
|
return Ce().typeError(e).required(e);
|
|
2262
2269
|
}
|
|
2263
2270
|
//#endregion
|
|
2264
2271
|
//#region src/schemas/familyComposition.schema.ts
|
|
2265
|
-
function
|
|
2266
|
-
return
|
|
2272
|
+
function Qr(e = Q.familyComposition.required) {
|
|
2273
|
+
return Yr(Lr, e);
|
|
2267
2274
|
}
|
|
2268
|
-
var
|
|
2275
|
+
var $r = Qr(), ei = Yr(Rr, Q.ownedBuilding.required), ti = [1, 7], ni = [3, 4], ri = {
|
|
2269
2276
|
raceOrMtb: 15e3,
|
|
2270
2277
|
default: 9999
|
|
2271
|
-
},
|
|
2278
|
+
}, ii = {
|
|
2279
|
+
mask: "N####",
|
|
2280
|
+
tokens: { N: { pattern: /[1-9]/ } }
|
|
2281
|
+
}, ai = (e, t) => e.test("max-value", Q.bike.priceMax(t), (e) => {
|
|
2272
2282
|
let n = Number(e);
|
|
2273
2283
|
return Number.isNaN(n) || n <= t;
|
|
2274
|
-
}),
|
|
2275
|
-
kind:
|
|
2276
|
-
condition:
|
|
2277
|
-
price: z().required(Q.bike.priceRequired).
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2284
|
+
}), oi = R({
|
|
2285
|
+
kind: Zr(Q.bike.kindRequired),
|
|
2286
|
+
condition: Zr(Q.bike.conditionRequired),
|
|
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", {
|
|
2292
|
+
is: (e) => ni.includes(Number(e)),
|
|
2293
|
+
then: (e) => ai(e, ri.raceOrMtb),
|
|
2294
|
+
otherwise: (e) => ai(e, ri.default)
|
|
2281
2295
|
}),
|
|
2282
2296
|
brand: z().when("kind", {
|
|
2283
|
-
is: (e) =>
|
|
2297
|
+
is: (e) => ti.includes(Number(e)),
|
|
2284
2298
|
then: (e) => e.required(Q.bike.brandRequired)
|
|
2285
2299
|
})
|
|
2286
|
-
}),
|
|
2300
|
+
}), si = [
|
|
2287
2301
|
{
|
|
2288
2302
|
value: 4,
|
|
2289
2303
|
title: "ATB / Mountainbike",
|
|
@@ -2350,13 +2364,13 @@ var ai = ii(), oi = ti(Wr, Q.ownedBuilding.required), si = [1, 7], ci = [3, 4],
|
|
|
2350
2364
|
name: "Vouwfiets",
|
|
2351
2365
|
isEBike: !1
|
|
2352
2366
|
}
|
|
2353
|
-
],
|
|
2367
|
+
], ci = [{
|
|
2354
2368
|
value: 1,
|
|
2355
2369
|
label: "Nieuw"
|
|
2356
2370
|
}, {
|
|
2357
2371
|
value: 0,
|
|
2358
2372
|
label: "Tweedehands"
|
|
2359
|
-
}],
|
|
2373
|
+
}], li = [
|
|
2360
2374
|
{
|
|
2361
2375
|
id: "Ander merk",
|
|
2362
2376
|
name: "Ander merk"
|
|
@@ -3777,7 +3791,7 @@ var ai = ii(), oi = ti(Wr, Q.ownedBuilding.required), si = [1, 7], ci = [3, 4],
|
|
|
3777
3791
|
id: "Zündapp",
|
|
3778
3792
|
name: "Zündapp"
|
|
3779
3793
|
}
|
|
3780
|
-
],
|
|
3794
|
+
], ui = /* @__PURE__ */ l({
|
|
3781
3795
|
__name: "BikeForm",
|
|
3782
3796
|
props: /*@__PURE__*/ f({
|
|
3783
3797
|
initialData: {},
|
|
@@ -3794,20 +3808,20 @@ var ai = ii(), oi = ti(Wr, Q.ownedBuilding.required), si = [1, 7], ci = [3, 4],
|
|
|
3794
3808
|
...K,
|
|
3795
3809
|
title: "Fietsverzekering vergelijken"
|
|
3796
3810
|
}),
|
|
3797
|
-
emits: ["
|
|
3811
|
+
emits: ["submitted"],
|
|
3798
3812
|
setup(e, { emit: i }) {
|
|
3799
|
-
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, {
|
|
3800
3814
|
kind: a.initialData?.kind ?? null,
|
|
3801
3815
|
condition: a.initialData?.condition ?? 1,
|
|
3802
3816
|
price: a.initialData?.price ?? "",
|
|
3803
3817
|
brand: a.initialData?.brand ?? ""
|
|
3804
|
-
}), [h, g, _] = f("kind", { validateAt: "change" }), [v, b, x] = f("brand", { validateAt: "change" }), [S, C, w] = f("condition"), [T, D, O] = f("price"), k = t(() =>
|
|
3818
|
+
}), [h, g, _] = f("kind", { validateAt: "change" }), [v, b, x] = f("brand", { validateAt: "change" }), [S, C, w] = f("condition"), [T, D, O] = f("price"), k = t(() => ti.includes(Number(h.value)));
|
|
3805
3819
|
N(h, (e) => {
|
|
3806
|
-
|
|
3820
|
+
ti.includes(Number(e)) || p("brand", { value: "" });
|
|
3807
3821
|
}, { immediate: !0 });
|
|
3808
3822
|
function A() {
|
|
3809
3823
|
u((e) => {
|
|
3810
|
-
s("
|
|
3824
|
+
s("submitted", { ...e });
|
|
3811
3825
|
});
|
|
3812
3826
|
}
|
|
3813
3827
|
return (t, i) => (y(), n(E(Y), m(E(o), {
|
|
@@ -3824,7 +3838,7 @@ var ai = ii(), oi = ti(Wr, Q.ownedBuilding.required), si = [1, 7], ci = [3, 4],
|
|
|
3824
3838
|
"onUpdate:modelValue": i[0] ||= (e) => d(h) ? h.value = e : null,
|
|
3825
3839
|
modelModifiers: { number: !0 },
|
|
3826
3840
|
label: "Soort fiets",
|
|
3827
|
-
options: E(
|
|
3841
|
+
options: E(si),
|
|
3828
3842
|
name: "kind",
|
|
3829
3843
|
required: !1,
|
|
3830
3844
|
"error-message": E(_)
|
|
@@ -3840,12 +3854,12 @@ var ai = ii(), oi = ti(Wr, Q.ownedBuilding.required), si = [1, 7], ci = [3, 4],
|
|
|
3840
3854
|
span: "2",
|
|
3841
3855
|
md: "6"
|
|
3842
3856
|
}, {
|
|
3843
|
-
default: P(() => [c(E(
|
|
3857
|
+
default: P(() => [c(E(Tt), m({
|
|
3844
3858
|
modelValue: E(v),
|
|
3845
3859
|
"onUpdate:modelValue": i[1] ||= (e) => d(v) ? v.value = e : null,
|
|
3846
3860
|
label: "Merk fiets",
|
|
3847
3861
|
placeholder: "Typ of kies je merk",
|
|
3848
|
-
options: E(
|
|
3862
|
+
options: E(li),
|
|
3849
3863
|
"label-key": "name",
|
|
3850
3864
|
"value-key": "id",
|
|
3851
3865
|
name: "brand",
|
|
@@ -3862,12 +3876,12 @@ var ai = ii(), oi = ti(Wr, Q.ownedBuilding.required), si = [1, 7], ci = [3, 4],
|
|
|
3862
3876
|
span: "4",
|
|
3863
3877
|
md: "6"
|
|
3864
3878
|
}, {
|
|
3865
|
-
default: P(() => [c(E(
|
|
3879
|
+
default: P(() => [c(E(Lt), m({
|
|
3866
3880
|
modelValue: E(S),
|
|
3867
3881
|
"onUpdate:modelValue": i[2] ||= (e) => d(S) ? S.value = e : null,
|
|
3868
3882
|
legend: "Gekocht als",
|
|
3869
3883
|
name: "condition",
|
|
3870
|
-
options: E(
|
|
3884
|
+
options: E(ci),
|
|
3871
3885
|
variant: "boxed",
|
|
3872
3886
|
required: !1,
|
|
3873
3887
|
"error-message": E(w)
|
|
@@ -3882,17 +3896,22 @@ var ai = ii(), oi = ti(Wr, Q.ownedBuilding.required), si = [1, 7], ci = [3, 4],
|
|
|
3882
3896
|
span: "2",
|
|
3883
3897
|
md: "6"
|
|
3884
3898
|
}, {
|
|
3885
|
-
default: P(() => [c(E(
|
|
3899
|
+
default: P(() => [c(E(We), m({
|
|
3886
3900
|
modelValue: E(T),
|
|
3887
3901
|
"onUpdate:modelValue": i[3] ||= (e) => d(T) ? T.value = e : null,
|
|
3888
3902
|
label: "Aankoopprijs",
|
|
3889
3903
|
placeholder: "bv. 1 000",
|
|
3890
3904
|
icon: "far fa-euro-sign",
|
|
3891
3905
|
name: "price",
|
|
3892
|
-
mask:
|
|
3906
|
+
mask: E(ii),
|
|
3907
|
+
inputmode: "numeric",
|
|
3893
3908
|
required: !1,
|
|
3894
3909
|
"error-message": E(O)
|
|
3895
|
-
}, E(D)), null, 16, [
|
|
3910
|
+
}, E(D)), null, 16, [
|
|
3911
|
+
"modelValue",
|
|
3912
|
+
"mask",
|
|
3913
|
+
"error-message"
|
|
3914
|
+
])]),
|
|
3896
3915
|
_: 1
|
|
3897
3916
|
})
|
|
3898
3917
|
]),
|
|
@@ -3902,7 +3921,7 @@ var ai = ii(), oi = ti(Wr, Q.ownedBuilding.required), si = [1, 7], ci = [3, 4],
|
|
|
3902
3921
|
});
|
|
3903
3922
|
//#endregion
|
|
3904
3923
|
//#region src/comparisons/bike/bike.presenter.ts
|
|
3905
|
-
function
|
|
3924
|
+
function di(e) {
|
|
3906
3925
|
return {
|
|
3907
3926
|
comparison: V.Bike,
|
|
3908
3927
|
detail: { bike: {
|
|
@@ -3916,27 +3935,27 @@ function gi(e) {
|
|
|
3916
3935
|
}
|
|
3917
3936
|
//#endregion
|
|
3918
3937
|
//#region src/comparisons/pet/constants.ts
|
|
3919
|
-
var
|
|
3938
|
+
var fi = {
|
|
3920
3939
|
min: 0,
|
|
3921
3940
|
max: 99
|
|
3922
|
-
},
|
|
3941
|
+
}, pi = R({
|
|
3923
3942
|
kind: z().required(Q.pet.kindRequired),
|
|
3924
|
-
age: z().required(Q.birthdate.required).test("date_format", Q.birthdate.dateFormat,
|
|
3943
|
+
age: z().required(Q.birthdate.required).test("date_format", Q.birthdate.dateFormat, Jr).test(qr({
|
|
3925
3944
|
min: {
|
|
3926
3945
|
value: 7,
|
|
3927
3946
|
unit: "week"
|
|
3928
3947
|
},
|
|
3929
3948
|
max: {
|
|
3930
|
-
value:
|
|
3949
|
+
value: fi.max,
|
|
3931
3950
|
unit: "year"
|
|
3932
3951
|
}
|
|
3933
3952
|
}, {
|
|
3934
|
-
future: () => Q.birthdate.tooYoung(
|
|
3935
|
-
tooYoung: ({ earliest: e, latest: t }) => Q.pet.outOfRange(e.format(
|
|
3936
|
-
tooOld: () => Q.birthdate.tooOld(
|
|
3953
|
+
future: () => Q.birthdate.tooYoung(fi.min),
|
|
3954
|
+
tooYoung: ({ earliest: e, latest: t }) => Q.pet.outOfRange(e.format(Ir), t.format(Ir)),
|
|
3955
|
+
tooOld: () => Q.birthdate.tooOld(fi.max)
|
|
3937
3956
|
}, "birthdate_range")),
|
|
3938
|
-
|
|
3939
|
-
}),
|
|
3957
|
+
zipCode: z().required(Q.pet.zipCodeRequired).matches(/^\d{4}\s?[a-zA-Z]{2}$/, Q.pet.zipCodeInvalid)
|
|
3958
|
+
}), mi = [
|
|
3940
3959
|
{
|
|
3941
3960
|
title: "Hond",
|
|
3942
3961
|
value: "dog"
|
|
@@ -3953,7 +3972,7 @@ var _i = {
|
|
|
3953
3972
|
title: "Vogel",
|
|
3954
3973
|
value: "bird"
|
|
3955
3974
|
}
|
|
3956
|
-
],
|
|
3975
|
+
], hi = /* @__PURE__ */ l({
|
|
3957
3976
|
__name: "PetForm",
|
|
3958
3977
|
props: /*@__PURE__*/ f({
|
|
3959
3978
|
initialData: {},
|
|
@@ -3970,16 +3989,16 @@ var _i = {
|
|
|
3970
3989
|
...K,
|
|
3971
3990
|
title: "Dierenverzekering vergelijken"
|
|
3972
3991
|
}),
|
|
3973
|
-
emits: ["
|
|
3992
|
+
emits: ["submitted"],
|
|
3974
3993
|
setup(e, { emit: t }) {
|
|
3975
|
-
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, {
|
|
3976
3995
|
kind: r.initialData?.kind ?? "dog",
|
|
3977
3996
|
age: r.initialData?.age ?? "",
|
|
3978
|
-
|
|
3979
|
-
}), [u, f, p] = l("kind", { validateAt: "change" }), [h, g, _] = l("age"), [v, b, x] = l("
|
|
3997
|
+
zipCode: r.initialData?.zipCode ?? ""
|
|
3998
|
+
}), [u, f, p] = l("kind", { validateAt: "change" }), [h, g, _] = l("age"), [v, b, x] = l("zipCode");
|
|
3980
3999
|
function S() {
|
|
3981
4000
|
s((e) => {
|
|
3982
|
-
a("
|
|
4001
|
+
a("submitted", { ...e });
|
|
3983
4002
|
});
|
|
3984
4003
|
}
|
|
3985
4004
|
return (t, r) => (y(), n(E(Y), m(E(i), {
|
|
@@ -3996,7 +4015,7 @@ var _i = {
|
|
|
3996
4015
|
"onUpdate:modelValue": r[0] ||= (e) => d(u) ? u.value = e : null,
|
|
3997
4016
|
label: "Wat voor huisdier wil je verzekeren?",
|
|
3998
4017
|
placeholder: "",
|
|
3999
|
-
options: E(
|
|
4018
|
+
options: E(mi),
|
|
4000
4019
|
name: "kind",
|
|
4001
4020
|
required: !1,
|
|
4002
4021
|
"error-message": E(p)
|
|
@@ -4034,12 +4053,12 @@ var _i = {
|
|
|
4034
4053
|
span: "2",
|
|
4035
4054
|
md: "6"
|
|
4036
4055
|
}, {
|
|
4037
|
-
default: P(() => [c(E(
|
|
4056
|
+
default: P(() => [c(E(We), m({
|
|
4038
4057
|
modelValue: E(v),
|
|
4039
4058
|
"onUpdate:modelValue": r[2] ||= (e) => d(v) ? v.value = e : null,
|
|
4040
4059
|
label: "Postcode",
|
|
4041
4060
|
placeholder: "bv. 1234 AZ",
|
|
4042
|
-
name: "
|
|
4061
|
+
name: "zipCode",
|
|
4043
4062
|
mask: "####@@",
|
|
4044
4063
|
capitalize: "",
|
|
4045
4064
|
required: !1,
|
|
@@ -4065,23 +4084,23 @@ var _i = {
|
|
|
4065
4084
|
});
|
|
4066
4085
|
//#endregion
|
|
4067
4086
|
//#region src/comparisons/pet/pet.presenter.ts
|
|
4068
|
-
function
|
|
4087
|
+
function gi(e) {
|
|
4069
4088
|
return {
|
|
4070
4089
|
comparison: V.Pet,
|
|
4071
4090
|
detail: { pet: {
|
|
4072
4091
|
kind: e.kind,
|
|
4073
4092
|
age: e.age
|
|
4074
4093
|
} },
|
|
4075
|
-
user: {
|
|
4094
|
+
user: { zipCode: e.zipCode }
|
|
4076
4095
|
};
|
|
4077
4096
|
}
|
|
4078
4097
|
//#endregion
|
|
4079
4098
|
//#region src/comparisons/caravan/caravan.schema.ts
|
|
4080
|
-
var
|
|
4081
|
-
TypeOfCaravan:
|
|
4082
|
-
NewOrOccasion:
|
|
4083
|
-
BuildYear:
|
|
4084
|
-
}),
|
|
4099
|
+
var _i = R({
|
|
4100
|
+
TypeOfCaravan: Xr(Q.caravan.typeOfCaravanRequired),
|
|
4101
|
+
NewOrOccasion: Yr(Rr, Q.caravan.newOrOccasionRequired),
|
|
4102
|
+
BuildYear: Xr(Q.caravan.buildYearRequired)
|
|
4103
|
+
}), vi = [
|
|
4085
4104
|
{
|
|
4086
4105
|
value: "CS",
|
|
4087
4106
|
title: "Stacaravan"
|
|
@@ -4094,7 +4113,7 @@ var Si = R({
|
|
|
4094
4113
|
value: "CV",
|
|
4095
4114
|
title: "Vouwwagen"
|
|
4096
4115
|
}
|
|
4097
|
-
],
|
|
4116
|
+
], yi = [{
|
|
4098
4117
|
value: U.Yes,
|
|
4099
4118
|
label: "Nieuw"
|
|
4100
4119
|
}, {
|
|
@@ -4103,8 +4122,8 @@ var Si = R({
|
|
|
4103
4122
|
}];
|
|
4104
4123
|
//#endregion
|
|
4105
4124
|
//#region src/comparisons/caravan/models/buildYears.model.ts
|
|
4106
|
-
function
|
|
4107
|
-
let e =
|
|
4125
|
+
function bi() {
|
|
4126
|
+
let e = Br();
|
|
4108
4127
|
return Array.from({ length: 126 }, (t, n) => ({
|
|
4109
4128
|
title: String(e - n),
|
|
4110
4129
|
value: String(e - n)
|
|
@@ -4112,7 +4131,7 @@ function Ti() {
|
|
|
4112
4131
|
}
|
|
4113
4132
|
//#endregion
|
|
4114
4133
|
//#region src/comparisons/caravan/CaravanForm.vue
|
|
4115
|
-
var
|
|
4134
|
+
var xi = /* @__PURE__ */ l({
|
|
4116
4135
|
__name: "CaravanForm",
|
|
4117
4136
|
props: /*@__PURE__*/ f({
|
|
4118
4137
|
initialData: {},
|
|
@@ -4129,16 +4148,16 @@ var Ei = /* @__PURE__ */ l({
|
|
|
4129
4148
|
...K,
|
|
4130
4149
|
title: "Caravanverzekering vergelijken"
|
|
4131
4150
|
}),
|
|
4132
|
-
emits: ["
|
|
4151
|
+
emits: ["submitted"],
|
|
4133
4152
|
setup(e, { emit: t }) {
|
|
4134
|
-
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, {
|
|
4135
4154
|
TypeOfCaravan: r.initialData?.TypeOfCaravan ?? null,
|
|
4136
4155
|
NewOrOccasion: r.initialData?.NewOrOccasion ?? U.Yes,
|
|
4137
4156
|
BuildYear: r.initialData?.BuildYear ?? null
|
|
4138
4157
|
}), [f, p, h] = u("TypeOfCaravan", { validateAt: "change" }), [g, _, v] = u("NewOrOccasion"), [b, x, S] = u("BuildYear", { validateAt: "change" });
|
|
4139
4158
|
function C() {
|
|
4140
4159
|
l((e) => {
|
|
4141
|
-
a("
|
|
4160
|
+
a("submitted", { ...e });
|
|
4142
4161
|
});
|
|
4143
4162
|
}
|
|
4144
4163
|
return (t, r) => (y(), n(E(Y), m(E(i), {
|
|
@@ -4154,7 +4173,7 @@ var Ei = /* @__PURE__ */ l({
|
|
|
4154
4173
|
modelValue: E(f),
|
|
4155
4174
|
"onUpdate:modelValue": r[0] ||= (e) => d(f) ? f.value = e : null,
|
|
4156
4175
|
label: "Soort caravan",
|
|
4157
|
-
options: E(
|
|
4176
|
+
options: E(vi),
|
|
4158
4177
|
name: "typeOfCaravan",
|
|
4159
4178
|
required: !1,
|
|
4160
4179
|
"error-message": E(h)
|
|
@@ -4169,12 +4188,12 @@ var Ei = /* @__PURE__ */ l({
|
|
|
4169
4188
|
span: "4",
|
|
4170
4189
|
md: "6"
|
|
4171
4190
|
}, {
|
|
4172
|
-
default: P(() => [c(E(
|
|
4191
|
+
default: P(() => [c(E(Lt), m({
|
|
4173
4192
|
modelValue: E(g),
|
|
4174
4193
|
"onUpdate:modelValue": r[1] ||= (e) => d(g) ? g.value = e : null,
|
|
4175
4194
|
legend: "Gekocht als",
|
|
4176
4195
|
name: "newOrOccasion",
|
|
4177
|
-
options: E(
|
|
4196
|
+
options: E(yi),
|
|
4178
4197
|
variant: "boxed",
|
|
4179
4198
|
required: !1,
|
|
4180
4199
|
"error-message": E(v)
|
|
@@ -4211,7 +4230,7 @@ var Ei = /* @__PURE__ */ l({
|
|
|
4211
4230
|
});
|
|
4212
4231
|
//#endregion
|
|
4213
4232
|
//#region src/comparisons/caravan/caravan.presenter.ts
|
|
4214
|
-
function
|
|
4233
|
+
function Si(e) {
|
|
4215
4234
|
return {
|
|
4216
4235
|
comparison: V.Caravan,
|
|
4217
4236
|
detail: { caravan: {
|
|
@@ -4224,18 +4243,18 @@ function Di(e) {
|
|
|
4224
4243
|
}
|
|
4225
4244
|
//#endregion
|
|
4226
4245
|
//#region src/comparisons/travel/paymentTerm.enum.ts
|
|
4227
|
-
var
|
|
4246
|
+
var Ci = /* @__PURE__ */ function(e) {
|
|
4228
4247
|
return e.Continuous = "L", e.ShortTerm = "S", e;
|
|
4229
|
-
}({}),
|
|
4230
|
-
PaymentTerm:
|
|
4248
|
+
}({}), wi = R({
|
|
4249
|
+
PaymentTerm: Yr([Ci.Continuous, Ci.ShortTerm], Q.travel.paymentTermRequired),
|
|
4231
4250
|
birthdate: $()
|
|
4232
|
-
}),
|
|
4233
|
-
value:
|
|
4251
|
+
}), Ti = [{
|
|
4252
|
+
value: Ci.Continuous,
|
|
4234
4253
|
label: "Doorlopend"
|
|
4235
4254
|
}, {
|
|
4236
|
-
value:
|
|
4255
|
+
value: Ci.ShortTerm,
|
|
4237
4256
|
label: "Kortlopend"
|
|
4238
|
-
}],
|
|
4257
|
+
}], Ei = /* @__PURE__ */ l({
|
|
4239
4258
|
__name: "TravelForm",
|
|
4240
4259
|
props: /*@__PURE__*/ f({
|
|
4241
4260
|
initialData: {},
|
|
@@ -4252,15 +4271,15 @@ var Oi = /* @__PURE__ */ function(e) {
|
|
|
4252
4271
|
...K,
|
|
4253
4272
|
title: "Reisverzekering vergelijken"
|
|
4254
4273
|
}),
|
|
4255
|
-
emits: ["
|
|
4274
|
+
emits: ["submitted"],
|
|
4256
4275
|
setup(e, { emit: t }) {
|
|
4257
|
-
let r = e, i = q(r), a = t, { isSubmitting: o, handleSubmit: s, defineField: l } = Z(
|
|
4258
|
-
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,
|
|
4259
4278
|
birthdate: r.initialData?.birthdate ?? ""
|
|
4260
4279
|
}), [u, f, p] = l("PaymentTerm", { validateAt: "change" }), [h, g, _] = l("birthdate");
|
|
4261
4280
|
function v() {
|
|
4262
4281
|
s((e) => {
|
|
4263
|
-
a("
|
|
4282
|
+
a("submitted", { ...e });
|
|
4264
4283
|
});
|
|
4265
4284
|
}
|
|
4266
4285
|
return (t, r) => (y(), n(E(Y), m(E(i), {
|
|
@@ -4271,12 +4290,12 @@ var Oi = /* @__PURE__ */ function(e) {
|
|
|
4271
4290
|
span: "5",
|
|
4272
4291
|
md: "6"
|
|
4273
4292
|
}, {
|
|
4274
|
-
default: P(() => [c(E(
|
|
4293
|
+
default: P(() => [c(E(Lt), m({
|
|
4275
4294
|
modelValue: E(u),
|
|
4276
4295
|
"onUpdate:modelValue": r[0] ||= (e) => d(u) ? u.value = e : null,
|
|
4277
4296
|
legend: "Kies je dekking",
|
|
4278
4297
|
name: "PaymentTerm",
|
|
4279
|
-
options: E(
|
|
4298
|
+
options: E(Ti),
|
|
4280
4299
|
variant: "boxed",
|
|
4281
4300
|
required: !1,
|
|
4282
4301
|
"error-message": E(p)
|
|
@@ -4314,7 +4333,7 @@ var Oi = /* @__PURE__ */ function(e) {
|
|
|
4314
4333
|
});
|
|
4315
4334
|
//#endregion
|
|
4316
4335
|
//#region src/comparisons/travel/travel.presenter.ts
|
|
4317
|
-
function
|
|
4336
|
+
function Di(e) {
|
|
4318
4337
|
return {
|
|
4319
4338
|
comparison: V.Travel,
|
|
4320
4339
|
detail: { comparison: { PaymentTerm: e.PaymentTerm } },
|
|
@@ -4323,11 +4342,11 @@ function Mi(e) {
|
|
|
4323
4342
|
}
|
|
4324
4343
|
//#endregion
|
|
4325
4344
|
//#region src/comparisons/liability/liability.schema.ts
|
|
4326
|
-
var
|
|
4345
|
+
var Oi = (e) => R({
|
|
4327
4346
|
address: e,
|
|
4328
4347
|
birthdate: $(),
|
|
4329
|
-
familyComposition:
|
|
4330
|
-
}),
|
|
4348
|
+
familyComposition: $r
|
|
4349
|
+
}), ki = /* @__PURE__ */ l({
|
|
4331
4350
|
__name: "LiabilityForm",
|
|
4332
4351
|
props: /*@__PURE__*/ f({
|
|
4333
4352
|
initialData: {},
|
|
@@ -4344,16 +4363,16 @@ var Ni = (e) => R({
|
|
|
4344
4363
|
...K,
|
|
4345
4364
|
title: "Aansprakelijkheidsverzekering vergelijken"
|
|
4346
4365
|
}),
|
|
4347
|
-
emits: ["
|
|
4366
|
+
emits: ["submitted"],
|
|
4348
4367
|
setup(e, { emit: t }) {
|
|
4349
|
-
let r = e, i = q(r), a = t, { addressSchema: o, draft: s, resolvedAddress: l, additionOptions: u } =
|
|
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), {
|
|
4350
4369
|
birthdate: r.initialData?.birthdate ?? "",
|
|
4351
4370
|
familyComposition: r.initialData?.familyComposition ?? H.SingleWithoutChildren,
|
|
4352
4371
|
address: s
|
|
4353
4372
|
}), [g, _, v] = h("birthdate"), [b, x, S] = h("familyComposition", { validateAt: "change" });
|
|
4354
4373
|
function C() {
|
|
4355
4374
|
p(({ birthdate: e, familyComposition: t }) => {
|
|
4356
|
-
a("
|
|
4375
|
+
a("submitted", {
|
|
4357
4376
|
birthdate: e,
|
|
4358
4377
|
familyComposition: t,
|
|
4359
4378
|
address: l.value
|
|
@@ -4369,7 +4388,7 @@ var Ni = (e) => R({
|
|
|
4369
4388
|
span: "5",
|
|
4370
4389
|
md: "6"
|
|
4371
4390
|
}, {
|
|
4372
|
-
default: P(() => [c(E(
|
|
4391
|
+
default: P(() => [c(E(bn), {
|
|
4373
4392
|
"resolved-address": E(l),
|
|
4374
4393
|
"onUpdate:resolvedAddress": r[0] ||= (e) => d(l) ? l.value = e : null,
|
|
4375
4394
|
"addition-options": E(u)
|
|
@@ -4391,7 +4410,7 @@ var Ni = (e) => R({
|
|
|
4391
4410
|
span: "3",
|
|
4392
4411
|
md: "6"
|
|
4393
4412
|
}, {
|
|
4394
|
-
default: P(() => [c(E(
|
|
4413
|
+
default: P(() => [c(E(cn), m({
|
|
4395
4414
|
modelValue: E(b),
|
|
4396
4415
|
"onUpdate:modelValue": r[2] ||= (e) => d(b) ? b.value = e : null,
|
|
4397
4416
|
"error-message": E(S)
|
|
@@ -4405,7 +4424,7 @@ var Ni = (e) => R({
|
|
|
4405
4424
|
});
|
|
4406
4425
|
//#endregion
|
|
4407
4426
|
//#region src/comparisons/liability/liability.presenter.ts
|
|
4408
|
-
function
|
|
4427
|
+
function Ai(e) {
|
|
4409
4428
|
return {
|
|
4410
4429
|
comparison: V.Liability,
|
|
4411
4430
|
detail: { liability: {
|
|
@@ -4413,7 +4432,7 @@ function Fi(e) {
|
|
|
4413
4432
|
Deductables: 100
|
|
4414
4433
|
} },
|
|
4415
4434
|
user: {
|
|
4416
|
-
|
|
4435
|
+
zipCode: e.address.zipCode,
|
|
4417
4436
|
houseNumber: e.address.houseNumber,
|
|
4418
4437
|
houseNumberAddition: e.address.houseNumberAddition,
|
|
4419
4438
|
birthdate: e.birthdate,
|
|
@@ -4425,17 +4444,17 @@ function Fi(e) {
|
|
|
4425
4444
|
}
|
|
4426
4445
|
//#endregion
|
|
4427
4446
|
//#region src/models/houseOwnedBuilding.model.ts
|
|
4428
|
-
var
|
|
4447
|
+
var ji = [{
|
|
4429
4448
|
value: U.Yes,
|
|
4430
4449
|
label: "Gekocht"
|
|
4431
4450
|
}, {
|
|
4432
4451
|
value: U.No,
|
|
4433
4452
|
label: "Verhuurd"
|
|
4434
|
-
}],
|
|
4453
|
+
}], Mi = (e) => R({
|
|
4435
4454
|
address: e,
|
|
4436
|
-
ownedBuilding:
|
|
4437
|
-
familyComposition:
|
|
4438
|
-
}),
|
|
4455
|
+
ownedBuilding: ei,
|
|
4456
|
+
familyComposition: Qr(Q.house.familyCompositionRequired)
|
|
4457
|
+
}), Ni = /* @__PURE__ */ l({
|
|
4439
4458
|
__name: "HouseForm",
|
|
4440
4459
|
props: /*@__PURE__*/ f({
|
|
4441
4460
|
initialData: {},
|
|
@@ -4452,16 +4471,16 @@ var Ii = [{
|
|
|
4452
4471
|
...K,
|
|
4453
4472
|
title: "Woonverzekering vergelijken"
|
|
4454
4473
|
}),
|
|
4455
|
-
emits: ["
|
|
4474
|
+
emits: ["submitted"],
|
|
4456
4475
|
setup(e, { emit: t }) {
|
|
4457
|
-
let r = e, i = q(r), a = t, { addressSchema: o, draft: s, resolvedAddress: l, additionOptions: u } =
|
|
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), {
|
|
4458
4477
|
ownedBuilding: r.initialData?.ownedBuilding ?? U.Yes,
|
|
4459
4478
|
familyComposition: r.initialData?.familyComposition ?? H.SingleWithoutChildren,
|
|
4460
4479
|
address: s
|
|
4461
4480
|
}), [g, _, v] = h("ownedBuilding"), [b, x, S] = h("familyComposition", { validateAt: "change" });
|
|
4462
4481
|
function C() {
|
|
4463
4482
|
p(({ ownedBuilding: e, familyComposition: t }) => {
|
|
4464
|
-
a("
|
|
4483
|
+
a("submitted", {
|
|
4465
4484
|
ownedBuilding: e,
|
|
4466
4485
|
familyComposition: t,
|
|
4467
4486
|
address: l.value
|
|
@@ -4477,7 +4496,7 @@ var Ii = [{
|
|
|
4477
4496
|
span: "4",
|
|
4478
4497
|
md: "6"
|
|
4479
4498
|
}, {
|
|
4480
|
-
default: P(() => [c(E(
|
|
4499
|
+
default: P(() => [c(E(bn), {
|
|
4481
4500
|
"resolved-address": E(l),
|
|
4482
4501
|
"onUpdate:resolvedAddress": r[0] ||= (e) => d(l) ? l.value = e : null,
|
|
4483
4502
|
"addition-options": E(u)
|
|
@@ -4488,12 +4507,12 @@ var Ii = [{
|
|
|
4488
4507
|
span: "3",
|
|
4489
4508
|
md: "3"
|
|
4490
4509
|
}, {
|
|
4491
|
-
default: P(() => [c(E(
|
|
4510
|
+
default: P(() => [c(E(Lt), m({
|
|
4492
4511
|
modelValue: E(g),
|
|
4493
4512
|
"onUpdate:modelValue": r[1] ||= (e) => d(g) ? g.value = e : null,
|
|
4494
4513
|
legend: "Jouw woning is...",
|
|
4495
4514
|
name: "ownedBuilding",
|
|
4496
|
-
options: E(
|
|
4515
|
+
options: E(ji),
|
|
4497
4516
|
variant: "boxed",
|
|
4498
4517
|
required: !1,
|
|
4499
4518
|
"error-message": E(v)
|
|
@@ -4508,7 +4527,7 @@ var Ii = [{
|
|
|
4508
4527
|
span: "3",
|
|
4509
4528
|
md: "3"
|
|
4510
4529
|
}, {
|
|
4511
|
-
default: P(() => [c(E(
|
|
4530
|
+
default: P(() => [c(E(cn), m({
|
|
4512
4531
|
modelValue: E(b),
|
|
4513
4532
|
"onUpdate:modelValue": r[2] ||= (e) => d(b) ? b.value = e : null,
|
|
4514
4533
|
"error-message": E(S)
|
|
@@ -4522,12 +4541,12 @@ var Ii = [{
|
|
|
4522
4541
|
});
|
|
4523
4542
|
//#endregion
|
|
4524
4543
|
//#region src/comparisons/house/house.presenter.ts
|
|
4525
|
-
function
|
|
4544
|
+
function Pi(e) {
|
|
4526
4545
|
return {
|
|
4527
4546
|
comparison: V.Housing,
|
|
4528
4547
|
detail: { house: { ownedBuilding: e.ownedBuilding } },
|
|
4529
4548
|
user: {
|
|
4530
|
-
|
|
4549
|
+
zipCode: e.address.zipCode,
|
|
4531
4550
|
houseNumber: e.address.houseNumber,
|
|
4532
4551
|
houseNumberAddition: e.address.houseNumberAddition,
|
|
4533
4552
|
street: e.address.street,
|
|
@@ -4538,22 +4557,22 @@ function zi(e) {
|
|
|
4538
4557
|
}
|
|
4539
4558
|
//#endregion
|
|
4540
4559
|
//#region src/comparisons/legal/constants.ts
|
|
4541
|
-
var
|
|
4560
|
+
var Fi = H.SingleWithChildren, Ii = (e) => R({
|
|
4542
4561
|
address: e,
|
|
4543
|
-
ownedBuilding:
|
|
4562
|
+
ownedBuilding: ei,
|
|
4544
4563
|
birthdate: $(),
|
|
4545
|
-
familyComposition:
|
|
4564
|
+
familyComposition: $r,
|
|
4546
4565
|
familySize: z().defined().when("familyComposition", {
|
|
4547
|
-
is:
|
|
4566
|
+
is: Fi,
|
|
4548
4567
|
then: (e) => e.required(Q.legal.familySizeRequired)
|
|
4549
4568
|
})
|
|
4550
|
-
}),
|
|
4569
|
+
}), Li = [{
|
|
4551
4570
|
title: "Alleenstaande met 1 kind",
|
|
4552
4571
|
value: "2"
|
|
4553
4572
|
}, {
|
|
4554
4573
|
title: "Alleenstaande met 2 of meer kinderen",
|
|
4555
4574
|
value: "3"
|
|
4556
|
-
}],
|
|
4575
|
+
}], Ri = /* @__PURE__ */ l({
|
|
4557
4576
|
__name: "LegalForm",
|
|
4558
4577
|
props: /*@__PURE__*/ f({
|
|
4559
4578
|
initialData: {},
|
|
@@ -4570,21 +4589,21 @@ var Bi = H.SingleWithChildren, Vi = (e) => R({
|
|
|
4570
4589
|
...K,
|
|
4571
4590
|
title: "Rechtsbijstandverzekering vergelijken"
|
|
4572
4591
|
}),
|
|
4573
|
-
emits: ["
|
|
4592
|
+
emits: ["submitted"],
|
|
4574
4593
|
setup(e, { emit: i }) {
|
|
4575
|
-
let a = e, o = q(a), s = i, { addressSchema: l, draft: u, resolvedAddress: f, additionOptions: p } =
|
|
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), {
|
|
4576
4595
|
ownedBuilding: a.initialData?.ownedBuilding ?? U.Yes,
|
|
4577
4596
|
birthdate: a.initialData?.birthdate ?? "",
|
|
4578
4597
|
familyComposition: a.initialData?.familyComposition ?? H.SingleWithoutChildren,
|
|
4579
4598
|
familySize: a.initialData?.familySize ?? "",
|
|
4580
4599
|
address: u
|
|
4581
|
-
}), [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);
|
|
4582
4601
|
N(D, (e) => {
|
|
4583
|
-
e !==
|
|
4602
|
+
e !== Fi && v("familySize", { value: "" });
|
|
4584
4603
|
}, { immediate: !0 });
|
|
4585
4604
|
function I() {
|
|
4586
4605
|
g(({ ownedBuilding: e, birthdate: t, familyComposition: n, familySize: r }) => {
|
|
4587
|
-
s("
|
|
4606
|
+
s("submitted", {
|
|
4588
4607
|
ownedBuilding: e,
|
|
4589
4608
|
birthdate: t,
|
|
4590
4609
|
familyComposition: n,
|
|
@@ -4602,7 +4621,7 @@ var Bi = H.SingleWithChildren, Vi = (e) => R({
|
|
|
4602
4621
|
span: "3",
|
|
4603
4622
|
md: "6"
|
|
4604
4623
|
}, {
|
|
4605
|
-
default: P(() => [c(E(
|
|
4624
|
+
default: P(() => [c(E(bn), {
|
|
4606
4625
|
"resolved-address": E(f),
|
|
4607
4626
|
"onUpdate:resolvedAddress": i[0] ||= (e) => d(f) ? f.value = e : null,
|
|
4608
4627
|
"addition-options": E(p)
|
|
@@ -4613,12 +4632,12 @@ var Bi = H.SingleWithChildren, Vi = (e) => R({
|
|
|
4613
4632
|
span: "3",
|
|
4614
4633
|
md: "6"
|
|
4615
4634
|
}, {
|
|
4616
|
-
default: P(() => [c(E(
|
|
4635
|
+
default: P(() => [c(E(Lt), m({
|
|
4617
4636
|
modelValue: E(b),
|
|
4618
4637
|
"onUpdate:modelValue": i[1] ||= (e) => d(b) ? b.value = e : null,
|
|
4619
4638
|
legend: "Jouw woning is...",
|
|
4620
4639
|
name: "ownedBuilding",
|
|
4621
|
-
options: E(
|
|
4640
|
+
options: E(ji),
|
|
4622
4641
|
variant: "boxed",
|
|
4623
4642
|
required: !1,
|
|
4624
4643
|
"error-message": E(S)
|
|
@@ -4644,7 +4663,7 @@ var Bi = H.SingleWithChildren, Vi = (e) => R({
|
|
|
4644
4663
|
span: "2",
|
|
4645
4664
|
md: "6"
|
|
4646
4665
|
}, {
|
|
4647
|
-
default: P(() => [c(E(
|
|
4666
|
+
default: P(() => [c(E(cn), m({
|
|
4648
4667
|
modelValue: E(D),
|
|
4649
4668
|
"onUpdate:modelValue": i[3] ||= (e) => d(D) ? D.value = e : null,
|
|
4650
4669
|
"error-message": E(k)
|
|
@@ -4661,7 +4680,7 @@ var Bi = H.SingleWithChildren, Vi = (e) => R({
|
|
|
4661
4680
|
"onUpdate:modelValue": i[4] ||= (e) => d(A) ? A.value = e : null,
|
|
4662
4681
|
label: "Aantal kinderen",
|
|
4663
4682
|
placeholder: "Maak een keuze",
|
|
4664
|
-
options: E(
|
|
4683
|
+
options: E(Li),
|
|
4665
4684
|
name: "familySize",
|
|
4666
4685
|
required: !1,
|
|
4667
4686
|
"error-message": E(M)
|
|
@@ -4679,16 +4698,16 @@ var Bi = H.SingleWithChildren, Vi = (e) => R({
|
|
|
4679
4698
|
});
|
|
4680
4699
|
//#endregion
|
|
4681
4700
|
//#region src/comparisons/legal/legal.presenter.ts
|
|
4682
|
-
function
|
|
4701
|
+
function zi(e) {
|
|
4683
4702
|
return {
|
|
4684
4703
|
comparison: V.LegalAssistance,
|
|
4685
4704
|
detail: { comparison: {
|
|
4686
|
-
familySize: e.familyComposition ===
|
|
4705
|
+
familySize: e.familyComposition === Fi ? e.familySize : "",
|
|
4687
4706
|
deductables: 300,
|
|
4688
4707
|
ownedBuilding: e.ownedBuilding
|
|
4689
4708
|
} },
|
|
4690
4709
|
user: {
|
|
4691
|
-
|
|
4710
|
+
zipCode: e.address.zipCode,
|
|
4692
4711
|
houseNumber: e.address.houseNumber,
|
|
4693
4712
|
houseNumberAddition: e.address.houseNumberAddition,
|
|
4694
4713
|
birthdate: e.birthdate,
|
|
@@ -4700,15 +4719,15 @@ function Wi(e) {
|
|
|
4700
4719
|
}
|
|
4701
4720
|
//#endregion
|
|
4702
4721
|
//#region src/comparisons/package/package.schema.ts
|
|
4703
|
-
var
|
|
4722
|
+
var Bi = (e) => R({
|
|
4704
4723
|
address: e,
|
|
4705
4724
|
birthdate: $(),
|
|
4706
|
-
familyComposition:
|
|
4725
|
+
familyComposition: $r,
|
|
4707
4726
|
partnerBirthdate: z().defined().when("familyComposition", {
|
|
4708
|
-
is:
|
|
4727
|
+
is: Wr,
|
|
4709
4728
|
then: () => $()
|
|
4710
4729
|
})
|
|
4711
|
-
}),
|
|
4730
|
+
}), Vi = /* @__PURE__ */ l({
|
|
4712
4731
|
__name: "PackageForm",
|
|
4713
4732
|
props: /*@__PURE__*/ f({
|
|
4714
4733
|
initialData: {},
|
|
@@ -4725,20 +4744,20 @@ var Gi = (e) => R({
|
|
|
4725
4744
|
...K,
|
|
4726
4745
|
title: "Combineer al je verzekeringen in 1 verzekeringspakket"
|
|
4727
4746
|
}),
|
|
4728
|
-
emits: ["
|
|
4747
|
+
emits: ["submitted"],
|
|
4729
4748
|
setup(e, { emit: i }) {
|
|
4730
|
-
let a = e, o = q(a), s = i, { addressSchema: l, draft: u, resolvedAddress: f, additionOptions: p } =
|
|
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), {
|
|
4731
4750
|
birthdate: a.initialData?.birthdate ?? "",
|
|
4732
4751
|
familyComposition: a.initialData?.familyComposition ?? H.SingleWithoutChildren,
|
|
4733
4752
|
partnerBirthdate: a.initialData?.partnerBirthdate ?? "",
|
|
4734
4753
|
address: u
|
|
4735
|
-
}), [b, x, S] = _("birthdate"), [C, w, T] = _("familyComposition", { validateAt: "change" }), [D, O, k] = _("partnerBirthdate"), A = t(() =>
|
|
4754
|
+
}), [b, x, S] = _("birthdate"), [C, w, T] = _("familyComposition", { validateAt: "change" }), [D, O, k] = _("partnerBirthdate"), A = t(() => Wr(C.value));
|
|
4736
4755
|
N(C, (e) => {
|
|
4737
|
-
|
|
4756
|
+
Wr(e) || v("partnerBirthdate", { value: "" });
|
|
4738
4757
|
}, { immediate: !0 });
|
|
4739
4758
|
function j() {
|
|
4740
4759
|
g(({ birthdate: e, familyComposition: t, partnerBirthdate: n }) => {
|
|
4741
|
-
s("
|
|
4760
|
+
s("submitted", {
|
|
4742
4761
|
birthdate: e,
|
|
4743
4762
|
familyComposition: t,
|
|
4744
4763
|
partnerBirthdate: n,
|
|
@@ -4755,7 +4774,7 @@ var Gi = (e) => R({
|
|
|
4755
4774
|
span: "4",
|
|
4756
4775
|
md: "6"
|
|
4757
4776
|
}, {
|
|
4758
|
-
default: P(() => [c(E(
|
|
4777
|
+
default: P(() => [c(E(bn), {
|
|
4759
4778
|
"resolved-address": E(f),
|
|
4760
4779
|
"onUpdate:resolvedAddress": i[0] ||= (e) => d(f) ? f.value = e : null,
|
|
4761
4780
|
"addition-options": E(p)
|
|
@@ -4778,7 +4797,7 @@ var Gi = (e) => R({
|
|
|
4778
4797
|
span: A.value ? 2 : 3,
|
|
4779
4798
|
md: "6"
|
|
4780
4799
|
}, {
|
|
4781
|
-
default: P(() => [c(E(
|
|
4800
|
+
default: P(() => [c(E(cn), m({
|
|
4782
4801
|
modelValue: E(C),
|
|
4783
4802
|
"onUpdate:modelValue": i[2] ||= (e) => d(C) ? C.value = e : null,
|
|
4784
4803
|
"error-message": E(T)
|
|
@@ -4806,12 +4825,12 @@ var Gi = (e) => R({
|
|
|
4806
4825
|
});
|
|
4807
4826
|
//#endregion
|
|
4808
4827
|
//#region src/comparisons/package/package.presenter.ts
|
|
4809
|
-
function
|
|
4828
|
+
function Hi(e) {
|
|
4810
4829
|
return {
|
|
4811
4830
|
comparison: V.Package,
|
|
4812
4831
|
detail: { partner: { birthdate: e.partnerBirthdate } },
|
|
4813
4832
|
user: {
|
|
4814
|
-
|
|
4833
|
+
zipCode: e.address.zipCode,
|
|
4815
4834
|
houseNumber: e.address.houseNumber,
|
|
4816
4835
|
houseNumberAddition: e.address.houseNumberAddition,
|
|
4817
4836
|
birthdate: e.birthdate,
|
|
@@ -4823,18 +4842,18 @@ function qi(e) {
|
|
|
4823
4842
|
}
|
|
4824
4843
|
//#endregion
|
|
4825
4844
|
//#region src/comparisons/loan/constants.ts
|
|
4826
|
-
var
|
|
4845
|
+
var Ui = {
|
|
4827
4846
|
min: 21,
|
|
4828
4847
|
max: 74
|
|
4829
|
-
},
|
|
4848
|
+
}, Wi = {
|
|
4830
4849
|
min: 3500,
|
|
4831
4850
|
max: 75e3
|
|
4832
|
-
},
|
|
4851
|
+
}, Gi = R({
|
|
4833
4852
|
LoanPurpose: z().required(Q.loan.purposeRequired),
|
|
4834
|
-
LoanAmount:
|
|
4835
|
-
birthdate: $(
|
|
4836
|
-
familyComposition:
|
|
4837
|
-
}),
|
|
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),
|
|
4855
|
+
familyComposition: $r
|
|
4856
|
+
}), Ki = [
|
|
4838
4857
|
{
|
|
4839
4858
|
title: "Aankoop auto",
|
|
4840
4859
|
value: "02"
|
|
@@ -4883,7 +4902,7 @@ var Ji = {
|
|
|
4883
4902
|
title: "Anders",
|
|
4884
4903
|
value: "99"
|
|
4885
4904
|
}
|
|
4886
|
-
],
|
|
4905
|
+
], qi = /* @__PURE__ */ l({
|
|
4887
4906
|
__name: "LoanForm",
|
|
4888
4907
|
props: /*@__PURE__*/ f({
|
|
4889
4908
|
initialData: {},
|
|
@@ -4900,9 +4919,9 @@ var Ji = {
|
|
|
4900
4919
|
...K,
|
|
4901
4920
|
title: "Geld lenen"
|
|
4902
4921
|
}),
|
|
4903
|
-
emits: ["
|
|
4922
|
+
emits: ["submitted"],
|
|
4904
4923
|
setup(e, { emit: t }) {
|
|
4905
|
-
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, {
|
|
4906
4925
|
LoanPurpose: r.initialData?.LoanPurpose ?? "",
|
|
4907
4926
|
LoanAmount: r.initialData?.LoanAmount ?? null,
|
|
4908
4927
|
birthdate: r.initialData?.birthdate ?? "",
|
|
@@ -4910,7 +4929,7 @@ var Ji = {
|
|
|
4910
4929
|
}), [u, f, p] = l("LoanPurpose", { validateAt: "change" }), [h, g, _] = l("LoanAmount"), [v, b, x] = l("birthdate"), [S, C, w] = l("familyComposition", { validateAt: "change" });
|
|
4911
4930
|
function T() {
|
|
4912
4931
|
s((e) => {
|
|
4913
|
-
a("
|
|
4932
|
+
a("submitted", { ...e });
|
|
4914
4933
|
});
|
|
4915
4934
|
}
|
|
4916
4935
|
return (t, r) => (y(), n(E(Y), m(E(i), {
|
|
@@ -4927,7 +4946,7 @@ var Ji = {
|
|
|
4927
4946
|
"onUpdate:modelValue": r[0] ||= (e) => d(u) ? u.value = e : null,
|
|
4928
4947
|
label: "Leendoel",
|
|
4929
4948
|
placeholder: "Maak een keuze",
|
|
4930
|
-
options: E(
|
|
4949
|
+
options: E(Ki),
|
|
4931
4950
|
name: "LoanPurpose",
|
|
4932
4951
|
required: !1,
|
|
4933
4952
|
"error-message": E(p)
|
|
@@ -4942,7 +4961,7 @@ var Ji = {
|
|
|
4942
4961
|
span: "2",
|
|
4943
4962
|
md: "6"
|
|
4944
4963
|
}, {
|
|
4945
|
-
default: P(() => [c(E(
|
|
4964
|
+
default: P(() => [c(E(We), m({
|
|
4946
4965
|
modelValue: E(h),
|
|
4947
4966
|
"onUpdate:modelValue": r[1] ||= (e) => d(h) ? h.value = e : null,
|
|
4948
4967
|
modelModifiers: { number: !0 },
|
|
@@ -4972,7 +4991,7 @@ var Ji = {
|
|
|
4972
4991
|
span: "3",
|
|
4973
4992
|
md: "6"
|
|
4974
4993
|
}, {
|
|
4975
|
-
default: P(() => [c(E(
|
|
4994
|
+
default: P(() => [c(E(cn), m({
|
|
4976
4995
|
modelValue: E(S),
|
|
4977
4996
|
"onUpdate:modelValue": r[3] ||= (e) => d(S) ? S.value = e : null,
|
|
4978
4997
|
"error-message": E(w)
|
|
@@ -4986,19 +5005,19 @@ var Ji = {
|
|
|
4986
5005
|
});
|
|
4987
5006
|
//#endregion
|
|
4988
5007
|
//#region src/comparisons/loan/loan.presenter.ts
|
|
4989
|
-
function
|
|
4990
|
-
let t =
|
|
5008
|
+
function Ji(e) {
|
|
5009
|
+
let t = Vr(e, Ir);
|
|
4991
5010
|
if (!t) return 120;
|
|
4992
5011
|
let n = t.add(76, "year").diff(ke(), "month", !0), r = Math.floor(n / 12) * 12;
|
|
4993
5012
|
return Math.min(r, 120);
|
|
4994
5013
|
}
|
|
4995
|
-
function
|
|
5014
|
+
function Yi(e) {
|
|
4996
5015
|
return {
|
|
4997
5016
|
comparison: V.Loan,
|
|
4998
5017
|
detail: { loan: {
|
|
4999
5018
|
LoanPurpose: e.LoanPurpose,
|
|
5000
5019
|
LoanAmount: e.LoanAmount,
|
|
5001
|
-
MaxDurationByLegalLimit:
|
|
5020
|
+
MaxDurationByLegalLimit: Ji(e.birthdate)
|
|
5002
5021
|
} },
|
|
5003
5022
|
user: {
|
|
5004
5023
|
birthdate: e.birthdate,
|
|
@@ -5008,14 +5027,14 @@ function ea(e) {
|
|
|
5008
5027
|
}
|
|
5009
5028
|
//#endregion
|
|
5010
5029
|
//#region src/comparisons/moped/constants.ts
|
|
5011
|
-
var
|
|
5030
|
+
var Xi = {
|
|
5012
5031
|
min: 16,
|
|
5013
5032
|
max: 99
|
|
5014
|
-
},
|
|
5033
|
+
}, Zi = (e, t) => R({
|
|
5015
5034
|
licensePlate: e,
|
|
5016
5035
|
address: t,
|
|
5017
|
-
birthdate: $(
|
|
5018
|
-
}),
|
|
5036
|
+
birthdate: $(Xi)
|
|
5037
|
+
}), Qi = /* @__PURE__ */ l({
|
|
5019
5038
|
__name: "MopedForm",
|
|
5020
5039
|
props: /*@__PURE__*/ f({
|
|
5021
5040
|
initialData: {},
|
|
@@ -5032,16 +5051,16 @@ var ta = {
|
|
|
5032
5051
|
...K,
|
|
5033
5052
|
title: "Brommerverzekering vergelijken"
|
|
5034
5053
|
}),
|
|
5035
|
-
emits: ["
|
|
5054
|
+
emits: ["submitted"],
|
|
5036
5055
|
setup(e, { emit: t }) {
|
|
5037
|
-
let r = e, i = q(r), a = t, { addressSchema: o, draft: s, resolvedAddress: l, additionOptions: u } =
|
|
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), {
|
|
5038
5057
|
licensePlate: r.initialData?.licensePlate ?? "",
|
|
5039
5058
|
birthdate: r.initialData?.birthdate ?? "",
|
|
5040
5059
|
address: s
|
|
5041
5060
|
}), [v, b, x, S] = _("licensePlate"), [C, w, T] = _("birthdate");
|
|
5042
5061
|
function D() {
|
|
5043
5062
|
g(({ licensePlate: e, birthdate: t }) => {
|
|
5044
|
-
a("
|
|
5063
|
+
a("submitted", {
|
|
5045
5064
|
licensePlate: e,
|
|
5046
5065
|
birthdate: t,
|
|
5047
5066
|
address: l.value,
|
|
@@ -5058,7 +5077,7 @@ var ta = {
|
|
|
5058
5077
|
span: "3",
|
|
5059
5078
|
md: "6"
|
|
5060
5079
|
}, {
|
|
5061
|
-
default: P(() => [c(E(
|
|
5080
|
+
default: P(() => [c(E(nr), m({
|
|
5062
5081
|
modelValue: E(v),
|
|
5063
5082
|
"onUpdate:modelValue": r[0] ||= (e) => d(v) ? v.value = e : null,
|
|
5064
5083
|
"vehicle-data": E(f),
|
|
@@ -5089,7 +5108,7 @@ var ta = {
|
|
|
5089
5108
|
span: "4",
|
|
5090
5109
|
md: "6"
|
|
5091
5110
|
}, {
|
|
5092
|
-
default: P(() => [c(E(
|
|
5111
|
+
default: P(() => [c(E(bn), {
|
|
5093
5112
|
"resolved-address": E(l),
|
|
5094
5113
|
"onUpdate:resolvedAddress": r[2] ||= (e) => d(l) ? l.value = e : null,
|
|
5095
5114
|
"addition-options": E(u)
|
|
@@ -5115,12 +5134,12 @@ var ta = {
|
|
|
5115
5134
|
});
|
|
5116
5135
|
//#endregion
|
|
5117
5136
|
//#region src/comparisons/moped/moped.presenter.ts
|
|
5118
|
-
function
|
|
5137
|
+
function $i(e) {
|
|
5119
5138
|
return {
|
|
5120
5139
|
comparison: V.Moped,
|
|
5121
5140
|
detail: { moped: { ...e.vehicle } },
|
|
5122
5141
|
user: {
|
|
5123
|
-
|
|
5142
|
+
zipCode: e.address.zipCode,
|
|
5124
5143
|
houseNumber: e.address.houseNumber,
|
|
5125
5144
|
houseNumberAddition: e.address.houseNumberAddition,
|
|
5126
5145
|
birthdate: e.birthdate,
|
|
@@ -5132,11 +5151,11 @@ function ia(e) {
|
|
|
5132
5151
|
}
|
|
5133
5152
|
//#endregion
|
|
5134
5153
|
//#region src/comparisons/motor/motor.schema.ts
|
|
5135
|
-
var
|
|
5154
|
+
var ea = (e, t) => R({
|
|
5136
5155
|
licensePlate: e,
|
|
5137
5156
|
address: t,
|
|
5138
5157
|
birthdate: $()
|
|
5139
|
-
}),
|
|
5158
|
+
}), ta = /* @__PURE__ */ l({
|
|
5140
5159
|
__name: "MotorForm",
|
|
5141
5160
|
props: /*@__PURE__*/ f({
|
|
5142
5161
|
initialData: {},
|
|
@@ -5153,16 +5172,16 @@ var aa = (e, t) => R({
|
|
|
5153
5172
|
...K,
|
|
5154
5173
|
title: "Motorverzekering vergelijken"
|
|
5155
5174
|
}),
|
|
5156
|
-
emits: ["
|
|
5175
|
+
emits: ["submitted"],
|
|
5157
5176
|
setup(e, { emit: t }) {
|
|
5158
|
-
let r = e, i = q(r), a = t, { addressSchema: o, draft: s, resolvedAddress: l, additionOptions: u } =
|
|
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), {
|
|
5159
5178
|
licensePlate: r.initialData?.licensePlate ?? "",
|
|
5160
5179
|
birthdate: r.initialData?.birthdate ?? "",
|
|
5161
5180
|
address: s
|
|
5162
5181
|
}), [v, b, x, S] = _("licensePlate"), [C, w, T] = _("birthdate");
|
|
5163
5182
|
function D() {
|
|
5164
5183
|
g(({ licensePlate: e, birthdate: t }) => {
|
|
5165
|
-
a("
|
|
5184
|
+
a("submitted", {
|
|
5166
5185
|
licensePlate: e,
|
|
5167
5186
|
birthdate: t,
|
|
5168
5187
|
address: l.value,
|
|
@@ -5179,7 +5198,7 @@ var aa = (e, t) => R({
|
|
|
5179
5198
|
span: "3",
|
|
5180
5199
|
md: "6"
|
|
5181
5200
|
}, {
|
|
5182
|
-
default: P(() => [c(E(
|
|
5201
|
+
default: P(() => [c(E(nr), m({
|
|
5183
5202
|
modelValue: E(v),
|
|
5184
5203
|
"onUpdate:modelValue": r[0] ||= (e) => d(v) ? v.value = e : null,
|
|
5185
5204
|
"vehicle-data": E(f),
|
|
@@ -5210,7 +5229,7 @@ var aa = (e, t) => R({
|
|
|
5210
5229
|
span: "4",
|
|
5211
5230
|
md: "6"
|
|
5212
5231
|
}, {
|
|
5213
|
-
default: P(() => [c(E(
|
|
5232
|
+
default: P(() => [c(E(bn), {
|
|
5214
5233
|
"resolved-address": E(l),
|
|
5215
5234
|
"onUpdate:resolvedAddress": r[2] ||= (e) => d(l) ? l.value = e : null,
|
|
5216
5235
|
"addition-options": E(u)
|
|
@@ -5236,12 +5255,12 @@ var aa = (e, t) => R({
|
|
|
5236
5255
|
});
|
|
5237
5256
|
//#endregion
|
|
5238
5257
|
//#region src/comparisons/motor/motor.presenter.ts
|
|
5239
|
-
function
|
|
5258
|
+
function na(e) {
|
|
5240
5259
|
return {
|
|
5241
5260
|
comparison: V.Motor,
|
|
5242
5261
|
detail: { motor: { ...e.vehicle } },
|
|
5243
5262
|
user: {
|
|
5244
|
-
|
|
5263
|
+
zipCode: e.address.zipCode,
|
|
5245
5264
|
houseNumber: e.address.houseNumber,
|
|
5246
5265
|
houseNumberAddition: e.address.houseNumberAddition,
|
|
5247
5266
|
birthdate: e.birthdate,
|
|
@@ -5253,11 +5272,11 @@ function sa(e) {
|
|
|
5253
5272
|
}
|
|
5254
5273
|
//#endregion
|
|
5255
5274
|
//#region src/comparisons/car/car.schema.ts
|
|
5256
|
-
var
|
|
5275
|
+
var ra = (e, t) => R({
|
|
5257
5276
|
licensePlate: e,
|
|
5258
5277
|
address: t,
|
|
5259
5278
|
birthdate: $()
|
|
5260
|
-
}),
|
|
5279
|
+
}), ia = /* @__PURE__ */ l({
|
|
5261
5280
|
__name: "CarForm",
|
|
5262
5281
|
props: /*@__PURE__*/ f({
|
|
5263
5282
|
initialData: {},
|
|
@@ -5274,16 +5293,16 @@ var ca = (e, t) => R({
|
|
|
5274
5293
|
...K,
|
|
5275
5294
|
title: "Autoverzekering vergelijken"
|
|
5276
5295
|
}),
|
|
5277
|
-
emits: ["
|
|
5296
|
+
emits: ["submitted"],
|
|
5278
5297
|
setup(e, { emit: t }) {
|
|
5279
|
-
let r = e, i = q(r), a = t, { addressSchema: o, draft: s, resolvedAddress: l, additionOptions: u } =
|
|
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), {
|
|
5280
5299
|
licensePlate: r.initialData?.licensePlate ?? "",
|
|
5281
5300
|
birthdate: r.initialData?.birthdate ?? "",
|
|
5282
5301
|
address: s
|
|
5283
5302
|
}), [v, b, x, S] = _("licensePlate"), [C, w, T] = _("birthdate");
|
|
5284
5303
|
function D() {
|
|
5285
5304
|
g(({ licensePlate: e, birthdate: t }) => {
|
|
5286
|
-
a("
|
|
5305
|
+
a("submitted", {
|
|
5287
5306
|
licensePlate: e,
|
|
5288
5307
|
birthdate: t,
|
|
5289
5308
|
address: l.value,
|
|
@@ -5300,7 +5319,7 @@ var ca = (e, t) => R({
|
|
|
5300
5319
|
span: "3",
|
|
5301
5320
|
md: "6"
|
|
5302
5321
|
}, {
|
|
5303
|
-
default: P(() => [c(E(
|
|
5322
|
+
default: P(() => [c(E(nr), m({
|
|
5304
5323
|
modelValue: E(v),
|
|
5305
5324
|
"onUpdate:modelValue": r[0] ||= (e) => d(v) ? v.value = e : null,
|
|
5306
5325
|
"vehicle-data": E(f),
|
|
@@ -5331,7 +5350,7 @@ var ca = (e, t) => R({
|
|
|
5331
5350
|
span: "4",
|
|
5332
5351
|
md: "6"
|
|
5333
5352
|
}, {
|
|
5334
|
-
default: P(() => [c(E(
|
|
5353
|
+
default: P(() => [c(E(bn), {
|
|
5335
5354
|
"resolved-address": E(l),
|
|
5336
5355
|
"onUpdate:resolvedAddress": r[2] ||= (e) => d(l) ? l.value = e : null,
|
|
5337
5356
|
"addition-options": E(u)
|
|
@@ -5357,12 +5376,12 @@ var ca = (e, t) => R({
|
|
|
5357
5376
|
});
|
|
5358
5377
|
//#endregion
|
|
5359
5378
|
//#region src/comparisons/car/car.presenter.ts
|
|
5360
|
-
function
|
|
5379
|
+
function aa(e) {
|
|
5361
5380
|
return {
|
|
5362
5381
|
comparison: V.Car,
|
|
5363
5382
|
detail: { car: { ...e.vehicle } },
|
|
5364
5383
|
user: {
|
|
5365
|
-
|
|
5384
|
+
zipCode: e.address.zipCode,
|
|
5366
5385
|
houseNumber: e.address.houseNumber,
|
|
5367
5386
|
houseNumberAddition: e.address.houseNumberAddition,
|
|
5368
5387
|
birthdate: e.birthdate,
|
|
@@ -5374,10 +5393,10 @@ function ua(e) {
|
|
|
5374
5393
|
}
|
|
5375
5394
|
//#endregion
|
|
5376
5395
|
//#region src/comparisons/car-business/businessCar.schema.ts
|
|
5377
|
-
var
|
|
5396
|
+
var oa = (e) => R({
|
|
5378
5397
|
licensePlate: e,
|
|
5379
|
-
company:
|
|
5380
|
-
}),
|
|
5398
|
+
company: Pr()
|
|
5399
|
+
}), sa = /* @__PURE__ */ l({
|
|
5381
5400
|
__name: "BusinessCarForm",
|
|
5382
5401
|
props: /*@__PURE__*/ f({
|
|
5383
5402
|
initialData: {},
|
|
@@ -5394,15 +5413,15 @@ var da = (e) => R({
|
|
|
5394
5413
|
...K,
|
|
5395
5414
|
title: "Zakelijke autoverzekering vergelijken"
|
|
5396
5415
|
}),
|
|
5397
|
-
emits: ["
|
|
5416
|
+
emits: ["submitted"],
|
|
5398
5417
|
setup(e, { emit: i }) {
|
|
5399
|
-
let a = e, o = q(a), s = i, { vehicleData: l, licensePlateSchema: u } =
|
|
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), {
|
|
5400
5419
|
licensePlate: a.initialData?.licensePlate ?? "",
|
|
5401
5420
|
company: a.initialData?.company ?? null
|
|
5402
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);
|
|
5403
5422
|
function k() {
|
|
5404
5423
|
p(({ licensePlate: e, company: t }) => {
|
|
5405
|
-
s("
|
|
5424
|
+
s("submitted", {
|
|
5406
5425
|
licensePlate: e,
|
|
5407
5426
|
company: t,
|
|
5408
5427
|
vehicle: l.value
|
|
@@ -5417,7 +5436,7 @@ var da = (e) => R({
|
|
|
5417
5436
|
span: "5",
|
|
5418
5437
|
md: "6"
|
|
5419
5438
|
}, {
|
|
5420
|
-
default: P(() => [c(E(
|
|
5439
|
+
default: P(() => [c(E(nr), m({
|
|
5421
5440
|
modelValue: E(v),
|
|
5422
5441
|
"onUpdate:modelValue": i[0] ||= (e) => d(v) ? v.value = e : null,
|
|
5423
5442
|
"vehicle-data": E(l),
|
|
@@ -5447,7 +5466,7 @@ var da = (e) => R({
|
|
|
5447
5466
|
span: "5",
|
|
5448
5467
|
md: "6"
|
|
5449
5468
|
}, {
|
|
5450
|
-
default: P(() => [c(E(
|
|
5469
|
+
default: P(() => [c(E(Nr), m({
|
|
5451
5470
|
modelValue: E(C),
|
|
5452
5471
|
"onUpdate:modelValue": i[2] ||= (e) => d(C) ? C.value = e : null,
|
|
5453
5472
|
name: "company",
|
|
@@ -5463,7 +5482,7 @@ var da = (e) => R({
|
|
|
5463
5482
|
}
|
|
5464
5483
|
})]),
|
|
5465
5484
|
_: 1
|
|
5466
|
-
}, 16, ["modelValue", "error-message"]), O.value ? (y(), n(E(
|
|
5485
|
+
}, 16, ["modelValue", "error-message"]), O.value ? (y(), n(E(Bt), {
|
|
5467
5486
|
key: 0,
|
|
5468
5487
|
style: { "margin-top": "12px" },
|
|
5469
5488
|
text: "Dit bedrijf heeft geen geregistreerd bezoekadres. Voeg dit toe bij de KvK om door te gaan met de aanvraag."
|
|
@@ -5476,20 +5495,19 @@ var da = (e) => R({
|
|
|
5476
5495
|
});
|
|
5477
5496
|
//#endregion
|
|
5478
5497
|
//#region src/comparisons/car-business/businessCar.presenter.ts
|
|
5479
|
-
function
|
|
5480
|
-
let { hasVisitingAddress: t, ...n } = e.company;
|
|
5498
|
+
function ca(e) {
|
|
5481
5499
|
return {
|
|
5482
5500
|
comparison: V.CarBusiness,
|
|
5483
5501
|
detail: {
|
|
5484
5502
|
car: { ...e.vehicle },
|
|
5485
|
-
companyData:
|
|
5503
|
+
companyData: { ...e.company }
|
|
5486
5504
|
},
|
|
5487
5505
|
user: {}
|
|
5488
5506
|
};
|
|
5489
5507
|
}
|
|
5490
5508
|
//#endregion
|
|
5491
5509
|
//#region src/comparisons/businessLiability/businessLiability.schema.ts
|
|
5492
|
-
var
|
|
5510
|
+
var la = R({ company: Pr() }), ua = /* @__PURE__ */ l({
|
|
5493
5511
|
__name: "BusinessLiabilityForm",
|
|
5494
5512
|
props: /*@__PURE__*/ f({
|
|
5495
5513
|
initialData: {},
|
|
@@ -5508,12 +5526,12 @@ var ma = R({ company: Br() }), ha = /* @__PURE__ */ l({
|
|
|
5508
5526
|
description: "Bescherm jouw bedrijf slim en voordelig. Om te starten hebben we je bedrijfsnaam of KVK-nummer nodig!",
|
|
5509
5527
|
submitLabel: "Start gratis vergelijken"
|
|
5510
5528
|
}),
|
|
5511
|
-
emits: ["
|
|
5529
|
+
emits: ["submitted"],
|
|
5512
5530
|
setup(e, { emit: i }) {
|
|
5513
|
-
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);
|
|
5514
5532
|
function S() {
|
|
5515
5533
|
u(({ company: e }) => {
|
|
5516
|
-
s("
|
|
5534
|
+
s("submitted", { company: e });
|
|
5517
5535
|
});
|
|
5518
5536
|
}
|
|
5519
5537
|
return (e, t) => (y(), n(E(Y), m(E(o), {
|
|
@@ -5525,7 +5543,7 @@ var ma = R({ company: Br() }), ha = /* @__PURE__ */ l({
|
|
|
5525
5543
|
span: "8",
|
|
5526
5544
|
md: "6"
|
|
5527
5545
|
}, {
|
|
5528
|
-
default: P(() => [c(E(
|
|
5546
|
+
default: P(() => [c(E(Nr), m({
|
|
5529
5547
|
modelValue: E(g),
|
|
5530
5548
|
"onUpdate:modelValue": t[0] ||= (e) => d(g) ? g.value = e : null,
|
|
5531
5549
|
name: "company",
|
|
@@ -5541,7 +5559,7 @@ var ma = R({ company: Br() }), ha = /* @__PURE__ */ l({
|
|
|
5541
5559
|
}
|
|
5542
5560
|
})]),
|
|
5543
5561
|
_: 1
|
|
5544
|
-
}, 16, ["modelValue", "error-message"]), x.value ? (y(), n(E(
|
|
5562
|
+
}, 16, ["modelValue", "error-message"]), x.value ? (y(), n(E(Bt), {
|
|
5545
5563
|
key: 0,
|
|
5546
5564
|
style: { "margin-top": "12px" },
|
|
5547
5565
|
text: "Dit bedrijf heeft geen geregistreerd bezoekadres. Voeg dit toe bij de KvK om door te gaan met de aanvraag."
|
|
@@ -5554,22 +5572,21 @@ var ma = R({ company: Br() }), ha = /* @__PURE__ */ l({
|
|
|
5554
5572
|
});
|
|
5555
5573
|
//#endregion
|
|
5556
5574
|
//#region src/comparisons/businessLiability/businessLiability.presenter.ts
|
|
5557
|
-
function
|
|
5558
|
-
let { hasVisitingAddress: t, ...n } = e.company;
|
|
5575
|
+
function da(e) {
|
|
5559
5576
|
return {
|
|
5560
5577
|
comparison: V.BusinessLiability,
|
|
5561
|
-
detail: { companyData:
|
|
5578
|
+
detail: { companyData: { ...e.company } },
|
|
5562
5579
|
user: {}
|
|
5563
5580
|
};
|
|
5564
5581
|
}
|
|
5565
5582
|
//#endregion
|
|
5566
5583
|
//#region src/flow/useComparisonSubmit.ts
|
|
5567
|
-
var
|
|
5584
|
+
var fa = { [V.Travel]: "/tarieven/" }, pa = (e, t, n) => `${e}#/${n}${fa[t] ?? ""}`, ma = (e) => {
|
|
5568
5585
|
window.location.href = e;
|
|
5569
|
-
},
|
|
5586
|
+
}, ha = ({ user: e, detail: t }) => new Oe({
|
|
5570
5587
|
email: e.email || null,
|
|
5571
5588
|
name: e.firstName || null,
|
|
5572
|
-
zip_code: e.
|
|
5589
|
+
zip_code: e.zipCode || null,
|
|
5573
5590
|
house_number: e.houseNumber ? Number(e.houseNumber) : null,
|
|
5574
5591
|
house_number_addition: e.houseNumberAddition || null,
|
|
5575
5592
|
birth_date: e.birthdate || null,
|
|
@@ -5580,14 +5597,14 @@ var _a = { [V.Travel]: "/tarieven/" }, va = (e, t, n) => `${e}#/${n}${_a[t] ?? "
|
|
|
5580
5597
|
...e.city && { city: e.city }
|
|
5581
5598
|
}
|
|
5582
5599
|
});
|
|
5583
|
-
function
|
|
5600
|
+
function ga(e) {
|
|
5584
5601
|
let t = x(!1), n = x(null);
|
|
5585
5602
|
return {
|
|
5586
5603
|
submit: async (r) => {
|
|
5587
5604
|
t.value = !0, n.value = null;
|
|
5588
5605
|
try {
|
|
5589
|
-
let t = await
|
|
5590
|
-
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);
|
|
5591
5608
|
} catch (t) {
|
|
5592
5609
|
n.value = t, e.onError?.(t, r);
|
|
5593
5610
|
} finally {
|
|
@@ -5600,66 +5617,66 @@ function xa(e) {
|
|
|
5600
5617
|
}
|
|
5601
5618
|
//#endregion
|
|
5602
5619
|
//#region src/comparisons/bike/index.ts
|
|
5603
|
-
var
|
|
5620
|
+
var _a = /* @__PURE__ */ B({
|
|
5621
|
+
Form: () => ui,
|
|
5622
|
+
presenter: () => di
|
|
5623
|
+
}), va = /* @__PURE__ */ B({
|
|
5604
5624
|
Form: () => hi,
|
|
5605
5625
|
presenter: () => gi
|
|
5606
|
-
}),
|
|
5607
|
-
Form: () =>
|
|
5608
|
-
presenter: () =>
|
|
5609
|
-
}),
|
|
5626
|
+
}), ya = /* @__PURE__ */ B({
|
|
5627
|
+
Form: () => xi,
|
|
5628
|
+
presenter: () => Si
|
|
5629
|
+
}), ba = /* @__PURE__ */ B({
|
|
5610
5630
|
Form: () => Ei,
|
|
5611
5631
|
presenter: () => Di
|
|
5632
|
+
}), xa = /* @__PURE__ */ B({
|
|
5633
|
+
Form: () => ki,
|
|
5634
|
+
presenter: () => Ai
|
|
5635
|
+
}), Sa = /* @__PURE__ */ B({
|
|
5636
|
+
Form: () => Ni,
|
|
5637
|
+
presenter: () => Pi
|
|
5638
|
+
}), Ca = /* @__PURE__ */ B({
|
|
5639
|
+
Form: () => Ri,
|
|
5640
|
+
presenter: () => zi
|
|
5641
|
+
}), wa = /* @__PURE__ */ B({
|
|
5642
|
+
Form: () => Vi,
|
|
5643
|
+
presenter: () => Hi
|
|
5612
5644
|
}), Ta = /* @__PURE__ */ B({
|
|
5613
|
-
Form: () =>
|
|
5614
|
-
presenter: () =>
|
|
5645
|
+
Form: () => qi,
|
|
5646
|
+
presenter: () => Yi
|
|
5615
5647
|
}), Ea = /* @__PURE__ */ B({
|
|
5616
|
-
Form: () =>
|
|
5617
|
-
presenter: () =>
|
|
5648
|
+
Form: () => Qi,
|
|
5649
|
+
presenter: () => $i
|
|
5618
5650
|
}), Da = /* @__PURE__ */ B({
|
|
5619
|
-
Form: () =>
|
|
5620
|
-
presenter: () =>
|
|
5651
|
+
Form: () => ta,
|
|
5652
|
+
presenter: () => na
|
|
5621
5653
|
}), Oa = /* @__PURE__ */ B({
|
|
5622
|
-
Form: () =>
|
|
5623
|
-
presenter: () =>
|
|
5654
|
+
Form: () => ia,
|
|
5655
|
+
presenter: () => aa
|
|
5624
5656
|
}), ka = /* @__PURE__ */ B({
|
|
5625
|
-
Form: () =>
|
|
5626
|
-
presenter: () =>
|
|
5657
|
+
Form: () => sa,
|
|
5658
|
+
presenter: () => ca
|
|
5627
5659
|
}), Aa = /* @__PURE__ */ B({
|
|
5628
|
-
Form: () =>
|
|
5629
|
-
presenter: () =>
|
|
5630
|
-
}), ja =
|
|
5631
|
-
|
|
5632
|
-
|
|
5633
|
-
|
|
5634
|
-
|
|
5635
|
-
|
|
5636
|
-
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
|
|
5641
|
-
|
|
5642
|
-
|
|
5643
|
-
|
|
5644
|
-
|
|
5645
|
-
|
|
5646
|
-
[V.
|
|
5647
|
-
|
|
5648
|
-
[V.Caravan]: wa,
|
|
5649
|
-
[V.Travel]: Ta,
|
|
5650
|
-
[V.Liability]: Ea,
|
|
5651
|
-
[V.Housing]: Da,
|
|
5652
|
-
house: Da,
|
|
5653
|
-
[V.LegalAssistance]: Oa,
|
|
5654
|
-
[V.Package]: ka,
|
|
5655
|
-
[V.Loan]: Aa,
|
|
5656
|
-
[V.Moped]: ja,
|
|
5657
|
-
[V.Motor]: Ma,
|
|
5658
|
-
[V.Car]: Na,
|
|
5659
|
-
[V.CarBusiness]: Pa,
|
|
5660
|
-
"business-car": Pa,
|
|
5661
|
-
[V.BusinessLiability]: Fa
|
|
5662
|
-
}, La = /* @__PURE__ */ l({
|
|
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({
|
|
5663
5680
|
__name: "ComparisonFormFlow",
|
|
5664
5681
|
props: {
|
|
5665
5682
|
form: {},
|
|
@@ -5690,7 +5707,7 @@ var Sa = /* @__PURE__ */ B({
|
|
|
5690
5707
|
},
|
|
5691
5708
|
emits: ["submitted", "error"],
|
|
5692
5709
|
setup(e, { emit: i }) {
|
|
5693
|
-
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({
|
|
5694
5711
|
link: a.link,
|
|
5695
5712
|
onRedirect: (e) => {
|
|
5696
5713
|
o("submitted", e), a.redirect ? a.redirect(e) : window.location.href = e;
|
|
@@ -5703,37 +5720,38 @@ var Sa = /* @__PURE__ */ B({
|
|
|
5703
5720
|
return (t, i) => c.value ? (y(), n(w(c.value.Form), m({ key: 0 }, E(s), {
|
|
5704
5721
|
"initial-data": e.initialData,
|
|
5705
5722
|
"submit-disabled": e.submitDisabled || E(u),
|
|
5706
|
-
|
|
5723
|
+
onSubmitted: d
|
|
5707
5724
|
}), null, 16, ["initial-data", "submit-disabled"])) : r("", !0);
|
|
5708
5725
|
}
|
|
5709
|
-
}),
|
|
5726
|
+
}), Na = { class: "vd-form vd-form--vertical vd-form--card" }, Pa = {
|
|
5710
5727
|
key: 0,
|
|
5711
5728
|
class: "vd-form__header"
|
|
5712
|
-
},
|
|
5729
|
+
}, Fa = {
|
|
5713
5730
|
key: 0,
|
|
5714
5731
|
class: "vd-form__title"
|
|
5715
|
-
},
|
|
5732
|
+
}, Ia = {
|
|
5716
5733
|
key: 1,
|
|
5717
5734
|
class: "vd-form__description"
|
|
5718
|
-
},
|
|
5735
|
+
}, La = /* @__PURE__ */ l({
|
|
5719
5736
|
__name: "QuestionnaireForm",
|
|
5720
5737
|
props: {
|
|
5721
5738
|
link: {},
|
|
5739
|
+
qaId: {},
|
|
5740
|
+
thankyouPageTemplate: { default: "common" },
|
|
5722
5741
|
title: { default: "" },
|
|
5723
5742
|
description: { default: "" },
|
|
5724
5743
|
buttonText: { default: "" },
|
|
5725
5744
|
showTitle: {
|
|
5726
5745
|
type: Boolean,
|
|
5727
5746
|
default: !0
|
|
5728
|
-
}
|
|
5729
|
-
qaOptions: {}
|
|
5747
|
+
}
|
|
5730
5748
|
},
|
|
5731
5749
|
setup(e) {
|
|
5732
|
-
let n = e, a = t(() =>
|
|
5733
|
-
qaId: n.
|
|
5734
|
-
template: n.
|
|
5750
|
+
let n = e, a = t(() => Kr(n.link, {
|
|
5751
|
+
qaId: n.qaId,
|
|
5752
|
+
template: n.thankyouPageTemplate
|
|
5735
5753
|
}));
|
|
5736
|
-
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), {
|
|
5737
5755
|
href: a.value,
|
|
5738
5756
|
label: e.buttonText,
|
|
5739
5757
|
"button-type": "green",
|
|
@@ -5742,20 +5760,24 @@ var Sa = /* @__PURE__ */ B({
|
|
|
5742
5760
|
block: ""
|
|
5743
5761
|
}, null, 8, ["href", "label"])]));
|
|
5744
5762
|
}
|
|
5745
|
-
}),
|
|
5763
|
+
}), Ra = {
|
|
5746
5764
|
key: 0,
|
|
5747
5765
|
class: "vd-form__header"
|
|
5748
|
-
},
|
|
5766
|
+
}, za = {
|
|
5749
5767
|
key: 0,
|
|
5750
5768
|
class: "vd-form__title"
|
|
5751
|
-
},
|
|
5769
|
+
}, Ba = {
|
|
5752
5770
|
key: 1,
|
|
5753
5771
|
class: "vd-form__description"
|
|
5754
|
-
},
|
|
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({
|
|
5755
5773
|
__name: "RiskScannerForm",
|
|
5756
5774
|
props: {
|
|
5757
|
-
|
|
5775
|
+
qaUrl: { default: "" },
|
|
5776
|
+
qaId: { default: "6627c64764165beec8076818" },
|
|
5777
|
+
currentItemId: { default: "6627e21c64165beec8076830" },
|
|
5778
|
+
nextItemId: { default: "6627e32464165beec8076838" },
|
|
5758
5779
|
link: {},
|
|
5780
|
+
thankyouPageTemplate: { default: "risk-scanner" },
|
|
5759
5781
|
title: { default: "Check de risico`s voor jouw bedrijf + ontvang gratis offerte!" },
|
|
5760
5782
|
description: { default: "Doe onze risicoscan en ontdek de beste verzekering voor jouw specifieke bedrijf. Om te starten hebben we je bedrijfsnaam of KVK-nummer nodig!" },
|
|
5761
5783
|
buttonText: { default: "Start de gratis scan" },
|
|
@@ -5765,15 +5787,9 @@ var Sa = /* @__PURE__ */ B({
|
|
|
5765
5787
|
}
|
|
5766
5788
|
},
|
|
5767
5789
|
setup(e) {
|
|
5768
|
-
let o = e, s =
|
|
5769
|
-
|
|
5770
|
-
|
|
5771
|
-
nextItemId: "6627e32464165beec8076838",
|
|
5772
|
-
thankyouPageTemplate: "risk-scanner",
|
|
5773
|
-
...o.qaOptions
|
|
5774
|
-
})), l = x(null), { isSubmitting: u, handleSubmit: f, defineField: p, setErrors: h, removeError: g } = Z(R({ company: Br() }), { company: null }), [_, v, b] = p("company"), S = (e) => e ? h({ company: e }) : g("company"), C = t(() => !!_.value && !_.value.hasVisitingAddress);
|
|
5775
|
-
async function w(e) {
|
|
5776
|
-
let t = s.value.qaUrl || An(), n = t.endsWith("/") ? t : `${t}/`, r = await fetch(`${n}api/v1/active-questionnaire/${s.value.qaId}/start`, {
|
|
5790
|
+
let o = e, s = x(null), { isSubmitting: l, handleSubmit: u, defineField: f, setErrors: p, removeError: h } = Z(R({ company: Pr() }), { company: null }), [g, _, v] = f("company"), b = (e) => e ? p({ company: e }) : h("company"), S = t(() => !!g.value && !g.value.hasVisitingAddress);
|
|
5791
|
+
async function C(e) {
|
|
5792
|
+
let t = o.qaUrl || wn(), n = t.endsWith("/") ? t : `${t}/`, r = await fetch(`${n}api/v1/active-questionnaire/${o.qaId}/start`, {
|
|
5777
5793
|
method: "POST",
|
|
5778
5794
|
headers: { "Content-Type": "application/json" },
|
|
5779
5795
|
body: JSON.stringify({
|
|
@@ -5781,23 +5797,23 @@ var Sa = /* @__PURE__ */ B({
|
|
|
5781
5797
|
value: e.kvkNummer,
|
|
5782
5798
|
data: e
|
|
5783
5799
|
} } },
|
|
5784
|
-
current_item_id:
|
|
5785
|
-
next_item_id:
|
|
5800
|
+
current_item_id: o.currentItemId,
|
|
5801
|
+
next_item_id: o.nextItemId
|
|
5786
5802
|
})
|
|
5787
5803
|
});
|
|
5788
5804
|
if (!r.ok) throw Error(`Failed to start the questionnaire (${r.status})`);
|
|
5789
5805
|
let { leadId: i } = await r.json();
|
|
5790
|
-
return
|
|
5806
|
+
return Kr(o.link, {
|
|
5791
5807
|
leadid: i,
|
|
5792
|
-
qaId:
|
|
5793
|
-
template:
|
|
5808
|
+
qaId: o.qaId,
|
|
5809
|
+
template: o.thankyouPageTemplate
|
|
5794
5810
|
});
|
|
5795
5811
|
}
|
|
5796
|
-
function
|
|
5797
|
-
|
|
5812
|
+
function w() {
|
|
5813
|
+
l.value || u(async () => {
|
|
5798
5814
|
try {
|
|
5799
|
-
if (!
|
|
5800
|
-
let e = await
|
|
5815
|
+
if (!s.value) throw Error("Missing company data");
|
|
5816
|
+
let e = await C(s.value);
|
|
5801
5817
|
window.location.href = e;
|
|
5802
5818
|
} catch (e) {
|
|
5803
5819
|
console.error(e);
|
|
@@ -5806,22 +5822,23 @@ var Sa = /* @__PURE__ */ B({
|
|
|
5806
5822
|
}
|
|
5807
5823
|
return (t, o) => (y(), i("form", {
|
|
5808
5824
|
class: "vd-form vd-form--vertical vd-form--card",
|
|
5809
|
-
onSubmit: I(
|
|
5810
|
-
}, [e.showTitle && e.title || e.description ? (y(), i("div",
|
|
5811
|
-
modelValue: E(
|
|
5812
|
-
"onUpdate:modelValue": o[0] ||= (e) => d(
|
|
5813
|
-
}, E(
|
|
5814
|
-
"error-message": E(
|
|
5815
|
-
onError:
|
|
5816
|
-
onRaw: o[1] ||= (e) =>
|
|
5817
|
-
}), null, 16, ["modelValue", "error-message"]),
|
|
5825
|
+
onSubmit: I(w, ["prevent", "stop"])
|
|
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({
|
|
5827
|
+
modelValue: E(g),
|
|
5828
|
+
"onUpdate:modelValue": o[0] ||= (e) => d(g) ? g.value = e : null
|
|
5829
|
+
}, E(_), {
|
|
5830
|
+
"error-message": E(v),
|
|
5831
|
+
onError: b,
|
|
5832
|
+
onRaw: o[1] ||= (e) => s.value = e
|
|
5833
|
+
}), null, 16, ["modelValue", "error-message"]), S.value ? (y(), n(E(Bt), {
|
|
5818
5834
|
key: 0,
|
|
5819
5835
|
style: { "margin-top": "12px" },
|
|
5820
5836
|
text: "Dit bedrijf heeft geen geregistreerd bezoekadres. Voeg dit toe bij de KvK om door te gaan met de aanvraag."
|
|
5821
|
-
})) : r("", !0)]), a("div",
|
|
5837
|
+
})) : r("", !0)]), a("div", Ua, [c(E(Ne), {
|
|
5838
|
+
type: "submit",
|
|
5822
5839
|
label: e.buttonText,
|
|
5823
|
-
"is-loading": E(
|
|
5824
|
-
disabled:
|
|
5840
|
+
"is-loading": E(l),
|
|
5841
|
+
disabled: S.value,
|
|
5825
5842
|
"button-type": "green",
|
|
5826
5843
|
size: "big",
|
|
5827
5844
|
block: "",
|
|
@@ -5834,4 +5851,4 @@ var Sa = /* @__PURE__ */ B({
|
|
|
5834
5851
|
}
|
|
5835
5852
|
});
|
|
5836
5853
|
//#endregion
|
|
5837
|
-
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 };
|