mirror of
https://github.com/OpenMaxIO/openmaxio-object-browser
synced 2026-07-01 07:41:18 -07:00
2 lines
16 KiB
JavaScript
2 lines
16 KiB
JavaScript
|
|
(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[1191],{92217:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var o=r(72791),n=r(29945),i=r(78029),s=r.n(i),a=r(27454),c=r(80184);const l=e=>{let{value:t,label:r="",tooltip:i="",mode:l="json",onChange:d,editorHeight:u=250,helptip:p}=e;return(0,c.jsx)(n.pq4,{value:t,onChange:e=>d(e),mode:l,tooltip:i,editorHeight:u,label:r,helpTools:(0,c.jsx)(o.Fragment,{children:(0,c.jsx)(a.Z,{tooltip:"Copy to Clipboard",children:(0,c.jsx)(s(),{text:t,children:(0,c.jsx)(n.zxk,{type:"button",id:"copy-code-mirror",icon:(0,c.jsx)(n.TIy,{}),color:"primary",variant:"regular"})})})}),helpTip:p,helpTipPlacement:"right"})}},879:(e,t,r)=>{"use strict";r.d(t,{D_:()=>s,Et:()=>n,GJ:()=>i,yh:()=>o});const o={RED:"#C83B51",GREEN:"#4CCB92",YELLOW:"#FFBD62"},n=(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},1191:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>E});var o=r(72791),n=r(78687),i=r(57689),s=r(29945),a=r(23814),c=r(92217),l=r(56087),d=r(38442),u=r(75578),p=r(59114),h=r(879),f=r(80184);const y={display:"grid",gridTemplateColumns:"70px 1fr",gap:15},m=e=>{let{search:t="",children:r=""}=e;const o=new RegExp("(".concat(function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}(t),")"),"i"),n=String(r).split(o);return t?n.map(((e,t)=>o.test(e)?(0,f.jsx)("mark",{children:e},t):e)):r},x=e=>{let{policyStatements:t}=e;const[r,n]=(0,o.useState)("");return(0,f.jsxs)(s.rjZ,{container:!0,children:[(0,f.jsx)(s.rjZ,{item:!0,xs:12,children:(0,f.jsxs)(s.rjZ,{container:!0,sx:{display:"flex",alignItems:"center"},children:[(0,f.jsx)(s.SYi,{content:(0,f.jsxs)(o.Fragment,{children:["Define which actions are permitted on a specified resource. Learn more about"," ",(0,f.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,f.jsx)(s.rjZ,{item:!0,xs:12,sm:6,sx:{fontWeight:"bold"},children:"Statements"})}),(0,f.jsx)(s.rjZ,{item:!0,xs:12,sm:6,sx:{display:"flex",justifyContent:"flex-end"},children:(0,f.jsx)(p.Z,{placeholder:"Search",onChange:n,value:r,sx:{maxWidth:380}})})]})}),!t&&(0,f.jsx)(o.Fragment,{children:"Policy has no statements"}),t&&(0,f.jsx)(s.rjZ,{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 o=e.Effect,n="Allow"===o;return(0,f.jsxs)(s.xuv,{className:"policy-row",sx:{display:"grid",gridTemplateColumns:"1fr",gap:"15px",fontSize:"14px",padding:"10px 0 10px 0","& .label":{fontWeight:600}},children:[(0,f.jsxs)(s.xuv,{sx:y,children:[(0,f.jsx)(s.xuv,{className:"label",children:"Effect:"}),(0,f.jsxs)(s.xuv,{sx:{display:"flex",alignItems:"center","& .min-icon":{marginRight:"5px",fill:n?h.yh.GREEN:h.yh.RED,height:"14px",width:"14px"}},children:[n?(0,f.jsx)(s.E31,{}):(0,f.jsx)(s.dRf,{}),o]})]}),(0,f.jsxs)(s.rjZ,{container:!0,sx:{gap:15},children:[(0,f.jsxs)(s.rjZ,{item:!0,xs:12,sm:6,sx:y,children:[(0,f.jsx)(s.xuv,{className:"label",children:"Actions:"}),(0,f.jsx)(s.xuv,{children:e.Action&&e.Action.map(((e,o)=>(0,f.jsx)("div",{children:(0,f.jsx)(m,{search:r,children:e})},"".concat(t,"-r-").concat(o))))})]}),(0,f.jsxs)(s.rjZ,{item:!0,xs:12,sm:6,sx:y,children:[(0,f.jsx)(s.xuv,{className:"label",children:"Resources:"}),(0,f.jsx)(s.xuv,{children:e.Resource&&e.Resource.map(((e,o)=>(0,f.jsxs)("div",{children:[" ",(0,f.jsx)(m,{search:r,children:e})]},"".concat(t,"-r-").concat(o))))})]})]})]},"".concat(t))}))})]})};var j=r(45248),b=r(87995),g=r(46078),v=r(44690),C=r(27454),w=r(79844),S=r(31776),O=r(99670);const P=(0,u.Z)(o.lazy((()=>r.e(312).then(r.bind(r,312))))),E=()=>{const e=(0,v.TL)(),t=(0,i.s0)(),r=(0,i.UO)(),u=(0,n.v9)(g.$4),[h,y
|
||
|
|
//# sourceMappingURL=1191.77653544.chunk.js.map
|