%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/forge/takeaseat.eco-n-tech.co.uk/.nuxt/dist/client/
Upload File :
Create Path :
Current File : //home/forge/takeaseat.eco-n-tech.co.uk/.nuxt/dist/client/a27370a.js

(window.webpackJsonp=window.webpackJsonp||[]).push([[76,22,37],{379:function(t,e,r){var content=r(385);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(34).default)("68b99d2a",content,!0,{sourceMap:!1})},384:function(t,e,r){"use strict";r(379)},385:function(t,e,r){var o=r(33)((function(i){return i[1]}));o.push([t.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))}",""]),t.exports=o},386:function(t,e,r){"use strict";r.r(e);var o=r(0),n=(r(3),r(213),{props:{therapist_id:Number,therapist_slug:String,is_booking_enabled:Boolean,classes:String},data:function(){return{isLoading:!1,isOpen:!1,date:null,availability:[]}},methods:{openAvailability:function(){var t=this;return Object(o.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.isLoading=!0,t.isOpen=!0,e.next=4,t.$axios.post("/availability/next/"+t.therapist_id).then((function(e){t.isLoading=!1,t.date=e.data.date,t.availability=e.data.slots})).catch((function(e){t.isLoading=!1}));case 4:case"end":return e.stop()}}),e)})))()}}}),l=(r(384),r(10)),component=Object(l.a)(n,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.is_booking_enabled?r("div",{staticClass:"w-full relative flex items-center",class:t.classes,on:{mouseleave:function(e){t.isOpen=!1}}},[r("button",{staticClass:"mt-4 uppercase font-medium flex items-center justify-center focus:outline-none hover:text-yellow transition duration-200",attrs:{type:"button"},on:{click:t.openAvailability}},[t._v("\n    Book Now\n    "),r("svg",{staticClass:"w-4 h-4 ml-1",class:t.isOpen?"transform rotate-180":"",attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},[r("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"}})])]),t._v(" "),t.isOpen?r("div",{staticClass:"absolute z-20 top-full left-0 w-full p-6 bg-white rounded-lg shadow"},[1==t.isLoading?r("div",{staticClass:"flex items-center justify-center"},[r("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"}},[r("circle",{staticClass:"opacity-25",attrs:{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}}),t._v(" "),r("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"}})]),t._v(" "),r("span",[t._v("Loading Times")])]):t.availability.length>0?r("div",[r("span",{staticClass:"block font-bold mb-2"},[t._v(t._s(t.$moment.utc(t.date).format("DD/MM/Y")))]),t._v(" "),r("div",{staticClass:"grid grid-cols-3 gap-2"},t._l(t.availability,(function(time,e){return r("NuxtLink",{key:e,staticClass:"time",attrs:{to:"/booking/"+t.therapist_slug+"?date="+t.$moment.utc(time.start).format("Y-MM-DD")+"&time="+time.start}},[t._v(t._s(t.$moment.utc(time.start).format("H:mm")))])})),1)]):r("div",{staticClass:"flex items-center justify-center"},[r("span",{staticClass:"font-bold"},[t._v("No availability")])])]):t._e()]):t._e()}),[],!1,null,"6ba927ca",null);e.default=component.exports},397:function(t,e,r){"use strict";r.r(e);var o={props:{therapist:Object}},n=r(10),component=Object(n.a)(o,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("section",{staticClass:"grid grid-cols-3 sm:grid-cols-6 bg-white border border-gray therapist-list-item"},[r("div",{staticClass:"col-span-1 sm:col-span-2 relative mb-0"},[r("NuxtLink",{staticClass:"absolute top-0 left-0 w-full h-full z-10",attrs:{to:"/therapists/"+t.therapist.slug}}),t._v(" "),r("div",{staticClass:"absolute top-0 left-0 w-full h-full border-10 border-opacity-75",class:"tas-border-"+t.therapist.colour}),t._v(" "),r("img",{staticClass:"block m-0 w-full",attrs:{src:t.therapist.user.photo_url,alt:t.therapist.user.first_name+" "+t.therapist.user.last_name}})],1),t._v(" "),r("div",{staticClass:"col-span-2 sm:col-span-4 bg-black flex items-center justify-center text-center"},[r("h2",{staticClass:"text-white"},[r("span",{staticClass:"block text-4xl",class:"tas-text-"+t.therapist.colour},[t._v(t._s(t.therapist.user.first_name))]),t._v(" "),r("span",{staticClass:"block text-xl"},[t._v(t._s(t.therapist.user.last_name))])])]),t._v(" "),r("div",{staticClass:"col-span-3 sm:col-span-2 bg-gray p-4 overflow-auto"},[t.therapist.price_from?r("div",{staticClass:"mb-3"},[r("span",{staticClass:"block uppercase opacity-50 font-bold"},[t._v("Prices")]),t._v(" "),r("span",{staticClass:"block uppercase text-black font-bold"},[t._v("From "+t._s(t.therapist.price_from.formatted))])]):t._e(),t._v(" "),t.therapist.location?r("div",{staticClass:"mb-3"},[r("h4",{staticClass:"block uppercase opacity-50 font-bold"},[t._v("Location")]),t._v(" "),r("NuxtLink",{staticClass:"block text-black font-bold transition duration-200 hover:text-blue-light",attrs:{to:"/therapists/location/"+t.therapist.location.slug}},[t._v(t._s(t.therapist.location.town_city))])],1):t._e(),t._v(" "),t.therapist.sessions.length>0?r("div",{staticClass:"mb-3"},[r("h4",{staticClass:"block uppercase opacity-50 font-bold"},[t._v("Sessions")]),t._v(" "),t._l(t.therapist.sessions,(function(e,o){return r("span",{key:o,staticClass:"block text-black font-bold"},[t._v(t._s(e.name))])}))],2):t._e(),t._v(" "),t.therapist.specialisms.length>0?r("div",{staticClass:"mb-0"},[r("h4",{staticClass:"block uppercase opacity-50 font-bold"},[t._v("Specialisms")]),t._v(" "),t._l(t.therapist.specialisms,(function(e,o){return r("div",{key:o},[o<=5?r("NuxtLink",{staticClass:"block text-black font-bold transition duration-200 hover:text-blue-light",attrs:{to:"/therapists/specialism/"+e.slug}},[t._v(t._s(e.name))]):t._e()],1)})),t._v(" "),t.therapist.specialisms.length>5?r("NuxtLink",{attrs:{to:"/therapists/"+t.therapist.slug}},[t._v("+ "+t._s(t.therapist.specialisms.length-5)+" more")]):t._e()],2):t._e()]),t._v(" "),r("div",{staticClass:"col-span-3 sm:col-span-4 flex flex-wrap content-between justify-center p-4"},[r("div",{staticClass:"w-full mb-3"},[r("p",{staticClass:"leading-5",domProps:{innerHTML:t._s(t.therapist.short_description)}}),t._v(" "),t.therapist.tags?r("div",{staticClass:"flex flex-wrap mt-3"},t._l(t.therapist.tags,(function(e,o){return r("NuxtLink",{key:o,staticClass:"rounded-full px-3 py-2 mr-2 mb-2 bg-gray text-sm leading-3 transition",attrs:{to:"/therapists/tag/"+e.slug}},[t._v(t._s(e.name))])})),1):t._e()]),t._v(" "),r("div",{staticClass:"w-full"},[r("NextAvailability",{attrs:{classes:"justify-center",therapist_id:t.therapist.id,therapist_slug:t.therapist.slug,is_booking_enabled:t.therapist.is_booking_enabled}}),t._v(" "),r("NuxtLink",{staticClass:"mt-3 btn btn-primary btn-small uppercase font-medium w-full rounded-full",attrs:{to:"/therapists/"+t.therapist.slug}},[t._v("View Profile")])],1)])])}),[],!1,null,null,null);e.default=component.exports;installComponents(component,{NextAvailability:r(386).default})},496:function(t,e,r){"use strict";r.r(e);var o=r(0),n=(r(3),{head:function(){return{titleTemplate:this.location.town_city+" therapists | %s",meta:[{hid:"description",name:"description",content:"Take a seat with a Therapist location in "+this.location.town_city+" face to face, via video or telephone and start the journey to a new you."}]}},data:function(){return{timer:null,current_page:1}},computed:{location:function(){return this.$store.state.location.location},therapists:function(){return this.$store.state.location.therapists},meta:function(){return this.$store.state.location.meta}},asyncData:function(t){return Object(o.a)(regeneratorRuntime.mark((function e(){var r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.store,o=t.params,e.next=3,r.dispatch("location/get",o.slug);case 3:case"end":return e.stop()}}),e)})))()},methods:{previousPage:function(){var t=this;return Object(o.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.scrollToTop(),t.current_page=t.current_page-1,t.$router.push({query:{page:t.current_page}}),e.next=5,t.$store.dispatch("therapists/get",{page:t.current_page});case 5:case"end":return e.stop()}}),e)})))()},nextPage:function(){var t=this;return Object(o.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.scrollToTop(),t.current_page=t.current_page+1,t.$router.push({query:{page:t.current_page}}),e.next=5,t.$store.dispatch("therapists/get",{page:t.current_page});case 5:case"end":return e.stop()}}),e)})))()},scrollToTop:function(){this.$refs.scrollTo&&this.$refs.scrollTo.scrollIntoView({behaviour:"smooth"})}}}),l=r(10),component=Object(l.a)(n,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{ref:"scrollTo",staticClass:"page-wrapper"},[o("PageHeader",{attrs:{classObject:"bg-orange z-30"}},[o("img",{staticClass:"relative z-20 mb-8",attrs:{src:r(135),alt:"Takeaseat"}}),t._v(" "),o("h1",{staticClass:"relative mb-10 z-20 text-5xl lg:text-7xl font-bold"},[t._v(t._s(t.location.town_city+" therapists"))]),t._v(" "),o("NuxtLink",{staticClass:"flex items-center relative z-20 text-white text-lg",attrs:{to:"/therapists"}},[o("svg",{staticClass:"h-6 w-6 mr-2",attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},[o("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M11 17l-5-5m0 0l5-5m-5 5h12"}})]),t._v(" "),o("span",[t._v("View all Therapists")])])],1),t._v(" "),o("div",{staticClass:"px-6 lg:px-0"},[t.meta.total>0?o("div",[o("div",{staticClass:"grid gap-x-8 gap-y-12 grid-cols-1 md:grid-cols-2 lg:grid-cols-3"},t._l(t.therapists,(function(t,e){return o("Therapist",{key:e,attrs:{therapist:t}})})),1),t._v(" "),t.meta.total>t.meta.current_page?o("div",{staticClass:"mt-8 sm:flex sm:items-center sm:justify-center sm:px-6 lg:px-0"},[1!==t.current_page?o("button",{staticClass:"btn btn-primary rounded-full shadow-md my-2 sm:my-0 sm:mx-3",on:{click:t.previousPage}},[t._v("Previous Page")]):t._e(),t._v(" "),t.current_page<t.meta.last_page?o("button",{staticClass:"btn btn-primary rounded-full shadow-md my-2 sm:my-0 sm:mx-3",on:{click:t.nextPage}},[t._v("Next Page")]):t._e()]):t._e()]):o("div",{staticClass:"text-center py-10 md:py-20 px-6 md:px-8 bg-gray"},[o("p",{staticClass:"text-2xl md:text-4xl font-bold m-0"},[t._v("No therapists found")])])])],1)}),[],!1,null,null,null);e.default=component.exports;installComponents(component,{PageHeader:r(212).default,Therapist:r(397).default})}}]);

Zerion Mini Shell 1.0