!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"b822131a7726f932fb1cd592a409834835333014"};var o=(new e.Error).stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="d831b01f-76bd-45fc-827c-14dc517c7046",e._sentryDebugIdIdentifier="sentry-dbid-d831b01f-76bd-45fc-827c-14dc517c7046")}catch(e){}}(),(globalThis.webpackChunkcloud_frontend=globalThis.webpackChunkcloud_frontend||[]).push([[2010],{2010(e,o,d){d.r(o),d.d(o,{default:()=>f});var n=d(96540),t=d(56327),r=d(92318),s=d(18423),a=d(46587),i=d(24609),u=d(60908),b=d(3319),c=d(74848);const l=()=>{const{sendLog:e,isReady:o}=(0,b.A)();return(0,n.useEffect)(()=>{if(!o)return;if(window.hbspt?.forms)return void window.hbspt.forms.create({region:"na1",portalId:"4567453",formId:"d3749ae3-d192-40b4-9be6-3666bfabbbd0",target:"#hubspotForm"});const d=document.createElement("script");d.src="https://js.hsforms.net/forms/v2.js",document.body.appendChild(d),d.addEventListener("load",()=>{window.hbspt&&window.hbspt.forms.create({region:"na1",portalId:"4567453",formId:"d3749ae3-d192-40b4-9be6-3666bfabbbd0",target:"#hubspotForm",onFormSubmitted:(o,d)=>{(0,s.T)("demoContactFormSubmitted","true",365),e({feature:"DemoContact",message:"Demo form submitted",...d?.submissionValues||{}}),window.location.reload()}})})},[o]),o?(0,c.jsx)(t.Layer,{backdrop:!0,backdropProps:{backdropBlur:"3px"},children:(0,c.jsxs)(t.Flex,{column:!0,gap:4,background:"modalBackground",padding:[3,4,0],round:!0,width:100,children:[(0,c.jsx)(t.H2,{children:"Access Netdata\u2019s Live Demo"}),(0,c.jsx)(t.Flex,{id:"hubspotForm"})]})}):null},f=(0,n.memo)(()=>{const{demoSlug:e}=r.A,o=(0,i.bq)(),{isLoaded:d,isAnonymous:n}=(0,a.uW)();if(!d||!n)return null;if(e!==o)return null;if("production"!==window.envSettings.nodeEnv)return null;return"true"===(0,s.R)("demoContactFormSubmitted")?null:(0,c.jsx)(u.Ay,{feature:"DemoContact",children:(0,c.jsx)(l,{})})})}}]);