1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5907],{2752:function(e,s,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/registration",function(){return r(7599)}])},4604:function(e,s,r){"use strict";r.d(s,{Z:function(){return o}});var t=r(4335);let a="/groups",i="/users",n="/items",l="/orders",d="/carts",c="/companies";var o={groups:{index:e=>(0,t.R1)(`${a}`,e),show:(e,s,r)=>(s={...s,id:void 0},(0,t.R1)(`${a}/${e}`,s,r))},users:{index:e=>(0,t.R1)(`${i}`,e),create:e=>(0,t.sg)(`${i}`,e),show:e=>(0,t.R1)(`${i}/${e}`),init:e=>(0,t.sg)("/init"),profile:()=>(0,t.R1)(`${i}/profile`),signIn:e=>(0,t.sg)("/sign_in",e),update:(e,s)=>(0,t.nc)(`${i}/${e}`,s),change_password:e=>(0,t.nc)(`${i}/change_password`,e),remember_password:e=>(0,t.sg)(`${i}/remember_password`,e)},items:{show:e=>(0,t.R1)(`${n}/${e}`),rand:()=>(0,t.R1)(`${n}/rand`),set_favorite:e=>(0,t.sg)(`${n}/${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)(`${d}`),show:e=>(0,t.R1)(`${d}/${e}`),quote:(e,s)=>(0,t.sg)(`${d}/${e}/quote`,{excludedItemIds:s}),add_item:e=>(0,t.sg)(`${d}/add_item`,e),create_cart:e=>(0,t.sg)(`${d}`,e),move_item:e=>(0,t.sg)([d,"move_item"].join("/"),e),deleteItem:e=>(0,t.sg)([d,"delete_item"].join("/"),e),checkout:e=>(0,t.sg)([d,"checkout"].join("/"),e)},companies:{index:()=>(0,t.R1)(`${c}`),create:e=>(0,t.sg)(c,e),update:(e,s)=>(0,t.nc)([c,e].join("/"),s)}}},5011:function(e,s,r){"use strict";r.d(s,{$:function(){return a}});var t=r(5893);r(7294);let a=({children:e})=>(0,t.jsx)("div",{children:e})},7599:function(e,s,r){"use strict";r.r(s),r.d(s,{default:function(){return R}});var t=r(5893),a=r(7294),i=r(5011),n=r(9571),l=r(7533),d=r(6310),c=r(4604),o=r(4184),m=r.n(o),u=r(5167),h=r(4874),x=r(8566),p=r(2873),f=r(1664),j=r.n(f),v=r(895),g=r.n(v),w=r(1163),N=r.n(w),b=r(4622);let $=d.Ry().shape({email:d.Z_().email("ÐепÑавилÑнÑй email").required("ÐведиÑе коÑÑеÑнÑй email"),password:d.Z_().required("ÐеобÑ
одимо ввеÑÑи паÑолÑ"),name:d.Z_().required("ÐведиÑе имÑ")});var _=()=>{var e,s,r;let{reload:i}=(0,b.Z)(),[d,o]=a.useState(!0),{register:f,handleSubmit:v,watch:w,setError:_,formState:{errors:k,isSubmitting:y}}=(0,n.cI)({resolver:(0,l.X)($)}),R=async e=>{let s=await c.Z.users.create({user:e});s.errors&&s.errors.email&&_("email",{message:s.errors.email[0]}),s.success&&(g().set("token",s.token,{path:"/",domain:"planeta-avtodv.ru",expires:365}),i(),N().push("/"))};return(0,t.jsxs)("div",{className:"max-w-md m-auto bg-white p-6 drop-shadow-md rounded-sm mt-10",children:[(0,t.jsxs)("form",{onSubmit:v(R),className:"space-y-2",children:[(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("label",{htmlFor:"name",className:"font-medium",children:"ÐмÑ"}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{id:"name",className:m()("input rounded-sm",{"border-red-500 bg-red-50":k.name}),placeholder:"ÐмÑ",...f("name")}),k.name&&(0,t.jsx)("div",{className:"flex justify-center absolute right-1 top-0 h-full items-center",children:(0,t.jsx)(u.Z,{className:"text-red-500 h-5 "})})]}),(0,t.jsx)("p",{className:"text-red-500 h-3 text-xs",children:null===(e=k.name)||void 0===e?void 0:e.message})]})]}),(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:m()("input rounded-sm",{"border-red-500 bg-red-50":k.email}),placeholder:"email",...f("email")}),k.email&&(0,t.jsx)("div",{className:"flex justify-center absolute right-1 top-0 h-full items-center",children:(0,t.jsx)(u.Z,{className:"text-red-500 h-5 "})})]}),(0,t.jsx)("p",{className:"text-red-500 h-3 text-xs",children:null===(s=k.email)||void 0===s?void 0:s.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:d?"password":"input",className:m()("input rounded-sm",{"border-red-500 bg-red-50":k.password}),placeholder:"ÐведиÑе паÑолÑ",...f("password")}),(0,t.jsx)("div",{className:"flex justify-center absolute right-3 top-0 h-full items-center cursor-pointer",onClick:()=>o(!d),children:d?(0,t.jsx)(h.Z,{className:"text-gray-500 h-5 "}):(0,t.jsx)(x.Z,{className:"text-gray-500 h-5 "})})]}),(0,t.jsx)("p",{className:"text-red-500 h-3 text-xs",children:null===(r=k.password)||void 0===r?void 0:r.message})]})]}),(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",disabled:y,children:"РегиÑÑÑаÑиÑ"})})]}),(0,t.jsx)("div",{className:"mt-4 text-right",children:(0,t.jsxs)(j(),{href:"/signin",className:"underline flex items-center",children:[(0,t.jsx)(p.Z,{className:"h-4 w-4"})," Ðазад к авÑоÑизаÑии"]})}),(0,t.jsxs)("div",{className:"bg-gray-100 p-2 mt-2 flex space-x-2 rounded-sm",children:[(0,t.jsx)("div",{className:"flex justify-center items-center",children:(0,t.jsx)(u.Z,{className:"w-6 h-6"})}),(0,t.jsxs)("div",{children:["ÐÐ°Ð¶Ð¸Ð¼Ð°Ñ ÐºÐ½Ð¾Ð¿ÐºÑ Ð ÐµÐ³Ð¸ÑÑÑаÑиÑ, ÐÑ ÑоглаÑаеÑеÑÑ c ÑÑловиÑми ",(0,t.jsx)(j(),{href:"/page/policy",className:"text-blue-700 underline",target:"_blank",children:"полиÑики конÑиденÑиалÑноÑÑи"})]})]})]})},k=r(306);let y=()=>(0,t.jsxs)("div",{className:"bg-slate-100 min-h-screen overflow-auto",children:[(0,t.jsx)("div",{className:"m-auto flex justify-center pt-5",children:(0,t.jsx)(k.Z,{})}),(0,t.jsx)(_,{})]});y.layout=i.$;var R=y},2873:function(e,s,r){"use strict";var t=r(7294);let a=t.forwardRef(function({title:e,titleId:s,...r},a){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:a,"aria-labelledby":s},r),e?t.createElement("title",{id:s},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5L8.25 12l7.5-7.5"}))});s.Z=a},4874:function(e,s,r){"use strict";var t=r(7294);let a=t.forwardRef(function({title:e,titleId:s,...r},a){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:a,"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=a},8566:function(e,s,r){"use strict";var t=r(7294);let a=t.forwardRef(function({title:e,titleId:s,...r},a){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:a,"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=a}},function(e){e.O(0,[6310,6833,2888,9774,179],function(){return e(e.s=2752)}),_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.