File: //opt/netdata/usr/local/local/share/netdata/web/v3/6497.908718bd41fe9fbcde5a.chunk.js
try{!function(){var 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]="1d398c5e-0cde-4403-8c03-3b5be27ddd90",e._sentryDebugIdIdentifier="sentry-dbid-1d398c5e-0cde-4403-8c03-3b5be27ddd90")}()}catch(e){}!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"bbf0f036d26e8d5cdf711f08d224a9283a4dee0b"}}catch(e){}}(),(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[6497],{96497:(e,d,o)=>{o.r(d),o.d(d,{default:()=>f});var t=o(96540),n=o(63766),r=o(92318);var s=o(46587),i=o(24609),a=o(3319),u=o(60908),l=o(74848);const c=()=>{const{sendLog:e,isReady:d}=(0,a.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,l.jsx)(n.Layer,{backdrop:!0,backdropProps:{backdropBlur:"3px"},children:(0,l.jsxs)(n.Flex,{column:!0,gap:4,background:"modalBackground",padding:[3,4,0],round:!0,width:100,children:[(0,l.jsx)(n.H2,{children:"Access Netdata\u2019s Live Demo"}),(0,l.jsx)(n.Flex,{id:"hubspotForm"})]})}):null},f=(0,t.memo)((()=>{const{demoSlug:e}=r.A,d=(0,i.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,l.jsx)(u.Ay,{feature:"DemoContact",children:(0,l.jsx)(c,{})})}))}}]);