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/share/netdata/web/v3/4480.bcdf770bac321a6bb68f.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]="827b3f66-3e44-48b1-89f9-142c20ee4cd5",e._sentryDebugIdIdentifier="sentry-dbid-827b3f66-3e44-48b1-89f9-142c20ee4cd5")}()}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([[4480],{10853:(e,n,t)=>{t.d(n,{A:()=>h});t(98992),t(72577);var r=t(96540),i=t(46587),l=t(99728),a=t(24285),o=t(86706),s=(t(37550),t(32370)),d=t(73087),c=t(68399);var u=t(18739),g=t(53142),p=t(18387),x=t(19707);const f=e=>{const n=new Date(e||void 0).toLocaleDateString();return"Invalid Date"!==n?n:null},h=()=>{const e=(0,o.gk)(),n=(0,o.bj)(),{id:t,isAnonymous:h}=(0,i.uW)(),m=(0,r.useMemo)((()=>!!(n||[]).find((e=>e.id===t&&"creator"===e.joinMethod))),[t,n]),b=(0,x.I)(),{loaded:y,value:j,refresh:w}=(0,u.JN)(),{isFailure:T}=(0,g.A)(),{slug:C,trialEndsAt:S,paymentProvider:A}=j||{},k=(0,r.useMemo)((()=>(e=>{if(!e)return null;const n=new Date(e)-new Date;return Math.ceil(n/864e5)})(S)),[S]),B=y&&!!S&&!b,v=(0,l.JT)("billing:Manage"),[I]=(0,a.ng)("trialModalDismissed"),F=e&&m&&v&&(B||T)&&!localStorage.getItem(c.$B)&&!I,[O,D]=(0,r.useState)(localStorage.getItem(c.TB)),[E,H]=(0,r.useState)(),U=(M=k)>8?"default":M>3?"warning":"critical";var M;const _=!h&&v;return(0,r.useEffect)((()=>{const e=((e,n,t,r)=>{if(n<0)return!1;const i=new Date(e||void 0);if(!(0,s.f)(i))return!1;const l=new Date(r||void 0);if(!(0,s.f)(l))return n<=c.w1;const{days:a}=(0,d.F)({start:l,end:i});return t.some((e=>e>=n&&e<a))})(S,k,c.ml,O);H(e)}),[S,k,O]),{trialWelcomeVisible:F,sidebarWarningVisible:B,bannerVisible:E,dismissBanner:()=>{const e=(new Date).toISOString();D(e),localStorage.setItem(c.TB,e)},daysRemaining:k,trialEndsAt:f(S),trialEndsAtRaw:S,type:U,canUpgrade:_,onTrial:B,refreshPlan:w,planIsFreeOrEarlyBird:(0,p.Kj)(C),paymentProvider:A}}},37785:(e,n,t)=>{t.d(n,{A:()=>s,s:()=>o});var r=t(18739),i=t(18387),l=t(50979);const a=e=>{const{value:n}=(0,r.lU)();if(!n?.[e])return{};const t=Object.keys(n[e]).sort(i.M7)[0];return{id:n[e][t]?n[e][t][0]?.id:null,version:t}},o=()=>a(l.VH.homelab),s=()=>a(l.VH.free)},42711:(e,n,t)=>{t.d(n,{A:()=>c});var r=t(96540),i=t(63950),l=t.n(i),a=t(92415),o=t(3319),s=t(74848);const d={default:"Or you can opt to downgrade immediately",billing:"Or you can opt to downgrade immediately"},c=e=>{let{flavour:n="default",onOptOutClick:t=l(),...i}=e;const{sendLog:c,isReady:u}=(0,o.A)(),g=(0,r.useCallback)((()=>{t(),c({feature:"TrialOptOut",isStart:!0})}),[u]);return(0,s.jsxs)(a.Text,{...i,children:["After the trial, you'll automatically switch to the free Community plan."," ",(0,s.jsx)(a.Box,{"data-testid":"upgrade-to-business-banner",onClick:g,as:a.Text,cursor:"pointer",textDecoration:"underline",color:"primary",children:d[n]}),"."]})}},60266:(e,n,t)=>{t.d(n,{A:()=>s});var r=t(96540),i=t(24609),l=t(10853);var a=t(6304);const o=e=>{const n=new Date(e||void 0).toDateString();return"Invalid Date"!==n?n:null},s=()=>{const e=(0,i.ap)(),n=(0,r.useMemo)((()=>`dismissedBumpedWarningKey_${e?.id}`),[e?.id]),[t,,,s]=(0,a.A)(!localStorage.getItem(n)),{trialEndsAtRaw:d}=(0,l.A)(),c=d&&"EarlybirdAndCommunitySunset"==e?.metadata?.joinTrialCode,u=t&&d&&c,g=c?"EARLYB25":null,p=(0,r.useCallback)((()=>{localStorage.setItem(n,!0),s()}),[s,n]);return{isModalVisible:u,isEarlybirdAndCommunitySunset:c,coupon:g,trialEndsAt:o(d),onClose:p}}},68399:(e,n,t)=>{t.d(n,{$B:()=>o,TB:()=>s,W1:()=>i,ml:()=>l,ue:()=>r,w1:()=>a});const r={default:"successSemi",warning:"warningSemi",critical:"errorSemi"},i={default:{background:"successSemi",border:"success"},warning:{background:"warningSemi",border:"warning"},critical:{background:"errorSemi",border:"error"}},l=[10,3,2,1],a=12,o="dismissedTrialWelcome",s="dismissedTrialWarningDate"},71282:(e,n,t)=>{t.d(n,{A:()=>h});var r=t(96540),i=t(63950),l=t.n(i),a=t(92415),o=t(18739),s=t(63872),d=t(60908),c=t(94404),u=t(3319),g=t(6304),p=t(37785),x=t(74848);const f=(0,c.A)(a.Button),h=e=>{let{onConfirm:n,onDecline:t=l(),onCancellingEnd:i=l()}=e;const c=(0,o.M4)(),[h,m]=(0,s.A)(),{id:b}=(0,p.A)(),{sendLog:y,isReady:j}=(0,u.A)(),[w,,T,C]=(0,g.A)(),S=(0,r.useCallback)((()=>{T(),c({productId:b}).then((()=>{h({header:"Successfully canceled subscription",text:"You are now on Community plan"}),y({feature:"TrialOptOut",isSuccess:!0})})).catch((()=>{m({header:"Failed to cancel the subscription",text:"Remained on Business plan"}),y({feature:"TrialOptOut",isFailure:!0,error:"Failed to cancel the subscription"})})).finally((()=>{i(),C()}))}),[b,j]),A=(0,r.useCallback)((()=>{n?n():S()}),[n,S]);return(0,x.jsx)(a.Modal,{backdropProps:{backdropBlur:!0},children:(0,x.jsx)(d.Ay,{feature:"TrialOptOut",children:(0,x.jsxs)(a.ModalContent,{width:{base:140},children:[(0,x.jsx)(a.ModalHeader,{children:(0,x.jsx)(a.Flex,{gap:2,alignItems:"center",children:(0,x.jsx)(a.H4,{children:"Opt out of Free Trial"})})}),(0,x.jsx)(a.ModalBody,{children:w?(0,x.jsx)(a.Flex,{height:"100px",children:(0,x.jsx)(a.TextBig,{children:"Changing billing plan..."})}):(0,x.jsxs)(a.Flex,{gap:2,column:!0,children:[(0,x.jsx)(a.H3,{children:"Are You Sure?"}),(0,x.jsx)(a.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,x.jsx)(a.TextBig,{children:"By opting out, you will be downgraded to the community plan immediately."})]})}),(0,x.jsx)(a.ModalFooter,{children:(0,x.jsxs)(a.Flex,{justifyContent:"end",gap:4,padding:[1,2],children:[(0,x.jsx)(f,{feature:"TrialOptOut",label:"Yes, I am sure!",flavour:"hollow",small:!0,onClick:A,disabled:!b||w,textTransform:""}),(0,x.jsx)(f,{feature:"TrialOptOut",label:"No, I want the trial!",small:!0,onClick:t,disabled:w,textTransform:""})]})})]})})})}},77058:(e,n,t)=>{t.d(n,{A:()=>m});var r=t(96540),i=t(92415),l=t(63950),a=t.n(l),o=t(10853),s=(t(98992),t(54520),t(83268)),d=t(81391),c=t(24013);const u=()=>{const e=(0,d.n)("id"),n=(0,s.gr)(e,"loaded"),t=(0,s.gr)(e,"ids");return{loaded:n,windowsNodes:((0,c.Gt)(t)||[]).filter((e=>{let{os:n}=e;return"windows"===n?.id?.toLowerCase()}))}};var g=t(60266),p=t(99243),x=t(74848);const f={banner:{color:"main"},sidebar:{lineHeight:"1.6",color:"main"},freePlanUpgrade:{lineHeight:"1.6",color:"main"},billing:{color:"textLite"}},h=e=>{let{canUpgrade:n,onUpdateClick:t=a(),children:r,...l}=e;return n?(0,x.jsx)(i.Box,{"data-testid":"upgrade-to-business-banner",onClick:t,as:i.Text,cursor:"pointer",textDecoration:"underline",color:"main",...l,children:r}):null},m=e=>{let{flavour:n,couponRemainingDays:t,onUpdateClick:l=a()}=e;const{daysRemaining:s,canUpgrade:d,trialEndsAt:c}=(0,o.A)(),{isEarlybirdAndCommunitySunset:m}=(0,g.A)(),{loaded:b,windowsNodes:y}=u(),j=(0,r.useMemo)((()=>({isCoupon:t>0,isEarlybirdAndCommunitySunset:m,isBanner:"banner"===n,isSidebar:"sidebar"===n,isBilling:"billing"===n,isFreePlanUpgrade:"freePlanUpgrade"===n})),[n,t]);return(0,x.jsx)(i.Flex,{justifyContent:j.isBilling?"start":"center",alignItems:"center",width:"100%",gap:2,children:j.isCoupon?(0,x.jsxs)(i.Flex,{column:!0,children:[(0,x.jsx)(i.Text,{...f[n],fontSize:"10px",lineHeight:"14px",strong:!0,children:t>2?"Discount auto-applies at checkout.":"Upgrade now. Offer auto-applies."}),t>2?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)(i.Text,{...f[n],fontSize:"36px",lineHeight:"40px",strong:!0,children:["\ud83e\ude84"," ",(0,x.jsx)(p.Te,{...f[n],fontSize:"36px",lineHeight:"38px",strong:!0,children:"10% Off"})]}),(0,x.jsx)(p.Te,{...f[n],fontSize:"24px",lineHeight:"26px",strong:!0,children:"All Annual Plans"}),(0,x.jsx)(p.Te,{...f[n],fontSize:"20px",lineHeight:"22px",strong:!0,children:"Black Friday Week!"})]}):(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)(i.Text,{...f[n],fontSize:"30px",lineHeight:"36px",strong:!0,children:["\u231b"," ",(0,x.jsx)(p.Te,{...f[n],fontSize:"30px",lineHeight:"32px",strong:!0,letterSpacing:"1px",children:"Ends soon"})]}),(0,x.jsx)(p.Te,{...f[n],fontSize:"46px",lineHeight:"48px",strong:!0,letterSpacing:"2.5px",children:"10% Off"}),(0,x.jsx)(p.Te,{...f[n],fontSize:"24px",lineHeight:"26px",strong:!0,letterSpacing:"0.5px",children:"All Annual Plans"})]})]}):j.isEarlybirdAndCommunitySunset?(0,x.jsxs)(i.Flex,{column:!0,gap:1,alignItems:"center",children:[(0,x.jsxs)(i.Text,{...f[n],textAlign:"center",strong:!0,...j.isBanner?{}:{fontSize:"10px"},children:["Thank you for your support!"," ",j.isBanner?(0,x.jsx)(h,{canUpgrade:d,onUpdateClick:l,children:"Upgrade"}):null]}),(0,x.jsx)(i.Text,{...f[n],color:"primary",fontSize:"22px",lineHeight:.8,strong:!0,children:"25% Lifetime off"})]}):j.isFreePlanUpgrade?(0,x.jsx)(i.Text,{...f[n],children:"Upgrade your plan for unlimited access and Business features."}):(0,x.jsxs)(i.Flex,{column:!0,gap:1,justifyContent:"center",children:[(0,x.jsxs)(i.Text,{...f[n],children:["You have ",(0,x.jsx)(i.Text,{strong:!0,...f[n],children:`${s} days`})," ","left to explore all the features of Netdata Business."," ",j.isBilling&&(0,x.jsxs)(x.Fragment,{children:["Trial ends at"," ",(0,x.jsx)(i.Text,{strong:!0,...f[n],children:c}),"."," "]}),j.isBanner?(0,x.jsx)(h,{canUpgrade:d,onUpdateClick:l,children:"Consider upgrading for unlimited access."}):(0,x.jsx)(x.Fragment,{children:"Consider upgrading for unlimited access."})]}),b&&y.length?(0,x.jsxs)(i.Flex,{alignItems:"center",justifyContent:"center",gap:1,children:[(0,x.jsx)(i.Icon,{name:"warning_triangle",color:"warning"}),(0,x.jsxs)(i.Text,{...f[n],children:["Your"," ",(0,x.jsx)(i.Text,{strong:!0,...f[n],children:"Windows"})," ","nodes will be restricted after the trial period ends."]})]}):null]})})}},99243:(e,n,t)=>{t.d(n,{PL:()=>o,Te:()=>s,bg:()=>a});var r=t(33185),i=t(92415),l=t(68399);const a=(0,r.default)(i.Flex).attrs({position:"relative"}).withConfig({displayName:"styled__TrialWarningSidebar",componentId:"sc-66x250-0"})(["background-color:",";border-width:1px;border-style:dashed;border-color:",";border-radius:2px;"],(e=>{let{type:n}=e;return(0,i.getColor)(l.W1[n]?.background)}),(e=>{let{type:n}=e;return(0,i.getColor)(l.W1[n]?.border)})),o=(0,r.default)(i.Button).withConfig({displayName:"styled__TrialUpgradeButton",componentId:"sc-66x250-1"})(["flex:auto;",""],(e=>{let{days:n,theme:t}=e;return n>0&&`color: ${(0,i.getColor)("bright")({theme:t})} !important;`})),s=(0,r.default)(i.TextBigger).attrs((e=>({strong:!0,lineHeight:.8,letterSpacing:"auto",...e}))).withConfig({displayName:"styled__PromoText",componentId:"sc-66x250-2"})(["background-color:",";background-image:linear-gradient( 43deg,"," 0%,"," 46%,"," 100% );-webkit-background-clip:text;-webkit-text-fill-color:transparent;letter-spacing:",";"],(0,i.getColor)("primary"),(0,i.getColor)(["blue","aquamarine"]),(0,i.getColor)(["purple","mauve"]),(0,i.getColor)("primary"),(e=>e.letterSpacing))}}]);