try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="de44cfa3-0e83-4ecc-8f58-fd39ea0de38c",e._sentryDebugIdIdentifier="sentry-dbid-de44cfa3-0e83-4ecc-8f58-fd39ea0de38c")}()}catch(e){}!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"9085f826cfdc1d75ddfbe898ad75a9c7a36a9da7"}}catch(e){}}(),(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[7877],{37877:(e,t,d)=>{d.r(t),d.d(t,{default:()=>g});var n=d(96540),a=d(7960),o=d(86663),i=d(88934),s=d(63766),l=d(46587),r=d(49389),c=d(55093),h=d(62718),f=d(55164),u=d(74848);const w=(0,a.A)((()=>Promise.all([d.e(1220),d.e(1736),d.e(8904),d.e(6003),d.e(953),d.e(4651),d.e(4211)]).then(d.bind(d,24211))),"AlertWebview"),b=(0,a.A)((()=>Promise.all([d.e(2599),d.e(2573),d.e(6003),d.e(180),d.e(6403),d.e(2603),d.e(4424),d.e(6839)]).then(d.bind(d,31481))),"DashboardWebview");window.webviewNetdataToken=null;const g=(m=(0,f.Xc)((()=>{const{search:e}=window.location,{space_id:t,room_id:d,node_name:a,node_id:f}=o.parse(e),g=(0,l.uW)("isLoaded");return(0,r.Ay)(),g?(0,u.jsx)(s.Flex,{overflow:"hidden",height:"100vh",width:"100vw",children:(0,u.jsx)(n.Suspense,{fallback:(0,u.jsx)(h.xh,{}),children:(0,u.jsxs)(i.BV,{children:[(0,u.jsx)(i.qh,{path:"alerts/:alertId",element:(0,u.jsx)(w,{spaceId:t,roomId:d,nodeName:a,nodeId:f})}),(0,u.jsx)(i.qh,{path:"dashboards/:dashboardId",element:(0,u.jsx)(b,{spaceId:t,roomId:d})})]})})}):(0,u.jsx)(c.A,{})})),e=>{const{hash:t}=window.location,{token:d}=o.parse(t),[a,i]=(0,n.useState)();return(0,n.useEffect)((()=>{d&&(i(d),window.webviewNetdataToken=d,localStorage.removeItem("netdataJWT"))}),[]),a?(0,u.jsx)(m,{...e}):(0,u.jsx)(c.A,{})});var m},55093:(e,t,d)=>{d.d(t,{A:()=>r,m:()=>l});var n=d(33185),a=d(63766),o=d(74848);const i=(0,n.keyframes)(["from{opacity:0.4;}to{opacity:1;}"]),s=(0,n.default)(a.Icon).withConfig({displayName:"loader__StyledIcon",componentId:"sc-a76ek6-0"})(["width:",";height:",";animation:",";"],(e=>e.width),(e=>e.height),(e=>{let{animate:t}=e;return t?(0,n.css)([""," 1.6s ease-in infinite"],i):""})),l=e=>{let{title:t="Loading",width:d="208px",height:n="177px",...a}=e;return(0,o.jsx)(s,{name:"netdata",color:"primary",title:t,"data-testid":"loading-logo",width:d,height:n,...a})},r=e=>{let{title:t,body:d,iconProps:n,animate:i=!0,testId:s="",...r}=e;return(0,o.jsxs)(a.Flex,{column:!0,height:"100vh",background:"mainBackground",width:"100%",justifyContent:"center",alignItems:"center","data-testid":`loader-container-${s}`,...r,children:[(0,o.jsx)(l,{...n,animate:i}),t&&(0,o.jsx)(a.H3,{color:"text",margin:[1,0,0],children:t}),d&&(0,o.jsx)(a.Text,{color:"text",margin:[4.5,0,0],children:d})]})}}}]);