1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,23426,e=>{"use strict";var t=e.i(43476),l=e.i(71645),r=e.i(18566),s=e.i(58249);e.s(["default",0,function(){let e=(0,r.useRouter)(),[o,a]=(0,l.useState)(""),[i,n]=(0,l.useState)(""),[c,d]=(0,l.useState)(null),[u,m]=(0,l.useState)(!1),[p,b]=(0,l.useState)(!1),[x,f]=(0,l.useState)(null);async function g(t){t.preventDefault(),d(null),m(!1),b(!0);try{let t=await fetch("/api/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:o,password:i})}),l=await t.json();if(!t.ok||!l.ok){(0,s.track)("login_fail",{reason:l.error??"unknown"}),"INVALID_CREDENTIALS"===l.error?d("ÐевеÑнÑй email или паÑолÑ"):"NOT_ELIGIBLE"===l.error?(d("Ðеб-веÑÑÐ¸Ñ Ð´Ð¾ÑÑÑпна на ÑаÑиÑаÑ
ÐÑемиÑм, ÐлаÑинÑм и ÐлаÑинÑм ÐлÑÑ. Ðа ваÑем ÑаÑиÑе вÑ
од пока закÑÑÑ."),m(!0)):"TOO_MANY_ATTEMPTS"===l.error?d("СлиÑком много попÑÑок вÑ
ода. ÐодождиÑе неÑколÑко минÑÑ Ð¸ попÑобÑйÑе Ñнова."):"NETWORK"===l.error?d("Ðе ÑдалоÑÑ ÑвÑзаÑÑÑÑ Ñ ÑеÑвеÑом. ÐопÑобÑйÑе еÑÑ Ñаз."):d("ЧÑо-Ñо поÑло не Ñак. ÐопÑобÑйÑе еÑÑ Ñаз."),b(!1);return}(0,s.track)("login_success",{needs_profile_pick:!!l.needsProfilePick}),f(l.needsProfilePick?"ÐагÑÑжаем пÑоÑилиâ¦":"ÐÑкÑÑваемâ¦"),e.replace(l.needsProfilePick?"/profile-pick":"/app"),e.refresh()}catch{(0,s.track)("login_fail",{reason:"network"}),d("СеÑÐµÐ²Ð°Ñ Ð¾Ñибка. ÐопÑобÑйÑе еÑÑ Ñаз."),b(!1)}}return(0,t.jsx)("main",{className:"flex-1 grid place-items-center p-6",children:(0,t.jsxs)("div",{className:"w-full max-w-sm",children:[(0,t.jsxs)("div",{className:"text-center mb-8",children:[(0,t.jsx)("div",{className:"mx-auto mb-3 grid h-12 w-12 place-items-center rounded-full bg-blue text-on-accent text-xl font-extrabold",children:"C"}),(0,t.jsx)("h1",{className:"text-2xl font-extrabold",children:"CoinKeeper â веб-веÑÑиÑ"}),(0,t.jsx)("p",{className:"mt-1 text-sm text-faint",children:"ÐойдиÑе Ñвоим CoinKeeper-аккаÑнÑом"})]}),(0,t.jsxs)("form",{onSubmit:g,className:"space-y-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"email",className:"block text-sm font-semibold mb-1",children:"Email"}),(0,t.jsx)("input",{id:"email",type:"email",autoComplete:"email",required:!0,value:o,onChange:e=>a(e.target.value),disabled:p,className:"w-full rounded-lg border border-line px-3 py-2 focus:border-blue-fg focus:outline-none focus:ring-2 focus:ring-blue-fg/30 disabled:opacity-60"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"password",className:"block text-sm font-semibold mb-1",children:"ÐаÑолÑ"}),(0,t.jsx)("input",{id:"password",type:"password",autoComplete:"current-password",required:!0,value:i,onChange:e=>n(e.target.value),disabled:p,className:"w-full rounded-lg border border-line px-3 py-2 focus:border-blue-fg focus:outline-none focus:ring-2 focus:ring-blue-fg/30 disabled:opacity-60"})]}),c&&(0,t.jsx)("div",{role:"alert",className:"rounded-lg bg-red-bg px-3 py-2 text-sm text-red-fg",children:c}),u&&(0,t.jsxs)("div",{className:"flex flex-col gap-2 text-sm",children:[(0,t.jsx)("a",{href:"https://coinkeeper.me/3?utm_source=web&utm_medium=login&utm_campaign=web_release#pricing",className:"rounded-lg bg-blue px-4 py-2.5 text-center font-semibold text-on-accent hover:bg-blue-hover",children:"ÐоÑмоÑÑеÑÑ ÑаÑиÑÑ"}),(0,t.jsx)("a",{href:"https://t.me/Coinkeeper_fin_bot?start=webtest",className:"rounded-lg border border-line px-4 py-2.5 text-center font-semibold hover:bg-hover",children:"ÐапиÑаÑÑÑÑ Ð² лиÑÑ Ð¾Ð¶Ð¸Ð´Ð°Ð½Ð¸Ñ"})]}),(0,t.jsx)("button",{type:"submit",disabled:p,className:"w-full rounded-lg bg-blue px-4 py-2.5 font-semibold text-on-accent hover:bg-blue-hover disabled:opacity-60",children:x??(p?"ÐÑ
одимâ¦":"ÐойÑи")})]}),(0,t.jsx)("p",{className:"mt-6 text-center text-xs text-faint",children:"ÐÐµÑ Ð°ÐºÐºÐ°ÑнÑа? СкаÑайÑе пÑиложение CoinKeeper в App Store или Google Play и заÑегиÑÑÑиÑÑйÑеÑÑ Ñам."})]})})}])}]);
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.