1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9546],{829:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/remember",function(){return t(4250)}])},4604:function(e,s,t){"use strict";t.d(s,{Z:function(){return o}});var r=t(4335);let i="/groups",a="/users",n="/items",l="/orders",c="/carts",d="/companies";var o={groups:{index:e=>(0,r.R1)(`${i}`,e),show:(e,s,t)=>(s={...s,id:void 0},(0,r.R1)(`${i}/${e}`,s,t))},users:{index:e=>(0,r.R1)(`${a}`,e),create:e=>(0,r.sg)(`${a}`,e),show:e=>(0,r.R1)(`${a}/${e}`),init:e=>(0,r.sg)("/init"),profile:()=>(0,r.R1)(`${a}/profile`),signIn:e=>(0,r.sg)("/sign_in",e),update:(e,s)=>(0,r.nc)(`${a}/${e}`,s),change_password:e=>(0,r.nc)(`${a}/change_password`,e),remember_password:e=>(0,r.sg)(`${a}/remember_password`,e)},items:{show:e=>(0,r.R1)(`${n}/${e}`),rand:()=>(0,r.R1)(`${n}/rand`),set_favorite:e=>(0,r.sg)(`${n}/${e}/set_favorite`)},orders:{sync:e=>(0,r.sg)(`${l}/sync`,e),init:()=>(0,r.R1)(`${l}/init`),checkOut:e=>(0,r.sg)(`${l}/checkout`,e),index:e=>(0,r.R1)(`${l}`,{page:e}),show:e=>(0,r.R1)(`${l}/${e}`)},search:{index:e=>(0,r.R1)("/search",e)},carts:{index:()=>(0,r.R1)(`${c}`),show:e=>(0,r.R1)(`${c}/${e}`),quote:(e,s)=>(0,r.sg)(`${c}/${e}/quote`,{excludedItemIds:s}),add_item:e=>(0,r.sg)(`${c}/add_item`,e),create_cart:e=>(0,r.sg)(`${c}`,e),move_item:e=>(0,r.sg)([c,"move_item"].join("/"),e),deleteItem:e=>(0,r.sg)([c,"delete_item"].join("/"),e),checkout:e=>(0,r.sg)([c,"checkout"].join("/"),e)},companies:{index:()=>(0,r.R1)(`${d}`),create:e=>(0,r.sg)(d,e),update:(e,s)=>(0,r.nc)([d,e].join("/"),s)}}},5011:function(e,s,t){"use strict";t.d(s,{$:function(){return i}});var r=t(5893);t(7294);let i=({children:e})=>(0,r.jsx)("div",{children:e})},4250:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return $}});var r=t(5893),i=t(7294),a=t(5011),n=t(9571),l=t(7533),c=t(6310),d=t(4604),o=t(4184),m=t.n(o),u=t(1429),h=t(5167),x=t(2873),f=t(1664),p=t.n(f);let g=c.Ry().shape({email:c.Z_().email("ÐекоÑÑекÑно введен email").required("ÐбÑзаÑелÑное поле")});var v=()=>{var e;let[s,t]=i.useState(!1),{register:a,handleSubmit:c,watch:o,setError:f,formState:{errors:v}}=(0,n.cI)({resolver:(0,l.X)(g)}),j=async e=>{let s=await d.Z.users.remember_password({email:e.email});s.success&&t(!0),s.errors&&f("email",{type:"custom",message:s.errors.email})};return(0,r.jsxs)("div",{className:"max-w-md m-auto bg-white p-6 drop-shadow-md rounded-sm mt-10",children:[s&&(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)("div",{children:(0,r.jsx)(u.Z,{className:"w-24 stroke-[#5fa800] m-auto"})}),(0,r.jsx)("div",{className:"text-center",children:"ÐиÑÑмо c инÑÑÑÑкÑией оÑпÑавлено на поÑÑовÑй ÑÑик"}),(0,r.jsxs)("div",{className:"bg-gray-100 rounded-md p-2 text-xs flex items-center space-x-2",children:[(0,r.jsx)(h.Z,{className:"h-5 w-5 stroke-red-500"}),(0,r.jsx)("span",{children:"ÐÑли Ð²Ñ Ð½Ðµ полÑÑили пиÑÑмо, пÑовеÑÑÑе Ð¿Ð°Ð¿ÐºÑ Ð¡ÐÐÐ."})]})]}),!s&&(0,r.jsxs)("form",{onSubmit:c(j),className:"space-y-3",children:[(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)("label",{htmlFor:"email",className:"font-medium",children:"ÐведиÑе email"}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("input",{id:"email",className:m()("input rounded-sm",{"border-red-500 bg-red-50":v.email}),placeholder:"ÐведиÑе email",...a("email")}),v.email&&(0,r.jsx)("div",{className:"flex justify-center absolute right-1 top-0 h-full items-center",children:(0,r.jsx)(h.Z,{className:"text-red-500 h-5 "})})]}),(0,r.jsx)("p",{className:"text-red-500 h-3 text-xs font-medium",children:null===(e=v.email)||void 0===e?void 0:e.message})]})]}),(0,r.jsx)("div",{className:"flex justify-center",children:(0,r.jsx)("button",{type:"submit",className:"rounded-sm px-6 py-3 bg-[#ffc000] hover:bg-[#ffd042] duration-500 w-full",children:"ÐоÑÑÑановиÑÑ Ð¿Ð°ÑолÑ"})})]}),(0,r.jsx)("div",{className:"mt-4 text-right",children:(0,r.jsxs)(p(),{href:"/signin",className:"underline flex items-center",children:[(0,r.jsx)(x.Z,{className:"h-4 w-4"})," Ðазад к авÑоÑизаÑии"]})})]})},j=t(306);let w=()=>(0,r.jsxs)("div",{className:"bg-slate-100 min-h-screen overflow-auto",children:[(0,r.jsx)("div",{className:"m-auto flex justify-center pt-5",children:(0,r.jsx)(j.Z,{})}),(0,r.jsx)(v,{})]});w.layout=a.$;var $=w},1429:function(e,s,t){"use strict";var r=t(7294);let i=r.forwardRef(function({title:e,titleId:s,...t},i){return r.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},t),e?r.createElement("title",{id:s},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))});s.Z=i},2873:function(e,s,t){"use strict";var r=t(7294);let i=r.forwardRef(function({title:e,titleId:s,...t},i){return r.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},t),e?r.createElement("title",{id:s},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5L8.25 12l7.5-7.5"}))});s.Z=i}},function(e){e.O(0,[6310,6833,2888,9774,179],function(){return e(e.s=829)}),_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.