%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/forge/takeaseat.eco-n-tech.co.uk/.nuxt/dist/server/pages/
Upload File :
Create Path :
Current File : //home/forge/takeaseat.eco-n-tech.co.uk/.nuxt/dist/server/pages/contact-us.js

exports.ids = [55];
exports.modules = {

/***/ 231:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/contact-us.vue?vue&type=template&id=51b941b4&
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":__webpack_require__(20),"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){
var errors = ref.errors;
return [_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){
var errors = ref.errors;
return [_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){
var errors = ref.errors;
return [_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){
var errors = ref.errors;
return [_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)}
var staticRenderFns = []


// CONCATENATED MODULE: ./pages/contact-us.vue?vue&type=template&id=51b941b4&

// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/contact-us.vue?vue&type=script&lang=js&
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ var contact_usvue_type_script_lang_js_ = ({
  head() {
    return {
      titleTemplate: 'Contact Us | %s'
    };
  },

  data() {
    return {
      working: false,
      portal_id: '6337642',
      form_guid: 'e7755638-df09-4484-8f50-6e5be7855eef',
      success: false,
      error: '',
      message: '',
      form: {
        firstname: '',
        lastname: '',
        email: '',
        phone: '',
        consent: true,
        communications: true
      }
    };
  },

  methods: {
    async signup() {
      this.$refs.form.validate().then(success => {
        if (!success) {
          return;
        }

        let hubspotutk = document.cookie.split('; ').find(row => row.startsWith('hubspotutk=')).split('=')[1];
        const contactObject = {
          "fields": [{
            "name": "counsellor",
            "value": "Partnership"
          }, {
            "name": "email",
            "value": this.form.email
          }, {
            "name": "firstname",
            "value": this.form.firstname
          }, {
            "name": "lastname",
            "value": this.form.lastname
          }, {
            "name": "phone",
            "value": this.form.phone
          }],
          "context": {
            "hutk": hubspotutk,
            "pageUri": "https://www.takeaseat.co.uk/partnerships",
            "pageName": "Takeaseat Partnerships Landing Page"
          },
          "legalConsentOptions": {
            "consent": {
              // Include this object when GDPR options are enabled
              "consentToProcess": this.form.consent,
              "text": "I agree to allow Take a seat to store and process my personal data.",
              "communications": [{
                "value": this.form.communications,
                "subscriptionTypeId": 999,
                "text": "I agree to receive marketing communications from Take a seat."
              }]
            }
          }
        };
        this.error = '';
        this.working = true;
        this.$axios.post('https://api.hsforms.com/submissions/v3/integration/submit/' + this.portal_id + '/' + this.form_guid, contactObject).then(response => {
          if (response.status == 200) {
            this.success = true;
            this.message = response.data;
          }
        }).catch(error => {
          this.working = false;

          if (error.response && error.response.status === 400) {
            this.error = 'Oops, something went wrong, please check your information and try again.';
          }
        });
      });
    }

  }
});
// CONCATENATED MODULE: ./pages/contact-us.vue?vue&type=script&lang=js&
 /* harmony default export */ var pages_contact_usvue_type_script_lang_js_ = (contact_usvue_type_script_lang_js_); 
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(1);

// CONCATENATED MODULE: ./pages/contact-us.vue





/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  pages_contact_usvue_type_script_lang_js_,
  render,
  staticRenderFns,
  false,
  null,
  null,
  "da427692"
  
)

/* harmony default export */ var contact_us = __webpack_exports__["default"] = (component.exports);

/* nuxt-component-imports */
installComponents(component, {PageHeader: __webpack_require__(36).default,Header: __webpack_require__(12).default})


/***/ })

};;
//# sourceMappingURL=contact-us.js.map

Zerion Mini Shell 1.0