text: (function(t){function e(e){for(var n,a,r=e[0],l=e[1],u=e[2],d=0,p=[];d<r.length;d++)a=r[d],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&p.push(o[a][0]),o[a]=0;for(n in l)Object.prototype.hasOwnProperty.call(l,n)&&(t[n]=l[n]);c&&c(e);while(p.length)p.shift()();return i.push.apply(i,u||[]),s()}function s(){for(var t,e=0;e<i.length;e++){for(var s=i[e],n=!0,r=1;r<s.length;r++){var l=s[r];0!==o[l]&&(n=!1)}n&&(i.splice(e--,1),t=a(a.s=s[0]))}return t}var n={},o={app:0},i=[];function a(e){if(n[e])return n[e].exports;var s=n[e]={i:e,l:!1,exports:{}};return t[e].call(s.exports,s,s.exports,a),s.l=!0,s.exports}a.m=t,a.c=n,a.d=function(t,e,s){a.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:s})},a.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var s=Object.create(null);if(a.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)a.d(s,n,function(e){return t[e]}.bind(null,n));return s},a.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return a.d(e,"a",e),e},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.p="/";var r=window["webpackJsonp"]=window["webpackJsonp"]||[],l=r.push.bind(r);r.push=e,r=r.slice();for(var u=0;u<r.length;u++)e(r[u]);var c=l;i.push([0,"chunk-vendors"]),s()})({0:function(t,e,s){t.exports=s("56d7")},"025f":function(t,e,s){},"034f":function(t,e,s){"use strict";s("85ec")},"03c9":function(t,e,s){},1317:function(t,e,s){"use strict";s("94ad")},"14d4":function(t,e,s){},1689:function(t,e,s){"use strict";s("c2b3")},"1a73":function(t,e,s){},"1bb5":function(t,e,s){"use strict";s("32fc")},"1cc7":function(t,e,s){"use strict";s("e5b5")},"219e":function(t,e,s){"use strict";s("549f")},"2b6b":function(t,e,s){},"32fc":function(t,e,s){},3391:function(t,e,s){"use strict";s("f91b")},"34d5":function(t,e,s){"use strict";s("e01f")},"40ad":function(t,e,s){"use strict";s("6497")},"40ba":function(t,e,s){},"411a":function(t,e,s){"use strict";s("03c9")},4467:function(t,e,s){},"4da7":function(t,e,s){"use strict";s("fec0")},"4fcd":function(t,e,s){"use strict";s("b36c")},"549f":function(t,e,s){},"56d7":function(t,e,s){"use strict";s.r(e);s("e260"),s("e6cf"),s("cca6"),s("a79d");var n=s("2b0e"),o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{attrs:{id:"app"}},[s("div",{attrs:{id:"response"}},[t._v(" "+t._s(this.$store.state.user.firstName)+" ")]),s("div",{attrs:{id:"nav"}},[t.authenticated?s("router-link",{attrs:{to:"/login",replace:""},nativeOn:{click:function(e){return t.logout()}}},[t._v("Logout")]):t._e()],1),s("router-view",{on:{authenticated:t.setAuthenticated}})],1)},i=[],a=(s("ac1f"),s("5319"),{name:"App",data:function(){return{mockAccount:{username:"mock",password:"mock"}}},mounted:function(){this.authenticated||this.$router.replace({name:"login"})},methods:{setAuthenticated:function(t){this.authenticated=t},logout:function(){this.authenticated=!1,this.$store.state.user=""}}}),r=a,l=(s("034f"),s("2877")),u=Object(l["a"])(r,o,i,!1,null,null,null),c=u.exports,d=s("8c4f"),p=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{attrs:{id:"login"}},[s("h1",[t._v("Login")]),s("div",[s("input",{directives:[{name:"model",rawName:"v-model",value:t.input.email,expression:"input.email"}],attrs:{type:"text",name:"email",placeholder:"Username"},domProps:{value:t.input.email},on:{input:function(e){e.target.composing||t.$set(t.input,"email",e.target.value)}}})]),s("div",[s("input",{directives:[{name:"model",rawName:"v-model",value:t.input.password,expression:"input.password"}],staticStyle:{"margin-top":"5px"},attrs:{type:"password",name:"password",placeholder:"Password"},domProps:{value:t.input.password},on:{input:function(e){e.target.composing||t.$set(t.input,"password",e.target.value)}}})]),s("div",[s("button",{staticStyle:{"margin-top":"10px"},attrs:{type:"button"},on:{click:function(e){return t.login()}}},[t._v("Login")]),s("select",{directives:[{name:"model",rawName:"v-model",value:t.input.userType,expression:"input.userType"}],staticStyle:{"margin-left":"10px"},attrs:{name:"type",size:"Number_of_options"},on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.$set(t.input,"userType",e.target.multiple?s:s[0])}}},[s("option",{attrs:{disabled:"",value:""}},[t._v("Please enter the user type")]),s("option",[t._v("ADVISOR")]),s("option",[t._v("DBR")]),s("option",[t._v("GSES")]),s("option",[t._v("IBDR")]),s("option",[t._v("JURY")]),s("option",[t._v("STUDENT")])])]),s("div",{staticStyle:{"margin-top":"10px"}},[t._v("Please select the User type")]),s("div",{staticClass:"response"},[t._v(t._s(this.response))])])},m=[],h=(s("99af"),s("bc3a")),f=s.n(h),v={name:"Login",data:function(){return{input:{email:"",password:"",userType:"",id:""},response:""}},methods:{login:function(){var t=this;this.input.userType=this.input.userType.toUpperCase(),f()({method:"POST",url:"http://localhost:8080/mbs/login",data:this.input,headers:{"content-type":"application/json"}}).then((function(e){console.log(e.data),null!=e.data.user&&(t.$emit("authenticated",!0),t.$store.state.user=e.data.user,t.$store.state.authenticated=e.data.success,t.$router.replace({name:e.data.user.userType.toLowerCase()+"home"}))})).catch((function(e){null!=e.response&&(console.log(e),t.response="HTTP Status Code:".concat(e.response.status,", ").concat(e.response.data.errorMessage))}))}}},g=v,_=(s("ea35"),Object(l["a"])(g,p,m,!1,null,"b5bb263e",null)),b=_.exports,S=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"app"},[s("leftMenuStudent"),t._m(0)],1)},y=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{attrs:{id:"studenthome"}},[s("div",[s("h1",[t._v("Student Home Page")])])])}],T=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{attrs:{id:"nav"}},[s("div",[s("router-link",{attrs:{to:"/student/advisor-selection",replace:""}},[t._v("Advisor Selection")])],1),s("div",[s("router-link",{attrs:{to:"/student/program-plan-form",replace:""}},[t._v("Program Plan Form")])],1),s("div",[s("router-link",{attrs:{to:"/student/thesis-management",replace:""}},[t._v("Thesis Management")])],1),s("div",[s("router-link",{attrs:{to:"/student/form-menu",replace:""}},[t._v("Form Menu")])],1)])},P=[],E={components:{},methods:{select:function(t){this.$router.push(t.item.text)}}},x=E,F=(s("4da7"),Object(l["a"])(x,T,P,!1,null,null,null)),w=F.exports,$={components:{leftMenuStudent:w},name:"StudentHome",data:function(){return{}}},D=$,M=(s("8222"),Object(l["a"])(D,S,y,!1,null,"298971bc",null)),A=M.exports,N=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"app"},[s("LeftMenuStudent"),s("div",{attrs:{id:"StudentAdvisorSelection"}},[t._m(0),s("select",{directives:[{name:"model",rawName:"v-model",value:t.selectedAdvisor,expression:"selectedAdvisor"}],attrs:{name:"selectedAdvisor"},on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.selectedAdvisor=e.target.multiple?s:s[0]}}},t._l(this.advisors,(function(e,n){return s("option",{key:n,domProps:{value:e}},[t._v(t._s(e.firstName)+" "+t._s(e.lastName))])})),0),s("div",[s("button",{staticStyle:{"margin-top":"10px"},attrs:{type:"button"},on:{click:function(e){return t.proposeToAnAdvisor()}}},[t._v("Propose to this Advisor")])]),s("div",[t._v(" "+t._s(this.response)+" ")])])],1)},R=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("h1",[t._v("StudentAdvisorSelection ")]),s("p",[t._v(" This is the StudentAdvisorSelection ")])])}],j=(s("159b"),{components:{LeftMenuStudent:w},name:"StudentAdvisorSelection",data:function(){return{advisors:[],selectedAdvisor:null,input:{studentId:"",advisorIds:[]},response:""}},mounted:function(){var t=this;console.log(this.$store.state.user.id),f()({method:"GET",url:"http://localhost:8080/mbs/students/getRecommendedAdvisors/".concat(this.$store.state.user.id)}).then((function(e){console.log(e.data),null!=e.data.recommendations&&e.data.recommendations.forEach((function(e){null!=e.advisor&&t.advisors.push(e.advisor)}))}),(function(t){console.error(t.response)})),this.advisors.push({firstName:"mock Adv. FN",lastName:"mock Adv. LN",id:"mock_recc_adv_id"})},methods:{clearError:function(){this.response=""},proposeToAnAdvisor:function(){var t=this;this.clearError(),console.log(this.selectedAdvisor),this.input.studentId=this.$store.state.user.id,this.input.advisorIds.push(this.selectedAdvisor.id),f()({method:"PUT",url:"http://localhost:8080/mbs/students/proposeAdvisors/".concat(this.$store.state.user.id),data:this.input,headers:{"content-type":"application/json"}}).then((function(e){console.log(e.data),t.response=e.data.successMessage}),(function(e){t.response=e.response.data.errorMessage,console.log(e.response),console.error(e)}))}}}),k=j,I=(s("eef5"),Object(l["a"])(k,N,R,!1,null,"862e82e0",null)),C=I.exports,U=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"app"},[s("left-menu-student"),s("div",{attrs:{id:"StudentProgramPlanForm"}},[t._m(0),s("div",[t._v(t._s(this.$store.state.user.programPlanForm.fileName)+" "),s("button",{staticStyle:{"margin-top":"10px"},attrs:{type:"button",disabled:t.isDownloadDisabled},on:{click:function(e){return t.download()}}},[t._v("Download")]),s("button",{staticStyle:{"margin-left":"10px"},attrs:{type:"button",disabled:t.isRemoveDisabled},on:{click:function(e){return t.remove()}}},[t._v("Remove")])]),s("div",[s("label",[s("input",{ref:"file",attrs:{type:"file",name:"file",id:"file"},on:{change:function(e){return t.handleFileUpload()}}})]),s("button",{staticStyle:{"margin-top":"10px"},attrs:{type:"button"},on:{click:function(e){return t.submit()}}},[t._v("Submit")])]),s("div",[t._v(" "+t._s(this.response)+" ")])])],1)},L=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("h1",[t._v("StudentProgramPlanForm")]),s("p",[t._v(" This is Student Program Plan Form Page ")])])}],O=(s("b0c0"),{components:{LeftMenuStudent:w},name:"StudentProgramPlanForm",data:function(){return{file:"",response:"",disabledRemove:!1,disabledDownload:!1}},mounted:function(){console.log(this.$store.state.user),null==this.$store.state.user.programPlanForm&&(this.$store.state.user.programPlanForm={fileName:"No Program Plan Form File for the Student ".concat(this.$store.state.user.firstName," ")},this.disabledRemove=!0,this.disabledDownload=!0)},computed:{isDownloadDisabled:function(){return this.disabledDownload},isRemoveDisabled:function(){return this.disabledRemove}},methods:{clearError:function(){this.response=""},handleFileUpload:function(){this.clearError(),this.file=this.$refs.file.files[0],console.log(this.file)},submit:function(){var t=this;this.clearError();var e=new FormData;e.append("file",this.file),console.log(e),f()({method:"POST",url:"http://localhost:8080/mbs/programPlanForm/upload/".concat(this.$store.state.user.id),data:e,headers:{"content-type":"application/json"}}).then((function(e){t.$store.state.user.programPlanForm.fileName=t.file.name,t.disabledRemove=!1,t.disabledDownload=!1,console.log(e.data)})).catch((function(e){t.response="HTTP Status Code:".concat(e.response.status,", ").concat(e.response.data.errorMessage)}))},download:function(){var t=this;this.clearError(),f()({method:"GET",url:"http://localhost:8080/mbs/programPlanForm/getByStudent/".concat(this.$store.state.user.id)}).then((function(t){console.log(t.data),window.open(t.data.url)})).catch((function(e){t.response="HTTP Status Code:".concat(e.response.status,", ").concat(e.response.data.errorMessage)}))},remove:function(){var t=this;this.clearError(),f()({method:"DELETE",url:"http://localhost:8080/mbs/programPlanForm/delete/".concat(this.$store.state.user.id)}).then((function(e){t.disabledRemove=!0,t.disabledDownload=!0,t.$store.state.user.programPlanForm={fileName:"No Program Plan Form File for the Student ".concat(t.$store.state.user.firstName," ")},console.log(e.data)})).catch((function(e){t.response="HTTP Status Code:".concat(e.response.status,", ").concat(e.response.data.errorMessage)}))}}}),G=O,J=(s("e245"),Object(l["a"])(G,U,L,!1,null,"2ec6845f",null)),B=J.exports,H=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"app"},[s("left-menu-student"),s("div",{attrs:{id:"StudentThesisManagement"}},[s("div",{attrs:{id:"ThesisManagement"}},[t._m(0),s("div",{staticStyle:{"margin-left":"5px"}},[t._v(t._s(this.$store.state.user.thesis.fileName)+" "),s("button",{attrs:{type:"button",disabled:t.isDownloadDisabled,id:"downloadDisabled"},on:{click:function(e){return t.download()}}},[t._v("Download")]),s("button",{staticStyle:{"margin-left":"39px"},attrs:{type:"button",disabled:t.isRemoveDisabled},on:{click:function(e){return t.remove()}}},[t._v("Remove")]),s("label",{staticStyle:{"margin-left":"16px"}},[t._v(" Plagiarism Ratio: "+t._s(this.plagiarismRatio)+" "),s("button",{staticStyle:{"margin-left":"39px"},attrs:{type:"button",disabled:t.isGetPlagiarismRatioDisabled},on:{click:function(e){return t.getPlagiarismRatio()}}},[t._v("Get Plagiarism Ratio")])])]),s("div",{staticStyle:{"margin-left":"5px"}},[s("label",[s("input",{ref:"file",attrs:{type:"file",name:"file",id:"file"},on:{change:function(e){return t.handleFileUpload()}}})]),s("button",{staticStyle:{"margin-top":"10px"},attrs:{type:"button"},on:{click:function(e){return t.submit()}}},[t._v("Submit")])])]),s("div",{staticClass:"response"},[t._v(t._s(this.response))])])],1)},z=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticStyle:{"margin-left":"5px"}},[s("h1",[t._v("StudentThesisManagement")]),s("p",[t._v(" This is Student Student Thesis Management Page ")])])}],W={components:{LeftMenuStudent:w},name:"StudentThesisManagement",data:function(){return{file:"",response:"",disabledRemove:!1,disabledDownload:!1,disabledGetPlagiarismRatio:!1,deadline:"",thesisTopic:"",plagiarismRatio:""}},mounted:function(){console.log(this.$store.state.user),null==this.$store.state.user.thesis&&(this.$store.state.user.thesis={fileName:"No Thesis File for the Student ".concat(this.$store.state.user.firstName," ")},this.disabledRemove=!0,this.disabledDownload=!0,this.disabledGetPlagiarismRatio=!0)},computed:{isDownloadDisabled:function(){return this.disabledDownload},isRemoveDisabled:function(){return this.disabledRemove},isGetPlagiarismRatioDisabled:function(){return this.disabledGetPlagiarismRatio}},methods:{clearError:function(){this.response=""},handleFileUpload:function(){this.clearError(),this.file=this.$refs.file.files[0],console.log(this.file)},submit:function(){var t=this;this.clearError();var e=new FormData;e.append("file",this.file),console.log(e),f()({method:"POST",url:"http://localhost:8080/mbs/thesis/upload/".concat(this.$store.state.user.id),data:e,headers:{"content-type":"application/json"}}).then((function(e){t.$store.state.user.thesis.fileName=t.file.name,t.disabledRemove=!1,t.disabledDownload=!1,t.disabledGetPlagiarismRatio=!1,console.log(e.data)})).catch((function(e){t.response="".concat(e.response.status,", ").concat(e.response.data.errorMessage)}))},download:function(){var t=this;this.clearError(),f()({method:"GET",url:"http://localhost:8080/mbs/thesis/getByStudent/".concat(this.$store.state.user.id)}).then((function(t){console.log(t.data),window.open(t.data.url)})).catch((function(e){t.response="".concat(e.response.status,", ").concat(e.response.data.errorMessage)}))},remove:function(){var t=this;this.clearError(),f()({method:"DELETE",url:"http://localhost:8080/mbs/thesis/delete/".concat(this.$store.state.user.id)}).then((function(e){t.disabledRemove=!0,t.disabledDownload=!0,t.disabledGetPlagiarismRatio=!0,t.plagiarismRatio="",t.$store.state.user.thesis={fileName:"No Thesis File for the Student ".concat(t.$store.state.user.firstName," ")},console.log(e.data)})).catch((function(e){t.response="".concat(e.response.status,", ").concat(e.response.data.errorMessage)}))},getPlagiarismRatio:function(){var t=this;this.clearError(),f()({method:"GET",url:"http://localhost:8080/mbs/students/".concat(this.$store.state.user.id)}).then((function(e){console.log(e.data),t.plagiarismRatio=e.data.student.thesis.plagiarismRatio})).catch((function(e){t.response="".concat(e.response.status,", ").concat(e.response.data.errorMessage)}))}}},V=W,Y=(s("7a60"),Object(l["a"])(V,H,z,!1,null,"44db4aa4",null)),q=Y.exports,K=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"app"},[s("LeftMenuStudent"),s("div",{attrs:{id:"StudentFormMenu"}},[s("div",[s("h1",[t._v("StudentFormMenu ")]),s("p",[t._v(" This is the StudentFormMenu ")]),s("div",[s("button",{staticStyle:{"margin-top":"10px"},attrs:{type:"button"},on:{click:function(e){return t.downloadDM()}}},[t._v("Download Form-DM")]),s("label",[s("input",{ref:"file",attrs:{type:"file",name:"file",id:"file"},on:{change:function(e){return t.handleFileUpload()}}})]),s("button",{staticStyle:{"margin-left":"10px"},attrs:{type:"button"},on:{click:function(e){return t.uploadDM()}}},[t._v("Upload Form-DM")])]),s("div",[s("button",{staticStyle:{"margin-top":"10px"},attrs:{type:"button"},on:{click:function(e){return t.downloadES()}}},[t._v("Download Form-ES")]),s("label",[s("input",{ref:"file2",attrs:{type:"file",name:"file2",id:"file2"},on:{change:function(e){return t.handleFileUpload2()}}})]),s("button",{staticStyle:{"margin-left":"10px"},attrs:{type:"button"},on:{click:function(e){return t.uploadES()}}},[t._v("Upload Form-ES")])]),s("div",[s("button",{staticStyle:{"margin-top":"10px"},attrs:{type:"button"},on:{click:function(e){return t.downloadGD()}}},[t._v("Download Form-GD")]),s("label",[s("input",{ref:"file3",attrs:{type:"file",name:"file3",id:"file3"},on:{change:function(e){return t.handleFileUpload3()}}})]),s("button",{staticStyle:{"margin-left":"10px"},attrs:{type:"button"},on:{click:function(e){return t.uploadGD()}}},[t._v("Upload Form-GD")])]),s("div",[s("button",{staticStyle:{"margin-top":"10px"},attrs:{type:"button"},on:{click:function(e){return t.downloadTD()}}},[t._v("Download Form-TD")]),s("label",[s("input",{ref:"file4",attrs:{type:"file",name:"file4",id:"file4"},on:{change:function(e){return t.handleFileUpload4()}}})]),s("button",{staticStyle:{"margin-left":"10px"},attrs:{type:"button"},on:{click:function(e){return t.uploadTD()}}},[t._v("Upload Form-TD")])]),s("div",[s("button",{staticStyle:{"margin-top":"10px"},attrs:{type:"button"},on:{click:function(e){return t.downloadTJ()}}},[t._v("Download Form-TJ")]),s("label",[s("input",{ref:"file5",attrs:{type:"file",name:"file5",id:"file5"},on:{change:function(e){return t.handleFileUpload5()}}})]),s("button",{staticStyle:{"margin-left":"10px"},attrs:{type:"button"},on:{click:function(e){return t.uploadTJ()}}},[t._v("Upload Form-TJ")])]),s("div",{staticStyle:{"margin-bottom":"10px"}},[s("button",{staticStyle:{"margin-top":"10px"},attrs:{type:"button"},on:{click:function(e){return t.downloadTJA()}}},[t._v("Download Form-TJ-A")]),s("label",[s("input",{ref:"file6",attrs:{type:"file",name:"file6",id:"file6"},on:{change:function(e){return t.handleFileUpload6()}}})]),s("button",{staticStyle:{"margin-left":"10px"},attrs:{type:"button"},on:{click:function(e){return t.uploadTJA()}}},[t._v("Upload Form-TJ-A")])]),t._v(" "+t._s(this.response)+" ")])])],1)},Q=[],X={components:{LeftMenuStudent:w},name:"StudentFormMenu",data:function(){return{file:"",file2:"",file3:"",file4:"",file5:"",file6:"",response:"",input:""}},mounted:function(){},computed:{},methods:{clearError:function(){this.response=""},handleFileUpload:function(){this.clearError(),this.file=this.$refs.file.files[0],console.log(this.file)},handleFileUpload2:function(){this.clearError(),this.file2=this.$refs.file2.files[0],console.log(this.file2)},handleFileUpload3:function(){this.clearError(),this.file3=this.$refs.file3.files[0],console.log(this.file3)},handleFileUpload4:function(){this.clearError(),this.file4=this.$refs.file4.files[0],console.log(this.file4)},handleFileUpload5:function(){this.clearError(),this.file5=this.$refs.file5.files[0],console.log(this.file5)},handleFileUpload6:function(){this.clearError(),this.file6=this.$refs.file6.files[0],console.log(this.file6)},uploadDM:function(){var t=this;this.clearError();var e=new FormData;e.append("file",this.file),console.log(e),console.log(this.$store.state.user.id),f()({method:"POST",url:"http://localhost:8080/mbs/forms/uploadForm/dm/".concat(this.$store.state.user.id),data:e,headers:{"content-type":"application/json"}}).then((function(e){t.response=e.data.successMessage,console.log(e.data)})).catch((function(e){t.response="HTTP Status Code:".concat(e.response.status,", ").concat(e.response.data.errorMessage)}))},uploadES:function(){var t=this;this.clearError();var e=new FormData;console.log(this.file2),e.append("file",this.file2),console.log(e),f()({method:"POST",url:"http://localhost:8080/mbs/forms/uploadForm/es/".concat(this.$store.state.user.id),data:e,headers:{"content-type":"application/json"}}).then((function(e){console.log(e.data),t.response=e.data.successMessage})).catch((function(e){t.response="HTTP Status Code:".concat(e.response.status,", ").concat(e.response.data.errorMessage)}))},uploadGD:function(){var t=this;this.clearError();var e=new FormData;e.append("file",this.file3),console.log(e),f()({method:"POST",url:"http://localhost:8080/mbs/forms/uploadForm/gd/".concat(this.$store.state.user.id),data:e,headers:{"content-type":"application/json"}}).then((function(e){console.log(e.data),t.response=e.data.successMessage})).catch((function(e){t.response="HTTP Status Code:".concat(e.response.status,", ").concat(e.response.data.errorMessage)}))},uploadTD:function(){var t=this;this.clearError();var e=new FormData;e.append("file",this.file4),console.log(e),f()({method:"POST",url:"http://localhost:8080/mbs/forms/uploadForm/td/".concat(this.$store.state.user.id),data:e,headers:{"content-type":"application/json"}}).then((function(e){console.log(e.data),t.response=e.data.successMessage})).catch((function(e){t.response="HTTP Status Code:".concat(e.response.status,", ").concat(e.response.data.errorMessage)}))},uploadTJ:function(){var t=this;this.clearError();var e=new FormData;e.append("file",this.file5),console.log(e),f()({method:"POST",url:"http://localhost:8080/mbs/forms/uploadForm/tj/".concat(this.$store.state.user.id),data:e,headers:{"content-type":"application/json"}}).then((function(e){console.log(e.data),t.response=e.data.successMessage})).catch((function(e){t.response="HTTP Status Code:".concat(e.response.status,", ").concat(e.response.data.errorMessage)}))},uploadTJA:function(){var t=this;this.clearError();var e=new FormData;e.append("file",this.file6),f()({method:"POST",url:"http://localhost:8080/mbs/forms/uploadForm/tja/".concat(this.$store.state.user.id),data:e,headers:{"content-type":"application/json"}}).then((function(e){console.log(e.data),t.response=e.data.successMessage})).catch((function(e){t.response="HTTP Status Code:".concat(e.response.status,", ").concat(e.response.data.errorMessage)}))},downloadDM:function(){window.open("http://localhost:8080/mbs/forms/download/Form-DM")},downloadES:function(){window.open("http://localhost:8080/mbs/forms/download/Form-ES")},downloadGD:function(){window.open("http://localhost:8080/mbs/forms/download/Form-GD")},downloadTD:function(){window.open("http://localhost:8080/mbs/forms/download/Form-TD")},downloadTJ:function(){window.open("http://localhost:8080/mbs/forms/download/Form-TJ")},downloadTJA:function(){window.open("http://localhost:8080/mbs/forms/download/Form-TJA")}}},Z=X,tt=(s("4fcd"),Object(l["a"])(Z,K,Q,!1,null,"20c221c8",null)),et=tt.exports,st=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"app"},[s("left-menu-advisor"),t._m(0)],1)},nt=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{attrs:{id:"advisorhome"}},[s("div",[s("h1",[t._v("Advisor Home Page")])])])}],ot=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{attrs:{id:"nav"}},[s("div",[s("router-link",{attrs:{to:"/advisor/student-approval",replace:""}},[t._v("Student Approval")])],1),s("div",[s("router-link",{attrs:{to:"/advisor/update-thesis-topics",replace:""}},[t._v("Update Thesis Topics")])],1),s("div",[s("router-link",{attrs:{to:"/advisor/complete-program-plan-forms",replace:""}},[t._v("Complete Program Plan Forms")])],1),s("div",[s("router-link",{attrs:{to:"/advisor/submit-thesis-copies",replace:""}},[t._v("Submit Thesis Copies")])],1),s("div",[s("router-link",{attrs:{to:"/advisor/jury-recommendation",replace:""}},[t._v("Jury Recommendation")])],1),s("div",[s("router-link",{attrs:{to:"/advisor/final-thesis-copy-deadline-extension",replace:""}},[t._v("Final Thesis Copy Deadline Extension")])],1)])},it=[],at={components:{},name:"AdvisorLeftMenu",methods:{select:function(t){this.$router.push(t.item.text)}}},rt=at,lt=(s("943e"),Object(l["a"])(rt,ot,it,!1,null,null,null)),ut=lt.exports,ct={components:{LeftMenuAdvisor:ut},name:"AdvisorHome",data:function(){return{}}},dt=ct,pt=(s("34d5"),Object(l["a"])(dt,st,nt,!1,null,"3fc84de2",null)),mt=pt.exports,ht=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"app"},[s("left-menu-advisor"),s("div",{attrs:{id:"AdvisorStudentApproval"}},[t._m(0),s("div",[s("button",{staticStyle:{"margin-top":"10px"},attrs:{type:"button"},on:{click:function(e){return t.selectStudent()}}},[t._v("Select Student")])]),s("select",{directives:[{name:"model",rawName:"v-model",value:t.student,expression:"student"}],attrs:{name:"student",size:"Number_of_options"},on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.student=e.target.multiple?s:s[0]}}},t._l(t.students,(function(e,n){return s("option",{key:n,domProps:{value:e}},[t._v(t._s(e.firstName)+" "+t._s(e.lastName))])})),0),s("div",[s("p",[t._v(" Program Plan Form : "+t._s(this.programPlanFormStatus)+" ")])]),s("div",[s("button",{staticStyle:{"margin-top":"5px"},attrs:{type:"button"},on:{click:function(e){return t.approveStudent()}}},[t._v("Approve Student Proposal")])]),s("div",[s("button",{staticStyle:{"margin-top":"10px","margin-left":"800px"},attrs:{type:"button",disabled:t.isButtonDisabled},on:{click:function(e){return t.getProgramPlanForm()}}},[t._v("Get Program Plan Form")])]),s("div",[t._v(" "+t._s(this.response)+" ")])])],1)},ft=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("h1",[t._v("AdvisorStudentApproval ")]),s("p",[t._v(" This is the AdvisorStudentApproval ")])])}],vt={components:{LeftMenuAdvisor:ut},name:"AdvisorStudentApproval",data:function(){return{disabledButton:!0,programPlanFormStatus:"",studentId:"",students:[],proposals:[],student:"",selectedAdvisor:null,input:{advisorId:"",studentIds:[]},response:""}},computed:{isButtonDisabled:function(){return this.disabledButton}},methods:{clearError:function(){this.response=""},selectStudent:function(){this.clearError(),this.studentId=this.student.id,null!=this.student.programPlanForm&&(this.programPlanFormStatus=this.student.programPlanForm.programPlanFormStatus,this.disabledButton=!1)},getProgramPlanForm:function(){var t=this;this.clearError(),f()({method:"GET",url:"http://localhost:8080/mbs/programPlanForm/getByStudent/".concat(this.studentId)}).then((function(t){console.log(t.data),window.open(t.data.url)})).catch((function(e){t.response="".concat(e.response.status,", ").concat(e.response.data.errorMessage)}))},approveStudent:function(){var t=this;this.clearError(),console.log(this.student),this.input.studentIds.push(this.studentId),f()({method:"PUT",url:"http://localhost:8080/mbs/advisors/approveStudents/".concat(this.$store.state.user.id),data:this.input,headers:{"content-type":"application/json"}}).then((function(e){console.log(e.data),t.response=e.data.successMessage}),(function(e){t.response=e.response.data.errorMessage,console.log(e.response),console.error(e)}))}},mounted:function(){var t=this;console.log("User ID: "+this.$store.state.user.id),f()({method:"GET",url:"http://localhost:8080/mbs/advisors/getProposals/".concat(this.$store.state.user.id)}).then((function(e){console.log(e.data.proposals),null!=e.data.proposals&&e.data.proposals.forEach((function(e){null!=e.student&&t.students.push(e.student)}))}),(function(t){console.error(t)}))}},gt=vt,_t=(s("6e0f"),Object(l["a"])(gt,ht,ft,!1,null,"451b28e4",null)),bt=_t.exports,St=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"app"},[s("left-menu-advisor"),s("div",{attrs:{id:"AdvisorUpdateThesisTopics"}},[t._m(0),s("div",[s("button",{staticStyle:{"margin-top":"10px"},attrs:{type:"button"},on:{click:function(e){return t.selectStudent()}}},[t._v("Select Student")])]),s("select",{directives:[{name:"model",rawName:"v-model",value:t.student,expression:"student"}],attrs:{name:"student",size:"Number_of_options"},on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.student=e.target.multiple?s:s[0]}}},t._l(t.students,(function(e,n){return s("option",{key:n,domProps:{value:e}},[t._v(t._s(e.firstName)+" "+t._s(e.lastName))])})),0),s("div",[s("p",[t._v(" Selected Student ID : "+t._s(this.input.studentId)+" ")]),s("p",[t._v(" Thesis Topic : "+t._s(this.input.thesisTopic)+" ")])]),s("div",[s("input",{directives:[{name:"model",rawName:"v-model",value:t.thesisTopic,expression:"thesisTopic"}],attrs:{placeholder:"Write the New Thesis Topic"},domProps:{value:t.thesisTopic},on:{input:function(e){e.target.composing||(t.thesisTopic=e.target.value)}}}),s("div",[s("button",{staticStyle:{"margin-top":"10px"},attrs:{type:"button"},on:{click:function(e){return t.updateThesisTopic()}}},[t._v("Update Thesis Topic")])]),s("p",[t._v("New Topic is: "+t._s(this.inputUpdateThesisTopic.thesisTopic))])]),s("div",[t._v(" "+t._s(this.response)+" ")])])],1)},yt=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("h1",[t._v("AdvisorUpdateThesisTopics ")]),s("p",[t._v(" This is the AdvisorUpdateThesisTopics ")])])}],Tt={components:{LeftMenuAdvisor:ut},name:"AdvisorUpdateThesisTopics",data:function(){return{thesisTopic:"",student:"",students:[],studentList:[],input:{studentId:"",proposalStatus:"",programPlanFormStatus:"",thesisTopic:""},inputUpdateThesisTopic:{studentId:"",thesisTopic:""},response:""}},mounted:function(){var t=this;console.log("User ID: "+this.$store.state.user.id),f()({method:"GET",url:"http://localhost:8080/mbs/advisors/getApprovedStudents/".concat(this.$store.state.user.id)}).then((function(e){console.log(e.data.studentList),null!=e.data.studentList&&e.data.studentList.forEach((function(e){null!=e&&t.students.push(e)}))}),(function(t){console.error(t.response)}))},methods:{clearError:function(){this.response=""},selectStudent:function(){this.clearError(),this.input.studentId=this.student.id,null!=this.student.proposalStatus?this.input.proposalStatus=this.student.proposalStatus:this.input.proposalStatus="",null!=this.student.programPlanFormStatus?this.input.programPlanFormStatus=this.student.programPlanFormStatus:this.input.programPlanFormStatus="",null!=this.student.thesisTopic?this.input.thesisTopic=this.student.thesisTopic:this.input.thesisTopic=""},updateThesisTopic:function(){var t=this;this.clearError(),this.inputUpdateThesisTopic.studentId=this.student.id,this.inputUpdateThesisTopic.thesisTopic=this.thesisTopic,f()({method:"PUT",url:"http://localhost:8080/mbs/thesis/updateThesisTopic",data:this.inputUpdateThesisTopic,headers:{"content-type":"application/json"}}).then((function(e){console.log(e.data),t.response=e.data.successMessage}),(function(e){t.response=e.response.data.errorMessage,console.log(e.response),console.error(e)}))}}},Pt=Tt,Et=(s("d023"),Object(l["a"])(Pt,St,yt,!1,null,"3a79d950",null)),xt=Et.exports,Ft=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"app"},[s("left-menu-advisor"),s("div",{attrs:{id:"AdvisorCompleteProgramPlanForms"}},[t._m(0),s("div",[s("select",{directives:[{name:"model",rawName:"v-model",value:t.selectedStudent,expression:"selectedStudent"}],attrs:{name:"student",size:"Number_of_options"},on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.selectedStudent=e.target.multiple?s:s[0]}}},t._l(t.students,(function(e,n){return s("option",{key:n,domProps:{value:e}},[t._v(t._s(e.firstName)+" "+t._s(e.lastName))])})),0),s("button",{attrs:{type:"button",id:"SelectStudentButton"},on:{click:function(e){return t.getSelectedStudentsInformation()}}},[t._v("Select Student")])]),s("div",[s("p",[t._v(" Student: "+t._s(this.selectedStudent.firstName)+" "+t._s(this.selectedStudent.lastName)+" ")]),s("p",[t._v(" Program Plan Form Status: "+t._s(this.programPlanFormStatus)+" ")]),s("p",[t._v(" Thesis Topic: "+t._s(this.thesisTopic)+" ")])])])],1)},wt=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("h1",[t._v("Advisor Complete Program Plan Forms ")])])}],$t={components:{LeftMenuAdvisor:ut},name:"AdvisorCompleteProgramPlanForms",data:function(){return{students:[],selectedStudent:"",response:"",programPlanFormStatus:"",thesisTopic:""}},mounted:function(){var t=this;console.log("User ID: "+this.$store.state.user.id),f()({method:"GET",url:"http://localhost:8080/mbs/advisors/getApprovedStudents/".concat(this.$store.state.user.id)}).then((function(e){console.log(e.data.studentList),null!=e.data.studentList&&e.data.studentList.forEach((function(e){null!=e&&t.students.push(e)}))}),(function(t){console.error(t.response)}))},methods:{clearError:function(){this.response=""},getSelectedStudentsInformation:function(){var t=this;this.clearError(),console.log(this.selectedStudent),f()({method:"GET",url:"http://localhost:8080/mbs/programPlanForm/getByStudent/".concat(this.selectedStudent.id)}).then((function(e){console.log(e.data),t.programPlanFormStatus=e.data.programPlanFormStatus})).catch((function(e){t.response="".concat(e.response.status,", ").concat(e.response.data.errorMessage)})),f()({method:"GET",url:"http://localhost:8080/mbs/students/".concat(this.selectedStudent.id)}).then((function(e){console.log(e.data),t.thesisTopic=e.data.student.thesisTopic})).catch((function(e){t.response="".concat(e.response.status,", ").concat(e.response.data.errorMessage)}))}}},Dt=$t,Mt=(s("3391"),Object(l["a"])(Dt,Ft,wt,!1,null,"1fffe5fe",null)),At=Mt.exports,Nt=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"app"},[s("left-menu-advisor"),s("div",{attrs:{id:"AdvisorSubmitThesisCopies"}},[t._m(0),s("div",[s("button",{staticStyle:{"margin-top":"10px"},attrs:{type:"button"},on:{click:function(e){return t.selectStudent()}}},[t._v("Select Student")])]),s("select",{directives:[{name:"model",rawName:"v-model",value:t.student,expression:"student"}],attrs:{name:"student",size:"Number_of_options"},on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.student=e.target.multiple?s:s[0]}}},t._l(t.students,(function(e,n){return s("option",{key:n,domProps:{value:e}},[t._v(t._s(e.firstName)+" "+t._s(e.lastName))])})),0),s("div",{staticStyle:{"margin-left":"500px"}},[t._v(t._s(this.fileName)+" "),s("button",{attrs:{type:"button",disabled:t.isButtonDisabled,id:"downloadDisabled"},on:{click:function(e){return t.download()}}},[t._v("Download Thesis")])]),s("div",[s("p",[t._v(" Selected Student ID : "+t._s(this.studentId)+" ")]),s("p",[t._v(" Thesis Topic : "+t._s(this.thesisTopic)+" ")]),s("p",[t._v(" Program Plan Form : "+t._s(this.programPlanFormStatus)+" ")])]),s("label",{staticStyle:{"margin-left":"16px"}},[t._v(" Plagiarism Ratio: "+t._s(this.plagiarismRatio)+" "),s("div",[s("button",{staticStyle:{"margin-top":"10px"},attrs:{type:"button"},on:{click:function(e){return t.getPlagiarismRatio()}}},[t._v("Get Plagiarism Ratio")])])]),s("div",[s("button",{staticStyle:{"margin-top":"10px"},attrs:{type:"button"},on:{click:function(e){return t.submitThesis()}}},[t._v("Submit Thesis for T.S.S")])]),s("div",[t._v(" "+t._s(this.response)+" ")])])],1)},Rt=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("h1",[t._v("AdvisorSubmitThesisCopies ")]),s("p",[t._v(" This is the AdvisorSubmitThesisCopies ")])])}],jt={components:{LeftMenuAdvisor:ut},name:"AdvisorSubmitThesisCopies",data:function(){return{disabledButton:!0,programPlanFormStatus:"",studentId:"",students:[],studentList:[],proposals:[],student:"",thesisTopic:"",plagiarismRatio:"",fileName:"",selectedAdvisor:null,input:{studentId:""},response:""}},computed:{isButtonDisabled:function(){return this.disabledButton}},methods:{clearError:function(){this.response=""},submitThesis:function(){var t=this;this.clearError(),this.input.studentId=this.studentId,console.log(this.input),f()({method:"POST",url:"http://localhost:8080/mbs/thesis/submitThesis",data:this.input,headers:{"content-type":"application/json"}}).then((function(e){console.log(e.data),t.response=e.data.successMessage})).catch((function(e){t.response="".concat(e.response.status,", ").concat(e.response.data.errorMessage)}))},selectStudent:function(){this.clearError(),this.plagiarismRatio="",this.studentId=this.student.id,null!=this.student.thesis&&null!=this.student.thesis.fileName?(this.fileName=this.student.thesis.fileName,this.disabledButton=!1):this.fileName="",null!=this.student.programPlanForm?this.programPlanFormStatus=this.student.programPlanForm.programPlanFormStatus:this.programPlanFormStatus="",null!=this.student.thesisTopic?this.thesisTopic=this.student.thesisTopic:this.thesisTopic=""},getPlagiarismRatio:function(){this.clearError(),null!=this.student.thesis?this.plagiarismRatio=this.student.thesis.plagiarismRatio:this.response="Thesis is not Uploaded."},download:function(){var t=this;this.clearError(),f()({method:"GET",url:"http://localhost:8080/mbs/thesis/getByStudent/".concat(this.studentId)}).then((function(t){console.log(t.data),window.open(t.data.url)})).catch((function(e){t.response="".concat(e.response.status,", ").concat(e.response.data.errorMessage)}))}},mounted:function(){var t=this;console.log("User ID: "+this.$store.state.user.id),f()({method:"GET",url:"http://localhost:8080/mbs/advisors/getApprovedStudents/".concat(this.$store.state.user.id)}).then((function(e){console.log(e.data.studentList),null!=e.data.studentList&&e.data.studentList.forEach((function(e){null!=e&&t.students.push(e)}))}),(function(e){t.response="".concat(e.response.status,", ").concat(e.response.data.errorMessage),console.error(e.response)}))}},kt=jt,It=(s("6b1f"),Object(l["a"])(kt,Nt,Rt,!1,null,"8114b4fa",null)),Ct=It.exports,Ut=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"app"},[s("left-menu-advisor"),s("div",{attrs:{id:"AdvisorJuryRecommendation"}},[t._m(0),s("div",[s("button",{staticStyle:{"margin-top":"10px"},attrs:{type:"button"},on:{click:function(e){return t.selectStudent()}}},[t._v("Select Student")])]),s("select",{directives:[{name:"model",rawName:"v-model",value:t.selectedstudent,expression:"selectedstudent"}],attrs:{name:"student",size:"Number_of_options"},on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.selectedstudent=e.target.multiple?s:s[0]}}},t._l(t.students,(function(e,n){return s("option",{key:n,domProps:{value:e}},[t._v(t._s(e.firstName)+" "+t._s(e.lastName))])})),0),s("div",[s("p",[t._v(" Student: "+t._s(this.student.firstName)+" "+t._s(this.student.lastName)+" ")]),s("p",[t._v(" Thesis Topic : "+t._s(this.student.thesisTopic)+" ")])]),s("select",{directives:[{name:"model",rawName:"v-model",value:t.selectedjuryMembers,expression:"selectedjuryMembers"}],staticStyle:{"margin-top":"50px","margin-left":"500px"},attrs:{multiple:"",name:"juryMember",size:"5"},on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.selectedjuryMembers=e.target.multiple?s:s[0]}}},t._l(t.juryMembers,(function(e,n){return s("option",{key:n,domProps:{value:e}},[t._v(t._s(e.firstName)+" "+t._s(e.lastName))])})),0),s("button",{staticStyle:{"margin-top":"10px","margin-left":"500px"},attrs:{type:"button"},on:{click:function(e){return t.recommend()}}},[t._v("Recommend")]),s("div",[t._v(" "+t._s(this.response)+" ")])])],1)},Lt=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("h1",[t._v("AdvisorJuryRecommendation ")]),s("p",[t._v(" This is the AdvisorJuryRecommendation page ")])])}],Ot={components:{LeftMenuAdvisor:ut},name:"AdvisorJuryRecommendation",data:function(){return{students:[],selectedstudent:null,juryMembers:[],selectedjuryMembers:[],student:{firstName:"",lastName:"",thesisTopic:""},input:{juryMemberIds:[],studentId:""},response:""}},mounted:function(){var t=this;console.log("User ID: "+this.$store.state.user.id),f()({method:"GET",url:"http://localhost:8080/mbs/advisors/getApprovedStudents/".concat(this.$store.state.user.id)}).then((function(e){console.log(e.data.studentList),null!=e.data.studentList&&(t.students=e.data.studentList)}),(function(e){t.response="".concat(e.response.status,", ").concat(e.response.data.errorMessage),console.error(e.response)})),f()({method:"GET",url:"http://localhost:8080/mbs/jurymembers"}).then((function(e){console.log(e.data.juryMemberList),t.juryMembers=e.data.juryMemberList}),(function(t){console.error(t)}))},methods:{clearError:function(){this.response=""},selectStudent:function(){this.clearError(),this.student.firstName=this.selectedstudent.firstName,this.student.lastName=this.selectedstudent.lastName,this.input.studentId=this.selectedstudent.id,null!=this.selectedstudent.thesisTopic?this.student.thesisTopic=this.selectedstudent.thesisTopic:this.input.thesisTopic=""},recommend:function(){var t=this;this.clearError(),console.log(this.selectedjuryMembers),this.selectedjuryMembers.forEach((function(e){t.input.juryMemberIds.push(e.id)})),console.log(this.input),f()({method:"POST",url:"http://localhost:8080/mbs/advisors/setTssJury",data:this.input,headers:{"content-type":"application/json"}}).then((function(t){console.log(t.data)})).catch((function(e){console.log(e.response),t.response="".concat(e.response.status,", ").concat(e.response.data.errorMessage)})),this.input.juryMemberIds=[]}}},Gt=Ot,Jt=(s("8d5d"),Object(l["a"])(Gt,Ut,Lt,!1,null,"741d353d",null)),Bt=Jt.exports,Ht=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"app"},[s("left-menu-advisor"),s("div",{attrs:{id:"AdvisorFinalThesisCopyDeadlineExtension"}},[t._m(0),s("div",[s("button",{staticStyle:{"margin-top":"10px"},attrs:{type:"button"},on:{click:function(e){return t.selectStudent()}}},[t._v("Select Student")])]),s("select",{directives:[{name:"model",rawName:"v-model",value:t.selectedstudent,expression:"selectedstudent"}],attrs:{name:"student",size:"Number_of_options"},on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.selectedstudent=e.target.multiple?s:s[0]}}},t._l(t.students,(function(e,n){return s("option",{key:n,domProps:{value:e}},[t._v(t._s(e.firstName)+" "+t._s(e.lastName))])})),0),s("div",[s("p",[t._v(" Student: "+t._s(this.input.firstName)+" "+t._s(this.input.lastName)+" ")]),s("p",[t._v(" Program Plan Form Status : "+t._s(this.input.programPlanFormStatus)+" ")]),s("p",[t._v(" Thesis Topic : "+t._s(this.input.thesisTopic)+" ")])]),s("div",[s("button",{staticStyle:{"margin-top":"10px"},attrs:{type:"button"},on:{click:function(e){return t.extendDeadline()}}},[t._v("Extend Deadline")])]),s("div",[t._v(" "+t._s(this.response)+" ")])])],1)},zt=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("h1",[t._v("AdvisorFinalThesisCopyDeadlineExtension ")]),s("p",[t._v(" This is the Advisor Final Thesis Copy Deadline Extension Page ")])])}],Wt={components:{LeftMenuAdvisor:ut},name:"AdvisorFinalThesisCopyDeadlineExtension",data:function(){return{selectedstudent:null,students:[],input:{studentId:"",programPlanFormStatus:"",thesisTopic:"",firstName:"",lastName:""},response:""}},mounted:function(){var t=this;console.log("User ID: "+this.$store.state.user.id),f()({method:"GET",url:"http://localhost:8080/mbs/advisors/getApprovedStudents/".concat(this.$store.state.user.id)}).then((function(e){console.log(e.data.studentList),null!=e.data.studentList&&e.data.studentList.forEach((function(e){null!=e&&t.students.push(e)}))}),(function(t){console.error(t.response)}))},methods:{clearError:function(){this.response=""},selectStudent:function(){this.clearError(),this.input.studentId=this.selectedstudent.id,null!=this.selectedstudent.programPlanForm?this.input.programPlanFormStatus=this.selectedstudent.programPlanForm.programPlanFormStatus:this.input.programPlanFormStatus="",null!=this.selectedstudent.thesisTopic?this.input.thesisTopic=this.selectedstudent.thesisTopic:this.input.thesisTopic="",this.input.firstName=this.selectedstudent.firstName,this.input.lastName=this.selectedstudent.lastName},extendDeadline:function(){var t=this;this.clearError(),console.log(this.input.studentId),f()({method:"PUT",url:"http://localhost:8080/mbs/thesis/extendDeadline",data:this.input.studentId,headers:{"content-type":"application/json"}}).then((function(e){console.log(e.data),t.response=e.data.successMessage})).catch((function(e){t.response="".concat(e.response.status,", ").concat(e.response.data.errorMessage)}))}}},Vt=Wt,Yt=(s("1689"),Object(l["a"])(Vt,Ht,zt,!1,null,"6fe89198",null)),qt=Yt.exports,Kt=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"app"},[s("leftMenuDBR"),t._m(0)],1)},Qt=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{attrs:{id:"DBRhome"}},[s("div",[s("h1",[t._v("DBR Home Page")])])])}],Xt=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{attrs:{id:"nav"}},[s("div",[s("router-link",{attrs:{to:"/DBR/recommend-advisor",replace:""}},[t._v("Recommend Advisor")])],1)])},Zt=[],te={components:{},name:"DBRLeftMenu",methods:{select:function(t){this.$router.push(t.item.text)}}},ee=te,se=(s("ffc1"),Object(l["a"])(ee,Xt,Zt,!1,null,null,null)),ne=se.exports,oe={components:{leftMenuDBR:ne},name:"DBRHome",data:function(){return{}}},ie=oe,ae=(s("219e"),Object(l["a"])(ie,Kt,Qt,!1,null,"28324f27",null)),re=ae.exports,le=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"app"},[s("leftMenuDBR"),s("div",{attrs:{id:"DBRRecommendAdvisor"}},[t._m(0),s("div",[s("button",{staticStyle:{"margin-top":"10px"},attrs:{type:"button"},on:{click:function(e){return t.selectStudent()}}},[t._v("Select Student")])]),s("select",{directives:[{name:"model",rawName:"v-model",value:t.student,expression:"student"}],attrs:{name:"student",size:"Number_of_options"},on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.student=e.target.multiple?s:s[0]}}},t._l(t.students,(function(e,n){return s("option",{key:n,domProps:{value:e}},[t._v(t._s(e.firstName)+" "+t._s(e.lastName))])})),0),s("div",[s("select",{directives:[{name:"model",rawName:"v-model",value:t.advisors,expression:"advisors"}],staticStyle:{"margin-top":"50px","margin-left":"500px"},attrs:{multiple:"",name:"advisors",size:"5"},on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.advisors=e.target.multiple?s:s[0]}}},t._l(t.advisors,(function(e,n){return s("option",{key:n,domProps:{value:e}},[t._v(t._s(e.firstName)+" "+t._s(e.lastName))])})),0),s("button",{staticStyle:{"margin-top":"10px","margin-left":"500px"},attrs:{type:"button"},on:{click:function(e){return t.putRecommendedAdvisors()}}},[t._v("Recommend")]),s("div",{staticClass:"response"},[t._v(t._s(this.response))])])])],1)},ue=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("h1",[t._v("DBR Recommend Advisor")])])}],ce={components:{leftMenuDBR:ne},name:"DBRRecommendAdvisor",data:function(){return{advisor:{firstName:"",id:"",lastName:"",userType:""},advisors:[],student:{firstName:"",id:"",lastName:"",userType:""},students:[],advisorList:[],advisorIds:[],studentId:"",input:{},response:""}},methods:{clearError:function(){this.response=""},selectStudent:function(){this.clearError(),this.input.studentId=this.student.id},putRecommendedAdvisors:function(){var t=this;this.clearError(),console.log(this.student.id),console.log(this.advisors),this.advisors.forEach((function(e){t.advisorIds.push(e.id)})),this.input.advisorIds=this.advisorIds,console.log(this.input),f()({method:"PUT",url:"http://localhost:8080/mbs/dbrs/recommendAdvisor",data:this.input,headers:{"content-type":"application/json"}}).then((function(t){console.log(t.data)})).catch((function(e){console.log(e.response),t.response="".concat(e.response.status,", ").concat(e.response.data.errorMessage)})),this.advisorIds=[]}},mounted:function(){var t=this;f()({method:"GET",url:"http://localhost:8080/mbs/dbrs/getStudentWithNoAdvisor"}).then((function(e){console.log(e.data.studentList),t.students=e.data.studentList}),(function(t){console.error(t)})),f()({method:"GET",url:"http://localhost:8080/mbs/dbrs/getAdvisors"}).then((function(e){console.log(e.data.advisorList),t.advisors=e.data.advisorList}),(function(t){console.error(t)}))}},de=ce,pe=(s("1cc7"),Object(l["a"])(de,le,ue,!1,null,"b2c61cbc",null)),me=pe.exports,he=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"app"},[s("leftMenuJury"),t._m(0)],1)},fe=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{attrs:{id:"juryhome"}},[s("div",[s("h1",[t._v("Jury Home Page")])])])}],ve=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"left-menu-jury"},[s("div",{attrs:{id:"nav"}},[s("div",[s("router-link",{attrs:{to:"/jury/thesis-management",replace:""}},[t._v("Thesis Management")])],1)])])},ge=[],_e={components:{},methods:{select:function(t){this.$router.push(t.item.text)}}},be=_e,Se=(s("d366"),Object(l["a"])(be,ve,ge,!1,null,null,null)),ye=Se.exports,Te={components:{leftMenuJury:ye},name:"JuryHome",data:function(){return{}}},Pe=Te,Ee=(s("8473"),Object(l["a"])(Pe,he,fe,!1,null,"56807754",null)),xe=Ee.exports,Fe=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"app"},[s("left-menu-jury"),s("div",{attrs:{id:"JuryThesisManagement"}},[s("div",{attrs:{id:"ThesisManagement"}},[t._m(0),s("div",[s("button",{staticStyle:{"margin-top":"10px"},attrs:{type:"button"},on:{click:function(e){return t.selectStudent()}}},[t._v("Select Student")])]),s("select",{directives:[{name:"model",rawName:"v-model",value:t.student,expression:"student"}],attrs:{name:"student",size:"Number_of_options"},on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.student=e.target.multiple?s:s[0]}}},t._l(t.students,(function(e,n){return s("option",{key:n,domProps:{value:e}},[t._v(t._s(e.firstName)+" "+t._s(e.lastName))])})),0),s("div",{staticStyle:{"margin-left":"5px"}},[s("button",{attrs:{type:"button",disabled:t.isDownloadDisabled,id:"downloadDisabled"},on:{click:function(e){return t.download()}}},[t._v("Download")]),s("button",{staticStyle:{"margin-left":"39px"},attrs:{type:"button",disabled:t.isRemoveDisabled},on:{click:function(e){return t.remove()}}},[t._v("Remove")]),s("label",{staticStyle:{"margin-left":"16px"}},[t._v(" Plagiarism Ratio: "+t._s(this.plagiarismRatio)+" "),s("button",{staticStyle:{"margin-left":"39px"},attrs:{type:"button",disabled:t.isGetPlagiarismRatioDisabled},on:{click:function(e){return t.getPlagiarismRatio()}}},[t._v("Get Plagiarism Ratio")])])]),s("div",{staticStyle:{"margin-left":"5px"}},[s("label",[s("input",{ref:"file",attrs:{type:"file",name:"file",id:"file"},on:{change:function(e){return t.handleFileUpload()}}})]),s("button",{staticStyle:{"margin-top":"10px"},attrs:{type:"button"},on:{click:function(e){return t.submit()}}},[t._v("Submit")])])]),s("div",{staticClass:"response"},[t._v(t._s(this.response))])])],1)},we=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticStyle:{"margin-left":"5px"}},[s("h1",[t._v("JuryThesisManagement")]),s("p",[t._v(" This is Jury Jury Thesis Management Page ")])])}],$e={components:{LeftMenuJury:ye},name:"JuryThesisManagement",data:function(){return{students:[]}},mounted:function(){var t=this;console.log("User ID: "+this.$store.state.user.id),f()({method:"GET",url:"http://localhost:8080/mbs/juryMembers/getTssJury/".concat(this.$store.state.user.id)}).then((function(e){console.log(e.data),null!=e.data.tssJuryList&&e.data.tssJuryList.forEach((function(e){null!=e.student&&t.students.push(e.student)}))}),(function(t){console.error(t)}))},computed:{},methods:{}},De=$e,Me=(s("1bb5"),Object(l["a"])(De,Fe,we,!1,null,"12cb053e",null)),Ae=Me.exports,Ne=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"app"},[s("leftMenuIBDR"),t._m(0)],1)},Re=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{attrs:{id:"IBDRhome"}},[s("div",[s("h1",[t._v("IBDR Home Page")])])])}],je=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},ke=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"left-menu-idbr"},[s("div",{attrs:{id:"nav"}})])}],Ie={components:{},methods:{select:function(t){this.$router.push(t.item.text)}}},Ce=Ie,Ue=(s("411a"),Object(l["a"])(Ce,je,ke,!1,null,null,null)),Le=Ue.exports,Oe={components:{leftMenuIBDR:Le},name:"IBDRHome",data:function(){return{}}},Ge=Oe,Je=(s("9f14"),Object(l["a"])(Ge,Ne,Re,!1,null,"d397284a",null)),Be=Je.exports,He=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"app"},[s("leftMenuGSES"),t._m(0)],1)},ze=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{attrs:{id:"GSEShome"}},[s("div",[s("h1",[t._v("GSES Home Page")])])])}],We=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},Ve=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"left-menu-gses"},[s("div",{attrs:{id:"nav"}})])}],Ye={components:{},methods:{select:function(t){this.$router.push(t.item.text)}}},qe=Ye,Ke=(s("1317"),Object(l["a"])(qe,We,Ve,!1,null,null,null)),Qe=Ke.exports,Xe={components:{leftMenuGSES:Qe},name:"GSESHome",data:function(){return{}}},Ze=Xe,ts=(s("40ad"),Object(l["a"])(Ze,He,ze,!1,null,"ade26df8",null)),es=ts.exports,ss=s("0eab"),ns=s.n(ss),os=s("4776"),is=s.n(os);n["a"].use(is.a),n["a"].use(ns.a),n["a"].use(d["a"]);var as=new d["a"]({routes:[{path:"/",redirect:{name:"login"}},{path:"/login",name:"login",component:b},{path:"/studenthome",name:"studenthome",component:A},{path:"/student/advisor-selection",name:"StudenAdvisorSelection",component:C},{path:"/student/program-plan-form",name:"StudentProgramPlanForm",component:B},{path:"/student/thesis-management",name:"StudentThesisManagement",component:q},{path:"/student/form-menu",name:"StudentFormMenu",component:et},{path:"/advisorhome",name:"advisorhome",component:mt},{path:"/advisor/student-approval",name:"AdvisorStudentApproval",component:bt},{path:"/advisor/update-thesis-topics",name:"AdvisorUpdateThesisTopics",component:xt},{path:"/advisor/complete-program-plan-forms",name:"AdvisorCompleteProgramPlanForms",component:At},{path:"/advisor/submit-thesis-copies",name:"AdvisorSubmitThesisCopies",component:Ct},{path:"/advisor/jury-recommendation",name:"AdvisorJuryRecommendation",component:Bt},{path:"/advisor/final-thesis-copy-deadline-extension",name:"AdvisorFinalThesisCopyDeadlineExtension",component:qt},{path:"/dbrhome",name:"dbrhome",component:re},{path:"/DBR/recommend-advisor",name:"DBRRecommendAdvisor",component:me},{path:"/juryhome",name:"juryhome",component:xe},{path:"/ibdrhome",name:"ibdrhome",component:Be},{path:"/gseshome",name:"gseshome",component:es},{path:"/jury/thesis-management",name:"JuryThesisManagement",component:Ae}]}),rs=s("2f62"),ls={user:{firstName:"",id:""},authenticated:!1},us=ls;n["a"].use(rs["a"]);var cs=new rs["a"].Store({state:us}),ds=cs;n["a"].use(ns.a),n["a"].config.productionTip=!1,new n["a"]({router:as,store:ds,render:function(t){return t(c)}}).$mount("#app")},6349:function(t,e,s){},6497:function(t,e,s){},"6b1f":function(t,e,s){"use strict";s("40ba")},"6e0f":function(t,e,s){"use strict";s("e5b4")},7829:function(t,e,s){},"7a60":function(t,e,s){"use strict";s("84ec")},8222:function(t,e,s){"use strict";s("7829")},8473:function(t,e,s){"use strict";s("14d4")},"84ec":function(t,e,s){},"85ec":function(t,e,s){},"8a9d":function(t,e,s){},"8d5d":function(t,e,s){"use strict";s("d40a")},"943e":function(t,e,s){"use strict";s("e88b")},"94ad":function(t,e,s){},"9f14":function(t,e,s){"use strict";s("8a9d")},aadc:function(t,e,s){},b36c:function(t,e,s){},c2b3:function(t,e,s){},d023:function(t,e,s){"use strict";s("4467")},d366:function(t,e,s){"use strict";s("2b6b")},d40a:function(t,e,s){},e01f:function(t,e,s){},e245:function(t,e,s){"use strict";s("1a73")},e5b4:function(t,e,s){},e5b5:function(t,e,s){},e88b:function(t,e,s){},ea35:function(t,e,s){"use strict";s("025f")},eef5:function(t,e,s){"use strict";s("aadc")},f91b:function(t,e,s){},fec0:function(t,e,s){},ffc1:function(t,e,s){"use strict";s("6349")}});
  //# sourceMappingURL=app.60a7627d.js.map