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AAI,CAACG,YAAY,oBAAoBC,MAAM,CAAC,KAAOnB,EAAW,MAAI,CAACc,EAAImB,GAAGnB,EAAIsB,GAAGtB,EAAIe,GAAG,eAAe,IAAIf,EAAIsB,GAAGpC,EAAY,SAAMc,EAAIuB,QAAQ,IAAG,IACx1G,EACIO,EAAkB,E","sources":["webpack:///./resources/area/web/default/js/components/search/PhysicalStores.vue?b156","webpack:///./resources/area/web/default/js/components/search/PhysicalStores.vue","webpack:///./resources/area/web/default/js/components/search/PhysicalStores.vue?a231","webpack:///./resources/area/web/default/js/components/search/PhysicalStores.vue?6cd9"],"sourcesContent":["\nimport {Component, Vue, Watch} from 'vue-property-decorator';\nimport ServiceContainer from '@flashpointbv/solar-service-container';\n\n@Component({\n name: 'physical-stores-search',\n components: ServiceContainer().getComponents(),\n})\n\nexport default class extends Vue {\n private isLoading: boolean = false;\n private formSubmit: boolean = false;\n private errorMessage: boolean = false;\n private activeIndex: number = null;\n private searchResults: Array = this.$store.getters['FindStores/stores'];\n private query: string = '';\n\n get storeQuery(): string {\n return this.$store.getters['FindStores/query'];\n }\n\n @Watch('storeQuery')\n private handleAutorun(nv, ov): void {\n if (nv !== ov) {\n this.query = nv;\n\n if (this.query) {\n this.searchStores();\n }\n }\n }\n\n private async searchStores(): Promise {\n this.isLoading = true;\n\n try {\n const {data} = await this.$solarClient.get(`api/store/closest`, {\n params: {\n query: this.query,\n limit: 10,\n },\n });\n\n if (data['data']) {\n this.searchResults = data['data'];\n await this.$store.dispatch('FindStores/setStores', data['data']);\n await this.$store.dispatch('FindStores/setQuery', this.query);\n this.errorMessage = false;\n } else {\n this.errorMessage = true;\n }\n\n this.isLoading = false;\n } catch (e) {\n }\n }\n\n private getOpeningHours(store, day): string {\n let times = '';\n\n if (store['opening_hours_' + day + '_openfrom']) {\n times = store['opening_hours_' + day + '_openfrom'];\n\n if (store['opening_hours_' + day + '_opento']) {\n times = times + ' - ' + store['opening_hours_' + day + '_opento'];\n }\n }\n\n return times;\n }\n private getOpeningHoursExtratext(store, day): string {\n let extrainfo = '';\n\n if (store['opening_hours_' + day + '_extratext']) {\n extrainfo = store['opening_hours_' + day + '_extratext'];\n }\n\n return extrainfo;\n }\n\n private openItem(index: number): void {\n this.activeIndex = this.activeIndex === index ? null : index;\n }\n\n private created(): void {\n this.query = this.$store.getters['FindStores/query'];\n\n if (this.query) {\n this.searchStores();\n }\n }\n}\n","import { render, staticRenderFns } from \"./PhysicalStores.vue?vue&type=template&id=2811bbd4&\"\nimport script from \"./PhysicalStores.vue?vue&type=script&lang=ts&\"\nexport * from \"./PhysicalStores.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!./PhysicalStores.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!./PhysicalStores.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:\"physical-stores__container\"},[_c('div',{staticClass:\"__form\"},[_c('form',{attrs:{\"action\":\"\"},on:{\"submit\":function($event){$event.preventDefault();return _vm.searchStores.apply(null, arguments)}}},[_c('div',{staticClass:\"field__container\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.query),expression:\"query\"}],attrs:{\"type\":\"text\",\"name\":\"query\",\"placeholder\":_vm.$t('Postcode / Stad')},domProps:{\"value\":(_vm.query)},on:{\"input\":function($event){if($event.target.composing)return;_vm.query=$event.target.value}}}),_vm._v(\" \"),_c('button',{class:{'--loading' : _vm.isLoading},attrs:{\"disabled\":_vm.query.length < 1}}),_vm._v(\" \"),(_vm.errorMessage)?_c('p',{staticClass:\"validator-err\"},[_vm._v(_vm._s(_vm.$t('This postcode is unknown')))]):_vm._e()])])]),_vm._v(\" \"),_c('div',{staticClass:\"__results\",class:{'--loading' : _vm.isLoading}},_vm._l((_vm.searchResults),function(store,index){return _c('div',{key:index,staticClass:\"__item\"},[_c('header',{class:{'--active' : _vm.activeIndex === index},on:{\"click\":function($event){return _vm.openItem(index)}}},[(store['name'])?_c('h3',[_vm._v(_vm._s(store['name']))]):_vm._e(),_vm._v(\" \"),_c('address',[(store['address'])?_c('span',[_vm._v(_vm._s(store['address']))]):_vm._e(),_vm._v(\" \"),(store['city'])?_c('span',[_vm._v(_vm._s(store['city']))]):_vm._e()])]),_vm._v(\" \"),_c('main',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.activeIndex === index),expression:\"activeIndex === index\"}]},[(store['customer_service_email'])?_c('a',{staticClass:\"--icon --mail\",attrs:{\"href\":`mailto:${store['customer_service_email']}`}},[_vm._v(_vm._s(store['customer_service_email']))]):_vm._e(),_vm._v(\" \"),(store['phone'])?_c('a',{staticClass:\"--icon --phone\",attrs:{\"href\":`tel:${store['phone']}`}},[_vm._v(_vm._s(store['phone']))]):_vm._e(),_vm._v(\" \"),(store['whatsapp_number'])?_c('a',{staticClass:\"--button --center --outline --green --whatsapp\",attrs:{\"href\":`https://wa.me/${store['whatsapp_number']}`,\"target\":\"_blank\"}},[_vm._v(_vm._s(_vm.$t('Ask for more information')))]):_vm._e(),_vm._v(\" \"),_c('h4',[_vm._v(_vm._s(_vm.$t('Opening hours')))]),_vm._v(\" \"),_c('table',_vm._l((store['opening_hours']),function(openingHour){return _c('tr',{key:openingHour.date,class:{ '--active': _vm.isToday(openingHour['date']) }},[_c('td',{staticClass:\"_day\"},[_vm._v(_vm._s(_vm.getDayName(openingHour['date'])))]),_vm._v(\" \"),(_vm.isToday(openingHour['date']))?_c('td',{staticClass:\"_hour\"},[_vm._v(_vm._s(store['opening_hours_today'])+\" \"),(openingHour['message'])?_c('span',{staticClass:\"extra__info\"},[_vm._v(\" \"+_vm._s(openingHour['message']))]):_vm._e()]):(!_vm.isToday(openingHour['date']) &&openingHour['open_from'] && openingHour['open_to'])?_c('td',{staticClass:\"_hour\"},[_vm._v(_vm._s(openingHour['open_from'])+\" - \"+_vm._s(openingHour['open_to'])+\" \"),(openingHour['message'])?_c('span',{staticClass:\"extra__info\"},[_vm._v(\" \"+_vm._s(openingHour['message']))]):_vm._e()]):_c('td',[_vm._v(_vm._s(_vm.$t('Closed'))+\" \"),(openingHour['message'])?_c('span',{staticClass:\"extra__info\"},[_vm._v(\" \"+_vm._s(openingHour['message']))]):_vm._e()])])}),0),_vm._v(\" \"),(store['url'])?_c('a',{staticClass:\"--button --center\",attrs:{\"href\":store['url']}},[_vm._v(_vm._s(_vm.$t('More about'))+\" \"+_vm._s(store['name']))]):_vm._e()])])}),0)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }"],"names":["Vue","isLoading","formSubmit","errorMessage","activeIndex","searchResults","this","$store","getters","query","storeQuery","handleAutorun","nv","ov","searchStores","data","$solarClient","get","params","limit","dispatch","e","getOpeningHours","store","day","times","getOpeningHoursExtratext","extrainfo","openItem","index","created","Watch","Component","name","components","getComponents","render","_vm","_c","_self","_setupProxy","staticClass","attrs","on","$event","preventDefault","apply","arguments","directives","rawName","value","expression","$t","domProps","target","composing","_v","class","length","_s","_e","_l","key","openingHour","date","isToday","getDayName","staticRenderFns"],"sourceRoot":""}