"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[2527],{21865:function(n,e,o){o.r(e);var r=o(29439),t=o(1413),i=o(72791),a=o(11135),l=o(23814),s=o(25787),c=o(64554),u=o(32291),d=o(74794),p=o(81207),m=o(18073),x=o(43896),b=o(19847),f=o(79786),g=o(13438),v=o(80184);e.default=(0,s.Z)((function(n){return(0,a.Z)((0,t.Z)((0,t.Z)((0,t.Z)((0,t.Z)({registerActivationIcon:{color:n.palette.primary.main,fontSize:16,fontWeight:"bold",marginBottom:20,"& .min-icon":{width:32.12,height:25,marginRight:10,verticalAlign:"middle"}},registerActivationMode:{textAlign:"right","& a":{cursor:"pointer"}},subnetDescription:{textAlign:"left",Font:"normal normal normal 14px/17px Lato",letterSpacing:0,color:"#000000","& span":{fontWeight:"bold"}},registeredStatus:{border:"1px solid #E2E2E2",padding:"24px 24px 24px 24px",borderRadius:2,marginBottom:25,backgroundColor:"#FBFAFA","& .min-icon":{width:20,height:20,marginLeft:48,marginRight:13,verticalAlign:"middle",marginTop:-3},"& span":{fontWeight:"bold"}},copyInputBox:{"& button":{border:"1px solid #5E5E5E",borderRadius:2}},link:{color:"#2781B0",cursor:"pointer"},sizedLabel:{minWidth:"75px"}},l.OR),l.qg),l.bK),(0,l.Bz)(n.spacing(4))))}))((function(n){var e=n.classes,o=(0,i.useState)(!1),t=(0,r.Z)(o,2),a=t[0],l=t[1],s=(0,i.useState)(0),h=(0,r.Z)(s,2),Z=h[0],y=h[1],k=(0,i.useCallback)((function(){p.Z.invoke("GET","/api/v1/subnet/apikey/info").then((function(n){l(!0)})).catch((function(n){l(!1)}))}),[]);(0,i.useEffect)((function(){k()}),[k]);var A=(0,v.jsx)(i.Fragment,{children:(0,v.jsx)(c.Z,{sx:{border:"1px solid #eaeaea",borderRadius:"2px",display:"flex",flexFlow:"column",padding:"43px"},children:a?(0,v.jsx)(f.xr,{email:"Operator",linkClass:e.link}):(0,v.jsx)(g.Z,{registerEndpoint:"/api/v1/subnet/apikey/register",afterRegister:k})})});return(0,v.jsxs)(i.Fragment,{children:[(0,v.jsx)(u.Z,{label:"Register to MinIO Subscription Network",actions:(0,v.jsx)(i.Fragment,{})}),(0,v.jsxs)(d.Z,{children:[(0,v.jsx)(m.Z,{value:Z,onChange:function(n,e){y(e)},indicatorColor:"primary",textColor:"primary","aria-label":"cluster-tabs",variant:"scrollable",scrollButtons:"auto",children:(0,v.jsx)(x.Z,{label:"API Key Activation",id:"simple-tab-0","aria-controls":"simple-tabpanel-1"})}),(0,v.jsx)(b.x,{index:0,value:Z,children:A})]})]})}))},23060:function(n,e,o){o.d(e,{Z:function(){return j}});var r=o(93433),t=o(29439),i=o(4942),a=o(63366),l=o(87462),s=o(72791),c=o(28182),u=o(94419),d=o(18529),p=o(12065),m=o(14036),x=o(66934),b=o(31402),f=o(23031),g=o(42071),v=o(20890),h=o(21217);function Z(n){return(0,h.Z)("MuiLink",n)}var y=(0,o(75878).Z)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),k=o(80184),A=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],C={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},F=(0,x.ZP)(v.Z,{name:"MuiLink",slot:"Root",overridesResolver:function(n,e){var o=n.ownerState;return[e.root,e["underline".concat((0,m.Z)(o.underline))],"button"===o.component&&e.button]}})((function(n){var e=n.theme,o=n.ownerState,r=(0,d.D)(e,"palette.".concat(function(n){return C[n]||n}(o.color)))||o.color;return(0,l.Z)({},"none"===o.underline&&{textDecoration:"none"},"hover"===o.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===o.underline&&{textDecoration:"underline",textDecorationColor:"inherit"!==r?(0,p.Fq)(r,.4):void 0,"&:hover":{textDecorationColor:"inherit"}},"button"===o.component&&(0,i.Z)({position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"}},"&.".concat(y.focusVisible),{outline:"auto"}))})),j=s.forwardRef((function(n,e){var o=(0,b.Z)({props:n,name:"MuiLink"}),i=o.className,d=o.color,p=void 0===d?"primary":d,x=o.component,v=void 0===x?"a":x,h=o.onBlur,y=o.onFocus,j=o.TypographyClasses,w=o.underline,R=void 0===w?"always":w,S=o.variant,B=void 0===S?"inherit":S,E=o.sx,D=(0,a.Z)(o,A),L=(0,f.Z)(),M=L.isFocusVisibleRef,V=L.onBlur,W=L.onFocus,z=L.ref,N=s.useState(!1),T=(0,t.Z)(N,2),I=T[0],O=T[1],P=(0,g.Z)(e,z),q=(0,l.Z)({},o,{color:p,component:v,focusVisible:I,underline:R,variant:B}),H=function(n){var e=n.classes,o=n.component,r=n.focusVisible,t=n.underline,i={root:["root","underline".concat((0,m.Z)(t)),"button"===o&&"button",r&&"focusVisible"]};return(0,u.Z)(i,Z,e)}(q);return(0,k.jsx)(F,(0,l.Z)({color:p,className:(0,c.Z)(H.root,i),classes:j,component:v,onBlur:function(n){V(n),!1===M.current&&O(!1),h&&h(n)},onFocus:function(n){W(n),!0===M.current&&O(!0),y&&y(n)},ref:P,ownerState:q,variant:B,sx:[].concat((0,r.Z)(Object.keys(C).includes(p)?[]:[{color:p}]),(0,r.Z)(Array.isArray(E)?E:[E]))},D))}))}}]);
//# sourceMappingURL=2527.65ee9c60.chunk.js.map