PageSourceSearch

https://www.shorturl.bar/_next/static/chunks/pages/login-71ebe9776ba76103.js

js shorturl.bar collected 2026-10-02 01:17:45 UTC 6,295 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[295],{7864:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return a(8262)}])},6765:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var l=a(4848);a(6540);let s=e=>{let{label:t,name:a,placeholder:s,className:i="",error:n,...r}=e;return(0,l.jsxs)("div",{className:"flex w-full flex-col items-start justify-start gap-2.5",children:[(0,l.jsx)("label",{className:"text-[11px] font-bold uppercase tracking-[0.24em] text-slate-500",htmlFor:a,children:t}),(0,l.jsx)("input",{id:a,name:a,placeholder:s,className:"w-full rounded-[22px] border border-[#f3d8b2] bg-white/95 px-4 py-3 text-base font-semibold text-slate-900 shadow-[0_18px_30px_-28px_rgba(15,23,42,0.25)] outline-none focus:border-[#f97316] focus:ring-4 focus:ring-[#fed7aa]/50 xs:px-5 xs:py-4 xs:text-lg ".concat(i),...r}),(null==n?void 0:n.message)&&(0,l.jsxs)("p",{className:"text-sm font-medium text-rose-600",children:["* ",null==n?void 0:n.message]})]})}},3812:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(6471).A)("arrow-up-right",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]])},8262:(e,t,a)=>{"use strict";a.r(t),a.d(t,{__N_SSP:()=>w,default:()=>v});var l=a(4848),s=a(4873),i=a(6765),n=a(8446),r=a(9191),o=a(8389);let d=(0,a(6471).A)("lock-keyhole",[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]]);var c=a(2181),x=a(3812),h=a(3368),p=a.n(h),m=a(6110),u=a(6715),g=a(6540),f=a(9785),b=a(1409),j=a(4061),w=!0;let v=()=>{let e=(0,u.useRouter)(),{locale:t,dictionary:a}=(0,o.B)(),[h,w]=(0,g.useState)(!1),v=(0,r.Sb)(),N=(0,r.A7)(v,"/login",t),y=(0,r.mb)(v,"/login"),k=[{icon:d,...a.auth.login.highlights[0]},{icon:c.A,...a.auth.login.highlights[1]},{icon:x.A,...a.auth.login.highlights[2]}],{register:_,setValue:A,formState:{errors:S},handleSubmit:C,reset:E}=(0,f.mN)(),T=async t=>{w(!0);try{let l=await fetch("/api/account/login",{method:"POST",headers:(0,j.sG)({"Content-Type":"application/json"}),body:JSON.stringify({...t,source:window.location.host})}),s=await l.json();if(null==s?void 0:s.success){var a;b.oR.success(null==s?void 0:s.message),document.cookie="token=".concat(null==s?void 0:s.token,"; path=/; max-age=86400"),document.cookie="id=".concat(null==s?void 0:null===(a=s.user)||void 0===a?void 0:a.id,"; path=/; max-age=86400"),e.replace("/account/profile"),E()}else b.oR.error(null==s?void 0:s.message)}finally{w(!1)}};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(p(),{children:[(0,l.jsx)("meta",{name:"robots",content:"noindex, nofollow"}),(0,l.jsx)("title",{children:a.auth.login.metaTitle}),(0,l.jsx)("meta",{name:"description",content:a.auth.login.description}),(0,l.jsx)("link",{rel:"canonical",href:N}),y.alternates.map(e=>(0,l.jsx)("link",{rel:"alternate",hrefLang:e.locale,href:e.href},e.locale)),(0,l.jsx)("link",{rel:"alternate",hrefLang:"x-default",href:y.xDefault})]}),(0,l.jsx)(n.A,{children:(0,l.jsx)("section",{className:"mx-auto mt-[96px] max-w-[1680px] px-5 pb-12 pt-8 xs:px-8 md:mt-[118px] md:px-14 md:pb-16 md:pt-10",children:(0,l.jsx)("div",{className:"page-content-shell rounded-[40px] px-5 py-8 xs:px-8 xs:py-10 md:px-10 md:py-12",children:(0,l.jsxs)("div",{className:"relative z-10 grid gap-8 xl:grid-cols-[0.95fr_0.85fr] xl:items-center",children:[(0,l.jsxs)("div",{className:"max-w-3xl",children:[(0,l.jsx)("span",{className:"inline-flex rounded-full bg-[#fff1d6] px-4 py-2 text-[11px] font-bold uppercase tracking-[0.28em] text-[#c2410c]",children:a.auth.login.badge}),(0,l.jsx)("h1",{className:"mt-5 section-display-title font-black text-slate-900",children:a.auth.login.title}),(0,l.jsx)("p",{className:"mt-4 max-w-2xl section-copy text-slate-600",children:a.auth.login.description}),(0,l.jsx)("div",{className:"mt-8 grid gap-4",children:k.map(e=>{let t=e.icon;return(0,l.jsx)("div",{className:"app-shell-card rounded-[28px] border border-white/70 bg-white/88 p-5",children:(0,l.jsxs)("div",{className:"flex items-start gap-4",children:[(0,l.jsx)("span",{className:"inline-flex h-12 w-12 shrink-0 items-center justify-center rounded-[18px] bg-[#eff6ff] text-[#2563eb]",children:(0,l.jsx)(t,{className:"h-5 w-5"})}),(0,l.jsxs)("div",{children:[(0,l.jsx)("h2",{className:"text-xl font-black text-slate-900",children:e.title}),(0,l.jsx)("p",{className:"mt-2 text-sm leading-6 text-slate-500 xs:text-base",children:e.text})]})]})}
1,e.title)})})]}),(0,l.jsxs)("div",{className:"app-shell-card rounded-[34px] border border-[#f7d7ad] bg-white/92 p-5 xs:p-6 md:p-8",children:[(0,l.jsx)("p",{className:"text-[11px] font-bold uppercase tracking-[0.24em] text-[#2563eb]",children:a.auth.login.formEyebrow}),(0,l.jsx)("h2",{className:"mt-3 panel-title font-black text-slate-900",children:a.auth.login.formTitle}),(0,l.jsx)("p",{className:"mt-3 text-sm leading-6 text-slate-500 xs:text-base",children:a.auth.login.formDescription}),(0,l.jsxs)("form",{className:"mt-8 flex flex-col gap-5",onSubmit:C(T),children:[(0,l.jsx)(i.A,{type:"email",label:a.auth.login.email,placeholder:a.auth.login.emailPlaceholder,autoComplete:"email",..._("email",{required:a.auth.validation.emailRequired,pattern:{value:/^[^\s@]+@[^\s@]+\.[^\s@]+$/,message:a.auth.validation.invalidEmail},onChange:e=>A("email",e.target.value)}),error:S.email}),(0,l.jsx)(i.A,{type:"password",label:a.auth.login.password,placeholder:a.auth.login.passwordPlaceholder,autoComplete:"current-password",..._("password",{required:a.auth.validation.passwordRequired,pattern:{value:/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&#])[A-Za-z\d@$!%*?&#]{8,}$/,message:a.auth.validation.passwordRules},onChange:e=>A("password",e.target.value)}),error:S.password}),(0,l.jsx)(s.A,{title:h?a.auth.login.loadingButton:a.auth.login.button,btnType:"primary",showArrow:!0,disabled:h,className:"!mt-1 !h-[56px] !w-full !justify-center"})]}),(0,l.jsxs)("p",{className:"mt-6 text-center text-sm font-semibold text-slate-500 xs:text-base",children:[a.auth.login.noAccount," ",(0,l.jsx)(m.A,{className:"font-bold text-[#c2410c] underline decoration-[#fdba74] underline-offset-4",href:"/register",children:a.auth.login.createAccount})]})]})]})})})})]})}}},e=>{var t=t=>e(e.s=t);e.O(0,[653,446,636,593,792],()=>t(7864)),_N_E=e.O()}]);

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.