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