"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[8455],{58455:function(e,t,n){n.r(t);var a=n(29439),l=n(72791),c=n(29945),i=n(31776),s=n(82342),o=n(23814),r=n(87995),u=n(81551),d=n(56028),h=n(80184);t.default=function(e){var t=e.modalOpen,n=e.onClose,b=e.bucket,x=e.toEdit,f=e.initial,k=(0,u.TL)(),p=(0,l.useState)(f),v=(0,a.Z)(p,2),j=v[0],m=v[1];return(0,h.jsx)(l.Fragment,{children:(0,h.jsxs)(d.Z,{modalOpen:t,title:"Edit Anonymous Access Rule for ".concat("".concat(b,"/").concat(x||"")),onClose:n,titleIcon:(0,h.jsx)(c.sR0,{}),children:[(0,h.jsx)(c.ltY,{containerPadding:!1,withBorders:!1,children:(0,h.jsx)(c.PhF,{id:"access",name:"Access",onChange:function(e){m(e)},label:"Access",value:j,options:[{label:"readonly",value:"readonly"},{label:"writeonly",value:"writeonly"},{label:"readwrite",value:"readwrite"}],disabled:!1})}),(0,h.jsxs)(c.rjZ,{item:!0,xs:12,sx:o.ID.modalButtonBar,children:[(0,h.jsx)(c.zxk,{id:"clear",type:"button",variant:"regular",onClick:function(){m(f)},label:"Clear"}),(0,h.jsx)(c.zxk,{id:"save",type:"submit",variant:"callAction",onClick:function(){i.h.bucket.setAccessRuleWithBucket(b,{prefix:x,access:j}).then((function(){n()})).catch((function(e){k((0,r.Ih)((0,s.g)(e.error))),n()}))},label:"Save"})]})]})})}}}]);
//# sourceMappingURL=8455.97773e2f.chunk.js.map