File: //proc/self/root/opt/netdata/netdata-web-files/v3/7931.ffeec2b9f20ef687f942.chunk.js
!function(){try{var n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};n.SENTRY_RELEASE={id:"6866bb78c87eb499c83445c224071f481cf2061d"};var e=(new n.Error).stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="9064f54c-5b91-445e-8bc6-b5b5aae59cd4",n._sentryDebugIdIdentifier="sentry-dbid-9064f54c-5b91-445e-8bc6-b5b5aae59cd4")}catch(n){}}(),(globalThis.webpackChunkcloud_frontend=globalThis.webpackChunkcloud_frontend||[]).push([[7931],{43581(n,e,s){s.d(e,{A:()=>i});var t=s(22794),r=s(34412),a=s(74848);const i=n=>{let{children:e}=n;return(0,a.jsx)(t.A,{config:{nodes:r.A},children:e})}},27931(n,e,s){s.r(e),s.d(e,{default:()=>w});s(98992),s(81454);var t=s(38429),r=s(56171),a=s(53949),i=s(43581),c=s(17662),d=s(96540),o=s(24609),l=s(40545);const g=n=>{let{key:e}=n;const{id:s}=(0,l.A)(),t=(0,o.vt)();return(0,d.useCallback)(()=>`${e}-${s}-${t}`,[e,s,t])};var b=s(74848);const u=n=>{let{warningKey:e,warningLevel:s,text:d}=n;const{background:o,isDismissable:l,icon:u,iconColor:f}=c.f[s],w=g({key:e}),{dismissed:y,onClose:h}=(0,a.A)({getLocalStorageKey:w,logKey:`${e}-dissmiss`});return y?null:(0,b.jsx)(r.A,{className:"space-warning-banner-container",testId:`space-warning-banner-${e}-${s}`,background:o,onClose:l?h:null,children:(0,b.jsxs)(t.Flex,{"data-testid":`text-space-warnings-${e}-${s}`,justifyContent:"center",alignItems:"center",width:"100%",gap:2,children:[(0,b.jsx)(t.Icon,{"data-testid":`icon-banner-space-warnings-${e}-${s}`,color:f,name:u}),(0,b.jsx)(i.A,{children:d})]})})};var f=s(68534);const w=()=>{const{warnings:n}=(0,f.A)();return(0,b.jsx)(b.Fragment,{children:n.map(n=>(0,b.jsx)(u,{...n},n.warningKey))})}},68534(n,e,s){s.d(e,{A:()=>r});s(98992),s(81454);var t=s(24609);const r=()=>{const n=(0,t.ap)(),{warnings:e}=n||{};return{warnings:(e||[]).map(n=>{let{kind:e,text:s,urgency:t}=n;return{warningKey:e,warningLevel:t||"info",text:s}})}}}}]);