import{s as $e,c as K,j as s,B as H,t as Se,u as Ye,b as W,a as He,d as We,r as c,v as Ze,w as ze,x as Qe,g as Xe,y as qe,z as Ke,V as Z,A as Je,S as es,T as ss,U as he,o as ts,C as as,D as ns,E as cs}from"./index-DCzV2WLr.js";import{S as is}from"./SearchBar-mE_U2lco.js";import{l as ls,S as rs}from"./heart_icon_active-ozSvhg1H.js";import{S as os}from"./Suggestion-CyFYTq6b.js";import{I as ds}from"./InfoTooltip-Clhn9XhZ.js";import{V as pe,a as fe}from"./vacancy-Cim_OmE0.js";import{B as us}from"./BreadcrumbNav-BjQkO8Lh.js";import{E as z}from"./ErrorTooltip-Cp8vlQcf.js";import{D as Q,S as ms}from"./sort_icon-6PkDc7lz.js";import{I as X}from"./InputRadio-XY5dTGj9.js";import{N as hs}from"./Notification-AOVlMWYG.js";import{S as ps}from"./SEO-CeR71RFs.js";import"./info_icon-D8fJPANx.js";import"./Skeleton-CNHOJHEt.js";import"./formatters-D7xccmJZ.js";const fs=a=>a?new Date(a).toLocaleDateString("ru-RU",{day:"numeric",month:"long"}):"",_s=(a,i,u="в‚Ѕ")=>{const f={RUB:"в‚Ѕ",USD:"$",EUR:"€"}[u]||u,y=m=>{if(typeof m=="number")return m;if(typeof m=="string"){const N=parseInt(m,10);return isNaN(N)?void 0:N}},_=y(a),d=y(i);if(!_&&!d)return"Р·/Рї РЅРµ указана";const g=m=>m.toLocaleString("ru-RU");return _&&d?`${g(_)} - ${g(d)} ${f}`:_?`РѕС‚ ${g(_)} ${f}`:d?`РґРѕ ${g(d)} ${f}`:"Р·/Рї РЅРµ указана"},gs=a=>a?{EXPERIENCE_UNSPECIFIED:"Опыт РЅРµ указан",EXPERIENCE_WITHOUT:"Без опыта",EXPERIENCE_1_TO_3_YEARS:"РћС‚ 1 РґРѕ 3 лет",EXPERIENCE_3_TO_6_YEARS:"РћС‚ 3 РґРѕ 6 лет",EXPERIENCE_6_YEARS:"Более 6 лет"}[a]||a:"Опыт РЅРµ указан",_e=({vacancy:a,applicantId:i,onApplySuccess:u,onLikeToggle:v})=>{var m;const f=$e(),y=K(),_=f(N=>{N.stopPropagation(),i&&v(a.id,!!a.isLikedByCurrentUser)}),d=f(N=>{N.stopPropagation(),!(a.hasApplied||!i)&&u(a.id)}),g=N=>{N.stopPropagation(),a.chatId?y(`/chats/${a.chatId}`):y("/chats")};return s.jsxs("li",{className:"vacancy__item",id:`vacancy-item-${a.id}`,children:[s.jsxs("div",{className:"vacancy__item-header",children:[s.jsx("a",{href:`/vacancies/detail/${a.id}`,target:"_blank",rel:"noopener noreferrer",className:"vacancy__header-text-link",children:s.jsxs("div",{className:"vacancy__header-text",children:[s.jsx("h3",{className:"vacancy__title h3",children:a.title}),s.jsx("p",{className:"vacancy__subtitle h2",children:_s(a.salaryFrom,a.salaryTo,a.salaryCurrency)})]})}),s.jsx("button",{className:"icon__button like__button",onClick:_,children:a.isLikedByCurrentUser?s.jsx("img",{src:ls}):s.jsx(rs,{className:"like__vacancy-icon"})})]}),s.jsxs("div",{className:"vacancy__info",children:[s.jsx("p",{className:"vacancy__city body-3",children:a.city||"Город РЅРµ указан"}),((m=a.company)==null?void 0:m.companyName)&&s.jsx("p",{className:"vacancy__company body-3",children:a.company.companyName}),s.jsx("p",{className:"vacancy__experience body-3",children:gs(a.workingExperience)})]}),a.coefficient&&a.coefficient>0&&s.jsx(os,{type:"classic",text:"Рта вакансия РїРѕРґС…РѕРґРёС‚ вам РЅР°",className:"vacancy__item-suggestion",showPlusSign:!1,number:(a.coefficient*100).toFixed(0),rightContent:s.jsx(ds,{tooltipText:"Пройдите РѕРїСЂРѕСЃРЅРёРєРё РІ Профиле РІ разделе Личные качества для повышения точности соответствия вакансий персонально для вас",type:"normal",position:"right",gap:22})}),a.createdAt&&s.jsxs("span",{className:"vacancy__date body-3",children:["Опубликовано ",fs(a.createdAt)]}),a.responseStatus==="RESPONSE_STATUS_REJECTED"?s.jsx(H,{className:"vacancy__button",variant:"outlined",disabled:!0,children:"Отказ"}):a.hasApplied?s.jsx(H,{className:"vacancy__button",variant:"outlined",onClick:g,children:"Перейти РІ чат"}):s.jsx(H,{className:"vacancy__button",onClick:d,children:"Откликнуться"})]})},Cs="data:image/svg+xml,%3csvg%20width='29'%20height='28'%20viewBox='0%200%2029%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_8470_3701)'%3e%3cpath%20d='M27.8168%2010.9888C26.0073%208.04183%2021.8913%203.0975%2014.6673%203.0975C7.4433%203.0975%203.3273%208.04183%201.5178%2010.9888C0.958412%2011.8936%200.662109%2012.9363%200.662109%2014C0.662109%2015.0637%200.958412%2016.1064%201.5178%2017.0112C3.3273%2019.9582%207.4433%2024.9025%2014.6673%2024.9025C21.8913%2024.9025%2026.0073%2019.9582%2027.8168%2017.0112C28.3762%2016.1064%2028.6725%2015.0637%2028.6725%2014C28.6725%2012.9363%2028.3762%2011.8936%2027.8168%2010.9888ZM25.8276%2015.7897C24.2736%2018.3167%2020.7561%2022.5692%2014.6673%2022.5692C8.57846%2022.5692%205.06096%2018.3167%203.50696%2015.7897C3.17462%2015.2519%202.99859%2014.6322%202.99859%2014C2.99859%2013.3678%203.17462%2012.7481%203.50696%2012.2103C5.06096%209.68333%208.57846%205.43083%2014.6673%205.43083C20.7561%205.43083%2024.2736%209.67867%2025.8276%2012.2103C26.16%2012.7481%2026.336%2013.3678%2026.336%2014C26.336%2014.6322%2026.16%2015.2519%2025.8276%2015.7897Z'%20fill='%239A9CB0'/%3e%3cpath%20d='M14.6673%208.16667C13.5136%208.16667%2012.3858%208.50878%2011.4265%209.14976C10.4672%209.79073%209.71953%2010.7018%209.27802%2011.7677C8.83651%2012.8336%208.72099%2014.0065%208.94607%2015.138C9.17115%2016.2696%209.72672%2017.309%2010.5425%2018.1248C11.3583%2018.9406%2012.3977%2019.4962%2013.5293%2019.7212C14.6608%2019.9463%2015.8337%2019.8308%2016.8996%2019.3893C17.9655%2018.9478%2018.8766%2018.2001%2019.5176%2017.2408C20.1585%2016.2815%2020.5007%2015.1537%2020.5007%2014C20.4988%2012.4535%2019.8836%2010.9708%2018.7901%209.87726C17.6965%208.7837%2016.2138%208.16852%2014.6673%208.16667ZM14.6673%2017.5C13.9751%2017.5%2013.2984%2017.2947%2012.7228%2016.9101C12.1473%2016.5256%2011.6986%2015.9789%2011.4337%2015.3394C11.1688%2014.6999%2011.0995%2013.9961%2011.2346%2013.3172C11.3696%2012.6382%2011.703%2012.0146%2012.1924%2011.5251C12.6819%2011.0356%2013.3056%2010.7023%2013.9845%2010.5673C14.6634%2010.4322%2015.3672%2010.5015%2016.0067%2010.7664C16.6463%2011.0313%2017.1929%2011.4799%2017.5775%2012.0555C17.962%2012.6311%2018.1673%2013.3078%2018.1673%2014C18.1673%2014.9283%2017.7986%2015.8185%2017.1422%2016.4749C16.4858%2017.1313%2015.5956%2017.5%2014.6673%2017.5Z'%20fill='%239A9CB0'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_8470_3701'%3e%3crect%20width='28'%20height='28'%20fill='white'%20transform='translate(0.666992)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Ss="data:image/svg+xml,%3csvg%20width='29'%20height='28'%20viewBox='0%200%2029%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_8470_4439)'%3e%3cpath%20d='M22.8337%201.16666H6.50033C4.9538%201.16852%203.47114%201.78369%202.37758%202.87725C1.28402%203.97081%200.668845%205.45347%200.666992%207L0.666992%2021C0.668845%2022.5465%201.28402%2024.0292%202.37758%2025.1227C3.47114%2026.2163%204.9538%2026.8315%206.50033%2026.8333H22.8337C24.3802%2026.8315%2025.8628%2026.2163%2026.9564%2025.1227C28.05%2024.0292%2028.6651%2022.5465%2028.667%2021V7C28.6651%205.45347%2028.05%203.97081%2026.9564%202.87725C25.8628%201.78369%2024.3802%201.16852%2022.8337%201.16666ZM6.50033%203.5H22.8337C23.5322%203.50137%2024.2144%203.71176%2024.7924%204.1041C25.3704%204.49644%2025.8178%205.05277%2026.077%205.7015L17.1427%2014.637C16.4852%2015.2919%2015.595%2015.6595%2014.667%2015.6595C13.739%2015.6595%2012.8488%2015.2919%2012.1913%2014.637L3.25699%205.7015C3.51617%205.05277%203.96354%204.49644%204.54155%204.1041C5.11955%203.71176%205.80174%203.50137%206.50033%203.5ZM22.8337%2024.5H6.50033C5.57207%2024.5%204.68183%2024.1312%204.02545%2023.4749C3.36907%2022.8185%203.00033%2021.9283%203.00033%2021V8.75L10.5417%2016.2867C11.6367%2017.379%2013.1203%2017.9924%2014.667%2017.9924C16.2137%2017.9924%2017.6973%2017.379%2018.7923%2016.2867L26.3337%208.75V21C26.3337%2021.9283%2025.9649%2022.8185%2025.3085%2023.4749C24.6522%2024.1312%2023.7619%2024.5%2022.8337%2024.5Z'%20fill='%239A9CB0'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_8470_4439'%3e%3crect%20width='28'%20height='28'%20fill='white'%20transform='translate(0.666992)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",ge=({viewsCount:a=0,appliesCount:i=0})=>{const u=K(),v=Se(),f=()=>{const d=new URLSearchParams(v.search);d.delete("tab");const g=d.toString();return g?`?${g}`:""},y=()=>{u(`/vacancies/viewed${f()}`)},_=()=>{u(`/vacancies/applied${f()}`)};return s.jsx(s.Fragment,{children:s.jsx("div",{className:"vacancy__aside",children:s.jsxs("div",{className:"vacancy__aside-links",children:[s.jsxs("div",{className:"vacancy__aside-container",onClick:y,children:[s.jsxs("div",{className:"vacancy__aside-data",children:[s.jsx("span",{className:"vacancy__count",children:a}),s.jsx("p",{className:"vacancy__category",children:"Просмотренные вакансии"})]}),s.jsx("img",{className:"vacancy__icon",src:Cs,alt:"Eye Icon"})]}),s.jsxs("div",{className:"vacancy__aside-container",onClick:_,children:[s.jsxs("div",{className:"vacancy__aside-data",children:[s.jsx("span",{className:"vacancy__count",children:i}),s.jsx("p",{className:"vacancy__category",children:"Отклики"})]}),s.jsx("img",{className:"vacancy__icon",src:Ss,alt:"Envelope Icon"})]})]})})})},q=[{value:"FILTER_SORTING_UNSPECIFIED",label:"РџРѕ соответствию"},{value:"FILTER_SORTING_BY_DATE",label:"РџРѕ дате изменения"},{value:"FILTER_SORTING_BY_SALARY_DESC",label:"РџРѕ убыванию зарплаты"},{value:"FILTER_SORTING_BY_SALARY_ASC",label:"РџРѕ возрастанию зарплаты"}],Ce=[...q,{value:"COEFFICIENT_DESC",label:"РџРѕ убыванию % совместимости"},{value:"COEFFICIENT_ASC",label:"РџРѕ возрастанию % совместимости"}],Es=(a=768)=>{const[i,u]=c.useState(window.innerWidth<a);return c.useEffect(()=>{const v=()=>u(window.innerWidth<a);return window.addEventListener("resize",v),()=>window.removeEventListener("resize",v)},[a]),i};function Us(){Ye();const{isAuthenticated:a,userId:i}=W(e=>e.auth),{vacancies:u,totalCount:v,isLoading:f,isFetchingMore:y,error:_,nextPageToken:d,hasMore:g,compatibleVacancies:m,isLoadingCompatible:N}=W(e=>e.vacancy),{coefficients:I}=W(e=>e.user),C=He(),{filterType:l}=We(),T=K(),x=Se(),b=Es(),[F,J]=c.useState(""),[Ee,k]=c.useState([]),[ee,O]=c.useState(0),[se,A]=c.useState(0),[L,U]=c.useState(!0),[V,te]=c.useState(!1),[ve,ae]=c.useState(!1),[D,ye]=c.useState("all"),[M,Ne]=c.useState("all"),P=c.useMemo(()=>new URLSearchParams(x.search),[x.search]),be=P.get("tab")==="compatible"?"compatible":"all",xe=P.get("sorting")||"FILTER_SORTING_UNSPECIFIED",[r,ne]=c.useState(be),[S,j]=c.useState(xe),B=c.useRef(null),ce=c.useRef(0),h=c.useMemo(()=>{const e=new URLSearchParams(x.search),t={},n=["workingExperience","workingSchedule","officeType"],o=new Set;return e.forEach((E,Y)=>o.add(Y)),o.forEach(E=>{E!=="tab"&&(t[E]=n.includes(E)?e.getAll(E):e.get(E))}),t},[x.search]);c.useEffect(()=>{window.scrollTo(0,0)},[l]),c.useEffect(()=>{const e=P.get("tab")==="compatible"?"compatible":"all";e!==r&&ne(e)},[P,r]),c.useEffect(()=>{if(r==="all"){const e=h.sorting;e&&e!==S?j(e):!e&&S!=="FILTER_SORTING_UNSPECIFIED"&&j("FILTER_SORTING_UNSPECIFIED")}},[h.sorting,r]),c.useEffect(()=>{r==="compatible"&&!S&&j("FILTER_SORTING_UNSPECIFIED")},[r,S]);const w=Ze(F,500);ze(V),c.useEffect(()=>{J(h.searchField||"")},[h.searchField]),c.useEffect(()=>{i&&(C(Qe(i)),C(Xe(i)))},[i,C]),c.useEffect(()=>{i&&I&&C(qe({applicantId:i,coefficients:I}))},[I,i,C]);const ie=c.useMemo(()=>I?u.map(e=>({...e,coefficient:I[e.id]})):u,[u,I]),le=c.useMemo(()=>{const e=[...m];switch(S){case"COEFFICIENT_DESC":return e.sort((t,n)=>(n.coefficient||0)-(t.coefficient||0));case"COEFFICIENT_ASC":return e.sort((t,n)=>(t.coefficient||0)-(n.coefficient||0));case"FILTER_SORTING_BY_SALARY_DESC":return e.sort((t,n)=>(Number(n.salaryFrom)||0)-(Number(t.salaryFrom)||0));case"FILTER_SORTING_BY_SALARY_ASC":return e.sort((t,n)=>(Number(t.salaryFrom)||0)-(Number(n.salaryFrom)||0));case"FILTER_SORTING_BY_DATE":return e.sort((t,n)=>{const o=new Date(t.updatedAt||t.createdAt||"").getTime();return new Date(n.updatedAt||n.createdAt||"").getTime()-o});case"FILTER_SORTING_UNSPECIFIED":default:return e.sort((t,n)=>(n.coefficient||0)-(t.coefficient||0))}},[m,S]),re=c.useMemo(()=>Object.entries(h).reduce((e,[t,n])=>n==null||n===""?e:t==="sorting"?n!=="FILTER_SORTING_UNSPECIFIED"?e+1:e:Array.isArray(n)?e+n.length:e+1,0),[h]),Ie=c.useMemo(()=>JSON.stringify(h),[h]);c.useEffect(()=>{if(l==="filter")return;const e=C(Ke({filters:h,applicantId:i,filterType:l,selectedViews:D,selectedResponse:M}));return()=>{e.abort()}},[C,Ie,i,l,D,M]),c.useEffect(()=>{var e;!l&&!b&&((e=document.querySelector(".vacancy__search-field input"))==null||e.focus())},[l,b]),c.useEffect(()=>{(async()=>{if(w.trim().length<2){k([]);return}try{const[t,n,o]=await Promise.all([he.fetchAvailableSkills(w),he.fetchAvailablePersonalQualities(w),Z.fetchVacancies({searchField:w,pageSize:5})]),E=t.slice(0,3).map(p=>({label:p.skillName,value:p.id})),Y=n.slice(0,3).map(p=>({label:p.qualityName,value:p.id})),Be=w.toLowerCase(),Ge=Array.from(new Set((o.vacancies||[]).map(p=>p.title).filter(p=>typeof p=="string"&&p.toLowerCase().includes(Be)))).map(p=>({label:p,value:p}));k([...Ge,...E,...Y])}catch(t){console.error("Error fetching suggestions:",t),k([])}})()},[w]),c.useEffect(()=>{if(!i){O(0),A(0),U(!1);return}U(!0),Promise.all([Z.fetchViewedVacancies(i),Z.fetchApplicantResponses(i)]).then(([e,t])=>{O(e.length),A(t.length)}).catch(e=>{console.error("Failed to fetch aside counts:",e),O(0),A(0)}).finally(()=>U(!1))},[i]);const G=c.useCallback(()=>{const e=document.documentElement.scrollTop,t=e>ce.current;if(ce.current=e<=0?0:e,!t||y||!g||!d||l||r!=="all")return;const n=document.documentElement.scrollHeight,o=document.documentElement.clientHeight;e+o>=n-300&&C(Je({filters:h,pageToken:d,applicantId:i}))},[y,d,C,h,i,l,r,g]);c.useEffect(()=>(window.addEventListener("scroll",G),()=>window.removeEventListener("scroll",G)),[G]);const Te=e=>J(e),oe=e=>{const t=typeof e=="string"?e:e.label,n=new URLSearchParams(x.search);t?n.set("searchField",t):n.delete("searchField"),T({search:n.toString()})},je=()=>{const e=new URLSearchParams(x.search);F&&e.set("searchField",F),b?te(!0):T({pathname:"/vacancies/filter",search:e.toString()})},$=()=>{ae(!0),setTimeout(()=>{te(!1),ae(!1)},300)},de=e=>{const t=new URLSearchParams;Object.entries(e).forEach(([n,o])=>{Array.isArray(o)?o.forEach(E=>t.append(n,E)):o&&t.set(n,o)}),b&&$(),T({pathname:"/vacancies",search:t.toString()})},ue=e=>{i&&C(cs({vacancyId:e,applicantId:i})).unwrap().then(()=>A(t=>t+1)).catch(t=>console.error("Failed to apply:",t))},me=(e,t)=>{i&&C(t?as({vacancyId:e,applicantId:i}):ns({vacancyId:e,applicantId:i}))},we=e=>{l==="filter"&&B.current&&(e.preventDefault(),B.current.applyFilters())},Fe=e=>{if(e==="compatible"&&!a){C(ts("auth"));return}ne(e);const t=new URLSearchParams(x.search);e==="compatible"?(t.set("tab","compatible"),t.delete("sorting"),S.startsWith("COEFFICIENT")||j("FILTER_SORTING_UNSPECIFIED")):(t.delete("tab"),S.startsWith("COEFFICIENT")&&(t.delete("sorting"),j("FILTER_SORTING_UNSPECIFIED"))),T({search:t.toString()},{replace:!0})},Re=e=>{const t=String(e);if(j(t),r==="all"){const n=new URLSearchParams(x.search);t==="FILTER_SORTING_UNSPECIFIED"?n.delete("sorting"):n.set("sorting",t),T({search:n.toString()})}},Ae=c.useMemo(()=>{const t=(r==="compatible"?Ce:q).find(n=>n.value===S);return t?t.label:"РџРѕ соответствию"},[S,r]),R=l?{viewed:"Просмотры",applied:"Отклики",liked:"Рзбранное",filter:"Фильтры"}[l]:null,Le=c.useMemo(()=>{let e="Вакансии";return R?e+=` - ${R}`:r==="compatible"&&(e+=" - РџРѕ совместимости"),e},[R,r]),Pe=l?[{label:"Вакансии",href:"/vacancies",onClick:we},{label:R,isCurrent:!0}]:[],ke=[{value:"all",label:"Р’СЃРµ просмотры"},{value:"today",label:"Сегодня"},{value:"week",label:"Р—Р° неделю"}],Oe=[{value:"all",label:"Р’СЃРµ отклики"},{value:"viewed",label:"Просмотрен"},{value:"not_viewed",label:"РќРµ просмотрен"},{value:"rejected",label:"Отказ"}],Ue=()=>{const e={viewed:{title:"Нет просмотренных вакансий",message:"Р’С‹ ещё РЅРµ просматривали РЅРё РѕРґРЅРѕР№ вакансии."},applied:{title:"Нет откликов",message:"Р’С‹ ещё РЅРµ откликались РЅР° вакансии."},liked:{title:"Нет избранных вакансий",message:"Р’С‹ ещё РЅРµ добавляли вакансии РІ избранное."},filtered:{title:"Вакансии РЅРµ найдены",message:"РџРѕ вашему запросу ничего РЅРµ найдено. Попробуйте изменить фильтры."},default:{title:"Вакансии РїРѕРєР° отсутствуют",message:"Вакансии Р±СѓРґСѓС‚ добавлены 18.10.2025, Рё Сѓ вас будет возможность СЃ РЅРёРјРё ознакомиться Рё откликнуться. РџРѕРєР° РІС‹ можете заполнить информацию Рѕ себе РІ разделе Профиль. Там Р¶Рµ РјРѕР¶РЅРѕ ознакомиться СЃ тестами."}};let t="default";l&&e[l]?t=l:!l&&re>0&&(t="filtered");const{title:n,message:o}=e[t];return s.jsx(z,{title:n,message:o})},Ve=!V&&l||l&&!b,De=()=>s.jsx(s.Fragment,{children:ie.length>0?s.jsx("ul",{className:"vacancy__list",children:ie.map(e=>s.jsx(_e,{vacancy:e,applicantId:i,onApplySuccess:ue,onLikeToggle:me},e.id))}):s.jsx("div",{className:"vacancy__list",children:Ue()})}),Me=()=>s.jsx(s.Fragment,{children:N?s.jsx("ul",{className:"vacancy__list",children:Array.from({length:3}).map((e,t)=>s.jsx(fe,{},t))}):le.length>0?s.jsxs(s.Fragment,{children:[s.jsx(hs,{type:"accent",className:"compatibility-notification",children:"Вакансии РЅРёР¶Рµ имеют процент совместимости персонально для вас. Чем выше %, тем больше вам РїРѕРґС…РѕРґСЏС‚ эти вакансии согласно вашим личным качествам, мотивационным Рё ценностным ожиданиям РѕС‚ будущей работы."}),s.jsx("ul",{className:"vacancy__list",children:le.map(e=>s.jsx(_e,{vacancy:e,applicantId:i,onApplySuccess:ue,onLikeToggle:me},e.id))})]}):s.jsx("div",{className:"vacancy__list",children:s.jsx(z,{title:"Нет подходящих вакансий",message:"РњС‹ РЅРµ смогли найти вакансии, которые соответствуют вашему профилю. Попробуйте пройти тесты или заполнить профиль."})})});return s.jsxs(s.Fragment,{children:[s.jsx(ps,{title:Le,description:"Найти работу РІ лучших компаниях без резюме. Сервис подберет вакансии персонально для вас РїРѕ совместимости ценностей Рё ожиданий РѕС‚ будущей работы.",canonicalUrl:"/vacancies",type:"website"}),s.jsxs("div",{className:"vacancy",children:[Ve&&s.jsx(us,{className:"vacancy__breadcrumbnav",items:Pe,mobile:!1}),a&&!l&&s.jsx(ge,{viewsCount:L?0:ee,appliesCount:L?0:se}),!l&&s.jsx("div",{className:"vacancy__search-field",children:s.jsx(is,{type:"forward",placeholder:"Название, навык или качество",filter:"display",onSearch:()=>oe(F),value:F,onInputValueChange:Te,onFilterClick:je,suggestions:Ee,onSuggestionSelect:oe,filterCount:re,allowClear:!0})}),s.jsxs("div",{className:"main",children:[s.jsxs("div",{className:"vacancy__container",children:[(l||!b)&&s.jsx("div",{className:"vacancy__container-header",children:l&&l!=="filter"?s.jsxs(s.Fragment,{children:[s.jsx("a",{href:"/vacancies",className:"vacancy__container-header-icon",onClick:e=>{e.preventDefault(),T("/vacancies")},children:s.jsx(es,{className:"vacancy__header-icon"})}),s.jsx("h1",{className:"vacancy__container-title h1",children:R}),s.jsx("span",{className:"vacancy__count-filter body-3",children:f?0:v}),!b&&l==="viewed"&&s.jsx(Q,{buttonText:"Фильтр",position:"right",className:"vacancy__filter-dropdownbutton",children:s.jsx(X,{name:"views",options:ke,value:D,onChange:e=>ye(String(e))})}),!b&&l==="applied"&&s.jsx(Q,{buttonText:"Фильтр",position:"right",className:"vacancy__filter-dropdownbutton",children:s.jsx(X,{name:"responses",options:Oe,value:M,onChange:e=>Ne(String(e))})})]}):null}),!l&&s.jsxs(s.Fragment,{children:[s.jsx("h1",{className:"vacancy__container-title h1",children:"Вакансии"}),s.jsxs("div",{className:"toggletab__container-vacancy",children:[s.jsx(ss,{items:[{id:"all",label:"Р’СЃРµ",count:v},{id:"compatible",label:"РџРѕ совместимости",count:a?m.length:0}],activeTab:r,onTabChange:Fe}),s.jsx(Q,{buttonText:Ae,position:b?"left":"right",icon:s.jsx(ms,{}),children:s.jsx(X,{name:"vacanciesSort",options:r==="compatible"?Ce:q,value:S,onChange:Re})})]})]}),l==="filter"?s.jsx(pe,{ref:B,onApplyFilters:de,initialFilters:h}):f?s.jsx("ul",{className:"vacancy__list",children:Array.from({length:5}).map((e,t)=>s.jsx(fe,{},t))}):_?s.jsx("ul",{className:"vacancy__list",children:s.jsx(z,{message:_})}):r==="all"?De():Me()]}),a&&!l&&s.jsx(ge,{viewsCount:L?0:ee,appliesCount:L?0:se})]}),V&&s.jsx("div",{className:"mobile-filter-overlay",onClick:$,children:s.jsx("div",{className:`mobile-filter-sheet ${ve?"closing":""}`,onClick:e=>e.stopPropagation(),children:s.jsx(pe,{isMobileView:!0,onApplyFilters:de,onCloseMobileView:$,initialFilters:h})})})]})]})}export{Us as VacancyPage};