import{s as Oe,c as G,j as t,B as D,t as _e,u as Ue,b as oe,a as Be,d as De,r as c,v as $e,w as Ye,x as He,y as Ge,S as ze,T as Ze,V as j,U as de,o as Qe,z as We,A as Xe,C as qe}from"./index-B0l7MJae.js";import{S as Ke}from"./SearchBar-B7fCnw--.js";import{l as Je,S as et}from"./heart_icon_active-CnPsOTYo.js";import{S as tt}from"./Suggestion-DeHZmY8e.js";import{I as st}from"./InfoTooltip-CAxvV2g2.js";import{V as ue,a as at}from"./VacancyFilter-DOSRwDXd.js";/* empty css */import{B as it}from"./BreadcrumbNav-C6IL3LBG.js";import{E as I}from"./ErrorTooltip-c2LJx5qZ.js";import{D as $,S as nt}from"./sort_icon-NO0wLgq2.js";import{I as Y}from"./InputRadio-CGndXS2B.js";import{N as ct}from"./Notification-mrPXJ-fu.js";import{S as lt}from"./SEO-B-oJyWo9.js";import"./info_icon-CXgrQoWq.js";import"./Skeleton-Co_BiD55.js";import"./formatters-CUqYEqQZ.js";const rt=s=>s?new Date(s).toLocaleDateString("ru-RU",{day:"numeric",month:"long"}):"",ot=(s,u,_="в‚Ѕ")=>{const m={RUB:"в‚Ѕ",USD:"$",EUR:"€"}[_]||_,b=o=>{if(typeof o=="number")return o;if(typeof o=="string"){const i=parseInt(o,10);return isNaN(i)?void 0:i}},r=b(s),h=b(u);if(!r&&!h)return"Р·/Рї РЅРµ указана";const C=o=>o.toLocaleString("ru-RU");return r&&h?`${C(r)} - ${C(h)} ${m}`:r?`РѕС‚ ${C(r)} ${m}`:h?`РґРѕ ${C(h)} ${m}`:"Р·/Рї РЅРµ указана"},dt=s=>s?{EXPERIENCE_UNSPECIFIED:"Опыт РЅРµ указан",EXPERIENCE_WITHOUT:"Без опыта",EXPERIENCE_1_TO_3_YEARS:"РћС‚ 1 РґРѕ 3 лет",EXPERIENCE_3_TO_6_YEARS:"РћС‚ 3 РґРѕ 6 лет",EXPERIENCE_6_YEARS:"Более 6 лет"}[s]||s:"Опыт РЅРµ указан",ut=({vacancy:s,applicantId:u,onApplySuccess:_,onLikeToggle:g})=>{var i;const m=Oe(),b=G(),r=s.status==="VACANCY_STATUS_DRAFT"||s.status==="VACANCY_STATUS_ARCHIVED",h=m(S=>{S.stopPropagation(),!(!u||r)&&g(s.id,!!s.isLikedByCurrentUser)}),C=m(S=>{S.stopPropagation(),!(s.hasApplied||!u||r)&&_(s.id)}),o=S=>{S.stopPropagation(),!r&&(s.chatId?b(`/chats/${s.chatId}`):b("/chats"))};return t.jsxs("li",{className:`vacancy__item ${r?"vacancy__item--inactive":""}`,id:`vacancy-item-${s.id}`,children:[t.jsxs("div",{className:"vacancy__item-header",children:[t.jsx("a",{href:`/vacancies/detail/${s.id}`,target:"_blank",rel:"noopener noreferrer",className:"vacancy__header-text-link",children:t.jsxs("div",{className:"vacancy__header-text",children:[t.jsx("h3",{className:"vacancy__title h3",children:s.title}),t.jsx("p",{className:"vacancy__subtitle h2",children:ot(s.salaryFrom,s.salaryTo,s.salaryCurrency)})]})}),t.jsx("button",{className:"icon__button like__button",onClick:h,disabled:r,children:s.isLikedByCurrentUser?t.jsx("img",{src:Je,alt:""}):t.jsx(et,{className:"like__vacancy-icon"})})]}),t.jsxs("div",{className:"vacancy__info",children:[t.jsx("p",{className:"vacancy__city body-3",children:s.city||"Город РЅРµ указан"}),((i=s.company)==null?void 0:i.companyName)&&t.jsx("p",{className:"vacancy__company body-3",children:s.company.companyName}),t.jsx("p",{className:"vacancy__experience body-3",children:dt(s.workingExperience)})]}),s.coefficient&&s.coefficient>0&&t.jsx(tt,{type:"classic",text:"Рта вакансия РїРѕРґС…РѕРґРёС‚ вам РЅР°",className:"vacancy__item-suggestion",showPlusSign:!1,number:(s.coefficient*100).toFixed(0),rightContent:t.jsx(st,{tooltipText:"Пройдите РѕРїСЂРѕСЃРЅРёРєРё РІ Профиле РІ разделе Личные качества для повышения точности соответствия вакансий персонально для вас",type:"normal",position:"right",gap:22})}),s.createdAt&&t.jsxs("span",{className:"vacancy__date body-3",children:["Опубликовано ",rt(s.createdAt)]}),s.responseStatus==="RESPONSE_STATUS_REJECTED"?t.jsx(D,{className:"vacancy__button",variant:"outlined",disabled:!0,children:"Отказ"}):s.hasApplied?t.jsx(D,{className:"vacancy__button",variant:"outlined",onClick:o,disabled:r,children:"Перейти РІ чат"}):t.jsx(D,{className:"vacancy__button",onClick:C,disabled:r,children:"Откликнуться"})]})},mt="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",ht="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",me=({viewsCount:s=0,appliesCount:u=0})=>{const _=G(),g=_e(),m=()=>{const h=new URLSearchParams(g.search);h.delete("tab");const C=h.toString();return C?`?${C}`:""},b=()=>{_(`/vacancies/viewed${m()}`)},r=()=>{_(`/vacancies/applied${m()}`)};return t.jsx(t.Fragment,{children:t.jsx("div",{className:"vacancy__aside",children:t.jsxs("div",{className:"vacancy__aside-links",children:[t.jsxs("div",{className:"vacancy__aside-container",onClick:b,children:[t.jsxs("div",{className:"vacancy__aside-data",children:[t.jsx("span",{className:"vacancy__count",children:s}),t.jsx("p",{className:"vacancy__category",children:"Просмотренные вакансии"})]}),t.jsx("img",{className:"vacancy__icon",src:mt,alt:"Eye Icon"})]}),t.jsxs("div",{className:"vacancy__aside-container",onClick:r,children:[t.jsxs("div",{className:"vacancy__aside-data",children:[t.jsx("span",{className:"vacancy__count",children:u}),t.jsx("p",{className:"vacancy__category",children:"Отклики"})]}),t.jsx("img",{className:"vacancy__icon",src:ht,alt:"Envelope Icon"})]})]})})})},H=[{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:"РџРѕ возрастанию зарплаты"}],he=[...H,{value:"FILTER_SORTING_BY_SIMILARITY",label:"РџРѕ убыванию % совместимости"}],pe=[{value:"all",label:"Р’СЃРµ просмотры"},{value:"today",label:"Сегодня"},{value:"week",label:"Р—Р° неделю"}],fe=[{value:"all",label:"Р’СЃРµ отклики"},{value:"viewed",label:"Просмотрен"},{value:"not_viewed",label:"РќРµ просмотрен"},{value:"rejected",label:"Отказ"}],pt=(s=768)=>{const[u,_]=c.useState(window.innerWidth<s);return c.useEffect(()=>{const g=()=>_(window.innerWidth<s);return window.addEventListener("resize",g),()=>window.removeEventListener("resize",g)},[s]),u};function Ft(){Ue();const{isAuthenticated:s,userId:u}=oe(e=>e.auth),{vacancies:_,totalCount:g,isLoading:m,isFetchingMore:b,error:r,nextPageToken:h,hasMore:C}=oe(e=>e.vacancy),o=Be(),{filterType:i}=De(),S=G(),x=_e(),y=pt(),[N,z]=c.useState(""),[ge,P]=c.useState([]),[Z,Ce]=c.useState(0),[Q,W]=c.useState(0),[A,k]=c.useState(!0),[M,X]=c.useState(!1),[Se,q]=c.useState(!1),[R,K]=c.useState("all"),[T,J]=c.useState("all"),[ee,te]=c.useState(0),[se,ae]=c.useState(0),ie=c.useMemo(()=>new URLSearchParams(x.search),[x.search]),l=ie.get("tab")==="compatible"?"compatible":"all",F=ie.get("sorting")||"FILTER_SORTING_UNSPECIFIED",V=c.useRef(null),ne=c.useRef(0),p=c.useMemo(()=>{const e=new URLSearchParams(x.search),a={},n=["workingExperience","workingSchedule","officeType"],d=new Set;return e.forEach((v,B)=>d.add(B)),d.forEach(v=>{v!=="tab"&&(a[v]=n.includes(v)?e.getAll(v):e.get(v))}),a},[x.search]),ve=c.useMemo(()=>JSON.stringify(p),[p]),L=c.useMemo(()=>{const{sorting:e,...a}=p;return a},[p]),be=c.useMemo(()=>JSON.stringify(L),[L]);c.useEffect(()=>{K("all"),J("all"),window.scrollTo(0,0)},[i]);const E=$e(N,500);Ye(M),c.useEffect(()=>{z(p.searchField||"")},[p.searchField]),c.useEffect(()=>{i||m||(l==="all"?te(g):l==="compatible"&&ae(g))},[g,l,i,m]),c.useEffect(()=>{if(i)return;let e=!1;return(async()=>{try{let n=0;l==="compatible"?n=await j.fetchVacanciesTotal({...L}):s&&l==="all"&&(n=await j.fetchVacanciesTotal({...L,similarity:!0})),e||(l==="compatible"?te(n):s&&l==="all"&&ae(n))}catch(n){console.error(n)}})(),()=>{e=!0}},[be,l,s,i]),c.useEffect(()=>{if(i||!s){k(!1);return}let e=!1;return k(!0),(async()=>{try{const[n,d]=await Promise.all([j.fetchVacanciesTotal({viewed:!0}),j.fetchVacanciesTotal({applied:!0})]);e||(Ce(n||0),W(d||0))}catch(n){console.error(n)}finally{e||k(!1)}})(),()=>{e=!0}},[s,i]);const ce=c.useMemo(()=>Object.entries(p).reduce((e,[a,n])=>n==null||n===""?e:a==="sorting"?n!=="FILTER_SORTING_UNSPECIFIED"?e+1:e:Array.isArray(n)?e+n.length:e+1,0),[p]);c.useEffect(()=>{if(i==="filter")return;const e={...p,similarity:l==="compatible"?!0:void 0},a=o(He({filters:e,filterType:i,selectedResponse:T}));return()=>{a.abort()}},[o,ve,i,T,l]),c.useEffect(()=>{var e;!i&&!y&&((e=document.querySelector(".vacancy__search-field input"))==null||e.focus())},[i,y]),c.useEffect(()=>{(async()=>{if(E.trim().length<2){P([]);return}try{const[a,n,d]=await Promise.all([de.fetchAvailableSkills(E),de.fetchAvailablePersonalQualities(E),j.fetchVacancies({searchField:E,pageSize:5})]),v=a.slice(0,3).map(f=>({label:f.skillName,value:f.id})),B=n.slice(0,3).map(f=>({label:f.qualityName,value:f.id})),Me=E.toLowerCase(),Ve=Array.from(new Set((d.vacancies||[]).map(f=>f.title).filter(f=>typeof f=="string"&&f.toLowerCase().includes(Me)))).map(f=>({label:f,value:f}));P([...Ve,...v,...B])}catch(a){console.error("Error fetching suggestions:",a),P([])}})()},[E]);const O=c.useCallback(()=>{const e=document.documentElement.scrollTop,a=e>ne.current;if(ne.current=e<=0?0:e,!a||b||!C||!h)return;const n=document.documentElement.scrollHeight,d=document.documentElement.clientHeight;if(e+d>=n-300){const v={...p,similarity:l==="compatible"?!0:void 0};o(Ge({filters:v,pageToken:h,filterType:i}))}},[b,h,o,p,i,l,C]);c.useEffect(()=>(window.addEventListener("scroll",O),()=>window.removeEventListener("scroll",O)),[O]);const ye=e=>z(e),le=e=>{const a=typeof e=="string"?e:e.label,n=new URLSearchParams(x.search);a?n.set("searchField",a):n.delete("searchField"),S({search:n.toString()})},xe=()=>{const e=new URLSearchParams(x.search);N&&e.set("searchField",N),y?X(!0):S({pathname:"/vacancies/filter",search:e.toString()})},U=()=>{q(!0),setTimeout(()=>{X(!1),q(!1)},300)},re=e=>{const a=new URLSearchParams;Object.entries(e).forEach(([n,d])=>{Array.isArray(d)?d.forEach(v=>a.append(n,v)):d&&a.set(n,d)}),y&&U(),S({pathname:"/vacancies",search:a.toString()})},Te=e=>{s&&o(qe({vacancyId:e})).unwrap().then(()=>W(a=>a+1)).catch(a=>console.error("Failed to apply:",a))},Ee=(e,a)=>{s&&u&&o(a?We({vacancyId:e,applicantId:u}):Xe({vacancyId:e,applicantId:u}))},Ne=e=>{i==="filter"&&V.current&&(e.preventDefault(),V.current.applyFilters())},we=e=>{if(e==="compatible"&&!s){o(Qe("auth"));return}const a=new URLSearchParams(x.search);e==="compatible"?(a.set("tab","compatible"),a.delete("sorting")):(a.delete("tab"),F==="FILTER_SORTING_BY_SIMILARITY"&&a.delete("sorting")),S({search:a.toString()},{replace:!0})},je=e=>{const a=String(e),n=new URLSearchParams(x.search);a==="FILTER_SORTING_UNSPECIFIED"?n.delete("sorting"):n.set("sorting",a),S({search:n.toString()})},Ie=c.useMemo(()=>{const a=(l==="compatible"?he:H).find(n=>n.value===F);return a?a.label:"РџРѕ соответствию"},[F,l]),Ae=c.useMemo(()=>{const e=pe.find(a=>a.value===R);return e?e.label:"Фильтр"},[R]),Re=c.useMemo(()=>{const e=fe.find(a=>a.value===T);return e?e.label:"Фильтр"},[T]),w=i?{viewed:"Просмотры",applied:"Отклики",liked:"Рзбранное",filter:"Фильтры"}[i]:null,Fe=c.useMemo(()=>{let e="Вакансии";return w?e+=` - ${w}`:l==="compatible"&&(e+=" - РџРѕ совместимости"),e},[w,l]),Le=i?[{label:"Вакансии",href:"/vacancies",onClick:Ne},{label:w,isCurrent:!0}]:[],Pe=()=>{if(i==="applied"&&T!=="all")return t.jsx(I,{title:"Отклики РЅРµ найдены",message:"Р’ выбранном статусе Сѓ вас РїРѕРєР° нет откликов."});if(i==="viewed"&&R!=="all")return t.jsx(I,{title:"Просмотры РЅРµ найдены",message:"Р—Р° выбранный период РІС‹ РЅРµ просматривали вакансии."});const e={viewed:{title:"Нет просмотренных вакансий",message:"Р’С‹ ещё РЅРµ просматривали РЅРё РѕРґРЅРѕР№ вакансии."},applied:{title:"Нет откликов",message:"Р’С‹ ещё РЅРµ откликались РЅР° вакансии."},liked:{title:"Нет избранных вакансий",message:"Р’С‹ ещё РЅРµ добавляли вакансии РІ избранное."},filtered:{title:"Вакансии РЅРµ найдены",message:"РџРѕ вашему запросу ничего РЅРµ найдено. Попробуйте изменить фильтры."},default:{title:"Вакансии РїРѕРєР° отсутствуют",message:"Вакансии Р±СѓРґСѓС‚ добавлены 18.10.2025, Рё Сѓ вас будет возможность СЃ РЅРёРјРё ознакомиться Рё откликнуться. РџРѕРєР° РІС‹ можете заполнить информацию Рѕ себе РІ разделе Профиль. Там Р¶Рµ РјРѕР¶РЅРѕ ознакомиться СЃ тестами."}};let a="default";i&&e[i]?a=i:!i&&ce>0&&(a="filtered");const{title:n,message:d}=e[a];return t.jsx(I,{title:n,message:d})},ke=!M&&i||i&&!y;return t.jsxs(t.Fragment,{children:[t.jsx(lt,{title:Fe,description:"Найти работу РІ лучших компаниях без резюме. Сервис подберет вакансии персонально для вас РїРѕ совместимости ценностей Рё ожиданий РѕС‚ будущей работы.",canonicalUrl:"/vacancies",type:"website"}),t.jsxs("div",{className:"vacancy",children:[ke&&t.jsx(it,{className:"vacancy__breadcrumbnav",items:Le,mobile:!1}),s&&!i&&t.jsx(me,{viewsCount:A?0:Z,appliesCount:A?0:Q}),!i&&t.jsx("div",{className:"vacancy__search-field",children:t.jsx(Ke,{type:"forward",placeholder:"Название, навык или качество",filter:"display",onSearch:()=>le(N),value:N,onInputValueChange:ye,onFilterClick:xe,suggestions:ge,onSuggestionSelect:le,filterCount:ce,allowClear:!0})}),t.jsxs("div",{className:"main",children:[t.jsxs("div",{className:"vacancy__container",children:[(i||!y)&&t.jsx("div",{className:"vacancy__container-header",children:i&&i!=="filter"?t.jsxs(t.Fragment,{children:[t.jsx("a",{href:"/vacancies",className:"vacancy__container-header-icon",onClick:e=>{e.preventDefault(),S("/vacancies")},children:t.jsx(ze,{className:"vacancy__header-icon"})}),t.jsx("h1",{className:"vacancy__container-title h1",children:w}),t.jsx("span",{className:"vacancy__count-filter body-3",children:m?0:i?g:l==="compatible"?se:ee}),!y&&i==="viewed"&&t.jsx($,{buttonText:Ae,position:"right",className:"vacancy__filter-dropdownbutton",children:t.jsx(Y,{name:"views",options:pe,value:R,onChange:e=>K(String(e))})}),!y&&i==="applied"&&t.jsx($,{buttonText:Re,position:"right",className:"vacancy__filter-dropdownbutton",children:t.jsx(Y,{name:"responses",options:fe,value:T,onChange:e=>J(String(e))})})]}):null}),!i&&t.jsxs(t.Fragment,{children:[t.jsx("h1",{className:"vacancy__container-title h1",children:"Вакансии"}),t.jsxs("div",{className:"toggletab__container-vacancy",children:[t.jsx(Ze,{items:[{id:"all",label:"Р’СЃРµ",count:ee},{id:"compatible",label:"РџРѕ совместимости",count:s?se:0}],activeTab:l,onTabChange:we}),t.jsx($,{buttonText:Ie,position:y?"left":"right",icon:t.jsx(nt,{}),children:t.jsx(Y,{name:"vacanciesSort",options:l==="compatible"?he:H,value:F,onChange:je})})]})]}),i==="filter"?t.jsx(ue,{ref:V,onApplyFilters:re,initialFilters:p}):m?t.jsx("ul",{className:"vacancy__list",children:Array.from({length:5}).map((e,a)=>t.jsx(at,{},a))}):r?t.jsx("ul",{className:"vacancy__list",children:t.jsx(I,{message:r})}):_.length>0?t.jsxs(t.Fragment,{children:[l==="compatible"&&t.jsx(ct,{type:"accent",className:"compatibility-notification",children:"Вакансии РЅРёР¶Рµ имеют процент совместимости персонально для вас. Чем выше %, тем больше вам РїРѕРґС…РѕРґСЏС‚ эти вакансии согласно вашим личным качествам, мотивационным Рё ценностным ожиданиям РѕС‚ будущей работы."}),t.jsx("ul",{className:"vacancy__list",children:_.map(e=>t.jsx(ut,{vacancy:e,applicantId:u,onApplySuccess:Te,onLikeToggle:Ee},e.id))})]}):t.jsx("div",{className:"vacancy__list",children:l==="compatible"?t.jsx(I,{title:"Нет подходящих вакансий",message:"РњС‹ РЅРµ смогли найти вакансии, которые соответствуют вашему профилю. Попробуйте пройти тесты или заполнить профиль."}):Pe()})]}),s&&!i&&t.jsx(me,{viewsCount:A?0:Z,appliesCount:A?0:Q})]}),M&&t.jsx("div",{className:"mobile-filter-overlay",onClick:U,children:t.jsx("div",{className:`mobile-filter-sheet ${Se?"closing":""}`,onClick:e=>e.stopPropagation(),children:t.jsx(ue,{isMobileView:!0,onApplyFilters:re,onCloseMobileView:U,initialFilters:p})})})]})]})}export{Ft as VacancyPage};