@vergelijkdirect/comparison-forms 2.0.0-rc.1 → 2.0.0-rc.3

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.
@@ -1,21 +1,21 @@
1
- import { defineComponent as q, createElementBlock as S, openBlock as c, normalizeClass as x, createCommentVNode as E, createElementVNode as O, toDisplayString as I, mergeModels as Z, useModel as de, useSlots as be, useId as Ue, computed as F, withModifiers as Le, unref as t, renderSlot as R, createTextVNode as G, withDirectives as lt, ref as Y, Fragment as He, renderList as rt, vModelSelect as Qt, createBlock as H, mergeProps as M, withCtx as v, createVNode as u, vModelRadio as Zt, Transition as Xt, normalizeStyle as ei, createSlots as We, provide as ti, inject as ii, nextTick as it, watch as ce, onMounted as ai, isRef as T, useAttrs as $t, mergeDefaults as ne, shallowRef as ni, resolveDynamicComponent as oi } from "vue";
2
- import { User as li } from "@vergelijkdirect/insurance-transmission-client";
3
- import { object as te, string as ee, mixed as ri, number as si } from "yup";
1
+ import { defineComponent as q, createElementBlock as S, openBlock as c, normalizeClass as x, createCommentVNode as E, createElementVNode as O, toDisplayString as I, mergeModels as Z, useModel as de, useSlots as be, useId as Ue, computed as F, withModifiers as Le, unref as t, renderSlot as R, createTextVNode as G, withDirectives as rt, ref as Y, Fragment as He, renderList as st, vModelSelect as Zt, createBlock as H, mergeProps as M, withCtx as v, createVNode as u, vModelRadio as Xt, Transition as ea, normalizeStyle as ta, createSlots as We, provide as aa, inject as ia, nextTick as it, watch as ce, onMounted as na, isRef as N, useAttrs as Ft, mergeDefaults as ne, shallowRef as oa, resolveDynamicComponent as la } from "vue";
2
+ import { HomeService as ra, DataValidationService as sa, DataService as da, User as ua } from "@vergelijkdirect/insurance-transmission-client";
3
+ import { object as te, string as ee, mixed as ma, number as ca } from "yup";
4
4
  import Ke from "dayjs";
5
- import di from "dayjs/plugin/customParseFormat.js";
6
- import { useFloating as ui, autoUpdate as mi, offset as ci, flip as fi, shift as vi } from "@floating-ui/vue";
7
- import { vMaska as bi } from "maska/vue";
8
- import { isEqual as pi, cloneDeep as Re } from "es-toolkit";
9
- import { reactivePick as Ft, refDebounced as gi, useAsyncState as vt } from "@vueuse/core";
10
- import { useForwardProps as hi, ComboboxRoot as yi, Label as ki, ComboboxInput as Si, ComboboxCancel as Vi, ComboboxTrigger as Bi, ComboboxContent as Ai, ComboboxViewport as Ci, ComboboxVirtualizer as _i, ComboboxItem as bt, ComboboxItemIndicator as pt, ComboboxEmpty as Ei } from "reka-ui";
5
+ import fa from "dayjs/plugin/customParseFormat.js";
6
+ import { useFloating as va, autoUpdate as ba, offset as pa, flip as ga, shift as ha } from "@floating-ui/vue";
7
+ import { vMaska as ya } from "maska/vue";
8
+ import { isEqual as ka, cloneDeep as Re } from "es-toolkit";
9
+ import { reactivePick as Lt, refDebounced as Sa, useAsyncState as bt } from "@vueuse/core";
10
+ import { useForwardProps as Va, ComboboxRoot as Ba, Label as Aa, ComboboxInput as Ca, ComboboxCancel as _a, ComboboxTrigger as Ea, ComboboxContent as Ma, ComboboxViewport as wa, ComboboxVirtualizer as Pa, ComboboxItem as pt, ComboboxItemIndicator as gt, ComboboxEmpty as Oa } from "reka-ui";
11
11
  var j = /* @__PURE__ */ ((e) => (e.Bike = "bike", e.Car = "car", e.Caravan = "caravan", e.CarBusiness = "car-business", 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))(j || {}), J = /* @__PURE__ */ ((e) => (e.FamilyWithChildren = "I", e.FamilyWithoutChildren = "H", e.SingleWithoutChildren = "A", e.SingleWithChildren = "K", e))(J || {}), fe = /* @__PURE__ */ ((e) => (e.Yes = "J", e.No = "N", e))(fe || {});
12
- const Mi = ["href", "target", "tabindex"], wi = {
12
+ const $a = ["href", "target", "tabindex"], Fa = {
13
13
  key: 1,
14
14
  class: "vd-btn-new__label"
15
- }, Pi = ["disabled", "tabindex"], Oi = {
15
+ }, La = ["disabled", "tabindex"], Na = {
16
16
  key: 1,
17
17
  class: "vd-btn-new__label"
18
- }, $i = /* @__PURE__ */ q({
18
+ }, Ta = /* @__PURE__ */ q({
19
19
  __name: "VdButton",
20
20
  props: {
21
21
  buttonType: { default: "primary" },
@@ -32,9 +32,9 @@ const Mi = ["href", "target", "tabindex"], wi = {
32
32
  tabindex: { default: 0 }
33
33
  },
34
34
  emits: ["click"],
35
- setup(e, { emit: i }) {
36
- const a = e, n = () => a.buttonType.split("-").map((d) => d ? `vd-btn-new--${d}` : ""), l = i, o = () => {
37
- a.disabled || a.isLoading || l("click");
35
+ setup(e, { emit: a }) {
36
+ const i = e, n = () => i.buttonType.split("-").map((d) => d ? `vd-btn-new--${d}` : ""), l = a, o = () => {
37
+ i.disabled || i.isLoading || l("click");
38
38
  };
39
39
  return (d, s) => e.href ? (c(), S("a", {
40
40
  key: 0,
@@ -57,13 +57,13 @@ const Mi = ["href", "target", "tabindex"], wi = {
57
57
  key: 0,
58
58
  class: x(["vd-btn-new__icon", [e.icon, { "vd-btn-new__icon--non-label": !e.label }]])
59
59
  }, null, 2)) : E("", !0),
60
- e.label ? (c(), S("span", wi, I(e.label), 1)) : E("", !0),
60
+ e.label ? (c(), S("span", Fa, I(e.label), 1)) : E("", !0),
61
61
  e.icon && !e.iconLeft ? (c(), S("i", {
62
62
  key: 2,
63
63
  class: x(["vd-btn-new__icon", [e.icon, { "vd-btn-new__icon--non-label": !e.label }]])
64
64
  }, null, 2)) : E("", !0),
65
65
  s[0] || (s[0] = O("div", { class: "loader-circle" }, null, -1))
66
- ], 10, Mi)) : (c(), S("button", {
66
+ ], 10, $a)) : (c(), S("button", {
67
67
  key: 1,
68
68
  onClick: o,
69
69
  class: x(["vd-btn-new", [
@@ -82,33 +82,33 @@ const Mi = ["href", "target", "tabindex"], wi = {
82
82
  key: 0,
83
83
  class: x(["vd-btn-new__icon", [e.icon, { "vd-btn-new__icon--non-label": !e.label }]])
84
84
  }, null, 2)) : E("", !0),
85
- e.label ? (c(), S("span", Oi, I(e.label), 1)) : E("", !0),
85
+ e.label ? (c(), S("span", Na, I(e.label), 1)) : E("", !0),
86
86
  e.icon && !e.iconLeft ? (c(), S("i", {
87
87
  key: 2,
88
88
  class: x(["vd-btn-new__icon", [e.icon, { "vd-btn-new__icon--non-label": !e.label }]])
89
89
  }, null, 2)) : E("", !0),
90
90
  s[1] || (s[1] = O("div", { class: "loader-circle" }, null, -1))
91
- ], 10, Pi));
91
+ ], 10, La));
92
92
  }
93
- }), Fi = { class: "vd-field" }, Li = ["for"], Ti = {
93
+ }), za = { class: "vd-field" }, Da = ["for"], Ra = {
94
94
  key: 0,
95
95
  class: "vd-field__asterisk"
96
- }, Ni = {
96
+ }, xa = {
97
97
  key: 1,
98
98
  class: "vd-field__popover"
99
- }, zi = ["id", "value", "type", "name", "inputmode", "placeholder", "disabled", "readonly", "autocomplete"], Di = {
99
+ }, ja = ["id", "value", "type", "name", "inputmode", "placeholder", "disabled", "readonly", "autocomplete"], Ia = {
100
100
  key: 0,
101
101
  class: "vd-field__icon-and-loader"
102
- }, Ri = {
102
+ }, qa = {
103
103
  key: 0,
104
104
  class: "vd-field__icon vd-field__icon--with-loader"
105
- }, xi = { key: 1 }, ji = {
105
+ }, Ua = { key: 1 }, Ha = {
106
106
  key: 0,
107
107
  class: "vd-field__loader-circle"
108
- }, Ii = {
108
+ }, Wa = {
109
109
  key: 0,
110
110
  class: "vd-field__message vd-field__message--error"
111
- }, qi = {
111
+ }, Ka = {
112
112
  key: 1,
113
113
  class: "vd-field__message vd-field__message--information"
114
114
  }, Ae = /* @__PURE__ */ q({
@@ -138,15 +138,15 @@ const Mi = ["href", "target", "tabindex"], wi = {
138
138
  modelModifiers: {}
139
139
  }),
140
140
  emits: /* @__PURE__ */ Z(["blur", "change"], ["update:modelValue"]),
141
- setup(e, { emit: i }) {
142
- const a = e, n = de(e, "modelValue"), l = i, o = be(), d = a.id ?? Ue(), s = (g) => a.capitalize ? g.toUpperCase() : g, m = F(() => !a.errorMessage && !a.verified && !a.hasError), r = F(() => !!n.value && !a.errorMessage && a.verified && !a.hasError && !a.loading), f = F(() => !!a.errorMessage || !!a.hasError), p = F(() => !!a.errorMessage || !!o.errorMessage), y = (g) => {
141
+ setup(e, { emit: a }) {
142
+ const i = e, n = de(e, "modelValue"), l = a, o = be(), d = i.id ?? Ue(), s = (g) => i.capitalize ? g.toUpperCase() : g, m = F(() => !i.errorMessage && !i.verified && !i.hasError), r = F(() => !!n.value && !i.errorMessage && i.verified && !i.hasError && !i.loading), f = F(() => !!i.errorMessage || !!i.hasError), p = F(() => !!i.errorMessage || !!o.errorMessage), y = (g) => {
143
143
  n.value = s(g.target.value);
144
144
  }, V = (g) => {
145
145
  l("blur", s(g.target.value));
146
146
  }, B = (g) => {
147
147
  l("change", s(g.target.value));
148
148
  };
149
- return (g, h) => (c(), S("div", Fi, [
149
+ return (g, h) => (c(), S("div", za, [
150
150
  O("div", {
151
151
  onClick: h[0] || (h[0] = Le(() => {
152
152
  }, ["prevent"])),
@@ -161,17 +161,17 @@ const Mi = ["href", "target", "tabindex"], wi = {
161
161
  R(g.$slots, "label", {}, () => [
162
162
  G(I(e.label), 1)
163
163
  ]),
164
- e.required ? (c(), S("span", Ti, "*")) : E("", !0)
164
+ e.required ? (c(), S("span", Ra, "*")) : E("", !0)
165
165
  ])
166
- ], 8, Li)) : E("", !0),
167
- t(o).popover ? (c(), S("span", Ni, [
166
+ ], 8, Da)) : E("", !0),
167
+ t(o).popover ? (c(), S("span", xa, [
168
168
  R(g.$slots, "popover")
169
169
  ])) : E("", !0)
170
170
  ], 2),
171
171
  O("div", {
172
172
  class: x(["vd-field__wrapper", { "vd-field__wrapper-checkmark": r.value && !(e.icon || t(o).icon) }])
173
173
  }, [
174
- lt(O("input", {
174
+ rt(O("input", {
175
175
  id: t(d),
176
176
  onInput: y,
177
177
  onChange: B,
@@ -193,20 +193,20 @@ const Mi = ["href", "target", "tabindex"], wi = {
193
193
  "vd-field__input--loading": e.loading,
194
194
  "vd-field__input--loading vd-field__input--icon": e.loading && !e.iconLeft && (e.icon || t(o).icon)
195
195
  }])
196
- }, null, 42, zi), [
197
- [t(bi), e.mask || void 0]
196
+ }, null, 42, ja), [
197
+ [t(ya), e.mask || void 0]
198
198
  ]),
199
- e.loading && e.icon && !e.iconLeft ? (c(), S("div", Di, [
199
+ e.loading && e.icon && !e.iconLeft ? (c(), S("div", Ia, [
200
200
  h[1] || (h[1] = O("div", { class: "vd-field__loader-circle vd-field__loader-circle--and-icon" }, null, -1)),
201
- e.icon || t(o).icon ? (c(), S("span", Ri, [
201
+ e.icon || t(o).icon ? (c(), S("span", qa, [
202
202
  R(g.$slots, "icon", {}, () => [
203
203
  O("i", {
204
204
  class: x(e.icon)
205
205
  }, null, 2)
206
206
  ])
207
207
  ])) : E("", !0)
208
- ])) : (c(), S("div", xi, [
209
- e.loading ? (c(), S("div", ji)) : E("", !0),
208
+ ])) : (c(), S("div", Ua, [
209
+ e.loading ? (c(), S("div", Ha)) : E("", !0),
210
210
  e.icon || t(o).icon ? (c(), S("span", {
211
211
  key: 1,
212
212
  class: x(["vd-field__icon", { "vd-field__icon--left": e.iconLeft, "vd-field__icon--disabled": e.disabled }])
@@ -219,13 +219,13 @@ const Mi = ["href", "target", "tabindex"], wi = {
219
219
  ], 2)) : E("", !0)
220
220
  ]))
221
221
  ], 2),
222
- p.value || t(o).errorMessage ? (c(), S("div", Ii, [
222
+ p.value || t(o).errorMessage ? (c(), S("div", Wa, [
223
223
  R(g.$slots, "errorMessage", {}, () => [
224
224
  h[2] || (h[2] = O("i", { class: "fas fa-exclamation-circle vd-field__message-icon" }, null, -1)),
225
225
  G(" " + I(e.errorMessage), 1)
226
226
  ])
227
227
  ])) : E("", !0),
228
- e.infoMessage || t(o).information ? (c(), S("div", qi, [
228
+ e.infoMessage || t(o).information ? (c(), S("div", Ka, [
229
229
  R(g.$slots, "information", {}, () => [
230
230
  h[3] || (h[3] = O("i", { class: "fas fa-info-circle vd-field__message-icon" }, null, -1)),
231
231
  G(" " + I(e.infoMessage), 1)
@@ -233,24 +233,24 @@ const Mi = ["href", "target", "tabindex"], wi = {
233
233
  ])) : E("", !0)
234
234
  ]));
235
235
  }
236
- }), Ui = { class: "vd-field" }, Hi = ["for"], Wi = {
236
+ }), Ga = { class: "vd-field" }, Ya = ["for"], Ja = {
237
237
  key: 0,
238
238
  class: "vd-field__asterisk"
239
- }, Ki = {
239
+ }, Qa = {
240
240
  key: 1,
241
241
  class: "vd-field__popover"
242
- }, Gi = { class: "vd-field__wrapper" }, Yi = ["id", "name", "disabled"], Ji = {
242
+ }, Za = { class: "vd-field__wrapper" }, Xa = ["id", "name", "disabled"], ei = {
243
243
  key: 0,
244
244
  value: "",
245
245
  disabled: "",
246
246
  selected: ""
247
- }, Qi = ["value", "selected", "disabled"], Zi = {
247
+ }, ti = ["value", "selected", "disabled"], ai = {
248
248
  key: 0,
249
249
  class: "vd-field__icon-and-loader"
250
- }, Xi = ["for"], ea = {
250
+ }, ii = ["for"], ni = {
251
251
  key: 0,
252
252
  class: "vd-field__message vd-field__message--error"
253
- }, ta = {
253
+ }, oi = {
254
254
  key: 1,
255
255
  class: "vd-field__message vd-field__message--information"
256
256
  }, Ve = /* @__PURE__ */ q({
@@ -272,18 +272,18 @@ const Mi = ["href", "target", "tabindex"], wi = {
272
272
  modelModifiers: {}
273
273
  }),
274
274
  emits: /* @__PURE__ */ Z(["blur", "select"], ["update:modelValue"]),
275
- setup(e, { emit: i }) {
276
- const a = e, n = de(e, "modelValue"), l = i, o = be(), d = a.id ?? Ue(), s = F({
275
+ setup(e, { emit: a }) {
276
+ const i = e, n = de(e, "modelValue"), l = a, o = be(), d = i.id ?? Ue(), s = F({
277
277
  get: () => n.value ?? "",
278
278
  set: (g) => {
279
279
  n.value = g === "" ? null : g;
280
280
  }
281
- }), m = Y(!0), r = F(() => !a.errorMessage && a.verified && !a.disabled && !a.loading), f = F(() => !a.errorMessage && !r.value), p = F(() => !!a.errorMessage), y = () => `vd-field__select--placeholder-${!n.value && m.value ? "shown" : "hidden"}`, V = (g) => {
281
+ }), m = Y(!0), r = F(() => !i.errorMessage && i.verified && !i.disabled && !i.loading), f = F(() => !i.errorMessage && !r.value), p = F(() => !!i.errorMessage), y = () => `vd-field__select--placeholder-${!n.value && m.value ? "shown" : "hidden"}`, V = (g) => {
282
282
  l("select", g.target.value), m.value = !1;
283
283
  }, B = (g) => {
284
284
  l("blur", g.target.value);
285
285
  };
286
- return (g, h) => (c(), S("div", Ui, [
286
+ return (g, h) => (c(), S("div", Ga, [
287
287
  O("div", {
288
288
  class: x(["vd-field__label-wrapper", { "vd-field__label-wrapper--disabled": e.disabled }])
289
289
  }, [
@@ -296,15 +296,15 @@ const Mi = ["href", "target", "tabindex"], wi = {
296
296
  R(g.$slots, "label", {}, () => [
297
297
  G(I(e.label), 1)
298
298
  ]),
299
- e.required ? (c(), S("span", Wi, "*")) : E("", !0)
299
+ e.required ? (c(), S("span", Ja, "*")) : E("", !0)
300
300
  ])
301
- ], 8, Hi)) : E("", !0),
302
- t(o).popover ? (c(), S("span", Ki, [
301
+ ], 8, Ya)) : E("", !0),
302
+ t(o).popover ? (c(), S("span", Qa, [
303
303
  R(g.$slots, "popover")
304
304
  ])) : E("", !0)
305
305
  ], 2),
306
- O("div", Gi, [
307
- lt(O("select", {
306
+ O("div", Za, [
307
+ rt(O("select", {
308
308
  id: t(d),
309
309
  "onUpdate:modelValue": h[0] || (h[0] = (_) => s.value = _),
310
310
  onChange: V,
@@ -321,17 +321,17 @@ const Mi = ["href", "target", "tabindex"], wi = {
321
321
  }
322
322
  ]])
323
323
  }, [
324
- e.placeholder ? (c(), S("option", Ji, I(e.placeholder), 1)) : E("", !0),
325
- (c(!0), S(He, null, rt(e.options, (_, N) => (c(), S("option", {
326
- key: _.value + "_" + N,
324
+ e.placeholder ? (c(), S("option", ei, I(e.placeholder), 1)) : E("", !0),
325
+ (c(!0), S(He, null, st(e.options, (_, T) => (c(), S("option", {
326
+ key: _.value + "_" + T,
327
327
  value: _.value,
328
328
  selected: _.selected || !1,
329
329
  disabled: _.disabled || !1
330
- }, I(_.title), 9, Qi))), 128))
331
- ], 42, Yi), [
332
- [Qt, s.value]
330
+ }, I(_.title), 9, ti))), 128))
331
+ ], 42, Xa), [
332
+ [Zt, s.value]
333
333
  ]),
334
- e.loading ? (c(), S("div", Zi, [...h[1] || (h[1] = [
334
+ e.loading ? (c(), S("div", ai, [...h[1] || (h[1] = [
335
335
  O("div", { class: "vd-field__loader-circle vd-field__loader-circle--and-icon" }, null, -1),
336
336
  O("span", { class: "vd-field__icon vd-field__icon--with-loader" }, [
337
337
  O("i", { class: "fas vd-field__select-icon--with-loader" })
@@ -340,15 +340,15 @@ const Mi = ["href", "target", "tabindex"], wi = {
340
340
  key: 1,
341
341
  for: t(d),
342
342
  class: "vd-field__select-icon"
343
- }, null, 8, Xi))
343
+ }, null, 8, ii))
344
344
  ]),
345
- p.value || t(o).errorMessage ? (c(), S("div", ea, [
345
+ p.value || t(o).errorMessage ? (c(), S("div", ni, [
346
346
  R(g.$slots, "errorMessage", {}, () => [
347
347
  h[2] || (h[2] = O("i", { class: "fas fa-exclamation-circle vd-field__message-icon" }, null, -1)),
348
348
  G(" " + I(e.errorMessage), 1)
349
349
  ])
350
350
  ])) : E("", !0),
351
- e.infoMessage || t(o).information ? (c(), S("div", ta, [
351
+ e.infoMessage || t(o).information ? (c(), S("div", oi, [
352
352
  R(g.$slots, "information", {}, () => [
353
353
  h[3] || (h[3] = O("i", { class: "fas fa-info-circle vd-field__message-icon" }, null, -1)),
354
354
  G(" " + I(e.infoMessage), 1)
@@ -357,46 +357,46 @@ const Mi = ["href", "target", "tabindex"], wi = {
357
357
  ]));
358
358
  }
359
359
  });
360
- function ia(e, i) {
361
- return e === i || Number.isNaN(e) && Number.isNaN(i);
360
+ function li(e, a) {
361
+ return e === a || Number.isNaN(e) && Number.isNaN(a);
362
362
  }
363
- function Lt(e) {
363
+ function Nt(e) {
364
364
  if (e == null) return "";
365
365
  if (typeof e == "string") return e;
366
- if (Array.isArray(e)) return e.map(Lt).join(",");
367
- const i = String(e);
368
- return i === "0" && Object.is(Number(e), -0) ? "-0" : i;
366
+ if (Array.isArray(e)) return e.map(Nt).join(",");
367
+ const a = String(e);
368
+ return a === "0" && Object.is(Number(e), -0) ? "-0" : a;
369
369
  }
370
- function st(e) {
371
- var i;
372
- return typeof e == "string" || typeof e == "symbol" ? e : Object.is((i = e == null ? void 0 : e.valueOf) == null ? void 0 : i.call(e), -0) ? "-0" : String(e);
370
+ function dt(e) {
371
+ var a;
372
+ return typeof e == "string" || typeof e == "symbol" ? e : Object.is((a = e == null ? void 0 : e.valueOf) == null ? void 0 : a.call(e), -0) ? "-0" : String(e);
373
373
  }
374
374
  function Tt(e) {
375
- if (Array.isArray(e)) return e.map(st);
375
+ if (Array.isArray(e)) return e.map(dt);
376
376
  if (typeof e == "symbol") return [e];
377
- e = Lt(e);
378
- const i = [], a = e.length;
379
- if (a === 0) return i;
377
+ e = Nt(e);
378
+ const a = [], i = e.length;
379
+ if (i === 0) return a;
380
380
  let n = 0, l = "", o = "", d = !1;
381
- for (e.charCodeAt(0) === 46 && i.push(""); n < a; ) {
381
+ for (e.charCodeAt(0) === 46 && a.push(""); n < i; ) {
382
382
  const s = e[n];
383
- if (o) s === "\\" && n + 1 < a ? (n++, l += e[n]) : s === o ? o = "" : l += s;
384
- else if (d) s === '"' || s === "'" ? o = s : s === "]" ? (d = !1, i.push(l), l = "") : l += s;
383
+ if (o) s === "\\" && n + 1 < i ? (n++, l += e[n]) : s === o ? o = "" : l += s;
384
+ else if (d) s === '"' || s === "'" ? o = s : s === "]" ? (d = !1, a.push(l), l = "") : l += s;
385
385
  else if (s === "[")
386
- d = !0, l && (i.push(l), l = "");
386
+ d = !0, l && (a.push(l), l = "");
387
387
  else if (s === ".") {
388
- l && (i.push(l), l = "");
388
+ l && (a.push(l), l = "");
389
389
  const m = e[n + 1];
390
- (m === void 0 || m === ".") && i.push("");
390
+ (m === void 0 || m === ".") && a.push("");
391
391
  } else l += s;
392
392
  n++;
393
393
  }
394
- return l && i.push(l), i;
394
+ return l && a.push(l), a;
395
395
  }
396
396
  function je(e) {
397
397
  return e === "__proto__";
398
398
  }
399
- function aa(e) {
399
+ function ri(e) {
400
400
  switch (typeof e) {
401
401
  case "number":
402
402
  case "symbol":
@@ -405,101 +405,101 @@ function aa(e) {
405
405
  return e.includes(".") || e.includes("[") || e.includes("]");
406
406
  }
407
407
  }
408
- function Se(e, i, a) {
409
- if (e == null) return a;
410
- switch (typeof i) {
408
+ function Se(e, a, i) {
409
+ if (e == null) return i;
410
+ switch (typeof a) {
411
411
  case "string": {
412
- if (je(i)) return a;
413
- const n = e[i];
414
- return n === void 0 ? aa(i) && !Object.hasOwn(e, i) ? Se(e, Tt(i), a) : a : n;
412
+ if (je(a)) return i;
413
+ const n = e[a];
414
+ return n === void 0 ? ri(a) && !Object.hasOwn(e, a) ? Se(e, Tt(a), i) : i : n;
415
415
  }
416
416
  case "number":
417
417
  case "symbol": {
418
- typeof i == "number" && (i = st(i));
419
- const n = e[i];
420
- return n === void 0 ? a : n;
418
+ typeof a == "number" && (a = dt(a));
419
+ const n = e[a];
420
+ return n === void 0 ? i : n;
421
421
  }
422
422
  default: {
423
- if (Array.isArray(i)) return na(e, i, a);
424
- if (Object.is(i == null ? void 0 : i.valueOf(), -0) ? i = "-0" : i = String(i), je(i)) return a;
425
- const n = e[i];
426
- return n === void 0 ? a : n;
423
+ if (Array.isArray(a)) return si(e, a, i);
424
+ if (Object.is(a == null ? void 0 : a.valueOf(), -0) ? a = "-0" : a = String(a), je(a)) return i;
425
+ const n = e[a];
426
+ return n === void 0 ? i : n;
427
427
  }
428
428
  }
429
429
  }
430
- function na(e, i, a) {
431
- if (i.length === 0) return a;
430
+ function si(e, a, i) {
431
+ if (a.length === 0) return i;
432
432
  let n = e;
433
- for (let l = 0; l < i.length; l++) {
434
- if (n == null || je(i[l])) return a;
435
- n = n[i[l]];
433
+ for (let l = 0; l < a.length; l++) {
434
+ if (n == null || je(a[l])) return i;
435
+ n = n[a[l]];
436
436
  }
437
- return n === void 0 ? a : n;
437
+ return n === void 0 ? i : n;
438
438
  }
439
- function gt(e) {
439
+ function ht(e) {
440
440
  return e !== null && (typeof e == "object" || typeof e == "function");
441
441
  }
442
- const oa = /^(?:0|[1-9]\d*)$/;
443
- function la(e, i = Number.MAX_SAFE_INTEGER) {
442
+ const di = /^(?:0|[1-9]\d*)$/;
443
+ function ui(e, a = Number.MAX_SAFE_INTEGER) {
444
444
  switch (typeof e) {
445
445
  case "number":
446
- return Number.isInteger(e) && e >= 0 && e < i;
446
+ return Number.isInteger(e) && e >= 0 && e < a;
447
447
  case "symbol":
448
448
  return !1;
449
449
  case "string":
450
- return oa.test(e);
450
+ return di.test(e);
451
451
  }
452
452
  }
453
- function ra(e) {
453
+ function mi(e) {
454
454
  return typeof e == "symbol" || e instanceof Symbol;
455
455
  }
456
- const sa = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, da = /^\w*$/;
457
- function ua(e, i) {
458
- return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || ra(e) ? !0 : typeof e == "string" && (da.test(e) || !sa.test(e)) || i != null && Object.hasOwn(i, e);
456
+ const ci = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, fi = /^\w*$/;
457
+ function vi(e, a) {
458
+ return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || mi(e) ? !0 : typeof e == "string" && (fi.test(e) || !ci.test(e)) || a != null && Object.hasOwn(a, e);
459
459
  }
460
- const ma = (e, i, a) => {
461
- const n = e[i];
462
- (!(Object.hasOwn(e, i) && ia(n, a)) || a === void 0 && !(i in e)) && (e[i] = a);
460
+ const bi = (e, a, i) => {
461
+ const n = e[a];
462
+ (!(Object.hasOwn(e, a) && li(n, i)) || i === void 0 && !(a in e)) && (e[a] = i);
463
463
  };
464
- function ca(e, i, a, n) {
465
- if (e == null && !gt(e)) return e;
464
+ function pi(e, a, i, n) {
465
+ if (e == null && !ht(e)) return e;
466
466
  let l;
467
- ua(i, e) ? l = [i] : Array.isArray(i) ? l = i : l = Tt(i);
468
- const o = a(Se(e, l));
467
+ vi(a, e) ? l = [a] : Array.isArray(a) ? l = a : l = Tt(a);
468
+ const o = i(Se(e, l));
469
469
  let d = e;
470
470
  for (let s = 0; s < l.length && d != null; s++) {
471
- const m = st(l[s]);
471
+ const m = dt(l[s]);
472
472
  if (je(m)) continue;
473
473
  let r;
474
474
  if (s === l.length - 1) r = o;
475
475
  else {
476
476
  const f = d[m], p = n == null ? void 0 : n(f, m, e);
477
- r = p !== void 0 ? p : gt(f) ? f : la(l[s + 1]) ? [] : {};
477
+ r = p !== void 0 ? p : ht(f) ? f : ui(l[s + 1]) ? [] : {};
478
478
  }
479
- ma(d, m, r), d = d[m];
479
+ bi(d, m, r), d = d[m];
480
480
  }
481
481
  return e;
482
482
  }
483
- function fa(e, i, a) {
484
- return ca(e, i, () => a, () => {
483
+ function gi(e, a, i) {
484
+ return pi(e, a, () => i, () => {
485
485
  });
486
486
  }
487
- const va = {
487
+ const hi = {
488
488
  key: 0,
489
489
  class: "vd-field__asterisk"
490
- }, ba = {
490
+ }, yi = {
491
491
  key: 1,
492
492
  class: "vd-field__popover"
493
- }, pa = { class: "vd-field__wrapper" }, ga = {
493
+ }, ki = { class: "vd-field__wrapper" }, Si = {
494
494
  key: 1,
495
495
  class: "vd-field__loader-circle"
496
- }, ha = {
496
+ }, Vi = {
497
497
  key: 0,
498
498
  class: "vd-field__message vd-field__message--error"
499
- }, ya = {
499
+ }, Bi = {
500
500
  key: 1,
501
501
  class: "vd-field__message vd-field__message--information"
502
- }, Nt = /* @__PURE__ */ q({
502
+ }, zt = /* @__PURE__ */ q({
503
503
  __name: "VdSearchableSelect",
504
504
  props: /* @__PURE__ */ Z({
505
505
  id: {},
@@ -533,28 +533,28 @@ const va = {
533
533
  searchTermModifiers: {}
534
534
  }),
535
535
  emits: /* @__PURE__ */ Z(["blur", "select", "clear", "search"], ["update:modelValue", "update:open", "update:searchTerm"]),
536
- setup(e, { emit: i }) {
537
- const a = e, n = hi(
538
- Ft(
539
- a,
536
+ setup(e, { emit: a }) {
537
+ const i = e, n = Va(
538
+ Lt(
539
+ i,
540
540
  "name",
541
541
  "disabled",
542
542
  "by",
543
543
  "ignoreFilter"
544
544
  )
545
- ), l = de(e, "modelValue"), o = de(e, "open"), d = de(e, "searchTerm"), s = i, m = be(), r = a.id ?? Ue(), f = F(() => !!a.icon || !!m.icon), p = (b) => typeof b == "object" && b !== null, y = (b) => p(b) ? Se(b, a.labelKey) ?? b.title ?? "" : String(b), V = (b) => p(b) ? a.valueKey === null ? b : Se(b, a.valueKey) : b, B = (b) => p(b) ? b.disabled : void 0, g = (b, A) => b === void 0 || A === void 0 ? !1 : !p(b) || !p(A) ? b === A : typeof a.by == "function" ? a.by(b, A) : typeof a.by == "string" ? Se(b, a.by) === Se(A, a.by) : pi(b, A), h = (b) => b == null || b === "", _ = F(() => !h(l.value)), N = F(() => a.errorMessage ? "error" : _.value && a.verified && !a.loading ? "verified" : "default"), z = (b) => {
545
+ ), l = de(e, "modelValue"), o = de(e, "open"), d = de(e, "searchTerm"), s = a, m = be(), r = i.id ?? Ue(), f = F(() => !!i.icon || !!m.icon), p = (b) => typeof b == "object" && b !== null, y = (b) => p(b) ? Se(b, i.labelKey) ?? b.title ?? "" : String(b), V = (b) => p(b) ? i.valueKey === null ? b : Se(b, i.valueKey) : b, B = (b) => p(b) ? b.disabled : void 0, g = (b, A) => b === void 0 || A === void 0 ? !1 : !p(b) || !p(A) ? b === A : typeof i.by == "function" ? i.by(b, A) : typeof i.by == "string" ? Se(b, i.by) === Se(A, i.by) : ka(b, A), h = (b) => b == null || b === "", _ = F(() => !h(l.value)), T = F(() => i.errorMessage ? "error" : _.value && i.verified && !i.loading ? "verified" : "default"), z = (b) => {
546
546
  if (h(b))
547
547
  return "";
548
- if (a.displayValue)
549
- return a.displayValue(b);
550
- const A = a.options.find((w) => g(V(w), b));
548
+ if (i.displayValue)
549
+ return i.displayValue(b);
550
+ const A = i.options.find((w) => g(V(w), b));
551
551
  return y(A ?? b);
552
552
  }, $ = (b) => {
553
553
  s("select", b);
554
554
  }, P = () => {
555
555
  l.value = void 0, s("clear");
556
556
  };
557
- return (b, A) => (c(), H(t(yi), M({
557
+ return (b, A) => (c(), H(t(Ba), M({
558
558
  class: "vd-field",
559
559
  modelValue: l.value,
560
560
  "onUpdate:modelValue": A[3] || (A[3] = (w) => l.value = w),
@@ -567,7 +567,7 @@ const va = {
567
567
  O("div", {
568
568
  class: x(["vd-field__label-wrapper", { "vd-field__label-wrapper--disabled": e.disabled }])
569
569
  }, [
570
- e.label || m.label ? (c(), H(t(ki), {
570
+ e.label || m.label ? (c(), H(t(Aa), {
571
571
  key: 0,
572
572
  for: t(r),
573
573
  class: "vd-field__label"
@@ -577,17 +577,17 @@ const va = {
577
577
  R(b.$slots, "label", {}, () => [
578
578
  G(I(e.label), 1)
579
579
  ]),
580
- e.required ? (c(), S("span", va, "*")) : E("", !0)
580
+ e.required ? (c(), S("span", hi, "*")) : E("", !0)
581
581
  ])
582
582
  ]),
583
583
  _: 3
584
584
  }, 8, ["for"])) : E("", !0),
585
- m.popover ? (c(), S("span", ba, [
585
+ m.popover ? (c(), S("span", yi, [
586
586
  R(b.$slots, "popover")
587
587
  ])) : E("", !0)
588
588
  ], 2),
589
- O("div", pa, [
590
- u(t(Si), {
589
+ O("div", ki, [
590
+ u(t(Ca), {
591
591
  id: t(r),
592
592
  modelValue: d.value,
593
593
  "onUpdate:modelValue": A[0] || (A[0] = (w) => d.value = w),
@@ -596,7 +596,7 @@ const va = {
596
596
  onInput: A[1] || (A[1] = (w) => s("search", w.target.value)),
597
597
  onBlur: A[2] || (A[2] = (w) => s("blur", w)),
598
598
  class: x(["vd-field__input vd-field__input--icon-right", [
599
- `vd-field__input--${N.value}`,
599
+ `vd-field__input--${T.value}`,
600
600
  { "vd-field__input--icon-left": f.value }
601
601
  ]])
602
602
  }, null, 8, ["id", "modelValue", "placeholder", "class"]),
@@ -610,7 +610,7 @@ const va = {
610
610
  }, null, 2)
611
611
  ])
612
612
  ], 2)) : E("", !0),
613
- e.loading ? (c(), S("div", ga)) : e.clearable && _.value ? (c(), H(t(Vi), {
613
+ e.loading ? (c(), S("div", Si)) : e.clearable && _.value ? (c(), H(t(_a), {
614
614
  key: 2,
615
615
  as: "span",
616
616
  class: "vd-field__icon",
@@ -620,7 +620,7 @@ const va = {
620
620
  O("i", { class: "far fa-times vd-field__icon--clickable" }, null, -1)
621
621
  ])]),
622
622
  _: 1
623
- })) : (c(), H(t(Bi), {
623
+ })) : (c(), H(t(Ea), {
624
624
  key: 3,
625
625
  as: "span",
626
626
  class: "vd-field__icon"
@@ -632,11 +632,11 @@ const va = {
632
632
  ]),
633
633
  _: 1
634
634
  })),
635
- u(t(Ai), { class: "vd-combobox" }, {
635
+ u(t(Ma), { class: "vd-combobox" }, {
636
636
  default: v(() => [
637
- u(t(Ci), { class: "vd-combobox__list" }, {
637
+ u(t(wa), { class: "vd-combobox__list" }, {
638
638
  default: v(() => [
639
- e.virtual ? (c(), H(t(_i), {
639
+ e.virtual ? (c(), H(t(Pa), {
640
640
  key: 0,
641
641
  options: e.options,
642
642
  "estimate-size": e.estimateSize,
@@ -644,7 +644,7 @@ const va = {
644
644
  "text-content": y
645
645
  }, {
646
646
  default: v(({ option: w }) => [
647
- u(t(bt), {
647
+ u(t(pt), {
648
648
  value: V(w),
649
649
  "text-value": y(w),
650
650
  disabled: B(w),
@@ -657,7 +657,7 @@ const va = {
657
657
  }, () => [
658
658
  G(I(y(w)), 1)
659
659
  ]),
660
- u(t(pt), { class: "vd-combobox__check" }, {
660
+ u(t(gt), { class: "vd-combobox__check" }, {
661
661
  default: v(() => [...A[6] || (A[6] = [
662
662
  O("i", { class: "far fa-check" }, null, -1)
663
663
  ])]),
@@ -668,7 +668,7 @@ const va = {
668
668
  }, 1032, ["value", "text-value", "disabled", "onSelect"])
669
669
  ]),
670
670
  _: 3
671
- }, 8, ["options", "estimate-size", "overscan"])) : (c(!0), S(He, { key: 1 }, rt(e.options, (w, U) => (c(), H(t(bt), {
671
+ }, 8, ["options", "estimate-size", "overscan"])) : (c(!0), S(He, { key: 1 }, st(e.options, (w, U) => (c(), H(t(pt), {
672
672
  key: U,
673
673
  value: V(w),
674
674
  "text-value": y(w),
@@ -680,7 +680,7 @@ const va = {
680
680
  R(b.$slots, "item", { option: w }, () => [
681
681
  G(I(y(w)), 1)
682
682
  ]),
683
- u(t(pt), { class: "vd-combobox__check" }, {
683
+ u(t(gt), { class: "vd-combobox__check" }, {
684
684
  default: v(() => [...A[7] || (A[7] = [
685
685
  O("i", { class: "far fa-check" }, null, -1)
686
686
  ])]),
@@ -689,7 +689,7 @@ const va = {
689
689
  ]),
690
690
  _: 2
691
691
  }, 1032, ["value", "text-value", "disabled", "onSelect"]))), 128)),
692
- u(t(Ei), { class: "vd-combobox__empty" }, {
692
+ u(t(Oa), { class: "vd-combobox__empty" }, {
693
693
  default: v(() => [
694
694
  G(I(e.noResultsText), 1)
695
695
  ]),
@@ -702,13 +702,13 @@ const va = {
702
702
  _: 3
703
703
  })
704
704
  ]),
705
- N.value === "error" || m.errorMessage ? (c(), S("div", ha, [
705
+ T.value === "error" || m.errorMessage ? (c(), S("div", Vi, [
706
706
  R(b.$slots, "errorMessage", {}, () => [
707
707
  A[8] || (A[8] = O("i", { class: "fas fa-exclamation-circle vd-field__message-icon" }, null, -1)),
708
708
  G(" " + I(e.errorMessage), 1)
709
709
  ])
710
710
  ])) : E("", !0),
711
- e.infoMessage || m.information ? (c(), S("div", ya, [
711
+ e.infoMessage || m.information ? (c(), S("div", Bi, [
712
712
  R(b.$slots, "information", {}, () => [
713
713
  A[9] || (A[9] = O("i", { class: "fas fa-info-circle vd-field__message-icon" }, null, -1)),
714
714
  G(" " + I(e.infoMessage), 1)
@@ -718,7 +718,7 @@ const va = {
718
718
  _: 3
719
719
  }, 16, ["modelValue", "open"]));
720
720
  }
721
- }), ka = { class: "vd-radio-field" }, Sa = { class: "vd-radio-field__input" }, Va = ["id", "disabled", "name", "value"], Ba = ["for"], Aa = /* @__PURE__ */ q({
721
+ }), Ai = { class: "vd-radio-field" }, Ci = { class: "vd-radio-field__input" }, _i = ["id", "disabled", "name", "value"], Ei = ["for"], Mi = /* @__PURE__ */ q({
722
722
  __name: "VdRadio",
723
723
  props: /* @__PURE__ */ Z({
724
724
  name: {},
@@ -733,15 +733,15 @@ const va = {
733
733
  modelModifiers: {}
734
734
  }),
735
735
  emits: /* @__PURE__ */ Z(["change", "blur"], ["update:modelValue"]),
736
- setup(e, { emit: i }) {
737
- const a = e, n = de(e, "modelValue"), l = i, o = be(), d = a.id ?? Ue(), s = (r) => {
738
- l("change", a.value, r.target.value);
736
+ setup(e, { emit: a }) {
737
+ const i = e, n = de(e, "modelValue"), l = a, o = be(), d = i.id ?? Ue(), s = (r) => {
738
+ l("change", i.value, r.target.value);
739
739
  }, m = (r) => {
740
- l("blur", a.value, r.target.value);
740
+ l("blur", i.value, r.target.value);
741
741
  };
742
- return (r, f) => (c(), S("div", ka, [
743
- O("div", Sa, [
744
- lt(O("input", {
742
+ return (r, f) => (c(), S("div", Ai, [
743
+ O("div", Ci, [
744
+ rt(O("input", {
745
745
  id: t(d),
746
746
  "onUpdate:modelValue": f[0] || (f[0] = (p) => n.value = p),
747
747
  onChange: s,
@@ -754,8 +754,8 @@ const va = {
754
754
  "vd-radio--green": e.green
755
755
  }]),
756
756
  type: "radio"
757
- }, null, 42, Va), [
758
- [Zt, n.value]
757
+ }, null, 42, _i), [
758
+ [Xt, n.value]
759
759
  ])
760
760
  ]),
761
761
  e.label || t(o).label ? (c(), S("label", {
@@ -766,23 +766,23 @@ const va = {
766
766
  R(r.$slots, "label", {}, () => [
767
767
  G(I(e.label), 1)
768
768
  ])
769
- ], 8, Ba)) : E("", !0),
769
+ ], 8, Ei)) : E("", !0),
770
770
  R(r.$slots, "popover")
771
771
  ]));
772
772
  }
773
- }), Ca = ["disabled"], _a = { class: "vd-field__label" }, Ea = {
773
+ }), wi = ["disabled"], Pi = { class: "vd-field__label" }, Oi = {
774
774
  key: 0,
775
775
  class: "vd-field__asterisk"
776
- }, Ma = {
776
+ }, $i = {
777
777
  key: 0,
778
778
  class: "vd-field__popover"
779
- }, wa = {
779
+ }, Fi = {
780
780
  key: 1,
781
781
  class: "vd-field__message vd-field__message--error"
782
- }, Pa = {
782
+ }, Li = {
783
783
  key: 2,
784
784
  class: "vd-field__message vd-field__message--information"
785
- }, Ne = /* @__PURE__ */ q({
785
+ }, Te = /* @__PURE__ */ q({
786
786
  __name: "VdRadioGroup",
787
787
  props: /* @__PURE__ */ Z({
788
788
  name: {},
@@ -799,10 +799,10 @@ const va = {
799
799
  modelModifiers: {}
800
800
  }),
801
801
  emits: /* @__PURE__ */ Z(["change", "blur"], ["update:modelValue"]),
802
- setup(e, { emit: i }) {
803
- const a = e, n = de(e, "modelValue"), l = i, o = be(), d = F(() => !!a.errorMessage), s = F(() => ({
804
- "vd-radio-group--horizontal": a.variant === "horizontal",
805
- "vd-radio-group--boxed": a.variant === "boxed"
802
+ setup(e, { emit: a }) {
803
+ const i = e, n = de(e, "modelValue"), l = a, o = be(), d = F(() => !!i.errorMessage), s = F(() => ({
804
+ "vd-radio-group--horizontal": i.variant === "horizontal",
805
+ "vd-radio-group--boxed": i.variant === "boxed"
806
806
  })), m = (f) => {
807
807
  l("change", f);
808
808
  }, r = (f) => {
@@ -816,20 +816,20 @@ const va = {
816
816
  key: 0,
817
817
  class: x(["vd-field__label-wrapper", { "vd-field__label-wrapper--disabled": e.disabled }])
818
818
  }, [
819
- O("div", _a, [
819
+ O("div", Pi, [
820
820
  R(f.$slots, "legend", {}, () => [
821
821
  G(I(e.legend), 1)
822
822
  ]),
823
- e.required ? (c(), S("span", Ea, "*")) : E("", !0)
823
+ e.required ? (c(), S("span", Oi, "*")) : E("", !0)
824
824
  ]),
825
- t(o).popover ? (c(), S("span", Ma, [
825
+ t(o).popover ? (c(), S("span", $i, [
826
826
  R(f.$slots, "popover")
827
827
  ])) : E("", !0)
828
828
  ], 2)) : E("", !0),
829
829
  O("div", {
830
830
  class: x(["vd-radio-group__list", e.groupClass])
831
831
  }, [
832
- (c(!0), S(He, null, rt(e.options, (y) => (c(), H(Aa, {
832
+ (c(!0), S(He, null, st(e.options, (y) => (c(), H(Mi, {
833
833
  key: y.value,
834
834
  modelValue: n.value,
835
835
  "onUpdate:modelValue": p[0] || (p[0] = (V) => n.value = V),
@@ -850,22 +850,22 @@ const va = {
850
850
  _: 2
851
851
  }, 1032, ["modelValue", "value", "label", "name", "disabled", "invalid"]))), 128))
852
852
  ], 2),
853
- d.value ? (c(), S("div", wa, [
853
+ d.value ? (c(), S("div", Fi, [
854
854
  p[1] || (p[1] = O("i", { class: "fas fa-exclamation-circle vd-field__message-icon" }, null, -1)),
855
855
  G(" " + I(e.errorMessage), 1)
856
856
  ])) : E("", !0),
857
- e.infoMessage || t(o).information ? (c(), S("div", Pa, [
857
+ e.infoMessage || t(o).information ? (c(), S("div", Li, [
858
858
  R(f.$slots, "information", {}, () => [
859
859
  p[2] || (p[2] = O("i", { class: "fas fa-info-circle vd-field__message-icon" }, null, -1)),
860
860
  G(" " + I(e.infoMessage), 1)
861
861
  ])
862
862
  ])) : E("", !0)
863
- ], 10, Ca));
863
+ ], 10, wi));
864
864
  }
865
- }), Oa = { class: "vd-notification__content" }, $a = {
865
+ }), Ni = { class: "vd-notification__content" }, Ti = {
866
866
  key: 0,
867
867
  class: "vd-notification__title"
868
- }, Fa = /* @__PURE__ */ q({
868
+ }, zi = /* @__PURE__ */ q({
869
869
  __name: "VdNotification",
870
870
  props: {
871
871
  type: { default: "warning" },
@@ -875,54 +875,54 @@ const va = {
875
875
  icon: { default: "" }
876
876
  },
877
877
  setup(e) {
878
- const i = {
878
+ const a = {
879
879
  warning: "fas fa-exclamation-circle",
880
880
  informative: "fas fa-info-circle",
881
881
  success: "fas fa-check-circle",
882
882
  error: "fas fa-times-circle"
883
883
  };
884
- return (a, n) => (c(), S("div", {
884
+ return (i, n) => (c(), S("div", {
885
885
  class: x(["vd-notification", [
886
886
  `vd-notification--${e.type}`,
887
887
  { "vd-notification--small": e.small }
888
888
  ]])
889
889
  }, [
890
890
  O("i", {
891
- class: x([e.icon || i[e.type], "vd-notification__icon"])
891
+ class: x([e.icon || a[e.type], "vd-notification__icon"])
892
892
  }, null, 2),
893
- O("p", Oa, [
894
- e.title ? (c(), S("span", $a, I(e.title), 1)) : E("", !0),
895
- R(a.$slots, "default", {}, () => [
893
+ O("p", Ni, [
894
+ e.title ? (c(), S("span", Ti, I(e.title), 1)) : E("", !0),
895
+ R(i.$slots, "default", {}, () => [
896
896
  G(I(e.text), 1)
897
897
  ])
898
898
  ])
899
899
  ], 2));
900
900
  }
901
- }), La = { class: "vd-popover__title" }, Ta = {
901
+ }), Di = { class: "vd-popover__title" }, Ri = {
902
902
  key: 0,
903
903
  class: "vd-popover__title-icon"
904
- }, Na = { key: 1 }, za = /* @__PURE__ */ q({
904
+ }, xi = { key: 1 }, ji = /* @__PURE__ */ q({
905
905
  __name: "VdPopoverHeader",
906
906
  props: {
907
907
  title: { default: "" },
908
908
  icon: { default: "" }
909
909
  },
910
910
  emits: ["close"],
911
- setup(e, { emit: i }) {
912
- const a = i, n = () => {
913
- a("close");
911
+ setup(e, { emit: a }) {
912
+ const i = a, n = () => {
913
+ i("close");
914
914
  };
915
915
  return (l, o) => (c(), S("div", {
916
916
  class: x(["vd-popover__header", { "vd-popover__header--only-close-icon": !e.title }])
917
917
  }, [
918
918
  e.title ? R(l.$slots, "default", { key: 0 }, () => [
919
- O("div", La, [
920
- e.icon ? (c(), S("div", Ta, [
919
+ O("div", Di, [
920
+ e.icon ? (c(), S("div", Ri, [
921
921
  O("i", {
922
922
  class: x(e.icon)
923
923
  }, null, 2)
924
924
  ])) : E("", !0),
925
- e.title ? (c(), S("span", Na, I(e.title), 1)) : E("", !0)
925
+ e.title ? (c(), S("span", xi, I(e.title), 1)) : E("", !0)
926
926
  ])
927
927
  ]) : E("", !0),
928
928
  O("button", {
@@ -933,7 +933,7 @@ const va = {
933
933
  ])])
934
934
  ], 2));
935
935
  }
936
- }), Da = ["innerHTML"], Ra = /* @__PURE__ */ q({
936
+ }), Ii = ["innerHTML"], qi = /* @__PURE__ */ q({
937
937
  __name: "VdPopoverTooltip",
938
938
  props: {
939
939
  content: { default: () => ({
@@ -946,11 +946,11 @@ const va = {
946
946
  headerIconTooltip: { default: "" }
947
947
  },
948
948
  emits: ["close"],
949
- setup(e, { emit: i }) {
950
- const a = i, n = () => {
951
- a("close");
949
+ setup(e, { emit: a }) {
950
+ const i = a, n = () => {
951
+ i("close");
952
952
  };
953
- return (l, o) => (c(), H(Xt, null, {
953
+ return (l, o) => (c(), H(ea, null, {
954
954
  default: v(() => [
955
955
  O("div", {
956
956
  onPointerdown: o[0] || (o[0] = Le(() => {
@@ -960,7 +960,7 @@ const va = {
960
960
  e.variant ? `vd-popover__tooltip--${e.variant}` : ""
961
961
  ]])
962
962
  }, [
963
- e.hideHeaderTooltip ? E("", !0) : (c(), H(za, {
963
+ e.hideHeaderTooltip ? E("", !0) : (c(), H(ji, {
964
964
  key: 0,
965
965
  onClose: n,
966
966
  title: e.content.title,
@@ -970,13 +970,13 @@ const va = {
970
970
  key: 1,
971
971
  innerHTML: e.content.description,
972
972
  class: "vd-popover__description"
973
- }, null, 8, Da)) : E("", !0)
973
+ }, null, 8, Ii)) : E("", !0)
974
974
  ], 34)
975
975
  ]),
976
976
  _: 1
977
977
  }));
978
978
  }
979
- }), xa = { key: 1 }, ja = /* @__PURE__ */ q({
979
+ }), Ui = { key: 1 }, Hi = /* @__PURE__ */ q({
980
980
  __name: "VdPopoverReference",
981
981
  props: {
982
982
  label: { default: "" },
@@ -985,14 +985,14 @@ const va = {
985
985
  iconLeft: { type: Boolean, default: !1 }
986
986
  },
987
987
  setup(e) {
988
- return (i, a) => (c(), S("span", {
988
+ return (a, i) => (c(), S("span", {
989
989
  class: x(["vd-popover__reference", [e.variant ? `vd-popover__reference--${e.variant}` : ""]])
990
990
  }, [
991
991
  e.iconLeft ? (c(), S("i", {
992
992
  key: 0,
993
993
  class: x(e.icon)
994
994
  }, null, 2)) : E("", !0),
995
- e.label ? (c(), S("span", xa, I(e.label), 1)) : E("", !0),
995
+ e.label ? (c(), S("span", Ui, I(e.label), 1)) : E("", !0),
996
996
  e.iconLeft ? E("", !0) : (c(), S("i", {
997
997
  key: 2,
998
998
  class: x(e.icon)
@@ -1024,38 +1024,38 @@ const va = {
1024
1024
  fullWidth: { type: Boolean, default: !1 }
1025
1025
  },
1026
1026
  setup(e) {
1027
- const i = e, a = Y(null), n = Y(null), { floatingStyles: l } = ui(a, n, {
1028
- placement: i.position,
1027
+ const a = e, i = Y(null), n = Y(null), { floatingStyles: l } = va(i, n, {
1028
+ placement: a.position,
1029
1029
  middleware: [
1030
- ci(i.offSet),
1031
- fi({
1032
- mainAxis: !i.fixed
1030
+ pa(a.offSet),
1031
+ ga({
1032
+ mainAxis: !a.fixed
1033
1033
  }),
1034
- vi({
1034
+ ha({
1035
1035
  crossAxis: !1,
1036
1036
  padding: 10
1037
1037
  })
1038
1038
  ],
1039
- whileElementsMounted: mi
1039
+ whileElementsMounted: ba
1040
1040
  }), o = Y(!1), d = Y(!1), s = () => {
1041
1041
  o.value = !0, d.value = !0;
1042
1042
  }, m = () => {
1043
1043
  o.value = !1, d.value = !1;
1044
1044
  }, r = () => {
1045
- i.disableClickListener || i.mousedownListener || (d.value ? m() : s());
1045
+ a.disableClickListener || a.mousedownListener || (d.value ? m() : s());
1046
1046
  }, f = () => {
1047
- i.mousedownListener && (o.value ? m() : s());
1047
+ a.mousedownListener && (o.value ? m() : s());
1048
1048
  }, p = () => {
1049
- i.disableHoverListener || (o.value = !0);
1049
+ a.disableHoverListener || (o.value = !0);
1050
1050
  }, y = () => {
1051
- i.disableHoverListener || d.value || (o.value = !1);
1051
+ a.disableHoverListener || d.value || (o.value = !1);
1052
1052
  };
1053
1053
  return (V, B) => (c(), S("span", {
1054
1054
  class: x(["vd-popover", `vd-popover--${e.display}`])
1055
1055
  }, [
1056
1056
  O("span", {
1057
1057
  ref_key: "reference",
1058
- ref: a,
1058
+ ref: i,
1059
1059
  onClick: Le(r, ["stop"]),
1060
1060
  onMouseover: p,
1061
1061
  onMouseleave: y,
@@ -1070,7 +1070,7 @@ const va = {
1070
1070
  isOpen: o.value,
1071
1071
  close: m
1072
1072
  }, () => [
1073
- u(ja, {
1073
+ u(Hi, {
1074
1074
  variant: e.refVariant,
1075
1075
  label: e.label,
1076
1076
  icon: e.iconRef,
@@ -1084,11 +1084,11 @@ const va = {
1084
1084
  ref: n,
1085
1085
  onPointerdown: B[0] || (B[0] = Le(() => {
1086
1086
  }, ["prevent"])),
1087
- style: ei(t(l)),
1088
- class: x(["vd-popover__floating", i.fullWidth ? "vd-popover__floating--full-width" : ""])
1087
+ style: ta(t(l)),
1088
+ class: x(["vd-popover__floating", a.fullWidth ? "vd-popover__floating--full-width" : ""])
1089
1089
  }, [
1090
1090
  R(V.$slots, "tooltip", { close: m }, () => [
1091
- u(Ra, {
1091
+ u(qi, {
1092
1092
  onClose: m,
1093
1093
  content: e.content,
1094
1094
  variant: e.tooltipVariant,
@@ -1100,18 +1100,18 @@ const va = {
1100
1100
  ], 38)) : E("", !0)
1101
1101
  ], 2));
1102
1102
  }
1103
- }), Ia = (e, i) => {
1104
- const a = e.__vccOpts || e;
1105
- for (const [n, l] of i)
1106
- a[n] = l;
1107
- return a;
1108
- }, qa = {}, Ua = { class: "vd-form__row" };
1109
- function Ha(e, i) {
1110
- return c(), S("div", Ua, [
1103
+ }), Wi = (e, a) => {
1104
+ const i = e.__vccOpts || e;
1105
+ for (const [n, l] of a)
1106
+ i[n] = l;
1107
+ return i;
1108
+ }, Ki = {}, Gi = { class: "vd-form__row" };
1109
+ function Yi(e, a) {
1110
+ return c(), S("div", Gi, [
1111
1111
  R(e.$slots, "default")
1112
1112
  ]);
1113
1113
  }
1114
- const zt = /* @__PURE__ */ Ia(qa, [["render", Ha]]), L = /* @__PURE__ */ q({
1114
+ const Dt = /* @__PURE__ */ Wi(Ki, [["render", Yi]]), L = /* @__PURE__ */ q({
1115
1115
  __name: "VdFormCol",
1116
1116
  props: {
1117
1117
  span: { default: null },
@@ -1119,27 +1119,27 @@ const zt = /* @__PURE__ */ Ia(qa, [["render", Ha]]), L = /* @__PURE__ */ q({
1119
1119
  ratio: { default: null }
1120
1120
  },
1121
1121
  setup(e) {
1122
- const i = e, a = F(() => [
1123
- i.span != null ? `vd-form__col-${i.span}` : null,
1124
- i.md != null ? `vd-form__col-md-${i.md}` : null,
1125
- i.ratio != null ? `vd-form__ratio-${i.ratio}` : null
1122
+ const a = e, i = F(() => [
1123
+ a.span != null ? `vd-form__col-${a.span}` : null,
1124
+ a.md != null ? `vd-form__col-md-${a.md}` : null,
1125
+ a.ratio != null ? `vd-form__ratio-${a.ratio}` : null
1126
1126
  ]);
1127
1127
  return (n, l) => (c(), S("div", {
1128
- class: x(a.value)
1128
+ class: x(i.value)
1129
1129
  }, [
1130
1130
  R(n.$slots, "default")
1131
1131
  ], 2));
1132
1132
  }
1133
- }), Wa = {
1133
+ }), Ji = {
1134
1134
  key: 0,
1135
1135
  class: "vd-form__banner"
1136
- }, Ka = ["innerHTML"], Ga = {
1136
+ }, Qi = ["innerHTML"], Zi = {
1137
1137
  key: 1,
1138
1138
  class: "vd-form__header"
1139
- }, Ya = {
1139
+ }, Xi = {
1140
1140
  key: 0,
1141
1141
  class: "vd-form__title"
1142
- }, Ja = {
1142
+ }, en = {
1143
1143
  key: 1,
1144
1144
  class: "vd-form__description"
1145
1145
  }, oe = /* @__PURE__ */ q({
@@ -1158,13 +1158,13 @@ const zt = /* @__PURE__ */ Ia(qa, [["render", Ha]]), L = /* @__PURE__ */ q({
1158
1158
  actionMd: { default: null }
1159
1159
  },
1160
1160
  emits: ["submit"],
1161
- setup(e, { emit: i }) {
1162
- const a = e, n = i, l = be(), o = F(() => [
1161
+ setup(e, { emit: a }) {
1162
+ const i = e, n = a, l = be(), o = F(() => [
1163
1163
  "vd-form",
1164
- `vd-form--${a.layout}`,
1165
- { "vd-form--card": a.card },
1166
- { "vd-form--flat": a.flat },
1167
- { "vd-form--full-width": a.fullWidth }
1164
+ `vd-form--${i.layout}`,
1165
+ { "vd-form--card": i.card },
1166
+ { "vd-form--flat": i.flat },
1167
+ { "vd-form--full-width": i.fullWidth }
1168
1168
  ]), d = (s) => {
1169
1169
  n("submit", s);
1170
1170
  };
@@ -1172,18 +1172,18 @@ const zt = /* @__PURE__ */ Ia(qa, [["render", Ha]]), L = /* @__PURE__ */ q({
1172
1172
  class: x(o.value),
1173
1173
  onSubmit: Le(d, ["prevent"])
1174
1174
  }, [
1175
- t(l).banner || e.banner ? (c(), S("div", Wa, [
1175
+ t(l).banner || e.banner ? (c(), S("div", Ji, [
1176
1176
  R(s.$slots, "banner", {}, () => [
1177
- O("span", { innerHTML: e.banner }, null, 8, Ka)
1177
+ O("span", { innerHTML: e.banner }, null, 8, Qi)
1178
1178
  ])
1179
1179
  ])) : E("", !0),
1180
- t(l).header || e.title || e.description ? (c(), S("div", Ga, [
1180
+ t(l).header || e.title || e.description ? (c(), S("div", Zi, [
1181
1181
  R(s.$slots, "header", {}, () => [
1182
- e.title ? (c(), S("h2", Ya, I(e.title), 1)) : E("", !0),
1183
- e.description ? (c(), S("p", Ja, I(e.description), 1)) : E("", !0)
1182
+ e.title ? (c(), S("h2", Xi, I(e.title), 1)) : E("", !0),
1183
+ e.description ? (c(), S("p", en, I(e.description), 1)) : E("", !0)
1184
1184
  ])
1185
1185
  ])) : E("", !0),
1186
- u(zt, null, {
1186
+ u(Dt, null, {
1187
1187
  default: v(() => [
1188
1188
  R(s.$slots, "default"),
1189
1189
  u(L, {
@@ -1193,7 +1193,7 @@ const zt = /* @__PURE__ */ Ia(qa, [["render", Ha]]), L = /* @__PURE__ */ q({
1193
1193
  }, {
1194
1194
  default: v(() => [
1195
1195
  R(s.$slots, "action", {}, () => [
1196
- u($i, {
1196
+ u(Ta, {
1197
1197
  label: e.submitLabel,
1198
1198
  "button-type": "green",
1199
1199
  size: "big",
@@ -1210,20 +1210,20 @@ const zt = /* @__PURE__ */ Ia(qa, [["render", Ha]]), L = /* @__PURE__ */ q({
1210
1210
  })
1211
1211
  ], 34));
1212
1212
  }
1213
- }), Qa = /* @__PURE__ */ q({
1213
+ }), tn = /* @__PURE__ */ q({
1214
1214
  __name: "VdFormGroup",
1215
1215
  props: {
1216
1216
  span: { default: null },
1217
1217
  md: { default: null }
1218
1218
  },
1219
1219
  setup(e) {
1220
- const i = e, a = F(() => [
1220
+ const a = e, i = F(() => [
1221
1221
  "vd-form__group",
1222
- i.span != null ? `vd-form__col-${i.span}` : null,
1223
- i.md != null ? `vd-form__col-md-${i.md}` : null
1222
+ a.span != null ? `vd-form__col-${a.span}` : null,
1223
+ a.md != null ? `vd-form__col-md-${a.md}` : null
1224
1224
  ]);
1225
1225
  return (n, l) => (c(), S("div", {
1226
- class: x(a.value)
1226
+ class: x(i.value)
1227
1227
  }, [
1228
1228
  R(n.$slots, "default")
1229
1229
  ], 2));
@@ -1243,10 +1243,10 @@ const zt = /* @__PURE__ */ Ia(qa, [["render", Ha]]), L = /* @__PURE__ */ q({
1243
1243
  }),
1244
1244
  emits: ["update:modelValue"],
1245
1245
  setup(e) {
1246
- const i = be(), a = de(e, "modelValue");
1246
+ const a = be(), i = de(e, "modelValue");
1247
1247
  return (n, l) => (c(), H(Ae, M({
1248
- modelValue: a.value,
1249
- "onUpdate:modelValue": l[0] || (l[0] = (o) => a.value = o),
1248
+ modelValue: i.value,
1249
+ "onUpdate:modelValue": l[0] || (l[0] = (o) => i.value = o),
1250
1250
  label: e.label,
1251
1251
  placeholder: e.placeholder,
1252
1252
  name: e.name,
@@ -1254,7 +1254,7 @@ const zt = /* @__PURE__ */ Ia(qa, [["render", Ha]]), L = /* @__PURE__ */ q({
1254
1254
  required: e.required,
1255
1255
  inputmode: "numeric"
1256
1256
  }, n.$attrs), We({ _: 2 }, [
1257
- t(i).popover ? {
1257
+ t(a).popover ? {
1258
1258
  name: "popover",
1259
1259
  fn: v(() => [
1260
1260
  R(n.$slots, "popover")
@@ -1276,22 +1276,22 @@ const zt = /* @__PURE__ */ Ia(qa, [["render", Ha]]), L = /* @__PURE__ */ q({
1276
1276
  }),
1277
1277
  emits: ["update:modelValue"],
1278
1278
  setup(e) {
1279
- const i = [
1279
+ const a = [
1280
1280
  { value: J.SingleWithoutChildren, title: "Alleenstaand zonder kinderen" },
1281
1281
  { value: J.FamilyWithoutChildren, title: "Gezin zonder kinderen" },
1282
1282
  { value: J.SingleWithChildren, title: "Alleenstaand met kinderen" },
1283
1283
  { value: J.FamilyWithChildren, title: "Gezin met kinderen" }
1284
- ], a = be(), n = de(e, "modelValue");
1284
+ ], i = be(), n = de(e, "modelValue");
1285
1285
  return (l, o) => (c(), H(Ve, M({
1286
1286
  modelValue: n.value,
1287
1287
  "onUpdate:modelValue": o[0] || (o[0] = (d) => n.value = d),
1288
1288
  label: e.label,
1289
1289
  name: e.name,
1290
1290
  required: e.required,
1291
- options: i,
1291
+ options: a,
1292
1292
  placeholder: ""
1293
1293
  }, l.$attrs), We({ _: 2 }, [
1294
- t(a).popover ? {
1294
+ t(i).popover ? {
1295
1295
  name: "popover",
1296
1296
  fn: v(() => [
1297
1297
  R(l.$slots, "popover")
@@ -1300,25 +1300,25 @@ const zt = /* @__PURE__ */ Ia(qa, [["render", Ha]]), L = /* @__PURE__ */ q({
1300
1300
  } : void 0
1301
1301
  ]), 1040, ["modelValue", "label", "name", "required"]));
1302
1302
  }
1303
- }), Za = (e) => e.replace(/\["(\d+)"\]/g, "[$1]"), et = (e, i) => `${e}${i}`, Xa = (e) => (e.inner || []).reduce((i, a) => {
1304
- const n = Za(a.path);
1305
- return i[n] || (i[n] = a.message), i;
1306
- }, {}), ht = (e) => {
1303
+ }), an = (e) => e.replace(/\["(\d+)"\]/g, "[$1]"), et = (e, a) => `${e}${a}`, nn = (e) => (e.inner || []).reduce((a, i) => {
1304
+ const n = an(i.path);
1305
+ return a[n] || (a[n] = i.message), a;
1306
+ }, {}), yt = (e) => {
1307
1307
  if (!e.inner)
1308
1308
  throw e;
1309
- return Xa(e);
1310
- }, en = {
1309
+ return nn(e);
1310
+ }, on = {
1311
1311
  isValidating: !1
1312
- }, tn = {
1312
+ }, ln = {
1313
1313
  validateAt: "blur",
1314
1314
  strict: !0,
1315
1315
  abortEarly: !1
1316
- }, Dt = Symbol("useValidator"), le = (e, i, a) => {
1317
- const n = { ...tn, ...a }, l = Re(i), o = Y(Re(l)), d = Y({}), s = Y(!1), m = Y(!1), r = Y({}), f = (k) => F({
1316
+ }, Rt = Symbol("useValidator"), le = (e, a, i) => {
1317
+ const n = { ...ln, ...i }, l = Re(a), o = Y(Re(l)), d = Y({}), s = Y(!1), m = Y(!1), r = Y({}), f = (k) => F({
1318
1318
  get: () => h(k),
1319
1319
  set: (C) => _(k, C)
1320
1320
  }), p = (k, C) => F(() => ({
1321
- onBlur: () => N(k, C),
1321
+ onBlur: () => T(k, C),
1322
1322
  onChange: () => z(k, C),
1323
1323
  onInput: () => $(k, C)
1324
1324
  })), y = (k) => F(() => we(k)), V = (k) => F(() => {
@@ -1333,8 +1333,8 @@ const zt = /* @__PURE__ */ Ia(qa, [["render", Ha]]), L = /* @__PURE__ */ q({
1333
1333
  }, g = (k, C) => {
1334
1334
  r.value[k] = { ...r.value[k], ...C };
1335
1335
  }, h = (k) => Se(o.value, k), _ = (k, C) => {
1336
- fa(o.value, k, C);
1337
- }, N = (k, C) => {
1336
+ gi(o.value, k, C);
1337
+ }, T = (k, C) => {
1338
1338
  C === "blur" && re(k);
1339
1339
  }, z = (k, C) => {
1340
1340
  C === "change" && it(() => re(k));
@@ -1342,9 +1342,9 @@ const zt = /* @__PURE__ */ Ia(qa, [["render", Ha]]), L = /* @__PURE__ */ q({
1342
1342
  C === "input" && it(() => re(k));
1343
1343
  }, P = (k, C) => {
1344
1344
  const X = (C == null ? void 0 : C.validateAt) ?? n.validateAt;
1345
- g(k, en);
1346
- const me = f(k), pe = p(k, X), Xe = y(k), ft = V(k);
1347
- return [me, pe, Xe, ft];
1345
+ g(k, on);
1346
+ const me = f(k), pe = p(k, X), Xe = y(k), vt = V(k);
1347
+ return [me, pe, Xe, vt];
1348
1348
  }, b = (k) => {
1349
1349
  const C = f(k), X = (ge, se) => {
1350
1350
  const Pe = (se == null ? void 0 : se.validateAt) ?? n.validateAt, De = et(k, ge);
@@ -1392,7 +1392,7 @@ const zt = /* @__PURE__ */ Ia(qa, [["render", Ha]]), L = /* @__PURE__ */ q({
1392
1392
  C.startsWith(k) && ke(C);
1393
1393
  });
1394
1394
  }, U = async (k, C) => {
1395
- mt(!0);
1395
+ ct(!0);
1396
1396
  try {
1397
1397
  const X = await K();
1398
1398
  if (X && typeof k == "function")
@@ -1402,7 +1402,7 @@ const zt = /* @__PURE__ */ Ia(qa, [["render", Ha]]), L = /* @__PURE__ */ q({
1402
1402
  } catch (X) {
1403
1403
  console.error(X);
1404
1404
  } finally {
1405
- mt(!1);
1405
+ ct(!1);
1406
1406
  }
1407
1407
  }, K = async () => {
1408
1408
  ue(!0), Q();
@@ -1412,7 +1412,7 @@ const zt = /* @__PURE__ */ Ia(qa, [["render", Ha]]), L = /* @__PURE__ */ q({
1412
1412
  abortEarly: n.abortEarly
1413
1413
  }), o.value;
1414
1414
  } catch (k) {
1415
- const C = ht(k);
1415
+ const C = yt(k);
1416
1416
  Me(C);
1417
1417
  } finally {
1418
1418
  ue(!1);
@@ -1425,7 +1425,7 @@ const zt = /* @__PURE__ */ Ia(qa, [["render", Ha]]), L = /* @__PURE__ */ q({
1425
1425
  abortEarly: n.abortEarly
1426
1426
  });
1427
1427
  } catch (C) {
1428
- const X = ht(C);
1428
+ const X = yt(C);
1429
1429
  Me(X);
1430
1430
  } finally {
1431
1431
  g(k, { isValidating: !1 });
@@ -1442,9 +1442,9 @@ const zt = /* @__PURE__ */ Ia(qa, [["render", Ha]]), L = /* @__PURE__ */ q({
1442
1442
  d.value = {};
1443
1443
  }, ue = (k) => {
1444
1444
  m.value = k;
1445
- }, mt = (k) => {
1445
+ }, ct = (k) => {
1446
1446
  s.value = k;
1447
- }, ct = {
1447
+ }, ft = {
1448
1448
  formData: o,
1449
1449
  errors: F(() => d.value),
1450
1450
  isValid: F(() => Object.keys(d.value).length === 0),
@@ -1463,18 +1463,18 @@ const zt = /* @__PURE__ */ Ia(qa, [["render", Ha]]), L = /* @__PURE__ */ q({
1463
1463
  validateForm: K,
1464
1464
  validateField: re
1465
1465
  };
1466
- return ti(Dt, ct), ct;
1467
- }, an = () => {
1468
- const e = ii(Dt);
1466
+ return aa(Rt, ft), ft;
1467
+ }, rn = () => {
1468
+ const e = ia(Rt);
1469
1469
  if (!e)
1470
1470
  throw new Error(
1471
1471
  "useValidatorContext must be used within a component that has called useValidator"
1472
1472
  );
1473
1473
  return e;
1474
- }, nn = { class: "vd-field" }, on = {
1474
+ }, sn = { class: "vd-field" }, dn = {
1475
1475
  key: 0,
1476
1476
  class: "vd-field__message vd-field__message--error"
1477
- }, ln = {
1477
+ }, un = {
1478
1478
  key: 1,
1479
1479
  class: "vd-field__message vd-field__message--information"
1480
1480
  }, Ce = /* @__PURE__ */ q({
@@ -1483,27 +1483,27 @@ const zt = /* @__PURE__ */ Ia(qa, [["render", Ha]]), L = /* @__PURE__ */ q({
1483
1483
  field: {}
1484
1484
  },
1485
1485
  setup(e) {
1486
- const i = e, { path: a, resolvedAddress: n, additionOptions: l } = i.field, {
1486
+ const a = e, { path: i, resolvedAddress: n, additionOptions: l } = a.field, {
1487
1487
  defineField: o,
1488
1488
  validateField: d,
1489
1489
  getFieldMeta: s,
1490
1490
  getError: m,
1491
1491
  removeError: r
1492
- } = an(), [f, , p] = o(`${a}.zipCode`), [y, , V] = o(`${a}.houseNumber`), [B, , g] = o(`${a}.houseNumberAddition`), h = async () => {
1493
- await d(a), B.value || r(`${a}.houseNumberAddition`);
1492
+ } = rn(), [f, , p] = o(`${i}.zipCode`), [y, , V] = o(`${i}.houseNumber`), [B, , g] = o(`${i}.houseNumberAddition`), h = async () => {
1493
+ await d(i), B.value || r(`${i}.houseNumberAddition`);
1494
1494
  }, _ = (U) => {
1495
1495
  f.value && y.value ? h() : d(U);
1496
- }, N = () => _(`${a}.zipCode`), z = () => _(`${a}.houseNumber`), $ = () => it(() => d(a)), P = s(a), b = F(() => m(a) ?? ""), A = F(() => n.value !== null), w = F(
1496
+ }, T = () => _(`${i}.zipCode`), z = () => _(`${i}.houseNumber`), $ = () => it(() => d(i)), P = s(i), b = F(() => m(i) ?? ""), A = F(() => n.value !== null), w = F(
1497
1497
  () => l.value.length === 0 ? "-" : "Kies een toevoeging"
1498
1498
  );
1499
1499
  return ce([f, y], () => {
1500
- B.value && (B.value = ""), n.value = null, r(a), r(`${a}.houseNumberAddition`);
1500
+ B.value && (B.value = ""), n.value = null, r(i), r(`${i}.houseNumberAddition`);
1501
1501
  }), ce(B, () => {
1502
1502
  n.value = null;
1503
- }), ai(() => {
1503
+ }), na(() => {
1504
1504
  f.value && y.value && h();
1505
- }), (U, K) => (c(), S("div", nn, [
1506
- u(zt, null, {
1505
+ }), (U, K) => (c(), S("div", sn, [
1506
+ u(Dt, null, {
1507
1507
  default: v(() => [
1508
1508
  u(L, {
1509
1509
  span: "5",
@@ -1512,9 +1512,9 @@ const zt = /* @__PURE__ */ Ia(qa, [["render", Ha]]), L = /* @__PURE__ */ q({
1512
1512
  default: v(() => [
1513
1513
  u(Ae, {
1514
1514
  modelValue: t(f),
1515
- "onUpdate:modelValue": K[0] || (K[0] = (re) => T(f) ? f.value = re : null),
1515
+ "onUpdate:modelValue": K[0] || (K[0] = (re) => N(f) ? f.value = re : null),
1516
1516
  modelModifiers: { trim: !0 },
1517
- onBlur: N,
1517
+ onBlur: T,
1518
1518
  name: "zipCode",
1519
1519
  label: "Postcode",
1520
1520
  placeholder: "bv. 1234 AZ",
@@ -1529,14 +1529,14 @@ const zt = /* @__PURE__ */ Ia(qa, [["render", Ha]]), L = /* @__PURE__ */ q({
1529
1529
  ]),
1530
1530
  _: 1
1531
1531
  }),
1532
- u(Qa, {
1532
+ u(tn, {
1533
1533
  span: "7",
1534
1534
  md: "3"
1535
1535
  }, {
1536
1536
  default: v(() => [
1537
1537
  u(Ae, {
1538
1538
  modelValue: t(y),
1539
- "onUpdate:modelValue": K[1] || (K[1] = (re) => T(y) ? y.value = re : null),
1539
+ "onUpdate:modelValue": K[1] || (K[1] = (re) => N(y) ? y.value = re : null),
1540
1540
  modelModifiers: { trim: !0 },
1541
1541
  onBlur: z,
1542
1542
  name: "houseNumber",
@@ -1551,7 +1551,7 @@ const zt = /* @__PURE__ */ Ia(qa, [["render", Ha]]), L = /* @__PURE__ */ q({
1551
1551
  }, null, 8, ["modelValue", "error-message", "verified", "loading"]),
1552
1552
  u(Ve, {
1553
1553
  modelValue: t(B),
1554
- "onUpdate:modelValue": K[2] || (K[2] = (re) => T(B) ? B.value = re : null),
1554
+ "onUpdate:modelValue": K[2] || (K[2] = (re) => N(B) ? B.value = re : null),
1555
1555
  onSelect: $,
1556
1556
  name: "houseNumberAddition",
1557
1557
  label: "Toevoeging",
@@ -1568,83 +1568,119 @@ const zt = /* @__PURE__ */ Ia(qa, [["render", Ha]]), L = /* @__PURE__ */ q({
1568
1568
  ]),
1569
1569
  _: 1
1570
1570
  }),
1571
- b.value ? (c(), S("div", on, [
1571
+ b.value ? (c(), S("div", dn, [
1572
1572
  K[3] || (K[3] = O("i", { class: "fas fa-exclamation-circle vd-field__message-icon" }, null, -1)),
1573
1573
  G(" " + I(b.value), 1)
1574
- ])) : t(n) ? (c(), S("div", ln, [
1574
+ ])) : t(n) ? (c(), S("div", un, [
1575
1575
  K[4] || (K[4] = O("i", { class: "fas fa-info-circle vd-field__message-icon" }, null, -1)),
1576
1576
  G(" " + I(t(n).street) + ", " + I(t(n).city), 1)
1577
1577
  ])) : E("", !0)
1578
1578
  ]));
1579
1579
  }
1580
- }), Ge = () => {
1581
- throw new Error("TransmissionClient is not initialized. Call initTransmissionClient() first.");
1582
- }, rn = (e) => ({
1580
+ });
1581
+ Ke.extend(fa);
1582
+ function xt() {
1583
+ return Ke().startOf("day");
1584
+ }
1585
+ function mn() {
1586
+ return xt().year();
1587
+ }
1588
+ function ut(e, a) {
1589
+ const i = Ke(e ?? "", a, !0);
1590
+ return i.isValid() ? i.startOf("day") : null;
1591
+ }
1592
+ function cn(e, a) {
1593
+ const i = xt();
1594
+ return {
1595
+ today: i,
1596
+ earliest: i.subtract(a.value + 1, a.unit).add(1, "day"),
1597
+ latest: i.subtract(e.value, e.unit)
1598
+ };
1599
+ }
1600
+ const fn = [
1601
+ J.FamilyWithChildren,
1602
+ J.FamilyWithoutChildren
1603
+ ];
1604
+ function nt(e) {
1605
+ return fn.includes(e);
1606
+ }
1607
+ let tt;
1608
+ function vn() {
1609
+ return {
1610
+ dataService: new da(),
1611
+ dataValidationService: new sa(),
1612
+ homeService: new ra()
1613
+ };
1614
+ }
1615
+ function Ge() {
1616
+ return tt || (tt = vn()), tt;
1617
+ }
1618
+ const bn = (e) => ({
1583
1619
  zipCode: e.ZipCode,
1584
1620
  houseNumber: String(e.HouseNumber),
1585
1621
  houseNumberAddition: e.HouseNumberAddition,
1586
1622
  city: e.Place,
1587
1623
  street: e.Street
1588
- }), yt = /^\d{4}\s?[a-zA-Z]{2}$/, kt = /^\d+$/, St = {
1624
+ }), kt = /^\d{4}\s?[a-zA-Z]{2}$/, St = /^\d+$/, Vt = {
1589
1625
  "needs-addition": "Een toevoeging is verplicht",
1590
1626
  "not-found": "Postcode en huisnummer combinatie onbekend.",
1591
1627
  error: "Adres ophalen is mislukt. Probeer het opnieuw."
1592
1628
  };
1593
- function Vt(e) {
1629
+ function Bt(e) {
1594
1630
  return e.replace(/\s/g, "").toUpperCase();
1595
1631
  }
1596
- const Rt = "NO_ADDITION";
1632
+ const jt = "NO_ADDITION";
1597
1633
  function ye(e) {
1598
- return e === Rt ? "" : e.replace("-", "");
1634
+ return e === jt ? "" : e.replace("-", "");
1599
1635
  }
1600
- const sn = (e) => e instanceof Error, xt = (e) => {
1601
- if (sn(e))
1636
+ const pn = (e) => e instanceof Error, It = (e) => {
1637
+ if (pn(e))
1602
1638
  throw e;
1603
1639
  return null;
1604
- }, jt = (e, i, a) => Ge().dataValidationService.validateZipCode(e, i, a).then((n) => n).catch(xt), dn = (e, i) => Ge().homeService.getAddition({ zipcode: e, houseNumber: i }).then((a) => a ?? []).catch(xt), un = async (e, i) => {
1605
- const [a, n] = await Promise.all([
1606
- jt(e, i),
1607
- dn(e, i)
1640
+ }, qt = (e, a, i) => Ge().dataValidationService.validateZipCode(e, a, i).then((n) => n).catch(It), gn = (e, a) => Ge().homeService.getAddition({ zipcode: e, houseNumber: a }).then((i) => i ?? []).catch(It), hn = async (e, a) => {
1641
+ const [i, n] = await Promise.all([
1642
+ qt(e, a),
1643
+ gn(e, a)
1608
1644
  ]);
1609
- return !a && !(n != null && n.length) ? null : {
1610
- validWithoutAddition: !!a,
1611
- template: a,
1645
+ return !i && !(n != null && n.length) ? null : {
1646
+ validWithoutAddition: !!i,
1647
+ template: i,
1612
1648
  additions: n ?? []
1613
1649
  };
1614
- }, mn = (e) => {
1615
- const i = e.additions.map((a) => ({
1616
- title: a,
1617
- value: ye(a)
1650
+ }, yn = (e) => {
1651
+ const a = e.additions.map((i) => ({
1652
+ title: i,
1653
+ value: ye(i)
1618
1654
  }));
1619
- return e.validWithoutAddition && i.length ? [{ title: "Geen toevoeging", value: Rt }, ...i] : i;
1655
+ return e.validWithoutAddition && a.length ? [{ title: "Geen toevoeging", value: jt }, ...a] : a;
1620
1656
  }, _e = (e) => ({
1621
1657
  zipCode: "",
1622
1658
  houseNumber: "",
1623
1659
  houseNumberAddition: ""
1624
1660
  }), Ee = (e = "address") => {
1625
- const i = Y(null), a = Y([]), n = F(() => {
1661
+ const a = Y(null), i = Y([]), n = F(() => {
1626
1662
  var r, f;
1627
1663
  return {
1628
- street: ((r = i.value) == null ? void 0 : r.street) ?? "",
1629
- city: ((f = i.value) == null ? void 0 : f.city) ?? ""
1664
+ street: ((r = a.value) == null ? void 0 : r.street) ?? "",
1665
+ city: ((f = a.value) == null ? void 0 : f.city) ?? ""
1630
1666
  };
1631
1667
  });
1632
1668
  let l = 0, o = null;
1633
1669
  const d = async (r) => {
1634
- const f = Vt(r.zipCode), p = r.houseNumber.trim(), y = ye(r.houseNumberAddition), V = `${f}:${p}`;
1670
+ const f = Bt(r.zipCode), p = r.houseNumber.trim(), y = ye(r.houseNumberAddition), V = `${f}:${p}`;
1635
1671
  try {
1636
1672
  let B = (o == null ? void 0 : o.key) === V ? o : null;
1637
1673
  if (!B) {
1638
- const h = await un(f, p);
1674
+ const h = await hn(f, p);
1639
1675
  if (!h)
1640
1676
  return { status: "not-found", options: [], address: null };
1641
1677
  B = o = { key: V, verdict: h };
1642
1678
  }
1643
- const g = mn(B.verdict);
1679
+ const g = yn(B.verdict);
1644
1680
  if (B.verdict.additions.length && !r.houseNumberAddition)
1645
1681
  return { status: "needs-addition", options: g, address: null };
1646
1682
  if (!B.verdict.template) {
1647
- const h = await jt(f, p, y);
1683
+ const h = await qt(f, p, y);
1648
1684
  if (!h)
1649
1685
  return { status: "not-found", options: [], address: null };
1650
1686
  B.verdict.template = h;
@@ -1659,23 +1695,23 @@ const sn = (e) => e instanceof Error, xt = (e) => {
1659
1695
  }
1660
1696
  }, s = async (r) => {
1661
1697
  const f = ++l, p = await d(r), y = f !== l;
1662
- return y || (a.value = p.options, i.value = p.address ? rn(p.address) : null), { ...p, stale: y };
1698
+ return y || (i.value = p.options, a.value = p.address ? bn(p.address) : null), { ...p, stale: y };
1663
1699
  }, m = te({
1664
- zipCode: ee().required("Vul je postcode in").matches(yt, "Postcode is incorrect"),
1665
- houseNumber: ee().required("Huisnummer is verplicht").matches(kt, "Huisnummer is incorrect"),
1700
+ zipCode: ee().required("Vul je postcode in").matches(kt, "Postcode is incorrect"),
1701
+ houseNumber: ee().required("Huisnummer is verplicht").matches(St, "Huisnummer is incorrect"),
1666
1702
  houseNumberAddition: ee().defined()
1667
1703
  }).test("address-lookup", async (r, f) => {
1668
- const p = Vt(r.zipCode ?? ""), y = String(r.houseNumber ?? "").trim();
1669
- if (!yt.test(p) || !kt.test(y))
1704
+ const p = Bt(r.zipCode ?? ""), y = String(r.houseNumber ?? "").trim();
1705
+ if (!kt.test(p) || !St.test(y))
1670
1706
  return !0;
1671
1707
  const { status: V, stale: B } = await s(r);
1672
1708
  return B || V === "resolved" ? !0 : V === "needs-addition" ? f.createError({
1673
1709
  path: `${f.path}.houseNumberAddition`,
1674
- message: St[V]
1675
- }) : f.createError({ message: St[V] });
1710
+ message: Vt[V]
1711
+ }) : f.createError({ message: Vt[V] });
1676
1712
  });
1677
- return { path: e, addressSchema: m, resolvedAddress: i, resolvedFields: n, additionOptions: a };
1678
- }, dt = {
1713
+ return { path: e, addressSchema: m, resolvedAddress: a, resolvedFields: n, additionOptions: i };
1714
+ }, mt = {
1679
1715
  [j.Car]: {
1680
1716
  apiTypes: ["Car", "Van"],
1681
1717
  dutch: "auto",
@@ -1696,19 +1732,19 @@ const sn = (e) => e instanceof Error, xt = (e) => {
1696
1732
  dutch: "caravan",
1697
1733
  icon: "fa-caravan-alt"
1698
1734
  }
1699
- }, cn = Object.fromEntries(
1700
- Object.values(dt).flatMap(
1701
- ({ apiTypes: e, icon: i }) => e.map((a) => [a.toLowerCase(), i])
1735
+ }, kn = Object.fromEntries(
1736
+ Object.values(mt).flatMap(
1737
+ ({ apiTypes: e, icon: a }) => e.map((i) => [i.toLowerCase(), a])
1702
1738
  )
1703
- ), fn = {
1739
+ ), Sn = {
1704
1740
  brommobiel: "fa-car-side",
1705
1741
  "speed pedelec": "fa-bicycle"
1706
- }, vn = (e) => !!(e != null && e.Brand) && !!e.Model && !!e.ManufacturingYear, bn = (e) => {
1742
+ }, Vn = (e) => !!(e != null && e.Brand) && !!e.Model && !!e.ManufacturingYear, Bn = (e) => {
1707
1743
  if (!e)
1708
1744
  return "";
1709
- const i = String(e.Model ?? "").toLowerCase().trim(), a = String(e.VehicleType ?? "").toLowerCase();
1710
- return fn[i] ?? cn[a] ?? "";
1711
- }, pn = (e) => e ? `${e.Brand} ${e.Model} (${e.ManufacturingYear})` : "", Ie = 6, It = [
1745
+ const a = String(e.Model ?? "").toLowerCase().trim(), i = String(e.VehicleType ?? "").toLowerCase();
1746
+ return Sn[a] ?? kn[i] ?? "";
1747
+ }, An = (e) => e ? `${e.Brand} ${e.Model} (${e.ManufacturingYear})` : "", Ie = 6, Ut = [
1712
1748
  "@@-##-@@",
1713
1749
  "##-##-@@",
1714
1750
  "##-@@-@@",
@@ -1727,18 +1763,18 @@ const sn = (e) => e instanceof Error, xt = (e) => {
1727
1763
  function Oe(e) {
1728
1764
  return e.replace(/[\s\\-]/g, "");
1729
1765
  }
1730
- const Bt = "*".repeat(Ie), gn = It.map((e) => e.replace(/-/g, ""));
1731
- function hn(e) {
1732
- const i = Oe(e).slice(0, Ie);
1733
- if (i.length < Ie)
1734
- return Bt;
1735
- const a = [...i].map((l) => /[0-9]/.test(l) ? "#" : "@").join(""), n = gn.indexOf(a);
1736
- return n === -1 ? Bt : It[n];
1766
+ const At = "*".repeat(Ie), Cn = Ut.map((e) => e.replace(/-/g, ""));
1767
+ function _n(e) {
1768
+ const a = Oe(e).slice(0, Ie);
1769
+ if (a.length < Ie)
1770
+ return At;
1771
+ const i = [...a].map((l) => /[0-9]/.test(l) ? "#" : "@").join(""), n = Cn.indexOf(i);
1772
+ return n === -1 ? At : Ut[n];
1737
1773
  }
1738
- const yn = {
1774
+ const En = {
1739
1775
  key: 0,
1740
1776
  class: "vd-input-license-plate__loading-information"
1741
- }, kn = ["src"], Ye = /* @__PURE__ */ q({
1777
+ }, Mn = ["src"], Ye = /* @__PURE__ */ q({
1742
1778
  inheritAttrs: !1,
1743
1779
  __name: "VdLicensePlate",
1744
1780
  props: /* @__PURE__ */ Z({
@@ -1754,8 +1790,8 @@ const yn = {
1754
1790
  vehicleDataModifiers: {}
1755
1791
  }),
1756
1792
  emits: /* @__PURE__ */ Z(["input"], ["update:modelValue", "update:vehicleData"]),
1757
- setup(e, { emit: i }) {
1758
- const a = { mask: hn }, n = e, l = de(e, "modelValue"), o = de(e, "vehicleData"), d = i, s = $t(), m = be(), r = F({
1793
+ setup(e, { emit: a }) {
1794
+ const i = { mask: _n }, n = e, l = de(e, "modelValue"), o = de(e, "vehicleData"), d = a, s = Ft(), m = be(), r = F({
1759
1795
  get: () => l.value ?? "",
1760
1796
  set: (g) => {
1761
1797
  l.value = g, d("input", g);
@@ -1765,10 +1801,10 @@ const yn = {
1765
1801
  o.value && !f(g, o.value.LicensePlate) && (o.value = null);
1766
1802
  });
1767
1803
  const p = F(
1768
- () => vn(o.value) ? o.value : null
1804
+ () => Vn(o.value) ? o.value : null
1769
1805
  ), y = F(
1770
1806
  () => n.loading || !!p.value && !n.errorMessage
1771
- ), V = F(() => bn(p.value)), B = F(() => pn(p.value));
1807
+ ), V = F(() => Bn(p.value)), B = F(() => An(p.value));
1772
1808
  return (g, h) => (c(), H(Ae, M({
1773
1809
  capitalize: "",
1774
1810
  autocomplete: ""
@@ -1780,7 +1816,7 @@ const yn = {
1780
1816
  required: e.required,
1781
1817
  "error-message": e.errorMessage || null,
1782
1818
  loading: e.loading,
1783
- mask: a,
1819
+ mask: i,
1784
1820
  class: "vd-input-license-plate"
1785
1821
  }), We({ _: 2 }, [
1786
1822
  t(m).label ? {
@@ -1800,7 +1836,7 @@ const yn = {
1800
1836
  y.value ? {
1801
1837
  name: "information",
1802
1838
  fn: v(() => [
1803
- e.loading ? (c(), S("div", yn, [...h[1] || (h[1] = [
1839
+ e.loading ? (c(), S("div", En, [...h[1] || (h[1] = [
1804
1840
  O("i", { class: "fas fa-circle-notch vd-input-license-plate__loading-icon" }, null, -1),
1805
1841
  G(" Voertuig gegevens ophalen... ", -1)
1806
1842
  ])])) : p.value ? (c(), S(He, { key: 1 }, [
@@ -1809,7 +1845,7 @@ const yn = {
1809
1845
  src: `https://d12bmfj3oyxu0t.cloudfront.net/vergelijkdirect/icons/${V.value}.svg`,
1810
1846
  class: "vd-field__svg-message-icon",
1811
1847
  alt: "vehicle-icon"
1812
- }, null, 8, kn)) : E("", !0),
1848
+ }, null, 8, Mn)) : E("", !0),
1813
1849
  G(" " + I(B.value), 1)
1814
1850
  ], 64)) : E("", !0)
1815
1851
  ]),
@@ -1817,41 +1853,41 @@ const yn = {
1817
1853
  } : void 0
1818
1854
  ]), 1040, ["modelValue", "name", "label", "required", "error-message", "loading"]));
1819
1855
  }
1820
- }), Fe = /* @__PURE__ */ new Map(), qt = (e, i) => `${i}:${e}`, Sn = {
1821
- "wrong-type": (e) => `Het ingevoerde kenteken is geen ${dt[e].dutch}`,
1856
+ }), Fe = /* @__PURE__ */ new Map(), Ht = (e, a) => `${a}:${e}`, wn = {
1857
+ "wrong-type": (e) => `Het ingevoerde kenteken is geen ${mt[e].dutch}`,
1822
1858
  unknown: () => "Voertuig onbekend - Voer ander kenteken in of neem contact op",
1823
1859
  "not-found": () => "Kenteken onbekend",
1824
1860
  error: () => "Kenteken is incorrect"
1825
- }, Vn = async (e, i) => {
1861
+ }, Pn = async (e, a) => {
1826
1862
  try {
1827
- const a = await Ge().dataService.findVehicle(e, i);
1828
- if (Array.isArray(a) || !a || !Object.keys(a).length)
1863
+ const i = await Ge().dataService.findVehicle(e, a);
1864
+ if (Array.isArray(i) || !i || !Object.keys(i).length)
1829
1865
  return { status: "not-found" };
1830
- const n = a;
1831
- return n.VehicleType ? dt[i].apiTypes.includes(n.VehicleType) ? { status: "found", data: n } : { status: "wrong-type" } : { status: "unknown" };
1832
- } catch (a) {
1833
- return console.error("Error on ITC findVehicle", a), { status: "error" };
1866
+ const n = i;
1867
+ return n.VehicleType ? mt[a].apiTypes.includes(n.VehicleType) ? { status: "found", data: n } : { status: "wrong-type" } : { status: "unknown" };
1868
+ } catch (i) {
1869
+ return console.error("Error on ITC findVehicle", i), { status: "error" };
1834
1870
  }
1835
- }, Bn = (e, i) => {
1836
- const a = qt(e, i);
1837
- let n = Fe.get(a);
1838
- return n || (n = Vn(e, i), Fe.set(a, n), n.then(
1871
+ }, On = (e, a) => {
1872
+ const i = Ht(e, a);
1873
+ let n = Fe.get(i);
1874
+ return n || (n = Pn(e, a), Fe.set(i, n), n.then(
1839
1875
  ({ status: l }) => {
1840
- l === "error" && Fe.delete(a);
1876
+ l === "error" && Fe.delete(i);
1841
1877
  },
1842
- () => Fe.delete(a)
1878
+ () => Fe.delete(i)
1843
1879
  )), n;
1844
- }, Je = (e, i = {}) => {
1880
+ }, Je = (e, a = {}) => {
1845
1881
  var d;
1846
- const a = Y(i.initialData ?? null);
1882
+ const i = Y(a.initialData ?? null);
1847
1883
  let n = 0;
1848
- (d = i.initialData) != null && d.LicensePlate && Fe.set(
1849
- qt(Oe(i.initialData.LicensePlate), e),
1850
- Promise.resolve({ status: "found", data: i.initialData })
1884
+ (d = a.initialData) != null && d.LicensePlate && Fe.set(
1885
+ Ht(Oe(a.initialData.LicensePlate), e),
1886
+ Promise.resolve({ status: "found", data: a.initialData })
1851
1887
  );
1852
1888
  const l = async (s) => {
1853
- const m = Oe(s), r = ++n, f = await Bn(m, e);
1854
- return r === n && (a.value = f.status === "found" ? f.data : null), f;
1889
+ const m = Oe(s), r = ++n, f = await On(m, e);
1890
+ return r === n && (i.value = f.status === "found" ? f.data : null), f;
1855
1891
  }, o = ee().required("Dit veld is verplicht").test("license-plate-lookup", async (s, m) => {
1856
1892
  if (!s)
1857
1893
  return !0;
@@ -1859,15 +1895,15 @@ const yn = {
1859
1895
  if (r.length < Ie)
1860
1896
  return m.createError({ message: "Kenteken is incorrect" });
1861
1897
  const { status: f } = await l(r);
1862
- return f === "found" || m.createError({ message: Sn[f](e) });
1898
+ return f === "found" || m.createError({ message: wn[f](e) });
1863
1899
  });
1864
- return { vehicleData: a, licensePlateSchema: o };
1865
- }, An = (e) => /^\d{8}$/.test(e), Cn = (e) => An(e) ? { companyName: "", kvkNumber: e } : { companyName: e, kvkNumber: "" }, _n = "bezoekadres", En = (e) => {
1866
- var i, a, n;
1867
- return (n = (a = (i = e._embedded) == null ? void 0 : i.hoofdvestiging) == null ? void 0 : a.adressen) == null ? void 0 : n.find((l) => l.type === _n);
1868
- }, Mn = (e) => {
1869
- const i = En(e), {
1870
- huisnummer: a = 0,
1900
+ return { vehicleData: i, licensePlateSchema: o };
1901
+ }, $n = (e) => /^\d{8}$/.test(e), Fn = (e) => $n(e) ? { companyName: "", kvkNumber: e } : { companyName: e, kvkNumber: "" }, Ln = "bezoekadres", Nn = (e) => {
1902
+ var a, i, n;
1903
+ return (n = (i = (a = e._embedded) == null ? void 0 : a.hoofdvestiging) == null ? void 0 : i.adressen) == null ? void 0 : n.find((l) => l.type === Ln);
1904
+ }, Tn = (e) => {
1905
+ const a = Nn(e), {
1906
+ huisnummer: i = 0,
1871
1907
  huisletter: n = "",
1872
1908
  huisnummerToevoeging: l = "",
1873
1909
  toevoegingAdres: o = "",
@@ -1875,19 +1911,19 @@ const yn = {
1875
1911
  postcode: s = "",
1876
1912
  straatnaam: m = "",
1877
1913
  volledigAdres: r = ""
1878
- } = i ?? {};
1914
+ } = a ?? {};
1879
1915
  return {
1880
- houseNumber: a,
1916
+ houseNumber: i,
1881
1917
  houseNumberAddition: n || l || o,
1882
1918
  city: d,
1883
1919
  zipCode: s,
1884
1920
  streetName: m,
1885
1921
  fullAddress: r,
1886
- hasVisitingAddress: !!i
1922
+ hasVisitingAddress: !!a
1887
1923
  };
1888
- }, wn = (e = []) => {
1924
+ }, zn = (e = []) => {
1889
1925
  var l;
1890
- const [i, a, n] = e.reduce(
1926
+ const [a, i, n] = e.reduce(
1891
1927
  ([o, d, s], m) => {
1892
1928
  const r = {
1893
1929
  isMainActivity: m.indHoofdactiviteit,
@@ -1899,64 +1935,64 @@ const yn = {
1899
1935
  [[], [], []]
1900
1936
  );
1901
1937
  return {
1902
- mainSBI: ((l = i[0]) == null ? void 0 : l.sbiCode) ?? "",
1938
+ mainSBI: ((l = a[0]) == null ? void 0 : l.sbiCode) ?? "",
1903
1939
  otherSBI: n,
1904
- firstSBIs: i,
1905
- secondSBIs: a
1940
+ firstSBIs: a,
1941
+ secondSBIs: i
1906
1942
  };
1907
- }, Pn = (e) => {
1908
- var i, a, n, l;
1943
+ }, Dn = (e) => {
1944
+ var a, i, n, l;
1909
1945
  return {
1910
1946
  kvkNumber: e.kvkNummer,
1911
1947
  name: e.naam,
1912
- city: ((a = (i = e.adres) == null ? void 0 : i.binnenlandsAdres) == null ? void 0 : a.plaats) ?? "",
1948
+ city: ((i = (a = e.adres) == null ? void 0 : a.binnenlandsAdres) == null ? void 0 : i.plaats) ?? "",
1913
1949
  street: ((l = (n = e.adres) == null ? void 0 : n.binnenlandsAdres) == null ? void 0 : l.straatnaam) ?? ""
1914
1950
  };
1915
- }, On = (e) => {
1916
- var i, a;
1951
+ }, Rn = (e) => {
1952
+ var a, i;
1917
1953
  return {
1918
1954
  name: e.naam,
1919
1955
  kvkNumber: e.kvkNummer,
1920
1956
  industry: e.sbiIndustryId,
1921
1957
  numberOfEmployees: e.totaalWerkzamePersonen,
1922
- legalForm: ((a = (i = e._embedded) == null ? void 0 : i.eigenaar) == null ? void 0 : a.rechtsvorm) ?? "",
1923
- ...Mn(e),
1924
- ...wn(e.sbiActiviteiten)
1958
+ legalForm: ((i = (a = e._embedded) == null ? void 0 : a.eigenaar) == null ? void 0 : i.rechtsvorm) ?? "",
1959
+ ...Tn(e),
1960
+ ...zn(e.sbiActiviteiten)
1925
1961
  };
1926
- }, $n = 30, Fn = ["hoofdvestiging", "nevenvestiging"], Ln = "IPD5200", Tn = (e) => {
1962
+ }, xn = 30, jn = ["hoofdvestiging", "nevenvestiging"], In = "IPD5200", qn = (e) => {
1927
1963
  var n, l;
1928
- const i = e, a = (l = (n = i == null ? void 0 : i.response) == null ? void 0 : n.data) == null ? void 0 : l.fout;
1929
- if (Array.isArray(a))
1930
- return a;
1931
- if (Array.isArray(i == null ? void 0 : i.fout))
1932
- return i.fout;
1933
- if (typeof (i == null ? void 0 : i.message) == "string")
1964
+ const a = e, i = (l = (n = a == null ? void 0 : a.response) == null ? void 0 : n.data) == null ? void 0 : l.fout;
1965
+ if (Array.isArray(i))
1966
+ return i;
1967
+ if (Array.isArray(a == null ? void 0 : a.fout))
1968
+ return a.fout;
1969
+ if (typeof (a == null ? void 0 : a.message) == "string")
1934
1970
  try {
1935
- const o = JSON.parse(i.message);
1971
+ const o = JSON.parse(a.message);
1936
1972
  if (Array.isArray(o == null ? void 0 : o.fout))
1937
1973
  return o.fout;
1938
1974
  } catch {
1939
1975
  }
1940
- }, Nn = (e) => {
1941
- var i;
1942
- return ((i = Tn(e)) == null ? void 0 : i.some((a) => a.code === Ln)) ?? !1;
1943
- }, zn = () => {
1976
+ }, Un = (e) => {
1977
+ var a;
1978
+ return ((a = qn(e)) == null ? void 0 : a.some((i) => i.code === In)) ?? !1;
1979
+ }, Hn = () => {
1944
1980
  const { dataService: e } = Ge();
1945
1981
  return { search: async (n) => {
1946
1982
  try {
1947
- const l = await e.searchBusinessInfoV2(Cn(n), 1, $n);
1948
- return ((l == null ? void 0 : l.resultaten) ?? []).filter((d) => Fn.includes(d.type)).map(Pn);
1983
+ const l = await e.searchBusinessInfoV2(Fn(n), 1, xn);
1984
+ return ((l == null ? void 0 : l.resultaten) ?? []).filter((d) => jn.includes(d.type)).map(Dn);
1949
1985
  } catch (l) {
1950
1986
  const o = await l;
1951
- if (Nn(o))
1987
+ if (Un(o))
1952
1988
  return [];
1953
1989
  throw o;
1954
1990
  }
1955
1991
  }, getDetails: async (n) => {
1956
1992
  const l = await e.getProfileInfo(n);
1957
- return On(l);
1993
+ return Rn(l);
1958
1994
  } };
1959
- }, Dn = { class: "vd-combobox__multiline" }, Rn = { class: "vd-combobox__title" }, xn = { class: "vd-combobox__subtext" }, jn = { class: "vd-combobox__subtext" }, In = 400, At = 3, qn = "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.", Un = "Typ je bedrijfsnaam of KvK-nummer", Hn = "Aan het zoeken…", Ct = "Er ging iets mis bij het ophalen van de gegevens. Probeer het later opnieuw.", Wn = /* @__PURE__ */ q({
1995
+ }, Wn = { class: "vd-combobox__multiline" }, Kn = { class: "vd-combobox__title" }, Gn = { class: "vd-combobox__subtext" }, Yn = { class: "vd-combobox__subtext" }, Jn = 400, Ct = 3, Qn = "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.", Zn = "Typ je bedrijfsnaam of KvK-nummer", Xn = "Aan het zoeken…", _t = "Er ging iets mis bij het ophalen van de gegevens. Probeer het later opnieuw.", eo = /* @__PURE__ */ q({
1960
1996
  inheritAttrs: !1,
1961
1997
  __name: "VdCompanySelect",
1962
1998
  props: /* @__PURE__ */ Z({
@@ -1970,12 +2006,12 @@ const yn = {
1970
2006
  modelModifiers: {}
1971
2007
  }),
1972
2008
  emits: /* @__PURE__ */ Z(["blur", "error"], ["update:modelValue"]),
1973
- setup(e, { emit: i }) {
1974
- const a = i, n = $t(), l = be(), o = de(e, "modelValue"), { search: d, getDetails: s } = zn(), m = Y(), r = Y(), f = Y(), p = Y(""), y = gi(p, In, { maxWait: 2e3 }), V = Y(!0), {
2009
+ setup(e, { emit: a }) {
2010
+ const i = a, n = Ft(), l = be(), o = de(e, "modelValue"), { search: d, getDetails: s } = Hn(), m = Y(), r = Y(), f = Y(), p = Y(""), y = Sa(p, Jn, { maxWait: 2e3 }), V = Y(!0), {
1975
2011
  state: B,
1976
2012
  isLoading: g,
1977
2013
  execute: h
1978
- } = vt(
2014
+ } = bt(
1979
2015
  async (D) => {
1980
2016
  try {
1981
2017
  return { results: await d(D), failed: !1 };
@@ -1987,37 +2023,37 @@ const yn = {
1987
2023
  { immediate: !1, resetOnExecute: !1 }
1988
2024
  ), {
1989
2025
  isLoading: _,
1990
- execute: N
1991
- } = vt(
2026
+ execute: T
2027
+ } = bt(
1992
2028
  async (D) => {
1993
2029
  try {
1994
2030
  const Q = await s(D);
1995
- return o.value = Q, a("error", null), Q;
2031
+ return o.value = Q, i("error", null), Q;
1996
2032
  } catch (Q) {
1997
- throw o.value = null, f.value = void 0, m.value = void 0, a("error", Ct), Q;
2033
+ throw o.value = null, f.value = void 0, m.value = void 0, i("error", _t), Q;
1998
2034
  }
1999
2035
  },
2000
2036
  null,
2001
2037
  { immediate: !1, resetOnExecute: !0 }
2002
- ), z = F(() => p.value.length >= At), $ = F(() => z.value ? g.value || p.value !== y.value ? "searching" : B.value.failed ? "error" : B.value.results.length ? "idle" : "no-results" : "idle"), P = F(() => $.value === "searching" ? [] : z.value ? B.value.results : V.value && f.value ? [f.value] : []), b = F(() => $.value === "searching" || _.value), A = F(() => !!o.value && !b.value), w = F(() => {
2038
+ ), z = F(() => p.value.length >= Ct), $ = F(() => z.value ? g.value || p.value !== y.value ? "searching" : B.value.failed ? "error" : B.value.results.length ? "idle" : "no-results" : "idle"), P = F(() => $.value === "searching" ? [] : z.value ? B.value.results : V.value && f.value ? [f.value] : []), b = F(() => $.value === "searching" || _.value), A = F(() => !!o.value && !b.value), w = F(() => {
2003
2039
  const D = o.value;
2004
2040
  return !D || b.value ? "" : D.fullAddress ? `Kvk: ${D.kvkNumber} ${D.fullAddress}` : `Kvk: ${D.kvkNumber}`;
2005
2041
  }), U = F(() => {
2006
2042
  switch ($.value) {
2007
2043
  case "searching":
2008
- return Hn;
2044
+ return Xn;
2009
2045
  case "error":
2010
- return Ct;
2046
+ return _t;
2011
2047
  case "no-results":
2012
- return qn;
2048
+ return Qn;
2013
2049
  default:
2014
- return Un;
2050
+ return Zn;
2015
2051
  }
2016
2052
  }), K = (D) => {
2017
2053
  var Q;
2018
- f.value = D, V.value = !0, D.kvkNumber !== ((Q = o.value) == null ? void 0 : Q.kvkNumber) ? N(0, D.kvkNumber) : a("error", null);
2054
+ f.value = D, V.value = !0, D.kvkNumber !== ((Q = o.value) == null ? void 0 : Q.kvkNumber) ? T(0, D.kvkNumber) : i("error", null);
2019
2055
  }, re = (D) => {
2020
- a("blur", D);
2056
+ i("blur", D);
2021
2057
  }, Me = (D) => {
2022
2058
  p.value = D.trim(), V.value = !1;
2023
2059
  }, we = (D) => {
@@ -2033,10 +2069,10 @@ const yn = {
2033
2069
  return ce(r, (D) => {
2034
2070
  D || (p.value = "", V.value = !0);
2035
2071
  }), ce(y, (D) => {
2036
- D && D.length >= At && h(0, D);
2072
+ D && D.length >= Ct && h(0, D);
2037
2073
  }), ce(o, (D) => {
2038
2074
  m.value = D ? ke(D) : void 0, V.value = !0, D || (f.value = void 0);
2039
- }, { immediate: !0 }), (D, Q) => (c(), H(Nt, M(t(n), {
2075
+ }, { immediate: !0 }), (D, Q) => (c(), H(zt, M(t(n), {
2040
2076
  modelValue: m.value,
2041
2077
  "onUpdate:modelValue": Q[0] || (Q[0] = (ue) => m.value = ue),
2042
2078
  open: r.value,
@@ -2062,10 +2098,10 @@ const yn = {
2062
2098
  onSearch: Me
2063
2099
  }), We({
2064
2100
  item: v(({ option: ue }) => [
2065
- O("div", Dn, [
2066
- O("div", Rn, I(ue.name), 1),
2067
- O("span", xn, "Kvk: " + I(ue.kvkNumber), 1),
2068
- O("span", jn, I(ue.city) + ", " + I(ue.street), 1)
2101
+ O("div", Wn, [
2102
+ O("div", Kn, I(ue.name), 1),
2103
+ O("span", Gn, "Kvk: " + I(ue.kvkNumber), 1),
2104
+ O("span", Yn, I(ue.city) + ", " + I(ue.street), 1)
2069
2105
  ])
2070
2106
  ]),
2071
2107
  _: 2
@@ -2086,7 +2122,7 @@ const yn = {
2086
2122
  } : void 0
2087
2123
  ]), 1040, ["modelValue", "open", "name", "label", "placeholder", "options", "loading", "verified", "disabled", "no-results-text", "error-message", "info-message"]));
2088
2124
  }
2089
- }), Kn = (e = "Bedrijfsnaam of KVK-nummer is verplicht") => ri().nullable().required(e).test("has-kvk-number", e, (i) => !!(i != null && i.kvkNumber)), ie = {
2125
+ }), to = (e = "Bedrijfsnaam of KVK-nummer is verplicht") => ma().nullable().required(e).test("has-kvk-number", e, (a) => !!(a != null && a.kvkNumber)), ae = {
2090
2126
  title: "",
2091
2127
  description: "",
2092
2128
  banner: "",
@@ -2095,51 +2131,25 @@ const yn = {
2095
2131
  flat: !1,
2096
2132
  fullWidth: !1,
2097
2133
  submitLabel: "Vergelijken"
2098
- }, Gn = Object.keys(ie);
2099
- function ae(e) {
2100
- return Ft(e, ...Gn);
2134
+ }, ao = Object.keys(ae);
2135
+ function ie(e) {
2136
+ return Lt(e, ...ao);
2101
2137
  }
2102
- const Yn = { min: 18, max: 99 }, Te = "DD-MM-YYYY", Jn = [
2138
+ const io = { min: 18, max: 99 }, Ne = "DD-MM-YYYY", no = [
2103
2139
  J.SingleWithoutChildren,
2104
2140
  J.FamilyWithoutChildren,
2105
2141
  J.SingleWithChildren,
2106
2142
  J.FamilyWithChildren
2107
- ], Ut = [fe.Yes, fe.No];
2108
- Ke.extend(di);
2109
- function Ht() {
2110
- return Ke().startOf("day");
2111
- }
2112
- function Qn() {
2113
- return Ht().year();
2114
- }
2115
- function ut(e, i) {
2116
- const a = Ke(e ?? "", i, !0);
2117
- return a.isValid() ? a.startOf("day") : null;
2118
- }
2119
- function Zn(e, i) {
2120
- const a = Ht();
2143
+ ], Wt = [fe.Yes, fe.No];
2144
+ function Kt(e, a, i = "ageRange") {
2121
2145
  return {
2122
- today: a,
2123
- earliest: a.subtract(i.value + 1, i.unit).add(1, "day"),
2124
- latest: a.subtract(e.value, e.unit)
2125
- };
2126
- }
2127
- const Xn = [
2128
- J.FamilyWithChildren,
2129
- J.FamilyWithoutChildren
2130
- ];
2131
- function at(e) {
2132
- return Xn.includes(e);
2133
- }
2134
- function Wt(e, i, a = "ageRange") {
2135
- return {
2136
- name: a,
2146
+ name: i,
2137
2147
  test(n, l) {
2138
- const o = ut(n, Te);
2148
+ const o = ut(n, Ne);
2139
2149
  if (!o)
2140
2150
  return !0;
2141
- const { today: d, earliest: s, latest: m } = Zn(e.min, e.max), r = { earliest: s, latest: m };
2142
- return i.future && o.isAfter(d, "day") ? l.createError({ message: i.future(r) }) : o.isAfter(m, "day") ? l.createError({ message: i.tooYoung(r) }) : o.isBefore(s, "day") ? l.createError({ message: i.tooOld(r) }) : !0;
2151
+ const { today: d, earliest: s, latest: m } = cn(e.min, e.max), r = { earliest: s, latest: m };
2152
+ return a.future && o.isAfter(d, "day") ? l.createError({ message: a.future(r) }) : o.isAfter(m, "day") ? l.createError({ message: a.tooYoung(r) }) : o.isBefore(s, "day") ? l.createError({ message: a.tooOld(r) }) : !0;
2143
2153
  }
2144
2154
  };
2145
2155
  }
@@ -2182,7 +2192,7 @@ const W = {
2182
2192
  },
2183
2193
  pet: {
2184
2194
  kindRequired: "Selecteer je huisdier",
2185
- outOfRange: (e, i) => `Je huisdier dient geboren te zijn tussen ${e} en ${i}`,
2195
+ outOfRange: (e, a) => `Je huisdier dient geboren te zijn tussen ${e} en ${a}`,
2186
2196
  zipcodeRequired: "Vul je postcode in",
2187
2197
  zipcodeInvalid: "Postcode is incorrect"
2188
2198
  },
@@ -2190,11 +2200,11 @@ const W = {
2190
2200
  paymentTermRequired: "Selecteer een dekking"
2191
2201
  }
2192
2202
  };
2193
- function Kt(e) {
2194
- return ut(e, Te) !== null;
2203
+ function Gt(e) {
2204
+ return ut(e, Ne) !== null;
2195
2205
  }
2196
- function he(e = Yn) {
2197
- return ee().required(W.birthdate.required).test("date_format", W.birthdate.dateFormat, Kt).test(Wt(
2206
+ function he(e = io) {
2207
+ return ee().required(W.birthdate.required).test("date_format", W.birthdate.dateFormat, Gt).test(Kt(
2198
2208
  { min: { value: e.min, unit: "year" }, max: { value: e.max, unit: "year" } },
2199
2209
  {
2200
2210
  tooYoung: () => W.birthdate.tooYoung(e.min),
@@ -2202,44 +2212,44 @@ function he(e = Yn) {
2202
2212
  }
2203
2213
  ));
2204
2214
  }
2205
- function Qe(e, i) {
2206
- return ee().required(i).oneOf(e, i);
2215
+ function Qe(e, a) {
2216
+ return ee().required(a).oneOf(e, a);
2207
2217
  }
2208
- function _t(e) {
2218
+ function Et(e) {
2209
2219
  return ee().required(e);
2210
2220
  }
2211
- function nt(e) {
2212
- return si().typeError(e).required(e);
2221
+ function ot(e) {
2222
+ return ca().typeError(e).required(e);
2213
2223
  }
2214
- function Gt(e = W.familyComposition.required) {
2215
- return Qe(Jn, e);
2224
+ function Yt(e = W.familyComposition.required) {
2225
+ return Qe(no, e);
2216
2226
  }
2217
- const Ze = Gt(), Yt = Qe(
2218
- Ut,
2227
+ const Ze = Yt(), Jt = Qe(
2228
+ Wt,
2219
2229
  W.ownedBuilding.required
2220
- ), ot = [1, 7], eo = [3, 4], Et = {
2230
+ ), lt = [1, 7], oo = [3, 4], Mt = {
2221
2231
  raceOrMtb: 15e3,
2222
2232
  default: 9999
2223
- }, Mt = (e, i) => e.test(
2233
+ }, wt = (e, a) => e.test(
2224
2234
  "max-value",
2225
- W.bike.priceMax(i),
2226
- (a) => {
2227
- const n = Number(a);
2228
- return Number.isNaN(n) || n <= i;
2235
+ W.bike.priceMax(a),
2236
+ (i) => {
2237
+ const n = Number(i);
2238
+ return Number.isNaN(n) || n <= a;
2229
2239
  }
2230
- ), to = te({
2231
- kind: nt(W.bike.kindRequired),
2232
- condition: nt(W.bike.conditionRequired),
2240
+ ), lo = te({
2241
+ kind: ot(W.bike.kindRequired),
2242
+ condition: ot(W.bike.conditionRequired),
2233
2243
  price: ee().required(W.bike.priceRequired).when("kind", {
2234
- is: (e) => eo.includes(Number(e)),
2235
- then: (e) => Mt(e, Et.raceOrMtb),
2236
- otherwise: (e) => Mt(e, Et.default)
2244
+ is: (e) => oo.includes(Number(e)),
2245
+ then: (e) => wt(e, Mt.raceOrMtb),
2246
+ otherwise: (e) => wt(e, Mt.default)
2237
2247
  }),
2238
2248
  brand: ee().when("kind", {
2239
- is: (e) => ot.includes(Number(e)),
2249
+ is: (e) => lt.includes(Number(e)),
2240
2250
  then: (e) => e.required(W.bike.brandRequired)
2241
2251
  })
2242
- }), io = [
2252
+ }), ro = [
2243
2253
  {
2244
2254
  value: 4,
2245
2255
  title: "ATB / Mountainbike",
@@ -2306,7 +2316,7 @@ const Ze = Gt(), Yt = Qe(
2306
2316
  name: "Vouwfiets",
2307
2317
  isEBike: !1
2308
2318
  }
2309
- ], ao = [
2319
+ ], so = [
2310
2320
  {
2311
2321
  value: 1,
2312
2322
  label: "Nieuw"
@@ -2315,7 +2325,7 @@ const Ze = Gt(), Yt = Qe(
2315
2325
  value: 0,
2316
2326
  label: "Tweedehands"
2317
2327
  }
2318
- ], no = [
2328
+ ], uo = [
2319
2329
  {
2320
2330
  id: "Ander merk",
2321
2331
  name: "Ander merk"
@@ -3736,7 +3746,7 @@ const Ze = Gt(), Yt = Qe(
3736
3746
  id: "Zündapp",
3737
3747
  name: "Zündapp"
3738
3748
  }
3739
- ], oo = /* @__PURE__ */ q({
3749
+ ], mo = /* @__PURE__ */ q({
3740
3750
  __name: "BikeForm",
3741
3751
  props: /* @__PURE__ */ ne({
3742
3752
  initialData: {},
@@ -3749,25 +3759,25 @@ const Ze = Gt(), Yt = Qe(
3749
3759
  fullWidth: { type: Boolean },
3750
3760
  submitLabel: {}
3751
3761
  }, {
3752
- ...ie,
3762
+ ...ae,
3753
3763
  title: "Fietsverzekering vergelijken"
3754
3764
  }),
3755
3765
  emits: ["submit"],
3756
- setup(e, { emit: i }) {
3757
- const a = e, n = ae(a), l = i, {
3766
+ setup(e, { emit: a }) {
3767
+ const i = e, n = ie(i), l = a, {
3758
3768
  isSubmitting: o,
3759
3769
  handleSubmit: d,
3760
3770
  defineField: s,
3761
3771
  resetField: m
3762
- } = le(to, {
3772
+ } = le(lo, {
3763
3773
  kind: null,
3764
3774
  condition: 1,
3765
3775
  price: "",
3766
3776
  brand: "",
3767
- ...a.initialData
3768
- }), [r, f, p] = s("kind", { validateAt: "change" }), [y, V, B] = s("brand", { validateAt: "change" }), [g, h, _] = s("condition"), [N, z, $] = s("price"), P = F(() => ot.includes(Number(r.value)));
3777
+ ...i.initialData
3778
+ }), [r, f, p] = s("kind", { validateAt: "change" }), [y, V, B] = s("brand", { validateAt: "change" }), [g, h, _] = s("condition"), [T, z, $] = s("price"), P = F(() => lt.includes(Number(r.value)));
3769
3779
  ce(r, (A) => {
3770
- ot.includes(Number(A)) || m("brand", { value: "" });
3780
+ lt.includes(Number(A)) || m("brand", { value: "" });
3771
3781
  }, { immediate: !0 });
3772
3782
  function b() {
3773
3783
  d((A) => {
@@ -3786,10 +3796,10 @@ const Ze = Gt(), Yt = Qe(
3786
3796
  default: v(() => [
3787
3797
  u(t(Ve), M({
3788
3798
  modelValue: t(r),
3789
- "onUpdate:modelValue": w[0] || (w[0] = (U) => T(r) ? r.value = U : null),
3799
+ "onUpdate:modelValue": w[0] || (w[0] = (U) => N(r) ? r.value = U : null),
3790
3800
  modelModifiers: { number: !0 },
3791
3801
  label: "Soort fiets",
3792
- options: t(io),
3802
+ options: t(ro),
3793
3803
  name: "kind",
3794
3804
  required: !1,
3795
3805
  "error-message": t(p)
@@ -3803,12 +3813,12 @@ const Ze = Gt(), Yt = Qe(
3803
3813
  md: "6"
3804
3814
  }, {
3805
3815
  default: v(() => [
3806
- u(t(Nt), M({
3816
+ u(t(zt), M({
3807
3817
  modelValue: t(y),
3808
- "onUpdate:modelValue": w[1] || (w[1] = (U) => T(y) ? y.value = U : null),
3818
+ "onUpdate:modelValue": w[1] || (w[1] = (U) => N(y) ? y.value = U : null),
3809
3819
  label: "Merk fiets",
3810
3820
  placeholder: "Typ of kies je merk",
3811
- options: t(no),
3821
+ options: t(uo),
3812
3822
  "label-key": "name",
3813
3823
  "value-key": "id",
3814
3824
  name: "brand",
@@ -3823,12 +3833,12 @@ const Ze = Gt(), Yt = Qe(
3823
3833
  md: "6"
3824
3834
  }, {
3825
3835
  default: v(() => [
3826
- u(t(Ne), M({
3836
+ u(t(Te), M({
3827
3837
  modelValue: t(g),
3828
- "onUpdate:modelValue": w[2] || (w[2] = (U) => T(g) ? g.value = U : null),
3838
+ "onUpdate:modelValue": w[2] || (w[2] = (U) => N(g) ? g.value = U : null),
3829
3839
  legend: "Gekocht als",
3830
3840
  name: "condition",
3831
- options: t(ao),
3841
+ options: t(so),
3832
3842
  variant: "boxed",
3833
3843
  required: !1,
3834
3844
  "error-message": t(_)
@@ -3842,8 +3852,8 @@ const Ze = Gt(), Yt = Qe(
3842
3852
  }, {
3843
3853
  default: v(() => [
3844
3854
  u(t(Ae), M({
3845
- modelValue: t(N),
3846
- "onUpdate:modelValue": w[3] || (w[3] = (U) => T(N) ? N.value = U : null),
3855
+ modelValue: t(T),
3856
+ "onUpdate:modelValue": w[3] || (w[3] = (U) => N(T) ? T.value = U : null),
3847
3857
  label: "Aankoopprijs",
3848
3858
  placeholder: "bv. 1 000",
3849
3859
  icon: "far fa-euro-sign",
@@ -3860,7 +3870,7 @@ const Ze = Gt(), Yt = Qe(
3860
3870
  }, 16, ["submit-disabled"]));
3861
3871
  }
3862
3872
  });
3863
- function lo(e) {
3873
+ function co(e) {
3864
3874
  return {
3865
3875
  comparison: j.Bike,
3866
3876
  details: [{
@@ -3875,24 +3885,24 @@ function lo(e) {
3875
3885
  user: {}
3876
3886
  };
3877
3887
  }
3878
- const tt = { min: 0, max: 99 }, ro = 7, so = /^\d{4}\s?[a-zA-Z]{2}$/, uo = te({
3888
+ const at = { min: 0, max: 99 }, fo = 7, vo = /^\d{4}\s?[a-zA-Z]{2}$/, bo = te({
3879
3889
  kind: ee().required(W.pet.kindRequired),
3880
- age: ee().required(W.birthdate.required).test("date_format", W.birthdate.dateFormat, Kt).test(Wt(
3881
- { min: { value: ro, unit: "week" }, max: { value: tt.max, unit: "year" } },
3890
+ age: ee().required(W.birthdate.required).test("date_format", W.birthdate.dateFormat, Gt).test(Kt(
3891
+ { min: { value: fo, unit: "week" }, max: { value: at.max, unit: "year" } },
3882
3892
  {
3883
3893
  // a future date is "younger than the min age" (min = 0 here)
3884
- future: () => W.birthdate.tooYoung(tt.min),
3894
+ future: () => W.birthdate.tooYoung(at.min),
3885
3895
  // born after the youngest-allowed date (< MIN_WEEKS old): list the window
3886
- tooYoung: ({ earliest: e, latest: i }) => W.pet.outOfRange(
3887
- e.format(Te),
3888
- i.format(Te)
3896
+ tooYoung: ({ earliest: e, latest: a }) => W.pet.outOfRange(
3897
+ e.format(Ne),
3898
+ a.format(Ne)
3889
3899
  ),
3890
- tooOld: () => W.birthdate.tooOld(tt.max)
3900
+ tooOld: () => W.birthdate.tooOld(at.max)
3891
3901
  },
3892
3902
  "birthdate_range"
3893
3903
  )),
3894
- zipcode: ee().required(W.pet.zipcodeRequired).matches(so, W.pet.zipcodeInvalid)
3895
- }), mo = [
3904
+ zipcode: ee().required(W.pet.zipcodeRequired).matches(vo, W.pet.zipcodeInvalid)
3905
+ }), po = [
3896
3906
  {
3897
3907
  title: "Hond",
3898
3908
  value: "dog"
@@ -3909,7 +3919,7 @@ const tt = { min: 0, max: 99 }, ro = 7, so = /^\d{4}\s?[a-zA-Z]{2}$/, uo = te({
3909
3919
  title: "Vogel",
3910
3920
  value: "bird"
3911
3921
  }
3912
- ], co = /* @__PURE__ */ q({
3922
+ ], go = /* @__PURE__ */ q({
3913
3923
  __name: "PetForm",
3914
3924
  props: /* @__PURE__ */ ne({
3915
3925
  initialData: {},
@@ -3922,27 +3932,27 @@ const tt = { min: 0, max: 99 }, ro = 7, so = /^\d{4}\s?[a-zA-Z]{2}$/, uo = te({
3922
3932
  fullWidth: { type: Boolean },
3923
3933
  submitLabel: {}
3924
3934
  }, {
3925
- ...ie,
3935
+ ...ae,
3926
3936
  title: "Dierenverzekering vergelijken"
3927
3937
  }),
3928
3938
  emits: ["submit"],
3929
- setup(e, { emit: i }) {
3930
- const a = e, n = ae(a), l = i, {
3939
+ setup(e, { emit: a }) {
3940
+ const i = e, n = ie(i), l = a, {
3931
3941
  isSubmitting: o,
3932
3942
  handleSubmit: d,
3933
3943
  defineField: s
3934
- } = le(uo, {
3944
+ } = le(bo, {
3935
3945
  kind: "dog",
3936
3946
  age: "",
3937
3947
  zipcode: "",
3938
- ...a.initialData
3948
+ ...i.initialData
3939
3949
  }), [m, r, f] = s("kind", { validateAt: "change" }), [p, y, V] = s("age"), [B, g, h] = s("zipcode");
3940
3950
  function _() {
3941
- d((N) => {
3942
- l("submit", { ...N });
3951
+ d((T) => {
3952
+ l("submit", { ...T });
3943
3953
  });
3944
3954
  }
3945
- return (N, z) => (c(), H(t(oe), M(t(n), {
3955
+ return (T, z) => (c(), H(t(oe), M(t(n), {
3946
3956
  "submit-disabled": t(o),
3947
3957
  onSubmit: _
3948
3958
  }), {
@@ -3954,10 +3964,10 @@ const tt = { min: 0, max: 99 }, ro = 7, so = /^\d{4}\s?[a-zA-Z]{2}$/, uo = te({
3954
3964
  default: v(() => [
3955
3965
  u(t(Ve), M({
3956
3966
  modelValue: t(m),
3957
- "onUpdate:modelValue": z[0] || (z[0] = ($) => T(m) ? m.value = $ : null),
3967
+ "onUpdate:modelValue": z[0] || (z[0] = ($) => N(m) ? m.value = $ : null),
3958
3968
  label: "Wat voor huisdier wil je verzekeren?",
3959
3969
  placeholder: "",
3960
- options: t(mo),
3970
+ options: t(po),
3961
3971
  name: "kind",
3962
3972
  required: !1,
3963
3973
  "error-message": t(f)
@@ -3972,7 +3982,7 @@ const tt = { min: 0, max: 99 }, ro = 7, so = /^\d{4}\s?[a-zA-Z]{2}$/, uo = te({
3972
3982
  default: v(() => [
3973
3983
  u(t(ve), M({
3974
3984
  modelValue: t(p),
3975
- "onUpdate:modelValue": z[1] || (z[1] = ($) => T(p) ? p.value = $ : null),
3985
+ "onUpdate:modelValue": z[1] || (z[1] = ($) => N(p) ? p.value = $ : null),
3976
3986
  label: "Geboortedatum huisdier",
3977
3987
  "error-message": t(V)
3978
3988
  }, t(y)), {
@@ -3999,7 +4009,7 @@ const tt = { min: 0, max: 99 }, ro = 7, so = /^\d{4}\s?[a-zA-Z]{2}$/, uo = te({
3999
4009
  default: v(() => [
4000
4010
  u(t(Ae), M({
4001
4011
  modelValue: t(B),
4002
- "onUpdate:modelValue": z[2] || (z[2] = ($) => T(B) ? B.value = $ : null),
4012
+ "onUpdate:modelValue": z[2] || (z[2] = ($) => N(B) ? B.value = $ : null),
4003
4013
  label: "Postcode",
4004
4014
  placeholder: "bv. 1234 AZ",
4005
4015
  name: "zipcode",
@@ -4029,7 +4039,7 @@ const tt = { min: 0, max: 99 }, ro = 7, so = /^\d{4}\s?[a-zA-Z]{2}$/, uo = te({
4029
4039
  }, 16, ["submit-disabled"]));
4030
4040
  }
4031
4041
  });
4032
- function fo(e) {
4042
+ function ho(e) {
4033
4043
  return {
4034
4044
  comparison: j.Pet,
4035
4045
  details: [{
@@ -4044,11 +4054,11 @@ function fo(e) {
4044
4054
  }
4045
4055
  };
4046
4056
  }
4047
- const vo = te({
4048
- TypeOfCaravan: _t(W.caravan.typeOfCaravanRequired),
4049
- NewOrOccasion: Qe(Ut, W.caravan.newOrOccasionRequired),
4050
- BuildYear: _t(W.caravan.buildYearRequired)
4051
- }), bo = [
4057
+ const yo = te({
4058
+ TypeOfCaravan: Et(W.caravan.typeOfCaravanRequired),
4059
+ NewOrOccasion: Qe(Wt, W.caravan.newOrOccasionRequired),
4060
+ BuildYear: Et(W.caravan.buildYearRequired)
4061
+ }), ko = [
4052
4062
  {
4053
4063
  value: "CS",
4054
4064
  title: "Stacaravan"
@@ -4061,7 +4071,7 @@ const vo = te({
4061
4071
  value: "CV",
4062
4072
  title: "Vouwwagen"
4063
4073
  }
4064
- ], po = [
4074
+ ], So = [
4065
4075
  {
4066
4076
  value: fe.Yes,
4067
4077
  label: "Nieuw"
@@ -4070,12 +4080,12 @@ const vo = te({
4070
4080
  value: fe.No,
4071
4081
  label: "Occasion"
4072
4082
  }
4073
- ], go = 125;
4074
- function ho() {
4075
- const e = Qn();
4076
- return Array.from({ length: go + 1 }, (i, a) => ({ title: String(e - a), value: String(e - a) }));
4083
+ ], Vo = 125;
4084
+ function Bo() {
4085
+ const e = mn();
4086
+ return Array.from({ length: Vo + 1 }, (a, i) => ({ title: String(e - i), value: String(e - i) }));
4077
4087
  }
4078
- const yo = /* @__PURE__ */ q({
4088
+ const Ao = /* @__PURE__ */ q({
4079
4089
  __name: "CaravanForm",
4080
4090
  props: /* @__PURE__ */ ne({
4081
4091
  initialData: {},
@@ -4088,29 +4098,29 @@ const yo = /* @__PURE__ */ q({
4088
4098
  fullWidth: { type: Boolean },
4089
4099
  submitLabel: {}
4090
4100
  }, {
4091
- ...ie,
4101
+ ...ae,
4092
4102
  title: "Caravanverzekering vergelijken"
4093
4103
  }),
4094
4104
  emits: ["submit"],
4095
- setup(e, { emit: i }) {
4096
- const a = e, n = ae(a), l = i, o = ho(), {
4105
+ setup(e, { emit: a }) {
4106
+ const i = e, n = ie(i), l = a, o = Bo(), {
4097
4107
  isSubmitting: d,
4098
4108
  handleSubmit: s,
4099
4109
  defineField: m
4100
- } = le(vo, {
4110
+ } = le(yo, {
4101
4111
  TypeOfCaravan: null,
4102
4112
  NewOrOccasion: fe.Yes,
4103
4113
  BuildYear: null,
4104
- ...a.initialData
4114
+ ...i.initialData
4105
4115
  }), [r, f, p] = m("TypeOfCaravan", { validateAt: "change" }), [y, V, B] = m("NewOrOccasion"), [g, h, _] = m("BuildYear", { validateAt: "change" });
4106
- function N() {
4116
+ function T() {
4107
4117
  s((z) => {
4108
4118
  l("submit", { ...z });
4109
4119
  });
4110
4120
  }
4111
4121
  return (z, $) => (c(), H(t(oe), M(t(n), {
4112
4122
  "submit-disabled": t(d),
4113
- onSubmit: N
4123
+ onSubmit: T
4114
4124
  }), {
4115
4125
  default: v(() => [
4116
4126
  u(t(L), {
@@ -4120,9 +4130,9 @@ const yo = /* @__PURE__ */ q({
4120
4130
  default: v(() => [
4121
4131
  u(t(Ve), M({
4122
4132
  modelValue: t(r),
4123
- "onUpdate:modelValue": $[0] || ($[0] = (P) => T(r) ? r.value = P : null),
4133
+ "onUpdate:modelValue": $[0] || ($[0] = (P) => N(r) ? r.value = P : null),
4124
4134
  label: "Soort caravan",
4125
- options: t(bo),
4135
+ options: t(ko),
4126
4136
  name: "typeOfCaravan",
4127
4137
  required: !1,
4128
4138
  "error-message": t(p)
@@ -4135,12 +4145,12 @@ const yo = /* @__PURE__ */ q({
4135
4145
  md: "6"
4136
4146
  }, {
4137
4147
  default: v(() => [
4138
- u(t(Ne), M({
4148
+ u(t(Te), M({
4139
4149
  modelValue: t(y),
4140
- "onUpdate:modelValue": $[1] || ($[1] = (P) => T(y) ? y.value = P : null),
4150
+ "onUpdate:modelValue": $[1] || ($[1] = (P) => N(y) ? y.value = P : null),
4141
4151
  legend: "Gekocht als",
4142
4152
  name: "newOrOccasion",
4143
- options: t(po),
4153
+ options: t(So),
4144
4154
  variant: "boxed",
4145
4155
  required: !1,
4146
4156
  "error-message": t(B)
@@ -4155,7 +4165,7 @@ const yo = /* @__PURE__ */ q({
4155
4165
  default: v(() => [
4156
4166
  u(t(Ve), M({
4157
4167
  modelValue: t(g),
4158
- "onUpdate:modelValue": $[2] || ($[2] = (P) => T(g) ? g.value = P : null),
4168
+ "onUpdate:modelValue": $[2] || ($[2] = (P) => N(g) ? g.value = P : null),
4159
4169
  label: "Bouwjaar",
4160
4170
  options: t(o),
4161
4171
  name: "buildYear",
@@ -4170,7 +4180,7 @@ const yo = /* @__PURE__ */ q({
4170
4180
  }, 16, ["submit-disabled"]));
4171
4181
  }
4172
4182
  });
4173
- function ko(e) {
4183
+ function Co(e) {
4174
4184
  return {
4175
4185
  comparison: j.Caravan,
4176
4186
  details: [{
@@ -4185,10 +4195,10 @@ function ko(e) {
4185
4195
  };
4186
4196
  }
4187
4197
  var $e = /* @__PURE__ */ ((e) => (e.Continuous = "L", e.ShortTerm = "S", e))($e || {});
4188
- const So = [$e.Continuous, $e.ShortTerm], Vo = te({
4189
- PaymentTerm: Qe(So, W.travel.paymentTermRequired),
4198
+ const _o = [$e.Continuous, $e.ShortTerm], Eo = te({
4199
+ PaymentTerm: Qe(_o, W.travel.paymentTermRequired),
4190
4200
  birthdate: he()
4191
- }), Bo = [
4201
+ }), Mo = [
4192
4202
  {
4193
4203
  value: $e.Continuous,
4194
4204
  label: "Doorlopend"
@@ -4197,7 +4207,7 @@ const So = [$e.Continuous, $e.ShortTerm], Vo = te({
4197
4207
  value: $e.ShortTerm,
4198
4208
  label: "Kortlopend"
4199
4209
  }
4200
- ], Ao = /* @__PURE__ */ q({
4210
+ ], wo = /* @__PURE__ */ q({
4201
4211
  __name: "TravelForm",
4202
4212
  props: /* @__PURE__ */ ne({
4203
4213
  initialData: {},
@@ -4210,19 +4220,19 @@ const So = [$e.Continuous, $e.ShortTerm], Vo = te({
4210
4220
  fullWidth: { type: Boolean },
4211
4221
  submitLabel: {}
4212
4222
  }, {
4213
- ...ie,
4223
+ ...ae,
4214
4224
  title: "Reisverzekering vergelijken"
4215
4225
  }),
4216
4226
  emits: ["submit"],
4217
- setup(e, { emit: i }) {
4218
- const a = e, n = ae(a), l = i, {
4227
+ setup(e, { emit: a }) {
4228
+ const i = e, n = ie(i), l = a, {
4219
4229
  isSubmitting: o,
4220
4230
  handleSubmit: d,
4221
4231
  defineField: s
4222
- } = le(Vo, {
4232
+ } = le(Eo, {
4223
4233
  PaymentTerm: $e.Continuous,
4224
4234
  birthdate: "",
4225
- ...a.initialData
4235
+ ...i.initialData
4226
4236
  }), [m, r, f] = s("PaymentTerm", { validateAt: "change" }), [p, y, V] = s("birthdate");
4227
4237
  function B() {
4228
4238
  d((g) => {
@@ -4239,12 +4249,12 @@ const So = [$e.Continuous, $e.ShortTerm], Vo = te({
4239
4249
  md: "6"
4240
4250
  }, {
4241
4251
  default: v(() => [
4242
- u(t(Ne), M({
4252
+ u(t(Te), M({
4243
4253
  modelValue: t(m),
4244
- "onUpdate:modelValue": h[0] || (h[0] = (_) => T(m) ? m.value = _ : null),
4254
+ "onUpdate:modelValue": h[0] || (h[0] = (_) => N(m) ? m.value = _ : null),
4245
4255
  legend: "Kies je dekking",
4246
4256
  name: "PaymentTerm",
4247
- options: t(Bo),
4257
+ options: t(Mo),
4248
4258
  variant: "boxed",
4249
4259
  required: !1,
4250
4260
  "error-message": t(f)
@@ -4272,7 +4282,7 @@ const So = [$e.Continuous, $e.ShortTerm], Vo = te({
4272
4282
  default: v(() => [
4273
4283
  u(t(ve), M({
4274
4284
  modelValue: t(p),
4275
- "onUpdate:modelValue": h[1] || (h[1] = (_) => T(p) ? p.value = _ : null),
4285
+ "onUpdate:modelValue": h[1] || (h[1] = (_) => N(p) ? p.value = _ : null),
4276
4286
  "error-message": t(V)
4277
4287
  }, t(y)), null, 16, ["modelValue", "error-message"])
4278
4288
  ]),
@@ -4283,7 +4293,7 @@ const So = [$e.Continuous, $e.ShortTerm], Vo = te({
4283
4293
  }, 16, ["submit-disabled"]));
4284
4294
  }
4285
4295
  });
4286
- function Co(e) {
4296
+ function Po(e) {
4287
4297
  return {
4288
4298
  comparison: j.Travel,
4289
4299
  details: [{
@@ -4297,11 +4307,11 @@ function Co(e) {
4297
4307
  }
4298
4308
  };
4299
4309
  }
4300
- const _o = (e) => te({
4310
+ const Oo = (e) => te({
4301
4311
  address: e,
4302
4312
  birthdate: he(),
4303
4313
  familyComposition: Ze
4304
- }), Eo = /* @__PURE__ */ q({
4314
+ }), $o = /* @__PURE__ */ q({
4305
4315
  __name: "LiabilityForm",
4306
4316
  props: /* @__PURE__ */ ne({
4307
4317
  initialData: {},
@@ -4314,20 +4324,20 @@ const _o = (e) => te({
4314
4324
  fullWidth: { type: Boolean },
4315
4325
  submitLabel: {}
4316
4326
  }, {
4317
- ...ie,
4327
+ ...ae,
4318
4328
  title: "Aansprakelijkheidsverzekering vergelijken"
4319
4329
  }),
4320
4330
  emits: ["submit"],
4321
- setup(e, { emit: i }) {
4322
- const a = e, n = ae(a), l = i, o = Ee(), {
4331
+ setup(e, { emit: a }) {
4332
+ const i = e, n = ie(i), l = a, o = Ee(), {
4323
4333
  isSubmitting: d,
4324
4334
  handleSubmit: s,
4325
4335
  defineField: m
4326
- } = le(_o(o.addressSchema), {
4336
+ } = le(Oo(o.addressSchema), {
4327
4337
  address: _e(),
4328
4338
  birthdate: "",
4329
4339
  familyComposition: J.SingleWithoutChildren,
4330
- ...a.initialData
4340
+ ...i.initialData
4331
4341
  }), [r, f, p] = m("birthdate"), [y, V, B] = m("familyComposition", { validateAt: "change" });
4332
4342
  function g() {
4333
4343
  s((h) => {
@@ -4359,7 +4369,7 @@ const _o = (e) => te({
4359
4369
  default: v(() => [
4360
4370
  u(t(ve), M({
4361
4371
  modelValue: t(r),
4362
- "onUpdate:modelValue": _[0] || (_[0] = (N) => T(r) ? r.value = N : null),
4372
+ "onUpdate:modelValue": _[0] || (_[0] = (T) => N(r) ? r.value = T : null),
4363
4373
  "error-message": t(p)
4364
4374
  }, t(f)), null, 16, ["modelValue", "error-message"])
4365
4375
  ]),
@@ -4372,7 +4382,7 @@ const _o = (e) => te({
4372
4382
  default: v(() => [
4373
4383
  u(t(ze), M({
4374
4384
  modelValue: t(y),
4375
- "onUpdate:modelValue": _[1] || (_[1] = (N) => T(y) ? y.value = N : null),
4385
+ "onUpdate:modelValue": _[1] || (_[1] = (T) => N(y) ? y.value = T : null),
4376
4386
  "error-message": t(B)
4377
4387
  }, t(V)), null, 16, ["modelValue", "error-message"])
4378
4388
  ]),
@@ -4383,7 +4393,7 @@ const _o = (e) => te({
4383
4393
  }, 16, ["submit-disabled"]));
4384
4394
  }
4385
4395
  });
4386
- function Mo(e) {
4396
+ function Fo(e) {
4387
4397
  return {
4388
4398
  comparison: j.Liability,
4389
4399
  details: [{
@@ -4407,7 +4417,7 @@ function Mo(e) {
4407
4417
  }
4408
4418
  };
4409
4419
  }
4410
- const Jt = [
4420
+ const Qt = [
4411
4421
  {
4412
4422
  value: fe.Yes,
4413
4423
  label: "Gekocht"
@@ -4416,11 +4426,11 @@ const Jt = [
4416
4426
  value: fe.No,
4417
4427
  label: "Verhuurd"
4418
4428
  }
4419
- ], wo = (e) => te({
4429
+ ], Lo = (e) => te({
4420
4430
  address: e,
4421
- ownedBuilding: Yt,
4422
- familyComposition: Gt(W.house.familyCompositionRequired)
4423
- }), Po = /* @__PURE__ */ q({
4431
+ ownedBuilding: Jt,
4432
+ familyComposition: Yt(W.house.familyCompositionRequired)
4433
+ }), No = /* @__PURE__ */ q({
4424
4434
  __name: "HouseForm",
4425
4435
  props: /* @__PURE__ */ ne({
4426
4436
  initialData: {},
@@ -4433,20 +4443,20 @@ const Jt = [
4433
4443
  fullWidth: { type: Boolean },
4434
4444
  submitLabel: {}
4435
4445
  }, {
4436
- ...ie,
4446
+ ...ae,
4437
4447
  title: "Woonverzekering vergelijken"
4438
4448
  }),
4439
4449
  emits: ["submit"],
4440
- setup(e, { emit: i }) {
4441
- const a = e, n = ae(a), l = i, o = Ee(), {
4450
+ setup(e, { emit: a }) {
4451
+ const i = e, n = ie(i), l = a, o = Ee(), {
4442
4452
  isSubmitting: d,
4443
4453
  handleSubmit: s,
4444
4454
  defineField: m
4445
- } = le(wo(o.addressSchema), {
4455
+ } = le(Lo(o.addressSchema), {
4446
4456
  address: _e(),
4447
4457
  ownedBuilding: fe.Yes,
4448
4458
  familyComposition: J.SingleWithoutChildren,
4449
- ...a.initialData
4459
+ ...i.initialData
4450
4460
  }), [r, f, p] = m("ownedBuilding"), [y, V, B] = m("familyComposition", { validateAt: "change" });
4451
4461
  function g() {
4452
4462
  s((h) => {
@@ -4476,12 +4486,12 @@ const Jt = [
4476
4486
  md: "3"
4477
4487
  }, {
4478
4488
  default: v(() => [
4479
- u(t(Ne), M({
4489
+ u(t(Te), M({
4480
4490
  modelValue: t(r),
4481
- "onUpdate:modelValue": _[0] || (_[0] = (N) => T(r) ? r.value = N : null),
4491
+ "onUpdate:modelValue": _[0] || (_[0] = (T) => N(r) ? r.value = T : null),
4482
4492
  legend: "Jouw woning is...",
4483
4493
  name: "ownedBuilding",
4484
- options: t(Jt),
4494
+ options: t(Qt),
4485
4495
  variant: "boxed",
4486
4496
  required: !1,
4487
4497
  "error-message": t(p)
@@ -4496,7 +4506,7 @@ const Jt = [
4496
4506
  default: v(() => [
4497
4507
  u(t(ze), M({
4498
4508
  modelValue: t(y),
4499
- "onUpdate:modelValue": _[1] || (_[1] = (N) => T(y) ? y.value = N : null),
4509
+ "onUpdate:modelValue": _[1] || (_[1] = (T) => N(y) ? y.value = T : null),
4500
4510
  "error-message": t(B)
4501
4511
  }, t(V)), null, 16, ["modelValue", "error-message"])
4502
4512
  ]),
@@ -4507,7 +4517,7 @@ const Jt = [
4507
4517
  }, 16, ["submit-disabled"]));
4508
4518
  }
4509
4519
  });
4510
- function Oo(e) {
4520
+ function To(e) {
4511
4521
  return {
4512
4522
  comparison: j.Housing,
4513
4523
  details: [{
@@ -4524,16 +4534,16 @@ function Oo(e) {
4524
4534
  }
4525
4535
  };
4526
4536
  }
4527
- const qe = J.SingleWithChildren, $o = (e) => te({
4537
+ const qe = J.SingleWithChildren, zo = (e) => te({
4528
4538
  address: e,
4529
- ownedBuilding: Yt,
4539
+ ownedBuilding: Jt,
4530
4540
  birthdate: he(),
4531
4541
  familyComposition: Ze,
4532
4542
  familySize: ee().when("familyComposition", {
4533
4543
  is: qe,
4534
- then: (i) => i.required(W.legal.familySizeRequired)
4544
+ then: (a) => a.required(W.legal.familySizeRequired)
4535
4545
  })
4536
- }), Fo = [
4546
+ }), Do = [
4537
4547
  {
4538
4548
  title: "Alleenstaande met 1 kind",
4539
4549
  value: "2"
@@ -4542,7 +4552,7 @@ const qe = J.SingleWithChildren, $o = (e) => te({
4542
4552
  title: "Alleenstaande met 2 of meer kinderen",
4543
4553
  value: "3"
4544
4554
  }
4545
- ], Lo = /* @__PURE__ */ q({
4555
+ ], Ro = /* @__PURE__ */ q({
4546
4556
  __name: "LegalForm",
4547
4557
  props: /* @__PURE__ */ ne({
4548
4558
  initialData: {},
@@ -4555,24 +4565,24 @@ const qe = J.SingleWithChildren, $o = (e) => te({
4555
4565
  fullWidth: { type: Boolean },
4556
4566
  submitLabel: {}
4557
4567
  }, {
4558
- ...ie,
4568
+ ...ae,
4559
4569
  title: "Rechtsbijstandverzekering vergelijken"
4560
4570
  }),
4561
4571
  emits: ["submit"],
4562
- setup(e, { emit: i }) {
4563
- const a = e, n = ae(a), l = i, o = Ee(), {
4572
+ setup(e, { emit: a }) {
4573
+ const i = e, n = ie(i), l = a, o = Ee(), {
4564
4574
  isSubmitting: d,
4565
4575
  handleSubmit: s,
4566
4576
  defineField: m,
4567
4577
  resetField: r
4568
- } = le($o(o.addressSchema), {
4578
+ } = le(zo(o.addressSchema), {
4569
4579
  address: _e(),
4570
4580
  ownedBuilding: fe.Yes,
4571
4581
  birthdate: "",
4572
4582
  familyComposition: J.SingleWithoutChildren,
4573
4583
  familySize: "",
4574
- ...a.initialData
4575
- }), [f, p, y] = m("ownedBuilding"), [V, B, g] = m("birthdate"), [h, _, N] = m("familyComposition", { validateAt: "change" }), [z, $, P] = m("familySize", { validateAt: "change" }), b = F(() => h.value === qe);
4584
+ ...i.initialData
4585
+ }), [f, p, y] = m("ownedBuilding"), [V, B, g] = m("birthdate"), [h, _, T] = m("familyComposition", { validateAt: "change" }), [z, $, P] = m("familySize", { validateAt: "change" }), b = F(() => h.value === qe);
4576
4586
  ce(h, (w) => {
4577
4587
  w !== qe && r("familySize", { value: "" });
4578
4588
  }, { immediate: !0 });
@@ -4604,12 +4614,12 @@ const qe = J.SingleWithChildren, $o = (e) => te({
4604
4614
  md: "6"
4605
4615
  }, {
4606
4616
  default: v(() => [
4607
- u(t(Ne), M({
4617
+ u(t(Te), M({
4608
4618
  modelValue: t(f),
4609
- "onUpdate:modelValue": U[0] || (U[0] = (K) => T(f) ? f.value = K : null),
4619
+ "onUpdate:modelValue": U[0] || (U[0] = (K) => N(f) ? f.value = K : null),
4610
4620
  legend: "Jouw woning is...",
4611
4621
  name: "ownedBuilding",
4612
- options: t(Jt),
4622
+ options: t(Qt),
4613
4623
  variant: "boxed",
4614
4624
  required: !1,
4615
4625
  "error-message": t(y)
@@ -4624,7 +4634,7 @@ const qe = J.SingleWithChildren, $o = (e) => te({
4624
4634
  default: v(() => [
4625
4635
  u(t(ve), M({
4626
4636
  modelValue: t(V),
4627
- "onUpdate:modelValue": U[1] || (U[1] = (K) => T(V) ? V.value = K : null),
4637
+ "onUpdate:modelValue": U[1] || (U[1] = (K) => N(V) ? V.value = K : null),
4628
4638
  "error-message": t(g)
4629
4639
  }, t(B)), null, 16, ["modelValue", "error-message"])
4630
4640
  ]),
@@ -4637,8 +4647,8 @@ const qe = J.SingleWithChildren, $o = (e) => te({
4637
4647
  default: v(() => [
4638
4648
  u(t(ze), M({
4639
4649
  modelValue: t(h),
4640
- "onUpdate:modelValue": U[2] || (U[2] = (K) => T(h) ? h.value = K : null),
4641
- "error-message": t(N)
4650
+ "onUpdate:modelValue": U[2] || (U[2] = (K) => N(h) ? h.value = K : null),
4651
+ "error-message": t(T)
4642
4652
  }, t(_)), null, 16, ["modelValue", "error-message"])
4643
4653
  ]),
4644
4654
  _: 1
@@ -4651,10 +4661,10 @@ const qe = J.SingleWithChildren, $o = (e) => te({
4651
4661
  default: v(() => [
4652
4662
  u(t(Ve), M({
4653
4663
  modelValue: t(z),
4654
- "onUpdate:modelValue": U[3] || (U[3] = (K) => T(z) ? z.value = K : null),
4664
+ "onUpdate:modelValue": U[3] || (U[3] = (K) => N(z) ? z.value = K : null),
4655
4665
  label: "Aantal kinderen",
4656
4666
  placeholder: "Maak een keuze",
4657
- options: t(Fo),
4667
+ options: t(Do),
4658
4668
  name: "familySize",
4659
4669
  required: !1,
4660
4670
  "error-message": t(P)
@@ -4667,7 +4677,7 @@ const qe = J.SingleWithChildren, $o = (e) => te({
4667
4677
  }, 16, ["submit-disabled"]));
4668
4678
  }
4669
4679
  });
4670
- function To(e) {
4680
+ function xo(e) {
4671
4681
  return {
4672
4682
  comparison: j.LegalAssistance,
4673
4683
  details: [{
@@ -4690,15 +4700,15 @@ function To(e) {
4690
4700
  }
4691
4701
  };
4692
4702
  }
4693
- const No = (e) => te({
4703
+ const jo = (e) => te({
4694
4704
  address: e,
4695
4705
  birthdate: he(),
4696
4706
  familyComposition: Ze,
4697
4707
  partnerBirthdate: ee().when("familyComposition", {
4698
- is: at,
4708
+ is: nt,
4699
4709
  then: () => he()
4700
4710
  })
4701
- }), zo = /* @__PURE__ */ q({
4711
+ }), Io = /* @__PURE__ */ q({
4702
4712
  __name: "PackageForm",
4703
4713
  props: /* @__PURE__ */ ne({
4704
4714
  initialData: {},
@@ -4711,25 +4721,25 @@ const No = (e) => te({
4711
4721
  fullWidth: { type: Boolean },
4712
4722
  submitLabel: {}
4713
4723
  }, {
4714
- ...ie,
4724
+ ...ae,
4715
4725
  title: "Combineer al je verzekeringen in 1 verzekeringspakket"
4716
4726
  }),
4717
4727
  emits: ["submit"],
4718
- setup(e, { emit: i }) {
4719
- const a = e, n = ae(a), l = i, o = Ee(), {
4728
+ setup(e, { emit: a }) {
4729
+ const i = e, n = ie(i), l = a, o = Ee(), {
4720
4730
  isSubmitting: d,
4721
4731
  handleSubmit: s,
4722
4732
  defineField: m,
4723
4733
  resetField: r
4724
- } = le(No(o.addressSchema), {
4734
+ } = le(jo(o.addressSchema), {
4725
4735
  address: _e(),
4726
4736
  birthdate: "",
4727
4737
  familyComposition: J.SingleWithoutChildren,
4728
4738
  partnerBirthdate: "",
4729
- ...a.initialData
4730
- }), [f, p, y] = m("birthdate"), [V, B, g] = m("familyComposition", { validateAt: "change" }), [h, _, N] = m("partnerBirthdate"), z = F(() => at(V.value));
4739
+ ...i.initialData
4740
+ }), [f, p, y] = m("birthdate"), [V, B, g] = m("familyComposition", { validateAt: "change" }), [h, _, T] = m("partnerBirthdate"), z = F(() => nt(V.value));
4731
4741
  ce(V, (P) => {
4732
- at(P) || r("partnerBirthdate", { value: "" });
4742
+ nt(P) || r("partnerBirthdate", { value: "" });
4733
4743
  }, { immediate: !0 });
4734
4744
  function $() {
4735
4745
  s((P) => {
@@ -4761,7 +4771,7 @@ const No = (e) => te({
4761
4771
  default: v(() => [
4762
4772
  u(t(ve), M({
4763
4773
  modelValue: t(f),
4764
- "onUpdate:modelValue": b[0] || (b[0] = (A) => T(f) ? f.value = A : null),
4774
+ "onUpdate:modelValue": b[0] || (b[0] = (A) => N(f) ? f.value = A : null),
4765
4775
  label: "Geboortedatum",
4766
4776
  "error-message": t(y)
4767
4777
  }, t(p)), null, 16, ["modelValue", "error-message"])
@@ -4775,7 +4785,7 @@ const No = (e) => te({
4775
4785
  default: v(() => [
4776
4786
  u(t(ze), M({
4777
4787
  modelValue: t(V),
4778
- "onUpdate:modelValue": b[1] || (b[1] = (A) => T(V) ? V.value = A : null),
4788
+ "onUpdate:modelValue": b[1] || (b[1] = (A) => N(V) ? V.value = A : null),
4779
4789
  "error-message": t(g)
4780
4790
  }, t(B)), null, 16, ["modelValue", "error-message"])
4781
4791
  ]),
@@ -4789,10 +4799,10 @@ const No = (e) => te({
4789
4799
  default: v(() => [
4790
4800
  u(t(ve), M({
4791
4801
  modelValue: t(h),
4792
- "onUpdate:modelValue": b[2] || (b[2] = (A) => T(h) ? h.value = A : null),
4802
+ "onUpdate:modelValue": b[2] || (b[2] = (A) => N(h) ? h.value = A : null),
4793
4803
  label: "Geboortedatum partner",
4794
4804
  name: "partnerBirthdate",
4795
- "error-message": t(N)
4805
+ "error-message": t(T)
4796
4806
  }, t(_)), null, 16, ["modelValue", "error-message"])
4797
4807
  ]),
4798
4808
  _: 1
@@ -4802,7 +4812,7 @@ const No = (e) => te({
4802
4812
  }, 16, ["submit-disabled"]));
4803
4813
  }
4804
4814
  });
4805
- function Do(e) {
4815
+ function qo(e) {
4806
4816
  return {
4807
4817
  comparison: j.Package,
4808
4818
  details: [{
@@ -4820,12 +4830,12 @@ function Do(e) {
4820
4830
  }
4821
4831
  };
4822
4832
  }
4823
- const Ro = { min: 21, max: 74 }, xe = { min: 3500, max: 75e3 }, xo = 76, wt = 120, jo = te({
4833
+ const Uo = { min: 21, max: 74 }, xe = { min: 3500, max: 75e3 }, Ho = 76, Pt = 120, Wo = te({
4824
4834
  LoanPurpose: ee().required(W.loan.purposeRequired),
4825
- LoanAmount: nt(W.loan.amountRequired).min(xe.min, W.loan.amountMin(xe.min)).max(xe.max, W.loan.amountMax(xe.max)),
4826
- birthdate: he(Ro),
4835
+ LoanAmount: ot(W.loan.amountRequired).min(xe.min, W.loan.amountMin(xe.min)).max(xe.max, W.loan.amountMax(xe.max)),
4836
+ birthdate: he(Uo),
4827
4837
  familyComposition: Ze
4828
- }), Io = [
4838
+ }), Ko = [
4829
4839
  { title: "Aankoop auto", value: "02" },
4830
4840
  { title: "Aankoop boot", value: "03" },
4831
4841
  { title: "Aankoop caravan/camper", value: "04" },
@@ -4838,7 +4848,7 @@ const Ro = { min: 21, max: 74 }, xe = { min: 3500, max: 75e3 }, xo = 76, wt = 12
4838
4848
  { title: "Aflossen restschuld woning", value: "12" },
4839
4849
  { title: "Extra financiële ruimte", value: "33" },
4840
4850
  { title: "Anders", value: "99" }
4841
- ], qo = /* @__PURE__ */ q({
4851
+ ], Go = /* @__PURE__ */ q({
4842
4852
  __name: "LoanForm",
4843
4853
  props: /* @__PURE__ */ ne({
4844
4854
  initialData: {},
@@ -4851,22 +4861,22 @@ const Ro = { min: 21, max: 74 }, xe = { min: 3500, max: 75e3 }, xo = 76, wt = 12
4851
4861
  fullWidth: { type: Boolean },
4852
4862
  submitLabel: {}
4853
4863
  }, {
4854
- ...ie,
4864
+ ...ae,
4855
4865
  title: "Geld lenen"
4856
4866
  }),
4857
4867
  emits: ["submit"],
4858
- setup(e, { emit: i }) {
4859
- const a = e, n = ae(a), l = i, {
4868
+ setup(e, { emit: a }) {
4869
+ const i = e, n = ie(i), l = a, {
4860
4870
  isSubmitting: o,
4861
4871
  handleSubmit: d,
4862
4872
  defineField: s
4863
- } = le(jo, {
4873
+ } = le(Wo, {
4864
4874
  LoanPurpose: "",
4865
4875
  LoanAmount: null,
4866
4876
  birthdate: "",
4867
4877
  familyComposition: J.SingleWithoutChildren,
4868
- ...a.initialData
4869
- }), [m, r, f] = s("LoanPurpose", { validateAt: "change" }), [p, y, V] = s("LoanAmount"), [B, g, h] = s("birthdate"), [_, N, z] = s("familyComposition", { validateAt: "change" });
4878
+ ...i.initialData
4879
+ }), [m, r, f] = s("LoanPurpose", { validateAt: "change" }), [p, y, V] = s("LoanAmount"), [B, g, h] = s("birthdate"), [_, T, z] = s("familyComposition", { validateAt: "change" });
4870
4880
  function $() {
4871
4881
  d((P) => {
4872
4882
  l("submit", { ...P });
@@ -4884,10 +4894,10 @@ const Ro = { min: 21, max: 74 }, xe = { min: 3500, max: 75e3 }, xo = 76, wt = 12
4884
4894
  default: v(() => [
4885
4895
  u(t(Ve), M({
4886
4896
  modelValue: t(m),
4887
- "onUpdate:modelValue": b[0] || (b[0] = (A) => T(m) ? m.value = A : null),
4897
+ "onUpdate:modelValue": b[0] || (b[0] = (A) => N(m) ? m.value = A : null),
4888
4898
  label: "Leendoel",
4889
4899
  placeholder: "Maak een keuze",
4890
- options: t(Io),
4900
+ options: t(Ko),
4891
4901
  name: "LoanPurpose",
4892
4902
  required: !1,
4893
4903
  "error-message": t(f)
@@ -4902,7 +4912,7 @@ const Ro = { min: 21, max: 74 }, xe = { min: 3500, max: 75e3 }, xo = 76, wt = 12
4902
4912
  default: v(() => [
4903
4913
  u(t(Ae), M({
4904
4914
  modelValue: t(p),
4905
- "onUpdate:modelValue": b[1] || (b[1] = (A) => T(p) ? p.value = A : null),
4915
+ "onUpdate:modelValue": b[1] || (b[1] = (A) => N(p) ? p.value = A : null),
4906
4916
  modelModifiers: { number: !0 },
4907
4917
  label: "Leenbedrag",
4908
4918
  placeholder: "Van € 3.500,- tot € 75.000,-",
@@ -4923,7 +4933,7 @@ const Ro = { min: 21, max: 74 }, xe = { min: 3500, max: 75e3 }, xo = 76, wt = 12
4923
4933
  default: v(() => [
4924
4934
  u(t(ve), M({
4925
4935
  modelValue: t(B),
4926
- "onUpdate:modelValue": b[2] || (b[2] = (A) => T(B) ? B.value = A : null),
4936
+ "onUpdate:modelValue": b[2] || (b[2] = (A) => N(B) ? B.value = A : null),
4927
4937
  "error-message": t(h)
4928
4938
  }, t(g)), null, 16, ["modelValue", "error-message"])
4929
4939
  ]),
@@ -4936,9 +4946,9 @@ const Ro = { min: 21, max: 74 }, xe = { min: 3500, max: 75e3 }, xo = 76, wt = 12
4936
4946
  default: v(() => [
4937
4947
  u(t(ze), M({
4938
4948
  modelValue: t(_),
4939
- "onUpdate:modelValue": b[3] || (b[3] = (A) => T(_) ? _.value = A : null),
4949
+ "onUpdate:modelValue": b[3] || (b[3] = (A) => N(_) ? _.value = A : null),
4940
4950
  "error-message": t(z)
4941
- }, t(N)), null, 16, ["modelValue", "error-message"])
4951
+ }, t(T)), null, 16, ["modelValue", "error-message"])
4942
4952
  ]),
4943
4953
  _: 1
4944
4954
  })
@@ -4947,14 +4957,14 @@ const Ro = { min: 21, max: 74 }, xe = { min: 3500, max: 75e3 }, xo = 76, wt = 12
4947
4957
  }, 16, ["submit-disabled"]));
4948
4958
  }
4949
4959
  });
4950
- function Uo(e) {
4951
- const i = ut(e, Te);
4952
- if (!i)
4953
- return wt;
4954
- const n = i.add(xo, "year").diff(Ke(), "month", !0), l = Math.floor(n / 12) * 12;
4955
- return Math.min(l, wt);
4960
+ function Yo(e) {
4961
+ const a = ut(e, Ne);
4962
+ if (!a)
4963
+ return Pt;
4964
+ const n = a.add(Ho, "year").diff(Ke(), "month", !0), l = Math.floor(n / 12) * 12;
4965
+ return Math.min(l, Pt);
4956
4966
  }
4957
- function Ho(e) {
4967
+ function Jo(e) {
4958
4968
  return {
4959
4969
  comparison: j.Loan,
4960
4970
  details: [{
@@ -4962,7 +4972,7 @@ function Ho(e) {
4962
4972
  data: {
4963
4973
  LoanPurpose: e.LoanPurpose,
4964
4974
  LoanAmount: e.LoanAmount,
4965
- MaxDurationByLegalLimit: Uo(e.birthdate)
4975
+ MaxDurationByLegalLimit: Yo(e.birthdate)
4966
4976
  }
4967
4977
  }],
4968
4978
  user: {
@@ -4971,12 +4981,12 @@ function Ho(e) {
4971
4981
  }
4972
4982
  };
4973
4983
  }
4974
- const Wo = { min: 16, max: 99 }, Ko = (e, i) => te({
4984
+ const Qo = { min: 16, max: 99 }, Zo = (e, a) => te({
4975
4985
  licensePlate: e,
4976
- address: i,
4977
- birthdate: he(Wo)
4986
+ address: a,
4987
+ birthdate: he(Qo)
4978
4988
  // moped's local ./constants AGE_RANGE = {min:16,max:99}
4979
- }), Go = /* @__PURE__ */ q({
4989
+ }), Xo = /* @__PURE__ */ q({
4980
4990
  __name: "MopedForm",
4981
4991
  props: /* @__PURE__ */ ne({
4982
4992
  initialData: {},
@@ -4989,25 +4999,25 @@ const Wo = { min: 16, max: 99 }, Ko = (e, i) => te({
4989
4999
  fullWidth: { type: Boolean },
4990
5000
  submitLabel: {}
4991
5001
  }, {
4992
- ...ie,
5002
+ ...ae,
4993
5003
  title: "Brommerverzekering vergelijken"
4994
5004
  }),
4995
5005
  emits: ["submit"],
4996
- setup(e, { emit: i }) {
5006
+ setup(e, { emit: a }) {
4997
5007
  var z;
4998
- const a = e, n = ae(a), l = i, o = Ee(), { vehicleData: d, licensePlateSchema: s } = Je(j.Moped, {
4999
- initialData: ((z = a.initialData) == null ? void 0 : z.vehicle) ?? void 0
5008
+ const i = e, n = ie(i), l = a, o = Ee(), { vehicleData: d, licensePlateSchema: s } = Je(j.Moped, {
5009
+ initialData: ((z = i.initialData) == null ? void 0 : z.vehicle) ?? void 0
5000
5010
  }), {
5001
5011
  isSubmitting: m,
5002
5012
  handleSubmit: r,
5003
5013
  defineField: f
5004
- } = le(Ko(s, o.addressSchema), {
5014
+ } = le(Zo(s, o.addressSchema), {
5005
5015
  licensePlate: "",
5006
5016
  address: _e(),
5007
5017
  birthdate: "",
5008
- ...a.initialData
5018
+ ...i.initialData
5009
5019
  }), [p, y, V, B] = f("licensePlate"), [g, h, _] = f("birthdate");
5010
- function N() {
5020
+ function T() {
5011
5021
  r(($) => {
5012
5022
  l("submit", {
5013
5023
  ...$,
@@ -5019,7 +5029,7 @@ const Wo = { min: 16, max: 99 }, Ko = (e, i) => te({
5019
5029
  }
5020
5030
  return ($, P) => (c(), H(t(oe), M(t(n), {
5021
5031
  "submit-disabled": t(m),
5022
- onSubmit: N
5032
+ onSubmit: T
5023
5033
  }), {
5024
5034
  default: v(() => [
5025
5035
  u(t(L), {
@@ -5029,9 +5039,9 @@ const Wo = { min: 16, max: 99 }, Ko = (e, i) => te({
5029
5039
  default: v(() => [
5030
5040
  u(t(Ye), M({
5031
5041
  modelValue: t(p),
5032
- "onUpdate:modelValue": P[0] || (P[0] = (b) => T(p) ? p.value = b : null),
5042
+ "onUpdate:modelValue": P[0] || (P[0] = (b) => N(p) ? p.value = b : null),
5033
5043
  "vehicle-data": t(d),
5034
- "onUpdate:vehicleData": P[1] || (P[1] = (b) => T(d) ? d.value = b : null),
5044
+ "onUpdate:vehicleData": P[1] || (P[1] = (b) => N(d) ? d.value = b : null),
5035
5045
  name: "licensePlate",
5036
5046
  "error-message": t(V),
5037
5047
  loading: t(B).isValidating
@@ -5068,7 +5078,7 @@ const Wo = { min: 16, max: 99 }, Ko = (e, i) => te({
5068
5078
  default: v(() => [
5069
5079
  u(t(ve), M({
5070
5080
  modelValue: t(g),
5071
- "onUpdate:modelValue": P[2] || (P[2] = (b) => T(g) ? g.value = b : null),
5081
+ "onUpdate:modelValue": P[2] || (P[2] = (b) => N(g) ? g.value = b : null),
5072
5082
  label: "Geboortedatum hoofdbestuurder",
5073
5083
  "error-message": t(_)
5074
5084
  }, t(h)), null, 16, ["modelValue", "error-message"])
@@ -5080,7 +5090,7 @@ const Wo = { min: 16, max: 99 }, Ko = (e, i) => te({
5080
5090
  }, 16, ["submit-disabled"]));
5081
5091
  }
5082
5092
  });
5083
- function Yo(e) {
5093
+ function el(e) {
5084
5094
  return {
5085
5095
  comparison: j.Moped,
5086
5096
  details: [{
@@ -5098,11 +5108,11 @@ function Yo(e) {
5098
5108
  }
5099
5109
  };
5100
5110
  }
5101
- const Jo = (e, i) => te({
5111
+ const tl = (e, a) => te({
5102
5112
  licensePlate: e,
5103
- address: i,
5113
+ address: a,
5104
5114
  birthdate: he()
5105
- }), Qo = /* @__PURE__ */ q({
5115
+ }), al = /* @__PURE__ */ q({
5106
5116
  __name: "MotorForm",
5107
5117
  props: /* @__PURE__ */ ne({
5108
5118
  initialData: {},
@@ -5115,25 +5125,25 @@ const Jo = (e, i) => te({
5115
5125
  fullWidth: { type: Boolean },
5116
5126
  submitLabel: {}
5117
5127
  }, {
5118
- ...ie,
5128
+ ...ae,
5119
5129
  title: "Motorverzekering vergelijken"
5120
5130
  }),
5121
5131
  emits: ["submit"],
5122
- setup(e, { emit: i }) {
5132
+ setup(e, { emit: a }) {
5123
5133
  var z;
5124
- const a = e, n = ae(a), l = i, o = Ee(), { vehicleData: d, licensePlateSchema: s } = Je(j.Motor, {
5125
- initialData: ((z = a.initialData) == null ? void 0 : z.vehicle) ?? void 0
5134
+ const i = e, n = ie(i), l = a, o = Ee(), { vehicleData: d, licensePlateSchema: s } = Je(j.Motor, {
5135
+ initialData: ((z = i.initialData) == null ? void 0 : z.vehicle) ?? void 0
5126
5136
  }), {
5127
5137
  isSubmitting: m,
5128
5138
  handleSubmit: r,
5129
5139
  defineField: f
5130
- } = le(Jo(s, o.addressSchema), {
5140
+ } = le(tl(s, o.addressSchema), {
5131
5141
  licensePlate: "",
5132
5142
  address: _e(),
5133
5143
  birthdate: "",
5134
- ...a.initialData
5144
+ ...i.initialData
5135
5145
  }), [p, y, V, B] = f("licensePlate"), [g, h, _] = f("birthdate");
5136
- function N() {
5146
+ function T() {
5137
5147
  r(($) => {
5138
5148
  l("submit", {
5139
5149
  ...$,
@@ -5145,7 +5155,7 @@ const Jo = (e, i) => te({
5145
5155
  }
5146
5156
  return ($, P) => (c(), H(t(oe), M(t(n), {
5147
5157
  "submit-disabled": t(m),
5148
- onSubmit: N
5158
+ onSubmit: T
5149
5159
  }), {
5150
5160
  default: v(() => [
5151
5161
  u(t(L), {
@@ -5155,9 +5165,9 @@ const Jo = (e, i) => te({
5155
5165
  default: v(() => [
5156
5166
  u(t(Ye), M({
5157
5167
  modelValue: t(p),
5158
- "onUpdate:modelValue": P[0] || (P[0] = (b) => T(p) ? p.value = b : null),
5168
+ "onUpdate:modelValue": P[0] || (P[0] = (b) => N(p) ? p.value = b : null),
5159
5169
  "vehicle-data": t(d),
5160
- "onUpdate:vehicleData": P[1] || (P[1] = (b) => T(d) ? d.value = b : null),
5170
+ "onUpdate:vehicleData": P[1] || (P[1] = (b) => N(d) ? d.value = b : null),
5161
5171
  name: "licensePlate",
5162
5172
  "error-message": t(V),
5163
5173
  loading: t(B).isValidating
@@ -5194,7 +5204,7 @@ const Jo = (e, i) => te({
5194
5204
  default: v(() => [
5195
5205
  u(t(ve), M({
5196
5206
  modelValue: t(g),
5197
- "onUpdate:modelValue": P[2] || (P[2] = (b) => T(g) ? g.value = b : null),
5207
+ "onUpdate:modelValue": P[2] || (P[2] = (b) => N(g) ? g.value = b : null),
5198
5208
  label: "Geboortedatum hoofdbestuurder",
5199
5209
  "error-message": t(_)
5200
5210
  }, t(h)), null, 16, ["modelValue", "error-message"])
@@ -5206,7 +5216,7 @@ const Jo = (e, i) => te({
5206
5216
  }, 16, ["submit-disabled"]));
5207
5217
  }
5208
5218
  });
5209
- function Zo(e) {
5219
+ function il(e) {
5210
5220
  return {
5211
5221
  comparison: j.Motor,
5212
5222
  details: [{
@@ -5224,11 +5234,11 @@ function Zo(e) {
5224
5234
  }
5225
5235
  };
5226
5236
  }
5227
- const Xo = (e, i) => te({
5237
+ const nl = (e, a) => te({
5228
5238
  licensePlate: e,
5229
- address: i,
5239
+ address: a,
5230
5240
  birthdate: he()
5231
- }), el = /* @__PURE__ */ q({
5241
+ }), ol = /* @__PURE__ */ q({
5232
5242
  __name: "CarForm",
5233
5243
  props: /* @__PURE__ */ ne({
5234
5244
  initialData: {},
@@ -5241,25 +5251,25 @@ const Xo = (e, i) => te({
5241
5251
  fullWidth: { type: Boolean },
5242
5252
  submitLabel: {}
5243
5253
  }, {
5244
- ...ie,
5254
+ ...ae,
5245
5255
  title: "Autoverzekering vergelijken"
5246
5256
  }),
5247
5257
  emits: ["submit"],
5248
- setup(e, { emit: i }) {
5258
+ setup(e, { emit: a }) {
5249
5259
  var z;
5250
- const a = e, n = ae(a), l = i, o = Ee(), { vehicleData: d, licensePlateSchema: s } = Je(j.Car, {
5251
- initialData: ((z = a.initialData) == null ? void 0 : z.vehicle) ?? void 0
5260
+ const i = e, n = ie(i), l = a, o = Ee(), { vehicleData: d, licensePlateSchema: s } = Je(j.Car, {
5261
+ initialData: ((z = i.initialData) == null ? void 0 : z.vehicle) ?? void 0
5252
5262
  }), {
5253
5263
  isSubmitting: m,
5254
5264
  handleSubmit: r,
5255
5265
  defineField: f
5256
- } = le(Xo(s, o.addressSchema), {
5266
+ } = le(nl(s, o.addressSchema), {
5257
5267
  licensePlate: "",
5258
5268
  address: _e(),
5259
5269
  birthdate: "",
5260
- ...a.initialData
5270
+ ...i.initialData
5261
5271
  }), [p, y, V, B] = f("licensePlate"), [g, h, _] = f("birthdate");
5262
- function N() {
5272
+ function T() {
5263
5273
  r(($) => {
5264
5274
  l("submit", {
5265
5275
  ...$,
@@ -5271,7 +5281,7 @@ const Xo = (e, i) => te({
5271
5281
  }
5272
5282
  return ($, P) => (c(), H(t(oe), M(t(n), {
5273
5283
  "submit-disabled": t(m),
5274
- onSubmit: N
5284
+ onSubmit: T
5275
5285
  }), {
5276
5286
  default: v(() => [
5277
5287
  u(t(L), {
@@ -5281,9 +5291,9 @@ const Xo = (e, i) => te({
5281
5291
  default: v(() => [
5282
5292
  u(t(Ye), M({
5283
5293
  modelValue: t(p),
5284
- "onUpdate:modelValue": P[0] || (P[0] = (b) => T(p) ? p.value = b : null),
5294
+ "onUpdate:modelValue": P[0] || (P[0] = (b) => N(p) ? p.value = b : null),
5285
5295
  "vehicle-data": t(d),
5286
- "onUpdate:vehicleData": P[1] || (P[1] = (b) => T(d) ? d.value = b : null),
5296
+ "onUpdate:vehicleData": P[1] || (P[1] = (b) => N(d) ? d.value = b : null),
5287
5297
  name: "licensePlate",
5288
5298
  "error-message": t(V),
5289
5299
  loading: t(B).isValidating
@@ -5320,7 +5330,7 @@ const Xo = (e, i) => te({
5320
5330
  default: v(() => [
5321
5331
  u(t(ve), M({
5322
5332
  modelValue: t(g),
5323
- "onUpdate:modelValue": P[2] || (P[2] = (b) => T(g) ? g.value = b : null),
5333
+ "onUpdate:modelValue": P[2] || (P[2] = (b) => N(g) ? g.value = b : null),
5324
5334
  label: "Geboortedatum hoofdbestuurder",
5325
5335
  "error-message": t(_)
5326
5336
  }, t(h)), null, 16, ["modelValue", "error-message"])
@@ -5332,7 +5342,7 @@ const Xo = (e, i) => te({
5332
5342
  }, 16, ["submit-disabled"]));
5333
5343
  }
5334
5344
  });
5335
- function tl(e) {
5345
+ function ll(e) {
5336
5346
  return {
5337
5347
  comparison: j.Car,
5338
5348
  details: [{
@@ -5350,10 +5360,10 @@ function tl(e) {
5350
5360
  }
5351
5361
  };
5352
5362
  }
5353
- const il = (e) => te({
5363
+ const rl = (e) => te({
5354
5364
  licensePlate: e,
5355
- company: Kn()
5356
- }), al = /* @__PURE__ */ q({
5365
+ company: to()
5366
+ }), sl = /* @__PURE__ */ q({
5357
5367
  __name: "BusinessCarForm",
5358
5368
  props: /* @__PURE__ */ ne({
5359
5369
  initialData: {},
@@ -5366,25 +5376,25 @@ const il = (e) => te({
5366
5376
  fullWidth: { type: Boolean },
5367
5377
  submitLabel: {}
5368
5378
  }, {
5369
- ...ie,
5379
+ ...ae,
5370
5380
  title: "Zakelijke autoverzekering vergelijken"
5371
5381
  }),
5372
5382
  emits: ["submit"],
5373
- setup(e, { emit: i }) {
5383
+ setup(e, { emit: a }) {
5374
5384
  var b;
5375
- const a = e, n = ae(a), l = i, { vehicleData: o, licensePlateSchema: d } = Je(j.Car, {
5376
- initialData: ((b = a.initialData) == null ? void 0 : b.vehicle) ?? void 0
5385
+ const i = e, n = ie(i), l = a, { vehicleData: o, licensePlateSchema: d } = Je(j.Car, {
5386
+ initialData: ((b = i.initialData) == null ? void 0 : b.vehicle) ?? void 0
5377
5387
  }), {
5378
5388
  isSubmitting: s,
5379
5389
  handleSubmit: m,
5380
5390
  defineField: r,
5381
5391
  setErrors: f,
5382
5392
  removeError: p
5383
- } = le(il(d), {
5393
+ } = le(rl(d), {
5384
5394
  licensePlate: "",
5385
5395
  company: null,
5386
- ...a.initialData
5387
- }), [y, V, B, g] = r("licensePlate"), [h, _, N] = r("company"), z = (A) => A ? f({ company: A }) : p("company"), $ = F(
5396
+ ...i.initialData
5397
+ }), [y, V, B, g] = r("licensePlate"), [h, _, T] = r("company"), z = (A) => A ? f({ company: A }) : p("company"), $ = F(
5388
5398
  () => !!h.value && !h.value.hasVisitingAddress
5389
5399
  );
5390
5400
  function P() {
@@ -5407,9 +5417,9 @@ const il = (e) => te({
5407
5417
  default: v(() => [
5408
5418
  u(t(Ye), M({
5409
5419
  modelValue: t(y),
5410
- "onUpdate:modelValue": w[0] || (w[0] = (U) => T(y) ? y.value = U : null),
5420
+ "onUpdate:modelValue": w[0] || (w[0] = (U) => N(y) ? y.value = U : null),
5411
5421
  "vehicle-data": t(o),
5412
- "onUpdate:vehicleData": w[1] || (w[1] = (U) => T(o) ? o.value = U : null),
5422
+ "onUpdate:vehicleData": w[1] || (w[1] = (U) => N(o) ? o.value = U : null),
5413
5423
  name: "licensePlate",
5414
5424
  "error-message": t(B),
5415
5425
  loading: t(g).isValidating
@@ -5435,11 +5445,11 @@ const il = (e) => te({
5435
5445
  md: "6"
5436
5446
  }, {
5437
5447
  default: v(() => [
5438
- u(t(Wn), M({
5448
+ u(t(eo), M({
5439
5449
  modelValue: t(h),
5440
- "onUpdate:modelValue": w[2] || (w[2] = (U) => T(h) ? h.value = U : null),
5450
+ "onUpdate:modelValue": w[2] || (w[2] = (U) => N(h) ? h.value = U : null),
5441
5451
  name: "company",
5442
- "error-message": t(N)
5452
+ "error-message": t(T)
5443
5453
  }, t(_), { onError: z }), {
5444
5454
  popover: v(() => [
5445
5455
  u(t(Be), {
@@ -5453,7 +5463,7 @@ const il = (e) => te({
5453
5463
  })
5454
5464
  ]),
5455
5465
  information: v(() => [
5456
- $.value ? (c(), H(t(Fa), {
5466
+ $.value ? (c(), H(t(zi), {
5457
5467
  key: 0,
5458
5468
  text: "Dit bedrijf heeft geen geregistreerd bezoekadres. Voeg dit toe bij de KvK om door te gaan met de aanvraag."
5459
5469
  })) : E("", !0)
@@ -5468,8 +5478,8 @@ const il = (e) => te({
5468
5478
  }, 16, ["submit-disabled"]));
5469
5479
  }
5470
5480
  });
5471
- function nl(e) {
5472
- const { hasVisitingAddress: i, ...a } = e.company;
5481
+ function dl(e) {
5482
+ const { hasVisitingAddress: a, ...i } = e.company;
5473
5483
  return {
5474
5484
  comparison: j.CarBusiness,
5475
5485
  details: [
@@ -5479,15 +5489,15 @@ function nl(e) {
5479
5489
  },
5480
5490
  {
5481
5491
  name: "companyData",
5482
- data: a
5492
+ data: i
5483
5493
  }
5484
5494
  ],
5485
5495
  user: {}
5486
5496
  };
5487
5497
  }
5488
- const ol = "<<COMPARISONID>>", ll = (e) => {
5498
+ const ul = "<<COMPARISONID>>", ml = (e) => {
5489
5499
  window.location.href = e;
5490
- }, rl = ({ user: e, details: i }) => new li({
5500
+ }, cl = ({ user: e, details: a }) => new ua({
5491
5501
  email: e.email || null,
5492
5502
  name: e.firstName || null,
5493
5503
  zip_code: e.zipcode || null,
@@ -5496,43 +5506,43 @@ const ol = "<<COMPARISONID>>", ll = (e) => {
5496
5506
  birth_date: e.birthdate || null,
5497
5507
  family_composition: e.familyComposition || null,
5498
5508
  detail: {
5499
- ...Object.fromEntries(i.map(({ name: a, data: n }) => [a, n])),
5509
+ ...Object.fromEntries(a.map(({ name: i, data: n }) => [i, n])),
5500
5510
  ...e.street && { street: e.street },
5501
5511
  ...e.city && { city: e.city }
5502
5512
  }
5503
5513
  });
5504
- function sl(e) {
5505
- const i = Y(!1), a = Y(null);
5514
+ function fl(e) {
5515
+ const a = Y(!1), i = Y(null);
5506
5516
  return { submit: async (l) => {
5507
5517
  var o;
5508
- i.value = !0, a.value = null;
5518
+ a.value = !0, i.value = null;
5509
5519
  try {
5510
- const d = await e.client.comparisonService.create(l.comparison, rl(l)), s = e.link.replace(ol, d.getId());
5511
- (e.onRedirect ?? ll)(s);
5520
+ const d = await e.client.comparisonService.create(l.comparison, cl(l)), s = e.link.replace(ul, d.getId());
5521
+ (e.onRedirect ?? ml)(s);
5512
5522
  } catch (d) {
5513
- a.value = d, (o = e.onError) == null || o.call(e, d, l);
5523
+ i.value = d, (o = e.onError) == null || o.call(e, d, l);
5514
5524
  } finally {
5515
- i.value = !1;
5525
+ a.value = !1;
5516
5526
  }
5517
- }, isSubmitting: i, error: a };
5527
+ }, isSubmitting: a, error: i };
5518
5528
  }
5519
- const dl = {
5520
- [j.Bike]: () => Promise.resolve().then(() => ul),
5521
- [j.Pet]: () => Promise.resolve().then(() => ml),
5522
- [j.Caravan]: () => Promise.resolve().then(() => cl),
5523
- [j.Travel]: () => Promise.resolve().then(() => fl),
5524
- [j.Liability]: () => Promise.resolve().then(() => vl),
5525
- [j.Housing]: () => Promise.resolve().then(() => Pt),
5526
- house: () => Promise.resolve().then(() => Pt),
5527
- [j.LegalAssistance]: () => Promise.resolve().then(() => bl),
5528
- [j.Package]: () => Promise.resolve().then(() => pl),
5529
- [j.Loan]: () => Promise.resolve().then(() => gl),
5530
- [j.Moped]: () => Promise.resolve().then(() => hl),
5531
- [j.Motor]: () => Promise.resolve().then(() => yl),
5532
- [j.Car]: () => Promise.resolve().then(() => kl),
5533
- [j.CarBusiness]: () => Promise.resolve().then(() => Ot),
5534
- "business-car": () => Promise.resolve().then(() => Ot)
5535
- }, Fl = /* @__PURE__ */ q({
5529
+ const vl = {
5530
+ [j.Bike]: () => Promise.resolve().then(() => bl),
5531
+ [j.Pet]: () => Promise.resolve().then(() => pl),
5532
+ [j.Caravan]: () => Promise.resolve().then(() => gl),
5533
+ [j.Travel]: () => Promise.resolve().then(() => hl),
5534
+ [j.Liability]: () => Promise.resolve().then(() => yl),
5535
+ [j.Housing]: () => Promise.resolve().then(() => Ot),
5536
+ house: () => Promise.resolve().then(() => Ot),
5537
+ [j.LegalAssistance]: () => Promise.resolve().then(() => kl),
5538
+ [j.Package]: () => Promise.resolve().then(() => Sl),
5539
+ [j.Loan]: () => Promise.resolve().then(() => Vl),
5540
+ [j.Moped]: () => Promise.resolve().then(() => Bl),
5541
+ [j.Motor]: () => Promise.resolve().then(() => Al),
5542
+ [j.Car]: () => Promise.resolve().then(() => Cl),
5543
+ [j.CarBusiness]: () => Promise.resolve().then(() => $t),
5544
+ "business-car": () => Promise.resolve().then(() => $t)
5545
+ }, Dl = /* @__PURE__ */ q({
5536
5546
  __name: "ComparisonFormFlow",
5537
5547
  props: {
5538
5548
  form: {},
@@ -5550,18 +5560,18 @@ const dl = {
5550
5560
  submitLabel: {}
5551
5561
  },
5552
5562
  emits: ["submitted", "error"],
5553
- setup(e, { emit: i }) {
5554
- const a = e, n = i, l = ae(a), o = ni(null);
5555
- ce(() => a.form, async (r) => {
5563
+ setup(e, { emit: a }) {
5564
+ const i = e, n = a, l = ie(i), o = oa(null);
5565
+ ce(() => i.form, async (r) => {
5556
5566
  o.value = null;
5557
- const f = await dl[r]();
5558
- r === a.form && (o.value = f);
5567
+ const f = await vl[r]();
5568
+ r === i.form && (o.value = f);
5559
5569
  }, { immediate: !0 });
5560
- const { submit: d, isSubmitting: s } = sl({
5561
- client: a.client,
5562
- link: a.link,
5570
+ const { submit: d, isSubmitting: s } = fl({
5571
+ client: i.client,
5572
+ link: i.link,
5563
5573
  onRedirect: (r) => {
5564
- n("submitted", r), (a.redirect ?? ((f) => {
5574
+ n("submitted", r), (i.redirect ?? ((f) => {
5565
5575
  window.location.href = f;
5566
5576
  }))(r);
5567
5577
  },
@@ -5570,93 +5580,93 @@ const dl = {
5570
5580
  function m(r) {
5571
5581
  o.value && d(o.value.presenter(r));
5572
5582
  }
5573
- return (r, f) => o.value ? (c(), H(oi(o.value.Form), M({ key: 0 }, t(l), {
5583
+ return (r, f) => o.value ? (c(), H(la(o.value.Form), M({ key: 0 }, t(l), {
5574
5584
  "initial-data": e.initialData,
5575
5585
  "submit-disabled": t(s),
5576
5586
  onSubmit: m
5577
5587
  }), null, 16, ["initial-data", "submit-disabled"])) : E("", !0);
5578
5588
  }
5579
- }), ul = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5580
- __proto__: null,
5581
- Form: oo,
5582
- presenter: lo
5583
- }, Symbol.toStringTag, { value: "Module" })), ml = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5589
+ }), bl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5584
5590
  __proto__: null,
5585
- Form: co,
5586
- presenter: fo
5587
- }, Symbol.toStringTag, { value: "Module" })), cl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5591
+ Form: mo,
5592
+ presenter: co
5593
+ }, Symbol.toStringTag, { value: "Module" })), pl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5588
5594
  __proto__: null,
5589
- Form: yo,
5590
- presenter: ko
5591
- }, Symbol.toStringTag, { value: "Module" })), fl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5595
+ Form: go,
5596
+ presenter: ho
5597
+ }, Symbol.toStringTag, { value: "Module" })), gl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5592
5598
  __proto__: null,
5593
5599
  Form: Ao,
5594
5600
  presenter: Co
5595
- }, Symbol.toStringTag, { value: "Module" })), vl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5601
+ }, Symbol.toStringTag, { value: "Module" })), hl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5596
5602
  __proto__: null,
5597
- Form: Eo,
5598
- presenter: Mo
5599
- }, Symbol.toStringTag, { value: "Module" })), Pt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5603
+ Form: wo,
5604
+ presenter: Po
5605
+ }, Symbol.toStringTag, { value: "Module" })), yl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5600
5606
  __proto__: null,
5601
- Form: Po,
5602
- presenter: Oo
5603
- }, Symbol.toStringTag, { value: "Module" })), bl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5607
+ Form: $o,
5608
+ presenter: Fo
5609
+ }, Symbol.toStringTag, { value: "Module" })), Ot = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5604
5610
  __proto__: null,
5605
- Form: Lo,
5611
+ Form: No,
5606
5612
  presenter: To
5607
- }, Symbol.toStringTag, { value: "Module" })), pl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5613
+ }, Symbol.toStringTag, { value: "Module" })), kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5608
5614
  __proto__: null,
5609
- Form: zo,
5610
- presenter: Do
5611
- }, Symbol.toStringTag, { value: "Module" })), gl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5615
+ Form: Ro,
5616
+ presenter: xo
5617
+ }, Symbol.toStringTag, { value: "Module" })), Sl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5612
5618
  __proto__: null,
5613
- Form: qo,
5614
- presenter: Ho
5615
- }, Symbol.toStringTag, { value: "Module" })), hl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5619
+ Form: Io,
5620
+ presenter: qo
5621
+ }, Symbol.toStringTag, { value: "Module" })), Vl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5616
5622
  __proto__: null,
5617
5623
  Form: Go,
5618
- presenter: Yo
5619
- }, Symbol.toStringTag, { value: "Module" })), yl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5624
+ presenter: Jo
5625
+ }, Symbol.toStringTag, { value: "Module" })), Bl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5620
5626
  __proto__: null,
5621
- Form: Qo,
5622
- presenter: Zo
5623
- }, Symbol.toStringTag, { value: "Module" })), kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5624
- __proto__: null,
5625
- Form: el,
5626
- presenter: tl
5627
- }, Symbol.toStringTag, { value: "Module" })), Ot = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5627
+ Form: Xo,
5628
+ presenter: el
5629
+ }, Symbol.toStringTag, { value: "Module" })), Al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5628
5630
  __proto__: null,
5629
5631
  Form: al,
5630
- presenter: nl
5632
+ presenter: il
5633
+ }, Symbol.toStringTag, { value: "Module" })), Cl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5634
+ __proto__: null,
5635
+ Form: ol,
5636
+ presenter: ll
5637
+ }, Symbol.toStringTag, { value: "Module" })), $t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5638
+ __proto__: null,
5639
+ Form: sl,
5640
+ presenter: dl
5631
5641
  }, Symbol.toStringTag, { value: "Module" }));
5632
5642
  export {
5633
- oo as BikeForm,
5634
- al as BusinessCarForm,
5635
- el as CarForm,
5636
- yo as CaravanForm,
5637
- Fl as ComparisonFormFlow,
5643
+ mo as BikeForm,
5644
+ sl as BusinessCarForm,
5645
+ ol as CarForm,
5646
+ Ao as CaravanForm,
5647
+ Dl as ComparisonFormFlow,
5638
5648
  j as ComparisonName,
5639
- Po as HouseForm,
5640
- Lo as LegalForm,
5641
- Eo as LiabilityForm,
5642
- qo as LoanForm,
5643
- Go as MopedForm,
5644
- Qo as MotorForm,
5645
- zo as PackageForm,
5646
- co as PetForm,
5647
- Ao as TravelForm,
5648
- lo as bikePresenter,
5649
- nl as businessCarPresenter,
5650
- tl as carPresenter,
5651
- ko as caravanPresenter,
5652
- Oo as housePresenter,
5653
- To as legalPresenter,
5654
- Mo as liabilityPresenter,
5655
- Ho as loanPresenter,
5656
- Yo as mopedPresenter,
5657
- Zo as motorPresenter,
5658
- Do as packagePresenter,
5659
- fo as petPresenter,
5660
- Co as travelPresenter,
5661
- sl as useComparisonSubmit
5649
+ No as HouseForm,
5650
+ Ro as LegalForm,
5651
+ $o as LiabilityForm,
5652
+ Go as LoanForm,
5653
+ Xo as MopedForm,
5654
+ al as MotorForm,
5655
+ Io as PackageForm,
5656
+ go as PetForm,
5657
+ wo as TravelForm,
5658
+ co as bikePresenter,
5659
+ dl as businessCarPresenter,
5660
+ ll as carPresenter,
5661
+ Co as caravanPresenter,
5662
+ To as housePresenter,
5663
+ xo as legalPresenter,
5664
+ Fo as liabilityPresenter,
5665
+ Jo as loanPresenter,
5666
+ el as mopedPresenter,
5667
+ il as motorPresenter,
5668
+ qo as packagePresenter,
5669
+ ho as petPresenter,
5670
+ Po as travelPresenter,
5671
+ fl as useComparisonSubmit
5662
5672
  };