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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/dist-rollup/comparison-forms.js +30271 -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,73 +0,0 @@
1
- var h = (o, c, t) => new Promise((s, r) => {
2
- var d = (e) => {
3
- try {
4
- n(t.next(e));
5
- } catch (i) {
6
- r(i);
7
- }
8
- }, f = (e) => {
9
- try {
10
- n(t.throw(e));
11
- } catch (i) {
12
- r(i);
13
- }
14
- }, n = (e) => e.done ? s(e.value) : Promise.resolve(e.value).then(d, f);
15
- n((t = t.apply(o, c)).next());
16
- });
17
- import { ref as v, onMounted as w } from "vue";
18
- import { k as l, F as g, u as m, v as b, q as a } from "./index-WjnHra7k.js";
19
- import { F as C } from "./familyComposition.model-1F80igwZ.js";
20
- import { u as D } from "./common-J_DOueuE.js";
21
- import { r as A } from "./array.util-agNtEyks.js";
22
- const k = [
23
- {
24
- value: "J",
25
- title: "Koopwoning"
26
- },
27
- {
28
- value: "N",
29
- title: "Huurwoning"
30
- }
31
- ], B = () => [{
32
- name: "house",
33
- data: l
34
- }], V = (o, c) => {
35
- const t = v(!1), s = v(!1), {
36
- submitFormAndCreateComparison: r,
37
- submitFormAndUpdateFormData: d,
38
- setInitialUserInfoInStore: f,
39
- removeSessionState: n,
40
- openQuotationModal: e
41
- } = D(c), i = () => `${o.link}#/<<COMPARISONID>>`, S = () => h(void 0, null, function* () {
42
- try {
43
- (yield p()) && (o.formLocation === g.isOnResultPage ? d({ userInformation: m, houseState: l }) : yield r("housing", B(), i()));
44
- } catch (u) {
45
- I(u);
46
- }
47
- }), p = () => h(void 0, null, function* () {
48
- return s.value = !l.ownedBuilding, (yield b([
49
- "zipcode",
50
- "houseNumber",
51
- "houseNumberAddition",
52
- "familyComposition"
53
- ])) && !t.value && !s.value;
54
- }), F = () => {
55
- Object.assign(l, o.insuranceState);
56
- }, I = (u) => {
57
- console.error(u), a.refId = "192", a.notes.push({ text: "Kan geen comparison ID aanmaken voor woonverzekering vergelijking" }), a.notes.push({
58
- text: `Postcode: ${m.zipcode} | Huisnummer: ${m.houseNumber} | Huisnummer toevoeging: ${m.houseNumberAddition}`
59
- }), a.notes = A(a.notes), e();
60
- };
61
- return w(() => {
62
- o.formLocation === g.isOnResultPage && (f(o), F()), o.formLocation === g.isBeforeFlow && n("housing-storage", "housing-path");
63
- }), {
64
- houseOwnedBuilding: k,
65
- FamilyCompositionsModel: C,
66
- houseError: t,
67
- ownedBuildingError: s,
68
- validateBeforeSubmit: S
69
- };
70
- };
71
- export {
72
- V as u
73
- };
@@ -1,619 +0,0 @@
1
- var B = Object.defineProperty;
2
- var q = Object.getOwnPropertySymbols;
3
- var H = Object.prototype.hasOwnProperty, L = Object.prototype.propertyIsEnumerable;
4
- var F = (t, e, r) => e in t ? B(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, _ = (t, e) => {
5
- for (var r in e || (e = {}))
6
- H.call(e, r) && F(t, r, e[r]);
7
- if (q)
8
- for (var r of q(e))
9
- L.call(e, r) && F(t, r, e[r]);
10
- return t;
11
- };
12
- var o = (t, e, r) => (F(t, typeof e != "symbol" ? e + "" : e, r), r);
13
- var h = (t, e, r) => new Promise((c, a) => {
14
- var i = (n) => {
15
- try {
16
- f(r.next(n));
17
- } catch (l) {
18
- a(l);
19
- }
20
- }, v = (n) => {
21
- try {
22
- f(r.throw(n));
23
- } catch (l) {
24
- a(l);
25
- }
26
- }, f = (n) => n.done ? c(n.value) : Promise.resolve(n.value).then(i, v);
27
- f((r = r.apply(t, e)).next());
28
- });
29
- import { ref as A, reactive as u, defineComponent as E, inject as M } from "vue";
30
- import * as s from "@vergelijkdirect/insurance-transmission-client";
31
- import { Validator as N } from "vee-validate";
32
- import C from "moment";
33
- const w = {
34
- vd: {
35
- url: "http://master.dev.vergelijkdirect.com/index.php"
36
- },
37
- mijn: {
38
- url: "http://master.mijn-api.vergelijkdirect.com"
39
- },
40
- api: {
41
- url: "http://master.api.vergelijkdirect.com/"
42
- },
43
- postcode: {
44
- url: "https://api.postcodeapi.nu",
45
- key: "RL7RFSAjlA1mON4P3d4bzAOu0Fgfbwaac21WLG00"
46
- },
47
- qa: {
48
- url: "http://qa-api.dev.vergelijkdirect.com/",
49
- qaId: "65dca9821f2b9e9db1060307",
50
- currentItemId: "6622695672245691fb02ce02",
51
- nextItemId: "65e342a01f2b9e9db1060335"
52
- }
53
- }, I = {
54
- url: w.api.url,
55
- login: w.api.login,
56
- password: w.api.password
57
- }, Y = {
58
- api: {
59
- baseUrl: I.url,
60
- auth: {
61
- username: I.login,
62
- password: I.password
63
- },
64
- version: "v2"
65
- }
66
- };
67
- function $(t) {
68
- let e = t.split("");
69
- return e[e.length - 1] === "/";
70
- }
71
- const y = class y {
72
- constructor(e = {}, r = {}) {
73
- this.values = e, this.cached = r;
74
- }
75
- constant(e, r) {
76
- this.values[e] = () => r;
77
- }
78
- get(e) {
79
- return e in this.cached ? this.cached[e] : e in this.values ? this.cached[e] = this.values[e](this) : !1;
80
- }
81
- };
82
- o(y, "instance", new y());
83
- let S = y;
84
- class P {
85
- static configure(e) {
86
- const r = S.instance;
87
- e.api && e.api.url && r.constant("vd-api-url", e.api.url), e.mijn && e.mijn.url && r.constant("mijn-api-url", e.mijn.url), e.qa && e.qa.url && r.constant("qa-api-url", e.qa.url);
88
- }
89
- static getApiUrl() {
90
- return S.instance.get("vd-api-url") || w.api.url;
91
- }
92
- static getMijnUrl() {
93
- return S.instance.get("mijn-api-url") || w.mijn.url;
94
- }
95
- static getQAUrl() {
96
- return S.instance.get("qa-api-url") || w.qa.url;
97
- }
98
- }
99
- class z {
100
- constructor() {
101
- o(this, "insurances", [
102
- "PetService",
103
- "MotorService",
104
- "BikeService",
105
- "MopedService",
106
- "HousingService",
107
- "HomeService",
108
- "LiabilityService",
109
- "HouseholdService",
110
- "DocumentService",
111
- "PackageService",
112
- "CaravanService",
113
- "DataValidationService",
114
- "CarService",
115
- "PartnerService",
116
- "ComparisonService",
117
- "UserService",
118
- "V1Service",
119
- "TravelService",
120
- "DataService"
121
- ]);
122
- o(this, "activeInsurances");
123
- o(this, "client");
124
- o(this, "petService");
125
- o(this, "motorService");
126
- o(this, "bikeService");
127
- o(this, "mopedService");
128
- o(this, "housingService");
129
- o(this, "homeService");
130
- o(this, "liabilityService");
131
- o(this, "householdService");
132
- o(this, "documentService");
133
- o(this, "packageService");
134
- o(this, "caravanService");
135
- o(this, "dataValidationService");
136
- o(this, "carService");
137
- o(this, "partnerService");
138
- o(this, "validation");
139
- o(this, "comparisonService");
140
- o(this, "userService");
141
- o(this, "v1Service");
142
- o(this, "travelService");
143
- o(this, "dataService");
144
- }
145
- getUrl() {
146
- return P.getApiUrl() + ($(P.getApiUrl()) ? "api" : "/api");
147
- }
148
- initITC() {
149
- return h(this, null, function* () {
150
- if (typeof window == "undefined")
151
- return;
152
- const e = JSON.parse(JSON.stringify(Y));
153
- e.api.baseUrl = this.getUrl();
154
- const r = new s.LocalStorageAdapter("insurances");
155
- return this.client = new s.InsuranceTransmissionClient(r), yield this.client.configure(e), this.createConfig(), this.createInsuranceClasses(), this;
156
- });
157
- }
158
- /**
159
- * @since v1.0.0
160
- *
161
- * Create config for the transmissionclient
162
- * to work properly
163
- *
164
- * @returns {void} void
165
- */
166
- createConfig() {
167
- this.validation = new s.DataValidationService(), this.petService = new s.PetService(), this.motorService = new s.MotorService(), this.bikeService = new s.BikeService(), this.mopedService = new s.MopedService(), this.housingService = new s.HousingService(), this.homeService = new s.HomeService(), this.liabilityService = new s.LiabilityService(), this.householdService = new s.HouseholdService(), this.documentService = new s.DocumentService(), this.packageService = new s.PackageService(), this.caravanService = new s.CaravanService(), this.dataValidationService = new s.DataValidationService(), this.carService = new s.CarService(), this.partnerService = new s.PartnerService(), this.comparisonService = new s.ComparisonService(), this.userService = new s.UserService(), this.v1Service = new s.V1Service(), this.travelService = new s.TravelService(), this.dataService = new s.DataService();
168
- }
169
- /**
170
- * @since v1.0.0
171
- *
172
- * Generates the classes from config
173
- * to load in the insurances from ITC
174
- *
175
- * @returns {void} void
176
- */
177
- createInsuranceClasses() {
178
- this.insurances.map((e) => {
179
- if (Object.prototype.hasOwnProperty.call(s, e)) {
180
- const r = {};
181
- r[e] = new s[e](), this.activeInsurances = Object.assign({}, this.activeInsurances, r);
182
- } else
183
- console.error(`${e} is not found in insurance transmission client`);
184
- });
185
- }
186
- /**
187
- * @since v1.0.0
188
- *
189
- * Exports the active insuranaces that we're loaded
190
- * in from createInsuranceClasses
191
- *
192
- * @returns {ActiveInsurances} Classes from ITC
193
- */
194
- get getActiveInsurances() {
195
- return this.activeInsurances;
196
- }
197
- /**
198
- * @since v1.0.0
199
- *
200
- * Exports the ITC client class
201
- *
202
- * @returns {insurances.InsuranceTransmissionClient} ITC client
203
- */
204
- get getClient() {
205
- return this.client;
206
- }
207
- getVehicleLicenseInformation(e, r) {
208
- return h(this, null, function* () {
209
- const c = e.toLocaleLowerCase(), a = this.dataService.findVehicle(r, c);
210
- return a || null;
211
- });
212
- }
213
- }
214
- let j = null, O = A(!1);
215
- const x = (t = null) => h(void 0, null, function* () {
216
- try {
217
- O.value = !1, j = t || (yield new z().initITC()), O.value = !0;
218
- } catch (e) {
219
- console.warn(e), O.value = !1;
220
- }
221
- }), W = (t, { valueToMatch: e } = {}) => t === e, Q = (t, { length: e } = {}) => t ? t.length >= e : !0, J = (t) => h(void 0, null, function* () {
222
- const { valid: e } = yield j.dataValidationService.validateEmail(t);
223
- return e;
224
- }), G = (t, { min: e, max: r, compareFullDate: c = !1 } = {}) => {
225
- if (c) {
226
- const i = C.utc(t, "DD-MM-YYYY");
227
- return e.isSameOrBefore(i) && i.isSameOrBefore(r);
228
- }
229
- const a = +C.utc(t, "DD-MM-YYYY").format("YYYY");
230
- return Number(e) <= a && Number(r) >= a;
231
- }, X = (t, { minAge: e = 18, maxAge: r = 100 } = {}) => {
232
- const c = C.utc(), a = C.utc(t, "DD-MM-YYYY", !0), i = c.diff(a, "years");
233
- return e <= i && i <= r;
234
- }, K = (t, e, r) => {
235
- const [c, a] = e;
236
- return `Je dient tussen de ${c} en ${a} jaar oud te zijn!`;
237
- };
238
- let p = u({}), Z = u({}), ee = u({});
239
- const te = (t = null) => {
240
- p = t ? t._base : new N(), p.extend("isValue", W, {
241
- paramNames: ["valueToMatch"]
242
- }), p.extend("minlength", Q, {
243
- paramNames: ["length"]
244
- }), p.extend("emailServerValidation", { validate: J }, {
245
- immediate: !1
246
- }), p.extend("betweenBirthDate", G, {
247
- paramNames: ["min", "max", "compareFullDate"]
248
- }), p.extend("ageRange", { getMessage: K, validate: X }, {
249
- paramNames: ["minAge", "maxAge"]
250
- }), Z = p.errors, ee = p.fields;
251
- }, xe = () => h(void 0, null, function* () {
252
- yield p.reset();
253
- }), We = (t) => h(void 0, null, function* () {
254
- const e = {};
255
- return yield Promise.all(
256
- t.map((r) => h(void 0, null, function* () {
257
- yield p.validate(r);
258
- const c = p.errors.items.find(
259
- (a) => a.field === r
260
- );
261
- c && (e[r] = c.msg);
262
- }))
263
- ), !Object.keys(e).length;
264
- }), re = A(!1), Qe = A(!1), Je = u({
265
- birthdate: "",
266
- zipcode: "",
267
- houseNumber: "",
268
- houseNumberAddition: "",
269
- email: "",
270
- kidsAmount: 0,
271
- familyComposition: "A",
272
- firstName: "",
273
- phoneNumber: "",
274
- street: "",
275
- city: ""
276
- }), Ge = u({
277
- LicensePlate: "",
278
- Brand: "",
279
- Model: "",
280
- Type: "",
281
- ManufacturingYear: "",
282
- BrandLogo: "",
283
- DayValue: null,
284
- CatalogValue: null,
285
- EnginePower: null,
286
- CylinderCapacity: "",
287
- Weight: null,
288
- WeightEmpty: "",
289
- Fuel: "",
290
- Source: "",
291
- VehicleCategory: "",
292
- VehicleType: ""
293
- }), Xe = u({
294
- Brand: "",
295
- CatalogValue: null,
296
- CylinderCapacity: "",
297
- EnginePower: 0,
298
- Fuel: "",
299
- LicensePlate: "",
300
- ManufacturingYear: "",
301
- MaximumPower: "",
302
- Model: "",
303
- PurchaseValue: "",
304
- SignCode: "",
305
- Type: "",
306
- TypeOfMoped: "",
307
- VehicleType: "",
308
- Weight: 0
309
- }), Ke = u({
310
- loanPurpose: "",
311
- loanAmount: null
312
- }), Ze = u({
313
- LicensePlate: "",
314
- Brand: "",
315
- Model: "",
316
- Type: "",
317
- ManufacturingYear: "",
318
- VehicleType: "",
319
- BrandLogo: "",
320
- DayValue: null,
321
- CatalogValue: null,
322
- CarAlarmRequirement: "",
323
- TheftProtectionClass: ""
324
- }), et = u({
325
- sex: "m",
326
- age: 0,
327
- postcode: "",
328
- kind: "dog",
329
- breed: null,
330
- raceLists: {
331
- dog: [],
332
- cat: []
333
- }
334
- }), tt = u({
335
- kind: null,
336
- condition: 1,
337
- price: null,
338
- brand: ""
339
- }), rt = u({
340
- paymentTerm: "L"
341
- }), it = u({
342
- ownedBuilding: "J",
343
- familySize: ""
344
- }), at = u({
345
- ownedBuilding: "J"
346
- }), nt = u({
347
- typeOfCaravan: "",
348
- length: "",
349
- newOrOccasion: "J",
350
- purchaseValue: "",
351
- catalogValue: "",
352
- buildYear: ""
353
- }), ot = u({
354
- companyData: {}
355
- }), st = u({
356
- refId: "",
357
- description: "",
358
- headerTitle: "",
359
- notes: []
360
- }), ct = u({
361
- selectedComparisons: []
362
- }), lt = u({
363
- qaId: "6627c64764165beec8076818",
364
- currentItemId: "6627e21c64165beec8076830",
365
- nextItemId: "6627e32464165beec8076838"
366
- });
367
- var D = /* @__PURE__ */ ((t) => (t.Horizontal = "horizontal", t.Vertical = "vertical", t))(D || {}), T = /* @__PURE__ */ ((t) => (t.isBeforeFlow = "IS_BEFORE_FLOW", t.isOnFamilyPage = "IS_ON_FAMILY_PAGE", t.isOnCoveragePage = "IS_ON_COVERAGE_PAGE", t.isOnResultPage = "IS_ON_RESULT_PAGE", t))(T || {});
368
- const ie = (t) => Object.values(D).includes(t);
369
- function k(t) {
370
- const e = decodeURIComponent(t);
371
- return e === t ? t.replace(/\+/g, " ") : k(e);
372
- }
373
- function ae(t) {
374
- const e = {}, r = t.split("&");
375
- for (let c = 0; c < r.length; c++) {
376
- const a = r[c].split("="), i = decodeURIComponent(a[0]);
377
- Object.prototype.hasOwnProperty.call(e, i) ? e[i] += "," + k(a[1]) : e[i] = k(a[1]), i || delete e[i];
378
- }
379
- return e;
380
- }
381
- function ut() {
382
- const t = window.location.search.substr(1);
383
- return t !== null && t !== "" ? ae(t) : {};
384
- }
385
- function ne(t, e) {
386
- function r(l) {
387
- const m = {};
388
- return l && l.split("&").forEach((g) => {
389
- const [d, b] = g.split("=");
390
- m[decodeURIComponent(d)] = decodeURIComponent(b);
391
- }), m;
392
- }
393
- function c(l) {
394
- return Object.entries(l).map(
395
- ([m, g]) => `${encodeURIComponent(m)}=${encodeURIComponent(g)}`
396
- ).join("&");
397
- }
398
- function a(l) {
399
- const m = document.createElement("a");
400
- return m.href = l, {
401
- origin: m.origin,
402
- pathname: m.pathname,
403
- search: m.search,
404
- hash: m.hash
405
- };
406
- }
407
- const i = a(t), v = r(i.search.slice(1)), f = _(_({}, v), e), n = c(f);
408
- return i.hash ? `${i.origin}${i.pathname}${i.hash}?${n}` : `${i.origin}${i.pathname}?${n}`;
409
- }
410
- const oe = () => import("./BikeForm-30I53uCm.js"), se = () => import("./BikeFormHorizontal-u1PW-9KV.js"), ce = () => import("./BusinessCarForm-oeBpet3X.js"), le = () => import("./BusinessCarFormHorizontal-lBxuzRso.js"), ue = () => import("./CarForm-xTslX4mq.js"), me = () => import("./CarFormHorizontal-z_-Ew9Ji.js"), de = () => import("./createLoanComparisonForm-T4s_32PC.js"), pe = () => import("./CaravanForm-BWUCqXZ8.js"), ve = () => import("./CaravanFormHorizontal-qVPTYW4D.js"), fe = () => import("./CaravanFormOld-JaY01RDW.js"), he = () => import("./DefaultForm-4umbLheg.js"), ge = () => import("./HouseForm-ga4I0nPa.js"), Se = () => import("./HouseFormHorizontal-zcNNDuDQ.js"), we = () => import("./LegalAssistanceForm-M2yX72hT.js"), Ce = () => import("./LegalAssistanceFormHorizontal-NztH_5Yq.js"), ye = () => import("./LiabilityForm-D09YaRGm.js"), be = () => import("./LiabilityFormHorizontal-nV1JerpT.js"), Fe = () => import("./MopedForm-ZL3526H3.js"), _e = () => import("./MopedFormHorizontal-6btf9cMz.js"), Ie = () => import("./MotorForm-M6FHM1pV.js"), Oe = () => import("./MotorFormHorizontal-NcCjW3P5.js"), Pe = () => import("./PackageForm-HcPVbqOI.js"), Te = () => import("./PetForm-OvLvibk1.js"), ke = () => import("./PetFormHorizontal-u7P_iNbx.js"), Ae = () => import("./PetFormOld-9yiD9akJ.js"), De = () => import("./QuestionnaireForm-mDU7NBoo.js"), Ve = () => import("./QuotationForm-j1i5zScM.js"), qe = () => import("./RiskScannerForm-JGojbshZ.js"), Me = () => import("./TravelForm-goy4CZNN.js"), je = () => import("./TravelFormHorizontal-q396jXWh.js"), Re = () => import("./TravelFormOld-83YKTgP8.js"), Ue = () => import("./updateLoanComparisonForm-iyTnJD5A.js"), Be = E({
411
- name: "EmbeddedApp",
412
- components: {
413
- BikeForm: oe,
414
- BikeFormHorizontal: se,
415
- BusinessCarForm: ce,
416
- BusinessCarFormHorizontal: le,
417
- CarForm: ue,
418
- CarFormHorizontal: me,
419
- CaravanForm: pe,
420
- CaravanFormHorizontal: ve,
421
- CaravanFormOld: fe,
422
- CreateLoanComparisonForm: de,
423
- DefaultForm: he,
424
- HouseForm: ge,
425
- HouseFormHorizontal: Se,
426
- LegalAssistanceForm: we,
427
- LegalAssistanceFormHorizontal: Ce,
428
- LiabilityForm: ye,
429
- LiabilityFormHorizontal: be,
430
- MopedForm: Fe,
431
- MopedFormHorizontal: _e,
432
- MotorForm: Ie,
433
- MotorFormHorizontal: Oe,
434
- PackageForm: Pe,
435
- PetForm: Te,
436
- PetFormHorizontal: ke,
437
- PetFormOld: Ae,
438
- QuestionnaireForm: De,
439
- QuotationForm: Ve,
440
- RiskScannerForm: qe,
441
- TravelForm: Me,
442
- TravelFormHorizontal: je,
443
- TravelFormOld: Re,
444
- UpdateLoanComparisonForm: Ue
445
- },
446
- props: {
447
- formComponent: {
448
- required: !0,
449
- type: String
450
- },
451
- link: {
452
- required: !1,
453
- type: String
454
- },
455
- hasNewDesign: {
456
- required: !1,
457
- type: Boolean,
458
- default: !1
459
- },
460
- userInformation: {
461
- required: !1,
462
- default() {
463
- return {};
464
- }
465
- },
466
- insuranceState: {
467
- required: !1,
468
- default() {
469
- return {};
470
- }
471
- },
472
- classes: {
473
- required: !1,
474
- type: String,
475
- default: ""
476
- },
477
- title: {
478
- required: !1,
479
- type: String
480
- },
481
- showTitle: {
482
- required: !1,
483
- type: Boolean,
484
- default: !0
485
- },
486
- formOrientation: {
487
- required: !1,
488
- type: String,
489
- default: D.Vertical,
490
- // Ensure FormOrientation is accessible
491
- validator: ie
492
- },
493
- formLocation: {
494
- type: String,
495
- required: !1,
496
- default: T.isBeforeFlow
497
- },
498
- additionalOptions: {
499
- required: !1,
500
- type: Object
501
- },
502
- description: {
503
- type: String,
504
- required: !1
505
- },
506
- buttonText: {
507
- type: String,
508
- required: !1
509
- }
510
- },
511
- setup(t, { emit: e }) {
512
- const r = (i) => {
513
- e("change", i);
514
- }, c = (i) => {
515
- e("emit-event", i);
516
- }, a = ({ link: i, data: v = null }) => {
517
- if (!v) {
518
- window.location.href = i;
519
- return;
520
- }
521
- const f = ne(i, v);
522
- window.location.href = f;
523
- };
524
- return x(M("ITC", null)), te(M("$validator", null)), re.value = t.hasNewDesign, {
525
- FormLocations: T,
526
- submitFormData: r,
527
- emitEventHub: c,
528
- redirectPage: a
529
- };
530
- }
531
- });
532
- function He(t, e, r, c, a, i, v, f) {
533
- var n = typeof t == "function" ? t.options : t;
534
- e && (n.render = e, n.staticRenderFns = r, n._compiled = !0), c && (n.functional = !0), i && (n._scopeId = "data-v-" + i);
535
- var l;
536
- if (v ? (l = function(d) {
537
- d = d || // cached call
538
- this.$vnode && this.$vnode.ssrContext || // stateful
539
- this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !d && typeof __VUE_SSR_CONTEXT__ != "undefined" && (d = __VUE_SSR_CONTEXT__), a && a.call(this, d), d && d._registeredComponents && d._registeredComponents.add(v);
540
- }, n._ssrRegister = l) : a && (l = f ? function() {
541
- a.call(
542
- this,
543
- (n.functional ? this.parent : this).$root.$options.shadowRoot
544
- );
545
- } : a), l)
546
- if (n.functional) {
547
- n._injectStyles = l;
548
- var m = n.render;
549
- n.render = function(b, V) {
550
- return l.call(V), m(b, V);
551
- };
552
- } else {
553
- var g = n.beforeCreate;
554
- n.beforeCreate = g ? [].concat(g, l) : [l];
555
- }
556
- return {
557
- exports: t,
558
- options: n
559
- };
560
- }
561
- var R = function() {
562
- var e = this, r = e._self._c;
563
- return e._self._setupProxy, r(e.formComponent, { tag: "component", attrs: { link: e.link, "has-new-design": e.hasNewDesign, "user-information": e.userInformation, "insurance-state": e.insuranceState, "form-location": e.formLocation, classes: e.classes, title: e.title, showTitle: e.showTitle, "form-orientation": e.formOrientation, "additional-options": e.additionalOptions, description: e.description, "button-text": e.buttonText }, on: { "submit-form": e.submitFormData, "emit-event-hub": e.emitEventHub, "redirect-page": e.redirectPage } });
564
- }, Le = [];
565
- R._withStripped = !0;
566
- var U = /* @__PURE__ */ He(
567
- Be,
568
- R,
569
- Le,
570
- !1,
571
- null,
572
- null,
573
- null,
574
- null
575
- );
576
- U.options.__file = "/Users/vergelijkdirect/Documents/projects/comparison-forms/src/core/Embedded.vue";
577
- const Ee = U.exports, mt = {
578
- install(t, e) {
579
- if (t.component("embedded-comparison-forms", Ee), e && e.env) {
580
- P.configure(e.env);
581
- return;
582
- }
583
- e && e.itc && t.provide("ITC", e.itc), console.warn("No environment were passed into comparison forms");
584
- }
585
- };
586
- export {
587
- p as $,
588
- ee as A,
589
- Ke as B,
590
- P as C,
591
- mt as D,
592
- T as F,
593
- ot as a,
594
- tt as b,
595
- Ze as c,
596
- D as d,
597
- Z as e,
598
- ie as f,
599
- nt as g,
600
- re as h,
601
- Qe as i,
602
- j,
603
- at as k,
604
- it as l,
605
- Xe as m,
606
- He as n,
607
- Ge as o,
608
- ct as p,
609
- st as q,
610
- et as r,
611
- O as s,
612
- xe as t,
613
- Je as u,
614
- We as v,
615
- lt as w,
616
- $ as x,
617
- rt as y,
618
- ut as z
619
- };