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/usr/share/netdata/web/v3/5030.dfec084b4e8fef166e7d.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:"aeeb2702d6a0b41e7dabfc313b63e720f0845c35"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="01776472-87db-4015-a789-542cd8fa3d65",e._sentryDebugIdIdentifier="sentry-dbid-01776472-87db-4015-a789-542cd8fa3d65")}catch(e){}}(),(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[5030],{75030(e,t,n){n.r(t),n.d(t,{default:()=>P});n(62953);var a=n(96540),r=n(52035),o=n(34843),s=n(25316),i=n(41394),c=n(32370),d=n(45710),l=n(42539),u=n(52365),f=n(75156),h=n(92516),m=n(1108),p=n(5305),b=n(96054),g=n(61501),x=n(10911),D=n(91349);function w(e,t,n){const a=(0,h.q)(),r=n?.locale??a.locale??f.c,o=(0,b.z)(e,t);if(isNaN(o))throw new RangeError("Invalid time value");const s=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:o}),[i,c]=(0,p.x)(n?.in,...o>0?[t,e]:[e,t]),d=(0,D.O)(c,i),l=((0,m.G)(c)-(0,m.G)(i))/1e3,u=Math.round((d-l)/60);let w;if(u<2)return n?.includeSeconds?d<5?r.formatDistance("lessThanXSeconds",5,s):d<10?r.formatDistance("lessThanXSeconds",10,s):d<20?r.formatDistance("lessThanXSeconds",20,s):d<40?r.formatDistance("halfAMinute",0,s):d<60?r.formatDistance("lessThanXMinutes",1,s):r.formatDistance("xMinutes",1,s):0===u?r.formatDistance("lessThanXMinutes",1,s):r.formatDistance("xMinutes",u,s);if(u<45)return r.formatDistance("xMinutes",u,s);if(u<90)return r.formatDistance("aboutXHours",1,s);if(u<g.F6){const e=Math.round(u/60);return r.formatDistance("aboutXHours",e,s)}if(u<2520)return r.formatDistance("xDays",1,s);if(u<g.Nw){const e=Math.round(u/g.F6);return r.formatDistance("xDays",e,s)}if(u<2*g.Nw)return w=Math.round(u/g.Nw),r.formatDistance("aboutXMonths",w,s);if(w=(0,x.W)(c,i),w<12){const e=Math.round(u/g.Nw);return r.formatDistance("xMonths",e,s)}{const e=w%12,t=Math.trunc(w/12);return e<3?r.formatDistance("aboutXYears",t,s):e<9?r.formatDistance("overXYears",t,s):r.formatDistance("almostXYears",t+1,s)}}function y(e,t){return w(e,(0,u.A)(e),t)}var I=n(85577),S=n(91130),M=n(68978),j=n(56171),v=n(79748),k=n(6304),X=n(74848);const A=(0,r.eU)((()=>S.A.get("/api/v1/license").then((e=>e.data)).catch((()=>null)))),P=()=>{const e=(0,o.md)((0,s.A)(A)),[t,n]=(0,k.A)(),[r,u]=(0,a.useState)(),[f,h]=(0,a.useState)(!1);return(0,a.useEffect)((()=>{var t;if("hasValue"!==e.state)return;const a=null===(t=e.data)||void 0===t?void 0:t.data;if(!a)return;const r=(0,i.H)(a.exp);if(u(r),!(0,c.f)(r))return;const o=parseInt((r-new Date)/1e3/60/60/24);if(o>30)return;const s=localStorage.getItem("dismissLicenceWarning");s&&(0,c.f)((0,i.H)(s))&&!(0,d.R)((0,i.H)(s))&&o>0||(n(!0),o<0&&h(!0))}),[e]),window.envSettings.onprem&&t?f?(0,X.jsx)(M.Layer,{full:!0,backdropProps:{backdropBlur:"3px"},children:(0,X.jsx)(j.A,{testId:"onprem-banner",width:"100%",background:"errorBackground",position:"absolute",top:"0",tooltipProps:{align:"top"},zIndex:20,children:(0,X.jsx)(M.Flex,{justifyContent:"center",alignItems:"center",width:"100%",gap:2,children:(0,X.jsxs)(M.Text,{children:["Your Netdata Enterprise On-prem License has expired on ",(0,I.GP)(r,"PPPP"),". Please contact your admin /"," ",(0,X.jsx)(v.A,{"data-testid":"renew",href:"mailto:billing@netdata.cloud",as:"a",cursor:"pointer",textDecoration:"underline",color:"main",children:"billing@netdata.cloud"})," ","to renew your license."]})})})}):(0,X.jsx)(j.A,{testId:"onprem-banner",width:"100%",background:"warningBackground",position:"absolute",top:"0",onClose:()=>{n(),localStorage.setItem("dismissLicenceWarning",(0,l.W)(new Date,{days:1}).toISOString())},tooltipProps:{align:"top"},zIndex:20,children:(0,X.jsx)(M.Flex,{justifyContent:"center",alignItems:"center",width:"100%",gap:2,children:(0,X.jsxs)(M.Text,{children:["Your Netdata Enterprise On-prem License will expire in ",y(r),". Please contact your admin /"," ",(0,X.jsx)(v.A,{"data-testid":"renew",href:"mailto:billing@netdata.cloud",as:"a",cursor:"pointer",textDecoration:"underline",color:"main",children:"billing@netdata.cloud"})," ","to renew your license."]})})}):null}}}]);