try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},o=(new e.Error).stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="1d22111d-160a-490d-bfe6-eaac9146f32d",e._sentryDebugIdIdentifier="sentry-dbid-1d22111d-160a-490d-bfe6-eaac9146f32d")}catch(e){}("undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:{}).SENTRY_RELEASE={id:"9d662ef6f51428cedd2ad1624c18a68882fcbb5b"};(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[6497],{96497:(e,o,d)=>{d.r(o),d.d(o,{default:()=>b});var t=d(96540),n=d(65258),r=d(92318);var s=d(46587),i=d(24609),a=d(3319),l=d(60908),u=d(74848);const f=()=>{const{sendLog:e,isReady:o}=(0,a.A)();return(0,t.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)=>{!function(e,o){let d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const t=new Date;t.setTime(t.getTime()+24*d*60*60*1e3),document.cookie=`${e}=${o}; expires=${t.toUTCString()}; path=/`}("demoContactFormSubmitted","true",365),e({feature:"DemoContact",message:"Demo form submitted",...d?.submissionValues||{}}),window.location.reload()}})}))}),[o]),o?(0,u.jsx)(n.Layer,{backdrop:!0,backdropProps:{backdropBlur:"3px"},children:(0,u.jsxs)(n.Flex,{column:!0,gap:4,background:"modalBackground",padding:[3,4,0],round:!0,width:100,children:[(0,u.jsx)(n.H2,{children:"Access Netdata\u2019s Live Demo"}),(0,u.jsx)(n.Flex,{id:"hubspotForm"})]})}):null},b=(0,t.memo)((()=>{const{demoSlug:e}=r.A,o=(0,i.bq)(),{isLoaded:d,isAnonymous:t}=(0,s.uW)();if(!d||!t)return null;if(e!==o)return null;return"true"===(e=>{const o=`; ${document.cookie}`.split(`; ${e}=`);if(2===o.length)return o.pop().split(";").shift()})("demoContactFormSubmitted")?null:(0,u.jsx)(l.Ay,{feature:"DemoContact",children:(0,u.jsx)(f,{})})}))}}]);