"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[7784],{17784:(e,r,t)=>{t.r(r),t.d(r,{default:()=>m});var a=t(69060),o=t(67659),i=t(51560),n=t(50900),s=t(82236),l=t(66152),c=t(79468),d=t(58564),p=t.n(d),g=t(82496);const h=o.cp.div((e=>{let{theme:r}=e;return{"& .errorDescription":{fontStyle:"italic",transition:"all .2s ease-in-out",padding:"0 15px",marginTop:5,overflow:"auto"},"& .errorLabel":{color:p()(r,"fontColor","#000"),fontSize:18,fontWeight:"bold",marginLeft:5},"& .simpleError":{marginTop:5,padding:"2px 5px",fontSize:16,color:p()(r,"fontColor","#000")},"& .messageIcon":{color:p()(r,"signalColors.danger","#C72C48"),display:"flex","& svg":{width:32,height:32}},"& .errorTitle":{display:"flex",alignItems:"center",borderBottom:15}}})),m=()=>{const e=(0,i.i6)(),[r,t]=(0,a.useState)(""),[o,d]=(0,a.useState)(""),[p,m]=(0,a.useState)(!0);return(0,a.useEffect)((()=>{if(p){const r=window.location.search,a=new URLSearchParams(r),o=a.get("code"),i=a.get("state"),s=a.get("error"),l=a.get("errorDescription");s||l?(t(s||""),d(l||""),m(!1)):n.c.invoke("POST","/api/v1/login/oauth2/auth",{code:o,state:i}).then((()=>{let r="/";localStorage.getItem("redirect-path")&&""!==localStorage.getItem("redirect-path")&&(r="".concat(localStorage.getItem("redirect-path")),localStorage.setItem("redirect-path","")),i&&localStorage.setItem("auth-state",i),m(!1),e(r)})).catch((e=>{t(e.errorMessage),d(e.detailedError),m(!1)}))}}),[p,e]),""!==r||""!==o?(0,g.jsx)(a.Fragment,{children:(0,g.jsx)(l.uR9,{logoProps:{applicationName:"console",subVariant:(0,c.Q1)()},form:(0,g.jsxs)(h,{children:[(0,g.jsxs)("div",{className:"errorTitle",children:[(0,g.jsx)("span",{className:"messageIcon",children:(0,g.jsx)(l.m9S,{})}),(0,g.jsx)("span",{className:"errorLabel",children:"Error from IDP"})]}),(0,g.jsx)("div",{className:"simpleError",children:r}),(0,g.jsx)(l.kvh,{className:"errorDescription",children:o}),(0,g.jsx)(l.qaq,{id:"back-to-login",onClick:()=>{window.location.href="".concat(s.G,"login")},type:"submit",variant:"callAction",fullWidth:!0,children:"Back to Login"})]}),promoHeader:(0,g.jsx)("span",{style:{fontSize:28},children:"High-Performance Object Store"}),promoInfo:(0,g.jsxs)("span",{style:{fontSize:14,lineHeight:1},children:["MinIO is a cloud-native object store built to run on any infrastructure - public, private or edge clouds. Primary use cases include data lakes, databases, AI/ML, SaaS applications and fast backup & recovery. MinIO is dual licensed under GNU AGPL v3 and commercial license. To learn more, visit"," ",(0,g.jsx)("a",{href:"https://min.io/?ref=con",target:"_blank",rel:"noopener",children:"www.min.io"}),"."]}),backgroundAnimation:!1})}):null}}}]);
//# sourceMappingURL=7784.3b092fc0.chunk.js.map