PageSourceSearch

https://parkly.ru/_next/static/chunks/2971-b73f84ab1677d40f.js

js parkly.ru collected 2026-10-01 23:58:29 UTC 7,874 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2971],{52971:function(e,n,i){"use strict";i.d(n,{Z:function(){return j}});var a=i(47568),s=i(14924),r=i(26042),t=i(69396),o=i(20414),l=i(85893),d=i(67294),c=i(41664),u=i.n(c),m=i(47465),p=i(11565),g=i(60413),f=i(47271),h=i(32914),v=i(78959),N=i(91215),_=i(32342),b=i(82608),x=i(87185),Z=i.n(x);var A=function(e){var n=e.className,i=void 0===n?"":n,c=e.initPhone,x=e.login,A=void 0===x?function(){}:x,j=e.onSuccess,y=void 0===j?function(){}:j,C=e.addCarApi,R=void 0===C?N.y0:C,S=e.setNameEmailApi,T=void 0===S?N.wP:S,k=e.confirmPhoneApi,w=void 0===k?N.hx:k,E=e.validatePhoneApi,M=void 0===E?N.a$:E,P=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};V((function(n){return(0,r.Z)({},n,e)}))},U=function(e){var n=(e||{}).target||{},i=n.name,a=n.value;P((0,s.Z)({},i,a)),q((function(e){return(0,t.Z)((0,r.Z)({},e),(0,s.Z)({},i,!1))}))},O=(0,d.useState)({step:0,name:"",email:"",carNumber:"",carModel:"",isNameSurNameAdded:!1,isCarAdded:!1}),B=O[0],V=O[1],I=(0,d.useState)({name:!1,email:!1,carNumber:!1,carModel:!1}),L=I[0],q=I[1],D=(0,v.Ty)({validatePhoneApi:M,confirmPhoneApi:w,initPhone:c,onSuccessSendCode:function(){P({step:1})},onSuccess:function(){var e=(0,a.Z)((function(e){var n,i,a,s,r;return(0,o.__generator)(this,(function(t){switch(t.label){case 0:return n=e.validatedPhone,i=e.token,a=e.type,s=e.userId,[4,A({tel:n,token:i,userId:s})];case 1:if(null===(r=t.sent())||void 0===r?void 0:r.success){if("registration"===a)return P({step:2}),[2];y()}return[2]}}
1))}));return function(n){return e.apply(this,arguments)}}()}),H=D.fields,z=D.errors,G=D.timerValue,Q=D.isCodeCheckLoading,F=D.validatedPhone,J=D.onChange,K=D.onSendCode,W=D.onSendAgain,$=(0,d.useRef)(null);(0,v.Dz)((function(){1===B.step&&($||{}).current&&$.current.focus()}),[B.step]);var X=[Z().container,i||""].join(" "),Y=B.step,ee=B.name,ne=B.email,ie=B.carNumber,ae=B.carModel;function se(){return se=(0,a.Z)((function(e){var n,i,a,s,l,d,c,u,m,p,g,f,h,N,_,x,Z;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:return e.preventDefault(),n=(0,v.Qs)(ee),i=(0,v.d4)(ne),a=(0,v.UT)(ie),s=(0,v.mS)(ae),n&&i&&a&&s?(d=(l=B||{}).isNameSurNameAdded,c=l.isCarAdded,d?[3,2]:[4,T({name:ee,email:ne})]):(q((function(e){return(0,t.Z)((0,r.Z)({},e),{name:!n,email:!i,carModel:!s,carNumber:!a})})),[2]);case 1:u=o.sent()||{},m=u.success,p=u.error,d=!!m,!m&&p&&(g=(p||{}).errors,f=void 0===g?{}:g,q((function(e){return(0,r.Z)({},e,f)}))),o.label=2;case 2:return c?[3,4]:[4,R({carNumber:ie,carModel:ae})];case 3:h=o.sent()||{},N=h.carId,_=h.error,!(c=!!N)&&_&&(x=(_||{}).errors,Z=void 0===x?{}:x,q((function(e){return(0,r.Z)({},e,Z)}))),o.label=4;case 4:return d&&c?(y(),(0,b.gp)()):P({isNameSurNameAdded:d,isCarAdded:c}),[2]}}))})),se.apply(this,arguments)}return(0,l.jsx)("div",{className:X,children:(0,l.jsxs)("div",{className:Z().subContainer,children:[(0,l.jsx)(u(),{href:"/",children:(0,l.jsx)("a",{children:(0,l.jsx)(f.Z,{className:Z().logo,fill:"#004BF6"})})}),0===Y&&(0,l.jsxs)("form",{className:Z().form,onSubmit:K,noValidate:!0,children:[(0,l.jsx)(p.Z,{className:Z().title,children:"\u0412\u0445\u043e\u0434 \u0438 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f"}),(0,l.jsx)(p.Z,{className:Z().subTitle,children:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043d\u043e\u043c\u0435\u0440 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430"}),(0,l.jsx)(g.Z,{className:Z().input,viewType:["paintedOver","focusUnderlined"],name:"phone",value:H.phone,type:"tel",placeholder:"\u041d\u043e\u043c\u0435\u0440 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430",isError:z.phone,onChange:J}),(0,l.jsx)(m.Z,{className:Z().submitBtn,type:"submit",children:"\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c"}),(0,l.jsxs)(p.Z,{className:Z().condition,children:[" \u041f\u0440\u0438 \u0432\u0445\u043e\u0434\u0435 \u044f \u0441\u043e\u0433\u043b\u0430\u0448\u0430\u044e\u0441\u044c \u0441 ",(0,l.jsx)(h.Z,{className:Z().link,href:_.yy.termsOfUse,children:"\u0443\u0441\u043b\u043e\u0432\u0438\u044f\u043c\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f Parkly"}),", \u0430 \u0442\u0430\u043a\u0436\u0435 \u0441 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u043e\u0439 \u043c\u043e\u0435\u0439 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043d\u0430 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445 ",(0,l.jsx)(h.Z,{className:Z().link,href:_.yy.privacy,children:"\u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0438 \u043e \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439"})]})]}),1===Y&&(0,l.jsxs)("form",{className:Z().form,onSubmit:W,noValidate:!0,children:[(0,l.jsx)(p.Z,{className:Z().title,children:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043a\u043e\u0434"}),(0,l.jsx)(p.Z,{className:Z().subTitle,children:"\u041a\u043e\u0434 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d \u043d\u0430 \u043d\u043e\u043c\u0435\u0440 ".concat((0,v.un)(F))}),(0,l.jsx)(g.Z,{inputRef:$,className:Z().input,name:"code",value:H.code,type:"number",viewType:["paintedOver","pinCode","focusUnderlined"],isError:z.code,onChange:J}),(0,l.jsx)(m.Z,{className:[Z().submitBtn,Z().sendCodeAgainBtn].join(" "),disabled:G>0||Q,isLoading:Q,type:"submit",children:G>0?"\u0417\u0430\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 00:".concat(G<10?"0".concat(G):G):"\u0417\u0430\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u0435\u0449\u0451 \u0440\u0430\u0437"})]}),2===Y&&(0,l.jsxs)("form",{className:Z().formReg,onSubmit:function(e){return se.apply(this,arguments)},noValidate:!0,children:[(0,l.jsx)(p.Z,{className:Z().title,children:"\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043e \u0432\u0430\u0441"}
1),(0,l.jsx)(p.Z,{className:Z().subTitleReg,children:"\u041b\u0438\u0447\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435"}),(0,l.jsx)(g.Z,{className:Z().input,viewType:["paintedOver","focusUnderlined"],name:"name",value:ee,type:"text",label:"\u0418\u043c\u044f \u0438 \u0444\u0430\u043c\u0438\u043b\u0438\u044f",min:2,max:30,isError:(L||{}).name,disabled:B.isNameSurNameAdded,onChange:U}),(0,l.jsx)(g.Z,{className:Z().input,viewType:["paintedOver","focusUnderlined"],name:"email",value:ne,type:"email",label:"Email",isError:(L||{}).email,disabled:B.isNameSurNameAdded,onChange:U}),(0,l.jsx)(p.Z,{className:Z().subTitleReg,children:"\u0410\u0432\u0442\u043e\u043c\u043e\u0431\u0438\u043b\u044c"}),(0,l.jsx)(g.Z,{className:Z().input,viewType:["paintedOver","focusUnderlined"],name:"carNumber",value:ie,type:"text",label:"\u0413\u043e\u0441\u043d\u043e\u043c\u0435\u0440",isError:(L||{}).carNumber,disabled:B.isCarAdded,onChange:U}),(0,l.jsx)(g.Z,{className:Z().input,viewType:["paintedOver","focusUnderlined"],name:"carModel",value:ae,type:"text",label:"\u041c\u0430\u0440\u043a\u0430 \u0438 \u043c\u043e\u0434\u0435\u043b\u044c",isError:(L||{}).carModel,disabled:B.isCarAdded,onChange:U}),(0,l.jsx)(m.Z,{className:Z().submitBtn,type:"submit",children:"\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c"})]})]})})},j=A},87185:function(e){e.exports={container:"loginAndRegistration_container__2u6ql",subContainer:"loginAndRegistration_subContainer__rOgc0",logo:"loginAndRegistration_logo__MJaVP",form:"loginAndRegistration_form__49QGw",formReg:"loginAndRegistration_formReg__gqzKi",input:"loginAndRegistration_input__CjUtZ",title:"loginAndRegistration_title__LHIVx",subTitle:"loginAndRegistration_subTitle__2E4OO",subTitleReg:"loginAndRegistration_subTitleReg__aURMy",submitBtn:"loginAndRegistration_submitBtn__qDG7M",sendCodeAgainBtn:"loginAndRegistration_sendCodeAgainBtn__WnHU_",condition:"loginAndRegistration_condition__MLN5N",link:"loginAndRegistration_link__THZCm"}}}]);

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.