try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="01b078c7-6740-4bfc-a00c-8e73f0c54f34",e._sentryDebugIdIdentifier="sentry-dbid-01b078c7-6740-4bfc-a00c-8e73f0c54f34")}catch(e){}("undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:{}).SENTRY_RELEASE={id:"13fef0030d956eda25f81a49c02cdf9f738e0982"};(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[6497],{96497:(e,t,o)=>{o.r(t),o.d(t,{default:()=>u});var n=o(96540),d=o(10302),r=o(92318);var s=o(46587),a=o(24609),l=o(3319),i=o(60908);const f=()=>{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},u=(0,n.memo)((()=>{const{demoSlug:e}=r.A,t=(0,a.bq)(),{isLoaded:o,isAnonymous:d}=(0,s.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(i.Ay,{feature:"DemoContact"},n.createElement(f,null))}))}}]);