"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[1660],{35644:function(e,t,r){r.r(t);var n=r(7557),a=r.n(n),c=r(41498),o=r.n(c),s=r(79800),u=r.n(s),l=r(59301),i=r(49389),f=r(61621),p=r(94171),d=r(91689),h=r(37712);t.default=function(){var e=(0,i.useLocation)(),t=(0,i.useHistory)(),r=e.query,n=r.code,c=r.state;return(0,l.useEffect)((function(){var e=c.split(","),r=u()(e,2),s=r[0];r[1];function l(){return(l=o()(a()().mark((function e(){var r,c,o,u,l;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,p.d4)("auth/qq/callback",{code:n,redirect_uri:"".concat(d.Z.QQLoginCB,"/otherloginqq")});case 2:r=e.sent,c=r.status,o=r.new_user,u=localStorage.getItem("addinfo"),l=localStorage.getItem("classromeurl"),0===c&&(o?t.replace("/otherlogin?type=qq"):"1"===u?(t.replace(l),localStorage.removeItem("addinfo"),localStorage.removeItem("classromeurl")):t.replace("account"===s?"/account/binding":"/"));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}!function(){l.apply(this,arguments)}()}),[n,c]),(0,h.jsx)("div",{className:"other-login",style:{height:"100vh",background:"#fff"},children:(0,h.jsx)(f.Z,{})})}}}]);