@vergelijkdirect/comparison-forms 2.0.0-rc.0 → 2.0.0-rc.2

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 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 ea, createSlots as We, provide as ta, inject as aa, nextTick as at, watch as ce, onMounted as ia, isRef as N, useAttrs as $t, mergeDefaults as ne, shallowRef as na, resolveDynamicComponent as oa } from "vue";
2
+ import { HomeService as la, DataValidationService as ra, DataService as sa, User as da } from "@vergelijkdirect/insurance-transmission-client";
3
+ import { object as te, string as ee, mixed as ua, number as ma } from "yup";
4
4
  import Ke from "dayjs";
5
- import di from "dayjs/plugin/customParseFormat";
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 ca from "dayjs/plugin/customParseFormat.js";
6
+ import { useFloating as fa, autoUpdate as va, offset as ba, flip as pa, shift as ga } from "@floating-ui/vue";
7
+ import { vMaska as ha } from "maska/vue";
8
+ import { isEqual as ya, cloneDeep as Re } from "es-toolkit";
9
+ import { reactivePick as Ft, refDebounced as ka, useAsyncState as vt } from "@vueuse/core";
10
+ import { useForwardProps as Sa, ComboboxRoot as Va, Label as Ba, ComboboxInput as Aa, ComboboxCancel as Ca, ComboboxTrigger as _a, ComboboxContent as Ea, ComboboxViewport as Ma, ComboboxVirtualizer as wa, ComboboxItem as bt, ComboboxItemIndicator as pt, ComboboxEmpty as Pa } 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 Oa = ["href", "target", "tabindex"], $a = {
13
13
  key: 1,
14
14
  class: "vd-btn-new__label"
15
- }, Pi = ["disabled", "tabindex"], Oi = {
15
+ }, Fa = ["disabled", "tabindex"], La = {
16
16
  key: 1,
17
17
  class: "vd-btn-new__label"
18
- }, $i = /* @__PURE__ */ q({
18
+ }, Na = /* @__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", $a, 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, Oa)) : (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", La, 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, Fa));
92
92
  }
93
- }), Fi = { class: "vd-field" }, Li = ["for"], Ti = {
93
+ }), Ta = { class: "vd-field" }, za = ["for"], Da = {
94
94
  key: 0,
95
95
  class: "vd-field__asterisk"
96
- }, Ni = {
96
+ }, Ra = {
97
97
  key: 1,
98
98
  class: "vd-field__popover"
99
- }, zi = ["id", "value", "type", "name", "inputmode", "placeholder", "disabled", "readonly", "autocomplete"], Di = {
99
+ }, xa = ["id", "value", "type", "name", "inputmode", "placeholder", "disabled", "readonly", "autocomplete"], ja = {
100
100
  key: 0,
101
101
  class: "vd-field__icon-and-loader"
102
- }, Ri = {
102
+ }, Ia = {
103
103
  key: 0,
104
104
  class: "vd-field__icon vd-field__icon--with-loader"
105
- }, xi = { key: 1 }, ji = {
105
+ }, qa = { key: 1 }, Ua = {
106
106
  key: 0,
107
107
  class: "vd-field__loader-circle"
108
- }, Ii = {
108
+ }, Ha = {
109
109
  key: 0,
110
110
  class: "vd-field__message vd-field__message--error"
111
- }, qi = {
111
+ }, Wa = {
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", Ta, [
150
150
  O("div", {
151
151
  onClick: h[0] || (h[0] = Le(() => {
152
152
  }, ["prevent"])),
@@ -161,10 +161,10 @@ 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", Da, "*")) : E("", !0)
165
165
  ])
166
- ], 8, Li)) : E("", !0),
167
- t(o).popover ? (c(), S("span", Ni, [
166
+ ], 8, za)) : E("", !0),
167
+ t(o).popover ? (c(), S("span", Ra, [
168
168
  R(g.$slots, "popover")
169
169
  ])) : E("", !0)
170
170
  ], 2),
@@ -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, xa), [
197
+ [t(ha), 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", ja, [
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", Ia, [
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", qa, [
209
+ e.loading ? (c(), S("div", Ua)) : 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", Ha, [
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", Wa, [
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
+ }), Ka = { class: "vd-field" }, Ga = ["for"], Ya = {
237
237
  key: 0,
238
238
  class: "vd-field__asterisk"
239
- }, Ki = {
239
+ }, Ja = {
240
240
  key: 1,
241
241
  class: "vd-field__popover"
242
- }, Gi = { class: "vd-field__wrapper" }, Yi = ["id", "name", "disabled"], Ji = {
242
+ }, Qa = { class: "vd-field__wrapper" }, Za = ["id", "name", "disabled"], Xa = {
243
243
  key: 0,
244
244
  value: "",
245
245
  disabled: "",
246
246
  selected: ""
247
- }, Qi = ["value", "selected", "disabled"], Zi = {
247
+ }, ei = ["value", "selected", "disabled"], ti = {
248
248
  key: 0,
249
249
  class: "vd-field__icon-and-loader"
250
- }, Xi = ["for"], ea = {
250
+ }, ai = ["for"], ii = {
251
251
  key: 0,
252
252
  class: "vd-field__message vd-field__message--error"
253
- }, ta = {
253
+ }, ni = {
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", Ka, [
287
287
  O("div", {
288
288
  class: x(["vd-field__label-wrapper", { "vd-field__label-wrapper--disabled": e.disabled }])
289
289
  }, [
@@ -296,14 +296,14 @@ 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", Ya, "*")) : E("", !0)
300
300
  ])
301
- ], 8, Hi)) : E("", !0),
302
- t(o).popover ? (c(), S("span", Ki, [
301
+ ], 8, Ga)) : E("", !0),
302
+ t(o).popover ? (c(), S("span", Ja, [
303
303
  R(g.$slots, "popover")
304
304
  ])) : E("", !0)
305
305
  ], 2),
306
- O("div", Gi, [
306
+ O("div", Qa, [
307
307
  lt(O("select", {
308
308
  id: t(d),
309
309
  "onUpdate:modelValue": h[0] || (h[0] = (_) => s.value = _),
@@ -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", Xa, I(e.placeholder), 1)) : E("", !0),
325
+ (c(!0), S(He, null, rt(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), [
330
+ }, I(_.title), 9, ei))), 128))
331
+ ], 42, Za), [
332
332
  [Qt, s.value]
333
333
  ]),
334
- e.loading ? (c(), S("div", Zi, [...h[1] || (h[1] = [
334
+ e.loading ? (c(), S("div", ti, [...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, ai))
344
344
  ]),
345
- p.value || t(o).errorMessage ? (c(), S("div", ea, [
345
+ p.value || t(o).errorMessage ? (c(), S("div", ii, [
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", ni, [
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 oi(e, a) {
361
+ return e === a || Number.isNaN(e) && Number.isNaN(a);
362
362
  }
363
363
  function Lt(e) {
364
364
  if (e == null) return "";
365
365
  if (typeof e == "string") return e;
366
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;
367
+ const a = String(e);
368
+ return a === "0" && Object.is(Number(e), -0) ? "-0" : a;
369
369
  }
370
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);
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
- function Tt(e) {
374
+ function Nt(e) {
375
375
  if (Array.isArray(e)) return e.map(st);
376
376
  if (typeof e == "symbol") return [e];
377
377
  e = Lt(e);
378
- const i = [], a = e.length;
379
- if (a === 0) return i;
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 li(e) {
400
400
  switch (typeof e) {
401
401
  case "number":
402
402
  case "symbol":
@@ -405,67 +405,67 @@ 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 ? li(a) && !Object.hasOwn(e, a) ? Se(e, Nt(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 = st(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 ri(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 ri(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
439
  function gt(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 si = /^(?:0|[1-9]\d*)$/;
443
+ function di(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 si.test(e);
451
451
  }
452
452
  }
453
- function ra(e) {
453
+ function ui(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 mi = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, ci = /^\w*$/;
457
+ function fi(e, a) {
458
+ return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || ui(e) ? !0 : typeof e == "string" && (ci.test(e) || !mi.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 vi = (e, a, i) => {
461
+ const n = e[a];
462
+ (!(Object.hasOwn(e, a) && oi(n, i)) || i === void 0 && !(a in e)) && (e[a] = i);
463
463
  };
464
- function ca(e, i, a, n) {
464
+ function bi(e, a, i, n) {
465
465
  if (e == null && !gt(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
+ fi(a, e) ? l = [a] : Array.isArray(a) ? l = a : l = Nt(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
471
  const m = st(l[s]);
@@ -474,32 +474,32 @@ function ca(e, i, a, n) {
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 : gt(f) ? f : di(l[s + 1]) ? [] : {};
478
478
  }
479
- ma(d, m, r), d = d[m];
479
+ vi(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 pi(e, a, i) {
484
+ return bi(e, a, () => i, () => {
485
485
  });
486
486
  }
487
- const va = {
487
+ const gi = {
488
488
  key: 0,
489
489
  class: "vd-field__asterisk"
490
- }, ba = {
490
+ }, hi = {
491
491
  key: 1,
492
492
  class: "vd-field__popover"
493
- }, pa = { class: "vd-field__wrapper" }, ga = {
493
+ }, yi = { class: "vd-field__wrapper" }, ki = {
494
494
  key: 1,
495
495
  class: "vd-field__loader-circle"
496
- }, ha = {
496
+ }, Si = {
497
497
  key: 0,
498
498
  class: "vd-field__message vd-field__message--error"
499
- }, ya = {
499
+ }, Vi = {
500
500
  key: 1,
501
501
  class: "vd-field__message vd-field__message--information"
502
- }, Nt = /* @__PURE__ */ q({
502
+ }, Tt = /* @__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(
536
+ setup(e, { emit: a }) {
537
+ const i = e, n = Sa(
538
538
  Ft(
539
- a,
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) : ya(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(Va), 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(Ba), {
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", gi, "*")) : 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", hi, [
586
586
  R(b.$slots, "popover")
587
587
  ])) : E("", !0)
588
588
  ], 2),
589
- O("div", pa, [
590
- u(t(Si), {
589
+ O("div", yi, [
590
+ u(t(Aa), {
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", ki)) : e.clearable && _.value ? (c(), H(t(Ca), {
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(_a), {
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(Ea), { class: "vd-combobox" }, {
636
636
  default: v(() => [
637
- u(t(Ci), { class: "vd-combobox__list" }, {
637
+ u(t(Ma), { class: "vd-combobox__list" }, {
638
638
  default: v(() => [
639
- e.virtual ? (c(), H(t(_i), {
639
+ e.virtual ? (c(), H(t(wa), {
640
640
  key: 0,
641
641
  options: e.options,
642
642
  "estimate-size": e.estimateSize,
@@ -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(Pa), { 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", Si, [
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", Vi, [
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
+ }), Bi = { class: "vd-radio-field" }, Ai = { class: "vd-radio-field__input" }, Ci = ["id", "disabled", "name", "value"], _i = ["for"], Ei = /* @__PURE__ */ q({
722
722
  __name: "VdRadio",
723
723
  props: /* @__PURE__ */ Z({
724
724
  name: {},
@@ -733,14 +733,14 @@ 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, [
742
+ return (r, f) => (c(), S("div", Bi, [
743
+ O("div", Ai, [
744
744
  lt(O("input", {
745
745
  id: t(d),
746
746
  "onUpdate:modelValue": f[0] || (f[0] = (p) => n.value = p),
@@ -754,7 +754,7 @@ const va = {
754
754
  "vd-radio--green": e.green
755
755
  }]),
756
756
  type: "radio"
757
- }, null, 42, Va), [
757
+ }, null, 42, Ci), [
758
758
  [Zt, n.value]
759
759
  ])
760
760
  ]),
@@ -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, _i)) : E("", !0),
770
770
  R(r.$slots, "popover")
771
771
  ]));
772
772
  }
773
- }), Ca = ["disabled"], _a = { class: "vd-field__label" }, Ea = {
773
+ }), Mi = ["disabled"], wi = { class: "vd-field__label" }, Pi = {
774
774
  key: 0,
775
775
  class: "vd-field__asterisk"
776
- }, Ma = {
776
+ }, Oi = {
777
777
  key: 0,
778
778
  class: "vd-field__popover"
779
- }, wa = {
779
+ }, $i = {
780
780
  key: 1,
781
781
  class: "vd-field__message vd-field__message--error"
782
- }, Pa = {
782
+ }, Fi = {
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", wi, [
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", Pi, "*")) : E("", !0)
824
824
  ]),
825
- t(o).popover ? (c(), S("span", Ma, [
825
+ t(o).popover ? (c(), S("span", Oi, [
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, rt(e.options, (y) => (c(), H(Ei, {
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", $i, [
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", Fi, [
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, Mi));
864
864
  }
865
- }), Oa = { class: "vd-notification__content" }, $a = {
865
+ }), Li = { class: "vd-notification__content" }, Ni = {
866
866
  key: 0,
867
867
  class: "vd-notification__title"
868
- }, Fa = /* @__PURE__ */ q({
868
+ }, Ti = /* @__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", Li, [
894
+ e.title ? (c(), S("span", Ni, 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
+ }), zi = { class: "vd-popover__title" }, Di = {
902
902
  key: 0,
903
903
  class: "vd-popover__title-icon"
904
- }, Na = { key: 1 }, za = /* @__PURE__ */ q({
904
+ }, Ri = { key: 1 }, xi = /* @__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", zi, [
920
+ e.icon ? (c(), S("div", Di, [
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", Ri, 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
+ }), ji = ["innerHTML"], Ii = /* @__PURE__ */ q({
937
937
  __name: "VdPopoverTooltip",
938
938
  props: {
939
939
  content: { default: () => ({
@@ -946,9 +946,9 @@ 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
953
  return (l, o) => (c(), H(Xt, null, {
954
954
  default: v(() => [
@@ -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(xi, {
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, ji)) : E("", !0)
974
974
  ], 34)
975
975
  ]),
976
976
  _: 1
977
977
  }));
978
978
  }
979
- }), xa = { key: 1 }, ja = /* @__PURE__ */ q({
979
+ }), qi = { key: 1 }, Ui = /* @__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", qi, 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 } = fa(i, n, {
1028
+ placement: a.position,
1029
1029
  middleware: [
1030
- ci(i.offSet),
1031
- fi({
1032
- mainAxis: !i.fixed
1030
+ ba(a.offSet),
1031
+ pa({
1032
+ mainAxis: !a.fixed
1033
1033
  }),
1034
- vi({
1034
+ ga({
1035
1035
  crossAxis: !1,
1036
1036
  padding: 10
1037
1037
  })
1038
1038
  ],
1039
- whileElementsMounted: mi
1039
+ whileElementsMounted: va
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(Ui, {
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: ea(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(Ii, {
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
+ }), Hi = (e, a) => {
1104
+ const i = e.__vccOpts || e;
1105
+ for (const [n, l] of a)
1106
+ i[n] = l;
1107
+ return i;
1108
+ }, Wi = {}, Ki = { class: "vd-form__row" };
1109
+ function Gi(e, a) {
1110
+ return c(), S("div", Ki, [
1111
1111
  R(e.$slots, "default")
1112
1112
  ]);
1113
1113
  }
1114
- const zt = /* @__PURE__ */ Ia(qa, [["render", Ha]]), L = /* @__PURE__ */ q({
1114
+ const zt = /* @__PURE__ */ Hi(Wi, [["render", Gi]]), 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
+ }), Yi = {
1134
1134
  key: 0,
1135
1135
  class: "vd-form__banner"
1136
- }, Ka = ["innerHTML"], Ga = {
1136
+ }, Ji = ["innerHTML"], Qi = {
1137
1137
  key: 1,
1138
1138
  class: "vd-form__header"
1139
- }, Ya = {
1139
+ }, Zi = {
1140
1140
  key: 0,
1141
1141
  class: "vd-form__title"
1142
- }, Ja = {
1142
+ }, Xi = {
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,15 +1172,15 @@ 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", Yi, [
1176
1176
  R(s.$slots, "banner", {}, () => [
1177
- O("span", { innerHTML: e.banner }, null, 8, Ka)
1177
+ O("span", { innerHTML: e.banner }, null, 8, Ji)
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", Qi, [
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", Zi, I(e.title), 1)) : E("", !0),
1183
+ e.description ? (c(), S("p", Xi, I(e.description), 1)) : E("", !0)
1184
1184
  ])
1185
1185
  ])) : E("", !0),
1186
1186
  u(zt, null, {
@@ -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(Na, {
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
+ }), en = /* @__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;
1303
+ }), tn = (e) => e.replace(/\["(\d+)"\]/g, "[$1]"), et = (e, a) => `${e}${a}`, an = (e) => (e.inner || []).reduce((a, i) => {
1304
+ const n = tn(i.path);
1305
+ return a[n] || (a[n] = i.message), a;
1306
1306
  }, {}), ht = (e) => {
1307
1307
  if (!e.inner)
1308
1308
  throw e;
1309
- return Xa(e);
1310
- }, en = {
1309
+ return an(e);
1310
+ }, nn = {
1311
1311
  isValidating: !1
1312
- }, tn = {
1312
+ }, on = {
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
+ }, Dt = Symbol("useValidator"), le = (e, a, i) => {
1317
+ const n = { ...on, ...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,16 +1333,16 @@ 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
+ pi(o.value, k, C);
1337
+ }, T = (k, C) => {
1338
1338
  C === "blur" && re(k);
1339
1339
  }, z = (k, C) => {
1340
- C === "change" && it(() => re(k));
1340
+ C === "change" && at(() => re(k));
1341
1341
  }, $ = (k, C) => {
1342
- C === "input" && it(() => re(k));
1342
+ C === "input" && at(() => re(k));
1343
1343
  }, P = (k, C) => {
1344
1344
  const X = (C == null ? void 0 : C.validateAt) ?? n.validateAt;
1345
- g(k, en);
1345
+ g(k, nn);
1346
1346
  const me = f(k), pe = p(k, X), Xe = y(k), ft = V(k);
1347
1347
  return [me, pe, Xe, ft];
1348
1348
  }, b = (k) => {
@@ -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 ta(Dt, ct), ct;
1467
+ }, ln = () => {
1468
+ const e = aa(Dt);
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
+ }, rn = { class: "vd-field" }, sn = {
1475
1475
  key: 0,
1476
1476
  class: "vd-field__message vd-field__message--error"
1477
- }, ln = {
1477
+ }, dn = {
1478
1478
  key: 1,
1479
1479
  class: "vd-field__message vd-field__message--information"
1480
1480
  }, Ce = /* @__PURE__ */ q({
@@ -1483,26 +1483,26 @@ 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
+ } = ln(), [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`), $ = () => at(() => 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
+ }), ia(() => {
1504
1504
  f.value && y.value && h();
1505
- }), (U, K) => (c(), S("div", nn, [
1505
+ }), (U, K) => (c(), S("div", rn, [
1506
1506
  u(zt, null, {
1507
1507
  default: v(() => [
1508
1508
  u(L, {
@@ -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(en, {
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,18 +1568,51 @@ 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", sn, [
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", dn, [
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(ca);
1582
+ function Rt() {
1583
+ return Ke().startOf("day");
1584
+ }
1585
+ function un() {
1586
+ return Rt().year();
1587
+ }
1588
+ function dt(e, a) {
1589
+ const i = Ke(e ?? "", a, !0);
1590
+ return i.isValid() ? i.startOf("day") : null;
1591
+ }
1592
+ function mn(e, a) {
1593
+ const i = Rt();
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 cn = [
1601
+ J.FamilyWithChildren,
1602
+ J.FamilyWithoutChildren
1603
+ ];
1604
+ function it(e) {
1605
+ return cn.includes(e);
1606
+ }
1607
+ const fn = new sa(), vn = new ra(), bn = new la();
1608
+ function Ge() {
1609
+ return {
1610
+ dataService: fn,
1611
+ dataValidationService: vn,
1612
+ homeService: bn
1613
+ };
1614
+ }
1615
+ const pn = (e) => ({
1583
1616
  zipCode: e.ZipCode,
1584
1617
  houseNumber: String(e.HouseNumber),
1585
1618
  houseNumberAddition: e.HouseNumberAddition,
@@ -1593,40 +1626,40 @@ const zt = /* @__PURE__ */ Ia(qa, [["render", Ha]]), L = /* @__PURE__ */ q({
1593
1626
  function Vt(e) {
1594
1627
  return e.replace(/\s/g, "").toUpperCase();
1595
1628
  }
1596
- const Rt = "NO_ADDITION";
1629
+ const xt = "NO_ADDITION";
1597
1630
  function ye(e) {
1598
- return e === Rt ? "" : e.replace("-", "");
1631
+ return e === xt ? "" : e.replace("-", "");
1599
1632
  }
1600
- const sn = (e) => e instanceof Error, xt = (e) => {
1601
- if (sn(e))
1633
+ const gn = (e) => e instanceof Error, jt = (e) => {
1634
+ if (gn(e))
1602
1635
  throw e;
1603
1636
  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)
1637
+ }, It = (e, a, i) => Ge().dataValidationService.validateZipCode(e, a, i).then((n) => n).catch(jt), hn = (e, a) => Ge().homeService.getAddition({ zipcode: e, houseNumber: a }).then((i) => i ?? []).catch(jt), yn = async (e, a) => {
1638
+ const [i, n] = await Promise.all([
1639
+ It(e, a),
1640
+ hn(e, a)
1608
1641
  ]);
1609
- return !a && !(n != null && n.length) ? null : {
1610
- validWithoutAddition: !!a,
1611
- template: a,
1642
+ return !i && !(n != null && n.length) ? null : {
1643
+ validWithoutAddition: !!i,
1644
+ template: i,
1612
1645
  additions: n ?? []
1613
1646
  };
1614
- }, mn = (e) => {
1615
- const i = e.additions.map((a) => ({
1616
- title: a,
1617
- value: ye(a)
1647
+ }, kn = (e) => {
1648
+ const a = e.additions.map((i) => ({
1649
+ title: i,
1650
+ value: ye(i)
1618
1651
  }));
1619
- return e.validWithoutAddition && i.length ? [{ title: "Geen toevoeging", value: Rt }, ...i] : i;
1652
+ return e.validWithoutAddition && a.length ? [{ title: "Geen toevoeging", value: xt }, ...a] : a;
1620
1653
  }, _e = (e) => ({
1621
1654
  zipCode: "",
1622
1655
  houseNumber: "",
1623
1656
  houseNumberAddition: ""
1624
1657
  }), Ee = (e = "address") => {
1625
- const i = Y(null), a = Y([]), n = F(() => {
1658
+ const a = Y(null), i = Y([]), n = F(() => {
1626
1659
  var r, f;
1627
1660
  return {
1628
- street: ((r = i.value) == null ? void 0 : r.street) ?? "",
1629
- city: ((f = i.value) == null ? void 0 : f.city) ?? ""
1661
+ street: ((r = a.value) == null ? void 0 : r.street) ?? "",
1662
+ city: ((f = a.value) == null ? void 0 : f.city) ?? ""
1630
1663
  };
1631
1664
  });
1632
1665
  let l = 0, o = null;
@@ -1635,16 +1668,16 @@ const sn = (e) => e instanceof Error, xt = (e) => {
1635
1668
  try {
1636
1669
  let B = (o == null ? void 0 : o.key) === V ? o : null;
1637
1670
  if (!B) {
1638
- const h = await un(f, p);
1671
+ const h = await yn(f, p);
1639
1672
  if (!h)
1640
1673
  return { status: "not-found", options: [], address: null };
1641
1674
  B = o = { key: V, verdict: h };
1642
1675
  }
1643
- const g = mn(B.verdict);
1676
+ const g = kn(B.verdict);
1644
1677
  if (B.verdict.additions.length && !r.houseNumberAddition)
1645
1678
  return { status: "needs-addition", options: g, address: null };
1646
1679
  if (!B.verdict.template) {
1647
- const h = await jt(f, p, y);
1680
+ const h = await It(f, p, y);
1648
1681
  if (!h)
1649
1682
  return { status: "not-found", options: [], address: null };
1650
1683
  B.verdict.template = h;
@@ -1659,7 +1692,7 @@ const sn = (e) => e instanceof Error, xt = (e) => {
1659
1692
  }
1660
1693
  }, s = async (r) => {
1661
1694
  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 };
1695
+ return y || (i.value = p.options, a.value = p.address ? pn(p.address) : null), { ...p, stale: y };
1663
1696
  }, m = te({
1664
1697
  zipCode: ee().required("Vul je postcode in").matches(yt, "Postcode is incorrect"),
1665
1698
  houseNumber: ee().required("Huisnummer is verplicht").matches(kt, "Huisnummer is incorrect"),
@@ -1674,8 +1707,8 @@ const sn = (e) => e instanceof Error, xt = (e) => {
1674
1707
  message: St[V]
1675
1708
  }) : f.createError({ message: St[V] });
1676
1709
  });
1677
- return { path: e, addressSchema: m, resolvedAddress: i, resolvedFields: n, additionOptions: a };
1678
- }, dt = {
1710
+ return { path: e, addressSchema: m, resolvedAddress: a, resolvedFields: n, additionOptions: i };
1711
+ }, ut = {
1679
1712
  [j.Car]: {
1680
1713
  apiTypes: ["Car", "Van"],
1681
1714
  dutch: "auto",
@@ -1696,19 +1729,19 @@ const sn = (e) => e instanceof Error, xt = (e) => {
1696
1729
  dutch: "caravan",
1697
1730
  icon: "fa-caravan-alt"
1698
1731
  }
1699
- }, cn = Object.fromEntries(
1700
- Object.values(dt).flatMap(
1701
- ({ apiTypes: e, icon: i }) => e.map((a) => [a.toLowerCase(), i])
1732
+ }, Sn = Object.fromEntries(
1733
+ Object.values(ut).flatMap(
1734
+ ({ apiTypes: e, icon: a }) => e.map((i) => [i.toLowerCase(), a])
1702
1735
  )
1703
- ), fn = {
1736
+ ), Vn = {
1704
1737
  brommobiel: "fa-car-side",
1705
1738
  "speed pedelec": "fa-bicycle"
1706
- }, vn = (e) => !!(e != null && e.Brand) && !!e.Model && !!e.ManufacturingYear, bn = (e) => {
1739
+ }, Bn = (e) => !!(e != null && e.Brand) && !!e.Model && !!e.ManufacturingYear, An = (e) => {
1707
1740
  if (!e)
1708
1741
  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 = [
1742
+ const a = String(e.Model ?? "").toLowerCase().trim(), i = String(e.VehicleType ?? "").toLowerCase();
1743
+ return Vn[a] ?? Sn[i] ?? "";
1744
+ }, Cn = (e) => e ? `${e.Brand} ${e.Model} (${e.ManufacturingYear})` : "", Ie = 6, qt = [
1712
1745
  "@@-##-@@",
1713
1746
  "##-##-@@",
1714
1747
  "##-@@-@@",
@@ -1727,18 +1760,18 @@ const sn = (e) => e instanceof Error, xt = (e) => {
1727
1760
  function Oe(e) {
1728
1761
  return e.replace(/[\s\\-]/g, "");
1729
1762
  }
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)
1763
+ const Bt = "*".repeat(Ie), _n = qt.map((e) => e.replace(/-/g, ""));
1764
+ function En(e) {
1765
+ const a = Oe(e).slice(0, Ie);
1766
+ if (a.length < Ie)
1734
1767
  return Bt;
1735
- const a = [...i].map((l) => /[0-9]/.test(l) ? "#" : "@").join(""), n = gn.indexOf(a);
1736
- return n === -1 ? Bt : It[n];
1768
+ const i = [...a].map((l) => /[0-9]/.test(l) ? "#" : "@").join(""), n = _n.indexOf(i);
1769
+ return n === -1 ? Bt : qt[n];
1737
1770
  }
1738
- const yn = {
1771
+ const Mn = {
1739
1772
  key: 0,
1740
1773
  class: "vd-input-license-plate__loading-information"
1741
- }, kn = ["src"], Ye = /* @__PURE__ */ q({
1774
+ }, wn = ["src"], Ye = /* @__PURE__ */ q({
1742
1775
  inheritAttrs: !1,
1743
1776
  __name: "VdLicensePlate",
1744
1777
  props: /* @__PURE__ */ Z({
@@ -1754,8 +1787,8 @@ const yn = {
1754
1787
  vehicleDataModifiers: {}
1755
1788
  }),
1756
1789
  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({
1790
+ setup(e, { emit: a }) {
1791
+ const i = { mask: En }, n = e, l = de(e, "modelValue"), o = de(e, "vehicleData"), d = a, s = $t(), m = be(), r = F({
1759
1792
  get: () => l.value ?? "",
1760
1793
  set: (g) => {
1761
1794
  l.value = g, d("input", g);
@@ -1765,10 +1798,10 @@ const yn = {
1765
1798
  o.value && !f(g, o.value.LicensePlate) && (o.value = null);
1766
1799
  });
1767
1800
  const p = F(
1768
- () => vn(o.value) ? o.value : null
1801
+ () => Bn(o.value) ? o.value : null
1769
1802
  ), y = F(
1770
1803
  () => n.loading || !!p.value && !n.errorMessage
1771
- ), V = F(() => bn(p.value)), B = F(() => pn(p.value));
1804
+ ), V = F(() => An(p.value)), B = F(() => Cn(p.value));
1772
1805
  return (g, h) => (c(), H(Ae, M({
1773
1806
  capitalize: "",
1774
1807
  autocomplete: ""
@@ -1780,7 +1813,7 @@ const yn = {
1780
1813
  required: e.required,
1781
1814
  "error-message": e.errorMessage || null,
1782
1815
  loading: e.loading,
1783
- mask: a,
1816
+ mask: i,
1784
1817
  class: "vd-input-license-plate"
1785
1818
  }), We({ _: 2 }, [
1786
1819
  t(m).label ? {
@@ -1800,7 +1833,7 @@ const yn = {
1800
1833
  y.value ? {
1801
1834
  name: "information",
1802
1835
  fn: v(() => [
1803
- e.loading ? (c(), S("div", yn, [...h[1] || (h[1] = [
1836
+ e.loading ? (c(), S("div", Mn, [...h[1] || (h[1] = [
1804
1837
  O("i", { class: "fas fa-circle-notch vd-input-license-plate__loading-icon" }, null, -1),
1805
1838
  G(" Voertuig gegevens ophalen... ", -1)
1806
1839
  ])])) : p.value ? (c(), S(He, { key: 1 }, [
@@ -1809,7 +1842,7 @@ const yn = {
1809
1842
  src: `https://d12bmfj3oyxu0t.cloudfront.net/vergelijkdirect/icons/${V.value}.svg`,
1810
1843
  class: "vd-field__svg-message-icon",
1811
1844
  alt: "vehicle-icon"
1812
- }, null, 8, kn)) : E("", !0),
1845
+ }, null, 8, wn)) : E("", !0),
1813
1846
  G(" " + I(B.value), 1)
1814
1847
  ], 64)) : E("", !0)
1815
1848
  ]),
@@ -1817,41 +1850,41 @@ const yn = {
1817
1850
  } : void 0
1818
1851
  ]), 1040, ["modelValue", "name", "label", "required", "error-message", "loading"]));
1819
1852
  }
1820
- }), Fe = /* @__PURE__ */ new Map(), qt = (e, i) => `${i}:${e}`, Sn = {
1821
- "wrong-type": (e) => `Het ingevoerde kenteken is geen ${dt[e].dutch}`,
1853
+ }), Fe = /* @__PURE__ */ new Map(), Ut = (e, a) => `${a}:${e}`, Pn = {
1854
+ "wrong-type": (e) => `Het ingevoerde kenteken is geen ${ut[e].dutch}`,
1822
1855
  unknown: () => "Voertuig onbekend - Voer ander kenteken in of neem contact op",
1823
1856
  "not-found": () => "Kenteken onbekend",
1824
1857
  error: () => "Kenteken is incorrect"
1825
- }, Vn = async (e, i) => {
1858
+ }, On = async (e, a) => {
1826
1859
  try {
1827
- const a = await Ge().dataService.findVehicle(e, i);
1828
- if (Array.isArray(a) || !a || !Object.keys(a).length)
1860
+ const i = await Ge().dataService.findVehicle(e, a);
1861
+ if (Array.isArray(i) || !i || !Object.keys(i).length)
1829
1862
  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" };
1863
+ const n = i;
1864
+ return n.VehicleType ? ut[a].apiTypes.includes(n.VehicleType) ? { status: "found", data: n } : { status: "wrong-type" } : { status: "unknown" };
1865
+ } catch (i) {
1866
+ return console.error("Error on ITC findVehicle", i), { status: "error" };
1834
1867
  }
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(
1868
+ }, $n = (e, a) => {
1869
+ const i = Ut(e, a);
1870
+ let n = Fe.get(i);
1871
+ return n || (n = On(e, a), Fe.set(i, n), n.then(
1839
1872
  ({ status: l }) => {
1840
- l === "error" && Fe.delete(a);
1873
+ l === "error" && Fe.delete(i);
1841
1874
  },
1842
- () => Fe.delete(a)
1875
+ () => Fe.delete(i)
1843
1876
  )), n;
1844
- }, Je = (e, i = {}) => {
1877
+ }, Je = (e, a = {}) => {
1845
1878
  var d;
1846
- const a = Y(i.initialData ?? null);
1879
+ const i = Y(a.initialData ?? null);
1847
1880
  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 })
1881
+ (d = a.initialData) != null && d.LicensePlate && Fe.set(
1882
+ Ut(Oe(a.initialData.LicensePlate), e),
1883
+ Promise.resolve({ status: "found", data: a.initialData })
1851
1884
  );
1852
1885
  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;
1886
+ const m = Oe(s), r = ++n, f = await $n(m, e);
1887
+ return r === n && (i.value = f.status === "found" ? f.data : null), f;
1855
1888
  }, o = ee().required("Dit veld is verplicht").test("license-plate-lookup", async (s, m) => {
1856
1889
  if (!s)
1857
1890
  return !0;
@@ -1859,15 +1892,15 @@ const yn = {
1859
1892
  if (r.length < Ie)
1860
1893
  return m.createError({ message: "Kenteken is incorrect" });
1861
1894
  const { status: f } = await l(r);
1862
- return f === "found" || m.createError({ message: Sn[f](e) });
1895
+ return f === "found" || m.createError({ message: Pn[f](e) });
1863
1896
  });
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,
1897
+ return { vehicleData: i, licensePlateSchema: o };
1898
+ }, Fn = (e) => /^\d{8}$/.test(e), Ln = (e) => Fn(e) ? { companyName: "", kvkNumber: e } : { companyName: e, kvkNumber: "" }, Nn = "bezoekadres", Tn = (e) => {
1899
+ var a, i, n;
1900
+ return (n = (i = (a = e._embedded) == null ? void 0 : a.hoofdvestiging) == null ? void 0 : i.adressen) == null ? void 0 : n.find((l) => l.type === Nn);
1901
+ }, zn = (e) => {
1902
+ const a = Tn(e), {
1903
+ huisnummer: i = 0,
1871
1904
  huisletter: n = "",
1872
1905
  huisnummerToevoeging: l = "",
1873
1906
  toevoegingAdres: o = "",
@@ -1875,19 +1908,19 @@ const yn = {
1875
1908
  postcode: s = "",
1876
1909
  straatnaam: m = "",
1877
1910
  volledigAdres: r = ""
1878
- } = i ?? {};
1911
+ } = a ?? {};
1879
1912
  return {
1880
- houseNumber: a,
1913
+ houseNumber: i,
1881
1914
  houseNumberAddition: n || l || o,
1882
1915
  city: d,
1883
1916
  zipCode: s,
1884
1917
  streetName: m,
1885
1918
  fullAddress: r,
1886
- hasVisitingAddress: !!i
1919
+ hasVisitingAddress: !!a
1887
1920
  };
1888
- }, wn = (e = []) => {
1921
+ }, Dn = (e = []) => {
1889
1922
  var l;
1890
- const [i, a, n] = e.reduce(
1923
+ const [a, i, n] = e.reduce(
1891
1924
  ([o, d, s], m) => {
1892
1925
  const r = {
1893
1926
  isMainActivity: m.indHoofdactiviteit,
@@ -1899,64 +1932,64 @@ const yn = {
1899
1932
  [[], [], []]
1900
1933
  );
1901
1934
  return {
1902
- mainSBI: ((l = i[0]) == null ? void 0 : l.sbiCode) ?? "",
1935
+ mainSBI: ((l = a[0]) == null ? void 0 : l.sbiCode) ?? "",
1903
1936
  otherSBI: n,
1904
- firstSBIs: i,
1905
- secondSBIs: a
1937
+ firstSBIs: a,
1938
+ secondSBIs: i
1906
1939
  };
1907
- }, Pn = (e) => {
1908
- var i, a, n, l;
1940
+ }, Rn = (e) => {
1941
+ var a, i, n, l;
1909
1942
  return {
1910
1943
  kvkNumber: e.kvkNummer,
1911
1944
  name: e.naam,
1912
- city: ((a = (i = e.adres) == null ? void 0 : i.binnenlandsAdres) == null ? void 0 : a.plaats) ?? "",
1945
+ city: ((i = (a = e.adres) == null ? void 0 : a.binnenlandsAdres) == null ? void 0 : i.plaats) ?? "",
1913
1946
  street: ((l = (n = e.adres) == null ? void 0 : n.binnenlandsAdres) == null ? void 0 : l.straatnaam) ?? ""
1914
1947
  };
1915
- }, On = (e) => {
1916
- var i, a;
1948
+ }, xn = (e) => {
1949
+ var a, i;
1917
1950
  return {
1918
1951
  name: e.naam,
1919
1952
  kvkNumber: e.kvkNummer,
1920
1953
  industry: e.sbiIndustryId,
1921
1954
  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)
1955
+ legalForm: ((i = (a = e._embedded) == null ? void 0 : a.eigenaar) == null ? void 0 : i.rechtsvorm) ?? "",
1956
+ ...zn(e),
1957
+ ...Dn(e.sbiActiviteiten)
1925
1958
  };
1926
- }, $n = 30, Fn = ["hoofdvestiging", "nevenvestiging"], Ln = "IPD5200", Tn = (e) => {
1959
+ }, jn = 30, In = ["hoofdvestiging", "nevenvestiging"], qn = "IPD5200", Un = (e) => {
1927
1960
  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")
1961
+ const a = e, i = (l = (n = a == null ? void 0 : a.response) == null ? void 0 : n.data) == null ? void 0 : l.fout;
1962
+ if (Array.isArray(i))
1963
+ return i;
1964
+ if (Array.isArray(a == null ? void 0 : a.fout))
1965
+ return a.fout;
1966
+ if (typeof (a == null ? void 0 : a.message) == "string")
1934
1967
  try {
1935
- const o = JSON.parse(i.message);
1968
+ const o = JSON.parse(a.message);
1936
1969
  if (Array.isArray(o == null ? void 0 : o.fout))
1937
1970
  return o.fout;
1938
1971
  } catch {
1939
1972
  }
1940
- }, Nn = (e) => {
1941
- var i;
1942
- return ((i = Tn(e)) == null ? void 0 : i.some((a) => a.code === Ln)) ?? !1;
1943
- }, zn = () => {
1973
+ }, Hn = (e) => {
1974
+ var a;
1975
+ return ((a = Un(e)) == null ? void 0 : a.some((i) => i.code === qn)) ?? !1;
1976
+ }, Wn = () => {
1944
1977
  const { dataService: e } = Ge();
1945
1978
  return { search: async (n) => {
1946
1979
  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);
1980
+ const l = await e.searchBusinessInfoV2(Ln(n), 1, jn);
1981
+ return ((l == null ? void 0 : l.resultaten) ?? []).filter((d) => In.includes(d.type)).map(Rn);
1949
1982
  } catch (l) {
1950
1983
  const o = await l;
1951
- if (Nn(o))
1984
+ if (Hn(o))
1952
1985
  return [];
1953
1986
  throw o;
1954
1987
  }
1955
1988
  }, getDetails: async (n) => {
1956
1989
  const l = await e.getProfileInfo(n);
1957
- return On(l);
1990
+ return xn(l);
1958
1991
  } };
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({
1992
+ }, Kn = { class: "vd-combobox__multiline" }, Gn = { class: "vd-combobox__title" }, Yn = { class: "vd-combobox__subtext" }, Jn = { class: "vd-combobox__subtext" }, Qn = 400, At = 3, Zn = "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.", Xn = "Typ je bedrijfsnaam of KvK-nummer", eo = "Aan het zoeken…", Ct = "Er ging iets mis bij het ophalen van de gegevens. Probeer het later opnieuw.", to = /* @__PURE__ */ q({
1960
1993
  inheritAttrs: !1,
1961
1994
  __name: "VdCompanySelect",
1962
1995
  props: /* @__PURE__ */ Z({
@@ -1970,8 +2003,8 @@ const yn = {
1970
2003
  modelModifiers: {}
1971
2004
  }),
1972
2005
  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), {
2006
+ setup(e, { emit: a }) {
2007
+ const i = a, n = $t(), l = be(), o = de(e, "modelValue"), { search: d, getDetails: s } = Wn(), m = Y(), r = Y(), f = Y(), p = Y(""), y = ka(p, Qn, { maxWait: 2e3 }), V = Y(!0), {
1975
2008
  state: B,
1976
2009
  isLoading: g,
1977
2010
  execute: h
@@ -1987,14 +2020,14 @@ const yn = {
1987
2020
  { immediate: !1, resetOnExecute: !1 }
1988
2021
  ), {
1989
2022
  isLoading: _,
1990
- execute: N
2023
+ execute: T
1991
2024
  } = vt(
1992
2025
  async (D) => {
1993
2026
  try {
1994
2027
  const Q = await s(D);
1995
- return o.value = Q, a("error", null), Q;
2028
+ return o.value = Q, i("error", null), Q;
1996
2029
  } catch (Q) {
1997
- throw o.value = null, f.value = void 0, m.value = void 0, a("error", Ct), Q;
2030
+ throw o.value = null, f.value = void 0, m.value = void 0, i("error", Ct), Q;
1998
2031
  }
1999
2032
  },
2000
2033
  null,
@@ -2005,19 +2038,19 @@ const yn = {
2005
2038
  }), U = F(() => {
2006
2039
  switch ($.value) {
2007
2040
  case "searching":
2008
- return Hn;
2041
+ return eo;
2009
2042
  case "error":
2010
2043
  return Ct;
2011
2044
  case "no-results":
2012
- return qn;
2045
+ return Zn;
2013
2046
  default:
2014
- return Un;
2047
+ return Xn;
2015
2048
  }
2016
2049
  }), K = (D) => {
2017
2050
  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);
2051
+ f.value = D, V.value = !0, D.kvkNumber !== ((Q = o.value) == null ? void 0 : Q.kvkNumber) ? T(0, D.kvkNumber) : i("error", null);
2019
2052
  }, re = (D) => {
2020
- a("blur", D);
2053
+ i("blur", D);
2021
2054
  }, Me = (D) => {
2022
2055
  p.value = D.trim(), V.value = !1;
2023
2056
  }, we = (D) => {
@@ -2036,7 +2069,7 @@ const yn = {
2036
2069
  D && D.length >= At && h(0, D);
2037
2070
  }), ce(o, (D) => {
2038
2071
  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), {
2072
+ }, { immediate: !0 }), (D, Q) => (c(), H(Tt, M(t(n), {
2040
2073
  modelValue: m.value,
2041
2074
  "onUpdate:modelValue": Q[0] || (Q[0] = (ue) => m.value = ue),
2042
2075
  open: r.value,
@@ -2062,10 +2095,10 @@ const yn = {
2062
2095
  onSearch: Me
2063
2096
  }), We({
2064
2097
  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)
2098
+ O("div", Kn, [
2099
+ O("div", Gn, I(ue.name), 1),
2100
+ O("span", Yn, "Kvk: " + I(ue.kvkNumber), 1),
2101
+ O("span", Jn, I(ue.city) + ", " + I(ue.street), 1)
2069
2102
  ])
2070
2103
  ]),
2071
2104
  _: 2
@@ -2086,7 +2119,7 @@ const yn = {
2086
2119
  } : void 0
2087
2120
  ]), 1040, ["modelValue", "open", "name", "label", "placeholder", "options", "loading", "verified", "disabled", "no-results-text", "error-message", "info-message"]));
2088
2121
  }
2089
- }), Kn = (e = "Bedrijfsnaam of KVK-nummer is verplicht") => ri().nullable().required(e).test("has-kvk-number", e, (i) => !!(i != null && i.kvkNumber)), ie = {
2122
+ }), ao = (e = "Bedrijfsnaam of KVK-nummer is verplicht") => ua().nullable().required(e).test("has-kvk-number", e, (a) => !!(a != null && a.kvkNumber)), ae = {
2090
2123
  title: "",
2091
2124
  description: "",
2092
2125
  banner: "",
@@ -2095,51 +2128,25 @@ const yn = {
2095
2128
  flat: !1,
2096
2129
  fullWidth: !1,
2097
2130
  submitLabel: "Vergelijken"
2098
- }, Gn = Object.keys(ie);
2099
- function ae(e) {
2100
- return Ft(e, ...Gn);
2131
+ }, io = Object.keys(ae);
2132
+ function ie(e) {
2133
+ return Ft(e, ...io);
2101
2134
  }
2102
- const Yn = { min: 18, max: 99 }, Te = "DD-MM-YYYY", Jn = [
2135
+ const no = { min: 18, max: 99 }, Ne = "DD-MM-YYYY", oo = [
2103
2136
  J.SingleWithoutChildren,
2104
2137
  J.FamilyWithoutChildren,
2105
2138
  J.SingleWithChildren,
2106
2139
  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();
2121
- 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") {
2140
+ ], Ht = [fe.Yes, fe.No];
2141
+ function Wt(e, a, i = "ageRange") {
2135
2142
  return {
2136
- name: a,
2143
+ name: i,
2137
2144
  test(n, l) {
2138
- const o = ut(n, Te);
2145
+ const o = dt(n, Ne);
2139
2146
  if (!o)
2140
2147
  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;
2148
+ const { today: d, earliest: s, latest: m } = mn(e.min, e.max), r = { earliest: s, latest: m };
2149
+ 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
2150
  }
2144
2151
  };
2145
2152
  }
@@ -2182,7 +2189,7 @@ const W = {
2182
2189
  },
2183
2190
  pet: {
2184
2191
  kindRequired: "Selecteer je huisdier",
2185
- outOfRange: (e, i) => `Je huisdier dient geboren te zijn tussen ${e} en ${i}`,
2192
+ outOfRange: (e, a) => `Je huisdier dient geboren te zijn tussen ${e} en ${a}`,
2186
2193
  zipcodeRequired: "Vul je postcode in",
2187
2194
  zipcodeInvalid: "Postcode is incorrect"
2188
2195
  },
@@ -2191,9 +2198,9 @@ const W = {
2191
2198
  }
2192
2199
  };
2193
2200
  function Kt(e) {
2194
- return ut(e, Te) !== null;
2201
+ return dt(e, Ne) !== null;
2195
2202
  }
2196
- function he(e = Yn) {
2203
+ function he(e = no) {
2197
2204
  return ee().required(W.birthdate.required).test("date_format", W.birthdate.dateFormat, Kt).test(Wt(
2198
2205
  { min: { value: e.min, unit: "year" }, max: { value: e.max, unit: "year" } },
2199
2206
  {
@@ -2202,36 +2209,36 @@ function he(e = Yn) {
2202
2209
  }
2203
2210
  ));
2204
2211
  }
2205
- function Qe(e, i) {
2206
- return ee().required(i).oneOf(e, i);
2212
+ function Qe(e, a) {
2213
+ return ee().required(a).oneOf(e, a);
2207
2214
  }
2208
2215
  function _t(e) {
2209
2216
  return ee().required(e);
2210
2217
  }
2211
2218
  function nt(e) {
2212
- return si().typeError(e).required(e);
2219
+ return ma().typeError(e).required(e);
2213
2220
  }
2214
2221
  function Gt(e = W.familyComposition.required) {
2215
- return Qe(Jn, e);
2222
+ return Qe(oo, e);
2216
2223
  }
2217
2224
  const Ze = Gt(), Yt = Qe(
2218
- Ut,
2225
+ Ht,
2219
2226
  W.ownedBuilding.required
2220
- ), ot = [1, 7], eo = [3, 4], Et = {
2227
+ ), ot = [1, 7], lo = [3, 4], Et = {
2221
2228
  raceOrMtb: 15e3,
2222
2229
  default: 9999
2223
- }, Mt = (e, i) => e.test(
2230
+ }, Mt = (e, a) => e.test(
2224
2231
  "max-value",
2225
- W.bike.priceMax(i),
2226
- (a) => {
2227
- const n = Number(a);
2228
- return Number.isNaN(n) || n <= i;
2232
+ W.bike.priceMax(a),
2233
+ (i) => {
2234
+ const n = Number(i);
2235
+ return Number.isNaN(n) || n <= a;
2229
2236
  }
2230
- ), to = te({
2237
+ ), ro = te({
2231
2238
  kind: nt(W.bike.kindRequired),
2232
2239
  condition: nt(W.bike.conditionRequired),
2233
2240
  price: ee().required(W.bike.priceRequired).when("kind", {
2234
- is: (e) => eo.includes(Number(e)),
2241
+ is: (e) => lo.includes(Number(e)),
2235
2242
  then: (e) => Mt(e, Et.raceOrMtb),
2236
2243
  otherwise: (e) => Mt(e, Et.default)
2237
2244
  }),
@@ -2239,7 +2246,7 @@ const Ze = Gt(), Yt = Qe(
2239
2246
  is: (e) => ot.includes(Number(e)),
2240
2247
  then: (e) => e.required(W.bike.brandRequired)
2241
2248
  })
2242
- }), io = [
2249
+ }), so = [
2243
2250
  {
2244
2251
  value: 4,
2245
2252
  title: "ATB / Mountainbike",
@@ -2306,7 +2313,7 @@ const Ze = Gt(), Yt = Qe(
2306
2313
  name: "Vouwfiets",
2307
2314
  isEBike: !1
2308
2315
  }
2309
- ], ao = [
2316
+ ], uo = [
2310
2317
  {
2311
2318
  value: 1,
2312
2319
  label: "Nieuw"
@@ -2315,7 +2322,7 @@ const Ze = Gt(), Yt = Qe(
2315
2322
  value: 0,
2316
2323
  label: "Tweedehands"
2317
2324
  }
2318
- ], no = [
2325
+ ], mo = [
2319
2326
  {
2320
2327
  id: "Ander merk",
2321
2328
  name: "Ander merk"
@@ -3736,7 +3743,7 @@ const Ze = Gt(), Yt = Qe(
3736
3743
  id: "Zündapp",
3737
3744
  name: "Zündapp"
3738
3745
  }
3739
- ], oo = /* @__PURE__ */ q({
3746
+ ], co = /* @__PURE__ */ q({
3740
3747
  __name: "BikeForm",
3741
3748
  props: /* @__PURE__ */ ne({
3742
3749
  initialData: {},
@@ -3749,23 +3756,23 @@ const Ze = Gt(), Yt = Qe(
3749
3756
  fullWidth: { type: Boolean },
3750
3757
  submitLabel: {}
3751
3758
  }, {
3752
- ...ie,
3759
+ ...ae,
3753
3760
  title: "Fietsverzekering vergelijken"
3754
3761
  }),
3755
3762
  emits: ["submit"],
3756
- setup(e, { emit: i }) {
3757
- const a = e, n = ae(a), l = i, {
3763
+ setup(e, { emit: a }) {
3764
+ const i = e, n = ie(i), l = a, {
3758
3765
  isSubmitting: o,
3759
3766
  handleSubmit: d,
3760
3767
  defineField: s,
3761
3768
  resetField: m
3762
- } = le(to, {
3769
+ } = le(ro, {
3763
3770
  kind: null,
3764
3771
  condition: 1,
3765
3772
  price: "",
3766
3773
  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)));
3774
+ ...i.initialData
3775
+ }), [r, f, p] = s("kind", { validateAt: "change" }), [y, V, B] = s("brand", { validateAt: "change" }), [g, h, _] = s("condition"), [T, z, $] = s("price"), P = F(() => ot.includes(Number(r.value)));
3769
3776
  ce(r, (A) => {
3770
3777
  ot.includes(Number(A)) || m("brand", { value: "" });
3771
3778
  }, { immediate: !0 });
@@ -3786,10 +3793,10 @@ const Ze = Gt(), Yt = Qe(
3786
3793
  default: v(() => [
3787
3794
  u(t(Ve), M({
3788
3795
  modelValue: t(r),
3789
- "onUpdate:modelValue": w[0] || (w[0] = (U) => T(r) ? r.value = U : null),
3796
+ "onUpdate:modelValue": w[0] || (w[0] = (U) => N(r) ? r.value = U : null),
3790
3797
  modelModifiers: { number: !0 },
3791
3798
  label: "Soort fiets",
3792
- options: t(io),
3799
+ options: t(so),
3793
3800
  name: "kind",
3794
3801
  required: !1,
3795
3802
  "error-message": t(p)
@@ -3803,12 +3810,12 @@ const Ze = Gt(), Yt = Qe(
3803
3810
  md: "6"
3804
3811
  }, {
3805
3812
  default: v(() => [
3806
- u(t(Nt), M({
3813
+ u(t(Tt), M({
3807
3814
  modelValue: t(y),
3808
- "onUpdate:modelValue": w[1] || (w[1] = (U) => T(y) ? y.value = U : null),
3815
+ "onUpdate:modelValue": w[1] || (w[1] = (U) => N(y) ? y.value = U : null),
3809
3816
  label: "Merk fiets",
3810
3817
  placeholder: "Typ of kies je merk",
3811
- options: t(no),
3818
+ options: t(mo),
3812
3819
  "label-key": "name",
3813
3820
  "value-key": "id",
3814
3821
  name: "brand",
@@ -3823,12 +3830,12 @@ const Ze = Gt(), Yt = Qe(
3823
3830
  md: "6"
3824
3831
  }, {
3825
3832
  default: v(() => [
3826
- u(t(Ne), M({
3833
+ u(t(Te), M({
3827
3834
  modelValue: t(g),
3828
- "onUpdate:modelValue": w[2] || (w[2] = (U) => T(g) ? g.value = U : null),
3835
+ "onUpdate:modelValue": w[2] || (w[2] = (U) => N(g) ? g.value = U : null),
3829
3836
  legend: "Gekocht als",
3830
3837
  name: "condition",
3831
- options: t(ao),
3838
+ options: t(uo),
3832
3839
  variant: "boxed",
3833
3840
  required: !1,
3834
3841
  "error-message": t(_)
@@ -3842,8 +3849,8 @@ const Ze = Gt(), Yt = Qe(
3842
3849
  }, {
3843
3850
  default: v(() => [
3844
3851
  u(t(Ae), M({
3845
- modelValue: t(N),
3846
- "onUpdate:modelValue": w[3] || (w[3] = (U) => T(N) ? N.value = U : null),
3852
+ modelValue: t(T),
3853
+ "onUpdate:modelValue": w[3] || (w[3] = (U) => N(T) ? T.value = U : null),
3847
3854
  label: "Aankoopprijs",
3848
3855
  placeholder: "bv. 1 000",
3849
3856
  icon: "far fa-euro-sign",
@@ -3860,7 +3867,7 @@ const Ze = Gt(), Yt = Qe(
3860
3867
  }, 16, ["submit-disabled"]));
3861
3868
  }
3862
3869
  });
3863
- function lo(e) {
3870
+ function fo(e) {
3864
3871
  return {
3865
3872
  comparison: j.Bike,
3866
3873
  details: [{
@@ -3875,24 +3882,24 @@ function lo(e) {
3875
3882
  user: {}
3876
3883
  };
3877
3884
  }
3878
- const tt = { min: 0, max: 99 }, ro = 7, so = /^\d{4}\s?[a-zA-Z]{2}$/, uo = te({
3885
+ const tt = { min: 0, max: 99 }, vo = 7, bo = /^\d{4}\s?[a-zA-Z]{2}$/, po = te({
3879
3886
  kind: ee().required(W.pet.kindRequired),
3880
3887
  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" } },
3888
+ { min: { value: vo, unit: "week" }, max: { value: tt.max, unit: "year" } },
3882
3889
  {
3883
3890
  // a future date is "younger than the min age" (min = 0 here)
3884
3891
  future: () => W.birthdate.tooYoung(tt.min),
3885
3892
  // 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)
3893
+ tooYoung: ({ earliest: e, latest: a }) => W.pet.outOfRange(
3894
+ e.format(Ne),
3895
+ a.format(Ne)
3889
3896
  ),
3890
3897
  tooOld: () => W.birthdate.tooOld(tt.max)
3891
3898
  },
3892
3899
  "birthdate_range"
3893
3900
  )),
3894
- zipcode: ee().required(W.pet.zipcodeRequired).matches(so, W.pet.zipcodeInvalid)
3895
- }), mo = [
3901
+ zipcode: ee().required(W.pet.zipcodeRequired).matches(bo, W.pet.zipcodeInvalid)
3902
+ }), go = [
3896
3903
  {
3897
3904
  title: "Hond",
3898
3905
  value: "dog"
@@ -3909,7 +3916,7 @@ const tt = { min: 0, max: 99 }, ro = 7, so = /^\d{4}\s?[a-zA-Z]{2}$/, uo = te({
3909
3916
  title: "Vogel",
3910
3917
  value: "bird"
3911
3918
  }
3912
- ], co = /* @__PURE__ */ q({
3919
+ ], ho = /* @__PURE__ */ q({
3913
3920
  __name: "PetForm",
3914
3921
  props: /* @__PURE__ */ ne({
3915
3922
  initialData: {},
@@ -3922,27 +3929,27 @@ const tt = { min: 0, max: 99 }, ro = 7, so = /^\d{4}\s?[a-zA-Z]{2}$/, uo = te({
3922
3929
  fullWidth: { type: Boolean },
3923
3930
  submitLabel: {}
3924
3931
  }, {
3925
- ...ie,
3932
+ ...ae,
3926
3933
  title: "Dierenverzekering vergelijken"
3927
3934
  }),
3928
3935
  emits: ["submit"],
3929
- setup(e, { emit: i }) {
3930
- const a = e, n = ae(a), l = i, {
3936
+ setup(e, { emit: a }) {
3937
+ const i = e, n = ie(i), l = a, {
3931
3938
  isSubmitting: o,
3932
3939
  handleSubmit: d,
3933
3940
  defineField: s
3934
- } = le(uo, {
3941
+ } = le(po, {
3935
3942
  kind: "dog",
3936
3943
  age: "",
3937
3944
  zipcode: "",
3938
- ...a.initialData
3945
+ ...i.initialData
3939
3946
  }), [m, r, f] = s("kind", { validateAt: "change" }), [p, y, V] = s("age"), [B, g, h] = s("zipcode");
3940
3947
  function _() {
3941
- d((N) => {
3942
- l("submit", { ...N });
3948
+ d((T) => {
3949
+ l("submit", { ...T });
3943
3950
  });
3944
3951
  }
3945
- return (N, z) => (c(), H(t(oe), M(t(n), {
3952
+ return (T, z) => (c(), H(t(oe), M(t(n), {
3946
3953
  "submit-disabled": t(o),
3947
3954
  onSubmit: _
3948
3955
  }), {
@@ -3954,10 +3961,10 @@ const tt = { min: 0, max: 99 }, ro = 7, so = /^\d{4}\s?[a-zA-Z]{2}$/, uo = te({
3954
3961
  default: v(() => [
3955
3962
  u(t(Ve), M({
3956
3963
  modelValue: t(m),
3957
- "onUpdate:modelValue": z[0] || (z[0] = ($) => T(m) ? m.value = $ : null),
3964
+ "onUpdate:modelValue": z[0] || (z[0] = ($) => N(m) ? m.value = $ : null),
3958
3965
  label: "Wat voor huisdier wil je verzekeren?",
3959
3966
  placeholder: "",
3960
- options: t(mo),
3967
+ options: t(go),
3961
3968
  name: "kind",
3962
3969
  required: !1,
3963
3970
  "error-message": t(f)
@@ -3972,7 +3979,7 @@ const tt = { min: 0, max: 99 }, ro = 7, so = /^\d{4}\s?[a-zA-Z]{2}$/, uo = te({
3972
3979
  default: v(() => [
3973
3980
  u(t(ve), M({
3974
3981
  modelValue: t(p),
3975
- "onUpdate:modelValue": z[1] || (z[1] = ($) => T(p) ? p.value = $ : null),
3982
+ "onUpdate:modelValue": z[1] || (z[1] = ($) => N(p) ? p.value = $ : null),
3976
3983
  label: "Geboortedatum huisdier",
3977
3984
  "error-message": t(V)
3978
3985
  }, t(y)), {
@@ -3999,7 +4006,7 @@ const tt = { min: 0, max: 99 }, ro = 7, so = /^\d{4}\s?[a-zA-Z]{2}$/, uo = te({
3999
4006
  default: v(() => [
4000
4007
  u(t(Ae), M({
4001
4008
  modelValue: t(B),
4002
- "onUpdate:modelValue": z[2] || (z[2] = ($) => T(B) ? B.value = $ : null),
4009
+ "onUpdate:modelValue": z[2] || (z[2] = ($) => N(B) ? B.value = $ : null),
4003
4010
  label: "Postcode",
4004
4011
  placeholder: "bv. 1234 AZ",
4005
4012
  name: "zipcode",
@@ -4029,7 +4036,7 @@ const tt = { min: 0, max: 99 }, ro = 7, so = /^\d{4}\s?[a-zA-Z]{2}$/, uo = te({
4029
4036
  }, 16, ["submit-disabled"]));
4030
4037
  }
4031
4038
  });
4032
- function fo(e) {
4039
+ function yo(e) {
4033
4040
  return {
4034
4041
  comparison: j.Pet,
4035
4042
  details: [{
@@ -4044,11 +4051,11 @@ function fo(e) {
4044
4051
  }
4045
4052
  };
4046
4053
  }
4047
- const vo = te({
4054
+ const ko = te({
4048
4055
  TypeOfCaravan: _t(W.caravan.typeOfCaravanRequired),
4049
- NewOrOccasion: Qe(Ut, W.caravan.newOrOccasionRequired),
4056
+ NewOrOccasion: Qe(Ht, W.caravan.newOrOccasionRequired),
4050
4057
  BuildYear: _t(W.caravan.buildYearRequired)
4051
- }), bo = [
4058
+ }), So = [
4052
4059
  {
4053
4060
  value: "CS",
4054
4061
  title: "Stacaravan"
@@ -4061,7 +4068,7 @@ const vo = te({
4061
4068
  value: "CV",
4062
4069
  title: "Vouwwagen"
4063
4070
  }
4064
- ], po = [
4071
+ ], Vo = [
4065
4072
  {
4066
4073
  value: fe.Yes,
4067
4074
  label: "Nieuw"
@@ -4070,12 +4077,12 @@ const vo = te({
4070
4077
  value: fe.No,
4071
4078
  label: "Occasion"
4072
4079
  }
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) }));
4080
+ ], Bo = 125;
4081
+ function Ao() {
4082
+ const e = un();
4083
+ return Array.from({ length: Bo + 1 }, (a, i) => ({ title: String(e - i), value: String(e - i) }));
4077
4084
  }
4078
- const yo = /* @__PURE__ */ q({
4085
+ const Co = /* @__PURE__ */ q({
4079
4086
  __name: "CaravanForm",
4080
4087
  props: /* @__PURE__ */ ne({
4081
4088
  initialData: {},
@@ -4088,29 +4095,29 @@ const yo = /* @__PURE__ */ q({
4088
4095
  fullWidth: { type: Boolean },
4089
4096
  submitLabel: {}
4090
4097
  }, {
4091
- ...ie,
4098
+ ...ae,
4092
4099
  title: "Caravanverzekering vergelijken"
4093
4100
  }),
4094
4101
  emits: ["submit"],
4095
- setup(e, { emit: i }) {
4096
- const a = e, n = ae(a), l = i, o = ho(), {
4102
+ setup(e, { emit: a }) {
4103
+ const i = e, n = ie(i), l = a, o = Ao(), {
4097
4104
  isSubmitting: d,
4098
4105
  handleSubmit: s,
4099
4106
  defineField: m
4100
- } = le(vo, {
4107
+ } = le(ko, {
4101
4108
  TypeOfCaravan: null,
4102
4109
  NewOrOccasion: fe.Yes,
4103
4110
  BuildYear: null,
4104
- ...a.initialData
4111
+ ...i.initialData
4105
4112
  }), [r, f, p] = m("TypeOfCaravan", { validateAt: "change" }), [y, V, B] = m("NewOrOccasion"), [g, h, _] = m("BuildYear", { validateAt: "change" });
4106
- function N() {
4113
+ function T() {
4107
4114
  s((z) => {
4108
4115
  l("submit", { ...z });
4109
4116
  });
4110
4117
  }
4111
4118
  return (z, $) => (c(), H(t(oe), M(t(n), {
4112
4119
  "submit-disabled": t(d),
4113
- onSubmit: N
4120
+ onSubmit: T
4114
4121
  }), {
4115
4122
  default: v(() => [
4116
4123
  u(t(L), {
@@ -4120,9 +4127,9 @@ const yo = /* @__PURE__ */ q({
4120
4127
  default: v(() => [
4121
4128
  u(t(Ve), M({
4122
4129
  modelValue: t(r),
4123
- "onUpdate:modelValue": $[0] || ($[0] = (P) => T(r) ? r.value = P : null),
4130
+ "onUpdate:modelValue": $[0] || ($[0] = (P) => N(r) ? r.value = P : null),
4124
4131
  label: "Soort caravan",
4125
- options: t(bo),
4132
+ options: t(So),
4126
4133
  name: "typeOfCaravan",
4127
4134
  required: !1,
4128
4135
  "error-message": t(p)
@@ -4135,12 +4142,12 @@ const yo = /* @__PURE__ */ q({
4135
4142
  md: "6"
4136
4143
  }, {
4137
4144
  default: v(() => [
4138
- u(t(Ne), M({
4145
+ u(t(Te), M({
4139
4146
  modelValue: t(y),
4140
- "onUpdate:modelValue": $[1] || ($[1] = (P) => T(y) ? y.value = P : null),
4147
+ "onUpdate:modelValue": $[1] || ($[1] = (P) => N(y) ? y.value = P : null),
4141
4148
  legend: "Gekocht als",
4142
4149
  name: "newOrOccasion",
4143
- options: t(po),
4150
+ options: t(Vo),
4144
4151
  variant: "boxed",
4145
4152
  required: !1,
4146
4153
  "error-message": t(B)
@@ -4155,7 +4162,7 @@ const yo = /* @__PURE__ */ q({
4155
4162
  default: v(() => [
4156
4163
  u(t(Ve), M({
4157
4164
  modelValue: t(g),
4158
- "onUpdate:modelValue": $[2] || ($[2] = (P) => T(g) ? g.value = P : null),
4165
+ "onUpdate:modelValue": $[2] || ($[2] = (P) => N(g) ? g.value = P : null),
4159
4166
  label: "Bouwjaar",
4160
4167
  options: t(o),
4161
4168
  name: "buildYear",
@@ -4170,7 +4177,7 @@ const yo = /* @__PURE__ */ q({
4170
4177
  }, 16, ["submit-disabled"]));
4171
4178
  }
4172
4179
  });
4173
- function ko(e) {
4180
+ function _o(e) {
4174
4181
  return {
4175
4182
  comparison: j.Caravan,
4176
4183
  details: [{
@@ -4185,10 +4192,10 @@ function ko(e) {
4185
4192
  };
4186
4193
  }
4187
4194
  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),
4195
+ const Eo = [$e.Continuous, $e.ShortTerm], Mo = te({
4196
+ PaymentTerm: Qe(Eo, W.travel.paymentTermRequired),
4190
4197
  birthdate: he()
4191
- }), Bo = [
4198
+ }), wo = [
4192
4199
  {
4193
4200
  value: $e.Continuous,
4194
4201
  label: "Doorlopend"
@@ -4197,7 +4204,7 @@ const So = [$e.Continuous, $e.ShortTerm], Vo = te({
4197
4204
  value: $e.ShortTerm,
4198
4205
  label: "Kortlopend"
4199
4206
  }
4200
- ], Ao = /* @__PURE__ */ q({
4207
+ ], Po = /* @__PURE__ */ q({
4201
4208
  __name: "TravelForm",
4202
4209
  props: /* @__PURE__ */ ne({
4203
4210
  initialData: {},
@@ -4210,19 +4217,19 @@ const So = [$e.Continuous, $e.ShortTerm], Vo = te({
4210
4217
  fullWidth: { type: Boolean },
4211
4218
  submitLabel: {}
4212
4219
  }, {
4213
- ...ie,
4220
+ ...ae,
4214
4221
  title: "Reisverzekering vergelijken"
4215
4222
  }),
4216
4223
  emits: ["submit"],
4217
- setup(e, { emit: i }) {
4218
- const a = e, n = ae(a), l = i, {
4224
+ setup(e, { emit: a }) {
4225
+ const i = e, n = ie(i), l = a, {
4219
4226
  isSubmitting: o,
4220
4227
  handleSubmit: d,
4221
4228
  defineField: s
4222
- } = le(Vo, {
4229
+ } = le(Mo, {
4223
4230
  PaymentTerm: $e.Continuous,
4224
4231
  birthdate: "",
4225
- ...a.initialData
4232
+ ...i.initialData
4226
4233
  }), [m, r, f] = s("PaymentTerm", { validateAt: "change" }), [p, y, V] = s("birthdate");
4227
4234
  function B() {
4228
4235
  d((g) => {
@@ -4239,12 +4246,12 @@ const So = [$e.Continuous, $e.ShortTerm], Vo = te({
4239
4246
  md: "6"
4240
4247
  }, {
4241
4248
  default: v(() => [
4242
- u(t(Ne), M({
4249
+ u(t(Te), M({
4243
4250
  modelValue: t(m),
4244
- "onUpdate:modelValue": h[0] || (h[0] = (_) => T(m) ? m.value = _ : null),
4251
+ "onUpdate:modelValue": h[0] || (h[0] = (_) => N(m) ? m.value = _ : null),
4245
4252
  legend: "Kies je dekking",
4246
4253
  name: "PaymentTerm",
4247
- options: t(Bo),
4254
+ options: t(wo),
4248
4255
  variant: "boxed",
4249
4256
  required: !1,
4250
4257
  "error-message": t(f)
@@ -4272,7 +4279,7 @@ const So = [$e.Continuous, $e.ShortTerm], Vo = te({
4272
4279
  default: v(() => [
4273
4280
  u(t(ve), M({
4274
4281
  modelValue: t(p),
4275
- "onUpdate:modelValue": h[1] || (h[1] = (_) => T(p) ? p.value = _ : null),
4282
+ "onUpdate:modelValue": h[1] || (h[1] = (_) => N(p) ? p.value = _ : null),
4276
4283
  "error-message": t(V)
4277
4284
  }, t(y)), null, 16, ["modelValue", "error-message"])
4278
4285
  ]),
@@ -4283,7 +4290,7 @@ const So = [$e.Continuous, $e.ShortTerm], Vo = te({
4283
4290
  }, 16, ["submit-disabled"]));
4284
4291
  }
4285
4292
  });
4286
- function Co(e) {
4293
+ function Oo(e) {
4287
4294
  return {
4288
4295
  comparison: j.Travel,
4289
4296
  details: [{
@@ -4297,11 +4304,11 @@ function Co(e) {
4297
4304
  }
4298
4305
  };
4299
4306
  }
4300
- const _o = (e) => te({
4307
+ const $o = (e) => te({
4301
4308
  address: e,
4302
4309
  birthdate: he(),
4303
4310
  familyComposition: Ze
4304
- }), Eo = /* @__PURE__ */ q({
4311
+ }), Fo = /* @__PURE__ */ q({
4305
4312
  __name: "LiabilityForm",
4306
4313
  props: /* @__PURE__ */ ne({
4307
4314
  initialData: {},
@@ -4314,20 +4321,20 @@ const _o = (e) => te({
4314
4321
  fullWidth: { type: Boolean },
4315
4322
  submitLabel: {}
4316
4323
  }, {
4317
- ...ie,
4324
+ ...ae,
4318
4325
  title: "Aansprakelijkheidsverzekering vergelijken"
4319
4326
  }),
4320
4327
  emits: ["submit"],
4321
- setup(e, { emit: i }) {
4322
- const a = e, n = ae(a), l = i, o = Ee(), {
4328
+ setup(e, { emit: a }) {
4329
+ const i = e, n = ie(i), l = a, o = Ee(), {
4323
4330
  isSubmitting: d,
4324
4331
  handleSubmit: s,
4325
4332
  defineField: m
4326
- } = le(_o(o.addressSchema), {
4333
+ } = le($o(o.addressSchema), {
4327
4334
  address: _e(),
4328
4335
  birthdate: "",
4329
4336
  familyComposition: J.SingleWithoutChildren,
4330
- ...a.initialData
4337
+ ...i.initialData
4331
4338
  }), [r, f, p] = m("birthdate"), [y, V, B] = m("familyComposition", { validateAt: "change" });
4332
4339
  function g() {
4333
4340
  s((h) => {
@@ -4359,7 +4366,7 @@ const _o = (e) => te({
4359
4366
  default: v(() => [
4360
4367
  u(t(ve), M({
4361
4368
  modelValue: t(r),
4362
- "onUpdate:modelValue": _[0] || (_[0] = (N) => T(r) ? r.value = N : null),
4369
+ "onUpdate:modelValue": _[0] || (_[0] = (T) => N(r) ? r.value = T : null),
4363
4370
  "error-message": t(p)
4364
4371
  }, t(f)), null, 16, ["modelValue", "error-message"])
4365
4372
  ]),
@@ -4372,7 +4379,7 @@ const _o = (e) => te({
4372
4379
  default: v(() => [
4373
4380
  u(t(ze), M({
4374
4381
  modelValue: t(y),
4375
- "onUpdate:modelValue": _[1] || (_[1] = (N) => T(y) ? y.value = N : null),
4382
+ "onUpdate:modelValue": _[1] || (_[1] = (T) => N(y) ? y.value = T : null),
4376
4383
  "error-message": t(B)
4377
4384
  }, t(V)), null, 16, ["modelValue", "error-message"])
4378
4385
  ]),
@@ -4383,7 +4390,7 @@ const _o = (e) => te({
4383
4390
  }, 16, ["submit-disabled"]));
4384
4391
  }
4385
4392
  });
4386
- function Mo(e) {
4393
+ function Lo(e) {
4387
4394
  return {
4388
4395
  comparison: j.Liability,
4389
4396
  details: [{
@@ -4416,11 +4423,11 @@ const Jt = [
4416
4423
  value: fe.No,
4417
4424
  label: "Verhuurd"
4418
4425
  }
4419
- ], wo = (e) => te({
4426
+ ], No = (e) => te({
4420
4427
  address: e,
4421
4428
  ownedBuilding: Yt,
4422
4429
  familyComposition: Gt(W.house.familyCompositionRequired)
4423
- }), Po = /* @__PURE__ */ q({
4430
+ }), To = /* @__PURE__ */ q({
4424
4431
  __name: "HouseForm",
4425
4432
  props: /* @__PURE__ */ ne({
4426
4433
  initialData: {},
@@ -4433,20 +4440,20 @@ const Jt = [
4433
4440
  fullWidth: { type: Boolean },
4434
4441
  submitLabel: {}
4435
4442
  }, {
4436
- ...ie,
4443
+ ...ae,
4437
4444
  title: "Woonverzekering vergelijken"
4438
4445
  }),
4439
4446
  emits: ["submit"],
4440
- setup(e, { emit: i }) {
4441
- const a = e, n = ae(a), l = i, o = Ee(), {
4447
+ setup(e, { emit: a }) {
4448
+ const i = e, n = ie(i), l = a, o = Ee(), {
4442
4449
  isSubmitting: d,
4443
4450
  handleSubmit: s,
4444
4451
  defineField: m
4445
- } = le(wo(o.addressSchema), {
4452
+ } = le(No(o.addressSchema), {
4446
4453
  address: _e(),
4447
4454
  ownedBuilding: fe.Yes,
4448
4455
  familyComposition: J.SingleWithoutChildren,
4449
- ...a.initialData
4456
+ ...i.initialData
4450
4457
  }), [r, f, p] = m("ownedBuilding"), [y, V, B] = m("familyComposition", { validateAt: "change" });
4451
4458
  function g() {
4452
4459
  s((h) => {
@@ -4476,9 +4483,9 @@ const Jt = [
4476
4483
  md: "3"
4477
4484
  }, {
4478
4485
  default: v(() => [
4479
- u(t(Ne), M({
4486
+ u(t(Te), M({
4480
4487
  modelValue: t(r),
4481
- "onUpdate:modelValue": _[0] || (_[0] = (N) => T(r) ? r.value = N : null),
4488
+ "onUpdate:modelValue": _[0] || (_[0] = (T) => N(r) ? r.value = T : null),
4482
4489
  legend: "Jouw woning is...",
4483
4490
  name: "ownedBuilding",
4484
4491
  options: t(Jt),
@@ -4496,7 +4503,7 @@ const Jt = [
4496
4503
  default: v(() => [
4497
4504
  u(t(ze), M({
4498
4505
  modelValue: t(y),
4499
- "onUpdate:modelValue": _[1] || (_[1] = (N) => T(y) ? y.value = N : null),
4506
+ "onUpdate:modelValue": _[1] || (_[1] = (T) => N(y) ? y.value = T : null),
4500
4507
  "error-message": t(B)
4501
4508
  }, t(V)), null, 16, ["modelValue", "error-message"])
4502
4509
  ]),
@@ -4507,7 +4514,7 @@ const Jt = [
4507
4514
  }, 16, ["submit-disabled"]));
4508
4515
  }
4509
4516
  });
4510
- function Oo(e) {
4517
+ function zo(e) {
4511
4518
  return {
4512
4519
  comparison: j.Housing,
4513
4520
  details: [{
@@ -4524,16 +4531,16 @@ function Oo(e) {
4524
4531
  }
4525
4532
  };
4526
4533
  }
4527
- const qe = J.SingleWithChildren, $o = (e) => te({
4534
+ const qe = J.SingleWithChildren, Do = (e) => te({
4528
4535
  address: e,
4529
4536
  ownedBuilding: Yt,
4530
4537
  birthdate: he(),
4531
4538
  familyComposition: Ze,
4532
4539
  familySize: ee().when("familyComposition", {
4533
4540
  is: qe,
4534
- then: (i) => i.required(W.legal.familySizeRequired)
4541
+ then: (a) => a.required(W.legal.familySizeRequired)
4535
4542
  })
4536
- }), Fo = [
4543
+ }), Ro = [
4537
4544
  {
4538
4545
  title: "Alleenstaande met 1 kind",
4539
4546
  value: "2"
@@ -4542,7 +4549,7 @@ const qe = J.SingleWithChildren, $o = (e) => te({
4542
4549
  title: "Alleenstaande met 2 of meer kinderen",
4543
4550
  value: "3"
4544
4551
  }
4545
- ], Lo = /* @__PURE__ */ q({
4552
+ ], xo = /* @__PURE__ */ q({
4546
4553
  __name: "LegalForm",
4547
4554
  props: /* @__PURE__ */ ne({
4548
4555
  initialData: {},
@@ -4555,24 +4562,24 @@ const qe = J.SingleWithChildren, $o = (e) => te({
4555
4562
  fullWidth: { type: Boolean },
4556
4563
  submitLabel: {}
4557
4564
  }, {
4558
- ...ie,
4565
+ ...ae,
4559
4566
  title: "Rechtsbijstandverzekering vergelijken"
4560
4567
  }),
4561
4568
  emits: ["submit"],
4562
- setup(e, { emit: i }) {
4563
- const a = e, n = ae(a), l = i, o = Ee(), {
4569
+ setup(e, { emit: a }) {
4570
+ const i = e, n = ie(i), l = a, o = Ee(), {
4564
4571
  isSubmitting: d,
4565
4572
  handleSubmit: s,
4566
4573
  defineField: m,
4567
4574
  resetField: r
4568
- } = le($o(o.addressSchema), {
4575
+ } = le(Do(o.addressSchema), {
4569
4576
  address: _e(),
4570
4577
  ownedBuilding: fe.Yes,
4571
4578
  birthdate: "",
4572
4579
  familyComposition: J.SingleWithoutChildren,
4573
4580
  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);
4581
+ ...i.initialData
4582
+ }), [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
4583
  ce(h, (w) => {
4577
4584
  w !== qe && r("familySize", { value: "" });
4578
4585
  }, { immediate: !0 });
@@ -4604,9 +4611,9 @@ const qe = J.SingleWithChildren, $o = (e) => te({
4604
4611
  md: "6"
4605
4612
  }, {
4606
4613
  default: v(() => [
4607
- u(t(Ne), M({
4614
+ u(t(Te), M({
4608
4615
  modelValue: t(f),
4609
- "onUpdate:modelValue": U[0] || (U[0] = (K) => T(f) ? f.value = K : null),
4616
+ "onUpdate:modelValue": U[0] || (U[0] = (K) => N(f) ? f.value = K : null),
4610
4617
  legend: "Jouw woning is...",
4611
4618
  name: "ownedBuilding",
4612
4619
  options: t(Jt),
@@ -4624,7 +4631,7 @@ const qe = J.SingleWithChildren, $o = (e) => te({
4624
4631
  default: v(() => [
4625
4632
  u(t(ve), M({
4626
4633
  modelValue: t(V),
4627
- "onUpdate:modelValue": U[1] || (U[1] = (K) => T(V) ? V.value = K : null),
4634
+ "onUpdate:modelValue": U[1] || (U[1] = (K) => N(V) ? V.value = K : null),
4628
4635
  "error-message": t(g)
4629
4636
  }, t(B)), null, 16, ["modelValue", "error-message"])
4630
4637
  ]),
@@ -4637,8 +4644,8 @@ const qe = J.SingleWithChildren, $o = (e) => te({
4637
4644
  default: v(() => [
4638
4645
  u(t(ze), M({
4639
4646
  modelValue: t(h),
4640
- "onUpdate:modelValue": U[2] || (U[2] = (K) => T(h) ? h.value = K : null),
4641
- "error-message": t(N)
4647
+ "onUpdate:modelValue": U[2] || (U[2] = (K) => N(h) ? h.value = K : null),
4648
+ "error-message": t(T)
4642
4649
  }, t(_)), null, 16, ["modelValue", "error-message"])
4643
4650
  ]),
4644
4651
  _: 1
@@ -4651,10 +4658,10 @@ const qe = J.SingleWithChildren, $o = (e) => te({
4651
4658
  default: v(() => [
4652
4659
  u(t(Ve), M({
4653
4660
  modelValue: t(z),
4654
- "onUpdate:modelValue": U[3] || (U[3] = (K) => T(z) ? z.value = K : null),
4661
+ "onUpdate:modelValue": U[3] || (U[3] = (K) => N(z) ? z.value = K : null),
4655
4662
  label: "Aantal kinderen",
4656
4663
  placeholder: "Maak een keuze",
4657
- options: t(Fo),
4664
+ options: t(Ro),
4658
4665
  name: "familySize",
4659
4666
  required: !1,
4660
4667
  "error-message": t(P)
@@ -4667,7 +4674,7 @@ const qe = J.SingleWithChildren, $o = (e) => te({
4667
4674
  }, 16, ["submit-disabled"]));
4668
4675
  }
4669
4676
  });
4670
- function To(e) {
4677
+ function jo(e) {
4671
4678
  return {
4672
4679
  comparison: j.LegalAssistance,
4673
4680
  details: [{
@@ -4690,15 +4697,15 @@ function To(e) {
4690
4697
  }
4691
4698
  };
4692
4699
  }
4693
- const No = (e) => te({
4700
+ const Io = (e) => te({
4694
4701
  address: e,
4695
4702
  birthdate: he(),
4696
4703
  familyComposition: Ze,
4697
4704
  partnerBirthdate: ee().when("familyComposition", {
4698
- is: at,
4705
+ is: it,
4699
4706
  then: () => he()
4700
4707
  })
4701
- }), zo = /* @__PURE__ */ q({
4708
+ }), qo = /* @__PURE__ */ q({
4702
4709
  __name: "PackageForm",
4703
4710
  props: /* @__PURE__ */ ne({
4704
4711
  initialData: {},
@@ -4711,25 +4718,25 @@ const No = (e) => te({
4711
4718
  fullWidth: { type: Boolean },
4712
4719
  submitLabel: {}
4713
4720
  }, {
4714
- ...ie,
4721
+ ...ae,
4715
4722
  title: "Combineer al je verzekeringen in 1 verzekeringspakket"
4716
4723
  }),
4717
4724
  emits: ["submit"],
4718
- setup(e, { emit: i }) {
4719
- const a = e, n = ae(a), l = i, o = Ee(), {
4725
+ setup(e, { emit: a }) {
4726
+ const i = e, n = ie(i), l = a, o = Ee(), {
4720
4727
  isSubmitting: d,
4721
4728
  handleSubmit: s,
4722
4729
  defineField: m,
4723
4730
  resetField: r
4724
- } = le(No(o.addressSchema), {
4731
+ } = le(Io(o.addressSchema), {
4725
4732
  address: _e(),
4726
4733
  birthdate: "",
4727
4734
  familyComposition: J.SingleWithoutChildren,
4728
4735
  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));
4736
+ ...i.initialData
4737
+ }), [f, p, y] = m("birthdate"), [V, B, g] = m("familyComposition", { validateAt: "change" }), [h, _, T] = m("partnerBirthdate"), z = F(() => it(V.value));
4731
4738
  ce(V, (P) => {
4732
- at(P) || r("partnerBirthdate", { value: "" });
4739
+ it(P) || r("partnerBirthdate", { value: "" });
4733
4740
  }, { immediate: !0 });
4734
4741
  function $() {
4735
4742
  s((P) => {
@@ -4761,7 +4768,7 @@ const No = (e) => te({
4761
4768
  default: v(() => [
4762
4769
  u(t(ve), M({
4763
4770
  modelValue: t(f),
4764
- "onUpdate:modelValue": b[0] || (b[0] = (A) => T(f) ? f.value = A : null),
4771
+ "onUpdate:modelValue": b[0] || (b[0] = (A) => N(f) ? f.value = A : null),
4765
4772
  label: "Geboortedatum",
4766
4773
  "error-message": t(y)
4767
4774
  }, t(p)), null, 16, ["modelValue", "error-message"])
@@ -4775,7 +4782,7 @@ const No = (e) => te({
4775
4782
  default: v(() => [
4776
4783
  u(t(ze), M({
4777
4784
  modelValue: t(V),
4778
- "onUpdate:modelValue": b[1] || (b[1] = (A) => T(V) ? V.value = A : null),
4785
+ "onUpdate:modelValue": b[1] || (b[1] = (A) => N(V) ? V.value = A : null),
4779
4786
  "error-message": t(g)
4780
4787
  }, t(B)), null, 16, ["modelValue", "error-message"])
4781
4788
  ]),
@@ -4789,10 +4796,10 @@ const No = (e) => te({
4789
4796
  default: v(() => [
4790
4797
  u(t(ve), M({
4791
4798
  modelValue: t(h),
4792
- "onUpdate:modelValue": b[2] || (b[2] = (A) => T(h) ? h.value = A : null),
4799
+ "onUpdate:modelValue": b[2] || (b[2] = (A) => N(h) ? h.value = A : null),
4793
4800
  label: "Geboortedatum partner",
4794
4801
  name: "partnerBirthdate",
4795
- "error-message": t(N)
4802
+ "error-message": t(T)
4796
4803
  }, t(_)), null, 16, ["modelValue", "error-message"])
4797
4804
  ]),
4798
4805
  _: 1
@@ -4802,7 +4809,7 @@ const No = (e) => te({
4802
4809
  }, 16, ["submit-disabled"]));
4803
4810
  }
4804
4811
  });
4805
- function Do(e) {
4812
+ function Uo(e) {
4806
4813
  return {
4807
4814
  comparison: j.Package,
4808
4815
  details: [{
@@ -4820,12 +4827,12 @@ function Do(e) {
4820
4827
  }
4821
4828
  };
4822
4829
  }
4823
- const Ro = { min: 21, max: 74 }, xe = { min: 3500, max: 75e3 }, xo = 76, wt = 120, jo = te({
4830
+ const Ho = { min: 21, max: 74 }, xe = { min: 3500, max: 75e3 }, Wo = 76, wt = 120, Ko = te({
4824
4831
  LoanPurpose: ee().required(W.loan.purposeRequired),
4825
4832
  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),
4833
+ birthdate: he(Ho),
4827
4834
  familyComposition: Ze
4828
- }), Io = [
4835
+ }), Go = [
4829
4836
  { title: "Aankoop auto", value: "02" },
4830
4837
  { title: "Aankoop boot", value: "03" },
4831
4838
  { title: "Aankoop caravan/camper", value: "04" },
@@ -4838,7 +4845,7 @@ const Ro = { min: 21, max: 74 }, xe = { min: 3500, max: 75e3 }, xo = 76, wt = 12
4838
4845
  { title: "Aflossen restschuld woning", value: "12" },
4839
4846
  { title: "Extra financiële ruimte", value: "33" },
4840
4847
  { title: "Anders", value: "99" }
4841
- ], qo = /* @__PURE__ */ q({
4848
+ ], Yo = /* @__PURE__ */ q({
4842
4849
  __name: "LoanForm",
4843
4850
  props: /* @__PURE__ */ ne({
4844
4851
  initialData: {},
@@ -4851,22 +4858,22 @@ const Ro = { min: 21, max: 74 }, xe = { min: 3500, max: 75e3 }, xo = 76, wt = 12
4851
4858
  fullWidth: { type: Boolean },
4852
4859
  submitLabel: {}
4853
4860
  }, {
4854
- ...ie,
4861
+ ...ae,
4855
4862
  title: "Geld lenen"
4856
4863
  }),
4857
4864
  emits: ["submit"],
4858
- setup(e, { emit: i }) {
4859
- const a = e, n = ae(a), l = i, {
4865
+ setup(e, { emit: a }) {
4866
+ const i = e, n = ie(i), l = a, {
4860
4867
  isSubmitting: o,
4861
4868
  handleSubmit: d,
4862
4869
  defineField: s
4863
- } = le(jo, {
4870
+ } = le(Ko, {
4864
4871
  LoanPurpose: "",
4865
4872
  LoanAmount: null,
4866
4873
  birthdate: "",
4867
4874
  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" });
4875
+ ...i.initialData
4876
+ }), [m, r, f] = s("LoanPurpose", { validateAt: "change" }), [p, y, V] = s("LoanAmount"), [B, g, h] = s("birthdate"), [_, T, z] = s("familyComposition", { validateAt: "change" });
4870
4877
  function $() {
4871
4878
  d((P) => {
4872
4879
  l("submit", { ...P });
@@ -4884,10 +4891,10 @@ const Ro = { min: 21, max: 74 }, xe = { min: 3500, max: 75e3 }, xo = 76, wt = 12
4884
4891
  default: v(() => [
4885
4892
  u(t(Ve), M({
4886
4893
  modelValue: t(m),
4887
- "onUpdate:modelValue": b[0] || (b[0] = (A) => T(m) ? m.value = A : null),
4894
+ "onUpdate:modelValue": b[0] || (b[0] = (A) => N(m) ? m.value = A : null),
4888
4895
  label: "Leendoel",
4889
4896
  placeholder: "Maak een keuze",
4890
- options: t(Io),
4897
+ options: t(Go),
4891
4898
  name: "LoanPurpose",
4892
4899
  required: !1,
4893
4900
  "error-message": t(f)
@@ -4902,7 +4909,7 @@ const Ro = { min: 21, max: 74 }, xe = { min: 3500, max: 75e3 }, xo = 76, wt = 12
4902
4909
  default: v(() => [
4903
4910
  u(t(Ae), M({
4904
4911
  modelValue: t(p),
4905
- "onUpdate:modelValue": b[1] || (b[1] = (A) => T(p) ? p.value = A : null),
4912
+ "onUpdate:modelValue": b[1] || (b[1] = (A) => N(p) ? p.value = A : null),
4906
4913
  modelModifiers: { number: !0 },
4907
4914
  label: "Leenbedrag",
4908
4915
  placeholder: "Van € 3.500,- tot € 75.000,-",
@@ -4923,7 +4930,7 @@ const Ro = { min: 21, max: 74 }, xe = { min: 3500, max: 75e3 }, xo = 76, wt = 12
4923
4930
  default: v(() => [
4924
4931
  u(t(ve), M({
4925
4932
  modelValue: t(B),
4926
- "onUpdate:modelValue": b[2] || (b[2] = (A) => T(B) ? B.value = A : null),
4933
+ "onUpdate:modelValue": b[2] || (b[2] = (A) => N(B) ? B.value = A : null),
4927
4934
  "error-message": t(h)
4928
4935
  }, t(g)), null, 16, ["modelValue", "error-message"])
4929
4936
  ]),
@@ -4936,9 +4943,9 @@ const Ro = { min: 21, max: 74 }, xe = { min: 3500, max: 75e3 }, xo = 76, wt = 12
4936
4943
  default: v(() => [
4937
4944
  u(t(ze), M({
4938
4945
  modelValue: t(_),
4939
- "onUpdate:modelValue": b[3] || (b[3] = (A) => T(_) ? _.value = A : null),
4946
+ "onUpdate:modelValue": b[3] || (b[3] = (A) => N(_) ? _.value = A : null),
4940
4947
  "error-message": t(z)
4941
- }, t(N)), null, 16, ["modelValue", "error-message"])
4948
+ }, t(T)), null, 16, ["modelValue", "error-message"])
4942
4949
  ]),
4943
4950
  _: 1
4944
4951
  })
@@ -4947,14 +4954,14 @@ const Ro = { min: 21, max: 74 }, xe = { min: 3500, max: 75e3 }, xo = 76, wt = 12
4947
4954
  }, 16, ["submit-disabled"]));
4948
4955
  }
4949
4956
  });
4950
- function Uo(e) {
4951
- const i = ut(e, Te);
4952
- if (!i)
4957
+ function Jo(e) {
4958
+ const a = dt(e, Ne);
4959
+ if (!a)
4953
4960
  return wt;
4954
- const n = i.add(xo, "year").diff(Ke(), "month", !0), l = Math.floor(n / 12) * 12;
4961
+ const n = a.add(Wo, "year").diff(Ke(), "month", !0), l = Math.floor(n / 12) * 12;
4955
4962
  return Math.min(l, wt);
4956
4963
  }
4957
- function Ho(e) {
4964
+ function Qo(e) {
4958
4965
  return {
4959
4966
  comparison: j.Loan,
4960
4967
  details: [{
@@ -4962,7 +4969,7 @@ function Ho(e) {
4962
4969
  data: {
4963
4970
  LoanPurpose: e.LoanPurpose,
4964
4971
  LoanAmount: e.LoanAmount,
4965
- MaxDurationByLegalLimit: Uo(e.birthdate)
4972
+ MaxDurationByLegalLimit: Jo(e.birthdate)
4966
4973
  }
4967
4974
  }],
4968
4975
  user: {
@@ -4971,12 +4978,12 @@ function Ho(e) {
4971
4978
  }
4972
4979
  };
4973
4980
  }
4974
- const Wo = { min: 16, max: 99 }, Ko = (e, i) => te({
4981
+ const Zo = { min: 16, max: 99 }, Xo = (e, a) => te({
4975
4982
  licensePlate: e,
4976
- address: i,
4977
- birthdate: he(Wo)
4983
+ address: a,
4984
+ birthdate: he(Zo)
4978
4985
  // moped's local ./constants AGE_RANGE = {min:16,max:99}
4979
- }), Go = /* @__PURE__ */ q({
4986
+ }), el = /* @__PURE__ */ q({
4980
4987
  __name: "MopedForm",
4981
4988
  props: /* @__PURE__ */ ne({
4982
4989
  initialData: {},
@@ -4989,25 +4996,25 @@ const Wo = { min: 16, max: 99 }, Ko = (e, i) => te({
4989
4996
  fullWidth: { type: Boolean },
4990
4997
  submitLabel: {}
4991
4998
  }, {
4992
- ...ie,
4999
+ ...ae,
4993
5000
  title: "Brommerverzekering vergelijken"
4994
5001
  }),
4995
5002
  emits: ["submit"],
4996
- setup(e, { emit: i }) {
5003
+ setup(e, { emit: a }) {
4997
5004
  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
5005
+ const i = e, n = ie(i), l = a, o = Ee(), { vehicleData: d, licensePlateSchema: s } = Je(j.Moped, {
5006
+ initialData: ((z = i.initialData) == null ? void 0 : z.vehicle) ?? void 0
5000
5007
  }), {
5001
5008
  isSubmitting: m,
5002
5009
  handleSubmit: r,
5003
5010
  defineField: f
5004
- } = le(Ko(s, o.addressSchema), {
5011
+ } = le(Xo(s, o.addressSchema), {
5005
5012
  licensePlate: "",
5006
5013
  address: _e(),
5007
5014
  birthdate: "",
5008
- ...a.initialData
5015
+ ...i.initialData
5009
5016
  }), [p, y, V, B] = f("licensePlate"), [g, h, _] = f("birthdate");
5010
- function N() {
5017
+ function T() {
5011
5018
  r(($) => {
5012
5019
  l("submit", {
5013
5020
  ...$,
@@ -5019,7 +5026,7 @@ const Wo = { min: 16, max: 99 }, Ko = (e, i) => te({
5019
5026
  }
5020
5027
  return ($, P) => (c(), H(t(oe), M(t(n), {
5021
5028
  "submit-disabled": t(m),
5022
- onSubmit: N
5029
+ onSubmit: T
5023
5030
  }), {
5024
5031
  default: v(() => [
5025
5032
  u(t(L), {
@@ -5029,9 +5036,9 @@ const Wo = { min: 16, max: 99 }, Ko = (e, i) => te({
5029
5036
  default: v(() => [
5030
5037
  u(t(Ye), M({
5031
5038
  modelValue: t(p),
5032
- "onUpdate:modelValue": P[0] || (P[0] = (b) => T(p) ? p.value = b : null),
5039
+ "onUpdate:modelValue": P[0] || (P[0] = (b) => N(p) ? p.value = b : null),
5033
5040
  "vehicle-data": t(d),
5034
- "onUpdate:vehicleData": P[1] || (P[1] = (b) => T(d) ? d.value = b : null),
5041
+ "onUpdate:vehicleData": P[1] || (P[1] = (b) => N(d) ? d.value = b : null),
5035
5042
  name: "licensePlate",
5036
5043
  "error-message": t(V),
5037
5044
  loading: t(B).isValidating
@@ -5068,7 +5075,7 @@ const Wo = { min: 16, max: 99 }, Ko = (e, i) => te({
5068
5075
  default: v(() => [
5069
5076
  u(t(ve), M({
5070
5077
  modelValue: t(g),
5071
- "onUpdate:modelValue": P[2] || (P[2] = (b) => T(g) ? g.value = b : null),
5078
+ "onUpdate:modelValue": P[2] || (P[2] = (b) => N(g) ? g.value = b : null),
5072
5079
  label: "Geboortedatum hoofdbestuurder",
5073
5080
  "error-message": t(_)
5074
5081
  }, t(h)), null, 16, ["modelValue", "error-message"])
@@ -5080,7 +5087,7 @@ const Wo = { min: 16, max: 99 }, Ko = (e, i) => te({
5080
5087
  }, 16, ["submit-disabled"]));
5081
5088
  }
5082
5089
  });
5083
- function Yo(e) {
5090
+ function tl(e) {
5084
5091
  return {
5085
5092
  comparison: j.Moped,
5086
5093
  details: [{
@@ -5098,11 +5105,11 @@ function Yo(e) {
5098
5105
  }
5099
5106
  };
5100
5107
  }
5101
- const Jo = (e, i) => te({
5108
+ const al = (e, a) => te({
5102
5109
  licensePlate: e,
5103
- address: i,
5110
+ address: a,
5104
5111
  birthdate: he()
5105
- }), Qo = /* @__PURE__ */ q({
5112
+ }), il = /* @__PURE__ */ q({
5106
5113
  __name: "MotorForm",
5107
5114
  props: /* @__PURE__ */ ne({
5108
5115
  initialData: {},
@@ -5115,25 +5122,25 @@ const Jo = (e, i) => te({
5115
5122
  fullWidth: { type: Boolean },
5116
5123
  submitLabel: {}
5117
5124
  }, {
5118
- ...ie,
5125
+ ...ae,
5119
5126
  title: "Motorverzekering vergelijken"
5120
5127
  }),
5121
5128
  emits: ["submit"],
5122
- setup(e, { emit: i }) {
5129
+ setup(e, { emit: a }) {
5123
5130
  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
5131
+ const i = e, n = ie(i), l = a, o = Ee(), { vehicleData: d, licensePlateSchema: s } = Je(j.Motor, {
5132
+ initialData: ((z = i.initialData) == null ? void 0 : z.vehicle) ?? void 0
5126
5133
  }), {
5127
5134
  isSubmitting: m,
5128
5135
  handleSubmit: r,
5129
5136
  defineField: f
5130
- } = le(Jo(s, o.addressSchema), {
5137
+ } = le(al(s, o.addressSchema), {
5131
5138
  licensePlate: "",
5132
5139
  address: _e(),
5133
5140
  birthdate: "",
5134
- ...a.initialData
5141
+ ...i.initialData
5135
5142
  }), [p, y, V, B] = f("licensePlate"), [g, h, _] = f("birthdate");
5136
- function N() {
5143
+ function T() {
5137
5144
  r(($) => {
5138
5145
  l("submit", {
5139
5146
  ...$,
@@ -5145,7 +5152,7 @@ const Jo = (e, i) => te({
5145
5152
  }
5146
5153
  return ($, P) => (c(), H(t(oe), M(t(n), {
5147
5154
  "submit-disabled": t(m),
5148
- onSubmit: N
5155
+ onSubmit: T
5149
5156
  }), {
5150
5157
  default: v(() => [
5151
5158
  u(t(L), {
@@ -5155,9 +5162,9 @@ const Jo = (e, i) => te({
5155
5162
  default: v(() => [
5156
5163
  u(t(Ye), M({
5157
5164
  modelValue: t(p),
5158
- "onUpdate:modelValue": P[0] || (P[0] = (b) => T(p) ? p.value = b : null),
5165
+ "onUpdate:modelValue": P[0] || (P[0] = (b) => N(p) ? p.value = b : null),
5159
5166
  "vehicle-data": t(d),
5160
- "onUpdate:vehicleData": P[1] || (P[1] = (b) => T(d) ? d.value = b : null),
5167
+ "onUpdate:vehicleData": P[1] || (P[1] = (b) => N(d) ? d.value = b : null),
5161
5168
  name: "licensePlate",
5162
5169
  "error-message": t(V),
5163
5170
  loading: t(B).isValidating
@@ -5194,7 +5201,7 @@ const Jo = (e, i) => te({
5194
5201
  default: v(() => [
5195
5202
  u(t(ve), M({
5196
5203
  modelValue: t(g),
5197
- "onUpdate:modelValue": P[2] || (P[2] = (b) => T(g) ? g.value = b : null),
5204
+ "onUpdate:modelValue": P[2] || (P[2] = (b) => N(g) ? g.value = b : null),
5198
5205
  label: "Geboortedatum hoofdbestuurder",
5199
5206
  "error-message": t(_)
5200
5207
  }, t(h)), null, 16, ["modelValue", "error-message"])
@@ -5206,7 +5213,7 @@ const Jo = (e, i) => te({
5206
5213
  }, 16, ["submit-disabled"]));
5207
5214
  }
5208
5215
  });
5209
- function Zo(e) {
5216
+ function nl(e) {
5210
5217
  return {
5211
5218
  comparison: j.Motor,
5212
5219
  details: [{
@@ -5224,11 +5231,11 @@ function Zo(e) {
5224
5231
  }
5225
5232
  };
5226
5233
  }
5227
- const Xo = (e, i) => te({
5234
+ const ol = (e, a) => te({
5228
5235
  licensePlate: e,
5229
- address: i,
5236
+ address: a,
5230
5237
  birthdate: he()
5231
- }), el = /* @__PURE__ */ q({
5238
+ }), ll = /* @__PURE__ */ q({
5232
5239
  __name: "CarForm",
5233
5240
  props: /* @__PURE__ */ ne({
5234
5241
  initialData: {},
@@ -5241,25 +5248,25 @@ const Xo = (e, i) => te({
5241
5248
  fullWidth: { type: Boolean },
5242
5249
  submitLabel: {}
5243
5250
  }, {
5244
- ...ie,
5251
+ ...ae,
5245
5252
  title: "Autoverzekering vergelijken"
5246
5253
  }),
5247
5254
  emits: ["submit"],
5248
- setup(e, { emit: i }) {
5255
+ setup(e, { emit: a }) {
5249
5256
  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
5257
+ const i = e, n = ie(i), l = a, o = Ee(), { vehicleData: d, licensePlateSchema: s } = Je(j.Car, {
5258
+ initialData: ((z = i.initialData) == null ? void 0 : z.vehicle) ?? void 0
5252
5259
  }), {
5253
5260
  isSubmitting: m,
5254
5261
  handleSubmit: r,
5255
5262
  defineField: f
5256
- } = le(Xo(s, o.addressSchema), {
5263
+ } = le(ol(s, o.addressSchema), {
5257
5264
  licensePlate: "",
5258
5265
  address: _e(),
5259
5266
  birthdate: "",
5260
- ...a.initialData
5267
+ ...i.initialData
5261
5268
  }), [p, y, V, B] = f("licensePlate"), [g, h, _] = f("birthdate");
5262
- function N() {
5269
+ function T() {
5263
5270
  r(($) => {
5264
5271
  l("submit", {
5265
5272
  ...$,
@@ -5271,7 +5278,7 @@ const Xo = (e, i) => te({
5271
5278
  }
5272
5279
  return ($, P) => (c(), H(t(oe), M(t(n), {
5273
5280
  "submit-disabled": t(m),
5274
- onSubmit: N
5281
+ onSubmit: T
5275
5282
  }), {
5276
5283
  default: v(() => [
5277
5284
  u(t(L), {
@@ -5281,9 +5288,9 @@ const Xo = (e, i) => te({
5281
5288
  default: v(() => [
5282
5289
  u(t(Ye), M({
5283
5290
  modelValue: t(p),
5284
- "onUpdate:modelValue": P[0] || (P[0] = (b) => T(p) ? p.value = b : null),
5291
+ "onUpdate:modelValue": P[0] || (P[0] = (b) => N(p) ? p.value = b : null),
5285
5292
  "vehicle-data": t(d),
5286
- "onUpdate:vehicleData": P[1] || (P[1] = (b) => T(d) ? d.value = b : null),
5293
+ "onUpdate:vehicleData": P[1] || (P[1] = (b) => N(d) ? d.value = b : null),
5287
5294
  name: "licensePlate",
5288
5295
  "error-message": t(V),
5289
5296
  loading: t(B).isValidating
@@ -5320,7 +5327,7 @@ const Xo = (e, i) => te({
5320
5327
  default: v(() => [
5321
5328
  u(t(ve), M({
5322
5329
  modelValue: t(g),
5323
- "onUpdate:modelValue": P[2] || (P[2] = (b) => T(g) ? g.value = b : null),
5330
+ "onUpdate:modelValue": P[2] || (P[2] = (b) => N(g) ? g.value = b : null),
5324
5331
  label: "Geboortedatum hoofdbestuurder",
5325
5332
  "error-message": t(_)
5326
5333
  }, t(h)), null, 16, ["modelValue", "error-message"])
@@ -5332,7 +5339,7 @@ const Xo = (e, i) => te({
5332
5339
  }, 16, ["submit-disabled"]));
5333
5340
  }
5334
5341
  });
5335
- function tl(e) {
5342
+ function rl(e) {
5336
5343
  return {
5337
5344
  comparison: j.Car,
5338
5345
  details: [{
@@ -5350,10 +5357,10 @@ function tl(e) {
5350
5357
  }
5351
5358
  };
5352
5359
  }
5353
- const il = (e) => te({
5360
+ const sl = (e) => te({
5354
5361
  licensePlate: e,
5355
- company: Kn()
5356
- }), al = /* @__PURE__ */ q({
5362
+ company: ao()
5363
+ }), dl = /* @__PURE__ */ q({
5357
5364
  __name: "BusinessCarForm",
5358
5365
  props: /* @__PURE__ */ ne({
5359
5366
  initialData: {},
@@ -5366,25 +5373,25 @@ const il = (e) => te({
5366
5373
  fullWidth: { type: Boolean },
5367
5374
  submitLabel: {}
5368
5375
  }, {
5369
- ...ie,
5376
+ ...ae,
5370
5377
  title: "Zakelijke autoverzekering vergelijken"
5371
5378
  }),
5372
5379
  emits: ["submit"],
5373
- setup(e, { emit: i }) {
5380
+ setup(e, { emit: a }) {
5374
5381
  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
5382
+ const i = e, n = ie(i), l = a, { vehicleData: o, licensePlateSchema: d } = Je(j.Car, {
5383
+ initialData: ((b = i.initialData) == null ? void 0 : b.vehicle) ?? void 0
5377
5384
  }), {
5378
5385
  isSubmitting: s,
5379
5386
  handleSubmit: m,
5380
5387
  defineField: r,
5381
5388
  setErrors: f,
5382
5389
  removeError: p
5383
- } = le(il(d), {
5390
+ } = le(sl(d), {
5384
5391
  licensePlate: "",
5385
5392
  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(
5393
+ ...i.initialData
5394
+ }), [y, V, B, g] = r("licensePlate"), [h, _, T] = r("company"), z = (A) => A ? f({ company: A }) : p("company"), $ = F(
5388
5395
  () => !!h.value && !h.value.hasVisitingAddress
5389
5396
  );
5390
5397
  function P() {
@@ -5407,9 +5414,9 @@ const il = (e) => te({
5407
5414
  default: v(() => [
5408
5415
  u(t(Ye), M({
5409
5416
  modelValue: t(y),
5410
- "onUpdate:modelValue": w[0] || (w[0] = (U) => T(y) ? y.value = U : null),
5417
+ "onUpdate:modelValue": w[0] || (w[0] = (U) => N(y) ? y.value = U : null),
5411
5418
  "vehicle-data": t(o),
5412
- "onUpdate:vehicleData": w[1] || (w[1] = (U) => T(o) ? o.value = U : null),
5419
+ "onUpdate:vehicleData": w[1] || (w[1] = (U) => N(o) ? o.value = U : null),
5413
5420
  name: "licensePlate",
5414
5421
  "error-message": t(B),
5415
5422
  loading: t(g).isValidating
@@ -5435,11 +5442,11 @@ const il = (e) => te({
5435
5442
  md: "6"
5436
5443
  }, {
5437
5444
  default: v(() => [
5438
- u(t(Wn), M({
5445
+ u(t(to), M({
5439
5446
  modelValue: t(h),
5440
- "onUpdate:modelValue": w[2] || (w[2] = (U) => T(h) ? h.value = U : null),
5447
+ "onUpdate:modelValue": w[2] || (w[2] = (U) => N(h) ? h.value = U : null),
5441
5448
  name: "company",
5442
- "error-message": t(N)
5449
+ "error-message": t(T)
5443
5450
  }, t(_), { onError: z }), {
5444
5451
  popover: v(() => [
5445
5452
  u(t(Be), {
@@ -5453,7 +5460,7 @@ const il = (e) => te({
5453
5460
  })
5454
5461
  ]),
5455
5462
  information: v(() => [
5456
- $.value ? (c(), H(t(Fa), {
5463
+ $.value ? (c(), H(t(Ti), {
5457
5464
  key: 0,
5458
5465
  text: "Dit bedrijf heeft geen geregistreerd bezoekadres. Voeg dit toe bij de KvK om door te gaan met de aanvraag."
5459
5466
  })) : E("", !0)
@@ -5468,8 +5475,8 @@ const il = (e) => te({
5468
5475
  }, 16, ["submit-disabled"]));
5469
5476
  }
5470
5477
  });
5471
- function nl(e) {
5472
- const { hasVisitingAddress: i, ...a } = e.company;
5478
+ function ul(e) {
5479
+ const { hasVisitingAddress: a, ...i } = e.company;
5473
5480
  return {
5474
5481
  comparison: j.CarBusiness,
5475
5482
  details: [
@@ -5479,15 +5486,15 @@ function nl(e) {
5479
5486
  },
5480
5487
  {
5481
5488
  name: "companyData",
5482
- data: a
5489
+ data: i
5483
5490
  }
5484
5491
  ],
5485
5492
  user: {}
5486
5493
  };
5487
5494
  }
5488
- const ol = "<<COMPARISONID>>", ll = (e) => {
5495
+ const ml = "<<COMPARISONID>>", cl = (e) => {
5489
5496
  window.location.href = e;
5490
- }, rl = ({ user: e, details: i }) => new li({
5497
+ }, fl = ({ user: e, details: a }) => new da({
5491
5498
  email: e.email || null,
5492
5499
  name: e.firstName || null,
5493
5500
  zip_code: e.zipcode || null,
@@ -5496,43 +5503,43 @@ const ol = "<<COMPARISONID>>", ll = (e) => {
5496
5503
  birth_date: e.birthdate || null,
5497
5504
  family_composition: e.familyComposition || null,
5498
5505
  detail: {
5499
- ...Object.fromEntries(i.map(({ name: a, data: n }) => [a, n])),
5506
+ ...Object.fromEntries(a.map(({ name: i, data: n }) => [i, n])),
5500
5507
  ...e.street && { street: e.street },
5501
5508
  ...e.city && { city: e.city }
5502
5509
  }
5503
5510
  });
5504
- function sl(e) {
5505
- const i = Y(!1), a = Y(null);
5511
+ function vl(e) {
5512
+ const a = Y(!1), i = Y(null);
5506
5513
  return { submit: async (l) => {
5507
5514
  var o;
5508
- i.value = !0, a.value = null;
5515
+ a.value = !0, i.value = null;
5509
5516
  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);
5517
+ const d = await e.client.comparisonService.create(l.comparison, fl(l)), s = e.link.replace(ml, d.getId());
5518
+ (e.onRedirect ?? cl)(s);
5512
5519
  } catch (d) {
5513
- a.value = d, (o = e.onError) == null || o.call(e, d, l);
5520
+ i.value = d, (o = e.onError) == null || o.call(e, d, l);
5514
5521
  } finally {
5515
- i.value = !1;
5522
+ a.value = !1;
5516
5523
  }
5517
- }, isSubmitting: i, error: a };
5524
+ }, isSubmitting: a, error: i };
5518
5525
  }
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),
5526
+ const bl = {
5527
+ [j.Bike]: () => Promise.resolve().then(() => pl),
5528
+ [j.Pet]: () => Promise.resolve().then(() => gl),
5529
+ [j.Caravan]: () => Promise.resolve().then(() => hl),
5530
+ [j.Travel]: () => Promise.resolve().then(() => yl),
5531
+ [j.Liability]: () => Promise.resolve().then(() => kl),
5525
5532
  [j.Housing]: () => Promise.resolve().then(() => Pt),
5526
5533
  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),
5534
+ [j.LegalAssistance]: () => Promise.resolve().then(() => Sl),
5535
+ [j.Package]: () => Promise.resolve().then(() => Vl),
5536
+ [j.Loan]: () => Promise.resolve().then(() => Bl),
5537
+ [j.Moped]: () => Promise.resolve().then(() => Al),
5538
+ [j.Motor]: () => Promise.resolve().then(() => Cl),
5539
+ [j.Car]: () => Promise.resolve().then(() => _l),
5533
5540
  [j.CarBusiness]: () => Promise.resolve().then(() => Ot),
5534
5541
  "business-car": () => Promise.resolve().then(() => Ot)
5535
- }, Fl = /* @__PURE__ */ q({
5542
+ }, Rl = /* @__PURE__ */ q({
5536
5543
  __name: "ComparisonFormFlow",
5537
5544
  props: {
5538
5545
  form: {},
@@ -5550,18 +5557,18 @@ const dl = {
5550
5557
  submitLabel: {}
5551
5558
  },
5552
5559
  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) => {
5560
+ setup(e, { emit: a }) {
5561
+ const i = e, n = a, l = ie(i), o = na(null);
5562
+ ce(() => i.form, async (r) => {
5556
5563
  o.value = null;
5557
- const f = await dl[r]();
5558
- r === a.form && (o.value = f);
5564
+ const f = await bl[r]();
5565
+ r === i.form && (o.value = f);
5559
5566
  }, { immediate: !0 });
5560
- const { submit: d, isSubmitting: s } = sl({
5561
- client: a.client,
5562
- link: a.link,
5567
+ const { submit: d, isSubmitting: s } = vl({
5568
+ client: i.client,
5569
+ link: i.link,
5563
5570
  onRedirect: (r) => {
5564
- n("submitted", r), (a.redirect ?? ((f) => {
5571
+ n("submitted", r), (i.redirect ?? ((f) => {
5565
5572
  window.location.href = f;
5566
5573
  }))(r);
5567
5574
  },
@@ -5570,93 +5577,93 @@ const dl = {
5570
5577
  function m(r) {
5571
5578
  o.value && d(o.value.presenter(r));
5572
5579
  }
5573
- return (r, f) => o.value ? (c(), H(oi(o.value.Form), M({ key: 0 }, t(l), {
5580
+ return (r, f) => o.value ? (c(), H(oa(o.value.Form), M({ key: 0 }, t(l), {
5574
5581
  "initial-data": e.initialData,
5575
5582
  "submit-disabled": t(s),
5576
5583
  onSubmit: m
5577
5584
  }), null, 16, ["initial-data", "submit-disabled"])) : E("", !0);
5578
5585
  }
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({
5586
+ }), pl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5584
5587
  __proto__: null,
5585
5588
  Form: co,
5586
5589
  presenter: fo
5587
- }, Symbol.toStringTag, { value: "Module" })), cl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5588
- __proto__: null,
5589
- Form: yo,
5590
- presenter: ko
5591
- }, Symbol.toStringTag, { value: "Module" })), fl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5590
+ }, Symbol.toStringTag, { value: "Module" })), gl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5592
5591
  __proto__: null,
5593
- Form: Ao,
5594
- presenter: Co
5595
- }, Symbol.toStringTag, { value: "Module" })), vl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5592
+ Form: ho,
5593
+ presenter: yo
5594
+ }, Symbol.toStringTag, { value: "Module" })), hl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5596
5595
  __proto__: null,
5597
- Form: Eo,
5598
- presenter: Mo
5599
- }, Symbol.toStringTag, { value: "Module" })), Pt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5596
+ Form: Co,
5597
+ presenter: _o
5598
+ }, Symbol.toStringTag, { value: "Module" })), yl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5600
5599
  __proto__: null,
5601
5600
  Form: Po,
5602
5601
  presenter: Oo
5603
- }, Symbol.toStringTag, { value: "Module" })), bl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5602
+ }, Symbol.toStringTag, { value: "Module" })), kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5604
5603
  __proto__: null,
5605
- Form: Lo,
5606
- presenter: To
5607
- }, Symbol.toStringTag, { value: "Module" })), pl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5604
+ Form: Fo,
5605
+ presenter: Lo
5606
+ }, Symbol.toStringTag, { value: "Module" })), Pt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5608
5607
  __proto__: null,
5609
- Form: zo,
5610
- presenter: Do
5611
- }, Symbol.toStringTag, { value: "Module" })), gl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5608
+ Form: To,
5609
+ presenter: zo
5610
+ }, Symbol.toStringTag, { value: "Module" })), Sl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5612
5611
  __proto__: null,
5613
- Form: qo,
5614
- presenter: Ho
5615
- }, Symbol.toStringTag, { value: "Module" })), hl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5612
+ Form: xo,
5613
+ presenter: jo
5614
+ }, Symbol.toStringTag, { value: "Module" })), Vl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5616
5615
  __proto__: null,
5617
- Form: Go,
5618
- presenter: Yo
5619
- }, Symbol.toStringTag, { value: "Module" })), yl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5616
+ Form: qo,
5617
+ presenter: Uo
5618
+ }, Symbol.toStringTag, { value: "Module" })), Bl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5620
5619
  __proto__: null,
5621
- Form: Qo,
5622
- presenter: Zo
5623
- }, Symbol.toStringTag, { value: "Module" })), kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5620
+ Form: Yo,
5621
+ presenter: Qo
5622
+ }, Symbol.toStringTag, { value: "Module" })), Al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5624
5623
  __proto__: null,
5625
5624
  Form: el,
5626
5625
  presenter: tl
5627
- }, Symbol.toStringTag, { value: "Module" })), Ot = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5626
+ }, Symbol.toStringTag, { value: "Module" })), Cl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5628
5627
  __proto__: null,
5629
- Form: al,
5628
+ Form: il,
5630
5629
  presenter: nl
5630
+ }, Symbol.toStringTag, { value: "Module" })), _l = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5631
+ __proto__: null,
5632
+ Form: ll,
5633
+ presenter: rl
5634
+ }, Symbol.toStringTag, { value: "Module" })), Ot = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5635
+ __proto__: null,
5636
+ Form: dl,
5637
+ presenter: ul
5631
5638
  }, Symbol.toStringTag, { value: "Module" }));
5632
5639
  export {
5633
- oo as BikeForm,
5634
- al as BusinessCarForm,
5635
- el as CarForm,
5636
- yo as CaravanForm,
5637
- Fl as ComparisonFormFlow,
5640
+ co as BikeForm,
5641
+ dl as BusinessCarForm,
5642
+ ll as CarForm,
5643
+ Co as CaravanForm,
5644
+ Rl as ComparisonFormFlow,
5638
5645
  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
5646
+ To as HouseForm,
5647
+ xo as LegalForm,
5648
+ Fo as LiabilityForm,
5649
+ Yo as LoanForm,
5650
+ el as MopedForm,
5651
+ il as MotorForm,
5652
+ qo as PackageForm,
5653
+ ho as PetForm,
5654
+ Po as TravelForm,
5655
+ fo as bikePresenter,
5656
+ ul as businessCarPresenter,
5657
+ rl as carPresenter,
5658
+ _o as caravanPresenter,
5659
+ zo as housePresenter,
5660
+ jo as legalPresenter,
5661
+ Lo as liabilityPresenter,
5662
+ Qo as loanPresenter,
5663
+ tl as mopedPresenter,
5664
+ nl as motorPresenter,
5665
+ Uo as packagePresenter,
5666
+ yo as petPresenter,
5667
+ Oo as travelPresenter,
5668
+ vl as useComparisonSubmit
5662
5669
  };