File: //opt/netdata/usr/share/netdata/web/v3/2201.e0a00df722bee40783b8.chunk.js
try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="74fd461b-07cf-45f2-88c7-1f024599cc8b",e._sentryDebugIdIdentifier="sentry-dbid-74fd461b-07cf-45f2-88c7-1f024599cc8b")}()}catch(e){}!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"5ded98bed5f4589e490b1beae30dccf288de26e3"}}catch(e){}}(),(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[2201,4582],{19707:(e,n,t)=>{t.d(n,{I:()=>l});var s=t(39175);const l=()=>{if(s.Ay)return null;const{origin:e,searchParams:n}=new URL(window.location.href),t=n?.get("labra_subscription_id");if(!t)return null;const l=n?.get("cloud_provider"),i=n?.get("cloud_product_id"),o=n?.get("cloud_customer_id");if(o&&i&&l)return`${e}/api/v2/billing/labra/spaces?customer_id=${o}&marketplace=${l}&product_id=${i}&subscription_id=${t}`;const r=n?.get("aws_customer_id"),d=n?.get("aws_product_id");return r&&d?`${e}/api/v2/billing/labra/spaces?customer_id=${r}&marketplace=aws&product_id=${d}&subscription_id=${t}`:null}},34495:(e,n,t)=>{t.r(n),t.d(n,{default:()=>c,usePostSignup:()=>u});var s=t(96540),l=t(88934),i=t(92415),o=t(46587),r=t(10444),d=t(79748),a=t(74848);const u=()=>{const e=`postsignup-disnissed-${(0,o.NJ)()}`;return[localStorage.getItem(e),(0,s.useCallback)((()=>{localStorage.setItem(e,!0)}),[e])]},c=()=>{const e=(0,l.Zp)(),{pathname:n}=(0,l.zy)(),[,t]=u(),o=(0,r.J)(),c=(0,s.useCallback)((()=>{t(),e(n,{replace:!0})}),[n,t]);return(0,a.jsx)(i.Modal,{backdropProps:{backdropBlur:!0},children:(0,a.jsxs)(i.ModalContent,{width:o?{base:"95vw"}:{},children:[(0,a.jsx)(i.ModalHeader,{children:(0,a.jsxs)(i.Flex,{gap:2,alignItems:"center",children:["Tip",(0,a.jsx)(i.ModalCloseButton,{testId:"close-button",onClose:c})]})}),(0,a.jsx)(i.ModalBody,{children:(0,a.jsxs)(i.Flex,{column:!0,gap:3,width:{max:120},padding:[0,0,4,0],children:[(0,a.jsx)(i.TextBigger,{lineHeight:1.5,children:"Netdata works best on larger screens. Try logging in from a laptop, desktop or tablet for the ultimate dashboard adventure."}),(0,a.jsxs)(i.TextBigger,{lineHeight:1.5,children:["Installing the Netdata agent takes less than a minute, check out the"," ",(0,a.jsx)(d.A,{Component:i.TextBigger,href:"https://www.youtube.com/watch?v=z5m8JdwMOn8",target:"_blank",rel:"noopener noreferrer",children:"video"})," ","and try it out yourself!"]})]})}),(0,a.jsx)(i.ModalFooter,{children:(0,a.jsx)(i.Flex,{gap:4,justifyContent:"end",padding:[1,2],children:(0,a.jsx)(i.Button,{label:"Dismiss",flavour:"hollow",onClick:c})})})]})})}},52201:(e,n,t)=>{t.r(n),t.d(n,{OptOut:()=>x.A,OptOutModal:()=>_.A,TrialMessage:()=>j.A,TrialWarning:()=>w,default:()=>A,useBusinessPlan:()=>k.A,useTrial:()=>r.A});var s=t(46587),l=t(96540),i=t(7960),o=t(24285),r=t(10853),d=t(60266),a=t(19707),u=t(10444),c=t(34495),p=t(74848);const f=(0,i.A)((()=>Promise.resolve().then(t.bind(t,34495))),"PostSignup"),g=(0,i.A)((()=>t.e(4484).then(t.bind(t,14484))),"TrialWelcome"),b=(0,i.A)((()=>t.e(3718).then(t.bind(t,11337))),"BumpedWarning"),h=(0,i.A)((()=>t.e(2108).then(t.bind(t,62108))),"OnboardingForm"),m=()=>{const{isEarlybirdAndCommunitySunset:e}=(0,d.A)(),{trialWelcomeVisible:n,paymentProvider:t}=(0,r.A)(),{email:i,isAnonymous:m}=(0,s.uW)(),[y]=(0,o.tF)("signupSurveySubmitted"),w=(0,a.I)(),[x]=(0,c.usePostSignup)(),_=(0,u.J)();if(!e&&!w&&"AWS"!==t&&!m&&!y)return(0,p.jsx)(l.Suspense,{fallback:"",children:(0,p.jsx)(h,{email:i})});if(_&&!x)return(0,p.jsx)(l.Suspense,{fallback:"",children:(0,p.jsx)(f,{})});const j=e?b:n?g:null;return j?(0,p.jsx)(l.Suspense,{fallback:"",children:(0,p.jsx)(j,{})}):null},y=(0,i.A)((()=>t.e(1368).then(t.bind(t,41368))),"Warnings"),w=e=>(0,s.uW)("isAnonymous")?null:(0,p.jsx)(l.Suspense,{fallback:"",children:(0,p.jsx)(y,{...e})});var x=t(42711),_=t(71282),j=t(77058),k=t(2652);const A=()=>{const e=(0,s.uW)("isAnonymous");return window.envSettings.onprem||e?null:(0,p.jsx)(m,{})}}}]);