PageSourceSearch

https://vseadvokaty.ru/_nuxt/Dm9nTPVu.js

js vseadvokaty.ru collected 2026-10-08 13:47:26 UTC 38,382 bytes, 1 lines download raw bytes

1import{u as ze,a as Ve,b as je,_ as Ee}from"./DUmg25t5.js";import{fp as q,fb as X,fV as T,ej as qe,aX as be,au as ie,eZ as pe,o as $e,eN as de,aU as Re,aY as He,cS as Ke,g4 as We,at as Ye,az as Ge,fy as Qe,aZ as C,ep as z,di as Ze,fI as Xe,fK as Je,dw as et,dy as tt,a5 as ot,A as st,d0 as Se,dK as we,ff as nt,ak as at,ei as rt,c$ as ke,ch as xe,dD as it,cr as lt,e3 as ut,bg as I,dG as g,b7 as R,a_ as o,g0 as W,fk as e,dj as Q,bb as P,bc as y,fY as E,fc as V,a3 as _e,a$ as U,b1 as N,fZ as K,fT as G,i as Le,E as Ae,dA as Pe,$ as Ce,l as me,es as Fe,fR as ct,cR as pt,e5 as fe,ba as dt}from"./DORt870N.js";import{_ as ge}from"./B7MyVK_4.js";import{_ as J}from"./BnI0BMAR.js";import{u as _t,C as mt,_ as ft,a as gt,b as yt}from"./Lj-MVxIX.js";import{i as ht,s as vt}from"./DmqbwY5O.js";import{_ as le}from"./CFsy0iUm.js";import{_ as ee}from"./Db2GDm1e.js";import{_ as Te}from"./BwcBvkIU.js";import{_ as bt,a as Rt}from"./LS8bjUps.js";import{_ as se}from"./DVI6fY47.js";import{_ as St}from"./HnZ_AOJi.js";import{_ as wt}from"./CWc8Zfem.js";function kt(c,t,n,u){const{registrationRole:i,verificationCode:a,userRegistration:r,lawyerRegistration:s,agreementState:m}=X(c);i.value=t.registrationRole,a.value="",r.value.step=t.userRegistration.step,r.value.completedSteps=[...t.userRegistration.completedSteps],Object.assign(r.value.formData,t.userRegistration.formData);const p=s.value;p.step=t.lawyerRegistration.step,p.completedSteps=[...t.lawyerRegistration.completedSteps],Object.assign(p.formData,t.lawyerRegistration.formData),p.fieldErrors.registrationNumber=t.lawyerRegistration.fieldErrors.registrationNumber,p.yearOfEducation=t.lawyerRegistration.yearOfEducation,p.yearOfStatus=t.lawyerRegistration.yearOfStatus,p.searchQuery=t.lawyerRegistration.searchQuery,p.selectedAddress=t.lawyerRegistration.selectedAddress,p.specializationsBySphere=He(t.lawyerRegistration.specializationsBySphere),p.lawyerSpecializations=t.lawyerRegistration.lawyerSpecializations.map(v=>({...v})),p.uploadedPhotoUrl=t.lawyerRegistration.uploadedPhotoUrl,p.photoUploadedToServer=t.lawyerRegistration.photoUploadedToServer,p.photoError=t.lawyerRegistration.photoError,p.searchResults=[],p.isPhotoLoading=!1,m.value={client:{...t.agreementState.client},lawyer:{...t.agreementState.lawyer}},n.value=[...t.selectedSpecializations],t.lawyerRegistration.step==="sphere"&&p.specializationsBySphere.length>0&&u?.(),t.registrationRole==="lawyer"&&r.value.step==="success"&&(r.value.step="form"),t.registrationRole==="client"&&s.value.step==="success"&&(s.value.step="form"),t.registrationRole==="client"&&r.value.step==="success"&&(r.value.step="code"),c.inferRegistrationCompletedFromSteps()}function xt(c){const t=q();if(t.role)return!1;const n=qe();return n?(kt(t,n,c.selectedSpecializations,c.onLawyerSphereStepRestored),!0):!1}function Lt(c){const t=q(),{route:n,router:u,selectedSpecializations:i}=c,{registrationRole:a,userRegistration:r,lawyerRegistration:s,verificationCode:m,agreementState:p}=X(t);let v=!1,_=!1;function l(){const D=r.value,w=s.value;return Ye({registrationRole:a.value,verificationCode:m.value,userRegistration:{step:D.step,completedSteps:[...D.completedSteps],formData:{...D.formData}},lawyerRegistration:{step:w.step,completedSteps:[...w.completedSteps],formData:{...w.formData},fieldErrors:{...w.fieldErrors},yearOfEducation:w.yearOfEducation,yearOfStatus:w.yearOfStatus,searchQuery:w.searchQuery,selectedAddress:w.selectedAddress,specializationsBySphere:w.specializationsBySphere,lawyerSpecializations:w.lawyerSpecializations,uploadedPhotoUrl:w.uploadedPhotoUrl,photoUploadedToServer:w.photoUploadedToServer,photoError:w.photoError},agreementState:p.value,selectedSpecializations:i.value})}function d(){if(_&&!t.role&&!(a.value==="client"&&r.value.step==="success")&&!(a.value==="lawyer"&&s.value.step==="success"))try{const D=l();if(Ke(D))return;We(D)}catch{}}function A(){d()}function S(){v||(v=!0,window.addEventListener("pagehide",A),window.addEventListener("beforeunload",A))}S();async function f(){if(t.error=null,t.isLoading=!1,await t.initAuthFromToken(),t.role){if(be(),ht(n,t.role)){if((await vt({preferCachedStatus:!0})).action==="complete")try{await u.replace(ie("lawyer"))}catch{}return}const D=t.registrationRole==="client"&&t.userRegistration.step==="success"||t.registrationRole==="lawyer"&&t.lawyerRegistration.step==="success";if(D&&t.registrationRole==="lawyer"){pe(u,n,$e,"lawyer",{fixedTarget:ie("lawyer")});return}const w=de(n);if(D&&w)try{await u.replace(w),Re(w)}catch{}return}c.applyDraftFromStorage?.(),_=!0}T([a,m,r,s,p,i],()=>{try{d()}catch{}},{deep:!0,flush:"post"});function F(){let D=r.value.formData.phone;T(()=>r.value.formData.phone,x=>{x!==D&&(D=x,t.invalidateClientRegistrationFrom("form"))});let w=s.value.formData.phone,k=s.value.formData.registrationNumber;T(()=>s.value.formData.phone,x=>{x!==w&&(w=x,t.invalidateLawyerRegistrationFrom("form"))}),T(()=>s.value.formData.registrationNumber,x=>{x!==k&&(k=x,t.invalidateLawyerRegistrationFrom("form"))});let b={education:s.value.yearOfEducation,status:s.value.yearOfStatus,address:s.value.selectedAddress};T(()=>[s.value.yearOfEducation,s.value.yearOfStatus,s.value.selectedAddress],([x,O,M])=>{const L=b,Y=x==null||x===""?null:Number(x),ne=O==null||O===""?null:Number(O),Z=M==null||M===""?null:String(M);Y===L.education&&ne===L.status&&Z===L.address||(b={education:Y,status:ne,address:Z},t.invalidateLawyerRegistrationFrom("education"))});let $=i.value.join(",");T(i,x=>{const O=x.join(",");O!==$&&($=O,t.invalidateLawyerRegistrationFrom("sphere"))})}function h(){T([()=>r.value.step,()=>s.value.step,a],([D,w,k])=>{const b=k==="client"&&D==="success"||k==="lawyer"&&w==="success";if(b&&be(),!b||k==="lawyer")return;const $=de(n);$&&(Ge(),u.replace($).then(()=>Re($)).catch(()=>{}))})}function B(){A()}return{finishRegistrationPageBootstrap:f,setupRegistrationInvalidation:F,setupSuccessRedirectWatch:h,teardownRegistrationDraft:B}}function At(){const c=q(),t=Qe(),n=z(null),u=z(-1),i=C(()=>c.lawyerRegistration.searchResults.length>0);function a(l){return`${t}-opt-${l}`}function r(){if(!i.value)return;const l=u.value;if(!(l<0))return a(l)}function s(){u.value=-1}function m(l){const d=l.relatedTarget;n.value?.contains(d)||(u.value=-1)}function p(l){const d=c.lawyerRegistration.searchResults;if(!i.value){l.key==="Escape"&&(u.value=-1);return}const A=d.length;if(A!==0){if(l.key==="ArrowDown")l.preventDefault(),u.value<0?u.value=0:u.value=Math.min(u.value+1,A-1);else if(l.key==="ArrowUp")l.preventDefault(),u.value<=0?u.value=-1:u.value-=1;else if(l.key==="Home")l.preventDefault(),u.value=0;else if(l.key==="End")l.preventDefault(),u.value=A-1;else if(l.key==="Escape")l.preventDefault(),u.value=-1,c.clearLawyerAddressSuggestions();else if(l.key==="Enter"){if(u.value<0)return;l.preventDefault();const S=d[u.value];S&&_(S)}}}function v(l){u.value=-1;const d=l.target.value;c.searchAddresses(d)}function _(l){c.setLawyerWorkAddressFromSuggestion(l),u.value=-1}return{addressListboxId:t,addressFieldWrapperRef:n,addressListActiveIndex:u,addressResultsOpen:i,addressOptionId:a,ariaActiveDescendantAddress:r,onAddressFocus:s,onAddressFieldFocusOut:m,onAddressKeydown:p,onInput:v,selectAddress:_}}function Dt(c){const t=q(),{lawyerRegistration:n}=X(t),u=z(null),i=z(0),a=z(-1);function r(){i.value=0,a.value=-1}T(()=>n.value.step,async _=>{if(_==="sphere")try{if(n.value.specializationsBySphere.length===0&&await t.getLawyerSpecializations(),n.value.specializationsBySphere.length===0)return;r()}catch{}},{immediate:!0});function s(_){const l=[...c.value],d=l.indexOf(_);d===-1?l.push(_):l.splice(d,1),c.value=l}function m(_){const l=n.value.specializationsBySphere.length;if(l===0)return;const d=Math.max(0,Math.min(_,l-1));i.value=d,a.value=d,Ze(()=>{u.value?.querySelector(`[data-sphere-row="${d}"]`)?.focus()})}function p(_,l,d){const S=n.value.specializationsBySphere.length,f=a.value<0?l:a.value;_.key==="ArrowDown"?(_.preventDefault(),f<S-1&&m(f+1)):_.key==="ArrowUp"?(_.preventDefault(),f>0&&m(f-1)):_.key==="Home"?(_.preventDefault(),m(0)):_.key==="End"?(_.preventDefault(),m(S-1)):(_.key===" "||_.key==="Spacebar"||_.key==="Enter")&&(_.preventDefault(),a.value<0&&(a.value=l),s(d))}async function v(){c.value.length!==0&&await t.sendSelectedSpecializations(c.value)}return{sphereListRef:u,sphereRovingTabIndex:i,sphereKeyboardHighlightIndex:a,resetSphereListFocus:r,toggleSphereSelection:s,focusSphereRow:m,onSphereRowKeydown:p,onSubmitSpecializations:v}}const Et=["jpg","jpeg","jfif","jpe","png","webp","avif","gif","svg","heic","heif","tiff","tif","bmp","eps","pdf","ai","psd"];function $t(){const c=q(),t=z(!1);function n(){t.value=!0}function u(){t.value=!1}function i(r){const s=r.target;if(!s.files||s.files.length===0){c.lawyerRegistration.photoError="Файл не выбран";return}const m=s.files[0];if(!m){c.lawyerRegistration.photoError="Файл не выбран";return}const v=m.name.toLowerCase().split(".").pop();if(!v||!Et.includes(v)){c.lawyerRegistration.photoError="Расширение файла не соответствует допустимым форматам. Разрешены: JPEG, PNG, WebP, AVIF, GIF, SVG, HEIC, HEIF, TIFF, BMP, EPS, PDF, AI, PSD";return}const _=30*1024*1024;if(m.size>_){c.lawyerRegistration.photoError="Файл слишком большой. Максимальный размер: 30 МБ";return}const l=new FileReader;l.onload=()=>{c.lawyerRegistration.uploadedPhotoUrl=l.result,c.lawyerRegistration.photoError=""},l.onerror=()=>{c.lawyerRegistration.photoError="Ошибка при чтении файла"}
1,l.readAsDataURL(m)}function a(){c.resetUploadedPhoto();const r=document.getElementById("photo_upload");r&&r.click()}return{isModalOpen:t,openModal:n,closeModal:u,handlePhotoSelect:i,resetAndSelectNewPhoto:a}}const De="/auth/registration";function Pt(c){return c.registrationRole==="client"?c.userRegistration.step==="success":c.registrationRole==="lawyer"?c.lawyerRegistration.step==="success":!1}function Ct(c,t){const n=q();async function u(a){n.error=null;const{phone:r,name:s,email:m}=n.userRegistration.formData,p=n.registrationRole;if(!ke(m.trim())){n.error="Введите корректный email адрес с символом @ и доменной зоной";return}const v=xe(r);if(v){n.error=v;return}if(await n.sendRegistrationForm(r,p,s,m,void 0,a)==="switch-to-login"){t?.onSwitchToLogin?.();return}n.userRegistration.step==="code"&&c?.()}async function i(a){n.error=null;const{phone:r,name:s,email:m,registrationNumber:p}=n.lawyerRegistration.formData,v=n.registrationRole;if(!ke(m.trim())){n.error="Введите корректный email адрес с символом @ и доменной зоной";return}const _=xe(r);if(_){n.error=_;return}if(await n.sendRegistrationForm(r,v,s,m,p,a)==="switch-to-login"){t?.onSwitchToLogin?.();return}n.lawyerRegistration.step==="code"&&c?.()}return{sendUserRegistrationForm:u,sendLawyerRegistrationForm:i,userFormSubmit:()=>u(),lawyerFormSubmit:()=>i(),onCodeSubmitRegisterUser:async()=>n.sendCodeRegisterUser(),onCodeSubmitRegisterlawyer:async()=>n.sendCodeRegisterlawyer(),onUpdateLawyerYears:async()=>{n.error=null;const a=n.lawyerRegistration,r=(a.searchQuery??"").trim(),s=(a.selectedAddress??"").trim();if(!a.selectedAddressData||!s||s!==r){a.fieldErrors.address=r?"Выберите адрес из выпадающего списка":"Введите рабочий адрес и выберите его из списка";return}if(!ot(a.selectedAddressData)){a.fieldErrors.address=st;return}a.fieldErrors.address=null;const{yearOfStatus:m,yearOfEducation:p}=a;if(!Se(m)||!Se(p)){n.error="Введите корректный год";return}n.lawyerRegistration.yearOfStatus=we(m),n.lawyerRegistration.yearOfEducation=we(p),await n.updateLawyerYears()}}}const Ue=Symbol("registrationPageContext");function Ls(c){const n=(c?.mode??"page")==="inline",u=C(()=>nt(c?.inlineCodeSubmitText)||"Оплатить"),i=Xe(),a=Je(),r=q(),{registrationRole:s,isLoading:m,error:p,userRegistration:v,lawyerRegistration:_,verificationCode:l,agreementState:d,payAgreementState:A}=X(r);n&&r.setRegistrationRole("client");const S=C(()=>n?"":rt(i)??""),f=C(()=>(s.value==="client"?v.value.formData.phone:_.value.formData.phone).trim()),F=C(()=>n?"":at(f.value||void 0,S.value||i.query.redirect)),h=C(()=>!n&&i.query.from==="contact"),B=C(()=>!n&&i.query.from==="favorites"),D=C(()=>s.value==="client"),w=C(()=>s.value==="lawyer");function k(){i.query.from==="favorites"?r.setRegistrationRole("client"):i.query.from==="for-lawyers"&&r.setRegistrationRole("lawyer")}T(()=>i.query.from,k,{immediate:!n});function b(){c?.onSwitchToLogin?.()}function $(j){r.setRegistrationRole(j)}const x={onClientSubmit:()=>{},onLawyerSubmit:()=>{}},{prevStep:O}=ze(),{displayText:M,isFinished:L,handleTryAgain:Y,startCountdown:ne}=_t(mt,{onClientSubmit:()=>{x.onClientSubmit()},onLawyerSubmit:()=>{x.onLawyerSubmit()}}),Z=Ct(ne,{onSwitchToLogin:()=>b()});x.onClientSubmit=()=>{Z.sendUserRegistrationForm({force:!0})},x.onLawyerSubmit=()=>{Z.sendLawyerRegistrationForm({force:!0})};const ae=c?.selectedSpecializations??z([]),ue=Dt(ae);function ce(){return xt({selectedSpecializations:ae,onLawyerSphereStepRestored:ue.resetSphereListFocus})}n||ce();const te=n?null:Lt({route:i,router:a,selectedSpecializations:ae,onLawyerSphereStepRestored:ue.resetSphereListFocus,applyDraftFromStorage:ce}),Ie=At(),Be=$t(),re=z(!1),Me=C(()=>re.value&&!!r.role);function ye(){const j=(i.path.split("?")[0]??i.path).trim();return j!==De&&!j.startsWith(`${De}/`)||!r.role||!Pt(r)?!1:r.registrationRole==="lawyer"?pe(a,i,$e,"lawyer",{fixedTarget:ie("lawyer")}):de(i)?pe(a,i,0,r.role):!1}T(()=>[r.role,r.registrationRole,r.userRegistration.step,r.lawyerRegistration.step,i.fullPath],()=>{n||ye()}),n&&T(()=>r.isAuth,j=>{j&&c?.onInlineAuthSuccess?.()});let oe=null;T(()=>_.value.formData.registrationNumber,j=>{const ve=(j??"").trim();if(oe&&clearTimeout(oe),!ve){_.value.fieldErrors.registrationNumber=null,_.value.registrationNumberInDb=!1;return}oe=setTimeout(()=>{r.validateLawyerRegistrationNumber(ve).catch(()=>{})},400)},{flush:"post"}),it(()=>{oe&&clearTimeout(oe)}),T(()=>v.value.formData,()=>{r.error=null},{deep:!0}),T(()=>_.value.formData,()=>{r.error=null},{deep:!0}),et(async()=>
1{if(!n){re.value=!0;try{ce(),k(),await te.finishRegistrationPageBootstrap(),k(),ye()}finally{re.value=!1}}}),te&&(te.setupRegistrationInvalidation(),te.setupSuccessRedirectWatch()),tt(()=>{te?.teardownRegistrationDraft()});const he={route:i,authStore:r,registrationRole:s,isLoading:m,error:p,userRegistration:v,lawyerRegistration:_,verificationCode:l,agreementState:d,payAgreementState:A,postAuthRedirect:S,loginLink:F,fromContact:h,fromFavorites:B,isClient:D,isLawyer:w,isInline:n,inlineCodeSubmitText:u,switchToLogin:b,pickRegistrationRole:$,...Z,prevStep:O,displayText:M,isFinished:L,handleTryAgain:Y,selectedSpecializations:ae,...ue,...Ie,...Be,isRegistrationPagePending:Me,isRegistrationPageBootstrapping:re};return ut(Ue,he),he}function H(){const c=lt(Ue);if(!c)throw new Error("useRegistrationPageContext() must be used within registration page or flows");return c}const Ft={class:"role_switch",role:"group","aria-label":"Тип регистрации"},Tt=I({__name:"RegistrationRoleSwitch",setup(c){const{isClient:t,isLawyer:n,pickRegistrationRole:u}=H();return(i,a)=>(g(),R("div",Ft,[o("button",{type:"button",class:Q(["toggle_button",{"is-active":e(n)}]),onClick:a[0]||(a[0]=W(r=>e(u)("lawyer"),["stop"]))}," Адвокат ",2),o("button",{type:"button",class:Q(["toggle_button",{"is-active":e(t)}]),onClick:a[1]||(a[1]=W(r=>e(u)("client"),["stop"]))}," Пользователь ",2)]))}}),Ut=Object.assign(Tt,{__name:"LayoutAuthRegistrationRoleSwitch"}),Ot={class:"consents"},Nt={class:"checkbox_container"},It={for:"consent",class:"custom_checkbox checkbox"},Bt=["checked"],Mt={class:"checkbox_content"},zt={for:"policy",class:"custom_checkbox checkbox"},Vt=["checked"],jt={class:"checkbox_content"},qt={for:"marketing",class:"custom_checkbox checkbox"},Ht=["checked"],Kt={class:"checkbox_content"},Wt={class:"legal_note"},Yt=I({__name:"PolicySelector",props:{actionLabel:{}},setup(c){const t=q(),{registrationRole:n,agreementState:u}=X(t),i=C(()=>n.value==="lawyer"?"/consent-to-personal-data-processing-lawyer":"/consent-to-personal-data-processing");function a(r,s){t.updateAgreement(n.value,r,s)}return(r,s)=>{const m=ge;return g(),R("div",Ot,[o("div",Nt,[o("label",It,[o("input",{id:"consent",type:"checkbox",name:"consent",checked:e(u)[e(n)].consent,required:"",class:"checkbox_input",onChange:s[0]||(s[0]=p=>a("consent",p.target.checked))},null,40,Bt),o("div",Mt,[o("span",null,[s[4]||(s[4]=P(" Согласие на ",-1)),y(m,{to:e(i),target:"_blank",class:"link"},{default:E(()=>[...s[3]||(s[3]=[P("обработку персональных данных",-1)])]),_:1},8,["to"])]),s[5]||(s[5]=o("span",{class:"checkbox_box"},null,-1))])]),o("label",zt,[o("input",{id:"policy",type:"checkbox",name:"policy",checked:e(u)[e(n)].policy,required:"",class:"checkbox_input",onChange:s[1]||(s[1]=p=>a("policy",p.target.checked))},null,40,Vt),o("div",jt,[o("span",null,[s[7]||(s[7]=P(" Политика ",-1)),y(m,{to:"/personal-data-processing-policy",target:"_blank",class:"link"},{default:E(()=>[...s[6]||(s[6]=[P(" обработки персональных данных ",-1)])]),_:1})]),s[8]||(s[8]=o("span",{class:"checkbox_box"},null,-1))])]),o("label",qt,[o("input",{id:"marketing",type:"checkbox",name:"marketing",checked:e(u)[e(n)].marketing,class:"checkbox_input",onChange:s[2]||(s[2]=p=>a("marketing",p.target.checked))},null,40,Ht),o("div",Kt,[o("span",null,[s[10]||(s[10]=P(" Согласие на получение ",-1)),y(m,{to:"/consent-to-marketing-messages",target:"_blank",class:"link"},{default:E(()=>[...s[9]||(s[9]=[P("рекламной рассылки",-1)])]),_:1})]),s[11]||(s[11]=o("span",{class:"checkbox_box"},null,-1))])])]),o("p",Wt,[P(" Нажимая кнопку «"+V(c.actionLabel)+"», я соглашаюсь с условиями ",1),y(m,{to:"/terms-and-conditions",target:"_blank",class:"link"},{default:E(()=>[...s[12]||(s[12]=[P("пользовательского соглашения",-1)])]),_:1})])])}}}),Gt=Object.assign(_e(Yt,[["__scopeId","data-v-b493167d"]]),{__name:"LayoutAuthPolicySelector"}),Qt={class:"registration_step"},Zt={key:1,class:"registration_hint"}
1,Xt={key:2,class:"registration_hint"},Jt=["pattern","title"],eo={key:0},to={class:"select"},oo={class:"btn_block"},so=["aria-invalid","aria-describedby"],no=["pattern","title"],ao={key:0},ro={class:"select"},io={class:"btn_block"},lo=I({__name:"RegistrationStepForm",props:{variant:{},backTitle:{},showHomeBack:{type:Boolean}},setup(c){const t=c,{fromContact:n,fromFavorites:u,userRegistration:i,lawyerRegistration:a,error:r,isLoading:s,loginLink:m,isInline:p,registrationRole:v,agreementState:_,switchToLogin:l,userFormSubmit:d,lawyerFormSubmit:A}=H();return(S,f)=>{const F=ge,h=J,B=Ve,D=Ut,w=je,k=le,b=ft,$=Gt,x=ee,O=Te,M=bt;return g(),R("section",Qt,[t.backTitle?(g(),U(h,{key:0,class:Q({link_decor:e(p)})},{default:E(()=>[!e(p)&&t.showHomeBack!==!1?(g(),U(F,{key:0,to:"/"},{default:E(()=>[...f[9]||(f[9]=[o("img",{src:se,alt:""},null,-1)])]),_:1})):N("",!0),o("span",null,V(t.backTitle),1)]),_:1},8,["class"])):N("",!0),y(B,{class:"decor_title",text:"Регистрация",level:2}),y(D),e(u)?(g(),R("p",Zt," Для добавления вопроса в избранное необходимо зарегистрироваться ")):c.variant==="client"&&e(n)?(g(),R("p",Xt," Для связи с адвокатом необходимо зарегистрироваться ")):N("",!0),c.variant==="client"?(g(),R("form",{key:3,onSubmit:f[3]||(f[3]=W((...L)=>e(d)&&e(d)(...L),["prevent"]))},[o("label",null,[K(o("input",{"onUpdate:modelValue":f[0]||(f[0]=L=>e(i).formData.name=L),class:"input input_decor",type:"text",placeholder:"Введите ваше имя",required:"",name:"name"},null,512),[[G,e(i).formData.name]])]),o("label",null,[K(o("input",{"onUpdate:modelValue":f[1]||(f[1]=L=>e(i).formData.email=L),class:"input input_decor",type:"email",placeholder:"Ваш e-mail",pattern:e(Ae),title:e(Le),required:"",name:"email"},null,8,Jt),[[G,e(i).formData.email]])]),y(w,{modelValue:e(i).formData.phone,"onUpdate:modelValue":f[2]||(f[2]=L=>e(i).formData.phone=L)},null,8,["modelValue"]),e(r)?(g(),R("div",eo,[y(k,{text:e(r)},null,8,["text"])])):N("",!0),y(b,{class:"sms_note",text:"Отправим код подтверждения в мессенджер или через СМС"}),o("div",to,[y($,{"action-label":"Зарегистрироваться"})]),o("div",oo,[y(x,{class:"btn_decor",text:e(s)?"Проверяем...":"Зарегистрироваться",type:"submit","button-padding":"auto",disabled:e(s)||!e(_)[e(v)].allAgreed},null,8,["text","disabled"])])],32)):(g(),R("form",{key:4,onSubmit:f[8]||(f[8]=W((...L)=>e(A)&&e(A)(...L),["prevent"]))},[y(O,{text:e(a).fieldErrors.registrationNumber??"","error-id":"registration-number-error"},{default:E(()=>[o("label",null,[K(o("input",{"onUpdate:modelValue":f[4]||(f[4]=L=>e(a).formData.registrationNumber=L),class:"input input_decor",type:"text",placeholder:"Введите ваш регистрационный номер",required:"",name:"registrationNumber",autocomplete:"off","aria-invalid":!!e(a).fieldErrors.registrationNumber,"aria-describedby":e(a).fieldErrors.registrationNumber?"registration-number-error":void 0},null,8,so),[[G,e(a).formData.registrationNumber]])])]),_:1},8,["text"]),o("label",null,[K(o("input",{"onUpdate:modelValue":f[5]||(f[5]=L=>e(a).formData.name=L),class:"input input_decor",type:"text",placeholder:"Введите ваше ФИО",required:"",name:"name"},null,512),[[G,e(a).formData.name]])]),o("label",null,[K(o("input",{"onUpdate:modelValue":f[6]||(f[6]=L=>e(a).formData.email=L),class:"input input_decor",type:"email",placeholder:"Ваш e-mail",pattern:e(Ae),title:e(Le),required:"",name:"email"},null,8,no),[[G,e(a).formData.email]])]),y(w,{modelValue:e(a).formData.phone,"onUpdate:modelValue":f[7]||(f[7]=L=>e(a).formData.phone=L)},null,8,["modelValue"]),e(r)?(g(),R("div",ao,[y(k,{text:e(r)},null,8,["text"])])):N("",!0),y(b,{class:"sms_note",text:"Отправим код подтверждения в мессенджер или через СМС"}),o("div",ro,[y($,{"action-label":"Далее"})]),o("div",io,[y(x,{class:"btn_decor",text:e(s)?"Проверяем...":"Далее",type:"submit","button-padding":"auto",disabled:e(s)||!!e(a).fieldErrors.registrationNumber||e(a).registrationNumberInDb||!e(_)[e(v)].allAgreed},null,8,["text","disabled"])])],32)),e(p)?(g(),U(M,{key:5,class:"text_decor","native-button":"",onClick:e(l)},{default:E(()=>[...f[10]||(f[10]=[P("Авторизоваться",-1)])]),_:1},8,["onClick"])):(g(),U(M,{key:6,class:"text_decor",to:e(m)},{default:E(()=>[...f[11]||(f[11]=[P("Авторизоваться",-1)])]),_:1},8,["to"]))])}}}),Oe=Object.assign(lo,{__name:"LayoutAuthRegistrationStepForm"}),uo={class:"consents"},co={class:"checkbox_container"},po={for:"pay-personal-data",class:"custom_checkbox checkbox"},_o=["checked"],mo={class:"checkbox_content"},fo={class:"legal_note"},go="/consent-to-personal-data-processing",yo=I({__name:"PayConsentSelector",props:{actionLabel:{}},setup(c){const t=q(),{payAgreementState:n}=X(t);return(u,i)=>{const a=ge;return g(),R("div",uo,[o("div",co,[o("label",po,[o("input",{id:"pay-personal-data",type:"checkbox",name:"pay-personal-data",checked:e(n).personalData,required:"",class:"checkbox_input",onChange:i[0]||(i[0]=r=>e(t).updatePayAgreement(r.target.checked))},null,40,_o),o("div",mo,[o("span",null,[i[2]||(i[2]=P(" Даю согласие на ",-1)),y(a,{to:go,target:"_blank",class:"link"},{default:E(()=>[...i[1]||(i[1]=[P("обработку персональных данных",-1)])]),_:1})]),i[3]||(i[3]=o("span",{class:"checkbox_box"},null,-1))])])]),o("p",fo,[P(" Нажимая «"+V(c.actionLabel)+"», я принимаю условия ",1),y(a,{to:"/oferta",target:"_blank",class:"link"},{default:E(()=>[...i[4]||(i[4]=[P("публичной оферты",-1)])]),_:1})])])}}}),ho=Object.assign(_e(yo,[["__scopeId","data-v-7232eeca"]]),{__name:"LayoutAuthPayConsentSelector"}),vo={class:"registration_step"},bo={class:"text_code"},Ro={key:0},So={key:1,class:"select"},wo=I({__name:"RegistrationStepCode",props:{variant:{}},setup(c){const t=c,{userRegistration:n,lawyerRegistration:u,error:i,isLoading:a,verificationCode:r,isInline:s,inlineCodeSubmitText:m,payAgreementState:p,authStore:v,prevStep:_,displayText:l,isFinished:d,handleTryAgain:A,onCodeSubmitRegisterUser:S,onCodeSubmitRegisterlawyer:f}=H(),F=C(()=>t.variant==="client"?n.value.formData.phone:u.value.formData.phone),h=()=>t.variant==="client"?S():f(),B=C(()=>s&&t.variant==="client"?m.value:"Далее"),D=C(()=>a.value?"Проверяем...":B.value);return(w,k)=>{const b=J,$=gt,x=le,O=yt,M=ho,L=ee;return g(),R("section",vo,[y(b,{class:"link_decor"},{default:E(()=>[o("button",{type:"button",onClick:k[0]||(k[0]=(...Y)=>e(_)&&e(_)(...Y))},[...k[2]||(k[2]=[o("span",null,"Изменить номер",-1)])])]),_:1}),o("p",bo,[k[3]||(k[3]=P(" Введите код, отправленный на номер ",-1)),k[4]||(k[4]=o("br",null,null,-1)),P(" "+V(e(F)),1)]),o("form",{onSubmit:W(h,["prevent"])},[o("label",null,[y($,{class:"code"})]),e(i)?(g(),R("div",Ro,[y(x,{text:e(i)},null,8,["text"])])):N("",!0),y(O,{"action-text":e(l),disabled:!e(d),onResend:k[1]||(k[1]=Y=>e(A)(e(v).registrationRole))},null,8,["action-text","disabled"]),e(s)?(g(),R("div",So,[y(M,{"action-label":e(B)},null,8,["action-label"])])):N("",!0),y(L,{class:"btn_decor",text:e(D),type:"submit","button-padding":"auto",disabled:e(a)||e(r).length!==6||e(s)&&!e(p).allAgreed},null,8,["text","disabled"])],32)])}}}),Ne=Object.assign(wo,{__name:"LayoutAuthRegistrationStepCode"}),ko=I({__name:"RegistrationClientFlow",setup(c){const{userRegistration:t}=H(),n=z(!1);return Pe(()=>{n.value=!0}),(u,i)=>{const a=Ee,r=Oe,s=Ne;return g(),R("div",null,[y(a,{steps:["form","code"],"current-step":e(t).step},null,8,["current-step"]),y(Ce,{name:e(n)?"registration_step":"",mode:"out-in"},{default:E(()=>[e(t).step==="form"?(g(),U(r,{key:"client-form",variant:"client"})):e(t).step==="code"?(g(),U(s,{key:"client-code",variant:"client"})):N("",!0)]),_:1},8,["name"])])}}}),As=Object.assign(ko,{__name:"LayoutAuthRegistrationClientFlow"}),xo={class:"registration_step"},Lo=["value","aria-expanded","aria-controls","aria-activedescendant"],Ao=["id"],Do=["id","aria-selected","onMousedown"],Eo={key:0},$o={class:"btn_block"},Po=I({__name:"RegistrationStepEducation",setup(c){const{lawyerRegistration:t,error:n,isLoading:u,prevStep:i,onUpdateLawyerYears:a,addressFieldWrapperRef:r,addressListboxId:s,addressListActiveIndex:m,addressResultsOpen:p,addressOptionId:v,ariaActiveDescendantAddress:_,onAddressFocus:l,onAddressFieldFocusOut:d,onAddressKeydown:A,onInput:S,selectAddress:f}=H();return(F,h)=>
1{const B=J,D=Te,w=le,k=ee;return g(),R("section",xo,[y(B,{class:"step_back_link"},{default:E(()=>[o("button",{type:"button",onClick:h[0]||(h[0]=(...b)=>e(i)&&e(i)(...b))},[...h[8]||(h[8]=[o("img",{src:se,alt:""},null,-1),o("span",null,"Назад",-1)])])]),_:1}),h[9]||(h[9]=o("p",{class:"add_text"},"Расскажите немного о своей практике",-1)),o("form",{class:"education_form",onSubmit:h[7]||(h[7]=W((...b)=>e(a)&&e(a)(...b),["prevent"]))},[o("div",{ref_key:"addressFieldWrapperRef",ref:r,class:"address_field_block",onFocusout:h[4]||(h[4]=(...b)=>e(d)&&e(d)(...b))},[y(D,{open:e(p),text:e(t).fieldErrors.address,"error-placement":"top"},{popover:E(()=>[o("ul",{id:e(s),class:"address_results",role:"listbox","aria-label":"Подсказки адреса"},[(g(!0),R(me,null,Fe(e(t).searchResults,(b,$)=>(g(),R("li",{key:b.value,id:e(v)($),class:Q(["address_item",{address_item_active:e(m)===$}]),role:"option","aria-selected":e(m)===$,onMousedown:W(x=>e(f)(b),["prevent"])},V(b.value),43,Do))),128))],8,Ao)]),default:E(()=>[o("label",null,[o("input",{class:"input input_decor",value:e(t).searchQuery,type:"text",role:"combobox",autocomplete:"off",placeholder:"Введите ваш рабочий адрес",required:"",name:"address","aria-expanded":e(p)?"true":"false","aria-autocomplete":"list","aria-controls":e(p)?e(s):void 0,"aria-activedescendant":e(_)()??void 0,onInput:h[1]||(h[1]=(...b)=>e(S)&&e(S)(...b)),onFocus:h[2]||(h[2]=(...b)=>e(l)&&e(l)(...b)),onKeydown:h[3]||(h[3]=(...b)=>e(A)&&e(A)(...b))},null,40,Lo)])]),_:1},8,["open","text"])],544),o("label",null,[K(o("input",{"onUpdate:modelValue":h[5]||(h[5]=b=>e(t).yearOfStatus=b),class:"input input_decor",type:"text",inputmode:"numeric",placeholder:"Год получения статуса адвоката",name:"status"},null,512),[[G,e(t).yearOfStatus]])]),o("label",null,[K(o("input",{"onUpdate:modelValue":h[6]||(h[6]=b=>e(t).yearOfEducation=b),class:"input input_decor",type:"text",inputmode:"numeric",placeholder:"Год получения диплома юриста",name:"diploma"},null,512),[[G,e(t).yearOfEducation]])]),e(n)?(g(),R("div",Eo,[y(w,{text:e(n)},null,8,["text"])])):N("",!0),o("div",$o,[y(k,{class:"btn_decor",text:e(u)?"Проверяем...":"Далее",type:"submit","button-padding":"auto",disabled:e(u)},null,8,["text","disabled"])])],32)])}}}),Co=Object.assign(Po,{__name:"LayoutAuthRegistrationStepEducation"}),Fo={class:"registration_step"},To={class:"sphere_list_scroll"},Uo=["data-sphere-row","tabindex","aria-selected","onKeydown"],Oo=["for","onClick"],No=["id","name","value"],Io={class:"checkbox_content"},Bo={class:"sphere_counter"},Mo={class:"btn_block"},zo=I({__name:"RegistrationStepSphere",setup(c){const{isLoading:t,prevStep:n,authStore:u,selectedSpecializations:i,sphereListRef:a,sphereRovingTabIndex:r,sphereKeyboardHighlightIndex:s,onSphereRowKeydown:m,onSubmitSpecializations:p}=H(),v=C(()=>i.value.length?`Выбрано: ${i.value.length}`:"Отметьте хотя бы одну сферу");return(_,l)=>{const d=J,A=ee;return g(),R("section",Fo,[y(d,{class:"step_back_link"},{default:E(()=>[o("button",{type:"button",onClick:l[0]||(l[0]=(...S)=>e(n)&&e(n)(...S))},[...l[3]||(l[3]=[o("img",{src:se,alt:""},null,-1),o("span",null,"Назад",-1)])])]),_:1}),l[5]||(l[5]=o("p",{class:"add_text"},"Укажите сферы, в которых вы работаете",-1)),o("form",{onSubmit:l[2]||(l[2]=W((...S)=>e(p)&&e(p)(...S),["prevent"]))}
1,[o("div",To,[o("ul",{ref_key:"sphereListRef",ref:a,class:"sphere_list",role:"listbox","aria-label":"Сферы, в которых вы работаете","aria-multiselectable":"true"},[(g(!0),R(me,null,Fe(e(u).lawyerRegistration.specializationsBySphere,(S,f)=>(g(),R("li",{key:S.sphere_id,class:Q(["sphere_item",{sphere_item_keyboard_active:e(s)===f}]),"data-sphere-row":f,tabindex:e(r)===f?0:-1,role:"option","aria-selected":e(i).includes(S.sphere_id),onKeydown:F=>e(m)(F,f,S.sphere_id)},[o("label",{for:`sphere-${S.sphere_id}`,class:"custom_checkbox",onClick:F=>r.value=f},[K(o("input",{id:`sphere-${S.sphere_id}`,"onUpdate:modelValue":l[1]||(l[1]=F=>pt(i)?i.value=F:null),type:"checkbox",name:`specialization_${S.sphere_id}`,value:S.sphere_id,class:"checkbox_input",tabindex:"-1"},null,8,No),[[ct,e(i)]]),o("div",Io,[o("span",null,V(S.sphere_title),1),l[4]||(l[4]=o("span",{class:"checkbox_box"},null,-1))])],8,Oo)],42,Uo))),128))],512)]),o("span",Bo,V(e(v)),1),o("div",Mo,[y(A,{class:"btn_decor",text:e(t)?"Сохраняем...":"Далее",type:"submit","button-padding":"auto",disabled:e(t)||e(i).length===0},null,8,["text","disabled"])])],32)])}}}),Vo=Object.assign(zo,{__name:"LayoutAuthRegistrationStepSphere"}),jo=fe("/image/photo_sample.jpg"),qo=fe("/icon/auth/check.svg"),Ho=fe("/icon/orders/add.svg"),Ko={class:"registration_step"},Wo={class:"photo_row"},Yo={class:"image_container"},Go=["src"],Qo={key:1,src:jo,alt:"Образец фотографии",class:"img_decor"},Zo={key:1,for:"photo_upload",class:"photo_drop_label"},Xo={key:0},Jo={class:"btn_block btn_photo"},es=["disabled"],ts={key:0,for:"photo_upload",class:"upload_button"},os=I({__name:"RegistrationStepPhoto",setup(c){const{lawyerRegistration:t,isLoading:n,isInline:u,prevStep:i,authStore:a,isModalOpen:r,openModal:s,closeModal:m,handlePhotoSelect:p,resetAndSelectNewPhoto:v}=H(),_=C(()=>n.value?"Проверяем...":u?"Завершить и оплатить":"Далее");return(l,d)=>{const A=J,S=le,f=ee,F=St;return g(),R("section",Ko,[y(A,{class:"step_back_link"},{default:E(()=>[o("button",{type:"button",onClick:d[0]||(d[0]=(...h)=>e(i)&&e(i)(...h))},[...d[6]||(d[6]=[o("img",{src:se,alt:""},null,-1),o("span",null,"Назад",-1)])])]),_:1}),d[10]||(d[10]=o("div",{class:"photo_head"},[o("p",{class:"add_text"},"Фото с удостоверением"),o("p",{class:"photo_note"},"Подтверждает, что регистрацию проходите вы, а не третье лицо.")],-1)),o("div",Wo,[o("div",Yo,[e(t).uploadedPhotoUrl?(g(),R("img",{key:0,class:"img_decor",src:e(t).uploadedPhotoUrl,alt:"Загруженная фотография",onClick:d[1]||(d[1]=(...h)=>e(s)&&e(s)(...h))},null,8,Go)):(g(),R("img",Qo)),e(t).uploadedPhotoUrl?(g(),R("button",{key:2,type:"button",class:"icon_button",onClick:d[2]||(d[2]=(...h)=>e(s)&&e(s)(...h))},[...d[7]||(d[7]=[o("img",{src:wt,alt:"Увеличить изображение",class:"icon_img"},null,-1)])])):N("",!0)]),o("div",{class:Q(["photo_drop",{photo_drop_done:e(t).uploadedPhotoUrl}])},[e(t).uploadedPhotoUrl?(g(),R(me,{key:0},[d[8]||(d[8]=o("span",{class:"photo_done_text"},[o("img",{src:qo,alt:"","aria-hidden":"true"}),P(" Фотография загружена ")],-1)),o("button",{type:"button",class:"photo_replace_link",onClick:d[3]||(d[3]=(...h)=>e(v)&&e(v)(...h))},"Заменить фото")],64)):(g(),R("label",Zo,[...d[9]||(d[9]=[o("span",{class:"photo_drop_plus","aria-hidden":"true"},[o("img",{src:Ho,alt:""})],-1),o("span",null,"Перетащите фото или нажмите, чтобы выбрать файл",-1)])]))],2)]),e(t).photoError?(g(),R("div",Xo,[y(S,{text:e(t).photoError},null,8,["text"])])):N("",!0),o("div",Jo,[o("input",{id:"photo_upload",type:"file",name:"photo",accept:"image/*",disabled:e(t).isPhotoLoading,class:"hidden_file-input",onChange:d[4]||(d[4]=(...h)=>e(p)&&e(p)(...h))},null,40,es),e(t).uploadedPhotoUrl?(g(),U(f,{key:1,class:"btn_decor",text:e(_),type:"button","button-padding":"auto",disabled:e(n),onClick:d[5]||(d[5]=h=>e(a).submitRegistrationStep())},null,8,["text","disabled"])):(g(),R("label",ts,V(e(t).isPhotoLoading?"Загружаем...":"Загрузить фотографию"),1))]),d[11]||(d[11]=dt('<div class="photo_rules"><span class="add_text_sm">Требования к фотографии</span><ul class="photo_block_list"><li class="list_item"><span class="check_icon" aria-hidden="true"></span><span>Вы держите удостоверение адвоката рядом с лицом</span></li><li class="list_item"><span class="check_icon" aria-hidden="true"></span><span>Все данные на удостоверении чётко видны: ФИО, Ð
1½Ð¾Ð¼ÐµÑ€, фото</span></li><li class="list_item"><span class="check_icon" aria-hidden="true"></span><span>Лицо хорошо освещено и соответствует фотографии в удостоверении</span></li><li class="list_item"><span class="check_icon" aria-hidden="true"></span><span>Удостоверение не закрывает лицо</span></li></ul><p class="text_photo_block">Фото нужно только для внутренней проверки и в общий доступ не попадает.</p></div>',1)),y(F,{visible:e(r),"photo-url":e(t).uploadedPhotoUrl,onClose:e(m)},null,8,["visible","photo-url","onClose"])])}}}),ss=Object.assign(os,{__name:"LayoutAuthRegistrationStepPhoto"}),ns={class:"success_step"},as="После прохождения модерации мы уведомим вас по указанному e-mail.",rs="А пока вы можете заполнить свой профиль!",is=I({__name:"SuccessStep",setup(c){const t=ie("lawyer");return(n,u)=>{const i=ee;return g(),R("div",ns,[u[0]||(u[0]=o("h5",{class:"success_step_title"},"Спасибо!",-1)),o("div",{class:"success_step_descr_block"},[o("p",{class:"success_step_descr"},V(as)),o("p",{class:"success_step_descr"},V(rs))]),u[1]||(u[1]=o("div",{class:"success_step_illustration","aria-hidden":"true"},[o("img",{src:Rt,alt:"Картинка модерации профиля",loading:"eager",fetchpriority:"high",decoding:"sync",class:"img_decor"})],-1)),y(i,{text:"Перейти в профиль",to:e(t),"button-padding":"auto"},null,8,["to"])])}}}),ls=Object.assign(_e(is,[["__scopeId","data-v-7c91a832"]]),{__name:"LayoutAuthSuccessStep"}),us={class:"registration_step"},cs=I({__name:"RegistrationStepSuccess",props:{lawyerLayout:{type:Boolean}},setup(c){const{prevStep:t}=H();return(n,u)=>{const i=J,a=ls;return g(),R("section",us,[y(i,null,{default:E(()=>[o("button",{type:"button",onClick:u[0]||(u[0]=(...r)=>e(t)&&e(t)(...r))},[...u[1]||(u[1]=[o("img",{src:se,alt:"Назад"},null,-1)])])]),_:1}),y(a,{class:Q({success_decor:c.lawyerLayout})},null,8,["class"])])}}}),ps=Object.assign(cs,{__name:"LayoutAuthRegistrationStepSuccess"}),ds=I({__name:"RegistrationLawyerFlow",setup(c){const{lawyerRegistration:t}=H(),n=z(!1);return Pe(()=>{n.value=!0}),(u,i)=>{const a=Ee,r=Oe,s=Ne,m=Co,p=Vo,v=ss,_=ps;return g(),R("div",null,[y(a,{steps:["form","code","education","sphere","photo","success"],"current-step":e(t).step},null,8,["current-step"]),y(Ce,{name:e(n)?"registration_step":"",mode:"out-in"},{default:E(()=>[e(t).step==="form"?(g(),U(r,{key:"lawyer-form",variant:"lawyer"})):e(t).step==="code"?(g(),U(s,{key:"lawyer-code",variant:"lawyer"})):e(t).step==="education"?(g(),U(m,{key:"lawyer-education"})):e(t).step==="sphere"?(g(),U(p,{key:"lawyer-sphere"})):e(t).step==="photo"?(g(),U(v,{key:"lawyer-photo"})):e(t).step==="success"?(g(),U(_,{key:"lawyer-success","lawyer-layout":""})):N("",!0)]),_:1},8,["name"])])}}}),Ds=Object.assign(ds,{__name:"LayoutAuthRegistrationLawyerFlow"});export{ho as _,As as a,Ds as b,Ls as s,H as u};

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.