Files
openmaxio-object-browser/portal-ui/build/static/js/4335.71c8fc7f.chunk.js
Alex 3875fb3eaa Release v0.31.0 (#2912)
Signed-off-by: Benjamin Perez <benjamin@bexsoft.net>
Co-authored-by: Benjamin Perez <benjamin@bexsoft.net>
2023-06-29 12:21:34 -07:00

2 lines
25 KiB
JavaScript

(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[4335],{90282:function(e,a,l){"use strict";l.d(a,{Z:function(){return Z}});var t=l(29439),n=l(1413),i=l(72791),r=l(26181),s=l.n(r),o=l(61889),u=l(30829),c=l(20068),d=l(13400),v=l(99663),b=l(86711),p=l(11135),h=l(25787),f=l(23814),x=l(29945),m=l(20890),g=l(80184),S=(0,h.Z)((function(e){var a;return(0,p.Z)({errorBlock:{color:(null===(a=e.palette)||void 0===a?void 0:a.error.main)||"#C83B51"}})}))((function(e){var a=e.classes,l=e.errorMessage,t=e.withBreak,n=void 0===t||t;return(0,g.jsxs)(i.Fragment,{children:[n&&(0,g.jsx)("br",{}),(0,g.jsx)(m.Z,{component:"p",variant:"body1",className:a.errorBlock,children:l})]})})),Z=(0,h.Z)((function(e){return(0,p.Z)((0,n.Z)((0,n.Z)((0,n.Z)((0,n.Z)({},f.YI),f.Hr),{},{valueString:{maxWidth:350,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",marginTop:2},fileInputField:{margin:"13px 0","@media (max-width: 900px)":{flexFlow:"column"}}},f.bV),{},{inputLabel:(0,n.Z)((0,n.Z)({},f.YI.inputLabel),{},{fontWeight:"normal"}),textBoxContainer:(0,n.Z)((0,n.Z)({},f.YI.textBoxContainer),{},{maxWidth:"100%",border:"1px solid #eaeaea",paddingLeft:"15px"})}))}))((function(e){var a=e.label,l=e.classes,n=e.onChange,r=e.id,p=e.name,h=e.disabled,f=void 0!==h&&h,m=e.tooltip,Z=void 0===m?"":m,C=e.required,A=e.error,j=void 0===A?"":A,E=e.accept,y=void 0===E?"":E,w=e.value,T=void 0===w?"":w,N=(0,i.useState)(!1),I=(0,t.Z)(N,2),U=I[0],W=I[1];return(0,g.jsx)(i.Fragment,{children:(0,g.jsxs)(o.ZP,{item:!0,xs:12,className:"".concat(l.fileInputField," ").concat(l.fieldBottom," ").concat(l.fieldContainer," ").concat(""!==j?l.errorInField:""),children:[""!==a&&(0,g.jsxs)(u.Z,{htmlFor:r,className:"".concat(""!==j?l.fieldLabelError:""," ").concat(l.inputLabel),children:[(0,g.jsxs)("span",{children:[a,C?"*":""]}),""!==Z&&(0,g.jsx)("div",{className:l.tooltipContainer,children:(0,g.jsx)(c.Z,{title:Z,placement:"top-start",children:(0,g.jsx)("div",{className:l.tooltip,children:(0,g.jsx)(x.byK,{})})})})]}),U||""===T?(0,g.jsxs)("div",{className:l.textBoxContainer,children:[(0,g.jsx)("input",{type:"file",name:p,onChange:function(e){var a=s()(e,"target.files[0].name","");!function(e,a){var l=e.target.files[0],t=new FileReader;t.readAsDataURL(l),t.onload=function(){var e=t.result;if(e){var l=e.toString().split("base64,");2===l.length&&a(l[1])}}}(e,(function(e){n(e,a)}))},accept:y,required:C,disabled:f,className:l.fileInputField}),""!==T&&(0,g.jsx)(d.Z,{color:"primary","aria-label":"upload picture",component:"span",onClick:function(){W(!1)},disableRipple:!1,disableFocusRipple:!1,size:"small",children:(0,g.jsx)(b.Z,{})}),""!==j&&(0,g.jsx)(S,{errorMessage:j})]}):(0,g.jsxs)("div",{className:l.fileReselect,children:[(0,g.jsx)("div",{className:l.valueString,children:T}),(0,g.jsx)(d.Z,{color:"primary","aria-label":"upload picture",component:"span",onClick:function(){W(!0)},disableRipple:!1,disableFocusRipple:!1,size:"small",children:(0,g.jsx)(v.Z,{})})]})]})})}))},21435:function(e,a,l){"use strict";var t=l(29439),n=l(1413),i=l(72791),r=l(27391),s=l(61889),o=l(30829),u=l(20068),c=l(13400),d=l(20165),v=l(3579),b=l(11135),p=l(72455),h=l(25787),f=l(23814),x=l(29945),m=l(28182),g=l(80184),S=(0,p.Z)((function(e){return(0,b.Z)((0,n.Z)({},f.gM))}));function Z(e){var a=S();return(0,g.jsx)(r.Z,(0,n.Z)({InputProps:{classes:a}},e))}a.Z=(0,h.Z)((function(e){return(0,b.Z)((0,n.Z)((0,n.Z)((0,n.Z)({},f.YI),f.Hr),{},{textBoxContainer:{flexGrow:1,position:"relative"},overlayAction:{position:"absolute",right:5,top:6,"& svg":{maxWidth:15,maxHeight:15},"&.withLabel":{top:5}}}))}))((function(e){var a=e.label,l=e.onChange,r=e.value,b=e.id,p=e.name,h=e.type,f=void 0===h?"text":h,S=e.autoComplete,C=void 0===S?"off":S,A=e.disabled,j=void 0!==A&&A,E=e.multiline,y=void 0!==E&&E,w=e.tooltip,T=void 0===w?"":w,N=e.index,I=void 0===N?0:N,U=e.error,W=void 0===U?"":U,O=e.required,R=void 0!==O&&O,P=e.placeholder,k=void 0===P?"":P,F=e.min,z=e.max,L=e.overlayId,M=e.overlayIcon,B=void 0===M?null:M,K=e.overlayObject,H=void 0===K?null:K,V=e.extraInputProps,q=void 0===V?{}:V,G=e.overlayAction,_=e.noLabelMinWidth,J=void 0!==_&&_,D=e.pattern,Y=void 0===D?"":D,X=e.autoFocus,$=void 0!==X&&X,Q=e.classes,ee=e.className,ae=void 0===ee?"":ee,le=e.onKeyPress,te=e.onFocus,ne=e.onPaste,ie=(0,n.Z)({"data-index":I},q),re=(0,i.useState)(!1),se=(0,t.Z)(re,2),oe=se[0],ue=se[1];"number"===f&&F&&(ie.min=F),"number"===f&&z&&(ie.max=z),""!==Y&&(ie.pattern=Y);var ce=B,de=f;return"password"===f&&null===B&&(ce=oe?(0,g.jsx)(d.Z,{}):(0,g.jsx)(v.Z,{}),de=oe?"text":"password"),(0,g.jsx)(i.Fragment,{children:(0,g.jsxs)(s.ZP,{container:!0,className:(0,m.Z)(""!==ae?ae:"",""!==W?Q.errorInField:Q.inputBoxContainer),children:[""!==a&&(0,g.jsxs)(o.Z,{htmlFor:b,className:J?Q.noMinWidthLabel:Q.inputLabel,children:[(0,g.jsxs)("span",{children:[a,R?"*":""]}),""!==T&&(0,g.jsx)("div",{className:Q.tooltipContainer,children:(0,g.jsx)(u.Z,{title:T,placement:"top-start",children:(0,g.jsx)("div",{className:Q.tooltip,children:(0,g.jsx)(x.byK,{})})})})]}),(0,g.jsxs)("div",{className:Q.textBoxContainer,children:[(0,g.jsx)(Z,{id:b,name:p,fullWidth:!0,value:r,autoFocus:$,disabled:j,onChange:l,type:de,multiline:y,autoComplete:C,inputProps:ie,error:""!==W,helperText:W,placeholder:k,className:Q.inputRebase,onKeyPress:le,onFocus:te,onPaste:ne}),ce&&(0,g.jsx)("div",{className:"".concat(Q.overlayAction," ").concat(""!==a?"withLabel":""),children:(0,g.jsx)(c.Z,{onClick:G?function(){G()}:function(){return ue(!oe)},id:L,size:"small",disableFocusRipple:!1,disableRipple:!1,disableTouchRipple:!1,children:ce})}),H&&(0,g.jsx)("div",{className:"".concat(Q.overlayAction," ").concat(""!==a?"withLabel":""),children:H})]})]})})}))},84335:function(e,a,l){"use strict";l.r(a),l.d(a,{default:function(){return z}});var t=l(29439),n=l(1413),i=l(72791),r=l(57689),s=l(26181),o=l.n(s),u=l(61889),c=l(29945),d=l(11135),v=l(25787),b=l(64554),p=l(23814),h=l(81207),f=l(21435),x=l(90282),m=l(34345),g=l(56087),S=l(30829),Z=l(20068),C=l(13400),A=l(72455),j=l(28182),E=l(67252),y=l(27391),w=[{label:"US East (Ohio)",value:"us-east-2"},{label:"US East (N. Virginia)",value:"us-east-1"},{label:"US West (N. California)",value:"us-west-1"},{label:"US West (Oregon)",value:"us-west-2"},{label:"Africa (Cape Town)",value:"af-south-1"},{label:"Asia Pacific (Hong Kong)***",value:"ap-east-1"},{label:"Asia Pacific (Jakarta)",value:"ap-southeast-3"},{label:"Asia Pacific (Mumbai)",value:"ap-south-1"},{label:"Asia Pacific (Osaka)",value:"ap-northeast-3"},{label:"Asia Pacific (Seoul)",value:"ap-northeast-2"},{label:"Asia Pacific (Singapore)",value:"ap-southeast-1"},{label:"Asia Pacific (Sydney)",value:"ap-southeast-2"},{label:"Asia Pacific (Tokyo)",value:"ap-northeast-1"},{label:"Canada (Central)",value:"ca-central-1"},{label:"China (Beijing)",value:"cn-north-1"},{label:"China (Ningxia)",value:"cn-northwest-1"},{label:"Europe (Frankfurt)",value:"eu-central-1"},{label:"Europe (Ireland)",value:"eu-west-1"},{label:"Europe (London)",value:"eu-west-2"},{label:"Europe (Milan)",value:"eu-south-1"},{label:"Europe (Paris)",value:"eu-west-3"},{label:"Europe (Stockholm)",value:"eu-north-1"},{label:"South America (S\xe3o Paulo)",value:"sa-east-1"},{label:"Middle East (Bahrain)",value:"me-south-1"},{label:"AWS GovCloud (US-East)",value:"us-gov-east-1"},{label:"AWS GovCloud (US-West)",value:"us-gov-west-1"}],T=[{label:"Montr\xe9al",value:"NORTHAMERICA-NORTHEAST1"},{label:"Toronto",value:"NORTHAMERICA-NORTHEAST2"},{label:"Iowa",value:"US-CENTRAL1"},{label:"South Carolina",value:"US-EAST1"},{label:"Northern Virginia",value:"US-EAST4"},{label:"Oregon",value:"US-WEST1"},{label:"Los Angeles",value:"US-WEST2"},{label:"Salt Lake City",value:"US-WEST3"},{label:"Las Vegas",value:"US-WEST4"},{label:"S\xe3o Paulo",value:"SOUTHAMERICA-EAST1"},{label:"Santiago",value:"SOUTHAMERICA-WEST1"},{label:"Warsaw",value:"EUROPE-CENTRAL2"},{label:"Finland",value:"EUROPE-NORTH1"},{label:"Belgium",value:"EUROPE-WEST1"},{label:"London",value:"EUROPE-WEST2"},{label:"Frankfurt",value:"EUROPE-WEST3"},{label:"Netherlands",value:"EUROPE-WEST4"},{label:"Z\xfcrich",value:"EUROPE-WEST6"},{label:"Taiwan",value:"ASIA-EAST1"},{label:"Hong Kong",value:"ASIA-EAST2"},{label:"Tokyo",value:"ASIA-NORTHEAST1"},{label:"Osaka",value:"ASIA-NORTHEAST2"},{label:"Seoul",value:"ASIA-NORTHEAST3"},{label:"Mumbai",value:"ASIA-SOUTH1"},{label:"Delhi",value:"ASIA-SOUTH2"},{label:"Singapore",value:"ASIA-SOUTHEAST1"},{label:"Jakarta",value:"ASIA-SOUTHEAST2"},{label:"Sydney",value:"AUSTRALIA-SOUTHEAST1"},{label:"Melbourne",value:"AUSTRALIA-SOUTHEAST2"}],N=[{label:"Asia",value:"asia"},{label:"Asia Pacific",value:"asiapacific"},{label:"Australia",value:"australia"},{label:"Australia Central",value:"australiacentral"},{label:"Australia Central 2",value:"australiacentral2"},{label:"Australia East",value:"australiaeast"},{label:"Australia Southeast",value:"australiasoutheast"},{label:"Brazil",value:"brazil"},{label:"Brazil South",value:"brazilsouth"},{label:"Brazil Southeast",value:"brazilsoutheast"},{label:"Canada",value:"canada"},{label:"Canada Central",value:"canadacentral"},{label:"Canada East",value:"canadaeast"},{label:"Central India",value:"centralindia"},{label:"Central US",value:"centralus"},{label:"Central US (Stage)",value:"centralusstage"},{label:"Central US EUAP",value:"centraluseuap"},{label:"East Asia",value:"eastasia"},{label:"East Asia (Stage)",value:"eastasiastage"},{label:"East US",value:"eastus"},{label:"East US (Stage)",value:"eastusstage"},{label:"East US 2",value:"eastus2"},{label:"East US 2 (Stage)",value:"eastus2stage"},{label:"East US 2 EUAP",value:"eastus2euap"},{label:"Europe",value:"europe"},{label:"France",value:"france"},{label:"France Central",value:"francecentral"},{label:"France South",value:"francesouth"},{label:"Germany",value:"germany"},{label:"Germany North",value:"germanynorth"},{label:"Germany West Central",value:"germanywestcentral"},{label:"Global",value:"global"},{label:"India",value:"india"},{label:"Japan",value:"japan"},{label:"Japan East",value:"japaneast"},{label:"Japan West",value:"japanwest"},{label:"Jio India Central",value:"jioindiacentral"},{label:"Jio India West",value:"jioindiawest"},{label:"Korea",value:"korea"},{label:"Korea Central",value:"koreacentral"},{label:"Korea South",value:"koreasouth"},{label:"North Central US",value:"northcentralus"},{label:"North Central US (Stage)",value:"northcentralusstage"},{label:"North Europe",value:"northeurope"},{label:"Norway",value:"norway"},{label:"Norway East",value:"norwayeast"},{label:"Norway West",value:"norwaywest"},{label:"South Africa",value:"southafrica"},{label:"South Africa North",value:"southafricanorth"},{label:"South Africa West",value:"southafricawest"},{label:"South Central US",value:"southcentralus"},{label:"South Central US (Stage)",value:"southcentralusstage"},{label:"South India",value:"southindia"},{label:"Southeast Asia",value:"southeastasia"},{label:"Southeast Asia (Stage)",value:"southeastasiastage"},{label:"Sweden Central",value:"swedencentral"},{label:"Switzerland",value:"switzerland"},{label:"Switzerland North",value:"switzerlandnorth"},{label:"Switzerland West",value:"switzerlandwest"},{label:"UAE Central",value:"uaecentral"},{label:"UAE North",value:"uaenorth"},{label:"UK South",value:"uksouth"},{label:"UK West",value:"ukwest"},{label:"United Arab Emirates",value:"uae"},{label:"United Kingdom",value:"uk"},{label:"United States",value:"unitedstates"},{label:"United States EUAP",value:"unitedstateseuap"},{label:"West Central US",value:"westcentralus"},{label:"West Europe",value:"westeurope"},{label:"West India",value:"westindia"},{label:"West US",value:"westus"},{label:"West US (Stage)",value:"westusstage"},{label:"West US 2",value:"westus2"},{label:"West US 2 (Stage)",value:"westus2stage"},{label:"West US 3",value:"westus3"}],I=l(80184),U=function(e){var a=e.type,l=e.onChange,r=e.inputProps,s=function(e){return"s3"===e?w:"gcs"===e?T:"azure"===e?N:[]}(a),o=i.useState(""),u=(0,t.Z)(o,2),c=u[0],d=u[1];return(0,I.jsx)(E.Z,{sx:{"& .MuiOutlinedInput-root":{padding:0,paddingLeft:"10px",fontSize:13,fontWeight:600},"& .MuiAutocomplete-inputRoot":{"& .MuiOutlinedInput-notchedOutline":{borderColor:"#e5e5e5",borderWidth:1},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"#07193E",borderWidth:1},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"#07193E",borderWidth:1}}},freeSolo:!0,selectOnFocus:!0,handleHomeEndKeys:!0,onChange:function(e,a){var t,n=a;n="string"===typeof a?{label:a}:a&&a.inputValue?{label:a.inputValue}:a,d(n),l(null===(t=n)||void 0===t?void 0:t.value)},value:c,onInputChange:function(e){var a=(e||{}).target,t=(void 0===a?{}:a).value;l(void 0===t?"":t)},getOptionLabel:function(e){return"string"===typeof e?e:e.inputValue?e.inputValue:e.value},options:s,filterOptions:function(e,a){var l=a.inputValue.toLowerCase();return e.filter((function(e){return"".concat(e.label.toLowerCase()).concat(e.value.toLowerCase()).includes(l)}))},renderOption:function(e,a){return(0,I.jsx)("li",(0,n.Z)((0,n.Z)({},e),{},{children:(0,I.jsxs)(b.Z,{sx:{display:"flex",flexFlow:"column",alignItems:"baseline",padding:"4px",borderBottom:"1px solid #eaeaea",cursor:"pointer",width:"100%","& .label":{fontSize:"13px",fontWeight:500},"& .value":{fontSize:"11px",fontWeight:400}},children:[(0,I.jsx)("span",{className:"label",children:a.value}),(0,I.jsx)("span",{className:"value",children:a.label})]})}))},renderInput:function(e){return(0,I.jsx)(y.Z,(0,n.Z)((0,n.Z)((0,n.Z)({},e),r),{},{fullWidth:!0}))}})},W=(0,A.Z)((function(e){return(0,d.Z)((0,n.Z)({},p.gM))})),O=(0,v.Z)((function(e){return(0,d.Z)((0,n.Z)((0,n.Z)((0,n.Z)({},p.YI),p.Hr),{},{textBoxContainer:{flexGrow:1,position:"relative",minWidth:160},overlayAction:{position:"absolute",right:5,top:6,"& svg":{maxWidth:15,maxHeight:15},"&.withLabel":{top:5}},inputLabel:(0,n.Z)((0,n.Z)({},p.YI.inputLabel),{},{fontWeight:"normal"})}))}))((function(e){var a=e.label,l=e.onChange,t=e.id,r=e.name,s=e.type,o=e.tooltip,d=void 0===o?"":o,v=e.index,b=void 0===v?0:v,p=e.error,h=void 0===p?"":p,f=e.required,x=void 0!==f&&f,m=e.overlayId,g=e.overlayIcon,A=void 0===g?null:g,E=e.overlayObject,y=void 0===E?null:E,w=e.extraInputProps,T=void 0===w?{}:w,N=e.overlayAction,O=e.noLabelMinWidth,R=void 0!==O&&O,P=e.classes,k=e.className,F=void 0===k?"":k,z=W(),L=(0,n.Z)((0,n.Z)({"data-index":b},T),{},{name:r,id:t,classes:z});return(0,I.jsx)(i.Fragment,{children:(0,I.jsxs)(u.ZP,{container:!0,className:(0,j.Z)(""!==F?F:"",""!==h?P.errorInField:P.inputBoxContainer),children:[""!==a&&(0,I.jsxs)(S.Z,{htmlFor:t,className:R?P.noMinWidthLabel:P.inputLabel,children:[(0,I.jsxs)("span",{children:[a,x?"*":""]}),""!==d&&(0,I.jsx)("div",{className:P.tooltipContainer,children:(0,I.jsx)(Z.Z,{title:d,placement:"top-start",children:(0,I.jsx)("div",{className:P.tooltip,children:(0,I.jsx)(c.byK,{})})})})]}),(0,I.jsxs)("div",{className:P.textBoxContainer,children:[(0,I.jsx)(U,{type:s,inputProps:L,onChange:l}),A&&(0,I.jsx)("div",{className:"".concat(P.overlayAction," ").concat(""!==a?"withLabel":""),children:(0,I.jsx)(C.Z,{onClick:N?function(){N()}:function(){return null},id:m,size:"small",disableFocusRipple:!1,disableRipple:!1,disableTouchRipple:!1,children:A})}),y&&(0,I.jsx)("div",{className:"".concat(P.overlayAction," ").concat(""!==a?"withLabel":""),children:y})]})]})})})),R=l(87995),P=l(81551),k=l(47974),F=l(99670),z=(0,v.Z)((function(e){return(0,d.Z)((0,n.Z)((0,n.Z)((0,n.Z)((0,n.Z)({},p.oO),p.Je),p.DF),{},{lambdaNotifTitle:{color:"#07193E",fontSize:16,fontFamily:"Inter,sans-serif",paddingLeft:18},fileInputFieldCss:{margin:"0"},fileTextBoxContainer:{maxWidth:" 100%",flex:1},fileReselectCss:{maxWidth:" 100%",flex:1}},p.bV))}))((function(e){var a=e.classes,l=(0,P.TL)(),s=(0,r.s0)(),d=(0,r.UO)(),v=(0,i.useState)(!1),p=(0,t.Z)(v,2),S=p[0],Z=p[1],C=(0,i.useState)(""),A=(0,t.Z)(C,2),j=A[0],E=A[1],y=(0,i.useState)(""),w=(0,t.Z)(y,2),T=w[0],N=w[1],U=(0,i.useState)(""),W=(0,t.Z)(U,2),z=W[0],L=W[1],M=(0,i.useState)(""),B=(0,t.Z)(M,2),K=B[0],H=B[1],V=(0,i.useState)(""),q=(0,t.Z)(V,2),G=q[0],_=q[1],J=(0,i.useState)(""),D=(0,t.Z)(J,2),Y=D[0],X=D[1],$=(0,i.useState)(""),Q=(0,t.Z)($,2),ee=Q[0],ae=Q[1],le=(0,i.useState)(""),te=(0,t.Z)(le,2),ne=te[0],ie=te[1],re=(0,i.useState)(""),se=(0,t.Z)(re,2),oe=se[0],ue=se[1],ce=(0,i.useState)(""),de=(0,t.Z)(ce,2),ve=de[0],be=de[1],pe=(0,i.useState)(""),he=(0,t.Z)(pe,2),fe=he[0],xe=he[1],me=(0,i.useState)(""),ge=(0,t.Z)(me,2),Se=ge[0],Ze=ge[1],Ce=(0,i.useState)(""),Ae=(0,t.Z)(Ce,2),je=Ae[0],Ee=Ae[1],ye=o()(d,"service","s3"),we=(0,i.useState)(!0),Te=(0,t.Z)(we,2),Ne=Te[0],Ie=Te[1],Ue=(0,i.useState)(""),We=(0,t.Z)(Ue,2),Oe=We[0],Re=We[1],Pe=(0,i.useCallback)((function(){return/^[A-Z0-9-_]+$/.test(j)?(Re(""),!0):(Re("Please verify that string is uppercase only and contains valid characters (numbers, dashes & underscores)."),!1)}),[j]);(0,i.useEffect)((function(){if(S){var e={},a={name:j,endpoint:T,bucket:z,prefix:K,region:G},t=ye;switch(ye){case"minio":e={minio:(0,n.Z)((0,n.Z)({},a),{},{accesskey:ee,secretkey:ne})};break;case"s3":e={s3:(0,n.Z)((0,n.Z)({},a),{},{accesskey:ee,secretkey:ne,storageclass:Y})};break;case"gcs":e={gcs:(0,n.Z)((0,n.Z)({},a),{},{creds:ve})};break;case"azure":e={azure:(0,n.Z)((0,n.Z)({},a),{},{accountname:fe,accountkey:Se})}}var i=(0,n.Z)({type:t},e);h.Z.invoke("POST","/api/v1/admin/tiers",i).then((function(){Z(!1),s(g.gA.TIERS)})).catch((function(e){Z(!1),l((0,R.Ih)(e))}))}}),[ee,Se,fe,z,ve,T,j,K,G,S,ne,l,Y,ye,s]),(0,i.useEffect)((function(){var e=!0;""===ye&&(e=!1),""!==j&&Pe()||(e=!1),""===T&&(e=!1),""===z&&(e=!1),""===K&&(e=!1),""===G&&"minio"!==ye&&(e=!1),"s3"!==ye&&"minio"!==ye||(""===ee&&(e=!1),""===ne&&(e=!1)),"gcs"===ye&&""===ve&&(e=!1),"azure"===ye&&(""===fe&&(e=!1),""===Se&&(e=!1)),Ie(e)}),[ee,Se,fe,z,ve,T,Ne,j,K,G,ne,Y,ye,Pe]),(0,i.useEffect)((function(){switch(ye){case"gcs":N("https://storage.googleapis.com"),Ee("Google Cloud");break;case"s3":N("https://s3.amazonaws.com"),Ee("Amazon S3");break;case"azure":N("http://blob.core.windows.net"),Ee("Azure");break;case"minio":N(""),Ee("MinIO")}}),[ye]);var ke=m.Bh.find((function(e){return e.serviceName===ye}));return(0,i.useEffect)((function(){l((0,R.Sc)("add-tier-configuration"))}),[]),(0,I.jsxs)(i.Fragment,{children:[(0,I.jsx)(k.Z,{label:(0,I.jsx)(i.Fragment,{children:(0,I.jsx)(c.hbI,{label:"Add Tier",onClick:function(){return s(g.gA.TIERS_ADD)}})}),actions:(0,I.jsx)(F.Z,{})}),(0,I.jsx)(c.Xgh,{children:(0,I.jsx)(u.ZP,{item:!0,xs:12,sx:{border:"1px solid #eaeaea",padding:"25px"},children:(0,I.jsxs)("form",{noValidate:!0,onSubmit:function(e){e.preventDefault(),Z(!0)},children:[""!==ye&&ke?(0,I.jsxs)(u.ZP,{item:!0,xs:12,sx:{display:"flex",alignItems:"center",justifyContent:"start",marginBottom:"20px"},children:[ke.logo?(0,I.jsx)(b.Z,{sx:{"& .min-icon":{height:"60px",width:"60px"}},children:ke.logo}):null,(0,I.jsx)("div",{className:a.lambdaNotifTitle,children:(0,I.jsxs)("b",{children:[je||""," - Add Tier Configuration"]})})]},"icon-".concat(ke.targetTitle)):null,(0,I.jsx)(u.ZP,{item:!0,xs:12,sx:{display:"grid",gridTemplateColumns:{xs:"1fr",sm:"1fr 1fr"},gridAutoFlow:{xs:"dense",sm:"row"},gridRowGap:25,gridColumnGap:50},children:""!==ye&&(0,I.jsxs)(i.Fragment,{children:[(0,I.jsx)(f.Z,{id:"name",name:"name",label:"Name",placeholder:"Enter Name (Eg. REMOTE-TIER)",value:j,onChange:function(e){E(e.target.value.toUpperCase())},error:Oe,required:!0}),(0,I.jsx)(f.Z,{id:"endpoint",name:"endpoint",label:"Endpoint",placeholder:"Enter Endpoint",value:T,onChange:function(e){N(e.target.value)},required:!0}),(ye===m.b2||ye===m.Pp)&&(0,I.jsxs)(i.Fragment,{children:[(0,I.jsx)(f.Z,{id:"accessKey",name:"accessKey",label:"Access Key",placeholder:"Enter Access Key",value:ee,onChange:function(e){ae(e.target.value)},required:!0}),(0,I.jsx)(f.Z,{id:"secretKey",name:"secretKey",label:"Secret Key",placeholder:"Enter Secret Key",value:ne,onChange:function(e){ie(e.target.value)},required:!0})]}),ye===m.f0&&(0,I.jsx)(x.Z,{accept:".json",classes:{fileInputField:a.fileInputFieldCss,textBoxContainer:a.fileTextBoxContainer,fileReselect:a.fileReselectCss},id:"creds",label:"Credentials",name:"creds",onChange:function(e,a){be(e),ue(a)},value:oe,required:!0}),ye===m.vB&&(0,I.jsxs)(i.Fragment,{children:[(0,I.jsx)(f.Z,{id:"accountName",name:"accountName",label:"Account Name",placeholder:"Enter Account Name",value:fe,onChange:function(e){xe(e.target.value)},required:!0}),(0,I.jsx)(f.Z,{id:"accountKey",name:"accountKey",label:"Account Key",placeholder:"Enter Account Key",value:Se,onChange:function(e){Ze(e.target.value)},required:!0})]}),(0,I.jsx)(f.Z,{id:"bucket",name:"bucket",label:"Bucket",placeholder:"Enter Bucket",value:z,onChange:function(e){L(e.target.value)},required:!0}),(0,I.jsx)(f.Z,{id:"prefix",name:"prefix",label:"Prefix",placeholder:"Enter Prefix",value:K,onChange:function(e){H(e.target.value)},required:!0}),(0,I.jsx)(O,{onChange:function(e){_(e)},required:"minio"!==ye,label:"Region",id:"region",name:"region",type:ye}),ye===m.b2&&(0,I.jsx)(f.Z,{id:"storageClass",name:"storageClass",label:"Storage Class",placeholder:"Enter Storage Class",value:Y,onChange:function(e){X(e.target.value)}})]})}),(0,I.jsx)(u.ZP,{item:!0,xs:12,className:a.settingsButtonContainer,children:(0,I.jsx)(c.zxk,{id:"save-tier-configuration",type:"submit",variant:"callAction",disabled:S||!Ne,label:"Save Tier Configuration"})})]})})})]})}))},34345:function(e,a,l){"use strict";l.d(a,{Bh:function(){return u},Pp:function(){return i},b2:function(){return s},f0:function(){return r},vB:function(){return o}});var t=l(29945),n=l(80184),i="minio",r="gcs",s="s3",o="azure",u=[{serviceName:i,targetTitle:"MinIO",logo:(0,n.jsx)(t.$E9,{}),logoXs:(0,n.jsx)(t.YEz,{})},{serviceName:r,targetTitle:"Google Cloud Storage",logo:(0,n.jsx)(t.UQG,{}),logoXs:(0,n.jsx)(t.Vwu,{})},{serviceName:s,targetTitle:"AWS S3",logo:(0,n.jsx)(t.feu,{}),logoXs:(0,n.jsx)(t.Xj3,{})},{serviceName:o,targetTitle:"Azure",logo:(0,n.jsx)(t.jze,{}),logoXs:(0,n.jsx)(t.nAe,{})}]},99663:function(e,a,l){"use strict";var t=l(64836);a.Z=void 0;var n=t(l(45649)),i=l(80184),r=(0,n.default)((0,i.jsx)("path",{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z"}),"AttachFile");a.Z=r},86711:function(e,a,l){"use strict";var t=l(64836);a.Z=void 0;var n=t(l(45649)),i=l(80184),r=(0,n.default)((0,i.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");a.Z=r},3579:function(e,a,l){"use strict";var t=l(64836);a.Z=void 0;var n=t(l(45649)),i=l(80184),r=(0,n.default)((0,i.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"RemoveRedEye");a.Z=r},20165:function(e,a,l){"use strict";var t=l(64836);a.Z=void 0;var n=t(l(45649)),i=l(80184),r=(0,n.default)((0,i.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff");a.Z=r},45649:function(e,a,l){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=l(28610)},31260:function(e,a,l){"use strict";var t=l(78949);a.Z=t.Z},28610:function(e,a,l){"use strict";l.r(a),l.d(a,{capitalize:function(){return n.Z},createChainedFunction:function(){return i.Z},createSvgIcon:function(){return r.Z},debounce:function(){return s.Z},deprecatedPropType:function(){return o},isMuiElement:function(){return u.Z},ownerDocument:function(){return c.Z},ownerWindow:function(){return d.Z},requirePropFactory:function(){return v},setRef:function(){return b},unstable_ClassNameGenerator:function(){return Z},unstable_useEnhancedEffect:function(){return p.Z},unstable_useId:function(){return h.Z},unsupportedProp:function(){return f},useControlled:function(){return x.Z},useEventCallback:function(){return m.Z},useForkRef:function(){return g.Z},useIsFocusVisible:function(){return S.Z}});var t=l(55902),n=l(14036),i=l(31260),r=l(76189),s=l(83199);var o=function(e,a){return function(){return null}},u=l(19103),c=l(98301),d=l(17602);l(87462);var v=function(e,a){return function(){return null}},b=l(62971).Z,p=l(40162),h=l(67384);var f=function(e,a,l,t,n){return null},x=l(98278),m=l(89683),g=l(42071),S=l(23031),Z={configure:function(e){t.Z.configure(e)}}},64836:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}}]);
//# sourceMappingURL=4335.71c8fc7f.chunk.js.map