@vergelijkdirect/comparison-forms 1.3.17-ver-8380.1 → 1.3.17-ver-8380.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/dist-rollup/comparison-forms.js +30270 -6
  2. package/dist-rollup/comparison-forms.umd.cjs +29 -15
  3. package/package.json +4 -7
  4. package/dist-rollup/AddressHandler-jwYRDHTI.js +0 -288
  5. package/dist-rollup/BikeForm-30I53uCm.js +0 -126
  6. package/dist-rollup/BikeFormHorizontal-u1PW-9KV.js +0 -126
  7. package/dist-rollup/BirthdateInput-1tsGzxTx.js +0 -84
  8. package/dist-rollup/BusinessCarForm-oeBpet3X.js +0 -119
  9. package/dist-rollup/BusinessCarFormHorizontal-lBxuzRso.js +0 -119
  10. package/dist-rollup/CarForm-xTslX4mq.js +0 -102
  11. package/dist-rollup/CarFormHorizontal-z_-Ew9Ji.js +0 -101
  12. package/dist-rollup/CaravanForm-BWUCqXZ8.js +0 -137
  13. package/dist-rollup/CaravanFormHorizontal-qVPTYW4D.js +0 -137
  14. package/dist-rollup/CaravanFormOld-JaY01RDW.js +0 -130
  15. package/dist-rollup/DefaultForm-4umbLheg.js +0 -60
  16. package/dist-rollup/DefaultInput-zxU1ufPA.js +0 -435
  17. package/dist-rollup/DefaultPlainRadioGroup-i8P1ACl4.js +0 -145
  18. package/dist-rollup/DefaultSelect-t64f_R7v.js +0 -93
  19. package/dist-rollup/ErrorHandler-9Zxi6g3R.js +0 -45
  20. package/dist-rollup/FamilyCompositionInput-dWbnEFac.js +0 -51
  21. package/dist-rollup/HouseForm-ga4I0nPa.js +0 -105
  22. package/dist-rollup/HouseFormHorizontal-zcNNDuDQ.js +0 -104
  23. package/dist-rollup/LegalAssistanceForm-M2yX72hT.js +0 -109
  24. package/dist-rollup/LegalAssistanceFormHorizontal-NztH_5Yq.js +0 -108
  25. package/dist-rollup/LiabilityForm-D09YaRGm.js +0 -102
  26. package/dist-rollup/LiabilityFormHorizontal-nV1JerpT.js +0 -102
  27. package/dist-rollup/LicensePlate-BMeYEcIe.js +0 -505
  28. package/dist-rollup/Loader-_esX79Uz.js +0 -1105
  29. package/dist-rollup/ManualNewValueModal-S0C68NGl.js +0 -2586
  30. package/dist-rollup/MopedForm-ZL3526H3.js +0 -112
  31. package/dist-rollup/MopedFormHorizontal-6btf9cMz.js +0 -112
  32. package/dist-rollup/MotorForm-M6FHM1pV.js +0 -111
  33. package/dist-rollup/MotorFormHorizontal-NcCjW3P5.js +0 -105
  34. package/dist-rollup/PackageForm-HcPVbqOI.js +0 -305
  35. package/dist-rollup/PetForm-OvLvibk1.js +0 -115
  36. package/dist-rollup/PetFormHorizontal-u7P_iNbx.js +0 -124
  37. package/dist-rollup/PetFormOld-9yiD9akJ.js +0 -126
  38. package/dist-rollup/PhoneInput-l6YwvwSj.js +0 -131
  39. package/dist-rollup/QuestionnaireForm-mDU7NBoo.js +0 -64
  40. package/dist-rollup/QuotationForm-j1i5zScM.js +0 -183
  41. package/dist-rollup/RiskScannerForm-JGojbshZ.js +0 -152
  42. package/dist-rollup/SearchableSelect-1GCKHHKe.js +0 -232
  43. package/dist-rollup/Session.util-aedjr12J.js +0 -42
  44. package/dist-rollup/SimpleCard-_Mg9wAqJ.js +0 -50
  45. package/dist-rollup/TravelForm-goy4CZNN.js +0 -117
  46. package/dist-rollup/TravelFormHorizontal-q396jXWh.js +0 -117
  47. package/dist-rollup/TravelFormOld-83YKTgP8.js +0 -123
  48. package/dist-rollup/ZipcodeInput-z5W6JSl0.js +0 -61
  49. package/dist-rollup/_commonjsHelpers-4t9S7M5p.js +0 -30
  50. package/dist-rollup/array.util-agNtEyks.js +0 -16
  51. package/dist-rollup/bikeBrands.model-FYepHp3k.js +0 -338
  52. package/dist-rollup/businessCar-Mt6F5U-j.js +0 -188
  53. package/dist-rollup/car-oIzIKvsB.js +0 -85
  54. package/dist-rollup/common-J_DOueuE.js +0 -1577
  55. package/dist-rollup/createLoanComparisonForm-T4s_32PC.js +0 -96
  56. package/dist-rollup/familyComposition.model-1F80igwZ.js +0 -21
  57. package/dist-rollup/familySize.model-9dESnIuL.js +0 -98
  58. package/dist-rollup/form-radio-group-J-EQJhh9.js +0 -1238
  59. package/dist-rollup/house-iRMRIU6o.js +0 -73
  60. package/dist-rollup/index-WjnHra7k.js +0 -619
  61. package/dist-rollup/liability-W6z2ze1t.js +0 -73
  62. package/dist-rollup/loanPurpose-nICjCm1d.js +0 -273
  63. package/dist-rollup/moped-T6_xyOsb.js +0 -84
  64. package/dist-rollup/motor-fCU2n3O5.js +0 -83
  65. package/dist-rollup/paymentTerms.model-J3WNhgPU.js +0 -145
  66. package/dist-rollup/updateLoanComparisonForm-iyTnJD5A.js +0 -92
  67. package/dist-rollup/useSkipUpdateComparison-WseHt-cH.js +0 -437
  68. package/dist-rollup/vue-popper.min-O3ciEEKg.js +0 -1159
@@ -1,61 +0,0 @@
1
- import { defineComponent as o } from "vue";
2
- import { e as i, h as p, n as l } from "./index-WjnHra7k.js";
3
- import { D as c } from "./DefaultInput-zxU1ufPA.js";
4
- const u = o({
5
- name: "ZipcodeInput",
6
- components: {
7
- DefaultInput: c
8
- },
9
- props: {
10
- id: {
11
- type: String,
12
- required: !1,
13
- default: "zipcode"
14
- },
15
- name: {
16
- type: String,
17
- required: !1,
18
- default: "zipcode"
19
- },
20
- value: {
21
- type: String
22
- },
23
- isRequired: {
24
- type: Boolean,
25
- default: !1
26
- }
27
- },
28
- emits: ["input", "change"],
29
- setup(n, { emit: e }) {
30
- return {
31
- errors: i,
32
- hasNewDesign: p,
33
- handleChange: (t) => {
34
- e("change", t.toUpperCase());
35
- },
36
- handleInput: (t) => {
37
- e("input", t.toUpperCase());
38
- }
39
- };
40
- }
41
- });
42
- var s = function() {
43
- var e = this, r = e._self._c;
44
- return e._self._setupProxy, r("default-input", { attrs: { id: e.id, value: e.value, mask: "####AA", "autocomplete-off": !0, placeholder: "bv. 1234 AZ", validation: { rules: { required: "required", regex: /^\d{4}(\s|)[a-z]{2}$/i } }, type: "text", label: "Postcode", name: e.name, "is-required": e.isRequired }, on: { input: e.handleInput, change: e.handleChange } }, [r("template", { slot: "error-messages" }, [e.errors.has(e.name + ":required") ? r("p", { staticClass: "vd-form-error" }, [r("i", { staticClass: "fas fa-exclamation-circle" }), e._v(" Vul je postcode in ")]) : e._e(), e.errors.has(e.name + ":regex") ? r("p", { staticClass: "vd-form-error" }, [r("i", { staticClass: "fas fa-exclamation-circle" }), e._v(" Postcode is incorrect ")]) : e._e()])], 2);
45
- }, d = [];
46
- s._withStripped = !0;
47
- var a = /* @__PURE__ */ l(
48
- u,
49
- s,
50
- d,
51
- !1,
52
- null,
53
- null,
54
- null,
55
- null
56
- );
57
- a.options.__file = "/Users/vergelijkdirect/Documents/projects/comparison-forms/src/components/common/inputs/ZipcodeInput.vue";
58
- const v = a.exports;
59
- export {
60
- v as Z
61
- };
@@ -1,30 +0,0 @@
1
- var u = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
2
- function f(e) {
3
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
4
- }
5
- function l(e) {
6
- if (e.__esModule)
7
- return e;
8
- var r = e.default;
9
- if (typeof r == "function") {
10
- var t = function o() {
11
- return this instanceof o ? Reflect.construct(r, arguments, this.constructor) : r.apply(this, arguments);
12
- };
13
- t.prototype = r.prototype;
14
- } else
15
- t = {};
16
- return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(e).forEach(function(o) {
17
- var n = Object.getOwnPropertyDescriptor(e, o);
18
- Object.defineProperty(t, o, n.get ? n : {
19
- enumerable: !0,
20
- get: function() {
21
- return e[o];
22
- }
23
- });
24
- }), t;
25
- }
26
- export {
27
- l as a,
28
- u as c,
29
- f as g
30
- };
@@ -1,16 +0,0 @@
1
- function i(e, n, t, o = !1) {
2
- const s = o && typeof t == "string" ? t.toLowerCase() : t;
3
- return e.find((r) => (o && typeof t == "string" ? r[n].toLowerCase() : r[n]) === s);
4
- }
5
- function c(e) {
6
- if (e.length === 1)
7
- return e;
8
- const n = [];
9
- for (const t of e)
10
- n.some((o) => JSON.stringify(t) === JSON.stringify(o)) || n.push(t);
11
- return n;
12
- }
13
- export {
14
- i as f,
15
- c as r
16
- };
@@ -1,338 +0,0 @@
1
- var k = (t, d, l) => new Promise((v, u) => {
2
- var m = (a) => {
3
- try {
4
- o(l.next(a));
5
- } catch (n) {
6
- u(n);
7
- }
8
- }, c = (a) => {
9
- try {
10
- o(l.throw(a));
11
- } catch (n) {
12
- u(n);
13
- }
14
- }, o = (a) => a.done ? v(a.value) : Promise.resolve(a.value).then(m, c);
15
- o((l = l.apply(t, d)).next());
16
- });
17
- import { ref as h, computed as A, watch as x, onMounted as F } from "vue";
18
- import { b as i, F as b, u as r, q as s, v as I } from "./index-WjnHra7k.js";
19
- import { u as V } from "./common-J_DOueuE.js";
20
- import { r as M } from "./array.util-agNtEyks.js";
21
- const R = () => [{
22
- name: "bike",
23
- data: i
24
- }], f = [1, 7], K = [3, 4], g = {
25
- raceOrMtb: 15e3,
26
- default: 9999
27
- }, E = h(!1), L = { min: 12, max: 99 }, $ = (t, d) => {
28
- const l = h(!1), v = A(() => {
29
- let e = g.default;
30
- return K.includes(i.kind) && (e = g.raceOrMtb), {
31
- rules: `required|max_value:${e}`,
32
- text: {
33
- max_value: `Het ingevulde bedrag is te hoog. Voer een bedrag in tot maximaal € ${e},-`
34
- }
35
- };
36
- }), {
37
- submitFormAndCreateComparison: u,
38
- submitFormAndUpdateFormData: m,
39
- removeSessionState: c,
40
- setInitialUserInfoInStore: o,
41
- openQuotationModal: a
42
- } = V(d), n = () => `${t.link}#/<<COMPARISONID>>`, B = () => {
43
- l.value = i.condition === null;
44
- }, p = () => {
45
- Object.assign(i, t.insuranceState);
46
- }, S = () => k(void 0, null, function* () {
47
- const e = [
48
- "kind",
49
- "price",
50
- "zipcode",
51
- "housenumber",
52
- "housenumberaddition",
53
- "birthdate"
54
- ];
55
- f.includes(Number(i.kind)) && e.push("brand");
56
- const D = yield I(e);
57
- return B(), D && !l.value && !E.value;
58
- }), C = () => k(void 0, null, function* () {
59
- try {
60
- (yield S()) && (t.formLocation === b.isOnResultPage ? m({ bike: i, userInformation: r }) : yield u("bike", R(), n()));
61
- } catch (e) {
62
- w(e);
63
- }
64
- }), w = (e) => {
65
- console.error(e), s.refId = "192", s.notes.push({ text: "Kan geen comparison ID aanmaken voor fietsverzekering vergelijking" }), s.notes.push({
66
- text: `Postcode: ${r.zipcode} | Huisnummer: ${r.houseNumber} | Huisnummer toevoeging: ${r.houseNumberAddition}`
67
- }), s.notes = M(s.notes), a();
68
- };
69
- return x(() => i.kind, (e) => {
70
- f.includes(Number(e)) || (i.brand = "");
71
- }), F(() => {
72
- t.formLocation === b.isOnResultPage && (o(t), p()), t.formLocation === b.isBeforeFlow && (i.condition = t.additionalOptions.bikeCondition ? Number(t.additionalOptions.bikeCondition) : i.condition, c("bike-storage", "bike-path"));
73
- }), {
74
- hasBikeConditionError: l,
75
- priceValidation: v,
76
- houseError: E,
77
- acceptableAges: L,
78
- EBikes: f,
79
- checkBikeCondition: B,
80
- validateBeforeSubmit: C
81
- };
82
- }, z = [
83
- {
84
- value: 4,
85
- title: "ATB / Mountainbike",
86
- name: "Mountainbike",
87
- isEBike: !1
88
- },
89
- {
90
- value: 7,
91
- title: "Elektrische bakfiets",
92
- name: "Elektrische bakfiets",
93
- isEBike: !0
94
- },
95
- {
96
- value: 8,
97
- title: "Elektrische ATB / mountainbike",
98
- name: "Elektrische ATB / mountainbike",
99
- isEBike: !0
100
- },
101
- {
102
- value: 1,
103
- title: "E-Bike",
104
- name: "E-Bike",
105
- isEBike: !0
106
- },
107
- {
108
- value: 12,
109
- title: "Fatbike",
110
- name: "Fatbike",
111
- isEBike: !0
112
- },
113
- {
114
- value: 2,
115
- title: "Fiets",
116
- name: "Fiets",
117
- isEBike: !1
118
- },
119
- {
120
- value: 5,
121
- title: "Ligfiets",
122
- name: "Ligfiets",
123
- isEBike: !1
124
- },
125
- {
126
- value: 9,
127
- title: "Kinderfiets",
128
- name: "Kinderfiets",
129
- isEBike: !1
130
- },
131
- {
132
- value: 3,
133
- title: "Racefiets",
134
- name: "Racefiets",
135
- isEBike: !1
136
- },
137
- {
138
- value: 11,
139
- title: "Tandem",
140
- name: "Tandem",
141
- isEBike: !1
142
- },
143
- {
144
- value: 10,
145
- title: "Vouwfiets",
146
- name: "Vouwfiets",
147
- isEBike: !1
148
- }
149
- ], G = [
150
- {
151
- value: 1,
152
- label: "Nieuw"
153
- },
154
- {
155
- value: 0,
156
- label: "Tweedehands"
157
- }
158
- ], U = [
159
- {
160
- value: "Ander merk",
161
- title: "Ander merk"
162
- },
163
- {
164
- value: "",
165
- title: "—",
166
- disabled: !0
167
- },
168
- {
169
- value: "AGM",
170
- title: "AGM"
171
- },
172
- {
173
- value: "Batavus",
174
- title: "Batavus"
175
- },
176
- {
177
- value: "Bigway",
178
- title: "Bigway"
179
- },
180
- {
181
- value: "Bohlt",
182
- title: "Bohlt"
183
- },
184
- {
185
- value: "Cannondale",
186
- title: "Cannondale"
187
- },
188
- {
189
- value: "Cortina",
190
- title: "Cortina"
191
- },
192
- {
193
- value: "Cube",
194
- title: "Cube"
195
- },
196
- {
197
- value: "Diablo",
198
- title: "Diablo"
199
- },
200
- {
201
- value: "Don Souris",
202
- title: "Don Souris"
203
- },
204
- {
205
- value: "Doppio",
206
- title: "Doppio"
207
- },
208
- {
209
- value: "Dowe",
210
- title: "Dowe"
211
- },
212
- {
213
- value: "Engwe",
214
- title: "Engwe"
215
- },
216
- {
217
- value: "Esmaster",
218
- title: "Esmaster"
219
- },
220
- {
221
- value: "EZBIKE",
222
- title: "EZBIKE"
223
- },
224
- {
225
- value: "Fatbike",
226
- title: "Fatbike"
227
- },
228
- {
229
- value: "Gazelle",
230
- title: "Gazelle"
231
- },
232
- {
233
- value: "Idpoo",
234
- title: "Idpoo"
235
- },
236
- {
237
- value: "Kalkhoff",
238
- title: "Kalkhoff"
239
- },
240
- {
241
- value: "Knaap",
242
- title: "Knaap"
243
- },
244
- {
245
- value: "Koga",
246
- title: "Koga"
247
- },
248
- {
249
- value: "Lacros",
250
- title: "Lacros"
251
- },
252
- {
253
- value: "La Souris",
254
- title: "La Souris"
255
- },
256
- {
257
- value: "Ouxi",
258
- title: "Ouxi"
259
- },
260
- {
261
- value: "Pegasus",
262
- title: "Pegasus"
263
- },
264
- {
265
- value: "Phatfour",
266
- title: "Phatfour"
267
- },
268
- {
269
- value: "Radpower",
270
- title: "Radpower"
271
- },
272
- {
273
- value: "Radrunner",
274
- title: "Radrunner"
275
- },
276
- {
277
- value: "Roxxbike",
278
- title: "Roxxbike"
279
- },
280
- {
281
- value: "Ruff",
282
- title: "Ruff"
283
- },
284
- {
285
- value: "Sparta",
286
- title: "Sparta"
287
- },
288
- {
289
- value: "Stella",
290
- title: "Stella"
291
- },
292
- {
293
- value: "Stoer",
294
- title: "Stoer"
295
- },
296
- {
297
- value: "Super73",
298
- title: "Super73"
299
- },
300
- {
301
- value: "Trek",
302
- title: "Trek"
303
- },
304
- {
305
- value: "Troy",
306
- title: "Troy"
307
- },
308
- {
309
- value: "Victoria",
310
- title: "Victoria"
311
- },
312
- {
313
- value: "Vintage Cruiser",
314
- title: "Vintage Cruiser"
315
- },
316
- {
317
- value: "Vogue Diablo",
318
- title: "Vogue Diablo"
319
- },
320
- {
321
- value: "Volta",
322
- title: "Volta"
323
- },
324
- {
325
- value: "VanMoof",
326
- title: "VanMoof"
327
- },
328
- {
329
- value: "Urban Arrow",
330
- title: "Urban Arrow"
331
- }
332
- ];
333
- export {
334
- G as a,
335
- z as b,
336
- U as c,
337
- $ as u
338
- };
@@ -1,188 +0,0 @@
1
- var E = Object.defineProperty;
2
- var F = Object.getOwnPropertySymbols;
3
- var K = Object.prototype.hasOwnProperty, M = Object.prototype.propertyIsEnumerable;
4
- var I = (e, t, a) => t in e ? E(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a, D = (e, t) => {
5
- for (var a in t || (t = {}))
6
- K.call(t, a) && I(e, a, t[a]);
7
- if (F)
8
- for (var a of F(t))
9
- M.call(t, a) && I(e, a, t[a]);
10
- return e;
11
- };
12
- var C = (e, t, a) => new Promise((i, r) => {
13
- var c = (o) => {
14
- try {
15
- s(a.next(o));
16
- } catch (u) {
17
- r(u);
18
- }
19
- }, m = (o) => {
20
- try {
21
- s(a.throw(o));
22
- } catch (u) {
23
- r(u);
24
- }
25
- }, s = (o) => o.done ? i(o.value) : Promise.resolve(o.value).then(c, m);
26
- s((a = a.apply(e, t)).next());
27
- });
28
- import { ref as P, computed as S, onMounted as R } from "vue";
29
- import { a as l, c as v, F as h, q as b, v as $ } from "./index-WjnHra7k.js";
30
- import { u as T } from "./common-J_DOueuE.js";
31
- import { r as x } from "./array.util-agNtEyks.js";
32
- import { i as k } from "./LicensePlate-BMeYEcIe.js";
33
- const V = (e) => {
34
- const t = e.find((f) => f.type === "bezoekadres"), {
35
- huisnummer: a,
36
- huisletter: i = "",
37
- huisnummerToevoeging: r = "",
38
- toevoegingAdres: c = "",
39
- plaats: m,
40
- postcode: s,
41
- straatnaam: o
42
- } = t;
43
- return {
44
- houseNumber: a,
45
- houseNumberAddition: i || r || c,
46
- city: m,
47
- zipCode: s,
48
- streetName: o
49
- };
50
- }, N = () => {
51
- const e = l.companyData, t = e._embedded.hoofdvestiging.adressen, a = V(t), i = e.sbiActiviteiten;
52
- let r = null;
53
- const c = [];
54
- for (const s of i)
55
- s.indHoofdactiviteit === "Ja" && (r = s.sbiCode), c.push(s.sbiCode);
56
- const m = {
57
- name: e.naam,
58
- kvkNumber: e.kvkNummer,
59
- industry: e.sbiIndustryId,
60
- numberOfEmployees: e.totaalWerkzamePersonen,
61
- legalForm: e._embedded.eigenaar.rechtsvorm,
62
- mainSBI: r,
63
- otherSBI: c
64
- };
65
- return D(D({}, m), a);
66
- }, q = () => {
67
- const {
68
- naam: e,
69
- kvkNummer: t,
70
- industry: a,
71
- numberOfEmployees: i,
72
- legalForm: r,
73
- mainSBI: c,
74
- otherSBI: m,
75
- houseNumber: s,
76
- houseNumberAddition: o,
77
- city: u,
78
- zipCode: f,
79
- streetName: y
80
- } = l.companyData;
81
- return {
82
- name: e,
83
- kvkNumber: t,
84
- industry: a,
85
- numberOfEmployees: i,
86
- legalForm: r,
87
- mainSBI: c,
88
- otherSBI: m,
89
- houseNumber: s,
90
- houseNumberAddition: o,
91
- city: u,
92
- zipCode: f,
93
- streetName: y
94
- };
95
- }, U = () => {
96
- const e = {
97
- name: "car",
98
- data: v
99
- }, t = {
100
- name: "companyData",
101
- data: N()
102
- };
103
- return [e, t];
104
- }, g = P(!1), Y = (e, t) => {
105
- const a = P(!1);
106
- let i = P(!1);
107
- const {
108
- closeFormWithoutUpdateComparison: r,
109
- submitFormAndUpdateFormData: c,
110
- submitFormAndCreateComparison: m,
111
- removeSessionState: s,
112
- openQuotationModal: o
113
- } = T(t), u = S(() => {
114
- var n;
115
- return (n = e.insuranceState.companyData) != null && n.kvkNumber ? e.insuranceState.companyData.kvkNumber === l.companyData.kvkNummer : !1;
116
- }), f = S(() => {
117
- var n;
118
- if ((n = e.insuranceState.car) != null && n.LicensePlate) {
119
- const p = e.insuranceState.car.LicensePlate.split("-").join(""), d = v.LicensePlate.split("-").join("");
120
- return p === d;
121
- }
122
- return !1;
123
- }), y = S(() => k(e.insuranceState) || k(e.insuranceState.companyData) || k(e.insuranceState.car) ? !1 : f.value && u.value), L = () => `${e.link}#/<<COMPARISONID>>`, A = () => {
124
- Object.assign(v, e.insuranceState.car);
125
- }, B = () => {
126
- const n = e.insuranceState.companyData;
127
- Object.keys(n).map((d) => {
128
- if (d === "kvkNumber") {
129
- l.companyData.kvkNummer = n[d];
130
- return;
131
- } else if (d === "name") {
132
- l.companyData.naam = n[d];
133
- return;
134
- }
135
- l.companyData[d] = n[d];
136
- });
137
- }, O = () => {
138
- g.value = !1;
139
- }, w = () => {
140
- g.value = !0;
141
- }, H = () => C(void 0, null, function* () {
142
- return a.value = !Object.keys(l.companyData).length || !l.companyData.naam, (yield $([
143
- "license",
144
- "isLicenseTemplateIncorrectHiddenField",
145
- "unknownLicensePlateHiddenField",
146
- "noLicensePlateHiddenField",
147
- "incorrectLicensePlateHiddenField",
148
- "isLicensePlateCantBeRetrievedHiddenField"
149
- ])) && !g.value && !a.value;
150
- });
151
- function j() {
152
- return C(this, null, function* () {
153
- if (y.value) {
154
- r();
155
- return;
156
- }
157
- try {
158
- if (yield H())
159
- if (e.formLocation === h.isOnCoveragePage) {
160
- const n = u.value ? q() : N();
161
- c({ companyData: n, carState: v });
162
- } else
163
- yield m("car-business", U(), L());
164
- } catch (n) {
165
- z(n);
166
- }
167
- });
168
- }
169
- const z = (n) => {
170
- console.error(n);
171
- const p = N();
172
- b.refId = "192", b.notes.push({ text: "Kan geen comparison ID aanmaken voor zakelijk autoverzekering vergelijking" }), b.notes.push({
173
- text: `Kenteken: ${v.LicensePlate} | Postcode: ${p.zipCode} | Huisnummer: ${p.houseNumber} | Huisnummer toevoeging: ${p.houseNumberAddition}`
174
- }), b.notes = x(b.notes), o();
175
- };
176
- return R(() => {
177
- i.value = !0, e.formLocation === h.isOnCoveragePage && (A(), B()), e.formLocation === h.isBeforeFlow && s("car-business-storage", "car-business-path");
178
- }), {
179
- hasCompaniesListValidationError: a,
180
- isMultiselectReady: i,
181
- onLicenseInput: O,
182
- onLicenseError: w,
183
- validateBeforeSubmit: j
184
- };
185
- };
186
- export {
187
- Y as u
188
- };
@@ -1,85 +0,0 @@
1
- var C = (e, m, n) => new Promise((d, u) => {
2
- var l = (t) => {
3
- try {
4
- i(n.next(t));
5
- } catch (r) {
6
- u(r);
7
- }
8
- }, f = (t) => {
9
- try {
10
- i(n.throw(t));
11
- } catch (r) {
12
- u(r);
13
- }
14
- }, i = (t) => t.done ? d(t.value) : Promise.resolve(t.value).then(l, f);
15
- i((n = n.apply(e, m)).next());
16
- });
17
- import { ref as D, onMounted as b } from "vue";
18
- import { c, F, u as a, q as s, v as L } from "./index-WjnHra7k.js";
19
- import { u as k } from "./useSkipUpdateComparison-WseHt-cH.js";
20
- import { r as P } from "./array.util-agNtEyks.js";
21
- import { u as H } from "./common-J_DOueuE.js";
22
- const A = () => [{
23
- name: "car",
24
- data: c
25
- }], S = D(!1), N = (e, m) => {
26
- const {
27
- closeFormWithoutUpdateComparison: n,
28
- submitFormAndUpdateFormData: d,
29
- submitFormAndCreateComparison: u,
30
- setInitialUserInfoInStore: l,
31
- removeSessionState: f,
32
- openQuotationModal: i
33
- } = H(m), { vehicleFormDataIsNotChanged: t } = k(
34
- e.userInformation,
35
- e.insuranceState,
36
- c
37
- ), r = () => `${e.link}#/<<COMPARISONID>>/dekkingen/`, g = () => C(void 0, null, function* () {
38
- return (yield L([
39
- "license",
40
- "zipcode",
41
- "housenumber",
42
- "housenumberaddition",
43
- "birthdate",
44
- "isLicenseTemplateIncorrectHiddenField",
45
- "unknownLicensePlateHiddenField",
46
- "noLicensePlateHiddenField",
47
- "incorrectLicensePlateHiddenField",
48
- "isLicensePlateCantBeRetrievedHiddenField"
49
- ])) && !S.value;
50
- }), h = () => {
51
- Object.assign(c, e.insuranceState);
52
- }, p = (o) => {
53
- a.city = o.city, a.street = o.street;
54
- }, v = () => C(void 0, null, function* () {
55
- if (t()) {
56
- n();
57
- return;
58
- }
59
- try {
60
- if (yield g())
61
- if (e.formLocation === F.isOnCoveragePage)
62
- d({ userInformation: a, carState: c });
63
- else {
64
- const o = A();
65
- yield u("car", o, r());
66
- }
67
- } catch (o) {
68
- I(o);
69
- }
70
- }), I = (o) => {
71
- console.error(o), s.refId = "192", s.notes.push({ text: "Kan geen comparison ID aanmaken voor autoverzekering vergelijking" }), s.notes.push({
72
- text: `Kenteken: ${c.LicensePlate} | Postcode: ${a.zipcode} | Huisnummer: ${a.houseNumber} | Huisnummer toevoeging: ${a.houseNumberAddition} | Geboortedatum: ${a.birthdate}`
73
- }), s.notes = P(s.notes), i();
74
- };
75
- return b(() => {
76
- e.formLocation === F.isOnCoveragePage && (l(e), h()), e.formLocation === F.isBeforeFlow && f("car-storage", "car-path");
77
- }), {
78
- houseError: S,
79
- setHouseInformation: p,
80
- validateBeforeSubmit: v
81
- };
82
- };
83
- export {
84
- N as u
85
- };