@vergelijkdirect/comparison-forms 2.0.2-rc.0 → 2.0.3-VER-9366.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/dist/vue/comparison-forms.css +1 -1
- package/dist/vue/comparison-forms.js +949 -935
- package/dist/wc/comparison-forms.css +1 -1
- package/dist/wc/comparison-forms.js +5900 -5886
- package/dist/wc-forms/{VdInput-CQMUZonZ.cjs → VdInput-FV0L9B45.cjs} +1 -1
- package/dist/wc-forms/{VdPopover-B7iU4v7L.cjs → VdPopover-DztGFjWu.cjs} +1 -1
- package/dist/wc-forms/VdRadioGroup-CyxKi0s8.cjs +1 -0
- package/dist/wc-forms/VdSearchableSelect-CFK59ffc.cjs +3 -0
- package/dist/wc-forms/VdSelect-Ct1Q_1S-.cjs +1 -0
- package/dist/wc-forms/bike.cjs +1 -1
- package/dist/wc-forms/{birthdate.schema-rpmbSDZH.cjs → birthdate.schema-DdKmY-Zl.cjs} +1 -1
- package/dist/wc-forms/business-car.cjs +1 -1
- package/dist/wc-forms/business-liability.cjs +1 -1
- package/dist/wc-forms/car.cjs +1 -1
- package/dist/wc-forms/caravan.cjs +1 -1
- package/dist/wc-forms/company.schema-q4xkCOzK.cjs +1 -0
- package/dist/wc-forms/{familyComposition.schema-DW6scNvt.cjs → familyComposition.schema-EG-0badX.cjs} +1 -1
- package/dist/wc-forms/house.cjs +1 -1
- package/dist/wc-forms/{houseOwnedBuilding.model-DgIQ2pQN.cjs → houseOwnedBuilding.model-DXAXbpgh.cjs} +1 -1
- package/dist/wc-forms/legal.cjs +1 -1
- package/dist/wc-forms/liability.cjs +1 -1
- package/dist/wc-forms/loan.cjs +1 -1
- package/dist/wc-forms/moped.cjs +1 -1
- package/dist/wc-forms/motor.cjs +1 -1
- package/dist/wc-forms/package.cjs +1 -1
- package/dist/wc-forms/pet.cjs +1 -1
- package/dist/wc-forms/{rules-GF6hc_di.cjs → rules-B02tT9fM.cjs} +1 -1
- package/dist/wc-forms/travel.cjs +1 -1
- package/dist/wc-forms/useAddress-WM42C9IO.cjs +1 -0
- package/dist/wc-forms/useLicensePlate-APOK4sXp.cjs +1 -0
- package/dist/wc-forms/{useValidator-C2pny0oV.cjs → useValidator-Ck2oPjtx.cjs} +2 -2
- package/dist/wc-noitc/comparison-forms.css +1 -1
- package/dist/wc-noitc/comparison-forms.umd.cjs +1 -1
- package/package.json +2 -2
- package/dist/wc-forms/VdRadioGroup-CliXOc0N.cjs +0 -1
- package/dist/wc-forms/VdSearchableSelect-BOOYo1Cc.cjs +0 -3
- package/dist/wc-forms/VdSelect-BsnfIWYl.cjs +0 -1
- package/dist/wc-forms/company.schema-BLoMUJDa.cjs +0 -1
- package/dist/wc-forms/itc-nSCTLC1V.cjs +0 -1
- package/dist/wc-forms/useAddress-DJ4aWwYs.cjs +0 -1
- package/dist/wc-forms/useLicensePlate-98nreTI8.cjs +0 -1
|
@@ -1,31 +1,31 @@
|
|
|
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 _,
|
|
2
|
-
import { vMaska as
|
|
3
|
-
import { ComboboxCancel as
|
|
4
|
-
import { cloneDeep as
|
|
5
|
-
import { reactivePick as
|
|
6
|
-
import { autoUpdate as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import
|
|
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 _, onBeforeMount as v, onMounted as y, openBlock as b, provide as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as T, toDisplayString as E, unref as D, useAttrs as O, useId as k, useModel as A, useSlots as j, vModelRadio as M, vModelSelect as N, watch as P, withCtx as F, withDirectives as I, withModifiers as L } from "vue";
|
|
2
|
+
import { vMaska as ee } from "maska/vue";
|
|
3
|
+
import { ComboboxCancel as te, ComboboxContent as ne, ComboboxEmpty as re, ComboboxInput as ie, ComboboxItem as ae, ComboboxItemIndicator as oe, ComboboxRoot as se, ComboboxTrigger as ce, ComboboxViewport as le, ComboboxVirtualizer as ue, Label as de, useForwardProps as fe } from "reka-ui";
|
|
4
|
+
import { cloneDeep as pe, isEqual as me } from "es-toolkit";
|
|
5
|
+
import { reactivePick as he, refDebounced as ge, useAsyncState as _e } from "@vueuse/core";
|
|
6
|
+
import { autoUpdate as ve, flip as ye, offset as be, shift as xe, useFloating as Se } from "@floating-ui/vue";
|
|
7
|
+
import { ComparisonService as Ce, DataService as we, DataValidationService as Te, HomeService as Ee, User as De } from "@vergelijkdirect/insurance-transmission-client";
|
|
8
|
+
import { mixed as Oe, number as ke, object as R, string as z } from "yup";
|
|
9
|
+
import Ae from "dayjs";
|
|
10
|
+
import je from "dayjs/plugin/customParseFormat.js";
|
|
11
11
|
//#region \0rolldown/runtime.js
|
|
12
|
-
var
|
|
12
|
+
var Me = Object.defineProperty, B = (e, t) => {
|
|
13
13
|
let n = {};
|
|
14
|
-
for (var r in e)
|
|
14
|
+
for (var r in e) Me(n, r, {
|
|
15
15
|
get: e[r],
|
|
16
16
|
enumerable: !0
|
|
17
17
|
});
|
|
18
|
-
return t ||
|
|
18
|
+
return t || Me(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
19
19
|
}, V = /* @__PURE__ */ function(e) {
|
|
20
20
|
return e.Bike = "bike", e.Car = "car", e.Caravan = "caravan", e.CarBusiness = "car-business", e.BusinessLiability = "business-liability", e.Housing = "housing", e.LegalAssistance = "legal-assistance", e.Liability = "liability", e.Loan = "loan", e.Moped = "moped", e.Motor = "motor", e.Package = "package", e.Pet = "pet", e.Travel = "travel", e;
|
|
21
21
|
}({}), H = /* @__PURE__ */ function(e) {
|
|
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
|
-
}({}),
|
|
25
|
+
}({}), Ne = {
|
|
26
26
|
key: 1,
|
|
27
27
|
class: "vd-btn-new__label"
|
|
28
|
-
},
|
|
28
|
+
}, Pe = /* @__PURE__ */ l({
|
|
29
29
|
__name: "VdButton",
|
|
30
30
|
props: {
|
|
31
31
|
buttonType: { default: "primary" },
|
|
@@ -59,7 +59,7 @@ var je = Object.defineProperty, B = (e, t) => {
|
|
|
59
59
|
},
|
|
60
60
|
emits: ["click"],
|
|
61
61
|
setup(e, { emit: o }) {
|
|
62
|
-
let c = e, l = o, u =
|
|
62
|
+
let c = e, l = o, u = j(), d = t(() => !!c.href), f = t(() => c.disabled || c.isLoading), p = t(() => !!c.label || !!u.default), h = t(() => d.value ? "a" : "button"), _ = t(() => [
|
|
63
63
|
"vd-btn-new",
|
|
64
64
|
...c.buttonType.split("-").map((e) => `vd-btn-new--${e}`),
|
|
65
65
|
{
|
|
@@ -88,16 +88,16 @@ var je = Object.defineProperty, B = (e, t) => {
|
|
|
88
88
|
disabled: f.value,
|
|
89
89
|
tabindex: c.tabindex ?? void 0
|
|
90
90
|
};
|
|
91
|
-
}),
|
|
91
|
+
}), y = (e) => {
|
|
92
92
|
if (f.value) {
|
|
93
93
|
e.preventDefault(), e.stopPropagation();
|
|
94
94
|
return;
|
|
95
95
|
}
|
|
96
96
|
l("click", e);
|
|
97
97
|
};
|
|
98
|
-
return (t, o) => (
|
|
99
|
-
default:
|
|
100
|
-
e.icon && e.iconLeft ? (
|
|
98
|
+
return (t, o) => (b(), n(T(h.value), m({ class: _.value }, v.value, { onClick: y }), {
|
|
99
|
+
default: F(() => [
|
|
100
|
+
e.icon && e.iconLeft ? (b(), i("i", {
|
|
101
101
|
key: 0,
|
|
102
102
|
class: g([
|
|
103
103
|
"vd-btn-new__icon",
|
|
@@ -106,8 +106,8 @@ var je = Object.defineProperty, B = (e, t) => {
|
|
|
106
106
|
]),
|
|
107
107
|
"aria-hidden": "true"
|
|
108
108
|
}, null, 2)) : r("", !0),
|
|
109
|
-
p.value ? (
|
|
110
|
-
e.icon && !e.iconLeft ? (
|
|
109
|
+
p.value ? (b(), i("span", Ne, [w(t.$slots, "default", {}, () => [s(E(e.label), 1)])])) : r("", !0),
|
|
110
|
+
e.icon && !e.iconLeft ? (b(), i("i", {
|
|
111
111
|
key: 2,
|
|
112
112
|
class: g([
|
|
113
113
|
"vd-btn-new__icon",
|
|
@@ -124,13 +124,13 @@ var je = Object.defineProperty, B = (e, t) => {
|
|
|
124
124
|
_: 3
|
|
125
125
|
}, 16, ["class"]));
|
|
126
126
|
}
|
|
127
|
-
}),
|
|
127
|
+
}), Fe = { class: "vd-field" }, Ie = {
|
|
128
128
|
key: 0,
|
|
129
129
|
class: "vd-field__asterisk"
|
|
130
|
-
},
|
|
130
|
+
}, Le = {
|
|
131
131
|
key: 1,
|
|
132
132
|
class: "vd-field__popover"
|
|
133
|
-
},
|
|
133
|
+
}, Re = [
|
|
134
134
|
"id",
|
|
135
135
|
"value",
|
|
136
136
|
"type",
|
|
@@ -140,22 +140,22 @@ var je = Object.defineProperty, B = (e, t) => {
|
|
|
140
140
|
"disabled",
|
|
141
141
|
"readonly",
|
|
142
142
|
"autocomplete"
|
|
143
|
-
],
|
|
143
|
+
], ze = {
|
|
144
144
|
key: 0,
|
|
145
145
|
class: "vd-field__icon-and-loader"
|
|
146
|
-
},
|
|
146
|
+
}, Be = {
|
|
147
147
|
key: 0,
|
|
148
148
|
class: "vd-field__icon vd-field__icon--with-loader"
|
|
149
|
-
},
|
|
149
|
+
}, Ve = { key: 1 }, He = {
|
|
150
150
|
key: 0,
|
|
151
151
|
class: "vd-field__loader-circle"
|
|
152
|
-
},
|
|
152
|
+
}, Ue = {
|
|
153
153
|
key: 0,
|
|
154
154
|
class: "vd-field__message vd-field__message--error"
|
|
155
|
-
},
|
|
155
|
+
}, We = {
|
|
156
156
|
key: 1,
|
|
157
157
|
class: "vd-field__message vd-field__message--information"
|
|
158
|
-
},
|
|
158
|
+
}, Ge = /* @__PURE__ */ l({
|
|
159
159
|
__name: "VdInput",
|
|
160
160
|
props: /*@__PURE__*/ p({
|
|
161
161
|
id: { default: null },
|
|
@@ -210,27 +210,27 @@ var je = Object.defineProperty, B = (e, t) => {
|
|
|
210
210
|
}),
|
|
211
211
|
emits: /*@__PURE__*/ p(["blur", "change"], ["update:modelValue"]),
|
|
212
212
|
setup(e, { emit: o }) {
|
|
213
|
-
let c = e, l =
|
|
213
|
+
let c = e, l = A(e, "modelValue"), u = o, d = j(), f = c.id ?? k(), 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), y = (e) => {
|
|
214
214
|
l.value = p(e.target.value);
|
|
215
215
|
}, x = (e) => {
|
|
216
216
|
u("blur", p(e.target.value));
|
|
217
217
|
}, S = (e) => {
|
|
218
218
|
u("change", p(e.target.value));
|
|
219
219
|
};
|
|
220
|
-
return (t, o) => (
|
|
220
|
+
return (t, o) => (b(), i("div", Fe, [
|
|
221
221
|
a("div", {
|
|
222
222
|
class: g(["vd-field__label-wrapper", { "vd-field__label-wrapper--disabled": e.disabled }]),
|
|
223
|
-
onClick: o[0] ||=
|
|
224
|
-
}, [e.label ||
|
|
223
|
+
onClick: o[0] ||= L(() => {}, ["prevent"])
|
|
224
|
+
}, [e.label || D(d).label ? (b(), n(D(de), {
|
|
225
225
|
key: 0,
|
|
226
|
-
for:
|
|
226
|
+
for: D(f),
|
|
227
227
|
class: "vd-field__label"
|
|
228
228
|
}, {
|
|
229
|
-
default:
|
|
229
|
+
default: F(() => [a("span", null, [w(t.$slots, "label", {}, () => [s(E(e.label), 1)]), e.required ? (b(), i("span", Ie, "*")) : r("", !0)])]),
|
|
230
230
|
_: 3
|
|
231
|
-
}, 8, ["for"])) : r("", !0),
|
|
232
|
-
a("div", { class: g(["vd-field__wrapper", { "vd-field__wrapper-checkmark": h.value && !(e.icon ||
|
|
233
|
-
id:
|
|
231
|
+
}, 8, ["for"])) : r("", !0), D(d).popover ? (b(), i("span", Le, [w(t.$slots, "popover")])) : r("", !0)], 2),
|
|
232
|
+
a("div", { class: g(["vd-field__wrapper", { "vd-field__wrapper-checkmark": h.value && !(e.icon || D(d).icon) }]) }, [I(a("input", {
|
|
233
|
+
id: D(f),
|
|
234
234
|
value: l.value,
|
|
235
235
|
type: e.type,
|
|
236
236
|
name: e.name,
|
|
@@ -243,54 +243,54 @@ var je = Object.defineProperty, B = (e, t) => {
|
|
|
243
243
|
"vd-field__input--verified": h.value,
|
|
244
244
|
"vd-field__input--default": m.value,
|
|
245
245
|
"vd-field__input--error": _.value,
|
|
246
|
-
"vd-field__input--icon-left": (e.icon ||
|
|
247
|
-
"vd-field__input--icon-right": (e.icon ||
|
|
246
|
+
"vd-field__input--icon-left": (e.icon || D(d).icon) && e.iconLeft,
|
|
247
|
+
"vd-field__input--icon-right": (e.icon || D(d).icon) && !e.iconLeft,
|
|
248
248
|
"vd-field__input--loading": e.loading,
|
|
249
|
-
"vd-field__input--loading vd-field__input--icon": e.loading && !e.iconLeft && (e.icon ||
|
|
249
|
+
"vd-field__input--loading vd-field__input--icon": e.loading && !e.iconLeft && (e.icon || D(d).icon)
|
|
250
250
|
}]),
|
|
251
|
-
onInput:
|
|
251
|
+
onInput: y,
|
|
252
252
|
onChange: S,
|
|
253
253
|
onBlur: x
|
|
254
|
-
}, null, 42,
|
|
254
|
+
}, null, 42, Re), [[D(ee), e.mask || void 0]]), e.loading && e.icon && !e.iconLeft ? (b(), i("div", ze, [o[1] ||= a("div", { class: "vd-field__loader-circle vd-field__loader-circle--and-icon" }, null, -1), e.icon || D(d).icon ? (b(), i("span", Be, [w(t.$slots, "icon", {}, () => [a("i", { class: g(e.icon) }, null, 2)])])) : r("", !0)])) : (b(), i("div", Ve, [e.loading ? (b(), i("div", He)) : r("", !0), e.icon || D(d).icon ? (b(), i("span", {
|
|
255
255
|
key: 1,
|
|
256
256
|
class: g(["vd-field__icon", {
|
|
257
257
|
"vd-field__icon--left": e.iconLeft,
|
|
258
258
|
"vd-field__icon--disabled": e.disabled
|
|
259
259
|
}])
|
|
260
|
-
}, [
|
|
261
|
-
v.value ||
|
|
262
|
-
e.infoMessage ||
|
|
260
|
+
}, [w(t.$slots, "icon", {}, () => [a("i", { class: g(e.icon) }, null, 2)])], 2)) : r("", !0)]))], 2),
|
|
261
|
+
v.value || D(d).errorMessage ? (b(), i("div", Ue, [w(t.$slots, "errorMessage", {}, () => [o[2] ||= a("i", { class: "fas fa-exclamation-circle vd-field__message-icon" }, null, -1), s(" " + E(e.errorMessage), 1)])])) : r("", !0),
|
|
262
|
+
e.infoMessage || D(d).information ? (b(), i("div", We, [w(t.$slots, "information", {}, () => [o[3] ||= a("i", { class: "fas fa-info-circle vd-field__message-icon" }, null, -1), s(" " + E(e.infoMessage), 1)])])) : r("", !0)
|
|
263
263
|
]));
|
|
264
264
|
}
|
|
265
|
-
}),
|
|
265
|
+
}), Ke = { class: "vd-field" }, qe = {
|
|
266
266
|
key: 0,
|
|
267
267
|
class: "vd-field__asterisk"
|
|
268
|
-
},
|
|
268
|
+
}, Je = {
|
|
269
269
|
key: 1,
|
|
270
270
|
class: "vd-field__popover"
|
|
271
|
-
},
|
|
271
|
+
}, Ye = { class: "vd-field__wrapper" }, Xe = [
|
|
272
272
|
"id",
|
|
273
273
|
"name",
|
|
274
274
|
"disabled"
|
|
275
|
-
],
|
|
275
|
+
], Ze = {
|
|
276
276
|
key: 0,
|
|
277
277
|
value: "",
|
|
278
278
|
disabled: "",
|
|
279
279
|
selected: ""
|
|
280
|
-
},
|
|
280
|
+
}, Qe = [
|
|
281
281
|
"value",
|
|
282
282
|
"selected",
|
|
283
283
|
"disabled"
|
|
284
|
-
],
|
|
284
|
+
], $e = {
|
|
285
285
|
key: 0,
|
|
286
286
|
class: "vd-field__icon-and-loader"
|
|
287
|
-
},
|
|
287
|
+
}, et = {
|
|
288
288
|
key: 0,
|
|
289
289
|
class: "vd-field__message vd-field__message--error"
|
|
290
|
-
},
|
|
290
|
+
}, tt = {
|
|
291
291
|
key: 1,
|
|
292
292
|
class: "vd-field__message vd-field__message--information"
|
|
293
|
-
},
|
|
293
|
+
}, nt = /* @__PURE__ */ l({
|
|
294
294
|
__name: "VdSelect",
|
|
295
295
|
props: /*@__PURE__*/ p({
|
|
296
296
|
id: { default: null },
|
|
@@ -322,78 +322,78 @@ var je = Object.defineProperty, B = (e, t) => {
|
|
|
322
322
|
}),
|
|
323
323
|
emits: /*@__PURE__*/ p(["blur", "select"], ["update:modelValue"]),
|
|
324
324
|
setup(o, { emit: c }) {
|
|
325
|
-
let l = o, u =
|
|
325
|
+
let l = o, u = A(o, "modelValue"), d = c, f = j(), p = l.id ?? k(), m = t({
|
|
326
326
|
get: () => u.value ?? "",
|
|
327
327
|
set: (e) => {
|
|
328
328
|
u.value = e === "" ? null : e;
|
|
329
329
|
}
|
|
330
|
-
}), h =
|
|
330
|
+
}), h = S(!0), _ = t(() => !l.errorMessage && l.verified && !l.disabled && !l.loading), v = t(() => !l.errorMessage && !_.value), y = t(() => !!l.errorMessage), x = () => `vd-field__select--placeholder-${!u.value && h.value ? "shown" : "hidden"}`, T = (e) => {
|
|
331
331
|
d("select", e.target.value), h.value = !1;
|
|
332
|
-
},
|
|
332
|
+
}, O = (e) => {
|
|
333
333
|
d("blur", e.target.value);
|
|
334
334
|
};
|
|
335
|
-
return (t, c) => (
|
|
336
|
-
a("div", { class: g(["vd-field__label-wrapper", { "vd-field__label-wrapper--disabled": o.disabled }]) }, [o.label ||
|
|
335
|
+
return (t, c) => (b(), i("div", Ke, [
|
|
336
|
+
a("div", { class: g(["vd-field__label-wrapper", { "vd-field__label-wrapper--disabled": o.disabled }]) }, [o.label || D(f).label ? (b(), n(D(de), {
|
|
337
337
|
key: 0,
|
|
338
|
-
for:
|
|
338
|
+
for: D(p),
|
|
339
339
|
class: "vd-field__label"
|
|
340
340
|
}, {
|
|
341
|
-
default:
|
|
341
|
+
default: F(() => [a("span", null, [w(t.$slots, "label", {}, () => [s(E(o.label), 1)]), o.required ? (b(), i("span", qe, "*")) : r("", !0)])]),
|
|
342
342
|
_: 3
|
|
343
|
-
}, 8, ["for"])) : r("", !0),
|
|
344
|
-
a("div",
|
|
345
|
-
id:
|
|
343
|
+
}, 8, ["for"])) : r("", !0), D(f).popover ? (b(), i("span", Je, [w(t.$slots, "popover")])) : r("", !0)], 2),
|
|
344
|
+
a("div", Ye, [I(a("select", {
|
|
345
|
+
id: D(p),
|
|
346
346
|
"onUpdate:modelValue": c[0] ||= (e) => m.value = e,
|
|
347
347
|
name: o.name,
|
|
348
348
|
disabled: o.disabled,
|
|
349
|
-
class: g(["vd-field__input vd-field__select", [
|
|
350
|
-
"vd-field__input--error":
|
|
349
|
+
class: g(["vd-field__input vd-field__select", [x(), {
|
|
350
|
+
"vd-field__input--error": y.value,
|
|
351
351
|
"vd-field__input--verified": _.value,
|
|
352
352
|
"vd-field__input--default": v.value,
|
|
353
353
|
"vd-field__select--placeholder-with-loader-and-icon-shown": o.loading
|
|
354
354
|
}]]),
|
|
355
|
-
onChange:
|
|
356
|
-
onBlur:
|
|
357
|
-
}, [o.placeholder ? (
|
|
355
|
+
onChange: T,
|
|
356
|
+
onBlur: O
|
|
357
|
+
}, [o.placeholder ? (b(), i("option", Ze, E(o.placeholder), 1)) : r("", !0), (b(!0), i(e, null, C(o.options, (e, t) => (b(), i("option", {
|
|
358
358
|
key: e.value + "_" + t,
|
|
359
359
|
value: e.value,
|
|
360
360
|
selected: e.selected || !1,
|
|
361
361
|
disabled: e.disabled || !1
|
|
362
|
-
},
|
|
362
|
+
}, E(e.title), 9, Qe))), 128))], 42, Xe), [[N, m.value]]), o.loading ? (b(), i("div", $e, [...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)]])) : (b(), n(D(de), {
|
|
363
363
|
key: 1,
|
|
364
|
-
for:
|
|
364
|
+
for: D(p),
|
|
365
365
|
class: "vd-field__select-icon"
|
|
366
366
|
}, null, 8, ["for"]))]),
|
|
367
|
-
|
|
368
|
-
o.infoMessage ||
|
|
367
|
+
y.value || D(f).errorMessage ? (b(), i("div", et, [w(t.$slots, "errorMessage", {}, () => [c[2] ||= a("i", { class: "fas fa-exclamation-circle vd-field__message-icon" }, null, -1), s(" " + E(o.errorMessage), 1)])])) : r("", !0),
|
|
368
|
+
o.infoMessage || D(f).information ? (b(), i("div", tt, [w(t.$slots, "information", {}, () => [c[3] ||= a("i", { class: "fas fa-info-circle vd-field__message-icon" }, null, -1), s(" " + E(o.infoMessage), 1)])])) : r("", !0)
|
|
369
369
|
]));
|
|
370
370
|
}
|
|
371
371
|
});
|
|
372
372
|
//#endregion
|
|
373
373
|
//#region node_modules/es-toolkit/dist/_internal/isEqualsSameValueZero.mjs
|
|
374
|
-
function
|
|
374
|
+
function rt(e, t) {
|
|
375
375
|
return e === t || Number.isNaN(e) && Number.isNaN(t);
|
|
376
376
|
}
|
|
377
377
|
//#endregion
|
|
378
378
|
//#region node_modules/es-toolkit/dist/compat/util/toString.mjs
|
|
379
|
-
function
|
|
379
|
+
function it(e) {
|
|
380
380
|
if (e == null) return "";
|
|
381
381
|
if (typeof e == "string") return e;
|
|
382
|
-
if (Array.isArray(e)) return e.map(
|
|
382
|
+
if (Array.isArray(e)) return e.map(it).join(",");
|
|
383
383
|
let t = String(e);
|
|
384
384
|
return t === "0" && Object.is(Number(e), -0) ? "-0" : t;
|
|
385
385
|
}
|
|
386
386
|
//#endregion
|
|
387
387
|
//#region node_modules/es-toolkit/dist/compat/_internal/toKey.mjs
|
|
388
|
-
function
|
|
388
|
+
function at(e) {
|
|
389
389
|
return typeof e == "string" || typeof e == "symbol" ? e : Object.is(e?.valueOf?.(), -0) ? "-0" : String(e);
|
|
390
390
|
}
|
|
391
391
|
//#endregion
|
|
392
392
|
//#region node_modules/es-toolkit/dist/compat/util/toPath.mjs
|
|
393
|
-
function
|
|
394
|
-
if (Array.isArray(e)) return e.map(
|
|
393
|
+
function ot(e) {
|
|
394
|
+
if (Array.isArray(e)) return e.map(at);
|
|
395
395
|
if (typeof e == "symbol") return [e];
|
|
396
|
-
e =
|
|
396
|
+
e = it(e);
|
|
397
397
|
let t = [], n = e.length;
|
|
398
398
|
if (n === 0) return t;
|
|
399
399
|
let r = 0, i = "", a = "", o = !1;
|
|
@@ -413,12 +413,12 @@ function at(e) {
|
|
|
413
413
|
}
|
|
414
414
|
//#endregion
|
|
415
415
|
//#region node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs
|
|
416
|
-
function
|
|
416
|
+
function st(e) {
|
|
417
417
|
return e === "__proto__";
|
|
418
418
|
}
|
|
419
419
|
//#endregion
|
|
420
420
|
//#region node_modules/es-toolkit/dist/compat/_internal/isDeepKey.mjs
|
|
421
|
-
function
|
|
421
|
+
function ct(e) {
|
|
422
422
|
switch (typeof e) {
|
|
423
423
|
case "number":
|
|
424
424
|
case "symbol": return !1;
|
|
@@ -431,108 +431,108 @@ function W(e, t, n) {
|
|
|
431
431
|
if (e == null) return n;
|
|
432
432
|
switch (typeof t) {
|
|
433
433
|
case "string": {
|
|
434
|
-
if (
|
|
434
|
+
if (st(t)) return n;
|
|
435
435
|
let r = e[t];
|
|
436
|
-
return r === void 0 ?
|
|
436
|
+
return r === void 0 ? ct(t) && !Object.hasOwn(e, t) ? W(e, ot(t), n) : n : r;
|
|
437
437
|
}
|
|
438
438
|
case "number":
|
|
439
439
|
case "symbol": {
|
|
440
|
-
typeof t == "number" && (t =
|
|
440
|
+
typeof t == "number" && (t = at(t));
|
|
441
441
|
let r = e[t];
|
|
442
442
|
return r === void 0 ? n : r;
|
|
443
443
|
}
|
|
444
444
|
default: {
|
|
445
|
-
if (Array.isArray(t)) return
|
|
446
|
-
if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t),
|
|
445
|
+
if (Array.isArray(t)) return lt(e, t, n);
|
|
446
|
+
if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), st(t)) return n;
|
|
447
447
|
let r = e[t];
|
|
448
448
|
return r === void 0 ? n : r;
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
451
|
}
|
|
452
|
-
function
|
|
452
|
+
function lt(e, t, n) {
|
|
453
453
|
if (t.length === 0) return n;
|
|
454
454
|
let r = e;
|
|
455
455
|
for (let e = 0; e < t.length; e++) {
|
|
456
|
-
if (r == null ||
|
|
456
|
+
if (r == null || st(t[e])) return n;
|
|
457
457
|
r = r[t[e]];
|
|
458
458
|
}
|
|
459
459
|
return r === void 0 ? n : r;
|
|
460
460
|
}
|
|
461
461
|
//#endregion
|
|
462
462
|
//#region node_modules/es-toolkit/dist/compat/predicate/isObject.mjs
|
|
463
|
-
function
|
|
463
|
+
function ut(e) {
|
|
464
464
|
return e !== null && (typeof e == "object" || typeof e == "function");
|
|
465
465
|
}
|
|
466
466
|
//#endregion
|
|
467
467
|
//#region node_modules/es-toolkit/dist/compat/_internal/isIndex.mjs
|
|
468
|
-
var
|
|
469
|
-
function
|
|
468
|
+
var dt = /^(?:0|[1-9]\d*)$/;
|
|
469
|
+
function ft(e, t = 2 ** 53 - 1) {
|
|
470
470
|
switch (typeof e) {
|
|
471
471
|
case "number": return Number.isInteger(e) && e >= 0 && e < t;
|
|
472
472
|
case "symbol": return !1;
|
|
473
|
-
case "string": return
|
|
473
|
+
case "string": return dt.test(e);
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
476
|
//#endregion
|
|
477
477
|
//#region node_modules/es-toolkit/dist/compat/predicate/isSymbol.mjs
|
|
478
|
-
function
|
|
478
|
+
function pt(e) {
|
|
479
479
|
return typeof e == "symbol" || e instanceof Symbol;
|
|
480
480
|
}
|
|
481
481
|
//#endregion
|
|
482
482
|
//#region node_modules/es-toolkit/dist/compat/_internal/isKey.mjs
|
|
483
|
-
var
|
|
484
|
-
function
|
|
485
|
-
return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null ||
|
|
483
|
+
var mt = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, ht = /^\w*$/;
|
|
484
|
+
function gt(e, t) {
|
|
485
|
+
return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || pt(e) ? !0 : typeof e == "string" && (ht.test(e) || !mt.test(e)) || t != null && Object.hasOwn(t, e);
|
|
486
486
|
}
|
|
487
487
|
//#endregion
|
|
488
488
|
//#region node_modules/es-toolkit/dist/compat/_internal/assignValue.mjs
|
|
489
|
-
var
|
|
489
|
+
var _t = (e, t, n) => {
|
|
490
490
|
let r = e[t];
|
|
491
|
-
(!(Object.hasOwn(e, t) &&
|
|
491
|
+
(!(Object.hasOwn(e, t) && rt(r, n)) || n === void 0 && !(t in e)) && (e[t] = n);
|
|
492
492
|
};
|
|
493
493
|
//#endregion
|
|
494
494
|
//#region node_modules/es-toolkit/dist/compat/object/updateWith.mjs
|
|
495
|
-
function
|
|
496
|
-
if (e == null && !
|
|
495
|
+
function vt(e, t, n, r) {
|
|
496
|
+
if (e == null && !ut(e)) return e;
|
|
497
497
|
let i;
|
|
498
|
-
i =
|
|
498
|
+
i = gt(t, e) ? [t] : Array.isArray(t) ? t : ot(t);
|
|
499
499
|
let a = n(W(e, i)), o = e;
|
|
500
500
|
for (let t = 0; t < i.length && o != null; t++) {
|
|
501
|
-
let n =
|
|
502
|
-
if (
|
|
501
|
+
let n = at(i[t]);
|
|
502
|
+
if (st(n)) continue;
|
|
503
503
|
let s;
|
|
504
504
|
if (t === i.length - 1) s = a;
|
|
505
505
|
else {
|
|
506
506
|
let a = o[n], c = r?.(a, n, e);
|
|
507
|
-
s = c === void 0 ?
|
|
507
|
+
s = c === void 0 ? ut(a) ? a : ft(i[t + 1]) ? [] : {} : c;
|
|
508
508
|
}
|
|
509
|
-
|
|
509
|
+
_t(o, n, s), o = o[n];
|
|
510
510
|
}
|
|
511
511
|
return e;
|
|
512
512
|
}
|
|
513
513
|
//#endregion
|
|
514
514
|
//#region node_modules/es-toolkit/dist/compat/object/set.mjs
|
|
515
|
-
function
|
|
516
|
-
return
|
|
515
|
+
function yt(e, t, n) {
|
|
516
|
+
return vt(e, t, () => n, () => void 0);
|
|
517
517
|
}
|
|
518
518
|
//#endregion
|
|
519
519
|
//#region src/components/ui/VdSearchableSelect.vue?vue&type=script&setup=true&lang.ts
|
|
520
|
-
var
|
|
520
|
+
var bt = {
|
|
521
521
|
key: 0,
|
|
522
522
|
class: "vd-field__asterisk"
|
|
523
|
-
},
|
|
523
|
+
}, xt = {
|
|
524
524
|
key: 1,
|
|
525
525
|
class: "vd-field__popover"
|
|
526
|
-
},
|
|
526
|
+
}, St = { class: "vd-field__wrapper" }, Ct = {
|
|
527
527
|
key: 1,
|
|
528
528
|
class: "vd-field__loader-circle"
|
|
529
|
-
},
|
|
529
|
+
}, wt = {
|
|
530
530
|
key: 0,
|
|
531
531
|
class: "vd-field__message vd-field__message--error"
|
|
532
|
-
},
|
|
532
|
+
}, Tt = {
|
|
533
533
|
key: 1,
|
|
534
534
|
class: "vd-field__message vd-field__message--information"
|
|
535
|
-
},
|
|
535
|
+
}, Et = /* @__PURE__ */ l({
|
|
536
536
|
__name: "VdSearchableSelect",
|
|
537
537
|
props: /*@__PURE__*/ p({
|
|
538
538
|
id: {},
|
|
@@ -588,17 +588,17 @@ var yt = {
|
|
|
588
588
|
"update:searchTerm"
|
|
589
589
|
]),
|
|
590
590
|
setup(o, { emit: l }) {
|
|
591
|
-
let u = o, d =
|
|
592
|
-
if (
|
|
591
|
+
let u = o, d = fe(he(u, "name", "disabled", "by", "ignoreFilter")), f = A(o, "modelValue"), p = A(o, "open"), h = A(o, "searchTerm"), _ = l, v = j(), y = u.id ?? k(), x = t(() => !!u.icon || !!v.icon), S = (e) => typeof e == "object" && !!e, T = (e) => S(e) ? W(e, u.labelKey) ?? e.title ?? "" : String(e), O = (e) => S(e) ? u.valueKey === null ? e : W(e, u.valueKey) : e, M = (e) => S(e) ? e.disabled : void 0, N = (e, t) => e === void 0 || t === void 0 ? !1 : !S(e) || !S(t) ? e === t : typeof u.by == "function" ? u.by(e, t) : typeof u.by == "string" ? W(e, u.by) === W(t, u.by) : me(e, t), P = (e) => e == null || e === "", I = t(() => !P(f.value)), L = t(() => u.errorMessage ? "error" : I.value && u.verified && !u.loading ? "verified" : "default"), ee = (e) => {
|
|
592
|
+
if (P(e)) return "";
|
|
593
593
|
if (u.displayValue) return u.displayValue(e);
|
|
594
|
-
let t = u.options.find((t) => N(
|
|
595
|
-
return
|
|
596
|
-
},
|
|
594
|
+
let t = u.options.find((t) => N(O(t), e));
|
|
595
|
+
return T(t ?? e);
|
|
596
|
+
}, pe = (e) => {
|
|
597
597
|
_("select", e);
|
|
598
598
|
}, ge = () => {
|
|
599
599
|
f.value = void 0, _("clear");
|
|
600
600
|
};
|
|
601
|
-
return (t, l) => (
|
|
601
|
+
return (t, l) => (b(), n(D(se), m({
|
|
602
602
|
modelValue: f.value,
|
|
603
603
|
"onUpdate:modelValue": l[3] ||= (e) => f.value = e,
|
|
604
604
|
open: p.value,
|
|
@@ -606,22 +606,22 @@ var yt = {
|
|
|
606
606
|
class: "vd-field",
|
|
607
607
|
"open-on-click": "",
|
|
608
608
|
"open-on-focus": ""
|
|
609
|
-
},
|
|
610
|
-
default:
|
|
611
|
-
a("div", { class: g(["vd-field__label-wrapper", { "vd-field__label-wrapper--disabled": o.disabled }]) }, [o.label || v.label ? (
|
|
609
|
+
}, D(d)), {
|
|
610
|
+
default: F(() => [
|
|
611
|
+
a("div", { class: g(["vd-field__label-wrapper", { "vd-field__label-wrapper--disabled": o.disabled }]) }, [o.label || v.label ? (b(), n(D(de), {
|
|
612
612
|
key: 0,
|
|
613
|
-
for:
|
|
613
|
+
for: D(y),
|
|
614
614
|
class: "vd-field__label"
|
|
615
615
|
}, {
|
|
616
|
-
default:
|
|
616
|
+
default: F(() => [a("span", null, [w(t.$slots, "label", {}, () => [s(E(o.label), 1)]), o.required ? (b(), i("span", bt, "*")) : r("", !0)])]),
|
|
617
617
|
_: 3
|
|
618
|
-
}, 8, ["for"])) : r("", !0), v.popover ? (
|
|
619
|
-
a("div",
|
|
620
|
-
c(
|
|
621
|
-
id:
|
|
618
|
+
}, 8, ["for"])) : r("", !0), v.popover ? (b(), i("span", xt, [w(t.$slots, "popover")])) : r("", !0)], 2),
|
|
619
|
+
a("div", St, [
|
|
620
|
+
c(D(ie), {
|
|
621
|
+
id: D(y),
|
|
622
622
|
modelValue: h.value,
|
|
623
623
|
"onUpdate:modelValue": l[0] ||= (e) => h.value = e,
|
|
624
|
-
"display-value":
|
|
624
|
+
"display-value": ee,
|
|
625
625
|
placeholder: o.placeholder,
|
|
626
626
|
class: g(["vd-field__input vd-field__input--icon-right", [`vd-field__input--${L.value}`, { "vd-field__input--icon-left": x.value }]]),
|
|
627
627
|
onInput: l[1] ||= (e) => _("search", e.target.value),
|
|
@@ -632,44 +632,44 @@ var yt = {
|
|
|
632
632
|
"placeholder",
|
|
633
633
|
"class"
|
|
634
634
|
]),
|
|
635
|
-
x.value ? (
|
|
635
|
+
x.value ? (b(), i("span", {
|
|
636
636
|
key: 0,
|
|
637
637
|
class: g(["vd-field__icon vd-field__icon--left", { "vd-field__icon--disabled": o.disabled }])
|
|
638
|
-
}, [
|
|
639
|
-
o.loading ? (
|
|
638
|
+
}, [w(t.$slots, "icon", {}, () => [a("i", { class: g(o.icon) }, null, 2)])], 2)) : r("", !0),
|
|
639
|
+
o.loading ? (b(), i("div", Ct)) : o.clearable && I.value ? (b(), n(D(te), {
|
|
640
640
|
key: 2,
|
|
641
641
|
as: "span",
|
|
642
642
|
class: "vd-field__icon",
|
|
643
643
|
onClick: ge
|
|
644
644
|
}, {
|
|
645
|
-
default:
|
|
645
|
+
default: F(() => [...l[5] ||= [a("i", { class: "far fa-times vd-field__icon--clickable" }, null, -1)]]),
|
|
646
646
|
_: 1
|
|
647
|
-
})) : (
|
|
647
|
+
})) : (b(), n(D(ce), {
|
|
648
648
|
key: 3,
|
|
649
649
|
as: "span",
|
|
650
650
|
class: "vd-field__icon"
|
|
651
651
|
}, {
|
|
652
|
-
default:
|
|
652
|
+
default: F(() => [a("i", { class: g(p.value ? "far fa-chevron-up" : "far fa-chevron-down") }, null, 2)]),
|
|
653
653
|
_: 1
|
|
654
654
|
})),
|
|
655
|
-
c(
|
|
656
|
-
default:
|
|
657
|
-
default:
|
|
655
|
+
c(D(ne), { class: "vd-combobox" }, {
|
|
656
|
+
default: F(() => [c(D(le), { class: "vd-combobox__list" }, {
|
|
657
|
+
default: F(() => [o.virtual ? (b(), n(D(ue), {
|
|
658
658
|
key: 0,
|
|
659
659
|
options: o.options,
|
|
660
660
|
"estimate-size": o.estimateSize,
|
|
661
661
|
overscan: o.overscan,
|
|
662
|
-
"text-content":
|
|
662
|
+
"text-content": T
|
|
663
663
|
}, {
|
|
664
|
-
default:
|
|
665
|
-
value:
|
|
666
|
-
"text-value":
|
|
664
|
+
default: F(({ option: e }) => [c(D(ae), {
|
|
665
|
+
value: O(e),
|
|
666
|
+
"text-value": T(e),
|
|
667
667
|
disabled: M(e),
|
|
668
668
|
class: "vd-combobox__item",
|
|
669
|
-
onSelect: (t) =>
|
|
669
|
+
onSelect: (t) => pe(O(e))
|
|
670
670
|
}, {
|
|
671
|
-
default:
|
|
672
|
-
default:
|
|
671
|
+
default: F(() => [w(t.$slots, "item", { option: e }, () => [s(E(T(e)), 1)]), c(D(oe), { class: "vd-combobox__check" }, {
|
|
672
|
+
default: F(() => [...l[6] ||= [a("i", { class: "far fa-check" }, null, -1)]]),
|
|
673
673
|
_: 1
|
|
674
674
|
})]),
|
|
675
675
|
_: 2
|
|
@@ -684,16 +684,16 @@ var yt = {
|
|
|
684
684
|
"options",
|
|
685
685
|
"estimate-size",
|
|
686
686
|
"overscan"
|
|
687
|
-
])) : (
|
|
687
|
+
])) : (b(!0), i(e, { key: 1 }, C(o.options, (e, r) => (b(), n(D(ae), {
|
|
688
688
|
key: r,
|
|
689
|
-
value:
|
|
690
|
-
"text-value":
|
|
689
|
+
value: O(e),
|
|
690
|
+
"text-value": T(e),
|
|
691
691
|
disabled: M(e),
|
|
692
692
|
class: "vd-combobox__item",
|
|
693
|
-
onSelect: (t) =>
|
|
693
|
+
onSelect: (t) => pe(O(e))
|
|
694
694
|
}, {
|
|
695
|
-
default:
|
|
696
|
-
default:
|
|
695
|
+
default: F(() => [w(t.$slots, "item", { option: e }, () => [s(E(T(e)), 1)]), c(D(oe), { class: "vd-combobox__check" }, {
|
|
696
|
+
default: F(() => [...l[7] ||= [a("i", { class: "far fa-check" }, null, -1)]]),
|
|
697
697
|
_: 1
|
|
698
698
|
})]),
|
|
699
699
|
_: 2
|
|
@@ -702,8 +702,8 @@ var yt = {
|
|
|
702
702
|
"text-value",
|
|
703
703
|
"disabled",
|
|
704
704
|
"onSelect"
|
|
705
|
-
]))), 128)), c(
|
|
706
|
-
default:
|
|
705
|
+
]))), 128)), c(D(re), { class: "vd-combobox__empty" }, {
|
|
706
|
+
default: F(() => [s(E(o.noResultsText), 1)]),
|
|
707
707
|
_: 1
|
|
708
708
|
})]),
|
|
709
709
|
_: 3
|
|
@@ -711,18 +711,18 @@ var yt = {
|
|
|
711
711
|
_: 3
|
|
712
712
|
})
|
|
713
713
|
]),
|
|
714
|
-
L.value === "error" || v.errorMessage ? (
|
|
715
|
-
o.infoMessage || v.information ? (
|
|
714
|
+
L.value === "error" || v.errorMessage ? (b(), i("div", wt, [w(t.$slots, "errorMessage", {}, () => [l[8] ||= a("i", { class: "fas fa-exclamation-circle vd-field__message-icon" }, null, -1), s(" " + E(o.errorMessage), 1)])])) : r("", !0),
|
|
715
|
+
o.infoMessage || v.information ? (b(), i("div", Tt, [w(t.$slots, "information", {}, () => [l[9] ||= a("i", { class: "fas fa-info-circle vd-field__message-icon" }, null, -1), s(" " + E(o.infoMessage), 1)])])) : r("", !0)
|
|
716
716
|
]),
|
|
717
717
|
_: 3
|
|
718
718
|
}, 16, ["modelValue", "open"]));
|
|
719
719
|
}
|
|
720
|
-
}),
|
|
720
|
+
}), Dt = { class: "vd-radio-field" }, Ot = { class: "vd-radio-field__input" }, kt = [
|
|
721
721
|
"id",
|
|
722
722
|
"disabled",
|
|
723
723
|
"name",
|
|
724
724
|
"value"
|
|
725
|
-
],
|
|
725
|
+
], At = ["for"], jt = /* @__PURE__ */ l({
|
|
726
726
|
__name: "VdRadio",
|
|
727
727
|
props: /*@__PURE__*/ p({
|
|
728
728
|
name: {},
|
|
@@ -763,14 +763,14 @@ var yt = {
|
|
|
763
763
|
}),
|
|
764
764
|
emits: /*@__PURE__*/ p(["change", "blur"], ["update:modelValue"]),
|
|
765
765
|
setup(e, { emit: t }) {
|
|
766
|
-
let n = e, o =
|
|
766
|
+
let n = e, o = A(e, "modelValue"), c = t, l = j(), u = n.id ?? k(), d = (e) => {
|
|
767
767
|
c("change", n.value, e.target.value);
|
|
768
768
|
}, f = (e) => {
|
|
769
769
|
c("blur", n.value, e.target.value);
|
|
770
770
|
};
|
|
771
|
-
return (t, n) => (
|
|
772
|
-
a("div",
|
|
773
|
-
id:
|
|
771
|
+
return (t, n) => (b(), i("div", Dt, [
|
|
772
|
+
a("div", Ot, [I(a("input", {
|
|
773
|
+
id: D(u),
|
|
774
774
|
"onUpdate:modelValue": n[0] ||= (e) => o.value = e,
|
|
775
775
|
disabled: e.disabled,
|
|
776
776
|
name: e.name,
|
|
@@ -782,28 +782,28 @@ var yt = {
|
|
|
782
782
|
type: "radio",
|
|
783
783
|
onChange: d,
|
|
784
784
|
onBlur: f
|
|
785
|
-
}, null, 42,
|
|
786
|
-
e.label ||
|
|
785
|
+
}, null, 42, kt), [[M, o.value]])]),
|
|
786
|
+
e.label || D(l).label ? (b(), i("label", {
|
|
787
787
|
key: 0,
|
|
788
788
|
class: "vd-radio-field__label",
|
|
789
|
-
for:
|
|
790
|
-
}, [
|
|
791
|
-
|
|
789
|
+
for: D(u)
|
|
790
|
+
}, [w(t.$slots, "label", {}, () => [s(E(e.label), 1)])], 8, At)) : r("", !0),
|
|
791
|
+
w(t.$slots, "popover")
|
|
792
792
|
]));
|
|
793
793
|
}
|
|
794
|
-
}),
|
|
794
|
+
}), Mt = ["disabled"], Nt = { class: "vd-field__label" }, Pt = {
|
|
795
795
|
key: 0,
|
|
796
796
|
class: "vd-field__asterisk"
|
|
797
|
-
},
|
|
797
|
+
}, Ft = {
|
|
798
798
|
key: 0,
|
|
799
799
|
class: "vd-field__popover"
|
|
800
|
-
},
|
|
800
|
+
}, It = {
|
|
801
801
|
key: 1,
|
|
802
802
|
class: "vd-field__message vd-field__message--error"
|
|
803
|
-
},
|
|
803
|
+
}, Lt = {
|
|
804
804
|
key: 2,
|
|
805
805
|
class: "vd-field__message vd-field__message--information"
|
|
806
|
-
},
|
|
806
|
+
}, Rt = /* @__PURE__ */ l({
|
|
807
807
|
__name: "VdRadioGroup",
|
|
808
808
|
props: /*@__PURE__*/ p({
|
|
809
809
|
name: {},
|
|
@@ -835,7 +835,7 @@ var yt = {
|
|
|
835
835
|
}),
|
|
836
836
|
emits: /*@__PURE__*/ p(["change", "blur"], ["update:modelValue"]),
|
|
837
837
|
setup(o, { emit: c }) {
|
|
838
|
-
let l = o, u =
|
|
838
|
+
let l = o, u = A(o, "modelValue"), d = c, f = j(), p = t(() => !!l.errorMessage), m = t(() => ({
|
|
839
839
|
"vd-radio-group--horizontal": l.variant === "horizontal",
|
|
840
840
|
"vd-radio-group--boxed": l.variant === "boxed"
|
|
841
841
|
})), h = (e) => {
|
|
@@ -843,15 +843,15 @@ var yt = {
|
|
|
843
843
|
}, _ = (e) => {
|
|
844
844
|
d("blur", e);
|
|
845
845
|
};
|
|
846
|
-
return (t, c) => (
|
|
846
|
+
return (t, c) => (b(), i("fieldset", {
|
|
847
847
|
class: g(["vd-field vd-radio-group", m.value]),
|
|
848
848
|
disabled: o.disabled
|
|
849
849
|
}, [
|
|
850
|
-
o.legend ||
|
|
850
|
+
o.legend || D(f).legend ? (b(), i("legend", {
|
|
851
851
|
key: 0,
|
|
852
852
|
class: g(["vd-field__label-wrapper", { "vd-field__label-wrapper--disabled": o.disabled }])
|
|
853
|
-
}, [a("div",
|
|
854
|
-
a("div", { class: g(["vd-radio-group__list", o.groupClass]) }, [(
|
|
853
|
+
}, [a("div", Nt, [w(t.$slots, "legend", {}, () => [s(E(o.legend), 1)]), o.required ? (b(), i("span", Pt, "*")) : r("", !0)]), D(f).popover ? (b(), i("span", Ft, [w(t.$slots, "popover")])) : r("", !0)], 2)) : r("", !0),
|
|
854
|
+
a("div", { class: g(["vd-radio-group__list", o.groupClass]) }, [(b(!0), i(e, null, C(o.options, (e) => (b(), n(jt, {
|
|
855
855
|
key: e.value,
|
|
856
856
|
modelValue: u.value,
|
|
857
857
|
"onUpdate:modelValue": c[0] ||= (e) => u.value = e,
|
|
@@ -863,8 +863,8 @@ var yt = {
|
|
|
863
863
|
onChange: h,
|
|
864
864
|
onBlur: _
|
|
865
865
|
}, {
|
|
866
|
-
label:
|
|
867
|
-
popover:
|
|
866
|
+
label: F(() => [w(t.$slots, "label", { option: e })]),
|
|
867
|
+
popover: F(() => [w(t.$slots, "label_popover", { option: e })]),
|
|
868
868
|
_: 2
|
|
869
869
|
}, 1032, [
|
|
870
870
|
"modelValue",
|
|
@@ -874,14 +874,14 @@ var yt = {
|
|
|
874
874
|
"disabled",
|
|
875
875
|
"invalid"
|
|
876
876
|
]))), 128))], 2),
|
|
877
|
-
p.value ? (
|
|
878
|
-
o.infoMessage ||
|
|
879
|
-
], 10,
|
|
877
|
+
p.value ? (b(), i("div", It, [c[1] ||= a("i", { class: "fas fa-exclamation-circle vd-field__message-icon" }, null, -1), s(" " + E(o.errorMessage), 1)])) : r("", !0),
|
|
878
|
+
o.infoMessage || D(f).information ? (b(), i("div", Lt, [w(t.$slots, "information", {}, () => [c[2] ||= a("i", { class: "fas fa-info-circle vd-field__message-icon" }, null, -1), s(" " + E(o.infoMessage), 1)])])) : r("", !0)
|
|
879
|
+
], 10, Mt));
|
|
880
880
|
}
|
|
881
|
-
}),
|
|
881
|
+
}), zt = { class: "vd-notification__content" }, Bt = {
|
|
882
882
|
key: 0,
|
|
883
883
|
class: "vd-notification__title"
|
|
884
|
-
},
|
|
884
|
+
}, Vt = /* @__PURE__ */ l({
|
|
885
885
|
__name: "VdNotification",
|
|
886
886
|
props: {
|
|
887
887
|
type: { default: "warning" },
|
|
@@ -900,12 +900,12 @@ var yt = {
|
|
|
900
900
|
success: "fas fa-check-circle",
|
|
901
901
|
error: "fas fa-times-circle"
|
|
902
902
|
};
|
|
903
|
-
return (n, o) => (
|
|
903
|
+
return (n, o) => (b(), 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", zt, [e.title ? (b(), i("span", Bt, E(e.title), 1)) : r("", !0), w(n.$slots, "default", {}, () => [s(E(e.text), 1)])])], 2));
|
|
904
904
|
}
|
|
905
|
-
}),
|
|
905
|
+
}), Ht = { class: "vd-popover__title" }, Ut = {
|
|
906
906
|
key: 0,
|
|
907
907
|
class: "vd-popover__title-icon"
|
|
908
|
-
},
|
|
908
|
+
}, Wt = { key: 1 }, Gt = /* @__PURE__ */ l({
|
|
909
909
|
__name: "VdPopoverHeader",
|
|
910
910
|
props: {
|
|
911
911
|
title: { default: "" },
|
|
@@ -916,12 +916,12 @@ var yt = {
|
|
|
916
916
|
let n = t, o = () => {
|
|
917
917
|
n("close");
|
|
918
918
|
};
|
|
919
|
-
return (t, n) => (
|
|
919
|
+
return (t, n) => (b(), i("div", { class: g(["vd-popover__header", { "vd-popover__header--only-close-icon": !e.title }]) }, [e.title ? w(t.$slots, "default", { key: 0 }, () => [a("div", Ht, [e.icon ? (b(), i("div", Ut, [a("i", { class: g(e.icon) }, null, 2)])) : r("", !0), e.title ? (b(), i("span", Wt, E(e.title), 1)) : r("", !0)])]) : r("", !0), a("button", {
|
|
920
920
|
class: "vd-popover__close-btn",
|
|
921
921
|
onClick: o
|
|
922
922
|
}, [...n[0] ||= [a("i", { class: "far fa-times vd-popover__close-btn-icon" }, null, -1)]])], 2));
|
|
923
923
|
}
|
|
924
|
-
}),
|
|
924
|
+
}), Kt = ["innerHTML"], qt = /* @__PURE__ */ l({
|
|
925
925
|
__name: "VdPopoverTooltip",
|
|
926
926
|
props: {
|
|
927
927
|
content: { default: () => ({
|
|
@@ -941,21 +941,21 @@ var yt = {
|
|
|
941
941
|
let a = t, o = () => {
|
|
942
942
|
a("close");
|
|
943
943
|
};
|
|
944
|
-
return (t, a) => (
|
|
944
|
+
return (t, a) => (b(), i("div", {
|
|
945
945
|
class: g(["vd-popover__tooltip", [e.size ? `vd-popover__tooltip--${e.size}` : "", e.variant ? `vd-popover__tooltip--${e.variant}` : ""]]),
|
|
946
|
-
onPointerdown: a[0] ||=
|
|
947
|
-
}, [e.hideHeaderTooltip ? r("", !0) : (
|
|
946
|
+
onPointerdown: a[0] ||= L(() => {}, ["prevent"])
|
|
947
|
+
}, [e.hideHeaderTooltip ? r("", !0) : (b(), n(Gt, {
|
|
948
948
|
key: 0,
|
|
949
949
|
title: e.content.title,
|
|
950
950
|
icon: e.headerIconTooltip,
|
|
951
951
|
onClose: o
|
|
952
|
-
}, null, 8, ["title", "icon"])), e.content && e.content.description ? (
|
|
952
|
+
}, null, 8, ["title", "icon"])), e.content && e.content.description ? (b(), i("p", {
|
|
953
953
|
key: 1,
|
|
954
954
|
class: "vd-popover__description",
|
|
955
955
|
innerHTML: e.content.description
|
|
956
|
-
}, null, 8,
|
|
956
|
+
}, null, 8, Kt)) : r("", !0)], 34));
|
|
957
957
|
}
|
|
958
|
-
}),
|
|
958
|
+
}), Jt = { key: 1 }, Yt = /* @__PURE__ */ l({
|
|
959
959
|
__name: "VdPopoverReference",
|
|
960
960
|
props: {
|
|
961
961
|
label: { default: "" },
|
|
@@ -967,13 +967,13 @@ var yt = {
|
|
|
967
967
|
}
|
|
968
968
|
},
|
|
969
969
|
setup(e) {
|
|
970
|
-
return (t, n) => (
|
|
971
|
-
e.iconLeft ? (
|
|
970
|
+
return (t, n) => (b(), i("span", { class: g(["vd-popover__reference", [e.variant ? `vd-popover__reference--${e.variant}` : ""]]) }, [
|
|
971
|
+
e.iconLeft ? (b(), i("i", {
|
|
972
972
|
key: 0,
|
|
973
973
|
class: g(e.icon)
|
|
974
974
|
}, null, 2)) : r("", !0),
|
|
975
|
-
e.label ? (
|
|
976
|
-
e.iconLeft ? r("", !0) : (
|
|
975
|
+
e.label ? (b(), i("span", Jt, E(e.label), 1)) : r("", !0),
|
|
976
|
+
e.iconLeft ? r("", !0) : (b(), i("i", {
|
|
977
977
|
key: 2,
|
|
978
978
|
class: g(e.icon)
|
|
979
979
|
}, null, 2))
|
|
@@ -1025,18 +1025,18 @@ var yt = {
|
|
|
1025
1025
|
}
|
|
1026
1026
|
},
|
|
1027
1027
|
setup(e) {
|
|
1028
|
-
let t = e, n =
|
|
1028
|
+
let t = e, n = S(null), o = S(null), { floatingStyles: s } = Se(n, o, {
|
|
1029
1029
|
placement: t.position,
|
|
1030
1030
|
middleware: [
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1031
|
+
be(t.offSet),
|
|
1032
|
+
ye({ mainAxis: !t.fixed }),
|
|
1033
|
+
xe({
|
|
1034
1034
|
crossAxis: !1,
|
|
1035
1035
|
padding: 10
|
|
1036
1036
|
})
|
|
1037
1037
|
],
|
|
1038
|
-
whileElementsMounted:
|
|
1039
|
-
}), l =
|
|
1038
|
+
whileElementsMounted: ve
|
|
1039
|
+
}), l = S(!1), u = S(!1), d = () => {
|
|
1040
1040
|
l.value = !0, u.value = !0;
|
|
1041
1041
|
}, f = () => {
|
|
1042
1042
|
l.value = !1, u.value = !1;
|
|
@@ -1049,22 +1049,22 @@ var yt = {
|
|
|
1049
1049
|
}, v = () => {
|
|
1050
1050
|
t.disableHoverListener || u.value || (l.value = !1);
|
|
1051
1051
|
};
|
|
1052
|
-
return (u, d) => (
|
|
1052
|
+
return (u, d) => (b(), i("span", { class: g(["vd-popover", `vd-popover--${e.display}`]) }, [a("span", {
|
|
1053
1053
|
ref_key: "reference",
|
|
1054
1054
|
ref: n,
|
|
1055
1055
|
class: "vd-popover__reference-wrapper",
|
|
1056
|
-
onClick:
|
|
1056
|
+
onClick: L(p, ["stop"]),
|
|
1057
1057
|
onMouseover: h,
|
|
1058
1058
|
onMouseleave: v,
|
|
1059
1059
|
onMousedown: m
|
|
1060
|
-
}, [
|
|
1060
|
+
}, [w(u.$slots, "reference", {
|
|
1061
1061
|
toggleOnClick: p,
|
|
1062
1062
|
onHover: h,
|
|
1063
1063
|
onLeave: v,
|
|
1064
1064
|
onMousedown: m,
|
|
1065
1065
|
isOpen: l.value,
|
|
1066
1066
|
close: f
|
|
1067
|
-
}, () => [c(
|
|
1067
|
+
}, () => [c(Yt, {
|
|
1068
1068
|
variant: e.refVariant,
|
|
1069
1069
|
label: e.label,
|
|
1070
1070
|
icon: e.iconRef,
|
|
@@ -1074,14 +1074,14 @@ var yt = {
|
|
|
1074
1074
|
"label",
|
|
1075
1075
|
"icon",
|
|
1076
1076
|
"icon-left"
|
|
1077
|
-
])])], 544), l.value ? (
|
|
1077
|
+
])])], 544), l.value ? (b(), i("div", {
|
|
1078
1078
|
key: 0,
|
|
1079
1079
|
ref_key: "floating",
|
|
1080
1080
|
ref: o,
|
|
1081
|
-
style: _(
|
|
1081
|
+
style: _(D(s)),
|
|
1082
1082
|
class: g(["vd-popover__floating", t.fullWidth ? "vd-popover__floating--full-width" : ""]),
|
|
1083
|
-
onPointerdown: d[0] ||=
|
|
1084
|
-
}, [
|
|
1083
|
+
onPointerdown: d[0] ||= L(() => {}, ["prevent"])
|
|
1084
|
+
}, [w(u.$slots, "tooltip", { close: f }, () => [c(qt, {
|
|
1085
1085
|
content: e.content,
|
|
1086
1086
|
variant: e.tooltipVariant,
|
|
1087
1087
|
size: e.tooltipSize,
|
|
@@ -1106,21 +1106,21 @@ var yt = {
|
|
|
1106
1106
|
fullWidth: !1,
|
|
1107
1107
|
submitLabel: "Vergelijken",
|
|
1108
1108
|
submitDisabled: !1
|
|
1109
|
-
},
|
|
1109
|
+
}, Xt = Object.keys(K);
|
|
1110
1110
|
function q(e) {
|
|
1111
|
-
return
|
|
1111
|
+
return he(e, ...Xt);
|
|
1112
1112
|
}
|
|
1113
1113
|
//#endregion
|
|
1114
1114
|
//#region \0plugin-vue:export-helper
|
|
1115
|
-
var
|
|
1115
|
+
var Zt = (e, t) => {
|
|
1116
1116
|
let n = e.__vccOpts || e;
|
|
1117
1117
|
for (let [e, r] of t) n[e] = r;
|
|
1118
1118
|
return n;
|
|
1119
|
-
},
|
|
1120
|
-
function
|
|
1121
|
-
return
|
|
1119
|
+
}, Qt = {}, $t = { class: "vd-form__row" };
|
|
1120
|
+
function en(e, t) {
|
|
1121
|
+
return b(), i("div", $t, [w(e.$slots, "default")]);
|
|
1122
1122
|
}
|
|
1123
|
-
var
|
|
1123
|
+
var tn = /*#__PURE__*/ Zt(Qt, [["render", en]]), J = /* @__PURE__ */ l({
|
|
1124
1124
|
__name: "VdFormCol",
|
|
1125
1125
|
props: {
|
|
1126
1126
|
span: { default: null },
|
|
@@ -1133,20 +1133,31 @@ var en = /*#__PURE__*/ Xt(Zt, [["render", $t]]), J = /* @__PURE__ */ l({
|
|
|
1133
1133
|
n.md == null ? null : `vd-form__col-md-${n.md}`,
|
|
1134
1134
|
n.ratio == null ? null : `vd-form__ratio-${n.ratio}`
|
|
1135
1135
|
]);
|
|
1136
|
-
return (e, t) => (
|
|
1136
|
+
return (e, t) => (b(), i("div", { class: g(r.value) }, [w(e.$slots, "default")], 2));
|
|
1137
1137
|
}
|
|
1138
|
-
}),
|
|
1138
|
+
}), nn, rn, an = () => ({
|
|
1139
|
+
dataService: new we(),
|
|
1140
|
+
dataValidationService: new Te(),
|
|
1141
|
+
homeService: new Ee(),
|
|
1142
|
+
comparisonService: new Ce()
|
|
1143
|
+
}), on = () => (nn ||= an(), nn), sn = async () => {
|
|
1144
|
+
if (!rn) throw Error("ITC client is not initialized.");
|
|
1145
|
+
return rn;
|
|
1146
|
+
}, cn = {
|
|
1139
1147
|
key: 0,
|
|
1140
1148
|
class: "vd-form__banner"
|
|
1141
|
-
},
|
|
1149
|
+
}, ln = ["innerHTML"], un = {
|
|
1142
1150
|
key: 1,
|
|
1143
1151
|
class: "vd-form__header"
|
|
1144
|
-
},
|
|
1152
|
+
}, dn = {
|
|
1145
1153
|
key: 0,
|
|
1146
1154
|
class: "vd-form__title"
|
|
1147
|
-
},
|
|
1155
|
+
}, fn = {
|
|
1148
1156
|
key: 1,
|
|
1149
1157
|
class: "vd-form__description"
|
|
1158
|
+
}, pn = {
|
|
1159
|
+
key: 2,
|
|
1160
|
+
class: "vd-afm"
|
|
1150
1161
|
}, Y = /* @__PURE__ */ l({
|
|
1151
1162
|
__name: "VdComparisonForm",
|
|
1152
1163
|
props: /*@__PURE__*/ f({
|
|
@@ -1168,28 +1179,31 @@ var en = /*#__PURE__*/ Xt(Zt, [["render", $t]]), J = /* @__PURE__ */ l({
|
|
|
1168
1179
|
}),
|
|
1169
1180
|
emits: ["submit"],
|
|
1170
1181
|
setup(e, { emit: n }) {
|
|
1171
|
-
let o = e,
|
|
1182
|
+
let o = S(!0), l = e, u = n, d = j(), f = t(() => [
|
|
1172
1183
|
"vd-form",
|
|
1173
|
-
`vd-form--${
|
|
1174
|
-
{ "vd-form--card":
|
|
1175
|
-
{ "vd-form--flat":
|
|
1176
|
-
{ "vd-form--full-width":
|
|
1177
|
-
]),
|
|
1178
|
-
|
|
1184
|
+
`vd-form--${l.layout}`,
|
|
1185
|
+
{ "vd-form--card": l.card },
|
|
1186
|
+
{ "vd-form--flat": l.flat },
|
|
1187
|
+
{ "vd-form--full-width": l.fullWidth }
|
|
1188
|
+
]), p = (e) => {
|
|
1189
|
+
u("submit", e);
|
|
1179
1190
|
};
|
|
1180
|
-
return (
|
|
1181
|
-
|
|
1182
|
-
|
|
1191
|
+
return v(async () => {
|
|
1192
|
+
let e = (await sn()).getConfigurations().getAfmLicenseNumber();
|
|
1193
|
+
o.value = !!e;
|
|
1194
|
+
}), (t, n) => (b(), i("div", null, [a("form", {
|
|
1195
|
+
class: g(f.value),
|
|
1196
|
+
onSubmit: L(p, ["prevent", "stop"])
|
|
1183
1197
|
}, [
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
c(
|
|
1187
|
-
default:
|
|
1198
|
+
D(d).banner || e.banner ? (b(), i("div", cn, [w(t.$slots, "banner", {}, () => [a("span", { innerHTML: e.banner }, null, 8, ln)])])) : r("", !0),
|
|
1199
|
+
D(d).header || e.title || e.description ? (b(), i("div", un, [w(t.$slots, "header", {}, () => [e.title ? (b(), i("h2", dn, E(e.title), 1)) : r("", !0), e.description ? (b(), i("p", fn, E(e.description), 1)) : r("", !0)])])) : r("", !0),
|
|
1200
|
+
c(tn, null, {
|
|
1201
|
+
default: F(() => [w(t.$slots, "default"), c(J, {
|
|
1188
1202
|
class: "vd-form__action",
|
|
1189
1203
|
span: e.actionSpan,
|
|
1190
1204
|
md: e.actionMd
|
|
1191
1205
|
}, {
|
|
1192
|
-
default:
|
|
1206
|
+
default: F(() => [w(t.$slots, "action", {}, () => [c(Pe, {
|
|
1193
1207
|
type: "submit",
|
|
1194
1208
|
label: e.submitLabel,
|
|
1195
1209
|
"button-type": "green",
|
|
@@ -1201,10 +1215,15 @@ var en = /*#__PURE__*/ Xt(Zt, [["render", $t]]), J = /* @__PURE__ */ l({
|
|
|
1201
1215
|
_: 3
|
|
1202
1216
|
}, 8, ["span", "md"])]),
|
|
1203
1217
|
_: 3
|
|
1204
|
-
})
|
|
1205
|
-
|
|
1218
|
+
}),
|
|
1219
|
+
o.value ? r("", !0) : (b(), i("div", pn, [...n[0] ||= [a("p", { class: "vd-afm__text" }, [
|
|
1220
|
+
s(" Bovenstaande vergelijkingsmodule beheerd door "),
|
|
1221
|
+
a("a", { href: "https://vergelijkdirect.com" }, " Vergelijkdirect.com BV. "),
|
|
1222
|
+
s(" Execution Only, geen advies. AFM-vergunning 12044269 ")
|
|
1223
|
+
], -1)]]))
|
|
1224
|
+
], 34)]));
|
|
1206
1225
|
}
|
|
1207
|
-
}),
|
|
1226
|
+
}), mn = /* @__PURE__ */ l({
|
|
1208
1227
|
__name: "VdFormGroup",
|
|
1209
1228
|
props: {
|
|
1210
1229
|
span: { default: null },
|
|
@@ -1216,7 +1235,7 @@ var en = /*#__PURE__*/ Xt(Zt, [["render", $t]]), J = /* @__PURE__ */ l({
|
|
|
1216
1235
|
n.span == null ? null : `vd-form__col-${n.span}`,
|
|
1217
1236
|
n.md == null ? null : `vd-form__col-md-${n.md}`
|
|
1218
1237
|
]);
|
|
1219
|
-
return (e, t) => (
|
|
1238
|
+
return (e, t) => (b(), i("div", { class: g(r.value) }, [w(e.$slots, "default")], 2));
|
|
1220
1239
|
}
|
|
1221
1240
|
}), X = /* @__PURE__ */ l({
|
|
1222
1241
|
inheritAttrs: !1,
|
|
@@ -1236,8 +1255,8 @@ var en = /*#__PURE__*/ Xt(Zt, [["render", $t]]), J = /* @__PURE__ */ l({
|
|
|
1236
1255
|
}),
|
|
1237
1256
|
emits: ["update:modelValue"],
|
|
1238
1257
|
setup(e) {
|
|
1239
|
-
let t =
|
|
1240
|
-
return (i, a) => (
|
|
1258
|
+
let t = j(), r = A(e, "modelValue");
|
|
1259
|
+
return (i, a) => (b(), n(Ge, m({
|
|
1241
1260
|
modelValue: r.value,
|
|
1242
1261
|
"onUpdate:modelValue": a[0] ||= (e) => r.value = e,
|
|
1243
1262
|
label: e.label,
|
|
@@ -1246,9 +1265,9 @@ var en = /*#__PURE__*/ Xt(Zt, [["render", $t]]), J = /* @__PURE__ */ l({
|
|
|
1246
1265
|
mask: e.mask,
|
|
1247
1266
|
required: e.required,
|
|
1248
1267
|
inputmode: "numeric"
|
|
1249
|
-
}, i.$attrs), o({ _: 2 }, [
|
|
1268
|
+
}, i.$attrs), o({ _: 2 }, [D(t).popover ? {
|
|
1250
1269
|
name: "popover",
|
|
1251
|
-
fn:
|
|
1270
|
+
fn: F(() => [w(i.$slots, "popover")]),
|
|
1252
1271
|
key: "0"
|
|
1253
1272
|
} : void 0]), 1040, [
|
|
1254
1273
|
"modelValue",
|
|
@@ -1259,7 +1278,7 @@ var en = /*#__PURE__*/ Xt(Zt, [["render", $t]]), J = /* @__PURE__ */ l({
|
|
|
1259
1278
|
"required"
|
|
1260
1279
|
]));
|
|
1261
1280
|
}
|
|
1262
|
-
}),
|
|
1281
|
+
}), hn = /* @__PURE__ */ l({
|
|
1263
1282
|
inheritAttrs: !1,
|
|
1264
1283
|
__name: "VdFamilyCompositionSelect",
|
|
1265
1284
|
props: /*@__PURE__*/ p({
|
|
@@ -1292,8 +1311,8 @@ var en = /*#__PURE__*/ Xt(Zt, [["render", $t]]), J = /* @__PURE__ */ l({
|
|
|
1292
1311
|
value: H.FamilyWithChildren,
|
|
1293
1312
|
title: "Gezin met kinderen"
|
|
1294
1313
|
}
|
|
1295
|
-
], r =
|
|
1296
|
-
return (a, s) => (
|
|
1314
|
+
], r = j(), i = A(e, "modelValue");
|
|
1315
|
+
return (a, s) => (b(), n(nt, m({
|
|
1297
1316
|
modelValue: i.value,
|
|
1298
1317
|
"onUpdate:modelValue": s[0] ||= (e) => i.value = e,
|
|
1299
1318
|
label: e.label,
|
|
@@ -1301,9 +1320,9 @@ var en = /*#__PURE__*/ Xt(Zt, [["render", $t]]), J = /* @__PURE__ */ l({
|
|
|
1301
1320
|
required: e.required,
|
|
1302
1321
|
options: t,
|
|
1303
1322
|
placeholder: ""
|
|
1304
|
-
}, a.$attrs), o({ _: 2 }, [
|
|
1323
|
+
}, a.$attrs), o({ _: 2 }, [D(r).popover ? {
|
|
1305
1324
|
name: "popover",
|
|
1306
|
-
fn:
|
|
1325
|
+
fn: F(() => [w(a.$slots, "popover")]),
|
|
1307
1326
|
key: "0"
|
|
1308
1327
|
} : void 0]), 1040, [
|
|
1309
1328
|
"modelValue",
|
|
@@ -1312,25 +1331,25 @@ var en = /*#__PURE__*/ Xt(Zt, [["render", $t]]), J = /* @__PURE__ */ l({
|
|
|
1312
1331
|
"required"
|
|
1313
1332
|
]));
|
|
1314
1333
|
}
|
|
1315
|
-
}),
|
|
1316
|
-
let n =
|
|
1334
|
+
}), gn = (e) => e.replace(/\["(\d+)"\]/g, "[$1]"), _n = (e, t) => `${e}${t}`, vn = (e) => (e.inner || []).reduce((e, t) => {
|
|
1335
|
+
let n = gn(t.path);
|
|
1317
1336
|
return e[n] || (e[n] = t.message), e;
|
|
1318
|
-
}, {}),
|
|
1337
|
+
}, {}), yn = (e) => {
|
|
1319
1338
|
if (!e.inner) throw e;
|
|
1320
|
-
return
|
|
1321
|
-
},
|
|
1339
|
+
return vn(e);
|
|
1340
|
+
}, bn = { isValidating: !1 }, xn = {
|
|
1322
1341
|
validateAt: "blur",
|
|
1323
1342
|
strict: !0,
|
|
1324
1343
|
abortEarly: !1
|
|
1325
|
-
},
|
|
1344
|
+
}, Sn = Symbol("useValidator"), Z = (e, n, r) => {
|
|
1326
1345
|
let i = {
|
|
1327
|
-
...
|
|
1346
|
+
...xn,
|
|
1328
1347
|
...r
|
|
1329
|
-
}, a =
|
|
1348
|
+
}, a = pe(n), o = S(pe(a)), s = S({}), c = S(!1), l = S(!1), u = S({}), d = (e) => t({
|
|
1330
1349
|
get: () => v(e),
|
|
1331
1350
|
set: (t) => y(e, t)
|
|
1332
1351
|
}), f = (e, n) => t(() => ({
|
|
1333
|
-
onBlur: () =>
|
|
1352
|
+
onBlur: () => b(e, n),
|
|
1334
1353
|
onChange: () => C(e, n),
|
|
1335
1354
|
onInput: () => w(e, n)
|
|
1336
1355
|
})), p = (e) => t(() => N(e)), m = (e) => t(() => ({
|
|
@@ -1338,15 +1357,15 @@ var en = /*#__PURE__*/ Xt(Zt, [["render", $t]]), J = /* @__PURE__ */ l({
|
|
|
1338
1357
|
isValidating: u.value[e]?.isValidating ?? !1
|
|
1339
1358
|
})), g = (e, t) => {
|
|
1340
1359
|
let n = t && "value" in t ? t.value : W(a, e), r = { isValidating: t?.isValidating ?? !1 }, i = t?.error ?? "";
|
|
1341
|
-
y(e,
|
|
1360
|
+
y(e, pe(n)), _(e, r), i ? M({ [e]: i }) : P(e);
|
|
1342
1361
|
}, _ = (e, t) => {
|
|
1343
1362
|
u.value[e] = {
|
|
1344
1363
|
...u.value[e],
|
|
1345
1364
|
...t
|
|
1346
1365
|
};
|
|
1347
1366
|
}, v = (e) => W(o.value, e), y = (e, t) => {
|
|
1348
|
-
|
|
1349
|
-
},
|
|
1367
|
+
yt(o.value, e, t);
|
|
1368
|
+
}, b = (e, t) => {
|
|
1350
1369
|
t === "blur" && j(e);
|
|
1351
1370
|
}, C = (e, t) => {
|
|
1352
1371
|
t === "change" && h(() => j(e));
|
|
@@ -1354,7 +1373,7 @@ var en = /*#__PURE__*/ Xt(Zt, [["render", $t]]), J = /* @__PURE__ */ l({
|
|
|
1354
1373
|
t === "input" && h(() => j(e));
|
|
1355
1374
|
}, T = (e, t) => {
|
|
1356
1375
|
let n = t?.validateAt ?? i.validateAt;
|
|
1357
|
-
return _(e,
|
|
1376
|
+
return _(e, bn), [
|
|
1358
1377
|
d(e),
|
|
1359
1378
|
f(e, n),
|
|
1360
1379
|
p(e),
|
|
@@ -1362,10 +1381,10 @@ var en = /*#__PURE__*/ Xt(Zt, [["render", $t]]), J = /* @__PURE__ */ l({
|
|
|
1362
1381
|
];
|
|
1363
1382
|
}, E = (e) => {
|
|
1364
1383
|
let t = d(e), n = (t, n) => {
|
|
1365
|
-
let r = n?.validateAt ?? i.validateAt, a =
|
|
1384
|
+
let r = n?.validateAt ?? i.validateAt, a = _n(e, t);
|
|
1366
1385
|
return f(a, r).value;
|
|
1367
1386
|
}, r = (t) => {
|
|
1368
|
-
let n =
|
|
1387
|
+
let n = _n(e, t);
|
|
1369
1388
|
return N(n);
|
|
1370
1389
|
};
|
|
1371
1390
|
return {
|
|
@@ -1373,7 +1392,7 @@ var en = /*#__PURE__*/ Xt(Zt, [["render", $t]]), J = /* @__PURE__ */ l({
|
|
|
1373
1392
|
getAttrs: n,
|
|
1374
1393
|
getError: r,
|
|
1375
1394
|
getMeta: (t) => {
|
|
1376
|
-
let n =
|
|
1395
|
+
let n = _n(e, t);
|
|
1377
1396
|
return m(n);
|
|
1378
1397
|
},
|
|
1379
1398
|
arrayError: r(e),
|
|
@@ -1382,7 +1401,7 @@ var en = /*#__PURE__*/ Xt(Zt, [["render", $t]]), J = /* @__PURE__ */ l({
|
|
|
1382
1401
|
console.warn(`Fields at path "${e}" is not initialized`);
|
|
1383
1402
|
return;
|
|
1384
1403
|
}
|
|
1385
|
-
for (let e = 0; e < r; e++) t.value.push(
|
|
1404
|
+
for (let e = 0; e < r; e++) t.value.push(pe(n));
|
|
1386
1405
|
P(e);
|
|
1387
1406
|
},
|
|
1388
1407
|
pop: (n = 1) => {
|
|
@@ -1421,7 +1440,7 @@ var en = /*#__PURE__*/ Xt(Zt, [["render", $t]]), J = /* @__PURE__ */ l({
|
|
|
1421
1440
|
abortEarly: i.abortEarly
|
|
1422
1441
|
}), o.value;
|
|
1423
1442
|
} catch (e) {
|
|
1424
|
-
let t =
|
|
1443
|
+
let t = yn(e);
|
|
1425
1444
|
M(t);
|
|
1426
1445
|
return;
|
|
1427
1446
|
} finally {
|
|
@@ -1435,7 +1454,7 @@ var en = /*#__PURE__*/ Xt(Zt, [["render", $t]]), J = /* @__PURE__ */ l({
|
|
|
1435
1454
|
abortEarly: i.abortEarly
|
|
1436
1455
|
});
|
|
1437
1456
|
} catch (e) {
|
|
1438
|
-
let t =
|
|
1457
|
+
let t = yn(e);
|
|
1439
1458
|
M(t);
|
|
1440
1459
|
} finally {
|
|
1441
1460
|
_(t, { isValidating: !1 });
|
|
@@ -1473,18 +1492,18 @@ var en = /*#__PURE__*/ Xt(Zt, [["render", $t]]), J = /* @__PURE__ */ l({
|
|
|
1473
1492
|
validateForm: A,
|
|
1474
1493
|
validateField: j
|
|
1475
1494
|
};
|
|
1476
|
-
return
|
|
1477
|
-
},
|
|
1478
|
-
let e = u(
|
|
1495
|
+
return x(Sn, te), te;
|
|
1496
|
+
}, Cn = () => {
|
|
1497
|
+
let e = u(Sn);
|
|
1479
1498
|
if (!e) throw Error("useValidatorContext must be used within a component that has called useValidator");
|
|
1480
1499
|
return e;
|
|
1481
|
-
},
|
|
1500
|
+
}, wn = { class: "vd-field" }, Tn = {
|
|
1482
1501
|
key: 0,
|
|
1483
1502
|
class: "vd-field__message vd-field__message--error"
|
|
1484
|
-
},
|
|
1503
|
+
}, En = {
|
|
1485
1504
|
key: 1,
|
|
1486
1505
|
class: "vd-field__message vd-field__message--information"
|
|
1487
|
-
},
|
|
1506
|
+
}, Dn = /* @__PURE__ */ l({
|
|
1488
1507
|
__name: "VdAddress",
|
|
1489
1508
|
props: /*@__PURE__*/ p({
|
|
1490
1509
|
path: { default: "address" },
|
|
@@ -1495,37 +1514,37 @@ var en = /*#__PURE__*/ Xt(Zt, [["render", $t]]), J = /* @__PURE__ */ l({
|
|
|
1495
1514
|
}),
|
|
1496
1515
|
emits: ["update:resolvedAddress"],
|
|
1497
1516
|
setup(e) {
|
|
1498
|
-
let n = e, o =
|
|
1517
|
+
let n = e, o = A(e, "resolvedAddress"), { path: l } = n, { defineField: u, validateField: f, getFieldMeta: p, getError: m, removeError: g } = Cn(), [_, , v] = u(`${l}.zipCode`), [x, , S] = u(`${l}.houseNumber`), [C, , w] = u(`${l}.houseNumberAddition`), T = async () => {
|
|
1499
1518
|
await f(l), C.value || g(`${l}.houseNumberAddition`);
|
|
1500
1519
|
}, O = (e) => {
|
|
1501
|
-
_.value && x.value ?
|
|
1502
|
-
},
|
|
1503
|
-
return
|
|
1520
|
+
_.value && x.value ? T() : f(e);
|
|
1521
|
+
}, k = () => O(`${l}.zipCode`), j = () => O(`${l}.houseNumber`), M = () => h(() => f(l)), N = p(l), I = t(() => m(l) ?? ""), L = t(() => o.value !== null), ee = t(() => n.additionOptions.length === 0 ? "-" : "Kies een toevoeging");
|
|
1522
|
+
return P([_, x], () => {
|
|
1504
1523
|
C.value &&= "", o.value = null, g(l), g(`${l}.houseNumberAddition`);
|
|
1505
|
-
}),
|
|
1524
|
+
}), P(C, () => {
|
|
1506
1525
|
o.value = null;
|
|
1507
|
-
}),
|
|
1508
|
-
_.value && x.value &&
|
|
1509
|
-
}), (t, n) => (
|
|
1510
|
-
default:
|
|
1526
|
+
}), y(() => {
|
|
1527
|
+
_.value && x.value && T();
|
|
1528
|
+
}), (t, n) => (b(), i("div", wn, [c(tn, null, {
|
|
1529
|
+
default: F(() => [c(J, {
|
|
1511
1530
|
span: "5",
|
|
1512
1531
|
md: "3"
|
|
1513
1532
|
}, {
|
|
1514
|
-
default:
|
|
1515
|
-
modelValue:
|
|
1533
|
+
default: F(() => [c(Ge, {
|
|
1534
|
+
modelValue: D(_),
|
|
1516
1535
|
"onUpdate:modelValue": n[0] ||= (e) => d(_) ? _.value = e : null,
|
|
1517
1536
|
modelModifiers: { trim: !0 },
|
|
1518
1537
|
name: "zipCode",
|
|
1519
1538
|
label: "Postcode",
|
|
1520
1539
|
placeholder: "bv. 1234 AZ",
|
|
1521
|
-
"error-message":
|
|
1540
|
+
"error-message": D(v),
|
|
1522
1541
|
mask: "####@@",
|
|
1523
1542
|
capitalize: "",
|
|
1524
1543
|
autocomplete: "",
|
|
1525
1544
|
required: !1,
|
|
1526
1545
|
verified: L.value,
|
|
1527
|
-
loading:
|
|
1528
|
-
onBlur:
|
|
1546
|
+
loading: D(N).isValidating,
|
|
1547
|
+
onBlur: k
|
|
1529
1548
|
}, null, 8, [
|
|
1530
1549
|
"modelValue",
|
|
1531
1550
|
"error-message",
|
|
@@ -1533,38 +1552,38 @@ var en = /*#__PURE__*/ Xt(Zt, [["render", $t]]), J = /* @__PURE__ */ l({
|
|
|
1533
1552
|
"loading"
|
|
1534
1553
|
])]),
|
|
1535
1554
|
_: 1
|
|
1536
|
-
}), c(
|
|
1555
|
+
}), c(mn, {
|
|
1537
1556
|
span: "7",
|
|
1538
1557
|
md: "3"
|
|
1539
1558
|
}, {
|
|
1540
|
-
default:
|
|
1541
|
-
modelValue:
|
|
1559
|
+
default: F(() => [c(Ge, {
|
|
1560
|
+
modelValue: D(x),
|
|
1542
1561
|
"onUpdate:modelValue": n[1] ||= (e) => d(x) ? x.value = e : null,
|
|
1543
1562
|
modelModifiers: { trim: !0 },
|
|
1544
1563
|
name: "houseNumber",
|
|
1545
1564
|
label: "Huisnummer",
|
|
1546
1565
|
placeholder: "bv. 1",
|
|
1547
1566
|
inputmode: "numeric",
|
|
1548
|
-
"error-message":
|
|
1567
|
+
"error-message": D(S),
|
|
1549
1568
|
autocomplete: "",
|
|
1550
1569
|
required: !1,
|
|
1551
1570
|
verified: L.value,
|
|
1552
|
-
loading:
|
|
1571
|
+
loading: D(N).isValidating,
|
|
1553
1572
|
onBlur: j
|
|
1554
1573
|
}, null, 8, [
|
|
1555
1574
|
"modelValue",
|
|
1556
1575
|
"error-message",
|
|
1557
1576
|
"verified",
|
|
1558
1577
|
"loading"
|
|
1559
|
-
]), c(
|
|
1560
|
-
modelValue:
|
|
1578
|
+
]), c(nt, {
|
|
1579
|
+
modelValue: D(C),
|
|
1561
1580
|
"onUpdate:modelValue": n[2] ||= (e) => d(C) ? C.value = e : null,
|
|
1562
1581
|
name: "houseNumberAddition",
|
|
1563
1582
|
label: "Toevoeging",
|
|
1564
1583
|
placeholder: ee.value,
|
|
1565
1584
|
options: e.additionOptions,
|
|
1566
|
-
"error-message":
|
|
1567
|
-
disabled: e.additionOptions.length === 0 ||
|
|
1585
|
+
"error-message": D(w),
|
|
1586
|
+
disabled: e.additionOptions.length === 0 || D(N).isValidating,
|
|
1568
1587
|
verified: L.value,
|
|
1569
1588
|
required: !1,
|
|
1570
1589
|
onSelect: M
|
|
@@ -1579,64 +1598,59 @@ var en = /*#__PURE__*/ Xt(Zt, [["render", $t]]), J = /* @__PURE__ */ l({
|
|
|
1579
1598
|
_: 1
|
|
1580
1599
|
})]),
|
|
1581
1600
|
_: 1
|
|
1582
|
-
}), I.value ? (
|
|
1601
|
+
}), I.value ? (b(), i("div", Tn, [n[3] ||= a("i", { class: "fas fa-exclamation-circle vd-field__message-icon" }, null, -1), s(" " + E(I.value), 1)])) : o.value ? (b(), i("div", En, [n[4] ||= a("i", { class: "fas fa-info-circle vd-field__message-icon" }, null, -1), s(" " + E(o.value.street) + ", " + E(o.value.city), 1)])) : r("", !0)]));
|
|
1583
1602
|
}
|
|
1584
|
-
}),
|
|
1585
|
-
dataService: new Te(),
|
|
1586
|
-
dataValidationService: new Ee(),
|
|
1587
|
-
homeService: new De(),
|
|
1588
|
-
comparisonService: new we()
|
|
1589
|
-
}), Cn = () => (xn ||= Sn(), xn), wn = (e) => ({
|
|
1603
|
+
}), On = (e) => ({
|
|
1590
1604
|
zipCode: e.ZipCode,
|
|
1591
1605
|
houseNumber: String(e.HouseNumber),
|
|
1592
1606
|
houseNumberAddition: e.HouseNumberAddition,
|
|
1593
1607
|
city: e.Place,
|
|
1594
1608
|
street: e.Street
|
|
1595
|
-
}),
|
|
1609
|
+
}), kn = /^\d{4}\s?[a-zA-Z]{2}$/, An = /^\d+$/, jn = {
|
|
1596
1610
|
"needs-addition": "Een toevoeging is verplicht",
|
|
1597
1611
|
"not-found": "Postcode en huisnummer combinatie onbekend.",
|
|
1598
1612
|
error: "Adres ophalen is mislukt. Probeer het opnieuw."
|
|
1599
1613
|
};
|
|
1600
|
-
function
|
|
1614
|
+
function Mn(e) {
|
|
1601
1615
|
return e.replace(/\s/g, "").toUpperCase();
|
|
1602
1616
|
}
|
|
1603
|
-
var
|
|
1604
|
-
function
|
|
1605
|
-
return e ===
|
|
1617
|
+
var Nn = "NO_ADDITION";
|
|
1618
|
+
function Pn(e) {
|
|
1619
|
+
return e === Nn ? "" : e.replace("-", "");
|
|
1606
1620
|
}
|
|
1607
|
-
var
|
|
1608
|
-
if (
|
|
1621
|
+
var Fn = (e) => e instanceof Error, In = (e) => {
|
|
1622
|
+
if (Fn(e)) throw e;
|
|
1609
1623
|
return null;
|
|
1610
|
-
},
|
|
1624
|
+
}, Ln = (e, t, n) => on().dataValidationService.validateZipCode(e, t, n).then((e) => e).catch(In), Rn = (e, t) => on().homeService.getAddition({
|
|
1611
1625
|
zipcode: e,
|
|
1612
1626
|
houseNumber: t
|
|
1613
|
-
}).then((e) => e ?? []).catch(
|
|
1614
|
-
let [n, r] = await Promise.all([
|
|
1627
|
+
}).then((e) => e ?? []).catch(In), zn = async (e, t) => {
|
|
1628
|
+
let [n, r] = await Promise.all([Ln(e, t), Rn(e, t)]);
|
|
1615
1629
|
return !n && !r?.length ? null : {
|
|
1616
1630
|
validWithoutAddition: !!n,
|
|
1617
1631
|
template: n,
|
|
1618
1632
|
additions: r ?? []
|
|
1619
1633
|
};
|
|
1620
|
-
},
|
|
1634
|
+
}, Bn = (e) => {
|
|
1621
1635
|
let t = e.additions.map((e) => ({
|
|
1622
1636
|
title: e,
|
|
1623
|
-
value:
|
|
1637
|
+
value: Pn(e)
|
|
1624
1638
|
}));
|
|
1625
1639
|
return e.validWithoutAddition && t.length ? [{
|
|
1626
1640
|
title: "Geen toevoeging",
|
|
1627
|
-
value:
|
|
1641
|
+
value: Nn
|
|
1628
1642
|
}, ...t] : t;
|
|
1629
|
-
},
|
|
1643
|
+
}, Vn = (e) => ({
|
|
1630
1644
|
zipCode: e?.zipCode ?? "",
|
|
1631
1645
|
houseNumber: e?.houseNumber ?? "",
|
|
1632
|
-
houseNumberAddition: e ? e.houseNumberAddition ||
|
|
1633
|
-
}),
|
|
1634
|
-
let t = e?.path ?? "address", n =
|
|
1635
|
-
let t =
|
|
1646
|
+
houseNumberAddition: e ? e.houseNumberAddition || Nn : ""
|
|
1647
|
+
}), Hn = (e) => {
|
|
1648
|
+
let t = e?.path ?? "address", n = Vn(e?.initial), r = S(null), i = S([]), a = 0, o = null, s = async (e) => {
|
|
1649
|
+
let t = Mn(e.zipCode), n = e.houseNumber.trim(), r = Pn(e.houseNumberAddition), i = `${t}:${n}`;
|
|
1636
1650
|
try {
|
|
1637
1651
|
let a = o?.key === i ? o : null;
|
|
1638
1652
|
if (!a) {
|
|
1639
|
-
let e = await
|
|
1653
|
+
let e = await zn(t, n);
|
|
1640
1654
|
if (!e) return {
|
|
1641
1655
|
status: "not-found",
|
|
1642
1656
|
options: [],
|
|
@@ -1647,14 +1661,14 @@ var jn = (e) => e instanceof Error, Mn = (e) => {
|
|
|
1647
1661
|
verdict: e
|
|
1648
1662
|
};
|
|
1649
1663
|
}
|
|
1650
|
-
let s =
|
|
1664
|
+
let s = Bn(a.verdict);
|
|
1651
1665
|
if (a.verdict.additions.length && !e.houseNumberAddition) return {
|
|
1652
1666
|
status: "needs-addition",
|
|
1653
1667
|
options: s,
|
|
1654
1668
|
address: null
|
|
1655
1669
|
};
|
|
1656
1670
|
if (!a.verdict.template) {
|
|
1657
|
-
let e = await
|
|
1671
|
+
let e = await Ln(t, n, r);
|
|
1658
1672
|
if (!e) return {
|
|
1659
1673
|
status: "not-found",
|
|
1660
1674
|
options: [],
|
|
@@ -1679,7 +1693,7 @@ var jn = (e) => e instanceof Error, Mn = (e) => {
|
|
|
1679
1693
|
}
|
|
1680
1694
|
}, c = async (e) => {
|
|
1681
1695
|
let t = ++a, n = await s(e), o = t !== a;
|
|
1682
|
-
return o || (i.value = n.options, r.value = n.address ?
|
|
1696
|
+
return o || (i.value = n.options, r.value = n.address ? On(n.address) : null), {
|
|
1683
1697
|
...n,
|
|
1684
1698
|
stale: o
|
|
1685
1699
|
};
|
|
@@ -1687,23 +1701,23 @@ var jn = (e) => e instanceof Error, Mn = (e) => {
|
|
|
1687
1701
|
return {
|
|
1688
1702
|
path: t,
|
|
1689
1703
|
addressSchema: R({
|
|
1690
|
-
zipCode: z().required("Vul je postcode in").matches(
|
|
1691
|
-
houseNumber: z().required("Huisnummer is verplicht").matches(
|
|
1704
|
+
zipCode: z().required("Vul je postcode in").matches(kn, "Postcode is incorrect"),
|
|
1705
|
+
houseNumber: z().required("Huisnummer is verplicht").matches(An, "Huisnummer is incorrect"),
|
|
1692
1706
|
houseNumberAddition: z().defined()
|
|
1693
1707
|
}).test("address-lookup", async (e, t) => {
|
|
1694
|
-
let n =
|
|
1695
|
-
if (!
|
|
1708
|
+
let n = Mn(e.zipCode ?? ""), r = String(e.houseNumber ?? "").trim();
|
|
1709
|
+
if (!kn.test(n) || !An.test(r)) return !0;
|
|
1696
1710
|
let { status: i, stale: a } = await c(e);
|
|
1697
1711
|
return a || i === "resolved" ? !0 : i === "needs-addition" ? t.createError({
|
|
1698
1712
|
path: `${t.path}.houseNumberAddition`,
|
|
1699
|
-
message:
|
|
1700
|
-
}) : t.createError({ message:
|
|
1713
|
+
message: jn[i]
|
|
1714
|
+
}) : t.createError({ message: jn[i] });
|
|
1701
1715
|
}),
|
|
1702
1716
|
draft: n,
|
|
1703
1717
|
resolvedAddress: r,
|
|
1704
1718
|
additionOptions: i
|
|
1705
1719
|
};
|
|
1706
|
-
},
|
|
1720
|
+
}, Un = {
|
|
1707
1721
|
[V.Car]: {
|
|
1708
1722
|
apiTypes: ["Car", "Van"],
|
|
1709
1723
|
dutch: "auto",
|
|
@@ -1724,14 +1738,14 @@ var jn = (e) => e instanceof Error, Mn = (e) => {
|
|
|
1724
1738
|
dutch: "caravan",
|
|
1725
1739
|
icon: "fa-caravan-alt"
|
|
1726
1740
|
}
|
|
1727
|
-
},
|
|
1741
|
+
}, Wn = Object.fromEntries(Object.values(Un).flatMap(({ apiTypes: e, icon: t }) => e.map((e) => [e.toLowerCase(), t]))), Gn = {
|
|
1728
1742
|
brommobiel: "fa-car-side",
|
|
1729
1743
|
"speed pedelec": "fa-bicycle"
|
|
1730
|
-
},
|
|
1744
|
+
}, Kn = (e) => !!e?.Brand && !!e.Model && !!e.ManufacturingYear, qn = (e) => {
|
|
1731
1745
|
if (!e) return "";
|
|
1732
1746
|
let t = String(e.Model ?? "").toLowerCase().trim(), n = String(e.VehicleType ?? "").toLowerCase();
|
|
1733
|
-
return
|
|
1734
|
-
},
|
|
1747
|
+
return Gn[t] ?? Wn[n] ?? "";
|
|
1748
|
+
}, Jn = (e) => e ? `${e.Brand} ${e.Model} (${e.ManufacturingYear})` : "", Yn = [
|
|
1735
1749
|
"@@-##-@@",
|
|
1736
1750
|
"##-##-@@",
|
|
1737
1751
|
"##-@@-@@",
|
|
@@ -1749,22 +1763,22 @@ var jn = (e) => e instanceof Error, Mn = (e) => {
|
|
|
1749
1763
|
];
|
|
1750
1764
|
//#endregion
|
|
1751
1765
|
//#region src/components/fields/licensePlate/licensePlate.util.ts
|
|
1752
|
-
function
|
|
1766
|
+
function Xn(e) {
|
|
1753
1767
|
return e.replace(/[\s\\-]/g, "");
|
|
1754
1768
|
}
|
|
1755
|
-
var
|
|
1756
|
-
function
|
|
1757
|
-
let t =
|
|
1758
|
-
if (t.length < 6) return
|
|
1759
|
-
let n = [...t].map((e) => /[0-9]/.test(e) ? "#" : "@").join(""), r =
|
|
1760
|
-
return r === -1 ?
|
|
1769
|
+
var Zn = "*".repeat(6), Qn = Yn.map((e) => e.replace(/-/g, ""));
|
|
1770
|
+
function $n(e) {
|
|
1771
|
+
let t = Xn(e).slice(0, 6);
|
|
1772
|
+
if (t.length < 6) return Zn;
|
|
1773
|
+
let n = [...t].map((e) => /[0-9]/.test(e) ? "#" : "@").join(""), r = Qn.indexOf(n);
|
|
1774
|
+
return r === -1 ? Zn : Yn[r];
|
|
1761
1775
|
}
|
|
1762
1776
|
//#endregion
|
|
1763
1777
|
//#region src/components/fields/licensePlate/VdLicensePlate.vue?vue&type=script&setup=true&lang.ts
|
|
1764
|
-
var
|
|
1778
|
+
var er = {
|
|
1765
1779
|
key: 0,
|
|
1766
1780
|
class: "vd-input-license-plate__loading-information"
|
|
1767
|
-
},
|
|
1781
|
+
}, tr = ["src"], nr = /* @__PURE__ */ l({
|
|
1768
1782
|
inheritAttrs: !1,
|
|
1769
1783
|
__name: "VdLicensePlate",
|
|
1770
1784
|
props: /*@__PURE__*/ p({
|
|
@@ -1787,17 +1801,17 @@ var Xn = {
|
|
|
1787
1801
|
}),
|
|
1788
1802
|
emits: /*@__PURE__*/ p(["input"], ["update:modelValue", "update:vehicleData"]),
|
|
1789
1803
|
setup(c, { emit: l }) {
|
|
1790
|
-
let u = { mask:
|
|
1804
|
+
let u = { mask: $n }, d = c, f = A(c, "modelValue"), p = A(c, "vehicleData"), h = l, g = O(), _ = j(), v = t({
|
|
1791
1805
|
get: () => f.value ?? "",
|
|
1792
1806
|
set: (e) => {
|
|
1793
1807
|
f.value = e, h("input", e);
|
|
1794
1808
|
}
|
|
1795
|
-
}),
|
|
1796
|
-
|
|
1797
|
-
p.value && !
|
|
1809
|
+
}), y = (e, t) => Xn(e).toUpperCase() === Xn(t).toUpperCase();
|
|
1810
|
+
P(f, (e) => {
|
|
1811
|
+
p.value && !y(e, p.value.LicensePlate) && (p.value = null);
|
|
1798
1812
|
});
|
|
1799
|
-
let x = t(() =>
|
|
1800
|
-
return (t, l) => (
|
|
1813
|
+
let x = t(() => Kn(p.value) ? p.value : null), S = t(() => d.loading || !!x.value && !d.errorMessage), C = t(() => qn(x.value)), T = t(() => Jn(x.value));
|
|
1814
|
+
return (t, l) => (b(), n(Ge, m(D(g), {
|
|
1801
1815
|
modelValue: v.value,
|
|
1802
1816
|
"onUpdate:modelValue": l[0] ||= (e) => v.value = e,
|
|
1803
1817
|
capitalize: "",
|
|
@@ -1810,24 +1824,24 @@ var Xn = {
|
|
|
1810
1824
|
mask: u,
|
|
1811
1825
|
class: "vd-input-license-plate"
|
|
1812
1826
|
}), o({ _: 2 }, [
|
|
1813
|
-
|
|
1827
|
+
D(_).label ? {
|
|
1814
1828
|
name: "label",
|
|
1815
|
-
fn:
|
|
1829
|
+
fn: F(() => [w(t.$slots, "label")]),
|
|
1816
1830
|
key: "0"
|
|
1817
1831
|
} : void 0,
|
|
1818
|
-
|
|
1832
|
+
D(_).popover ? {
|
|
1819
1833
|
name: "popover",
|
|
1820
|
-
fn:
|
|
1834
|
+
fn: F(() => [w(t.$slots, "popover")]),
|
|
1821
1835
|
key: "1"
|
|
1822
1836
|
} : void 0,
|
|
1823
1837
|
S.value ? {
|
|
1824
1838
|
name: "information",
|
|
1825
|
-
fn:
|
|
1839
|
+
fn: F(() => [c.loading ? (b(), i("div", er, [...l[1] ||= [a("i", { class: "fas fa-circle-notch vd-input-license-plate__loading-icon" }, null, -1), s(" Voertuig gegevens ophalen... ", -1)]])) : x.value ? (b(), i(e, { key: 1 }, [C.value ? (b(), i("img", {
|
|
1826
1840
|
key: 0,
|
|
1827
|
-
src: `https://d12bmfj3oyxu0t.cloudfront.net/vergelijkdirect/icons/${
|
|
1841
|
+
src: `https://d12bmfj3oyxu0t.cloudfront.net/vergelijkdirect/icons/${C.value}.svg`,
|
|
1828
1842
|
class: "vd-field__svg-message-icon",
|
|
1829
1843
|
alt: "vehicle-icon"
|
|
1830
|
-
}, null, 8,
|
|
1844
|
+
}, null, 8, tr)) : r("", !0), s(" " + E(T.value), 1)], 64)) : r("", !0)]),
|
|
1831
1845
|
key: "2"
|
|
1832
1846
|
} : void 0
|
|
1833
1847
|
]), 1040, [
|
|
@@ -1839,56 +1853,56 @@ var Xn = {
|
|
|
1839
1853
|
"loading"
|
|
1840
1854
|
]));
|
|
1841
1855
|
}
|
|
1842
|
-
}),
|
|
1843
|
-
"wrong-type": (e) => `Het ingevoerde kenteken is geen ${
|
|
1856
|
+
}), rr = /* @__PURE__ */ new Map(), ir = (e, t) => `${t}:${e}`, ar = {
|
|
1857
|
+
"wrong-type": (e) => `Het ingevoerde kenteken is geen ${Un[e].dutch}`,
|
|
1844
1858
|
unknown: () => "Voertuig onbekend - Voer ander kenteken in of neem contact op",
|
|
1845
1859
|
"not-found": () => "Kenteken onbekend",
|
|
1846
1860
|
error: () => "Kenteken is incorrect"
|
|
1847
|
-
},
|
|
1861
|
+
}, or = async (e, t) => {
|
|
1848
1862
|
try {
|
|
1849
|
-
let n = await
|
|
1863
|
+
let n = await on().dataService.findVehicle(e, t);
|
|
1850
1864
|
if (Array.isArray(n) || !n || !Object.keys(n).length) return { status: "not-found" };
|
|
1851
1865
|
let r = n;
|
|
1852
|
-
return r.VehicleType ?
|
|
1866
|
+
return r.VehicleType ? Un[t].apiTypes.includes(r.VehicleType) ? {
|
|
1853
1867
|
status: "found",
|
|
1854
1868
|
data: r
|
|
1855
1869
|
} : { status: "wrong-type" } : { status: "unknown" };
|
|
1856
1870
|
} catch (e) {
|
|
1857
1871
|
return console.error("Error on ITC findVehicle", e), { status: "error" };
|
|
1858
1872
|
}
|
|
1859
|
-
},
|
|
1860
|
-
let n =
|
|
1861
|
-
return r || (r =
|
|
1862
|
-
e === "error" &&
|
|
1863
|
-
}, () =>
|
|
1864
|
-
},
|
|
1865
|
-
let n =
|
|
1866
|
-
t.initialData?.LicensePlate &&
|
|
1873
|
+
}, sr = (e, t) => {
|
|
1874
|
+
let n = ir(e, t), r = rr.get(n);
|
|
1875
|
+
return r || (r = or(e, t), rr.set(n, r), r.then(({ status: e }) => {
|
|
1876
|
+
e === "error" && rr.delete(n);
|
|
1877
|
+
}, () => rr.delete(n))), r;
|
|
1878
|
+
}, cr = (e, t = {}) => {
|
|
1879
|
+
let n = S(t.initialData ?? null), r = 0;
|
|
1880
|
+
t.initialData?.LicensePlate && rr.set(ir(Xn(t.initialData.LicensePlate), e), Promise.resolve({
|
|
1867
1881
|
status: "found",
|
|
1868
1882
|
data: t.initialData
|
|
1869
1883
|
}));
|
|
1870
1884
|
let i = async (t) => {
|
|
1871
|
-
let i =
|
|
1885
|
+
let i = Xn(t), a = ++r, o = await sr(i, e);
|
|
1872
1886
|
return a === r && (n.value = o.status === "found" ? o.data : null), o;
|
|
1873
1887
|
};
|
|
1874
1888
|
return {
|
|
1875
1889
|
vehicleData: n,
|
|
1876
1890
|
licensePlateSchema: z().required("Dit veld is verplicht").test("license-plate-lookup", async (t, n) => {
|
|
1877
1891
|
if (!t) return !0;
|
|
1878
|
-
let r =
|
|
1892
|
+
let r = Xn(t);
|
|
1879
1893
|
if (r.length < 6) return n.createError({ message: "Kenteken is incorrect" });
|
|
1880
1894
|
let { status: a } = await i(r);
|
|
1881
|
-
return a === "found" || n.createError({ message:
|
|
1895
|
+
return a === "found" || n.createError({ message: ar[a](e) });
|
|
1882
1896
|
})
|
|
1883
1897
|
};
|
|
1884
|
-
},
|
|
1898
|
+
}, lr = (e) => /^\d{8}$/.test(e), ur = (e) => lr(e) ? {
|
|
1885
1899
|
companyName: "",
|
|
1886
1900
|
kvkNumber: e
|
|
1887
1901
|
} : {
|
|
1888
1902
|
companyName: e,
|
|
1889
1903
|
kvkNumber: ""
|
|
1890
|
-
},
|
|
1891
|
-
let t =
|
|
1904
|
+
}, dr = "bezoekadres", fr = (e) => e._embedded?.hoofdvestiging?.adressen?.find((e) => e.type === dr), pr = (e) => {
|
|
1905
|
+
let t = fr(e), { huisnummer: n = 0, huisletter: r = "", huisnummerToevoeging: i = "", toevoegingAdres: a = "", plaats: o = "", postcode: s = "", straatnaam: c = "", volledigAdres: l = "" } = t ?? {};
|
|
1892
1906
|
return {
|
|
1893
1907
|
houseNumber: n,
|
|
1894
1908
|
houseNumberAddition: r || i || a,
|
|
@@ -1898,7 +1912,7 @@ var Xn = {
|
|
|
1898
1912
|
fullAddress: l,
|
|
1899
1913
|
hasVisitingAddress: !!t
|
|
1900
1914
|
};
|
|
1901
|
-
},
|
|
1915
|
+
}, mr = (e = []) => {
|
|
1902
1916
|
let [t, n, r] = e.reduce(([e, t, n], r) => {
|
|
1903
1917
|
let i = {
|
|
1904
1918
|
isMainActivity: r.indHoofdactiviteit,
|
|
@@ -1921,20 +1935,20 @@ var Xn = {
|
|
|
1921
1935
|
firstSBIs: t,
|
|
1922
1936
|
secondSBIs: n
|
|
1923
1937
|
};
|
|
1924
|
-
},
|
|
1938
|
+
}, hr = (e) => ({
|
|
1925
1939
|
kvkNumber: e.kvkNummer,
|
|
1926
1940
|
name: e.naam,
|
|
1927
1941
|
city: e.adres?.binnenlandsAdres?.plaats ?? "",
|
|
1928
1942
|
street: e.adres?.binnenlandsAdres?.straatnaam ?? ""
|
|
1929
|
-
}),
|
|
1943
|
+
}), gr = (e) => ({
|
|
1930
1944
|
name: e.naam,
|
|
1931
1945
|
kvkNumber: e.kvkNummer,
|
|
1932
1946
|
industry: e.sbiIndustryId,
|
|
1933
1947
|
numberOfEmployees: e.totaalWerkzamePersonen,
|
|
1934
1948
|
legalForm: e._embedded?.eigenaar?.rechtsvorm ?? "",
|
|
1935
|
-
...
|
|
1936
|
-
...
|
|
1937
|
-
}),
|
|
1949
|
+
...pr(e),
|
|
1950
|
+
...mr(e.sbiActiviteiten)
|
|
1951
|
+
}), _r = 30, vr = ["hoofdvestiging", "nevenvestiging"], yr = "IPD5200", br = (e) => {
|
|
1938
1952
|
let t = e, n = t?.response?.data?.fout;
|
|
1939
1953
|
if (Array.isArray(n)) return n;
|
|
1940
1954
|
if (Array.isArray(t?.fout)) return t.fout;
|
|
@@ -1942,24 +1956,24 @@ var Xn = {
|
|
|
1942
1956
|
let e = JSON.parse(t.message);
|
|
1943
1957
|
if (Array.isArray(e?.fout)) return e.fout;
|
|
1944
1958
|
} catch {}
|
|
1945
|
-
},
|
|
1959
|
+
}, xr = (e) => br(e)?.some((e) => e.code === yr) ?? !1, Sr = () => ({
|
|
1946
1960
|
search: async (e) => {
|
|
1947
1961
|
try {
|
|
1948
|
-
return ((await
|
|
1962
|
+
return ((await on().dataService.searchBusinessInfoV2(ur(e), 1, _r))?.resultaten ?? []).filter((e) => vr.includes(e.type)).map(hr);
|
|
1949
1963
|
} catch (e) {
|
|
1950
1964
|
let t = await e;
|
|
1951
|
-
if (
|
|
1965
|
+
if (xr(t)) return [];
|
|
1952
1966
|
throw t;
|
|
1953
1967
|
}
|
|
1954
1968
|
},
|
|
1955
1969
|
getDetails: async (e) => {
|
|
1956
|
-
let t = await
|
|
1970
|
+
let t = await on().dataService.getProfileInfo(e);
|
|
1957
1971
|
return {
|
|
1958
|
-
presenter:
|
|
1972
|
+
presenter: gr(t),
|
|
1959
1973
|
raw: t
|
|
1960
1974
|
};
|
|
1961
1975
|
}
|
|
1962
|
-
}),
|
|
1976
|
+
}), Cr = { class: "vd-combobox__multiline" }, wr = { class: "vd-combobox__title" }, Tr = { class: "vd-combobox__subtext" }, Er = { class: "vd-combobox__subtext" }, Dr = 400, Or = 3, kr = "Helaas, we hebben geen resultaten gevonden. Probeer te zoeken op de exacte naam waarmee je bedrijf is geregistreerd bij de Kamer van Koophandel, of gebruik je volledige KvK-nummer.", Ar = "Typ je bedrijfsnaam of KvK-nummer", jr = "Aan het zoeken…", Mr = "Er ging iets mis bij het ophalen van de gegevens. Probeer het later opnieuw.", Nr = /* @__PURE__ */ l({
|
|
1963
1977
|
inheritAttrs: !1,
|
|
1964
1978
|
__name: "VdCompanySelect",
|
|
1965
1979
|
props: /*@__PURE__*/ p({
|
|
@@ -1978,7 +1992,7 @@ var Xn = {
|
|
|
1978
1992
|
"raw"
|
|
1979
1993
|
], ["update:modelValue"]),
|
|
1980
1994
|
setup(e, { emit: r }) {
|
|
1981
|
-
let i = r, s =
|
|
1995
|
+
let i = r, s = O(), c = j(), l = A(e, "modelValue"), { search: u, getDetails: d } = Sr(), f = S(), p = S(), h = S(), g = S(""), _ = ge(g, Dr, { maxWait: 2e3 }), v = S(!0), { state: y, isLoading: x, execute: C } = _e(async (e) => {
|
|
1982
1996
|
try {
|
|
1983
1997
|
return {
|
|
1984
1998
|
results: await u(e),
|
|
@@ -1996,28 +2010,28 @@ var Xn = {
|
|
|
1996
2010
|
}, {
|
|
1997
2011
|
immediate: !1,
|
|
1998
2012
|
resetOnExecute: !1
|
|
1999
|
-
}), { isLoading:
|
|
2013
|
+
}), { isLoading: T, execute: k } = _e(async (e) => {
|
|
2000
2014
|
try {
|
|
2001
2015
|
let { presenter: t, raw: n } = await d(e);
|
|
2002
2016
|
return l.value = t, i("raw", n), i("error", null), t;
|
|
2003
2017
|
} catch (e) {
|
|
2004
|
-
throw l.value = null, i("raw", null), h.value = void 0, f.value = void 0, i("error",
|
|
2018
|
+
throw l.value = null, i("raw", null), h.value = void 0, f.value = void 0, i("error", Mr), e;
|
|
2005
2019
|
}
|
|
2006
2020
|
}, null, {
|
|
2007
2021
|
immediate: !1,
|
|
2008
2022
|
resetOnExecute: !0
|
|
2009
|
-
}), M = t(() => g.value.length >=
|
|
2023
|
+
}), M = t(() => g.value.length >= Or), N = t(() => M.value ? x.value || g.value !== _.value ? "searching" : y.value.failed ? "error" : y.value.results.length ? "idle" : "no-results" : "idle"), I = t(() => N.value === "searching" ? [] : M.value ? y.value.results : v.value && h.value ? [h.value] : []), L = t(() => N.value === "searching" || T.value), ee = t(() => !!l.value && !L.value), te = t(() => {
|
|
2010
2024
|
let e = l.value;
|
|
2011
2025
|
return !e || L.value ? "" : e.fullAddress ? `Kvk: ${e.kvkNumber} ${e.fullAddress}` : `Kvk: ${e.kvkNumber}`;
|
|
2012
2026
|
}), ne = t(() => {
|
|
2013
|
-
switch (
|
|
2014
|
-
case "searching": return
|
|
2015
|
-
case "error": return
|
|
2016
|
-
case "no-results": return
|
|
2017
|
-
default: return
|
|
2027
|
+
switch (N.value) {
|
|
2028
|
+
case "searching": return jr;
|
|
2029
|
+
case "error": return Mr;
|
|
2030
|
+
case "no-results": return kr;
|
|
2031
|
+
default: return Ar;
|
|
2018
2032
|
}
|
|
2019
2033
|
}), re = (e) => {
|
|
2020
|
-
h.value = e, v.value = !0, e.kvkNumber === l.value?.kvkNumber ? i("error", null) :
|
|
2034
|
+
h.value = e, v.value = !0, e.kvkNumber === l.value?.kvkNumber ? i("error", null) : k(0, e.kvkNumber);
|
|
2021
2035
|
}, ie = (e) => {
|
|
2022
2036
|
i("blur", e);
|
|
2023
2037
|
}, ae = (e) => {
|
|
@@ -2029,13 +2043,13 @@ var Xn = {
|
|
|
2029
2043
|
street: e.streetName,
|
|
2030
2044
|
fullAddress: e.fullAddress
|
|
2031
2045
|
});
|
|
2032
|
-
return
|
|
2046
|
+
return P(p, (e) => {
|
|
2033
2047
|
e || (g.value = "", v.value = !0);
|
|
2034
|
-
}),
|
|
2035
|
-
e && e.length >=
|
|
2036
|
-
}),
|
|
2048
|
+
}), P(_, (e) => {
|
|
2049
|
+
e && e.length >= Or && C(0, e);
|
|
2050
|
+
}), P(l, (e) => {
|
|
2037
2051
|
f.value = e ? se(e) : void 0, v.value = !0, e || (h.value = void 0, i("raw", null));
|
|
2038
|
-
}, { immediate: !0 }), (t, r) => (
|
|
2052
|
+
}, { immediate: !0 }), (t, r) => (b(), n(Et, m(D(s), {
|
|
2039
2053
|
modelValue: f.value,
|
|
2040
2054
|
"onUpdate:modelValue": r[0] ||= (e) => f.value = e,
|
|
2041
2055
|
open: p.value,
|
|
@@ -2060,19 +2074,19 @@ var Xn = {
|
|
|
2060
2074
|
onBlur: ie,
|
|
2061
2075
|
onSearch: ae
|
|
2062
2076
|
}), o({
|
|
2063
|
-
item:
|
|
2064
|
-
a("div",
|
|
2065
|
-
a("span",
|
|
2066
|
-
a("span",
|
|
2077
|
+
item: F(({ option: e }) => [a("div", Cr, [
|
|
2078
|
+
a("div", wr, E(e.name), 1),
|
|
2079
|
+
a("span", Tr, "Kvk: " + E(e.kvkNumber), 1),
|
|
2080
|
+
a("span", Er, E(e.city) + ", " + E(e.street), 1)
|
|
2067
2081
|
])]),
|
|
2068
2082
|
_: 2
|
|
2069
|
-
}, [
|
|
2083
|
+
}, [D(c).popover ? {
|
|
2070
2084
|
name: "popover",
|
|
2071
|
-
fn:
|
|
2085
|
+
fn: F(() => [w(t.$slots, "popover")]),
|
|
2072
2086
|
key: "0"
|
|
2073
|
-
} : void 0,
|
|
2087
|
+
} : void 0, D(c).information ? {
|
|
2074
2088
|
name: "information",
|
|
2075
|
-
fn:
|
|
2089
|
+
fn: F(() => [w(t.$slots, "information")]),
|
|
2076
2090
|
key: "1"
|
|
2077
2091
|
} : void 0]), 1040, [
|
|
2078
2092
|
"modelValue",
|
|
@@ -2089,30 +2103,30 @@ var Xn = {
|
|
|
2089
2103
|
"info-message"
|
|
2090
2104
|
]));
|
|
2091
2105
|
}
|
|
2092
|
-
}),
|
|
2106
|
+
}), Pr = (e = "Bedrijfsnaam of KVK-nummer is verplicht") => Oe().nullable().required(e).test("has-kvk-number", e, (e) => !!e?.kvkNumber), Fr = {
|
|
2093
2107
|
min: 18,
|
|
2094
2108
|
max: 99
|
|
2095
|
-
},
|
|
2109
|
+
}, Ir = "DD-MM-YYYY", Lr = [
|
|
2096
2110
|
H.SingleWithoutChildren,
|
|
2097
2111
|
H.FamilyWithoutChildren,
|
|
2098
2112
|
H.SingleWithChildren,
|
|
2099
2113
|
H.FamilyWithChildren
|
|
2100
|
-
],
|
|
2114
|
+
], Rr = [U.Yes, U.No];
|
|
2101
2115
|
//#endregion
|
|
2102
2116
|
//#region src/utils/date.util.ts
|
|
2103
|
-
|
|
2104
|
-
function
|
|
2105
|
-
return
|
|
2117
|
+
Ae.extend(je);
|
|
2118
|
+
function zr() {
|
|
2119
|
+
return Ae().startOf("day");
|
|
2106
2120
|
}
|
|
2107
|
-
function
|
|
2108
|
-
return
|
|
2121
|
+
function Br() {
|
|
2122
|
+
return zr().year();
|
|
2109
2123
|
}
|
|
2110
|
-
function
|
|
2111
|
-
let n =
|
|
2124
|
+
function Vr(e, t) {
|
|
2125
|
+
let n = Ae(e ?? "", t, !0);
|
|
2112
2126
|
return n.isValid() ? n.startOf("day") : null;
|
|
2113
2127
|
}
|
|
2114
|
-
function
|
|
2115
|
-
let n =
|
|
2128
|
+
function Hr(e, t) {
|
|
2129
|
+
let n = zr();
|
|
2116
2130
|
return {
|
|
2117
2131
|
today: n,
|
|
2118
2132
|
earliest: n.subtract(t.value + 1, t.unit).add(1, "day"),
|
|
@@ -2121,28 +2135,28 @@ function Rr(e, t) {
|
|
|
2121
2135
|
}
|
|
2122
2136
|
//#endregion
|
|
2123
2137
|
//#region src/utils/familyComposition.util.ts
|
|
2124
|
-
var
|
|
2125
|
-
function
|
|
2126
|
-
return
|
|
2138
|
+
var Ur = [H.FamilyWithChildren, H.FamilyWithoutChildren];
|
|
2139
|
+
function Wr(e) {
|
|
2140
|
+
return Ur.includes(e);
|
|
2127
2141
|
}
|
|
2128
2142
|
//#endregion
|
|
2129
2143
|
//#region src/utils/url.util.ts
|
|
2130
|
-
var
|
|
2144
|
+
var Gr = (e, t) => {
|
|
2131
2145
|
let [n, r = ""] = e.split("?"), i = new URLSearchParams(r);
|
|
2132
2146
|
return Object.entries(t).forEach(([e, t]) => i.set(e, t)), `${n}?${i.toString()}`;
|
|
2133
|
-
},
|
|
2147
|
+
}, Kr = (e, t) => {
|
|
2134
2148
|
let n = e.indexOf("#");
|
|
2135
|
-
return n === -1 ?
|
|
2149
|
+
return n === -1 ? Gr(e, t) : `${e.slice(0, n + 1)}${Gr(e.slice(n + 1), t)}`;
|
|
2136
2150
|
};
|
|
2137
2151
|
//#endregion
|
|
2138
2152
|
//#region src/schemas/birthdateRange.ts
|
|
2139
|
-
function
|
|
2153
|
+
function qr(e, t, n = "ageRange") {
|
|
2140
2154
|
return {
|
|
2141
2155
|
name: n,
|
|
2142
2156
|
test(n, r) {
|
|
2143
|
-
let i =
|
|
2157
|
+
let i = Vr(n, Ir);
|
|
2144
2158
|
if (!i) return !0;
|
|
2145
|
-
let { today: a, earliest: o, latest: s } =
|
|
2159
|
+
let { today: a, earliest: o, latest: s } = Hr(e.min, e.max), c = {
|
|
2146
2160
|
earliest: o,
|
|
2147
2161
|
latest: s
|
|
2148
2162
|
};
|
|
@@ -2191,11 +2205,11 @@ var Q = {
|
|
|
2191
2205
|
};
|
|
2192
2206
|
//#endregion
|
|
2193
2207
|
//#region src/schemas/birthdate.schema.ts
|
|
2194
|
-
function
|
|
2195
|
-
return
|
|
2208
|
+
function Jr(e) {
|
|
2209
|
+
return Vr(e, Ir) !== null;
|
|
2196
2210
|
}
|
|
2197
|
-
function $(e =
|
|
2198
|
-
return z().required(Q.birthdate.required).test("date_format", Q.birthdate.dateFormat,
|
|
2211
|
+
function $(e = Fr) {
|
|
2212
|
+
return z().required(Q.birthdate.required).test("date_format", Q.birthdate.dateFormat, Jr).test(qr({
|
|
2199
2213
|
min: {
|
|
2200
2214
|
value: e.min,
|
|
2201
2215
|
unit: "year"
|
|
@@ -2211,46 +2225,46 @@ function $(e = jr) {
|
|
|
2211
2225
|
}
|
|
2212
2226
|
//#endregion
|
|
2213
2227
|
//#region src/schemas/rules.ts
|
|
2214
|
-
function
|
|
2228
|
+
function Yr(e, t) {
|
|
2215
2229
|
return z().required(t).oneOf(e, t);
|
|
2216
2230
|
}
|
|
2217
|
-
function
|
|
2231
|
+
function Xr(e) {
|
|
2218
2232
|
return z().required(e);
|
|
2219
2233
|
}
|
|
2220
|
-
function
|
|
2221
|
-
return
|
|
2234
|
+
function Zr(e) {
|
|
2235
|
+
return ke().typeError(e).required(e);
|
|
2222
2236
|
}
|
|
2223
2237
|
//#endregion
|
|
2224
2238
|
//#region src/schemas/familyComposition.schema.ts
|
|
2225
|
-
function
|
|
2226
|
-
return
|
|
2239
|
+
function Qr(e = Q.familyComposition.required) {
|
|
2240
|
+
return Yr(Lr, e);
|
|
2227
2241
|
}
|
|
2228
|
-
var
|
|
2242
|
+
var $r = Qr(), ei = Yr(Rr, Q.ownedBuilding.required), ti = [1, 7], ni = [3, 4], ri = {
|
|
2229
2243
|
raceOrMtb: 15e3,
|
|
2230
2244
|
default: 9999
|
|
2231
|
-
},
|
|
2245
|
+
}, ii = {
|
|
2232
2246
|
mask: "N####",
|
|
2233
2247
|
tokens: { N: { pattern: /[1-9]/ } }
|
|
2234
|
-
},
|
|
2248
|
+
}, ai = (e, t) => e.test("max-value", Q.bike.priceMax(t), (e) => {
|
|
2235
2249
|
let n = Number(e);
|
|
2236
2250
|
return Number.isNaN(n) || n <= t;
|
|
2237
|
-
}),
|
|
2238
|
-
kind:
|
|
2239
|
-
condition:
|
|
2251
|
+
}), oi = R({
|
|
2252
|
+
kind: Zr(Q.bike.kindRequired),
|
|
2253
|
+
condition: Zr(Q.bike.conditionRequired),
|
|
2240
2254
|
price: z().required(Q.bike.priceRequired).test("min-value", Q.bike.priceMin, (e) => {
|
|
2241
2255
|
if (!e) return !0;
|
|
2242
2256
|
let t = Number(e);
|
|
2243
2257
|
return Number.isNaN(t) || t > 0;
|
|
2244
2258
|
}).when("kind", {
|
|
2245
|
-
is: (e) =>
|
|
2246
|
-
then: (e) =>
|
|
2247
|
-
otherwise: (e) =>
|
|
2259
|
+
is: (e) => ni.includes(Number(e)),
|
|
2260
|
+
then: (e) => ai(e, ri.raceOrMtb),
|
|
2261
|
+
otherwise: (e) => ai(e, ri.default)
|
|
2248
2262
|
}),
|
|
2249
2263
|
brand: z().when("kind", {
|
|
2250
|
-
is: (e) =>
|
|
2264
|
+
is: (e) => ti.includes(Number(e)),
|
|
2251
2265
|
then: (e) => e.required(Q.bike.brandRequired)
|
|
2252
2266
|
})
|
|
2253
|
-
}),
|
|
2267
|
+
}), si = [
|
|
2254
2268
|
{
|
|
2255
2269
|
value: 4,
|
|
2256
2270
|
title: "ATB / Mountainbike",
|
|
@@ -2317,13 +2331,13 @@ var Yr = Jr(), Xr = Gr(Pr, Q.ownedBuilding.required), Zr = [1, 7], Qr = [3, 4],
|
|
|
2317
2331
|
name: "Vouwfiets",
|
|
2318
2332
|
isEBike: !1
|
|
2319
2333
|
}
|
|
2320
|
-
],
|
|
2334
|
+
], ci = [{
|
|
2321
2335
|
value: 1,
|
|
2322
2336
|
label: "Nieuw"
|
|
2323
2337
|
}, {
|
|
2324
2338
|
value: 0,
|
|
2325
2339
|
label: "Tweedehands"
|
|
2326
|
-
}],
|
|
2340
|
+
}], li = [
|
|
2327
2341
|
{
|
|
2328
2342
|
id: "Ander merk",
|
|
2329
2343
|
name: "Ander merk"
|
|
@@ -3744,7 +3758,7 @@ var Yr = Jr(), Xr = Gr(Pr, Q.ownedBuilding.required), Zr = [1, 7], Qr = [3, 4],
|
|
|
3744
3758
|
id: "Zündapp",
|
|
3745
3759
|
name: "Zündapp"
|
|
3746
3760
|
}
|
|
3747
|
-
],
|
|
3761
|
+
], ui = /* @__PURE__ */ l({
|
|
3748
3762
|
__name: "BikeForm",
|
|
3749
3763
|
props: /*@__PURE__*/ f({
|
|
3750
3764
|
initialData: {},
|
|
@@ -3763,104 +3777,104 @@ var Yr = Jr(), Xr = Gr(Pr, Q.ownedBuilding.required), Zr = [1, 7], Qr = [3, 4],
|
|
|
3763
3777
|
}),
|
|
3764
3778
|
emits: ["submitted"],
|
|
3765
3779
|
setup(e, { emit: i }) {
|
|
3766
|
-
let a = e, o = q(a), s = i, { isSubmitting: l, handleSubmit: u, defineField: f, resetField: p } = Z(
|
|
3780
|
+
let a = e, o = q(a), s = i, { isSubmitting: l, handleSubmit: u, defineField: f, resetField: p } = Z(oi, {
|
|
3767
3781
|
kind: a.initialData?.kind ?? null,
|
|
3768
3782
|
condition: a.initialData?.condition ?? 1,
|
|
3769
3783
|
price: a.initialData?.price ?? "",
|
|
3770
3784
|
brand: a.initialData?.brand ?? ""
|
|
3771
|
-
}), [h, g, _] = f("kind", { validateAt: "change" }), [v,
|
|
3772
|
-
|
|
3773
|
-
|
|
3785
|
+
}), [h, g, _] = f("kind", { validateAt: "change" }), [v, y, x] = f("brand", { validateAt: "change" }), [S, C, w] = f("condition"), [T, E, O] = f("price"), k = t(() => ti.includes(Number(h.value)));
|
|
3786
|
+
P(h, (e) => {
|
|
3787
|
+
ti.includes(Number(e)) || p("brand", { value: "" });
|
|
3774
3788
|
}, { immediate: !0 });
|
|
3775
3789
|
function A() {
|
|
3776
3790
|
u((e) => {
|
|
3777
3791
|
s("submitted", { ...e });
|
|
3778
3792
|
});
|
|
3779
3793
|
}
|
|
3780
|
-
return (t, i) => (
|
|
3781
|
-
"submit-disabled": e.submitDisabled ||
|
|
3794
|
+
return (t, i) => (b(), n(D(Y), m(D(o), {
|
|
3795
|
+
"submit-disabled": e.submitDisabled || D(l),
|
|
3782
3796
|
onSubmit: A
|
|
3783
3797
|
}), {
|
|
3784
|
-
default:
|
|
3785
|
-
c(
|
|
3798
|
+
default: F(() => [
|
|
3799
|
+
c(D(J), {
|
|
3786
3800
|
span: k.value ? 2 : 4,
|
|
3787
3801
|
md: "6"
|
|
3788
3802
|
}, {
|
|
3789
|
-
default:
|
|
3790
|
-
modelValue:
|
|
3803
|
+
default: F(() => [c(D(nt), m({
|
|
3804
|
+
modelValue: D(h),
|
|
3791
3805
|
"onUpdate:modelValue": i[0] ||= (e) => d(h) ? h.value = e : null,
|
|
3792
3806
|
modelModifiers: { number: !0 },
|
|
3793
3807
|
label: "Soort fiets",
|
|
3794
|
-
options:
|
|
3808
|
+
options: D(si),
|
|
3795
3809
|
name: "kind",
|
|
3796
3810
|
required: !1,
|
|
3797
|
-
"error-message":
|
|
3798
|
-
},
|
|
3811
|
+
"error-message": D(_)
|
|
3812
|
+
}, D(g)), null, 16, [
|
|
3799
3813
|
"modelValue",
|
|
3800
3814
|
"options",
|
|
3801
3815
|
"error-message"
|
|
3802
3816
|
])]),
|
|
3803
3817
|
_: 1
|
|
3804
3818
|
}, 8, ["span"]),
|
|
3805
|
-
k.value ? (
|
|
3819
|
+
k.value ? (b(), n(D(J), {
|
|
3806
3820
|
key: 0,
|
|
3807
3821
|
span: "2",
|
|
3808
3822
|
md: "6"
|
|
3809
3823
|
}, {
|
|
3810
|
-
default:
|
|
3811
|
-
modelValue:
|
|
3824
|
+
default: F(() => [c(D(Et), m({
|
|
3825
|
+
modelValue: D(v),
|
|
3812
3826
|
"onUpdate:modelValue": i[1] ||= (e) => d(v) ? v.value = e : null,
|
|
3813
3827
|
label: "Merk fiets",
|
|
3814
3828
|
placeholder: "Typ of kies je merk",
|
|
3815
|
-
options:
|
|
3829
|
+
options: D(li),
|
|
3816
3830
|
"label-key": "name",
|
|
3817
3831
|
"value-key": "id",
|
|
3818
3832
|
name: "brand",
|
|
3819
3833
|
required: !1,
|
|
3820
|
-
"error-message":
|
|
3821
|
-
},
|
|
3834
|
+
"error-message": D(x)
|
|
3835
|
+
}, D(y)), null, 16, [
|
|
3822
3836
|
"modelValue",
|
|
3823
3837
|
"options",
|
|
3824
3838
|
"error-message"
|
|
3825
3839
|
])]),
|
|
3826
3840
|
_: 1
|
|
3827
3841
|
})) : r("", !0),
|
|
3828
|
-
c(
|
|
3842
|
+
c(D(J), {
|
|
3829
3843
|
span: "4",
|
|
3830
3844
|
md: "6"
|
|
3831
3845
|
}, {
|
|
3832
|
-
default:
|
|
3833
|
-
modelValue:
|
|
3846
|
+
default: F(() => [c(D(Rt), m({
|
|
3847
|
+
modelValue: D(S),
|
|
3834
3848
|
"onUpdate:modelValue": i[2] ||= (e) => d(S) ? S.value = e : null,
|
|
3835
3849
|
legend: "Gekocht als",
|
|
3836
3850
|
name: "condition",
|
|
3837
|
-
options:
|
|
3851
|
+
options: D(ci),
|
|
3838
3852
|
variant: "boxed",
|
|
3839
3853
|
required: !1,
|
|
3840
|
-
"error-message":
|
|
3841
|
-
},
|
|
3854
|
+
"error-message": D(w)
|
|
3855
|
+
}, D(C)), null, 16, [
|
|
3842
3856
|
"modelValue",
|
|
3843
3857
|
"options",
|
|
3844
3858
|
"error-message"
|
|
3845
3859
|
])]),
|
|
3846
3860
|
_: 1
|
|
3847
3861
|
}),
|
|
3848
|
-
c(
|
|
3862
|
+
c(D(J), {
|
|
3849
3863
|
span: "2",
|
|
3850
3864
|
md: "6"
|
|
3851
3865
|
}, {
|
|
3852
|
-
default:
|
|
3853
|
-
modelValue:
|
|
3866
|
+
default: F(() => [c(D(Ge), m({
|
|
3867
|
+
modelValue: D(T),
|
|
3854
3868
|
"onUpdate:modelValue": i[3] ||= (e) => d(T) ? T.value = e : null,
|
|
3855
3869
|
label: "Aankoopprijs",
|
|
3856
3870
|
placeholder: "bv. 1 000",
|
|
3857
3871
|
icon: "far fa-euro-sign",
|
|
3858
3872
|
name: "price",
|
|
3859
|
-
mask:
|
|
3873
|
+
mask: D(ii),
|
|
3860
3874
|
inputmode: "numeric",
|
|
3861
3875
|
required: !1,
|
|
3862
|
-
"error-message":
|
|
3863
|
-
}, E
|
|
3876
|
+
"error-message": D(O)
|
|
3877
|
+
}, D(E)), null, 16, [
|
|
3864
3878
|
"modelValue",
|
|
3865
3879
|
"mask",
|
|
3866
3880
|
"error-message"
|
|
@@ -3874,7 +3888,7 @@ var Yr = Jr(), Xr = Gr(Pr, Q.ownedBuilding.required), Zr = [1, 7], Qr = [3, 4],
|
|
|
3874
3888
|
});
|
|
3875
3889
|
//#endregion
|
|
3876
3890
|
//#region src/comparisons/bike/bike.presenter.ts
|
|
3877
|
-
function
|
|
3891
|
+
function di(e) {
|
|
3878
3892
|
return {
|
|
3879
3893
|
comparison: V.Bike,
|
|
3880
3894
|
detail: { bike: {
|
|
@@ -3888,27 +3902,27 @@ function si(e) {
|
|
|
3888
3902
|
}
|
|
3889
3903
|
//#endregion
|
|
3890
3904
|
//#region src/comparisons/pet/constants.ts
|
|
3891
|
-
var
|
|
3905
|
+
var fi = {
|
|
3892
3906
|
min: 0,
|
|
3893
3907
|
max: 99
|
|
3894
|
-
},
|
|
3908
|
+
}, pi = R({
|
|
3895
3909
|
kind: z().required(Q.pet.kindRequired),
|
|
3896
|
-
age: z().required(Q.birthdate.required).test("date_format", Q.birthdate.dateFormat,
|
|
3910
|
+
age: z().required(Q.birthdate.required).test("date_format", Q.birthdate.dateFormat, Jr).test(qr({
|
|
3897
3911
|
min: {
|
|
3898
3912
|
value: 7,
|
|
3899
3913
|
unit: "week"
|
|
3900
3914
|
},
|
|
3901
3915
|
max: {
|
|
3902
|
-
value:
|
|
3916
|
+
value: fi.max,
|
|
3903
3917
|
unit: "year"
|
|
3904
3918
|
}
|
|
3905
3919
|
}, {
|
|
3906
|
-
future: () => Q.birthdate.tooYoung(
|
|
3907
|
-
tooYoung: ({ earliest: e, latest: t }) => Q.pet.outOfRange(e.format(
|
|
3908
|
-
tooOld: () => Q.birthdate.tooOld(
|
|
3920
|
+
future: () => Q.birthdate.tooYoung(fi.min),
|
|
3921
|
+
tooYoung: ({ earliest: e, latest: t }) => Q.pet.outOfRange(e.format(Ir), t.format(Ir)),
|
|
3922
|
+
tooOld: () => Q.birthdate.tooOld(fi.max)
|
|
3909
3923
|
}, "birthdate_range")),
|
|
3910
3924
|
zipCode: z().required(Q.pet.zipCodeRequired).matches(/^\d{4}\s?[a-zA-Z]{2}$/, Q.pet.zipCodeInvalid)
|
|
3911
|
-
}),
|
|
3925
|
+
}), mi = [
|
|
3912
3926
|
{
|
|
3913
3927
|
title: "Hond",
|
|
3914
3928
|
value: "dog"
|
|
@@ -3925,7 +3939,7 @@ var ci = {
|
|
|
3925
3939
|
title: "Vogel",
|
|
3926
3940
|
value: "bird"
|
|
3927
3941
|
}
|
|
3928
|
-
],
|
|
3942
|
+
], hi = /* @__PURE__ */ l({
|
|
3929
3943
|
__name: "PetForm",
|
|
3930
3944
|
props: /*@__PURE__*/ f({
|
|
3931
3945
|
initialData: {},
|
|
@@ -3944,52 +3958,52 @@ var ci = {
|
|
|
3944
3958
|
}),
|
|
3945
3959
|
emits: ["submitted"],
|
|
3946
3960
|
setup(e, { emit: t }) {
|
|
3947
|
-
let r = e, i = q(r), a = t, { isSubmitting: o, handleSubmit: s, defineField: l } = Z(
|
|
3961
|
+
let r = e, i = q(r), a = t, { isSubmitting: o, handleSubmit: s, defineField: l } = Z(pi, {
|
|
3948
3962
|
kind: r.initialData?.kind ?? "dog",
|
|
3949
3963
|
age: r.initialData?.age ?? "",
|
|
3950
3964
|
zipCode: r.initialData?.zipCode ?? ""
|
|
3951
|
-
}), [u, f, p] = l("kind", { validateAt: "change" }), [h, g, _] = l("age"), [v,
|
|
3965
|
+
}), [u, f, p] = l("kind", { validateAt: "change" }), [h, g, _] = l("age"), [v, y, x] = l("zipCode");
|
|
3952
3966
|
function S() {
|
|
3953
3967
|
s((e) => {
|
|
3954
3968
|
a("submitted", { ...e });
|
|
3955
3969
|
});
|
|
3956
3970
|
}
|
|
3957
|
-
return (t, r) => (
|
|
3958
|
-
"submit-disabled": e.submitDisabled ||
|
|
3971
|
+
return (t, r) => (b(), n(D(Y), m(D(i), {
|
|
3972
|
+
"submit-disabled": e.submitDisabled || D(o),
|
|
3959
3973
|
onSubmit: S
|
|
3960
3974
|
}), {
|
|
3961
|
-
default:
|
|
3962
|
-
c(
|
|
3975
|
+
default: F(() => [
|
|
3976
|
+
c(D(J), {
|
|
3963
3977
|
span: "4",
|
|
3964
3978
|
md: "6"
|
|
3965
3979
|
}, {
|
|
3966
|
-
default:
|
|
3967
|
-
modelValue:
|
|
3980
|
+
default: F(() => [c(D(nt), m({
|
|
3981
|
+
modelValue: D(u),
|
|
3968
3982
|
"onUpdate:modelValue": r[0] ||= (e) => d(u) ? u.value = e : null,
|
|
3969
3983
|
label: "Wat voor huisdier wil je verzekeren?",
|
|
3970
3984
|
placeholder: "",
|
|
3971
|
-
options:
|
|
3985
|
+
options: D(mi),
|
|
3972
3986
|
name: "kind",
|
|
3973
3987
|
required: !1,
|
|
3974
|
-
"error-message":
|
|
3975
|
-
},
|
|
3988
|
+
"error-message": D(p)
|
|
3989
|
+
}, D(f)), null, 16, [
|
|
3976
3990
|
"modelValue",
|
|
3977
3991
|
"options",
|
|
3978
3992
|
"error-message"
|
|
3979
3993
|
])]),
|
|
3980
3994
|
_: 1
|
|
3981
3995
|
}),
|
|
3982
|
-
c(
|
|
3996
|
+
c(D(J), {
|
|
3983
3997
|
span: "4",
|
|
3984
3998
|
md: "6"
|
|
3985
3999
|
}, {
|
|
3986
|
-
default:
|
|
3987
|
-
modelValue:
|
|
4000
|
+
default: F(() => [c(D(X), m({
|
|
4001
|
+
modelValue: D(h),
|
|
3988
4002
|
"onUpdate:modelValue": r[1] ||= (e) => d(h) ? h.value = e : null,
|
|
3989
4003
|
label: "Geboortedatum huisdier",
|
|
3990
|
-
"error-message":
|
|
3991
|
-
},
|
|
3992
|
-
popover:
|
|
4004
|
+
"error-message": D(_)
|
|
4005
|
+
}, D(g)), {
|
|
4006
|
+
popover: F(() => [c(D(G), {
|
|
3993
4007
|
"ref-variant": "blue-icon",
|
|
3994
4008
|
"tooltip-variant": "blue",
|
|
3995
4009
|
"tooltip-size": "small",
|
|
@@ -4002,12 +4016,12 @@ var ci = {
|
|
|
4002
4016
|
}, 16, ["modelValue", "error-message"])]),
|
|
4003
4017
|
_: 1
|
|
4004
4018
|
}),
|
|
4005
|
-
c(
|
|
4019
|
+
c(D(J), {
|
|
4006
4020
|
span: "2",
|
|
4007
4021
|
md: "6"
|
|
4008
4022
|
}, {
|
|
4009
|
-
default:
|
|
4010
|
-
modelValue:
|
|
4023
|
+
default: F(() => [c(D(Ge), m({
|
|
4024
|
+
modelValue: D(v),
|
|
4011
4025
|
"onUpdate:modelValue": r[2] ||= (e) => d(v) ? v.value = e : null,
|
|
4012
4026
|
label: "Postcode",
|
|
4013
4027
|
placeholder: "bv. 1234 AZ",
|
|
@@ -4015,9 +4029,9 @@ var ci = {
|
|
|
4015
4029
|
mask: "####@@",
|
|
4016
4030
|
capitalize: "",
|
|
4017
4031
|
required: !1,
|
|
4018
|
-
"error-message":
|
|
4019
|
-
},
|
|
4020
|
-
popover:
|
|
4032
|
+
"error-message": D(x)
|
|
4033
|
+
}, D(y)), {
|
|
4034
|
+
popover: F(() => [c(D(G), {
|
|
4021
4035
|
"ref-variant": "blue-icon",
|
|
4022
4036
|
"tooltip-variant": "blue",
|
|
4023
4037
|
"tooltip-size": "small",
|
|
@@ -4037,7 +4051,7 @@ var ci = {
|
|
|
4037
4051
|
});
|
|
4038
4052
|
//#endregion
|
|
4039
4053
|
//#region src/comparisons/pet/pet.presenter.ts
|
|
4040
|
-
function
|
|
4054
|
+
function gi(e) {
|
|
4041
4055
|
return {
|
|
4042
4056
|
comparison: V.Pet,
|
|
4043
4057
|
detail: { pet: {
|
|
@@ -4049,11 +4063,11 @@ function fi(e) {
|
|
|
4049
4063
|
}
|
|
4050
4064
|
//#endregion
|
|
4051
4065
|
//#region src/comparisons/caravan/caravan.schema.ts
|
|
4052
|
-
var
|
|
4053
|
-
TypeOfCaravan:
|
|
4054
|
-
NewOrOccasion:
|
|
4055
|
-
BuildYear:
|
|
4056
|
-
}),
|
|
4066
|
+
var _i = R({
|
|
4067
|
+
TypeOfCaravan: Xr(Q.caravan.typeOfCaravanRequired),
|
|
4068
|
+
NewOrOccasion: Yr(Rr, Q.caravan.newOrOccasionRequired),
|
|
4069
|
+
BuildYear: Xr(Q.caravan.buildYearRequired)
|
|
4070
|
+
}), vi = [
|
|
4057
4071
|
{
|
|
4058
4072
|
value: "CS",
|
|
4059
4073
|
title: "Stacaravan"
|
|
@@ -4066,7 +4080,7 @@ var pi = R({
|
|
|
4066
4080
|
value: "CV",
|
|
4067
4081
|
title: "Vouwwagen"
|
|
4068
4082
|
}
|
|
4069
|
-
],
|
|
4083
|
+
], yi = [{
|
|
4070
4084
|
value: U.Yes,
|
|
4071
4085
|
label: "Nieuw"
|
|
4072
4086
|
}, {
|
|
@@ -4075,8 +4089,8 @@ var pi = R({
|
|
|
4075
4089
|
}];
|
|
4076
4090
|
//#endregion
|
|
4077
4091
|
//#region src/comparisons/caravan/models/buildYears.model.ts
|
|
4078
|
-
function
|
|
4079
|
-
let e =
|
|
4092
|
+
function bi() {
|
|
4093
|
+
let e = Br();
|
|
4080
4094
|
return Array.from({ length: 126 }, (t, n) => ({
|
|
4081
4095
|
title: String(e - n),
|
|
4082
4096
|
value: String(e - n)
|
|
@@ -4084,7 +4098,7 @@ function gi() {
|
|
|
4084
4098
|
}
|
|
4085
4099
|
//#endregion
|
|
4086
4100
|
//#region src/comparisons/caravan/CaravanForm.vue
|
|
4087
|
-
var
|
|
4101
|
+
var xi = /* @__PURE__ */ l({
|
|
4088
4102
|
__name: "CaravanForm",
|
|
4089
4103
|
props: /*@__PURE__*/ f({
|
|
4090
4104
|
initialData: {},
|
|
@@ -4103,73 +4117,73 @@ var _i = /* @__PURE__ */ l({
|
|
|
4103
4117
|
}),
|
|
4104
4118
|
emits: ["submitted"],
|
|
4105
4119
|
setup(e, { emit: t }) {
|
|
4106
|
-
let r = e, i = q(r), a = t, o =
|
|
4120
|
+
let r = e, i = q(r), a = t, o = bi(), { isSubmitting: s, handleSubmit: l, defineField: u } = Z(_i, {
|
|
4107
4121
|
TypeOfCaravan: r.initialData?.TypeOfCaravan ?? null,
|
|
4108
4122
|
NewOrOccasion: r.initialData?.NewOrOccasion ?? U.Yes,
|
|
4109
4123
|
BuildYear: r.initialData?.BuildYear ?? null
|
|
4110
|
-
}), [f, p, h] = u("TypeOfCaravan", { validateAt: "change" }), [g, _, v] = u("NewOrOccasion"), [
|
|
4124
|
+
}), [f, p, h] = u("TypeOfCaravan", { validateAt: "change" }), [g, _, v] = u("NewOrOccasion"), [y, x, S] = u("BuildYear", { validateAt: "change" });
|
|
4111
4125
|
function C() {
|
|
4112
4126
|
l((e) => {
|
|
4113
4127
|
a("submitted", { ...e });
|
|
4114
4128
|
});
|
|
4115
4129
|
}
|
|
4116
|
-
return (t, r) => (
|
|
4117
|
-
"submit-disabled": e.submitDisabled ||
|
|
4130
|
+
return (t, r) => (b(), n(D(Y), m(D(i), {
|
|
4131
|
+
"submit-disabled": e.submitDisabled || D(s),
|
|
4118
4132
|
onSubmit: C
|
|
4119
4133
|
}), {
|
|
4120
|
-
default:
|
|
4121
|
-
c(
|
|
4134
|
+
default: F(() => [
|
|
4135
|
+
c(D(J), {
|
|
4122
4136
|
span: "4",
|
|
4123
4137
|
md: "6"
|
|
4124
4138
|
}, {
|
|
4125
|
-
default:
|
|
4126
|
-
modelValue:
|
|
4139
|
+
default: F(() => [c(D(nt), m({
|
|
4140
|
+
modelValue: D(f),
|
|
4127
4141
|
"onUpdate:modelValue": r[0] ||= (e) => d(f) ? f.value = e : null,
|
|
4128
4142
|
label: "Soort caravan",
|
|
4129
|
-
options:
|
|
4143
|
+
options: D(vi),
|
|
4130
4144
|
name: "typeOfCaravan",
|
|
4131
4145
|
required: !1,
|
|
4132
|
-
"error-message":
|
|
4133
|
-
},
|
|
4146
|
+
"error-message": D(h)
|
|
4147
|
+
}, D(p)), null, 16, [
|
|
4134
4148
|
"modelValue",
|
|
4135
4149
|
"options",
|
|
4136
4150
|
"error-message"
|
|
4137
4151
|
])]),
|
|
4138
4152
|
_: 1
|
|
4139
4153
|
}),
|
|
4140
|
-
c(
|
|
4154
|
+
c(D(J), {
|
|
4141
4155
|
span: "4",
|
|
4142
4156
|
md: "6"
|
|
4143
4157
|
}, {
|
|
4144
|
-
default:
|
|
4145
|
-
modelValue:
|
|
4158
|
+
default: F(() => [c(D(Rt), m({
|
|
4159
|
+
modelValue: D(g),
|
|
4146
4160
|
"onUpdate:modelValue": r[1] ||= (e) => d(g) ? g.value = e : null,
|
|
4147
4161
|
legend: "Gekocht als",
|
|
4148
4162
|
name: "newOrOccasion",
|
|
4149
|
-
options:
|
|
4163
|
+
options: D(yi),
|
|
4150
4164
|
variant: "boxed",
|
|
4151
4165
|
required: !1,
|
|
4152
|
-
"error-message":
|
|
4153
|
-
},
|
|
4166
|
+
"error-message": D(v)
|
|
4167
|
+
}, D(_)), null, 16, [
|
|
4154
4168
|
"modelValue",
|
|
4155
4169
|
"options",
|
|
4156
4170
|
"error-message"
|
|
4157
4171
|
])]),
|
|
4158
4172
|
_: 1
|
|
4159
4173
|
}),
|
|
4160
|
-
c(
|
|
4174
|
+
c(D(J), {
|
|
4161
4175
|
span: "2",
|
|
4162
4176
|
md: "6"
|
|
4163
4177
|
}, {
|
|
4164
|
-
default:
|
|
4165
|
-
modelValue:
|
|
4166
|
-
"onUpdate:modelValue": r[2] ||= (e) => d(
|
|
4178
|
+
default: F(() => [c(D(nt), m({
|
|
4179
|
+
modelValue: D(y),
|
|
4180
|
+
"onUpdate:modelValue": r[2] ||= (e) => d(y) ? y.value = e : null,
|
|
4167
4181
|
label: "Bouwjaar",
|
|
4168
|
-
options:
|
|
4182
|
+
options: D(o),
|
|
4169
4183
|
name: "buildYear",
|
|
4170
4184
|
required: !1,
|
|
4171
|
-
"error-message":
|
|
4172
|
-
},
|
|
4185
|
+
"error-message": D(S)
|
|
4186
|
+
}, D(x)), null, 16, [
|
|
4173
4187
|
"modelValue",
|
|
4174
4188
|
"options",
|
|
4175
4189
|
"error-message"
|
|
@@ -4183,7 +4197,7 @@ var _i = /* @__PURE__ */ l({
|
|
|
4183
4197
|
});
|
|
4184
4198
|
//#endregion
|
|
4185
4199
|
//#region src/comparisons/caravan/caravan.presenter.ts
|
|
4186
|
-
function
|
|
4200
|
+
function Si(e) {
|
|
4187
4201
|
return {
|
|
4188
4202
|
comparison: V.Caravan,
|
|
4189
4203
|
detail: { caravan: {
|
|
@@ -4196,18 +4210,18 @@ function vi(e) {
|
|
|
4196
4210
|
}
|
|
4197
4211
|
//#endregion
|
|
4198
4212
|
//#region src/comparisons/travel/paymentTerm.enum.ts
|
|
4199
|
-
var
|
|
4213
|
+
var Ci = /* @__PURE__ */ function(e) {
|
|
4200
4214
|
return e.Continuous = "L", e.ShortTerm = "S", e;
|
|
4201
|
-
}({}),
|
|
4202
|
-
PaymentTerm:
|
|
4215
|
+
}({}), wi = R({
|
|
4216
|
+
PaymentTerm: Yr([Ci.Continuous, Ci.ShortTerm], Q.travel.paymentTermRequired),
|
|
4203
4217
|
birthdate: $()
|
|
4204
|
-
}),
|
|
4205
|
-
value:
|
|
4218
|
+
}), Ti = [{
|
|
4219
|
+
value: Ci.Continuous,
|
|
4206
4220
|
label: "Doorlopend"
|
|
4207
4221
|
}, {
|
|
4208
|
-
value:
|
|
4222
|
+
value: Ci.ShortTerm,
|
|
4209
4223
|
label: "Kortlopend"
|
|
4210
|
-
}],
|
|
4224
|
+
}], Ei = /* @__PURE__ */ l({
|
|
4211
4225
|
__name: "TravelForm",
|
|
4212
4226
|
props: /*@__PURE__*/ f({
|
|
4213
4227
|
initialData: {},
|
|
@@ -4226,8 +4240,8 @@ var yi = /* @__PURE__ */ function(e) {
|
|
|
4226
4240
|
}),
|
|
4227
4241
|
emits: ["submitted"],
|
|
4228
4242
|
setup(e, { emit: t }) {
|
|
4229
|
-
let r = e, i = q(r), a = t, { isSubmitting: o, handleSubmit: s, defineField: l } = Z(
|
|
4230
|
-
PaymentTerm: r.initialData?.PaymentTerm ??
|
|
4243
|
+
let r = e, i = q(r), a = t, { isSubmitting: o, handleSubmit: s, defineField: l } = Z(wi, {
|
|
4244
|
+
PaymentTerm: r.initialData?.PaymentTerm ?? Ci.Continuous,
|
|
4231
4245
|
birthdate: r.initialData?.birthdate ?? ""
|
|
4232
4246
|
}), [u, f, p] = l("PaymentTerm", { validateAt: "change" }), [h, g, _] = l("birthdate");
|
|
4233
4247
|
function v() {
|
|
@@ -4235,25 +4249,25 @@ var yi = /* @__PURE__ */ function(e) {
|
|
|
4235
4249
|
a("submitted", { ...e });
|
|
4236
4250
|
});
|
|
4237
4251
|
}
|
|
4238
|
-
return (t, r) => (
|
|
4239
|
-
"submit-disabled": e.submitDisabled ||
|
|
4252
|
+
return (t, r) => (b(), n(D(Y), m(D(i), {
|
|
4253
|
+
"submit-disabled": e.submitDisabled || D(o),
|
|
4240
4254
|
onSubmit: v
|
|
4241
4255
|
}), {
|
|
4242
|
-
default:
|
|
4256
|
+
default: F(() => [c(D(J), {
|
|
4243
4257
|
span: "5",
|
|
4244
4258
|
md: "6"
|
|
4245
4259
|
}, {
|
|
4246
|
-
default:
|
|
4247
|
-
modelValue:
|
|
4260
|
+
default: F(() => [c(D(Rt), m({
|
|
4261
|
+
modelValue: D(u),
|
|
4248
4262
|
"onUpdate:modelValue": r[0] ||= (e) => d(u) ? u.value = e : null,
|
|
4249
4263
|
legend: "Kies je dekking",
|
|
4250
4264
|
name: "PaymentTerm",
|
|
4251
|
-
options:
|
|
4265
|
+
options: D(Ti),
|
|
4252
4266
|
variant: "boxed",
|
|
4253
4267
|
required: !1,
|
|
4254
|
-
"error-message":
|
|
4255
|
-
},
|
|
4256
|
-
popover:
|
|
4268
|
+
"error-message": D(p)
|
|
4269
|
+
}, D(f)), {
|
|
4270
|
+
popover: F(() => [c(D(G), {
|
|
4257
4271
|
"ref-variant": "blue-icon",
|
|
4258
4272
|
"tooltip-variant": "blue",
|
|
4259
4273
|
"tooltip-size": "small",
|
|
@@ -4269,15 +4283,15 @@ var yi = /* @__PURE__ */ function(e) {
|
|
|
4269
4283
|
"error-message"
|
|
4270
4284
|
])]),
|
|
4271
4285
|
_: 1
|
|
4272
|
-
}), c(
|
|
4286
|
+
}), c(D(J), {
|
|
4273
4287
|
span: "5",
|
|
4274
4288
|
md: "6"
|
|
4275
4289
|
}, {
|
|
4276
|
-
default:
|
|
4277
|
-
modelValue:
|
|
4290
|
+
default: F(() => [c(D(X), m({
|
|
4291
|
+
modelValue: D(h),
|
|
4278
4292
|
"onUpdate:modelValue": r[1] ||= (e) => d(h) ? h.value = e : null,
|
|
4279
|
-
"error-message":
|
|
4280
|
-
},
|
|
4293
|
+
"error-message": D(_)
|
|
4294
|
+
}, D(g)), null, 16, ["modelValue", "error-message"])]),
|
|
4281
4295
|
_: 1
|
|
4282
4296
|
})]),
|
|
4283
4297
|
_: 1
|
|
@@ -4286,7 +4300,7 @@ var yi = /* @__PURE__ */ function(e) {
|
|
|
4286
4300
|
});
|
|
4287
4301
|
//#endregion
|
|
4288
4302
|
//#region src/comparisons/travel/travel.presenter.ts
|
|
4289
|
-
function
|
|
4303
|
+
function Di(e) {
|
|
4290
4304
|
return {
|
|
4291
4305
|
comparison: V.Travel,
|
|
4292
4306
|
detail: { comparison: { PaymentTerm: e.PaymentTerm } },
|
|
@@ -4295,11 +4309,11 @@ function Ci(e) {
|
|
|
4295
4309
|
}
|
|
4296
4310
|
//#endregion
|
|
4297
4311
|
//#region src/comparisons/liability/liability.schema.ts
|
|
4298
|
-
var
|
|
4312
|
+
var Oi = (e) => R({
|
|
4299
4313
|
address: e,
|
|
4300
4314
|
birthdate: $(),
|
|
4301
|
-
familyComposition:
|
|
4302
|
-
}),
|
|
4315
|
+
familyComposition: $r
|
|
4316
|
+
}), ki = /* @__PURE__ */ l({
|
|
4303
4317
|
__name: "LiabilityForm",
|
|
4304
4318
|
props: /*@__PURE__*/ f({
|
|
4305
4319
|
initialData: {},
|
|
@@ -4318,11 +4332,11 @@ var wi = (e) => R({
|
|
|
4318
4332
|
}),
|
|
4319
4333
|
emits: ["submitted"],
|
|
4320
4334
|
setup(e, { emit: t }) {
|
|
4321
|
-
let r = e, i = q(r), a = t, { addressSchema: o, draft: s, resolvedAddress: l, additionOptions: u } =
|
|
4335
|
+
let r = e, i = q(r), a = t, { addressSchema: o, draft: s, resolvedAddress: l, additionOptions: u } = Hn({ initial: r.initialData?.address }), { isSubmitting: f, handleSubmit: p, defineField: h } = Z(Oi(o), {
|
|
4322
4336
|
birthdate: r.initialData?.birthdate ?? "",
|
|
4323
4337
|
familyComposition: r.initialData?.familyComposition ?? H.SingleWithoutChildren,
|
|
4324
4338
|
address: s
|
|
4325
|
-
}), [g, _, v] = h("birthdate"), [
|
|
4339
|
+
}), [g, _, v] = h("birthdate"), [y, x, S] = h("familyComposition", { validateAt: "change" });
|
|
4326
4340
|
function C() {
|
|
4327
4341
|
p(({ birthdate: e, familyComposition: t }) => {
|
|
4328
4342
|
a("submitted", {
|
|
@@ -4332,42 +4346,42 @@ var wi = (e) => R({
|
|
|
4332
4346
|
});
|
|
4333
4347
|
});
|
|
4334
4348
|
}
|
|
4335
|
-
return (t, r) => (
|
|
4336
|
-
"submit-disabled": e.submitDisabled ||
|
|
4349
|
+
return (t, r) => (b(), n(D(Y), m(D(i), {
|
|
4350
|
+
"submit-disabled": e.submitDisabled || D(f),
|
|
4337
4351
|
onSubmit: C
|
|
4338
4352
|
}), {
|
|
4339
|
-
default:
|
|
4340
|
-
c(
|
|
4353
|
+
default: F(() => [
|
|
4354
|
+
c(D(J), {
|
|
4341
4355
|
span: "5",
|
|
4342
4356
|
md: "6"
|
|
4343
4357
|
}, {
|
|
4344
|
-
default:
|
|
4345
|
-
"resolved-address":
|
|
4358
|
+
default: F(() => [c(D(Dn), {
|
|
4359
|
+
"resolved-address": D(l),
|
|
4346
4360
|
"onUpdate:resolvedAddress": r[0] ||= (e) => d(l) ? l.value = e : null,
|
|
4347
|
-
"addition-options":
|
|
4361
|
+
"addition-options": D(u)
|
|
4348
4362
|
}, null, 8, ["resolved-address", "addition-options"])]),
|
|
4349
4363
|
_: 1
|
|
4350
4364
|
}),
|
|
4351
|
-
c(
|
|
4365
|
+
c(D(J), {
|
|
4352
4366
|
span: "2",
|
|
4353
4367
|
md: "6"
|
|
4354
4368
|
}, {
|
|
4355
|
-
default:
|
|
4356
|
-
modelValue:
|
|
4369
|
+
default: F(() => [c(D(X), m({
|
|
4370
|
+
modelValue: D(g),
|
|
4357
4371
|
"onUpdate:modelValue": r[1] ||= (e) => d(g) ? g.value = e : null,
|
|
4358
|
-
"error-message":
|
|
4359
|
-
},
|
|
4372
|
+
"error-message": D(v)
|
|
4373
|
+
}, D(_)), null, 16, ["modelValue", "error-message"])]),
|
|
4360
4374
|
_: 1
|
|
4361
4375
|
}),
|
|
4362
|
-
c(
|
|
4376
|
+
c(D(J), {
|
|
4363
4377
|
span: "3",
|
|
4364
4378
|
md: "6"
|
|
4365
4379
|
}, {
|
|
4366
|
-
default:
|
|
4367
|
-
modelValue:
|
|
4368
|
-
"onUpdate:modelValue": r[2] ||= (e) => d(
|
|
4369
|
-
"error-message":
|
|
4370
|
-
},
|
|
4380
|
+
default: F(() => [c(D(hn), m({
|
|
4381
|
+
modelValue: D(y),
|
|
4382
|
+
"onUpdate:modelValue": r[2] ||= (e) => d(y) ? y.value = e : null,
|
|
4383
|
+
"error-message": D(S)
|
|
4384
|
+
}, D(x)), null, 16, ["modelValue", "error-message"])]),
|
|
4371
4385
|
_: 1
|
|
4372
4386
|
})
|
|
4373
4387
|
]),
|
|
@@ -4377,7 +4391,7 @@ var wi = (e) => R({
|
|
|
4377
4391
|
});
|
|
4378
4392
|
//#endregion
|
|
4379
4393
|
//#region src/comparisons/liability/liability.presenter.ts
|
|
4380
|
-
function
|
|
4394
|
+
function Ai(e) {
|
|
4381
4395
|
return {
|
|
4382
4396
|
comparison: V.Liability,
|
|
4383
4397
|
detail: { liability: {
|
|
@@ -4397,17 +4411,17 @@ function Ei(e) {
|
|
|
4397
4411
|
}
|
|
4398
4412
|
//#endregion
|
|
4399
4413
|
//#region src/models/houseOwnedBuilding.model.ts
|
|
4400
|
-
var
|
|
4414
|
+
var ji = [{
|
|
4401
4415
|
value: U.Yes,
|
|
4402
4416
|
label: "Gekocht"
|
|
4403
4417
|
}, {
|
|
4404
4418
|
value: U.No,
|
|
4405
4419
|
label: "Gehuurd"
|
|
4406
|
-
}],
|
|
4420
|
+
}], Mi = (e) => R({
|
|
4407
4421
|
address: e,
|
|
4408
|
-
ownedBuilding:
|
|
4409
|
-
familyComposition:
|
|
4410
|
-
}),
|
|
4422
|
+
ownedBuilding: ei,
|
|
4423
|
+
familyComposition: Qr(Q.house.familyCompositionRequired)
|
|
4424
|
+
}), Ni = /* @__PURE__ */ l({
|
|
4411
4425
|
__name: "HouseForm",
|
|
4412
4426
|
props: /*@__PURE__*/ f({
|
|
4413
4427
|
initialData: {},
|
|
@@ -4426,11 +4440,11 @@ var Di = [{
|
|
|
4426
4440
|
}),
|
|
4427
4441
|
emits: ["submitted"],
|
|
4428
4442
|
setup(e, { emit: t }) {
|
|
4429
|
-
let r = e, i = q(r), a = t, { addressSchema: o, draft: s, resolvedAddress: l, additionOptions: u } =
|
|
4443
|
+
let r = e, i = q(r), a = t, { addressSchema: o, draft: s, resolvedAddress: l, additionOptions: u } = Hn({ initial: r.initialData?.address }), { isSubmitting: f, handleSubmit: p, defineField: h } = Z(Mi(o), {
|
|
4430
4444
|
ownedBuilding: r.initialData?.ownedBuilding ?? U.Yes,
|
|
4431
4445
|
familyComposition: r.initialData?.familyComposition ?? H.SingleWithoutChildren,
|
|
4432
4446
|
address: s
|
|
4433
|
-
}), [g, _, v] = h("ownedBuilding"), [
|
|
4447
|
+
}), [g, _, v] = h("ownedBuilding"), [y, x, S] = h("familyComposition", { validateAt: "change" });
|
|
4434
4448
|
function C() {
|
|
4435
4449
|
p(({ ownedBuilding: e, familyComposition: t }) => {
|
|
4436
4450
|
a("submitted", {
|
|
@@ -4440,51 +4454,51 @@ var Di = [{
|
|
|
4440
4454
|
});
|
|
4441
4455
|
});
|
|
4442
4456
|
}
|
|
4443
|
-
return (t, r) => (
|
|
4444
|
-
"submit-disabled": e.submitDisabled ||
|
|
4457
|
+
return (t, r) => (b(), n(D(Y), m(D(i), {
|
|
4458
|
+
"submit-disabled": e.submitDisabled || D(f),
|
|
4445
4459
|
onSubmit: C
|
|
4446
4460
|
}), {
|
|
4447
|
-
default:
|
|
4448
|
-
c(
|
|
4461
|
+
default: F(() => [
|
|
4462
|
+
c(D(J), {
|
|
4449
4463
|
span: "4",
|
|
4450
4464
|
md: "6"
|
|
4451
4465
|
}, {
|
|
4452
|
-
default:
|
|
4453
|
-
"resolved-address":
|
|
4466
|
+
default: F(() => [c(D(Dn), {
|
|
4467
|
+
"resolved-address": D(l),
|
|
4454
4468
|
"onUpdate:resolvedAddress": r[0] ||= (e) => d(l) ? l.value = e : null,
|
|
4455
|
-
"addition-options":
|
|
4469
|
+
"addition-options": D(u)
|
|
4456
4470
|
}, null, 8, ["resolved-address", "addition-options"])]),
|
|
4457
4471
|
_: 1
|
|
4458
4472
|
}),
|
|
4459
|
-
c(
|
|
4473
|
+
c(D(J), {
|
|
4460
4474
|
span: "3",
|
|
4461
4475
|
md: "3"
|
|
4462
4476
|
}, {
|
|
4463
|
-
default:
|
|
4464
|
-
modelValue:
|
|
4477
|
+
default: F(() => [c(D(Rt), m({
|
|
4478
|
+
modelValue: D(g),
|
|
4465
4479
|
"onUpdate:modelValue": r[1] ||= (e) => d(g) ? g.value = e : null,
|
|
4466
4480
|
legend: "Jouw woning is...",
|
|
4467
4481
|
name: "ownedBuilding",
|
|
4468
|
-
options:
|
|
4482
|
+
options: D(ji),
|
|
4469
4483
|
variant: "boxed",
|
|
4470
4484
|
required: !1,
|
|
4471
|
-
"error-message":
|
|
4472
|
-
},
|
|
4485
|
+
"error-message": D(v)
|
|
4486
|
+
}, D(_)), null, 16, [
|
|
4473
4487
|
"modelValue",
|
|
4474
4488
|
"options",
|
|
4475
4489
|
"error-message"
|
|
4476
4490
|
])]),
|
|
4477
4491
|
_: 1
|
|
4478
4492
|
}),
|
|
4479
|
-
c(
|
|
4493
|
+
c(D(J), {
|
|
4480
4494
|
span: "3",
|
|
4481
4495
|
md: "3"
|
|
4482
4496
|
}, {
|
|
4483
|
-
default:
|
|
4484
|
-
modelValue:
|
|
4485
|
-
"onUpdate:modelValue": r[2] ||= (e) => d(
|
|
4486
|
-
"error-message":
|
|
4487
|
-
},
|
|
4497
|
+
default: F(() => [c(D(hn), m({
|
|
4498
|
+
modelValue: D(y),
|
|
4499
|
+
"onUpdate:modelValue": r[2] ||= (e) => d(y) ? y.value = e : null,
|
|
4500
|
+
"error-message": D(S)
|
|
4501
|
+
}, D(x)), null, 16, ["modelValue", "error-message"])]),
|
|
4488
4502
|
_: 1
|
|
4489
4503
|
})
|
|
4490
4504
|
]),
|
|
@@ -4494,7 +4508,7 @@ var Di = [{
|
|
|
4494
4508
|
});
|
|
4495
4509
|
//#endregion
|
|
4496
4510
|
//#region src/comparisons/house/house.presenter.ts
|
|
4497
|
-
function
|
|
4511
|
+
function Pi(e) {
|
|
4498
4512
|
return {
|
|
4499
4513
|
comparison: V.Housing,
|
|
4500
4514
|
detail: { house: { ownedBuilding: e.ownedBuilding } },
|
|
@@ -4510,10 +4524,10 @@ function Ai(e) {
|
|
|
4510
4524
|
}
|
|
4511
4525
|
//#endregion
|
|
4512
4526
|
//#region src/comparisons/legal/legal.schema.ts
|
|
4513
|
-
var
|
|
4527
|
+
var Fi = (e) => R({
|
|
4514
4528
|
address: e,
|
|
4515
|
-
ownedBuilding:
|
|
4516
|
-
}),
|
|
4529
|
+
ownedBuilding: ei
|
|
4530
|
+
}), Ii = /* @__PURE__ */ l({
|
|
4517
4531
|
__name: "LegalForm",
|
|
4518
4532
|
props: /*@__PURE__*/ f({
|
|
4519
4533
|
initialData: {},
|
|
@@ -4532,11 +4546,11 @@ var ji = (e) => R({
|
|
|
4532
4546
|
}),
|
|
4533
4547
|
emits: ["submitted"],
|
|
4534
4548
|
setup(e, { emit: t }) {
|
|
4535
|
-
let r = e, i = q(r), a = t, { addressSchema: o, draft: s, resolvedAddress: l, additionOptions: u } =
|
|
4549
|
+
let r = e, i = q(r), a = t, { addressSchema: o, draft: s, resolvedAddress: l, additionOptions: u } = Hn({ initial: r.initialData?.address }), { isSubmitting: f, handleSubmit: p, defineField: h } = Z(Fi(o), {
|
|
4536
4550
|
ownedBuilding: r.initialData?.ownedBuilding ?? U.Yes,
|
|
4537
4551
|
address: s
|
|
4538
4552
|
}), [g, _, v] = h("ownedBuilding");
|
|
4539
|
-
function
|
|
4553
|
+
function y() {
|
|
4540
4554
|
p(({ ownedBuilding: e }) => {
|
|
4541
4555
|
a("submitted", {
|
|
4542
4556
|
ownedBuilding: e,
|
|
@@ -4544,34 +4558,34 @@ var ji = (e) => R({
|
|
|
4544
4558
|
});
|
|
4545
4559
|
});
|
|
4546
4560
|
}
|
|
4547
|
-
return (t, r) => (
|
|
4548
|
-
"submit-disabled": e.submitDisabled ||
|
|
4549
|
-
onSubmit:
|
|
4561
|
+
return (t, r) => (b(), n(D(Y), m(D(i), {
|
|
4562
|
+
"submit-disabled": e.submitDisabled || D(f),
|
|
4563
|
+
onSubmit: y
|
|
4550
4564
|
}), {
|
|
4551
|
-
default:
|
|
4565
|
+
default: F(() => [c(D(J), {
|
|
4552
4566
|
span: "5",
|
|
4553
4567
|
md: "6"
|
|
4554
4568
|
}, {
|
|
4555
|
-
default:
|
|
4556
|
-
"resolved-address":
|
|
4569
|
+
default: F(() => [c(D(Dn), {
|
|
4570
|
+
"resolved-address": D(l),
|
|
4557
4571
|
"onUpdate:resolvedAddress": r[0] ||= (e) => d(l) ? l.value = e : null,
|
|
4558
|
-
"addition-options":
|
|
4572
|
+
"addition-options": D(u)
|
|
4559
4573
|
}, null, 8, ["resolved-address", "addition-options"])]),
|
|
4560
4574
|
_: 1
|
|
4561
|
-
}), c(
|
|
4575
|
+
}), c(D(J), {
|
|
4562
4576
|
span: "5",
|
|
4563
4577
|
md: "6"
|
|
4564
4578
|
}, {
|
|
4565
|
-
default:
|
|
4566
|
-
modelValue:
|
|
4579
|
+
default: F(() => [c(D(Rt), m({
|
|
4580
|
+
modelValue: D(g),
|
|
4567
4581
|
"onUpdate:modelValue": r[1] ||= (e) => d(g) ? g.value = e : null,
|
|
4568
4582
|
legend: "Jouw woning is...",
|
|
4569
4583
|
name: "ownedBuilding",
|
|
4570
|
-
options:
|
|
4584
|
+
options: D(ji),
|
|
4571
4585
|
variant: "boxed",
|
|
4572
4586
|
required: !1,
|
|
4573
|
-
"error-message":
|
|
4574
|
-
},
|
|
4587
|
+
"error-message": D(v)
|
|
4588
|
+
}, D(_)), null, 16, [
|
|
4575
4589
|
"modelValue",
|
|
4576
4590
|
"options",
|
|
4577
4591
|
"error-message"
|
|
@@ -4584,7 +4598,7 @@ var ji = (e) => R({
|
|
|
4584
4598
|
});
|
|
4585
4599
|
//#endregion
|
|
4586
4600
|
//#region src/comparisons/legal/legal.presenter.ts
|
|
4587
|
-
function
|
|
4601
|
+
function Li(e) {
|
|
4588
4602
|
return {
|
|
4589
4603
|
comparison: V.LegalAssistance,
|
|
4590
4604
|
detail: { comparison: {
|
|
@@ -4602,15 +4616,15 @@ function Ni(e) {
|
|
|
4602
4616
|
}
|
|
4603
4617
|
//#endregion
|
|
4604
4618
|
//#region src/comparisons/package/package.schema.ts
|
|
4605
|
-
var
|
|
4619
|
+
var Ri = (e) => R({
|
|
4606
4620
|
address: e,
|
|
4607
4621
|
birthdate: $(),
|
|
4608
|
-
familyComposition:
|
|
4622
|
+
familyComposition: $r,
|
|
4609
4623
|
partnerBirthdate: z().defined().when("familyComposition", {
|
|
4610
|
-
is:
|
|
4624
|
+
is: Wr,
|
|
4611
4625
|
then: () => $()
|
|
4612
4626
|
})
|
|
4613
|
-
}),
|
|
4627
|
+
}), zi = /* @__PURE__ */ l({
|
|
4614
4628
|
__name: "PackageForm",
|
|
4615
4629
|
props: /*@__PURE__*/ f({
|
|
4616
4630
|
initialData: {},
|
|
@@ -4629,14 +4643,14 @@ var Pi = (e) => R({
|
|
|
4629
4643
|
}),
|
|
4630
4644
|
emits: ["submitted"],
|
|
4631
4645
|
setup(e, { emit: i }) {
|
|
4632
|
-
let a = e, o = q(a), s = i, { addressSchema: l, draft: u, resolvedAddress: f, additionOptions: p } =
|
|
4646
|
+
let a = e, o = q(a), s = i, { addressSchema: l, draft: u, resolvedAddress: f, additionOptions: p } = Hn({ initial: a.initialData?.address }), { isSubmitting: h, handleSubmit: g, defineField: _, resetField: v } = Z(Ri(l), {
|
|
4633
4647
|
birthdate: a.initialData?.birthdate ?? "",
|
|
4634
4648
|
familyComposition: a.initialData?.familyComposition ?? H.SingleWithoutChildren,
|
|
4635
4649
|
partnerBirthdate: a.initialData?.partnerBirthdate ?? "",
|
|
4636
4650
|
address: u
|
|
4637
|
-
}), [
|
|
4638
|
-
|
|
4639
|
-
|
|
4651
|
+
}), [y, x, S] = _("birthdate"), [C, w, T] = _("familyComposition", { validateAt: "change" }), [E, O, k] = _("partnerBirthdate"), A = t(() => Wr(C.value));
|
|
4652
|
+
P(C, (e) => {
|
|
4653
|
+
Wr(e) || v("partnerBirthdate", { value: "" });
|
|
4640
4654
|
}, { immediate: !0 });
|
|
4641
4655
|
function j() {
|
|
4642
4656
|
g(({ birthdate: e, familyComposition: t, partnerBirthdate: n }) => {
|
|
@@ -4648,57 +4662,57 @@ var Pi = (e) => R({
|
|
|
4648
4662
|
});
|
|
4649
4663
|
});
|
|
4650
4664
|
}
|
|
4651
|
-
return (t, i) => (
|
|
4652
|
-
"submit-disabled": e.submitDisabled ||
|
|
4665
|
+
return (t, i) => (b(), n(D(Y), m(D(o), {
|
|
4666
|
+
"submit-disabled": e.submitDisabled || D(h),
|
|
4653
4667
|
onSubmit: j
|
|
4654
4668
|
}), {
|
|
4655
|
-
default:
|
|
4656
|
-
c(
|
|
4669
|
+
default: F(() => [
|
|
4670
|
+
c(D(J), {
|
|
4657
4671
|
span: "4",
|
|
4658
4672
|
md: "6"
|
|
4659
4673
|
}, {
|
|
4660
|
-
default:
|
|
4661
|
-
"resolved-address":
|
|
4674
|
+
default: F(() => [c(D(Dn), {
|
|
4675
|
+
"resolved-address": D(f),
|
|
4662
4676
|
"onUpdate:resolvedAddress": i[0] ||= (e) => d(f) ? f.value = e : null,
|
|
4663
|
-
"addition-options":
|
|
4677
|
+
"addition-options": D(p)
|
|
4664
4678
|
}, null, 8, ["resolved-address", "addition-options"])]),
|
|
4665
4679
|
_: 1
|
|
4666
4680
|
}),
|
|
4667
|
-
c(
|
|
4681
|
+
c(D(J), {
|
|
4668
4682
|
span: A.value ? 2 : 3,
|
|
4669
4683
|
md: "6"
|
|
4670
4684
|
}, {
|
|
4671
|
-
default:
|
|
4672
|
-
modelValue:
|
|
4673
|
-
"onUpdate:modelValue": i[1] ||= (e) => d(
|
|
4685
|
+
default: F(() => [c(D(X), m({
|
|
4686
|
+
modelValue: D(y),
|
|
4687
|
+
"onUpdate:modelValue": i[1] ||= (e) => d(y) ? y.value = e : null,
|
|
4674
4688
|
label: "Geboortedatum",
|
|
4675
|
-
"error-message":
|
|
4676
|
-
},
|
|
4689
|
+
"error-message": D(S)
|
|
4690
|
+
}, D(x)), null, 16, ["modelValue", "error-message"])]),
|
|
4677
4691
|
_: 1
|
|
4678
4692
|
}, 8, ["span"]),
|
|
4679
|
-
c(
|
|
4693
|
+
c(D(J), {
|
|
4680
4694
|
span: A.value ? 2 : 3,
|
|
4681
4695
|
md: "6"
|
|
4682
4696
|
}, {
|
|
4683
|
-
default:
|
|
4684
|
-
modelValue:
|
|
4697
|
+
default: F(() => [c(D(hn), m({
|
|
4698
|
+
modelValue: D(C),
|
|
4685
4699
|
"onUpdate:modelValue": i[2] ||= (e) => d(C) ? C.value = e : null,
|
|
4686
|
-
"error-message":
|
|
4687
|
-
},
|
|
4700
|
+
"error-message": D(T)
|
|
4701
|
+
}, D(w)), null, 16, ["modelValue", "error-message"])]),
|
|
4688
4702
|
_: 1
|
|
4689
4703
|
}, 8, ["span"]),
|
|
4690
|
-
A.value ? (
|
|
4704
|
+
A.value ? (b(), n(D(J), {
|
|
4691
4705
|
key: 0,
|
|
4692
4706
|
span: "2",
|
|
4693
4707
|
md: "6"
|
|
4694
4708
|
}, {
|
|
4695
|
-
default:
|
|
4696
|
-
modelValue: E
|
|
4697
|
-
"onUpdate:modelValue": i[3] ||= (e) => d(
|
|
4709
|
+
default: F(() => [c(D(X), m({
|
|
4710
|
+
modelValue: D(E),
|
|
4711
|
+
"onUpdate:modelValue": i[3] ||= (e) => d(E) ? E.value = e : null,
|
|
4698
4712
|
label: "Geboortedatum partner",
|
|
4699
4713
|
name: "partnerBirthdate",
|
|
4700
|
-
"error-message":
|
|
4701
|
-
},
|
|
4714
|
+
"error-message": D(k)
|
|
4715
|
+
}, D(O)), null, 16, ["modelValue", "error-message"])]),
|
|
4702
4716
|
_: 1
|
|
4703
4717
|
})) : r("", !0)
|
|
4704
4718
|
]),
|
|
@@ -4708,7 +4722,7 @@ var Pi = (e) => R({
|
|
|
4708
4722
|
});
|
|
4709
4723
|
//#endregion
|
|
4710
4724
|
//#region src/comparisons/package/package.presenter.ts
|
|
4711
|
-
function
|
|
4725
|
+
function Bi(e) {
|
|
4712
4726
|
return {
|
|
4713
4727
|
comparison: V.Package,
|
|
4714
4728
|
detail: { partner: { birthdate: e.partnerBirthdate } },
|
|
@@ -4725,18 +4739,18 @@ function Ii(e) {
|
|
|
4725
4739
|
}
|
|
4726
4740
|
//#endregion
|
|
4727
4741
|
//#region src/comparisons/loan/constants.ts
|
|
4728
|
-
var
|
|
4742
|
+
var Vi = {
|
|
4729
4743
|
min: 21,
|
|
4730
4744
|
max: 74
|
|
4731
|
-
},
|
|
4745
|
+
}, Hi = {
|
|
4732
4746
|
min: 3500,
|
|
4733
4747
|
max: 75e3
|
|
4734
|
-
},
|
|
4748
|
+
}, Ui = R({
|
|
4735
4749
|
LoanPurpose: z().required(Q.loan.purposeRequired),
|
|
4736
|
-
LoanAmount:
|
|
4737
|
-
birthdate: $(
|
|
4738
|
-
familyComposition:
|
|
4739
|
-
}),
|
|
4750
|
+
LoanAmount: Zr(Q.loan.amountRequired).min(Hi.min, Q.loan.amountMin(Hi.min)).max(Hi.max, Q.loan.amountMax(Hi.max)),
|
|
4751
|
+
birthdate: $(Vi),
|
|
4752
|
+
familyComposition: $r
|
|
4753
|
+
}), Wi = [
|
|
4740
4754
|
{
|
|
4741
4755
|
title: "Aankoop auto",
|
|
4742
4756
|
value: "02"
|
|
@@ -4785,7 +4799,7 @@ var Li = {
|
|
|
4785
4799
|
title: "Anders",
|
|
4786
4800
|
value: "99"
|
|
4787
4801
|
}
|
|
4788
|
-
],
|
|
4802
|
+
], Gi = /* @__PURE__ */ l({
|
|
4789
4803
|
__name: "LoanForm",
|
|
4790
4804
|
props: /*@__PURE__*/ f({
|
|
4791
4805
|
initialData: {},
|
|
@@ -4804,48 +4818,48 @@ var Li = {
|
|
|
4804
4818
|
}),
|
|
4805
4819
|
emits: ["submitted"],
|
|
4806
4820
|
setup(e, { emit: t }) {
|
|
4807
|
-
let r = e, i = q(r), a = t, { isSubmitting: o, handleSubmit: s, defineField: l } = Z(
|
|
4821
|
+
let r = e, i = q(r), a = t, { isSubmitting: o, handleSubmit: s, defineField: l } = Z(Ui, {
|
|
4808
4822
|
LoanPurpose: r.initialData?.LoanPurpose ?? "",
|
|
4809
4823
|
LoanAmount: r.initialData?.LoanAmount ?? null,
|
|
4810
4824
|
birthdate: r.initialData?.birthdate ?? "",
|
|
4811
4825
|
familyComposition: r.initialData?.familyComposition ?? H.SingleWithoutChildren
|
|
4812
|
-
}), [u, f, p] = l("LoanPurpose", { validateAt: "change" }), [h, g, _] = l("LoanAmount"), [v,
|
|
4826
|
+
}), [u, f, p] = l("LoanPurpose", { validateAt: "change" }), [h, g, _] = l("LoanAmount"), [v, y, x] = l("birthdate"), [S, C, w] = l("familyComposition", { validateAt: "change" });
|
|
4813
4827
|
function T() {
|
|
4814
4828
|
s((e) => {
|
|
4815
4829
|
a("submitted", { ...e });
|
|
4816
4830
|
});
|
|
4817
4831
|
}
|
|
4818
|
-
return (t, r) => (
|
|
4819
|
-
"submit-disabled": e.submitDisabled ||
|
|
4832
|
+
return (t, r) => (b(), n(D(Y), m(D(i), {
|
|
4833
|
+
"submit-disabled": e.submitDisabled || D(o),
|
|
4820
4834
|
onSubmit: T
|
|
4821
4835
|
}), {
|
|
4822
|
-
default:
|
|
4823
|
-
c(
|
|
4836
|
+
default: F(() => [
|
|
4837
|
+
c(D(J), {
|
|
4824
4838
|
span: "3",
|
|
4825
4839
|
md: "6"
|
|
4826
4840
|
}, {
|
|
4827
|
-
default:
|
|
4828
|
-
modelValue:
|
|
4841
|
+
default: F(() => [c(D(nt), m({
|
|
4842
|
+
modelValue: D(u),
|
|
4829
4843
|
"onUpdate:modelValue": r[0] ||= (e) => d(u) ? u.value = e : null,
|
|
4830
4844
|
label: "Leendoel",
|
|
4831
4845
|
placeholder: "Maak een keuze",
|
|
4832
|
-
options:
|
|
4846
|
+
options: D(Wi),
|
|
4833
4847
|
name: "LoanPurpose",
|
|
4834
4848
|
required: !1,
|
|
4835
|
-
"error-message":
|
|
4836
|
-
},
|
|
4849
|
+
"error-message": D(p)
|
|
4850
|
+
}, D(f)), null, 16, [
|
|
4837
4851
|
"modelValue",
|
|
4838
4852
|
"options",
|
|
4839
4853
|
"error-message"
|
|
4840
4854
|
])]),
|
|
4841
4855
|
_: 1
|
|
4842
4856
|
}),
|
|
4843
|
-
c(
|
|
4857
|
+
c(D(J), {
|
|
4844
4858
|
span: "2",
|
|
4845
4859
|
md: "6"
|
|
4846
4860
|
}, {
|
|
4847
|
-
default:
|
|
4848
|
-
modelValue:
|
|
4861
|
+
default: F(() => [c(D(Ge), m({
|
|
4862
|
+
modelValue: D(h),
|
|
4849
4863
|
"onUpdate:modelValue": r[1] ||= (e) => d(h) ? h.value = e : null,
|
|
4850
4864
|
modelModifiers: { number: !0 },
|
|
4851
4865
|
label: "Leenbedrag",
|
|
@@ -4855,30 +4869,30 @@ var Li = {
|
|
|
4855
4869
|
mask: "#####",
|
|
4856
4870
|
inputmode: "numeric",
|
|
4857
4871
|
required: !1,
|
|
4858
|
-
"error-message":
|
|
4859
|
-
},
|
|
4872
|
+
"error-message": D(_)
|
|
4873
|
+
}, D(g)), null, 16, ["modelValue", "error-message"])]),
|
|
4860
4874
|
_: 1
|
|
4861
4875
|
}),
|
|
4862
|
-
c(
|
|
4876
|
+
c(D(J), {
|
|
4863
4877
|
span: "2",
|
|
4864
4878
|
md: "6"
|
|
4865
4879
|
}, {
|
|
4866
|
-
default:
|
|
4867
|
-
modelValue:
|
|
4880
|
+
default: F(() => [c(D(X), m({
|
|
4881
|
+
modelValue: D(v),
|
|
4868
4882
|
"onUpdate:modelValue": r[2] ||= (e) => d(v) ? v.value = e : null,
|
|
4869
|
-
"error-message":
|
|
4870
|
-
},
|
|
4883
|
+
"error-message": D(x)
|
|
4884
|
+
}, D(y)), null, 16, ["modelValue", "error-message"])]),
|
|
4871
4885
|
_: 1
|
|
4872
4886
|
}),
|
|
4873
|
-
c(
|
|
4887
|
+
c(D(J), {
|
|
4874
4888
|
span: "3",
|
|
4875
4889
|
md: "6"
|
|
4876
4890
|
}, {
|
|
4877
|
-
default:
|
|
4878
|
-
modelValue:
|
|
4891
|
+
default: F(() => [c(D(hn), m({
|
|
4892
|
+
modelValue: D(S),
|
|
4879
4893
|
"onUpdate:modelValue": r[3] ||= (e) => d(S) ? S.value = e : null,
|
|
4880
|
-
"error-message":
|
|
4881
|
-
},
|
|
4894
|
+
"error-message": D(w)
|
|
4895
|
+
}, D(C)), null, 16, ["modelValue", "error-message"])]),
|
|
4882
4896
|
_: 1
|
|
4883
4897
|
})
|
|
4884
4898
|
]),
|
|
@@ -4888,19 +4902,19 @@ var Li = {
|
|
|
4888
4902
|
});
|
|
4889
4903
|
//#endregion
|
|
4890
4904
|
//#region src/comparisons/loan/loan.presenter.ts
|
|
4891
|
-
function
|
|
4892
|
-
let t =
|
|
4905
|
+
function Ki(e) {
|
|
4906
|
+
let t = Vr(e, Ir);
|
|
4893
4907
|
if (!t) return 120;
|
|
4894
|
-
let n = t.add(76, "year").diff(
|
|
4908
|
+
let n = t.add(76, "year").diff(Ae(), "month", !0), r = Math.floor(n / 12) * 12;
|
|
4895
4909
|
return Math.min(r, 120);
|
|
4896
4910
|
}
|
|
4897
|
-
function
|
|
4911
|
+
function qi(e) {
|
|
4898
4912
|
return {
|
|
4899
4913
|
comparison: V.Loan,
|
|
4900
4914
|
detail: { loan: {
|
|
4901
4915
|
LoanPurpose: e.LoanPurpose,
|
|
4902
4916
|
LoanAmount: e.LoanAmount,
|
|
4903
|
-
MaxDurationByLegalLimit:
|
|
4917
|
+
MaxDurationByLegalLimit: Ki(e.birthdate)
|
|
4904
4918
|
} },
|
|
4905
4919
|
user: {
|
|
4906
4920
|
birthdate: e.birthdate,
|
|
@@ -4910,14 +4924,14 @@ function Ui(e) {
|
|
|
4910
4924
|
}
|
|
4911
4925
|
//#endregion
|
|
4912
4926
|
//#region src/comparisons/moped/constants.ts
|
|
4913
|
-
var
|
|
4927
|
+
var Ji = {
|
|
4914
4928
|
min: 16,
|
|
4915
4929
|
max: 99
|
|
4916
|
-
},
|
|
4930
|
+
}, Yi = (e, t) => R({
|
|
4917
4931
|
licensePlate: e,
|
|
4918
4932
|
address: t,
|
|
4919
|
-
birthdate: $(
|
|
4920
|
-
}),
|
|
4933
|
+
birthdate: $(Ji)
|
|
4934
|
+
}), Xi = /* @__PURE__ */ l({
|
|
4921
4935
|
__name: "MopedForm",
|
|
4922
4936
|
props: /*@__PURE__*/ f({
|
|
4923
4937
|
initialData: {},
|
|
@@ -4936,12 +4950,12 @@ var Wi = {
|
|
|
4936
4950
|
}),
|
|
4937
4951
|
emits: ["submitted"],
|
|
4938
4952
|
setup(e, { emit: t }) {
|
|
4939
|
-
let r = e, i = q(r), a = t, { addressSchema: o, draft: s, resolvedAddress: l, additionOptions: u } =
|
|
4953
|
+
let r = e, i = q(r), a = t, { addressSchema: o, draft: s, resolvedAddress: l, additionOptions: u } = Hn({ initial: r.initialData?.address }), { vehicleData: f, licensePlateSchema: p } = cr(V.Moped, { initialData: r.initialData?.vehicle ?? void 0 }), { isSubmitting: h, handleSubmit: g, defineField: _ } = Z(Yi(p, o), {
|
|
4940
4954
|
licensePlate: r.initialData?.licensePlate ?? "",
|
|
4941
4955
|
birthdate: r.initialData?.birthdate ?? "",
|
|
4942
4956
|
address: s
|
|
4943
|
-
}), [v,
|
|
4944
|
-
function
|
|
4957
|
+
}), [v, y, x, S] = _("licensePlate"), [C, w, T] = _("birthdate");
|
|
4958
|
+
function E() {
|
|
4945
4959
|
g(({ licensePlate: e, birthdate: t }) => {
|
|
4946
4960
|
a("submitted", {
|
|
4947
4961
|
licensePlate: e,
|
|
@@ -4951,25 +4965,25 @@ var Wi = {
|
|
|
4951
4965
|
});
|
|
4952
4966
|
});
|
|
4953
4967
|
}
|
|
4954
|
-
return (t, r) => (
|
|
4955
|
-
"submit-disabled": e.submitDisabled ||
|
|
4956
|
-
onSubmit:
|
|
4968
|
+
return (t, r) => (b(), n(D(Y), m(D(i), {
|
|
4969
|
+
"submit-disabled": e.submitDisabled || D(h),
|
|
4970
|
+
onSubmit: E
|
|
4957
4971
|
}), {
|
|
4958
|
-
default:
|
|
4959
|
-
c(
|
|
4972
|
+
default: F(() => [
|
|
4973
|
+
c(D(J), {
|
|
4960
4974
|
span: "3",
|
|
4961
4975
|
md: "6"
|
|
4962
4976
|
}, {
|
|
4963
|
-
default:
|
|
4964
|
-
modelValue:
|
|
4977
|
+
default: F(() => [c(D(nr), m({
|
|
4978
|
+
modelValue: D(v),
|
|
4965
4979
|
"onUpdate:modelValue": r[0] ||= (e) => d(v) ? v.value = e : null,
|
|
4966
|
-
"vehicle-data":
|
|
4980
|
+
"vehicle-data": D(f),
|
|
4967
4981
|
"onUpdate:vehicleData": r[1] ||= (e) => d(f) ? f.value = e : null,
|
|
4968
4982
|
name: "licensePlate",
|
|
4969
|
-
"error-message":
|
|
4970
|
-
loading:
|
|
4971
|
-
},
|
|
4972
|
-
popover:
|
|
4983
|
+
"error-message": D(x),
|
|
4984
|
+
loading: D(S).isValidating
|
|
4985
|
+
}, D(y)), {
|
|
4986
|
+
popover: F(() => [c(D(G), {
|
|
4973
4987
|
"ref-variant": "blue-icon",
|
|
4974
4988
|
"tooltip-variant": "blue",
|
|
4975
4989
|
"tooltip-size": "small",
|
|
@@ -4987,27 +5001,27 @@ var Wi = {
|
|
|
4987
5001
|
])]),
|
|
4988
5002
|
_: 1
|
|
4989
5003
|
}),
|
|
4990
|
-
c(
|
|
5004
|
+
c(D(J), {
|
|
4991
5005
|
span: "4",
|
|
4992
5006
|
md: "6"
|
|
4993
5007
|
}, {
|
|
4994
|
-
default:
|
|
4995
|
-
"resolved-address":
|
|
5008
|
+
default: F(() => [c(D(Dn), {
|
|
5009
|
+
"resolved-address": D(l),
|
|
4996
5010
|
"onUpdate:resolvedAddress": r[2] ||= (e) => d(l) ? l.value = e : null,
|
|
4997
|
-
"addition-options":
|
|
5011
|
+
"addition-options": D(u)
|
|
4998
5012
|
}, null, 8, ["resolved-address", "addition-options"])]),
|
|
4999
5013
|
_: 1
|
|
5000
5014
|
}),
|
|
5001
|
-
c(
|
|
5015
|
+
c(D(J), {
|
|
5002
5016
|
span: "3",
|
|
5003
5017
|
md: "6"
|
|
5004
5018
|
}, {
|
|
5005
|
-
default:
|
|
5006
|
-
modelValue:
|
|
5019
|
+
default: F(() => [c(D(X), m({
|
|
5020
|
+
modelValue: D(C),
|
|
5007
5021
|
"onUpdate:modelValue": r[3] ||= (e) => d(C) ? C.value = e : null,
|
|
5008
5022
|
label: "Geboortedatum hoofdbestuurder",
|
|
5009
|
-
"error-message":
|
|
5010
|
-
},
|
|
5023
|
+
"error-message": D(T)
|
|
5024
|
+
}, D(w)), null, 16, ["modelValue", "error-message"])]),
|
|
5011
5025
|
_: 1
|
|
5012
5026
|
})
|
|
5013
5027
|
]),
|
|
@@ -5017,7 +5031,7 @@ var Wi = {
|
|
|
5017
5031
|
});
|
|
5018
5032
|
//#endregion
|
|
5019
5033
|
//#region src/comparisons/moped/moped.presenter.ts
|
|
5020
|
-
function
|
|
5034
|
+
function Zi(e) {
|
|
5021
5035
|
return {
|
|
5022
5036
|
comparison: V.Moped,
|
|
5023
5037
|
detail: { moped: { ...e.vehicle } },
|
|
@@ -5034,11 +5048,11 @@ function qi(e) {
|
|
|
5034
5048
|
}
|
|
5035
5049
|
//#endregion
|
|
5036
5050
|
//#region src/comparisons/motor/motor.schema.ts
|
|
5037
|
-
var
|
|
5051
|
+
var Qi = (e, t) => R({
|
|
5038
5052
|
licensePlate: e,
|
|
5039
5053
|
address: t,
|
|
5040
5054
|
birthdate: $()
|
|
5041
|
-
}),
|
|
5055
|
+
}), $i = /* @__PURE__ */ l({
|
|
5042
5056
|
__name: "MotorForm",
|
|
5043
5057
|
props: /*@__PURE__*/ f({
|
|
5044
5058
|
initialData: {},
|
|
@@ -5057,12 +5071,12 @@ var Ji = (e, t) => R({
|
|
|
5057
5071
|
}),
|
|
5058
5072
|
emits: ["submitted"],
|
|
5059
5073
|
setup(e, { emit: t }) {
|
|
5060
|
-
let r = e, i = q(r), a = t, { addressSchema: o, draft: s, resolvedAddress: l, additionOptions: u } =
|
|
5074
|
+
let r = e, i = q(r), a = t, { addressSchema: o, draft: s, resolvedAddress: l, additionOptions: u } = Hn({ initial: r.initialData?.address }), { vehicleData: f, licensePlateSchema: p } = cr(V.Motor, { initialData: r.initialData?.vehicle ?? void 0 }), { isSubmitting: h, handleSubmit: g, defineField: _ } = Z(Qi(p, o), {
|
|
5061
5075
|
licensePlate: r.initialData?.licensePlate ?? "",
|
|
5062
5076
|
birthdate: r.initialData?.birthdate ?? "",
|
|
5063
5077
|
address: s
|
|
5064
|
-
}), [v,
|
|
5065
|
-
function
|
|
5078
|
+
}), [v, y, x, S] = _("licensePlate"), [C, w, T] = _("birthdate");
|
|
5079
|
+
function E() {
|
|
5066
5080
|
g(({ licensePlate: e, birthdate: t }) => {
|
|
5067
5081
|
a("submitted", {
|
|
5068
5082
|
licensePlate: e,
|
|
@@ -5072,25 +5086,25 @@ var Ji = (e, t) => R({
|
|
|
5072
5086
|
});
|
|
5073
5087
|
});
|
|
5074
5088
|
}
|
|
5075
|
-
return (t, r) => (
|
|
5076
|
-
"submit-disabled": e.submitDisabled ||
|
|
5077
|
-
onSubmit:
|
|
5089
|
+
return (t, r) => (b(), n(D(Y), m(D(i), {
|
|
5090
|
+
"submit-disabled": e.submitDisabled || D(h),
|
|
5091
|
+
onSubmit: E
|
|
5078
5092
|
}), {
|
|
5079
|
-
default:
|
|
5080
|
-
c(
|
|
5093
|
+
default: F(() => [
|
|
5094
|
+
c(D(J), {
|
|
5081
5095
|
span: "3",
|
|
5082
5096
|
md: "6"
|
|
5083
5097
|
}, {
|
|
5084
|
-
default:
|
|
5085
|
-
modelValue:
|
|
5098
|
+
default: F(() => [c(D(nr), m({
|
|
5099
|
+
modelValue: D(v),
|
|
5086
5100
|
"onUpdate:modelValue": r[0] ||= (e) => d(v) ? v.value = e : null,
|
|
5087
|
-
"vehicle-data":
|
|
5101
|
+
"vehicle-data": D(f),
|
|
5088
5102
|
"onUpdate:vehicleData": r[1] ||= (e) => d(f) ? f.value = e : null,
|
|
5089
5103
|
name: "licensePlate",
|
|
5090
|
-
"error-message":
|
|
5091
|
-
loading:
|
|
5092
|
-
},
|
|
5093
|
-
popover:
|
|
5104
|
+
"error-message": D(x),
|
|
5105
|
+
loading: D(S).isValidating
|
|
5106
|
+
}, D(y)), {
|
|
5107
|
+
popover: F(() => [c(D(G), {
|
|
5094
5108
|
"ref-variant": "blue-icon",
|
|
5095
5109
|
"tooltip-variant": "blue",
|
|
5096
5110
|
"tooltip-size": "small",
|
|
@@ -5108,27 +5122,27 @@ var Ji = (e, t) => R({
|
|
|
5108
5122
|
])]),
|
|
5109
5123
|
_: 1
|
|
5110
5124
|
}),
|
|
5111
|
-
c(
|
|
5125
|
+
c(D(J), {
|
|
5112
5126
|
span: "4",
|
|
5113
5127
|
md: "6"
|
|
5114
5128
|
}, {
|
|
5115
|
-
default:
|
|
5116
|
-
"resolved-address":
|
|
5129
|
+
default: F(() => [c(D(Dn), {
|
|
5130
|
+
"resolved-address": D(l),
|
|
5117
5131
|
"onUpdate:resolvedAddress": r[2] ||= (e) => d(l) ? l.value = e : null,
|
|
5118
|
-
"addition-options":
|
|
5132
|
+
"addition-options": D(u)
|
|
5119
5133
|
}, null, 8, ["resolved-address", "addition-options"])]),
|
|
5120
5134
|
_: 1
|
|
5121
5135
|
}),
|
|
5122
|
-
c(
|
|
5136
|
+
c(D(J), {
|
|
5123
5137
|
span: "3",
|
|
5124
5138
|
md: "6"
|
|
5125
5139
|
}, {
|
|
5126
|
-
default:
|
|
5127
|
-
modelValue:
|
|
5140
|
+
default: F(() => [c(D(X), m({
|
|
5141
|
+
modelValue: D(C),
|
|
5128
5142
|
"onUpdate:modelValue": r[3] ||= (e) => d(C) ? C.value = e : null,
|
|
5129
5143
|
label: "Geboortedatum hoofdbestuurder",
|
|
5130
|
-
"error-message":
|
|
5131
|
-
},
|
|
5144
|
+
"error-message": D(T)
|
|
5145
|
+
}, D(w)), null, 16, ["modelValue", "error-message"])]),
|
|
5132
5146
|
_: 1
|
|
5133
5147
|
})
|
|
5134
5148
|
]),
|
|
@@ -5138,7 +5152,7 @@ var Ji = (e, t) => R({
|
|
|
5138
5152
|
});
|
|
5139
5153
|
//#endregion
|
|
5140
5154
|
//#region src/comparisons/motor/motor.presenter.ts
|
|
5141
|
-
function
|
|
5155
|
+
function ea(e) {
|
|
5142
5156
|
return {
|
|
5143
5157
|
comparison: V.Motor,
|
|
5144
5158
|
detail: { motor: { ...e.vehicle } },
|
|
@@ -5155,11 +5169,11 @@ function Xi(e) {
|
|
|
5155
5169
|
}
|
|
5156
5170
|
//#endregion
|
|
5157
5171
|
//#region src/comparisons/car/car.schema.ts
|
|
5158
|
-
var
|
|
5172
|
+
var ta = (e, t) => R({
|
|
5159
5173
|
licensePlate: e,
|
|
5160
5174
|
address: t,
|
|
5161
5175
|
birthdate: $()
|
|
5162
|
-
}),
|
|
5176
|
+
}), na = /* @__PURE__ */ l({
|
|
5163
5177
|
__name: "CarForm",
|
|
5164
5178
|
props: /*@__PURE__*/ f({
|
|
5165
5179
|
initialData: {},
|
|
@@ -5178,12 +5192,12 @@ var Zi = (e, t) => R({
|
|
|
5178
5192
|
}),
|
|
5179
5193
|
emits: ["submitted"],
|
|
5180
5194
|
setup(e, { emit: t }) {
|
|
5181
|
-
let r = e, i = q(r), a = t, { addressSchema: o, draft: s, resolvedAddress: l, additionOptions: u } =
|
|
5195
|
+
let r = e, i = q(r), a = t, { addressSchema: o, draft: s, resolvedAddress: l, additionOptions: u } = Hn({ initial: r.initialData?.address }), { vehicleData: f, licensePlateSchema: p } = cr(V.Car, { initialData: r.initialData?.vehicle ?? void 0 }), { isSubmitting: h, handleSubmit: g, defineField: _ } = Z(ta(p, o), {
|
|
5182
5196
|
licensePlate: r.initialData?.licensePlate ?? "",
|
|
5183
5197
|
birthdate: r.initialData?.birthdate ?? "",
|
|
5184
5198
|
address: s
|
|
5185
|
-
}), [v,
|
|
5186
|
-
function
|
|
5199
|
+
}), [v, y, x, S] = _("licensePlate"), [C, w, T] = _("birthdate");
|
|
5200
|
+
function E() {
|
|
5187
5201
|
g(({ licensePlate: e, birthdate: t }) => {
|
|
5188
5202
|
a("submitted", {
|
|
5189
5203
|
licensePlate: e,
|
|
@@ -5193,25 +5207,25 @@ var Zi = (e, t) => R({
|
|
|
5193
5207
|
});
|
|
5194
5208
|
});
|
|
5195
5209
|
}
|
|
5196
|
-
return (t, r) => (
|
|
5197
|
-
"submit-disabled": e.submitDisabled ||
|
|
5198
|
-
onSubmit:
|
|
5210
|
+
return (t, r) => (b(), n(D(Y), m(D(i), {
|
|
5211
|
+
"submit-disabled": e.submitDisabled || D(h),
|
|
5212
|
+
onSubmit: E
|
|
5199
5213
|
}), {
|
|
5200
|
-
default:
|
|
5201
|
-
c(
|
|
5214
|
+
default: F(() => [
|
|
5215
|
+
c(D(J), {
|
|
5202
5216
|
span: "3",
|
|
5203
5217
|
md: "6"
|
|
5204
5218
|
}, {
|
|
5205
|
-
default:
|
|
5206
|
-
modelValue:
|
|
5219
|
+
default: F(() => [c(D(nr), m({
|
|
5220
|
+
modelValue: D(v),
|
|
5207
5221
|
"onUpdate:modelValue": r[0] ||= (e) => d(v) ? v.value = e : null,
|
|
5208
|
-
"vehicle-data":
|
|
5222
|
+
"vehicle-data": D(f),
|
|
5209
5223
|
"onUpdate:vehicleData": r[1] ||= (e) => d(f) ? f.value = e : null,
|
|
5210
5224
|
name: "licensePlate",
|
|
5211
|
-
"error-message":
|
|
5212
|
-
loading:
|
|
5213
|
-
},
|
|
5214
|
-
popover:
|
|
5225
|
+
"error-message": D(x),
|
|
5226
|
+
loading: D(S).isValidating
|
|
5227
|
+
}, D(y)), {
|
|
5228
|
+
popover: F(() => [c(D(G), {
|
|
5215
5229
|
"ref-variant": "blue-icon",
|
|
5216
5230
|
"tooltip-variant": "blue",
|
|
5217
5231
|
"tooltip-size": "small",
|
|
@@ -5229,27 +5243,27 @@ var Zi = (e, t) => R({
|
|
|
5229
5243
|
])]),
|
|
5230
5244
|
_: 1
|
|
5231
5245
|
}),
|
|
5232
|
-
c(
|
|
5246
|
+
c(D(J), {
|
|
5233
5247
|
span: "4",
|
|
5234
5248
|
md: "6"
|
|
5235
5249
|
}, {
|
|
5236
|
-
default:
|
|
5237
|
-
"resolved-address":
|
|
5250
|
+
default: F(() => [c(D(Dn), {
|
|
5251
|
+
"resolved-address": D(l),
|
|
5238
5252
|
"onUpdate:resolvedAddress": r[2] ||= (e) => d(l) ? l.value = e : null,
|
|
5239
|
-
"addition-options":
|
|
5253
|
+
"addition-options": D(u)
|
|
5240
5254
|
}, null, 8, ["resolved-address", "addition-options"])]),
|
|
5241
5255
|
_: 1
|
|
5242
5256
|
}),
|
|
5243
|
-
c(
|
|
5257
|
+
c(D(J), {
|
|
5244
5258
|
span: "3",
|
|
5245
5259
|
md: "6"
|
|
5246
5260
|
}, {
|
|
5247
|
-
default:
|
|
5248
|
-
modelValue:
|
|
5261
|
+
default: F(() => [c(D(X), m({
|
|
5262
|
+
modelValue: D(C),
|
|
5249
5263
|
"onUpdate:modelValue": r[3] ||= (e) => d(C) ? C.value = e : null,
|
|
5250
5264
|
label: "Geboortedatum hoofdbestuurder",
|
|
5251
|
-
"error-message":
|
|
5252
|
-
},
|
|
5265
|
+
"error-message": D(T)
|
|
5266
|
+
}, D(w)), null, 16, ["modelValue", "error-message"])]),
|
|
5253
5267
|
_: 1
|
|
5254
5268
|
})
|
|
5255
5269
|
]),
|
|
@@ -5259,7 +5273,7 @@ var Zi = (e, t) => R({
|
|
|
5259
5273
|
});
|
|
5260
5274
|
//#endregion
|
|
5261
5275
|
//#region src/comparisons/car/car.presenter.ts
|
|
5262
|
-
function
|
|
5276
|
+
function ra(e) {
|
|
5263
5277
|
return {
|
|
5264
5278
|
comparison: V.Car,
|
|
5265
5279
|
detail: { car: { ...e.vehicle } },
|
|
@@ -5276,10 +5290,10 @@ function $i(e) {
|
|
|
5276
5290
|
}
|
|
5277
5291
|
//#endregion
|
|
5278
5292
|
//#region src/comparisons/car-business/businessCar.schema.ts
|
|
5279
|
-
var
|
|
5293
|
+
var ia = (e) => R({
|
|
5280
5294
|
licensePlate: e,
|
|
5281
|
-
company:
|
|
5282
|
-
}),
|
|
5295
|
+
company: Pr()
|
|
5296
|
+
}), aa = /* @__PURE__ */ l({
|
|
5283
5297
|
__name: "BusinessCarForm",
|
|
5284
5298
|
props: /*@__PURE__*/ f({
|
|
5285
5299
|
initialData: {},
|
|
@@ -5298,10 +5312,10 @@ var ea = (e) => R({
|
|
|
5298
5312
|
}),
|
|
5299
5313
|
emits: ["submitted"],
|
|
5300
5314
|
setup(e, { emit: i }) {
|
|
5301
|
-
let a = e, o = q(a), s = i, { vehicleData: l, licensePlateSchema: u } =
|
|
5315
|
+
let a = e, o = q(a), s = i, { vehicleData: l, licensePlateSchema: u } = cr(V.Car, { initialData: a.initialData?.vehicle ?? void 0 }), { isSubmitting: f, handleSubmit: p, defineField: h, setErrors: g, removeError: _ } = Z(ia(u), {
|
|
5302
5316
|
licensePlate: a.initialData?.licensePlate ?? "",
|
|
5303
5317
|
company: a.initialData?.company ?? null
|
|
5304
|
-
}), [v,
|
|
5318
|
+
}), [v, y, x, S] = h("licensePlate"), [C, w, T] = h("company"), E = (e) => e ? g({ company: e }) : _("company"), O = t(() => !!C.value && !C.value.hasVisitingAddress);
|
|
5305
5319
|
function k() {
|
|
5306
5320
|
p(({ licensePlate: e, company: t }) => {
|
|
5307
5321
|
s("submitted", {
|
|
@@ -5311,24 +5325,24 @@ var ea = (e) => R({
|
|
|
5311
5325
|
});
|
|
5312
5326
|
});
|
|
5313
5327
|
}
|
|
5314
|
-
return (t, i) => (
|
|
5315
|
-
"submit-disabled": e.submitDisabled ||
|
|
5328
|
+
return (t, i) => (b(), n(D(Y), m(D(o), {
|
|
5329
|
+
"submit-disabled": e.submitDisabled || D(f) || O.value,
|
|
5316
5330
|
onSubmit: k
|
|
5317
5331
|
}), {
|
|
5318
|
-
default:
|
|
5332
|
+
default: F(() => [c(D(J), {
|
|
5319
5333
|
span: "5",
|
|
5320
5334
|
md: "6"
|
|
5321
5335
|
}, {
|
|
5322
|
-
default:
|
|
5323
|
-
modelValue:
|
|
5336
|
+
default: F(() => [c(D(nr), m({
|
|
5337
|
+
modelValue: D(v),
|
|
5324
5338
|
"onUpdate:modelValue": i[0] ||= (e) => d(v) ? v.value = e : null,
|
|
5325
|
-
"vehicle-data":
|
|
5339
|
+
"vehicle-data": D(l),
|
|
5326
5340
|
"onUpdate:vehicleData": i[1] ||= (e) => d(l) ? l.value = e : null,
|
|
5327
5341
|
name: "licensePlate",
|
|
5328
|
-
"error-message":
|
|
5329
|
-
loading:
|
|
5330
|
-
},
|
|
5331
|
-
popover:
|
|
5342
|
+
"error-message": D(x),
|
|
5343
|
+
loading: D(S).isValidating
|
|
5344
|
+
}, D(y)), {
|
|
5345
|
+
popover: F(() => [c(D(G), {
|
|
5332
5346
|
"ref-variant": "blue-icon",
|
|
5333
5347
|
"tooltip-variant": "blue",
|
|
5334
5348
|
"tooltip-size": "small",
|
|
@@ -5345,17 +5359,17 @@ var ea = (e) => R({
|
|
|
5345
5359
|
"loading"
|
|
5346
5360
|
])]),
|
|
5347
5361
|
_: 1
|
|
5348
|
-
}), c(
|
|
5362
|
+
}), c(D(J), {
|
|
5349
5363
|
span: "5",
|
|
5350
5364
|
md: "6"
|
|
5351
5365
|
}, {
|
|
5352
|
-
default:
|
|
5353
|
-
modelValue:
|
|
5366
|
+
default: F(() => [c(D(Nr), m({
|
|
5367
|
+
modelValue: D(C),
|
|
5354
5368
|
"onUpdate:modelValue": i[2] ||= (e) => d(C) ? C.value = e : null,
|
|
5355
5369
|
name: "company",
|
|
5356
|
-
"error-message":
|
|
5357
|
-
},
|
|
5358
|
-
popover:
|
|
5370
|
+
"error-message": D(T)
|
|
5371
|
+
}, D(w), { onError: E }), {
|
|
5372
|
+
popover: F(() => [c(D(G), {
|
|
5359
5373
|
"ref-variant": "blue-icon",
|
|
5360
5374
|
"tooltip-variant": "blue",
|
|
5361
5375
|
"tooltip-size": "small",
|
|
@@ -5365,7 +5379,7 @@ var ea = (e) => R({
|
|
|
5365
5379
|
}
|
|
5366
5380
|
})]),
|
|
5367
5381
|
_: 1
|
|
5368
|
-
}, 16, ["modelValue", "error-message"]), O.value ? (
|
|
5382
|
+
}, 16, ["modelValue", "error-message"]), O.value ? (b(), n(D(Vt), {
|
|
5369
5383
|
key: 0,
|
|
5370
5384
|
style: { "margin-top": "12px" },
|
|
5371
5385
|
text: "Dit bedrijf heeft geen geregistreerd bezoekadres. Voeg dit toe bij de KvK om door te gaan met de aanvraag."
|
|
@@ -5378,7 +5392,7 @@ var ea = (e) => R({
|
|
|
5378
5392
|
});
|
|
5379
5393
|
//#endregion
|
|
5380
5394
|
//#region src/comparisons/car-business/businessCar.presenter.ts
|
|
5381
|
-
function
|
|
5395
|
+
function oa(e) {
|
|
5382
5396
|
return {
|
|
5383
5397
|
comparison: V.CarBusiness,
|
|
5384
5398
|
detail: {
|
|
@@ -5390,7 +5404,7 @@ function na(e) {
|
|
|
5390
5404
|
}
|
|
5391
5405
|
//#endregion
|
|
5392
5406
|
//#region src/comparisons/businessLiability/businessLiability.schema.ts
|
|
5393
|
-
var
|
|
5407
|
+
var sa = R({ company: Pr() }), ca = /* @__PURE__ */ l({
|
|
5394
5408
|
__name: "BusinessLiabilityForm",
|
|
5395
5409
|
props: /*@__PURE__*/ f({
|
|
5396
5410
|
initialData: {},
|
|
@@ -5411,28 +5425,28 @@ var ra = R({ company: Ar() }), ia = /* @__PURE__ */ l({
|
|
|
5411
5425
|
}),
|
|
5412
5426
|
emits: ["submitted"],
|
|
5413
5427
|
setup(e, { emit: i }) {
|
|
5414
|
-
let a = e, o = q(a), s = i, { isSubmitting: l, handleSubmit: u, defineField: f, setErrors: p, removeError: h } = Z(
|
|
5428
|
+
let a = e, o = q(a), s = i, { isSubmitting: l, handleSubmit: u, defineField: f, setErrors: p, removeError: h } = Z(sa, { company: a.initialData?.company ?? null }), [g, _, v] = f("company"), y = (e) => e ? p({ company: e }) : h("company"), x = t(() => !!g.value && !g.value.hasVisitingAddress);
|
|
5415
5429
|
function S() {
|
|
5416
5430
|
u(({ company: e }) => {
|
|
5417
5431
|
s("submitted", { company: e });
|
|
5418
5432
|
});
|
|
5419
5433
|
}
|
|
5420
|
-
return (e, t) => (
|
|
5434
|
+
return (e, t) => (b(), n(D(Y), m(D(o), {
|
|
5421
5435
|
"action-span": 4,
|
|
5422
|
-
"submit-disabled":
|
|
5436
|
+
"submit-disabled": D(l) || x.value,
|
|
5423
5437
|
onSubmit: S
|
|
5424
5438
|
}), {
|
|
5425
|
-
default:
|
|
5439
|
+
default: F(() => [c(D(J), {
|
|
5426
5440
|
span: "8",
|
|
5427
5441
|
md: "6"
|
|
5428
5442
|
}, {
|
|
5429
|
-
default:
|
|
5430
|
-
modelValue:
|
|
5443
|
+
default: F(() => [c(D(Nr), m({
|
|
5444
|
+
modelValue: D(g),
|
|
5431
5445
|
"onUpdate:modelValue": t[0] ||= (e) => d(g) ? g.value = e : null,
|
|
5432
5446
|
name: "company",
|
|
5433
|
-
"error-message":
|
|
5434
|
-
},
|
|
5435
|
-
popover:
|
|
5447
|
+
"error-message": D(v)
|
|
5448
|
+
}, D(_), { onError: y }), {
|
|
5449
|
+
popover: F(() => [c(D(G), {
|
|
5436
5450
|
"ref-variant": "blue-icon",
|
|
5437
5451
|
"tooltip-variant": "blue",
|
|
5438
5452
|
"tooltip-size": "small",
|
|
@@ -5442,7 +5456,7 @@ var ra = R({ company: Ar() }), ia = /* @__PURE__ */ l({
|
|
|
5442
5456
|
}
|
|
5443
5457
|
})]),
|
|
5444
5458
|
_: 1
|
|
5445
|
-
}, 16, ["modelValue", "error-message"]), x.value ? (
|
|
5459
|
+
}, 16, ["modelValue", "error-message"]), x.value ? (b(), n(D(Vt), {
|
|
5446
5460
|
key: 0,
|
|
5447
5461
|
style: { "margin-top": "12px" },
|
|
5448
5462
|
text: "Dit bedrijf heeft geen geregistreerd bezoekadres. Voeg dit toe bij de KvK om door te gaan met de aanvraag."
|
|
@@ -5455,7 +5469,7 @@ var ra = R({ company: Ar() }), ia = /* @__PURE__ */ l({
|
|
|
5455
5469
|
});
|
|
5456
5470
|
//#endregion
|
|
5457
5471
|
//#region src/comparisons/businessLiability/businessLiability.presenter.ts
|
|
5458
|
-
function
|
|
5472
|
+
function la(e) {
|
|
5459
5473
|
return {
|
|
5460
5474
|
comparison: V.BusinessLiability,
|
|
5461
5475
|
detail: { companyData: { ...e.company } },
|
|
@@ -5464,9 +5478,9 @@ function aa(e) {
|
|
|
5464
5478
|
}
|
|
5465
5479
|
//#endregion
|
|
5466
5480
|
//#region src/flow/useComparisonSubmit.ts
|
|
5467
|
-
var
|
|
5481
|
+
var ua = { [V.Travel]: "/tarieven/" }, da = (e, t, n) => `${e}#/${n}${ua[t] ?? ""}`, fa = (e) => {
|
|
5468
5482
|
window.location.href = e;
|
|
5469
|
-
},
|
|
5483
|
+
}, pa = ({ user: e, detail: t }) => new De({
|
|
5470
5484
|
email: e.email || null,
|
|
5471
5485
|
name: e.firstName || null,
|
|
5472
5486
|
zip_code: e.zipCode || null,
|
|
@@ -5480,14 +5494,14 @@ var oa = { [V.Travel]: "/tarieven/" }, sa = (e, t, n) => `${e}#/${n}${oa[t] ?? "
|
|
|
5480
5494
|
...e.city && { city: e.city }
|
|
5481
5495
|
}
|
|
5482
5496
|
});
|
|
5483
|
-
function
|
|
5484
|
-
let t =
|
|
5497
|
+
function ma(e) {
|
|
5498
|
+
let t = S(!1), n = S(null);
|
|
5485
5499
|
return {
|
|
5486
5500
|
submit: async (r) => {
|
|
5487
5501
|
t.value = !0, n.value = null;
|
|
5488
5502
|
try {
|
|
5489
|
-
let t = await
|
|
5490
|
-
e.onRedirect ? e.onRedirect(n) :
|
|
5503
|
+
let t = await on().comparisonService.create(r.comparison, pa(r)), n = da(e.link, r.comparison, t.getId());
|
|
5504
|
+
e.onRedirect ? e.onRedirect(n) : fa(n);
|
|
5491
5505
|
} catch (t) {
|
|
5492
5506
|
n.value = t, e.onError?.(t, r);
|
|
5493
5507
|
} finally {
|
|
@@ -5500,66 +5514,66 @@ function ua(e) {
|
|
|
5500
5514
|
}
|
|
5501
5515
|
//#endregion
|
|
5502
5516
|
//#region src/comparisons/bike/index.ts
|
|
5503
|
-
var
|
|
5504
|
-
Form: () =>
|
|
5505
|
-
presenter: () =>
|
|
5506
|
-
}), fa = /* @__PURE__ */ B({
|
|
5507
|
-
Form: () => di,
|
|
5508
|
-
presenter: () => fi
|
|
5509
|
-
}), pa = /* @__PURE__ */ B({
|
|
5510
|
-
Form: () => _i,
|
|
5511
|
-
presenter: () => vi
|
|
5512
|
-
}), ma = /* @__PURE__ */ B({
|
|
5513
|
-
Form: () => Si,
|
|
5514
|
-
presenter: () => Ci
|
|
5515
|
-
}), ha = /* @__PURE__ */ B({
|
|
5516
|
-
Form: () => Ti,
|
|
5517
|
-
presenter: () => Ei
|
|
5517
|
+
var ha = /* @__PURE__ */ B({
|
|
5518
|
+
Form: () => ui,
|
|
5519
|
+
presenter: () => di
|
|
5518
5520
|
}), ga = /* @__PURE__ */ B({
|
|
5519
|
-
Form: () =>
|
|
5520
|
-
presenter: () =>
|
|
5521
|
+
Form: () => hi,
|
|
5522
|
+
presenter: () => gi
|
|
5521
5523
|
}), _a = /* @__PURE__ */ B({
|
|
5522
|
-
Form: () =>
|
|
5523
|
-
presenter: () =>
|
|
5524
|
+
Form: () => xi,
|
|
5525
|
+
presenter: () => Si
|
|
5524
5526
|
}), va = /* @__PURE__ */ B({
|
|
5525
|
-
Form: () =>
|
|
5526
|
-
presenter: () =>
|
|
5527
|
+
Form: () => Ei,
|
|
5528
|
+
presenter: () => Di
|
|
5527
5529
|
}), ya = /* @__PURE__ */ B({
|
|
5528
|
-
Form: () =>
|
|
5529
|
-
presenter: () =>
|
|
5530
|
+
Form: () => ki,
|
|
5531
|
+
presenter: () => Ai
|
|
5530
5532
|
}), ba = /* @__PURE__ */ B({
|
|
5531
|
-
Form: () =>
|
|
5532
|
-
presenter: () =>
|
|
5533
|
+
Form: () => Ni,
|
|
5534
|
+
presenter: () => Pi
|
|
5533
5535
|
}), xa = /* @__PURE__ */ B({
|
|
5534
|
-
Form: () =>
|
|
5535
|
-
presenter: () =>
|
|
5536
|
+
Form: () => Ii,
|
|
5537
|
+
presenter: () => Li
|
|
5536
5538
|
}), Sa = /* @__PURE__ */ B({
|
|
5537
|
-
Form: () =>
|
|
5538
|
-
presenter: () =>
|
|
5539
|
+
Form: () => zi,
|
|
5540
|
+
presenter: () => Bi
|
|
5539
5541
|
}), Ca = /* @__PURE__ */ B({
|
|
5540
|
-
Form: () =>
|
|
5541
|
-
presenter: () =>
|
|
5542
|
+
Form: () => Gi,
|
|
5543
|
+
presenter: () => qi
|
|
5542
5544
|
}), wa = /* @__PURE__ */ B({
|
|
5543
|
-
Form: () =>
|
|
5544
|
-
presenter: () =>
|
|
5545
|
-
}), Ta = {
|
|
5546
|
-
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
|
|
5552
|
-
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
[V.
|
|
5559
|
-
[V.
|
|
5560
|
-
|
|
5561
|
-
[V.
|
|
5562
|
-
|
|
5545
|
+
Form: () => Xi,
|
|
5546
|
+
presenter: () => Zi
|
|
5547
|
+
}), Ta = /* @__PURE__ */ B({
|
|
5548
|
+
Form: () => $i,
|
|
5549
|
+
presenter: () => ea
|
|
5550
|
+
}), Ea = /* @__PURE__ */ B({
|
|
5551
|
+
Form: () => na,
|
|
5552
|
+
presenter: () => ra
|
|
5553
|
+
}), Da = /* @__PURE__ */ B({
|
|
5554
|
+
Form: () => aa,
|
|
5555
|
+
presenter: () => oa
|
|
5556
|
+
}), Oa = /* @__PURE__ */ B({
|
|
5557
|
+
Form: () => ca,
|
|
5558
|
+
presenter: () => la
|
|
5559
|
+
}), ka = {
|
|
5560
|
+
[V.Bike]: ha,
|
|
5561
|
+
[V.Pet]: ga,
|
|
5562
|
+
[V.Caravan]: _a,
|
|
5563
|
+
[V.Travel]: va,
|
|
5564
|
+
[V.Liability]: ya,
|
|
5565
|
+
[V.Housing]: ba,
|
|
5566
|
+
house: ba,
|
|
5567
|
+
[V.LegalAssistance]: xa,
|
|
5568
|
+
[V.Package]: Sa,
|
|
5569
|
+
[V.Loan]: Ca,
|
|
5570
|
+
[V.Moped]: wa,
|
|
5571
|
+
[V.Motor]: Ta,
|
|
5572
|
+
[V.Car]: Ea,
|
|
5573
|
+
[V.CarBusiness]: Da,
|
|
5574
|
+
"business-car": Da,
|
|
5575
|
+
[V.BusinessLiability]: Oa
|
|
5576
|
+
}, Aa = /* @__PURE__ */ l({
|
|
5563
5577
|
__name: "ComparisonFormFlow",
|
|
5564
5578
|
props: {
|
|
5565
5579
|
form: {},
|
|
@@ -5590,7 +5604,7 @@ var da = /* @__PURE__ */ B({
|
|
|
5590
5604
|
},
|
|
5591
5605
|
emits: ["submitted", "error"],
|
|
5592
5606
|
setup(e, { emit: i }) {
|
|
5593
|
-
let a = e, o = i, s = q(a), c = t(() =>
|
|
5607
|
+
let a = e, o = i, s = q(a), c = t(() => ka[a.form]), { submit: l, isSubmitting: u } = ma({
|
|
5594
5608
|
link: a.link,
|
|
5595
5609
|
onRedirect: (e) => {
|
|
5596
5610
|
o("submitted", e), a.redirect ? a.redirect(e) : window.location.href = e;
|
|
@@ -5600,24 +5614,24 @@ var da = /* @__PURE__ */ B({
|
|
|
5600
5614
|
function d(e) {
|
|
5601
5615
|
c.value && l(c.value.presenter(e));
|
|
5602
5616
|
}
|
|
5603
|
-
return (t, i) => c.value ? (
|
|
5617
|
+
return (t, i) => c.value ? (b(), n(T(c.value.Form), m({ key: 0 }, D(s), {
|
|
5604
5618
|
"initial-data": e.initialData,
|
|
5605
|
-
"submit-disabled": e.submitDisabled ||
|
|
5619
|
+
"submit-disabled": e.submitDisabled || D(u),
|
|
5606
5620
|
onSubmitted: d
|
|
5607
5621
|
}), null, 16, ["initial-data", "submit-disabled"])) : r("", !0);
|
|
5608
5622
|
}
|
|
5609
|
-
}),
|
|
5610
|
-
|
|
5611
|
-
},
|
|
5623
|
+
}), ja, Ma = (e) => {
|
|
5624
|
+
ja = e;
|
|
5625
|
+
}, Na = () => ja?.url, Pa = { class: "vd-form vd-form--vertical vd-form--card" }, Fa = {
|
|
5612
5626
|
key: 0,
|
|
5613
5627
|
class: "vd-form__header"
|
|
5614
|
-
},
|
|
5628
|
+
}, Ia = {
|
|
5615
5629
|
key: 0,
|
|
5616
5630
|
class: "vd-form__title"
|
|
5617
|
-
},
|
|
5631
|
+
}, La = {
|
|
5618
5632
|
key: 1,
|
|
5619
5633
|
class: "vd-form__description"
|
|
5620
|
-
},
|
|
5634
|
+
}, Ra = /* @__PURE__ */ l({
|
|
5621
5635
|
__name: "QuestionnaireForm",
|
|
5622
5636
|
props: {
|
|
5623
5637
|
link: {},
|
|
@@ -5632,11 +5646,11 @@ var da = /* @__PURE__ */ B({
|
|
|
5632
5646
|
}
|
|
5633
5647
|
},
|
|
5634
5648
|
setup(e) {
|
|
5635
|
-
let n = e, a = t(() =>
|
|
5649
|
+
let n = e, a = t(() => Kr(n.link, {
|
|
5636
5650
|
qaId: n.qaId,
|
|
5637
5651
|
template: n.thankyouPageTemplate
|
|
5638
5652
|
}));
|
|
5639
|
-
return (t, n) => (
|
|
5653
|
+
return (t, n) => (b(), i("div", Pa, [e.showTitle && e.title || e.description ? (b(), i("div", Fa, [e.showTitle && e.title ? (b(), i("h2", Ia, E(e.title), 1)) : r("", !0), e.description ? (b(), i("p", La, E(e.description), 1)) : r("", !0)])) : r("", !0), c(D(Pe), {
|
|
5640
5654
|
href: a.value,
|
|
5641
5655
|
label: e.buttonText,
|
|
5642
5656
|
"button-type": "green",
|
|
@@ -5645,16 +5659,16 @@ var da = /* @__PURE__ */ B({
|
|
|
5645
5659
|
block: ""
|
|
5646
5660
|
}, null, 8, ["href", "label"])]));
|
|
5647
5661
|
}
|
|
5648
|
-
}),
|
|
5662
|
+
}), za = {
|
|
5649
5663
|
key: 0,
|
|
5650
5664
|
class: "vd-form__header"
|
|
5651
|
-
},
|
|
5665
|
+
}, Ba = {
|
|
5652
5666
|
key: 0,
|
|
5653
5667
|
class: "vd-form__title"
|
|
5654
|
-
},
|
|
5668
|
+
}, Va = {
|
|
5655
5669
|
key: 1,
|
|
5656
5670
|
class: "vd-form__description"
|
|
5657
|
-
},
|
|
5671
|
+
}, Ha = { class: "vd-form__row" }, Ua = { class: "vd-form__col-10 vd-form__col-md-6" }, Wa = { class: "vd-form__col-2 vd-form__action" }, Ga = /* @__PURE__ */ l({
|
|
5658
5672
|
__name: "RiskScannerForm",
|
|
5659
5673
|
props: {
|
|
5660
5674
|
qaUrl: { default: "" },
|
|
@@ -5672,9 +5686,9 @@ var da = /* @__PURE__ */ B({
|
|
|
5672
5686
|
}
|
|
5673
5687
|
},
|
|
5674
5688
|
setup(e) {
|
|
5675
|
-
let o = e, s =
|
|
5689
|
+
let o = e, s = S(null), { isSubmitting: l, handleSubmit: u, defineField: f, setErrors: p, removeError: h } = Z(R({ company: Pr() }), { company: null }), [g, _, v] = f("company"), y = (e) => e ? p({ company: e }) : h("company"), x = t(() => !!g.value && !g.value.hasVisitingAddress);
|
|
5676
5690
|
async function C(e) {
|
|
5677
|
-
let t = o.qaUrl ||
|
|
5691
|
+
let t = o.qaUrl || Na();
|
|
5678
5692
|
if (!t) throw Error("QA api url is required — set the qa-url attribute, or call configureQa({ url }) once at bootstrap.");
|
|
5679
5693
|
let n = t.endsWith("/") ? t : `${t}/`, r = await fetch(`${n}api/v1/active-questionnaire/${o.qaId}/start`, {
|
|
5680
5694
|
method: "POST",
|
|
@@ -5690,7 +5704,7 @@ var da = /* @__PURE__ */ B({
|
|
|
5690
5704
|
});
|
|
5691
5705
|
if (!r.ok) throw Error(`Failed to start the questionnaire (${r.status})`);
|
|
5692
5706
|
let { leadId: i } = await r.json();
|
|
5693
|
-
return
|
|
5707
|
+
return Kr(o.link, {
|
|
5694
5708
|
leadid: i,
|
|
5695
5709
|
qaId: o.qaId,
|
|
5696
5710
|
template: o.thankyouPageTemplate
|
|
@@ -5707,25 +5721,25 @@ var da = /* @__PURE__ */ B({
|
|
|
5707
5721
|
}
|
|
5708
5722
|
});
|
|
5709
5723
|
}
|
|
5710
|
-
return (t, o) => (
|
|
5724
|
+
return (t, o) => (b(), i("form", {
|
|
5711
5725
|
class: "vd-form vd-form--vertical vd-form--card",
|
|
5712
|
-
onSubmit:
|
|
5713
|
-
}, [e.showTitle && e.title || e.description ? (
|
|
5714
|
-
modelValue:
|
|
5726
|
+
onSubmit: L(w, ["prevent", "stop"])
|
|
5727
|
+
}, [e.showTitle && e.title || e.description ? (b(), i("div", za, [e.showTitle && e.title ? (b(), i("h2", Ba, E(e.title), 1)) : r("", !0), e.description ? (b(), i("p", Va, E(e.description), 1)) : r("", !0)])) : r("", !0), a("div", Ha, [a("div", Ua, [c(D(Nr), m({
|
|
5728
|
+
modelValue: D(g),
|
|
5715
5729
|
"onUpdate:modelValue": o[0] ||= (e) => d(g) ? g.value = e : null
|
|
5716
|
-
},
|
|
5717
|
-
"error-message":
|
|
5718
|
-
onError:
|
|
5730
|
+
}, D(_), {
|
|
5731
|
+
"error-message": D(v),
|
|
5732
|
+
onError: y,
|
|
5719
5733
|
onRaw: o[1] ||= (e) => s.value = e
|
|
5720
|
-
}), null, 16, ["modelValue", "error-message"]),
|
|
5734
|
+
}), null, 16, ["modelValue", "error-message"]), x.value ? (b(), n(D(Vt), {
|
|
5721
5735
|
key: 0,
|
|
5722
5736
|
style: { "margin-top": "12px" },
|
|
5723
5737
|
text: "Dit bedrijf heeft geen geregistreerd bezoekadres. Voeg dit toe bij de KvK om door te gaan met de aanvraag."
|
|
5724
|
-
})) : r("", !0)]), a("div",
|
|
5738
|
+
})) : r("", !0)]), a("div", Wa, [c(D(Pe), {
|
|
5725
5739
|
type: "submit",
|
|
5726
5740
|
label: e.buttonText,
|
|
5727
|
-
"is-loading":
|
|
5728
|
-
disabled:
|
|
5741
|
+
"is-loading": D(l),
|
|
5742
|
+
disabled: x.value,
|
|
5729
5743
|
"button-type": "green",
|
|
5730
5744
|
size: "big",
|
|
5731
5745
|
block: "",
|
|
@@ -5738,4 +5752,4 @@ var da = /* @__PURE__ */ B({
|
|
|
5738
5752
|
}
|
|
5739
5753
|
});
|
|
5740
5754
|
//#endregion
|
|
5741
|
-
export {
|
|
5755
|
+
export { ui as BikeForm, aa as BusinessCarForm, ca as BusinessLiabilityForm, na as CarForm, xi as CaravanForm, Aa as ComparisonFormFlow, V as ComparisonName, Ni as HouseForm, Ii as LegalForm, ki as LiabilityForm, Gi as LoanForm, Xi as MopedForm, $i as MotorForm, zi as PackageForm, hi as PetForm, Ra as QuestionnaireForm, Ga as RiskScannerForm, Ei as TravelForm, di as bikePresenter, oa as businessCarPresenter, la as businessLiabilityPresenter, ra as carPresenter, Si as caravanPresenter, Ma as configureQa, Pi as housePresenter, Li as legalPresenter, Ai as liabilityPresenter, qi as loanPresenter, Zi as mopedPresenter, ea as motorPresenter, Bi as packagePresenter, gi as petPresenter, Di as travelPresenter, ma as useComparisonSubmit };
|