(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4a890302"],{"67e5":function(t,e,a){},a15b:function(t,e,a){"use strict";var n=a("23e7"),i=a("44ad"),r=a("fc6a"),s=a("a640"),o=[].join,c=i!=Object,l=s("join",",");n({target:"Array",proto:!0,forced:c||!l},{join:function(t){return o.call(r(this),void 0===t?",":t)}})},a640:function(t,e,a){"use strict";var n=a("d039");t.exports=function(t,e){var a=[][t];return!!a&&n((function(){a.call(null,e||function(){throw 1},1)}))}},cf44:function(t,e,a){"use strict";a("67e5")},d158:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"background"}),a("div",{staticClass:"gradient"}),a("div",{staticClass:"container-login",attrs:{id:"login"}},[a("div",{staticClass:"row justify-content-center align-items-center"},[a("div",{staticClass:"col-sm-6 col-md-5 col-lg-4"},[a("transition",{attrs:{name:"slide-right",appear:""}},[a("div",{staticClass:"card"},[a("div",{staticClass:"card-body"},[a("div",{staticClass:"white-text"},[a("h1",{staticClass:"font-weight-bold white-text"},[t._v("AIM UES Publishing")]),a("hr",{staticClass:"hr-light"}),a("p",[t._v(" Öğrencilerimiz basılı olarak alacakları haftalık çalışma kağıtlarını mevcut hafta içerisinde temin edememeleri veya kaybetmeleri durumunda en son edindiği çalışma kağıdının ilk sayfasında bulunan login koduyla "),a("a",{attrs:{href:"https://aim.uespublishing.com"}},[t._v("aim.uespublishing.com")]),t._v(" üzerinden o haftanın çalışma kağıdına erişebilirler. Yeni eğitim öğretim yılında tüm öğrencilerimize başarılar dileriz. ")])])])])])],1),a("div",{staticClass:"col-sm-5 col-md-4 col-lg-3"},[a("transition",{attrs:{name:"slide-left",appear:""}},[a("div",{staticClass:"card"},[a("div",{staticClass:"card-body"},[a("h3",{staticClass:"white-text text-center"},[t._v("Ues Publishing AIM")]),a("hr",{staticClass:"hr-light"}),a("form",{on:{submit:function(e){return e.preventDefault(),t.login(e)}}},[a("div",{staticClass:"input-group mt-5"},[a("div",{staticClass:"input-group-prepend"},[a("div",{staticClass:"input-group-text"},[a("i",{staticClass:"fa fa-sign-in fa-2x"})])]),a("input",{directives:[{name:"model",rawName:"v-model",value:t.loginCode,expression:"loginCode"}],staticClass:"form-control",attrs:{type:"text",placeholder:"Login Code"},domProps:{value:t.loginCode},on:{input:function(e){e.target.composing||(t.loginCode=e.target.value)}}})]),a("div",{staticClass:"text-center"},[a("div",{staticClass:"mt-4"},[a("button",{staticClass:"btn btn-outline-light mb-2",attrs:{type:"submit"}},[t._v("Activate")])]),a("div",{staticClass:"mb-3"},[a("a",{attrs:{href:"#"},on:{click:function(e){t.visibleModal=!0}}},[t._v("Şifremi Unuttum!")])]),a("a-modal",{attrs:{title:"Destek Hattı",footer:null},model:{value:t.visibleModal,callback:function(e){t.visibleModal=e},expression:"visibleModal"}},[a("div",{staticClass:"text-center"},[a("h6",[a("strong",[t._v("Center:")]),t._v(" 0850 550 50 90")]),a("h6",[a("strong",[t._v("E-mail:")]),t._v(" support@eltturkey.com")])])]),a("hr",{staticClass:"hr-light"}),a("div",{staticClass:"row justify-content-center mt-2"},[a("a",{staticClass:"mr-5",attrs:{href:"https://twitter.com/elt_union",target:"_blank"}},[a("a-icon",{staticClass:"icon-style",attrs:{type:"twitter"}})],1),a("a",{attrs:{href:"https://www.instagram.com/eltunion/",target:"_blank"}},[a("a-icon",{staticClass:"icon-style",attrs:{type:"instagram"}})],1),a("a",{staticClass:"ml-5",attrs:{href:"https://www.facebook.com/eltunion",target:"_blank"}},[a("a-icon",{staticClass:"icon-style",attrs:{type:"facebook"}})],1)])],1)])])])])],1)])])])},i=[],r=a("1da1"),s=(a("a15b"),a("1276"),a("ac1f"),a("96cf"),a("f43c")),o=a("ead2"),c={data:function(){return{visibleModal:!1,loginCode:"",visible:!0}},beforeMount:function(){this.autoLogin()},methods:{autoLogin:function(){var t=this;return Object(r["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.$route.query.code){e.next=2;break}return e.abrupt("return");case 2:a=t.$route.query.code,t.loginCode=a,t.login();case 5:case"end":return e.stop()}}),e)})))()},login:function(){var t=this;return Object(r["a"])(regeneratorRuntime.mark((function e(){var a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=t.loginCode.split("i").join("I").toUpperCase(),""===t.loginCode){e.next=8;break}return e.next=4,s["a"].studentLogin({userName:a,password:a});case 4:n=e.sent,n.data?(o["a"].cookie.set("studentToken",n.data.token,1),o["a"].cookie.set("adminToken","",0),t.$router.push({name:"StudentHome"}),t.$store.commit("setAuthenticationRole","Student")):(t.$message.error("Username does not match!"),t.loginCode=""),e.next=9;break;case 8:t.$message.error("You need input a login code!");case 9:case"end":return e.stop()}}),e)})))()}}},l=c,u=(a("cf44"),a("2877")),d=Object(u["a"])(l,n,i,!1,null,"214aa33a",null);e["default"]=d.exports},f43c:function(t,e,a){"use strict";var n=a("1da1"),i=(a("96cf"),a("26b3"));e["a"]={adminLogin:function(t){return Object(n["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["a"])().post("/auth/authorSignin",t);case 2:return a=e.sent,e.abrupt("return",a);case 4:case"end":return e.stop()}}),e)})))()},studentLogin:function(t){return Object(n["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["a"])().post("/auth/studentSignin",t);case 2:return a=e.sent,e.abrupt("return",a);case 4:case"end":return e.stop()}}),e)})))()}}}}]); //# sourceMappingURL=chunk-4a890302.44deb565.js.map