!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="23cae8f0-3517-47b6-a0eb-7b9e30b85a90",e._sentryDebugIdIdentifier="sentry-dbid-23cae8f0-3517-47b6-a0eb-7b9e30b85a90")}catch(e){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"2cf8df3206339b597c7cbea290c34f66439c3909"},(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[8811],{88811:(e,t,o)=>{o.r(t),o.d(t,{default:()=>b});var n=o(96540),d=o(8573),r=o(68831);var a=o(22292),s=o(3914),l=o(50876),u=o(63314);const i=()=>{const{sendLog:e,isReady:t}=(0,l.A)();return(0,n.useEffect)((()=>{if(!t)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:(t,o)=>{!function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const n=new Date;n.setTime(n.getTime()+24*o*60*60*1e3),document.cookie=`${e}=${t}; expires=${n.toUTCString()}; path=/`}("demoContactFormSubmitted","true",365),e({feature:"DemoContact",message:"Demo form submitted",...o?.submissionValues||{}}),window.location.reload()}})}))}),[t]),t?n.createElement(d.Layer,{backdrop:!0,backdropProps:{backdropBlur:"3px"}},n.createElement(d.Flex,{column:!0,gap:4,background:"modalBackground",padding:[3,4,0],round:!0,width:100},n.createElement(d.H2,null,"Access Netdata\u2019s Live Demo"),n.createElement(d.Flex,{id:"hubspotForm"}))):null},b=(0,n.memo)((()=>{const{demoSlug:e}=r.A,t=(0,s.bq)(),{isLoaded:o,isAnonymous:d}=(0,a.uW)();if(!o||!d)return null;if(e!==t)return null;return"true"===(e=>{const t=`; ${document.cookie}`.split(`; ${e}=`);if(2===t.length)return t.pop().split(";").shift()})("demoContactFormSubmitted")?null:n.createElement(u.Ay,{feature:"DemoContact"},n.createElement(i,null))}))}}]);