Files
openmaxio-object-browser/web-app/build/static/js/1516.73fcb9af.chunk.js

2 lines
22 KiB
JavaScript
Raw Normal View History

2023-12-06 16:04:01 -08:00
(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[1516],{51516:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>F});var r=n(72791),i=n(29945),o=n(78687),s=n(87995),a=n(44690),l=n(74440),c=n(80184);const u=e=>{let{email:t}=e;return(0,c.jsxs)(r.Fragment,{children:[(0,c.jsx)(l.Z,{email:t}),(0,c.jsx)(i.rjZ,{item:!0,xs:12,sx:{marginTop:25},children:(0,c.jsxs)(i.xuv,{sx:{padding:"20px"},children:["Login to"," ",(0,c.jsx)("a",{href:"https://subnet.min.io",target:"_blank",children:"SUBNET"})," ","to avail support for this MinIO cluster"]})})]})},d=()=>{const e="mc admin config set {alias} subnet proxy={proxy}",[t,n]=(0,r.useState)(!1);return(0,c.jsx)(r.Fragment,{children:(0,c.jsxs)(i.xuv,{withBorders:!0,sx:{display:"flex",padding:"23px",marginTop:"40px",alignItems:"start",justifyContent:"space-between"},children:[(0,c.jsxs)(i.xuv,{sx:{display:"flex",flexFlow:"column"},children:[(0,c.jsxs)(i.xuv,{sx:{display:"flex","& .min-icon":{height:"22px",width:"22px"}},children:[(0,c.jsx)(i.ewm,{}),(0,c.jsx)("div",{style:{marginLeft:"10px",fontWeight:600},children:"Proxy Configuration"})]}),(0,c.jsxs)(i.xuv,{sx:{marginTop:"10px",marginBottom:"10px",fontSize:"14px"},children:["For airgap/firewalled environments it is possible to"," ",(0,c.jsx)("a",{href:"https://min.io/docs/minio/linux/reference/minio-mc-admin/mc-admin-config.html?ref=con",target:"_blank",children:"configure a proxy"})," ","to connect to SUBNET ."]}),(0,c.jsx)(i.xuv,{children:t&&(0,c.jsx)(i.Wzg,{disabled:!0,id:"subnetProxy",name:"subnetProxy",placeholder:"",onChange:()=>{},label:"",value:e,overlayIcon:(0,c.jsx)(i.TIy,{}),overlayAction:()=>navigator.clipboard.writeText(e)})})]}),(0,c.jsx)(i.xuv,{sx:{display:"flex"},children:(0,c.jsx)(i.rsf,{value:"enableProxy",id:"enableProxy",name:"enableProxy",checked:t,onChange:e=>{n(e.target.checked)}})})]})})};var x=n(36825),p=n(81207),g=n(96382),f=n(38442),h=n(56087);const m=(0,g.hg)("register/fetchLicenseInfo",(async(e,t)=>{let{getState:n,dispatch:r}=t;const i=n(),o=(0,f.F)(h.C3,h.LC[h.gA.LICENSE],!0);i.register.loadingLicenseInfo||(o?(r((0,x.pI)(!0)),p.Z.invoke("GET","/api/v1/subnet/info").then((e=>{r((0,x.aO)(e)),r((0,x.Dr)(!0)),r((0,x.pI)(!1))})).catch((e=>{e.detailedError.toLowerCase()!=="License is not present".toLowerCase()&&e.detailedError.toLowerCase()!=="license not found".toLowerCase()&&r((0,s.Ih)(e)),r((0,x.Dr)(!1)),r((0,x.pI)(!1))}))):r((0,x.pI)(!1)))})),b=(0,g.hg)("register/callRegister",(async(e,t)=>{let{dispatch:n}=t;const r={token:e.token,account_id:e.account_id};p.Z.invoke("POST","/api/v1/subnet/register",r).then((()=>{n((0,x.K4)(!1)),n((0,s.cN)(!0)),n((0,x.jS)()),n(m())})).catch((e=>{n((0,s.Ih)(e)),n((0,x.K4)(!1))}))})),y=(0,g.hg)("register/subnetLoginWithMFA",(async(e,t)=>{let{getState:n,rejectWithValue:r,dispatch:i}=t;const o=n(),a=o.register.subnetEmail,l=o.register.subnetMFAToken,c=o.register.subnetOTP;if(o.register.loading)return;i((0,x.K4)(!0));const u={username:a,otp:c,mfa_token:l};p.Z.invoke("POST","/api/v1/subnet/login/mfa",u).then((e=>{i((0,x.K4)(!1)),e&&e.access_token&&e.organizations.length>0&&(1===e.organizations.length?i(b({token:e.access_token,account_id:e.organizations[0].accountId.toString()})):(i((0,x.t2)(e.access_token)),i((0,x.dl)(e.organizations)),i((0,x.wK)(e.organizations[0].accountId.toString()))))})).catch((e=>{i((0,s.Ih)(e)),i((0,x.K4)(!1)),i((0,x.Z7)(""))}))})),v=(0,g.hg)("register/subnetLogin",(async(e,t)=>{let{getState:n,rejectWithValue:r,dispatch:i}=t;const o=n(),a=o.register.license,l=o.register.subnetPassword,c=o.register.subnetEmail;if(o.register.loading)return;i((0,x.K4)(!0));let u={username:c,password:l,apiKey:a};p.Z.invoke("POST","/api/v1/subnet/login",u).then((e=>{i((0,x.K4)(!1)),e&&e.registered?(i((0,x.jS)()),i(m())):e&&e.mfa_token?i((0,x.dK)(e.mfa_token)):e&&e.access_token&&e.organizations.length>0&&(i((0,x.t2)(e.access_token)),i((0,x.dl)(e.organizations)),i((0,x.wK)(e.organizations[0].accountId.toString())))})).catch((e=>{i((0,s.Ih)(e)),i((0,x.K4)(!1)),i((0,x.jS)())}))}));var j=n(23814),w=n(27454),k=n(78029),C=n.n(k);const S=e=>{let{icon:t,description:n}=e;retu
//# sourceMappingURL=1516.73fcb9af.chunk.js.map