mirror of
https://github.com/OpenMaxIO/openmaxio-object-browser
synced 2026-07-01 07:41:18 -07:00
2 lines
20 KiB
JavaScript
2 lines
20 KiB
JavaScript
|
|
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[2138],{48967:(e,i,t)=>{t.d(i,{A:()=>p});var r=t(65043),s=t(56629),n=t(53518),l=t(58661),a=t(89923),o=t(64159),d=t(21383),c=t(70579);const p=e=>{let{configurationName:i,closeResetModalAndRefresh:t,resetOpen:p}=e;const x=(0,d.jL)(),[u,h]=(0,r.useState)(!1);(0,r.useEffect)((()=>{u&&s.F.configs.resetConfig(i).then((()=>{h(!1),t(!0)})).catch((e=>{h(!1),x((0,o.C9)((0,n.S)(e.error)))}))}),[t,i,u,x]);return(0,c.jsx)(l.A,{title:"Restore Defaults",confirmText:"Yes, Reset Configuration",isOpen:p,titleIcon:(0,c.jsx)(a.xWY,{}),isLoading:u,onConfirm:()=>{h(!0)},onClose:()=>{t(!1)},confirmationContent:(0,c.jsxs)(r.Fragment,{children:[u&&(0,c.jsx)(a.z21,{}),(0,c.jsxs)(r.Fragment,{children:["Are you sure you want to restore these configurations to default values?",(0,c.jsx)("br",{}),(0,c.jsx)("b",{style:{maxWidth:"200px",whiteSpace:"normal",wordWrap:"break-word"},children:"Please note that this may cause your system to not be accessible"})]})]})})}},38392:(e,i,t)=>{t.d(i,{A:()=>a});var r=t(65043),s=t(89923),n=t(70579);const l=e=>{let{icon:i,description:t}=e;return(0,n.jsxs)(s.azJ,{sx:{display:"flex","& .min-icon":{marginRight:"10px",height:"23px",width:"23px",marginBottom:"10px"}},children:[i," ",(0,n.jsx)("div",{style:{fontSize:"14px",fontStyle:"italic",color:"#5E5E5E"},children:t})]})},a=e=>{let{helpText:i,docLink:t,docText:a,contents:o}=e;return(0,n.jsxs)(s.azJ,{sx:{flex:1,border:"1px solid #eaeaea",borderRadius:"2px",display:"flex",flexFlow:"column",padding:"20px"},children:[(0,n.jsxs)(s.azJ,{sx:{fontSize:"16px",fontWeight:600,display:"flex",alignItems:"center",marginBottom:"16px",paddingBottom:"20px","& .min-icon":{height:"21px",width:"21px",marginRight:"15px"}},children:[(0,n.jsx)(s.nag,{}),(0,n.jsx)("div",{children:i})]}),(0,n.jsxs)(s.azJ,{sx:{fontSize:"14px",marginBottom:"15px"},children:[o.map(((e,i)=>(0,n.jsxs)(r.Fragment,{children:[e.icon&&(0,n.jsx)(s.azJ,{sx:{paddingBottom:"20px"},children:(0,n.jsx)(l,{icon:e.icon,description:e.iconDescription})}),(0,n.jsx)(s.azJ,{sx:{paddingBottom:"20px"},children:e.text})]},`feature-item-${i}`))),(0,n.jsx)(s.azJ,{sx:{paddingBottom:"20px"},children:(0,n.jsx)("a",{href:t,target:"_blank",rel:"noopener",children:a})})]})]})}},2138:(e,i,t)=>{t.r(i),t.d(i,{default:()=>D});var r=t(65043),s=t(89923),n=t(56629),l=t(53518),a=t(21383),o=t(64159),d=t(42349),c=t(48793),p=t(38392),x=t(22166),u=t(24241),h=t(70579);const m=e=>{let{name:i}=e;return(0,h.jsxs)("h4",{children:[(0,h.jsx)(s.FUY,{style:{transform:"rotateZ(90deg)"}}),i]})},g=e=>{let{blockName:i,results:t}=e;return(0,h.jsxs)(r.Fragment,{children:[(0,h.jsxs)("strong",{children:[i,":"]}),(0,h.jsx)("ul",{children:t.map(((e,t)=>(0,h.jsx)("li",{children:e},`policy-${i}-${t}`)))})]})},f=e=>{var i,t,n,l,a,o;let{entityName:d,results:c}=e,p=0;switch(d){case"Group":p=(null===(i=c.groups)||void 0===i?void 0:i.length)||0;break;case"Policy":p=(null===(t=c.policies)||void 0===t?void 0:t.length)||0;break;case"User":p=(null===(n=c.users)||void 0===n?void 0:n.length)||0}return(0,h.jsxs)(s.azJ,{className:"resultElement",sx:{marginTop:50,"&:first-of-type":{marginTop:0}},children:[(0,h.jsxs)(s._xt,{separator:!0,sx:{fontSize:12},icon:(0,h.jsx)(s.Xk0,{style:{width:17,height:17}}),actions:(0,h.jsxs)(s.azJ,{sx:{fontSize:14},children:[(0,h.jsx)("strong",{children:p})," Entit",1===p?"y":"ies"," Found"]}),children:[d," Mappings"]}),(0,h.jsxs)(s.azJ,{className:"resultsList",sx:{h4:{borderBottom:"#e2e2e2 1px solid",padding:"12px 0",margin:0,marginBottom:15,display:"flex",alignItems:"center","& svg":{marginRight:10,fill:"#3C77A7"}}},children:["Group"===d&&(null===(l=c.groups)||void 0===l?void 0:l.map(((e,i)=>(0,h.jsxs)(r.Fragment,{children:[(0,h.jsx)(m,{name:e.group||""}),e.policies&&(0,h.jsx)(g,{blockName:"Policies",results:e.policies})]},`policy-res-${i}`)))),"User"===d&&(null===(a=c.users)||void 0===a?void 0:a.map(((e,i)=>(0,h.jsxs)(r.Fragment,{children:[(0,h.jsx)(m,{name:e.user||""}),e.policies&&(0,h.jsx)(g,{blockName:"Policies",results:e.policies})]},`users-res-${i}`)))),"Policy"===d&&(null===(o=c
|
||
|
|
//# sourceMappingURL=2138.fad0ce4b.chunk.js.map
|