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/3439.793169e2c5ef8797c51f.chunk.js
try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e504a2e1-dce1-4dd0-b4dd-5e89f333877a",e._sentryDebugIdIdentifier="sentry-dbid-e504a2e1-dce1-4dd0-b4dd-5e89f333877a")}()}catch(e){}!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"0d597b660e680dc5bde02dc0a1a30ba3e59b2b5c"}}catch(e){}}(),(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[3439],{33439:(e,t,a)=>{a.r(t),a.d(t,{Trust:()=>g,default:()=>p});a(98992),a(72577);var n=a(96540),o=a(86663),i=a(86177),r=a(72060),d=a(26363),l=a(55093),s=a(60908),c=a(94404),u=a(3319),h=a(74848);const f=(0,c.A)(i.Button),g=()=>{const[e,t]=(0,n.useMemo)((()=>{const{search:e}=window.location,{redirect_uri:t,agent_uri:a}=o.parse(e);return[(0,r.A)(t),a]})),[a,c]=(0,n.useState)(),[g,p,b]=(0,d.LC)(),[y,m]=(0,d.Yr)({},[g]),{sendLog:x,isReady:w}=(0,u.A)();return(0,n.useEffect)((()=>{let a=!0,n=null;const o=y.find((e=>e.url===t));return o?x({feature:"TrustUrl",description:"Redirect due to trusted url"}).finally((()=>{location.replace(`/api/v1/auth/account/origins/${o.id}/redirect?redirect_uri=${encodeURIComponent(e)}&agent_uri=${encodeURIComponent(t)}`)})):n=setTimeout((()=>{a&&c(!0)}),1e3),()=>{a=!1,n&&(clearTimeout(n),n=null)}}),[e,t,y,w]),a?(0,h.jsx)(s.Ay,{feature:"TrustUrl",children:(0,h.jsx)(i.Layer,{full:!0,children:(0,h.jsxs)(i.Flex,{"data-testid":"trust",alignItems:"center",justifyContent:"center",column:!0,width:"100%",height:"100%",background:"mainBackground",gap:4,children:[(0,h.jsx)(l.m,{animate:b}),(0,h.jsxs)(i.Text,{textAlign:"center",children:["Do you trust ",(0,h.jsx)(i.Text,{strong:!0,children:t}),"?"]}),(0,h.jsxs)(i.Flex,{column:!0,gap:2,alignItems:"center",children:[(0,h.jsx)(i.TextBig,{children:"Authorizing this URL will allow it to request your Netdata data."}),(0,h.jsxs)(i.Flex,{gap:2,children:[(0,h.jsx)(f,{flavour:"borderless",onClick:()=>window.location.replace(decodeURIComponent(e)),disabled:m||b,"data-ga":"url-authorization::click-cancel-button",feature:"TrustUrl",payload:{label:"Cancel"},children:"Cancel"}),(0,h.jsx)(f,{onClick:()=>p(t),disabled:m||b,isLoading:m||b,"data-ga":"url-authorization::click-yes-button",feature:"TrustUrl",payload:{label:"Yes"},children:"Yes"})]})]})]})})}):(0,h.jsx)(l.A,{})},p=g},55093:(e,t,a)=>{a.d(t,{A:()=>s,m:()=>l});var n=a(33185),o=a(86177),i=a(74848);const r=(0,n.keyframes)(["from{opacity:0.4;}to{opacity:1;}"]),d=(0,n.default)(o.Icon).withConfig({displayName:"loader__StyledIcon",componentId:"sc-a76ek6-0"})(["width:",";height:",";animation:",";"],(e=>e.width),(e=>e.height),(e=>{let{animate:t}=e;return t?(0,n.css)([""," 1.6s ease-in infinite"],r):""})),l=e=>{let{title:t="Loading",width:a="208px",height:n="177px",...o}=e;return(0,i.jsx)(d,{name:"netdata",color:"primary",title:t,"data-testid":"loading-logo",width:a,height:n,...o})},s=e=>{let{title:t,body:a,iconProps:n,animate:r=!0,testId:d="",...s}=e;return(0,i.jsxs)(o.Flex,{column:!0,height:"100vh",background:"mainBackground",width:"100%",justifyContent:"center",alignItems:"center","data-testid":`loader-container-${d}`,...s,children:[(0,i.jsx)(l,{...n,animate:r}),t&&(0,i.jsx)(o.H3,{color:"text",margin:[1,0,0],children:t}),a&&(0,i.jsx)(o.Text,{color:"text",margin:[4.5,0,0],children:a})]})}},72060:(t,a,n)=>{n.d(a,{A:()=>o});const o=t=>{try{if(!t)return null;const e=document.createElement("a");return e.href=t,/https?/.test(e.protocol)?new URL(e.protocol+"//"+e.host+e.pathname+e.search+e.hash).toString():null}catch(e){return null}}},80590:(e,t,a)=>{a.d(t,{A:()=>r});var n=a(96540),o=a(3319),i=a(74848);const r=e=>t=>{let{callback:a,feature:r,isStart:d,isSuccess:l,isFailure:s,eventReason:c,payload:u={},...h}=t;const{sendLog:f,isReady:g}=(0,o.A)(),p=(0,n.useCallback)((e=>{const t=h[a],n={...r?{feature:r}:{},...void 0!==d?{isStart:d}:{},...void 0!==l?{isSuccess:l}:{},...void 0!==s?{isFailure:s}:{},...c?{eventReason:c}:{},...u,...h["data-ga"]?{dataGa:h["data-ga"]}:{},...h.dataGa?{dataGa:h.dataGa}:{},...h["data-track"]?{dataTrack:h["data-track"]}:{},...h.label?{label:h.label}:{}};"function"===typeof t&&t(e),f(n,!0)}),[a,f,g,u,h]),b=(0,n.useMemo)((()=>({...h,[a]:p})),[h,a,p]);return(0,i.jsx)(e,{...b})}},94404:(e,t,a)=>{a.d(t,{A:()=>r});var n=a(80590),o=a(81691),i=a(74848);const r=e=>t=>{let{payload:a={},...r}=t;const d=(0,n.A)(e);return(0,i.jsx)(d,{...r,callback:"onClick",payload:{...a,action:o.o1.buttonClicked}})}}}]);