1"use strict";(self.webpackChunkjumperrwd=self.webpackChunkjumperrwd||[]).push([[3738],{43801:function(e,t,n){n.r(t);var r,o,a,i,s=n(10434),u=n.n(s),p=n(17156),c=n.n(p),l=n(7867),d=n.n(l),h=n(46877),g=n.n(h),f=n(19452),S=n.n(f),m=n(64687),y=n.n(m),O=n(67294),L=n(3343),v=n(45238),w=n(59470),k=n(37587),j=n(99593),Z=n(89639),C=n(87761),b=n(56474),H=(0,k.ZP)(r||(r=S()(["\n mutation setHySSOLogin($form: HySSOLoginForm) {\n result: setHySSOLogin(Input: $form) {\n success\n }\n }\n"]))),N=(0,k.ZP)(o||(o=S()(["\n query getHySSOState($token: String) {\n result: getHySSOState(token: $token) {\n redirectUrl\n resourceUrl\n }\n }\n"]))),x=(0,v.a)(["common"])(a=(0,Z.M)((i=function(e){function t(t){var n;n=e.call(this,t)||this;var r="1"===t.appStore.globalConfig["jumperrwd.login.alertHidden"];return n.state={auth:t.readerStore.auth,alertHidden:r},n}d()(t,e);var n=t.prototype;return n.componentDidMount=function(){this.hySSOLogin(this.props)},n.handleChangeLanguage=function(e){b.Z.get("/api/jumperrwdWs/setSession?key=locales&value="+e).then((function(e){})),this.props.i18n.changeLanguage(e)},n.hySSOLogin=function(){var e=c()(y().mark((function e(t){var n,r,o,a,i,s,p,c,l,d,h,g,f,S=this;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.search,r=u()({},n),o=r.sid,a=void 0===o?"":o,i=r.token,s=void 0===i?"":i,p=r.state,c=void 0===p?"":p,l=this.props.readerStore.session.OLOGINRURL||"",d=this.props.readerStore.session.OLOGINRLANG||"",""===l){e.next=8;break}return e.next=8,b.Z.get("/api/jumperrwdWs/setSession?key=OLOGINRURL&value=").then((function(e){}));case 8:if(""===d){e.next=11;break}return e.next=11,b.Z.get("/api/jumperrwdWs/setSession?key=OLOGINRLANG&value=").then((function(e){}));case 11:if(h="",g="",""===c){e.next=18;break}return e.next=16,j.Z.jumperrwdClient.mutate({mutation:N,variables:{token:c}}).then((function(e){return e.data.result?e.data.result:""})).finally((function(){return""}));case 16:(f=e.sent)&&(h=f.redirectUrl||"",g=f.resourceUrl||"");case 18:""!==a||""!==s?j.Z.jumperrwdClient.mutate({mutation:H,variables:{form:{sid:a,token:s}}}).then((function(e){e.data.result.success?(S.state.alertHidden||alert(S.props.t("jumperrwd.login.loginSuccess")),S.props.readerStore.syncSe
1ssionCookie().then((function(){""!==d&&S.handleChangeLanguage(d),""!==h?(0,C.Z)(h):""!==g?window.location.href=g:""!==l?window.location.href=l:(0,C.Z)("/")}))):(0,C.Z)("/")})):(0,C.Z)("/");case 19:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),n.render=function(){var e=this,t=this.props,n=t.t,r=t.isprivate,o=t.i18n;return O.createElement(L.Z,{t:n,i18n:o,isprivate:r,hiddenBg:!0},O.createElement("div",{ref:function(t){e.container=t}}))},t}(O.Component),g()(i.prototype,"handleChangeLanguage",[w.Nj],Object.getOwnPropertyDescriptor(i.prototype,"handleChangeLanguage"),i.prototype),g()(i.prototype,"hySSOLogin",[w.Nj],Object.getOwnPropertyDescriptor(i.prototype,"hySSOLogin"),i.prototype),a=i))||a)||a;t.default=x}}]); 2//# sourceMappingURL=component---src-pages-hy-sso-login-js-4d4563494fc5b057d42a.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.