"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[3943],{89122:function(e,t,n){n(57223);var s=n(11927),i=n(4481),r=n(73130),o=n(18054);t.Z=(0,i.Z)((function(e){return(0,s.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,s=e.title,i=e.help;return(0,o.jsx)("div",{className:t.root,children:(0,o.jsxs)(r.ZP,{container:!0,children:[(0,o.jsxs)(r.ZP,{item:!0,xs:12,className:t.leftItems,children:[n,s]}),(0,o.jsx)(r.ZP,{item:!0,xs:12,className:t.helpText,children:i})]})})}))},3943:function(e,t,n){n.r(t);var s=n(77439),i=n(49058),r=n(57223),o=n(537),c=n(11927),a=n(4481),l=n(67066),u=n.n(l),d=n(73130),f=n(39543),h=n(265),m=n(64519),x=n(70466),p=n(46148),Z=n(64964),g=n(89122),b=n(29322),j=n(32542),k=n(38199),S=n(77263),I=n(54864),v=n(18054),E=(0,S.Z)(r.lazy((function(){return Promise.all([n.e(5201),n.e(3441)]).then(n.bind(n,53441))}))),F=(0,S.Z)(r.lazy((function(){return Promise.all([n.e(4003),n.e(731),n.e(5201),n.e(3576),n.e(5143),n.e(9815),n.e(590)]).then(n.bind(n,40590))}))),T=(0,o.$j)((function(e){return{session:e.console.session,loadingBucket:e.buckets.bucketDetails.loadingBucket,bucketInfo:e.buckets.bucketDetails.bucketInfo}}),{setErrorSnackMessage:m.Ih});t.default=(0,a.Z)((function(e){return(0,c.Z)((0,i.Z)((0,i.Z)((0,i.Z)({},x.qg),x.OR),{},{twHeight:{minHeight:400}}))}))(T((function(e){var t=e.classes,n=e.match,i=e.setErrorSnackMessage,o=e.loadingBucket,c=(e.bucketInfo,(0,r.useState)(!1)),a=(0,s.Z)(c,2),l=a[0],m=a[1],x=(0,r.useState)(!0),S=(0,s.Z)(x,2),T=S[0],N=S[1],C=(0,r.useState)([]),P=(0,s.Z)(C,2),_=P[0],y=P[1],A=(0,r.useState)(!1),B=(0,s.Z)(A,2),O=B[0],R=B[1],K=(0,r.useState)(null),z=(0,s.Z)(K,2),w=z[0],M=z[1],D=n.params.bucketName,H=(0,j.F)(D,[k.Ft.S3_GET_BUCKET_NOTIFICATIONS]);(0,r.useEffect)((function(){o&&N(!0)}),[o,N]),(0,r.useEffect)((function(){T&&(H?Z.Z.invoke("GET","/api/v1/buckets/".concat(D,"/events")).then((function(e){var t=u()(e,"events",[]);N(!1),y(t||[])})).catch((function(e){N(!1),i(e)})):N(!1))}),[T,i,D,H]);var U=[{type:"delete",onClick:function(e){R(!0),M(e)}}];return(0,v.jsxs)(r.Fragment,{children:[O&&(0,v.jsx)(E,{deleteOpen:O,selectedBucket:D,bucketEvent:w,closeDeleteModalAndRefresh:function(e){R(!1),e&&N(!0)}}),l&&(0,v.jsx)(F,{open:l,selectedBucket:D,closeModalAndRefresh:function(){m(!1),N(!0)}}),(0,v.jsxs)(d.ZP,{container:!0,children:[(0,v.jsxs)(d.ZP,{item:!0,xs:12,className:t.actionsTray,children:[(0,v.jsx)(b.Z,{children:"\u4e8b\u4ef6"}),(0,v.jsx)(j.s,{scopes:[k.Ft.S3_PUT_BUCKET_NOTIFICATIONS,k.Ft.ADMIN_SERVER_INFO],resource:D,matchAll:!0,errorProps:{disabled:!0},children:(0,v.jsx)(I.Z,{tooltip:"\u8ba2\u9605\u6d3b\u52a8",onClick:function(){m(!0)},text:"\u8ba2\u9605\u6d3b\u52a8",icon:(0,v.jsx)(f.Z,{}),color:"primary",variant:"contained"})})]}),(0,v.jsx)(d.ZP,{item:!0,xs:12,children:(0,v.jsx)(j.s,{scopes:[k.Ft.S3_GET_BUCKET_NOTIFICATIONS],resource:D,errorProps:{disabled:!0},children:(0,v.jsx)(p.Z,{itemActions:U,columns:[{label:"SQS",elementKey:"arn"},{label:"\u4e8b\u4ef6",elementKey:"events",renderFunction:function(e){return(0,v.jsx)(r.Fragment,{children:e.join(", ")})}},{label:"\u524d\u7f00",elementKey:"prefix"},{label:"Suffix",elementKey:"suffix"}],isLoading:T,records:_,entityName:"Events",idField:"id",customPaperHeight:t.twHeight})})}),!T&&(0,v.jsx)(d.ZP,{item:!0,xs:12,children:(0,v.jsx)(g.Z,{title:"\u901a\u77e5",iconComponent:(0,v.jsx)(h.Z,{}),help:(0,v.jsxs)(r.Fragment,{children:["\u571f\u661f\u4e91 \u5b58\u50a8\u6876\u901a\u77e5\u5141\u8bb8\u7ba1\u7406\u5458\u53d1\u9001 \u901a\u77e5\u7279\u5b9a\u5bf9\u8c61\u4e0a\u53d7\u652f\u6301\u7684\u5916\u90e8\u670d\u52a1 \u6216\u6876\u4e8b\u4ef6\u3002\u571f\u661f\u4e91\u652f\u6301\u5b58\u50a8\u6876\u548c\u5bf9\u8c61\u7ea7\u522b\u7684 S3 \u4e8b\u4ef6\u901a\u77e5\uff0c\u7c7b\u4f3c\u4e8e Amazon S3 \u4e8b\u4ef6\u901a\u77e5\u3002",(0,v.jsx)("br",{}),(0,v.jsx)("br",{}),"\u5f00\u59cb\uff0c \u6dfb\u52a0\u901a\u77e5\u76ee\u6807."]})})})]})]})})))},29322:function(e,t,n){n(57223);var s=n(11927),i=n(4481),r=n(18054);t.Z=(0,i.Z)((function(e){return(0,s.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})}))}}]);
//# sourceMappingURL=3943.116c3ded.chunk.js.map