PageSourceSearch

https://planeta-avtodv.ru/_next/static/chunks/pages/signin-e7a09f2bced6b9ca.js

js planeta-avtodv.ru collected 2026-10-08 10:00:31 UTC 6,594 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2176],{4758:function(e,s,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/signin",function(){return r(7140)}])},4604:function(e,s,r){"use strict";r.d(s,{Z:function(){return c}});var t=r(4335);let i="/groups",n="/users",a="/items",l="/orders",o="/carts",d="/companies";var c={groups:{index:e=>(0,t.R1)(`${i}`,e),show:(e,s,r)=>(s={...s,id:void 0},(0,t.R1)(`${i}/${e}`,s,r))},users:{index:e=>(0,t.R1)(`${n}`,e),create:e=>(0,t.sg)(`${n}`,e),show:e=>(0,t.R1)(`${n}/${e}`),init:e=>(0,t.sg)("/init"),profile:()=>(0,t.R1)(`${n}/profile`),signIn:e=>(0,t.sg)("/sign_in",e),update:(e,s)=>(0,t.nc)(`${n}/${e}`,s),change_password:e=>(0,t.nc)(`${n}/change_password`,e),remember_password:e=>(0,t.sg)(`${n}/remember_password`,e)},items:{show:e=>(0,t.R1)(`${a}/${e}`),rand:()=>(0,t.R1)(`${a}/rand`),set_favorite:e=>(0,t.sg)(`${a}/${e}/set_favorite`)},orders:{sync:e=>(0,t.sg)(`${l}/sync`,e),init:()=>(0,t.R1)(`${l}/init`),checkOut:e=>(0,t.sg)(`${l}/checkout`,e),index:e=>(0,t.R1)(`${l}`,{page:e}),show:e=>(0,t.R1)(`${l}/${e}`)},search:{index:e=>(0,t.R1)("/search",e)},carts:{index:()=>(0,t.R1)(`${o}`),show:e=>(0,t.R1)(`${o}/${e}`),quote:(e,s)=>(0,t.sg)(`${o}/${e}/quote`,{excludedItemIds:s}),add_item:e=>(0,t.sg)(`${o}/add_item`,e),create_cart:e=>(0,t.sg)(`${o}`,e),move_item:e=>(0,t.sg)([o,"move_item"].join("/"),e),deleteItem:e=>(0,t.sg)([o,"delete_item"].join("/"),e),checkout:e=>(0,t.sg)([o,"checkout"].join("/"),e)},companies:{index:()=>(0,t.R1)(`${d}`),create:e=>(0,t.sg)(d,e),update:(e,s)=>(0,t.nc)([d,e].join("/"),s)}}},5011:function(e,s,r){"use strict";r.d(s,{$:function(){return i}});var t=r(5893);r(7294);let i=({children:e})=>(0,t.jsx)("div",{children:e})},7140:function(e,s,r){"use strict";r.r(s),r.d(s,{default:function(){return k}});var t=r(5893),i=r(7294),n=r(9571),a=r(7533),l=r(6310),o=r(4604),d=r(4184),c=r.n(d),m=r(5167),u=r(4874),h=r(8566),p=r(895),x=r.n(p),g=r(1163),f=r.n(g),w=r(1664),v=r.n(w);let j=l.Ry().shape({email:l.Z_().email("Некорректно введен email").required("Обязательное поле"),password:l.Z_().required("Обязательное поле")});var $=()=>{var e,s;let[r,l]=i.useState(!0),{register:d,handleSubmit:p,watch:g,setError:w,formState:{errors:$}}=(0,n.cI)({resolver:(0,a.X)(j)}),N=async e=>{let s=await o.Z.users.signIn({user:{email:e.email,password:e.password}});console.log(s),s.errors&&(s.errors.email&&w("email",{type:"custom",message:s.errors.email}),s.errors.password&&w("password",{type:"custom",message:s.errors.password})),s.success&&(x().set("token",s.token,{path:"/",domain:"planeta-avtodv.ru",expires:365}),f().push("/"))};return(0,t.jsx)("div",{className:"SignInCard max-w-md m-auto bg-white p-6 drop-shadow-md rounded-sm mt-10",children:(0,t.jsxs)("form",{onSubmit:p(N),className:"space-y-2",children:[(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("label",{htmlFor:"email",className:"font-medium",children:"Email"}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{id:"email",className:c()("input rounded-sm",{"border-red-500 bg-red-50":$.email}),placeholder:"Введите email",...d("email")}),$.email&&(0,t.jsx)("div",{className:"flex justify-center absolute right-1 top-0 h-full items-center",children:(0,t.jsx)(m.Z,{className:"text-red-500  h-5 "})})]}),(0,t.jsx)("p",{className:"text-red-500 h-3 text-xs",children:null===(e=$.email)||void 0===e?void 0:e.message})]})]}),(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("label",{htmlFor:"password",className:"font-medium",children:"Пароль"}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{id:"password",type:r?"password":"input",className:c()("input rounded-sm",{"border-red-500 bg-red-50":$.password}),placeholder:"Введите пароль",...d("password")}),(0,t.jsx)("div",{className:"flex justify-center absolute right-1 top-0 h-full items-center cursor-pointer",onClick:()=>l(!r),children:r?(0,t.jsx)(u.Z,{className:"text-gray-700  h-5 "}):(0,t.jsx)(h.Z,{className:"text-gray-500  h-5 "})})]}),(0,t.jsx)("p",{className:"text-red-500 h-3 text-xs",children:null===(s=$.password)||void 0===s?void 0:s.message})]}
1),(0,t.jsxs)("div",{className:"SignInLinks mt-4 flex justify-between",children:[(0,t.jsx)(v(),{href:"/registration",className:"underline",children:"Зарегистрироваться"}),(0,t.jsx)(v(),{href:"/remember",className:"underline",children:"Забыл пароль"})]})]}),(0,t.jsx)("div",{className:"flex justify-center",children:(0,t.jsx)("button",{type:"submit",className:"rounded-sm px-6 py-3 bg-[#ffc000] hover:bg-[#ffd042] duration-500 w-full",children:"Войти"})})]})})},N=r(5011),b=r(306);let _=()=>{let[e,s]=i.useState("signIn");return(0,t.jsxs)("div",{className:"SignInPage bg-slate-100 min-h-screen overflow-auto",children:[(0,t.jsx)("div",{className:"SignInLogo m-auto flex justify-center pt-5",children:(0,t.jsx)(b.Z,{})}),(0,t.jsx)($,{})]})};_.layout=N.$;var k=_},4874:function(e,s,r){"use strict";var t=r(7294);let i=t.forwardRef(function({title:e,titleId:s,...r},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":s},r),e?t.createElement("title",{id:s},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.036 12.322a1.012 1.012 0 010-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178z"}),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}))});s.Z=i},8566:function(e,s,r){"use strict";var t=r(7294);let i=t.forwardRef(function({title:e,titleId:s,...r},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":s},r),e?t.createElement("title",{id:s},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.98 8.223A10.477 10.477 0 001.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.45 10.45 0 0112 4.5c4.756 0 8.773 3.162 10.065 7.498a10.523 10.523 0 01-4.293 5.774M6.228 6.228L3 3m3.228 3.228l3.65 3.65m7.894 7.894L21 21m-3.228-3.228l-3.65-3.65m0 0a3 3 0 10-4.243-4.243m4.242 4.242L9.88 9.88"}))});s.Z=i}},function(e){e.O(0,[6310,6833,2888,9774,179],function(){return e(e.s=4758)}),_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.