Files
object-browser/portal-ui/build/static/js/5289.289c4818.chunk.js
2022-08-10 20:43:36 -07:00

2 lines
17 KiB
JavaScript

"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[5289],{23804:function(e,t,n){n(72791);var o=n(11135),r=n(25787),i=n(61889),a=n(80184);t.Z=(0,r.Z)((function(e){return(0,o.Z)({root:{border:"1px solid #E2E2E2",borderRadius:2,backgroundColor:"#FBFAFA",paddingLeft:25,paddingTop:31,paddingBottom:21,paddingRight:30},leftItems:{fontSize:16,fontWeight:"bold",marginBottom:15,display:"flex",alignItems:"center","& .min-icon":{marginRight:15,height:28,width:38}},helpText:{fontSize:16,paddingLeft:5}})}))((function(e){var t=e.classes,n=e.iconComponent,o=e.title,r=e.help;return(0,a.jsx)("div",{className:t.root,children:(0,a.jsxs)(i.ZP,{container:!0,children:[(0,a.jsxs)(i.ZP,{item:!0,xs:12,className:t.leftItems,children:[n,o]}),(0,a.jsx)(i.ZP,{item:!0,xs:12,className:t.helpText,children:r})]})})}))},14048:function(e,t,n){var o=n(29439),r=n(1413),i=n(72791),a=n(36151),l=n(11135),c=n(25787),s=n(61889),d=n(23814),u=n(81207),p=n(56028),m=n(38734),f=n(92217),h=n(45248),g=n(87995),b=n(25469),y=n(80184);(0,l.Z)((0,r.Z)((0,r.Z)({},d.ID),d.bK));t.Z=(0,c.Z)((function(e){return(0,l.Z)((0,r.Z)((0,r.Z)((0,r.Z)({codeMirrorContainer:{marginBottom:20,"& label":{marginBottom:".5rem"},"& label + div":{display:"none"}}},d.DF),d.ID),d.bK))}))((function(e){var t=e.classes,n=e.open,r=e.selectedAccessKey,l=e.closeModalAndRefresh,c=(0,b.TL)(),d=(0,i.useState)(!0),x=(0,o.Z)(d,2),v=x[0],_=x[1],Z=(0,i.useState)(""),k=(0,o.Z)(Z,2),C=k[0],j=k[1];(0,i.useEffect)((function(){v&&u.Z.invoke("GET","/api/v1/service-accounts/".concat((0,h.LL)(r),"/policy")).then((function(e){_(!1),j(e)})).catch((function(e){_(!1),c((0,g.zb)(e))}))}),[v,_,c,r]);return(0,y.jsx)(p.Z,{title:"Service Account Policy",modalOpen:n,onClose:function(){l()},titleIcon:(0,y.jsx)(m.QXQ,{}),children:(0,y.jsx)("form",{noValidate:!0,autoComplete:"off",onSubmit:function(e){var t;t=C,e.preventDefault(),u.Z.invoke("PUT","/api/v1/service-accounts/".concat((0,h.LL)(r),"/policy"),{policy:t}).then((function(e){l()})).catch((function(e){c((0,g.zb)(e))}))},children:(0,y.jsxs)(s.ZP,{container:!0,children:[(0,y.jsx)(s.ZP,{item:!0,xs:12,className:t.codeMirrorContainer,children:(0,y.jsx)(f.Z,{label:"Service Account Policy",value:C,onBeforeChange:function(e,t,n){j(n)},editorHeight:"350px"})}),(0,y.jsxs)(s.ZP,{item:!0,xs:12,className:t.modalButtonBar,children:[(0,y.jsx)(a.Z,{type:"button",variant:"outlined",color:"primary",onClick:function(){l()},disabled:v,children:"Cancel"}),(0,y.jsx)(a.Z,{type:"submit",variant:"contained",color:"primary",disabled:v,children:"Set"})]})]})})})}))},75578:function(e,t,n){var o=n(1413),r=n(72791),i=n(80184);t.Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;function n(n){return(0,i.jsx)(r.Suspense,{fallback:t,children:(0,i.jsx)(e,(0,o.Z)({},n))})}return n}},92217:function(e,t,n){var o=n(1413),r=n(72791),i=n(61889),a=n(30829),l=n(20068),c=n(64554),s=n(11135),d=n(25787),u=n(84570),p=n(23814),m=n(38734),f=n(40603),h=n(78029),g=n.n(h),b=n(85457),y=n(80184);t.Z=(0,d.Z)((function(e){return(0,s.Z)((0,o.Z)({},p.YI))}))((function(e){var t=e.value,n=e.label,o=void 0===n?"":n,s=e.tooltip,d=void 0===s?"":s,p=e.mode,h=void 0===p?"json":p,x=e.classes,v=e.onBeforeChange,_=(e.readOnly,e.editorHeight),Z=void 0===_?"250px":_;return(0,y.jsxs)(r.Fragment,{children:[(0,y.jsx)(i.ZP,{item:!0,xs:12,children:(0,y.jsxs)(a.Z,{className:x.inputLabel,children:[(0,y.jsx)("span",{children:o}),""!==d&&(0,y.jsx)("div",{className:x.tooltipContainer,children:(0,y.jsx)(l.Z,{title:d,placement:"top-start",children:(0,y.jsx)("div",{className:x.tooltip,children:(0,y.jsx)(u.Z,{})})})})]})}),(0,y.jsx)(i.ZP,{item:!0,xs:12,style:{maxHeight:Z,overflow:"auto"},children:(0,y.jsx)(b.Z,{value:t,language:h,onChange:function(e){v(null,null,e.target.value)},id:"code_wrapper",padding:15,style:{fontSize:12,backgroundColor:"#fefefe",fontFamily:"ui-monospace,SFMono-Regular,SF Mono,Consolas,Liberation Mono,Menlo,monospace"}})}),(0,y.jsx)(i.ZP,{item:!0,xs:12,sx:{borderTop:"1px solid #eaeaea",background:"#f7f7f7"},children:(0,y.jsx)(c.Z,{sx:{display:"flex",alignItems:"center",padding:"2px",paddingRight:"5px",justifyContent:"flex-end","& button":{height:"26px",width:"26px",padding:"2px"," .min-icon":{marginLeft:"0"}}},children:(0,y.jsx)(g(),{text:t,children:(0,y.jsx)(f.Z,{tooltip:"Copy to Clipboard",onClick:function(){},text:"",icon:(0,y.jsx)(m.TIy,{}),color:"primary",variant:"outlined"})})})})]})}))},56028:function(e,t,n){var o=n(29439),r=n(1413),i=n(72791),a=n(60364),l=n(13400),c=n(55646),s=n(5574),d=n(65661),u=n(39157),p=n(11135),m=n(25787),f=n(23814),h=n(25469),g=n(29823),b=n(28057),y=n(87995),x=n(80184);t.Z=(0,m.Z)((function(e){return(0,p.Z)((0,r.Z)((0,r.Z)({},f.Qw),{},{content:{padding:25,paddingBottom:0},customDialogSize:{width:"100%",maxWidth:765}},f.sN))}))((function(e){var t=e.onClose,n=e.modalOpen,p=e.title,m=e.children,f=e.classes,v=e.wideLimit,_=void 0===v||v,Z=e.noContentPadding,k=e.titleIcon,C=void 0===k?null:k,j=(0,h.TL)(),E=(0,i.useState)(!1),q=(0,o.Z)(E,2),w=q[0],S=q[1],D=(0,a.v9)((function(e){return e.system.modalSnackBar}));(0,i.useEffect)((function(){j((0,y.MK)(""))}),[j]),(0,i.useEffect)((function(){if(D){if(""===D.message)return void S(!1);"error"!==D.type&&S(!0)}}),[D]);var L=_?{classes:{paper:f.customDialogSize}}:{maxWidth:"lg",fullWidth:!0},N="";return D&&(N=D.detailedErrorMsg,(""===D.detailedErrorMsg||D.detailedErrorMsg.length<5)&&(N=D.message)),(0,x.jsxs)(s.Z,(0,r.Z)((0,r.Z)({open:n,classes:f},L),{},{scroll:"paper",onClose:function(e,n){"backdropClick"!==n&&t()},className:f.root,children:[(0,x.jsxs)(d.Z,{className:f.title,children:[(0,x.jsxs)("div",{className:f.titleText,children:[C," ",p]}),(0,x.jsx)("div",{className:f.closeContainer,children:(0,x.jsx)(l.Z,{"aria-label":"close",id:"close",className:f.closeButton,onClick:t,disableRipple:!0,size:"small",children:(0,x.jsx)(g.Z,{})})})]}),(0,x.jsx)(b.Z,{isModal:!0}),(0,x.jsx)(c.Z,{open:w,className:f.snackBarModal,onClose:function(){S(!1),j((0,y.MK)(""))},message:N,ContentProps:{className:"".concat(f.snackBar," ").concat(D&&"error"===D.type?f.errorSnackBar:"")},autoHideDuration:D&&"error"===D.type?1e4:5e3}),(0,x.jsx)(u.Z,{className:Z?"":f.content,children:m})]}))}))},59114:function(e,t,n){var o=n(4942),r=n(1413),i=(n(72791),n(63466)),a=n(74900),l=n(27391),c=n(25787),s=n(11135),d=n(23814),u=n(80184);t.Z=(0,c.Z)((function(e){return(0,s.Z)({searchField:(0,r.Z)({},d.qg.searchField),adornment:{}})}))((function(e){var t=e.placeholder,n=void 0===t?"":t,r=e.classes,c=e.onChange,s=e.adornmentPosition,d=void 0===s?"end":s,p=e.overrideClass,m=e.value,f=(0,o.Z)({disableUnderline:!0},"".concat(d,"Adornment"),(0,u.jsx)(i.Z,{position:d,className:r.adornment,children:(0,u.jsx)(a.Z,{})}));return(0,u.jsx)(l.Z,{placeholder:n,className:p||r.searchField,id:"search-resource",label:"",InputProps:f,onChange:function(e){c(e.target.value)},variant:"standard",value:m})}))},58493:function(e,t,n){n.d(t,{DD:function(){return y},DP:function(){return b},_0:function(){return x},bx:function(){return g}});var o=n(93433),r=(n(72791),n(87569)),i=n(59314),a=n(61809),l=n(31292),c=n(98095),s=n(67055),d=n(21141),u=n(61248),p=n(50521),m=n(36909),f=n(13901),h=n(80184),g=[{icon:(0,h.jsx)(r.Z,{}),configuration_id:"region",configuration_label:"Region"},{icon:(0,h.jsx)(i.Z,{}),configuration_id:"cache",configuration_label:"Cache"},{icon:(0,h.jsx)(a.Z,{}),configuration_id:"compression",configuration_label:"Compression"},{icon:(0,h.jsx)(l.Z,{}),configuration_id:"api",configuration_label:"API"},{icon:(0,h.jsx)(c.Z,{}),configuration_id:"heal",configuration_label:"Heal"},{icon:(0,h.jsx)(s.Z,{}),configuration_id:"scanner",configuration_label:"Scanner"},{icon:(0,h.jsx)(d.Z,{}),configuration_id:"etcd",configuration_label:"Etcd"},{icon:(0,h.jsx)(u.Z,{}),configuration_id:"identity_openid",configuration_label:"Identity Openid"},{icon:(0,h.jsx)(p.Z,{}),configuration_id:"identity_ldap",configuration_label:"Identity LDAP"},{icon:(0,h.jsx)(f.Z,{}),configuration_id:"logger_webhook",configuration_label:"Logger Webhook"},{icon:(0,h.jsx)(m.Z,{}),configuration_id:"audit_webhook",configuration_label:"Audit Webhook"}],b={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 custom notes if any"}],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 custom notes if any"}],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 custom notes if any"}],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:"myldapserver.com:636"},{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:"server_starttls",required:!1,label:"Start TLS connection to AD/LDAP server",tooltip:"Use StartTLS connection to AD/LDAP server",type:"on|off"},{name:"lookup_bind_dn",required:!0,label:"Lookup Bind DN",tooltip:"DN for LDAP read-only service account used to perform DN and group lookups",type:"string",placeholder:"cn=admin,dc=min,dc=io"},{name:"lookup_bind_password",required:!1,label:"Lookup Bind Password",tooltip:"Password for LDAP read-only service account used to perform DN and group lookups",type:"string",placeholder:"admin"},{name:"user_dn_search_base_dn",required:!1,label:"User DN Search Base DN",tooltip:"Base LDAP DN to search for user DN",type:"csv",placeholder:"dc=myldapserver"},{name:"user_dn_search_filter",required:!1,label:"User DN Search Filter",tooltip:"Search filter to lookup user DN",type:"string",placeholder:"(sAMAcountName=%s)"},{name:"group_search_filter",required:!1,label:"Group Search Filter",tooltip:"Search filter for groups",type:"string",placeholder:"(&(objectclass=groupOfNames)(member=%d))"},{name:"group_search_base_dn",required:!1,label:"Group Search Base DN",tooltip:"List of group search base DNs",type:"csv",placeholder:"dc=minioad,dc=local"},{name:"comment",required:!1,label:"Comment",tooltip:"Optionally add a comment to this setting",type:"comment",placeholder:"Enter custom notes if any"}],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"}]},y=function(e){return e.filter((function(e){return""!==e.value}))},x=function(e,t,n){var r=e.target,i=r.value,a=r.checked,l=(0,o.Z)(n);return a?l.push(i):l=l.filter((function(e){return e!==i})),t(l),l}},18303:function(e,t,n){var o=n(29439),r=(n(72791),n(51691)),i=n(9505),a=n(2148),l=n(38734),c=n(87995),s=n(25469),d=n(80184);t.Z=function(e){var t=e.closeDeleteModalAndRefresh,n=e.deleteOpen,u=e.selectedSAs,p=(0,s.TL)(),m=(0,i.Z)((function(){return t(!0)}),(function(e){return p((0,c.Ih)(e))})),f=(0,o.Z)(m,2),h=f[0],g=f[1];if(!u)return null;return(0,d.jsx)(a.Z,{title:"Delete Service Accounts",confirmText:"Delete",isOpen:n,titleIcon:(0,d.jsx)(l.NvT,{}),isLoading:h,onConfirm:function(){g("DELETE","/api/v1/service-accounts/delete-multi",u)},onClose:function(){return t(!1)},confirmationContent:(0,d.jsxs)(r.Z,{children:["Are you sure you want to delete the selected ",u.length," ","service accounts?"," "]})})}},21639:function(e,t,n){n.d(t,{LQ:function(){return o},V2:function(){return i},g4:function(){return r}});var o=function(e,t){return e.accessKey>t.accessKey?1:e.accessKey<t.accessKey?-1:0},r=function(e,t){return e.name>t.name?1:e.name<t.name?-1:0},i=function(e,t){return e>t?1:e<t?-1:0}}}]);
//# sourceMappingURL=5289.289c4818.chunk.js.map