File: //opt/netdata/usr/local/share/netdata/web/v3/7877.f7606b3286bc02374321.chunk.js
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"0725d67f2585acd82a0d73d488b6cd9060c3224d"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d59a2104-7b6f-47cb-b16c-d3ed63cc3f87",e._sentryDebugIdIdentifier="sentry-dbid-d59a2104-7b6f-47cb-b16c-d3ed63cc3f87")}catch(e){}}(),(globalThis.webpackChunkcloud_frontend=globalThis.webpackChunkcloud_frontend||[]).push([[7877],{55093(e,t,n){n.d(t,{A:()=>c,m:()=>r});var d=n(882),a=n(78904),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):""}),r=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})},c=e=>{let{title:t,body:n,iconProps:d,animate:i=!0,testId:s="",...c}=e;return(0,o.jsxs)(a.Flex,{column:!0,height:"100vh",background:"mainBackground",width:"100%",justifyContent:"center",alignItems:"center","data-testid":`loader-container-${s}`,...c,children:[(0,o.jsx)(r,{...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:()=>g});var d=n(96540),a=n(7960),o=n(43276),i=n(76667),s=n(78904),r=n(46587),c=n(49389),l=n(84418),h=n(55093),f=n(62718),u=n(55164),b=n(74848);const m=(0,a.A)(()=>Promise.all([n.e(7326),n.e(7234),n.e(1459),n.e(9654),n.e(2025)]).then(n.bind(n,24211)),"AlertWebview"),w=(0,a.A)(()=>Promise.all([n.e(7326),n.e(5),n.e(5877),n.e(1459),n.e(4835),n.e(5792),n.e(9997)]).then(n.bind(n,31481)),"DashboardWebview");window.webviewNetdataToken=null;const g=(x=(0,u.Xc)(()=>{const{search:e}=window.location,{space_id:t,room_id:n,node_name:a,node_id:u}=o.A.parse(e),g=(0,r.uW)("isLoaded");return(0,c.Ay)(),(0,l.A)(),g?(0,b.jsx)(s.Flex,{overflow:"hidden",height:"100vh",width:"100vw",children:(0,b.jsx)(d.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)(m,{spaceId:t,roomId:n,nodeName:a,nodeId:u})}),(0,b.jsx)(i.qh,{path:"dashboards/:dashboardId",element:(0,b.jsx)(w,{spaceId:t,roomId:n})})]})})}):(0,b.jsx)(h.A,{})}),e=>{const{hash:t}=window.location,{token:n}=o.A.parse(t),[a,i]=(0,d.useState)();return(0,d.useEffect)(()=>{n&&(i(n),window.webviewNetdataToken=n,localStorage.removeItem("netdataJWT"))},[]),a?(0,b.jsx)(x,{...e}):(0,b.jsx)(h.A,{})});var x},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"])},[])}}}]);