Files
object-browser/portal-ui/build/static/js/1516.d1e7e873.chunk.js
Alex 543076eaac Release v0.26.1 (#2759)
Signed-off-by: Benjamin Perez <benjamin@bexsoft.net>
Co-authored-by: Benjamin Perez <benjamin@bexsoft.net>
2023-04-05 13:11:39 -07:00

2 lines
36 KiB
JavaScript

(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[1516],{57314:function(e,t,n){"use strict";var i=n(1413),r=n(72791),o=n(61889),s=n(30829),a=n(20068),l=n(27391),c=n(11135),u=n(25787),d=n(23814),p=n(75952),x=n(80184);t.Z=(0,u.Z)((function(e){return(0,c.Z)((0,i.Z)((0,i.Z)((0,i.Z)({},d.YI),d.Hr),{},{inputLabel:(0,i.Z)((0,i.Z)({},d.YI.inputLabel),{},{fontSize:14,margin:0,alignItems:"flex-start",paddingTop:"20px",flexWrap:"wrap",display:"flex"}),textBoxContainer:{flexGrow:1,position:"relative"},cssOutlinedInput:{borderColor:"#EAEAEA",padding:16},rootContainer:{"& .MuiOutlinedInput-inputMultiline":(0,i.Z)((0,i.Z)({},d.YI.inputLabel),{},{fontSize:13,minHeight:150}),"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"#07193E",borderWidth:1},"& textarea":{color:"#07193E",fontSize:13,fontWeight:600,"&:placeholder":{color:"#858585",opacity:1,fontWeight:400}}}}))}))((function(e){var t=e.label,n=e.onChange,i=e.value,c=e.id,u=e.name,d=e.disabled,f=void 0!==d&&d,h=e.tooltip,g=void 0===h?"":h,m=e.index,b=void 0===m?0:m,v=e.error,y=void 0===v?"":v,j=e.required,Z=void 0!==j&&j,w=e.placeholder,C=void 0===w?"":w,k=e.classes,S={"data-index":b};return(0,x.jsx)(r.Fragment,{children:(0,x.jsxs)(o.ZP,{item:!0,xs:12,className:"".concat(k.fieldContainer," ").concat(""!==y?k.errorInField:""),children:[""!==t&&(0,x.jsxs)(s.Z,{htmlFor:c,className:k.inputLabel,children:[(0,x.jsxs)("span",{children:[t,Z?"*":""]}),""!==g&&(0,x.jsx)("div",{className:k.tooltipContainer,children:(0,x.jsx)(a.Z,{title:g,placement:"top-start",children:(0,x.jsx)("div",{className:k.tooltip,children:(0,x.jsx)(p.byK,{})})})})]}),(0,x.jsx)("div",{className:k.textBoxContainer,children:(0,x.jsx)(l.Z,{id:c,name:u,fullWidth:!0,value:i,disabled:f,onChange:n,multiline:!0,rows:5,inputProps:S,error:""!==y,helperText:y,placeholder:C,InputLabelProps:{shrink:!0},InputProps:{classes:{notchedOutline:k.cssOutlinedInput,root:k.rootContainer}},variant:"outlined"})})]})})}))},21435:function(e,t,n){"use strict";var i=n(29439),r=n(1413),o=n(72791),s=n(27391),a=n(61889),l=n(30829),c=n(20068),u=n(13400),d=n(20165),p=n(3579),x=n(11135),f=n(72455),h=n(25787),g=n(23814),m=n(75952),b=n(28182),v=n(80184),y=(0,f.Z)((function(e){return(0,x.Z)((0,r.Z)({},g.gM))}));function j(e){var t=y();return(0,v.jsx)(s.Z,(0,r.Z)({InputProps:{classes:t}},e))}t.Z=(0,h.Z)((function(e){return(0,x.Z)((0,r.Z)((0,r.Z)((0,r.Z)({},g.YI),g.Hr),{},{textBoxContainer:{flexGrow:1,position:"relative"},overlayAction:{position:"absolute",right:5,top:6,"& svg":{maxWidth:15,maxHeight:15},"&.withLabel":{top:5}}}))}))((function(e){var t=e.label,n=e.onChange,s=e.value,x=e.id,f=e.name,h=e.type,g=void 0===h?"text":h,y=e.autoComplete,Z=void 0===y?"off":y,w=e.disabled,C=void 0!==w&&w,k=e.multiline,S=void 0!==k&&k,I=e.tooltip,T=void 0===I?"":I,P=e.index,O=void 0===P?0:P,L=e.error,z=void 0===L?"":L,E=e.required,F=void 0!==E&&E,R=e.placeholder,N=void 0===R?"":R,A=e.min,B=e.max,K=e.overlayId,_=e.overlayIcon,M=void 0===_?null:_,W=e.overlayObject,D=void 0===W?null:W,U=e.extraInputProps,H=void 0===U?{}:U,G=e.overlayAction,V=e.noLabelMinWidth,Y=void 0!==V&&V,q=e.pattern,Q=void 0===q?"":q,X=e.autoFocus,J=void 0!==X&&X,$=e.classes,ee=e.className,te=void 0===ee?"":ee,ne=e.onKeyPress,ie=e.onFocus,re=e.onPaste,oe=(0,r.Z)({"data-index":O},H),se=(0,o.useState)(!1),ae=(0,i.Z)(se,2),le=ae[0],ce=ae[1];"number"===g&&A&&(oe.min=A),"number"===g&&B&&(oe.max=B),""!==Q&&(oe.pattern=Q);var ue=M,de=g;return"password"===g&&null===M&&(ue=le?(0,v.jsx)(d.Z,{}):(0,v.jsx)(p.Z,{}),de=le?"text":"password"),(0,v.jsx)(o.Fragment,{children:(0,v.jsxs)(a.ZP,{container:!0,className:(0,b.Z)(""!==te?te:"",""!==z?$.errorInField:$.inputBoxContainer),children:[""!==t&&(0,v.jsxs)(l.Z,{htmlFor:x,className:Y?$.noMinWidthLabel:$.inputLabel,children:[(0,v.jsxs)("span",{children:[t,F?"*":""]}),""!==T&&(0,v.jsx)("div",{className:$.tooltipContainer,children:(0,v.jsx)(c.Z,{title:T,placement:"top-start",children:(0,v.jsx)("div",{className:$.tooltip,children:(0,v.jsx)(m.byK,{})})})})]}),(0,v.jsxs)("div",{className:$.textBoxContainer,children:[(0,v.jsx)(j,{id:x,name:f,fullWidth:!0,value:s,autoFocus:J,disabled:C,onChange:n,type:de,multiline:S,autoComplete:Z,inputProps:oe,error:""!==z,helperText:z,placeholder:N,className:$.inputRebase,onKeyPress:ne,onFocus:ie,onPaste:re}),ue&&(0,v.jsx)("div",{className:"".concat($.overlayAction," ").concat(""!==t?"withLabel":""),children:(0,v.jsx)(u.Z,{onClick:G?function(){G()}:function(){return ce(!le)},id:K,size:"small",disableFocusRipple:!1,disableRipple:!1,disableTouchRipple:!1,children:ue})}),D&&(0,v.jsx)("div",{className:"".concat($.overlayAction," ").concat(""!==t?"withLabel":""),children:D})]})]})})}))},90673:function(e,t,n){"use strict";var i=n(1413),r=n(72791),o=n(61889),s=n(4834),a=n(30829),l=n(20068),c=n(68096),u=n(58406),d=n(77865),p=n(11135),x=n(25787),f=n(23814),h=n(75952),g=n(80184),m=(0,x.Z)((function(e){return(0,p.Z)({root:{height:38,lineHeight:1,"label + &":{marginTop:e.spacing(3)}},input:{height:38,position:"relative",color:"#07193E",fontSize:13,fontWeight:600,padding:"8px 20px 10px 10px",border:"#e5e5e5 1px solid",borderRadius:4,display:"flex",alignItems:"center","&:hover":{borderColor:"#393939"},"&:focus":{backgroundColor:"#fff"}}})}))(s.ZP);t.Z=(0,x.Z)((function(e){return(0,p.Z)((0,i.Z)((0,i.Z)((0,i.Z)({},f.YI),f.Hr),{},{fieldContainer:{display:"flex","@media (max-width: 600px)":{flexFlow:"column"}}}))}))((function(e){var t=e.classes,n=e.id,i=e.name,s=e.onChange,p=e.options,x=e.label,f=e.tooltip,b=void 0===f?"":f,v=e.value,y=e.disabled,j=void 0!==y&&y;return(0,g.jsx)(r.Fragment,{children:(0,g.jsxs)(o.ZP,{item:!0,xs:12,className:t.fieldContainer,children:[""!==x&&(0,g.jsxs)(a.Z,{htmlFor:n,className:t.inputLabel,children:[(0,g.jsx)("span",{children:x}),""!==b&&(0,g.jsx)("div",{className:t.tooltipContainer,children:(0,g.jsx)(l.Z,{title:b,placement:"top-start",children:(0,g.jsx)("div",{className:t.tooltip,children:(0,g.jsx)(h.byK,{})})})})]}),(0,g.jsx)(c.Z,{fullWidth:!0,children:(0,g.jsx)(u.Z,{id:n,name:i,value:v,onChange:s,input:(0,g.jsx)(m,{}),disabled:j,children:p.map((function(e){return(0,g.jsx)(d.Z,{value:e.value,children:e.label},"select-".concat(i,"-").concat(e.label))}))})})]})})}))},51516:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return oe}});var i=n(29439),r=n(1413),o=n(72791),s=n(11135),a=n(23814),l=n(25787),c=n(64554),u=n(74794),d=n(81207),p=n(78687),x=n(87995),f=n(81551),h=n(18073),g=n(43896),m=n(19847),b=n(61889),v=n(50533),y=n(75952),j=n(81159),Z=n(21435),w=n(74440),C=n(80184),k=function(e){var t=e.icon,n=void 0===t?null:t,i=e.title;return(0,C.jsxs)(c.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start"},children:[n,(0,C.jsx)("div",{className:"title-text",children:i})]})},S=function(e){var t=e.email;return(0,C.jsxs)(o.Fragment,{children:[(0,C.jsx)(w.Z,{email:t}),(0,C.jsx)(b.ZP,{item:!0,xs:12,marginTop:"25px",children:(0,C.jsxs)(c.Z,{sx:{padding:"20px","& a":{color:"#2781B0",cursor:"pointer"}},children:["Login to"," ",(0,C.jsx)(v.Z,{href:"https://subnet.min.io",target:"_blank",style:{color:"#2781B0",cursor:"pointer"},children:"SUBNET"})," ","to avail support for this MinIO cluster"]})})]})},I=function(){var e="mc admin config set {alias} subnet proxy={proxy}",t=(0,o.useState)(!1),n=(0,i.Z)(t,2),r=n[0],s=n[1];return(0,C.jsx)(o.Fragment,{children:(0,C.jsxs)(c.Z,{sx:{border:"1px solid #eaeaea",borderRadius:"2px",display:"flex",padding:"23px",marginTop:"40px",alignItems:"start",justifyContent:"space-between"},children:[(0,C.jsxs)(c.Z,{sx:{display:"flex",flexFlow:"column"},children:[(0,C.jsxs)(c.Z,{sx:{display:"flex","& .min-icon":{height:"22px",width:"22px"}},children:[(0,C.jsx)(y.ewm,{}),(0,C.jsx)("div",{style:{marginLeft:"10px",fontWeight:600},children:"Proxy Configuration"})]}),(0,C.jsxs)(c.Z,{sx:{marginTop:"10px",marginBottom:"10px",fontSize:"14px"},children:["For airgap/firewalled environments it is possible to"," ",(0,C.jsx)(v.Z,{style:{color:"#2781B0",cursor:"pointer"},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)(c.Z,{children:r&&(0,C.jsx)(Z.Z,{disabled:!0,id:"subnetProxy",name:"subnetProxy",placeholder:"",onChange:function(){},label:"",value:e,overlayIcon:(0,C.jsx)(y.TIy,{}),extraInputProps:{readOnly:!0},overlayAction:function(){return navigator.clipboard.writeText(e)}})})]}),(0,C.jsx)(c.Z,{sx:{display:"flex"},children:(0,C.jsx)(j.Z,{value:"enableProxy",id:"enableProxy",name:"enableProxy",checked:r,onChange:function(e){s(e.target.checked)}})})]})})},T=n(3579),P=n(20165),O=n(30403),L=n(23508),z=n(9505),E=(0,l.Z)((function(e){return(0,s.Z)((0,r.Z)((0,r.Z)({sizedLabel:{minWidth:"75px"}},a.Bz),a.bK))}))((function(e){var t=e.open,n=e.closeModal,r=e.classes,s=e.onSet,a=(0,f.TL)(),l=(0,o.useState)(""),u=(0,i.Z)(l,2),d=u[0],p=u[1],h=(0,o.useState)(""),g=(0,i.Z)(h,2),m=g[0],b=g[1],v=(0,o.useState)(!1),j=(0,i.Z)(v,2),w=j[0],k=j[1],S=(0,o.useState)(""),I=(0,i.Z)(S,2),E=I[0],F=I[1],R=(0,o.useState)(""),N=(0,i.Z)(R,2),A=N[0],B=N[1],K=(0,z.Z)((function(e){e.mfa_token?F(e.mfa_token):e.access_token?W("GET","/api/v1/subnet/apikey?token=".concat(e.access_token)):(s(e.apiKey),n())}),(function(e){a((0,x.Ih)(e)),n(),p(""),b(""),k(!1),F(""),B("")})),_=(0,i.Z)(K,2),M=_[0],W=_[1],D=function(){return(0,C.jsxs)(c.Z,{sx:{width:500},children:[(0,C.jsx)(Z.Z,{className:r.spacerBottom,classes:{inputLabel:r.sizedLabel},id:"subnet-email",name:"subnet-email",onChange:function(e){return p(e.target.value)},label:"Email",value:d,overlayIcon:(0,C.jsx)(y.oyc,{})}),(0,C.jsx)(Z.Z,{className:r.spacerBottom,classes:{inputLabel:r.sizedLabel},id:"subnet-password",name:"subnet-password",onChange:function(e){return b(e.target.value)},label:"Password",type:w?"text":"password",value:m,overlayIcon:w?(0,C.jsx)(P.Z,{}):(0,C.jsx)(T.Z,{}),overlayAction:function(){return k(!w)}})]})},U=function(){return(0,C.jsx)(c.Z,{sx:{display:"flex"},children:(0,C.jsxs)(c.Z,{sx:{display:"flex",flexFlow:"column",flex:"2"},children:[(0,C.jsx)(c.Z,{sx:{fontSize:"16px",display:"flex",flexFlow:"column",marginTop:"30px",marginBottom:"30px"},children:"Two-Factor Authentication"}),(0,C.jsx)(c.Z,{children:"Please enter the 6-digit verification code that was sent to your email address. This code will be valid for 5 minutes."}),(0,C.jsx)(c.Z,{sx:{flex:"1",marginTop:"30px"},children:(0,C.jsx)(Z.Z,{overlayIcon:(0,C.jsx)(O.Z,{}),id:"subnet-otp",name:"subnet-otp",onChange:function(e){return B(e.target.value)},placeholder:"",label:"",value:A})}),(0,C.jsx)(c.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end"}})]})})};return t?(0,C.jsx)(L.Z,{title:"Get API Key from SUBNET",confirmText:"Get API Key",isOpen:t,titleIcon:(0,C.jsx)(y.szr,{}),isLoading:M,cancelText:"Cancel",onConfirm:function(){""!==E?W("POST","/api/v1/subnet/login/mfa",{username:d,otp:A,mfa_token:E}):W("POST","/api/v1/subnet/login",{username:d,password:m})},onClose:n,confirmButtonProps:{variant:"callAction",disabled:!d||!m||M,hidden:!0},cancelButtonProps:{disabled:M},confirmationContent:""===E?D():U()}):null})),F=function(e){var t=e.icon,n=e.description;return(0,C.jsxs)(c.Z,{sx:{display:"flex","& .min-icon":{marginRight:"10px",height:"23px",width:"23px",marginBottom:"10px"}},children:[t," ",(0,C.jsx)("div",{style:{fontSize:"14px",fontStyle:"italic",color:"#5E5E5E"},children:n})]})},R=function(e){var t=e.hasMargin,n=void 0===t||t;return(0,C.jsxs)(c.Z,{sx:{flex:1,border:"1px solid #eaeaea",borderRadius:"2px",display:"flex",flexFlow:"column",padding:"20px",marginLeft:{xs:"0px",sm:"0px",md:n?"30px":""},marginTop:{xs:"0px",sm:n?"30px":""}},children:[(0,C.jsxs)(c.Z,{sx:{fontSize:"16px",fontWeight:600,display:"flex",alignItems:"center",marginBottom:"16px","& .min-icon":{height:"21px",width:"21px",marginRight:"15px"}},children:[(0,C.jsx)(y.M9A,{}),(0,C.jsx)("div",{children:"Why should I register?"})]}),(0,C.jsx)(c.Z,{sx:{fontSize:"14px",marginBottom:"15px"},children:"Registering this cluster with the MinIO Subscription Network (SUBNET) provides the following benefits in addition to the commercial license and SLA backed support."}),(0,C.jsxs)(c.Z,{sx:{display:"flex",flexFlow:"column"},children:[(0,C.jsx)(F,{icon:(0,C.jsx)(y._qw,{}),description:"Call Home Monitoring"}),(0,C.jsx)(F,{icon:(0,C.jsx)(y.toM,{}),description:"Health Diagnostics"}),(0,C.jsx)(F,{icon:(0,C.jsx)(y.Fsz,{}),description:"Performance Analysis"}),(0,C.jsx)(F,{icon:(0,C.jsx)(y.EQx,{}),description:(0,C.jsx)(v.Z,{href:"https://min.io/signup?ref=con",target:"_blank",sx:{color:"#2781B0",cursor:"pointer"},children:"More Features"})})]})]})},N=n(57689),A=n(56087),B=(0,l.Z)((function(e){return(0,s.Z)((0,r.Z)({sizedLabel:{minWidth:"75px"}},a.bK))}))((function(e){var t=e.classes,n=e.registerEndpoint,r=(0,N.s0)(),s=(0,o.useState)(!1),a=(0,i.Z)(s,2),l=a[0],u=a[1],p=(0,o.useState)(""),h=(0,i.Z)(p,2),g=h[0],m=h[1],b=(0,o.useState)(!1),v=(0,i.Z)(b,2),j=v[0],w=v[1],S=(0,o.useState)(!1),I=(0,i.Z)(S,2),T=I[0],P=I[1],O=(0,f.TL)(),L=(0,o.useCallback)((function(){if(!j){w(!0);var e={apiKey:g};d.Z.invoke("POST",n,e).then((function(e){w(!1),e&&e.registered&&(O((0,x.cN)(!0)),r(A.gA.LICENSE))})).catch((function(e){O((0,x.Ih)(e)),w(!1),z()}))}}),[g,O,j,n,r]);(0,o.useEffect)((function(){T&&L()}),[T,L]);var z=function(){m(""),P(!1)};return(0,C.jsxs)(o.Fragment,{children:[(0,C.jsx)(c.Z,{sx:{"& .title-text":{marginLeft:"27px",fontWeight:600}},children:(0,C.jsx)(k,{icon:(0,C.jsx)(y.dRy,{}),title:"Register cluster with API key"})}),(0,C.jsxs)(c.Z,{sx:{display:"flex",flexFlow:{xs:"column",md:"row"}},children:[(0,C.jsxs)(c.Z,{sx:{display:"flex",flexFlow:"column",flex:"2"},children:[(0,C.jsx)(c.Z,{sx:{fontSize:"16px",display:"flex",flexFlow:"column",marginTop:"30px",marginBottom:"30px"},children:"Use your MinIO Subscription Network API Key to register this cluster."}),(0,C.jsxs)(c.Z,{sx:{flex:"1"},children:[(0,C.jsx)(Z.Z,{className:t.spacerBottom,classes:{inputLabel:t.sizedLabel},id:"api-key",name:"api-key",onChange:function(e){return m(e.target.value)},label:"API Key",value:g}),(0,C.jsxs)(c.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end","& button":{marginLeft:"8px"}},children:[(0,C.jsx)(y.zxk,{id:"get-from-subnet",variant:"regular",className:t.spacerRight,disabled:j,onClick:function(){return u(!0)},label:"Get from SUBNET"}),(0,C.jsx)(y.zxk,{id:"register",type:"submit",variant:"callAction",disabled:j||0===g.trim().length,onClick:function(){return L()},label:"Register"}),(0,C.jsx)(E,{open:l,closeModal:function(){return u(!1)},onSet:function(e){m(e),P(!0)}})]})]})]}),(0,C.jsx)(R,{})]})]})})),K=n(74165),_=n(15861),M=n(36825),W=n(96382),D=n(38442),U=(0,W.hg)("register/fetchLicenseInfo",function(){var e=(0,_.Z)((0,K.Z)().mark((function e(t,n){var i,r,o,s;return(0,K.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=n.getState,r=n.dispatch,o=i(),s=(0,D.F)(A.C3,A.LC[A.gA.LICENSE],!0),!o.register.loadingLicenseInfo){e.next=6;break}return e.abrupt("return");case 6:s?(r((0,M.pI)(!0)),d.Z.invoke("GET","/api/v1/subnet/info").then((function(e){r((0,M.aO)(e)),r((0,M.Dr)(!0)),r((0,M.pI)(!1))})).catch((function(e){e.detailedError.toLowerCase()!=="License is not present".toLowerCase()&&e.detailedError.toLowerCase()!=="license not found".toLowerCase()&&r((0,x.Ih)(e)),r((0,M.Dr)(!1)),r((0,M.pI)(!1))}))):r((0,M.pI)(!1));case 7:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),H=(0,W.hg)("register/callRegister",function(){var e=(0,_.Z)((0,K.Z)().mark((function e(t,n){var i,r;return(0,K.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=n.dispatch,r={token:t.token,account_id:t.account_id},d.Z.invoke("POST","/api/v1/subnet/register",r).then((function(){i((0,M.K4)(!1)),i((0,x.cN)(!0)),i((0,M.jS)()),i(U())})).catch((function(e){i((0,x.Ih)(e)),i((0,M.K4)(!1))}));case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),G=(0,W.hg)("register/subnetLoginWithMFA",function(){var e=(0,_.Z)((0,K.Z)().mark((function e(t,n){var i,r,o,s,a,l,c;return(0,K.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=n.getState,n.rejectWithValue,r=n.dispatch,o=i(),s=o.register.subnetEmail,a=o.register.subnetMFAToken,l=o.register.subnetOTP,!o.register.loading){e.next=8;break}return e.abrupt("return");case 8:r((0,M.K4)(!0)),c={username:s,otp:l,mfa_token:a},d.Z.invoke("POST","/api/v1/subnet/login/mfa",c).then((function(e){r((0,M.K4)(!1)),e&&e.access_token&&e.organizations.length>0&&(1===e.organizations.length?r(H({token:e.access_token,account_id:e.organizations[0].accountId.toString()})):(r((0,M.t2)(e.access_token)),r((0,M.dl)(e.organizations)),r((0,M.wK)(e.organizations[0].accountId.toString()))))})).catch((function(e){r((0,x.Ih)(e)),r((0,M.K4)(!1)),r((0,M.Z7)(""))}));case 11:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),V=(0,W.hg)("register/subnetLogin",function(){var e=(0,_.Z)((0,K.Z)().mark((function e(t,n){var i,r,o,s,a,l,c;return(0,K.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=n.getState,n.rejectWithValue,r=n.dispatch,o=i(),s=o.register.license,a=o.register.subnetPassword,l=o.register.subnetEmail,!o.register.loading){e.next=8;break}return e.abrupt("return");case 8:r((0,M.K4)(!0)),c={username:l,password:a,apiKey:s},d.Z.invoke("POST","/api/v1/subnet/login",c).then((function(e){r((0,M.K4)(!1)),e&&e.registered?(r((0,M.jS)()),r(U())):e&&e.mfa_token?r((0,M.dK)(e.mfa_token)):e&&e.access_token&&e.organizations.length>0&&(r((0,M.t2)(e.access_token)),r((0,M.dl)(e.organizations)),r((0,M.wK)(e.organizations[0].accountId.toString())))})).catch((function(e){r((0,x.Ih)(e)),r((0,M.K4)(!1)),r((0,M.jS)())}));case 11:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),Y=n(27454),q=n(78029),Q=n.n(q),X=n(57314),J=function(){var e=(0,f.TL)(),t=(0,p.v9)((function(e){return e.register.subnetRegToken})),n=(0,p.v9)((function(e){return e.register.clusterRegistered})),r=(0,p.v9)((function(e){return e.register.licenseInfo})),s="https://subnet.min.io/cluster/register?token=".concat(t),a=(0,o.useState)(""),l=(0,i.Z)(a,2),u=l[0],d=l[1],h=(0,z.Z)((function(){e(U()),e((0,x.cN)(!0))}),(function(t){e((0,x.Ih)(t))})),g=(0,i.Z)(h,2),m=g[0],b=g[1];return(0,C.jsx)(o.Fragment,{children:(0,C.jsx)(c.Z,{sx:{border:"1px solid #eaeaea",borderRadius:"2px",display:"flex",flexFlow:"column",padding:"43px"},children:n&&r?(0,C.jsx)(S,{email:r.email}):(0,C.jsxs)(o.Fragment,{children:[(0,C.jsx)(c.Z,{sx:{"& .title-text":{marginLeft:"27px",fontWeight:600}},children:(0,C.jsx)(k,{icon:(0,C.jsx)(y.YL8,{}),title:"Register cluster in an Air-gap environment"})}),(0,C.jsxs)(c.Z,{sx:{display:"flex"},children:[(0,C.jsx)(c.Z,{sx:{display:"flex",flexFlow:"column",flex:"2",marginTop:"15px","& .step-number":{color:"#ffffff",height:"25px",width:"25px",background:"#081C42",marginRight:"10px",textAlign:"center",fontWeight:600,borderRadius:"50%"},"& .step-row":{fontSize:"16px",display:"flex",marginTop:"15px",marginBottom:"15px"}},children:(0,C.jsxs)(c.Z,{children:[(0,C.jsx)(c.Z,{className:"step-row",children:(0,C.jsx)("div",{className:"step-text",children:"Click on the link to register this cluster in SUBNET and get a License Key for this Air-Gap deployment"})}),(0,C.jsxs)(c.Z,{sx:{flex:"1",display:"flex",alignItems:"center",gap:3},children:[(0,C.jsx)(v.Z,{style:{color:"#2781B0",cursor:"pointer"},color:"inherit",href:s,target:"_blank",children:"https://subnet.min.io/cluster/register"}),(0,C.jsx)(Y.Z,{tooltip:"Copy to Clipboard",children:(0,C.jsx)(Q(),{text:s,children:(0,C.jsx)(y.zxk,{type:"button",id:"copy-ult-to-clip-board",icon:(0,C.jsx)(y.TIy,{}),color:"primary",variant:"regular"})})})]}),(0,C.jsx)("div",{style:{marginTop:"25px",fontSize:"14px",fontStyle:"italic",color:"#5E5E5E"},children:"Note: If this machine does not have internet connection, Copy paste the following URL in a browser where you access SUBNET and follow the instructions to complete the registration"}),(0,C.jsxs)(c.Z,{sx:{marginTop:"25px",display:"flex",flexDirection:"column"},children:[(0,C.jsxs)("label",{style:{fontWeight:"bold",marginBottom:"10px"},children:["Paste the License Key"," "]}),(0,C.jsx)(X.Z,{value:u,disabled:m,label:"",id:"licenseKey",name:"licenseKey",placeholder:"License Key",onChange:function(e){d(e.target.value)}})]}),(0,C.jsx)(c.Z,{sx:{marginTop:"25px"},children:(0,C.jsx)(y.zxk,{id:"apply-license-key",onClick:function(){b("PUT","/api/v1/configs/subnet",{key_values:[{key:"license",value:u}]})},variant:"callAction",disabled:!u||m,label:"Apply Cluster License"})})]})}),(0,C.jsx)(R,{})]})]})})})},$=function(){var e=(0,f.TL)(),t=(0,p.v9)((function(e){return e.register.subnetMFAToken})),n=(0,p.v9)((function(e){return e.register.subnetOTP})),i=(0,p.v9)((function(e){return e.register.loading}));return(0,C.jsxs)(c.Z,{sx:{display:"flex"},children:[(0,C.jsxs)(c.Z,{sx:{display:"flex",flexFlow:"column",flex:"2"},children:[(0,C.jsx)(c.Z,{sx:{fontSize:"16px",display:"flex",flexFlow:"column",marginTop:"30px",marginBottom:"30px"},children:"Two-Factor Authentication"}),(0,C.jsx)(c.Z,{children:"Please enter the 6-digit verification code that was sent to your email address. This code will be valid for 5 minutes."}),(0,C.jsx)(c.Z,{sx:{flex:"1",marginTop:"30px"},children:(0,C.jsx)(Z.Z,{overlayIcon:(0,C.jsx)(O.Z,{}),id:"subnet-otp",name:"subnet-otp",onChange:function(t){return e((0,M.Z7)(t.target.value))},placeholder:"",label:"",value:n})}),(0,C.jsx)(c.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end"},children:(0,C.jsx)(y.zxk,{id:"verify",onClick:function(){return e(G())},disabled:i||0===n.trim().length||0===t.trim().length,variant:"callAction",label:"Verify"})})]}),(0,C.jsx)(R,{})]})},ee=n(90673),te=function(){var e=(0,f.TL)(),t=(0,p.v9)((function(e){return e.register.subnetAccessToken})),n=(0,p.v9)((function(e){return e.register.selectedSubnetOrganization})),i=(0,p.v9)((function(e){return e.register.subnetOrganizations})),r=(0,p.v9)((function(e){return e.register.loading}));return(0,C.jsxs)(c.Z,{sx:{display:"flex"},children:[(0,C.jsxs)(c.Z,{sx:{display:"flex",flexFlow:"column",flex:"2"},children:[(0,C.jsx)(c.Z,{sx:{marginTop:"15px",marginBottom:"15px","& .title-text":{marginLeft:"0px"}},children:(0,C.jsx)(k,{title:"Register MinIO cluster"})}),(0,C.jsxs)(c.Z,{children:[(0,C.jsx)(ee.Z,{id:"subnet-organization",name:"subnet-organization",onChange:function(t){return e((0,M.wK)(t.target.value))},label:"Select an organization",value:n,options:i.map((function(e){return{label:e.company,value:e.accountId.toString()}}))}),(0,C.jsx)(c.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end",marginTop:"15px"},children:(0,C.jsx)(y.zxk,{id:"register-cluster",onClick:function(){return function(){r||(e((0,M.K4)(!0)),t&&n&&e(H({token:t,account_id:n})))}},disabled:r||0===t.trim().length,variant:"callAction",label:"Register"})})]})]}),(0,C.jsx)(R,{})]})},ne=(0,n(72455).Z)((function(e){return(0,s.Z)((0,r.Z)({sizedLabel:{minWidth:"75px"}},a.bK))})),ie=function(){var e=ne(),t=(0,f.TL)(),n=(0,p.v9)((function(e){return e.register.subnetPassword})),i=(0,p.v9)((function(e){return e.register.subnetEmail})),r=(0,p.v9)((function(e){return e.register.showPassword})),s=(0,p.v9)((function(e){return e.register.loading}));return(0,C.jsxs)(o.Fragment,{children:[(0,C.jsx)(c.Z,{sx:{"& .title-text":{marginLeft:"27px",fontWeight:600}},children:(0,C.jsx)(k,{icon:(0,C.jsx)(y.dRy,{}),title:"Online activation of MinIO Subscription Network License"})}),(0,C.jsxs)(c.Z,{sx:{display:"flex",flexFlow:{xs:"column",md:"row"}},children:[(0,C.jsxs)(c.Z,{sx:{display:"flex",flexFlow:"column",flex:"2"},children:[(0,C.jsx)(c.Z,{sx:{fontSize:"16px",display:"flex",flexFlow:"column",marginTop:"30px",marginBottom:"30px"},children:"Use your MinIO Subscription Network login credentials to register this cluster."}),(0,C.jsxs)(c.Z,{sx:{flex:"1"},children:[(0,C.jsx)(Z.Z,{className:e.spacerBottom,classes:{inputLabel:e.sizedLabel},id:"subnet-email",name:"subnet-email",onChange:function(e){return t((0,M.Ze)(e.target.value))},label:"Email",value:i,overlayIcon:(0,C.jsx)(y.oyc,{})}),(0,C.jsx)(Z.Z,{className:e.spacerBottom,classes:{inputLabel:e.sizedLabel},id:"subnet-password",name:"subnet-password",onChange:function(e){return t((0,M.lr)(e.target.value))},label:"Password",type:r?"text":"password",value:n,overlayIcon:r?(0,C.jsx)(P.Z,{}):(0,C.jsx)(T.Z,{}),overlayAction:function(){return t((0,M.R5)(!r))}}),(0,C.jsxs)(c.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end","& button":{marginLeft:"8px"}},children:[(0,C.jsx)(y.zxk,{id:"sign-up",type:"submit",className:e.spacerRight,variant:"regular",onClick:function(e){e.preventDefault(),window.open("https://min.io/signup?ref=con","_blank")},label:"Sign up"}),(0,C.jsx)(y.zxk,{id:"register-credentials",type:"submit",variant:"callAction",disabled:s||0===i.trim().length||0===n.trim().length,onClick:function(){return t(V())},label:"Register"})]})]})]}),(0,C.jsx)(R,{})]})]})},re=n(47974),oe=(0,l.Z)((function(e){return(0,s.Z)((0,r.Z)({sizedLabel:{minWidth:"75px"}},a.bK))}))((function(e){e.classes;var t=(0,f.TL)(),n=(0,p.v9)((function(e){return e.register.subnetMFAToken})),r=(0,p.v9)((function(e){return e.register.subnetAccessToken})),s=(0,p.v9)((function(e){return e.register.subnetRegToken})),a=(0,p.v9)((function(e){return e.register.subnetOrganizations})),l=(0,p.v9)((function(e){return e.register.loading})),b=(0,p.v9)((function(e){return e.register.loadingLicenseInfo})),v=(0,p.v9)((function(e){return e.register.clusterRegistered})),y=(0,p.v9)((function(e){return e.register.licenseInfo})),j=(0,p.v9)((function(e){return e.register.curTab})),Z=(0,o.useState)(!0),w=(0,i.Z)(Z,2),k=w[0],T=w[1];(0,o.useEffect)((function(){return function(){t((0,M.jS)())}}),[t]);(0,o.useEffect)((function(){k&&(t(U()),T(!1))}),[k,T,t]);var P=(0,C.jsx)(o.Fragment,{});P=r&&a.length>0?(0,C.jsx)(te,{}):n?(0,C.jsx)($,{}):(0,C.jsx)(ie,{});var O=(0,C.jsxs)(o.Fragment,{children:[(0,C.jsx)(c.Z,{sx:{border:"1px solid #eaeaea",borderRadius:"2px",display:"flex",flexFlow:"column",padding:"43px"},children:v&&y?(0,C.jsx)(S,{email:y.email}):(0,C.jsx)(B,{registerEndpoint:"/api/v1/subnet/login"})}),(0,C.jsx)(I,{})]}),L=(0,C.jsx)(J,{}),z=(0,C.jsxs)(o.Fragment,{children:[(0,C.jsx)(c.Z,{sx:{border:"1px solid #eaeaea",borderRadius:"2px",display:"flex",flexFlow:"column",padding:"43px"},children:v&&y?(0,C.jsx)(S,{email:y.email}):P}),!v&&(0,C.jsx)(I,{})]}),E=b?(0,C.jsx)("div",{children:"Loading.."}):z;return(0,C.jsxs)(o.Fragment,{children:[(0,C.jsx)(re.Z,{label:"Register to MinIO Subscription Network",actions:(0,C.jsx)(o.Fragment,{})}),(0,C.jsxs)(u.Z,{children:[(0,C.jsxs)(h.Z,{value:j,onChange:function(e,n){t((0,M.m)(n))},indicatorColor:"primary",textColor:"primary","aria-label":"cluster-tabs",variant:"scrollable",scrollButtons:"auto",children:[(0,C.jsx)(g.Z,{label:"Credentials",id:"simple-tab-0","aria-controls":"simple-tab-panel-0"}),(0,C.jsx)(g.Z,{label:"API Key",id:"simple-tab-1","aria-controls":"simple-tab-panel-1"}),(0,C.jsx)(g.Z,{label:"Air-Gap",id:"simple-tab-2","aria-controls":"simple-tab-panel-2",onClick:function(){l||s||(t((0,M.K4)(!0)),d.Z.invoke("GET","/api/v1/subnet/registration-token").then((function(e){t((0,M.K4)(!1)),e&&e.regToken&&t((0,M.wz)(e.regToken))})).catch((function(e){console.error(e),t((0,x.Ih)(e)),t((0,M.K4)(!1))})))}})]}),(0,C.jsx)(m.x,{index:0,value:j,children:E}),(0,C.jsx)(m.x,{index:1,value:j,children:O}),(0,C.jsx)(m.x,{index:2,value:j,children:L})]})]})}))},74440:function(e,t,n){"use strict";n(72791);var i=n(64554),r=n(75952),o=n(80184);t.Z=function(e){var t=e.email,n=void 0===t?"":t;return(0,o.jsxs)(i.Z,{sx:{height:"67px",color:"#ffffff",display:"flex",position:"relative",top:"-30px",left:"-32px",width:"calc(100% + 64px)",alignItems:"center",justifyContent:"space-between",backgroundColor:"#2781B0",padding:"0 25px 0 25px","& .registered-box, .reg-badge-box":{display:"flex",alignItems:"center",justifyContent:"flex-start"},"& .reg-badge-box":{marginLeft:"20px","& .min-icon":{fill:"#2781B0"}}},children:[(0,o.jsxs)(i.Z,{className:"registered-box",children:[(0,o.jsx)(i.Z,{sx:{fontSize:"16px",fontWeight:400},children:"Register status:"}),(0,o.jsxs)(i.Z,{className:"reg-badge-box",children:[(0,o.jsx)(r.SA,{}),(0,o.jsx)(i.Z,{sx:{fontWeight:600},children:"Registered"})]})]}),(0,o.jsxs)(i.Z,{className:"registered-acc-box",sx:{alignItems:"center",justifyContent:"flex-start",display:{sm:"flex",xs:"none"}},children:[(0,o.jsx)(i.Z,{sx:{fontSize:"16px",fontWeight:400},children:"Registered to:"}),(0,o.jsx)(i.Z,{sx:{marginLeft:"8px",fontWeight:600},children:n})]})]})}},19847:function(e,t,n){"use strict";n.d(t,{x:function(){return l}});var i=n(1413),r=n(45987),o=n(72791),s=n(80184),a=["children","value","index"],l=function(e){var t=e.children,n=e.value,l=e.index,c=(0,r.Z)(e,a);return(0,s.jsx)("div",(0,i.Z)((0,i.Z)({role:"tabpanel",hidden:n!==l,id:"simple-tabpanel-".concat(l),"aria-labelledby":"simple-tab-".concat(l),style:{marginTop:"5px"}},c),{},{children:n===l&&(0,s.jsx)(o.Fragment,{children:t})}))}},30403:function(e,t,n){"use strict";var i=n(64836);t.Z=void 0;var r=i(n(45649)),o=n(80184),s=(0,r.default)((0,o.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9V6zm9 14H6V10h12v10zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"}),"LockOutlined");t.Z=s},3579:function(e,t,n){"use strict";var i=n(64836);t.Z=void 0;var r=i(n(45649)),o=n(80184),s=(0,r.default)((0,o.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"RemoveRedEye");t.Z=s},20165:function(e,t,n){"use strict";var i=n(64836);t.Z=void 0;var r=i(n(45649)),o=n(80184),s=(0,r.default)((0,o.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff");t.Z=s},76998:function(e,t,n){"use strict";var i=n(42458),r={"text/plain":"Text","text/html":"Url",default:"Text"},o="Copy to clipboard: #{key}, Enter";e.exports=function(e,t){var n,s,a,l,c,u,d=!1;t||(t={}),n=t.debug||!1;try{if(a=i(),l=document.createRange(),c=document.getSelection(),(u=document.createElement("span")).textContent=e,u.ariaHidden="true",u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",(function(i){if(i.stopPropagation(),t.format)if(i.preventDefault(),"undefined"===typeof i.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=r[t.format]||r.default;window.clipboardData.setData(o,e)}else i.clipboardData.clearData(),i.clipboardData.setData(t.format,e);t.onCopy&&(i.preventDefault(),t.onCopy(i.clipboardData))})),document.body.appendChild(u),l.selectNodeContents(u),c.addRange(l),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");d=!0}catch(p){n&&console.error("unable to copy using execCommand: ",p),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),d=!0}catch(p){n&&console.error("unable to copy using clipboardData: ",p),n&&console.error("falling back to prompt"),s=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:o),window.prompt(s,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(l):c.removeAllRanges()),u&&document.body.removeChild(u),a()}return d}},568:function(e,t,n){"use strict";function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var r=a(n(72791)),o=a(n(76998)),s=["text","onCopy","options","children"];function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function d(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function x(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===i(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return f(e)}(this,n)}}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(l,e);var t,n,i,a=x(l);function l(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return g(f(e=a.call.apply(a,[this].concat(n))),"onClick",(function(t){var n=e.props,i=n.text,s=n.onCopy,a=n.children,l=n.options,c=r.default.Children.only(a),u=(0,o.default)(i,l);s&&s(i,u),c&&c.props&&"function"===typeof c.props.onClick&&c.props.onClick(t)})),e}return t=l,(n=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),n=u(e,s),i=r.default.Children.only(t);return r.default.cloneElement(i,c(c({},n),{},{onClick:this.onClick}))}}])&&d(t.prototype,n),i&&d(t,i),Object.defineProperty(t,"prototype",{writable:!1}),l}(r.default.PureComponent);t.CopyToClipboard=m,g(m,"defaultProps",{onCopy:void 0,options:void 0})},78029:function(e,t,n){"use strict";var i=n(568).CopyToClipboard;i.CopyToClipboard=i,e.exports=i},42458:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],i=0;i<e.rangeCount;i++)n.push(e.getRangeAt(i));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}}}]);
//# sourceMappingURL=1516.d1e7e873.chunk.js.map