PageSourceSearch

https://pravoved.ru/_next/static/chunks/1791-168de4ac445a470b.js

js pravoved.ru collected 2026-10-01 11:31:24 UTC 16,702 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1791],{3526:(e,r,t)=>{"use strict";t.d(r,{A:()=>_});var a=t(41240),s=t(10693),l=t(65544),n=t(91444),o=t(60695),c=t(40363),i=t(36382),u=t(18141),d=t.n(u);let m=({title:e="Загружаем данные",description:r="Сервис отвечает медленнее обычного. Страница обновится сама, как только данные придут.",probe:t,actions:s})=>{let l=(0,o.useRouter)(),[u,m]=(0,n.useState)(0),[_,h]=(0,n.useState)(!1),[p,x]=(0,n.useState)(!1),j=(0,n.useRef)(null),b=(0,n.useRef)(!1),f=(0,n.useRef)(null),v=(0,n.useRef)(t);v.current=t;let g=(0,n.useCallback)(()=>{h(!0),l.replace(l.asPath,void 0,{scroll:!1})},[l]),N=(0,n.useCallback)(async()=>{if(!b.current)try{f.current||(f.current=new c.G);let e=v.current;await (e?e(f.current):f.current.page.layout()),b.current||g()}catch(e){console.warn("UpstreamUnavailable probe failed",e?.message),b.current||m(e=>e+1)}},[g]);(0,n.useEffect)(()=>u>=15?void x(!0):(j.current=setTimeout(N,Math.min((0,i.zA)(u),3e4)),()=>clearTimeout(j.current)),[u,N]),(0,n.useEffect)(()=>(b.current=!1,()=>{b.current=!0,clearTimeout(j.current)}),[]);let w=!p||_,y="function"==typeof s?.questionForm?.setVisible;return(0,a.jsxs)("div",{className:d().root,role:"status","aria-live":"polite","aria-busy":w,children:[w&&(0,a.jsx)("span",{className:d().spinner,"aria-hidden":"true"}),(0,a.jsx)("h1",{className:d().title,children:p?"Не удалось загрузить данные":e}),(0,a.jsx)("p",{className:d().text,children:p?"Сервис пока не отвечает. Попробуйте обновить страницу или зайти позже.":r}),(0,a.jsx)("button",{type:"button",className:d().button,onClick:()=>{clearTimeout(j.current),x(!1),m(0),N()},disabled:_,children:_?"Загружаем…":"Попробовать сейчас"}),y&&(0,a.jsxs)("div",{className:d().cta,children:[(0,a.jsx)("p",{className:d().ctaText,children:"Если вы торопитесь — напишите свой вопрос уже сейчас."}),(0,a.jsx)("button",{type:"button",className:d().ctaButton,onClick:()=>s.questionForm.setVisible(!0),children:"Задать вопрос"})]})]})},_=({seoTitle:e="Загружаем данные — Правовед.ru",title:r,description:t,probe:n,...o})=>(0,a.jsxs)(s.n,{...o,color:"white",children:[(0,a.jsx)(l.PageHead,{seo:{title:e,description:"Сейчас мы не смогли загрузить данные. Страница обновится сама, как только они придут.",noindex:!0}}),(0,a.jsx)(m,{title:r,description:t,probe:n,actions:o.actions})]})},18141:e=>{e.exports={root:"UpstreamUnavailable_root__NmxBM",spinner:"UpstreamUnavailable_spinner__G5uVo",spin:"UpstreamUnavailable_spin__PFrNl",title:"UpstreamUnavailable_title__t8Zeq",text:"UpstreamUnavailable_text__bgoQK",button:"UpstreamUnavailable_button__8TI_a",cta:"UpstreamUnavailable_cta__5F1Kq",ctaText:"UpstreamUnavailable_ctaText__QBjjm",ctaButton:"UpstreamUnavailable_ctaButton__xMo_0"}},20193:e=>{e.exports={root:"Error_root__7ezD3",code:"Error_code__ZSGPe",text:"Error_text__7UcBn",link:"Error_link__DDFDx",icon:"Error_icon__x3pRI"}},22509:(e,r,t)=>{"use strict";t.d(r,{_:()=>a});let a=({clearTimeout:e=e=>window.clearTimeout(e),replace:r=e=>window.location.replace(e),setTimeout:t=(e,r)=>window.setTimeout(e,r)}={})=>{let a=!1,s=0,l=null,n=()=>{null!==l&&(e(l),l=null)},o=e=>a&&e===s;return{activate(){a=!0,s+=1,n()},beginRequest:()=>s+=1,cancelCurrent(){s+=1,n()},dispose(){a=!1,s+=1,n()},isCurrent:o,schedule:(e,a,s=5e3)=>!!o(e)&&(n(),l=t(()=>{l=null,o(e)&&r(a)},s),!0)}}},24635:(e,r,t)=>{"use strict";t.d(r,{$:()=>n});var a=t(91444),s=t(9531),l=t(51736);let n=({userId:e,consentDocumentVersion:r,anonymousDefault:t=!0})=>{let[n,o]=(0,a.useState)(!1);return[e?!n&&(0,s.y)(r,l.i.client):t,()=>o(!0)]}},25815:(e,r,t)=>{"use strict";t.d(r,{A:()=>o});var a=t(41240),s=t(91444),l=t(40769),n=t.n(l);let o=s.memo(()=>(0,a.jsx)("div",{className:n().root,children:(0,a.jsx)("span",{className:n().dot})}))},34070:(e,r,t)=>{"use strict";t.d(r,{$J:()=>u,Fc:()=>m,JV:()=>p,Nh:()=>d,Px:()=>c,Re:()=>n,U4:()=>_,Uh:()=>a,_n:()=>i,c7:()=>l,uH:()=>s});let a=3,s=e=>`/lawyer/${e}/blog/`,l=e=>{let r=e?.hosts?.root;return("string"==typeof r&&r?r:"https://pravoved.ru").replace(/\/+$/,"")},n=(e,r)=>`${l({hosts:{root:e}})}${r||"/"}`,o=e=>{if(null==e||""===e)return null;let r=Number(e),t=new Date(Number.isFinite(r)?r>0x2540be3ff?r:1e3*r:e);return Number.isNaN(t.getTime())?null:t},c=e=>{let r=o(e);return r?r.toISOString():null},i=e=>{let r=o(e);return r?new Intl.DateTimeFormat("ru-RU",{day:"numeric",month:"long",year:"numeric",timeZone:"Europe/Moscow"}).format(r):null},u=(e,r=Date.now())=>
1{let t=o(e);return!!t&&t.getTime()>r},d=(e={})=>[e.surname,e.name,e.lastname].filter(Boolean).join(" ")||"Юрист Правовед.RU",m=(e=[],r=1)=>(Array.isArray(e)?e:[]).flatMap(e=>[{...e,depth:e.depth||r},...m(e.children||[],(e.depth||r)+1)]),_=(e={})=>Number(e.depth||1)<a,h=e=>!!e&&"object"==typeof e&&!Array.isArray(e),p=e=>{let r=Number(e?.response?.status)||0,t=e?.response?.data,a={};h(t?.errors)&&Object.keys(t.errors).forEach(e=>{let r=t.errors[e];a[e]=Array.isArray(r)?r.join(" "):String(r)});let s=Object.values(a),l=413===r&&!s.length&&!h(t);return{status:r,message:s[0]||"string"==typeof t?.message&&t.message||(l?"Файл слишком большой. Уменьшите его и попробуйте ещё раз.":"Не удалось сохранить изменения. Попробуйте ещё раз."),fields:a}}},40769:e=>{e.exports={root:"DotLoader_root__gSzCD",dot:"DotLoader_dot__rGmgH",flashing:"DotLoader_flashing__ZDEOs"}},47040:(e,r,t)=>{"use strict";t.d(r,{A:()=>N});var a=t(41240),s=t(58519),l=t(65353);t(69129);var n=t(72403),o=t(91444),c=t(53385),i=t(31003),u=t.n(i),d=t(7294),m=t(74729),_=t(58521),h=t(90191),p=t(94764),x=t.n(p),j=t(20193),b=t.n(j);let f={400:{text:"Запрос не может быть обработан из-за синтаксической ошибки."},401:{text:"Для перехода на запрашиваемую страницу вам необходимо авторизоваться на сайте."},403:{text:"У вас нет прав просматривать эту страницу."},404:{text:"К сожалению, запрошенная вами страница не найдена."},408:{text:"Ваш браузер не отправил информацию на сервер за отведенное время."},500:{text:"Запрос не может быть обработан из-за внутренней ошибки."},503:{text:"Сервис временно недоступен. Пожалуйста, попробуйте ещё раз позже."}},v={text:"Неизвестная ошибка. Обратитесь в техподдержку."},g={error:({actions:e,asyncActions:r,children:t,color:s,config:l={},footer:n={},header:i={},login:p={},user:j={id:0},authState:b})=>{let[f,v]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{v(!0)},[]),(0,a.jsxs)("div",{className:u()(x().root,x()[s]),children:[f&&(0,h.aC)(b)&&c.createPortal((0,a.jsx)(_.A,{actions:e,asyncActions:r,config:l,user:j,...p}),document.body),(0,a.jsx)(d.Y,{actions:e,asyncActions:r,config:l,...i,authState:b,user:j}),(0,a.jsx)("main",{children:t}),(0,a.jsx)(m.w,{config:l,...n})]})},plain:({children:e})=>(0,a.jsx)(a.Fragment,{children:e})},N=(e={})=>{let{status:r}=e.error||{},{text:t}=f[r]||v,{layout:o="error"}=e,c=g[o]||g.plain;return(0,a.jsx)(c,{...e,children:(0,a.jsxs)("div",{className:b().root,children:[r&&(0,a.jsxs)("div",{className:b().code,children:["Ошибка ",r]}),(0,a.jsx)("div",{className:b().text,children:t}),(0,a.jsx)(s.default,{legacyBehavior:!0,href:"/",children:(0,a.jsx)("a",{className:b().link,children:"Вернуться на главную страницу"})}),(0,a.jsx)(l.I,{className:b().icon,icon:n.A})]})})}},55454:(e,r,t)=>{"use strict";t.d(r,{A:()=>C});var a=t(41240),s=t(91444),l=t(31003),n=t.n(l),o=t(95068);t(69129),t(91489);var c=t(25744);t(51251);var i=t(19742);t(33767);var u=t(39051);t(27785);var d=t(30643),m=t(11276),_=t(22252),h=t(25815),p=t(72896),x=t(42898),j=t(40363),b=t(94482),f=t(24635),v=t(51736),g=t(90191),N=t(22509),w=t(83267),y=t.n(w);let F=e=>0!==e.length,k={text:{validators:[F,e=>e.length>9],controls:{},errors:{},formData:{}},email:{validators:[F,e=>/^[0-9a-zA-Z\-_\.\+]+@.+\..+$/.test(e)],controls:{password:!1},errors:{password:!1},formData:{password:""}},password:{validators:[F],controls:{},errors:{},formData:{}}},C=s.memo(({lawyerId:e,user:r,onClose:t,onAuthenticate:l,onSuccess:w,onTextAdd:F,onEmailAdd:C,onPasswordAdd:U})=>{let[E,D]=(0,f.$)({userId:r?.id,consentDocumentVersion:r?.consentDocumentVersion}),[S,L]=(0,s.useState)({text:!1,email:!1,password:!1}
1),[A,T]=(0,s.useState)({text:"",email:"",password:""}),[R,B]=(0,s.useState)({text:!0,email:!0,password:!1}),[I,q]=(0,s.useState)(!1),[V,O]=(0,s.useState)(!1),[P,$]=(0,s.useState)(!1),[z,M]=(0,s.useState)(!1),[Z,G]=(0,s.useState)(!1),[H,K]=(0,s.useState)(!1),[J,Y]=(0,s.useState)(""),Q=(0,s.useContext)(x.cy),X=(0,s.useRef)(null),W=(0,b.Y)(),ee=(0,s.useRef)(!1),er=(0,s.useRef)(0),et=(0,s.useRef)(!1);null===X.current&&(X.current=(0,N._)()),(0,s.useEffect)(()=>(X.current.activate(),()=>X.current.dispose()),[]);let ea=(0,s.useCallback)(()=>{X.current.cancelCurrent(),er.current+=1,t?.()},[t]),es=(0,s.useCallback)(()=>{F&&A.text&&F()},[A]),el=(0,s.useCallback)(()=>{C&&A.email&&C()},[A]),en=(0,s.useCallback)(()=>{U&&A.password&&U()},[A]),eo=(0,s.useCallback)(()=>{M(!z)},[z]),ec=(0,s.useCallback)(()=>{P||I||($(!0),(0,j.F)().user.restore({loginType:"email",login:A.email}).then(()=>{O(!0),$(!1)}))},[A,P,I]),ei=(0,s.useCallback)((e,r)=>{er.current+=1,T({...A,...k[r].formData,[r]:e}),L({...S,...k[r].errors,[r]:!1}),B({...R,...k[r].controls})}
1,[A,S,R]),eu=(0,s.useCallback)(r=>{if(r.preventDefault(),I||P||ee.current)return;if(E&&!Z)return void K("Подтвердите согласие на обработку персональных данных");let t=Object.entries(k).filter(([e])=>R[e]).reduce((e,[r,{validators:t}])=>({...e,[r]:t.some(e=>!e(A[r].trim()))}),{}),a=Object.values(t).every(e=>!e);if(L(t),a){ee.current=!0;let r=X.current.beginRequest();q(!0),K(!1),(0,j.F)().lawyers.lead({lawyerId:e,...A,personal_data_consent:"1"}).then(async({redirectUrl:e,access_token:t,refresh_token:a,errors:s})=>{if(E&&W({sourceUrl:window.location.href,elementId:v.V.client,expectedDocumentVersion:v.i.client,email:A.email}).then(D).catch(()=>{}),X.current.isCurrent(r))if(s&&s.length>0)switch(q(!1),s[0]){case"textFail":L({...s,text:!0});break;case"emailFail":L({...s,email:!0});break;case"passwordFail":L({...s,password:"Неправильный пароль"});break;case"emailExistFail":B({...R,password:!0});break;default:Y("error")}else e?(Q.signIn({accessToken:t,refreshToken:a}),await (0,g.Rd)({accessToken:t,authenticate:l,isCurrent:()=>X.current.isCurrent(r),onAuthenticated:()=>{q(!1),Y("success"),X.current.schedule(r,e),w?.()},onFailure:e=>{q(!1),X.current.cancelCurrent(),Y(e===g.H1.GUEST?"authRequired":"authUnavailable")}})):(q(!1),Y("error"))}).catch(()=>{X.current.isCurrent(r)&&(q(!1),Y("error"))}).finally(()=>{ee.current=!1})}},[R,A,I,P,Z,E,D]);return(0,a.jsxs)("form",{className:y().root,children:[(0,a.jsx)("button",{type:"button",className:y().close,"data-testid":"lawyer-lead-close",onClick:ea,"aria-label":"Закрыть консультацию",children:(0,a.jsx)(p.B,{className:y().closeIcon,src:_.A})}),!J&&(0,a.jsxs)("div",{className:y().main,children:[(0,a.jsx)("span",{className:y().title,children:"Консультация в чате"}),(0,a.jsx)("div",{className:y().control,children:(0,a.jsx)(c.Textarea,{className:y().textarea,id:"lawyer_lead_text",name:"text",label:"Кратко о проблеме",value:A.text,error:S.text,onBlur:es,onChange:ei,focusOnMount:!0})}),(0,a.jsxs)("div",{className:y().control,children:[(0,a.jsx)("label",{htmlFor:"lawyer_lead_email",children:"Для оповещения вас об ответах юриста и регистрации учетной записи."}),(0,a.jsx)(o.Input,{id:"lawyer_lead_email",name:"email",label:"Ваш E-mail",value:A.email,error:S.email,onBlur:el,onChange:ei}),(0,a.jsx)("span",{className:y().helper,children:"Мы нигде не публикуем вашу почту и гарантируем ее приватность"})]}),R.password&&(0,a.jsxs)("div",{className:y().control,children:[(0,a.jsx)("label",{htmlFor:"lawyer_lead_password",children:"Пользователь с таким e-mail уже зарегистрирован, введите пароль от вашего аккаунта на Правовед.ru"}),(0,a.jsxs)("div",{className:n()(y().field,{[y().error]:S.password}),children:[(0,a.jsx)(o.Input,{id:"lawyer_lead_password",name:"password",className:y().input,type:z?"text":"password",label:"Пароль",value:A.password,error:S.password,onBlur:en,onChange:ei}),(0,a.jsx)("div",{className:y().toggle,onClick:eo,children:(0,a.jsx)(p.B,{src:z?m.A:d.A})})]}),(0,a.jsxs)("div",{className:n()(y().action,{[y().disabled]:P}),children:[!V&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("a",{onClick:ec,href:"#restore",children:"Забыли пароль?"}),P&&(0,a.jsx)(h.A,{})]}),V&&(0,a.jsx)("p",{children:"Вам на почту выслано письмо для восстановления пароля"})]})]}),(0,a.jsx)("div",{}),(0,a.jsxs)("div",{className:y().control,children:[E&&(0,a.jsx)(u.CheckBox,{id:"lawyer
1-lead-personal-data-consent",name:"personalDataConsent",label:(0,a.jsxs)("span",{className:y().helper,children:["Я даю"," ",(0,a.jsx)("a",{href:"/policies/question-form-consent/",target:"_blank",rel:"noreferrer",children:"согласие на обработку моих персональных данных"}),", принимаю условия"," ",(0,a.jsx)("a",{href:"/policies/terms/",target:"_blank",rel:"noreferrer",children:"Пользовательского соглашения"}),", подтверждаю, что ознакомлен(а) с"," ",(0,a.jsx)("a",{href:"/policies/personal-data-processing/",target:"_blank",rel:"noreferrer",children:"Политикой в области обработки и защиты персональных данных"}),"."]}),value:Z,onChange:e=>{er.current+=1,et.current=e,G(e),K(!1)}}),H&&(0,a.jsx)("span",{className:y().consentError,children:H}),(0,a.jsx)(i.Button,{className:y().submit,pending:I,onClick:eu,size:"large",children:"Спросить в чате"}),(0,a.jsx)("span",{className:y().helper,children:"После отправки сообщения переведем вас в чат с юристом, который ответит, когда будет свободен."})]})]}),"error"===J&&(0,a.jsxs)("div",{className:n()(y().message,y().error),children:[(0,a.jsx)("span",{children:"Произошла ошибка!"}),(0,a.jsx)("p",{children:"Пожалуйста, обратитесь в техподдержку."})]}),"success"===J&&(0,a.jsxs)("div",{className:n()(y().message,y().success),children:[(0,a.jsx)("span",{children:"Спасибо за заявку!"}),(0,a.jsx)("p",{children:"Сейчас вы будете перенаправлены в чат."})]}),"authRequired"===J&&(0,a.jsxs)("div",{className:n()(y().message,y().error),children:[(0,a.jsx)("span",{children:"Нужно войти в аккаунт"}),(0,a.jsx)("p",{children:"Заявка сохранена. Войдите и откройте чат снова."})]}),"authUnavailable"===J&&(0,a.jsxs)("div",{className:n()(y().message,y().error),children:[(0,a.jsx)("span",{children:"Авторизация временно недоступна"}),(0,a.jsx)("p",{children:"Заявка сохранена. Попробуйте открыть чат позже."})]})]})})},83267:e=>{e.exports={root:"LeadForm_root__nEs66",main:"LeadForm_main__paV_L",close:"LeadForm_close__I1Ctt",closeIcon:"LeadForm_closeIcon__Y7NK6",title:"LeadForm_title__WjIGc",helper:"LeadForm_helper__fj8Zl",consentError:"LeadForm_consentError__0Du5O",control:"LeadForm_control__QXft6",action:"LeadForm_action__IKr02",disabled:"LeadForm_disabled__qjIDa",textarea:"LeadForm_textarea__8lAKa",submit:"LeadForm_submit__FzIpe",field:"LeadForm_field__rH2cl",input:"LeadForm_input__SeBsa",toggle:"LeadForm_toggle__82zWL",error:"LeadForm_error__6SvYf",message:"LeadForm_message__7ZVBJ",success:"LeadForm_success__nnX1_"}},94764:e=>{e.exports={root:"Error_root__BPMJb",white:"Error_white__liRRX",placeholder:"Error_placeholder__m6vPD"}}}]);

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.