!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"6c5c4a21a2e48a657cc46560f5c18b469ebbf32c"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="cc1dbf97-2d50-403f-9e39-d0b7e26d4151",e._sentryDebugIdIdentifier="sentry-dbid-cc1dbf97-2d50-403f-9e39-d0b7e26d4151")}catch(e){}}(),(globalThis.webpackChunkcloud_frontend=globalThis.webpackChunkcloud_frontend||[]).push([[7877],{55093(e,t,n){n.d(t,{A:()=>r,m:()=>l});var d=n(882),a=n(32977),o=n(74848);const i=(0,d.keyframes)(["from{opacity:0.4;}to{opacity:1;}"]),s=(0,d.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,d.css)([""," 1.6s ease-in infinite"],i):""}),l=e=>{let{title:t="Loading",width:n="208px",height:d="177px",...a}=e;return(0,o.jsx)(s,{name:"netdata",color:"primary",title:t,"data-testid":"loading-logo",width:n,height:d,...a})},r=e=>{let{title:t,body:n,iconProps:d,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,{...d,animate:i}),t&&(0,o.jsx)(a.H3,{color:"text",margin:[1,0,0],children:t}),n&&(0,o.jsx)(a.Text,{color:"text",margin:[4.5,0,0],children:n})]})}},37877(e,t,n){n.r(t),n.d(t,{default:()=>x});var d=n(96540),a=n(7960),o=n(43276),i=n(5981),s=n(32977),l=n(46587),r=n(49389),c=n(84418),h=n(55093),f=n(62718),u=n(55164),b=n(96396),m=n(74848);const w=(0,a.A)(()=>Promise.all([n.e(7326),n.e(4499),n.e(701),n.e(9654),n.e(2025)]).then(n.bind(n,24211)),"AlertWebview"),g=(0,a.A)(()=>Promise.all([n.e(7326),n.e(5),n.e(5734),n.e(6874),n.e(8160),n.e(3746),n.e(701),n.e(317),n.e(4832)]).then(n.bind(n,31481)),"DashboardWebview"),p=(0,a.A)(()=>Promise.all([n.e(7326),n.e(5),n.e(5734),n.e(6874),n.e(8160),n.e(3746),n.e(701),n.e(317),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:a,node_id:u}=o.A.parse(e),b=(0,l.uW)("isLoaded");return(0,r.Ay)(),(0,c.A)(),b?(0,m.jsx)(s.Flex,{overflow:"hidden",height:"100vh",width:"100vw",children:(0,m.jsx)(d.Suspense,{fallback:(0,m.jsx)(f.xh,{}),children:(0,m.jsxs)(i.BV,{children:[(0,m.jsx)(i.qh,{path:"alerts/:alertId",element:(0,m.jsx)(w,{spaceId:t,roomId:n,nodeName:a,nodeId:u})}),(0,m.jsx)(i.qh,{path:"dashboards/:dashboardId",element:(0,m.jsx)(g,{spaceId:t,roomId:n})}),(0,m.jsx)(i.qh,{path:"playlists/:playlistId",element:(0,m.jsx)(p,{spaceId:t,roomId:n})})]})})}):(0,m.jsx)(h.A,{})}),e=>{const{hash:t}=window.location,{token:n}=o.A.parse(t),a=(0,b.RZ)(),[i,s]=(0,d.useState)(()=>a?localStorage.getItem(b.fZ):null);return(0,d.useEffect)(()=>{if(n){if(a)return localStorage.setItem(b.fZ,n),void s(n);window.webviewNetdataToken=n,s(n)}},[a,n]),i?(0,m.jsx)(y,{...e}):(0,m.jsx)(h.A,{})});var y},84418(e,t,n){n.d(t,{A:()=>i});var d=n(96540),a=n(89942),o=n(24285);const i=()=>{const e=(0,o.xd)("timezone"),t=(0,o.fW)("timezone");(0,d.useEffect)(()=>{const{utc:n}=(0,a.PP)();e||n&&"default"!==n&&t(n),(0,a.Pg)(["utc","offset","timezoneName"])},[])}}}]);