1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[725],{656:(e,t,a)=>{Promise.resolve().then(a.bind(a,2880))},2880:(e,t,a)=>{"use strict";a.d(t,{LoginForm:()=>h});var s=a(1217),r=a(9093),n=a(7914),i=a(5998),l=a(3273),u=a(9773),o=a(3218),d=a(7410),c=a(4437);function h(e){let{grizti:t}=e,[a,h]=(0,r.useState)(""),[p,m]=(0,r.useState)(""),[f,b]=(0,r.useState)(null),[g,v]=(0,r.useState)(!1),x=(0,n.useRouter)(),y=async e=>{e.preventDefault(),b(null),v(!0);try{var s;let{error:e}=await o.y.signIn.email({email:a.trim(),password:p});if(e){b((0,i.C)(e,"signIn")),v(!1);return}x.push(null!=(s=(0,d.v3)(t))?s:"/"),x.refresh()}catch(e){b("Nepavyko susisiekti su serveriu. Patikrinkite ryšį."),v(!1)}};return(0,s.jsxs)("form",{onSubmit:y,children:[(0,s.jsx)(l.lR,{message:f}),(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)(l.dO,{label:"El. paÅ¡tas arba vartotojo vardas",children:(0,s.jsx)(u.k,{type:"text",autoComplete:"username",autoCapitalize:"none",spellCheck:!1,required:!0,value:a,onChange:e=>h(e.target.value),placeholder:"[email protected] arba vardas"})}),(0,s.jsx)(l.dO,{label:"Slaptažodis",hint:(0,s.jsx)("a",{href:(0,d.VF)("/atstatyti",(0,d.v3)(t)),className:"font-semibold",style:{color:c.T.heat},children:"PamirÅ¡ote?"}),children:(0,s.jsx)(u.y,{autoComplete:"current-password",required:!0,value:p,onChange:e=>m(e.target.value),placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢â¢â¢â¢â¢"})})]}),(0,s.jsxs)("button",{type:"submit",disabled:g,"aria-busy":g,className:"press mt-5 flex w-full items-center justify-center gap-2 rounded-lg py-3 text-[14px] font-bold text-white disabled:opacity-50",style:{background:c.T.ink},children:[g&&(0,s.jsx)("span",{"aria-hidden":!0,className:"animate-spin-slow h-3.5 w-3.5 rounded-full border-2 border-white/30 border-t-white"}),g?"Jungiamasiâ¦":"Prisijungti"]})]})}},7410:(e,t,a)=>{"use strict";function s(e){return"string"!=typeof e||e.length>500||!e.startsWith("/")||e.startsWith("//")||e.startsWith("/\\")?
1null:e}function r(e){return"string"==typeof e&&/^\/pradek\?code=[0-9A-Z]+$/.test(e)}function n(e,t){return t?"".concat(e,"?grizti=").concat(encodeURIComponent(t)):e}a.d(t,{TF:()=>r,VF:()=>n,v3:()=>s})}},e=>{e.O(0,[1183,2932,6785,7217,7358],()=>e(e.s=656)),_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.