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

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/AddressHandler-jwYRDHTI.js +288 -0
  2. package/dist-rollup/BikeForm-30I53uCm.js +126 -0
  3. package/dist-rollup/BikeFormHorizontal-u1PW-9KV.js +126 -0
  4. package/dist-rollup/BirthdateInput-1tsGzxTx.js +84 -0
  5. package/dist-rollup/BusinessCarForm-oeBpet3X.js +119 -0
  6. package/dist-rollup/BusinessCarFormHorizontal-lBxuzRso.js +119 -0
  7. package/dist-rollup/CarForm-xTslX4mq.js +102 -0
  8. package/dist-rollup/CarFormHorizontal-z_-Ew9Ji.js +101 -0
  9. package/dist-rollup/CaravanForm-BWUCqXZ8.js +137 -0
  10. package/dist-rollup/CaravanFormHorizontal-qVPTYW4D.js +137 -0
  11. package/dist-rollup/CaravanFormOld-JaY01RDW.js +130 -0
  12. package/dist-rollup/DefaultForm-4umbLheg.js +60 -0
  13. package/dist-rollup/DefaultInput-zxU1ufPA.js +435 -0
  14. package/dist-rollup/DefaultPlainRadioGroup-i8P1ACl4.js +145 -0
  15. package/dist-rollup/DefaultSelect-t64f_R7v.js +93 -0
  16. package/dist-rollup/ErrorHandler-9Zxi6g3R.js +45 -0
  17. package/dist-rollup/FamilyCompositionInput-dWbnEFac.js +51 -0
  18. package/dist-rollup/HouseForm-ga4I0nPa.js +105 -0
  19. package/dist-rollup/HouseFormHorizontal-zcNNDuDQ.js +104 -0
  20. package/dist-rollup/LegalAssistanceForm-M2yX72hT.js +109 -0
  21. package/dist-rollup/LegalAssistanceFormHorizontal-NztH_5Yq.js +108 -0
  22. package/dist-rollup/LiabilityForm-D09YaRGm.js +102 -0
  23. package/dist-rollup/LiabilityFormHorizontal-nV1JerpT.js +102 -0
  24. package/dist-rollup/LicensePlate-BMeYEcIe.js +505 -0
  25. package/dist-rollup/Loader-_esX79Uz.js +1105 -0
  26. package/dist-rollup/ManualNewValueModal-S0C68NGl.js +2586 -0
  27. package/dist-rollup/MopedForm-ZL3526H3.js +112 -0
  28. package/dist-rollup/MopedFormHorizontal-6btf9cMz.js +112 -0
  29. package/dist-rollup/MotorForm-M6FHM1pV.js +111 -0
  30. package/dist-rollup/MotorFormHorizontal-NcCjW3P5.js +105 -0
  31. package/dist-rollup/PackageForm-HcPVbqOI.js +305 -0
  32. package/dist-rollup/PetForm-OvLvibk1.js +115 -0
  33. package/dist-rollup/PetFormHorizontal-u7P_iNbx.js +124 -0
  34. package/dist-rollup/PetFormOld-9yiD9akJ.js +126 -0
  35. package/dist-rollup/PhoneInput-l6YwvwSj.js +131 -0
  36. package/dist-rollup/QuestionnaireForm-mDU7NBoo.js +64 -0
  37. package/dist-rollup/QuotationForm-j1i5zScM.js +183 -0
  38. package/dist-rollup/RiskScannerForm-JGojbshZ.js +152 -0
  39. package/dist-rollup/SearchableSelect-1GCKHHKe.js +232 -0
  40. package/dist-rollup/Session.util-aedjr12J.js +42 -0
  41. package/dist-rollup/SimpleCard-_Mg9wAqJ.js +50 -0
  42. package/dist-rollup/TravelForm-goy4CZNN.js +117 -0
  43. package/dist-rollup/TravelFormHorizontal-q396jXWh.js +117 -0
  44. package/dist-rollup/TravelFormOld-83YKTgP8.js +123 -0
  45. package/dist-rollup/ZipcodeInput-z5W6JSl0.js +61 -0
  46. package/dist-rollup/_commonjsHelpers-4t9S7M5p.js +30 -0
  47. package/dist-rollup/array.util-agNtEyks.js +16 -0
  48. package/dist-rollup/bikeBrands.model-FYepHp3k.js +338 -0
  49. package/dist-rollup/businessCar-Mt6F5U-j.js +188 -0
  50. package/dist-rollup/car-oIzIKvsB.js +85 -0
  51. package/dist-rollup/common-J_DOueuE.js +1577 -0
  52. package/dist-rollup/comparison-forms.js +6 -30271
  53. package/dist-rollup/comparison-forms.umd.cjs +15 -29
  54. package/dist-rollup/createLoanComparisonForm-T4s_32PC.js +96 -0
  55. package/dist-rollup/familyComposition.model-1F80igwZ.js +21 -0
  56. package/dist-rollup/familySize.model-9dESnIuL.js +98 -0
  57. package/dist-rollup/form-radio-group-J-EQJhh9.js +1238 -0
  58. package/dist-rollup/house-iRMRIU6o.js +73 -0
  59. package/dist-rollup/index-WjnHra7k.js +619 -0
  60. package/dist-rollup/liability-W6z2ze1t.js +73 -0
  61. package/dist-rollup/loanPurpose-nICjCm1d.js +273 -0
  62. package/dist-rollup/moped-T6_xyOsb.js +84 -0
  63. package/dist-rollup/motor-fCU2n3O5.js +83 -0
  64. package/dist-rollup/paymentTerms.model-J3WNhgPU.js +145 -0
  65. package/dist-rollup/updateLoanComparisonForm-iyTnJD5A.js +92 -0
  66. package/dist-rollup/useSkipUpdateComparison-WseHt-cH.js +437 -0
  67. package/dist-rollup/vue-popper.min-O3ciEEKg.js +1159 -0
  68. package/package.json +7 -4
@@ -0,0 +1,305 @@
1
+ var p = (r, e, t) => new Promise((a, i) => {
2
+ var n = (s) => {
3
+ try {
4
+ o(t.next(s));
5
+ } catch (u) {
6
+ i(u);
7
+ }
8
+ }, c = (s) => {
9
+ try {
10
+ o(t.throw(s));
11
+ } catch (u) {
12
+ i(u);
13
+ }
14
+ }, o = (s) => s.done ? a(s.value) : Promise.resolve(s.value).then(n, c);
15
+ o((t = t.apply(r, e)).next());
16
+ });
17
+ import { ref as D, onMounted as w, defineComponent as f, computed as $ } from "vue";
18
+ import { u as m, p as _, v as j, q as d, $ as N, e as A, n as v, h as P, i as R } from "./index-WjnHra7k.js";
19
+ import { r as E } from "./array.util-agNtEyks.js";
20
+ import { u as V } from "./common-J_DOueuE.js";
21
+ import { S as I } from "./SimpleCard-_Mg9wAqJ.js";
22
+ import { E as z } from "./ErrorHandler-9Zxi6g3R.js";
23
+ import { D as F } from "./DefaultInput-zxU1ufPA.js";
24
+ import { E as L, P as M } from "./PhoneInput-l6YwvwSj.js";
25
+ import "@vergelijkdirect/insurance-transmission-client";
26
+ import "vee-validate";
27
+ import "moment";
28
+ import "./Session.util-aedjr12J.js";
29
+ const H = [
30
+ {
31
+ title: "Aansprakelijkheidsverzekering",
32
+ value: "liability"
33
+ },
34
+ {
35
+ title: "Autoverzekering",
36
+ value: "car"
37
+ },
38
+ {
39
+ title: "Inboedelverzekering",
40
+ value: "household"
41
+ },
42
+ {
43
+ title: "Motorverzekering",
44
+ value: "motor"
45
+ },
46
+ {
47
+ title: "Opstalverzekering",
48
+ value: "home"
49
+ },
50
+ {
51
+ title: "Rechtsbijstandverzekering",
52
+ value: "legal-assistance"
53
+ },
54
+ {
55
+ title: "Reisverzekering",
56
+ value: "travel"
57
+ }
58
+ ], K = () => {
59
+ const r = {
60
+ name: "phoneNumber",
61
+ data: m.phoneNumber
62
+ }, e = {
63
+ name: "insurances",
64
+ data: _.selectedComparisons
65
+ };
66
+ return [r, e];
67
+ }, B = (r, e) => {
68
+ const {
69
+ submitFormAndCreateComparison: t,
70
+ removeSessionState: a,
71
+ openQuotationModal: i
72
+ } = V(e), n = D(!1), c = "https://mijn.vergelijkdirect.com/docs/VOORWAARDEN-MV.pdf", o = "https://vergelijkdirect.com/", s = () => `${r.link}#/<<COMPARISONID>>`, u = () => p(void 0, null, function* () {
73
+ return yield j([
74
+ "comparisons",
75
+ "firstName",
76
+ "phonenumber",
77
+ "formEmail",
78
+ "agreement"
79
+ ]);
80
+ }), x = (l) => {
81
+ console.error(l), d.refId = "192", d.notes.push({
82
+ text: `Voornaam: ${m.firstName} | Mobiele telefoonnummer: ${m.phoneNumber} | E-mailadres: ${m.email}`
83
+ }), d.notes = E(d.notes), i();
84
+ }, q = () => p(void 0, null, function* () {
85
+ try {
86
+ if (yield u()) {
87
+ const l = K();
88
+ yield t("package", l, s());
89
+ }
90
+ } catch (l) {
91
+ x(l);
92
+ }
93
+ });
94
+ return w(() => {
95
+ a("package-storage", "package-path");
96
+ }), {
97
+ agreement: n,
98
+ conditionsLink: c,
99
+ siteLink: o,
100
+ validateBeforeSubmit: q
101
+ };
102
+ }, G = f({
103
+ name: "DefaultCheckbox",
104
+ inheritAttrs: !1,
105
+ props: {
106
+ value: {},
107
+ modelValue: {},
108
+ validation: {
109
+ required: !1,
110
+ default: "required"
111
+ },
112
+ name: {
113
+ type: String,
114
+ required: !0
115
+ },
116
+ label: {
117
+ type: String,
118
+ default: ""
119
+ }
120
+ },
121
+ setup(r, { emit: e }) {
122
+ const t = $({
123
+ get() {
124
+ return r.value;
125
+ },
126
+ set(a) {
127
+ r.validation && N.validate(r.name, String(!r.value)), e("input", a);
128
+ }
129
+ });
130
+ return {
131
+ errors: A,
132
+ model: t
133
+ };
134
+ }
135
+ });
136
+ var g = function() {
137
+ var e = this, t = e._self._c;
138
+ return e._self._setupProxy, t("label", { staticClass: "vd-form-checkbox", class: { disabled: e.$attrs.disabled } }, [t("input", e._b({ directives: [{ name: "model", rawName: "v-model", value: e.model, expression: "model" }, { name: "validate", rawName: "v-validate", value: e.validation, expression: "validation" }], attrs: { name: e.name, type: "checkbox" }, domProps: { value: e.modelValue, checked: Array.isArray(e.model) ? e._i(e.model, e.modelValue) > -1 : e.model }, on: { change: function(a) {
139
+ var i = e.model, n = a.target, c = !!n.checked;
140
+ if (Array.isArray(i)) {
141
+ var o = e.modelValue, s = e._i(i, o);
142
+ n.checked ? s < 0 && (e.model = i.concat([o])) : s > -1 && (e.model = i.slice(0, s).concat(i.slice(s + 1)));
143
+ } else
144
+ e.model = c;
145
+ } } }, "input", e.$attrs, !1)), t("div", { staticClass: "indicator", class: { error: e.errors.has(e.name) } }), e.label ? t("span", { staticClass: "label", class: { "text-red": e.errors.has(e.name) } }, [e._v(" " + e._s(e.label) + " ")]) : t("span", { staticClass: "label" }, [e._t("title")], 2)]);
146
+ }, O = [];
147
+ g._withStripped = !0;
148
+ var k = /* @__PURE__ */ v(
149
+ G,
150
+ g,
151
+ O,
152
+ !1,
153
+ null,
154
+ null,
155
+ null,
156
+ null
157
+ );
158
+ k.options.__file = "/Users/vergelijkdirect/Documents/projects/comparison-forms/src/components/common/inputs/DefaultCheckbox.vue";
159
+ const h = k.exports, U = f({
160
+ name: "DefaultCheckboxGroup",
161
+ components: {
162
+ DefaultCheckbox: h
163
+ },
164
+ props: {
165
+ options: {
166
+ type: Array,
167
+ required: !0
168
+ },
169
+ validation: {
170
+ required: !1,
171
+ default: "required"
172
+ },
173
+ valueKey: {
174
+ type: String,
175
+ default: "value"
176
+ },
177
+ titleKey: {
178
+ type: String,
179
+ default: "title"
180
+ },
181
+ label: {
182
+ type: String,
183
+ default: ""
184
+ },
185
+ name: {
186
+ type: String,
187
+ required: !0
188
+ },
189
+ isRequired: {
190
+ type: Boolean,
191
+ default: !1
192
+ }
193
+ },
194
+ setup(r, { emit: e }) {
195
+ function t(a) {
196
+ e("input", a);
197
+ }
198
+ return {
199
+ onChange: t
200
+ };
201
+ }
202
+ });
203
+ var b = function() {
204
+ var e = this, t = e._self._c;
205
+ return e._self._setupProxy, t("div", { staticClass: "vd-checkbox-group" }, [e.label ? t("label", [e._v(e._s(e.label) + " "), e.isRequired ? t("span", { staticClass: "text-danger ml-1 mt-2" }, [e._v("*")]) : e._e()]) : e._e(), t("div", { staticClass: "inputs" }, e._l(e.options, function(a) {
206
+ return t("default-checkbox", e._b({ key: a.id || a[e.valueKey], attrs: { modelValue: a[e.valueKey], validation: e.validation, id: a.id || a[e.valueKey], label: a[e.titleKey], name: e.name, required: e.isRequired }, on: { input: e.onChange } }, "default-checkbox", e.$attrs, !1));
207
+ }), 1), e._t("error-messages")], 2);
208
+ }, W = [];
209
+ b._withStripped = !0;
210
+ var C = /* @__PURE__ */ v(
211
+ U,
212
+ b,
213
+ W,
214
+ !1,
215
+ null,
216
+ null,
217
+ null,
218
+ null
219
+ );
220
+ C.options.__file = "/Users/vergelijkdirect/Documents/projects/comparison-forms/src/components/common/inputs/DefaultCheckboxGroup.vue";
221
+ const Q = C.exports, T = f({
222
+ name: "PackageForm",
223
+ components: {
224
+ DefaultCheckbox: h,
225
+ DefaultCheckboxGroup: Q,
226
+ DefaultInput: F,
227
+ ErrorHandler: z,
228
+ SimpleCard: I,
229
+ EmailInput: L,
230
+ PhoneInput: M
231
+ },
232
+ props: {
233
+ title: {
234
+ required: !1,
235
+ type: String,
236
+ default: "Start nu tijdelijk GRATIS de verzekeringscheck (t.w.v. €79,-)"
237
+ },
238
+ description: {
239
+ required: !1,
240
+ type: String,
241
+ default: "Selecteer de verzekeringen die je wilt combineren"
242
+ },
243
+ link: {
244
+ type: String,
245
+ required: !0
246
+ },
247
+ insuranceState: {
248
+ required: !1
249
+ },
250
+ classes: {
251
+ type: String
252
+ }
253
+ },
254
+ setup(r, { emit: e }) {
255
+ const {
256
+ agreement: t,
257
+ conditionsLink: a,
258
+ siteLink: i,
259
+ validateBeforeSubmit: n
260
+ } = B(r, e);
261
+ return {
262
+ hasNewDesign: P,
263
+ userState: m,
264
+ packageState: _,
265
+ ComparisonsPackages: H,
266
+ isRequestIsHandling: R,
267
+ agreement: t,
268
+ conditionsLink: a,
269
+ siteLink: i,
270
+ validateBeforeSubmit: n
271
+ };
272
+ }
273
+ });
274
+ var S = function() {
275
+ var e = this, t = e._self._c;
276
+ return e._self._setupProxy, t("simple-card", { staticClass: "package-form vd-form-card vd-new-form", class: { [e.classes]: !!e.classes }, attrs: { "has-new-style": !0, "no-title": !1 } }, [t("div", { staticClass: "d-flex flex-column" }, [t("div", { staticClass: "package-form__title" }, [t("h3", [e._v(e._s(e.title))]), t("i", { staticClass: "ml-2 fas fa-arrow-right" })]), t("div", { staticClass: "d-flex flex-column justify-content-between flex-grow-1" }, [t("div", { staticClass: "comparisons-container" }, [t("div", { staticClass: "comparisons-container__options" }, [t("h6", [e._v(e._s(e.description))]), t("default-checkbox-group", { staticClass: "checkboxes", attrs: { validation: "required", options: e.ComparisonsPackages, name: "comparisons" }, scopedSlots: e._u([{ key: "error-messages", fn: function() {
277
+ return [t("ErrorHandler", { attrs: { name: "comparisons", "errors-data": [{ rule: "required", text: "Dit veld is verplicht" }] } })];
278
+ }, proxy: !0 }]), model: { value: e.packageState.selectedComparisons, callback: function(a) {
279
+ e.$set(e.packageState, "selectedComparisons", a);
280
+ }, expression: "packageState.selectedComparisons" } })], 1)])])]), t("div", { staticClass: "package-form__form" }, [t("div", { staticClass: "vd-form-group" }, [t("default-input", { attrs: { id: "firstName", name: "firstName", label: "Voornaam", placeholder: "bv. Herman", type: "text", "is-required": "" }, scopedSlots: e._u([{ key: "error-messages", fn: function() {
281
+ return [t("ErrorHandler", { attrs: { name: "firstName", "errors-data": [{ rule: "required", text: "Dit veld is verplicht" }] } })];
282
+ }, proxy: !0 }]), model: { value: e.userState.firstName, callback: function(a) {
283
+ e.$set(e.userState, "firstName", a);
284
+ }, expression: "userState.firstName" } })], 1), t("div", { staticClass: "vd-form-group" }, [t("phone-input", { attrs: { id: "phonenumber", name: "phonenumber", "is-required": !0 } })], 1), t("div", { staticClass: "vd-form-group" }, [t("email-input", { attrs: { id: "formEmail", name: "formEmail", "is-required": !0 }, model: { value: e.userState.email, callback: function(a) {
285
+ e.$set(e.userState, "email", a);
286
+ }, expression: "userState.email" } })], 1), t("div", { staticClass: "vd-form-group" }, [t("default-checkbox", { staticClass: "agreement", attrs: { validation: "required", value: e.agreement, name: "agreement" }, on: { input: (a) => e.agreement = a }, scopedSlots: e._u([{ key: "title", fn: function() {
287
+ return [e._v(" Ik ga akkoord met de "), t("a", { attrs: { href: e.conditionsLink, target: "_blank" } }, [e._v("voorwaarden")]), e._v(" en "), t("a", { attrs: { href: e.siteLink, target: "_blank" } }, [e._v("Vergelijkdirect.com")]), e._v(" mag mij telefonisch, via WhatsApp en per e-mail benaderen. ")];
288
+ }, proxy: !0 }]) })], 1), t("div", { staticClass: "vd-form-group mb-0" }, [t("div", { staticClass: "submit-btn vd-btn vd-btn-green vd-btn-w-100", attrs: { disabled: e.isRequestIsHandling }, on: { click: e.validateBeforeSubmit } }, [e._v(" Ga verder "), t("i", { staticClass: "icon fas fa-chevron-right ml-2" })])])])]);
289
+ }, J = [];
290
+ S._withStripped = !0;
291
+ var y = /* @__PURE__ */ v(
292
+ T,
293
+ S,
294
+ J,
295
+ !1,
296
+ null,
297
+ null,
298
+ null,
299
+ null
300
+ );
301
+ y.options.__file = "/Users/vergelijkdirect/Documents/projects/comparison-forms/src/insurances/package/components/forms/PackageForm.vue";
302
+ const ue = y.exports;
303
+ export {
304
+ ue as default
305
+ };
@@ -0,0 +1,115 @@
1
+ import { defineComponent as c } from "vue";
2
+ import { F as m, r as u, e as f, h as v, s as _, i as g, n as S } from "./index-WjnHra7k.js";
3
+ import { S as b, u as h, p as k, a as x } from "./SearchableSelect-1GCKHHKe.js";
4
+ import { S as C } from "./SimpleCard-_Mg9wAqJ.js";
5
+ import { D as y } from "./DefaultSelect-t64f_R7v.js";
6
+ import { Z as w } from "./ZipcodeInput-z5W6JSl0.js";
7
+ import { E as F } from "./ErrorHandler-9Zxi6g3R.js";
8
+ import { B } from "./form-radio-group-J-EQJhh9.js";
9
+ import "@vergelijkdirect/insurance-transmission-client";
10
+ import "vee-validate";
11
+ import "moment";
12
+ import "./common-J_DOueuE.js";
13
+ import "./Session.util-aedjr12J.js";
14
+ import "./array.util-agNtEyks.js";
15
+ import "./DefaultInput-zxU1ufPA.js";
16
+ const I = c({
17
+ name: "PetForm",
18
+ components: {
19
+ SimpleCard: C,
20
+ DefaultSelect: y,
21
+ ZipcodeInput: w,
22
+ ErrorHandler: F,
23
+ SearchableSelect: b,
24
+ BFormRadioGroup: B
25
+ },
26
+ props: {
27
+ link: {
28
+ type: String,
29
+ required: !0
30
+ },
31
+ title: {
32
+ type: String,
33
+ default: "Dierenverzekering vergelijken"
34
+ },
35
+ showTitle: {
36
+ type: Boolean,
37
+ default: !0
38
+ },
39
+ formLocation: {
40
+ type: String,
41
+ required: !1,
42
+ default: m.isBeforeFlow
43
+ },
44
+ userInformation: {
45
+ required: !1
46
+ },
47
+ insuranceState: {
48
+ required: !1
49
+ },
50
+ classes: {
51
+ type: String
52
+ }
53
+ },
54
+ setup(r, { emit: e }) {
55
+ const {
56
+ genderError: t,
57
+ ageOptions: a,
58
+ raceList: i,
59
+ isFormReady: n,
60
+ validateBeforeSubmit: l,
61
+ setBreedId: d,
62
+ getRaceLists: p
63
+ } = h(r, e);
64
+ return {
65
+ petState: u,
66
+ petKinds: k,
67
+ petGenders: x,
68
+ errors: f,
69
+ hasNewDesign: v,
70
+ isITCInitialized: _,
71
+ isRequestIsHandling: g,
72
+ genderError: t,
73
+ ageOptions: a,
74
+ raceList: i,
75
+ isFormReady: n,
76
+ setBreedId: d,
77
+ getRaceLists: p,
78
+ validateBeforeSubmit: l
79
+ };
80
+ }
81
+ });
82
+ var s = function() {
83
+ var e = this, t = e._self._c;
84
+ return e._self._setupProxy, t("simple-card", { staticClass: "vd-form-card vd-new-form", class: { [e.classes]: !!e.classes } }, [t("div", { staticClass: "vd-form-card__header" }, [e.showTitle ? t("p", { staticClass: "vd-form-card__title" }, [e._v(" " + e._s(e.title) + " ")]) : e._e()]), t("div", { staticClass: "vd-form-card__content" }, [t("label", { staticClass: "vd-form-group__label", attrs: { for: "kind" } }, [e._v(" Soort huisdier ")]), t("default-select", { attrs: { id: "kind", options: e.petKinds, "data-vv-name": "kind", "no-default-placeholder": !0, "hide-label": !0, name: "kind" }, on: { input: function(a) {
85
+ return e.setBreedId(null);
86
+ } }, model: { value: e.petState.kind, callback: function(a) {
87
+ e.$set(e.petState, "kind", a);
88
+ }, expression: "petState.kind" } }), t("div", { staticClass: "vd-form-group vd-radio-group" }, [t("label", { staticClass: "vd-form-group__label", attrs: { for: "sex" } }, [e._v(" Geslacht ")]), t("b-form-radio-group", { staticClass: "vd-radio-buttons", attrs: { options: e.petGenders, "data-vv-name": "sex", name: "sex" }, model: { value: e.petState.sex, callback: function(a) {
89
+ e.$set(e.petState, "sex", a);
90
+ }, expression: "petState.sex" } }), t("ErrorHandler", { attrs: { "errors-data": [{ rule: e.genderError, text: "Huurwoning is verplicht" }] } })], 1), t("label", { staticClass: "vd-form-group__label", attrs: { for: "age" } }, [e._v(" Leeftijd ")]), t("default-select", { attrs: { id: "age", options: e.ageOptions, "data-vv-name": "age", "no-default-placeholder": !0, "hide-label": !0, name: "age" }, model: { value: e.petState.age, callback: function(a) {
91
+ e.$set(e.petState, "age", a);
92
+ }, expression: "petState.age" } }), t("zipcode-input", { attrs: { id: "postcode", name: "postcode", "is-required": "" }, model: { value: e.petState.postcode, callback: function(a) {
93
+ e.$set(e.petState, "postcode", a);
94
+ }, expression: "petState.postcode" } }), t("div", { staticClass: "vd-form-group" }, [t("label", { staticClass: "vd-form-group__label" }, [e._v(" Ras "), t("span", { staticClass: "text-danger mr-3 mt-2" }, [e._v("*")])]), e.isFormReady ? t("searchable-select", { key: e.petState.kind, attrs: { name: "breed-value", placeholder: "Typ of selecteer", label: "Ras", options: e.raceList }, on: { change: e.setBreedId }, model: { value: e.petState.breed, callback: function(a) {
95
+ e.$set(e.petState, "breed", a);
96
+ }, expression: "petState.breed" } }) : e._e(), t("div", [t("ErrorHandler", { attrs: { name: "breed-value", "errors-data": [{ rule: "required", text: "Selecteer een ras" }] } })], 1), t("input", { directives: [{ name: "model", rawName: "v-model", value: e.petState.breed, expression: "petState.breed" }], attrs: { type: "hidden", name: "breed" }, domProps: { value: e.petState.breed }, on: { input: function(a) {
97
+ a.target.composing || e.$set(e.petState, "breed", a.target.value);
98
+ } } }), t("span", { staticClass: "vd-form-additional-info-text" }, [t("i", { staticClass: "fas fa-info-circle vd-tip-icon vd-tip-icon_additional-text", attrs: { slot: "reference", id: "popover-target-breed" }, slot: "reference" }), t("span", [e._v("Geen rashond of kruising? Selecteer dan het ras waar deze het meeste op lijkt.")])])], 1)], 1), t("div", { staticClass: "vd-form-card__footer" }, [t("button", { staticClass: "vd-btn vd-btn-green vd-btn-w-100", attrs: { disabled: e.isRequestIsHandling }, on: { click: e.validateBeforeSubmit } }, [e._v(" Vergelijken ")])])]);
99
+ }, R = [];
100
+ s._withStripped = !0;
101
+ var o = /* @__PURE__ */ S(
102
+ I,
103
+ s,
104
+ R,
105
+ !1,
106
+ null,
107
+ null,
108
+ null,
109
+ null
110
+ );
111
+ o.options.__file = "/Users/vergelijkdirect/Documents/projects/comparison-forms/src/insurances/pet/components/forms/PetForm.vue";
112
+ const U = o.exports;
113
+ export {
114
+ U as default
115
+ };
@@ -0,0 +1,124 @@
1
+ import { defineComponent as m } from "vue";
2
+ import { F as u, r as f, e as v, h as g, i as b, n as _ } from "./index-WjnHra7k.js";
3
+ import { S, u as h, p as k, a as C } from "./SearchableSelect-1GCKHHKe.js";
4
+ import { S as x } from "./SimpleCard-_Mg9wAqJ.js";
5
+ import { D as y } from "./DefaultSelect-t64f_R7v.js";
6
+ import { Z as w } from "./ZipcodeInput-z5W6JSl0.js";
7
+ import { E as z } from "./ErrorHandler-9Zxi6g3R.js";
8
+ import { P as j } from "./vue-popper.min-O3ciEEKg.js";
9
+ import { B as F } from "./form-radio-group-J-EQJhh9.js";
10
+ import "@vergelijkdirect/insurance-transmission-client";
11
+ import "vee-validate";
12
+ import "moment";
13
+ import "./common-J_DOueuE.js";
14
+ import "./Session.util-aedjr12J.js";
15
+ import "./array.util-agNtEyks.js";
16
+ import "./DefaultInput-zxU1ufPA.js";
17
+ import "./_commonjsHelpers-4t9S7M5p.js";
18
+ const R = m({
19
+ name: "PetFormHorizontal",
20
+ components: {
21
+ SimpleCard: x,
22
+ DefaultSelect: y,
23
+ ZipcodeInput: w,
24
+ SearchableSelect: S,
25
+ ErrorHandler: z,
26
+ BFormRadioGroup: F,
27
+ Popper: j
28
+ },
29
+ props: {
30
+ link: {
31
+ type: String,
32
+ required: !0
33
+ },
34
+ title: {
35
+ type: String,
36
+ default: "Dierenverzekering vergelijken"
37
+ },
38
+ showTitle: {
39
+ type: Boolean,
40
+ default: !0
41
+ },
42
+ formLocation: {
43
+ type: String,
44
+ required: !1,
45
+ default: u.isBeforeFlow
46
+ },
47
+ userInformation: {
48
+ required: !1
49
+ },
50
+ insuranceState: {
51
+ required: !1
52
+ },
53
+ classes: {
54
+ type: String
55
+ }
56
+ },
57
+ setup(s, { emit: e }) {
58
+ const {
59
+ genderError: t,
60
+ ageOptions: r,
61
+ raceList: i,
62
+ componentId: n,
63
+ isFormReady: l,
64
+ setBreedId: d,
65
+ getRaceLists: p,
66
+ validateBeforeSubmit: c
67
+ } = h(s, e);
68
+ return {
69
+ petState: f,
70
+ petKinds: k,
71
+ petGenders: C,
72
+ errors: v,
73
+ hasNewDesign: g,
74
+ isRequestIsHandling: b,
75
+ genderError: t,
76
+ ageOptions: r,
77
+ raceList: i,
78
+ componentId: n,
79
+ isFormReady: l,
80
+ validateBeforeSubmit: c,
81
+ setBreedId: d,
82
+ getRaceLists: p
83
+ };
84
+ }
85
+ });
86
+ var a = function() {
87
+ var e = this, t = e._self._c;
88
+ return e._self._setupProxy, t("simple-card", { staticClass: "vd-form-card vd-form-card--horizontal", class: { "vd-new-form": e.hasNewDesign, [e.classes]: !!e.classes }, attrs: { "has-new-style": !0 } }, [t("form", { ref: "petForm", attrs: { action: e.link, method: "GET" }, on: { submit: function(r) {
89
+ return r.preventDefault(), e.validateBeforeSubmit.apply(null, arguments);
90
+ } } }, [e.showTitle ? t("p", { staticClass: "vd-form-card__title" }, [e._v(" " + e._s(e.title) + " ")]) : e._e(), t("div", { staticClass: "vd-form-card__content" }, [t("div", { staticClass: "vd-form-group" }, [t("label", { staticClass: "vd-form-group__label", attrs: { for: "kind" } }, [e._v(" Soort huisdier ")]), t("default-select", { staticClass: "mx-0 mb-0", attrs: { id: "kind", "hide-label": !0, options: e.petKinds, "no-default-placeholder": !0, name: "kind" }, on: { input: function(r) {
91
+ return e.setBreedId(null);
92
+ } }, model: { value: e.petState.kind, callback: function(r) {
93
+ e.$set(e.petState, "kind", r);
94
+ }, expression: "petState.kind" } })], 1), t("div", { staticClass: "vd-form-group vd-radio-group" }, [t("label", { staticClass: "vd-form-group__label", attrs: { for: "kind" } }, [e._v(" Geslacht ")]), t("div", { staticClass: "align-self-stretch" }, [t("b-form-radio-group", { staticClass: "vd-radio-buttons mt-2", attrs: { options: e.petGenders, name: "sex" }, model: { value: e.petState.sex, callback: function(r) {
95
+ e.$set(e.petState, "sex", r);
96
+ }, expression: "petState.sex" } })], 1)]), t("div", { staticClass: "vd-form-group" }, [t("label", { staticClass: "vd-form-group__label", attrs: { for: "age" } }, [e._v(" Leeftijd ")]), t("default-select", { staticClass: "mx-0 mb-0", attrs: { id: "age", "hide-label": !0, options: e.ageOptions, "no-default-placeholder": !0, name: "age" }, model: { value: e.petState.age, callback: function(r) {
97
+ e.$set(e.petState, "age", r);
98
+ }, expression: "petState.age" } })], 1), t("div", { staticClass: "vd-form-group" }, [t("zipcode-input", { staticClass: "m-0", attrs: { id: "postcode", name: "postcode", "is-required": "" }, model: { value: e.petState.postcode, callback: function(r) {
99
+ e.$set(e.petState, "postcode", r);
100
+ }, expression: "petState.postcode" } })], 1), t("div", { staticClass: "vd-form-group" }, [t("label", { staticClass: "vd-form-group__label" }, [e._v(" Ras "), t("span", { staticClass: "text-danger mr-3 mt-2" }, [e._v("*")])]), e.isFormReady ? t("searchable-select", { key: e.petState.kind, attrs: { name: "breed-value", placeholder: "Typ of selecteer", label: "Ras", options: e.raceList }, on: { change: e.setBreedId }, model: { value: e.petState.breed, callback: function(r) {
101
+ e.$set(e.petState, "breed", r);
102
+ }, expression: "petState.breed" } }) : e._e(), t("div", [t("ErrorHandler", { attrs: { name: "breed-value", "errors-data": [{ rule: "required", text: "Selecteer een ras" }] } })], 1), t("input", { directives: [{ name: "model", rawName: "v-model", value: e.petState.breed, expression: "petState.breed" }], attrs: { type: "hidden", name: "breed" }, domProps: { value: e.petState.breed }, on: { input: function(r) {
103
+ r.target.composing || e.$set(e.petState, "breed", r.target.value);
104
+ } } }), e.hasNewDesign ? t("span", { staticClass: "text-primary text-deco-line d-flex mt-1", staticStyle: { "font-size": "12px" } }, [t("i", { staticClass: "fas fa-info-circle mr-1", class: e.hasNewDesign ? "vd-tip-icon vd-tip-icon_additional-text" : "text-primary fz-big cursor-pointer", attrs: { slot: "reference", id: "popover-target-breed" }, slot: "reference" }), t("span", [e._v("Geen rashond of kruising? Selecteer dan het ras waar deze het meeste op lijkt.")])]) : t("div", { staticClass: "d-flex justify-content-end" }, [t("div", { staticClass: "text-deco-line fz-small mt-2 cursor-pointer", attrs: { id: "race" } }, [t("popper", { attrs: { options: {
105
+ placement: "right",
106
+ modifiers: { offset: { offset: "0,10px" } }
107
+ }, trigger: "hover" } }, [t("div", { staticClass: "popover popper vd-popover" }, [t("div", { staticClass: "popover-header vd-popover-header" }, [e._v(" Ras onbekend? ")]), e._v(" Heb je geen " + e._s(e.petState.kind === "dog" ? "rashond" : "raskat") + " of heb je een kruising? Selecteer dan het ras waar " + e._s(e.petState.sex === "m" ? "hij" : "zij") + " het meest op lijkt! ")]), t("div", { attrs: { slot: "reference" }, slot: "reference" }, [e._v(" Ras onbekend? "), t("i", { staticClass: "fas fa-question-circle fz-big text-primary cursor-pointer", attrs: { id: "race" } })])])], 1)])], 1), t("div", { staticClass: "vd-form-group vd-form-group__button" }, [t("button", { class: e.hasNewDesign ? "vd-btn vd-btn-green vd-btn-w-100" : "btn-a btn-a--success btn-a--bold btn-block cursor-pointer", attrs: { disabled: e.isRequestIsHandling } }, [e._v(" Vergelijken ")])])])])]);
108
+ }, D = [];
109
+ a._withStripped = !0;
110
+ var o = /* @__PURE__ */ _(
111
+ R,
112
+ a,
113
+ D,
114
+ !1,
115
+ null,
116
+ null,
117
+ null,
118
+ null
119
+ );
120
+ o.options.__file = "/Users/vergelijkdirect/Documents/projects/comparison-forms/src/insurances/pet/components/forms/PetFormHorizontal.vue";
121
+ const J = o.exports;
122
+ export {
123
+ J as default
124
+ };
@@ -0,0 +1,126 @@
1
+ import { defineComponent as c } from "vue";
2
+ import { F as m, r as u, e as f, h as v, s as _, i as b, n as g } from "./index-WjnHra7k.js";
3
+ import { S, u as h, p as k, a as C } from "./SearchableSelect-1GCKHHKe.js";
4
+ import { S as x } from "./SimpleCard-_Mg9wAqJ.js";
5
+ import { D as y } from "./DefaultSelect-t64f_R7v.js";
6
+ import { Z as j } from "./ZipcodeInput-z5W6JSl0.js";
7
+ import { E as I } from "./ErrorHandler-9Zxi6g3R.js";
8
+ import { P as q } from "./vue-popper.min-O3ciEEKg.js";
9
+ import { B } from "./form-radio-group-J-EQJhh9.js";
10
+ import "@vergelijkdirect/insurance-transmission-client";
11
+ import "vee-validate";
12
+ import "moment";
13
+ import "./common-J_DOueuE.js";
14
+ import "./Session.util-aedjr12J.js";
15
+ import "./array.util-agNtEyks.js";
16
+ import "./DefaultInput-zxU1ufPA.js";
17
+ import "./_commonjsHelpers-4t9S7M5p.js";
18
+ const P = c({
19
+ name: "PetFormOld",
20
+ components: {
21
+ SimpleCard: x,
22
+ DefaultSelect: y,
23
+ ZipcodeInput: j,
24
+ ErrorHandler: I,
25
+ SearchableSelect: S,
26
+ BFormRadioGroup: B,
27
+ Popper: q
28
+ },
29
+ props: {
30
+ link: {
31
+ type: String,
32
+ required: !0
33
+ },
34
+ title: {
35
+ type: String,
36
+ default: "Dierenverzekering vergelijken"
37
+ },
38
+ showTitle: {
39
+ type: Boolean,
40
+ default: !0
41
+ },
42
+ formLocation: {
43
+ type: String,
44
+ required: !1,
45
+ default: m.isBeforeFlow
46
+ },
47
+ userInformation: {
48
+ required: !1
49
+ },
50
+ insuranceState: {
51
+ required: !1
52
+ },
53
+ classes: {
54
+ type: String
55
+ }
56
+ },
57
+ setup(s, { emit: e }) {
58
+ const {
59
+ genderError: t,
60
+ ageOptions: r,
61
+ raceList: i,
62
+ componentId: n,
63
+ validateBeforeSubmit: l,
64
+ setBreedId: d,
65
+ getRaceLists: p
66
+ } = h(s, e);
67
+ return {
68
+ petState: u,
69
+ petKinds: k,
70
+ petGenders: C,
71
+ errors: f,
72
+ hasNewDesign: v,
73
+ isITCInitialized: _,
74
+ isRequestIsHandling: b,
75
+ genderError: t,
76
+ ageOptions: r,
77
+ raceList: i,
78
+ componentId: n,
79
+ setBreedId: d,
80
+ getRaceLists: p,
81
+ validateBeforeSubmit: l
82
+ };
83
+ }
84
+ });
85
+ var a = function() {
86
+ var e = this, t = e._self._c;
87
+ return e._self._setupProxy, t("div", { staticClass: "vd-form-card", class: { [e.classes]: !!e.classes } }, [t("form", { ref: "pet-form", attrs: { action: e.link, method: "GET" }, on: { submit: function(r) {
88
+ return r.preventDefault(), e.validateBeforeSubmit.apply(null, arguments);
89
+ } } }, [t("p", { staticClass: "vd-form-card__title" }, [e._v(" " + e._s(e.title) + " ")]), t("div", { staticClass: "vd-form-card__content" }, [t("div", { staticClass: "vd-form-group" }, [t("label", { staticClass: "vd-form-group__label", attrs: { for: "kind" } }, [e._v(" Soort huisdier ")]), t("default-select", { attrs: { id: "kind", options: e.petKinds, "data-vv-name": "kind", "no-default-placeholder": !0, name: "kind" }, on: { input: function(r) {
90
+ return e.setBreedId(null);
91
+ } }, model: { value: e.petState.kind, callback: function(r) {
92
+ e.$set(e.petState, "kind", r);
93
+ }, expression: "petState.kind" } })], 1), t("div", { staticClass: "vd-form-group" }, [t("label", { staticClass: "vd-form-group__label", attrs: { for: "sex" } }, [e._v(" Geslacht ")]), t("b-form-radio-group", { attrs: { options: e.petGenders, "data-vv-name": "sex", name: "sex" }, model: { value: e.petState.sex, callback: function(r) {
94
+ e.$set(e.petState, "sex", r);
95
+ }, expression: "petState.sex" } }), e.genderError ? t("p", { staticClass: "vd-form-error" }, [e._v(" Geslacht is verplicht ")]) : e._e()], 1), t("div", { staticClass: "vd-form-group" }, [t("label", { staticClass: "vd-form-group__label", attrs: { for: "age" } }, [e._v(" Leeftijd ")]), t("default-select", { attrs: { id: "age", options: e.ageOptions, "data-vv-name": "age", "no-default-placeholder": !0, name: "age" }, model: { value: e.petState.age, callback: function(r) {
96
+ e.$set(e.petState, "age", r);
97
+ }, expression: "petState.age" } })], 1), t("div", { staticClass: "vd-form-group" }, [t("zipcode-input", { attrs: { id: "postcode", name: "postcode", "is-required": "" }, model: { value: e.petState.postcode, callback: function(r) {
98
+ e.$set(e.petState, "postcode", r);
99
+ }, expression: "petState.postcode" } })], 1), t("div", { staticClass: "vd-form-group" }, [e._m(0), t("searchable-select", { key: e.petState.kind, attrs: { name: "breed-value", placeholder: "Typ of selecteer", label: "Ras", options: e.raceList }, on: { change: e.setBreedId }, model: { value: e.petState.breed, callback: function(r) {
100
+ e.$set(e.petState, "breed", r);
101
+ }, expression: "petState.breed" } }), e.errors.has("breed-value:required") ? t("div", { staticClass: "vd-form-error" }, [e._v(" Selecteer een ras ")]) : e._e(), t("input", { directives: [{ name: "model", rawName: "v-model", value: e.petState.breed, expression: "petState.breed" }], attrs: { type: "hidden", name: "breed" }, domProps: { value: e.petState.breed }, on: { input: function(r) {
102
+ r.target.composing || e.$set(e.petState, "breed", r.target.value);
103
+ } } }), t("div", { staticClass: "d-flex justify-content-end" }, [t("div", { staticClass: "text-deco-line fz-small mt-2 cursor-pointer", attrs: { id: "race" } }, [t("popper", { attrs: { options: {
104
+ placement: "right",
105
+ modifiers: { offset: { offset: "0,10px" } }
106
+ }, trigger: "hover" } }, [t("div", { staticClass: "popover popper" }, [t("div", { staticClass: "popover-header" }, [e._v(" Ras onbekend? ")]), e._v(" Heb je geen " + e._s(e.petState.kind === "dog" ? "rashond" : "raskat") + " of heb je een kruising? Selecteer dan het ras waar " + e._s(e.petState.sex === "m" ? "hij" : "zij") + " het meest op lijkt! ")]), t("div", { attrs: { slot: "reference" }, slot: "reference" }, [e._v(" Ras onbekend? "), t("i", { staticClass: "fas fa-question-circle fz-big text-primary cursor-pointer", attrs: { id: "race" } })])])], 1)])], 1), t("button", { staticClass: "btn-a btn-a--success btn-a--form btn-bold btn-block btn-a--bold cursor-pointer", attrs: { disabled: e.isRequestIsHandling } }, [e._v(" Vergelijken ")])])])]);
107
+ }, R = [function() {
108
+ var s = this, e = s._self._c;
109
+ return s._self._setupProxy, e("label", { staticClass: "vd-form-group__label", attrs: { for: "search-select-input" } }, [s._v(" Ras "), e("span", { staticClass: "text-danger mr-3 mt-2" }, [s._v("*")])]);
110
+ }];
111
+ a._withStripped = !0;
112
+ var o = /* @__PURE__ */ g(
113
+ P,
114
+ a,
115
+ R,
116
+ !1,
117
+ null,
118
+ null,
119
+ null,
120
+ null
121
+ );
122
+ o.options.__file = "/Users/vergelijkdirect/Documents/projects/comparison-forms/src/insurances/pet/components/forms/PetFormOld.vue";
123
+ const J = o.exports;
124
+ export {
125
+ J as default
126
+ };