text: (function(e){function t(t){for(var r,a,s=t[0],i=t[1],o=t[2],d=0,h=[];d<s.length;d++)a=s[d],Object.prototype.hasOwnProperty.call(c,a)&&c[a]&&h.push(c[a][0]),c[a]=0;for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r]);f&&f(t);while(h.length)h.shift()();return u.push.apply(u,o||[]),n()}function n(){for(var e,t=0;t<u.length;t++){for(var n=u[t],r=!0,a=1;a<n.length;a++){var s=n[a];0!==c[s]&&(r=!1)}r&&(u.splice(t--,1),e=i(i.s=n[0]))}return e}var r={},a={app:0},c={app:0},u=[];function s(e){return i.p+"js/"+({}[e]||e)+"."+{"chunk-3343739d":"21dad22b","chunk-3f5e4753":"e997ec4e","chunk-26f04a9a":"67cfc23b","chunk-3bfa89bb":"82add337","chunk-d2c1f810":"f5e71415","chunk-0636ea11":"1ad1f58f","chunk-084e079e":"8ba341cb","chunk-1100d9c3":"78a67dd1","chunk-212626f2":"75a50bb8","chunk-2880d852":"92a0ce41","chunk-3b59bc36":"2352cfc4","chunk-4b31ba63":"995eb4cb","chunk-4f8b95f2":"48ceb60d","chunk-59abd603":"6359ef56","chunk-41d9c638":"2634746f"}[e]+".js"}function i(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.e=function(e){var t=[],n={"chunk-3343739d":1,"chunk-3f5e4753":1,"chunk-26f04a9a":1,"chunk-d2c1f810":1,"chunk-0636ea11":1,"chunk-084e079e":1,"chunk-1100d9c3":1,"chunk-212626f2":1,"chunk-2880d852":1,"chunk-3b59bc36":1,"chunk-4b31ba63":1,"chunk-4f8b95f2":1,"chunk-41d9c638":1};a[e]?t.push(a[e]):0!==a[e]&&n[e]&&t.push(a[e]=new Promise((function(t,n){for(var r="css/"+({}[e]||e)+"."+{"chunk-3343739d":"6d40b0f2","chunk-3f5e4753":"11659a01","chunk-26f04a9a":"1039c37c","chunk-3bfa89bb":"31d6cfe0","chunk-d2c1f810":"cf70abd6","chunk-0636ea11":"4ce41966","chunk-084e079e":"4ce41966","chunk-1100d9c3":"cd87be9d","chunk-212626f2":"cd87be9d","chunk-2880d852":"4ce41966","chunk-3b59bc36":"9ed7a631","chunk-4b31ba63":"2a188bf1","chunk-4f8b95f2":"4ce41966","chunk-59abd603":"31d6cfe0","chunk-41d9c638":"b2a07862"}[e]+".css",c=i.p+r,u=document.getElementsByTagName("link"),s=0;s<u.length;s++){var o=u[s],d=o.getAttribute("data-href")||o.getAttribute("href");if("stylesheet"===o.rel&&(d===r||d===c))return t()}var h=document.getElementsByTagName("style");for(s=0;s<h.length;s++){o=h[s],d=o.getAttribute("data-href");if(d===r||d===c)return t()}var f=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onload=t,f.onerror=function(t){var r=t&&t.target&&t.target.src||c,u=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");u.code="CSS_CHUNK_LOAD_FAILED",u.request=r,delete a[e],f.parentNode.removeChild(f),n(u)},f.href=c;var l=document.getElementsByTagName("head")[0];l.appendChild(f)})).then((function(){a[e]=0})));var r=c[e];if(0!==r)if(r)t.push(r[2]);else{var u=new Promise((function(t,n){r=c[e]=[t,n]}));t.push(r[2]=u);var o,d=document.createElement("script");d.charset="utf-8",d.timeout=120,i.nc&&d.setAttribute("nonce",i.nc),d.src=s(e);var h=new Error;o=function(t){d.onerror=d.onload=null,clearTimeout(f);var n=c[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;h.message="Loading chunk "+e+" failed.\n("+r+": "+a+")",h.name="ChunkLoadError",h.type=r,h.request=a,n[1](h)}c[e]=void 0}};var f=setTimeout((function(){o({type:"timeout",target:d})}),12e4);d.onerror=d.onload=o,document.head.appendChild(d)}return Promise.all(t)},i.m=e,i.c=r,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/",i.oe=function(e){throw console.error(e),e};var o=window["webpackJsonp"]=window["webpackJsonp"]||[],d=o.push.bind(o);o.push=t,o=o.slice();for(var h=0;h<o.length;h++)t(o[h]);var f=d;u.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){e.exports=n("56d7")},4678:function(e,t,n){var r={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-SG":"cdab","./en-SG.js":"cdab","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-nz":"6f50","./en-nz.js":"6f50","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-tw":"90ea","./zh-tw.js":"90ea"};function a(e){var t=c(e);return n(t)}function c(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}a.keys=function(){return Object.keys(r)},a.resolve=c,e.exports=a,a.id="4678"},"56d7":function(e,t,n){"use strict";n.r(t);n("4de4"),n("e260"),n("e6cf"),n("cca6"),n("a79d");var r=n("2b0e"),a=n("bc3a"),c=n.n(a),u=n("c1df"),s=n.n(u),i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-app",[n("router-view",{attrs:{name:"header"}}),n("router-view",{attrs:{name:"navigation"}}),n("v-content",[n("router-view")],1)],1)},o=[],d=n("2877"),h=n("6544"),f=n.n(h),l=n("7496"),p=n("a75b"),m={},b=Object(d["a"])(m,i,o,!1,null,null,null),k=b.exports;f()(b,{VApp:l["a"],VContent:p["a"]});n("d3b7");var g=n("8c4f");r["a"].use(g["a"]);var j=[{path:"/",components:{header:function(){return Promise.all([n.e("chunk-3343739d"),n.e("chunk-3f5e4753"),n.e("chunk-26f04a9a"),n.e("chunk-d2c1f810"),n.e("chunk-3b59bc36")]).then(n.bind(null,"a4ce"))},navigation:function(){return Promise.all([n.e("chunk-3343739d"),n.e("chunk-d2c1f810"),n.e("chunk-41d9c638")]).then(n.bind(null,"19e2"))},default:function(){return Promise.all([n.e("chunk-3343739d"),n.e("chunk-3f5e4753"),n.e("chunk-59abd603")]).then(n.bind(null,"9406"))}},meta:{title:"Dashboard - Admin",isRequiresAuth:!0}},{path:"/department",components:{header:function(){return Promise.all([n.e("chunk-3343739d"),n.e("chunk-3f5e4753"),n.e("chunk-26f04a9a"),n.e("chunk-d2c1f810"),n.e("chunk-3b59bc36")]).then(n.bind(null,"a4ce"))},navigation:function(){return Promise.all([n.e("chunk-3343739d"),n.e("chunk-d2c1f810"),n.e("chunk-41d9c638")]).then(n.bind(null,"19e2"))},default:function(){return Promise.all([n.e("chunk-3343739d"),n.e("chunk-3f5e4753"),n.e("chunk-26f04a9a"),n.e("chunk-d2c1f810"),n.e("chunk-0636ea11")]).then(n.bind(null,"6edd"))}},meta:{title:"Quản lý khoa/viện",isRequiresAuth:!0}},{path:"/sector",components:{header:function(){return Promise.all([n.e("chunk-3343739d"),n.e("chunk-3f5e4753"),n.e("chunk-26f04a9a"),n.e("chunk-d2c1f810"),n.e("chunk-3b59bc36")]).then(n.bind(null,"a4ce"))},navigation:function(){return Promise.all([n.e("chunk-3343739d"),n.e("chunk-d2c1f810"),n.e("chunk-41d9c638")]).then(n.bind(null,"19e2"))},default:function(){return Promise.all([n.e("chunk-3343739d"),n.e("chunk-3f5e4753"),n.e("chunk-26f04a9a"),n.e("chunk-d2c1f810"),n.e("chunk-1100d9c3")]).then(n.bind(null,"47ec"))}},meta:{title:"Quản lý ngành đào tạo",isRequiresAuth:!0}},{path:"/teacher",components:{header:function(){return Promise.all([n.e("chunk-3343739d"),n.e("chunk-3f5e4753"),n.e("chunk-26f04a9a"),n.e("chunk-d2c1f810"),n.e("chunk-3b59bc36")]).then(n.bind(null,"a4ce"))},navigation:function(){return Promise.all([n.e("chunk-3343739d"),n.e("chunk-d2c1f810"),n.e("chunk-41d9c638")]).then(n.bind(null,"19e2"))},default:function(){return Promise.all([n.e("chunk-3343739d"),n.e("chunk-3f5e4753"),n.e("chunk-26f04a9a"),n.e("chunk-d2c1f810"),n.e("chunk-2880d852")]).then(n.bind(null,"e505"))}},meta:{title:"Quản lý giảng viên",isRequiresAuth:!0}},{path:"/student",components:{header:function(){return Promise.all([n.e("chunk-3343739d"),n.e("chunk-3f5e4753"),n.e("chunk-26f04a9a"),n.e("chunk-d2c1f810"),n.e("chunk-3b59bc36")]).then(n.bind(null,"a4ce"))},navigation:function(){return Promise.all([n.e("chunk-3343739d"),n.e("chunk-d2c1f810"),n.e("chunk-41d9c638")]).then(n.bind(null,"19e2"))},default:function(){return Promise.all([n.e("chunk-3343739d"),n.e("chunk-3f5e4753"),n.e("chunk-26f04a9a"),n.e("chunk-d2c1f810"),n.e("chunk-084e079e")]).then(n.bind(null,"ea99"))}},meta:{title:"Quản lý sinh viên",isRequiresAuth:!0}},{path:"/subject",components:{header:function(){return Promise.all([n.e("chunk-3343739d"),n.e("chunk-3f5e4753"),n.e("chunk-26f04a9a"),n.e("chunk-d2c1f810"),n.e("chunk-3b59bc36")]).then(n.bind(null,"a4ce"))},navigation:function(){return Promise.all([n.e("chunk-3343739d"),n.e("chunk-d2c1f810"),n.e("chunk-41d9c638")]).then(n.bind(null,"19e2"))},default:function(){return Promise.all([n.e("chunk-3343739d"),n.e("chunk-3f5e4753"),n.e("chunk-26f04a9a"),n.e("chunk-d2c1f810"),n.e("chunk-4f8b95f2")]).then(n.bind(null,"aede"))}},meta:{title:"Quản lý môn học",isRequiresAuth:!0}},{path:"/thesis",components:{header:function(){return Promise.all([n.e("chunk-3343739d"),n.e("chunk-3f5e4753"),n.e("chunk-26f04a9a"),n.e("chunk-d2c1f810"),n.e("chunk-3b59bc36")]).then(n.bind(null,"a4ce"))},navigation:function(){return Promise.all([n.e("chunk-3343739d"),n.e("chunk-d2c1f810"),n.e("chunk-41d9c638")]).then(n.bind(null,"19e2"))},default:function(){return Promise.all([n.e("chunk-3343739d"),n.e("chunk-3f5e4753"),n.e("chunk-26f04a9a"),n.e("chunk-d2c1f810"),n.e("chunk-4b31ba63")]).then(n.bind(null,"b872"))}},meta:{title:"Quản lý đồ án",isRequiresAuth:!0}},{path:"/admin",components:{header:function(){return Promise.all([n.e("chunk-3343739d"),n.e("chunk-3f5e4753"),n.e("chunk-26f04a9a"),n.e("chunk-d2c1f810"),n.e("chunk-3b59bc36")]).then(n.bind(null,"a4ce"))},navigation:function(){return Promise.all([n.e("chunk-3343739d"),n.e("chunk-d2c1f810"),n.e("chunk-41d9c638")]).then(n.bind(null,"19e2"))},default:function(){return Promise.all([n.e("chunk-3343739d"),n.e("chunk-3f5e4753"),n.e("chunk-26f04a9a"),n.e("chunk-d2c1f810"),n.e("chunk-212626f2")]).then(n.bind(null,"2953"))}},meta:{title:"Quản lý đồ án",isRequiresAuth:!0}},{path:"/login",components:{default:function(){return Promise.all([n.e("chunk-3343739d"),n.e("chunk-3f5e4753"),n.e("chunk-26f04a9a"),n.e("chunk-3bfa89bb")]).then(n.bind(null,"9ed6"))}},meta:{title:"Đăng nhập - Admin",isRequiresAuth:!1}}],v=new g["a"]({mode:"history",base:"/",routes:j});v.beforeEach((function(e,t,n){return e.meta.title&&(document.title=e.meta.title),e.meta.isRequiresAuth?localStorage.getItem("token")?n():n("/login"):n()}));var w=v,y=n("2f62"),S=(n("96cf"),function(){return c.a.create({baseURL:"http://localhost:3000/api"})}),R={getAll:function(){return S().get("/departments")},create:function(e){return S().post("departments",e)},update:function(e,t){return S().put("departments/".concat(e),t)},delete:function(e){return S().delete("departments/".concat(e))}},x={state:{departments:[]},getters:{departments:function(e){return e.departments}},mutations:{SET_DEPARTMENTS:function(e,t){e.departments=t}},actions:{loadDepartments:function(e){var t,n,r;return regeneratorRuntime.async((function(a){while(1)switch(a.prev=a.next){case 0:return t=e.commit,a.next=3,regeneratorRuntime.awrap(R.getAll());case 3:n=a.sent,r=n.data,t("SET_DEPARTMENTS",r);case 6:case"end":return a.stop()}}))},createDepartment:function(e,t){var n;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.dispatch,r.next=3,regeneratorRuntime.awrap(R.create(t));case 3:n("loadDepartments");case 4:case"end":return r.stop()}}))},updateDepartment:function(e,t){var n;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.dispatch,r.next=3,regeneratorRuntime.awrap(R.update(t._id,t));case 3:n("loadDepartments");case 4:case"end":return r.stop()}}))},deleteDepartment:function(e,t){var n;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.dispatch,r.next=3,regeneratorRuntime.awrap(R.delete(t._id));case 3:n("loadDepartments");case 4:case"end":return r.stop()}}))}}},T={getAll:function(){return S().get("/sectors")},create:function(e){return S().post("sectors",e)},update:function(e,t){return S().put("sectors/".concat(e),t)},delete:function(e){return S().delete("sectors/".concat(e))}},E={state:{sectors:[]},getters:{sectors:function(e){return e.sectors}},mutations:{SET_SECTORS:function(e,t){e.sectors=t}},actions:{loadSectors:function(e){var t,n,r;return regeneratorRuntime.async((function(a){while(1)switch(a.prev=a.next){case 0:return t=e.commit,a.next=3,regeneratorRuntime.awrap(T.getAll());case 3:n=a.sent,r=n.data,t("SET_SECTORS",r);case 6:case"end":return a.stop()}}))},createSector:function(e,t){var n;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.dispatch,r.next=3,regeneratorRuntime.awrap(T.create(t));case 3:n("loadSectors");case 4:case"end":return r.stop()}}))},updateSector:function(e,t){var n;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.dispatch,r.next=3,regeneratorRuntime.awrap(T.update(t._id,t));case 3:n("loadSectors");case 4:case"end":return r.stop()}}))},deleteSector:function(e,t){var n;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.dispatch,r.next=3,regeneratorRuntime.awrap(T.delete(t._id));case 3:n("loadSectors");case 4:case"end":return r.stop()}}))}}},A={getAll:function(){return S().get("/teachers")},create:function(e){return S().post("teachers",e)},update:function(e,t){return S().put("teachers/".concat(e),t)},delete:function(e){return S().delete("teachers/".concat(e))}},_={state:{teachers:[]},getters:{teachers:function(e){return e.teachers}},mutations:{SET_TEACHERS:function(e,t){e.teachers=t}},actions:{loadTeachers:function(e){var t,n,r;return regeneratorRuntime.async((function(a){while(1)switch(a.prev=a.next){case 0:return t=e.commit,a.next=3,regeneratorRuntime.awrap(A.getAll());case 3:n=a.sent,r=n.data,t("SET_TEACHERS",r);case 6:case"end":return a.stop()}}))},createTeacher:function(e,t){var n;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.dispatch,r.next=3,regeneratorRuntime.awrap(A.create(t));case 3:n("loadTeachers");case 4:case"end":return r.stop()}}))},updateTeacher:function(e,t){var n;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.dispatch,r.next=3,regeneratorRuntime.awrap(A.update(t._id,t));case 3:n("loadTeachers");case 4:case"end":return r.stop()}}))},deleteTeacher:function(e,t){var n;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.dispatch,r.next=3,regeneratorRuntime.awrap(A.delete(t._id));case 3:n("loadTeachers");case 4:case"end":return r.stop()}}))}}},P={getAll:function(){return S().get("/students")},create:function(e){return S().post("students",e)},update:function(e,t){return S().put("students/".concat(e),t)},delete:function(e){return S().delete("students/".concat(e))}},z={state:{students:[]},getters:{students:function(e){return e.students}},mutations:{SET_STUDENTS:function(e,t){e.students=t}},actions:{loadStudents:function(e){var t,n,r;return regeneratorRuntime.async((function(a){while(1)switch(a.prev=a.next){case 0:return t=e.commit,a.next=3,regeneratorRuntime.awrap(P.getAll());case 3:n=a.sent,r=n.data,t("SET_STUDENTS",r);case 6:case"end":return a.stop()}}))},createStudent:function(e,t){var n;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.dispatch,r.next=3,regeneratorRuntime.awrap(P.create(t));case 3:n("loadStudents");case 4:case"end":return r.stop()}}))},updateStudent:function(e,t){var n;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.dispatch,r.next=3,regeneratorRuntime.awrap(P.update(t._id,t));case 3:n("loadStudents");case 4:case"end":return r.stop()}}))},deleteStudent:function(e,t){var n;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.dispatch,r.next=3,regeneratorRuntime.awrap(P.delete(t._id));case 3:n("loadStudents");case 4:case"end":return r.stop()}}))}}},O={getAll:function(){return S().get("/subjects")},create:function(e){return S().post("subjects",e)},update:function(e,t){return S().put("subjects/".concat(e),t)},delete:function(e){return S().delete("subjects/".concat(e))}},D={state:{subjects:[]},getters:{subjects:function(e){return e.subjects}},mutations:{SET_SECTORS:function(e,t){e.subjects=t}},actions:{loadSubjects:function(e){var t,n,r;return regeneratorRuntime.async((function(a){while(1)switch(a.prev=a.next){case 0:return t=e.commit,a.next=3,regeneratorRuntime.awrap(O.getAll());case 3:n=a.sent,r=n.data,t("SET_SECTORS",r);case 6:case"end":return a.stop()}}))},createSubject:function(e,t){var n;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.dispatch,r.next=3,regeneratorRuntime.awrap(O.create(t));case 3:n("loadSubjects");case 4:case"end":return r.stop()}}))},updateSubject:function(e,t){var n;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.dispatch,r.next=3,regeneratorRuntime.awrap(O.update(t._id,t));case 3:n("loadSubjects");case 4:case"end":return r.stop()}}))},deleteSubject:function(e,t){var n;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.dispatch,r.next=3,regeneratorRuntime.awrap(O.delete(t._id));case 3:n("loadSubjects");case 4:case"end":return r.stop()}}))}}},C={getAll:function(){return S().get("/semesters")},create:function(e){return S().post("semesters",e)},update:function(e,t){return S().put("semesters/".concat(e),t)},delete:function(e){return S().delete("semesters/".concat(e))}},q={state:{semesters:[]},getters:{semesters:function(e){return e.semesters}},mutations:{SET_SEMESTERS:function(e,t){e.semesters=t}},actions:{loadSemesters:function(e){var t,n,r;return regeneratorRuntime.async((function(a){while(1)switch(a.prev=a.next){case 0:return t=e.commit,a.next=3,regeneratorRuntime.awrap(C.getAll());case 3:n=a.sent,r=n.data,t("SET_SEMESTERS",r);case 6:case"end":return a.stop()}}))},createSemester:function(e,t){var n;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.dispatch,r.next=3,regeneratorRuntime.awrap(C.create(t));case 3:n("loadSemesters");case 4:case"end":return r.stop()}}))},updateSemester:function(e,t){var n;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.dispatch,r.next=3,regeneratorRuntime.awrap(C.update(t._id,t));case 3:n("loadSemesters");case 4:case"end":return r.stop()}}))},deleteSemester:function(e,t){var n;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.dispatch,r.next=3,regeneratorRuntime.awrap(C.delete(t._id));case 3:n("loadSemesters");case 4:case"end":return r.stop()}}))}}},N={getAll:function(){return S().get("/thesis")},create:function(e){return S().post("thesis",e)},update:function(e,t){return S().put("thesis/".concat(e),t)},delete:function(e){return S().delete("thesis/".concat(e))}},M={state:{thesis:[]},getters:{thesis:function(e){return e.thesis}},mutations:{SET_THESIS:function(e,t){e.thesis=t}},actions:{loadThesis:function(e){var t,n,r;return regeneratorRuntime.async((function(a){while(1)switch(a.prev=a.next){case 0:return t=e.commit,a.next=3,regeneratorRuntime.awrap(N.getAll());case 3:n=a.sent,r=n.data,t("SET_THESIS",r);case 6:case"end":return a.stop()}}))},createThesis:function(e,t){var n;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.dispatch,r.next=3,regeneratorRuntime.awrap(N.create(t));case 3:n("loadThesis");case 4:case"end":return r.stop()}}))},updateThesis:function(e,t){var n;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.dispatch,r.next=3,regeneratorRuntime.awrap(N.update(t._id,t));case 3:n("loadThesis");case 4:case"end":return r.stop()}}))},deleteThesis:function(e,t){var n;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.dispatch,r.next=3,regeneratorRuntime.awrap(N.delete(t._id));case 3:n("loadThesis");case 4:case"end":return r.stop()}}))}}},L={getAll:function(){return S().get("/admins")},create:function(e){return S().post("admins",e)},update:function(e,t){return S().put("admins/".concat(e),t)},delete:function(e){return S().delete("admins/".concat(e))}},I={state:{admins:[]},getters:{admins:function(e){return e.admins}},mutations:{SET_ADMINS:function(e,t){e.admins=t}},actions:{loadAdmins:function(e){var t,n,r;return regeneratorRuntime.async((function(a){while(1)switch(a.prev=a.next){case 0:return t=e.commit,a.next=3,regeneratorRuntime.awrap(L.getAll());case 3:n=a.sent,r=n.data,t("SET_ADMINS",r);case 6:case"end":return a.stop()}}))},createAdmin:function(e,t){var n;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.dispatch,r.next=3,regeneratorRuntime.awrap(L.create(t));case 3:n("loadAdmins");case 4:case"end":return r.stop()}}))},updateAdmin:function(e,t){var n;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.dispatch,r.next=3,regeneratorRuntime.awrap(L.update(t._id,t));case 3:n("loadAdmins");case 4:case"end":return r.stop()}}))},deleteAdmin:function(e,t){var n;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.dispatch,r.next=3,regeneratorRuntime.awrap(L.delete(t._id));case 3:n("loadAdmins");case 4:case"end":return r.stop()}}))}}};r["a"].use(y["a"]);var Q=new y["a"].Store({state:{},mutations:{},actions:{},modules:{department:x,sector:E,teacher:_,student:z,subject:D,semester:q,thesis:M,admin:I}}),U=n("f309");r["a"].use(U["a"]);var B=new U["a"]({theme:{themes:{light:{primary:"#4caf50",secondary:"#4caf50",tertiary:"#495057",accent:"#82B1FF",error:"#f55a4e",info:"#00d3ee",success:"#5cb860",warning:"#ffa21a"}}}});r["a"].config.productionTip=!1,new r["a"]({router:w,store:Q,vuetify:B,render:function(e){return e(k)}}).$mount("#app"),r["a"].prototype.$http=c.a;var F=localStorage.getItem("token");F&&(r["a"].prototype.$http.defaults.headers.common.Authorization="Bearer ".concat(F)),r["a"].filter("dateFormat",(function(e){s.a.locale("vi");var t=s()(String(e));return t.isValid()?t.format("LL"):null}))}});
  //# sourceMappingURL=app.865f85c5.js.map