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: //opt/netdata/usr/local/local/share/netdata/web/v3/2201.4baa47956abecb1b9644.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:"d147606963bc0c498afbaa54c78aa7ffe6a22839"};var n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="cf7e30b7-23f6-4945-a5a3-4d75dca16d5f",e._sentryDebugIdIdentifier="sentry-dbid-cf7e30b7-23f6-4945-a5a3-4d75dca16d5f")}catch(e){}}(),(globalThis.webpackChunkcloud_frontend=globalThis.webpackChunkcloud_frontend||[]).push([[2201,4582],{52201(e,n,t){t.r(n),t.d(n,{OptOut:()=>j.A,OptOutModal:()=>A.A,TrialMessage:()=>k.A,TrialWarning:()=>y,default:()=>T,useBusinessPlan:()=>w.A,useTrial:()=>o.A});var l=t(46587),a=t(96540),r=t(7960),s=t(24285),o=t(10853),i=t(60266),d=t(19707),u=t(10444),c=t(34495),h=t(74848);const p=(0,r.A)(()=>Promise.resolve().then(t.bind(t,34495)),"PostSignup"),g=(0,r.A)(()=>t.e(4484).then(t.bind(t,14484)),"TrialWelcome"),x=(0,r.A)(()=>t.e(3718).then(t.bind(t,11337)),"BumpedWarning"),f=(0,r.A)(()=>t.e(2108).then(t.bind(t,62108)),"OnboardingForm"),b=()=>{const{isEarlybirdAndCommunitySunset:e}=(0,i.A)(),{trialWelcomeVisible:n,paymentProvider:t}=(0,o.A)(),{email:r,isAnonymous:b}=(0,l.uW)(),[m]=(0,s.tF)("signupSurveySubmitted"),y=(0,d.I)(),[j]=(0,c.usePostSignup)(),A=(0,u.J)();if(!e&&!y&&"AWS"!==t&&!b&&!m)return(0,h.jsx)(a.Suspense,{fallback:"",children:(0,h.jsx)(f,{email:r})});if(A&&!j)return(0,h.jsx)(a.Suspense,{fallback:"",children:(0,h.jsx)(p,{})});const k=e?x:n?g:null;return k?(0,h.jsx)(a.Suspense,{fallback:"",children:(0,h.jsx)(k,{})}):null},m=(0,r.A)(()=>Promise.resolve().then(t.bind(t,44913)),"Warnings"),y=e=>(0,l.uW)("isAnonymous")?null:(0,h.jsx)(a.Suspense,{fallback:"",children:(0,h.jsx)(m,{...e})});var j=t(42711),A=t(71282),k=t(3033),w=t(2652);const T=()=>{const e=(0,l.uW)("isAnonymous");return window.envSettings.onprem||e?null:(0,h.jsx)(b,{})}},34495(e,n,t){t.r(n),t.d(n,{default:()=>c,usePostSignup:()=>u});var l=t(96540),a=t(76667),r=t(38429),s=t(46587),o=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,a.Zp)(),{pathname:n}=(0,a.zy)(),[,t]=u(),s=(0,o.J)(),c=(0,l.useCallback)(()=>{t(),e(n,{replace:!0})},[n,t]);return(0,d.jsx)(r.Modal,{backdropProps:{backdropBlur:!0},children:(0,d.jsxs)(r.ModalContent,{width:s?{base:"95vw"}:{},children:[(0,d.jsx)(r.ModalHeader,{children:(0,d.jsxs)(r.Flex,{gap:2,alignItems:"center",children:["Tip",(0,d.jsx)(r.ModalCloseButton,{testId:"close-button",onClose:c})]})}),(0,d.jsx)(r.ModalBody,{children:(0,d.jsxs)(r.Flex,{column:!0,gap:3,width:{max:120},padding:[0,0,4,0],children:[(0,d.jsx)(r.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)(r.TextBigger,{lineHeight:1.5,children:["Installing the Netdata agent takes less than a minute, check out the"," ",(0,d.jsx)(i.A,{Component:r.TextBigger,href:"https://www.youtube.com/watch?v=z5m8JdwMOn8",target:"_blank",rel:"noopener noreferrer",children:"video"})," ","and try it out yourself!"]})]})}),(0,d.jsx)(r.ModalFooter,{children:(0,d.jsx)(r.Flex,{gap:4,justifyContent:"end",padding:[1,2],children:(0,d.jsx)(r.Button,{label:"Dismiss",flavour:"hollow",onClick:c})})})]})})}},71282(e,n,t){t.d(n,{A:()=>f});var l=t(96540),a=t(63950),r=t.n(a),s=t(38429),o=t(18739),i=t(63872),d=t(60908),u=t(94404),c=t(3319),h=t(6304),p=t(37785),g=t(74848);const x=(0,u.A)(s.Button),f=e=>{let{onConfirm:n,onDecline:t=r(),onCancellingEnd:a=r()}=e;const u=(0,o.M4)(),[f,b]=(0,i.A)(),{id:m}=(0,p.A)(),{sendLog:y,isReady:j}=(0,c.A)(),[A,,k,w]=(0,h.A)(),T=(0,l.useCallback)(()=>{k(),u({productId:m}).then(()=>{f({header:"Successfully canceled subscription",text:"You are now on Community plan"}),y({feature:"TrialOptOut",isSuccess:!0})}).catch(()=>{b({header:"Failed to cancel the subscription",text:"Remained on Business plan"}),y({feature:"TrialOptOut",isFailure:!0,error:"Failed to cancel the subscription"})}).finally(()=>{a(),w()})},[m,j]),C=(0,l.useCallback)(()=>{n?n():T()},[n,T]);return(0,g.jsx)(s.Modal,{backdropProps:{backdropBlur:!0},children:(0,g.jsx)(d.Ay,{feature:"TrialOptOut",children:(0,g.jsxs)(s.ModalContent,{width:{base:140},children:[(0,g.jsx)(s.ModalHeader,{children:(0,g.jsx)(s.Flex,{gap:2,alignItems:"center",children:(0,g.jsx)(s.H4,{children:"Opt out of Free Trial"})})}),(0,g.jsx)(s.ModalBody,{children:A?(0,g.jsx)(s.Flex,{height:"100px",children:(0,g.jsx)(s.TextBig,{children:"Changing billing plan..."})}):(0,g.jsxs)(s.Flex,{gap:2,column:!0,children:[(0,g.jsx)(s.H3,{children:"Are You Sure?"}),(0,g.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,g.jsx)(s.TextBig,{children:"By opting out, you will be downgraded to the community plan immediately."})]})}),(0,g.jsx)(s.ModalFooter,{children:(0,g.jsxs)(s.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||A,textTransform:""}),(0,g.jsx)(x,{feature:"TrialOptOut",label:"No, I want the trial!",small:!0,onClick:t,disabled:A,textTransform:""})]})})]})})})}},42711(e,n,t){t.d(n,{A:()=>u});var l=t(96540),a=t(63950),r=t.n(a),s=t(38429),o=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=r(),...a}=e;const{sendLog:u,isReady:c}=(0,o.A)(),h=(0,l.useCallback)(()=>{t(),u({feature:"TrialOptOut",isStart:!0})},[c]);return(0,i.jsxs)(s.Text,{...a,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]}),"."]})}},37785(e,n,t){t.d(n,{A:()=>i,s:()=>o});var l=t(18739),a=t(18387),r=t(50979);const s=e=>{const{value:n}=(0,l.lU)();if(!n?.[e])return{};const t=Object.keys(n[e]).sort(a.M7)[0];return{id:n[e][t]?n[e][t][0]?.id:null,version:t}},o=()=>s(r.VH.homelab),i=()=>s(r.VH.free)}}]);