{"version":3,"file":"post.min.js","names":["Vue","component","props","recaptcha","String","data","categories","selectedCategory","open","selected","Title","userData","company","name","email","phone","category","message","settings","sendingData","submitted","resultMessage","succeeded","phrases","PhrasesService","shared","getPhrase","send","selectcategory","methods","openDropdown","closeDropDown","selectCategory","item","_this","length","axios","post","window","_data","contactApiUrl","langabbr","languageAbbr","then","response","catch","e","finally","mounted","created","document","addEventListener","event","$el","contains","target","tagName","template","constructor","i","phrase","T","V","title","_app","el","baseUrl","getIconUrl","icon","svg4everybody","querySelector","preventDefault","stopPropagation","classList","toggle","closest","nextElementSibling","body","closeResponsiveMenu","responsiveMenu","responsiveMenuContent","burger","$","on","_trigger","_results","siblings","parent","toggleClass","stop","slideToggle","not","removeClass","slideUp"],"sources":["post.min.js"],"sourcesContent":["Vue.component('contact', {\r\n props: { recaptcha: String },\r\n data: function () {\r\n return {\r\n categories: [],\r\n selectedCategory: {\r\n open: false,\r\n selected: {\r\n Title: '',\r\n }\r\n },\r\n userData: {\r\n company: '',\r\n name: '',\r\n email: '',\r\n phone: '',\r\n category: '',\r\n message: ''\r\n },\r\n settings: {\r\n sendingData: false,\r\n submitted: false,\r\n resultMessage: '',\r\n succeeded: null\r\n },\r\n phrases: {\r\n company: PhrasesService.shared.getPhrase('contactform_company'),\r\n name: PhrasesService.shared.getPhrase('contactform_name'),\r\n email: PhrasesService.shared.getPhrase('contactform_email'),\r\n phone: PhrasesService.shared.getPhrase('contactform_phone'),\r\n category: PhrasesService.shared.getPhrase('contactform_category'),\r\n message: PhrasesService.shared.getPhrase('contactform_message'),\r\n send: PhrasesService.shared.getPhrase('contactform_send'),\r\n selectcategory: PhrasesService.shared.getPhrase('contactform_selectcategory'),\r\n },\r\n };\r\n },\r\n methods: {\r\n openDropdown() {\r\n this.selectedCategory.open = true;\r\n },\r\n closeDropDown() {\r\n this.selectedCategory.open = false;\r\n },\r\n selectCategory(item) {\r\n this.selectedCategory.open = false;\r\n this.selectedCategory.selected = item;\r\n },\r\n send() {\r\n var _this = this;\r\n if (_this.settings.sendingData) { return; }\r\n\r\n _this.settings.submitted = true;\r\n _this.settings.resultMessage = '';\r\n\r\n if (!_this.userData.company.length || !_this.userData.name.length\r\n || !_this.userData.email.length || !_this.userData.phone.length\r\n || !_this.userData.message.length) {\r\n return;\r\n }\r\n _this.settings.sendingData = true;\r\n\r\n axios.post(window._data.contactApiUrl + 'send',\r\n {\r\n company: _this.userData.company,\r\n name: _this.userData.name,\r\n email: _this.userData.email,\r\n phone: _this.userData.phone,\r\n category: _this.selectedCategory.selected.Title,\r\n message: _this.userData.message,\r\n langabbr: window._data.languageAbbr\r\n }).then(function (response) {\r\n _this.settings.succeeded = response.data.succeeded;\r\n _this.settings.resultMessage = response.data.message;\r\n _this.settings.sendingData = false;\r\n }).catch(function (e) {\r\n _this.settings.sendingData = false;\r\n }).finally(function (e) {\r\n _this.settings.sendingData = false;\r\n });\r\n }\r\n },\r\n mounted() {\r\n this.categories = window._data.categories;\r\n },\r\n created() {\r\n document.addEventListener('click', event => {\r\n if (this.$el.contains(event.target)) {\r\n if (event.target.tagName == 'INPUT' || event.target.tagName == 'TEXTAREA') {\r\n this.closeDropDown()\r\n }\r\n return\r\n }\r\n this.closeDropDown()\r\n })\r\n }\r\n ,\ntemplate: `\r\n