%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/77e6d88.js |
(window.webpackJsonp=window.webpackJsonp||[]).push([[36],{409:function(t,e,r){"use strict";r.r(e);var n=r(0),o=(r(3),r(30),{props:{value:{required:!0},selected_slots:{type:Object,required:!0},working:{type:Boolean,required:!0},button_text:{type:String,required:!0},nextStep:{type:Function,required:!0}},data:function(){return{loading:!0}},computed:{therapist:function(){return this.$store.state.booking.therapist},sessions:function(){return this.$store.state.booking.summary.sessions},totals:function(){return this.$store.state.booking.summary.totals},selected_session:function(){return this.$store.state.booking.summary.session}},mounted:function(){var t=this;return Object(n.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$store.dispatch("booking/summary/get",{user_id:t.therapist.user.id,sessions:t.selected_slots,sessions_count:Object.keys(t.selected_slots).length}).then((function(){t.loading=!1}));case 2:case"end":return e.stop()}}),e)})))()},methods:{goBack:function(){this.$emit("input",1)}}}),c=r(10),component=Object(c.a)(o,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("span",{staticClass:"block text-center text-3xl font-bold mb-6"},[t._v("Summary")]),t._v(" "),r("p",[t._v("You are nearly there. Please carefully check all details are correct before proceeding to payment.")]),t._v(" "),r("div",{staticClass:"my-2 mb-6"},[r("div",{staticClass:"grid grid-cols-3 gap-3 border-b-2 border-gray py-6"},[r("span",{staticClass:"uppercase text-sm"},[t._v("Therapist")]),t._v(" "),r("span",{staticClass:"col-span-2 text-sm"},[t._v(t._s(t.therapist.user.full_name))])]),t._v(" "),0==t.loading?r("div",{staticClass:"border-b-2 border-gray py-4"},[r("div",{staticClass:"grid grid-cols-3 gap-3 py-2"},[r("span",{staticClass:"uppercase text-sm"},[t._v("No. Of Sessions")]),t._v(" "),r("span",{staticClass:"text-sm"},[t._v(t._s(Object.keys(t.selected_slots).length))])]),t._v(" "),t._l(t.sessions,(function(e,n){return r("div",{key:n},[r("div",{staticClass:"grid grid-cols-6 gap-3 py-2"},[r("span",{staticClass:"col-span-2 uppercase text-sm"},[t._v("Session "+t._s(n+1))]),t._v(" "),r("span",{staticClass:"col-span-3 text-sm"},[t._v(t._s(t.$moment.utc(e.slot.start).format("D MMM Y - H:mm")+" - "+t.$moment.utc(e.slot.end).format("H:mm")))]),t._v(" "),r("div",{staticClass:"col-span-1 flex items-center justify-end"},[r("span",{staticClass:"text-sm"},[t._v(t._s(e.item_total.formatted))])])]),t._v(" "),r("div",{staticClass:"grid grid-cols-3 gap-3 py-2"},[r("span",{staticClass:"uppercase text-sm"},[t._v("Session Type")]),t._v(" "),r("span",{staticClass:"text-sm"},[t._v(t._s(e.session_name))]),t._v(" "),r("div",{staticClass:"flex items-center justify-end"},[r("button",{staticClass:"text-sm uppercase underline",attrs:{type:"button"},on:{click:t.goBack}},[t._v("Change")])])])])}))],2):t._e(),t._v(" "),0==t.loading?r("div",{staticClass:"grid grid-cols-2 gap-2 border-b-2 border-gray py-6"},[r("span",{staticClass:"uppercase text-sm"},[t._v("Total Price")]),t._v(" "),r("span",{staticClass:"uppercase font-bold flex items-center justify-end"},[t._v(t._s(t.totals.formatted))])]):r("div",{staticClass:"flex items-center justify-center py-6"},[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("\n Loading...\n ")])]),t._v(" "),r("div",{staticClass:"flex flex-col items-center justify-center"},[r("button",{staticClass:"btn btn-primary btn-small rounded-full w-full sm:w-auto",attrs:{disabled:t.selected_slots.length<1,type:"button"},on:{click:function(e){return t.nextStep()}}},[0==t.working?r("span",[t._v(t._s(t.button_text))]):r("span",{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("Processing")])])]),t._v(" "),r("button",{staticClass:"mt-6 uppercase text-blue-light text-sm",attrs:{type:"button"},on:{click:t.goBack}},[t._v("Go Back")])])])}),[],!1,null,null,null);e.default=component.exports}}]);