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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,21 +1,21 @@
1
- import { defineComponent as q, createElementBlock as S, openBlock as c, normalizeClass as x, createCommentVNode as E, createElementVNode as O, toDisplayString as I, mergeModels as Z, useModel as de, useSlots as be, useId as Ue, computed as F, withModifiers as Le, unref as t, renderSlot as R, createTextVNode as G, withDirectives as lt, ref as Y, Fragment as He, renderList as rt, vModelSelect as Qt, createBlock as H, mergeProps as M, withCtx as v, createVNode as u, vModelRadio as Zt, Transition as Xt, normalizeStyle as 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";
1
+ import { defineComponent as q, createElementBlock as S, openBlock as c, normalizeClass as x, createCommentVNode as E, createElementVNode as O, toDisplayString as I, mergeModels as Z, useModel as de, useSlots as be, useId as Ue, computed as F, withModifiers as Le, unref as t, renderSlot as R, createTextVNode as G, withDirectives as rt, ref as Y, Fragment as He, renderList as st, vModelSelect as Zt, createBlock as H, mergeProps as M, withCtx as v, createVNode as u, vModelRadio as Xt, Transition as ea, normalizeStyle as ta, createSlots as We, provide as aa, inject as ia, nextTick as it, watch as ce, onMounted as na, isRef as N, useAttrs as Ft, mergeDefaults as ne, shallowRef as oa, resolveDynamicComponent as la } from "vue";
2
+ import { HomeService as ra, DataValidationService as sa, DataService as da, User as ua } from "@vergelijkdirect/insurance-transmission-client";
3
+ import { object as te, string as ee, mixed as ma, number as ca } from "yup";
4
4
  import Ke from "dayjs";
5
- import 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";
5
+ import fa from "dayjs/plugin/customParseFormat.js";
6
+ import { useFloating as va, autoUpdate as ba, offset as pa, flip as ga, shift as ha } from "@floating-ui/vue";
7
+ import { vMaska as ya } from "maska/vue";
8
+ import { isEqual as ka, cloneDeep as Re } from "es-toolkit";
9
+ import { reactivePick as Lt, refDebounced as Sa, useAsyncState as bt } from "@vueuse/core";
10
+ import { useForwardProps as Va, ComboboxRoot as Ba, Label as Aa, ComboboxInput as Ca, ComboboxCancel as _a, ComboboxTrigger as Ea, ComboboxContent as Ma, ComboboxViewport as wa, ComboboxVirtualizer as Pa, ComboboxItem as pt, ComboboxItemIndicator as gt, ComboboxEmpty as Oa } from "reka-ui";
11
11
  var j = /* @__PURE__ */ ((e) => (e.Bike = "bike", e.Car = "car", e.Caravan = "caravan", e.CarBusiness = "car-business", e.Housing = "housing", e.LegalAssistance = "legal-assistance", e.Liability = "liability", e.Loan = "loan", e.Moped = "moped", e.Motor = "motor", e.Package = "package", e.Pet = "pet", e.Travel = "travel", e))(j || {}), J = /* @__PURE__ */ ((e) => (e.FamilyWithChildren = "I", e.FamilyWithoutChildren = "H", e.SingleWithoutChildren = "A", e.SingleWithChildren = "K", e))(J || {}), fe = /* @__PURE__ */ ((e) => (e.Yes = "J", e.No = "N", e))(fe || {});
12
- const Oa = ["href", "target", "tabindex"], $a = {
12
+ const $a = ["href", "target", "tabindex"], Fa = {
13
13
  key: 1,
14
14
  class: "vd-btn-new__label"
15
- }, Fa = ["disabled", "tabindex"], La = {
15
+ }, La = ["disabled", "tabindex"], Na = {
16
16
  key: 1,
17
17
  class: "vd-btn-new__label"
18
- }, Na = /* @__PURE__ */ q({
18
+ }, Ta = /* @__PURE__ */ q({
19
19
  __name: "VdButton",
20
20
  props: {
21
21
  buttonType: { default: "primary" },
@@ -57,13 +57,13 @@ const Oa = ["href", "target", "tabindex"], $a = {
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", $a, I(e.label), 1)) : E("", !0),
60
+ e.label ? (c(), S("span", Fa, I(e.label), 1)) : E("", !0),
61
61
  e.icon && !e.iconLeft ? (c(), S("i", {
62
62
  key: 2,
63
63
  class: x(["vd-btn-new__icon", [e.icon, { "vd-btn-new__icon--non-label": !e.label }]])
64
64
  }, null, 2)) : E("", !0),
65
65
  s[0] || (s[0] = O("div", { class: "loader-circle" }, null, -1))
66
- ], 10, Oa)) : (c(), S("button", {
66
+ ], 10, $a)) : (c(), S("button", {
67
67
  key: 1,
68
68
  onClick: o,
69
69
  class: x(["vd-btn-new", [
@@ -82,33 +82,33 @@ const Oa = ["href", "target", "tabindex"], $a = {
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", La, I(e.label), 1)) : E("", !0),
85
+ e.label ? (c(), S("span", Na, I(e.label), 1)) : E("", !0),
86
86
  e.icon && !e.iconLeft ? (c(), S("i", {
87
87
  key: 2,
88
88
  class: x(["vd-btn-new__icon", [e.icon, { "vd-btn-new__icon--non-label": !e.label }]])
89
89
  }, null, 2)) : E("", !0),
90
90
  s[1] || (s[1] = O("div", { class: "loader-circle" }, null, -1))
91
- ], 10, Fa));
91
+ ], 10, La));
92
92
  }
93
- }), Ta = { class: "vd-field" }, za = ["for"], Da = {
93
+ }), za = { class: "vd-field" }, Da = ["for"], Ra = {
94
94
  key: 0,
95
95
  class: "vd-field__asterisk"
96
- }, Ra = {
96
+ }, xa = {
97
97
  key: 1,
98
98
  class: "vd-field__popover"
99
- }, xa = ["id", "value", "type", "name", "inputmode", "placeholder", "disabled", "readonly", "autocomplete"], ja = {
99
+ }, ja = ["id", "value", "type", "name", "inputmode", "placeholder", "disabled", "readonly", "autocomplete"], Ia = {
100
100
  key: 0,
101
101
  class: "vd-field__icon-and-loader"
102
- }, Ia = {
102
+ }, qa = {
103
103
  key: 0,
104
104
  class: "vd-field__icon vd-field__icon--with-loader"
105
- }, qa = { key: 1 }, Ua = {
105
+ }, Ua = { key: 1 }, Ha = {
106
106
  key: 0,
107
107
  class: "vd-field__loader-circle"
108
- }, Ha = {
108
+ }, Wa = {
109
109
  key: 0,
110
110
  class: "vd-field__message vd-field__message--error"
111
- }, Wa = {
111
+ }, Ka = {
112
112
  key: 1,
113
113
  class: "vd-field__message vd-field__message--information"
114
114
  }, Ae = /* @__PURE__ */ q({
@@ -146,7 +146,7 @@ const Oa = ["href", "target", "tabindex"], $a = {
146
146
  }, B = (g) => {
147
147
  l("change", s(g.target.value));
148
148
  };
149
- return (g, h) => (c(), S("div", Ta, [
149
+ return (g, h) => (c(), S("div", za, [
150
150
  O("div", {
151
151
  onClick: h[0] || (h[0] = Le(() => {
152
152
  }, ["prevent"])),
@@ -161,17 +161,17 @@ const Oa = ["href", "target", "tabindex"], $a = {
161
161
  R(g.$slots, "label", {}, () => [
162
162
  G(I(e.label), 1)
163
163
  ]),
164
- e.required ? (c(), S("span", Da, "*")) : E("", !0)
164
+ e.required ? (c(), S("span", Ra, "*")) : E("", !0)
165
165
  ])
166
- ], 8, za)) : E("", !0),
167
- t(o).popover ? (c(), S("span", Ra, [
166
+ ], 8, Da)) : E("", !0),
167
+ t(o).popover ? (c(), S("span", xa, [
168
168
  R(g.$slots, "popover")
169
169
  ])) : E("", !0)
170
170
  ], 2),
171
171
  O("div", {
172
172
  class: x(["vd-field__wrapper", { "vd-field__wrapper-checkmark": r.value && !(e.icon || t(o).icon) }])
173
173
  }, [
174
- lt(O("input", {
174
+ rt(O("input", {
175
175
  id: t(d),
176
176
  onInput: y,
177
177
  onChange: B,
@@ -193,20 +193,20 @@ const Oa = ["href", "target", "tabindex"], $a = {
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, xa), [
197
- [t(ha), e.mask || void 0]
196
+ }, null, 42, ja), [
197
+ [t(ya), e.mask || void 0]
198
198
  ]),
199
- e.loading && e.icon && !e.iconLeft ? (c(), S("div", ja, [
199
+ e.loading && e.icon && !e.iconLeft ? (c(), S("div", Ia, [
200
200
  h[1] || (h[1] = O("div", { class: "vd-field__loader-circle vd-field__loader-circle--and-icon" }, null, -1)),
201
- e.icon || t(o).icon ? (c(), S("span", Ia, [
201
+ e.icon || t(o).icon ? (c(), S("span", qa, [
202
202
  R(g.$slots, "icon", {}, () => [
203
203
  O("i", {
204
204
  class: x(e.icon)
205
205
  }, null, 2)
206
206
  ])
207
207
  ])) : E("", !0)
208
- ])) : (c(), S("div", qa, [
209
- e.loading ? (c(), S("div", Ua)) : E("", !0),
208
+ ])) : (c(), S("div", Ua, [
209
+ e.loading ? (c(), S("div", Ha)) : E("", !0),
210
210
  e.icon || t(o).icon ? (c(), S("span", {
211
211
  key: 1,
212
212
  class: x(["vd-field__icon", { "vd-field__icon--left": e.iconLeft, "vd-field__icon--disabled": e.disabled }])
@@ -219,13 +219,13 @@ const Oa = ["href", "target", "tabindex"], $a = {
219
219
  ], 2)) : E("", !0)
220
220
  ]))
221
221
  ], 2),
222
- p.value || t(o).errorMessage ? (c(), S("div", Ha, [
222
+ p.value || t(o).errorMessage ? (c(), S("div", Wa, [
223
223
  R(g.$slots, "errorMessage", {}, () => [
224
224
  h[2] || (h[2] = O("i", { class: "fas fa-exclamation-circle vd-field__message-icon" }, null, -1)),
225
225
  G(" " + I(e.errorMessage), 1)
226
226
  ])
227
227
  ])) : E("", !0),
228
- e.infoMessage || t(o).information ? (c(), S("div", Wa, [
228
+ e.infoMessage || t(o).information ? (c(), S("div", Ka, [
229
229
  R(g.$slots, "information", {}, () => [
230
230
  h[3] || (h[3] = O("i", { class: "fas fa-info-circle vd-field__message-icon" }, null, -1)),
231
231
  G(" " + I(e.infoMessage), 1)
@@ -233,24 +233,24 @@ const Oa = ["href", "target", "tabindex"], $a = {
233
233
  ])) : E("", !0)
234
234
  ]));
235
235
  }
236
- }), Ka = { class: "vd-field" }, Ga = ["for"], Ya = {
236
+ }), Ga = { class: "vd-field" }, Ya = ["for"], Ja = {
237
237
  key: 0,
238
238
  class: "vd-field__asterisk"
239
- }, Ja = {
239
+ }, Qa = {
240
240
  key: 1,
241
241
  class: "vd-field__popover"
242
- }, Qa = { class: "vd-field__wrapper" }, Za = ["id", "name", "disabled"], Xa = {
242
+ }, Za = { class: "vd-field__wrapper" }, Xa = ["id", "name", "disabled"], ei = {
243
243
  key: 0,
244
244
  value: "",
245
245
  disabled: "",
246
246
  selected: ""
247
- }, ei = ["value", "selected", "disabled"], ti = {
247
+ }, ti = ["value", "selected", "disabled"], ai = {
248
248
  key: 0,
249
249
  class: "vd-field__icon-and-loader"
250
- }, ai = ["for"], ii = {
250
+ }, ii = ["for"], ni = {
251
251
  key: 0,
252
252
  class: "vd-field__message vd-field__message--error"
253
- }, ni = {
253
+ }, oi = {
254
254
  key: 1,
255
255
  class: "vd-field__message vd-field__message--information"
256
256
  }, Ve = /* @__PURE__ */ q({
@@ -283,7 +283,7 @@ const Oa = ["href", "target", "tabindex"], $a = {
283
283
  }, B = (g) => {
284
284
  l("blur", g.target.value);
285
285
  };
286
- return (g, h) => (c(), S("div", Ka, [
286
+ return (g, h) => (c(), S("div", Ga, [
287
287
  O("div", {
288
288
  class: x(["vd-field__label-wrapper", { "vd-field__label-wrapper--disabled": e.disabled }])
289
289
  }, [
@@ -296,15 +296,15 @@ const Oa = ["href", "target", "tabindex"], $a = {
296
296
  R(g.$slots, "label", {}, () => [
297
297
  G(I(e.label), 1)
298
298
  ]),
299
- e.required ? (c(), S("span", Ya, "*")) : E("", !0)
299
+ e.required ? (c(), S("span", Ja, "*")) : E("", !0)
300
300
  ])
301
- ], 8, Ga)) : E("", !0),
302
- t(o).popover ? (c(), S("span", Ja, [
301
+ ], 8, Ya)) : E("", !0),
302
+ t(o).popover ? (c(), S("span", Qa, [
303
303
  R(g.$slots, "popover")
304
304
  ])) : E("", !0)
305
305
  ], 2),
306
- O("div", Qa, [
307
- lt(O("select", {
306
+ O("div", Za, [
307
+ rt(O("select", {
308
308
  id: t(d),
309
309
  "onUpdate:modelValue": h[0] || (h[0] = (_) => s.value = _),
310
310
  onChange: V,
@@ -321,17 +321,17 @@ const Oa = ["href", "target", "tabindex"], $a = {
321
321
  }
322
322
  ]])
323
323
  }, [
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", {
324
+ e.placeholder ? (c(), S("option", ei, I(e.placeholder), 1)) : E("", !0),
325
+ (c(!0), S(He, null, st(e.options, (_, T) => (c(), S("option", {
326
326
  key: _.value + "_" + T,
327
327
  value: _.value,
328
328
  selected: _.selected || !1,
329
329
  disabled: _.disabled || !1
330
- }, I(_.title), 9, ei))), 128))
331
- ], 42, Za), [
332
- [Qt, s.value]
330
+ }, I(_.title), 9, ti))), 128))
331
+ ], 42, Xa), [
332
+ [Zt, s.value]
333
333
  ]),
334
- e.loading ? (c(), S("div", ti, [...h[1] || (h[1] = [
334
+ e.loading ? (c(), S("div", ai, [...h[1] || (h[1] = [
335
335
  O("div", { class: "vd-field__loader-circle vd-field__loader-circle--and-icon" }, null, -1),
336
336
  O("span", { class: "vd-field__icon vd-field__icon--with-loader" }, [
337
337
  O("i", { class: "fas vd-field__select-icon--with-loader" })
@@ -340,15 +340,15 @@ const Oa = ["href", "target", "tabindex"], $a = {
340
340
  key: 1,
341
341
  for: t(d),
342
342
  class: "vd-field__select-icon"
343
- }, null, 8, ai))
343
+ }, null, 8, ii))
344
344
  ]),
345
- p.value || t(o).errorMessage ? (c(), S("div", ii, [
345
+ p.value || t(o).errorMessage ? (c(), S("div", ni, [
346
346
  R(g.$slots, "errorMessage", {}, () => [
347
347
  h[2] || (h[2] = O("i", { class: "fas fa-exclamation-circle vd-field__message-icon" }, null, -1)),
348
348
  G(" " + I(e.errorMessage), 1)
349
349
  ])
350
350
  ])) : E("", !0),
351
- e.infoMessage || t(o).information ? (c(), S("div", ni, [
351
+ e.infoMessage || t(o).information ? (c(), S("div", oi, [
352
352
  R(g.$slots, "information", {}, () => [
353
353
  h[3] || (h[3] = O("i", { class: "fas fa-info-circle vd-field__message-icon" }, null, -1)),
354
354
  G(" " + I(e.infoMessage), 1)
@@ -357,24 +357,24 @@ const Oa = ["href", "target", "tabindex"], $a = {
357
357
  ]));
358
358
  }
359
359
  });
360
- function oi(e, a) {
360
+ function li(e, a) {
361
361
  return e === a || Number.isNaN(e) && Number.isNaN(a);
362
362
  }
363
- function Lt(e) {
363
+ function Nt(e) {
364
364
  if (e == null) return "";
365
365
  if (typeof e == "string") return e;
366
- if (Array.isArray(e)) return e.map(Lt).join(",");
366
+ if (Array.isArray(e)) return e.map(Nt).join(",");
367
367
  const a = String(e);
368
368
  return a === "0" && Object.is(Number(e), -0) ? "-0" : a;
369
369
  }
370
- function st(e) {
370
+ function dt(e) {
371
371
  var a;
372
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 Nt(e) {
375
- if (Array.isArray(e)) return e.map(st);
374
+ function Tt(e) {
375
+ if (Array.isArray(e)) return e.map(dt);
376
376
  if (typeof e == "symbol") return [e];
377
- e = Lt(e);
377
+ e = Nt(e);
378
378
  const a = [], i = e.length;
379
379
  if (i === 0) return a;
380
380
  let n = 0, l = "", o = "", d = !1;
@@ -396,7 +396,7 @@ function Nt(e) {
396
396
  function je(e) {
397
397
  return e === "__proto__";
398
398
  }
399
- function li(e) {
399
+ function ri(e) {
400
400
  switch (typeof e) {
401
401
  case "number":
402
402
  case "symbol":
@@ -411,23 +411,23 @@ function Se(e, a, i) {
411
411
  case "string": {
412
412
  if (je(a)) return i;
413
413
  const n = e[a];
414
- return n === void 0 ? li(a) && !Object.hasOwn(e, a) ? Se(e, Nt(a), i) : i : n;
414
+ return n === void 0 ? ri(a) && !Object.hasOwn(e, a) ? Se(e, Tt(a), i) : i : n;
415
415
  }
416
416
  case "number":
417
417
  case "symbol": {
418
- typeof a == "number" && (a = st(a));
418
+ typeof a == "number" && (a = dt(a));
419
419
  const n = e[a];
420
420
  return n === void 0 ? i : n;
421
421
  }
422
422
  default: {
423
- if (Array.isArray(a)) return ri(e, a, i);
423
+ if (Array.isArray(a)) return si(e, a, i);
424
424
  if (Object.is(a == null ? void 0 : a.valueOf(), -0) ? a = "-0" : a = String(a), je(a)) return i;
425
425
  const n = e[a];
426
426
  return n === void 0 ? i : n;
427
427
  }
428
428
  }
429
429
  }
430
- function ri(e, a, i) {
430
+ function si(e, a, i) {
431
431
  if (a.length === 0) return i;
432
432
  let n = e;
433
433
  for (let l = 0; l < a.length; l++) {
@@ -436,70 +436,70 @@ function ri(e, a, i) {
436
436
  }
437
437
  return n === void 0 ? i : n;
438
438
  }
439
- function gt(e) {
439
+ function ht(e) {
440
440
  return e !== null && (typeof e == "object" || typeof e == "function");
441
441
  }
442
- const si = /^(?:0|[1-9]\d*)$/;
443
- function di(e, a = Number.MAX_SAFE_INTEGER) {
442
+ const di = /^(?:0|[1-9]\d*)$/;
443
+ function ui(e, a = Number.MAX_SAFE_INTEGER) {
444
444
  switch (typeof e) {
445
445
  case "number":
446
446
  return Number.isInteger(e) && e >= 0 && e < a;
447
447
  case "symbol":
448
448
  return !1;
449
449
  case "string":
450
- return si.test(e);
450
+ return di.test(e);
451
451
  }
452
452
  }
453
- function ui(e) {
453
+ function mi(e) {
454
454
  return typeof e == "symbol" || e instanceof Symbol;
455
455
  }
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);
456
+ const ci = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, fi = /^\w*$/;
457
+ function vi(e, a) {
458
+ return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || mi(e) ? !0 : typeof e == "string" && (fi.test(e) || !ci.test(e)) || a != null && Object.hasOwn(a, e);
459
459
  }
460
- const vi = (e, a, i) => {
460
+ const bi = (e, a, i) => {
461
461
  const n = e[a];
462
- (!(Object.hasOwn(e, a) && oi(n, i)) || i === void 0 && !(a in e)) && (e[a] = i);
462
+ (!(Object.hasOwn(e, a) && li(n, i)) || i === void 0 && !(a in e)) && (e[a] = i);
463
463
  };
464
- function bi(e, a, i, n) {
465
- if (e == null && !gt(e)) return e;
464
+ function pi(e, a, i, n) {
465
+ if (e == null && !ht(e)) return e;
466
466
  let l;
467
- fi(a, e) ? l = [a] : Array.isArray(a) ? l = a : l = Nt(a);
467
+ vi(a, e) ? l = [a] : Array.isArray(a) ? l = a : l = Tt(a);
468
468
  const o = i(Se(e, l));
469
469
  let d = e;
470
470
  for (let s = 0; s < l.length && d != null; s++) {
471
- const m = st(l[s]);
471
+ const m = dt(l[s]);
472
472
  if (je(m)) continue;
473
473
  let r;
474
474
  if (s === l.length - 1) r = o;
475
475
  else {
476
476
  const f = d[m], p = n == null ? void 0 : n(f, m, e);
477
- r = p !== void 0 ? p : gt(f) ? f : di(l[s + 1]) ? [] : {};
477
+ r = p !== void 0 ? p : ht(f) ? f : ui(l[s + 1]) ? [] : {};
478
478
  }
479
- vi(d, m, r), d = d[m];
479
+ bi(d, m, r), d = d[m];
480
480
  }
481
481
  return e;
482
482
  }
483
- function pi(e, a, i) {
484
- return bi(e, a, () => i, () => {
483
+ function gi(e, a, i) {
484
+ return pi(e, a, () => i, () => {
485
485
  });
486
486
  }
487
- const gi = {
487
+ const hi = {
488
488
  key: 0,
489
489
  class: "vd-field__asterisk"
490
- }, hi = {
490
+ }, yi = {
491
491
  key: 1,
492
492
  class: "vd-field__popover"
493
- }, yi = { class: "vd-field__wrapper" }, ki = {
493
+ }, ki = { class: "vd-field__wrapper" }, Si = {
494
494
  key: 1,
495
495
  class: "vd-field__loader-circle"
496
- }, Si = {
496
+ }, Vi = {
497
497
  key: 0,
498
498
  class: "vd-field__message vd-field__message--error"
499
- }, Vi = {
499
+ }, Bi = {
500
500
  key: 1,
501
501
  class: "vd-field__message vd-field__message--information"
502
- }, Tt = /* @__PURE__ */ q({
502
+ }, zt = /* @__PURE__ */ q({
503
503
  __name: "VdSearchableSelect",
504
504
  props: /* @__PURE__ */ Z({
505
505
  id: {},
@@ -534,15 +534,15 @@ const gi = {
534
534
  }),
535
535
  emits: /* @__PURE__ */ Z(["blur", "select", "clear", "search"], ["update:modelValue", "update:open", "update:searchTerm"]),
536
536
  setup(e, { emit: a }) {
537
- const i = e, n = Sa(
538
- Ft(
537
+ const i = e, n = Va(
538
+ Lt(
539
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 = 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) => {
545
+ ), l = de(e, "modelValue"), o = de(e, "open"), d = de(e, "searchTerm"), s = a, m = be(), r = i.id ?? Ue(), f = F(() => !!i.icon || !!m.icon), p = (b) => typeof b == "object" && b !== null, y = (b) => p(b) ? Se(b, i.labelKey) ?? b.title ?? "" : String(b), V = (b) => p(b) ? i.valueKey === null ? b : Se(b, i.valueKey) : b, B = (b) => p(b) ? b.disabled : void 0, g = (b, A) => b === void 0 || A === void 0 ? !1 : !p(b) || !p(A) ? b === A : typeof i.by == "function" ? i.by(b, A) : typeof i.by == "string" ? Se(b, i.by) === Se(A, i.by) : ka(b, A), h = (b) => b == null || b === "", _ = F(() => !h(l.value)), T = F(() => i.errorMessage ? "error" : _.value && i.verified && !i.loading ? "verified" : "default"), z = (b) => {
546
546
  if (h(b))
547
547
  return "";
548
548
  if (i.displayValue)
@@ -554,7 +554,7 @@ const gi = {
554
554
  }, P = () => {
555
555
  l.value = void 0, s("clear");
556
556
  };
557
- return (b, A) => (c(), H(t(Va), M({
557
+ return (b, A) => (c(), H(t(Ba), M({
558
558
  class: "vd-field",
559
559
  modelValue: l.value,
560
560
  "onUpdate:modelValue": A[3] || (A[3] = (w) => l.value = w),
@@ -567,7 +567,7 @@ const gi = {
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(Ba), {
570
+ e.label || m.label ? (c(), H(t(Aa), {
571
571
  key: 0,
572
572
  for: t(r),
573
573
  class: "vd-field__label"
@@ -577,17 +577,17 @@ const gi = {
577
577
  R(b.$slots, "label", {}, () => [
578
578
  G(I(e.label), 1)
579
579
  ]),
580
- e.required ? (c(), S("span", gi, "*")) : E("", !0)
580
+ e.required ? (c(), S("span", hi, "*")) : E("", !0)
581
581
  ])
582
582
  ]),
583
583
  _: 3
584
584
  }, 8, ["for"])) : E("", !0),
585
- m.popover ? (c(), S("span", hi, [
585
+ m.popover ? (c(), S("span", yi, [
586
586
  R(b.$slots, "popover")
587
587
  ])) : E("", !0)
588
588
  ], 2),
589
- O("div", yi, [
590
- u(t(Aa), {
589
+ O("div", ki, [
590
+ u(t(Ca), {
591
591
  id: t(r),
592
592
  modelValue: d.value,
593
593
  "onUpdate:modelValue": A[0] || (A[0] = (w) => d.value = w),
@@ -610,7 +610,7 @@ const gi = {
610
610
  }, null, 2)
611
611
  ])
612
612
  ], 2)) : E("", !0),
613
- e.loading ? (c(), S("div", ki)) : e.clearable && _.value ? (c(), H(t(Ca), {
613
+ e.loading ? (c(), S("div", Si)) : e.clearable && _.value ? (c(), H(t(_a), {
614
614
  key: 2,
615
615
  as: "span",
616
616
  class: "vd-field__icon",
@@ -620,7 +620,7 @@ const gi = {
620
620
  O("i", { class: "far fa-times vd-field__icon--clickable" }, null, -1)
621
621
  ])]),
622
622
  _: 1
623
- })) : (c(), H(t(_a), {
623
+ })) : (c(), H(t(Ea), {
624
624
  key: 3,
625
625
  as: "span",
626
626
  class: "vd-field__icon"
@@ -632,11 +632,11 @@ const gi = {
632
632
  ]),
633
633
  _: 1
634
634
  })),
635
- u(t(Ea), { class: "vd-combobox" }, {
635
+ u(t(Ma), { class: "vd-combobox" }, {
636
636
  default: v(() => [
637
- u(t(Ma), { class: "vd-combobox__list" }, {
637
+ u(t(wa), { class: "vd-combobox__list" }, {
638
638
  default: v(() => [
639
- e.virtual ? (c(), H(t(wa), {
639
+ e.virtual ? (c(), H(t(Pa), {
640
640
  key: 0,
641
641
  options: e.options,
642
642
  "estimate-size": e.estimateSize,
@@ -644,7 +644,7 @@ const gi = {
644
644
  "text-content": y
645
645
  }, {
646
646
  default: v(({ option: w }) => [
647
- u(t(bt), {
647
+ u(t(pt), {
648
648
  value: V(w),
649
649
  "text-value": y(w),
650
650
  disabled: B(w),
@@ -657,7 +657,7 @@ const gi = {
657
657
  }, () => [
658
658
  G(I(y(w)), 1)
659
659
  ]),
660
- u(t(pt), { class: "vd-combobox__check" }, {
660
+ u(t(gt), { class: "vd-combobox__check" }, {
661
661
  default: v(() => [...A[6] || (A[6] = [
662
662
  O("i", { class: "far fa-check" }, null, -1)
663
663
  ])]),
@@ -668,7 +668,7 @@ const gi = {
668
668
  }, 1032, ["value", "text-value", "disabled", "onSelect"])
669
669
  ]),
670
670
  _: 3
671
- }, 8, ["options", "estimate-size", "overscan"])) : (c(!0), S(He, { key: 1 }, rt(e.options, (w, U) => (c(), H(t(bt), {
671
+ }, 8, ["options", "estimate-size", "overscan"])) : (c(!0), S(He, { key: 1 }, st(e.options, (w, U) => (c(), H(t(pt), {
672
672
  key: U,
673
673
  value: V(w),
674
674
  "text-value": y(w),
@@ -680,7 +680,7 @@ const gi = {
680
680
  R(b.$slots, "item", { option: w }, () => [
681
681
  G(I(y(w)), 1)
682
682
  ]),
683
- u(t(pt), { class: "vd-combobox__check" }, {
683
+ u(t(gt), { class: "vd-combobox__check" }, {
684
684
  default: v(() => [...A[7] || (A[7] = [
685
685
  O("i", { class: "far fa-check" }, null, -1)
686
686
  ])]),
@@ -689,7 +689,7 @@ const gi = {
689
689
  ]),
690
690
  _: 2
691
691
  }, 1032, ["value", "text-value", "disabled", "onSelect"]))), 128)),
692
- u(t(Pa), { class: "vd-combobox__empty" }, {
692
+ u(t(Oa), { class: "vd-combobox__empty" }, {
693
693
  default: v(() => [
694
694
  G(I(e.noResultsText), 1)
695
695
  ]),
@@ -702,13 +702,13 @@ const gi = {
702
702
  _: 3
703
703
  })
704
704
  ]),
705
- T.value === "error" || m.errorMessage ? (c(), S("div", Si, [
705
+ T.value === "error" || m.errorMessage ? (c(), S("div", Vi, [
706
706
  R(b.$slots, "errorMessage", {}, () => [
707
707
  A[8] || (A[8] = O("i", { class: "fas fa-exclamation-circle vd-field__message-icon" }, null, -1)),
708
708
  G(" " + I(e.errorMessage), 1)
709
709
  ])
710
710
  ])) : E("", !0),
711
- e.infoMessage || m.information ? (c(), S("div", Vi, [
711
+ e.infoMessage || m.information ? (c(), S("div", Bi, [
712
712
  R(b.$slots, "information", {}, () => [
713
713
  A[9] || (A[9] = O("i", { class: "fas fa-info-circle vd-field__message-icon" }, null, -1)),
714
714
  G(" " + I(e.infoMessage), 1)
@@ -718,7 +718,7 @@ const gi = {
718
718
  _: 3
719
719
  }, 16, ["modelValue", "open"]));
720
720
  }
721
- }), Bi = { class: "vd-radio-field" }, Ai = { class: "vd-radio-field__input" }, Ci = ["id", "disabled", "name", "value"], _i = ["for"], Ei = /* @__PURE__ */ q({
721
+ }), Ai = { class: "vd-radio-field" }, Ci = { class: "vd-radio-field__input" }, _i = ["id", "disabled", "name", "value"], Ei = ["for"], Mi = /* @__PURE__ */ q({
722
722
  __name: "VdRadio",
723
723
  props: /* @__PURE__ */ Z({
724
724
  name: {},
@@ -739,9 +739,9 @@ const gi = {
739
739
  }, m = (r) => {
740
740
  l("blur", i.value, r.target.value);
741
741
  };
742
- return (r, f) => (c(), S("div", Bi, [
743
- O("div", Ai, [
744
- lt(O("input", {
742
+ return (r, f) => (c(), S("div", Ai, [
743
+ O("div", Ci, [
744
+ rt(O("input", {
745
745
  id: t(d),
746
746
  "onUpdate:modelValue": f[0] || (f[0] = (p) => n.value = p),
747
747
  onChange: s,
@@ -754,8 +754,8 @@ const gi = {
754
754
  "vd-radio--green": e.green
755
755
  }]),
756
756
  type: "radio"
757
- }, null, 42, Ci), [
758
- [Zt, n.value]
757
+ }, null, 42, _i), [
758
+ [Xt, n.value]
759
759
  ])
760
760
  ]),
761
761
  e.label || t(o).label ? (c(), S("label", {
@@ -766,20 +766,20 @@ const gi = {
766
766
  R(r.$slots, "label", {}, () => [
767
767
  G(I(e.label), 1)
768
768
  ])
769
- ], 8, _i)) : E("", !0),
769
+ ], 8, Ei)) : E("", !0),
770
770
  R(r.$slots, "popover")
771
771
  ]));
772
772
  }
773
- }), Mi = ["disabled"], wi = { class: "vd-field__label" }, Pi = {
773
+ }), wi = ["disabled"], Pi = { class: "vd-field__label" }, Oi = {
774
774
  key: 0,
775
775
  class: "vd-field__asterisk"
776
- }, Oi = {
776
+ }, $i = {
777
777
  key: 0,
778
778
  class: "vd-field__popover"
779
- }, $i = {
779
+ }, Fi = {
780
780
  key: 1,
781
781
  class: "vd-field__message vd-field__message--error"
782
- }, Fi = {
782
+ }, Li = {
783
783
  key: 2,
784
784
  class: "vd-field__message vd-field__message--information"
785
785
  }, Te = /* @__PURE__ */ q({
@@ -816,20 +816,20 @@ const gi = {
816
816
  key: 0,
817
817
  class: x(["vd-field__label-wrapper", { "vd-field__label-wrapper--disabled": e.disabled }])
818
818
  }, [
819
- O("div", wi, [
819
+ O("div", Pi, [
820
820
  R(f.$slots, "legend", {}, () => [
821
821
  G(I(e.legend), 1)
822
822
  ]),
823
- e.required ? (c(), S("span", Pi, "*")) : E("", !0)
823
+ e.required ? (c(), S("span", Oi, "*")) : E("", !0)
824
824
  ]),
825
- t(o).popover ? (c(), S("span", Oi, [
825
+ t(o).popover ? (c(), S("span", $i, [
826
826
  R(f.$slots, "popover")
827
827
  ])) : E("", !0)
828
828
  ], 2)) : E("", !0),
829
829
  O("div", {
830
830
  class: x(["vd-radio-group__list", e.groupClass])
831
831
  }, [
832
- (c(!0), S(He, null, rt(e.options, (y) => (c(), H(Ei, {
832
+ (c(!0), S(He, null, st(e.options, (y) => (c(), H(Mi, {
833
833
  key: y.value,
834
834
  modelValue: n.value,
835
835
  "onUpdate:modelValue": p[0] || (p[0] = (V) => n.value = V),
@@ -850,22 +850,22 @@ const gi = {
850
850
  _: 2
851
851
  }, 1032, ["modelValue", "value", "label", "name", "disabled", "invalid"]))), 128))
852
852
  ], 2),
853
- d.value ? (c(), S("div", $i, [
853
+ d.value ? (c(), S("div", Fi, [
854
854
  p[1] || (p[1] = O("i", { class: "fas fa-exclamation-circle vd-field__message-icon" }, null, -1)),
855
855
  G(" " + I(e.errorMessage), 1)
856
856
  ])) : E("", !0),
857
- e.infoMessage || t(o).information ? (c(), S("div", Fi, [
857
+ e.infoMessage || t(o).information ? (c(), S("div", Li, [
858
858
  R(f.$slots, "information", {}, () => [
859
859
  p[2] || (p[2] = O("i", { class: "fas fa-info-circle vd-field__message-icon" }, null, -1)),
860
860
  G(" " + I(e.infoMessage), 1)
861
861
  ])
862
862
  ])) : E("", !0)
863
- ], 10, Mi));
863
+ ], 10, wi));
864
864
  }
865
- }), Li = { class: "vd-notification__content" }, Ni = {
865
+ }), Ni = { class: "vd-notification__content" }, Ti = {
866
866
  key: 0,
867
867
  class: "vd-notification__title"
868
- }, Ti = /* @__PURE__ */ q({
868
+ }, zi = /* @__PURE__ */ q({
869
869
  __name: "VdNotification",
870
870
  props: {
871
871
  type: { default: "warning" },
@@ -890,18 +890,18 @@ const gi = {
890
890
  O("i", {
891
891
  class: x([e.icon || a[e.type], "vd-notification__icon"])
892
892
  }, null, 2),
893
- O("p", Li, [
894
- e.title ? (c(), S("span", Ni, I(e.title), 1)) : E("", !0),
893
+ O("p", Ni, [
894
+ e.title ? (c(), S("span", Ti, I(e.title), 1)) : E("", !0),
895
895
  R(i.$slots, "default", {}, () => [
896
896
  G(I(e.text), 1)
897
897
  ])
898
898
  ])
899
899
  ], 2));
900
900
  }
901
- }), zi = { class: "vd-popover__title" }, Di = {
901
+ }), Di = { class: "vd-popover__title" }, Ri = {
902
902
  key: 0,
903
903
  class: "vd-popover__title-icon"
904
- }, Ri = { key: 1 }, xi = /* @__PURE__ */ q({
904
+ }, xi = { key: 1 }, ji = /* @__PURE__ */ q({
905
905
  __name: "VdPopoverHeader",
906
906
  props: {
907
907
  title: { default: "" },
@@ -916,13 +916,13 @@ const gi = {
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", zi, [
920
- e.icon ? (c(), S("div", Di, [
919
+ O("div", Di, [
920
+ e.icon ? (c(), S("div", Ri, [
921
921
  O("i", {
922
922
  class: x(e.icon)
923
923
  }, null, 2)
924
924
  ])) : E("", !0),
925
- e.title ? (c(), S("span", Ri, I(e.title), 1)) : E("", !0)
925
+ e.title ? (c(), S("span", xi, I(e.title), 1)) : E("", !0)
926
926
  ])
927
927
  ]) : E("", !0),
928
928
  O("button", {
@@ -933,7 +933,7 @@ const gi = {
933
933
  ])])
934
934
  ], 2));
935
935
  }
936
- }), ji = ["innerHTML"], Ii = /* @__PURE__ */ q({
936
+ }), Ii = ["innerHTML"], qi = /* @__PURE__ */ q({
937
937
  __name: "VdPopoverTooltip",
938
938
  props: {
939
939
  content: { default: () => ({
@@ -950,7 +950,7 @@ const gi = {
950
950
  const i = a, n = () => {
951
951
  i("close");
952
952
  };
953
- return (l, o) => (c(), H(Xt, null, {
953
+ return (l, o) => (c(), H(ea, null, {
954
954
  default: v(() => [
955
955
  O("div", {
956
956
  onPointerdown: o[0] || (o[0] = Le(() => {
@@ -960,7 +960,7 @@ const gi = {
960
960
  e.variant ? `vd-popover__tooltip--${e.variant}` : ""
961
961
  ]])
962
962
  }, [
963
- e.hideHeaderTooltip ? E("", !0) : (c(), H(xi, {
963
+ e.hideHeaderTooltip ? E("", !0) : (c(), H(ji, {
964
964
  key: 0,
965
965
  onClose: n,
966
966
  title: e.content.title,
@@ -970,13 +970,13 @@ const gi = {
970
970
  key: 1,
971
971
  innerHTML: e.content.description,
972
972
  class: "vd-popover__description"
973
- }, null, 8, ji)) : E("", !0)
973
+ }, null, 8, Ii)) : E("", !0)
974
974
  ], 34)
975
975
  ]),
976
976
  _: 1
977
977
  }));
978
978
  }
979
- }), qi = { key: 1 }, Ui = /* @__PURE__ */ q({
979
+ }), Ui = { key: 1 }, Hi = /* @__PURE__ */ q({
980
980
  __name: "VdPopoverReference",
981
981
  props: {
982
982
  label: { default: "" },
@@ -992,7 +992,7 @@ const gi = {
992
992
  key: 0,
993
993
  class: x(e.icon)
994
994
  }, null, 2)) : E("", !0),
995
- e.label ? (c(), S("span", qi, I(e.label), 1)) : E("", !0),
995
+ e.label ? (c(), S("span", Ui, I(e.label), 1)) : E("", !0),
996
996
  e.iconLeft ? E("", !0) : (c(), S("i", {
997
997
  key: 2,
998
998
  class: x(e.icon)
@@ -1024,19 +1024,19 @@ const gi = {
1024
1024
  fullWidth: { type: Boolean, default: !1 }
1025
1025
  },
1026
1026
  setup(e) {
1027
- const a = e, i = Y(null), n = Y(null), { floatingStyles: l } = fa(i, n, {
1027
+ const a = e, i = Y(null), n = Y(null), { floatingStyles: l } = va(i, n, {
1028
1028
  placement: a.position,
1029
1029
  middleware: [
1030
- ba(a.offSet),
1031
- pa({
1030
+ pa(a.offSet),
1031
+ ga({
1032
1032
  mainAxis: !a.fixed
1033
1033
  }),
1034
- ga({
1034
+ ha({
1035
1035
  crossAxis: !1,
1036
1036
  padding: 10
1037
1037
  })
1038
1038
  ],
1039
- whileElementsMounted: va
1039
+ whileElementsMounted: ba
1040
1040
  }), o = Y(!1), d = Y(!1), s = () => {
1041
1041
  o.value = !0, d.value = !0;
1042
1042
  }, m = () => {
@@ -1070,7 +1070,7 @@ const gi = {
1070
1070
  isOpen: o.value,
1071
1071
  close: m
1072
1072
  }, () => [
1073
- u(Ui, {
1073
+ u(Hi, {
1074
1074
  variant: e.refVariant,
1075
1075
  label: e.label,
1076
1076
  icon: e.iconRef,
@@ -1084,11 +1084,11 @@ const gi = {
1084
1084
  ref: n,
1085
1085
  onPointerdown: B[0] || (B[0] = Le(() => {
1086
1086
  }, ["prevent"])),
1087
- style: ea(t(l)),
1087
+ style: ta(t(l)),
1088
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(Ii, {
1091
+ u(qi, {
1092
1092
  onClose: m,
1093
1093
  content: e.content,
1094
1094
  variant: e.tooltipVariant,
@@ -1100,18 +1100,18 @@ const gi = {
1100
1100
  ], 38)) : E("", !0)
1101
1101
  ], 2));
1102
1102
  }
1103
- }), Hi = (e, a) => {
1103
+ }), Wi = (e, a) => {
1104
1104
  const i = e.__vccOpts || e;
1105
1105
  for (const [n, l] of a)
1106
1106
  i[n] = l;
1107
1107
  return i;
1108
- }, Wi = {}, Ki = { class: "vd-form__row" };
1109
- function Gi(e, a) {
1110
- return c(), S("div", Ki, [
1108
+ }, Ki = {}, Gi = { class: "vd-form__row" };
1109
+ function Yi(e, a) {
1110
+ return c(), S("div", Gi, [
1111
1111
  R(e.$slots, "default")
1112
1112
  ]);
1113
1113
  }
1114
- const zt = /* @__PURE__ */ Hi(Wi, [["render", Gi]]), L = /* @__PURE__ */ q({
1114
+ const Dt = /* @__PURE__ */ Wi(Ki, [["render", Yi]]), L = /* @__PURE__ */ q({
1115
1115
  __name: "VdFormCol",
1116
1116
  props: {
1117
1117
  span: { default: null },
@@ -1130,16 +1130,16 @@ const zt = /* @__PURE__ */ Hi(Wi, [["render", Gi]]), L = /* @__PURE__ */ q({
1130
1130
  R(n.$slots, "default")
1131
1131
  ], 2));
1132
1132
  }
1133
- }), Yi = {
1133
+ }), Ji = {
1134
1134
  key: 0,
1135
1135
  class: "vd-form__banner"
1136
- }, Ji = ["innerHTML"], Qi = {
1136
+ }, Qi = ["innerHTML"], Zi = {
1137
1137
  key: 1,
1138
1138
  class: "vd-form__header"
1139
- }, Zi = {
1139
+ }, Xi = {
1140
1140
  key: 0,
1141
1141
  class: "vd-form__title"
1142
- }, Xi = {
1142
+ }, en = {
1143
1143
  key: 1,
1144
1144
  class: "vd-form__description"
1145
1145
  }, oe = /* @__PURE__ */ q({
@@ -1172,18 +1172,18 @@ const zt = /* @__PURE__ */ Hi(Wi, [["render", Gi]]), 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", Yi, [
1175
+ t(l).banner || e.banner ? (c(), S("div", Ji, [
1176
1176
  R(s.$slots, "banner", {}, () => [
1177
- O("span", { innerHTML: e.banner }, null, 8, Ji)
1177
+ O("span", { innerHTML: e.banner }, null, 8, Qi)
1178
1178
  ])
1179
1179
  ])) : E("", !0),
1180
- t(l).header || e.title || e.description ? (c(), S("div", Qi, [
1180
+ t(l).header || e.title || e.description ? (c(), S("div", Zi, [
1181
1181
  R(s.$slots, "header", {}, () => [
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)
1182
+ e.title ? (c(), S("h2", Xi, I(e.title), 1)) : E("", !0),
1183
+ e.description ? (c(), S("p", en, I(e.description), 1)) : E("", !0)
1184
1184
  ])
1185
1185
  ])) : E("", !0),
1186
- u(zt, null, {
1186
+ u(Dt, null, {
1187
1187
  default: v(() => [
1188
1188
  R(s.$slots, "default"),
1189
1189
  u(L, {
@@ -1193,7 +1193,7 @@ const zt = /* @__PURE__ */ Hi(Wi, [["render", Gi]]), L = /* @__PURE__ */ q({
1193
1193
  }, {
1194
1194
  default: v(() => [
1195
1195
  R(s.$slots, "action", {}, () => [
1196
- u(Na, {
1196
+ u(Ta, {
1197
1197
  label: e.submitLabel,
1198
1198
  "button-type": "green",
1199
1199
  size: "big",
@@ -1210,7 +1210,7 @@ const zt = /* @__PURE__ */ Hi(Wi, [["render", Gi]]), L = /* @__PURE__ */ q({
1210
1210
  })
1211
1211
  ], 34));
1212
1212
  }
1213
- }), en = /* @__PURE__ */ q({
1213
+ }), tn = /* @__PURE__ */ q({
1214
1214
  __name: "VdFormGroup",
1215
1215
  props: {
1216
1216
  span: { default: null },
@@ -1300,21 +1300,21 @@ const zt = /* @__PURE__ */ Hi(Wi, [["render", Gi]]), L = /* @__PURE__ */ q({
1300
1300
  } : void 0
1301
1301
  ]), 1040, ["modelValue", "label", "name", "required"]));
1302
1302
  }
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);
1303
+ }), an = (e) => e.replace(/\["(\d+)"\]/g, "[$1]"), et = (e, a) => `${e}${a}`, nn = (e) => (e.inner || []).reduce((a, i) => {
1304
+ const n = an(i.path);
1305
1305
  return a[n] || (a[n] = i.message), a;
1306
- }, {}), ht = (e) => {
1306
+ }, {}), yt = (e) => {
1307
1307
  if (!e.inner)
1308
1308
  throw e;
1309
- return an(e);
1310
- }, nn = {
1311
- isValidating: !1
1309
+ return nn(e);
1312
1310
  }, on = {
1311
+ isValidating: !1
1312
+ }, ln = {
1313
1313
  validateAt: "blur",
1314
1314
  strict: !0,
1315
1315
  abortEarly: !1
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({
1316
+ }, Rt = Symbol("useValidator"), le = (e, a, i) => {
1317
+ const n = { ...ln, ...i }, l = Re(a), o = Y(Re(l)), d = Y({}), s = Y(!1), m = Y(!1), r = Y({}), f = (k) => F({
1318
1318
  get: () => h(k),
1319
1319
  set: (C) => _(k, C)
1320
1320
  }), p = (k, C) => F(() => ({
@@ -1333,18 +1333,18 @@ const zt = /* @__PURE__ */ Hi(Wi, [["render", Gi]]), 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
- pi(o.value, k, C);
1336
+ gi(o.value, k, C);
1337
1337
  }, T = (k, C) => {
1338
1338
  C === "blur" && re(k);
1339
1339
  }, z = (k, C) => {
1340
- C === "change" && at(() => re(k));
1340
+ C === "change" && it(() => re(k));
1341
1341
  }, $ = (k, C) => {
1342
- C === "input" && at(() => re(k));
1342
+ C === "input" && it(() => re(k));
1343
1343
  }, P = (k, C) => {
1344
1344
  const X = (C == null ? void 0 : C.validateAt) ?? n.validateAt;
1345
- g(k, nn);
1346
- const me = f(k), pe = p(k, X), Xe = y(k), ft = V(k);
1347
- return [me, pe, Xe, ft];
1345
+ g(k, on);
1346
+ const me = f(k), pe = p(k, X), Xe = y(k), vt = V(k);
1347
+ return [me, pe, Xe, vt];
1348
1348
  }, b = (k) => {
1349
1349
  const C = f(k), X = (ge, se) => {
1350
1350
  const Pe = (se == null ? void 0 : se.validateAt) ?? n.validateAt, De = et(k, ge);
@@ -1392,7 +1392,7 @@ const zt = /* @__PURE__ */ Hi(Wi, [["render", Gi]]), L = /* @__PURE__ */ q({
1392
1392
  C.startsWith(k) && ke(C);
1393
1393
  });
1394
1394
  }, U = async (k, C) => {
1395
- mt(!0);
1395
+ ct(!0);
1396
1396
  try {
1397
1397
  const X = await K();
1398
1398
  if (X && typeof k == "function")
@@ -1402,7 +1402,7 @@ const zt = /* @__PURE__ */ Hi(Wi, [["render", Gi]]), L = /* @__PURE__ */ q({
1402
1402
  } catch (X) {
1403
1403
  console.error(X);
1404
1404
  } finally {
1405
- mt(!1);
1405
+ ct(!1);
1406
1406
  }
1407
1407
  }, K = async () => {
1408
1408
  ue(!0), Q();
@@ -1412,7 +1412,7 @@ const zt = /* @__PURE__ */ Hi(Wi, [["render", Gi]]), L = /* @__PURE__ */ q({
1412
1412
  abortEarly: n.abortEarly
1413
1413
  }), o.value;
1414
1414
  } catch (k) {
1415
- const C = ht(k);
1415
+ const C = yt(k);
1416
1416
  Me(C);
1417
1417
  } finally {
1418
1418
  ue(!1);
@@ -1425,7 +1425,7 @@ const zt = /* @__PURE__ */ Hi(Wi, [["render", Gi]]), L = /* @__PURE__ */ q({
1425
1425
  abortEarly: n.abortEarly
1426
1426
  });
1427
1427
  } catch (C) {
1428
- const X = ht(C);
1428
+ const X = yt(C);
1429
1429
  Me(X);
1430
1430
  } finally {
1431
1431
  g(k, { isValidating: !1 });
@@ -1442,9 +1442,9 @@ const zt = /* @__PURE__ */ Hi(Wi, [["render", Gi]]), L = /* @__PURE__ */ q({
1442
1442
  d.value = {};
1443
1443
  }, ue = (k) => {
1444
1444
  m.value = k;
1445
- }, mt = (k) => {
1445
+ }, ct = (k) => {
1446
1446
  s.value = k;
1447
- }, ct = {
1447
+ }, ft = {
1448
1448
  formData: o,
1449
1449
  errors: F(() => d.value),
1450
1450
  isValid: F(() => Object.keys(d.value).length === 0),
@@ -1463,18 +1463,18 @@ const zt = /* @__PURE__ */ Hi(Wi, [["render", Gi]]), L = /* @__PURE__ */ q({
1463
1463
  validateForm: K,
1464
1464
  validateField: re
1465
1465
  };
1466
- return ta(Dt, ct), ct;
1467
- }, ln = () => {
1468
- const e = aa(Dt);
1466
+ return aa(Rt, ft), ft;
1467
+ }, rn = () => {
1468
+ const e = ia(Rt);
1469
1469
  if (!e)
1470
1470
  throw new Error(
1471
1471
  "useValidatorContext must be used within a component that has called useValidator"
1472
1472
  );
1473
1473
  return e;
1474
- }, rn = { class: "vd-field" }, sn = {
1474
+ }, sn = { class: "vd-field" }, dn = {
1475
1475
  key: 0,
1476
1476
  class: "vd-field__message vd-field__message--error"
1477
- }, dn = {
1477
+ }, un = {
1478
1478
  key: 1,
1479
1479
  class: "vd-field__message vd-field__message--information"
1480
1480
  }, Ce = /* @__PURE__ */ q({
@@ -1489,21 +1489,21 @@ const zt = /* @__PURE__ */ Hi(Wi, [["render", Gi]]), L = /* @__PURE__ */ q({
1489
1489
  getFieldMeta: s,
1490
1490
  getError: m,
1491
1491
  removeError: r
1492
- } = ln(), [f, , p] = o(`${i}.zipCode`), [y, , V] = o(`${i}.houseNumber`), [B, , g] = o(`${i}.houseNumberAddition`), h = async () => {
1492
+ } = rn(), [f, , p] = o(`${i}.zipCode`), [y, , V] = o(`${i}.houseNumber`), [B, , g] = o(`${i}.houseNumberAddition`), h = async () => {
1493
1493
  await d(i), B.value || r(`${i}.houseNumberAddition`);
1494
1494
  }, _ = (U) => {
1495
1495
  f.value && y.value ? h() : d(U);
1496
- }, T = () => _(`${i}.zipCode`), z = () => _(`${i}.houseNumber`), $ = () => at(() => d(i)), P = s(i), b = F(() => m(i) ?? ""), A = F(() => n.value !== null), w = F(
1496
+ }, T = () => _(`${i}.zipCode`), z = () => _(`${i}.houseNumber`), $ = () => it(() => d(i)), P = s(i), b = F(() => m(i) ?? ""), A = F(() => n.value !== null), w = F(
1497
1497
  () => l.value.length === 0 ? "-" : "Kies een toevoeging"
1498
1498
  );
1499
1499
  return ce([f, y], () => {
1500
1500
  B.value && (B.value = ""), n.value = null, r(i), r(`${i}.houseNumberAddition`);
1501
1501
  }), ce(B, () => {
1502
1502
  n.value = null;
1503
- }), ia(() => {
1503
+ }), na(() => {
1504
1504
  f.value && y.value && h();
1505
- }), (U, K) => (c(), S("div", rn, [
1506
- u(zt, null, {
1505
+ }), (U, K) => (c(), S("div", sn, [
1506
+ u(Dt, null, {
1507
1507
  default: v(() => [
1508
1508
  u(L, {
1509
1509
  span: "5",
@@ -1529,7 +1529,7 @@ const zt = /* @__PURE__ */ Hi(Wi, [["render", Gi]]), L = /* @__PURE__ */ q({
1529
1529
  ]),
1530
1530
  _: 1
1531
1531
  }),
1532
- u(en, {
1532
+ u(tn, {
1533
1533
  span: "7",
1534
1534
  md: "3"
1535
1535
  }, {
@@ -1568,88 +1568,91 @@ const zt = /* @__PURE__ */ Hi(Wi, [["render", Gi]]), L = /* @__PURE__ */ q({
1568
1568
  ]),
1569
1569
  _: 1
1570
1570
  }),
1571
- b.value ? (c(), S("div", sn, [
1571
+ b.value ? (c(), S("div", dn, [
1572
1572
  K[3] || (K[3] = O("i", { class: "fas fa-exclamation-circle vd-field__message-icon" }, null, -1)),
1573
1573
  G(" " + I(b.value), 1)
1574
- ])) : t(n) ? (c(), S("div", dn, [
1574
+ ])) : t(n) ? (c(), S("div", un, [
1575
1575
  K[4] || (K[4] = O("i", { class: "fas fa-info-circle vd-field__message-icon" }, null, -1)),
1576
1576
  G(" " + I(t(n).street) + ", " + I(t(n).city), 1)
1577
1577
  ])) : E("", !0)
1578
1578
  ]));
1579
1579
  }
1580
1580
  });
1581
- Ke.extend(ca);
1582
- function Rt() {
1581
+ Ke.extend(fa);
1582
+ function xt() {
1583
1583
  return Ke().startOf("day");
1584
1584
  }
1585
- function un() {
1586
- return Rt().year();
1585
+ function mn() {
1586
+ return xt().year();
1587
1587
  }
1588
- function dt(e, a) {
1588
+ function ut(e, a) {
1589
1589
  const i = Ke(e ?? "", a, !0);
1590
1590
  return i.isValid() ? i.startOf("day") : null;
1591
1591
  }
1592
- function mn(e, a) {
1593
- const i = Rt();
1592
+ function cn(e, a) {
1593
+ const i = xt();
1594
1594
  return {
1595
1595
  today: i,
1596
1596
  earliest: i.subtract(a.value + 1, a.unit).add(1, "day"),
1597
1597
  latest: i.subtract(e.value, e.unit)
1598
1598
  };
1599
1599
  }
1600
- const cn = [
1600
+ const fn = [
1601
1601
  J.FamilyWithChildren,
1602
1602
  J.FamilyWithoutChildren
1603
1603
  ];
1604
- function it(e) {
1605
- return cn.includes(e);
1604
+ function nt(e) {
1605
+ return fn.includes(e);
1606
1606
  }
1607
- const fn = new sa(), vn = new ra(), bn = new la();
1608
- function Ge() {
1607
+ let tt;
1608
+ function vn() {
1609
1609
  return {
1610
- dataService: fn,
1611
- dataValidationService: vn,
1612
- homeService: bn
1610
+ dataService: new da(),
1611
+ dataValidationService: new sa(),
1612
+ homeService: new ra()
1613
1613
  };
1614
1614
  }
1615
- const pn = (e) => ({
1615
+ function Ge() {
1616
+ return tt || (tt = vn()), tt;
1617
+ }
1618
+ const bn = (e) => ({
1616
1619
  zipCode: e.ZipCode,
1617
1620
  houseNumber: String(e.HouseNumber),
1618
1621
  houseNumberAddition: e.HouseNumberAddition,
1619
1622
  city: e.Place,
1620
1623
  street: e.Street
1621
- }), yt = /^\d{4}\s?[a-zA-Z]{2}$/, kt = /^\d+$/, St = {
1624
+ }), kt = /^\d{4}\s?[a-zA-Z]{2}$/, St = /^\d+$/, Vt = {
1622
1625
  "needs-addition": "Een toevoeging is verplicht",
1623
1626
  "not-found": "Postcode en huisnummer combinatie onbekend.",
1624
1627
  error: "Adres ophalen is mislukt. Probeer het opnieuw."
1625
1628
  };
1626
- function Vt(e) {
1629
+ function Bt(e) {
1627
1630
  return e.replace(/\s/g, "").toUpperCase();
1628
1631
  }
1629
- const xt = "NO_ADDITION";
1632
+ const jt = "NO_ADDITION";
1630
1633
  function ye(e) {
1631
- return e === xt ? "" : e.replace("-", "");
1634
+ return e === jt ? "" : e.replace("-", "");
1632
1635
  }
1633
- const gn = (e) => e instanceof Error, jt = (e) => {
1634
- if (gn(e))
1636
+ const pn = (e) => e instanceof Error, It = (e) => {
1637
+ if (pn(e))
1635
1638
  throw e;
1636
1639
  return null;
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) => {
1640
+ }, qt = (e, a, i) => Ge().dataValidationService.validateZipCode(e, a, i).then((n) => n).catch(It), gn = (e, a) => Ge().homeService.getAddition({ zipcode: e, houseNumber: a }).then((i) => i ?? []).catch(It), hn = async (e, a) => {
1638
1641
  const [i, n] = await Promise.all([
1639
- It(e, a),
1640
- hn(e, a)
1642
+ qt(e, a),
1643
+ gn(e, a)
1641
1644
  ]);
1642
1645
  return !i && !(n != null && n.length) ? null : {
1643
1646
  validWithoutAddition: !!i,
1644
1647
  template: i,
1645
1648
  additions: n ?? []
1646
1649
  };
1647
- }, kn = (e) => {
1650
+ }, yn = (e) => {
1648
1651
  const a = e.additions.map((i) => ({
1649
1652
  title: i,
1650
1653
  value: ye(i)
1651
1654
  }));
1652
- return e.validWithoutAddition && a.length ? [{ title: "Geen toevoeging", value: xt }, ...a] : a;
1655
+ return e.validWithoutAddition && a.length ? [{ title: "Geen toevoeging", value: jt }, ...a] : a;
1653
1656
  }, _e = (e) => ({
1654
1657
  zipCode: "",
1655
1658
  houseNumber: "",
@@ -1664,20 +1667,20 @@ const gn = (e) => e instanceof Error, jt = (e) => {
1664
1667
  });
1665
1668
  let l = 0, o = null;
1666
1669
  const d = async (r) => {
1667
- const f = Vt(r.zipCode), p = r.houseNumber.trim(), y = ye(r.houseNumberAddition), V = `${f}:${p}`;
1670
+ const f = Bt(r.zipCode), p = r.houseNumber.trim(), y = ye(r.houseNumberAddition), V = `${f}:${p}`;
1668
1671
  try {
1669
1672
  let B = (o == null ? void 0 : o.key) === V ? o : null;
1670
1673
  if (!B) {
1671
- const h = await yn(f, p);
1674
+ const h = await hn(f, p);
1672
1675
  if (!h)
1673
1676
  return { status: "not-found", options: [], address: null };
1674
1677
  B = o = { key: V, verdict: h };
1675
1678
  }
1676
- const g = kn(B.verdict);
1679
+ const g = yn(B.verdict);
1677
1680
  if (B.verdict.additions.length && !r.houseNumberAddition)
1678
1681
  return { status: "needs-addition", options: g, address: null };
1679
1682
  if (!B.verdict.template) {
1680
- const h = await It(f, p, y);
1683
+ const h = await qt(f, p, y);
1681
1684
  if (!h)
1682
1685
  return { status: "not-found", options: [], address: null };
1683
1686
  B.verdict.template = h;
@@ -1692,23 +1695,23 @@ const gn = (e) => e instanceof Error, jt = (e) => {
1692
1695
  }
1693
1696
  }, s = async (r) => {
1694
1697
  const f = ++l, p = await d(r), y = f !== l;
1695
- return y || (i.value = p.options, a.value = p.address ? pn(p.address) : null), { ...p, stale: y };
1698
+ return y || (i.value = p.options, a.value = p.address ? bn(p.address) : null), { ...p, stale: y };
1696
1699
  }, m = te({
1697
- zipCode: ee().required("Vul je postcode in").matches(yt, "Postcode is incorrect"),
1698
- houseNumber: ee().required("Huisnummer is verplicht").matches(kt, "Huisnummer is incorrect"),
1700
+ zipCode: ee().required("Vul je postcode in").matches(kt, "Postcode is incorrect"),
1701
+ houseNumber: ee().required("Huisnummer is verplicht").matches(St, "Huisnummer is incorrect"),
1699
1702
  houseNumberAddition: ee().defined()
1700
1703
  }).test("address-lookup", async (r, f) => {
1701
- const p = Vt(r.zipCode ?? ""), y = String(r.houseNumber ?? "").trim();
1702
- if (!yt.test(p) || !kt.test(y))
1704
+ const p = Bt(r.zipCode ?? ""), y = String(r.houseNumber ?? "").trim();
1705
+ if (!kt.test(p) || !St.test(y))
1703
1706
  return !0;
1704
1707
  const { status: V, stale: B } = await s(r);
1705
1708
  return B || V === "resolved" ? !0 : V === "needs-addition" ? f.createError({
1706
1709
  path: `${f.path}.houseNumberAddition`,
1707
- message: St[V]
1708
- }) : f.createError({ message: St[V] });
1710
+ message: Vt[V]
1711
+ }) : f.createError({ message: Vt[V] });
1709
1712
  });
1710
1713
  return { path: e, addressSchema: m, resolvedAddress: a, resolvedFields: n, additionOptions: i };
1711
- }, ut = {
1714
+ }, mt = {
1712
1715
  [j.Car]: {
1713
1716
  apiTypes: ["Car", "Van"],
1714
1717
  dutch: "auto",
@@ -1729,19 +1732,19 @@ const gn = (e) => e instanceof Error, jt = (e) => {
1729
1732
  dutch: "caravan",
1730
1733
  icon: "fa-caravan-alt"
1731
1734
  }
1732
- }, Sn = Object.fromEntries(
1733
- Object.values(ut).flatMap(
1735
+ }, kn = Object.fromEntries(
1736
+ Object.values(mt).flatMap(
1734
1737
  ({ apiTypes: e, icon: a }) => e.map((i) => [i.toLowerCase(), a])
1735
1738
  )
1736
- ), Vn = {
1739
+ ), Sn = {
1737
1740
  brommobiel: "fa-car-side",
1738
1741
  "speed pedelec": "fa-bicycle"
1739
- }, Bn = (e) => !!(e != null && e.Brand) && !!e.Model && !!e.ManufacturingYear, An = (e) => {
1742
+ }, Vn = (e) => !!(e != null && e.Brand) && !!e.Model && !!e.ManufacturingYear, Bn = (e) => {
1740
1743
  if (!e)
1741
1744
  return "";
1742
1745
  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 = [
1746
+ return Sn[a] ?? kn[i] ?? "";
1747
+ }, An = (e) => e ? `${e.Brand} ${e.Model} (${e.ManufacturingYear})` : "", Ie = 6, Ut = [
1745
1748
  "@@-##-@@",
1746
1749
  "##-##-@@",
1747
1750
  "##-@@-@@",
@@ -1760,18 +1763,18 @@ const gn = (e) => e instanceof Error, jt = (e) => {
1760
1763
  function Oe(e) {
1761
1764
  return e.replace(/[\s\\-]/g, "");
1762
1765
  }
1763
- const Bt = "*".repeat(Ie), _n = qt.map((e) => e.replace(/-/g, ""));
1764
- function En(e) {
1766
+ const At = "*".repeat(Ie), Cn = Ut.map((e) => e.replace(/-/g, ""));
1767
+ function _n(e) {
1765
1768
  const a = Oe(e).slice(0, Ie);
1766
1769
  if (a.length < Ie)
1767
- return Bt;
1768
- const i = [...a].map((l) => /[0-9]/.test(l) ? "#" : "@").join(""), n = _n.indexOf(i);
1769
- return n === -1 ? Bt : qt[n];
1770
+ return At;
1771
+ const i = [...a].map((l) => /[0-9]/.test(l) ? "#" : "@").join(""), n = Cn.indexOf(i);
1772
+ return n === -1 ? At : Ut[n];
1770
1773
  }
1771
- const Mn = {
1774
+ const En = {
1772
1775
  key: 0,
1773
1776
  class: "vd-input-license-plate__loading-information"
1774
- }, wn = ["src"], Ye = /* @__PURE__ */ q({
1777
+ }, Mn = ["src"], Ye = /* @__PURE__ */ q({
1775
1778
  inheritAttrs: !1,
1776
1779
  __name: "VdLicensePlate",
1777
1780
  props: /* @__PURE__ */ Z({
@@ -1788,7 +1791,7 @@ const Mn = {
1788
1791
  }),
1789
1792
  emits: /* @__PURE__ */ Z(["input"], ["update:modelValue", "update:vehicleData"]),
1790
1793
  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({
1794
+ const i = { mask: _n }, n = e, l = de(e, "modelValue"), o = de(e, "vehicleData"), d = a, s = Ft(), m = be(), r = F({
1792
1795
  get: () => l.value ?? "",
1793
1796
  set: (g) => {
1794
1797
  l.value = g, d("input", g);
@@ -1798,10 +1801,10 @@ const Mn = {
1798
1801
  o.value && !f(g, o.value.LicensePlate) && (o.value = null);
1799
1802
  });
1800
1803
  const p = F(
1801
- () => Bn(o.value) ? o.value : null
1804
+ () => Vn(o.value) ? o.value : null
1802
1805
  ), y = F(
1803
1806
  () => n.loading || !!p.value && !n.errorMessage
1804
- ), V = F(() => An(p.value)), B = F(() => Cn(p.value));
1807
+ ), V = F(() => Bn(p.value)), B = F(() => An(p.value));
1805
1808
  return (g, h) => (c(), H(Ae, M({
1806
1809
  capitalize: "",
1807
1810
  autocomplete: ""
@@ -1833,7 +1836,7 @@ const Mn = {
1833
1836
  y.value ? {
1834
1837
  name: "information",
1835
1838
  fn: v(() => [
1836
- e.loading ? (c(), S("div", Mn, [...h[1] || (h[1] = [
1839
+ e.loading ? (c(), S("div", En, [...h[1] || (h[1] = [
1837
1840
  O("i", { class: "fas fa-circle-notch vd-input-license-plate__loading-icon" }, null, -1),
1838
1841
  G(" Voertuig gegevens ophalen... ", -1)
1839
1842
  ])])) : p.value ? (c(), S(He, { key: 1 }, [
@@ -1842,7 +1845,7 @@ const Mn = {
1842
1845
  src: `https://d12bmfj3oyxu0t.cloudfront.net/vergelijkdirect/icons/${V.value}.svg`,
1843
1846
  class: "vd-field__svg-message-icon",
1844
1847
  alt: "vehicle-icon"
1845
- }, null, 8, wn)) : E("", !0),
1848
+ }, null, 8, Mn)) : E("", !0),
1846
1849
  G(" " + I(B.value), 1)
1847
1850
  ], 64)) : E("", !0)
1848
1851
  ]),
@@ -1850,25 +1853,25 @@ const Mn = {
1850
1853
  } : void 0
1851
1854
  ]), 1040, ["modelValue", "name", "label", "required", "error-message", "loading"]));
1852
1855
  }
1853
- }), Fe = /* @__PURE__ */ new Map(), Ut = (e, a) => `${a}:${e}`, Pn = {
1854
- "wrong-type": (e) => `Het ingevoerde kenteken is geen ${ut[e].dutch}`,
1856
+ }), Fe = /* @__PURE__ */ new Map(), Ht = (e, a) => `${a}:${e}`, wn = {
1857
+ "wrong-type": (e) => `Het ingevoerde kenteken is geen ${mt[e].dutch}`,
1855
1858
  unknown: () => "Voertuig onbekend - Voer ander kenteken in of neem contact op",
1856
1859
  "not-found": () => "Kenteken onbekend",
1857
1860
  error: () => "Kenteken is incorrect"
1858
- }, On = async (e, a) => {
1861
+ }, Pn = async (e, a) => {
1859
1862
  try {
1860
1863
  const i = await Ge().dataService.findVehicle(e, a);
1861
1864
  if (Array.isArray(i) || !i || !Object.keys(i).length)
1862
1865
  return { status: "not-found" };
1863
1866
  const n = i;
1864
- return n.VehicleType ? ut[a].apiTypes.includes(n.VehicleType) ? { status: "found", data: n } : { status: "wrong-type" } : { status: "unknown" };
1867
+ return n.VehicleType ? mt[a].apiTypes.includes(n.VehicleType) ? { status: "found", data: n } : { status: "wrong-type" } : { status: "unknown" };
1865
1868
  } catch (i) {
1866
1869
  return console.error("Error on ITC findVehicle", i), { status: "error" };
1867
1870
  }
1868
- }, $n = (e, a) => {
1869
- const i = Ut(e, a);
1871
+ }, On = (e, a) => {
1872
+ const i = Ht(e, a);
1870
1873
  let n = Fe.get(i);
1871
- return n || (n = On(e, a), Fe.set(i, n), n.then(
1874
+ return n || (n = Pn(e, a), Fe.set(i, n), n.then(
1872
1875
  ({ status: l }) => {
1873
1876
  l === "error" && Fe.delete(i);
1874
1877
  },
@@ -1879,11 +1882,11 @@ const Mn = {
1879
1882
  const i = Y(a.initialData ?? null);
1880
1883
  let n = 0;
1881
1884
  (d = a.initialData) != null && d.LicensePlate && Fe.set(
1882
- Ut(Oe(a.initialData.LicensePlate), e),
1885
+ Ht(Oe(a.initialData.LicensePlate), e),
1883
1886
  Promise.resolve({ status: "found", data: a.initialData })
1884
1887
  );
1885
1888
  const l = async (s) => {
1886
- const m = Oe(s), r = ++n, f = await $n(m, e);
1889
+ const m = Oe(s), r = ++n, f = await On(m, e);
1887
1890
  return r === n && (i.value = f.status === "found" ? f.data : null), f;
1888
1891
  }, o = ee().required("Dit veld is verplicht").test("license-plate-lookup", async (s, m) => {
1889
1892
  if (!s)
@@ -1892,14 +1895,14 @@ const Mn = {
1892
1895
  if (r.length < Ie)
1893
1896
  return m.createError({ message: "Kenteken is incorrect" });
1894
1897
  const { status: f } = await l(r);
1895
- return f === "found" || m.createError({ message: Pn[f](e) });
1898
+ return f === "found" || m.createError({ message: wn[f](e) });
1896
1899
  });
1897
1900
  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) => {
1901
+ }, $n = (e) => /^\d{8}$/.test(e), Fn = (e) => $n(e) ? { companyName: "", kvkNumber: e } : { companyName: e, kvkNumber: "" }, Ln = "bezoekadres", Nn = (e) => {
1899
1902
  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
+ return (n = (i = (a = e._embedded) == null ? void 0 : a.hoofdvestiging) == null ? void 0 : i.adressen) == null ? void 0 : n.find((l) => l.type === Ln);
1904
+ }, Tn = (e) => {
1905
+ const a = Nn(e), {
1903
1906
  huisnummer: i = 0,
1904
1907
  huisletter: n = "",
1905
1908
  huisnummerToevoeging: l = "",
@@ -1918,7 +1921,7 @@ const Mn = {
1918
1921
  fullAddress: r,
1919
1922
  hasVisitingAddress: !!a
1920
1923
  };
1921
- }, Dn = (e = []) => {
1924
+ }, zn = (e = []) => {
1922
1925
  var l;
1923
1926
  const [a, i, n] = e.reduce(
1924
1927
  ([o, d, s], m) => {
@@ -1937,7 +1940,7 @@ const Mn = {
1937
1940
  firstSBIs: a,
1938
1941
  secondSBIs: i
1939
1942
  };
1940
- }, Rn = (e) => {
1943
+ }, Dn = (e) => {
1941
1944
  var a, i, n, l;
1942
1945
  return {
1943
1946
  kvkNumber: e.kvkNummer,
@@ -1945,7 +1948,7 @@ const Mn = {
1945
1948
  city: ((i = (a = e.adres) == null ? void 0 : a.binnenlandsAdres) == null ? void 0 : i.plaats) ?? "",
1946
1949
  street: ((l = (n = e.adres) == null ? void 0 : n.binnenlandsAdres) == null ? void 0 : l.straatnaam) ?? ""
1947
1950
  };
1948
- }, xn = (e) => {
1951
+ }, Rn = (e) => {
1949
1952
  var a, i;
1950
1953
  return {
1951
1954
  name: e.naam,
@@ -1953,10 +1956,10 @@ const Mn = {
1953
1956
  industry: e.sbiIndustryId,
1954
1957
  numberOfEmployees: e.totaalWerkzamePersonen,
1955
1958
  legalForm: ((i = (a = e._embedded) == null ? void 0 : a.eigenaar) == null ? void 0 : i.rechtsvorm) ?? "",
1956
- ...zn(e),
1957
- ...Dn(e.sbiActiviteiten)
1959
+ ...Tn(e),
1960
+ ...zn(e.sbiActiviteiten)
1958
1961
  };
1959
- }, jn = 30, In = ["hoofdvestiging", "nevenvestiging"], qn = "IPD5200", Un = (e) => {
1962
+ }, xn = 30, jn = ["hoofdvestiging", "nevenvestiging"], In = "IPD5200", qn = (e) => {
1960
1963
  var n, l;
1961
1964
  const a = e, i = (l = (n = a == null ? void 0 : a.response) == null ? void 0 : n.data) == null ? void 0 : l.fout;
1962
1965
  if (Array.isArray(i))
@@ -1970,26 +1973,26 @@ const Mn = {
1970
1973
  return o.fout;
1971
1974
  } catch {
1972
1975
  }
1973
- }, Hn = (e) => {
1976
+ }, Un = (e) => {
1974
1977
  var a;
1975
- return ((a = Un(e)) == null ? void 0 : a.some((i) => i.code === qn)) ?? !1;
1976
- }, Wn = () => {
1978
+ return ((a = qn(e)) == null ? void 0 : a.some((i) => i.code === In)) ?? !1;
1979
+ }, Hn = () => {
1977
1980
  const { dataService: e } = Ge();
1978
1981
  return { search: async (n) => {
1979
1982
  try {
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);
1983
+ const l = await e.searchBusinessInfoV2(Fn(n), 1, xn);
1984
+ return ((l == null ? void 0 : l.resultaten) ?? []).filter((d) => jn.includes(d.type)).map(Dn);
1982
1985
  } catch (l) {
1983
1986
  const o = await l;
1984
- if (Hn(o))
1987
+ if (Un(o))
1985
1988
  return [];
1986
1989
  throw o;
1987
1990
  }
1988
1991
  }, getDetails: async (n) => {
1989
1992
  const l = await e.getProfileInfo(n);
1990
- return xn(l);
1993
+ return Rn(l);
1991
1994
  } };
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({
1995
+ }, Wn = { class: "vd-combobox__multiline" }, Kn = { class: "vd-combobox__title" }, Gn = { class: "vd-combobox__subtext" }, Yn = { class: "vd-combobox__subtext" }, Jn = 400, Ct = 3, Qn = "Helaas, we hebben geen resultaten gevonden. Probeer te zoeken op de exacte naam waarmee je bedrijf is geregistreerd bij de Kamer van Koophandel, of gebruik je volledige KvK-nummer.", Zn = "Typ je bedrijfsnaam of KvK-nummer", Xn = "Aan het zoeken…", _t = "Er ging iets mis bij het ophalen van de gegevens. Probeer het later opnieuw.", eo = /* @__PURE__ */ q({
1993
1996
  inheritAttrs: !1,
1994
1997
  __name: "VdCompanySelect",
1995
1998
  props: /* @__PURE__ */ Z({
@@ -2004,11 +2007,11 @@ const Mn = {
2004
2007
  }),
2005
2008
  emits: /* @__PURE__ */ Z(["blur", "error"], ["update:modelValue"]),
2006
2009
  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), {
2010
+ const i = a, n = Ft(), l = be(), o = de(e, "modelValue"), { search: d, getDetails: s } = Hn(), m = Y(), r = Y(), f = Y(), p = Y(""), y = Sa(p, Jn, { maxWait: 2e3 }), V = Y(!0), {
2008
2011
  state: B,
2009
2012
  isLoading: g,
2010
2013
  execute: h
2011
- } = vt(
2014
+ } = bt(
2012
2015
  async (D) => {
2013
2016
  try {
2014
2017
  return { results: await d(D), failed: !1 };
@@ -2021,30 +2024,30 @@ const Mn = {
2021
2024
  ), {
2022
2025
  isLoading: _,
2023
2026
  execute: T
2024
- } = vt(
2027
+ } = bt(
2025
2028
  async (D) => {
2026
2029
  try {
2027
2030
  const Q = await s(D);
2028
2031
  return o.value = Q, i("error", null), Q;
2029
2032
  } catch (Q) {
2030
- throw o.value = null, f.value = void 0, m.value = void 0, i("error", Ct), Q;
2033
+ throw o.value = null, f.value = void 0, m.value = void 0, i("error", _t), Q;
2031
2034
  }
2032
2035
  },
2033
2036
  null,
2034
2037
  { immediate: !1, resetOnExecute: !0 }
2035
- ), z = F(() => p.value.length >= At), $ = F(() => z.value ? g.value || p.value !== y.value ? "searching" : B.value.failed ? "error" : B.value.results.length ? "idle" : "no-results" : "idle"), P = F(() => $.value === "searching" ? [] : z.value ? B.value.results : V.value && f.value ? [f.value] : []), b = F(() => $.value === "searching" || _.value), A = F(() => !!o.value && !b.value), w = F(() => {
2038
+ ), z = F(() => p.value.length >= Ct), $ = F(() => z.value ? g.value || p.value !== y.value ? "searching" : B.value.failed ? "error" : B.value.results.length ? "idle" : "no-results" : "idle"), P = F(() => $.value === "searching" ? [] : z.value ? B.value.results : V.value && f.value ? [f.value] : []), b = F(() => $.value === "searching" || _.value), A = F(() => !!o.value && !b.value), w = F(() => {
2036
2039
  const D = o.value;
2037
2040
  return !D || b.value ? "" : D.fullAddress ? `Kvk: ${D.kvkNumber} ${D.fullAddress}` : `Kvk: ${D.kvkNumber}`;
2038
2041
  }), U = F(() => {
2039
2042
  switch ($.value) {
2040
2043
  case "searching":
2041
- return eo;
2044
+ return Xn;
2042
2045
  case "error":
2043
- return Ct;
2046
+ return _t;
2044
2047
  case "no-results":
2045
- return Zn;
2048
+ return Qn;
2046
2049
  default:
2047
- return Xn;
2050
+ return Zn;
2048
2051
  }
2049
2052
  }), K = (D) => {
2050
2053
  var Q;
@@ -2066,10 +2069,10 @@ const Mn = {
2066
2069
  return ce(r, (D) => {
2067
2070
  D || (p.value = "", V.value = !0);
2068
2071
  }), ce(y, (D) => {
2069
- D && D.length >= At && h(0, D);
2072
+ D && D.length >= Ct && h(0, D);
2070
2073
  }), ce(o, (D) => {
2071
2074
  m.value = D ? ke(D) : void 0, V.value = !0, D || (f.value = void 0);
2072
- }, { immediate: !0 }), (D, Q) => (c(), H(Tt, M(t(n), {
2075
+ }, { immediate: !0 }), (D, Q) => (c(), H(zt, M(t(n), {
2073
2076
  modelValue: m.value,
2074
2077
  "onUpdate:modelValue": Q[0] || (Q[0] = (ue) => m.value = ue),
2075
2078
  open: r.value,
@@ -2095,10 +2098,10 @@ const Mn = {
2095
2098
  onSearch: Me
2096
2099
  }), We({
2097
2100
  item: v(({ option: ue }) => [
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)
2101
+ O("div", Wn, [
2102
+ O("div", Kn, I(ue.name), 1),
2103
+ O("span", Gn, "Kvk: " + I(ue.kvkNumber), 1),
2104
+ O("span", Yn, I(ue.city) + ", " + I(ue.street), 1)
2102
2105
  ])
2103
2106
  ]),
2104
2107
  _: 2
@@ -2119,7 +2122,7 @@ const Mn = {
2119
2122
  } : void 0
2120
2123
  ]), 1040, ["modelValue", "open", "name", "label", "placeholder", "options", "loading", "verified", "disabled", "no-results-text", "error-message", "info-message"]));
2121
2124
  }
2122
- }), ao = (e = "Bedrijfsnaam of KVK-nummer is verplicht") => ua().nullable().required(e).test("has-kvk-number", e, (a) => !!(a != null && a.kvkNumber)), ae = {
2125
+ }), to = (e = "Bedrijfsnaam of KVK-nummer is verplicht") => ma().nullable().required(e).test("has-kvk-number", e, (a) => !!(a != null && a.kvkNumber)), ae = {
2123
2126
  title: "",
2124
2127
  description: "",
2125
2128
  banner: "",
@@ -2128,24 +2131,24 @@ const Mn = {
2128
2131
  flat: !1,
2129
2132
  fullWidth: !1,
2130
2133
  submitLabel: "Vergelijken"
2131
- }, io = Object.keys(ae);
2134
+ }, ao = Object.keys(ae);
2132
2135
  function ie(e) {
2133
- return Ft(e, ...io);
2136
+ return Lt(e, ...ao);
2134
2137
  }
2135
- const no = { min: 18, max: 99 }, Ne = "DD-MM-YYYY", oo = [
2138
+ const io = { min: 18, max: 99 }, Ne = "DD-MM-YYYY", no = [
2136
2139
  J.SingleWithoutChildren,
2137
2140
  J.FamilyWithoutChildren,
2138
2141
  J.SingleWithChildren,
2139
2142
  J.FamilyWithChildren
2140
- ], Ht = [fe.Yes, fe.No];
2141
- function Wt(e, a, i = "ageRange") {
2143
+ ], Wt = [fe.Yes, fe.No];
2144
+ function Kt(e, a, i = "ageRange") {
2142
2145
  return {
2143
2146
  name: i,
2144
2147
  test(n, l) {
2145
- const o = dt(n, Ne);
2148
+ const o = ut(n, Ne);
2146
2149
  if (!o)
2147
2150
  return !0;
2148
- const { today: d, earliest: s, latest: m } = mn(e.min, e.max), r = { earliest: s, latest: m };
2151
+ const { today: d, earliest: s, latest: m } = cn(e.min, e.max), r = { earliest: s, latest: m };
2149
2152
  return a.future && o.isAfter(d, "day") ? l.createError({ message: a.future(r) }) : o.isAfter(m, "day") ? l.createError({ message: a.tooYoung(r) }) : o.isBefore(s, "day") ? l.createError({ message: a.tooOld(r) }) : !0;
2150
2153
  }
2151
2154
  };
@@ -2197,11 +2200,11 @@ const W = {
2197
2200
  paymentTermRequired: "Selecteer een dekking"
2198
2201
  }
2199
2202
  };
2200
- function Kt(e) {
2201
- return dt(e, Ne) !== null;
2203
+ function Gt(e) {
2204
+ return ut(e, Ne) !== null;
2202
2205
  }
2203
- function he(e = no) {
2204
- return ee().required(W.birthdate.required).test("date_format", W.birthdate.dateFormat, Kt).test(Wt(
2206
+ function he(e = io) {
2207
+ return ee().required(W.birthdate.required).test("date_format", W.birthdate.dateFormat, Gt).test(Kt(
2205
2208
  { min: { value: e.min, unit: "year" }, max: { value: e.max, unit: "year" } },
2206
2209
  {
2207
2210
  tooYoung: () => W.birthdate.tooYoung(e.min),
@@ -2212,41 +2215,41 @@ function he(e = no) {
2212
2215
  function Qe(e, a) {
2213
2216
  return ee().required(a).oneOf(e, a);
2214
2217
  }
2215
- function _t(e) {
2218
+ function Et(e) {
2216
2219
  return ee().required(e);
2217
2220
  }
2218
- function nt(e) {
2219
- return ma().typeError(e).required(e);
2221
+ function ot(e) {
2222
+ return ca().typeError(e).required(e);
2220
2223
  }
2221
- function Gt(e = W.familyComposition.required) {
2222
- return Qe(oo, e);
2224
+ function Yt(e = W.familyComposition.required) {
2225
+ return Qe(no, e);
2223
2226
  }
2224
- const Ze = Gt(), Yt = Qe(
2225
- Ht,
2227
+ const Ze = Yt(), Jt = Qe(
2228
+ Wt,
2226
2229
  W.ownedBuilding.required
2227
- ), ot = [1, 7], lo = [3, 4], Et = {
2230
+ ), lt = [1, 7], oo = [3, 4], Mt = {
2228
2231
  raceOrMtb: 15e3,
2229
2232
  default: 9999
2230
- }, Mt = (e, a) => e.test(
2233
+ }, wt = (e, a) => e.test(
2231
2234
  "max-value",
2232
2235
  W.bike.priceMax(a),
2233
2236
  (i) => {
2234
2237
  const n = Number(i);
2235
2238
  return Number.isNaN(n) || n <= a;
2236
2239
  }
2237
- ), ro = te({
2238
- kind: nt(W.bike.kindRequired),
2239
- condition: nt(W.bike.conditionRequired),
2240
+ ), lo = te({
2241
+ kind: ot(W.bike.kindRequired),
2242
+ condition: ot(W.bike.conditionRequired),
2240
2243
  price: ee().required(W.bike.priceRequired).when("kind", {
2241
- is: (e) => lo.includes(Number(e)),
2242
- then: (e) => Mt(e, Et.raceOrMtb),
2243
- otherwise: (e) => Mt(e, Et.default)
2244
+ is: (e) => oo.includes(Number(e)),
2245
+ then: (e) => wt(e, Mt.raceOrMtb),
2246
+ otherwise: (e) => wt(e, Mt.default)
2244
2247
  }),
2245
2248
  brand: ee().when("kind", {
2246
- is: (e) => ot.includes(Number(e)),
2249
+ is: (e) => lt.includes(Number(e)),
2247
2250
  then: (e) => e.required(W.bike.brandRequired)
2248
2251
  })
2249
- }), so = [
2252
+ }), ro = [
2250
2253
  {
2251
2254
  value: 4,
2252
2255
  title: "ATB / Mountainbike",
@@ -2313,7 +2316,7 @@ const Ze = Gt(), Yt = Qe(
2313
2316
  name: "Vouwfiets",
2314
2317
  isEBike: !1
2315
2318
  }
2316
- ], uo = [
2319
+ ], so = [
2317
2320
  {
2318
2321
  value: 1,
2319
2322
  label: "Nieuw"
@@ -2322,7 +2325,7 @@ const Ze = Gt(), Yt = Qe(
2322
2325
  value: 0,
2323
2326
  label: "Tweedehands"
2324
2327
  }
2325
- ], mo = [
2328
+ ], uo = [
2326
2329
  {
2327
2330
  id: "Ander merk",
2328
2331
  name: "Ander merk"
@@ -3743,7 +3746,7 @@ const Ze = Gt(), Yt = Qe(
3743
3746
  id: "Zündapp",
3744
3747
  name: "Zündapp"
3745
3748
  }
3746
- ], co = /* @__PURE__ */ q({
3749
+ ], mo = /* @__PURE__ */ q({
3747
3750
  __name: "BikeForm",
3748
3751
  props: /* @__PURE__ */ ne({
3749
3752
  initialData: {},
@@ -3766,15 +3769,15 @@ const Ze = Gt(), Yt = Qe(
3766
3769
  handleSubmit: d,
3767
3770
  defineField: s,
3768
3771
  resetField: m
3769
- } = le(ro, {
3772
+ } = le(lo, {
3770
3773
  kind: null,
3771
3774
  condition: 1,
3772
3775
  price: "",
3773
3776
  brand: "",
3774
3777
  ...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)));
3778
+ }), [r, f, p] = s("kind", { validateAt: "change" }), [y, V, B] = s("brand", { validateAt: "change" }), [g, h, _] = s("condition"), [T, z, $] = s("price"), P = F(() => lt.includes(Number(r.value)));
3776
3779
  ce(r, (A) => {
3777
- ot.includes(Number(A)) || m("brand", { value: "" });
3780
+ lt.includes(Number(A)) || m("brand", { value: "" });
3778
3781
  }, { immediate: !0 });
3779
3782
  function b() {
3780
3783
  d((A) => {
@@ -3796,7 +3799,7 @@ const Ze = Gt(), Yt = Qe(
3796
3799
  "onUpdate:modelValue": w[0] || (w[0] = (U) => N(r) ? r.value = U : null),
3797
3800
  modelModifiers: { number: !0 },
3798
3801
  label: "Soort fiets",
3799
- options: t(so),
3802
+ options: t(ro),
3800
3803
  name: "kind",
3801
3804
  required: !1,
3802
3805
  "error-message": t(p)
@@ -3810,12 +3813,12 @@ const Ze = Gt(), Yt = Qe(
3810
3813
  md: "6"
3811
3814
  }, {
3812
3815
  default: v(() => [
3813
- u(t(Tt), M({
3816
+ u(t(zt), M({
3814
3817
  modelValue: t(y),
3815
3818
  "onUpdate:modelValue": w[1] || (w[1] = (U) => N(y) ? y.value = U : null),
3816
3819
  label: "Merk fiets",
3817
3820
  placeholder: "Typ of kies je merk",
3818
- options: t(mo),
3821
+ options: t(uo),
3819
3822
  "label-key": "name",
3820
3823
  "value-key": "id",
3821
3824
  name: "brand",
@@ -3835,7 +3838,7 @@ const Ze = Gt(), Yt = Qe(
3835
3838
  "onUpdate:modelValue": w[2] || (w[2] = (U) => N(g) ? g.value = U : null),
3836
3839
  legend: "Gekocht als",
3837
3840
  name: "condition",
3838
- options: t(uo),
3841
+ options: t(so),
3839
3842
  variant: "boxed",
3840
3843
  required: !1,
3841
3844
  "error-message": t(_)
@@ -3867,7 +3870,7 @@ const Ze = Gt(), Yt = Qe(
3867
3870
  }, 16, ["submit-disabled"]));
3868
3871
  }
3869
3872
  });
3870
- function fo(e) {
3873
+ function co(e) {
3871
3874
  return {
3872
3875
  comparison: j.Bike,
3873
3876
  details: [{
@@ -3882,24 +3885,24 @@ function fo(e) {
3882
3885
  user: {}
3883
3886
  };
3884
3887
  }
3885
- const tt = { min: 0, max: 99 }, vo = 7, bo = /^\d{4}\s?[a-zA-Z]{2}$/, po = te({
3888
+ const at = { min: 0, max: 99 }, fo = 7, vo = /^\d{4}\s?[a-zA-Z]{2}$/, bo = te({
3886
3889
  kind: ee().required(W.pet.kindRequired),
3887
- age: ee().required(W.birthdate.required).test("date_format", W.birthdate.dateFormat, Kt).test(Wt(
3888
- { min: { value: vo, unit: "week" }, max: { value: tt.max, unit: "year" } },
3890
+ age: ee().required(W.birthdate.required).test("date_format", W.birthdate.dateFormat, Gt).test(Kt(
3891
+ { min: { value: fo, unit: "week" }, max: { value: at.max, unit: "year" } },
3889
3892
  {
3890
3893
  // a future date is "younger than the min age" (min = 0 here)
3891
- future: () => W.birthdate.tooYoung(tt.min),
3894
+ future: () => W.birthdate.tooYoung(at.min),
3892
3895
  // born after the youngest-allowed date (< MIN_WEEKS old): list the window
3893
3896
  tooYoung: ({ earliest: e, latest: a }) => W.pet.outOfRange(
3894
3897
  e.format(Ne),
3895
3898
  a.format(Ne)
3896
3899
  ),
3897
- tooOld: () => W.birthdate.tooOld(tt.max)
3900
+ tooOld: () => W.birthdate.tooOld(at.max)
3898
3901
  },
3899
3902
  "birthdate_range"
3900
3903
  )),
3901
- zipcode: ee().required(W.pet.zipcodeRequired).matches(bo, W.pet.zipcodeInvalid)
3902
- }), go = [
3904
+ zipcode: ee().required(W.pet.zipcodeRequired).matches(vo, W.pet.zipcodeInvalid)
3905
+ }), po = [
3903
3906
  {
3904
3907
  title: "Hond",
3905
3908
  value: "dog"
@@ -3916,7 +3919,7 @@ const tt = { min: 0, max: 99 }, vo = 7, bo = /^\d{4}\s?[a-zA-Z]{2}$/, po = te({
3916
3919
  title: "Vogel",
3917
3920
  value: "bird"
3918
3921
  }
3919
- ], ho = /* @__PURE__ */ q({
3922
+ ], go = /* @__PURE__ */ q({
3920
3923
  __name: "PetForm",
3921
3924
  props: /* @__PURE__ */ ne({
3922
3925
  initialData: {},
@@ -3938,7 +3941,7 @@ const tt = { min: 0, max: 99 }, vo = 7, bo = /^\d{4}\s?[a-zA-Z]{2}$/, po = te({
3938
3941
  isSubmitting: o,
3939
3942
  handleSubmit: d,
3940
3943
  defineField: s
3941
- } = le(po, {
3944
+ } = le(bo, {
3942
3945
  kind: "dog",
3943
3946
  age: "",
3944
3947
  zipcode: "",
@@ -3964,7 +3967,7 @@ const tt = { min: 0, max: 99 }, vo = 7, bo = /^\d{4}\s?[a-zA-Z]{2}$/, po = te({
3964
3967
  "onUpdate:modelValue": z[0] || (z[0] = ($) => N(m) ? m.value = $ : null),
3965
3968
  label: "Wat voor huisdier wil je verzekeren?",
3966
3969
  placeholder: "",
3967
- options: t(go),
3970
+ options: t(po),
3968
3971
  name: "kind",
3969
3972
  required: !1,
3970
3973
  "error-message": t(f)
@@ -4036,7 +4039,7 @@ const tt = { min: 0, max: 99 }, vo = 7, bo = /^\d{4}\s?[a-zA-Z]{2}$/, po = te({
4036
4039
  }, 16, ["submit-disabled"]));
4037
4040
  }
4038
4041
  });
4039
- function yo(e) {
4042
+ function ho(e) {
4040
4043
  return {
4041
4044
  comparison: j.Pet,
4042
4045
  details: [{
@@ -4051,11 +4054,11 @@ function yo(e) {
4051
4054
  }
4052
4055
  };
4053
4056
  }
4054
- const ko = te({
4055
- TypeOfCaravan: _t(W.caravan.typeOfCaravanRequired),
4056
- NewOrOccasion: Qe(Ht, W.caravan.newOrOccasionRequired),
4057
- BuildYear: _t(W.caravan.buildYearRequired)
4058
- }), So = [
4057
+ const yo = te({
4058
+ TypeOfCaravan: Et(W.caravan.typeOfCaravanRequired),
4059
+ NewOrOccasion: Qe(Wt, W.caravan.newOrOccasionRequired),
4060
+ BuildYear: Et(W.caravan.buildYearRequired)
4061
+ }), ko = [
4059
4062
  {
4060
4063
  value: "CS",
4061
4064
  title: "Stacaravan"
@@ -4068,7 +4071,7 @@ const ko = te({
4068
4071
  value: "CV",
4069
4072
  title: "Vouwwagen"
4070
4073
  }
4071
- ], Vo = [
4074
+ ], So = [
4072
4075
  {
4073
4076
  value: fe.Yes,
4074
4077
  label: "Nieuw"
@@ -4077,12 +4080,12 @@ const ko = te({
4077
4080
  value: fe.No,
4078
4081
  label: "Occasion"
4079
4082
  }
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) }));
4083
+ ], Vo = 125;
4084
+ function Bo() {
4085
+ const e = mn();
4086
+ return Array.from({ length: Vo + 1 }, (a, i) => ({ title: String(e - i), value: String(e - i) }));
4084
4087
  }
4085
- const Co = /* @__PURE__ */ q({
4088
+ const Ao = /* @__PURE__ */ q({
4086
4089
  __name: "CaravanForm",
4087
4090
  props: /* @__PURE__ */ ne({
4088
4091
  initialData: {},
@@ -4100,11 +4103,11 @@ const Co = /* @__PURE__ */ q({
4100
4103
  }),
4101
4104
  emits: ["submit"],
4102
4105
  setup(e, { emit: a }) {
4103
- const i = e, n = ie(i), l = a, o = Ao(), {
4106
+ const i = e, n = ie(i), l = a, o = Bo(), {
4104
4107
  isSubmitting: d,
4105
4108
  handleSubmit: s,
4106
4109
  defineField: m
4107
- } = le(ko, {
4110
+ } = le(yo, {
4108
4111
  TypeOfCaravan: null,
4109
4112
  NewOrOccasion: fe.Yes,
4110
4113
  BuildYear: null,
@@ -4129,7 +4132,7 @@ const Co = /* @__PURE__ */ q({
4129
4132
  modelValue: t(r),
4130
4133
  "onUpdate:modelValue": $[0] || ($[0] = (P) => N(r) ? r.value = P : null),
4131
4134
  label: "Soort caravan",
4132
- options: t(So),
4135
+ options: t(ko),
4133
4136
  name: "typeOfCaravan",
4134
4137
  required: !1,
4135
4138
  "error-message": t(p)
@@ -4147,7 +4150,7 @@ const Co = /* @__PURE__ */ q({
4147
4150
  "onUpdate:modelValue": $[1] || ($[1] = (P) => N(y) ? y.value = P : null),
4148
4151
  legend: "Gekocht als",
4149
4152
  name: "newOrOccasion",
4150
- options: t(Vo),
4153
+ options: t(So),
4151
4154
  variant: "boxed",
4152
4155
  required: !1,
4153
4156
  "error-message": t(B)
@@ -4177,7 +4180,7 @@ const Co = /* @__PURE__ */ q({
4177
4180
  }, 16, ["submit-disabled"]));
4178
4181
  }
4179
4182
  });
4180
- function _o(e) {
4183
+ function Co(e) {
4181
4184
  return {
4182
4185
  comparison: j.Caravan,
4183
4186
  details: [{
@@ -4192,10 +4195,10 @@ function _o(e) {
4192
4195
  };
4193
4196
  }
4194
4197
  var $e = /* @__PURE__ */ ((e) => (e.Continuous = "L", e.ShortTerm = "S", e))($e || {});
4195
- const Eo = [$e.Continuous, $e.ShortTerm], Mo = te({
4196
- PaymentTerm: Qe(Eo, W.travel.paymentTermRequired),
4198
+ const _o = [$e.Continuous, $e.ShortTerm], Eo = te({
4199
+ PaymentTerm: Qe(_o, W.travel.paymentTermRequired),
4197
4200
  birthdate: he()
4198
- }), wo = [
4201
+ }), Mo = [
4199
4202
  {
4200
4203
  value: $e.Continuous,
4201
4204
  label: "Doorlopend"
@@ -4204,7 +4207,7 @@ const Eo = [$e.Continuous, $e.ShortTerm], Mo = te({
4204
4207
  value: $e.ShortTerm,
4205
4208
  label: "Kortlopend"
4206
4209
  }
4207
- ], Po = /* @__PURE__ */ q({
4210
+ ], wo = /* @__PURE__ */ q({
4208
4211
  __name: "TravelForm",
4209
4212
  props: /* @__PURE__ */ ne({
4210
4213
  initialData: {},
@@ -4226,7 +4229,7 @@ const Eo = [$e.Continuous, $e.ShortTerm], Mo = te({
4226
4229
  isSubmitting: o,
4227
4230
  handleSubmit: d,
4228
4231
  defineField: s
4229
- } = le(Mo, {
4232
+ } = le(Eo, {
4230
4233
  PaymentTerm: $e.Continuous,
4231
4234
  birthdate: "",
4232
4235
  ...i.initialData
@@ -4251,7 +4254,7 @@ const Eo = [$e.Continuous, $e.ShortTerm], Mo = te({
4251
4254
  "onUpdate:modelValue": h[0] || (h[0] = (_) => N(m) ? m.value = _ : null),
4252
4255
  legend: "Kies je dekking",
4253
4256
  name: "PaymentTerm",
4254
- options: t(wo),
4257
+ options: t(Mo),
4255
4258
  variant: "boxed",
4256
4259
  required: !1,
4257
4260
  "error-message": t(f)
@@ -4290,7 +4293,7 @@ const Eo = [$e.Continuous, $e.ShortTerm], Mo = te({
4290
4293
  }, 16, ["submit-disabled"]));
4291
4294
  }
4292
4295
  });
4293
- function Oo(e) {
4296
+ function Po(e) {
4294
4297
  return {
4295
4298
  comparison: j.Travel,
4296
4299
  details: [{
@@ -4304,11 +4307,11 @@ function Oo(e) {
4304
4307
  }
4305
4308
  };
4306
4309
  }
4307
- const $o = (e) => te({
4310
+ const Oo = (e) => te({
4308
4311
  address: e,
4309
4312
  birthdate: he(),
4310
4313
  familyComposition: Ze
4311
- }), Fo = /* @__PURE__ */ q({
4314
+ }), $o = /* @__PURE__ */ q({
4312
4315
  __name: "LiabilityForm",
4313
4316
  props: /* @__PURE__ */ ne({
4314
4317
  initialData: {},
@@ -4330,7 +4333,7 @@ const $o = (e) => te({
4330
4333
  isSubmitting: d,
4331
4334
  handleSubmit: s,
4332
4335
  defineField: m
4333
- } = le($o(o.addressSchema), {
4336
+ } = le(Oo(o.addressSchema), {
4334
4337
  address: _e(),
4335
4338
  birthdate: "",
4336
4339
  familyComposition: J.SingleWithoutChildren,
@@ -4390,7 +4393,7 @@ const $o = (e) => te({
4390
4393
  }, 16, ["submit-disabled"]));
4391
4394
  }
4392
4395
  });
4393
- function Lo(e) {
4396
+ function Fo(e) {
4394
4397
  return {
4395
4398
  comparison: j.Liability,
4396
4399
  details: [{
@@ -4414,7 +4417,7 @@ function Lo(e) {
4414
4417
  }
4415
4418
  };
4416
4419
  }
4417
- const Jt = [
4420
+ const Qt = [
4418
4421
  {
4419
4422
  value: fe.Yes,
4420
4423
  label: "Gekocht"
@@ -4423,11 +4426,11 @@ const Jt = [
4423
4426
  value: fe.No,
4424
4427
  label: "Verhuurd"
4425
4428
  }
4426
- ], No = (e) => te({
4429
+ ], Lo = (e) => te({
4427
4430
  address: e,
4428
- ownedBuilding: Yt,
4429
- familyComposition: Gt(W.house.familyCompositionRequired)
4430
- }), To = /* @__PURE__ */ q({
4431
+ ownedBuilding: Jt,
4432
+ familyComposition: Yt(W.house.familyCompositionRequired)
4433
+ }), No = /* @__PURE__ */ q({
4431
4434
  __name: "HouseForm",
4432
4435
  props: /* @__PURE__ */ ne({
4433
4436
  initialData: {},
@@ -4449,7 +4452,7 @@ const Jt = [
4449
4452
  isSubmitting: d,
4450
4453
  handleSubmit: s,
4451
4454
  defineField: m
4452
- } = le(No(o.addressSchema), {
4455
+ } = le(Lo(o.addressSchema), {
4453
4456
  address: _e(),
4454
4457
  ownedBuilding: fe.Yes,
4455
4458
  familyComposition: J.SingleWithoutChildren,
@@ -4488,7 +4491,7 @@ const Jt = [
4488
4491
  "onUpdate:modelValue": _[0] || (_[0] = (T) => N(r) ? r.value = T : null),
4489
4492
  legend: "Jouw woning is...",
4490
4493
  name: "ownedBuilding",
4491
- options: t(Jt),
4494
+ options: t(Qt),
4492
4495
  variant: "boxed",
4493
4496
  required: !1,
4494
4497
  "error-message": t(p)
@@ -4514,7 +4517,7 @@ const Jt = [
4514
4517
  }, 16, ["submit-disabled"]));
4515
4518
  }
4516
4519
  });
4517
- function zo(e) {
4520
+ function To(e) {
4518
4521
  return {
4519
4522
  comparison: j.Housing,
4520
4523
  details: [{
@@ -4531,16 +4534,16 @@ function zo(e) {
4531
4534
  }
4532
4535
  };
4533
4536
  }
4534
- const qe = J.SingleWithChildren, Do = (e) => te({
4537
+ const qe = J.SingleWithChildren, zo = (e) => te({
4535
4538
  address: e,
4536
- ownedBuilding: Yt,
4539
+ ownedBuilding: Jt,
4537
4540
  birthdate: he(),
4538
4541
  familyComposition: Ze,
4539
4542
  familySize: ee().when("familyComposition", {
4540
4543
  is: qe,
4541
4544
  then: (a) => a.required(W.legal.familySizeRequired)
4542
4545
  })
4543
- }), Ro = [
4546
+ }), Do = [
4544
4547
  {
4545
4548
  title: "Alleenstaande met 1 kind",
4546
4549
  value: "2"
@@ -4549,7 +4552,7 @@ const qe = J.SingleWithChildren, Do = (e) => te({
4549
4552
  title: "Alleenstaande met 2 of meer kinderen",
4550
4553
  value: "3"
4551
4554
  }
4552
- ], xo = /* @__PURE__ */ q({
4555
+ ], Ro = /* @__PURE__ */ q({
4553
4556
  __name: "LegalForm",
4554
4557
  props: /* @__PURE__ */ ne({
4555
4558
  initialData: {},
@@ -4572,7 +4575,7 @@ const qe = J.SingleWithChildren, Do = (e) => te({
4572
4575
  handleSubmit: s,
4573
4576
  defineField: m,
4574
4577
  resetField: r
4575
- } = le(Do(o.addressSchema), {
4578
+ } = le(zo(o.addressSchema), {
4576
4579
  address: _e(),
4577
4580
  ownedBuilding: fe.Yes,
4578
4581
  birthdate: "",
@@ -4616,7 +4619,7 @@ const qe = J.SingleWithChildren, Do = (e) => te({
4616
4619
  "onUpdate:modelValue": U[0] || (U[0] = (K) => N(f) ? f.value = K : null),
4617
4620
  legend: "Jouw woning is...",
4618
4621
  name: "ownedBuilding",
4619
- options: t(Jt),
4622
+ options: t(Qt),
4620
4623
  variant: "boxed",
4621
4624
  required: !1,
4622
4625
  "error-message": t(y)
@@ -4661,7 +4664,7 @@ const qe = J.SingleWithChildren, Do = (e) => te({
4661
4664
  "onUpdate:modelValue": U[3] || (U[3] = (K) => N(z) ? z.value = K : null),
4662
4665
  label: "Aantal kinderen",
4663
4666
  placeholder: "Maak een keuze",
4664
- options: t(Ro),
4667
+ options: t(Do),
4665
4668
  name: "familySize",
4666
4669
  required: !1,
4667
4670
  "error-message": t(P)
@@ -4674,7 +4677,7 @@ const qe = J.SingleWithChildren, Do = (e) => te({
4674
4677
  }, 16, ["submit-disabled"]));
4675
4678
  }
4676
4679
  });
4677
- function jo(e) {
4680
+ function xo(e) {
4678
4681
  return {
4679
4682
  comparison: j.LegalAssistance,
4680
4683
  details: [{
@@ -4697,15 +4700,15 @@ function jo(e) {
4697
4700
  }
4698
4701
  };
4699
4702
  }
4700
- const Io = (e) => te({
4703
+ const jo = (e) => te({
4701
4704
  address: e,
4702
4705
  birthdate: he(),
4703
4706
  familyComposition: Ze,
4704
4707
  partnerBirthdate: ee().when("familyComposition", {
4705
- is: it,
4708
+ is: nt,
4706
4709
  then: () => he()
4707
4710
  })
4708
- }), qo = /* @__PURE__ */ q({
4711
+ }), Io = /* @__PURE__ */ q({
4709
4712
  __name: "PackageForm",
4710
4713
  props: /* @__PURE__ */ ne({
4711
4714
  initialData: {},
@@ -4728,15 +4731,15 @@ const Io = (e) => te({
4728
4731
  handleSubmit: s,
4729
4732
  defineField: m,
4730
4733
  resetField: r
4731
- } = le(Io(o.addressSchema), {
4734
+ } = le(jo(o.addressSchema), {
4732
4735
  address: _e(),
4733
4736
  birthdate: "",
4734
4737
  familyComposition: J.SingleWithoutChildren,
4735
4738
  partnerBirthdate: "",
4736
4739
  ...i.initialData
4737
- }), [f, p, y] = m("birthdate"), [V, B, g] = m("familyComposition", { validateAt: "change" }), [h, _, T] = m("partnerBirthdate"), z = F(() => it(V.value));
4740
+ }), [f, p, y] = m("birthdate"), [V, B, g] = m("familyComposition", { validateAt: "change" }), [h, _, T] = m("partnerBirthdate"), z = F(() => nt(V.value));
4738
4741
  ce(V, (P) => {
4739
- it(P) || r("partnerBirthdate", { value: "" });
4742
+ nt(P) || r("partnerBirthdate", { value: "" });
4740
4743
  }, { immediate: !0 });
4741
4744
  function $() {
4742
4745
  s((P) => {
@@ -4809,7 +4812,7 @@ const Io = (e) => te({
4809
4812
  }, 16, ["submit-disabled"]));
4810
4813
  }
4811
4814
  });
4812
- function Uo(e) {
4815
+ function qo(e) {
4813
4816
  return {
4814
4817
  comparison: j.Package,
4815
4818
  details: [{
@@ -4827,12 +4830,12 @@ function Uo(e) {
4827
4830
  }
4828
4831
  };
4829
4832
  }
4830
- const Ho = { min: 21, max: 74 }, xe = { min: 3500, max: 75e3 }, Wo = 76, wt = 120, Ko = te({
4833
+ const Uo = { min: 21, max: 74 }, xe = { min: 3500, max: 75e3 }, Ho = 76, Pt = 120, Wo = te({
4831
4834
  LoanPurpose: ee().required(W.loan.purposeRequired),
4832
- LoanAmount: nt(W.loan.amountRequired).min(xe.min, W.loan.amountMin(xe.min)).max(xe.max, W.loan.amountMax(xe.max)),
4833
- birthdate: he(Ho),
4835
+ LoanAmount: ot(W.loan.amountRequired).min(xe.min, W.loan.amountMin(xe.min)).max(xe.max, W.loan.amountMax(xe.max)),
4836
+ birthdate: he(Uo),
4834
4837
  familyComposition: Ze
4835
- }), Go = [
4838
+ }), Ko = [
4836
4839
  { title: "Aankoop auto", value: "02" },
4837
4840
  { title: "Aankoop boot", value: "03" },
4838
4841
  { title: "Aankoop caravan/camper", value: "04" },
@@ -4845,7 +4848,7 @@ const Ho = { min: 21, max: 74 }, xe = { min: 3500, max: 75e3 }, Wo = 76, wt = 12
4845
4848
  { title: "Aflossen restschuld woning", value: "12" },
4846
4849
  { title: "Extra financiële ruimte", value: "33" },
4847
4850
  { title: "Anders", value: "99" }
4848
- ], Yo = /* @__PURE__ */ q({
4851
+ ], Go = /* @__PURE__ */ q({
4849
4852
  __name: "LoanForm",
4850
4853
  props: /* @__PURE__ */ ne({
4851
4854
  initialData: {},
@@ -4867,7 +4870,7 @@ const Ho = { min: 21, max: 74 }, xe = { min: 3500, max: 75e3 }, Wo = 76, wt = 12
4867
4870
  isSubmitting: o,
4868
4871
  handleSubmit: d,
4869
4872
  defineField: s
4870
- } = le(Ko, {
4873
+ } = le(Wo, {
4871
4874
  LoanPurpose: "",
4872
4875
  LoanAmount: null,
4873
4876
  birthdate: "",
@@ -4894,7 +4897,7 @@ const Ho = { min: 21, max: 74 }, xe = { min: 3500, max: 75e3 }, Wo = 76, wt = 12
4894
4897
  "onUpdate:modelValue": b[0] || (b[0] = (A) => N(m) ? m.value = A : null),
4895
4898
  label: "Leendoel",
4896
4899
  placeholder: "Maak een keuze",
4897
- options: t(Go),
4900
+ options: t(Ko),
4898
4901
  name: "LoanPurpose",
4899
4902
  required: !1,
4900
4903
  "error-message": t(f)
@@ -4954,14 +4957,14 @@ const Ho = { min: 21, max: 74 }, xe = { min: 3500, max: 75e3 }, Wo = 76, wt = 12
4954
4957
  }, 16, ["submit-disabled"]));
4955
4958
  }
4956
4959
  });
4957
- function Jo(e) {
4958
- const a = dt(e, Ne);
4960
+ function Yo(e) {
4961
+ const a = ut(e, Ne);
4959
4962
  if (!a)
4960
- return wt;
4961
- const n = a.add(Wo, "year").diff(Ke(), "month", !0), l = Math.floor(n / 12) * 12;
4962
- return Math.min(l, wt);
4963
+ return Pt;
4964
+ const n = a.add(Ho, "year").diff(Ke(), "month", !0), l = Math.floor(n / 12) * 12;
4965
+ return Math.min(l, Pt);
4963
4966
  }
4964
- function Qo(e) {
4967
+ function Jo(e) {
4965
4968
  return {
4966
4969
  comparison: j.Loan,
4967
4970
  details: [{
@@ -4969,7 +4972,7 @@ function Qo(e) {
4969
4972
  data: {
4970
4973
  LoanPurpose: e.LoanPurpose,
4971
4974
  LoanAmount: e.LoanAmount,
4972
- MaxDurationByLegalLimit: Jo(e.birthdate)
4975
+ MaxDurationByLegalLimit: Yo(e.birthdate)
4973
4976
  }
4974
4977
  }],
4975
4978
  user: {
@@ -4978,12 +4981,12 @@ function Qo(e) {
4978
4981
  }
4979
4982
  };
4980
4983
  }
4981
- const Zo = { min: 16, max: 99 }, Xo = (e, a) => te({
4984
+ const Qo = { min: 16, max: 99 }, Zo = (e, a) => te({
4982
4985
  licensePlate: e,
4983
4986
  address: a,
4984
- birthdate: he(Zo)
4987
+ birthdate: he(Qo)
4985
4988
  // moped's local ./constants AGE_RANGE = {min:16,max:99}
4986
- }), el = /* @__PURE__ */ q({
4989
+ }), Xo = /* @__PURE__ */ q({
4987
4990
  __name: "MopedForm",
4988
4991
  props: /* @__PURE__ */ ne({
4989
4992
  initialData: {},
@@ -5008,7 +5011,7 @@ const Zo = { min: 16, max: 99 }, Xo = (e, a) => te({
5008
5011
  isSubmitting: m,
5009
5012
  handleSubmit: r,
5010
5013
  defineField: f
5011
- } = le(Xo(s, o.addressSchema), {
5014
+ } = le(Zo(s, o.addressSchema), {
5012
5015
  licensePlate: "",
5013
5016
  address: _e(),
5014
5017
  birthdate: "",
@@ -5087,7 +5090,7 @@ const Zo = { min: 16, max: 99 }, Xo = (e, a) => te({
5087
5090
  }, 16, ["submit-disabled"]));
5088
5091
  }
5089
5092
  });
5090
- function tl(e) {
5093
+ function el(e) {
5091
5094
  return {
5092
5095
  comparison: j.Moped,
5093
5096
  details: [{
@@ -5105,11 +5108,11 @@ function tl(e) {
5105
5108
  }
5106
5109
  };
5107
5110
  }
5108
- const al = (e, a) => te({
5111
+ const tl = (e, a) => te({
5109
5112
  licensePlate: e,
5110
5113
  address: a,
5111
5114
  birthdate: he()
5112
- }), il = /* @__PURE__ */ q({
5115
+ }), al = /* @__PURE__ */ q({
5113
5116
  __name: "MotorForm",
5114
5117
  props: /* @__PURE__ */ ne({
5115
5118
  initialData: {},
@@ -5134,7 +5137,7 @@ const al = (e, a) => te({
5134
5137
  isSubmitting: m,
5135
5138
  handleSubmit: r,
5136
5139
  defineField: f
5137
- } = le(al(s, o.addressSchema), {
5140
+ } = le(tl(s, o.addressSchema), {
5138
5141
  licensePlate: "",
5139
5142
  address: _e(),
5140
5143
  birthdate: "",
@@ -5213,7 +5216,7 @@ const al = (e, a) => te({
5213
5216
  }, 16, ["submit-disabled"]));
5214
5217
  }
5215
5218
  });
5216
- function nl(e) {
5219
+ function il(e) {
5217
5220
  return {
5218
5221
  comparison: j.Motor,
5219
5222
  details: [{
@@ -5231,11 +5234,11 @@ function nl(e) {
5231
5234
  }
5232
5235
  };
5233
5236
  }
5234
- const ol = (e, a) => te({
5237
+ const nl = (e, a) => te({
5235
5238
  licensePlate: e,
5236
5239
  address: a,
5237
5240
  birthdate: he()
5238
- }), ll = /* @__PURE__ */ q({
5241
+ }), ol = /* @__PURE__ */ q({
5239
5242
  __name: "CarForm",
5240
5243
  props: /* @__PURE__ */ ne({
5241
5244
  initialData: {},
@@ -5260,7 +5263,7 @@ const ol = (e, a) => te({
5260
5263
  isSubmitting: m,
5261
5264
  handleSubmit: r,
5262
5265
  defineField: f
5263
- } = le(ol(s, o.addressSchema), {
5266
+ } = le(nl(s, o.addressSchema), {
5264
5267
  licensePlate: "",
5265
5268
  address: _e(),
5266
5269
  birthdate: "",
@@ -5339,7 +5342,7 @@ const ol = (e, a) => te({
5339
5342
  }, 16, ["submit-disabled"]));
5340
5343
  }
5341
5344
  });
5342
- function rl(e) {
5345
+ function ll(e) {
5343
5346
  return {
5344
5347
  comparison: j.Car,
5345
5348
  details: [{
@@ -5357,10 +5360,10 @@ function rl(e) {
5357
5360
  }
5358
5361
  };
5359
5362
  }
5360
- const sl = (e) => te({
5363
+ const rl = (e) => te({
5361
5364
  licensePlate: e,
5362
- company: ao()
5363
- }), dl = /* @__PURE__ */ q({
5365
+ company: to()
5366
+ }), sl = /* @__PURE__ */ q({
5364
5367
  __name: "BusinessCarForm",
5365
5368
  props: /* @__PURE__ */ ne({
5366
5369
  initialData: {},
@@ -5387,7 +5390,7 @@ const sl = (e) => te({
5387
5390
  defineField: r,
5388
5391
  setErrors: f,
5389
5392
  removeError: p
5390
- } = le(sl(d), {
5393
+ } = le(rl(d), {
5391
5394
  licensePlate: "",
5392
5395
  company: null,
5393
5396
  ...i.initialData
@@ -5442,7 +5445,7 @@ const sl = (e) => te({
5442
5445
  md: "6"
5443
5446
  }, {
5444
5447
  default: v(() => [
5445
- u(t(to), M({
5448
+ u(t(eo), M({
5446
5449
  modelValue: t(h),
5447
5450
  "onUpdate:modelValue": w[2] || (w[2] = (U) => N(h) ? h.value = U : null),
5448
5451
  name: "company",
@@ -5460,7 +5463,7 @@ const sl = (e) => te({
5460
5463
  })
5461
5464
  ]),
5462
5465
  information: v(() => [
5463
- $.value ? (c(), H(t(Ti), {
5466
+ $.value ? (c(), H(t(zi), {
5464
5467
  key: 0,
5465
5468
  text: "Dit bedrijf heeft geen geregistreerd bezoekadres. Voeg dit toe bij de KvK om door te gaan met de aanvraag."
5466
5469
  })) : E("", !0)
@@ -5475,7 +5478,7 @@ const sl = (e) => te({
5475
5478
  }, 16, ["submit-disabled"]));
5476
5479
  }
5477
5480
  });
5478
- function ul(e) {
5481
+ function dl(e) {
5479
5482
  const { hasVisitingAddress: a, ...i } = e.company;
5480
5483
  return {
5481
5484
  comparison: j.CarBusiness,
@@ -5492,9 +5495,9 @@ function ul(e) {
5492
5495
  user: {}
5493
5496
  };
5494
5497
  }
5495
- const ml = "<<COMPARISONID>>", cl = (e) => {
5498
+ const ul = "<<COMPARISONID>>", ml = (e) => {
5496
5499
  window.location.href = e;
5497
- }, fl = ({ user: e, details: a }) => new da({
5500
+ }, cl = ({ user: e, details: a }) => new ua({
5498
5501
  email: e.email || null,
5499
5502
  name: e.firstName || null,
5500
5503
  zip_code: e.zipcode || null,
@@ -5508,14 +5511,14 @@ const ml = "<<COMPARISONID>>", cl = (e) => {
5508
5511
  ...e.city && { city: e.city }
5509
5512
  }
5510
5513
  });
5511
- function vl(e) {
5514
+ function fl(e) {
5512
5515
  const a = Y(!1), i = Y(null);
5513
5516
  return { submit: async (l) => {
5514
5517
  var o;
5515
5518
  a.value = !0, i.value = null;
5516
5519
  try {
5517
- const d = await e.client.comparisonService.create(l.comparison, fl(l)), s = e.link.replace(ml, d.getId());
5518
- (e.onRedirect ?? cl)(s);
5520
+ const d = await e.client.comparisonService.create(l.comparison, cl(l)), s = e.link.replace(ul, d.getId());
5521
+ (e.onRedirect ?? ml)(s);
5519
5522
  } catch (d) {
5520
5523
  i.value = d, (o = e.onError) == null || o.call(e, d, l);
5521
5524
  } finally {
@@ -5523,23 +5526,23 @@ function vl(e) {
5523
5526
  }
5524
5527
  }, isSubmitting: a, error: i };
5525
5528
  }
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),
5532
- [j.Housing]: () => Promise.resolve().then(() => Pt),
5533
- house: () => Promise.resolve().then(() => Pt),
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),
5540
- [j.CarBusiness]: () => Promise.resolve().then(() => Ot),
5541
- "business-car": () => Promise.resolve().then(() => Ot)
5542
- }, Rl = /* @__PURE__ */ q({
5529
+ const vl = {
5530
+ [j.Bike]: () => Promise.resolve().then(() => bl),
5531
+ [j.Pet]: () => Promise.resolve().then(() => pl),
5532
+ [j.Caravan]: () => Promise.resolve().then(() => gl),
5533
+ [j.Travel]: () => Promise.resolve().then(() => hl),
5534
+ [j.Liability]: () => Promise.resolve().then(() => yl),
5535
+ [j.Housing]: () => Promise.resolve().then(() => Ot),
5536
+ house: () => Promise.resolve().then(() => Ot),
5537
+ [j.LegalAssistance]: () => Promise.resolve().then(() => kl),
5538
+ [j.Package]: () => Promise.resolve().then(() => Sl),
5539
+ [j.Loan]: () => Promise.resolve().then(() => Vl),
5540
+ [j.Moped]: () => Promise.resolve().then(() => Bl),
5541
+ [j.Motor]: () => Promise.resolve().then(() => Al),
5542
+ [j.Car]: () => Promise.resolve().then(() => Cl),
5543
+ [j.CarBusiness]: () => Promise.resolve().then(() => $t),
5544
+ "business-car": () => Promise.resolve().then(() => $t)
5545
+ }, Dl = /* @__PURE__ */ q({
5543
5546
  __name: "ComparisonFormFlow",
5544
5547
  props: {
5545
5548
  form: {},
@@ -5558,13 +5561,13 @@ const bl = {
5558
5561
  },
5559
5562
  emits: ["submitted", "error"],
5560
5563
  setup(e, { emit: a }) {
5561
- const i = e, n = a, l = ie(i), o = na(null);
5564
+ const i = e, n = a, l = ie(i), o = oa(null);
5562
5565
  ce(() => i.form, async (r) => {
5563
5566
  o.value = null;
5564
- const f = await bl[r]();
5567
+ const f = await vl[r]();
5565
5568
  r === i.form && (o.value = f);
5566
5569
  }, { immediate: !0 });
5567
- const { submit: d, isSubmitting: s } = vl({
5570
+ const { submit: d, isSubmitting: s } = fl({
5568
5571
  client: i.client,
5569
5572
  link: i.link,
5570
5573
  onRedirect: (r) => {
@@ -5577,93 +5580,93 @@ const bl = {
5577
5580
  function m(r) {
5578
5581
  o.value && d(o.value.presenter(r));
5579
5582
  }
5580
- return (r, f) => o.value ? (c(), H(oa(o.value.Form), M({ key: 0 }, t(l), {
5583
+ return (r, f) => o.value ? (c(), H(la(o.value.Form), M({ key: 0 }, t(l), {
5581
5584
  "initial-data": e.initialData,
5582
5585
  "submit-disabled": t(s),
5583
5586
  onSubmit: m
5584
5587
  }), null, 16, ["initial-data", "submit-disabled"])) : E("", !0);
5585
5588
  }
5586
- }), pl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5589
+ }), bl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5590
+ __proto__: null,
5591
+ Form: mo,
5592
+ presenter: co
5593
+ }, Symbol.toStringTag, { value: "Module" })), pl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5587
5594
  __proto__: null,
5588
- Form: co,
5589
- presenter: fo
5595
+ Form: go,
5596
+ presenter: ho
5590
5597
  }, Symbol.toStringTag, { value: "Module" })), gl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5591
5598
  __proto__: null,
5592
- Form: ho,
5593
- presenter: yo
5599
+ Form: Ao,
5600
+ presenter: Co
5594
5601
  }, Symbol.toStringTag, { value: "Module" })), hl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5595
5602
  __proto__: null,
5596
- Form: Co,
5597
- presenter: _o
5603
+ Form: wo,
5604
+ presenter: Po
5598
5605
  }, Symbol.toStringTag, { value: "Module" })), yl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5599
5606
  __proto__: null,
5600
- Form: Po,
5601
- presenter: Oo
5602
- }, Symbol.toStringTag, { value: "Module" })), kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5607
+ Form: $o,
5608
+ presenter: Fo
5609
+ }, Symbol.toStringTag, { value: "Module" })), Ot = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5603
5610
  __proto__: null,
5604
- Form: Fo,
5605
- presenter: Lo
5606
- }, Symbol.toStringTag, { value: "Module" })), Pt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5611
+ Form: No,
5612
+ presenter: To
5613
+ }, Symbol.toStringTag, { value: "Module" })), kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5607
5614
  __proto__: null,
5608
- Form: To,
5609
- presenter: zo
5615
+ Form: Ro,
5616
+ presenter: xo
5610
5617
  }, Symbol.toStringTag, { value: "Module" })), Sl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5611
5618
  __proto__: null,
5612
- Form: xo,
5613
- presenter: jo
5619
+ Form: Io,
5620
+ presenter: qo
5614
5621
  }, Symbol.toStringTag, { value: "Module" })), Vl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5615
5622
  __proto__: null,
5616
- Form: qo,
5617
- presenter: Uo
5623
+ Form: Go,
5624
+ presenter: Jo
5618
5625
  }, Symbol.toStringTag, { value: "Module" })), Bl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5619
5626
  __proto__: null,
5620
- Form: Yo,
5621
- presenter: Qo
5627
+ Form: Xo,
5628
+ presenter: el
5622
5629
  }, Symbol.toStringTag, { value: "Module" })), Al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5623
5630
  __proto__: null,
5624
- Form: el,
5625
- presenter: tl
5631
+ Form: al,
5632
+ presenter: il
5626
5633
  }, Symbol.toStringTag, { value: "Module" })), Cl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5627
5634
  __proto__: null,
5628
- Form: il,
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
+ Form: ol,
5636
+ presenter: ll
5637
+ }, Symbol.toStringTag, { value: "Module" })), $t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5635
5638
  __proto__: null,
5636
- Form: dl,
5637
- presenter: ul
5639
+ Form: sl,
5640
+ presenter: dl
5638
5641
  }, Symbol.toStringTag, { value: "Module" }));
5639
5642
  export {
5640
- co as BikeForm,
5641
- dl as BusinessCarForm,
5642
- ll as CarForm,
5643
- Co as CaravanForm,
5644
- Rl as ComparisonFormFlow,
5643
+ mo as BikeForm,
5644
+ sl as BusinessCarForm,
5645
+ ol as CarForm,
5646
+ Ao as CaravanForm,
5647
+ Dl as ComparisonFormFlow,
5645
5648
  j as ComparisonName,
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
5649
+ No as HouseForm,
5650
+ Ro as LegalForm,
5651
+ $o as LiabilityForm,
5652
+ Go as LoanForm,
5653
+ Xo as MopedForm,
5654
+ al as MotorForm,
5655
+ Io as PackageForm,
5656
+ go as PetForm,
5657
+ wo as TravelForm,
5658
+ co as bikePresenter,
5659
+ dl as businessCarPresenter,
5660
+ ll as carPresenter,
5661
+ Co as caravanPresenter,
5662
+ To as housePresenter,
5663
+ xo as legalPresenter,
5664
+ Fo as liabilityPresenter,
5665
+ Jo as loanPresenter,
5666
+ el as mopedPresenter,
5667
+ il as motorPresenter,
5668
+ qo as packagePresenter,
5669
+ ho as petPresenter,
5670
+ Po as travelPresenter,
5671
+ fl as useComparisonSubmit
5669
5672
  };