%PDF- %PDF-
Direktori : /home/forge/takeaseat.eco-n-tech.co.uk/.nuxt/dist/server/pages/ |
Current File : //home/forge/takeaseat.eco-n-tech.co.uk/.nuxt/dist/server/pages/contact-us.js.map |
{"version":3,"file":"pages/contact-us.js","sources":["webpack:///./pages/contact-us.vue?749b","webpack:///./pages/contact-us.vue","webpack:///./pages/contact-us.vue?ee76","webpack:///./pages/contact-us.vue?f42c"],"sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"page-wrapper\"},[_c('PageHeader',{attrs:{\"classObject\":\"bg-green\"}},[_c('img',{staticClass:\"relative z-20 mb-8\",attrs:{\"src\":require(\"assets/images/logo-white-small.svg\"),\"alt\":\"Takeaseat\"}}),_vm._v(\" \"),_c('h1',{staticClass:\"relative z-20 text-5xl lg:text-7xl font-bold\"},[_vm._v(\"Contact Us\")])]),_vm._ssrNode(\" \"),(_vm.success == false)?_vm._ssrNode(\"<section id=\\\"register-interest\\\" class=\\\"bg-gray py-20 px-8 mb-8\\\">\",\"</section>\",[_vm._ssrNode(\"<div class=\\\"max-w-xl mx-auto w-full\\\"><header class=\\\"text-center mb-10\\\"><h2 class=\\\"text-2xl md:text-4xl font-bold\\\">Request call-back</h2></header></div> \"),_vm._ssrNode(\"<div class=\\\"mx-auto w-full max-w-xl\\\">\",\"</div>\",[_vm._ssrNode(((_vm.error)?(\"<span class=\\\"block mb-6 bg-red p-3 text-center text-sm text-white rounded-lg\\\">\"+_vm._ssrEscape(_vm._s(_vm.error))+\"</span>\"):\"<!---->\")+\" \"),_c('ValidationObserver',{ref:\"form\"},[_c('form',{attrs:{\"role\":\"form\",\"method\":\"POST\"},on:{\"submit\":function($event){$event.preventDefault();return _vm.signup($event)}}},[_c('div',{staticClass:\"grid grid-cols-1 md:grid-cols-2 gap-x-4\"},[_c('t-input-group',{attrs:{\"label\":\"First Name\"}},[_c('ValidationProvider',{attrs:{\"rules\":\"required\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('t-input',{attrs:{\"name\":\"firstname\",\"id\":\"firstname\"},model:{value:(_vm.form.firstname),callback:function ($$v) {_vm.$set(_vm.form, \"firstname\", $$v)},expression:\"form.firstname\"}}),_vm._v(\" \"),(errors[0])?_c('span',{staticClass:\"text-red text-xs px-2 mt-3\"},[_vm._v(_vm._s(errors[0]))]):_vm._e()]}}],null,false,593974471)})],1),_vm._v(\" \"),_c('t-input-group',{attrs:{\"label\":\"Last Name\"}},[_c('ValidationProvider',{attrs:{\"rules\":\"required\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('t-input',{attrs:{\"name\":\"lastname\",\"id\":\"lastname\"},model:{value:(_vm.form.lastname),callback:function ($$v) {_vm.$set(_vm.form, \"lastname\", $$v)},expression:\"form.lastname\"}}),_vm._v(\" \"),(errors[0])?_c('span',{staticClass:\"text-red text-xs px-2 mt-3\"},[_vm._v(_vm._s(errors[0]))]):_vm._e()]}}],null,false,525170263)})],1)],1),_vm._v(\" \"),_c('t-input-group',{attrs:{\"label\":\"Email\"}},[_c('ValidationProvider',{attrs:{\"name\":\"Email\",\"rules\":\"required|email\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('t-input',{attrs:{\"name\":\"email\",\"id\":\"email\"},model:{value:(_vm.form.email),callback:function ($$v) {_vm.$set(_vm.form, \"email\", $$v)},expression:\"form.email\"}}),_vm._v(\" \"),(errors[0])?_c('span',{staticClass:\"text-red text-xs px-2 mt-3\"},[_vm._v(_vm._s(errors[0]))]):_vm._e()]}}],null,false,2251058550)})],1),_vm._v(\" \"),_c('t-input-group',{attrs:{\"label\":\"Phone\"}},[_c('t-input',{attrs:{\"name\":\"phone\",\"id\":\"phone\"},model:{value:(_vm.form.phone),callback:function ($$v) {_vm.$set(_vm.form, \"phone\", $$v)},expression:\"form.phone\"}})],1),_vm._v(\" \"),_c('ValidationProvider',{attrs:{\"name\":\"Consent\",\"rules\":\"required\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('label',{staticClass:\"flex items-center px-3 mb-3\"},[_c('t-checkbox',{attrs:{\"name\":\"constent\"},model:{value:(_vm.form.consent),callback:function ($$v) {_vm.$set(_vm.form, \"consent\", $$v)},expression:\"form.consent\"}}),_vm._v(\" \"),_c('span',{staticClass:\"block text-sm pl-2.5\"},[_vm._v(\"I agree to allow Take a seat to store and process my personal data.\")])],1),_vm._v(\" \"),(errors[0])?_c('span',{staticClass:\"text-red text-xs px-2 mt-3\"},[_vm._v(_vm._s(errors[0]))]):_vm._e()]}}],null,false,190755096)}),_vm._v(\" \"),_c('label',{staticClass:\"flex items-center px-3 mb-6\"},[_c('t-checkbox',{attrs:{\"name\":\"constent\"},model:{value:(_vm.form.communications),callback:function ($$v) {_vm.$set(_vm.form, \"communications\", $$v)},expression:\"form.communications\"}}),_vm._v(\" \"),_c('span',{staticClass:\"block text-sm pl-2.5\"},[_vm._v(\"I agree to receive marketing communications from Take a seat.\")])],1),_vm._v(\" \"),_c('div',{staticClass:\"flex items-center justify-center\"},[_c('button',{staticClass:\"relative z-20 block px-6 py-3 text-center bg-black border border-black text-white font-medium rounded-full hover:bg-white hover:text-black hover:shadow-lg focus:ring-none focus:outline-none transition ease-in-out duration-200\",attrs:{\"type\":\"submit\"}},[(_vm.working == false)?_c('span',[_vm._v(\"Submit\")]):_c('span',{staticClass:\"flex items-center justify-center\"},[_c('svg',{staticClass:\"animate-spin -ml-1 mr-3 h-5 w-5 text-current\",attrs:{\"xmlns\":\"http://www.w3.org/2000/svg\",\"fill\":\"none\",\"viewBox\":\"0 0 24 24\"}},[_c('circle',{staticClass:\"opacity-25\",attrs:{\"cx\":\"12\",\"cy\":\"12\",\"r\":\"10\",\"stroke\":\"currentColor\",\"stroke-width\":\"4\"}}),_vm._v(\" \"),_c('path',{staticClass:\"opacity-75\",attrs:{\"fill\":\"currentColor\",\"d\":\"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z\"}})]),_vm._v(\" \"),_c('span',[_vm._v(\"Hold on tight!\")])])])])],1)])],2)],2):_vm._ssrNode((\"<section id=\\\"register-interest\\\" class=\\\"bg-gray py-20 px-8 mb-8\\\"><div class=\\\"mx-auto w-full max-w-xl text-center success-message\\\"><div>\"+(_vm._s(_vm.message.inlineMessage))+\"</div></div></section>\"))],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nexport default {\n head () {\n return {\n titleTemplate: 'Contact Us | %s',\n }\n },\n\n data() {\n return {\n working: false,\n portal_id: '6337642',\n form_guid: 'e7755638-df09-4484-8f50-6e5be7855eef',\n success: false,\n error: '',\n message: '',\n form: {\n firstname: '',\n lastname: '',\n email: '',\n phone: '',\n consent: true,\n communications: true\n }\n }\n },\n\n methods: {\n async signup() {\n this.$refs.form.validate().then(success => {\n if (!success) {\n return;\n }\n\n let hubspotutk = document.cookie.split('; ')\n .find(row => row.startsWith('hubspotutk='))\n .split('=')[1];\n\n const contactObject = {\n \"fields\": [\n {\n \"name\": \"counsellor\",\n \"value\": \"Partnership\"\n },\n {\n \"name\": \"email\",\n \"value\": this.form.email\n },\n {\n \"name\": \"firstname\",\n \"value\": this.form.firstname\n },\n {\n \"name\": \"lastname\",\n \"value\": this.form.lastname\n },\n {\n \"name\": \"phone\",\n \"value\": this.form.phone\n }\n ],\n \"context\": {\n \"hutk\": hubspotutk,\n \"pageUri\": \"https://www.takeaseat.co.uk/partnerships\",\n \"pageName\": \"Takeaseat Partnerships Landing Page\"\n },\n \"legalConsentOptions\": {\n \"consent\": { // Include this object when GDPR options are enabled\n \"consentToProcess\": this.form.consent,\n \"text\": \"I agree to allow Take a seat to store and process my personal data.\",\n \"communications\": [\n {\n \"value\": this.form.communications,\n \"subscriptionTypeId\": 999,\n \"text\": \"I agree to receive marketing communications from Take a seat.\"\n }\n ]\n }\n }\n };\n\n this.error = '';\n this.working = true;\n this.$axios.post('https://api.hsforms.com/submissions/v3/integration/submit/'+this.portal_id+'/'+this.form_guid, contactObject)\n .then((response) => {\n if(response.status == 200) {\n this.success = true;\n this.message = response.data;\n }\n }).catch(error => {\n this.working = false;\n\n if (error.response && error.response.status === 400) {\n this.error = 'Oops, something went wrong, please check your information and try again.';\n }\n })\n })\n }\n }\n}\n","import mod from \"-!../node_modules/babel-loader/lib/index.js??ref--2-0!../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./contact-us.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../node_modules/babel-loader/lib/index.js??ref--2-0!../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./contact-us.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./contact-us.vue?vue&type=template&id=51b941b4&\"\nimport script from \"./contact-us.vue?vue&type=script&lang=js&\"\nexport * from \"./contact-us.vue?vue&type=script&lang=js&\"\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 \"da427692\"\n \n)\n\nexport default component.exports\n\n/* nuxt-component-imports */\ninstallComponents(component, {PageHeader: require('/home/forge/takeaseat.eco-n-tech.co.uk/components/layout/PageHeader.vue').default,Header: require('/home/forge/takeaseat.eco-n-tech.co.uk/components/layout/Header.vue').default})\n"],"mappings":";;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AADA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AANA;AAPA;AAgBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAIA;AACA;AAEA;AACA;AAFA;AAKA;AACA;AAFA;AAKA;AACA;AAFA;AAKA;AACA;AAFA;AAKA;AACA;AAFA;AAKA;AACA;AACA;AACA;AAHA;AAKA;AACA;AAAA;AACA;AACA;AACA;AAEA;AACA;AACA;AAHA;AAJA;AADA;AA5BA;AA2CA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAvEA;AA1BA;;ACtFA;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;A","sourceRoot":""}