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/5030.33fdeacac57b4b7fcf99.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]="0fa774ae-cbbf-4cd5-9b30-134eacab00d3",e._sentryDebugIdIdentifier="sentry-dbid-0fa774ae-cbbf-4cd5-9b30-134eacab00d3")}()}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([[5030],{45710:(e,n,t)=>{t.d(n,{R:()=>r});var a=t(29407);function r(e){return+(0,a.a)(e)<Date.now()}},52365:(e,n,t)=>{t.d(n,{A:()=>r});var a=t(43329);function r(e){return(0,a.w)(e,Date.now())}},75030:(e,n,t)=>{t.r(n),t.d(n,{default:()=>A});var a=t(96540),r=t(52035),o=t(34843),i=t(84929),s=t(41394),c=t(32370),d=t(45710),l=t(42539),u=t(52365),f=t(75156),b=t(92516),h=t(1108),p=t(5305),m=t(96054),g=t(61501),w=t(10911),x=t(91349);function D(e,n,t){const a=(0,b.q)(),r=t?.locale??a.locale??f.c,o=(0,m.z)(e,n);if(isNaN(o))throw new RangeError("Invalid time value");const i=Object.assign({},t,{addSuffix:t?.addSuffix,comparison:o}),[s,c]=(0,p.x)(t?.in,...o>0?[n,e]:[e,n]),d=(0,x.O)(c,s),l=((0,h.G)(c)-(0,h.G)(s))/1e3,u=Math.round((d-l)/60);let D;if(u<2)return t?.includeSeconds?d<5?r.formatDistance("lessThanXSeconds",5,i):d<10?r.formatDistance("lessThanXSeconds",10,i):d<20?r.formatDistance("lessThanXSeconds",20,i):d<40?r.formatDistance("halfAMinute",0,i):d<60?r.formatDistance("lessThanXMinutes",1,i):r.formatDistance("xMinutes",1,i):0===u?r.formatDistance("lessThanXMinutes",1,i):r.formatDistance("xMinutes",u,i);if(u<45)return r.formatDistance("xMinutes",u,i);if(u<90)return r.formatDistance("aboutXHours",1,i);if(u<g.F6){const e=Math.round(u/60);return r.formatDistance("aboutXHours",e,i)}if(u<2520)return r.formatDistance("xDays",1,i);if(u<g.Nw){const e=Math.round(u/g.F6);return r.formatDistance("xDays",e,i)}if(u<2*g.Nw)return D=Math.round(u/g.Nw),r.formatDistance("aboutXMonths",D,i);if(D=(0,w.W)(c,s),D<12){const e=Math.round(u/g.Nw);return r.formatDistance("xMonths",e,i)}{const e=D%12,n=Math.trunc(D/12);return e<3?r.formatDistance("aboutXYears",n,i):e<9?r.formatDistance("overXYears",n,i):r.formatDistance("almostXYears",n+1,i)}}function y(e,n){return D(e,(0,u.A)(e),n)}var I=t(85577),S=t(91130),M=t(92415),j=t(56171),T=t(79748),k=t(6304),X=t(74848);const v=(0,r.eU)((()=>S.A.get("/api/v1/license").then((e=>e.data)).catch((()=>null)))),A=()=>{const e=(0,o.md)((0,i.Rq)(v)),[n,t]=(0,k.A)(),[r,u]=(0,a.useState)(),[f,b]=(0,a.useState)(!1);return(0,a.useEffect)((()=>{if("hasValue"!==e.state)return;const n=e.data?.data;if(!n)return;const a=(0,s.H)(n.exp);if(u(a),!(0,c.f)(a))return;const r=parseInt((a-new Date)/1e3/60/60/24);if(r>30)return;const o=localStorage.getItem("dismissLicenceWarning");o&&(0,c.f)((0,s.H)(o))&&!(0,d.R)((0,s.H)(o))&&r>0||(t(!0),r<0&&b(!0))}),[e]),window.envSettings.onprem&&n?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)(T.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:()=>{t(),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)(T.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}}}]);