%PDF- %PDF-
Direktori : /home/forge/takeaseat.eco-n-tech.co.uk/.nuxt/dist/client/ |
Current File : //home/forge/takeaseat.eco-n-tech.co.uk/.nuxt/dist/client/ccec9cf.js |
(window.webpackJsonp=window.webpackJsonp||[]).push([[52,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})},502:function(t,e,o){"use strict";o.r(e);var l={middleware:"success",head:function(){return{titleTemplate:"Thank you! | %s"}},computed:{booking:function(){return this.$store.state.booking.success.list}}},n=o(10),component=Object(n.a)(l,(function(){var t=this,e=t.$createElement,l=t._self._c||e;return l("div",{staticClass:"page-wrapper"},[l("PageHeader",{attrs:{classObject:"bg-green"}},[l("img",{staticClass:"relative z-20 mb-8",attrs:{src:o(135),alt:"Takeaseat"}}),t._v(" "),l("h1",{staticClass:"relative z-20 text-7xl mb-8"},[l("span",{staticClass:"block mb-3 font-bold"},[t._v("Success!")]),t._v(" "),l("span",{staticClass:"block text-white text-5xl font-bold"},[t._v("Thanks for rescheduling!")])]),t._v(" "),l("div",{staticClass:"relative z-20"},[l("NuxtLink",{staticClass:"btn btn-small btn-primary",attrs:{to:"/bookings"}},[t._v("Manage Bookings")])],1)]),t._v(" "),t.booking?l("section",[l("div",{staticClass:"max-w-5xl mx-auto w-full"},[l("Booking",{attrs:{booking:t.booking}})],1)]):t._e()],1)}),[],!1,null,null,null);e.default=component.exports;installComponents(component,{PageHeader:o(212).default,Booking:o(394).default})}}]);