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

2 lines
7.4 KiB
JavaScript

(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[1440],{23804:function(e,t,n){"use strict";n(72791);var o=n(11135),i=n(25787),r=n(61889),c=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,c.jsx)("div",{className:t.root,children:(0,c.jsxs)(r.ZP,{container:!0,children:[(0,c.jsxs)(r.ZP,{item:!0,xs:12,className:t.leftItems,children:[n,o]}),(0,c.jsx)(r.ZP,{item:!0,xs:12,className:t.helpText,children:i})]})})}))},25702:function(e,t,n){"use strict";n.r(t);var o=n(29439),i=n(1413),r=n(72791),c=n(60364),a=n(16871),s=n(11135),l=n(25787),d=n(26181),u=n.n(d),m=n(61889),f=n(47919),h=n(86856),p=n(23814),v=n(92983),x=n(81207),Z=n(23804),b=n(60680),j=n(38442),k=n(56087),S=n(75578),g=n(40603),z=n(87995),C=n(9859),I=n(25469),E=n(80184),F=(0,S.Z)(r.lazy((function(){return n.e(455).then(n.bind(n,80455))}))),P=(0,S.Z)(r.lazy((function(){return Promise.all([n.e(3801),n.e(1918),n.e(6172),n.e(2661)]).then(n.bind(n,82661))})));t.default=(0,l.Z)((function(e){return(0,s.Z)((0,i.Z)((0,i.Z)((0,i.Z)({},p.qg),p.OR),{},{twHeight:{minHeight:400}}))}))((function(e){var t=e.classes,n=(0,I.TL)(),i=(0,a.UO)(),s=(0,c.v9)(C.HQ),l=(0,r.useState)(!1),d=(0,o.Z)(l,2),p=d[0],S=d[1],y=(0,r.useState)(!0),T=(0,o.Z)(y,2),N=T[0],w=T[1],O=(0,r.useState)([]),_=(0,o.Z)(O,2),A=_[0],H=_[1],M=(0,r.useState)(!1),B=(0,o.Z)(M,2),R=B[0],V=B[1],K=(0,r.useState)(null),L=(0,o.Z)(K,2),U=L[0],D=L[1],G=i.bucketName||"",q=(0,j.F)(G,[k.Ft.S3_GET_BUCKET_NOTIFICATIONS]);(0,r.useEffect)((function(){s&&w(!0)}),[s,w]),(0,r.useEffect)((function(){N&&(q?x.Z.invoke("GET","/api/v1/buckets/".concat(G,"/events")).then((function(e){var t=u()(e,"events",[]);w(!1),H(t||[])})).catch((function(e){w(!1),n((0,z.Ih)(e))})):w(!1))}),[N,n,G,q]);var Q=[{type:"delete",onClick:function(e){V(!0),D(e)}}];return(0,E.jsxs)(r.Fragment,{children:[R&&(0,E.jsx)(F,{deleteOpen:R,selectedBucket:G,bucketEvent:U,closeDeleteModalAndRefresh:function(e){V(!1),e&&w(!0)}}),p&&(0,E.jsx)(P,{open:p,selectedBucket:G,closeModalAndRefresh:function(){S(!1),w(!0)}}),(0,E.jsxs)(m.ZP,{container:!0,children:[(0,E.jsxs)(m.ZP,{item:!0,xs:12,className:t.actionsTray,children:[(0,E.jsx)(b.Z,{children:"Events"}),(0,E.jsx)(j.s,{scopes:[k.Ft.S3_PUT_BUCKET_NOTIFICATIONS,k.Ft.ADMIN_SERVER_INFO],resource:G,matchAll:!0,errorProps:{disabled:!0},children:(0,E.jsx)(g.Z,{tooltip:"Subscribe to Event",onClick:function(){S(!0)},text:"Subscribe to Event",icon:(0,E.jsx)(f.Z,{}),color:"primary",variant:"contained"})})]}),(0,E.jsx)(m.ZP,{item:!0,xs:12,children:(0,E.jsx)(j.s,{scopes:[k.Ft.S3_GET_BUCKET_NOTIFICATIONS],resource:G,errorProps:{disabled:!0},children:(0,E.jsx)(v.Z,{itemActions:Q,columns:[{label:"SQS",elementKey:"arn"},{label:"Events",elementKey:"events",renderFunction:function(e){return(0,E.jsx)(r.Fragment,{children:e.join(", ")})}},{label:"Prefix",elementKey:"prefix"},{label:"Suffix",elementKey:"suffix"}],isLoading:N,records:A,entityName:"Events",idField:"id",customPaperHeight:t.twHeight})})}),!N&&(0,E.jsxs)(m.ZP,{item:!0,xs:12,children:[(0,E.jsx)("br",{}),(0,E.jsx)(Z.Z,{title:"Lambda Notifications",iconComponent:(0,E.jsx)(h.Z,{}),help:(0,E.jsxs)(r.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.",(0,E.jsx)("br",{}),(0,E.jsx)("br",{}),"You can learn more at our"," ",(0,E.jsx)("a",{href:"https://docs.min.io/minio/baremetal/monitoring/bucket-notifications/bucket-notifications.html?ref=con",target:"_blank",rel:"noreferrer",children:"documentation"}),"."]})})]})]})]})}))},60680:function(e,t,n){"use strict";n(72791);var o=n(11135),i=n(25787),r=n(80184);t.Z=(0,i.Z)((function(e){return(0,o.Z)({root:{padding:0,margin:0,fontSize:".9rem"}})}))((function(e){var t=e.classes,n=e.children;return(0,r.jsx)("h1",{className:t.root,children:n})}))},26759:function(e,t,n){"use strict";var o=n(95318);t.Z=void 0;var i=o(n(45649)),r=n(80184),c=(0,i.default)((0,r.jsx)("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown");t.Z=c},70366:function(e,t,n){"use strict";var o=n(95318);t.Z=void 0;var i=o(n(45649)),r=n(80184),c=(0,i.default)((0,r.jsx)("path",{d:"m7 14 5-5 5 5z"}),"ArrowDropUp");t.Z=c},97911:function(e,t,n){"use strict";var o=n(95318);t.Z=void 0;var i=o(n(45649)),r=n(80184),c=(0,i.default)((0,r.jsx)("path",{d:"M14.67 5v14H9.33V5h5.34zm1 14H21V5h-5.33v14zm-7.34 0V5H3v14h5.33z"}),"ViewColumn");t.Z=c},94454:function(e,t,n){"use strict";n.d(t,{Z:function(){return I}});var o=n(4942),i=n(63366),r=n(87462),c=n(72791),a=n(94419),s=n(12065),l=n(97278),d=n(76189),u=n(80184),m=(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"),f=(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"),h=(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"),p=n(14036),v=n(31402),x=n(66934),Z=n(21217);function b(e){return(0,Z.Z)("MuiCheckbox",e)}var j=(0,n(75878).Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),k=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size"],S=(0,x.ZP)(l.Z,{shouldForwardProp:function(e){return(0,x.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,p.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,s.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(j.checked,", &.").concat(j.indeterminate),{color:n.palette[i.color].main}),(0,o.Z)(t,"&.".concat(j.disabled),{color:n.palette.action.disabled}),t))})),g=(0,u.jsx)(f,{}),z=(0,u.jsx)(m,{}),C=(0,u.jsx)(h,{}),I=c.forwardRef((function(e,t){var n,o,s=(0,v.Z)({props:e,name:"MuiCheckbox"}),l=s.checkedIcon,d=void 0===l?g:l,m=s.color,f=void 0===m?"primary":m,h=s.icon,x=void 0===h?z:h,Z=s.indeterminate,j=void 0!==Z&&Z,I=s.indeterminateIcon,E=void 0===I?C:I,F=s.inputProps,P=s.size,y=void 0===P?"medium":P,T=(0,i.Z)(s,k),N=j?E:x,w=j?E:d,O=(0,r.Z)({},s,{color:f,indeterminate:j,size:y}),_=function(e){var t=e.classes,n=e.indeterminate,o=e.color,i={root:["root",n&&"indeterminate","color".concat((0,p.Z)(o))]},c=(0,a.Z)(i,b,t);return(0,r.Z)({},t,c)}(O);return(0,u.jsx)(S,(0,r.Z)({type:"checkbox",inputProps:(0,r.Z)({"data-indeterminate":j},F),icon:c.cloneElement(N,{fontSize:null!=(n=N.props.fontSize)?n:y}),checkedIcon:c.cloneElement(w,{fontSize:null!=(o=w.props.fontSize)?o:y}),ownerState:O,ref:t},T,{classes:_}))}))},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)}}}]);
//# sourceMappingURL=1440.0a79a7c6.chunk.js.map