{"version":3,"sources":["webpack:///./src/components/message.vue","webpack:///src/components/message.vue","webpack:///./src/components/message.vue?fb6a","webpack:///./src/components/message.vue?ed8c","webpack:///./src/components/FormStep.vue","webpack:///src/components/FormStep.vue","webpack:///./src/components/FormStep.vue?d001","webpack:///./src/components/FormStep.vue?d21f","webpack:///./src/mixins/validateData.js","webpack:///./src/components/VehicleInformation.vue","webpack:///src/components/VehicleInformation.vue","webpack:///./src/components/VehicleInformation.vue?8fd9","webpack:///./src/components/VehicleInformation.vue?a3e9","webpack:///./src/components/packages.vue","webpack:///src/components/packages.vue","webpack:///./src/components/packages.vue?3ae0","webpack:///./src/components/packages.vue?b84a","webpack:///./src/mixins/commonProduct.js","webpack:///./src/components/progress-indicator.vue","webpack:///src/components/progress-indicator.vue","webpack:///./src/components/progress-indicator.vue?4a42","webpack:///./src/components/progress-indicator.vue?a903","webpack:///./src/components/ProgressButtons.vue","webpack:///src/components/ProgressButtons.vue","webpack:///./src/components/ProgressButtons.vue?6703","webpack:///./src/components/ProgressButtons.vue?0c35"],"names":["render","_vm","this","_c","_self","message","staticClass","class","type","floating","messageIcon","_e","_v","_s","headline","text","domProps","button","attrs","on","$event","$emit","function","staticRenderFns","name","props","Object","default","String","icon","Boolean","computed","component","step","preventDefault","_l","fieldsInStep","field","index","key","product","formStepFunction","components","FormInput","VehicleInformation","fields","Number","Array","value","entries","push","methods","functionName","parameter","validateData","data","parsedData","parsevalidationData","clog","encryptedData","JSON","stringify","encrypt","apiString","axios","method","url","headers","process","Authorization","$store","state","token","then","response","validation","extraValidationSteps","includes","property","filter","$options","filters","registrationData","vehicleIcon","registrationNumber","maerke","model","modelYear","variant","productCode","veteranApproved","directives","rawName","expression","required","onInvalid","apply","arguments","productId","extraCarInformation","artsNavn","tilladelse","forEach","element","tilladelseNummer","artsNummer","fuelType","altTitle","_t","packages","bundle","chosen","loading","disabled","price","requirementsMet","style","_package_item_style","infoBox","totalMonthlyPrice","numFormat","coverages","coverage","show","included","showModal","keys","length","choosePackage","error","formFunction","packageLink","altLinkText","Message","altErrorMessage","watch","immediate","handler","maxWidth","margin","resetPackages","self","scrollTo","step1","step2","step3","info","validationError","existingPolicy","existingPolicyKey","newValue","oldValue","scrollToTop","commit","query","copy","$route","$router","productName","catch","replace","parseInt","parseSubmitData","submitData","carObjectData","homeObjectData","personalAccidentObjectData","buildingObjectData","caravanObjectData","dogObjectData","travelObjectData","baseInfo","pkey","parse","priceObject","currentObject","renderTextInObject","from","coveragesBase","export","bundleCode","excessId","inject","isArray","map","cov","bundleSumInsured","deathSumInsured","extra","prod","imp","import","changeStep","package","trackData","basket","allRequirementsMet","updateExistingPolicy","messageBox","params","insertPrice","objects","indexOf","extraPrices","split","object","toLowerCase","formError","currentStepName","steps","item","active","completed","stepName","disableButton","betaling"],"mappings":"kHAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAQF,EAAII,QAASF,EAAG,MAAM,CAACG,YAAY,UAAUC,MAAM,CAACN,EAAIO,KAAM,CAAEC,SAAUR,EAAIQ,YAAa,CAAER,EAAIS,YAAaP,EAAG,IAAI,CAACG,YAAY,eAAeC,MAAMN,EAAIS,cAAcT,EAAIU,KAAKR,EAAG,MAAM,CAACG,YAAY,mBAAmB,CAACH,EAAG,OAAO,CAACG,YAAY,oBAAoB,CAACL,EAAIW,GAAGX,EAAIY,GAAGZ,EAAII,QAAQS,aAAcb,EAAII,QAAQU,KAAMZ,EAAG,OAAO,CAACG,YAAY,eAAeU,SAAS,CAAC,UAAYf,EAAIY,GAAGZ,EAAII,QAAQU,SAASd,EAAIU,KAAMV,EAAII,QAAQY,OAAQd,EAAG,MAAM,CAACG,YAAY,uCAAuC,CAACH,EAAG,SAAS,CAACG,YAAY,6BAA6BY,MAAM,CAAC,KAAO,UAAUC,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOnB,EAAIoB,MAAM,eAAgBpB,EAAII,QAAQY,OAAOK,aAAa,CAACrB,EAA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AG,SAAWrB,EAAO+F,SAAW/F,EAAOgG,UAAYhH,EAAIqN,gBAAgB,CAAErM,EAAO+F,QAAS,CAAC7G,EAAG,IAAI,CAACG,YAAY,+CAAgDL,EAAIgN,MAAMlF,QAAUzF,EAAQ,GAAKrC,EAAIsN,SAAU,CAACtN,EAAIW,GAAG,yBAA0BX,EAAIgN,MAAMlF,QAAUzF,EAAQ,GAAMrC,EAAImJ,eAAoDnJ,EAAIgN,MAAMlF,QAAUzF,EAAQ,GAAKrC,EAAImJ,eAAgB,CAACnJ,EAAIW,GAAG,wBAAwB,CAACX,EAAIW,GAAG,UAAjI,CAACX,EAAIW,GAAG,4BAAoI,GAAGX,EAAIU,UAAS,IAEx7BY,EAAkB,GC+BP,GACfC,KAAA,kBACAC,MAAA,CACAQ,KAAA,CACAzB,KAAAsC,OACAnB,QAAA,MAEAsL,MAAA,CACAzM,KAAAuC,MACApB,QAAA,IAAAoB,OAEAqG,eAAA,CACA5I,KAAAsB,QACAH,SAAA,GAEA4L,SAAA,CACA/M,KAAAsB,QACAH,SAAA,GAEA2L,cAAA,CACA9M,KAAAsB,QACAH,SAAA,KCtD0d,I,YCOtdK,EAAY,eACd,EACAhC,EACAuB,GACA,EACA,KACA,KACA,MAIa,OAAAS,E","file":"js/chunk-509aa211.55af736c.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return (_vm.message)?_c('div',{staticClass:\"message\",class:[_vm.type, { floating: _vm.floating }]},[(_vm.messageIcon)?_c('i',{staticClass:\"message-icon\",class:_vm.messageIcon}):_vm._e(),_c('div',{staticClass:\"message-content\"},[_c('span',{staticClass:\"message-headline\"},[_vm._v(_vm._s(_vm.message.headline))]),(_vm.message.text)?_c('span',{staticClass:\"message-text\",domProps:{\"innerHTML\":_vm._s(_vm.message.text)}}):_vm._e(),(_vm.message.button)?_c('div',{staticClass:\"button-flex-container margin-top-20\"},[_c('button',{staticClass:\"button white justify-start\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.$emit('formFunction', _vm.message.button.function)}}},[_vm._v(_vm._s(_vm.message.button.text))])]):_vm._e()])]):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n","import mod from \"-!../../node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./message.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./message.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./message.vue?vue&type=template&id=001d673c\"\nimport script from \"./message.vue?vue&type=script&lang=js\"\nexport * from \"./message.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('form',{attrs:{\"id\":`step${_vm.step}`},on:{\"submit\":function($event){$event.preventDefault();return _vm.$emit('submitForm')}}},[_vm._l((_vm.fieldsInStep),function(field,index){return [(!field.component)?[_c('FormInput',{key:index,attrs:{\"data\":field,\"product\":_vm.product},on:{\"formFunction\":_vm.formStepFunction}})]:(field.component == 'VehicleInformation')?[_c('VehicleInformation',{key:index,attrs:{\"data\":field,\"product\":_vm.product},on:{\"formFunction\":_vm.formStepFunction}})]:_vm._e()]})],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n","import mod from \"-!../../node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./FormStep.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./FormStep.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./FormStep.vue?vue&type=template&id=07f3cefb\"\nimport script from \"./FormStep.vue?vue&type=script&lang=js\"\nexport * from \"./FormStep.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","export default {\r\n methods: {\r\n /*\r\n * Validate data based on input\r\n */\r\n validateData(data, step) {\r\n // Parse validation data\r\n let parsedData = this.parsevalidationData(data, step);\r\n\r\n // Console log if in dev, test or beta environment\r\n this.clog(\"data for validation\", parsedData);\r\n\r\n // Create encrypted data\r\n let encryptedData = JSON.stringify(\r\n this.encrypt(JSON.stringify(parsedData))\r\n );\r\n\r\n // Create api string\r\n let apiString = `/api/validate`;\r\n\r\n return this.axios({\r\n method: \"post\",\r\n url: apiString,\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n \"x-ws-key\": process.env.VUE_APP_KEY,\r\n Authorization: `Bearer ${this.$store.state.token}`,\r\n },\r\n data: encryptedData,\r\n }).then((response) => {\r\n return response.data;\r\n });\r\n },\r\n /*\r\n * Parse validation fields from product\r\n */\r\n parsevalidationData(data, step) {\r\n // Parsed data to return\r\n let parsedData = new Object();\r\n\r\n // eslint-disable-next-line no-unused-vars\r\n for (const [key, value] of Object.entries(data.fields)) {\r\n if (value.validation && (!value.step || value.step == step || (\"extraValidationSteps\" in value && value.extraValidationSteps.includes(step)))) {\r\n parsedData[value.property] = value.filter\r\n ? this.$options.filters[value.filter](value.value)\r\n : value.value;\r\n }\r\n }\r\n\r\n // Return parsed data\r\n return parsedData;\r\n },\r\n },\r\n};\r\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[(_vm.registrationData)?_c('div',{staticClass:\"vehicle-information\"},[_c('i',{staticClass:\"fa-light fa-fw vehicle-icon\",class:_vm.vehicleIcon}),_c('div',{staticClass:\"vehicle-information-text\"},[_c('span',{staticClass:\"registration-number\"},[_vm._v(\"Oplysninger for \"),_c('b',[_vm._v(\"\\\"\"+_vm._s(_vm.registrationNumber)+\"\\\"\")])]),_c('table',{staticClass:\"vehicle-information-table\"},[_c('tr',[_c('td',[_vm._v(\"Mærke\")]),_c('td',[_vm._v(_vm._s(_vm.maerke))])]),_c('tr',[_c('td',[_vm._v(\"Model\")]),_c('td',[_vm._v(_vm._s(_vm.model))])]),_c('tr',[_c('td',[_vm._v(\"Årgang\")]),_c('td',[_vm._v(_vm._s(_vm.modelYear))])]),_c('tr',[_c('td',[_vm._v(\"Variant\")]),_c('td',[_vm._v(_vm._s(_vm.variant))])]),_c('tr',[_c('td',[_vm._v(\"Type\")]),_c('td',[_vm._v(_vm._s(_vm.type))])]),(_vm.productCode == 'M21')?_c('tr',[_c('td',[_vm._v(\"Veteranregistreret\")]),_c('td',[_vm._v(_vm._s(_vm.veteranApproved))])]):_vm._e()])])]):_vm._e(),_c('input',{directives:[{name:\"show\",rawName:\"v-show\",value:(false),expression:\"false\"}],attrs:{\"type\":\"checkbox\",\"required\":_vm.data.required},domProps:{\"checked\":_vm.registrationData},on:{\"invalid\":function($event){$event.preventDefault();return _vm.onInvalid.apply(null, arguments)}}})])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n","import mod from \"-!../../node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./VehicleInformation.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./VehicleInformation.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./VehicleInformation.vue?vue&type=template&id=4616ea9b\"\nimport script from \"./VehicleInformation.vue?vue&type=script&lang=js\"\nexport * from \"./VehicleInformation.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"container\",attrs:{\"id\":\"packages\"}},[_c('h2',{staticClass:\"text-align-center margin-top-40 margin-bottom-40\"},[_vm._v(_vm._s(_vm.altTitle || \"Vælg din pakke\"))]),_vm._t(\"subtitle\"),_c('div',{staticClass:\"packages\"},[_vm._l((_vm.packages),function(bundle,index){return [_c('div',{key:index,staticClass:\"package-item\",class:[\n { chosen: bundle.value },\n { loading: bundle.loading },\n { disabled: !bundle.price || !_vm.requirementsMet },\n ],style:(_vm._package_item_style)},[(bundle.infoBox)?_c('span',{staticClass:\"sticker small\"},[_vm._v(_vm._s(bundle.infoBox.text))]):_vm._e(),_c('input',{staticClass:\"package-input\",attrs:{\"type\":\"radio\",\"id\":bundle.name,\"name\":\"package\",\"tabindex\":\"-1\",\"required\":\"\"},domProps:{\"value\":bundle,\"checked\":bundle.value},on:{\"invalid\":function($event){$event.preventDefault();return _vm.onInvalid.apply(null, arguments)}}}),_c('div',{staticClass:\"package-info\"},[(bundle.name != '')?_c('h5',[_vm._v(_vm._s(bundle.name))]):_vm._e(),_c('div',{staticClass:\"package-price\"},[_c('span',{staticClass:\"number\"},[(bundle.price && bundle.price.totalMonthlyPrice && !bundle.loading)?[_vm._v(_vm._s(_vm.numFormat(bundle.price.totalMonthlyPrice)))]:(!bundle.price && !bundle.loading)?[_vm._v(\".....\")]:_vm._e()],2),_c('span',{staticClass:\"description\"},[_vm._v(\"kr./md.\")])])]),_c('div',{staticClass:\"package-coverages\"},[_vm._l((bundle.coverages),function(coverage,index){return [(coverage.show)?_c('div',{key:index,staticClass:\"coverage\",class:{ 'included' : coverage.included },on:{\"click\":function($event){return _vm.showModal(coverage.value, coverage.text || coverage.value)}}},[_vm._v(\" \"+_vm._s(coverage.value)+\" \")]):_vm._e()]})],2),(Object.keys(_vm.packages).length > 1)?_c('div',{staticClass:\"package-buttons\"},[_c('button',{staticClass:\"button block-button\",class:{ 'white': !bundle.value },attrs:{\"type\":\"button\",\"disabled\":!bundle.price || !_vm.requirementsMet},on:{\"click\":function($event){return _vm.choosePackage(bundle)}}},[(bundle.value)?[_vm._v(\"Valgt\")]:[_vm._v(\"Vælg denne pakke\")]],2)]):_vm._e()])]})],2),(_vm.error)?_c('Message',{attrs:{\"message\":_vm.error,\"type\":\"error\"},on:{\"formFunction\":_vm.formFunction}}):_vm._e(),(_vm.packageLink)?_c('div',{staticClass:\"display-block text-align-center margin-top-30\"},[_c('a',{staticClass:\"font-size-16\",attrs:{\"href\":_vm.packageLink,\"target\":\"_blank\"}},[_vm._v(_vm._s(_vm.altLinkText || \"Læs mere om vores pakker\"))])]):_vm._e()],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n","import mod from \"-!../../node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./packages.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./packages.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./packages.vue?vue&type=template&id=123ab1d1\"\nimport script from \"./packages.vue?vue&type=script&lang=js\"\nexport * from \"./packages.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","export default {\r\n data() {\r\n return {\r\n loading: {\r\n step1: false,\r\n step2: false,\r\n step3: false,\r\n },\r\n error: {\r\n step1: null,\r\n step2: null,\r\n step3: null,\r\n step: null,\r\n price: null,\r\n },\r\n info: {\r\n step1: null,\r\n step2: null,\r\n step3: null,\r\n step: null,\r\n price: null,\r\n },\r\n validationError: null,\r\n existingPolicy: false,\r\n existingPolicyKey: null,\r\n };\r\n },\r\n watch: {\r\n \"product.step\": {\r\n handler: function (newValue, oldValue) {\r\n this.scrollToTop();\r\n\r\n // Update temporary product if product is not existing\r\n if (!this.existingPolicy) {\r\n this.$store.commit(\"temporaryProduct\", this.product);\r\n }\r\n\r\n // If you change step, update router with push,. otherwise just update router with replace, so that navigation is intact\r\n if (oldValue && newValue != oldValue) {\r\n // Update query with new step value\r\n let query = this.copy(this.$route.query);\r\n query.step = newValue;\r\n\r\n // Push value to router\r\n this.$router\r\n .push({ name: this.product.productName, query: query })\r\n .catch(() => {});\r\n } else if (!oldValue && newValue != this.$route.query.step) {\r\n // Update query with new step value\r\n let query = this.copy(this.$route.query);\r\n query.step = newValue;\r\n\r\n // Push value to router\r\n this.$router.replace({\r\n name: this.product.productName,\r\n query: query,\r\n });\r\n }\r\n },\r\n immediate: true,\r\n },\r\n \"$route.query.step\": {\r\n handler(value) {\r\n if (value) {\r\n this.product.step = parseInt(value);\r\n }\r\n },\r\n immediate: true,\r\n },\r\n },\r\n methods: {\r\n /*\r\n * Parse data to api\r\n */\r\n parseSubmitData(product) {\r\n // Create Submit data object with standard baseInfo\r\n let submitData = {\r\n carObjectData: [],\r\n homeObjectData: [],\r\n personalAccidentObjectData: [],\r\n buildingObjectData: [],\r\n caravanObjectData: [],\r\n dogObjectData: [],\r\n travelObjectData: [],\r\n baseInfo: {},\r\n };\r\n\r\n // Loop through packages\r\n for (const [key, value] of Object.entries(product.packages)) {\r\n const pkey = key;\r\n\r\n // Do not parse?\r\n if (\"parse\" in value && !value.parse) {\r\n submitData[product.priceObject].push({ ...value, key: key });\r\n continue;\r\n }\r\n\r\n // Create car object for the array in submitData\r\n let currentObject = {\r\n key: key,\r\n coverages:\r\n \"coveragesBase\" in value\r\n ? this.$options.filters.renderTextInObject(\r\n Array.from(value.coveragesBase),\r\n product\r\n )\r\n : [],\r\n };\r\n\r\n // Run through fields and fill out data\r\n for (const [key, value] of Object.entries(product.fields)) {\r\n // Only send if the field is set to export\r\n if (value.export) {\r\n currentObject[key] = value.value;\r\n }\r\n\r\n // If base info set to true, export to baseInfo\r\n if (value.baseInfo) {\r\n submitData.baseInfo[key] = value.value;\r\n }\r\n }\r\n\r\n // Reset price on package\r\n value.price = null;\r\n\r\n // Set bundle to loading\r\n value.loading = true;\r\n\r\n // Run through coverages and put in car object\r\n if (\"coverages\" in value) {\r\n value.coverages.forEach((element) => {\r\n // Only send if package is included and set to export\r\n if (element.included && element.export) {\r\n // Create coverage element\r\n let coverage = {\r\n bundleCode: element.key,\r\n excessId: product.fields.excessId.value,\r\n };\r\n\r\n // Inject values\r\n if (\"inject\" in element) {\r\n for (const key in element.inject) {\r\n coverage[key] = product.fields[element.inject[key]].value;\r\n }\r\n }\r\n\r\n // Push this coverage to car object\r\n currentObject.coverages.push(coverage);\r\n }\r\n });\r\n }\r\n\r\n //Run through extra coverages and put in coverages\r\n if (product.coverages && \"coverages\" in value) {\r\n //eslint-disable-next-line no-unused-vars\r\n for (const [key, value] of Object.entries(product.coverages)) {\r\n // Only send if coverage is chosen\r\n if (value.chosen) {\r\n const keys = Array.isArray(value.keys) ? value.keys : value.keys[pkey];\r\n\r\n // Run through keys on extra coverage\r\n keys.forEach((element) => {\r\n let coverage = {\r\n bundleCode: element,\r\n excessId: product.fields.excessId.value,\r\n };\r\n\r\n // Inject values\r\n if (\"inject\" in value) {\r\n for (const key in value.inject) {\r\n coverage[key] = product.fields[value.inject[key]].value;\r\n }\r\n }\r\n\r\n // Push this coverage to car object\r\n currentObject.coverages.push(coverage);\r\n });\r\n }\r\n }\r\n }\r\n\r\n // Map if priceobject is 'personalAccidentObjectData'\r\n if (product.priceObject == \"personalAccidentObjectData\") {\r\n currentObject.coverages = currentObject.coverages.map((cov) => {\r\n if ([200, 250].includes(parseInt(cov.bundleCode))) {\r\n cov.bundleSumInsured = parseInt(currentObject.bundleSumInsured);\r\n }\r\n\r\n if ([100].includes(parseInt(cov.bundleCode))) {\r\n cov.bundleSumInsured = parseInt(currentObject.deathSumInsured);\r\n }\r\n\r\n return cov;\r\n });\r\n }\r\n\r\n // Push to submit data\r\n submitData[product.priceObject].push(currentObject);\r\n\r\n // Add extra products\r\n if (\"extra\" in product) {\r\n for (const key in product.extra) {\r\n const extra = product.extra[key];\r\n\r\n if (extra.chosen) {\r\n let prod = { ...extra.product, key: `extra_${key}` };\r\n\r\n // imports from main product\r\n if (\"import\" in extra) {\r\n for (const imp of extra.import) {\r\n prod[imp] = currentObject[imp];\r\n }\r\n }\r\n\r\n // Add prod\r\n submitData[product.priceObject].push(prod);\r\n }\r\n }\r\n }\r\n }\r\n\r\n return submitData;\r\n },\r\n /*\r\n * Function for changing step\r\n */\r\n changeStep(step) {\r\n this.product.step = step;\r\n },\r\n /*\r\n * Remove packages\r\n */\r\n resetPackages() {\r\n let self = this;\r\n\r\n // Set all packages to false\r\n // eslint-disable-next-line no-unused-vars\r\n for (const [key, value] of Object.entries(self.product.packages)) {\r\n value.value = false;\r\n }\r\n },\r\n /*\r\n * When a package is chosen\r\n */\r\n choosePackage(value) {\r\n this.product.package = value;\r\n\r\n // Reset selection\r\n this.resetPackages();\r\n value.value = true;\r\n\r\n // Track data for retargeting\r\n this.trackData(\"calculatePrice\", this.product, this.$store.state.basket);\r\n\r\n // Update temporary product if product is not existing\r\n if (!this.existingPolicy) {\r\n this.$store.commit(\"temporaryProduct\", this.product);\r\n }\r\n // If exiting policy, update existing policy\r\n if (this.existingPolicy && this.allRequirementsMet) {\r\n this.updateExistingPolicy(this.product, this.existingPolicyKey);\r\n }\r\n },\r\n /*\r\n * Go to message box\r\n */\r\n messageBox() {\r\n this.$router.push({\r\n name: \"Henvendelse\",\r\n params: {\r\n validation: this.validationError,\r\n },\r\n });\r\n },\r\n /*\r\n * Set from price response\r\n */\r\n insertPrice(data) {\r\n // Check if the response has objects\r\n if (data.objects && data.objects.length > 0) {\r\n // Run through coverages and put in car object\r\n data.objects.forEach((element) => {\r\n if (\"key\" in element && element.key.indexOf(\"extra_\") == 0) {\r\n // Price is for extra product\r\n this.product.extraPrices[element.key.split(\"_\")[1]] = element;\r\n } else if (\"key\" in element) {\r\n // Price is for package\r\n this.product.packages[element.key].price = element;\r\n\r\n // Remove loading\r\n this.product.packages[element.key].loading = false;\r\n } else {\r\n // Add object as key\r\n element.key = element.object.toLowerCase();\r\n\r\n // Price is for package\r\n this.product.packages[element.object.toLowerCase()].price = element;\r\n\r\n // Remove loading\r\n this.product.packages[element.object.toLowerCase()].loading = false;\r\n }\r\n });\r\n }\r\n },\r\n /*\r\n * Form error\r\n */\r\n formError(property, value) {\r\n this.product.fields[property].error = value;\r\n },\r\n },\r\n};\r\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('h4',{staticClass:\"progress-indicator-mobile-text\"},[_vm._v(_vm._s(_vm.currentStepName))]),_c('ul',{staticClass:\"progress-indicator\"},_vm._l((_vm.steps),function(item,index){return _c('li',{key:index,class:[\n { active: _vm.step == index + 1 },\n { completed: _vm.step > index + 1 },\n ]},[_c('div',{staticClass:\"bubble\"},[_c('div',{staticClass:\"bubbleIcon\"},[(_vm.step > index + 1)?_c('i',{staticClass:\"fa-light fa-check\"}):_c('i',{staticClass:\"fa-light\",class:item.icon})])]),_c('span',{staticClass:\"text\"},[_vm._v(_vm._s(item.name))])])}),0)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n","import mod from \"-!../../node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./progress-indicator.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./progress-indicator.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./progress-indicator.vue?vue&type=template&id=7b9fc7be\"\nimport script from \"./progress-indicator.vue?vue&type=script&lang=js\"\nexport * from \"./progress-indicator.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"button-flex-container\"},[(_vm.step > 1)?_c('button',{staticClass:\"button white justify-start\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){$event.preventDefault();return _vm.$emit('changeStep', _vm.step - 1)}}},[_vm._v(\" Tilbage \")]):_vm._e(),_vm._l((_vm.steps),function(button,index){return [(_vm.step == index + 1)?_c('button',{key:index,staticClass:\"button\",attrs:{\"type\":\"submit\",\"form\":'step' + (index + 1),\"disabled\":button.loading || button.disabled || _vm.disableButton}},[(button.loading)?[_c('i',{staticClass:\"fa-light fa-spinner-third fa-fw icon-spin\"})]:(_vm.steps.length == index + 1 && _vm.betaling)?[_vm._v(\"Gennemfør bestilling\")]:(_vm.steps.length == index + 1 && !_vm.existingPolicy)?[_vm._v(\"Tilføj til indkøbskurv\")]:(_vm.steps.length == index + 1 && _vm.existingPolicy)?[_vm._v(\"Opdater indkøbskurv\")]:[_vm._v(\"Næste\")]],2):_vm._e()]})],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n","import mod from \"-!../../node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./ProgressButtons.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./ProgressButtons.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./ProgressButtons.vue?vue&type=template&id=6cb249fa\"\nimport script from \"./ProgressButtons.vue?vue&type=script&lang=js\"\nexport * from \"./ProgressButtons.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}