!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"d59f3e13055072acb481db3c59603d296982e8b2"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="fa8842b9-1fa1-4379-866b-2a9b0468e6b2",e._sentryDebugIdIdentifier="sentry-dbid-fa8842b9-1fa1-4379-866b-2a9b0468e6b2")}catch(e){}}(),(globalThis.webpackChunkcloud_frontend=globalThis.webpackChunkcloud_frontend||[]).push([[7877],{55093(e,t,n){n.d(t,{A:()=>l,m:()=>r});var a=n(882),d=n(38429),o=n(74848);const i=(0,a.keyframes)(["from{opacity:0.4;}to{opacity:1;}"]),s=(0,a.default)(d.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,a.css)([""," 1.6s ease-in infinite"],i):""}),r=e=>{let{title:t="Loading",width:n="208px",height:a="177px",...d}=e;return(0,o.jsx)(s,{name:"netdata",color:"primary",title:t,"data-testid":"loading-logo",width:n,height:a,...d})},l=e=>{let{title:t,body:n,iconProps:a,animate:i=!0,testId:s="",...l}=e;return(0,o.jsxs)(d.Flex,{column:!0,height:"100vh",background:"mainBackground",width:"100%",justifyContent:"center",alignItems:"center","data-testid":`loader-container-${s}`,...l,children:[(0,o.jsx)(r,{...a,animate:i}),t&&(0,o.jsx)(d.H3,{color:"text",margin:[1,0,0],children:t}),n&&(0,o.jsx)(d.Text,{color:"text",margin:[4.5,0,0],children:n})]})}},37877(e,t,n){n.r(t),n.d(t,{default:()=>g});var a=n(96540),d=n(7960),o=n(43276),i=n(76667),s=n(38429),r=n(46587),l=n(49389),c=n(84418),h=n(55093),b=n(62718),f=n(55164),u=n(74848);const m=(0,d.A)(()=>Promise.all([n.e(7326),n.e(7234),n.e(701),n.e(9654),n.e(2025)]).then(n.bind(n,24211)),"AlertWebview"),w=(0,d.A)(()=>Promise.all([n.e(7326),n.e(4317),n.e(5877),n.e(701),n.e(6874),n.e(3873),n.e(5792),n.e(9997)]).then(n.bind(n,31481)),"DashboardWebview");window.webviewNetdataToken=null;const g=(x=(0,f.Xc)(()=>{const{search:e}=window.location,{space_id:t,room_id:n,node_name:d,node_id:f}=o.A.parse(e),g=(0,r.uW)("isLoaded");return(0,l.Ay)(),(0,c.A)(),g?(0,u.jsx)(s.Flex,{overflow:"hidden",height:"100vh",width:"100vw",children:(0,u.jsx)(a.Suspense,{fallback:(0,u.jsx)(b.xh,{}),children:(0,u.jsxs)(i.BV,{children:[(0,u.jsx)(i.qh,{path:"alerts/:alertId",element:(0,u.jsx)(m,{spaceId:t,roomId:n,nodeName:d,nodeId:f})}),(0,u.jsx)(i.qh,{path:"dashboards/:dashboardId",element:(0,u.jsx)(w,{spaceId:t,roomId:n})})]})})}):(0,u.jsx)(h.A,{})}),e=>{const{hash:t}=window.location,{token:n}=o.A.parse(t),[d,i]=(0,a.useState)();return(0,a.useEffect)(()=>{n&&(i(n),window.webviewNetdataToken=n,localStorage.removeItem("netdataJWT"))},[]),d?(0,u.jsx)(x,{...e}):(0,u.jsx)(h.A,{})});var x},84418(e,t,n){n.d(t,{A:()=>i});var a=n(96540),d=n(89942),o=n(24285);const i=()=>{const e=(0,o.xd)("timezone"),t=(0,o.fW)("timezone");(0,a.useEffect)(()=>{const{utc:n}=(0,d.PP)();e||n&&"default"!==n&&t(n),(0,d.Pg)(["utc","offset","timezoneName"])},[])}}}]);