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resources/area/web/default/js/components/catalog/product/services/ServiceItemInput.vue?fbc7","webpack:///./resources/area/web/default/js/components/catalog/product/services/ServiceItemInput.vue","webpack:///./resources/area/web/default/js/components/catalog/product/services/ServiceItemInput.vue?51bc","webpack:///./resources/area/web/default/js/components/catalog/product/services/ServiceItemInput.vue?b44d"],"sourcesContent":["\nimport {Component, Prop, Vue, Inject} from \"vue-property-decorator\";\nimport ServiceContainer from \"@flashpointbv/solar-service-container\";\n\n@Component({\n name: 'service-item-input',\n components: ServiceContainer().getComponents(),\n})\n\nexport default class ProductServices extends Vue {\n @Prop({required: true}) readonly service: object;\n\n @Inject('serviceQuoteItemId') readonly quoteItemId: number;\n @Inject('serviceProductSku') readonly productSku: string;\n @Inject('serviceIndex') readonly index: number;\n @Inject('serviceQuoteAutoRun') readonly quoteAutoRun: boolean;\n\n private modal: boolean = false;\n\n private get selectedProductServices(): boolean {\n return this.$store.getters['ProductServices/selectedProductServices'][this.index][this.productSku].hasOwnProperty(this.service['sku']);\n }\n\n private set selectedProductServices(value) {\n this.$store.commit('ProductServices/ADD_SELECTED_PRODUCT_SERVICES', {\n value: value || value == null,\n productSku: this.productSku,\n service: this.service,\n hasChildren: this.service.hasOwnProperty('children'),\n serviceType: this.service['option_group'] ? 'radio' : 'checkbox',\n index: this.index\n });\n\n if ( ! this.quoteAutoRun) {\n return;\n }\n\n this.addServiceToQuote({\n cartItemId: this.quoteItemId,\n productSku: this.productSku,\n index: this.index,\n });\n }\n\n private async addServiceToQuote(servicesData: object): Promise {\n this.$store.commit('CheckoutTotals/APPEND_ITEM_PENDING_CHANGES', this.quoteItemId);\n await this.$store.dispatch('ProductServices/addServiceToQuote', servicesData);\n this.$store.commit('CheckoutTotals/REMOVE_ITEM_PENDING_CHANGES', this.quoteItemId);\n\n await this.$store.dispatch('CheckoutTotals/fetchCartTotals');\n }\n\n private created(): void {\n document.addEventListener('keydown', this.checkKey);\n }\n\n private get getId(): string {\n return this.quoteItemId ?\n `${this.productSku}-${this.service['sku']}-${this.quoteItemId}` :\n `${this.productSku}-${this.service['sku']}`;\n }\n\n private get getName(): string {\n return this.quoteItemId ?\n `${this.service['option_group'] || 'parent'}-${this.quoteItemId}` :\n `${this.service['option_group'] || 'parent'}`;\n }\n\n private checkKey(e): void {\n if ( ! this.modal) return;\n\n e = e || window.event;\n if (e.which === 27 || e.keyCode === 27) {\n this.closeModal();\n }\n }\n\n private closeModal(): void {\n this.modal = false;\n document.body.classList.remove('no-scrolling');\n }\n\n private toggleModal(): void {\n this.modal = ! this.modal;\n document.body.classList.toggle('no-scrolling');\n }\n}\n","import { render, staticRenderFns } from \"./ServiceItemInput.vue?vue&type=template&id=65cb455f&\"\nimport script from \"./ServiceItemInput.vue?vue&type=script&lang=ts&\"\nexport * from \"./ServiceItemInput.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../../../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","import mod from \"-!../../../../../../../../../node_modules/ts-loader/index.js??clonedRuleSet-6.use[0]!../../../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ServiceItemInput.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../../../../../node_modules/ts-loader/index.js??clonedRuleSet-6.use[0]!../../../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ServiceItemInput.vue?vue&type=script&lang=ts&\"","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',[((_vm.service['option_group'] ? 'radio' : 'checkbox')==='checkbox')?_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.selectedProductServices),expression:\"selectedProductServices\"}],attrs:{\"id\":_vm.getId,\"name\":_vm.getName,\"value\":\"true\",\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.selectedProductServices)?_vm._i(_vm.selectedProductServices,\"true\")>-1:(_vm.selectedProductServices)},on:{\"change\":function($event){var $$a=_vm.selectedProductServices,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=\"true\",$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.selectedProductServices=$$a.concat([$$v]))}else{$$i>-1&&(_vm.selectedProductServices=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.selectedProductServices=$$c}}}}):((_vm.service['option_group'] ? 'radio' : 'checkbox')==='radio')?_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.selectedProductServices),expression:\"selectedProductServices\"}],attrs:{\"id\":_vm.getId,\"name\":_vm.getName,\"value\":\"true\",\"type\":\"radio\"},domProps:{\"checked\":_vm._q(_vm.selectedProductServices,\"true\")},on:{\"change\":function($event){_vm.selectedProductServices=\"true\"}}}):_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.selectedProductServices),expression:\"selectedProductServices\"}],attrs:{\"id\":_vm.getId,\"name\":_vm.getName,\"value\":\"true\",\"type\":_vm.service['option_group'] ? 'radio' : 'checkbox'},domProps:{\"value\":(_vm.selectedProductServices)},on:{\"input\":function($event){if($event.target.composing)return;_vm.selectedProductServices=$event.target.value}}}),_vm._v(\" \"),_c('label',{attrs:{\"for\":_vm.getId}},[_c('span',[_c('span',[_c('span',{staticClass:\"title\"},[_vm._v(\"\\n \"+_vm._s(_vm.service['title'])+\"\\n \"),_c('span',{staticClass:\"show-info\",on:{\"click\":function($event){$event.preventDefault();$event.stopPropagation();return _vm.toggleModal()}}},[_c('i',[_c('svg',{attrs:{\"xmlns\":\"http://www.w3.org/2000/svg\",\"height\":\"12\",\"width\":\"12\",\"viewBox\":\"0 0 512 512\"}},[_c('path',{attrs:{\"fill\":\"#626c77\",\"d\":\"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z\"}})])])])]),_vm._v(\" \"),(_vm.service['price_display'] === 'onDemand')?_c('span',{staticClass:\"price\",domProps:{\"textContent\":_vm._s(_vm.$t('Offerte op maat'))}}):(_vm.service['price_display'] === 'none')?_c('span',{staticClass:\"price\"}):(parseInt(_vm.service['price']) === 0)?_c('span',{staticClass:\"price _free\",domProps:{\"textContent\":_vm._s(_vm.$t('Free'))}}):_c('span',{staticClass:\"price\"},[_vm._v(\"€ \"+_vm._s(_vm.service['price'].priceFormat()))])])])]),_vm._v(\" \"),(_vm.service['description'])?_c('div',{staticClass:\"modal__overlay\",class:{'--open' : _vm.modal}},[_c('div',{staticClass:\"__overlay\",on:{\"click\":function($event){return _vm.toggleModal()}}}),_vm._v(\" \"),_c('div',{staticClass:\"modal__wrapper\"},[_c('div',{staticClass:\"modal-header\"},[_c('h4',[_vm._v(_vm._s(_vm.service['option_group'] || 'Meer informatie'))]),_vm._v(\" \"),_c('span',{on:{\"click\":function($event){return _vm.toggleModal()}}})]),_vm._v(\" \"),_c('div',{staticClass:\"modal-content\",domProps:{\"innerHTML\":_vm._s(_vm.service['description'])}})])]):_vm._e()])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }"],"names":["ProductServices","Vue","modal","selectedProductServices","this","$store","getters","index","productSku","hasOwnProperty","service","value","commit","hasChildren","serviceType","quoteAutoRun","addServiceToQuote","cartItemId","quoteItemId","servicesData","dispatch","created","document","addEventListener","checkKey","getId","getName","e","window","event","which","keyCode","closeModal","body","classList","remove","toggleModal","toggle","Prop","required","Inject","Component","name","components","getComponents","render","_vm","_c","_self","_setupProxy","directives","rawName","expression","attrs","domProps","Array","isArray","_i","on","$event","$$a","$$el","target","$$c","checked","$$v","$$i","concat","slice","_q","composing","_v","staticClass","_s","preventDefault","stopPropagation","$t","parseInt","priceFormat","class","_e","staticRenderFns"],"sourceRoot":""}