"use strict";(self.webpackChunkhopsworks_front=self.webpackChunkhopsworks_front||[]).push([[5927],{65927:function(n,e,r){r.r(e);var t=r(15861),o=r(29439),a=r(87757),i=r.n(a),s=r(72791),c=r(76237),u=r(16871),l=r(81497),f=r(1281),h=r(80229),p=r(99317),d=r(80184);e.default=function(){var n=(0,u.s0)(),e=(0,s.useCallback)((function(){return window.location.reload()}),[]),r=(0,s.useState)(null),a=(0,o.Z)(r,2),x=a[0],w=a[1],k=new URLSearchParams(window.location.search).get("providerName");return(0,s.useEffect)((function(){k||n(f.Z.auth.login);var e=function(){var n=(0,t.Z)(i().mark((function n(){var e;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.prev=0,null===k){n.next=6;break}return n.next=4,h.Z.oauthLoginURI(k);case 4:e=n.sent,window.open(e,"_self");case 6:n.next=11;break;case 8:n.prev=8,n.t0=n.catch(0),w((0,p.Z)(n.t0,"OAuth configuration error"));case 11:case"end":return n.stop()}}),n,null,[[0,8]])})));return function(){return n.apply(this,arguments)}}();e()}),[n,k]),null===x?(0,d.jsx)(l.Z,{}):(0,d.jsxs)(c.kC,{flexDirection:"column",alignItems:"center",my:"auto",children:[(0,d.jsxs)(c.B4,{fontSize:"22px",mb:"11px",children:["Error logging you in with ",k]}),(0,d.jsx)(c.B4,{mb:"40px",children:null===x||void 0===x?void 0:x.message}),(0,d.jsx)(c.kC,{children:(0,d.jsx)(c.zx,{intent:"secondary",onClick:e,mr:"14px",children:"Reload"})})]})}}}]);
//# sourceMappingURL=5927.4bfd7d49.chunk.js.map