File: //opt/netdata/usr/local/local/share/netdata/web/v3/7877.78ad5267aadeae8cd9b3.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:"924951b7e9646327aedf6a644e4ade24c230a2be"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="388fc590-46dd-426f-aa13-f0cb21b31a6e",e._sentryDebugIdIdentifier="sentry-dbid-388fc590-46dd-426f-aa13-f0cb21b31a6e")}catch(e){}}(),(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[7877],{55093(e,t,n){n.d(t,{A:()=>u,m:()=>p});n(98992),n(54520),n(3949);var r=n(64467),o=n(80045),a=n(51510),i=n(99191),c=n(74848);const d=["title","width","height"],s=["title","body","iconProps","animate","testId"];function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){(0,r.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const f=(0,a.keyframes)(["from{opacity:0.4;}to{opacity:1;}"]),h=(0,a.default)(i.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"],f):""})),p=e=>{let{title:t="Loading",width:n="208px",height:r="177px"}=e,a=(0,o.A)(e,d);return(0,c.jsx)(h,b({name:"netdata",color:"primary",title:t,"data-testid":"loading-logo",width:n,height:r},a))},u=e=>{let{title:t,body:n,iconProps:r,animate:a=!0,testId:d=""}=e,l=(0,o.A)(e,s);return(0,c.jsxs)(i.Flex,b(b({column:!0,height:"100vh",background:"mainBackground",width:"100%",justifyContent:"center",alignItems:"center","data-testid":"loader-container-".concat(d)},l),{},{children:[(0,c.jsx)(p,b(b({},r),{},{animate:a})),t&&(0,c.jsx)(i.H3,{color:"text",margin:[1,0,0],children:t}),n&&(0,c.jsx)(i.Text,{color:"text",margin:[4.5,0,0],children:n})]}))}},37877(e,t,n){n.r(t),n.d(t,{default:()=>g});var r=n(64467),o=(n(27495),n(98992),n(54520),n(3949),n(62953),n(96540)),a=n(7960),i=n(43276),c=n(41344),d=n(99191),s=n(46587),l=n(49389),b=n(55093),f=n(62718),h=n(55164),p=n(74848);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const w=(0,a.A)((()=>Promise.all([n.e(4631),n.e(6876),n.e(649),n.e(586),n.e(953),n.e(2025)]).then(n.bind(n,24211))),"AlertWebview"),y=(0,a.A)((()=>Promise.all([n.e(6876),n.e(5137),n.e(586),n.e(180),n.e(2150),n.e(4424),n.e(636)]).then(n.bind(n,31481))),"DashboardWebview");window.webviewNetdataToken=null;const g=(j=(0,h.Xc)((()=>{const{search:e}=window.location,{space_id:t,room_id:n,node_name:r,node_id:a}=i.A.parse(e),h=(0,s.uW)("isLoaded");return(0,l.Ay)(),h?(0,p.jsx)(d.Flex,{overflow:"hidden",height:"100vh",width:"100vw",children:(0,p.jsx)(o.Suspense,{fallback:(0,p.jsx)(f.xh,{}),children:(0,p.jsxs)(c.BV,{children:[(0,p.jsx)(c.qh,{path:"alerts/:alertId",element:(0,p.jsx)(w,{spaceId:t,roomId:n,nodeName:r,nodeId:a})}),(0,p.jsx)(c.qh,{path:"dashboards/:dashboardId",element:(0,p.jsx)(y,{spaceId:t,roomId:n})})]})})}):(0,p.jsx)(b.A,{})})),e=>{const{hash:t}=window.location,{token:n}=i.A.parse(t),[a,c]=(0,o.useState)();return(0,o.useEffect)((()=>{n&&(c(n),window.webviewNetdataToken=n,localStorage.removeItem("netdataJWT"))}),[]),a?(0,p.jsx)(j,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,r.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e)):(0,p.jsx)(b.A,{})});var j}}]);