%PDF- %PDF-
Direktori : /home/forge/takeaseat.eco-n-tech.co.uk/.nuxt/dist/server/components/ |
Current File : //home/forge/takeaseat.eco-n-tech.co.uk/.nuxt/dist/server/components/therapist.js |
exports.ids = [36,21]; 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); /***/ }), /***/ 152: /***/ (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/partials/Therapist.vue?vue&type=template&id=40b76e47& var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('section',{staticClass:"grid grid-cols-3 sm:grid-cols-6 bg-white border border-gray therapist-list-item"},[_vm._ssrNode("<div class=\"col-span-1 sm:col-span-2 relative mb-0\">","</div>",[_c('NuxtLink',{staticClass:"absolute top-0 left-0 w-full h-full z-10",attrs:{"to":'/therapists/'+_vm.therapist.slug}}),_vm._ssrNode(" <div"+(_vm._ssrClass("absolute top-0 left-0 w-full h-full border-10 border-opacity-75",'tas-border-'+_vm.therapist.colour))+"></div> <img"+(_vm._ssrAttr("src",_vm.therapist.user.photo_url))+(_vm._ssrAttr("alt",_vm.therapist.user.first_name+' '+_vm.therapist.user.last_name))+" class=\"block m-0 w-full\">")],2),_vm._ssrNode(" <div class=\"col-span-2 sm:col-span-4 bg-black flex items-center justify-center text-center\"><h2 class=\"text-white\"><span"+(_vm._ssrClass("block text-4xl",'tas-text-'+_vm.therapist.colour))+">"+_vm._ssrEscape(_vm._s(_vm.therapist.user.first_name))+"</span> <span class=\"block text-xl\">"+_vm._ssrEscape(_vm._s(_vm.therapist.user.last_name))+"</span></h2></div> "),_vm._ssrNode("<div class=\"col-span-3 sm:col-span-2 bg-gray p-4 overflow-auto\">","</div>",[_vm._ssrNode(((_vm.therapist.price_from)?("<div class=\"mb-3\"><span class=\"block uppercase opacity-50 font-bold\">Prices</span> <span class=\"block uppercase text-black font-bold\">"+_vm._ssrEscape("From "+_vm._s(_vm.therapist.price_from.formatted))+"</span></div>"):"<!---->")+" "),(_vm.therapist.location)?_vm._ssrNode("<div class=\"mb-3\">","</div>",[_vm._ssrNode("<h4 class=\"block uppercase opacity-50 font-bold\">Location</h4> "),_c('NuxtLink',{staticClass:"block text-black font-bold transition duration-200 hover:text-blue-light",attrs:{"to":'/therapists/location/'+_vm.therapist.location.slug}},[_vm._v(_vm._s(_vm.therapist.location.town_city))])],2):_vm._e(),_vm._ssrNode(" "+((_vm.therapist.sessions.length > 0)?("<div class=\"mb-3\"><h4 class=\"block uppercase opacity-50 font-bold\">Sessions</h4> "+(_vm._ssrList((_vm.therapist.sessions),function(session,key){return ("<span class=\"block text-black font-bold\">"+_vm._ssrEscape(_vm._s(session.name))+"</span>")}))+"</div>"):"<!---->")+" "),(_vm.therapist.specialisms.length > 0)?_vm._ssrNode("<div class=\"mb-0\">","</div>",[_vm._ssrNode("<h4 class=\"block uppercase opacity-50 font-bold\">Specialisms</h4> "),_vm._l((_vm.therapist.specialisms),function(specialism,key){return _vm._ssrNode("<div>","</div>",[(key <= 5)?_c('NuxtLink',{staticClass:"block text-black font-bold transition duration-200 hover:text-blue-light",attrs:{"to":'/therapists/specialism/'+specialism.slug}},[_vm._v(_vm._s(specialism.name))]):_vm._e()],1)}),_vm._ssrNode(" "),(_vm.therapist.specialisms.length> 5)?_c('NuxtLink',{attrs:{"to":'/therapists/'+_vm.therapist.slug}},[_vm._v("+ "+_vm._s(_vm.therapist.specialisms.length - 5)+" more")]):_vm._e()],2):_vm._e()],2),_vm._ssrNode(" "),_vm._ssrNode("<div class=\"col-span-3 sm:col-span-4 flex flex-wrap content-between justify-center p-4\">","</div>",[_vm._ssrNode("<div class=\"w-full mb-3\">","</div>",[_vm._ssrNode("<p class=\"leading-5\">"+(_vm._s(_vm.therapist.short_description))+"</p> "),(_vm.therapist.tags)?_vm._ssrNode("<div class=\"flex flex-wrap mt-3\">","</div>",_vm._l((_vm.therapist.tags),function(tag,key){return _c('NuxtLink',{key:key,staticClass:"rounded-full px-3 py-2 mr-2 mb-2 bg-gray text-sm leading-3 transition",attrs:{"to":'/therapists/tag/'+tag.slug}},[_vm._v(_vm._s(tag.name))])}),1):_vm._e()],2),_vm._ssrNode(" "),_vm._ssrNode("<div class=\"w-full\">","</div>",[_c('NextAvailability',{attrs:{"classes":"justify-center","therapist_id":_vm.therapist.id,"therapist_slug":_vm.therapist.slug,"is_booking_enabled":_vm.therapist.is_booking_enabled}}),_vm._ssrNode(" "),_c('NuxtLink',{staticClass:"mt-3 btn btn-primary btn-small uppercase font-medium w-full rounded-full",attrs:{"to":'/therapists/'+_vm.therapist.slug}},[_vm._v("View Profile")])],2)],2)],2)} var staticRenderFns = [] // CONCATENATED MODULE: ./components/partials/Therapist.vue?vue&type=template&id=40b76e47& // 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/partials/Therapist.vue?vue&type=script&lang=js& // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // /* harmony default export */ var Therapistvue_type_script_lang_js_ = ({ props: { therapist: Object } }); // CONCATENATED MODULE: ./components/partials/Therapist.vue?vue&type=script&lang=js& /* harmony default export */ var partials_Therapistvue_type_script_lang_js_ = (Therapistvue_type_script_lang_js_); // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js var componentNormalizer = __webpack_require__(1); // CONCATENATED MODULE: ./components/partials/Therapist.vue /* normalize component */ var component = Object(componentNormalizer["a" /* default */])( partials_Therapistvue_type_script_lang_js_, render, staticRenderFns, false, null, null, "546bbe36" ) /* harmony default export */ var Therapist = __webpack_exports__["default"] = (component.exports); /* nuxt-component-imports */ installComponents(component, {NextAvailability: __webpack_require__(140).default}) /***/ }) };; //# sourceMappingURL=therapist.js.map