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/4837.8c2fcaac5ad164d64128.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]="944249b9-1055-432f-b88b-ae83450a2c69",e._sentryDebugIdIdentifier="sentry-dbid-944249b9-1055-432f-b88b-ae83450a2c69")}()}catch(e){}!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"80efa4e79295d5662a1431f45bf656cf5a858580"}}catch(e){}}(),(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[4837],{51846:(e,n,t)=>{t.d(n,{A:()=>o});var l=t(96540),i=t(63766),s=t(74848);const o=e=>{let{onChange:n,value:t,onKeyDown:o,label:r,focusOnRender:a,...d}=e;const c=(0,l.useRef)();return(0,l.useEffect)((()=>{a&&c.current&&c.current.focus()}),[c.current]),(0,s.jsx)(i.TextInput,{inputRef:c,label:r,name:"userEmail",placeholder:"Enter an email address",value:t,onChange:n,onKeyDown:o,...d})}},72060:(n,t,l)=>{l.d(t,{A:()=>i});const i=n=>{try{if(!n)return null;const e=document.createElement("a");return e.href=n,/https?/.test(e.protocol)?new URL(e.protocol+"//"+e.host+e.pathname+e.search+e.hash).toString():null}catch(e){return null}}},84837:(e,n,t)=>{t.r(n),t.d(n,{SignIn:()=>H,default:()=>O});var l=t(96540),i=t(88934),s=t(86663),o=t(63766),r=t(42660),a=t(26363),d=t(72060),c=t(3575),u=t(87875),g=t(74848);const h=e=>{let{ssoMode:n,joinCallback:t}=e;return(0,g.jsx)(o.Flex,{column:!0,gap:2,padding:[0,0,6,0],children:n?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(u.D7,{children:"Single Sign-On"}),(0,g.jsxs)(u.D7,{children:["Your organisation uses Single Sign-On (SSO).",(0,g.jsx)("br",{}),"Please sign in using your SSO credentials."]})]}):(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(u.D7,{children:"Welcome!"}),t?(0,g.jsx)(u.D7,{children:"To join the space you were invited, please sign-up for a Netdata Cloud Account. If you already have one, just sign-in."}):(0,g.jsx)(u.D7,{children:"Sign in and let's get you started"})]})})},p=e=>{let{label:n,href:t,onClick:l,Icon:i,...s}=e;return(0,g.jsxs)(u.mp,{href:t,onClick:l,...s,children:[i?(0,g.jsx)(i,{}):null,(0,g.jsx)(o.TextBigger,{color:"bright",padding:[0,6],children:n})]})},C=e=>n=>n.method===localStorage.getItem("lastSignInMethod")?(0,g.jsxs)(o.Box,{position:"relative",children:[(0,g.jsx)(e,{isLastMethod:!0,borderColor:"primary",...n}),(0,g.jsx)(o.Flex,{padding:[1,0,0,0],children:(0,g.jsx)(o.TextSmall,{color:"primary",children:"Last used"})})]}):(0,g.jsx)(e,{...n}),x=e=>n=>{let{wrap:t,...l}=n;return t?(0,g.jsx)(o.Flex,{width:"160px",children:(0,g.jsx)(e,{...l})}):(0,g.jsx)(e,{...l})},f={google:{label:"Google",SvgComponent:()=>(0,g.jsx)(u.Gr,{children:(0,g.jsxs)("svg",{width:"19",height:"18",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,g.jsxs)("g",{id:"logo_googleg_48dp",clipPath:"url(#clip0_719_878)",children:[(0,g.jsx)("path",{id:"Shape",fillRule:"evenodd",clipRule:"evenodd",d:"M18.14 9.20456C18.14 8.56637 18.0827 7.95274 17.9764 7.36365H9.5V10.845H14.3436C14.135 11.97 13.5009 12.9232 12.5477 13.5614V15.8196H15.4564C17.1582 14.2527 18.14 11.9455 18.14 9.20456Z",fill:"#4285F4"}),(0,g.jsx)("path",{id:"Shape_2",fillRule:"evenodd",clipRule:"evenodd",d:"M9.5 18C11.93 18 13.9673 17.1941 15.4564 15.8195L12.5477 13.5613C11.7418 14.1013 10.7109 14.4204 9.5 14.4204C7.15591 14.4204 5.17182 12.8372 4.46409 10.71H1.45728V13.0418C2.93818 15.9831 5.98182 18 9.5 18Z",fill:"#34A853"}),(0,g.jsx)("path",{id:"Shape_3",fillRule:"evenodd",clipRule:"evenodd",d:"M4.46409 10.7099C4.28409 10.1699 4.18182 9.59313 4.18182 8.99995C4.18182 8.40677 4.28409 7.82995 4.46409 7.28995V4.95813H1.45727C0.847727 6.17313 0.5 7.54768 0.5 8.99995C0.5 10.4522 0.847727 11.8268 1.45727 13.0418L4.46409 10.7099Z",fill:"#FBBC05"}),(0,g.jsx)("path",{id:"Shape_4",fillRule:"evenodd",clipRule:"evenodd",d:"M9.5 3.57955C10.8214 3.57955 12.0077 4.03364 12.9405 4.92545L15.5218 2.34409C13.9632 0.891818 11.9259 0 9.5 0C5.98182 0 2.93818 2.01682 1.45728 4.95818L4.46409 7.29C5.17182 5.16273 7.15591 3.57955 9.5 3.57955Z",fill:"#EA4335"})]}),(0,g.jsx)("defs",{children:(0,g.jsx)("clipPath",{id:"clip0_719_878",children:(0,g.jsx)("rect",{width:"18",height:"18",fill:"white",transform:"translate(0.5)"})})})]})})},github:{label:"Github",SvgComponent:()=>(0,g.jsx)(u.Gr,{children:(0,g.jsx)("svg",{width:"23",height:"22",viewBox:"0 0 23 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,g.jsx)("g",{id:"",children:(0,g.jsx)("path",{id:"Vector",d:"M11.8333 1.95239C6.83905 1.95239 2.78572 6.00573 2.78572 11C2.78572 15.2614 5.73524 18.8262 9.70715 19.7852L9.99667 17.4329C9.99667 17.4329 9.99667 16.8357 9.99667 15.7591C9.89715 15.7862 9.79763 15.8133 9.6981 15.8314C9.45382 15.8767 9.20953 15.9038 8.94715 15.9038C8.68477 15.8948 8.41334 15.8676 8.14191 15.7591C8.06953 15.7319 8.0062 15.6957 7.94286 15.6595C7.87048 15.6143 7.80715 15.5691 7.74382 15.5238C7.6262 15.4243 7.53572 15.3248 7.46334 15.2162C7.30953 15.0081 7.20096 14.8 7.09239 14.601C6.99286 14.4019 6.89334 14.2119 6.80286 14.04C6.75763 13.9586 6.70334 13.8772 6.6581 13.8229C6.63096 13.7957 6.61286 13.7776 6.59477 13.7595C6.57667 13.7505 6.56763 13.7414 6.56763 13.7414L6.42286 13.4791C6.35953 13.3705 6.39572 13.2257 6.51334 13.1533C6.55858 13.1262 6.61286 13.1172 6.6581 13.1262C6.76667 13.1352 6.85715 13.1805 6.92953 13.2257C7.00191 13.271 7.06524 13.3162 7.11953 13.3705C7.2281 13.47 7.30048 13.5695 7.37286 13.6691C7.51762 13.8681 7.6262 14.0581 7.74382 14.23C7.86143 14.411 7.97001 14.5738 8.09667 14.7005C8.16001 14.7638 8.21429 14.8181 8.26858 14.8543C8.29572 14.8724 8.32286 14.8814 8.35001 14.8995C8.37715 14.9086 8.41334 14.9267 8.44953 14.9357C8.73001 15.0081 9.11001 14.9629 9.47191 14.8543C9.65286 14.8 9.83382 14.7276 9.99667 14.6462C10.0148 14.6372 10.0238 14.6281 10.0419 14.6281C10.0871 14.2119 10.1957 13.9676 10.3586 13.7505C8.3681 13.3162 6.92953 12.0314 6.92953 10.5205V9.59763C6.92953 8.90096 7.23715 8.25858 7.75286 7.71573C7.44524 6.91953 7.59905 6.0962 7.85239 5.58954C8.5581 5.58954 9.39953 6.12334 9.89715 6.48525C10.5033 6.3043 11.1638 6.20477 11.8605 6.20477C12.5571 6.20477 13.2176 6.3043 13.8238 6.48525C14.3214 6.12334 15.1538 5.58954 15.8686 5.58954C16.1219 6.0962 16.2757 6.92858 15.9681 7.71573C16.4929 8.24953 16.7914 8.90096 16.7914 9.59763V10.5205C16.7914 12.0314 15.3529 13.3162 13.3624 13.7505C13.5886 14.0672 13.7062 14.4472 13.7062 15.2976C13.7062 16.6819 13.7062 17.451 13.7062 17.451L13.9957 19.7943C17.9495 18.8262 20.881 15.2705 20.881 11.0181C20.881 6.00573 16.8276 1.95239 11.8333 1.95239Z",fill:"white"})})})})}},j=x(C((e=>{let{method:n,...t}=e;const{label:i,SvgComponent:s}=(0,l.useMemo)((()=>f[n]),[n]),o=(0,l.useMemo)((()=>(0,c.R)(n)),[n]),r=(0,l.useCallback)((()=>{localStorage.setItem("lastSignInMethod",n)}),[n]);return(0,g.jsx)(p,{label:i,href:o,onClick:r,Icon:s,...t})}))),m=()=>(0,g.jsx)(u.Gr,{children:(0,g.jsx)("svg",{width:"19",height:"18",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,g.jsx)("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:"M0.166687 6.1875C0.166687 9.60477 2.93689 12.375 6.35419 12.375H10.2917V14.625H12.5417V16.875L13.6667 18H18.1667V13.5L12.3577 7.69105C12.4779 7.20971 12.5417 6.70606 12.5417 6.1875C12.5417 2.77023 9.77145 0 6.35419 0C2.93689 0 0.166687 2.77023 0.166687 6.1875ZM3.54169 4.5C3.54169 5.12132 4.04535 5.625 4.66669 5.625C5.28802 5.625 5.79169 5.12132 5.79169 4.5C5.79169 3.87868 5.28802 3.375 4.66669 3.375C4.04535 3.375 3.54169 3.87868 3.54169 4.5Z",fill:"#00CD51"})})}),w=x(C((e=>{let{onClick:n,...t}=e;const i=(0,l.useCallback)((e=>{e.preventDefault(),n&&n()}),[n]);return(0,g.jsxs)(u.mp,{href:"",onClick:i,...t,children:[(0,g.jsx)(m,{}),(0,g.jsx)(o.TextBigger,{color:"bright",padding:[0,6],children:"SSO"})]})})));var b=t(24609),v=t(39175);const S=e=>{let{isScreenSmall:n,onSsoClick:t}=e;const l=(0,b.vt)(),i=(0,v.ES)(l);return(0,g.jsxs)(o.Flex,{column:n,alignItems:"center",gap:4,children:[(0,g.jsx)(j,{method:"google",wrap:n}),(0,g.jsx)(j,{method:"github",wrap:n}),i?null:(0,g.jsx)(w,{method:"sso",onClick:t,wrap:n})]})},y=()=>(0,g.jsxs)(u.lf,{children:[(0,g.jsx)(u.cG,{}),(0,g.jsx)(u.D7,{margin:[0,2],children:"or"}),(0,g.jsx)(u.cG,{})]});var k=t(51846),I=t(3319);const R=e=>{let{isLastMethod:n,...t}=e;return(0,g.jsx)(k.A,{...t,...n&&{border:{side:"all",size:"1px",color:"primary"}}})},M=C(o.Flex),_=e=>{let{flavour:n="default",onSubmit:t,disabled:i,initialValue:s,tagging:r}=e;const[a,d]=(0,o.useInputValue)({value:s||""}),[c,u]=(0,l.useState)(),{sendButtonClickedLog:h,isReady:p}=(0,I.A)(),C="sso"===n,x=C?"sso":"email",f=C?"Continue":"Sign in";(0,l.useEffect)((()=>{a&&c&&u()}),[a]);const j=(0,l.useCallback)((e=>{e.preventDefault(),h({feature:"SignIn",dataGa:`signinup::click-${x}::${r}`}),t(a).catch(u),localStorage.setItem("lastSignInMethod",x)}),[t,a,p,x]);return(0,g.jsxs)(M,{as:"form",column:!0,gap:2,"data-testid":"emailField",method:"email",children:[(0,g.jsx)(R,{value:a,onChange:d,"data-testid":"emailField-input",size:"large",error:c,background:["neutral","black"],padding:[6],focusOnRender:C,errorMessageProps:{textAlign:"left"},...C?{placeholder:"Enter your email"}:{}}),(0,g.jsx)(o.Button,{flavour:"hollow",type:"submit",disabled:i||!a||!!c,width:"100%",padding:[3,4],label:f,onClick:j,"data-ga":`signinup::click-email::${r}`,"data-testid":"emailField-submitButton"})]})};var B=t(99516);const D=e=>{let{ssoMode:n,onBackToSsoClick:t}=e;return n&&t?(0,g.jsx)(o.Button,{label:"Sign in without Single Sign-On",flavour:"borderless",onClick:t}):n||window.envSettings.onprem?null:(0,g.jsxs)(o.Flex,{column:!0,gap:2,children:[(0,g.jsx)(o.TextBigger,{color:"bright",children:"No Netdata account? Sign-in and we will create one for you!"}),(0,g.jsxs)(o.TextMicro,{color:"bright",children:["By creating an account, you agree with Netdata's"," ",(0,g.jsx)(B.X,{tagging:"signin-view"})," and our"," ",(0,g.jsx)(B.H,{tagging:"signin-view"}),"."]})]})};var E=t(64391),L=t(6304),A=t(10444),F=t(81691);const T=()=>{const e=(0,l.useMemo)((()=>{const{search:e}=window.location,{telemetry_session_id:n}=s.parse(e);return n}));(0,l.useEffect)((()=>{e&&sessionStorage.setItem(F.yq.session,e)}),[e])};var V=t(60908);const G=e=>{let{to:n}=e;return n=(0,d.A)(n),n?(0,g.jsx)(o.Box,{position:"fixed",children:(0,g.jsx)(o.Button,{as:"a",href:n,flavour:"borderless",label:`Go back to ${n.replace(/#.*/,"")}`,icon:"arrow_left",rel:"noopener noreferrer"})}):null},H=()=>{const{search:e}=(0,i.zy)(),[n,,t,r]=(0,L.A)(),d=window.location.hash,p=(0,a.Js)(),{redirect_uri:C}=s.parse(e),[x,,f,j]=(0,L.A)(),m=new URL(window.location.href).searchParams.get("join_callback"),w=(0,A.J)();T();const b=(0,l.useCallback)((n=>{t();const l=encodeURIComponent((0,c.V)(`/sign-in${e}`,d)),i=encodeURIComponent((0,c.V)(`/sign-up/verify${e}`,d));return p({isSSO:x,email:n,redirectURI:l,registerURI:i,onDone:r})}),[p,x]);return(0,l.useEffect)((()=>{if(!/app\.netdata\.cloud/.test(location.hostname))return;const e=document.createElement("script");return e.src="https://zsvdrp94yfxr.statuspage.io/embed/script.js",e.async=!0,document.body.appendChild(e),()=>{document.body.removeChild(e)}}),[]),(0,g.jsxs)(V.Ay,{feature:"SignIn",children:[!window.envSettings.onprem&&!!C&&(0,g.jsx)(G,{to:C}),(0,g.jsx)(E.A,{"data-testid":"signIn",isScreenSmall:w,children:(0,g.jsxs)(o.Flex,{width:w?"95vw":"460px",column:!0,padding:[2,0],children:[(0,g.jsx)(h,{ssoMode:x,joinCallback:m}),x?null:(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(S,{isScreenSmall:w,ssoMode:x,onSsoClick:f}),(0,g.jsx)(y,{})]}),(0,g.jsx)(_,{flavour:x?"sso":"default",onSubmit:b,tagging:"sni-view",disabled:n}),(0,g.jsx)(u.cG,{}),(0,g.jsx)(D,{ssoMode:x,onBackToSsoClick:j})]})})]})},O=(0,r.g)(H,"dark")},99516:(e,n,t)=>{t.d(n,{H:()=>r,X:()=>a});var l=t(87875),i=t(74848);const s={link:"https://www.netdata.cloud/terms",title:"Terms And Conditions",dataGa:"signinup::click-terms::"},o=e=>{let{link:n,title:t,dataGa:s}=e;return e=>{let{tagging:o}=e;return(0,i.jsx)(l.ah,{href:n,target:"_blank",rel:"noopener noreferrer","data-ga":`${s}${o}`,children:t})}},r=o({link:"https://www.netdata.cloud/privacy",title:"Privacy Policy",dataGa:"signinup::click-privacy::"}),a=o(s)}}]);