1import{P as S,_ as V}from"./EditButton.952933e7.js";import{c as w,_ as B,ac as I,b5 as j,O as C,o,e as p,f,u as e,a3 as P,a4 as F,p as h,a as v,w as M,b0 as $,h as a,i as b,t as d,B as l,r as O,Q as A,F as L}from"./entry.c2526a57.js";import{u as R}from"./useForm.d5d04803.js";import{_ as U}from"./ProfileAboutInput.d5ccc935.js";import{d as N,m as z}from"./format.9bef4177.js";import{_ as x}from"./Chip.a029ed2c.js";import{I as D}from"./IconDeviceLaptop.07eb32f5.js";import{S as q}from"./StatusNotice.ec3b2f2c.js";var E=w("align-left","IconAlignLeft",[["path",{d:"M4 6l16 0",key:"svg-0"}],["path",{d:"M4 12l10 0",key:"svg-1"}],["path",{d:"M4 18l14 0",key:"svg-2"}]]),Q=w("map-pin","IconMapPin",[["path",{d:"M9 11a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-0"}],["path",{d:"M17.657 16.657l-4.243 4.243a2 2 0 0 1 -2.827 0l-4.244 -4.243a8 8 0 1 1 11.314 0z",key:"svg-1"}]]);const T={__name:"ProfileMainForm",emits:["close"],setup(s,{emit:n}){const u=I("user"),t=I("updateUserInfo"),{form:m,errors:r,submit:y,loading:k}=R(j,i);function i(){t(),n("close")}return C(u,c=>{m.value={about:c==null?void 0:c.personal.about}},{immediate:!0}),(c,_)=>(o(),p("form",{onSubmit:_[2]||(_[2]=F((...g)=>e(y)&&e(y)(...g),["prevent"])),class:"profile-main-form"},[f(e(U),{class:"profile-main-form__desc",modelValue:e(m).about,"onUpdate:modelValue":_[0]||(_[0]=g=>e(m).about=g),error:e(r).about},null,8,["modelValue","error"]),f(e(S),{class:P(["profile-main-form__actions",{pending:e(k)}]),onCancel:_[1]||(_[1]=g=>n("close")),onSubmit:e(y)},null,8,["onSubmit","class"])],32))}},Y=B(T,[["__scopeId","data-v-ecc0c465"]]);const G={key:0,class:"profile-main__advantages"},H={__name:"ProfileAdvantages",props:{user:{type:Object,required:!0}},setup(s){const n=s,u=h(()=>{const t=Math.floor(n.user.experience_days/365);return`${t} ${N(t,["год","года","леÑ"])}`});return(t,m)=>s.user.project_count>0||s.user.mentor_lessons>=10||s.user.experience_days>=365?(o(),p("div",G,[s.user.project_count>0?(o(),v(e(x),{key:0,"not-clickable":"",icon:""},{default:M(()=>[f(e($),{class:"icon"}),a("span",null,[b("УÑаÑÑвовал в "),a("b",null,d(s.user.project_count),1),b(" "+d(("declOfNum"in t?t.declOfNum:e(N))(s.user.project_count,["пÑоекÑе","пÑоекÑаÑ
","пÑоекÑаÑ
"]))+" на ÐлаÑÑоÑме",1)])]),_:1})):l("",!0),s.user.mentor_lessons>=10?(o(),v(e(x),{key:1,"not-clickable":"",icon:""},{default:M(()=>[f(e(D),{class:"icon"}),a("span",null,[b("ÐÑовел более "),a("b",null,d(("moreoverRound"in t?t.moreoverRound:e(z))(s.user.mentor_lessons)),1),b(" занÑÑий")])]),_:1})):l("",!0),s.user.experience_days>=365?(o(),v(e(x),{key:2,"not-clickable":"",icon:""},{default:M(()=>[f(e($),{class:"icon"}),a("span",null,"ÐпÑÑ â "+d(e(u)),1)]),_:1})):l("",!0)])):l("",!0)}},J=B(H,[["__scopeId","data-v-e3c9134d"]]);const K={class:"profile-main__header"},W={class:"profile-main__title"},X={class:"profile-main__meta"},Z={key:0,class:"profile-main__location"},ee={key:1,class:"new-dot"},se={key:1,class:"profile-main__desc-container"},oe={class:"profile-main__footer"},me={__name:"ProfileMain",props:{user:Object,compact:Boolean,isNew:Boolean},setup(s){const n=s,u=I("user"),t=I("profile.editable"),m=O(!1),r=h(()=>{var i;return((i=n.user)==null?void 0:i.personal)??n.user??u.value.personal}),y=h(()=>{var i;return!n.user||n.user.id===((i=u.value)==null?void 0:i.id)}),k=h(()=>u.value);return(i,c)=>(o(),p("div",{class:P(["profile-main",{compact:s.compact}])},[a("div",K,[a("h1",W,d(e(r).first_name)+" "+d(e(r).last_name),1),a("div",X,[e(r).city_name?(o(),p("div",Z,[f(e(Q),{class:"icon"}),a("span",null,d(e(r).city_name),1)])):l("",!0),s.isNew?(o(),p("div",ee)):l("",!0)])]),A(i.$slots,"default"),!s.compact&&e(y)&&e(k).is_mentor&&e(k).mentor_accepted===!1?(o(),v(e(q),{key:0},{default:M(()=>[b("ÐÐ°Ñ Ð¿ÑоÑÐ¸Ð»Ñ Ð½Ð°Ñ
одиÑÑÑ Ð½Ð° пÑовеÑке Ñ Ð°Ð´Ð¼Ð¸Ð½Ð¸ÑÑÑаÑии. ÐоÑле подÑвеÑÐ¶Ð´ÐµÐ½Ð¸Ñ Ð²Ñ ÑможеÑе пÑоводиÑÑ Ð·Ð°Ð½ÑÑÐ¸Ñ Ð¸ пÑбликоваÑÑÑÑ Ð² каÑалоге менÑоÑов.")]),_:1})):l("",!0),e(t)||e(r).about?(o(),p("div",se,[e(m)?(o(),v(e(Y),{key:1,onClose:c[1]||(c[1]=_=>m.value=!1)})):(o(),p(L,{key:0},[f(e(E),{class:"desc-icon"}),a("div",{class:P(["profile-main__desc",{"placeholder-hint":!e(r).about}])},d(e(r).about??"ÐобавÑÑе кÑаÑкое опиÑание"),3),e(t)?(o(),v(e(V),{key:0,class:"edit-btn",onClick:c[0]||(c[0]=_=>m.value=!0)})):l("",!0)],64))])):l("",!0),a("div",oe,[f(e(J),{user:n.user??e(u)},null,8,["user"])])],2))}};export{E as I,me as _,J as a};
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.