try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},d=(new e.Error).stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="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:"97a3ede330aeef949d5fd2adc0622cf5e58d42ed"};(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[6497],{96497:(e,d,o)=>{o.r(d),o.d(d,{default:()=>b});var t=o(96540),n=o(65258),r=o(92318);var s=o(46587),a=o(24609),i=o(3319),l=o(60908),u=o(74848);const f=()=>{const{sendLog:e,isReady:d}=(0,i.A)();return(0,t.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)=>{!function(e,d){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const t=new Date;t.setTime(t.getTime()+24*o*60*60*1e3),document.cookie=`${e}=${d}; expires=${t.toUTCString()}; path=/`}("demoContactFormSubmitted","true",365),e({feature:"DemoContact",message:"Demo form submitted",...o?.submissionValues||{}}),window.location.reload()}})}))}),[d]),d?(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,d=(0,a.bq)(),{isLoaded:o,isAnonymous:t}=(0,s.uW)();if(!o||!t)return null;if(e!==d)return null;return"true"===(e=>{const d=`; ${document.cookie}`.split(`; ${e}=`);if(2===d.length)return d.pop().split(";").shift()})("demoContactFormSubmitted")?null:(0,u.jsx)(l.Ay,{feature:"DemoContact",children:(0,u.jsx)(f,{})})}))}}]);