!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="6eb3b9bf-e791-4561-adf2-5e5463618c73",e._sentryDebugIdIdentifier="sentry-dbid-6eb3b9bf-e791-4561-adf2-5e5463618c73")}catch(e){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"8b7b01b6c705cf50f8050ce0fb8fc6b58fe68567"},(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[1729],{91729:function(e,n,t){t.r(n),t.d(n,{default:function(){return p}});var r=t(67294),o=t(45916),a=t(29439),u=t(28852),l=t(54005),d=function(e){return"dismissed-agent-banner-".concat(e)},s=function(){var e=(0,u.Z)().id,n=(0,r.useState)(!0),t=(0,a.Z)(n,2),o=t[0],s=t[1],c=(0,l.Z)().sendButtonClickedLog;return(0,r.useEffect)((function(){var n="true"==localStorage.getItem(d(e));s(n)}),[e]),{dismissed:o,onClose:(0,r.useCallback)((function(){localStorage.setItem(d(e),!0),s(!0),c({feature:"AgentBannerDismiss"})}),[e,s,c])}},c=t(93416),f=t(91008),i=function(){var e=(0,l.Z)().sendButtonClickedLog,n=(0,r.useCallback)((function(){window.open("https://www.netdata.cloud/contact-us/?subject=agent-banner","_blank","noopener,noreferrer"),e({feature:"AgentBannerContactUs"})}),[e]);return r.createElement(c.Flex,{width:"100%",justifyContent:"center",alignItems:"center"},r.createElement(c.Text,null,"Need more features or premium support? Explore Netdata Enterprise On-Prem or Premium Support."," ",r.createElement(f.Z,{onClick:n,testId:"agent-banner-contact-link"},"Contact us"),"."))},b=t(63346),g=t(78710),p=function(){var e=s(),n=e.dismissed,t=e.onClose;return g.ZP&&!n?r.createElement(b.ZP,{feature:"AgentBanner"},r.createElement(o.Z,{testId:"agent-banner",width:"100%",background:"successSemi",onClose:t,tooltipProps:{align:"top"},zIndex:20},r.createElement(i,null))):null}}}]);