!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"95b7c22eb8a2502481fe65c08f3bb8d7c317f943"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="1cc7927b-640b-4b11-a80e-1268fa9455c4",e._sentryDebugIdIdentifier="sentry-dbid-1cc7927b-640b-4b11-a80e-1268fa9455c4")}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(11759),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(5981),s=n(11759),l=n(46587),r=n(49389),c=n(84418),h=n(55093),f=n(62718),b=n(55164),u=n(96396),m=n(74848);const w=(0,o.A)(()=>Promise.all([n.e(6568),n.e(9654),n.e(2025)]).then(n.bind(n,24211)),"AlertWebview"),g=(0,o.A)(()=>Promise.all([n.e(3403),n.e(6568),n.e(9015),n.e(4947),n.e(5129),n.e(6874),n.e(9654),n.e(529),n.e(3746),n.e(885),n.e(8502)]).then(n.bind(n,31481)),"DashboardWebview"),p=(0,o.A)(()=>Promise.all([n.e(3403),n.e(6568),n.e(9015),n.e(4947),n.e(5129),n.e(6874),n.e(9654),n.e(529),n.e(3746),n.e(885),n.e(8707),n.e(6616)]).then(n.bind(n,75439)),"PlaylistWebview");window.webviewNetdataToken=null;const x=(y=(0,b.Xc)(()=>{const{search:e}=window.location,{space_id:t,room_id:n,node_name:o,node_id:b}=d.A.parse(e),u=(0,l.uW)("isLoaded");return(0,r.Ay)(),(0,c.A)(),u?(0,m.jsx)(s.Flex,{overflow:"hidden",height:"100vh",width:"100vw",children:(0,m.jsx)(a.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:o,nodeId:b})}),(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}=d.A.parse(t),o=(0,u.RZ)(),[i,s]=(0,a.useState)(()=>o?localStorage.getItem(u.fZ):null);return(0,a.useEffect)(()=>{if(n){if(o)return localStorage.setItem(u.fZ,n),void s(n);window.webviewNetdataToken=n,s(n)}},[o,n]),i?(0,m.jsx)(y,{...e}):(0,m.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"])},[])}}}]);