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.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[1690],{90767:(e,i,t)=>{t.d(i,{Z:()=>u});var r=t(72791),n=t(31776),s=t(82342),l=t(23508),o=t(29945),a=t(87995),c=t(44690),d=t(80184);const u=e=>{let{configurationName:i,closeResetModalAndRefresh:t,resetOpen:u}=e;const p=(0,c.TL)(),[x,h]=(0,r.useState)(!1);(0,r.useEffect)((()=>{x&&n.h.configs.resetConfig(i).then((()=>{h(!1),t(!0)})).catch((e=>{h(!1),p((0,a.Ih)((0,s.g)(e.error)))}))}),[t,i,x,p]);return(0,d.jsx)(l.Z,{title:"Restore Defaults",confirmText:"Yes, Reset Configuration",isOpen:u,titleIcon:(0,d.jsx)(o.NvT,{}),isLoading:x,onConfirm:()=>{h(!0)},onClose:()=>{t(!1)},confirmationContent:(0,d.jsxs)(r.Fragment,{children:[x&&(0,d.jsx)(o.kod,{}),(0,d.jsxs)(r.Fragment,{children:["Are you sure you want to restore these configurations to default values?",(0,d.jsx)("br",{}),(0,d.jsx)("b",{style:{maxWidth:"200px",whiteSpace:"normal",wordWrap:"break-word"},children:"Please note that this may cause your system to not be accessible"})]})]})})}},37099:(e,i,t)=>{t.d(i,{Z:()=>o});var r=t(72791),n=t(29945),s=t(80184);const l=e=>{let{icon:i,description:t}=e;return(0,s.jsxs)(n.xuv,{sx:{display:"flex","& .min-icon":{marginRight:"10px",height:"23px",width:"23px",marginBottom:"10px"}},children:[i," ",(0,s.jsx)("div",{style:{fontSize:"14px",fontStyle:"italic",color:"#5E5E5E"},children:t})]})},o=e=>{let{helpText:i,docLink:t,docText:o,contents:a}=e;return(0,s.jsxs)(n.xuv,{sx:{flex:1,border:"1px solid #eaeaea",borderRadius:"2px",display:"flex",flexFlow:"column",padding:"20px"},children:[(0,s.jsxs)(n.xuv,{sx:{fontSize:"16px",fontWeight:600,display:"flex",alignItems:"center",marginBottom:"16px",paddingBottom:"20px","& .min-icon":{height:"21px",width:"21px",marginRight:"15px"}},children:[(0,s.jsx)(n.M9A,{}),(0,s.jsx)("div",{children:i})]}),(0,s.jsxs)(n.xuv,{sx:{fontSize:"14px",marginBottom:"15px"},children:[a.map(((e,i)=>(0,s.jsxs)(r.Fragment,{children:[e.icon&&(0,s.jsx)(n.xuv,{sx:{paddingBottom:"20px"},children:(0,s.jsx)(l,{icon:e.icon,description:e.iconDescription})}),(0,s.jsx)(n.xuv,{sx:{paddingBottom:"20px"},children:e.text})]},"feature-item-".concat(i)))),(0,s.jsx)(n.xuv,{sx:{paddingBottom:"20px"},children:(0,s.jsx)("a",{href:t,target:"_blank",rel:"noopener",children:o})})]})]})}},11690:(e,i,t)=>{t.r(i),t.d(i,{default:()=>C});var r=t(72791),n=t(29945),s=t(31776),l=t(82342),o=t(44690),a=t(87995),c=t(79979),d=t(79844),u=t(37099),p=t(78687),x=t(99779),h=t(80184);const g=e=>{let{name:i}=e;return(0,h.jsxs)("h4",{children:[(0,h.jsx)(n.ZyT,{style:{transform:"rotateZ(90deg)"}}),i]})},m=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-".concat(i,"-").concat(t))))})]})},f=e=>{var i,t,s,l,o,a;let{entityName:c,results:d}=e,u=0;switch(c){case"Group":u=(null===(i=d.groups)||void 0===i?void 0:i.length)||0;break;case"Policy":u=(null===(t=d.policies)||void 0===t?void 0:t.length)||0;break;case"User":u=(null===(s=d.users)||void 0===s?void 0:s.length)||0}return(0,h.jsxs)(n.xuv,{className:"resultElement",sx:{marginTop:50,"&:first-of-type":{marginTop:0}},children:[(0,h.jsxs)(n.NZf,{separator:!0,sx:{fontSize:12},icon:(0,h.jsx)(n.anK,{style:{width:17,height:17}}),actions:(0,h.jsxs)(n.xuv,{sx:{fontSize:14},children:[(0,h.jsx)("strong",{children:u})," Entit",1===u?"y":"ies"," Found"]}),children:[c," Mappings"]}),(0,h.jsxs)(n.xuv,{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"===c&&(null===(l=d.groups)||void 0===l?void 0:l.map(((e,i)=>(0,h.jsxs)(r.Fragment,{children:[(0,h.jsx)(g,{name:e.group||""}),e.policies&&(0,h.jsx)(m,{blockName:"Policies",results:e.policies})]},"policy-res-".concat(i))))),"User"===c&&(null===(o=d.users)||void 0===o?void 0:o.map(((e,i)=>(0,h.jsxs)(r.Fragment,{children:[(0,h.jsx)(g,{name:e.user||""}),e.policies&&(0,h.jsx)(m,{blockName:"Policies",results:e.policies})]},"users-res-".co
|
||
|
|
//# sourceMappingURL=1690.8063e908.chunk.js.map
|