diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 02:57:58 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 02:57:58 +0000 |
commit | be1c7e50e1e8809ea56f2c9d472eccd8ffd73a97 (patch) | |
tree | 9754ff1ca740f6346cf8483ec915d4054bc5da2d /web/gui/v2/3169.9aa93f115e8a19171f69.chunk.js | |
parent | Initial commit. (diff) | |
download | netdata-upstream.tar.xz netdata-upstream.zip |
Adding upstream version 1.44.3.upstream/1.44.3upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'web/gui/v2/3169.9aa93f115e8a19171f69.chunk.js')
-rw-r--r-- | web/gui/v2/3169.9aa93f115e8a19171f69.chunk.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/web/gui/v2/3169.9aa93f115e8a19171f69.chunk.js b/web/gui/v2/3169.9aa93f115e8a19171f69.chunk.js new file mode 100644 index 00000000..2a5b5171 --- /dev/null +++ b/web/gui/v2/3169.9aa93f115e8a19171f69.chunk.js @@ -0,0 +1 @@ +!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b217396c-0839-4be0-aec9-2da4a46c9e0c",e._sentryDebugIdIdentifier="sentry-dbid-b217396c-0839-4be0-aec9-2da4a46c9e0c")}catch(e){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"8b7b01b6c705cf50f8050ce0fb8fc6b58fe68567"},(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[3169],{83169:function(e,t,n){n.r(t),n.d(t,{SignIn:function(){return D},default:function(){return H}});n(41539),n(39714),n(66992),n(78783),n(33948),n(60285),n(41637),n(74916),n(15306),n(64765),n(77601);var a=n(67294),i=n(89250),o=n(17563),r=n(93416),l=n(15794),c=n(1043),u=n(87562),d=n(26502),s=n(87462),g=n(45987),f=(n(92222),n(71893)),m=["method"],p=f.default.a.withConfig({displayName:"linkButton__LinkButton",componentId:"sc-9kv26a-0"})(["color:",";text-decoration:none;background-color:transparent;display:flex;flex-flow:row nowrap;justify-content:flex-start;align-items:center;height:",";background:",";border:1px solid ",";border-radius:2px;max-width:320px;width:100%;",";&:hover{text-decoration:none;color:unset;}"],(0,r.getColor)("background"),(0,r.getSizeBy)(5.5),(0,r.getColor)("mainBackground"),(0,r.getColor)("mainBackground"),(function(e){var t=e.disabled;return"\n opacity: ".concat(t?.4:1,";\n pointer-events: ").concat(t?"none":"auto",";\n ")})),b=function(e){return function(t){var n=t.method,i=(0,g.Z)(t,m);return n==localStorage.getItem("lastSignInMethod")?a.createElement(r.Box,{width:"100%"},a.createElement(r.TextMicro,null,"Last Sign-in method"),a.createElement(e,(0,s.Z)({isLastSignInMethod:!0},i))):a.createElement(e,i)}},h=function(e){return(0,f.default)(p).withConfig({displayName:"linkButton",componentId:"sc-9kv26a-1"})(["box-shadow:0px 0px 1px rgba(0,0,0,0.12);border-radius:2px;background:",";border-style:solid;border-color:",";border-width:",";span{flex:1;display:flex;align-items:center;justify-content:center;padding:0 ",";color:",";}"],e,(function(t){return t.isLastSignInMethod?"green":e}),(function(e){return e.isLastSignInMethod?"2px":"1px"}),(0,r.getSizeBy)(1),(0,r.getColor)("bright"))},w=h("#445260"),E=h("#4285f4"),x=n(29439),y=n(78312),v=n(54005),k=b(y.U5),I=function(e){var t=e.onSubmit,n=e.disabled,i=e.initialValue,o=e.buttonLabel,l=e.tagging,c=(0,r.useInputValue)({value:i||""}),u=(0,x.Z)(c,2),d=u[0],s=u[1],g=(0,a.useState)(),f=(0,x.Z)(g,2),m=f[0],p=f[1],b=(0,v.Z)(),h=b.sendButtonClickedLog,w=b.isReady,E=(0,a.useCallback)((function(e){e.preventDefault(),h({feature:"SignIn",dataGa:"signinup::click-email::".concat(l)}),t(d).catch(p),localStorage.setItem("lastSignInMethod","email")}),[t,d,w]);return a.createElement(r.Flex,{as:"form",column:!0,gap:4,width:"100%","data-testid":"emailField"},a.createElement(k,{value:d,onChange:s,"data-testid":"emailField-input",method:"email",size:"large",error:m}),a.createElement(y.Sn,{type:"submit",disabled:n||!d,width:"100%",label:o,onClick:E,"data-ga":"signinup::click-email::".concat(l),"data-testid":"emailField-submitButton"}))},S=n(27266),C=n(87464),B=n(97096),_=n(39979),G=n(16294),F=function(){var e=(0,a.useMemo)((function(){var e=window.location.search;return o.parse(e).telemetry_session_id}));(0,a.useEffect)((function(){e&&sessionStorage.setItem(G.Hw.session,e)}),[e])},Z=n(63346),L=b(E),M=(0,_.Z)(L),R=b(w),T=(0,_.Z)(R),A=function(e){var t=e.to;try{t=new URL(t).toString()}catch(n){t=null}return t?a.createElement(r.Box,{position:"fixed"},a.createElement(r.Button,{as:"a",href:t,flavour:"borderless",label:"Go back to ".concat(t.replace(/#.*/,"")),icon:"arrow_left",rel:"noopener noreferrer"})):null},D=function(){var e=(0,i.TH)().search,t=window.location.hash,n=(0,c.iM)(),l=o.parse(e).redirect_uri;F();var s=(0,a.useCallback)((function(a){var i=encodeURIComponent((0,u.$)("/sign-in".concat(e),t)),o=encodeURIComponent((0,u.$)("/sign-up/verify".concat(e),t));return n({email:a,redirectURI:i,registerURI:o})}),[]);(0,a.useEffect)((function(){if(/app\.netdata\.cloud/.test(location.hostname)){var e=document.createElement("script");return e.src="https://zsvdrp94yfxr.statuspage.io/embed/script.js",e.async=!0,document.body.appendChild(e),function(){document.body.removeChild(e)}}}),[]);var g=function(e){localStorage.setItem("lastSignInMethod",e)};return a.createElement(Z.ZP,{feature:"SignIn"},!window.envSettings.onprem&&!!l&&a.createElement(A,{to:l}),a.createElement(S.Z,{"data-testid":"signIn"},a.createElement(r.Flex,{column:!0,gap:4},a.createElement(r.H1,{textAlign:"center"},"Welcome!"),a.createElement(r.TextBig,{textAlign:"center"},"Sign in and let's get you started")),a.createElement(y.Yb,null,a.createElement(r.Flex,{column:!0,gap:4},a.createElement(M,{href:(0,u.G)("google"),onClick:function(){return g("google")},disabled:!1,"data-ga":"signinup::click-google::sni-view","data-testid":"signIn-googleButton",method:"google",feature:"SignIn",payload:{label:"Continue with Google"}},a.createElement(y.xG,null,a.createElement(d.av,null)),a.createElement(r.Text,{textAlign:"center"},"Continue with Google")),a.createElement(T,{href:(0,u.G)("github"),onClick:function(){return g("github")},disabled:!1,"data-ga":"signinup::click-github::sni-view","data-testid":"signIn-githubButton",method:"github",feature:"SignIn",payload:{label:"Continue with GitHub"}},a.createElement(y.xG,null,a.createElement(d.bY,null)),a.createElement(r.Text,null,"Continue with GitHub"))),a.createElement(r.Flex,{gap:2,alignItems:"center"},a.createElement(C.Z,{theme:"default"}),a.createElement(r.H4,null,"or"),a.createElement(C.Z,{theme:"default"})),a.createElement(I,{onSubmit:s,buttonLabel:"Sign in by email",tagging:"sni-view"})),!window.envSettings.onprem&&a.createElement(r.Flex,{column:!0,gap:4,alignSelf:"center",width:{max:"480px"}},a.createElement(r.TextBig,{textAlign:"center"},"Don't have a Netdata account yet? Relax! Sign-in and we will create one for you!"),a.createElement(r.Text,{textAlign:"center"},"By creating an account, you agree with Netdata's"," ",a.createElement(B.F,{tagging:"signin-view"})," and our"," ",a.createElement(B.w,{tagging:"signin-view"}),"."))))},H=(0,l.k)(D,"light")},97096:function(e,t,n){n.d(t,{F:function(){return c},w:function(){return l}});n(92222);var a=n(67294),i=n(78312),o={link:"https://www.netdata.cloud/terms",title:"Terms And Conditions",dataGa:"signinup::click-terms::"},r=function(e){var t=e.link,n=e.title,o=e.dataGa;return function(e){var r=e.tagging;return a.createElement(i.Fg,{href:t,target:"_blank",rel:"noopener noreferrer","data-ga":"".concat(o).concat(r)},n)}},l=r({link:"https://www.netdata.cloud/privacy",title:"Privacy Policy",dataGa:"signinup::click-privacy::"}),c=r(o)}}]);
\ No newline at end of file |