@vergelijkdirect/comparison-forms 2.0.0-rc.9 → 2.0.1
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 +104 -71
- package/dist/vue/comparison-forms.js +773 -798
- package/dist/wc/comparison-forms.css +1 -1
- package/dist/wc/comparison-forms.js +6328 -6398
- 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-BLoMUJDa.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/itc-nSCTLC1V.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/travel.cjs +1 -0
- package/dist/wc-forms/useAddress-DJ4aWwYs.cjs +1 -0
- package/dist/wc-forms/useLicensePlate-98nreTI8.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,110 +1579,64 @@ var sn = /*#__PURE__*/ nn(rn, [["render", on]]), J = /* @__PURE__ */ l({
|
|
|
1570
1579
|
_: 1
|
|
1571
1580
|
})]),
|
|
1572
1581
|
_: 1
|
|
1573
|
-
}), I.value ? (y(), i("div",
|
|
1574
|
-
}
|
|
1575
|
-
}), Dn = {
|
|
1576
|
-
vd: { url: "http://master.dev.vergelijkdirect.com/index.php" },
|
|
1577
|
-
mijn: { url: "http://master.mijn-api.vergelijkdirect.com" },
|
|
1578
|
-
api: { url: "http://master.api.vergelijkdirect.com/" },
|
|
1579
|
-
qa: {
|
|
1580
|
-
url: "http://qa-api.dev.vergelijkdirect.com/",
|
|
1581
|
-
qaId: "65dca9821f2b9e9db1060307",
|
|
1582
|
-
currentItemId: "6622695672245691fb02ce02",
|
|
1583
|
-
nextItemId: "65e342a01f2b9e9db1060335"
|
|
1584
|
-
}
|
|
1585
|
-
}, On = class e {
|
|
1586
|
-
values;
|
|
1587
|
-
cached;
|
|
1588
|
-
static instance = new e();
|
|
1589
|
-
constructor(e = {}, t = {}) {
|
|
1590
|
-
this.values = e, this.cached = t;
|
|
1591
|
-
}
|
|
1592
|
-
constant(e, t) {
|
|
1593
|
-
this.values[e] = () => t;
|
|
1594
|
-
}
|
|
1595
|
-
get(e) {
|
|
1596
|
-
return e in this.cached ? this.cached[e] : e in this.values ? this.cached[e] = this.values[e](this) : (`${e}`, !1);
|
|
1597
|
-
}
|
|
1598
|
-
}, kn = class {
|
|
1599
|
-
static configure(e) {
|
|
1600
|
-
let t = On.instance;
|
|
1601
|
-
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);
|
|
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)]));
|
|
1602
1583
|
}
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
static getQAUrl() {
|
|
1610
|
-
return On.instance.get("qa-api-url") || Dn.qa.url;
|
|
1611
|
-
}
|
|
1612
|
-
}, An = () => kn.getQAUrl(), jn;
|
|
1613
|
-
function Mn() {
|
|
1614
|
-
return {
|
|
1615
|
-
dataService: new Te(),
|
|
1616
|
-
dataValidationService: new Ee(),
|
|
1617
|
-
homeService: new De(),
|
|
1618
|
-
comparisonService: new we()
|
|
1619
|
-
};
|
|
1620
|
-
}
|
|
1621
|
-
function Nn() {
|
|
1622
|
-
return jn ||= Mn(), jn;
|
|
1623
|
-
}
|
|
1624
|
-
//#endregion
|
|
1625
|
-
//#region src/components/fields/address/address.presenter.ts
|
|
1626
|
-
var Pn = (e) => ({
|
|
1584
|
+
}), xn, Sn = () => ({
|
|
1585
|
+
dataService: new Te(),
|
|
1586
|
+
dataValidationService: new Ee(),
|
|
1587
|
+
homeService: new De(),
|
|
1588
|
+
comparisonService: new we()
|
|
1589
|
+
}), Cn = () => (xn ||= Sn(), xn), wn = (e) => ({
|
|
1627
1590
|
zipCode: e.ZipCode,
|
|
1628
1591
|
houseNumber: String(e.HouseNumber),
|
|
1629
1592
|
houseNumberAddition: e.HouseNumberAddition,
|
|
1630
1593
|
city: e.Place,
|
|
1631
1594
|
street: e.Street
|
|
1632
|
-
}),
|
|
1595
|
+
}), Tn = /^\d{4}\s?[a-zA-Z]{2}$/, En = /^\d+$/, Dn = {
|
|
1633
1596
|
"needs-addition": "Een toevoeging is verplicht",
|
|
1634
1597
|
"not-found": "Postcode en huisnummer combinatie onbekend.",
|
|
1635
1598
|
error: "Adres ophalen is mislukt. Probeer het opnieuw."
|
|
1636
1599
|
};
|
|
1637
|
-
function
|
|
1600
|
+
function On(e) {
|
|
1638
1601
|
return e.replace(/\s/g, "").toUpperCase();
|
|
1639
1602
|
}
|
|
1640
|
-
var
|
|
1641
|
-
function
|
|
1642
|
-
return e ===
|
|
1603
|
+
var kn = "NO_ADDITION";
|
|
1604
|
+
function An(e) {
|
|
1605
|
+
return e === kn ? "" : e.replace("-", "");
|
|
1643
1606
|
}
|
|
1644
|
-
var
|
|
1645
|
-
if (
|
|
1607
|
+
var jn = (e) => e instanceof Error, Mn = (e) => {
|
|
1608
|
+
if (jn(e)) throw e;
|
|
1646
1609
|
return null;
|
|
1647
|
-
},
|
|
1610
|
+
}, Nn = (e, t, n) => Cn().dataValidationService.validateZipCode(e, t, n).then((e) => e).catch(Mn), Pn = (e, t) => Cn().homeService.getAddition({
|
|
1648
1611
|
zipcode: e,
|
|
1649
1612
|
houseNumber: t
|
|
1650
|
-
}).then((e) => e ?? []).catch(
|
|
1651
|
-
let [n, r] = await Promise.all([
|
|
1613
|
+
}).then((e) => e ?? []).catch(Mn), Fn = async (e, t) => {
|
|
1614
|
+
let [n, r] = await Promise.all([Nn(e, t), Pn(e, t)]);
|
|
1652
1615
|
return !n && !r?.length ? null : {
|
|
1653
1616
|
validWithoutAddition: !!n,
|
|
1654
1617
|
template: n,
|
|
1655
1618
|
additions: r ?? []
|
|
1656
1619
|
};
|
|
1657
|
-
},
|
|
1620
|
+
}, In = (e) => {
|
|
1658
1621
|
let t = e.additions.map((e) => ({
|
|
1659
1622
|
title: e,
|
|
1660
|
-
value:
|
|
1623
|
+
value: An(e)
|
|
1661
1624
|
}));
|
|
1662
1625
|
return e.validWithoutAddition && t.length ? [{
|
|
1663
1626
|
title: "Geen toevoeging",
|
|
1664
|
-
value:
|
|
1627
|
+
value: kn
|
|
1665
1628
|
}, ...t] : t;
|
|
1666
|
-
},
|
|
1629
|
+
}, Ln = (e) => ({
|
|
1667
1630
|
zipCode: e?.zipCode ?? "",
|
|
1668
1631
|
houseNumber: e?.houseNumber ?? "",
|
|
1669
|
-
houseNumberAddition: e ? e.houseNumberAddition ||
|
|
1670
|
-
}),
|
|
1671
|
-
let t = e?.path ?? "address", n =
|
|
1672
|
-
let t =
|
|
1632
|
+
houseNumberAddition: e ? e.houseNumberAddition || kn : ""
|
|
1633
|
+
}), Rn = (e) => {
|
|
1634
|
+
let t = e?.path ?? "address", n = Ln(e?.initial), r = x(null), i = x([]), a = 0, o = null, s = async (e) => {
|
|
1635
|
+
let t = On(e.zipCode), n = e.houseNumber.trim(), r = An(e.houseNumberAddition), i = `${t}:${n}`;
|
|
1673
1636
|
try {
|
|
1674
1637
|
let a = o?.key === i ? o : null;
|
|
1675
1638
|
if (!a) {
|
|
1676
|
-
let e = await
|
|
1639
|
+
let e = await Fn(t, n);
|
|
1677
1640
|
if (!e) return {
|
|
1678
1641
|
status: "not-found",
|
|
1679
1642
|
options: [],
|
|
@@ -1684,14 +1647,14 @@ var Vn = (e) => e instanceof Error, Hn = (e) => {
|
|
|
1684
1647
|
verdict: e
|
|
1685
1648
|
};
|
|
1686
1649
|
}
|
|
1687
|
-
let s =
|
|
1650
|
+
let s = In(a.verdict);
|
|
1688
1651
|
if (a.verdict.additions.length && !e.houseNumberAddition) return {
|
|
1689
1652
|
status: "needs-addition",
|
|
1690
1653
|
options: s,
|
|
1691
1654
|
address: null
|
|
1692
1655
|
};
|
|
1693
1656
|
if (!a.verdict.template) {
|
|
1694
|
-
let e = await
|
|
1657
|
+
let e = await Nn(t, n, r);
|
|
1695
1658
|
if (!e) return {
|
|
1696
1659
|
status: "not-found",
|
|
1697
1660
|
options: [],
|
|
@@ -1716,7 +1679,7 @@ var Vn = (e) => e instanceof Error, Hn = (e) => {
|
|
|
1716
1679
|
}
|
|
1717
1680
|
}, c = async (e) => {
|
|
1718
1681
|
let t = ++a, n = await s(e), o = t !== a;
|
|
1719
|
-
return o || (i.value = n.options, r.value = n.address ?
|
|
1682
|
+
return o || (i.value = n.options, r.value = n.address ? wn(n.address) : null), {
|
|
1720
1683
|
...n,
|
|
1721
1684
|
stale: o
|
|
1722
1685
|
};
|
|
@@ -1724,23 +1687,23 @@ var Vn = (e) => e instanceof Error, Hn = (e) => {
|
|
|
1724
1687
|
return {
|
|
1725
1688
|
path: t,
|
|
1726
1689
|
addressSchema: R({
|
|
1727
|
-
zipCode: z().required("Vul je postcode in").matches(
|
|
1728
|
-
houseNumber: z().required("Huisnummer is verplicht").matches(
|
|
1690
|
+
zipCode: z().required("Vul je postcode in").matches(Tn, "Postcode is incorrect"),
|
|
1691
|
+
houseNumber: z().required("Huisnummer is verplicht").matches(En, "Huisnummer is incorrect"),
|
|
1729
1692
|
houseNumberAddition: z().defined()
|
|
1730
1693
|
}).test("address-lookup", async (e, t) => {
|
|
1731
|
-
let n =
|
|
1732
|
-
if (!
|
|
1694
|
+
let n = On(e.zipCode ?? ""), r = String(e.houseNumber ?? "").trim();
|
|
1695
|
+
if (!Tn.test(n) || !En.test(r)) return !0;
|
|
1733
1696
|
let { status: i, stale: a } = await c(e);
|
|
1734
1697
|
return a || i === "resolved" ? !0 : i === "needs-addition" ? t.createError({
|
|
1735
1698
|
path: `${t.path}.houseNumberAddition`,
|
|
1736
|
-
message:
|
|
1737
|
-
}) : t.createError({ message:
|
|
1699
|
+
message: Dn[i]
|
|
1700
|
+
}) : t.createError({ message: Dn[i] });
|
|
1738
1701
|
}),
|
|
1739
1702
|
draft: n,
|
|
1740
1703
|
resolvedAddress: r,
|
|
1741
1704
|
additionOptions: i
|
|
1742
1705
|
};
|
|
1743
|
-
},
|
|
1706
|
+
}, zn = {
|
|
1744
1707
|
[V.Car]: {
|
|
1745
1708
|
apiTypes: ["Car", "Van"],
|
|
1746
1709
|
dutch: "auto",
|
|
@@ -1761,14 +1724,14 @@ var Vn = (e) => e instanceof Error, Hn = (e) => {
|
|
|
1761
1724
|
dutch: "caravan",
|
|
1762
1725
|
icon: "fa-caravan-alt"
|
|
1763
1726
|
}
|
|
1764
|
-
},
|
|
1727
|
+
}, Bn = Object.fromEntries(Object.values(zn).flatMap(({ apiTypes: e, icon: t }) => e.map((e) => [e.toLowerCase(), t]))), Vn = {
|
|
1765
1728
|
brommobiel: "fa-car-side",
|
|
1766
1729
|
"speed pedelec": "fa-bicycle"
|
|
1767
|
-
},
|
|
1730
|
+
}, Hn = (e) => !!e?.Brand && !!e.Model && !!e.ManufacturingYear, Un = (e) => {
|
|
1768
1731
|
if (!e) return "";
|
|
1769
1732
|
let t = String(e.Model ?? "").toLowerCase().trim(), n = String(e.VehicleType ?? "").toLowerCase();
|
|
1770
|
-
return
|
|
1771
|
-
},
|
|
1733
|
+
return Vn[t] ?? Bn[n] ?? "";
|
|
1734
|
+
}, Wn = (e) => e ? `${e.Brand} ${e.Model} (${e.ManufacturingYear})` : "", Gn = [
|
|
1772
1735
|
"@@-##-@@",
|
|
1773
1736
|
"##-##-@@",
|
|
1774
1737
|
"##-@@-@@",
|
|
@@ -1786,22 +1749,22 @@ var Vn = (e) => e instanceof Error, Hn = (e) => {
|
|
|
1786
1749
|
];
|
|
1787
1750
|
//#endregion
|
|
1788
1751
|
//#region src/components/fields/licensePlate/licensePlate.util.ts
|
|
1789
|
-
function
|
|
1752
|
+
function Kn(e) {
|
|
1790
1753
|
return e.replace(/[\s\\-]/g, "");
|
|
1791
1754
|
}
|
|
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 ?
|
|
1755
|
+
var qn = "*".repeat(6), Jn = Gn.map((e) => e.replace(/-/g, ""));
|
|
1756
|
+
function Yn(e) {
|
|
1757
|
+
let t = Kn(e).slice(0, 6);
|
|
1758
|
+
if (t.length < 6) return qn;
|
|
1759
|
+
let n = [...t].map((e) => /[0-9]/.test(e) ? "#" : "@").join(""), r = Jn.indexOf(n);
|
|
1760
|
+
return r === -1 ? qn : Gn[r];
|
|
1798
1761
|
}
|
|
1799
1762
|
//#endregion
|
|
1800
1763
|
//#region src/components/fields/licensePlate/VdLicensePlate.vue?vue&type=script&setup=true&lang.ts
|
|
1801
|
-
var
|
|
1764
|
+
var Xn = {
|
|
1802
1765
|
key: 0,
|
|
1803
1766
|
class: "vd-input-license-plate__loading-information"
|
|
1804
|
-
},
|
|
1767
|
+
}, Zn = ["src"], Qn = /* @__PURE__ */ l({
|
|
1805
1768
|
inheritAttrs: !1,
|
|
1806
1769
|
__name: "VdLicensePlate",
|
|
1807
1770
|
props: /*@__PURE__*/ p({
|
|
@@ -1824,17 +1787,17 @@ var or = {
|
|
|
1824
1787
|
}),
|
|
1825
1788
|
emits: /*@__PURE__*/ p(["input"], ["update:modelValue", "update:vehicleData"]),
|
|
1826
1789
|
setup(c, { emit: l }) {
|
|
1827
|
-
let u = { mask:
|
|
1790
|
+
let u = { mask: Yn }, d = c, f = k(c, "modelValue"), p = k(c, "vehicleData"), h = l, g = D(), _ = A(), v = t({
|
|
1828
1791
|
get: () => f.value ?? "",
|
|
1829
1792
|
set: (e) => {
|
|
1830
1793
|
f.value = e, h("input", e);
|
|
1831
1794
|
}
|
|
1832
|
-
}), b = (e, t) =>
|
|
1795
|
+
}), b = (e, t) => Kn(e).toUpperCase() === Kn(t).toUpperCase();
|
|
1833
1796
|
N(f, (e) => {
|
|
1834
1797
|
p.value && !b(e, p.value.LicensePlate) && (p.value = null);
|
|
1835
1798
|
});
|
|
1836
|
-
let x = t(() =>
|
|
1837
|
-
return (t, l) => (y(), n(
|
|
1799
|
+
let x = t(() => Hn(p.value) ? p.value : null), S = t(() => d.loading || !!x.value && !d.errorMessage), w = t(() => Un(x.value)), O = t(() => Wn(x.value));
|
|
1800
|
+
return (t, l) => (y(), n(We, m(E(g), {
|
|
1838
1801
|
modelValue: v.value,
|
|
1839
1802
|
"onUpdate:modelValue": l[0] ||= (e) => v.value = e,
|
|
1840
1803
|
capitalize: "",
|
|
@@ -1859,12 +1822,12 @@ var or = {
|
|
|
1859
1822
|
} : void 0,
|
|
1860
1823
|
S.value ? {
|
|
1861
1824
|
name: "information",
|
|
1862
|
-
fn: P(() => [c.loading ? (y(), i("div",
|
|
1825
|
+
fn: P(() => [c.loading ? (y(), i("div", Xn, [...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
1826
|
key: 0,
|
|
1864
1827
|
src: `https://d12bmfj3oyxu0t.cloudfront.net/vergelijkdirect/icons/${w.value}.svg`,
|
|
1865
1828
|
class: "vd-field__svg-message-icon",
|
|
1866
1829
|
alt: "vehicle-icon"
|
|
1867
|
-
}, null, 8,
|
|
1830
|
+
}, null, 8, Zn)) : r("", !0), s(" " + T(O.value), 1)], 64)) : r("", !0)]),
|
|
1868
1831
|
key: "2"
|
|
1869
1832
|
} : void 0
|
|
1870
1833
|
]), 1040, [
|
|
@@ -1876,56 +1839,56 @@ var or = {
|
|
|
1876
1839
|
"loading"
|
|
1877
1840
|
]));
|
|
1878
1841
|
}
|
|
1879
|
-
}),
|
|
1880
|
-
"wrong-type": (e) => `Het ingevoerde kenteken is geen ${
|
|
1842
|
+
}), $n = /* @__PURE__ */ new Map(), er = (e, t) => `${t}:${e}`, tr = {
|
|
1843
|
+
"wrong-type": (e) => `Het ingevoerde kenteken is geen ${zn[e].dutch}`,
|
|
1881
1844
|
unknown: () => "Voertuig onbekend - Voer ander kenteken in of neem contact op",
|
|
1882
1845
|
"not-found": () => "Kenteken onbekend",
|
|
1883
1846
|
error: () => "Kenteken is incorrect"
|
|
1884
|
-
},
|
|
1847
|
+
}, nr = async (e, t) => {
|
|
1885
1848
|
try {
|
|
1886
|
-
let n = await
|
|
1849
|
+
let n = await Cn().dataService.findVehicle(e, t);
|
|
1887
1850
|
if (Array.isArray(n) || !n || !Object.keys(n).length) return { status: "not-found" };
|
|
1888
1851
|
let r = n;
|
|
1889
|
-
return r.VehicleType ?
|
|
1852
|
+
return r.VehicleType ? zn[t].apiTypes.includes(r.VehicleType) ? {
|
|
1890
1853
|
status: "found",
|
|
1891
1854
|
data: r
|
|
1892
1855
|
} : { status: "wrong-type" } : { status: "unknown" };
|
|
1893
1856
|
} catch (e) {
|
|
1894
1857
|
return console.error("Error on ITC findVehicle", e), { status: "error" };
|
|
1895
1858
|
}
|
|
1896
|
-
},
|
|
1897
|
-
let n =
|
|
1898
|
-
return r || (r =
|
|
1899
|
-
e === "error" &&
|
|
1900
|
-
}, () =>
|
|
1901
|
-
},
|
|
1859
|
+
}, rr = (e, t) => {
|
|
1860
|
+
let n = er(e, t), r = $n.get(n);
|
|
1861
|
+
return r || (r = nr(e, t), $n.set(n, r), r.then(({ status: e }) => {
|
|
1862
|
+
e === "error" && $n.delete(n);
|
|
1863
|
+
}, () => $n.delete(n))), r;
|
|
1864
|
+
}, ir = (e, t = {}) => {
|
|
1902
1865
|
let n = x(t.initialData ?? null), r = 0;
|
|
1903
|
-
t.initialData?.LicensePlate &&
|
|
1866
|
+
t.initialData?.LicensePlate && $n.set(er(Kn(t.initialData.LicensePlate), e), Promise.resolve({
|
|
1904
1867
|
status: "found",
|
|
1905
1868
|
data: t.initialData
|
|
1906
1869
|
}));
|
|
1907
1870
|
let i = async (t) => {
|
|
1908
|
-
let i =
|
|
1871
|
+
let i = Kn(t), a = ++r, o = await rr(i, e);
|
|
1909
1872
|
return a === r && (n.value = o.status === "found" ? o.data : null), o;
|
|
1910
1873
|
};
|
|
1911
1874
|
return {
|
|
1912
1875
|
vehicleData: n,
|
|
1913
1876
|
licensePlateSchema: z().required("Dit veld is verplicht").test("license-plate-lookup", async (t, n) => {
|
|
1914
1877
|
if (!t) return !0;
|
|
1915
|
-
let r =
|
|
1878
|
+
let r = Kn(t);
|
|
1916
1879
|
if (r.length < 6) return n.createError({ message: "Kenteken is incorrect" });
|
|
1917
1880
|
let { status: a } = await i(r);
|
|
1918
|
-
return a === "found" || n.createError({ message:
|
|
1881
|
+
return a === "found" || n.createError({ message: tr[a](e) });
|
|
1919
1882
|
})
|
|
1920
1883
|
};
|
|
1921
|
-
},
|
|
1884
|
+
}, ar = (e) => /^\d{8}$/.test(e), or = (e) => ar(e) ? {
|
|
1922
1885
|
companyName: "",
|
|
1923
1886
|
kvkNumber: e
|
|
1924
1887
|
} : {
|
|
1925
1888
|
companyName: e,
|
|
1926
1889
|
kvkNumber: ""
|
|
1927
|
-
},
|
|
1928
|
-
let t =
|
|
1890
|
+
}, sr = "bezoekadres", cr = (e) => e._embedded?.hoofdvestiging?.adressen?.find((e) => e.type === sr), lr = (e) => {
|
|
1891
|
+
let t = cr(e), { huisnummer: n = 0, huisletter: r = "", huisnummerToevoeging: i = "", toevoegingAdres: a = "", plaats: o = "", postcode: s = "", straatnaam: c = "", volledigAdres: l = "" } = t ?? {};
|
|
1929
1892
|
return {
|
|
1930
1893
|
houseNumber: n,
|
|
1931
1894
|
houseNumberAddition: r || i || a,
|
|
@@ -1935,7 +1898,7 @@ var or = {
|
|
|
1935
1898
|
fullAddress: l,
|
|
1936
1899
|
hasVisitingAddress: !!t
|
|
1937
1900
|
};
|
|
1938
|
-
},
|
|
1901
|
+
}, ur = (e = []) => {
|
|
1939
1902
|
let [t, n, r] = e.reduce(([e, t, n], r) => {
|
|
1940
1903
|
let i = {
|
|
1941
1904
|
isMainActivity: r.indHoofdactiviteit,
|
|
@@ -1958,20 +1921,20 @@ var or = {
|
|
|
1958
1921
|
firstSBIs: t,
|
|
1959
1922
|
secondSBIs: n
|
|
1960
1923
|
};
|
|
1961
|
-
},
|
|
1924
|
+
}, dr = (e) => ({
|
|
1962
1925
|
kvkNumber: e.kvkNummer,
|
|
1963
1926
|
name: e.naam,
|
|
1964
1927
|
city: e.adres?.binnenlandsAdres?.plaats ?? "",
|
|
1965
1928
|
street: e.adres?.binnenlandsAdres?.straatnaam ?? ""
|
|
1966
|
-
}),
|
|
1929
|
+
}), fr = (e) => ({
|
|
1967
1930
|
name: e.naam,
|
|
1968
1931
|
kvkNumber: e.kvkNummer,
|
|
1969
1932
|
industry: e.sbiIndustryId,
|
|
1970
1933
|
numberOfEmployees: e.totaalWerkzamePersonen,
|
|
1971
1934
|
legalForm: e._embedded?.eigenaar?.rechtsvorm ?? "",
|
|
1972
|
-
...
|
|
1973
|
-
...
|
|
1974
|
-
}),
|
|
1935
|
+
...lr(e),
|
|
1936
|
+
...ur(e.sbiActiviteiten)
|
|
1937
|
+
}), pr = 30, mr = ["hoofdvestiging", "nevenvestiging"], hr = "IPD5200", gr = (e) => {
|
|
1975
1938
|
let t = e, n = t?.response?.data?.fout;
|
|
1976
1939
|
if (Array.isArray(n)) return n;
|
|
1977
1940
|
if (Array.isArray(t?.fout)) return t.fout;
|
|
@@ -1979,27 +1942,24 @@ var or = {
|
|
|
1979
1942
|
let e = JSON.parse(t.message);
|
|
1980
1943
|
if (Array.isArray(e?.fout)) return e.fout;
|
|
1981
1944
|
} 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
|
-
};
|
|
1945
|
+
}, _r = (e) => gr(e)?.some((e) => e.code === hr) ?? !1, vr = () => ({
|
|
1946
|
+
search: async (e) => {
|
|
1947
|
+
try {
|
|
1948
|
+
return ((await Cn().dataService.searchBusinessInfoV2(or(e), 1, pr))?.resultaten ?? []).filter((e) => mr.includes(e.type)).map(dr);
|
|
1949
|
+
} catch (e) {
|
|
1950
|
+
let t = await e;
|
|
1951
|
+
if (_r(t)) return [];
|
|
1952
|
+
throw t;
|
|
2000
1953
|
}
|
|
2001
|
-
}
|
|
2002
|
-
|
|
1954
|
+
},
|
|
1955
|
+
getDetails: async (e) => {
|
|
1956
|
+
let t = await Cn().dataService.getProfileInfo(e);
|
|
1957
|
+
return {
|
|
1958
|
+
presenter: fr(t),
|
|
1959
|
+
raw: t
|
|
1960
|
+
};
|
|
1961
|
+
}
|
|
1962
|
+
}), yr = { class: "vd-combobox__multiline" }, br = { class: "vd-combobox__title" }, xr = { class: "vd-combobox__subtext" }, Sr = { class: "vd-combobox__subtext" }, Cr = 400, wr = 3, Tr = "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.", Er = "Typ je bedrijfsnaam of KvK-nummer", Dr = "Aan het zoeken…", Or = "Er ging iets mis bij het ophalen van de gegevens. Probeer het later opnieuw.", kr = /* @__PURE__ */ l({
|
|
2003
1963
|
inheritAttrs: !1,
|
|
2004
1964
|
__name: "VdCompanySelect",
|
|
2005
1965
|
props: /*@__PURE__*/ p({
|
|
@@ -2018,7 +1978,7 @@ var or = {
|
|
|
2018
1978
|
"raw"
|
|
2019
1979
|
], ["update:modelValue"]),
|
|
2020
1980
|
setup(e, { emit: r }) {
|
|
2021
|
-
let i = r, s = D(), c = A(), l = k(e, "modelValue"), { search: u, getDetails: d } =
|
|
1981
|
+
let i = r, s = D(), c = A(), l = k(e, "modelValue"), { search: u, getDetails: d } = vr(), f = x(), p = x(), h = x(), g = x(""), _ = he(g, Cr, { maxWait: 2e3 }), v = x(!0), { state: b, isLoading: S, execute: w } = ge(async (e) => {
|
|
2022
1982
|
try {
|
|
2023
1983
|
return {
|
|
2024
1984
|
results: await u(e),
|
|
@@ -2036,33 +1996,33 @@ var or = {
|
|
|
2036
1996
|
}, {
|
|
2037
1997
|
immediate: !1,
|
|
2038
1998
|
resetOnExecute: !1
|
|
2039
|
-
}), { isLoading: O, execute: j } =
|
|
1999
|
+
}), { isLoading: O, execute: j } = ge(async (e) => {
|
|
2040
2000
|
try {
|
|
2041
2001
|
let { presenter: t, raw: n } = await d(e);
|
|
2042
2002
|
return l.value = t, i("raw", n), i("error", null), t;
|
|
2043
2003
|
} catch (e) {
|
|
2044
|
-
throw l.value = null, i("raw", null), h.value = void 0, f.value = void 0, i("error",
|
|
2004
|
+
throw l.value = null, i("raw", null), h.value = void 0, f.value = void 0, i("error", Or), e;
|
|
2045
2005
|
}
|
|
2046
2006
|
}, null, {
|
|
2047
2007
|
immediate: !1,
|
|
2048
2008
|
resetOnExecute: !0
|
|
2049
|
-
}), M = t(() => g.value.length >=
|
|
2009
|
+
}), M = t(() => g.value.length >= wr), 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
2010
|
let e = l.value;
|
|
2051
2011
|
return !e || L.value ? "" : e.fullAddress ? `Kvk: ${e.kvkNumber} ${e.fullAddress}` : `Kvk: ${e.kvkNumber}`;
|
|
2052
2012
|
}), ne = t(() => {
|
|
2053
2013
|
switch (F.value) {
|
|
2054
|
-
case "searching": return
|
|
2055
|
-
case "error": return
|
|
2056
|
-
case "no-results": return
|
|
2057
|
-
default: return
|
|
2014
|
+
case "searching": return Dr;
|
|
2015
|
+
case "error": return Or;
|
|
2016
|
+
case "no-results": return Tr;
|
|
2017
|
+
default: return Er;
|
|
2058
2018
|
}
|
|
2059
|
-
}),
|
|
2019
|
+
}), re = (e) => {
|
|
2060
2020
|
h.value = e, v.value = !0, e.kvkNumber === l.value?.kvkNumber ? i("error", null) : j(0, e.kvkNumber);
|
|
2061
|
-
},
|
|
2021
|
+
}, ie = (e) => {
|
|
2062
2022
|
i("blur", e);
|
|
2063
|
-
},
|
|
2023
|
+
}, ae = (e) => {
|
|
2064
2024
|
g.value = e.trim(), v.value = !1;
|
|
2065
|
-
},
|
|
2025
|
+
}, oe = (e) => e.kvkNumber === l.value?.kvkNumber ? l.value.name : e.name, se = (e) => ({
|
|
2066
2026
|
kvkNumber: e.kvkNumber,
|
|
2067
2027
|
name: e.name,
|
|
2068
2028
|
city: e.city,
|
|
@@ -2072,10 +2032,10 @@ var or = {
|
|
|
2072
2032
|
return N(p, (e) => {
|
|
2073
2033
|
e || (g.value = "", v.value = !0);
|
|
2074
2034
|
}), N(_, (e) => {
|
|
2075
|
-
e && e.length >=
|
|
2035
|
+
e && e.length >= wr && w(0, e);
|
|
2076
2036
|
}), N(l, (e) => {
|
|
2077
|
-
f.value = e ?
|
|
2078
|
-
}, { immediate: !0 }), (t, r) => (y(), n(
|
|
2037
|
+
f.value = e ? se(e) : void 0, v.value = !0, e || (h.value = void 0, i("raw", null));
|
|
2038
|
+
}, { immediate: !0 }), (t, r) => (y(), n(Tt, m(E(s), {
|
|
2079
2039
|
modelValue: f.value,
|
|
2080
2040
|
"onUpdate:modelValue": r[0] ||= (e) => f.value = e,
|
|
2081
2041
|
open: p.value,
|
|
@@ -2087,7 +2047,7 @@ var or = {
|
|
|
2087
2047
|
options: I.value,
|
|
2088
2048
|
"value-key": null,
|
|
2089
2049
|
"label-key": "name",
|
|
2090
|
-
"display-value":
|
|
2050
|
+
"display-value": oe,
|
|
2091
2051
|
by: "kvkNumber",
|
|
2092
2052
|
loading: L.value,
|
|
2093
2053
|
verified: ee.value,
|
|
@@ -2096,14 +2056,14 @@ var or = {
|
|
|
2096
2056
|
"error-message": e.errorMessage,
|
|
2097
2057
|
"info-message": te.value,
|
|
2098
2058
|
"ignore-filter": "",
|
|
2099
|
-
onSelect:
|
|
2100
|
-
onBlur:
|
|
2101
|
-
onSearch:
|
|
2059
|
+
onSelect: re,
|
|
2060
|
+
onBlur: ie,
|
|
2061
|
+
onSearch: ae
|
|
2102
2062
|
}), o({
|
|
2103
|
-
item: P(({ option: e }) => [a("div",
|
|
2104
|
-
a("div",
|
|
2105
|
-
a("span",
|
|
2106
|
-
a("span",
|
|
2063
|
+
item: P(({ option: e }) => [a("div", yr, [
|
|
2064
|
+
a("div", br, T(e.name), 1),
|
|
2065
|
+
a("span", xr, "Kvk: " + T(e.kvkNumber), 1),
|
|
2066
|
+
a("span", Sr, T(e.city) + ", " + T(e.street), 1)
|
|
2107
2067
|
])]),
|
|
2108
2068
|
_: 2
|
|
2109
2069
|
}, [E(c).popover ? {
|
|
@@ -2129,30 +2089,30 @@ var or = {
|
|
|
2129
2089
|
"info-message"
|
|
2130
2090
|
]));
|
|
2131
2091
|
}
|
|
2132
|
-
}),
|
|
2092
|
+
}), Ar = (e = "Bedrijfsnaam of KVK-nummer is verplicht") => Se().nullable().required(e).test("has-kvk-number", e, (e) => !!e?.kvkNumber), jr = {
|
|
2133
2093
|
min: 18,
|
|
2134
2094
|
max: 99
|
|
2135
|
-
},
|
|
2095
|
+
}, Mr = "DD-MM-YYYY", Nr = [
|
|
2136
2096
|
H.SingleWithoutChildren,
|
|
2137
2097
|
H.FamilyWithoutChildren,
|
|
2138
2098
|
H.SingleWithChildren,
|
|
2139
2099
|
H.FamilyWithChildren
|
|
2140
|
-
],
|
|
2100
|
+
], Pr = [U.Yes, U.No];
|
|
2141
2101
|
//#endregion
|
|
2142
2102
|
//#region src/utils/date.util.ts
|
|
2143
2103
|
ke.extend(Ae);
|
|
2144
|
-
function
|
|
2104
|
+
function Fr() {
|
|
2145
2105
|
return ke().startOf("day");
|
|
2146
2106
|
}
|
|
2147
|
-
function
|
|
2148
|
-
return
|
|
2107
|
+
function Ir() {
|
|
2108
|
+
return Fr().year();
|
|
2149
2109
|
}
|
|
2150
|
-
function
|
|
2110
|
+
function Lr(e, t) {
|
|
2151
2111
|
let n = ke(e ?? "", t, !0);
|
|
2152
2112
|
return n.isValid() ? n.startOf("day") : null;
|
|
2153
2113
|
}
|
|
2154
|
-
function
|
|
2155
|
-
let n =
|
|
2114
|
+
function Rr(e, t) {
|
|
2115
|
+
let n = Fr();
|
|
2156
2116
|
return {
|
|
2157
2117
|
today: n,
|
|
2158
2118
|
earliest: n.subtract(t.value + 1, t.unit).add(1, "day"),
|
|
@@ -2161,28 +2121,28 @@ function Jr(e, t) {
|
|
|
2161
2121
|
}
|
|
2162
2122
|
//#endregion
|
|
2163
2123
|
//#region src/utils/familyComposition.util.ts
|
|
2164
|
-
var
|
|
2165
|
-
function
|
|
2166
|
-
return
|
|
2124
|
+
var zr = [H.FamilyWithChildren, H.FamilyWithoutChildren];
|
|
2125
|
+
function Br(e) {
|
|
2126
|
+
return zr.includes(e);
|
|
2167
2127
|
}
|
|
2168
2128
|
//#endregion
|
|
2169
2129
|
//#region src/utils/url.util.ts
|
|
2170
|
-
var
|
|
2130
|
+
var Vr = (e, t) => {
|
|
2171
2131
|
let [n, r = ""] = e.split("?"), i = new URLSearchParams(r);
|
|
2172
2132
|
return Object.entries(t).forEach(([e, t]) => i.set(e, t)), `${n}?${i.toString()}`;
|
|
2173
|
-
},
|
|
2133
|
+
}, Hr = (e, t) => {
|
|
2174
2134
|
let n = e.indexOf("#");
|
|
2175
|
-
return n === -1 ?
|
|
2135
|
+
return n === -1 ? Vr(e, t) : `${e.slice(0, n + 1)}${Vr(e.slice(n + 1), t)}`;
|
|
2176
2136
|
};
|
|
2177
2137
|
//#endregion
|
|
2178
2138
|
//#region src/schemas/birthdateRange.ts
|
|
2179
|
-
function
|
|
2139
|
+
function Ur(e, t, n = "ageRange") {
|
|
2180
2140
|
return {
|
|
2181
2141
|
name: n,
|
|
2182
2142
|
test(n, r) {
|
|
2183
|
-
let i =
|
|
2143
|
+
let i = Lr(n, Mr);
|
|
2184
2144
|
if (!i) return !0;
|
|
2185
|
-
let { today: a, earliest: o, latest: s } =
|
|
2145
|
+
let { today: a, earliest: o, latest: s } = Rr(e.min, e.max), c = {
|
|
2186
2146
|
earliest: o,
|
|
2187
2147
|
latest: s
|
|
2188
2148
|
};
|
|
@@ -2205,6 +2165,7 @@ var Q = {
|
|
|
2205
2165
|
kindRequired: "Selecteer je fiets",
|
|
2206
2166
|
conditionRequired: "Is je fiets nieuw of tweedehands gekocht?",
|
|
2207
2167
|
priceRequired: "Vul de aankoopprijs in (afgerond bedrag)",
|
|
2168
|
+
priceMin: "Het ingevulde bedrag is te laag. Voer een bedrag hoger dan € 0,- in",
|
|
2208
2169
|
priceMax: (e) => `Het ingevulde bedrag is te hoog. Voer een bedrag in tot maximaal € ${e},-`,
|
|
2209
2170
|
brandRequired: "Kies het merk van je fiets"
|
|
2210
2171
|
},
|
|
@@ -2224,18 +2185,18 @@ var Q = {
|
|
|
2224
2185
|
pet: {
|
|
2225
2186
|
kindRequired: "Selecteer je huisdier",
|
|
2226
2187
|
outOfRange: (e, t) => `Je huisdier dient geboren te zijn tussen ${e} en ${t}`,
|
|
2227
|
-
|
|
2228
|
-
|
|
2188
|
+
zipCodeRequired: "Vul je postcode in",
|
|
2189
|
+
zipCodeInvalid: "Postcode is incorrect"
|
|
2229
2190
|
},
|
|
2230
2191
|
travel: { paymentTermRequired: "Selecteer een dekking" }
|
|
2231
2192
|
};
|
|
2232
2193
|
//#endregion
|
|
2233
2194
|
//#region src/schemas/birthdate.schema.ts
|
|
2234
|
-
function
|
|
2235
|
-
return
|
|
2195
|
+
function Wr(e) {
|
|
2196
|
+
return Lr(e, Mr) !== null;
|
|
2236
2197
|
}
|
|
2237
|
-
function $(e =
|
|
2238
|
-
return z().required(Q.birthdate.required).test("date_format", Q.birthdate.dateFormat,
|
|
2198
|
+
function $(e = jr) {
|
|
2199
|
+
return z().required(Q.birthdate.required).test("date_format", Q.birthdate.dateFormat, Wr).test(Ur({
|
|
2239
2200
|
min: {
|
|
2240
2201
|
value: e.min,
|
|
2241
2202
|
unit: "year"
|
|
@@ -2251,39 +2212,46 @@ function $(e = Vr) {
|
|
|
2251
2212
|
}
|
|
2252
2213
|
//#endregion
|
|
2253
2214
|
//#region src/schemas/rules.ts
|
|
2254
|
-
function
|
|
2215
|
+
function Gr(e, t) {
|
|
2255
2216
|
return z().required(t).oneOf(e, t);
|
|
2256
2217
|
}
|
|
2257
|
-
function
|
|
2218
|
+
function Kr(e) {
|
|
2258
2219
|
return z().required(e);
|
|
2259
2220
|
}
|
|
2260
|
-
function
|
|
2221
|
+
function qr(e) {
|
|
2261
2222
|
return Ce().typeError(e).required(e);
|
|
2262
2223
|
}
|
|
2263
2224
|
//#endregion
|
|
2264
2225
|
//#region src/schemas/familyComposition.schema.ts
|
|
2265
|
-
function
|
|
2266
|
-
return
|
|
2226
|
+
function Jr(e = Q.familyComposition.required) {
|
|
2227
|
+
return Gr(Nr, e);
|
|
2267
2228
|
}
|
|
2268
|
-
var
|
|
2229
|
+
var Yr = Jr(), Xr = Gr(Pr, Q.ownedBuilding.required), Zr = [1, 7], Qr = [3, 4], $r = {
|
|
2269
2230
|
raceOrMtb: 15e3,
|
|
2270
2231
|
default: 9999
|
|
2271
|
-
},
|
|
2232
|
+
}, ei = {
|
|
2233
|
+
mask: "N####",
|
|
2234
|
+
tokens: { N: { pattern: /[1-9]/ } }
|
|
2235
|
+
}, ti = (e, t) => e.test("max-value", Q.bike.priceMax(t), (e) => {
|
|
2272
2236
|
let n = Number(e);
|
|
2273
2237
|
return Number.isNaN(n) || n <= t;
|
|
2274
|
-
}),
|
|
2275
|
-
kind:
|
|
2276
|
-
condition:
|
|
2277
|
-
price: z().required(Q.bike.priceRequired).
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2238
|
+
}), ni = R({
|
|
2239
|
+
kind: qr(Q.bike.kindRequired),
|
|
2240
|
+
condition: qr(Q.bike.conditionRequired),
|
|
2241
|
+
price: z().required(Q.bike.priceRequired).test("min-value", Q.bike.priceMin, (e) => {
|
|
2242
|
+
if (!e) return !0;
|
|
2243
|
+
let t = Number(e);
|
|
2244
|
+
return Number.isNaN(t) || t > 0;
|
|
2245
|
+
}).when("kind", {
|
|
2246
|
+
is: (e) => Qr.includes(Number(e)),
|
|
2247
|
+
then: (e) => ti(e, $r.raceOrMtb),
|
|
2248
|
+
otherwise: (e) => ti(e, $r.default)
|
|
2281
2249
|
}),
|
|
2282
2250
|
brand: z().when("kind", {
|
|
2283
|
-
is: (e) =>
|
|
2251
|
+
is: (e) => Zr.includes(Number(e)),
|
|
2284
2252
|
then: (e) => e.required(Q.bike.brandRequired)
|
|
2285
2253
|
})
|
|
2286
|
-
}),
|
|
2254
|
+
}), ri = [
|
|
2287
2255
|
{
|
|
2288
2256
|
value: 4,
|
|
2289
2257
|
title: "ATB / Mountainbike",
|
|
@@ -2350,13 +2318,13 @@ var ai = ii(), oi = ti(Wr, Q.ownedBuilding.required), si = [1, 7], ci = [3, 4],
|
|
|
2350
2318
|
name: "Vouwfiets",
|
|
2351
2319
|
isEBike: !1
|
|
2352
2320
|
}
|
|
2353
|
-
],
|
|
2321
|
+
], ii = [{
|
|
2354
2322
|
value: 1,
|
|
2355
2323
|
label: "Nieuw"
|
|
2356
2324
|
}, {
|
|
2357
2325
|
value: 0,
|
|
2358
2326
|
label: "Tweedehands"
|
|
2359
|
-
}],
|
|
2327
|
+
}], ai = [
|
|
2360
2328
|
{
|
|
2361
2329
|
id: "Ander merk",
|
|
2362
2330
|
name: "Ander merk"
|
|
@@ -3777,7 +3745,7 @@ var ai = ii(), oi = ti(Wr, Q.ownedBuilding.required), si = [1, 7], ci = [3, 4],
|
|
|
3777
3745
|
id: "Zündapp",
|
|
3778
3746
|
name: "Zündapp"
|
|
3779
3747
|
}
|
|
3780
|
-
],
|
|
3748
|
+
], oi = /* @__PURE__ */ l({
|
|
3781
3749
|
__name: "BikeForm",
|
|
3782
3750
|
props: /*@__PURE__*/ f({
|
|
3783
3751
|
initialData: {},
|
|
@@ -3794,20 +3762,20 @@ var ai = ii(), oi = ti(Wr, Q.ownedBuilding.required), si = [1, 7], ci = [3, 4],
|
|
|
3794
3762
|
...K,
|
|
3795
3763
|
title: "Fietsverzekering vergelijken"
|
|
3796
3764
|
}),
|
|
3797
|
-
emits: ["
|
|
3765
|
+
emits: ["submitted"],
|
|
3798
3766
|
setup(e, { emit: i }) {
|
|
3799
|
-
let a = e, o = q(a), s = i, { isSubmitting: l, handleSubmit: u, defineField: f, resetField: p } = Z(
|
|
3767
|
+
let a = e, o = q(a), s = i, { isSubmitting: l, handleSubmit: u, defineField: f, resetField: p } = Z(ni, {
|
|
3800
3768
|
kind: a.initialData?.kind ?? null,
|
|
3801
3769
|
condition: a.initialData?.condition ?? 1,
|
|
3802
3770
|
price: a.initialData?.price ?? "",
|
|
3803
3771
|
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(() =>
|
|
3772
|
+
}), [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(() => Zr.includes(Number(h.value)));
|
|
3805
3773
|
N(h, (e) => {
|
|
3806
|
-
|
|
3774
|
+
Zr.includes(Number(e)) || p("brand", { value: "" });
|
|
3807
3775
|
}, { immediate: !0 });
|
|
3808
3776
|
function A() {
|
|
3809
3777
|
u((e) => {
|
|
3810
|
-
s("
|
|
3778
|
+
s("submitted", { ...e });
|
|
3811
3779
|
});
|
|
3812
3780
|
}
|
|
3813
3781
|
return (t, i) => (y(), n(E(Y), m(E(o), {
|
|
@@ -3824,7 +3792,7 @@ var ai = ii(), oi = ti(Wr, Q.ownedBuilding.required), si = [1, 7], ci = [3, 4],
|
|
|
3824
3792
|
"onUpdate:modelValue": i[0] ||= (e) => d(h) ? h.value = e : null,
|
|
3825
3793
|
modelModifiers: { number: !0 },
|
|
3826
3794
|
label: "Soort fiets",
|
|
3827
|
-
options: E(
|
|
3795
|
+
options: E(ri),
|
|
3828
3796
|
name: "kind",
|
|
3829
3797
|
required: !1,
|
|
3830
3798
|
"error-message": E(_)
|
|
@@ -3840,12 +3808,12 @@ var ai = ii(), oi = ti(Wr, Q.ownedBuilding.required), si = [1, 7], ci = [3, 4],
|
|
|
3840
3808
|
span: "2",
|
|
3841
3809
|
md: "6"
|
|
3842
3810
|
}, {
|
|
3843
|
-
default: P(() => [c(E(
|
|
3811
|
+
default: P(() => [c(E(Tt), m({
|
|
3844
3812
|
modelValue: E(v),
|
|
3845
3813
|
"onUpdate:modelValue": i[1] ||= (e) => d(v) ? v.value = e : null,
|
|
3846
3814
|
label: "Merk fiets",
|
|
3847
3815
|
placeholder: "Typ of kies je merk",
|
|
3848
|
-
options: E(
|
|
3816
|
+
options: E(ai),
|
|
3849
3817
|
"label-key": "name",
|
|
3850
3818
|
"value-key": "id",
|
|
3851
3819
|
name: "brand",
|
|
@@ -3862,12 +3830,12 @@ var ai = ii(), oi = ti(Wr, Q.ownedBuilding.required), si = [1, 7], ci = [3, 4],
|
|
|
3862
3830
|
span: "4",
|
|
3863
3831
|
md: "6"
|
|
3864
3832
|
}, {
|
|
3865
|
-
default: P(() => [c(E(
|
|
3833
|
+
default: P(() => [c(E(Lt), m({
|
|
3866
3834
|
modelValue: E(S),
|
|
3867
3835
|
"onUpdate:modelValue": i[2] ||= (e) => d(S) ? S.value = e : null,
|
|
3868
3836
|
legend: "Gekocht als",
|
|
3869
3837
|
name: "condition",
|
|
3870
|
-
options: E(
|
|
3838
|
+
options: E(ii),
|
|
3871
3839
|
variant: "boxed",
|
|
3872
3840
|
required: !1,
|
|
3873
3841
|
"error-message": E(w)
|
|
@@ -3882,17 +3850,22 @@ var ai = ii(), oi = ti(Wr, Q.ownedBuilding.required), si = [1, 7], ci = [3, 4],
|
|
|
3882
3850
|
span: "2",
|
|
3883
3851
|
md: "6"
|
|
3884
3852
|
}, {
|
|
3885
|
-
default: P(() => [c(E(
|
|
3853
|
+
default: P(() => [c(E(We), m({
|
|
3886
3854
|
modelValue: E(T),
|
|
3887
3855
|
"onUpdate:modelValue": i[3] ||= (e) => d(T) ? T.value = e : null,
|
|
3888
3856
|
label: "Aankoopprijs",
|
|
3889
3857
|
placeholder: "bv. 1 000",
|
|
3890
3858
|
icon: "far fa-euro-sign",
|
|
3891
3859
|
name: "price",
|
|
3892
|
-
mask:
|
|
3860
|
+
mask: E(ei),
|
|
3861
|
+
inputmode: "numeric",
|
|
3893
3862
|
required: !1,
|
|
3894
3863
|
"error-message": E(O)
|
|
3895
|
-
}, E(D)), null, 16, [
|
|
3864
|
+
}, E(D)), null, 16, [
|
|
3865
|
+
"modelValue",
|
|
3866
|
+
"mask",
|
|
3867
|
+
"error-message"
|
|
3868
|
+
])]),
|
|
3896
3869
|
_: 1
|
|
3897
3870
|
})
|
|
3898
3871
|
]),
|
|
@@ -3902,7 +3875,7 @@ var ai = ii(), oi = ti(Wr, Q.ownedBuilding.required), si = [1, 7], ci = [3, 4],
|
|
|
3902
3875
|
});
|
|
3903
3876
|
//#endregion
|
|
3904
3877
|
//#region src/comparisons/bike/bike.presenter.ts
|
|
3905
|
-
function
|
|
3878
|
+
function si(e) {
|
|
3906
3879
|
return {
|
|
3907
3880
|
comparison: V.Bike,
|
|
3908
3881
|
detail: { bike: {
|
|
@@ -3916,27 +3889,27 @@ function gi(e) {
|
|
|
3916
3889
|
}
|
|
3917
3890
|
//#endregion
|
|
3918
3891
|
//#region src/comparisons/pet/constants.ts
|
|
3919
|
-
var
|
|
3892
|
+
var ci = {
|
|
3920
3893
|
min: 0,
|
|
3921
3894
|
max: 99
|
|
3922
|
-
},
|
|
3895
|
+
}, li = R({
|
|
3923
3896
|
kind: z().required(Q.pet.kindRequired),
|
|
3924
|
-
age: z().required(Q.birthdate.required).test("date_format", Q.birthdate.dateFormat,
|
|
3897
|
+
age: z().required(Q.birthdate.required).test("date_format", Q.birthdate.dateFormat, Wr).test(Ur({
|
|
3925
3898
|
min: {
|
|
3926
3899
|
value: 7,
|
|
3927
3900
|
unit: "week"
|
|
3928
3901
|
},
|
|
3929
3902
|
max: {
|
|
3930
|
-
value:
|
|
3903
|
+
value: ci.max,
|
|
3931
3904
|
unit: "year"
|
|
3932
3905
|
}
|
|
3933
3906
|
}, {
|
|
3934
|
-
future: () => Q.birthdate.tooYoung(
|
|
3935
|
-
tooYoung: ({ earliest: e, latest: t }) => Q.pet.outOfRange(e.format(
|
|
3936
|
-
tooOld: () => Q.birthdate.tooOld(
|
|
3907
|
+
future: () => Q.birthdate.tooYoung(ci.min),
|
|
3908
|
+
tooYoung: ({ earliest: e, latest: t }) => Q.pet.outOfRange(e.format(Mr), t.format(Mr)),
|
|
3909
|
+
tooOld: () => Q.birthdate.tooOld(ci.max)
|
|
3937
3910
|
}, "birthdate_range")),
|
|
3938
|
-
|
|
3939
|
-
}),
|
|
3911
|
+
zipCode: z().required(Q.pet.zipCodeRequired).matches(/^\d{4}\s?[a-zA-Z]{2}$/, Q.pet.zipCodeInvalid)
|
|
3912
|
+
}), ui = [
|
|
3940
3913
|
{
|
|
3941
3914
|
title: "Hond",
|
|
3942
3915
|
value: "dog"
|
|
@@ -3953,7 +3926,7 @@ var _i = {
|
|
|
3953
3926
|
title: "Vogel",
|
|
3954
3927
|
value: "bird"
|
|
3955
3928
|
}
|
|
3956
|
-
],
|
|
3929
|
+
], di = /* @__PURE__ */ l({
|
|
3957
3930
|
__name: "PetForm",
|
|
3958
3931
|
props: /*@__PURE__*/ f({
|
|
3959
3932
|
initialData: {},
|
|
@@ -3970,16 +3943,16 @@ var _i = {
|
|
|
3970
3943
|
...K,
|
|
3971
3944
|
title: "Dierenverzekering vergelijken"
|
|
3972
3945
|
}),
|
|
3973
|
-
emits: ["
|
|
3946
|
+
emits: ["submitted"],
|
|
3974
3947
|
setup(e, { emit: t }) {
|
|
3975
|
-
let r = e, i = q(r), a = t, { isSubmitting: o, handleSubmit: s, defineField: l } = Z(
|
|
3948
|
+
let r = e, i = q(r), a = t, { isSubmitting: o, handleSubmit: s, defineField: l } = Z(li, {
|
|
3976
3949
|
kind: r.initialData?.kind ?? "dog",
|
|
3977
3950
|
age: r.initialData?.age ?? "",
|
|
3978
|
-
|
|
3979
|
-
}), [u, f, p] = l("kind", { validateAt: "change" }), [h, g, _] = l("age"), [v, b, x] = l("
|
|
3951
|
+
zipCode: r.initialData?.zipCode ?? ""
|
|
3952
|
+
}), [u, f, p] = l("kind", { validateAt: "change" }), [h, g, _] = l("age"), [v, b, x] = l("zipCode");
|
|
3980
3953
|
function S() {
|
|
3981
3954
|
s((e) => {
|
|
3982
|
-
a("
|
|
3955
|
+
a("submitted", { ...e });
|
|
3983
3956
|
});
|
|
3984
3957
|
}
|
|
3985
3958
|
return (t, r) => (y(), n(E(Y), m(E(i), {
|
|
@@ -3996,7 +3969,7 @@ var _i = {
|
|
|
3996
3969
|
"onUpdate:modelValue": r[0] ||= (e) => d(u) ? u.value = e : null,
|
|
3997
3970
|
label: "Wat voor huisdier wil je verzekeren?",
|
|
3998
3971
|
placeholder: "",
|
|
3999
|
-
options: E(
|
|
3972
|
+
options: E(ui),
|
|
4000
3973
|
name: "kind",
|
|
4001
3974
|
required: !1,
|
|
4002
3975
|
"error-message": E(p)
|
|
@@ -4034,12 +4007,12 @@ var _i = {
|
|
|
4034
4007
|
span: "2",
|
|
4035
4008
|
md: "6"
|
|
4036
4009
|
}, {
|
|
4037
|
-
default: P(() => [c(E(
|
|
4010
|
+
default: P(() => [c(E(We), m({
|
|
4038
4011
|
modelValue: E(v),
|
|
4039
4012
|
"onUpdate:modelValue": r[2] ||= (e) => d(v) ? v.value = e : null,
|
|
4040
4013
|
label: "Postcode",
|
|
4041
4014
|
placeholder: "bv. 1234 AZ",
|
|
4042
|
-
name: "
|
|
4015
|
+
name: "zipCode",
|
|
4043
4016
|
mask: "####@@",
|
|
4044
4017
|
capitalize: "",
|
|
4045
4018
|
required: !1,
|
|
@@ -4065,23 +4038,23 @@ var _i = {
|
|
|
4065
4038
|
});
|
|
4066
4039
|
//#endregion
|
|
4067
4040
|
//#region src/comparisons/pet/pet.presenter.ts
|
|
4068
|
-
function
|
|
4041
|
+
function fi(e) {
|
|
4069
4042
|
return {
|
|
4070
4043
|
comparison: V.Pet,
|
|
4071
4044
|
detail: { pet: {
|
|
4072
4045
|
kind: e.kind,
|
|
4073
4046
|
age: e.age
|
|
4074
4047
|
} },
|
|
4075
|
-
user: {
|
|
4048
|
+
user: { zipCode: e.zipCode }
|
|
4076
4049
|
};
|
|
4077
4050
|
}
|
|
4078
4051
|
//#endregion
|
|
4079
4052
|
//#region src/comparisons/caravan/caravan.schema.ts
|
|
4080
|
-
var
|
|
4081
|
-
TypeOfCaravan:
|
|
4082
|
-
NewOrOccasion:
|
|
4083
|
-
BuildYear:
|
|
4084
|
-
}),
|
|
4053
|
+
var pi = R({
|
|
4054
|
+
TypeOfCaravan: Kr(Q.caravan.typeOfCaravanRequired),
|
|
4055
|
+
NewOrOccasion: Gr(Pr, Q.caravan.newOrOccasionRequired),
|
|
4056
|
+
BuildYear: Kr(Q.caravan.buildYearRequired)
|
|
4057
|
+
}), mi = [
|
|
4085
4058
|
{
|
|
4086
4059
|
value: "CS",
|
|
4087
4060
|
title: "Stacaravan"
|
|
@@ -4094,7 +4067,7 @@ var Si = R({
|
|
|
4094
4067
|
value: "CV",
|
|
4095
4068
|
title: "Vouwwagen"
|
|
4096
4069
|
}
|
|
4097
|
-
],
|
|
4070
|
+
], hi = [{
|
|
4098
4071
|
value: U.Yes,
|
|
4099
4072
|
label: "Nieuw"
|
|
4100
4073
|
}, {
|
|
@@ -4103,8 +4076,8 @@ var Si = R({
|
|
|
4103
4076
|
}];
|
|
4104
4077
|
//#endregion
|
|
4105
4078
|
//#region src/comparisons/caravan/models/buildYears.model.ts
|
|
4106
|
-
function
|
|
4107
|
-
let e =
|
|
4079
|
+
function gi() {
|
|
4080
|
+
let e = Ir();
|
|
4108
4081
|
return Array.from({ length: 126 }, (t, n) => ({
|
|
4109
4082
|
title: String(e - n),
|
|
4110
4083
|
value: String(e - n)
|
|
@@ -4112,7 +4085,7 @@ function Ti() {
|
|
|
4112
4085
|
}
|
|
4113
4086
|
//#endregion
|
|
4114
4087
|
//#region src/comparisons/caravan/CaravanForm.vue
|
|
4115
|
-
var
|
|
4088
|
+
var _i = /* @__PURE__ */ l({
|
|
4116
4089
|
__name: "CaravanForm",
|
|
4117
4090
|
props: /*@__PURE__*/ f({
|
|
4118
4091
|
initialData: {},
|
|
@@ -4129,16 +4102,16 @@ var Ei = /* @__PURE__ */ l({
|
|
|
4129
4102
|
...K,
|
|
4130
4103
|
title: "Caravanverzekering vergelijken"
|
|
4131
4104
|
}),
|
|
4132
|
-
emits: ["
|
|
4105
|
+
emits: ["submitted"],
|
|
4133
4106
|
setup(e, { emit: t }) {
|
|
4134
|
-
let r = e, i = q(r), a = t, o =
|
|
4107
|
+
let r = e, i = q(r), a = t, o = gi(), { isSubmitting: s, handleSubmit: l, defineField: u } = Z(pi, {
|
|
4135
4108
|
TypeOfCaravan: r.initialData?.TypeOfCaravan ?? null,
|
|
4136
4109
|
NewOrOccasion: r.initialData?.NewOrOccasion ?? U.Yes,
|
|
4137
4110
|
BuildYear: r.initialData?.BuildYear ?? null
|
|
4138
4111
|
}), [f, p, h] = u("TypeOfCaravan", { validateAt: "change" }), [g, _, v] = u("NewOrOccasion"), [b, x, S] = u("BuildYear", { validateAt: "change" });
|
|
4139
4112
|
function C() {
|
|
4140
4113
|
l((e) => {
|
|
4141
|
-
a("
|
|
4114
|
+
a("submitted", { ...e });
|
|
4142
4115
|
});
|
|
4143
4116
|
}
|
|
4144
4117
|
return (t, r) => (y(), n(E(Y), m(E(i), {
|
|
@@ -4154,7 +4127,7 @@ var Ei = /* @__PURE__ */ l({
|
|
|
4154
4127
|
modelValue: E(f),
|
|
4155
4128
|
"onUpdate:modelValue": r[0] ||= (e) => d(f) ? f.value = e : null,
|
|
4156
4129
|
label: "Soort caravan",
|
|
4157
|
-
options: E(
|
|
4130
|
+
options: E(mi),
|
|
4158
4131
|
name: "typeOfCaravan",
|
|
4159
4132
|
required: !1,
|
|
4160
4133
|
"error-message": E(h)
|
|
@@ -4169,12 +4142,12 @@ var Ei = /* @__PURE__ */ l({
|
|
|
4169
4142
|
span: "4",
|
|
4170
4143
|
md: "6"
|
|
4171
4144
|
}, {
|
|
4172
|
-
default: P(() => [c(E(
|
|
4145
|
+
default: P(() => [c(E(Lt), m({
|
|
4173
4146
|
modelValue: E(g),
|
|
4174
4147
|
"onUpdate:modelValue": r[1] ||= (e) => d(g) ? g.value = e : null,
|
|
4175
4148
|
legend: "Gekocht als",
|
|
4176
4149
|
name: "newOrOccasion",
|
|
4177
|
-
options: E(
|
|
4150
|
+
options: E(hi),
|
|
4178
4151
|
variant: "boxed",
|
|
4179
4152
|
required: !1,
|
|
4180
4153
|
"error-message": E(v)
|
|
@@ -4211,7 +4184,7 @@ var Ei = /* @__PURE__ */ l({
|
|
|
4211
4184
|
});
|
|
4212
4185
|
//#endregion
|
|
4213
4186
|
//#region src/comparisons/caravan/caravan.presenter.ts
|
|
4214
|
-
function
|
|
4187
|
+
function vi(e) {
|
|
4215
4188
|
return {
|
|
4216
4189
|
comparison: V.Caravan,
|
|
4217
4190
|
detail: { caravan: {
|
|
@@ -4224,18 +4197,18 @@ function Di(e) {
|
|
|
4224
4197
|
}
|
|
4225
4198
|
//#endregion
|
|
4226
4199
|
//#region src/comparisons/travel/paymentTerm.enum.ts
|
|
4227
|
-
var
|
|
4200
|
+
var yi = /* @__PURE__ */ function(e) {
|
|
4228
4201
|
return e.Continuous = "L", e.ShortTerm = "S", e;
|
|
4229
|
-
}({}),
|
|
4230
|
-
PaymentTerm:
|
|
4202
|
+
}({}), bi = R({
|
|
4203
|
+
PaymentTerm: Gr([yi.Continuous, yi.ShortTerm], Q.travel.paymentTermRequired),
|
|
4231
4204
|
birthdate: $()
|
|
4232
|
-
}),
|
|
4233
|
-
value:
|
|
4205
|
+
}), xi = [{
|
|
4206
|
+
value: yi.Continuous,
|
|
4234
4207
|
label: "Doorlopend"
|
|
4235
4208
|
}, {
|
|
4236
|
-
value:
|
|
4209
|
+
value: yi.ShortTerm,
|
|
4237
4210
|
label: "Kortlopend"
|
|
4238
|
-
}],
|
|
4211
|
+
}], Si = /* @__PURE__ */ l({
|
|
4239
4212
|
__name: "TravelForm",
|
|
4240
4213
|
props: /*@__PURE__*/ f({
|
|
4241
4214
|
initialData: {},
|
|
@@ -4252,15 +4225,15 @@ var Oi = /* @__PURE__ */ function(e) {
|
|
|
4252
4225
|
...K,
|
|
4253
4226
|
title: "Reisverzekering vergelijken"
|
|
4254
4227
|
}),
|
|
4255
|
-
emits: ["
|
|
4228
|
+
emits: ["submitted"],
|
|
4256
4229
|
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 ??
|
|
4230
|
+
let r = e, i = q(r), a = t, { isSubmitting: o, handleSubmit: s, defineField: l } = Z(bi, {
|
|
4231
|
+
PaymentTerm: r.initialData?.PaymentTerm ?? yi.Continuous,
|
|
4259
4232
|
birthdate: r.initialData?.birthdate ?? ""
|
|
4260
4233
|
}), [u, f, p] = l("PaymentTerm", { validateAt: "change" }), [h, g, _] = l("birthdate");
|
|
4261
4234
|
function v() {
|
|
4262
4235
|
s((e) => {
|
|
4263
|
-
a("
|
|
4236
|
+
a("submitted", { ...e });
|
|
4264
4237
|
});
|
|
4265
4238
|
}
|
|
4266
4239
|
return (t, r) => (y(), n(E(Y), m(E(i), {
|
|
@@ -4271,12 +4244,12 @@ var Oi = /* @__PURE__ */ function(e) {
|
|
|
4271
4244
|
span: "5",
|
|
4272
4245
|
md: "6"
|
|
4273
4246
|
}, {
|
|
4274
|
-
default: P(() => [c(E(
|
|
4247
|
+
default: P(() => [c(E(Lt), m({
|
|
4275
4248
|
modelValue: E(u),
|
|
4276
4249
|
"onUpdate:modelValue": r[0] ||= (e) => d(u) ? u.value = e : null,
|
|
4277
4250
|
legend: "Kies je dekking",
|
|
4278
4251
|
name: "PaymentTerm",
|
|
4279
|
-
options: E(
|
|
4252
|
+
options: E(xi),
|
|
4280
4253
|
variant: "boxed",
|
|
4281
4254
|
required: !1,
|
|
4282
4255
|
"error-message": E(p)
|
|
@@ -4314,7 +4287,7 @@ var Oi = /* @__PURE__ */ function(e) {
|
|
|
4314
4287
|
});
|
|
4315
4288
|
//#endregion
|
|
4316
4289
|
//#region src/comparisons/travel/travel.presenter.ts
|
|
4317
|
-
function
|
|
4290
|
+
function Ci(e) {
|
|
4318
4291
|
return {
|
|
4319
4292
|
comparison: V.Travel,
|
|
4320
4293
|
detail: { comparison: { PaymentTerm: e.PaymentTerm } },
|
|
@@ -4323,11 +4296,11 @@ function Mi(e) {
|
|
|
4323
4296
|
}
|
|
4324
4297
|
//#endregion
|
|
4325
4298
|
//#region src/comparisons/liability/liability.schema.ts
|
|
4326
|
-
var
|
|
4299
|
+
var wi = (e) => R({
|
|
4327
4300
|
address: e,
|
|
4328
4301
|
birthdate: $(),
|
|
4329
|
-
familyComposition:
|
|
4330
|
-
}),
|
|
4302
|
+
familyComposition: Yr
|
|
4303
|
+
}), Ti = /* @__PURE__ */ l({
|
|
4331
4304
|
__name: "LiabilityForm",
|
|
4332
4305
|
props: /*@__PURE__*/ f({
|
|
4333
4306
|
initialData: {},
|
|
@@ -4344,16 +4317,16 @@ var Ni = (e) => R({
|
|
|
4344
4317
|
...K,
|
|
4345
4318
|
title: "Aansprakelijkheidsverzekering vergelijken"
|
|
4346
4319
|
}),
|
|
4347
|
-
emits: ["
|
|
4320
|
+
emits: ["submitted"],
|
|
4348
4321
|
setup(e, { emit: t }) {
|
|
4349
|
-
let r = e, i = q(r), a = t, { addressSchema: o, draft: s, resolvedAddress: l, additionOptions: u } =
|
|
4322
|
+
let r = e, i = q(r), a = t, { addressSchema: o, draft: s, resolvedAddress: l, additionOptions: u } = Rn({ initial: r.initialData?.address }), { isSubmitting: f, handleSubmit: p, defineField: h } = Z(wi(o), {
|
|
4350
4323
|
birthdate: r.initialData?.birthdate ?? "",
|
|
4351
4324
|
familyComposition: r.initialData?.familyComposition ?? H.SingleWithoutChildren,
|
|
4352
4325
|
address: s
|
|
4353
4326
|
}), [g, _, v] = h("birthdate"), [b, x, S] = h("familyComposition", { validateAt: "change" });
|
|
4354
4327
|
function C() {
|
|
4355
4328
|
p(({ birthdate: e, familyComposition: t }) => {
|
|
4356
|
-
a("
|
|
4329
|
+
a("submitted", {
|
|
4357
4330
|
birthdate: e,
|
|
4358
4331
|
familyComposition: t,
|
|
4359
4332
|
address: l.value
|
|
@@ -4369,7 +4342,7 @@ var Ni = (e) => R({
|
|
|
4369
4342
|
span: "5",
|
|
4370
4343
|
md: "6"
|
|
4371
4344
|
}, {
|
|
4372
|
-
default: P(() => [c(E(
|
|
4345
|
+
default: P(() => [c(E(bn), {
|
|
4373
4346
|
"resolved-address": E(l),
|
|
4374
4347
|
"onUpdate:resolvedAddress": r[0] ||= (e) => d(l) ? l.value = e : null,
|
|
4375
4348
|
"addition-options": E(u)
|
|
@@ -4391,7 +4364,7 @@ var Ni = (e) => R({
|
|
|
4391
4364
|
span: "3",
|
|
4392
4365
|
md: "6"
|
|
4393
4366
|
}, {
|
|
4394
|
-
default: P(() => [c(E(
|
|
4367
|
+
default: P(() => [c(E(cn), m({
|
|
4395
4368
|
modelValue: E(b),
|
|
4396
4369
|
"onUpdate:modelValue": r[2] ||= (e) => d(b) ? b.value = e : null,
|
|
4397
4370
|
"error-message": E(S)
|
|
@@ -4405,7 +4378,7 @@ var Ni = (e) => R({
|
|
|
4405
4378
|
});
|
|
4406
4379
|
//#endregion
|
|
4407
4380
|
//#region src/comparisons/liability/liability.presenter.ts
|
|
4408
|
-
function
|
|
4381
|
+
function Ei(e) {
|
|
4409
4382
|
return {
|
|
4410
4383
|
comparison: V.Liability,
|
|
4411
4384
|
detail: { liability: {
|
|
@@ -4413,7 +4386,7 @@ function Fi(e) {
|
|
|
4413
4386
|
Deductables: 100
|
|
4414
4387
|
} },
|
|
4415
4388
|
user: {
|
|
4416
|
-
|
|
4389
|
+
zipCode: e.address.zipCode,
|
|
4417
4390
|
houseNumber: e.address.houseNumber,
|
|
4418
4391
|
houseNumberAddition: e.address.houseNumberAddition,
|
|
4419
4392
|
birthdate: e.birthdate,
|
|
@@ -4425,17 +4398,17 @@ function Fi(e) {
|
|
|
4425
4398
|
}
|
|
4426
4399
|
//#endregion
|
|
4427
4400
|
//#region src/models/houseOwnedBuilding.model.ts
|
|
4428
|
-
var
|
|
4401
|
+
var Di = [{
|
|
4429
4402
|
value: U.Yes,
|
|
4430
4403
|
label: "Gekocht"
|
|
4431
4404
|
}, {
|
|
4432
4405
|
value: U.No,
|
|
4433
4406
|
label: "Verhuurd"
|
|
4434
|
-
}],
|
|
4407
|
+
}], Oi = (e) => R({
|
|
4435
4408
|
address: e,
|
|
4436
|
-
ownedBuilding:
|
|
4437
|
-
familyComposition:
|
|
4438
|
-
}),
|
|
4409
|
+
ownedBuilding: Xr,
|
|
4410
|
+
familyComposition: Jr(Q.house.familyCompositionRequired)
|
|
4411
|
+
}), ki = /* @__PURE__ */ l({
|
|
4439
4412
|
__name: "HouseForm",
|
|
4440
4413
|
props: /*@__PURE__*/ f({
|
|
4441
4414
|
initialData: {},
|
|
@@ -4452,16 +4425,16 @@ var Ii = [{
|
|
|
4452
4425
|
...K,
|
|
4453
4426
|
title: "Woonverzekering vergelijken"
|
|
4454
4427
|
}),
|
|
4455
|
-
emits: ["
|
|
4428
|
+
emits: ["submitted"],
|
|
4456
4429
|
setup(e, { emit: t }) {
|
|
4457
|
-
let r = e, i = q(r), a = t, { addressSchema: o, draft: s, resolvedAddress: l, additionOptions: u } =
|
|
4430
|
+
let r = e, i = q(r), a = t, { addressSchema: o, draft: s, resolvedAddress: l, additionOptions: u } = Rn({ initial: r.initialData?.address }), { isSubmitting: f, handleSubmit: p, defineField: h } = Z(Oi(o), {
|
|
4458
4431
|
ownedBuilding: r.initialData?.ownedBuilding ?? U.Yes,
|
|
4459
4432
|
familyComposition: r.initialData?.familyComposition ?? H.SingleWithoutChildren,
|
|
4460
4433
|
address: s
|
|
4461
4434
|
}), [g, _, v] = h("ownedBuilding"), [b, x, S] = h("familyComposition", { validateAt: "change" });
|
|
4462
4435
|
function C() {
|
|
4463
4436
|
p(({ ownedBuilding: e, familyComposition: t }) => {
|
|
4464
|
-
a("
|
|
4437
|
+
a("submitted", {
|
|
4465
4438
|
ownedBuilding: e,
|
|
4466
4439
|
familyComposition: t,
|
|
4467
4440
|
address: l.value
|
|
@@ -4477,7 +4450,7 @@ var Ii = [{
|
|
|
4477
4450
|
span: "4",
|
|
4478
4451
|
md: "6"
|
|
4479
4452
|
}, {
|
|
4480
|
-
default: P(() => [c(E(
|
|
4453
|
+
default: P(() => [c(E(bn), {
|
|
4481
4454
|
"resolved-address": E(l),
|
|
4482
4455
|
"onUpdate:resolvedAddress": r[0] ||= (e) => d(l) ? l.value = e : null,
|
|
4483
4456
|
"addition-options": E(u)
|
|
@@ -4488,12 +4461,12 @@ var Ii = [{
|
|
|
4488
4461
|
span: "3",
|
|
4489
4462
|
md: "3"
|
|
4490
4463
|
}, {
|
|
4491
|
-
default: P(() => [c(E(
|
|
4464
|
+
default: P(() => [c(E(Lt), m({
|
|
4492
4465
|
modelValue: E(g),
|
|
4493
4466
|
"onUpdate:modelValue": r[1] ||= (e) => d(g) ? g.value = e : null,
|
|
4494
4467
|
legend: "Jouw woning is...",
|
|
4495
4468
|
name: "ownedBuilding",
|
|
4496
|
-
options: E(
|
|
4469
|
+
options: E(Di),
|
|
4497
4470
|
variant: "boxed",
|
|
4498
4471
|
required: !1,
|
|
4499
4472
|
"error-message": E(v)
|
|
@@ -4508,7 +4481,7 @@ var Ii = [{
|
|
|
4508
4481
|
span: "3",
|
|
4509
4482
|
md: "3"
|
|
4510
4483
|
}, {
|
|
4511
|
-
default: P(() => [c(E(
|
|
4484
|
+
default: P(() => [c(E(cn), m({
|
|
4512
4485
|
modelValue: E(b),
|
|
4513
4486
|
"onUpdate:modelValue": r[2] ||= (e) => d(b) ? b.value = e : null,
|
|
4514
4487
|
"error-message": E(S)
|
|
@@ -4522,12 +4495,12 @@ var Ii = [{
|
|
|
4522
4495
|
});
|
|
4523
4496
|
//#endregion
|
|
4524
4497
|
//#region src/comparisons/house/house.presenter.ts
|
|
4525
|
-
function
|
|
4498
|
+
function Ai(e) {
|
|
4526
4499
|
return {
|
|
4527
4500
|
comparison: V.Housing,
|
|
4528
4501
|
detail: { house: { ownedBuilding: e.ownedBuilding } },
|
|
4529
4502
|
user: {
|
|
4530
|
-
|
|
4503
|
+
zipCode: e.address.zipCode,
|
|
4531
4504
|
houseNumber: e.address.houseNumber,
|
|
4532
4505
|
houseNumberAddition: e.address.houseNumberAddition,
|
|
4533
4506
|
street: e.address.street,
|
|
@@ -4538,22 +4511,22 @@ function zi(e) {
|
|
|
4538
4511
|
}
|
|
4539
4512
|
//#endregion
|
|
4540
4513
|
//#region src/comparisons/legal/constants.ts
|
|
4541
|
-
var
|
|
4514
|
+
var ji = H.SingleWithChildren, Mi = (e) => R({
|
|
4542
4515
|
address: e,
|
|
4543
|
-
ownedBuilding:
|
|
4516
|
+
ownedBuilding: Xr,
|
|
4544
4517
|
birthdate: $(),
|
|
4545
|
-
familyComposition:
|
|
4518
|
+
familyComposition: Yr,
|
|
4546
4519
|
familySize: z().defined().when("familyComposition", {
|
|
4547
|
-
is:
|
|
4520
|
+
is: ji,
|
|
4548
4521
|
then: (e) => e.required(Q.legal.familySizeRequired)
|
|
4549
4522
|
})
|
|
4550
|
-
}),
|
|
4523
|
+
}), Ni = [{
|
|
4551
4524
|
title: "Alleenstaande met 1 kind",
|
|
4552
4525
|
value: "2"
|
|
4553
4526
|
}, {
|
|
4554
4527
|
title: "Alleenstaande met 2 of meer kinderen",
|
|
4555
4528
|
value: "3"
|
|
4556
|
-
}],
|
|
4529
|
+
}], Pi = /* @__PURE__ */ l({
|
|
4557
4530
|
__name: "LegalForm",
|
|
4558
4531
|
props: /*@__PURE__*/ f({
|
|
4559
4532
|
initialData: {},
|
|
@@ -4570,21 +4543,21 @@ var Bi = H.SingleWithChildren, Vi = (e) => R({
|
|
|
4570
4543
|
...K,
|
|
4571
4544
|
title: "Rechtsbijstandverzekering vergelijken"
|
|
4572
4545
|
}),
|
|
4573
|
-
emits: ["
|
|
4546
|
+
emits: ["submitted"],
|
|
4574
4547
|
setup(e, { emit: i }) {
|
|
4575
|
-
let a = e, o = q(a), s = i, { addressSchema: l, draft: u, resolvedAddress: f, additionOptions: p } =
|
|
4548
|
+
let a = e, o = q(a), s = i, { addressSchema: l, draft: u, resolvedAddress: f, additionOptions: p } = Rn({ initial: a.initialData?.address }), { isSubmitting: h, handleSubmit: g, defineField: _, resetField: v } = Z(Mi(l), {
|
|
4576
4549
|
ownedBuilding: a.initialData?.ownedBuilding ?? U.Yes,
|
|
4577
4550
|
birthdate: a.initialData?.birthdate ?? "",
|
|
4578
4551
|
familyComposition: a.initialData?.familyComposition ?? H.SingleWithoutChildren,
|
|
4579
4552
|
familySize: a.initialData?.familySize ?? "",
|
|
4580
4553
|
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 ===
|
|
4554
|
+
}), [b, x, S] = _("ownedBuilding"), [C, w, T] = _("birthdate"), [D, O, k] = _("familyComposition", { validateAt: "change" }), [A, j, M] = _("familySize", { validateAt: "change" }), F = t(() => D.value === ji);
|
|
4582
4555
|
N(D, (e) => {
|
|
4583
|
-
e !==
|
|
4556
|
+
e !== ji && v("familySize", { value: "" });
|
|
4584
4557
|
}, { immediate: !0 });
|
|
4585
4558
|
function I() {
|
|
4586
4559
|
g(({ ownedBuilding: e, birthdate: t, familyComposition: n, familySize: r }) => {
|
|
4587
|
-
s("
|
|
4560
|
+
s("submitted", {
|
|
4588
4561
|
ownedBuilding: e,
|
|
4589
4562
|
birthdate: t,
|
|
4590
4563
|
familyComposition: n,
|
|
@@ -4602,7 +4575,7 @@ var Bi = H.SingleWithChildren, Vi = (e) => R({
|
|
|
4602
4575
|
span: "3",
|
|
4603
4576
|
md: "6"
|
|
4604
4577
|
}, {
|
|
4605
|
-
default: P(() => [c(E(
|
|
4578
|
+
default: P(() => [c(E(bn), {
|
|
4606
4579
|
"resolved-address": E(f),
|
|
4607
4580
|
"onUpdate:resolvedAddress": i[0] ||= (e) => d(f) ? f.value = e : null,
|
|
4608
4581
|
"addition-options": E(p)
|
|
@@ -4613,12 +4586,12 @@ var Bi = H.SingleWithChildren, Vi = (e) => R({
|
|
|
4613
4586
|
span: "3",
|
|
4614
4587
|
md: "6"
|
|
4615
4588
|
}, {
|
|
4616
|
-
default: P(() => [c(E(
|
|
4589
|
+
default: P(() => [c(E(Lt), m({
|
|
4617
4590
|
modelValue: E(b),
|
|
4618
4591
|
"onUpdate:modelValue": i[1] ||= (e) => d(b) ? b.value = e : null,
|
|
4619
4592
|
legend: "Jouw woning is...",
|
|
4620
4593
|
name: "ownedBuilding",
|
|
4621
|
-
options: E(
|
|
4594
|
+
options: E(Di),
|
|
4622
4595
|
variant: "boxed",
|
|
4623
4596
|
required: !1,
|
|
4624
4597
|
"error-message": E(S)
|
|
@@ -4644,7 +4617,7 @@ var Bi = H.SingleWithChildren, Vi = (e) => R({
|
|
|
4644
4617
|
span: "2",
|
|
4645
4618
|
md: "6"
|
|
4646
4619
|
}, {
|
|
4647
|
-
default: P(() => [c(E(
|
|
4620
|
+
default: P(() => [c(E(cn), m({
|
|
4648
4621
|
modelValue: E(D),
|
|
4649
4622
|
"onUpdate:modelValue": i[3] ||= (e) => d(D) ? D.value = e : null,
|
|
4650
4623
|
"error-message": E(k)
|
|
@@ -4661,7 +4634,7 @@ var Bi = H.SingleWithChildren, Vi = (e) => R({
|
|
|
4661
4634
|
"onUpdate:modelValue": i[4] ||= (e) => d(A) ? A.value = e : null,
|
|
4662
4635
|
label: "Aantal kinderen",
|
|
4663
4636
|
placeholder: "Maak een keuze",
|
|
4664
|
-
options: E(
|
|
4637
|
+
options: E(Ni),
|
|
4665
4638
|
name: "familySize",
|
|
4666
4639
|
required: !1,
|
|
4667
4640
|
"error-message": E(M)
|
|
@@ -4679,16 +4652,16 @@ var Bi = H.SingleWithChildren, Vi = (e) => R({
|
|
|
4679
4652
|
});
|
|
4680
4653
|
//#endregion
|
|
4681
4654
|
//#region src/comparisons/legal/legal.presenter.ts
|
|
4682
|
-
function
|
|
4655
|
+
function Fi(e) {
|
|
4683
4656
|
return {
|
|
4684
4657
|
comparison: V.LegalAssistance,
|
|
4685
4658
|
detail: { comparison: {
|
|
4686
|
-
familySize: e.familyComposition ===
|
|
4659
|
+
familySize: e.familyComposition === ji ? e.familySize : "",
|
|
4687
4660
|
deductables: 300,
|
|
4688
4661
|
ownedBuilding: e.ownedBuilding
|
|
4689
4662
|
} },
|
|
4690
4663
|
user: {
|
|
4691
|
-
|
|
4664
|
+
zipCode: e.address.zipCode,
|
|
4692
4665
|
houseNumber: e.address.houseNumber,
|
|
4693
4666
|
houseNumberAddition: e.address.houseNumberAddition,
|
|
4694
4667
|
birthdate: e.birthdate,
|
|
@@ -4700,15 +4673,15 @@ function Wi(e) {
|
|
|
4700
4673
|
}
|
|
4701
4674
|
//#endregion
|
|
4702
4675
|
//#region src/comparisons/package/package.schema.ts
|
|
4703
|
-
var
|
|
4676
|
+
var Ii = (e) => R({
|
|
4704
4677
|
address: e,
|
|
4705
4678
|
birthdate: $(),
|
|
4706
|
-
familyComposition:
|
|
4679
|
+
familyComposition: Yr,
|
|
4707
4680
|
partnerBirthdate: z().defined().when("familyComposition", {
|
|
4708
|
-
is:
|
|
4681
|
+
is: Br,
|
|
4709
4682
|
then: () => $()
|
|
4710
4683
|
})
|
|
4711
|
-
}),
|
|
4684
|
+
}), Li = /* @__PURE__ */ l({
|
|
4712
4685
|
__name: "PackageForm",
|
|
4713
4686
|
props: /*@__PURE__*/ f({
|
|
4714
4687
|
initialData: {},
|
|
@@ -4725,20 +4698,20 @@ var Gi = (e) => R({
|
|
|
4725
4698
|
...K,
|
|
4726
4699
|
title: "Combineer al je verzekeringen in 1 verzekeringspakket"
|
|
4727
4700
|
}),
|
|
4728
|
-
emits: ["
|
|
4701
|
+
emits: ["submitted"],
|
|
4729
4702
|
setup(e, { emit: i }) {
|
|
4730
|
-
let a = e, o = q(a), s = i, { addressSchema: l, draft: u, resolvedAddress: f, additionOptions: p } =
|
|
4703
|
+
let a = e, o = q(a), s = i, { addressSchema: l, draft: u, resolvedAddress: f, additionOptions: p } = Rn({ initial: a.initialData?.address }), { isSubmitting: h, handleSubmit: g, defineField: _, resetField: v } = Z(Ii(l), {
|
|
4731
4704
|
birthdate: a.initialData?.birthdate ?? "",
|
|
4732
4705
|
familyComposition: a.initialData?.familyComposition ?? H.SingleWithoutChildren,
|
|
4733
4706
|
partnerBirthdate: a.initialData?.partnerBirthdate ?? "",
|
|
4734
4707
|
address: u
|
|
4735
|
-
}), [b, x, S] = _("birthdate"), [C, w, T] = _("familyComposition", { validateAt: "change" }), [D, O, k] = _("partnerBirthdate"), A = t(() =>
|
|
4708
|
+
}), [b, x, S] = _("birthdate"), [C, w, T] = _("familyComposition", { validateAt: "change" }), [D, O, k] = _("partnerBirthdate"), A = t(() => Br(C.value));
|
|
4736
4709
|
N(C, (e) => {
|
|
4737
|
-
|
|
4710
|
+
Br(e) || v("partnerBirthdate", { value: "" });
|
|
4738
4711
|
}, { immediate: !0 });
|
|
4739
4712
|
function j() {
|
|
4740
4713
|
g(({ birthdate: e, familyComposition: t, partnerBirthdate: n }) => {
|
|
4741
|
-
s("
|
|
4714
|
+
s("submitted", {
|
|
4742
4715
|
birthdate: e,
|
|
4743
4716
|
familyComposition: t,
|
|
4744
4717
|
partnerBirthdate: n,
|
|
@@ -4755,7 +4728,7 @@ var Gi = (e) => R({
|
|
|
4755
4728
|
span: "4",
|
|
4756
4729
|
md: "6"
|
|
4757
4730
|
}, {
|
|
4758
|
-
default: P(() => [c(E(
|
|
4731
|
+
default: P(() => [c(E(bn), {
|
|
4759
4732
|
"resolved-address": E(f),
|
|
4760
4733
|
"onUpdate:resolvedAddress": i[0] ||= (e) => d(f) ? f.value = e : null,
|
|
4761
4734
|
"addition-options": E(p)
|
|
@@ -4778,7 +4751,7 @@ var Gi = (e) => R({
|
|
|
4778
4751
|
span: A.value ? 2 : 3,
|
|
4779
4752
|
md: "6"
|
|
4780
4753
|
}, {
|
|
4781
|
-
default: P(() => [c(E(
|
|
4754
|
+
default: P(() => [c(E(cn), m({
|
|
4782
4755
|
modelValue: E(C),
|
|
4783
4756
|
"onUpdate:modelValue": i[2] ||= (e) => d(C) ? C.value = e : null,
|
|
4784
4757
|
"error-message": E(T)
|
|
@@ -4806,12 +4779,12 @@ var Gi = (e) => R({
|
|
|
4806
4779
|
});
|
|
4807
4780
|
//#endregion
|
|
4808
4781
|
//#region src/comparisons/package/package.presenter.ts
|
|
4809
|
-
function
|
|
4782
|
+
function Ri(e) {
|
|
4810
4783
|
return {
|
|
4811
4784
|
comparison: V.Package,
|
|
4812
4785
|
detail: { partner: { birthdate: e.partnerBirthdate } },
|
|
4813
4786
|
user: {
|
|
4814
|
-
|
|
4787
|
+
zipCode: e.address.zipCode,
|
|
4815
4788
|
houseNumber: e.address.houseNumber,
|
|
4816
4789
|
houseNumberAddition: e.address.houseNumberAddition,
|
|
4817
4790
|
birthdate: e.birthdate,
|
|
@@ -4823,18 +4796,18 @@ function qi(e) {
|
|
|
4823
4796
|
}
|
|
4824
4797
|
//#endregion
|
|
4825
4798
|
//#region src/comparisons/loan/constants.ts
|
|
4826
|
-
var
|
|
4799
|
+
var zi = {
|
|
4827
4800
|
min: 21,
|
|
4828
4801
|
max: 74
|
|
4829
|
-
},
|
|
4802
|
+
}, Bi = {
|
|
4830
4803
|
min: 3500,
|
|
4831
4804
|
max: 75e3
|
|
4832
|
-
},
|
|
4805
|
+
}, Vi = R({
|
|
4833
4806
|
LoanPurpose: z().required(Q.loan.purposeRequired),
|
|
4834
|
-
LoanAmount:
|
|
4835
|
-
birthdate: $(
|
|
4836
|
-
familyComposition:
|
|
4837
|
-
}),
|
|
4807
|
+
LoanAmount: qr(Q.loan.amountRequired).min(Bi.min, Q.loan.amountMin(Bi.min)).max(Bi.max, Q.loan.amountMax(Bi.max)),
|
|
4808
|
+
birthdate: $(zi),
|
|
4809
|
+
familyComposition: Yr
|
|
4810
|
+
}), Hi = [
|
|
4838
4811
|
{
|
|
4839
4812
|
title: "Aankoop auto",
|
|
4840
4813
|
value: "02"
|
|
@@ -4883,7 +4856,7 @@ var Ji = {
|
|
|
4883
4856
|
title: "Anders",
|
|
4884
4857
|
value: "99"
|
|
4885
4858
|
}
|
|
4886
|
-
],
|
|
4859
|
+
], Ui = /* @__PURE__ */ l({
|
|
4887
4860
|
__name: "LoanForm",
|
|
4888
4861
|
props: /*@__PURE__*/ f({
|
|
4889
4862
|
initialData: {},
|
|
@@ -4900,9 +4873,9 @@ var Ji = {
|
|
|
4900
4873
|
...K,
|
|
4901
4874
|
title: "Geld lenen"
|
|
4902
4875
|
}),
|
|
4903
|
-
emits: ["
|
|
4876
|
+
emits: ["submitted"],
|
|
4904
4877
|
setup(e, { emit: t }) {
|
|
4905
|
-
let r = e, i = q(r), a = t, { isSubmitting: o, handleSubmit: s, defineField: l } = Z(
|
|
4878
|
+
let r = e, i = q(r), a = t, { isSubmitting: o, handleSubmit: s, defineField: l } = Z(Vi, {
|
|
4906
4879
|
LoanPurpose: r.initialData?.LoanPurpose ?? "",
|
|
4907
4880
|
LoanAmount: r.initialData?.LoanAmount ?? null,
|
|
4908
4881
|
birthdate: r.initialData?.birthdate ?? "",
|
|
@@ -4910,7 +4883,7 @@ var Ji = {
|
|
|
4910
4883
|
}), [u, f, p] = l("LoanPurpose", { validateAt: "change" }), [h, g, _] = l("LoanAmount"), [v, b, x] = l("birthdate"), [S, C, w] = l("familyComposition", { validateAt: "change" });
|
|
4911
4884
|
function T() {
|
|
4912
4885
|
s((e) => {
|
|
4913
|
-
a("
|
|
4886
|
+
a("submitted", { ...e });
|
|
4914
4887
|
});
|
|
4915
4888
|
}
|
|
4916
4889
|
return (t, r) => (y(), n(E(Y), m(E(i), {
|
|
@@ -4927,7 +4900,7 @@ var Ji = {
|
|
|
4927
4900
|
"onUpdate:modelValue": r[0] ||= (e) => d(u) ? u.value = e : null,
|
|
4928
4901
|
label: "Leendoel",
|
|
4929
4902
|
placeholder: "Maak een keuze",
|
|
4930
|
-
options: E(
|
|
4903
|
+
options: E(Hi),
|
|
4931
4904
|
name: "LoanPurpose",
|
|
4932
4905
|
required: !1,
|
|
4933
4906
|
"error-message": E(p)
|
|
@@ -4942,7 +4915,7 @@ var Ji = {
|
|
|
4942
4915
|
span: "2",
|
|
4943
4916
|
md: "6"
|
|
4944
4917
|
}, {
|
|
4945
|
-
default: P(() => [c(E(
|
|
4918
|
+
default: P(() => [c(E(We), m({
|
|
4946
4919
|
modelValue: E(h),
|
|
4947
4920
|
"onUpdate:modelValue": r[1] ||= (e) => d(h) ? h.value = e : null,
|
|
4948
4921
|
modelModifiers: { number: !0 },
|
|
@@ -4972,7 +4945,7 @@ var Ji = {
|
|
|
4972
4945
|
span: "3",
|
|
4973
4946
|
md: "6"
|
|
4974
4947
|
}, {
|
|
4975
|
-
default: P(() => [c(E(
|
|
4948
|
+
default: P(() => [c(E(cn), m({
|
|
4976
4949
|
modelValue: E(S),
|
|
4977
4950
|
"onUpdate:modelValue": r[3] ||= (e) => d(S) ? S.value = e : null,
|
|
4978
4951
|
"error-message": E(w)
|
|
@@ -4986,19 +4959,19 @@ var Ji = {
|
|
|
4986
4959
|
});
|
|
4987
4960
|
//#endregion
|
|
4988
4961
|
//#region src/comparisons/loan/loan.presenter.ts
|
|
4989
|
-
function
|
|
4990
|
-
let t =
|
|
4962
|
+
function Wi(e) {
|
|
4963
|
+
let t = Lr(e, Mr);
|
|
4991
4964
|
if (!t) return 120;
|
|
4992
4965
|
let n = t.add(76, "year").diff(ke(), "month", !0), r = Math.floor(n / 12) * 12;
|
|
4993
4966
|
return Math.min(r, 120);
|
|
4994
4967
|
}
|
|
4995
|
-
function
|
|
4968
|
+
function Gi(e) {
|
|
4996
4969
|
return {
|
|
4997
4970
|
comparison: V.Loan,
|
|
4998
4971
|
detail: { loan: {
|
|
4999
4972
|
LoanPurpose: e.LoanPurpose,
|
|
5000
4973
|
LoanAmount: e.LoanAmount,
|
|
5001
|
-
MaxDurationByLegalLimit:
|
|
4974
|
+
MaxDurationByLegalLimit: Wi(e.birthdate)
|
|
5002
4975
|
} },
|
|
5003
4976
|
user: {
|
|
5004
4977
|
birthdate: e.birthdate,
|
|
@@ -5008,14 +4981,14 @@ function ea(e) {
|
|
|
5008
4981
|
}
|
|
5009
4982
|
//#endregion
|
|
5010
4983
|
//#region src/comparisons/moped/constants.ts
|
|
5011
|
-
var
|
|
4984
|
+
var Ki = {
|
|
5012
4985
|
min: 16,
|
|
5013
4986
|
max: 99
|
|
5014
|
-
},
|
|
4987
|
+
}, qi = (e, t) => R({
|
|
5015
4988
|
licensePlate: e,
|
|
5016
4989
|
address: t,
|
|
5017
|
-
birthdate: $(
|
|
5018
|
-
}),
|
|
4990
|
+
birthdate: $(Ki)
|
|
4991
|
+
}), Ji = /* @__PURE__ */ l({
|
|
5019
4992
|
__name: "MopedForm",
|
|
5020
4993
|
props: /*@__PURE__*/ f({
|
|
5021
4994
|
initialData: {},
|
|
@@ -5032,16 +5005,16 @@ var ta = {
|
|
|
5032
5005
|
...K,
|
|
5033
5006
|
title: "Brommerverzekering vergelijken"
|
|
5034
5007
|
}),
|
|
5035
|
-
emits: ["
|
|
5008
|
+
emits: ["submitted"],
|
|
5036
5009
|
setup(e, { emit: t }) {
|
|
5037
|
-
let r = e, i = q(r), a = t, { addressSchema: o, draft: s, resolvedAddress: l, additionOptions: u } =
|
|
5010
|
+
let r = e, i = q(r), a = t, { addressSchema: o, draft: s, resolvedAddress: l, additionOptions: u } = Rn({ initial: r.initialData?.address }), { vehicleData: f, licensePlateSchema: p } = ir(V.Moped, { initialData: r.initialData?.vehicle ?? void 0 }), { isSubmitting: h, handleSubmit: g, defineField: _ } = Z(qi(p, o), {
|
|
5038
5011
|
licensePlate: r.initialData?.licensePlate ?? "",
|
|
5039
5012
|
birthdate: r.initialData?.birthdate ?? "",
|
|
5040
5013
|
address: s
|
|
5041
5014
|
}), [v, b, x, S] = _("licensePlate"), [C, w, T] = _("birthdate");
|
|
5042
5015
|
function D() {
|
|
5043
5016
|
g(({ licensePlate: e, birthdate: t }) => {
|
|
5044
|
-
a("
|
|
5017
|
+
a("submitted", {
|
|
5045
5018
|
licensePlate: e,
|
|
5046
5019
|
birthdate: t,
|
|
5047
5020
|
address: l.value,
|
|
@@ -5058,7 +5031,7 @@ var ta = {
|
|
|
5058
5031
|
span: "3",
|
|
5059
5032
|
md: "6"
|
|
5060
5033
|
}, {
|
|
5061
|
-
default: P(() => [c(E(
|
|
5034
|
+
default: P(() => [c(E(Qn), m({
|
|
5062
5035
|
modelValue: E(v),
|
|
5063
5036
|
"onUpdate:modelValue": r[0] ||= (e) => d(v) ? v.value = e : null,
|
|
5064
5037
|
"vehicle-data": E(f),
|
|
@@ -5089,7 +5062,7 @@ var ta = {
|
|
|
5089
5062
|
span: "4",
|
|
5090
5063
|
md: "6"
|
|
5091
5064
|
}, {
|
|
5092
|
-
default: P(() => [c(E(
|
|
5065
|
+
default: P(() => [c(E(bn), {
|
|
5093
5066
|
"resolved-address": E(l),
|
|
5094
5067
|
"onUpdate:resolvedAddress": r[2] ||= (e) => d(l) ? l.value = e : null,
|
|
5095
5068
|
"addition-options": E(u)
|
|
@@ -5115,12 +5088,12 @@ var ta = {
|
|
|
5115
5088
|
});
|
|
5116
5089
|
//#endregion
|
|
5117
5090
|
//#region src/comparisons/moped/moped.presenter.ts
|
|
5118
|
-
function
|
|
5091
|
+
function Yi(e) {
|
|
5119
5092
|
return {
|
|
5120
5093
|
comparison: V.Moped,
|
|
5121
5094
|
detail: { moped: { ...e.vehicle } },
|
|
5122
5095
|
user: {
|
|
5123
|
-
|
|
5096
|
+
zipCode: e.address.zipCode,
|
|
5124
5097
|
houseNumber: e.address.houseNumber,
|
|
5125
5098
|
houseNumberAddition: e.address.houseNumberAddition,
|
|
5126
5099
|
birthdate: e.birthdate,
|
|
@@ -5132,11 +5105,11 @@ function ia(e) {
|
|
|
5132
5105
|
}
|
|
5133
5106
|
//#endregion
|
|
5134
5107
|
//#region src/comparisons/motor/motor.schema.ts
|
|
5135
|
-
var
|
|
5108
|
+
var Xi = (e, t) => R({
|
|
5136
5109
|
licensePlate: e,
|
|
5137
5110
|
address: t,
|
|
5138
5111
|
birthdate: $()
|
|
5139
|
-
}),
|
|
5112
|
+
}), Zi = /* @__PURE__ */ l({
|
|
5140
5113
|
__name: "MotorForm",
|
|
5141
5114
|
props: /*@__PURE__*/ f({
|
|
5142
5115
|
initialData: {},
|
|
@@ -5153,16 +5126,16 @@ var aa = (e, t) => R({
|
|
|
5153
5126
|
...K,
|
|
5154
5127
|
title: "Motorverzekering vergelijken"
|
|
5155
5128
|
}),
|
|
5156
|
-
emits: ["
|
|
5129
|
+
emits: ["submitted"],
|
|
5157
5130
|
setup(e, { emit: t }) {
|
|
5158
|
-
let r = e, i = q(r), a = t, { addressSchema: o, draft: s, resolvedAddress: l, additionOptions: u } =
|
|
5131
|
+
let r = e, i = q(r), a = t, { addressSchema: o, draft: s, resolvedAddress: l, additionOptions: u } = Rn({ initial: r.initialData?.address }), { vehicleData: f, licensePlateSchema: p } = ir(V.Motor, { initialData: r.initialData?.vehicle ?? void 0 }), { isSubmitting: h, handleSubmit: g, defineField: _ } = Z(Xi(p, o), {
|
|
5159
5132
|
licensePlate: r.initialData?.licensePlate ?? "",
|
|
5160
5133
|
birthdate: r.initialData?.birthdate ?? "",
|
|
5161
5134
|
address: s
|
|
5162
5135
|
}), [v, b, x, S] = _("licensePlate"), [C, w, T] = _("birthdate");
|
|
5163
5136
|
function D() {
|
|
5164
5137
|
g(({ licensePlate: e, birthdate: t }) => {
|
|
5165
|
-
a("
|
|
5138
|
+
a("submitted", {
|
|
5166
5139
|
licensePlate: e,
|
|
5167
5140
|
birthdate: t,
|
|
5168
5141
|
address: l.value,
|
|
@@ -5179,7 +5152,7 @@ var aa = (e, t) => R({
|
|
|
5179
5152
|
span: "3",
|
|
5180
5153
|
md: "6"
|
|
5181
5154
|
}, {
|
|
5182
|
-
default: P(() => [c(E(
|
|
5155
|
+
default: P(() => [c(E(Qn), m({
|
|
5183
5156
|
modelValue: E(v),
|
|
5184
5157
|
"onUpdate:modelValue": r[0] ||= (e) => d(v) ? v.value = e : null,
|
|
5185
5158
|
"vehicle-data": E(f),
|
|
@@ -5210,7 +5183,7 @@ var aa = (e, t) => R({
|
|
|
5210
5183
|
span: "4",
|
|
5211
5184
|
md: "6"
|
|
5212
5185
|
}, {
|
|
5213
|
-
default: P(() => [c(E(
|
|
5186
|
+
default: P(() => [c(E(bn), {
|
|
5214
5187
|
"resolved-address": E(l),
|
|
5215
5188
|
"onUpdate:resolvedAddress": r[2] ||= (e) => d(l) ? l.value = e : null,
|
|
5216
5189
|
"addition-options": E(u)
|
|
@@ -5236,12 +5209,12 @@ var aa = (e, t) => R({
|
|
|
5236
5209
|
});
|
|
5237
5210
|
//#endregion
|
|
5238
5211
|
//#region src/comparisons/motor/motor.presenter.ts
|
|
5239
|
-
function
|
|
5212
|
+
function Qi(e) {
|
|
5240
5213
|
return {
|
|
5241
5214
|
comparison: V.Motor,
|
|
5242
5215
|
detail: { motor: { ...e.vehicle } },
|
|
5243
5216
|
user: {
|
|
5244
|
-
|
|
5217
|
+
zipCode: e.address.zipCode,
|
|
5245
5218
|
houseNumber: e.address.houseNumber,
|
|
5246
5219
|
houseNumberAddition: e.address.houseNumberAddition,
|
|
5247
5220
|
birthdate: e.birthdate,
|
|
@@ -5253,11 +5226,11 @@ function sa(e) {
|
|
|
5253
5226
|
}
|
|
5254
5227
|
//#endregion
|
|
5255
5228
|
//#region src/comparisons/car/car.schema.ts
|
|
5256
|
-
var
|
|
5229
|
+
var $i = (e, t) => R({
|
|
5257
5230
|
licensePlate: e,
|
|
5258
5231
|
address: t,
|
|
5259
5232
|
birthdate: $()
|
|
5260
|
-
}),
|
|
5233
|
+
}), ea = /* @__PURE__ */ l({
|
|
5261
5234
|
__name: "CarForm",
|
|
5262
5235
|
props: /*@__PURE__*/ f({
|
|
5263
5236
|
initialData: {},
|
|
@@ -5274,16 +5247,16 @@ var ca = (e, t) => R({
|
|
|
5274
5247
|
...K,
|
|
5275
5248
|
title: "Autoverzekering vergelijken"
|
|
5276
5249
|
}),
|
|
5277
|
-
emits: ["
|
|
5250
|
+
emits: ["submitted"],
|
|
5278
5251
|
setup(e, { emit: t }) {
|
|
5279
|
-
let r = e, i = q(r), a = t, { addressSchema: o, draft: s, resolvedAddress: l, additionOptions: u } =
|
|
5252
|
+
let r = e, i = q(r), a = t, { addressSchema: o, draft: s, resolvedAddress: l, additionOptions: u } = Rn({ initial: r.initialData?.address }), { vehicleData: f, licensePlateSchema: p } = ir(V.Car, { initialData: r.initialData?.vehicle ?? void 0 }), { isSubmitting: h, handleSubmit: g, defineField: _ } = Z($i(p, o), {
|
|
5280
5253
|
licensePlate: r.initialData?.licensePlate ?? "",
|
|
5281
5254
|
birthdate: r.initialData?.birthdate ?? "",
|
|
5282
5255
|
address: s
|
|
5283
5256
|
}), [v, b, x, S] = _("licensePlate"), [C, w, T] = _("birthdate");
|
|
5284
5257
|
function D() {
|
|
5285
5258
|
g(({ licensePlate: e, birthdate: t }) => {
|
|
5286
|
-
a("
|
|
5259
|
+
a("submitted", {
|
|
5287
5260
|
licensePlate: e,
|
|
5288
5261
|
birthdate: t,
|
|
5289
5262
|
address: l.value,
|
|
@@ -5300,7 +5273,7 @@ var ca = (e, t) => R({
|
|
|
5300
5273
|
span: "3",
|
|
5301
5274
|
md: "6"
|
|
5302
5275
|
}, {
|
|
5303
|
-
default: P(() => [c(E(
|
|
5276
|
+
default: P(() => [c(E(Qn), m({
|
|
5304
5277
|
modelValue: E(v),
|
|
5305
5278
|
"onUpdate:modelValue": r[0] ||= (e) => d(v) ? v.value = e : null,
|
|
5306
5279
|
"vehicle-data": E(f),
|
|
@@ -5331,7 +5304,7 @@ var ca = (e, t) => R({
|
|
|
5331
5304
|
span: "4",
|
|
5332
5305
|
md: "6"
|
|
5333
5306
|
}, {
|
|
5334
|
-
default: P(() => [c(E(
|
|
5307
|
+
default: P(() => [c(E(bn), {
|
|
5335
5308
|
"resolved-address": E(l),
|
|
5336
5309
|
"onUpdate:resolvedAddress": r[2] ||= (e) => d(l) ? l.value = e : null,
|
|
5337
5310
|
"addition-options": E(u)
|
|
@@ -5357,12 +5330,12 @@ var ca = (e, t) => R({
|
|
|
5357
5330
|
});
|
|
5358
5331
|
//#endregion
|
|
5359
5332
|
//#region src/comparisons/car/car.presenter.ts
|
|
5360
|
-
function
|
|
5333
|
+
function ta(e) {
|
|
5361
5334
|
return {
|
|
5362
5335
|
comparison: V.Car,
|
|
5363
5336
|
detail: { car: { ...e.vehicle } },
|
|
5364
5337
|
user: {
|
|
5365
|
-
|
|
5338
|
+
zipCode: e.address.zipCode,
|
|
5366
5339
|
houseNumber: e.address.houseNumber,
|
|
5367
5340
|
houseNumberAddition: e.address.houseNumberAddition,
|
|
5368
5341
|
birthdate: e.birthdate,
|
|
@@ -5374,10 +5347,10 @@ function ua(e) {
|
|
|
5374
5347
|
}
|
|
5375
5348
|
//#endregion
|
|
5376
5349
|
//#region src/comparisons/car-business/businessCar.schema.ts
|
|
5377
|
-
var
|
|
5350
|
+
var na = (e) => R({
|
|
5378
5351
|
licensePlate: e,
|
|
5379
|
-
company:
|
|
5380
|
-
}),
|
|
5352
|
+
company: Ar()
|
|
5353
|
+
}), ra = /* @__PURE__ */ l({
|
|
5381
5354
|
__name: "BusinessCarForm",
|
|
5382
5355
|
props: /*@__PURE__*/ f({
|
|
5383
5356
|
initialData: {},
|
|
@@ -5394,15 +5367,15 @@ var da = (e) => R({
|
|
|
5394
5367
|
...K,
|
|
5395
5368
|
title: "Zakelijke autoverzekering vergelijken"
|
|
5396
5369
|
}),
|
|
5397
|
-
emits: ["
|
|
5370
|
+
emits: ["submitted"],
|
|
5398
5371
|
setup(e, { emit: i }) {
|
|
5399
|
-
let a = e, o = q(a), s = i, { vehicleData: l, licensePlateSchema: u } =
|
|
5372
|
+
let a = e, o = q(a), s = i, { vehicleData: l, licensePlateSchema: u } = ir(V.Car, { initialData: a.initialData?.vehicle ?? void 0 }), { isSubmitting: f, handleSubmit: p, defineField: h, setErrors: g, removeError: _ } = Z(na(u), {
|
|
5400
5373
|
licensePlate: a.initialData?.licensePlate ?? "",
|
|
5401
5374
|
company: a.initialData?.company ?? null
|
|
5402
5375
|
}), [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
5376
|
function k() {
|
|
5404
5377
|
p(({ licensePlate: e, company: t }) => {
|
|
5405
|
-
s("
|
|
5378
|
+
s("submitted", {
|
|
5406
5379
|
licensePlate: e,
|
|
5407
5380
|
company: t,
|
|
5408
5381
|
vehicle: l.value
|
|
@@ -5417,7 +5390,7 @@ var da = (e) => R({
|
|
|
5417
5390
|
span: "5",
|
|
5418
5391
|
md: "6"
|
|
5419
5392
|
}, {
|
|
5420
|
-
default: P(() => [c(E(
|
|
5393
|
+
default: P(() => [c(E(Qn), m({
|
|
5421
5394
|
modelValue: E(v),
|
|
5422
5395
|
"onUpdate:modelValue": i[0] ||= (e) => d(v) ? v.value = e : null,
|
|
5423
5396
|
"vehicle-data": E(l),
|
|
@@ -5447,7 +5420,7 @@ var da = (e) => R({
|
|
|
5447
5420
|
span: "5",
|
|
5448
5421
|
md: "6"
|
|
5449
5422
|
}, {
|
|
5450
|
-
default: P(() => [c(E(
|
|
5423
|
+
default: P(() => [c(E(kr), m({
|
|
5451
5424
|
modelValue: E(C),
|
|
5452
5425
|
"onUpdate:modelValue": i[2] ||= (e) => d(C) ? C.value = e : null,
|
|
5453
5426
|
name: "company",
|
|
@@ -5463,7 +5436,7 @@ var da = (e) => R({
|
|
|
5463
5436
|
}
|
|
5464
5437
|
})]),
|
|
5465
5438
|
_: 1
|
|
5466
|
-
}, 16, ["modelValue", "error-message"]), O.value ? (y(), n(E(
|
|
5439
|
+
}, 16, ["modelValue", "error-message"]), O.value ? (y(), n(E(Bt), {
|
|
5467
5440
|
key: 0,
|
|
5468
5441
|
style: { "margin-top": "12px" },
|
|
5469
5442
|
text: "Dit bedrijf heeft geen geregistreerd bezoekadres. Voeg dit toe bij de KvK om door te gaan met de aanvraag."
|
|
@@ -5476,20 +5449,19 @@ var da = (e) => R({
|
|
|
5476
5449
|
});
|
|
5477
5450
|
//#endregion
|
|
5478
5451
|
//#region src/comparisons/car-business/businessCar.presenter.ts
|
|
5479
|
-
function
|
|
5480
|
-
let { hasVisitingAddress: t, ...n } = e.company;
|
|
5452
|
+
function ia(e) {
|
|
5481
5453
|
return {
|
|
5482
5454
|
comparison: V.CarBusiness,
|
|
5483
5455
|
detail: {
|
|
5484
5456
|
car: { ...e.vehicle },
|
|
5485
|
-
companyData:
|
|
5457
|
+
companyData: { ...e.company }
|
|
5486
5458
|
},
|
|
5487
5459
|
user: {}
|
|
5488
5460
|
};
|
|
5489
5461
|
}
|
|
5490
5462
|
//#endregion
|
|
5491
5463
|
//#region src/comparisons/businessLiability/businessLiability.schema.ts
|
|
5492
|
-
var
|
|
5464
|
+
var aa = R({ company: Ar() }), oa = /* @__PURE__ */ l({
|
|
5493
5465
|
__name: "BusinessLiabilityForm",
|
|
5494
5466
|
props: /*@__PURE__*/ f({
|
|
5495
5467
|
initialData: {},
|
|
@@ -5508,12 +5480,12 @@ var ma = R({ company: Br() }), ha = /* @__PURE__ */ l({
|
|
|
5508
5480
|
description: "Bescherm jouw bedrijf slim en voordelig. Om te starten hebben we je bedrijfsnaam of KVK-nummer nodig!",
|
|
5509
5481
|
submitLabel: "Start gratis vergelijken"
|
|
5510
5482
|
}),
|
|
5511
|
-
emits: ["
|
|
5483
|
+
emits: ["submitted"],
|
|
5512
5484
|
setup(e, { emit: i }) {
|
|
5513
|
-
let a = e, o = q(a), s = i, { isSubmitting: l, handleSubmit: u, defineField: f, setErrors: p, removeError: h } = Z(
|
|
5485
|
+
let a = e, o = q(a), s = i, { isSubmitting: l, handleSubmit: u, defineField: f, setErrors: p, removeError: h } = Z(aa, { 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
5486
|
function S() {
|
|
5515
5487
|
u(({ company: e }) => {
|
|
5516
|
-
s("
|
|
5488
|
+
s("submitted", { company: e });
|
|
5517
5489
|
});
|
|
5518
5490
|
}
|
|
5519
5491
|
return (e, t) => (y(), n(E(Y), m(E(o), {
|
|
@@ -5525,7 +5497,7 @@ var ma = R({ company: Br() }), ha = /* @__PURE__ */ l({
|
|
|
5525
5497
|
span: "8",
|
|
5526
5498
|
md: "6"
|
|
5527
5499
|
}, {
|
|
5528
|
-
default: P(() => [c(E(
|
|
5500
|
+
default: P(() => [c(E(kr), m({
|
|
5529
5501
|
modelValue: E(g),
|
|
5530
5502
|
"onUpdate:modelValue": t[0] ||= (e) => d(g) ? g.value = e : null,
|
|
5531
5503
|
name: "company",
|
|
@@ -5541,7 +5513,7 @@ var ma = R({ company: Br() }), ha = /* @__PURE__ */ l({
|
|
|
5541
5513
|
}
|
|
5542
5514
|
})]),
|
|
5543
5515
|
_: 1
|
|
5544
|
-
}, 16, ["modelValue", "error-message"]), x.value ? (y(), n(E(
|
|
5516
|
+
}, 16, ["modelValue", "error-message"]), x.value ? (y(), n(E(Bt), {
|
|
5545
5517
|
key: 0,
|
|
5546
5518
|
style: { "margin-top": "12px" },
|
|
5547
5519
|
text: "Dit bedrijf heeft geen geregistreerd bezoekadres. Voeg dit toe bij de KvK om door te gaan met de aanvraag."
|
|
@@ -5554,22 +5526,21 @@ var ma = R({ company: Br() }), ha = /* @__PURE__ */ l({
|
|
|
5554
5526
|
});
|
|
5555
5527
|
//#endregion
|
|
5556
5528
|
//#region src/comparisons/businessLiability/businessLiability.presenter.ts
|
|
5557
|
-
function
|
|
5558
|
-
let { hasVisitingAddress: t, ...n } = e.company;
|
|
5529
|
+
function sa(e) {
|
|
5559
5530
|
return {
|
|
5560
5531
|
comparison: V.BusinessLiability,
|
|
5561
|
-
detail: { companyData:
|
|
5532
|
+
detail: { companyData: { ...e.company } },
|
|
5562
5533
|
user: {}
|
|
5563
5534
|
};
|
|
5564
5535
|
}
|
|
5565
5536
|
//#endregion
|
|
5566
5537
|
//#region src/flow/useComparisonSubmit.ts
|
|
5567
|
-
var
|
|
5538
|
+
var ca = { [V.Travel]: "/tarieven/" }, la = (e, t, n) => `${e}#/${n}${ca[t] ?? ""}`, ua = (e) => {
|
|
5568
5539
|
window.location.href = e;
|
|
5569
|
-
},
|
|
5540
|
+
}, da = ({ user: e, detail: t }) => new Oe({
|
|
5570
5541
|
email: e.email || null,
|
|
5571
5542
|
name: e.firstName || null,
|
|
5572
|
-
zip_code: e.
|
|
5543
|
+
zip_code: e.zipCode || null,
|
|
5573
5544
|
house_number: e.houseNumber ? Number(e.houseNumber) : null,
|
|
5574
5545
|
house_number_addition: e.houseNumberAddition || null,
|
|
5575
5546
|
birth_date: e.birthdate || null,
|
|
@@ -5580,14 +5551,14 @@ var _a = { [V.Travel]: "/tarieven/" }, va = (e, t, n) => `${e}#/${n}${_a[t] ?? "
|
|
|
5580
5551
|
...e.city && { city: e.city }
|
|
5581
5552
|
}
|
|
5582
5553
|
});
|
|
5583
|
-
function
|
|
5554
|
+
function fa(e) {
|
|
5584
5555
|
let t = x(!1), n = x(null);
|
|
5585
5556
|
return {
|
|
5586
5557
|
submit: async (r) => {
|
|
5587
5558
|
t.value = !0, n.value = null;
|
|
5588
5559
|
try {
|
|
5589
|
-
let t = await
|
|
5590
|
-
e.onRedirect ? e.onRedirect(n) :
|
|
5560
|
+
let t = await Cn().comparisonService.create(r.comparison, da(r)), n = la(e.link, r.comparison, t.getId());
|
|
5561
|
+
e.onRedirect ? e.onRedirect(n) : ua(n);
|
|
5591
5562
|
} catch (t) {
|
|
5592
5563
|
n.value = t, e.onError?.(t, r);
|
|
5593
5564
|
} finally {
|
|
@@ -5600,66 +5571,66 @@ function xa(e) {
|
|
|
5600
5571
|
}
|
|
5601
5572
|
//#endregion
|
|
5602
5573
|
//#region src/comparisons/bike/index.ts
|
|
5603
|
-
var
|
|
5604
|
-
Form: () =>
|
|
5605
|
-
presenter: () =>
|
|
5606
|
-
}),
|
|
5607
|
-
Form: () =>
|
|
5608
|
-
presenter: () =>
|
|
5609
|
-
}),
|
|
5610
|
-
Form: () =>
|
|
5611
|
-
presenter: () =>
|
|
5612
|
-
}),
|
|
5613
|
-
Form: () =>
|
|
5614
|
-
presenter: () =>
|
|
5615
|
-
}),
|
|
5574
|
+
var pa = /* @__PURE__ */ B({
|
|
5575
|
+
Form: () => oi,
|
|
5576
|
+
presenter: () => si
|
|
5577
|
+
}), ma = /* @__PURE__ */ B({
|
|
5578
|
+
Form: () => di,
|
|
5579
|
+
presenter: () => fi
|
|
5580
|
+
}), ha = /* @__PURE__ */ B({
|
|
5581
|
+
Form: () => _i,
|
|
5582
|
+
presenter: () => vi
|
|
5583
|
+
}), ga = /* @__PURE__ */ B({
|
|
5584
|
+
Form: () => Si,
|
|
5585
|
+
presenter: () => Ci
|
|
5586
|
+
}), _a = /* @__PURE__ */ B({
|
|
5587
|
+
Form: () => Ti,
|
|
5588
|
+
presenter: () => Ei
|
|
5589
|
+
}), va = /* @__PURE__ */ B({
|
|
5590
|
+
Form: () => ki,
|
|
5591
|
+
presenter: () => Ai
|
|
5592
|
+
}), ya = /* @__PURE__ */ B({
|
|
5616
5593
|
Form: () => Pi,
|
|
5617
5594
|
presenter: () => Fi
|
|
5618
|
-
}),
|
|
5619
|
-
Form: () =>
|
|
5620
|
-
presenter: () =>
|
|
5621
|
-
}),
|
|
5595
|
+
}), ba = /* @__PURE__ */ B({
|
|
5596
|
+
Form: () => Li,
|
|
5597
|
+
presenter: () => Ri
|
|
5598
|
+
}), xa = /* @__PURE__ */ B({
|
|
5622
5599
|
Form: () => Ui,
|
|
5623
|
-
presenter: () =>
|
|
5624
|
-
}),
|
|
5625
|
-
Form: () =>
|
|
5626
|
-
presenter: () =>
|
|
5627
|
-
}),
|
|
5628
|
-
Form: () =>
|
|
5629
|
-
presenter: () =>
|
|
5630
|
-
}),
|
|
5600
|
+
presenter: () => Gi
|
|
5601
|
+
}), Sa = /* @__PURE__ */ B({
|
|
5602
|
+
Form: () => Ji,
|
|
5603
|
+
presenter: () => Yi
|
|
5604
|
+
}), Ca = /* @__PURE__ */ B({
|
|
5605
|
+
Form: () => Zi,
|
|
5606
|
+
presenter: () => Qi
|
|
5607
|
+
}), wa = /* @__PURE__ */ B({
|
|
5608
|
+
Form: () => ea,
|
|
5609
|
+
presenter: () => ta
|
|
5610
|
+
}), Ta = /* @__PURE__ */ B({
|
|
5631
5611
|
Form: () => ra,
|
|
5632
5612
|
presenter: () => ia
|
|
5633
|
-
}),
|
|
5613
|
+
}), Ea = /* @__PURE__ */ B({
|
|
5634
5614
|
Form: () => oa,
|
|
5635
5615
|
presenter: () => sa
|
|
5636
|
-
}),
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
|
|
5641
|
-
|
|
5642
|
-
|
|
5643
|
-
|
|
5644
|
-
|
|
5645
|
-
|
|
5646
|
-
[V.
|
|
5647
|
-
[V.
|
|
5648
|
-
[V.
|
|
5649
|
-
[V.
|
|
5650
|
-
[V.
|
|
5651
|
-
|
|
5652
|
-
|
|
5653
|
-
|
|
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({
|
|
5616
|
+
}), Da = {
|
|
5617
|
+
[V.Bike]: pa,
|
|
5618
|
+
[V.Pet]: ma,
|
|
5619
|
+
[V.Caravan]: ha,
|
|
5620
|
+
[V.Travel]: ga,
|
|
5621
|
+
[V.Liability]: _a,
|
|
5622
|
+
[V.Housing]: va,
|
|
5623
|
+
house: va,
|
|
5624
|
+
[V.LegalAssistance]: ya,
|
|
5625
|
+
[V.Package]: ba,
|
|
5626
|
+
[V.Loan]: xa,
|
|
5627
|
+
[V.Moped]: Sa,
|
|
5628
|
+
[V.Motor]: Ca,
|
|
5629
|
+
[V.Car]: wa,
|
|
5630
|
+
[V.CarBusiness]: Ta,
|
|
5631
|
+
"business-car": Ta,
|
|
5632
|
+
[V.BusinessLiability]: Ea
|
|
5633
|
+
}, Oa = /* @__PURE__ */ l({
|
|
5663
5634
|
__name: "ComparisonFormFlow",
|
|
5664
5635
|
props: {
|
|
5665
5636
|
form: {},
|
|
@@ -5690,7 +5661,7 @@ var Sa = /* @__PURE__ */ B({
|
|
|
5690
5661
|
},
|
|
5691
5662
|
emits: ["submitted", "error"],
|
|
5692
5663
|
setup(e, { emit: i }) {
|
|
5693
|
-
let a = e, o = i, s = q(a), c = t(() =>
|
|
5664
|
+
let a = e, o = i, s = q(a), c = t(() => Da[a.form]), { submit: l, isSubmitting: u } = fa({
|
|
5694
5665
|
link: a.link,
|
|
5695
5666
|
onRedirect: (e) => {
|
|
5696
5667
|
o("submitted", e), a.redirect ? a.redirect(e) : window.location.href = e;
|
|
@@ -5703,37 +5674,40 @@ var Sa = /* @__PURE__ */ B({
|
|
|
5703
5674
|
return (t, i) => c.value ? (y(), n(w(c.value.Form), m({ key: 0 }, E(s), {
|
|
5704
5675
|
"initial-data": e.initialData,
|
|
5705
5676
|
"submit-disabled": e.submitDisabled || E(u),
|
|
5706
|
-
|
|
5677
|
+
onSubmitted: d
|
|
5707
5678
|
}), null, 16, ["initial-data", "submit-disabled"])) : r("", !0);
|
|
5708
5679
|
}
|
|
5709
|
-
}),
|
|
5680
|
+
}), ka, Aa = (e) => {
|
|
5681
|
+
ka = e;
|
|
5682
|
+
}, ja = () => ka?.url, Ma = { class: "vd-form vd-form--vertical vd-form--card" }, Na = {
|
|
5710
5683
|
key: 0,
|
|
5711
5684
|
class: "vd-form__header"
|
|
5712
|
-
},
|
|
5685
|
+
}, Pa = {
|
|
5713
5686
|
key: 0,
|
|
5714
5687
|
class: "vd-form__title"
|
|
5715
|
-
},
|
|
5688
|
+
}, Fa = {
|
|
5716
5689
|
key: 1,
|
|
5717
5690
|
class: "vd-form__description"
|
|
5718
|
-
},
|
|
5691
|
+
}, Ia = /* @__PURE__ */ l({
|
|
5719
5692
|
__name: "QuestionnaireForm",
|
|
5720
5693
|
props: {
|
|
5721
5694
|
link: {},
|
|
5695
|
+
qaId: {},
|
|
5696
|
+
thankyouPageTemplate: { default: "common" },
|
|
5722
5697
|
title: { default: "" },
|
|
5723
5698
|
description: { default: "" },
|
|
5724
5699
|
buttonText: { default: "" },
|
|
5725
5700
|
showTitle: {
|
|
5726
5701
|
type: Boolean,
|
|
5727
5702
|
default: !0
|
|
5728
|
-
}
|
|
5729
|
-
qaOptions: {}
|
|
5703
|
+
}
|
|
5730
5704
|
},
|
|
5731
5705
|
setup(e) {
|
|
5732
|
-
let n = e, a = t(() =>
|
|
5733
|
-
qaId: n.
|
|
5734
|
-
template: n.
|
|
5706
|
+
let n = e, a = t(() => Hr(n.link, {
|
|
5707
|
+
qaId: n.qaId,
|
|
5708
|
+
template: n.thankyouPageTemplate
|
|
5735
5709
|
}));
|
|
5736
|
-
return (t, n) => (y(), i("div",
|
|
5710
|
+
return (t, n) => (y(), i("div", Ma, [e.showTitle && e.title || e.description ? (y(), i("div", Na, [e.showTitle && e.title ? (y(), i("h2", Pa, T(e.title), 1)) : r("", !0), e.description ? (y(), i("p", Fa, T(e.description), 1)) : r("", !0)])) : r("", !0), c(E(Ne), {
|
|
5737
5711
|
href: a.value,
|
|
5738
5712
|
label: e.buttonText,
|
|
5739
5713
|
"button-type": "green",
|
|
@@ -5742,20 +5716,24 @@ var Sa = /* @__PURE__ */ B({
|
|
|
5742
5716
|
block: ""
|
|
5743
5717
|
}, null, 8, ["href", "label"])]));
|
|
5744
5718
|
}
|
|
5745
|
-
}),
|
|
5719
|
+
}), La = {
|
|
5746
5720
|
key: 0,
|
|
5747
5721
|
class: "vd-form__header"
|
|
5748
|
-
},
|
|
5722
|
+
}, Ra = {
|
|
5749
5723
|
key: 0,
|
|
5750
5724
|
class: "vd-form__title"
|
|
5751
|
-
},
|
|
5725
|
+
}, za = {
|
|
5752
5726
|
key: 1,
|
|
5753
5727
|
class: "vd-form__description"
|
|
5754
|
-
},
|
|
5728
|
+
}, Ba = { class: "vd-form__row" }, Va = { class: "vd-form__col-10 vd-form__col-md-6" }, Ha = { class: "vd-form__col-2 vd-form__action" }, Ua = /* @__PURE__ */ l({
|
|
5755
5729
|
__name: "RiskScannerForm",
|
|
5756
5730
|
props: {
|
|
5757
|
-
|
|
5731
|
+
qaUrl: { default: "" },
|
|
5732
|
+
qaId: { default: "6627c64764165beec8076818" },
|
|
5733
|
+
currentItemId: { default: "6627e21c64165beec8076830" },
|
|
5734
|
+
nextItemId: { default: "6627e32464165beec8076838" },
|
|
5758
5735
|
link: {},
|
|
5736
|
+
thankyouPageTemplate: { default: "risk-scanner" },
|
|
5759
5737
|
title: { default: "Check de risico`s voor jouw bedrijf + ontvang gratis offerte!" },
|
|
5760
5738
|
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
5739
|
buttonText: { default: "Start de gratis scan" },
|
|
@@ -5765,15 +5743,11 @@ var Sa = /* @__PURE__ */ B({
|
|
|
5765
5743
|
}
|
|
5766
5744
|
},
|
|
5767
5745
|
setup(e) {
|
|
5768
|
-
let o = e, s =
|
|
5769
|
-
|
|
5770
|
-
|
|
5771
|
-
|
|
5772
|
-
|
|
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`, {
|
|
5746
|
+
let o = e, s = x(null), { isSubmitting: l, handleSubmit: u, defineField: f, setErrors: p, removeError: h } = Z(R({ company: Ar() }), { company: null }), [g, _, v] = f("company"), b = (e) => e ? p({ company: e }) : h("company"), S = t(() => !!g.value && !g.value.hasVisitingAddress);
|
|
5747
|
+
async function C(e) {
|
|
5748
|
+
let t = o.qaUrl || ja();
|
|
5749
|
+
if (!t) throw Error("QA api url is required — set the qa-url attribute, or call configureQa({ url }) once at bootstrap.");
|
|
5750
|
+
let n = t.endsWith("/") ? t : `${t}/`, r = await fetch(`${n}api/v1/active-questionnaire/${o.qaId}/start`, {
|
|
5777
5751
|
method: "POST",
|
|
5778
5752
|
headers: { "Content-Type": "application/json" },
|
|
5779
5753
|
body: JSON.stringify({
|
|
@@ -5781,23 +5755,23 @@ var Sa = /* @__PURE__ */ B({
|
|
|
5781
5755
|
value: e.kvkNummer,
|
|
5782
5756
|
data: e
|
|
5783
5757
|
} } },
|
|
5784
|
-
current_item_id:
|
|
5785
|
-
next_item_id:
|
|
5758
|
+
current_item_id: o.currentItemId,
|
|
5759
|
+
next_item_id: o.nextItemId
|
|
5786
5760
|
})
|
|
5787
5761
|
});
|
|
5788
5762
|
if (!r.ok) throw Error(`Failed to start the questionnaire (${r.status})`);
|
|
5789
5763
|
let { leadId: i } = await r.json();
|
|
5790
|
-
return
|
|
5764
|
+
return Hr(o.link, {
|
|
5791
5765
|
leadid: i,
|
|
5792
|
-
qaId:
|
|
5793
|
-
template:
|
|
5766
|
+
qaId: o.qaId,
|
|
5767
|
+
template: o.thankyouPageTemplate
|
|
5794
5768
|
});
|
|
5795
5769
|
}
|
|
5796
|
-
function
|
|
5797
|
-
|
|
5770
|
+
function w() {
|
|
5771
|
+
l.value || u(async () => {
|
|
5798
5772
|
try {
|
|
5799
|
-
if (!
|
|
5800
|
-
let e = await
|
|
5773
|
+
if (!s.value) throw Error("Missing company data");
|
|
5774
|
+
let e = await C(s.value);
|
|
5801
5775
|
window.location.href = e;
|
|
5802
5776
|
} catch (e) {
|
|
5803
5777
|
console.error(e);
|
|
@@ -5806,22 +5780,23 @@ var Sa = /* @__PURE__ */ B({
|
|
|
5806
5780
|
}
|
|
5807
5781
|
return (t, o) => (y(), i("form", {
|
|
5808
5782
|
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"]),
|
|
5783
|
+
onSubmit: I(w, ["prevent", "stop"])
|
|
5784
|
+
}, [e.showTitle && e.title || e.description ? (y(), i("div", La, [e.showTitle && e.title ? (y(), i("h2", Ra, T(e.title), 1)) : r("", !0), e.description ? (y(), i("p", za, T(e.description), 1)) : r("", !0)])) : r("", !0), a("div", Ba, [a("div", Va, [c(E(kr), m({
|
|
5785
|
+
modelValue: E(g),
|
|
5786
|
+
"onUpdate:modelValue": o[0] ||= (e) => d(g) ? g.value = e : null
|
|
5787
|
+
}, E(_), {
|
|
5788
|
+
"error-message": E(v),
|
|
5789
|
+
onError: b,
|
|
5790
|
+
onRaw: o[1] ||= (e) => s.value = e
|
|
5791
|
+
}), null, 16, ["modelValue", "error-message"]), S.value ? (y(), n(E(Bt), {
|
|
5818
5792
|
key: 0,
|
|
5819
5793
|
style: { "margin-top": "12px" },
|
|
5820
5794
|
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",
|
|
5795
|
+
})) : r("", !0)]), a("div", Ha, [c(E(Ne), {
|
|
5796
|
+
type: "submit",
|
|
5822
5797
|
label: e.buttonText,
|
|
5823
|
-
"is-loading": E(
|
|
5824
|
-
disabled:
|
|
5798
|
+
"is-loading": E(l),
|
|
5799
|
+
disabled: S.value,
|
|
5825
5800
|
"button-type": "green",
|
|
5826
5801
|
size: "big",
|
|
5827
5802
|
block: "",
|
|
@@ -5834,4 +5809,4 @@ var Sa = /* @__PURE__ */ B({
|
|
|
5834
5809
|
}
|
|
5835
5810
|
});
|
|
5836
5811
|
//#endregion
|
|
5837
|
-
export {
|
|
5812
|
+
export { oi as BikeForm, ra as BusinessCarForm, oa as BusinessLiabilityForm, ea as CarForm, _i as CaravanForm, Oa as ComparisonFormFlow, V as ComparisonName, ki as HouseForm, Pi as LegalForm, Ti as LiabilityForm, Ui as LoanForm, Ji as MopedForm, Zi as MotorForm, Li as PackageForm, di as PetForm, Ia as QuestionnaireForm, Ua as RiskScannerForm, Si as TravelForm, si as bikePresenter, ia as businessCarPresenter, sa as businessLiabilityPresenter, ta as carPresenter, vi as caravanPresenter, Aa as configureQa, Ai as housePresenter, Fi as legalPresenter, Ei as liabilityPresenter, Gi as loanPresenter, Yi as mopedPresenter, Qi as motorPresenter, Ri as packagePresenter, fi as petPresenter, Ci as travelPresenter, fa as useComparisonSubmit };
|