@vergelijkdirect/comparison-forms 2.1.0-ver-9053.1 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/wc/comparison-forms.js +596 -545
- package/package.json +4 -4
|
@@ -14421,13 +14421,13 @@ var Mw, Nw, Pw, Fw, Iw, Lw, Rw, zw = o((() => {
|
|
|
14421
14421
|
referrerPolicy: this.referrerPolicy
|
|
14422
14422
|
};
|
|
14423
14423
|
}, e.prototype.getDefaultHeaders = function() {
|
|
14424
|
-
var e = {
|
|
14424
|
+
var e = t({
|
|
14425
14425
|
"Content-Type": "application/json",
|
|
14426
14426
|
ITC: "true"
|
|
14427
|
-
},
|
|
14428
|
-
if (!
|
|
14429
|
-
var
|
|
14430
|
-
return (
|
|
14427
|
+
}, this.environment?.api.headers ?? {}), n = this.environment?.api.credentials;
|
|
14428
|
+
if (!n) return e;
|
|
14429
|
+
var r = n.authType ?? "headers";
|
|
14430
|
+
return (r === "headers" || r === "both") && (e["X-Partner-Access-Key"] = n.accessKey, e["X-Partner-Secret"] = n.secret), (r === "basic" || r === "both") && (e.Authorization = `Basic ${btoa(`${n.accessKey}:${n.secret}`)}`), e;
|
|
14431
14431
|
}, e.prototype.getRequest = function(e) {
|
|
14432
14432
|
var n = this.getDefaultConfigurations(), r = this.transformer(e);
|
|
14433
14433
|
return t(t({}, n), r);
|
|
@@ -14773,6 +14773,11 @@ var Mw, Nw, Pw, Fw, Iw, Lw, Rw, zw = o((() => {
|
|
|
14773
14773
|
url: "/request",
|
|
14774
14774
|
data: e
|
|
14775
14775
|
});
|
|
14776
|
+
}, n.prototype.getRequestStatus = function(e) {
|
|
14777
|
+
return this.http({
|
|
14778
|
+
method: "get",
|
|
14779
|
+
url: `/request/status/${e}`
|
|
14780
|
+
});
|
|
14776
14781
|
}, n;
|
|
14777
14782
|
}(Jw().default);
|
|
14778
14783
|
})), Zw = /* @__PURE__ */ s(((e) => {
|
|
@@ -14882,6 +14887,12 @@ var Mw, Nw, Pw, Fw, Iw, Lw, Rw, zw = o((() => {
|
|
|
14882
14887
|
url: "/data/kickbite-tracking",
|
|
14883
14888
|
data: e
|
|
14884
14889
|
});
|
|
14890
|
+
}, n.prototype.sentOpenAITracking = function(e) {
|
|
14891
|
+
return this.http({
|
|
14892
|
+
method: "post",
|
|
14893
|
+
url: "/data/open-ai-tracking",
|
|
14894
|
+
data: e
|
|
14895
|
+
});
|
|
14885
14896
|
}, n.prototype.getProfessions = function(e) {
|
|
14886
14897
|
return e === void 0 && (e = ""), this.http({
|
|
14887
14898
|
method: "get",
|
|
@@ -15310,7 +15321,8 @@ var Mw, Nw, Pw, Fw, Iw, Lw, Rw, zw = o((() => {
|
|
|
15310
15321
|
"laka",
|
|
15311
15322
|
"enra",
|
|
15312
15323
|
"vergelijkdirect",
|
|
15313
|
-
"fietszeker"
|
|
15324
|
+
"fietszeker",
|
|
15325
|
+
"moneyview"
|
|
15314
15326
|
];
|
|
15315
15327
|
}, r.prototype.getEnraRates = function(e) {
|
|
15316
15328
|
return this.http({
|
|
@@ -16147,6 +16159,8 @@ var Mw, Nw, Pw, Fw, Iw, Lw, Rw, zw = o((() => {
|
|
|
16147
16159
|
return this.client.getSBIInfo(e);
|
|
16148
16160
|
}, e.prototype.sentKickbiteTracking = function(e) {
|
|
16149
16161
|
return this.client.sentKickbiteTracking(e);
|
|
16162
|
+
}, e.prototype.sentOpenAITracking = function(e) {
|
|
16163
|
+
return this.client.sentOpenAITracking(e);
|
|
16150
16164
|
}, e.prototype.getProfessions = function(e) {
|
|
16151
16165
|
return e === void 0 && (e = ""), this.client.getProfessions(e);
|
|
16152
16166
|
}, e;
|
|
@@ -16556,6 +16570,12 @@ var Mw, Nw, Pw, Fw, Iw, Lw, Rw, zw = o((() => {
|
|
|
16556
16570
|
return [2, this.client.loanRequest(e)];
|
|
16557
16571
|
});
|
|
16558
16572
|
});
|
|
16573
|
+
}, a.prototype.getRequestStatus = function(e) {
|
|
16574
|
+
return n(this, void 0, void 0, function() {
|
|
16575
|
+
return r(this, function(t) {
|
|
16576
|
+
return [2, this.client.getRequestStatus(e)];
|
|
16577
|
+
});
|
|
16578
|
+
});
|
|
16559
16579
|
}, a;
|
|
16560
16580
|
}(a.RateService);
|
|
16561
16581
|
})), ET = /* @__PURE__ */ s(((e) => {
|
|
@@ -18259,10 +18279,10 @@ var Mw, Nw, Pw, Fw, Iw, Lw, Rw, zw = o((() => {
|
|
|
18259
18279
|
})), BT = /* @__PURE__ */ s(((e) => {
|
|
18260
18280
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = function() {
|
|
18261
18281
|
function e(e) {
|
|
18262
|
-
e === void 0 && (e = {}), this.partnerId = 0, this.configure(e);
|
|
18282
|
+
e === void 0 && (e = {}), this.partnerId = 0, this.showSaveForLater = !0, this.configure(e);
|
|
18263
18283
|
}
|
|
18264
18284
|
return e.prototype.configure = function(e) {
|
|
18265
|
-
this.partnerId = e.id, this.afmLicenseNumber = e.afm_license_number, this.insuranceLogos = e.insuranceLogos, this.comparisonLinks = e.comparisonLinks, this.partnerPixels = e.partner_pixels, this.configurations = e.configurations;
|
|
18285
|
+
this.partnerId = e.id, this.afmLicenseNumber = e.afm_license_number, this.insuranceLogos = e.insuranceLogos, this.comparisonLinks = e.comparisonLinks, this.partnerPixels = e.partner_pixels, this.configurations = e.configurations, this.showSaveForLater = e.show_save_for_later;
|
|
18266
18286
|
}, e.prototype.getPartnerId = function() {
|
|
18267
18287
|
return this.partnerId;
|
|
18268
18288
|
}, e.prototype.getAfmLicenseNumber = function() {
|
|
@@ -18280,6 +18300,8 @@ var Mw, Nw, Pw, Fw, Iw, Lw, Rw, zw = o((() => {
|
|
|
18280
18300
|
if (this.configurations.hasOwnProperty(e)) return this.configurations[e];
|
|
18281
18301
|
} else if (this.configurations.hasOwnProperty(t) && this.configurations[t].hasOwnProperty(e)) return this.configurations[t][e];
|
|
18282
18302
|
return [];
|
|
18303
|
+
}, e.prototype.saveForLaterEnabled = function() {
|
|
18304
|
+
return this.showSaveForLater;
|
|
18283
18305
|
}, e;
|
|
18284
18306
|
}();
|
|
18285
18307
|
})), VT = /* @__PURE__ */ s(((e) => {
|
|
@@ -18540,18 +18562,23 @@ var Mw, Nw, Pw, Fw, Iw, Lw, Rw, zw = o((() => {
|
|
|
18540
18562
|
};
|
|
18541
18563
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.supplierPlacementTracker = void 0, e.supplierPlacementTracker = {
|
|
18542
18564
|
setParams: function() {
|
|
18543
|
-
|
|
18544
|
-
|
|
18565
|
+
if (!(typeof window > "u" || typeof localStorage > "u")) {
|
|
18566
|
+
var e = new URLSearchParams(window.location.search), t = e.get("supplierID"), n = e.get("placementID");
|
|
18567
|
+
t && n && (localStorage.setItem("supplierID", t), localStorage.setItem("placementID", n));
|
|
18568
|
+
}
|
|
18545
18569
|
},
|
|
18546
18570
|
removeParams: function() {
|
|
18547
|
-
localStorage.removeItem("supplierID"), localStorage.removeItem("placementID");
|
|
18571
|
+
typeof localStorage > "u" || (localStorage.removeItem("supplierID"), localStorage.removeItem("placementID"));
|
|
18548
18572
|
},
|
|
18549
18573
|
getSubId: function() {
|
|
18574
|
+
if (typeof window > "u") return "";
|
|
18550
18575
|
var e = new URLSearchParams(window.location.search).get("subid") || this.getCookie("ivanhoe_id");
|
|
18551
18576
|
return e && e.includes("ivan") ? e : "";
|
|
18552
18577
|
},
|
|
18553
18578
|
getCookie: function(e) {
|
|
18554
|
-
var r, i
|
|
18579
|
+
var r, i;
|
|
18580
|
+
if (typeof document > "u") return "";
|
|
18581
|
+
var a = document.cookie.split(";");
|
|
18555
18582
|
try {
|
|
18556
18583
|
for (var o = t(a), s = o.next(); !s.done; s = o.next()) {
|
|
18557
18584
|
var c = s.value, l = n(c.trim().split("=")), u = l[0], d = l.slice(1);
|
|
@@ -18732,7 +18759,7 @@ var Mw, Nw, Pw, Fw, Iw, Lw, Rw, zw = o((() => {
|
|
|
18732
18759
|
var t;
|
|
18733
18760
|
return n(this, function(n) {
|
|
18734
18761
|
switch (n.label) {
|
|
18735
|
-
case 0: return localStorage.getItem("supplierID") && localStorage.getItem("placementID") && (e.SupplierID = localStorage.getItem("supplierID"), e.PlacementID = localStorage.getItem("placementID")), c.supplierPlacementTracker.getSubId() && (e.SubID = c.supplierPlacementTracker.getSubId()), [4, this.client.requestPackage(e)];
|
|
18762
|
+
case 0: return typeof localStorage < "u" && localStorage.getItem("supplierID") && localStorage.getItem("placementID") && (e.SupplierID = localStorage.getItem("supplierID"), e.PlacementID = localStorage.getItem("placementID")), c.supplierPlacementTracker.getSubId() && (e.SubID = c.supplierPlacementTracker.getSubId()), [4, this.client.requestPackage(e)];
|
|
18736
18763
|
case 1: return t = n.sent(), c.supplierPlacementTracker.removeParams(), [2, t];
|
|
18737
18764
|
}
|
|
18738
18765
|
});
|
|
@@ -22677,7 +22704,7 @@ var Cj, wj, Tj, Ej, Dj, Oj, kj, Aj, jj, Mj, Nj, Pj, Fj, Ij, Lj, Rj, zj, Bj, Vj,
|
|
|
22677
22704
|
var r = (NN(), d(kE)), i = zN();
|
|
22678
22705
|
e.default = function() {
|
|
22679
22706
|
function e(e, t, n, r, i, a) {
|
|
22680
|
-
this.unique_id = e, this.funnel = t, this.data = n, this.user = r, this.location = window.location, this.updated_at = i, this.created_at = a;
|
|
22707
|
+
this.unique_id = e, this.funnel = t, this.data = n, this.user = r, this.location = typeof window < "u" ? window.location : { href: "" }, this.updated_at = i, this.created_at = a;
|
|
22681
22708
|
}
|
|
22682
22709
|
return e.prototype.getId = function() {
|
|
22683
22710
|
return this.unique_id;
|
|
@@ -23310,7 +23337,24 @@ var Cj, wj, Tj, Ej, Dj, Oj, kj, Aj, jj, Mj, Nj, Pj, Fj, Ij, Lj, Rj, zj, Bj, Vj,
|
|
|
23310
23337
|
}, e;
|
|
23311
23338
|
}();
|
|
23312
23339
|
})), UN = /* @__PURE__ */ s(((e) => {
|
|
23313
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.
|
|
23340
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = function() {
|
|
23341
|
+
function e() {
|
|
23342
|
+
this.storage = {};
|
|
23343
|
+
}
|
|
23344
|
+
return e.prototype.save = function(e, t) {
|
|
23345
|
+
return this.storage[e] === void 0 && (this.storage[e] = []), this.storage[e].push(t), this;
|
|
23346
|
+
}, e.prototype.put = function(e, t) {
|
|
23347
|
+
return this.storage[e] = t, this;
|
|
23348
|
+
}, e.prototype.get = function(e) {
|
|
23349
|
+
return this.storage[e] === void 0 ? [] : this.storage[e];
|
|
23350
|
+
}, e.prototype.remove = function(e) {
|
|
23351
|
+
return delete this.storage[e], this;
|
|
23352
|
+
}, e.prototype.all = function() {
|
|
23353
|
+
return this.storage;
|
|
23354
|
+
}, e;
|
|
23355
|
+
}();
|
|
23356
|
+
})), WN = /* @__PURE__ */ s(((e) => {
|
|
23357
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.MemoryStorageAdapter = e.LocalStorageAdapter = void 0;
|
|
23314
23358
|
var t = HN();
|
|
23315
23359
|
Object.defineProperty(e, "LocalStorageAdapter", {
|
|
23316
23360
|
enumerable: !0,
|
|
@@ -23318,7 +23362,14 @@ var Cj, wj, Tj, Ej, Dj, Oj, kj, Aj, jj, Mj, Nj, Pj, Fj, Ij, Lj, Rj, zj, Bj, Vj,
|
|
|
23318
23362
|
return t.default;
|
|
23319
23363
|
}
|
|
23320
23364
|
});
|
|
23321
|
-
|
|
23365
|
+
var n = UN();
|
|
23366
|
+
Object.defineProperty(e, "MemoryStorageAdapter", {
|
|
23367
|
+
enumerable: !0,
|
|
23368
|
+
get: function() {
|
|
23369
|
+
return n.default;
|
|
23370
|
+
}
|
|
23371
|
+
});
|
|
23372
|
+
})), GN = /* @__PURE__ */ s(((e) => {
|
|
23322
23373
|
var t = e && e.__createBinding || (Object.create ? (function(e, t, n, r) {
|
|
23323
23374
|
r === void 0 && (r = n);
|
|
23324
23375
|
var i = Object.getOwnPropertyDescriptor(t, n);
|
|
@@ -23333,84 +23384,84 @@ var Cj, wj, Tj, Ej, Dj, Oj, kj, Aj, jj, Mj, Nj, Pj, Fj, Ij, Lj, Rj, zj, Bj, Vj,
|
|
|
23333
23384
|
})), n = e && e.__exportStar || function(e, n) {
|
|
23334
23385
|
for (var r in e) r !== "default" && !Object.prototype.hasOwnProperty.call(n, r) && t(n, e, r);
|
|
23335
23386
|
};
|
|
23336
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), n(uw(), e), n(VN(), e), n(
|
|
23337
|
-
})),
|
|
23338
|
-
|
|
23387
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), n(uw(), e), n(VN(), e), n(WN(), e), n(zN(), e), n(lE(), e);
|
|
23388
|
+
})), KN, qN, JN, YN, XN, ZN, QN, $N, eP, tP, nP = o((() => {
|
|
23389
|
+
KN = GN(), qN = GN(), JN = "v2", YN = null, ZN = (e) => {
|
|
23339
23390
|
if (!e) throw Error("ITC api url is required — pass it to createItcClient(apiUrl) (custom elements: the api-url attribute).");
|
|
23340
23391
|
return e + (e.endsWith("/") ? "api" : "/api");
|
|
23341
|
-
},
|
|
23342
|
-
typeof window > "u" || await new
|
|
23392
|
+
}, QN = async (e) => {
|
|
23393
|
+
typeof window > "u" || await new KN.InsuranceTransmissionClient(new KN.LocalStorageAdapter("insurances")).configure({ api: {
|
|
23343
23394
|
baseUrl: e,
|
|
23344
|
-
version:
|
|
23395
|
+
version: JN
|
|
23345
23396
|
} });
|
|
23346
|
-
},
|
|
23347
|
-
dataService: new
|
|
23348
|
-
dataValidationService: new
|
|
23349
|
-
homeService: new
|
|
23350
|
-
comparisonService: new
|
|
23351
|
-
}),
|
|
23352
|
-
let t =
|
|
23353
|
-
return
|
|
23354
|
-
},
|
|
23355
|
-
})),
|
|
23356
|
-
|
|
23357
|
-
})),
|
|
23358
|
-
|
|
23397
|
+
}, $N = () => ({
|
|
23398
|
+
dataService: new KN.DataService(),
|
|
23399
|
+
dataValidationService: new KN.DataValidationService(),
|
|
23400
|
+
homeService: new KN.HomeService(),
|
|
23401
|
+
comparisonService: new KN.ComparisonService()
|
|
23402
|
+
}), eP = (e) => {
|
|
23403
|
+
let t = ZN(e);
|
|
23404
|
+
return YN ||= QN(t), YN;
|
|
23405
|
+
}, tP = () => (XN ||= $N(), XN);
|
|
23406
|
+
})), rP = o((() => {
|
|
23407
|
+
nP();
|
|
23408
|
+
})), iP, aP = o((() => {
|
|
23409
|
+
iP = (e) => ({
|
|
23359
23410
|
zipCode: e.ZipCode,
|
|
23360
23411
|
houseNumber: String(e.HouseNumber),
|
|
23361
23412
|
houseNumberAddition: e.HouseNumberAddition,
|
|
23362
23413
|
city: e.Place,
|
|
23363
23414
|
street: e.Street
|
|
23364
23415
|
});
|
|
23365
|
-
})),
|
|
23366
|
-
|
|
23416
|
+
})), oP, sP, cP = o((() => {
|
|
23417
|
+
oP = /^\d{4}\s?[a-zA-Z]{2}$/, sP = /^\d+$/;
|
|
23367
23418
|
}));
|
|
23368
23419
|
//#endregion
|
|
23369
23420
|
//#region src/components/fields/address/useAddress.ts
|
|
23370
|
-
function
|
|
23421
|
+
function lP(e) {
|
|
23371
23422
|
return e.replace(/\s/g, "").toUpperCase();
|
|
23372
23423
|
}
|
|
23373
|
-
function
|
|
23374
|
-
return e ===
|
|
23424
|
+
function uP(e) {
|
|
23425
|
+
return e === fP ? "" : e.replace("-", "");
|
|
23375
23426
|
}
|
|
23376
|
-
var
|
|
23377
|
-
q(), GC(),
|
|
23427
|
+
var dP, fP, pP, mP, hP, gP, _P, vP, yP, bP, xP = o((() => {
|
|
23428
|
+
q(), GC(), rP(), aP(), cP(), dP = {
|
|
23378
23429
|
"needs-addition": "Een toevoeging is verplicht",
|
|
23379
23430
|
"not-found": "Postcode en huisnummer combinatie onbekend.",
|
|
23380
23431
|
error: "Adres ophalen is mislukt. Probeer het opnieuw."
|
|
23381
|
-
},
|
|
23382
|
-
if (
|
|
23432
|
+
}, fP = "NO_ADDITION", pP = (e) => e instanceof Error, mP = (e) => {
|
|
23433
|
+
if (pP(e)) throw e;
|
|
23383
23434
|
return null;
|
|
23384
|
-
},
|
|
23435
|
+
}, hP = (e, t, n) => tP().dataValidationService.validateZipCode(e, t, n).then((e) => e).catch(mP), gP = (e, t) => tP().homeService.getAddition({
|
|
23385
23436
|
zipcode: e,
|
|
23386
23437
|
houseNumber: t
|
|
23387
|
-
}).then((e) => e ?? []).catch(
|
|
23388
|
-
let [n, r] = await Promise.all([
|
|
23438
|
+
}).then((e) => e ?? []).catch(mP), _P = async (e, t) => {
|
|
23439
|
+
let [n, r] = await Promise.all([hP(e, t), gP(e, t)]);
|
|
23389
23440
|
return !n && !r?.length ? null : {
|
|
23390
23441
|
validWithoutAddition: !!n,
|
|
23391
23442
|
template: n,
|
|
23392
23443
|
additions: r ?? []
|
|
23393
23444
|
};
|
|
23394
|
-
},
|
|
23445
|
+
}, vP = (e) => {
|
|
23395
23446
|
let t = e.additions.map((e) => ({
|
|
23396
23447
|
title: e,
|
|
23397
|
-
value:
|
|
23448
|
+
value: uP(e)
|
|
23398
23449
|
}));
|
|
23399
23450
|
return e.validWithoutAddition && t.length ? [{
|
|
23400
23451
|
title: "Geen toevoeging",
|
|
23401
|
-
value:
|
|
23452
|
+
value: fP
|
|
23402
23453
|
}, ...t] : t;
|
|
23403
|
-
},
|
|
23454
|
+
}, yP = (e) => ({
|
|
23404
23455
|
zipCode: e?.zipCode ?? "",
|
|
23405
23456
|
houseNumber: e?.houseNumber ?? "",
|
|
23406
|
-
houseNumberAddition: e ? e.houseNumberAddition ||
|
|
23407
|
-
}),
|
|
23408
|
-
let t = e?.path ?? "address", n =
|
|
23409
|
-
let t =
|
|
23457
|
+
houseNumberAddition: e ? e.houseNumberAddition || fP : ""
|
|
23458
|
+
}), bP = (e) => {
|
|
23459
|
+
let t = e?.path ?? "address", n = yP(e?.initial), r = /* @__PURE__ */ N(null), i = /* @__PURE__ */ N([]), a = 0, o = null, s = async (e) => {
|
|
23460
|
+
let t = lP(e.zipCode), n = e.houseNumber.trim(), r = uP(e.houseNumberAddition), i = `${t}:${n}`;
|
|
23410
23461
|
try {
|
|
23411
23462
|
let a = o?.key === i ? o : null;
|
|
23412
23463
|
if (!a) {
|
|
23413
|
-
let e = await
|
|
23464
|
+
let e = await _P(t, n);
|
|
23414
23465
|
if (!e) return {
|
|
23415
23466
|
status: "not-found",
|
|
23416
23467
|
options: [],
|
|
@@ -23421,14 +23472,14 @@ var uP, dP, fP, pP, mP, hP, gP, _P, vP, yP, bP = o((() => {
|
|
|
23421
23472
|
verdict: e
|
|
23422
23473
|
};
|
|
23423
23474
|
}
|
|
23424
|
-
let s =
|
|
23475
|
+
let s = vP(a.verdict);
|
|
23425
23476
|
if (a.verdict.additions.length && !e.houseNumberAddition) return {
|
|
23426
23477
|
status: "needs-addition",
|
|
23427
23478
|
options: s,
|
|
23428
23479
|
address: null
|
|
23429
23480
|
};
|
|
23430
23481
|
if (!a.verdict.template) {
|
|
23431
|
-
let e = await
|
|
23482
|
+
let e = await hP(t, n, r);
|
|
23432
23483
|
if (!e) return {
|
|
23433
23484
|
status: "not-found",
|
|
23434
23485
|
options: [],
|
|
@@ -23453,7 +23504,7 @@ var uP, dP, fP, pP, mP, hP, gP, _P, vP, yP, bP = o((() => {
|
|
|
23453
23504
|
}
|
|
23454
23505
|
}, c = async (e) => {
|
|
23455
23506
|
let t = ++a, n = await s(e), o = t !== a;
|
|
23456
|
-
return o || (i.value = n.options, r.value = n.address ?
|
|
23507
|
+
return o || (i.value = n.options, r.value = n.address ? iP(n.address) : null), {
|
|
23457
23508
|
...n,
|
|
23458
23509
|
stale: o
|
|
23459
23510
|
};
|
|
@@ -23461,25 +23512,25 @@ var uP, dP, fP, pP, mP, hP, gP, _P, vP, yP, bP = o((() => {
|
|
|
23461
23512
|
return {
|
|
23462
23513
|
path: t,
|
|
23463
23514
|
addressSchema: WS({
|
|
23464
|
-
zipCode: IS().required("Vul je postcode in").matches(
|
|
23465
|
-
houseNumber: IS().required("Huisnummer is verplicht").matches(
|
|
23515
|
+
zipCode: IS().required("Vul je postcode in").matches(oP, "Postcode is incorrect"),
|
|
23516
|
+
houseNumber: IS().required("Huisnummer is verplicht").matches(sP, "Huisnummer is incorrect"),
|
|
23466
23517
|
houseNumberAddition: IS().defined()
|
|
23467
23518
|
}).test("address-lookup", async (e, t) => {
|
|
23468
|
-
let n =
|
|
23469
|
-
if (!
|
|
23519
|
+
let n = lP(e.zipCode ?? ""), r = String(e.houseNumber ?? "").trim();
|
|
23520
|
+
if (!oP.test(n) || !sP.test(r)) return !0;
|
|
23470
23521
|
let { status: i, stale: a } = await c(e);
|
|
23471
23522
|
return a || i === "resolved" ? !0 : i === "needs-addition" ? t.createError({
|
|
23472
23523
|
path: `${t.path}.houseNumberAddition`,
|
|
23473
|
-
message:
|
|
23474
|
-
}) : t.createError({ message:
|
|
23524
|
+
message: dP[i]
|
|
23525
|
+
}) : t.createError({ message: dP[i] });
|
|
23475
23526
|
}),
|
|
23476
23527
|
draft: n,
|
|
23477
23528
|
resolvedAddress: r,
|
|
23478
23529
|
additionOptions: i
|
|
23479
23530
|
};
|
|
23480
23531
|
};
|
|
23481
|
-
})),
|
|
23482
|
-
Nd(),
|
|
23532
|
+
})), SP, CP, wP, TP = o((() => {
|
|
23533
|
+
Nd(), SP = {
|
|
23483
23534
|
[Dd.Car]: {
|
|
23484
23535
|
apiTypes: ["Car", "Van"],
|
|
23485
23536
|
dutch: "auto",
|
|
@@ -23500,18 +23551,18 @@ var uP, dP, fP, pP, mP, hP, gP, _P, vP, yP, bP = o((() => {
|
|
|
23500
23551
|
dutch: "caravan",
|
|
23501
23552
|
icon: "fa-caravan-alt"
|
|
23502
23553
|
}
|
|
23503
|
-
},
|
|
23554
|
+
}, CP = Object.fromEntries(Object.values(SP).flatMap(({ apiTypes: e, icon: t }) => e.map((e) => [e.toLowerCase(), t]))), wP = {
|
|
23504
23555
|
brommobiel: "fa-car-side",
|
|
23505
23556
|
"speed pedelec": "fa-bicycle"
|
|
23506
23557
|
};
|
|
23507
|
-
})),
|
|
23508
|
-
|
|
23558
|
+
})), EP, DP, OP, kP = o((() => {
|
|
23559
|
+
TP(), EP = (e) => !!e?.Brand && !!e.Model && !!e.ManufacturingYear, DP = (e) => {
|
|
23509
23560
|
if (!e) return "";
|
|
23510
23561
|
let t = String(e.Model ?? "").toLowerCase().trim(), n = String(e.VehicleType ?? "").toLowerCase();
|
|
23511
|
-
return
|
|
23512
|
-
},
|
|
23513
|
-
})),
|
|
23514
|
-
|
|
23562
|
+
return wP[t] ?? CP[n] ?? "";
|
|
23563
|
+
}, OP = (e) => e ? `${e.Brand} ${e.Model} (${e.ManufacturingYear})` : "";
|
|
23564
|
+
})), AP, jP = o((() => {
|
|
23565
|
+
AP = [
|
|
23515
23566
|
"@@-##-@@",
|
|
23516
23567
|
"##-##-@@",
|
|
23517
23568
|
"##-@@-@@",
|
|
@@ -23530,22 +23581,22 @@ var uP, dP, fP, pP, mP, hP, gP, _P, vP, yP, bP = o((() => {
|
|
|
23530
23581
|
}));
|
|
23531
23582
|
//#endregion
|
|
23532
23583
|
//#region src/components/fields/licensePlate/licensePlate.util.ts
|
|
23533
|
-
function
|
|
23584
|
+
function MP(e) {
|
|
23534
23585
|
return e.replace(/[\s\\-]/g, "");
|
|
23535
23586
|
}
|
|
23536
|
-
function
|
|
23537
|
-
let t =
|
|
23538
|
-
if (t.length < 6) return
|
|
23539
|
-
let n = [...t].map((e) => /[0-9]/.test(e) ? "#" : "@").join(""), r =
|
|
23540
|
-
return r === -1 ?
|
|
23541
|
-
}
|
|
23542
|
-
var
|
|
23543
|
-
|
|
23544
|
-
})),
|
|
23545
|
-
q(), Iv(),
|
|
23587
|
+
function NP(e) {
|
|
23588
|
+
let t = MP(e).slice(0, 6);
|
|
23589
|
+
if (t.length < 6) return PP;
|
|
23590
|
+
let n = [...t].map((e) => /[0-9]/.test(e) ? "#" : "@").join(""), r = FP.indexOf(n);
|
|
23591
|
+
return r === -1 ? PP : AP[r];
|
|
23592
|
+
}
|
|
23593
|
+
var PP, FP, IP = o((() => {
|
|
23594
|
+
jP(), PP = "*".repeat(6), FP = AP.map((e) => e.replace(/-/g, ""));
|
|
23595
|
+
})), LP, RP, zP, BP = o((() => {
|
|
23596
|
+
q(), Iv(), kP(), IP(), LP = {
|
|
23546
23597
|
key: 0,
|
|
23547
23598
|
class: "vd-input-license-plate__loading-information"
|
|
23548
|
-
},
|
|
23599
|
+
}, RP = ["src"], zP = /*@__PURE__*/ L({
|
|
23549
23600
|
inheritAttrs: !1,
|
|
23550
23601
|
__name: "VdLicensePlate",
|
|
23551
23602
|
props: /*@__PURE__*/ Di({
|
|
@@ -23568,16 +23619,16 @@ var NP, PP, FP = o((() => {
|
|
|
23568
23619
|
}),
|
|
23569
23620
|
emits: /*@__PURE__*/ Di(["input"], ["update:modelValue", "update:vehicleData"]),
|
|
23570
23621
|
setup(e, { emit: t }) {
|
|
23571
|
-
let n = { mask:
|
|
23622
|
+
let n = { mask: NP }, r = e, i = Gi(e, "modelValue"), a = Gi(e, "vehicleData"), o = t, s = Ci(), c = Si(), l = K({
|
|
23572
23623
|
get: () => i.value ?? "",
|
|
23573
23624
|
set: (e) => {
|
|
23574
23625
|
i.value = e, o("input", e);
|
|
23575
23626
|
}
|
|
23576
|
-
}), u = (e, t) =>
|
|
23627
|
+
}), u = (e, t) => MP(e).toUpperCase() === MP(t).toUpperCase();
|
|
23577
23628
|
I(i, (e) => {
|
|
23578
23629
|
a.value && !u(e, a.value.LicensePlate) && (a.value = null);
|
|
23579
23630
|
});
|
|
23580
|
-
let d = K(() =>
|
|
23631
|
+
let d = K(() => EP(a.value) ? a.value : null), f = K(() => r.loading || !!d.value && !r.errorMessage), p = K(() => DP(d.value)), m = K(() => OP(d.value));
|
|
23581
23632
|
return (t, r) => (z(), V(Fv, W(P(s), {
|
|
23582
23633
|
modelValue: l.value,
|
|
23583
23634
|
"onUpdate:modelValue": r[0] ||= (e) => l.value = e,
|
|
@@ -23603,12 +23654,12 @@ var NP, PP, FP = o((() => {
|
|
|
23603
23654
|
} : void 0,
|
|
23604
23655
|
f.value ? {
|
|
23605
23656
|
name: "information",
|
|
23606
|
-
fn: F(() => [e.loading ? (z(), B("div",
|
|
23657
|
+
fn: F(() => [e.loading ? (z(), B("div", LP, [...r[1] ||= [H("i", { class: "fas fa-circle-notch vd-input-license-plate__loading-icon" }, null, -1), La(" Voertuig gegevens ophalen... ", -1)]])) : d.value ? (z(), B(Ks, { key: 1 }, [p.value ? (z(), B("img", {
|
|
23607
23658
|
key: 0,
|
|
23608
23659
|
src: `https://d12bmfj3oyxu0t.cloudfront.net/vergelijkdirect/icons/${p.value}.svg`,
|
|
23609
23660
|
class: "vd-field__svg-message-icon",
|
|
23610
23661
|
alt: "vehicle-icon"
|
|
23611
|
-
}, null, 8,
|
|
23662
|
+
}, null, 8, RP)) : U("", !0), La(" " + Re(m.value), 1)], 64)) : U("", !0)]),
|
|
23612
23663
|
key: "2"
|
|
23613
23664
|
} : void 0
|
|
23614
23665
|
]), 1040, [
|
|
@@ -23621,63 +23672,63 @@ var NP, PP, FP = o((() => {
|
|
|
23621
23672
|
]));
|
|
23622
23673
|
}
|
|
23623
23674
|
});
|
|
23624
|
-
})),
|
|
23625
|
-
|
|
23626
|
-
})),
|
|
23627
|
-
q(), GC(),
|
|
23628
|
-
"wrong-type": (e) => `Het ingevoerde kenteken is geen ${
|
|
23675
|
+
})), VP, HP = o((() => {
|
|
23676
|
+
BP(), BP(), VP = zP;
|
|
23677
|
+
})), UP, WP, GP, KP, qP, JP, YP = o((() => {
|
|
23678
|
+
q(), GC(), rP(), TP(), IP(), jP(), UP = /* @__PURE__ */ new Map(), WP = (e, t) => `${t}:${e}`, GP = {
|
|
23679
|
+
"wrong-type": (e) => `Het ingevoerde kenteken is geen ${SP[e].dutch}`,
|
|
23629
23680
|
unknown: () => "Voertuig onbekend - Voer ander kenteken in of neem contact op",
|
|
23630
23681
|
"not-found": () => "Kenteken onbekend",
|
|
23631
23682
|
error: () => "Kenteken is incorrect"
|
|
23632
|
-
},
|
|
23683
|
+
}, KP = async (e, t) => {
|
|
23633
23684
|
try {
|
|
23634
|
-
let n = await
|
|
23685
|
+
let n = await tP().dataService.findVehicle(e, t);
|
|
23635
23686
|
if (Array.isArray(n) || !n || !Object.keys(n).length) return { status: "not-found" };
|
|
23636
23687
|
let r = n;
|
|
23637
|
-
return r.VehicleType ?
|
|
23688
|
+
return r.VehicleType ? SP[t].apiTypes.includes(r.VehicleType) ? {
|
|
23638
23689
|
status: "found",
|
|
23639
23690
|
data: r
|
|
23640
23691
|
} : { status: "wrong-type" } : { status: "unknown" };
|
|
23641
23692
|
} catch (e) {
|
|
23642
23693
|
return console.error("Error on ITC findVehicle", e), { status: "error" };
|
|
23643
23694
|
}
|
|
23644
|
-
},
|
|
23645
|
-
let n =
|
|
23646
|
-
return r || (r =
|
|
23647
|
-
e === "error" &&
|
|
23648
|
-
}, () =>
|
|
23649
|
-
},
|
|
23695
|
+
}, qP = (e, t) => {
|
|
23696
|
+
let n = WP(e, t), r = UP.get(n);
|
|
23697
|
+
return r || (r = KP(e, t), UP.set(n, r), r.then(({ status: e }) => {
|
|
23698
|
+
e === "error" && UP.delete(n);
|
|
23699
|
+
}, () => UP.delete(n))), r;
|
|
23700
|
+
}, JP = (e, t = {}) => {
|
|
23650
23701
|
let n = /* @__PURE__ */ N(t.initialData ?? null), r = 0;
|
|
23651
|
-
t.initialData?.LicensePlate &&
|
|
23702
|
+
t.initialData?.LicensePlate && UP.set(WP(MP(t.initialData.LicensePlate), e), Promise.resolve({
|
|
23652
23703
|
status: "found",
|
|
23653
23704
|
data: t.initialData
|
|
23654
23705
|
}));
|
|
23655
23706
|
let i = async (t) => {
|
|
23656
|
-
let i =
|
|
23707
|
+
let i = MP(t), a = ++r, o = await qP(i, e);
|
|
23657
23708
|
return a === r && (n.value = o.status === "found" ? o.data : null), o;
|
|
23658
23709
|
};
|
|
23659
23710
|
return {
|
|
23660
23711
|
vehicleData: n,
|
|
23661
23712
|
licensePlateSchema: IS().required("Dit veld is verplicht").test("license-plate-lookup", async (t, n) => {
|
|
23662
23713
|
if (!t) return !0;
|
|
23663
|
-
let r =
|
|
23714
|
+
let r = MP(t);
|
|
23664
23715
|
if (r.length < 6) return n.createError({ message: "Kenteken is incorrect" });
|
|
23665
23716
|
let { status: a } = await i(r);
|
|
23666
|
-
return a === "found" || n.createError({ message:
|
|
23717
|
+
return a === "found" || n.createError({ message: GP[a](e) });
|
|
23667
23718
|
})
|
|
23668
23719
|
};
|
|
23669
23720
|
};
|
|
23670
|
-
})),
|
|
23671
|
-
|
|
23721
|
+
})), XP, ZP, QP = o((() => {
|
|
23722
|
+
XP = (e) => /^\d{8}$/.test(e), ZP = (e) => XP(e) ? {
|
|
23672
23723
|
companyName: "",
|
|
23673
23724
|
kvkNumber: e
|
|
23674
23725
|
} : {
|
|
23675
23726
|
companyName: e,
|
|
23676
23727
|
kvkNumber: ""
|
|
23677
23728
|
};
|
|
23678
|
-
})),
|
|
23679
|
-
|
|
23680
|
-
let t =
|
|
23729
|
+
})), $P, eF, tF, nF, rF, iF, aF = o((() => {
|
|
23730
|
+
$P = "bezoekadres", eF = (e) => e._embedded?.hoofdvestiging?.adressen?.find((e) => e.type === $P), tF = (e) => {
|
|
23731
|
+
let t = eF(e), { huisnummer: n = 0, huisletter: r = "", huisnummerToevoeging: i = "", toevoegingAdres: a = "", plaats: o = "", postcode: s = "", straatnaam: c = "", volledigAdres: l = "" } = t ?? {};
|
|
23681
23732
|
return {
|
|
23682
23733
|
houseNumber: n,
|
|
23683
23734
|
houseNumberAddition: r || i || a,
|
|
@@ -23687,7 +23738,7 @@ var NP, PP, FP = o((() => {
|
|
|
23687
23738
|
fullAddress: l,
|
|
23688
23739
|
hasVisitingAddress: !!t
|
|
23689
23740
|
};
|
|
23690
|
-
},
|
|
23741
|
+
}, nF = (e = []) => {
|
|
23691
23742
|
let [t, n, r] = e.reduce(([e, t, n], r) => {
|
|
23692
23743
|
let i = {
|
|
23693
23744
|
isMainActivity: r.indHoofdactiviteit,
|
|
@@ -23710,22 +23761,22 @@ var NP, PP, FP = o((() => {
|
|
|
23710
23761
|
firstSBIs: t,
|
|
23711
23762
|
secondSBIs: n
|
|
23712
23763
|
};
|
|
23713
|
-
},
|
|
23764
|
+
}, rF = (e) => ({
|
|
23714
23765
|
kvkNumber: e.kvkNummer,
|
|
23715
23766
|
name: e.naam,
|
|
23716
23767
|
city: e.adres?.binnenlandsAdres?.plaats ?? "",
|
|
23717
23768
|
street: e.adres?.binnenlandsAdres?.straatnaam ?? ""
|
|
23718
|
-
}),
|
|
23769
|
+
}), iF = (e) => ({
|
|
23719
23770
|
name: e.naam,
|
|
23720
23771
|
kvkNumber: e.kvkNummer,
|
|
23721
23772
|
industry: e.sbiIndustryId,
|
|
23722
23773
|
numberOfEmployees: e.totaalWerkzamePersonen,
|
|
23723
23774
|
legalForm: e._embedded?.eigenaar?.rechtsvorm ?? "",
|
|
23724
|
-
...
|
|
23725
|
-
...
|
|
23775
|
+
...tF(e),
|
|
23776
|
+
...nF(e.sbiActiviteiten)
|
|
23726
23777
|
});
|
|
23727
|
-
})),
|
|
23728
|
-
|
|
23778
|
+
})), oF, sF, cF, lF, uF, dF, fF = o((() => {
|
|
23779
|
+
rP(), QP(), aF(), oF = 30, sF = ["hoofdvestiging", "nevenvestiging"], cF = "IPD5200", lF = (e) => {
|
|
23729
23780
|
let t = e, n = t?.response?.data?.fout;
|
|
23730
23781
|
if (Array.isArray(n)) return n;
|
|
23731
23782
|
if (Array.isArray(t?.fout)) return t.fout;
|
|
@@ -23733,26 +23784,26 @@ var NP, PP, FP = o((() => {
|
|
|
23733
23784
|
let e = JSON.parse(t.message);
|
|
23734
23785
|
if (Array.isArray(e?.fout)) return e.fout;
|
|
23735
23786
|
} catch {}
|
|
23736
|
-
},
|
|
23787
|
+
}, uF = (e) => lF(e)?.some((e) => e.code === cF) ?? !1, dF = () => ({
|
|
23737
23788
|
search: async (e) => {
|
|
23738
23789
|
try {
|
|
23739
|
-
return ((await
|
|
23790
|
+
return ((await tP().dataService.searchBusinessInfoV2(ZP(e), 1, oF))?.resultaten ?? []).filter((e) => sF.includes(e.type)).map(rF);
|
|
23740
23791
|
} catch (e) {
|
|
23741
23792
|
let t = await e;
|
|
23742
|
-
if (
|
|
23793
|
+
if (uF(t)) return [];
|
|
23743
23794
|
throw t;
|
|
23744
23795
|
}
|
|
23745
23796
|
},
|
|
23746
23797
|
getDetails: async (e) => {
|
|
23747
|
-
let t = await
|
|
23798
|
+
let t = await tP().dataService.getProfileInfo(e);
|
|
23748
23799
|
return {
|
|
23749
|
-
presenter:
|
|
23800
|
+
presenter: iF(t),
|
|
23750
23801
|
raw: t
|
|
23751
23802
|
};
|
|
23752
23803
|
}
|
|
23753
23804
|
});
|
|
23754
|
-
})),
|
|
23755
|
-
q(), Vb(), Sd(),
|
|
23805
|
+
})), pF, mF, hF, gF, _F, vF, yF, bF, xF, SF, CF, wF = o((() => {
|
|
23806
|
+
q(), Vb(), Sd(), fF(), pF = { class: "vd-combobox__multiline" }, mF = { class: "vd-combobox__title" }, hF = { class: "vd-combobox__subtext" }, gF = { class: "vd-combobox__subtext" }, _F = 400, vF = 3, yF = "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.", bF = "Typ je bedrijfsnaam of KvK-nummer", xF = "Aan het zoeken…", SF = "Er ging iets mis bij het ophalen van de gegevens. Probeer het later opnieuw.", CF = /*@__PURE__*/ L({
|
|
23756
23807
|
inheritAttrs: !1,
|
|
23757
23808
|
__name: "VdCompanySelect",
|
|
23758
23809
|
props: /*@__PURE__*/ Di({
|
|
@@ -23771,7 +23822,7 @@ var NP, PP, FP = o((() => {
|
|
|
23771
23822
|
"raw"
|
|
23772
23823
|
], ["update:modelValue"]),
|
|
23773
23824
|
setup(e, { emit: t }) {
|
|
23774
|
-
let n = t, r = Ci(), i = Si(), a = Gi(e, "modelValue"), { search: o, getDetails: s } =
|
|
23825
|
+
let n = t, r = Ci(), i = Si(), a = Gi(e, "modelValue"), { search: o, getDetails: s } = dF(), c = /* @__PURE__ */ N(), l = /* @__PURE__ */ N(), u = /* @__PURE__ */ N(), d = /* @__PURE__ */ N(""), f = $u(d, _F, { maxWait: 2e3 }), p = /* @__PURE__ */ N(!0), { state: m, isLoading: h, execute: g } = gd(async (e) => {
|
|
23775
23826
|
try {
|
|
23776
23827
|
return {
|
|
23777
23828
|
results: await o(e),
|
|
@@ -23794,20 +23845,20 @@ var NP, PP, FP = o((() => {
|
|
|
23794
23845
|
let { presenter: t, raw: r } = await s(e);
|
|
23795
23846
|
return a.value = t, n("raw", r), n("error", null), t;
|
|
23796
23847
|
} catch (e) {
|
|
23797
|
-
throw a.value = null, n("raw", null), u.value = void 0, c.value = void 0, n("error",
|
|
23848
|
+
throw a.value = null, n("raw", null), u.value = void 0, c.value = void 0, n("error", SF), e;
|
|
23798
23849
|
}
|
|
23799
23850
|
}, null, {
|
|
23800
23851
|
immediate: !1,
|
|
23801
23852
|
resetOnExecute: !0
|
|
23802
|
-
}), y = K(() => d.value.length >=
|
|
23853
|
+
}), y = K(() => d.value.length >= vF), b = K(() => y.value ? h.value || d.value !== f.value ? "searching" : m.value.failed ? "error" : m.value.results.length ? "idle" : "no-results" : "idle"), x = K(() => b.value === "searching" ? [] : y.value ? m.value.results : p.value && u.value ? [u.value] : []), S = K(() => b.value === "searching" || _.value), C = K(() => !!a.value && !S.value), w = K(() => {
|
|
23803
23854
|
let e = a.value;
|
|
23804
23855
|
return !e || S.value ? "" : e.fullAddress ? `Kvk: ${e.kvkNumber} ${e.fullAddress}` : `Kvk: ${e.kvkNumber}`;
|
|
23805
23856
|
}), T = K(() => {
|
|
23806
23857
|
switch (b.value) {
|
|
23807
|
-
case "searching": return
|
|
23808
|
-
case "error": return
|
|
23809
|
-
case "no-results": return
|
|
23810
|
-
default: return
|
|
23858
|
+
case "searching": return xF;
|
|
23859
|
+
case "error": return SF;
|
|
23860
|
+
case "no-results": return yF;
|
|
23861
|
+
default: return bF;
|
|
23811
23862
|
}
|
|
23812
23863
|
}), ee = (e) => {
|
|
23813
23864
|
u.value = e, p.value = !0, e.kvkNumber === a.value?.kvkNumber ? n("error", null) : v(0, e.kvkNumber);
|
|
@@ -23825,7 +23876,7 @@ var NP, PP, FP = o((() => {
|
|
|
23825
23876
|
return I(l, (e) => {
|
|
23826
23877
|
e || (d.value = "", p.value = !0);
|
|
23827
23878
|
}), I(f, (e) => {
|
|
23828
|
-
e && e.length >=
|
|
23879
|
+
e && e.length >= vF && g(0, e);
|
|
23829
23880
|
}), I(a, (e) => {
|
|
23830
23881
|
c.value = e ? ne(e) : void 0, p.value = !0, e || (u.value = void 0, n("raw", null));
|
|
23831
23882
|
}, { immediate: !0 }), (t, n) => (z(), V(Bb, W(P(r), {
|
|
@@ -23853,10 +23904,10 @@ var NP, PP, FP = o((() => {
|
|
|
23853
23904
|
onBlur: E,
|
|
23854
23905
|
onSearch: te
|
|
23855
23906
|
}), fi({
|
|
23856
|
-
item: F(({ option: e }) => [H("div",
|
|
23857
|
-
H("div",
|
|
23858
|
-
H("span",
|
|
23859
|
-
H("span",
|
|
23907
|
+
item: F(({ option: e }) => [H("div", pF, [
|
|
23908
|
+
H("div", mF, Re(e.name), 1),
|
|
23909
|
+
H("span", hF, "Kvk: " + Re(e.kvkNumber), 1),
|
|
23910
|
+
H("span", gF, Re(e.city) + ", " + Re(e.street), 1)
|
|
23860
23911
|
])]),
|
|
23861
23912
|
_: 2
|
|
23862
23913
|
}, [P(i).popover ? {
|
|
@@ -23883,31 +23934,31 @@ var NP, PP, FP = o((() => {
|
|
|
23883
23934
|
]));
|
|
23884
23935
|
}
|
|
23885
23936
|
});
|
|
23886
|
-
})),
|
|
23887
|
-
|
|
23888
|
-
})),
|
|
23889
|
-
GC(),
|
|
23890
|
-
})),
|
|
23891
|
-
Rd(), Iv(), Xv(), Vb(), ax(), dx(), Rx(), rS(), Gx(), Jx(), sS(), dS(), hS(), cw(),
|
|
23892
|
-
})),
|
|
23893
|
-
|
|
23937
|
+
})), TF, EF = o((() => {
|
|
23938
|
+
wF(), wF(), TF = CF;
|
|
23939
|
+
})), DF, OF = o((() => {
|
|
23940
|
+
GC(), DF = (e = "Bedrijfsnaam of KVK-nummer is verplicht") => jS().nullable().required(e).test("has-kvk-number", e, (e) => !!e?.kvkNumber);
|
|
23941
|
+
})), kF = o((() => {
|
|
23942
|
+
Rd(), Iv(), Xv(), Vb(), ax(), dx(), Rx(), rS(), Gx(), Jx(), sS(), dS(), hS(), cw(), xP(), HP(), YP(), EF(), fF(), OF();
|
|
23943
|
+
})), AF, jF = o((() => {
|
|
23944
|
+
AF = {
|
|
23894
23945
|
min: 18,
|
|
23895
23946
|
max: 99
|
|
23896
23947
|
};
|
|
23897
|
-
})),
|
|
23898
|
-
|
|
23899
|
-
})),
|
|
23900
|
-
Nd(),
|
|
23948
|
+
})), MF, NF = o((() => {
|
|
23949
|
+
MF = "DD-MM-YYYY";
|
|
23950
|
+
})), PF, FF = o((() => {
|
|
23951
|
+
Nd(), PF = [
|
|
23901
23952
|
kd.SingleWithoutChildren,
|
|
23902
23953
|
kd.FamilyWithoutChildren,
|
|
23903
23954
|
kd.SingleWithChildren,
|
|
23904
23955
|
kd.FamilyWithChildren
|
|
23905
23956
|
];
|
|
23906
|
-
})),
|
|
23907
|
-
Nd(),
|
|
23908
|
-
})),
|
|
23909
|
-
|
|
23910
|
-
})),
|
|
23957
|
+
})), IF, LF = o((() => {
|
|
23958
|
+
Nd(), IF = [jd.Yes, jd.No];
|
|
23959
|
+
})), RF = o((() => {
|
|
23960
|
+
jF(), NF(), FF(), LF();
|
|
23961
|
+
})), zF = /* @__PURE__ */ s(((e, t) => {
|
|
23911
23962
|
(function(n, r) {
|
|
23912
23963
|
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs = r();
|
|
23913
23964
|
})(e, (function() {
|
|
@@ -24201,7 +24252,7 @@ var NP, PP, FP = o((() => {
|
|
|
24201
24252
|
return w(1e3 * e);
|
|
24202
24253
|
}, w.en = b[y], w.Ls = b, w.p = {}, w;
|
|
24203
24254
|
}));
|
|
24204
|
-
})),
|
|
24255
|
+
})), BF = /* @__PURE__ */ s(((e, t) => {
|
|
24205
24256
|
(function(n, r) {
|
|
24206
24257
|
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_plugin_customParseFormat = r();
|
|
24207
24258
|
})(e, (function() {
|
|
@@ -24360,38 +24411,38 @@ var NP, PP, FP = o((() => {
|
|
|
24360
24411
|
}));
|
|
24361
24412
|
//#endregion
|
|
24362
24413
|
//#region src/utils/date.util.ts
|
|
24363
|
-
function BF() {
|
|
24364
|
-
return (0, WF.default)().startOf("day");
|
|
24365
|
-
}
|
|
24366
24414
|
function VF() {
|
|
24367
|
-
return
|
|
24415
|
+
return (0, GF.default)().startOf("day");
|
|
24368
24416
|
}
|
|
24369
|
-
function HF(
|
|
24370
|
-
|
|
24371
|
-
return n.isValid() ? n.startOf("day") : null;
|
|
24417
|
+
function HF() {
|
|
24418
|
+
return VF().year();
|
|
24372
24419
|
}
|
|
24373
24420
|
function UF(e, t) {
|
|
24374
|
-
let n =
|
|
24421
|
+
let n = (0, GF.default)(e ?? "", t, !0);
|
|
24422
|
+
return n.isValid() ? n.startOf("day") : null;
|
|
24423
|
+
}
|
|
24424
|
+
function WF(e, t) {
|
|
24425
|
+
let n = VF();
|
|
24375
24426
|
return {
|
|
24376
24427
|
today: n,
|
|
24377
24428
|
earliest: n.subtract(t.value + 1, t.unit).add(1, "day"),
|
|
24378
24429
|
latest: n.subtract(e.value, e.unit)
|
|
24379
24430
|
};
|
|
24380
24431
|
}
|
|
24381
|
-
var
|
|
24382
|
-
|
|
24432
|
+
var GF, KF, qF = o((() => {
|
|
24433
|
+
GF = /* @__PURE__ */ u(zF(), 1), KF = /* @__PURE__ */ u(BF(), 1), GF.default.extend(KF.default);
|
|
24383
24434
|
}));
|
|
24384
24435
|
//#endregion
|
|
24385
24436
|
//#region src/utils/familyComposition.util.ts
|
|
24386
|
-
function
|
|
24387
|
-
return
|
|
24437
|
+
function JF(e) {
|
|
24438
|
+
return YF.includes(e);
|
|
24388
24439
|
}
|
|
24389
|
-
var
|
|
24390
|
-
Nd(),
|
|
24440
|
+
var YF, XF = o((() => {
|
|
24441
|
+
Nd(), YF = [kd.FamilyWithChildren, kd.FamilyWithoutChildren];
|
|
24391
24442
|
}));
|
|
24392
24443
|
//#endregion
|
|
24393
24444
|
//#region src/utils/normalizeInitialData.util.ts
|
|
24394
|
-
function
|
|
24445
|
+
function ZF(e) {
|
|
24395
24446
|
if (e == null) return {};
|
|
24396
24447
|
if (typeof e == "string") {
|
|
24397
24448
|
let t = e.trim();
|
|
@@ -24406,20 +24457,20 @@ function XF(e) {
|
|
|
24406
24457
|
}
|
|
24407
24458
|
return Wy(e) ? { data: e } : { error: /* @__PURE__ */ Error("initial-data must be an object") };
|
|
24408
24459
|
}
|
|
24409
|
-
var
|
|
24460
|
+
var QF = o((() => {
|
|
24410
24461
|
nb();
|
|
24411
|
-
})),
|
|
24412
|
-
|
|
24462
|
+
})), $F = o((() => {
|
|
24463
|
+
qF(), XF(), QF();
|
|
24413
24464
|
}));
|
|
24414
24465
|
//#endregion
|
|
24415
24466
|
//#region src/schemas/birthdateRange.ts
|
|
24416
|
-
function
|
|
24467
|
+
function eI(e, t, n = "ageRange") {
|
|
24417
24468
|
return {
|
|
24418
24469
|
name: n,
|
|
24419
24470
|
test(n, r) {
|
|
24420
|
-
let i =
|
|
24471
|
+
let i = UF(n, MF);
|
|
24421
24472
|
if (!i) return !0;
|
|
24422
|
-
let { today: a, earliest: o, latest: s } =
|
|
24473
|
+
let { today: a, earliest: o, latest: s } = WF(e.min, e.max), c = {
|
|
24423
24474
|
earliest: o,
|
|
24424
24475
|
latest: s
|
|
24425
24476
|
};
|
|
@@ -24427,10 +24478,10 @@ function $F(e, t, n = "ageRange") {
|
|
|
24427
24478
|
}
|
|
24428
24479
|
};
|
|
24429
24480
|
}
|
|
24430
|
-
var
|
|
24431
|
-
|
|
24432
|
-
})),
|
|
24433
|
-
|
|
24481
|
+
var tI = o((() => {
|
|
24482
|
+
zF(), GC(), RF(), $F();
|
|
24483
|
+
})), nI, rI = o((() => {
|
|
24484
|
+
nI = {
|
|
24434
24485
|
birthdate: {
|
|
24435
24486
|
required: "Geboortedatum is verplicht",
|
|
24436
24487
|
dateFormat: "Geboortedatum is incorrect",
|
|
@@ -24470,11 +24521,11 @@ var eI = o((() => {
|
|
|
24470
24521
|
}));
|
|
24471
24522
|
//#endregion
|
|
24472
24523
|
//#region src/schemas/birthdate.schema.ts
|
|
24473
|
-
function
|
|
24474
|
-
return
|
|
24524
|
+
function iI(e) {
|
|
24525
|
+
return UF(e, MF) !== null;
|
|
24475
24526
|
}
|
|
24476
|
-
function
|
|
24477
|
-
return IS().required(
|
|
24527
|
+
function aI(e = AF) {
|
|
24528
|
+
return IS().required(nI.birthdate.required).test("date_format", nI.birthdate.dateFormat, iI).test(eI({
|
|
24478
24529
|
min: {
|
|
24479
24530
|
value: e.min,
|
|
24480
24531
|
unit: "year"
|
|
@@ -24484,69 +24535,69 @@ function iI(e = kF) {
|
|
|
24484
24535
|
unit: "year"
|
|
24485
24536
|
}
|
|
24486
24537
|
}, {
|
|
24487
|
-
tooYoung: () =>
|
|
24488
|
-
tooOld: () =>
|
|
24538
|
+
tooYoung: () => nI.birthdate.tooYoung(e.min),
|
|
24539
|
+
tooOld: () => nI.birthdate.tooOld(e.max)
|
|
24489
24540
|
}));
|
|
24490
24541
|
}
|
|
24491
|
-
var
|
|
24492
|
-
GC(),
|
|
24542
|
+
var oI = o((() => {
|
|
24543
|
+
GC(), RF(), $F(), tI(), rI();
|
|
24493
24544
|
}));
|
|
24494
24545
|
//#endregion
|
|
24495
24546
|
//#region src/schemas/rules.ts
|
|
24496
|
-
function
|
|
24547
|
+
function sI(e, t) {
|
|
24497
24548
|
return IS().required(t).oneOf(e, t);
|
|
24498
24549
|
}
|
|
24499
|
-
function
|
|
24550
|
+
function cI(e) {
|
|
24500
24551
|
return IS().required(e);
|
|
24501
24552
|
}
|
|
24502
|
-
function
|
|
24553
|
+
function lI(e) {
|
|
24503
24554
|
return LS().typeError(e).required(e);
|
|
24504
24555
|
}
|
|
24505
|
-
var
|
|
24556
|
+
var uI = o((() => {
|
|
24506
24557
|
GC();
|
|
24507
24558
|
}));
|
|
24508
24559
|
//#endregion
|
|
24509
24560
|
//#region src/schemas/familyComposition.schema.ts
|
|
24510
|
-
function
|
|
24511
|
-
return
|
|
24512
|
-
}
|
|
24513
|
-
var
|
|
24514
|
-
GC(),
|
|
24515
|
-
})),
|
|
24516
|
-
GC(),
|
|
24517
|
-
})),
|
|
24518
|
-
|
|
24519
|
-
})),
|
|
24520
|
-
|
|
24561
|
+
function dI(e = nI.familyComposition.required) {
|
|
24562
|
+
return sI(PF, e);
|
|
24563
|
+
}
|
|
24564
|
+
var fI, pI = o((() => {
|
|
24565
|
+
GC(), RF(), uI(), rI(), fI = dI();
|
|
24566
|
+
})), mI, hI = o((() => {
|
|
24567
|
+
GC(), RF(), uI(), rI(), mI = sI(IF, nI.ownedBuilding.required);
|
|
24568
|
+
})), gI = o((() => {
|
|
24569
|
+
oI(), tI(), pI(), hI(), uI(), rI();
|
|
24570
|
+
})), _I, vI, yI, bI, xI = o((() => {
|
|
24571
|
+
_I = [1, 7], vI = [3, 4], yI = {
|
|
24521
24572
|
raceOrMtb: 15e3,
|
|
24522
24573
|
default: 9999
|
|
24523
|
-
},
|
|
24574
|
+
}, bI = {
|
|
24524
24575
|
mask: "N####",
|
|
24525
24576
|
tokens: { N: { pattern: /[1-9]/ } }
|
|
24526
24577
|
};
|
|
24527
|
-
})),
|
|
24528
|
-
GC(),
|
|
24578
|
+
})), SI, CI, wI = o((() => {
|
|
24579
|
+
GC(), gI(), xI(), SI = (e, t) => e.test("max-value", nI.bike.priceMax(t), (e) => {
|
|
24529
24580
|
let n = Number(e);
|
|
24530
24581
|
return Number.isNaN(n) || n <= t;
|
|
24531
|
-
}),
|
|
24532
|
-
kind:
|
|
24533
|
-
condition:
|
|
24534
|
-
price: IS().required(
|
|
24582
|
+
}), CI = WS({
|
|
24583
|
+
kind: lI(nI.bike.kindRequired),
|
|
24584
|
+
condition: lI(nI.bike.conditionRequired),
|
|
24585
|
+
price: IS().required(nI.bike.priceRequired).test("min-value", nI.bike.priceMin, (e) => {
|
|
24535
24586
|
if (!e) return !0;
|
|
24536
24587
|
let t = Number(e);
|
|
24537
24588
|
return Number.isNaN(t) || t > 0;
|
|
24538
24589
|
}).when("kind", {
|
|
24539
|
-
is: (e) =>
|
|
24540
|
-
then: (e) =>
|
|
24541
|
-
otherwise: (e) =>
|
|
24590
|
+
is: (e) => vI.includes(Number(e)),
|
|
24591
|
+
then: (e) => SI(e, yI.raceOrMtb),
|
|
24592
|
+
otherwise: (e) => SI(e, yI.default)
|
|
24542
24593
|
}),
|
|
24543
24594
|
brand: IS().when("kind", {
|
|
24544
|
-
is: (e) =>
|
|
24545
|
-
then: (e) => e.required(
|
|
24595
|
+
is: (e) => _I.includes(Number(e)),
|
|
24596
|
+
then: (e) => e.required(nI.bike.brandRequired)
|
|
24546
24597
|
})
|
|
24547
24598
|
});
|
|
24548
|
-
})),
|
|
24549
|
-
|
|
24599
|
+
})), TI, EI = o((() => {
|
|
24600
|
+
TI = [
|
|
24550
24601
|
{
|
|
24551
24602
|
value: 4,
|
|
24552
24603
|
title: "ATB / Mountainbike",
|
|
@@ -24614,16 +24665,16 @@ var dI, fI = o((() => {
|
|
|
24614
24665
|
isEBike: !1
|
|
24615
24666
|
}
|
|
24616
24667
|
];
|
|
24617
|
-
})),
|
|
24618
|
-
|
|
24668
|
+
})), DI, OI = o((() => {
|
|
24669
|
+
DI = [{
|
|
24619
24670
|
value: 1,
|
|
24620
24671
|
label: "Nieuw"
|
|
24621
24672
|
}, {
|
|
24622
24673
|
value: 0,
|
|
24623
24674
|
label: "Tweedehands"
|
|
24624
24675
|
}];
|
|
24625
|
-
})),
|
|
24626
|
-
|
|
24676
|
+
})), kI, AI = o((() => {
|
|
24677
|
+
kI = [
|
|
24627
24678
|
{
|
|
24628
24679
|
id: "Ander merk",
|
|
24629
24680
|
name: "Ander merk"
|
|
@@ -26045,10 +26096,10 @@ var dI, fI = o((() => {
|
|
|
26045
26096
|
name: "Zündapp"
|
|
26046
26097
|
}
|
|
26047
26098
|
];
|
|
26048
|
-
})),
|
|
26049
|
-
|
|
26050
|
-
})),
|
|
26051
|
-
q(),
|
|
26099
|
+
})), jI = o((() => {
|
|
26100
|
+
EI(), OI(), AI();
|
|
26101
|
+
})), MI, NI = o((() => {
|
|
26102
|
+
q(), kF(), Ed(), tw(), wI(), jI(), xI(), MI = /*@__PURE__*/ L({
|
|
26052
26103
|
__name: "BikeForm",
|
|
26053
26104
|
props: /*@__PURE__*/ Ei({
|
|
26054
26105
|
initialData: {},
|
|
@@ -26067,14 +26118,14 @@ var dI, fI = o((() => {
|
|
|
26067
26118
|
}),
|
|
26068
26119
|
emits: ["submitted"],
|
|
26069
26120
|
setup(e, { emit: t }) {
|
|
26070
|
-
let n = e, r = Cd(n), i = t, { isSubmitting: a, handleSubmit: o, defineField: s, resetField: c } = $C(
|
|
26121
|
+
let n = e, r = Cd(n), i = t, { isSubmitting: a, handleSubmit: o, defineField: s, resetField: c } = $C(CI, {
|
|
26071
26122
|
kind: n.initialData?.kind ?? null,
|
|
26072
26123
|
condition: n.initialData?.condition ?? 1,
|
|
26073
26124
|
price: n.initialData?.price ?? "",
|
|
26074
26125
|
brand: n.initialData?.brand ?? ""
|
|
26075
|
-
}), [l, u, d] = s("kind", { validateAt: "change" }), [f, p, m] = s("brand", { validateAt: "change" }), [h, g, _] = s("condition"), [v, y, b] = s("price"), x = K(() =>
|
|
26126
|
+
}), [l, u, d] = s("kind", { validateAt: "change" }), [f, p, m] = s("brand", { validateAt: "change" }), [h, g, _] = s("condition"), [v, y, b] = s("price"), x = K(() => _I.includes(Number(l.value)));
|
|
26076
26127
|
I(l, (e) => {
|
|
26077
|
-
|
|
26128
|
+
_I.includes(Number(e)) || c("brand", { value: "" });
|
|
26078
26129
|
}, { immediate: !0 });
|
|
26079
26130
|
function S() {
|
|
26080
26131
|
o((e) => {
|
|
@@ -26095,7 +26146,7 @@ var dI, fI = o((() => {
|
|
|
26095
26146
|
"onUpdate:modelValue": n[0] ||= (e) => /* @__PURE__ */ M(l) ? l.value = e : null,
|
|
26096
26147
|
modelModifiers: { number: !0 },
|
|
26097
26148
|
label: "Soort fiets",
|
|
26098
|
-
options: P(
|
|
26149
|
+
options: P(TI),
|
|
26099
26150
|
name: "kind",
|
|
26100
26151
|
required: !1,
|
|
26101
26152
|
"error-message": P(d)
|
|
@@ -26116,7 +26167,7 @@ var dI, fI = o((() => {
|
|
|
26116
26167
|
"onUpdate:modelValue": n[1] ||= (e) => /* @__PURE__ */ M(f) ? f.value = e : null,
|
|
26117
26168
|
label: "Merk fiets",
|
|
26118
26169
|
placeholder: "Typ of kies je merk",
|
|
26119
|
-
options: P(
|
|
26170
|
+
options: P(kI),
|
|
26120
26171
|
"label-key": "name",
|
|
26121
26172
|
"value-key": "id",
|
|
26122
26173
|
name: "brand",
|
|
@@ -26138,7 +26189,7 @@ var dI, fI = o((() => {
|
|
|
26138
26189
|
"onUpdate:modelValue": n[2] ||= (e) => /* @__PURE__ */ M(h) ? h.value = e : null,
|
|
26139
26190
|
legend: "Gekocht als",
|
|
26140
26191
|
name: "condition",
|
|
26141
|
-
options: P(
|
|
26192
|
+
options: P(DI),
|
|
26142
26193
|
variant: "boxed",
|
|
26143
26194
|
required: !1,
|
|
26144
26195
|
"error-message": P(_)
|
|
@@ -26160,7 +26211,7 @@ var dI, fI = o((() => {
|
|
|
26160
26211
|
placeholder: "bv. 1 000",
|
|
26161
26212
|
icon: "far fa-euro-sign",
|
|
26162
26213
|
name: "price",
|
|
26163
|
-
mask: P(
|
|
26214
|
+
mask: P(bI),
|
|
26164
26215
|
inputmode: "numeric",
|
|
26165
26216
|
required: !1,
|
|
26166
26217
|
"error-message": P(b)
|
|
@@ -26176,12 +26227,12 @@ var dI, fI = o((() => {
|
|
|
26176
26227
|
}, 16, ["submit-disabled"]));
|
|
26177
26228
|
}
|
|
26178
26229
|
});
|
|
26179
|
-
})),
|
|
26180
|
-
|
|
26230
|
+
})), PI, FI = o((() => {
|
|
26231
|
+
NI(), NI(), PI = MI;
|
|
26181
26232
|
}));
|
|
26182
26233
|
//#endregion
|
|
26183
26234
|
//#region src/comparisons/bike/bike.presenter.ts
|
|
26184
|
-
function
|
|
26235
|
+
function II(e) {
|
|
26185
26236
|
return {
|
|
26186
26237
|
comparison: Dd.Bike,
|
|
26187
26238
|
detail: { bike: {
|
|
@@ -26193,39 +26244,39 @@ function FI(e) {
|
|
|
26193
26244
|
user: {}
|
|
26194
26245
|
};
|
|
26195
26246
|
}
|
|
26196
|
-
var
|
|
26247
|
+
var LI = o((() => {
|
|
26197
26248
|
Nd();
|
|
26198
|
-
})),
|
|
26199
|
-
Form: () =>
|
|
26200
|
-
presenter: () =>
|
|
26201
|
-
}),
|
|
26202
|
-
|
|
26203
|
-
})),
|
|
26204
|
-
|
|
26249
|
+
})), RI = /* @__PURE__ */ c({
|
|
26250
|
+
Form: () => PI,
|
|
26251
|
+
presenter: () => II
|
|
26252
|
+
}), zI = o((() => {
|
|
26253
|
+
FI(), LI();
|
|
26254
|
+
})), BI, VI, HI = o((() => {
|
|
26255
|
+
BI = {
|
|
26205
26256
|
min: 0,
|
|
26206
26257
|
max: 99
|
|
26207
|
-
},
|
|
26208
|
-
})),
|
|
26209
|
-
GC(),
|
|
26210
|
-
kind: IS().required(
|
|
26211
|
-
age: IS().required(
|
|
26258
|
+
}, VI = /^\d{4}\s?[a-zA-Z]{2}$/;
|
|
26259
|
+
})), UI, WI = o((() => {
|
|
26260
|
+
GC(), RF(), gI(), HI(), UI = WS({
|
|
26261
|
+
kind: IS().required(nI.pet.kindRequired),
|
|
26262
|
+
age: IS().required(nI.birthdate.required).test("date_format", nI.birthdate.dateFormat, iI).test(eI({
|
|
26212
26263
|
min: {
|
|
26213
26264
|
value: 7,
|
|
26214
26265
|
unit: "week"
|
|
26215
26266
|
},
|
|
26216
26267
|
max: {
|
|
26217
|
-
value:
|
|
26268
|
+
value: BI.max,
|
|
26218
26269
|
unit: "year"
|
|
26219
26270
|
}
|
|
26220
26271
|
}, {
|
|
26221
|
-
future: () =>
|
|
26222
|
-
tooYoung: ({ earliest: e, latest: t }) =>
|
|
26223
|
-
tooOld: () =>
|
|
26272
|
+
future: () => nI.birthdate.tooYoung(BI.min),
|
|
26273
|
+
tooYoung: ({ earliest: e, latest: t }) => nI.pet.outOfRange(e.format(MF), t.format(MF)),
|
|
26274
|
+
tooOld: () => nI.birthdate.tooOld(BI.max)
|
|
26224
26275
|
}, "birthdate_range")),
|
|
26225
|
-
zipCode: IS().required(
|
|
26276
|
+
zipCode: IS().required(nI.pet.zipCodeRequired).matches(VI, nI.pet.zipCodeInvalid)
|
|
26226
26277
|
});
|
|
26227
|
-
})),
|
|
26228
|
-
|
|
26278
|
+
})), GI, KI = o((() => {
|
|
26279
|
+
GI = [
|
|
26229
26280
|
{
|
|
26230
26281
|
title: "Hond",
|
|
26231
26282
|
value: "dog"
|
|
@@ -26243,8 +26294,8 @@ var II = o((() => {
|
|
|
26243
26294
|
value: "bird"
|
|
26244
26295
|
}
|
|
26245
26296
|
];
|
|
26246
|
-
})),
|
|
26247
|
-
q(),
|
|
26297
|
+
})), qI, JI = o((() => {
|
|
26298
|
+
q(), kF(), Ed(), tw(), WI(), KI(), qI = /*@__PURE__*/ L({
|
|
26248
26299
|
__name: "PetForm",
|
|
26249
26300
|
props: /*@__PURE__*/ Ei({
|
|
26250
26301
|
initialData: {},
|
|
@@ -26263,7 +26314,7 @@ var II = o((() => {
|
|
|
26263
26314
|
}),
|
|
26264
26315
|
emits: ["submitted"],
|
|
26265
26316
|
setup(e, { emit: t }) {
|
|
26266
|
-
let n = e, r = Cd(n), i = t, { isSubmitting: a, handleSubmit: o, defineField: s } = $C(
|
|
26317
|
+
let n = e, r = Cd(n), i = t, { isSubmitting: a, handleSubmit: o, defineField: s } = $C(UI, {
|
|
26267
26318
|
kind: n.initialData?.kind ?? "dog",
|
|
26268
26319
|
age: n.initialData?.age ?? "",
|
|
26269
26320
|
zipCode: n.initialData?.zipCode ?? ""
|
|
@@ -26287,7 +26338,7 @@ var II = o((() => {
|
|
|
26287
26338
|
"onUpdate:modelValue": n[0] ||= (e) => /* @__PURE__ */ M(c) ? c.value = e : null,
|
|
26288
26339
|
label: "Wat voor huisdier wil je verzekeren?",
|
|
26289
26340
|
placeholder: "",
|
|
26290
|
-
options: P(
|
|
26341
|
+
options: P(GI),
|
|
26291
26342
|
name: "kind",
|
|
26292
26343
|
required: !1,
|
|
26293
26344
|
"error-message": P(u)
|
|
@@ -26354,12 +26405,12 @@ var II = o((() => {
|
|
|
26354
26405
|
}, 16, ["submit-disabled"]));
|
|
26355
26406
|
}
|
|
26356
26407
|
});
|
|
26357
|
-
})),
|
|
26358
|
-
|
|
26408
|
+
})), YI, XI = o((() => {
|
|
26409
|
+
JI(), JI(), YI = qI;
|
|
26359
26410
|
}));
|
|
26360
26411
|
//#endregion
|
|
26361
26412
|
//#region src/comparisons/pet/pet.presenter.ts
|
|
26362
|
-
function
|
|
26413
|
+
function ZI(e) {
|
|
26363
26414
|
return {
|
|
26364
26415
|
comparison: Dd.Pet,
|
|
26365
26416
|
detail: { pet: {
|
|
@@ -26369,21 +26420,21 @@ function XI(e) {
|
|
|
26369
26420
|
user: { zipCode: e.zipCode }
|
|
26370
26421
|
};
|
|
26371
26422
|
}
|
|
26372
|
-
var
|
|
26423
|
+
var QI = o((() => {
|
|
26373
26424
|
Nd();
|
|
26374
|
-
})),
|
|
26375
|
-
Form: () =>
|
|
26376
|
-
presenter: () =>
|
|
26377
|
-
}),
|
|
26378
|
-
|
|
26379
|
-
})),
|
|
26380
|
-
GC(),
|
|
26381
|
-
TypeOfCaravan:
|
|
26382
|
-
NewOrOccasion:
|
|
26383
|
-
BuildYear:
|
|
26425
|
+
})), $I = /* @__PURE__ */ c({
|
|
26426
|
+
Form: () => YI,
|
|
26427
|
+
presenter: () => ZI
|
|
26428
|
+
}), eL = o((() => {
|
|
26429
|
+
XI(), QI();
|
|
26430
|
+
})), tL, nL = o((() => {
|
|
26431
|
+
GC(), gI(), RF(), tL = WS({
|
|
26432
|
+
TypeOfCaravan: cI(nI.caravan.typeOfCaravanRequired),
|
|
26433
|
+
NewOrOccasion: sI(IF, nI.caravan.newOrOccasionRequired),
|
|
26434
|
+
BuildYear: cI(nI.caravan.buildYearRequired)
|
|
26384
26435
|
});
|
|
26385
|
-
})),
|
|
26386
|
-
|
|
26436
|
+
})), rL, iL = o((() => {
|
|
26437
|
+
rL = [
|
|
26387
26438
|
{
|
|
26388
26439
|
value: "CS",
|
|
26389
26440
|
title: "Stacaravan"
|
|
@@ -26397,30 +26448,30 @@ var ZI = o((() => {
|
|
|
26397
26448
|
title: "Vouwwagen"
|
|
26398
26449
|
}
|
|
26399
26450
|
];
|
|
26400
|
-
})),
|
|
26401
|
-
Nd(),
|
|
26451
|
+
})), aL, oL = o((() => {
|
|
26452
|
+
Nd(), aL = [{
|
|
26402
26453
|
value: jd.Yes,
|
|
26403
26454
|
label: "Nieuw"
|
|
26404
26455
|
}, {
|
|
26405
26456
|
value: jd.No,
|
|
26406
26457
|
label: "Occasion"
|
|
26407
26458
|
}];
|
|
26408
|
-
})),
|
|
26459
|
+
})), sL = o((() => {}));
|
|
26409
26460
|
//#endregion
|
|
26410
26461
|
//#region src/comparisons/caravan/models/buildYears.model.ts
|
|
26411
|
-
function
|
|
26412
|
-
let e =
|
|
26462
|
+
function cL() {
|
|
26463
|
+
let e = HF();
|
|
26413
26464
|
return Array.from({ length: 126 }, (t, n) => ({
|
|
26414
26465
|
title: String(e - n),
|
|
26415
26466
|
value: String(e - n)
|
|
26416
26467
|
}));
|
|
26417
26468
|
}
|
|
26418
|
-
var
|
|
26419
|
-
|
|
26420
|
-
})),
|
|
26421
|
-
|
|
26422
|
-
})),
|
|
26423
|
-
q(),
|
|
26469
|
+
var lL = o((() => {
|
|
26470
|
+
$F(), sL();
|
|
26471
|
+
})), uL = o((() => {
|
|
26472
|
+
iL(), oL(), lL();
|
|
26473
|
+
})), dL, fL = o((() => {
|
|
26474
|
+
q(), kF(), Ed(), tw(), Nd(), nL(), uL(), dL = /*@__PURE__*/ L({
|
|
26424
26475
|
__name: "CaravanForm",
|
|
26425
26476
|
props: /*@__PURE__*/ Ei({
|
|
26426
26477
|
initialData: {},
|
|
@@ -26439,7 +26490,7 @@ var cL = o((() => {
|
|
|
26439
26490
|
}),
|
|
26440
26491
|
emits: ["submitted"],
|
|
26441
26492
|
setup(e, { emit: t }) {
|
|
26442
|
-
let n = e, r = Cd(n), i = t, a =
|
|
26493
|
+
let n = e, r = Cd(n), i = t, a = cL(), { isSubmitting: o, handleSubmit: s, defineField: c } = $C(tL, {
|
|
26443
26494
|
TypeOfCaravan: n.initialData?.TypeOfCaravan ?? null,
|
|
26444
26495
|
NewOrOccasion: n.initialData?.NewOrOccasion ?? jd.Yes,
|
|
26445
26496
|
BuildYear: n.initialData?.BuildYear ?? null
|
|
@@ -26462,7 +26513,7 @@ var cL = o((() => {
|
|
|
26462
26513
|
modelValue: P(l),
|
|
26463
26514
|
"onUpdate:modelValue": n[0] ||= (e) => /* @__PURE__ */ M(l) ? l.value = e : null,
|
|
26464
26515
|
label: "Soort caravan",
|
|
26465
|
-
options: P(
|
|
26516
|
+
options: P(rL),
|
|
26466
26517
|
name: "typeOfCaravan",
|
|
26467
26518
|
required: !1,
|
|
26468
26519
|
"error-message": P(d)
|
|
@@ -26482,7 +26533,7 @@ var cL = o((() => {
|
|
|
26482
26533
|
"onUpdate:modelValue": n[1] ||= (e) => /* @__PURE__ */ M(f) ? f.value = e : null,
|
|
26483
26534
|
legend: "Gekocht als",
|
|
26484
26535
|
name: "newOrOccasion",
|
|
26485
|
-
options: P(
|
|
26536
|
+
options: P(aL),
|
|
26486
26537
|
variant: "boxed",
|
|
26487
26538
|
required: !1,
|
|
26488
26539
|
"error-message": P(m)
|
|
@@ -26517,12 +26568,12 @@ var cL = o((() => {
|
|
|
26517
26568
|
}, 16, ["submit-disabled"]));
|
|
26518
26569
|
}
|
|
26519
26570
|
});
|
|
26520
|
-
})),
|
|
26521
|
-
|
|
26571
|
+
})), pL, mL = o((() => {
|
|
26572
|
+
fL(), fL(), pL = dL;
|
|
26522
26573
|
}));
|
|
26523
26574
|
//#endregion
|
|
26524
26575
|
//#region src/comparisons/caravan/caravan.presenter.ts
|
|
26525
|
-
function
|
|
26576
|
+
function hL(e) {
|
|
26526
26577
|
return {
|
|
26527
26578
|
comparison: Dd.Caravan,
|
|
26528
26579
|
detail: { caravan: {
|
|
@@ -26533,32 +26584,32 @@ function mL(e) {
|
|
|
26533
26584
|
user: {}
|
|
26534
26585
|
};
|
|
26535
26586
|
}
|
|
26536
|
-
var
|
|
26587
|
+
var gL = o((() => {
|
|
26537
26588
|
Nd();
|
|
26538
|
-
})),
|
|
26539
|
-
Form: () =>
|
|
26540
|
-
presenter: () =>
|
|
26541
|
-
}),
|
|
26542
|
-
|
|
26543
|
-
})),
|
|
26544
|
-
|
|
26589
|
+
})), _L = /* @__PURE__ */ c({
|
|
26590
|
+
Form: () => pL,
|
|
26591
|
+
presenter: () => hL
|
|
26592
|
+
}), vL = o((() => {
|
|
26593
|
+
mL(), gL();
|
|
26594
|
+
})), yL, bL = o((() => {
|
|
26595
|
+
yL = /* @__PURE__ */ function(e) {
|
|
26545
26596
|
return e.Continuous = "L", e.ShortTerm = "S", e;
|
|
26546
26597
|
}({});
|
|
26547
|
-
})),
|
|
26548
|
-
GC(),
|
|
26549
|
-
PaymentTerm:
|
|
26550
|
-
birthdate:
|
|
26598
|
+
})), xL, SL, CL = o((() => {
|
|
26599
|
+
GC(), gI(), bL(), xL = [yL.Continuous, yL.ShortTerm], SL = WS({
|
|
26600
|
+
PaymentTerm: sI(xL, nI.travel.paymentTermRequired),
|
|
26601
|
+
birthdate: aI()
|
|
26551
26602
|
});
|
|
26552
|
-
})),
|
|
26553
|
-
|
|
26554
|
-
value:
|
|
26603
|
+
})), wL, TL = o((() => {
|
|
26604
|
+
bL(), wL = [{
|
|
26605
|
+
value: yL.Continuous,
|
|
26555
26606
|
label: "Doorlopend"
|
|
26556
26607
|
}, {
|
|
26557
|
-
value:
|
|
26608
|
+
value: yL.ShortTerm,
|
|
26558
26609
|
label: "Kortlopend"
|
|
26559
26610
|
}];
|
|
26560
|
-
})),
|
|
26561
|
-
q(),
|
|
26611
|
+
})), EL, DL = o((() => {
|
|
26612
|
+
q(), kF(), Ed(), tw(), CL(), TL(), bL(), EL = /*@__PURE__*/ L({
|
|
26562
26613
|
__name: "TravelForm",
|
|
26563
26614
|
props: /*@__PURE__*/ Ei({
|
|
26564
26615
|
initialData: {},
|
|
@@ -26577,8 +26628,8 @@ var hL = o((() => {
|
|
|
26577
26628
|
}),
|
|
26578
26629
|
emits: ["submitted"],
|
|
26579
26630
|
setup(e, { emit: t }) {
|
|
26580
|
-
let n = e, r = Cd(n), i = t, { isSubmitting: a, handleSubmit: o, defineField: s } = $C(
|
|
26581
|
-
PaymentTerm: n.initialData?.PaymentTerm ??
|
|
26631
|
+
let n = e, r = Cd(n), i = t, { isSubmitting: a, handleSubmit: o, defineField: s } = $C(SL, {
|
|
26632
|
+
PaymentTerm: n.initialData?.PaymentTerm ?? yL.Continuous,
|
|
26582
26633
|
birthdate: n.initialData?.birthdate ?? ""
|
|
26583
26634
|
}), [c, l, u] = s("PaymentTerm", { validateAt: "change" }), [d, f, p] = s("birthdate");
|
|
26584
26635
|
function m() {
|
|
@@ -26599,7 +26650,7 @@ var hL = o((() => {
|
|
|
26599
26650
|
"onUpdate:modelValue": n[0] ||= (e) => /* @__PURE__ */ M(c) ? c.value = e : null,
|
|
26600
26651
|
legend: "Kies je dekking",
|
|
26601
26652
|
name: "PaymentTerm",
|
|
26602
|
-
options: P(
|
|
26653
|
+
options: P(wL),
|
|
26603
26654
|
variant: "boxed",
|
|
26604
26655
|
required: !1,
|
|
26605
26656
|
"error-message": P(u)
|
|
@@ -26635,33 +26686,33 @@ var hL = o((() => {
|
|
|
26635
26686
|
}, 16, ["submit-disabled"]));
|
|
26636
26687
|
}
|
|
26637
26688
|
});
|
|
26638
|
-
})),
|
|
26639
|
-
|
|
26689
|
+
})), OL, kL = o((() => {
|
|
26690
|
+
DL(), DL(), OL = EL;
|
|
26640
26691
|
}));
|
|
26641
26692
|
//#endregion
|
|
26642
26693
|
//#region src/comparisons/travel/travel.presenter.ts
|
|
26643
|
-
function
|
|
26694
|
+
function AL(e) {
|
|
26644
26695
|
return {
|
|
26645
26696
|
comparison: Dd.Travel,
|
|
26646
26697
|
detail: { comparison: { PaymentTerm: e.PaymentTerm } },
|
|
26647
26698
|
user: { birthdate: e.birthdate }
|
|
26648
26699
|
};
|
|
26649
26700
|
}
|
|
26650
|
-
var
|
|
26701
|
+
var jL = o((() => {
|
|
26651
26702
|
Nd();
|
|
26652
|
-
})),
|
|
26653
|
-
Form: () =>
|
|
26654
|
-
presenter: () =>
|
|
26655
|
-
}),
|
|
26656
|
-
|
|
26657
|
-
})),
|
|
26658
|
-
GC(),
|
|
26703
|
+
})), ML = /* @__PURE__ */ c({
|
|
26704
|
+
Form: () => OL,
|
|
26705
|
+
presenter: () => AL
|
|
26706
|
+
}), NL = o((() => {
|
|
26707
|
+
kL(), jL();
|
|
26708
|
+
})), PL, FL = o((() => {
|
|
26709
|
+
GC(), gI(), PL = (e) => WS({
|
|
26659
26710
|
address: e,
|
|
26660
|
-
birthdate:
|
|
26661
|
-
familyComposition:
|
|
26711
|
+
birthdate: aI(),
|
|
26712
|
+
familyComposition: fI
|
|
26662
26713
|
});
|
|
26663
|
-
})),
|
|
26664
|
-
q(),
|
|
26714
|
+
})), IL, LL = o((() => {
|
|
26715
|
+
q(), kF(), Ed(), tw(), Nd(), FL(), IL = /*@__PURE__*/ L({
|
|
26665
26716
|
__name: "LiabilityForm",
|
|
26666
26717
|
props: /*@__PURE__*/ Ei({
|
|
26667
26718
|
initialData: {},
|
|
@@ -26680,7 +26731,7 @@ var AL = o((() => {
|
|
|
26680
26731
|
}),
|
|
26681
26732
|
emits: ["submitted"],
|
|
26682
26733
|
setup(e, { emit: t }) {
|
|
26683
|
-
let n = e, r = Cd(n), i = t, { addressSchema: a, draft: o, resolvedAddress: s, additionOptions: c } =
|
|
26734
|
+
let n = e, r = Cd(n), i = t, { addressSchema: a, draft: o, resolvedAddress: s, additionOptions: c } = bP({ initial: n.initialData?.address }), { isSubmitting: l, handleSubmit: u, defineField: d } = $C(PL(a), {
|
|
26684
26735
|
birthdate: n.initialData?.birthdate ?? "",
|
|
26685
26736
|
familyComposition: n.initialData?.familyComposition ?? kd.SingleWithoutChildren,
|
|
26686
26737
|
address: o
|
|
@@ -26737,12 +26788,12 @@ var AL = o((() => {
|
|
|
26737
26788
|
}, 16, ["submit-disabled"]));
|
|
26738
26789
|
}
|
|
26739
26790
|
});
|
|
26740
|
-
})),
|
|
26741
|
-
|
|
26791
|
+
})), RL, zL = o((() => {
|
|
26792
|
+
LL(), LL(), RL = IL;
|
|
26742
26793
|
}));
|
|
26743
26794
|
//#endregion
|
|
26744
26795
|
//#region src/comparisons/liability/liability.presenter.ts
|
|
26745
|
-
function
|
|
26796
|
+
function BL(e) {
|
|
26746
26797
|
return {
|
|
26747
26798
|
comparison: Dd.Liability,
|
|
26748
26799
|
detail: { liability: {
|
|
@@ -26760,31 +26811,31 @@ function zL(e) {
|
|
|
26760
26811
|
}
|
|
26761
26812
|
};
|
|
26762
26813
|
}
|
|
26763
|
-
var
|
|
26814
|
+
var VL = o((() => {
|
|
26764
26815
|
Nd();
|
|
26765
|
-
})),
|
|
26766
|
-
Form: () =>
|
|
26767
|
-
presenter: () =>
|
|
26768
|
-
}),
|
|
26769
|
-
|
|
26770
|
-
})),
|
|
26771
|
-
Nd(),
|
|
26816
|
+
})), HL = /* @__PURE__ */ c({
|
|
26817
|
+
Form: () => RL,
|
|
26818
|
+
presenter: () => BL
|
|
26819
|
+
}), UL = o((() => {
|
|
26820
|
+
zL(), VL();
|
|
26821
|
+
})), WL, GL = o((() => {
|
|
26822
|
+
Nd(), WL = [{
|
|
26772
26823
|
value: jd.Yes,
|
|
26773
26824
|
label: "Gekocht"
|
|
26774
26825
|
}, {
|
|
26775
26826
|
value: jd.No,
|
|
26776
26827
|
label: "Gehuurd"
|
|
26777
26828
|
}];
|
|
26778
|
-
})),
|
|
26779
|
-
|
|
26780
|
-
})),
|
|
26781
|
-
GC(),
|
|
26829
|
+
})), KL = o((() => {
|
|
26830
|
+
GL();
|
|
26831
|
+
})), qL, JL = o((() => {
|
|
26832
|
+
GC(), gI(), qL = (e) => WS({
|
|
26782
26833
|
address: e,
|
|
26783
|
-
ownedBuilding:
|
|
26784
|
-
familyComposition:
|
|
26834
|
+
ownedBuilding: mI,
|
|
26835
|
+
familyComposition: dI(nI.house.familyCompositionRequired)
|
|
26785
26836
|
});
|
|
26786
|
-
})),
|
|
26787
|
-
q(),
|
|
26837
|
+
})), YL, XL = o((() => {
|
|
26838
|
+
q(), kF(), Ed(), tw(), Nd(), KL(), JL(), YL = /*@__PURE__*/ L({
|
|
26788
26839
|
__name: "HouseForm",
|
|
26789
26840
|
props: /*@__PURE__*/ Ei({
|
|
26790
26841
|
initialData: {},
|
|
@@ -26803,7 +26854,7 @@ var BL = o((() => {
|
|
|
26803
26854
|
}),
|
|
26804
26855
|
emits: ["submitted"],
|
|
26805
26856
|
setup(e, { emit: t }) {
|
|
26806
|
-
let n = e, r = Cd(n), i = t, { addressSchema: a, draft: o, resolvedAddress: s, additionOptions: c } =
|
|
26857
|
+
let n = e, r = Cd(n), i = t, { addressSchema: a, draft: o, resolvedAddress: s, additionOptions: c } = bP({ initial: n.initialData?.address }), { isSubmitting: l, handleSubmit: u, defineField: d } = $C(qL(a), {
|
|
26807
26858
|
ownedBuilding: n.initialData?.ownedBuilding ?? jd.Yes,
|
|
26808
26859
|
familyComposition: n.initialData?.familyComposition ?? kd.SingleWithoutChildren,
|
|
26809
26860
|
address: o
|
|
@@ -26842,7 +26893,7 @@ var BL = o((() => {
|
|
|
26842
26893
|
"onUpdate:modelValue": n[1] ||= (e) => /* @__PURE__ */ M(f) ? f.value = e : null,
|
|
26843
26894
|
legend: "Jouw woning is...",
|
|
26844
26895
|
name: "ownedBuilding",
|
|
26845
|
-
options: P(
|
|
26896
|
+
options: P(WL),
|
|
26846
26897
|
variant: "boxed",
|
|
26847
26898
|
required: !1,
|
|
26848
26899
|
"error-message": P(m)
|
|
@@ -26869,12 +26920,12 @@ var BL = o((() => {
|
|
|
26869
26920
|
}, 16, ["submit-disabled"]));
|
|
26870
26921
|
}
|
|
26871
26922
|
});
|
|
26872
|
-
})),
|
|
26873
|
-
|
|
26923
|
+
})), ZL, QL = o((() => {
|
|
26924
|
+
XL(), XL(), ZL = YL;
|
|
26874
26925
|
}));
|
|
26875
26926
|
//#endregion
|
|
26876
26927
|
//#region src/comparisons/house/house.presenter.ts
|
|
26877
|
-
function
|
|
26928
|
+
function $L(e) {
|
|
26878
26929
|
return {
|
|
26879
26930
|
comparison: Dd.Housing,
|
|
26880
26931
|
detail: { house: { ownedBuilding: e.ownedBuilding } },
|
|
@@ -26888,20 +26939,20 @@ function QL(e) {
|
|
|
26888
26939
|
}
|
|
26889
26940
|
};
|
|
26890
26941
|
}
|
|
26891
|
-
var
|
|
26942
|
+
var eR = o((() => {
|
|
26892
26943
|
Nd();
|
|
26893
|
-
})),
|
|
26894
|
-
Form: () =>
|
|
26895
|
-
presenter: () =>
|
|
26896
|
-
}),
|
|
26897
|
-
|
|
26898
|
-
})),
|
|
26899
|
-
GC(),
|
|
26944
|
+
})), tR = /* @__PURE__ */ c({
|
|
26945
|
+
Form: () => ZL,
|
|
26946
|
+
presenter: () => $L
|
|
26947
|
+
}), nR = o((() => {
|
|
26948
|
+
QL(), eR();
|
|
26949
|
+
})), rR, iR = o((() => {
|
|
26950
|
+
GC(), gI(), rR = (e) => WS({
|
|
26900
26951
|
address: e,
|
|
26901
|
-
ownedBuilding:
|
|
26952
|
+
ownedBuilding: mI
|
|
26902
26953
|
});
|
|
26903
|
-
})),
|
|
26904
|
-
q(),
|
|
26954
|
+
})), aR, oR = o((() => {
|
|
26955
|
+
q(), kF(), Ed(), tw(), Nd(), KL(), iR(), aR = /*@__PURE__*/ L({
|
|
26905
26956
|
__name: "LegalForm",
|
|
26906
26957
|
props: /*@__PURE__*/ Ei({
|
|
26907
26958
|
initialData: {},
|
|
@@ -26920,7 +26971,7 @@ var $L = o((() => {
|
|
|
26920
26971
|
}),
|
|
26921
26972
|
emits: ["submitted"],
|
|
26922
26973
|
setup(e, { emit: t }) {
|
|
26923
|
-
let n = e, r = Cd(n), i = t, { addressSchema: a, draft: o, resolvedAddress: s, additionOptions: c } =
|
|
26974
|
+
let n = e, r = Cd(n), i = t, { addressSchema: a, draft: o, resolvedAddress: s, additionOptions: c } = bP({ initial: n.initialData?.address }), { isSubmitting: l, handleSubmit: u, defineField: d } = $C(rR(a), {
|
|
26924
26975
|
ownedBuilding: n.initialData?.ownedBuilding ?? jd.Yes,
|
|
26925
26976
|
address: o
|
|
26926
26977
|
}), [f, p, m] = d("ownedBuilding");
|
|
@@ -26955,7 +27006,7 @@ var $L = o((() => {
|
|
|
26955
27006
|
"onUpdate:modelValue": n[1] ||= (e) => /* @__PURE__ */ M(f) ? f.value = e : null,
|
|
26956
27007
|
legend: "Jouw woning is...",
|
|
26957
27008
|
name: "ownedBuilding",
|
|
26958
|
-
options: P(
|
|
27009
|
+
options: P(WL),
|
|
26959
27010
|
variant: "boxed",
|
|
26960
27011
|
required: !1,
|
|
26961
27012
|
"error-message": P(m)
|
|
@@ -26970,12 +27021,12 @@ var $L = o((() => {
|
|
|
26970
27021
|
}, 16, ["submit-disabled"]));
|
|
26971
27022
|
}
|
|
26972
27023
|
});
|
|
26973
|
-
})),
|
|
26974
|
-
|
|
27024
|
+
})), sR, cR = o((() => {
|
|
27025
|
+
oR(), oR(), sR = aR;
|
|
26975
27026
|
}));
|
|
26976
27027
|
//#endregion
|
|
26977
27028
|
//#region src/comparisons/legal/legal.presenter.ts
|
|
26978
|
-
function
|
|
27029
|
+
function lR(e) {
|
|
26979
27030
|
return {
|
|
26980
27031
|
comparison: Dd.LegalAssistance,
|
|
26981
27032
|
detail: { comparison: {
|
|
@@ -26991,25 +27042,25 @@ function cR(e) {
|
|
|
26991
27042
|
}
|
|
26992
27043
|
};
|
|
26993
27044
|
}
|
|
26994
|
-
var
|
|
27045
|
+
var uR = o((() => {
|
|
26995
27046
|
Nd();
|
|
26996
|
-
})),
|
|
26997
|
-
Form: () =>
|
|
26998
|
-
presenter: () =>
|
|
26999
|
-
}),
|
|
27000
|
-
|
|
27001
|
-
})),
|
|
27002
|
-
GC(),
|
|
27047
|
+
})), dR = /* @__PURE__ */ c({
|
|
27048
|
+
Form: () => sR,
|
|
27049
|
+
presenter: () => lR
|
|
27050
|
+
}), fR = o((() => {
|
|
27051
|
+
cR(), uR();
|
|
27052
|
+
})), pR, mR = o((() => {
|
|
27053
|
+
GC(), $F(), gI(), pR = (e) => WS({
|
|
27003
27054
|
address: e,
|
|
27004
|
-
birthdate:
|
|
27005
|
-
familyComposition:
|
|
27055
|
+
birthdate: aI(),
|
|
27056
|
+
familyComposition: fI,
|
|
27006
27057
|
partnerBirthdate: IS().defined().when("familyComposition", {
|
|
27007
|
-
is:
|
|
27008
|
-
then: () =>
|
|
27058
|
+
is: JF,
|
|
27059
|
+
then: () => aI()
|
|
27009
27060
|
})
|
|
27010
27061
|
});
|
|
27011
|
-
})),
|
|
27012
|
-
q(),
|
|
27062
|
+
})), hR, gR = o((() => {
|
|
27063
|
+
q(), kF(), Ed(), tw(), Nd(), $F(), mR(), hR = /*@__PURE__*/ L({
|
|
27013
27064
|
__name: "PackageForm",
|
|
27014
27065
|
props: /*@__PURE__*/ Ei({
|
|
27015
27066
|
initialData: {},
|
|
@@ -27028,14 +27079,14 @@ var lR = o((() => {
|
|
|
27028
27079
|
}),
|
|
27029
27080
|
emits: ["submitted"],
|
|
27030
27081
|
setup(e, { emit: t }) {
|
|
27031
|
-
let n = e, r = Cd(n), i = t, { addressSchema: a, draft: o, resolvedAddress: s, additionOptions: c } =
|
|
27082
|
+
let n = e, r = Cd(n), i = t, { addressSchema: a, draft: o, resolvedAddress: s, additionOptions: c } = bP({ initial: n.initialData?.address }), { isSubmitting: l, handleSubmit: u, defineField: d, resetField: f } = $C(pR(a), {
|
|
27032
27083
|
birthdate: n.initialData?.birthdate ?? "",
|
|
27033
27084
|
familyComposition: n.initialData?.familyComposition ?? kd.SingleWithoutChildren,
|
|
27034
27085
|
partnerBirthdate: n.initialData?.partnerBirthdate ?? "",
|
|
27035
27086
|
address: o
|
|
27036
|
-
}), [p, m, h] = d("birthdate"), [g, _, v] = d("familyComposition", { validateAt: "change" }), [y, b, x] = d("partnerBirthdate"), S = K(() =>
|
|
27087
|
+
}), [p, m, h] = d("birthdate"), [g, _, v] = d("familyComposition", { validateAt: "change" }), [y, b, x] = d("partnerBirthdate"), S = K(() => JF(g.value));
|
|
27037
27088
|
I(g, (e) => {
|
|
27038
|
-
|
|
27089
|
+
JF(e) || f("partnerBirthdate", { value: "" });
|
|
27039
27090
|
}, { immediate: !0 });
|
|
27040
27091
|
function C() {
|
|
27041
27092
|
u(({ birthdate: e, familyComposition: t, partnerBirthdate: n }) => {
|
|
@@ -27105,12 +27156,12 @@ var lR = o((() => {
|
|
|
27105
27156
|
}, 16, ["submit-disabled"]));
|
|
27106
27157
|
}
|
|
27107
27158
|
});
|
|
27108
|
-
})),
|
|
27109
|
-
|
|
27159
|
+
})), _R, vR = o((() => {
|
|
27160
|
+
gR(), gR(), _R = hR;
|
|
27110
27161
|
}));
|
|
27111
27162
|
//#endregion
|
|
27112
27163
|
//#region src/comparisons/package/package.presenter.ts
|
|
27113
|
-
function
|
|
27164
|
+
function yR(e) {
|
|
27114
27165
|
return {
|
|
27115
27166
|
comparison: Dd.Package,
|
|
27116
27167
|
detail: { partner: { birthdate: e.partnerBirthdate } },
|
|
@@ -27125,30 +27176,30 @@ function vR(e) {
|
|
|
27125
27176
|
}
|
|
27126
27177
|
};
|
|
27127
27178
|
}
|
|
27128
|
-
var
|
|
27179
|
+
var bR = o((() => {
|
|
27129
27180
|
Nd();
|
|
27130
|
-
})),
|
|
27131
|
-
Form: () =>
|
|
27132
|
-
presenter: () =>
|
|
27133
|
-
}),
|
|
27134
|
-
|
|
27135
|
-
})),
|
|
27136
|
-
|
|
27181
|
+
})), xR = /* @__PURE__ */ c({
|
|
27182
|
+
Form: () => _R,
|
|
27183
|
+
presenter: () => yR
|
|
27184
|
+
}), SR = o((() => {
|
|
27185
|
+
vR(), bR();
|
|
27186
|
+
})), CR, wR, TR = o((() => {
|
|
27187
|
+
CR = {
|
|
27137
27188
|
min: 21,
|
|
27138
27189
|
max: 74
|
|
27139
|
-
},
|
|
27190
|
+
}, wR = {
|
|
27140
27191
|
min: 3500,
|
|
27141
27192
|
max: 75e3
|
|
27142
27193
|
};
|
|
27143
|
-
})),
|
|
27144
|
-
GC(),
|
|
27145
|
-
LoanPurpose: IS().required(
|
|
27146
|
-
LoanAmount:
|
|
27147
|
-
birthdate:
|
|
27148
|
-
familyComposition:
|
|
27194
|
+
})), ER, DR = o((() => {
|
|
27195
|
+
GC(), TR(), gI(), ER = WS({
|
|
27196
|
+
LoanPurpose: IS().required(nI.loan.purposeRequired),
|
|
27197
|
+
LoanAmount: lI(nI.loan.amountRequired).min(wR.min, nI.loan.amountMin(wR.min)).max(wR.max, nI.loan.amountMax(wR.max)),
|
|
27198
|
+
birthdate: aI(CR),
|
|
27199
|
+
familyComposition: fI
|
|
27149
27200
|
});
|
|
27150
|
-
})),
|
|
27151
|
-
|
|
27201
|
+
})), OR, kR = o((() => {
|
|
27202
|
+
OR = [
|
|
27152
27203
|
{
|
|
27153
27204
|
title: "Aankoop auto",
|
|
27154
27205
|
value: "02"
|
|
@@ -27198,10 +27249,10 @@ var yR = o((() => {
|
|
|
27198
27249
|
value: "99"
|
|
27199
27250
|
}
|
|
27200
27251
|
];
|
|
27201
|
-
})),
|
|
27202
|
-
|
|
27203
|
-
})),
|
|
27204
|
-
q(),
|
|
27252
|
+
})), AR = o((() => {
|
|
27253
|
+
kR();
|
|
27254
|
+
})), jR, MR = o((() => {
|
|
27255
|
+
q(), kF(), Ed(), tw(), Nd(), DR(), AR(), jR = /*@__PURE__*/ L({
|
|
27205
27256
|
__name: "LoanForm",
|
|
27206
27257
|
props: /*@__PURE__*/ Ei({
|
|
27207
27258
|
initialData: {},
|
|
@@ -27220,7 +27271,7 @@ var yR = o((() => {
|
|
|
27220
27271
|
}),
|
|
27221
27272
|
emits: ["submitted"],
|
|
27222
27273
|
setup(e, { emit: t }) {
|
|
27223
|
-
let n = e, r = Cd(n), i = t, { isSubmitting: a, handleSubmit: o, defineField: s } = $C(
|
|
27274
|
+
let n = e, r = Cd(n), i = t, { isSubmitting: a, handleSubmit: o, defineField: s } = $C(ER, {
|
|
27224
27275
|
LoanPurpose: n.initialData?.LoanPurpose ?? "",
|
|
27225
27276
|
LoanAmount: n.initialData?.LoanAmount ?? null,
|
|
27226
27277
|
birthdate: n.initialData?.birthdate ?? "",
|
|
@@ -27245,7 +27296,7 @@ var yR = o((() => {
|
|
|
27245
27296
|
"onUpdate:modelValue": n[0] ||= (e) => /* @__PURE__ */ M(c) ? c.value = e : null,
|
|
27246
27297
|
label: "Leendoel",
|
|
27247
27298
|
placeholder: "Maak een keuze",
|
|
27248
|
-
options: P(
|
|
27299
|
+
options: P(OR),
|
|
27249
27300
|
name: "LoanPurpose",
|
|
27250
27301
|
required: !1,
|
|
27251
27302
|
"error-message": P(u)
|
|
@@ -27302,24 +27353,24 @@ var yR = o((() => {
|
|
|
27302
27353
|
}, 16, ["submit-disabled"]));
|
|
27303
27354
|
}
|
|
27304
27355
|
});
|
|
27305
|
-
})),
|
|
27306
|
-
|
|
27356
|
+
})), NR, PR = o((() => {
|
|
27357
|
+
MR(), MR(), NR = jR;
|
|
27307
27358
|
}));
|
|
27308
27359
|
//#endregion
|
|
27309
27360
|
//#region src/comparisons/loan/loan.presenter.ts
|
|
27310
|
-
function
|
|
27311
|
-
let t =
|
|
27361
|
+
function FR(e) {
|
|
27362
|
+
let t = UF(e, MF);
|
|
27312
27363
|
if (!t) return 120;
|
|
27313
|
-
let n = t.add(76, "year").diff((0,
|
|
27364
|
+
let n = t.add(76, "year").diff((0, LR.default)(), "month", !0), r = Math.floor(n / 12) * 12;
|
|
27314
27365
|
return Math.min(r, 120);
|
|
27315
27366
|
}
|
|
27316
|
-
function
|
|
27367
|
+
function IR(e) {
|
|
27317
27368
|
return {
|
|
27318
27369
|
comparison: Dd.Loan,
|
|
27319
27370
|
detail: { loan: {
|
|
27320
27371
|
LoanPurpose: e.LoanPurpose,
|
|
27321
27372
|
LoanAmount: e.LoanAmount,
|
|
27322
|
-
MaxDurationByLegalLimit:
|
|
27373
|
+
MaxDurationByLegalLimit: FR(e.birthdate)
|
|
27323
27374
|
} },
|
|
27324
27375
|
user: {
|
|
27325
27376
|
birthdate: e.birthdate,
|
|
@@ -27327,26 +27378,26 @@ function FR(e) {
|
|
|
27327
27378
|
}
|
|
27328
27379
|
};
|
|
27329
27380
|
}
|
|
27330
|
-
var
|
|
27331
|
-
|
|
27332
|
-
})),
|
|
27333
|
-
Form: () =>
|
|
27334
|
-
presenter: () =>
|
|
27335
|
-
}),
|
|
27336
|
-
|
|
27337
|
-
})),
|
|
27338
|
-
|
|
27381
|
+
var LR, RR = o((() => {
|
|
27382
|
+
LR = /* @__PURE__ */ u(zF(), 1), RF(), $F(), Nd(), TR();
|
|
27383
|
+
})), zR = /* @__PURE__ */ c({
|
|
27384
|
+
Form: () => NR,
|
|
27385
|
+
presenter: () => IR
|
|
27386
|
+
}), BR = o((() => {
|
|
27387
|
+
PR(), RR();
|
|
27388
|
+
})), VR, HR = o((() => {
|
|
27389
|
+
VR = {
|
|
27339
27390
|
min: 16,
|
|
27340
27391
|
max: 99
|
|
27341
27392
|
};
|
|
27342
|
-
})),
|
|
27343
|
-
GC(),
|
|
27393
|
+
})), UR, WR = o((() => {
|
|
27394
|
+
GC(), gI(), HR(), UR = (e, t) => WS({
|
|
27344
27395
|
licensePlate: e,
|
|
27345
27396
|
address: t,
|
|
27346
|
-
birthdate:
|
|
27397
|
+
birthdate: aI(VR)
|
|
27347
27398
|
});
|
|
27348
|
-
})),
|
|
27349
|
-
q(),
|
|
27399
|
+
})), GR, KR = o((() => {
|
|
27400
|
+
q(), kF(), Ed(), tw(), Nd(), WR(), GR = /*@__PURE__*/ L({
|
|
27350
27401
|
__name: "MopedForm",
|
|
27351
27402
|
props: /*@__PURE__*/ Ei({
|
|
27352
27403
|
initialData: {},
|
|
@@ -27365,7 +27416,7 @@ var IR, LR = o((() => {
|
|
|
27365
27416
|
}),
|
|
27366
27417
|
emits: ["submitted"],
|
|
27367
27418
|
setup(e, { emit: t }) {
|
|
27368
|
-
let n = e, r = Cd(n), i = t, { addressSchema: a, draft: o, resolvedAddress: s, additionOptions: c } =
|
|
27419
|
+
let n = e, r = Cd(n), i = t, { addressSchema: a, draft: o, resolvedAddress: s, additionOptions: c } = bP({ initial: n.initialData?.address }), { vehicleData: l, licensePlateSchema: u } = JP(Dd.Moped, { initialData: n.initialData?.vehicle ?? void 0 }), { isSubmitting: d, handleSubmit: f, defineField: p } = $C(UR(u, a), {
|
|
27369
27420
|
licensePlate: n.initialData?.licensePlate ?? "",
|
|
27370
27421
|
birthdate: n.initialData?.birthdate ?? "",
|
|
27371
27422
|
address: o
|
|
@@ -27389,7 +27440,7 @@ var IR, LR = o((() => {
|
|
|
27389
27440
|
span: "3",
|
|
27390
27441
|
md: "6"
|
|
27391
27442
|
}, {
|
|
27392
|
-
default: F(() => [G(P(
|
|
27443
|
+
default: F(() => [G(P(VP), W({
|
|
27393
27444
|
modelValue: P(m),
|
|
27394
27445
|
"onUpdate:modelValue": n[0] ||= (e) => /* @__PURE__ */ M(m) ? m.value = e : null,
|
|
27395
27446
|
"vehicle-data": P(l),
|
|
@@ -27444,12 +27495,12 @@ var IR, LR = o((() => {
|
|
|
27444
27495
|
}, 16, ["submit-disabled"]));
|
|
27445
27496
|
}
|
|
27446
27497
|
});
|
|
27447
|
-
})),
|
|
27448
|
-
|
|
27498
|
+
})), qR, JR = o((() => {
|
|
27499
|
+
KR(), KR(), qR = GR;
|
|
27449
27500
|
}));
|
|
27450
27501
|
//#endregion
|
|
27451
27502
|
//#region src/comparisons/moped/moped.presenter.ts
|
|
27452
|
-
function
|
|
27503
|
+
function YR(e) {
|
|
27453
27504
|
return {
|
|
27454
27505
|
comparison: Dd.Moped,
|
|
27455
27506
|
detail: { moped: { ...e.vehicle } },
|
|
@@ -27464,21 +27515,21 @@ function JR(e) {
|
|
|
27464
27515
|
}
|
|
27465
27516
|
};
|
|
27466
27517
|
}
|
|
27467
|
-
var
|
|
27518
|
+
var XR = o((() => {
|
|
27468
27519
|
Nd();
|
|
27469
|
-
})),
|
|
27470
|
-
Form: () =>
|
|
27471
|
-
presenter: () =>
|
|
27472
|
-
}),
|
|
27473
|
-
|
|
27474
|
-
})),
|
|
27475
|
-
GC(),
|
|
27520
|
+
})), ZR = /* @__PURE__ */ c({
|
|
27521
|
+
Form: () => qR,
|
|
27522
|
+
presenter: () => YR
|
|
27523
|
+
}), QR = o((() => {
|
|
27524
|
+
JR(), XR();
|
|
27525
|
+
})), $R, ez = o((() => {
|
|
27526
|
+
GC(), gI(), $R = (e, t) => WS({
|
|
27476
27527
|
licensePlate: e,
|
|
27477
27528
|
address: t,
|
|
27478
|
-
birthdate:
|
|
27529
|
+
birthdate: aI()
|
|
27479
27530
|
});
|
|
27480
|
-
})),
|
|
27481
|
-
q(),
|
|
27531
|
+
})), tz, nz = o((() => {
|
|
27532
|
+
q(), kF(), Ed(), tw(), Nd(), ez(), tz = /*@__PURE__*/ L({
|
|
27482
27533
|
__name: "MotorForm",
|
|
27483
27534
|
props: /*@__PURE__*/ Ei({
|
|
27484
27535
|
initialData: {},
|
|
@@ -27497,7 +27548,7 @@ var YR = o((() => {
|
|
|
27497
27548
|
}),
|
|
27498
27549
|
emits: ["submitted"],
|
|
27499
27550
|
setup(e, { emit: t }) {
|
|
27500
|
-
let n = e, r = Cd(n), i = t, { addressSchema: a, draft: o, resolvedAddress: s, additionOptions: c } =
|
|
27551
|
+
let n = e, r = Cd(n), i = t, { addressSchema: a, draft: o, resolvedAddress: s, additionOptions: c } = bP({ initial: n.initialData?.address }), { vehicleData: l, licensePlateSchema: u } = JP(Dd.Motor, { initialData: n.initialData?.vehicle ?? void 0 }), { isSubmitting: d, handleSubmit: f, defineField: p } = $C($R(u, a), {
|
|
27501
27552
|
licensePlate: n.initialData?.licensePlate ?? "",
|
|
27502
27553
|
birthdate: n.initialData?.birthdate ?? "",
|
|
27503
27554
|
address: o
|
|
@@ -27521,7 +27572,7 @@ var YR = o((() => {
|
|
|
27521
27572
|
span: "3",
|
|
27522
27573
|
md: "6"
|
|
27523
27574
|
}, {
|
|
27524
|
-
default: F(() => [G(P(
|
|
27575
|
+
default: F(() => [G(P(VP), W({
|
|
27525
27576
|
modelValue: P(m),
|
|
27526
27577
|
"onUpdate:modelValue": n[0] ||= (e) => /* @__PURE__ */ M(m) ? m.value = e : null,
|
|
27527
27578
|
"vehicle-data": P(l),
|
|
@@ -27576,12 +27627,12 @@ var YR = o((() => {
|
|
|
27576
27627
|
}, 16, ["submit-disabled"]));
|
|
27577
27628
|
}
|
|
27578
27629
|
});
|
|
27579
|
-
})),
|
|
27580
|
-
|
|
27630
|
+
})), rz, iz = o((() => {
|
|
27631
|
+
nz(), nz(), rz = tz;
|
|
27581
27632
|
}));
|
|
27582
27633
|
//#endregion
|
|
27583
27634
|
//#region src/comparisons/motor/motor.presenter.ts
|
|
27584
|
-
function
|
|
27635
|
+
function az(e) {
|
|
27585
27636
|
return {
|
|
27586
27637
|
comparison: Dd.Motor,
|
|
27587
27638
|
detail: { motor: { ...e.vehicle } },
|
|
@@ -27596,21 +27647,21 @@ function iz(e) {
|
|
|
27596
27647
|
}
|
|
27597
27648
|
};
|
|
27598
27649
|
}
|
|
27599
|
-
var
|
|
27650
|
+
var oz = o((() => {
|
|
27600
27651
|
Nd();
|
|
27601
|
-
})),
|
|
27602
|
-
Form: () =>
|
|
27603
|
-
presenter: () =>
|
|
27604
|
-
}),
|
|
27605
|
-
|
|
27606
|
-
})),
|
|
27607
|
-
GC(),
|
|
27652
|
+
})), sz = /* @__PURE__ */ c({
|
|
27653
|
+
Form: () => rz,
|
|
27654
|
+
presenter: () => az
|
|
27655
|
+
}), cz = o((() => {
|
|
27656
|
+
iz(), oz();
|
|
27657
|
+
})), lz, uz = o((() => {
|
|
27658
|
+
GC(), gI(), lz = (e, t) => WS({
|
|
27608
27659
|
licensePlate: e,
|
|
27609
27660
|
address: t,
|
|
27610
|
-
birthdate:
|
|
27661
|
+
birthdate: aI()
|
|
27611
27662
|
});
|
|
27612
|
-
})),
|
|
27613
|
-
q(),
|
|
27663
|
+
})), dz, fz = o((() => {
|
|
27664
|
+
q(), kF(), Ed(), tw(), Nd(), uz(), dz = /*@__PURE__*/ L({
|
|
27614
27665
|
__name: "CarForm",
|
|
27615
27666
|
props: /*@__PURE__*/ Ei({
|
|
27616
27667
|
initialData: {},
|
|
@@ -27629,7 +27680,7 @@ var az = o((() => {
|
|
|
27629
27680
|
}),
|
|
27630
27681
|
emits: ["submitted"],
|
|
27631
27682
|
setup(e, { emit: t }) {
|
|
27632
|
-
let n = e, r = Cd(n), i = t, { addressSchema: a, draft: o, resolvedAddress: s, additionOptions: c } =
|
|
27683
|
+
let n = e, r = Cd(n), i = t, { addressSchema: a, draft: o, resolvedAddress: s, additionOptions: c } = bP({ initial: n.initialData?.address }), { vehicleData: l, licensePlateSchema: u } = JP(Dd.Car, { initialData: n.initialData?.vehicle ?? void 0 }), { isSubmitting: d, handleSubmit: f, defineField: p } = $C(lz(u, a), {
|
|
27633
27684
|
licensePlate: n.initialData?.licensePlate ?? "",
|
|
27634
27685
|
birthdate: n.initialData?.birthdate ?? "",
|
|
27635
27686
|
address: o
|
|
@@ -27653,7 +27704,7 @@ var az = o((() => {
|
|
|
27653
27704
|
span: "3",
|
|
27654
27705
|
md: "6"
|
|
27655
27706
|
}, {
|
|
27656
|
-
default: F(() => [G(P(
|
|
27707
|
+
default: F(() => [G(P(VP), W({
|
|
27657
27708
|
modelValue: P(m),
|
|
27658
27709
|
"onUpdate:modelValue": n[0] ||= (e) => /* @__PURE__ */ M(m) ? m.value = e : null,
|
|
27659
27710
|
"vehicle-data": P(l),
|
|
@@ -27708,12 +27759,12 @@ var az = o((() => {
|
|
|
27708
27759
|
}, 16, ["submit-disabled"]));
|
|
27709
27760
|
}
|
|
27710
27761
|
});
|
|
27711
|
-
})),
|
|
27712
|
-
|
|
27762
|
+
})), pz, mz = o((() => {
|
|
27763
|
+
fz(), fz(), pz = dz;
|
|
27713
27764
|
}));
|
|
27714
27765
|
//#endregion
|
|
27715
27766
|
//#region src/comparisons/car/car.presenter.ts
|
|
27716
|
-
function
|
|
27767
|
+
function hz(e) {
|
|
27717
27768
|
return {
|
|
27718
27769
|
comparison: Dd.Car,
|
|
27719
27770
|
detail: { car: { ...e.vehicle } },
|
|
@@ -27728,20 +27779,20 @@ function mz(e) {
|
|
|
27728
27779
|
}
|
|
27729
27780
|
};
|
|
27730
27781
|
}
|
|
27731
|
-
var
|
|
27782
|
+
var gz = o((() => {
|
|
27732
27783
|
Nd();
|
|
27733
|
-
})),
|
|
27734
|
-
Form: () =>
|
|
27735
|
-
presenter: () =>
|
|
27736
|
-
}),
|
|
27737
|
-
|
|
27738
|
-
})),
|
|
27739
|
-
GC(),
|
|
27784
|
+
})), _z = /* @__PURE__ */ c({
|
|
27785
|
+
Form: () => pz,
|
|
27786
|
+
presenter: () => hz
|
|
27787
|
+
}), vz = o((() => {
|
|
27788
|
+
mz(), gz();
|
|
27789
|
+
})), yz, bz = o((() => {
|
|
27790
|
+
GC(), kF(), yz = (e) => WS({
|
|
27740
27791
|
licensePlate: e,
|
|
27741
|
-
company:
|
|
27792
|
+
company: DF()
|
|
27742
27793
|
});
|
|
27743
|
-
})),
|
|
27744
|
-
q(),
|
|
27794
|
+
})), xz, Sz = o((() => {
|
|
27795
|
+
q(), kF(), Ed(), tw(), Nd(), bz(), xz = /*@__PURE__*/ L({
|
|
27745
27796
|
__name: "BusinessCarForm",
|
|
27746
27797
|
props: /*@__PURE__*/ Ei({
|
|
27747
27798
|
initialData: {},
|
|
@@ -27760,7 +27811,7 @@ var hz = o((() => {
|
|
|
27760
27811
|
}),
|
|
27761
27812
|
emits: ["submitted"],
|
|
27762
27813
|
setup(e, { emit: t }) {
|
|
27763
|
-
let n = e, r = Cd(n), i = t, { vehicleData: a, licensePlateSchema: o } =
|
|
27814
|
+
let n = e, r = Cd(n), i = t, { vehicleData: a, licensePlateSchema: o } = JP(Dd.Car, { initialData: n.initialData?.vehicle ?? void 0 }), { isSubmitting: s, handleSubmit: c, defineField: l, setErrors: u, removeError: d } = $C(yz(o), {
|
|
27764
27815
|
licensePlate: n.initialData?.licensePlate ?? "",
|
|
27765
27816
|
company: n.initialData?.company ?? null
|
|
27766
27817
|
}), [f, p, m, h] = l("licensePlate"), [g, _, v] = l("company"), y = (e) => e ? u({ company: e }) : d("company"), b = K(() => !!g.value && !g.value.hasVisitingAddress);
|
|
@@ -27781,7 +27832,7 @@ var hz = o((() => {
|
|
|
27781
27832
|
span: "5",
|
|
27782
27833
|
md: "6"
|
|
27783
27834
|
}, {
|
|
27784
|
-
default: F(() => [G(P(
|
|
27835
|
+
default: F(() => [G(P(VP), W({
|
|
27785
27836
|
modelValue: P(f),
|
|
27786
27837
|
"onUpdate:modelValue": n[0] ||= (e) => /* @__PURE__ */ M(f) ? f.value = e : null,
|
|
27787
27838
|
"vehicle-data": P(a),
|
|
@@ -27811,7 +27862,7 @@ var hz = o((() => {
|
|
|
27811
27862
|
span: "5",
|
|
27812
27863
|
md: "6"
|
|
27813
27864
|
}, {
|
|
27814
|
-
default: F(() => [G(P(
|
|
27865
|
+
default: F(() => [G(P(TF), W({
|
|
27815
27866
|
modelValue: P(g),
|
|
27816
27867
|
"onUpdate:modelValue": n[2] ||= (e) => /* @__PURE__ */ M(g) ? g.value = e : null,
|
|
27817
27868
|
name: "company",
|
|
@@ -27838,12 +27889,12 @@ var hz = o((() => {
|
|
|
27838
27889
|
}, 16, ["submit-disabled"]));
|
|
27839
27890
|
}
|
|
27840
27891
|
});
|
|
27841
|
-
})),
|
|
27842
|
-
|
|
27892
|
+
})), Cz, wz = o((() => {
|
|
27893
|
+
Sz(), Sz(), Cz = xz;
|
|
27843
27894
|
}));
|
|
27844
27895
|
//#endregion
|
|
27845
27896
|
//#region src/comparisons/car-business/businessCar.presenter.ts
|
|
27846
|
-
function
|
|
27897
|
+
function Tz(e) {
|
|
27847
27898
|
return {
|
|
27848
27899
|
comparison: Dd.CarBusiness,
|
|
27849
27900
|
detail: {
|
|
@@ -27853,17 +27904,17 @@ function wz(e) {
|
|
|
27853
27904
|
user: {}
|
|
27854
27905
|
};
|
|
27855
27906
|
}
|
|
27856
|
-
var
|
|
27907
|
+
var Ez = o((() => {
|
|
27857
27908
|
Nd();
|
|
27858
|
-
})),
|
|
27859
|
-
Form: () =>
|
|
27860
|
-
presenter: () =>
|
|
27861
|
-
}),
|
|
27862
|
-
|
|
27863
|
-
})),
|
|
27864
|
-
GC(),
|
|
27865
|
-
})),
|
|
27866
|
-
q(),
|
|
27909
|
+
})), Dz = /* @__PURE__ */ c({
|
|
27910
|
+
Form: () => Cz,
|
|
27911
|
+
presenter: () => Tz
|
|
27912
|
+
}), Oz = o((() => {
|
|
27913
|
+
wz(), Ez();
|
|
27914
|
+
})), kz, Az = o((() => {
|
|
27915
|
+
GC(), kF(), kz = WS({ company: DF() });
|
|
27916
|
+
})), jz, Mz = o((() => {
|
|
27917
|
+
q(), kF(), Ed(), tw(), Az(), jz = /*@__PURE__*/ L({
|
|
27867
27918
|
__name: "BusinessLiabilityForm",
|
|
27868
27919
|
props: /*@__PURE__*/ Ei({
|
|
27869
27920
|
initialData: {},
|
|
@@ -27884,7 +27935,7 @@ var Tz = o((() => {
|
|
|
27884
27935
|
}),
|
|
27885
27936
|
emits: ["submitted"],
|
|
27886
27937
|
setup(e, { emit: t }) {
|
|
27887
|
-
let n = e, r = Cd(n), i = t, { isSubmitting: a, handleSubmit: o, defineField: s, setErrors: c, removeError: l } = $C(
|
|
27938
|
+
let n = e, r = Cd(n), i = t, { isSubmitting: a, handleSubmit: o, defineField: s, setErrors: c, removeError: l } = $C(kz, { company: n.initialData?.company ?? null }), [u, d, f] = s("company"), p = (e) => e ? c({ company: e }) : l("company"), m = K(() => !!u.value && !u.value.hasVisitingAddress);
|
|
27888
27939
|
function h() {
|
|
27889
27940
|
o(({ company: e }) => {
|
|
27890
27941
|
i("submitted", { company: e });
|
|
@@ -27899,7 +27950,7 @@ var Tz = o((() => {
|
|
|
27899
27950
|
span: "8",
|
|
27900
27951
|
md: "6"
|
|
27901
27952
|
}, {
|
|
27902
|
-
default: F(() => [G(P(
|
|
27953
|
+
default: F(() => [G(P(TF), W({
|
|
27903
27954
|
modelValue: P(u),
|
|
27904
27955
|
"onUpdate:modelValue": t[0] ||= (e) => /* @__PURE__ */ M(u) ? u.value = e : null,
|
|
27905
27956
|
name: "company",
|
|
@@ -27926,51 +27977,51 @@ var Tz = o((() => {
|
|
|
27926
27977
|
}, 16, ["submit-disabled"]));
|
|
27927
27978
|
}
|
|
27928
27979
|
});
|
|
27929
|
-
})),
|
|
27930
|
-
|
|
27980
|
+
})), Nz, Pz = o((() => {
|
|
27981
|
+
Mz(), Mz(), Nz = jz;
|
|
27931
27982
|
}));
|
|
27932
27983
|
//#endregion
|
|
27933
27984
|
//#region src/comparisons/businessLiability/businessLiability.presenter.ts
|
|
27934
|
-
function
|
|
27985
|
+
function Fz(e) {
|
|
27935
27986
|
return {
|
|
27936
27987
|
comparison: Dd.BusinessLiability,
|
|
27937
27988
|
detail: { companyData: { ...e.company } },
|
|
27938
27989
|
user: {}
|
|
27939
27990
|
};
|
|
27940
27991
|
}
|
|
27941
|
-
var
|
|
27992
|
+
var Iz = o((() => {
|
|
27942
27993
|
Nd();
|
|
27943
|
-
})),
|
|
27944
|
-
Form: () =>
|
|
27945
|
-
presenter: () =>
|
|
27946
|
-
}),
|
|
27947
|
-
|
|
27994
|
+
})), Lz = /* @__PURE__ */ c({
|
|
27995
|
+
Form: () => Nz,
|
|
27996
|
+
presenter: () => Fz
|
|
27997
|
+
}), Rz = o((() => {
|
|
27998
|
+
Pz(), Iz();
|
|
27948
27999
|
}));
|
|
27949
28000
|
//#endregion
|
|
27950
28001
|
//#region src/comparisons/registry.ts
|
|
27951
28002
|
Nd();
|
|
27952
|
-
var
|
|
27953
|
-
[Dd.Bike]: () => Promise.resolve().then(() => (
|
|
27954
|
-
[Dd.Pet]: () => Promise.resolve().then(() => (
|
|
27955
|
-
[Dd.Caravan]: () => Promise.resolve().then(() => (
|
|
27956
|
-
[Dd.Travel]: () => Promise.resolve().then(() => (
|
|
27957
|
-
[Dd.Liability]: () => Promise.resolve().then(() => (
|
|
27958
|
-
[Dd.Housing]: () => Promise.resolve().then(() => (
|
|
27959
|
-
house: () => Promise.resolve().then(() => (
|
|
27960
|
-
[Dd.LegalAssistance]: () => Promise.resolve().then(() => (
|
|
27961
|
-
[Dd.Package]: () => Promise.resolve().then(() => (
|
|
27962
|
-
[Dd.Loan]: () => Promise.resolve().then(() => (
|
|
27963
|
-
[Dd.Moped]: () => Promise.resolve().then(() => (
|
|
27964
|
-
[Dd.Motor]: () => Promise.resolve().then(() => (
|
|
27965
|
-
[Dd.Car]: () => Promise.resolve().then(() => (
|
|
27966
|
-
[Dd.CarBusiness]: () => Promise.resolve().then(() => (
|
|
27967
|
-
"business-car": () => Promise.resolve().then(() => (
|
|
27968
|
-
[Dd.BusinessLiability]: () => Promise.resolve().then(() => (
|
|
28003
|
+
var zz = {
|
|
28004
|
+
[Dd.Bike]: () => Promise.resolve().then(() => (zI(), RI)),
|
|
28005
|
+
[Dd.Pet]: () => Promise.resolve().then(() => (eL(), $I)),
|
|
28006
|
+
[Dd.Caravan]: () => Promise.resolve().then(() => (vL(), _L)),
|
|
28007
|
+
[Dd.Travel]: () => Promise.resolve().then(() => (NL(), ML)),
|
|
28008
|
+
[Dd.Liability]: () => Promise.resolve().then(() => (UL(), HL)),
|
|
28009
|
+
[Dd.Housing]: () => Promise.resolve().then(() => (nR(), tR)),
|
|
28010
|
+
house: () => Promise.resolve().then(() => (nR(), tR)),
|
|
28011
|
+
[Dd.LegalAssistance]: () => Promise.resolve().then(() => (fR(), dR)),
|
|
28012
|
+
[Dd.Package]: () => Promise.resolve().then(() => (SR(), xR)),
|
|
28013
|
+
[Dd.Loan]: () => Promise.resolve().then(() => (BR(), zR)),
|
|
28014
|
+
[Dd.Moped]: () => Promise.resolve().then(() => (QR(), ZR)),
|
|
28015
|
+
[Dd.Motor]: () => Promise.resolve().then(() => (cz(), sz)),
|
|
28016
|
+
[Dd.Car]: () => Promise.resolve().then(() => (vz(), _z)),
|
|
28017
|
+
[Dd.CarBusiness]: () => Promise.resolve().then(() => (Oz(), Dz)),
|
|
28018
|
+
"business-car": () => Promise.resolve().then(() => (Oz(), Dz)),
|
|
28019
|
+
[Dd.BusinessLiability]: () => Promise.resolve().then(() => (Rz(), Lz))
|
|
27969
28020
|
};
|
|
27970
|
-
q(),
|
|
27971
|
-
var
|
|
28021
|
+
q(), rP(), Nd();
|
|
28022
|
+
var Bz = { [Dd.Travel]: "/tarieven/" }, Vz = (e, t, n) => `${e}#/${n}${Bz[t] ?? ""}`, Hz = (e) => {
|
|
27972
28023
|
window.location.href = e;
|
|
27973
|
-
},
|
|
28024
|
+
}, Uz = ({ user: e, detail: t }) => new qN.User({
|
|
27974
28025
|
email: e.email || null,
|
|
27975
28026
|
name: e.firstName || null,
|
|
27976
28027
|
zip_code: e.zipCode || null,
|
|
@@ -27984,14 +28035,14 @@ var zz = { [Dd.Travel]: "/tarieven/" }, Bz = (e, t, n) => `${e}#/${n}${zz[t] ??
|
|
|
27984
28035
|
...e.city && { city: e.city }
|
|
27985
28036
|
}
|
|
27986
28037
|
});
|
|
27987
|
-
function
|
|
28038
|
+
function Wz(e) {
|
|
27988
28039
|
let t = /* @__PURE__ */ N(!1), n = /* @__PURE__ */ N(null);
|
|
27989
28040
|
return {
|
|
27990
28041
|
submit: async (r) => {
|
|
27991
28042
|
t.value = !0, n.value = null;
|
|
27992
28043
|
try {
|
|
27993
|
-
let t = await
|
|
27994
|
-
e.onRedirect ? e.onRedirect(n) :
|
|
28044
|
+
let t = await tP().comparisonService.create(r.comparison, Uz(r)), n = Vz(e.link, r.comparison, t.getId());
|
|
28045
|
+
e.onRedirect ? e.onRedirect(n) : Hz(n);
|
|
27995
28046
|
} catch (t) {
|
|
27996
28047
|
n.value = t, e.onError?.(t, r);
|
|
27997
28048
|
} finally {
|
|
@@ -28005,7 +28056,7 @@ function Uz(e) {
|
|
|
28005
28056
|
q(), Ed();
|
|
28006
28057
|
//#endregion
|
|
28007
28058
|
//#region src/flow/ComparisonFormFlow.vue
|
|
28008
|
-
var
|
|
28059
|
+
var Gz = /* @__PURE__ */ L({
|
|
28009
28060
|
__name: "ComparisonFormFlow",
|
|
28010
28061
|
props: {
|
|
28011
28062
|
form: {},
|
|
@@ -28039,7 +28090,7 @@ var Wz = /* @__PURE__ */ L({
|
|
|
28039
28090
|
let n = e, r = t, i = Cd(n), a = /* @__PURE__ */ Pt();
|
|
28040
28091
|
I(() => n.form, async (e) => {
|
|
28041
28092
|
a.value = void 0;
|
|
28042
|
-
let t =
|
|
28093
|
+
let t = zz[e];
|
|
28043
28094
|
if (t) try {
|
|
28044
28095
|
let r = await t();
|
|
28045
28096
|
n.form === e && (a.value = r);
|
|
@@ -28047,7 +28098,7 @@ var Wz = /* @__PURE__ */ L({
|
|
|
28047
28098
|
r("error", e);
|
|
28048
28099
|
}
|
|
28049
28100
|
}, { immediate: !0 });
|
|
28050
|
-
let { submit: o, isSubmitting: s } =
|
|
28101
|
+
let { submit: o, isSubmitting: s } = Wz({
|
|
28051
28102
|
link: n.link,
|
|
28052
28103
|
onRedirect: (e) => {
|
|
28053
28104
|
r("submitted", e), n.redirect ? n.redirect(e) : window.location.href = e;
|
|
@@ -28064,10 +28115,10 @@ var Wz = /* @__PURE__ */ L({
|
|
|
28064
28115
|
}), null, 16, ["initial-data", "submit-disabled"])) : U("", !0);
|
|
28065
28116
|
}
|
|
28066
28117
|
});
|
|
28067
|
-
q(), Sd(),
|
|
28118
|
+
q(), Sd(), rP(), $F();
|
|
28068
28119
|
//#endregion
|
|
28069
28120
|
//#region src/entries/ComparisonFormFlow.ce.vue
|
|
28070
|
-
var
|
|
28121
|
+
var Kz = /* @__PURE__ */ L({
|
|
28071
28122
|
__name: "ComparisonFormFlow.ce",
|
|
28072
28123
|
props: {
|
|
28073
28124
|
initialData: { type: [Object, String] },
|
|
@@ -28099,18 +28150,18 @@ var Gz = /* @__PURE__ */ L({
|
|
|
28099
28150
|
},
|
|
28100
28151
|
emits: ["submitted", "error"],
|
|
28101
28152
|
setup(e, { emit: t }) {
|
|
28102
|
-
let n = e, r = Yu(n, "apiUrl", "initialData"), i = t, a = K(() =>
|
|
28153
|
+
let n = e, r = Yu(n, "apiUrl", "initialData"), i = t, a = K(() => ZF(n.initialData)), o = K(() => a.value.data);
|
|
28103
28154
|
I(a, ({ error: e }) => {
|
|
28104
28155
|
e && i("error", e);
|
|
28105
28156
|
}, { immediate: !0 });
|
|
28106
28157
|
let s = /* @__PURE__ */ N(!1);
|
|
28107
28158
|
return os(async () => {
|
|
28108
28159
|
try {
|
|
28109
|
-
await
|
|
28160
|
+
await eP(n.apiUrl ?? ""), s.value = !0;
|
|
28110
28161
|
} catch (e) {
|
|
28111
28162
|
i("error", e);
|
|
28112
28163
|
}
|
|
28113
|
-
}), (e, t) => s.value ? (z(), V(
|
|
28164
|
+
}), (e, t) => s.value ? (z(), V(Gz, W({ key: 0 }, P(r), {
|
|
28114
28165
|
"initial-data": o.value,
|
|
28115
28166
|
onSubmitted: t[0] ||= (e) => i("submitted", e),
|
|
28116
28167
|
onError: t[1] ||= (e, t) => i("error", e, t)
|
|
@@ -28120,7 +28171,7 @@ var Gz = /* @__PURE__ */ L({
|
|
|
28120
28171
|
//#endregion
|
|
28121
28172
|
//#region src/entries/wc.ts
|
|
28122
28173
|
q();
|
|
28123
|
-
var
|
|
28124
|
-
customElements.define("vd-comparison-form",
|
|
28174
|
+
var qz = /* @__PURE__ */ Zc(Kz, { shadowRoot: !1 });
|
|
28175
|
+
customElements.define("vd-comparison-form", qz);
|
|
28125
28176
|
//#endregion
|
|
28126
|
-
export {
|
|
28177
|
+
export { qz as VdComparisonFormElement };
|