(window.webpackJsonp=window.webpackJsonp||[]).push([[284],{2529:function(t,n,e){"use strict";e.r(n);var o=e(5),r=(e(25),e(1583)),c=e(45),f={components:{Calendar:r.default},layout:function(t){return"staff"===t.route.path.split("/")[2]?"staffDashboardLayout":"DoctorDashboardLayout"},data:function(){return{appointments:[],clinicID:"",isStaff:!0}},created:function(){this.clinicID=localStorage.getItem("clinicID")||"";var path=this.$route.path,t="staff"===(null==path?void 0:path.split("/")[2]);this.isStaff=t},methods:{getDoctorAppointments:function(t){var n=this;return Object(o.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.isLoading=!0,c.a.getDoctorAppointments(t).then((function(t){200==t.statusCd?n.appointments=t.allAppointments:n.appointments=[],n.isLoading=!1}));case 2:case"end":return e.stop()}}),e)})))()}}},l=e(10),component=Object(l.a)(f,(function(){var t=this,n=t._self._c;return n("section",[n("Calendar",{attrs:{appointments:t.appointments,clinicID:t.clinicID,isStaff:t.isStaff},on:{getDoctorAppointments:t.getDoctorAppointments}})],1)}),[],!1,null,"6dd549d8",null);n.default=component.exports;installComponents(component,{Calendar:e(1583).default})}}]);