@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,232 @@
1
+ var f = (o, e, t) => new Promise((r, p) => {
2
+ var h = (c) => {
3
+ try {
4
+ l(t.next(c));
5
+ } catch (i) {
6
+ p(i);
7
+ }
8
+ }, u = (c) => {
9
+ try {
10
+ l(t.throw(c));
11
+ } catch (i) {
12
+ p(i);
13
+ }
14
+ }, l = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(h, u);
15
+ l((t = t.apply(o, e)).next());
16
+ });
17
+ import { ref as g, computed as y, onMounted as B, defineComponent as q, getCurrentInstance as _, onBeforeUnmount as A, nextTick as I } from "vue";
18
+ import { r as a, F as O, i as D, j as F, v as E, h as R, n as M } from "./index-WjnHra7k.js";
19
+ import { u as j } from "./common-J_DOueuE.js";
20
+ import { f as U } from "./array.util-agNtEyks.js";
21
+ import { D as H } from "./DefaultInput-zxU1ufPA.js";
22
+ const N = () => ({
23
+ sex: a.sex,
24
+ age: a.age,
25
+ postcode: a.postcode,
26
+ kind: a.kind,
27
+ breed: a.breed
28
+ }), Y = (o, e) => {
29
+ const {
30
+ submitFormAndUpdateFormData: t,
31
+ submitFormAndRedirect: r,
32
+ setInitialUserInfoInStore: p,
33
+ removeSessionState: h
34
+ } = j(e), u = g(!1), l = g(!1), c = y(() => {
35
+ const n = a.kind === "dog" ? 7 : 11, d = [];
36
+ for (let s = 0; s <= n; s++)
37
+ d.push({
38
+ title: `${s} jaar`,
39
+ value: s
40
+ });
41
+ return d;
42
+ }), i = y(() => a.raceLists[a.kind]), x = (n) => {
43
+ a.breed = n;
44
+ }, C = () => f(void 0, null, function* () {
45
+ try {
46
+ a.raceLists.dog = yield F.v1Service.getDog();
47
+ } catch (n) {
48
+ console.log(n);
49
+ }
50
+ }), k = () => f(void 0, null, function* () {
51
+ try {
52
+ a.raceLists.cat = yield F.v1Service.getCat();
53
+ } catch (n) {
54
+ console.log(n);
55
+ }
56
+ }), S = () => f(void 0, null, function* () {
57
+ try {
58
+ D.value = !0, yield Promise.all([C(), k()]);
59
+ } catch (n) {
60
+ console.log(n);
61
+ } finally {
62
+ D.value = !1;
63
+ }
64
+ }), L = () => {
65
+ var n, d, s, m, v;
66
+ a.sex = ((n = o.insuranceState) == null ? void 0 : n.sex) || a.sex, a.age = +((d = o.insuranceState) == null ? void 0 : d.age) || a.age, a.postcode = ((s = o.insuranceState) == null ? void 0 : s.postcode) || a.postcode, a.kind = ((m = o.insuranceState) == null ? void 0 : m.kind) || a.kind, a.breed = +((v = o.insuranceState) == null ? void 0 : v.breed) || a.breed;
67
+ }, w = () => f(void 0, null, function* () {
68
+ return l.value = !a.sex, (yield E([
69
+ "postcode",
70
+ "breed-value"
71
+ ])) && !l.value;
72
+ }), b = () => f(void 0, null, function* () {
73
+ if (yield w()) {
74
+ const n = N();
75
+ o.formLocation === O.isBeforeFlow ? r(o.link, n) : t({ petState: n });
76
+ }
77
+ });
78
+ return B(() => f(void 0, null, function* () {
79
+ u.value = !1, yield S(), o.formLocation === O.isOnResultPage && (p(o), L()), o.formLocation === O.isBeforeFlow && h("pet-storage", "pet-path"), u.value = !0;
80
+ })), {
81
+ genderError: l,
82
+ ageOptions: c,
83
+ raceList: i,
84
+ isFormReady: u,
85
+ validateBeforeSubmit: b,
86
+ setBreedId: x,
87
+ getRaceLists: S
88
+ };
89
+ }, Z = [
90
+ {
91
+ title: "Hond",
92
+ value: "dog"
93
+ },
94
+ {
95
+ title: "Kat",
96
+ value: "cat"
97
+ }
98
+ ], ee = [
99
+ {
100
+ text: "Man",
101
+ value: "m"
102
+ },
103
+ {
104
+ text: "Vrouw",
105
+ value: "f"
106
+ }
107
+ ], K = q({
108
+ name: "SearchableSelect",
109
+ components: {
110
+ DefaultInput: H
111
+ },
112
+ props: {
113
+ label: {
114
+ type: String,
115
+ required: !1,
116
+ default: ""
117
+ },
118
+ name: {
119
+ type: String,
120
+ required: !0
121
+ },
122
+ value: {
123
+ type: [Number, String, null]
124
+ },
125
+ options: {
126
+ type: Array,
127
+ required: !0
128
+ },
129
+ placeholder: {
130
+ type: String,
131
+ required: !1,
132
+ default: ""
133
+ }
134
+ },
135
+ emits: ["input", "set-breed"],
136
+ setup(o, { emit: e }) {
137
+ const t = g(!1);
138
+ function r() {
139
+ t.value = !0;
140
+ }
141
+ function p() {
142
+ t.value = !1;
143
+ }
144
+ const h = _();
145
+ let u = g(""), l = g(!1), c = g("bottom");
146
+ const i = y(() => _().proxy.$el.querySelector("#search-select-input")), x = y(() => o.options.filter((s) => s.name.toLowerCase().indexOf(u.value.toLowerCase()) !== -1)), C = y(() => `search-select-options--${c.value}`), k = () => {
147
+ var s;
148
+ o.value && (u.value = ((s = U(o.options, "id", o.value)) == null ? void 0 : s.name) || "");
149
+ }, S = () => {
150
+ c.value = "bottom", I(() => {
151
+ var s;
152
+ if (i) {
153
+ const m = window.innerHeight, v = (s = h.proxy.$el.querySelector("#search-select-options")) == null ? void 0 : s.getBoundingClientRect();
154
+ if (v) {
155
+ const V = m - (v.height + v.top);
156
+ c.value = Math.sign(V) === -1 ? "top" : "bottom";
157
+ }
158
+ }
159
+ });
160
+ }, L = () => {
161
+ u.value = "", e("input", null), I(() => {
162
+ i.value && (i.value.focus(), l.value = !0);
163
+ });
164
+ }, w = (s, m) => {
165
+ e("input", s), e("set-breed", s), u.value = m, i.value && i.value.focus(), n();
166
+ }, b = (s) => {
167
+ s.target.focus(), l.value = !0, c.value = "bottom", I(() => {
168
+ S();
169
+ });
170
+ }, n = () => {
171
+ t.value = !1, l.value = !1;
172
+ }, d = (s) => {
173
+ l.value && s.target.id !== "search-select-remove-icon" && (s.target.closest("#search-select-wrapper") || n());
174
+ };
175
+ return A(() => {
176
+ i.value && i.value.removeEventListener("focus", b), _().proxy.$root.$el.removeEventListener("click", d);
177
+ }), B(() => {
178
+ i.value && i.value.addEventListener("focus", b), _().proxy.$root.$el.addEventListener("click", d), k();
179
+ }), {
180
+ hasNewDesign: R,
181
+ optionDisableValidationBlur: t,
182
+ searchInput: u,
183
+ element: i,
184
+ direction: c,
185
+ isOptionListOpened: l,
186
+ filteredOptions: x,
187
+ optionsListStyle: C,
188
+ onSelectBlur: p,
189
+ onOptionMousedown: r,
190
+ setDirection: S,
191
+ removeValue: L,
192
+ setOption: w,
193
+ onFocusEvent: b,
194
+ onBlurEvent: n
195
+ };
196
+ }
197
+ });
198
+ var $ = function() {
199
+ var e = this, t = e._self._c;
200
+ return e._self._setupProxy, t("div", { staticClass: "position-relative", attrs: { id: "search-select-wrapper" } }, [t("div", { staticClass: "position-relative" }, [t("default-input", { staticClass: "mb-0 mx-0", attrs: { id: "search-select-input", type: "text", name: e.name, "hide-label": !0, "autocomplete-off": !0, placeholder: e.placeholder, "remove-check-mark": !0, "option-disable-validation-blur": e.optionDisableValidationBlur }, on: { input: e.setDirection, blur: e.onSelectBlur }, model: { value: e.searchInput, callback: function(r) {
201
+ e.searchInput = r;
202
+ }, expression: "searchInput" } }, [e.isOptionListOpened ? e._e() : t("template", { slot: "error-messages" }, [e._t("default")], 2)], 2), e.searchInput ? t("div", { staticClass: "position-absolute search-select-remove", attrs: { id: "search-select-remove" } }, [e.hasNewDesign ? t("button", { staticClass: "button-icon", attrs: { id: "search-select-remove-icon" }, on: { click: function(r) {
203
+ return r.stopPropagation(), e.removeValue.apply(null, arguments);
204
+ } } }, [t("i", { staticClass: "far fa-times" })]) : t("button", { staticClass: "button-icon text-danger", attrs: { id: "search-select-remove-icon" }, on: { click: function(r) {
205
+ return r.stopPropagation(), e.removeValue.apply(null, arguments);
206
+ } } }, [t("i", { staticClass: "far fa-times-circle" })])]) : e._e(), e.searchInput ? e._e() : t("label", { staticClass: "vd-form-group__select-icon cursor-pointer", on: { click: function(r) {
207
+ return e.element.focus();
208
+ } } })], 1), e.isOptionListOpened ? t("div", { staticClass: "search-select-options", class: e.optionsListStyle, attrs: { id: "search-select-options" } }, e._l(e.filteredOptions, function(r) {
209
+ return t("div", { key: r.id, staticClass: "search-select-options__item", on: { mousedown: e.onOptionMousedown, click: function(p) {
210
+ return e.setOption(r.id, r.name);
211
+ } } }, [e._v(" " + e._s(r.name) + " ")]);
212
+ }), 0) : e._e()]);
213
+ }, z = [];
214
+ $._withStripped = !0;
215
+ var P = /* @__PURE__ */ M(
216
+ K,
217
+ $,
218
+ z,
219
+ !1,
220
+ null,
221
+ null,
222
+ null,
223
+ null
224
+ );
225
+ P.options.__file = "/Users/vergelijkdirect/Documents/projects/comparison-forms/src/components/common/inputs/SearchableSelect.vue";
226
+ const te = P.exports;
227
+ export {
228
+ te as S,
229
+ ee as a,
230
+ Z as p,
231
+ Y as u
232
+ };
@@ -0,0 +1,42 @@
1
+ const o = {
2
+ /**
3
+ * Gets the path in session storage
4
+ */
5
+ get path() {
6
+ return sessionStorage.getItem("path") || "/";
7
+ },
8
+ /**
9
+ * Sets new path in session storage
10
+ * @param {string} path New path
11
+ */
12
+ set path(e) {
13
+ e && sessionStorage.setItem("path", e);
14
+ },
15
+ getPath(e) {
16
+ return sessionStorage.getItem(e) || "/";
17
+ },
18
+ setPath(e, t = "path") {
19
+ e && sessionStorage.setItem(t, e);
20
+ },
21
+ set(e, t) {
22
+ return sessionStorage.setItem(e, t);
23
+ },
24
+ get(e) {
25
+ return sessionStorage.getItem(e);
26
+ },
27
+ /**
28
+ * Removes the state from the session
29
+ * storage with the given keys
30
+ *
31
+ * @param {Array<string>} keys keys to remove from sessionstorage
32
+ * @returns {void} void
33
+ */
34
+ removeSessionState(...e) {
35
+ e.forEach((t) => {
36
+ sessionStorage.getItem(t) && sessionStorage.removeItem(t);
37
+ });
38
+ }
39
+ };
40
+ export {
41
+ o as S
42
+ };
@@ -0,0 +1,50 @@
1
+ import { defineComponent as o, computed as l } from "vue";
2
+ import { n } from "./index-WjnHra7k.js";
3
+ const d = o({
4
+ props: {
5
+ hasLoader: {
6
+ type: Boolean,
7
+ default: !1
8
+ },
9
+ noTitle: {
10
+ type: Boolean,
11
+ default: !0
12
+ },
13
+ hasBorderTitle: {
14
+ type: Boolean,
15
+ default: !0
16
+ },
17
+ hasNewStyle: {
18
+ type: Boolean,
19
+ default: !1
20
+ }
21
+ },
22
+ setup(t) {
23
+ return {
24
+ cardClasses: l(() => ({
25
+ "text-center": t.hasLoader,
26
+ "vd-card-simple--new": t.hasNewStyle
27
+ }))
28
+ };
29
+ }
30
+ });
31
+ var r = function() {
32
+ var e = this, s = e._self._c;
33
+ return e._self._setupProxy, s("div", { staticClass: "vd-card-simple", class: { "text-center": e.hasLoader, "vd-card-simple--new": e.hasNewStyle } }, [e.noTitle ? e._e() : s("p", { staticClass: "vd-card-simple__title", class: { "border-bottom-0 mb-0": e.hasLoader, "border-bottom-0 mb-0": e.hasBorderTitle } }, [e._t("title")], 2), e._t("default"), e.hasLoader ? s("loader") : e._e()], 2);
34
+ }, c = [];
35
+ r._withStripped = !0;
36
+ var a = /* @__PURE__ */ n(
37
+ d,
38
+ r,
39
+ c,
40
+ !1,
41
+ null,
42
+ null,
43
+ null,
44
+ null
45
+ );
46
+ a.options.__file = "/Users/vergelijkdirect/Documents/projects/comparison-forms/src/components/common/SimpleCard.vue";
47
+ const p = a.exports;
48
+ export {
49
+ p as S
50
+ };
@@ -0,0 +1,117 @@
1
+ import { defineComponent as i } from "vue";
2
+ import { u as n, p as l } from "./paymentTerms.model-J3WNhgPU.js";
3
+ import { F as p, e as m, u as d, y as f, h as c, i as u, n as v } from "./index-WjnHra7k.js";
4
+ import { S as _ } from "./SimpleCard-_Mg9wAqJ.js";
5
+ import { B as g } from "./BirthdateInput-1tsGzxTx.js";
6
+ import { F as y } from "./FamilyCompositionInput-dWbnEFac.js";
7
+ import { D as S } from "./DefaultPlainRadioGroup-i8P1ACl4.js";
8
+ import { E as b } from "./ErrorHandler-9Zxi6g3R.js";
9
+ import { P as k } from "./vue-popper.min-O3ciEEKg.js";
10
+ import { B as C } from "./form-radio-group-J-EQJhh9.js";
11
+ import "./common-J_DOueuE.js";
12
+ import "@vergelijkdirect/insurance-transmission-client";
13
+ import "./Session.util-aedjr12J.js";
14
+ import "./array.util-agNtEyks.js";
15
+ import "moment";
16
+ import "vee-validate";
17
+ import "./DefaultInput-zxU1ufPA.js";
18
+ import "./familyComposition.model-1F80igwZ.js";
19
+ import "./DefaultSelect-t64f_R7v.js";
20
+ import "./_commonjsHelpers-4t9S7M5p.js";
21
+ const h = i({
22
+ name: "TravelForm",
23
+ components: {
24
+ SimpleCard: _,
25
+ BirthdateInput: g,
26
+ FamilyCompositionInput: y,
27
+ DefaultPlainRadioGroup: S,
28
+ ErrorHandler: b,
29
+ BFormRadioGroup: C,
30
+ Popper: k
31
+ },
32
+ props: {
33
+ link: {
34
+ type: String,
35
+ required: !1
36
+ },
37
+ classes: {
38
+ required: !1,
39
+ type: String,
40
+ default: ""
41
+ },
42
+ formLocation: {
43
+ type: String,
44
+ required: !1,
45
+ default: p.isBeforeFlow
46
+ },
47
+ title: {
48
+ type: String,
49
+ required: !1,
50
+ default: "Reisverzekering vergelijken"
51
+ },
52
+ showTitle: {
53
+ required: !1,
54
+ type: Boolean,
55
+ default: !0
56
+ },
57
+ userInformation: {
58
+ required: !1,
59
+ default() {
60
+ return {};
61
+ }
62
+ },
63
+ insuranceState: {
64
+ required: !1,
65
+ default() {
66
+ return {};
67
+ }
68
+ },
69
+ additionalOptions: {
70
+ required: !1,
71
+ type: Object
72
+ }
73
+ },
74
+ setup(a, { emit: e }) {
75
+ const {
76
+ validateBeforeSubmit: r
77
+ } = n(a, e);
78
+ return {
79
+ paymentTerms: l,
80
+ errors: m,
81
+ userState: d,
82
+ travelState: f,
83
+ hasNewDesign: c,
84
+ isRequestIsHandling: u,
85
+ validateBeforeSubmit: r
86
+ };
87
+ }
88
+ });
89
+ var s = function() {
90
+ var e = this, r = e._self._c;
91
+ return e._self._setupProxy, r("simple-card", { staticClass: "vd-form-card vd-new-form", class: { [e.classes]: !!e.classes } }, [r("div", { staticClass: "vd-form-card__header" }, [e.showTitle ? r("p", { staticClass: "vd-form-card__title" }, [e._v(" " + e._s(e.title) + " ")]) : e._e()]), r("div", { staticClass: "vd-form-card__content" }, [r("div", { staticClass: "vd-form-group vd-radio-group" }, [r("label", { staticClass: "vd-form-group__label", attrs: { for: "paymentTerm" } }, [r("popper", { attrs: { options: {
92
+ placement: "top",
93
+ modifiers: { offset: { offset: "0,5px" } }
94
+ }, trigger: "hover", "visible-arrow": !e.hasNewDesign } }, [r("div", { staticClass: "popover popper vd-popover" }, [r("div", { staticClass: "popover-header vd-popover-header" }, [r("i", { staticClass: "fas fa-info-circle", class: e.hasNewDesign ? "vd-tip-icon" : "text-primary fz-big cursor-pointer" }), e._v(" Kies je dekking ")]), e._v(" Doorlopend is al goedkoper wanneer je 2 keer of vaker met vakantie gaat. Ook weekendjes weg zijn meeverzekerd! ")]), r("div", { attrs: { slot: "reference" }, slot: "reference" }, [r("span", [e._v(" Kies je dekking ")]), r("i", { staticClass: "fas fa-info-circle", class: e.hasNewDesign ? "vd-tip-icon" : "text-primary fz-big cursor-pointer", attrs: { slot: "reference", id: "popover-target-coverage" }, slot: "reference" })])])], 1), r("b-form-radio-group", { staticClass: "vd-radio-buttons", attrs: { id: "paymentTerm", options: e.paymentTerms, "data-vv-name": "paymentTerm", name: "paymentTerm" }, model: { value: e.travelState.paymentTerm, callback: function(t) {
95
+ e.$set(e.travelState, "paymentTerm", t);
96
+ }, expression: "travelState.paymentTerm" } }), r("ErrorHandler", { attrs: { "errors-data": [{ rule: "required", text: "Selecteer een dekking" }] } })], 1), r("birthdate-input", { model: { value: e.userState.birthdate, callback: function(t) {
97
+ e.$set(e.userState, "birthdate", t);
98
+ }, expression: "userState.birthdate" } }), r("family-composition-input", { model: { value: e.userState.familyComposition, callback: function(t) {
99
+ e.$set(e.userState, "familyComposition", t);
100
+ }, expression: "userState.familyComposition" } })], 1), r("div", { staticClass: "vd-form-card__footer" }, [r("button", { staticClass: "vd-btn vd-btn-green vd-btn-w-100", attrs: { disabled: e.isRequestIsHandling }, on: { click: e.validateBeforeSubmit } }, [e._v(" Vergelijken ")])])]);
101
+ }, T = [];
102
+ s._withStripped = !0;
103
+ var o = /* @__PURE__ */ v(
104
+ h,
105
+ s,
106
+ T,
107
+ !1,
108
+ null,
109
+ null,
110
+ null,
111
+ null
112
+ );
113
+ o.options.__file = "/Users/vergelijkdirect/Documents/projects/comparison-forms/src/insurances/travel/components/forms/TravelForm.vue";
114
+ const V = o.exports;
115
+ export {
116
+ V as default
117
+ };
@@ -0,0 +1,117 @@
1
+ import { defineComponent as i } from "vue";
2
+ import { u as n, p as l } from "./paymentTerms.model-J3WNhgPU.js";
3
+ import { F as p, e as m, u as d, y as u, h as f, i as c, n as v } from "./index-WjnHra7k.js";
4
+ import { S as _ } from "./SimpleCard-_Mg9wAqJ.js";
5
+ import { B as g } from "./BirthdateInput-1tsGzxTx.js";
6
+ import { F as b } from "./FamilyCompositionInput-dWbnEFac.js";
7
+ import { D as k } from "./DefaultPlainRadioGroup-i8P1ACl4.js";
8
+ import { E as y } from "./ErrorHandler-9Zxi6g3R.js";
9
+ import { P as S } from "./vue-popper.min-O3ciEEKg.js";
10
+ import { B as h } from "./form-radio-group-J-EQJhh9.js";
11
+ import "./common-J_DOueuE.js";
12
+ import "@vergelijkdirect/insurance-transmission-client";
13
+ import "./Session.util-aedjr12J.js";
14
+ import "./array.util-agNtEyks.js";
15
+ import "moment";
16
+ import "vee-validate";
17
+ import "./DefaultInput-zxU1ufPA.js";
18
+ import "./familyComposition.model-1F80igwZ.js";
19
+ import "./DefaultSelect-t64f_R7v.js";
20
+ import "./_commonjsHelpers-4t9S7M5p.js";
21
+ const C = i({
22
+ name: "TravelFormHorizontal",
23
+ components: {
24
+ SimpleCard: _,
25
+ BirthdateInput: g,
26
+ FamilyCompositionInput: b,
27
+ DefaultPlainRadioGroup: k,
28
+ ErrorHandler: y,
29
+ BFormRadioGroup: h,
30
+ Popper: S
31
+ },
32
+ props: {
33
+ link: {
34
+ type: String,
35
+ required: !1
36
+ },
37
+ classes: {
38
+ required: !1,
39
+ type: String,
40
+ default: ""
41
+ },
42
+ formLocation: {
43
+ type: String,
44
+ required: !1,
45
+ default: p.isBeforeFlow
46
+ },
47
+ title: {
48
+ type: String,
49
+ required: !1,
50
+ default: "Reisverzekering vergelijken"
51
+ },
52
+ showTitle: {
53
+ required: !1,
54
+ type: Boolean,
55
+ default: !0
56
+ },
57
+ userInformation: {
58
+ required: !1,
59
+ default() {
60
+ return {};
61
+ }
62
+ },
63
+ insuranceState: {
64
+ required: !1,
65
+ default() {
66
+ return {};
67
+ }
68
+ },
69
+ additionalOptions: {
70
+ required: !1,
71
+ type: Object
72
+ }
73
+ },
74
+ setup(a, { emit: e }) {
75
+ const {
76
+ validateBeforeSubmit: r
77
+ } = n(a, e);
78
+ return {
79
+ paymentTerms: l,
80
+ errors: m,
81
+ userState: d,
82
+ travelState: u,
83
+ hasNewDesign: f,
84
+ isRequestIsHandling: c,
85
+ validateBeforeSubmit: r
86
+ };
87
+ }
88
+ });
89
+ var o = function() {
90
+ var e = this, r = e._self._c;
91
+ return e._self._setupProxy, r("simple-card", { staticClass: "vd-form-card vd-form-card--horizontal", class: { "vd-new-form": e.hasNewDesign, [e.classes]: !!e.classes } }, [e.showTitle ? r("p", { staticClass: "vd-form-card__title" }, [e._v(" " + e._s(e.title) + " ")]) : e._e(), r("div", { staticClass: "vd-form-card__content vd-form-card__content-travel" }, [r("div", { staticClass: "vd-form-group vd-radio-group" }, [r("label", { staticClass: "vd-form-group__label", attrs: { for: "paymentTerm" } }, [e._v(" Kies je dekking "), r("popper", { attrs: { options: {
92
+ placement: "top",
93
+ modifiers: { offset: { offset: "0,5px" } }
94
+ }, trigger: "hover", "visible-arrow": !e.hasNewDesign } }, [r("div", { staticClass: "popover popper vd-popover" }, [r("div", { staticClass: "popover-header vd-popover-header" }, [e._v(" Kies je dekking ")]), e._v(" Doorlopend is al goedkoper wanneer je 2 keer of vaker met vakantie gaat. Ook weekendjes weg zijn meeverzekerd! ")]), r("i", { staticClass: "fas fa-info-circle", class: e.hasNewDesign ? "vd-tip-icon" : "text-primary fz-big cursor-pointer", attrs: { slot: "reference", id: "popover-target-coverage" }, slot: "reference" })])], 1), r("b-form-radio-group", { staticClass: "vd-radio-buttons", attrs: { id: "paymentTerm", options: e.paymentTerms, "data-vv-name": "paymentTerm", name: "paymentTerm" }, model: { value: e.travelState.paymentTerm, callback: function(t) {
95
+ e.$set(e.travelState, "paymentTerm", t);
96
+ }, expression: "travelState.paymentTerm" } }), r("ErrorHandler", { attrs: { "errors-data": [{ rule: "required", text: "Selecteer een dekking" }] } })], 1), r("birthdate-input", { model: { value: e.userState.birthdate, callback: function(t) {
97
+ e.$set(e.userState, "birthdate", t);
98
+ }, expression: "userState.birthdate" } }), r("family-composition-input", { model: { value: e.userState.familyComposition, callback: function(t) {
99
+ e.$set(e.userState, "familyComposition", t);
100
+ }, expression: "userState.familyComposition" } }), r("div", { staticClass: "vd-form-group vd-form-group__button" }, [r("button", { class: e.hasNewDesign ? "vd-btn vd-btn-green vd-btn-w-100" : "btn-a btn-a btn-a--success btn-a--bold btn-block cursor-pointer", attrs: { disabled: e.isRequestIsHandling }, on: { click: e.validateBeforeSubmit } }, [e._v(" Vergelijken ")])])], 1)]);
101
+ }, w = [];
102
+ o._withStripped = !0;
103
+ var s = /* @__PURE__ */ v(
104
+ C,
105
+ o,
106
+ w,
107
+ !1,
108
+ null,
109
+ null,
110
+ null,
111
+ null
112
+ );
113
+ s.options.__file = "/Users/vergelijkdirect/Documents/projects/comparison-forms/src/insurances/travel/components/forms/TravelFormHorizontal.vue";
114
+ const V = s.exports;
115
+ export {
116
+ V as default
117
+ };
@@ -0,0 +1,123 @@
1
+ import { defineComponent as n } from "vue";
2
+ import { u as l, p as m } from "./paymentTerms.model-J3WNhgPU.js";
3
+ import { F as s, e as p, u as d, y as u, h as f, i as c, n as v } from "./index-WjnHra7k.js";
4
+ import { S as _ } from "./SimpleCard-_Mg9wAqJ.js";
5
+ import { B as g } from "./BirthdateInput-1tsGzxTx.js";
6
+ import { F as y } from "./FamilyCompositionInput-dWbnEFac.js";
7
+ import { D as S } from "./DefaultPlainRadioGroup-i8P1ACl4.js";
8
+ import { E as k } from "./ErrorHandler-9Zxi6g3R.js";
9
+ import { D as b } from "./DefaultInput-zxU1ufPA.js";
10
+ import { D as C } from "./DefaultSelect-t64f_R7v.js";
11
+ import { P as q } from "./vue-popper.min-O3ciEEKg.js";
12
+ import { F as T } from "./familyComposition.model-1F80igwZ.js";
13
+ import { B as h } from "./form-radio-group-J-EQJhh9.js";
14
+ import "./common-J_DOueuE.js";
15
+ import "@vergelijkdirect/insurance-transmission-client";
16
+ import "./Session.util-aedjr12J.js";
17
+ import "./array.util-agNtEyks.js";
18
+ import "moment";
19
+ import "vee-validate";
20
+ import "./_commonjsHelpers-4t9S7M5p.js";
21
+ const F = n({
22
+ name: "TravelFormOld",
23
+ components: {
24
+ DefaultInput: b,
25
+ DefaultSelect: C,
26
+ SimpleCard: _,
27
+ BirthdateInput: g,
28
+ FamilyCompositionInput: y,
29
+ DefaultPlainRadioGroup: S,
30
+ ErrorHandler: k,
31
+ BFormRadioGroup: h,
32
+ Popper: q
33
+ },
34
+ props: {
35
+ link: {
36
+ type: String,
37
+ required: !1
38
+ },
39
+ classes: {
40
+ required: !1,
41
+ type: String,
42
+ default: ""
43
+ },
44
+ formLocation: {
45
+ type: String,
46
+ required: !1,
47
+ default: s.isBeforeFlow
48
+ },
49
+ title: {
50
+ type: String,
51
+ required: !1,
52
+ default: "Reisverzekering vergelijken"
53
+ },
54
+ showTitle: {
55
+ required: !1,
56
+ type: Boolean,
57
+ default: !0
58
+ },
59
+ userInformation: {
60
+ required: !1,
61
+ default() {
62
+ return {};
63
+ }
64
+ },
65
+ insuranceState: {
66
+ required: !1,
67
+ default() {
68
+ return {};
69
+ }
70
+ },
71
+ additionalOptions: {
72
+ required: !1,
73
+ type: Object
74
+ }
75
+ },
76
+ setup(a, { emit: e }) {
77
+ const {
78
+ validateBeforeSubmit: t
79
+ } = l(a, e);
80
+ return {
81
+ paymentTerms: m,
82
+ errors: p,
83
+ userState: d,
84
+ travelState: u,
85
+ hasNewDesign: f,
86
+ FamilyCompositionsModel: T,
87
+ isRequestIsHandling: c,
88
+ FormLocations: s,
89
+ validateBeforeSubmit: t
90
+ };
91
+ }
92
+ });
93
+ var o = function() {
94
+ var e = this, t = e._self._c;
95
+ return e._self._setupProxy, t("simple-card", { staticClass: "vd-form-card vd-form-card--border-box", class: { "vd-form-card--flat w-100": e.formLocation === e.FormLocations.isOnResultPage, [e.classes]: !!e.classes } }, [t("p", { staticClass: "vd-form-card__title" }, [e._v(" " + e._s(e.title) + " ")]), t("div", { staticClass: "vd-form-group" }, [t("default-plain-radio-group", { directives: [{ name: "validate", rawName: "v-validate", value: "required", expression: "'required'" }], staticClass: "mx-0 mb-md-0 mb-lg-0", attrs: { id: "paymentTerm", options: e.paymentTerms, value: e.travelState.paymentTerm, "simple-name": !0, inline: !1, name: "paymentTerm" }, scopedSlots: e._u([{ key: "title", fn: function() {
96
+ return [e._v(" Kies je dekking "), t("popper", { attrs: { options: {
97
+ placement: "top",
98
+ modifiers: { offset: { offset: "0,5px" } }
99
+ }, trigger: "hover" } }, [t("div", { staticClass: "popover popper" }, [t("div", { staticClass: "popover-header" }, [e._v(" Kies je dekking ")]), e._v(" Doorlopend is al goedkoper wanneer je 2 keer of vaker met vakantie gaat. Ook weekendjes weg zijn meeverzekerd! ")]), t("i", { staticClass: "fas fa-question-circle fz-big text-primary cursor-pointer", attrs: { slot: "reference", id: "popover-target-coverage" }, slot: "reference" })])];
100
+ }, proxy: !0 }]), model: { value: e.travelState.paymentTerm, callback: function(r) {
101
+ e.$set(e.travelState, "paymentTerm", r);
102
+ }, expression: "travelState.paymentTerm" } }), e.errors.has("paymentTerm:required") ? t("p", { staticClass: "vd-form-error mb-3" }, [e._v(" Selecteer een dekking ")]) : e._e()], 1), t("div", { staticClass: "vd-form-group" }, [t("birthdate-input", { model: { value: e.userState.birthdate, callback: function(r) {
103
+ e.$set(e.userState, "birthdate", r);
104
+ }, expression: "userState.birthdate" } })], 1), t("div", { staticClass: "vd-form-group" }, [t("family-composition-input", { model: { value: e.userState.familyComposition, callback: function(r) {
105
+ e.$set(e.userState, "familyComposition", r);
106
+ }, expression: "userState.familyComposition" } })], 1), t("div", { staticClass: "btn-a btn-a--success btn-a--bold cursor-pointer btn-block mt-2", attrs: { disabled: e.isRequestIsHandling }, on: { click: e.validateBeforeSubmit } }, [e._v(" Vergelijken ")])]);
107
+ }, x = [];
108
+ o._withStripped = !0;
109
+ var i = /* @__PURE__ */ v(
110
+ F,
111
+ o,
112
+ x,
113
+ !1,
114
+ null,
115
+ null,
116
+ null,
117
+ null
118
+ );
119
+ i.options.__file = "/Users/vergelijkdirect/Documents/projects/comparison-forms/src/insurances/travel/components/forms/TravelFormOld.vue";
120
+ const J = i.exports;
121
+ export {
122
+ J as default
123
+ };