try{!function(){var 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]="e0e76cdd-f4bf-4ded-9812-60ffa9433796",e._sentryDebugIdIdentifier="sentry-dbid-e0e76cdd-f4bf-4ded-9812-60ffa9433796")}()}catch(e){}!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"f4547e36230aa8f74486618baff2f1a6f3242a7f"}}catch(e){}}(),(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[6497],{96497:(e,o,t)=>{t.r(o),t.d(o,{default:()=>c});var d=t(96540),n=t(86177),r=t(92318);var s=t(46587),i=t(24609),a=t(3319),f=t(60908),u=t(74848);const l=()=>{const{sendLog:e,isReady:o}=(0,a.A)();return(0,d.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 t=document.createElement("script");t.src="https://js.hsforms.net/forms/v2.js",document.body.appendChild(t),t.addEventListener("load",(()=>{window.hbspt&&window.hbspt.forms.create({region:"na1",portalId:"4567453",formId:"d3749ae3-d192-40b4-9be6-3666bfabbbd0",target:"#hubspotForm",onFormSubmitted:(o,t)=>{!function(e,o){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const d=new Date;d.setTime(d.getTime()+24*t*60*60*1e3),document.cookie=`${e}=${o}; expires=${d.toUTCString()}; path=/`}("demoContactFormSubmitted","true",365),e({feature:"DemoContact",message:"Demo form submitted",...t?.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},c=(0,d.memo)((()=>{const{demoSlug:e}=r.A,o=(0,i.bq)(),{isLoaded:t,isAnonymous:d}=(0,s.uW)();if(!t||!d)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)(f.Ay,{feature:"DemoContact",children:(0,u.jsx)(l,{})})}))}}]);