(window.webpackJsonp=window.webpackJsonp||[]).push([[31],{370:function(module,exports,__webpack_require__){},420:function(module,__webpack_exports__,__webpack_require__){"use strict";var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_index_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_54a1b662_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(370);__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_index_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_54a1b662_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__).a},450:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var render=function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _vm.contactUsTopic?_c("div",{staticClass:"contact page"},[_c("div",{staticClass:"header-background-image",style:_vm.backgroundImage(_vm.headerParagraph.backgroundImage,_vm.isHeader=!0)},[_vm.headerParagraph?_c("div",{staticClass:"header"},[_c("div",{staticClass:"width-container"},[_vm.headerParagraph.title?_c("h1",{staticClass:"header-title"},[_vm._v(_vm._s(_vm.headerParagraph.title))]):_vm._e(),_vm._v(" "),_vm.headerParagraph.subTitle?_c("p",{staticClass:"header-subtitle"},[_vm._v(_vm._s(_vm.headerParagraph.subTitle))]):_vm._e(),_vm._v(" "),_c("Sl-divider",{staticClass:"sl-divider"}),_vm._v(" "),_vm.headerParagraph.description?_c("sc-markitup",{staticClass:"header-description",attrs:{content:_vm.headerParagraph.description}}):_vm._e()],1)]):_vm._e()]),_vm._v(" "),_vm.form?_c("div",[_c("Sl-form",{attrs:{item:_vm.form.form,title:_vm.form.title}})],1):_vm._e(),_vm._v(" "),_c("div",{staticClass:"background-image-right",style:_vm.backgroundImage(_vm.adresses.backgroundImage)},[_c("div",{staticClass:"background-image-left",style:_vm.backgroundImage(_vm.form.backgroundImage)},[_vm.adresses&&_vm.adresses.subParagraphs?_c("div",{staticClass:"offices paragraph-spacing"},_vm._l(_vm.adresses.subParagraphs,(function(office,index){return _c("div",{key:index,staticClass:"office"},[_c("p",{staticClass:"office-title"},[_vm._v(_vm._s(office.fields.title))]),_vm._v(" "),_c("p",{staticClass:"office-subtitle"},[_vm._v(_vm._s(office.fields.subtitle))]),_vm._v(" "),_c("Sl-divider",{staticClass:"sl-divider-color"}),_vm._v(" "),_c("sc-markitup",{staticClass:"office-description",attrs:{content:office.fields.description}})],1)})),0):_vm._e()])])]):_vm._e()};render._withStripped=!0;var dist=__webpack_require__(7),sl_form=__webpack_require__(312),sl_divider=__webpack_require__(305),pages_contactvue_type_script_lang_js_={name:"contact",components:{SlForm:sl_form.a,SlDivider:sl_divider.a},mixins:[dist.mixins.scMetaTopic],data:function(){return{contactUsTopic:void 0}},beforeMount:function(){this.fetchTopic(),this.fetchMeta("contact")},computed:{headerParagraph:function(){if(this.contactUsTopic&&this.contactUsTopic.fields&&this.contactUsTopic.fields.paragraphs){var header=this.getParagraphFromTopic("header");return header&&header.fields?{title:header.fields.title?header.fields.title:void 0,subTitle:header.fields.subtitle?header.fields.subtitle:void 0,description:header.fields.description?header.fields.description:void 0,backgroundImage:header.fields.image?header.fields.image:void 0}:void 0}},form:function(){if(this.contactUsTopic&&this.contactUsTopic.fields&&this.contactUsTopic.fields.paragraphs){var form=this.getParagraphFromTopic("form");return form&&form.fields?{title:form.fields.title?form.fields.title:void 0,form:form.fields.references?form.fields.references[0]:void 0,backgroundImage:form.fields.image?form.fields.image:void 0}:void 0}},adresses:function(){if(this.contactUsTopic&&this.contactUsTopic.fields&&this.contactUsTopic.fields.paragraphs){var office=this.getParagraphFromTopic("adresses");return office&&office.fields?{subParagraphs:office.fields.subParagraphs?office.fields.subParagraphs:void 0,backgroundImage:office.fields.image?office.fields.image:void 0}:void 0}}},methods:{backgroundImage:function(_backgroundImage,isHeader){if(_backgroundImage&&_backgroundImage.fields&&_backgroundImage.fields.landscape&&_backgroundImage.fields.landscape.fields&&_backgroundImage.fields.landscape.fields.file)return isHeader?"background-image: linear-gradient(180deg, rgba(17,18,50,0.5) 0%, rgba(17,18,50,1) 90%), url(".concat(optimiseImageUrl({url:_backgroundImage.fields.landscape.fields.file.url}),")"):"background-image: url(".concat(optimiseImageUrl({url:_backgroundImage.fields.landscape.fields.file.url}),")")},getParagraphFromTopic:function(name){if(this.contactUsTopic.fields&&this.contactUsTopic.fields.paragraphs){var paragraph=this.contactUsTopic.fields.paragraphs.filter((function(paragraph){return paragraph.fields.name.includes(name)}));return paragraph.length>0?paragraph[0]:void 0}},fetchTopic:function(){var _this=this;this.$getEntriesWithFallbackLanguage({content_type:"topics","fields.name":"contact us",include:3}).then((function(res){res.items.length>0&&(_this.contactUsTopic=res.items[0])})).catch((function(err){}))}}},componentNormalizer=(__webpack_require__(420),__webpack_require__(1)),component=Object(componentNormalizer.a)(pages_contactvue_type_script_lang_js_,render,[],!1,null,"54a1b662",null);component.options.__file="src/pages/contact/index.vue";__webpack_exports__.default=component.exports}}]);