!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]="17a7d55b-2712-433c-ae3e-28ac9c57fbed",e._sentryDebugIdIdentifier="sentry-dbid-17a7d55b-2712-433c-ae3e-28ac9c57fbed")}catch(e){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"8a739758aeaa9703d317afd549bb0f90035c314e"},(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[8811],{88811:(e,t,o)=>{o.r(t),o.d(t,{default:()=>c});var n=o(96540),d=o(65336),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},c=(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))}))}}]);