!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"e1389b29a88a178b657c7ee0929bea19c58ceb8c"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="30fcc112-cc77-4c2e-8f18-917f28efadcb",e._sentryDebugIdIdentifier="sentry-dbid-30fcc112-cc77-4c2e-8f18-917f28efadcb")}catch(e){}}(),(globalThis.webpackChunkcloud_frontend=globalThis.webpackChunkcloud_frontend||[]).push([[7877],{55093(e,t,n){n.d(t,{A:()=>r,m:()=>l});var a=n(882),o=n(73777),d=n(74848);const i=(0,a.keyframes)(["from{opacity:0.4;}to{opacity:1;}"]),s=(0,a.default)(o.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):""}),l=e=>{let{title:t="Loading",width:n="208px",height:a="177px",...o}=e;return(0,d.jsx)(s,{name:"netdata",color:"primary",title:t,"data-testid":"loading-logo",width:n,height:a,...o})},r=e=>{let{title:t,body:n,iconProps:a,animate:i=!0,testId:s="",...r}=e;return(0,d.jsxs)(o.Flex,{column:!0,height:"100vh",background:"mainBackground",width:"100%",justifyContent:"center",alignItems:"center","data-testid":`loader-container-${s}`,...r,children:[(0,d.jsx)(l,{...a,animate:i}),t&&(0,d.jsx)(o.H3,{color:"text",margin:[1,0,0],children:t}),n&&(0,d.jsx)(o.Text,{color:"text",margin:[4.5,0,0],children:n})]})}},37877(e,t,n){n.r(t),n.d(t,{default:()=>x});var a=n(96540),o=n(7960),d=n(43276),i=n(76667),s=n(73777),l=n(46587),r=n(49389),c=n(84418),h=n(55093),f=n(62718),u=n(55164),m=n(96396),b=n(74848);const w=(0,o.A)(()=>Promise.all([n.e(7326),n.e(7234),n.e(701),n.e(9654),n.e(2025)]).then(n.bind(n,24211)),"AlertWebview"),g=(0,o.A)(()=>Promise.all([n.e(7326),n.e(3746),n.e(70),n.e(5734),n.e(6874),n.e(6023),n.e(701),n.e(5792),n.e(4832)]).then(n.bind(n,31481)),"DashboardWebview"),p=(0,o.A)(()=>Promise.all([n.e(7326),n.e(3746),n.e(70),n.e(5734),n.e(6874),n.e(6023),n.e(701),n.e(5792),n.e(8707),n.e(6534)]).then(n.bind(n,75439)),"PlaylistWebview");window.webviewNetdataToken=null;const x=(y=(0,u.Xc)(()=>{const{search:e}=window.location,{space_id:t,room_id:n,node_name:o,node_id:u}=d.A.parse(e),m=(0,l.uW)("isLoaded");return(0,r.Ay)(),(0,c.A)(),m?(0,b.jsx)(s.Flex,{overflow:"hidden",height:"100vh",width:"100vw",children:(0,b.jsx)(a.Suspense,{fallback:(0,b.jsx)(f.xh,{}),children:(0,b.jsxs)(i.BV,{children:[(0,b.jsx)(i.qh,{path:"alerts/:alertId",element:(0,b.jsx)(w,{spaceId:t,roomId:n,nodeName:o,nodeId:u})}),(0,b.jsx)(i.qh,{path:"dashboards/:dashboardId",element:(0,b.jsx)(g,{spaceId:t,roomId:n})}),(0,b.jsx)(i.qh,{path:"playlists/:playlistId",element:(0,b.jsx)(p,{spaceId:t,roomId:n})})]})})}):(0,b.jsx)(h.A,{})}),e=>{const{hash:t}=window.location,{token:n}=d.A.parse(t),o=(0,m.RZ)(),[i,s]=(0,a.useState)(()=>o?localStorage.getItem(m.fZ):null);return(0,a.useEffect)(()=>{if(n){if(o)return localStorage.setItem(m.fZ,n),void s(n);window.webviewNetdataToken=n,s(n)}},[o,n]),i?(0,b.jsx)(y,{...e}):(0,b.jsx)(h.A,{})});var y},84418(e,t,n){n.d(t,{A:()=>i});var a=n(96540),o=n(89942),d=n(24285);const i=()=>{const e=(0,d.xd)("timezone"),t=(0,d.fW)("timezone");(0,a.useEffect)(()=>{const{utc:n}=(0,o.PP)();e||n&&"default"!==n&&t(n),(0,o.Pg)(["utc","offset","timezoneName"])},[])}}}]);