(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-427e53eb"],{"206d":function(t,e,s){"use strict";s("4413")},4413:function(t,e,s){},"5e2e":function(t,e,s){t.exports=s.p+"img/GitHub.f480615a.png"},a55b:function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"pt-login",class:{"login-success":null!=t.userInfo}},[null==t.userInfo?[a("div",{staticClass:"header"},[a("img",{attrs:{src:s("cf05")}}),a("div",{staticClass:"title"},[a("div",{staticClass:"welcome"},[t._v(t._s(t.T("home.user-center.login")))]),a("div",{staticClass:"product-name"},[t._v("NxShell")])])]),a("div",{staticClass:"auth-notice"},[a("div",{staticClass:"sepline"}),a("div",{staticClass:"text"},[t._v(t._s(t.T("home.user-center.auth-type")))]),a("div",{staticClass:"sepline"})]),a("div",{staticClass:"third-auths"},[a("div",{staticClass:"auth-provider",on:{click:function(e){return t.gotoAuth("Gitee")}}},[a("img",{staticClass:"logo",attrs:{src:s("d846")}}),a("div",{staticClass:"name"},[t._v("Gitee")])]),a("div",{staticClass:"auth-provider",on:{click:function(e){return t.gotoAuth("GitHub")}}},[a("img",{staticClass:"logo",attrs:{src:s("5e2e")}}),a("div",{staticClass:"name"},[t._v("Github")])])])]:[a("div",{staticClass:"user-info"},[a("pt-avatar",{attrs:{avatarUrl:t.avatarUrl,avatarName:t.avatarName,className:"avatar"}}),a("div",{staticClass:"user-name"},[t._v(" "+t._s(t.userInfo.user_name)+" ")]),a("a",{staticClass:"logout",attrs:{href:"javascript:;"},on:{click:t.logout}},[t._v(t._s(t.T("home.user-center.logout")))])],1),a("div",{staticClass:"user-contents"},[a("div",{staticClass:"user-contents-nav"},[a("pt-list",{attrs:{listData:t.navItems,dataKey:"title"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t.T(e.item.data.title)))])]}}])})],1),a("div",{staticClass:"user-contents-body"},[a("p",[t._v(t._s(t.T("home.user-center.thanks")))]),a("p",[t._v(t._s(t.T("home.user-center.look-forward-to-feedback")))]),a("a",{attrs:{href:"javascript:;"},on:{click:t.gotoFeedback}},[t._v(t._s(t.T("home.user-center.goto-feedback-github")))]),a("span",{staticClass:"email"},[t._v(" "+t._s(t.T("home.user-center.goto-feedback-or"))+" "),a("span",[t._v(t._s(t.T("home.user-center.goto-feedback-email")))])]),t._e()])])]],2)},i=[],n=s("0122"),o=s("f3f3"),c=s("2f62"),r={name:"Login",data:function(){return{OAUTH:{Gitee:"https://gitee.com/oauth/authorize?client_id=64109d78613c770821b77221e55e44dba3eaa3e6f5ebb097c7ccf1a3888eae81&redirect_uri=http%3A%2F%2F106.15.238.81%3A56789%2Foauth%2Foauth%2Fgitee&response_type=code",GitHub:"https://github.com/login/oauth/authorize?client_id=cccfa01fac33cfbe81ae&scope=user"},cbFunc:function(){},navItems:[{title:"home.user-center.feedback"}]}},computed:Object(o["a"])(Object(o["a"])({},Object(c["b"])(["userInfo"])),{},{avatarUrl:function(){return this.userInfo?this.userInfo.user_avatar:""},avatarName:function(){return this.userInfo?this.userInfo.user_name:""}}),created:function(){var t=this;this.cbFunc=function(e){console.log(e),"object"==Object(n["a"])(e.data)&&"user_name"in e.data&&t.setUserInfo(e.data)},window.addEventListener("message",this.cbFunc)},methods:Object(o["a"])(Object(o["a"])({},Object(c["c"])(["setUserInfo"])),{},{gotoAuth:function(t){var e=this.OAUTH[t];powertools.openDialog(e,{width:1100,height:725})},gotoFeedback:function(){var t="https://github.com/nxshell/nxshell/issues";powertools.openExterUrl(t)},logout:function(){this.setUserInfo(null)}}),beforeDestroy:function(){window.removeEventListener("message",this.cbFunc)}},u=r,l=(s("206d"),s("2877")),d=Object(l["a"])(u,a,i,!1,null,null,null);e["default"]=d.exports},d846:function(t,e,s){t.exports=s.p+"img/Gitee.ae6114a4.png"}}]);
//# sourceMappingURL=chunk-427e53eb.f99a4d0d.js.map