PageSourceSearch

https://ip8.com/_next/static/chunks/2890-bdc0d58439dba12e.js

js ip8.com collected 2026-10-04 00:06:54 UTC 10,454 bytes, 16 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2890],{65531:function(e,t,r){"use strict";r.d(t,{Z:function(){return u}});var a=r(2265);/**
2 * @license lucide-react v0.511.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */let s=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),l=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase()),n=e=>{let t=l(e);return t.charAt(0).toUpperCase()+t.slice(1)},i=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim(),o=e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0};/**
7 * @license lucide-react v0.511.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */var c={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
12 * @license lucide-react v0.511.0 - ISC
13 *
14 * This source code is licensed under the ISC license.
15 * See the LICENSE file in the root directory of this source tree.
16 */let d=(0,a.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:s,className:l="",children:n,iconNode:d,...u},m)=>(0,a.createElement)("svg",{ref:m,...c,width:t,height:t,stroke:e,strokeWidth:s?24*Number(r)/Number(t):r,className:i("lucide",l),...!n&&!o(u)&&{"aria-hidden":"true"},...u},[...d.map(([e,t])=>(0,a.createElement)(e,t)),...Array.isArray(n)?n:[n]])),u=(e,t)=>{let r=(0,a.forwardRef)(({className:r,...l},o)=>(0,a.createElement)(d,{ref:o,iconNode:t,className:i(`lucide-${s(n(e))}`,`lucide-${e}`,r),...l}));return r.displayName=n(e),r}},68291:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var a=r(65531);let s=(0,a.Z)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},78063:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var a=r(65531);let s=(0,a.Z)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},77216:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var a=r(65531);let s=(0,a.Z)("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]])},5589:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var a=r(65531);let s=(0,a.Z)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},1295:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var a=r(65531);let s=(0,a.Z)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]])},42890:function(e,t,r){"use strict";r.r(t),r.d(t,{SignIn:function(){return b},login:function(){return w}});var a=r(57437),s=r(2265),l=r(1295),n=r(5589),i=r(68291),o=r(61396),c=r.n(o),d=r(56230),u=r(84814),m=r(43917),h=r(64239),x=r(24033),p=r(49636),f=r(522),y=r(78063),g=r(73830);let w=async(e,t)=>{try{let s=await fetch("".concat("https://api2.ip8.com").concat(m.C2),{method:"POST",body:e,credentials:"include"}),l=await s.text(),n=JSON.parse(l);if((null==n?void 0:n.retcode)===200)try{var r,a;return await fetch("/api/user",{method:"POST",body:JSON.stringify({isLoggedIn:!0,username:e.get("username"),premium:null!==(r=null==n?void 0:n.isPremium)&&void 0!==r&&r})}),t({type:h.H8,payload:{authenticated:!0,premium:null!==(a=null==n?void 0:n.isPremium)&&void 0!==a&&a,userName:e.get("username"),worldTop100:0}}),{success:!0}}catch(e){}else null==n||n.retcode}catch(e){}return{error:"Authentication failed",success:!1}},b=()=>
16{let[e,t]=(0,s.useState)(!1),[r,o]=(0,s.useState)(!1),[m,h]=(0,s.useState)(null),{dispatch:b}=(0,s.useContext)(p.AppContext),v=(0,x.useRouter)(),j=(0,s.useRef)(null),N=(0,s.useRef)(null),[k,C]=(0,s.useState)(!1);(0,s.useEffect)(()=>{let e=localStorage.getItem("email");if(e){S.setFieldValue("email",e);let t=localStorage.getItem("rememberMe");t&&o(!0)}},[]);let S=(0,d.TA)({initialValues:{email:"",password:""},onSubmit:async e=>{let a="";e.password&&(a=(0,u.sha512)(e.password)),t(!0),h(null);let s=new URLSearchParams;s.append("username",e.email.trim()),s.append("password",a);let l=await w(s,b);if(null==l?void 0:l.success){r?(localStorage.setItem("email",e.email),localStorage.setItem("rememberMe","true")):localStorage.removeItem("email"),localStorage.removeItem("world_top");let t=document.referrer.includes(window.location.hostname);t&&window.history.length>2?v.back():v.push(g.Dx)}else{var n;h(null!==(n=null==l?void 0:l.error)&&void 0!==n?n:"Please fill out valid email/password")}t(!1)}}),A=(e,t,r)=>{let{condtion:a}=r;"Enter"===e.key&&(e.preventDefault(),a?S.handleSubmit():t.current&&t.current.focus())};return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("main",{className:"flex-grow flex items-center justify-center py-16 px-4 sm:px-6 lg:px-8",children:(0,a.jsxs)("div",{className:"max-w-lg w-full space-y-10",children:[(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)("h1",{className:"text-4xl font-extrabold text-gray-900 tracking-tight",children:"Welcome back"}),(0,a.jsx)("p",{className:"mt-4 text-lg text-gray-600",children:"Sign in to your account to continue"})]}),(0,a.jsxs)("div",{className:"bg-white p-10 rounded-2xl shadow-xl space-y-8",children:[(0,a.jsxs)("form",{className:"space-y-8",onSubmit:S.handleSubmit,children:[m&&(0,a.jsxs)("div",{className:"bg-red-50 border border-red-200 rounded-lg p-4 flex items-start gap-3",children:[(0,a.jsx)(y.Z,{className:"h-5 w-5 text-red-500 mt-0.5"}),(0,a.jsx)("p",{className:"text-sm text-red-600",children:m})]}),(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsx)(f.n,{name:"email",reference:j,type:"email",value:S.values.email,handleChange:S.handleChange,onKeyDown:e=>A(e,N,{condtion:!1}),label:"Email address",error:S.errors.email,touched:S.touched.email,placeHolder:"[email protected]",children:(0,a.jsx)(l.Z,{className:"h-5 w-5 text-gray-400"})}),(0,a.jsx)(f.n,{name:"password",reference:N,type:k?"text":"password",value:S.values.password,handleChange:S.handleChange,onKeyDown:e=>A(e,N,{condtion:!0}),label:"Password",error:S.errors.password,touched:S.touched.password,placeHolder:"Enter your password",showPasswordIcon:!0,showPassword:()=>{C(!k)},children:(0,a.jsx)(n.Z,{className:"h-5 w-5 text-gray-400"})})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)("input",{id:"remember-me",name:"remember-me",type:"checkbox",checked:r,onChange:e=>{o(e.target.checked)},className:"h-5 w-5 text-[#00AAD9] focus:ring-[#00AAD9] border-gray-300 rounded"}),(0,a.jsx)("label",{htmlFor:"remember-me",className:"ml-3 block text-base text-gray-900",children:"Remember me"})]}),(0,a.jsx)("div",{children:(0,a.jsx)(c(),{href:"/forgotpassword",className:"text-base font-medium text-[#00AAD9] hover:text-[#0088ae] transition-colors duration-150",children:"Forgot password?"})})]}),(0,a.jsxs)("button",{type:"submit",disabled:e,"data-test":"sign-in-button",className:"relative w-full flex justify-center py-3 px-4 border border-transparent text-base font-medium rounded-lg text-white bg-[#00AAD9] hover:bg-[#0088ae] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-[#00AAD9] transition-all duration-150 disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,a.jsx)("span",{className:"absolute left-0 inset-y-0 flex items-center pl-3",children:(0,a.jsx)(i.Z,{className:"h-5 w-5 text-[#80d5ec] group-hover:text-[#80d5ec] transition-all duration-150 ".concat(e?"animate-pulse":""),"aria-hidden":"true"})}),e?"Signing in...":"Sign in"]})]}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("div",{className:"absolute inset-0 flex items-center",children:(0,a.jsx)("div",{className:"w-full border-t border-gray-300"})}),(0,a.jsx)("div",{className:"relative flex justify-center text-sm",children:(0,a.jsx)("span",{className:"px-2 bg-white text-gray-500",children:"Don't have an account?"})})]}),(0,a.jsx)("div",{className:"text-center",children:(0,a.jsx)(c(),{href:g.cG,className:"text-base font-medium text-[#00AAD9] hover:text-[#0088ae] transition-colors duration-150",children:"Create a free account"})})]})]})})})}},522:function(e,t,r){"use strict";r.d(t,{n:function(){return o}});var a=r(57437),s=r(65088),l=r(65531);let n=(0,l.Z)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);var i=r(77216);let o=e=>{let{reference:t,name:r,value:l,handleChange:o,onKeyDown:c,error:d,touched:u,label:m,type:h,children:x,placeHolder:p,showPassword:f,showPasswordIcon:y=!1}=e;return(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{onClick:()=>(0,s.C)(t),htmlFor:r,className:"block text-sm font-medium text-gray-700 mb-2",children:m}),(0,a.jsxs)("div",{className:"relative rounded-lg shadow-sm",children:[(0,a.jsx)("div",{className:"absolute inset-y-0 left-0 pl-4 flex items-center pointer-events-none",children:x}),(0,a.jsx)("input",{id:m,name:r,type:h,ref:t,autoComplete:r,required:!0,value:l,onCh
16ange:o,onKeyDown:c,className:"block w-full pl-11 pr-4 py-3 border border-gray-300 rounded-lg text-gray-900 placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-[#00AAD9] focus:border-transparent text-base transition duration-150 ease-in-out",placeholder:p}),y&&(0,a.jsx)("button",{type:"button",onClick:f,"data-test":"show-password-icon",className:"absolute right-0 top-0 bottom-0 px-4",children:"password"===h?(0,a.jsx)(n,{className:"h-5 w-5 text-gray-500"}):(0,a.jsx)(i.Z,{className:"h-5 w-5 text-gray-500"})})]}),d&&u&&(0,a.jsx)("div",{className:"text-red-500 text-xs italic",children:d})]})}},65088:function(e,t,r){"use strict";r.d(t,{C:function(){return a}});let a=e=>{e&&e.current&&e.current.focus()}},61396:function(e,t,r){e.exports=r(68326)},24033:function(e,t,r){e.exports=r(50094)}}]);

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.