Files
openmaxio-object-browser/web-app/build/static/js/1370.7d88b85a.chunk.js

2 lines
16 KiB
JavaScript
Raw Normal View History

(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[1370],{41206:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(65043),o=r(89923),i=r(61476),s=r.n(i),a=r(6681),l=r(70579);const c=e=>{let{value:t,label:r="",tooltip:i="",mode:c="json",onChange:d,editorHeight:p=250,helptip:u}=e;return(0,l.jsx)(o.BYM,{value:t,onChange:e=>d(e),mode:c,tooltip:i,editorHeight:p,label:r,helpTools:(0,l.jsx)(n.Fragment,{children:(0,l.jsx)(a.A,{tooltip:"Copy to Clipboard",children:(0,l.jsx)(s(),{text:t,children:(0,l.jsx)(o.$nd,{type:"button",id:"copy-code-mirror",icon:(0,l.jsx)(o.TdU,{}),color:"primary",variant:"regular"})})})}),helpTip:u,helpTipPlacement:"right"})}},71435:(e,t,r)=>{"use strict";r.d(t,{CS:()=>s,Ez:()=>n,WJ:()=>o,Zb:()=>i});const n={RED:"#C83B51",GREEN:"#4CCB92",YELLOW:"#FFBD62"},o=(e,t)=>e<=t/2?"bad":2!==t&&e===t/2+1?"warn":e===t?"good":void 0,i=e=>{switch(e){case"offline":return"bad";case"online":return"good";default:return"warn"}},s=(e,t)=>e<=t/2?"bad":e===t/2+1?"warn":e===t?"good":void 0},81370:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>O});var n=r(65043),o=r(22166),i=r(73216),s=r(89923),a=r(77403),l=r(41206),c=r(99161),d=r(77938),p=r(72237),u=r(64681),x=r(71435),h=r(70579);const f={display:"grid",gridTemplateColumns:"70px 1fr",gap:15},m=e=>{let{search:t="",children:r=""}=e;const n=new RegExp(`(${function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}(t)})`,"i"),o=String(r).split(n);return t?o.map(((e,t)=>n.test(e)?(0,h.jsx)("mark",{children:e},t):e)):r},y=e=>{let{policyStatements:t}=e;const[r,o]=(0,n.useState)("");return(0,h.jsxs)(s.xA9,{container:!0,children:[(0,h.jsx)(s.xA9,{item:!0,xs:12,children:(0,h.jsxs)(s.xA9,{container:!0,sx:{display:"flex",alignItems:"center"},children:[(0,h.jsx)(s.V7x,{content:(0,h.jsxs)(n.Fragment,{children:["Define which actions are permitted on a specified resource. Learn more about"," ",(0,h.jsx)("a",{target:"blank",href:"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition.html",children:"IAM conditional statements"}),"."]}),placement:"right",children:(0,h.jsx)(s.xA9,{item:!0,xs:12,sm:6,sx:{fontWeight:"bold"},children:"Statements"})}),(0,h.jsx)(s.xA9,{item:!0,xs:12,sm:6,sx:{display:"flex",justifyContent:"flex-end"},children:(0,h.jsx)(u.A,{placeholder:"Search",onChange:o,value:r,sx:{maxWidth:380}})})]})}),!t&&(0,h.jsx)(n.Fragment,{children:"Policy has no statements"}),t&&(0,h.jsx)(s.xA9,{item:!0,xs:12,sx:{"& .policy-row":{borderBottom:"1px solid #eaeaea"},"& .policy-row:first-child":{borderTop:"1px solid #eaeaea"},"& .policy-row:last-child":{borderBottom:"0px"},paddingTop:"15px","& mark":{color:"#000000",fontWeight:500}},children:t.map(((e,t)=>{const n=e.Effect,o="Allow"===n;return(0,h.jsxs)(s.azJ,{className:"policy-row",sx:{display:"grid",gridTemplateColumns:"1fr",gap:"15px",fontSize:"14px",padding:"10px 0 10px 0","& .label":{fontWeight:600}},children:[(0,h.jsxs)(s.azJ,{sx:f,children:[(0,h.jsx)(s.azJ,{className:"label",children:"Effect:"}),(0,h.jsxs)(s.azJ,{sx:{display:"flex",alignItems:"center","& .min-icon":{marginRight:"5px",fill:o?x.Ez.GREEN:x.Ez.RED,height:"14px",width:"14px"}},children:[o?(0,h.jsx)(s.xhy,{}):(0,h.jsx)(s.aaC,{}),n]})]}),(0,h.jsxs)(s.xA9,{container:!0,sx:{gap:15},children:[(0,h.jsxs)(s.xA9,{item:!0,xs:12,sm:6,sx:f,children:[(0,h.jsx)(s.azJ,{className:"label",children:"Actions:"}),(0,h.jsx)(s.azJ,{children:e.Action&&e.Action.map(((e,n)=>(0,h.jsx)("div",{children:(0,h.jsx)(m,{search:r,children:e})},`${t}-r-${n}`)))})]}),(0,h.jsxs)(s.xA9,{item:!0,xs:12,sm:6,sx:f,children:[(0,h.jsx)(s.azJ,{className:"label",children:"Resources:"}),(0,h.jsx)(s.azJ,{children:e.Resource&&e.Resource.map(((e,n)=>(0,h.jsxs)("div",{children:[" ",(0,h.jsx)(m,{search:r,children:e})]},`${t}-r-${n}`)))})]})]})]},`${t}`)}))})]})};var b=r(64159),g=r(46537),j=r(21383),v=r(6681),C=r(48793),w=r(56629),A=r(88617);const P=(0,p.A)(n.lazy((()=>r.e(4676).then(r.bind(r,4676))))),O=()=>{const e=(0,j.jL)(),t=(0,i.Zp)(),r=(0,i.g)(),p=(0,o.d4)(g.s$),[x,f]=(0,n.useState)(null),[m,O]=(0,n.useState)([]),[S,_]=(0
//# sourceMappingURL=1370.7d88b85a.chunk.js.map