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