2 lines
25 KiB
JavaScript
2 lines
25 KiB
JavaScript
(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[4575],{23804:function(e,t,n){"use strict";n(72791);var o=n(11135),i=n(25787),r=n(61889),a=n(80184);t.Z=(0,i.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,i=e.help;return(0,a.jsx)("div",{className:t.root,children:(0,a.jsxs)(r.ZP,{container:!0,children:[(0,a.jsxs)(r.ZP,{item:!0,xs:12,className:t.leftItems,children:[n,o]}),(0,a.jsx)(r.ZP,{item:!0,xs:12,className:t.helpText,children:i})]})})}))},63856:function(e,t,n){"use strict";var o=n(1413),i=(n(72791),n(11135)),r=n(25787),a=n(64554),s=n(61889),l=n(36151),c=n(27197),d=n(32686),u=n(23814),p=n(80705),h=n(85090),m=n(38734),f=n(80184),x=function(){return(0,f.jsx)(a.Z,{sx:{display:"flex",alignItems:"center","& .min-icon":{width:"10px",height:"10px"}},children:(0,f.jsx)(m.Q2V,{})})};t.Z=(0,r.Z)((function(e){return(0,i.Z)((0,o.Z)((0,o.Z)((0,o.Z)({},u.OR),u.bN),{},{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,n=e.timeStart,o=e.setTimeStart,i=e.timeEnd,r=e.setTimeEnd,u=e.triggerSync,m=e.label,g=void 0===m?"Filter:":m,b=e.startLabel,v=void 0===b?"Start Time:":b,Z=e.endLabel,j=void 0===Z?"End Time:":Z;return(0,f.jsx)(s.ZP,{item:!0,xs:12,sx:{"& .filter-date-input-label, .end-time-input-label":{display:"none"},"& .MuiInputBase-adornedEnd.filter-date-date-time-input":{width:"100%",border:"1px solid #eaeaea",paddingLeft:"8px",paddingRight:"8px",borderRadius:"1px"},"& .MuiInputAdornment-root button":{height:"20px",width:"20px",marginRight:"5px"},"& .filter-date-input-wrapper":{height:"30px",width:"100%","& .MuiTextField-root":{height:"30px",width:"90%","& input.Mui-disabled":{color:"#000000",WebkitTextFillColor:"#101010"}}}},children:(0,f.jsxs)(a.Z,{sx:{display:"grid",height:{md:"40px",xs:"auto"},alignItems:"center",gridTemplateColumns:{md:"auto 2fr auto",sm:"1fr"},padding:{md:"0",xs:" 5px"},gap:"5px"},children:[(0,f.jsx)(a.Z,{sx:{fontSize:"14px",fontWeight:500,marginRight:"5px"},children:g}),(0,f.jsxs)(a.Z,{sx:{display:"grid",height:{md:"40px",xs:"auto"},border:{md:"1px solid #eaeaea"},alignItems:"center",gridTemplateColumns:{md:"1fr 1fr",sm:"1fr"},gap:"8px",paddingLeft:"8px",paddingRight:"8px"},children:[(0,f.jsxs)(a.Z,{sx:{display:"grid",height:"30px",alignItems:"center",gridTemplateColumns:{xs:"12px auto 1fr"},gap:"5px"},children:[(0,f.jsx)(a.Z,{sx:{display:"flex",alignItems:"center","& .min-icon":{width:"10px",height:"10px",fill:"#B4B5B4"}},children:(0,f.jsx)(c.Z,{className:"min-icon"})}),(0,f.jsx)(a.Z,{sx:{fontSize:"12px",marginLeft:"8px"},children:v}),(0,f.jsx)(a.Z,{children:(0,f.jsx)(p.Z,{value:n,onChange:o,id:"stTime",classNamePrefix:"filter-date-",forFilterContained:!0,noInputIcon:!0,openPickerIcon:x})})]}),(0,f.jsxs)(a.Z,{sx:{display:"grid",height:"30px",alignItems:"center",gridTemplateColumns:{xs:"12px auto 1fr"},gap:"5px"},children:[(0,f.jsx)(a.Z,{sx:{display:"flex",alignItems:"center","& .min-icon":{width:"10px",height:"10px",fill:"#B4B5B4"}},children:(0,f.jsx)(d.Z,{className:"min-icon"})}),(0,f.jsx)(a.Z,{sx:{fontSize:"12px",marginLeft:"8px"},children:j}),(0,f.jsx)(a.Z,{children:(0,f.jsx)(p.Z,{value:i,onChange:r,id:"endTime",classNamePrefix:"filter-date-",forFilterContained:!0,noInputIcon:!0,openPickerIcon:x})})]})]}),u&&(0,f.jsx)(a.Z,{sx:{alignItems:"flex-end",display:"flex",justifyContent:"flex-end",marginRight:"35px"},children:(0,f.jsx)(l.Z,{type:"button",variant:"contained",color:"primary",onClick:u,endIcon:(0,f.jsx)(h.Z,{}),className:t.syncButton,children:"Sync"})})]})})}))},80705:function(e,t,n){"use strict";var o=n(1413),i=n(72791),r=n(27391),a=n(61889),s=n(30829),l=n(20068),c=n(49979),d=n(69783),u=n(71652),p=n(63466),h=n(27197),m=n(11135),f=n(25787),x=n(84570),g=n(23814),b=n(33976),v=n(80184);t.Z=(0,f.Z)((function(e){return(0,m.Z)((0,o.Z)((0,o.Z)({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"},"@media (max-width: 900px)":{width:103}},dateSelectorFormOverride:{width:"100%",maxWidth:840},parentDateOverride:{flexGrow:1},textBoxContainer:{flexGrow:1},openListIcon:{color:"#9D9E9D",width:8,marginTop:2},paperOverride:{"& .MuiCalendarPicker-root":{padding:"0 22px","& > div":{padding:0,"& > div > div.PrivatePickersFadeTransitionGroup-root:first-of-type":{color:"#0A224C",fontWeight:"bold"},"& > div > div.PrivatePickersFadeTransitionGroup-root:last-of-type":{color:"#9D9E9D","& + button.MuiButtonBase-root":{color:"#9D9E9D"}},"& > div:nth-child(2)":{"& > div":{width:0},"& > button.MuiButtonBase-root":{color:"#0A224C"}}}},"& .MuiTypography-root.MuiTypography-caption":{width:26,height:26,margin:5,color:"#BCBCBC",fontSize:10},"& button.MuiPickersDay-root":{fontWeight:"bold",width:26,height:26,margin:5,textAlign:"center","&.Mui-selected":{backgroundColor:e.palette.primary.main,color:"#fff"}},"& div.MuiPickersDay-hiddenDaySpacingFiller":{width:26,height:26,margin:5},"& div.PrivatePickersSlideTransition-root":{minHeight:240},"& div.MuiCalendarPicker-viewTransitionContainer":{borderTop:"#F0F3F5 1px solid"},"& .MuiClockPicker-arrowSwitcher":{marginRight:10,marginTop:-1,"& > div":{width:0},"& > button.MuiButtonBase-root":{color:"#0A224C"},"& + div > div":{width:255,height:255,backgroundColor:"#fff",marginTop:30,marginBottom:14,border:"#F0F3F5 3px solid","& > div:nth-child(2)":{backgroundColor:"#B4B5B4",width:12,height:12,"&::before":{content:"' '",width:35,height:35,display:"block",position:"absolute",border:"#F0F3F5 3px solid",top:-12,left:-12,borderRadius:"100%"}},"& > div:nth-child(3)":{backgroundColor:"#B4B5B4",width:4},"& > div:last-of-type":{marginTop:15,"& > span":{color:"#0A224C","&.Mui-selected":{color:"#fff"},"&[aria-label='1 hours'], &[aria-label='2 hours'], &[aria-label='3 hours'], &[aria-label='4 hours'], &[aria-label='5 hours'], &[aria-label='6 hours'], &[aria-label='7 hours'], &[aria-label='8 hours'], &[aria-label='9 hours'], &[aria-label='10 hours'], &[aria-label='11 hours'], &[aria-label='12 hours']":{fontWeight:"bold",fontSize:20,marginTop:-1}}}}}}},g.YI),g.Hr))}))((function(e){var t=e.value,n=e.onChange,m=e.classes,f=e.forSearchBlock,g=void 0!==f&&f,Z=e.forFilterContained,j=void 0!==Z&&Z,C=e.label,y=e.tooltip,S=void 0===y?"":y,k=e.required,_=e.id,B=e.disabled,w=void 0!==B&&B,I=e.noInputIcon,P=void 0!==I&&I,F=e.classNamePrefix,N=void 0===F?"":F,E=e.openPickerIcon,T={};P||(T={startAdornment:(0,v.jsx)(p.Z,{position:"start",children:(0,v.jsx)(h.Z,{})})}),j&&(T={endAdornment:(0,v.jsx)(p.Z,{position:"end",children:(0,v.jsx)(b.Z,{className:m.openListIcon})})});var M="".concat(N,"date-time-input ").concat(g?m.dateSelectorOverride:""," ").concat(j&&!g?m.dateSelectorFilterOverride:""),O=g?m.parentDateOverride:m.dateSelectorFormOverride,z=(0,v.jsx)(u._,{dateAdapter:d.Z,children:(0,v.jsx)(c.x,{value:t,onChange:n,InputProps:(0,o.Z)((0,o.Z)({},T),{},{className:M}),components:{OpenPickerIcon:E},label:"",className:O,disabled:w,renderInput:function(e){return(0,v.jsx)(r.Z,(0,o.Z)((0,o.Z)({id:_,variant:"standard"},e),{},{disabled:!0}))},ampm:!1,PopperProps:{className:m.paperOverride}})});if(g)return z;var A=j?"":m.fieldContainer;return(0,v.jsx)(i.Fragment,{children:(0,v.jsxs)(a.ZP,{item:!0,xs:12,className:"".concat(A," ").concat(N,"input-field-container "),children:[""!==C&&(0,v.jsxs)(s.Z,{htmlFor:_,className:"".concat(m.inputLabel," ").concat(N,"input-label"),children:[(0,v.jsxs)("span",{children:[C,k?"*":""]}),""!==S&&(0,v.jsx)("div",{className:m.tooltipContainer,children:(0,v.jsx)(l.Z,{title:S,placement:"top-start",children:(0,v.jsx)("div",{className:m.tooltip,children:(0,v.jsx)(x.Z,{})})})})]}),(0,v.jsx)("div",{className:"".concat(m.textBoxContainer," ").concat(N,"input-wrapper "),children:z})]})})}))},56028:function(e,t,n){"use strict";var o=n(29439),i=n(1413),r=n(72791),a=n(60364),s=n(13400),l=n(55646),c=n(5574),d=n(65661),u=n(39157),p=n(11135),h=n(25787),m=n(23814),f=n(25469),x=n(29823),g=n(28057),b=n(87995),v=n(80184);t.Z=(0,h.Z)((function(e){return(0,p.Z)((0,i.Z)((0,i.Z)({},m.Qw),{},{content:{padding:25,paddingBottom:0},customDialogSize:{width:"100%",maxWidth:765}},m.sN))}))((function(e){var t=e.onClose,n=e.modalOpen,p=e.title,h=e.children,m=e.classes,Z=e.wideLimit,j=void 0===Z||Z,C=e.noContentPadding,y=e.titleIcon,S=void 0===y?null:y,k=(0,f.TL)(),_=(0,r.useState)(!1),B=(0,o.Z)(_,2),w=B[0],I=B[1],P=(0,a.v9)((function(e){return e.system.modalSnackBar}));(0,r.useEffect)((function(){k((0,b.MK)(""))}),[k]),(0,r.useEffect)((function(){if(P){if(""===P.message)return void I(!1);"error"!==P.type&&I(!0)}}),[P]);var F=j?{classes:{paper:m.customDialogSize}}:{maxWidth:"lg",fullWidth:!0},N="";return P&&(N=P.detailedErrorMsg,(""===P.detailedErrorMsg||P.detailedErrorMsg.length<5)&&(N=P.message)),(0,v.jsxs)(c.Z,(0,i.Z)((0,i.Z)({open:n,classes:m},F),{},{scroll:"paper",onClose:function(e,n){"backdropClick"!==n&&t()},className:m.root,children:[(0,v.jsxs)(d.Z,{className:m.title,children:[(0,v.jsxs)("div",{className:m.titleText,children:[S," ",p]}),(0,v.jsx)("div",{className:m.closeContainer,children:(0,v.jsx)(s.Z,{"aria-label":"close",id:"close",className:m.closeButton,onClick:t,disableRipple:!0,size:"small",children:(0,v.jsx)(x.Z,{})})})]}),(0,v.jsx)(g.Z,{isModal:!0}),(0,v.jsx)(l.Z,{open:w,className:m.snackBarModal,onClose:function(){I(!1),k((0,b.MK)(""))},message:N,ContentProps:{className:"".concat(m.snackBar," ").concat(P&&"error"===P.type?m.errorSnackBar:"")},autoHideDuration:P&&"error"===P.type?1e4:5e3}),(0,v.jsx)(u.Z,{className:C?"":m.content,children:h})]}))}))},33543:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return O}});var o=n(93433),i=n(29439),r=n(1413),a=n(72791),s=n(60364),l=n(26181),c=n.n(l),d=n(11135),u=n(25787),p=n(61889),h=n(36151),m=n(23814),f=n(45248),x=n(81207),g=n(92983),b=n(27391),v=n(80184),Z=(0,u.Z)((function(e){return(0,d.Z)({searchField:(0,r.Z)((0,r.Z)({},m.qg.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"},fieldContainer:{flexGrow:1,margin:"0 15px"}})}))((function(e){var t=e.classes,n=e.label,o=e.onChange,i=e.value,r=e.placeholder,s=void 0===r?"":r,l=e.id,c=e.name;return(0,v.jsx)(a.Fragment,{children:(0,v.jsxs)("div",{className:t.fieldContainer,children:[(0,v.jsx)("div",{className:t.labelStyle,children:n}),(0,v.jsx)("div",{className:t.buttonKit,children:(0,v.jsx)(b.Z,{placeholder:s,id:l,name:c,label:"",onChange:function(e){o(e.target.value)},InputProps:{disableUnderline:!0},className:t.searchField,value:i})})]})})})),j=n(56028),C={time:"Timestamp",api_name:"API Name",access_key:"Access Key",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"},y=(0,u.Z)((function(e){return(0,d.Z)((0,r.Z)({buttonContainer:{textAlign:"right"},objectKeyCol:{fontWeight:700,paddingRight:"10px",textAlign:"left"}},m.oO))}))((function(e){var t=e.modalOpen,n=e.logSearchElement,o=e.onClose,i=e.classes,r=Object.keys(n);return(0,v.jsx)(a.Fragment,{children:(0,v.jsx)(j.Z,{modalOpen:t,title:"Full Log Information",onClose:function(){o()},children:(0,v.jsxs)(p.ZP,{container:!0,children:[(0,v.jsx)(p.ZP,{item:!0,xs:12,children:(0,v.jsx)("table",{children:(0,v.jsx)("tbody",{children:r.map((function(e,t){return(0,v.jsxs)("tr",{children:[(0,v.jsx)("th",{className:i.objectKeyCol,children:c()(C,e,"".concat(e))}),(0,v.jsx)("td",{children:c()(n,e,"")})]},"logSearch-".concat(t.toString()))}))})})}),(0,v.jsx)(p.ZP,{item:!0,xs:12,className:i.buttonContainer,children:(0,v.jsx)(h.Z,{type:"button",variant:"contained",color:"primary",onClick:o,children:"Close"})})]})})})})),S=n(63856),k=n(32291),_=n(74794),B=n(93385),w=n(56087),I=n(38442),P=n(38734),F=n(23804),N=function(e){var t=e.iconComponent,n=e.entity,o=e.documentationLink;return(0,v.jsx)(p.ZP,{container:!0,justifyContent:"center",alignContent:"center",alignItems:"center",children:(0,v.jsx)(p.ZP,{item:!0,xs:8,children:(0,v.jsx)(F.Z,{title:"".concat(n," not available"),iconComponent:t,help:(0,v.jsxs)(a.Fragment,{children:["This feature is not available.",(0,v.jsx)("br",{}),"Please configure"," ",(0,v.jsx)("a",{href:o,target:"_blank",rel:"noreferrer",children:n})," ","first to use this feature."]})})})})},E=n(87995),T=n(46078),M=n(25469),O=(0,u.Z)((function(e){return(0,d.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({blockCollapsed:{display:"none",overflowY:"hidden"},filterOpen:{display:"block",marginBottom:12},endLineAction:{marginBottom:15,padding:"0 15px 0 15px",display:"flex",alignItems:"center",justifyContent:"flex-end"},filtersContainer:{display:"flex",justifyContent:"space-between",marginBottom:12},innerContainer:{backgroundColor:"#fff"},noticeLabel:{marginLeft:15,marginBottom:15,fontSize:12,color:"#9C9C9C"},tableFOpen:{height:"calc(100vh - 520px)"},tableFClosed:{height:"calc(100vh - 320px)"}},m.VX),m.S),{},{searchOptions:{display:"flex",padding:15,"@media (max-width: 900px)":{flexFlow:"column"}},formBox:{border:"1px solid #EAEAEA",marginBottom:15},dateRangePicker:{"& div":{marginBottom:0}},advancedButton:{display:"flex",alignItems:"center",justifyContent:"flex-start"}},m.o$),(0,m.Bz)(e.spacing(4))))}))((function(e){var t=e.classes,n=(0,M.TL)(),r=(0,s.v9)(T.$4),l=(0,a.useState)(!0),d=(0,i.Z)(l,2),u=d[0],m=d[1],b=(0,a.useState)(null),j=(0,i.Z)(b,2),F=j[0],O=j[1],z=(0,a.useState)(null),A=(0,i.Z)(z,2),L=A[0],R=A[1],D=(0,a.useState)(!1),W=(0,i.Z)(D,2),q=W[0],K=W[1],H=(0,a.useState)([]),V=(0,i.Z)(H,2),G=V[0],U=V[1],Y=(0,a.useState)(""),Q=(0,i.Z)(Y,2),$=Q[0],X=Q[1],J=(0,a.useState)(""),ee=(0,i.Z)(J,2),te=ee[0],ne=ee[1],oe=(0,a.useState)(""),ie=(0,i.Z)(oe,2),re=ie[0],ae=ie[1],se=(0,a.useState)(""),le=(0,i.Z)(se,2),ce=le[0],de=le[1],ue=(0,a.useState)(""),pe=(0,i.Z)(ue,2),he=pe[0],me=pe[1],fe=(0,a.useState)(""),xe=(0,i.Z)(fe,2),ge=xe[0],be=xe[1],ve=(0,a.useState)(""),Ze=(0,i.Z)(ve,2),je=Ze[0],Ce=Ze[1],ye=(0,a.useState)("DESC"),Se=(0,i.Z)(ye,2),ke=Se[0],_e=Se[1],Be=(0,a.useState)(["time","api_name","access_key","bucket","object","remote_host","request_id","user_agent","response_status"]),we=(0,i.Z)(Be,2),Ie=we[0],Pe=we[1],Fe=(0,a.useState)(0),Ne=(0,i.Z)(Fe,2),Ee=Ne[0],Te=Ne[1],Me=(0,a.useState)(!1),Oe=(0,i.Z)(Me,2),ze=Oe[0],Ae=Oe[1],Le=(0,a.useState)(!1),Re=(0,i.Z)(Le,2),De=Re[0],We=Re[1],qe=(0,a.useState)(null),Ke=(0,i.Z)(qe,2),He=Ke[0],Ve=Ke[1],Ge=null,Ue=r&&r.includes("log-search"),Ye=(0,a.useCallback)((function(){if(!ze&&Ue){Ae(!0);var e="".concat(""!==$?"&fp=bucket:".concat($):"").concat(""!==he?"&fp=object:".concat(he):"").concat(""!==te?"&fp=api_name:".concat(te):"").concat(""!==re?"&fp=access_key:".concat(re):"").concat(""!==ge?"&fp=request_id:".concat(ge):"").concat(""!==ce?"&fp=user_agent:".concat(ce):"").concat(""!==je?"&fp=response_status:".concat(je):"");(e=e.trim()).endsWith(",")&&(e=e.slice(0,-1)),x.Z.invoke("GET","/api/v1/logs/search?q=reqinfo".concat(""!==e?"".concat(e):"","&pageSize=100&pageNo=").concat(Ee,"&order=").concat("DESC"===ke?"timeDesc":"timeAsc").concat(null!==F?"&timeStart=".concat(F.toISOString()):"").concat(null!==L?"&timeEnd=".concat(L.toISOString()):"")).then((function(e){var t=e.results||[];m(!1),Ae(!1),U(t),Te(Ee+1),null!==Ge&&Ge()})).catch((function(e){m(!1),Ae(!1),n((0,E.Ih)(e))}))}else m(!1),Ae(!1)}),[ze,Ue,$,he,te,re,ge,ce,je,Ee,ke,F,L,Ge,n]);(0,a.useEffect)((function(){u&&(U([]),Ye())}),[u,ke,Ye]);return(0,v.jsxs)(a.Fragment,{children:[De&&null!==He&&(0,v.jsx)(y,{logSearchElement:He,modalOpen:De,onClose:function(){Ve(null),We(!1)}}),(0,v.jsx)(k.Z,{label:"Audit Logs"}),(0,v.jsx)(_.Z,{children:Ue?(0,v.jsxs)(a.Fragment,{children:[" ",(0,v.jsxs)(p.ZP,{xs:12,className:t.formBox,children:[(0,v.jsxs)(p.ZP,{item:!0,xs:12,className:"".concat(t.searchOptions),children:[(0,v.jsx)("div",{className:t.dateRangePicker,children:(0,v.jsx)(S.Z,{setTimeEnd:R,setTimeStart:O,timeEnd:L,timeStart:F})}),(0,v.jsx)(p.ZP,{item:!0,className:t.advancedButton,children:(0,v.jsxs)("button",{onClick:function(){K(!q)},className:t.advancedConfiguration,children:[q?"Hide":"Show"," advanced Filters"," ",(0,v.jsx)("span",{className:q?t.advancedOpen:t.advancedClosed,children:(0,v.jsx)(B.Z,{})})]})})]}),(0,v.jsx)(p.ZP,{item:!0,xs:12,className:"".concat(t.blockCollapsed," ").concat(q?t.filterOpen:""),children:(0,v.jsxs)("div",{className:t.innerContainer,children:[(0,v.jsxs)("div",{className:t.noticeLabel,children:["Enable your preferred options to get filtered records.",(0,v.jsx)("br",{}),"You can use '*' to match any character, '.' to signify a single character or '\\' to scape an special character (E.g. mybucket-*)"]}),(0,v.jsxs)("div",{className:t.filtersContainer,children:[(0,v.jsx)(Z,{onChange:X,value:$,label:"Bucket",id:"bucket",name:"bucket"}),(0,v.jsx)(Z,{onChange:ne,value:te,label:"API Name",id:"api_name",name:"api_name"}),(0,v.jsx)(Z,{onChange:ae,value:re,label:"Access Key",id:"access_key",name:"access_key"}),(0,v.jsx)(Z,{onChange:de,value:ce,label:"User Agent",id:"user_agent",name:"user_agent"})]}),(0,v.jsxs)("div",{className:t.filtersContainer,children:[(0,v.jsx)(Z,{onChange:me,value:he,label:"Object",id:"object",name:"object"}),(0,v.jsx)(Z,{onChange:be,value:ge,label:"Request ID",id:"request_id",name:"request_id"}),(0,v.jsx)(Z,{onChange:Ce,value:je,label:"Response Status",id:"response_status",name:"response_status"})]})]})}),(0,v.jsx)(p.ZP,{item:!0,xs:12,className:t.endLineAction,children:(0,v.jsx)(h.Z,{type:"button",variant:"contained",color:"primary",onClick:function(){Te(0),m(!0)},children:"Get Information"})})]}),(0,v.jsx)(p.ZP,{item:!0,xs:12,className:t.tableBlock,children:(0,v.jsx)(I.s,{scopes:[w.Ft.ADMIN_HEALTH_INFO],resource:w.C3,errorProps:{disabled:!0},children:(0,v.jsx)(g.Z,{columns:[{label:C.time,elementKey:"time",enableSort:!0},{label:C.api_name,elementKey:"api_name"},{label:C.access_key,elementKey:"access_key"},{label:C.bucket,elementKey:"bucket"},{label:C.object,elementKey:"object"},{label:C.remote_host,elementKey:"remote_host"},{label:C.request_id,elementKey:"request_id"},{label:C.user_agent,elementKey:"user_agent"},{label:C.response_status,elementKey:"response_status",renderFunction:function(e){return(0,v.jsx)(a.Fragment,{children:(0,v.jsxs)("span",{children:[e.response_status_code," (",e.response_status,")"]})})},renderFullObject:!0},{label:C.request_content_length,elementKey:"request_content_length",renderFunction:f.ae},{label:C.response_content_length,elementKey:"response_content_length",renderFunction:f.ae},{label:C.time_to_response_ns,elementKey:"time_to_response_ns",renderFunction:f.Yj,contentTextAlign:"right"}],isLoading:u,records:G,entityName:"Logs",customEmptyMessage:"There is no information with this criteria",idField:"request_id",columnsSelector:!0,columnsShown:Ie,onColumnChange:function(e,t){var n=(0,o.Z)(Ie);t?n.includes(e)||n.push(e):n=Ie.filter((function(t){return t!==e})),Pe(n)},customPaperHeight:q?t.tableFOpen:t.tableFClosed,sortConfig:{currentSort:"time",currentDirection:ke,triggerSort:function(e){var t=c()(e,"sortDirection","DESC");_e(t),Te(0),m(!0)}},infiniteScrollConfig:{recordsCount:1e6,loadMoreRecords:function(e){return Ye(),new Promise((function(e){Ge=e}))}},itemActions:[{type:"view",onClick:function(e){Ve(e),We(!0)}}],textSelectable:!0})})})]}):(0,v.jsx)(N,{entity:"Audit Logs",iconComponent:(0,v.jsx)(P.W1M,{}),documentationLink:"https://github.com/minio/operator/tree/master/logsearchapi"})})]})}))},26759:function(e,t,n){"use strict";var o=n(95318);t.Z=void 0;var i=o(n(45649)),r=n(80184),a=(0,i.default)((0,r.jsx)("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown");t.Z=a},70366:function(e,t,n){"use strict";var o=n(95318);t.Z=void 0;var i=o(n(45649)),r=n(80184),a=(0,i.default)((0,r.jsx)("path",{d:"m7 14 5-5 5 5z"}),"ArrowDropUp");t.Z=a},93385:function(e,t,n){"use strict";var o=n(95318);t.Z=void 0;var i=o(n(45649)),r=n(80184),a=(0,i.default)((0,r.jsx)("path",{d:"M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"}),"ArrowForwardIos");t.Z=a},97911:function(e,t,n){"use strict";var o=n(95318);t.Z=void 0;var i=o(n(45649)),r=n(80184),a=(0,i.default)((0,r.jsx)("path",{d:"M14.67 5v14H9.33V5h5.34zm1 14H21V5h-5.33v14zm-7.34 0V5H3v14h5.33z"}),"ViewColumn");t.Z=a},32686:function(e,t,n){"use strict";var o=n(95318);t.Z=void 0;var i=o(n(45649)),r=n(80184),a=(0,i.default)((0,r.jsx)("path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm4.2 14.2L11 13V7h1.5v5.2l4.5 2.7-.8 1.3z"}),"WatchLater");t.Z=a},94454:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var o=n(4942),i=n(63366),r=n(87462),a=n(72791),s=n(94419),l=n(12065),c=n(97278),d=n(76189),u=n(80184),p=(0,d.Z)((0,u.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),h=(0,d.Z)((0,u.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),m=(0,d.Z)((0,u.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox"),f=n(14036),x=n(31402),g=n(66934),b=n(21217);function v(e){return(0,b.Z)("MuiCheckbox",e)}var Z=(0,n(75878).Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),j=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size"],C=(0,g.ZP)(c.Z,{shouldForwardProp:function(e){return(0,g.FO)(e)||"classes"===e},name:"MuiCheckbox",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.indeterminate&&t.indeterminate,"default"!==n.color&&t["color".concat((0,f.Z)(n.color))]]}})((function(e){var t,n=e.theme,i=e.ownerState;return(0,r.Z)({color:n.palette.text.secondary},!i.disableRipple&&{"&:hover":{backgroundColor:(0,l.Fq)("default"===i.color?n.palette.action.active:n.palette[i.color].main,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==i.color&&(t={},(0,o.Z)(t,"&.".concat(Z.checked,", &.").concat(Z.indeterminate),{color:n.palette[i.color].main}),(0,o.Z)(t,"&.".concat(Z.disabled),{color:n.palette.action.disabled}),t))})),y=(0,u.jsx)(h,{}),S=(0,u.jsx)(p,{}),k=(0,u.jsx)(m,{}),_=a.forwardRef((function(e,t){var n,o,l=(0,x.Z)({props:e,name:"MuiCheckbox"}),c=l.checkedIcon,d=void 0===c?y:c,p=l.color,h=void 0===p?"primary":p,m=l.icon,g=void 0===m?S:m,b=l.indeterminate,Z=void 0!==b&&b,_=l.indeterminateIcon,B=void 0===_?k:_,w=l.inputProps,I=l.size,P=void 0===I?"medium":I,F=(0,i.Z)(l,j),N=Z?B:g,E=Z?B:d,T=(0,r.Z)({},l,{color:h,indeterminate:Z,size:P}),M=function(e){var t=e.classes,n=e.indeterminate,o=e.color,i={root:["root",n&&"indeterminate","color".concat((0,f.Z)(o))]},a=(0,s.Z)(i,v,t);return(0,r.Z)({},t,a)}(T);return(0,u.jsx)(C,(0,r.Z)({type:"checkbox",inputProps:(0,r.Z)({"data-indeterminate":Z},w),icon:a.cloneElement(N,{fontSize:null!=(n=N.props.fontSize)?n:P}),checkedIcon:a.cloneElement(E,{fontSize:null!=(o=E.props.fontSize)?o:P}),ownerState:T,ref:t},F,{classes:M}))}))},26769:function(e,t,n){var o=n(39066),i=n(93629),r=n(43141);e.exports=function(e){return"string"==typeof e||!i(e)&&r(e)&&"[object String]"==o(e)}},80888:function(e,t,n){"use strict";var o=n(79047);function i(){}function r(){}r.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,r,a){if(a!==o){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:r,resetWarningCache:i};return n.PropTypes=n,n}},52007:function(e,t,n){e.exports=n(80888)()},79047:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}}]);
|
|
//# sourceMappingURL=4575.fcb7724d.chunk.js.map
|