mirror of
https://github.com/OpenMaxIO/openmaxio-object-browser
synced 2026-07-01 07:41:18 -07:00
2 lines
838 KiB
JavaScript
2 lines
838 KiB
JavaScript
(this["webpackJsonpportal-ui"]=this["webpackJsonpportal-ui"]||[]).push([[0],{431:function(e,t){},599:function(e,t,a){},600:function(e,t,a){"use strict";a.r(t);var n=a(1),c=a.n(n),i=a(55),r=a.n(i),o=a(6),s=a(54),l=a(70),d={},u="";if("".concat(window.location.pathname).startsWith("/api/proxy/")){var b="".concat(window.location.pathname).split("/").slice(0,5);d.basename=b.join("/"),u="".concat(b.join("/"),"/")}var j,h=Object(l.a)(d),m=a(3),p=a(2),O=a(730),g=a(731),x=a(385),f=a(677),v=a(702),y=a(723),S=a(729),C=a(713),k=a(718),w=a(226);!function(e){e.unknown="unknown",e.form="form",e.redirect="redirect",e.serviceAccount="service-account"}(j||(j={}));var T="USER_LOGGED",N="OPERATOR_MODE",E="MENU_OPEN",A="SERVER_NEEDS_RESTART",_="SERVER_IS_LOADING",I="SET_LOADING_PROGRESS",M="SET_SNACK_BAR_MESSAGE",z="SET_SERVER_DIAG_STAT",D="SET_ERROR_SNACK_MESSAGE",L="SET_SNACK_MODAL_MESSAGE",F="SET_MODAL_ERROR_MESSAGE",R="GLOBAL/SET_DISTRIBUTED_SETUP",P="s3:GetBucketPolicy",B="s3:PutBucketPolicy",U="s3:DeleteObject",G="s3:GetObjectRetention",K="s3:PutObjectRetention",W="s3:GetBucketNotification",V="s3:PutBucketNotification",H="s3:GetReplicationConfiguration",q="s3:PutReplicationConfiguration",Y="s3:GetLifecycleConfiguration",Q="s3:PutLifecycleConfiguration",Z="admin:GetPolicy",J="admin:ListUsers",$="admin:ListUserPolicies";function X(e){return{type:T,logged:e}}function ee(e){return{type:E,open:e}}function te(e){return{type:A,needsRestart:e}}var ae,ne=function(e){return{type:M,message:e}},ce=function(e){return{type:D,message:e}},ie=function(e){return{type:L,message:e}},re=function(e){return{type:F,message:e}},oe=a(143),se=a(144),le=a(316),de=a.n(le),ue=a(11),be=a.n(ue),je=a(198),he=a.n(je),me=1073741824,pe=2147483648,Oe=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],ge=["Ki","Mi","Gi","Ti","Pi","Ei"],xe=["B"].concat(ge),fe=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=parseInt(e,10)||0;return ve(a,t)},ve=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=0;e>=1024&&++a;)e/=1024;var n=["B"].concat(ge);return e.toFixed(e<10&&a>0?1:0)+" "+(t?n[a]:Oe[a])},ye=function(){var e;he.a.removeItem("token"),e="token",document.cookie=e+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT;"},Se=function(e){var t=e.getHours()<10?"0".concat(e.getHours()):"".concat(e.getHours()),a=e.getMinutes()<10?"0".concat(e.getMinutes()):"".concat(e.getMinutes()),n=e.getSeconds()<10?"0".concat(e.getSeconds()):"".concat(e.getSeconds());return"".concat(t,":").concat(a,":").concat(n,":").concat(e.getMilliseconds())},Ce=function(){return Oe.map((function(e){return{label:e,value:e}}))},ke=function(){return ge.map((function(e){return{label:e,value:e}}))},we=function(e,t){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=parseFloat(e),c=a?xe:Oe,i=c.findIndex((function(e){return e===t}));if(-1===i)return"0";var r=Math.pow(1024,i),o=n*r;return o.toString(10)},Te=function(e,t,a){var n=we(e.toString(10),"Gi",!0),c=parseInt(n,10);if(0===a)return{error:"There is no memory available for the selected number of nodes",request:0,limit:0};if(a<pe)return{error:"There are not enough memory resources available",request:0,limit:0};if(c<pe)return{error:"The requested memory size must be greater than 2Gi",request:0,limit:0};if(c>a)return{error:"The requested memory is greater than the max available memory for the selected number of nodes",request:0,limit:0};var i=parseInt(t,10),r=c;return i>=parseInt(we("1","Pi",!0),10)?r=Math.max(c,parseInt(we("64","Gi",!0),10)):i>=parseInt(we("100","Ti"),10)?r=Math.max(c,parseInt(we("32","Gi",!0),10)):i>=parseInt(we("10","Ti"),10)?r=Math.max(c,parseInt(we("16","Gi",!0),10)):i>=parseInt(we("1","Ti"),10)&&(r=Math.max(c,parseInt(we("8","Gi",!0),10))),{error:"",request:c,limit:r}},Ne=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,c=we(e.value,e.unit,!0);return parseInt(c,10)<me?{error:"The pool size must be greater than 1Gi",nodes:0,persistentVolumes:0,disks:0,pvSize:0}:n<=0?{error:"Number of drives must be at least 1",nodes:0,persistentVolumes:0,disks:0,pvSize:0}:Ee(c,t,a,n)},Ee=function(e,t,a,n){var c=parseInt(e,10);return Ae(t,c,274877906944,a,n)},Ae=function(e,t,a,n){var c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(isNaN(e)||isNaN(t)||isNaN(a)||isNaN(n))return{error:"Some provided data is invalid, please try again.",nodes:0,persistentVolumes:0,disks:0,volumePerDisk:0};var i=0,r=0,o=0;if(0===c&&(o=(r=t/(i=Math.floor(Math.min(t/Math.max(4,e),a))))/e),c&&(r=(o=c)*e,i=Math.floor(t/r)),o%1>0){r=(o=Math.ceil(o))*e;var s=(i=Math.floor(t/r))*o*e;if(s>n)return{error:"We were not able to allocate this server.",nodes:0,persistentVolumes:0,disks:0,volumePerDisk:0}}return i<me?{error:"Disk Size with this combination would be less than 1Gi, please try another combination",nodes:0,persistentVolumes:0,disks:0,volumePerDisk:0}:{error:"",nodes:e,persistentVolumes:r,disks:o,pvSize:i}},_e=function(e,t,a,n){if(e.length<1)return{error:1,defaultEC:"",erasureCodeSet:0,maxEC:"",rawCapacity:"0",storageFactors:[]};var c=t*a,i=e[0],r=2*parseInt(i.split(":")[1],10),o=e.map((function(e){var a=parseInt(e.split(":")[1],10),n=r/(r-a),i=Math.floor(c/n),o=t-Math.floor(t/n);return{erasureCode:e,storageFactor:n,maxCapacity:i.toString(10),maxFailureTolerations:o}})),s=i,l=e.find((function(e){return"EC:4"===e}));return t>=8&&n>16&&l&&(s="EC:4"),{error:0,storageFactors:o,maxEC:i,rawCapacity:c.toString(10),erasureCodeSet:r,defaultEC:s}},Ie=function(e){var t=e.length;return"pool-".concat(t)},Me=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"s",a=parseFloat(e);return ze(a,t)},ze=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"s";switch(t){case"ns":e=Math.floor(1e-9*e);break;case"ms":e=Math.floor(.001*e)}var a=Math.floor(e/86400);e-=3600*a*24;var n=Math.floor(e/3600);e-=3600*n;var c=Math.floor(e/60);if(e-=60*c,a>365){var i=a/365;return"".concat(i," year").concat(1===Math.floor(i)?"":"s")}if(a>30){var r=Math.floor(a/30),o=a-30*r;return"".concat(r," month").concat(1===Math.floor(r)?"":"s"," ").concat(o>0?"".concat(o," day").concat(o>1?"s":""):"")}if(a>=7&&a<=30){var s=Math.floor(a/7);return"".concat(Math.floor(s)," week").concat(1===s?"":"s")}return a>=1&&a<=6?"".concat(a," day").concat(a>1?"s":""):"".concat(n>=1?"".concat(n," hour").concat(n>1?"s":""):""," ").concat(c>=1&&0===n?"".concat(c," minute").concat(c>1?"s":""):""," ").concat(e>=1&&0===c&&0===n?"".concat(e," second").concat(e>1?"s":""):"")},De=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=new Date(1e3*parseInt(e));return t?"".concat(a.getFullYear(),"-").concat(String(a.getMonth()+1).padStart(2,"0"),"-").concat(String(a.getDay()).padStart(2,"0")," ").concat(a.getHours(),":").concat(String(a.getMinutes()).padStart(2,"0"),":").concat(String(a.getSeconds()).padStart(2,"0")):"".concat(a.getHours(),":").concat(String(a.getMinutes()).padStart(2,"0"))},Le=function(e){var t=1e-9*e,a=Math.round(1e4*(t+Number.EPSILON))/1e4;return"".concat(a," s")},Fe=function(e){var t=(100*e.split("").reduce((function(e,t){return e+t.charCodeAt(0)+((e<<5)-e)}),0)&16777215).toString(16).toUpperCase();return"#".concat(t.padStart(6,"0"))},Re=function(e){return void 0===e?0:e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")},Pe=function(e){if(void 0===e)return"0";var t=e.toString(),a="";return e>999&&e<1e6?(t=(e/1e3).toFixed(1),a="K"):e>=1e6&&e<1e9?(t=(e/1e6).toFixed(1),a="M"):e>=1e9&&(t=(e/1e9).toFixed(1),a="B"),t.endsWith(".0")&&(t=t.slice(0,-2)),"".concat(t).concat(a)},Be=function(e){try{return btoa(unescape(encodeURIComponent(e)))}catch(t){return""}},Ue=function(e){try{return decodeURIComponent(escape(window.atob(e)))}catch(t){return e}},Ge=new(function(){function e(){Object(oe.a)(this,e)}return Object(se.a)(e,[{key:"invoke",value:function(e,t,a){var n=this,c="".concat(u).concat(t).replace(/\/\//g,"/");return de()(e,c).send(a).then((function(e){return e.body})).catch((function(e){return 401===e.status?(ye(),void(window.location.href="/login")):n.onError(e)}))}},{key:"onError",value:function(e){if(e.status){var t=be()(e.response,"body.message","Error ".concat(e.status.toString())),a=be()(e.response,"body.detailedMessage","");t===a&&(a="");var n={errorMessage:t.charAt(0).toUpperCase()+t.slice(1),detailedError:a.charAt(0).toUpperCase()+a.slice(1)};return Promise.reject(n)}ye(),window.location.href="/login"}}]),e}()),Ke=a(384),We=a(0),Ve=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18.157 21.107",children:Object(We.jsx)("path",{d:"M0 12.028a9.086 9.086 0 018.968-9.073l-1.071-1.07A1.1 1.1 0 019.449.333l3.11 3.11a1.1 1.1 0 010 1.565l-3.11 3.11a1.1 1.1 0 01-1.552-1.552l1.161-1.161a6.632 6.632 0 00-6.6 6.624 6.633 6.633 0 006.625 6.625 6.633 6.633 0 006.625-6.625 1.227 1.227 0 011.227-1.227 1.227 1.227 0 011.227 1.227 9.089 9.089 0 01-9.079 9.079A9.089 9.089 0 010 12.028z"})})}))},He=a(201),qe=a.n(He),Ye=a(146),Qe=a.n(Ye),Ze=a(145),Je=a.n(Ze),$e=function(e){ae=setInterval(e,1e4)},Xe=function(){clearInterval(ae)},et={displayErrorMessage:ce},tt=Object(o.b)((function(e){return{snackBar:e.system.snackBar}}),et)(Object(y.a)((function(e){return Object(f.a)({mainErrorContainer:{position:"fixed",width:"100%",backgroundColor:"#fff",border:"#C72C48 1px solid",borderLeftWidth:12,borderRadius:3,zIndex:1e3,padding:"10px 15px",maxWidth:600,left:"50%",transform:"translateX(-50%)",marginTop:15,opacity:0,transitionDuration:"0.2s"},mainErrorShow:{opacity:1},closeButton:{position:"absolute",right:5,fontSize:"small",border:0,backgroundColor:"#fff",cursor:"pointer"},errorTitle:{display:"flex",alignItems:"center"},errorLabel:{color:"#000",fontSize:18,fontWeight:500,marginLeft:5},messageIcon:{color:"#C72C48",display:"flex","& svg":{width:32,height:32}},simpleError:{marginTop:5,padding:"2px 5px",fontSize:16,color:"#000"},detailsButton:{color:"#9C9C9C",display:"flex",alignItems:"center",border:0,backgroundColor:"transparent",paddingLeft:5,fontSize:14,transformDuration:"0.3s",cursor:"pointer"},extraDetailsContainer:{fontStyle:"italic",color:"#9C9C9C",lineHeight:0,padding:"0 10px",transition:"all .2s ease-in-out",overflow:"hidden"},extraDetailsOpen:{lineHeight:1,padding:"3px 10px"},arrowElement:{marginLeft:-5},arrowOpen:{transform:"rotateZ(90deg)",transformDuration:"0.3s"}})}))((function(e){var t=e.classes,a=e.snackBar,c=e.displayErrorMessage,i=e.customStyle,r=Object(n.useState)(!1),o=Object(m.a)(r,2),s=o[0],l=o[1],d=Object(n.useState)(!1),u=Object(m.a)(d,2),b=u[0],j=u[1],h=Object(n.useCallback)((function(){j(!1)}),[]);Object(n.useEffect)((function(){b||(c({detailedError:"",errorMessage:""}),l(!1),clearInterval(ae))}),[c,b]),Object(n.useEffect)((function(){""!==a.message&&"error"===a.type&&(j(!0),$e(h))}),[h,a.message,a.type]);var p=be()(a,"message",""),O=be()(a,"detailedErrorMsg","");return"error"!==a.type||""===p?null:Object(We.jsx)(n.Fragment,{children:Object(We.jsxs)("div",{className:"".concat(t.mainErrorContainer," ").concat(b?t.mainErrorShow:""),style:i,onMouseOver:Xe,onMouseLeave:function(){return $e(h)},children:[Object(We.jsx)("button",{className:t.closeButton,onClick:h,children:Object(We.jsx)(Je.a,{})}),Object(We.jsxs)("div",{className:t.errorTitle,children:[Object(We.jsx)("span",{className:t.messageIcon,children:Object(We.jsx)(Qe.a,{})}),Object(We.jsx)("span",{className:t.errorLabel,children:"Error"})]}),Object(We.jsx)("div",{className:t.simpleError,children:p}),""!==O&&Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)("div",{className:t.detailsContainerLink,children:Object(We.jsxs)("button",{className:t.detailsButton,onClick:function(){l(!s)},children:["Details",Object(We.jsx)(qe.a,{className:"".concat(t.arrowElement," ").concat(s?t.arrowOpen:"")})]})}),Object(We.jsx)("div",{className:"".concat(t.extraDetailsContainer," ").concat(s?t.extraDetailsOpen:""),children:O})]})]})})}))),at=Object(v.a)((function(e){return Object(f.a)({disabled:{"&.MuiInput-underline::before":{borderColor:"#eaeaea",borderBottomStyle:"solid"}}})}));function nt(e){var t=at();return Object(We.jsx)(C.a,Object(p.a)({InputProps:{classes:t},variant:"standard"},e))}var ct=Object(o.b)((function(e){return{loggedIn:e.loggedIn}}),{userLoggedIn:X,setErrorSnackMessage:ce})(Object(y.a)((function(e){return Object(f.a)({"@global":{body:{backgroundColor:"#FAFAFA"}},paper:{borderRadius:8,display:"flex",flexDirection:"column",alignItems:"center",width:800,height:424,margin:"auto",position:"absolute",top:"50%",left:"50%",marginLeft:-400,marginTop:-212,"&.MuiPaper-root":{borderRadius:8}},avatar:{margin:e.spacing(1),backgroundColor:e.palette.secondary.main},form:{width:"100%"},submit:{margin:"30px 0px 16px",height:40,boxShadow:"none",padding:"16px 30px"},errorBlock:{backgroundColor:"#C72C48",width:800,height:64,display:"flex",justifyContent:"center",alignItems:"center",position:"absolute",left:"50%",top:"50%",marginLeft:-400,marginTop:-290,color:"#fff",fontWeight:700,fontSize:14,borderRadius:8,padding:10,boxSizing:"border-box"},mainContainer:{position:"relative",height:424},theOcean:{borderTopLeftRadius:8,borderBottomLeftRadius:8,background:"transparent linear-gradient(to bottom, #073052 0%,#05122b 100%); 0% 0% no-repeat padding-box;"},oceanBg:{backgroundImage:"url(/images/BG_Illustration.svg)",backgroundRepeat:"no-repeat",backgroundPosition:"bottom left",height:"100%",width:324},theLogin:{padding:"40px 45px 20px 45px"},loadingLoginStrategy:{textAlign:"center"},headerTitle:{marginBottom:10},submitContainer:{textAlign:"right"},disclaimer:{fontSize:12,marginTop:30},jwtInput:{marginTop:45},linearPredef:{height:10},errorIconStyle:{marginRight:3},loaderAlignment:{display:"flex",width:"100%",height:"100%",justifyContent:"center",alignItems:"center",flexDirection:"column"},retryButton:{alignSelf:"flex-end"}})}))((function(e){var t=e.classes,a=e.userLoggedIn,i=e.setErrorSnackMessage,r=Object(n.useState)(""),o=Object(m.a)(r,2),s=o[0],l=o[1],d=Object(n.useState)(""),u=Object(m.a)(d,2),b=u[0],p=u[1],f=Object(n.useState)(""),v=Object(m.a)(f,2),y=v[0],C=v[1],T=Object(n.useState)({loginStrategy:j.unknown,redirect:""}),N=Object(m.a)(T,2),E=N[0],A=N[1],_=Object(n.useState)(!1),I=Object(m.a)(_,2),M=I[0],z=I[1],D=Object(n.useState)(!0),L=Object(m.a)(D,2),F=L[0],R=L[1],P={form:"/api/v1/login","service-account":"/api/v1/login/operator"},B={form:{accessKey:s,secretKey:y},"service-account":{jwt:b}},U=function(e){e.preventDefault(),z(!0),Ge.invoke("POST",P[E.loginStrategy]||"/api/v1/login",B[E.loginStrategy]).then((function(){a(!0),E.loginStrategy===j.form&&localStorage.setItem("userLoggedIn",Be(s)),h.push("/")})).catch((function(e){z(!1),i(e)}))};Object(n.useEffect)((function(){F&&Ge.invoke("GET","/api/v1/login").then((function(e){A(e),R(!1)})).catch((function(e){i(e),R(!1)}))}),[F,i]);var G=null;switch(E.loginStrategy){case j.form:G=Object(We.jsxs)(c.a.Fragment,{children:[Object(We.jsx)(w.a,{component:"h1",variant:"h6",className:t.headerTitle,children:"Console Login"}),Object(We.jsxs)("form",{className:t.form,noValidate:!0,onSubmit:U,children:[Object(We.jsxs)(k.a,{container:!0,spacing:2,children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(nt,{fullWidth:!0,id:"accessKey",value:s,onChange:function(e){return l(e.target.value)},label:"Enter Username",name:"accessKey",autoComplete:"username",disabled:M})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(nt,{fullWidth:!0,value:y,onChange:function(e){return C(e.target.value)},name:"secretKey",label:"Enter Password",type:"password",id:"secretKey",autoComplete:"current-password",disabled:M})})]}),Object(We.jsx)(k.a,{item:!0,xs:12,className:t.submitContainer,children:Object(We.jsx)(S.a,{type:"submit",variant:"contained",color:"primary",className:t.submit,disabled:""===y||""===s||M,children:"Login"})}),Object(We.jsx)(k.a,{item:!0,xs:12,className:t.linearPredef,children:M&&Object(We.jsx)(O.a,{})})]})]});break;case j.redirect:G=Object(We.jsxs)(c.a.Fragment,{children:[Object(We.jsx)(w.a,{component:"h1",variant:"h6",className:t.headerTitle,children:"Welcome"}),Object(We.jsx)(S.a,{component:"a",href:E.redirect,type:"submit",variant:"contained",color:"primary",className:t.submit,children:"Login with SSO"})]});break;case j.serviceAccount:G=Object(We.jsxs)(c.a.Fragment,{children:[Object(We.jsx)(w.a,{component:"h1",variant:"h6",className:t.headerTitle,children:"Operator Login"}),Object(We.jsxs)("form",{className:t.form,noValidate:!0,onSubmit:U,children:[Object(We.jsx)(k.a,{container:!0,spacing:2,children:Object(We.jsx)(k.a,{item:!0,xs:12,className:t.jwtInput,children:Object(We.jsx)(nt,{required:!0,fullWidth:!0,id:"jwt",value:b,onChange:function(e){return p(e.target.value)},label:"JWT",name:"jwt",autoComplete:"off",disabled:M})})}),Object(We.jsx)(k.a,{item:!0,xs:12,className:t.submitContainer,children:Object(We.jsx)(S.a,{type:"submit",variant:"contained",color:"primary",className:t.submit,disabled:""===b||M,children:"Login"})}),Object(We.jsx)(k.a,{item:!0,xs:12,className:t.linearPredef,children:M&&Object(We.jsx)(O.a,{})})]})]});break;default:G=Object(We.jsx)("div",{className:t.loaderAlignment,children:F?Object(We.jsx)(g.a,{className:t.loadingLoginStrategy}):Object(We.jsxs)(c.a.Fragment,{children:[Object(We.jsx)("div",{children:Object(We.jsx)("p",{children:"An error has occurred, the backend cannot be reached."})}),Object(We.jsx)("div",{children:Object(We.jsx)(S.a,{onClick:function(){R(!0)},startIcon:Object(We.jsx)(Ve,{}),color:"primary",className:t.retryButton,children:"Retry"})})]})})}return Object(We.jsx)(c.a.Fragment,{children:Object(We.jsxs)(x.a,{className:t.paper,children:[Object(We.jsx)(tt,{customStyle:{marginTop:-140}}),Object(We.jsxs)(k.a,{container:!0,className:t.mainContainer,children:[Object(We.jsx)(k.a,{item:!0,xs:7,className:t.theOcean,children:Object(We.jsx)("div",{className:t.oceanBg})}),Object(We.jsx)(k.a,{item:!0,xs:5,className:t.theLogin,children:G})]})]})})}))),it=a(5),rt=a(683),ot=a(710),st={fontWeight:600,marginRight:10,fontSize:14,color:"#07193E",textAlign:"left",overflow:"hidden","& span":{display:"flex",alignItems:"center"},display:"flex"},lt={inputLabel:Object(p.a)(Object(p.a)({},st),{},{minWidth:160}),noMinWidthLabel:Object(p.a)({},st),fieldLabelError:{paddingBottom:22},fieldContainer:{marginBottom:20,position:"relative",display:"flex"},tooltipContainer:{marginLeft:5,display:"flex",alignItems:"center"},switchContainer:{display:"flex",maxWidth:840}},dt={formScrollable:{maxHeight:"calc(100vh - 300px)",overflowY:"auto",marginBottom:25},formSlider:{marginLeft:0},clearButton:{fontFamily:"Lato, sans-serif",border:"0",backgroundColor:"transparent",color:"#393939",fontWeight:600,fontSize:14,marginRight:10,outline:"0",padding:"16px 25px 16px 25px",cursor:"pointer"},floatingEnabled:{position:"absolute",right:58,zIndex:1e3,marginTop:-38},configureString:{border:"#EAEAEA 1px solid",borderRadius:4,padding:"24px 50px",overflowY:"auto",height:170,backgroundColor:"#FBFAFA"},moduleDescription:{color:"#848484",fontSize:12,fontStyle:"italic"}},ut={tooltip:{fontSize:16}},bt={width:14,height:14,borderRadius:2},jt={unCheckedIcon:Object(p.a)(Object(p.a)({},bt),{},{border:"1px solid #c3c3c3"}),checkedIcon:Object(p.a)(Object(p.a)({},bt),{},{border:"1px solid #081C42",backgroundColor:"#081C42"})},ht={width:16,height:16,borderRadius:"100%","input:disabled ~ &":{border:"1px solid #E5E5E5"},padding:1},mt={radioUnselectedIcon:Object(p.a)(Object(p.a)({},ht),{},{border:"2px solid #E5E5E5"}),radioSelectedIcon:Object(p.a)(Object(p.a)({},ht),{},{border:"2px solid #E5E5E5",backgroundColor:"#072C4F"})},pt={filterTitle:{color:"#848484",fontSize:13,alignSelf:"center",whiteSpace:"nowrap","&:not(:first-of-type)":{marginLeft:10}},label:{color:"#07193E",fontSize:13,alignSelf:"center",whiteSpace:"nowrap","&:not(:first-of-type)":{marginLeft:10}},timeContainers:{display:"flex","& button":{flexGrow:0,marginLeft:15},height:40,maxWidth:1185,marginBottom:15,justifyContent:"flex-start","& > *":{marginRight:15}},actionsTray:{display:"flex",justifyContent:"space-between","& button":{flexGrow:0,marginLeft:15}},filterContainer:{backgroundColor:"#fff",border:"#EEF1F4 2px solid",borderRadius:2,display:"flex",alignItems:"center",padding:"0 12px"},divisorLine:{borderRight:"#EEF1F4 1px solid",height:20,margin:"0 15px"}},Ot={searchField:{flexGrow:1,height:40,background:"#FFFFFF",borderRadius:5,border:"#EAEDEE 1px solid",display:"flex",justifyContent:"center",padding:"0 16px","& label, & label.MuiInputLabel-shrink":{fontSize:10,transform:"translate(5px, 2px)",transformOrigin:"top left"},"& input":{fontSize:12,fontWeight:700,color:"#000","&::placeholder":{color:"#393939",opacity:1}},"&:hover":{borderColor:"#000"},"& .MuiSvgIcon-root":{width:16,height:16}}},gt={prefinedContainer:{display:"flex",width:"100%",alignItems:"center",margin:"15px 0 0"},predefinedTitle:{color:"#07193E",display:"flex",overflow:"hidden",fontSize:14,maxWidth:160,textAlign:"left",fontWeight:600,marginRight:10,flexGrow:0},predefinedList:{backgroundColor:"#fbfafa",border:"#e5e5e5 1px solid",padding:"12px 10px",color:"#696969",fontSize:12,fontWeight:600,minHeight:41,borderRadius:4},innerContent:{width:"100%",overflowX:"auto",whiteSpace:"nowrap",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},innerContentMultiline:{width:"100%",maxHeight:100,overflowY:"auto",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},xt={obTitleSection:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:20},sectionTitle:{fontSize:22,color:"#000",fontWeight:600,height:40,lineHeight:"40px"},breadcrumbs:{fontSize:10,color:"#000",marginTop:2,"& a":{textDecoration:"none",color:"#000","&:hover":{textDecoration:"underline"}}},smallLabel:{color:"#9C9C9C",fontSize:15}},ft={multiSelectTable:{height:200}},vt={customTitle:{fontSize:18,color:"#000",fontWeight:600,padding:"12px 0",borderBottom:"#eaedee 1px solid",marginBottom:10,margin:"15px 38px 27px"},settingsFormContainer:{height:"calc(100vh - 421px)",padding:"15px 38px",overflowY:"auto",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},settingsButtonContainer:{borderTop:"1px solid #EAEAEA",padding:"15px 38px",textAlign:"right"},innerSettingsButtonContainer:{maxWidth:840,textAlign:"right"},settingsOptionsContainer:{height:"calc(100vh - 244px)",backgroundColor:"#fff",border:"#EAEDEE 1px solid",borderRadius:3,marginTop:15},backButton:{cursor:"pointer",fontSize:10,fontWeight:600,color:"#000",backgroundColor:"transparent",border:0,padding:0,display:"flex",alignItems:"center","&:active, &:focus":{outline:0},"& svg":{width:10,marginRight:4}},backContainer:{margin:"20px 38px 0"},mainCont:{paddingLeft:50,paddingRight:50},mainTitle:{fontSize:18,color:"#000",fontWeight:600,marginBottom:10,marginTop:10}},yt={iconContainer:{display:"flex",flexDirection:"row",maxWidth:1180,justifyContent:"start",flexWrap:"wrap",width:"100%"},nonIconContainer:{marginBottom:16,width:455,marginTop:15,"& button":{marginRight:16}},pickTitle:{fontWeight:600,color:"#393939",fontSize:14,marginBottom:16},centerElements:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},logoButton:{height:"80px"},lambdaNotif:{background:"linear-gradient(90deg, rgba(249,249,250,1) 0%, rgba(250,250,251,1) 68%, rgba(254,254,254,1) 100%)",border:"#E5E5E5 1px solid",borderRadius:5,width:250,height:80,display:"flex",alignItems:"center",justifyContent:"start",marginBottom:16,marginRight:8,cursor:"pointer",padding:0,overflow:"hidden"},lambdaNotifIcon:{backgroundColor:"#FEFEFE",display:"flex",alignItems:"center",justifyContent:"center",width:80,height:80,"& img":{maxWidth:46,maxHeight:46}},lambdaNotifTitle:{color:"#07193E",fontSize:16,fontFamily:"Lato,sans-serif",paddingLeft:18}},St={logsSubContainer:{height:"calc(100vh - 230px)",padding:"15px 0"}},Ct={singleValueContainer:{height:200,maxWidth:1185,border:"#eef1f4 2px solid",backgroundColor:"#fff",borderRadius:10,width:"100%",padding:16},titleContainer:{color:"#404143",fontSize:14,textTransform:"uppercase",fontWeight:800,borderBottom:"#eef1f4 1px solid",paddingBottom:14,marginBottom:5,display:"flex",justifyContent:"space-between"},contentContainer:{justifyContent:"center",alignItems:"center",display:"flex",width:"100%",height:140},contentContainerWithLabel:{height:"calc(100% - 25px)"},legendBlock:{position:"absolute",bottom:5,display:"flex",width:"100%",height:15,flexWrap:"wrap",overflowY:"auto"},singleLegendContainer:{display:"flex",alignItems:"center",padding:"0 10px",maxWidth:"100%"},colorContainer:{width:8,height:8,minWidth:8,marginRight:5},legendLabel:{fontSize:"80%",color:"#393939",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},zoomChartCont:{position:"relative",height:340,width:"100%"},zoomChartIcon:{backgroundColor:"transparent",border:0,padding:0,cursor:"pointer","& svg":{color:"#D0D0D0",height:16},"&:hover":{"& svg":{color:"#404143"}}}},kt={widgetPanelDelimiter:{padding:10},dashboardRow:{display:"flex",flexDirection:"row",justifyContent:"flex-start",flexWrap:"wrap",maxWidth:1180}},wt={customTooltip:{backgroundColor:"rgba(255, 255, 255, 0.90)",border:"#eaeaea 1px solid",borderRadius:3,padding:"5px 10px",maxHeight:300,overflowY:"auto"},labelContainer:{display:"flex",alignItems:"center"},labelColor:{width:6,height:6,display:"block",borderRadius:"100%",marginRight:5},itemValue:{fontSize:"75%",color:"#393939"},valueContainer:{fontWeight:600},timeStampTitle:{fontSize:"80%",color:"#9c9c9c",textAlign:"center",marginBottom:6}},Tt={snackBar:{backgroundColor:"#081F44",fontWeight:400,fontFamily:"Lato, sans-serif",fontSize:14,padding:"0px 20px 0px 20px;",boxShadow:"none","&.MuiPaper-root.MuiSnackbarContent-root":{borderRadius:"0px 0px 5px 5px"},"& div":{textAlign:"center",padding:"6px 30px",width:"100%",overflowX:"hidden",textOverflow:"ellipsis"}},errorSnackBar:{backgroundColor:"#C72C48",color:"#fff"},snackBarExternal:{top:"-17px",position:"absolute",minWidth:"348px",whiteSpace:"nowrap",height:"33px"},snackDiv:{top:"17px",left:"50%",position:"absolute"},snackBarModal:{top:0,position:"absolute",minWidth:"348px",whiteSpace:"nowrap",height:"33px",maxWidth:"calc(100% - 140px)"}},Nt={multiContainer:{display:"flex",alignItems:"center",justifyContent:"flex-start"},sizeFactorContainer:{marginLeft:8,alignSelf:"flex-start"},headerElement:{position:"sticky",top:0,paddingTop:5,marginBottom:10,zIndex:500,backgroundColor:"#fff"},tableTitle:{fontWeight:700,width:"30%"},poolError:{color:"#dc1f2e",fontSize:"0.75rem",paddingLeft:120},error:{color:"#dc1f2e",fontSize:"0.75rem"},h3Section:{marginTop:0},descriptionText:{fontSize:13,color:"#777777"},container:{padding:"77px 0 0 0","& h6":{color:"#777777",fontSize:14},"& p":{"& span:not(*[class*='smallUnit'])":{fontSize:16}}},paperWrapper:{padding:12}},Et={anchorButton:{textDecoration:"underline",textTransform:"unset",fontWeight:"normal",padding:0,lineHeight:"unset",height:"unset",width:"unset",textAlign:"left",border:0,minWidth:"unset"}},At={hrClass:{borderTop:0,borderLeft:0,borderRight:0,borderColor:"#999999",backgroundColor:"transparent"}},_t=Object(p.a)(Object(p.a)(Object(p.a)(Object(p.a)(Object(p.a)(Object(p.a)({buttonContainer:{textAlign:"right"},multiContainer:{display:"flex",alignItems:"center",justifyContent:"flex-start"},sizeFactorContainer:{marginLeft:8},containerHeader:{display:"flex",justifyContent:"space-between"},paperContainer:{padding:"15px 15px 15px 50px"},infoGrid:{display:"grid",gridTemplateColumns:"auto auto auto auto",gridGap:8,"& div":{display:"flex",alignItems:"center"},"& div:nth-child(odd)":{justifyContent:"flex-end",fontWeight:700},"& div:nth-child(2n)":{paddingRight:35}},masterActions:{width:"25%",minWidth:"120px","& div":{margin:"5px 0px"}},updateButton:{backgroundColor:"transparent",border:0,padding:"0 6px",cursor:"pointer","&:focus, &:active":{outline:"none"},"& svg":{height:12}},poolLabel:{color:"#666666"},titleCol:{fontWeight:700},breadcrumLink:{textDecoration:"none",color:"black"},healthCol:{fontWeight:700,paddingRight:"10px"}},dt),pt),Et),Ot),At),{},{actionsTray:Object(p.a)(Object(p.a)({},pt.actionsTray),{},{padding:"15px 0 0"})}),It={root:{borderRadius:3,"&::before":{borderColor:"#9c9c9c"},"& fieldset":{borderColor:"#e5e5e5"},"&:hover fieldset":{borderColor:"#07193E"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"#07193E",borderWidth:1}},disabled:{"&.MuiOutlinedInput-root::before":{borderColor:"#e5e5e5",borderBottomStyle:"solid",borderRadius:3}},input:{height:38,padding:"0 35px 0 15px",color:"#07193E",fontSize:13,fontWeight:600,"&:placeholder":{color:"#393939",opacity:1}},error:{color:"#b53b4b"}},Mt={inlineCheckboxes:{display:"flex",justifyContent:"flex-start"}},zt={marginRight:10,lineHeight:1,display:"inline-flex",marginTop:6},Dt={cardIconContainer:{display:"flex",position:"relative",alignItems:"center"},stateContainer:{display:"flex",flexWrap:"wrap",justifyContent:"flex-start"},infoValue:{fontWeight:500,color:"#07193E",fontSize:16,margin:"8px 40px 5px 0",display:"inline-flex","& strong":{marginRight:4},"& .MuiSvgIcon-root":{width:20,height:20},alignItems:"center"},redState:Object(p.a)({color:"#F55B5B"},zt),greenState:Object(p.a)({color:"#9FF281"},zt),yellowState:Object(p.a)({color:"#F7A25A"},zt),greyState:Object(p.a)({color:"grey"},zt),healthStatusIcon:{position:"absolute",fontSize:8,left:18,height:10,bottom:2,marginRight:10,"& .MuiSvgIcon-root":{width:5,height:5}},innerState:{fontSize:8,display:"flex",alignItems:"center",marginTop:-3,"& .MuiSvgIcon-root":{marginTop:5,width:10,height:10}},cardContainer:{borderRadius:10,boxShadow:"0 0 15px #00000029",maxWidth:1185,marginBottom:30},cardHeader:{"& .MuiCardHeader-title":{fontWeight:"bolder"}},cardNumber:{color:"#848484",fontSize:16,fontWeight:400,marginBottom:10},referenceTitle:{display:"flex",alignItems:"center",lineHeight:1,fontWeight:"bold","& .MuiSvgIcon-root":{width:10,height:10,marginTop:-5}}},Lt=function(e){return{link:{textDecoration:"underline",color:e,backgroundColor:"transparent",border:0,cursor:"pointer"}}},Ft=a(734),Rt=a(733),Pt=a(732);function Bt(){return Object(We.jsxs)(w.a,{variant:"body2",color:"textSecondary",align:"center",children:["Copyright \xa9 ",Object(We.jsx)(Pt.a,{color:"inherit",href:"https://min.io/",children:"MinIO"})," ",(new Date).getFullYear(),"."]})}var Ut=Object(v.a)((function(e){return{"@global":{body:{backgroundColor:e.palette.common.white}},paper:{marginTop:e.spacing(8),display:"flex",flexDirection:"column",alignItems:"center"}}})),Gt=function(){var e=Ut();return Object(We.jsxs)(Rt.a,{component:"main",children:[Object(We.jsx)(rt.a,{}),Object(We.jsx)("div",{className:e.paper,children:Object(We.jsx)(w.a,{variant:"h1",component:"h1",children:"404 Not Found"})}),Object(We.jsx)(Ft.a,{mt:5,children:Object(We.jsx)(Bt,{})})]})},Kt=a(21),Wt=a(746),Vt=a(325),Ht=a.n(Vt),qt=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",children:[Object(We.jsx)("defs",{children:Object(We.jsx)("clipPath",{id:"prefix__a",children:Object(We.jsx)("path",{d:"M0 0h256v256H0z"})})}),Object(We.jsx)("g",{clipPath:"url(#prefix__a)",children:Object(We.jsxs)("g",{transform:"translate(.001)",stroke:"#000",strokeWidth:.2,children:[Object(We.jsx)("path",{"data-name":"Trazado 396",d:"M241.464 0H14.521A14.453 14.453 0 00.001 14.342v52.113a14.453 14.453 0 0014.52 14.344h226.943A14.457 14.457 0 00256 66.455V14.342A14.457 14.457 0 00241.464 0zm.285 66.455a.283.283 0 01-.285.281L14.24 66.455l.281-52.393 227.229.279z"}),Object(We.jsx)("path",{"data-name":"Trazado 397",d:"M241.464 87.969H14.521a14.452 14.452 0 00-14.52 14.342v52.109a14.453 14.453 0 0014.52 14.346h226.943A14.456 14.456 0 00256 154.42v-52.109a14.456 14.456 0 00-14.536-14.342zm.285 66.451a.282.282 0 01-.285.281L14.24 154.42l.281-52.393 227.229.283z"}),Object(We.jsx)("path",{"data-name":"Trazado 398",d:"M241.464 175.934H14.521a14.461 14.461 0 00-14.52 14.352v52.109a14.454 14.454 0 0014.52 14.346h226.943A14.458 14.458 0 00256 242.395v-52.109a14.465 14.465 0 00-14.536-14.352zm.285 66.461a.279.279 0 01-.285.281l-227.224-.281.281-52.4 227.229.287z"}),Object(We.jsx)("rect",{"data-name":"Rect\\xE1ngulo 813",width:23.651,height:15.74,rx:.643,transform:"translate(20.301 22.054)"}),Object(We.jsx)("rect",{"data-name":"Rect\\xE1ngulo 814",width:23.651,height:15.741,rx:.643,transform:"translate(20.301 111.377)"}),Object(We.jsx)("rect",{"data-name":"Rect\\xE1ngulo 815",width:23.651,height:15.741,rx:.643,transform:"translate(20.301 200.594)"})]})})]})}))},Yt=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 255.999 243.852",children:[Object(We.jsx)("path",{"data-name":"Trazado 410",d:"M251.315 67.671L207.79 25.459c-14.279-13.851-35.342 7.862-21.063 21.716l12.959 12.567a156.689 156.689 0 00-82.95 23.182 156.774 156.774 0 00-71.051 97.677 15.547 15.547 0 0011.474 18.755 15.62 15.62 0 003.655.438 15.555 15.555 0 0015.1-11.909c14.6-60.586 70.74-100.461 130.9-96.758l-3.335 4.317-15.767 16.248c-13.849 14.285 7.867 35.345 21.719 21.063l42.214-43.518a15.131 15.131 0 00-.33-21.566z"}),Object(We.jsx)("path",{"data-name":"Trazado 411",d:"M229.501 148.665a14.352 14.352 0 00-14.348 14.351v52.134H28.703V28.703h126.71a14.352 14.352 0 0014.351-14.351A14.353 14.353 0 00155.413.001h-130.1A25.34 25.34 0 00.002 25.314v193.228a25.339 25.339 0 0025.311 25.311h193.23a25.339 25.339 0 0025.311-25.311v-55.526a14.353 14.353 0 00-14.353-14.351z"})]})}))},Qt=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",children:[Object(We.jsx)("defs",{children:Object(We.jsx)("clipPath",{id:"prefix__a",children:Object(We.jsx)("path",{d:"M0 0h256v256H0z"})})}),Object(We.jsx)("g",{clipPath:"url(#prefix__a)",children:Object(We.jsx)("path",{d:"M102.027 42.952c6.566 0 13.6 18.758 20.637 18.758h87.441a9.408 9.408 0 019.379 9.379v4.689H41.07V52.33h-.234a9.409 9.409 0 019.383-9.378h51.809m123.539 44.255a9.744 9.744 0 019.707 9.725l-9.949 107.158a9.754 9.754 0 01-9.727 9.716h-175.2a9.747 9.747 0 01-9.719-9.716L20.956 96.932a9.747 9.747 0 019.723-9.725h194.883M102.023 23H50.214a29.366 29.366 0 00-29.34 29.33 20.266 20.266 0 00.234 3.063v13.438a29.741 29.741 0 00-20.113 28.1c0 .6.031 1.2.09 1.8l9.656 106.5a29.714 29.714 0 0029.656 28.532h175.2a29.72 29.72 0 0029.656-28.5l9.891-106.484a17.216 17.216 0 00.09-1.847 29.7 29.7 0 00-15.8-26.229 29.371 29.371 0 00-29.328-28.949h-80.941c-.395-.529-.781-1.05-1.109-1.5-5.066-6.87-12.727-17.248-26.027-17.248z"})})]})}))},Zt=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",children:[Object(We.jsx)("defs",{children:Object(We.jsx)("clipPath",{id:"prefix__a",children:Object(We.jsx)("path",{d:"M0 0h256v256H0z"})})}),Object(We.jsx)("g",{clipPath:"url(#prefix__a)",children:Object(We.jsx)("path",{d:"M202.19 0a56.615 56.615 0 00-38.958 15.872L18.945 160.159a13.233 13.233 0 00-3.848 7.214L.188 239.998a13.364 13.364 0 003.848 12.5 14.606 14.606 0 0010.1 3.848 6.1 6.1 0 002.886-.481l72.144-13.948a13.233 13.233 0 007.214-3.848L240.666 93.788c21.162-21.162 21.162-56.272 0-77.434A53.11 53.11 0 00202.19 0zM51.65 221.24a29.925 29.925 0 00-6.733-9.138 40.721 40.721 0 00-9.138-6.733l5.291-25.01a46.19 46.19 0 0123.567 12.024 42.742 42.742 0 0112.024 23.567zm169.3-147.173L92.532 202.002a56.341 56.341 0 00-14.91-23.086 65.746 65.746 0 00-23.086-14.91L182.952 35.588a26.488 26.488 0 0119.238-7.7 28.6 28.6 0 0119.238 7.7 27.744 27.744 0 01-.481 38.479z"})})]})}))},Jt=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",children:[Object(We.jsx)("defs",{children:Object(We.jsx)("clipPath",{id:"prefix__a",children:Object(We.jsx)("path",{d:"M0 0h256v256H0z"})})}),Object(We.jsx)("g",{clipPath:"url(#prefix__a)",children:Object(We.jsx)("path",{"data-name":"Trazado 399",d:"M199 179.647a109.961 109.961 0 0023.973-68.662 110.985 110.985 0 10-110.988 110.984 109.957 109.957 0 0065.7-21.605l51.5 51.5a14.865 14.865 0 0010.359 4.439 14.359 14.359 0 0010.359-4.439 14.652 14.652 0 000-21.013zM30.6 110.984a81.389 81.389 0 1181.389 81.389A81.343 81.343 0 0130.6 110.984z"})})]})}))},$t=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",children:[Object(We.jsx)("defs",{children:Object(We.jsx)("clipPath",{id:"prefix__a",children:Object(We.jsx)("path",{d:"M0 0h256v256H0z"})})}),Object(We.jsxs)("g",{"data-name":"Object Browser",clipPath:"url(#prefix__a)",children:[Object(We.jsxs)("g",{"data-name":"Grupo 1541",transform:"translate(87.918 103.898)",children:[Object(We.jsx)("circle",{"data-name":"Elipse 57",cx:11.515,cy:11.515,r:11.515,transform:"rotate(-10.901 280.738 -178.561)"}),Object(We.jsx)("rect",{"data-name":"Rect\\xE1ngulo 805",width:24.592,height:20.853,rx:1.35,transform:"translate(14.546 25.545)"}),Object(We.jsx)("path",{"data-name":"Trazado 365",d:"M28.151 60.295a2.427 2.427 0 00-4.2 0l-9.1 15.761a2.425 2.425 0 002.1 3.64h18.2a2.43 2.43 0 002.105-3.64z"}),Object(We.jsx)("path",{"data-name":"Trazado 366",d:"M79.273 28.199a151.334 151.334 0 00-.187-17.51c-.395-4.294-2.262-7.942-6.512-9.468a15.5 15.5 0 00-1.836-.529 38.335 38.335 0 00-7.332-.658c-4.289-.125-8.57.136-12.855.116-8.582-.036-17.16.116-25.746.152H6.301a6.308 6.308 0 00-6.3 6.3v80.617a6.307 6.307 0 006.3 6.3h66.684a6.3 6.3 0 006.3-6.3V47.054c-.004-6.273-.168-12.584-.012-18.855zm-7.648 53.334a5.435 5.435 0 01-5.434 5.439h-54.2a5.442 5.442 0 01-5.441-5.439V12.3a5.441 5.441 0 015.441-5.442h36.367v9.3a13.809 13.809 0 0013.789 13.794h9.48zm0-57.6h-9.48a7.781 7.781 0 01-7.773-7.777v-9.3h11.82a5.435 5.435 0 015.434 5.442z"})]}),Object(We.jsx)("path",{"data-name":"Trazado 367",d:"M101.585 42.067c6.6 0 13.672 18.858 20.742 18.858h87.934a9.453 9.453 0 019.426 9.429v4.715H40.292V51.496h-.234a9.455 9.455 0 019.426-9.429h52.1m124.219 44.5a9.8 9.8 0 019.773 9.772L225.56 204.095a9.8 9.8 0 01-9.773 9.771H39.615a9.8 9.8 0 01-9.773-9.771L20.065 96.339a9.806 9.806 0 019.777-9.772h195.961M101.584 21.999h-52.1a29.528 29.528 0 00-29.492 29.5 20.028 20.028 0 00.234 3.081v13.513A29.9 29.9 0 00-.001 96.344c0 .605.031 1.208.086 1.814l9.711 107.089a29.874 29.874 0 0029.82 28.691h176.172a29.873 29.873 0 0029.813-28.663l9.961-107.074c.051-.617.082-1.239.082-1.857a29.875 29.875 0 00-15.887-26.376 29.534 29.534 0 00-29.5-29.106H128.87c-.4-.532-.785-1.059-1.121-1.517-5.094-6.906-12.785-17.342-26.168-17.342z"})]})]})}))},Xt=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",children:[Object(We.jsx)("defs",{children:Object(We.jsx)("clipPath",{id:"prefix__a",children:Object(We.jsx)("path",{d:"M0 0h256v256H0z"})})}),Object(We.jsx)("g",{clipPath:"url(#prefix__a)",children:Object(We.jsxs)("g",{stroke:"#000",strokeWidth:.1,children:[Object(We.jsx)("path",{"data-name":"Trazado 317",d:"M238.72 0H17.28A17.318 17.318 0 000 17.28V238.7a17.325 17.325 0 0017.28 17.28h221.44A17.318 17.318 0 00256 238.7V17.3A17.312 17.312 0 00238.72 0zm-.7 223.072a14.938 14.938 0 01-14.931 14.938H32.928a14.938 14.938 0 01-14.938-14.938V32.928A14.938 14.938 0 0132.928 17.99h190.15a14.938 14.938 0 0114.932 14.938z"}),Object(We.jsx)("path",{"data-name":"Trazado 318",d:"M105.746 114.442H56.899c-8.525 0-15.456 6.355-15.456 14.169v74.24c0 7.808 6.931 14.17 15.456 14.17h48.851c8.525 0 15.456-6.362 15.456-14.17v-74.24c-.007-7.814-6.935-14.169-15.46-14.169z"}),Object(We.jsx)("path",{"data-name":"Trazado 319",d:"M56.899 38.955h48.845a15.462 15.462 0 0115.455 15.462v22.88a15.462 15.462 0 01-15.462 15.462H56.899a15.456 15.456 0 01-15.46-15.455V54.411a15.456 15.456 0 0115.46-15.456z"}),Object(We.jsx)("path",{"data-name":"Trazado 320",d:"M204.825 38.955h-48.844c-8.525 0-15.456 6.355-15.456 14.169v74.24c0 7.814 6.931 14.17 15.456 14.17h48.844c8.525 0 15.463-6.355 15.463-14.17v-74.24c0-7.814-6.937-14.169-15.463-14.169z"}),Object(We.jsx)("path",{"data-name":"Trazado 321",d:"M155.981 163.25h48.851a15.456 15.456 0 0115.456 15.456v22.88a15.456 15.456 0 01-15.456 15.456h-48.851a15.462 15.462 0 01-15.462-15.462v-22.874a15.456 15.456 0 0115.462-15.456z"})]})})]})}))},ea=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",children:[Object(We.jsx)("defs",{children:Object(We.jsx)("clipPath",{id:"prefix__a",children:Object(We.jsx)("path",{d:"M0 0h256v256H0z"})})}),Object(We.jsx)("g",{clipPath:"url(#prefix__a)",children:Object(We.jsxs)("g",{transform:"translate(4330.082 461.859)",children:[Object(We.jsxs)("g",{"data-name":"Grupo 1495",children:[Object(We.jsx)("path",{"data-name":"Trazado 345",d:"M-4235.5-461.859h-72.088a22.506 22.506 0 00-22.5 22.5V-365a5.2 5.2 0 005.2 5.2h7.578a5.209 5.209 0 005.219-5.2v-58.731a20.132 20.132 0 0120.125-20.133h56.461a5.2 5.2 0 005.2-5.2v-7.589a5.2 5.2 0 00-5.195-5.206z"}),Object(We.jsx)("path",{"data-name":"Trazado 345 - Contorno",d:"M-4307.586-462.009h72.088a5.355 5.355 0 015.345 5.353v7.589a5.355 5.355 0 01-5.345 5.353h-56.461a19.834 19.834 0 00-7.771 1.57 19.914 19.914 0 00-6.35 4.281 19.912 19.912 0 00-4.283 6.352 19.858 19.858 0 00-1.571 7.78V-365a5.367 5.367 0 01-5.369 5.353h-7.578a5.358 5.358 0 01-5.351-5.353v-74.364a22.481 22.481 0 011.781-8.813 22.59 22.59 0 014.856-7.2 22.591 22.591 0 017.2-4.854 22.487 22.487 0 018.809-1.778zm72.088 18a5.055 5.055 0 005.045-5.053v-7.589a5.055 5.055 0 00-5.045-5.053h-72.088a22.185 22.185 0 00-8.693 1.756 22.287 22.287 0 00-7.1 4.79 22.282 22.282 0 00-4.792 7.1 22.181 22.181 0 00-1.758 8.7V-365a5.058 5.058 0 005.051 5.053h7.578a5.067 5.067 0 005.069-5.053v-58.731a20.158 20.158 0 011.595-7.9 20.214 20.214 0 014.347-6.447 20.216 20.216 0 016.445-4.346 20.135 20.135 0 017.888-1.593z"}),Object(We.jsx)("path",{"data-name":"Trazado 346",d:"M-4096.572-461.859h-78.979a5.207 5.207 0 00-5.209 5.2v7.589a5.207 5.207 0 005.209 5.2h63.352a20.138 20.138 0 0120.135 20.133V-365a5.2 5.2 0 005.209 5.2h7.574a5.2 5.2 0 005.193-5.2v-74.364a22.492 22.492 0 00-22.484-22.495z"}),Object(We.jsx)("path",{"data-name":"Trazado 346 - Contorno",d:"M-4175.551-462.009h78.979a22.478 22.478 0 018.811 1.78 22.558 22.558 0 017.194 4.854 22.568 22.568 0 014.851 7.2 22.5 22.5 0 011.779 8.813V-365a5.354 5.354 0 01-5.343 5.353h-7.574a5.362 5.362 0 01-5.359-5.353v-58.731a19.841 19.841 0 00-1.572-7.78 19.912 19.912 0 00-4.285-6.352 19.932 19.932 0 00-6.353-4.282 19.851 19.851 0 00-7.774-1.57h-63.352a5.362 5.362 0 01-5.359-5.353v-7.589a5.362 5.362 0 015.357-5.352zm96.27 102.063a5.054 5.054 0 005.043-5.053v-74.364a22.211 22.211 0 00-1.755-8.7 22.275 22.275 0 00-4.786-7.1 22.262 22.262 0 00-7.1-4.79 22.18 22.18 0 00-8.693-1.756h-78.979a5.062 5.062 0 00-5.059 5.053v7.589a5.062 5.062 0 005.059 5.053h63.352a20.15 20.15 0 017.891 1.593 20.226 20.226 0 016.448 4.346 20.222 20.222 0 014.35 6.447 20.142 20.142 0 011.6 7.9V-365a5.062 5.062 0 005.059 5.053z"}),Object(We.jsx)("path",{"data-name":"Trazado 347",d:"M-4079.281-310.249h-7.574a5.2 5.2 0 00-5.209 5.2v61.06a20.146 20.146 0 01-20.135 20.141h-63.352a5.2 5.2 0 00-5.209 5.199v7.6a5.2 5.2 0 005.209 5.194h78.979a22.486 22.486 0 0022.484-22.5v-76.694a5.194 5.194 0 00-5.193-5.2z"}),Object(We.jsx)("path",{"data-name":"Trazado 347 - Contorno",d:"M-4086.86-310.399h7.574a5.354 5.354 0 015.343 5.353v76.692a22.513 22.513 0 01-1.779 8.817 22.559 22.559 0 01-4.851 7.2 22.554 22.554 0 01-7.194 4.852 22.491 22.491 0 01-8.811 1.779h-78.979a5.357 5.357 0 01-5.359-5.344v-7.6a5.358 5.358 0 015.359-5.344h63.352a19.839 19.839 0 007.774-1.571 19.935 19.935 0 006.353-4.285 19.927 19.927 0 004.285-6.355 19.85 19.85 0 001.572-7.781v-61.063a5.362 5.362 0 015.361-5.35zm-9.717 104.39a22.189 22.189 0 008.693-1.755 22.259 22.259 0 007.1-4.788 22.258 22.258 0 004.786-7.1 22.222 22.222 0 001.755-8.7v-76.697a5.054 5.054 0 00-5.043-5.053h-7.574a5.062 5.062 0 00-5.059 5.053v61.06a20.15 20.15 0 01-1.6 7.9 20.236 20.236 0 01-4.35 6.45 20.227 20.227 0 01-6.448 4.349 20.134 20.134 0 01-7.891 1.595h-63.352a5.057 5.057 0 00-5.059 5.044v7.6a5.057 5.057 0 005.059 5.044z"}),Object(We.jsx)("path",{"data-name":"Trazado 348",d:"M-4235.5-223.849h-56.461a20.14 20.14 0 01-20.125-20.141v-61.059a5.209 5.209 0 00-5.219-5.2h-7.578a5.2 5.2 0 00-5.2 5.2v76.692a22.5 22.5 0 0022.5 22.5h72.088a5.2 5.2 0 005.2-5.194v-7.6a5.2 5.2 0 00-5.205-5.198z"}),Object(We.jsx)("path",{"data-name":"Trazado 348 - Contorno",d:"M-4235.5-205.709h-72.088a22.492 22.492 0 01-8.81-1.779 22.586 22.586 0 01-7.2-4.852 22.582 22.582 0 01-4.856-7.2 22.493 22.493 0 01-1.781-8.817v-76.692a5.358 5.358 0 015.351-5.353h7.578a5.367 5.367 0 015.369 5.353v61.06a19.866 19.866 0 001.571 7.781 19.935 19.935 0 004.283 6.355 19.921 19.921 0 006.35 4.285 19.821 19.821 0 007.771 1.571h56.461a5.351 5.351 0 015.345 5.344v7.6a5.351 5.351 0 01-5.344 5.344zm-89.383-104.39a5.058 5.058 0 00-5.051 5.053v76.692a22.192 22.192 0 001.758 8.7 22.266 22.266 0 004.792 7.1 22.28 22.28 0 007.1 4.788 22.2 22.2 0 008.693 1.755h72.088a5.05 5.05 0 005.045-5.044v-7.6a5.05 5.05 0 00-5.045-5.044h-56.461a20.121 20.121 0 01-7.888-1.595 20.218 20.218 0 01-6.445-4.349 20.228 20.228 0 01-4.347-6.45 20.166 20.166 0 01-1.595-7.9v-61.056a5.067 5.067 0 00-5.069-5.053z"})]}),Object(We.jsx)("circle",{"data-name":"Elipse 56",cx:49.548,cy:49.548,r:49.548,transform:"translate(-4251.625 -388.701)"}),Object(We.jsx)("path",{"data-name":"Elipse 56 - Contorno",d:"M-4202.077-388.851a49.712 49.712 0 0119.345 95.491 49.712 49.712 0 01-38.693-91.585 49.387 49.387 0 0119.348-3.906zm0 99.1a49.412 49.412 0 0019.229-94.918 49.411 49.411 0 00-38.457 91.033 49.089 49.089 0 0019.228 3.882z"})]})})]})}))},ta=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",children:[Object(We.jsx)("defs",{children:Object(We.jsx)("clipPath",{id:"prefix__a",children:Object(We.jsx)("path",{d:"M0 0h256v256H0z"})})}),Object(We.jsx)("g",{clipPath:"url(#prefix__a)",children:Object(We.jsx)("path",{"data-name":"heal-icn",d:"M157.75 238.818l-4.719-4.727-24.812-24.7-29.438 29.427a57.488 57.488 0 01-81.312 0 57.4 57.4 0 010-81.422l29.438-29.422-24.813-24.819-4.625-4.609a57.4 57.4 0 010-81.43c21.719-21.82 59.625-21.82 81.313 0l4.719 4.625 24.719 24.8 29.531-29.43c21.719-21.82 59.594-21.82 81.313 0a57.4 57.4 0 010 81.43l-29.437 29.43 24.813 24.688 4.625 4.734a57.535 57.535 0 11-81.312 81.422zm13.625-22.937l4.563 4.609c12.125 11.977 32.938 11.977 44.938 0a31.782 31.782 0 000-44.766l-4.781-4.727zM35.719 175.724a31.63 31.63 0 000 44.766c11.938 11.977 32.875 11.977 44.875 0L110 191.068l-44.906-44.9zm22.906-72.569l6.469 6.492 81.469 81.422 6.469 6.477 44.875-44.883-6.469-6.492L110 64.88l-6.5-6.492zm117.312-67.7l-29.375 29.43 44.875 44.766 29.438-29.43a31.426 31.426 0 009.219-22.445 31.112 31.112 0 00-9.219-22.32 32.365 32.365 0 00-44.937 0zm-140.219 0a31.045 31.045 0 00-9.281 22.32 31.357 31.357 0 009.281 22.445l4.719 4.735 44.75-44.9-4.593-4.6a31.593 31.593 0 00-44.875 0zm105.344 117.956a12.7 12.7 0 1112.719 12.836 12.775 12.775 0 01-12.719-12.836zM115.5 127.974a12.781 12.781 0 1112.719 12.719 12.707 12.707 0 01-12.719-12.719zm-25.437-25.57a12.719 12.719 0 1112.688 12.844 12.757 12.757 0 01-12.689-12.845z",stroke:"rgba(0,0,0,0)",strokeMiterlimit:10})})]})}))},aa=function(e){var t=e.width,a=void 0===t?120:t;return Object(We.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 606.583 134.691",width:a,children:Object(We.jsx)("g",{id:"prefix__Layer_2","data-name":"Layer 2",children:Object(We.jsx)("g",{id:"prefix__Layer_1-2","data-name":"Layer 1",children:Object(We.jsx)("path",{className:"prefix__cls-1",d:"M79.695 95.063c0 23.03-16.763 39.628-39.848 39.628C16.763 134.69 0 118.092 0 95.063s16.763-39.628 39.847-39.628c23.085 0 39.848 16.599 39.848 39.628zm-69.582 0c0 18.083 12.806 30.339 29.734 30.339 16.929 0 29.735-12.256 29.735-30.34 0-18.081-12.806-30.338-29.735-30.338-16.928 0-29.734 12.257-29.734 30.339zM106.895 102.758v30.779H97.22V56.589h29.24c17.368 0 27.206 8.685 27.206 23.084 0 14.4-9.838 23.085-27.206 23.085zm0-37.045v27.921h19.346c11.377 0 17.368-4.617 17.368-13.96 0-9.344-5.99-13.96-17.368-13.96zM224.784 133.537h-54.632V56.589h54.082v9.07h-44.409v24.567h42.98v9.124h-42.98v25.118h44.96zM275.07 56.59c17.368 0 26.931 7.804 26.931 21.82 0 13.355-10.387 21.93-26.876 21.93h-.604l27.096 33.197h-11.982l-26.437-33.198h-9.013v33.198h-9.674V56.589zm-20.885 9.069v25.886h20.665c11.322 0 17.093-4.506 17.093-13.135 0-8.52-5.935-12.751-17.093-12.751zM384.716 133.537h-10.388l-8.464-20.996h-37.32l-8.409 20.996h-10.058l31.274-76.948h12.036zm-52.49-30.174h29.955l-14.95-37.21zM445.114 65.768h-26.217v67.769h-9.673V65.768h-26.272v-9.179h62.162zM531.566 95.063c0 23.03-16.763 39.628-39.847 39.628s-39.848-16.599-39.848-39.628 16.764-39.628 39.848-39.628 39.847 16.599 39.847 39.628zm-69.582 0c0 18.083 12.807 30.339 29.735 30.339 16.928 0 29.735-12.256 29.735-30.34 0-18.081-12.807-30.338-29.735-30.338-16.928 0-29.735 12.257-29.735 30.339zM579.652 56.59c17.368 0 26.931 7.804 26.931 21.82 0 13.355-10.388 21.93-26.876 21.93h-.605l27.096 33.197h-11.981l-26.437-33.198h-9.014v33.198h-9.673V56.589zm-20.886 9.069v25.886h20.666c11.322 0 17.093-4.506 17.093-13.135 0-8.52-5.936-12.751-17.093-12.751zM72.292.762h11.75v34.419h-11.75zM58.159 1.087l-23.85 14.566a1.06 1.06 0 01-1.106 0L9.352 1.087a3.272 3.272 0 00-1.705-.48h-.03a3.27 3.27 0 00-3.27 3.27v31.304H16.09V20.327a1.175 1.175 0 011.787-1.002l13.366 8.177a4.188 4.188 0 004.304.04l14.104-8.273a1.174 1.174 0 011.769 1.013v14.9h11.742V3.876a3.27 3.27 0 00-3.27-3.27h-.03a3.266 3.266 0 00-1.703.48zM142.742.753h-11.916v15.794a1.175 1.175 0 01-1.727 1.037L98.22 1.137A3.268 3.268 0 0096.68.753h-.02a3.27 3.27 0 00-3.27 3.27v31.158h11.82V19.64a1.174 1.174 0 011.725-1.038l31.004 16.445a3.27 3.27 0 001.533.381 3.27 3.27 0 003.27-3.27V.753zM152.279 35.173V.753h5.463v34.42zM189.208 35.926c-14.545 0-24.863-6.9-24.863-17.963C164.345 6.962 174.725 0 189.208 0c14.482 0 24.924 6.899 24.924 17.963s-10.194 17.963-24.924 17.963zm0-31.327c-10.815 0-19.145 4.724-19.145 13.364 0 8.702 8.33 13.363 19.145 13.363s19.206-4.662 19.206-13.363c0-8.64-8.392-13.364-19.206-13.364z"})})})})},na=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 9.836 12.646",children:[Object(We.jsx)("path",{"data-name":"Trazado 359",d:"M9.527.7h-2.5V.305a.308.308 0 00-.308-.308h-3.6a.308.308 0 00-.308.308V.7h-2.5a.309.309 0 00-.309.309v.787a.309.309 0 00.309.309h9.218a.309.309 0 00.309-.309v-.787A.309.309 0 009.527.7z"}),Object(We.jsx)("path",{"data-name":"Trazado 360",d:"M.703 11.225a1.425 1.425 0 001.42 1.421h5.59a1.425 1.425 0 001.42-1.421V2.81H.703z"})]})}))},ca=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",children:[Object(We.jsx)("defs",{children:Object(We.jsx)("clipPath",{id:"prefix__a",children:Object(We.jsx)("path",{d:"M0 0h256v256H0z"})})}),Object(We.jsx)("g",{"data-name":"Reported Usage",clipPath:"url(#prefix__a)",children:Object(We.jsx)("path",{"data-name":"Trazado 390",d:"M128.218 1A127.366 127.366 0 00.999 128.219 127.363 127.363 0 00128.218 255.43a127.361 127.361 0 00127.213-127.211A127.364 127.364 0 00128.218 1zm0 221.711a94.6 94.6 0 01-94.5-94.492 94.608 94.608 0 0194.5-94.5v94.5h94.49a94.6 94.6 0 01-94.49 94.492z"})})]})}))},ia=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",children:[Object(We.jsx)("defs",{children:Object(We.jsx)("clipPath",{id:"prefix__a",children:Object(We.jsx)("path",{d:"M0 0h256v256H0z"})})}),Object(We.jsx)("g",{clipPath:"url(#prefix__a)",children:Object(We.jsxs)("g",{transform:"translate(4343.797 1174.239)",children:[Object(We.jsx)("path",{"data-name":"Trazado 391",d:"M-4243.896-1049.602c26.662 0 48.334-22.564 48.334-50.314s-21.672-50.318-48.334-50.318c-26.633 0-48.32 22.571-48.32 50.318s21.687 50.314 48.32 50.314zm0-84.9c18.283 0 33.168 15.521 33.168 34.59s-14.885 34.587-33.168 34.587-33.133-15.518-33.133-34.587 14.863-34.598 33.133-34.598z"}),Object(We.jsx)("path",{"data-name":"Trazado 391 - Contorno",d:"M-4243.896-1049.502c-26.7 0-48.42-22.616-48.42-50.414s21.721-50.418 48.42-50.418 48.434 22.618 48.434 50.418-21.728 50.414-48.434 50.414zm0-100.633c-26.589 0-48.22 22.528-48.22 50.218s21.631 50.214 48.22 50.214 48.234-22.526 48.234-50.214-21.642-50.222-48.234-50.222zm0 84.905c-18.325 0-33.233-15.56-33.233-34.687s14.908-34.69 33.233-34.69c18.344 0 33.268 15.562 33.268 34.69s-14.924 34.684-33.268 34.684zm0-69.177c-18.214 0-33.033 15.472-33.033 34.49s14.818 34.487 33.033 34.487c18.234 0 33.068-15.471 33.068-34.487s-14.834-34.493-33.068-34.493z"}),Object(We.jsx)("path",{"data-name":"Trazado 392",d:"M-4304.551-986.731a21.435 21.435 0 0019.545 12.09h77.879a21.139 21.139 0 0019.518-12.263 26.16 26.16 0 00-2.566-26.32 70.472 70.472 0 00-26.475-21.938 68 68 0 00-33.158-6.836 69.928 69.928 0 00-51.76 28.227c-.408.544-.779 1.1-1.162 1.656a25.64 25.64 0 00-1.821 25.384zm103.941-6.824a6.644 6.644 0 01-6.518 3.9h-77.879a7.062 7.062 0 01-6.662-3.962 9.972 9.972 0 01.816-9.871v-.011c.264-.417.574-.836.879-1.25a55.189 55.189 0 0140.912-22.239c.871-.052 1.752-.07 2.625-.07a56.234 56.234 0 0144.684 22.885 10.7 10.7 0 011.143 10.618z"}),Object(We.jsx)("path",{"data-name":"Trazado 392 - Contorno",d:"M-4207.127-974.541h-77.879a21.532 21.532 0 01-19.634-12.145 25.743 25.743 0 011.827-25.485c.1-.149.205-.3.307-.445.274-.4.559-.815.858-1.215a70.024 70.024 0 0151.834-28.266 63.11 63.11 0 013.514-.1 66.24 66.24 0 0115.073 1.766 71.123 71.123 0 0114.621 5.178 70.591 70.591 0 0126.512 21.97 26.265 26.265 0 012.576 26.422 21.26 21.26 0 01-19.609 12.32zm-39.173-67.456c-1.167 0-2.346.033-3.5.1a69.821 69.821 0 00-51.685 28.185c-.3.4-.581.81-.854 1.209-.1.149-.2.3-.307.445a25.54 25.54 0 00-1.813 25.283 21.337 21.337 0 0019.456 12.034h77.879a21.064 21.064 0 0019.427-12.206 26.062 26.062 0 00-2.557-26.218 70.383 70.383 0 00-26.437-21.907 70.932 70.932 0 00-14.579-5.163 66.044 66.044 0 00-15.031-1.763zm39.173 52.437h-77.879a7.486 7.486 0 01-4.64-1.447 7.372 7.372 0 01-2.112-2.569 10.072 10.072 0 01.806-9.947v-.009l.016-.025c.253-.4.551-.805.84-1.2l.043-.058a55.311 55.311 0 0140.987-22.28c.8-.047 1.658-.07 2.63-.07a56.34 56.34 0 0144.765 22.926 10.8 10.8 0 011.152 10.725 6.738 6.738 0 01-6.608 3.954zm-83.625-13.915v.012l-.018.026a9.868 9.868 0 00-.809 9.77 7.162 7.162 0 002.054 2.5 7.29 7.29 0 004.519 1.407h77.879a6.551 6.551 0 006.427-3.839 10.594 10.594 0 00-1.133-10.521 56.137 56.137 0 00-44.6-22.844c-.968 0-1.825.023-2.619.07a55.108 55.108 0 00-40.837 22.2l-.043.059c-.284.38-.574.774-.82 1.161z"}),Object(We.jsx)("path",{"data-name":"Trazado 393",d:"M-4118.988-1128.356h-54.7a7.428 7.428 0 00-7.434 7.431 7.432 7.432 0 007.434 7.427h54.7a16.332 16.332 0 0116.313 16.32v124.74a16.331 16.331 0 01-16.312 16.32h-193.631a16.342 16.342 0 01-16.324-16.32v-124.74a16.343 16.343 0 0116.324-16.32 7.443 7.443 0 007.426-7.427 7.439 7.439 0 00-7.426-7.431 31.207 31.207 0 00-31.178 31.178v124.74a31.211 31.211 0 0031.178 31.181h193.631a31.218 31.218 0 0031.191-31.181v-124.74a31.214 31.214 0 00-31.192-31.178z"}),Object(We.jsx)("path",{"data-name":"Trazado 393 - Contorno",d:"M-4312.619-1128.456a7.537 7.537 0 017.526 7.531 7.535 7.535 0 01-7.526 7.527 16.24 16.24 0 00-16.224 16.22v124.74a16.24 16.24 0 0016.224 16.22h193.631a16.235 16.235 0 0016.212-16.22v-124.74a16.235 16.235 0 00-16.212-16.22h-54.7a7.539 7.539 0 01-7.534-7.527 7.48 7.48 0 012.2-5.325 7.485 7.485 0 015.329-2.205h54.7a31.32 31.32 0 0131.292 31.278v124.74a31.322 31.322 0 01-31.292 31.281h-193.631a31.315 31.315 0 01-31.278-31.281v-124.74a31.313 31.313 0 0131.283-31.279zm193.631 172.438h-193.631a16.441 16.441 0 01-16.424-16.42v-124.74a16.441 16.441 0 0116.424-16.42 7.334 7.334 0 007.326-7.327 7.336 7.336 0 00-7.326-7.331 31.113 31.113 0 00-31.078 31.078v124.74a31.114 31.114 0 0031.078 31.081h193.631a31.121 31.121 0 0031.091-31.081v-124.74a31.12 31.12 0 00-31.091-31.078h-54.7a7.288 7.288 0 00-5.188 2.147 7.282 7.282 0 00-2.146 5.184 7.338 7.338 0 007.333 7.327h54.7a16.435 16.435 0 0116.413 16.42v124.74a16.435 16.435 0 01-16.412 16.42z"}),Object(We.jsx)("rect",{"data-name":"Rect\\xE1ngulo 809",width:50.961,height:43.41,rx:1.024,transform:"translate(-4172.15 -1093.01)"}),Object(We.jsx)("path",{"data-name":"Rect\\xE1ngulo 809 - Contorno",d:"M-4171.126-1093.11h48.913a1.125 1.125 0 011.124 1.124v41.363a1.125 1.125 0 01-1.124 1.124h-48.913a1.125 1.125 0 01-1.124-1.124v-41.363a1.125 1.125 0 011.124-1.124zm48.913 43.41a.925.925 0 00.924-.924v-41.362a.925.925 0 00-.924-.924h-48.913a.925.925 0 00-.924.924v41.363a.925.925 0 00.924.924z"}),Object(We.jsx)("rect",{"data-name":"Rect\\xE1ngulo 810",width:50.961,height:20.864,rx:1.615,transform:"translate(-4172.15 -1031.303)"}),Object(We.jsx)("path",{"data-name":"Rect\\xE1ngulo 810 - Contorno",d:"M-4170.535-1031.403h47.731a1.717 1.717 0 011.715 1.715v17.634a1.717 1.717 0 01-1.715 1.715h-47.731a1.717 1.717 0 01-1.715-1.715v-17.634a1.717 1.717 0 011.715-1.715zm47.731 20.864a1.516 1.516 0 001.515-1.515v-17.634a1.516 1.516 0 00-1.515-1.515h-47.731a1.516 1.516 0 00-1.515 1.515v17.634a1.516 1.516 0 001.515 1.515z"}),Object(We.jsx)("rect",{"data-name":"Rect\\xE1ngulo 811",width:50.961,height:20.864,rx:1.615,transform:"translate(-4172.15 -995.506)"}),Object(We.jsx)("path",{"data-name":"Rect\\xE1ngulo 811 - Contorno",d:"M-4170.535-995.606h47.731a1.717 1.717 0 011.715 1.715v17.634a1.717 1.717 0 01-1.715 1.715h-47.731a1.717 1.717 0 01-1.715-1.715v-17.634a1.717 1.717 0 011.715-1.715zm47.731 20.864a1.516 1.516 0 001.515-1.515v-17.634a1.516 1.516 0 00-1.515-1.515h-47.731a1.516 1.516 0 00-1.515 1.515v17.634a1.516 1.516 0 001.515 1.515z"})]})})]})}))},ra=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsx)("svg",Object(p.a)(Object(p.a)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 230.355 244.478"},e),{},{children:Object(We.jsx)("path",{"data-name":"Trazado 395 - Contorno",d:"M163.418 244.477a40.409 40.409 0 01-40.336-40.391 40.334 40.334 0 017.428-23.329l-28.589-37.162a73.171 73.171 0 01-19.721 4.874l-.838 15.423a23.685 23.685 0 016.886 16.732 23.807 23.807 0 01-23.77 23.792 23.808 23.808 0 01-23.77-23.792 23.672 23.672 0 0117.239-22.894l.575-10.549A74.931 74.931 0 01-.002 74.45 74.485 74.485 0 0174.35.001a74.488 74.488 0 0174.359 74.449 74.5 74.5 0 01-1.064 12.52l27.5 4a30.224 30.224 0 0124.579-12.382 30.684 30.684 0 0130.634 30.668 30.682 30.682 0 01-30.631 30.663 30.809 30.809 0 01-30.238-25.79l-29.708-4.319a74.988 74.988 0 01-17.4 21.463l26.916 35a40.4 40.4 0 0114.12-2.573 40.41 40.41 0 0140.343 40.385 40.413 40.413 0 01-40.342 40.392zm-15.989-61.17l-2.571 2.638a25.849 25.849 0 00-7.4 18.141 26.006 26.006 0 0025.956 26 26.007 26.007 0 0025.956-26 26 26 0 00-25.956-25.992 25.883 25.883 0 00-12.765 3.388zm-82.758-12.07a9.4 9.4 0 00-9.571 9.386 9.4 9.4 0 009.38 9.392 9.4 9.4 0 009.379-9.392 9.423 9.423 0 00-4.01-7.7l-2.332-1.635zm9.68-156.843A60.076 60.076 0 0014.39 74.448a60.046 60.046 0 0052.543 59.576l4.164.514 4.162-.063a59.2 59.2 0 0025.7-6.213l3.823-1.9 3.414-2.351a60.156 60.156 0 0020.888-25.027l1.712-3.818 1.2-4.187a60.311 60.311 0 002.32-16.532 60.079 60.079 0 00-59.964-60.053zm109.392 90.51l-.21 3.387c-.055 9.932 7.233 17.231 16.19 17.231a16.275 16.275 0 0016.245-16.269 16.278 16.278 0 00-16.245-16.274 16.145 16.145 0 00-14.51 9.006z"})}))}))},oa=function(e){return Object(We.jsxs)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{viewBox:"0 0 12 12",children:[Object(We.jsx)("path",{d:"M357.14,346a5,5,0,1,1-5,5,5,5,0,0,1,5-5m0-1a6,6,0,1,0,6,6,6,6,0,0,0-6-6Z",transform:"translate(-351.14 -345.03)"}),Object(We.jsx)("path",{d:"M356.21,352.42v-1.86h.52c1.23,0,1.92-.45,1.92-1.29s-.68-1.18-1.89-1.18a8.07,8.07,0,0,0-.93.06l-.1-1.25a9.13,9.13,0,0,1,1.08-.08c2,0,3.19.94,3.19,2.4s-.93,2.24-2.64,2.46l-.05.74Zm1.56,1.8a1,1,0,1,1-1-1A1,1,0,0,1,357.77,354.22Z",transform:"translate(-351.14 -345.03)"})]}))},sa=function(e){var t=e.width,a=void 0===t?24:t;return Object(We.jsx)(Ke.a,{style:{width:a,height:a},children:Object(We.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10.405 10.405",children:Object(We.jsx)("path",{d:"M9.932 4.778a.424.424 0 00-.424.424 4.31 4.31 0 01-4.305 4.3 4.309 4.309 0 01-4.3-4.3A4.311 4.311 0 014.784.918v1.259A3.06 3.06 0 002.15 5.202 3.062 3.062 0 005.208 8.26a3.062 3.062 0 003.058-3.058 3.06 3.06 0 00-2.634-3.025V.049h-.424A5.158 5.158 0 00.055 5.201a5.158 5.158 0 005.153 5.153 5.158 5.158 0 005.153-5.153.424.424 0 00-.429-.423zm-2.519.424a2.213 2.213 0 01-2.21 2.21 2.213 2.213 0 01-2.21-2.21A2.213 2.213 0 014.78 3.035v1.231a1.028 1.028 0 00-.606.936 1.03 1.03 0 001.03 1.03 1.03 1.03 0 001.03-1.03 1.028 1.028 0 00-.605-.936V3.035a2.212 2.212 0 011.784 2.167z",stroke:"#000",strokeWidth:.1})})})},la=function(){return Object(We.jsx)(Ke.a,{children:Object(We.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",children:[Object(We.jsx)("title",{children:"ic_h_copy-new_sl"}),Object(We.jsx)("g",{id:"Layer_2","data-name":"Layer 2",children:Object(We.jsx)("g",{id:"Layer_1-2","data-name":"Layer 1",children:Object(We.jsx)("path",{className:"cls-1",d:"M0,0V16H16V0ZM11.886,9.048H9.048v2.838h-2.1V9.048H4.114v-2.1H6.952V4.114h2.1V6.952h2.838Z"})})})]})})},da=function(){return Object(We.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 121.755 29.822",children:Object(We.jsx)("path",{className:"prefix__a",d:"M15.647 15.935l-1.772 1.194a6.088 6.088 0 00-5.135-2.652 6.348 6.348 0 00-6.522 6.654 6.348 6.348 0 006.522 6.654 6.031 6.031 0 005.124-2.64l1.735 1.266a8.126 8.126 0 01-6.859 3.411A8.422 8.422 0 010 21.131a8.422 8.422 0 018.74-8.691 7.963 7.963 0 016.907 3.495zM35.641 21.131a8.422 8.422 0 01-8.74 8.691 8.422 8.422 0 01-8.739-8.691 8.421 8.421 0 018.739-8.691 8.422 8.422 0 018.74 8.691zm-15.261 0a6.347 6.347 0 006.521 6.654 6.347 6.347 0 006.521-6.654 6.347 6.347 0 00-6.521-6.654 6.347 6.347 0 00-6.521 6.654zM53.729 29.581h-1.917l-10.2-13.26-.012 13.248h-2.122V12.681h1.917l10.21 13.26V12.693h2.122zM69.551 16.02a8.835 8.835 0 00-5-1.555c-2.471 0-4.231 1.109-4.231 2.929 0 1.531 1.29 2.315 3.821 2.628l1.484.181c2.856.35 5.3 1.507 5.3 4.484 0 3.364-3.05 5.123-6.7 5.123a10.935 10.935 0 01-6.654-2.194l1.157-1.687a9.018 9.018 0 005.5 1.868c2.519 0 4.5-1.025 4.5-2.929 0-1.567-1.41-2.314-4.038-2.64l-1.567-.193c-2.784-.337-5-1.627-5-4.508 0-3.255 2.893-5.075 6.449-5.075a10.336 10.336 0 016.076 1.844zM91.268 21.131a8.422 8.422 0 01-8.74 8.691 8.422 8.422 0 01-8.739-8.691 8.421 8.421 0 018.739-8.691 8.422 8.422 0 018.74 8.691zm-15.261 0a6.348 6.348 0 006.521 6.654 6.347 6.347 0 006.521-6.654 6.347 6.347 0 00-6.521-6.654 6.348 6.348 0 00-6.521 6.654zM106.897 29.569h-11.79V12.693h2.122v14.863h9.668zM121.76 29.569h-11.982V12.693h11.862v1.988h-9.74v5.389h9.427v2H111.9v5.509h9.86zM14.9.167h2.576v7.547H14.9zM11.801.238l-5.23 3.194a.229.229 0 01-.242 0L1.099.238a.726.726 0 00-.374-.1H.719a.717.717 0 00-.717.717v6.864h2.574V4.462a.258.258 0 01.392-.22l2.931 1.793a.919.919 0 00.944.009L9.935 4.23a.258.258 0 01.388.222v3.267h2.575V.855a.717.717 0 00-.717-.717h-.006a.723.723 0 00-.374.1zM30.348.165h-2.613v3.463a.258.258 0 01-.379.228L20.585.249a.723.723 0 00-.337-.084.717.717 0 00-.717.717v6.832h2.592V4.306a.258.258 0 01.379-.227l6.8 3.606a.714.714 0 00.336.083.716.716 0 00.717-.717V.165zM32.439 7.712V.165h1.2v7.547zM40.536 7.878c-3.189 0-5.451-1.513-5.451-3.939S37.361 0 40.536 0s5.466 1.513 5.466 3.939-2.236 3.939-5.466 3.939zm0-6.87c-2.371 0-4.2 1.036-4.2 2.931s1.826 2.93 4.2 2.93 4.212-1.022 4.212-2.93-1.84-2.931-4.212-2.931z"})})},ua=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",children:[Object(We.jsx)("defs",{children:Object(We.jsx)("clipPath",{id:"prefix__a",children:Object(We.jsx)("path",{d:"M0 0h256v256H0z"})})}),Object(We.jsx)("g",{clipPath:"url(#prefix__a)",children:Object(We.jsx)("path",{"data-name":"trace-icn",d:"M28.428 74.199l56.9 62.563v110.667a8.052 8.052 0 01-8.174 7.859H65.065a8.071 8.071 0 01-8.189-7.859v-98.468L.003 82.061v-74.2A8.026 8.026 0 018.16.004h12.105a8.033 8.033 0 018.166 7.857zm56.9-66.34A8.051 8.051 0 0077.154.002H65.065a8.07 8.07 0 00-8.189 7.857v71.116l56.921 66.9v101.554a8.034 8.034 0 008.166 7.859h12.1a8.048 8.048 0 008.157-7.859v-113.75L85.331 71.124zM134.059.002h-12.1a8.033 8.033 0 00-8.166 7.857v38.987a8.034 8.034 0 008.166 7.858h12.1a8.048 8.048 0 008.157-7.858V7.859a8.047 8.047 0 00-8.16-7.86zm44.783 118.525h12.105a8.04 8.04 0 008.166-7.858V7.859a8.038 8.038 0 00-8.166-7.857h-12.105a8.046 8.046 0 00-8.174 7.857v102.81a8.047 8.047 0 008.172 7.856zM247.818-.001h-12.1a8.033 8.033 0 00-8.165 7.857v38.987a8.034 8.034 0 008.165 7.858h12.1A8.048 8.048 0 00256 46.843V7.856a8.048 8.048 0 00-8.182-7.857zm0 173.231h-12.1a8.033 8.033 0 00-8.165 7.859v66.338a8.034 8.034 0 008.165 7.859h12.1a8.049 8.049 0 008.182-7.859v-66.338a8.048 8.048 0 00-8.182-7.858zm0-82.058h-12.1a8.034 8.034 0 00-8.165 7.859v17.678l-56.889 56.521v74.2a8.047 8.047 0 008.174 7.859h12.105a8.039 8.039 0 008.166-7.859v-55.964l56.889-66.9V99.038a8.049 8.049 0 00-8.18-7.864zM20.262 136.759H8.157A8.027 8.027 0 000 144.617v102.81a8.027 8.027 0 008.157 7.859h12.105a8.034 8.034 0 008.166-7.859V144.619a8.034 8.034 0 00-8.166-7.858z"})})]})}))},ba=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256.003 256",children:Object(We.jsx)("path",{d:"M232.138 92.816h-68.953V23.863A23.937 23.937 0 00139.327.001h-22.623a23.948 23.948 0 00-23.891 23.862v68.953H23.86A23.936 23.936 0 00.001 116.681v22.639a23.934 23.934 0 0023.859 23.859h68.953v68.957a23.951 23.951 0 0023.891 23.865h22.623a23.94 23.94 0 0023.858-23.865v-68.957h68.953a23.931 23.931 0 0023.865-23.859v-22.639a23.933 23.933 0 00-23.865-23.865z"})})}))},ja=function(){return Object(We.jsx)(Ke.a,{viewBox:"0 0 10.847 6.572",children:Object(We.jsxs)("g",{transform:"translate(-84.793 -81.193)",children:[Object(We.jsx)("line",{x2:"9.64",transform:"translate(85.5 84.5)",fill:"none",stroke:"#000",strokeLinecap:"round",strokeWidth:"1"}),Object(We.jsx)("line",{y1:"2.558",x2:"2.645",transform:"translate(85.5 81.9)",fill:"none",stroke:"#000",strokeLinecap:"round",strokeWidth:"1"}),Object(We.jsx)("line",{x2:"2.645",y2:"2.558",transform:"translate(85.5 84.5)",fill:"none",stroke:"#000",strokeLinecap:"round",strokeWidth:"1"})]})})},ha=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",children:[Object(We.jsx)("defs",{children:Object(We.jsx)("clipPath",{id:"prefix__a",children:Object(We.jsx)("path",{d:"M0 0h256v256H0z"})})}),Object(We.jsx)("g",{clipPath:"url(#prefix__a)",children:Object(We.jsxs)("g",{transform:"translate(0 7)",stroke:"#000",strokeWidth:.2,children:[Object(We.jsx)("path",{"data-name":"Trazado 354",d:"M193.942 0a62.108 62.108 0 00-29.748 7.587A62.053 62.053 0 00133.9 46.6L15.083 47.639c-8.315 0-15.086 7.292-15.086 16.252v161.443c0 8.96 6.771 16.244 15.086 16.244h178.659c8.314 0 15.07-7.284 15.07-16.244v-103.09A62.124 62.124 0 00256 62.061 62.134 62.134 0 00193.942 0zm-.8 210.649c0 7.75-5.834 14.033-13.016 14.033h-151.4c-7.2 0-13.039-6.283-13.039-14.033V78.569c0-7.75 5.843-14.026 13.039-14.026h103.282a62.076 62.076 0 0061.133 59.539zm15.677-104.525v-.38a6.578 6.578 0 01-.417.535 46.408 46.408 0 01-14.457 2.327A46.59 46.59 0 01147.4 62.061a46.55 46.55 0 0124.244-40.867 46.566 46.566 0 0122.3-5.679 46.6 46.6 0 0146.55 46.546 46.6 46.6 0 01-31.679 44.063z"}),Object(We.jsx)("path",{"data-name":"Trazado 355",d:"M223.044 45.923a6.254 6.254 0 00-8.834.054l-23.551 23.506-9.52-9.526a6.3 6.3 0 00-8.583 0 6.3 6.3 0 00-.315 8.9l13.976 13.971a6.18 6.18 0 004.441 1.854 6.14 6.14 0 004.457-1.854l27.984-27.951.055-.054a6.242 6.242 0 00-.055-8.844z"}),Object(We.jsx)("rect",{"data-name":"Rect\\xE1ngulo 798",width:89.868,height:22.467,rx:.908,transform:"translate(44.912 89.868)"}),Object(We.jsx)("rect",{"data-name":"Rect\\xE1ngulo 799",width:112.335,height:22.467,rx:.908,transform:"translate(44.912 134.802)"}),Object(We.jsx)("rect",{"data-name":"Rect\\xE1ngulo 800",width:112.335,height:22.467,rx:.908,transform:"translate(44.912 179.735)"})]})})]})}))},ma=function(){return Object(We.jsx)(Ke.a,{viewBox:"0 0 11.656 3.101",children:Object(We.jsx)("path",{fill:"#081c42",d:"M-13157.172,1879.551h-11.656v-3.1h11.656v3.1Z",transform:"translate(13168.828 -1876.449)"})})},pa=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",children:[Object(We.jsx)("defs",{children:Object(We.jsx)("clipPath",{id:"prefix__a",children:Object(We.jsx)("path",{d:"M0 0h256v256H0z"})})}),Object(We.jsx)("g",{"data-name":"Add Folder",clipPath:"url(#prefix__a)",children:Object(We.jsxs)("g",{"data-name":"add folder-icn",children:[Object(We.jsx)("path",{"data-name":"Trazado 368",d:"M239.148 69.847a29.456 29.456 0 00-29.418-29.036h-81.186l-1.119-1.512c-5.078-6.886-12.756-17.3-26.105-17.3H49.357A29.455 29.455 0 0019.935 51.42a19.768 19.768 0 00.236 3.081v13.472A29.818 29.818 0 00-.001 96.157c0 .6.023 1.205.076 1.806l9.691 106.824a29.8 29.8 0 0029.742 28.62h175.73a29.8 29.8 0 0029.746-28.593l9.926-106.806c.059-.619.09-1.235.09-1.852a29.791 29.791 0 00-15.852-26.309zM49.357 42.018h51.963c6.586 0 13.645 18.813 20.7 18.813h87.709a9.429 9.429 0 019.4 9.4v4.7H40.176V51.416h-.229a9.431 9.431 0 019.41-9.398zM224.994 203.64a9.78 9.78 0 01-9.754 9.748H39.51a9.779 9.779 0 01-9.75-9.748L20.014 96.157a9.782 9.782 0 019.746-9.755h195.471a9.787 9.787 0 019.758 9.755z"}),Object(We.jsx)("path",{"data-name":"Trazado 369",d:"M204.192 136.08h-17.605v-17.605a7.148 7.148 0 00-7.125-7.126h-12.729a7.152 7.152 0 00-7.135 7.126v17.605h-17.605a7.148 7.148 0 00-7.125 7.127v12.733a7.148 7.148 0 007.125 7.125h17.605v17.606a7.153 7.153 0 007.135 7.127h12.729a7.149 7.149 0 007.125-7.127v-17.606h17.605a7.147 7.147 0 007.127-7.125v-12.733a7.147 7.147 0 00-7.127-7.127z"})]})})]})}))},Oa=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",children:[Object(We.jsx)("defs",{children:Object(We.jsx)("clipPath",{id:"prefix__a",children:Object(We.jsx)("path",{d:"M0 0h256v256H0z"})})}),Object(We.jsxs)("g",{"data-name":"IAM Policies",clipPath:"url(#prefix__a)",children:[Object(We.jsx)("path",{"data-name":"Trazado 339",d:"M238.026 44.559v-.074a12.563 12.563 0 00-12.75-11.864c-19.684.308-57.242-3.075-88.8-29.6a12.417 12.417 0 00-16.182-.047C88.663 29.55 51.103 32.944 31.536 32.627a12.513 12.513 0 00-12.855 11.93c-1.846 47.721-1.545 114.939 22.287 147.594 22.289 30.644 66.039 55.739 79.613 62.109a18.165 18.165 0 007.762 1.739 18.159 18.159 0 007.8-1.753c14.566-6.868 57.258-31.421 79.59-62.08 23.834-32.661 24.139-99.886 22.293-147.607zm-34.455 138.74c-20.369 27.982-61.17 51.362-73.861 57.349a3.255 3.255 0 01-2.75 0c-12.654-5.95-53.391-29.247-73.832-57.357C30.316 152.037 32.54 76.032 33.61 47.691h.279c21.967 0 60.824-4.515 94.463-31.857 33.59 27.335 72.461 31.849 94.549 31.849h.184c1.078 28.484 3.287 104.383-19.514 135.615z"}),Object(We.jsx)("path",{"data-name":"Trazado 339 - Contorno",d:"M128.337-.095a12.648 12.648 0 018.2 3.045 123.269 123.269 0 0047.012 24.357 145.567 145.567 0 0021.651 4.2 153.2 153.2 0 0017.757 1.038c.771 0 1.549-.006 2.315-.018h.341a12.443 12.443 0 018.574 3.472 12.512 12.512 0 013.936 8.492v.079c1.846 47.733 1.542 114.978-22.316 147.667-22.359 30.7-65.061 55.244-79.628 62.112a18.164 18.164 0 01-7.839 1.763 18.186 18.186 0 01-7.8-1.748c-13.569-6.367-57.329-31.451-79.652-62.141-23.849-32.678-24.152-99.92-22.306-147.656a12.707 12.707 0 013.888-8.538 12.338 12.338 0 018.59-3.5c.16 0 .322 0 .481.009.774.013 1.565.019 2.348.019a151.784 151.784 0 0017.7-1.043 145.24 145.24 0 0021.618-4.209 123.616 123.616 0 0047.024-24.4 12.5 12.5 0 018.106-3zm94.622 32.838a153.41 153.41 0 01-17.78-1.04 145.772 145.772 0 01-21.681-4.2 123.47 123.47 0 01-47.088-24.4 12.449 12.449 0 00-8.073-3 12.3 12.3 0 00-7.979 2.951 123.819 123.819 0 01-47.1 24.436 145.446 145.446 0 01-21.648 4.215 151.971 151.971 0 01-17.723 1.045c-.784 0-1.576-.006-2.353-.019-.16-.006-.319-.009-.476-.009a12.14 12.14 0 00-8.451 3.441 12.5 12.5 0 00-3.827 8.4c-1.845 47.705-1.544 114.9 22.268 147.53 22.3 30.656 66.018 55.716 79.575 62.077a17.988 17.988 0 007.719 1.729 17.966 17.966 0 007.754-1.743c14.554-6.862 57.217-31.385 79.552-62.049 23.821-32.639 24.123-99.839 22.278-147.546v-.078a12.308 12.308 0 00-3.874-8.352 12.243 12.243 0 00-8.437-3.417h-.337c-.766.018-1.541.024-2.318.024zm-94.607-17.036l.063.051a138.835 138.835 0 0051.551 26.156 161.07 161.07 0 0023.579 4.539 167.394 167.394 0 0019.356 1.132h.28v.1c.3 7.964.61 17.617.612 28.82 0 13.686-.473 26.462-1.415 37.971-2.643 32.308-8.945 55.486-18.73 68.89-20.381 28-61.205 51.393-73.9 57.38a3.3 3.3 0 01-1.413.314 3.364 3.364 0 01-1.421-.314c-12.67-5.958-53.437-29.288-73.871-57.389-9.788-13.41-16.091-36.606-18.733-68.943-.941-11.511-1.416-24.285-1.413-37.967 0-11.17.31-20.8.61-28.753v-.1h.375a166.332 166.332 0 0019.285-1.132 160.879 160.879 0 0023.543-4.54 139.159 139.159 0 0051.572-26.163zm94.636 32.078h-.087a167.573 167.573 0 01-19.379-1.133 161.259 161.259 0 01-23.608-4.544 139.037 139.037 0 01-51.562-26.143A139.369 139.369 0 0176.77 42.114a161.087 161.087 0 01-23.573 4.545 166.532 166.532 0 01-19.308 1.133h-.183c-.3 7.93-.6 17.528-.606 28.65 0 13.677.472 26.446 1.412 37.951 2.64 32.3 8.93 55.462 18.7 68.842 20.41 28.067 61.136 51.374 73.794 57.325a3.166 3.166 0 001.337.3 3.107 3.107 0 001.328-.3c12.682-5.982 53.466-29.352 73.823-57.317 9.764-13.374 16.053-36.518 18.693-68.788.941-11.5 1.417-24.274 1.414-37.955-.006-11.158-.312-20.776-.612-28.72z"}),Object(We.jsx)("path",{"data-name":"Trazado 340",d:"M156.169 81.703l-7.57-3.791-5.871-2.933-14.434-7.225v12.653l-15.666 6.259 15.666-6.259V67.754L100.407 81.7v9.854l-5.146 2.062v18.685l5.146.6v8.22l12.221-1.219v55.4l7.313 2.927v11.809l8.354 4.175v-88.515l-7.375 1.475V89.254l7.375-2.587v.007l7.363 2.58v17.911l-7.363-1.468v88.515l8.35-4.175v-11.809l13.846-5.493-.025-10.418-13.82 4.1v-11.81l13.846-2.752v-10.224l5.68-.511v-10.133h-12.209v-11.08l5.654.565 6.555.654v-9.854l5.154 1.031V93.618l-5.154-2.062zm3.275 13.188v15.119l-2.9-.581-2.25-.451v10.076l-4.5-.451-5.654-.564-2.066-.21v15.043h12.221v6.537l-3.968.345-1.709.151v10.4l-12.346 2.452-1.508.3v15.873l2.408-.716 11.412-3.393.033 6.627-12.666 5.024-1.187.466v11.931l-4.592 2.295v-83.189l5.113 1.031 2.25.444v-1.92l6.424 1.294V86.665l-7.316-2.933-5.049-2.018-1.422-.564V70.793l11.7 5.851 5.883 2.942 6.541 3.265v9.973l1.18.467z"}),Object(We.jsx)("path",{"data-name":"Trazado 340 - Contorno",d:"M128.194 67.595l.1.05.1-.05v.1l14.378 7.195 5.871 2.933 7.625 3.819v9.848l5.154 2.062v18.875l-5.154-1.031v9.842l-12.209-1.219v10.87h12.209v10.325l-5.68.511v10.214l-.081.016-13.765 2.736v11.594l13.82-4.1v.134l.025 10.487-.063.025-13.783 5.468v11.8l-.055.028-8.294 4.148v.1l-.1-.05-.1.05v-.1l-8.354-4.175v-11.8l-7.312-2.927v-55.352l-12.221 1.219v-8.242l-5.146-.6V93.554l.063-.025 5.083-2.036v-9.848l.055-.028 27.832-13.919zm0 12.747V67.919l-27.687 13.846v9.86l-5.146 2.062v18.528l5.146.6v8.2l12.221-1.219v55.438l7.313 2.927v11.814l8.153 4.075v-88.231l-7.375 1.475v-18.11l.067-.023 7.508-2.634v.077l7.363 2.58v18.1l-.12-.024-7.244-1.444v88.238l8.149-4.075v-11.815l.063-.025 13.783-5.468-.025-10.217-13.821 4.1v-12.026l.081-.016 13.765-2.736v-10.233l5.68-.511v-9.942h-12.209v-11.291l12.209 1.219v-9.864l5.154 1.031v-18.5l-5.154-2.062v-9.86L148.553 78l-5.871-2.933-14.289-7.15v12.559l-.063.025-15.666 6.259-.074-.186zm7.363 8.984l-7.273-2.548-7.265 2.548v17.728l7.175-1.435v-.04l.1.02.1-.02v.04l7.163 1.428zm-5.484-18.685l.145.072 17.584 8.794 6.6 3.293v9.967l1.116.442 4.03 1.614v15.308l-5.146-1.031v10.062l-4.61-.462-5.654-.564-1.957-.2v14.833h12.221v6.729l-5.68.5v10.394l-13.854 2.752v15.657l13.819-4.108v.133l.033 6.7-.063.025-12.666 5.024-1.125.441v11.924l-.055.028-4.737 2.367v-83.473l5.233 1.055 2.13.421v-1.92l6.424 1.294V86.744l-7.253-2.908-5.049-2.018-1.485-.589zm24.125 12.282l-6.485-3.237-17.439-8.721v10.128l1.359.539 5.049 2.018 7.379 2.958v22.346l-6.424-1.294v1.919l-2.37-.468-4.994-1.007v82.905l4.392-2.2v-11.937l1.251-.491 12.6-5-.032-6.426-13.821 4.109v-16.08l1.588-.316 12.265-2.436v-10.413l5.68-.5v-6.346h-12.221v-15.254l2.177.222 10.044 1v-10.087l5.146 1.031V94.954l-3.9-1.564-1.243-.492z"})]})]})}))},ga=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",children:[Object(We.jsx)("defs",{children:Object(We.jsx)("clipPath",{id:"prefix__a",children:Object(We.jsx)("path",{d:"M0 0h256v256H0z"})})}),Object(We.jsxs)("g",{clipPath:"url(#prefix__a)",children:[Object(We.jsx)("path",{"data-name":"Trazado 331",d:"M127.715 142.539a71.356 71.356 0 0071.279-71.27A71.356 71.356 0 00127.715 0a71.352 71.352 0 00-71.268 71.27 71.352 71.352 0 0071.268 71.269zm0-122.728a51.516 51.516 0 0151.463 51.458 51.514 51.514 0 01-51.463 51.458A51.5 51.5 0 0176.27 71.269a51.5 51.5 0 0151.445-51.458z"}),Object(We.jsx)("path",{"data-name":"Trazado 332",d:"M214.632 199.929a108.81 108.81 0 00-41.184-32.75 110.263 110.263 0 00-51.553-10.2c-31.26 1.594-62.109 17.729-80.5 42.12a115.58 115.58 0 00-1.8 2.467 36.039 36.039 0 00-2.746 36.946c5.68 10.951 16.691 17.49 29.441 17.49h122.867c12.885 0 23.883-6.627 29.4-17.719a36.865 36.865 0 00-3.925-38.354zm-13.812 29.539c-1.529 3.065-4.8 6.726-11.662 6.726H66.286c-7.25 0-10.545-4.264-11.861-6.8a16.032 16.032 0 011.361-16.416c.473-.655.938-1.305 1.43-1.952 14.951-19.828 40.129-32.961 65.688-34.266 1.408-.069 2.816-.1 4.213-.1 27.5 0 55.287 13.533 71.729 35.236a17.146 17.146 0 011.974 17.569z"})]})]})}))},xa=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",children:[Object(We.jsx)("defs",{children:Object(We.jsx)("clipPath",{id:"prefix__a",children:Object(We.jsx)("path",{d:"M0 0h256v256H0z"})})}),Object(We.jsxs)("g",{clipPath:"url(#prefix__a)",children:[Object(We.jsxs)("g",{transform:"translate(0 41)",children:[Object(We.jsx)("rect",{"data-name":"Rect\\xE1ngulo 801",width:117.064,height:25.116,rx:.908,transform:"translate(93.838)"}),Object(We.jsx)("rect",{"data-name":"Rect\\xE1ngulo 821",width:117.064,height:25.116,rx:.908,transform:"translate(93.838 105)"}),Object(We.jsx)("rect",{"data-name":"Rect\\xE1ngulo 822",width:117.064,height:25.116,rx:.908,transform:"translate(93.838 53)"}),Object(We.jsx)("path",{"data-name":"Trazado 357",d:"M143.734 189.393H24.57V36.448a8.842 8.842 0 00-8.648-8.961H8.633A8.844 8.844 0 000 36.448V206.04a8.844 8.844 0 008.633 8.961h135.1a8.847 8.847 0 008.648-8.961v-7.685a8.847 8.847 0 00-8.647-8.962z"})]}),Object(We.jsx)("path",{"data-name":"Rect\\xE1ngulo 818",d:"M66 20v170h170V20H66M61 0h180a15 15 0 0115 15v180a15 15 0 01-15 15H61a15 15 0 01-15-15V15A15 15 0 0161 0z"})]})]})}))},fa=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",children:[Object(We.jsx)("defs",{children:Object(We.jsx)("clipPath",{id:"prefix__a",children:Object(We.jsx)("path",{d:"M0 0h256v256H0z"})})}),Object(We.jsxs)("g",{clipPath:"url(#prefix__a)",children:[Object(We.jsx)("path",{"data-name":"Trazado 359",d:"M222.078 14.266h-50.793V6.25a6.248 6.248 0 00-6.25-6.25H91.93a6.248 6.248 0 00-6.25 6.25v8.016H34.887a6.28 6.28 0 00-6.277 6.277v15.982a6.278 6.278 0 006.277 6.275h187.191a6.278 6.278 0 006.277-6.275V20.543a6.28 6.28 0 00-6.277-6.277z"}),Object(We.jsx)("path",{"data-name":"Trazado 360",d:"M42.876 227.97a28.933 28.933 0 0028.844 28.848h113.516a28.934 28.934 0 0028.848-28.848V57.07H42.876z"})]})]})}))},va=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",children:[Object(We.jsx)("defs",{children:Object(We.jsx)("clipPath",{id:"prefix__a",children:Object(We.jsx)("path",{d:"M0 0h256v256H0z"})})}),Object(We.jsx)("g",{clipPath:"url(#prefix__a)",children:Object(We.jsx)("path",{"data-name":"Trazado 362",d:"M0 104.121c0-21.583 32.822-21.583 32.822 0v117.917h190.356V104.121c0-21.583 32.822-21.583 32.822 0v134.338a16.416 16.416 0 01-16.4 16.413H16.415A16.421 16.421 0 01.002 238.459V104.121zm144.415-85.112c0-21.574-32.826-21.574-32.826 0v137.162l-18.591-18.6c-15.263-15.267-38.474 7.945-23.211 23.211l46.51 46.518a16.427 16.427 0 0023.406 0l46.507-46.518c15.266-15.266-7.945-38.478-23.208-23.211l-18.587 18.6V19.009z"})})]})}))},ya=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",children:[Object(We.jsx)("defs",{children:Object(We.jsx)("clipPath",{id:"prefix__a",children:Object(We.jsx)("path",{d:"M0 0h256v256H0z"})})}),Object(We.jsxs)("g",{clipPath:"url(#prefix__a)",children:[Object(We.jsxs)("g",{"data-name":"Grupo 1486",children:[Object(We.jsxs)("g",{"data-name":"Grupo 1484",children:[Object(We.jsx)("path",{"data-name":"Trazado 333",d:"M70.255 122.248a31.622 31.622 0 01-11.457 2.213 31.969 31.969 0 01-31.937-31.947 31.977 31.977 0 0131.938-31.956 30.936 30.936 0 013.1.319 69.8 69.8 0 015.221-11.8 44.418 44.418 0 00-8.32-.811 44.293 44.293 0 00-44.236 44.251A44.29 44.29 0 0058.8 136.762a44.025 44.025 0 0019.6-4.629 71.644 71.644 0 01-8.145-9.885z"}),Object(We.jsx)("path",{"data-name":"Trazado 333 - Contorno",d:"M58.798 136.858a44.391 44.391 0 01-44.336-44.345 44.394 44.394 0 0144.336-44.351 44.185 44.185 0 018.339.813l.137.026-.068.121a69.972 69.972 0 00-5.213 11.787l-.025.075-.079-.008a26.67 26.67 0 01-1.074-.135 14.644 14.644 0 00-2.016-.184 31.883 31.883 0 00-31.837 31.856 31.878 31.878 0 0031.837 31.847 31.575 31.575 0 0011.421-2.206l.074-.029.045.065a71.777 71.777 0 008.133 9.868l.1.1-.124.061a43.942 43.942 0 01-19.65 4.639zm0-88.5a44.194 44.194 0 00-44.136 44.151 44.191 44.191 0 0044.136 44.145 43.728 43.728 0 0019.433-4.557 71.981 71.981 0 01-8.014-9.732 31.755 31.755 0 01-11.419 2.191A32.079 32.079 0 0126.76 92.509a32.083 32.083 0 0132.038-32.056 14.8 14.8 0 012.043.186c.323.045.655.091.987.126a70.243 70.243 0 015.135-11.624 43.9 43.9 0 00-8.165-.779z"})]}),Object(We.jsxs)("g",{"data-name":"Grupo 1485",children:[Object(We.jsx)("path",{"data-name":"Trazado 334",d:"M40.481 194.909H20.674a7.792 7.792 0 01-7.361-4.223 9.965 9.965 0 01.834-10.2c.3-.407.6-.813.879-1.213 9.295-12.311 24.939-20.463 40.781-21.269a47.36 47.36 0 012.637-.067 54.753 54.753 0 017.471.577 102.612 102.612 0 0114.035-9.3 67.547 67.547 0 00-24.754-3.491c-19.41.991-38.561 11.009-49.98 26.154-.377.5-.762 1.02-1.107 1.529a22.374 22.374 0 00-1.729 22.942 20.213 20.213 0 0018.295 10.858h19.52a43.187 43.187 0 01.286-12.297z"}),Object(We.jsx)("path",{"data-name":"Trazado 334 - Contorno",d:"M40.307 207.307H20.675a20.3 20.3 0 01-18.384-10.912 22.476 22.476 0 011.736-23.046c.345-.509.737-1.037 1.109-1.532 11.435-15.164 30.615-25.2 50.056-26.194a63.675 63.675 0 013.216-.082 68.1 68.1 0 0121.574 3.578l.217.072-.2.11a102.735 102.735 0 00-14.021 9.293l-.034.026-.042-.006a54.006 54.006 0 00-7.457-.576c-.956 0-1.817.022-2.631.067-15.83.805-31.428 8.94-40.707 21.229-.21.3-.44.615-.663.918l-.215.294a9.864 9.864 0 00-.826 10.092 7.665 7.665 0 007.272 4.169H40.6l-.02.117a43.109 43.109 0 00-.287 12.27zm18.1-61.565a63.32 63.32 0 00-3.207.081c-19.383.99-38.506 11-49.905 26.114a34.524 34.524 0 00-1.1 1.525 22.275 22.275 0 00-1.722 22.84 20.105 20.105 0 0018.206 10.8h19.407a43.3 43.3 0 01.281-12.1H20.679a8.5 8.5 0 01-5.127-1.539 7.782 7.782 0 01-2.323-2.738 10.064 10.064 0 01.841-10.3l.217-.3c.222-.3.451-.615.662-.917 9.316-12.338 24.971-20.5 40.858-21.311a47.775 47.775 0 012.642-.068 54.084 54.084 0 017.442.572 102.986 102.986 0 0113.815-9.175 67.852 67.852 0 00-21.298-3.484z"})]})]}),Object(We.jsxs)("g",{"data-name":"Grupo 1489",children:[Object(We.jsxs)("g",{"data-name":"Grupo 1487",children:[Object(We.jsx)("path",{"data-name":"Trazado 335",d:"M197.327 48.262a44.156 44.156 0 00-8.262.805 69.345 69.345 0 015.189 11.8c1.041-.1 2.023-.312 3.072-.312a32 32 0 0131.967 31.956 31.99 31.99 0 01-31.967 31.947 31.7 31.7 0 01-11.428-2.206 69.08 69.08 0 01-8.129 9.882 43.772 43.772 0 0019.557 4.622 44.3 44.3 0 0044.258-44.245 44.3 44.3 0 00-44.257-44.249z"}),Object(We.jsx)("path",{"data-name":"Trazado 335 - Contorno",d:"M197.327 48.162a44.4 44.4 0 0144.358 44.351 44.4 44.4 0 01-44.358 44.345 43.706 43.706 0 01-10.226-1.213 44.459 44.459 0 01-9.375-3.419l-.124-.061.1-.1a69.067 69.067 0 008.117-9.867l.044-.066.074.029a31.727 31.727 0 0011.392 2.2 31.893 31.893 0 0031.867-31.847 31.9 31.9 0 00-31.867-31.856 14.1 14.1 0 00-1.941.175c-.364.05-.741.1-1.122.136l-.079.007-.025-.075a69.406 69.406 0 00-5.182-11.785l-.067-.121.136-.026a44.373 44.373 0 018.278-.807zm0 88.5a44.2 44.2 0 0044.158-44.145 44.2 44.2 0 00-44.158-44.151 44.114 44.114 0 00-8.107.778 69.667 69.667 0 015.1 11.623c.349-.034.7-.082 1.034-.128a14.45 14.45 0 011.968-.177 32.1 32.1 0 0132.067 32.056 32.093 32.093 0 01-32.067 32.047 31.9 31.9 0 01-11.389-2.184 69.229 69.229 0 01-8 9.732 44.268 44.268 0 009.209 3.342 43.514 43.514 0 0010.185 1.204z"})]}),Object(We.jsxs)("g",{"data-name":"Grupo 1488",children:[Object(We.jsx)("path",{"data-name":"Trazado 336",d:"M251.293 172.396a67.438 67.438 0 00-25.553-20.339 68.486 68.486 0 00-32.018-6.333 66.456 66.456 0 00-17.867 3.549 102.608 102.608 0 0114.25 9.189c1.41-.184 2.826-.384 4.236-.454a48.142 48.142 0 012.637-.067c17.061 0 34.314 8.4 44.518 21.881a10.587 10.587 0 011.211 10.905c-.937 1.908-2.961 4.18-7.236 4.18h-19.963a43.424 43.424 0 01.318 12.3h19.645a19.845 19.845 0 0018.25-11 22.858 22.858 0 00-2.428-23.811z"}),Object(We.jsx)("path",{"data-name":"Trazado 336 - Contorno",d:"M196.993 145.541a67.292 67.292 0 0114.615 1.628 70.577 70.577 0 0114.176 4.8 67.561 67.561 0 0125.59 20.37 22.966 22.966 0 012.438 23.913 19.929 19.929 0 01-18.339 11.059h-19.757l.013-.111a43.365 43.365 0 00-.318-12.271l-.02-.117h20.082c4.232 0 6.222-2.243 7.146-4.124a10.484 10.484 0 00-1.2-10.8 55.017 55.017 0 00-19.652-15.966 56.7 56.7 0 00-24.786-5.876c-.934 0-1.819.023-2.631.067-1.252.062-2.531.23-3.767.393l-.462.061-.042.005-.033-.026a102 102 0 00-14.236-9.18l-.2-.109.216-.073a66.568 66.568 0 0117.895-3.554 58.345 58.345 0 013.272-.089zm38.482 61.567a19.734 19.734 0 0018.16-10.948 22.765 22.765 0 00-2.417-23.7 67.358 67.358 0 00-25.515-20.309 70.378 70.378 0 00-14.136-4.783 67.089 67.089 0 00-14.572-1.624c-1.086 0-2.183.028-3.261.083a66.243 66.243 0 00-17.623 3.471 101.92 101.92 0 0114.03 9.063l.42-.055c1.24-.163 2.522-.331 3.782-.394.815-.045 1.7-.067 2.642-.067a56.9 56.9 0 0124.875 5.9 55.22 55.22 0 0119.723 16.024 10.687 10.687 0 011.221 11.01c-.949 1.932-2.991 4.235-7.326 4.235h-19.845a43.562 43.562 0 01.313 12.1z"})]})]}),Object(We.jsxs)("g",{"data-name":"Grupo 1490",children:[Object(We.jsx)("path",{"data-name":"Trazado 337",d:"M128.094 139.18a56.158 56.158 0 01-56.092-56.091A56.157 56.157 0 01128.094 27a56.151 56.151 0 0156.08 56.089 56.151 56.151 0 01-56.08 56.091zm0-96.589a40.546 40.546 0 00-40.5 40.5 40.545 40.545 0 0040.5 40.5 40.545 40.545 0 0040.5-40.5 40.547 40.547 0 00-40.5-40.5z"}),Object(We.jsx)("path",{"data-name":"Trazado 337 - Contorno",d:"M128.094 139.28a56.255 56.255 0 01-56.192-56.191A56.254 56.254 0 01128.094 26.9a56.248 56.248 0 0156.18 56.189 56.249 56.249 0 01-56.18 56.191zm0-112.18a56.054 56.054 0 00-55.992 55.989 56.055 56.055 0 0055.992 55.991 56.049 56.049 0 0055.98-55.991 56.048 56.048 0 00-55.98-55.989zm0 96.587a40.645 40.645 0 01-40.6-40.6 40.645 40.645 0 0140.6-40.6 40.646 40.646 0 0140.6 40.6 40.646 40.646 0 01-40.6 40.6zm0-81a40.445 40.445 0 00-40.4 40.4 40.444 40.444 0 0040.4 40.4 40.445 40.445 0 0040.4-40.4 40.446 40.446 0 00-40.4-40.396z"}),Object(We.jsx)("path",{"data-name":"Trazado 338",d:"M176.44 228.467h-96.7a25.515 25.515 0 01-23.166-13.764 28.374 28.374 0 012.162-29.076c.459-.647.932-1.3 1.41-1.941 14.486-19.2 38.752-31.893 63.359-33.147a86.723 86.723 0 0140.559 8.028 85.8 85.8 0 0132.434 25.773 29.035 29.035 0 013.057 30.185c-4.328 8.728-12.98 13.942-23.115 13.942zm-48.83-62.446c-1.1 0-2.215.026-3.314.081-20.117 1.027-39.932 11.362-51.7 26.967-.383.51-.744 1.02-1.113 1.536a12.578 12.578 0 00-1.07 12.919c1.033 2 3.617 5.353 9.33 5.353h96.7c5.4 0 7.965-2.879 9.16-5.292a13.5 13.5 0 00-1.535-13.833c-12.952-17.08-34.812-27.734-56.458-27.734zm-61.238 22.357z"}),Object(We.jsx)("path",{"data-name":"Trazado 338 - Contorno",d:"M176.44 228.567h-96.7a25.622 25.622 0 01-23.255-13.818 28.481 28.481 0 012.169-29.179c.516-.727.978-1.363 1.412-1.944 14.5-19.216 38.808-31.932 63.435-33.187 1.367-.07 2.759-.1 4.137-.1a85.181 85.181 0 0118.512 2.063 89.373 89.373 0 0117.957 6.079 85.923 85.923 0 0132.471 25.8 29.131 29.131 0 013.066 30.29c-4.346 8.763-13.021 13.996-23.204 13.996zm-48.8-78.034c-1.375 0-2.763.035-4.127.1-24.568 1.252-48.818 13.939-63.285 33.108a91.64 91.64 0 00-1.408 1.939 28.278 28.278 0 00-2.155 28.972 25.424 25.424 0 0023.077 13.71h96.7c10.106 0 18.714-5.192 23.025-13.888a28.93 28.93 0 00-3.046-30.08 85.723 85.723 0 00-32.4-25.742 89.161 89.161 0 00-17.916-6.066 84.982 84.982 0 00-18.466-2.052zm48.8 62.443h-96.7a9.991 9.991 0 01-9.419-5.407 12.679 12.679 0 011.078-13.023l.122-.171c.32-.449.651-.912.993-1.367 11.788-15.63 31.627-25.978 51.776-27.007a66.38 66.38 0 013.319-.081 72.153 72.153 0 0131.533 7.471 70.07 70.07 0 0125 20.3 13.593 13.593 0 011.545 13.938c-1.206 2.44-3.792 5.348-9.247 5.348zm-48.83-46.856c-1.126 0-2.239.027-3.31.081-20.091 1.026-39.873 11.344-51.626 26.928-.339.453-.67.916-.99 1.363l-.122.171a12.477 12.477 0 00-1.063 12.815 9.8 9.8 0 009.241 5.3h96.7c5.353 0 7.887-2.847 9.07-5.236a13.39 13.39 0 00-1.525-13.728 69.869 69.869 0 00-24.931-20.242 71.95 71.95 0 00-31.444-7.454z"})]})]})]})}))},Sa=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",children:[Object(We.jsx)("defs",{children:Object(We.jsx)("clipPath",{id:"prefix__a",children:Object(We.jsx)("path",{d:"M0 0h256v256H0z"})})}),Object(We.jsxs)("g",{clipPath:"url(#prefix__a)",children:[Object(We.jsx)("path",{"data-name":"Trazado 394",d:"M222.618 87.575a26.021 26.021 0 00-23.281 14.4l-44.307-6.431a74.36 74.36 0 002.892-20.536A74.6 74.6 0 0083.286.439 74.6 74.6 0 008.644 75.008a74.6 74.6 0 0065.415 73.98l-1.38 25.365c-.127-.006-.249-.019-.371-.019a18.408 18.408 0 00-18.42 18.4 18.41 18.41 0 0018.42 18.4 18.411 18.411 0 0018.42-18.4 18.377 18.377 0 00-7.851-15.056l1.535-28.126a74.37 74.37 0 0032.006-7.723l39.5 51.236a36.657 36.657 0 00-10.488 25.695 36.82 36.82 0 0036.84 36.8 36.817 36.817 0 0036.834-36.8 36.817 36.817 0 00-36.834-36.8 36.637 36.637 0 00-18.137 4.794l-38.7-50.2A74.839 74.839 0 00151.4 105.48l45.242 6.568c-.029.517-.078 1.029-.078 1.551a26.037 26.037 0 0026.051 26.022 26.037 26.037 0 0026.05-26.022 26.037 26.037 0 00-26.047-26.024z"}),Object(We.jsx)("path",{"data-name":"Trazado 395",d:"M181.396 256a38.679 38.679 0 01-38.636-38.643 38.393 38.393 0 019.576-25.436l-36.435-47.307a74.862 74.862 0 01-28.494 6.932l-1.318 24.217a20.571 20.571 0 017.657 15.975 20.545 20.545 0 01-20.52 20.514 20.54 20.54 0 01-20.518-20.514 20.549 20.549 0 0118.6-20.432l1.125-20.571A75.865 75.865 0 018.2 75.818 75.907 75.907 0 0184.02-.005a75.908 75.908 0 0175.822 75.823 75.76 75.76 0 01-2.229 18.236l39.257 5.7a27.844 27.844 0 0124.216-13.965 28.051 28.051 0 0128.018 28.022 28.051 28.051 0 01-28.018 28.022 28.052 28.052 0 01-28.02-27.48l-40.61-5.9a76.059 76.059 0 01-23.551 28.463l35.308 45.854a38.644 38.644 0 0117.18-4.049 38.678 38.678 0 0138.633 38.634A38.678 38.678 0 01181.396 256zm-64.078-117.413l41.329 53.665-1.453 1.492a33.619 33.619 0 00-9.635 23.618 33.876 33.876 0 0033.837 33.84 33.875 33.875 0 0033.835-33.84 33.874 33.874 0 00-33.835-33.837 33.822 33.822 0 00-16.657 4.409l-1.814 1.027-40.89-53.094 2.092-1.434a71.22 71.22 0 0024.718-29.586l.739-1.65 48.482 7.038-.133 2.2c-.049.739-.073 1.055-.073 1.381a23.253 23.253 0 0023.227 23.225 23.249 23.249 0 0023.222-23.225 23.246 23.246 0 00-23.222-23.224 23.1 23.1 0 00-20.759 12.852l-.776 1.549-48.012-6.975.759-2.639a71.253 71.253 0 002.749-19.559A71.1 71.1 0 0084.022 4.794 71.1 71.1 0 0012.999 75.82a71.061 71.061 0 0062.243 70.465l2.225.273-1.608 29.524-2.318-.043h-.037a15.779 15.779 0 00-16 15.7 15.739 15.739 0 0015.721 15.717 15.741 15.741 0 0015.722-15.717 15.763 15.763 0 00-6.7-12.866l-1.09-.763 1.7-31.26 2.235-.033a70.305 70.305 0 0030.455-7.355z"})]})]})}))},Ca=function(){return Object(We.jsx)(Ke.a,{children:Object(We.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 257.016 208.01",children:Object(We.jsx)("path",{id:"sync-icn",d:"M18652.848-5631.2c0-.057.006-.114.006-.166l-5.4,6.524-9.992,11.438c-11.006,12.6-30.166-4.136-19.16-16.739l33.545-38.416a12.732,12.732,0,0,1,18.1-1.222l38.41,33.549c12.6,11.006-4.133,30.171-16.74,19.165l-14.342-12.527-2.316-2.123c0,.175.023.346.023.517a73.159,73.159,0,0,0,73.078,73.078,73.28,73.28,0,0,0,59.584-30.763,11.067,11.067,0,0,1,15.432-2.6,11.062,11.062,0,0,1,2.6,15.432,95.45,95.45,0,0,1-77.611,40.059A95.316,95.316,0,0,1,18652.848-5631.2Zm163.207,21.989-38.4-33.549c-12.6-11.011,4.131-30.176,16.738-19.17l14.338,12.532,2.32,2.118c0-.171-.023-.336-.023-.512a73.159,73.159,0,0,0-73.078-73.078,73.289,73.289,0,0,0-59.588,30.759,11.068,11.068,0,0,1-15.432,2.6,11.071,11.071,0,0,1-2.6-15.431,95.439,95.439,0,0,1,77.615-40.06,95.317,95.317,0,0,1,95.209,95.209c0,.057-.01.109-.01.166l5.4-6.529,9.992-11.433c11.006-12.6,30.17,4.136,19.16,16.739l-33.545,38.415a12.894,12.894,0,0,1-9.689,4.43A12.7,12.7,0,0,1,18816.055-5609.21Z",transform:"translate(-18614.49 5743.5)","stroke-miterlimit":"10","stroke-width":"1"})})})},ka=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",children:[Object(We.jsx)("defs",{children:Object(We.jsx)("clipPath",{id:"prefix__a",children:Object(We.jsx)("path",{d:"M0 0h256v256H0z"})})}),Object(We.jsx)("g",{clipPath:"url(#prefix__a)",children:Object(We.jsx)("path",{"data-name":"Trazado 358",d:"M183.841 0c21.633 0 21.633 32.9 0 32.9H65.693v190.737h118.148c21.633 0 21.633 32.89 0 32.89h-134.6a16.455 16.455 0 01-16.453-16.445V16.445A16.461 16.461 0 0149.241 0zM89.185 111.823c-21.609 0-21.609 32.89 0 32.89h79.539l-18.633 18.626c-15.3 15.3 7.961 38.545 23.242 23.258l46.628-46.616a16.441 16.441 0 000-23.442l-46.625-46.6c-15.281-15.3-38.547 7.952-23.242 23.249l18.633 18.636z"})})]})}))},wa=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",children:[Object(We.jsx)("defs",{children:Object(We.jsx)("clipPath",{id:"prefix__a",children:Object(We.jsx)("path",{d:"M0 0h256v256H0z"})})}),Object(We.jsxs)("g",{clipPath:"url(#prefix__a)",children:[Object(We.jsx)("path",{"data-name":"Trazado 371",d:"M146.3 18.756A109.776 109.776 0 0036.677 127.108l-12.934-12.937c-12.336-12.326-31.08 6.426-18.75 18.752l37.576 37.581a13.267 13.267 0 0018.908 0l37.566-37.581c12.336-12.326-6.412-31.078-18.746-18.752l-14.031 14.038a80.128 80.128 0 0180.033-79.8 80.135 80.135 0 0180.047 80.044 80.135 80.135 0 01-80.047 80.047 14.824 14.824 0 00-14.824 14.819 14.825 14.825 0 0014.824 14.823 109.818 109.818 0 00109.7-109.689A109.824 109.824 0 00146.3 18.756z"}),Object(We.jsx)("path",{"data-name":"Trazado 372",d:"M151.643 80.893c-.021-1.539-.109-3.244-1.205-4.326-1.125-1.122-2.9-1.175-4.482-1.151l-7.51.1a5.162 5.162 0 00-3.354.836c-1.105.946-1.187 2.6-1.187 4.05-.012 19.174.035 38.35-.057 57.525v.957l41.027 41.007a4.829 4.829 0 002.322 1.547 4.551 4.551 0 003.41-1.261 36.529 36.529 0 007.16-7.184 4.6 4.6 0 001.271-3.421 4.917 4.917 0 00-1.605-2.415l-30.076-29.895a20.639 20.639 0 01-4.781-6.135c-1.178-2.729-1.125-5.8-1.062-8.768q.424-20.735.129-41.466z"}),Object(We.jsxs)("g",{"data-name":"history-icn",children:[Object(We.jsx)("path",{"data-name":"Trazado 371",d:"M146.301 18.756A109.776 109.776 0 0036.678 127.108l-12.934-12.937c-12.336-12.326-31.08 6.426-18.75 18.752l37.576 37.581a13.267 13.267 0 0018.908 0l37.566-37.581c12.336-12.326-6.412-31.078-18.746-18.752l-14.031 14.038a80.128 80.128 0 0180.033-79.8 80.135 80.135 0 0180.047 80.044A80.135 80.135 0 01146.3 208.5a14.824 14.824 0 00-14.824 14.819 14.825 14.825 0 0014.824 14.823A109.818 109.818 0 00256 128.453 109.824 109.824 0 00146.301 18.756z"}),Object(We.jsx)("path",{"data-name":"Trazado 372",d:"M151.644 80.893c-.021-1.539-.109-3.244-1.205-4.326-1.125-1.122-2.9-1.175-4.482-1.151l-7.51.1a5.162 5.162 0 00-3.354.836c-1.105.946-1.187 2.6-1.187 4.05-.012 19.174.035 38.35-.057 57.525v.957l41.027 41.007a4.829 4.829 0 002.322 1.547 4.551 4.551 0 003.41-1.261 36.529 36.529 0 007.16-7.184 4.6 4.6 0 001.271-3.421 4.917 4.917 0 00-1.605-2.415l-30.076-29.895a20.639 20.639 0 01-4.781-6.135c-1.178-2.729-1.125-5.8-1.062-8.768q.424-20.735.129-41.466z"})]})]})]})}))},Ta=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",children:[Object(We.jsx)("defs",{children:Object(We.jsx)("clipPath",{id:"prefix__a",children:Object(We.jsx)("path",{d:"M0 0h256v256H0z"})})}),Object(We.jsxs)("g",{clipPath:"url(#prefix__a)",children:[Object(We.jsx)("path",{d:"M244.998 90.474l.049-.243 10.563-61.472a25.8 25.8 0 00-4.748-19.986A21.518 21.518 0 00233.739 0H22.255A21.507 21.507 0 005.138 8.773 25.862 25.862 0 00.384 28.759c5.223 30.384 16.209 94.421 25 145.533l.014.1c4.457 26 8.338 48.644 10.617 61.787 1.965 11.487 11.148 19.819 21.854 19.819h140.264c10.713 0 19.875-8.332 21.861-19.819l10.592-61.711.076-.375zm-203.928 72.5c-3.6-20.981-7.479-43.648-11.148-65.015H226.09l-11.168 65.015zm197.482-137.7l-9.2 53.735h-202.7c-3.7-21.626-7-40.758-9.221-53.735a5.736 5.736 0 011.041-4.394 4.738 4.738 0 013.764-1.934h211.5a4.732 4.732 0 013.775 1.939 5.691 5.691 0 011.042 4.387zm-26.893 156.649l-8.709 50.763a5.048 5.048 0 01-4.824 4.37H57.862a5.047 5.047 0 01-4.816-4.361c-1.93-11.25-5.066-29.464-8.717-50.771z"}),Object(We.jsx)("path",{"data-name":"buckets-icn - Contorno",d:"M22.254-.1h211.484a21.631 21.631 0 0117.2 8.812 25.9 25.9 0 014.767 20.064l-10.562 61.472-.049.245-14.341 83.618-.077.378-10.591 61.708a25.812 25.812 0 01-2.758 7.974 23.938 23.938 0 01-4.931 6.3 21.9 21.9 0 01-6.577 4.139 20.59 20.59 0 01-7.693 1.489H57.862c-10.748 0-19.979-8.37-21.952-19.9a38105 38105 0 01-9.73-56.615l-.887-5.172-.014-.106c-5.118-29.766-10.909-63.5-16.019-93.258-3.647-21.24-6.8-39.584-8.977-52.271A25.964 25.964 0 015.056 8.713 21.609 21.609 0 0122.254-.1zm175.873 256a20.389 20.389 0 007.619-1.474 21.694 21.694 0 006.517-4.1 23.741 23.741 0 004.891-6.248 25.615 25.615 0 002.736-7.912l10.592-61.711.077-.378L244.9 90.459l.049-.245 10.562-61.469a25.7 25.7 0 00-4.729-19.909A21.432 21.432 0 00233.739.102H22.255A21.41 21.41 0 005.217 8.836 25.762 25.762 0 00.482 28.745c2.181 12.687 5.33 31.031 8.977 52.271 5.11 29.76 10.9 63.492 16.019 93.262l.014.106.886 5.168c4.08 23.8 7.6 44.352 9.73 56.615 1.956 11.436 11.105 19.736 21.755 19.736zM22.242 18.845h211.5a4.828 4.828 0 013.855 1.979 5.793 5.793 0 011.058 4.464l-9.211 53.818H26.577l-.014-.083a36273.993 36273.993 0 00-5.487-31.976c-1.45-8.434-2.7-15.717-3.734-21.759a5.839 5.839 0 011.06-4.471 4.828 4.828 0 013.841-1.972zm207.029 60.062l9.183-53.652a5.593 5.593 0 00-1.02-4.31 4.63 4.63 0 00-3.7-1.9h-211.5a4.628 4.628 0 00-3.684 1.894 5.637 5.637 0 00-1.022 4.317 21347.9 21347.9 0 003.734 21.758c1.641 9.548 3.5 20.366 5.473 31.893zM29.803 97.862h196.405l-.02.117-11.182 65.1H40.985l-.014-.083-1.711-9.985c-3.119-18.2-6.343-37.015-9.437-55.03zm196.168.2H30.04c3.088 17.98 6.306 36.754 9.417 54.913l1.7 9.9H214.84zm-181.76 83.759h167.566l-.02.117-8.709 50.763a5.157 5.157 0 01-4.923 4.453H57.861a5.138 5.138 0 01-4.915-4.444c-.7-4.082-1.559-9.08-2.544-14.811a67263.85 67263.85 0 01-6.173-35.961zm167.33.2H44.448c2.318 13.531 4.444 25.9 6.153 35.844.985 5.731 1.844 10.729 2.544 14.811a4.939 4.939 0 004.718 4.278h140.264a4.958 4.958 0 004.726-4.287z"})]})]})}))},Na=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",children:[Object(We.jsx)("defs",{children:Object(We.jsx)("clipPath",{id:"prefix__a",children:Object(We.jsx)("path",{d:"M0 0h256v256H0z"})})}),Object(We.jsx)("g",{"data-name":"Object Browser",clipPath:"url(#prefix__a)",children:Object(We.jsxs)("g",{transform:"translate(19.001)",children:[Object(We.jsx)("circle",{"data-name":"Elipse 55",cx:31.523,cy:31.523,r:31.523,transform:"rotate(-10.901 768.453 -488.791)"}),Object(We.jsx)("rect",{"data-name":"Rect\\xE1ngulo 797",width:67.32,height:57.082,rx:1.895,transform:"translate(39.804 69.922)"}),Object(We.jsx)("path",{"data-name":"Trazado 322",d:"M77.056 165.044a6.656 6.656 0 00-11.523 0l-24.893 43.14a6.644 6.644 0 005.758 9.967h49.809a6.649 6.649 0 005.756-9.967z"}),Object(We.jsx)("path",{"data-name":"Trazado 323",d:"M217.014 77.196c.375-15.75.949-32.247-.506-47.947-1.1-11.752-6.187-21.735-17.832-25.915a44.135 44.135 0 00-5.014-1.447c-6.561-1.479-13.436-1.6-20.1-1.792-11.725-.342-23.453.361-35.178.313-23.488-.1-46.988.321-70.484.415-2.8.011-5.629.014-8.457.014h-42.2a17.262 17.262 0 00-17.25 17.24v220.688a17.258 17.258 0 0017.25 17.236h182.55a17.246 17.246 0 0017.236-17.236V128.816c0-17.189-.429-34.466-.015-51.62zm-20.93 145.99a14.9 14.9 0 01-14.883 14.893H32.826a14.876 14.876 0 01-14.875-14.893V33.658a14.876 14.876 0 0114.875-14.893h99.549v25.461a37.794 37.794 0 0037.754 37.76h25.955zm0-157.655h-25.955a21.328 21.328 0 01-21.3-21.3V18.77H181.2a14.9 14.9 0 0114.883 14.893z"})]})})]})}))},Ea=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",children:[Object(We.jsx)("defs",{children:Object(We.jsx)("clipPath",{id:"prefix__a",children:Object(We.jsx)("path",{d:"M0 0h256v256H0z"})})}),Object(We.jsxs)("g",{clipPath:"url(#prefix__a)",children:[Object(We.jsx)("path",{"data-name":"Trazado 341",d:"M247.385 99.227l-26.7-3.841a92.362 92.362 0 00-4.166-9.853l16.176-21.584a9.834 9.834 0 00-.9-12.9l-26.889-27.1a9.825 9.825 0 00-12.893-.887l-21.6 16.254a89.085 89.085 0 00-9.857-4.134l-3.83-26.7a9.856 9.856 0 00-9.852-8.476H108.73a9.843 9.843 0 00-9.844 8.476l-3.836 26.7a89.115 89.115 0 00-9.859 4.134L63.53 23.06a9.881 9.881 0 00-12.936.887l-26.881 26.9a9.832 9.832 0 00-.9 12.9l16.27 21.584a87.181 87.181 0 00-4.166 9.851l-26.68 3.843a9.85 9.85 0 00-8.482 9.854v38.036a9.851 9.851 0 008.482 9.854l26.68 3.84a85.76 85.76 0 004.166 9.855l-16.27 21.777a9.848 9.848 0 00.9 12.914l26.881 26.9a9.891 9.891 0 0012.936.879l21.561-16.256a85.986 85.986 0 009.859 4.136l3.844 26.705a9.843 9.843 0 009.857 8.475h38.031a9.867 9.867 0 009.859-8.475l3.842-26.705a90.284 90.284 0 009.859-4.136l21.568 16.157a9.852 9.852 0 0012.906-.878l26.9-26.9a9.856 9.856 0 00.889-12.915l-16.061-21.485a89.562 89.562 0 004.131-9.853l26.709-3.842a9.867 9.867 0 008.475-9.853v-38.133a9.868 9.868 0 00-8.374-9.749zm-11.236 39.413l-24.443 3.549a9.888 9.888 0 00-8.088 7.1 82.022 82.022 0 01-6.875 17.436 9.813 9.813 0 000 10.549l14.764 19.707-14.764 15.072-19.719-15.072a9.863 9.863 0 00-10.461 0 75.566 75.566 0 01-17.711 7.291 9.814 9.814 0 00-7.105 8.085l-3.549 24.034h-20.895l-3.549-24.436a9.8 9.8 0 00-7.092-8.073 76.134 76.134 0 01-17.738-7.294 9.831 9.831 0 00-10.439.393l-19.711 14.777-15.072-14.777 15.072-19.707a9.844 9.844 0 000-10.549 82.861 82.861 0 01-7.3-17.634 9.841 9.841 0 00-8.074-7.095l-24.035-3.55v-20.889l24.443-3.55a9.85 9.85 0 008.074-7.1 82.89 82.89 0 016.891-17.635 9.84 9.84 0 000-10.546l-15.072-19.71 15.072-15.071 19.711 15.071a9.816 9.816 0 0010.439 0 76.209 76.209 0 0117.738-7.291 9.806 9.806 0 007.092-8.074l3.549-24.044h20.895l3.549 24.435a9.839 9.839 0 007.105 8.084 75.193 75.193 0 0117.711 7.291 9.866 9.866 0 0010.461-.4l19.719-14.778 15.057 14.778-15.057 19.71a9.822 9.822 0 00-.7 10.839 82.237 82.237 0 017.3 17.644 9.84 9.84 0 008.074 7.088l24.443 3.547z"}),Object(We.jsx)("path",{"data-name":"Trazado 342",d:"M127.742 78.73a49.269 49.269 0 00-49.258 49.275 49.266 49.266 0 0049.258 49.267 49.271 49.271 0 0049.281-49.267 49.274 49.274 0 00-49.281-49.275zm0 78.836a29.553 29.553 0 01-29.547-29.561 29.56 29.56 0 0129.547-29.57 29.555 29.555 0 0129.564 29.57 29.548 29.548 0 01-29.564 29.561z"})]})]})}))},Aa=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",children:[Object(We.jsx)("defs",{children:Object(We.jsx)("clipPath",{id:"prefix__a",children:Object(We.jsx)("path",{d:"M0 0h256v256H0z"})})}),Object(We.jsx)("g",{clipPath:"url(#prefix__a)",children:Object(We.jsx)("path",{"data-name":"Trazado 370",d:"M-.001 109.548c0-20.969 32.832-20.969 32.832 0v114.558h190.344V109.548c0-20.969 32.824-20.969 32.824 0v130.505a16.188 16.188 0 01-16.41 15.945H16.41A16.188 16.188 0 010 240.053V109.548zm111.583 78.131c0 20.973 32.828 20.973 32.828 0V54.437l18.595 18.066c15.263 14.825 38.467-7.724 23.208-22.548L139.696 4.763a16.756 16.756 0 00-23.4 0L69.791 49.955c-15.259 14.823 7.945 37.373 23.208 22.548l18.589-18.066v133.242z"})})]})}))},_a=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",children:[Object(We.jsx)("defs",{children:Object(We.jsx)("clipPath",{id:"prefix__a",children:Object(We.jsx)("path",{d:"M0 0h256v256H0z"})})}),Object(We.jsxs)("g",{clipPath:"url(#prefix__a)",children:[Object(We.jsx)("path",{"data-name":"Trazado 343",d:"M238.7 0H17.3A17.324 17.324 0 000 17.3v221.4a17.316 17.316 0 0017.3 17.291h221.4A17.316 17.316 0 00256 238.7V17.3A17.324 17.324 0 00238.7 0zm-15.631 238H32.931a14.938 14.938 0 01-14.932-14.938V89.673h220v133.394a14.938 14.938 0 01-14.93 14.938z"}),Object(We.jsx)("path",{"data-name":"Trazado 343 - Contorno",d:"M17.3-.1h221.4a17.42 17.42 0 0117.4 17.4v221.4a17.415 17.415 0 01-17.4 17.391H17.3A17.415 17.415 0 01-.1 238.7V17.3A17.42 17.42 0 0117.3-.1zm221.4 255.989a17.215 17.215 0 0017.2-17.19v-221.4a17.22 17.22 0 00-17.2-17.2H17.3a17.22 17.22 0 00-17.2 17.2v221.4a17.215 17.215 0 0017.2 17.19zM17.9 89.573h220.2v133.494a14.944 14.944 0 01-4.4 10.633 14.93 14.93 0 01-10.627 4.4H32.931a14.93 14.93 0 01-10.627-4.4 14.942 14.942 0 01-4.4-10.633zm220 .2H18.1v133.294a14.744 14.744 0 004.346 10.492 14.73 14.73 0 0010.486 4.346h190.139a14.73 14.73 0 0010.486-4.346 14.744 14.744 0 004.346-10.492z"}),Object(We.jsx)("path",{"data-name":"Trazado 344",d:"M126.005 123.197H63.948a6.935 6.935 0 00-6.814 7.053v16.317a6.941 6.941 0 006.814 7.06h62.057a6.927 6.927 0 006.793-7.06V130.25a6.921 6.921 0 00-6.793-7.053z"}),Object(We.jsx)("path",{"data-name":"Trazado 344 - Contorno",d:"M63.948 123.097h62.057a6.726 6.726 0 014.878 2.1 7.247 7.247 0 012.015 5.057v16.317a7.038 7.038 0 01-6.893 7.16H63.948a7.048 7.048 0 01-6.915-7.16v-16.317a7.045 7.045 0 016.915-7.157zm62.057 30.429a6.838 6.838 0 006.693-6.96v-16.317a7.046 7.046 0 00-1.959-4.919 6.526 6.526 0 00-4.733-2.034H63.949a6.845 6.845 0 00-6.714 6.953v16.317a6.848 6.848 0 006.714 6.96z"})]})]})}))},Ia=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 258.998 259",children:Object(We.jsx)("path",{"data-name":"total-objects-icn",d:"M.498 129.502a129.147 129.147 0 01129-129 129.149 129.149 0 01129 129 129.146 129.146 0 01-129 129 129.143 129.143 0 01-129-129zm20 0a109.12 109.12 0 00109 109 109.124 109.124 0 00109-109 109.127 109.127 0 00-109-109 109.124 109.124 0 00-109 109zm27.77 31.828a37.9 37.9 0 0137.857-37.858 37.9 37.9 0 0137.854 37.858 37.9 37.9 0 01-37.854 37.858 37.9 37.9 0 01-37.857-37.86zm108.971 35.211a17.56 17.56 0 01-17.543-17.538v-37.989a17.565 17.565 0 0117.543-17.543h37.984a17.565 17.565 0 0117.543 17.543v37.989a17.56 17.56 0 01-17.543 17.538zm-55.309-81.945a13.4 13.4 0 01-11.566-6.676 13.412 13.412 0 010-13.353l27.07-46.884A13.392 13.392 0 01129 41.002a13.384 13.384 0 0111.564 6.681l27.07 46.884a13.383 13.383 0 010 13.353 13.4 13.4 0 01-11.566 6.676z",stroke:"rgba(0,0,0,0)",strokeMiterlimit:10})})}))},Ma=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",children:Object(We.jsx)("circle",{"data-name":"circle-icn",cx:128,cy:128,r:128})})}))},za=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 255.534 164.865",children:[Object(We.jsx)("path",{"data-name":"Trazado 408",d:"M250.595 66.052A146.967 146.967 0 00127.767 0 146.965 146.965 0 004.94 66.052a29.628 29.628 0 000 32.76 146.965 146.965 0 00122.827 66.052 146.967 146.967 0 00122.828-66.052 29.63 29.63 0 000-32.76zm-17.648 21.08a125.854 125.854 0 01-105.18 56.57 125.855 125.855 0 01-105.18-56.57 8.5 8.5 0 010-9.4 125.855 125.855 0 01105.18-56.57 125.855 125.855 0 01105.18 56.569 8.5 8.5 0 010 9.401z"}),Object(We.jsx)("path",{"data-name":"Trazado 409",d:"M127.767 28.002a54.492 54.492 0 00-54.431 54.43 54.492 54.492 0 0054.431 54.431 54.493 54.493 0 0054.431-54.431 54.493 54.493 0 00-54.431-54.43zm0 87.7a33.305 33.305 0 01-33.268-33.268 33.305 33.305 0 0133.268-33.267 33.305 33.305 0 0133.263 33.265 33.305 33.305 0 01-33.263 33.268z"})]})}))},Da=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 229.038 256",children:[Object(We.jsx)("path",{"data-name":"Trazado 406",d:"M188.653 75.155h-25.707V48.423A48.48 48.48 0 00114.521-.002a48.48 48.48 0 00-48.425 48.425v26.732h-25.71A40.5 40.5 0 00.001 115.68v85.128a40.506 40.506 0 0039.347 40.512l75.172 14.677 75.172-14.677a40.506 40.506 0 0039.347-40.512V115.68a40.5 40.5 0 00-40.386-40.525zm-102.5-26.732a28.4 28.4 0 0128.364-28.365 28.4 28.4 0 0128.364 28.365v26.732H86.152zm122.822 152.385a20.418 20.418 0 01-20.324 20.465h-.97l-73.164 14.285-73.164-14.285h-.97a20.418 20.418 0 01-20.324-20.465V115.68a20.418 20.418 0 0120.324-20.465h148.269a20.418 20.418 0 0120.324 20.465z"}),Object(We.jsx)("path",{"data-name":"Trazado 407",d:"M114.262 140.44a19.085 19.085 0 00-19.085 19.086 19.066 19.066 0 008.4 15.818v15.377a10.1 10.1 0 0010.073 10.073h1.218a10.1 10.1 0 0010.073-10.073v-15.377a19.067 19.067 0 008.4-15.818 19.086 19.086 0 00-19.079-19.086z"})]})}))},La=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 123.523 250.048",children:Object(We.jsx)("path",{d:"M122.868 61.247q-9.479-15.673-19.012-31.309c-3.3-5.408-6.654-10.786-10-16.167l-1.325-1.954c-6.086-9.265-18.136-15.384-29.822-9.5-10.457 5.262-14.978 17.8-9.618 28.2 2.035 3.947 5.414 7.281 8.518 10.58 9.561 10.159 19.427 20.03 28.91 30.258a29.852 29.852 0 01-10.4 48.02l-.636.26V72.047a154.076 154.076 0 00-44.533 34.5c-19.719 22-31.377 49.48-34.95 69.532 10.834-5.516 21.518-10.959 32.206-16.4 10.708-5.444 21.342-10.792 32.457-16.439v91.767l14.825 15.04V135.519s.338-.161 1.449-.756c4.371-2.328 8.957-4.368 12.991-7.195a43.9 43.9 0 006.439-66.377C89.354 49.673 78.29 38.206 67.292 26.676c-3.2-3.358-3.131-7.607-.009-10.574 3.045-2.9 7.4-2.65 10.625.6 1.533 1.545 11.859 12.453 15.54 16.314q13.952 14.615 27.951 29.176a19.907 19.907 0 001.545 1.324l.58-.341a9.257 9.257 0 00-.656-1.928zm-58.237 64.956a2.675 2.675 0 01-1.356 1.808c-5.895 3.125-11.838 6.167-17.775 9.217-7.041 3.619-14.092 7.219-21.642 11.091a140.009 140.009 0 0140.548-50.246l.263-.218c.011 9.192.044 19.154-.038 28.348z"})})}))},Fa=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 217.439 256",children:[Object(We.jsx)("path",{"data-name":"Trazado 467",d:"M216.995 77.194c.388-15.753.958-32.241-.5-47.941-1.094-11.756-6.192-21.735-17.831-25.916a42.7 42.7 0 00-5.016-1.447c-6.551-1.479-13.433-1.6-20.09-1.8-11.727-.343-23.449.364-35.176.313-23.494-.1-46.986.324-70.48.415q-4.226.015-8.455.017H17.241A17.26 17.26 0 00.001 18.076v220.678a17.26 17.26 0 0017.24 17.241h182.541a17.26 17.26 0 0017.241-17.241V128.812c-.001-17.183-.447-34.459-.028-51.618zm-20.921 145.989a14.888 14.888 0 01-14.888 14.887H32.817a14.888 14.888 0 01-14.888-14.887V33.658A14.888 14.888 0 0132.817 18.77h99.548v25.458a37.8 37.8 0 0037.757 37.76h25.952zm0-157.657h-25.952a21.32 21.32 0 01-21.295-21.3V18.768h32.358a14.889 14.889 0 0114.888 14.888z"}),Object(We.jsx)("path",{"data-name":"Trazado 468",d:"M148.462 106.733h-11.678V94.557a28.114 28.114 0 00-28.066-27.984h-.044a28.117 28.117 0 00-28.069 27.99v12.17H68.924A23.834 23.834 0 0045.148 130.5v45.491a23.675 23.675 0 0022.986 23.75l40.558 7.889 40.559-7.889a23.675 23.675 0 0022.986-23.753v-45.492a23.832 23.832 0 00-23.775-23.763zM95.59 94.563a13.109 13.109 0 0113.091-13.042h.023a13.107 13.107 0 0113.087 13.042v12.17h-26.2zm61.656 81.424a8.83 8.83 0 01-8.788 8.821h-.725L108.69 192.4l-38.843-7.553-.4-.039h-.515a8.833 8.833 0 01-8.794-8.822v-45.49a8.831 8.831 0 018.789-8.82h79.529a8.831 8.831 0 018.794 8.821z"}),Object(We.jsx)("path",{"data-name":"Trazado 469",d:"M108.556 141.524a12.366 12.366 0 00-12.352 12.351 12.324 12.324 0 004.507 9.544v7.2a7.547 7.547 0 007.517 7.511h.659a7.548 7.548 0 007.511-7.517v-7.191a12.326 12.326 0 004.507-9.542 12.367 12.367 0 00-12.349-12.356z"})]})}))},Ra=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 217.439 256",children:[Object(We.jsx)("path",{"data-name":"Trazado 461",d:"M216.997 77.195c.386-15.753.957-32.242-.5-47.942-1.094-11.755-6.193-21.735-17.832-25.914a42.458 42.458 0 00-5.017-1.448c-6.549-1.479-13.432-1.6-20.09-1.8-11.726-.343-23.448.366-35.176.314-23.494-.1-46.985.324-70.479.415q-4.228.017-8.456.017H17.241A17.26 17.26 0 00.001 18.079v220.678a17.26 17.26 0 0017.24 17.24H199.78a17.259 17.259 0 0017.24-17.24V128.812c.002-17.183-.44-34.458-.023-51.617zm-20.922 145.988a14.888 14.888 0 01-14.888 14.888H32.819a14.888 14.888 0 01-14.888-14.888V33.658A14.888 14.888 0 0132.819 18.77h99.547v25.459a37.8 37.8 0 0037.757 37.758h25.952zm0-157.657h-25.952a21.32 21.32 0 01-21.295-21.3V18.767h32.359a14.888 14.888 0 0114.888 14.888z"}),Object(We.jsx)("path",{"data-name":"Trazado 462",d:"M173.9 109.948H43.539a8.455 8.455 0 00-8.455 8.455v99.762a8.455 8.455 0 008.455 8.456H173.9a8.456 8.456 0 008.455-8.456v-99.761a8.455 8.455 0 00-8.455-8.456zM51.994 160.112h26.543v16.346H51.994zm43.453 0h26.544v16.346H95.447zm43.454 0h26.544v16.346h-26.544zm26.544-16.91h-26.544v-16.344h26.544zm-43.454 0H95.447v-16.344h26.544zm-70-16.344h26.543v16.346H51.991zm0 66.51h26.543v16.343H51.991zm43.453 0h26.544v16.343H95.444zm70 16.343H138.9v-16.343h26.544z"})]})}))},Pa=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 217.439 256",children:Object(We.jsxs)("g",{transform:"translate(3467.334 -3812.007)",children:[Object(We.jsx)("path",{"data-name":"Trazado 436",d:"M-3395.774 3897.42a17.686 17.686 0 00-5.245-10.691c-2.691-2.615-7.129-5.479-11.512-5.676-10-.465-18.68 6.74-19.754 16.366l-2.853 25.542a21.725 21.725 0 00-.126 2.327 21.263 21.263 0 0021.193 21.28h.043a20.635 20.635 0 0018.294-11.19 27.973 27.973 0 002.932-12.257c.2-5.784-.8-11.752-1.756-17.522-.475-2.872-.926-5.585-1.216-8.179zm-18.24-3.68a4.229 4.229 0 014.224 4.224 4.23 4.23 0 01-4.224 4.225 4.231 4.231 0 01-4.225-4.225 4.23 4.23 0 014.226-4.224zm0 40.129a10.573 10.573 0 01-10.561-10.561 10.573 10.573 0 0110.561-10.56 10.573 10.573 0 0110.561 10.56 10.574 10.574 0 01-10.56 10.561z"}),Object(We.jsx)("circle",{"data-name":"Elipse 63",cx:2.111,cy:2.111,r:2.111,transform:"translate(-3416.125 3921.197)"}),Object(We.jsx)("path",{"data-name":"Trazado 437",d:"M-3250.337 3889.2c.387-15.754.958-32.242-.5-47.942-1.093-11.755-6.192-21.735-17.832-25.915a42.461 42.461 0 00-5.016-1.447c-6.549-1.479-13.432-1.6-20.09-1.8-11.727-.344-23.449.364-35.176.314-23.494-.1-46.986.322-70.479.414q-4.228.016-8.456.017h-42.206a17.26 17.26 0 00-17.241 17.24v220.68a17.26 17.26 0 0017.241 17.24h182.54a17.26 17.26 0 0017.241-17.24v-109.942c-.001-17.184-.448-34.459-.026-51.619zm-20.922 145.987a14.889 14.889 0 01-14.888 14.888h-118.62v-21.342c.206.015.412.032.621.032h16.262a8.456 8.456 0 008.455-8.455 8.455 8.455 0 00-8.455-8.455h-16.262c-.209 0-.415.016-.621.031v-23.6c.206.015.412.032.621.032h16.262a8.455 8.455 0 008.455-8.455 8.455 8.455 0 00-8.455-8.455h-16.262c-.209 0-.415.017-.621.031v-20.75a20.4 20.4 0 01-9.259 2.222h-.043a21.066 21.066 0 01-7.607-1.45l-.567-.029h-16.257a8.454 8.454 0 00-8.455 8.455 8.454 8.454 0 008.455 8.455h16.261c.192 0 .379-.016.567-.028v23.186a8.726 8.726 0 00-.8-.04h-16.261a8.455 8.455 0 00-8.455 8.455 8.455 8.455 0 008.455 8.455h16.261c.269 0 .535-.016.8-.041v41.751h-12.839a14.89 14.89 0 01-14.889-14.888v-189.527a14.889 14.889 0 0114.889-14.888h99.548v25.458a37.8 37.8 0 0037.757 37.76h25.952zm0-157.657h-25.952a21.319 21.319 0 01-21.295-21.3v-25.458h32.359a14.888 14.888 0 0114.888 14.888z"})]})})}))},Ba=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 217.438 256",children:Object(We.jsxs)("g",{"data-name":"Grupo 1552",children:[Object(We.jsx)("path",{"data-name":"Trazado 470",d:"M216.997 77.195c.387-15.753.958-32.242-.5-47.941-1.093-11.756-6.193-21.735-17.832-25.915a42.466 42.466 0 00-5.016-1.447c-6.549-1.479-13.431-1.6-20.09-1.8-11.726-.345-23.448.365-35.176.314-23.494-.1-46.986.322-70.479.414q-4.228.016-8.456.017H17.242A17.261 17.261 0 00.001 18.079v220.679a17.26 17.26 0 0017.241 17.24h182.54a17.26 17.26 0 0017.241-17.24V128.813c-.002-17.184-.448-34.459-.026-51.618zm-20.921 145.986a14.889 14.889 0 01-14.888 14.889H32.819a14.89 14.89 0 01-14.889-14.889V33.659a14.888 14.888 0 0114.889-14.888h99.548v25.458a37.8 37.8 0 0037.756 37.76h25.952zm0-157.657h-25.952a21.32 21.32 0 01-21.295-21.3V18.766h32.359a14.887 14.887 0 0114.888 14.888z"}),Object(We.jsx)("path",{"data-name":"Trazado 471",d:"M151.22 93.837l-67.656 9.02-.128.016a13.3 13.3 0 00-12.025 13.473v55.664a22.946 22.946 0 00-7.98-1.435 23.086 23.086 0 00-23.06 23.061 23.085 23.085 0 0023.06 23.058 23.084 23.084 0 0023.059-23.058V150.41c.361-4.418 1.57-5.6 2.015-5.89l58.69-7.827a1.448 1.448 0 01.764.239 1.855 1.855 0 01.25 1.174v23.663a22.994 22.994 0 00-7.981-1.433 23.086 23.086 0 00-23.059 23.059 23.085 23.085 0 0023.059 23.058 23.085 23.085 0 0023.059-23.058v-77.608c0-4.089-1.2-7.245-3.565-9.382a11.107 11.107 0 00-8.502-2.568zM63.431 201.611a7.988 7.988 0 01-7.979-7.979 7.989 7.989 0 017.979-7.98 7.99 7.99 0 017.98 7.98 7.989 7.989 0 01-7.984 7.98zm84.776-82.429c-.23 1.876-1.1 2.3-1.539 2.369l-57.957 7.728-.134.018a6.168 6.168 0 01-2.088 0v-8.793c0-2.208.833-2.8 1.762-3.063l58.3-7.776a2.288 2.288 0 011.444.261 1.969 1.969 0 01.215 1.139zm-7.979 72.19a7.991 7.991 0 01-7.98-7.981 7.991 7.991 0 017.98-7.981 7.991 7.991 0 017.981 7.979 7.993 7.993 0 01-7.989 7.984z"})]})})}))},Ua=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 217.439 256",children:[Object(We.jsx)("path",{"data-name":"Trazado 447",d:"M160.658 125.38a51.282 51.282 0 00-1.483-3.533l8.145-10.875a7.2 7.2 0 00-.642-9.386l-14.659-14.767a7.2 7.2 0 00-9.387-.646l-10.881 8.2a51.149 51.149 0 00-3.53-1.482l-1.939-13.476a7.12 7.12 0 00-7.15-6.163H98.377a7.156 7.156 0 00-7.166 6.16L89.27 92.891c-1.2.45-2.377.947-3.532 1.483l-10.929-8.2a7.2 7.2 0 00-9.391.646l-14.654 14.653a7.2 7.2 0 00-.648 9.388l8.2 10.881a51.536 51.536 0 00-1.482 3.53l-13.474 1.939a7.181 7.181 0 00-6.165 7.15v20.7a7.186 7.186 0 006.16 7.165l13.479 1.939a50.6 50.6 0 001.484 3.535l-8.2 10.98a7.2 7.2 0 00.646 9.391l14.654 14.653a7.2 7.2 0 009.387.647l10.882-8.2a50.342 50.342 0 003.528 1.483l1.94 13.474a7.185 7.185 0 007.081 6.165h20.771a7.22 7.22 0 007.166-6.16l1.941-13.479a50.349 50.349 0 003.531-1.484l10.875 8.143a7.2 7.2 0 009.392-.646l14.654-14.654a7.2 7.2 0 00.65-9.381l-8.1-10.828a50.638 50.638 0 001.483-3.535l13.474-1.938a7.182 7.182 0 006.166-7.15v-20.77a7.13 7.13 0 00-6.093-7.1zm-12.348 30.522a42.914 42.914 0 01-3.577 9.063 7.2 7.2 0 00.038 7.61l7.2 9.616-5.855 5.973-9.47-7.247-.139-.1a7.179 7.179 0 00-7.534-.038 39.4 39.4 0 01-9.257 3.8 7.171 7.171 0 00-5.159 5.873l-1.707 11.559h-8.267l-1.709-11.767a7.173 7.173 0 00-5.178-5.883 39.4 39.4 0 01-9.232-3.8 7.235 7.235 0 00-7.666.336l-9.5 7.124-5.972-5.855 7.245-9.47.09-.13a7.156 7.156 0 00.052-7.583 42.986 42.986 0 01-3.81-9.216 7.171 7.171 0 00-5.872-5.161l-11.559-1.7v-8.26l11.768-1.708a7.179 7.179 0 005.885-5.187 42.929 42.929 0 013.577-9.167 7.2 7.2 0 00-.041-7.605l-7.344-9.613 5.982-5.985 9.484 7.256.139.1a7.19 7.19 0 007.534.037 39.452 39.452 0 019.256-3.8 7.167 7.167 0 005.16-5.872l1.705-11.559h8.268l1.708 11.768a7.179 7.179 0 005.178 5.883 39.369 39.369 0 019.232 3.794 7.237 7.237 0 007.668-.334l9.5-7.125 5.971 5.855-7.252 9.479a7.147 7.147 0 00-.511 7.865 42.947 42.947 0 013.81 9.217 7.173 7.173 0 005.877 5.162l11.792 1.712.117 8.208-11.746 1.706a7.179 7.179 0 00-5.879 5.17z"}),Object(We.jsx)("path",{"data-name":"Trazado 448",d:"M108.719 119.554a25.249 25.249 0 00-25.22 25.22 25.249 25.249 0 0025.22 25.221 25.249 25.249 0 0025.221-25.221 25.249 25.249 0 00-25.221-25.22zm12.6 25.22a12.609 12.609 0 01-12.6 12.6 12.61 12.61 0 01-12.6-12.6 12.611 12.611 0 0112.6-12.6 12.61 12.61 0 0112.596 12.6z"}),Object(We.jsx)("path",{"data-name":"Trazado 449",d:"M216.997 77.194c.388-15.754.957-32.242-.5-47.941-1.094-11.755-6.193-21.735-17.831-25.914a42.705 42.705 0 00-5.016-1.448c-6.551-1.478-13.433-1.6-20.09-1.8-11.727-.344-23.449.366-35.177.314-23.493-.1-46.985.323-70.479.414q-4.228.017-8.455.017h-42.21A17.261 17.261 0 00-.002 18.076v220.68a17.261 17.261 0 0017.241 17.24H199.78a17.26 17.26 0 0017.24-17.24V128.811c.002-17.182-.445-34.458-.023-51.617zm-20.922 145.988a14.887 14.887 0 01-14.888 14.887H32.819a14.888 14.888 0 01-14.888-14.887V33.658A14.888 14.888 0 0132.819 18.77h99.547v25.459a37.8 37.8 0 0037.758 37.759h25.951zm0-157.656h-25.951a21.321 21.321 0 01-21.3-21.3V18.767h32.359a14.888 14.888 0 0114.888 14.888z"})]})}))},Ga=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 217.438 256",children:[Object(We.jsx)("path",{"data-name":"Trazado 463",d:"M216.997 77.195c.387-15.753.958-32.242-.5-47.941-1.092-11.756-6.191-21.735-17.831-25.915a42.48 42.48 0 00-5.016-1.447c-6.549-1.479-13.432-1.6-20.09-1.8-11.726-.345-23.448.365-35.176.314-23.494-.1-46.985.322-70.479.414q-4.228.016-8.456.017H17.243A17.26 17.26 0 00.003 18.079v220.679a17.26 17.26 0 0017.24 17.24H199.78a17.26 17.26 0 0017.241-17.24V128.813c0-17.184-.441-34.459-.024-51.618zm-20.921 145.986a14.889 14.889 0 01-14.888 14.889H32.819a14.889 14.889 0 01-14.888-14.889V33.659a14.888 14.888 0 0114.888-14.888h99.547v25.458a37.8 37.8 0 0037.757 37.76h25.953zm0-157.657h-25.953a21.32 21.32 0 01-21.295-21.3V18.766h32.359a14.888 14.888 0 0114.888 14.888z"}),Object(We.jsx)("path",{"data-name":"Trazado 464",d:"M132.165 161.253c-3.776-4.195-7.131-8.391-10.908-13a132.346 132.346 0 01-11.746-16.361c3.775-13.424 7.132-28.946 3.775-39.015-2.517-7.551-8.39-11.326-16.361-10.487-8.81 1.257-14.263 7.131-14.263 16.36-.42 10.488 5.873 23.913 12.586 35.24a167.787 167.787 0 01-6.293 16.78 171.821 171.821 0 01-8.39 17.62c-4.615.839-9.23 2.517-13.425 3.775-11.746 4.2-20.136 8.81-24.331 14.263-5.455 6.293-5.035 14.263.419 20.557 3.355 3.775 7.132 5.454 11.327 5.454a17.619 17.619 0 008.81-2.518q9.439-5.662 20.137-21.4a80.645 80.645 0 005.454-8.81c5.035-1.258 10.488-2.1 15.942-2.936a211.933 211.933 0 0121.814-2.1c9.65 10.069 22.235 20.556 33.142 21.814 8.391 1.259 15.1-2.937 17.619-11.327 2.1-7.551-.838-13.845-8.39-18.039-8.391-4.612-22.236-5.87-36.918-5.87zm-74.673 37.756c-3.357 1.677-3.776.839-4.615 0-1.677-2.1-1.677-2.937-.42-4.2 2.937-3.355 9.649-7.132 18.459-10.067-4.615 6.719-9.65 11.749-13.425 14.267zm41.112-103.62c1.678 0 2.1 0 2.937 2.1 1.258 3.775.839 10.487-.839 18.877-3.356-7.131-5.033-13-5.033-17.2-.002-3.358 1.256-3.358 2.934-3.777zm4.615 69.219a32.281 32.281 0 00-6.293.84c1.259-2.937 2.937-5.874 4.2-9.23.839-2.1 2.1-5.034 3.356-8.391 2.517 3.776 5.035 7.132 6.713 9.65.838 1.257 2.517 3.355 4.615 5.873-4.202 0-8.397.84-12.592 1.258zm62.088 17.2c-1.259 2.938-2.1 2.938-3.775 2.518-4.2-.419-9.649-3.776-15.941-9.229a52.826 52.826 0 0117.619 3.776c2.515 1.676 2.515 2.096 2.096 2.935z"})]})}))},Ka=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 217.439 256",children:[Object(We.jsx)("path",{"data-name":"Trazado 450",d:"M217.001 77.194c.388-15.754.958-32.241-.5-47.941-1.094-11.755-6.193-21.736-17.831-25.914a42.392 42.392 0 00-5.017-1.448c-6.549-1.478-13.432-1.6-20.09-1.8-11.726-.343-23.448.365-35.175.314-23.493-.1-46.985.323-70.479.414q-4.228.016-8.456.017H17.247A17.26 17.26 0 00.007 18.077v220.678a17.259 17.259 0 0017.24 17.241h182.541a17.259 17.259 0 0017.241-17.241V128.812c-.007-17.183-.454-34.458-.028-51.618zm-20.922 145.988a14.888 14.888 0 01-14.888 14.888H32.823a14.888 14.888 0 01-14.888-14.888V33.658A14.888 14.888 0 0132.823 18.77h99.548v25.459a37.8 37.8 0 0037.757 37.759h25.951zm0-157.656h-25.951a21.321 21.321 0 01-21.3-21.3V18.767h32.359a14.888 14.888 0 0114.888 14.888z"}),Object(We.jsx)("path",{"data-name":"Trazado 451",d:"M163.558 83.837a8.758 8.758 0 00-9.014 8.572c-.094 3.782-4.306 9.1-10.941 11.105-12.038 3.631-30.066 2.206-43.232 1.163-4.439-.351-8.273-.655-11.49-.746-10.771-.3-17.189 3.835-20.7 7.365-5.5 5.526-7.347 12.842-7.571 20.381-.1 3.232-.545 6.4 1.436 9.188a8.729 8.729 0 007.057 3.66h1.932c3.206 0 5.272-2.557 6.179-5.394.88-2.755.889-5.681 1.086-8.538.174-2.509.518-5.1 2.416-6.953 1.544-1.508 4.119-2.224 7.659-2.122 2.773.08 6.4.366 10.605.7 2.125.168 4.374.344 6.7.509a283.573 283.573 0 01-1.593 29.877H79.006a8.8 8.8 0 00-8.8 8.8 8.8 8.8 0 008.8 8.8h22.449c-2.426 12.2-6.025 22.628-11.124 27.883-2.627 2.707-4.779 3.054-6.362 3.054-7.431 0-8.671-5.945-8.75-9.4a8.8 8.8 0 00-8.8-8.8 8.8 8.8 0 00-8.8 8.792 32.282 32.282 0 003.064 12.92c4.373 9.077 12.64 14.074 23.28 14.075a26.113 26.113 0 0018.985-8.395c8.565-8.827 13.551-24.242 16.438-40.135h18.471a8.8 8.8 0 008.8-8.8 8.8 8.8 0 00-8.8-8.8h-16.049c1.153-11.616 1.425-22.208 1.444-29.165 8.812-.018 17.721-.757 25.42-3.079 13.5-4.074 23.143-15.385 23.447-27.508a8.8 8.8 0 00-8.561-9.009z"})]})}))},Wa=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 217.631 256.227",children:[Object(We.jsx)("path",{"data-name":"Trazado 422",d:"M217.188 77.262c.389-15.768.96-32.27-.5-47.984-1.095-11.766-6.2-21.754-17.847-25.937a42.717 42.717 0 00-5.02-1.449c-6.556-1.479-13.445-1.6-20.108-1.8-11.737-.344-23.47.366-35.207.314-23.515-.1-47.027.324-70.541.415q-4.232.017-8.464.017H17.258A17.275 17.275 0 00.002 18.094v220.875a17.2 17.2 0 005.189 12.314v.035h.037a17.19 17.19 0 0012.027 4.907h182.7a17.275 17.275 0 0017.256-17.256V128.926c.002-17.198-.444-34.49-.023-51.664zM148.96 18.786h32.387a14.9 14.9 0 0114.9 14.9v31.9h-25.974a21.339 21.339 0 01-21.313-21.315zm-116.114 0h99.637v25.481a37.835 37.835 0 0037.79 37.792h25.974v94.9l-15.227-26.374a28.351 28.351 0 00-24.8-14.32 28.388 28.388 0 00-24.85 14.4l-10.021 17.81-27.633-47.861a28.351 28.351 0 00-24.8-14.319 28.389 28.389 0 00-24.85 14.4L17.95 167.117V33.687a14.9 14.9 0 0114.896-14.901zm-9.864 215.74a14.853 14.853 0 01-1.692-1.746l-1.561-34.31 39.036-69.391a11.6 11.6 0 0110.146-5.857 11.6 11.6 0 0110.146 5.857l61.387 106.324zm158.364 3.754h-19.7l-30.466-52.769 14.889-26.465a11.6 11.6 0 0110.146-5.858 11.6 11.6 0 0110.146 5.858l29.884 51.762v12.57a14.9 14.9 0 01-14.898 14.902z"}),Object(We.jsx)("path",{"data-name":"Trazado 423",d:"M69.379 96.211a33.381 33.381 0 0033.343-33.344 33.382 33.382 0 00-33.343-33.344 33.381 33.381 0 00-33.344 33.344 33.381 33.381 0 0033.344 33.344zm0-49.763a16.438 16.438 0 0116.418 16.419 16.438 16.438 0 01-16.418 16.419A16.438 16.438 0 0152.96 62.867a16.437 16.437 0 0116.419-16.419z"})]})}))},Va=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 217.439 256",children:[Object(We.jsx)("path",{"data-name":"Trazado 442",d:"M216.996 77.195c.388-15.754.958-32.242-.5-47.941-1.094-11.755-6.192-21.735-17.831-25.914a42.569 42.569 0 00-5.016-1.448c-6.551-1.478-13.433-1.6-20.09-1.8-11.727-.343-23.45.366-35.176.314-23.494-.1-46.986.323-70.479.414q-4.228.018-8.456.018H17.242A17.26 17.26 0 00.002 18.079v220.678a17.26 17.26 0 0017.24 17.241h182.541a17.26 17.26 0 0017.241-17.241V128.812c-.002-17.183-.448-34.458-.028-51.617zm-20.92 145.986a14.889 14.889 0 01-14.889 14.888H32.818a14.888 14.888 0 01-14.888-14.888V33.658A14.889 14.889 0 0132.818 18.77h99.549v25.459a37.8 37.8 0 0037.756 37.759h25.952zm0-157.656h-25.952a21.32 21.32 0 01-21.295-21.3V18.766h32.358a14.889 14.889 0 0114.889 14.888z"}),Object(We.jsx)("path",{"data-name":"Trazado 443",d:"M171.045 108.247h-2.858v-.481c0-4.811-3.442-8.716-7.847-8.89-3.582-.139-7.333-.09-11.4.146v-8.975a9.1 9.1 0 00-3.651-7.42 7.622 7.622 0 00-8.069-.585 103.463 103.463 0 00-20.433 14.719 146.968 146.968 0 00-10.4 10.7 128.086 128.086 0 00-16.659-5.074 127.918 127.918 0 00-34.506-3.509c-4.378.2-7.8 4.1-7.8 8.888v.483h-2.858c-4.489 0-8.141 3.989-8.141 8.892v71.865c0 8.348 6.119 15.14 13.641 15.14h35.989a17.913 17.913 0 0112.641 5.463 12.747 12.747 0 009.108 3.911h.024a12.907 12.907 0 009.054-3.9 17.918 17.918 0 0112.68-5.474h35.987c7.522 0 13.641-6.792 13.641-15.14v-71.859c-.006-4.908-3.657-8.9-8.143-8.9zm-68.633 79.066a124.193 124.193 0 00-12.692-3.692 127.989 127.989 0 00-28.66-3.509c-1.549 0-2.857-1.653-2.857-3.607v-66.1h2.114a117.179 117.179 0 0142.1 7.847zm54.992-10.809c0 1.955-1.308 3.607-2.88 3.607a129.368 129.368 0 00-26.5 2.984 89.847 89.847 0 0113.362-9.123 15.293 15.293 0 007.55-13.56v-49.836a112.11 112.11 0 018.463-.239zm-19.251-16.057a3.781 3.781 0 01-1.6 3.282A100.833 100.833 0 00116.794 178a113.862 113.862 0 00-3.6 3.464v-64.967a131.394 131.394 0 0110.636-10.965l.011-.009a91.544 91.544 0 0114.314-10.886z"})]})}))},Ha=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 217.439 256",children:[Object(We.jsx)("path",{"data-name":"Trazado 452",d:"M216.997 77.195c.388-15.754.958-32.243-.5-47.941-1.094-11.756-6.193-21.735-17.831-25.915a42.732 42.732 0 00-5.017-1.448c-6.549-1.478-13.432-1.6-20.09-1.8-11.726-.345-23.448.364-35.175.314-23.493-.1-46.985.322-70.479.414q-4.228.015-8.456.017H17.243A17.26 17.26 0 00.002 18.076v220.679a17.26 17.26 0 0017.241 17.241h182.541a17.26 17.26 0 0017.241-17.241V128.812c-.003-17.183-.45-34.459-.028-51.617zm-20.922 145.986a14.888 14.888 0 01-14.888 14.888H32.819a14.888 14.888 0 01-14.888-14.888V33.658a14.887 14.887 0 0114.888-14.887h99.548v25.458a37.8 37.8 0 0037.758 37.759h25.951zm0-157.656h-25.951a21.321 21.321 0 01-21.3-21.3V18.767h32.359a14.887 14.887 0 0114.888 14.887z"}),Object(We.jsx)("path",{"data-name":"Trazado 453",d:"M65.32 135.266l10.527-10.778 10.528 10.778a2.113 2.113 0 001.512.637 2.113 2.113 0 001.512-.637l8.915-9.127a2.114 2.114 0 000-2.954l-10.6-10.849 10.6-10.851a2.114 2.114 0 000-2.954l-8.915-9.126a2.175 2.175 0 00-3.025 0l-10.528 10.778-10.527-10.778a2.109 2.109 0 00-1.511-.637 2.113 2.113 0 00-1.512.637l-8.916 9.126a2.116 2.116 0 000 2.954l10.6 10.851-10.6 10.849a2.116 2.116 0 000 2.954l8.916 9.127a2.174 2.174 0 003.024 0z"}),Object(We.jsx)("path",{"data-name":"Trazado 454",d:"M162.542 98.531l-8.915-9.126a2.176 2.176 0 00-3.024 0l-10.523 10.778-10.528-10.778a2.114 2.114 0 00-1.512-.637 2.113 2.113 0 00-1.512.637l-8.915 9.126a2.114 2.114 0 000 2.954l10.6 10.851-10.6 10.849a2.114 2.114 0 000 2.954l8.915 9.127a2.175 2.175 0 003.025 0l10.528-10.778 10.523 10.778a2.113 2.113 0 001.511.637 2.113 2.113 0 001.512-.637l8.915-9.127a2.114 2.114 0 000-2.954l-10.594-10.849 10.594-10.851a2.114 2.114 0 000-2.954z"}),Object(We.jsx)("path",{"data-name":"Trazado 455",d:"M150.532 160.897a66.963 66.963 0 00-40.3-13.344 8.529 8.529 0 00-1.513.143 8.505 8.505 0 00-1.513-.143 66.961 66.961 0 00-40.3 13.344 8.455 8.455 0 00-1.729 11.83 8.441 8.441 0 006.786 3.406 8.42 8.42 0 005.046-1.677 50.177 50.177 0 0130.2-9.993 8.482 8.482 0 001.513-.143 8.506 8.506 0 001.513.143 50.183 50.183 0 0130.2 9.993 8.416 8.416 0 005.044 1.677 8.44 8.44 0 006.786-3.406 8.454 8.454 0 00-1.733-11.83z"})]})}))},qa=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 217.439 256",children:[Object(We.jsx)("path",{"data-name":"Trazado 432",d:"M216.997 77.194c.387-15.753.958-32.242-.5-47.941-1.093-11.756-6.192-21.735-17.831-25.916a42.532 42.532 0 00-5.016-1.447C187.1.412 180.218.29 173.56.09c-11.727-.343-23.45.366-35.176.314-23.494-.1-46.986.322-70.479.414q-4.228.018-8.456.017H17.243A17.26 17.26 0 00.003 18.076v220.679a17.26 17.26 0 0017.24 17.241h182.54a17.26 17.26 0 0017.24-17.241V128.812c-.002-17.183-.452-34.459-.026-51.618zm-20.926 145.992a14.888 14.888 0 01-14.889 14.888H32.813a14.888 14.888 0 01-14.888-14.888V33.658A14.888 14.888 0 0132.813 18.77h99.549v25.459a37.8 37.8 0 0037.756 37.759h25.953zm0-157.656h-25.952a21.32 21.32 0 01-21.295-21.3V18.771h32.358a14.888 14.888 0 0114.889 14.887z"}),Object(We.jsx)("path",{"data-name":"Trazado 433",d:"M123.246 86.683a7.664 7.664 0 00-5.873.748 7.727 7.727 0 00-3.655 4.732L86.111 194.825a7.777 7.777 0 005.464 9.515 7.487 7.487 0 002.023.276 7.829 7.829 0 003.886-1.038 7.643 7.643 0 003.63-4.713L128.72 96.203a7.781 7.781 0 00-5.474-9.52z"}),Object(We.jsx)("path",{"data-name":"Trazado 434",d:"M57.407 145.409l20.711-20.71a7.78 7.78 0 000-10.99 7.8 7.8 0 00-10.985 0l-.224.278c-.44.642-3.849 3.92-7.146 7.09-17.4 16.732-21.453 21.528-21.139 24-.5 3.044 4.393 8.7 20.83 24.509 3.423 3.292 6.963 6.7 7.418 7.429l.213.275a7.34 7.34 0 005.313 2.366 7.162 7.162 0 001.8-.232 8.625 8.625 0 006-5.946 7.17 7.17 0 00-2.045-7.1z"}),Object(We.jsx)("path",{"data-name":"Trazado 435",d:"M140.276 111.618a8.618 8.618 0 00-5.932 6 7.188 7.188 0 002.121 7.095l20.906 20.685-20.9 20.9a7.5 7.5 0 00-1.677 8.451 7.574 7.574 0 006.88 4.852 2.284 2.284 0 00.538.062c2.979 0 8.8-5.225 24.1-21.218 3.243-3.389 6.6-6.894 7.281-7.345l.282-.224a7.734 7.734 0 002.277-5.524 7.747 7.747 0 00-2.308-5.523L147.4 113.665a7.189 7.189 0 00-7.124-2.047z"})]})}))},Ya=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 217.584 256",children:[Object(We.jsx)("path",{"data-name":"Trazado 444",d:"M216.958 77.225c-.42-38.067 10.409-79.987-43.432-77.084-38.015.09-76.056.657-114.089.743h-42.2A17.258 17.258 0 000 18.125v220.64a17.258 17.258 0 0017.239 17.237h182.507a17.257 17.257 0 0017.237-17.237c.186-53.84-.296-107.719-.025-161.54zM196.04 223.186a14.885 14.885 0 01-14.885 14.885H32.813a14.885 14.885 0 01-14.885-14.885V33.698a14.885 14.885 0 0114.885-14.885h99.53c-1.936 29.6.791 61.322 37.752 63.206h25.946zm0-157.627c-17.937-.276-46.31 4.9-47.237-21.294V18.812c50.266-.527 47.99-3.935 47.237 46.748z"}),Object(We.jsx)("path",{"data-name":"Trazado 445",d:"M157.796 143.179h-38.679V104.5a14.6 14.6 0 00-14.583-14.583 67.336 67.336 0 00-47.88 19.964c-.024.025-.05.049-.074.076-14.337 14.727-21.3 32.279-20.122 50.76 1.034 16.3 8.392 32.066 20.717 44.393s28.09 19.689 44.391 20.728q2.015.128 4.01.128c17.006 0 33.1-6.949 46.761-20.245.027-.025.052-.051.077-.077a67.335 67.335 0 0019.965-47.881 14.6 14.6 0 00-14.583-14.584zm-16.552 51.22c-25.22 24.5-55.446 16.923-72.862-.5s-24.991-47.642-.484-72.852a51.594 51.594 0 0135.368-15.27V151.1a7.924 7.924 0 007.925 7.925h45.322a51.61 51.61 0 01-15.269 35.374z"}),Object(We.jsx)("path",{"data-name":"Trazado 446",d:"M136.325 89.756a11.919 11.919 0 00-9.153 8.878 7.865 7.865 0 00-.234 2.081c.124 6-.008 10.657-.115 14.4-.229 8.036-.38 13.344 3.644 17.37 3.151 3.152 6.925 3.753 12.42 3.753 1.532 0 3.2-.047 5.02-.1 3.731-.106 8.373-.237 14.344-.116a8.045 8.045 0 002.08-.233 11.921 11.921 0 008.874-9.17c2.028-9.1-5.3-22.075-10.235-26.638-4.575-4.933-17.569-12.261-26.645-10.225zm11.138 30.541c-1.668.045-3.5.076-4.892.1 0-1.416.049-3.18.1-4.827.073-2.561.165-5.778.17-9.627 3.109 1.117 7.123 3.316 8.387 4.679a7.176 7.176 0 001.073 1.079c1.4 1.3 3.612 5.322 4.728 8.433-3.823.001-7.018.086-9.564.163z"})]})}))},Qa=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 217.438 256",children:[Object(We.jsx)("path",{"data-name":"Trazado 438",d:"M107.662 93.007c-30.337 0-62.989 7.141-62.989 22.82v79.924c0 15.678 32.651 22.82 62.989 22.82s62.989-7.142 62.989-22.82v-79.924c-.001-15.679-32.652-22.82-62.989-22.82zm49.139 102.743c-.12 2.517-15.67 10.8-49.139 10.8-33.187 0-48.925-8.288-49.14-10.8v-25.689c11.441 4.913 29.524 7.81 49.14 7.81 19.684 0 37.763-2.908 49.139-7.843zm0-40.7c-.223 2.52-15.96 10.8-49.139 10.8s-48.925-8.29-49.14-10.8v-24.252c11.42 4.937 29.5 7.846 49.14 7.846 19.684 0 37.763-2.907 49.139-7.842zm-49.139-28.42c-33.187 0-48.925-8.289-49.14-10.8.214-2.518 15.952-10.807 49.14-10.807s48.925 8.289 49.139 10.8c-.214 2.515-15.952 10.805-49.139 10.805z"}),Object(We.jsx)("path",{"data-name":"Trazado 439",d:"M70.361 178.681a9.167 9.167 0 00-9.158 9.156 9.167 9.167 0 009.158 9.158 9.167 9.167 0 009.158-9.158 9.167 9.167 0 00-9.158-9.156z"}),Object(We.jsx)("path",{"data-name":"Trazado 440",d:"M70.361 140.289a9.168 9.168 0 00-9.158 9.157 9.167 9.167 0 009.158 9.158 9.167 9.167 0 009.158-9.158 9.168 9.168 0 00-9.158-9.157z"}),Object(We.jsx)("path",{"data-name":"Trazado 441",d:"M216.996 77.194c.387-15.753.958-32.242-.5-47.941-1.093-11.755-6.192-21.736-17.831-25.914a42.719 42.719 0 00-5.016-1.448c-6.549-1.477-13.432-1.6-20.09-1.8-11.727-.344-23.448.366-35.176.314-23.494-.1-46.986.323-70.478.414q-4.229.018-8.457.017H17.243a17.26 17.26 0 00-17.24 17.24v220.681a17.26 17.26 0 0017.24 17.241h182.539a17.261 17.261 0 0017.241-17.241V128.811c-.002-17.183-.449-34.454-.027-51.617zm-20.922 145.987a14.888 14.888 0 01-14.888 14.888H32.818a14.888 14.888 0 01-14.889-14.888V33.657a14.888 14.888 0 0114.889-14.888h99.548v25.458a37.8 37.8 0 0037.756 37.758h25.952zm0-157.656h-25.952a21.32 21.32 0 01-21.295-21.3V18.767h32.359a14.888 14.888 0 0114.888 14.888z"})]})}))},Za=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 217.439 256",children:[Object(We.jsx)("path",{"data-name":"Trazado 426",d:"M216.997 77.194c.388-15.753.958-32.242-.5-47.941-1.094-11.756-6.193-21.735-17.831-25.914a42.44 42.44 0 00-5.017-1.448c-6.549-1.478-13.432-1.6-20.09-1.8-11.726-.343-23.448.366-35.175.314-23.493-.1-46.985.323-70.479.414q-4.228.018-8.455.017H17.243A17.26 17.26 0 00.002 18.077v220.679a17.261 17.261 0 0017.241 17.241h182.542a17.26 17.26 0 0017.24-17.241V128.812c.001-17.183-.45-34.459-.028-51.618zm-20.922 145.988a14.888 14.888 0 01-14.888 14.888H32.818a14.888 14.888 0 01-14.892-14.884V33.658A14.888 14.888 0 0132.814 18.77h99.548v25.459a37.8 37.8 0 0037.764 37.757h25.951zm0-157.656h-25.949a21.321 21.321 0 01-21.3-21.3V18.767h32.359a14.888 14.888 0 0114.888 14.888z"}),Object(We.jsx)("path",{"data-name":"Trazado 427",d:"M111.987 69.289h-69.1a8.455 8.455 0 01-8.455-8.455 8.455 8.455 0 018.455-8.455h69.1a8.455 8.455 0 018.455 8.455 8.455 8.455 0 01-8.455 8.455z"}),Object(We.jsx)("path",{"data-name":"Trazado 428",d:"M111.987 102.604h-69.1a8.455 8.455 0 01-8.455-8.455 8.455 8.455 0 018.455-8.455h69.1a8.455 8.455 0 018.455 8.455 8.455 8.455 0 01-8.455 8.455z"}),Object(We.jsx)("path",{"data-name":"Trazado 429",d:"M164.893 136.455H42.878A8.455 8.455 0 0134.423 128a8.455 8.455 0 018.455-8.455h122.011a8.455 8.455 0 018.455 8.455 8.455 8.455 0 01-8.451 8.455z"}),Object(We.jsx)("path",{"data-name":"Trazado 430",d:"M164.893 170.306H42.878a8.455 8.455 0 01-8.455-8.455 8.455 8.455 0 018.455-8.455h122.011a8.455 8.455 0 018.455 8.455 8.455 8.455 0 01-8.451 8.455z"}),Object(We.jsx)("path",{"data-name":"Trazado 431",d:"M164.893 204.161H42.878a8.455 8.455 0 01-8.455-8.455 8.455 8.455 0 018.455-8.455h122.011a8.455 8.455 0 018.455 8.455 8.455 8.455 0 01-8.451 8.455z"})]})}))},Ja=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 217.438 256",children:[Object(We.jsx)("path",{"data-name":"Trazado 424",d:"M216.997 77.193c.387-15.754.958-32.242-.5-47.942-1.092-11.755-6.192-21.735-17.832-25.915a42.471 42.471 0 00-5.016-1.447C187.1.41 180.217.289 173.559.089c-11.726-.344-23.449.364-35.176.314-23.494-.1-46.985.322-70.479.414q-4.229.016-8.456.017H17.242a17.26 17.26 0 00-17.24 17.24v220.68a17.26 17.26 0 0017.24 17.24H199.78a17.26 17.26 0 0017.241-17.24V128.812c0-17.184-.441-34.459-.024-51.619zM196.075 223.18a14.889 14.889 0 01-14.888 14.888H32.818A14.889 14.889 0 0117.93 223.18V33.658A14.888 14.888 0 0132.818 18.77h99.547v25.458a37.8 37.8 0 0037.757 37.76h25.952zm0-157.657h-25.952a21.32 21.32 0 01-21.295-21.3V18.765h32.359a14.888 14.888 0 0114.888 14.888z"}),Object(We.jsx)("path",{"data-name":"Trazado 425",d:"M152.916 125L91.593 89.593a17.725 17.725 0 00-17.9 0 17.718 17.718 0 00-8.952 15.5v70.811a17.718 17.718 0 008.951 15.5 17.866 17.866 0 008.952 2.427 17.872 17.872 0 008.952-2.427l61.323-35.4a17.723 17.723 0 008.952-15.5A17.72 17.72 0 00152.916 125zm-8.455 16.362l-61.323 35.4a.914.914 0 01-.992 0 .912.912 0 01-.5-.86v-70.811a.909.909 0 01.5-.858 1 1 0 01.5-.147.959.959 0 01.489.146l61.323 35.407a.909.909 0 01.5.858.911.911 0 01-.497.865z"})]})}))},$a=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 255.338 154.163",children:Object(We.jsx)("path",{d:"M19.745 57.063c-26.326 0-26.326 40.032 0 40.032H187l-22.68 22.669c-18.608 18.622 9.7 46.922 28.308 28.316l56.73-56.732a20.027 20.027 0 000-28.548l-56.73-56.716c-18.608-18.6-46.916 9.684-28.308 28.3L187 57.064H19.745z"})})}))},Xa=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 221.371 254.207",children:[Object(We.jsx)("path",{"data-name":"Trazado 412",d:"M47.443 145.862h24.651c3.4 0 6.162-3.188 6.162-7.115s-2.762-7.115-6.162-7.115H47.443c-3.4 0-6.164 3.188-6.164 7.115s2.758 7.115 6.164 7.115z"}),Object(We.jsx)("path",{"data-name":"Trazado 413",d:"M100.296 145.862h24.651c3.4 0 6.162-3.188 6.162-7.115s-2.76-7.115-6.162-7.115h-24.651c-3.4 0-6.162 3.188-6.162 7.115s2.762 7.115 6.162 7.115z"}),Object(We.jsx)("path",{"data-name":"Trazado 414",d:"M148.612 145.862h24.651c3.4 0 6.162-3.188 6.162-7.115s-2.762-7.115-6.162-7.115h-24.651c-3.4 0-6.165 3.188-6.165 7.115s2.762 7.115 6.165 7.115z"}),Object(We.jsx)("path",{"data-name":"Trazado 415",d:"M47.443 177.886h24.651c3.4 0 6.162-3.188 6.162-7.115s-2.762-7.115-6.162-7.115H47.443c-3.4 0-6.164 3.188-6.164 7.115s2.758 7.115 6.164 7.115z"}),Object(We.jsx)("path",{"data-name":"Trazado 416",d:"M100.296 177.886h24.651c3.4 0 6.162-3.188 6.162-7.115s-2.76-7.115-6.162-7.115h-24.651c-3.4 0-6.162 3.188-6.162 7.115s2.762 7.115 6.162 7.115z"}),Object(We.jsx)("path",{"data-name":"Trazado 417",d:"M148.612 177.886h24.651c3.4 0 6.162-3.188 6.162-7.115s-2.762-7.115-6.162-7.115h-24.651c-3.4 0-6.165 3.188-6.165 7.115s2.762 7.115 6.165 7.115z"}),Object(We.jsx)("path",{"data-name":"Trazado 418",d:"M47.443 209.909h24.651c3.4 0 6.162-3.187 6.162-7.115s-2.762-7.115-6.162-7.115H47.443c-3.4 0-6.164 3.188-6.164 7.115s2.758 7.115 6.164 7.115z"}),Object(We.jsx)("path",{"data-name":"Trazado 419",d:"M100.296 209.909h24.651c3.4 0 6.162-3.187 6.162-7.115s-2.76-7.115-6.162-7.115h-24.651c-3.4 0-6.162 3.188-6.162 7.115s2.762 7.115 6.162 7.115z"}),Object(We.jsx)("path",{"data-name":"Trazado 420",d:"M148.612 209.909h24.651c3.4 0 6.162-3.187 6.162-7.115s-2.762-7.115-6.162-7.115h-24.651c-3.4 0-6.165 3.188-6.165 7.115s2.762 7.115 6.165 7.115z"}),Object(We.jsx)("path",{"data-name":"Trazado 421",d:"M198.078 30.392h-15.951v-19.8a10.627 10.627 0 00-10.6-10.595 10.627 10.627 0 00-10.595 10.595v19.8h-40.089v-19.8a10.627 10.627 0 00-10.6-10.595 10.627 10.627 0 00-10.595 10.595v19.8H59.559v-19.8a10.627 10.627 0 00-10.6-10.595 10.627 10.627 0 00-10.595 10.595v19.8h-15.08A23.3 23.3 0 00-.011 53.687v177.225a23.294 23.294 0 0023.295 23.295h174.782a23.294 23.294 0 0023.295-23.295V53.687a23.294 23.294 0 00-23.283-23.295zm-3.051 197.409a.061.061 0 01-.062.062H26.408a.062.062 0 01-.064-.062V113.844h168.683z"})]})}))},en=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 206.043 254.417",children:[Object(We.jsx)("path",{"data-name":"Sustracci\\xF3n 3",d:"M194.711 153.049H184.19c.012-.6.016-1.138.016-1.653a81.643 81.643 0 00-1.061-13.146h-64.129V60.127l25.357 11.174 44.693 33.842 4.191 33.167a52.729 52.729 0 015.316 4.4 22 22 0 013.371 3.923c.928 1.466 1.24 2.7.932 3.672-.575 1.822-3.321 2.744-8.165 2.744z",fill:"#e3e3e3"}),Object(We.jsx)("path",{"data-name":"Uni\\xF3n 9",d:"M0 151.401a102.413 102.413 0 016.553-36.173 102.779 102.779 0 0118.063-30.583 103.552 103.552 0 0112.6-12.447 103.819 103.819 0 0114.568-10.149 102.151 102.151 0 0133.875-12.207l.58-.1v22.724l-.393.088a80.116 80.116 0 00-25.221 10.222 81.119 81.119 0 00-20.129 17.684 80.667 80.667 0 00-13.328 23.446 80.291 80.291 0 00-4.822 27.494 80.772 80.772 0 0080.682 80.678 80.772 80.772 0 0080.684-80.678 80.257 80.257 0 00-4.957-27.862 80.6 80.6 0 00-13.686-23.672 81.1 81.1 0 00-20.631-17.694 79.844 79.844 0 00-25.793-9.942l-.4-.083v-22.65l.576.088a101.976 101.976 0 0134.443 11.887 104.181 104.181 0 0114.84 10.109 105.131 105.131 0 0112.836 12.477 102.82 102.82 0 0118.416 30.8 102.374 102.374 0 016.7 36.542 103.136 103.136 0 01-103.02 103.018A103.137 103.137 0 010 151.401zm103.584 9.849a9.94 9.94 0 01-1.012-.054c-4.676-.093-9.285-3.011-9.285-8.749V30.28L82.496 40.331c-8.852 8.248-22.311-4.3-13.459-12.541L96.014 2.649a10.033 10.033 0 0113.582 0l26.982 25.141c8.854 8.243-4.611 20.789-13.469 12.541L112.328 30.28v112.971h41a9 9 0 019 9 9 9 0 01-9 8.994z"})]})}))},tn=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 227.615 256",children:Object(We.jsx)("path",{"data-name":"Trazado 442",d:"M35.802 0a15.363 15.363 0 000 30.727c23.352 0 32.017 14.872 40.928 34.353l1.475 3.134c1.229 2.643 3.872 8.542 7.436 16.408L1.757 233.094a15.363 15.363 0 0026.729 15.118l72.823-128.623c19.481 44 44 99.494 44.431 100.415a58.2 58.2 0 0071.046 33.37 15.376 15.376 0 00-9.1-29.375 27.531 27.531 0 01-33.861-16.593c-2.458-5.531-59.856-135.751-67.6-152.282l-1.352-2.95C96.948 35.336 80.786 0 35.802 0z"})})}))},an=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 236.312 256",children:Object(We.jsx)("path",{"data-name":"Trazado 441",d:"M118.387 0a9.847 9.847 0 00-5.154 1.308L4.925 63.851a9.847 9.847 0 000 17.039l33.4 19.289-33.4 19.289a9.847 9.847 0 000 17.058l33.4 19.27-33.4 19.289a9.847 9.847 0 000 17.058l108.308 62.54a9.847 9.847 0 009.846 0l108.308-62.54a9.847 9.847 0 000-17.058l-33.4-19.289 33.4-19.27a9.847 9.847 0 000-17.058l-33.4-19.289 33.4-19.289a9.847 9.847 0 000-17.039L123.079 1.311A9.847 9.847 0 00118.387 0zM58.041 111.563l55.192 31.866a9.847 9.847 0 009.846 0l55.192-31.866 28.5 16.443-88.615 51.154-88.616-51.154zm-.02 55.617l55.212 31.866a9.847 9.847 0 009.846 0l55.212-31.866 28.481 16.443-88.615 51.155-88.617-51.156z"})})}))},nn=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 95 82",children:Object(We.jsx)("path",{d:"M34.52,22.407a15,15,0,0,1,25.959,0L81.956,59.481A15,15,0,0,1,68.976,82H26.024a15,15,0,0,1-12.98-22.519Z",transform:"translate(95 82) rotate(180)"})})}))},cn=function(e){return Object(We.jsx)(Ke.a,Object(p.a)(Object(p.a)({},e),{},{children:Object(We.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 16.986",children:Object(We.jsxs)("g",{fill:"#bccee6",children:[Object(We.jsxs)("g",{"data-name":"Grupo 1868",children:[Object(We.jsx)("path",{"data-name":"Trazado 6843",d:"M15.1.004l-3.247 1.76.016.961-2.387 2.387 2.411 2.411 2.42-2.42h.871l1.82-3.206z"}),Object(We.jsx)("path",{"data-name":"Trazado 6844",d:"M4.792 9.804L.267 14.329a.852.852 0 000 1.205l1.205 1.206a.853.853 0 001.206 0l4.524-4.525z"})]}),Object(We.jsx)("path",{"data-name":"Trazado 6845",d:"M16.415 14.325L6.679 4.59A3.381 3.381 0 002.527.437l2.069 2.067-2.411 2.411L.116 2.846a3.381 3.381 0 004.153 4.158l9.735 9.736a.853.853 0 001.206 0l1.205-1.206a.852.852 0 000-1.209z"})]})})}))},rn="ADD_BUCKET_OPEN",on="ADD_BUCKET_NAME",sn="ADD_BUCKET_VERSIONED",ln="ADD_BUCKET_LOCKING",dn="ADD_BUCKET_QUOTA",un="ADD_BUCKET_QUOTA_TYPE",bn="ADD_BUCKET_QUOTA_SIZE",jn="ADD_BUCKET_QUOTA_UNIT",hn="ADD_BUCKET_RESET",mn="ADD_BUCKET_RETENTION",pn="ADD_BUCKET_RETENTION_MODE",On="ADD_BUCKET_RETENTION_UNIT",gn="ADD_BUCKET_RETENTION_VALIDITY",xn="BUCKET_DETAILS/SET_TAB",fn="BUCKET_DETAILS/LOADING",vn="BUCKET_DETAILS/SET_INFO";var yn,Sn=function(e){return{type:fn,state:e}},Cn=function(e){return{type:vn,info:e}},kn=a(735),wn=a(684),Tn=a(736),Nn=a(737),En=function(){clearInterval(yn)},An={displayErrorMessage:re},_n=Object(o.b)((function(e){return{modalSnackMessage:e.system.modalSnackBar}}),An)(Object(y.a)((function(e){return Object(f.a)({modalErrorContainer:{position:"absolute",marginTop:10,width:"80%",backgroundColor:"#fff",border:"#C72C48 1px solid",borderLeftWidth:12,borderRadius:3,zIndex:1e3,padding:"10px 15px",left:"50%",transform:"translateX(-50%)",opacity:0,transitionDuration:"0.2s"},modalErrorShow:{opacity:1},closeButton:{position:"absolute",right:5,fontSize:"small",border:0,backgroundColor:"#fff",cursor:"pointer"},errorTitle:{display:"flex",alignItems:"center"},errorLabel:{color:"#000",fontSize:18,fontWeight:500,marginLeft:5,marginRight:25},messageIcon:{color:"#C72C48",display:"flex","& svg":{width:32,height:32}},simpleError:{marginTop:5,padding:"2px 5px",fontSize:16,color:"#000"},detailsButton:{color:"#9C9C9C",display:"flex",alignItems:"center",border:0,backgroundColor:"transparent",paddingLeft:5,fontSize:14,transformDuration:"0.3s",cursor:"pointer"},extraDetailsContainer:{fontStyle:"italic",color:"#9C9C9C",lineHeight:0,padding:"0 10px",transition:"all .2s ease-in-out",overflow:"hidden"},extraDetailsOpen:{lineHeight:1,padding:"3px 10px"},arrowElement:{marginLeft:-5},arrowOpen:{transform:"rotateZ(90deg)",transformDuration:"0.3s"}})}))((function(e){var t=e.classes,a=e.modalSnackMessage,c=e.displayErrorMessage,i=e.customStyle,r=Object(n.useState)(!1),o=Object(m.a)(r,2),s=o[0],l=o[1],d=Object(n.useState)(!1),u=Object(m.a)(d,2),b=u[0],j=u[1],h=Object(n.useCallback)((function(){j(!1)}),[]);Object(n.useEffect)((function(){b||(c({detailedError:"",errorMessage:""}),l(!1))}),[c,b]),Object(n.useEffect)((function(){""!==a.message&&"error"===a.type&&j(!0)}),[h,a.message,a.type]);var p=be()(a,"message",""),O=be()(a,"detailedErrorMsg","");return"error"!==a.type||""===p?null:Object(We.jsx)(n.Fragment,{children:Object(We.jsxs)("div",{className:"".concat(t.modalErrorContainer," ").concat(b?t.modalErrorShow:""),style:i,onMouseOver:En,onMouseLeave:function(){yn=setInterval(h,1e4)},children:[Object(We.jsx)("button",{className:t.closeButton,onClick:h,children:Object(We.jsx)(Je.a,{})}),Object(We.jsxs)("div",{className:t.errorTitle,children:[Object(We.jsx)("span",{className:t.messageIcon,children:Object(We.jsx)(Qe.a,{})}),Object(We.jsx)("span",{className:t.errorLabel,children:p})]}),""!==O&&Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)("div",{className:t.detailsContainerLink,children:Object(We.jsxs)("button",{className:t.detailsButton,onClick:function(){l(!s)},children:["Details",Object(We.jsx)(qe.a,{className:"".concat(t.arrowElement," ").concat(s?t.arrowOpen:"")})]})}),Object(We.jsx)("div",{className:"".concat(t.extraDetailsContainer," ").concat(s?t.extraDetailsOpen:""),children:O})]})]})})}))),In={content:'" "',borderLeft:"2px solid #9C9C9C",height:33,width:1,position:"absolute"},Mn=Object(o.b)((function(e){return{modalSnackMessage:e.system.modalSnackBar}}),{setModalSnackMessage:ie}),zn=Object(y.a)((function(e){return Object(f.a)(Object(p.a)({dialogContainer:{padding:"8px 15px 22px"},closeContainer:{textAlign:"right"},closeButton:{width:45,height:45,padding:0,backgroundColor:"initial","&:hover":{backgroundColor:"initial"},"&:active":{backgroundColor:"initial"}},modalCloseIcon:{fontSize:35,color:"#9C9C9C",fontWeight:300,"&:hover":{color:"#9C9C9C"}},closeIcon:{"&::before":Object(p.a)(Object(p.a)({},In),{},{transform:"rotate(45deg)"}),"&::after":Object(p.a)(Object(p.a)({},In),{},{transform:"rotate(-45deg)"}),"&:hover::before, &:hover::after":{borderColor:"#9C9C9C"},width:24,height:24,display:"block",position:"relative"},titleClass:{padding:"0px 50px 12px","& h2":{fontWeight:600,color:"#000",fontSize:22,width:"100%",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},modalContent:{padding:"0 50px"},customDialogSize:{width:"100%",maxWidth:765}},Tt))}))(Mn((function(e){var t=e.onClose,a=e.modalOpen,c=e.title,i=e.children,r=e.classes,o=e.wideLimit,s=void 0===o||o,l=e.modalSnackMessage,d=e.noContentPadding,u=e.setModalSnackMessage,b=Object(n.useState)(!1),j=Object(m.a)(b,2),h=j[0],O=j[1];Object(n.useEffect)((function(){u("")}),[u]),Object(n.useEffect)((function(){if(l){if(""===l.message)return void O(!1);"error"!==l.type&&O(!0)}}),[l]);var g=s?{classes:{paper:r.customDialogSize}}:{maxWidth:"md",fullWidth:!0},x="";return l&&(x=l.detailedErrorMsg,(""===l.detailedErrorMsg||l.detailedErrorMsg.length<5)&&(x=l.message)),Object(We.jsx)(wn.a,Object(p.a)(Object(p.a)({open:a,onClose:t,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description"},g),{},{children:Object(We.jsxs)("div",{className:r.dialogContainer,children:[Object(We.jsx)(_n,{}),Object(We.jsx)(ot.a,{open:h,className:r.snackBarModal,onClose:function(){O(!1),u("")},message:x,ContentProps:{className:"".concat(r.snackBar," ").concat(l&&"error"===l.type?r.errorSnackBar:"")},autoHideDuration:l&&"error"===l.type?1e4:5e3}),Object(We.jsx)("div",{className:r.closeContainer,children:Object(We.jsx)(kn.a,{"aria-label":"close",className:r.closeButton,onClick:t,disableRipple:!0,size:"large",children:Object(We.jsx)("span",{className:r.closeIcon})})}),Object(We.jsx)(Tn.a,{id:"alert-dialog-title",className:r.titleClass,children:c}),Object(We.jsx)(Nn.a,{className:d?"":r.modalContent,children:i})]})}))}))),Dn=a(714),Ln=a(719),Fn=Object(v.a)((function(e){return Object(f.a)(Object(p.a)({},It))}));function Rn(e){var t=Fn();return Object(We.jsx)(C.a,Object(p.a)({InputProps:{classes:t}},e))}var Pn=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)(Object(p.a)({},lt),ut),{},{textBoxContainer:{flexGrow:1},textBoxWithIcon:{position:"relative",paddingRight:25},errorState:{color:"#b53b4b",fontSize:14,position:"absolute",top:7,right:7},overlayAction:{position:"absolute",right:5,top:6,"& svg":{maxWidth:15,maxHeight:15},"&.withLabel":{top:5}}}))}))((function(e){var t=e.label,a=e.onChange,n=e.value,i=e.id,r=e.name,o=e.type,s=void 0===o?"text":o,l=e.autoComplete,d=void 0===l?"off":l,u=e.disabled,b=void 0!==u&&u,j=e.multiline,h=void 0!==j&&j,m=e.tooltip,O=void 0===m?"":m,g=e.index,x=void 0===g?0:g,f=e.error,v=void 0===f?"":f,y=e.required,S=void 0!==y&&y,C=e.placeholder,w=void 0===C?"":C,T=e.min,N=e.max,E=e.overlayIcon,A=void 0===E?null:E,_=e.extraInputProps,I=void 0===_?{}:_,M=e.overlayAction,z=e.noLabelMinWidth,D=void 0!==z&&z,L=e.classes,F=Object(p.a)({"data-index":x},I);return"number"===s&&T&&(F.min=T),"number"===s&&N&&(F.max=N),Object(We.jsx)(c.a.Fragment,{children:Object(We.jsxs)(k.a,{item:!0,xs:12,className:"".concat(L.fieldContainer," ").concat(""!==v?L.errorInField:""),children:[""!==t&&Object(We.jsxs)(Dn.a,{htmlFor:i,className:D?L.noMinWidthLabel:L.inputLabel,children:[Object(We.jsxs)("span",{children:[t,S?"*":""]}),""!==O&&Object(We.jsx)("div",{className:L.tooltipContainer,children:Object(We.jsx)(Ln.a,{title:O,placement:"top-start",children:Object(We.jsx)("div",{children:Object(We.jsx)(oa,{className:L.tooltip})})})})]}),Object(We.jsx)("div",{className:L.textBoxContainer,children:Object(We.jsx)(Rn,{id:i,name:r,fullWidth:!0,value:n,disabled:b,onChange:a,type:s,multiline:h,autoComplete:d,inputProps:F,error:""!==v,helperText:v,placeholder:w,className:L.inputRebase})}),A&&Object(We.jsx)("div",{className:"".concat(L.overlayAction," ").concat(""!==t?"withLabel":""),children:Object(We.jsx)(kn.a,{onClick:M?function(){M()}:function(){return null},size:"small",disableFocusRipple:!1,disableRipple:!1,disableTouchRipple:!1,children:A})})]})})})),Bn=a(71),Un=a(726),Gn=a(703),Kn=a(738),Wn=Object(y.a)((function(e){return Object(f.a)({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"}}})}))(Bn.c),Vn=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)({},lt),ut))}))((function(e){var t=e.classes,a=e.id,n=e.name,i=e.onChange,r=e.options,o=e.label,s=e.tooltip,l=void 0===s?"":s,d=e.value,u=e.disabled,b=void 0!==u&&u;return Object(We.jsx)(c.a.Fragment,{children:Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.fieldContainer,children:[""!==o&&Object(We.jsxs)(Dn.a,{htmlFor:a,className:t.inputLabel,children:[Object(We.jsx)("span",{children:o}),""!==l&&Object(We.jsx)("div",{className:t.tooltipContainer,children:Object(We.jsx)(Ln.a,{title:l,placement:"top-start",children:Object(We.jsx)("div",{children:Object(We.jsx)(oa,{className:t.tooltip})})})})]}),Object(We.jsx)(Un.a,{fullWidth:!0,children:Object(We.jsx)(Gn.a,{id:a,name:n,value:d,onChange:i,input:Object(We.jsx)(Wn,{}),disabled:b,children:r.map((function(e){return Object(We.jsx)(Kn.a,{value:e.value,children:e.label},"select-".concat(n,"-").concat(e.label))}))})})]})})})),Hn=a(8),qn=a(720),Yn=a(739),Qn=a(707),Zn=Object(v.a)(Object(p.a)({root:{"&:hover":{backgroundColor:"transparent"}}},mt)),Jn=function(e){var t=Zn();return Object(We.jsx)(Qn.a,Object(p.a)({className:t.root,disableRipple:!0,color:"default",checkedIcon:Object(We.jsx)("span",{className:t.radioSelectedIcon}),icon:Object(We.jsx)("span",{className:t.radioUnselectedIcon})},e))},$n=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)(Object(p.a)({},lt),ut),{},{radioBoxContainer:{},optionLabel:{"&.Mui-disabled":{"& .MuiFormControlLabel-label":{color:"#9c9c9c"}},"&:last-child":{marginRight:0},"& .MuiFormControlLabel-label":{fontSize:12,color:"#07193E"}},checkedOption:{"& .MuiFormControlLabel-label":{fontSize:12,color:"#07193E",fontWeight:700}}}))}))((function(e){var t=e.selectorOptions,a=void 0===t?[]:t,n=e.currentSelection,c=e.label,i=e.id,r=e.name,o=e.onChange,s=e.tooltip,l=void 0===s?"":s,d=e.disableOptions,u=void 0!==d&&d,b=e.classes,j=e.displayInColumn,h=void 0!==j&&j;return Object(We.jsxs)(k.a,{container:!0,alignItems:"center",children:[Object(We.jsx)(k.a,{item:!0,xs:!0,children:Object(We.jsxs)(Dn.a,{htmlFor:i,className:b.inputLabel,children:[Object(We.jsx)("span",{children:c}),""!==l&&Object(We.jsx)("div",{className:b.tooltipContainer,children:Object(We.jsx)(Ln.a,{title:l,placement:"top-start",children:Object(We.jsx)("div",{children:Object(We.jsx)(oa,{className:b.tooltip})})})})]})}),Object(We.jsx)(k.a,{item:!0,xs:!0,children:Object(We.jsx)(qn.a,{"aria-label":i,id:i,name:r,value:n,onChange:o,row:!h,style:{display:"block",textAlign:"right"},children:a.map((function(e){return Object(We.jsx)(Yn.a,{value:e.value,control:Object(We.jsx)(Jn,{}),label:e.label,disabled:u,className:Object(Hn.a)(b.optionLabel,Object(it.a)({},b.checkedOption,e.value===n))},"rd-".concat(r,"-").concat(e.value))}))})})]})})),Xn=a(755),ec=a(740),tc=Object(y.a)((function(e){return{root:{width:50,height:24,padding:0,margin:0},switchBase:{padding:1,"&$checked":{transform:"translateX(24px)",color:e.palette.common.white,"& + $track":{backgroundColor:"#4CCB92",boxShadow:"inset 0px 1px 4px rgba(0,0,0,0.1)",opacity:1,border:"none"}},"&$focusVisible $thumb":{color:"#4CCB92",border:"6px solid #fff"}},thumb:{width:22,height:22,backgroundColor:"#FAFAFA",border:"2px solid #FFFFFF",marginLeft:1},track:{borderRadius:12,backgroundColor:"#E2E2E2",boxShadow:"inset 0px 1px 4px rgba(0,0,0,0.1)",opacity:1,transition:e.transitions.create(["background-color","border"])},checked:{},focusVisible:{}}}))(ec.a),ac=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)({seeMore:{marginTop:e.spacing(3)},paper:{display:"flex",overflow:"auto",flexDirection:"column",paddingTop:15,boxShadow:"none"},addSideBar:{width:"320px",padding:"20px"},tableToolbar:{paddingLeft:e.spacing(2),paddingRight:e.spacing(0)},wrapCell:{maxWidth:"200px",whiteSpace:"normal",wordWrap:"break-word"},minTableHeader:{color:"#393939","& tr":{"& th":{fontWeight:"bold"}}},noFound:{textAlign:"center",padding:"10px 0"},tableContainer:{maxHeight:200},stickyHeader:{backgroundColor:"#fff"},actionsTitle:{fontWeight:600,color:"#081C42",fontSize:16,alignSelf:"center"},tableBlock:{marginTop:15},filterField:{width:375,fontWeight:600,"& .input":{"&::placeholder":{fontWeight:600,color:"#081C42"}}},divContainer:{marginBottom:20,maxWidth:840},indicatorLabelOn:{fontWeight:"bold",color:"#081C42 !important"},indicatorLabel:{fontSize:12,color:"#E2E2E2",margin:"0 8px 0 10px"},fieldDescription:{marginTop:4,color:"#999999"},tooltip:{fontSize:16}},pt),lt))}))((function(e){var t=e.label,a=void 0===t?"":t,n=e.onChange,i=e.value,r=e.id,o=e.name,s=e.checked,l=void 0!==s&&s,d=e.disabled,u=void 0!==d&&d,b=e.switchOnly,j=void 0!==b&&b,h=e.tooltip,m=void 0===h?"":h,p=e.description,O=void 0===p?"":p,g=e.classes,x=e.indicatorLabels,f=Object(We.jsxs)(c.a.Fragment,{children:[!j&&Object(We.jsx)("span",{className:Object(Hn.a)(g.indicatorLabel,Object(it.a)({},g.indicatorLabelOn,!l)),children:x&&x.length>1?x[1]:"OFF"}),Object(We.jsx)(tc,{checked:l,onChange:n,color:"primary",name:o,inputProps:{"aria-label":"primary checkbox"},disabled:u,disableRipple:!0,disableFocusRipple:!0,disableTouchRipple:!0,value:i}),!j&&Object(We.jsx)("span",{className:Object(Hn.a)(g.indicatorLabel,Object(it.a)({},g.indicatorLabelOn,l)),children:x?x[0]:"ON"})]});return j?f:Object(We.jsx)("div",{className:g.divContainer,children:Object(We.jsxs)(k.a,{container:!0,alignItems:"center",children:[Object(We.jsx)(k.a,{item:!0,xs:!0,children:""!==a&&Object(We.jsxs)(Dn.a,{htmlFor:r,className:g.inputLabel,children:[Object(We.jsx)("span",{children:a}),""!==m&&Object(We.jsx)("div",{className:g.tooltipContainer,children:Object(We.jsx)(Ln.a,{title:m,placement:"top-start",children:Object(We.jsx)("div",{children:Object(We.jsx)(oa,{className:g.tooltip})})})})]})}),Object(We.jsx)(k.a,{item:!0,xs:!0,textAlign:"right",children:f}),""!==O&&Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(w.a,{component:"p",className:g.fieldDescription,children:O})})]})})})),nc=Object(o.b)((function(e){return{addBucketModalOpen:e.buckets.open,bucketName:e.buckets.addBucketName,versioningEnabled:e.buckets.addBucketVersioningEnabled,lockingEnabled:e.buckets.addBucketLockingEnabled,quotaEnabled:e.buckets.addBucketQuotaEnabled,quotaType:e.buckets.addBucketQuotaType,quotaSize:e.buckets.addBucketQuotaSize,quotaUnit:e.buckets.addBucketQuotaUnit,retentionEnabled:e.buckets.addBucketRetentionEnabled,retentionMode:e.buckets.addBucketRetentionMode,retentionUnit:e.buckets.addBucketRetentionUnit,retentionValidity:e.buckets.addBucketRetentionValidity,distributedSetup:e.system.distributedSetup}}),{addBucketName:function(e){return{type:on,name:e}},addBucketVersioned:function(e){return{type:sn,versioned:e}},enableObjectLocking:function(e){return{type:ln,locking:e}},addBucketQuota:function(e){return{type:dn,quota:e}},addBucketQuotaType:function(e){return{type:un,quotaType:e}},addBucketQuotaSize:function(e){return{type:bn,quotaSize:e}},addBucketQuotaUnit:function(e){return{type:jn,quotaUnit:e}},addBucketRetention:function(e){return{type:mn,retention:e}},addBucketRetentionMode:function(e){return{type:pn,retentionMode:e}},addBucketRetentionUnit:function(e){return{type:On,retentionUnit:e}},addBucketRetentionValidity:function(e){return{type:gn,retentionValidity:e}},setModalError:re})(Object(y.a)((function(e){return Object(f.a)(Object(p.a)({buttonContainer:{textAlign:"right"},multiContainer:{display:"flex",alignItems:"center",justifyContent:"flex-start"},quotaSizeContainer:{flexGrow:1},sizeFactorContainer:{flexGrow:0,maxWidth:80,marginLeft:8,alignSelf:"flex-start"},error:{color:"#b53b4b",border:"1px solid #b53b4b",padding:8,borderRadius:3}},dt))}))((function(e){var t=e.classes,a=e.open,i=e.closeModalAndRefresh,r=e.addBucketName,o=e.addBucketVersioned,s=e.enableObjectLocking,l=e.addBucketQuota,d=e.addBucketQuotaType,u=e.addBucketQuotaSize,b=e.addBucketQuotaUnit,j=e.addBucketRetention,h=e.addBucketRetentionMode,p=e.addBucketRetentionUnit,g=e.addBucketRetentionValidity,x=e.setModalError,f=e.bucketName,v=e.versioningEnabled,y=e.lockingEnabled,C=e.quotaEnabled,T=e.quotaType,N=e.quotaSize,E=e.quotaUnit,A=e.retentionEnabled,_=e.retentionMode,I=e.retentionUnit,M=e.retentionValidity,z=e.distributedSetup,D=Object(n.useState)(!1),L=Object(m.a)(D,2),F=L[0],R=L[1],P=Object(n.useState)(!1),B=Object(m.a)(P,2),U=B[0],G=B[1],K=Object(n.useState)(!1),W=Object(m.a)(K,2),V=W[0],H=W[1],q=Object(Xn.a)(f,1e3),Y=Object(m.a)(q,1)[0];Object(n.useEffect)((function(){r(Y)}),[Y,r]);var Q=function(){r(""),o(!1),s(!1),l(!1),d("hard"),u("1"),b("TiB"),j(!1),h("compliance"),p("days"),g(1)};return Object(n.useEffect)((function(){var e=!1;""!==f.trim()&&(e=!0),C&&e&&(""!==N.trim()&&0!==parseInt(N)||(e=!1)),v&&A||(j(!1),h("compliance"),p("days"),g(1)),A?(s(!0),H(!0)):H(!1),A&&(Number.isNaN(M)||M<1)&&(e=!1),G(e)}),[f,A,y,T,N,E,C,j,h,p,g,M,v,s]),Object(We.jsx)(zn,{title:"Create Bucket",modalOpen:a,onClose:function(){i(!1)},"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:Object(We.jsx)("form",{noValidate:!0,autoComplete:"off",onSubmit:function(e){!function(e){if(e.preventDefault(),!F){R(!0);var t={name:f,versioning:!!z&&v,locking:!!z&&y};if(z){if(C){var a=we(N,E,!1);t.quota={enabled:!0,quota_type:T,amount:parseInt(a)}}A&&(t.retention={mode:_,unit:I,validity:M})}Ge.invoke("POST","/api/v1/buckets",t).then((function(e){R(!1),i(!0)})).catch((function(e){R(!1),x(e)})),Q()}}(e)},children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.formScrollable,children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"bucket-name",name:"bucket-name",onChange:function(e){r(e.target.value)},label:"Bucket Name",value:f})}),Object(We.jsxs)(k.a,{item:!0,xs:12,children:[Object(We.jsx)(w.a,{component:"h6",variant:"h6",children:"Features"}),Object(We.jsx)("br",{}),!z&&Object(We.jsxs)(n.Fragment,{children:[Object(We.jsxs)("div",{className:t.error,children:["These features are unavailable in a single-disk setup.",Object(We.jsx)("br",{}),"Please deploy a server in"," ",Object(We.jsx)("a",{href:"https://docs.min.io/minio/baremetal/installation/deploy-minio-distributed.html?ref=con",target:"_blank",rel:"noreferrer",children:"Distributed Mode"})," ","to use these features."]}),Object(We.jsx)("br",{}),Object(We.jsx)("br",{})]})]}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ac,{value:"versioned",id:"versioned",name:"versioned",checked:v,onChange:function(e){o(e.target.checked)},description:"Allows to keep multiple versions of the same object under the same key.",label:"Versioning",disabled:!z})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ac,{value:"locking",id:"locking",name:"locking",disabled:V||!z,checked:y,onChange:function(e){s(e.target.checked)},label:"Object Locking",description:"Required to support retention and legal hold. Can only be enabled at bucket creation."})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ac,{value:"bucket_quota",id:"bucket_quota",name:"bucket_quota",checked:C,onChange:function(e){l(e.target.checked)},label:"Quota",description:"Limit the amount of data in the bucket.",disabled:!z})}),C&&z&&Object(We.jsxs)(c.a.Fragment,{children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)($n,{currentSelection:T,id:"quota_type",name:"quota_type",label:"Quota Type",onChange:function(e){d(e.target.value)},selectorOptions:[{value:"hard",label:"Hard"},{value:"fifo",label:"FIFO"}]})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsx)(k.a,{item:!0,xs:10,children:Object(We.jsx)(Pn,{type:"number",id:"quota_size",name:"quota_size",onChange:function(e){u(e.target.value)},label:"Quota",value:N,required:!0,min:"1"})}),Object(We.jsx)(k.a,{item:!0,xs:2,children:Object(We.jsx)("div",{style:{width:100},children:Object(We.jsx)(Vn,{label:"",id:"quota_unit",name:"quota_unit",value:E,onChange:function(e){b(e.target.value)},options:Ce()})})})]})})]}),v&&z&&Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ac,{value:"bucket_retention",id:"bucket_retention",name:"bucket_retention",checked:A,onChange:function(e){j(e.target.checked)},label:"Retention",description:"Impose rules to prevent object deletion for a period of time."})}),A&&z&&Object(We.jsxs)(c.a.Fragment,{children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)($n,{currentSelection:_,id:"retention_mode",name:"retention_mode",label:"Retention Mode",onChange:function(e){h(e.target.value)},selectorOptions:[{value:"compliance",label:"Compliance"},{value:"governance",label:"Governance"}]})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)($n,{currentSelection:I,id:"retention_unit",name:"retention_unit",label:"Retention Unit",onChange:function(e){p(e.target.value)},selectorOptions:[{value:"days",label:"Days"},{value:"years",label:"Years"}]})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{type:"number",id:"retention_validity",name:"retention_validity",onChange:function(e){g(e.target.valueAsNumber)},label:"Retention Validity",value:String(M),required:!0,min:"1"})})]})]}),Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.buttonContainer,children:[Object(We.jsx)("button",{type:"button",color:"primary",className:t.clearButton,onClick:Q,children:"Clear"}),Object(We.jsx)(S.a,{type:"submit",variant:"contained",color:"primary",disabled:F||!U,children:"Save"})]}),F&&Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(O.a,{})})]})})})}))),cc=a(741),ic=a(742),rc={setErrorSnackMessage:ce},oc=Object(o.b)(null,rc)((function(e){var t=e.closeDeleteModalAndRefresh,a=e.deleteOpen,c=e.selectedBucket,i=e.setErrorSnackMessage,r=Object(n.useState)(!1),o=Object(m.a)(r,2),s=o[0],l=o[1];return Object(We.jsxs)(wn.a,{open:a,onClose:function(){t(!1)},"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[Object(We.jsx)(Tn.a,{id:"alert-dialog-title",children:"Delete Bucket"}),Object(We.jsxs)(Nn.a,{children:[s&&Object(We.jsx)(O.a,{}),Object(We.jsxs)(cc.a,{id:"alert-dialog-description",children:["Are you sure you want to delete bucket ",Object(We.jsx)("b",{children:c}),"? ",Object(We.jsx)("br",{}),"A bucket can only be deleted if it's empty."]})]}),Object(We.jsxs)(ic.a,{children:[Object(We.jsx)(S.a,{onClick:function(){t(!1)},color:"primary",disabled:s,children:"Cancel"}),Object(We.jsx)(S.a,{onClick:function(){s||(l(!0),Ge.invoke("DELETE","/api/v1/buckets/".concat(c),{name:c}).then((function(e){l(!1),t(!0)})).catch((function(e){l(!1),i(e)})))},color:"secondary",autoFocus:!0,children:"Delete"})]})]})})),sc=Object(o.b)((function(e){return{sidebarOpen:e.system.sidebarOpen,operatorMode:e.system.operatorMode}}),null)(Object(y.a)((function(e){return Object(f.a)({headerContainer:{width:"100%",minHeight:79,display:"flex",backgroundColor:"#fff",left:0,boxShadow:"rgba(0,0,0,.08) 0 3px 10px"},label:{display:"flex",justifyContent:"flex-start",alignItems:"center"},labelStyle:{color:"#000",fontSize:18,fontWeight:700,marginLeft:34,marginTop:8},rightMenu:{textAlign:"right"},logo:{marginLeft:34,fill:e.palette.primary.main,width:120}})}))((function(e){var t=e.classes,a=e.label,n=e.actions,c=e.sidebarOpen,i=e.operatorMode;return Object(We.jsxs)(k.a,{container:!0,className:t.headerContainer,direction:"row",alignItems:"center",children:[Object(We.jsx)(Ft.a,{display:{xs:"block",sm:"block",md:"none"},children:Object(We.jsx)(k.a,{item:!0,xs:12,style:{height:10},children:"\xa0"})}),Object(We.jsxs)(k.a,{item:!0,xs:12,sm:12,md:3,className:t.label,children:[!c&&Object(We.jsx)("div",{className:t.logo,children:i?Object(We.jsx)(aa,{}):Object(We.jsx)(da,{})}),Object(We.jsx)(w.a,{variant:"h4",className:t.labelStyle,children:a})]}),n&&Object(We.jsx)(k.a,{item:!0,xs:12,sm:12,md:9,className:t.rightMenu,children:n})]})}))),lc=a(29),dc=a(743),uc=a(744),bc=a(745),jc=a(711),hc=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)(Object(p.a)(Object(p.a)({},lt),ut),jt),{},{fieldContainer:Object(p.a)(Object(p.a)({},lt.fieldContainer),{},{display:"flex",justifyContent:"flex-start",alignItems:"center",margin:"15px 0",marginBottom:0,flexBasis:"initial"})}))}))((function(e){var t=e.label,a=e.onChange,n=e.value,i=e.id,r=e.name,o=e.checked,s=void 0!==o&&o,l=e.disabled,d=void 0!==l&&l,u=e.tooltip,b=void 0===u?"":u,j=e.classes;return Object(We.jsx)(c.a.Fragment,{children:Object(We.jsxs)(k.a,{item:!0,xs:12,className:j.fieldContainer,children:[Object(We.jsx)("div",{children:Object(We.jsx)(jc.a,{name:r,id:i,value:n,color:"primary",inputProps:{"aria-label":"secondary checkbox"},checked:s,onChange:a,checkedIcon:Object(We.jsx)("span",{className:j.checkedIcon}),icon:Object(We.jsx)("span",{className:j.unCheckedIcon}),disabled:d})}),""!==t&&Object(We.jsxs)(Dn.a,{htmlFor:i,className:j.noMinWidthLabel,children:[Object(We.jsx)("span",{children:t}),""!==b&&Object(We.jsx)("div",{className:j.tooltipContainer,children:Object(We.jsx)(Ln.a,{title:b,placement:"top-start",children:Object(We.jsx)("div",{children:Object(We.jsx)(oa,{className:j.tooltip})})})})]})]})})})),mc=Object(y.a)((function(e){return Object(f.a)({root:{marginBottom:30,border:0,borderRadius:10,color:e.palette.primary.main,boxShadow:"0px 0px 15px #00000029","& .MuiSvgIcon-root":{height:13},"& .MuiCardHeader-content":{wordWrap:"break-word",overflowWrap:"break-word",wordBreak:"break-all",font:"normal normal bold 24px/27px Lato",color:e.palette.primary.main,"& .MuiTypography-root":{fontSize:19,fontWeight:"bold","& .MuiSvgIcon-root":{position:"relative",top:4,marginRight:4,height:"24px !important"}}},"& .MuiCardHeader-root":{background:"transparent linear-gradient(0deg, #EEF1F44E 0%, #FFFFFF 100%) 0% 0% no-repeat padding-box"}},checkBoxElement:{width:32,height:32,float:"left",overflow:"hidden","& div":{position:"absolute"}},buttonTray:{textAlign:"right"},viewButton:{width:111,color:"white",backgroundColor:"#C83B51",fontSize:12,fontWeight:"normal",boxShadow:"unset",borderRadius:4},manageButton:{borderRadius:4,width:111,color:e.palette.grey[700],textTransform:"unset",fontSize:12,fontWeight:"normal","& .MuiButton-endIcon":{"& .MuiSvgIcon-root":{fontSize:18}}},divider:{backgroundColor:e.palette.grey[200],marginTop:10,marginBottom:4},metricLabel:{fontSize:16,fontWeight:"bold"},metricText:{fontSize:50,fontWeight:"bold",marginBottom:10},unit:{fontSize:12,fontWeight:"normal"}})}))((function(e){var t=e.classes,a=e.bucket,n=(e.onDelete,e.onSelect),c=e.selected,i=e.bulkSelect,r=fe("".concat(a.size)||"0"),o=r.split(" ")[0],s=r.split(" ")[1];return Object(We.jsxs)(dc.a,{className:t.root,children:[Object(We.jsx)(uc.a,{disableTypography:!0,title:Object(We.jsxs)(w.a,{variant:"body1",children:[i&&Object(We.jsx)("div",{className:t.checkBoxElement,onClick:function(e){e.stopPropagation()},children:Object(We.jsx)(hc,{checked:c,id:"select-".concat(a.name),label:"",name:"select-".concat(a.name),onChange:function(e){n(e)},value:a.name})}),Object(We.jsx)(Ta,{}),a.name]})}),Object(We.jsx)(bc.a,{children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsx)(k.a,{item:!0,xs:12,sm:8,md:10,children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsxs)(k.a,{item:!0,xs:12,md:6,children:[Object(We.jsxs)(w.a,{variant:"body2",children:[Object(We.jsx)(Xa,{})," Created: ",Object(We.jsx)("b",{children:a.creation_date})]}),Object(We.jsxs)(w.a,{variant:"body2",children:[Object(We.jsx)(Da,{})," Access: ",Object(We.jsxs)("b",{children:[" ",function(e){var t,a,n,c,i,r;return(null===(t=e.rw_access)||void 0===t?void 0:t.read)&&!(null===(a=e.rw_access)||void 0===a?void 0:a.write)?"R":!(null===(n=e.rw_access)||void 0===n?void 0:n.read)&&(null===(c=e.rw_access)||void 0===c?void 0:c.write)?"W":(null===(i=e.rw_access)||void 0===i?void 0:i.read)&&(null===(r=e.rw_access)||void 0===r?void 0:r.write)?"R/W":""}(a)]})]})]}),Object(We.jsxs)(k.a,{item:!0,xs:6,md:3,children:[Object(We.jsxs)(w.a,{variant:"body1",className:t.metricLabel,children:[Object(We.jsx)(ca,{})," USAGE"]}),Object(We.jsxs)("div",{className:t.metricText,children:[o,Object(We.jsx)("span",{className:t.unit,children:s})]})]}),Object(We.jsxs)(k.a,{item:!0,xs:6,md:3,children:[Object(We.jsxs)(w.a,{variant:"body1",className:t.metricLabel,children:[Object(We.jsx)(Ia,{})," OBJECTS"]}),Object(We.jsx)("div",{className:t.metricText,children:a.objects?Re(a.objects):0})]})]})}),Object(We.jsx)(k.a,{item:!0,xs:12,sm:4,md:2,className:t.buttonTray,children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsxs)(k.a,{item:!0,xs:6,sm:12,md:12,children:[Object(We.jsx)(lc.a,{to:"/buckets/".concat(a.name,"/browse"),style:{textDecoration:"none"},children:Object(We.jsx)(S.a,{variant:"contained",endIcon:Object(We.jsx)($a,{}),className:t.viewButton,children:"Browse"})}),Object(We.jsx)(Ft.a,{display:{xs:"none",sm:"block"},children:Object(We.jsx)("div",{style:{marginBottom:10}})})]}),a.manage&&Object(We.jsx)(k.a,{item:!0,xs:6,sm:12,md:12,children:Object(We.jsx)(lc.a,{to:"/buckets/".concat(a.name,"/admin"),style:{textDecoration:"none"},children:Object(We.jsx)(S.a,{variant:"outlined",endIcon:Object(We.jsx)(Ea,{}),className:t.manageButton,children:"Manage"})})})]})})]})})]})})),pc=a(324),Oc=a.n(pc),gc=Object(y.a)((function(e){return Object(f.a)(Object(p.a)({},gt))}))((function(e){var t=e.classes,a=e.label,c=void 0===a?"":a,i=e.content,r=e.multiLine,o=void 0!==r&&r;return Object(We.jsx)(n.Fragment,{children:Object(We.jsxs)(k.a,{className:t.prefinedContainer,children:[""!==c&&Object(We.jsx)(k.a,{item:!0,xs:12,className:t.predefinedTitle,children:c}),Object(We.jsx)(k.a,{item:!0,xs:12,className:t.predefinedList,children:Object(We.jsx)(k.a,{item:!0,xs:12,className:o?t.innerContentMultiline:t.innerContent,children:i})})]})})})),xc=Object(y.a)((function(e){return Object(f.a)({wizardStepContainer:{display:"flex",flexDirection:"column"},wizardComponent:{overflowY:"auto",marginBottom:10,height:"calc(100vh - 100px - 80px)",maxWidth:840,width:"100%"},wizardModal:{overflowY:"auto",marginBottom:10,height:"calc(100vh - 515px)"},buttonsContainer:{display:"flex",flexDirection:"row",justifyContent:"flex-start",padding:"10px 0",borderTop:"#EAEAEA 1px solid","& button":{marginLeft:10},"&.forModal":{paddingBottom:0}},buttonInnerContainer:{maxWidth:840,width:"100%",textAlign:"right"}})}))((function(e){var t=e.classes,a=e.page,n=e.pageChange,c=e.loadingStep,i=e.forModal;return Object(We.jsxs)("div",{className:t.wizardStepContainer,children:[Object(We.jsx)("div",{className:i?t.wizardModal:t.wizardComponent,children:a.componentRender}),c&&Object(We.jsx)("div",{children:Object(We.jsx)(O.a,{})}),Object(We.jsx)("div",{className:"".concat(t.buttonsContainer," ").concat(i?"forModal":""),children:Object(We.jsx)("div",{className:t.buttonInnerContainer,children:a.buttons.map((function(e){return Object(We.jsx)(S.a,{variant:"contained",color:"primary",size:"small",onClick:function(){!function(e){switch(e.type){case"next":n("++");break;case"back":n("--");break;case"to":n(e.toPage||0)}e.action&&e.action(n)}(e)},disabled:!e.enabled,children:e.label},"button-".concat(a.label,"-").concat(e.label))}))})})]})})),fc=a(728),vc=a(712),yc=a(685),Sc=Object(y.a)((function(e){return Object(f.a)({wizardMain:{display:"flex",width:"100%",height:"100%",flexGrow:1},wizFromContainer:{},wizFromModal:{position:"relative"},modalWizardSteps:{padding:5,borderBottom:"#eaeaea 1px solid","& ul":{padding:0,marginTop:0,display:"flex",justifyContent:"space-evenly","& li":{listStyle:"lower-roman","&::marker":{paddingLeft:15}}}},buttonList:{backgroundColor:"transparent",border:"none",cursor:"pointer","&:not(:disabled):hover":{textDecoration:"underline"},"&:selected, &:active, &:focus, &:focus:active":{border:"none",outline:0,boxShadow:"none"}},paddedContentGrid:{marginTop:8,padding:"0 10px"},stepsLabel:{fontSize:20,color:"#393939",fontWeight:600,margin:"15px 12px","&.stepsModalTitle":{textAlign:"center",width:"100%",marginTop:0,marginBottom:10}},stepsMasterContainer:{position:"sticky",top:0,backgroundColor:"#FFFFFF",width:"100%",maxHeight:90}})}))((function(e){var t=e.classes,a=e.wizardSteps,c=e.loadingStep,i=e.forModal,r=Object(n.useState)(0),o=Object(m.a)(r,2),s=o[0],l=o[1],d=function(e){var t=a.length-1;if("++"===e){var n=s+1;n>t&&(n=t),l(n)}if("--"===e){var c=s-1;c<0&&(c=0),l(c)}if("number"===typeof e){var i=e;e<0&&(i=0),e>t&&(i=t),l(i)}};if(0===a.length)return null;return Object(We.jsxs)(k.a,{container:!0,className:i?t.wizFromModal:t.wizFromContainer,children:[i?Object(We.jsx)(n.Fragment,{children:Object(We.jsxs)("div",{className:t.stepsMasterContainer,children:[Object(We.jsx)("div",{className:"".concat(t.stepsLabel," stepsModalTitle"),children:"Steps"}),Object(We.jsx)("div",{className:t.modalWizardSteps,children:Object(We.jsx)("ul",{children:a.map((function(e,a){return Object(We.jsx)("li",{children:Object(We.jsx)("button",{onClick:function(){return d(a)},disabled:a>s,className:t.buttonList,children:e.label})},"wizard-".concat(a.toString()))}))})})]})}):Object(We.jsx)(n.Fragment,{children:Object(We.jsx)(k.a,{item:!0,xs:12,sm:2,md:2,lg:2,xl:2,children:Object(We.jsx)(n.Fragment,{children:Object(We.jsx)(fc.a,{component:"nav",dense:!0,children:a.map((function(e,t){return Object(We.jsx)(vc.a,{button:!0,onClick:function(){return d(t)},selected:s===t,children:Object(We.jsx)(yc.a,{primary:e.label})},"wizard-".concat(t.toString()))}))})})})}),Object(We.jsx)(k.a,{item:!0,xs:12,sm:i?12:10,md:i?12:10,lg:i?12:10,xl:i?12:10,className:i?"":t.paddedContentGrid,children:Object(We.jsx)(xc,{page:a[s],pageChange:d,loadingStep:c,forModal:i})})]})})),Cc=Object(o.b)(null,{setModalErrorSnackMessage:re}),kc=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)({minTableHeader:{color:"#393939","& tr":{"& th":{fontWeight:"bold"}}},buttonContainer:{textAlign:"right"},remoteBucketList:{display:"grid",gridTemplateColumns:"auto auto 45px",alignItems:"center",justifyContent:"stretch"},errorIcon:{color:"#C72C48"},successIcon:{color:"#42C91A"},hide:{opacity:0,transitionDuration:"0.3s"}},dt),Nt))}))(Cc((function(e){var t=e.open,a=e.closeModalAndRefresh,c=e.classes,i=e.buckets,r=e.setModalErrorSnackMessage,o=Object(n.useState)([]),s=Object(m.a)(o,2),l=s[0],d=s[1],u=Object(n.useState)(!1),b=Object(m.a)(u,2),j=b[0],h=b[1],p=Object(n.useState)(!1),O=Object(m.a)(p,2),g=O[0],x=O[1],f=Object(n.useState)(""),v=Object(m.a)(f,2),y=v[0],S=v[1],C=Object(n.useState)(""),w=Object(m.a)(C,2),T=w[0],N=w[1],E=Object(n.useState)(""),A=Object(m.a)(E,2),_=A[0],I=A[1],M=Object(n.useState)(""),z=Object(m.a)(M,2),D=z[0],L=z[1],F=Object(n.useState)(!0),R=Object(m.a)(F,2),P=R[0],B=R[1],U=Object(n.useState)("async"),G=Object(m.a)(U,2),K=G[0],W=G[1],V=Object(n.useState)("100"),H=Object(m.a)(V,2),q=H[0],Y=H[1],Q=Object(n.useState)("Gi"),Z=Object(m.a)(Q,2),J=Z[0],$=Z[1],X=Object(n.useState)("60"),ee=Object(m.a)(X,2),te=ee[0],ae=ee[1],ne=Object(n.useState)([]),ce=Object(m.a)(ne,2),ie=ce[0],re=ce[1],oe=Object(n.useState)([]),se=Object(m.a)(oe,2),le=se[0],de=se[1],ue=Object(n.useState)([]),je=Object(m.a)(ue,2),he=je[0],me=je[1],pe=le.map((function(e){return{label:e,value:e}}));Object(n.useEffect)((function(){if(0===ie.length){var e=[],t=[];i.forEach((function(a){e.push(a),t.push("")})),re(t),d(e)}}),[i,ie.length]);var Oe=function(e){var t=e.errString;switch(t){case"":return Object(We.jsx)("div",{className:c.successIcon,children:Object(We.jsx)(Oc.a,{})});case"n/a":return null;default:if(t)return Object(We.jsx)("div",{className:c.errorIcon,children:Object(We.jsx)(Ln.a,{title:t,placement:"top-start",children:Object(We.jsx)(Qe.a,{})})})}return null},ge=function(e,t){var a=Object(Kt.a)(ie);a[e]=t,re(a)},xe=function(e){var t=Object(Kt.a)(l),a=Object(Kt.a)(ie);e.forEach((function(e){var n=be()(e,"errorString","");if(!n||""===n){var c=t.indexOf(e.originBucket);t.splice(c,1),a.splice(c,1)}})),d(t),re(a)};return Object(We.jsx)(zn,{modalOpen:t,onClose:function(){a(!1)},title:"Set Multiple Bucket Replication",children:Object(We.jsx)(Sc,{loadingStep:j||g,wizardSteps:[{label:"Remote Configuration",componentRender:Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(gc,{label:"Local Buckets to replicate",content:l.join(", ")})}),Object(We.jsx)("h4",{children:"Remote Endpoint Configuration"}),Object(We.jsx)("span",{className:c.descriptionText,children:"Please avoid the use of root credentials for this feature"}),Object(We.jsx)("br",{}),Object(We.jsx)("br",{}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"accessKey",name:"accessKey",onChange:function(e){S(e.target.value)},label:"Access Key",value:y})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"secretKey",name:"secretKey",onChange:function(e){N(e.target.value)},label:"Secret Key",value:T})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"targetURL",name:"targetURL",onChange:function(e){I(e.target.value)},placeholder:"play.min.io:9000",label:"Target URL",value:_})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ac,{checked:P,id:"useTLS",name:"useTLS",label:"Use TLS",onChange:function(e){B(e.target.checked)},value:"yes"})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"region",name:"region",onChange:function(e){L(e.target.value)},label:"Region",value:D})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Vn,{id:"replication_mode",name:"replication_mode",onChange:function(e){W(e.target.value)},label:"Replication Mode",value:K,options:[{label:"Asynchronous",value:"async"},{label:"Synchronous",value:"sync"}]})}),"async"===K&&Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsxs)("div",{className:c.multiContainer,children:[Object(We.jsx)("div",{children:Object(We.jsx)(Pn,{type:"number",id:"bandwidth_scalar",name:"bandwidth_scalar",onChange:function(e){Y(e.target.value)},label:"Bandwidth",value:q,min:"0"})}),Object(We.jsx)("div",{className:c.sizeFactorContainer,children:Object(We.jsx)(Vn,{label:"Unit",id:"bandwidth_unit",name:"bandwidth_unit",value:J,onChange:function(e){$(e.target.value)},options:ke()})})]})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"healthCheck",name:"healthCheck",onChange:function(e){ae(e.target.value)},label:"Health Check Duration",value:te})})]}),buttons:[{type:"custom",label:"Next",enabled:!g,action:function(e){var t={accessKey:y,secretKey:T,targetURL:_,useTLS:P};x(!0),Ge.invoke("POST","/api/v1/list-external-buckets",t).then((function(t){var a=be()(t,"buckets",[]);if(a&&a.length>0){var n=a.map((function(e){return e.name}));de(n)}e("++"),x(!1)})).catch((function(e){x(!1),r(e)}))}}]},{label:"Bucket Assignments",componentRender:Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)("h3",{children:"Remote Bucket Assignments"}),Object(We.jsx)("span",{className:c.descriptionText,children:"Please select / type the desired remote bucket were you want the local data to be replicated."}),Object(We.jsx)("div",{className:c.remoteBucketList,children:l.map((function(e,t){var a,i=function(e){if(he.length>0){var t=he.find((function(t){return t.originBucket===e}));if(t)return be()(t,"errorString","")||""}return"n/a"}(e);return Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)("div",{className:""===i?c.hide:"",children:e}),Object(We.jsx)("div",{className:""===i?c.hide:"",children:(a=t,le.length>0?Object(We.jsx)(n.Fragment,{children:Object(We.jsx)(Vn,{label:"",id:"assign-bucket-".concat(a),name:"assign-bucket-".concat(a),value:ie[a],onChange:function(e){ge(a,e.target.value)},options:pe,disabled:j})}):Object(We.jsx)(n.Fragment,{children:Object(We.jsx)(Pn,{id:"assign-bucket-".concat(a),name:"assign-bucket-".concat(a),label:"",onChange:function(e){ge(a,e.target.value)},value:ie[a],disabled:j})}))}),Object(We.jsx)("div",{className:""===i?c.hide:"",children:he.length>0&&Object(We.jsx)(Oe,{errString:i})})]},"buckets-assignation-".concat(t.toString(),"-").concat(e))}))})]}),buttons:[{type:"back",label:"Back",enabled:!0},{type:"next",label:"Create",enabled:!j,action:function(){h(!0);var e=l.map((function(e,t){return{originBucket:e,destinationBucket:ie[t]}})),t="".concat(P?"https://":"http://").concat(_),n=parseInt(te),c={accessKey:y,secretKey:T,targetURL:t,region:D,bucketsRelation:e,syncMode:K,bandwidth:"async"===K?parseInt(we(q,J,!0)):0,healthCheckPeriod:n};Ge.invoke("POST","/api/v1/buckets-replication",c).then((function(e){h(!1);var t=e.replicationState;me(t),0===t.filter((function(e){return e.errorString&&""!==e.errorString})).length?a(!0):setTimeout((function(){xe(t)}),500)})).catch((function(e){h(!1),r(e)}))}}]}],forModal:!0})})}))),wc=Object(y.a)((function(e){return Object(f.a)({root:{border:"1px solid rgb(234, 237, 238)",borderRadius:5,paddingTop:10,paddingLeft:40,paddingRight:40,paddingBottom:40,marginTop:10,marginBottom:10,backgroundColor:"#fbfafa"},icon:{fontSize:16,fontWeight:"bold",marginBottom:20,"& .MuiSvgIcon-root":{fontSize:44,marginRight:15}},iconSize:{fontSize:64},helpText:{fontSize:16}})}))((function(e){var t=e.classes,a=e.iconComponent,n=e.title,c=e.help;return Object(We.jsx)("div",{className:t.root,children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsxs)(k.a,{xs:12,className:t.icon,children:[a,n]}),Object(We.jsx)(k.a,{xs:12,className:t.helpText,children:c})]})})})),Tc=Object(o.b)((function(e){return{addBucketModalOpen:e.buckets.open,session:e.console.session}}),{addBucketOpen:function(e){return{type:rn,open:e}},addBucketReset:function(){return{type:hn}},setErrorSnackMessage:ce})(Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)({seeMore:{marginTop:e.spacing(3)},paper:{display:"flex",overflow:"auto",flexDirection:"column"},addSideBar:{width:"320px",padding:"20px"},tableToolbar:{paddingLeft:e.spacing(2),paddingRight:e.spacing(0)},minTableHeader:{color:"#393939","& tr":{"& th":{fontWeight:"bold"}}},buttonTray:{textAlign:"right","& .MuiButton-root":{fontSize:12,borderColor:e.palette.grey[300],color:e.palette.grey[300],textTransform:"capitalize",marginRight:6},"& .MuiButton-contained":{color:"white"}},bulkSelect:{"&:hover":{backgroundColor:e.palette.primary.main},"&.MuiButton-contained":{backgroundColor:e.palette.primary.main}},theaderSearchLabel:{color:e.palette.grey[400],fontSize:14,fontWeight:"bold"},addBucket:{marginRight:8},theaderSearch:{borderColor:e.palette.grey[200],"& .MuiInputBase-input":{paddingTop:10,paddingBottom:10},"& .MuiInputBase-root":{"& .MuiInputAdornment-root":{"& .MuiSvgIcon-root":{color:e.palette.grey[400],height:14}}},actionHeaderItems:{"@media (min-width: 320px)":{marginTop:8}},marginRight:10,marginLeft:10}},(e.spacing(4),{container:{position:"relative",maxWidth:1180,padding:"20px 35px 0","& h6":{color:"#777777",fontSize:30},"& p":{"& span:not(*[class*='smallUnit'])":{fontSize:16}}},sectionTitle:{padding:"0px",margin:"0px"},topSpacer:{height:"8px"}})),{},{constrainedContainer:{maxWidth:1180}},Lt(e.palette.info.main)))}))((function(e){var t=e.classes,a=(e.history,e.addBucketOpen),c=e.addBucketModalOpen,i=e.addBucketReset,r=e.setErrorSnackMessage,o=(e.session,Object(n.useState)([])),s=Object(m.a)(o,2),l=s[0],d=s[1],u=Object(n.useState)(!0),b=Object(m.a)(u,2),j=b[0],h=b[1],p=Object(n.useState)(!1),g=Object(m.a)(p,2),x=g[0],f=g[1],v=Object(n.useState)(""),y=Object(m.a)(v,2),w=y[0],T=y[1],N=Object(n.useState)(""),E=Object(m.a)(N,2),A=E[0],_=E[1],I=Object(n.useState)(!0),M=Object(m.a)(I,2),z=M[0],D=M[1],L=Object(n.useState)(!1),F=Object(m.a)(L,2),R=F[0],P=F[1],B=Object(n.useState)([]),U=Object(m.a)(B,2),G=U[0],K=U[1],W=Object(n.useState)(!1),V=Object(m.a)(W,2),H=V[0],q=V[1],Y=Object(n.useState)(!1),Q=Object(m.a)(Y,2),Z=Q[0],J=Q[1];Object(n.useEffect)((function(){z&&Ge.invoke("POST","/api/v1/has-permission",{actions:[{id:"createBucket",action:"s3:CreateBucket"}]}).then((function(e){if(D(!1),e.permissions){var t=(e.permissions?e.permissions:[]).find((function(e){return"createBucket"===e.id}));t&&t.can?P(!0):P(!1),D(!1)}})).catch((function(e){D(!1),r(e)}))}),[z,r]),Object(n.useEffect)((function(){if(j){h(!0),Ge.invoke("GET","/api/v1/buckets").then((function(e){h(!1),d(e.buckets||[])})).catch((function(e){h(!1),r(e)}))}}),[j,r]);var $=function(e){f(!0),T(e)},X=l.filter((function(e){return""===A||e.name.indexOf(A)>=0})),ee=function(e){var t=e.target,a=t.value,n=t.checked,c=Object(Kt.a)(G);return n?c.push(a):c=c.filter((function(e){return e!==a})),K(c),c};return Object(We.jsxs)(n.Fragment,{children:[c&&Object(We.jsx)(nc,{open:c,closeModalAndRefresh:function(e){a(!1),i(),e&&(h(!0),K([]))}}),x&&Object(We.jsx)(oc,{deleteOpen:x,selectedBucket:w,closeDeleteModalAndRefresh:function(e){!function(e){f(!1),e&&(h(!0),K([]))}(e)}}),H&&Object(We.jsx)(kc,{open:H,buckets:G,closeModalAndRefresh:function(e){q(!1),e&&K([])}}),Object(We.jsx)(sc,{label:"Buckets",actions:Object(We.jsx)(n.Fragment,{children:Object(We.jsxs)(k.a,{container:!0,direction:"row",justifyContent:"flex-end",alignItems:"center",className:t.actionHeaderItems,children:[Object(We.jsx)(Ft.a,{display:{xs:"none",sm:"none",md:"block"},children:Object(We.jsx)(k.a,{item:!0,children:Object(We.jsx)("div",{className:t.theaderSearchLabel,children:"Search Buckets:"})})}),Object(We.jsx)(Ft.a,{display:{xs:"block",sm:"block",md:"none"},children:Object(We.jsx)(C.a,{className:t.theaderSearch,variant:"outlined",id:"search-resource",placeholder:"Filter Buckets",onChange:function(e){_(e.target.value)},inputProps:{disableUnderline:!0,endadornment:Object(We.jsx)(Wt.a,{position:"end",children:Object(We.jsx)(Jt,{})})}})}),Object(We.jsx)(Ft.a,{display:{xs:"none",sm:"none",md:"block"},children:Object(We.jsx)(C.a,{className:t.theaderSearch,variant:"outlined",id:"search-resource",onChange:function(e){_(e.target.value)},inputProps:{disableUnderline:!0,endadornment:Object(We.jsx)(Wt.a,{position:"end",children:Object(We.jsx)(Jt,{})})}})}),R&&Object(We.jsx)(k.a,{item:!0,children:Object(We.jsx)(S.a,{variant:"contained",color:"primary",endIcon:Object(We.jsx)(ba,{}),onClick:function(){a(!0)},className:t.addBucket,children:"Create Bucket"})})]})})}),Object(We.jsx)(k.a,{container:!0,children:Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.container,children:[Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.buttonTray,children:[Object(We.jsx)(S.a,{variant:Z?"contained":"outlined",onClick:function(){J(!Z)},endIcon:Object(We.jsx)(ea,{}),size:"small",className:t.bulkSelect,children:"Bulk Select"}),Object(We.jsx)(S.a,{variant:"outlined",endIcon:Object(We.jsx)(Ht.a,{}),onClick:function(){q(!0)},disabled:0===G.length,size:"small",children:"Set Replication"})]}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("br",{})}),j&&Object(We.jsx)(O.a,{}),!j&&Object(We.jsxs)(k.a,{item:!0,xs:12,children:[X.map((function(e,t){return Object(We.jsx)(mc,{bucket:e,onDelete:$,onSelect:ee,selected:G.includes(e.name),bulkSelect:Z},"bucketListItem-".concat(t.toString()))})),0===X.length&&Object(We.jsx)(k.a,{container:!0,justifyContent:"center",alignContent:"center",alignItems:"center",children:Object(We.jsx)(k.a,{item:!0,xs:8,children:Object(We.jsx)(wc,{iconComponent:Object(We.jsx)(Ta,{}),title:"Buckets",help:Object(We.jsxs)(n.Fragment,{children:["MinIO uses buckets to organize objects. A bucket is similar to a folder or directory in a filesystem, where each bucket can hold an arbitrary number of objects.",Object(We.jsx)("br",{}),Object(We.jsx)("br",{}),"To get started,\xa0",Object(We.jsx)("button",{className:t.link,onClick:function(){a(!0)},children:"Create a Bucket."})]})})})})]})]})})]})}))),Nc=a(706),Ec=a(747),Ac=a(217),_c=["children","value","index"],Ic=function(e){var t=e.children,a=e.value,c=e.index,i=Object(Ac.a)(e,_c);return Object(We.jsx)("div",Object(p.a)(Object(p.a)({role:"tabpanel",hidden:a!==c,id:"simple-tabpanel-".concat(c),"aria-labelledby":"simple-tab-".concat(c),style:{marginTop:"5px"}},i),{},{children:a===c&&Object(We.jsx)(n.Fragment,{children:t})}))},Mc=a(69),zc=a.n(Mc),Dc=a(727),Lc=a(136),Fc=a(329),Rc=a.n(Fc),Pc=a(206),Bc=a.n(Pc),Uc=a(328),Gc=a.n(Uc),Kc="#081C42",Wc="#081C42",Vc=function(e){var t=e.active,a=void 0!==t&&t;return Object(We.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",children:Object(We.jsx)("path",{fill:a?Wc:Kc,d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96z"})})},Hc=function(e){var t=e.active,a=void 0!==t&&t;return Object(We.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",children:Object(We.jsx)("path",{fill:a?Wc:Kc,d:"M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3v-3h18v3z"})})},qc=function(e){var t=e.active,a=void 0!==t&&t;return Object(We.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",children:Object(We.jsx)("path",{fill:a?Wc:Kc,d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z"})})},Yc=function(e){var t=e.active,a=void 0!==t&&t;return Object(We.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",children:Object(We.jsx)("path",{fill:a?Wc:Kc,d:"M20 16h2v-2h-2v2zm0-9v5h2V7h-2zM10 4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm0 10c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"})})},Qc=function(e,t){switch(e){case"view":case"preview":return Object(We.jsx)(za,{});case"edit":return Object(We.jsx)(Zt,{});case"delete":return Object(We.jsx)(fa,{});case"description":return Object(We.jsx)(Oa,{});case"share":return Object(We.jsx)(Yt,{});case"cloud":return Object(We.jsx)(Vc,{active:t});case"console":return Object(We.jsx)(Hc,{active:t});case"download":return Object(We.jsx)(va,{});case"disable":return Object(We.jsx)(qc,{active:t});case"format":return Object(We.jsx)(Yc,{active:t});case"restore":return Object(We.jsx)(wa,{})}return null},Zc=Object(y.a)((function(){return Object(f.a)({spacing:{margin:"0 8px"},buttonDisabled:{"&.MuiButtonBase-root.Mui-disabled":{cursor:"not-allowed",filter:"grayscale(100%)",opacity:"30%"}}})}))((function(e){var t=e.type,a=e.onClick,n=e.valueToSend,c=e.idField,i=e.selected,r=e.to,o=e.sendOnlyId,s=void 0!==o&&o,l=e.disabled,d=void 0!==l&&l,u=e.classes,b=s?n[c]:n,j=Object(We.jsx)(kn.a,{"aria-label":t,size:"small",onClick:a?function(e){e.stopPropagation(),d?e.preventDefault():a(b)}:function(){return null},className:"".concat(u.spacing," ").concat(d?u.buttonDisabled:""),disabled:d,children:Qc(t,i)});return a?j:zc()(r)?d?j:Object(We.jsx)(lc.a,{to:"".concat(r,"/").concat(b),onClick:function(e){e.stopPropagation()},children:j}):null})),Jc="#9c9c9c80",$c={fontWeight:400,fontSize:14,borderColor:Jc,borderWidth:"0.5px",height:40,transitionDuration:"0.3s",padding:"initial",paddingRight:6,paddingLeft:6},Xc=function(e,t,a,c,i,r,o,s,l,d,u){var b=function(e,t,a,n,c,i,r){var o=Object(Kt.a)(e);i&&(o=e.filter((function(e){return r.includes(e.elementKey)})));var s=t;return n&&(s-=45),c&&(s-=a),o.reduce((function(e,t){return t.width?e-t.width:e}),s)/o.filter((function(e){return!e.width})).length}(e,t,a,c,i,s,l);return e.map((function(e,t){if(s&&!l.includes(e.elementKey))return null;var a=!e.enableSort||!e.enableSort;return Object(We.jsx)(Lc.b,{dataKey:e.elementKey,headerClassName:"titleHeader ".concat(e.headerTextAlign?"text-".concat(e.headerTextAlign):""),headerRenderer:function(){return Object(We.jsxs)(n.Fragment,{children:[d===e.elementKey&&Object(We.jsx)(n.Fragment,{children:"ASC"===u?Object(We.jsx)(Gc.a,{}):Object(We.jsx)(Bc.a,{})}),e.label]})},className:e.contentTextAlign?"text-".concat(e.contentTextAlign):"",cellRenderer:function(t){var a=t.rowData,c=!!r&&r.includes(zc()(a)?a:a[o]);return function(e,t,a){var c=zc()(e)?e:be()(e,t.elementKey,null),i=t.renderFullObject?e:c,r=t.renderFunction?t.renderFunction(i):i;return Object(We.jsx)(n.Fragment,{children:Object(We.jsx)("span",{className:a?"selected":"",children:r})})}(a,e,c)},width:e.width||b,disableSort:a,defaultSortDirection:"ASC"},"col-tb-".concat(t.toString()))}))},ei=Object(y.a)((function(){return Object(f.a)(Object(p.a)(Object(p.a)({dialogContainer:{padding:"12px 26px 22px"},paper:{display:"flex",overflow:"auto",flexDirection:"column",padding:"8px 16px",boxShadow:"none",border:"#EAEDEE 1px solid",borderRadius:3,minHeight:200,overflowY:"scroll",position:"relative","&::-webkit-scrollbar":{width:3,height:3}},noBackground:{backgroundColor:"transparent",border:0},disabled:{backgroundColor:"#fbfafa",color:"#cccccc"},defaultPaperHeight:{height:"calc(100vh - 205px)"},allTableSettings:{"& .MuiTableCell-sizeSmall:last-child":{paddingRight:"initial"},"& .MuiTableCell-body.MuiTableCell-sizeSmall:last-child":{paddingRight:6}},minTableHeader:{color:"#393939","& tr":{"& th":{fontWeight:700,fontSize:14,borderColor:"#39393980",borderWidth:"0.5px",padding:"6px 0 10px"}}},rowUnselected:Object(p.a)(Object(p.a)({},$c),{},{color:"#393939"}),rowSelected:Object(p.a)(Object(p.a)({},$c),{},{color:"#081C42",fontWeight:600}),paginatorContainer:{display:"flex",justifyContent:"flex-end",padding:"5px 38px"},checkBoxHeader:{width:50,textAlign:"left",paddingRight:10,"&.MuiTableCell-paddingCheckbox":{paddingBottom:4,paddingLeft:0}},actionsContainer:{width:150,borderColor:Jc},paginatorComponent:{borderBottom:0},checkBoxRow:{borderColor:Jc,padding:"0 10px 0 0"},loadingBox:{paddingTop:"100px",paddingBottom:"100px"},overlayColumnSelection:{position:"absolute",right:0,top:0},popoverContent:{maxHeight:250,overflowY:"auto",padding:"0 10px 10px"},shownColumnsLabel:{color:"#9c9c9c",fontSize:12,padding:10,borderBottom:"#eaeaea 1px solid",width:"100%"},"@global":{".rowLine":{borderBottom:"1px solid ".concat(Jc),height:40,color:"#393939",fontSize:14,transitionDuration:.3,"&:focus":{outline:"initial"},"&:hover:not(.ReactVirtualized__Table__headerRow)":{userSelect:"none",backgroundColor:"#ececec",fontWeight:600,"&.canClick":{cursor:"pointer"},"&.canSelectText":{userSelect:"text"}},"& .selected":{color:"#081C42",fontWeight:600}},".headerItem":{userSelect:"none",fontWeight:700,fontSize:14,fontStyle:"initial",display:"flex",alignItems:"center",outline:"none"},".ReactVirtualized__Table__headerRow":{fontWeight:700,fontSize:14,borderColor:"#39393980",textTransform:"initial"},".optionsAlignment":{textAlign:"center","& .MuiSvgIcon-root":{width:16,height:16}},".text-center":{textAlign:"center"},".text-right":{textAlign:"right"},".progress-enabled":{paddingTop:3,display:"inline-block",margin:"0 10px",position:"relative",width:18,height:18},".progress-enabled > .MuiCircularProgress-root":{position:"absolute",left:0,top:3}}},jt),mt))}))((function(e){var t=e.itemActions,a=e.columns,i=e.onSelect,r=e.records,o=e.isLoading,s=e.loadingMessage,l=void 0===s?Object(We.jsx)(w.a,{component:"h3",children:"Loading..."}):s,d=e.entityName,u=e.selectedItems,b=e.idField,j=e.classes,p=e.radioSelection,f=void 0!==p&&p,v=e.customEmptyMessage,y=void 0===v?"":v,S=e.customPaperHeight,C=void 0===S?"":S,T=e.noBackground,N=void 0!==T&&T,E=e.columnsSelector,A=void 0!==E&&E,_=e.textSelectable,I=void 0!==_&&_,M=e.columnsShown,z=void 0===M?[]:M,D=e.onColumnChange,L=void 0===D?function(e,t){}:D,F=e.infiniteScrollConfig,R=e.sortConfig,P=e.autoScrollToBottom,B=void 0!==P&&P,U=e.disabled,G=void 0!==U&&U,K=Object(n.useState)(!1),W=Object(m.a)(K,2),V=W[0],H=W[1],q=c.a.useState(null),Y=Object(m.a)(q,2),Q=Y[0],Z=Y[1],J=t?t.find((function(e){return"view"===e.type})):null,$=function(e){H(!V),Z(e.currentTarget)},X=function(){H(!1),Z(null)};return Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsxs)(x.a,{className:"".concat(j.paper," ").concat(N?j.noBackground:"","\n ").concat(G?j.disabled:""," \n ").concat(""!==C?C:j.defaultPaperHeight),children:[o&&Object(We.jsxs)(k.a,{container:!0,className:j.loadingBox,children:[Object(We.jsx)(k.a,{item:!0,xs:12,style:{textAlign:"center"},children:l}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(O.a,{})})]}),A&&!o&&r.length>0&&Object(We.jsx)("div",{className:j.overlayColumnSelection,children:function(e){return Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(kn.a,{"aria-describedby":"columnsSelector",color:"primary",onClick:$,size:"large",children:Object(We.jsx)(Rc.a,{fontSize:"inherit"})}),Object(We.jsxs)(Dc.a,{anchorEl:Q,id:"columnsSelector",open:V,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},onClose:X,children:[Object(We.jsx)("div",{className:j.shownColumnsLabel,children:"Shown Columns"}),Object(We.jsx)("div",{className:j.popoverContent,children:e.map((function(e){return Object(We.jsx)(hc,{label:e.label,checked:z.includes(e.elementKey),onChange:function(t){L(e.elementKey,t.target.checked)},id:"chbox-".concat(e.label),name:"chbox-".concat(e.label),value:e.label},"tableColumns-".concat(e.label))}))})]})]})}(a)}),r&&!o&&r.length>0?Object(We.jsx)(Lc.c,{isRowLoaded:function(e){var t=e.index;return!!r[t]},loadMoreRows:F?F.loadMoreRecords:function(){return new Promise((function(){return!0}))},rowCount:F?F.recordsCount:r.length,children:function(e){var c=e.onRowsRendered,o=e.registerChild;return Object(We.jsx)(Lc.a,{children:function(e){var s=e.width,l=e.height,m=function(e,t){var a=45*t+15;return a<80?80:a>e?e:a}(s,t?t.filter((function(e){return"view"!==e.type})).length:0),p=!(!i||!u),O=!!(t&&t.length>1||t&&1===t.length&&"view"!==t[0].type);return Object(We.jsxs)(Lc.d,{ref:o,disableHeader:!1,headerClassName:"headerItem",headerHeight:40,height:l,noRowsRenderer:function(){return Object(We.jsx)(n.Fragment,{children:""!==y?y:"There are no ".concat(d," yet.")})},overscanRowCount:10,rowHeight:40,width:s,rowCount:r.length,rowGetter:function(e){var t=e.index;return r[t]},onRowClick:function(e){!function(e){if(J){var t=J.sendOnlyId?e[b]:e;if(J.to)return void h.push("".concat(J.to,"/").concat(t));J.onClick&&J.onClick(t)}}(e.rowData)},rowClassName:"rowLine ".concat(J?"canClick":""," ").concat(!J&&I?"canSelectText":""),onRowsRendered:c,sort:R?R.triggerSort:void 0,sortBy:R?R.currentSort:void 0,sortDirection:R?R.currentDirection:void 0,scrollToIndex:B?r.length-1:-1,children:[p&&Object(We.jsx)(Lc.b,{headerRenderer:function(){return Object(We.jsx)(n.Fragment,{children:"Select"})},dataKey:"select-".concat(b),width:45,disableSort:!0,cellRenderer:function(e){var t=e.rowData,a=!!u&&u.includes(zc()(t)?t:t[b]);return Object(We.jsx)(jc.a,{value:zc()(t)?t:t[b],color:"primary",inputProps:{"aria-label":"secondary checkbox"},checked:a,onChange:i,onClick:function(e){e.stopPropagation()},checkedIcon:Object(We.jsx)("span",{className:f?j.radioSelectedIcon:j.checkedIcon}),icon:Object(We.jsx)("span",{className:f?j.radioUnselectedIcon:j.unCheckedIcon})})}}),Xc(a,s,m,p,O,u||[],b,A,z,R?R.currentSort:"",R?R.currentDirection:void 0),O&&Object(We.jsx)(Lc.b,{headerRenderer:function(){return Object(We.jsx)(n.Fragment,{children:"Options"})},dataKey:b,width:m,headerClassName:"optionsAlignment",className:"optionsAlignment",cellRenderer:function(e){var a=e.rowData,n=!!u&&u.includes(zc()(a)?a:a[b]);return function(e,t,a,n){return e.map((function(e,c){if("view"===e.type)return null;var i="string"===typeof t?t:t[n],r=!1;return e.disableButtonFunction&&e.disableButtonFunction(i)&&(r=!0),e.showLoaderFunction&&e.showLoaderFunction(i)?Object(We.jsx)("div",{className:"progress-enabled",children:Object(We.jsx)(g.a,{color:"primary",size:18,variant:"indeterminate"},"actions-loader-".concat(e.type,"-").concat(c.toString()))}):Object(We.jsx)(Zc,{type:e.type,onClick:e.onClick,to:e.to,valueToSend:t,selected:a,idField:n,sendOnlyId:!!e.sendOnlyId,disabled:r},"actions-".concat(e.type,"-").concat(c.toString()))}))}(t||[],a,n,b)}})]})}})}}):Object(We.jsx)(n.Fragment,{children:!o&&Object(We.jsx)("div",{children:""!==y?y:"There are no ".concat(d," yet.")})})]})})})),ti=function(e,t,a){if(!e)return!1;var n=e.includes("s3:*"),c=e.includes("admin:*"),i=t.filter((function(t){return-1!==e.indexOf(t)||-1!==t.indexOf("s3:")&&n||-1!==t.indexOf("admin:")&&c}));return a?i.length==t.length:i.length>0},ai=Object(o.b)((function(e){return{session:e.console.session,loadingBucket:e.buckets.bucketDetails.loadingBucket,bucketInfo:e.buckets.bucketDetails.bucketInfo}}),{setErrorSnackMessage:ce});function ni(e){return{id:"simple-tab-".concat(e),"aria-controls":"simple-tabpanel-".concat(e)}}var ci=Object(y.a)((function(e){return Object(f.a)({})}))(ai((function(e){var t=e.classes,a=e.match,c=e.setErrorSnackMessage,i=(e.session,e.loadingBucket),r=e.bucketInfo,o=Object(n.useState)(0),s=Object(m.a)(o,2),l=s[0],d=s[1],u=Object(n.useState)(!0),b=Object(m.a)(u,2),j=b[0],O=b[1],g=Object(n.useState)([]),f=Object(m.a)(g,2),v=f[0],y=f[1],S=Object(n.useState)(!0),C=Object(m.a)(S,2),k=C[0],w=C[1],T=Object(n.useState)([]),N=Object(m.a)(T,2),E=N[0],A=N[1],_=a.params.bucketName,I=ti(null===r||void 0===r?void 0:r.allowedActions,[$]),M=ti(null===r||void 0===r?void 0:r.allowedActions,[Z,J,"admin:ListGroups"],!0);Object(n.useEffect)((function(){i&&(w(!0),O(!0))}),[i,w,O]);var z=[{type:"view",onClick:function(e){h.push("/policies/".concat(e.name))}}],D=[{type:"view",onClick:function(e){h.push("/users/".concat(e))}}];return Object(n.useEffect)((function(){k&&(M?Ge.invoke("GET","/api/v1/bucket-users/".concat(_)).then((function(e){A(e),w(!1)})).catch((function(e){c(e),w(!1)})):w(!1))}),[k,c,_]),Object(n.useEffect)((function(){j&&(console.log("displayPoliciesList",I),I?Ge.invoke("GET","/api/v1/bucket-policy/".concat(_)).then((function(e){y(e.policies),O(!1)})).catch((function(e){c(e),O(!1)})):O(!1))}),[j,c,_]),Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)("h1",{className:t.sectionTitle,children:"Access Audit"}),Object(We.jsxs)(Nc.a,{value:l,onChange:function(e,t){d(t)},indicatorColor:"primary",textColor:"primary","aria-label":"cluster-tabs",variant:"scrollable",scrollButtons:"auto",children:[Object(We.jsx)(Ec.a,Object(p.a)({label:"Policies"},ni(0))),M&&Object(We.jsx)(Ec.a,Object(p.a)({label:"Users"},ni(1)))]}),Object(We.jsxs)(x.a,{children:[Object(We.jsx)(Ic,{index:0,value:l,children:Object(We.jsx)(ei,{disabled:!I,noBackground:!0,itemActions:z,columns:[{label:"Name",elementKey:"name"}],isLoading:j,records:v,entityName:"Policies",idField:"name"})}),M&&Object(We.jsx)(Ic,{index:1,value:l,children:Object(We.jsx)(ei,{noBackground:!0,itemActions:D,columns:[{label:"User",elementKey:"accessKey"}],isLoading:k,records:E,entityName:"Users",idField:"accessKey"})})]})]})}))),ii=Object(o.b)(null,{setModalErrorSnackMessage:re}),ri=Object(y.a)((function(e){return Object(f.a)(Object(p.a)({},dt))}))(ii((function(e){var t=e.classes,a=e.open,c=e.bucketName,i=e.actualPolicy,r=e.closeModalAndRefresh,o=e.setModalErrorSnackMessage,s=Object(n.useState)(!1),l=Object(m.a)(s,2),d=l[0],u=l[1],b=Object(n.useState)(""),j=Object(m.a)(b,2),h=j[0],p=j[1];return Object(n.useEffect)((function(){p(i)}),[p,i]),Object(We.jsx)(zn,{title:"Change Access Policy",modalOpen:a,onClose:function(){r()},children:Object(We.jsx)("form",{noValidate:!0,autoComplete:"off",onSubmit:function(e){e.preventDefault(),d||(u(!0),Ge.invoke("PUT","/api/v1/buckets/".concat(c,"/set-policy"),{access:h}).then((function(e){u(!1),r()})).catch((function(e){u(!1),o(e)})))},children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsx)(k.a,{item:!0,xs:12,className:t.formScrollable,children:Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Vn,{value:h,label:"Access Policy",id:"select-access-policy",name:"select-access-policy",onChange:function(e){p(e.target.value)},options:[{value:"PRIVATE",label:"Private"},{value:"PUBLIC",label:"Public"}]})})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(S.a,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,disabled:d,children:"Set"})}),d&&Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(O.a,{})})]})})})}))),oi=Object(o.b)(null,{setModalErrorSnackMessage:re}),si=Object(y.a)((function(e){return Object(f.a)(Object(p.a)({},dt))}))(oi((function(e){var t=e.classes,a=e.open,c=e.bucketName,i=e.closeModalAndRefresh,r=e.setModalErrorSnackMessage,o=Object(n.useState)(!1),s=Object(m.a)(o,2),l=s[0],d=s[1],u=Object(n.useState)(!0),b=Object(m.a)(u,2),j=b[0],h=b[1],p=Object(n.useState)("compliance"),x=Object(m.a)(p,2),f=x[0],v=x[1],y=Object(n.useState)("days"),C=Object(m.a)(y,2),w=C[0],T=C[1],N=Object(n.useState)(1),E=Object(m.a)(N,2),A=E[0],_=E[1],I=Object(n.useState)(!1),M=Object(m.a)(I,2),z=M[0],D=M[1];return Object(n.useEffect)((function(){Number.isNaN(A)||A<1?D(!1):D(!0)}),[A]),Object(n.useEffect)((function(){j&&Ge.invoke("GET","/api/v1/buckets/".concat(c,"/retention")).then((function(e){h(!1),v(e.mode),_(e.validity),T(e.unit)})).catch((function(e){h(!1)}))}),[j,c]),Object(We.jsx)(zn,{title:"Set Retention Configuration",modalOpen:a,onClose:function(){i()},children:j?Object(We.jsx)(g.a,{color:"primary",size:16,variant:"indeterminate"}):Object(We.jsx)("form",{noValidate:!0,autoComplete:"off",onSubmit:function(e){e.preventDefault(),l||(d(!0),Ge.invoke("PUT","/api/v1/buckets/".concat(c,"/retention"),{mode:f,unit:w,validity:A}).then((function(){d(!1),i()})).catch((function(e){d(!1),r(e)})))},children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.formScrollable,children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)($n,{currentSelection:f,id:"retention_mode",name:"retention_mode",label:"Retention Mode",onChange:function(e){v(e.target.value)},selectorOptions:[{value:"compliance",label:"Compliance"},{value:"governance",label:"Governance"}]})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)($n,{currentSelection:w,id:"retention_unit",name:"retention_unit",label:"Retention Unit",onChange:function(e){T(e.target.value)},selectorOptions:[{value:"days",label:"Days"},{value:"years",label:"Years"}]})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{type:"number",id:"retention_validity",name:"retention_validity",onChange:function(e){_(e.target.valueAsNumber)},label:"Retention Validity",value:String(A),required:!0,min:"1"})})]}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(S.a,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,disabled:l||!z,children:"Set"})}),l&&Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(O.a,{})})]})})})}))),li=Object(o.b)(null,{setModalErrorSnackMessage:re}),di=Object(y.a)((function(e){return Object(f.a)(Object(p.a)({minTableHeader:{color:"#393939","& tr":{"& th":{fontWeight:"bold"}}},buttonContainer:{textAlign:"right"}},dt))}))(li((function(e){var t=e.classes,a=e.open,c=(e.encryptionEnabled,e.encryptionCfg),i=e.selectedBucket,r=e.closeModalAndRefresh,o=e.setModalErrorSnackMessage,s=Object(n.useState)(!1),l=Object(m.a)(s,2),d=l[0],u=l[1],b=Object(n.useState)(""),j=Object(m.a)(b,2),h=j[0],p=j[1],g=Object(n.useState)("disabled"),x=Object(m.a)(g,2),f=x[0],v=x[1];Object(n.useEffect)((function(){c&&("AES256"===c.algorithm?v("sse-s3"):(v("sse-kms"),p(c.kmsMasterKeyID)))}),[c]);return Object(We.jsx)(zn,{modalOpen:a,onClose:function(){r()},title:"Enable Bucket Encryption",children:Object(We.jsx)("form",{noValidate:!0,autoComplete:"off",onSubmit:function(e){e.preventDefault(),d||("disabled"===f?Ge.invoke("POST","/api/v1/buckets/".concat(i,"/encryption/disable")).then((function(){u(!1),r()})).catch((function(e){u(!1),o(e)})):Ge.invoke("POST","/api/v1/buckets/".concat(i,"/encryption/enable"),{encType:f,kmsKeyID:h}).then((function(){u(!1),r()})).catch((function(e){u(!1),o(e)})))},children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.formScrollable,children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Vn,{onChange:function(e){v(e.target.value)},id:"select-encryption-type",name:"select-encryption-type",label:"Encryption Type",value:f,options:[{label:"Disabled",value:"disabled"},{label:"SSE-S3",value:"sse-s3"},{label:"SSE-KMS",value:"sse-kms"}]})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("br",{})}),"sse-kms"===f&&Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"kms-key-id",name:"kms-key-id",label:"KMS Key ID",value:h,onChange:function(e){p(e.target.value)}})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("br",{})})]}),Object(We.jsx)(k.a,{item:!0,xs:12,className:t.buttonContainer,children:Object(We.jsx)(S.a,{type:"submit",variant:"contained",color:"primary",disabled:d,children:"Save"})}),d&&Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(O.a,{})})]})})})}))),ui=Object(o.b)(null,{setErrorSnackMessage:ce})((function(e){var t=e.closeVersioningModalAndRefresh,a=e.modalOpen,c=e.selectedBucket,i=e.versioningCurrentState,r=e.setErrorSnackMessage,o=Object(n.useState)(!1),s=Object(m.a)(o,2),l=s[0],d=s[1];return Object(We.jsxs)(wn.a,{open:a,onClose:function(){t(!1)},"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[Object(We.jsx)(Tn.a,{id:"alert-dialog-title",children:"Edit Versioning"}),Object(We.jsxs)(Nn.a,{children:[l&&Object(We.jsx)(O.a,{}),Object(We.jsxs)(cc.a,{id:"alert-dialog-description",children:["Are you sure you want to"," ",Object(We.jsx)("strong",{children:i?"disable":"enable"})," ","versioning for this bucket?",i&&Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)("br",{}),Object(We.jsx)("br",{}),Object(We.jsx)("strong",{children:"File versions won't be automatically deleted"})]})]})]}),Object(We.jsxs)(ic.a,{children:[Object(We.jsx)(S.a,{onClick:function(){t(!1)},color:"primary",disabled:l,children:"Cancel"}),Object(We.jsx)(S.a,{onClick:function(){l||(d(!0),Ge.invoke("PUT","/api/v1/buckets/".concat(c,"/versioning"),{versioning:!i}).then((function(){d(!1),t(!0)})).catch((function(e){d(!1),r(e)})))},color:"secondary",autoFocus:!0,children:i?"Disable":"Enable"})]})]})})),bi=a(330),ji=a.n(bi),hi=Object(o.b)(null,{setModalErrorSnackMessage:re}),mi=Object(y.a)((function(e){return Object(f.a)(Object(p.a)({minTableHeader:{color:"#393939","& tr":{"& th":{fontWeight:"bold"}}},buttonContainer:{textAlign:"right"},multiContainer:{display:"flex",alignItems:"center",justifyContent:"flex-start"}},dt))}))(hi((function(e){var t=e.classes,a=e.open,i=e.enabled,r=e.cfg,o=e.selectedBucket,s=e.closeModalAndRefresh,l=e.setModalErrorSnackMessage,d=Object(n.useState)(!1),u=Object(m.a)(d,2),b=u[0],j=u[1],h=Object(n.useState)(!1),p=Object(m.a)(h,2),g=p[0],x=p[1],f=Object(n.useState)("hard"),v=Object(m.a)(f,2),y=v[0],C=v[1],w=Object(n.useState)("1"),T=Object(m.a)(w,2),N=T[0],E=T[1],A=Object(n.useState)("TiB"),_=Object(m.a)(A,2),I=_[0],M=_[1];Object(n.useEffect)((function(){if(i&&(x(!0),r)){C(r.type),E("".concat(r.quota)),M("B");for(var e="B",t=r.quota,a=0;a<Oe.length&&r.quota%Math.pow(1024,a)===0;a++)t=r.quota/Math.pow(1024,a),e=Oe[a];E("".concat(t)),M(e)}}),[i,r]);return Object(We.jsx)(zn,{modalOpen:a,onClose:function(){s()},title:"Enable Bucket Quota",children:Object(We.jsx)("form",{noValidate:!0,autoComplete:"off",onSubmit:function(e){!function(e){if(e.preventDefault(),!b){var t={enabled:g,amount:parseInt(we(N,I,!1)),quota_type:y};Ge.invoke("PUT","/api/v1/buckets/".concat(o,"/quota"),t).then((function(){j(!1),s()})).catch((function(e){j(!1),l(e)}))}}(e)},children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.formScrollable,children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ac,{value:"bucket_quota",id:"bucket_quota",name:"bucket_quota",checked:g,onChange:function(e){x(e.target.checked)},label:"Quota"})}),g&&Object(We.jsxs)(c.a.Fragment,{children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)($n,{currentSelection:y,id:"quota_type",name:"quota_type",label:"Quota Type",onChange:function(e){C(e.target.value)},selectorOptions:[{value:"hard",label:"Hard"},{value:"fifo",label:"FIFO"}]})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsx)(k.a,{item:!0,xs:10,children:Object(We.jsx)(Pn,{type:"number",id:"quota_size",name:"quota_size",onChange:function(e){E(e.target.value)},label:"Quota",value:N,required:!0,min:"1"})}),Object(We.jsx)(k.a,{item:!0,xs:2,children:Object(We.jsx)("div",{style:{width:100},children:Object(We.jsx)(Vn,{label:"",id:"quota_unit",name:"quota_unit",value:I,onChange:function(e){M(e.target.value)},options:Ce()})})})]})})]}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("br",{})})]}),Object(We.jsx)(k.a,{item:!0,xs:12,className:t.buttonContainer,children:Object(We.jsx)(S.a,{type:"submit",variant:"contained",color:"primary",disabled:b,children:"Save"})}),b&&Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(O.a,{})})]})})})}))),pi=Object(o.b)((function(e){return{session:e.console.session,distributedSetup:e.system.distributedSetup,loadingBucket:e.buckets.bucketDetails.loadingBucket,bucketInfo:e.buckets.bucketDetails.bucketInfo}}),{setErrorSnackMessage:ce,setBucketDetailsLoad:Sn}),Oi=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)({paperContainer:{padding:15,paddingLeft:50,display:"flex"},elementTitle:{fontWeight:500,color:"#777777",fontSize:14,marginTop:-9},consumptionValue:{color:"#000000",fontSize:"48px",fontWeight:"bold"},reportedUsage:{padding:"15px"},dualCardLeft:{paddingRight:"5px"},dualCardRight:{paddingLeft:"5px"},capitalizeFirst:{textTransform:"capitalize","& .MuiSvgIcon-root":{width:16,height:16}},titleCol:{width:"25%"}},At),Et))}))(pi((function(e){var t=e.classes,a=e.match,c=e.distributedSetup,i=e.setErrorSnackMessage,r=e.loadingBucket,o=e.bucketInfo,s=e.setBucketDetailsLoad,l=Object(n.useState)(null),d=Object(m.a)(l,2),u=d[0],b=d[1],j=Object(n.useState)("0"),h=Object(m.a)(j,2),p=h[0],O=h[1],f=Object(n.useState)(!1),v=Object(m.a)(f,2),y=v[0],C=v[1],T=Object(n.useState)(!1),N=Object(m.a)(T,2),E=N[0],A=N[1],_=Object(n.useState)(!1),I=Object(m.a)(_,2),M=I[0],z=I[1],D=Object(n.useState)(!0),L=Object(m.a)(D,2),F=L[0],R=L[1],U=Object(n.useState)(!0),W=Object(m.a)(U,2),V=W[0],q=W[1],Y=Object(n.useState)(!0),Q=Object(m.a)(Y,2),Z=Q[0],J=Q[1],$=Object(n.useState)(!0),X=Object(m.a)($,2),ee=X[0],te=X[1],ae=Object(n.useState)(!0),ne=Object(m.a)(ae,2),ce=ne[0],ie=ne[1],re=Object(n.useState)(!0),oe=Object(m.a)(re,2),se=oe[0],le=oe[1],de=Object(n.useState)(!0),ue=Object(m.a)(de,2),je=ue[0],he=ue[1],me=Object(n.useState)(!0),pe=Object(m.a)(me,2),Oe=pe[0],ge=pe[1],xe=Object(n.useState)(!1),ve=Object(m.a)(xe,2),ye=ve[0],Se=ve[1],Ce=Object(n.useState)(!1),ke=Object(m.a)(Ce,2),we=ke[0],Te=ke[1],Ne=Object(n.useState)(null),Ee=Object(m.a)(Ne,2),Ae=Ee[0],_e=Ee[1],Ie=Object(n.useState)(!1),Me=Object(m.a)(Ie,2),ze=Me[0],De=Me[1],Le=Object(n.useState)(!1),Fe=Object(m.a)(Le,2),Re=Fe[0],Pe=Fe[1],Be=Object(n.useState)(null),Ue=Object(m.a)(Be,2),Ke=Ue[0],Ve=Ue[1],He=Object(n.useState)(!1),qe=Object(m.a)(He,2),Ye=qe[0],Qe=qe[1],Ze=Object(n.useState)(!1),Je=Object(m.a)(Ze,2),$e=Je[0],Xe=Je[1],et=Object(n.useState)(!1),tt=Object(m.a)(et,2),at=tt[0],nt=tt[1],ct=Object(n.useState)(!1),it=Object(m.a)(ct,2),rt=it[0],ot=it[1],st=a.params.bucketName,lt="n/a";null!==o&&(lt=o.access);var dt=ti(null===o||void 0===o?void 0:o.allowedActions,[P]),ut=ti(null===o||void 0===o?void 0:o.allowedActions,[B]),bt=ti(null===o||void 0===o?void 0:o.allowedActions,[H]),jt=ti(null===o||void 0===o?void 0:o.allowedActions,["s3:GetBucketObjectLockConfiguration"]),ht=ti(null===o||void 0===o?void 0:o.allowedActions,["s3:GetEncryptionConfiguration"]),mt=ti(null===o||void 0===o?void 0:o.allowedActions,["s3:PutEncryptionConfiguration"]),pt=ti(null===o||void 0===o?void 0:o.allowedActions,["s3:GetBucketVersioning"]),Ot=ti(null===o||void 0===o?void 0:o.allowedActions,["s3:PutBucketVersioning"]),gt=ti(null===o||void 0===o?void 0:o.allowedActions,["admin:GetBucketQuota"]),xt=ti(null===o||void 0===o?void 0:o.allowedActions,["admin:SetBucketQuota"]),ft=ti(null===o||void 0===o?void 0:o.allowedActions,[G]),vt=ti(null===o||void 0===o?void 0:o.allowedActions,[K]);Object(n.useEffect)((function(){J(!!r)}),[r,J]),Object(n.useEffect)((function(){ee&&(ht?Ge.invoke("GET","/api/v1/buckets/".concat(st,"/encryption/info")).then((function(e){e.algorithm&&(De(!0),b(e)),te(!1)})).catch((function(e){"The server side encryption configuration was not found"===e.errorMessage&&(De(!1),b(null)),te(!1)})):(De(!1),b(null),te(!1)))}),[ee,st]),Object(n.useEffect)((function(){ce&&c&&Ge.invoke("GET","/api/v1/buckets/".concat(st,"/versioning")).then((function(e){Se(e.is_versioned),ie(!1)})).catch((function(e){i(e),ie(!1)}))}),[ce,i,st,c]),Object(n.useEffect)((function(){se&&c&&(gt?Ge.invoke("GET","/api/v1/buckets/".concat(st,"/quota")).then((function(e){_e(e),e.quota?Te(!0):Te(!1),le(!1)})).catch((function(e){i(e),Te(!1),le(!1)})):(Te(!1),le(!1)))}),[se,ie,i,st,c]),Object(n.useEffect)((function(){ce&&c&&(jt?Ge.invoke("GET","/api/v1/buckets/".concat(st,"/object-locking")).then((function(e){C(e.object_locking_enabled),R(!1)})).catch((function(e){i(e),R(!1)})):R(!1))}),[F,i,st,ce,c]),Object(n.useEffect)((function(){V&&Ge.invoke("GET","/api/v1/buckets").then((function(e){var t=be()(e,"buckets",[]).find((function(e){return e.name===st})),a=be()(t,"size","0");q(!1),O(a)})).catch((function(e){q(!1),i(e)}))}),[V,i,st]),Object(n.useEffect)((function(){je&&c&&Ge.invoke("GET","/api/v1/buckets/".concat(st,"/replication")).then((function(e){var t=e.rules?e.rules:[];z(t.length>0),he(!1)})).catch((function(e){i(e),he(!1)}))}),[je,i,st,c]),Object(n.useEffect)((function(){Oe&&y&&Ge.invoke("GET","/api/v1/buckets/".concat(st,"/retention")).then((function(e){ge(!1),Pe(!0),Ve(e)})).catch((function(e){Pe(!1),ge(!1),Ve(null)}))}),[Oe,y,st]);var yt,St=function(){s(!0),J(!0),q(!0),ie(!0),te(!0),ge(!0)};return Object(We.jsxs)(n.Fragment,{children:[$e&&Object(We.jsx)(di,{open:$e,selectedBucket:st,encryptionEnabled:ze,encryptionCfg:u,closeModalAndRefresh:function(){Xe(!1),te(!0)}}),at&&Object(We.jsx)(mi,{open:at,selectedBucket:st,enabled:we,cfg:Ae,closeModalAndRefresh:function(){nt(!1),le(!0)}}),E&&Object(We.jsx)(ri,{bucketName:st,open:E,actualPolicy:lt,closeModalAndRefresh:function(){A(!1),St()}}),Ye&&Object(We.jsx)(si,{bucketName:st,open:Ye,closeModalAndRefresh:function(){Qe(!1),St()}}),rt&&Object(We.jsx)(ui,{closeVersioningModalAndRefresh:function(e){ot(!1),e&&St()},modalOpen:rt,selectedBucket:st,versioningCurrentState:ye}),Object(We.jsx)(k.a,{container:!0,children:Object(We.jsx)(k.a,{item:!0,xs:12,className:t.actionsTray,children:Object(We.jsx)("h1",{className:t.sectionTitle,children:"Summary"})})}),Object(We.jsx)(x.a,{className:t.paperContainer,children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsx)(k.a,{item:!0,xs:8,children:Object(We.jsx)("table",{width:"100%",children:Object(We.jsxs)("tbody",{children:[dt&&Object(We.jsxs)("tr",{children:[Object(We.jsx)("td",{className:t.titleCol,children:"Access Policy:"}),Object(We.jsx)("td",{className:t.capitalizeFirst,children:Object(We.jsx)(S.a,{disabled:!ut,color:"primary",className:t.anchorButton,onClick:function(){A(!0)},children:Z?Object(We.jsx)(g.a,{color:"primary",size:16,variant:"indeterminate"}):lt.toLowerCase()})})]}),c&&Object(We.jsxs)(n.Fragment,{children:[bt&&Object(We.jsxs)("tr",{children:[Object(We.jsx)("td",{className:t.titleCol,children:"Replication:"}),Object(We.jsx)("td",{className:t.doubleElement,children:Object(We.jsx)("span",{children:M?"Enabled":"Disabled"})})]}),jt&&Object(We.jsxs)("tr",{children:[Object(We.jsx)("td",{className:t.titleCol,children:"Object Locking:"}),Object(We.jsx)("td",{children:y?"Enabled":"Disabled"})]})]}),ht&&Object(We.jsxs)("tr",{children:[Object(We.jsx)("td",{className:t.titleCol,children:"Encryption:"}),Object(We.jsx)("td",{children:ee?Object(We.jsx)(g.a,{color:"primary",size:16,variant:"indeterminate"}):Object(We.jsx)(S.a,{disabled:!mt,color:"primary",className:t.anchorButton,onClick:function(){Xe(!0)},children:ze?"Enabled":"Disabled"})})]})]})})}),Object(We.jsxs)(k.a,{item:!0,xs:4,className:t.reportedUsage,children:[Object(We.jsxs)(k.a,{container:!0,direction:"row",alignItems:"center",children:[Object(We.jsx)(k.a,{item:!0,className:t.icon,xs:2,children:Object(We.jsx)(ca,{})}),Object(We.jsx)(k.a,{item:!0,xs:10,children:Object(We.jsx)(w.a,{className:t.elementTitle,children:"Reported Usage"})})]}),Object(We.jsx)(w.a,{className:t.consumptionValue,children:fe(p)})]})]})}),Object(We.jsx)("br",{}),Object(We.jsx)("br",{}),c&&pt&&Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(x.a,{className:t.paperContainer,elevation:1,children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsxs)(k.a,{item:!0,xs:we?9:12,children:[Object(We.jsx)("h2",{children:"Versioning"}),Object(We.jsx)("hr",{className:t.hrClass}),Object(We.jsx)("table",{width:"100%",children:Object(We.jsx)("tbody",{children:Object(We.jsxs)("tr",{children:[Object(We.jsx)("td",{className:t.titleCol,children:"Versioning:"}),Object(We.jsx)("td",{children:ce?Object(We.jsx)(g.a,{color:"primary",size:16,variant:"indeterminate"}):Object(We.jsx)(n.Fragment,{children:Object(We.jsx)(S.a,{disabled:!Ot,color:"primary",className:t.anchorButton,onClick:function(){ot(!0)},children:ye?"Enabled":"Disabled"})})}),gt&&Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)("td",{className:t.titleCol,children:"Quota:"}),Object(We.jsx)("td",{children:se?Object(We.jsx)(g.a,{color:"primary",size:16,variant:"indeterminate"}):Object(We.jsx)(n.Fragment,{children:Object(We.jsx)(S.a,{disabled:!xt,color:"primary",className:t.anchorButton,onClick:function(){nt(!0)},children:we?"Enabled":"Disabled"})})})]})]})})})]}),we&&Ae&&Object(We.jsxs)(k.a,{item:!0,xs:3,className:t.reportedUsage,children:[Object(We.jsxs)(k.a,{container:!0,direction:"row",alignItems:"center",children:[Object(We.jsx)(k.a,{item:!0,className:t.icon,xs:2,children:Object(We.jsx)(ji.a,{})}),Object(We.jsx)(k.a,{item:!0,xs:10,children:Object(We.jsxs)(w.a,{className:t.elementTitle,children:[(yt=null===Ae||void 0===Ae?void 0:Ae.type,yt?yt[0].toUpperCase()+yt.slice(1):null)," Quota"]})})]}),Object(We.jsx)(w.a,{className:t.consumptionValue,children:fe("".concat(null===Ae||void 0===Ae?void 0:Ae.quota))})]})]})}),Object(We.jsx)("br",{}),Object(We.jsx)("br",{})]}),y&&ft&&Object(We.jsx)(x.a,{className:t.paperContainer,children:Object(We.jsx)(k.a,{container:!0,children:Object(We.jsxs)(k.a,{item:!0,xs:12,children:[Object(We.jsx)("h2",{children:"Retention"}),Object(We.jsx)("hr",{className:t.hrClass}),Object(We.jsx)("table",{width:"100%",children:Object(We.jsxs)("tbody",{children:[Object(We.jsxs)("tr",{className:t.gridContainer,children:[Object(We.jsx)("td",{className:t.titleCol,children:"Status:"}),Object(We.jsx)("td",{children:Oe?Object(We.jsx)(g.a,{color:"primary",size:16,variant:"indeterminate"}):Object(We.jsx)(n.Fragment,{children:Object(We.jsx)(S.a,{disabled:!vt,color:"primary",className:t.anchorButton,onClick:function(){Qe(!0)},children:Re?"Enabled":"Disabled"})})}),null===Ke?Object(We.jsx)("td",{colSpan:2,children:"\xa0"}):Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)("td",{className:t.titleCol,children:"Mode:"}),Object(We.jsx)("td",{className:t.capitalizeFirst,children:Ke&&Ke.mode})]})]}),Object(We.jsx)("tr",{className:t.gridContainer,children:null===Ke?Object(We.jsx)("td",{colSpan:2}):Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)("td",{className:t.titleCol,children:"Valitidy:"}),Object(We.jsxs)("td",{className:t.capitalizeFirst,children:[Ke&&Ke.validity," ",Ke&&(1===Ke.validity?Ke.unit.slice(0,-1):Ke.unit)]})]})})]})})]})})})]})}))),gi=Object(o.b)(null,{setErrorSnackMessage:ce})((function(e){var t=e.closeDeleteModalAndRefresh,a=e.deleteOpen,c=e.selectedBucket,i=e.bucketEvent,r=e.setErrorSnackMessage,o=Object(n.useState)(!1),s=Object(m.a)(o,2),l=s[0],d=s[1];return Object(We.jsxs)(wn.a,{open:a,onClose:function(){t(!1)},"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[Object(We.jsx)(Tn.a,{id:"alert-dialog-title",children:"Delete Event"}),Object(We.jsxs)(Nn.a,{children:[l&&Object(We.jsx)(O.a,{}),Object(We.jsx)(cc.a,{id:"alert-dialog-description",children:"Are you sure you want to delete this event?"})]}),Object(We.jsxs)(ic.a,{children:[Object(We.jsx)(S.a,{onClick:function(){t(!1)},color:"primary",disabled:l,children:"Cancel"}),Object(We.jsx)(S.a,{onClick:function(){!function(){if(!l&&null!=i){d(!0);var e=be()(i,"events",[]),a=be()(i,"prefix",""),n=be()(i,"suffix","");Ge.invoke("DELETE","/api/v1/buckets/".concat(c,"/events/").concat(i.arn),{events:e,prefix:a,suffix:n}).then((function(e){d(!1),t(!0)})).catch((function(e){d(!1),r(e)}))}}()},color:"secondary",autoFocus:!0,children:"Delete"})]})]})})),xi=a(749),fi=a(750),vi=a(751),yi=a(752),Si=a(748),Ci=a(708),ki=Object(v.a)((function(e){return Object(f.a)(Object(p.a)({},It))}));function wi(e){var t=ki();return Object(We.jsx)(C.a,Object(p.a)({InputProps:{classes:t}},e))}var Ti=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)({},lt),ut))}))((function(e){var t=e.classes,a=e.id,i=e.name,r=e.onChange,o=e.options,s=e.label,l=e.tooltip,d=void 0===l?"":l,u=e.value,b=e.disabled,j=void 0!==b&&b,h=Object(n.useState)(o[0]),O=Object(m.a)(h,2),g=O[0],x=O[1];return Object(We.jsx)(c.a.Fragment,{children:Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.fieldContainer,children:[""!==s&&Object(We.jsxs)(Dn.a,{htmlFor:a,className:t.inputLabel,children:[Object(We.jsx)("span",{children:s}),""!==d&&Object(We.jsx)("div",{className:t.tooltipContainer,children:Object(We.jsx)(Ln.a,{title:d,placement:"top-start",children:Object(We.jsx)("div",{children:Object(We.jsx)(oa,{className:t.tooltip})})})})]}),Object(We.jsx)(Un.a,{fullWidth:!0,children:Object(We.jsx)(Ci.a,{id:a,options:o,getOptionLabel:function(e){return e.label},isOptionEqualToValue:function(e){return e.value===u},disabled:j,renderInput:function(e){return Object(We.jsx)(wi,Object(p.a)(Object(p.a)({},e),{},{name:i}))},value:g,onChange:function(e,t){t&&(r(t.value),x(t))},autoHighlight:!0})})]})})})),Ni=Object(o.b)(null,{setModalErrorSnackMessage:re}),Ei=Object(y.a)((function(e){return Object(f.a)(Object(p.a)({minTableHeader:{color:"#393939","& tr":{"& th":{fontWeight:"bold"}}},buttonContainer:{textAlign:"right"}},dt))}))(Ni((function(e){var t=e.classes,a=e.open,c=e.selectedBucket,i=e.closeModalAndRefresh,r=e.setModalErrorSnackMessage,o=Object(n.useState)(!1),s=Object(m.a)(o,2),l=s[0],d=s[1],u=Object(n.useState)(""),b=Object(m.a)(u,2),j=b[0],h=b[1],p=Object(n.useState)(""),g=Object(m.a)(p,2),x=g[0],f=g[1],v=Object(n.useState)(""),y=Object(m.a)(v,2),C=y[0],w=y[1],T=Object(n.useState)([]),N=Object(m.a)(T,2),E=N[0],A=N[1],_=Object(n.useState)([]),I=Object(m.a)(_,2),M=I[0],z=I[1],D=Object(n.useCallback)((function(){d(!0),Ge.invoke("GET","/api/v1/admin/arns").then((function(e){var t=[];null!==e.arns&&(t=e.arns),d(!1),z(t)})).catch((function(e){d(!1),r(e)}))}),[r]);Object(n.useEffect)((function(){D()}),[D]);var L=function(e,t){var a=E.indexOf(t),n=[];-1===a?n=n.concat(E,t):0===a?n=n.concat(E.slice(1)):a===E.length-1?n=n.concat(E.slice(0,-1)):a>0&&(n=n.concat(E.slice(0,a),E.slice(a+1))),A(n)},F=M.map((function(e){return{label:e,value:e}}));return Object(We.jsx)(zn,{modalOpen:a,onClose:function(){i()},title:"Subscribe To Event",children:Object(We.jsx)("form",{noValidate:!0,autoComplete:"off",onSubmit:function(e){e.preventDefault(),l||(d(!0),Ge.invoke("POST","/api/v1/buckets/".concat(c,"/events"),{configuration:{arn:C,events:E,prefix:j,suffix:x},ignoreExisting:!0}).then((function(){d(!1),i()})).catch((function(e){d(!1),r(e)})))},children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.formScrollable,children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Ti,{onChange:function(e){w(e)},id:"select-access-policy",name:"select-access-policy",label:"ARN",value:C,options:F})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsxs)(Si.a,{size:"medium",children:[Object(We.jsx)(xi.a,{className:t.minTableHeader,children:Object(We.jsxs)(fi.a,{children:[Object(We.jsx)(vi.a,{children:"Select"}),Object(We.jsx)(vi.a,{children:"Event"})]})}),Object(We.jsx)(yi.a,{children:[{label:"PUT - Object Uploaded",value:"put"},{label:"GET - Object accessed",value:"get"},{label:"DELETE - Object Deleted",value:"delete"}].map((function(e){return Object(We.jsxs)(fi.a,{onClick:function(t){return L(0,e.value)},children:[Object(We.jsx)(vi.a,{padding:"checkbox",children:Object(We.jsx)(jc.a,{value:e.value,color:"primary",inputProps:{"aria-label":"secondary checkbox"},onChange:function(t){return L(0,e.value)},checked:E.includes(e.value)})}),Object(We.jsx)(vi.a,{className:t.wrapCell,children:e.label})]},"group-".concat(e.value))}))})]})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("br",{})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"prefix-input",name:"prefix-input",label:"Prefix",value:j,onChange:function(e){h(e.target.value)}})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"suffix-input",name:"suffix-input",label:"Suffix",value:x,onChange:function(e){f(e.target.value)}})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("br",{})})]}),Object(We.jsx)(k.a,{item:!0,xs:12,className:t.buttonContainer,children:Object(We.jsx)(S.a,{type:"submit",variant:"contained",color:"primary",disabled:l,children:"Save"})}),l&&Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(O.a,{})})]})})})}))),Ai=Object(o.b)((function(e){return{session:e.console.session,loadingBucket:e.buckets.bucketDetails.loadingBucket,bucketInfo:e.buckets.bucketDetails.bucketInfo}}),{setErrorSnackMessage:ce}),_i=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)(Object(p.a)({},Ot),pt),{},{actionsTray:Object(p.a)({},pt.actionsTray),twHeight:{minHeight:400}}))}))(Ai((function(e){var t=e.classes,a=e.match,c=e.setErrorSnackMessage,i=e.loadingBucket,r=e.bucketInfo,o=Object(n.useState)(!1),s=Object(m.a)(o,2),l=s[0],d=s[1],u=Object(n.useState)(!0),b=Object(m.a)(u,2),j=b[0],h=b[1],p=Object(n.useState)([]),O=Object(m.a)(p,2),g=O[0],x=O[1],f=Object(n.useState)(!1),v=Object(m.a)(f,2),y=v[0],C=v[1],w=Object(n.useState)(null),T=Object(m.a)(w,2),N=T[0],E=T[1],A=a.params.bucketName,_=ti(null===r||void 0===r?void 0:r.allowedActions,[W]),I=ti(null===r||void 0===r?void 0:r.allowedActions,[V,"admin:ServerInfo"],!0);Object(n.useEffect)((function(){i&&h(!0)}),[i,h]),Object(n.useEffect)((function(){j&&(_?Ge.invoke("GET","/api/v1/buckets/".concat(A,"/events")).then((function(e){var t=be()(e,"events",[]);h(!1),x(t||[])})).catch((function(e){h(!1),c(e)})):h(!1))}),[j,c,A]);var M=[{type:"delete",onClick:function(e){C(!0),E(e)}}];return Object(We.jsxs)(n.Fragment,{children:[y&&Object(We.jsx)(gi,{deleteOpen:y,selectedBucket:A,bucketEvent:N,closeDeleteModalAndRefresh:function(e){C(!1),e&&h(!0)}}),l&&Object(We.jsx)(Ei,{open:l,selectedBucket:A,closeModalAndRefresh:function(){d(!1),h(!0)}}),Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.actionsTray,children:[Object(We.jsx)("h1",{className:t.sectionTitle,children:"Events"}),I&&Object(We.jsx)(S.a,{variant:"contained",color:"primary",startIcon:Object(We.jsx)(ba,{}),size:"medium",onClick:function(){d(!0)},children:"Subscribe to Event"})]}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ei,{disabled:!_,itemActions:M,columns:[{label:"SQS",elementKey:"arn"},{label:"Events",elementKey:"events",renderFunction:function(e){return Object(We.jsx)(n.Fragment,{children:e.join(", ")})}},{label:"Prefix",elementKey:"prefix"},{label:"Suffix",elementKey:"suffix"}],isLoading:j,records:g,entityName:"Events",idField:"id",customPaperHeight:t.twHeight})}),!j&&Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(wc,{title:"Lambda Notifications",iconComponent:Object(We.jsx)(tn,{}),help:Object(We.jsxs)(n.Fragment,{children:["MinIO bucket notifications allow administrators to send notifications to supported external services on certain object or bucket events. MinIO supports bucket and object-level S3 events similar to the Amazon S3 Event Notifications.",Object(We.jsx)("br",{}),Object(We.jsx)("br",{}),"You can learn more at our"," ",Object(We.jsx)("a",{href:"https://docs.min.io/minio/baremetal/monitoring/bucket-notifications/bucket-notifications.html?ref=con",target:"_blank",rel:"noreferrer",children:"documentation"}),"."]})})})]})]})}))),Ii=a(109),Mi=a.n(Ii),zi=a(331),Di=a.n(zi),Li=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)(Object(p.a)({},lt),ut),{},{inputWithBorder:{border:"1px solid #EAEAEA",padding:15,height:150,overflowY:"auto",position:"relative",marginTop:15},labelContainer:{display:"flex"},lineInputBoxes:{display:"flex"},queryDiv:{alignSelf:"center",margin:"0 4px",fontWeight:600}}))}))((function(e){var t=e.elements,a=e.name,i=e.label,r=e.tooltip,o=void 0===r?"":r,s=e.keyPlaceholder,l=void 0===s?"":s,d=e.valuePlaceholder,u=void 0===d?"":d,b=e.onChange,j=e.withBorder,h=void 0!==j&&j,p=e.classes,O=Object(n.useState)([""]),g=Object(m.a)(O,2),x=g[0],f=g[1],v=Object(n.useState)([""]),y=Object(m.a)(v,2),S=y[0],C=y[1],w=Object(n.createRef)();Object(n.useEffect)((function(){if(1===x.length&&""===x[0]&&1===S.length&&""===S[0]&&t&&""!==t){var e=t.split("&"),a=[],n=[];e.forEach((function(e){var t=e.split("=");2===t.length&&(a.push(t[0]),n.push(t[1]))})),a.push(""),n.push(""),f(a),C(n)}}),[x,S,t]),Object(n.useEffect)((function(){var e=w.current;e&&x.length>1&&e.scrollIntoView(!1)}),[x]);var T=Object(n.useRef)(!0);Object(n.useLayoutEffect)((function(){T.current?T.current=!1:A()}),[x,S]);var N=function(e){e.persist();var t=Object(Kt.a)(x);t[be()(e.target,"dataset.index",0)]=e.target.value,f(t)},E=function(e){e.persist();var t=Object(Kt.a)(S);t[be()(e.target,"dataset.index",0)]=e.target.value,C(t)},A=Mi()((function(){var e="";x.forEach((function(t,a){if(x[a]&&S[a]){var n="".concat(t,"=").concat(S[a]);0!==a&&(n="&".concat(n)),e="".concat(e).concat(n)}})),b(e)}),500),_=S.map((function(e,t){return Object(We.jsxs)(k.a,{item:!0,xs:12,className:p.lineInputBoxes,children:[Object(We.jsx)(Pn,{id:"".concat(a,"-key-").concat(t.toString()),label:"",name:"".concat(a,"-").concat(t.toString()),value:x[t],onChange:N,index:t,placeholder:l}),Object(We.jsx)("span",{className:p.queryDiv,children:":"}),Object(We.jsx)(Pn,{id:"".concat(a,"-value-").concat(t.toString()),label:"",name:"".concat(a,"-").concat(t.toString()),value:S[t],onChange:E,index:t,placeholder:u,overlayIcon:t===S.length-1?Object(We.jsx)(ba,{}):null,overlayAction:function(){!function(){if(""!==x[x.length-1].trim()&&""!==S[S.length-1].trim()){var e=Object(Kt.a)(x),t=Object(Kt.a)(S);e.push(""),t.push(""),f(e),C(t)}}()}})]},"query-pair-".concat(a,"-").concat(t.toString()))}));return Object(We.jsx)(c.a.Fragment,{children:Object(We.jsxs)(k.a,{item:!0,xs:12,className:p.fieldContainer,children:[Object(We.jsxs)(Dn.a,{className:p.inputLabel,children:[Object(We.jsx)("span",{children:i}),""!==o&&Object(We.jsx)("div",{className:p.tooltipContainer,children:Object(We.jsx)(Ln.a,{title:o,placement:"top-start",children:Object(We.jsx)(Di.a,{className:p.tooltip})})})]}),Object(We.jsxs)(k.a,{item:!0,xs:12,className:"".concat(h?p.inputWithBorder:""),children:[_,Object(We.jsx)("div",{ref:w})]})]})})})),Fi=Object(o.b)(null,{setModalErrorSnackMessage:re}),Ri=Object(y.a)((function(e){return Object(f.a)(Object(p.a)({minTableHeader:{color:"#393939","& tr":{"& th":{fontWeight:"bold"}}},buttonContainer:{textAlign:"right"},multiContainer:{display:"flex",alignItems:"center",justifyContent:"flex-start"}},dt))}))(Fi((function(e){var t=e.open,a=e.closeModalAndRefresh,c=e.classes,i=e.bucketName,r=e.setModalErrorSnackMessage,o=Object(n.useState)(!1),s=Object(m.a)(o,2),l=s[0],d=s[1],u=Object(n.useState)(""),b=Object(m.a)(u,2),j=b[0],h=b[1],p=Object(n.useState)(""),g=Object(m.a)(p,2),x=g[0],f=g[1],v=Object(n.useState)(""),y=Object(m.a)(v,2),C=y[0],w=y[1],T=Object(n.useState)(""),N=Object(m.a)(T,2),E=N[0],A=N[1],_=Object(n.useState)(""),I=Object(m.a)(_,2),M=I[0],z=I[1],D=Object(n.useState)(""),L=Object(m.a)(D,2),F=L[0],R=L[1],P=Object(n.useState)(""),B=Object(m.a)(P,2),U=B[0],G=B[1],K=Object(n.useState)(!0),W=Object(m.a)(K,2),V=W[0],H=W[1],q=Object(n.useState)(!0),Y=Object(m.a)(q,2),Q=Y[0],Z=Y[1],J=Object(n.useState)(!0),$=Object(m.a)(J,2),X=$[0],ee=$[1],te=Object(n.useState)(!0),ae=Object(m.a)(te,2),ne=ae[0],ce=(ae[1],Object(n.useState)("")),ie=Object(m.a)(ce,2),re=ie[0],oe=ie[1],se=Object(n.useState)("async"),le=Object(m.a)(se,2),de=le[0],ue=le[1],je=Object(n.useState)("100"),he=Object(m.a)(je,2),me=he[0],pe=he[1],Oe=Object(n.useState)("Gi"),ge=Object(m.a)(Oe,2),xe=ge[0],fe=ge[1],ve=Object(n.useState)("60"),ye=Object(m.a)(ve,2),Se=ye[0],Ce=ye[1];return Object(We.jsx)(zn,{modalOpen:t,onClose:function(){a()},title:"Set Bucket Replication",children:Object(We.jsx)("form",{noValidate:!0,autoComplete:"off",onSubmit:function(e){e.preventDefault(),d(!0),function(){var e=[{originBucket:i,destinationBucket:F}],t=parseInt(Se),n="".concat(V?"https://":"http://").concat(C),c={accessKey:j,secretKey:x,targetURL:n,region:U,bucketsRelation:e,syncMode:de,bandwidth:"async"===de?parseInt(we(me,xe,!0)):0,healthCheckPeriod:t,prefix:M,tags:re,replicateDeleteMarkers:Q,replicateDeletes:X,replicateMetadata:ne};Ge.invoke("POST","/api/v1/buckets-replication",c).then((function(e){d(!1);var t=be()(e,"replicationState",[]);if(t.length>0){var n=t[0];return d(!1),n.errorString&&""!==n.errorString?void r({errorMessage:n.errorString,detailedError:""}):void a()}r({errorMessage:"No changes applied",detailedError:""})})).catch((function(e){d(!1),r(e)}))}()},children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsxs)(k.a,{item:!0,xs:12,className:c.formScrollable,children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"targetURL",name:"targetURL",onChange:function(e){w(e.target.value)},placeholder:"play.min.io",label:"Target URL",value:C})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ac,{checked:V,id:"useTLS",name:"useTLS",label:"Use TLS",onChange:function(e){H(e.target.checked)},value:"yes"})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"accessKey",name:"accessKey",onChange:function(e){h(e.target.value)},label:"Access Key",value:j})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"secretKey",name:"secretKey",onChange:function(e){f(e.target.value)},label:"Secret Key",value:x})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"targetBucket",name:"targetBucket",onChange:function(e){R(e.target.value)},label:"Target Bucket",value:F})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"region",name:"region",onChange:function(e){G(e.target.value)},label:"Region",value:U})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Vn,{id:"replication_mode",name:"replication_mode",onChange:function(e){ue(e.target.value)},label:"Replication Mode",value:de,options:[{label:"Asynchronous",value:"async"},{label:"Synchronous",value:"sync"}]})}),"async"===de&&Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsxs)("div",{className:c.multiContainer,children:[Object(We.jsx)("div",{children:Object(We.jsx)(Pn,{type:"number",id:"bandwidth_scalar",name:"bandwidth_scalar",onChange:function(e){pe(e.target.value)},label:"Bandwidth",value:me,min:"0"})}),Object(We.jsx)("div",{className:c.sizeFactorContainer,children:Object(We.jsx)(Vn,{label:"Unit",id:"bandwidth_unit",name:"bandwidth_unit",value:xe,onChange:function(e){fe(e.target.value)},options:ke()})})]})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"healthCheck",name:"healthCheck",onChange:function(e){Ce(e.target.value)},label:"Health Check Duration",value:Se})}),Object(We.jsx)("h3",{children:"Object Filters"}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"prefix",name:"prefix",onChange:function(e){z(e.target.value)},placeholder:"prefix",label:"Prefix",value:M})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Li,{name:"tags",label:"Tags",elements:"",onChange:function(e){oe(e)},keyPlaceholder:"Tag Key",valuePlaceholder:"Tag Value",withBorder:!0})}),Object(We.jsx)("h3",{children:"Storage Configuration"}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"storageClass",name:"storageClass",onChange:function(e){A(e.target.value)},placeholder:"STANDARD_IA,REDUCED_REDUNDANCY etc",label:"Storage Class",value:E})}),Object(We.jsx)("h3",{children:"Replication Options"}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ac,{checked:Q,id:"deleteMarker",name:"deleteMarker",label:"Delete Marker",onChange:function(e){Z(e.target.checked)},value:Q,description:"Replicate soft deletes"})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ac,{checked:X,id:"repDelete",name:"repDelete",label:"Deletes",onChange:function(e){ee(e.target.checked)},value:X,description:"Replicate versioned deletes"})})]}),Object(We.jsx)(k.a,{item:!0,xs:12,className:c.buttonContainer,children:Object(We.jsx)(S.a,{type:"submit",variant:"contained",color:"primary",disabled:l,children:"Save"})}),l&&Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(O.a,{})})]})})})}))),Pi={setErrorSnackMessage:ce},Bi=Object(o.b)(null,Pi)((function(e){var t=e.closeDeleteModalAndRefresh,a=e.deleteOpen,c=e.selectedBucket,i=e.ruleToDelete,r=e.setErrorSnackMessage,o=Object(n.useState)(!1),s=Object(m.a)(o,2),l=s[0],d=s[1];return Object(We.jsxs)(wn.a,{open:a,onClose:function(){t(!1)},"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[Object(We.jsx)(Tn.a,{id:"alert-dialog-title",children:"Delete Replication Rule"}),Object(We.jsxs)(Nn.a,{children:[l&&Object(We.jsx)(O.a,{}),Object(We.jsxs)(cc.a,{id:"alert-dialog-description",children:["Are you sure you want to delete replication rule ",Object(We.jsx)("b",{children:i}),"? ",Object(We.jsx)("br",{}),"Remember, at lease one rule must be present once replication has been enabled"]})]}),Object(We.jsxs)(ic.a,{children:[Object(We.jsx)(S.a,{onClick:function(){t(!1)},color:"primary",disabled:l,children:"Cancel"}),Object(We.jsx)(S.a,{onClick:function(){l||(d(!0),Ge.invoke("DELETE","/api/v1/buckets/".concat(c,"/replication/").concat(i)).then((function(){d(!1),t(!0)})).catch((function(e){d(!1),r(e)})))},color:"secondary",autoFocus:!0,children:"Delete"})]})]})})),Ui=Object(o.b)((function(e){return{session:e.console.session,loadingBucket:e.buckets.bucketDetails.loadingBucket,bucketInfo:e.buckets.bucketDetails.bucketInfo}}),{setErrorSnackMessage:ce}),Gi=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)(Object(p.a)({},Ot),pt),{},{twHeight:{minHeight:400}}))}))(Ui((function(e){var t=e.classes,a=e.match,c=e.setErrorSnackMessage,i=e.loadingBucket,r=e.bucketInfo,o=Object(n.useState)(!0),s=Object(m.a)(o,2),l=s[0],d=s[1],u=Object(n.useState)([]),b=Object(m.a)(u,2),j=b[0],h=b[1],p=Object(n.useState)(!1),O=Object(m.a)(p,2),g=O[0],x=O[1],f=Object(n.useState)(!1),v=Object(m.a)(f,2),y=v[0],C=v[1],w=Object(n.useState)(""),T=Object(m.a)(w,2),N=T[0],E=T[1],A=a.params.bucketName,_=ti(null===r||void 0===r?void 0:r.allowedActions,[H]),I=ti(null===r||void 0===r?void 0:r.allowedActions,[q],!0);Object(n.useEffect)((function(){i&&d(!0)}),[i,d]),Object(n.useEffect)((function(){l&&(_?Ge.invoke("GET","/api/v1/buckets/".concat(A,"/replication")).then((function(e){var t=e.rules?e.rules:[];h(t),d(!1)})).catch((function(e){c(e),d(!1)})):d(!1))}),[l,c,A]);var M=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];C(e)},z=[{type:"delete",onClick:function(e){E(e.id),x(!0)},disableButtonFunction:function(){return j.length>1}}];return Object(We.jsxs)(n.Fragment,{children:[y&&Object(We.jsx)(Ri,{closeModalAndRefresh:function(){M(!1),d(!0)},open:y,bucketName:A}),g&&Object(We.jsx)(Bi,{deleteOpen:g,selectedBucket:A,closeDeleteModalAndRefresh:function(e){x(!1),e&&d(!0)},ruleToDelete:N}),Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.actionsTray,children:[Object(We.jsx)("h1",{className:t.sectionTitle,children:"Replication"}),I&&Object(We.jsx)(S.a,{variant:"contained",color:"primary",startIcon:Object(We.jsx)(ba,{}),size:"medium",onClick:function(){M(!0)},children:"Add Replication Rule"})]}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ei,{disabled:!_,itemActions:z,columns:[{label:"Priority",elementKey:"priority"},{label:"Destination",elementKey:"destination",renderFunction:function(e){return Object(We.jsx)(n.Fragment,{children:e.bucket.replace("arn:aws:s3:::","")})}},{label:"Prefix",elementKey:"prefix"},{label:"Tags",elementKey:"tags",renderFunction:function(e){return Object(We.jsx)(n.Fragment,{children:e&&""!==e.tags?"Yes":"No"})}},{label:"Status",elementKey:"status"}],isLoading:l,records:j,entityName:"Replication Rules",idField:"id",customPaperHeight:t.twHeight})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(wc,{title:"Replication",iconComponent:Object(We.jsx)(Ta,{}),help:Object(We.jsxs)(n.Fragment,{children:["MinIO supports server-side and client-side replication of objects between source and destination buckets.",Object(We.jsx)("br",{}),Object(We.jsx)("br",{}),"You can learn more at our"," ",Object(We.jsx)("a",{href:"https://docs.min.io/minio/baremetal/replication/replication-overview.html?ref=con",target:"_blank",rel:"noreferrer",children:"documentation"}),"."]})})})]})]})}))),Ki=a(68),Wi=a.n(Ki),Vi={setModalErrorSnackMessage:re},Hi=Object(o.b)(null,Vi),qi=Object(y.a)((function(e){return Object(f.a)(Object(p.a)({strongText:{fontWeight:700},keyName:{marginLeft:5},buttonContainer:{textAlign:"right"}},dt))}))(Hi((function(e){var t=e.classes,a=e.closeModalAndRefresh,i=e.selectedBucket,r=e.lifecycle,o=e.open,s=e.setModalErrorSnackMessage,l=Object(n.useState)(!1),d=Object(m.a)(l,2),u=d[0],b=d[1],j=Object(n.useState)(""),h=Object(m.a)(j,2),p=h[0],g=h[1],x=Object(n.useState)(!1),f=Object(m.a)(x,2),v=f[0],y=f[1];Object(n.useEffect)((function(){if("Enabled"===r.status&&y(!0),r.tags){var e=r.tags.reduce((function(e,t,a){return"".concat(e).concat(0!==a?"&":"").concat(t.key,"=").concat(t.value)}),"");g(e)}}),[r]);return Object(We.jsxs)(zn,{onClose:function(){a(!1)},modalOpen:o,title:"Edit Lifecycle Configuration",children:[Object(We.jsx)("div",{className:t.floatingEnabled,children:Object(We.jsx)(ac,{indicatorLabels:["Enabled","Disabled"],checked:v,value:"user_enabled",id:"user-status",name:"user-status",onChange:function(e){y(e.target.checked)},switchOnly:!0})}),Object(We.jsx)(c.a.Fragment,{children:Object(We.jsx)("form",{noValidate:!0,autoComplete:"off",onSubmit:function(e){e.preventDefault(),u||(b(!0),null!==i&&null!==r&&Ge.invoke("PUT","/api/v1/buckets/".concat(i,"/lifecycle/").concat(r.id),{disable:!v,tags:p}).then((function(e){b(!1),a(!0)})).catch((function(e){b(!1),s(e)})))},children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.formScrollable,children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"id",name:"id",label:"Id",value:r.id,onChange:function(){},disabled:!0})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Li,{name:"tags",label:"Tags",elements:p,onChange:function(e){g(e)},keyPlaceholder:"Tag Key",valuePlaceholder:"Tag Value",withBorder:!0})})]}),Object(We.jsx)(k.a,{item:!0,xs:12,className:t.buttonContainer,children:Object(We.jsx)(S.a,{type:"submit",variant:"contained",color:"primary",disabled:u,children:"Save"})}),u&&Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(O.a,{})})]})})})]})}))),Yi=[{value:"01",label:"January"},{value:"02",label:"February"},{value:"03",label:"March"},{value:"04",label:"April"},{value:"05",label:"May"},{value:"06",label:"June"},{value:"07",label:"July"},{value:"08",label:"August"},{value:"09",label:"September"},{value:"10",label:"October"},{value:"11",label:"November"},{value:"12",label:"December"}],Qi=Array.from(Array(31),(function(e,t){return t+1})),Zi=(new Date).getFullYear(),Ji=Array.from(Array(25),(function(e,t){return t+Zi})),$i=Object(y.a)((function(e){return Object(f.a)({root:{"& .MuiSelect-icon":{color:"#000","&.Mui-disabled":{color:"#9c9c9c"}}},input:{borderBottom:0,fontSize:12}})}))(Bn.c),Xi=Object(n.forwardRef)((function(e,t){var a=e.classes,c=e.id,i=e.label,r=e.disableOptions,o=void 0!==r&&r,s=e.addSwitch,l=void 0!==s&&s,d=e.tooltip,u=void 0===d?"":d,b=e.borderBottom,j=void 0!==b&&b,h=e.onDateChange,p=e.value,O=void 0===p?"":p;Object(n.useImperativeHandle)(t,(function(){return{resetDate:D}}));var g=Object(n.useState)(!1),x=Object(m.a)(g,2),f=x[0],v=x[1],y=Object(n.useState)(""),S=Object(m.a)(y,2),C=S[0],w=S[1],T=Object(n.useState)(""),N=Object(m.a)(T,2),E=N[0],A=N[1],_=Object(n.useState)(""),I=Object(m.a)(_,2),M=I[0],z=I[1];Object(n.useEffect)((function(){if(""!==O){var e=O.split("-");z(e[0]),w(e[1]),A("".concat(parseInt(e[2])))}}),[O]),Object(n.useEffect)((function(){var e=function(e,t,a){var n=Date.parse("".concat(e,"-").concat(t,"-").concat(a));if(isNaN(n))return[!1,""];var c=parseInt(t),i=parseInt(a),r=c<10?"0".concat(c):c,o=i<10?"0".concat(i):i,s=new Date(n).toISOString().split("T")[0],l="".concat(e,"-").concat(r,"-").concat(o);return[s===l,l]}(M,C,E),t=Object(m.a)(e,2),a=t[0],n=t[1];h(n,a)}),[C,E,M,h]);var D=function(){w(""),A(""),z("")},L=function(){return o||!!l&&!f};return Object(We.jsxs)(k.a,{item:!0,xs:12,className:Object(Hn.a)(a.fieldContainer,Object(it.a)({},a.fieldContainerBorder,j)),children:[Object(We.jsx)("div",{className:a.labelContainer,children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsxs)(Dn.a,{htmlFor:c,className:a.inputLabel,children:[Object(We.jsx)("span",{children:i}),""!==u&&Object(We.jsx)("div",{className:a.tooltipContainer,children:Object(We.jsx)(Ln.a,{title:u,placement:"top-start",children:Object(We.jsx)("div",{children:Object(We.jsx)(oa,{className:a.tooltip})})})})]}),l&&Object(We.jsx)(ac,{indicatorLabels:["Specific Date","Default (7 Days)"],checked:f,value:"date_enabled",id:"date-status",name:"date-status",onChange:function(e){v(e.target.checked),e.target.checked||h("",!0)},switchOnly:!0})]})}),Object(We.jsxs)("div",{children:[Object(We.jsx)(Un.a,{disabled:L(),className:a.dateInput,children:Object(We.jsxs)(Gn.a,{id:"".concat(c,"-month"),name:"".concat(c,"-month"),value:C,displayEmpty:!0,onChange:function(e){w(e.target.value)},input:Object(We.jsx)($i,{}),children:[Object(We.jsx)(Kn.a,{value:"",disabled:!0,children:"<Month>"}),Yi.map((function(e){return Object(We.jsx)(Kn.a,{value:e.value,children:e.label},"select-".concat(c,"-monthOP-").concat(e.label))}))]})}),Object(We.jsx)(Un.a,{disabled:L(),className:a.dateInput,children:Object(We.jsxs)(Gn.a,{id:"".concat(c,"-day"),name:"".concat(c,"-day"),value:E,displayEmpty:!0,onChange:function(e){A(e.target.value)},input:Object(We.jsx)($i,{}),children:[Object(We.jsx)(Kn.a,{value:"",disabled:!0,children:"<Day>"}),Qi.map((function(e){return Object(We.jsx)(Kn.a,{value:e,children:e},"select-".concat(c,"-dayOP-").concat(e))}))]})}),Object(We.jsx)(Un.a,{disabled:L(),className:a.dateInput,children:Object(We.jsxs)(Gn.a,{id:"".concat(c,"-year"),name:"".concat(c,"-year"),value:M,displayEmpty:!0,onChange:function(e){z(e.target.value)},input:Object(We.jsx)($i,{}),children:[Object(We.jsx)(Kn.a,{value:"",disabled:!0,children:"<Year>"}),Ji.map((function(e){return Object(We.jsx)(Kn.a,{value:e,children:e},"select-".concat(c,"-yearOP-").concat(e))}))]})})]})]})})),er=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)(Object(p.a)({dateInput:{"&:not(:last-child)":{marginRight:22}}},lt),ut),{},{labelContainer:{flex:1},fieldContainer:Object(p.a)(Object(p.a)({},lt.fieldContainer),{},{display:"flex",alignItems:"center",justifyContent:"space-between",paddingBottom:10,marginTop:11,marginBottom:6}),fieldContainerBorder:{borderBottom:"#9c9c9c 1px solid",marginBottom:20}}))}))(Xi),tr=Object(o.b)(null,{setModalErrorSnackMessage:re}),ar=Object(y.a)((function(e){return Object(f.a)(Object(p.a)({minTableHeader:{color:"#393939","& tr":{"& th":{fontWeight:"bold"}}},buttonContainer:{textAlign:"right"}},dt))}))(tr((function(e){var t=e.open,a=e.closeModalAndRefresh,c=e.classes,i=e.bucketName,r=e.setModalErrorSnackMessage,o=Object(n.useState)(!0),s=Object(m.a)(o,2),l=s[0],d=s[1],u=Object(n.useState)([]),b=Object(m.a)(u,2),j=b[0],h=b[1],g=Object(n.useState)(!1),x=Object(m.a)(g,2),f=x[0],v=x[1],y=Object(n.useState)(""),C=Object(m.a)(y,2),w=C[0],T=C[1],N=Object(n.useState)(""),E=Object(m.a)(N,2),A=E[0],_=E[1],I=Object(n.useState)(""),M=Object(m.a)(I,2),z=M[0],D=M[1],L=Object(n.useState)(""),F=Object(m.a)(L,2),R=F[0],P=F[1],B=Object(n.useState)(!1),U=Object(m.a)(B,2),G=U[0],K=U[1],W=Object(n.useState)("0"),V=Object(m.a)(W,2),H=V[0],q=V[1],Y=Object(n.useState)("0"),Q=Object(m.a)(Y,2),Z=Q[0],J=Q[1],$=Object(n.useState)("expiry"),X=Object(m.a)($,2),ee=X[0],te=X[1],ae=Object(n.useState)("date"),ne=Object(m.a)(ae,2),ce=ne[0],ie=ne[1],re=Object(n.useState)("0"),oe=Object(m.a)(re,2),se=oe[0],le=oe[1],de=Object(n.useState)(""),ue=Object(m.a)(de,2),je=ue[0],he=ue[1],me=Object(n.useState)("0"),pe=Object(m.a)(me,2),Oe=pe[0],ge=pe[1],xe=Object(n.useState)(""),fe=Object(m.a)(xe,2),ve=fe[0],ye=fe[1],Se=Object(n.useState)("date"),Ce=Object(m.a)(Se,2),ke=Ce[0],we=Ce[1],Te=Object(n.useState)(!1),Ne=Object(m.a)(Te,2),Ee=Ne[0],Ae=Ne[1];Object(n.useEffect)((function(){l&&Ge.invoke("GET","/api/v1/admin/tiers").then((function(e){var t=be()(e,"items",[]);if(null!==t&&t.length>=1){var a=t.map((function(e){var t=e.type,a=be()(e,"".concat(t,".name"),"");return{label:a,value:a}}));h(a),a.length>0&&D(a[0].value)}d(!1)})).catch((function(e){d(!1)}))}),[l]),Object(n.useEffect)((function(){var e=!0;"expiry"===ee?("date"===ce&&""===je&&(e=!1),"days"===ce&&parseInt(se)<1&&(e=!1)):("date"===ke&&""===ve&&(e=!1),"days"===ke&&parseInt(Oe)<1&&(e=!1),""===z&&(e=!1)),Ae(e)}),[ee,ce,je,se,ke,ve,Oe,z]);return Object(We.jsxs)(zn,{modalOpen:t,onClose:function(){a(!1)},title:"Add Lifecycle Rule",children:[l&&Object(We.jsx)(k.a,{container:!0,className:c.loadingBox,children:Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(O.a,{})})}),!l&&Object(We.jsx)("form",{noValidate:!0,autoComplete:"off",onSubmit:function(e){e.preventDefault(),v(!0),function(){var e={};if("expiry"===ee){var t={};t="date"===ce?{expiry_date:"".concat(je,"T23:59:59Z")}:{expiry_days:parseInt(se)},e=Object(p.a)(Object(p.a)({},t),{},{noncurrentversion_expiration_days:parseInt(H)})}else{var n={};n="date"===ke?{transition_date:"".concat(ve,"T23:59:59Z")}:{transition_days:parseInt(Oe)},e=Object(p.a)(Object(p.a)({},n),{},{noncurrentversion_transition_days:parseInt(Z),noncurrentversion_transition_storage_class:R,storage_class:z})}var c=Object(p.a)({prefix:w,tags:A,expired_object_delete_marker:G},e);Ge.invoke("POST","/api/v1/buckets/".concat(i,"/lifecycle"),c).then((function(){v(!1),a(!0)})).catch((function(e){v(!1),r(e)}))}()},children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsxs)(k.a,{item:!0,xs:12,className:c.formScrollable,children:[Object(We.jsx)("h3",{children:"Lifecycle Configuration"}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)($n,{currentSelection:ee,id:"quota_type",name:"quota_type",label:"ILM Rule",onChange:function(e){te(e.target.value)},selectorOptions:[{value:"expiry",label:"Expiry"},{value:"transition",label:"Transition"}]})}),"expiry"===ee?Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)($n,{currentSelection:ce,id:"expiryType",name:"expiryType",label:"Expiry Type",onChange:function(e){ie(e.target.value)},selectorOptions:[{value:"date",label:"Date"},{value:"days",label:"Days"}]})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:"date"===ce?Object(We.jsx)(er,{id:"expiry_date",label:"Expiry Date",value:je,borderBottom:!0,onDateChange:function(e,t){t&&he(e)}}):Object(We.jsx)(Pn,{type:"number",id:"expiry_days",name:"expiry_days",onChange:function(e){le(e.target.value)},label:"Expiry Days",value:se,min:"0"})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{type:"number",id:"noncurrentversion_expiration_days",name:"noncurrentversion_expiration_days",onChange:function(e){q(e.target.value)},label:"Non-current Expiration Days",value:H,min:"0"})})]}):Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)($n,{currentSelection:ke,id:"transitionType",name:"transitionType",label:"Transition Type",onChange:function(e){we(e.target.value)},selectorOptions:[{value:"date",label:"Date"},{value:"days",label:"Days"}]})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:"date"===ke?Object(We.jsx)(er,{id:"transition_date",label:"Transition Date",value:ve,borderBottom:!0,onDateChange:function(e,t){t&&ye(e)}}):Object(We.jsx)(Pn,{type:"number",id:"transition_days",name:"transition_days",onChange:function(e){ge(e.target.value)},label:"Transition Days",value:Oe,min:"0"})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{type:"number",id:"noncurrentversion_transition_days",name:"noncurrentversion_transition_days",onChange:function(e){J(e.target.value)},label:"Non-current Transition Days",value:Z,min:"0"})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"noncurrentversion_t_SC",name:"noncurrentversion_t_SC",onChange:function(e){P(e.target.value)},placeholder:"Set Non-current Version Transition Storage Class",label:"Non-current Version Transition Storage Class",value:R})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Vn,{label:"Storage Class",id:"storage_class",name:"storage_class",value:z,onChange:function(e){D(e.target.value)},options:j})})]}),Object(We.jsx)("h3",{children:"File Configuration"}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"prefix",name:"prefix",onChange:function(e){T(e.target.value)},label:"Prefix",value:w})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Li,{name:"tags",label:"Tags",elements:"",onChange:function(e){_(e)},keyPlaceholder:"Tag Key",valuePlaceholder:"Tag Value",withBorder:!0})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ac,{value:"expired_delete_marker",id:"expired_delete_marker",name:"expired_delete_marker",checked:G,onChange:function(e){K(e.target.checked)},label:"Expired Object Delete Marker"})})]}),Object(We.jsx)(k.a,{item:!0,xs:12,className:c.buttonContainer,children:Object(We.jsx)(S.a,{type:"submit",variant:"contained",color:"primary",disabled:f||!Ee,children:"Save"})}),f&&Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(O.a,{})})]})})]})}))),nr=Object(o.b)((function(e){return{session:e.console.session,loadingBucket:e.buckets.bucketDetails.loadingBucket,bucketInfo:e.buckets.bucketDetails.bucketInfo}}),{setErrorSnackMessage:ce}),cr=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)(Object(p.a)({},Ot),pt),{},{twHeight:{minHeight:400}}))}))(nr((function(e){var t=e.classes,a=e.match,c=(e.setErrorSnackMessage,e.loadingBucket),i=e.bucketInfo,r=Object(n.useState)(!0),o=Object(m.a)(r,2),s=o[0],l=o[1],d=Object(n.useState)([]),u=Object(m.a)(d,2),b=u[0],j=u[1],h=Object(n.useState)(!1),p=Object(m.a)(h,2),O=p[0],g=p[1],x=Object(n.useState)(!1),f=Object(m.a)(x,2),v=f[0],y=f[1],C=a.params.bucketName,w=ti(null===i||void 0===i?void 0:i.allowedActions,[Y]),T=ti(null===i||void 0===i?void 0:i.allowedActions,[Q,"admin:ListTier"],!0);Object(n.useEffect)((function(){c&&l(!0)}),[c,l]),Object(n.useEffect)((function(){s&&(w?Ge.invoke("GET","/api/v1/buckets/".concat(C,"/lifecycle")).then((function(e){var t=be()(e,"lifecycle",[]);j(t||[]),l(!1)})).catch((function(e){console.error(e),l(!1)})):l(!1))}),[s,l,C]);var N=[{label:"ID",elementKey:"id"},{label:"Prefix",elementKey:"prefix"},{label:"Status",elementKey:"status"},{label:"Expiration",elementKey:"expiration",renderFunction:function(e){return e.days?"".concat(e.days," day").concat(e.days>1?"s":""):"0001-01-01T00:00:00Z"===e.date?"":Object(We.jsx)(Wi.a,{children:e.date})}},{label:"Transition",elementKey:"transition",renderFunction:function(e){return e.days?"".concat(e.days," day").concat(e.days>1?"s":""):"0001-01-01T00:00:00Z"===e.date?"":Object(We.jsx)(Wi.a,{children:e.date})}},{label:"Storage Class",elementKey:"storage_class",renderFunction:function(e){return be()(e,"transition.storage_class","")},renderFullObject:!0}];return Object(We.jsxs)(n.Fragment,{children:[v&&Object(We.jsx)(qi,{open:v,closeModalAndRefresh:function(e){y(!1),e&&l(!0)},selectedBucket:C,lifecycle:{id:""}}),O&&Object(We.jsx)(ar,{open:O,bucketName:C,closeModalAndRefresh:function(e){g(!1),e&&l(!0)}}),Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.actionsTray,children:[Object(We.jsx)("h1",{className:t.sectionTitle,children:"Lifecycle Rules"}),T&&Object(We.jsx)(S.a,{variant:"contained",color:"primary",startIcon:Object(We.jsx)(ba,{}),size:"medium",onClick:function(){g(!0)},children:"Add Lifecycle Rule"})]}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ei,{itemActions:[],columns:N,isLoading:s,records:b,entityName:"Lifecycle",customEmptyMessage:"There are no Lifecycle rules yet",idField:"id",customPaperHeight:t.twHeight})}),!s&&Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(wc,{title:"Lifecycle Rules",iconComponent:Object(We.jsx)(an,{}),help:Object(We.jsxs)(n.Fragment,{children:["MinIO Object Lifecycle Management allows creating rules for time or date based automatic transition or expiry of objects. For object transition, MinIO automatically moves the object to a configured remote storage tier.",Object(We.jsx)("br",{}),Object(We.jsx)("br",{}),"You can learn more at our"," ",Object(We.jsx)("a",{href:"https://docs.min.io/minio/baremetal/lifecycle-management/lifecycle-management-overview.html?ref=con",target:"_blank",rel:"noreferrer",children:"documentation"}),"."]})})})]})]})}))),ir=Object(y.a)((function(e){return Object(f.a)({headerBarIcon:{float:"left",paddingTop:10,marginRight:12,color:e.palette.primary.main,"& .MuiSvgIcon-root":{width:44,height:44}},headerBarSubheader:{color:"grey"}})}))((function(e){var t=e.classes,a=e.icon,n=e.title,c=e.subTitle,i=e.actions;return Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsxs)(k.a,{item:!0,xs:12,style:{paddingTop:8},children:[Object(We.jsx)("div",{className:t.headerBarIcon,children:a}),Object(We.jsxs)("div",{style:{float:"left"},children:[Object(We.jsx)("h1",{style:{margin:0},children:n}),Object(We.jsx)("span",{className:t.headerBarSubheader,children:c})]}),Object(We.jsx)("div",{style:{float:"right",paddingTop:12},children:i})]}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("hr",{style:{border:0,borderTop:"1px solid #EAEAEA"}})})]})})),rr=Object(o.b)((function(e){return{session:e.console.session}}),{setErrorSnackMessage:ce}),or=Object(y.a)((function(e){return Object(f.a)(Object(p.a)({buttonContainer:{textAlign:"right"},pathLabel:{marginTop:0,marginBottom:32}},dt))}))(rr((function(e){var t=e.modalOpen,a=e.onClose,i=e.classes,r=e.bucket,o=Object(n.useState)(""),s=Object(m.a)(o,2),l=s[0],d=s[1],u=Object(n.useState)("readonly"),b=Object(m.a)(u,2),j=b[0],h=b[1];return Object(We.jsx)(c.a.Fragment,{children:Object(We.jsx)(zn,{modalOpen:t,title:"Add Access Rule",onClose:a,children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsxs)(k.a,{item:!0,xs:12,children:[Object(We.jsx)(Pn,{value:l,label:"Prefix",id:"prefix",name:"prefix",placeholder:"Enter Prefix",onChange:function(e){d(e.target.value)}}),Object(We.jsx)(Vn,{id:"access",name:"Access",onChange:function(e){h(e.target.value)},label:"Access",value:j,options:[{label:"readonly",value:"readonly"},{label:"writeonly",value:"writeonly"},{label:"readwrite",value:"readwrite"}],disabled:!1})]}),Object(We.jsxs)(k.a,{item:!0,xs:12,className:i.buttonContainer,children:[Object(We.jsx)("button",{type:"button",color:"primary",className:i.clearButton,onClick:function(){d(""),h("readonly")},children:"Clear"}),Object(We.jsx)(S.a,{type:"submit",variant:"contained",color:"primary",disabled:""===l.trim(),onClick:function(){Ge.invoke("PUT","/api/v1/bucket/".concat(r,"/access-rules"),{prefix:l,access:j}).then((function(e){a()})).catch((function(e){ce(e),a()}))},children:"Save"})]})]})})})}))),sr=Object(o.b)((function(e){return{session:e.console.session}}),{setErrorSnackMessage:ce}),lr=Object(y.a)((function(e){return Object(f.a)(Object(p.a)({buttonContainer:{textAlign:"right"},pathLabel:{marginTop:0,marginBottom:32}},dt))}))(sr((function(e){var t=e.onClose,a=e.modalOpen,n=e.bucket,c=e.toDelete;return Object(We.jsxs)(wn.a,{open:a,onClose:t,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[Object(We.jsx)(Tn.a,{id:"alert-dialog-title",children:"Delete Access Rule"}),Object(We.jsx)(Nn.a,{children:Object(We.jsx)(cc.a,{id:"alert-dialog-description",children:"Are you sure you want to delete this access rule?"})}),Object(We.jsxs)(ic.a,{children:[Object(We.jsx)(S.a,{onClick:t,color:"primary",children:"Cancel"}),Object(We.jsx)(S.a,{onClick:function(){Ge.invoke("DELETE","/api/v1/bucket/".concat(n,"/access-rules"),{prefix:c}).then((function(e){})).catch((function(e){ce(e)})),t()},color:"secondary",autoFocus:!0,children:"Delete"})]})]})}))),dr=Object(o.b)((function(e){return{session:e.console.session}}),{setErrorSnackMessage:ce}),ur=Object(y.a)((function(e){return Object(f.a)(Object(p.a)({buttonContainer:{textAlign:"right"},pathLabel:{marginTop:0,marginBottom:32}},dt))}))(dr((function(e){var t=e.modalOpen,a=e.onClose,i=e.classes,r=e.bucket,o=e.toEdit,s=e.initial,l=Object(n.useState)(s),d=Object(m.a)(l,2),u=d[0],b=d[1];return Object(We.jsx)(c.a.Fragment,{children:Object(We.jsx)(zn,{modalOpen:t,title:"Edit Access Rule for ".concat(o),onClose:a,children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Vn,{id:"access",name:"Access",onChange:function(e){b(e.target.value)},label:"Access",value:u,options:[{label:"readonly",value:"readonly"},{label:"writeonly",value:"writeonly"},{label:"readwrite",value:"readwrite"}],disabled:!1})}),Object(We.jsxs)(k.a,{item:!0,xs:12,className:i.buttonContainer,children:[Object(We.jsx)("button",{type:"button",color:"primary",className:i.clearButton,onClick:function(){b(s)},children:"Clear"}),Object(We.jsx)(S.a,{type:"submit",variant:"contained",color:"primary",onClick:function(){Ge.invoke("PUT","/api/v1/bucket/".concat(r,"/access-rules"),{prefix:o,access:u}).then((function(e){a()})).catch((function(e){ce(e),a()}))},children:"Save"})]})]})})})}))),br=Object(o.b)((function(e){return{session:e.console.session,loadingBucket:e.buckets.bucketDetails.loadingBucket,bucketInfo:e.buckets.bucketDetails.bucketInfo}}),{setErrorSnackMessage:ce}),jr=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)(Object(p.a)(Object(p.a)({seeMore:{marginTop:e.spacing(3)},paper:{display:"flex",overflow:"auto",flexDirection:"column"},addSideBar:{width:"320px",padding:"20px"},tableToolbar:{paddingLeft:e.spacing(2),paddingRight:e.spacing(0)},minTableHeader:{color:"#393939","& tr":{"& th":{fontWeight:"bold"}}},fileName:{display:"flex",alignItems:"center"},fileNameText:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},buttonsContainer:{"& .MuiButtonBase-root":{marginLeft:10}},browsePaper:{height:"calc(100vh - 280px)"},"@global":{".rowLine:hover .iconFileElm":{backgroundImage:"url(/images/ob_file_filled.svg)"},".rowLine:hover .iconFolderElm":{backgroundImage:"url(/images/ob_folder_filled.svg)"}},listButton:{marginLeft:"10px",align:"right"},badgeOverlap:{"& .MuiBadge-badge":{top:35,right:10}}},pt),Ot),xt),(e.spacing(4),{container:{position:"relative",maxWidth:1180,padding:"20px 35px 0","& h6":{color:"#777777",fontSize:30},"& p":{"& span:not(*[class*='smallUnit'])":{fontSize:16}}},sectionTitle:{padding:"0px",margin:"0px"},topSpacer:{height:"8px"}})))}))(br((function(e){var t=e.classes,a=e.match,c=e.setErrorSnackMessage,i=e.loadingBucket,r=e.bucketInfo,o=Object(n.useState)(!0),s=Object(m.a)(o,2),l=s[0],d=s[1],u=Object(n.useState)([]),b=Object(m.a)(u,2),j=b[0],h=b[1],p=Object(n.useState)(!1),O=Object(m.a)(p,2),g=O[0],f=O[1],v=Object(n.useState)(!1),y=Object(m.a)(v,2),C=y[0],w=y[1],T=Object(n.useState)(""),N=Object(m.a)(T,2),E=N[0],A=N[1],_=Object(n.useState)(!1),I=Object(m.a)(_,2),M=I[0],z=I[1],D=Object(n.useState)(""),L=Object(m.a)(D,2),F=L[0],R=L[1],U=Object(n.useState)(""),G=Object(m.a)(U,2),K=G[0],W=G[1],V=a.params.bucketName,H=ti(null===r||void 0===r?void 0:r.allowedActions,[P]),q=ti(null===r||void 0===r?void 0:r.allowedActions,[P,B],!0);Object(n.useEffect)((function(){i&&d(!0)}),[i,d]);var Y=[{type:"delete",onClick:function(e){w(!0),A(e.prefix)}},{type:"view",onClick:function(e){R(e.prefix),W(e.access),z(!0)}}];Object(n.useEffect)((function(){l&&(H?Ge.invoke("GET","/api/v1/bucket/".concat(V,"/access-rules")).then((function(e){h(e.accessRules),d(!1)})).catch((function(e){c(e),d(!1)})):d(!1))}),[l,c,V]);return Object(We.jsxs)(n.Fragment,{children:[g&&Object(We.jsx)(or,{modalOpen:g,onClose:function(){f(!1),d(!0)},bucket:V}),C&&Object(We.jsx)(lr,{modalOpen:C,onClose:function(){w(!1),d(!0)},bucket:V,toDelete:E}),M&&Object(We.jsx)(ur,{modalOpen:M,onClose:function(){z(!1),d(!0)},bucket:V,toEdit:F,initial:K}),Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.actionsTray,children:[Object(We.jsx)("h1",{className:t.sectionTitle,children:"Access Rules"}),q&&Object(We.jsx)(S.a,{variant:"contained",color:"primary",startIcon:Object(We.jsx)(ba,{}),component:"label",onClick:function(){f(!0)},className:t.listButton,children:"Add Access Rule"})]}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("br",{})}),Object(We.jsx)(x.a,{children:Object(We.jsx)(ei,{disabled:!H,noBackground:!0,itemActions:Y,columns:[{label:"Prefix",elementKey:"prefix"},{label:"Access",elementKey:"access"}],isLoading:l,records:j,entityName:"Access Rules",idField:"prefix"})})]})}))),hr=["classes","children"],mr=Object(y.a)((function(e){return Object(f.a)({root:{padding:8,marginLeft:14,borderWidth:1,borderColor:e.palette.primary.main,borderStyle:"solid",borderRadius:3,"& .MuiSvgIcon-root":{fontSize:20},"& .MuiTouchRipple-root span":{backgroundColor:e.palette.primary.main,borderRadius:3,opacity:.3}}})}))((function(e){var t=e.classes,a=e.children,n=Object(Ac.a)(e,hr);return Object(We.jsx)(kn.a,Object(p.a)(Object(p.a)({},n),{},{className:t.root,children:a}))})),pr=Object(o.b)((function(e){return{session:e.console.session,selectedTab:e.buckets.bucketDetails.selectedTab,distributedSetup:e.system.distributedSetup,loadingBucket:e.buckets.bucketDetails.loadingBucket,bucketInfo:e.buckets.bucketDetails.bucketInfo}}),{setErrorSnackMessage:ce,setBucketDetailsTab:function(e){return{type:xn,tab:e}},setBucketDetailsLoad:Sn,setBucketInfo:Cn}),Or=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)(Object(p.a)(Object(p.a)(Object(p.a)({seeMore:{marginTop:e.spacing(3)},paper:{display:"flex",overflow:"auto",flexDirection:"column"},addSideBar:{width:"320px",padding:"20px"},tableToolbar:{paddingLeft:e.spacing(2),paddingRight:e.spacing(0)},minTableHeader:{color:"#393939","& tr":{"& th":{fontWeight:"bold"}}},noRecords:{lineHeight:"24px",textAlign:"center",padding:"20px"},gridWrapper:{width:320},gridContainer:{display:"grid",gridTemplateColumns:"auto auto",gridGap:8,justifyContent:"flex-start",alignItems:"center","& div:not(.MuiCircularProgress-root)":{display:"flex",alignItems:"center"},"& div:nth-child(odd)":{justifyContent:"flex-end",fontWeight:700},"& div:nth-child(2n)":{minWidth:150}},masterActions:{width:"25%",minWidth:"120px","& div":{margin:"5px 0px"}},headerContainer:{display:"flex",justifyContent:"space-between"},capitalizeFirst:{textTransform:"capitalize","& .MuiSvgIcon-root":{width:16,height:16}},doubleElement:{display:"flex",justifyContent:"space-between"},encCheckbox:{margin:0,padding:0},tabPan:{marginTop:"5px"},fixedHeight:{height:165,minWidth:247,padding:"25px 28px","& svg":{maxHeight:18}},routerContainer:{marginTop:5},titleCol:{fontWeight:"bold"},breadcrumLink:{textDecoration:"none",color:"black"}},Ot),pt),{},{actionsTray:Object(p.a)(Object(p.a)({},pt.actionsTray),{},{padding:"15px 0 0"}),capitalize:{textTransform:"capitalize"}},At),Et),(e.spacing(4),{container:{position:"relative",maxWidth:1180,padding:"20px 35px 0","& h6":{color:"#777777",fontSize:30},"& p":{"& span:not(*[class*='smallUnit'])":{fontSize:16}}},sectionTitle:{padding:"0px",margin:"0px"},topSpacer:{height:"8px"}})))}))(pr((function(e){var t=e.classes,a=e.match,c=e.history,i=e.selectedTab,r=e.setErrorSnackMessage,o=e.setBucketDetailsTab,l=e.distributedSetup,d=e.setBucketDetailsLoad,u=e.loadingBucket,b=e.setBucketInfo,j=e.bucketInfo,h=Object(n.useState)(!1),p=Object(m.a)(h,2),O=p[0],g=p[1],x=Object(n.useState)(!1),f=Object(m.a)(x,2),v=f[0],y=f[1],S=a.params.bucketName;Object(n.useEffect)((function(){O||(d(!0),g(!0))}),[O,d,g]),Object(n.useEffect)((function(){u&&Ge.invoke("GET","/api/v1/buckets/".concat(S)).then((function(e){d(!1),b(e)})).catch((function(e){d(!1),r(e)}))}),[S,u,d,b,r]),Object(n.useEffect)((function(){var e=a.params?a.params[0]:"browse";e||(e="");var t=e.split("/");i!==t[0]&&o(t[0])}),[a,S,o,i]);var C=function(e){var t="/buckets/".concat(S);switch(e){case"events":t+="/admin/events";break;case"replication":t+="/admin/replication";break;case"lifecycle":t+="/admin/lifecycle";break;case"access":t+="/admin/access";break;case"prefix":t+="/admin/prefix";break;default:t+="/admin/summary"}o(e),c.push(t)};return Object(We.jsxs)(n.Fragment,{children:[v&&Object(We.jsx)(oc,{deleteOpen:v,selectedBucket:S,closeDeleteModalAndRefresh:function(e){!function(e){y(!1),e&&c.push("/buckets")}(e)}}),Object(We.jsx)(sc,{label:Object(We.jsx)(n.Fragment,{children:Object(We.jsx)(lc.a,{to:"/buckets",className:t.breadcrumLink,children:"Buckets"})}),actions:Object(We.jsx)(n.Fragment,{children:Object(We.jsx)(Ln.a,{title:"Browse Bucket",children:Object(We.jsx)(kn.a,{color:"primary","aria-label":"Browse Bucket",component:"span",onClick:function(){c.push("/buckets/".concat(S,"/browse"))},size:"large",children:Object(We.jsx)(Qt,{})})})})}),Object(We.jsxs)(k.a,{container:!0,className:t.container,children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ir,{icon:Object(We.jsx)(n.Fragment,{children:Object(We.jsx)(Ta,{width:40})}),title:S,subTitle:ti(null===j||void 0===j?void 0:j.allowedActions,[P],!1)&&Object(We.jsxs)(n.Fragment,{children:["Access:"," ",Object(We.jsx)("span",{className:t.capitalize,children:null===j||void 0===j?void 0:j.access.toLowerCase()})]}),actions:Object(We.jsxs)(n.Fragment,{children:[ti(null===j||void 0===j?void 0:j.allowedActions,["s3:DeleteBucket","s3:ForceDeleteBucket"])&&Object(We.jsx)(Ln.a,{title:"Delete",children:Object(We.jsx)(mr,{color:"primary","aria-label":"Delete",onClick:function(){y(!0)},size:"large",children:Object(We.jsx)(na,{})})}),Object(We.jsx)(Ln.a,{title:"Refresh",children:Object(We.jsx)(mr,{color:"primary","aria-label":"Refresh List",onClick:function(){d(!0)},size:"large",children:Object(We.jsx)(Ve,{})})})]})})}),Object(We.jsx)(k.a,{item:!0,xs:2,children:Object(We.jsxs)(fc.a,{component:"nav",dense:!0,children:[Object(We.jsx)(vc.a,{button:!0,selected:"summary"===i,onClick:function(){C("summary")},children:Object(We.jsx)(yc.a,{primary:"Summary"})}),Object(We.jsx)(vc.a,{disabled:!ti(null===j||void 0===j?void 0:j.allowedActions,[W,V]),button:!0,selected:"events"===i,onClick:function(){C("events")},children:Object(We.jsx)(yc.a,{primary:"Events"})}),Object(We.jsx)(vc.a,{button:!0,disabled:!l||!ti(null===j||void 0===j?void 0:j.allowedActions,[H,q]),selected:"replication"===i,onClick:function(){C("replication")},children:Object(We.jsx)(yc.a,{primary:"Replication"})}),Object(We.jsx)(vc.a,{button:!0,disabled:!l||!ti(null===j||void 0===j?void 0:j.allowedActions,[Y,Q]),selected:"lifecycle"===i,onClick:function(){C("lifecycle")},children:Object(We.jsx)(yc.a,{primary:"Lifecycle"})}),Object(We.jsx)(vc.a,{button:!0,disabled:!ti(null===j||void 0===j?void 0:j.allowedActions,[Z,$,J]),selected:"access"===i,onClick:function(){C("access")},children:Object(We.jsx)(yc.a,{primary:"Access Audit"})}),Object(We.jsx)(vc.a,{button:!0,disabled:!ti(null===j||void 0===j?void 0:j.allowedActions,[P]),selected:"prefix"===i,onClick:function(){C("prefix")},children:Object(We.jsx)(yc.a,{primary:"Access Rules"})})]})}),Object(We.jsx)(k.a,{item:!0,xs:10,children:Object(We.jsx)(s.c,{history:c,children:Object(We.jsxs)(s.d,{children:[Object(We.jsx)(s.b,{path:"/buckets/:bucketName/admin/summary",component:Oi}),Object(We.jsx)(s.b,{path:"/buckets/:bucketName/admin/events",component:_i}),l&&Object(We.jsx)(s.b,{path:"/buckets/:bucketName/admin/replication",component:Gi}),l&&Object(We.jsx)(s.b,{path:"/buckets/:bucketName/admin/lifecycle",component:cr}),Object(We.jsx)(s.b,{path:"/buckets/:bucketName/admin/access",component:ci}),Object(We.jsx)(s.b,{path:"/buckets/:bucketName/admin/prefix",component:jr}),Object(We.jsx)(s.b,{path:"/buckets/:bucketName",component:function(){return Object(We.jsx)(s.a,{to:"/buckets/".concat(S,"/admin/summary")})}})]})})})]})]})}))),gr="REWIND/SET_ENABLE",xr="REWIND/RESET_REWIND",fr="BUCKET_BROWSER/FILE_MODE_ENABLED",vr=function(){return{type:xr}},yr=function(e){return{type:fr,status:e}},Sr=a(721),Cr=a(169),kr=a.n(Cr),wr=a(332),Tr=a.n(wr),Nr=a(90),Er=a.n(Nr),Ar=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)(Object(p.a)({dateInput:{"&:not(:last-child)":{marginRight:22}}},lt),ut),{},{labelContainer:{display:"flex",alignItems:"center"},fieldContainer:Object(p.a)(Object(p.a)({},lt.fieldContainer),{},{display:"flex",alignItems:"center",justifyContent:"space-between",paddingBottom:10,marginTop:11,marginBottom:6}),fieldContainerBorder:{borderBottom:"#9c9c9c 1px solid",marginBottom:20},dateContainer:{height:20,textAlign:"right",color:"#848484"},dateInputContainer:{margin:"0 10px"}}))}))((function(e){var t=e.classes,a=e.id,c=e.initialDate,i=e.label,r=e.maxDays,o=e.entity,s=e.onChange,l=Object(n.useState)(7),d=Object(m.a)(l,2),u=d[0],b=d[1],j=Object(n.useState)(0),h=Object(m.a)(j,2),p=h[0],O=h[1],g=Object(n.useState)(0),x=Object(m.a)(g,2),f=x[0],v=x[1],y=Object(n.useState)(!0),S=Object(m.a)(y,2),C=S[0],w=S[1],T=Object(n.useState)(Er()()),N=Object(m.a)(T,2),E=N[0],A=N[1];Object(n.useEffect)((function(){A(function(e,t,a,n){return Er()(e).add(t,"days").add(a,"hours").add(n,"minutes")}(c,u,p,f))}),[c,u,p,f]),Object(n.useEffect)((function(){C?s(E.format("YYYY-MM-DDTHH:mm:ss"),!0):s("0000-00-00",!1)}),[E,s,C]),Object(n.useEffect)((function(){var e=!0;(u<0||r&&u>r||isNaN(u))&&(e=!1),(p<0||p>23||isNaN(p))&&(e=!1),(f<0||f>59||isNaN(f))&&(e=!1),!r||u!==r||0===p&&0===f||(e=!1),w(e)}),[E,r,s,u,p,f]);var _={style:{textAlign:"center",paddingRight:10,paddingLeft:10,width:25},className:"removeArrows"};return Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(k.a,{item:!0,xs:12,className:t.fieldContainer,children:Object(We.jsxs)(k.a,{container:!0,alignItems:"center",justifyContent:"center",children:[Object(We.jsx)(k.a,{item:!0,xs:12,className:t.labelContainer,children:Object(We.jsx)(Dn.a,{htmlFor:a,className:t.inputLabel,children:Object(We.jsx)("span",{children:i})})}),Object(We.jsx)(k.a,{item:!0,className:t.dateInputContainer,children:Object(We.jsx)(Pn,{id:a,type:"number",min:"0",max:r?r.toString():"999",label:"Days",name:a,onChange:function(e){b(parseInt(e.target.value))},value:u.toString(),extraInputProps:_,noLabelMinWidth:!0})}),Object(We.jsx)(k.a,{item:!0,className:t.dateInputContainer,children:Object(We.jsx)(Pn,{id:a,type:"number",min:"0",max:"23",label:"Hours",name:a,onChange:function(e){O(parseInt(e.target.value))},value:p.toString(),extraInputProps:_,noLabelMinWidth:!0})}),Object(We.jsx)(k.a,{item:!0,className:t.dateInputContainer,children:Object(We.jsx)(Pn,{id:a,type:"number",min:"0",max:"59",label:"Minutes",name:a,onChange:function(e){v(parseInt(e.target.value))},value:f.toString(),extraInputProps:_,noLabelMinWidth:!0})})]})}),Object(We.jsx)(k.a,{container:!0,children:Object(We.jsx)(k.a,{item:!0,xs:12,className:t.dateContainer,children:C&&Object(We.jsxs)(n.Fragment,{children:[Object(We.jsxs)("strong",{children:[o," will be available until:"]})," ",E.format("MM/DD/YYYY HH:mm:ss")]})})}),Object(We.jsx)("br",{})]})})),_r=Object(o.b)((function(e){var t=e.system;return{distributedSetup:be()(t,"distributedSetup",!1)}}),{setModalSnackMessage:ie,setModalErrorSnackMessage:re}),Ir=Object(y.a)((function(e){return Object(f.a)(Object(p.a)({copyButtonContainer:{paddingLeft:16},modalContent:{paddingBottom:53}},dt))}))(_r((function(e){var t=e.classes,a=e.open,i=e.closeModalAndRefresh,r=e.bucketName,o=e.dataObject,s=e.distributedSetup,l=e.setModalSnackMessage,d=e.setModalErrorSnackMessage,u=Object(n.useState)(""),b=Object(m.a)(u,2),j=b[0],h=b[1],p=Object(n.useState)(!0),g=Object(m.a)(p,2),x=g[0],f=g[1],v=Object(n.useState)(!1),y=Object(m.a)(v,2),C=y[0],w=y[1],T=Object(n.useState)(""),N=Object(m.a)(T,2),E=N[0],A=N[1],_=Object(n.useState)(!0),I=Object(m.a)(_,2),M=I[0],z=I[1],D=Object(n.useState)("null"),L=Object(m.a)(D,2),F=L[0],R=L[1],P=new Date;return Object(n.useEffect)((function(){if(void 0===o.version_id)return s?(Ge.invoke("GET","/api/v1/buckets/".concat(r,"/objects?prefix=").concat(Be(o.name)).concat(s?"&with_versions=true":"")).then((function(e){var t=be()(e,"objects",[]).find((function(e){return e.is_latest}));R(t?t.version_id:"null")})).catch((function(e){d(e)})),void f(!1)):(R("null"),void f(!1));R(o.version_id||"null"),f(!1)}),[r,o,s,d]),Object(n.useEffect)((function(){if(M&&!x){w(!0),h("");var e=new Date("".concat(E)),t=new Date,a=e.getTime()-t.getTime();a>0&&Ge.invoke("GET","/api/v1/buckets/".concat(r,"/objects/share?prefix=").concat(Be(o.name),"&version_id=").concat(F).concat(""!==E?"&expires=".concat(a,"ms"):"")).then((function(e){h(e),w(!1)})).catch((function(e){d(e),h(""),w(!1)}))}}),[o,E,r,M,h,d,s,x,F]),Object(We.jsx)(c.a.Fragment,{children:Object(We.jsx)(zn,{title:"Share File",modalOpen:a,onClose:function(){i()},children:Object(We.jsxs)(k.a,{container:!0,className:t.modalContent,children:[x&&Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(O.a,{})}),!x&&Object(We.jsxs)(n.Fragment,{children:[Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.moduleDescription,children:["This module generates a temporary URL with integrated access credentials for sharing objects for up to 7 days.",Object(We.jsx)("br",{}),"The temporary URL expires after the configured time limit."]}),Object(We.jsx)(k.a,{item:!0,xs:12,className:t.dateContainer,children:Object(We.jsx)(Ar,{initialDate:P,id:"date",label:"Active for",maxDays:7,onChange:function(e,t){z(t),t?A(e):(A(""),h(""))},entity:"Link"})}),Object(We.jsxs)(k.a,{container:!0,item:!0,xs:12,children:[Object(We.jsx)(k.a,{item:!0,xs:10,children:Object(We.jsx)(gc,{content:j})}),Object(We.jsx)(k.a,{item:!0,xs:2,className:t.copyButtonContainer,children:Object(We.jsx)(Tr.a,{text:j,children:Object(We.jsx)(S.a,{variant:"contained",color:"primary",startIcon:Object(We.jsx)(la,{}),onClick:function(){l("Share URL Copied to clipboard")},disabled:""===j||C,children:"Copy"})})})]})]})]})})})}))),Mr=function(e,t,a){var n=document.createElement("a");document.body.appendChild(n);var c="/api/v1/buckets/".concat(e,"/objects/download?prefix=").concat(t);a&&(c=c.concat("&version_id=".concat(a))),window.location.href=c},zr=function(e){var t=e.split(".").pop();return t?(t=t.toLowerCase(),["jif","jfif","apng","avif","svg","webp","bmp","ico","jpg","jpe","jpeg","gif","png","heic"].includes(t)?"image":["pdf","txt"].includes(t)?"text":["wav","mp3","alac","aiff","dsd","pcm"].includes(t)?"audio":["mp4","avi","mpg","webm","mov","flv","mkv","wmv","avchd","mpeg-4"].includes(t)?"video":"none"):"none"},Dr={setModalErrorSnackMessage:re},Lr=Object(o.b)(null,Dr),Fr=Object(y.a)((function(e){return Object(f.a)(Object(p.a)({objectName:{fontSize:18,fontWeight:700,marginBottom:40},buttonContainer:{textAlign:"right"}},dt))}))(Lr((function(e){var t=e.classes,a=e.open,c=e.closeModalAndRefresh,i=e.objectName,r=e.objectInfo,o=e.bucketName,s=e.setModalErrorSnackMessage,l=Object(n.useState)(!0),d=Object(m.a)(l,2),u=d[0],b=d[1],j=Object(n.useState)(""),h=Object(m.a)(j,2),p=h[0],O=h[1],g=Object(n.useState)(""),x=Object(m.a)(g,2),f=x[0],v=x[1],y=Object(n.useState)(!1),C=Object(m.a)(y,2),w=C[0],T=C[1],N=Object(n.useState)(!1),E=Object(m.a)(N,2),A=E[0],_=E[1],I=Object(n.useState)(!1),M=Object(m.a)(I,2),z=M[0],D=M[1];Object(n.useEffect)((function(){if(r.retention_mode&&(O(r.retention_mode.toLowerCase()),D(!0)),r.retention_until_date){var e=new Date(r.retention_until_date);if("Invalid Date"!==e.toString()){var t=e.getFullYear(),a=(c=e.getMonth()+1)<10?"0".concat(c):"".concat(c),n=e.getDate();isNaN(n)||"NaN"===a||isNaN(t)||v("".concat(t,"-").concat(a,"-").concat(n))}D(!0)}var c}),[r]);var L=Object(n.useRef)(null),F=function(){b(!1),O(""),L.current&&L.current.resetDate()},R=z&&("governance"===p||""===p);return Object(We.jsxs)(zn,{title:"Set Retention Policy",modalOpen:a,onClose:function(){F(),c(!1)},children:[Object(We.jsx)(k.a,{item:!0,xs:12,className:t.objectName,children:i}),Object(We.jsxs)("form",{noValidate:!0,autoComplete:"off",onSubmit:function(e){!function(e){e.preventDefault()}(e)},children:[R&&Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ac,{value:"status",id:"status",name:"status",checked:u,onChange:function(e){b(!u)},label:"Status",indicatorLabels:["Enabled","Disabled"]})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)($n,{currentSelection:p,id:"type",name:"type",label:"Type",disableOptions:!u||z&&""!==p,onChange:function(e){O(e.target.value)},selectorOptions:[{label:"Governance",value:"governance"},{label:"Compliance",value:"compliance"}]})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(er,{id:"date",label:"Date",disableOptions:!(u&&("governance"===p||"compliance"===p)),ref:L,value:f,borderBottom:!0,onDateChange:function(e,t){T(t),t&&v(e)}})}),Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.buttonContainer,children:[Object(We.jsx)("button",{type:"button",color:"primary",className:t.clearButton,onClick:F,children:"Reset"}),Object(We.jsx)(S.a,{type:"submit",variant:"contained",color:"primary",disabled:u&&""===p||u&&!w||A,onClick:function(){_(!0);var e=r.name,t=r.version_id,a=u||"governance"!==p?"".concat(f,"T23:59:59Z"):"";u||"governance"!==p?function(e,t,a){Ge.invoke("PUT","/api/v1/buckets/".concat(o,"/objects/retention?prefix=").concat(Be(e),"&version_id=").concat(t),{expires:a,mode:p}).then((function(e){_(!1),c(!0)})).catch((function(e){s(e),_(!1)}))}(e,t,a):function(e,t){Ge.invoke("DELETE","/api/v1/buckets/".concat(o,"/objects/retention?prefix=").concat(Be(e),"&version_id=").concat(t)).then((function(){_(!1),c(!0)})).catch((function(e){s(e),_(!1)}))}(e,t)},children:"Save"})]})]})]})}))),Rr=Object(o.b)((function(e){var t=e.objectBrowser;return{rewindEnabled:be()(t,"rewind.rewindEnabled",!1),rewindDate:be()(t,"rewind.dateToRewind",null)}}),null),Pr=Object(y.a)((function(e){return Object(f.a)(Object(p.a)({},xt))}))(Rr((function(e){var t=e.classes,a=e.bucketName,n=e.internalPaths,i=(e.rewindEnabled,e.rewindDate,n);""!==n&&(i="/".concat(n));var r=i.split("/").filter((function(e){return""!==e})),o=r.map((function(e,t){var n=r.slice(0,t+1).join("/"),i="/buckets/".concat(a,"/browse/").concat(n?"".concat(Be(n)):"");return Object(We.jsxs)(c.a.Fragment,{children:[Object(We.jsx)(lc.a,{to:i,children:e}),t<r.length-1&&Object(We.jsx)("span",{children:" / "})]},"breadcrumbs-".concat(t.toString()))}));return Object(We.jsxs)(c.a.Fragment,{children:[!1,Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.breadcrumbs,children:[Object(We.jsxs)(c.a.Fragment,{children:[Object(We.jsx)(lc.a,{to:"/buckets/".concat(a,"/browse"),children:a}),o.length>0&&Object(We.jsx)("span",{children:" / "})]}),o]})]})}))),Br={setErrorSnackMessage:ce},Ur=Object(o.b)(null,Br)((function(e){var t=e.closeDeleteModalAndRefresh,a=e.deleteOpen,c=e.selectedBucket,i=e.selectedObject,r=e.setErrorSnackMessage,o=Object(n.useState)(!1),s=Object(m.a)(o,2),l=s[0],d=s[1];return Object(We.jsxs)(wn.a,{open:a,onClose:function(){t(!1)},"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[Object(We.jsx)(Tn.a,{id:"alert-dialog-title",children:"Delete"}),Object(We.jsxs)(Nn.a,{children:[l&&Object(We.jsx)(O.a,{}),Object(We.jsxs)(cc.a,{id:"alert-dialog-description",children:["Are you sure you want to delete:"," ",Object(We.jsx)("b",{children:Ue(i)}),"?"," "]})]}),Object(We.jsxs)(ic.a,{children:[Object(We.jsx)(S.a,{onClick:function(){t(!1)},color:"primary",disabled:l,children:"Cancel"}),Object(We.jsx)(S.a,{onClick:function(){!function(){if(!l){var e=Ue(i).endsWith("/");Ge.invoke("DELETE","/api/v1/buckets/".concat(c,"/objects?path=").concat(i,"&recursive=").concat(e)).then((function(){d(!1),t(!0)})).catch((function(e){d(!1),r(e)}))}}()},color:"secondary",disabled:l,children:"Delete"})]})]})})),Gr={setModalErrorSnackMessage:re},Kr=Object(o.b)((function(e){var t=e.system;return{distributedSetup:be()(t,"distributedSetup",!1)}}),Gr),Wr=Object(y.a)((function(e){return Object(f.a)(Object(p.a)({buttonContainer:{textAlign:"right"},pathLabel:{marginTop:0,marginBottom:32}},dt))}))(Kr((function(e){var t=e.modalOpen,a=e.currentTags,i=e.selectedObject,r=e.onCloseAndUpdate,o=e.bucketName,s=e.versionId,l=e.distributedSetup,d=e.setModalErrorSnackMessage,u=e.classes,b=Object(n.useState)(""),j=Object(m.a)(b,2),h=j[0],O=j[1],g=Object(n.useState)(""),x=Object(m.a)(g,2),f=x[0],v=x[1],y=Object(n.useState)(!1),C=Object(m.a)(y,2),w=C[0],T=C[1];return Object(We.jsx)(c.a.Fragment,{children:Object(We.jsx)(zn,{modalOpen:t,title:"Add New Tag",onClose:function(){r(!1)},children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsxs)("h3",{className:u.pathLabel,children:["Selected Object: ",Ue(i)]}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{value:h,label:"New Tag Key",id:"newTagKey",name:"newTagKey",placeholder:"Enter New Tag Key",onChange:function(e){O(e.target.value)}})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{value:f,label:"New Tag Label",id:"newTagLabel",name:"newTagLabel",placeholder:"Enter New Tag Label",onChange:function(e){v(e.target.value)}})}),Object(We.jsxs)(k.a,{item:!0,xs:12,className:u.buttonContainer,children:[Object(We.jsx)("button",{type:"button",color:"primary",className:u.clearButton,onClick:function(){v(""),O("")},children:"Clear"}),Object(We.jsx)(S.a,{type:"submit",variant:"contained",color:"primary",disabled:""===f.trim()||""===h.trim()||w,onClick:function(){T(!0);var e={};e[h]=f;var t=Object(p.a)(Object(p.a)({},a),e),n=l?s:"null";Ge.invoke("PUT","/api/v1/buckets/".concat(o,"/objects/tags?prefix=").concat(i,"&version_id=").concat(n),{tags:t}).then((function(e){T(!1),r(!0)})).catch((function(e){d(e),T(!1)}))},children:"Save"})]})]})})})}))),Vr={setErrorSnackMessage:ce},Hr=Object(o.b)((function(e){var t=e.system;return{distributedSetup:be()(t,"distributedSetup",!1)}}),Vr),qr=Object(y.a)((function(e){return Object(f.a)(Object(p.a)({buttonContainer:{textAlign:"right"},pathLabel:{marginTop:0,marginBottom:32}},dt))}))(Hr((function(e){var t=e.deleteOpen,a=e.currentTags,c=e.selectedObject,i=e.selectedTag,r=e.onCloseAndUpdate,o=e.bucketName,s=e.versionId,l=e.distributedSetup,d=e.setErrorSnackMessage,u=e.classes,b=Object(n.useState)(!1),j=Object(m.a)(b,2),h=j[0],g=j[1],x=Object(m.a)(i,2),f=x[0],v=x[1];return Object(We.jsxs)(wn.a,{open:t,onClose:function(){r(!1)},"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[Object(We.jsx)(Tn.a,{id:"alert-dialog-title",children:"Delete Tag"}),Object(We.jsxs)(Nn.a,{children:[h&&Object(We.jsx)(O.a,{}),Object(We.jsxs)(cc.a,{id:"alert-dialog-description",children:["Are you sure you want to delete the tag"," ",Object(We.jsxs)("b",{className:u.wrapText,children:[f," : ",v]})," ","from ",c,"?"]})]}),Object(We.jsxs)(ic.a,{children:[Object(We.jsx)(S.a,{onClick:function(){r(!1)},color:"primary",disabled:h,children:"Cancel"}),Object(We.jsx)(S.a,{onClick:function(){g(!0);var e=Object(p.a)({},a);delete e[f];var t=l?s:"null";Ge.invoke("PUT","/api/v1/buckets/".concat(o,"/objects/tags?prefix=").concat(Be(c),"&version_id=").concat(t),{tags:e}).then((function(e){g(!1),r(!0)})).catch((function(e){d(e),g(!1)}))},color:"secondary",autoFocus:!0,children:"Delete"})]})]})}))),Yr={setModalErrorSnackMessage:re},Qr=Object(o.b)(null,Yr),Zr=Object(y.a)((function(e){return Object(f.a)(Object(p.a)({objectName:{fontSize:18,fontWeight:700,marginBottom:40},buttonContainer:{textAlign:"right"}},dt))}))(Qr((function(e){var t=e.classes,a=e.open,c=e.closeModalAndRefresh,i=e.objectName,r=e.bucketName,o=e.actualInfo,s=e.setModalErrorSnackMessage,l=Object(n.useState)(!1),d=Object(m.a)(l,2),u=d[0],b=d[1],j=Object(n.useState)(!1),h=Object(m.a)(j,2),p=h[0],O=h[1],g=o.version_id;Object(n.useEffect)((function(){var e=be()(o,"legal_hold_status","OFF");b("ON"===e)}),[o]);var x=function(){b(!1)};return Object(We.jsxs)(zn,{title:"Set Legal Hold",modalOpen:a,onClose:function(){x(),c(!1)},children:[Object(We.jsx)(k.a,{item:!0,xs:12,className:t.objectName,children:i}),Object(We.jsxs)("form",{noValidate:!0,autoComplete:"off",onSubmit:function(e){!function(e){e.preventDefault(),O(!0),Ge.invoke("PUT","/api/v1/buckets/".concat(r,"/objects/legalhold?prefix=").concat(Be(i),"&version_id=").concat(g),{status:u?"enabled":"disabled"}).then((function(){O(!1),c(!0)})).catch((function(e){s(e),O(!1)}))}(e)},children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ac,{value:"legalhold",id:"legalhold",name:"legalhold",checked:u,onChange:function(e){b(!u)},label:"Legal Hold Status",indicatorLabels:["Enabled","Disabled"],tooltip:"To enable this feature you need to enable versioning on the bucket before creation"})}),Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.buttonContainer,children:[Object(We.jsx)("button",{type:"button",color:"primary",className:t.clearButton,onClick:x,children:"Reset"}),Object(We.jsx)(S.a,{type:"submit",variant:"contained",color:"primary",disabled:p,children:"Save"})]})]})]})}))),Jr=Object(y.a)((function(){return Object(f.a)({iframeContainer:{border:"0px",flex:"1 1 auto",width:"100%",height:250,backgroundColor:"transparent",borderRadius:5,"&.image":{height:500},"&.text":{height:500},"&.audio":{height:150},"&.video":{height:350},"&.fullHeight":{height:"calc(100vh - 185px)"}},iframeBase:{backgroundColor:"#fff"},iframeHidden:{display:"none"}})}))((function(e){var t=e.bucketName,a=e.object,c=e.isFullscreen,i=void 0!==c&&c,r=e.classes,o=Object(n.useState)(!0),s=Object(m.a)(o,2),l=s[0],d=s[1],u="";if(a){var b=Be(a.name);u="".concat(window.location.origin,"/api/v1/buckets/").concat(t,"/objects/download?preview=true&prefix=").concat(b),a.version_id&&(u=u.concat("&version_id=".concat(a.version_id)))}var j=zr((null===a||void 0===a?void 0:a.name)||"");return Object(We.jsxs)(n.Fragment,{children:[l&&Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(O.a,{})}),Object(We.jsx)("div",{className:"".concat(l?r.iframeHidden:""," iframeBase"),children:Object(We.jsx)("iframe",{src:u,title:"File Preview",allowTransparency:!0,className:"".concat(r.iframeContainer," ").concat(i?"fullHeight":j),onLoad:function(){d(!1)},children:"File couldn't be loaded. Please try Download instead"})})]})})),$r={setErrorSnackMessage:ce},Xr=Object(o.b)(null,$r),eo=Object(y.a)((function(e){return Object(f.a)(Object(p.a)({buttonContainer:{textAlign:"right"},pathLabel:{marginTop:0,marginBottom:32}},dt))}))(Xr((function(e){var t=e.classes,a=e.versionID,c=e.bucketName,i=e.objectPath,r=e.restoreOpen,o=e.onCloseAndUpdate,s=Object(n.useState)(!1),l=Object(m.a)(s,2),d=l[0],u=l[1];return Object(We.jsxs)(wn.a,{open:r,onClose:function(){o(!1)},"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[Object(We.jsx)(Tn.a,{id:"alert-dialog-title",children:"Restore File Version"}),Object(We.jsx)(Nn.a,{children:Object(We.jsxs)(cc.a,{id:"alert-dialog-description",children:["Are you sure you want to restore ",Object(We.jsx)("b",{children:i})," ",Object(We.jsx)("br",{})," with Version ID: ",Object(We.jsx)("b",{className:t.wrapText,children:a}),"?"]})}),Object(We.jsxs)(ic.a,{children:[Object(We.jsx)(S.a,{onClick:function(){o(!1)},color:"primary",disabled:d,children:"Cancel"}),Object(We.jsx)(S.a,{onClick:function(){u(!0),Ge.invoke("PUT","/api/v1/buckets/".concat(c,"/objects/restore?prefix=").concat(Be(i),"&version_id=").concat(a)).then((function(e){u(!1),o(!0)})).catch((function(e){ce(e),u(!1)}))},color:"primary",autoFocus:!0,disabled:d,children:"Restore"})]})]})}))),to={is_latest:!0,last_modified:"",legal_hold_status:"",name:"",retention_mode:"",retention_until_date:"",size:"0",tags:{},version_id:null},ao={setErrorSnackMessage:ce,setSnackBarMessage:ne},no=Object(o.b)((function(e){var t=e.objectBrowser,a=e.system;return{downloadingFiles:be()(t,"downloadingFiles",[]),rewindEnabled:be()(t,"rewind.rewindEnabled",!1),rewindDate:be()(t,"rewind.dateToRewind",null),bucketToRewind:be()(t,"rewind.bucketToRewind",""),distributedSetup:be()(a,"distributedSetup",!1)}}),ao),co=Object(s.h)(no(Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)(Object(p.a)(Object(p.a)(Object(p.a)({currentItemContainer:{marginBottom:8},objectPathContainer:{marginBottom:26,fontSize:10},objectPathLink:{"&:visited":{color:"#000"}},currentItem:{fontSize:24},propertiesContainer:{display:"flex",flexDirection:"row",marginBottom:15},propertiesItem:{display:"flex",flexDirection:"row",marginRight:21},propertiesItemBold:{fontWeight:700},propertiesValue:{marginLeft:8,textTransform:"capitalize"},propertiesIcon:{marginLeft:5},actionsIconContainer:{marginLeft:12},actionsIcon:{height:16,width:16,"& .MuiSvgIcon-root":{height:16}},tagsContainer:{display:"flex",flexDirection:"row",alignItems:"center",marginBottom:15},tagText:{marginRight:13},tag:{marginRight:6,fontSize:10,fontWeight:700,"&.MuiChip-sizeSmall":{height:18},"& .MuiSvgIcon-root":{height:10,width:10}},search:{marginBottom:8,"&.MuiFormControl-root":{marginRight:0}},paperContainer:{padding:15,paddingLeft:50,display:"flex"},elementTitle:{fontWeight:500,color:"#777777",fontSize:14,marginTop:-9},dualCardLeft:{paddingRight:"5px"},dualCardRight:{paddingLeft:"5px"},capitalizeFirst:{textTransform:"capitalize","& .MuiSvgIcon-root":{width:16,height:16}},titleCol:{width:"25%"},titleItem:{width:"35%"},"@global":{".progressDetails":{paddingTop:3,display:"inline-block",position:"relative",width:18,height:18},".progressDetails > .MuiCircularProgress-root":{position:"absolute",left:0,top:3}}},At),Et),pt),Ot),(e.spacing(4),{container:{position:"relative",maxWidth:1180,padding:"20px 35px 0","& h6":{color:"#777777",fontSize:30},"& p":{"& span:not(*[class*='smallUnit'])":{fontSize:16}}},sectionTitle:{padding:"0px",margin:"0px"},topSpacer:{height:"8px"}})))}))((function(e){var t=e.classes,a=e.downloadingFiles,i=(e.rewindEnabled,e.rewindDate,e.distributedSetup),r=e.match,o=(e.bucketToRewind,e.setErrorSnackMessage),s=e.setSnackBarMessage,l=Object(n.useState)(!0),d=Object(m.a)(l,2),u=d[0],b=d[1],j=Object(n.useState)(!1),p=Object(m.a)(j,2),f=p[0],v=p[1],y=Object(n.useState)(!1),S=Object(m.a)(y,2),w=S[0],T=S[1],N=Object(n.useState)(!1),E=Object(m.a)(N,2),A=E[0],_=E[1],I=Object(n.useState)(!1),M=Object(m.a)(I,2),z=M[0],D=M[1],L=Object(n.useState)(["",""]),F=Object(m.a)(L,2),R=F[0],P=F[1],B=Object(n.useState)(!1),W=Object(m.a)(B,2),V=W[0],H=W[1],q=Object(n.useState)(null),Y=Object(m.a)(q,2),Q=Y[0],Z=Y[1],J=Object(n.useState)(null),$=Object(m.a)(J,2),X=$[0],ee=$[1],te=Object(n.useState)([]),ae=Object(m.a)(te,2),ne=ae[0],ce=ae[1],ie=Object(n.useState)(""),re=Object(m.a)(ie,2),oe=re[0],se=re[1],le=Object(n.useState)(!1),de=Object(m.a)(le,2),ue=de[0],je=de[1],he=Object(n.useState)(!0),me=Object(m.a)(he,2),pe=me[0],Oe=me[1],ge=Object(n.useState)({}),xe=Object(m.a)(ge,2),fe=xe[0],ve=xe[1],ye=Object(n.useState)(0),Se=Object(m.a)(ye,2),Ce=Se[0],ke=Se[1],we=Object(n.useState)(!1),Te=Object(m.a)(we,2),Ne=Te[0],Ee=Te[1],Ae=Object(n.useState)(null),_e=Object(m.a)(Ae,2),Ie=_e[0],Me=_e[1],ze=Object(n.useState)(!1),De=Object(m.a)(ze,2),Le=De[0],Fe=De[1],Re=Object(n.useState)(""),Pe=Object(m.a)(Re,2),Ke=Pe[0],Ve=Pe[1],He=be()(r.params,"subpaths",""),qe=Ue(He)||"",Ye=r.params.bucketName,Qe=qe.split("/"),Ze=Qe.pop()||"",$e=[];Q&&($e=Q.name.split("/"));var Xe=ti(null===Ie||void 0===Ie?void 0:Ie.allowedActions,["s3:GetObjectLegalHold"]),et=ti(null===Ie||void 0===Ie?void 0:Ie.allowedActions,["s3:PutObjectLegalHold"],!0),tt=ti(null===Ie||void 0===Ie?void 0:Ie.allowedActions,[G]),at=ti(null===Ie||void 0===Ie?void 0:Ie.allowedActions,[K],!0),nt=ti(null===Ie||void 0===Ie?void 0:Ie.allowedActions,["s3:GetObjectTagging"]),ct=ti(null===Ie||void 0===Ie?void 0:Ie.allowedActions,["s3:PutObjectTagging"],!0),it=ti(null===Ie||void 0===Ie?void 0:Ie.allowedActions,["s3:DeleteObjectTagging"],!0),rt=ti(null===Ie||void 0===Ie?void 0:Ie.allowedActions,[U],!0);Object(n.useEffect)((function(){Ne||(Ee(!0),Ge.invoke("GET","/api/v1/buckets/".concat(Ye)).then((function(e){Me(e)})).catch((function(e){Ee(!1),o(e)})))}),[Ye,Ne,Me,o]),Object(n.useEffect)((function(){u&&Ge.invoke("GET","/api/v1/buckets/".concat(Ye,"/objects?prefix=").concat(He).concat(i?"&with_versions=true":"")).then((function(e){var t=be()(e,"objects",[]);i?(Z(t.find((function(e){return e.is_latest}))||to),ce(t)):(Z(t[0]),ce([])),b(!1)})).catch((function(e){o(e),b(!1)}))}),[u,Ye,He,o,i]),Object(n.useEffect)((function(){pe&&Ge.invoke("GET","/api/v1/buckets/".concat(Ye,"/objects?prefix=").concat(He,"&with_metadata=true")).then((function(e){var t=e.objects[0],a=be()(t,"user_metadata",{});ve(a),Oe(!1)})).catch((function(e){Oe(!1)}))}),[Ye,pe,He]);var ot=[];Q&&Q.tags&&(ot=Object.keys(Q.tags));var st=function(){v(!0)},lt=function(e){e.size&&parseInt(e.size)>104857600&&s("Download process started, it may take a few moments to complete"),Mr(Ye,He,e.version_id)},dt=[{type:"share",onClick:function(e){ee(e),st()},sendOnlyId:!1,disableButtonFunction:function(e){var t=ne.find((function(t){return t.version_id===e}));return!(!t||!t.is_delete_marker)}},{type:"download",onClick:function(e){lt(e)},disableButtonFunction:function(e){var t=ne.find((function(t){return t.version_id===e}));return!(!t||!t.is_delete_marker)}},{type:"restore",onClick:function(e){Ve(e.version_id||""),Fe(!0)},disableButtonFunction:function(e){return!i}}],ut=ne.filter((function(e){return!!e.version_id&&e.version_id.includes(oe)}));return Object(We.jsxs)(c.a.Fragment,{children:[f&&Q&&Object(We.jsx)(Ir,{open:f,closeModalAndRefresh:function(){ee(null),v(!1)},bucketName:Ye,dataObject:X||Q}),w&&Q&&Object(We.jsx)(Fr,{open:w,closeModalAndRefresh:function(e){T(!1),e&&b(!0)},objectName:Ze,objectInfo:Q,bucketName:Ye}),ue&&Object(We.jsx)(Ur,{deleteOpen:ue,selectedBucket:Ye,selectedObject:He,closeDeleteModalAndRefresh:function(e){if(je(!1),e){var t=Qe.join("/");h.push("/buckets/".concat(Ye,"/browse").concat(""===t?"":"/".concat(Be(t))))}}}),A&&Q&&Object(We.jsx)(Wr,{modalOpen:A,currentTags:Q.tags,selectedObject:He,versionId:Q.version_id,bucketName:Ye,onCloseAndUpdate:function(e){_(!1),e&&b(!0)}}),z&&Q&&Object(We.jsx)(qr,{deleteOpen:z,currentTags:Q.tags,selectedObject:Q.name,versionId:Q.version_id,bucketName:Ye,onCloseAndUpdate:function(e){D(!1),e&&b(!0)},selectedTag:R}),V&&Q&&Object(We.jsx)(Zr,{open:V,closeModalAndRefresh:function(e){H(!1),e&&b(!0)},objectName:Q.name,bucketName:Ye,actualInfo:Q}),Le&&Q&&Object(We.jsx)(eo,{restoreOpen:Le,bucketName:Ye,versionID:Ke,objectPath:Q.name,onCloseAndUpdate:function(e){Fe(!1),Ve(""),e&&(b(!0),Oe(!0))}}),Object(We.jsxs)(k.a,{container:!0,children:[!Q&&Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(O.a,{})}),Q&&Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ir,{icon:Object(We.jsx)(n.Fragment,{children:Object(We.jsx)(Na,{width:40})}),title:$e.length>0?$e[$e.length-1]:Q.name,subTitle:Object(We.jsx)(n.Fragment,{children:Object(We.jsx)(Pr,{bucketName:Ye,internalPaths:Q.name})}),actions:Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(Ln.a,{title:"Share",children:Object(We.jsx)(kn.a,{color:"primary","aria-label":"share",onClick:function(){st()},disabled:Q.is_delete_marker,size:"large",children:Object(We.jsx)(Yt,{})})}),a.includes("".concat(Ye,"/").concat(Q.name))?Object(We.jsx)("div",{className:"progressDetails",children:Object(We.jsx)(g.a,{color:"primary",size:17,variant:"indeterminate"})}):Object(We.jsx)(Ln.a,{title:"Download",children:Object(We.jsx)(kn.a,{color:"primary","aria-label":"download",onClick:function(){lt(Q)},disabled:Q.is_delete_marker,size:"large",children:Object(We.jsx)(va,{})})}),rt&&Object(We.jsx)(Ln.a,{title:"Delete Object",children:Object(We.jsx)(kn.a,{color:"primary","aria-label":"delete",onClick:function(){je(!0)},disabled:Q.is_delete_marker,size:"large",children:Object(We.jsx)(na,{})})})]})})}),Object(We.jsx)(k.a,{item:!0,xs:2,children:Object(We.jsxs)(fc.a,{component:"nav",dense:!0,children:[Object(We.jsx)(vc.a,{button:!0,selected:0===Ce,onClick:function(){ke(0)},children:Object(We.jsx)(yc.a,{primary:"Details"})}),Object(We.jsx)(vc.a,{button:!0,selected:1===Ce,onClick:function(){ke(1)},disabled:!(Q.version_id&&"null"!==Q.version_id),children:Object(We.jsx)(yc.a,{primary:"Versions"})}),Object(We.jsx)(vc.a,{button:!0,selected:2===Ce,onClick:function(){ke(2)},disabled:"none"===zr(Ze),children:Object(We.jsx)(yc.a,{primary:"Preview"})})]})}),Object(We.jsx)(k.a,{item:!0,xs:10,children:Object(We.jsxs)(k.a,{item:!0,xs:12,children:[Object(We.jsxs)(Ic,{index:0,value:Ce,children:[Object(We.jsx)("div",{className:t.actionsTray,children:Object(We.jsx)("h1",{className:t.sectionTitle,children:"Details"})}),Object(We.jsx)("br",{}),(Xe||tt||nt)&&Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(x.a,{className:t.paperContainer,children:Object(We.jsx)(k.a,{container:!0,children:Object(We.jsx)(k.a,{item:!0,xs:10,children:Object(We.jsx)("table",{width:"100%",children:Object(We.jsxs)("tbody",{children:[Xe&&Object(We.jsxs)("tr",{children:[Object(We.jsx)("td",{className:t.titleCol,children:"Legal Hold:"}),Object(We.jsx)("td",{className:t.capitalizeFirst,children:Q.version_id&&"null"!==Q.version_id?Object(We.jsxs)(n.Fragment,{children:[Q.legal_hold_status?Q.legal_hold_status.toLowerCase():"Off",et&&Object(We.jsx)(kn.a,{color:"primary","aria-label":"legal-hold",size:"small",className:t.propertiesIcon,onClick:function(){H(!0)},children:Object(We.jsx)(Zt,{})})]}):"Disabled"})]}),tt&&Object(We.jsxs)("tr",{children:[Object(We.jsx)("td",{className:t.titleCol,children:"Retention:"}),Object(We.jsxs)("td",{className:t.capitalizeFirst,children:[Q.retention_mode?Q.retention_mode.toLowerCase():"None",at&&Object(We.jsx)(kn.a,{color:"primary","aria-label":"retention",size:"small",className:t.propertiesIcon,onClick:function(){T(!0)},children:Object(We.jsx)(Zt,{})})]})]}),nt&&Object(We.jsxs)("tr",{children:[Object(We.jsx)("td",{className:t.titleCol,children:"Tags:"}),Object(We.jsxs)("td",{children:[ot&&ot.map((function(e,a){var n=be()(Q,"tags.".concat(e),"");return""!==n?it?Object(We.jsx)(Sr.a,{className:t.tag,size:"small",label:"".concat(e," : ").concat(n),color:"primary",deleteIcon:Object(We.jsx)(Je.a,{}),onDelete:function(){!function(e,t){P([e,t]),D(!0)}(e,n)}},"chip-".concat(a)):Object(We.jsx)(Sr.a,{className:t.tag,size:"small",label:"".concat(e," : ").concat(n),color:"primary"},"chip-".concat(a)):null})),ct&&Object(We.jsx)(Sr.a,{className:t.tag,icon:Object(We.jsx)(kr.a,{}),clickable:!0,size:"small",label:"Add tag",color:"primary",variant:"outlined",onClick:function(){_(!0)}})]})]})]})})})})}),Object(We.jsx)("br",{})]}),Object(We.jsx)(x.a,{className:t.paperContainer,children:Object(We.jsxs)(k.a,{item:!0,xs:12,children:[Object(We.jsxs)(k.a,{item:!0,xs:12,children:[Object(We.jsx)("h2",{children:"Object Metadata"}),Object(We.jsx)("hr",{className:t.hr})]}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Si.a,{className:t.table,"aria-label":"simple table",children:Object(We.jsx)(yi.a,{children:Object.keys(fe).map((function(e,a){return Object(We.jsxs)(fi.a,{children:[Object(We.jsx)(vi.a,{component:"th",scope:"row",className:t.titleItem,children:e}),Object(We.jsx)(vi.a,{align:"right",children:fe[e]})]},"tRow-".concat(a.toString()))}))})})})]})})]}),Object(We.jsx)(Ic,{index:1,value:Ce,children:Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)("div",{className:t.actionsTray,children:Object(We.jsx)("h1",{className:t.sectionTitle,children:"Versions"})}),Object(We.jsx)("br",{}),Object(We.jsx)(k.a,{item:!0,xs:12,className:t.actionsTray,children:Q.version_id&&"null"!==Q.version_id&&Object(We.jsx)(C.a,{placeholder:"Search ".concat(Ze),className:Object(Hn.a)(t.search,t.searchField),id:"search-resource",label:"",onChange:function(e){se(e.target.value)},InputProps:{disableUnderline:!0,startAdornment:Object(We.jsx)(Wt.a,{position:"start",children:Object(We.jsx)(Jt,{})})},variant:"standard"})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Q.version_id&&"null"!==Q.version_id&&Object(We.jsx)(ei,{itemActions:dt,columns:[{label:"",width:40,renderFullObject:!0,renderFunction:function(e){var t=ne.length-ne.indexOf(e);return"v".concat(t)},elementKey:"version_id"},{label:"Version ID",elementKey:"version_id"},{label:"Last Modified",elementKey:"last_modified",renderFunction:function(e){return Object(We.jsx)(Wi.a,{children:e})}},{label:"Deleted",width:60,contentTextAlign:"center",renderFullObject:!0,elementKey:"is_delete_marker",renderFunction:function(e){var t=e.is_delete_marker?"Yes":"No";return"".concat(t)}}],isLoading:!1,entityName:"Versions",idField:"version_id",records:ut,textSelectable:!0})})]})}),Object(We.jsx)(Ic,{index:2,value:Ce,children:2===Ce&&Q&&Object(We.jsx)(Jr,{bucketName:Ye,object:{name:Q.name,version_id:Q.version_id||"null",size:parseInt(Q.size||"0"),content_type:"",last_modified:new Date(Q.last_modified)},isFullscreen:!0})})]})})]})]})]})})))),io=a(43),ro=a(715),oo={setFileModeEnabled:yr},so=Object(o.b)(null,oo)(Object(y.a)((function(e){return Object(f.a)(Object(p.a)({buttonContainer:{textAlign:"right"},pathLabel:{marginTop:0,marginBottom:32}},dt))}))((function(e){var t=e.modalOpen,a=e.folderName,i=e.bucketName,r=e.onClose,o=e.setFileModeEnabled,s=e.classes,l=Object(n.useState)(""),d=Object(m.a)(l,2),u=d[0],b=d[1],j=Object(n.useState)(!1),p=Object(m.a)(j,2),O=p[0],g=p[1],x="".concat(i,"/").concat(Ue(a));return Object(n.useEffect)((function(){var e=!0;0===u.trim().length&&(e=!1),g(e)}),[u]),Object(We.jsx)(c.a.Fragment,{children:Object(We.jsx)(zn,{modalOpen:t,title:"Choose or create a new path",onClose:r,children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsxs)("h3",{className:s.pathLabel,children:["Current Path: ",x]}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{value:u,label:"New Folder Path",id:"folderPath",name:"folderPath",placeholder:"Enter the new Folder Path",onChange:function(e){b(e.target.value)},required:!0})}),Object(We.jsxs)(k.a,{item:!0,xs:12,className:s.buttonContainer,children:[Object(We.jsx)("button",{type:"button",color:"primary",className:s.clearButton,onClick:function(){b("")},children:"Clear"}),Object(We.jsx)(S.a,{type:"submit",variant:"contained",color:"primary",disabled:!O,onClick:function(){var e="";if(""!==a){var t=Ue(a);e=t.endsWith("/")?t:"".concat(t,"/")}var n="/buckets/".concat(i,"/browse/").concat(Be("".concat(e).concat(u)),"/");h.push(n),o(!1),r()},children:"Go"})]})]})})})}))),lo=a(700),uo=a(687),bo=a(686),jo=a(208),ho=a.n(jo),mo=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)({dateSelectorOverride:{height:40,border:"#EAEDEE 1px solid",marginLeft:15,backgroundColor:"#fff",padding:"0 16px",borderRadius:5,"&.MuiInput-underline:hover:not(.Mui-disabled):before":{borderBottom:0},"&:hover":{borderColor:"#000","&:before, &:after":{borderColor:"transparent",borderBottom:0}},"&:before, &:after":{borderColor:"transparent",borderBottom:0},"& input":{fontSize:12,fontWeight:600,color:"#393939"}},dateSelectorFilterOverride:{width:180,height:42,marginLeft:20,padding:0,borderRadius:5,"&.MuiInput-underline:hover:not(.Mui-disabled):before":{borderBottom:0},"&:hover":{"&:before, &:after":{borderColor:"transparent",borderBottom:0}},"&:before, &:after":{borderColor:"transparent",borderBottom:0},"& input":{fontSize:12,fontWeight:"bold",color:"#081C42"}},dateSelectorFormOverride:{width:"100%",maxWidth:840},parentDateOverride:{flexGrow:1},textBoxContainer:{flexGrow:1},textBoxWithIcon:{position:"relative",paddingRight:25},openListIcon:{color:"#9D9E9D",width:8,marginTop:2}},lt),ut))}))((function(e){var t=e.value,a=e.onChange,c=e.classes,i=e.forSearchBlock,r=void 0!==i&&i,o=e.forFilterContained,s=void 0!==o&&o,l=e.label,d=e.tooltip,u=void 0===d?"":d,b=e.required,j=e.id,h=e.disabled,m=void 0!==h&&h,O=e.noInputIcon,g={};void 0!==O&&O||(g={startAdornment:Object(We.jsx)(Wt.a,{position:"start",children:Object(We.jsx)(ho.a,{})})}),s&&(g={endAdornment:Object(We.jsx)(Wt.a,{position:"end",children:Object(We.jsx)(nn,{className:c.openListIcon})})});var x="";r?x=c.dateSelectorOverride:s&&(x=c.dateSelectorFilterOverride);var f=Object(We.jsx)(bo.b,{dateAdapter:uo.a,children:Object(We.jsx)(lo.a,{value:t,onChange:a,InputProps:Object(p.a)(Object(p.a)({},g),{},{className:x}),label:"",className:r?c.parentDateOverride:c.dateSelectorFormOverride,disabled:m,renderInput:function(e){return Object(We.jsx)(C.a,Object(p.a)(Object(p.a)({id:j,variant:"standard"},e),{},{disabled:!0}))},ampm:!1})});return r?f:Object(We.jsx)(n.Fragment,{children:Object(We.jsxs)(k.a,{item:!0,xs:12,className:s?"":c.fieldContainer,children:[""!==l&&Object(We.jsxs)(Dn.a,{htmlFor:j,className:c.inputLabel,children:[Object(We.jsxs)("span",{children:[l,b?"*":""]}),""!==u&&Object(We.jsx)("div",{className:c.tooltipContainer,children:Object(We.jsx)(Ln.a,{title:u,placement:"top-start",children:Object(We.jsx)("div",{children:Object(We.jsx)(oa,{className:c.tooltip})})})})]}),Object(We.jsx)("div",{className:c.textBoxContainer,children:f})]})})})),po={resetRewind:vr,setRewindEnable:function(e,t,a){return{type:gr,state:e,bucket:t,dateRewind:a}}},Oo=Object(o.b)((function(e){var t=e.objectBrowser;return{bucketToRewind:t.rewind.bucketToRewind,rewindEnabled:t.rewind.rewindEnabled,dateRewind:t.rewind.dateToRewind}}),po),go=Object(y.a)((function(e){return Object(f.a)(Object(p.a)({buttonContainer:{textAlign:"right"}},dt))}))(Oo((function(e){var t=e.closeModalAndRefresh,a=e.classes,c=e.open,i=e.bucketName,r=(e.bucketToRewind,e.rewindEnabled),o=e.dateRewind,s=e.resetRewind,l=e.setRewindEnable,d=Object(n.useState)(!1),u=Object(m.a)(d,2),b=u[0],j=u[1],h=Object(n.useState)(!0),p=Object(m.a)(h,2),g=p[0],x=p[1],f=Object(n.useState)(null),v=Object(m.a)(f,2),y=v[0],C=v[1];Object(n.useEffect)((function(){r&&(x(!0),C(new Date(o)))}),[r,o]);return Object(We.jsxs)(zn,{modalOpen:c,onClose:function(){t(!1)},title:"Rewind - ".concat(i),children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(mo,{value:y,onChange:C,id:"rewind-selector",label:"Rewind to",disabled:!g})}),Object(We.jsxs)(k.a,{container:!0,children:[r&&Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ac,{value:"status",id:"status",name:"status",checked:g,onChange:function(e){x(e.target.checked)},label:"Current Status",indicatorLabels:["Enabled","Disabled"]})}),Object(We.jsx)(k.a,{item:!0,xs:12,className:a.buttonContainer,children:Object(We.jsx)(S.a,{type:"button",variant:"contained",color:"primary",disabled:b||!y&&g,onClick:function(){!g&&r?s():(j(!0),l(!0,i,y)),t(!0)},children:!g&&r?"Show Current Data":"Show Rewind Data"})}),b&&Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(O.a,{})})]})]})}))),xo=a(170),fo=a.n(xo),vo={setErrorSnackMessage:ce},yo=Object(o.b)(null,vo)((function(e){var t=e.closeDeleteModalAndRefresh,a=e.deleteOpen,c=e.selectedBucket,i=e.selectedObjects,r=e.setErrorSnackMessage,o=Object(n.useState)(!1),s=Object(m.a)(o,2),l=s[0],d=s[1];return Object(We.jsxs)(wn.a,{open:a,onClose:function(){t(!1)},"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[Object(We.jsx)(Tn.a,{id:"alert-dialog-title",children:"Delete"}),Object(We.jsxs)(Nn.a,{children:[l&&Object(We.jsx)(O.a,{}),Object(We.jsxs)(cc.a,{id:"alert-dialog-description",children:["Are you sure you want to delete the selected objects?"," "]})]}),Object(We.jsxs)(ic.a,{children:[Object(We.jsx)(S.a,{onClick:function(){t(!1)},color:"primary",disabled:l,children:"Cancel"}),Object(We.jsx)(S.a,{onClick:function(){!function(){if(!l){for(var e=[],a=0;a<i.length;a++)i[a].endsWith("/")?e.push({path:i[a],versionID:"",recursive:!0}):e.push({path:i[a],versionID:"",recursive:!1});d(!0),Ge.invoke("POST","/api/v1/buckets/".concat(c,"/delete-objects"),e).then((function(){d(!1),t(!0)})).catch((function(e){d(!1),r(e)}))}}()},color:"secondary",disabled:l,children:"Delete"})]})]})})),So=function(e){var t=e.open,a=e.bucketName,c=e.object,i=e.onClosePreview;return Object(We.jsx)(n.Fragment,{children:Object(We.jsx)(zn,{modalOpen:t,title:"Preview - ".concat(null===c||void 0===c?void 0:c.name),onClose:i,children:Object(We.jsx)(Jr,{bucketName:a,object:c})})})},Co={backgroundRepeat:"no-repeat",backgroundPosition:"center center",width:16,minWidth:16,height:40,marginRight:10};var ko=Object(We.jsx)(w.a,{component:"h3",children:"Loading..."}),wo={setLoadingProgress:function(e){return{type:I,loadingProgress:e}},setSnackBarMessage:ne,setErrorSnackMessage:ce,setFileModeEnabled:yr,resetRewind:vr,setBucketDetailsLoad:Sn,setBucketInfo:Cn},To=Object(o.b)((function(e){var t=e.objectBrowser,a=e.buckets;return{routesList:be()(t,"routesList",[]),downloadingFiles:be()(t,"downloadingFiles",[]),rewindEnabled:be()(t,"rewind.rewindEnabled",!1),rewindDate:be()(t,"rewind.dateToRewind",null),bucketToRewind:be()(t,"rewind.bucketToRewind",""),loadingBucket:a.bucketDetails.loadingBucket,bucketInfo:a.bucketDetails.bucketInfo}}),wo),No=Object(s.h)(To(Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)(Object(p.a)(Object(p.a)({seeMore:{marginTop:e.spacing(3)},paper:{display:"flex",overflow:"auto",flexDirection:"column"},addSideBar:{width:"320px",padding:"20px"},tableToolbar:{paddingLeft:e.spacing(2),paddingRight:e.spacing(0)},minTableHeader:{color:"#393939","& tr":{"& th":{fontWeight:"bold"}}},fileName:{display:"flex",alignItems:"center","& .MuiSvgIcon-root":{width:16,height:16,marginRight:4}},fileNameText:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},iconFolder:Object(p.a)({backgroundImage:"url(/images/object-browser-folder-icn.svg)",backgroundSize:"auto"},Co),iconFile:Object(p.a)({backgroundImage:"url(/images/object-browser-icn.svg)",backgroundSize:"auto"},Co),buttonsContainer:{"& .MuiButtonBase-root":{marginLeft:10}},browsePaper:{height:"calc(100vh - 280px)"},"@global":{".rowLine:hover .iconFileElm":{backgroundImage:"url(/images/ob_file_filled.svg)"},".rowLine:hover .iconFolderElm":{backgroundImage:"url(/images/ob_folder_filled.svg)"}},listButton:{marginLeft:"10px"},badgeOverlap:{"& .MuiBadge-badge":{top:35,right:10}}},pt),Ot),xt),(e.spacing(4),{container:{position:"relative",maxWidth:1180,padding:"20px 35px 0","& h6":{color:"#777777",fontSize:30},"& p":{"& span:not(*[class*='smallUnit'])":{fontSize:16}}},sectionTitle:{padding:"0px",margin:"0px"},topSpacer:{height:"8px"}})))}))((function(e){var t=e.classes,a=e.match,i=e.history,r=e.downloadingFiles,o=e.rewindEnabled,s=e.rewindDate,l=e.bucketToRewind,d=e.setLoadingProgress,b=e.setSnackBarMessage,j=e.setErrorSnackMessage,h=e.resetRewind,p=e.setFileModeEnabled,O=e.setBucketDetailsLoad,g=e.loadingBucket,x=e.setBucketInfo,f=e.bucketInfo,v=Object(n.useState)([]),y=Object(m.a)(v,2),T=y[0],N=y[1],E=Object(n.useState)(!0),A=Object(m.a)(E,2),_=A[0],I=A[1],M=Object(n.useState)([]),z=Object(m.a)(M,2),D=z[0],L=z[1],F=Object(n.useState)(!1),R=Object(m.a)(F,2),P=R[0],B=R[1],G=Object(n.useState)(!1),K=Object(m.a)(G,2),W=K[0],V=K[1],H=Object(n.useState)(!1),q=Object(m.a)(H,2),Y=q[0],Q=q[1],Z=Object(n.useState)(!1),J=Object(m.a)(Z,2),$=J[0],X=J[1],ee=Object(n.useState)(""),te=Object(m.a)(ee,2),ae=te[0],ne=te[1],ce=Object(n.useState)(""),ie=Object(m.a)(ce,2),re=ie[0],oe=ie[1],se=Object(n.useState)(0),le=Object(m.a)(se,2),de=le[0],ue=le[1],je=Object(n.useState)(ko),he=Object(m.a)(je,2),me=he[0],pe=he[1],Oe=Object(n.useState)(!0),ge=Object(m.a)(Oe,2),xe=ge[0],ve=ge[1],ye=Object(n.useState)(!1),Se=Object(m.a)(ye,2),Ce=Se[0],ke=Se[1],we=Object(n.useState)(!1),Te=Object(m.a)(we,2),Ne=Te[0],Ee=Te[1],Ae=Object(n.useState)([]),_e=Object(m.a)(Ae,2),Ie=_e[0],Me=_e[1],ze=Object(n.useState)(!1),De=Object(m.a)(ze,2),Le=De[0],Fe=De[1],Re=Object(n.useState)(null),Pe=Object(m.a)(Re,2),Ke=Pe[0],He=Pe[1],qe=Object(n.useState)(!1),Ye=Object(m.a)(qe,2),Qe=Ye[0],Ze=Ye[1],Je=Object(n.useState)("ASC"),$e=Object(m.a)(Je,2),Xe=$e[0],et=$e[1],tt=Object(n.useState)("name"),at=Object(m.a)(tt,2),nt=at[0],ct=at[1],it=Object(n.useState)(!1),rt=Object(m.a)(it,2),ot=rt[0],st=rt[1],lt=be()(a.params,"subpaths",""),dt=a.params.bucketName,ut=Object(n.useRef)(null),bt=ti(null===f||void 0===f?void 0:f.allowedActions,["s3:PutObject"]),jt=(ti(null===f||void 0===f?void 0:f.allowedActions,["s3:GetObject"]),ti(null===f||void 0===f?void 0:f.allowedActions,[U])),ht=ti(null===f||void 0===f?void 0:f.allowedActions,["s3:ListBucket"]);Object(n.useEffect)((function(){ot||(O(!0),st(!0))}),[ot,O,st]),function(e,t){var a=Object(n.useRef)(null);Object(n.useEffect)((function(){a.current=e}),[e]),Object(n.useEffect)((function(){if(null!==t){var e=setInterval((function(){void 0!==a&&a.current&&a.current()}),t);return function(){return clearInterval(e)}}}),[t])}((function(){_&&function(){var e=Date.now()-de;e/1e3>=6?pe(Object(We.jsx)(c.a.Fragment,{children:Object(We.jsxs)(w.a,{component:"h3",children:["This operation is taking longer than expected... (",Math.ceil(e/1e3),"s)"]})})):e/1e3>=3&&pe(Object(We.jsx)(w.a,{component:"h3",children:"This operation is taking longer than expected..."}))}()}),1e3),Object(n.useEffect)((function(){xe&&(null===f||void 0===f?void 0:f.allowedActions)&&(null===f||void 0===f?void 0:f.name)==dt&&(ht?Ge.invoke("GET","/api/v1/buckets/".concat(dt,"/versioning")).then((function(e){ke(e.is_versioned),ve(!1)})).catch((function(e){j(e),ve(!1)})):ve(!1))}),[dt,xe,j]),Object(n.useEffect)((function(){if(o){if(l!==dt)return void h();if(s){B(!0);var e=s.toISOString(),t="";if(lt){var a=Ue(lt);t=a.endsWith("/")?a:a+"/"}Ge.invoke("GET","/api/v1/buckets/".concat(dt,"/rewind/").concat(e).concat(t?"?prefix=".concat(Be(t)):"")).then((function(e){B(!1),e.objects?L(e.objects):L([])})).catch((function(e){B(!1),j(e)}))}}}),[o,s,l,dt,a,j,h,lt]),Object(n.useEffect)((function(){I(!0)}),[lt]),Object(n.useEffect)((function(){if(_&&(null===f||void 0===f?void 0:f.allowedActions)&&(null===f||void 0===f?void 0:f.name)==dt)if(ht){var e="";if(lt){var t=Ue(lt);e=t.endsWith("/")?t:t+"/"}var a=Date.now();ue(a),pe(ko),Ge.invoke("GET","/api/v1/buckets/".concat(dt,"/objects").concat(e?"?prefix=".concat(Be(e)):"")).then((function(t){var a=t.objects||[],n=[],c=[];a.forEach((function(e){e.name.endsWith("/")?n.push(e):c.push(e)}));var i=[].concat(n,c);if(N(i),t.objects||""===e)p(!1),I(!1);else if(o){var r=s.toISOString(),l="";if(lt){var d=Ue(lt);l=d.endsWith("/")?d:d+"/"}Ge.invoke("GET","/api/v1/buckets/".concat(dt,"/rewind/").concat(r).concat(l?"?prefix=".concat(Be(l)):"")).then((function(e){null===e.objects?(p(!0),B(!1),I(!1)):(B(!1),I(!1),p(!1))})).catch((function(e){B(!1),I(!1),j(e)}))}else Ge.invoke("GET","/api/v1/buckets/".concat(dt,"/objects").concat(lt?"?prefix=".concat(lt):"")).then((function(e){e.objects?(1===e.objects.length&&e.objects[0].name.endsWith("/")?p(!1):p(!0),I(!1)):(p(!1),I(!1))})).catch((function(e){I(!1),j(e)}))})).catch((function(e){I(!1),j(e)}))}else B(!1),I(!1)}),[_,a,j,dt,o,s,lt,p,f]),Object(n.useEffect)((function(){g&&Ge.invoke("GET","/api/v1/buckets/".concat(dt)).then((function(e){O(!1),x(e)})).catch((function(e){O(!1),j(e)}))}),[dt,g,O,x,j]);var mt=function(e){return e.name.endsWith("/")?"":Object(We.jsx)(Wi.a,{children:e.last_modified})},pt=function(e){return e.name.endsWith("/")?"":fe(String(e.size))},Ot=function(e){var t="";if(lt){var a=Ue(lt);t=a.endsWith("/")?a:a+"/"}!function(e,t,a){if(null!==e&&void 0!==e&&null!==e.target&&void 0!==e.target){e.preventDefault();var n=e.target.files,c="".concat(u,"/api/v1/buckets/").concat(t,"/objects/upload");""!==a&&(c="".concat(c,"?prefix=").concat(a));var i=new XMLHttpRequest,r=n.length>1,o="An error occurred while uploading the file".concat(r?"s":"","."),s="Object".concat(r?"s":""," uploaded successfully.");i.open("POST",c,!0),i.withCredentials=!1,i.onload=function(e){401!==i.status&&403!==i.status&&400!==i.status&&500!==i.status||b(o),200===i.status&&b(s)},i.upload.addEventListener("error",(function(e){b(o)})),i.upload.addEventListener("progress",(function(e){d(Math.floor(100*e.loaded/e.total))})),i.onerror=function(){b(o)},i.onloadend=function(){I(!0),d(100)};var l,j=new FormData,h=Object(io.a)(n);try{for(h.s();!(l=h.n()).done;){var m=l.value,p=m.name,O=new Blob([m],{type:m.type});j.append(m.size,O,p)}}catch(g){h.e(g)}finally{h.f()}i.send(j),e.target.value=null}}(e,dt,Be(t))},gt=[{type:"view",onClick:function(e){var t="/buckets/".concat(dt,"/browse").concat(e?"/".concat(Be(e)):"");i.push(t)},sendOnlyId:!0},{type:"preview",onClick:function(e){He(e),Fe(!0)},disableButtonFunction:function(e){return"none"===zr(e)}},{type:"share",onClick:function(e){He(e),Ze(!0)},disableButtonFunction:function(e){return e.endsWith("/")}},{type:"download",onClick:function(e){e.size>104857600&&b("Download process started, it may take a few moments to complete"),Mr(dt,Be(e.name),e.version_id)},showLoaderFunction:function(e){return r.includes("".concat(a.params.bucket,"/").concat(e))},disableButtonFunction:function(e){if(o){var t=D.find((function(t){return t.name===e}));if(t&&t.delete_flag)return!0}return e.endsWith("/")},sendOnlyId:!1}];jt&>.push({type:"delete",onClick:function(e){V(!0),ne(e.name)},disableButtonFunction:function(){return o}});var xt=function(e){var a=e,n=Object(We.jsx)(Na,{});e.endsWith("/")&&(n=Object(We.jsx)($t,{}),a=e.substr(0,e.length-1));for(var c=[{icon:Object(We.jsx)(Ja,{}),extensions:["mp4","mov","avi","mpeg","mpg"]},{icon:Object(We.jsx)(Ba,{}),extensions:["mp3","m4a","aac"]},{icon:Object(We.jsx)(Ga,{}),extensions:["pdf"]},{icon:Object(We.jsx)(Ya,{}),extensions:["ppt","pptx"]},{icon:Object(We.jsx)(Ra,{}),extensions:["xls","xlsx"]},{icon:Object(We.jsx)(Fa,{}),extensions:["cer","crt","pem"]},{icon:Object(We.jsx)(qa,{}),extensions:["html","xml","css","py","go","php","cpp","h","java"]},{icon:Object(We.jsx)(Ua,{}),extensions:["cfg","yaml"]},{icon:Object(We.jsx)(Qa,{}),extensions:["sql"]},{icon:Object(We.jsx)(Ka,{}),extensions:["ttf","otf"]},{icon:Object(We.jsx)(Za,{}),extensions:["txt"]},{icon:Object(We.jsx)(Pa,{}),extensions:["zip","rar","tar","gz"]},{icon:Object(We.jsx)(Va,{}),extensions:["epub","mobi","azw","azw3"]},{icon:Object(We.jsx)(Wa,{}),extensions:["jpeg","jpg","gif","tiff","png","heic","dng"]}],i=e.toLowerCase(),r=0,o=c;r<o.length;r++){var s,l=o[r],d=Object(io.a)(l.extensions);try{for(d.s();!(s=d.n()).done;){var u=s.value;i.endsWith(".".concat(u))&&(n=l.icon)}}catch(j){d.e(j)}finally{d.f()}}!e.endsWith("/")&&e.indexOf(".")<0&&(n=Object(We.jsx)(Ha,{}));var b=a.split("/");return Object(We.jsxs)("div",{className:t.fileName,children:[n,Object(We.jsx)("span",{className:t.fileNameText,children:b[b.length-1]})]})},ft=T.filter((function(e){return""===re||e.name.toLowerCase().indexOf(re.toLowerCase())>=0})),vt=[{label:"Name",elementKey:"name",renderFunction:xt,enableSort:!0},{label:"Last Modified",elementKey:"last_modified",renderFunction:mt,renderFullObject:!0,enableSort:!0},{label:"Size",elementKey:"size",renderFunction:pt,renderFullObject:!0,width:60,contentTextAlign:"right",enableSort:!0}],yt=[{label:"Name",elementKey:"name",renderFunction:xt,enableSort:!0},{label:"Object Date",elementKey:"last_modified",renderFunction:mt,renderFullObject:!0,enableSort:!0},{label:"Size",elementKey:"size",renderFunction:pt,renderFullObject:!0,width:60,contentTextAlign:"right",enableSort:!0},{label:"Deleted",elementKey:"delete_flag",renderFunction:function(e){return e?"Yes":"No"},width:60,contentTextAlign:"center"}],St=Ue(lt),Ct=St.split("/").filter((function(e){return""!==e})),kt=(o?D:ft).sort(function(e){switch(e){case"name":return function(e,t){return e.name.localeCompare(t.name)};case"last_modified":return function(e,t){return new Date(e.last_modified).getTime()-new Date(t.last_modified).getTime()};case"size":return function(e,t){return(e.size||-1)-(t.size||-1)}}}(nt)),wt=[];return wt="ASC"===Xe?kt:kt.reverse(),Object(We.jsxs)(c.a.Fragment,{children:[Qe&&Ke&&Object(We.jsx)(Ir,{open:Qe,closeModalAndRefresh:function(){Ze(!1),He(null)},bucketName:dt,dataObject:{name:Ke.name,last_modified:"",version_id:Ke.version_id}}),W&&Object(We.jsx)(Ur,{deleteOpen:W,selectedBucket:dt,selectedObject:Be(ae),closeDeleteModalAndRefresh:function(e){V(!1),e&&(b("Object '".concat(ae,"' deleted successfully.")),I(!0))}}),Y&&Object(We.jsx)(yo,{deleteOpen:Y,selectedBucket:dt,selectedObjects:Ie,closeDeleteModalAndRefresh:function(e){Q(!1),e&&(b("Objects deleted successfully."),Me([]),I(!0))}}),$&&Object(We.jsx)(so,{modalOpen:$,bucketName:dt,folderName:lt,onClose:function(){X(!1)}}),Ne&&Object(We.jsx)(go,{open:Ne,closeModalAndRefresh:function(e){Ee(!1)},bucketName:dt}),Le&&Object(We.jsx)(So,{open:Le,bucketName:dt,object:Ke,onClosePreview:function(){Fe(!1),He(null)}}),Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ir,{icon:Object(We.jsx)(n.Fragment,{children:Object(We.jsx)(Qt,{width:40})}),title:Ct.length>0?Ct[Ct.length-1]:"/",subTitle:Object(We.jsx)(n.Fragment,{children:Object(We.jsx)(Pr,{bucketName:dt,internalPaths:St})}),actions:Object(We.jsxs)(n.Fragment,{children:[bt&&Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(Ln.a,{title:"Choose or create a new path",children:Object(We.jsx)(kn.a,{color:"primary","aria-label":"Add a new folder",component:"span",onClick:function(){X(!0)},disabled:o,size:"large",children:Object(We.jsx)(pa,{})})}),Object(We.jsx)(Ln.a,{title:"Upload file",children:Object(We.jsx)(kn.a,{color:"primary","aria-label":"Refresh List",component:"span",onClick:function(){ut&&ut.current&&ut.current.click()},disabled:o,size:"large",children:Object(We.jsx)(Aa,{})})}),Object(We.jsx)("input",{type:"file",multiple:!0,onChange:function(e){return Ot(e)},id:"file-input",style:{display:"none"},ref:ut})]}),Object(We.jsx)(Ln.a,{title:"Rewind",children:Object(We.jsx)(ro.a,{badgeContent:" ",color:"secondary",variant:"dot",invisible:!o,className:t.badgeOverlap,children:Object(We.jsx)(kn.a,{color:"primary","aria-label":"Rewind",component:"span",onClick:function(){Ee(!0)},disabled:!Ce,size:"large",children:Object(We.jsx)(wa,{})})})}),Object(We.jsx)(Ln.a,{title:"Refresh list",children:Object(We.jsx)(kn.a,{color:"primary","aria-label":"Refresh List",component:"span",onClick:function(){I(!0)},disabled:o,size:"large",children:Object(We.jsx)(Ve,{})})})]})})}),Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.actionsTray,children:[ht&&Object(We.jsx)(C.a,{placeholder:"Search Objects",className:t.searchField,id:"search-resource",label:"",onChange:function(e){oe(e.target.value)},InputProps:{disableUnderline:!0,startAdornment:Object(We.jsx)(Wt.a,{position:"start",children:Object(We.jsx)(Jt,{})})},variant:"standard"}),jt&&Object(We.jsx)(S.a,{variant:"contained",color:"primary",startIcon:Object(We.jsx)(fo.a,{}),onClick:function(){Q(!0)},disabled:0===Ie.length,children:"Delete Selected"})]}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("br",{})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ei,{disabled:!ht,itemActions:gt,columns:o?yt:vt,isLoading:o?P:_,loadingMessage:me,entityName:"Objects",idField:"name",records:wt,customPaperHeight:t.browsePaper,selectedItems:Ie,onSelect:function(e){var t=e.target,a=t.value,n=t.checked,c=Object(Kt.a)(Ie);return n?c.push(a):c=c.filter((function(e){return e!==a})),Me(c),c},customEmptyMessage:"This location is empty".concat(o?"":", please try uploading a new file"),sortConfig:{currentSort:nt,currentDirection:Xe,triggerSort:function(e){var t=be()(e,"sortDirection","DESC");ct(e.sortBy),et(t),I(!0)}}})})]})]})})))),Eo={setFileModeEnabled:yr,setErrorSnackMessage:ce},Ao=Object(o.b)((function(e){var t=e.objectBrowser,a=e.buckets;return{fileMode:be()(t,"fileMode",!1),bucketToRewind:be()(t,"rewind.bucketToRewind",""),bucketInfo:a.bucketDetails.bucketInfo}}),Eo),_o=Object(y.a)((function(e){return Object(f.a)(Object(p.a)({breadcrumLink:{textDecoration:"none",color:"black"}},(e.spacing(4),{container:{position:"relative",maxWidth:1180,padding:"20px 35px 0","& h6":{color:"#777777",fontSize:30},"& p":{"& span:not(*[class*='smallUnit'])":{fontSize:16}}},sectionTitle:{padding:"0px",margin:"0px"},topSpacer:{height:"8px"}})))}))(Ao((function(e){var t=e.fileMode,a=e.match,c=e.history,i=e.classes,r=e.setFileModeEnabled,o=e.bucketInfo,s=a.params.bucketName,l=be()(a.params,"subpaths","");Object(n.useEffect)((function(){r(!1)}),[l,r]);return Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(sc,{label:Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(lc.a,{to:"/buckets",className:i.breadcrumLink,children:"Buckets"})," ","> ",s]}),actions:(null===o||void 0===o?void 0:o.manage)&&Object(We.jsx)(n.Fragment,{children:Object(We.jsx)(Ln.a,{title:"Configure Bucket",children:Object(We.jsx)(kn.a,{color:"primary","aria-label":"Configure Bucket",component:"span",onClick:function(){c.push("/buckets/".concat(s,"/admin"))},size:"large",children:Object(We.jsx)(Ea,{})})})})}),Object(We.jsx)(k.a,{container:!0,className:i.container,children:t?Object(We.jsx)(co,{}):Object(We.jsx)(No,{})})]})}))),Io=Object(o.b)((function(e){return{open:e.system.sidebarOpen}}),{setMenuOpen:ee}),Mo=Object(s.h)(Io((function(){return Object(We.jsx)(s.c,{history:h,children:Object(We.jsxs)(s.d,{children:[Object(We.jsx)(s.b,{path:"/buckets/:bucketName/admin/*",component:Or}),Object(We.jsx)(s.b,{path:"/buckets/:bucketName/admin",component:Or}),Object(We.jsx)(s.b,{path:"/buckets/:bucketName/browse/:subpaths+",component:_o}),Object(We.jsx)(s.b,{path:"/buckets/:bucketName/browse",component:_o}),Object(We.jsx)(s.b,{path:"/buckets/:bucketName",component:function(){return Object(We.jsx)(s.a,{to:"/buckets"})}}),Object(We.jsx)(s.b,{path:"/",component:Tc}),Object(We.jsx)(s.b,{component:Gt})]})})}))),zo=a(335);a(485),a(486);a(487);var Do,Lo=Object(y.a)((function(e){return Object(f.a)(Object(p.a)({},lt))}))((function(e){var t=e.value,a=e.label,n=void 0===a?"":a,i=e.tooltip,r=void 0===i?"":i,o=e.mode,s=void 0===o?"yaml":o,l=e.classes,d=e.onChange,u=void 0===d?function(){}:d,b=e.onBeforeChange,j=e.readOnly,h=void 0!==j&&j;return Object(We.jsxs)(c.a.Fragment,{children:[Object(We.jsxs)(Dn.a,{className:l.inputLabel,children:[Object(We.jsx)("span",{children:n}),""!==r&&Object(We.jsx)("div",{className:l.tooltipContainer,children:Object(We.jsx)(Ln.a,{title:r,placement:"top-start",children:Object(We.jsx)("div",{children:Object(We.jsx)(oa,{className:l.tooltip})})})})]}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("br",{})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(zo.Controlled,{value:t,options:{mode:s,lineNumbers:!0,readOnly:h},onBeforeChange:b,onChange:u})})]})})),Fo={setModalErrorSnackMessage:re},Ro=Object(o.b)(null,Fo),Po=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)({jsonPolicyEditor:{minHeight:400,width:"100%"},buttonContainer:{textAlign:"right"}},dt),lt))}))(Ro((function(e){var t=e.classes,a=e.open,c=e.closeModalAndRefresh,i=e.policyEdit,r=e.setModalErrorSnackMessage,o=Object(n.useState)(!1),s=Object(m.a)(o,2),l=s[0],d=s[1],u=Object(n.useState)(""),b=Object(m.a)(u,2),j=b[0],h=b[1],p=Object(n.useState)(""),g=Object(m.a)(p,2),x=g[0],f=g[1];Object(n.useEffect)((function(){i&&(h(i.name),f(i?JSON.stringify(JSON.parse(i.policy),null,4):""))}),[i]);var v=""!==j.trim();return Object(We.jsx)(zn,{modalOpen:a,onClose:function(){c(!1)},title:"".concat(i?"Info":"Create"," Policy"),children:Object(We.jsx)("form",{noValidate:!0,autoComplete:"off",onSubmit:function(e){e.preventDefault(),l||(d(!0),Ge.invoke("POST","/api/v1/policies",{name:j,policy:x}).then((function(e){d(!1),c(!0)})).catch((function(e){d(!1),r(e)})))},children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.formScrollable,children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"policy-name",name:"policy-name",label:"Policy Name",placeholder:"Enter Policy Name",onChange:function(e){h(e.target.value)},value:j,disabled:!!i})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("br",{})}),Object(We.jsx)(Lo,{label:"".concat(i?"Edit":"Write"," Policy"),value:x,onBeforeChange:function(e,t,a){f(a)}})]}),Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.buttonContainer,children:[!i&&Object(We.jsx)("button",{type:"button",color:"primary",className:t.clearButton,onClick:function(){h(""),f("")},children:"Clear"}),Object(We.jsx)(S.a,{type:"submit",variant:"contained",color:"primary",disabled:l||!v,children:"Save"})]}),l&&Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(O.a,{})})]})})})}))),Bo={setErrorSnackMessage:ce},Uo=Object(o.b)(null,Bo)((function(e){var t=e.closeDeleteModalAndRefresh,a=e.deleteOpen,c=e.selectedPolicy,i=e.setErrorSnackMessage,r=Object(n.useState)(!1),o=Object(m.a)(r,2),s=o[0],l=o[1];return Object(We.jsxs)(wn.a,{open:a,onClose:function(){t(!1)},"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[Object(We.jsx)(Tn.a,{id:"alert-dialog-title",children:"Delete Policy"}),Object(We.jsxs)(Nn.a,{children:[s&&Object(We.jsx)(O.a,{}),Object(We.jsxs)(cc.a,{id:"alert-dialog-description",children:["Are you sure you want to delete policy ",Object(We.jsx)("b",{children:c}),"?"]})]}),Object(We.jsxs)(ic.a,{children:[Object(We.jsx)(S.a,{onClick:function(){t(!1)},color:"primary",disabled:s,children:"Cancel"}),Object(We.jsx)(S.a,{onClick:function(){s||(l(!0),Ge.invoke("DELETE","/api/v1/policy?name=".concat(c)).then((function(e){l(!1),t(!0)})).catch((function(e){l(!1),i(e)})))},color:"secondary",autoFocus:!0,children:"Delete"})]})]})})),Go={setErrorSnackMessage:ce},Ko=Object(o.b)(null,Go),Wo=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)(Object(p.a)({seeMore:{marginTop:e.spacing(3)},paper:{display:"flex",overflow:"auto",flexDirection:"column"},addSideBar:{width:"320px",padding:"20px"},tableToolbar:{paddingLeft:e.spacing(2),paddingRight:e.spacing(0)},minTableHeader:{color:"#393939","& tr":{"& th":{fontWeight:"bold"}}},twHeight:{minHeight:600}},pt),Ot),(e.spacing(4),{container:{position:"relative",maxWidth:1180,padding:"20px 35px 0","& h6":{color:"#777777",fontSize:30},"& p":{"& span:not(*[class*='smallUnit'])":{fontSize:16}}},sectionTitle:{padding:"0px",margin:"0px"},topSpacer:{height:"8px"}})))}))(Ko((function(e){var t=e.classes,a=e.setErrorSnackMessage,i=Object(n.useState)([]),r=Object(m.a)(i,2),o=r[0],s=r[1],l=Object(n.useState)(!1),d=Object(m.a)(l,2),u=d[0],b=d[1],j=Object(n.useState)(!1),p=Object(m.a)(j,2),O=p[0],g=p[1],x=Object(n.useState)(!1),f=Object(m.a)(x,2),v=f[0],y=f[1],w=Object(n.useState)(""),T=Object(m.a)(w,2),N=T[0],E=T[1],A=Object(n.useState)(""),_=Object(m.a)(A,2),I=_[0],M=_[1],z=Object(n.useState)(null),D=Object(m.a)(z,2),L=D[0],F=D[1];Object(n.useEffect)((function(){R()}),[]),Object(n.useEffect)((function(){u&&Ge.invoke("GET","/api/v1/policies").then((function(e){var t=be()(e,"policies",[]);t.sort((function(e,t){return e.name>t.name?1:e.name<t.name?-1:0})),b(!1),s(t)})).catch((function(e){b(!1),a(e)}))}),[u,b,s,a]);var R=function(){b(!0)},P=[{type:"view",onClick:function(e){h.push("/policies/".concat(e.name))}},{type:"delete",onClick:function(e){y(!0),E(e)},sendOnlyId:!0}],B=o.filter((function(e){return e.name.includes(I)}));return Object(We.jsxs)(c.a.Fragment,{children:[O&&Object(We.jsx)(Po,{open:O,closeModalAndRefresh:function(e){g(!1),e&&R()},policyEdit:L}),v&&Object(We.jsx)(Uo,{deleteOpen:v,selectedPolicy:N,closeDeleteModalAndRefresh:function(e){y(!1),e&&R()}}),Object(We.jsx)(sc,{label:"IAM Policies"}),Object(We.jsxs)(k.a,{container:!0,className:t.container,children:[Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.actionsTray,children:[Object(We.jsx)(C.a,{placeholder:"Search Policies",className:t.searchField,id:"search-resource",label:"",onChange:function(e){M(e.target.value)},InputProps:{disableUnderline:!0,startAdornment:Object(We.jsx)(Wt.a,{position:"start",children:Object(We.jsx)(Jt,{})})},variant:"standard"}),Object(We.jsx)(S.a,{variant:"contained",color:"primary",startIcon:Object(We.jsx)(ba,{}),onClick:function(){g(!0),F(null)},children:"Create Policy"})]}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("br",{})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ei,{itemActions:P,columns:[{label:"Name",elementKey:"name"}],isLoading:u,records:B,entityName:"Policies",idField:"name",customPaperHeight:t.twHeight})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(wc,{title:"Learn more about IAM POLICIES",iconComponent:Object(We.jsx)(Oa,{}),help:Object(We.jsxs)(n.Fragment,{children:["MinIO uses Policy-Based Access Control (PBAC) to define the authorized actions and resources to which an authenticated user has access. Each policy describes one or more actions and conditions that outline the permissions of a user or group of users.",Object(We.jsx)("br",{}),Object(We.jsx)("br",{}),"MinIO PBAC is built for compatibility with AWS IAM policy syntax, structure, and behavior. The MinIO documentation makes a best-effort to cover IAM-specific behavior and functionality. Consider deferring to the IAM documentation for more complete documentation on AWS IAM-specific topics.",Object(We.jsx)("br",{}),Object(We.jsx)("br",{}),"You can learn more at our"," ",Object(We.jsx)("a",{href:"https://docs.min.io/minio/baremetal/security/minio-identity-management/policy-based-access-control.html?ref=con",target:"_blank",rel:"noreferrer",children:"documentation"}),"."]})})})]})]})}))),Vo=Object(o.b)(null,{setErrorSnackMessage:ce,setSnackBarMessage:ne}),Ho=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)(Object(p.a)(Object(p.a)({buttonContainer:{textAlign:"right"},multiContainer:{display:"flex",alignItems:"center",justifyContent:"flex-start"},sizeFactorContainer:{marginLeft:8},containerHeader:{display:"flex",justifyContent:"space-between"},paperContainer:{padding:"15px 15px 15px 50px"},infoGrid:{display:"grid",gridTemplateColumns:"auto auto auto auto",gridGap:8,"& div":{display:"flex",alignItems:"center"},"& div:nth-child(odd)":{justifyContent:"flex-end",fontWeight:700},"& div:nth-child(2n)":{paddingRight:35}},masterActions:{width:"25%",minWidth:"120px","& div":{margin:"5px 0px"}},updateButton:{backgroundColor:"transparent",border:0,padding:"0 6px",cursor:"pointer","&:focus, &:active":{outline:"none"},"& svg":{height:12}},noUnderLine:{textDecoration:"none"},poolLabel:{color:"#666666"},licenseContainer:{position:"relative",padding:"20px 52px 0px 28px",background:"#032F51",boxShadow:"0px 3px 7px #00000014","& h2":{color:"#FFF",marginBottom:67},"& a":{textDecoration:"none"},"& h3":{color:"#FFFFFF",marginBottom:"30px",fontWeight:"bold"},"& h6":{color:"#FFFFFF !important"}},licenseInfo:{color:"#FFFFFF",position:"relative"},licenseInfoTitle:{textTransform:"none",color:"#BFBFBF",fontSize:11},licenseInfoValue:{textTransform:"none",fontSize:14,fontWeight:"bold"},verifiedIcon:{width:96,position:"absolute",right:0,bottom:29},breadcrumLink:{textDecoration:"none",color:"black"},statement:{border:"1px solid #DADADA",padding:8,marginBottom:8,borderRadius:4},labelCol:{fontWeight:"bold"},statementActions:{textAlign:"right"},addStmt:{color:e.palette.primary.main},listBox:{border:"1px solid #DADADA",height:100}},pt),Ot),dt),(e.spacing(4),{container:{position:"relative",maxWidth:1180,padding:"20px 35px 0","& h6":{color:"#777777",fontSize:30},"& p":{"& span:not(*[class*='smallUnit'])":{fontSize:16}}},sectionTitle:{padding:"0px",margin:"0px"},topSpacer:{height:"8px"}})))}))(Vo((function(e){var t=e.classes,a=e.match,c=e.setErrorSnackMessage,i=e.setSnackBarMessage,r=Object(n.useState)(0),o=Object(m.a)(r,2),s=o[0],l=o[1],d=Object(n.useState)(null),u=Object(m.a)(d,2),b=u[0],j=u[1],p=Object(n.useState)([]),g=Object(m.a)(p,2),f=g[0],v=g[1],y=Object(n.useState)([]),w=Object(m.a)(y,2),T=w[0],N=w[1],E=Object(n.useState)([]),A=Object(m.a)(E,2),_=A[0],I=A[1],M=Object(n.useState)(!1),z=Object(m.a)(M,2),D=z[0],L=z[1],F=Object(n.useState)(a.params[0]),R=Object(m.a)(F,2),P=R[0],B=R[1],U=Object(n.useState)(""),G=Object(m.a)(U,2),K=G[0],W=G[1],V=Object(n.useState)(!0),H=Object(m.a)(V,2),q=H[0],Y=H[1],Q=Object(n.useState)(""),Z=Object(m.a)(Q,2),J=Z[0],$=Z[1],X=Object(n.useState)(!0),ee=Object(m.a)(X,2),te=ee[0],ae=ee[1],ne=Object(n.useState)(""),ce=Object(m.a)(ne,2),ie=ce[0],re=ce[1],oe=Object(n.useState)(!0),se=Object(m.a)(oe,2),le=se[0],de=se[1],ue=Object(n.useState)(!1),be=Object(m.a)(ue,2),je=be[0],he=be[1],me=function(e){e.preventDefault(),D||(L(!0),Ge.invoke("POST","/api/v1/policies",{name:P,policy:K}).then((function(e){L(!1),i("Policy successfully updated")})).catch((function(e){L(!1),c(e)})))};Object(n.useEffect)((function(){q&&(q&&Ge.invoke("GET","/api/v1/policy?name=".concat(encodeURIComponent(P))).then((function(e){if(e){j(e),W(e?JSON.stringify(JSON.parse(e.policy),null,4):"");var t=JSON.parse(e.policy);v(t.Statement)}Y(!1)})).catch((function(e){c(e),Y(!1)})),te&&Ge.invoke("GET","/api/v1/policies/".concat(encodeURIComponent(P),"/users")).then((function(e){N(e),ae(!1)})).catch((function(e){c(e),ae(!1)})),le&&Ge.invoke("GET","/api/v1/policies/".concat(encodeURIComponent(P),"/groups")).then((function(e){I(e),de(!1)})).catch((function(e){c(e),de(!1)})))}),[P,q,te,le,c,N,I,W,j,ae,de]);var pe=""!==P.trim(),Oe=[{type:"view",onClick:function(e){h.push("/users/".concat(e))}}],ge=T.filter((function(e){return e.includes(J)})),xe=_.filter((function(e){return e.includes(ie)}));return Object(We.jsxs)(n.Fragment,{children:[je&&Object(We.jsx)(Uo,{deleteOpen:je,selectedPolicy:P,closeDeleteModalAndRefresh:function(e){he(!1),h.push("/policies")}}),Object(We.jsx)(sc,{label:Object(We.jsx)(n.Fragment,{children:Object(We.jsx)(lc.a,{to:"/policies",className:t.breadcrumLink,children:"Policy"})})}),Object(We.jsxs)(k.a,{container:!0,className:t.container,children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ir,{icon:Object(We.jsx)(n.Fragment,{children:Object(We.jsx)(Oa,{width:40})}),title:P,subTitle:Object(We.jsx)(n.Fragment,{children:"IAM Policy"}),actions:Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(Ln.a,{title:"Delete Policy",children:Object(We.jsx)(mr,{color:"primary","aria-label":"Delete Policy",onClick:function(){he(!0)},children:Object(We.jsx)(fa,{})})}),Object(We.jsx)(Ln.a,{title:"Refresh",children:Object(We.jsx)(mr,{color:"primary","aria-label":"Refresh List",onClick:function(){ae(!0),de(!0),Y(!0)},size:"large",children:Object(We.jsx)(Ve,{})})})]})})}),Object(We.jsx)(k.a,{item:!0,xs:2,children:Object(We.jsxs)(fc.a,{component:"nav",dense:!0,children:[Object(We.jsx)(vc.a,{button:!0,selected:0===s,onClick:function(){l(0)},children:Object(We.jsx)(yc.a,{primary:"Summary"})}),Object(We.jsx)(vc.a,{button:!0,selected:1===s,onClick:function(){l(1)},children:Object(We.jsx)(yc.a,{primary:"Users"})}),Object(We.jsx)(vc.a,{button:!0,selected:2===s,onClick:function(){l(2)},children:Object(We.jsx)(yc.a,{primary:"Groups"})}),Object(We.jsx)(vc.a,{button:!0,selected:3===s,onClick:function(){l(3)},children:Object(We.jsx)(yc.a,{primary:"JSON"})})]})}),Object(We.jsxs)(k.a,{item:!0,xs:10,children:[0===s&&Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)("h1",{className:t.sectionTitle,children:"Summary"}),Object(We.jsx)(x.a,{className:t.paperContainer,children:Object(We.jsx)("form",{noValidate:!0,autoComplete:"off",onSubmit:function(e){me(e)},children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsx)(k.a,{item:!0,xs:8,children:Object(We.jsx)("h4",{children:"Statements"})}),Object(We.jsx)(k.a,{item:!0,xs:4}),Object(We.jsx)(n.Fragment,{children:f.map((function(e,a){return Object(We.jsx)(k.a,{item:!0,xs:12,className:t.statement,children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsx)(k.a,{item:!0,xs:2,className:t.labelCol,children:"Effect"}),Object(We.jsx)(k.a,{item:!0,xs:4,children:Object(We.jsx)(n.Fragment,{children:e.Effect})}),Object(We.jsx)(k.a,{item:!0,xs:2,className:t.labelCol}),Object(We.jsx)(k.a,{item:!0,xs:4}),Object(We.jsx)(k.a,{item:!0,xs:2,className:t.labelCol,children:"Actions"}),Object(We.jsx)(k.a,{item:!0,xs:4,children:Object(We.jsx)("ul",{children:e.Action&&e.Action.map((function(e,t){return Object(We.jsx)("li",{children:e},"".concat(a,"-r-").concat(t))}))})}),Object(We.jsx)(k.a,{item:!0,xs:2,className:t.labelCol,children:"Resources"}),Object(We.jsx)(k.a,{item:!0,xs:4,children:Object(We.jsx)("ul",{children:e.Resource&&e.Resource.map((function(e,t){return Object(We.jsx)("li",{children:e},"".concat(a,"-r-").concat(t))}))})})]})},"s-".concat(a))}))})]})})})]}),1===s&&Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)("h1",{className:t.sectionTitle,children:"Users"}),Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsx)(k.a,{item:!0,xs:12,className:t.actionsTray,children:Object(We.jsx)(C.a,{placeholder:"Search Users",className:t.searchField,id:"search-resource",label:"",onChange:function(e){$(e.target.value)},InputProps:{disableUnderline:!0,startAdornment:Object(We.jsx)(Wt.a,{position:"start",children:Object(We.jsx)(Jt,{})})},variant:"standard"})}),Object(We.jsx)(k.a,{item:!0,xs:12,className:t.actionsTray,children:Object(We.jsx)("br",{})}),Object(We.jsx)(ei,{itemActions:Oe,columns:[{label:"Name",elementKey:"name"}],isLoading:te,records:ge,entityName:"Users",idField:"name"})]})]}),2===s&&Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)("h1",{className:t.sectionTitle,children:"Groups"}),Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsx)(k.a,{item:!0,xs:12,className:t.actionsTray,children:Object(We.jsx)(C.a,{placeholder:"Search Groups",className:t.searchField,id:"search-resource",label:"",onChange:function(e){re(e.target.value)},InputProps:{disableUnderline:!0,startAdornment:Object(We.jsx)(Wt.a,{position:"start",children:Object(We.jsx)(Jt,{})})},variant:"standard"})}),Object(We.jsx)(k.a,{item:!0,xs:12,className:t.actionsTray,children:Object(We.jsx)("br",{})}),Object(We.jsx)(ei,{itemActions:[],columns:[{label:"Name",elementKey:"name"}],isLoading:le,records:xe,entityName:"Groups",idField:"name"})]})]}),3===s&&Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)("h1",{className:t.sectionTitle,children:"Raw Policy"}),Object(We.jsx)(x.a,{className:t.paperContainer,children:Object(We.jsx)("form",{noValidate:!0,autoComplete:"off",onSubmit:function(e){me(e)},children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsx)(k.a,{item:!0,xs:12,className:t.formScrollable,children:Object(We.jsx)(Lo,{value:K,onBeforeChange:function(e,t,a){W(a)}})}),Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.buttonContainer,children:[!b&&Object(We.jsx)("button",{type:"button",color:"primary",className:t.clearButton,onClick:function(){B(""),W("")},children:"Clear"}),Object(We.jsx)(S.a,{type:"submit",variant:"contained",color:"primary",disabled:D||!pe,children:"Save"})]}),D&&Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(O.a,{})})]})})})]})]})]})]})}))),qo=Object(o.b)((function(e){return{open:e.system.sidebarOpen}}),{setMenuOpen:ee}),Yo=Object(s.h)(qo((function(){return Object(We.jsx)(s.c,{history:h,children:Object(We.jsxs)(s.d,{children:[Object(We.jsx)(s.b,{path:"/policies/",exact:!0,component:Wo}),Object(We.jsx)(s.b,{path:"/policies/*",component:Ho}),Object(We.jsx)(s.b,{path:"/",component:Wo}),Object(We.jsx)(s.b,{component:Gt})]})})})));!function(e){e.singleValue="singleValue",e.linearGraph="linearGraph",e.areaGraph="areaGraph",e.barChart="barChart",e.pieChart="pieChart",e.singleRep="singleRep",e.simpleWidget="simpleWidget"}(Do||(Do={}));var Qo=["#C4D4E9","#DCD1EE","#D1EEE7","#EEDED1","#AAF38F","#F9E6C5","#C83B51","#F4CECE","#D6D6D6"],Zo=function(e){return Me(e,"ns")},Jo=function(e){return parseInt(e).toString(10)},$o=[{id:1,title:"Uptime",data:"N/A",type:Do.simpleWidget,widgetIcon:Object(We.jsx)(en,{}),labelDisplayFunction:Me},{id:50,title:"Capacity",data:[],dataOuter:[{name:"outer",value:100}],widgetConfiguration:{outerChart:{colorList:["#9c9c9c"],innerRadius:0,outerRadius:0,startAngle:0,endAngle:0},innerChart:{colorList:Qo,innerRadius:20,outerRadius:50,startAngle:90,endAngle:-200}},type:Do.pieChart,innerLabel:"N/A",labelDisplayFunction:fe},{id:68,title:"Data Usage Growth",data:[],widgetConfiguration:[{dataKey:"",keyLabel:"",lineColor:"#000",fillColor:"#000"}],type:Do.areaGraph,yAxisFormatter:fe,xAxisFormatter:De},{id:52,title:"Object size distribution",data:[],widgetConfiguration:[{dataKey:"a",color:Qo[0],background:{fill:"#EEF1F4"},greatestColor:"#081C42"}],customStructure:[{originTag:"LESS_THAN_1024_B",displayTag:"Less than 1024B"},{originTag:"BETWEEN_1024_B_AND_1_MB",displayTag:"Between 1024B and 1MB"},{originTag:"BETWEEN_1_MB_AND_10_MB",displayTag:"Between 1MB and 10MB"},{originTag:"BETWEEN_10_MB_AND_64_MB",displayTag:"Between 10MB and 64MB"},{originTag:"BETWEEN_64_MB_AND_128_MB",displayTag:"Between 64MB and 128MB"},{originTag:"BETWEEN_128_MB_AND_512_MB",displayTag:"Between 128MB and 512MB"},{originTag:"GREATER_THAN_512_MB",displayTag:"Greater than 512MB"}],type:Do.barChart},{id:66,title:"Buckets",data:[],innerLabel:"N/A",type:Do.singleRep,color:"#0071BC",fillColor:"#ADD5E0"},{id:44,title:"Objects",data:[],innerLabel:"N/A",type:Do.singleRep,color:"#0071BC",fillColor:"#ADD5E0"},{id:63,title:"API Data Received Rate",data:[],widgetConfiguration:[{dataKey:"",keyLabel:"",lineColor:"#000",fillColor:"#000"}],type:Do.linearGraph,xAxisFormatter:De,yAxisFormatter:fe},{id:61,title:"Total Open FDs",data:[],innerLabel:"N/A",type:Do.singleRep,color:"#22B573",fillColor:"#A6E8C4"},{id:62,title:"Total Goroutines",data:[],innerLabel:"N/A",type:Do.singleRep,color:"#F7655E",fillColor:"#F4CECE"},{id:77,title:"Node CPU Usage",data:[],widgetConfiguration:[{dataKey:"",keyLabel:"",lineColor:"#000",fillColor:"#000"}],type:Do.linearGraph,yAxisFormatter:Jo,xAxisFormatter:De},{id:60,title:"API Request Rate",data:[],widgetConfiguration:[{dataKey:"",keyLabel:"",lineColor:"#000",fillColor:"#000"}],type:Do.linearGraph,xAxisFormatter:De},{id:70,title:"API Data Sent Rate",data:[],widgetConfiguration:[{dataKey:"",keyLabel:"",lineColor:"#000",fillColor:"#000"}],type:Do.linearGraph,xAxisFormatter:De,yAxisFormatter:fe},{id:17,title:"Internode Data Transfer",data:[],widgetConfiguration:[{dataKey:"",keyLabel:"",lineColor:"#000",fillColor:"#000"}],type:Do.linearGraph,yAxisFormatter:fe,xAxisFormatter:De},{id:73,title:"Node IO",data:[],widgetConfiguration:[{dataKey:"",keyLabel:"",lineColor:"#000",fillColor:"#000"}],type:Do.linearGraph,yAxisFormatter:fe,xAxisFormatter:De},{id:80,title:"Time Since Last Heal Activity",data:"N/A",type:Do.simpleWidget,widgetIcon:Object(We.jsx)(ta,{}),labelDisplayFunction:Zo},{id:81,title:"Time Since Last Scan Activity",data:"N/A",type:Do.simpleWidget,widgetIcon:Object(We.jsx)(sa,{}),labelDisplayFunction:Zo},{id:71,title:"API Request Error Rate",data:[],widgetConfiguration:[{dataKey:"",keyLabel:"",lineColor:"#000",fillColor:"#000"}],type:Do.linearGraph,xAxisFormatter:De},{id:76,title:"Node Memory Usage",data:[],widgetConfiguration:[{dataKey:"",keyLabel:"",lineColor:"#000",fillColor:"#000"}],type:Do.linearGraph,xAxisFormatter:De,yAxisFormatter:fe},{id:74,title:"Drive Used Capacity",data:[],widgetConfiguration:[{dataKey:"",keyLabel:"",lineColor:"#000",fillColor:"#000"}],type:Do.linearGraph,xAxisFormatter:De,yAxisFormatter:fe},{id:82,title:"Drives Free Inodes",data:[],widgetConfiguration:[{dataKey:"",keyLabel:"",lineColor:"#000",fillColor:"#000"}],type:Do.linearGraph,disableYAxis:!0,xAxisFormatter:De},{id:11,title:"Node Syscalls",data:[],widgetConfiguration:[{dataKey:"",keyLabel:"",lineColor:"#000",fillColor:"#000"}],type:Do.linearGraph,yAxisFormatter:Jo,xAxisFormatter:De},{id:8,title:"Node File Descriptors",data:[],widgetConfiguration:[{dataKey:"",keyLabel:"",lineColor:"#000",fillColor:"#000"}],type:Do.linearGraph,yAxisFormatter:Jo,xAxisFormatter:De},{id:500,mergedPanels:[{id:53,title:"Online",data:"N/A",type:Do.singleValue},{id:69,title:"Offline",data:"N/A",type:Do.singleValue}],title:"Servers"},{id:501,mergedPanels:[{id:9,title:"Online",data:"N/A",type:Do.singleValue},{id:78,title:"Offline",data:"N/A",type:Do.singleValue}],title:"Drives"},{id:502,mergedPanels:[{id:65,title:"Upload",data:"N/A",type:Do.singleValue,labelDisplayFunction:fe},{id:64,title:"Download",data:"N/A",type:Do.singleValue,labelDisplayFunction:fe}],title:"Network"}],Xo=function(e,t){if(0===e.length)return["","0"];if("mean"===t){var a=e.reduce((function(e,t){return e+parseFloat(t[1])}),0);return["",Math.floor(a/e.length).toString()]}var n=e.sort((function(e,t){return e[0]-t[0]}));return n[n.length-1]},es=function(e,t){if(!e)return t;var a=e.type;switch(t.type){case Do.singleValue:case Do.simpleWidget:if("stat"===a||"singlestat"===a){var n=be()(e,"targets[0].result[0].values",[]);null===n&&(n=[]);var c=be()(e,"options.reduceOptions.calcs[0]","lastNotNull"),i=Xo(n,c),r=t.labelDisplayFunction?t.labelDisplayFunction(i[1]):i[1];return Object(p.a)(Object(p.a)({},t),{},{data:r})}break;case Do.pieChart:if("gauge"===a){var o=be()(e,"targets[0].result",[]);null===o&&(o=[]);var s=be()(e,"options.reduceOptions.calcs[0]","lastNotNull"),l=o.length>0?o[0].values:[],d=Xo(l,s),u=o.map((function(e){var t=be()(e,"values",[]),a=Object.keys(e.metric),n=t.sort((function(e,t){return e[0]-t[0]})),c=e.metric[a[0]],i=n[n.length-1];return{name:c,value:parseInt(i)}})),b=t.labelDisplayFunction?t.labelDisplayFunction(d[1]):d[1];return Object(p.a)(Object(p.a)({},t),{},{data:u,innerLabel:b})}break;case Do.linearGraph:case Do.areaGraph:if("graph"===a){var j=be()(e,"targets",[]);null===j&&(j=[]);var h=[],m=[];j.forEach((function(e,t){var a=be()(e,"result",[]),n=e.legendFormat;null===a&&(a=[]),a.forEach((function(e){var a=function(e,t){var a=Object.keys(e),n=new RegExp("{{(".concat(a.join("|"),")}}"),"g"),c=t.replace(n,(function(t){var a=t.replace(/({{|}})/g,"");return e[a]})),i=(c.match(/{{/g)||[]).length,r=(c.match(/}}/g)||[]).length,o=c.replace(/{{(.*?)}}/g,"");return i===r&&0!==i&&0!==r&&(a.forEach((function(t){c=c.replace(t,e[t])})),o=c),o}(e.metric,n),c="key_".concat(t).concat(a);h.push({dataKey:c,keyLabel:a,lineColor:"",fillColor:""});var i=be()(e,"values",[]);null===i&&(i=[]),i.forEach((function(e){var t=m.findIndex((function(t){return t.name===e[0]}));if(-1===t){var a={name:e[0]};a[c]=e[1],m.push(a)}else m[t][c]=e[1]}))}))}));var O=h.sort((function(e,t){return e.keyLabel<t.keyLabel?-1:e.keyLabel>t.keyLabel?1:0})).map((function(e,t){return Object(p.a)(Object(p.a)({},e),{},{lineColor:Qo[t]||Fe(e.keyLabel),fillColor:Qo[t]||Fe(e.keyLabel)})})),g=m.sort((function(e,t){return e.name-t.name}));return Object(p.a)(Object(p.a)({},t),{},{widgetConfiguration:O,data:g})}break;case Do.barChart:if("bargauge"===a){var x=be()(e,"targets[0].result",[]);null===x&&(x=[]);var f=function(e,t){return e[0]-t[0]},v=[];return v=t.customStructure?t.customStructure.map((function(e){var t=x.find((function(t){var a=Object.keys(t.metric);return t.metric[a[0]]===e.originTag})),a=be()(t,"values",[]).sort(f),n=a[a.length-1]||["","0"];return{name:e.displayTag,a:parseInt(n[1])}})):x.map((function(e){var t=Object.keys(e.metric),a=e.metric[t[0]],n=be()(e,"values",[]).sort(f),c=n[n.length-1]||["","0"];return{name:a,a:parseInt(c[1])}})),Object(p.a)(Object(p.a)({},t),{},{data:v})}break;case Do.singleRep:if("stat"===a){var y=be()(e,"targets[0].result[0].values",[]);null===y&&(y=[]);var S=be()(e,"options.reduceOptions.calcs[0]","lastNotNull"),C=Xo(y,S),k=y.sort((function(e,t){return e[0]-t[0]})),w=[];1===k.length&&w.push({value:0}),k.forEach((function(e){w.push({value:parseInt(e[1])})}));var T=t.labelDisplayFunction?t.labelDisplayFunction(C[1]):C[1];return Object(p.a)(Object(p.a)({},t),{},{data:w,innerLabel:T})}}return t},ts=function(e){var t=e.split(" "),a=function(){var t=e;return isNaN(parseFloat(e))||(t=Pe(parseFloat(e))),Object(We.jsx)(n.Fragment,{children:t})};return 2!==t.length?a():Oe.includes(t[1])?Object(We.jsxs)("span",{className:"commonValue",children:[t[0],Object(We.jsx)("span",{className:"unitText",children:t[1]})]}):a()},as=Object(v.a)({root:{backgroundColor:"transparent",paddingTop:0,paddingBottom:0,fontSize:22,textTransform:"uppercase",color:"#D0D0D0"},selected:{"& .MuiTab-wrapper":{color:"#07193E",fontWeight:"bold"}},indicator:{background:"transparent linear-gradient(90deg, #072B4E 0%, #081C42 100%) 0% 0% no-repeat padding-box;",height:4},scroller:{maxWidth:1185,position:"relative","&::after":{content:'" "',backgroundColor:"#EEF1F4",height:4,width:"100%",display:"block"}}}),ns=Object(y.a)((function(e){return Object(f.a)({cardsContainer:{maxHeight:440,overflowY:"auto",overflowX:"hidden"},generalStatusCards:{display:"flex",flexDirection:"row",flexWrap:"wrap"},generalStatusTitle:{color:"#767676",fontSize:16,fontWeight:"bold",margin:"15px 10px 0 10px"}})}))((function(e){var t=e.selectedTab,a=e.onChange,c=e.tabOptions,i=(e.classes,as());return Object(We.jsx)(n.Fragment,{children:Object(We.jsx)(Nc.a,{indicatorColor:"primary",textColor:"primary","aria-label":"cluster-tabs",variant:"scrollable",scrollButtons:"auto",value:t,onChange:function(e,t){a(t)},classes:{indicator:i.indicator,scroller:i.scroller},children:c.map((function(e,t){var a={label:e.label};return e.value&&(a=Object(p.a)(Object(p.a)({},a),{},{value:e.value})),e.disabled&&(a=Object(p.a)(Object(p.a)({},a),{},{disabled:e.disabled})),Object(n.createElement)(Ec.a,Object(p.a)(Object(p.a)({},a),{},{classes:{root:i.root,selected:i.selected},id:"simple-tab-".concat(t),"aria-controls":"simple-tabpanel-".concat(t),key:"tab-".concat(t,"-").concat(e.label)}))}))})})})),cs=Object(v.a)({root:{backgroundColor:"#fff",padding:0},title:Object(p.a)({},Ct.titleContainer),content:{maxWidth:"100%"}}),is=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)({},Ct),{},{cardRoot:Object(p.a)(Object(p.a)({},Ct.singleValueContainer),{},{"&.MuiPaper-root":{borderRadius:10}}),cardsContainer:{maxHeight:440,overflowY:"auto",overflowX:"hidden"},metricText:{fontSize:70,lineHeight:1.1,color:"#07193E",fontWeight:"bold"},unitText:{fontSize:10,color:"#767676",fontWeight:"normal"},subHearderContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center"},subMessage:{fontSize:10,color:"#767676","&.bold":{fontWeight:"bold"}},headerContainer:{display:"flex",justifyContent:"space-between"},viewAll:{fontSize:10,color:"#C83B51",textTransform:"capitalize","& a, & a:hover, & a:visited, & a:active":{color:"#C83B51"}},extraMargin:{margin:"10px 20px 10px 0"}}))}))((function(e){var t=e.title,a=e.metricValue,c=e.metricUnit,i=e.subMessage,r=e.moreLink,o=e.rightComponent,s=e.extraMargin,l=void 0!==s&&s,d=e.classes,u=cs(),b=function(){return Object(We.jsx)(n.Fragment,{children:Object(We.jsxs)("div",{className:d.subHearderContainer,children:[Object(We.jsxs)("div",{className:d.leftSide,children:[Object(We.jsx)("div",{children:Object(We.jsxs)("span",{className:d.metricText,children:[a,Object(We.jsx)("span",{className:d.unitText,children:c})]})}),i&&Object(We.jsx)("div",{className:"".concat(d.subMessage," ").concat(i.fontWeight?i.fontWeight:""),children:i.message})]}),Object(We.jsx)("div",{className:d.rightSide,children:o})]})})},j=function(){return Object(We.jsx)(n.Fragment,{children:Object(We.jsxs)("div",{className:d.headerContainer,children:[Object(We.jsx)("span",{className:d.title,children:t}),r&&Object(We.jsx)(n.Fragment,{children:Object(We.jsx)("span",{className:d.viewAll,children:Object(We.jsx)(lc.a,{to:r,children:"View All"})})})]})})};return Object(We.jsx)(n.Fragment,{children:Object(We.jsx)(dc.a,{className:"".concat(d.cardRoot," ").concat(l?d.extraMargin:""),children:""!==a&&Object(We.jsx)(uc.a,{title:Object(We.jsx)(j,{}),subheader:Object(We.jsx)(n.Fragment,{children:Object(We.jsx)(b,{})}),classes:{root:u.root,title:u.title,content:u.content}})})})})),rs=function(e){var t=e.title,a=e.leftComponent,c=e.rightComponent;return Object(We.jsx)(n.Fragment,{children:Object(We.jsx)(is,{title:t,metricValue:a,rightComponent:c})})},os=a(688),ss=a(689),ls=a(213),ds=a(214),us=a(379),bs=a(212),js=a(183),hs=a(209),ms=a.n(hs),ps=Object(y.a)((function(e){return Object(f.a)(Object(p.a)({},wt))}))((function(e){var t=e.active,a=e.payload,n=e.label,c=e.barChartConfiguration,i=e.classes;return t?Object(We.jsxs)("div",{className:i.customTooltip,children:[Object(We.jsx)("div",{className:i.timeStampTitle,children:n}),a&&a.map((function(e,t){return Object(We.jsxs)("div",{className:i.labelContainer,children:[Object(We.jsx)("div",{className:i.labelColor,style:{backgroundColor:c[t].color}}),Object(We.jsx)("div",{className:i.itemValue,children:Object(We.jsx)("span",{className:i.valueContainer,children:e.value})})]},"pltiem-".concat(t,"-").concat(n))}))]}):null})),Os="DASHBOARD/OPEN_ZOOM",gs="DASHBOARD/CLOSE_ZOOM";function xs(e){return{type:Os,widget:e}}var fs=function(e){var t=e.y,a=e.payload;return Object(We.jsx)("text",{width:50,fontSize:"63%",textAnchor:"start",fill:"#333",transform:"translate(5,".concat(t,")"),fontWeight:700,dy:3,children:a.value})},vs=Object(o.b)(null,{displayErrorMessage:ce,openZoomPage:xs}),ys=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)({},Ct),{},{loadingAlign:{width:"100%",paddingTop:"15px",textAlign:"center",margin:"auto"}}))}))(vs((function(e){var t=e.classes,a=e.title,c=e.panelItem,i=e.timeStart,r=e.timeEnd,o=e.propLoading,s=e.displayErrorMessage,l=e.apiPrefix,d=e.zoomActivated,u=void 0!==d&&d,b=e.openZoomPage,j=Object(n.useState)(!0),h=Object(m.a)(j,2),p=h[0],O=h[1],x=Object(n.useState)([]),f=Object(m.a)(x,2),v=f[0],y=f[1],S=Object(n.useState)(null),C=Object(m.a)(S,2),k=C[0],w=C[1];Object(n.useEffect)((function(){o&&O(!0)}),[o]),Object(n.useEffect)((function(){if(p){var e=0;if(null!==i&&null!==r){var t=r.unix()-i.unix(),a=Math.floor(t/60);e=a<1?15:a}Ge.invoke("GET","/api/v1/".concat(l,"/info/widgets/").concat(c.id,"/?step=").concat(e,"&").concat(null!==i?"&start=".concat(i.unix()):"").concat(null!==i&&null!==r?"&":"").concat(null!==r?"end=".concat(r.unix()):"")).then((function(e){var t=es(e,c);y(t.data),w(t),O(!1)})).catch((function(e){s(e),O(!1)}))}}),[p,c,r,i,s,l]);var T=k?k.widgetConfiguration:[],N=0,E=0;if(1===T.length){var A=T[0];v.forEach((function(e,t){e[A.dataKey]>E&&(E=e[A.dataKey],N=t)}))}return Object(We.jsxs)("div",{className:u?"":t.singleValueContainer,children:[!u&&Object(We.jsxs)("div",{className:t.titleContainer,children:[a," ",Object(We.jsx)("button",{onClick:function(){b(c)},className:t.zoomChartIcon,children:Object(We.jsx)(ms.a,{})})]}),p&&Object(We.jsx)("div",{className:t.loadingAlign,children:Object(We.jsx)(g.a,{})}),!p&&Object(We.jsx)("div",{className:u?t.zoomChartCont:t.contentContainer,children:Object(We.jsx)(os.a,{width:"99%",children:Object(We.jsxs)(ss.a,{data:v,layout:"vertical",barCategoryGap:1,children:[Object(We.jsx)(ls.a,{type:"number",hide:!0}),Object(We.jsx)(ds.a,{dataKey:"name",type:"category",interval:0,tick:Object(We.jsx)(fs,{}),tickLine:!1,axisLine:!1,width:150}),T.map((function(e){return Object(We.jsx)(us.a,{dataKey:e.dataKey,fill:e.color,background:e.background,barSize:u?25:12,children:1===T.length?Object(We.jsx)(n.Fragment,{children:v.map((function(t,a){return Object(We.jsx)(bs.a,{fill:a===N?e.greatestColor:e.color},"chart-bar-".concat(a.toString()))}))}):null},"bar-".concat(e.dataKey))})),Object(We.jsx)(js.a,{cursor:{fill:"rgba(255, 255, 255, 0.3)"},content:Object(We.jsx)(ps,{barChartConfiguration:T})})]})})})]})}))),Ss=a(693),Cs=a(694),ks=a(347),ws=Object(y.a)((function(e){return Object(f.a)(Object(p.a)({},wt))}))((function(e){var t=e.active,a=e.payload,n=e.label,c=e.linearConfiguration,i=e.yAxisFormatter,r=e.classes;return t?Object(We.jsxs)("div",{className:r.customTooltip,children:[Object(We.jsx)("div",{className:r.timeStampTitle,children:De(n,!0)}),a&&a.map((function(e,t){return Object(We.jsxs)("div",{className:r.labelContainer,children:[Object(We.jsx)("div",{className:r.labelColor,style:{backgroundColor:c[t].lineColor}}),Object(We.jsx)("div",{className:r.itemValue,children:Object(We.jsxs)("span",{className:r.valueContainer,children:[c[t].keyLabel,":"," ",i(e.value)]})})]},"lbPl-".concat(t,"-").concat(c[t].keyLabel))}))]}):null})),Ts=Object(o.b)(null,{displayErrorMessage:ce,openZoomPage:xs}),Ns=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)({},Ct),{},{containerElements:{display:"flex",flexDirection:"row",height:"100%",flexGrow:1},verticalAlignment:{flexDirection:"column"},chartCont:{position:"relative",height:140,width:"100%"},legendChart:{display:"flex",flexDirection:"column",flex:"0 1 auto",maxHeight:130,margin:0,overflowY:"auto",position:"relative",textAlign:"center",width:"100%",justifyContent:"flex-start",color:"#404143",fontWeight:"bold",fontSize:12},loadingAlign:{margin:"auto"}}))}))(Ts((function(e){var t=e.classes,a=e.title,i=e.displayErrorMessage,r=e.timeStart,o=e.timeEnd,s=e.propLoading,l=e.panelItem,d=e.apiPrefix,u=e.hideYAxis,b=void 0!==u&&u,j=e.areaWidget,h=void 0!==j&&j,p=e.yAxisFormatter,O=void 0===p?function(e){return e}:p,x=e.xAxisFormatter,f=void 0===x?function(e){return e}:x,v=e.zoomActivated,y=void 0!==v&&v,S=e.openZoomPage,C=Object(n.useState)(!0),k=Object(m.a)(C,2),w=k[0],T=k[1],N=Object(n.useState)([]),E=Object(m.a)(N,2),A=E[0],_=E[1],I=Object(n.useState)(0),M=Object(m.a)(I,2),z=M[0],D=M[1],L=Object(n.useState)(null),F=Object(m.a)(L,2),R=F[0],P=F[1];Object(n.useEffect)((function(){s&&T(!0)}),[s]),Object(n.useEffect)((function(){if(w){var e=0;if(null!==r&&null!==o){var t=o.unix()-r.unix(),a=Math.floor(t/60);e=a<1?15:a}Ge.invoke("GET","/api/v1/".concat(d,"/info/widgets/").concat(l.id,"/?step=").concat(e,"&").concat(null!==r?"&start=".concat(r.unix()):"").concat(null!==r&&null!==o?"&":"").concat(null!==o?"end=".concat(o.unix()):"")).then((function(e){var t=es(e,l);_(t.data),P(t),T(!1);var a,n=0,c=Object(io.a)(t.data);try{for(c.s();!(a=c.n()).done;){var i=a.value;for(var r in i)if("name"!==r){var o=parseInt(i[r]);n<o&&(n=o)}}}catch(s){c.e(s)}finally{c.f()}D(n)})).catch((function(e){i(e),T(!1)}))}}),[w,l,o,r,i,d]);var B=Math.floor(A.length/5),U=R?null===R||void 0===R?void 0:R.widgetConfiguration:[],G=function(e){var t=e.cx,a=e.cy;return e.index%3!==0?null:Object(We.jsx)("circle",{cx:t,cy:a,r:3,strokeWidth:0,fill:"#07264A"})};return Object(We.jsxs)("div",{className:y?"":t.singleValueContainer,children:[!y&&Object(We.jsxs)("div",{className:t.titleContainer,children:[a," ",Object(We.jsx)("button",{onClick:function(){S(l)},className:t.zoomChartIcon,children:Object(We.jsx)(ms.a,{})})]}),Object(We.jsxs)("div",{className:y?t.verticalAlignment:t.containerElements,children:[w&&Object(We.jsx)(g.a,{className:t.loadingAlign}),!w&&Object(We.jsxs)(c.a.Fragment,{children:[Object(We.jsx)("div",{className:y?t.zoomChartCont:t.chartCont,children:Object(We.jsx)(os.a,{width:"99%",children:Object(We.jsxs)(Ss.a,{data:A,margin:{top:5,right:20,left:b?20:5,bottom:0},children:[h&&Object(We.jsx)("defs",{children:Object(We.jsxs)("linearGradient",{id:"colorUv",x1:"0",y1:"0",x2:"0",y2:"1",children:[Object(We.jsx)("stop",{offset:"0%",stopColor:"#ABC8F2",stopOpacity:.9}),Object(We.jsx)("stop",{offset:"95%",stopColor:"#ABC8F2",stopOpacity:0})]})}),Object(We.jsx)(Cs.a,{strokeDasharray:h?"0 0":"3 3",strokeWidth:1,strokeOpacity:.5,stroke:"#07264A30",vertical:!h}),Object(We.jsx)(ls.a,{dataKey:"name",tickFormatter:function(e){return f(e)},interval:B,tick:{fontSize:"70%",fontWeight:"bold",color:"#404143"},tickCount:10,stroke:"#082045"}),Object(We.jsx)(ds.a,{type:"number",domain:[0,1.1*z],hide:b,tickFormatter:function(e){return O(e)},tick:{fontSize:"70%",fontWeight:"bold",color:"#404143"},stroke:"#082045"}),U.map((function(e,t){return Object(We.jsx)(ks.a,{type:"monotone",dataKey:e.dataKey,stroke:e.lineColor,fill:h?"url(#colorUv)":e.fillColor,fillOpacity:h?.3:0,strokeWidth:h?0:2,dot:!!h&&Object(We.jsx)(G,{})},"area-".concat(e.dataKey,"-").concat(t.toString()))})),Object(We.jsx)(js.a,{content:Object(We.jsx)(ws,{linearConfiguration:U,yAxisFormatter:O}),wrapperStyle:{zIndex:5e3}})]})})}),!h&&Object(We.jsxs)(n.Fragment,{children:[y&&Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)("strong",{children:"Series"}),Object(We.jsx)("br",{}),Object(We.jsx)("br",{})]}),Object(We.jsx)("div",{className:t.legendChart,children:U.map((function(e,a){return Object(We.jsxs)("div",{className:t.singleLegendContainer,children:[Object(We.jsx)("div",{className:t.colorContainer,style:{backgroundColor:e.lineColor}}),Object(We.jsx)("div",{className:t.legendLabel,children:e.keyLabel})]},"legend-".concat(e.keyLabel,"-").concat(a.toString()))}))})]})]})]})]})}))),Es=a(716),As=a(348),_s=Object(o.b)(null,{displayErrorMessage:ce}),Is=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)({},Ct),{},{loadingAlign:{width:"100%",paddingTop:"15px",textAlign:"center",margin:"auto"},pieChartLabel:{fontSize:60,color:"#07193E",fontWeight:"bold",width:"100%","& .unitText":{color:"#767676",fontSize:12}},chartContainer:{width:"100%",height:140}}))}))(_s((function(e){var t=e.classes,a=e.title,c=e.panelItem,i=e.timeStart,r=e.timeEnd,o=e.propLoading,s=e.displayErrorMessage,l=e.apiPrefix,d=Object(n.useState)(!0),u=Object(m.a)(d,2),b=u[0],j=u[1],h=Object(n.useState)([]),p=Object(m.a)(h,2),O=p[0],x=p[1],f=Object(n.useState)([]),v=Object(m.a)(f,2),y=v[0],S=v[1],C=Object(n.useState)(null),k=Object(m.a)(C,2),w=k[0],T=k[1];Object(n.useEffect)((function(){o&&j(!0)}),[o]),Object(n.useEffect)((function(){if(b){var e=0;if(null!==i&&null!==r){var t=r.unix()-i.unix(),a=Math.floor(t/60);e=a<1?15:a}Ge.invoke("GET","/api/v1/".concat(l,"/info/widgets/").concat(c.id,"/?step=").concat(e,"&").concat(null!==i?"&start=".concat(i.unix()):"").concat(null!==i&&null!==r?"&":"").concat(null!==r?"end=".concat(r.unix()):"")).then((function(e){var t=es(e,c);x(t.data),S(t.dataOuter),T(t),j(!1)})).catch((function(e){s(e),j(!1)}))}}),[b,c,r,i,s,l]);var N=w?w.widgetConfiguration:[],E=null===w||void 0===w?void 0:w.innerLabel,A=be()(N,"innerChart.colorList",[]),_=be()(N,"outerChart.colorList",[]);return Object(We.jsxs)("div",{className:t.singleValueContainer,children:[Object(We.jsx)("div",{className:t.titleContainer,children:a}),b&&Object(We.jsx)("div",{className:t.loadingAlign,children:Object(We.jsx)(g.a,{})}),!b&&Object(We.jsxs)("div",{className:t.contentContainer,children:[Object(We.jsx)("span",{className:t.pieChartLabel,children:E&&ts(E)}),Object(We.jsx)("div",{className:t.chartContainer,children:Object(We.jsx)(os.a,{width:"99%",children:Object(We.jsxs)(Es.a,{margin:{top:5,bottom:5},children:[y&&Object(We.jsx)(As.a,{data:y,cx:"50%",cy:"50%",dataKey:"value",innerRadius:be()(N,"outerChart.innerRadius",0),outerRadius:be()(N,"outerChart.outerRadius","80%"),startAngle:be()(N,"outerChart.startAngle",0),endAngle:be()(N,"outerChart.endAngle",360),fill:"#201763",children:y.map((function(e,t){return Object(We.jsx)(bs.a,{fill:"undefined"==typeof _[t]?"#393939":_[t]},"cellOuter-".concat(t))}))}),O&&Object(We.jsx)(As.a,{data:O,dataKey:"value",cx:"50%",cy:"50%",innerRadius:be()(N,"innerChart.innerRadius",0),outerRadius:be()(N,"innerChart.outerRadius","80%"),startAngle:be()(N,"innerChart.startAngle",0),endAngle:be()(N,"innerChart.endAngle",360),fill:"#201763",children:O.map((function(e,t){return Object(We.jsx)(bs.a,{fill:"undefined"==typeof A[t]?"#393939":A[t]},"cell-".concat(t))}))})]})})})]})]})}))),Ms=Object(o.b)(null,{displayErrorMessage:ce}),zs=Object(y.a)((function(e){return Object(f.a)({mainWidgetContainer:{display:"inline-flex",color:"#072A4D",alignItems:"center"},icon:{color:"#072A4D",fill:"#072A4D",marginRight:5,marginLeft:12},widgetLabel:{fontWeight:"bold",textTransform:"uppercase",marginRight:10},widgetValue:{marginRight:25}})}))(Ms((function(e){var t=e.classes,a=e.iconWidget,c=e.title,i=e.panelItem,r=e.timeStart,o=e.timeEnd,s=e.propLoading,l=e.displayErrorMessage,d=e.apiPrefix,u=Object(n.useState)(!0),b=Object(m.a)(u,2),j=b[0],h=b[1],p=Object(n.useState)(""),O=Object(m.a)(p,2),x=O[0],f=O[1];return Object(n.useEffect)((function(){s&&h(!0)}),[s]),Object(n.useEffect)((function(){if(j){var e=0;if(null!==r&&null!==o){var t=o.unix()-r.unix(),a=Math.floor(t/60);e=a<1?15:a}Ge.invoke("GET","/api/v1/".concat(d,"/info/widgets/").concat(i.id,"/?step=").concat(e,"&").concat(null!==r?"&start=".concat(r.unix()):"").concat(null!==r&&null!==o?"&":"").concat(null!==o?"end=".concat(o.unix()):"")).then((function(e){var t=es(e,i);f(t.data),h(!1)})).catch((function(e){l(e),h(!1)}))}}),[j,i,o,r,l,d]),Object(We.jsxs)(n.Fragment,{children:[j&&Object(We.jsx)("div",{className:t.loadingAlign,children:Object(We.jsx)(g.a,{})}),!j&&Object(We.jsxs)("span",{className:t.mainWidgetContainer,children:[Object(We.jsx)("span",{className:t.icon,children:a||null}),Object(We.jsxs)("span",{className:t.widgetLabel,children:[c,": "]}),Object(We.jsx)("span",{className:t.widgetValue,children:x})]})]})}))),Ds=Object(o.b)(null,{displayErrorMessage:ce}),Ls=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)({},Ct),{},{loadingAlign:{width:"100%",paddingTop:"5px",textAlign:"center",margin:"auto"}}))}))(Ds((function(e){var t=e.classes,a=e.title,c=e.panelItem,i=e.timeStart,r=e.timeEnd,o=e.propLoading,s=e.displayErrorMessage,l=e.color,d=e.fillColor,u=e.apiPrefix,b=Object(n.useState)(!0),j=Object(m.a)(b,2),h=j[0],p=j[1],O=Object(n.useState)([]),x=Object(m.a)(O,2),f=x[0],v=x[1],y=Object(n.useState)(null),S=Object(m.a)(y,2),C=S[0],k=S[1];Object(n.useEffect)((function(){o&&p(!0)}),[o]),Object(n.useEffect)((function(){if(h){var e=0;if(null!==i&&null!==r){var t=r.unix()-i.unix(),a=Math.floor(t/60);e=a<1?15:a}Ge.invoke("GET","/api/v1/".concat(u,"/info/widgets/").concat(c.id,"/?step=").concat(e,"&").concat(null!==i?"&start=".concat(i.unix()):"").concat(null!==i&&null!==r?"&":"").concat(null!==r?"end=".concat(r.unix()):"")).then((function(e){var t=es(e,c);k(t),v(t.data),p(!1)})).catch((function(e){s(e),p(!1)}))}}),[h,c,r,i,s,u]);var w="colorGradient-".concat(a.split(" ").join("-"));return Object(We.jsxs)("div",{className:t.singleValueContainer,children:[Object(We.jsx)("div",{className:t.titleContainer,children:a}),h&&Object(We.jsx)("div",{className:t.loadingAlign,children:Object(We.jsx)(g.a,{})}),!h&&Object(We.jsx)("div",{className:t.contentContainer,children:Object(We.jsx)(os.a,{width:"99%",children:Object(We.jsxs)(Ss.a,{data:f,children:[Object(We.jsx)("defs",{children:Object(We.jsxs)("linearGradient",{id:w,x1:"0",y1:"0",x2:"0",y2:"1",children:[Object(We.jsx)("stop",{offset:"5%",stopColor:d,stopOpacity:1}),Object(We.jsx)("stop",{offset:"95%",stopColor:d,stopOpacity:0})]})}),Object(We.jsx)(ds.a,{domain:[0,function(e){return 2*e}],hide:!0}),Object(We.jsx)(ks.a,{type:"monotone",dataKey:"value",stroke:l,fill:"url(#".concat(w,")"),fillOpacity:1}),Object(We.jsx)("text",{x:"0%",y:"80%",textAnchor:"start",dominantBaseline:"auto",fontWeight:700,fontSize:65,fill:"#07193E",children:C?Pe(parseInt(C.innerLabel||"0")):""})]})})})]})}))),Fs=Object(o.b)(null,{displayErrorMessage:ce}),Rs=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)({},Ct),{},{contentContainer:Object(p.a)(Object(p.a)({},Ct.contentContainer),{},{fontWeight:700,color:"#072045",fontSize:18,textAlign:"center"}),loadingAlign:{width:"100%",textAlign:"center",margin:"auto"},metric:{fontSize:60,lineHeight:1,color:"#07193E",fontWeight:700},titleElement:{fontSize:10,color:"#767676",fontWeight:700},containerAlignment:{display:"flex",height:140,flexDirection:"column",justifyContent:"center","& .unitText":{color:"#767676",fontSize:12}}}))}))(Fs((function(e){var t=e.title,a=e.panelItem,c=e.timeStart,i=e.timeEnd,r=e.propLoading,o=e.displayErrorMessage,s=e.classes,l=e.apiPrefix,d=Object(n.useState)(!0),u=Object(m.a)(d,2),b=u[0],j=u[1],h=Object(n.useState)(""),p=Object(m.a)(h,2),O=p[0],x=p[1];return Object(n.useEffect)((function(){r&&j(!0)}),[r]),Object(n.useEffect)((function(){if(b){var e=0;if(null!==c&&null!==i){var t=i.unix()-c.unix(),n=Math.floor(t/60);e=n<1?15:n}Ge.invoke("GET","/api/v1/".concat(l,"/info/widgets/").concat(a.id,"/?step=").concat(e,"&").concat(null!==c?"&start=".concat(c.unix()):"").concat(null!==c&&null!==i?"&":"").concat(null!==i?"end=".concat(i.unix()):"")).then((function(e){var t=es(e,a);x(t.data),j(!1)})).catch((function(e){o(e),j(!1)}))}}),[b,a,i,c,o,l]),Object(We.jsxs)("div",{className:s.containerAlignment,children:[b&&Object(We.jsx)("div",{className:s.loadingAlign,children:Object(We.jsx)(g.a,{})}),!b&&Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)("div",{className:s.metric,children:ts(O)}),Object(We.jsx)("div",{className:s.titleElement,children:t})]})]})}))),Ps=function(e,t,a,n,c){var i=arguments.length>5&&void 0!==arguments[5]&&arguments[5];switch(e.type){case Do.singleValue:return Object(We.jsx)(Rs,{title:e.title,panelItem:e,timeStart:t,timeEnd:a,propLoading:n,apiPrefix:c});case Do.simpleWidget:return Object(We.jsx)(zs,{title:e.title,panelItem:e,timeStart:t,timeEnd:a,propLoading:n,apiPrefix:c,iconWidget:e.widgetIcon});case Do.pieChart:return Object(We.jsx)(Is,{title:e.title,panelItem:e,timeStart:t,timeEnd:a,propLoading:n,apiPrefix:c});case Do.linearGraph:case Do.areaGraph:return Object(We.jsx)(Ns,{title:e.title,panelItem:e,timeStart:t,timeEnd:a,propLoading:n,hideYAxis:e.disableYAxis,xAxisFormatter:e.xAxisFormatter,yAxisFormatter:e.yAxisFormatter,apiPrefix:c,areaWidget:e.type===Do.areaGraph,zoomActivated:i});case Do.barChart:return Object(We.jsx)(ys,{title:e.title,panelItem:e,timeStart:t,timeEnd:a,propLoading:n,apiPrefix:c,zoomActivated:i});case Do.singleRep:var r=e.fillColor?e.fillColor:e.color;return Object(We.jsx)(Ls,{title:e.title,panelItem:e,timeStart:t,timeEnd:a,propLoading:n,color:e.color,fillColor:r,apiPrefix:c});default:return null}},Bs=Object(o.b)(null,{onCloseAction:function(){return{type:gs}}}),Us=Bs((function(e){var t=e.value,a=e.modalOpen,c=e.timeStart,i=e.timeEnd,r=e.apiPrefix,o=e.onCloseAction;return t?Object(We.jsx)(zn,{title:t.title,onClose:function(){o()},modalOpen:a,wideLimit:!1,noContentPadding:!0,children:Object(We.jsx)(n.Fragment,{children:Ps(t,c,i,!0,r,!0)})}):null})),Gs=a(352),Ks=a.n(Gs),Ws=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)(Object(p.a)({},pt),kt),{},{syncButton:{"&.MuiButton-root .MuiButton-iconSizeMedium > *:first-of-type":{fontSize:18}},schedulerIcon:{opacity:.4,fontSize:10,"& svg":{width:18,height:18}},selectorLabel:{color:"#9D9E9D",fontWeight:"bold",whiteSpace:"nowrap",marginLeft:10,fontSize:12}}))}))((function(e){var t=e.classes,a=e.timeStart,c=e.setTimeStart,i=e.timeEnd,r=e.setTimeEnd,o=e.triggerSync;return Object(We.jsx)(n.Fragment,{children:Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.timeContainers,children:[Object(We.jsx)("span",{className:t.filterTitle,children:"Filter:"}),Object(We.jsxs)("div",{className:t.filterContainer,children:[Object(We.jsx)("span",{className:"".concat(t.filterTitle," ").concat(t.schedulerIcon),children:Object(We.jsx)(ho.a,{})}),Object(We.jsx)("span",{className:t.selectorLabel,children:"Start Time:"}),Object(We.jsx)(mo,{value:a,onChange:c,forFilterContained:!0,id:"stTime",noInputIcon:!0}),Object(We.jsx)("span",{className:t.divisorLine,children:"\xa0"}),Object(We.jsx)("span",{className:"".concat(t.filterTitle," ").concat(t.schedulerIcon),children:Object(We.jsx)(Ks.a,{})}),Object(We.jsx)("span",{className:t.selectorLabel,children:"End Time:"}),Object(We.jsx)(mo,{value:i,onChange:r,forFilterContained:!0,id:"endTime",noInputIcon:!0})]}),o&&Object(We.jsx)(S.a,{type:"button",variant:"contained",color:"primary",onClick:o,endIcon:Object(We.jsx)(Ca,{}),className:t.syncButton,children:"Sync"})]})})})),Vs=Object(o.b)((function(e){return{zoomOpen:e.dashboard.zoom.openZoom,zoomWidget:e.dashboard.zoom.widgetRender}}),{displayErrorMessage:ce}),Hs=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)(Object(p.a)({},pt),kt),{},{syncButton:{"&.MuiButton-root .MuiButton-iconSizeMedium > *:first-of-type":{fontSize:18}},actionsTray:Object(p.a)(Object(p.a)({},pt.actionsTray),{},{padding:"0 10px"}),dashboardRow:{display:"flex",flexDirection:"row",justifyContent:"flex-start",flexWrap:"wrap",maxWidth:1180},schedulerIcon:{opacity:.4,fontSize:10,"& svg":{width:18,height:18}}}))}))(Vs((function(e){var t=e.classes,a=e.displayErrorMessage,c=e.apiPrefix,i=void 0===c?"admin":c,r=e.zoomOpen,o=e.zoomWidget,s=Object(n.useState)(null),l=Object(m.a)(s,2),d=l[0],u=l[1],b=Object(n.useState)(null),j=Object(m.a)(b,2),h=j[0],p=j[1],O=Object(n.useState)(!0),g=Object(m.a)(O,2),x=g[0],f=g[1],v=Object(n.useState)($o),y=Object(m.a)(v,2),S=y[0],C=y[1],w=Object(n.useState)(0),T=Object(m.a)(w,2),N=T[0],E=T[1],A=Object(n.useCallback)((function(e,a){return null===a||void 0===a?void 0:a.map((function(a,c){var r=a.length,o=Math.floor(12/r);return o<1?o=1:o>12&&(o=12),Object(We.jsx)(k.a,{item:!0,xs:12,className:t.dashboardRow,children:a.map((function(e,a){var c=S.find((function(t){return t.id===e}));return Object(We.jsx)(k.a,{className:t.widgetPanelDelimiter,item:!0,xs:7,sm:8,md:6,lg:o,children:Object(We.jsx)(k.a,{item:!0,xs:12,children:c?Object(We.jsx)(n.Fragment,{children:c.mergedPanels?Object(We.jsx)(n.Fragment,{children:Object(We.jsx)(rs,{title:c.title,leftComponent:Ps(c.mergedPanels[0],d,h,x,i),rightComponent:Ps(c.mergedPanels[1],d,h,x,i)})}):Ps(c,d,h,x,i)}):null})},"widget-".concat(e,"-").concat(a))}))},"line-".concat(e,"-").concat(c))}))}),[d,h,x,i,t.dashboardRow,t.widgetPanelDelimiter,S]),_=Object(n.useCallback)((function(){var e=0;if(null!==d&&null!==h){var t=h.unix()-d.unix(),n=Math.floor(t/60);e=n<1?15:n}Ge.invoke("GET","/api/v1/".concat(i,"/info?step=").concat(e,"&").concat(null!==d?"&start=".concat(d.unix()):"").concat(null!==d&&null!==h?"&":"").concat(null!==h?"end=".concat(h.unix()):"")).then((function(e){if(e.widgets){var t=(n=e.widgets,$o.map((function(e){var t=n.find((function(t){return t.title.toLowerCase().trim()===e.title.toLowerCase().trim()}));return es(t,e)})));C(t)}else a({errorMessage:"Widget information could not be retrieved at this time. Please try again",detailedError:""});var n;f(!1)})).catch((function(e){a(e),f(!1)}))}),[d,h,a,i]);Object(n.useEffect)((function(){x&&_()}),[x,_]);return Object(We.jsxs)(n.Fragment,{children:[r&&Object(We.jsx)(Us,{modalOpen:r,timeStart:d,timeEnd:h,widgetRender:0,value:o,apiPrefix:i}),Object(We.jsx)(Ws,{timeStart:d,setTimeStart:u,timeEnd:h,setTimeEnd:p,triggerSync:function(){f(!0)}}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ns,{selectedTab:N,onChange:function(e){E(e)},tabOptions:[{label:"Usage"},{label:"Traffic"},{label:"Resources"}]})}),Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.widgetsContainer,children:[Object(We.jsx)(Ic,{index:0,value:N,children:A("Summary",[[66,44,500,501],[50,502],[80,81,1],[68,52],[63,70]])}),Object(We.jsx)(Ic,{index:1,value:N,children:A("Traffic",[[60],[71,17],[73]])}),Object(We.jsx)(Ic,{index:2,value:N,children:A("Resources",[[76,77],[11,8],[82,74]])})]})]})}))),qs=Object(y.a)((function(e){return Object(f.a)(Object(p.a)({},Dt))}))((function(e){var t=e.classes,a=e.server,n=e.index,c=Object.keys(be()(a,"network",{})),i=c.length,r=a.drives?a.drives.length:0,o=c.reduce((function(e,t){return"online"===a.network[t]?e+1:e}),0),s=a.drives?a.drives.filter((function(e){return"ok"===e.state})).length:0;return Object(We.jsx)(dc.a,{className:t.cardContainer,children:Object(We.jsx)(uc.a,{className:t.cardHeader,title:Object(We.jsxs)("div",{children:[Object(We.jsxs)("div",{className:t.cardNumber,children:["Server ",n]}),Object(We.jsxs)("div",{className:t.referenceTitle,children:[a.state&&Object(We.jsx)("span",{className:function(e){switch(e){case"offline":return t.redState;case"online":return t.greenState;default:return t.greyState}}(a.state),children:Object(We.jsx)(Ma,{})}),a.endpoint||""]})]}),subheader:Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.stateContainer,children:[Object(We.jsxs)("span",{className:t.infoValue,children:[Object(We.jsx)("span",{className:"".concat(t.innerState," ").concat(s<=r/2&&t.redState," ").concat(s===r/2+1&&t.yellowState," ").concat(s===r&&t.greenState),children:Object(We.jsx)(Ma,{})}),"Drives: ",s,"/",r," "]}),Object(We.jsxs)("span",{className:t.infoValue,children:[Object(We.jsx)("span",{className:"".concat(t.innerState," ").concat(o<=i/2&&t.redState," ").concat(o===i/2+1&&t.yellowState," ").concat(o===i&&t.greenState),children:Object(We.jsx)(Ma,{})}),"Network: ",o,"/",i," "]}),Object(We.jsxs)("span",{className:t.infoValue,children:["Uptime: ",a.uptime?Me(a.uptime):"N/A"]}),Object(We.jsxs)("span",{className:t.infoValue,children:[Object(We.jsx)(La,{}),Object(We.jsx)("strong",{children:"Version"})," ",a.version?a.version:"N/A"]})]})})})})),Ys=Object(y.a)((function(e){return Object(f.a)(Object(p.a)({},Dt))}))((function(e){var t=e.classes,a=e.drive;return Object(We.jsx)(n.Fragment,{children:Object(We.jsx)(dc.a,{className:t.cardContainer,children:Object(We.jsx)(uc.a,{className:t.cardHeader,title:Object(We.jsxs)("div",{className:t.referenceTitle,children:[a.state&&Object(We.jsx)("span",{className:function(e){switch(e){case"offline":return t.redState;case"ok":return t.greenState;default:return t.greyState}}(a.state),children:Object(We.jsx)(Ma,{})}),a.endpoint||""]}),subheader:Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.stateContainer,children:[Object(We.jsxs)("span",{className:t.infoValue,children:[Object(We.jsx)("strong",{children:"Capacity:"})," ",fe(a.totalSpace?a.totalSpace.toString():"0")]}),Object(We.jsxs)("span",{className:t.infoValue,children:[Object(We.jsx)("strong",{children:"Used:"})," ",fe(a.usedSpace?a.usedSpace.toString():"0")]}),Object(We.jsxs)("span",{className:t.infoValue,children:[Object(We.jsx)("strong",{children:"Available:"})," ",fe(a.availableSpace?a.availableSpace.toString():"0")]})]})})})})})),Qs=a(704),Zs=Object(v.a)({ul:{"& .MuiPaginationItem-root":{color:"#07193E",fontSize:14,"&.Mui-selected":{backgroundColor:"transparent",fontWeight:"bold","&::after":{backgroundColor:"#07193E",width:"100%",height:3,content:'" "',position:"absolute",bottom:-3}}}}}),Js=Object(y.a)((function(e){return Object(f.a)({paginatorContainer:{margin:"10px 0 18px",flexWrap:"wrap"},paginatorInformation:{color:"#848484",fontSize:12,fontStyle:"italic",whiteSpace:"nowrap"},paginatorEntity:{color:"#767676",fontSize:12,fontWeight:"bold"},paginationElement:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-end",color:"#848484",fontSize:12}})}))((function(e){var t=e.classes,a=e.page,c=void 0===a?1:a,i=e.itemsPerPage,r=void 0===i?5:i,o=e.entity,s=e.totalItems,l=e.onChange,d=Zs(),u=c*r-r+1,b=u+r-1,j=b>s?s:b,h=Math.ceil(s/r);return Object(We.jsx)(n.Fragment,{children:Object(We.jsxs)(k.a,{container:!0,className:t.paginatorContainer,children:[Object(We.jsxs)(k.a,{item:!0,xs:6,children:[Object(We.jsx)("span",{className:t.paginatorEntity,children:o}),Object(We.jsx)("br",{}),Object(We.jsxs)("span",{className:t.paginatorInformation,children:["Showing"," ",h>1?Object(We.jsxs)(n.Fragment,{children:[u," - ",j," out of"," "]}):null,s," Total ",o]})]}),Object(We.jsx)(k.a,{item:!0,xs:6,className:t.paginationElement,children:h>1&&Object(We.jsxs)(n.Fragment,{children:["Go to:"," ",Object(We.jsx)(Qs.a,{count:h,variant:"text",siblingCount:3,page:c,size:"small",hideNextButton:!0,hidePrevButton:!0,onChange:function(e,t){l(t)},classes:{ul:d.ul}})]})})]})})})),$s=Object(y.a)((function(e){return Object(f.a)(Object(p.a)({cardsContainer:{maxHeight:440,overflowY:"auto",overflowX:"hidden"},generalStatusCards:{display:"flex",flexDirection:"row",flexWrap:"wrap"},generalStatusTitle:{color:"#767676",fontSize:16,fontWeight:"bold",margin:"15px 10px 0 10px"},paginatorContainer:{maxWidth:1185,width:"100%"}},kt))}))((function(e){var t=e.classes,a=e.usage,c=Object(n.useState)(0),i=Object(m.a)(c,2),r=i[0],o=i[1],s=Object(n.useState)(1),l=Object(m.a)(s,2),d=l[0],u=l[1],b=Object(n.useState)(1),j=Object(m.a)(b,2),h=j[0],p=j[1],O=function(e){return void 0===e?0:e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")},g=function(e){return null!=e?e.servers.sort((function(e,t){var a=e.endpoint.toLowerCase(),n=t.endpoint.toLowerCase();return a<n?-1:a>n?1:0})):[]}(a||null),x=function(e){if(void 0===e)return{total:"0",unit:"Mi"};var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=parseInt(e,10);if(0===n)return{total:0,unit:Oe[0]};var c=1024,i=Math.floor(Math.log(n)/Math.log(c)),r=t?0:1,o=n/Math.pow(c,i),s=a?Math.floor(o):o,l=parseFloat(s.toFixed(r)),d=Oe[i];return{total:l,unit:d}}(e);return t}(a&&a.usage?a.usage.toString():"0"),f=[];g.forEach((function(e){var t=e.drives.map((function(e){return e}));f=[].concat(Object(Kt.a)(f),Object(Kt.a)(t))}));var v=g.slice(5*d-5,5*d),y=f.slice(5*h-5,5*h);return Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)("div",{className:t.dashboardBG}),Object(We.jsxs)(k.a,{container:!0,spacing:2,children:[Object(We.jsx)(k.a,{item:!0,xs:12,className:t.generalStatusTitle,children:"General Status"}),Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.dashboardRow,children:[Object(We.jsx)(k.a,{item:!0,xs:7,sm:8,md:6,lg:3,className:t.widgetPanelDelimiter,children:Object(We.jsx)(is,{title:"All Buckets",metricValue:a?O(a.buckets):0,extraMargin:!0})}),Object(We.jsx)(k.a,{item:!0,xs:7,sm:8,md:6,lg:3,className:t.widgetPanelDelimiter,children:Object(We.jsx)(is,{title:"Usage",metricValue:x.total,metricUnit:x.unit,extraMargin:!0})}),Object(We.jsx)(k.a,{item:!0,xs:7,sm:8,md:6,lg:3,className:t.widgetPanelDelimiter,children:Object(We.jsx)(is,{title:"Total Objects",metricValue:a?O(a.objects):0,extraMargin:!0})}),Object(We.jsx)(k.a,{item:!0,xs:7,sm:8,md:6,lg:3,className:t.widgetPanelDelimiter,children:Object(We.jsx)(is,{title:"Servers",metricValue:a?O(g.length):0,subMessage:{message:"Total"},extraMargin:!0})})]}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ns,{selectedTab:r,onChange:function(e){o(e)},tabOptions:[{label:"Servers"},{label:"Drives"}]})}),Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.widgetsContainer,children:[Object(We.jsxs)(Ic,{index:0,value:r,children:[Object(We.jsx)("div",{className:t.paginatorContainer,children:Object(We.jsx)(Js,{page:d,entity:"Servers",totalItems:g.length,onChange:u,itemsPerPage:5})}),v.map((function(e,t){return Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(qs,{server:e,index:t+1})},"serverDS-".concat(t.toString()))}))]}),Object(We.jsxs)(Ic,{index:1,value:r,children:[Object(We.jsx)("div",{className:t.paginatorContainer,children:Object(We.jsx)(Js,{page:h,entity:"Drives",totalItems:f.length,onChange:p,itemsPerPage:5})}),y.map((function(e,t){return Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Ys,{drive:e})},"drive-".concat(t,"-").concat(e.uuid))}))]})]})]})]})})),Xs=Object(o.b)(null,{displayErrorMessage:ce}),el=Object(y.a)((function(e){return Object(f.a)(Object(p.a)({},(e.spacing(4),{container:{position:"relative",maxWidth:1180,padding:"20px 35px 0","& h6":{color:"#777777",fontSize:30},"& p":{"& span:not(*[class*='smallUnit'])":{fontSize:16}}},sectionTitle:{padding:"0px",margin:"0px"},topSpacer:{height:"8px"}})))}))(Xs((function(e){var t=e.classes,a=e.displayErrorMessage,c=Object(n.useState)(!0),i=Object(m.a)(c,2),r=i[0],o=i[1],s=Object(n.useState)(null),l=Object(m.a)(s,2),d=l[0],u=l[1],b=Object(n.useCallback)((function(){Ge.invoke("GET","/api/v1/admin/info").then((function(e){u(e),o(!1)})).catch((function(e){a(e),o(!1)}))}),[u,o,a]);Object(n.useEffect)((function(){r&&b()}),[r,b]);var j=be()(d,"widgets",null);return Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(sc,{label:"Dashboard"}),r?Object(We.jsx)(k.a,{container:!0,children:Object(We.jsx)(k.a,{item:!0,xs:12,className:t.container,children:Object(We.jsx)(O.a,{})})}):Object(We.jsx)(n.Fragment,{children:null!==j?Object(We.jsx)(k.a,{container:!0,className:t.container,children:Object(We.jsx)(Hs,{})}):Object(We.jsx)(k.a,{container:!0,className:t.container,children:Object(We.jsx)($s,{usage:d})})})]})}))),tl=a(722),al=a(696),nl=a(697),cl=[{label:"",group:"common",collapsible:!1},{label:"User",group:"User",collapsible:!0},{label:"Admin",group:"Admin",collapsible:!0},{label:"Tools",group:"Tools",collapsible:!0},{label:"Operator",group:"Operator",collapsible:!1},{label:"",group:"License",collapsible:!1}],il=a(353),rl=a.n(il),ol=a(695),sl=245,ll=Object(o.b)((function(e){return{sidebarOpen:e.system.sidebarOpen,operatorMode:e.system.operatorMode,distributedSetup:e.system.distributedSetup}}),{userLoggedIn:X,setMenuOpen:ee}),dl=ll(Object(y.a)((function(e){var t;return Object(f.a)({logo:{paddingTop:25,height:80,marginBottom:30,paddingLeft:45,borderBottom:"#1C3B64 1px solid",transition:e.transitions.create("paddingLeft",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),"& img":{width:120},"& .MuiIconButton-root":{color:"#ffffff",float:"right"}},logoClosed:{paddingTop:25,marginBottom:0,paddingLeft:34,transition:e.transitions.create("paddingLeft",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),"& .MuiIconButton-root":{color:"#ffffff"}},logoSvg:{width:40},logoSvgClosed:{width:0,transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen})},menuList:{"& .active":{color:"#fff",backgroundBlendMode:"multiply",background:"transparent linear-gradient(90deg, rgba(0, 0, 0, 0.14) 0%, #00000000 100%) 0% 0% no-repeat padding-box","& .MuiSvgIcon-root":{color:"white"},"& .MuiTypography-root":{color:"#fff",fontWeight:"bold"}},"& .MuiSvgIcon-root":{fontSize:16,color:"rgba(255, 255, 255, 0.8)",maxWidth:16},"& .MuiListItemIcon-root":{minWidth:36},"& .MuiTypography-root":{fontSize:15,color:"rgba(255, 255, 255, 0.8)"},"& .MuiListItem-gutters":{paddingRight:0,fontWeight:300},"& .MuiListItem-root":{padding:"2px 0 2px 16px",marginLeft:36,height:50,width:"calc(100% - 30px)"}},menuDivider:{backgroundColor:"#1C3B64",marginRight:36,marginLeft:36,marginBottom:0,height:1},extraMargin:{"&.MuiListItem-gutters":{marginLeft:5}},groupTitle:{color:"#fff",fontSize:10,textTransform:"uppercase",fontWeight:700,marginBottom:3,cursor:"pointer",userSelect:"none",display:"flex",justifyContent:"space-between"},subTitleMenu:{fontWeight:700,marginLeft:10,"&.MuiTypography-root":{fontSize:13,color:"#fff"}},selectorArrow:{marginRight:20,marginTop:1,display:"inline-block",width:0,height:0,borderStyle:"solid",borderWidth:"4px 4px 0 4px",borderColor:"rgba(255, 255, 255, .29) transparent transparent transparent",transform:"rotateZ(0deg)",transitionDuration:"0.2s"},selectorArrowOpen:{transform:"rotateZ(180deg)"},appBar:{zIndex:e.zIndex.drawer+1,transition:e.transitions.create(["width","margin"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen})},appBarShift:{marginLeft:sl,width:"calc(100% - ".concat(sl,"px)"),transition:e.transitions.create(["width","margin"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen})},menuButton:{marginRight:36},hide:{display:"none"},drawer:{width:sl,flexShrink:0,whiteSpace:"nowrap",background:"transparent linear-gradient(90deg, #073052 0%, #081C42 100%) 0% 0% no-repeat padding-box !important",boxShadow:"0px 3px 7px #00000014","& .MuiPaper-root":{backgroundColor:"inherit"}},drawerOpen:{width:sl,transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen})},drawerClose:(t={transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),overflowX:"hidden",width:115},Object(it.a)(t,e.breakpoints.up("sm"),{width:115}),Object(it.a)(t,"& .logo",{background:"red"}),Object(it.a)(t,"& .MuiListItem-root",{padding:"2px 0 2px 16px",marginLeft:36,height:50,width:"48px",transition:e.transitions.create("marginLeft",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),"& .MuiListItemText-root":{display:"none"}}),t),logoIcon:{float:"left","& svg":{fill:"white",width:120}},logoIconClosed:{color:"white",marginLeft:11}})}))((function(e){var t,a,n,i=e.userLoggedIn,r=e.classes,o=e.pages,s=e.operatorMode,l=e.distributedSetup,d=e.sidebarOpen,u=e.setMenuOpen,b=[{group:"common",type:"item",component:lc.b,to:"/dashboard",name:"Dashboard",icon:Object(We.jsx)(Xt,{})},{group:"common",type:"item",component:lc.b,to:"/buckets",name:"Buckets",icon:Object(We.jsx)(Ta,{})},{group:"common",type:"item",component:lc.b,to:"/users",name:"Users",icon:Object(We.jsx)(ga,{})},{group:"common",type:"item",component:lc.b,to:"/groups",name:"Groups",icon:Object(We.jsx)(ya,{})},{group:"common",type:"item",component:lc.b,to:"/account",name:"Service Accounts",icon:Object(We.jsx)(ia,{})},{group:"common",type:"item",component:lc.b,to:"/policies",name:"IAM Policies",icon:Object(We.jsx)(Oa,{})},{group:"common",type:"item",component:lc.b,to:"/settings",name:"Settings",icon:Object(We.jsx)(Ea,{})},{group:"common",type:"item",component:lc.b,to:"/notification-endpoints",name:"Notification Endpoints",icon:Object(We.jsx)(tn,{})},{group:"common",type:"item",component:lc.b,to:"/tiers",name:"Tiers",icon:Object(We.jsx)(an,{})},{group:"common",type:"item",component:lc.b,to:"/tools",name:"Tools",icon:Object(We.jsx)(cn,{})},{group:"Tools",type:"item",component:lc.b,to:"/heal",name:"Heal",icon:Object(We.jsx)(ta,{}),fsHidden:l},{group:"Operator",type:"item",component:lc.b,to:"/tenants",name:"Tenants",icon:Object(We.jsx)(ra,{})},{group:"Operator",type:"item",component:lc.b,to:"/storage",name:"Storage",icon:Object(We.jsx)(qt,{})}],j=o.reduce((function(e,t){return e[t]=!0,e}),{}),m={group:"License",type:"item",component:lc.b,to:"/documentation",name:"Documentation",icon:Object(We.jsx)(xa,{}),forceDisplay:!0};j.hasOwnProperty("/tenants")?b.push({group:"Operator",type:"item",component:lc.b,to:"/license",name:"License",icon:Object(We.jsx)(ha,{})},Object(p.a)(Object(p.a)({},m),{},{group:"Operator",onClick:function(e){e.preventDefault(),window.open("https://docs.min.io/?ref=".concat(s?"op":"con"),"_blank")}})):b.push({group:"License",type:"item",component:lc.b,to:"/license",name:"License",icon:Object(We.jsx)(ha,{})},Object(p.a)(Object(p.a)({},m),{},{group:"License",onClick:function(e){e.preventDefault(),window.open("https://docs.min.io/?ref=".concat(s?"op":"con"),"_blank")}}));var O=b.filter((function(e){return(j[e.to]||e.forceDisplay||"item"!==e.type)&&!1!==e.fsHidden}));return Object(We.jsx)(c.a.Fragment,{children:Object(We.jsxs)(tl.a,{variant:"permanent",className:Object(Hn.a)(r.drawer,(t={},Object(it.a)(t,r.drawerOpen,d),Object(it.a)(t,r.drawerClose,!d),t)),classes:{paper:Object(Hn.a)((a={},Object(it.a)(a,r.drawerOpen,d),Object(it.a)(a,r.drawerClose,!d),a))},children:[Object(We.jsxs)("div",{className:Object(Hn.a)((n={},Object(it.a)(n,r.logo,d),Object(it.a)(n,r.logoClosed,!d),n)),children:[d&&Object(We.jsx)("span",{className:r.logoIcon,children:s?Object(We.jsx)(aa,{}):Object(We.jsx)(da,{})}),!d&&Object(We.jsx)("div",{className:r.logoIconClosed,children:Object(We.jsx)(La,{})}),Object(We.jsx)(kn.a,{onClick:function(){u(!d)},size:"large",children:d?Object(We.jsx)(ol.a,{}):Object(We.jsx)(rl.a,{})})]}),Object(We.jsxs)(fc.a,{className:r.menuList,children:[cl.map((function(e,t){var a=(O||[]).filter((function(t){return t.group===e.group}));return 0===a.filter((function(e){return"title"!==e.type})).length?null:Object(We.jsxs)(c.a.Fragment,{children:[0!==t&&Object(We.jsx)(al.a,{className:r.menuDivider}),a.map((function(e){switch(e.type){case"item":return Object(We.jsxs)(vc.a,{button:!0,onClick:e.onClick,component:e.component,to:e.to,className:e.extraMargin?r.extraMargin:null,children:[e.icon&&Object(We.jsx)(Ln.a,{title:e.name,children:Object(We.jsx)(nl.a,{children:e.icon})}),e.name&&Object(We.jsx)(yc.a,{primary:e.name})]},e.to);case"title":return Object(We.jsx)(vc.a,{component:e.component,className:r.subTitleMenu,children:e.name},e.name);default:return null}}))]},"menuElem-".concat(t.toString()))})),Object(We.jsx)(al.a,{className:r.menuDivider}),Object(We.jsxs)(vc.a,{button:!0,onClick:function(){var e=function(){ye(),i(!1),localStorage.setItem("userLoggedIn",""),h.push("/login")};Ge.invoke("POST","/api/v1/logout").then((function(){e()})).catch((function(t){console.log(t),e()}))},children:[Object(We.jsx)(nl.a,{children:Object(We.jsx)(ka,{})}),Object(We.jsx)(yc.a,{primary:"Logout"})]})]})]})})}))),ul={setModalErrorSnackMessage:re},bl=Object(o.b)(null,ul),jl=Object(y.a)((function(e){return Object(f.a)(Object(p.a)({jsonPolicyEditor:{minHeight:400,width:"100%"},buttonContainer:{textAlign:"right"},infoDetails:{color:"#393939",fontSize:12,fontStyle:"italic",marginBottom:"8px"},containerScrollable:{maxHeight:"calc(100vh - 300px)",overflowY:"auto"},codeMirrorContainer:{marginBottom:20}},dt))}))(bl((function(e){var t=e.classes,a=e.open,c=e.closeModalAndRefresh,i=e.setModalErrorSnackMessage,r=Object(n.useState)(!1),o=Object(m.a)(r,2),s=o[0],l=o[1],d=Object(n.useState)(""),u=Object(m.a)(d,2),b=u[0],j=u[1],h=Object(n.useState)(""),p=Object(m.a)(h,2),g=p[0],x=p[1],f=Object(n.useState)(""),v=Object(m.a)(f,2),y=v[0],C=v[1],w=Object(n.useState)(!1),T=Object(m.a)(w,2),N=T[0],E=T[1],A=Object(n.useState)(!1),_=Object(m.a)(A,2),I=_[0],M=_[1];Object(n.useEffect)((function(){s&&(I?Ge.invoke("POST","/api/v1/service-account-credentials",{policy:b,accessKey:g,secretKey:y}).then((function(e){l(!1),c(e)})).catch((function(e){l(!1),i(e)})):Ge.invoke("POST","/api/v1/service-accounts",{policy:b}).then((function(e){l(!1),c(e)})).catch((function(e){l(!1),i(e)})))}),[s,l,i,b,c,I,g,y]);return Object(We.jsx)(zn,{modalOpen:a,onClose:function(){c(null)},title:"Create Service Account",children:Object(We.jsxs)("form",{noValidate:!0,autoComplete:"off",onSubmit:function(e){!function(e){e.preventDefault(),l(!0)}(e)},children:[Object(We.jsxs)(k.a,{container:!0,className:t.containerScrollable,children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("div",{className:t.infoDetails,children:"Service Accounts inherit the policy explicitly attached to the parent user and the policy attached to each group in which the parent user has membership. You can specify an optional JSON-formatted policy below to restrict the Service Account access to a subset of actions and resources explicitly allowed for the parent user. You cannot modify the Service Account optional policy after saving."})}),Object(We.jsxs)(k.a,{item:!0,xs:12,children:[Object(We.jsx)(ac,{value:"locking",id:"locking",name:"locking",checked:N,onChange:function(e){E(e.target.checked)},label:"Restrict with policy"}),Object(We.jsx)(ac,{value:"locking",id:"locking",name:"locking",checked:I,onChange:function(e){M(e.target.checked)},label:"Customize Credentials"})]}),N&&Object(We.jsx)(k.a,{item:!0,xs:12,className:t.codeMirrorContainer,children:Object(We.jsx)(Lo,{value:b,onBeforeChange:function(e,t,a){j(a)}})}),I&&Object(We.jsxs)(k.a,{item:!0,xs:12,children:[Object(We.jsx)(Pn,{value:g,label:"Access Key",id:"accessKey",name:"accessKey",placeholder:"Enter Access Key",onChange:function(e){x(e.target.value)}}),Object(We.jsx)(Pn,{value:y,label:"Secret Key",id:"secretKey",name:"secretKey",placeholder:"Enter Secret Key",onChange:function(e){C(e.target.value)}})]})]}),Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.buttonContainer,children:[Object(We.jsx)("button",{type:"button",color:"primary",className:t.clearButton,onClick:function(){j("")},children:"Clear"}),Object(We.jsx)(S.a,{type:"submit",variant:"contained",color:"primary",disabled:s,children:"Create"})]}),s&&Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(O.a,{})})]})]})})}))),hl={setErrorSnackMessage:ce},ml=Object(o.b)(null,hl),pl=Object(y.a)((function(e){return Object(f.a)({wrapText:{maxWidth:"200px",whiteSpace:"normal",wordWrap:"break-word"}})}))(ml((function(e){var t=e.classes,a=e.closeDeleteModalAndRefresh,c=e.deleteOpen,i=e.selectedServiceAccount,r=e.setErrorSnackMessage,o=Object(n.useState)(!1),s=Object(m.a)(o,2),l=s[0],d=s[1];Object(n.useEffect)((function(){l&&Ge.invoke("DELETE","/api/v1/service-accounts/".concat(i)).then((function(){d(!1),a(!0)})).catch((function(e){d(!1),r(e)}))}),[l,a,i,r]);return Object(We.jsxs)(wn.a,{open:c,onClose:function(){a(!1)},"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[Object(We.jsx)(Tn.a,{id:"alert-dialog-title",children:"Delete ServiceAccount"}),Object(We.jsxs)(Nn.a,{children:[l&&Object(We.jsx)(O.a,{}),Object(We.jsxs)(cc.a,{id:"alert-dialog-description",children:["Are you sure you want to delete service account"," ",Object(We.jsx)("b",{className:t.wrapText,children:i}),"?"]})]}),Object(We.jsxs)(ic.a,{children:[Object(We.jsx)(S.a,{onClick:function(){a(!1)},color:"primary",disabled:l,children:"Cancel"}),Object(We.jsx)(S.a,{onClick:function(){null!=i&&d(!0)},color:"secondary",autoFocus:!0,disabled:l,children:"Delete"})]})]})}))),Ol=Object(y.a)((function(e){return Object(f.a)({warningBlock:{color:"red"},buttonContainer:{textAlign:"right"},credentialsPanel:{overflowY:"auto",maxHeight:350}})}))((function(e){var t=e.classes,a=e.newServiceAccount,n=e.open,i=e.closeModal,r=e.entity;if(!a)return null;var o=be()(a,"console",null),s=be()(a,"idp",!1);return Object(We.jsx)(zn,{modalOpen:n,onClose:function(){i()},title:"New ".concat(r," Created"),children:Object(We.jsx)(c.a.Fragment,{children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.formScrollable,children:["A new ",r," has been created with the following details:",!s&&o&&Object(We.jsx)(c.a.Fragment,{children:Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.credentialsPanel,children:[Object(We.jsx)("strong",{children:"Console Credentials"}),Array.isArray(o)&&o.map((function(e,t){return Object(We.jsxs)("ul",{children:[Object(We.jsxs)("li",{children:[Object(We.jsx)("b",{children:"Access Key:"})," ",e.accessKey]}),Object(We.jsxs)("li",{children:[Object(We.jsx)("b",{children:"Secret Key:"})," ",e.secretKey]})]},"creds-item-".concat(t.toString()))})),!Array.isArray(o)&&Object(We.jsxs)("ul",{children:[Object(We.jsxs)("li",{children:[Object(We.jsx)("b",{children:"Access Key:"})," ",o.accessKey]}),Object(We.jsxs)("li",{children:[Object(We.jsx)("b",{children:"Secret Key:"})," ",o.secretKey]})]})]})}),s?Object(We.jsx)(w.a,{component:"p",variant:"body1",className:t.warningBlock,children:"Please Login via the configured external identity provider."}):Object(We.jsx)(w.a,{component:"p",variant:"body1",className:t.warningBlock,children:"Write these down, as this is the only time the secret will be displayed."})]}),Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.buttonContainer,children:[!s&&Object(We.jsx)(S.a,{onClick:function(){var e={};if(o)if(Array.isArray(o)){var t=o.map((function(e){return{access_key:e.accessKey,secret_key:e.secretKey}}));e={console:Object(Kt.a)(t)}}else e={console:[{access_key:o.accessKey,secret_key:o.secretKey}]};!function(e,t){var a=document.createElement("a");a.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(t)),a.setAttribute("download",e),a.style.display="none",document.body.appendChild(a),a.click(),document.body.removeChild(a)}("credentials.json",JSON.stringify(Object(p.a)({},e)))},color:"primary",children:"Download"}),Object(We.jsx)(S.a,{onClick:function(){i()},color:"secondary",autoFocus:!0,children:"Done"})]})]})})})})),gl=function(e,t){return e.accessKey>t.accessKey?1:e.accessKey<t.accessKey?-1:0},xl=function(e,t){return e.name>t.name?1:e.name<t.name?-1:0},fl=function(e,t){return e>t?1:e<t?-1:0},vl=Object(o.b)(null,{setModalErrorSnackMessage:re}),yl=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)(Object(p.a)({buttonContainer:{textAlign:"right"}},pt),dt),(e.spacing(4),{container:{position:"relative",maxWidth:1180,padding:"20px 35px 0","& h6":{color:"#777777",fontSize:30},"& p":{"& span:not(*[class*='smallUnit'])":{fontSize:16}}},sectionTitle:{padding:"0px",margin:"0px"},topSpacer:{height:"8px"}})))}))(vl((function(e){var t=e.classes,a=e.open,c=e.closeModal,i=e.setModalErrorSnackMessage,r=Object(n.useState)(""),o=Object(m.a)(r,2),s=o[0],l=o[1],d=Object(n.useState)(""),u=Object(m.a)(d,2),b=u[0],j=u[1],h=Object(n.useState)(""),p=Object(m.a)(h,2),g=p[0],x=p[1],f=Object(n.useState)(!1),v=Object(m.a)(f,2),y=v[0],C=v[1];return a?Object(We.jsx)(zn,{title:"Change Password",modalOpen:a,onClose:function(){j(""),x(""),l(""),c()},"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:Object(We.jsx)("form",{noValidate:!0,autoComplete:"off",onSubmit:function(e){!function(e){if(e.preventDefault(),b===g){if(b.length<8)i({errorMessage:"Passwords must be at least 8 characters long",detailedError:""});else if(!y){C(!0);var t={current_secret_key:s,new_secret_key:b};Ge.invoke("POST","/api/v1/account/change-password",t).then((function(e){C(!1),j(""),x(""),l(""),c()})).catch((function(e){C(!1),j(""),x(""),l(""),i(e)}))}}else i({errorMessage:"New passwords don't match",detailedError:""})}(e)},children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.formScrollable,children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"current-password",name:"current-password",onChange:function(e){l(e.target.value)},label:"Current Password",type:"password",value:s})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"new-password",name:"new-password",onChange:function(e){j(e.target.value)},label:"New Password",type:"password",value:b})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"re-new-password",name:"re-new-password",onChange:function(e){x(e.target.value)},label:"Type New Password Again",type:"password",value:g})})]}),Object(We.jsx)(k.a,{item:!0,xs:12,className:t.buttonContainer,children:Object(We.jsx)(S.a,{type:"submit",variant:"contained",color:"primary",disabled:y||!(s.length>0&&b.length>0&&g.length>0),children:"Save"})}),y&&Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(O.a,{})})]})})}):null}))),Sl=Object(o.b)(null,{displayErrorMessage:ce}),Cl=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)(Object(p.a)({seeMore:{marginTop:e.spacing(3)},paper:{display:"flex",overflow:"auto",flexDirection:"column"},addSideBar:{width:"480px",minWidth:"320px",padding:"20px"},tableToolbar:{paddingLeft:e.spacing(2),paddingRight:e.spacing(0)},wrapCell:{maxWidth:"200px",whiteSpace:"normal",wordWrap:"break-word"},minTableHeader:{color:"#393939","& tr":{"& th":{fontWeight:"bold"}}},twHeight:{minHeight:600},imageIcon:{height:"100%"},iconRoot:{textAlign:"center"}},pt),Ot),(e.spacing(4),{container:{position:"relative",maxWidth:1180,padding:"20px 35px 0","& h6":{color:"#777777",fontSize:30},"& p":{"& span:not(*[class*='smallUnit'])":{fontSize:16}}},sectionTitle:{padding:"0px",margin:"0px"},topSpacer:{height:"8px"}})))}))(Sl((function(e){var t=e.classes,a=e.displayErrorMessage,i=e.changePassword,r=Object(n.useState)([]),o=Object(m.a)(r,2),s=o[0],l=o[1],d=Object(n.useState)(!1),u=Object(m.a)(d,2),b=u[0],j=u[1],h=Object(n.useState)(""),p=Object(m.a)(h,2),O=p[0],g=p[1],x=Object(n.useState)(!1),f=Object(m.a)(x,2),v=f[0],y=f[1],w=Object(n.useState)(!1),T=Object(m.a)(w,2),N=T[0],E=T[1],A=Object(n.useState)(null),_=Object(m.a)(A,2),I=_[0],M=_[1],z=Object(n.useState)(!1),D=Object(m.a)(z,2),L=D[0],F=D[1],R=Object(n.useState)(null),P=Object(m.a)(R,2),B=P[0],U=P[1],G=Object(n.useState)(!1),K=Object(m.a)(G,2),W=K[0],V=K[1];Object(n.useEffect)((function(){H()}),[]),Object(n.useEffect)((function(){b&&Ge.invoke("GET","/api/v1/service-accounts").then((function(e){var t=e.sort(fl);j(!1),l(t)})).catch((function(e){a(e),j(!1)}))}),[b,j,l,a]);var H=function(){j(!0)},q=[{type:"delete",onClick:function(e){M(e),E(!0)}}],Y=s.filter((function(e){return e.toLowerCase().includes(O.toLowerCase())}));return Object(We.jsxs)(c.a.Fragment,{children:[v&&Object(We.jsx)(jl,{open:v,closeModalAndRefresh:function(e){!function(e){if(y(!1),H(),null!==e){var t={console:{accessKey:"".concat(e.accessKey),secretKey:"".concat(e.secretKey)}};U(t),F(!0)}}(e)}}),N&&Object(We.jsx)(pl,{deleteOpen:N,selectedServiceAccount:I,closeDeleteModalAndRefresh:function(e){!function(e){E(!1),e&&H()}(e)}}),L&&Object(We.jsx)(Ol,{newServiceAccount:B,open:L,closeModal:function(){F(!1),U(null)},entity:"Service Account"}),Object(We.jsx)(yl,{open:W,closeModal:function(){return V(!1)}}),Object(We.jsx)(sc,{label:"Service Accounts",actions:Object(We.jsx)(c.a.Fragment,{children:i&&Object(We.jsx)(Ln.a,{title:"Change Password",children:Object(We.jsx)(kn.a,{color:"primary","aria-label":"Change Password",component:"span",onClick:function(){return V(!0)},size:"large",children:Object(We.jsx)(Da,{})})})})}),Object(We.jsxs)(k.a,{container:!0,className:t.container,children:[Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.actionsTray,children:[Object(We.jsx)(C.a,{placeholder:"Search Service Accounts",className:t.searchField,id:"search-resource",label:"",InputProps:{disableUnderline:!0,startAdornment:Object(We.jsx)(Wt.a,{position:"start",children:Object(We.jsx)(Jt,{})})},onChange:function(e){g(e.target.value)},variant:"standard"}),Object(We.jsx)(S.a,{variant:"contained",color:"primary",startIcon:Object(We.jsx)(ba,{}),onClick:function(){y(!0),M(null)},children:"Create service account"})]}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("br",{})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ei,{isLoading:b,records:Y,entityName:"Service Accounts",idField:"",columns:[{label:"Service Account",elementKey:""}],itemActions:q,customPaperHeight:t.twHeight})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(wc,{title:"Learn more about SERVICE ACCOUNTS",iconComponent:Object(We.jsx)(ia,{}),help:Object(We.jsxs)(n.Fragment,{children:["MinIO service accounts are child identities of an authenticated MinIO user, including externally managed identities. Each service account inherits its privileges based on the policies attached to it\u2019s parent user or those groups in which the parent user has membership. Service accounts also support an optional inline policy which further restricts access to a subset of actions and resources available to the parent user.",Object(We.jsx)("br",{}),Object(We.jsx)("br",{}),"You can learn more at our"," ",Object(We.jsx)("a",{href:"https://docs.min.io/minio/baremetal/security/minio-identity-management/user-management.html?ref=con#service-accounts",target:"_blank",rel:"noreferrer",children:"documentation"}),"."]})})})]})]})}))),kl=a(215),wl=a.n(kl),Tl={setModalErrorSnackMessage:re},Nl=Object(o.b)(null,Tl),El=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)({seeMore:{marginTop:e.spacing(3)},paper:{display:"flex",overflow:"auto",flexDirection:"column",paddingTop:15,boxShadow:"none"},addSideBar:{width:"320px",padding:"20px"},tableToolbar:{paddingLeft:e.spacing(2),paddingRight:e.spacing(0)},wrapCell:{maxWidth:"200px",whiteSpace:"normal",wordWrap:"break-word"},minTableHeader:{color:"#393939","& tr":{"& th":{fontWeight:"bold"}}},noFound:{textAlign:"center",padding:"10px 0"},tableContainer:{maxHeight:200},stickyHeader:{backgroundColor:"#fff"},actionsTitle:{fontWeight:600,color:"#000",fontSize:16,alignSelf:"center"},tableBlock:{marginTop:15},filterField:{width:375,fontWeight:600,"& .input":{"&::placeholder":{fontWeight:600,color:"#000"}}}},pt),ft))}))(Nl((function(e){var t=e.classes,a=e.selectedGroups,i=e.setSelectedGroups,r=e.setModalErrorSnackMessage,o=Object(n.useState)([]),s=Object(m.a)(o,2),l=s[0],d=s[1],u=Object(n.useState)(!1),b=Object(m.a)(u,2),j=b[0],h=b[1],p=Object(n.useState)(""),g=Object(m.a)(p,2),x=g[0],f=g[1],v=Object(n.useCallback)((function(){Ge.invoke("GET","/api/v1/groups").then((function(e){var t=be()(e,"groups",[]);t||(t=[]),d(t.sort(fl)),h(!1)})).catch((function(e){r(e),h(!1)}))}),[r]);Object(n.useEffect)((function(){h(!0)}),[]),Object(n.useEffect)((function(){j&&v()}),[j,v]);var y=a||[],S=l.filter((function(e){return e.includes(x)}));return Object(We.jsx)(c.a.Fragment,{children:Object(We.jsxs)(k.a,{item:!0,xs:12,children:[j&&Object(We.jsx)(O.a,{}),null!=l&&l.length>0?Object(We.jsxs)(c.a.Fragment,{children:[Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.actionsTray,children:[Object(We.jsx)("span",{className:t.actionsTitle,children:"Assign Groups"}),Object(We.jsx)(C.a,{placeholder:"Filter by Group",className:t.filterField,id:"search-resource",label:"",InputProps:{startAdornment:Object(We.jsx)(Wt.a,{position:"start",children:Object(We.jsx)(Jt,{})})},onChange:function(e){f(e.target.value)},variant:"standard"})]}),Object(We.jsx)(k.a,{item:!0,xs:12,className:t.tableBlock,children:Object(We.jsx)(ei,{columns:[{label:"Group",elementKey:""}],onSelect:function(e){var t=e.target,a=t.value,n=t.checked,c=Object(Kt.a)(y);return n?c.push(a):c=c.filter((function(e){return e!==a})),i(c),c},selectedItems:y,isLoading:j,records:S,entityName:"Groups",idField:"",customPaperHeight:t.multiSelectTable})})]}):Object(We.jsx)("div",{className:t.noFound,children:"No Groups Available"})]})})}))),Al=Object(o.b)(null,{setModalErrorSnackMessage:re}),_l=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)({seeMore:{marginTop:e.spacing(3)},paper:{display:"flex",overflow:"auto",flexDirection:"column",paddingTop:15,boxShadow:"none"},addSideBar:{width:"320px",padding:"20px"},tableToolbar:{paddingLeft:e.spacing(2),paddingRight:e.spacing(0)},wrapCell:{maxWidth:"200px",whiteSpace:"normal",wordWrap:"break-word"},minTableHeader:{color:"#393939","& tr":{"& th":{fontWeight:"bold"}}},noFound:{textAlign:"center",padding:"10px 0"},tableContainer:{maxHeight:200},stickyHeader:{backgroundColor:"#fff"},actionsTitle:{fontWeight:600,color:"#000",fontSize:16,alignSelf:"center"},tableBlock:{marginTop:15},filterField:{width:375,fontWeight:600,"& .input":{"&::placeholder":{fontWeight:600,color:"#000"}}}},pt),ft))}))(Al((function(e){var t=e.classes,a=e.selectedPolicy,i=void 0===a?[]:a,r=e.setSelectedPolicy,o=e.setModalErrorSnackMessage,s=Object(n.useState)([]),l=Object(m.a)(s,2),d=l[0],u=l[1],b=Object(n.useState)(!1),j=Object(m.a)(b,2),h=j[0],p=j[1],g=Object(n.useState)(""),x=Object(m.a)(g,2),f=x[0],v=x[1],y=Object(n.useCallback)((function(){p(!0),Ge.invoke("GET","/api/v1/policies?limit=1000").then((function(e){var t=null===e.policies?[]:e.policies;p(!1),u(t.sort(xl))})).catch((function(e){p(!1),o(e)}))}),[o]);Object(n.useEffect)((function(){p(!0)}),[]),Object(n.useEffect)((function(){h&&y()}),[h,y]);var S=d.filter((function(e){return e.name.includes(f)}));return Object(We.jsx)(c.a.Fragment,{children:Object(We.jsxs)(k.a,{item:!0,xs:12,children:[h&&Object(We.jsx)(O.a,{}),d.length>0?Object(We.jsxs)(c.a.Fragment,{children:[Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.actionsTray,children:[Object(We.jsx)("span",{className:t.actionsTitle,children:"Assign Policies"}),Object(We.jsx)(C.a,{placeholder:"Filter by Policy",className:t.filterField,id:"search-resource",label:"",InputProps:{startAdornment:Object(We.jsx)(Wt.a,{position:"start",children:Object(We.jsx)(Jt,{})})},onChange:function(e){v(e.target.value)},variant:"standard"})]}),Object(We.jsx)(k.a,{item:!0,xs:12,className:t.tableBlock,children:Object(We.jsx)(ei,{columns:[{label:"Policy",elementKey:"name"}],onSelect:function(e){var t=e.target,a=t.value,n=t.checked,c=Object(Kt.a)(i);n?c.push(a):c=c.filter((function(e){return e!==a})),c=c.filter((function(e){return""!==e})),r(c)},selectedItems:i,isLoading:h,records:S,entityName:"Policies",idField:"name",customPaperHeight:t.multiSelectTable})})]}):Object(We.jsx)("div",{className:t.noFound,children:"No Policies Available"})]})})}))),Il={setModalErrorSnackMessage:re},Ml=Object(o.b)(null,Il),zl=Object(y.a)((function(e){return Object(f.a)(Object(p.a)({strongText:{fontWeight:700},keyName:{marginLeft:5},buttonContainer:{textAlign:"right"}},dt))}))(Ml((function(e){var t=e.classes,a=e.closeModalAndRefresh,i=e.selectedUser,r=e.open,o=e.setModalErrorSnackMessage,s=Object(n.useState)(!1),l=Object(m.a)(s,2),d=l[0],u=l[1],b=Object(n.useState)(""),j=Object(m.a)(b,2),h=j[0],p=j[1],g=Object(n.useState)(""),x=Object(m.a)(g,2),f=x[0],v=x[1],y=Object(n.useState)(!1),C=Object(m.a)(y,2),w=C[0],T=C[1],N=Object(n.useState)([]),E=Object(m.a)(N,2),A=E[0],_=E[1],I=Object(n.useState)([]),M=Object(m.a)(I,2),z=M[0],D=M[1],L=Object(n.useState)([]),F=Object(m.a)(L,2),R=F[0],P=F[1],B=Object(n.useState)(0),U=Object(m.a)(B,2),G=U[0],K=U[1],W=Object(n.useCallback)((function(){if(!i)return null;Ge.invoke("GET","/api/v1/user?name=".concat(encodeURI(i.accessKey))).then((function(e){u(!1),p(e.accessKey),_(e.memberOf||[]),P(e.memberOf||[]),T("enabled"===e.status)})).catch((function(e){u(!1),o(e)}))}),[i,o]);Object(n.useEffect)((function(){null==i?(p(""),v(""),_([])):W()}),[i,W]);var V=""!==h.trim()&&(""!==f.trim()&&null===i||null!==i);return Object(We.jsxs)(zn,{onClose:function(){a()},modalOpen:r,title:null!==i?"Edit User":"Create User",children:[null!==i&&Object(We.jsx)("div",{className:t.floatingEnabled,children:Object(We.jsx)(ac,{indicatorLabels:["Enabled","Disabled"],checked:w,value:"user_enabled",id:"user-status",name:"user-status",onChange:function(e){T(e.target.checked)},switchOnly:!0})}),Object(We.jsx)(c.a.Fragment,{children:Object(We.jsx)("form",{noValidate:!0,autoComplete:"off",onSubmit:function(e){!function(e){if(e.preventDefault(),f.length<8)return o({errorMessage:"Passwords must be at least 8 characters long",detailedError:""}),void u(!1);d||(u(!0),null!==i?Ge.invoke("PUT","/api/v1/user?name=".concat(encodeURI(i.accessKey)),{status:w?"enabled":"disabled",groups:A,policies:z}).then((function(e){u(!1),a()})).catch((function(e){u(!1),o(e)})):Ge.invoke("POST","/api/v1/users",{accessKey:h,secretKey:f,groups:A,policies:z}).then((function(e){u(!1),a()})).catch((function(e){u(!1),o(e)})))}(e)},children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.formScrollable,children:[Object(We.jsx)(Pn,{id:"accesskey-input",name:"accesskey-input",label:"Access Key",value:h,onChange:function(e){p(e.target.value)},disabled:null!==i}),null!==i?Object(We.jsx)(gc,{label:"Current Groups",content:R.join(", ")}):Object(We.jsx)(Pn,{id:"standard-multiline-static",name:"standard-multiline-static",label:"Secret Key",type:"password",value:f,onChange:function(e){v(e.target.value)},autoComplete:"current-password"}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsxs)(Nc.a,{onChange:function(e,t){K(t)},children:[Object(We.jsx)(Ec.a,{label:"Policies"}),Object(We.jsx)(Ec.a,{label:"Groups"})]})}),0===G&&Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(_l,{selectedPolicy:z,setSelectedPolicy:D})}),1===G&&Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(El,{selectedGroups:A,setSelectedGroups:function(e){_(e)}})})]}),Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.buttonContainer,children:[Object(We.jsx)("button",{type:"button",color:"primary",className:t.clearButton,onClick:function(){null===i?(p(""),v(""),_([])):_([])},children:"Clear"}),Object(We.jsx)(S.a,{type:"submit",variant:"contained",color:"primary",disabled:d||!V,children:"Save"})]}),d&&Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(O.a,{})})]})})})]})}))),Dl={setErrorSnackMessage:ce},Ll=Object(o.b)(null,Dl),Fl=Ll((function(e){var t=e.closeDeleteModalAndRefresh,a=e.deleteOpen,c=e.selectedUser,i=e.setErrorSnackMessage,r=Object(n.useState)(!1),o=Object(m.a)(r,2),s=o[0],l=o[1];return null===c?Object(We.jsx)("div",{}):Object(We.jsxs)(wn.a,{open:a,onClose:function(){t(!1)},"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[Object(We.jsx)(Tn.a,{id:"alert-dialog-title",children:"Delete User"}),Object(We.jsxs)(Nn.a,{children:[s&&Object(We.jsx)(O.a,{}),Object(We.jsxs)(cc.a,{id:"alert-dialog-description",children:["Are you sure you want to delete user ",Object(We.jsx)("b",{children:c.accessKey}),"?"]})]}),Object(We.jsxs)(ic.a,{children:[Object(We.jsx)(S.a,{onClick:function(){t(!1)},color:"primary",disabled:s,children:"Cancel"}),Object(We.jsx)(S.a,{onClick:function(){s||null!=c&&(l(!0),Ge.invoke("DELETE","/api/v1/user?name=".concat(encodeURI(c.accessKey)),{id:c.id}).then((function(e){l(!1),t(!0)})).catch((function(e){l(!1),i(e)})))},color:"secondary",autoFocus:!0,children:"Delete"})]})]})})),Rl={setModalErrorSnackMessage:re},Pl=Object(o.b)(null,Rl),Bl=Object(y.a)((function(e){return Object(f.a)(Object(p.a)({strongText:{fontWeight:700},keyName:{marginLeft:5},buttonContainer:{textAlign:"right"}},dt))}))(Pl((function(e){var t=e.open,a=e.checkedUsers,i=e.closeModalAndRefresh,r=e.classes,o=e.setModalErrorSnackMessage,s=Object(n.useState)(!1),l=Object(m.a)(s,2),d=l[0],u=l[1],b=Object(n.useState)(!1),j=Object(m.a)(b,2),h=j[0],p=j[1],g=Object(n.useState)([]),x=Object(m.a)(g,2),f=x[0],v=x[1];Object(n.useEffect)((function(){d&&(f.length>0?Ge.invoke("PUT","/api/v1/users-groups-bulk",{groups:f,users:a}).then((function(){u(!1),p(!0)})).catch((function(e){u(!1),o(e)})):(u(!1),o({errorMessage:"You need to select at least one group to assign",detailedError:""})))}),[d,u,i,f,a,o]);return Object(We.jsx)(zn,{modalOpen:t,onClose:function(){i(h)},title:h?"The selected users were added to the following groups.":"Add Users to Group",children:h?Object(We.jsxs)(c.a.Fragment,{children:[Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsx)(gc,{label:"Groups",content:f.join(", ")}),Object(We.jsx)(gc,{label:"Users",content:a.join(", ")})]}),Object(We.jsx)("br",{}),Object(We.jsx)("br",{}),Object(We.jsx)("br",{})]}):Object(We.jsx)("form",{noValidate:!0,autoComplete:"off",onSubmit:function(e){e.preventDefault(),u(!0)},children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsxs)(k.a,{item:!0,xs:12,className:r.formScrollable,children:[Object(We.jsx)(gc,{label:"Selected Users",content:a.join(", ")}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("br",{})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(El,{selectedGroups:f,setSelectedGroups:v})})]}),Object(We.jsxs)(k.a,{item:!0,xs:12,className:r.buttonContainer,children:[Object(We.jsx)("button",{type:"button",color:"primary",className:r.clearButton,onClick:function(){v([])},children:"Clear"}),Object(We.jsx)(S.a,{type:"submit",variant:"contained",color:"primary",disabled:d||f.length<1,children:"Save"})]}),d&&Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(O.a,{})})]})})})}))),Ul={setModalErrorSnackMessage:re},Gl=Object(o.b)(null,Ul),Kl=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)({},dt),{},{buttonContainer:{textAlign:"right"}}))}))(Gl((function(e){var t=e.classes,a=e.closeModalAndRefresh,c=e.selectedUser,i=e.selectedGroup,r=e.setModalErrorSnackMessage,o=e.open,s=Object(n.useState)(!1),l=Object(m.a)(s,2),d=l[0],u=l[1],b=Object(n.useState)([]),j=Object(m.a)(b,2),h=j[0],p=j[1],g=Object(n.useState)([]),x=Object(m.a)(g,2),f=x[0],v=x[1];Object(n.useEffect)((function(){if(o){if(null!==i)return void(i&&Ge.invoke("GET","/api/v1/group?name=".concat(encodeURI(i))).then((function(e){var t=be()(e,"policy","");p(t.split(",")),v(t.split(","))})).catch((function(e){r(e),u(!1)})));var e=be()(c,"policy",[]);p(e),v(e)}}),[o,i,c]);var y=be()(c,"accessKey","");return Object(We.jsxs)(zn,{onClose:function(){a()},modalOpen:o,title:"Set Policies",children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(gc,{label:"Selected ".concat(null!==i?"Group":"User"),content:null!==i?i:y})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(gc,{label:"Current Policy",content:h.join(", ")})}),Object(We.jsx)(_l,{selectedPolicy:f,setSelectedPolicy:v}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("br",{})}),Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.buttonContainer,children:[Object(We.jsx)("button",{type:"button",color:"primary",className:t.clearButton,onClick:function(){v(h)},children:"Reset"}),Object(We.jsx)(S.a,{type:"button",variant:"contained",color:"primary",disabled:d,onClick:function(){var e="user",t=null;null!==i?(e="group",t=i):null!==c&&(t=c.accessKey),u(!0),Ge.invoke("PUT","/api/v1/set-policy",{name:f,entityName:t,entityType:e}).then((function(){u(!1),a()})).catch((function(e){u(!1),r(e)}))},children:"Save"})]}),d&&Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(O.a,{})})]})}))),Wl={setErrorSnackMessage:ce},Vl=Object(o.b)(null,Wl),Hl=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)(Object(p.a)(Object(p.a)({seeMore:{marginTop:e.spacing(3)},paper:{display:"flex",overflow:"auto",flexDirection:"column"},addSideBar:{width:"320px",padding:"20px"},tableToolbar:{paddingLeft:e.spacing(2),paddingRight:e.spacing(0)},wrapCell:{maxWidth:"200px",whiteSpace:"normal",wordWrap:"break-word"},minTableHeader:{color:"#393939","& tr":{"& th":{fontWeight:"bold"}}},twHeight:{minHeight:600}},pt),Ot),(e.spacing(4),{container:{position:"relative",maxWidth:1180,padding:"20px 35px 0","& h6":{color:"#777777",fontSize:30},"& p":{"& span:not(*[class*='smallUnit'])":{fontSize:16}}},sectionTitle:{padding:"0px",margin:"0px"},topSpacer:{height:"8px"}})),Lt(e.palette.info.main)))}))(Vl((function(e){var t=e.classes,a=e.setErrorSnackMessage,c=e.history,i=Object(n.useState)([]),r=Object(m.a)(i,2),o=r[0],s=r[1],l=Object(n.useState)(!0),d=Object(m.a)(l,2),u=d[0],b=d[1],j=Object(n.useState)(!1),h=Object(m.a)(j,2),p=h[0],g=h[1],x=Object(n.useState)(!1),f=Object(m.a)(x,2),v=f[0],y=f[1],w=Object(n.useState)(null),T=Object(m.a)(w,2),N=T[0],E=T[1],A=Object(n.useState)(!1),_=Object(m.a)(A,2),I=_[0],M=_[1],z=Object(n.useState)(""),D=Object(m.a)(z,2),L=D[0],F=D[1],R=Object(n.useState)([]),P=Object(m.a)(R,2),B=P[0],U=P[1],G=Object(n.useState)(!1),K=Object(m.a)(G,2),W=K[0],V=K[1];Object(n.useEffect)((function(){u&&Ge.invoke("GET","/api/v1/users").then((function(e){var t=null===e.users?[]:e.users;b(!1),s(t.sort(gl))})).catch((function(e){b(!1),a(e)}))}),[u,a]);var H=o.filter((function(e){return e.accessKey.includes(L)})),q=Ue(localStorage.getItem("userLoggedIn")||""),Y=[{type:"view",onClick:function(e){c.push("/users/".concat(encodeURI(e.accessKey)))}},{type:"delete",onClick:function(e){y(!0),E(e)},disableButtonFunction:function(e){return e===q}}];return Object(We.jsxs)(n.Fragment,{children:[p&&Object(We.jsx)(zl,{open:p,selectedUser:N,closeModalAndRefresh:function(){g(!1),b(!0)}}),W&&Object(We.jsx)(Kl,{open:W,selectedUser:N,selectedGroup:null,closeModalAndRefresh:function(){V(!1),b(!0)}}),v&&Object(We.jsx)(Fl,{deleteOpen:v,selectedUser:N,closeDeleteModalAndRefresh:function(e){!function(e){y(!1),e&&b(!0)}(e)}}),I&&Object(We.jsx)(Bl,{open:I,checkedUsers:B,closeModalAndRefresh:function(e){!function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];M(!1),e&&U([])}(e)}}),Object(We.jsx)(sc,{label:"Users"}),Object(We.jsxs)(k.a,{container:!0,className:t.container,children:[Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.actionsTray,children:[Object(We.jsx)(C.a,{placeholder:"Search Users",className:t.searchField,id:"search-resource",label:"",InputProps:{disableUnderline:!0,startAdornment:Object(We.jsx)(Wt.a,{position:"start",children:Object(We.jsx)(Jt,{})})},onChange:function(e){F(e.target.value)},variant:"standard"}),Object(We.jsx)(S.a,{variant:"contained",color:"primary",startIcon:Object(We.jsx)(wl.a,{}),disabled:B.length<=0,onClick:function(){B.length>0&&M(!0)},children:"Add to Group"}),Object(We.jsx)(S.a,{variant:"contained",color:"primary",startIcon:Object(We.jsx)(ba,{}),onClick:function(){g(!0),E(null)},children:"Create User"})]}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("br",{})}),u&&Object(We.jsx)(O.a,{}),!u&&Object(We.jsxs)(n.Fragment,{children:[o.length>0&&Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ei,{itemActions:Y,columns:[{label:"Access Key",elementKey:"accessKey"}],onSelect:function(e){var t=e.target,a=t.value,n=t.checked,c=Object(Kt.a)(B);return n?c.push(a):c=c.filter((function(e){return e!==a})),U(c),c},selectedItems:B,isLoading:u,records:H,entityName:"Users",idField:"accessKey",customPaperHeight:t.twHeight})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(wc,{title:"Users",iconComponent:Object(We.jsx)(ga,{}),help:Object(We.jsxs)(n.Fragment,{children:["A MinIO user consists of a unique access key (username) and corresponding secret key (password). Clients must authenticate their identity by specifying both a valid access key (username) and the corresponding secret key (password) of an existing MinIO user.",Object(We.jsx)("br",{}),Object(We.jsx)("br",{}),"Each user can have one or more assigned policies that explicitly list the actions and resources to which that user has access. Users can also inherit policies from the groups in which they have membership.",Object(We.jsx)("br",{}),Object(We.jsx)("br",{}),"You can learn more at our"," ",Object(We.jsx)("a",{href:"https://docs.min.io/minio/baremetal/monitoring/bucket-notifications/bucket-notifications.html?ref=con",target:"_blank",rel:"noreferrer",children:"documentation"}),"."]})})})]}),0===o.length&&Object(We.jsx)(k.a,{container:!0,justifyContent:"center",alignContent:"center",alignItems:"center",children:Object(We.jsx)(k.a,{item:!0,xs:8,children:Object(We.jsx)(wc,{title:"Users",iconComponent:Object(We.jsx)(ga,{}),help:Object(We.jsxs)(n.Fragment,{children:["A MinIO user consists of a unique access key (username) and corresponding secret key (password). Clients must authenticate their identity by specifying both a valid access key (username) and the corresponding secret key (password) of an existing MinIO user.",Object(We.jsx)("br",{}),Object(We.jsx)("br",{}),"Each user can have one or more assigned policies that explicitly list the actions and resources to which that user has access. Users can also inherit policies from the groups in which they have membership.",Object(We.jsx)("br",{}),Object(We.jsx)("br",{}),"To get started,"," ",Object(We.jsx)("button",{onClick:function(){g(!0),E(null)},className:t.link,children:"Create a User"}),"."]})})})})]})]})]})}))),ql={setModalErrorSnackMessage:re},Yl=Object(o.b)(null,ql),Ql=Object(y.a)((function(e){return Object(f.a)(Object(p.a)({strongText:{fontWeight:700},keyName:{marginLeft:5},buttonContainer:{textAlign:"right"}},dt))}))(Yl((function(e){var t=e.classes,a=e.closeModalAndRefresh,i=e.selectedUser,r=e.open,o=e.setModalErrorSnackMessage,s=Object(n.useState)(!1),l=Object(m.a)(s,2),d=l[0],u=l[1],b=Object(n.useState)(""),j=Object(m.a)(b,2),h=j[0],p=j[1],g=Object(n.useState)(""),x=Object(m.a)(g,2),f=x[0],v=x[1],y=Object(n.useState)(!1),C=Object(m.a)(y,2),w=C[0],T=C[1],N=Object(n.useState)([]),E=Object(m.a)(N,2),A=E[0],_=E[1],I=Object(n.useCallback)((function(){if(!i)return null;Ge.invoke("GET","/api/v1/user?name=".concat(encodeURI(i))).then((function(e){u(!1),p(e.accessKey),_(e.memberOf||[]),T("enabled"===e.status)})).catch((function(e){u(!1),o(e)}))}),[i,o]);Object(n.useEffect)((function(){null==i?(p(""),v(""),_([])):I()}),[i,I]);var M=""!==h.trim()&&(""!==f.trim()&&null===i||null!==i);return Object(We.jsx)(zn,{onClose:function(){a()},modalOpen:r,title:"Set Groups",children:Object(We.jsx)(c.a.Fragment,{children:Object(We.jsx)("form",{noValidate:!0,autoComplete:"off",onSubmit:function(e){e.preventDefault(),d||(u(!0),null!==i?Ge.invoke("PUT","/api/v1/user?name=".concat(encodeURI(i)),{status:w?"enabled":"disabled",groups:A}).then((function(e){u(!1),a()})).catch((function(e){u(!1),o(e)})):Ge.invoke("POST","/api/v1/users",{accessKey:h,secretKey:f,groups:A}).then((function(e){u(!1),a()})).catch((function(e){u(!1),o(e)})))},children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsx)(k.a,{item:!0,xs:12,className:t.formScrollable,children:Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(El,{selectedGroups:A,setSelectedGroups:function(e){_(e)}})})}),Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.buttonContainer,children:[Object(We.jsx)("button",{type:"button",color:"primary",className:t.clearButton,onClick:function(){null===i?(p(""),v(""),_([])):_([])},children:"Clear"}),Object(We.jsx)(S.a,{type:"submit",variant:"contained",color:"primary",disabled:d||!M,children:"Save"})]}),d&&Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(O.a,{})})]})})})})}))),Zl={setModalErrorSnackMessage:re},Jl=Object(o.b)(null,Zl),$l=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)({},dt),{},{buttonContainer:{textAlign:"right"}}))}))(Jl((function(e){var t=e.classes,a=e.closeModalAndRefresh,c=e.selectedUser,i=e.currentPolicies,r=e.setModalErrorSnackMessage,o=e.open,s=Object(n.useState)(!1),l=Object(m.a)(s,2),d=l[0],u=l[1],b=Object(n.useState)([]),j=Object(m.a)(b,2),h=j[0],p=j[1],g=Object(n.useState)([]),x=Object(m.a)(g,2),f=x[0],v=x[1];return Object(n.useEffect)((function(){if(o){var e,t=[],a=Object(io.a)(i);try{for(a.s();!(e=a.n()).done;){var n=e.value;t.push(n.policy)}}catch(c){a.e(c)}finally{a.f()}p(t),v(t)}}),[o,c]),Object(We.jsxs)(zn,{onClose:function(){a()},modalOpen:o,title:"Set Policies",children:[Object(We.jsx)(_l,{selectedPolicy:f,setSelectedPolicy:v}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("br",{})}),Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.buttonContainer,children:[Object(We.jsx)("button",{type:"button",color:"primary",className:t.clearButton,onClick:function(){v(h)},children:"Reset"}),Object(We.jsx)(S.a,{type:"button",variant:"contained",color:"primary",disabled:d,onClick:function(){var e=c;u(!0),Ge.invoke("PUT","/api/v1/set-policy",{name:f,entityName:e,entityType:"user"}).then((function(){u(!1),a()})).catch((function(e){u(!1),r(e)}))},children:"Save"})]}),d&&Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(O.a,{})})]})}))),Xl={setModalErrorSnackMessage:re},ed=Object(o.b)(null,Xl),td=Object(y.a)((function(e){return Object(f.a)(Object(p.a)({jsonPolicyEditor:{minHeight:400,width:"100%"},buttonContainer:{textAlign:"right"},infoDetails:{color:"#393939",fontSize:12,fontStyle:"italic",marginBottom:"8px"},containerScrollable:{maxHeight:"calc(100vh - 300px)",overflowY:"auto"}},dt))}))(ed((function(e){var t=e.classes,a=e.open,c=e.closeModalAndRefresh,i=e.setModalErrorSnackMessage,r=e.user,o=Object(n.useState)(!1),s=Object(m.a)(o,2),l=s[0],d=s[1],u=Object(n.useState)(""),b=Object(m.a)(u,2),j=b[0],h=b[1],p=Object(n.useState)(""),g=Object(m.a)(p,2),x=g[0],f=g[1],v=Object(n.useState)(""),y=Object(m.a)(v,2),C=y[0],w=y[1],T=Object(n.useState)(!1),N=Object(m.a)(T,2),E=N[0],A=N[1],_=Object(n.useState)(!1),I=Object(m.a)(_,2),M=I[0],z=I[1];Object(n.useEffect)((function(){l&&(M?Ge.invoke("POST","/api/v1/user/".concat(r,"/service-account-credentials"),{policy:j,accessKey:x,secretKey:C}).then((function(e){d(!1),c(e)})).catch((function(e){d(!1),i(e)})):Ge.invoke("POST","/api/v1/user/".concat(r,"/service-accounts"),{policy:j}).then((function(e){d(!1),c(e)})).catch((function(e){d(!1),i(e)})))}),[l,d,i,j,c,r,M,x,C]);return Object(We.jsx)(zn,{modalOpen:a,onClose:function(){c(null)},title:"Create Service Account",children:Object(We.jsxs)("form",{noValidate:!0,autoComplete:"off",onSubmit:function(e){!function(e){e.preventDefault(),d(!0)}(e)},children:[Object(We.jsxs)(k.a,{container:!0,className:t.containerScrollable,children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("div",{className:t.infoDetails,children:"Service Accounts inherit the policy explicitly attached to the parent user and the policy attached to each group in which the parent user has membership. You can specify an optional JSON-formatted policy below to restrict the Service Account access to a subset of actions and resources explicitly allowed for the parent user. You cannot modify the Service Account optional policy after saving."})}),Object(We.jsxs)(k.a,{item:!0,xs:12,children:[Object(We.jsx)(ac,{value:"locking",id:"locking",name:"locking",checked:E,onChange:function(e){A(e.target.checked)},label:"Restrict with policy"}),Object(We.jsx)(ac,{value:"locking",id:"locking",name:"locking",checked:M,onChange:function(e){z(e.target.checked)},label:"Customize Credentials"})]}),E&&Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Lo,{value:j,onBeforeChange:function(e,t,a){h(a)}})}),M&&Object(We.jsxs)(k.a,{item:!0,xs:12,children:[Object(We.jsx)(Pn,{value:x,label:"Access Key",id:"accessKey",name:"accessKey",placeholder:"Enter Access Key",onChange:function(e){f(e.target.value)}}),Object(We.jsx)(Pn,{value:C,label:"Secret Key",id:"secretKey",name:"secretKey",placeholder:"Enter Secret Key",onChange:function(e){w(e.target.value)}})]})]}),Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.buttonContainer,children:[Object(We.jsx)("button",{type:"button",color:"primary",className:t.clearButton,onClick:function(){h("")},children:"Clear"}),Object(We.jsx)(S.a,{type:"submit",variant:"contained",color:"primary",disabled:l,children:"Create"})]}),l&&Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(O.a,{})})]})]})})}))),ad=Object(o.b)((function(e){return{session:e.console.session}}),{setErrorSnackMessage:ce}),nd=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)(Object(p.a)({},Ot),pt),{},{actionsTray:Object(p.a)({},pt.actionsTray)}))}))(ad((function(e){var t=e.classes,a=e.user,i=e.setErrorSnackMessage,r=e.hasPolicy,o=Object(n.useState)([]),s=Object(m.a)(o,2),l=s[0],d=s[1],u=Object(n.useState)(!1),b=Object(m.a)(u,2),j=b[0],h=b[1],p=Object(n.useState)(!1),O=Object(m.a)(p,2),g=O[0],x=O[1],f=Object(n.useState)(!1),v=Object(m.a)(f,2),y=v[0],C=v[1],k=Object(n.useState)(null),w=Object(m.a)(k,2),T=w[0],N=w[1],E=Object(n.useState)(!1),A=Object(m.a)(E,2),_=A[0],I=A[1],M=Object(n.useState)(null),z=Object(m.a)(M,2),D=z[0],L=z[1];Object(n.useEffect)((function(){F()}),[]),Object(n.useEffect)((function(){j&&Ge.invoke("GET","/api/v1/user/".concat(a,"/service-accounts")).then((function(e){var t=e.sort(fl);h(!1),d(t)})).catch((function(e){i(e),h(!1)}))}),[j,h,d,i,a]);var F=function(){h(!0)},R=[{type:"delete",onClick:function(e){N(e),C(!0)}}];return Object(We.jsxs)(c.a.Fragment,{children:[g&&Object(We.jsx)(td,{open:g,closeModalAndRefresh:function(e){!function(e){if(x(!1),F(),null!==e){var t={console:{accessKey:"".concat(e.accessKey),secretKey:"".concat(e.secretKey)}};L(t),I(!0)}}(e)},user:a}),y&&Object(We.jsx)(pl,{deleteOpen:y,selectedServiceAccount:T,closeDeleteModalAndRefresh:function(e){!function(e){C(!1),e&&F()}(e)}}),_&&Object(We.jsx)(Ol,{newServiceAccount:D,open:_,closeModal:function(){I(!1),L(null)},entity:"Service Account"}),Object(We.jsxs)("div",{className:t.actionsTray,children:[Object(We.jsx)("h1",{className:t.sectionTitle,children:"Service Accounts"}),Object(We.jsx)(S.a,{variant:"contained",color:"primary",startIcon:Object(We.jsx)(ba,{}),onClick:function(){x(!0),x(!0),N(null)},disabled:!r,children:"Create service account"})]}),Object(We.jsx)("br",{}),Object(We.jsx)(ei,{isLoading:j,records:l,entityName:"Service Accounts",idField:"",columns:[{label:"Service Account",elementKey:""}],itemActions:R})]})}))),cd=Object(o.b)(null,{setModalErrorSnackMessage:re}),id=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)(Object(p.a)({buttonContainer:{textAlign:"right"}},pt),dt),(e.spacing(4),{container:{position:"relative",maxWidth:1180,padding:"20px 35px 0","& h6":{color:"#777777",fontSize:30},"& p":{"& span:not(*[class*='smallUnit'])":{fontSize:16}}},sectionTitle:{padding:"0px",margin:"0px"},topSpacer:{height:"8px"}})))}))(cd((function(e){var t=e.classes,a=e.open,c=e.userName,i=e.closeModal,r=e.setModalErrorSnackMessage,o=Object(n.useState)(""),s=Object(m.a)(o,2),l=s[0],d=s[1],u=Object(n.useState)(""),b=Object(m.a)(u,2),j=b[0],h=b[1],p=Object(n.useState)(!1),g=Object(m.a)(p,2),x=g[0],f=g[1];return a?Object(We.jsx)(zn,{title:"Change User Password",modalOpen:a,onClose:function(){d(""),h(""),i()},"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:Object(We.jsx)("form",{noValidate:!0,autoComplete:"off",onSubmit:function(e){!function(e){if(e.preventDefault(),!x){if(f(!0),l.length<8)return r({errorMessage:"Passwords must be at least 8 characters long",detailedError:""}),void f(!1);var t={selectedUser:c,newSecretKey:l};Ge.invoke("POST","/api/v1/account/change-user-password",t).then((function(e){f(!1),d(""),h(""),i()})).catch((function(e){f(!1),d(""),h(""),r(e)}))}}(e)},children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.formScrollable,children:[Object(We.jsxs)("h3",{children:["Change password for ",c]}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"new-password",name:"new-password",onChange:function(e){d(e.target.value)},label:"New Password",type:"password",value:l})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"re-new-password",name:"re-new-password",onChange:function(e){h(e.target.value)},label:"Type New Password Again",type:"password",value:j})})]}),Object(We.jsx)(k.a,{item:!0,xs:12,className:t.buttonContainer,children:Object(We.jsx)(S.a,{type:"submit",variant:"contained",color:"primary",disabled:x||!(j.length>0&&l===j),children:"Save"})}),x&&Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(O.a,{})})]})})}):null}))),rd={setErrorSnackMessage:ce},od=Object(o.b)(null,rd),sd=od((function(e){var t=e.closeDeleteModalAndRefresh,a=e.deleteOpen,c=e.userName,i=e.setErrorSnackMessage,r=Object(n.useState)(!1),o=Object(m.a)(r,2),s=o[0],l=o[1];return null===c?Object(We.jsx)("div",{}):Object(We.jsxs)(wn.a,{open:a,onClose:function(){t(!1)},"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[Object(We.jsx)(Tn.a,{id:"alert-dialog-title",children:"Delete User"}),Object(We.jsxs)(Nn.a,{children:[s&&Object(We.jsx)(O.a,{}),Object(We.jsxs)(cc.a,{id:"alert-dialog-description",children:["Are you sure you want to delete user ",Object(We.jsx)("b",{children:c}),"?"]})]}),Object(We.jsxs)(ic.a,{children:[Object(We.jsx)(S.a,{onClick:function(){t(!1)},color:"primary",disabled:s,children:"Cancel"}),Object(We.jsx)(S.a,{onClick:function(){s||null!=c&&(l(!0),Ge.invoke("DELETE","/api/v1/user?name=".concat(encodeURI(c)),{id:c}).then((function(e){l(!1),t(!0)})).catch((function(e){l(!1),i(e)}))),t(!0),h.push("/users/")},color:"secondary",autoFocus:!0,children:"Delete"})]})]})})),ld=a(354),dd=a.n(ld),ud={setErrorSnackMessage:ce},bd=Object(o.b)(null,ud),jd=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)(Object(p.a)({seeMore:{marginTop:e.spacing(3)},paper:{display:"flex",overflow:"auto",flexDirection:"column"},addSideBar:{width:"320px",padding:"20px"},tableToolbar:{paddingLeft:e.spacing(2),paddingRight:e.spacing(0)},wrapCell:{maxWidth:"200px",whiteSpace:"normal",wordWrap:"break-word"},minTableHeader:{color:"#393939","& tr":{"& th":{fontWeight:"bold"}}},fixedHeight:{height:165,minWidth:247,padding:"25px 28px","& svg":{maxHeight:18}},paperContainer:{padding:15,paddingLeft:50,display:"flex"},gridContainer:{display:"grid",gridTemplateColumns:"auto auto",gridGap:8,justifyContent:"flex-start",alignItems:"center","& div:not(.MuiCircularProgress-root)":{display:"flex",alignItems:"center"},"& div:nth-child(odd)":{justifyContent:"flex-end",fontWeight:700},"& div:nth-child(2n)":{minWidth:150}},breadcrumLink:{textDecoration:"none",color:"black"}},pt),Ot),{},{actionsTray:Object(p.a)({},pt.actionsTray)},(e.spacing(4),{container:{position:"relative",maxWidth:1180,padding:"20px 35px 0","& h6":{color:"#777777",fontSize:30},"& p":{"& span:not(*[class*='smallUnit'])":{fontSize:16}}},sectionTitle:{padding:"0px",margin:"0px"},topSpacer:{height:"8px"}})))}))(bd((function(e){var t=e.classes,a=e.match,i=Object(n.useState)(0),r=Object(m.a)(i,2),o=r[0],s=r[1],l=Object(n.useState)(!1),d=Object(m.a)(l,2),u=d[0],b=d[1],j=Object(n.useState)(!1),p=Object(m.a)(j,2),O=p[0],g=p[1],x=Object(n.useState)(!1),f=Object(m.a)(x,2),v=f[0],y=f[1],C=Object(n.useState)(!1),w=Object(m.a)(C,2),T=w[0],N=w[1],E=Object(n.useState)(!1),A=Object(m.a)(E,2),_=A[0],I=A[1],M=Object(n.useState)([]),z=Object(m.a)(M,2),D=z[0],L=z[1],F=Object(n.useState)([]),R=Object(m.a)(F,2),P=R[0],B=R[1],U=Object(n.useState)([]),G=Object(m.a)(U,2),K=G[0],W=G[1],V=Object(n.useState)(!1),H=Object(m.a)(V,2),q=H[0],Y=H[1],Q=Object(n.useState)(!1),Z=Object(m.a)(Q,2),J=Z[0],$=Z[1],X=Object(n.useState)(!1),ee=Object(m.a)(X,2),te=ee[0],ae=ee[1],ne=a.params.userName,ce=Object(n.useCallback)((function(){if(""===ne)return null;b(!0),Ge.invoke("GET","/api/v1/user?name=".concat(encodeURIComponent(ne))).then((function(e){N(!1);var t=e.memberOf||[];L(t);var a,n=[],c=Object(io.a)(t);try{for(c.s();!(a=c.n()).done;){var i=a.value;n.push({group:i})}}catch(d){c.e(d)}finally{c.f()}B(n);var r,o=[],s=Object(io.a)(e.policy);try{for(s.s();!(r=s.n()).done;){var l=r.value;o.push({policy:l})}}catch(d){s.e(d)}finally{s.f()}W(o),I("enabled"===e.status),ae(e.hasPolicy),b(!1)})).catch((function(e){N(!1),b(!1),re(e)}))}),[ne]);Object(n.useEffect)((function(){ce()}),[ce]);return Object(We.jsxs)(c.a.Fragment,{children:[Object(We.jsx)(sc,{label:Object(We.jsx)(n.Fragment,{children:Object(We.jsx)(lc.a,{to:"/users",className:t.breadcrumLink,children:"Users"})}),actions:Object(We.jsx)(c.a.Fragment,{})}),O&&Object(We.jsx)(Ql,{open:O,selectedUser:ne,closeModalAndRefresh:function(){g(!1),ce()}}),v&&Object(We.jsx)($l,{open:v,selectedUser:ne,currentPolicies:K,closeModalAndRefresh:function(){y(!1),ce()}}),J&&Object(We.jsx)(sd,{deleteOpen:J,userName:ne,closeDeleteModalAndRefresh:function(e){!function(e){$(!1),e&&ce()}(e)}}),q&&Object(We.jsx)(id,{open:q,userName:ne,closeModal:function(){return Y(!1)}}),Object(We.jsxs)(k.a,{container:!0,className:t.container,children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ir,{icon:Object(We.jsx)(n.Fragment,{children:Object(We.jsx)(ga,{width:40})}),title:ne,subTitle:Object(We.jsxs)(n.Fragment,{children:["Status: ",_?"Enabled":"Disabled"]}),actions:Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(S.a,{onClick:function(){var e;I(!_),e=!_,T||(N(!0),Ge.invoke("PUT","/api/v1/user?name=".concat(encodeURIComponent(ne)),{status:e?"enabled":"disabled",groups:D}).then((function(e){N(!1)})).catch((function(e){N(!1),re(e)})))},color:"primary",children:_?"Disable":"Enable"}),Object(We.jsx)(Ln.a,{title:"Delete User",children:Object(We.jsx)(mr,{color:"primary","aria-label":"Delete User",onClick:function(){$(!0)},size:"large",children:Object(We.jsx)(na,{})})}),Object(We.jsx)(Ln.a,{title:"Change Password",children:Object(We.jsx)(mr,{color:"primary","aria-label":"Change Password",onClick:function(){Y(!0)},size:"large",children:Object(We.jsx)(dd.a,{})})})]})})}),Object(We.jsx)(k.a,{item:!0,xs:2,children:Object(We.jsxs)(fc.a,{component:"nav",dense:!0,children:[Object(We.jsx)(vc.a,{button:!0,selected:0===o,onClick:function(){s(0)},children:Object(We.jsx)(yc.a,{primary:"Groups"})}),Object(We.jsx)(vc.a,{button:!0,selected:1===o,onClick:function(){s(1)},children:Object(We.jsx)(yc.a,{primary:"Service Accounts"})}),Object(We.jsx)(vc.a,{button:!0,selected:2===o,onClick:function(){s(2)},children:Object(We.jsx)(yc.a,{primary:"Policies"})})]})}),Object(We.jsx)(k.a,{item:!0,xs:10,children:Object(We.jsxs)(k.a,{item:!0,xs:12,children:[Object(We.jsxs)(Ic,{index:0,value:o,children:[Object(We.jsxs)("div",{className:t.actionsTray,children:[Object(We.jsx)("h1",{className:t.sectionTitle,children:"Groups"}),Object(We.jsx)(S.a,{variant:"contained",color:"primary",startIcon:Object(We.jsx)(ba,{}),size:"medium",onClick:function(){g(!0)},children:"Add to Groups"})]}),Object(We.jsx)("br",{}),Object(We.jsx)(ei,{columns:[{label:"Name",elementKey:"group"}],isLoading:u,records:P,entityName:"Groups",idField:"group"})]}),Object(We.jsx)(Ic,{index:1,value:o,children:Object(We.jsx)(nd,{user:ne,classes:t,hasPolicy:te})}),Object(We.jsxs)(Ic,{index:2,value:o,children:[Object(We.jsxs)("div",{className:t.actionsTray,children:[Object(We.jsx)("h1",{className:t.sectionTitle,children:"Policies"}),Object(We.jsx)(S.a,{variant:"contained",color:"primary",startIcon:Object(We.jsx)(Oa,{}),size:"medium",onClick:function(){y(!0)},children:"Assign Policies"})]}),Object(We.jsx)("br",{}),Object(We.jsx)(ei,{itemActions:[{type:"view",onClick:function(e){h.push("/policies/".concat(e.policy))}}],columns:[{label:"Name",elementKey:"policy"}],isLoading:u,records:K,entityName:"Policies",idField:"policy"})]})]})})]})]})}))),hd=Object(o.b)((function(e){return{open:e.system.sidebarOpen}}),{setMenuOpen:ee}),md=Object(s.h)(hd((function(){return Object(We.jsx)(s.c,{history:h,children:Object(We.jsxs)(s.d,{children:[Object(We.jsx)(s.b,{path:"/users/:userName+",component:jd}),Object(We.jsx)(s.b,{path:"/",component:Hl}),Object(We.jsx)(s.b,{component:Gt})]})})}))),pd={setModalErrorSnackMessage:re},Od=Object(o.b)(null,pd),gd=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)({seeMore:{marginTop:e.spacing(3)},paper:{display:"flex",overflow:"auto",flexDirection:"column",paddingTop:15,boxShadow:"none"},addSideBar:{width:"320px",padding:"20px"},tableToolbar:{paddingLeft:e.spacing(2),paddingRight:e.spacing(0)},wrapCell:{maxWidth:"200px",whiteSpace:"normal",wordWrap:"break-word"},minTableHeader:{color:"#393939","& tr":{"& th":{fontWeight:"bold"}}},noFound:{textAlign:"center",padding:"10px 0"},tableContainer:{maxHeight:200},stickyHeader:{backgroundColor:"#fff"},actionsTitle:{fontWeight:600,color:"#000",fontSize:16,alignSelf:"center"},tableBlock:{marginTop:15},filterField:{width:375,fontWeight:600,"& .input":{"&::placeholder":{fontWeight:600,color:"#000"}}}},pt),ft))}))(Od((function(e){var t=e.classes,a=e.selectedUsers,i=e.setSelectedUsers,r=e.editMode,o=void 0!==r&&r,s=e.setModalErrorSnackMessage,l=Object(n.useState)([]),d=Object(m.a)(l,2),u=d[0],b=d[1],j=Object(n.useState)(!1),h=Object(m.a)(j,2),p=h[0],g=h[1],f=Object(n.useState)(""),v=Object(m.a)(f,2),y=v[0],S=v[1],w=Object(n.useCallback)((function(){Ge.invoke("GET","/api/v1/users").then((function(e){var t=be()(e,"users",[]);t||(t=[]),b(t.sort(gl)),g(!1)})).catch((function(e){s(e),g(!1)}))}),[s]);Object(n.useEffect)((function(){g(!0)}),[]),Object(n.useEffect)((function(){p&&w()}),[p,w]);var T=a||[],N=u.filter((function(e){return e.accessKey.includes(y)}));return Object(We.jsx)(c.a.Fragment,{children:Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsxs)(x.a,{className:t.paper,children:[p&&Object(We.jsx)(O.a,{}),null!=u&&u.length>0?Object(We.jsxs)(c.a.Fragment,{children:[Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.actionsTray,children:[Object(We.jsx)("span",{className:t.actionsTitle,children:o?"Edit Members":"Assign Users"}),Object(We.jsx)(C.a,{placeholder:"Filter Users",className:t.filterField,id:"search-resource",label:"",InputProps:{startAdornment:Object(We.jsx)(Wt.a,{position:"start",children:Object(We.jsx)(Jt,{})})},onChange:function(e){S(e.target.value)},variant:"standard"})]}),Object(We.jsx)(k.a,{item:!0,xs:12,className:t.tableBlock,children:Object(We.jsx)(ei,{columns:[{label:"Access Key",elementKey:"accessKey"}],onSelect:function(e){var t=e.target,a=t.value,n=t.checked,c=Object(Kt.a)(T);return n?c.push(a):c=c.filter((function(e){return e!==a})),i(c),c},selectedItems:T,isLoading:p,records:N,entityName:"Users",idField:"accessKey",customPaperHeight:t.multiSelectTable})})]}):Object(We.jsx)("div",{className:t.noFound,children:"No Users Available"})]})})})}))),xd={setModalErrorSnackMessage:re},fd=Object(o.b)(null,xd),vd=Object(y.a)((function(e){return Object(f.a)(Object(p.a)({strongText:{fontWeight:700},keyName:{marginLeft:5},buttonContainer:{textAlign:"right"}},dt))}))(fd((function(e){var t=e.open,a=e.selectedGroup,i=e.closeModalAndRefresh,r=e.classes,o=e.setModalErrorSnackMessage,s=Object(n.useState)(""),l=Object(m.a)(s,2),d=l[0],u=l[1],b=Object(n.useState)(!1),j=Object(m.a)(b,2),h=j[0],p=j[1],g=Object(n.useState)(!1),x=Object(m.a)(g,2),f=x[0],v=x[1],y=Object(n.useState)([]),C=Object(m.a)(y,2),w=C[0],T=C[1],N=Object(n.useState)(!1),E=Object(m.a)(N,2),A=E[0],_=E[1],I=Object(n.useState)(!1),M=Object(m.a)(I,2),z=M[0],D=M[1];Object(n.useEffect)((function(){null!==a?_(!0):(u(""),T([]))}),[a]),Object(n.useEffect)((function(){D(""!==d.trim())}),[d,w]),Object(n.useEffect)((function(){if(f){null!==a?Ge.invoke("PUT","/api/v1/group?name=".concat(encodeURI(d)),{group:d,members:w,status:h?"enabled":"disabled"}).then((function(e){v(!1),i()})).catch((function(e){v(!1),o(e)})):Ge.invoke("POST","/api/v1/groups",{group:d,members:w}).then((function(e){v(!1),i()})).catch((function(e){v(!1),o(e)}))}}),[f,d,w,h,a,i,o]),Object(n.useEffect)((function(){if(a&&A){Ge.invoke("GET","/api/v1/group?name=".concat(encodeURI(a))).then((function(e){p("enabled"===e.status),u(e.name),T(e.members)})).catch((function(e){o(e),_(!1)}))}}),[A,a,o]);return Object(We.jsxs)(zn,{modalOpen:t,onClose:i,title:null!==a?"Edit Group":"Create Group",children:[null!==a&&Object(We.jsx)("div",{className:r.floatingEnabled,children:Object(We.jsx)(ac,{indicatorLabels:["Enabled","Disabled"],checked:h,value:"group_enabled",id:"group-status",name:"group-status",onChange:function(e){p(e.target.checked)},switchOnly:!0})}),Object(We.jsx)("form",{noValidate:!0,autoComplete:"off",onSubmit:function(e){e.preventDefault(),v(!0)},children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsxs)(k.a,{item:!0,xs:12,className:r.formScrollable,children:[null===a?Object(We.jsx)(c.a.Fragment,{children:Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"group-name",name:"group-name",label:"Group Name",value:d,onChange:function(e){u(e.target.value)}})})}):Object(We.jsx)(c.a.Fragment,{children:Object(We.jsx)(gc,{label:"Group Name",content:a})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(gd,{selectedUsers:w,setSelectedUsers:T,editMode:null!==a})})]}),Object(We.jsxs)(k.a,{item:!0,xs:12,className:r.buttonContainer,children:[Object(We.jsx)("button",{type:"button",color:"primary",className:r.clearButton,onClick:function(){null===a&&u(""),T([])},children:"Clear"}),Object(We.jsx)(S.a,{type:"submit",variant:"contained",color:"primary",disabled:f||!z,children:"Save"})]}),f&&Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(O.a,{})})]})})]})}))),yd={setErrorSnackMessage:ce},Sd=Object(o.b)(null,yd),Cd=Sd((function(e){var t=e.selectedGroup,a=e.deleteOpen,i=e.closeDeleteModalAndRefresh,r=e.setErrorSnackMessage,o=Object(n.useState)(!1),s=Object(m.a)(o,2),l=s[0],d=s[1];Object(n.useEffect)((function(){if(l){t&&Ge.invoke("DELETE","/api/v1/group?name=".concat(encodeURI(t))).then((function(){d(!1),i(!0)})).catch((function(e){d(!1),r(e)}))}}),[l,t,i,r]);var u=function(){i(!1)};return Object(We.jsx)(c.a.Fragment,{children:Object(We.jsxs)(wn.a,{open:a,onClose:u,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[Object(We.jsx)(Tn.a,{id:"alert-dialog-title",children:"Delete User"}),Object(We.jsxs)(Nn.a,{children:[l&&Object(We.jsx)(O.a,{}),Object(We.jsxs)(cc.a,{id:"alert-dialog-description",children:["Are you sure you want to delete group ",Object(We.jsx)("b",{children:t}),"?"]})]}),Object(We.jsxs)(ic.a,{children:[Object(We.jsx)(S.a,{onClick:u,color:"primary",disabled:l,children:"Cancel"}),Object(We.jsx)(S.a,{onClick:function(){d(!0)},color:"secondary",autoFocus:!0,children:"Delete"})]})]})})})),kd={setErrorSnackMessage:ce},wd=Object(o.b)(null,kd),Td=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)(Object(p.a)(Object(p.a)({seeMore:{marginTop:e.spacing(3)},paper:{display:"flex",overflow:"auto",flexDirection:"column"},addSideBar:{width:"320px",padding:"20px"},tableToolbar:{paddingLeft:e.spacing(2),paddingRight:e.spacing(0)},wrapCell:{maxWidth:"200px",whiteSpace:"normal",wordWrap:"break-word"},twHeight:{minHeight:600},minTableHeader:{color:"#393939","& tr":{"& th":{fontWeight:"bold"}}}},Lt(e.palette.info.main)),pt),Ot),(e.spacing(4),{container:{position:"relative",maxWidth:1180,padding:"20px 35px 0","& h6":{color:"#777777",fontSize:30},"& p":{"& span:not(*[class*='smallUnit'])":{fontSize:16}}},sectionTitle:{padding:"0px",margin:"0px"},topSpacer:{height:"8px"}})))}))(wd((function(e){var t=e.classes,a=e.setErrorSnackMessage,i=Object(n.useState)(!1),r=Object(m.a)(i,2),o=r[0],s=r[1],l=Object(n.useState)(null),d=Object(m.a)(l,2),u=d[0],b=d[1],j=Object(n.useState)(!1),h=Object(m.a)(j,2),p=h[0],g=h[1],x=Object(n.useState)(!1),f=Object(m.a)(x,2),v=f[0],y=f[1],w=Object(n.useState)([]),T=Object(m.a)(w,2),N=T[0],E=T[1],A=Object(n.useState)(""),_=Object(m.a)(A,2),I=_[0],M=_[1],z=Object(n.useState)(!1),D=Object(m.a)(z,2),L=D[0],F=D[1];Object(n.useEffect)((function(){y(!0)}),[]),Object(n.useEffect)((function(){y(!0)}),[]),Object(n.useEffect)((function(){if(v){Ge.invoke("GET","/api/v1/groups").then((function(e){var t=[];null!==e.groups&&(t=e.groups.sort(fl)),E(t),y(!1)})).catch((function(e){a(e),y(!1)}))}}),[v,a]);var R=N.filter((function(e){return e.includes(I)})),P=[{type:"view",onClick:function(e){s(!0),b(e)}},{type:"description",onClick:function(e){F(!0),b(e)}},{type:"delete",onClick:function(e){g(!0),b(e)}}];return Object(We.jsxs)(c.a.Fragment,{children:[o&&Object(We.jsx)(vd,{open:o,selectedGroup:u,closeModalAndRefresh:function(){s(!1),y(!0)}}),p&&Object(We.jsx)(Cd,{deleteOpen:p,selectedGroup:u,closeDeleteModalAndRefresh:function(e){g(!1),e&&y(!0)}}),F&&Object(We.jsx)(Kl,{open:L,selectedGroup:u,selectedUser:null,closeModalAndRefresh:function(){F(!1)}}),Object(We.jsx)(sc,{label:"Groups"}),Object(We.jsx)(k.a,{container:!0,children:Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.container,children:[Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.actionsTray,children:[Object(We.jsx)(C.a,{placeholder:"Search Groups",className:t.searchField,id:"search-resource",label:"",InputProps:{disableUnderline:!0,startAdornment:Object(We.jsx)(Wt.a,{position:"start",children:Object(We.jsx)(Jt,{})})},onChange:function(e){M(e.target.value)},variant:"standard"}),Object(We.jsx)(S.a,{variant:"contained",color:"primary",startIcon:Object(We.jsx)(ba,{}),onClick:function(){b(null),s(!0)},children:"Create Group"})]}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("br",{})}),v&&Object(We.jsx)(O.a,{}),!v&&Object(We.jsxs)(n.Fragment,{children:[N.length>0&&Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ei,{itemActions:P,columns:[{label:"Name",elementKey:""}],isLoading:v,records:R,entityName:"Groups",idField:"",customPaperHeight:t.twHeight})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(wc,{title:"Groups",iconComponent:Object(We.jsx)(ya,{}),help:Object(We.jsxs)(n.Fragment,{children:["A group can have one attached IAM policy, where all users with membership in that group inherit that policy. Groups support more simplified management of user permissions on the MinIO Tenant.",Object(We.jsx)("br",{}),Object(We.jsx)("br",{}),"You can learn more at our"," ",Object(We.jsx)("a",{href:"https://docs.min.io/minio/k8s/tutorials/group-management.html?ref=con",target:"_blank",rel:"noreferrer",children:"documentation"}),"."]})})})]}),0===N.length&&Object(We.jsx)(k.a,{container:!0,justifyContent:"center",alignContent:"center",alignItems:"center",children:Object(We.jsx)(k.a,{item:!0,xs:8,children:Object(We.jsx)(wc,{title:"Groups",iconComponent:Object(We.jsx)(ga,{}),help:Object(We.jsxs)(n.Fragment,{children:["A group can have one attached IAM policy, where all users with membership in that group inherit that policy. Groups support more simplified management of user permissions on the MinIO Tenant.",Object(We.jsx)("br",{}),Object(We.jsx)("br",{}),"To get started,"," ",Object(We.jsx)("button",{onClick:function(){b(null),s(!0)},className:t.link,children:"Create a Group"}),"."]})})})})]})]})})]})}))),Nd=a(355),Ed=a.n(Nd),Ad=a(356),_d=a.n(Ad),Id=a(357),Md=a.n(Id),zd=a(358),Dd=a.n(zd),Ld=a(359),Fd=a.n(Ld),Rd=a(360),Pd=a.n(Rd),Bd=a(361),Ud=a.n(Bd),Gd=a(362),Kd=a.n(Gd),Wd=a(363),Vd=a.n(Wd),Hd=a(365),qd=a.n(Hd),Yd=a(364),Qd=a.n(Yd),Zd=[{icon:Object(We.jsx)(Ed.a,{}),configuration_id:"region",configuration_label:"Region"},{icon:Object(We.jsx)(_d.a,{}),configuration_id:"cache",configuration_label:"Cache"},{icon:Object(We.jsx)(Md.a,{}),configuration_id:"compression",configuration_label:"Compression"},{icon:Object(We.jsx)(Dd.a,{}),configuration_id:"api",configuration_label:"API"},{icon:Object(We.jsx)(Fd.a,{}),configuration_id:"heal",configuration_label:"Heal"},{icon:Object(We.jsx)(Pd.a,{}),configuration_id:"scanner",configuration_label:"Scanner"},{icon:Object(We.jsx)(Ud.a,{}),configuration_id:"etcd",configuration_label:"Etcd"},{icon:Object(We.jsx)(Kd.a,{}),configuration_id:"identity_openid",configuration_label:"Identity Openid"},{icon:Object(We.jsx)(Vd.a,{}),configuration_id:"identity_ldap",configuration_label:"Identity LDAP"},{icon:Object(We.jsx)(Qd.a,{}),configuration_id:"logger_webhook",configuration_label:"Logger Webhook"},{icon:Object(We.jsx)(qd.a,{}),configuration_id:"audit_webhook",configuration_label:"Audit Webhook"}],Jd={region:[{name:"name",required:!0,label:"Server Location",tooltip:'Name of the location of the server e.g. "us-west-rack2"',type:"string",placeholder:"e.g. us-west-rack-2"},{name:"comment",required:!1,label:"Comment",tooltip:"You can add a comment to this setting",type:"comment",placeholder:"Enter Comment"}],cache:[{name:"drives",required:!0,label:"Drives",tooltip:'Mountpoints e.g. "/optane1" or "/optane2", you can write one per field',type:"csv",placeholder:"Enter Mount Point"},{name:"expiry",required:!1,label:"Expiry",tooltip:'Cache expiry duration in days e.g. "90"',type:"number",placeholder:"Enter Number of Days"},{name:"quota",required:!1,label:"Quota",tooltip:'Limit cache drive usage in percentage e.g. "90"',type:"number",placeholder:"Enter in %"},{name:"exclude",required:!1,label:"Exclude",tooltip:'Wildcard exclusion patterns e.g. "bucket/*.tmp" or "*.exe", you can write one per field',type:"csv",placeholder:"Enter Wildcard Exclusion Patterns"},{name:"after",required:!1,label:"After",tooltip:"Minimum number of access before caching an object",type:"number",placeholder:"Enter Number of Attempts"},{name:"watermark_low",required:!1,label:"Watermark Low",tooltip:"Watermark Low",type:"number",placeholder:"Enter Watermark Low"},{name:"watermark_high",required:!1,label:"Watermark High",tooltip:"Watermark High",type:"number",placeholder:"Enter Watermark High"},{name:"comment",required:!1,label:"Comment",tooltip:"You can add a comment to this setting",type:"comment",multiline:!0,placeholder:"Enter Comment"}],compression:[{name:"extensions",required:!1,label:"Extensions",tooltip:'Extensions to compress e.g. ".txt",".log" or ".csv", you can write one per field',type:"csv",placeholder:"Enter an Extension",withBorder:!0},{name:"mime_types",required:!1,label:"Mime Types",tooltip:'Mime types e.g. "text/*","application/json" or "application/xml", you can write one per field',type:"csv",placeholder:"Enter a Mime Type",withBorder:!0}],api:[{name:"requests_max",required:!1,label:"Requests Max",tooltip:"Maximum number of concurrent requests, e.g. '1600'",type:"number",placeholder:"Enter Requests Max"},{name:"cors_allow_origin",required:!1,label:"Cors Allow Origin",tooltip:"list of origins allowed for CORS requests",type:"csv",placeholder:"Enter allowed origin e.g. https://example.com"},{name:"replication_workers",required:!1,label:"Replication Workers",tooltip:"Number of replication workers, defaults to 100",type:"number",placeholder:"Enter Replication Workers"},{name:"replication_failed_workers",required:!1,label:"Replication Failed Workers",tooltip:"Number of replication workers for recently failed replicas, defaults to 4",type:"number",placeholder:"Enter Replication Failed Workers"}],heal:[{name:"bitrotscan",required:!1,label:"Bitrot Scan",tooltip:"Perform bitrot scan on disks when checking objects during scanner",type:"on|off"},{name:"max_sleep",required:!1,label:"Max Sleep",tooltip:"Maximum sleep duration between objects to slow down heal operation. eg. 2s",type:"duration",placeholder:"Enter Max Sleep duration"},{name:"max_io",required:!1,label:"Max IO",tooltip:"Maximum IO requests allowed between objects to slow down heal operation. eg. 3",type:"number",placeholder:"Enter Max IO"}],scanner:[{name:"delay",required:!1,label:"Delay multiplier",tooltip:"Scanner delay multiplier, defaults to '10.0'",type:"number",placeholder:"Enter Delay"},{name:"max_wait",required:!1,label:"Max Wait",tooltip:"Maximum wait time between operations, defaults to '15s'",type:"duration",placeholder:"Enter Max Wait"},{name:"cycle",required:!1,label:"Cycle",tooltip:"Time duration between scanner cycles, defaults to '1m'",type:"duration",placeholder:"Enter Cycle"}],etcd:[{name:"endpoints",required:!0,label:"Endpoints",tooltip:'List of etcd endpoints e.g. "http://localhost:2379", you can write one per field',type:"csv",placeholder:"Enter Endpoint"},{name:"path_prefix",required:!1,label:"Path Prefix",tooltip:'namespace prefix to isolate tenants e.g. "customer1/"',type:"string",placeholder:"Enter Path Prefix"},{name:"coredns_path",required:!1,label:"Coredns Path",tooltip:'Shared bucket DNS records, default is "/skydns"',type:"string",placeholder:"Enter Coredns Path"},{name:"client_cert",required:!1,label:"Client Cert",tooltip:"Client cert for mTLS authentication",type:"string",placeholder:"Enter Client Cert"},{name:"client_cert_key",required:!1,label:"Client Cert Key",tooltip:"Client cert key for mTLS authentication",type:"string",placeholder:"Enter Client Cert Key"},{name:"comment",required:!1,label:"Comment",tooltip:"You can add a comment to this setting",type:"comment",multiline:!0,placeholder:"Enter Comment"}],identity_openid:[{name:"config_url",required:!1,label:"Config URL",tooltip:"Config URL for identity provider configuration",type:"string",placeholder:"https://identity-provider-url/.well-known/openid-configuration"},{name:"client_id",required:!1,label:"Client ID",type:"string",placeholder:"Enter Client ID"},{name:"client_secret",required:!1,label:"Secret ID",type:"string",placeholder:"Enter Secret ID"},{name:"claim_name",required:!1,label:"Claim Name",tooltip:"Claim from which MinIO will read the policy or role to use",type:"string",placeholder:"Enter Claim Name"},{name:"claim_prefix",required:!1,label:"Claim Prefix",tooltip:"Claim Prefix",type:"string",placeholder:"Enter Claim Prefix"},{name:"claim_userinfo",required:!1,label:"Claim UserInfo",type:"on|off"},{name:"redirect_uri",required:!1,label:"Redirect URI",type:"string",placeholder:"https://console-endpoint-url/oauth_callback"},{name:"scopes",required:!1,label:"Scopes",type:"string",placeholder:"openid,profile,email"}],identity_ldap:[{name:"server_addr",required:!0,label:"Server Addr",tooltip:'AD/LDAP server address e.g. "myldapserver.com:636"',type:"string",placeholder:"Enter Server Address"},{name:"username_format",required:!0,label:"Username Format",tooltip:'List of username bind DNs e.g. "uid=%s","cn=accounts","dc=myldapserver" or "dc=com", you can write one per field',type:"csv",placeholder:"Enter Username Format"},{name:"username_search_filter",required:!0,label:"Username Search Filter",tooltip:'User search filter, for example "(cn=%s)" or "(sAMAccountName=%s)" or "(uid=%s)"',type:"string",placeholder:"Enter Username Search Filter"},{name:"group_search_filter",required:!0,label:"Group Search Filter",tooltip:'Search filter for groups e.g. "(&(objectclass=groupOfNames)(memberUid=%s))"',type:"string",placeholder:"Enter Group Search Filter"},{name:"username_search_base_dn",required:!1,label:"Username Search Base DN",tooltip:"List of username search DNs, you can write one per field",type:"csv",placeholder:"Enter Username Search Base DN"},{name:"group_name_attribute",required:!1,label:"Group Name Attribute",tooltip:'Search attribute for group name e.g. "cn"',type:"string",placeholder:"Enter Group Name Attribute"},{name:"sts_expiry",required:!1,label:"STS Expiry",tooltip:'temporary credentials validity duration in s,m,h,d. Default is "1h"',type:"string",placeholder:"Enter STS Expiry"},{name:"tls_skip_verify",required:!1,label:"TLS Skip Verify",tooltip:'Trust server TLS without verification, defaults to "off" (verify)',type:"on|off"},{name:"server_insecure",required:!1,label:"Server Insecure",tooltip:'Allow plain text connection to AD/LDAP server, defaults to "off"',type:"on|off"},{name:"comment",required:!1,label:"Comment",tooltip:"Optionally add a comment to this setting",type:"comment",placeholder:"Enter Comment"}],logger_webhook:[{name:"endpoint",required:!0,label:"Endpoint",type:"string",placeholder:"Enter Endpoint"},{name:"auth_token",required:!0,label:"Auth Token",type:"string",placeholder:"Enter Auth Token"}],audit_webhook:[{name:"endpoint",required:!0,label:"Endpoint",type:"string",placeholder:"Enter Endpoint"},{name:"auth_token",required:!0,label:"Auth Token",type:"string",placeholder:"Enter Auth Token"}]},$d=Object(y.a)((function(e){return Object(f.a)({configurationLink:{border:"#E5E5E5 1px solid",borderRadius:2,padding:20,width:190,maxWidth:190,height:80,margin:14,display:"flex",alignItems:"center",color:"#072C4F",fontSize:14,fontWeight:700,textDecoration:"none",overflow:"hidden",textOverflow:"ellipsis",lineClamp:2,"& svg":{fontSize:35,marginRight:15},"&:hover":{backgroundColor:"#FBFAFA"}}})}))((function(e){var t=e.classes,a=e.configuration,n=e.prefix,c=void 0===n?"settings":n;return Object(We.jsxs)(lc.a,{to:"/".concat(c,"/").concat(a.configuration_id),className:t.configurationLink,children:[a.icon,a.configuration_label]})})),Xd=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)(Object(p.a)({strongText:{fontWeight:700},keyName:{marginLeft:5},iconText:{lineHeight:"24px"},customConfigurationPage:{height:"calc(100vh - 324px)",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},settingsOptionsContainer:{display:"flex",flexDirection:"row",justifyContent:"flex-start",flexWrap:"wrap",border:"#E5E5E5 1px solid",borderRadius:2,padding:5,backgroundColor:"#fff"},configurationLink:{border:"#E5E5E5 1px solid",borderRadius:2,padding:20,width:190,height:80,margin:15}},Ot),pt),(e.spacing(4),{container:{position:"relative",maxWidth:1180,padding:"20px 35px 0","& h6":{color:"#777777",fontSize:30},"& p":{"& span:not(*[class*='smallUnit'])":{fontSize:16}}},sectionTitle:{padding:"0px",margin:"0px"},topSpacer:{height:"8px"}})))}))((function(e){var t=e.classes;return Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(sc,{label:"Settings"}),Object(We.jsxs)(k.a,{container:!0,className:t.container,children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("div",{className:t.settingsOptionsContainer,children:Zd.map((function(e){return Object(We.jsx)($d,{configuration:e},"configItem-".concat(e.configuration_label))}))})})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(wc,{title:"Learn more about SETTINGS",iconComponent:Object(We.jsx)(Ea,{}),help:Object(We.jsxs)(n.Fragment,{children:["MinIO supports a variety of configurations ranging from encryption, compression, region, notifications, etc.",Object(We.jsx)("br",{}),Object(We.jsx)("br",{}),"You can learn more at our"," ",Object(We.jsx)("a",{href:"https://docs.min.io/minio/baremetal/reference/minio-cli/minio-mc-admin/mc-admin.config.html?ref=con#id4",target:"_blank",rel:"noreferrer",children:"documentation"}),"."]})})})]})]})})),eu=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)(Object(p.a)({},lt),ut),{},{inputWithBorder:{border:"1px solid #EAEAEA",padding:15,height:150,overflowY:"auto",position:"relative",marginTop:15},labelContainer:{display:"flex"}}))}))((function(e){var t=e.elements,a=e.name,i=e.label,r=e.tooltip,o=void 0===r?"":r,s=e.commonPlaceholder,l=void 0===s?"":s,d=e.onChange,u=e.withBorder,b=void 0!==u&&u,j=e.classes,h=Object(n.useState)([""]),p=Object(m.a)(h,2),O=p[0],g=p[1],x=Object(n.createRef)();Object(n.useEffect)((function(){if(1===O.length&&""===O[0]&&t&&""!==t){var e=t.split(",");e.push(""),g(e)}}),[t,O]),Object(n.useEffect)((function(){if(O.length>1){var e=x.current;e&&e.scrollIntoView(!1)}}),[O,x]);var f=Object(n.useRef)(!0);Object(n.useLayoutEffect)((function(){f.current?f.current=!1:y()}),[O]);var v=function(e){e.persist();var t=Object(Kt.a)(O);t[be()(e.target,"dataset.index",0)]=e.target.value,g(t)},y=Mi()((function(){var e=O.filter((function(e){return""!==e.trim()})).join(",");d(e)}),500),S=O.map((function(e,t){return Object(We.jsx)(Pn,{id:"".concat(a,"-").concat(t.toString()),label:"",name:"".concat(a,"-").concat(t.toString()),value:O[t],onChange:v,index:t,placeholder:l,overlayIcon:t===O.length-1?Object(We.jsx)(ba,{}):null,overlayAction:function(){!function(e){if(""!==e[e.length-1].trim()){var t=Object(Kt.a)(e);t.push(""),g(t)}}(O)}},"csv-".concat(a,"-").concat(t.toString()))}));return Object(We.jsx)(c.a.Fragment,{children:Object(We.jsxs)(k.a,{item:!0,xs:12,className:j.fieldContainer,children:[Object(We.jsxs)(Dn.a,{className:j.inputLabel,children:[Object(We.jsx)("span",{children:i}),""!==o&&Object(We.jsx)("div",{className:j.tooltipContainer,children:Object(We.jsx)(Ln.a,{title:o,placement:"top-start",children:Object(We.jsx)("div",{children:Object(We.jsx)(oa,{className:j.tooltip})})})})]}),Object(We.jsxs)(k.a,{item:!0,xs:12,className:"".concat(b?j.inputWithBorder:""),children:[S,Object(We.jsx)("div",{ref:x})]})]})})})),tu=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)(Object(p.a)({},lt),ut),{},{inputLabel:Object(p.a)(Object(p.a)({},lt.inputLabel),{},{marginBottom:16,fontSize:14}),textBoxContainer:{flexGrow:1,position:"relative"},errorState:{color:"#b53b4b",fontSize:14,position:"absolute",top:7,right:7},cssOutlinedInput:{borderColor:"#EAEAEA",padding:16},rootContainer:{"& .MuiOutlinedInput-inputMultiline":Object(p.a)(Object(p.a)({},lt.inputLabel),{},{fontSize:13,minHeight:150}),"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"#07193E",borderWidth:1},"& textarea":{color:"#07193E",fontSize:13,fontWeight:600,"&:placeholder":{color:"#393939",opacity:1}}}}))}))((function(e){var t=e.label,a=e.onChange,n=e.value,i=e.id,r=e.name,o=e.disabled,s=void 0!==o&&o,l=e.tooltip,d=void 0===l?"":l,u=e.index,b=void 0===u?0:u,j=e.error,h=void 0===j?"":j,m=e.required,p=void 0!==m&&m,O=e.placeholder,g=void 0===O?"":O,x=e.classes,f={"data-index":b};return Object(We.jsx)(c.a.Fragment,{children:Object(We.jsxs)(k.a,{item:!0,xs:12,className:"".concat(x.fieldContainer," ").concat(""!==h?x.errorInField:""),children:[""!==t&&Object(We.jsxs)(Dn.a,{htmlFor:i,className:x.inputLabel,children:[Object(We.jsxs)("span",{children:[t,p?"*":""]}),""!==d&&Object(We.jsx)("div",{className:x.tooltipContainer,children:Object(We.jsx)(Ln.a,{title:d,placement:"top-start",children:Object(We.jsx)("div",{children:Object(We.jsx)(oa,{className:x.tooltip})})})})]}),Object(We.jsx)("div",{className:x.textBoxContainer,children:Object(We.jsx)(C.a,{id:i,name:r,fullWidth:!0,value:n,disabled:s,onChange:a,multiline:!0,rows:5,inputProps:f,error:""!==h,helperText:h,placeholder:g,InputLabelProps:{shrink:!0},InputProps:{classes:{notchedOutline:x.cssOutlinedInput,root:x.rootContainer}},variant:"outlined"})})]})})})),au=function(e,t,a){var n="on|off"===t?"false":"";if(a.length>0){var c=a.find((function(t){return t.key===e}));c&&(n=c.value)}return n},nu=Object(y.a)((function(e){return Object(f.a)(Object(p.a)({},dt))}))((function(e){var t=e.onChange,a=e.fields,c=e.defaultVals,i=(e.classes,Object(n.useState)([])),r=Object(m.a)(i,2),o=r[0],s=r[1],l=a||[],d=c||[];Object(n.useEffect)((function(){var e=[];a.forEach((function(t){var a={key:t.name,value:au(t.name,t.type,d)};e.push(a)})),s(e)}),[a,c]),Object(n.useEffect)((function(){t(o)}),[o]);var u=function(e,t,a){var n=Object(Kt.a)(o);n[a]={key:e,value:t},s(n)},b=function(e,t){switch(e.type){case"on|off":var a=o[t]?o[t].value:"false";return Object(We.jsx)(ac,{onChange:function(a){var n=a.target.checked?"true":"false";u(e.name,n,t)},id:e.name,name:e.name,label:e.label,value:"switch_on",tooltip:e.tooltip,checked:"true"===a});case"csv":return Object(We.jsx)(eu,{elements:o[t]?o[t].value:"",label:e.label,name:e.name,onChange:function(a){return u(e.name,a,t)},tooltip:e.tooltip,commonPlaceholder:e.placeholder,withBorder:!!e.withBorder});case"comment":return Object(We.jsx)(tu,{id:e.name,name:e.name,label:e.label,tooltip:e.tooltip,value:o[t]?o[t].value:"",onChange:function(a){return u(e.name,a.target.value,t)},placeholder:e.placeholder});default:return Object(We.jsx)(Pn,{id:e.name,name:e.name,label:e.label,tooltip:e.tooltip,value:o[t]?o[t].value:"",onChange:function(a){return u(e.name,a.target.value,t)},multiline:!!e.multiline,placeholder:e.placeholder})}};return Object(We.jsx)(k.a,{container:!0,children:Object(We.jsx)(k.a,{xs:12,item:!0,children:l.map((function(e,t){return Object(We.jsx)(n.Fragment,{children:Object(We.jsx)(k.a,{item:!0,xs:12,children:b(e,t)})},e.name)}))})})})),cu={serverNeedsRestart:te,setErrorSnackMessage:ce},iu=Object(o.b)(null,cu)(Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)(Object(p.a)({},lt),vt),{},{strongText:{fontWeight:700},keyName:{marginLeft:5},buttonContainer:{textAlign:"right"},logoButton:{height:"80px"},customTitle:Object(p.a)(Object(p.a)({},vt.customTitle),{},{marginTop:0})}))}))((function(e){var t=e.serverNeedsRestart,a=e.selectedConfiguration,c=e.setErrorSnackMessage,i=e.classes,r=e.history,o=Object(n.useState)([]),s=Object(m.a)(o,2),l=s[0],d=s[1],u=Object(n.useState)(!1),b=Object(m.a)(u,2),j=b[0],h=b[1],p=Object(n.useState)(!0),g=Object(m.a)(p,2),x=g[0],f=g[1],v=Object(n.useState)([]),y=Object(m.a)(v,2),C=y[0],w=y[1];Object(n.useEffect)((function(){var e=be()(a,"configuration_id",!1);e&&Ge.invoke("GET","/api/v1/configs/".concat(e)).then((function(e){var t=be()(e,"key_values",[]);w(t)})).catch((function(e){f(!1),c(e)})),f(!1)}),[a,c]),Object(n.useEffect)((function(){if(j){var e={key_values:(n=l,n.filter((function(e){return""!==e.value})))};Ge.invoke("PUT","/api/v1/configs/".concat(a.configuration_id),e).then((function(){h(!1),t(!0),r.push("/settings")})).catch((function(e){h(!1),c(e)}))}var n}),[j,r,t,a,l,c]);var T=Object(n.useCallback)((function(e){d(e)}),[d]);return Object(We.jsx)(n.Fragment,{children:Object(We.jsxs)("form",{noValidate:!0,onSubmit:function(e){e.preventDefault(),h(!0)},children:[Object(We.jsxs)(k.a,{item:!0,xs:12,className:i.settingsFormContainer,children:[x&&Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(O.a,{})}),Object(We.jsx)(nu,{fields:Jd[a.configuration_id],onChange:T,defaultVals:C})]}),Object(We.jsx)(k.a,{item:!0,xs:12,className:i.settingsButtonContainer,children:Object(We.jsx)(S.a,{type:"submit",variant:"contained",color:"primary",disabled:j,children:"Save"})})]})})}))),ru=Object(y.a)((function(e){return Object(f.a)({link:{textDecoration:"none",color:e.palette.primary.main,fontSize:18,fontWeight:600,marginBottom:10,marginTop:10}})}))((function(e){var t=e.to,a=e.label,n=e.classes;return Object(We.jsx)(lc.a,{to:t,className:n.link,children:Object(We.jsxs)(k.a,{container:!0,spacing:1,children:[Object(We.jsx)(k.a,{item:!0,children:Object(We.jsx)(ja,{})}),Object(We.jsx)(k.a,{item:!0,children:a})]})})})),ou=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)(Object(p.a)(Object(p.a)(Object(p.a)({},Ot),pt),vt),(e.spacing(4),{container:{position:"relative",maxWidth:1180,padding:"20px 35px 0","& h6":{color:"#777777",fontSize:30},"& p":{"& span:not(*[class*='smallUnit'])":{fontSize:16}}},sectionTitle:{padding:"0px",margin:"0px"},topSpacer:{height:"8px"}})),{},{strongText:{fontWeight:700},keyName:{marginLeft:5},iconText:{lineHeight:"24px"},customConfigurationPage:{height:"calc(100vh - 324px)",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},mainCont:Object(p.a)(Object(p.a)({},vt.mainCont),{},{maxWidth:1180})}))}))((function(e){var t=e.classes,a=e.match,c=e.history,i=be()(a,"params.option",""),r=Zd.find((function(e){return e.configuration_id===i}));return Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(sc,{label:"".concat(null===r||void 0===r?void 0:r.configuration_label," Settings")}),Object(We.jsxs)(k.a,{container:!0,className:t.container,children:[Object(We.jsx)(k.a,{item:!0,xs:12,className:t.mainTitle,children:Object(We.jsx)(ru,{to:"/settings",label:"Return to Settings"})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:r&&Object(We.jsx)(iu,{selectedConfiguration:r,history:c})})]})]})})),su=function(){return Object(We.jsx)(s.c,{history:h,children:Object(We.jsxs)(s.d,{children:[Object(We.jsx)(s.b,{path:"/settings",exact:!0,component:Xd}),Object(We.jsx)(s.b,{path:"/settings/:option",component:ou}),Object(We.jsx)(s.b,{component:Gt})]})})},lu="ADD_TENANT/SET_CURRENT_PAGE",du="ADD_TENANT/SET_ADVANCED_MODE",uu="ADD_TENANT/UPDATE_FIELD",bu="ADD_TENANT/SET_PAGE_VALID",ju="ADD_TENANT/RESET_FORM",hu="ADD_TENANT/SET_STORAGE_CLASSES_LIST",mu="ADD_TENANT/ADD_MINIO_KEYPAIR",pu="ADD_TENANT/ADD_FILE_MINIO_KEYPAIR",Ou="ADD_TENANT/DELETE_MINIO_KEYPAIR",gu="ADD_TENANT/ADD_CA_KEYPAIR",xu="ADD_TENANT/ADD_FILE_TO_CA_KEYPAIR",fu="ADD_TENANT/DELETE_CA_KEYPAIR",vu="ADD_TENANT/ADD_CONSOLE_CERT",yu="ADD_TENANT/ADD_CONSOLE_CA_KEYPAIR",Su="ADD_TENANT/ADD_FILE_TO_CONSOLE_CA_KEYPAIR",Cu="ADD_TENANT/DELETE_CONSOLE_CA_KEYPAIR",ku="ADD_TENANT/ENCRYPTION_SERVER_CERT",wu="ADD_TENANT/ENCRYPTION_CLIENT_CERT",Tu="ADD_TENANT/ENCRYPTION_VAULT_CERT",Nu="ADD_TENANT/ENCRYPTION_VAULT_CA",Eu="ADD_TENANT/ENCRYPTION_GEMALTO_CA",Au="TENANT_DETAILS/SET_LOADING",_u="TENANT_DETAILS/SET_CURRENT_TENANT",Iu="TENANT_DETAILS/SET_TENANT",Mu="TENANT_DETAILS/SET_TAB",zu=function(e,t,a){return{type:uu,pageName:e,field:t,value:a}},Du=function(e,t){return{type:bu,pageName:e,valid:t}},Lu=function(e){return{type:Au,state:e}},Fu={setModalErrorSnackMessage:re},Ru=Object(o.b)(null,Fu),Pu=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)({jsonPolicyEditor:{minHeight:400,width:"100%"},buttonContainer:{textAlign:"right"},errorState:{color:"#b53b4b",fontSize:14,fontWeight:"bold"}},dt),lt))}))(Ru((function(e){var t=e.classes,a=e.open,c=e.closeModalAndRefresh,i=e.tenant,r=e.namespace,o=e.setModalErrorSnackMessage,s=Object(n.useState)(!1),l=Object(m.a)(s,2),d=l[0],u=l[1],b=Object(n.useState)(!1),j=Object(m.a)(b,2),h=j[0],p=j[1],g=Object(n.useState)(""),x=Object(m.a)(g,2),f=x[0],v=x[1],y=Object(n.useState)(""),C=Object(m.a)(y,2),w=C[0],T=C[1];Object(n.useEffect)((function(){Ge.invoke("GET","/api/v1/namespaces/".concat(r,"/tenants/").concat(i,"/yaml")).then((function(e){p(!1),v(e.yaml)})).catch((function(e){p(!1),o(e)}))}),[i,r,o]),Object(n.useEffect)((function(){}),[]);var N=""!==f.trim();return Object(We.jsxs)(zn,{modalOpen:a,onClose:function(){c(!1)},title:"YAML",children:[h&&Object(We.jsx)(O.a,{}),""!==w&&Object(We.jsx)("div",{className:t.errorState,children:w}),!h&&Object(We.jsx)("form",{noValidate:!0,autoComplete:"off",onSubmit:function(e){e.preventDefault(),d||(u(!0),T(""),Ge.invoke("PUT","/api/v1/namespaces/".concat(r,"/tenants/").concat(i,"/yaml"),{yaml:f}).then((function(e){u(!1),c(!0),T("")})).catch((function(e){u(!1),T(e.errorMessage)})))},children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.formScrollable,children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("br",{})}),Object(We.jsx)(Lo,{label:"Tenant Specification",value:f,mode:"yaml",onBeforeChange:function(e,t,a){v(a)}})]}),Object(We.jsx)(k.a,{item:!0,xs:12,className:t.buttonContainer,children:Object(We.jsx)(S.a,{type:"submit",variant:"contained",color:"primary",disabled:d||!N,children:"Save"})}),d&&Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(O.a,{})})]})})]})}))),Bu=Object(y.a)((function(e){var t;return Object(f.a)({errorBlock:{color:(null===(t=e.palette)||void 0===t?void 0:t.error.main)||"#C83B51"}})}))((function(e){var t=e.classes,a=e.errorMessage,n=e.withBreak,i=void 0===n||n;return Object(We.jsxs)(c.a.Fragment,{children:[i&&Object(We.jsx)("br",{}),Object(We.jsx)(w.a,{component:"p",variant:"body1",className:t.errorBlock,children:a})]})})),Uu=Object(y.a)((function(e){return{root:{height:10,borderRadius:5},colorPrimary:{backgroundColor:"#F4F4F4"},bar:{borderRadius:5,backgroundColor:"#081C42"},padChart:{padding:"5px"}}}))(O.a),Gu=Object(y.a)((function(e){return Object(f.a)({paperContainer:{padding:15},allValue:{fontSize:16,fontWeight:700,marginBottom:8},currentUsage:{fontSize:12,marginTop:8},centerItem:{textAlign:"center"}})}))((function(e){var t=e.classes,a=e.maxValue,i=e.currValue,r=e.label,o=e.renderFunction,s=e.loading,l=e.error,d=e.labels,u=void 0===d||d,b=100*i/a;return Object(We.jsxs)(c.a.Fragment,{children:[s&&Object(We.jsx)("div",{className:t.padChart,children:Object(We.jsx)(k.a,{item:!0,xs:12,className:t.centerItem,children:Object(We.jsx)(g.a,{color:"primary",size:40,variant:"indeterminate"})})}),s?null:""!==l?Object(We.jsx)(Bu,{errorMessage:l,withBreak:!1}):Object(We.jsxs)(c.a.Fragment,{children:[Object(We.jsx)(k.a,{item:!0,xs:12,className:t.allValue,children:u&&Object(We.jsxs)(n.Fragment,{children:[r," ",o?o(a.toString()):a]})}),Object(We.jsx)(Uu,{variant:"determinate",value:b}),Object(We.jsx)(k.a,{item:!0,xs:12,className:t.currentUsage,children:u&&Object(We.jsxs)(n.Fragment,{children:["Used:"," ",o?o(i.toString()):i]})})]})]})})),Ku=Object(o.b)(null,{setModalErrorSnackMessage:re}),Wu=Object(y.a)((function(e){return Object(f.a)(Object(p.a)({buttonContainer:{textAlign:"right"}},dt))}))(Ku((function(e){var t=e.open,a=e.closeModalAndRefresh,c=e.namespace,i=e.idTenant,r=e.setModalErrorSnackMessage,o=e.classes,s=Object(n.useState)(!1),l=Object(m.a)(s,2),d=l[0],u=l[1],b=Object(n.useState)(""),j=Object(m.a)(b,2),h=j[0],O=j[1],g=Object(n.useState)(!1),x=Object(m.a)(g,2),f=x[0],v=x[1],y=Object(n.useState)(""),C=Object(m.a)(y,2),w=C[0],T=C[1],N=Object(n.useState)(""),E=Object(m.a)(N,2),A=E[0],_=E[1],I=Object(n.useState)(""),M=Object(m.a)(I,2),z=M[0],D=M[1],L=Object(n.useState)(!0),F=Object(m.a)(L,2),R=F[0],P=F[1],B=Object(n.useCallback)((function(e){var t=new RegExp("^$|^((.*?)/(.*?):(.+))$");if("minioImage"===e)P(t.test(h))}),[h]);Object(n.useEffect)((function(){B("minioImage")}),[h,B]);return Object(We.jsx)(zn,{title:"Update MinIO Version",modalOpen:t,onClose:function(){a(!1)},children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsxs)(k.a,{item:!0,xs:12,className:o.formScrollable,children:[Object(We.jsx)("span",{children:"Please enter the MinIO image from dockerhub to use. If blank, then latest build will be used."}),Object(We.jsx)("br",{}),Object(We.jsx)("br",{}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{value:h,label:"MinIO's Image",id:"minioImage",name:"minioImage",placeholder:"E.g. minio/minio:RELEASE.2021-08-20T18-32-01Z",onChange:function(e){O(e.target.value)}})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ac,{value:"imageRegistry",id:"setImageRegistry",name:"setImageRegistry",checked:f,onChange:function(e){v(!f)},label:"Set Custom Image Registry",indicatorLabels:["Yes","No"]})}),f&&Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{value:w,label:"Endpoint",id:"imageRegistry",name:"imageRegistry",placeholder:"E.g. https://index.docker.io/v1/",onChange:function(e){T(e.target.value)}})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{value:A,label:"Username",id:"imageRegistryUsername",name:"imageRegistryUsername",placeholder:"Enter image registry username",onChange:function(e){_(e.target.value)}})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{value:z,label:"Password",id:"imageRegistryPassword",name:"imageRegistryPassword",placeholder:"Enter image registry password",onChange:function(e){D(e.target.value)}})})]})]}),Object(We.jsxs)(k.a,{item:!0,xs:12,className:o.buttonContainer,children:[Object(We.jsx)("button",{type:"button",color:"primary",className:o.clearButton,onClick:function(){O(""),v(!1),T(""),_(""),D("")},children:"Clear"}),Object(We.jsx)(S.a,{type:"submit",variant:"contained",color:"primary",disabled:!R||f&&(""===w.trim()||""===A.trim()||""===z.trim())||d,onClick:function(){u(!0);var e={image:h,enable_prometheus:!0};if(f){var t={image_registry:{registry:w,username:A,password:z}};e=Object(p.a)(Object(p.a)({},e),t)}Ge.invoke("PUT","/api/v1/namespaces/".concat(c,"/tenants/").concat(i),e).then((function(){u(!1),a(!0)})).catch((function(e){r(e),u(!1)}))},children:"Save"})]})]})})}))),Vu=Object(o.b)((function(e){return{loadingTenant:e.tenants.tenantDetails.loadingTenant,selectedTenant:e.tenants.tenantDetails.currentTenant,tenant:e.tenants.tenantDetails.tenantInfo,logEnabled:be()(e.tenants.tenantDetails.tenantInfo,"logEnabled",!1),monitoringEnabled:be()(e.tenants.tenantDetails.tenantInfo,"monitoringEnabled",!1),encryptionEnabled:be()(e.tenants.tenantDetails.tenantInfo,"encryptionEnabled",!1),minioTLS:be()(e.tenants.tenantDetails.tenantInfo,"minioTLS",!1),consoleTLS:be()(e.tenants.tenantDetails.tenantInfo,"consoleTLS",!1),consoleEnabled:be()(e.tenants.tenantDetails.tenantInfo,"consoleEnabled",!1),adEnabled:be()(e.tenants.tenantDetails.tenantInfo,"idpAdEnabled",!1),oidcEnabled:be()(e.tenants.tenantDetails.tenantInfo,"idpOidcEnabled",!1)}}),null),Hu=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)({},_t),{},{redState:{color:e.palette.error.main,"& .MuiSvgIcon-root":{width:16,height:16,marginRight:4}},yellowState:{color:e.palette.warning.main,"& .MuiSvgIcon-root":{width:16,height:16,marginRight:4}},greenState:{color:e.palette.success.main,"& .MuiSvgIcon-root":{width:16,height:16,marginRight:4}},greyState:{color:"grey","& .MuiSvgIcon-root":{width:16,height:16,marginRight:4}},centerAlign:{textAlign:"center"},detailSection:{"& div":{"& b,i":{minWidth:80,display:"block",float:"left"},"& i":{fontStyle:"normal",wordWrap:"break-word",overflowWrap:"break-word"},"& div":{clear:"both"},clear:"both",marginBottom:2}}},(e.spacing(4),{container:{position:"relative",maxWidth:1180,padding:"20px 35px 0","& h6":{color:"#777777",fontSize:30},"& p":{"& span:not(*[class*='smallUnit'])":{fontSize:16}}},sectionTitle:{padding:"0px",margin:"0px"},topSpacer:{height:"8px"}})))}))(Vu((function(e){var t,a,c,i,r,o,s,l,d,u,b,j,p,O,f,v,y,C,w=e.classes,T=e.match,N=e.tenant,E=e.logEnabled,A=e.monitoringEnabled,_=e.encryptionEnabled,I=e.minioTLS,M=(e.consoleTLS,e.consoleEnabled,e.adEnabled),z=e.oidcEnabled,D=e.loadingTenant,L=Object(n.useState)(0),F=Object(m.a)(L,2),R=F[0],P=F[1],B=Object(n.useState)(0),U=Object(m.a)(B,2),G=U[0],K=U[1],W=Object(n.useState)(0),V=Object(m.a)(W,2),H=V[0],q=V[1],Y=Object(n.useState)(0),Q=Object(m.a)(Y,2),Z=Q[0],J=Q[1],$=Object(n.useState)(!1),X=Object(m.a)($,2),ee=X[0],te=X[1],ae=T.params.tenantName,ne=T.params.tenantNamespace;return Object(n.useEffect)((function(){N&&(P(N.total_size||0),K(N.pools.length),J(N.total_volumes||0),q(N.total_instances||0))}),[N]),Object(We.jsxs)(n.Fragment,{children:[ee&&Object(We.jsx)(Wu,{open:ee,closeModalAndRefresh:function(){te(!1)},idTenant:ae,namespace:ne}),Object(We.jsx)("div",{className:w.topSpacer}),Object(We.jsx)("h1",{className:w.sectionTitle,children:"Summary"}),Object(We.jsx)(x.a,{className:w.paperContainer,children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsx)(k.a,{item:!0,xs:12,sm:8,children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsxs)(k.a,{item:!0,xs:12,children:[Object(We.jsx)("h2",{children:"Details"}),Object(We.jsx)("hr",{className:w.hrClass})]}),Object(We.jsxs)(k.a,{item:!0,xs:12,sm:12,md:6,className:w.detailSection,children:[Object(We.jsxs)("div",{children:[Object(We.jsx)("b",{children:"Capacity:"}),Object(We.jsx)("i",{children:fe(R.toString(10))}),Object(We.jsx)("div",{})]}),Object(We.jsxs)("div",{children:[Object(We.jsx)("b",{children:"Instances:"}),Object(We.jsx)("i",{children:H}),Object(We.jsx)("div",{})]}),Object(We.jsxs)("div",{children:[Object(We.jsx)("b",{children:"Endpoint:"}),Object(We.jsx)("i",{children:Object(We.jsx)("a",{href:null===N||void 0===N||null===(t=N.endpoints)||void 0===t?void 0:t.minio,target:"_blank",rel:"noopener noreferrer",children:null===N||void 0===N||null===(a=N.endpoints)||void 0===a?void 0:a.minio})}),Object(We.jsx)("div",{})]})]}),Object(We.jsxs)(k.a,{item:!0,xs:12,sm:12,md:6,className:w.detailSection,children:[Object(We.jsxs)("div",{children:[Object(We.jsx)("b",{children:"Clusters:"}),Object(We.jsx)("i",{children:G}),Object(We.jsx)("div",{})]}),Object(We.jsxs)("div",{children:[Object(We.jsx)("b",{children:"Volumes:"}),Object(We.jsx)("i",{children:Z}),Object(We.jsx)("div",{})]}),Object(We.jsxs)("div",{children:[Object(We.jsx)("b",{children:"Console:"}),Object(We.jsx)("i",{children:Object(We.jsx)("a",{href:null===N||void 0===N||null===(c=N.endpoints)||void 0===c?void 0:c.console,target:"_blank",rel:"noopener noreferrer",children:null===N||void 0===N||null===(i=N.endpoints)||void 0===i?void 0:i.console})}),Object(We.jsx)("div",{})]})]}),Object(We.jsx)(k.a,{item:!0,xs:12,className:w.detailSection,children:Object(We.jsxs)("div",{children:[Object(We.jsx)("b",{children:"MinIO:"}),Object(We.jsx)("i",{children:Object(We.jsx)(S.a,{color:"primary",className:w.anchorButton,onClick:function(){te(!0)},children:N?N.image:""})}),Object(We.jsx)("div",{})]})}),Object(We.jsx)(k.a,{item:!0,xs:12,className:w.detailSection,children:Object(We.jsxs)("div",{children:[Object(We.jsx)("b",{children:"State:"}),Object(We.jsx)("i",{children:null===N||void 0===N?void 0:N.currentState}),Object(We.jsx)("div",{})]})})]})}),Object(We.jsx)(k.a,{item:!0,xs:12,sm:4,children:D?Object(We.jsx)("div",{className:w.centerAlign,children:Object(We.jsx)(g.a,{})}):Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(Gu,{currValue:null!==(r=null===N||void 0===N||null===(o=N.status)||void 0===o||null===(s=o.usage)||void 0===s?void 0:s.raw_usage)&&void 0!==r?r:0,maxValue:null!==(l=null===N||void 0===N||null===(d=N.status)||void 0===d||null===(u=d.usage)||void 0===u?void 0:u.raw)&&void 0!==l?l:1,label:"Storage",renderFunction:fe,error:"",loading:!1}),Object(We.jsxs)("h4",{children:[N&&N.status&&Object(We.jsx)("span",{className:(C=null===N||void 0===N||null===(b=N.status)||void 0===b?void 0:b.health_status,"red"===C?w.redState:"yellow"===C?w.yellowState:"green"===C?w.greenState:w.greyState),children:Object(We.jsx)(Ma,{})}),"Health"]}),Object(We.jsx)("table",{children:Object(We.jsxs)("tbody",{children:[Object(We.jsxs)("tr",{children:[Object(We.jsx)("td",{className:w.healthCol,children:"Drives Online"}),Object(We.jsx)("td",{children:(null===N||void 0===N||null===(j=N.status)||void 0===j?void 0:j.drives_online)?null===N||void 0===N||null===(p=N.status)||void 0===p?void 0:p.drives_online:0})]}),Object(We.jsxs)("tr",{children:[Object(We.jsx)("td",{className:w.healthCol,children:"Drives Offline"}),Object(We.jsx)("td",{children:(null===N||void 0===N||null===(O=N.status)||void 0===O?void 0:O.drives_offline)?null===N||void 0===N||null===(f=N.status)||void 0===f?void 0:f.drives_offline:0})]}),Object(We.jsxs)("tr",{children:[Object(We.jsx)("td",{className:w.healthCol,children:"Write Quorum"}),Object(We.jsx)("td",{children:(null===N||void 0===N||null===(v=N.status)||void 0===v?void 0:v.write_quorum)?null===N||void 0===N||null===(y=N.status)||void 0===y?void 0:y.write_quorum:0})]})]})}),Object(We.jsx)(S.a,{size:"small",color:"primary",variant:"contained",style:{textDecoration:"none !important"},onClick:function(){h.push("/namespaces/".concat(ne,"/tenants/").concat(ae,"/hop"))},children:"Manage Tenant"})]})})]})}),Object(We.jsx)("br",{}),Object(We.jsx)("br",{}),Object(We.jsx)(x.a,{className:w.paperContainer,children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsxs)(k.a,{item:!0,xs:12,children:[Object(We.jsx)("h2",{children:"Features"}),Object(We.jsx)("hr",{className:w.hrClass})]}),D?Object(We.jsx)(k.a,{item:!0,xs:12,className:w.centerAlign,children:Object(We.jsx)(g.a,{})}):Object(We.jsxs)(n.Fragment,{children:[Object(We.jsxs)(k.a,{item:!0,xs:12,sm:12,md:6,className:w.detailSection,children:[Object(We.jsxs)("div",{children:[Object(We.jsx)("b",{children:"Logs:"}),Object(We.jsx)("i",{children:Object(We.jsx)(S.a,{color:"primary",className:w.anchorButton,children:E?"Enabled":"Disabled"})}),Object(We.jsx)("div",{})]}),Object(We.jsxs)("div",{children:[Object(We.jsx)("b",{children:"MinIO TLS:"}),Object(We.jsx)("i",{children:Object(We.jsx)(S.a,{color:"primary",className:w.anchorButton,children:I?"Enabled":"Disabled"})}),Object(We.jsx)("div",{})]}),Object(We.jsxs)("div",{children:[Object(We.jsx)("b",{children:"AD/LDAP:"}),Object(We.jsx)("i",{children:Object(We.jsx)(S.a,{color:"primary",className:w.anchorButton,children:M?"Enabled":"Disabled"})}),Object(We.jsx)("div",{})]})]}),Object(We.jsxs)(k.a,{item:!0,xs:12,sm:12,md:6,className:w.detailSection,children:[Object(We.jsxs)("div",{children:[Object(We.jsx)("b",{children:"Monitoring:"}),Object(We.jsx)("i",{children:Object(We.jsx)(S.a,{color:"primary",className:w.anchorButton,children:A?"Enabled":"Disabled"})}),Object(We.jsx)("div",{})]}),Object(We.jsxs)("div",{children:[Object(We.jsx)("b",{children:"Encryption:"}),Object(We.jsx)("i",{children:Object(We.jsx)(S.a,{color:"primary",className:w.anchorButton,children:_?"Enabled":"Disabled"})}),Object(We.jsx)("div",{})]}),Object(We.jsxs)("div",{children:[Object(We.jsx)("b",{children:"OpenID:"}),Object(We.jsx)("i",{children:Object(We.jsx)(S.a,{color:"primary",className:w.anchorButton,children:z?"Enabled":"Disabled"})}),Object(We.jsx)("div",{})]})]})]})]})})]})}))),qu=Object(y.a)((function(e){return Object(f.a)(Object(p.a)({paperContainer:{padding:"15px 15px 15px 50px"},licenseInfoValue:{textTransform:"none",fontSize:14,fontWeight:"bold"},licenseContainer:{position:"relative",padding:"20px 52px 0px 28px",background:"#032F51",boxShadow:"0px 3px 7px #00000014","& h2":{color:"#FFF",marginBottom:67},"& a":{textDecoration:"none"},"& h3":{color:"#FFFFFF",marginBottom:"30px",fontWeight:"bold"},"& h6":{color:"#FFFFFF !important"}},licenseInfo:{color:"#FFFFFF",position:"relative"},licenseInfoTitle:{textTransform:"none",color:"#BFBFBF",fontSize:11},verifiedIcon:{width:96,position:"absolute",right:0,bottom:29},noUnderLine:{textDecoration:"none"}},(e.spacing(4),{container:{position:"relative",maxWidth:1180,padding:"20px 35px 0","& h6":{color:"#777777",fontSize:30},"& p":{"& span:not(*[class*='smallUnit'])":{fontSize:16}}},sectionTitle:{padding:"0px",margin:"0px"},topSpacer:{height:"8px"}})))}))((function(e){var t=e.classes,a=e.tenant,n=e.loadingActivateProduct,i=e.loadingLicenseInfo,r=e.licenseInfo,o=e.activateProduct;return Object(We.jsx)(x.a,{className:a&&a.subnet_license?t.licenseContainer:"",children:a&&a.subnet_license?Object(We.jsx)(c.a.Fragment,{children:Object(We.jsxs)(k.a,{container:!0,className:t.licenseInfo,children:[Object(We.jsxs)(k.a,{item:!0,xs:6,children:[Object(We.jsx)(w.a,{variant:"button",display:"block",gutterBottom:!0,className:t.licenseInfoTitle,children:"License"}),Object(We.jsx)(w.a,{variant:"overline",display:"block",gutterBottom:!0,className:t.licenseInfoValue,children:"Commercial License"}),Object(We.jsx)(w.a,{variant:"button",display:"block",gutterBottom:!0,className:t.licenseInfoTitle,children:"Organization"}),Object(We.jsx)(w.a,{variant:"overline",display:"block",gutterBottom:!0,className:t.licenseInfoValue,children:a.subnet_license.organization}),Object(We.jsx)(w.a,{variant:"button",display:"block",gutterBottom:!0,className:t.licenseInfoTitle,children:"Registered Capacity"}),Object(We.jsx)(w.a,{variant:"overline",display:"block",gutterBottom:!0,className:t.licenseInfoValue,children:fe((1099511627776*a.subnet_license.storage_capacity).toString(10))}),Object(We.jsx)(w.a,{variant:"button",display:"block",gutterBottom:!0,className:t.licenseInfoTitle,children:"Expiry Date"}),Object(We.jsx)(w.a,{variant:"overline",display:"block",gutterBottom:!0,className:t.licenseInfoValue,children:Object(We.jsx)(Wi.a,{format:"YYYY-MM-DD",children:a.subnet_license.expires_at})})]}),Object(We.jsxs)(k.a,{item:!0,xs:6,children:[Object(We.jsx)(w.a,{variant:"button",display:"block",gutterBottom:!0,className:t.licenseInfoTitle,children:"Subscription Plan"}),Object(We.jsx)(w.a,{variant:"overline",display:"block",gutterBottom:!0,className:t.licenseInfoValue,children:a.subnet_license.plan}),Object(We.jsx)(w.a,{variant:"button",display:"block",gutterBottom:!0,className:t.licenseInfoTitle,children:"Requester"}),Object(We.jsx)(w.a,{variant:"overline",display:"block",gutterBottom:!0,className:t.licenseInfoValue,children:a.subnet_license.email})]}),Object(We.jsx)("img",{className:t.verifiedIcon,src:"/verified.svg",alt:"verified"})]})}):!i&&Object(We.jsxs)(k.a,{className:t.paperContainer,children:[!r&&Object(We.jsx)(lc.a,{to:"/license",onClick:function(e){e.stopPropagation()},className:t.noUnderLine,children:Object(We.jsx)(S.a,{className:t.licenseButton,variant:"contained",color:"primary",children:"Activate Product"})}),r&&a&&Object(We.jsx)(S.a,{disabled:n,className:t.licenseButton,variant:"contained",color:"primary",onClick:function(){return o(a.namespace,a.name)},children:"Attach License"})]})})})),Yu=Object(o.b)((function(e){return{loadingTenant:e.tenants.tenantDetails.loadingTenant,tenant:e.tenants.tenantDetails.tenantInfo}}),{setErrorSnackMessage:ce,setTenantDetailsLoad:Lu}),Qu=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)({},_t),{},{loaderAlign:{textAlign:"center"}},(e.spacing(4),{container:{position:"relative",maxWidth:1180,padding:"20px 35px 0","& h6":{color:"#777777",fontSize:30},"& p":{"& span:not(*[class*='smallUnit'])":{fontSize:16}}},sectionTitle:{padding:"0px",margin:"0px"},topSpacer:{height:"8px"}})))}))(Yu((function(e){var t=e.classes,a=e.tenant,c=e.loadingTenant,i=e.setTenantDetailsLoad,r=Object(n.useState)(),o=Object(m.a)(r,2),s=o[0],l=o[1],d=Object(n.useState)(!0),u=Object(m.a)(d,2),b=u[0],j=u[1],h=Object(n.useState)(!1),p=Object(m.a)(h,2),O=p[0],x=p[1];return Object(n.useEffect)((function(){b&&Ge.invoke("GET","/api/v1/subscription/info").then((function(e){l(e),j(!1)})).catch((function(e){j(!1)}))}),[b]),Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)("div",{className:t.topSpacer}),Object(We.jsx)("h1",{className:t.sectionTitle,children:"License"}),c?Object(We.jsx)("div",{className:t.loaderAlign,children:Object(We.jsx)(g.a,{})}):Object(We.jsx)(n.Fragment,{children:a&&Object(We.jsx)(k.a,{container:!0,children:Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(qu,{tenant:a,loadingLicenseInfo:b,loadingActivateProduct:O,licenseInfo:s,activateProduct:function(e,t){O||(x(!0),Ge.invoke("POST","/api/v1/subscription/namespaces/".concat(e,"/tenants/").concat(t,"/activate"),{}).then((function(){x(!1),i(!0),j(!0)})).catch((function(e){x(!1),ce(e)})))}})})})})]})}))),Zu=function(e,t){return{podAntiAffinity:{requiredDuringSchedulingIgnoredDuringExecution:[{labelSelector:{matchExpressions:[{key:"v1.min.io/tenant",operator:"In",values:[e]},{key:"v1.min.io/pool",operator:"In",values:[t]}]},topologyKey:"kubernetes.io/hostname"}]}}},Ju=function(e,t,a,n){var c=e.split("&"),i=[];c.forEach((function(e){var t=e.split("=");2===t.length&&i.push({key:t[0],operator:"In",values:[t[1]]})}));var r={nodeAffinity:{requiredDuringSchedulingIgnoredDuringExecution:{nodeSelectorTerms:[{matchExpressions:i}]}}};if(t){var o=Zu(a,n);r.podAntiAffinity=o.podAntiAffinity}return console.log(r),r},$u=Object(y.a)((function(e){return Object(f.a)(Object(p.a)({buttonContainer:{textAlign:"right"},multiContainer:{display:"flex",alignItems:"center",justifyContent:"flex-start"},sizeFactorContainer:{marginLeft:8},bottomContainer:{display:"flex",flexGrow:1,alignItems:"center","& div":{flexGrow:1,width:"100%"}},factorElements:{display:"flex",justifyContent:"flex-start"},sizeNumber:{fontSize:35,fontWeight:700,textAlign:"center"},sizeDescription:{fontSize:14,color:"#777",textAlign:"center"}},dt))}))((function(e){var t=e.tenant,a=e.classes,c=e.open,i=e.onClosePoolAndReload,r=Object(n.useState)(!1),o=Object(m.a)(r,2),s=o[0],l=o[1],d=Object(n.useState)(0),u=Object(m.a)(d,2),b=u[0],j=u[1],h=Object(n.useState)(0),p=Object(m.a)(h,2),g=p[0],x=p[1],f=Object(n.useState)(0),v=Object(m.a)(f,2),y=v[0],C=v[1],w=Object(n.useState)(""),T=Object(m.a)(w,2),N=T[0],E=T[1],A=Object(n.useState)([]),_=Object(m.a)(A,2),I=_[0],M=_[1],z=1073741824*g*y,D=z*b;return Object(n.useEffect)((function(){E(""),M([]),Ge.invoke("GET","/api/v1/namespaces/".concat(t.namespace,"/resourcequotas/").concat(t.namespace,"-storagequota")).then((function(e){var t=be()(e,"elements",[]).map((function(e){var t=be()(e,"name","").split(".storageclass.storage.k8s.io/requests.storage")[0];return{label:t,value:t}}));M(t),t.length>0&&E(t[0].value)})).catch((function(e){console.error(e)}))}),[t]),Object(We.jsx)(zn,{onClose:function(){return i(!1)},modalOpen:c,title:"Add Pool",children:Object(We.jsxs)("form",{noValidate:!0,autoComplete:"off",onSubmit:function(e){e.preventDefault(),l(!0);var a=Ie(t.pools),n=Zu(t.name,a),c={name:a,servers:b,volumes_per_server:y,volume_configuration:{size:1073741824*g,storage_class_name:N,labels:null},affinity:n};Ge.invoke("POST","/api/v1/namespaces/".concat(t.namespace,"/tenants/").concat(t.name,"/pools"),c).then((function(){l(!1),i(!0)})).catch((function(e){l(!1)}))},children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"number_of_nodes",name:"number_of_nodes",type:"number",onChange:function(e){j(parseInt(e.target.value))},label:"Number o Nodes",value:b.toString(10)})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"pool_size",name:"pool_size",type:"number",onChange:function(e){x(parseInt(e.target.value))},label:"Volume Size (Gi)",value:g.toString(10)})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"volumes_per_sever",name:"volumes_per_sever",type:"number",onChange:function(e){C(parseInt(e.target.value))},label:"Volumes per Server",value:y.toString(10)})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Vn,{id:"storage_class",name:"storage_class",onChange:function(e){E(e.target.value)},label:"Storage Class",value:N,options:I,disabled:I.length<1})}),Object(We.jsxs)(k.a,{item:!0,xs:12,children:[Object(We.jsxs)(k.a,{item:!0,xs:12,className:a.bottomContainer,children:[Object(We.jsxs)("div",{className:a.factorElements,children:[Object(We.jsxs)("div",{children:[Object(We.jsx)("div",{className:a.sizeNumber,children:fe(z.toString(10))}),Object(We.jsx)("div",{className:a.sizeDescription,children:"Instance Capacity"})]}),Object(We.jsxs)("div",{children:[Object(We.jsx)("div",{className:a.sizeNumber,children:fe(D.toString(10))}),Object(We.jsx)("div",{className:a.sizeDescription,children:"Total Capacity"})]})]}),Object(We.jsx)("div",{className:a.buttonContainer,children:Object(We.jsx)(S.a,{type:"submit",variant:"contained",color:"primary",disabled:s,children:"Save"})})]}),s&&Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(O.a,{})})]})]})})})),Xu=Object(o.b)((function(e){return{loadingTenant:e.tenants.tenantDetails.loadingTenant,selectedTenant:e.tenants.tenantDetails.currentTenant,tenant:e.tenants.tenantDetails.tenantInfo}}),{setErrorSnackMessage:ce,setTenantDetailsLoad:Lu}),eb=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)(Object(p.a)({},_t),{},{redState:{color:e.palette.error.main},yellowState:{color:e.palette.warning.main},greenState:{color:e.palette.success.main},greyState:{color:"grey"}},pt),(e.spacing(4),{container:{position:"relative",maxWidth:1180,padding:"20px 35px 0","& h6":{color:"#777777",fontSize:30},"& p":{"& span:not(*[class*='smallUnit'])":{fontSize:16}}},sectionTitle:{padding:"0px",margin:"0px"},topSpacer:{height:"8px"}})))}))(Xu((function(e){var t=e.classes,a=e.tenant,c=e.loadingTenant,i=e.setTenantDetailsLoad,r=Object(n.useState)([]),o=Object(m.a)(r,2),s=o[0],l=o[1],d=Object(n.useState)(!1),u=Object(m.a)(d,2),b=u[0],j=u[1],h=Object(n.useState)(""),p=Object(m.a)(h,2),O=p[0],g=p[1];Object(n.useEffect)((function(){if(a){var e=a.pools?a.pools:[];l(e)}}),[a]);var x=s.filter((function(e){return!!e.name.toLowerCase().includes(O.toLowerCase())}));return Object(We.jsxs)(n.Fragment,{children:[b&&null!==a&&Object(We.jsx)($u,{open:b,onClosePoolAndReload:function(e){j(!1),e&&i(!0)},tenant:a}),Object(We.jsx)("div",{className:t.topSpacer}),Object(We.jsx)("h1",{className:t.sectionTitle,children:"Pools"}),Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.actionsTray,children:[Object(We.jsx)(C.a,{placeholder:"Filter",className:t.searchField,id:"search-resource",label:"",onChange:function(e){g(e.target.value)},InputProps:{disableUnderline:!0,startAdornment:Object(We.jsx)(Wt.a,{position:"start",children:Object(We.jsx)(Jt,{})})},variant:"standard"}),Object(We.jsx)(S.a,{variant:"contained",color:"primary",startIcon:Object(We.jsx)(ba,{}),onClick:function(){j(!0)},children:"Expand Tenant"})]}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("br",{})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ei,{itemActions:[],columns:[{label:"Name",elementKey:"name"},{label:"Capacity",elementKey:"capacity"},{label:"# of Instances",elementKey:"servers"},{label:"# of Drives",elementKey:"volumes"}],isLoading:c,records:x,entityName:"Servers",idField:"name",customEmptyMessage:"No Pools found"})})]})]})}))),tb=Object(o.b)(null,{setErrorSnackMessage:ce})((function(e){var t=e.deleteOpen,a=e.selectedPod,c=e.closeDeleteModalAndRefresh,i=e.setErrorSnackMessage,r=Object(n.useState)(!1),o=Object(m.a)(r,2),s=o[0],l=o[1],d=Object(n.useState)(""),u=Object(m.a)(d,2),b=u[0],j=u[1];Object(n.useEffect)((function(){s&&Ge.invoke("DELETE","/api/v1/namespaces/".concat(a.namespace,"/tenants/").concat(a.tenant,"/pods/").concat(a.name)).then((function(){l(!1),c(!0)})).catch((function(e){l(!1),i(e)}))}),[s]);return Object(We.jsxs)(wn.a,{open:t,onClose:function(){c(!1)},"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[Object(We.jsx)(Tn.a,{id:"alert-dialog-title",children:"Delete Pod"}),Object(We.jsxs)(Nn.a,{children:[s&&Object(We.jsx)(O.a,{}),Object(We.jsxs)(cc.a,{id:"alert-dialog-description",children:["To continue please type ",Object(We.jsx)("b",{children:a.name})," in the box.",Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"retype-pod",name:"retype-pod",onChange:function(e){j(e.target.value)},label:"",value:b})})]})]}),Object(We.jsxs)(ic.a,{children:[Object(We.jsx)(S.a,{onClick:function(){c(!1)},color:"primary",disabled:s,children:"Cancel"}),Object(We.jsx)(S.a,{onClick:function(){b===a.name?l(!0):i({errorMessage:"Tenant name is incorrect",detailedError:""})},color:"secondary",autoFocus:!0,disabled:b!==a.name,children:"Delete"})]})]})})),ab=Object(o.b)((function(e){return{loadingTenant:e.tenants.tenantDetails.loadingTenant}}),{setErrorSnackMessage:ce}),nb=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)({},_t),(e.spacing(4),{container:{position:"relative",maxWidth:1180,padding:"20px 35px 0","& h6":{color:"#777777",fontSize:30},"& p":{"& span:not(*[class*='smallUnit'])":{fontSize:16}}},sectionTitle:{padding:"0px",margin:"0px"},topSpacer:{height:"8px"}})))}))(ab((function(e){var t=e.classes,a=e.match,c=e.history,i=e.loadingTenant,r=Object(n.useState)([]),o=Object(m.a)(r,2),s=o[0],l=o[1],d=Object(n.useState)(!0),u=Object(m.a)(d,2),b=u[0],j=u[1],h=Object(n.useState)(!1),p=Object(m.a)(h,2),O=p[0],g=p[1],x=Object(n.useState)(null),f=Object(m.a)(x,2),v=f[0],y=f[1],S=a.params.tenantName,C=a.params.tenantNamespace,k=[{type:"view",onClick:function(e){c.push("/namespaces/".concat(C,"/tenants/").concat(S,"/pods/").concat(e.name))}},{type:"delete",onClick:function(e){e.tenant=S,e.namespace=C,y(e),g(!0)}}];return Object(n.useEffect)((function(){i&&j(!0)}),[i]),Object(n.useEffect)((function(){b&&Ge.invoke("GET","/api/v1/namespaces/".concat(C,"/tenants/").concat(S,"/pods")).then((function(e){for(var t=0;t<e.length;t++){var a=Date.now()/1e3|0;e[t].time=Me((a-parseInt(e[t].timeCreated)).toString())}l(e),j(!1)})).catch((function(e){ce({errorMessage:"Error loading pods",detailedError:e.detailedError})}))}),[b,S,C]),Object(We.jsxs)(n.Fragment,{children:[O&&Object(We.jsx)(tb,{deleteOpen:O,selectedPod:v,closeDeleteModalAndRefresh:function(e){g(!1)}}),Object(We.jsx)("div",{className:t.topSpacer}),Object(We.jsx)("h1",{className:t.sectionTitle,children:"Pods"}),Object(We.jsx)(ei,{columns:[{label:"Name",elementKey:"name"},{label:"Status",elementKey:"status"},{label:"Age",elementKey:"time"},{label:"Pod IP",elementKey:"podIP"},{label:"Restarts",elementKey:"restarts",renderFunction:function(e){return null!=e?e:0}},{label:"Node",elementKey:"node"}],isLoading:b,records:s,itemActions:k,entityName:"Servers",idField:"name"})]})}))),cb={setErrorSnackMessage:ce},ib=Object(o.b)(null,cb),rb=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)(Object(p.a)({headerLabel:{fontSize:22,fontWeight:600,color:"#000",marginTop:4},breadcrumLink:{textDecoration:"none",color:"black"},tableWrapper:{height:"calc(100vh - 267px)"}},pt),Ot),(e.spacing(4),{container:{position:"relative",maxWidth:1180,padding:"20px 35px 0","& h6":{color:"#777777",fontSize:30},"& p":{"& span:not(*[class*='smallUnit'])":{fontSize:16}}},sectionTitle:{padding:"0px",margin:"0px"},topSpacer:{height:"8px"}})))}))(ib((function(e){var t=e.classes,a=e.setErrorSnackMessage,c=e.match,i=Object(n.useState)([]),r=Object(m.a)(i,2),o=r[0],s=r[1],l=Object(n.useState)(""),d=Object(m.a)(l,2),u=d[0],b=d[1],j=Object(n.useState)(!0),h=Object(m.a)(j,2),p=h[0],O=h[1],g=c.params.tenantName,x=c.params.tenantNamespace;Object(n.useEffect)((function(){p&&Ge.invoke("GET","/api/v1/namespaces/".concat(x,"/tenants/").concat(g,"/pvcs")).then((function(e){var t=be()(e,"pvcs",[]);s(t||[]),O(!1)})).catch((function(e){O(!1),a(e)}))}),[p,a,g,x]);var f=o.filter((function(e){return e.name.includes(u)}));return Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)("h1",{className:t.sectionTitle,children:"Volumes"}),Object(We.jsx)(k.a,{item:!0,xs:12,className:t.actionsTray,children:Object(We.jsx)(C.a,{placeholder:"Search Volumes (PVCs)",className:t.searchField,id:"search-resource",label:"",InputProps:{disableUnderline:!0,startAdornment:Object(We.jsx)(Wt.a,{position:"start",children:Object(We.jsx)(Jt,{})})},onChange:function(e){b(e.target.value)},variant:"standard"})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("br",{})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ei,{itemActions:[],columns:[{label:"Name",elementKey:"name"},{label:"Status",elementKey:"status",width:120},{label:"Capacity",elementKey:"capacity",width:120},{label:"Storage Class",elementKey:"storageClass"}],isLoading:p,records:f,entityName:"PVCs",idField:"name",customPaperHeight:t.tableWrapper})})]})}))),ob=Object(o.b)((function(e){return{loadingTenant:e.tenants.tenantDetails.loadingTenant,selectedTenant:e.tenants.tenantDetails.currentTenant,tenant:e.tenants.tenantDetails.tenantInfo,logEnabled:be()(e.tenants.tenantDetails.tenantInfo,"logEnabled",!1),monitoringEnabled:be()(e.tenants.tenantDetails.tenantInfo,"monitoringEnabled",!1),encryptionEnabled:be()(e.tenants.tenantDetails.tenantInfo,"encryptionEnabled",!1),adEnabled:be()(e.tenants.tenantDetails.tenantInfo,"idpAdEnabled",!1),oidcEnabled:be()(e.tenants.tenantDetails.tenantInfo,"idpOidcEnabled",!1)}}),{setErrorSnackMessage:ce}),sb=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)({},_t),{},{flexBox:{display:"flex",flexFlow:"column"},iframeStyle:{border:"0px",flex:"1 1 auto",minHeight:"800px",width:"100%"}},(e.spacing(4),{container:{position:"relative",maxWidth:1180,padding:"20px 35px 0","& h6":{color:"#777777",fontSize:30},"& p":{"& span:not(*[class*='smallUnit'])":{fontSize:16}}},sectionTitle:{padding:"0px",margin:"0px"},topSpacer:{height:"8px"}})))}))(ob((function(e){var t=e.classes,a=e.match,i=a.params.tenantName,r=a.params.tenantNamespace,o=Object(n.useState)(!0),s=Object(m.a)(o,2),l=s[0],d=s[1];return Object(We.jsxs)(c.a.Fragment,{children:[Object(We.jsx)("h1",{className:t.sectionTitle,children:"Metrics"}),l&&Object(We.jsx)("div",{style:{marginTop:"80px"},children:Object(We.jsx)(O.a,{})}),Object(We.jsx)("iframe",{className:t.iframeStyle,title:"metrics",src:"/api/proxy/".concat(r,"/").concat(i,"/metrics?cp=y"),onLoad:function(){d(!1)}})]})}))),lb=a(367),db=a.n(lb),ub=a(366),bb=a.n(ub),jb=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)(Object(p.a)({},lt),ut),{},{textBoxContainer:{flexGrow:1,position:"relative",display:"flex",flexWrap:"nowrap",height:48},errorState:{color:"#b53b4b",fontSize:14,position:"absolute",top:7,right:7},errorText:{margin:"0",fontSize:"0.75rem",marginTop:3,textAlign:"left",fontFamily:"Lato,sans-serif",fontWeight:400,lineHeight:"1.66",color:"#dc1f2e"},valueString:{maxWidth:350,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",marginTop:2},fileReselect:{display:"flex",alignItems:"center",height:48},fieldBottom:{borderBottom:"#9c9c9c 1px solid"},fileInputField:{margin:"13px 0"}}))}))((function(e){var t=e.label,a=e.classes,i=e.onChange,r=e.id,o=e.name,s=e.disabled,l=void 0!==s&&s,d=e.tooltip,u=void 0===d?"":d,b=e.required,j=e.error,h=void 0===j?"":j,p=e.accept,O=void 0===p?"":p,g=e.value,x=void 0===g?"":g,f=Object(n.useState)(!1),v=Object(m.a)(f,2),y=v[0],S=v[1];return Object(We.jsx)(c.a.Fragment,{children:Object(We.jsxs)(k.a,{item:!0,xs:12,className:"".concat(a.fieldBottom," ").concat(a.fieldContainer," ").concat(""!==h?a.errorInField:""),children:[""!==t&&Object(We.jsxs)(Dn.a,{htmlFor:r,className:"".concat(""!==h?a.fieldLabelError:""," ").concat(a.inputLabel),children:[Object(We.jsxs)("span",{children:[t,b?"*":""]}),""!==u&&Object(We.jsx)("div",{className:a.tooltipContainer,children:Object(We.jsx)(Ln.a,{title:u,placement:"top-start",children:Object(We.jsx)("div",{children:Object(We.jsx)(oa,{className:a.tooltip})})})})]}),y||""===x?Object(We.jsxs)("div",{className:a.textBoxContainer,children:[Object(We.jsx)("input",{type:"file",name:o,onChange:function(e){var t=be()(e,"target.files[0].name","");!function(e,t){var a=e.target.files[0],n=new FileReader;n.readAsDataURL(a),n.onload=function(){var e=n.result;if(e){var a=e.toString().split("base64,");2===a.length&&t(a[1])}}}(e,(function(e){i(e,t)}))},accept:O,required:b,disabled:l,className:a.fileInputField}),""!==x&&Object(We.jsx)(kn.a,{color:"primary","aria-label":"upload picture",component:"span",onClick:function(){S(!1)},disableRipple:!1,disableFocusRipple:!1,size:"large",children:Object(We.jsx)(bb.a,{})}),""!==h&&Object(We.jsx)(Bu,{errorMessage:h})]}):Object(We.jsxs)("div",{className:a.fileReselect,children:[Object(We.jsx)("div",{className:a.valueString,children:x}),Object(We.jsx)(kn.a,{color:"primary","aria-label":"upload picture",component:"span",onClick:function(){S(!0)},disableRipple:!1,disableFocusRipple:!1,size:"large",children:Object(We.jsx)(db.a,{})})]})]})})})),hb=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)({},_t),(e.spacing(4),{container:{position:"relative",maxWidth:1180,padding:"20px 35px 0","& h6":{color:"#777777",fontSize:30},"& p":{"& span:not(*[class*='smallUnit'])":{fontSize:16}}},sectionTitle:{padding:"0px",margin:"0px"},topSpacer:{height:"8px"}})))}))((function(e){e.classes;var t=e.open,a=e.cancelLabel,c=e.okLabel,i=e.onClose,r=e.cancelOnClick,o=e.okOnClick,s=e.title,l=e.description,d=Object(n.useState)(!1),u=Object(m.a)(d,2),b=u[0],j=u[1];return t?Object(We.jsxs)(wn.a,{open:t,onClose:i,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[Object(We.jsx)(Tn.a,{id:"alert-dialog-title",children:s}),Object(We.jsxs)(Nn.a,{children:[b&&Object(We.jsx)(O.a,{}),Object(We.jsx)(cc.a,{id:"alert-dialog-description",children:l})]}),Object(We.jsxs)(ic.a,{children:[Object(We.jsx)(S.a,{onClick:r,color:"primary",disabled:b,children:a||"Cancel"}),Object(We.jsx)(S.a,{onClick:function(){j(!0),null!==o&&o(),j(!1)},color:"secondary",autoFocus:!0,children:c||"Ok"})]})]}):null})),mb={setErrorSnackMessage:ce,setTenantDetailsLoad:Lu},pb=Object(o.b)((function(e){return{loadingTenant:e.tenants.tenantDetails.loadingTenant,selectedTenant:e.tenants.tenantDetails.currentTenant,tenant:e.tenants.tenantDetails.tenantInfo}}),mb),Ob=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)({},_t),{},{loaderAlign:{textAlign:"center"},title:{marginTop:35},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},underline:{textDecorationLine:"underline"},paperContainer:{padding:"15px 15px 15px 50px"},verifiedIcon:{width:96,position:"absolute",right:0,bottom:29},noUnderLine:{textDecoration:"none"},certificateInfo:{height:"auto",margin:5},certificateInfoName:{fontWeight:"bold"}},(e.spacing(4),{container:{position:"relative",maxWidth:1180,padding:"20px 35px 0","& h6":{color:"#777777",fontSize:30},"& p":{"& span:not(*[class*='smallUnit'])":{fontSize:16}}},sectionTitle:{padding:"0px",margin:"0px"},topSpacer:{height:"8px"}})))}))(pb((function(e){var t=e.classes,a=e.tenant,i=e.loadingTenant,r=e.setErrorSnackMessage,o=(e.setTenantDetailsLoad,Object(n.useState)(!1)),s=Object(m.a)(o,2),l=s[0],d=s[1],u=Object(n.useState)(!1),b=Object(m.a)(u,2),j=b[0],h=b[1],O=Object(n.useState)(!1),f=Object(m.a)(O,2),v=f[0],y=f[1],C=Object(n.useState)(!1),T=Object(m.a)(C,2),N=T[0],E=T[1],A=Object(n.useState)([]),_=Object(m.a)(A,2),I=_[0],M=_[1],z=Object(n.useState)([]),D=Object(m.a)(z,2),L=D[0],F=D[1],R=Object(n.useState)([]),P=Object(m.a)(R,2),B=P[0],U=P[1],G=Object(n.useState)([]),K=Object(m.a)(G,2),W=K[0],V=K[1],H=Object(n.useState)([]),q=Object(m.a)(H,2),Y=q[0],Q=q[1],Z=Object(n.useCallback)((function(){Ge.invoke("GET","/api/v1/namespaces/".concat(null===a||void 0===a?void 0:a.namespace,"/tenants/").concat(null===a||void 0===a?void 0:a.name,"/security")).then((function(e){y(e.autoCert),(e.customCertificates.minio||e.customCertificates.minioCAs)&&E(!0),V(e.customCertificates.minio||[]),Q(e.customCertificates.minioCAs||[])})).catch((function(e){r(e)}))}),[a,r]);Object(n.useEffect)((function(){a&&Z()}),[a,Z]);var J=function(e){M([].concat(Object(Kt.a)(I),[e.name]));var t=W.filter((function(t){return t.name!==e.name})),a=Y.filter((function(t){return t.name!==e.name}));V(t),Q(a)},$=function(e,t,a,n,c){var i=L,r=function(){};switch(e){case"minio":i=L,r=F;break;case"minioCAs":i=B,r=U}r(i.map((function(e){var i;return e.id===t?Object(p.a)(Object(p.a)({},e),{},(i={},Object(it.a)(i,a,n),Object(it.a)(i,"encoded_".concat(a),c),i)):e})))},X=function(e,t){var a=L,n=function(){};switch(e){case"minio":a=L,n=F;break;case"minioCAs":a=B,n=U}a.length>1&&n(a.filter((function(e){return e.id!==t})))},ee=function(e){var t=L,a=function(){};switch(e){case"minio":t=L,a=F;break;case"minioCAs":t=B,a=U}a([].concat(Object(Kt.a)(t),[{id:Date.now().toString(),key:"",cert:"",encoded_key:"",encoded_cert:""}]))};return Object(We.jsxs)(c.a.Fragment,{children:[Object(We.jsx)(hb,{open:j,title:"Save and Restart",description:"Are you sure you want to save the changes and restart the service?",onClose:function(){return h(!1)},cancelOnClick:function(){return h(!1)},okOnClick:function(){d(!0);var e={autoCert:v,customCertificates:{}};e.customCertificates=N?{secretsToBeDeleted:I,minio:L.map((function(e){return{crt:e.encoded_cert,key:e.encoded_key}})).filter((function(e){return e.crt&&e.key})),minioCAs:B.map((function(e){return e.encoded_cert})).filter((function(e){return e}))}:{secretsToBeDeleted:[].concat(Object(Kt.a)(W.map((function(e){return e.name}))),Object(Kt.a)(Y.map((function(e){return e.name})))),minio:[],minioCAs:[]},Ge.invoke("POST","/api/v1/namespaces/".concat(null===a||void 0===a?void 0:a.namespace,"/tenants/").concat(null===a||void 0===a?void 0:a.name,"/security"),e).then((function(){d(!1),h(!1),F([{cert:"",encoded_cert:"",encoded_key:"",id:Date.now().toString(),key:""}]),U([{cert:"",encoded_cert:"",encoded_key:"",id:Date.now().toString(),key:""}]),Z()})).catch((function(e){r(e),d(!1)}))},cancelLabel:"Cancel",okLabel:"Restart"}),Object(We.jsx)("div",{className:t.topSpacer}),i?Object(We.jsx)(x.a,{className:t.paperContainer,children:Object(We.jsx)("div",{className:t.loaderAlign,children:Object(We.jsx)(g.a,{})})}):Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)("h1",{className:t.sectionTitle,children:"Security"}),Object(We.jsxs)(x.a,{className:t.paperContainer,children:[Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.title,children:[Object(We.jsx)(ac,{value:"enableAutoCert",id:"enableAutoCert",name:"enableAutoCert",checked:v,onChange:function(e){var t=e.target.checked;y(t)},label:"Manage Inter-Node Certificates Automatically",description:"The internode certificates will be generated and managed by MinIO Operator"}),Object(We.jsx)(ac,{value:"enableCustomCerts",id:"enableCustomCerts",name:"enableCustomCerts",checked:N,onChange:function(e){var t=e.target.checked;E(t)},label:"Custom Certificates"})]}),Object(We.jsx)(k.a,{item:!0,xs:12,className:t.buttonContainer,children:Object(We.jsx)(S.a,{type:"submit",variant:"contained",color:"primary",disabled:j||l,onClick:function(){return h(!0)},children:"Save"})})]}),N&&Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)("br",{}),Object(We.jsx)(x.a,{className:t.paperContainer,children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsx)(k.a,{container:!0,item:!0,xs:12,children:Object(We.jsx)(w.a,{variant:"h5",display:"block",gutterBottom:!0,children:"MinIO Certificates"})}),Object(We.jsx)(k.a,{container:!0,item:!0,xs:12,children:W.map((function(e){return Object(We.jsx)(Sr.a,{variant:"outlined",color:"primary",className:t.certificateInfo,label:Object(We.jsxs)("div",{children:[Object(We.jsx)(w.a,{variant:"subtitle1",display:"block",gutterBottom:!0,children:e.name}),Object(We.jsx)(w.a,{className:t.italic,variant:"caption",display:"block",gutterBottom:!0,children:e.domains&&e.domains.map((function(e){return Object(We.jsx)("div",{children:e})}))}),Object(We.jsx)(w.a,{className:t.bold,variant:"overline",gutterBottom:!0,children:"Expiry:\xa0"}),Object(We.jsx)(w.a,{variant:"caption",gutterBottom:!0,children:Object(We.jsx)(Wi.a,{format:"YYYY-MM-DD",children:e.expiry})})]}),onDelete:function(){return J(e)}},e.name)}))}),Object(We.jsx)(k.a,{container:!0,item:!0,xs:12,children:Object(We.jsx)("br",{})}),Object(We.jsx)(k.a,{container:!0,item:!0,xs:12,children:L.map((function(e){return Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(k.a,{item:!0,xs:5,children:Object(We.jsx)(jb,{onChange:function(t,a){return $("minio",e.id,"cert",a,t)},accept:".cer,.crt,.cert,.pem",id:"tlsCert",name:"tlsCert",label:"Cert",value:e.cert})}),Object(We.jsx)(k.a,{item:!0,xs:5,children:Object(We.jsx)(jb,{onChange:function(t,a){return $("minio",e.id,"key",a,t)},accept:".key,.pem",id:"tlsKey",name:"tlsKey",label:"Key",value:e.key})}),Object(We.jsx)(k.a,{item:!0,xs:1,children:Object(We.jsx)(S.a,{onClick:function(){return X("minio",e.id)},color:"secondary",children:"Remove"})})]},e.id)}))}),Object(We.jsx)(k.a,{container:!0,item:!0,xs:12,children:Object(We.jsx)(S.a,{onClick:function(){return ee("minio")},color:"primary",children:"Add Certificate"})}),Object(We.jsx)(k.a,{container:!0,item:!0,xs:12,children:Object(We.jsx)("br",{})}),Object(We.jsx)(k.a,{container:!0,item:!0,xs:12,children:Object(We.jsx)(w.a,{variant:"h6",display:"block",gutterBottom:!0,children:"MinIO CA Certificates"})}),Object(We.jsx)(k.a,{container:!0,item:!0,xs:12,children:Y.map((function(e){return Object(We.jsx)(Sr.a,{variant:"outlined",color:"primary",className:t.certificateInfo,label:Object(We.jsxs)("div",{children:[Object(We.jsx)(w.a,{variant:"subtitle1",display:"block",gutterBottom:!0,children:e.name}),Object(We.jsx)(w.a,{className:t.italic,variant:"caption",display:"block",gutterBottom:!0,children:e.domains&&e.domains.map((function(e){return Object(We.jsx)("div",{children:e})}))}),Object(We.jsx)(w.a,{className:t.bold,variant:"overline",gutterBottom:!0,children:"Expiry:\xa0"}),Object(We.jsx)(w.a,{variant:"caption",gutterBottom:!0,children:Object(We.jsx)(Wi.a,{format:"YYYY-MM-DD",children:e.expiry})})]}),onDelete:function(){return J(e)}},e.name)}))}),Object(We.jsx)(k.a,{container:!0,item:!0,xs:12,children:Object(We.jsx)("br",{})}),Object(We.jsx)(k.a,{container:!0,item:!0,xs:12,children:B.map((function(e){return Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(k.a,{item:!0,xs:10,children:Object(We.jsx)(jb,{onChange:function(t,a){return $("minioCAs",e.id,"cert",a,t)},accept:".cer,.crt,.cert,.pem",id:"tlsCert",name:"tlsCert",label:"Cert",value:e.cert})}),Object(We.jsx)(k.a,{item:!0,xs:1,children:Object(We.jsx)(S.a,{onClick:function(){return X("minioCAs",e.id)},color:"secondary",children:"Remove"})})]},e.id)}))}),Object(We.jsx)(k.a,{container:!0,item:!0,xs:12,children:Object(We.jsx)(S.a,{onClick:function(){return ee("minioCAs")},color:"primary",children:"Add CA Certificate"})}),Object(We.jsx)(k.a,{item:!0,xs:12,className:t.buttonContainer,children:Object(We.jsx)(S.a,{type:"submit",variant:"contained",color:"primary",disabled:j||l,onClick:function(){return h(!0)},children:"Save"})})]})})]})]})]})}))),gb=Object(o.b)(null,{setErrorSnackMessage:ce})((function(e){var t=e.deleteOpen,a=e.selectedTenant,c=e.closeDeleteModalAndRefresh,i=e.setErrorSnackMessage,r=Object(n.useState)(!1),o=Object(m.a)(r,2),s=o[0],l=o[1],d=Object(n.useState)(""),u=Object(m.a)(d,2),b=u[0],j=u[1];Object(n.useEffect)((function(){s&&Ge.invoke("DELETE","/api/v1/namespaces/".concat(a.namespace,"/tenants/").concat(a.name)).then((function(){l(!1),c(!0)})).catch((function(e){l(!1),i(e)}))}),[s]);return Object(We.jsxs)(wn.a,{open:t,onClose:function(){c(!1)},"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[Object(We.jsx)(Tn.a,{id:"alert-dialog-title",children:"Delete Tenant"}),Object(We.jsxs)(Nn.a,{children:[s&&Object(We.jsx)(O.a,{}),Object(We.jsxs)(cc.a,{id:"alert-dialog-description",children:["To continue please type ",Object(We.jsx)("b",{children:a.name})," in the box.",Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"retype-tenant",name:"retype-tenant",onChange:function(e){j(e.target.value)},label:"",value:b})})]})]}),Object(We.jsxs)(ic.a,{children:[Object(We.jsx)(S.a,{onClick:function(){c(!1)},color:"primary",disabled:s,children:"Cancel"}),Object(We.jsx)(S.a,{onClick:function(){b===a.name?l(!0):i({errorMessage:"Tenant name is incorrect",detailedError:""})},color:"secondary",autoFocus:!0,disabled:b!==a.name,children:"Delete"})]})]})})),xb=Object(o.b)((function(e){return{loadingTenant:e.tenants.tenantDetails.loadingTenant}}),{setErrorSnackMessage:ce}),fb=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)(Object(p.a)({logList:{background:"#fff",minHeight:400,height:"calc(100vh - 304px)",overflow:"auto",fontSize:13,padding:"25px 45px 0",border:"1px solid #EAEDEE",borderRadius:4}},Et),Ot),{},{actionsTray:Object(p.a)(Object(p.a)({},pt.actionsTray),{},{padding:"15px 0 0"}),logerror:{color:"#A52A2A"},logerror_tab:{color:"#A52A2A",paddingLeft:25},ansidefault:{color:"#000"},highlight:{"& span":{backgroundColor:"#082F5238"}}},(e.spacing(4),{container:{position:"relative",maxWidth:1180,padding:"20px 35px 0","& h6":{color:"#777777",fontSize:30},"& p":{"& span:not(*[class*='smallUnit'])":{fontSize:16}}},sectionTitle:{padding:"0px",margin:"0px"},topSpacer:{height:"8px"}})))}))(xb((function(e){var t=e.classes,a=e.tenant,i=e.namespace,r=e.podName,o=e.propLoading,s=e.setErrorSnackMessage,l=e.loadingTenant,d=Object(n.useState)(""),u=Object(m.a)(d,2),b=u[0],j=u[1],h=Object(n.useState)([]),p=Object(m.a)(h,2),O=p[0],g=p[1],f=Object(n.useState)(!0),v=Object(m.a)(f,2),y=v[0],S=v[1];Object(n.useEffect)((function(){o&&S(!0)}),[o]),Object(n.useEffect)((function(){l&&S(!0)}),[l]);var w=O.map((function(e,a){return function(e,a){var n=(e=e.replace(/([^\x20-\x7F])/g,"")).replace(/((\[[0-9;]+m))/g,""),c=""!==b&&e.toLowerCase().includes(b.toLowerCase());return n.startsWith(" ")?Object(We.jsx)("div",{className:"".concat(c?t.highlight:""),children:Object(We.jsx)("span",{className:t.tab,children:n})},a):Object(We.jsx)("div",{className:"".concat(c?t.highlight:""),children:Object(We.jsx)("span",{className:t.ansidefault,children:n})},a)}(e,a)}));return Object(n.useEffect)((function(){y&&Ge.invoke("GET","/api/v1/namespaces/".concat(i,"/tenants/").concat(a,"/pods/").concat(r)).then((function(e){g(e.split("\n")),S(!1)})).catch((function(e){s(e),S(!1)}))}),[y,r,i,a,s]),Object(We.jsxs)(c.a.Fragment,{children:[Object(We.jsx)(k.a,{item:!0,xs:12,className:t.actionsTray,children:Object(We.jsx)(C.a,{placeholder:"Highlight Line",className:t.searchField,id:"search-resource",label:"",onChange:function(e){j(e.target.value)},InputProps:{disableUnderline:!0,startAdornment:Object(We.jsx)(Wt.a,{position:"start",children:Object(We.jsx)(Jt,{})})},variant:"standard"})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("br",{})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(x.a,{children:Object(We.jsx)("div",{className:t.logList,children:w})})})]})}))),vb=Object(o.b)((function(e){return{loadingTenant:e.tenants.tenantDetails.loadingTenant}}),{setErrorSnackMessage:ce}),yb=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)(Object(p.a)(Object(p.a)(Object(p.a)({},pt),Et),Ot),At),{},{actionsTray:Object(p.a)(Object(p.a)({},pt.actionsTray),{},{padding:"15px 0 0"})}))}))(vb((function(e){var t=e.classes,a=e.tenant,i=e.namespace,r=e.podName,o=e.propLoading,s=e.setErrorSnackMessage,l=e.loadingTenant,d=Object(n.useState)([]),u=Object(m.a)(d,2),b=u[0],j=u[1],h=Object(n.useState)(!0),p=Object(m.a)(h,2),O=p[0],g=p[1];return Object(n.useEffect)((function(){o&&g(!0)}),[o]),Object(n.useEffect)((function(){l&&g(!0)}),[l]),Object(n.useEffect)((function(){O&&Ge.invoke("GET","/api/v1/namespaces/".concat(i,"/tenants/").concat(a,"/pods/").concat(r,"/events")).then((function(e){for(var t=0;t<e.length;t++){var a=Date.now()/1e3|0;e[t].seen=Me((a-e[t].last_seen).toString())}j(e),g(!1)})).catch((function(e){s(e),g(!1)}))}),[O,r,i,a,s]),Object(We.jsx)(c.a.Fragment,{children:Object(We.jsx)(k.a,{item:!0,xs:12,className:t.actionsTray,children:Object(We.jsx)(ei,{itemActions:[],columns:[{label:"Namespace",elementKey:"namespace"},{label:"Last Seen",elementKey:"seen"},{label:"Message",elementKey:"message"},{label:"Event Type",elementKey:"event_type"},{label:"Reason",elementKey:"reason"}],isLoading:O,records:b,entityName:"Events",idField:"event"})})})}))),Sb=Object(y.a)((function(e){return Object(f.a)(Object(p.a)({breadcrumLink:{textDecoration:"none",color:"black"}},(e.spacing(4),{container:{position:"relative",maxWidth:1180,padding:"20px 35px 0","& h6":{color:"#777777",fontSize:30},"& p":{"& span:not(*[class*='smallUnit'])":{fontSize:16}}},sectionTitle:{padding:"0px",margin:"0px"},topSpacer:{height:"8px"}})))}))((function(e){var t=e.classes,a=e.match,c=Object(n.useState)(0),i=Object(m.a)(c,2),r=i[0],o=i[1],s=Object(n.useState)(!0),l=Object(m.a)(s,2),d=l[0],u=l[1],b=a.params.tenantNamespace,j=a.params.tenantName,h=a.params.podName;function O(e){return{id:"simple-tab-".concat(e),"aria-controls":"simple-tabpanel-".concat(e)}}return Object(n.useEffect)((function(){d&&u(!1)}),[d]),Object(We.jsxs)(n.Fragment,{children:[Object(We.jsxs)(k.a,{item:!0,xs:12,children:[Object(We.jsx)("div",{className:t.topSpacer}),Object(We.jsxs)("h1",{className:t.sectionTitle,children:[Object(We.jsx)(lc.a,{to:"/namespaces/".concat(b,"/tenants/").concat(j,"/pods"),className:t.breadcrumLink,children:"Pods"})," ","> ",h]})]}),Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsx)(k.a,{item:!0,xs:9,children:Object(We.jsxs)(Nc.a,{value:r,onChange:function(e,t){o(t)},indicatorColor:"primary",textColor:"primary","aria-label":"cluster-tabs",variant:"scrollable",scrollButtons:"auto",children:[Object(We.jsx)(Ec.a,Object(p.a)({label:"Events"},O(0))),Object(We.jsx)(Ec.a,Object(p.a)({label:"Logs"},O(1)))]})}),0===r&&Object(We.jsx)(yb,{tenant:j,namespace:b,podName:h,propLoading:d}),1===r&&Object(We.jsx)(fb,{tenant:j,namespace:b,podName:h,propLoading:d})]})]})})),Cb=Object(o.b)((function(e){return{loadingTenant:e.tenants.tenantDetails.loadingTenant,currentTab:e.tenants.tenantDetails.currentTab,selectedTenant:e.tenants.tenantDetails.currentTenant,selectedNamespace:e.tenants.tenantDetails.currentNamespace,tenantInfo:e.tenants.tenantDetails.tenantInfo}}),{setErrorSnackMessage:ce,setSnackBarMessage:ne,setTenantDetailsLoad:Lu,setTenantName:function(e,t){return{type:_u,name:e,namespace:t}},setTenantInfo:function(e){return{type:Iu,tenant:e}},setTenantTab:function(e){return{type:Mu,tab:e}}}),kb=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)({},_t),{},{redState:{color:e.palette.error.main,"& .MuiSvgIcon-root":{width:16,height:16}},yellowState:{color:e.palette.warning.main,"& .MuiSvgIcon-root":{width:16,height:16}},greenState:{color:e.palette.success.main,"& .MuiSvgIcon-root":{width:16,height:16}},greyState:{color:"grey","& .MuiSvgIcon-root":{width:16,height:16}},healthStatusIcon:{position:"relative",fontSize:10,left:26,height:10,bottom:16}},(e.spacing(4),{container:{position:"relative",maxWidth:1180,padding:"20px 35px 0","& h6":{color:"#777777",fontSize:30},"& p":{"& span:not(*[class*='smallUnit'])":{fontSize:16}}},sectionTitle:{padding:"0px",margin:"0px"},topSpacer:{height:"8px"}})))}))(Cb((function(e){var t=e.classes,a=e.match,c=e.history,i=e.loadingTenant,r=e.currentTab,o=e.selectedTenant,l=e.tenantInfo,d=e.selectedNamespace,u=e.setErrorSnackMessage,b=e.setSnackBarMessage,j=e.setTenantDetailsLoad,h=e.setTenantName,p=e.setTenantInfo,O=e.setTenantTab,g=Object(n.useState)(!1),x=Object(m.a)(g,2),f=x[0],v=x[1],y=a.params.tenantName,S=a.params.tenantNamespace,C=Object(n.useState)(!1),w=Object(m.a)(C,2),T=w[0],N=w[1];Object(n.useEffect)((function(){i||y===o&&S===d||(h(y,S),j(!0))}),[i,o,d,j,p,h,y,S]),Object(n.useEffect)((function(){i&&Ge.invoke("GET","/api/v1/namespaces/".concat(S,"/tenants/").concat(y)).then((function(e){var t,a=e.pools?e.pools:[],n=0,c=0,i=0,r=Object(io.a)(a);try{for(r.s();!(t=r.n()).done;){var o=t.value,s=o.volumes_per_server*o.servers*o.volume_configuration.size;o.label="pool-".concat(i),void 0!==o.name&&""!==o.name||(o.name=o.label),o.capacity=fe(s+""),o.volumes=o.servers*o.volumes_per_server,n+=o.servers,c+=o.volumes,i+=1}}catch(l){r.e(l)}finally{r.f()}e.total_instances=n,e.total_volumes=c,p(e),j(!1)})).catch((function(e){u(e),j(!1)}))}),[i,S,y,p,j,u]),Object(n.useEffect)((function(){var e=be()(a,"path","/").split("/"),t=e[e.length-1];switch(t){case"pools":case"pods":case":podName":case"volumes":case"metrics":case"license":case"security":O(t);break;default:O("summary")}}),[a,O]);for(var E,A=function(e){O(e),c.push("/namespaces/".concat(S,"/tenants/").concat(y,"/").concat(e))},_=[{label:"Summary",value:"summary",onclick:function(e){A(e)},selected:function(){return"summary"===r}},{label:"Metrics",value:"metrics",onclick:function(e){A("metrics")},selected:function(){return"metrics"===r}},{label:"Security",value:"security",onclick:function(e){A("security")},selected:function(){return"security"===r}},{label:"Pools",value:"pools",onclick:function(e){A("pools")},selected:function(){return"pools"===r}},{label:"Pods",value:"pods",onclick:function(e){A("pods")},selected:function(){return"pods"===r||":podName"===r}},{label:"Volumes",value:"volumes",onclick:function(e){A("volumes")},selected:function(){return"volumes"===r}},{label:"License",value:"license",onclick:function(e){A("license")},selected:function(){return"license"===r}}],I=_[0].value,M=0,z=_;M<z.length;M++){var D=z[M];if(D.selected()){I=D.value;break}}return Object(We.jsxs)(n.Fragment,{children:[f&&Object(We.jsx)(Pu,{open:f,closeModalAndRefresh:function(){v(!1),j(!0)},tenant:y,namespace:S}),T&&null!==l&&Object(We.jsx)(gb,{deleteOpen:T,selectedTenant:l,closeDeleteModalAndRefresh:function(e){N(!1),e&&(b("Tenant Deleted"),c.push("/tenants"))}}),Object(We.jsx)(sc,{label:Object(We.jsx)(n.Fragment,{children:Object(We.jsx)(lc.a,{to:"/tenants",className:t.breadcrumLink,children:"Tenants"})})}),Object(We.jsxs)(k.a,{container:!0,className:t.container,children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ir,{icon:Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(Sa,{width:40}),Object(We.jsx)("div",{className:t.healthStatusIcon,children:l&&l.status&&Object(We.jsx)("span",{className:(E=l.status.health_status,"red"===E?t.redState:"yellow"===E?t.yellowState:"green"===E?t.greenState:t.greyState),children:Object(We.jsx)(Ma,{})})})]}),title:a.params.tenantName,subTitle:Object(We.jsxs)(n.Fragment,{children:["Namespace: ",S," / Capacity:"," ",fe(((null===l||void 0===l?void 0:l.total_size)||0).toString(10))]}),actions:Object(We.jsxs)("div",{children:[Object(We.jsx)(Ln.a,{title:"Delete",children:Object(We.jsx)(mr,{color:"primary","aria-label":"Delete",onClick:function(){N(!0)},size:"large",children:Object(We.jsx)(na,{})})}),Object(We.jsx)(Ln.a,{title:"Edit YAML",children:Object(We.jsx)(mr,{color:"primary","aria-label":"Edit YAML",onClick:function(){v(!0)},size:"large",children:Object(We.jsx)(Zt,{})})}),Object(We.jsx)(Ln.a,{title:"Refresh",children:Object(We.jsx)(mr,{color:"primary","aria-label":"Refresh List",onClick:function(){j(!0)},children:Object(We.jsx)(Ve,{})})})]})})}),Object(We.jsxs)(k.a,{item:!0,xs:12,sm:12,md:2,children:[Object(We.jsx)(Ft.a,{display:{xs:"none",sm:"none",md:"block"},children:Object(We.jsx)(fc.a,{component:"nav",dense:!0,children:_.map((function(e){return Object(We.jsx)(vc.a,{button:!0,selected:e.selected(),onClick:function(){e.onclick(e.value)},children:Object(We.jsx)(yc.a,{primary:e.label})})}))})}),Object(We.jsx)(Ft.a,{display:{xs:"block",sm:"block",md:"none"},children:Object(We.jsx)(Nc.a,{value:I,indicatorColor:"primary",textColor:"primary",variant:"scrollable",scrollButtons:"auto","aria-label":"scrollable auto tabs example",children:_.map((function(e){return Object(We.jsx)(Ec.a,{label:e.label,value:e.value,onClick:function(){e.onclick(e.value)}})}))})})]}),Object(We.jsx)(k.a,{item:!0,xs:12,sm:12,md:10,children:Object(We.jsx)(s.c,{history:c,children:Object(We.jsxs)(s.d,{children:[Object(We.jsx)(s.b,{path:"/namespaces/:tenantNamespace/tenants/:tenantName/summary",component:Hu}),Object(We.jsx)(s.b,{path:"/namespaces/:tenantNamespace/tenants/:tenantName/metrics",component:sb}),Object(We.jsx)(s.b,{path:"/namespaces/:tenantNamespace/tenants/:tenantName/security",component:Ob}),Object(We.jsx)(s.b,{path:"/namespaces/:tenantNamespace/tenants/:tenantName/pools",component:eb}),Object(We.jsx)(s.b,{path:"/namespaces/:tenantNamespace/tenants/:tenantName/pods/:podName",component:Sb}),Object(We.jsx)(s.b,{path:"/namespaces/:tenantNamespace/tenants/:tenantName/pods",component:nb}),Object(We.jsx)(s.b,{path:"/namespaces/:tenantNamespace/tenants/:tenantName/volumes",component:rb}),Object(We.jsx)(s.b,{path:"/namespaces/:tenantNamespace/tenants/:tenantName/license",component:Qu}),Object(We.jsx)(s.b,{path:"/namespaces/:tenantNamespace/tenants/:tenantName",component:function(){return Object(We.jsx)(s.a,{to:"/namespaces/".concat(S,"/tenants/").concat(y,"/summary")})}})]})})})]})]})}))),wb=a(221),Tb=a.n(wb),Nb=[{id:0,title:"Community",price:"FREE",capacityMax:"Open Source"},{id:1,title:"Standard",price:"$10 per TB",capacityMax:"(Minimum of 100TB)",capacityMin:""},{id:2,title:"Enterprise",price:"$20 per TB",capacityMax:"(Minimum of 100TB)",capacityMin:""}],Eb=[{id:0,field:"License",community:"GNU AGPL v3",communityLink:!0,communityDetail:"",standard:"Commercial License",standardDetail:"",enterprise:"Commercial License",enterpriseDetail:""},{id:1,field:"Software Release",community:"Upstream",standard:"1 Year Long Term Support",enterprise:"5 Years Long Term Support"},{id:2,field:"SLA",community:"No SLA",standard:"<48 Hours (Local Business Hours)",enterprise:"<1 hour"},{id:3,field:"Support",community:"Community:",communityDetail:"Public Slack Channel + Github Issues",standard:"L4 Direct Engineering",standardDetail:" support via SUBNET",enterprise:"L4 Direct Engineering",enterpriseDetail:"support via SUBNET"},{id:4,field:"Security Updates & Critical Bugs",community:"Self Update",standard:"Continuous Scan and Alert",enterprise:"Continuous Scan and Alert"},{id:5,field:"Panic Button",community:"N/A",standard:"1 per year",enterprise:"Unlimited"},{id:6,field:"Health Diagnostics",community:"N/A",standard:"24/7/365",enterprise:"24/7/365"},{id:6,field:"Annual Architecture Review",community:"N/A",standard:"Yes",enterprise:"Yes"},{id:7,field:"Annual Performance Review",community:"N/A",standard:"Yes",enterprise:"Yes"},{id:8,field:"Indemnification",community:"N/A",standard:"N/A",enterprise:"Yes"},{id:9,field:"Security + Policy Review",community:"N/A",standard:"N/A",enterprise:"Yes"}],Ab=[{id:0,text:"Join Slack",text2:"",link:"https://slack.min.io",plan:"community"},{id:1,text:"Subscribe",text2:"Upgrade",link:"https://subnet.min.io/subscription",plan:"standard"},{id:2,text:"Subscribe",text2:"Upgrade",link:"https://subnet.min.io/subscription",plan:"enterprise"}],_b=a(368),Ib=a.n(_b),Mb=a(369),zb=a.n(Mb),Db={setModalErrorSnackMessage:re},Lb=Object(o.b)(null,Db),Fb=Object(y.a)((function(e){return Object(f.a)(Object(p.a)({errorBlock:{color:"red"},subnetLicenseKey:{padding:"10px 10px 10px 0px",borderRight:"1px solid rgba(0, 0, 0, 0.12)",opacity:.5,"&:hover":{opacity:1}},subnetLoginForm:{padding:"10px 0px 10px 10px",opacity:.5,"&:hover":{opacity:1}},licenseKeyField:{},pageTitle:{marginBottom:20},button:{textTransform:"none",fontSize:15,fontWeight:700,background:"transparent linear-gradient(90deg, #073052 0%, #081c42 100%) 0% 0% no-repeat padding-box",color:"#fff"},buttonSignup:{textTransform:"none",fontSize:15,fontWeight:700,marginLeft:15}},(e.spacing(4),{container:{position:"relative",maxWidth:1180,padding:"20px 35px 0","& h6":{color:"#777777",fontSize:30},"& p":{"& span:not(*[class*='smallUnit'])":{fontSize:16}}},sectionTitle:{padding:"0px",margin:"0px"},topSpacer:{height:"8px"}})))}))(Lb((function(e){var t=e.classes,a=e.open,c=e.closeModal,i=e.setModalErrorSnackMessage,r=Object(n.useState)(""),o=Object(m.a)(r,2),s=o[0],l=o[1],d=Object(n.useState)(""),u=Object(m.a)(d,2),b=u[0],j=u[1],h=Object(n.useState)(""),p=Object(m.a)(h,2),g=p[0],x=p[1],f=Object(n.useState)(!1),v=Object(m.a)(f,2),y=v[0],T=v[1],N=function(){if(!y){T(!0);var e={license:s,email:g,password:b};Ge.invoke("POST","/api/v1/subscription/validate",e).then((function(){T(!1),l(""),j(""),x(""),c()})).catch((function(e){T(!1),l(""),j(""),x(""),i(e)}))}};return a?Object(We.jsxs)(zn,{title:"",modalOpen:a,onClose:function(){l(""),j(""),x(""),c()},"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[Object(We.jsxs)(k.a,{container:!0,alignItems:"center",item:!0,xs:12,children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(w.a,{component:"h2",variant:"h6",className:t.pageTitle,children:"Activate SUBNET License"})}),Object(We.jsxs)(k.a,{item:!0,className:t.subnetLicenseKey,xs:6,children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(w.a,{variant:"caption",display:"block",gutterBottom:!0,children:"Enter your license key here"})}),Object(We.jsx)(C.a,{id:"license-key",placeholder:"",multiline:!0,rows:3,value:s,onChange:function(e){return l(e.target.value)},fullWidth:!0,className:t.licenseKeyField,variant:"outlined"}),Object(We.jsx)("br",{}),Object(We.jsx)("br",{}),Object(We.jsx)(S.a,{variant:"contained",color:"primary",onClick:function(){return N()},disabled:y||0===s.trim().length,children:"Activate"})]}),Object(We.jsx)(k.a,{item:!0,className:t.subnetLoginForm,xs:6,children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{overlayIcon:Object(We.jsx)(Ib.a,{}),id:"subnet-email",name:"subnet-email",onChange:function(e){x(e.target.value)},placeholder:"email",label:"",type:"text",value:g})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{overlayIcon:Object(We.jsx)(zb.a,{}),id:"subnet-password",name:"subnet-password",onChange:function(e){j(e.target.value)},placeholder:"password",label:"",type:"password",value:b})}),Object(We.jsxs)(k.a,{item:!0,xs:12,children:[Object(We.jsx)(S.a,{className:t.button,color:"primary",onClick:function(){return N()},disabled:y||0===g.trim().length||0===b.trim().length,variant:"contained",children:"Activate"}),Object(We.jsx)(S.a,{className:t.buttonSignup,color:"primary",target:"_blank",rel:"noopener noreferrer",href:"#",onClick:function(e){e.preventDefault(),window.open("https://min.io/pricing","_blank")},variant:"outlined",children:"Sign Up"})]})]})})]}),y&&Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(O.a,{})})]}):null}))),Rb=Object(y.a)((function(e){return Object(f.a)(Object(p.a)({pageTitle:{fontSize:18,marginBottom:20,textAlign:"center"},pageSubTitle:{textAlign:"center"},paper:{padding:"20px 52px 20px 28px"}},(e.spacing(4),{container:{position:"relative",maxWidth:1180,padding:"20px 35px 0","& h6":{color:"#777777",fontSize:30},"& p":{"& span:not(*[class*='smallUnit'])":{fontSize:16}}},sectionTitle:{padding:"0px",margin:"0px"},topSpacer:{height:"8px"}})))}))((function(e){var t=e.classes,a=e.open,n=e.closeModal;return a?Object(We.jsxs)(zn,{title:"",modalOpen:a,onClose:function(){n()},"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[" ",Object(We.jsxs)(k.a,{container:!0,alignItems:"center",item:!0,xs:12,children:[Object(We.jsxs)(k.a,{item:!0,xs:12,children:[Object(We.jsx)(w.a,{component:"h2",variant:"h6",className:t.pageTitle,children:"GNU AFFERO GENERAL PUBLIC LICENSE"}),Object(We.jsx)("p",{className:t.pageSubTitle,children:"Version 3, 19 November 2007"})]}),Object(We.jsxs)(k.a,{item:!0,className:t.subnetLicenseKey,xs:12,children:[Object(We.jsxs)("p",{children:["Copyright \xa9 2007 Free Software Foundation, Inc. <",Object(We.jsx)("a",{target:"_blank",href:"https://fsf.org/",rel:"noreferrer",children:"https://fsf.org/"}),">"]}),Object(We.jsxs)("p",{children:[" ","Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed."]}),Object(We.jsx)("h1",{children:"Preamble"}),Object(We.jsx)("p",{children:"The GNU Affero General Public License is a free, copyleft license for software and other kinds of works, specifically designed to ensure cooperation with the community in the case of network server software."}),Object(We.jsx)("p",{children:"The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, our General Public Licenses are intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users."}),Object(We.jsx)("p",{children:"When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things."}),Object(We.jsx)("p",{children:"Developers that use our General Public Licenses protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License which gives you legal permission to copy, distribute and/or modify the software."}),Object(We.jsx)("p",{children:"A secondary benefit of defending all users' freedom is that improvements made in alternate versions of the program, if they receive widespread use, become available for other developers to incorporate. Many developers of free software are heartened and encouraged by the resulting cooperation. However, in the case of software used on network servers, this result may fail to come about. The GNU General Public License permits making a modified version and letting the public access it on a server without ever releasing its source code to the public."}),Object(We.jsx)("p",{children:"The GNU Affero General Public License is designed specifically to ensure that, in such cases, the modified source code becomes available to the community. It requires the operator of a network server to provide the source code of the modified version running there to the users of that server. Therefore, public use of a modified version, on a publicly accessible server, gives the public access to the source code of the modified version."}),Object(We.jsx)("p",{children:"An older license, called the Affero General Public License and published by Affero, was designed to accomplish similar goals. This is a different license, not a version of the Affero GPL, but Affero has released a new version of the Affero GPL which permits relicensing under this license."}),Object(We.jsx)("p",{children:"The precise terms and conditions for copying, distribution and modification follow."}),Object(We.jsx)("h2",{children:"TERMS AND CONDITIONS"}),Object(We.jsx)("h2",{children:"0. Definitions."}),Object(We.jsx)("p",{children:'"This License" refers to version 3 of the GNU Affero General Public License.'}),Object(We.jsx)("p",{children:'"Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.'}),Object(We.jsx)("p",{children:'"The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations.'}),Object(We.jsx)("p",{children:'To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work.'}),Object(We.jsx)("p",{children:'A "covered work" means either the unmodified Program or a work based on the Program.'}),Object(We.jsx)("p",{children:'To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.'}),Object(We.jsx)("p",{children:'To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.'}),Object(We.jsx)("p",{children:'An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.'}),Object(We.jsx)("h2",{children:"1. Source Code."}),Object(We.jsx)("p",{children:'The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work.'}),Object(We.jsx)("p",{children:'A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.'}),Object(We.jsx)("p",{children:'The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.'}),Object(We.jsx)("p",{children:'The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work\'s System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.'}),Object(We.jsx)("p",{children:"The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source."}),Object(We.jsx)("p",{children:"The Corresponding Source for a work in source code form is that same work."}),Object(We.jsx)("h2",{children:"2. Basic Permissions."}),Object(We.jsx)("p",{children:"All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law."}),Object(We.jsx)("p",{children:"You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you."}),Object(We.jsx)("p",{children:"Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary."}),Object(We.jsx)("h2",{children:"3. Protecting Users' Legal Rights From Anti-Circumvention Law."}),Object(We.jsx)("p",{children:"No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures."}),Object(We.jsx)("p",{children:"When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures."}),Object(We.jsx)("h2",{children:"4. Conveying Verbatim Copies."}),Object(We.jsx)("p",{children:"You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program."}),Object(We.jsx)("p",{children:"You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee."}),Object(We.jsx)("h2",{children:"5. Conveying Modified Source Versions."}),Object(We.jsx)("p",{children:"You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:"}),Object(We.jsx)("p",{children:Object(We.jsxs)("ul",{children:[Object(We.jsx)("li",{children:"a) The work must carry prominent notices stating that you modified it, and giving a relevant date."}),Object(We.jsx)("li",{children:'b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices".'}),Object(We.jsx)("li",{children:"c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it."}),Object(We.jsx)("li",{children:"d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so."})]})}),Object(We.jsx)("p",{children:'A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation\'s users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.'}),Object(We.jsx)("h2",{children:"6. Conveying Non-Source Forms."}),Object(We.jsx)("p",{children:"You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:"}),Object(We.jsx)("p",{children:Object(We.jsxs)("ul",{children:[Object(We.jsx)("li",{children:"a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange."}),Object(We.jsx)("li",{children:"b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge."}),Object(We.jsx)("li",{children:"c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b."}),Object(We.jsx)("li",{children:"d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements."}),Object(We.jsx)("li",{children:"e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d."})]})}),Object(We.jsx)("p",{children:"A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work."}),Object(We.jsx)("p",{children:'A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.'}),Object(We.jsx)("p",{children:'"Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.'}),Object(We.jsx)("p",{children:"If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM)."}),Object(We.jsx)("p",{children:"The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network."}),Object(We.jsx)("p",{children:"Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying."}),Object(We.jsx)("h2",{children:"7. Additional Terms."}),Object(We.jsx)("p",{children:'"Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.'}),Object(We.jsx)("p",{children:"When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission."}),Object(We.jsx)("p",{children:"Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:"}),Object(We.jsx)("p",{children:Object(We.jsxs)("ul",{children:[Object(We.jsx)("li",{children:"a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or"}),Object(We.jsx)("li",{children:"b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or"}),Object(We.jsx)("li",{children:"c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or"}),Object(We.jsx)("li",{children:"d) Limiting the use for publicity purposes of names of licensors or authors of the material; or"}),Object(We.jsx)("li",{children:"e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or"}),Object(We.jsx)("li",{children:"f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors."})]})}),Object(We.jsx)("p",{children:'All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.'}),Object(We.jsx)("p",{children:"If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms."}),Object(We.jsx)("p",{children:"Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way."}),Object(We.jsx)("h2",{children:"8. Termination."}),Object(We.jsx)("p",{children:"You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11)."}),Object(We.jsx)("p",{children:"However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation."}),Object(We.jsx)("p",{children:"Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice."}),Object(We.jsx)("p",{children:"Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10."}),Object(We.jsx)("h2",{children:"9. Acceptance Not Required for Having Copies."}),Object(We.jsx)("p",{children:"You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so."}),Object(We.jsx)("h2",{children:"10. Automatic Licensing of Downstream Recipients."}),Object(We.jsx)("p",{children:"Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License."}),Object(We.jsx)("p",{children:'An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party\'s predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.'}),Object(We.jsx)("p",{children:"You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it."}),Object(We.jsx)("h2",{children:"11. Patents."}),Object(We.jsx)("p",{children:'A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor\'s "contributor version".'}),Object(We.jsx)("p",{children:'A contributor\'s "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.'}),Object(We.jsx)("p",{children:"Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version."}),Object(We.jsx)("p",{children:'In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.'}),Object(We.jsx)("p",{children:'If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient\'s use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.'}),Object(We.jsx)("p",{children:"If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it."}),Object(We.jsx)("p",{children:'A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.'}),Object(We.jsx)("p",{children:"Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law."}),Object(We.jsx)("h2",{children:"12. No Surrender of Others' Freedom."}),Object(We.jsx)("p",{children:"If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program."}),Object(We.jsx)("h2",{children:"13. Remote Network Interaction; Use with the GNU General Public License."}),Object(We.jsx)("p",{children:"Notwithstanding any other provision of this License, if you modify the Program, your modified version must prominently offer all users interacting with it remotely through a computer network (if your version supports such interaction) an opportunity to receive the Corresponding Source of your version by providing access to the Corresponding Source from a network server at no charge, through some standard or customary means of facilitating copying of software. This Corresponding Source shall include the Corresponding Source for any work covered by version 3 of the GNU General Public License that is incorporated pursuant to the following paragraph."}),Object(We.jsx)("p",{children:"Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the work with which it is combined will remain governed by version 3 of the GNU General Public License."}),Object(We.jsx)("h2",{children:"14. Revised Versions of this License."}),Object(We.jsx)("p",{children:"The Free Software Foundation may publish revised and/or new versions of the GNU Affero General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns."}),Object(We.jsx)("p",{children:'Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU Affero General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU Affero General Public License, you may choose any version ever published by the Free Software Foundation.'}),Object(We.jsx)("p",{children:'Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU Affero General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU Affero General Public License, you may choose any version ever published by the Free Software Foundation.'}),Object(We.jsx)("p",{children:"Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version."}),Object(We.jsx)("h2",{children:"15. Disclaimer of Warranty."}),Object(We.jsx)("p",{children:'THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.'}),Object(We.jsx)("h2",{children:"16. Limitation of Liability."}),Object(We.jsx)("p",{children:"IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES."}),Object(We.jsx)("h2",{children:"17. Interpretation of Sections 15 and 16."}),Object(We.jsx)("p",{children:"If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee."}),Object(We.jsx)("p",{children:"END OF TERMS AND CONDITIONS"}),Object(We.jsx)("h2",{children:"How to Apply These Terms to Your New Programs"}),Object(We.jsx)("p",{children:"If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms."}),Object(We.jsx)("p",{children:'To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found.'}),Object(We.jsx)("p",{children:Object(We.jsx)("code",{children:"<one line to give the program's name and a brief idea of what it does.> Copyright (C) <year> <name of author> This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see <https://www.gnu.org/licenses/>."})}),Object(We.jsx)("p",{children:"Also add information on how to contact you by electronic and paper mail."}),Object(We.jsx)("p",{children:'If your software can interact with users remotely through a computer network, you should also make sure that it provides a way for users to get its source. For example, if your program is a web application, its interface could display a "Source" link that leads users to an archive of the code. There are many ways you could offer source, and different solutions will be better for different programs; see section 13 for the specific requirements.'}),Object(We.jsxs)("p",{children:['You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU AGPL, see <',Object(We.jsx)("a",{target:"_blank",href:"https://www.gnu.org/licenses/",rel:"noreferrer",children:"https://www.gnu.org/licenses/"}),">."]})]})]})]}):null})),Pb=Object(o.b)((function(e){return{operatorMode:e.system.operatorMode}}),null)(Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)({pageTitle:{backgroundColor:"rgb(250,250,252)",marginTop:40,border:"1px solid #EAEDEE",padding:25,fontSize:16,fontWeight:"bold","& ul":{listStyleType:"square","& li":{float:"left",fontSize:14,marginRight:40},"& li::before":{color:"red",content:"\u2022"}}},licDet:{fontSize:11,color:"#5E5E5E"},linkMore:{marginTop:10,marginBottom:20},chooseFlavorText:{color:"#000000",fontSize:14},paper:{padding:"20px 52px 20px 28px",backgroundColor:"#FFFFFF"},licenseContainer:{display:"flex",flexWrap:"wrap",flexDirection:"row",padding:"30px 30px 0px 30px",border:"1px solid #EAEDEE","& h2":{flexDirection:"row"},"& a":{textDecoration:"none",flexDirection:"row"},"& h3":{marginBottom:"30px",fontWeight:"bold"},"& h6":{}},link:{textDecoration:"underline !important",color:e.palette.info.main},tableContainer:{marginLeft:28},detailsContainer:{textAlign:"center",paddingBottom:12,borderRadius:"3px 3px 0 0",maxWidth:"calc(25% - 8px)"},detailsContainerBorder:{borderLeft:"1px solid #e2e2e2"},detailsContainerBorderHighlighted:{border:"1px solid #B5B5B5",borderBottom:0},detailsTitle:{fontSize:19,fontWeight:700,marginBottom:26,paddingTop:18},currPlan:{color:"white",backgroundColor:"#4CCB92",padding:4},activePlanHeader:{fontWeight:700,background:"#D5DDE5",borderRadius:"3px 3px 0px 0px",color:"#121212",padding:8,borderTop:"1px solid #D5DDE5",marginTop:-2},planHeader:{background:"#FFFFFF",borderRadius:"3px 3px 0px 0px",padding:8,borderTop:"1px solid #D5DDE5"},detailsPrice:{fontSize:13,fontWeight:700,marginBottom:8},detailsCapacityMax:{minHeight:28,fontSize:10,fontWeight:700,marginBottom:12,padding:"0% 15%"},detailsCapacityMin:{fontSize:10},itemContainer:{height:36,"& .item:last-child":{borderRight:"1px solid #e5e5e5"}},itemContainerDetail:{height:48},item:{height:"100%",borderLeft:"1px solid #e5e5e5",textAlign:"center",fontSize:10,fontWeight:700,display:"flex",alignItems:"center",alignContent:"center",maxWidth:"calc(25% - 8px)",borderTop:"1px solid #e5e5e5"},itemFirst:{borderLeft:0,borderRight:0},itemHighlighted:{borderLeft:"1px solid #e5e5e5"},field:{textAlign:"left",fontWeight:400,fontSize:12},checkIcon:{fontSize:15,color:"#385973"},buttonContainer:{paddingTop:8,paddingBottom:24,height:"100%",display:"flex",justifyContent:"center",borderLeft:"1px solid #e2e2e2",maxWidth:"calc(25% - 8px)"},buttonContainerBlank:{border:0},buttonContainerHighlighted:{borderTop:0},button:{textTransform:"none",fontSize:15,fontWeight:700},licenseButton:{float:"right",marginTop:25,marginRight:25},openSourcePolicy:{color:"#1C5A8D",fontWeight:"bold"},activateLink:{color:"#1C5A8D",fontWeight:"bold",clear:"both",background:"none",border:"none",textDecoration:"underline",cursor:"pointer"},subnetRefreshLicenseLink:{color:"#1C5A8D",fontWeight:"bold",clear:"both",background:"none",border:"none",textDecoration:"underline",cursor:"pointer",fontSize:13},fullWidth:{width:"100%",height:"100%"},licenseInfo:{position:"relative"},licenseInfoTitle:{textTransform:"none",color:"#999999",fontSize:11},licenseInfoValue:{textTransform:"none",fontSize:14,fontWeight:"bold"},licenseDescription:{background:"#032F51",padding:"30px 30px",borderTop:"1px solid #e2e5e4",borderLeft:"1px solid #e2e5e4",borderRight:"1px solid #e2e5e4",alignSelf:"flex-end"},currentPlanBG:{background:"#022A4A 0% 0% no-repeat padding-box",color:"#FFFFFF",borderTop:"1px solid #52687d"},currentPlanButton:{background:"#FFFFFF",color:"#022A4A","&:hover":{background:"#FFFFFF"}},planItemsPadding:{border:"1px solid #EAEDEE",borderTop:0,maxWidth:1180},planItemsBorder:{height:7,backgroundColor:"#07193E"},subnetSubTitle:{fontSize:14},verifiedIcon:{width:96,position:"absolute",right:0,bottom:29},loadingLoginStrategy:{textAlign:"center"},clickableBlock:{cursor:"pointer"}},(e.spacing(4),{container:{position:"relative",maxWidth:1180,padding:"20px 35px 0","& h6":{color:"#777777",fontSize:30},"& p":{"& span:not(*[class*='smallUnit'])":{fontSize:16}}},sectionTitle:{padding:"0px",margin:"0px"},topSpacer:{height:"8px"}})),{},{mainContainer:{border:"1px solid #EAEDEE",padding:40,margin:40},icon:{color:e.palette.primary.main,fontSize:16,fontWeight:"bold",marginBottom:20,"& .MuiSvgIcon-root":{fontSize:44,marginRight:15}}}))}))((function(e){var t=e.classes,a=e.operatorMode,c=function(){A(!0),Ge.invoke("GET","/api/v1/subscription/info").then((function(e){e&&("STANDARD"===e.plan?C(1):"ENTERPRISE"===e.plan?C(2):C(1),x(e)),A(!1)})).catch((function(){A(!1)}))},i=Object(n.useState)(!1),r=Object(m.a)(i,2),o=r[0],s=r[1],l=Object(n.useState)(!1),d=Object(m.a)(l,2),u=d[0],b=d[1],j=Object(n.useState)(),h=Object(m.a)(j,2),p=h[0],x=h[1],f=Object(n.useState)(0),v=Object(m.a)(f,2),y=v[0],C=v[1],T=Object(n.useState)(!0),N=Object(m.a)(T,2),E=N[0],A=N[1],_=Object(n.useState)(!1),I=Object(m.a)(_,2),M=I[0],z=I[1];return Object(n.useEffect)((function(){c()}),[]),E?Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(O.a,{})}):Object(We.jsx)(n.Fragment,{children:Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(sc,{label:"License"}),Object(We.jsx)("div",{className:Object(Hn.a)(t.container,t.mainContainer),children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsxs)(k.a,{xs:12,className:t.icon,children:[Object(We.jsx)(ha,{}),"GNU Affero General Public License"]}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsx)(k.a,{item:!0,xs:12,lg:12,className:"".concat(t.licenseContainer),children:p?Object(We.jsx)(n.Fragment,{children:Object(We.jsxs)(k.a,{container:!0,className:t.licenseInfo,children:[Object(We.jsxs)(k.a,{item:!0,xs:6,children:[Object(We.jsx)(w.a,{variant:"button",display:"block",gutterBottom:!0,className:t.licenseInfoTitle,children:"License"}),Object(We.jsx)(w.a,{variant:"overline",display:"block",gutterBottom:!0,className:t.licenseInfoValue,children:"Commercial License"}),Object(We.jsx)(w.a,{variant:"button",display:"block",gutterBottom:!0,className:t.licenseInfoTitle,children:"Organization"}),Object(We.jsx)(w.a,{variant:"overline",display:"block",gutterBottom:!0,className:t.licenseInfoValue,children:p.organization}),Object(We.jsx)(w.a,{variant:"button",display:"block",gutterBottom:!0,className:t.licenseInfoTitle,children:"Registered Capacity"}),Object(We.jsx)(w.a,{variant:"overline",display:"block",gutterBottom:!0,className:t.licenseInfoValue,children:fe((1099511627776*p.storage_capacity).toString(10))}),Object(We.jsx)(w.a,{variant:"button",display:"block",gutterBottom:!0,className:t.licenseInfoTitle,children:"Expiry Date"}),Object(We.jsx)(w.a,{variant:"overline",display:"block",gutterBottom:!0,className:t.licenseInfoValue,children:Object(We.jsx)(Wi.a,{format:"YYYY-MM-DD",children:p.expires_at})})]}),Object(We.jsxs)(k.a,{item:!0,xs:6,children:[Object(We.jsx)(w.a,{variant:"button",display:"block",gutterBottom:!0,className:t.licenseInfoTitle,children:"Subscription Plan"}),Object(We.jsx)(w.a,{variant:"overline",display:"block",gutterBottom:!0,className:t.licenseInfoValue,children:p.plan}),Object(We.jsx)(w.a,{variant:"button",display:"block",gutterBottom:!0,className:t.licenseInfoTitle,children:"Requester"}),Object(We.jsx)(w.a,{variant:"overline",display:"block",gutterBottom:!0,className:t.licenseInfoValue,children:p.email})]}),Object(We.jsx)("img",{className:t.verifiedIcon,src:"/verified.svg",alt:"verified"})]})}):Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(Rb,{open:u,closeModal:function(){return b(!1)}}),Object(We.jsxs)(k.a,{container:!0,justifyContent:"space-between",children:[Object(We.jsxs)(k.a,{item:!0,children:[Object(We.jsx)("img",{src:"/agpl-logo.svg",height:40,alt:"agpl"})," "]}),Object(We.jsxs)(k.a,{item:!0,className:t.licDet,children:[Object(We.jsx)("b",{children:"Version 3."})," 19 November 2007"," "]})]}),Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsx)(w.a,{children:"The GNU Affero General Public License is a free, copyleft license for software and other kinds of works, specifically designed to ensure cooperation with the Community in the case of network server software."}),Object(We.jsx)("br",{}),Object(We.jsx)(w.a,{children:"The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, our General Public Licenses are intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users."}),Object(We.jsx)("div",{className:t.linkMore,children:Object(We.jsx)("a",{className:Object(Hn.a)(t.link),onClick:function(){return b(!0)},children:"Read more"})})]})]})}),Object(We.jsx)(k.a,{item:!0,xs:12,lg:12,children:p?Object(We.jsxs)("div",{className:t.pageTitle,children:[Object(We.jsx)(w.a,{component:"h2",variant:"h6",children:"Login to MinIO SUBNET !"}),Object(We.jsx)(w.a,{component:"p",className:t.subnetSubTitle,children:"It combines a commercial license with a support experience unlike any other."}),Object(We.jsx)("br",{}),Object(We.jsx)(S.a,{variant:"contained",color:"primary",className:t.button,target:"_blank",rel:"noopener noreferrer",href:"https://subnet.min.io/support/?ref=".concat(a?"op":"con"),children:"Login to SUBNET"}),a&&Object(We.jsxs)(n.Fragment,{children:[" ",Object(We.jsx)("br",{}),Object(We.jsx)("br",{}),Object(We.jsx)("button",{className:t.subnetRefreshLicenseLink,onClick:function(e){e.preventDefault(),z(!0),Ge.invoke("POST","/api/v1/subscription/refresh",{}).then((function(e){e&&("STANDARD"===e.plan?C(1):"ENTERPRISE"===e.plan?C(2):C(1),x(e)),z(!1)})).catch((function(e){z(!1)}))},children:"Refresh Licence"}),M&&Object(We.jsx)(g.a,{size:16,className:t.loadingLoginStrategy})]})]}):Object(We.jsxs)("div",{className:t.pageTitle,children:[Object(We.jsx)(w.a,{component:"h2",variant:"h6",children:"Choosing between GNU AGPL v3 and Commercial License"}),Object(We.jsx)("br",{}),Object(We.jsx)(w.a,{className:t.chooseFlavorText,children:"If you are building proprietary applications, you may want to choose the commercial license included as part of the Standard and Enterprise subscription plans. Applications must otherwise comply with all the GNU AGPLv3 License & Trademark obligations. Follow the links below to learn more about the compliance policy."}),Object(We.jsxs)("ul",{children:[Object(We.jsx)("li",{children:Object(We.jsx)("a",{href:"https://min.io/compliance?ref=".concat(a?"op":"con"),className:t.openSourcePolicy,target:"_blank",rel:"nofollow noopener noreferrer",children:"Learn more about GNU AGPL v3"})}),Object(We.jsx)("li",{children:Object(We.jsx)("a",{href:"https://min.io/logo?ref=".concat(a?"op":"con"),className:t.openSourcePolicy,target:"_blank",rel:"nofollow noopener noreferrer",children:"MinIO Trademark Compliance"})})]}),Object(We.jsx)("div",{style:{clear:"both"}})]})})]})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("br",{})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("b",{children:"Pricing"})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:"The MinIO Subscription Network provides exclusive benefits across licensing, operations and support. See the pricing table below for more information."}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("br",{})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("div",{className:t.planItemsBorder})}),Object(We.jsx)(k.a,{item:!0,xs:12,className:Object(Hn.a)(t.planItemsPadding),children:Object(We.jsxs)(k.a,{container:!0,children:[a?Object(We.jsx)(Fb,{open:o,closeModal:function(){return s(!1),void c()}}):null,Object(We.jsxs)(k.a,{container:!0,item:!0,xs:12,className:t.tableContainer,children:[Object(We.jsxs)(k.a,{container:!0,item:!0,xs:12,children:[Object(We.jsx)(k.a,{item:!0,xs:3,className:t.detailsContainer}),Nb.map((function(e){var a=!p&&"Community"===e.title||p&&p.plan.toLowerCase()===e.title.toLowerCase();return Object(We.jsxs)(k.a,{container:!0,item:!0,xs:3,className:Object(Hn.a)(t.detailsContainer,t.detailsContainerBorder),children:[Object(We.jsx)(k.a,{item:!0,xs:12,className:t.planHeader}),Object(We.jsx)(k.a,{item:!0,xs:12,className:t.detailsTitle,children:e.title}),Object(We.jsx)(k.a,{item:!0,xs:12,className:t.detailsPrice,children:a?Object(We.jsx)("span",{className:t.currPlan,children:"CURRENT PLAN"}):e.price}),Object(We.jsx)(k.a,{item:!0,xs:12,className:t.detailsCapacityMax,children:e.capacityMax||""})]},e.id)}))]}),Eb.map((function(e){return Object(We.jsxs)(k.a,{container:!0,item:!0,xs:12,className:Object(Hn.a)(t.itemContainer,e.communityDetail&&t.itemContainerDetail),children:[Object(We.jsx)(k.a,{item:!0,xs:3,className:Object(Hn.a)(t.item,t.field,t.itemFirst),children:e.field}),Object(We.jsxs)(k.a,{container:!0,item:!0,xs:3,className:Object(Hn.a)(t.item),children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:"N/A"===e.community?"":"Yes"===e.community?Object(We.jsx)(Tb.a,{className:t.checkIcon}):Object(We.jsx)(n.Fragment,{children:void 0!==e.communityLink&&e.communityLink?Object(We.jsx)("a",{className:t.link,onClick:function(){return b(!0)},children:e.community}):e.community})}),void 0!==e.communityDetail&&Object(We.jsx)(k.a,{item:!0,xs:12,children:e.communityDetail})]}),Object(We.jsxs)(k.a,{container:!0,item:!0,xs:3,className:Object(Hn.a)(t.item,t.itemHighlighted,1===y?t.currentPlanBG:""),children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:"N/A"===e.standard?"":"Yes"===e.standard?Object(We.jsx)(Tb.a,{className:t.checkIcon}):e.standard}),void 0!==e.standardDetail&&Object(We.jsx)(k.a,{item:!0,xs:12,children:e.standardDetail})]}),Object(We.jsxs)(k.a,{container:!0,item:!0,xs:3,className:Object(Hn.a)(t.item,t.itemHighlighted,2===y?t.currentPlanBG:""),children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:"N/A"===e.enterprise?"":"Yes"===e.enterprise?Object(We.jsx)(Tb.a,{className:t.checkIcon}):e.enterprise}),void 0!==e.enterpriseDetail&&Object(We.jsx)(k.a,{item:!0,xs:12,children:e.enterpriseDetail})]})]},e.id)})),Object(We.jsxs)(k.a,{container:!0,item:!0,xs:12,children:[Object(We.jsx)(k.a,{item:!0,xs:3,className:Object(Hn.a)(t.buttonContainer,t.buttonContainerBlank)}),Ab.map((function(e,n){return Object(We.jsxs)(k.a,{container:!0,item:!0,xs:3,style:{textAlign:"center"},className:Object(Hn.a)(t.buttonContainer,Object(it.a)({},t.buttonContainerHighlighted,"Subscribe"===e.text)),children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(S.a,{variant:"Join Slack"===e.text?"outlined":"contained",color:"primary",className:Object(Hn.a)(t.button),target:"_blank",rel:"noopener noreferrer",href:"#",disabled:p&&p.plan.toLowerCase()===e.plan.toLowerCase(),onClick:function(t){t.preventDefault(),window.open("".concat(e.link,"/?ref=").concat(a?"op":"con"),"_blank")},children:y!==n&&n>0?e.text2:e.text})}),a&&"Subscribe"===e.text&&!(p&&p.plan.toLowerCase()===e.plan.toLowerCase())&&Object(We.jsx)(k.a,{item:!0,xs:12,style:{marginTop:"10px"},children:Object(We.jsx)("button",{className:t.activateLink,onClick:function(e){e.preventDefault(),s(!0)},children:"Activate"})})]},e.id)}))]})]})]})})]})})]})})}))),Bb=a(100),Ub="TRACE/MESSAGE_RECEIVED",Gb="TRACE/RESET_MESSAGES",Kb="TRACE/SET_STARTED";var Wb=function(e){var t="ws";return"https:"===e&&(t="wss"),t},Vb=null,Hb=Object(o.b)((function(e){return{messages:e.trace.messages,traceStarted:e.trace.traceStarted}}),{traceMessageReceived:function(e){return{type:Ub,message:e}},traceResetMessages:function(){return{type:Gb}},setTraceStarted:function(e){return{type:Kb,status:e}}})(Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)(Object(p.a)(Object(p.a)(Object(p.a)({paperContainer:{padding:15,paddingLeft:50,display:"flex"},logList:{background:"white",height:"400px",overflow:"auto","& ul":{margin:"4px",padding:"0px"},"& ul li":{listStyle:"none",margin:"0px",padding:"0px",borderBottom:"1px solid #dedede"}},sizeItem:{width:150},timeItem:{width:100},labelCheckboxes:{fontSize:16,fontWeight:700,paddingTop:19},startButton:{textAlign:"right"}},pt),Ot),At),Mt),{},{searchField:Object(p.a)(Object(p.a)({},Ot.searchField),{},{margin:"0 5px","&:first-of-type":{marginLeft:0},"&:last-of-type":{marginRight:0}}),tableWrapper:{height:"calc(100vh - 292px)"}},(e.spacing(4),{container:{position:"relative",maxWidth:1180,padding:"20px 35px 0","& h6":{color:"#777777",fontSize:30},"& p":{"& span:not(*[class*='smallUnit'])":{fontSize:16}}},sectionTitle:{padding:"0px",margin:"0px"},topSpacer:{height:"8px"}})))}))((function(e){var t=e.classes,a=e.traceMessageReceived,c=e.traceResetMessages,i=e.setTraceStarted,r=e.traceStarted,o=e.messages,s=Object(n.useState)(""),l=Object(m.a)(s,2),d=l[0],u=l[1],b=Object(n.useState)(""),j=Object(m.a)(b,2),h=j[0],p=j[1],O=Object(n.useState)(""),g=Object(m.a)(O,2),x=g[0],f=g[1],v=Object(n.useState)(""),y=Object(m.a)(v,2),w=y[0],T=y[1],N=Object(n.useState)(0),E=Object(m.a)(N,2),A=E[0],_=E[1],I=Object(n.useState)(!1),M=Object(m.a)(I,2),z=M[0],D=M[1],L=Object(n.useState)(!0),F=Object(m.a)(L,2),R=F[0],P=F[1],B=Object(n.useState)(!1),U=Object(m.a)(B,2),G=U[0],K=U[1],W=Object(n.useState)(!1),V=Object(m.a)(W,2),H=V[0],q=V[1],Y=Object(n.useState)(!1),Q=Object(m.a)(Y,2),Z=Q[0],J=Q[1],$=Object(n.useState)(!1),X=Object(m.a)($,2),ee=X[0],te=X[1];return Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(sc,{label:"Trace"}),Object(We.jsxs)(k.a,{container:!0,className:t.container,children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ru,{to:"/tools",label:"Return to Tools"})}),Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.actionsTray,children:[Object(We.jsx)(C.a,{placeholder:"Status Code",className:t.searchField,id:"status-code",label:"",InputProps:{disableUnderline:!0},value:d,onChange:function(e){u(e.target.value)},disabled:r,variant:"standard"}),Object(We.jsx)(C.a,{placeholder:"Method",className:t.searchField,id:"method",label:"",InputProps:{disableUnderline:!0},value:h,onChange:function(e){p(e.target.value)},disabled:r,variant:"standard"}),Object(We.jsx)(C.a,{placeholder:"Function Name",className:t.searchField,id:"func-name",label:"",disabled:r,InputProps:{disableUnderline:!0},value:x,onChange:function(e){f(e.target.value)},variant:"standard"}),Object(We.jsx)(C.a,{placeholder:"Path",className:t.searchField,id:"path",label:"",disabled:r,InputProps:{disableUnderline:!0},value:w,onChange:function(e){T(e.target.value)},variant:"standard"}),Object(We.jsx)(C.a,{type:"number",className:t.searchField,id:"fthreshold",label:"Response Threshold",disabled:r,InputProps:{disableUnderline:!0},inputProps:{min:0},value:A,onChange:function(e){_(parseInt(e.target.value))},variant:"standard"})]}),Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.inlineCheckboxes,children:[Object(We.jsx)("span",{className:t.labelCheckboxes,children:"Calls to trace:"}),Object(We.jsx)(hc,{checked:z,id:"all_calls",name:"all_calls",label:"All",onChange:function(e){D(e.target.checked)},value:"all",disabled:r}),Object(We.jsx)(hc,{checked:R||z,id:"s3_calls",name:"s3_calls",label:"S3",onChange:function(e){P(e.target.checked)},value:"s3",disabled:z||r}),Object(We.jsx)(hc,{checked:G||z,id:"internal_calls",name:"internal_calls",label:"Internal",onChange:function(e){K(e.target.checked)},value:"internal",disabled:z||r}),Object(We.jsx)(hc,{checked:H||z,id:"storage_calls",name:"storage_calls",label:"Storage",onChange:function(e){q(e.target.checked)},value:"storage",disabled:z||r}),Object(We.jsx)(hc,{checked:Z||z,id:"os_calls",name:"os_calls",label:"OS",onChange:function(e){J(e.target.checked)},value:"os",disabled:z||r}),Object(We.jsx)("span",{className:t.labelCheckboxes,children:"\xa0 \xa0 \xa0 | \xa0 \xa0 \xa0"}),Object(We.jsx)(hc,{checked:ee,id:"only_errors",name:"only_errors",label:"Display only Errors",onChange:function(e){te(e.target.checked)},value:"only_errors",disabled:r})]}),Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.startButton,children:[!r&&Object(We.jsx)(S.a,{type:"submit",variant:"contained",color:"primary",disabled:r,onClick:function(){c();var e=new URL(window.location.toString()),t=e.port,n="".concat(R?"s3,":"").concat(G?"internal,":"").concat(H?"storage,":"").concat(Z?"os,":"");z&&(n="all");var r=Wb(e.protocol);Vb=new Bb.w3cwebsocket("".concat(r,"://").concat(e.hostname,":").concat(t,"/ws/trace?calls=").concat(n,"&threshold=").concat(A,"&onlyErrors=").concat(ee?"yes":"no","&statusCode=").concat(d,"&method=").concat(h,"&funcname=").concat(x,"&path=").concat(w));var o=null;if(null!==Vb)return Vb.onopen=function(){console.log("WebSocket Client Connected"),i(!0),Vb.send("ok"),o=setInterval((function(){Vb.send("ok")}),1e4)},Vb.onmessage=function(e){var t=JSON.parse(e.data.toString());t.ptime=Er()(t.time,"YYYY-MM-DD HH:mm:s.SSSS +0000 UTC").toDate(),t.key=Math.random(),a(t)},Vb.onclose=function(){clearInterval(o),console.log("connection closed by server"),i(!1)},function(){Vb.close(1e3),clearInterval(o),console.log("closing websockets"),i(!1)}},children:"Start"}),r&&Object(We.jsx)(S.a,{type:"button",variant:"contained",color:"primary",onClick:function(){Vb.close(1e3),i(!1)},children:"Stop"})]}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("br",{})}),Object(We.jsx)(ei,{itemActions:[],columns:[{label:"Time",elementKey:"ptime",renderFunction:function(e){var t=new Date(e);return Se(t)},globalClass:t.timeItem},{label:"Name",elementKey:"api"},{label:"Status",elementKey:"",renderFunction:function(e){return"".concat(e.statusCode," ").concat(e.statusMsg)},renderFullObject:!0},{label:"Location",elementKey:"configuration_id",renderFunction:function(e){return"".concat(e.host," ").concat(e.client)},renderFullObject:!0},{label:"Load Time",elementKey:"callStats.duration",globalClass:t.timeItem},{label:"Upload",elementKey:"callStats.rx",renderFunction:fe,globalClass:t.sizeItem},{label:"Download",elementKey:"callStats.tx",renderFunction:fe,globalClass:t.sizeItem}],isLoading:!1,records:o,entityName:"Traces",idField:"api",customEmptyMessage:r?"No Traced elements received yet":"Trace is not started yet",customPaperHeight:t.tableWrapper,autoScrollToBottom:!0})]})]})}))),qb=a(370),Yb=Object(y.a)((function(e){return Object(f.a)({root:{width:450,lineHeight:"50px",marginRight:15,"label + &":{marginTop:e.spacing(3)},"& .MuiSelect-select:focus":{backgroundColor:"transparent"}},input:{height:50,fontSize:13,lineHeight:"50px",width:450}})}))(Bn.c),Qb=Object(o.b)((function(e){return{distributedSetup:e.system.distributedSetup}}),null)(Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)(Object(p.a)(Object(p.a)({watchList:{background:"white",maxHeight:"400",overflow:"auto","& ul":{margin:"4",padding:"0"},"& ul li":{listStyle:"none",margin:"0",padding:"0",borderBottom:"1px solid #dedede"}},graphContainer:{backgroundColor:"#fff",border:"#EAEDEE 1px solid",borderRadius:3,padding:"19px 38px"},scanInfo:{marginTop:20,display:"flex",flexDirection:"row",justifyContent:"space-between"},scanData:{fontSize:13}},Mt),pt),Ot),(e.spacing(4),{container:{position:"relative",maxWidth:1180,padding:"20px 35px 0","& h6":{color:"#777777",fontSize:30},"& p":{"& span:not(*[class*='smallUnit'])":{fontSize:16}}},sectionTitle:{padding:"0px",margin:"0px"},topSpacer:{height:"8px"}})))}))((function(e){var t=e.classes,a=e.distributedSetup,i=Object(n.useState)(!1),r=Object(m.a)(i,2),o=r[0],s=r[1],l=Object(n.useState)(""),d=Object(m.a)(l,2),u=d[0],b=d[1],j=Object(n.useState)([]),h=Object(m.a)(j,2),p=h[0],O=h[1],g=Object(n.useState)(""),x=Object(m.a)(g,2),f=x[0],v=x[1],y=Object(n.useState)(!1),w=Object(m.a)(y,2),T=w[0],N=w[1],E=Object(n.useState)(!1),A=Object(m.a)(E,2),_=A[0],I=A[1],M=Object(n.useState)(!1),z=Object(m.a)(M,2),D=z[0],L=z[1],F=Object(n.useState)({beforeHeal:[0,0,0,0],afterHeal:[0,0,0,0],objectsHealed:0,objectsScanned:0,healDuration:0,sizeScanned:""}),R=Object(m.a)(F,2),P=R[0],B=R[1];Object(n.useEffect)((function(){Ge.invoke("GET","/api/v1/buckets").then((function(e){var t=[];null!==e.buckets&&(t=e.buckets),O(t)})).catch((function(e){console.log(e)}))}),[]),Object(n.useEffect)((function(){!0===_&&L(!1)}),[_]),Object(n.useEffect)((function(){!0===D&&I(!1)}),[D]);var U=function(e){return[e.Green,e.Yellow,e.Red,e.Grey]};Object(n.useEffect)((function(){if(o){var e={Green:0,Yellow:0,Red:0,Grey:0},t={Green:0,Yellow:0,Red:0,Grey:0},a=new URL(window.location.toString()),n=a.port,c=Wb(a.protocol),i=new Bb.w3cwebsocket("".concat(c,"://").concat(a.hostname,":").concat(n,"/ws/heal/").concat(u,"?prefix=").concat(f,"&recursive=").concat(T,"&force-start=").concat(_,"&force-stop=").concat(D));if(null!==i)return i.onopen=function(){console.log("WebSocket Client Connected"),i.send("ok")},i.onmessage=function(a){for(var n=JSON.parse(a.data.toString()),c=0,i=Object.entries(n.healthAfterCols);c<i.length;c++){var r=Object(m.a)(i[c],2),o=r[0],s=r[1];t[o]=100*s/n.itemsScanned}for(var l=0,d=Object.entries(n.healthBeforeCols);l<d.length;l++){var u=Object(m.a)(d[l],2),b=u[0],j=u[1];e[b]=100*j/n.itemsScanned}B({beforeHeal:U(e),afterHeal:U(t),objectsHealed:n.objectsHealed,objectsScanned:n.objectsScanned,healDuration:n.healDuration,sizeScanned:fe(n.bytesScanned.toString())})},i.onclose=function(){s(!1),console.log("connection closed by server")},function(){i.close(1e3),console.log("closing websockets")}}}),[o,u,_,D,f,T]);var G={labels:["Green","Yellow","Red","Grey"],datasets:[{label:"After Healing",data:P.afterHeal,backgroundColor:"rgba(0, 0, 255, 0.2)",borderColor:"rgba(54, 162, 235, 1)",borderWidth:1},{label:"Before Healing",data:P.beforeHeal,backgroundColor:"rgba(153, 102, 255, 0.2)",borderColor:"rgba(153, 102, 255, 1)",borderWidth:1}]},K=p.map((function(e){return{label:e.name,value:e.name}}));return a?Object(We.jsxs)(c.a.Fragment,{children:[Object(We.jsx)(sc,{label:"Heal"}),Object(We.jsxs)(k.a,{container:!0,className:t.container,children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ru,{to:"/tools",label:"Return to Tools"})}),Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.actionsTray,children:[Object(We.jsx)(Un.a,{variant:"outlined",children:Object(We.jsxs)(Gn.a,{id:"bucket-name",name:"bucket-name",value:u,onChange:function(e){b(e.target.value)},className:t.searchField,input:Object(We.jsx)(Yb,{}),displayEmpty:!0,children:[Object(We.jsx)(Kn.a,{value:"",children:"Select Bucket"},"select-bucket-name-default"),K.map((function(e){return Object(We.jsx)(Kn.a,{value:e.value,children:e.label},"select-bucket-name-".concat(e.label))}))]})}),Object(We.jsx)(C.a,{placeholder:"Prefix",className:t.searchField,id:"prefix-resource",label:"",disabled:!1,InputProps:{disableUnderline:!0},onChange:function(e){v(e.target.value)},variant:"standard"}),Object(We.jsx)(S.a,{type:"submit",variant:"contained",color:"primary",disabled:o,onClick:function(){return s(!0)},children:"Start"})]}),Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.inlineCheckboxes,children:[Object(We.jsx)(hc,{name:"recursive",id:"recursive",value:"recursive",checked:T,onChange:function(e){N(e.target.checked)},disabled:!1,label:"Recursive"}),Object(We.jsx)(hc,{name:"forceStart",id:"forceStart",value:"forceStart",checked:_,onChange:function(e){I(e.target.checked)},disabled:!1,label:"Force Start"}),Object(We.jsx)(hc,{name:"forceStop",id:"forceStop",value:"forceStop",checked:D,onChange:function(e){L(e.target.checked)},disabled:!1,label:"Force Stop"})]}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("br",{})}),Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.graphContainer,children:[Object(We.jsx)(qb.HorizontalBar,{data:G,width:80,height:30,options:{title:{display:!0,text:"Item's Health Status [%]",fontSize:20},legend:{display:!0,position:"right"}}}),Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.scanInfo,children:[Object(We.jsxs)("div",{className:t.scanData,children:[Object(We.jsx)("strong",{children:"Size scanned:"})," ",P.sizeScanned]}),Object(We.jsxs)("div",{className:t.scanData,children:[Object(We.jsx)("strong",{children:"Objects healed:"})," ",P.objectsHealed," /"," ",P.objectsScanned]}),Object(We.jsxs)("div",{className:t.scanData,children:[Object(We.jsx)("strong",{children:"Healing time:"})," ",P.healDuration,"s"]})]})]})]})]}):null}))),Zb="WATCH_MESSAGE_RECEIVED",Jb="WATCH_RESET_MESSAGES";var $b=Object(y.a)((function(e){return Object(f.a)({root:{width:450,lineHeight:"50px","label + &":{marginTop:e.spacing(3)},"& .MuiSelect-select:focus":{backgroundColor:"transparent"}},input:{height:50,fontSize:13,lineHeight:"50px",width:450}})}))(Bn.c),Xb=Object(o.b)((function(e){return{messages:e.watch.messages}}),{watchMessageReceived:function(e){return{type:Zb,message:e}},watchResetMessages:function(){return{type:Jb}}})(Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)(Object(p.a)({watchList:{background:"white",height:"400px",overflow:"auto","& ul":{margin:"4px",padding:"0px"},"& ul li":{listStyle:"none",margin:"0px",padding:"0px",borderBottom:"1px solid #dedede"}},searchPrefix:{flexGrow:1,marginLeft:15}},pt),Ot),(e.spacing(4),{container:{position:"relative",maxWidth:1180,padding:"20px 35px 0","& h6":{color:"#777777",fontSize:30},"& p":{"& span:not(*[class*='smallUnit'])":{fontSize:16}}},sectionTitle:{padding:"0px",margin:"0px"},topSpacer:{height:"8px"}})))}))((function(e){var t=e.classes,a=e.watchMessageReceived,i=e.watchResetMessages,r=e.messages,o=Object(n.useState)(!1),s=Object(m.a)(o,2),l=s[0],d=s[1],u=Object(n.useState)("Select Bucket"),b=Object(m.a)(u,2),j=b[0],h=b[1],p=Object(n.useState)(""),O=Object(m.a)(p,2),g=O[0],x=O[1],f=Object(n.useState)(""),v=Object(m.a)(f,2),y=v[0],w=v[1],T=Object(n.useState)([]),N=Object(m.a)(T,2),E=N[0],A=N[1];Object(n.useEffect)((function(){Ge.invoke("GET","/api/v1/buckets").then((function(e){var t=[];null!==e.buckets&&(t=e.buckets),A(t)})).catch((function(e){console.log(e)}))}),[]),Object(n.useEffect)((function(){if(i(),l&&E.some((function(e){return e.name===j}))){var e=new URL(window.location.toString()),t=e.port,n=Wb(e.protocol),c=new Bb.w3cwebsocket("".concat(n,"://").concat(e.hostname,":").concat(t,"/ws/watch/").concat(j,"?prefix=").concat(g,"&suffix=").concat(y)),r=null;if(null!==c)return c.onopen=function(){console.log("WebSocket Client Connected"),c.send("ok"),r=setInterval((function(){c.send("ok")}),1e4)},c.onmessage=function(e){var t=JSON.parse(e.data.toString());t.Time=new Date(t.Time.toString()),t.key=Math.random(),a(t)},c.onclose=function(){clearInterval(r),console.log("connection closed by server"),d(!1)},function(){c.close(1e3),clearInterval(r),console.log("closing websockets")}}else d(!1)}),[a,l,E,j,g,y,i]);var _=E.map((function(e){return{label:e.name,value:e.name}}));return Object(We.jsxs)(c.a.Fragment,{children:[Object(We.jsx)(sc,{label:"Watch"}),Object(We.jsxs)(k.a,{container:!0,className:t.container,children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ru,{to:"/tools",label:"Return to Tools"})}),Object(We.jsxs)(k.a,{item:!0,xs:12,children:[Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.actionsTray,children:[Object(We.jsx)(Un.a,{variant:"outlined",children:Object(We.jsxs)(Gn.a,{id:"bucket-name",name:"bucket-name",value:j,onChange:function(e){h(e.target.value)},className:t.searchField,disabled:l,input:Object(We.jsx)($b,{}),children:[Object(We.jsx)(Kn.a,{value:j,disabled:!0,children:"Select Bucket"},"select-bucket-name-default"),_.map((function(e){return Object(We.jsx)(Kn.a,{value:e.value,children:e.label},"select-bucket-name-".concat(e.label))}))]})}),Object(We.jsx)(C.a,{placeholder:"Prefix",className:"".concat(t.searchField," ").concat(t.searchPrefix),id:"prefix-resource",label:"",disabled:l,InputProps:{disableUnderline:!0},onChange:function(e){x(e.target.value)},variant:"standard"}),Object(We.jsx)(C.a,{placeholder:"Suffix",className:"".concat(t.searchField," ").concat(t.searchPrefix),id:"suffix-resource",label:"",disabled:l,InputProps:{disableUnderline:!0},onChange:function(e){w(e.target.value)},variant:"standard"}),Object(We.jsx)(S.a,{type:"submit",variant:"contained",color:"primary",disabled:l,onClick:function(){return d(!0)},children:"Start"})]}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("br",{})}),Object(We.jsx)(ei,{columns:[{label:"Time",elementKey:"Time",renderFunction:Se},{label:"Size",elementKey:"Size",renderFunction:fe},{label:"Type",elementKey:"Type"},{label:"Path",elementKey:"Path"}],records:r,entityName:"Watch",customEmptyMessage:"No Changes at this time",idField:"watch_table",isLoading:!1})]})]})]})}))),ej="HEALTH_INFO_MESSAGE_RECEIVED",tj="HEALTH_INFO_RESET_MESSAGE";var aj,nj="error",cj="success",ij="inProgress",rj=Object(o.b)((function(e){return{message:e.healthInfo.message,serverDiagnosticStatus:e.system.serverDiagnosticStatus}}),{healthInfoMessageReceived:function(e){return{type:ej,message:e}},healthInfoResetMessage:function(){return{type:tj}},setSnackBarMessage:ne,setServerDiagStat:function(e){return{type:z,serverDiagnosticStatus:e}}})(Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)({logList:{background:"#fff",minHeight:400,height:"calc(100vh - 270px)",overflow:"auto",fontSize:13,padding:"25px 45px",border:"1px solid #EAEDEE",borderRadius:4},loading:{paddingTop:8,paddingLeft:40},buttons:{justifyContent:"flex-start",gap:20},boxy:{border:"#E5E5E5 1px solid",borderRadius:2,padding:40,backgroundColor:"#fff"}},pt),(e.spacing(4),{container:{position:"relative",maxWidth:1180,padding:"20px 35px 0","& h6":{color:"#777777",fontSize:30},"& p":{"& span:not(*[class*='smallUnit'])":{fontSize:16}}},sectionTitle:{padding:"0px",margin:"0px"},topSpacer:{height:"8px"}})))}))((function(e){var t=e.classes,a=e.healthInfoMessageReceived,i=e.healthInfoResetMessage,r=e.message,o=e.setSnackBarMessage,s=e.setServerDiagStat,l=e.serverDiagnosticStatus,d=Object(n.useState)(!1),u=Object(m.a)(d,2),b=u[0],j=u[1],h=Object(n.useState)(!0),p=Object(m.a)(h,2),O=p[0],x=p[1];return Object(n.useEffect)((function(){l===cj&&r!=={}&&x(!1),l===ij&&x(!0),j(!1)}),[l,r]),Object(n.useEffect)((function(){if(b){i();var e=new URL(window.location.toString()),t=e.port,n=Wb(e.protocol),c=new Bb.w3cwebsocket("".concat(n,"://").concat(e.hostname,":").concat(t,"/ws/health-info?deadline=1h")),r=null;null!==c&&(c.onopen=function(){console.log("WebSocket Client Connected"),c.send("ok"),r=setInterval((function(){c.send("ok")}),1e4),o("Diagnostic started. Please do not refresh page during diagnosis."),s(ij)},c.onmessage=function(e){var t=JSON.parse(e.data.toString());t.timestamp=new Date(t.timestamp.toString()),a(t)},c.onerror=function(e){console.log("error closing websocket:",e.message),c.close(1e3),clearInterval(r),s(nj)},c.onclose=function(e){clearInterval(r),1011===e.code||1008===e.code||1006===e.code?(console.log("connection closed by server with code:",e.code),o("An error occurred while getting Diagnostic file."),s(nj)):(console.log("connection closed by server"),o("Diagnostic file is ready to be downloaded."),s(cj))})}else j(!1)}),[a,i,b,o,s]),Object(We.jsxs)(c.a.Fragment,{children:[Object(We.jsx)(sc,{label:"Diagnostic"}),Object(We.jsxs)(k.a,{container:!0,className:t.container,children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ru,{to:"/tools",label:"Return to Tools"})}),Object(We.jsx)(k.a,{item:!0,xs:12,className:t.boxy,children:Object(We.jsxs)(k.a,{container:!0,className:t.buttons,children:[Object(We.jsx)(k.a,{item:!0,children:Object(We.jsx)(S.a,{type:"submit",variant:"contained",color:"primary",disabled:b,onClick:function(){return j(!0)},children:"Start Diagnostic"})},"start-diag"),Object(We.jsx)(k.a,{item:!0,children:l===ij?Object(We.jsx)("div",{className:t.loading,children:Object(We.jsx)(g.a,{size:25})}):Object(We.jsx)(S.a,{type:"submit",variant:"contained",color:"primary",onClick:function(){!function(e,t){var a=document.createElement("a");a.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(t)),a.setAttribute("download",e),a.style.display="none",document.body.appendChild(a),a.click(),document.body.removeChild(a)}("diagnostic.json",JSON.stringify(r,null,2))},disabled:O,children:"Download"})},"start-download")]})})]})]})}))),oj={setErrorSnackMessage:ce},sj=Object(o.b)(null,oj),lj=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)(Object(p.a)({headerLabel:{fontSize:22,fontWeight:600,color:"#000",marginTop:4},breadcrumLink:{textDecoration:"none",color:"black"},tableWrapper:{height:"calc(100vh - 267px)"}},pt),Ot),(e.spacing(4),{container:{position:"relative",maxWidth:1180,padding:"20px 35px 0","& h6":{color:"#777777",fontSize:30},"& p":{"& span:not(*[class*='smallUnit'])":{fontSize:16}}},sectionTitle:{padding:"0px",margin:"0px"},topSpacer:{height:"8px"}})))}))(sj((function(e){var t=e.classes,a=e.setErrorSnackMessage,c=Object(n.useState)([]),i=Object(m.a)(c,2),r=i[0],o=i[1],s=Object(n.useState)(""),l=Object(m.a)(s,2),d=l[0],u=l[1],b=Object(n.useState)(!0),j=Object(m.a)(b,2),p=j[0],O=j[1];Object(n.useEffect)((function(){p&&Ge.invoke("GET","/api/v1/list-pvcs").then((function(e){var t=be()(e,"pvcs",[]);o(t||[]),O(!1)})).catch((function(e){O(!1),a(e)}))}),[p,a]);var g=r.filter((function(e){return e.name.includes(d)})),x=[{type:"view",onClick:function(e){h.push("/namespaces/".concat(e.namespace,"/tenants/").concat(e.tenant))}}];return Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)("h1",{className:t.sectionTitle,children:"Volumes"}),Object(We.jsx)(k.a,{item:!0,xs:12,className:t.actionsTray,children:Object(We.jsx)(C.a,{placeholder:"Search Volumes (PVCs)",className:t.searchField,id:"search-resource",label:"",InputProps:{disableUnderline:!0,startAdornment:Object(We.jsx)(Wt.a,{position:"start",children:Object(We.jsx)(Jt,{})})},onChange:function(e){u(e.target.value)},variant:"standard"})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("br",{})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ei,{itemActions:x,columns:[{label:"Name",elementKey:"name"},{label:"Namespace",elementKey:"namespace",width:90},{label:"Status",elementKey:"status",width:120},{label:"Tenant",renderFullObject:!0,renderFunction:function(e){return"".concat(e.namespace,"/").concat(e.tenant)}},{label:"Capacity",elementKey:"capacity",width:90},{label:"Storage Class",elementKey:"storageClass"}],isLoading:p,records:g,entityName:"PVCs",idField:"name",customPaperHeight:t.tableWrapper})})]})}))),dj="DIRECT_CSI/SELECT_DRIVE",uj={setErrorSnackMessage:ce},bj=Object(o.b)(null,uj)((function(e){var t=e.closeFormatModalAndRefresh,a=e.deleteOpen,c=e.allDrives,i=e.drivesToFormat,r=e.setErrorSnackMessage,o=Object(n.useState)(!1),s=Object(m.a)(o,2),l=s[0],d=s[1],u=Object(n.useState)(""),b=Object(m.a)(u,2),j=b[0],h=b[1],p=Object(n.useState)(!1),g=Object(m.a)(p,2),x=g[0],f=g[1];return Object(We.jsxs)(wn.a,{open:a,onClose:function(){t(!1,[])},"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[Object(We.jsxs)(Tn.a,{id:"alert-dialog-title",children:["Format ",c?"All ":"","Drives"]}),Object(We.jsx)(Nn.a,{children:Object(We.jsxs)(cc.a,{id:"alert-dialog-description",children:[!c&&Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(gc,{label:"Selected Drive".concat(i.length>1?"s":""),content:i.join(", ")}),Object(We.jsx)("br",{})]}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ac,{value:"force",id:"force",name:"force",checked:x,onChange:function(e){f(e.target.checked)},label:"Force Format",indicatorLabels:["Yes","No"]})}),"Are you sure you want to format"," ",c?Object(We.jsx)("strong",{children:"All"}):"the selected"," drive",i.length>1||c?"s":"","?.",Object(We.jsx)("br",{}),Object(We.jsx)("br",{}),Object(We.jsx)("strong",{children:"All information contained will be erased and cannot be recovered"}),Object(We.jsx)("br",{}),Object(We.jsx)("br",{}),"To continue please type ",Object(We.jsx)("b",{children:"YES, PROCEED"})," in the box.",Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"format-confirm",name:"format-confirm",onChange:function(e){h(e.target.value)},label:"",value:j})})]})}),l&&Object(We.jsx)(O.a,{}),Object(We.jsxs)(ic.a,{children:[Object(We.jsx)(S.a,{onClick:function(){t(!1,[])},color:"primary",disabled:l,children:"Cancel"}),Object(We.jsxs)(S.a,{onClick:function(){l||(d(!0),Ge.invoke("POST","/api/v1/direct-csi/drives/format",{drives:i,force:x}).then((function(e){d(!1),t(!0,e.formatIssuesList)})).catch((function(e){d(!1),r(e)})))},color:"secondary",autoFocus:!0,disabled:"YES, PROCEED"!==j,children:["Format Drive",i.length>1||c?"s":""]})]})]})})),jj=Object(y.a)((function(e){return Object(f.a)({warningBlock:{color:"red"},buttonContainer:{textAlign:"right"},errorsList:{height:"calc(100vh - 280px)"}})}))((function(e){var t=e.open,a=e.onCloseFormatErrorsList,n=e.errorsList,c=e.classes;return Object(We.jsx)(zn,{modalOpen:t,title:"Format Errors",onClose:a,children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsxs)(k.a,{item:!0,xs:12,className:c.formScrollable,children:["There were some issues trying to format the selected CSI Drives, please fix the issues and try again.",Object(We.jsx)("br",{}),Object(We.jsx)(ei,{columns:[{label:"Node",elementKey:"node"},{label:"Drive",elementKey:"drive"},{label:"Message",elementKey:"error"}],entityName:"Format Errors",idField:"drive",records:n,isLoading:!1,customPaperHeight:c.errorsList,textSelectable:!0,noBackground:!0})]}),Object(We.jsxs)(k.a,{item:!0,xs:12,className:c.buttonContainer,children:[Object(We.jsx)(S.a,{onClick:function(){!function(e,t){var a=document.createElement("a");a.setAttribute("href","data:application/json;charset=utf-8,"+encodeURIComponent(t)),a.setAttribute("download",e),a.style.display="none",document.body.appendChild(a),a.click(),document.body.removeChild(a)}("csiFormatErrors.json",JSON.stringify(Object(Kt.a)(n)))},color:"primary",children:"Download"}),Object(We.jsx)(S.a,{onClick:a,color:"secondary",autoFocus:!0,children:"Done"})]})]})})})),hj={setErrorSnackMessage:ce,selectDrive:function(e){return{type:dj,driveName:e}}},mj=Object(o.b)(null,hj),pj=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)(Object(p.a)({headerLabel:{fontSize:22,fontWeight:600,color:"#000",marginTop:4},tableWrapper:{height:"calc(100vh - 275px)"},notAvailableNotice:{border:"#EAEDEE 1px solid",backgroundColor:"#FFF",display:"flex",padding:"19px 38px",overflow:"auto",position:"relative",boxShadow:"none",minHeight:200,overflowY:"scroll",borderRadius:3,flexDirection:"column",alignItems:"center",justifyContent:"center",height:"calc(100vh - 275px)",fontSize:18,fontWeight:600,textAlign:"center"},linkItem:{display:"default",color:"#072F51",textDecoration:"none","&:hover":{textDecoration:"underline",color:"#000"}}},pt),Ot),(e.spacing(4),{container:{position:"relative",maxWidth:1180,padding:"20px 35px 0","& h6":{color:"#777777",fontSize:30},"& p":{"& span:not(*[class*='smallUnit'])":{fontSize:16}}},sectionTitle:{padding:"0px",margin:"0px"},topSpacer:{height:"8px"}})))}))(mj((function(e){var t=e.classes,a=(e.selectDrive,e.setErrorSnackMessage),c=Object(n.useState)([]),i=Object(m.a)(c,2),r=i[0],o=i[1],s=Object(n.useState)(""),l=Object(m.a)(s,2),d=l[0],u=l[1],b=Object(n.useState)([]),j=Object(m.a)(b,2),h=j[0],O=j[1],g=Object(n.useState)(!0),x=Object(m.a)(g,2),f=x[0],v=x[1],y=Object(n.useState)(!1),w=Object(m.a)(y,2),T=w[0],N=w[1],E=Object(n.useState)(!1),A=Object(m.a)(E,2),_=A[0],I=A[1],M=Object(n.useState)([]),z=Object(m.a)(M,2),D=z[0],L=z[1],F=Object(n.useState)(!1),R=Object(m.a)(F,2),P=R[0],B=R[1],U=Object(n.useState)([]),G=Object(m.a)(U,2),K=G[0],W=G[1],V=Object(n.useState)(!0),H=Object(m.a)(V,2),q=H[0],Y=H[1];Object(n.useEffect)((function(){f&&Ge.invoke("GET","/api/v1/direct-csi/drives").then((function(e){var t=be()(e,"drives",[]);t||(t=[]),(t=t.map((function(e){var t=Object(p.a)({},e);return t.joinName="".concat(t.node,":").concat(t.drive),t}))).sort((function(e,t){return e.drive>t.drive?1:e.drive<t.drive?-1:0})),o(t),v(!1),Y(!1)})).catch((function(e){v(!1),Y(!0)}))}),[f,a,q]);var Q=[{type:"format",onClick:function(e){W([e]),I(!1),N(!0)},sendOnlyId:!0}],Z=r.filter((function(e){return e.drive.includes(d)}));return Object(We.jsxs)(n.Fragment,{children:[T&&Object(We.jsx)(bj,{closeFormatModalAndRefresh:function(e,t){N(!1),e&&(t&&t.length>0&&(L(t),B(!0)),v(!0),O([]))},deleteOpen:T,allDrives:_,drivesToFormat:K}),P&&Object(We.jsx)(jj,{errorsList:D,open:P,onCloseFormatErrorsList:function(){B(!1)}}),Object(We.jsx)("h1",{className:t.sectionTitle,children:"Drives"}),Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.actionsTray,children:[Object(We.jsx)(C.a,{placeholder:"Search Drives",className:t.searchField,id:"search-resource",label:"",InputProps:{disableUnderline:!0,startAdornment:Object(We.jsx)(Wt.a,{position:"start",children:Object(We.jsx)(Jt,{})})},onChange:function(e){u(e.target.value)},disabled:q,variant:"standard"}),Object(We.jsx)(mr,{color:"primary","aria-label":"Refresh Tenant List",onClick:function(){v(!0)},disabled:q,size:"large",children:Object(We.jsx)(Ve,{})}),Object(We.jsx)(S.a,{variant:"contained",color:"primary",startIcon:Object(We.jsx)(wl.a,{}),disabled:h.length<=0||q,onClick:function(){h.length>0&&(W(h),I(!1),N(!0))},children:"Format Selected Drives"}),Object(We.jsx)(S.a,{variant:"contained",color:"primary",startIcon:Object(We.jsx)(ba,{}),onClick:function(){var e=r.map((function(e){return"".concat(e.node,":").concat(e.drive)}));I(!0),W(e),N(!0)},disabled:q,children:"Format All Drives"})]}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("br",{})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:q&&!f?Object(We.jsxs)("div",{className:t.notAvailableNotice,children:["To manage locally attached drives you need to install direct-csi, for more information",Object(We.jsx)("br",{}),"please follow this",Object(We.jsx)("a",{href:"https://github.com/minio/direct-csi",rel:"noreferrer",target:"_blank",className:t.linkItem,children:"Link"})]}):Object(We.jsx)(ei,{itemActions:Q,columns:[{label:"Drive",elementKey:"drive"},{label:"Capacity",elementKey:"capacity",renderFunction:fe},{label:"Allocated",elementKey:"allocated",renderFunction:fe},{label:"Volumes",elementKey:"volumes"},{label:"Node",elementKey:"node"},{label:"Status",elementKey:"status"}],onSelect:function(e){var t=e.target,a=t.value,n=t.checked,c=Object(Kt.a)(h);return n?c.push(a):c=c.filter((function(e){return e!==a})),O(c),c},selectedItems:h,isLoading:f,records:Z,customPaperHeight:t.tableWrapper,entityName:"Drives",idField:"joinName"})})]})}))),Oj=["/storage/volumes","/storage/drives"],gj=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)(Object(p.a)({headerLabel:{fontSize:22,fontWeight:600,color:"#000",marginTop:4}},pt),Ot),(e.spacing(4),{container:{position:"relative",maxWidth:1180,padding:"20px 35px 0","& h6":{color:"#777777",fontSize:30},"& p":{"& span:not(*[class*='smallUnit'])":{fontSize:16}}},sectionTitle:{padding:"0px",margin:"0px"},topSpacer:{height:"8px"}})))}))((function(e){var t=e.classes,a=e.match,c=Object(n.useState)(0),i=Object(m.a)(c,2),r=i[0],o=i[1];Object(n.useEffect)((function(){var e=Oj.findIndex((function(e){return e===a.path}));o(e)}),[a]);var l=function(e){h.push(Oj[e])};return Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(sc,{label:"Storage"}),Object(We.jsxs)(k.a,{container:!0,className:t.container,children:[Object(We.jsx)(k.a,{item:!0,xs:2,children:Object(We.jsxs)(fc.a,{component:"nav",dense:!0,children:[Object(We.jsx)(vc.a,{button:!0,selected:0===r,onClick:function(){l(0)},children:Object(We.jsx)(yc.a,{primary:"Volumes"})}),Object(We.jsx)(vc.a,{button:!0,selected:1===r,onClick:function(){l(1)},children:Object(We.jsx)(yc.a,{primary:"Drives"})})]})}),Object(We.jsx)(k.a,{item:!0,xs:10,children:Object(We.jsx)(s.c,{history:h,children:Object(We.jsxs)(s.d,{children:[Object(We.jsx)(s.b,{path:Oj[0],component:lj}),Object(We.jsx)(s.b,{path:Oj[1],component:pj}),Object(We.jsx)(s.b,{render:function(){return Object(We.jsx)(s.a,{to:"/storage/volumes"})}})]})})})]})]})})),xj=Object(o.b)(null,{displayErrorMessage:ce}),fj=Object(y.a)((function(e){return Object(f.a)({})}))(xj((function(e){e.classes;var t=e.displayErrorMessage,a=Object(n.useState)(!0),c=Object(m.a)(a,2),i=c[0],r=c[1],o=Object(n.useState)(null),s=Object(m.a)(o,2),l=s[0],d=s[1],u=Object(n.useCallback)((function(){Ge.invoke("GET","/api/v1/admin/info").then((function(e){d(e),r(!1)})).catch((function(e){t(e),r(!1)}))}),[d,r,t]);Object(n.useEffect)((function(){i&&u()}),[i,u]);var b=be()(l,"widgets",null);return Object(We.jsx)(n.Fragment,{children:Object(We.jsx)(k.a,{container:!0,children:i?Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(O.a,{})}):Object(We.jsx)(n.Fragment,{children:null!==b?Object(We.jsx)(k.a,{container:!0,children:Object(We.jsx)(Hs,{})}):Object(We.jsx)($s,{usage:l})})})})}))),vj=a(371),yj=a.n(vj),Sj=Object(y.a)((function(e){return Object(f.a)(Object(p.a)({breadcrumLink:{textDecoration:"none",color:"black"},iframeStyle:{border:0,position:"absolute",height:"calc(100vh - 77px)",width:"100%"},divContainer:{position:"absolute",left:0,top:77,height:"calc(100vh - 77px)",width:"100%"},loader:{width:100,margin:"auto",marginTop:80}},(e.spacing(4),{container:{position:"relative",maxWidth:1180,padding:"20px 35px 0","& h6":{color:"#777777",fontSize:30},"& p":{"& span:not(*[class*='smallUnit'])":{fontSize:16}}},sectionTitle:{padding:"0px",margin:"0px"},topSpacer:{height:"8px"}})))}))((function(e){var t=e.classes,a=e.match,i=Object(n.useState)(!0),r=Object(m.a)(i,2),o=r[0],s=r[1],l=a.params.tenantName,d=a.params.tenantNamespace,u=c.a.useRef(null);return Object(We.jsxs)(c.a.Fragment,{children:[Object(We.jsx)(sc,{label:Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(lc.a,{to:"/tenants",className:t.breadcrumLink,children:"Tenants"})," > ",Object(We.jsx)(lc.a,{to:"/namespaces/".concat(d,"/tenants/").concat(l),className:t.breadcrumLink,children:a.params.tenantName})," > Management"]}),actions:Object(We.jsxs)(c.a.Fragment,{children:[Object(We.jsx)(kn.a,{color:"primary","aria-label":"Refresh List",component:"span",onClick:function(){if(null!==u&&null!==u.current&&null!==u.current.contentDocument){var e=u.current.contentDocument.location.toString(),t="&";if(e.indexOf("?")<0&&(t="?"),e.indexOf("cp=y")<0){var a="".concat(e).concat(t,"cp=y");u.current.contentDocument.location.replace(a)}else u.current.contentDocument.location.reload()}},size:"large",children:Object(We.jsx)(Ve,{})}),Object(We.jsx)(kn.a,{color:"primary","aria-label":"Refresh List",component:"span",onClick:function(){h.push("/namespaces/".concat(d,"/tenants/").concat(l))},size:"large",children:Object(We.jsx)(yj.a,{})})]})}),Object(We.jsxs)("div",{className:t.divContainer,children:[o&&Object(We.jsx)("div",{className:t.loader,children:Object(We.jsx)(g.a,{})}),Object(We.jsx)("iframe",{ref:u,className:t.iframeStyle,title:"metrics",src:"/api/proxy/".concat(d,"/").concat(l,"/?cp=y"),onLoad:function(e){s(!1)}})]})]})})),Cj=function(e){return e.map((function(e){return{label:e,value:e}}))},kj=function(e){var t={};return e.forEach((function(e){if(e.required&&""===e.value.trim())t[e.fieldKey]="Field cannot be empty";else if(e.required||""!==e.value.trim())if(e.customValidation&&e.customValidationMessage)t[e.fieldKey]=e.customValidationMessage;else if(e.pattern&&e.customPatternMessage){var a=new RegExp(e.pattern,"g");e.value.match(a)||(t[e.fieldKey]=e.customPatternMessage)}else;})),t},wj=function(e,t){var a=Object(p.a)({},e);return delete a[t],a},Tj=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,t="",a="1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",n=0;n<e;n++)t+=a[Math.floor(Math.random()*a.length)];return t},Nj={setErrorSnackMessage:ce},Ej=Object(o.b)(null,Nj),Aj=Object(y.a)((function(e){return Object(f.a)(Object(p.a)({wrapText:{maxWidth:"200px",whiteSpace:"normal",wordWrap:"break-word"}},dt))}))(Ej((function(e){var t=e.classes,a=e.namespace,c=e.addNamespaceOpen,i=e.closeAddNamespaceModalAndRefresh,r=e.setErrorSnackMessage,o=Object(n.useState)(!1),s=Object(m.a)(o,2),l=s[0],d=s[1];Object(n.useEffect)((function(){l&&Ge.invoke("POST","/api/v1/namespace",{name:a}).then((function(e){d(!1),i(!0)})).catch((function(e){d(!1),r(e)}))}),[l,i,a,r]);return Object(We.jsxs)(wn.a,{open:c,onClose:function(){i(!1)},"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[Object(We.jsx)(Tn.a,{id:"alert-dialog-title",children:"Create new namespace"}),Object(We.jsxs)(Nn.a,{children:[l&&Object(We.jsx)(O.a,{}),Object(We.jsxs)(cc.a,{id:"alert-dialog-description",children:["Are you sure you want to add a namespace called"," ",Object(We.jsx)("b",{className:t.wrapText,children:a}),"?"]})]}),Object(We.jsxs)(ic.a,{children:[Object(We.jsx)(S.a,{onClick:function(){i(!1)},color:"primary",disabled:l,type:"button",className:t.clearButton,children:"Cancel"}),Object(We.jsx)(S.a,{onClick:function(){d(!0)},variant:"contained",color:"primary",autoFocus:!0,disabled:l,children:"Create Namespace"})]})]})}))),_j=Object(o.b)((function(e){return{advancedMode:e.tenants.createTenant.advancedModeOn,volumeSize:e.tenants.createTenant.fields.tenantSize.volumeSize,sizeFactor:e.tenants.createTenant.fields.tenantSize.sizeFactor,drivesPerServer:e.tenants.createTenant.fields.tenantSize.drivesPerServer,nodes:e.tenants.createTenant.fields.tenantSize.nodes,memoryNode:e.tenants.createTenant.fields.tenantSize.memoryNode,ecParity:e.tenants.createTenant.fields.tenantSize.ecParity,ecParityChoices:e.tenants.createTenant.fields.tenantSize.ecParityChoices,cleanECChoices:e.tenants.createTenant.fields.tenantSize.cleanECChoices,maxAllocableMemo:e.tenants.createTenant.fields.tenantSize.maxAllocableMemo,memorySize:e.tenants.createTenant.fields.tenantSize.memorySize,distribution:e.tenants.createTenant.fields.tenantSize.distribution,ecParityCalc:e.tenants.createTenant.fields.tenantSize.ecParityCalc,limitSize:e.tenants.createTenant.fields.tenantSize.limitSize,selectedStorageClass:e.tenants.createTenant.fields.nameTenant.selectedStorageClass}}),{updateAddField:zu,isPageValid:Du}),Ij=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)({buttonContainer:{textAlign:"right"},root:{margin:4},table:{"& .MuiTableCell-root":{fontSize:13}}},dt),Nt))}))(_j((function(e){var t=e.classes,a=e.updateAddField,c=e.isPageValid,i=e.advancedMode,r=e.volumeSize,o=e.sizeFactor,s=e.drivesPerServer,l=e.nodes,d=e.memoryNode,u=e.ecParity,b=e.ecParityChoices,j=e.cleanECChoices,h=e.maxAllocableMemo,p=e.memorySize,O=e.distribution,g=e.ecParityCalc,x=e.limitSize,f=e.selectedStorageClass,v=Object(n.useState)(!1),y=Object(m.a)(v,2),S=y[0],C=y[1],k=Object(n.useState)(""),w=Object(m.a)(k,2),T=w[0],N=w[1],E=g.storageFactors.find((function(e){return e.erasureCode===u})),A=Object(n.useCallback)((function(e,t){a("tenantSize",e,t)}),[a]),_=Object(n.useCallback)((function(){var e=parseInt(d)||0,t=h||0,a=o,n=we((r||0).toString(10),a),c=Te(e,n,t);A("memorySize",c)}),[h,d,o,A,r]);Object(n.useEffect)((function(){_()}),[d,_]),Object(n.useEffect)((function(){_()}),[h,_]),Object(n.useEffect)((function(){if(b.length>0&&""===O.error){var e=_e(j,O.persistentVolumes,O.pvSize,O.nodes);A("ecParityCalc",e),A("ecParity",e.defaultEC)}}),[b.length,O,j,A]),Object(n.useEffect)((function(){I(),M(),function(e){""===e||isNaN(parseInt(e))||(N(""),Ge.invoke("GET","/api/v1/cluster/max-allocatable-memory?num_nodes=".concat(e)).then((function(e){var t=e.max_memory?e.max_memory:0;A("maxAllocableMemo",t)})).catch((function(e){C(!0),N(e.errorMessage)})))}(l)}),[l,r,o,s]);var I=function(){var e=r,t=o,a=we("12","Ti",!0),n={unit:t,value:e.toString()},c=Ne(n,parseInt(l),parseInt(a),parseInt(s));A("distribution",c)},M=function(){A("ecParity",""),""!==l.trim()&&""!==s.trim()&&Ge.invoke("GET","/api/v1/get-parity/".concat(l,"/").concat(s)).then((function(e){A("ecParityChoices",Cj(e)),A("cleanECChoices",e)})).catch((function(e){A("ecparityChoices",[]),c("tenantSize",!1),A("ecParity","")}))};return Object(n.useEffect)((function(){var e=we(r,o,!0),t=kj([{fieldKey:"nodes",required:!0,value:l,customValidation:S,customValidationMessage:T},{fieldKey:"volume_size",required:!0,value:r,customValidation:parseInt(e)<1073741824||parseInt(e)>x[f],customValidationMessage:"Volume size must be greater than 1Gi and less than ".concat(fe(x[f],!0))},{fieldKey:"memory_per_node",required:!0,value:d,customValidation:parseInt(d)<2,customValidationMessage:"Memory size must be greater than 2Gi"},{fieldKey:"drivesps",required:!0,value:s,customValidation:parseInt(s)<1,customValidationMessage:"There must be at least one drive"}]);c("tenantSize",!("nodes"in t)&&!("volume_size"in t)&&!("memory_per_node"in t)&&!("drivesps"in t)&&""===O.error&&0===g.error&&""===p.error)}),[l,r,o,d,O,s,g,p,x,f,c,S,T]),Object(We.jsxs)("div",{className:t.root,children:[Object(We.jsx)("h4",{children:"Resource Allocation"}),Object(We.jsx)(al.a,{}),Object(We.jsx)(Si.a,{className:t.table,"aria-label":"simple table",size:"small",children:Object(We.jsxs)(yi.a,{children:[Object(We.jsxs)(fi.a,{children:[Object(We.jsx)(vi.a,{scope:"row",children:"Number of Servers"}),Object(We.jsx)(vi.a,{align:"right",children:parseInt(l)>0?l:"-"})]}),Object(We.jsxs)(fi.a,{children:[Object(We.jsx)(vi.a,{scope:"row",children:"Drives per Server"}),Object(We.jsx)(vi.a,{align:"right",children:O?O.disks:"-"})]}),Object(We.jsxs)(fi.a,{children:[Object(We.jsx)(vi.a,{scope:"row",children:"Drive Capacity"}),Object(We.jsx)(vi.a,{align:"right",children:O?fe(O.pvSize):"-"})]}),Object(We.jsxs)(fi.a,{children:[Object(We.jsx)(vi.a,{scope:"row",children:"Total Volumes"}),Object(We.jsx)(vi.a,{align:"right",children:O?O.persistentVolumes:"-"})]}),!i&&Object(We.jsxs)(fi.a,{children:[Object(We.jsx)(vi.a,{scope:"row",children:"Memory per Node"}),Object(We.jsxs)(vi.a,{align:"right",children:[d," Gi"]})]})]})}),0===g.error&&E&&Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)("h4",{children:"Erasure Code Configuration"}),Object(We.jsx)(al.a,{}),Object(We.jsx)(Si.a,{className:t.table,"aria-label":"simple table",size:"small",children:Object(We.jsxs)(yi.a,{children:[Object(We.jsxs)(fi.a,{children:[Object(We.jsx)(vi.a,{scope:"row",children:"EC Parity"}),Object(We.jsx)(vi.a,{align:"right",children:""!==u?u:"-"})]}),Object(We.jsxs)(fi.a,{children:[Object(We.jsx)(vi.a,{scope:"row",children:"Raw Capacity"}),Object(We.jsx)(vi.a,{align:"right",children:fe(g.rawCapacity)})]}),Object(We.jsxs)(fi.a,{children:[Object(We.jsx)(vi.a,{scope:"row",children:"Usable Capacity"}),Object(We.jsx)(vi.a,{align:"right",children:fe(E.maxCapacity)})]}),Object(We.jsxs)(fi.a,{children:[Object(We.jsx)(vi.a,{scope:"row",children:"Server Failures Tolerated"}),Object(We.jsx)(vi.a,{align:"right",children:O?Math.floor(E.maxFailureTolerations/O.disks):"-"})]})]})})]})]})}))),Mj=Object(o.b)((function(e){return{advancedMode:e.tenants.createTenant.advancedModeOn,volumeSize:e.tenants.createTenant.fields.tenantSize.volumeSize,sizeFactor:e.tenants.createTenant.fields.tenantSize.sizeFactor,drivesPerServer:e.tenants.createTenant.fields.tenantSize.drivesPerServer,nodes:e.tenants.createTenant.fields.tenantSize.nodes,memoryNode:e.tenants.createTenant.fields.tenantSize.memoryNode,ecParity:e.tenants.createTenant.fields.tenantSize.ecParity,ecParityChoices:e.tenants.createTenant.fields.tenantSize.ecParityChoices,cleanECChoices:e.tenants.createTenant.fields.tenantSize.cleanECChoices,maxAllocableMemo:e.tenants.createTenant.fields.tenantSize.maxAllocableMemo,memorySize:e.tenants.createTenant.fields.tenantSize.memorySize,distribution:e.tenants.createTenant.fields.tenantSize.distribution,ecParityCalc:e.tenants.createTenant.fields.tenantSize.ecParityCalc,limitSize:e.tenants.createTenant.fields.tenantSize.limitSize,selectedStorageClass:e.tenants.createTenant.fields.nameTenant.selectedStorageClass}}),{updateAddField:zu,isPageValid:Du}),zj=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)({buttonContainer:{textAlign:"right"}},dt),Nt))}))(Mj((function(e){var t=e.classes,a=e.updateAddField,c=e.isPageValid,i=(e.advancedMode,e.volumeSize),r=e.sizeFactor,o=e.drivesPerServer,s=e.nodes,l=e.memoryNode,d=e.ecParity,u=e.ecParityChoices,b=e.cleanECChoices,j=e.maxAllocableMemo,h=e.memorySize,p=e.distribution,O=e.ecParityCalc,g=e.limitSize,x=e.selectedStorageClass,f=Object(n.useState)({}),v=Object(m.a)(f,2),y=v[0],S=v[1],C=Object(n.useState)(!1),w=Object(m.a)(C,2),T=w[0],N=w[1],E=Object(n.useState)(""),A=Object(m.a)(E,2),_=A[0],I=A[1],M=Object(n.useCallback)((function(e,t){a("tenantSize",e,t)}),[a]),z=function(e){S(wj(y,e))},D=Object(n.useCallback)((function(){var e=parseInt(l)||0,t=j||0,a=r,n=we((i||0).toString(10),a),c=Te(e,n,t);M("memorySize",c)}),[j,l,r,M,i]);Object(n.useEffect)((function(){D()}),[l,D]),Object(n.useEffect)((function(){D()}),[j,D]),Object(n.useEffect)((function(){if(u.length>0&&""===p.error){var e=_e(b,p.persistentVolumes,p.pvSize,p.nodes);M("ecParityCalc",e),M("ecParity",e.defaultEC)}}),[u.length,p,b,M]),Object(n.useEffect)((function(){L(),F(),function(e){""===e||isNaN(parseInt(e))||(I(""),Ge.invoke("GET","/api/v1/cluster/max-allocatable-memory?num_nodes=".concat(e)).then((function(e){var t=e.max_memory?e.max_memory:0;M("maxAllocableMemo",t)})).catch((function(e){N(!0),I(e.errorMessage)})))}(s)}),[s,i,r,o]);var L=function(){var e=i,t=r,a=we("12","Ti",!0),n={unit:t,value:e.toString()},c=Ne(n,parseInt(s),parseInt(a),parseInt(o));M("distribution",c)},F=function(){M("ecParity",""),""!==s.trim()&&""!==o.trim()&&Ge.invoke("GET","/api/v1/get-parity/".concat(s,"/").concat(o)).then((function(e){M("ecParityChoices",Cj(e)),M("cleanECChoices",e)})).catch((function(e){M("ecparityChoices",[]),c("tenantSize",!1),M("ecParity","")}))};return Object(n.useEffect)((function(){var e=we(i,r,!0),t=kj([{fieldKey:"nodes",required:!0,value:s,customValidation:T,customValidationMessage:_},{fieldKey:"volume_size",required:!0,value:i,customValidation:parseInt(e)<1073741824||parseInt(e)>g[x],customValidationMessage:"Volume size must be greater than 1Gi and less than ".concat(fe(g[x],!0))},{fieldKey:"memory_per_node",required:!0,value:l,customValidation:parseInt(l)<2,customValidationMessage:"Memory size must be greater than 2Gi"},{fieldKey:"drivesps",required:!0,value:o,customValidation:parseInt(o)<1,customValidationMessage:"There must be at least one drive"}]);c("tenantSize",!("nodes"in t)&&!("volume_size"in t)&&!("memory_per_node"in t)&&!("drivesps"in t)&&""===p.error&&0===O.error&&""===h.error),S(t)}),[s,i,r,l,p,o,O,h,g,x,c,T,_]),Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsxs)("div",{className:t.headerElement,children:[Object(We.jsx)("h3",{className:t.h3Section,children:"Tenant Size"}),Object(We.jsx)("span",{className:t.descriptionText,children:"Please select the desired capacity"})]})}),""!==p.error&&Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("div",{className:t.error,children:p.error})}),""!==h.error&&Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("div",{className:t.error,children:h.error})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"nodes",name:"nodes",type:"number",onChange:function(e){M("nodes",e.target.value),z("nodes")},label:"Number of Servers",disabled:""===x,value:s,min:"4",required:!0,error:y.nodes||""})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"drivesps",name:"drivesps",type:"number",onChange:function(e){M("drivesPerServer",e.target.value),z("drivesps")},label:"Number of Drives per Server",value:o,disabled:""===x,min:"1",required:!0,error:y.drivesps||""})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsxs)("div",{className:t.multiContainer,children:[Object(We.jsx)("div",{children:Object(We.jsx)(Pn,{type:"number",id:"volume_size",name:"volume_size",onChange:function(e){M("volumeSize",e.target.value),z("volume_size")},label:"Total Size",value:i,disabled:""===x,required:!0,error:y.volume_size||"",min:"0"})}),Object(We.jsx)("div",{className:t.sizeFactorContainer,children:Object(We.jsx)(Vn,{label:"Unit",id:"size_factor",name:"size_factor",value:r,disabled:""===x,onChange:function(e){M("sizeFactor",e.target.value)},options:ke()})})]})}),Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{type:"number",id:"memory_per_node",name:"memory_per_node",onChange:function(e){M("memoryNode",e.target.value),z("memory_per_node")},label:"Memory per Node [Gi]",value:l,disabled:""===x,required:!0,error:y.memory_per_node||"",min:"2"})}),Object(We.jsxs)(k.a,{item:!0,xs:12,children:[Object(We.jsx)(Vn,{id:"ec_parity",name:"ec_parity",onChange:function(e){M("ecParity",e.target.value)},label:"Erasure Code Parity",disabled:""===x,value:d,options:u}),Object(We.jsx)("span",{className:t.descriptionText,children:"Please select the desired parity. This setting will change the max usable capacity in the cluster"})]})]})]})}))),Dj=Object(o.b)((function(e){return{tenantName:e.tenants.createTenant.fields.nameTenant.tenantName,namespace:e.tenants.createTenant.fields.nameTenant.namespace,selectedStorageClass:e.tenants.createTenant.fields.nameTenant.selectedStorageClass,storageClasses:e.tenants.createTenant.storageClasses}}),{setModalErrorSnackMessage:re,updateAddField:zu,setStorageClassesList:function(e){return{type:hu,storageClasses:e}},setLimitSize:function(e){return{type:"ADD_TENANT/SET_LIMIT_SIZE",limitSize:e}},isPageValid:Du}),Lj=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)({buttonContainer:{textAlign:"right"},sizePreview:{position:"fixed"}},dt),Nt))}))(Dj((function(e){var t=e.classes,a=e.storageClasses,c=e.tenantName,i=e.namespace,r=e.selectedStorageClass,o=e.updateAddField,s=e.setStorageClassesList,l=e.setLimitSize,d=e.isPageValid,u=e.setModalErrorSnackMessage,b=Object(n.useState)({}),j=Object(m.a)(b,2),h=j[0],p=j[1],O=Object(n.useState)(!0),g=Object(m.a)(O,2),f=g[0],v=g[1],y=Object(n.useState)(!1),S=Object(m.a)(y,2),C=S[0],w=S[1],T=Object(n.useState)(!1),N=Object(m.a)(T,2),E=N[0],A=N[1],_=Object(n.useState)(!1),I=Object(m.a)(_,2),M=I[0],z=I[1],D=Object(n.useCallback)((function(e,t){o("nameTenant",e,t)}),[o]),L=Object(n.useCallback)((function(){A(!1),D("selectedStorageClass",""),s([]),Ge.invoke("GET","/api/v1/namespaces/".concat(i,"/tenants")).then((function(e){var t=be()(e,"tenants",[]);if(t&&t.length>0)return v(!1),void w(!1);v(!0),Ge.invoke("GET","/api/v1/namespaces/".concat(i,"/resourcequotas/").concat(i,"-storagequota")).then((function(e){var t=be()(e,"elements",[]);l(function(e){var t=be()(e,"elements",[]),a={};return t.forEach((function(e){var t=e.name.split(".storageclass.storage.k8s.io/requests.storage")[0],n=be()(e,"hard",0),c=be()(e,"used",0);a[t]=n-c})),a}(e));var a=t.map((function(e){var t=be()(e,"name","").split(".storageclass.storage.k8s.io/requests.storage")[0];return{label:t,value:t}}));s(a),a.length>0&&D("selectedStorageClass",a[0].value),w(!1)})).catch((function(e){w(!1),A(!0),console.error("Namespace error: ",e)}))})).catch((function(e){u({errorMessage:"Error validating if namespace already has tenants",detailedError:e.detailedError})}))}),[i,l,u,s,D]),F=Object(n.useMemo)((function(){return Mi()(L,500)}),[L]);Object(n.useEffect)((function(){if(""!==i)return F(),w(!0),F.cancel}),[F,i]),Object(n.useEffect)((function(){var e=!1,t="";f||C?a.length<1&&f&&!C&&(e=!0,t="Please enter a valid namespace"):(e=!0,t="You can only create one tenant per namespace");var n=kj([{fieldKey:"tenant-name",required:!0,pattern:/^[a-z0-9-]{3,63}$/,customPatternMessage:"Name only can contain lowercase letters, numbers and '-'. Min. Length: 3",value:c},{fieldKey:"namespace",required:!0,value:i,customValidation:e,customValidationMessage:t}]),r=!("tenant-name"in n)&&!("namespace"in n)&&a.length>0;d("nameTenant",r),p(n)}),[a,i,c,d,f,C]);var R=function(e){p(wj(h,e))};return Object(We.jsxs)(n.Fragment,{children:[M&&Object(We.jsx)(Aj,{addNamespaceOpen:M,closeAddNamespaceModalAndRefresh:function(e){z(!1),e&&F()},namespace:i}),Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsx)(k.a,{item:!0,xs:8,children:Object(We.jsx)(x.a,{className:t.paperWrapper,children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsxs)(k.a,{item:!0,xs:12,children:[Object(We.jsxs)("div",{className:t.headerElement,children:[Object(We.jsx)("h3",{className:t.h3Section,children:"Name Tenant"}),Object(We.jsx)("span",{className:t.descriptionText,children:"How would you like to name this new tenant?"})]}),Object(We.jsx)(Pn,{id:"tenant-name",name:"tenant-name",onChange:function(e){D("tenantName",e.target.value),R("tenant-name")},label:"Name",value:c,required:!0,error:h["tenant-name"]||""})]}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"namespace",name:"namespace",onChange:function(e){D("namespace",e.target.value),R("namespace")},label:"Namespace",value:i,error:h.namespace||"",overlayIcon:E?Object(We.jsx)(ba,{}):null,overlayAction:function(){z(!0)},required:!0})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Vn,{id:"storage_class",name:"storage_class",onChange:function(e){D("selectedStorageClass",e.target.value)},label:"Storage Class",value:r,options:a,disabled:a.length<1})}),Object(We.jsx)(zj,{})]})})}),Object(We.jsx)(k.a,{item:!0,xs:4,children:Object(We.jsx)("div",{className:t.sizePreview,children:Object(We.jsx)(Ij,{})})})]})]})}))),Fj=Object(o.b)((function(e){return{storageClasses:e.tenants.createTenant.storageClasses,customImage:e.tenants.createTenant.fields.configure.customImage,imageName:e.tenants.createTenant.fields.configure.imageName,customDockerhub:e.tenants.createTenant.fields.configure.customDockerhub,imageRegistry:e.tenants.createTenant.fields.configure.imageRegistry,imageRegistryUsername:e.tenants.createTenant.fields.configure.imageRegistryUsername,imageRegistryPassword:e.tenants.createTenant.fields.configure.imageRegistryPassword,exposeMinIO:e.tenants.createTenant.fields.configure.exposeMinIO,exposeConsole:e.tenants.createTenant.fields.configure.exposeConsole,prometheusCustom:e.tenants.createTenant.fields.configure.prometheusCustom,tenantCustom:e.tenants.createTenant.fields.configure.tenantCustom,logSearchCustom:e.tenants.createTenant.fields.configure.logSearchCustom,logSearchVolumeSize:e.tenants.createTenant.fields.configure.logSearchVolumeSize,logSearchSizeFactor:e.tenants.createTenant.fields.configure.logSearchSizeFactor,prometheusVolumeSize:e.tenants.createTenant.fields.configure.prometheusVolumeSize,prometheusSizeFactor:e.tenants.createTenant.fields.configure.prometheusSizeFactor,logSearchSelectedStorageClass:e.tenants.createTenant.fields.configure.logSearchSelectedStorageClass,logSearchImage:e.tenants.createTenant.fields.configure.logSearchImage,kesImage:e.tenants.createTenant.fields.configure.kesImage,logSearchPostgresImage:e.tenants.createTenant.fields.configure.logSearchPostgresImage,logSearchPostgresInitImage:e.tenants.createTenant.fields.configure.logSearchPostgresInitImage,prometheusSelectedStorageClass:e.tenants.createTenant.fields.configure.prometheusSelectedStorageClass,prometheusImage:e.tenants.createTenant.fields.configure.prometheusImage,prometheusSidecarImage:e.tenants.createTenant.fields.configure.prometheusSidecarImage,prometheusInitImage:e.tenants.createTenant.fields.configure.prometheusInitImage,selectedStorageClass:e.tenants.createTenant.fields.nameTenant.selectedStorageClass,tenantSecurityContext:e.tenants.createTenant.fields.configure.tenantSecurityContext,logSearchSecurityContext:e.tenants.createTenant.fields.configure.logSearchSecurityContext,logSearchPostgresSecurityContext:e.tenants.createTenant.fields.configure.logSearchPostgresSecurityContext,prometheusSecurityContext:e.tenants.createTenant.fields.configure.prometheusSecurityContext}}),{updateAddField:zu,isPageValid:Du}),Rj=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)({buttonContainer:{textAlign:"right"}},dt),Nt))}))(Fj((function(e){var t=e.classes,a=e.storageClasses,c=e.customImage,i=e.imageName,r=e.customDockerhub,o=e.imageRegistry,s=e.imageRegistryUsername,l=e.imageRegistryPassword,d=e.exposeMinIO,u=e.exposeConsole,b=e.prometheusCustom,j=e.tenantCustom,h=e.logSearchCustom,O=e.logSearchVolumeSize,g=(e.logSearchSizeFactor,e.logSearchImage),f=e.kesImage,v=e.logSearchPostgresImage,y=e.logSearchPostgresInitImage,S=e.prometheusVolumeSize,C=(e.prometheusSizeFactor,e.logSearchSelectedStorageClass),w=e.prometheusSelectedStorageClass,T=e.prometheusImage,N=e.prometheusSidecarImage,E=e.prometheusInitImage,A=e.updateAddField,_=e.isPageValid,I=e.selectedStorageClass,M=e.tenantSecurityContext,z=e.logSearchSecurityContext,D=e.logSearchPostgresSecurityContext,L=e.prometheusSecurityContext,F=Object(n.useState)({}),R=Object(m.a)(F,2),P=R[0],B=R[1],U=Object(n.useCallback)((function(e,t){A("configure",e,t)}),[A]);Object(n.useEffect)((function(){var e=[];j&&(e=[].concat(Object(Kt.a)(e),[{fieldKey:"tenant_securityContext_runAsUser",required:!0,value:M.runAsUser,customValidation:""===M.runAsUser||parseInt(M.runAsUser)<0,customValidationMessage:"runAsUser must be present and be 0 or more"},{fieldKey:"tenant_securityContext_runAsGroup",required:!0,value:M.runAsGroup,customValidation:""===M.runAsGroup||parseInt(M.runAsGroup)<0,customValidationMessage:"runAsGroup must be present and be 0 or more"},{fieldKey:"tenant_securityContext_fsGroup",required:!0,value:M.fsGroup,customValidation:""===M.fsGroup||parseInt(M.fsGroup)<0,customValidationMessage:"fsGroup must be present and be 0 or more"}])),b&&(e=[].concat(Object(Kt.a)(e),[{fieldKey:"prometheus_storage_class",required:!0,value:w,customValidation:""===w,customValidationMessage:"Field cannot be empty"},{fieldKey:"prometheus_volume_size",required:!0,value:S,customValidation:""===S||parseInt(S)<=0,customValidationMessage:"Volume size must be present and be greater than 0"},{fieldKey:"prometheus_securityContext_runAsUser",required:!0,value:L.runAsUser,customValidation:""===L.runAsUser||parseInt(L.runAsUser)<0,customValidationMessage:"runAsUser must be present and be 0 or more"},{fieldKey:"prometheus_securityContext_runAsGroup",required:!0,value:L.runAsGroup,customValidation:""===L.runAsGroup||parseInt(L.runAsGroup)<0,customValidationMessage:"runAsGroup must be present and be 0 or more"},{fieldKey:"prometheus_securityContext_fsGroup",required:!0,value:L.fsGroup,customValidation:""===L.fsGroup||parseInt(L.fsGroup)<0,customValidationMessage:"fsGroup must be present and be 0 or more"}])),h&&(e=[].concat(Object(Kt.a)(e),[{fieldKey:"log_search_storage_class",required:!0,value:C,customValidation:""===C,customValidationMessage:"Field cannot be empty"},{fieldKey:"log_search_volume_size",required:!0,value:O,customValidation:""===O||parseInt(O)<=0,customValidationMessage:"Volume size must be present and be greatter than 0"},{fieldKey:"logSearch_securityContext_runAsUser",required:!0,value:z.runAsUser,customValidation:""===z.runAsUser||parseInt(z.runAsUser)<0,customValidationMessage:"runAsUser must be present and be 0 or more"},{fieldKey:"logSearch_securityContext_runAsGroup",required:!0,value:z.runAsGroup,customValidation:""===z.runAsGroup||parseInt(z.runAsGroup)<0,customValidationMessage:"runAsGroup must be present and be 0 or more"},{fieldKey:"logSearch_securityContext_fsGroup",required:!0,value:z.fsGroup,customValidation:""===z.fsGroup||parseInt(z.fsGroup)<0,customValidationMessage:"fsGroup must be present and be 0 or more"},{fieldKey:"postgres_securityContext_runAsUser",required:!0,value:D.runAsUser,customValidation:""===D.runAsUser||parseInt(D.runAsUser)<0,customValidationMessage:"runAsUser must be present and be 0 or more"},{fieldKey:"postgres_securityContext_runAsGroup",required:!0,value:L.runAsGroup,customValidation:""===D.runAsGroup||parseInt(D.runAsGroup)<0,customValidationMessage:"runAsGroup must be present and be 0 or more"},{fieldKey:"postgres_securityContext_fsGroup",required:!0,value:D.fsGroup,customValidation:""===D.fsGroup||parseInt(D.fsGroup)<0,customValidationMessage:"fsGroup must be present and be 0 or more"}])),c&&(e=[].concat(Object(Kt.a)(e),[{fieldKey:"image",required:!1,value:i,pattern:/^((.*?)\/(.*?):(.+))$/,customPatternMessage:"Format must be of form: 'minio/minio:VERSION'"},{fieldKey:"logSearchImage",required:!1,value:g,pattern:/^((.*?)\/(.*?):(.+))$/,customPatternMessage:"Format must be of form: 'minio/logsearchapi:VERSION'"},{fieldKey:"kesImage",required:!1,value:f,pattern:/^((.*?)\/(.*?):(.+))$/,customPatternMessage:"Format must be of form: 'minio/kes:VERSION'"},{fieldKey:"logSearchPostgresImage",required:!1,value:v,pattern:/^((.*?)\/(.*?):(.+))$/,customPatternMessage:"Format must be of form: 'library/postgres:VERSION'"},{fieldKey:"logSearchPostgresInitImage",required:!1,value:y,pattern:/^((.*?)\/(.*?):(.+))$/,customPatternMessage:"Format must be of form: 'library/busybox:VERSION'"},{fieldKey:"prometheusImage",required:!1,value:T,pattern:/^((.*?)\/(.*?):(.+))$/,customPatternMessage:"Format must be of form: 'minio/prometheus:VERSION'"},{fieldKey:"prometheusSidecarImage",required:!1,value:N,pattern:/^((.*?)\/(.*?):(.+))$/,customPatternMessage:"Format must be of form: 'project/container:VERSION'"},{fieldKey:"prometheusInitImage",required:!1,value:E,pattern:/^((.*?)\/(.*?):(.+))$/,customPatternMessage:"Format must be of form: 'library/busybox:VERSION'"}]),r&&(e=[].concat(Object(Kt.a)(e),[{fieldKey:"registry",required:!0,value:o},{fieldKey:"registryUsername",required:!0,value:s},{fieldKey:"registryPassword",required:!0,value:l}])));var t=kj(e);_("configure",0===Object.keys(t).length),B(t)}),[c,i,g,f,v,y,T,N,E,r,o,s,l,_,b,j,h,w,S,C,O,M,z,D,L]),Object(n.useEffect)((function(){a.length>0&&(0===a.filter((function(e){return e.value===w})).length&&U("prometheusSelectedStorageClass",I),0===a.filter((function(e){return e.value===C})).length&&U("logSearchSelectedStorageClass",I))}),[C,w,I,a,U]);var G=function(e){B(wj(P,e))};return Object(We.jsxs)(x.a,{className:t.paperWrapper,children:[Object(We.jsxs)("div",{className:t.headerElement,children:[Object(We.jsx)("h3",{className:t.h3Section,children:"Configure"}),Object(We.jsx)("span",{className:t.descriptionText,children:"Basic configurations for tenant management"})]}),Object(We.jsxs)("div",{className:t.headerElement,children:[Object(We.jsx)("h3",{className:t.h3Section,children:"Expose Services"}),Object(We.jsx)("span",{className:t.descriptionText,children:"Whether the tenant's services should request an external IP."})]}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ac,{value:"expose_minio",id:"expose_minio",name:"expose_minio",checked:d,onChange:function(e){var t=e.target.checked;U("exposeMinIO",t)},label:"Expose MiniO Service"})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ac,{value:"expose_console",id:"expose_console",name:"expose_console",checked:u,onChange:function(e){var t=e.target.checked;U("exposeConsole",t)},label:"Expose Console Service"})}),Object(We.jsxs)("div",{className:t.headerElement,children:[Object(We.jsx)("h3",{className:t.h3Section,children:"Additional Configurations"}),Object(We.jsx)("span",{className:t.descriptionText,children:"Configure SecurityContext, Storage Classes & Storage size for Log Search, Prometheus add-ons and your Tenant"})]}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ac,{value:"tenantConfig",id:"tenant_configuration",name:"tenant_configuration",checked:j,onChange:function(e){var t=e.target.checked;U("tenantCustom",t)},label:"Override Tenant defaults"})}),j&&Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)("span",{className:t.descriptionText,children:"SecurityContext for MinIO"}),Object(We.jsx)("br",{}),Object(We.jsx)("br",{}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsxs)("div",{className:t.multiContainer,children:[Object(We.jsx)("div",{children:Object(We.jsx)(Pn,{type:"number",id:"tenant_securityContext_runAsUser",name:"tenant_securityContext_runAsUser",onChange:function(e){U("tenantSecurityContext",Object(p.a)(Object(p.a)({},M),{},{runAsUser:e.target.value})),G("tenant_securityContext_runAsUser")},label:"Run As User",value:M.runAsUser,required:!0,error:P.tenant_securityContext_runAsUser||"",min:"0"})}),Object(We.jsx)("div",{children:Object(We.jsx)(Pn,{type:"number",id:"tenant_securityContext_runAsGroup",name:"tenant_securityContext_runAsGroup",onChange:function(e){U("tenantSecurityContext",Object(p.a)(Object(p.a)({},M),{},{runAsGroup:e.target.value})),G("tenant_securityContext_runAsGroup")},label:"Run As Group",value:M.runAsGroup,required:!0,error:P.tenant_securityContext_runAsGroup||"",min:"0"})}),Object(We.jsx)("div",{children:Object(We.jsx)(Pn,{type:"number",id:"tenant_securityContext_fsGroup",name:"tenant_securityContext_fsGroup",onChange:function(e){U("tenantSecurityContext",Object(p.a)(Object(p.a)({},M),{},{fsGroup:e.target.value})),G("tenant_securityContext_fsGroup")},label:"FsGroup",value:M.fsGroup,required:!0,error:P.tenant_securityContext_fsGroup||"",min:"0"})})]})}),Object(We.jsx)("br",{}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("div",{className:t.multiContainer,children:Object(We.jsx)(ac,{value:"tenantSecurityContextRunAsNonRoot",id:"tenant_securityContext_runAsNonRoot",name:"tenant_securityContext_runAsNonRoot",checked:M.runAsNonRoot,onChange:function(e){var t=e.target.checked;U("tenantSecurityContext",Object(p.a)(Object(p.a)({},M),{},{runAsNonRoot:t}))},label:"Do not run as Root"})})})]}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ac,{value:"logSearchConfig",id:"log_search_configuration",name:"log_search_configuration",checked:h,onChange:function(e){var t=e.target.checked;U("logSearchCustom",t)},label:"Override Log Search defaults"})}),h&&Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Vn,{id:"log_search_storage_class",name:"log_search_storage_class",onChange:function(e){U("logSearchSelectedStorageClass",e.target.value)},label:"Log Search Storage Class",value:C,options:a,disabled:a.length<1})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("div",{className:t.multiContainer,children:Object(We.jsx)("div",{children:Object(We.jsx)(Pn,{type:"number",id:"log_search_volume_size",name:"log_search_volume_size",onChange:function(e){U("logSearchVolumeSize",e.target.value),G("log_search_volume_size")},label:"Storage Size [Gi]",value:O,required:!0,error:P.log_search_volume_size||"",min:"0"})})})}),Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)("span",{className:t.descriptionText,children:"SecurityContext for LogSearch"}),Object(We.jsx)("br",{}),Object(We.jsx)("br",{}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsxs)("div",{className:t.multiContainer,children:[Object(We.jsx)("div",{children:Object(We.jsx)(Pn,{type:"number",id:"logSearch_securityContext_runAsUser",name:"logSearch_securityContext_runAsUser",onChange:function(e){U("logSearchSecurityContext",Object(p.a)(Object(p.a)({},z),{},{runAsUser:e.target.value})),G("logSearch_securityContext_runAsUser")},label:"Run As User",value:z.runAsUser,required:!0,error:P.logSearch_securityContext_runAsUser||"",min:"0"})}),Object(We.jsx)("div",{children:Object(We.jsx)(Pn,{type:"number",id:"logSearch_securityContext_runAsGroup",name:"logSearch_securityContext_runAsGroup",onChange:function(e){U("logSearchSecurityContext",Object(p.a)(Object(p.a)({},z),{},{runAsGroup:e.target.value})),G("logSearch_securityContext_runAsGroup")},label:"Run As Group",value:z.runAsGroup,required:!0,error:P.logSearch_securityContext_runAsGroup||"",min:"0"})}),Object(We.jsx)("div",{children:Object(We.jsx)(Pn,{type:"number",id:"logSearch_securityContext_fsGroup",name:"logSearch_securityContext_fsGroup",onChange:function(e){U("logSearchSecurityContext",Object(p.a)(Object(p.a)({},z),{},{fsGroup:e.target.value})),G("logSearch_securityContext_fsGroup")},label:"FsGroup",value:z.fsGroup,required:!0,error:P.logSearch_securityContext_fsGroup||"",min:"0"})})]})}),Object(We.jsx)("br",{}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("div",{className:t.multiContainer,children:Object(We.jsx)(ac,{value:"logSearchSecurityContextRunAsNonRoot",id:"logSearch_securityContext_runAsNonRoot",name:"logSearch_securityContext_runAsNonRoot",checked:z.runAsNonRoot,onChange:function(e){var t=e.target.checked;U("logSearchSecurityContext",Object(p.a)(Object(p.a)({},z),{},{runAsNonRoot:t}))},label:"Do not run as Root"})})})]}),Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)("span",{className:t.descriptionText,children:"SecurityContext for PostgreSQL"}),Object(We.jsx)("br",{}),Object(We.jsx)("br",{}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsxs)("div",{className:t.multiContainer,children:[Object(We.jsx)("div",{children:Object(We.jsx)(Pn,{type:"number",id:"postgres_securityContext_runAsUser",name:"postgres_securityContext_runAsUser",onChange:function(e){U("logSearchPostgresSecurityContext",Object(p.a)(Object(p.a)({},D),{},{runAsUser:e.target.value})),G("postgres_securityContext_runAsUser")},label:"Run As User",value:D.runAsUser,required:!0,error:P.postgres_securityContext_runAsUser||"",min:"0"})}),Object(We.jsx)("div",{children:Object(We.jsx)(Pn,{type:"number",id:"postgres_securityContext_runAsGroup",name:"postgres_securityContext_runAsGroup",onChange:function(e){U("logSearchPostgresSecurityContext",Object(p.a)(Object(p.a)({},D),{},{runAsGroup:e.target.value})),G("postgres_securityContext_runAsGroup")},label:"Run As Group",value:D.runAsGroup,required:!0,error:P.postgres_securityContext_runAsGroup||"",min:"0"})}),Object(We.jsx)("div",{children:Object(We.jsx)(Pn,{type:"number",id:"postgres_securityContext_fsGroup",name:"postgres_securityContext_fsGroup",onChange:function(e){U("logSearchPostgresSecurityContext",Object(p.a)(Object(p.a)({},D),{},{fsGroup:e.target.value})),G("postgres_securityContext_fsGroup")},label:"FsGroup",value:D.fsGroup,required:!0,error:P.postgres_securityContext_fsGroup||"",min:"0"})})]})}),Object(We.jsx)("br",{}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("div",{className:t.multiContainer,children:Object(We.jsx)(ac,{value:"postgresSecurityContextRunAsNonRoot",id:"postgres_securityContext_runAsNonRoot",name:"postgres_securityContext_runAsNonRoot",checked:D.runAsNonRoot,onChange:function(e){var t=e.target.checked;U("logSearchPostgresSecurityContext",Object(p.a)(Object(p.a)({},D),{},{runAsNonRoot:t}))},label:"Do not run as Root"})})})]})]}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ac,{value:"prometheusConfig",id:"prometheus_configuration",name:"prometheus_configuration",checked:b,onChange:function(e){var t=e.target.checked;U("prometheusCustom",t)},label:"Override Prometheus defaults"})}),b&&Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Vn,{id:"prometheus_storage_class",name:"prometheus_storage_class",onChange:function(e){U("prometheusSelectedStorageClass",e.target.value)},label:"Prometheus Storage Class",value:w,options:a,disabled:a.length<1})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("div",{className:t.multiContainer,children:Object(We.jsx)("div",{children:Object(We.jsx)(Pn,{type:"number",id:"prometheus_volume_size",name:"prometheus_volume_size",onChange:function(e){U("prometheusVolumeSize",e.target.value),G("prometheus_volume_size")},label:"Storage Size [Gi]",value:S,required:!0,error:P.prometheus_volume_size||"",min:"0"})})})}),Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)("span",{className:t.descriptionText,children:"SecurityContext for Prometheus"}),Object(We.jsx)("br",{}),Object(We.jsx)("br",{}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsxs)("div",{className:t.multiContainer,children:[Object(We.jsx)("div",{children:Object(We.jsx)(Pn,{type:"number",id:"prometheus_securityContext_runAsUser",name:"prometheus_securityContext_runAsUser",onChange:function(e){U("prometheusSecurityContext",Object(p.a)(Object(p.a)({},L),{},{runAsUser:e.target.value})),G("prometheus_securityContext_runAsUser")},label:"Run As User",value:L.runAsUser,required:!0,error:P.prometheus_securityContext_runAsUser||"",min:"0"})}),Object(We.jsx)("div",{children:Object(We.jsx)(Pn,{type:"number",id:"prometheus_securityContext_runAsGroup",name:"prometheus_securityContext_runAsGroup",onChange:function(e){U("prometheusSecurityContext",Object(p.a)(Object(p.a)({},L),{},{runAsGroup:e.target.value})),G("prometheus_securityContext_runAsGroup")},label:"Run As Group",value:L.runAsGroup,required:!0,error:P.prometheus_securityContext_runAsGroup||"",min:"0"})}),Object(We.jsx)("div",{children:Object(We.jsx)(Pn,{type:"number",id:"prometheus_securityContext_fsGroup",name:"prometheus_securityContext_fsGroup",onChange:function(e){U("prometheusSecurityContext",Object(p.a)(Object(p.a)({},L),{},{fsGroup:e.target.value})),G("prometheus_securityContext_fsGroup")},label:"FsGroup",value:L.fsGroup,required:!0,error:P.prometheus_securityContext_fsGroup||"",min:"0"})})]})}),Object(We.jsx)("br",{}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("div",{className:t.multiContainer,children:Object(We.jsx)(ac,{value:"prometheusSecurityContextRunAsNonRoot",id:"prometheus_securityContext_runAsNonRoot",name:"prometheus_securityContext_runAsNonRoot",checked:L.runAsNonRoot,onChange:function(e){var t=e.target.checked;U("prometheusSecurityContext",Object(p.a)(Object(p.a)({},L),{},{runAsNonRoot:t}))},label:"Do not run as Root"})})})]})]})]})}))),Pj=a(372),Bj=a.n(Pj),Uj=Object(o.b)((function(e){return{idpSelection:e.tenants.createTenant.fields.identityProvider.idpSelection,accessKeys:e.tenants.createTenant.fields.identityProvider.accessKeys,secretKeys:e.tenants.createTenant.fields.identityProvider.secretKeys,openIDConfigurationURL:e.tenants.createTenant.fields.identityProvider.openIDConfigurationURL,openIDClientID:e.tenants.createTenant.fields.identityProvider.openIDClientID,openIDSecretID:e.tenants.createTenant.fields.identityProvider.openIDSecretID,openIDCallbackURL:e.tenants.createTenant.fields.identityProvider.openIDCallbackURL,openIDClaimName:e.tenants.createTenant.fields.identityProvider.openIDClaimName,openIDScopes:e.tenants.createTenant.fields.identityProvider.openIDScopes,ADURL:e.tenants.createTenant.fields.identityProvider.ADURL,ADSkipTLS:e.tenants.createTenant.fields.identityProvider.ADSkipTLS,ADServerInsecure:e.tenants.createTenant.fields.identityProvider.ADServerInsecure,ADUserNameSearchFilter:e.tenants.createTenant.fields.identityProvider.ADUserNameSearchFilter,ADGroupSearchBaseDN:e.tenants.createTenant.fields.identityProvider.ADGroupSearchBaseDN,ADGroupSearchFilter:e.tenants.createTenant.fields.identityProvider.ADGroupSearchFilter,ADGroupNameAttribute:e.tenants.createTenant.fields.identityProvider.ADGroupNameAttribute,ADUserDNs:e.tenants.createTenant.fields.identityProvider.ADUserDNs,ADUserNameFormat:e.tenants.createTenant.fields.identityProvider.ADUserNameFormat,ADLookupBindDN:e.tenants.createTenant.fields.identityProvider.ADLookupBindDN,ADLookupBindPassword:e.tenants.createTenant.fields.identityProvider.ADLookupBindPassword,ADUserDNSearchBaseDN:e.tenants.createTenant.fields.identityProvider.ADUserDNSearchBaseDN,ADUserDNSearchFilter:e.tenants.createTenant.fields.identityProvider.ADUserDNSearchFilter,ADServerStartTLS:e.tenants.createTenant.fields.identityProvider.ADServerStartTLS}}),{updateAddField:zu,isPageValid:Du}),Gj=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)({buttonContainer:{textAlign:"right"},shortened:{gridTemplateColumns:"auto auto 50px 50px",display:"grid",gridGap:20},buttonTray:{gridTemplateColumns:"auto auto 10px 10px",display:"grid",gridGap:0,height:16,marginTop:12}},dt),Nt))}))(Uj((function(e){var t=e.classes,a=e.idpSelection,c=e.accessKeys,i=e.secretKeys,r=e.openIDConfigurationURL,o=e.openIDClientID,s=e.openIDSecretID,l=e.openIDCallbackURL,d=e.openIDClaimName,u=e.openIDScopes,b=e.ADURL,j=e.ADSkipTLS,h=e.ADServerInsecure,p=e.ADUserNameSearchFilter,O=e.ADGroupSearchBaseDN,g=e.ADGroupSearchFilter,f=e.ADGroupNameAttribute,v=e.ADUserDNs,y=e.ADUserNameFormat,S=e.ADLookupBindDN,C=e.ADLookupBindPassword,T=e.ADUserDNSearchBaseDN,N=e.ADUserDNSearchFilter,E=e.ADServerStartTLS,A=e.updateAddField,_=e.isPageValid,I=Object(n.useState)({}),M=Object(m.a)(I,2),z=M[0],D=M[1],L=Object(n.useCallback)((function(e,t){A("identityProvider",e,t)}),[A]),F=function(e,t){var a=Object(Kt.a)(c);a[e]=t,L("accessKeys",a)},R=function(e,t){var a=Object(Kt.a)(i);a[e]=t,L("secretKeys",a)},P=function(e,t){var a=Object(Kt.a)(v);a[e]=t,L("ADUserDNs",a)},B=function(e){D(wj(z,e))};Object(n.useEffect)((function(){var e=[];if("Built-in"===a){e=Object(Kt.a)(e);for(var t=0;t<c.length;t++)e.push({fieldKey:"accesskey-".concat(t.toString()),required:!0,value:c[t],pattern:/^[a-zA-Z0-9-]{8,63}$/,customPatternMessage:"Keys must be at least length 8"}),e.push({fieldKey:"secretkey-".concat(t.toString()),required:!0,value:i[t],pattern:/^[a-zA-Z0-9-]{8,63}$/,customPatternMessage:"Keys must be at least length 8"})}if("OpenID"===a&&(e=[].concat(Object(Kt.a)(e),[{fieldKey:"openID_CONFIGURATION_URL",required:!0,value:r},{fieldKey:"openID_clientID",required:!0,value:o},{fieldKey:"openID_secretID",required:!0,value:s},{fieldKey:"openID_claimName",required:!0,value:d}])),"AD"===a){e=[].concat(Object(Kt.a)(e),[{fieldKey:"AD_URL",required:!0,value:b}]);for(var n=0;n<v.length;n++)e.push({fieldKey:"ad-userdn-".concat(n.toString()),required:!0,value:v[n]})}var l=kj(e);_("identityProvider",0===Object.keys(l).length),D(l)}),[a,c,i,o,s,b,p,O,g,f,v,_,r,d]);var U=null;return"Built-in"===a&&(U=c.map((function(e,a){return Object(We.jsx)(n.Fragment,{children:Object(We.jsxs)("div",{className:t.shortened,children:[Object(We.jsx)(Pn,{id:"accesskey-".concat(a.toString()),label:"",placeholder:"Access Key",name:"accesskey-".concat(a.toString()),value:c[a],onChange:function(e){F(a,e.target.value),B("accesskey-".concat(a.toString()))},index:a,error:z["accesskey-".concat(a.toString())]||""},"csv-accesskey-".concat(a.toString())),Object(We.jsx)(Pn,{id:"secretkey-".concat(a.toString()),label:"",placeholder:"Secret Key",name:"secretkey-".concat(a.toString()),value:i[a],onChange:function(e){R(a,e.target.value),B("secretkey-".concat(a.toString()))},index:a,error:z["secretkey-".concat(a.toString())]||""},"csv-secretkey-".concat(a.toString())),Object(We.jsxs)("div",{className:t.buttonTray,children:[Object(We.jsx)(Ln.a,{title:"Add User","aria-label":"add",children:Object(We.jsx)(kn.a,{size:"small",onClick:function(){c.push(""),i.push(""),F(c.length-1,""),R(i.length-1,"")},children:Object(We.jsx)(kr.a,{})})}),Object(We.jsx)(Ln.a,{title:"Randomize Credentials","aria-label":"add",children:Object(We.jsx)(kn.a,{onClick:function(){F(a,Tj(16)),R(a,Tj(32))},size:"small",children:Object(We.jsx)(Bj.a,{})})}),Object(We.jsx)(Ln.a,{title:"Remove","aria-label":"add",children:Object(We.jsx)(kn.a,{size:"small",style:{marginLeft:16},onClick:function(){c.length>1&&(c.splice(a,1),i.splice(a,1),F(c.length-1,c[c.length-1]))},children:Object(We.jsx)(fo.a,{})})})]})]})},"identityField-".concat(a.toString()))}))),"AD"===a&&(U=v.map((function(e,a){return Object(We.jsx)(n.Fragment,{children:Object(We.jsxs)("div",{className:t.shortened,children:[Object(We.jsx)(Pn,{id:"ad-userdn-".concat(a.toString()),label:"",placeholder:"",name:"ad-userdn-".concat(a.toString()),value:v[a],onChange:function(e){P(a,e.target.value),B("ad-userdn-".concat(a.toString()))},index:a,error:z["ad-userdn-".concat(a.toString())]||""},"csv-ad-userdn-".concat(a.toString())),Object(We.jsxs)("div",{className:t.buttonTray,children:[Object(We.jsx)(Ln.a,{title:"Add User","aria-label":"add",children:Object(We.jsx)(kn.a,{size:"small",onClick:function(){v.push(""),P(v.length-1,"")},children:Object(We.jsx)(kr.a,{})})}),Object(We.jsx)(Ln.a,{title:"Remove","aria-label":"add",children:Object(We.jsx)(kn.a,{size:"small",style:{marginLeft:16},onClick:function(){v.length>1&&(v.splice(a,1),F(v.length-1,v[v.length-1]))},children:Object(We.jsx)(fo.a,{})})})]})]})},"identityField-".concat(a.toString()))}))),Object(We.jsxs)(x.a,{className:t.paperWrapper,children:[Object(We.jsxs)("div",{className:t.headerElement,children:[Object(We.jsx)("h3",{className:t.h3Section,children:"Identity Provider"}),Object(We.jsx)("span",{className:t.descriptionText,children:"Access to the tenant can be controlled via an external Identity Manager."})]}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)($n,{currentSelection:a,id:"idp-options",name:"idp-options",label:"Protocol",onChange:function(e){L("idpSelection",e.target.value)},selectorOptions:[{label:"Built-in",value:"Built-in"},{label:"OpenID",value:"OpenID"},{label:"Active Directory",value:"AD"}]})}),"Built-in"===a&&Object(We.jsxs)(n.Fragment,{children:["Add additional users",U]}),"OpenID"===a&&Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"openID_CONFIGURATION_URL",name:"openID_CONFIGURATION_URL",onChange:function(e){L("openIDConfigurationURL",e.target.value),B("openID_CONFIGURATION_URL")},label:"Configuration URL",value:r,placeholder:"https://your-identity-provider.com/.well-known/openid-configuration",error:z.openID_CONFIGURATION_URL||"",required:!0})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"openID_clientID",name:"openID_clientID",onChange:function(e){L("openIDClientID",e.target.value),B("openID_clientID")},label:"Client ID",value:o,error:z.openID_clientID||"",required:!0})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"openID_secretID",name:"openID_secretID",onChange:function(e){L("openIDSecretID",e.target.value),B("openID_secretID")},label:"Secret ID",value:s,error:z.openID_secretID||"",required:!0})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"openID_callbackURL",name:"openID_callbackURL",onChange:function(e){L("openIDCallbackURL",e.target.value),B("openID_callbackURL")},label:"Callback URL",value:l,placeholder:"https://your-console-endpoint:9443/oauth_callback",error:z.openID_callbackURL||""})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"openID_claimName",name:"openID_claimName",onChange:function(e){L("openIDClaimName",e.target.value),B("openID_claimName")},label:"Claim Name",value:d,error:z.openID_claimName||"",required:!0})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"openID_scopes",name:"openID_scopes",onChange:function(e){L("openIDScopes",e.target.value),B("openID_scopes")},label:"Scopes",value:u})})]}),"AD"===a&&Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"AD_URL",name:"AD_URL",onChange:function(e){L("ADURL",e.target.value),B("AD_URL")},label:"LDAP Server Address",value:b,placeholder:"ldap-server:636",error:z.AD_URL||"",required:!0})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ac,{value:"ad_skipTLS",id:"ad_skipTLS",name:"ad_skipTLS",checked:j,onChange:function(e){var t=e.target.checked;L("ADSkipTLS",t)},label:"Skip TLS Verification"})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ac,{value:"ad_serverInsecure",id:"ad_serverInsecure",name:"ad_serverInsecure",checked:h,onChange:function(e){var t=e.target.checked;L("ADServerInsecure",t)},label:"Server Insecure"})}),h?Object(We.jsxs)(k.a,{item:!0,xs:12,children:[Object(We.jsx)(w.a,{className:t.error,variant:"caption",display:"block",gutterBottom:!0,children:"Warning: All traffic with Active Directory will be unencrypted"}),Object(We.jsx)("br",{})]}):null,Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ac,{value:"ad_serverStartTLS",id:"ad_serverStartTLS",name:"ad_serverStartTLS",checked:E,onChange:function(e){var t=e.target.checked;L("ADServerStartTLS",t)},label:"Start TLS connection to AD/LDAP server"})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"ad_userNameFormat",name:"ad_userNameFormat",onChange:function(e){L("ADUserNameFormat",e.target.value)},label:"Username Format",value:y,placeholder:"uid=%s,cn=accounts,dc=myldapserver,dc=com"})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"ad_userNameFilter",name:"ad_userNameFilter",onChange:function(e){L("ADUserNameSearchFilter",e.target.value)},label:"Username Search Filter",value:p,placeholder:"(|(objectclass=posixAccount)(uid=%s))"})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"ad_groupSearchBaseDN",name:"ad_groupSearchBaseDN",onChange:function(e){L("ADGroupSearchBaseDN",e.target.value)},label:"Group Search Base DN",value:O,placeholder:"ou=hwengg,dc=min,dc=io;ou=swengg,dc=min,dc=io"})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"ad_groupSearchFilter",name:"ad_groupSearchFilter",onChange:function(e){L("ADGroupSearchFilter",e.target.value)},label:"Group Search Filter",value:g,placeholder:"(&(objectclass=groupOfNames)(member=%s))"})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"ad_groupNameAttribute",name:"ad_groupNameAttribute",onChange:function(e){L("ADGroupNameAttribute",e.target.value)},label:"Group Name Attribute",value:f,placeholder:"cn"})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"ad_lookupBindDN",name:"ad_lookupBindDN",onChange:function(e){L("ADLookupBindDN",e.target.value)},label:"Lookup Bind DN",value:S,placeholder:"cn=admin,dc=min,dc=io"})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"ad_lookupBindPassword",name:"ad_lookupBindPassword",onChange:function(e){L("ADLookupBindPassword",e.target.value)},label:"Lookup Bind Password",value:C,placeholder:"admin"})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"ad_userDNSearchBaseDN",name:"ad_userDNSearchBaseDN",onChange:function(e){L("ADUserDNSearchBaseDN",e.target.value)},label:"User DN Search Base DN",value:T,placeholder:"dc=min,dc=io"})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"ad_userDNSearchFilter",name:"ad_userDNSearchFilter",onChange:function(e){L("ADUserDNSearchFilter",e.target.value)},label:"User DN Search Filter",value:N,placeholder:"(uid=%s)"})}),Object(We.jsxs)(k.a,{item:!0,xs:12,children:["List of user DNs (Distinguished Names) to be Tenant Administrators",U]})]})]})}))),Kj=Object(o.b)((function(e){return{enableTLS:e.tenants.createTenant.fields.security.enableTLS,enableAutoCert:e.tenants.createTenant.fields.security.enableAutoCert,enableCustomCerts:e.tenants.createTenant.fields.security.enableCustomCerts,minioCertificates:e.tenants.createTenant.certificates.minioCertificates,caCertificates:e.tenants.createTenant.certificates.caCertificates}}),{updateAddField:zu,isPageValid:Du,addFileToCaCertificates:function(e,t,a,n){return{type:xu,id:e,key:t,fileName:a,value:n}},deleteCaCertificate:function(e){return{type:fu,id:e}},addCaCertificate:function(){return{type:gu}},addKeyPair:function(){return{type:mu}},addFileToKeyPair:function(e,t,a,n){return{type:pu,id:e,key:t,fileName:a,value:n}},deleteKeyPair:function(e){return{type:Ou,id:e}}}),Wj=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)({buttonContainer:{textAlign:"right"}},dt),Nt))}))(Kj((function(e){var t=e.classes,a=e.enableTLS,c=e.enableAutoCert,i=e.enableCustomCerts,r=e.minioCertificates,o=e.caCertificates,s=e.updateAddField,l=e.isPageValid,d=e.addFileToCaCertificates,u=e.deleteCaCertificate,b=e.addCaCertificate,j=e.addKeyPair,h=e.addFileToKeyPair,m=e.deleteKeyPair,p=Object(n.useCallback)((function(e,t){s("security",e,t)}),[s]);return Object(n.useEffect)((function(){l("security",!a||(!!c||!!i))}),[a,c,i,l]),Object(We.jsxs)(x.a,{className:t.paperWrapper,children:[Object(We.jsx)("div",{className:t.headerElement,children:Object(We.jsx)("h3",{className:t.h3Section,children:"Security"})}),Object(We.jsxs)(k.a,{item:!0,xs:12,children:[Object(We.jsx)(ac,{value:"enableTLS",id:"enableTLS",name:"enableTLS",checked:a,onChange:function(e){var t=e.target.checked;p("enableTLS",t)},label:"Enable TLS"}),"Enable TLS for the tenant, this is required for Encryption Configuration",a&&Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)("br",{}),Object(We.jsx)("br",{}),Object(We.jsx)(w.a,{variant:"caption",display:"block",gutterBottom:!0,children:"AutoCert: MinIO Operator will generate all TLS certificates automatically"}),Object(We.jsx)(w.a,{variant:"caption",display:"block",gutterBottom:!0,children:"Custom certificates: Allow user to provide your own certificates"}),Object(We.jsx)("br",{})]})]}),a&&Object(We.jsxs)(n.Fragment,{children:[Object(We.jsxs)(k.a,{item:!0,xs:12,children:[Object(We.jsx)(ac,{value:"enableAutoCert",id:"enableAutoCert",name:"enableAutoCert",checked:c,onChange:function(e){var t=e.target.checked;p("enableAutoCert",t)},label:"Enable AutoCert"}),Object(We.jsx)(ac,{value:"enableCustomCerts",id:"enableCustomCerts",name:"enableCustomCerts",checked:i,onChange:function(e){var t=e.target.checked;p("enableCustomCerts",t)},label:"Custom Certificates"})]}),i&&Object(We.jsxs)(n.Fragment,{children:[Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(w.a,{variant:"overline",display:"block",gutterBottom:!0,children:"MinIO Certificates"})}),r.map((function(e){return Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(k.a,{item:!0,xs:5,children:Object(We.jsx)(jb,{onChange:function(t,a){h(e.id,"cert",a,t)},accept:".cer,.crt,.cert,.pem",id:"tlsCert",name:"tlsCert",label:"Cert",value:e.cert})}),Object(We.jsx)(k.a,{item:!0,xs:5,children:Object(We.jsx)(jb,{onChange:function(t,a){h(e.id,"key",a,t)},accept:".key,.pem",id:"tlsKey",name:"tlsKey",label:"Key",value:e.key})}),Object(We.jsx)(k.a,{item:!0,xs:1,children:Object(We.jsx)(S.a,{onClick:function(){m(e.id)},color:"secondary",children:"Remove"})})]},e.id)})),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(S.a,{onClick:j,color:"primary",children:"Add More"})})]}),Object(We.jsx)(k.a,{container:!0,children:Object(We.jsxs)(k.a,{item:!0,xs:12,children:[Object(We.jsx)("br",{}),Object(We.jsx)(al.a,{}),Object(We.jsx)("br",{})]})}),Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(w.a,{variant:"overline",display:"block",gutterBottom:!0,children:"MinIO CA Certificates"})}),o.map((function(e){return Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(k.a,{item:!0,xs:10,children:Object(We.jsx)(jb,{onChange:function(t,a){d(e.id,"cert",a,t)},accept:".cer,.crt,.cert,.pem",id:"tlsCert",name:"tlsCert",label:"Cert",value:e.cert})}),Object(We.jsx)(k.a,{item:!0,xs:1,children:Object(We.jsx)(S.a,{onClick:function(){u(e.id)},color:"secondary",children:"Remove"})})]},e.id)})),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(S.a,{onClick:b,color:"primary",children:"Add More"})})]})]})]})]})}))),Vj=Object(o.b)((function(e){return{replicas:e.tenants.createTenant.fields.encryption.replicas,enableEncryption:e.tenants.createTenant.fields.encryption.enableEncryption,encryptionType:e.tenants.createTenant.fields.encryption.encryptionType,gemaltoEndpoint:e.tenants.createTenant.fields.encryption.gemaltoEndpoint,gemaltoToken:e.tenants.createTenant.fields.encryption.gemaltoToken,gemaltoDomain:e.tenants.createTenant.fields.encryption.gemaltoDomain,gemaltoRetry:e.tenants.createTenant.fields.encryption.gemaltoRetry,awsEndpoint:e.tenants.createTenant.fields.encryption.awsEndpoint,awsRegion:e.tenants.createTenant.fields.encryption.awsRegion,awsKMSKey:e.tenants.createTenant.fields.encryption.awsKMSKey,awsAccessKey:e.tenants.createTenant.fields.encryption.awsAccessKey,awsSecretKey:e.tenants.createTenant.fields.encryption.awsSecretKey,awsToken:e.tenants.createTenant.fields.encryption.awsToken,vaultEndpoint:e.tenants.createTenant.fields.encryption.vaultEndpoint,vaultEngine:e.tenants.createTenant.fields.encryption.vaultEngine,vaultNamespace:e.tenants.createTenant.fields.encryption.vaultNamespace,vaultPrefix:e.tenants.createTenant.fields.encryption.vaultPrefix,vaultAppRoleEngine:e.tenants.createTenant.fields.encryption.vaultAppRoleEngine,vaultId:e.tenants.createTenant.fields.encryption.vaultId,vaultSecret:e.tenants.createTenant.fields.encryption.vaultSecret,vaultRetry:e.tenants.createTenant.fields.encryption.vaultRetry,vaultPing:e.tenants.createTenant.fields.encryption.vaultPing,azureEndpoint:e.tenants.createTenant.fields.encryption.azureEndpoint,azureTenantID:e.tenants.createTenant.fields.encryption.azureTenantID,azureClientID:e.tenants.createTenant.fields.encryption.azureClientID,azureClientSecret:e.tenants.createTenant.fields.encryption.azureClientSecret,gcpProjectID:e.tenants.createTenant.fields.encryption.gcpProjectID,gcpEndpoint:e.tenants.createTenant.fields.encryption.gcpEndpoint,gcpClientEmail:e.tenants.createTenant.fields.encryption.gcpClientEmail,gcpClientID:e.tenants.createTenant.fields.encryption.gcpClientID,gcpPrivateKeyID:e.tenants.createTenant.fields.encryption.gcpPrivateKeyID,gcpPrivateKey:e.tenants.createTenant.fields.encryption.gcpPrivateKey,enableCustomCertsForKES:e.tenants.createTenant.fields.encryption.enableCustomCertsForKES,enableAutoCert:e.tenants.createTenant.fields.security.enableAutoCert,enableTLS:e.tenants.createTenant.fields.security.enableTLS,minioCertificates:e.tenants.createTenant.certificates.minioCertificates,serverCertificate:e.tenants.createTenant.certificates.serverCertificate,clientCertificate:e.tenants.createTenant.certificates.clientCertificate,vaultCertificate:e.tenants.createTenant.certificates.vaultCertificate,vaultCA:e.tenants.createTenant.certificates.vaultCA,gemaltoCA:e.tenants.createTenant.certificates.gemaltoCA,enableCustomCerts:e.tenants.createTenant.fields.security.enableCustomCerts,kesSecurityContext:e.tenants.createTenant.fields.encryption.kesSecurityContext}}),{updateAddField:zu,isPageValid:Du,addFileServerCert:function(e,t,a){return{type:ku,key:e,fileName:t,value:a}},addFileClientCert:function(e,t,a){return{type:wu,key:e,fileName:t,value:a}},addFileVaultCert:function(e,t,a){return{type:Tu,key:e,fileName:t,value:a}},addFileVaultCa:function(e,t){return{type:Nu,fileName:e,value:t}},addFileGemaltoCa:function(e,t){return{type:Eu,fileName:e,value:t}}}),Hj=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)({buttonContainer:{textAlign:"right"}},dt),Nt))}))(Vj((function(e){var t=e.classes,a=e.updateAddField,c=e.isPageValid,i=e.addFileServerCert,r=e.addFileClientCert,o=e.addFileVaultCert,s=e.addFileVaultCa,l=e.addFileGemaltoCa,d=e.enableEncryption,u=e.enableCustomCerts,b=e.encryptionType,j=e.gemaltoEndpoint,h=e.gemaltoToken,O=e.gemaltoDomain,g=e.gemaltoRetry,f=e.awsEndpoint,v=e.awsRegion,y=e.awsKMSKey,S=e.awsAccessKey,C=e.awsSecretKey,T=e.awsToken,N=e.vaultEndpoint,E=e.vaultEngine,A=e.vaultNamespace,_=e.vaultPrefix,I=e.vaultAppRoleEngine,M=e.vaultId,z=e.vaultSecret,D=e.vaultRetry,L=e.vaultPing,F=e.azureEndpoint,R=e.azureTenantID,P=e.azureClientID,B=e.azureClientSecret,U=e.gcpProjectID,G=e.gcpEndpoint,K=e.gcpClientEmail,W=e.gcpClientID,V=e.gcpPrivateKeyID,H=e.gcpPrivateKey,q=e.enableCustomCertsForKES,Y=e.enableAutoCert,Q=e.enableTLS,Z=e.minioCertificates,J=e.serverCertificate,$=e.clientCertificate,X=e.vaultCertificate,ee=e.vaultCA,te=e.gemaltoCA,ae=e.kesSecurityContext,ne=e.replicas,ce=Object(n.useState)({}),ie=Object(m.a)(ce,2),re=ie[0],oe=ie[1],se=!1;Q&&(Y||Z&&Z.filter((function(e){return e.encoded_key&&e.encoded_cert})).length>0)&&(se=!0);var le=Object(n.useCallback)((function(e,t){a("encryption",e,t)}),[a]),de=function(e){oe(wj(re,e))};return Object(n.useEffect)((function(){var e=[];d&&(e=[].concat(Object(Kt.a)(e),[{fieldKey:"replicas",required:!0,value:ne,customValidation:parseInt(ne)<1,customValidationMessage:"Replicas needs to be 1 or greater"},{fieldKey:"kes_securityContext_runAsUser",required:!0,value:ae.runAsUser,customValidation:""===ae.runAsUser||parseInt(ae.runAsUser)<0,customValidationMessage:"runAsUser must be present and be 0 or more"},{fieldKey:"kes_securityContext_runAsGroup",required:!0,value:ae.runAsGroup,customValidation:""===ae.runAsGroup||parseInt(ae.runAsGroup)<0,customValidationMessage:"runAsGroup must be present and be 0 or more"},{fieldKey:"kes_securityContext_fsGroup",required:!0,value:ae.fsGroup,customValidation:""===ae.fsGroup||parseInt(ae.fsGroup)<0,customValidationMessage:"fsGroup must be present and be 0 or more"}]),u&&(e=[].concat(Object(Kt.a)(e),[{fieldKey:"serverKey",required:!Y,value:J.encoded_key},{fieldKey:"serverCert",required:!Y,value:J.encoded_cert},{fieldKey:"clientKey",required:!Y,value:$.encoded_key},{fieldKey:"clientCert",required:!Y,value:$.encoded_cert}])),"vault"===b&&(e=[].concat(Object(Kt.a)(e),[{fieldKey:"vault_endpoint",required:!0,value:N},{fieldKey:"vault_id",required:!0,value:M},{fieldKey:"vault_secret",required:!0,value:z},{fieldKey:"vault_ping",required:!1,value:L,customValidation:parseInt(L)<0,customValidationMessage:"Value needs to be 0 or greater"},{fieldKey:"vault_retry",required:!1,value:D,customValidation:parseInt(D)<0,customValidationMessage:"Value needs to be 0 or greater"}])),"aws"===b&&(e=[].concat(Object(Kt.a)(e),[{fieldKey:"aws_endpoint",required:!0,value:f},{fieldKey:"aws_region",required:!0,value:v},{fieldKey:"aws_accessKey",required:!0,value:S},{fieldKey:"aws_secretKey",required:!0,value:C}])),"gemalto"===b&&(e=[].concat(Object(Kt.a)(e),[{fieldKey:"gemalto_endpoint",required:!0,value:j},{fieldKey:"gemalto_token",required:!0,value:h},{fieldKey:"gemalto_domain",required:!0,value:O},{fieldKey:"gemalto_retry",required:!1,value:g,customValidation:parseInt(g)<0,customValidationMessage:"Value needs to be 0 or greater"}])),"azure"===b&&(e=[].concat(Object(Kt.a)(e),[{fieldKey:"azure_endpoint",required:!0,value:F},{fieldKey:"azure_tenant_id",required:!0,value:R},{fieldKey:"azure_client_id",required:!0,value:P},{fieldKey:"azure_client_secret",required:!0,value:B}])));var t=kj(e);c("encryption",0===Object.keys(t).length),oe(t)}),[d,b,N,E,M,z,L,D,f,v,C,S,j,h,O,g,U,G,K,W,V,H,F,R,P,B,c,Y,u,J.encoded_key,J.encoded_cert,$.encoded_key,$.encoded_cert,ae,ne]),Object(We.jsxs)(x.a,{className:t.paperWrapper,children:[Object(We.jsxs)("div",{className:t.headerElement,children:[Object(We.jsx)("h3",{className:t.h3Section,children:"Encryption"}),Object(We.jsx)("span",{className:t.descriptionText,children:"How would you like to encrypt the information at rest."})]}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ac,{value:"enableEncryption",id:"enableEncryption",name:"enableEncryption",checked:d,onChange:function(e){var t=e.target.checked;le("enableEncryption",t)},label:"Enable Server Side Encryption",disabled:!se})}),d&&Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)($n,{currentSelection:b,id:"encryptionType",name:"encryptionType",label:"Encryption Options",onChange:function(e){le("encryptionType",e.target.value)},selectorOptions:[{label:"Vault",value:"vault"},{label:"AWS",value:"aws"},{label:"Gemalto",value:"gemalto"},{label:"GCP",value:"gcp"},{label:"Azure",value:"azure"}]})}),"vault"===b&&Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ac,{value:"enableCustomCertsForKES",id:"enableCustomCertsForKES",name:"enableCustomCertsForKES",checked:q||!Y,onChange:function(e){var t=e.target.checked;le("enableCustomCertsForKES",t)},label:"Custom Certificates",disabled:!Y})}),(q||!Y)&&Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(w.a,{variant:"overline",display:"block",gutterBottom:!0,children:"Encryption Service Certificates"})}),Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsx)(k.a,{item:!0,xs:6,children:Object(We.jsx)(jb,{onChange:function(e,t){i("key",t,e),de("serverKey")},accept:".key,.pem",id:"serverKey",name:"serverKey",label:"Key",error:re.serverKey||"",value:J.key,required:!Y})}),Object(We.jsx)(k.a,{item:!0,xs:6,children:Object(We.jsx)(jb,{onChange:function(e,t){i("cert",t,e),de("serverCert")},accept:".cer,.crt,.cert,.pem",id:"serverCert",name:"serverCert",label:"Cert",error:re.serverCert||"",value:J.cert,required:!Y})})]}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(w.a,{variant:"overline",display:"block",gutterBottom:!0,children:"Mutual TLS authentication"})}),Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsx)(k.a,{item:!0,xs:6,children:Object(We.jsx)(jb,{onChange:function(e,t){r("key",t,e),de("clientKey")},accept:".key,.pem",id:"clientKey",name:"clientKey",label:"Key",error:re.clientKey||"",value:$.key,required:!Y})}),Object(We.jsx)(k.a,{item:!0,xs:6,children:Object(We.jsx)(jb,{onChange:function(e,t){r("cert",t,e),de("clientCert")},accept:".cer,.crt,.cert,.pem",id:"clientCert",name:"clientCert",label:"Cert",error:re.clientCert||"",value:$.cert,required:!Y})})]})]}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"vault_endpoint",name:"vault_endpoint",onChange:function(e){le("vaultEndpoint",e.target.value),de("vault_endpoint")},label:"Endpoint",value:N,error:re.vault_endpoint||"",required:!0})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"vault_engine",name:"vault_engine",onChange:function(e){le("vaultEngine",e.target.value),de("vault_engine")},label:"Engine",value:E})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"vault_namespace",name:"vault_namespace",onChange:function(e){le("vaultNamespace",e.target.value)},label:"Namespace",value:A})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"vault_prefix",name:"vault_prefix",onChange:function(e){le("vaultPrefix",e.target.value)},label:"Prefix",value:_})}),Object(We.jsx)("h5",{children:"App Role"}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"vault_approle_engine",name:"vault_approle_engine",onChange:function(e){le("vaultAppRoleEngine",e.target.value)},label:"Engine",value:I})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"vault_id",name:"vault_id",onChange:function(e){le("vaultId",e.target.value),de("vault_id")},label:"AppRole ID",value:M,error:re.vault_id||"",required:!0})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"vault_secret",name:"vault_secret",onChange:function(e){le("vaultSecret",e.target.value),de("vault_secret")},label:"AppRole Secret",value:z,error:re.vault_secret||"",required:!0})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{type:"number",min:"0",id:"vault_retry",name:"vault_retry",onChange:function(e){le("vaultRetry",e.target.value),de("vault_retry")},label:"Retry (Seconds)",value:D,error:re.vault_retry||""})}),Object(We.jsx)("h5",{children:"Mutual TLS authentication (optional)"}),Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsx)(k.a,{item:!0,xs:6,children:Object(We.jsx)(jb,{onChange:function(e,t){o("key",t,e),de("vault_key")},accept:".key,.pem",id:"vault_key",name:"vault_key",label:"Key",value:X.key})}),Object(We.jsx)(k.a,{item:!0,xs:6,children:Object(We.jsx)(jb,{onChange:function(e,t){o("cert",t,e),de("vault_cert")},accept:".cer,.crt,.cert,.pem",id:"vault_cert",name:"vault_cert",label:"Cert",value:X.cert})})]}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(jb,{onChange:function(e,t){s(t,e),de("vault_ca")},accept:".cer,.crt,.cert,.pem",id:"vault_ca",name:"vault_ca",label:"CA",value:ee.cert})}),Object(We.jsx)("h5",{children:"Status"}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{type:"number",min:"0",id:"vault_ping",name:"vault_ping",onChange:function(e){le("vaultPing",e.target.value),de("vault_ping")},label:"Ping (Seconds)",value:L,error:re.vault_ping||""})})]}),"azure"===b&&Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"azure_endpoint",name:"azure_endpoint",onChange:function(e){le("azureEndpoint",e.target.value),de("azure_endpoint")},label:"Endpoint",value:F,error:re.azure_endpoint||""})}),Object(We.jsx)("h5",{children:"Credentials"}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"azure_tenant_id",name:"azure_tenant_id",onChange:function(e){le("azureTenantID",e.target.value),de("azure_tenant_id")},label:"Tenant ID",value:R,error:re.azure_tenant_id||""})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"azure_client_id",name:"azure_client_id",onChange:function(e){le("azureClientID",e.target.value),de("azure_client_id")},label:"Client ID",value:P,error:re.azure_client_id||""})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"azure_client_secret",name:"azure_client_secret",onChange:function(e){le("azureClientSecret",e.target.value),de("azure_client_secret")},label:"Client Secret",value:B,error:re.azure_client_secret||""})})]}),"gcp"===b&&Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"gcp_project_id",name:"gcp_project_id",onChange:function(e){le("gcpProjectID",e.target.value)},label:"Project ID",value:U})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"gcp_endpoint",name:"gcp_endpoint",onChange:function(e){le("gcpEndpoint",e.target.value)},label:"Endpoint",value:G})}),Object(We.jsx)("h5",{children:"Credentials"}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"gcp_client_email",name:"gcp_client_email",onChange:function(e){le("gcpClientEmail",e.target.value)},label:"Client Email",value:K})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"gcp_client_id",name:"gcp_client_id",onChange:function(e){le("gcpClientID",e.target.value)},label:"Client ID",value:W})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"gcp_private_key_id",name:"gcp_private_key_id",onChange:function(e){le("gcpPrivateKeyID",e.target.value)},label:"Private Key ID",value:V})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"gcp_private_key",name:"gcp_private_key",onChange:function(e){le("gcpPrivateKey",e.target.value)},label:"Private Key",value:H})})]}),"aws"===b&&Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"aws_endpoint",name:"aws_endpoint",onChange:function(e){le("awsEndpoint",e.target.value),de("aws_endpoint")},label:"Endpoint",value:f,error:re.aws_endpoint||"",required:!0})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"aws_region",name:"aws_region",onChange:function(e){le("awsRegion",e.target.value),de("aws_region")},label:"Region",value:v,error:re.aws_region||"",required:!0})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"aws_kmsKey",name:"aws_kmsKey",onChange:function(e){le("awsKMSKey",e.target.value)},label:"KMS Key",value:y})}),Object(We.jsx)("h5",{children:"Credentials"}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"aws_accessKey",name:"aws_accessKey",onChange:function(e){le("awsAccessKey",e.target.value),de("aws_accessKey")},label:"Access Key",value:S,error:re.aws_accessKey||"",required:!0})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"aws_secretKey",name:"aws_secretKey",onChange:function(e){le("awsSecretKey",e.target.value),de("aws_secretKey")},label:"Secret Key",value:C,error:re.aws_secretKey||"",required:!0})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"aws_token",name:"aws_token",onChange:function(e){le("awsToken",e.target.value)},label:"Token",value:T})})]}),"gemalto"===b&&Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"gemalto_endpoint",name:"gemalto_endpoint",onChange:function(e){le("gemaltoEndpoint",e.target.value),de("gemalto_endpoint")},label:"Endpoint",value:j,error:re.gemalto_endpoint||"",required:!0})}),Object(We.jsx)("h5",{children:"Credentials"}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"gemalto_token",name:"gemalto_token",onChange:function(e){le("gemaltoToken",e.target.value),de("gemalto_token")},label:"Token",value:h,error:re.gemalto_token||"",required:!0})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"gemalto_domain",name:"gemalto_domain",onChange:function(e){le("gemaltoDomain",e.target.value),de("gemalto_domain")},label:"Domain",value:O,error:re.gemalto_domain||"",required:!0})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{type:"number",min:"0",id:"gemalto_retry",name:"gemalto_retry",onChange:function(e){le("gemaltoRetry",e.target.value),de("gemalto_retry")},label:"Retry (seconds)",value:g,error:re.gemalto_retry||""})}),Object(We.jsx)("h5",{children:"Custom CA Root certificate verification"}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(jb,{onChange:function(e,t){l(t,e),de("gemalto_ca")},accept:".cer,.crt,.cert,.pem",id:"gemalto_ca",name:"gemalto_ca",label:"CA",value:te.cert})})]}),Object(We.jsx)("div",{className:t.headerElement,children:Object(We.jsx)("h3",{className:t.h3Section,children:"Additional Configurations"})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{type:"number",min:"1",id:"replicas",name:"replicas",onChange:function(e){le("replicas",e.target.value),de("replicas")},label:"Replicas",value:ne,required:!0,error:re.replicas||""})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("span",{className:t.descriptionText,children:"SecurityContext for KES pods"})}),Object(We.jsx)("br",{}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsxs)("div",{className:t.multiContainer,children:[Object(We.jsx)("div",{children:Object(We.jsx)(Pn,{type:"number",id:"kes_securityContext_runAsUser",name:"kes_securityContext_runAsUser",onChange:function(e){le("kesSecurityContext",Object(p.a)(Object(p.a)({},ae),{},{runAsUser:e.target.value})),de("kes_securityContext_runAsUser")},label:"Run As User",value:ae.runAsUser,required:!0,error:re.kes_securityContext_runAsUser||"",min:"0"})}),Object(We.jsx)("div",{children:Object(We.jsx)(Pn,{type:"number",id:"kes_securityContext_runAsGroup",name:"kes_securityContext_runAsGroup",onChange:function(e){le("kesSecurityContext",Object(p.a)(Object(p.a)({},ae),{},{runAsGroup:e.target.value})),de("kes_securityContext_runAsGroup")},label:"Run As Group",value:ae.runAsGroup,required:!0,error:re.kes_securityContext_runAsGroup||"",min:"0"})}),Object(We.jsx)("div",{children:Object(We.jsx)(Pn,{type:"number",id:"kes_securityContext_fsGroup",name:"kes_securityContext_fsGroup",onChange:function(e){le("kesSecurityContext",Object(p.a)(Object(p.a)({},ae),{},{fsGroup:e.target.value})),de("kes_securityContext_fsGroup")},label:"FsGroup",value:ae.fsGroup,required:!0,error:re.kes_securityContext_fsGroup||"",min:"0"})})]})}),Object(We.jsx)("br",{}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("div",{className:t.multiContainer,children:Object(We.jsx)(ac,{value:"kesSecurityContextRunAsNonRoot",id:"kes_securityContext_runAsNonRoot",name:"kes_securityContext_runAsNonRoot",checked:ae.runAsNonRoot,onChange:function(e){var t=e.target.checked;le("kesSecurityContext",Object(p.a)(Object(p.a)({},ae),{},{runAsNonRoot:t}))},label:"Do not run as Root"})})})]})})]})]})}))),qj=Object(o.b)((function(e){return{podAffinity:e.tenants.createTenant.fields.affinity.podAffinity,nodeSelectorLabels:e.tenants.createTenant.fields.affinity.nodeSelectorLabels,withPodAntiAffinity:e.tenants.createTenant.fields.affinity.withPodAntiAffinity}}),{setModalErrorSnackMessage:re,updateAddField:zu,isPageValid:Du}),Yj=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)({buttonContainer:{textAlign:"right"},overlayAction:{lineHeight:"50px",float:"left","& svg":{maxWidth:15,maxHeight:15}}},dt),Nt))}))(qj((function(e){var t=e.classes,a=e.podAffinity,i=e.nodeSelectorLabels,r=e.withPodAntiAffinity,o=e.setModalErrorSnackMessage,s=e.updateAddField,l=e.isPageValid,d=Object(n.useState)({}),u=Object(m.a)(d,2),b=u[0],j=u[1],h=Object(n.useState)(!0),p=Object(m.a)(h,2),O=p[0],g=p[1],f=Object(n.useState)({}),v=Object(m.a)(f,2),y=v[0],S=v[1],C=Object(n.useState)([{key:"",value:""}]),w=Object(m.a)(C,2),T=w[0],N=w[1],E=Object(n.useState)([]),A=Object(m.a)(E,2),_=A[0],I=A[1],M=Object(n.useCallback)((function(e,t){s("affinity",e,t)}),[s]);return Object(n.useEffect)((function(){O&&Ge.invoke("GET","/api/v1/nodes/labels").then((function(e){g(!1),S(e);var t=[];for(var a in e)t.push({label:a,value:a});I(t),N([{key:t[0].value,value:t[0].value}])})).catch((function(e){g(!1),o(e),S({})}))}),[o,O]),Object(n.useEffect)((function(){if(T){var e=T.filter((function(e){return""!==e.key})).map((function(e){return"".concat(e.key,"=").concat(e.value)})).filter((function(e,t,a){return a.indexOf(e)===t})).join("&");M("nodeSelectorLabels",e)}}),[T,M]),Object(n.useEffect)((function(){var e=[];if("nodeSelector"===a){var t=!0,n=i.split("&");1===n.length&&""===n[0]&&(t=!1),n.forEach((function(e,a){var c=e.split("=");2!==c.length&&(t=!1),a+1!==n.length&&(""!==c[0]&&""!==c[1]||(t=!1))})),e=[].concat(Object(Kt.a)(e),[{fieldKey:"labels",required:!0,value:i,customValidation:!t,customValidationMessage:"You need to add at least one label key-pair"}])}var c=kj(e);l("affinity",0===Object.keys(c).length),j(c)}),[l,a,i]),Object(We.jsxs)(x.a,{className:t.paperWrapper,children:[Object(We.jsxs)("div",{className:t.headerElement,children:[Object(We.jsx)("h3",{className:t.h3Section,children:"Pod Placement"}),Object(We.jsx)("span",{className:t.descriptionText,children:"Configure how pods will be assigned to nodes"})]}),Object(We.jsxs)(k.a,{item:!0,xs:12,children:[Object(We.jsx)($n,{currentSelection:a,id:"affinity-options",name:"affinity-options",label:"Type",onChange:function(e){M("podAffinity",e.target.value)},selectorOptions:[{label:"None",value:"none"},{label:"Default (Pod Anti-Affinnity)",value:"default"},{label:"Node Selector",value:"nodeSelector"}]}),"MinIO supports multiple configurations for Pod Affinity"]}),"nodeSelector"===a&&Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)("br",{}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ac,{value:"with_pod_anti_affinity",id:"with_pod_anti_affinity",name:"with_pod_anti_affinity",checked:r,onChange:function(e){var t=e.target.checked;M("withPodAntiAffinity",t)},label:"With Pod Anti-Affinity"})}),Object(We.jsxs)(k.a,{item:!0,xs:12,children:[Object(We.jsx)("h3",{children:"Labels"}),Object(We.jsx)("span",{className:t.error,children:b.labels}),Object(We.jsx)(k.a,{container:!0,children:T&&T.map((function(e,a){return Object(We.jsxs)(c.a.Fragment,{children:[Object(We.jsxs)(k.a,{item:!0,xs:5,children:[_.length>0&&Object(We.jsx)(Vn,{onChange:function(e){var t=e.target.value,n=Object.assign([],T);n[a].key=e.target.value,n[a].value=y[t][0],N(n)},id:"select-access-policy",name:"select-access-policy",label:"",value:e.key,options:_}),0===_.length&&Object(We.jsx)(Pn,{id:"nodeselector-key-".concat(a.toString()),label:"",name:"nodeselector-".concat(a.toString()),value:e.key,onChange:function(e){var t=Object.assign([],T);t[a].key=e.target.value,N(t)},index:a,placeholder:"Key"})]}),Object(We.jsxs)(k.a,{item:!0,xs:5,children:[_.length>0&&Object(We.jsx)(Vn,{onChange:function(e){var t=Object.assign([],T);t[a].value=e.target.value,N(t)},id:"select-access-policy",name:"select-access-policy",label:"",value:e.value,options:y[e.key]?y[e.key].map((function(e){return{label:e,value:e}})):[]}),0===_.length&&Object(We.jsx)(Pn,{id:"nodeselector-value-".concat(a.toString()),label:"",name:"nodeselector-".concat(a.toString()),value:e.value,onChange:function(e){var t=Object.assign([],T);t[a].value=e.target.value,N(t)},index:a,placeholder:"value"})]}),Object(We.jsxs)(k.a,{item:!0,xs:2,children:[Object(We.jsx)("div",{className:t.overlayAction,children:Object(We.jsx)(kn.a,{size:"small",onClick:function(){var e=Object.assign([],T);_.length>0?e.push({key:_[0].value,value:y[_[0].value][0]}):e.push({key:"",value:""}),N(e)},children:Object(We.jsx)(ba,{})})}),T.length>1&&Object(We.jsx)("div",{className:t.overlayAction,children:Object(We.jsx)(kn.a,{size:"small",onClick:function(){var e=T.filter((function(e,t){return t!==a}));N(e)},children:Object(We.jsx)(ma,{})})})]})]})}))})]})]})]})}))),Qj=Object(o.b)((function(e){return{storageClasses:e.tenants.createTenant.storageClasses,customImage:e.tenants.createTenant.fields.configure.customImage,imageName:e.tenants.createTenant.fields.configure.imageName,customDockerhub:e.tenants.createTenant.fields.configure.customDockerhub,imageRegistry:e.tenants.createTenant.fields.configure.imageRegistry,imageRegistryUsername:e.tenants.createTenant.fields.configure.imageRegistryUsername,imageRegistryPassword:e.tenants.createTenant.fields.configure.imageRegistryPassword,exposeMinIO:e.tenants.createTenant.fields.configure.exposeMinIO,exposeConsole:e.tenants.createTenant.fields.configure.exposeConsole,prometheusCustom:e.tenants.createTenant.fields.configure.prometheusCustom,tenantCustom:e.tenants.createTenant.fields.configure.tenantCustom,logSearchCustom:e.tenants.createTenant.fields.configure.logSearchCustom,logSearchVolumeSize:e.tenants.createTenant.fields.configure.logSearchVolumeSize,logSearchSizeFactor:e.tenants.createTenant.fields.configure.logSearchSizeFactor,prometheusVolumeSize:e.tenants.createTenant.fields.configure.prometheusVolumeSize,prometheusSizeFactor:e.tenants.createTenant.fields.configure.prometheusSizeFactor,logSearchSelectedStorageClass:e.tenants.createTenant.fields.configure.logSearchSelectedStorageClass,logSearchImage:e.tenants.createTenant.fields.configure.logSearchImage,kesImage:e.tenants.createTenant.fields.configure.kesImage,logSearchPostgresImage:e.tenants.createTenant.fields.configure.logSearchPostgresImage,logSearchPostgresInitImage:e.tenants.createTenant.fields.configure.logSearchPostgresInitImage,prometheusSelectedStorageClass:e.tenants.createTenant.fields.configure.prometheusSelectedStorageClass,prometheusImage:e.tenants.createTenant.fields.configure.prometheusImage,prometheusSidecarImage:e.tenants.createTenant.fields.configure.prometheusSidecarImage,prometheusInitImage:e.tenants.createTenant.fields.configure.prometheusInitImage,selectedStorageClass:e.tenants.createTenant.fields.nameTenant.selectedStorageClass}}),{updateAddField:zu,isPageValid:Du}),Zj=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)({buttonContainer:{textAlign:"right"}},dt),Nt))}))(Qj((function(e){var t=e.classes,a=e.storageClasses,c=e.customImage,i=e.imageName,r=e.customDockerhub,o=e.imageRegistry,s=e.imageRegistryUsername,l=e.imageRegistryPassword,d=(e.exposeMinIO,e.exposeConsole,e.prometheusCustom),u=e.tenantCustom,b=e.logSearchCustom,j=e.logSearchVolumeSize,h=(e.logSearchSizeFactor,e.logSearchImage),p=e.kesImage,O=e.logSearchPostgresImage,g=e.logSearchPostgresInitImage,f=e.prometheusVolumeSize,v=(e.prometheusSizeFactor,e.logSearchSelectedStorageClass),y=e.prometheusSelectedStorageClass,S=e.prometheusImage,C=e.prometheusSidecarImage,w=e.prometheusInitImage,T=e.updateAddField,N=e.isPageValid,E=e.selectedStorageClass,A=Object(n.useState)({}),_=Object(m.a)(A,2),I=_[0],M=_[1],z=Object(n.useCallback)((function(e,t){T("configure",e,t)}),[T]);Object(n.useEffect)((function(){var e=[];d&&(e=[].concat(Object(Kt.a)(e),[{fieldKey:"prometheus_storage_class",required:!0,value:y,customValidation:""===y,customValidationMessage:"Field cannot be empty"},{fieldKey:"prometheus_volume_size",required:!0,value:f,customValidation:""===f||parseInt(f)<=0,customValidationMessage:"Volume size must be present and be greatter than 0"}])),b&&(e=[].concat(Object(Kt.a)(e),[{fieldKey:"log_search_storage_class",required:!0,value:v,customValidation:""===v,customValidationMessage:"Field cannot be empty"},{fieldKey:"log_search_volume_size",required:!0,value:j,customValidation:""===j||parseInt(j)<=0,customValidationMessage:"Volume size must be present and be greatter than 0"}])),c&&(e=[].concat(Object(Kt.a)(e),[{fieldKey:"image",required:!1,value:i,pattern:/^((.*?)\/(.*?):(.+))$/,customPatternMessage:"Format must be of form: 'minio/minio:VERSION'"},{fieldKey:"logSearchImage",required:!1,value:h,pattern:/^((.*?)\/(.*?):(.+))$/,customPatternMessage:"Format must be of form: 'minio/logsearchapi:VERSION'"},{fieldKey:"kesImage",required:!1,value:p,pattern:/^((.*?)\/(.*?):(.+))$/,customPatternMessage:"Format must be of form: 'minio/kes:VERSION'"},{fieldKey:"logSearchPostgresImage",required:!1,value:O,pattern:/^((.*?)\/(.*?):(.+))$/,customPatternMessage:"Format must be of form: 'library/postgres:VERSION'"},{fieldKey:"logSearchPostgresInitImage",required:!1,value:g,pattern:/^((.*?)\/(.*?):(.+))$/,customPatternMessage:"Format must be of form: 'library/busybox:VERSION'"},{fieldKey:"prometheusImage",required:!1,value:S,pattern:/^((.*?)\/(.*?):(.+))$/,customPatternMessage:"Format must be of form: 'minio/prometheus:VERSION'"},{fieldKey:"prometheusSidecarImage",required:!1,value:C,pattern:/^((.*?)\/(.*?):(.+))$/,customPatternMessage:"Format must be of form: 'project/container:VERSION'"},{fieldKey:"prometheusInitImage",required:!1,value:w,pattern:/^((.*?)\/(.*?):(.+))$/,customPatternMessage:"Format must be of form: 'library/busybox:VERSION'"}]),r&&(e=[].concat(Object(Kt.a)(e),[{fieldKey:"registry",required:!0,value:o},{fieldKey:"registryUsername",required:!0,value:s},{fieldKey:"registryPassword",required:!0,value:l}])));var t=kj(e);N("configure",0===Object.keys(t).length),M(t)}),[c,i,h,p,O,g,S,C,w,r,o,s,l,N,d,u,b,y,f,v,j]),Object(n.useEffect)((function(){a.length>0&&(0===a.filter((function(e){return e.value===y})).length&&z("prometheusSelectedStorageClass",E),0===a.filter((function(e){return e.value===v})).length&&z("logSearchSelectedStorageClass",E))}),[v,y,E,a,z]);var D=function(e){M(wj(I,e))};return Object(We.jsxs)(x.a,{className:t.paperWrapper,children:[Object(We.jsxs)("div",{className:t.headerElement,children:[Object(We.jsx)("h3",{className:t.h3Section,children:"Container Images"}),Object(We.jsx)("span",{className:t.descriptionText,children:"Images used by the Tenant Deployment"})]}),Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"image",name:"image",onChange:function(e){z("imageName",e.target.value),D("image")},label:"MinIO's Image",value:i,error:I.image||"",placeholder:"E.g. minio/minio:RELEASE.2021-08-20T18-32-01Z"})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"logSearchImage",name:"logSearchImage",onChange:function(e){z("logSearchImage",e.target.value),D("logSearchImage")},label:"Log Search API's Image",value:h,error:I.logSearchImage||"",placeholder:"E.g. minio/logsearchapi:v4.1.1"})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"kesImage",name:"kesImage",onChange:function(e){z("kesImage",e.target.value),D("kesImage")},label:"KES Image",value:p,error:I.kesImage||"",placeholder:"E.g. minio/kes:v0.14.0"})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"logSearchPostgresImage",name:"logSearchPostgresImage",onChange:function(e){z("logSearchPostgresImage",e.target.value),D("logSearchPostgresImage")},label:"Log Search Postgres's Image",value:O,error:I.logSearchPostgresImage||"",placeholder:"E.g. library/postgres:13"})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"logSearchPostgresInitImage",name:"logSearchPostgresInitImage",onChange:function(e){z("logSearchPostgresInitImage",e.target.value),D("logSearchPostgresInitImage")},label:"Log Search Postgres's Init Image",value:g,error:I.logSearchPostgresInitImage||"",placeholder:"E.g. library/busybox:1.33.1"})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"prometheusImage",name:"prometheusImage",onChange:function(e){z("prometheusImage",e.target.value),D("prometheusImage")},label:"Prometheus Image",value:S,error:I.prometheusImage||"",placeholder:"E.g. quay.io/prometheus/prometheus:latest"})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"prometheusSidecarImage",name:"prometheusSidecarImage",onChange:function(e){z("prometheusSidecarImage",e.target.value),D("prometheusSidecarImage")},label:"Prometheus Sidecar Image",value:C,error:I.prometheusSidecarImage||"",placeholder:"E.g. quay.io/prometheus/prometheus:latest"})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"prometheusInitImage",name:"prometheusInitImage",onChange:function(e){z("prometheusInitImage",e.target.value),D("prometheusInitImage")},label:"Prometheus Init Image",value:w,error:I.prometheusInitImage||"",placeholder:"E.g. quay.io/prometheus/prometheus:latest"})})]}),c&&Object(We.jsx)(n.Fragment,{children:Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ac,{value:"custom_docker_hub",id:"custom_docker_hub",name:"custom_docker_hub",checked:r,onChange:function(e){var t=e.target.checked;z("customDockerhub",t)},label:"Set/Update Image Registry"})})}),r&&Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"registry",name:"registry",onChange:function(e){z("imageRegistry",e.target.value)},label:"Endpoint",value:o,error:I.registry||"",placeholder:"E.g. https://index.docker.io/v1/",required:!0})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"registryUsername",name:"registryUsername",onChange:function(e){z("imageRegistryUsername",e.target.value)},label:"Username",value:s,error:I.registryUsername||"",required:!0})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"registryPassword",name:"registryPassword",onChange:function(e){z("imageRegistryPassword",e.target.value)},label:"Password",value:l,error:I.registryPassword||"",required:!0})})]})]})}))),Jj=Object(o.b)((function(e){return{namespace:e.tenants.createTenant.fields.nameTenant.namespace,validPages:e.tenants.createTenant.validPages,fields:e.tenants.createTenant.fields,certificates:e.tenants.createTenant.certificates,selectedStorageClass:e.tenants.createTenant.fields.nameTenant.selectedStorageClass}}),{setErrorSnackMessage:ce,updateAddField:zu,resetAddTenantForm:function(){return{type:ju}}}),$j=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)(Object(p.a)({buttonContainer:{textAlign:"right"}},dt),Nt),vt))}))(Jj((function(e){e.classes;var t=e.fields,a=e.certificates,c=e.selectedStorageClass,i=e.namespace,r=e.validPages,o=e.setErrorSnackMessage,s=e.resetAddTenantForm,l=Object(n.useState)(!1),d=Object(m.a)(l,2),u=d[0],b=d[1],j=Object(n.useState)(null),g=Object(m.a)(j,2),x=g[0],f=g[1],v=Object(n.useState)(!1),y=Object(m.a)(v,2),S=y[0],C=y[1];Object(n.useEffect)((function(){var e=t.nameTenant.tenantName,n=t.nameTenant.selectedStorageClass,c=t.configure.imageName,r=t.configure.customDockerhub,s=t.configure.imageRegistry,l=t.configure.imageRegistryUsername,d=t.configure.imageRegistryPassword,u=t.configure.exposeMinIO,j=t.configure.exposeConsole,h=t.identityProvider.idpSelection,m=t.identityProvider.openIDConfigurationURL,O=t.identityProvider.openIDClientID,g=t.identityProvider.openIDClaimName,x=t.identityProvider.openIDCallbackURL,v=t.identityProvider.openIDScopes,y=t.identityProvider.openIDSecretID,k=t.identityProvider.ADURL,w=t.identityProvider.ADSkipTLS,T=t.identityProvider.ADServerInsecure,N=t.identityProvider.ADUserNameSearchFilter,E=t.identityProvider.ADGroupSearchBaseDN,A=t.identityProvider.ADGroupSearchFilter,_=t.identityProvider.ADGroupNameAttribute,I=t.identityProvider.ADUserDNs,M=t.identityProvider.ADUserNameFormat,z=t.identityProvider.ADLookupBindDN,D=t.identityProvider.ADLookupBindPassword,L=t.identityProvider.ADUserDNSearchBaseDN,F=t.identityProvider.ADUserDNSearchFilter,R=t.identityProvider.ADServerStartTLS,P=t.identityProvider.accessKeys,B=t.identityProvider.secretKeys,U=a.minioCertificates,G=a.caCertificates,K=a.consoleCaCertificates,W=a.consoleCertificate,V=a.serverCertificate,H=a.clientCertificate,q=a.vaultCertificate,Y=a.vaultCA,Q=a.gemaltoCA,Z=t.encryption.enableEncryption,J=t.encryption.encryptionType,$=t.encryption.gemaltoEndpoint,X=t.encryption.gemaltoToken,ee=t.encryption.gemaltoDomain,te=t.encryption.gemaltoRetry,ae=t.encryption.awsEndpoint,ne=t.encryption.awsRegion,ce=t.encryption.awsKMSKey,ie=t.encryption.awsAccessKey,re=t.encryption.awsSecretKey,oe=t.encryption.awsToken,se=t.encryption.vaultEndpoint,le=t.encryption.vaultEngine,de=t.encryption.vaultNamespace,ue=t.encryption.vaultPrefix,je=t.encryption.vaultAppRoleEngine,he=t.encryption.vaultId,me=t.encryption.vaultSecret,pe=t.encryption.vaultRetry,Oe=t.encryption.vaultPing,ge=t.encryption.azureEndpoint,xe=t.encryption.azureTenantID,fe=t.encryption.azureClientID,ve=t.encryption.azureClientSecret,ye=t.encryption.gcpProjectID,Se=t.encryption.gcpEndpoint,Ce=t.encryption.gcpClientEmail,ke=t.encryption.gcpClientID,we=t.encryption.gcpPrivateKeyID,Te=t.encryption.gcpPrivateKey,Ne=t.security.enableAutoCert,Ee=t.security.enableTLS,Ae=t.tenantSize.ecParity,_e=t.tenantSize.distribution,Me=t.tenantSize.memorySize,ze=t.configure.tenantCustom,De=t.configure.logSearchCustom,Le=t.configure.prometheusCustom,Fe=t.configure.logSearchVolumeSize,Re=t.configure.logSearchSelectedStorageClass,Pe=t.configure.logSearchImage,Be=t.configure.kesImage,Ue=t.configure.logSearchPostgresImage,Ke=t.configure.logSearchPostgresInitImage,We=t.configure.prometheusImage,Ve=t.configure.prometheusSidecarImage,He=t.configure.prometheusInitImage,qe=t.configure.prometheusSelectedStorageClass,Ye=t.configure.prometheusVolumeSize,Qe=t.affinity.podAffinity,Ze=t.affinity.nodeSelectorLabels,Je=t.affinity.withPodAntiAffinity,$e=t.configure.tenantSecurityContext,Xe=t.configure.logSearchSecurityContext,et=t.configure.logSearchPostgresSecurityContext,tt=t.configure.prometheusSecurityContext,at=t.encryption.kesSecurityContext,nt=t.encryption.replicas;if(S){var ct=Ie([]),it={};switch(Qe){case"default":it={affinity:Zu(e,ct)};break;case"nodeSelector":it={affinity:Ju(Ze,Je,e,ct)}}var rt=Ae.split(":")[1],ot={name:e,namespace:i,access_key:"",secret_key:"",access_keys:[],secret_keys:[],enable_tls:Ee&&Ne,enable_console:!0,enable_prometheus:!0,service_name:"",image:c,expose_minio:u,expose_console:j,pools:[Object(p.a)({name:ct,servers:_e.nodes,volumes_per_server:_e.disks,volume_configuration:{size:_e.pvSize,storage_class_name:n},resources:{requests:{memory:Me.request},limits:{memory:Me.limit}},securityContext:ze?$e:null},it)],erasureCodingParity:parseInt(rt,10)};r&&(ot=Object(p.a)(Object(p.a)({},ot),{},{image_registry:{registry:s,username:l,password:d}})),ot=De?Object(p.a)(Object(p.a)({},ot),{},{logSearchConfiguration:{storageClass:Re,storageSize:parseInt(Fe),image:Pe,postgres_image:Ue,postgres_init_image:Ke,securityContext:Xe,postgres_securityContext:et}}):Object(p.a)(Object(p.a)({},ot),{},{logSearchConfiguration:{image:Pe,postgres_image:Ue,postgres_init_image:Ke}}),ot=Le?Object(p.a)(Object(p.a)({},ot),{},{prometheusConfiguration:{storageClass:qe,storageSize:parseInt(Ye),image:We,sidecar_image:Ve,init_image:He,securityContext:tt}}):Object(p.a)(Object(p.a)({},ot),{},{prometheusConfiguration:{image:We,sidecar_image:Ve,init_image:He}});var st=null,lt=null,dt=null,ut=null;if(G.length>0&&(dt={ca_certificates:G.map((function(e){return e.encoded_cert})).filter((function(e){return e}))}),K.length>0&&(ut={console_ca_certificates:K.map((function(e){return e.encoded_cert})).filter((function(e){return e}))}),Ee&&U.length>0&&(st={minio:U.map((function(e){return{crt:e.encoded_cert,key:e.encoded_key}})).filter((function(e){return e.crt&&e.key}))}),Ee&&""!==W.encoded_cert&&""!==W.encoded_key&&(lt={console:{crt:W.encoded_cert,key:W.encoded_key}}),(st||lt||dt||ut)&&(ot=Object(p.a)(Object(p.a)({},ot),{},{tls:Object(p.a)(Object(p.a)(Object(p.a)(Object(p.a)({},st),lt),dt),ut)})),Z){var bt={};switch(J){case"gemalto":var jt={};""!==Q.encoded_cert&&(jt={ca:Q.encoded_cert}),bt={gemalto:{keysecure:{endpoint:$,credentials:{token:X,domain:ee,retry:parseInt(te)},tls:Object(p.a)({},jt)}}};break;case"aws":bt={aws:{secretsmanager:{endpoint:ae,region:ne,kmskey:ce,credentials:{accesskey:ie,secretkey:re,token:oe}}}};break;case"azure":bt={azure:{keyvault:{endpoint:ge,credentials:{tenant_id:xe,client_id:fe,client_secret:ve}}}};break;case"gcp":bt={gcp:{secretmanager:{project_id:ye,endpoint:Se,credentials:{client_email:Ce,client_id:ke,private_key_id:we,private_key:Te}}}};break;case"vault":var ht=null,mt=null;""!==q.encoded_key&&""!==q.encoded_cert&&(ht={key:q.encoded_key,crt:q.encoded_cert}),""!==Y.encoded_cert&&(mt={ca:Y.encoded_cert});var pt=null;(ht||Y)&&(pt={tls:Object(p.a)(Object(p.a)({},ht),mt)}),bt={vault:Object(p.a)(Object(p.a)({endpoint:se,engine:le,namespace:de,prefix:ue,approle:{engine:je,id:he,secret:me,retry:parseInt(pe)}},pt),{},{status:{ping:parseInt(Oe)}})}}var Ot={},gt={};""!==H.encoded_key&&""!==H.encoded_cert&&(gt={client:{key:H.encoded_key,crt:H.encoded_cert}}),""!==V.encoded_key&&""!==V.encoded_cert&&(Ot={server:{key:V.encoded_key,crt:V.encoded_cert}}),ot=Object(p.a)(Object(p.a)({},ot),{},{encryption:Object(p.a)(Object(p.a)(Object(p.a)({replicas:nt,securityContext:at,image:Be},gt),Ot),bt)})}var xt={};switch(h){case"Built-in":for(var ft=[],vt=0;vt<P.length;vt++)ft.push({access_key:P[vt],secret_key:B[vt]});xt={keys:ft};break;case"OpenID":xt={oidc:{configuration_url:m,client_id:O,secret_id:y,claim_name:g,callback_url:x,scopes:v}};break;case"AD":xt={active_directory:{url:k,skip_tls_verification:w,server_insecure:T,username_format:M,username_search_filter:N,group_search_base_dn:E,group_search_filter:A,group_name_attribute:_,user_dns:I,lookup_bind_dn:z,lookup_bind_password:D,user_dn_search_base_dn:L,user_dn_search_filter:F,server_start_tls:R}}}ot=Object(p.a)(Object(p.a)({},ot),{},{idp:Object(p.a)({},xt)}),Ge.invoke("POST","/api/v1/tenants",ot).then((function(e){var t=be()(e,"console",[]),a={idp:be()(e,"externalIDP",!1),console:[]};if(t)if(Array.isArray(t)){var n=t.map((function(e){return{accessKey:e.access_key,secretKey:e.secret_key}}));a.console=n}else a={console:{accessKey:e.console.access_key,secretKey:e.console.secret_key}};C(!1),b(!0),f(a)})).catch((function(e){C(!1),o(e)}))}}),[S]);var w={label:"Cancel",type:"other",enabled:!0,action:function(){h.push("/tenants")}},T={label:"Create",type:"submit",enabled:!S&&""!==c&&["nameTenant","tenantSize","configure","affinity","identityProvider","security","encryption"].every((function(e){return r.includes(e)})),action:function(){C(!0)}},N=[{label:"Setup",componentRender:Object(We.jsx)(Lj,{}),buttons:[w,T]},{label:"Configure",advancedOnly:!0,componentRender:Object(We.jsx)(Rj,{}),buttons:[w,T]},{label:"Images",advancedOnly:!0,componentRender:Object(We.jsx)(Zj,{}),buttons:[w,T]},{label:"Pod Placement",advancedOnly:!0,componentRender:Object(We.jsx)(Yj,{}),buttons:[w,T]},{label:"Identity Provider",advancedOnly:!0,componentRender:Object(We.jsx)(Gj,{}),buttons:[w,T]},{label:"Security",advancedOnly:!0,componentRender:Object(We.jsx)(Wj,{}),buttons:[w,T]},{label:"Encryption",advancedOnly:!0,componentRender:Object(We.jsx)(Hj,{}),buttons:[w,T]}];return Object(We.jsxs)(n.Fragment,{children:[u&&Object(We.jsx)(Ol,{newServiceAccount:x,open:u,closeModal:function(){s(),h.push("/tenants")},entity:"Tenant"}),Object(We.jsx)(sc,{label:"Create New Tenant"}),Object(We.jsxs)(k.a,{container:!0,children:[S&&Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(O.a,{})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Sc,{wizardSteps:N})})]})]})}))),Xj=a(135),eh=a(373),th=a.n(eh),ah="notify_postgres",nh="notify_mysql",ch="notify_kafka",ih="notify_amqp",rh="notify_mqtt",oh="notify_redis",sh="notify_nats",lh="notify_elasticsearch",dh="notify_webhook",uh="notify_nsq",bh=[{actionTrigger:ah,targetTitle:"Postgres SQL",logo:"/postgres-logo.svg"},{actionTrigger:ch,targetTitle:"Kafka",logo:"/kafka-logo.svg"},{actionTrigger:ih,targetTitle:"AMQP",logo:"/amqp-logo.svg"},{actionTrigger:rh,targetTitle:"MQTT",logo:"/mqtt-logo.svg"},{actionTrigger:oh,targetTitle:"Redis",logo:"/redis-logo.svg"},{actionTrigger:sh,targetTitle:"NATS",logo:"/nats-logo.svg"},{actionTrigger:nh,targetTitle:"Mysql",logo:"/mysql-logo.svg"},{actionTrigger:lh,targetTitle:"Elastic Search",logo:"/elasticsearch-logo.svg"},{actionTrigger:dh,targetTitle:"Webhook",logo:"/webhooks-logo.svg"},{actionTrigger:uh,targetTitle:"NSQ",logo:"/nsq-logo.svg"}],jh=[{name:"queue-dir",label:"Queue Directory",required:!0,tooltip:"staging dir for undelivered messages e.g. '/home/events'",type:"string",placeholder:"Enter Queue Directory"},{name:"queue-limit",label:"Queue Limit",required:!1,tooltip:"maximum limit for undelivered messages, defaults to '10000'",type:"number",placeholder:"Enter Queue Limit"},{name:"comment",label:"Comment",required:!1,type:"comment",placeholder:"Enter Comment"}],hh=(aj={},Object(it.a)(aj,ch,[{name:"brokers",label:"Brokers",required:!0,tooltip:"Comma separated list of Kafka broker addresses",type:"string",placeholder:"Enter Brokers"},{name:"topic",label:"Topic",tooltip:"Kafka topic used for bucket notifications",type:"string",placeholder:"Enter Topic"},{name:"sasl_username",label:"SASL Username",tooltip:"Username for SASL/PLAIN or SASL/SCRAM authentication",type:"string",placeholder:"Enter SASL Username"},{name:"sasl_password",label:"SASL Password",tooltip:"Password for SASL/PLAIN or SASL/SCRAM authentication",type:"string",placeholder:"Enter SASL Password"},{name:"sasl_mechanism",label:"SASL Mechanism",tooltip:"SASL authentication mechanism, default 'PLAIN'",type:"string"},{name:"tls_client_auth",label:"TLS Client Auth",tooltip:"Client Auth determines the Kafka server's policy for TLS client auth",type:"string",placeholder:"Enter TLS Client Auth"},{name:"sasl",label:"SASL",tooltip:"Set to 'on' to enable SASL authentication",type:"on|off"},{name:"tls",label:"TLS",tooltip:"Set to 'on' to enable TLS",type:"on|off"},{name:"tls_skip_verify",label:"TLS skip verify",tooltip:'Trust server TLS without verification, defaults to "on" (verify)',type:"on|off"},{name:"client_tls_cert",label:"client TLS cert",tooltip:"Path to client certificate for mTLS auth",type:"path",placeholder:"Enter TLS Client Cert"},{name:"client_tls_key",label:"client TLS key",tooltip:"Path to client key for mTLS auth",type:"path",placeholder:"Enter TLS Client Key"},{name:"version",label:"Version",tooltip:"Specify the version of the Kafka cluster e.g '2.2.0'",type:"string",placeholder:"Enter Kafka Version"}].concat(jh)),Object(it.a)(aj,ih,[{name:"url",required:!0,label:"URL",tooltip:"AMQP server endpoint e.g. `amqp://myuser:mypassword@localhost:5672`",type:"url"},{name:"exchange",label:"Exchange",tooltip:"Name of the AMQP exchange",type:"string",placeholder:"Enter Exchange"},{name:"exchange_type",label:"Exchange Type",tooltip:"AMQP exchange type",type:"string",placeholder:"Enter Exchange Type"},{name:"routing_key",label:"Routing Key",tooltip:"Routing key for publishing",type:"string",placeholder:"Enter Routing Key"},{name:"mandatory",label:"Mandatory",tooltip:"Quietly ignore undelivered messages when set to 'off', default is 'on'",type:"on|off"},{name:"durable",label:"Durable",tooltip:"Persist queue across broker restarts when set to 'on', default is 'off'",type:"on|off"},{name:"no_wait",label:"No Wait",tooltip:"Non-blocking message delivery when set to 'on', default is 'off'",type:"on|off"},{name:"internal",label:"Internal",tooltip:"Set to 'on' for exchange to be not used directly by publishers, but only when bound to other exchanges",type:"on|off"},{name:"auto_deleted",label:"Auto Deleted",tooltip:"Auto delete queue when set to 'on', when there are no consumers",type:"on|off"},{name:"delivery_mode",label:"Delivery Mode",tooltip:"Set to '1' for non-persistent or '2' for persistent queue",type:"number",placeholder:"Enter Delivery Mode"}].concat(jh)),Object(it.a)(aj,oh,[{name:"address",required:!0,label:"Address",tooltip:"Redis server's address. For example: `localhost:6379`",type:"address",placeholder:"Enter Address"},{name:"key",required:!0,label:"Key",tooltip:"Redis key to store/update events, key is auto-created",type:"string",placeholder:"Enter Key"},{name:"password",label:"Password",tooltip:"Redis server password",type:"string",placeholder:"Enter Password"}].concat(jh)),Object(it.a)(aj,rh,[{name:"broker",required:!0,label:"Broker",tooltip:"MQTT server endpoint e.g. `tcp://localhost:1883`",type:"uri",placeholder:"Enter Brokers"},{name:"topic",required:!0,label:"Topic",tooltip:"name of the MQTT topic to publish",type:"string",placeholder:"Enter Topic"},{name:"username",label:"Username",tooltip:"MQTT username",type:"string",placeholder:"Enter Username"},{name:"password",label:"Password",tooltip:"MQTT password",type:"string",placeholder:"Enter Password"},{name:"qos",label:"QOS",tooltip:"Set the quality of service priority, defaults to '0'",type:"number",placeholder:"Enter QOS"},{name:"keep_alive_interval",label:"Keep Alive Interval",tooltip:"Keep-alive interval for MQTT connections in s,m,h,d",type:"duration",placeholder:"Enter Keep Alive Internal"},{name:"reconnect_interval",label:"Reconnect Interval",tooltip:"Reconnect interval for MQTT connections in s,m,h,d",type:"duration",placeholder:"Enter Reconnect Interval"}].concat(jh)),Object(it.a)(aj,sh,[{name:"address",required:!0,label:"Address",tooltip:"NATS server address e.g. '0.0.0.0:4222'",type:"address",placeholder:"Enter Address"},{name:"subject",required:!0,label:"Subject",tooltip:"NATS subscription subject",type:"string",placeholder:"Enter NATS Subject"},{name:"username",label:"Username",tooltip:"NATS username",type:"string",placeholder:"Enter NATS Username"},{name:"password",label:"Password",tooltip:"NATS password",type:"string",placeholder:"Enter NATS password"},{name:"token",label:"Token",tooltip:"NATS token",type:"string",placeholder:"Enter NATS token"},{name:"tls",label:"TLS",tooltip:"Set to 'on' to enable TLS",type:"on|off"},{name:"tls_skip_verify",label:"TLS Skip Verify",tooltip:'Trust server TLS without verification, defaults to "on" (verify)',type:"on|off"},{name:"ping_interval",label:"Ping Interval",tooltip:"Client ping commands interval in s,m,h,d. Disabled by default",type:"duration",placeholder:"Enter Ping Interval"},{name:"streaming",label:"Streaming",tooltip:"Set to 'on', to use streaming NATS server",type:"on|off"},{name:"streaming_async",label:"Streaming async",tooltip:"Set to 'on', to enable asynchronous publish",type:"on|off"},{name:"streaming_max_pub_acks_in_flight",label:"Streaming max publish ACKS in flight",tooltip:"Number of messages to publish without waiting for ACKs",type:"number",placeholder:"Enter Streaming in flight value"},{name:"streaming_cluster_id",label:"Streaming Cluster ID",tooltip:"Unique ID for NATS streaming cluster",type:"string",placeholder:"Enter Streaming Cluster ID"},{name:"cert_authority",label:"Cert Authority",tooltip:"Path to certificate chain of the target NATS server",type:"string",placeholder:"Enter Cert Authority"},{name:"client_cert",label:"Client Cert",tooltip:"Client cert for NATS mTLS auth",type:"string",placeholder:"Enter Client Cert"},{name:"client_key",label:"Client Key",tooltip:"Client cert key for NATS mTLS auth",type:"string",placeholder:"Enter Client Key"}].concat(jh)),Object(it.a)(aj,lh,[{name:"url",required:!0,label:"URL",tooltip:"Elasticsearch server's address, with optional authentication info",type:"url",placeholder:"Enter URL"},{name:"index",required:!0,label:"Index",tooltip:"Elasticsearch index to store/update events, index is auto-created",type:"string",placeholder:"Enter Index"},{name:"format",required:!0,label:"Format",tooltip:"'namespace' reflects current bucket/object list and 'access' reflects a journal of object operations, defaults to 'namespace'",type:"enum",placeholder:"Enter Format"}].concat(jh)),Object(it.a)(aj,dh,[{name:"endpoint",required:!0,label:"Endpoint",tooltip:"webhook server endpoint e.g. http://localhost:8080/minio/events",type:"url",placeholder:"Enter Endpoint"},{name:"auth_token",label:"Auth Token",tooltip:"opaque string or JWT authorization token",type:"string",placeholder:"Enter auth_token"}].concat(jh)),Object(it.a)(aj,uh,[{name:"nsqd_address",required:!0,label:"NSQD Address",tooltip:"NSQ server address e.g. '127.0.0.1:4150'",type:"address",placeholder:"Enter nsqd_address"},{name:"topic",required:!0,label:"Topic",tooltip:"NSQ topic",type:"string",placeholder:"Enter Topic"},{name:"tls",label:"TLS",tooltip:"set to 'on' to enable TLS",type:"on|off"},{name:"tls_skip_verify",label:"TLS Skip Verify",tooltip:'trust server TLS without verification, defaults to "on" (verify)',type:"on|off"}].concat(jh)),aj),mh={setErrorSnackMessage:ce},ph=Object(o.b)(null,mh),Oh=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)(Object(p.a)(Object(p.a)(Object(p.a)({},pt),Ot),vt),(e.spacing(4),{container:{position:"relative",maxWidth:1180,padding:"20px 35px 0","& h6":{color:"#777777",fontSize:30},"& p":{"& span:not(*[class*='smallUnit'])":{fontSize:16}}},sectionTitle:{padding:"0px",margin:"0px"},topSpacer:{height:"8px"}})),{},{strongText:{fontWeight:700},keyName:{marginLeft:5},iconText:{lineHeight:"24px"},twHeight:{minHeight:400},lambdaContainer:{padding:"15px 0"}},Lt(e.palette.info.main)))}))(ph((function(e){var t=e.classes,a=e.setErrorSnackMessage,c=Object(n.useState)([]),i=Object(m.a)(c,2),r=i[0],o=i[1],s=Object(n.useState)(""),l=Object(m.a)(s,2),d=l[0],u=l[1],b=Object(n.useState)(!1),j=Object(m.a)(b,2),p=j[0],g=j[1];Object(n.useEffect)((function(){if(p){Ge.invoke("GET","/api/v1/admin/notification_endpoints").then((function(e){var t=[];null!==e.notification_endpoints&&(t=e.notification_endpoints),o(t.map((function(e){return{service_name:"".concat(e.service,":").concat(e.account_id),status:e.status}}))),g(!1)})).catch((function(e){a(e),g(!1)}))}}),[p,a]),Object(n.useEffect)((function(){g(!0)}),[]);var x=r.filter((function(e){return""===d||e.service_name.indexOf(d)>=0}));return Object(We.jsx)(n.Fragment,{children:Object(We.jsxs)(k.a,{container:!0,className:t.container,children:[Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.actionsTray,children:[Object(We.jsx)(C.a,{placeholder:"Filter",className:t.searchField,id:"search-resource",label:"",onChange:function(e){u(e.target.value)},InputProps:{disableUnderline:!0,startAdornment:Object(We.jsx)(Wt.a,{position:"start",children:Object(We.jsx)(Jt,{})})},variant:"standard"}),Object(We.jsx)(mr,{color:"primary","aria-label":"Refresh List",onClick:function(){g(!0)},size:"large",children:Object(We.jsx)(Ve,{})}),Object(We.jsx)(S.a,{variant:"contained",color:"primary",startIcon:Object(We.jsx)(ba,{}),onClick:function(){h.push("/notification-endpoints/add")},children:"Add Notification Target"})]}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("br",{})}),p&&Object(We.jsx)(O.a,{}),!p&&Object(We.jsxs)(n.Fragment,{children:[r.length>0&&Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ei,{itemActions:[],columns:[{label:"Status",elementKey:"status",renderFunction:function(e){return Object(We.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[Object(We.jsx)(th.a,{style:"Offline"===e?{color:Xj.a[500]}:{}}),e]})},width:150},{label:"Service",elementKey:"service_name"}],isLoading:p,records:x,entityName:"Notification Endpoints",idField:"service_name",customPaperHeight:t.twHeight})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(wc,{title:"Notification Endpoints",iconComponent:Object(We.jsx)(tn,{}),help:Object(We.jsxs)(n.Fragment,{children:["MinIO bucket notifications allow administrators to send notifications to supported external services on certain object or bucket events. MinIO supports bucket and object-level S3 events similar to the Amazon S3 Event Notifications.",Object(We.jsx)("br",{}),Object(We.jsx)("br",{}),"You can learn more at our"," ",Object(We.jsx)("a",{href:"https://docs.min.io/minio/baremetal/monitoring/bucket-notifications/bucket-notifications.html?ref=con",target:"_blank",rel:"noreferrer",children:"documentation"}),"."]})})})]}),0===r.length&&Object(We.jsx)(k.a,{container:!0,justifyContent:"center",alignContent:"center",alignItems:"center",children:Object(We.jsx)(k.a,{item:!0,xs:8,children:Object(We.jsx)(wc,{title:"Notification Targets",iconComponent:Object(We.jsx)(tn,{}),help:Object(We.jsxs)(n.Fragment,{children:["MinIO bucket notifications allow administrators to send notifications to supported external services on certain object or bucket events. MinIO supports bucket and object-level S3 events similar to the Amazon S3 Event Notifications.",Object(We.jsx)("br",{}),Object(We.jsx)("br",{}),"To get started,"," ",Object(We.jsx)("button",{onClick:function(){h.push("/notification-endpoints/add")},className:t.link,children:"Add a Notification Target"}),"."]})})})})]})]})})}))),gh=Object(o.b)((function(e){return{session:e.console.session,distributedSetup:e.system.distributedSetup}}),{}),xh=Object(y.a)((function(e){return Object(f.a)(Object(p.a)({headerLabel:{fontSize:22,fontWeight:600,color:"#000",marginTop:4}},(e.spacing(4),{container:{position:"relative",maxWidth:1180,padding:"20px 35px 0","& h6":{color:"#777777",fontSize:30},"& p":{"& span:not(*[class*='smallUnit'])":{fontSize:16}}},sectionTitle:{padding:"0px",margin:"0px"},topSpacer:{height:"8px"}})))}))(gh((function(e){e.classes,e.session,e.distributedSetup;return Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(sc,{label:"Notification Endpoints"}),Object(We.jsx)(Oh,{})]})}))),fh=Object(y.a)((function(e){return Object(f.a)(Object(p.a)({},dt))}))((function(e){var t=e.onChange,a=e.classes,i=Object(n.useState)(!1),r=Object(m.a)(i,2),o=r[0],s=r[1],l=Object(n.useState)(""),d=Object(m.a)(l,2),u=d[0],b=d[1],j=Object(n.useState)(""),h=Object(m.a)(j,2),p=h[0],O=h[1],g=Object(n.useState)(""),x=Object(m.a)(g,2),f=x[0],v=x[1],y=Object(n.useState)(""),S=Object(m.a)(y,2),C=S[0],w=S[1],T=Object(n.useState)(""),N=Object(m.a)(T,2),E=N[0],A=N[1],_=Object(n.useState)(""),I=Object(m.a)(_,2),M=I[0],z=I[1],D=Object(n.useState)(" "),L=Object(m.a)(D,2),F=L[0],R=L[1],P=Object(n.useState)(""),B=Object(m.a)(P,2),U=B[0],G=B[1],K=Object(n.useState)("namespace"),W=Object(m.a)(K,2),V=W[0],H=W[1],q=Object(n.useState)(""),Y=Object(m.a)(q,2),Q=Y[0],Z=Y[1],J=Object(n.useState)(""),$=Object(m.a)(J,2),X=$[0],ee=$[1],te=Object(n.useState)(""),ae=Object(m.a)(te,2),ne=ae[0],ce=ae[1],ie=Object(n.useCallback)((function(){var e="";return""!==p&&(e="".concat(e," host=").concat(p)),""!==f&&(e="".concat(e," dbname=").concat(f)),""!==E&&(e="".concat(e," user=").concat(E)),""!==M&&(e="".concat(e," password=").concat(M)),""!==C&&(e="".concat(e," port=").concat(C))," "!==F&&(e="".concat(e," sslmode=").concat(F)),(e="".concat(e," ")).trim()}),[p,f,E,M,C,F]);return Object(n.useEffect)((function(){""!==u&&t([{key:"connection_string",value:u},{key:"table",value:U},{key:"format",value:V},{key:"queue_dir",value:Q},{key:"queue_limit",value:X},{key:"comment",value:ne}])}),[u,U,V,Q,X,ne,t]),Object(n.useEffect)((function(){var e=ie();b(e)}),[E,f,M,C,F,p,b,ie]),Object(n.useEffect)((function(){if(o){var e=ie();b(e)}else{var t=function(e,t){var a,n=[],c=Object(io.a)(t);try{for(c.s();!(a=c.n()).done;){var i=a.value,r=e.indexOf(i+"=");-1!==r&&n.push(r)}}catch(p){c.e(p)}finally{c.f()}n.sort((function(e,t){return e-t}));for(var o=new Map,s=new Array(n.length),l=0;l<n.length;l++){var d=l+1;d<n.length?s[l]=e.substr(n[l],n[d]-n[l]):s[l]=e.substr(n[l])}for(var u=0,b=s;u<b.length;u++){var j=b[u];if(void 0!==j){var h=j.substr(0,j.indexOf("=")),m=j.substr(j.indexOf("=")+1).trim();o.set(h,m)}}return o}(u,["host","port","dbname","user","password","sslmode"]);O(t.get("host")?t.get("host")+"":""),w(t.get("port")?t.get("port")+"":""),v(t.get("dbname")?t.get("dbname")+"":""),A(t.get("user")?t.get("user")+"":""),z(t.get("password")?t.get("password")+"":""),R(t.get("sslmode")?t.get("sslmode")+"":" ")}}),[o]),Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ac,{label:"Manually Configure String",checked:o,id:"manualString",name:"manualString",onChange:function(e){s(e.target.checked)},value:"manualString"})}),o?Object(We.jsx)(c.a.Fragment,{children:Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"connection-string",name:"connection_string",label:"Connection String",value:u,onChange:function(e){b(e.target.value)}})})}):Object(We.jsxs)(c.a.Fragment,{children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsxs)(k.a,{item:!0,xs:12,className:a.configureString,children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"host",name:"host",label:"",placeholder:"Enter Host",value:p,onChange:function(e){O(e.target.value)}})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"db-name",name:"db-name",label:"",placeholder:"Enter DB Name",value:f,onChange:function(e){v(e.target.value)}})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"port",name:"port",label:"",placeholder:"Enter Port",value:C,onChange:function(e){w(e.target.value)}})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Vn,{value:F,label:"",id:"sslmode",name:"sslmode",onChange:function(e){void 0!==e.target.value&&R(e.target.value+"")},options:[{label:"Enter SSL Mode",value:" "},{label:"Require",value:"require"},{label:"Disable",value:"disable"},{label:"Verify CA",value:"verify-ca"},{label:"Verify Full",value:"verify-full"}]})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"user",name:"user",label:"",placeholder:"Enter User",value:E,onChange:function(e){A(e.target.value)}})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"password",name:"password",label:"",type:"password",placeholder:"Enter Password",value:M,onChange:function(e){z(e.target.value)}})})]})}),Object(We.jsx)(gc,{label:"Connection String",content:u}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("br",{})})]}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"table",name:"table",label:"Table",placeholder:"Enter Table Name",value:U,tooltip:"DB table name to store/update events, table is auto-created",onChange:function(e){G(e.target.value)}})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)($n,{currentSelection:V,id:"format",name:"format",label:"Format",onChange:function(e){H(e.target.value)},tooltip:"'namespace' reflects current bucket/object list and 'access' reflects a journal of object operations, defaults to 'namespace'",selectorOptions:[{label:"Namespace",value:"namespace"},{label:"Access",value:"access"}]})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"queue-dir",name:"queue_dir",label:"Queue Dir",placeholder:"Enter Queue Directory",value:Q,tooltip:"staging dir for undelivered messages e.g. '/home/events'",onChange:function(e){Z(e.target.value)}})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"queue-limit",name:"queue_limit",label:"Queue Limit",placeholder:"Enter Queue Limit",type:"number",value:X,tooltip:"maximum limit for undelivered messages, defaults to '10000'",onChange:function(e){ee(e.target.value)}})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(tu,{id:"comment",name:"comment",label:"Comment",placeholder:"Enter Comment",value:ne,onChange:function(e){ce(e.target.value)}})})]})})),vh=Object(y.a)((function(e){return Object(f.a)(Object(p.a)({},dt))}))((function(e){var t=e.onChange,a=e.classes,i=Object(n.useState)(!1),r=Object(m.a)(i,2),o=r[0],s=r[1],l=Object(n.useState)(""),d=Object(m.a)(l,2),u=d[0],b=d[1],j=Object(n.useState)(""),h=Object(m.a)(j,2),p=h[0],O=h[1],g=Object(n.useState)(""),x=Object(m.a)(g,2),f=x[0],v=x[1],y=Object(n.useState)(""),S=Object(m.a)(y,2),C=S[0],w=S[1],T=Object(n.useState)(""),N=Object(m.a)(T,2),E=N[0],A=N[1],_=Object(n.useState)(""),I=Object(m.a)(_,2),M=I[0],z=I[1],D=Object(n.useState)(""),L=Object(m.a)(D,2),F=L[0],R=L[1],P=Object(n.useState)("namespace"),B=Object(m.a)(P,2),U=B[0],G=B[1],K=Object(n.useState)(""),W=Object(m.a)(K,2),V=W[0],H=W[1],q=Object(n.useState)(""),Y=Object(m.a)(q,2),Q=Y[0],Z=Y[1],J=Object(n.useState)(""),$=Object(m.a)(J,2),X=$[0],ee=$[1],te=Object(n.useCallback)((function(){return"".concat(E,":").concat(M,"@tcp(").concat(p,":").concat(C,")/").concat(f)}),[E,M,p,C,f]);Object(n.useEffect)((function(){""!==u&&t([{key:"dsn_string",value:u},{key:"table",value:F},{key:"format",value:U},{key:"queue_dir",value:V},{key:"queue_limit",value:Q},{key:"comment",value:X}])}),[u,F,U,V,Q,X,t]),Object(n.useEffect)((function(){var e=te();b(e)}),[E,f,M,C,p,b,te]);return Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ac,{label:"Enter DNS String",checked:o,id:"checkedB",name:"checkedB",onChange:function(e){if(e.target.checked){var t=te();b(t)}else{var a=function(e,t){for(var a,n=new Map,c=/(.*?):(.*?)@tcp\((.*?):(.*?)\)\/(.*?)$/gm;null!==(a=c.exec(e));)a.index===c.lastIndex&&c.lastIndex++,n.set("user",a[1]),n.set("password",a[2]),n.set("host",a[3]),n.set("port",a[4]),n.set("dbname",a[5]);return n}(u);O(a.get("host")?a.get("host")+"":""),w(a.get("port")?a.get("port")+"":""),v(a.get("dbname")?a.get("dbname")+"":""),A(a.get("user")?a.get("user")+"":""),z(a.get("password")?a.get("password")+"":"")}s(e.target.checked)},value:"dnsString"})}),o?Object(We.jsx)(c.a.Fragment,{children:Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"dsn-string",name:"dsn_string",label:"DSN String",value:u,onChange:function(e){b(e.target.value)}})})}):Object(We.jsxs)(c.a.Fragment,{children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsxs)(k.a,{item:!0,xs:12,className:a.configureString,children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"host",name:"host",label:"",placeholder:"Enter Host",value:p,onChange:function(e){O(e.target.value)}})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"db-name",name:"db-name",label:"",placeholder:"Enter DB Name",value:f,onChange:function(e){v(e.target.value)}})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"port",name:"port",label:"",placeholder:"Enter Port",value:C,onChange:function(e){w(e.target.value)}})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"user",name:"user",label:"",placeholder:"Enter User",value:E,onChange:function(e){A(e.target.value)}})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"password",name:"password",label:"",placeholder:"Enter Password",type:"password",value:M,onChange:function(e){z(e.target.value)}})})]})}),Object(We.jsx)(gc,{label:"Connection String",content:u}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("br",{})})]}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"table",name:"table",label:"Table",placeholder:"Enter Table Name",value:F,tooltip:"DB table name to store/update events, table is auto-created",onChange:function(e){R(e.target.value)}})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)($n,{currentSelection:U,id:"format",name:"format",label:"Format",onChange:function(e){G(e.target.value)},tooltip:"'namespace' reflects current bucket/object list and 'access' reflects a journal of object operations, defaults to 'namespace'",selectorOptions:[{label:"Namespace",value:"namespace"},{label:"Access",value:"access"}]})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"queue-dir",name:"queue_dir",label:"Queue Dir",placeholder:"Enter Queue Dir",value:V,tooltip:"staging dir for undelivered messages e.g. '/home/events'",onChange:function(e){H(e.target.value)}})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(Pn,{id:"queue-limit",name:"queue_limit",label:"Queue Limit",placeholder:"Enter Queue Limit",type:"number",value:Q,tooltip:"maximum limit for undelivered messages, defaults to '10000'",onChange:function(e){Z(e.target.value)}})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(tu,{id:"comment",name:"comment",label:"Comment",placeholder:"Enter Comment",value:X,onChange:function(e){ee(e.target.value)}})})]})})),yh={serverNeedsRestart:te,setErrorSnackMessage:ce},Sh=Object(o.b)(null,yh)(Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)(Object(p.a)({},dt),vt),{},{strongText:{fontWeight:700},keyName:{marginLeft:5},buttonContainer:{textAlign:"right"},lambdaFormIndicator:{display:"flex",marginBottom:40},customTitle:Object(p.a)(Object(p.a)({},vt.customTitle),{},{marginTop:0}),lambdaNotif:{background:"linear-gradient(90deg, rgba(249,249,250,1) 0%, rgba(250,250,251,1) 68%, rgba(254,254,254,1) 100%)",border:"#E5E5E5 1px solid",borderRadius:5,height:80,display:"flex",alignItems:"center",justifyContent:"start",marginBottom:16,marginRight:8,cursor:"pointer",padding:0,overflow:"hidden"},lambdaNotifIcon:{backgroundColor:"#FEFEFE",display:"flex",alignItems:"center",justifyContent:"center",width:80,height:80,"& img":{maxWidth:46,maxHeight:46}},lambdaNotifTitle:{color:"#07193E",fontSize:16,fontFamily:"Lato,sans-serif",paddingLeft:18},mainCont:{maxWidth:1180,paddingLeft:38,paddingRight:38},backTo:{margin:"20px 0px 0"}}))}))((function(e){var t=e.match,a=e.saveAndRefresh,c=e.serverNeedsRestart,i=e.classes,r=e.setErrorSnackMessage,o=Object(n.useState)([]),s=Object(m.a)(o,2),l=s[0],d=s[1],u=Object(n.useState)(!1),b=Object(m.a)(u,2),j=b[0],p=b[1],O=t.params.service;Object(n.useEffect)((function(){if(j){var e={key_values:(t=l,t.filter((function(e){return""!==e.value})))};Ge.invoke("PUT","/api/v1/configs/".concat(O),e).then((function(){p(!1),c(!0),h.push("/notification-endpoints")})).catch((function(e){p(!1),r(e)}))}var t}),[j,c,O,l,a,r]);var g,x=Object(n.useCallback)((function(e){d(e)}),[d]);switch(O){case ah:g=Object(We.jsx)(fh,{onChange:x});break;case nh:g=Object(We.jsx)(vh,{onChange:x});break;default:var f=be()(hh,O,[]);g=Object(We.jsx)(nu,{fields:f,onChange:x})}var v=bh.find((function(e){return e.actionTrigger===O}));return Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(sc,{label:"Notification Endpoints"}),Object(We.jsx)("form",{noValidate:!0,onSubmit:function(e){e.preventDefault(),p(!0)},children:Object(We.jsxs)(k.a,{container:!0,className:i.mainCont,children:[Object(We.jsx)(k.a,{item:!0,xs:12,className:i.backTo,children:Object(We.jsxs)("button",{onClick:function(){h.push("/notification-endpoints/add")},className:i.backButton,children:[Object(We.jsx)(ja,{}),"Back To Supported Services"]})}),""!==O&&Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:v&&Object(We.jsxs)("div",{className:i.lambdaNotif,children:[Object(We.jsx)("div",{className:i.lambdaNotifIcon,children:Object(We.jsx)("img",{src:v.logo,className:i.logoButton,alt:v.targetTitle})}),Object(We.jsx)("div",{className:i.lambdaNotifTitle,children:Object(We.jsxs)("b",{children:[v?v.targetTitle:"","Notification Endpoint"]})})]},"icon-".concat(v.targetTitle))}),Object(We.jsx)(k.a,{item:!0,xs:12,children:g}),Object(We.jsx)(k.a,{item:!0,xs:12,className:i.settingsButtonContainer,children:Object(We.jsx)(S.a,{type:"submit",variant:"contained",color:"primary",disabled:j,children:"Save Notification Target"})})]})]})})]})}))),Ch=bh.filter((function(e){return""!==e.logo})),kh=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)(Object(p.a)({},vt),yt),{},{mainCont:Object(p.a)(Object(p.a)({},vt.mainCont),{},{maxWidth:1180}),link:{textDecoration:"none",color:e.palette.primary.main}}))}))((function(e){var t=e.classes;return Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(sc,{label:"Notification Endpoints"}),Object(We.jsxs)(k.a,{container:!0,className:t.mainCont,children:[Object(We.jsx)(k.a,{item:!0,xs:12,className:t.mainTitle,children:Object(We.jsx)(ru,{to:"/notification-endpoints",label:"Return to Configured Endpoints"})}),Object(We.jsx)(k.a,{item:!0,xs:12,className:t.centerElements,children:Object(We.jsx)("div",{className:t.iconContainer,children:Ch.map((function(e){return Object(We.jsxs)("button",{className:t.lambdaNotif,onClick:function(){h.push("/notification-endpoints/add/".concat(e.actionTrigger))},children:[Object(We.jsx)("div",{className:t.lambdaNotifIcon,children:Object(We.jsx)("img",{src:e.logo,className:t.logoButton,alt:e.targetTitle})}),Object(We.jsx)("div",{className:t.lambdaNotifTitle,children:Object(We.jsx)("b",{children:e.targetTitle})})]},"icon-".concat(e.targetTitle))}))})})]})]})})),wh=Object(o.b)(null,{setModalErrorSnackMessage:re}),Th=Object(y.a)((function(e){return Object(f.a)(Object(p.a)({minTableHeader:{color:"#393939","& tr":{"& th":{fontWeight:"bold"}}},buttonContainer:{textAlign:"right"}},dt))}))(wh((function(e){var t=e.open,a=e.closeModalAndRefresh,c=e.classes,i=e.tierData,r=e.setModalErrorSnackMessage,o=Object(n.useState)(!1),s=Object(m.a)(o,2),l=s[0],d=s[1],u=Object(n.useState)(""),b=Object(m.a)(u,2),j=b[0],h=b[1],p=Object(n.useState)(""),g=Object(m.a)(p,2),x=g[0],f=g[1],v=Object(n.useState)(""),y=Object(m.a)(v,2),C=y[0],w=y[1],T=Object(n.useState)(""),N=Object(m.a)(T,2),E=N[0],A=N[1],_=Object(n.useState)(""),I=Object(m.a)(_,2),M=I[0],z=I[1],D=Object(n.useState)(""),L=Object(m.a)(D,2),F=L[0],R=L[1],P=Object(n.useState)(!0),B=Object(m.a)(P,2),U=B[0],G=B[1],K=be()(i,"type",""),W=be()(i,"".concat(K,".name"),"");Object(n.useEffect)((function(){var e=!0;"s3"===K||"azure"===K?""!==M&&""!==F||(e=!1):"gcs"===K&&""===E&&(e=!1),G(e)}),[F,M,E,K]);return Object(We.jsx)(zn,{modalOpen:t,onClose:function(){a(!1)},title:"Update Credentials - ".concat(K," / ").concat(W),children:Object(We.jsx)("form",{noValidate:!0,autoComplete:"off",onSubmit:function(e){e.preventDefault(),d(!0),function(){var e={};"s3"===K||"azure"===K?e={access_key:M,secret_key:F}:"gcs"===K&&(e={creds:E}),""!==W?Ge.invoke("PUT","/api/v1/admin/tiers/".concat(K,"/").concat(W,"/credentials"),e).then((function(){d(!1),a(!0)})).catch((function(e){d(!1),r(e)})):r({errorMessage:"There was an error retrieving tier information",detailedError:""})}()},children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsxs)(k.a,{item:!0,xs:12,className:c.formScrollable,children:["s3"===K&&Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(Pn,{id:"accessKey",name:"accessKey",label:"Access Key",placeholder:"Enter Access Key",value:j,onChange:function(e){h(e.target.value)}}),Object(We.jsx)(Pn,{id:"secretKey",name:"secretKey",label:"Secret Key",placeholder:"Enter Secret Key",value:x,onChange:function(e){f(e.target.value)}})]}),"gcs"===K&&Object(We.jsx)(n.Fragment,{children:Object(We.jsx)(jb,{accept:".json",id:"creds",label:"Credentials",name:"creds",onChange:function(e,t){A(e),w(t)},value:C})}),"azure"===K&&Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(Pn,{id:"accountName",name:"accountName",label:"Account Name",placeholder:"Enter Account Name",value:M,onChange:function(e){z(e.target.value)}}),Object(We.jsx)(Pn,{id:"accountKey",name:"accountKey",label:"Account Key",placeholder:"Enter Account Key",value:F,onChange:function(e){R(e.target.value)}})]})]}),Object(We.jsx)(k.a,{item:!0,xs:12,className:c.buttonContainer,children:Object(We.jsx)(S.a,{type:"submit",variant:"contained",color:"primary",disabled:l||!U,children:"Save"})}),l&&Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(O.a,{})})]})})})}))),Nh={setErrorSnackMessage:ce},Eh=Object(o.b)(null,Nh),Ah=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)(Object(p.a)(Object(p.a)(Object(p.a)(Object(p.a)({},pt),Ot),vt),yt),(e.spacing(4),{container:{position:"relative",maxWidth:1180,padding:"20px 35px 0","& h6":{color:"#777777",fontSize:30},"& p":{"& span:not(*[class*='smallUnit'])":{fontSize:16}}},sectionTitle:{padding:"0px",margin:"0px"},topSpacer:{height:"8px"}})),{},{strongText:{fontWeight:700},keyName:{marginLeft:5},iconText:{lineHeight:"24px"},customConfigurationPage:{minHeight:400},actionsTray:Object(p.a)({},pt.actionsTray),customTitle:Object(p.a)(Object(p.a)({},vt.customTitle),{},{marginTop:0})},Lt(e.palette.info.main)))}))(Eh((function(e){var t=e.classes,a=e.history,c=e.setErrorSnackMessage,i=Object(n.useState)([]),r=Object(m.a)(i,2),o=r[0],s=r[1],l=Object(n.useState)(""),d=Object(m.a)(l,2),u=d[0],b=d[1],j=Object(n.useState)(!0),h=Object(m.a)(j,2),p=h[0],g=h[1],x=Object(n.useState)(!1),f=Object(m.a)(x,2),v=f[0],y=f[1],w=Object(n.useState)({type:"unsupported"}),T=Object(m.a)(w,2),N=T[0],E=T[1];Object(n.useEffect)((function(){if(p){Ge.invoke("GET","/api/v1/admin/tiers").then((function(e){s(e.items||[]),g(!1)})).catch((function(e){c(e),g(!1)}))}}),[p,c]);var A=o.filter((function(e){if(""===u)return!0;var t=be()(e,"".concat(e.type,".name"),""),a=be()(e,"type","");return t.indexOf(u)>=0||a.indexOf(u)>=0})),_=function(){a.push("/tiers/add")};return Object(We.jsxs)(n.Fragment,{children:[v&&Object(We.jsx)(Th,{open:v,tierData:N,closeModalAndRefresh:function(){y(!1)}}),Object(We.jsx)(sc,{label:"Tiers"}),Object(We.jsxs)(k.a,{container:!0,className:t.container,children:[Object(We.jsxs)(k.a,{item:!0,xs:12,className:t.actionsTray,children:[Object(We.jsx)(C.a,{placeholder:"Filter",className:t.searchField,id:"search-resource",label:"",onChange:function(e){b(e.target.value)},InputProps:{disableUnderline:!0,startAdornment:Object(We.jsx)(Wt.a,{position:"start",children:Object(We.jsx)(Jt,{})})},variant:"standard"}),Object(We.jsx)(mr,{color:"primary","aria-label":"Refresh List",onClick:function(){g(!0)},size:"large",children:Object(We.jsx)(Ve,{})}),Object(We.jsx)(S.a,{variant:"contained",color:"primary",startIcon:Object(We.jsx)(ba,{}),onClick:_,children:"Add a Tier"})]}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("br",{})}),p&&Object(We.jsx)(O.a,{}),!p&&Object(We.jsxs)(n.Fragment,{children:[o.length>0&&Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ei,{itemActions:[{type:"edit",onClick:function(e){E(e),y(!0)}}],columns:[{label:"Tier Name",elementKey:"type",renderFunction:function(e){var t=be()(e,"".concat(e.type,".name"),"");return null!==t?t:""},renderFullObject:!0},{label:"Type",elementKey:"type",width:150},{label:"Endpoint",elementKey:"type",renderFunction:function(e){var t=be()(e,"".concat(e.type,".endpoint"),"");return null!==t?t:""},renderFullObject:!0},{label:"Bucket",elementKey:"type",renderFunction:function(e){var t=be()(e,"".concat(e.type,".bucket"),"");return null!==t?t:""},renderFullObject:!0},{label:"Prefix",elementKey:"type",renderFunction:function(e){var t=be()(e,"".concat(e.type,".prefix"),"");return null!==t?t:""},renderFullObject:!0},{label:"Region",elementKey:"type",renderFunction:function(e){var t=be()(e,"".concat(e.type,".region"),"");return null!==t?t:""},renderFullObject:!0}],isLoading:p,records:A,entityName:"Tiers",idField:"service_name",customPaperHeight:t.customConfigurationPage})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(wc,{title:"Learn more about TIERS",iconComponent:Object(We.jsx)(an,{}),help:Object(We.jsxs)(n.Fragment,{children:["Tiers are used by the MinIO Object Lifecycle Management which allows creating rules for time or date based automatic transition or expiry of objects. For object transition, MinIO automatically moves the object to a configured remote storage tier.",Object(We.jsx)("br",{}),Object(We.jsx)("br",{}),"You can learn more at our"," ",Object(We.jsx)("a",{href:"https://docs.min.io/minio/baremetal/lifecycle-management/lifecycle-management-overview.html?ref=con",target:"_blank",rel:"noreferrer",children:"documentation"}),"."]})})})]}),0===o.length&&Object(We.jsx)(k.a,{container:!0,justifyContent:"center",alignContent:"center",alignItems:"center",children:Object(We.jsx)(k.a,{item:!0,xs:8,children:Object(We.jsx)(wc,{title:"Tiers",iconComponent:Object(We.jsx)(an,{}),help:Object(We.jsxs)(n.Fragment,{children:["Tiers are used by the MinIO Object Lifecycle Management which allows creating rules for time or date based automatic transition or expiry of objects. For object transition, MinIO automatically moves the object to a configured remote storage tier.",Object(We.jsx)("br",{}),Object(We.jsx)("br",{}),"To get started,"," ",Object(We.jsx)("button",{onClick:_,className:t.link,children:"Add Tier"}),"."]})})})})]})]})]})}))),_h="minio",Ih="s3",Mh="azure",zh=[{serviceName:_h,targetTitle:"MinIO",logo:"/minio-logo.svg"},{serviceName:"gcs",targetTitle:"Google Cloud Storage",logo:"/gcs-logo.svg"},{serviceName:Ih,targetTitle:"AWS S3",logo:"/aws-logo.svg"},{serviceName:Mh,targetTitle:"Azure",logo:"/azure-logo.svg"}],Dh=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)(Object(p.a)(Object(p.a)(Object(p.a)(Object(p.a)({},pt),Ot),vt),yt),(e.spacing(4),{container:{position:"relative",maxWidth:1180,padding:"20px 35px 0","& h6":{color:"#777777",fontSize:30},"& p":{"& span:not(*[class*='smallUnit'])":{fontSize:16}}},sectionTitle:{padding:"0px",margin:"0px"},topSpacer:{height:"8px"}})),{},{strongText:{fontWeight:700},keyName:{marginLeft:5},iconText:{lineHeight:"24px"},customConfigurationPage:{height:"calc(100vh - 410px)",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},lambdaContainer:{padding:"15px 0"},actionsTray:Object(p.a)(Object(p.a)({},pt.actionsTray),{},{padding:"0 38px"}),customTitle:Object(p.a)(Object(p.a)({},vt.customTitle),{},{marginTop:0}),mainCont:Object(p.a)(Object(p.a)({},vt.mainCont),{},{maxWidth:1180}),link:{textDecoration:"none",color:e.palette.primary.main}}))}))((function(e){var t=e.classes,a=e.history;return Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(sc,{label:"Tier Configuration"}),Object(We.jsx)(k.a,{container:!0,className:t.mainCont,children:Object(We.jsxs)(k.a,{item:!0,xs:12,children:[Object(We.jsx)(k.a,{item:!0,xs:12,className:t.mainTitle,children:Object(We.jsx)(ru,{to:"/tiers",label:"Return to Configured Tiers"})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(k.a,{item:!0,xs:12,className:t.centerElements,children:Object(We.jsx)("div",{className:t.iconContainer,children:zh.map((function(e,n){return Object(We.jsxs)("button",{className:t.lambdaNotif,onClick:function(){var t;t=e.serviceName,a.push("/tiers/add/".concat(t))},children:[Object(We.jsx)("div",{className:t.lambdaNotifIcon,children:Object(We.jsx)("img",{src:e.logo,className:t.logoButton,alt:e.targetTitle})}),Object(We.jsx)("div",{className:t.lambdaNotifTitle,children:Object(We.jsx)("b",{children:e.targetTitle})})]},"tierOpt-".concat(n.toString,"-").concat(e.targetTitle))}))})})})})]})})]})})),Lh={setErrorSnackMessage:ce},Fh=Object(o.b)(null,Lh),Rh=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)(Object(p.a)({},dt),vt),{},{strongText:{fontWeight:700},keyName:{marginLeft:5},buttonContainer:{textAlign:"right"},customTitle:Object(p.a)(Object(p.a)({},vt.customTitle),{},{marginTop:0}),settingsFormContainer:Object(p.a)(Object(p.a)({},vt.settingsFormContainer),{},{height:"calc(100vh - 422px)"}),lambdaNotif:{background:"linear-gradient(90deg, rgba(249,249,250,1) 0%, rgba(250,250,251,1) 68%, rgba(254,254,254,1) 100%)",border:"#E5E5E5 1px solid",borderRadius:5,height:80,display:"flex",alignItems:"center",justifyContent:"start",marginBottom:16,marginRight:8,cursor:"pointer",padding:0,overflow:"hidden"},lambdaNotifIcon:{backgroundColor:"#FEFEFE",display:"flex",alignItems:"center",justifyContent:"center",width:80,height:80,"& img":{maxWidth:46,maxHeight:46}},lambdaNotifTitle:{color:"#07193E",fontSize:16,fontFamily:"Lato,sans-serif",paddingLeft:18},mainCont:{maxWidth:1180,paddingLeft:38,paddingRight:38},backTo:{margin:"20px 0px 0"}}))}))(Fh((function(e){var t=e.classes,a=e.setErrorSnackMessage,c=e.match,i=e.history,r=Object(n.useState)(!1),o=Object(m.a)(r,2),s=o[0],l=o[1],d=Object(n.useState)(""),u=Object(m.a)(d,2),b=u[0],j=u[1],h=Object(n.useState)(""),O=Object(m.a)(h,2),g=O[0],x=O[1],f=Object(n.useState)(""),v=Object(m.a)(f,2),y=v[0],C=v[1],w=Object(n.useState)(""),T=Object(m.a)(w,2),N=T[0],E=T[1],A=Object(n.useState)(""),_=Object(m.a)(A,2),I=_[0],M=_[1],z=Object(n.useState)(""),D=Object(m.a)(z,2),L=D[0],F=D[1],R=Object(n.useState)(""),P=Object(m.a)(R,2),B=P[0],U=P[1],G=Object(n.useState)(""),K=Object(m.a)(G,2),W=K[0],V=K[1],H=Object(n.useState)(""),q=Object(m.a)(H,2),Y=q[0],Q=q[1],Z=Object(n.useState)(""),J=Object(m.a)(Z,2),$=J[0],X=J[1],ee=Object(n.useState)(""),te=Object(m.a)(ee,2),ae=te[0],ne=te[1],ce=Object(n.useState)(""),ie=Object(m.a)(ce,2),re=ie[0],oe=ie[1],se=Object(n.useState)(""),le=Object(m.a)(se,2),de=le[0],ue=le[1],je=be()(c,"params.service","s3"),he=Object(n.useState)(!0),me=Object(m.a)(he,2),pe=me[0],Oe=me[1],ge=Object(n.useState)(""),xe=Object(m.a)(ge,2),fe=xe[0],ve=xe[1],ye=Object(n.useCallback)((function(){return/^[A-Z0-9-_]+$/.test(b)?(ve(""),!0):(ve("Please verify that string is uppercase only and contains valid characters (numbers, dashes & underscores)."),!1)}),[b]);Object(n.useEffect)((function(){if(s){var e={},t={name:b,endpoint:g,bucket:y,prefix:N,region:I},n=je;switch("minio"===je&&(n="s3"),je){case"minio":case"s3":e={s3:Object(p.a)(Object(p.a)({},t),{},{accesskey:B,secretkey:W,storageclass:L})};break;case"gcs":e={gcs:Object(p.a)(Object(p.a)({},t),{},{creds:$})};break;case"azure":e={azure:Object(p.a)(Object(p.a)({},t),{},{accountname:ae,accountkey:re})}}var c=Object(p.a)({type:n},e);Ge.invoke("POST","/api/v1/admin/tiers",c).then((function(){l(!1),i.push("/tiers")})).catch((function(e){l(!1),a(e)}))}}),[B,re,ae,y,$,g,i,b,N,I,s,W,a,L,je]),Object(n.useEffect)((function(){var e=!0;""===je&&(e=!1),""!==b&&ye()||(e=!1),""===g&&(e=!1),""===y&&(e=!1),""===N&&(e=!1),""===I&&(e=!1),"s3"!==je&&"minio"!==je||(""===B&&(e=!1),""===W&&(e=!1)),"gcs"===je&&""===$&&(e=!1),"azure"===je&&(""===ae&&(e=!1),""===re&&(e=!1)),Oe(e)}),[B,re,ae,y,$,g,pe,b,N,I,W,L,je,ye]),Object(n.useEffect)((function(){switch(je){case"gcs":x("https://storage.googleapis.com/"),ue("Google Cloud");break;case"s3":x("https://s3.amazonaws.com"),ue("Amazon S3");break;case"azure":x("http://blob.core.windows.net"),ue("Azure");break;case"minio":x(""),ue("MinIO")}}),[je]);var Se=zh.find((function(e){return e.serviceName===je}));return Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(sc,{label:"Tiers"}),Object(We.jsxs)(k.a,{container:!0,className:t.mainCont,children:[Object(We.jsx)(k.a,{item:!0,xs:12,className:t.backTo,children:Object(We.jsxs)("button",{onClick:function(){i.push("/tiers/add")},className:t.backButton,children:[Object(We.jsx)(ja,{}),"Back To Tier Type Selection"]})}),""!==je&&Object(We.jsx)(n.Fragment,{children:Object(We.jsx)(k.a,{item:!0,xs:12,children:Se&&Object(We.jsxs)("div",{className:t.lambdaNotif,children:[Object(We.jsx)("div",{className:t.lambdaNotifIcon,children:Object(We.jsx)("img",{src:Se.logo,className:t.logoButton,alt:Se.targetTitle})}),Object(We.jsx)("div",{className:t.lambdaNotifTitle,children:Object(We.jsxs)("b",{children:[de||""," Tier Configuration"]})})]},"icon-".concat(Se.targetTitle))})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsxs)("form",{noValidate:!0,onSubmit:function(e){e.preventDefault(),l(!0)},children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(k.a,{container:!0,children:""!==je&&Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(Pn,{id:"name",name:"name",label:"Name",placeholder:"Enter Name (Eg. REMOTE-TIER)",value:b,onChange:function(e){j(e.target.value.toUpperCase())},error:fe}),Object(We.jsx)(Pn,{id:"endpoint",name:"endpoint",label:"Endpoint",placeholder:"Enter Endpoint",value:g,onChange:function(e){x(e.target.value)}}),(je===Ih||je===_h)&&Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(Pn,{id:"accessKey",name:"accessKey",label:"Access Key",placeholder:"Enter Access Key",value:B,onChange:function(e){U(e.target.value)}}),Object(We.jsx)(Pn,{id:"secretKey",name:"secretKey",label:"Secret Key",placeholder:"Enter Secret Key",value:W,onChange:function(e){V(e.target.value)}})]}),"gcs"===je&&Object(We.jsx)(n.Fragment,{children:Object(We.jsx)(jb,{accept:".json",id:"creds",label:"Credentials",name:"creds",onChange:function(e,t){X(e),Q(t)},value:Y})}),je===Mh&&Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(Pn,{id:"accountName",name:"accountName",label:"Account Name",placeholder:"Enter Account Name",value:ae,onChange:function(e){ne(e.target.value)}}),Object(We.jsx)(Pn,{id:"accountKey",name:"accountKey",label:"Account Key",placeholder:"Enter Account Key",value:re,onChange:function(e){oe(e.target.value)}})]}),Object(We.jsx)(Pn,{id:"bucket",name:"bucket",label:"Bucket",placeholder:"Enter Bucket",value:y,onChange:function(e){C(e.target.value)}}),Object(We.jsx)(Pn,{id:"prefix",name:"prefix",label:"Prefix",placeholder:"Enter Prefix",value:N,onChange:function(e){E(e.target.value)}}),Object(We.jsx)(Pn,{id:"region",name:"region",label:"Region",placeholder:"Enter Region",value:I,onChange:function(e){M(e.target.value)}}),je===Ih||je===_h&&Object(We.jsx)(Pn,{id:"storageClass",name:"storageClass",label:"Storage Class",placeholder:"Enter Storage Class",value:L,onChange:function(e){F(e.target.value)}})]})})}),Object(We.jsx)(k.a,{item:!0,xs:12,className:t.settingsButtonContainer,children:Object(We.jsx)(S.a,{type:"submit",variant:"contained",color:"primary",disabled:s||!pe,children:"Save"})})]})})]})]})}))),Ph=Object(o.b)(null,{setErrorSnackMessage:ce}),Bh=Object(y.a)((function(e){return Object(f.a)({redState:{color:e.palette.error.main,"& .MuiSvgIcon-root":{width:16,height:16,float:"left",marginRight:4}},yellowState:{color:e.palette.warning.main,"& .MuiSvgIcon-root":{width:16,height:16,float:"left",marginRight:4}},greenState:{color:e.palette.success.main,"& .MuiSvgIcon-root":{width:16,height:16,float:"left",marginRight:4}},greyState:{color:"grey","& .MuiSvgIcon-root":{width:16,height:16,float:"left",marginRight:4}},tenantIcon:{width:40,height:40,position:"relative"},healthStatusIcon:{position:"absolute",fontSize:10,top:0,right:-20,height:10},tenantItem:{border:"1px solid #dedede",marginBottom:20,paddingLeft:40,paddingRight:40,paddingTop:30,paddingBottom:30},title:{fontSize:22,fontWeight:"bold"},titleSubKey:{fontSize:14,paddingRight:8},titleSubValue:{fontSize:14,fontWeight:"bold",paddingRight:16},boxyTitle:{fontWeight:"bold"},boxyValue:{fontSize:24,fontWeight:"bold"},boxyUnit:{fontSize:12,color:"#5E5E5E"},manageButton:{marginRight:8,textTransform:"initial"}})}))(Ph((function(e){var t,a,c=e.tenant,i=e.classes,r={value:"n/a",unit:""},o={value:"n/a",unit:""},s={value:"n/a",unit:""};if(c.capacity_raw){var l=fe("".concat(c.capacity_raw),!0).split(" ");r.value=l[0],r.unit=l[1]}if(c.capacity){var d=fe("".concat(c.capacity),!0).split(" ");o.value=d[0],o.unit=d[1]}if(c.capacity_usage){var u=c.capacity*c.capacity_raw_usage/c.capacity_raw,b=fe("".concat(u),!0).split(" ");s.value=b[0],s.unit=b[1]}return Object(We.jsx)(n.Fragment,{children:Object(We.jsx)("div",{className:i.tenantItem,children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsxs)(k.a,{item:!0,xs:8,children:[Object(We.jsx)("div",{className:i.title,children:c.name}),Object(We.jsxs)("div",{children:[Object(We.jsx)("span",{className:i.titleSubKey,children:"Namespace:"}),Object(We.jsx)("span",{className:i.titleSubValue,children:c.namespace}),Object(We.jsx)("span",{className:i.titleSubKey,children:"Pools:"}),Object(We.jsx)("span",{className:i.titleSubValue,children:c.pool_count}),Object(We.jsx)("span",{className:i.titleSubKey,children:"State:"}),Object(We.jsx)("span",{className:i.titleSubValue,children:c.currentState})]})]}),Object(We.jsxs)(k.a,{item:!0,xs:4,textAlign:"end",children:[Object(We.jsx)(S.a,{size:"small",color:"primary",variant:"outlined",className:i.manageButton,onClick:function(){h.push("/namespaces/".concat(c.namespace,"/tenants/").concat(c.name,"/hop"))},children:"Manage"}),Object(We.jsx)(S.a,{endIcon:Object(We.jsx)($a,{}),variant:"contained",onClick:function(){h.push("/namespaces/".concat(c.namespace,"/tenants/").concat(c.name))},children:"View"})]}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("hr",{})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsxs)(k.a,{container:!0,alignItems:"center",children:[Object(We.jsx)(k.a,{item:!0,xs:7,children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsx)(k.a,{item:!0,xs:3,style:{textAlign:"center"},children:Object(We.jsxs)("div",{className:i.tenantIcon,children:[Object(We.jsx)("div",{className:i.healthStatusIcon,children:Object(We.jsx)("span",{className:function(e){switch(e){case"red":return i.redState;case"yellow":return i.yellowState;case"green":return i.greenState;default:return i.greyState}}(c.health_status),children:Object(We.jsx)(Ma,{})})}),Object(We.jsx)(Sa,{style:{fontSize:40}})]})}),Object(We.jsx)(k.a,{item:!0,xs:3,children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsx)(k.a,{item:!0,xs:12,className:i.boxyTitle,children:"Raw Capacity"}),Object(We.jsxs)(k.a,{item:!0,className:i.boxyValue,children:[r.value,Object(We.jsx)("span",{className:i.boxyUnit,children:r.unit})]})]})}),Object(We.jsx)(k.a,{item:!0,xs:3,children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsx)(k.a,{item:!0,xs:12,className:i.boxyTitle,children:"Capacity"}),Object(We.jsxs)(k.a,{item:!0,className:i.boxyValue,children:[o.value,Object(We.jsx)("span",{className:i.boxyUnit,children:o.unit})]})]})}),Object(We.jsx)(k.a,{item:!0,xs:3,children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsx)(k.a,{item:!0,xs:12,className:i.boxyTitle,children:"Usage"}),Object(We.jsxs)(k.a,{item:!0,className:i.boxyValue,children:[s.value,Object(We.jsx)("span",{className:i.boxyUnit,children:s.unit})]})]})})]})}),Object(We.jsx)(k.a,{item:!0,xs:5,children:Object(We.jsx)(Gu,{currValue:null!==(t=c.capacity_raw_usage)&&void 0!==t?t:0,maxValue:null!==(a=c.capacity_raw)&&void 0!==a?a:1,label:"",renderFunction:fe,error:"",loading:!1,labels:!1})})]})})]})})})}))),Uh=Object(o.b)(null,{setErrorSnackMessage:ce}),Gh=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)(Object(p.a)(Object(p.a)({},pt),Ot),(e.spacing(4),{container:{position:"relative",maxWidth:1180,padding:"20px 35px 0","& h6":{color:"#777777",fontSize:30},"& p":{"& span:not(*[class*='smallUnit'])":{fontSize:16}}},sectionTitle:{padding:"0px",margin:"0px"},topSpacer:{height:"8px"}})),{},{addTenant:{marginRight:8},theaderSearchLabel:{color:e.palette.grey[400],fontSize:14,fontWeight:"bold"},addBucket:{marginRight:8},theaderSearch:{borderColor:e.palette.grey[200],"& .MuiInputBase-input":{paddingTop:10,paddingBottom:10},"& .MuiInputBase-root":{"& .MuiInputAdornment-root":{"& .MuiSvgIcon-root":{color:e.palette.grey[400],height:14}}},actionHeaderItems:{"@media (min-width: 320px)":{marginTop:8}},marginRight:10,marginLeft:10},mainActions:{textAlign:"right",marginBottom:8},healthStatusIcon:{position:"relative",fontSize:10,right:-30,height:10,top:-50},tenantItem:{border:"1px solid #dedede",marginBottom:20,paddingLeft:40,paddingRight:40,paddingTop:30,paddingBottom:30}},Lt(e.palette.info.main)))}))(Uh((function(e){var t=e.classes,a=e.setErrorSnackMessage,c=Object(n.useState)(!1),i=Object(m.a)(c,2),r=i[0],o=i[1],s=Object(n.useState)(""),l=Object(m.a)(s,2),d=l[0],u=l[1],b=Object(n.useState)([]),j=Object(m.a)(b,2),p=j[0],g=j[1],x=Object(n.useState)(!1),f=Object(m.a)(x,2),v=f[0],y=f[1],w=Object(n.useState)(null),T=Object(m.a)(w,2),N=T[0],E=T[1],A=p.filter((function(e){return""===d||e.name.indexOf(d)>=0}));return Object(n.useEffect)((function(){if(r){Ge.invoke("GET","/api/v1/tenants").then((function(e){if(null!==e){var t=[];null!==e.tenants&&(t=e.tenants);for(var a=0;a<t.length;a++)t[a].total_capacity=fe(t[a].total_size+"");g(t),o(!1)}else o(!1)})).catch((function(e){a(e),o(!1)}))}}),[r,a]),Object(n.useEffect)((function(){o(!0)}),[]),Object(We.jsxs)(n.Fragment,{children:[v&&Object(We.jsx)(Ol,{newServiceAccount:N,open:v,closeModal:function(){y(!1),E(null)},entity:"Tenant"}),Object(We.jsx)(sc,{label:"Tenants",actions:Object(We.jsx)(n.Fragment,{children:Object(We.jsxs)(k.a,{container:!0,direction:"row",justifyContent:"flex-end",alignItems:"center",className:t.actionHeaderItems,children:[Object(We.jsx)(Ft.a,{display:{xs:"none",sm:"none",md:"block"},children:Object(We.jsx)(k.a,{item:!0,children:Object(We.jsx)("div",{className:t.theaderSearchLabel,children:"Filter Tenants:"})})}),Object(We.jsx)(Ft.a,{display:{xs:"block",sm:"block",md:"none"},children:Object(We.jsx)(C.a,{className:t.theaderSearch,variant:"outlined",id:"search-resource",placeholder:"Filter Tenants",onChange:function(e){u(e.target.value)},inputProps:{disableUnderline:!0,endAdornment:Object(We.jsx)(Wt.a,{position:"end",children:Object(We.jsx)(Jt,{})})}})}),Object(We.jsx)(Ft.a,{display:{xs:"none",sm:"none",md:"block"},children:Object(We.jsx)(C.a,{className:t.theaderSearch,variant:"outlined",id:"search-resource",onChange:function(e){u(e.target.value)},inputProps:{disableUnderline:!0,endAdornment:Object(We.jsx)(Wt.a,{position:"end",children:Object(We.jsx)(Jt,{})})}})}),Object(We.jsx)(k.a,{item:!0,children:Object(We.jsx)(S.a,{variant:"contained",color:"primary",endIcon:Object(We.jsx)(ba,{}),onClick:function(){h.push("/tenants/add")},className:t.addTenant,children:"Create Tenant"})})]})})}),Object(We.jsx)(k.a,{container:!0,children:Object(We.jsx)(k.a,{item:!0,xs:12,className:t.container,children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsx)(k.a,{item:!0,xs:12,className:t.mainActions,children:Object(We.jsx)(mr,{color:"primary","aria-label":"Refresh Tenant List",onClick:function(){o(!0)},size:"large",children:Object(We.jsx)(Ve,{})})}),Object(We.jsxs)(k.a,{item:!0,xs:12,children:[r&&Object(We.jsx)(O.a,{}),!r&&Object(We.jsxs)(n.Fragment,{children:[A.map((function(e){return Object(We.jsx)(Bh,{tenant:e})})),0===A.length&&Object(We.jsx)(k.a,{container:!0,justifyContent:"center",alignContent:"center",alignItems:"center",children:Object(We.jsx)(k.a,{item:!0,xs:8,children:Object(We.jsx)(wc,{iconComponent:Object(We.jsx)(Sa,{}),title:"Tenants",help:Object(We.jsxs)(n.Fragment,{children:["Tenant is the logical structure to represent a MinIO deployment. A tenant can have different size and configurations from other tenants, even a different storage class.",Object(We.jsx)("br",{}),Object(We.jsx)("br",{}),"To get started,\xa0",Object(We.jsx)("button",{className:t.link,onClick:function(){h.push("/tenants/add")},children:"Create a Tenant."})]})})})})]})]})]})})})]})}))),Kh=[{icon:Object(We.jsx)(_a,{}),configuration_id:"logs",configuration_label:"Logs"},{icon:Object(We.jsx)(Jt,{}),configuration_id:"audit-logs",configuration_label:"Audit Logs"},{icon:Object(We.jsx)(ea,{}),configuration_id:"watch",configuration_label:"Watch"},{icon:Object(We.jsx)(ua,{}),configuration_id:"trace",configuration_label:"trace"},{icon:Object(We.jsx)(ta,{}),configuration_id:"heal",configuration_label:"heal"},{icon:Object(We.jsx)(sa,{}),configuration_id:"diagnostics",configuration_label:"Diagnostics"}],Wh=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)(Object(p.a)({strongText:{fontWeight:700},keyName:{marginLeft:5},iconText:{lineHeight:"24px"},customConfigurationPage:{height:"calc(100vh - 324px)",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},settingsOptionsContainer:{display:"flex",flexDirection:"row",justifyContent:"flex-start",flexWrap:"wrap",border:"#E5E5E5 1px solid",borderRadius:2,padding:5,backgroundColor:"#fff"},configurationLink:{border:"#E5E5E5 1px solid",borderRadius:2,padding:20,width:190,height:80,margin:15}},Ot),pt),(e.spacing(4),{container:{position:"relative",maxWidth:1180,padding:"20px 35px 0","& h6":{color:"#777777",fontSize:30},"& p":{"& span:not(*[class*='smallUnit'])":{fontSize:16}}},sectionTitle:{padding:"0px",margin:"0px"},topSpacer:{height:"8px"}})))}))((function(e){var t=e.classes;return Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(sc,{label:"Tools"}),Object(We.jsx)(k.a,{container:!0,className:t.container,children:Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("div",{className:t.settingsOptionsContainer,children:Kh.map((function(e){return Object(We.jsx)($d,{prefix:"tools",configuration:e},"configItem-".concat(e.configuration_label))}))})})})})]})})),Vh=function(){return Object(We.jsx)(s.c,{history:h,children:Object(We.jsxs)(s.d,{children:[Object(We.jsx)(s.b,{path:"/tools",exact:!0,component:Wh}),Object(We.jsx)(s.b,{component:Gt})]})})},Hh="LOG_MESSAGE_RECEIVED",qh="LOG_RESET_MESSAGES";var Yh=Object(o.b)((function(e){return{messages:e.logs.messages}}),{logMessageReceived:function(e){return{type:Hh,message:e}},logResetMessages:function(){return{type:qh}}}),Qh=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)(Object(p.a)(Object(p.a)({logList:{background:"#fff",minHeight:400,height:"calc(100vh - 304px)",overflow:"auto",fontSize:13,padding:"25px 45px 0",border:"1px solid #EAEDEE",borderRadius:4},tab:{paddingLeft:25},logerror:{color:"#A52A2A"},logerror_tab:{color:"#A52A2A",paddingLeft:25},ansidefault:{color:"#000"},highlight:{"& span":{backgroundColor:"#082F5238"}}},pt),Ot),St),(e.spacing(4),{container:{position:"relative",maxWidth:1180,padding:"20px 35px 0","& h6":{color:"#777777",fontSize:30},"& p":{"& span:not(*[class*='smallUnit'])":{fontSize:16}}},sectionTitle:{padding:"0px",margin:"0px"},topSpacer:{height:"8px"}})))}))(Yh((function(e){var t=e.classes,a=e.logMessageReceived,c=e.logResetMessages,i=e.messages,r=Object(n.useState)(""),o=Object(m.a)(r,2),s=o[0],l=o[1];Object(n.useEffect)((function(){c();var e=new URL(window.location.toString()),t=e.port,n=Wb(e.protocol),i=new Bb.w3cwebsocket("".concat(n,"://").concat(e.hostname,":").concat(t,"/ws/console")),r=null;if(null!==i)return i.onopen=function(){console.log("WebSocket Client Connected"),i.send("ok"),r=setInterval((function(){i.send("ok")}),1e4)},i.onmessage=function(e){var t=JSON.parse(e.data.toString());t.time=Er()(t.time,"HH:mm:s UTC MM/DD/YYYY").toDate(),t.key=Math.random(),a(t)},i.onclose=function(){clearInterval(r),console.log("connection closed by server")},function(){i.close(1e3),clearInterval(r),console.log("closing websockets")}}),[a,c]);var d=function(e){var a=e.ConsoleMsg,n=(a=a.replace(/([^\x20-\x7F])/g,"")).replace(/((\[[0-9;]+m))/g,""),c=""!==s&&a.toLowerCase().includes(s.toLowerCase());return n.startsWith(" ")?Object(We.jsx)("div",{className:"".concat(c?t.highlight:""),children:Object(We.jsx)("span",{className:t.tab,children:n})},e.key):null!==e.error&&void 0!==e.error?function(e){var a=[];if(null!==e.error&&void 0!==e.error){if(e.api&&e.api.name){var n="API: ".concat(e.api.name),c=""!==s&&n.toLowerCase().includes(s.toLowerCase());a.push(Object(We.jsxs)("div",{className:"".concat(c?t.highlight:""),children:[Object(We.jsx)("br",{}),Object(We.jsx)("span",{className:t.logerror,children:n})]},"api-".concat(e.key)))}if(e.time){var i="Time: ".concat(Se(e.time)),r=""!==s&&i.toLowerCase().includes(s.toLowerCase());a.push(Object(We.jsx)("div",{className:"".concat(r?t.highlight:""),children:Object(We.jsx)("span",{className:t.logerror,children:i})},"time-".concat(e.key)))}if(e.deploymentid){var o="DeploymentID: ".concat(e.deploymentid),l=""!==s&&o.toLowerCase().includes(s.toLowerCase());a.push(Object(We.jsx)("div",{className:"".concat(l?t.highlight:""),children:Object(We.jsx)("span",{className:t.logerror,children:o})},"deploytmentid-".concat(e.key)))}if(e.requestID){var d="RequestID: ".concat(e.requestID),u=""!==s&&d.toLowerCase().includes(s.toLowerCase());a.push(Object(We.jsx)("div",{className:"".concat(u?t.highlight:""),children:Object(We.jsx)("span",{className:t.logerror,children:d})},"requestid-".concat(e.key)))}if(e.remotehost){var b="RemoteHost: ".concat(e.remotehost),j=""!==s&&b.toLowerCase().includes(s.toLowerCase());a.push(Object(We.jsx)("div",{className:"".concat(j?t.highlight:""),children:Object(We.jsx)("span",{className:t.logerror,children:b})},"remotehost-".concat(e.key)))}if(e.host){var h="Host: ".concat(e.host),m=""!==s&&h.toLowerCase().includes(s.toLowerCase());a.push(Object(We.jsx)("div",{className:"".concat(m?t.highlight:""),children:Object(We.jsx)("span",{className:t.logerror,children:h})},"host-".concat(e.key)))}if(e.userAgent){var p="UserAgent: ".concat(e.userAgent),O=""!==s&&p.toLowerCase().includes(s.toLowerCase());a.push(Object(We.jsx)("div",{className:"".concat(O?t.highlight:""),children:Object(We.jsx)("span",{className:t.logerror,children:p})},"useragent-".concat(e.key)))}if(e.error.message){var g="Error: ".concat(e.error.message),x=""!==s&&g.toLowerCase().includes(s.toLowerCase());a.push(Object(We.jsx)("div",{className:"".concat(x?t.highlight:""),children:Object(We.jsx)("span",{className:t.logerror,children:g})},"message-".concat(e.key)))}if(e.error.source)for(var f in e.error.source){var v=e.error.source[f],y=""!==s&&v.toLowerCase().includes(s.toLowerCase());a.push(Object(We.jsx)("div",{className:"".concat(y?t.highlight:""),children:Object(We.jsx)("span",{className:t.logerror_tab,children:v})},"source-".concat(e.key,"-").concat(f)))}}return a}(e):Object(We.jsx)("div",{className:"".concat(c?t.highlight:""),children:Object(We.jsx)("span",{className:t.ansidefault,children:n})},e.key)},u=i.map((function(e){return d(e)}));return Object(We.jsxs)(n.Fragment,{children:[Object(We.jsx)(sc,{label:"Logs"}),Object(We.jsxs)(k.a,{container:!0,className:t.container,children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ru,{to:"/tools",label:"Return to Tools"})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsxs)(k.a,{container:!0,className:t.logsSubContainer,children:[Object(We.jsx)(k.a,{item:!0,xs:12,className:t.actionsTray,children:Object(We.jsx)(C.a,{placeholder:"Highlight Line",className:t.searchField,id:"search-resource",label:"",onChange:function(e){l(e.target.value)},InputProps:{disableUnderline:!0,startAdornment:Object(We.jsx)(Wt.a,{position:"start",children:Object(We.jsx)(Jt,{})})},variant:"standard"})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("br",{})}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("div",{className:t.logList,children:u})})]})})]})]})}))),Zh=a(698),Jh=Object(y.a)((function(e){return Object(f.a)({searchField:Object(p.a)(Object(p.a)({},Ot.searchField),{},{height:30,padding:0,"& input":{padding:"0 12px",height:28,fontSize:12,fontWeight:600,color:"#393939"},"&.isDisabled":{"&:hover":{borderColor:"#EAEDEE"}},"& input.Mui-disabled":{backgroundColor:"#EAEAEA"}}),labelStyle:{color:"#393939",fontSize:12,marginBottom:4},buttonKit:{display:"flex",alignItems:"center"},toggleButton:{marginRight:10},fieldContainer:{flexGrow:1,margin:"0 15px"}})}))((function(e){var t=e.classes,a=e.label,c=e.onChange,i=e.value,r=e.placeholder,o=void 0===r?"":r,s=e.id,l=e.name;return Object(We.jsx)(n.Fragment,{children:Object(We.jsxs)("div",{className:t.fieldContainer,children:[Object(We.jsx)("div",{className:t.labelStyle,children:a}),Object(We.jsx)("div",{className:t.buttonKit,children:Object(We.jsx)(C.a,{placeholder:o,id:s,name:l,label:"",onChange:function(e){c(e.target.value)},InputProps:{disableUnderline:!0},className:t.searchField,value:i})})]})})})),$h={time:"Timestamp",api_name:"API Name",bucket:"Bucket",object:"Object",remote_host:"Remote Host",request_id:"Request ID",user_agent:"User Agent",response_status:"Response Status",response_status_code:"Response Status Code",request_content_length:"Request Content Length",response_content_length:"Response Content Length",time_to_response_ns:"Time to Response NS"},Xh=Object(y.a)((function(e){return Object(f.a)(Object(p.a)({buttonContainer:{textAlign:"right"},pathLabel:{marginTop:0,marginBottom:32},objectKeyCol:{fontWeight:700,paddingRight:"10px",textAlign:"left"}},dt))}))((function(e){var t=e.modalOpen,a=e.logSearchElement,c=e.onClose,i=e.classes,r=Object.keys(a);return Object(We.jsx)(n.Fragment,{children:Object(We.jsx)(zn,{modalOpen:t,title:"Full Log Information",onClose:function(){c()},children:Object(We.jsxs)(k.a,{container:!0,children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)("table",{children:Object(We.jsx)("tbody",{children:r.map((function(e,t){return Object(We.jsxs)("tr",{children:[Object(We.jsx)("th",{className:i.objectKeyCol,children:be()($h,e,"".concat(e))}),Object(We.jsx)("td",{children:be()(a,e,"")})]},"logSearch-".concat(t.toString()))}))})})}),Object(We.jsx)(k.a,{item:!0,xs:12,className:i.buttonContainer,children:Object(We.jsx)(S.a,{type:"button",variant:"contained",color:"primary",onClick:c,children:"Close"})})]})})})})),em={setErrorSnackMessage:ce},tm=Object(o.b)((function(e){return{features:e.console.session.features}}),em),am=Object(y.a)((function(e){return Object(f.a)(Object(p.a)(Object(p.a)(Object(p.a)(Object(p.a)({inputBar:{flexGrow:1,marginLeft:15},advancedLabel:{display:"flex",alignItems:"center",color:"#091C42",border:0,backgroundColor:"transparent",cursor:"pointer","&:focus, &:active":{outline:"none"}},advancedLabelContainer:{marginTop:10},getInformationContainer:{textAlign:"right"},orderButton:{width:93},recordsLabel:{alignSelf:"center",marginLeft:15},blockCollapsed:{height:0,overflowY:"hidden",transitionDuration:"0.3s"},filterOpen:{height:200,marginBottom:12},endLineAction:{marginBottom:15},filtersContainer:{display:"flex",justifyContent:"space-between",marginBottom:12},innerContainer:{backgroundColor:"#fff",border:"#EAEDEE 1px solid",borderRadius:3,padding:10,marginBottom:15},noticeLabel:{marginLeft:15,marginBottom:15,fontSize:12,color:"#9C9C9C"},tableFOpen:{height:"calc(100vh - 561px)"},tableFClosed:{height:"calc(100vh - 349px)"},"@global":{".overrideMargin":{marginLeft:0}}},Ot),pt),St),(e.spacing(4),{container:{position:"relative",maxWidth:1180,padding:"20px 35px 0","& h6":{color:"#777777",fontSize:30},"& p":{"& span:not(*[class*='smallUnit'])":{fontSize:16}}},sectionTitle:{padding:"0px",margin:"0px"},topSpacer:{height:"8px"}})))}))(tm((function(e){var t=e.classes,a=e.features,c=e.setErrorSnackMessage,i=Object(n.useState)(!0),r=Object(m.a)(i,2),o=r[0],s=r[1],l=Object(n.useState)(null),d=Object(m.a)(l,2),u=d[0],b=d[1],j=Object(n.useState)(null),h=Object(m.a)(j,2),p=h[0],O=h[1],g=Object(n.useState)(!1),x=Object(m.a)(g,2),f=x[0],v=x[1],y=Object(n.useState)([]),C=Object(m.a)(y,2),w=C[0],T=C[1],N=Object(n.useState)(""),E=Object(m.a)(N,2),A=E[0],_=E[1],I=Object(n.useState)(""),M=Object(m.a)(I,2),z=M[0],D=M[1],L=Object(n.useState)(""),F=Object(m.a)(L,2),R=F[0],P=F[1],B=Object(n.useState)(""),U=Object(m.a)(B,2),G=U[0],K=U[1],W=Object(n.useState)(""),V=Object(m.a)(W,2),H=V[0],q=V[1],Y=Object(n.useState)(""),Q=Object(m.a)(Y,2),Z=Q[0],J=Q[1],$=Object(n.useState)("DESC"),X=Object(m.a)($,2),ee=X[0],te=X[1],ae=Object(n.useState)(["time","api_name","bucket","object","remote_host","request_id","user_agent","response_status"]),ne=Object(m.a)(ae,2),ce=ne[0],ie=ne[1],re=Object(n.useState)(0),oe=Object(m.a)(re,2),se=oe[0],le=oe[1],de=Object(n.useState)(!1),ue=Object(m.a)(de,2),je=ue[0],he=ue[1],me=Object(n.useState)(!1),pe=Object(m.a)(me,2),Oe=pe[0],ge=pe[1],xe=Object(n.useState)(null),ve=Object(m.a)(xe,2),ye=ve[0],Se=ve[1],Ce=null,ke=a&&a.includes("log-search"),we=Object(n.useCallback)((function(){if(!je&&ke){he(!0);var e="".concat(""!==A?"&fp=bucket:".concat(A):"").concat(""!==G?"&fp=object:".concat(G):"").concat(""!==z?"&fp=api_name:".concat(z):"").concat(""!==H?"&fp=request_id:".concat(H):"").concat(""!==R?"&fp=user_agent:".concat(R):"").concat(""!==Z?"&fp=response_status:".concat(Z):"");(e=e.trim()).endsWith(",")&&(e=e.slice(0,-1)),Ge.invoke("GET","/api/v1/logs/search?q=reqinfo".concat(""!==e?"".concat(e):"","&pageSize=100&pageNo=").concat(se,"&order=").concat("DESC"===ee?"timeDesc":"timeAsc").concat(null!==u?"&timeStart=".concat(u.toISOString()):"").concat(null!==p?"&timeEnd=".concat(p.toISOString()):"")).then((function(e){var t=e.results||[];s(!1),he(!1),T(t),le(se+1),null!==Ce&&Ce()})).catch((function(e){s(!1),he(!1),c(e)}))}}),[je,ke,A,G,z,H,R,Z,se,ee,u,p,Ce,c]);Object(n.useEffect)((function(){o&&(T([]),we())}),[o,ee,we]);return Object(We.jsxs)(n.Fragment,{children:[Oe&&null!==ye&&Object(We.jsx)(Xh,{logSearchElement:ye,modalOpen:Oe,onClose:function(){Se(null),ge(!1)}}),Object(We.jsx)(sc,{label:"Audit Logs"}),Object(We.jsxs)(k.a,{container:!0,className:t.container,children:[Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ru,{to:"/tools",label:"Return to Tools"})}),Object(We.jsxs)(k.a,{container:!0,className:t.logsSubContainer,children:[Object(We.jsx)(k.a,{item:!0,xs:12,className:"".concat(t.actionsTray," ").concat(t.timeContainers),children:Object(We.jsx)(Ws,{setTimeEnd:O,setTimeStart:b,timeEnd:p,timeStart:u})}),Object(We.jsx)(k.a,{item:!0,xs:12,className:"".concat(t.advancedLabelContainer),children:Object(We.jsx)("div",{className:"".concat(t.blockCollapsed," ").concat(f?t.filterOpen:""),children:Object(We.jsxs)("div",{className:t.innerContainer,children:[Object(We.jsxs)("div",{className:t.noticeLabel,children:["Enable your preferred options to get filtered records.",Object(We.jsx)("br",{}),"You can use '*' to match any character, '.' to signify a single character or '\\' to scape an special character (E.g. mybucket-*)"]}),Object(We.jsxs)("div",{className:t.filtersContainer,children:[Object(We.jsx)(Jh,{onChange:_,value:A,label:"Bucket",id:"bucket",name:"bucket"}),Object(We.jsx)(Jh,{onChange:D,value:z,label:"API Name",id:"api_name",name:"api_name"}),Object(We.jsx)(Jh,{onChange:P,value:R,label:"User Agent",id:"user_agent",name:"user_agent"})]}),Object(We.jsxs)("div",{className:t.filtersContainer,children:[Object(We.jsx)(Jh,{onChange:K,value:G,label:"Object",id:"object",name:"object"}),Object(We.jsx)(Jh,{onChange:q,value:H,label:"Request ID",id:"request_id",name:"request_id"}),Object(We.jsx)(Jh,{onChange:J,value:Z,label:"Response Status",id:"response_status",name:"response_status"})]})]})})}),Object(We.jsxs)(k.a,{item:!0,xs:12,className:"".concat(t.actionsTray," ").concat(t.endLineAction),children:[Object(We.jsx)("div",{children:Object(We.jsxs)("button",{type:"button",className:"".concat(t.advancedLabel," overrideMargin"),onClick:function(){v(!f)},children:["Advanced Filters"," ",f?Object(We.jsx)(Zh.a,{}):Object(We.jsx)(Bc.a,{})]})}),Object(We.jsx)(S.a,{type:"button",variant:"contained",color:"primary",onClick:function(){le(0),s(!0)},children:"Get Information"})]}),Object(We.jsx)(k.a,{item:!0,xs:12,children:Object(We.jsx)(ei,{columns:[{label:$h.time,elementKey:"time",enableSort:!0},{label:$h.api_name,elementKey:"api_name"},{label:$h.bucket,elementKey:"bucket"},{label:$h.object,elementKey:"object"},{label:$h.remote_host,elementKey:"remote_host"},{label:$h.request_id,elementKey:"request_id"},{label:$h.user_agent,elementKey:"user_agent"},{label:$h.response_status,elementKey:"response_status",renderFunction:function(e){return Object(We.jsx)(n.Fragment,{children:Object(We.jsxs)("span",{children:[e.response_status_code," (",e.response_status,")"]})})},renderFullObject:!0},{label:$h.request_content_length,elementKey:"request_content_length",renderFunction:fe},{label:$h.response_content_length,elementKey:"response_content_length",renderFunction:fe},{label:$h.time_to_response_ns,elementKey:"time_to_response_ns",renderFunction:Le,contentTextAlign:"right"}],isLoading:o,records:w,entityName:"Logs",customEmptyMessage:"There is no information with this criteria",idField:"request_id",columnsSelector:!0,columnsShown:ce,onColumnChange:function(e,t){var a=Object(Kt.a)(ce);t?a.includes(e)||a.push(e):a=ce.filter((function(t){return t!==e})),ie(a)},customPaperHeight:f?t.tableFOpen:t.tableFClosed,sortConfig:{currentSort:"time",currentDirection:ee,triggerSort:function(e){var t=be()(e,"sortDirection","DESC");te(t),le(0),s(!0)}},infiniteScrollConfig:{recordsCount:1e6,loadMoreRecords:function(e){return we(),new Promise((function(e){Ce=e}))}},itemActions:[{type:"view",onClick:function(e){Se(e),ge(!0)}}],textSelectable:!0})})]})]})]})}))),nm=Object(o.b)((function(e){return{open:e.system.sidebarOpen,needsRestart:e.system.serverNeedsRestart,isServerLoading:e.system.serverIsLoading,session:e.console.session,loadingProgress:e.system.loadingProgress,snackBarMessage:e.system.snackBar}}),{setMenuOpen:ee,serverNeedsRestart:te,serverIsLoading:function(e){return{type:_,isLoading:e}},setSnackBarMessage:ne}),cm=Object(y.a)((function(e){return Object(f.a)(Object(p.a)({root:{display:"flex","& .MuiPaper-root.MuiSnackbarContent-root":{borderRadius:"0px 0px 5px 5px",boxShadow:"none"}},toolbar:{background:e.palette.background.default,color:"black",paddingRight:24},toolbarIcon:Object(p.a)({display:"flex",alignItems:"center",justifyContent:"flex-end",padding:"0 8px"},e.mixins.toolbar),appBar:{zIndex:e.zIndex.drawer+1,transition:e.transitions.create(["width","margin"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen})},appBarShift:{marginLeft:245,width:"calc(100% - ".concat(245,"px)"),transition:e.transitions.create(["width","margin"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen})},menuButton:{marginRight:36},menuButtonHidden:{display:"none"},title:{flexGrow:1},drawerPaper:{position:"relative",whiteSpace:"nowrap",width:245,transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen}),overflowX:"hidden",background:"transparent linear-gradient(90deg, #073052 0%, #081C42 100%) 0% 0% no-repeat padding-box",boxShadow:"0px 3px 7px #00000014"},drawerPaperClose:Object(it.a)({overflowX:"hidden",transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),width:e.spacing(7)},e.breakpoints.up("sm"),{width:e.spacing(9)}),content:{flexGrow:1,height:"100vh",overflow:"auto",position:"relative"},container:{paddingBottom:e.spacing(4),margin:0,width:"100%",maxWidth:"initial"},paper:{padding:e.spacing(2),display:"flex",overflow:"auto",flexDirection:"column"},fixedHeight:{minHeight:240},warningBar:{background:e.palette.primary.main,color:"white",heigh:"60px",widht:"100%",lineHeight:"60px",textAlign:"center"},progress:{height:"3px",backgroundColor:"#eaeaea"}},Tt))}))(nm((function(e){var t=e.classes,a=(e.open,e.needsRestart),c=e.isServerLoading,i=e.serverNeedsRestart,r=e.serverIsLoading,o=e.session,l=e.loadingProgress,d=e.snackBarMessage,u=e.setSnackBarMessage,b=Object(n.useState)(!1),j=Object(m.a)(b,2),g=j[0],x=j[1],f=o.pages.reduce((function(e,t,a){return e[t]=!0,e}),{}),v=[{component:el,path:"/dashboard"},{component:fj,path:"/metrics"},{component:Mo,path:"/buckets"},{component:Mo,path:"/buckets/*"},{component:Xb,path:"/tools/watch"},{component:md,path:"/users/:userName+"},{component:md,path:"/users"},{component:Td,path:"/groups"},{component:Yo,path:"/policies/*"},{component:Yo,path:"/policies"},{component:Qb,path:"/tools/heal"},{component:Hb,path:"/tools/trace"},{component:rj,path:"/tools/diagnostics"},{component:Qh,path:"/tools/logs"},{component:am,path:"/tools/audit-logs"},{component:Vh,path:"/tools"},{component:su,path:"/settings"},{component:su,path:"/settings/:option"},{component:Sh,path:"/notification-endpoints/add/:service"},{component:kh,path:"/notification-endpoints/add"},{component:xh,path:"/notification-endpoints"},{component:Rh,path:"/tiers/add/:service"},{component:Dh,path:"/tiers/add"},{component:Ah,path:"/tiers"},{component:Cl,path:"/account",props:{changePassword:o.pages.includes("/account/change-password")}},{component:Gh,path:"/tenants"},{component:$j,path:"/tenants/add"},{component:gj,path:"/storage"},{component:gj,path:"/storage/volumes"},{component:gj,path:"/storage/drives"},{component:kb,path:"/namespaces/:tenantNamespace/tenants/:tenantName"},{component:Sj,path:"/namespaces/:tenantNamespace/tenants/:tenantName/hop"},{component:kb,path:"/namespaces/:tenantNamespace/tenants/:tenantName/pods/:podName"},{component:kb,path:"/namespaces/:tenantNamespace/tenants/:tenantName/summary"},{component:kb,path:"/namespaces/:tenantNamespace/tenants/:tenantName/metrics"},{component:kb,path:"/namespaces/:tenantNamespace/tenants/:tenantName/pods"},{component:kb,path:"/namespaces/:tenantNamespace/tenants/:tenantName/pools"},{component:kb,path:"/namespaces/:tenantNamespace/tenants/:tenantName/volumes"},{component:kb,path:"/namespaces/:tenantNamespace/tenants/:tenantName/license"},{component:kb,path:"/namespaces/:tenantNamespace/tenants/:tenantName/security"},{component:Pb,path:"/license"}].filter((function(e){return f[e.path]}));Object(n.useEffect)((function(){""!==d.message?"error"!==d.type&&x(!0):x(!1)}),[d]);var y=Object(s.g)(),C=!1;return("/metrics"===y.pathname||y.pathname.endsWith("/hop"))&&(C=!0),Object(We.jsx)(n.Fragment,{children:"ok"===o.status?Object(We.jsxs)("div",{className:t.root,children:[Object(We.jsx)(rt.a,{}),!C&&Object(We.jsx)(dl,{pages:o.pages}),Object(We.jsxs)("main",{className:t.content,children:[a&&Object(We.jsx)("div",{className:t.warningBar,children:c?Object(We.jsxs)(n.Fragment,{children:["The server is restarting.",Object(We.jsx)(O.a,{className:t.progress})]}):Object(We.jsxs)(n.Fragment,{children:["The instance needs to be restarted for configuration changes to take effect."," ",Object(We.jsx)(S.a,{color:"secondary",size:"small",onClick:function(){r(!0),Ge.invoke("POST","/api/v1/service/restart",{}).then((function(e){console.log("success restarting service"),console.log(e),r(!1),i(!1)})).catch((function(e){"Error 502"===e.errorMessage&&i(!1),r(!1),console.log("failure restarting service"),console.log(e)}))},children:"Restart"})]})}),l<100&&Object(We.jsx)(O.a,{className:t.progress,variant:"determinate",value:l}),Object(We.jsx)(tt,{}),Object(We.jsx)("div",{className:t.snackDiv,children:Object(We.jsx)(ot.a,{open:g,onClose:function(){x(!1),u("")},autoHideDuration:"error"===d.type?1e4:5e3,message:d.message,className:t.snackBarExternal,ContentProps:{className:"".concat(t.snackBar," ").concat("error"===d.type?t.errorSnackBar:"")}})}),Object(We.jsx)(s.c,{history:h,children:Object(We.jsxs)(s.d,{children:[v.map((function(e){return Object(We.jsx)(s.b,{exact:!0,path:e.path,children:function(t){return Object(We.jsx)(e.component,Object(p.a)(Object(p.a)({},t),e.props))}},e.path)})),v.length>0?Object(We.jsx)(s.a,{to:v[0].path}):null]})})]})]}):null})}))),im=function(e){var t=e.location,a=Object(n.useState)(""),c=Object(m.a)(a,2),i=c[0],r=c[1],o=Object(n.useState)(""),s=Object(m.a)(o,2),l=s[0],d=s[1];return Object(n.useEffect)((function(){var e=(t.search.match(/code=([^&]+)/)||[])[1],a=(t.search.match(/state=([^&]+)/)||[])[1],n=(t.search.match(/error=([^&]+)/)||[])[1],c=(t.search.match(/error_description=([^&]+)/)||[])[1];void 0!==n||void 0!==c?(r(n),d(c)):Ge.invoke("POST","/api/v1/login/oauth2/auth",{code:e,state:a}).then((function(e){e&&e.sessionId&&(he.a.setItem("token",e.sessionId),window.location.href="/")})).catch((function(e){window.location.href="/login"}))}),[t.search]),""!==i||""!==l?Object(We.jsxs)("div",{children:[Object(We.jsx)("h2",{children:"IDP Error:"}),Object(We.jsx)("p",{children:i}),Object(We.jsx)("p",{children:l})]}):null},rm=a(374),om="SESSION_RESPONSE";var sm=Object(o.b)((function(e){return{loggedIn:e.system.loggedIn}}),{userLoggedIn:X,consoleOperatorMode:function(e){return{type:N,operatorMode:e}},saveSessionResponse:function(e){return{type:om,message:e}},setDistributedMode:function(e){return{type:R,distributedSetup:e}}})((function(e){var t=e.Component,a=e.loggedIn,c=e.userLoggedIn,i=e.consoleOperatorMode,r=e.saveSessionResponse,o=e.setDistributedMode,l=Object(n.useState)(!0),d=Object(m.a)(l,2),u=d[0],b=d[1];return Object(n.useEffect)((function(){Ge.invoke("GET","/api/v1/session").then((function(e){r(e),c(!0),b(!1),o(e.distributedMode||!1),e.operator&&(i(!0),document.title="MinIO Operator")})).catch((function(){return b(!1)}))}),[r,i,c,o]),u?null:a?Object(We.jsx)(t,{}):Object(We.jsx)(s.a,{to:{pathname:"/login"}})})),lm=Object(rm.hot)((function(){return Object(We.jsx)(s.c,{history:h,children:Object(We.jsxs)(s.d,{children:[Object(We.jsx)(s.b,{exact:!0,path:"/oauth_callback",component:im}),Object(We.jsx)(s.b,{exact:!0,path:"/login",component:ct}),Object(We.jsx)(sm,{Component:cm})]})})})),dm=a(182),um=a(375),bm={loggedIn:!1,operatorMode:!1,session:"",userName:"",sidebarOpen:!localStorage.getItem("sidebarOpen")||JSON.parse(localStorage.getItem("sidebarOpen")).open,serverNeedsRestart:!1,serverIsLoading:!1,loadingProgress:100,snackBar:{message:"",detailedErrorMsg:"",type:"message"},modalSnackBar:{message:"",detailedErrorMsg:"",type:"message"},serverDiagnosticStatus:"",distributedSetup:!1};var jm={messages:[],traceStarted:!1};var hm={messages:[]};var mm={message:{}};var pm={messages:[]};var Om={session:{operator:!1,status:"",pages:[],features:[],distributedMode:!1,policy:{version:"",statement:[]}}};var gm={open:!1,addBucketName:"",addBucketVersioningEnabled:!1,addBucketLockingEnabled:!1,addBucketQuotaEnabled:!1,addBucketQuotaType:"hard",addBucketQuotaSize:"1",addBucketQuotaUnit:"TiB",addBucketRetentionEnabled:!1,addBucketRetentionMode:"compliance",addBucketRetentionUnit:"days",addBucketRetentionValidity:1,bucketDetails:{selectedTab:"summary",loadingBucket:!1,bucketInfo:null}};var xm={fileMode:!1,rewind:Object(p.a)({},{rewindEnabled:!1,bucketToRewind:"",dateToRewind:null})};var fm=a(376),vm=a.n(fm),ym={createTenant:{page:0,validPages:["tenantSize","configure","affinity","identityProvider","security","encryption"],advancedModeOn:!1,storageClasses:[],limitSize:{},fields:{nameTenant:{tenantName:"",namespace:"",selectedStorageClass:""},configure:{customImage:!0,imageName:"",customDockerhub:!1,imageRegistry:"",imageRegistryUsername:"",imageRegistryPassword:"",exposeMinIO:!0,exposeConsole:!0,tenantCustom:!1,logSearchCustom:!1,prometheusCustom:!1,logSearchVolumeSize:"5",logSearchSizeFactor:"Gi",logSearchImage:"",kesImage:"",logSearchPostgresImage:"",logSearchPostgresInitImage:"",prometheusVolumeSize:"5",prometheusSizeFactor:"Gi",logSearchSelectedStorageClass:"",prometheusSelectedStorageClass:"",prometheusImage:"",prometheusSidecarImage:"",prometheusInitImage:"",tenantSecurityContext:{runAsUser:"1000",runAsGroup:"1000",fsGroup:"1000",runAsNonRoot:!0},logSearchSecurityContext:{runAsUser:"1000",runAsGroup:"1000",fsGroup:"1000",runAsNonRoot:!0},logSearchPostgresSecurityContext:{runAsUser:"999",runAsGroup:"999",fsGroup:"999",runAsNonRoot:!0},prometheusSecurityContext:{runAsUser:"1000",runAsGroup:"1000",fsGroup:"1000",runAsNonRoot:!0}},identityProvider:{idpSelection:"Built-in",accessKeys:[Tj(16)],secretKeys:[Tj(32)],openIDConfigurationURL:"",openIDClientID:"",openIDSecretID:"",openIDCallbackURL:"",openIDClaimName:"",openIDScopes:"",ADURL:"",ADSkipTLS:!1,ADServerInsecure:!1,ADUserNameSearchFilter:"",ADGroupSearchBaseDN:"",ADGroupSearchFilter:"",ADGroupNameAttribute:"",ADUserDNs:[""],ADUserNameFormat:"",ADLookupBindDN:"",ADLookupBindPassword:"",ADUserDNSearchBaseDN:"",ADUserDNSearchFilter:"",ADServerStartTLS:!1},security:{enableAutoCert:!0,enableCustomCerts:!1,enableTLS:!0},encryption:{enableEncryption:!1,encryptionType:"vault",gemaltoEndpoint:"",gemaltoToken:"",gemaltoDomain:"",gemaltoRetry:"0",awsEndpoint:"",awsRegion:"",awsKMSKey:"",awsAccessKey:"",awsSecretKey:"",awsToken:"",vaultEndpoint:"",vaultEngine:"",vaultNamespace:"",vaultPrefix:"",vaultAppRoleEngine:"",vaultId:"",vaultSecret:"",vaultRetry:"0",vaultPing:"0",azureEndpoint:"",azureTenantID:"",azureClientID:"",azureClientSecret:"",gcpProjectID:"",gcpEndpoint:"",gcpClientEmail:"",gcpClientID:"",gcpPrivateKeyID:"",gcpPrivateKey:"",enableCustomCertsForKES:!1,replicas:"1",kesSecurityContext:{runAsUser:"1000",runAsGroup:"1000",fsGroup:"1000",runAsNonRoot:!0}},tenantSize:{volumeSize:"100",sizeFactor:"Gi",drivesPerServer:"1",nodes:"4",memoryNode:"2",ecParity:"",ecParityChoices:[],cleanECChoices:[],maxAllocableMemo:0,memorySize:{error:"",limit:0,request:0},distribution:{error:"",nodes:0,persistentVolumes:0,disks:0,volumePerDisk:0},ecParityCalc:{error:0,defaultEC:"",erasureCodeSet:0,maxEC:"",rawCapacity:"0",storageFactors:[]},limitSize:{}},affinity:{nodeSelectorLabels:"",podAffinity:"default",withPodAntiAffinity:!0}},certificates:{minioCertificates:[{id:Date.now().toString(),key:"",cert:"",encoded_key:"",encoded_cert:""}],caCertificates:[{id:Date.now().toString(),key:"",cert:"",encoded_key:"",encoded_cert:""}],consoleCaCertificates:[{id:Date.now().toString(),key:"",cert:"",encoded_key:"",encoded_cert:""}],consoleCertificate:{id:"console_cert_pair",key:"",cert:"",encoded_key:"",encoded_cert:""},serverCertificate:{id:"encryptionServerCertificate",key:"",cert:"",encoded_key:"",encoded_cert:""},clientCertificate:{id:"encryptionClientCertificate",key:"",cert:"",encoded_key:"",encoded_cert:""},vaultCertificate:{id:"encryptionVaultCertificate",key:"",cert:"",encoded_key:"",encoded_cert:""},vaultCA:{id:"encryptionVaultCA",key:"",cert:"",encoded_key:"",encoded_cert:""},gemaltoCA:{id:"encryptionGemaltoCA",key:"",cert:"",encoded_key:"",encoded_cert:""}}},tenantDetails:{currentTenant:"",currentNamespace:"",loadingTenant:!1,tenantInfo:null,currentTab:"summary"}};var Sm={selectedDrive:""};var Cm={zoom:{openZoom:!1,widgetRender:null}};var km=Object(dm.b)({system:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:bm,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case T:return Object(p.a)(Object(p.a)({},e),{},{loggedIn:t.logged});case N:return Object(p.a)(Object(p.a)({},e),{},{operatorMode:t.operatorMode});case E:return localStorage.setItem("sidebarOpen",JSON.stringify({open:t.open})),Object(p.a)(Object(p.a)({},e),{},{sidebarOpen:t.open});case A:return Object(p.a)(Object(p.a)({},e),{},{serverNeedsRestart:t.needsRestart});case _:return Object(p.a)(Object(p.a)({},e),{},{serverIsLoading:t.isLoading});case I:return Object(p.a)(Object(p.a)({},e),{},{loadingProgress:t.loadingProgress});case M:return Object(p.a)(Object(p.a)({},e),{},{snackBar:{message:t.message,detailedErrorMsg:"",type:"message"}});case D:return Object(p.a)(Object(p.a)({},e),{},{snackBar:{message:t.message.errorMessage,detailedErrorMsg:t.message.detailedError,type:"error"}});case L:return Object(p.a)(Object(p.a)({},e),{},{modalSnackBar:{message:t.message,detailedErrorMsg:"",type:"message"}});case F:return Object(p.a)(Object(p.a)({},e),{},{modalSnackBar:{message:t.message.errorMessage,detailedErrorMsg:t.message.detailedError,type:"error"}});case z:return Object(p.a)(Object(p.a)({},e),{},{serverDiagnosticStatus:t.serverDiagnosticStatus});case R:return Object(p.a)(Object(p.a)({},e),{},{distributedSetup:t.distributedSetup});default:return e}},trace:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:jm,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Ub:return Object(p.a)(Object(p.a)({},e),{},{messages:[].concat(Object(Kt.a)(e.messages),[t.message])});case Gb:return Object(p.a)(Object(p.a)({},e),{},{messages:[]});case Kb:return Object(p.a)(Object(p.a)({},e),{},{traceStarted:t.status});default:return e}},logs:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:hm,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Hh:return Object(p.a)(Object(p.a)({},e),{},{messages:[].concat(Object(Kt.a)(e.messages),[t.message])});case qh:return Object(p.a)(Object(p.a)({},e),{},{messages:[]});default:return e}},watch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:pm,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Zb:return Object(p.a)(Object(p.a)({},e),{},{messages:[].concat(Object(Kt.a)(e.messages),[t.message])});case Jb:return Object(p.a)(Object(p.a)({},e),{},{messages:[]});default:return e}},console:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Om,t=arguments.length>1?arguments[1]:void 0;return t.type===om?Object(p.a)(Object(p.a)({},e),{},{session:t.message}):e},buckets:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:gm,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case rn:return Object(p.a)(Object(p.a)({},e),{},{open:t.open});case on:return Object(p.a)(Object(p.a)({},e),{},{addBucketName:t.name});case sn:return Object(p.a)(Object(p.a)({},e),{},{addBucketVersioningEnabled:t.versioned});case ln:return Object(p.a)(Object(p.a)({},e),{},{addBucketLockingEnabled:t.locking});case dn:return Object(p.a)(Object(p.a)({},e),{},{addBucketQuotaEnabled:t.quota});case un:return Object(p.a)(Object(p.a)({},e),{},{addBucketQuotaType:t.quotaType});case bn:return Object(p.a)(Object(p.a)({},e),{},{addBucketQuotaSize:t.quotaSize});case jn:return Object(p.a)(Object(p.a)({},e),{},{addBucketQuotaUnit:t.quotaUnit});case mn:return Object(p.a)(Object(p.a)({},e),{},{addBucketRetentionEnabled:t.retention});case pn:return Object(p.a)(Object(p.a)({},e),{},{addBucketRetentionMode:t.retentionMode});case On:return Object(p.a)(Object(p.a)({},e),{},{addBucketRetentionUnit:t.retentionUnit});case gn:return Object(p.a)(Object(p.a)({},e),{},{addBucketRetentionValidity:t.retentionValidity});case xn:return Object(p.a)(Object(p.a)({},e),{},{bucketDetails:Object(p.a)(Object(p.a)({},e.bucketDetails),{},{selectedTab:t.tab})});case hn:return Object(p.a)(Object(p.a)({},e),{},{addBucketName:"",addBucketVersioningEnabled:!1,addBucketLockingEnabled:!1,addBucketQuotaEnabled:!1,addBucketQuotaType:"hard",addBucketQuotaSize:"1",addBucketQuotaUnit:"TiB",addBucketRetentionEnabled:!1,addBucketRetentionMode:"compliance",addBucketRetentionUnit:"days",addBucketRetentionValidity:1});case fn:return Object(p.a)(Object(p.a)({},e),{},{bucketDetails:Object(p.a)(Object(p.a)({},e.bucketDetails),{},{loadingBucket:t.state})});case vn:return Object(p.a)(Object(p.a)({},e),{},{bucketDetails:Object(p.a)(Object(p.a)({},e.bucketDetails),{},{bucketInfo:t.info})});default:return e}},objectBrowser:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:xm,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case gr:var a=Object(p.a)(Object(p.a)({},e.rewind),{},{rewindEnabled:t.state,bucketToRewind:t.bucket,dateToRewind:t.dateRewind});return Object(p.a)(Object(p.a)({},e),{},{rewind:a});case xr:var n={rewindEnabled:!1,bucketToRewind:"",dateToRewind:null};return Object(p.a)(Object(p.a)({},e),{},{rewind:n});case fr:return Object(p.a)(Object(p.a)({},e),{},{fileMode:t.status});default:return e}},healthInfo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:mm,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case ej:return Object(p.a)(Object(p.a)({},e),{},{message:t.message});case tj:return Object(p.a)(Object(p.a)({},e),{},{message:{}});default:return e}},tenants:function(){var e,t,a,n,c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ym,i=arguments.length>1?arguments[1]:void 0,r=Object(p.a)({},c);switch(i.type){case lu:return r.createTenant.page=i.page,Object(p.a)({},r);case du:return r.createTenant.advancedModeOn=i.state,Object(p.a)({},r);case uu:if(vm()(r.createTenant.fields,"".concat(i.pageName,".").concat(i.field))){var o=be()(r.createTenant.fields,"".concat(i.pageName),{}),s={};s[i.field]=i.value;var l=Object(p.a)(Object(p.a)({},o),s);return r.createTenant.fields[i.pageName]=Object(p.a)({},l),Object(p.a)({},r)}return c;case bu:var d=c.createTenant.validPages;if(i.valid)d.includes(i.pageName)||(d.push(i.pageName),r.createTenant.validPages=Object(Kt.a)(d));else{var u=d.filter((function(e){return e!==i.pageName}));r.createTenant.validPages=Object(Kt.a)(u)}return Object(p.a)({},r);case hu:var b=Object(p.a)(Object(p.a)({},c),{},{createTenant:Object(p.a)(Object(p.a)({},c.createTenant),{},{storageClasses:i.storageClasses})});return Object(p.a)({},b);case mu:var j=[].concat(Object(Kt.a)(c.createTenant.certificates.minioCertificates),[{id:Date.now().toString(),key:"",cert:"",encoded_key:"",encoded_cert:""}]);return r.createTenant.certificates.minioCertificates=Object(Kt.a)(j),Object(p.a)({},r);case pu:var h=c.createTenant.certificates.minioCertificates,m=h.map((function(e){var t;return e.id===i.id?Object(p.a)(Object(p.a)({},e),{},(t={},Object(it.a)(t,i.key,i.fileName),Object(it.a)(t,"encoded_".concat(i.key),i.value),t)):e}));return r.createTenant.certificates.minioCertificates=Object(Kt.a)(m),Object(p.a)({},r);case Ou:var O=c.createTenant.certificates.minioCertificates;if(O.length>1){var g=O.filter((function(e){return e.id!==i.id}));return r.createTenant.certificates.minioCertificates=Object(Kt.a)(g),Object(p.a)({},r)}return Object(p.a)({},c);case gu:var x=[].concat(Object(Kt.a)(c.createTenant.certificates.caCertificates),[{id:Date.now().toString(),key:"",cert:"",encoded_key:"",encoded_cert:""}]);return r.createTenant.certificates.caCertificates=Object(Kt.a)(x),Object(p.a)({},r);case xu:var f=c.createTenant.certificates.caCertificates,v=f.map((function(e){var t;return e.id===i.id?Object(p.a)(Object(p.a)({},e),{},(t={},Object(it.a)(t,i.key,i.fileName),Object(it.a)(t,"encoded_".concat(i.key),i.value),t)):e}));return r.createTenant.certificates.caCertificates=Object(Kt.a)(v),Object(p.a)({},r);case fu:var y=c.createTenant.certificates.caCertificates;if(y.length>1){var S=y.filter((function(e){return e.id!==i.id}));return r.createTenant.certificates.caCertificates=Object(Kt.a)(S),Object(p.a)({},r)}return Object(p.a)({},c);case vu:var C=c.createTenant.certificates.consoleCertificate;return r.createTenant.certificates.consoleCertificate=Object(p.a)(Object(p.a)({},C),{},(e={},Object(it.a)(e,i.key,i.fileName),Object(it.a)(e,"encoded_".concat(i.key),i.value),e)),Object(p.a)({},r);case yu:var k=[].concat(Object(Kt.a)(c.createTenant.certificates.consoleCaCertificates),[{id:Date.now().toString(),key:"",cert:"",encoded_key:"",encoded_cert:""}]);return r.createTenant.certificates.consoleCaCertificates=Object(Kt.a)(k),Object(p.a)({},r);case Su:var w=c.createTenant.certificates.consoleCaCertificates,T=w.map((function(e){var t;return e.id===i.id?Object(p.a)(Object(p.a)({},e),{},(t={},Object(it.a)(t,i.key,i.fileName),Object(it.a)(t,"encoded_".concat(i.key),i.value),t)):e}));return r.createTenant.certificates.consoleCaCertificates=Object(Kt.a)(T),Object(p.a)({},r);case Cu:var N=c.createTenant.certificates.consoleCaCertificates;if(N.length>1){var E=N.filter((function(e){return e.id!==i.id}));return r.createTenant.certificates.consoleCaCertificates=Object(Kt.a)(E),Object(p.a)({},r)}return Object(p.a)({},c);case ku:var A=c.createTenant.certificates.serverCertificate;return r.createTenant.certificates.serverCertificate=Object(p.a)(Object(p.a)({},A),{},(t={},Object(it.a)(t,i.key,i.fileName),Object(it.a)(t,"encoded_".concat(i.key),i.value),t)),Object(p.a)({},r);case wu:var _=c.createTenant.certificates.clientCertificate;return r.createTenant.certificates.clientCertificate=Object(p.a)(Object(p.a)({},_),{},(a={},Object(it.a)(a,i.key,i.fileName),Object(it.a)(a,"encoded_".concat(i.key),i.value),a)),Object(p.a)({},r);case Tu:var I=c.createTenant.certificates.vaultCertificate;return r.createTenant.certificates.vaultCertificate=Object(p.a)(Object(p.a)({},I),{},(n={},Object(it.a)(n,i.key,i.fileName),Object(it.a)(n,"encoded_".concat(i.key),i.value),n)),Object(p.a)({},r);case Nu:var M=c.createTenant.certificates.vaultCA;return r.createTenant.certificates.vaultCA=Object(p.a)(Object(p.a)({},M),{},{cert:i.fileName,encoded_cert:i.value}),Object(p.a)({},r);case Eu:var z=c.createTenant.certificates.gemaltoCA;return r.createTenant.certificates.gemaltoCA=Object(p.a)(Object(p.a)({},z),{},{cert:i.fileName,encoded_cert:i.value}),Object(p.a)({},r);case ju:return Object(p.a)(Object(p.a)({},c),{},{createTenant:{page:0,validPages:["tenantSize","configure","affinity","identityProvider","security","encryption"],advancedModeOn:!1,storageClasses:[],limitSize:{},fields:{nameTenant:{tenantName:"",namespace:"",selectedStorageClass:""},configure:{customImage:!1,imageName:"",customDockerhub:!1,imageRegistry:"",imageRegistryUsername:"",imageRegistryPassword:"",exposeMinIO:!0,exposeConsole:!0,tenantCustom:!1,logSearchCustom:!1,prometheusCustom:!1,logSearchVolumeSize:"5",logSearchSizeFactor:"Gi",logSearchSelectedStorageClass:"",logSearchImage:"",kesImage:"",logSearchPostgresImage:"",logSearchPostgresInitImage:"",prometheusVolumeSize:"5",prometheusSizeFactor:"Gi",prometheusSelectedStorageClass:"",prometheusImage:"",prometheusSidecarImage:"",prometheusInitImage:"",tenantSecurityContext:{runAsUser:"1000",runAsGroup:"1000",fsGroup:"1000",runAsNonRoot:!0},logSearchSecurityContext:{runAsUser:"1000",runAsGroup:"1000",fsGroup:"1000",runAsNonRoot:!0},logSearchPostgresSecurityContext:{runAsUser:"999",runAsGroup:"999",fsGroup:"999",runAsNonRoot:!0},prometheusSecurityContext:{runAsUser:"1000",runAsGroup:"1000",fsGroup:"1000",runAsNonRoot:!0}},identityProvider:{idpSelection:"Built-in",accessKeys:[Tj(16)],secretKeys:[Tj(32)],openIDConfigurationURL:"",openIDClientID:"",openIDSecretID:"",openIDCallbackURL:"",openIDClaimName:"",openIDScopes:"",ADURL:"",ADSkipTLS:!1,ADServerInsecure:!1,ADUserNameSearchFilter:"",ADGroupSearchBaseDN:"",ADGroupSearchFilter:"",ADGroupNameAttribute:"",ADUserDNs:[""],ADUserNameFormat:"",ADLookupBindDN:"",ADLookupBindPassword:"",ADUserDNSearchBaseDN:"",ADUserDNSearchFilter:"",ADServerStartTLS:!1},security:{enableAutoCert:!0,enableCustomCerts:!1,enableTLS:!0},encryption:{enableEncryption:!1,encryptionType:"vault",gemaltoEndpoint:"",gemaltoToken:"",gemaltoDomain:"",gemaltoRetry:"0",awsEndpoint:"",awsRegion:"",awsKMSKey:"",awsAccessKey:"",awsSecretKey:"",awsToken:"",vaultEndpoint:"",vaultEngine:"",vaultNamespace:"",vaultPrefix:"",vaultAppRoleEngine:"",vaultId:"",vaultSecret:"",vaultRetry:"0",vaultPing:"0",azureEndpoint:"",azureTenantID:"",azureClientID:"",azureClientSecret:"",gcpProjectID:"",gcpEndpoint:"",gcpClientEmail:"",gcpClientID:"",gcpPrivateKeyID:"",gcpPrivateKey:"",enableCustomCertsForKES:!1,replicas:"1",kesSecurityContext:{runAsUser:"1000",runAsGroup:"1000",fsGroup:"1000",runAsNonRoot:!0}},tenantSize:{volumeSize:"100",sizeFactor:"Gi",drivesPerServer:"1",nodes:"4",memoryNode:"2",ecParity:"",ecParityChoices:[],cleanECChoices:[],maxAllocableMemo:0,memorySize:{error:"",limit:0,request:0},distribution:{error:"",nodes:0,persistentVolumes:0,disks:0,volumePerDisk:0},ecParityCalc:{error:0,defaultEC:"",erasureCodeSet:0,maxEC:"",rawCapacity:"0",storageFactors:[]},limitSize:{}},affinity:{nodeSelectorLabels:"",podAffinity:"default",withPodAntiAffinity:!0}},certificates:{minioCertificates:[{id:Date.now().toString(),key:"",cert:"",encoded_key:"",encoded_cert:""}],caCertificates:[{id:Date.now().toString(),key:"",cert:"",encoded_key:"",encoded_cert:""}],consoleCaCertificates:[{id:Date.now().toString(),key:"",cert:"",encoded_key:"",encoded_cert:""}],consoleCertificate:{id:"console_cert_pair",key:"",cert:"",encoded_key:"",encoded_cert:""},serverCertificate:{id:"encryptionServerCertificate",key:"",cert:"",encoded_key:"",encoded_cert:""},clientCertificate:{id:"encryptionClientCertificate",key:"",cert:"",encoded_key:"",encoded_cert:""},vaultCertificate:{id:"encryptionVaultCertificate",key:"",cert:"",encoded_key:"",encoded_cert:""},vaultCA:{id:"encryptionVaultCA",key:"",cert:"",encoded_key:"",encoded_cert:""},gemaltoCA:{id:"encryptionGemaltoCA",key:"",cert:"",encoded_key:"",encoded_cert:""}}}});case Au:var D=Object(p.a)(Object(p.a)({},c.tenantDetails),{},{loadingTenant:i.state});return Object(p.a)(Object(p.a)({},c),{},{tenantDetails:Object(p.a)({},D)});case _u:var L=Object(p.a)(Object(p.a)({},c.tenantDetails),{},{currentTenant:i.name,currentNamespace:i.namespace});return Object(p.a)(Object(p.a)({},c),{},{tenantDetails:Object(p.a)({},L)});case Iu:var F=null;i.tenant&&(F={tenantInfo:Object(p.a)({},i.tenant)});var R=Object(p.a)(Object(p.a)({},c.tenantDetails),F);return Object(p.a)(Object(p.a)({},c),{},{tenantDetails:Object(p.a)({},R)});case Mu:var P=Object(p.a)(Object(p.a)({},c.tenantDetails),{},{currentTab:i.tab});return Object(p.a)(Object(p.a)({},c),{},{tenantDetails:Object(p.a)({},P)});default:return c}},directCSI:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Sm,t=arguments.length>1?arguments[1]:void 0;if(t.type===dj){if(""!==t.driveName){var a=Object(p.a)({},e);return a.selectedDrive=t.driveName,a}return e}return e},dashboard:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Cm,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Os:return Object(p.a)(Object(p.a)({},e),{},{zoom:{openZoom:!0,widgetRender:Object(p.a)({},t.widget)}});case gs:return Object(p.a)(Object(p.a)({},e),{},{zoom:{openZoom:!1,widgetRender:null}});default:return e}}}),wm=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||dm.c;Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));var Tm=a(699),Nm=a(753),Em=(a(596),a(597),a(598),a(599),a(377)),Am=Object(Em.a)({palette:{primary:{light:"#073052",main:"#081C42",dark:"#05122B",contrastText:"#fff"},secondary:{light:"#ff7961",main:"#f44336",dark:"#ba000d",contrastText:"#000"},grey:{100:"#f0f0f0",200:"#e6e6e6",300:"#cccccc",400:"#999999",500:"#8c8c8c",600:"#737373",700:"#666666",800:"#4d4d4d",900:"#333333"},background:{default:"#fff"},success:{main:"#4ccb92"},warning:{main:"#FFBD62"},error:{light:"#e03a48",main:"#C83B51",contrastText:"#fff"}},typography:{fontFamily:["Lato","sans-serif"].join(","),h1:{fontWeight:"bold",color:"#081C42"},h2:{fontWeight:"bold",color:"#081C42"},h3:{fontWeight:"bold",color:"#081C42"},h4:{fontWeight:"bold",color:"#081C42"},h5:{fontWeight:"bold",color:"#081C42"},h6:{fontWeight:"bold",color:"#000000"}},components:{MuiButton:{styleOverrides:{root:{borderRadius:3,height:40,padding:"0 20px",fontSize:14,fontWeight:600,boxShadow:"none","& .MuiSvgIcon-root":{maxHeight:18},"&.MuiButton-contained.Mui-disabled":{backgroundColor:"#EAEDEE",fontWeight:600,color:"#767676"},"& .MuiButton-iconSizeMedium > *:first-of-type":{fontSize:12}}}},MuiPaper:{styleOverrides:{elevation1:{boxShadow:"none",border:"#EAEDEE 1px solid",borderRadius:3}}},MuiListItem:{styleOverrides:{root:{"&.MuiListItem-root.Mui-selected":{background:"inherit","& .MuiTypography-root":{fontWeight:"bold"}}}}}}}),_m=Object(y.a)({"@global":{".MuiButton-contained":{fontSize:"14px",textTransform:"capitalize",padding:"16px 25px 16px 25px",borderRadius:3},".MuiButton-sizeSmall":{padding:"4px 10px",fontSize:"0.8125rem"},".MuiTableCell-head":{borderRadius:"3px 3px 0px 0px",fontSize:13},".MuiPaper-root":{borderRadius:3},".MuiDrawer-paperAnchorDockedLeft":{borderRight:0},".MuiDrawer-root":{"& .MuiPaper-root":{borderRadius:0}},hr:{borderTop:0,borderLeft:0,borderRight:0,borderColor:"#999999",backgroundColor:"transparent"}}})((function(){return null}));r.a.render(Object(We.jsxs)(o.a,{store:Object(dm.d)(km,wm(Object(dm.a)(um.a))),children:[Object(We.jsx)(_m,{}),Object(We.jsx)(Tm.a,{injectFirst:!0,children:Object(We.jsx)(Nm.a,{theme:Am,children:Object(We.jsx)(lm,{})})})]}),document.getElementById("root")),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((function(e){e.unregister()}))}},[[600,1,2]]]);
|
|
//# sourceMappingURL=main.a5d7537d.chunk.js.map
|