PageSourceSearch

https://alchemist-analytics.fly.dev/_next/static/chunks/pages/login-c510bd7888f485cf.js

js alchemist-analytics.fly.dev collected 2026-10-03 08:26:07 UTC 3,915 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[459],{6429:function(e,r,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return n(8904)}])},5545:function(e,r,n){"use strict";n.d(r,{Au:function(){return d},Xq:function(){return m},ZP:function(){return l},p7:function(){return _},zG:function(){return h}});var s=n(5893),a=(n(7294),n(9920)),t=n(4184),i=n.n(t),u=n(2175),o=n(8448),c=n.n(o);function l(e){var r=e.className,n=e.children;return(0,s.jsx)("div",{className:i()(c().form,r),children:n})}var d=function(e){var r=e.className,n=e.children;return(0,s.jsx)("div",{className:i()(c().buttons,r),children:n})},m=function(e){var r=e.name;return(0,s.jsx)(u.Bc,{name:r,children:function(e){return(0,s.jsx)(f,{msg:e})}})},f=function(e){var r=e.msg,n=(0,a.useSpring)({opacity:1,from:{opacity:0}});return(0,s.jsx)(a.animated.div,{className:c().error,style:n,children:(0,s.jsx)("div",{className:c().msg,children:r})})},_=function(e){var r=e.children;return(0,s.jsx)("div",{className:c().row,children:r})},h=function(e){var r=e.children;return r?(0,s.jsx)("div",{className:c().message,children:r}):null}},8904:function(e,r,n){"use strict";n.r(r),n.d(r,{__N_SSP:function(){return b},default:function(){return Z}});var s=n(5893),a=n(7294),t=n(1398),i=n(7568),u=n(414),o=n(4012),c=n(2175),l=n(2955),d=n(1163),m=n(337),f=n(5545),_=n(6920),h=n(3843),x=n(2979),j=n(4032),g=n(7477),p=n(106),v=n.n(p),w=function(e){var r=e.username,n=e.password,a={};return r||(a.username=(0,s.jsx)(o.Z,{id:"label.required",defaultMessage:"Required"})),n||(a.password=(0,s.jsx)(o.Z,{id:"label.required",defaultMessage:"Required"})),a};function N(){var e=(0,h.Z)().post,r=(0,d.useRouter)(),n=(0,a.useState)(),t=n[0],p=n[1],N=function(){var n=(0,i.Z)((function(n){var a,t,i,c,d,m;return(0,u.__generator)(this,(function(u){switch(u.label){case 0:return a=n.username,t=n.password,[4,e("/auth/login",{username:a,password:t})];case 1:return i=u.sent(),c=i.ok,d=i.status,m=i.data,c?((0,l.LS)(x.UA,m.token),(0,j.av)(m.user),[4,r.push("/")]):[3,3];case 2:return u.sent(),[2,null];case 3:p(401===d?(0,s.jsx)(o.Z,{id:"message.incorrect-username-password",defaultMessage:"Incorrect username/password."}):m),u.label=4;case 4:return[2]}}
1))}));return function(e){return n.apply(this,arguments)}}();return(0,s.jsx)(f.ZP,{className:v().login,children:(0,s.jsx)(c.J9,{initialValues:{username:"",password:""},validate:w,onSubmit:N,children:function(){return(0,s.jsxs)(c.l0,{children:[(0,s.jsxs)("div",{className:v().header,children:[(0,s.jsx)(_.Z,{icon:(0,s.jsx)(g.Z,{}),size:"xlarge",className:v().icon}),(0,s.jsx)("h1",{className:"center",children:"umami"})]}),(0,s.jsxs)(f.p7,{children:[(0,s.jsx)("label",{htmlFor:"username",children:(0,s.jsx)(o.Z,{id:"label.username",defaultMessage:"Username"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)(c.gN,{name:"username",type:"text"}),(0,s.jsx)(f.Xq,{name:"username"})]})]}),(0,s.jsxs)(f.p7,{children:[(0,s.jsx)("label",{htmlFor:"password",children:(0,s.jsx)(o.Z,{id:"label.password",defaultMessage:"Password"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)(c.gN,{name:"password",type:"password"}),(0,s.jsx)(f.Xq,{name:"password"})]})]}),(0,s.jsx)(f.Au,{children:(0,s.jsx)(m.Z,{type:"submit",variant:"action",children:(0,s.jsx)(o.Z,{id:"label.login",defaultMessage:"Login"})})}),(0,s.jsx)(f.zG,{children:t})]})}})})}var b=!0;function Z(e){return e.loginDisabled?null:(0,s.jsx)(t.Z,{title:"login",header:!1,footer:!1,center:!0,children:(0,s.jsx)(N,{})})}},106:function(e){e.exports={login:"LoginForm_login__B43Fe",icon:"LoginForm_icon__01CdM",header:"LoginForm_header__JpmA5"}},8448:function(e){e.exports={form:"FormLayout_form__S7G17",row:"FormLayout_row__qiqd4",buttons:"FormLayout_buttons__grNZk",error:"FormLayout_error__VZju7",msg:"FormLayout_msg__Z3hmJ",message:"FormLayout_message__4b6c0"}}},function(e){e.O(0,[354,175,398,774,888,179],(function(){return r=6429,e(e.s=r);var r}));var r=e.O();_N_E=r}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.