1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8295],{15756:(e,t,l)=>{"use strict";l.d(t,{A:()=>x});var r=l(30021),n=l(63023),u=l(22081),a=l(80399),s=l(20485),i=l(59550),c=l(15598),o=l(46791),d=l(78933),f=l(57560),C=l(91675),h=l(48781),w=l(53239);let p=(e,t)=>e!==r.T$.None||!t,x=()=>{let{instance:e,inProgress:t,accounts:l}=(0,a.dk)(),x=(0,a.XI)(),m=(0,h.useRouter)(),{locale:_,pathname:v}=m,[g,j]=(0,w.useState)(null),V=(0,w.useRef)(null),k=async t=>{await e.loginRedirect({redirectUri:t,scopes:i.F5,extraQueryParameters:{..._?{ui_locales:(0,f.ER)(_)}:{ui_locales:"en"}}})},y=(0,w.useMemo)(()=>{var e,t,r,n,u,a,s;return{name:null!=(u=null==(e=l[0])?void 0:e.name)?u:null,email:null!=(s=null!=(a=null==(r=l[0])||null==(t=r.idTokenClaims)?void 0:t.email)?a:null==(n=l[0])?void 0:n.name)?s:null}},[l]),H=(0,w.useMemo)(()=>x&&!!l[0],[x,l]),T=(0,w.useSyncExternalStore)(c.A,c.ZW,c.f1),N=(0,w.useMemo)(()=>p(t,T),[t,T]),E=(0,w.useCallback)(async()=>{let a=l[0];if(!a)return null;if(t!==r.T$.None)return g;try{return(await e.acquireTokenSilent({scopes:i.F5,account:a})).accessToken}catch(t){if(t instanceof n.CB){if(!(0,d.WF)(v)){if((0,o.G5)())return null;try{(0,C.O)(),await e.clearCache(),e.setActiveAccount(null),j(null)}catch(e){}return null}try{await e.acquireTokenRedirect({scopes:i.F5,account:a,extraQueryParameters:{..._?{ui_locales:(0,f.ER)(_)}:{ui_locales:"en"}}})}catch(e){}return null}return t instanceof u.jT,null}},[e,l,t,_,v,g]),M=(0,w.useCallback)(async()=>{let e=await E();return e&&j(e),e},[E]);return(0,w.useEffect)(()=>{let e=async()=>{let e=await E();e&&j(e)};l[0]&&t===r.T$.None?e():l[0]||N||((0,C.O)(),j(null))},[l,t,N,E]),(0,w.useEffect)(()=>{if(V.current&&(clearInterval(V.current),V.current=null),l[0]&&t===r.T$.None)return V.current=setInterval(async()=>{let e=await E();e&&j(e)},3e6),()=>{V.current&&(clearInterval(V.current),V.current=null)}},[l,t,E]),(0,w.useEffect)(()=>{if(!H)return;let e=window.sessionStorage.getItem(s.kx);if(!e)return;window.sessionStorage.removeItem(s.kx);let t=(0,d.Ne)(e);t!==m.asPath&&m.replace(t)},[H,m]),{isAuthenticated:H,isLoading:N,user:y,login:k,logout:t=>e.logout(t?{postLogoutRedirectUri:t}:void 0),accessToken:g,refreshToken:M}}},27448:(e,t,l)=>{"use strict";l.d(t,{A:()=>o});var r=l(80263),n=l(77357),u=l(57560),a=l(6570),s=l(5439),i=l(48781),c=l(52991);let o=e=>{var t,l;let o=(0,i.useRouter)(),d=(0,s.rQ)(),f=null!=(l=null==(t=(0,u.d0)(o.locale))?void 0:t.webLocale)?l:n.Q4.en,C=(0,a.de)(e,d,f);return(0,r.jsx)(c.bV,{...C})}},48942:(e,t,l)=>{"use strict";l.d(t,{A:()=>n});var r=l(80263);l(53239);let n=e=>{let{height:t="19",width:l="80",fill:n="#D2092D"}=e;return(0,r.jsxs)("svg",{height:t,width:l,viewBox:"0 0 120 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsxs)("g",{clipPath:"url(#clip0_50_2619)",children:[(0,r.jsx)("path",{d:"M15.2873 9.2315C14.4517 8.96403 13.5814 8.82559 12.7055 8.8208C7.97818 8.8208 7.34909 13.5087 7.34909 17.5325V26.9009H0V0.904655H7.35091V4.58615H7.45454C8.72727 3.0155 11.0909 0.886155 13.5527 0.823255C14.7134 0.804374 15.8684 0.992204 16.9655 1.37825L15.2873 9.2315Z",fill:n}),(0,r.jsx)("path",{d:"M24.9 15.0941C24.9 18.3779 26.16 22.0834 29.9909 22.0834C32.4054 22.0834 33.9291 20.6034 34.9273 18.5351L41.7 19.6451C39.9164 24.8381 35.4 27.75 30 27.75C22.02 27.75 17.1364 22.0316 17.1364 14.1414C17.1364 6.25114 21.2727 0.0573425 29.6254 0.0573425C38.0782 0.0573425 41.8582 6.35844 41.8582 14.195V15.0941H24.9ZM34.9291 10.4876C34.5654 7.84029 32.8818 5.24659 30.0454 5.24659C27.1054 5.24659 25.4782 7.78849 25.1091 10.4876H34.9291Z",fill:n}),(0,r.jsx)("path",{d:"M51.8364 0.734436H44.4855V26.7325H51.8364V0.734436Z",fill:n}),(0,r.jsx)("path",{d:"M62.7273 3.23379H62.8327C64.2418 1.16919 66.7636 0.0573425 69.1254 0.0573425C72.3291 0.0573425 74.56 1.21729 76.4182 3.95714C78.0818 1.59284 81.0436 0.0573425 84.0363 0.0573425C90.6 0.0573425 92.2182 5.03384 92.2182 10.7004V26.9027H84.8763V13.2423C84.8763 10.7004 85.0327 5.98844 81.4109 5.98844C77.42 5.98844 77.4727 11.4422 77.4727 14.1432V26.9082H70.1236V13.7177C70.1236 11.1758 70.4382 5.98659 66.6054 5.98659C62.5109 5.98844 62.7273 11.3886 62.7273 14.1414V26.9064H55.3691V0.904643H62.7273V3.23379Z",fill:n}),(0,r.jsx)("path",{d:"M120 26.8454H112.755V24.4625H112.649C111.885 25.4839 110.896 26.3083 109.761 26.8694C108.626 27.4304 107.378 27.7124 106.116 27.6927C98.5545 27.6927 94.2491 20.7551 94.2491 13.714C94.2491 6.8302 98.6127 0 106.009 0C108.687 0 110.967 1.1655 112.753 3.28375V0.8473H120V26.8454ZM113.273 13.8195C113.273 10.3249 111.136 6.56565 107.355 6.56565C103.573 6.56565 101.48 10.3249 101.48 13.8195C101.48 17.3141 103.565 21.127 107.345 21.127C111.125 21.127 113.264 17.3141 113.264 13.8195",fill:n})]}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"clip0_50_2619",children:(0,r.jsx)("rect",{width:"120",height:"27.75",fill:"white"})})})]})}},86942:(e,t,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return l(88459)}])},88459:(e,t,l)=>{"use strict";l.r(t),l.d(t,{__N_SSG:()=>d,default:()=>f});var r=l(80263),n=l(20485),u=l(78933),a=l(27448),s=l(48942),i=l(15756),c=l(48781),o=l(53239),d=!0;let f=()=>{let e=(0,c.useRouter)(),{isAuthenticated:t,isLoading:l,login:d}=(0,i.A)(),f=(0,o.useRef)(!1);return(0,o.useEffect)(()=>
1{if(l||f.current)return;let r=(0,u.Ne)(e.query.returnTo);if(t){f.current=!0,e.replace(r);return}f.current=!0,window.sessionStorage.setItem(n.kx,r),d()},[l,t,d,e]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.A,{title:"Reima",applyTitleTemplate:!1,description:"",canonicalPath:"/login",alternates:[],kind:{type:"website"},robots:{noindex:!0,nofollow:!0}}),(0,r.jsx)("div",{className:"flex flex-col gap-1 items-center justify-center animate-pulse min-h-screen",children:(0,r.jsx)(s.A,{height:"50",width:"180"})})]})}}},e=>{var t=t=>e(e.s=t);e.O(0,[636,6593,8792],()=>t(86942)),_N_E=e.O()}]);
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.