%PDF- %PDF-
Mini Shell

Mini Shell

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

exports.ids = [73,21,38];
exports.modules = {

/***/ 133:
/***/ (function(module, exports, __webpack_require__) {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(139);
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add CSS to SSR context
var add = __webpack_require__(6).default
module.exports.__inject__ = function (context) {
  add("68b99d2a", content, true, context)
};

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_4_oneOf_1_0_node_modules_nuxt_postcss8_node_modules_css_loader_dist_cjs_js_ref_4_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_nuxt_postcss8_node_modules_postcss_loader_dist_cjs_js_ref_4_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_NextAvailability_vue_vue_type_style_index_0_id_6ba927ca_lang_postcss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(133);
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_4_oneOf_1_0_node_modules_nuxt_postcss8_node_modules_css_loader_dist_cjs_js_ref_4_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_nuxt_postcss8_node_modules_postcss_loader_dist_cjs_js_ref_4_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_NextAvailability_vue_vue_type_style_index_0_id_6ba927ca_lang_postcss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_4_oneOf_1_0_node_modules_nuxt_postcss8_node_modules_css_loader_dist_cjs_js_ref_4_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_nuxt_postcss8_node_modules_postcss_loader_dist_cjs_js_ref_4_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_NextAvailability_vue_vue_type_style_index_0_id_6ba927ca_lang_postcss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_4_oneOf_1_0_node_modules_nuxt_postcss8_node_modules_css_loader_dist_cjs_js_ref_4_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_nuxt_postcss8_node_modules_postcss_loader_dist_cjs_js_ref_4_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_NextAvailability_vue_vue_type_style_index_0_id_6ba927ca_lang_postcss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_4_oneOf_1_0_node_modules_nuxt_postcss8_node_modules_css_loader_dist_cjs_js_ref_4_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_nuxt_postcss8_node_modules_postcss_loader_dist_cjs_js_ref_4_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_NextAvailability_vue_vue_type_style_index_0_id_6ba927ca_lang_postcss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));


/***/ }),

/***/ 139:
/***/ (function(module, exports, __webpack_require__) {

// Imports
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(5);
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
// Module
___CSS_LOADER_EXPORT___.push([module.i, ".time[data-v-6ba927ca]{display:block;border-radius:0.25rem;border-width:1px;--tw-border-opacity:1;border-color:rgba(51, 51, 51, var(--tw-border-opacity));--tw-border-opacity:0.1;padding:0.5rem;text-align:center;font-size:0.875rem;line-height:1.25rem;line-height:1.25rem;transition-property:background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;transition-property:background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-property:background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;transition-duration:100ms;}.time[data-v-6ba927ca]:focus, .time[data-v-6ba927ca]:hover{--tw-bg-opacity:1;background-color:rgba(51, 51, 51, var(--tw-bg-opacity))}.time[data-v-6ba927ca]:focus, .time[data-v-6ba927ca]:hover{--tw-text-opacity:1;color:rgba(255, 255, 255, var(--tw-text-opacity))}", ""]);
// Exports
module.exports = ___CSS_LOADER_EXPORT___;


/***/ }),

/***/ 140:
/***/ (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!./components/blocks/NextAvailability.vue?vue&type=template&id=6ba927ca&scoped=true&
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.is_booking_enabled)?_c('div',{staticClass:"w-full relative flex items-center",class:_vm.classes,on:{"mouseleave":function($event){_vm.isOpen = false}}},[_vm._ssrNode("<button type=\"button\" class=\"mt-4 uppercase font-medium flex items-center justify-center focus:outline-none hover:text-yellow transition duration-200\" data-v-6ba927ca>\n    Book Now\n    <svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\""+(_vm._ssrClass("w-4 h-4 ml-1",_vm.isOpen ? 'transform rotate-180' : ''))+" data-v-6ba927ca><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M19 9l-7 7-7-7\" data-v-6ba927ca></path></svg></button> "),(_vm.isOpen)?_vm._ssrNode("<div class=\"absolute z-20 top-full left-0 w-full p-6 bg-white rounded-lg shadow\" data-v-6ba927ca>","</div>",[(_vm.isLoading == true)?_vm._ssrNode("<div class=\"flex items-center justify-center\" data-v-6ba927ca>","</div>",[_vm._ssrNode("<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" class=\"animate-spin -ml-1 mr-3 h-5 w-5 text-current\" data-v-6ba927ca><circle cx=\"12\" cy=\"12\" r=\"10\" stroke=\"currentColor\" stroke-width=\"4\" class=\"opacity-25\" data-v-6ba927ca></circle> <path 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\" class=\"opacity-75\" data-v-6ba927ca></path></svg> <span data-v-6ba927ca>Loading Times</span>")],2):(_vm.availability.length > 0)?_vm._ssrNode("<div data-v-6ba927ca>","</div>",[_vm._ssrNode("<span class=\"block font-bold mb-2\" data-v-6ba927ca>"+_vm._ssrEscape(_vm._s(_vm.$moment.utc(_vm.date).format('DD/MM/Y')))+"</span> "),_vm._ssrNode("<div class=\"grid grid-cols-3 gap-2\" data-v-6ba927ca>","</div>",_vm._l((_vm.availability),function(time,key){return _c('NuxtLink',{key:key,staticClass:"time",attrs:{"to":'/booking/'+_vm.therapist_slug+'?date='+_vm.$moment.utc(time.start).format('Y-MM-DD')+'&time='+time.start}},[_vm._v(_vm._s(_vm.$moment.utc(time.start).format('H:mm')))])}),1)],2):_vm._ssrNode(("<div class=\"flex items-center justify-center\" data-v-6ba927ca><span class=\"font-bold\" data-v-6ba927ca>No availability</span></div>"))]):_vm._e()],2):_vm._e()}
var staticRenderFns = []


// CONCATENATED MODULE: ./components/blocks/NextAvailability.vue?vue&type=template&id=6ba927ca&scoped=true&

// 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!./components/blocks/NextAvailability.vue?vue&type=script&lang=js&
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ var NextAvailabilityvue_type_script_lang_js_ = ({
  props: {
    therapist_id: Number,
    therapist_slug: String,
    is_booking_enabled: Boolean,
    classes: String
  },

  data() {
    return {
      isLoading: false,
      isOpen: false,
      date: null,
      availability: []
    };
  },

  methods: {
    async openAvailability() {
      this.isLoading = true;
      this.isOpen = true;
      await this.$axios.post('/availability/next/' + this.therapist_id).then(response => {
        this.isLoading = false;
        this.date = response.data.date;
        this.availability = response.data.slots;
      }).catch(error => {
        this.isLoading = false;
      });
    }

  }
});
// CONCATENATED MODULE: ./components/blocks/NextAvailability.vue?vue&type=script&lang=js&
 /* harmony default export */ var blocks_NextAvailabilityvue_type_script_lang_js_ = (NextAvailabilityvue_type_script_lang_js_); 
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(1);

// CONCATENATED MODULE: ./components/blocks/NextAvailability.vue



function injectStyles (context) {
  
  var style0 = __webpack_require__(138)
if (style0.__inject__) style0.__inject__(context)

}

/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  blocks_NextAvailabilityvue_type_script_lang_js_,
  render,
  staticRenderFns,
  false,
  injectStyles,
  "6ba927ca",
  "82c45942"
  
)

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

/***/ }),

/***/ 197:
/***/ (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!./components/blocks/TherapistPrice.vue?vue&type=template&id=00ea10fe&
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"text-white border border-l-8 border-yellow py-4 px-6 lg:px-8 text-center"},[_vm._ssrNode("<h4 class=\"block text-lg text-yellow\">"+_vm._ssrEscape(_vm._s(_vm.session.name))+"</h4> "+(_vm._ssrList((_vm.products),function(product,key){return ("<div class=\"my-6\"><span class=\"block text-2xl leading-5 text-white font-medium\">"+_vm._ssrEscape(_vm._s(product.price.formatted))+"</span> <small class=\"block text-gray\">"+_vm._ssrEscape("("+_vm._s(product.type)+")")+"</small></div>")}))+" "),(_vm.is_booking_enabled)?_c('NuxtLink',{staticClass:"w-full btn btn-small btn-secondary uppercase font-medium rounded-full",attrs:{"to":'/booking/'+_vm.slug+'?=session_type='+_vm.session.id}},[_vm._v("Book")]):_vm._e()],2)}
var staticRenderFns = []


// CONCATENATED MODULE: ./components/blocks/TherapistPrice.vue?vue&type=template&id=00ea10fe&

// 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!./components/blocks/TherapistPrice.vue?vue&type=script&lang=js&
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ var TherapistPricevue_type_script_lang_js_ = ({
  props: {
    session: Object,
    products: Array,
    is_booking_enabled: Boolean,
    slug: {
      type: String,
      required: true
    }
  }
});
// CONCATENATED MODULE: ./components/blocks/TherapistPrice.vue?vue&type=script&lang=js&
 /* harmony default export */ var blocks_TherapistPricevue_type_script_lang_js_ = (TherapistPricevue_type_script_lang_js_); 
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(1);

// CONCATENATED MODULE: ./components/blocks/TherapistPrice.vue





/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  blocks_TherapistPricevue_type_script_lang_js_,
  render,
  staticRenderFns,
  false,
  null,
  null,
  "5e90bbc0"
  
)

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

/***/ }),

/***/ 259:
/***/ (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/therapists/_slug.vue?vue&type=template&id=0c19edb0&
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":'pb-48 md:pb-20 tas-bg-'+_vm.therapist.colour}},[_c('div',{staticClass:"relative z-20 text-center"},[_c('figure',{staticClass:"relative inline-block w-40 mb-8"},[_c('div',{staticClass:"absolute top-0 left-0 w-full h-full border-10",class:'tas-border-'+_vm.therapist.colour}),_vm._v(" "),_c('img',{staticClass:"block w-full",attrs:{"src":_vm.therapist.user.photo_url,"alt":_vm.therapist.user.first_name}})]),_vm._v(" "),_c('h1',[_c('span',{staticClass:"block w-full text-5xl md:text-7xl leading-none "},[_vm._v(_vm._s(_vm.therapist.user.first_name))]),_vm._v(" "),_c('span',{staticClass:"block w-full uppercase text-2xl"},[_vm._v(_vm._s(_vm.therapist.user.last_name))])])]),_vm._v(" "),_c('div',{staticClass:"page-header-bottom grid grid-cols-1 md:grid-cols-3"},[_c('div',{staticClass:"flex items-center justify-center md:justify-start mb-6 md:mb-0"},[_c('NuxtLink',{staticClass:"uppercase font-medium flex items-center justify-center",attrs:{"to":"/therapists"}},[_c('svg',{staticClass:"w-4 h-4 mr-1",attrs:{"xmlns":"http://www.w3.org/2000/svg","fill":"none","viewBox":"0 0 24 24","stroke":"currentColor"}},[_c('path',{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2","d":"M15 19l-7-7 7-7"}})]),_vm._v("\n          Back\n        ")])],1),_vm._v(" "),(_vm.therapist.is_booking_enabled)?_c('div',{staticClass:"flex items-center justify-center"},[_c('NuxtLink',{staticClass:"btn btn-primary rounded-full uppercase text-sm font-medium",attrs:{"to":'/booking/'+_vm.therapist.slug,"type":"button"}},[_vm._v("Book "+_vm._s(_vm.therapist.user.first_name))])],1):_c('div',{staticClass:"flex items-center justify-center"},[_c('button',{staticClass:"btn btn-primary rounded-full uppercase text-sm font-medium",attrs:{"type":"button"},on:{"click":function($event){_vm.showModal = true}}},[_vm._v("Contact "+_vm._s(_vm.therapist.user.first_name))])]),_vm._v(" "),(_vm.therapist.is_booking_enabled)?_c('div',{staticClass:"flex items-center justify-center md:justify-end"},[_c('NextAvailability',{attrs:{"classes":"justify-center md:justify-end","therapist_id":_vm.therapist.id,"therapist_slug":_vm.therapist.slug,"is_booking_enabled":_vm.therapist.is_booking_enabled}})],1):_vm._e()])]),_vm._ssrNode(" "),_c('t-modal',{attrs:{"header":'Send '+_vm.therapist.user.first_name+' a message'},model:{value:(_vm.showModal),callback:function ($$v) {_vm.showModal=$$v},expression:"showModal"}},[_c('ValidationObserver',{ref:"contactForm"},[_c('form',{attrs:{"role":"form","method":"POST"},on:{"submit":function($event){$event.preventDefault();return _vm.onSubmit($event)}}},[_c('t-input-group',{attrs:{"label":"Name"}},[_c('ValidationProvider',{attrs:{"rules":"required","name":"name"},scopedSlots:_vm._u([{key:"default",fn:function(ref){
var errors = ref.errors;
return [_c('t-input',{attrs:{"type":"text","placeholder":"Enter your name"},model:{value:(_vm.form.name),callback:function ($$v) {_vm.$set(_vm.form, "name", $$v)},expression:"form.name"}}),_vm._v(" "),(errors[0])?_c('span',{staticClass:"field-invalid"},[_vm._v(_vm._s(errors[0]))]):_vm._e()]}}])})],1),_vm._v(" "),_c('t-input-group',{attrs:{"label":"Email"}},[_c('ValidationProvider',{attrs:{"rules":"required|email","name":"email"},scopedSlots:_vm._u([{key:"default",fn:function(ref){
var errors = ref.errors;
return [_c('t-input',{attrs:{"type":"email","placeholder":"Enter your email address"},model:{value:(_vm.form.email),callback:function ($$v) {_vm.$set(_vm.form, "email", $$v)},expression:"form.email"}}),_vm._v(" "),(errors[0])?_c('span',{staticClass:"field-invalid"},[_vm._v(_vm._s(errors[0]))]):_vm._e()]}}])})],1),_vm._v(" "),_c('t-input-group',{attrs:{"label":"Mobile"}},[_c('ValidationProvider',{attrs:{"rules":"required|phone_number","name":"phone"},scopedSlots:_vm._u([{key:"default",fn:function(ref){
var errors = ref.errors;
return [_c('t-input',{attrs:{"type":"tel","placeholder":"e.g +44"},model:{value:(_vm.form.phone),callback:function ($$v) {_vm.$set(_vm.form, "phone", $$v)},expression:"form.phone"}}),_vm._v(" "),(errors[0])?_c('span',{staticClass:"field-invalid"},[_vm._v(_vm._s(errors[0]))]):_vm._e()]}}])})],1),_vm._v(" "),_c('t-input-group',{attrs:{"label":"Message"}},[_c('ValidationProvider',{attrs:{"rules":"required","name":"message"},scopedSlots:_vm._u([{key:"default",fn:function(ref){
var errors = ref.errors;
return [_c('t-textarea',{model:{value:(_vm.form.message),callback:function ($$v) {_vm.$set(_vm.form, "message", $$v)},expression:"form.message"}}),_vm._v(" "),(errors[0])?_c('span',{staticClass:"field-invalid"},[_vm._v(_vm._s(errors[0]))]):_vm._e()]}}])})],1),_vm._v(" "),_c('recaptcha'),_vm._v(" "),_c('span',{staticClass:"flex items-center justify-center text-sm text-black text-opacity-70 mb-6"},[_c('svg',{staticClass:"h-5 w-5 mr-1",attrs:{"xmlns":"http://www.w3.org/2000/svg","fill":"none","viewBox":"0 0 24 24","stroke":"currentColor"}},[_c('path',{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2","d":"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"}})]),_vm._v(" "),_c('span',[_vm._v("This message will be encrypted and only seen by "+_vm._s(_vm.therapist.user.full_name))])]),_vm._v(" "),_c('div',{staticClass:"flex items-center justify-center bg-gray p-3 -mx-3 -mb-3 rounded-b-lg"},[_c('button',{staticClass:"btn btn-primary btn-small",attrs:{"type":"submit"}},[(_vm.working == false)?_c('span',[_vm._v("Send Message")]):_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("Sending")])])])])],1)])],1),_vm._ssrNode(" <section class=\"grid grid-cols-1 lg:grid-cols-3 gap-10 md:mb-8\"><article class=\"bg-gray p-8 lg:col-span-2\"><h3 class=\"text-3xl font-bold my-0 mb-6\">"+_vm._ssrEscape("About "+_vm._s(_vm.therapist.user.first_name))+"</h3> <div class=\"prose max-w-full\">"+(_vm._s(_vm.therapist.description))+"</div> "+((_vm.therapist.tags)?("<div class=\"flex flex-wrap mt-8\">"+(_vm._ssrList((_vm.therapist.tags),function(tag,key){return ("<div class=\"rounded-full px-3 py-2 mr-2 mb-2 bg-white text-sm leading-3 transition\">"+_vm._ssrEscape(_vm._s(tag.name))+"</div>")}))+"</div>"):"<!---->")+"</article> <aside class=\"bg-gray p-8 lg:col-span-1\"><header class=\"mb-6\"><h3 class=\"text-3xl font-bold text-center\">Overview</h3></header> "+((_vm.therapist.products.length > 0)?("<div class=\"border-t border-black border-opacity-10 py-3 grid grid-cols-2 gap-x-3\"><h3 class=\"text-sm font-medium uppercase\">Prices</h3> <div><span class=\"block font-medium\">"+_vm._ssrEscape("From "+_vm._s(_vm.therapist.price_from.formatted))+"</span> <a href=\"#prices\" class=\"block text-blue-light uppercase text-sm\">View Prices</a></div></div>"):"<!---->")+" "+((_vm.therapist.location)?("<div class=\"border-t border-black border-opacity-10 py-3 grid grid-cols-2 gap-x-3\"><h3 class=\"text-sm font-medium uppercase\">Location</h3> <div>"+((_vm.therapist.location.address_type == 'Practice Location')?("<span class=\"block font-medium\">"+_vm._ssrEscape(_vm._s(_vm.therapist.location.formatted))+"</span>"):("<span class=\"block font-medium\">"+_vm._ssrEscape(_vm._s(_vm.therapist.location.town_city))+"</span>"))+"</div></div>"):"<!---->")+" "+((_vm.therapist.languages.length > 0)?("<div class=\"border-t border-black border-opacity-10 py-3 grid grid-cols-2 gap-x-3\"><h3 class=\"text-sm font-medium uppercase\">Languages</h3> <div>"+(_vm._ssrList((_vm.therapist.languages),function(language,key){return ("<span class=\"block font-medium\">"+_vm._ssrEscape(_vm._s(language.name))+"</span>")}))+"</div></div>"):"<!---->")+" "+((_vm.therapist.main_specialism)?("<div class=\"border-t border-black border-opacity-10 py-3 grid grid-cols-2 gap-x-3\"><h3 class=\"text-sm font-medium uppercase\">Main Specialism</h3> <div><span class=\"block font-medium\">"+_vm._ssrEscape(_vm._s(_vm.therapist.main_specialism.name))+"</span> <a href=\"#specialisms\" class=\"block text-blue-light uppercase text-sm\">View All</a></div></div>"):"<!---->")+" "+((_vm.therapist.sessions)?("<div class=\"border-t border-black border-opacity-10 py-3 grid grid-cols-2 gap-x-3\"><h3 class=\"text-sm font-medium uppercase\">Sessions</h3> <div>"+(_vm._ssrList((_vm.therapist.sessions),function(session,key){return ("<span class=\"block font-medium\">"+_vm._ssrEscape(_vm._s(session.name))+"</span>")}))+" "+((_vm.therapist.products.length > 0)?("<a href=\"#prices\" class=\"block text-blue-light uppercase text-sm\">Book a Session</a>"):"<!---->")+"</div></div>"):"<!---->")+" <div class=\"border-t border-black border-opacity-10 pt-6 flex flex-wrap items-center justify-center\"><button type=\"button\" class=\"btn btn-primary rounded-full uppercase text-sm font-medium\">"+_vm._ssrEscape("Contact "+_vm._s(_vm.therapist.user.first_name))+"</button></div></aside></section> "),(_vm.therapist.specialisms.length > 0)?_vm._ssrNode("<section id=\"specialisms\" class=\"pt-8 pb-10 md:pt-12 md:pb-20 px-6 lg:px-0\">","</section>",[_vm._ssrNode("<header class=\"max-w-2xl mx-auto w-full\"><h3 class=\"text-3xl font-bold text-center mb-10\">Specialisms</h3></header> "),_vm._ssrNode("<div class=\"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-x-8 gap-y-4 sm:mt-16\">","</div>",_vm._l((_vm.therapist.specialisms),function(specialism,key){return _c('NuxtLink',{key:key,staticClass:"bg-gray border-l-8 border-yellow p-3 sm:p-4 transition hover:bg-yellow",attrs:{"to":'/therapists/specialism/'+specialism.slug}},[_vm._v("\n        "+_vm._s(specialism.name)+"\n      ")])}),1)],2):_vm._e(),_vm._ssrNode(" "),(_vm.therapist.products.length > 0 && _vm.therapist.sessions.length > 0)?_vm._ssrNode("<section id=\"prices\" class=\"bg-black py-10 md:py-20 px-6 md:px-8 mb-8\">","</section>",[_vm._ssrNode("<header class=\"max-w-2xl mx-auto w-full text-white\"><h3 class=\"text-3xl font-bold text-center mb-10\">"+_vm._ssrEscape(_vm._s(_vm.therapist.user.first_name)+"'s Rates")+"</h3> <article>"+(_vm._s(_vm.therapist.pricing_text))+"</article></header> "),(_vm.therapist.products)?_vm._ssrNode("<div class=\"max-w-5xl mx-auto w-full mt-16\">","</div>",[_vm._ssrNode("<div class=\"flex flex-wrap items-center justify-center -mx-2\">","</div>",_vm._l((_vm.therapist.sessions),function(session,key){return _vm._ssrNode("<div class=\"px-2 mb-4 w-full md:w-1/2 lg:w-1/4\">","</div>",[_c('TherapistPrice',{attrs:{"slug":_vm.therapist.slug,"session":session,"products":_vm.therapist.products,"is_booking_enabled":_vm.therapist.is_booking_enabled}})],1)}),0)]):_vm._e()],2):_vm._e(),_vm._ssrNode(" "+((_vm.therapist.image_one.url)?("<section class=\"md:-mx-8 relative md:h-screen bg-cover bg-center bg-gray\""+(_vm._ssrStyle(null,'background-image: url('+_vm.therapist.image_one.url+')', null))+"><img"+(_vm._ssrAttr("src",_vm.therapist.image_one.url))+" class=\"block md:hidden\"></section>"):"<!---->")+" "+((_vm.therapist.questions_one.length > 0)?("<section class=\"py-20 px-6 lg:px-0\"><div class=\"max-w-3xl mx-auto w-full\"><header class=\"text-center mb-20\"><figure class=\"relative inline-block w-32 mb-8\"><div"+(_vm._ssrClass("absolute top-0 left-0 w-full h-full border-15",'tas-border-'+_vm.therapist.colour))+"></div> <img"+(_vm._ssrAttr("src",_vm.therapist.user.photo_url))+(_vm._ssrAttr("alt",_vm.therapist.user.first_name))+" class=\"block w-full\"></figure> <h2 class=\"text-3xl font-bold\">"+_vm._ssrEscape("Get to Know "+_vm._s(_vm.therapist.user.first_name))+"</h2></header> "+(_vm._ssrList((_vm.therapist.questions_one),function(question,key){return ("<article class=\"mb-10\"><h2 class=\"mb-6 text-xl font-bold\">"+_vm._ssrEscape(_vm._s(question.question))+"</h2> <p>"+_vm._ssrEscape(_vm._s(question.answer))+"</p></article>")}))+"</div></section>"):"<!---->")+" "),(_vm.therapist.is_booking_enabled)?_vm._ssrNode("<div class=\"pt-8 md:pt-20 md:pb-16 px-4 md:px-6 bg-white flex flex-col items-center justify-center\">","</div>",[_vm._ssrNode("<h2 class=\"text-xl sm:text-2xl font-bold mb-6\">"+_vm._ssrEscape("Book a session with "+_vm._s(_vm.therapist.user.first_name))+"</h2> "),_c('NuxtLink',{staticClass:"btn btn-primary rounded-full uppercase text-sm font-medium",attrs:{"to":'/booking/'+_vm.therapist.slug,"type":"button"}},[_vm._v("Book "+_vm._s(_vm.therapist.user.first_name))])],2):_vm._e()],2)}
var staticRenderFns = []


// CONCATENATED MODULE: ./pages/therapists/_slug.vue?vue&type=template&id=0c19edb0&

// 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/therapists/_slug.vue?vue&type=script&lang=js&
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ var _slugvue_type_script_lang_js_ = ({
  head() {
    return {
      titleTemplate: this.full_name + ' | %s',
      meta: [{
        hid: 'description',
        name: 'description',
        content: this.therapist.short_description
      }]
    };
  },

  data() {
    return {
      working: false,
      showModal: false,
      form: {
        name: null,
        email: null,
        phone: null,
        message: null
      }
    };
  },

  computed: {
    therapist() {
      return this.$store.state.therapists.single;
    },

    full_name() {
      return this.therapist.user.full_name;
    }

  },

  async mounted() {
    try {
      await this.$recaptcha.init();
    } catch (e) {
      console.error(e);
    }
  },

  async asyncData({
    store,
    params
  }) {
    await store.dispatch('therapists/single', params.slug);
  },

  methods: {
    async onSubmit() {
      try {
        const token = await this.$recaptcha.execute('login');
        this.sendMessage(token);
      } catch (error) {
        console.log('Login error:', error);
      }
    },

    async sendMessage(token) {
      await this.$refs.contactForm.validate().then(success => {
        if (!success) {
          return;
        }

        let formData = new FormData();
        formData.append('recaptcha_token', token);
        formData.append('name', this.form.name);
        formData.append('email', this.form.email);
        formData.append('phone', this.form.phone);
        formData.append('message', this.form.message);
        this.working = true;
        this.$axios.post('/user/' + this.therapist.user.id + '/messages', formData).then(response => {
          this.$toast.success('Your message has been sent, ' + this.therapist.user.first_name + ' will be in touch soon!').goAway(3000);
          this.working = false;
          this.showModal = false;
        }).catch(error => {
          this.working = false;
          this.$refs.contactForm.setErrors(error.response.data.errors);
        });
      });
    }

  },

  beforeDestroy() {
    this.$recaptcha.destroy();
  }

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

// CONCATENATED MODULE: ./pages/therapists/_slug.vue



function injectStyles (context) {
  
  
}

/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  therapists_slugvue_type_script_lang_js_,
  render,
  staticRenderFns,
  false,
  injectStyles,
  null,
  "40727a00"
  
)

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

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


/***/ })

};;
//# sourceMappingURL=_slug.js.map

Zerion Mini Shell 1.0