MOON
Server: Apache
System: Linux server1.studioinfinity.com.br 2.6.32-954.3.5.lve1.4.90.el6.x86_64 #1 SMP Tue Feb 21 12:26:30 UTC 2023 x86_64
User: artinside (517)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //proc/self/root/opt/netdata/netdata-web-files/v3/2201.11d39a86b134eeae11c5.chunk.js
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"81e2ee4047c533a9c262178a6611e7b957d46030"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="98c1a603-1d80-4c79-84da-db855bed4cca",e._sentryDebugIdIdentifier="sentry-dbid-98c1a603-1d80-4c79-84da-db855bed4cca")}catch(e){}}(),(globalThis.webpackChunkcloud_frontend=globalThis.webpackChunkcloud_frontend||[]).push([[2201,4582],{52201(e,t,n){n.r(t),n.d(t,{OptOut:()=>m.A,OptOutModal:()=>y.A,TrialMessage:()=>j.A,TrialWarning:()=>f,default:()=>w,useBusinessPlan:()=>k.A,useTrial:()=>o.A});var l=n(46587),a=n(96540),s=n(7960),r=n(24285),o=n(10853),i=n(19707),d=n(10444),u=n(34495),c=n(74848);const h=(0,s.A)(()=>Promise.resolve().then(n.bind(n,34495)),"PostSignup"),p=(0,s.A)(()=>n.e(4484).then(n.bind(n,14484)),"TrialWelcome"),g=(0,s.A)(()=>n.e(2108).then(n.bind(n,62108)),"OnboardingForm"),x=()=>{const{trialWelcomeVisible:e,paymentProvider:t}=(0,o.A)(),{email:n,isAnonymous:s}=(0,l.uW)(),[x]=(0,r.tF)("signupSurveySubmitted"),b=(0,i.I)(),[f]=(0,u.usePostSignup)(),m=(0,d.J)();if(!b&&"AWS"!==t&&!s&&!x)return(0,c.jsx)(a.Suspense,{fallback:"",children:(0,c.jsx)(g,{email:n})});if(m&&!f)return(0,c.jsx)(a.Suspense,{fallback:"",children:(0,c.jsx)(h,{})});const y=e?p:null;return y?(0,c.jsx)(a.Suspense,{fallback:"",children:(0,c.jsx)(y,{})}):null},b=(0,s.A)(()=>Promise.resolve().then(n.bind(n,44913)),"Warnings"),f=e=>(0,l.uW)("isAnonymous")?null:(0,c.jsx)(a.Suspense,{fallback:"",children:(0,c.jsx)(b,{...e})});var m=n(42711),y=n(71282),j=n(3033),k=n(2652);const w=()=>{const e=(0,l.uW)("isAnonymous");return window.envSettings.onprem||e?null:(0,c.jsx)(x,{})}},34495(e,t,n){n.r(t),n.d(t,{default:()=>c,usePostSignup:()=>u});var l=n(96540),a=n(76667),s=n(38429),r=n(46587),o=n(10444),i=n(79748),d=n(74848);const u=()=>{const e=`postsignup-disnissed-${(0,r.NJ)()}`;return[localStorage.getItem(e),(0,l.useCallback)(()=>{localStorage.setItem(e,!0)},[e])]},c=()=>{const e=(0,a.Zp)(),{pathname:t}=(0,a.zy)(),[,n]=u(),r=(0,o.J)(),c=(0,l.useCallback)(()=>{n(),e(t,{replace:!0})},[t,n]);return(0,d.jsx)(s.Modal,{backdropProps:{backdropBlur:!0},children:(0,d.jsxs)(s.ModalContent,{width:r?{base:"95vw"}:{},children:[(0,d.jsx)(s.ModalHeader,{children:(0,d.jsxs)(s.Flex,{gap:2,alignItems:"center",children:["Tip",(0,d.jsx)(s.ModalCloseButton,{testId:"close-button",onClose:c})]})}),(0,d.jsx)(s.ModalBody,{children:(0,d.jsxs)(s.Flex,{column:!0,gap:3,width:{max:120},padding:[0,0,4,0],children:[(0,d.jsx)(s.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)(s.TextBigger,{lineHeight:1.5,children:["Installing the Netdata agent takes less than a minute, check out the"," ",(0,d.jsx)(i.A,{Component:s.TextBigger,href:"https://www.youtube.com/watch?v=z5m8JdwMOn8",target:"_blank",rel:"noopener noreferrer",children:"video"})," ","and try it out yourself!"]})]})}),(0,d.jsx)(s.ModalFooter,{children:(0,d.jsx)(s.Flex,{gap:4,justifyContent:"end",padding:[1,2],children:(0,d.jsx)(s.Button,{label:"Dismiss",flavour:"hollow",onClick:c})})})]})})}},71282(e,t,n){n.d(t,{A:()=>b});var l=n(96540),a=n(63950),s=n.n(a),r=n(38429),o=n(18739),i=n(63872),d=n(60908),u=n(94404),c=n(3319),h=n(6304),p=n(37785),g=n(74848);const x=(0,u.A)(r.Button),b=e=>{let{onConfirm:t,onDecline:n=s(),onCancellingEnd:a=s()}=e;const u=(0,o.M4)(),[b,f]=(0,i.A)(),{id:m}=(0,p.A)(),{sendLog:y,isReady:j}=(0,c.A)(),[k,,w,A]=(0,h.A)(),T=(0,l.useCallback)(()=>{w(),u({productId:m}).then(()=>{b({header:"Successfully canceled subscription",text:"You are now on Community plan"}),y({feature:"TrialOptOut",isSuccess:!0})}).catch(()=>{f({header:"Failed to cancel the subscription",text:"Remained on Business plan"}),y({feature:"TrialOptOut",isFailure:!0,error:"Failed to cancel the subscription"})}).finally(()=>{a(),A()})},[m,j]),C=(0,l.useCallback)(()=>{t?t():T()},[t,T]);return(0,g.jsx)(r.Modal,{backdropProps:{backdropBlur:!0},children:(0,g.jsx)(d.Ay,{feature:"TrialOptOut",children:(0,g.jsxs)(r.ModalContent,{width:{base:140},children:[(0,g.jsx)(r.ModalHeader,{children:(0,g.jsx)(r.Flex,{gap:2,alignItems:"center",children:(0,g.jsx)(r.H4,{children:"Opt out of Free Trial"})})}),(0,g.jsx)(r.ModalBody,{children:k?(0,g.jsx)(r.Flex,{height:"100px",children:(0,g.jsx)(r.TextBig,{children:"Changing billing plan..."})}):(0,g.jsxs)(r.Flex,{gap:2,column:!0,children:[(0,g.jsx)(r.H3,{children:"Are You Sure?"}),(0,g.jsx)(r.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,g.jsx)(r.TextBig,{children:"By opting out, you will be downgraded to the community plan immediately."})]})}),(0,g.jsx)(r.ModalFooter,{children:(0,g.jsxs)(r.Flex,{justifyContent:"end",gap:4,padding:[1,2],children:[(0,g.jsx)(x,{feature:"TrialOptOut",label:"Yes, I am sure!",flavour:"hollow",small:!0,onClick:C,disabled:!m||k,textTransform:""}),(0,g.jsx)(x,{feature:"TrialOptOut",label:"No, I want the trial!",small:!0,onClick:n,disabled:k,textTransform:""})]})})]})})})}},42711(e,t,n){n.d(t,{A:()=>u});var l=n(96540),a=n(63950),s=n.n(a),r=n(38429),o=n(3319),i=n(74848);const d={default:"Or you can opt to downgrade immediately",billing:"Or you can opt to downgrade immediately"},u=e=>{let{flavour:t="default",onOptOutClick:n=s(),...a}=e;const{sendLog:u,isReady:c}=(0,o.A)(),h=(0,l.useCallback)(()=>{n(),u({feature:"TrialOptOut",isStart:!0})},[c]);return(0,i.jsxs)(r.Text,{...a,children:["After the trial, you'll automatically switch to the free Community plan."," ",(0,i.jsx)(r.Box,{"data-testid":"upgrade-to-business-banner",onClick:h,as:r.Text,cursor:"pointer",textDecoration:"underline",color:"primary",children:d[t]}),"."]})}},37785(e,t,n){n.d(t,{A:()=>i,s:()=>o});var l=n(18739),a=n(18387),s=n(50979);const r=e=>{const{value:t}=(0,l.lU)();if(!t?.[e])return{};const n=Object.keys(t[e]).sort(a.M7)[0];return{id:t[e][n]?t[e][n][0]?.id:null,version:n}},o=()=>r(s.VH.homelab),i=()=>r(s.VH.free)}}]);