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/9244.3d52e7d12a54422a8d39.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:"81e2ee4047c533a9c262178a6611e7b957d46030"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ee6eade6-e159-4cfd-b7fa-c21a693f7fe5",e._sentryDebugIdIdentifier="sentry-dbid-ee6eade6-e159-4cfd-b7fa-c21a693f7fe5")}catch(e){}}(),(globalThis.webpackChunkcloud_frontend=globalThis.webpackChunkcloud_frontend||[]).push([[9244],{72060(e,t,o){o.d(t,{A:()=>n});const n=e=>{try{if(!e)return null;const t=document.createElement("a");return t.href=e,/https?/.test(t.protocol)?new URL(t.protocol+"//"+t.host+t.pathname+t.search+t.hash).toString():null}catch(t){return null}}},79244(e,t,o){o.r(t),o.d(t,{default:()=>P});o(74423),o(98992),o(72577),o(81454);var n=o(96540),r=o(76667),a=o(43276),s=o(91130),i=o(16866),d=o(49389),c=o(46587),u=o(84418),l=o(72060),g=o(258),f=o(63872),w=o(24182),_=o(24609),h=o(14457);const p=()=>{const e=(0,c.uW)("id"),t=(0,c.uW)("name"),o=(0,c.uW)("email"),r=(0,c.uW)("createdAt"),a=(0,c.uW)("verifiedEmail"),s=(0,c.uW)("avatarUrl"),i=(0,_.UV)("loaded"),d=(0,_.UV)("ids"),[,u,l]=(0,h.A)();(0,n.useEffect)(()=>{e&&i&&!u&&(e=>{let{avatar:t,createdAt:o,email:n,id:r,name:a,spacesCount:s,verifiedEmail:i,maxNodesCount:d}=e;if(!window.envSettings.tracking)return;if(n&&n.includes("@netdata.msdc.co"))return;if(r&&"00000000-0000-0000-0000-000000000000"===r)return;if(n&&n.includes("anonymous@netdata.cloud"))return;const c=new Date,u=c.toISOString(),l=new Date(o),g=Math.floor((c-l)/864e5);if(window.dataLayer&&window.dataLayer.push({event:"UserInfoAvailable",user_id:r,userIdentifier:r,userName:a,userEmail:n,userAccountCreatedAt:o,userAccountCreatedDaysAgo:g,userAvatarURL:t,userEmailVerified:i,spacesCount:s}),window.posthog?.__loaded&&(window.posthog.identify(r),window.posthog.people.set({email:n||"unknown email",name:a,netdata_cloud_account_created_at:o,netdata_cloud_account_created_days_ago:g,spacesCount:s,maxNodesCount:d}),window.posthog.register({netdata_cloud_account_created_days_ago:g,...window.localNetdataRegistry?{...window.localNetdataRegistry.pg?{netdata_registry_person_guid:window.localNetdataRegistry.pg}:{},...window.localNetdataRegistry.mg?{netdata_registry_machine_guid:window.localNetdataRegistry.mg}:{}}:{}}),window.posthog.register_once({event_source:"cloud",netdata_cloud_account_created_at:o,netdata_cloud_account_email:n||"unknown email",netdata_cloud_account_id:r,netdata_cloud_signed_in_at:u})),window.Reo){const e={username:n,type:"email",firstname:a};window.Reo.identify(e)}})({avatar:s,createdAt:r,email:o,id:e,name:t,spacesCount:d.length,verifiedEmail:a,maxNodesCount:l})},[e,i,u]),(0,n.useEffect)(()=>{if(window.posthog?.__loaded)try{window.posthog.onFeatureFlags(function(){window.posthog.isFeatureEnabled&&window.posthog.isFeatureEnabled("user-age-less-than-7d")&&window.posthog.startSessionRecording()})}catch(e){}},[])},m=()=>{if(!window.posthog?.__loaded)return;const e=(new Date).toISOString();window.posthog.register_once({event_source:"cloud",posthog_first_seen_at:e,posthog_first_distinct_id:"get_distinct_id"in window.posthog&&window.posthog.get_distinct_id()})},y=()=>(0,n.useEffect)(m,[]);var A=o(16015),v=o(58618),R=o(39189),b=o(39175),E=o(1011),I=o(81691),C=o(89942),S=o(41395),k=o(47090),N=o(3319);const U=()=>{const e=(0,n.useRef)(),[,t]=(0,f.A)(),{error_msg_key:o,error_msg:r}=(0,C.PP)(),{sendLog:a}=(0,N.A)();(0,n.useEffect)(()=>{if(o&&e.current!=o){e.current=o;const n=r?(0,S.Zr)(decodeURIComponent(r)):void 0,s=(0,k.o)(o,n);t({header:"Error",text:s}),a({feature:"url-hash-error",isFailure:!0,errorMsgKey:o,message:s})}},[e.current,o,r,t,a])};var $=o(74848);const x=e=>{let{errorRetry:t,token:o,redirectUri:r}=e;const s=a.A.parseUrl(decodeURIComponent(t)),{url:i,query:d}=s,{redirect_uri:c}=d,u=(0,n.useRef)(!1);return u.current||(u.current=!0,window.location=`${i}?token=${o}&redirect_uri=${c||r}`),null},P=()=>{(0,d.Ay)(),(0,u.A)();const e=(0,c.uW)("isLoaded"),t=(0,c.uW)("isAnonymous");(0,w.A)(),y(),p(),(0,n.useEffect)(()=>{if(!b.Ay){const e=window.localStorage.getItem(I.lO.visitor);if(e)window.envSettings.visitor=e;else{const e=(0,E.A)();window.localStorage.setItem(I.lO.visitor,e),window.envSettings.visitor=e}}},[]),(0,n.useEffect)(()=>{sessionStorage.getItem(I.yq.session)||sessionStorage.setItem(I.yq.session,(0,E.A)())},[]),U();const o=(0,r.RQ)("/sign-in/mobile-app/*"),_=(0,r.RQ)("/sign-in/*"),h=(0,r.RQ)("/sign-up/*"),m=!!_||!!h,C=(()=>{const[,e]=(0,f.A)();return(0,n.useCallback)(function(){let{origin:t,id:o}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!t)return;const n=decodeURIComponent(o);(0,A.ys)(o).then(t=>{let{data:o=[]}=t;return o.length?s.A.get(i._9).then(e=>{let{data:t}=e;return Promise.any(t.map(e=>s.A.get((0,v.tK)({spaceId:e.id})).then(t=>{let{data:n}=t;return Promise.any(n.map(t=>(0,g.uQ)({roomId:t.id,spaceId:e.id}).then(n=>{let{nodes:r}=n;const a=r.find(e=>{let{id:t}=e;return o.includes(t)});if(!a)throw new Error("can't find matching node");const{protocol:s,host:i}=window.location;return`${s}//${i}/spaces/${e.slug}/rooms/${t.slug}/nodes/${a.id}`})))})))}).catch(()=>{}):(0,A.iY)(n).then(t=>{let{data:o}=t;const{claimed:n}=o;throw e(n?{errorMsgKey:"ErrForbidden",errorMessage:"You tried to access this Node on Netdata and you don't have access to it. Please contact your Space admin to give you access to it."}:{errorMsgKey:"ErrForbidden",errorMessage:"This Node isn't connected to Netdata. Please connect it, if you have permission for it, or contact your Space admin."}),"no access"})}).then(e=>{e&&setTimeout(location.assign(e))}).catch(()=>{})},[])})(),S=(0,R.A)();if(!e||S.isFetching||S.hasAccess&&!m||o)return null;const{pathname:k,search:N,hash:P}=window.location,{error_retry:W,token:D}=a.A.parse(P),{cloudRoute:F,redirect_uri:L,...T}=a.A.parse(N);if(!t&&W)return(0,$.jsx)(x,{errorRetry:W,token:D,redirectUri:L});if(!t&&m){if(F){const e=F.includes("join-callback")?decodeURI(F):F,t=Array.isArray(e)?e[0]:e;return(0,$.jsx)(r.C5,{replace:!0,to:t})}const e=(0,l.A)(L);return e?(C(T),window.location.replace(decodeURIComponent(e)),null):(0,$.jsx)(r.C5,{replace:!0,to:"/spaces"})}if(b.Ay)return null;if(t&&!m){const e=P.includes("join-callback")?P:encodeURIComponent(P),t=`${N}${N?"&":"?"}cloudRoute=${k}`;return(0,$.jsx)(r.C5,{replace:!0,to:{pathname:"/sign-in",search:t,hash:e}})}return null}},84418(e,t,o){o.d(t,{A:()=>s});var n=o(96540),r=o(89942),a=o(24285);const s=()=>{const e=(0,a.xd)("timezone"),t=(0,a.fW)("timezone");(0,n.useEffect)(()=>{const{utc:o}=(0,r.PP)();e||o&&"default"!==o&&t(o),(0,r.Pg)(["utc","offset","timezoneName"])},[])}}}]);