File: //opt/netdata/netdata-web-files/v3/2201.480ac7db8e65433b602e.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]="26a5060a-4d12-49fd-95b0-b629f47c99a4",e._sentryDebugIdIdentifier="sentry-dbid-26a5060a-4d12-49fd-95b0-b629f47c99a4")}()}catch(e){}!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"0d597b660e680dc5bde02dc0a1a30ba3e59b2b5c"}}catch(e){}}(),(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[2201,4582],{34495:(e,n,t)=>{t.r(n),t.d(n,{default:()=>c,usePostSignup:()=>u});var l=t(96540),o=t(88934),a=t(86177),s=t(46587),r=t(10444),i=t(79748),d=t(74848);const u=()=>{const e=`postsignup-disnissed-${(0,s.NJ)()}`;return[localStorage.getItem(e),(0,l.useCallback)((()=>{localStorage.setItem(e,!0)}),[e])]},c=()=>{const e=(0,o.Zp)(),{pathname:n}=(0,o.zy)(),[,t]=u(),s=(0,r.J)(),c=(0,l.useCallback)((()=>{t(),e(n,{replace:!0})}),[n,t]);return(0,d.jsx)(a.Modal,{backdropProps:{backdropBlur:!0},children:(0,d.jsxs)(a.ModalContent,{width:s?{base:"95vw"}:{},children:[(0,d.jsx)(a.ModalHeader,{children:(0,d.jsxs)(a.Flex,{gap:2,alignItems:"center",children:["Tip",(0,d.jsx)(a.ModalCloseButton,{testId:"close-button",onClose:c})]})}),(0,d.jsx)(a.ModalBody,{children:(0,d.jsxs)(a.Flex,{column:!0,gap:3,width:{max:120},padding:[0,0,4,0],children:[(0,d.jsx)(a.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,d.jsxs)(a.TextBigger,{lineHeight:1.5,children:["Installing the Netdata agent takes less than a minute, check out the"," ",(0,d.jsx)(i.A,{Component:a.TextBigger,href:"https://www.youtube.com/watch?v=z5m8JdwMOn8",target:"_blank",rel:"noopener noreferrer",children:"video"})," ","and try it out yourself!"]})]})}),(0,d.jsx)(a.ModalFooter,{children:(0,d.jsx)(a.Flex,{gap:4,justifyContent:"end",padding:[1,2],children:(0,d.jsx)(a.Button,{label:"Dismiss",flavour:"hollow",onClick:c})})})]})})}},37785:(e,n,t)=>{t.d(n,{A:()=>i,s:()=>r});var l=t(18739),o=t(18387),a=t(50979);const s=e=>{const{value:n}=(0,l.lU)();if(!n?.[e])return{};const t=Object.keys(n[e]).sort(o.M7)[0];return{id:n[e][t]?n[e][t][0]?.id:null,version:t}},r=()=>s(a.VH.homelab),i=()=>s(a.VH.free)},42711:(e,n,t)=>{t.d(n,{A:()=>u});var l=t(96540),o=t(63950),a=t.n(o),s=t(86177),r=t(3319),i=t(74848);const d={default:"Or you can opt to downgrade immediately",billing:"Or you can opt to downgrade immediately"},u=e=>{let{flavour:n="default",onOptOutClick:t=a(),...o}=e;const{sendLog:u,isReady:c}=(0,r.A)(),h=(0,l.useCallback)((()=>{t(),u({feature:"TrialOptOut",isStart:!0})}),[c]);return(0,i.jsxs)(s.Text,{...o,children:["After the trial, you'll automatically switch to the free Community plan."," ",(0,i.jsx)(s.Box,{"data-testid":"upgrade-to-business-banner",onClick:h,as:s.Text,cursor:"pointer",textDecoration:"underline",color:"primary",children:d[n]}),"."]})}},52201:(e,n,t)=>{t.r(n),t.d(n,{OptOut:()=>j.A,OptOutModal:()=>w.A,TrialMessage:()=>A.A,TrialWarning:()=>m,default:()=>T,useBusinessPlan:()=>k.A,useTrial:()=>r.A});var l=t(46587),o=t(96540),a=t(7960),s=t(24285),r=t(10853),i=t(60266),d=t(19707),u=t(10444),c=t(34495),h=t(74848);const p=(0,a.A)((()=>Promise.resolve().then(t.bind(t,34495))),"PostSignup"),f=(0,a.A)((()=>t.e(4484).then(t.bind(t,14484))),"TrialWelcome"),b=(0,a.A)((()=>t.e(3718).then(t.bind(t,11337))),"BumpedWarning"),g=(0,a.A)((()=>t.e(2108).then(t.bind(t,62108))),"OnboardingForm"),x=()=>{const{isEarlybirdAndCommunitySunset:e}=(0,i.A)(),{trialWelcomeVisible:n,paymentProvider:t}=(0,r.A)(),{email:a,isAnonymous:x}=(0,l.uW)(),[y]=(0,s.tF)("signupSurveySubmitted"),m=(0,d.I)(),[j]=(0,c.usePostSignup)(),w=(0,u.J)();if(!e&&!m&&"AWS"!==t&&!x&&!y)return(0,h.jsx)(o.Suspense,{fallback:"",children:(0,h.jsx)(g,{email:a})});if(w&&!j)return(0,h.jsx)(o.Suspense,{fallback:"",children:(0,h.jsx)(p,{})});const A=e?b:n?f:null;return A?(0,h.jsx)(o.Suspense,{fallback:"",children:(0,h.jsx)(A,{})}):null},y=(0,a.A)((()=>Promise.resolve().then(t.bind(t,44913))),"Warnings"),m=e=>(0,l.uW)("isAnonymous")?null:(0,h.jsx)(o.Suspense,{fallback:"",children:(0,h.jsx)(y,{...e})});var j=t(42711),w=t(71282),A=t(77058),k=t(2652);const T=()=>{const e=(0,l.uW)("isAnonymous");return window.envSettings.onprem||e?null:(0,h.jsx)(x,{})}},71282:(e,n,t)=>{t.d(n,{A:()=>g});var l=t(96540),o=t(63950),a=t.n(o),s=t(86177),r=t(18739),i=t(63872),d=t(60908),u=t(94404),c=t(3319),h=t(6304),p=t(37785),f=t(74848);const b=(0,u.A)(s.Button),g=e=>{let{onConfirm:n,onDecline:t=a(),onCancellingEnd:o=a()}=e;const u=(0,r.M4)(),[g,x]=(0,i.A)(),{id:y}=(0,p.A)(),{sendLog:m,isReady:j}=(0,c.A)(),[w,,A,k]=(0,h.A)(),T=(0,l.useCallback)((()=>{A(),u({productId:y}).then((()=>{g({header:"Successfully canceled subscription",text:"You are now on Community plan"}),m({feature:"TrialOptOut",isSuccess:!0})})).catch((()=>{x({header:"Failed to cancel the subscription",text:"Remained on Business plan"}),m({feature:"TrialOptOut",isFailure:!0,error:"Failed to cancel the subscription"})})).finally((()=>{o(),k()}))}),[y,j]),C=(0,l.useCallback)((()=>{n?n():T()}),[n,T]);return(0,f.jsx)(s.Modal,{backdropProps:{backdropBlur:!0},children:(0,f.jsx)(d.Ay,{feature:"TrialOptOut",children:(0,f.jsxs)(s.ModalContent,{width:{base:140},children:[(0,f.jsx)(s.ModalHeader,{children:(0,f.jsx)(s.Flex,{gap:2,alignItems:"center",children:(0,f.jsx)(s.H4,{children:"Opt out of Free Trial"})})}),(0,f.jsx)(s.ModalBody,{children:w?(0,f.jsx)(s.Flex,{height:"100px",children:(0,f.jsx)(s.TextBig,{children:"Changing billing plan..."})}):(0,f.jsxs)(s.Flex,{gap:2,column:!0,children:[(0,f.jsx)(s.H3,{children:"Are You Sure?"}),(0,f.jsx)(s.TextBig,{children:"It looks like you have chosen to opt-out of your free 14-day business trial. Are you sure you do not want to experience all the features Netdata has to offer?"}),(0,f.jsx)(s.TextBig,{children:"By opting out, you will be downgraded to the community plan immediately."})]})}),(0,f.jsx)(s.ModalFooter,{children:(0,f.jsxs)(s.Flex,{justifyContent:"end",gap:4,padding:[1,2],children:[(0,f.jsx)(b,{feature:"TrialOptOut",label:"Yes, I am sure!",flavour:"hollow",small:!0,onClick:C,disabled:!y||w,textTransform:""}),(0,f.jsx)(b,{feature:"TrialOptOut",label:"No, I want the trial!",small:!0,onClick:t,disabled:w,textTransform:""})]})})]})})})}}}]);