!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"d1c7ac46f068d62cb709fcb0a5f45d31b06ca6ae"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="326ebc24-b53f-4292-8096-27591170cecc",e._sentryDebugIdIdentifier="sentry-dbid-326ebc24-b53f-4292-8096-27591170cecc")}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(56327),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(56327),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,o.A)(()=>Promise.all([n.e(2919),n.e(3738),n.e(2025)]).then(n.bind(n,24211)),"AlertWebview"),g=(0,o.A)(()=>Promise.all([n.e(3403),n.e(2919),n.e(1396),n.e(6874),n.e(4947),n.e(3709),n.e(4596),n.e(4663),n.e(3738),n.e(1388),n.e(3746),n.e(5143),n.e(797),n.e(7152)]).then(n.bind(n,31481)),"DashboardWebview"),p=(0,o.A)(()=>Promise.all([n.e(3403),n.e(2919),n.e(1396),n.e(6874),n.e(4947),n.e(3709),n.e(4596),n.e(4663),n.e(3738),n.e(1388),n.e(3746),n.e(5143),n.e(8707),n.e(797),n.e(6682)]).then(n.bind(n,75439)),"PlaylistWebview");window.webviewNetdataToken=null;const x=(I=(0,u.Xc)(()=>{const{search:e}=window.location,{space_id:t,room_id:n,node_name:o,node_id:u}=d.A.parse(e),b=(0,l.uW)("isLoaded");return(0,r.A)(),(0,c.A)(),b?(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: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}=d.A.parse(t),o=(0,b.RZ)(),[i,s]=(0,a.useState)(()=>o?localStorage.getItem(b.fZ):null);return(0,a.useEffect)(()=>{if(n){if(o)return localStorage.setItem(b.fZ,n),void s(n);window.webviewNetdataToken=n,s(n)}},[o,n]),i?(0,m.jsx)(I,{...e}):(0,m.jsx)(h.A,{})});var I},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"])},[])}}}]);