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