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mBC,mBAEZlC,G,UAAAA,C,uLCUrB,SAXgB,E,QAAA,GACd,UACA,IACA,KACA,EACA,KACA,KACA,MAI8B,O,iJClBqM,QAAe,G,sDCApP,IAAImC,EAAS,SAASA,SAAS,IAAIC,EAAIjC,KAAKkC,EAAGD,EAAIE,MAAMD,GAAUD,EAAIE,MAAMC,YAAY,OAAOF,EAAG,MAAM,CAACG,YAAY,+BAA+B,CAAEJ,EAAa,UAAEC,EAAG,OAAO,CAACG,YAAY,YAAY,CAACH,EAAG,UAAUD,EAAIK,KAAKL,EAAIM,GAAG,MAASN,EAAIvB,WAAaK,OAAOyB,KAAKP,EAAIrB,iBAAiB6B,OAAQP,EAAG,MAAM,CAACG,YAAY,qBAAqB,CAACH,EAAG,KAAK,CAACQ,MAAMT,EAAItB,YAAc,eAAiB,cAAcgC,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOX,EAAIb,gBAAgB,IAAI,CAACa,EAAIM,GAAG,WAAWN,EAAIY,GAAGZ,EAAIa,GAAG,iCAAiC,YAAYb,EAAIM,GAAG,KAAKL,EAAG,MAAM,CAACG,YAAY,0BAA0BK,MAAMT,EAAItB,YAAc,eAAiB,eAAesB,EAAIc,GAAId,EAAmB,iBAAE,SAASe,GAAS,OAAOd,EAAG,MAAM,CAACG,YAAY,6BAA6B,CAACH,EAAG,eAAe,CAACe,MAAM,CAAC,QAAUD,MAAY,EAAE,IAAG,KAAKf,EAAIK,MAC5zB,EACIY,EAAkB,E","sources":["webpack:///./resources/area/web/default/js/components/catalog/product/ProductServices.vue?072a","webpack:///./resources/area/web/default/js/components/catalog/product/ProductServices.vue","webpack:///./resources/area/web/default/js/components/catalog/product/ProductServices.vue?451e","webpack:///./resources/area/web/default/js/components/catalog/product/ProductServices.vue?4d8a"],"sourcesContent":["\nimport {Component, Prop, Vue, Provide} from \"vue-property-decorator\";\nimport ServiceContainer from \"@flashpointbv/solar-service-container\";\n\n@Component({\n name: 'catalog-product-services',\n components: ServiceContainer().getComponents(),\n})\nexport default class ProductServices extends Vue {\n @Prop({required: true}) productSku!: string;\n @Prop({default: ''}) quoteItemId!: string;\n @Prop({default: () => []}) readonly quoteItemServices!: object[];\n @Prop({default: false}) readonly quoteAutoRun!: boolean;\n @Prop({default: 0}) readonly index!: number;\n\n @Provide() serviceProductSku = this.productSku;\n @Provide() serviceQuoteItemId = this.quoteItemId;\n @Provide() serviceQuoteItemServices = this.quoteItemServices;\n @Provide() serviceQuoteAutoRun = this.quoteAutoRun;\n @Provide() serviceIndex = this.index;\n\n private isLoading: boolean = true;\n private isCollapsed: boolean = true;\n\n private get productServices(): Array {\n return this.$store.getters['ProductServices/productServices'][this.index][this.productSku] ?\n Object.values(this.$store.getters['ProductServices/productServices'][this.index][this.productSku]).sort((a, b) => a['sort_order'] - b['sort_order']) :\n [];\n }\n\n private toggleCollapse(): void {\n this.isCollapsed = ! this.isCollapsed;\n }\n\n private async created(): Promise {\n this.$store.commit('ProductServices/SET_CART_ITEM_ID', this.quoteItemId);\n\n await this.$store.dispatch('ProductServices/getAllProductServices', {\n productSku: this.productSku,\n quoteItemServices: this.quoteItemServices,\n index: this.index,\n });\n\n this.isLoading = false;\n\n if (this.$store.getters['ProductServices/selectedProductServices'][this.index][this.productSku]) {\n this.isCollapsed = false;\n }\n }\n}\n","import { render, staticRenderFns } from \"./ProductServices.vue?vue&type=template&id=4882e9a1&\"\nimport script from \"./ProductServices.vue?vue&type=script&lang=ts&\"\nexport * from \"./ProductServices.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!./ProductServices.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!./ProductServices.vue?vue&type=script&lang=ts&\"","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"product__services-container\"},[(_vm.isLoading)?_c('span',{staticClass:\"_loading\"},[_c('span')]):_vm._e(),_vm._v(\" \"),( ! _vm.isLoading && Object.keys(_vm.productServices).length)?_c('div',{staticClass:\"product__services\"},[_c('h4',{class:_vm.isCollapsed ? 'is-collapsed' : 'is-expanded',on:{\"click\":function($event){return _vm.toggleCollapse()}}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('What else can we do for you?'))+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"product__services--list\",class:_vm.isCollapsed ? 'is-collapsed' : 'is-expanded'},_vm._l((_vm.productServices),function(service){return _c('div',{staticClass:\"product__services--groups\"},[_c('service-item',{attrs:{\"service\":service}})],1)}),0)]):_vm._e()])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }"],"names":["ProductServices","Vue","serviceProductSku","this","productSku","serviceQuoteItemId","quoteItemId","serviceQuoteItemServices","quoteItemServices","serviceQuoteAutoRun","quoteAutoRun","serviceIndex","index","isLoading","isCollapsed","productServices","$store","getters","Object","values","sort","a","b","toggleCollapse","created","commit","dispatch","Prop","required","default","Provide","Component","name","components","getComponents","render","_vm","_c","_self","_setupProxy","staticClass","_e","_v","keys","length","class","on","$event","_s","$t","_l","service","attrs","staticRenderFns"],"sourceRoot":""}