1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},a=(new e.Error).stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="016be685-9286-4417-9fb9-7d58e570c4f6",e._sentryDebugIdIdentifier="sentry-dbid-016be685-9286-4417-9fb9-7d58e570c4f6")}()}catch(e){}!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var a=1;a<arguments.length;a++){var n=arguments[a];if(null!=n)for(var c in n)n.hasOwnProperty(c)&&(e[c]=n[c])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:sentry-js-hh-filter-key":!0})}catch(e){}}(),function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"12fd6fed7c1986f676c8235e8bbe92d7eda1b57d"}}catch(e){}}(),(globalThis.__xhh_LOADABLE_LOADED_CHUNKS__=globalThis.__xhh_LOADABLE_LOADED_CHUNKS__||[]).push([["1933"],{723134:function(e,a,n){n.d(a,{Z:()=>c});const c={"vacancy-with-checkbox":"vacancy-with-checkbox--sC4lla1NYWMNTQ1A",vacancyWithCheckbox:"vacancy-with-checkbox--sC4lla1NYWMNTQ1A",vacancy:"vacancy--beBB_aWF_MLQgWvh","vacancy-controls":"vacancy-controls--qucAyYzeDGo9Nc5m",vacancyControls:"vacancy-controls--qucAyYzeDGo9Nc5m","vacancy-controls_visible":"vacancy-controls_visible--SGV6Uw0CAyw089Lb",vacancyControlsVisible:"vacancy-controls_visible--SGV6Uw0CAyw089Lb","vacancy-comment_sticky":"vacancy-comment_sticky--A0SABKrjM58bJtvD",vacancyCommentSticky:"vacancy-comment_sticky--A0SABKrjM58bJtvD","vacancy-info-checkbox-content":"vacancy-info-checkbox-content--oIWgk1LJrcQeFMZS",vacancyInfoCheckboxContent:"vacancy-info-checkbox-content--oIWgk1LJrcQeFMZS","vacancy-info-vertical-center":"vacancy-info-vertical-center--WoEs70Mer2opaOlj",vacancyInfoVerticalCenter:"vacancy-info-vertical-center--WoEs70Mer2opaOlj"}},933298:function(e,a,n){n.d(a,{Z:()=>c});const c={"tooltip-onboarding-container":"tooltip-onboarding-container--w8_mYPy6IMXgPXO8",tooltipOnboardingContainer:"tooltip-onboarding-container--w8_mYPy6IMXgPXO8","tooltip-onboarding-img":"tooltip-onboarding-img--wz6mTAdlMLwvaj_C",tooltipOnboardingImg:"tooltip-onboarding-img--wz6mTAdlMLwvaj_C","tooltip-onboarding-list":"tooltip-onboarding-list--kV13405Q10csibQQ",tooltipOnboardingList:"tooltip-onboarding-list--kV13405Q10csibQQ","tooltip-onboarding-button-icon":"tooltip-onboarding-button-icon--wWa5pLba5EYsywfD",tooltipOnboardingButtonIcon:"tooltip-onboarding-button-icon--wWa5pLba5EYsywfD"}},262271:function(e,a,n){e.exports=n.p+"static/images/not-found__min_a0563952ec2875fb.svg"},532707:function(e,a,n){n.d(a,{y:()=>x});var c=n(787953),i=n(322815),t=n(254111),s=n(43505),r=n(347692),o=n(995992),l=n(42179),d=n(802192),m=n.n(d),h=n(606179);const p=({children:e},a)=>(0,h.jsx)("div",{ref:a,children:(0,h.jsx)(m(),{base:2,children:e})});p.displayName="components/AbstractControls/MenuContent/MenuContentComponent";const u=(0,c.forwardRef)(p),v="abstract-controls-menu-button-wrapper--fVAHPhnHMAW4qZUX",y=({controlsList:e,controlProps:a,displayAsMenu:n,analyticsOnMenuShow:d,analyticsOnMenuShowParams:m,dataQa:p,onMenuStateChange:y,actionListPlacement:x="right-top",dropProps:g,sendAnalyticsOnClick:b})=>{const[f,j,C]=(0,l.l)(!1),V=(0,c.useRef)(null),A=(0,c.useRef)(null),N=(0,o.HW)(V);(0,c.useEffect)(()=>{null==y||y(f)},[y,f]);const S=(0,c.useCallback)((n,c)=>(0,h.jsx)(h.Fragment,{children:e.map(({name:e,condition:i,Component:t,actionType:s,additionalProps:r})=>i&&(0,h.jsx)(t,{triggerType:n,onClose:c,actionType:s,...a,...r},e))}),[a,e]);if(n){const e=()=>{j(),null==b||b(),!f&&d&&N(d,m)};return(0,h.jsxs)("div",{"data-qa":p.menu,children:[(0,h.jsxs)("div",{className:v,children:["iconAsMenuTrigger"===n&&(0,h.jsx)(s.yRg,{ref:A,initialColor:"secondary",onClick:e,"data-qa":p.button}),"buttonAsMenuTrigger"===n&&(0,h.jsx)(i.z,{ref:A,mode:"secondary",hideLabel:!0,"aria-label":"Controls",onClick:e,icon:(0,h.jsx)(s.yRg,{}),"data-qa":p.button})]}),(0,h.jsx)(t.S,{visible:f,onClose:()=>C(!1),dropProps:{activatorRef:A,role:"status",placement:x,allowShrinkHeightToFitIntoViewport:!0,maxWidth:360,...g},children:(0,h.jsx)(u,{ref:V,children:S(r.zn.ButtonMenu,j)})})]})}
1return S(r.zn.Link)};y.displayName="components/AbstractControls/index/AbstractControlsComponent";const x=(0,c.memo)(y)},156221:function(e,a,n){n.d(a,{Z:()=>Z});var c=n(787953),i=n(514378),t=n.n(i),s=n(977403),r=n(969067),o=n(322815),l=n(43505),d=n(893161),m=n.n(d),h=n(384224),p=n.n(h),u=n(802192),v=n.n(u),y=n(647059),x=n.n(y),g=n(381643),b=n(995992),f=n(42179),j=n(617421),C=n(622694),V=n(254111);const A="minimal-paddings-wrapper--isgL9aTbPFAiikpc";var N=n(606179);const S=({children:e,visible:a})=>a?(0,N.jsx)("div",{className:A,children:e}):(0,N.jsx)(N.Fragment,{children:e});S.displayName="AdaptiveButtons/Menu/index/MinimalPaddingsWrapper";const T=({type:e="actionList",visible:a=!1,onClose:n,children:c,padding:i,minimalPaddings:t,...s})=>"drop"===e?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(j.U,{...s,visible:a,onClose:n,padding:t?0:i,keyboardNavigationMode:"list",autoFocusWhenOpened:!0,children:(0,N.jsx)(S,{visible:t,children:c})}),(0,N.jsx)(C.R,{height:"content",visible:a,onClose:n,children:c})]}):(0,N.jsx)(V.S,{visible:a,onClose:n,dropProps:s,children:c});T.displayName="AdaptiveButtons/Menu/index/Menu";const _=T,k="adaptive-buttons-container--i_OMRpdNDQsepQoF",w="space-between--vpq3XM4LMvE4GpeD",E="adaptive-buttons-width-computer--CdvIGqwncDsKysoR",M="item-wrapper--BoSujPnGyoSqZQ0c",I="menu-wrapper--i7DGLkgCiM02wiEt",R="is-hidden--apHXuSFi4z8L2ryl",F="without-menu--MP1fRVrt43QL3_kI",P="h-spacing-container--ummBFjA09LMR7wAv",L="full-width--f0NuNQ1wizEsRV3v",H="stretched--_qFamGSVgaL9RX2c",O="adaptiveButtons.showMore",D=({children:e,hSpacing:a,fullWidth:n})=>(0,N.jsx)("div",{className:t()(P,{[L]:n}),style:a?{gap:`${a}px`}:void 0,children:e});D.displayName="components/AdaptiveButtons/index/HSpacingWrapper";const B=({trls:e,orderMenuItems:a,renderAction:n,buttons:i,size:s,menuType:d,menuItems:u,menuPlacement:j="bottom-left",menuWithMinimalPaddings:C,menuButtonStyle:V="neutral",withEmployerVacanciesAnalytics:A=!1,containerDropHostEnabled:S=!1,redesign:T=!1,customContainerRef:P=null,hSpacing:L,checkedVacanciesLength:B,stretchButtons:Z,shouldStretchWithMenu:G})=>{const W=x()()!==y.Breakpoint.XS,{isMobile:z}=(0,r.G)(),[q,Q]=(0,c.useState)(!0),$=(0,c.useRef)(null),X=(0,c.useRef)([]),U=(0,c.useRef)(null),Y=(0,c.useRef)(null),K=(0,c.useRef)(null),[J,ee]=(0,c.useState)(0),[ae,ne]=(0,c.useState)([]),[ce,ie]=(0,c.useState)(0),[te,se,re]=(0,f.l)(!1),oe=(0,c.useCallback)(()=>re(!1),[re]),le=(0,c.useMemo)(()=>i.filter(Boolean),[i]),de=le.map((e,a)=>{var n;return(0,c.isValidElement)(e)&&null!==(n=e.key)&&void 0!==n?n:a}),me=(0,c.useMemo)(()=>u({onClose:oe}).filter(Boolean),[oe,u]),he=me.length>le.length,pe=(0,b.HW)(P||$),ue=(0,b.HW)(Y),ve=(0,c.useRef)(null);(0,c.useEffect)(()=>{if(A){pe("employer_vacancies_vacancy_button_bar",B?{count:`${B}`}:void 0)}},[B,pe,A]);const ye=(0,c.useCallback)(()=>{Q(!0)},[]);(0,c.useLayoutEffect)(()=>(window.addEventListener("resize",ye),Q(!0),()=>window.removeEventListener("resize",ye)),[ye]),(0,c.useLayoutEffect)(()=>{Q(!0)},[le]),(0,c.useLayoutEffect)(()=>{var e,a;q&&(ee((null===(e=(P||$).current)||void 0===e?void 0:e.getBoundingClientRect().width)||0),ne((null===(a=X.current)||void 0===a?void 0:a.map(e=>e.getBoundingClientRect().width))||0))},[P,q]),(0,c.useLayoutEffect)(()=>{var e;const a=L?0:4,n=((null===(e=U.current)||void 0===e?void 0:e.getBoundingClientRect().width)||0)+a;let c=0,i=0,t=0;for(const e of ae){if(c+e+(t===ae.length-1?0:n)+(L||0)>J)break;e&&(i+=1,c+=e+(L||0)),t+=1}ie(i),Q(!1)},[ae,J,L]);const xe=()=>{A&&ue("employer_vacancies_vacancy_button_bar_menu"),se()},ge={...S&&{host:$},activatorRef:K,placement:j,role:"status"},be=me.slice(ce),fe=a?a(be):be,je=z?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(m(),{onClick:xe,icon:(0,N.jsx)(g.Z,{children:(0,N.jsx)(l.gFz,{})}),"data-qa":"adaptive-buttons-menu-button"}),(0,N.jsx)(_,{type:d,visible:te,onClose:oe,minimalPaddings:C,...ge,children:(0,N.jsx)(v(),{base:2,children:fe.map(e=>e)})})]}):(0,N.jsx)(p(),{host:S&&W?$.current:void 0,show:te,layer:h.MenuLayer.Overlay,onClose:oe,placement:h.MenuPlacement.BottomEnd,render:()=>(0,N.jsx)("div",{ref:Y,children:fe}),activatorRef:ve,children:(0,N.jsx)(m(),{onClick:xe,icon:(0,N.jsx)(g.Z,{children:(0,N.jsx)(l.gFz,{})}),"data-qa":"adaptive-buttons-menu-button",innerRef:ve})}),Ce=!he&&!q&&ce===le.length,Ve=Boolean(Z&&!q&&(G||he||Ce)),Ae={menuIsOpen:te,isCalculationInProgress:q,hiddenKeys:de.slice(ce)},Ne=(0,N.jsx)(o.z,{ref:K,"data-qa":"adaptive-buttons-menu-button",mode:"secondary",size:s,style:V,icon:"small"===s?(0,N.jsx)(l.t_N,{}):(0,N.jsx)(l.yRg,{}),onClick:xe,"aria-label":e[O],hideLabel:!0,children:e[O]});return(0,N.jsxs)("div",{ref:$,className:t()(k,{[w]:!Ce&&!Ve}
1),children:[q&&(0,N.jsx)("div",{className:E,children:(0,N.jsx)(D,{hSpacing:L,children:le.map((e,a)=>(0,N.jsx)("span",{ref:e=>e&&(X.current[a]=e),children:e},a))})}),(0,N.jsx)(D,{hSpacing:L,fullWidth:Ce||Ve,children:le.slice(0,ce).map((e,a)=>(0,N.jsx)("span",{className:t()(M,{[H]:Ve}),children:n?n(e,de[a],Ae):e},a))}),(0,N.jsx)("span",{ref:U,className:t()({[I]:!!ce,[R]:q||Ce,[F]:Ce}),children:T?(0,N.jsxs)(N.Fragment,{children:[n?n(Ne,"menu",{...Ae,isCalculationInProgress:Ae.isCalculationInProgress||Ce}):Ne,(0,N.jsx)(_,{type:d,visible:te,onClose:oe,minimalPaddings:C,...ge,children:(0,N.jsx)(v(),{base:2,children:fe.map(e=>e)})})]}):je})]})};B.displayName="components/AdaptiveButtons/index/AdaptiveButtons";const Z=(0,s.x)(B)},652873:function(e,a,n){n.d(a,{I:()=>m});var c=n(787953),i=n(390506),t=n(862043),s=n(594948),r=n(468444),o=n(255717),l=n(268155);const d=(0,t.g)("employerIsChurned"),m=()=>{const e=(0,s.v)(e=>e.employerIsChurned),a=(0,s.v)(({userType:e})=>e),n=(0,i.useDispatch)(),t=a===r.FW.Employer;return(0,c.useEffect)(()=>{const a=new AbortController;return t&&null===e&&o._i.get("/shards/employer/churn",{signal:a.signal}).then(({isChurned:e})=>{n(d(e))}).catch(e=>null),()=>{a.abort()}},[n,e,t]),(0,c.useEffect)(()=>{e&&(0,l.BH)("churned_user_visit")},[e]),null}},644653:function(e,a,n){n.d(a,{i:()=>v});var c=n(892068),i=n.n(c),t=n(70013),s=n(977403),r=n(969067),o=n(322815),l=n(43505),d=n(722731),m=n(594948),h=n(606179);const p="employer.myVacancyes.newVacancy",u=({trls:e})=>{const a=(0,m.v)(e=>e.isHiringManager),{isXS:n}=(0,r.G)(),s=(0,c.useElementShown)(i().sendHHEventElementShown,{name:"employer_vacancies_new_vacancy",isIcon:!1}),u=(0,c.useElementShown)(i().sendHHEventElementShown,{name:"employer_vacancies_new_vacancy",isIcon:!0}),v=e=>{i().sendHHEventButtonClick("employer_vacancies_new_vacancy",{isIcon:e})};return a?null:(0,h.jsx)(h.Fragment,{children:n?(0,h.jsx)("span",{className:"vacancies-dashboard-actions__create-icon",children:(0,h.jsx)(o.z,{Element:t.u,mode:"primary",style:"accent","data-qa":"vacancy-create-button",to:d.s,hideLabel:!0,"aria-label":e[p],icon:(0,h.jsx)(l.CmA,{}),ref:u,onClick:()=>v(!0)})}):(0,h.jsx)("span",{className:"vacancies-dashboard-actions__create-text",children:(0,h.jsx)(o.z,{Element:t.u,mode:"primary",style:"accent","data-qa":"vacancy-create-button",to:d.s,ref:s,onClick:()=>v(!1),children:e[p]})})})};u.displayName="components/EmployerVacancies/ButtonCreateVacancy/ButtonCreateVacancyComponent";const v=(0,s.x)(u)},116125:function(e,a,n){n.d(a,{u:()=>N});var c=n(787953),i=n(421500),t=n(472749),s=n(354322),r=n(973208),o=n(42179),l=n(666055),d=n(977403),m=n(969067),h=n(617421),p=n(342253),u=n(236789),v=n(112687),y=n(43505);const x="content-wrapper--dvzvqdgkEonxgSM9";var g=n(606179);const b={[l.PE.ByAllResponsesAsc]:"employer.myvacancies.sorting-menu.item.sort-by-all-responses.asc",[l.PE.ByAllResponsesDesc]:"employer.myvacancies.sorting-menu.item.sort-by-all-responses.desc",[l.PE.ByUnseenResponsesAsc]:"employer.myvacancies.sorting-menu.item.sort-by-unseen-responses.asc",[l.PE.ByUnseenResponsesDesc]:"employer.myvacancies.sorting-menu.item.sort-by-unseen-responses.desc"},f=({trls:e,columnName:a,option:n,direction:i,currentSortOrder:t,onChangeSort:s,onClose:r})=>{const{order:o,iconColor:d}=n,m=o[i],h=m===t,p=i===l.Sr.Descending,f=(0,c.useCallback)(()=>{h||s(a,m)},[a,h,s,m]);return(0,g.jsx)(u.g,{name:"sorting-type",type:"radio",padding:16,borderRadius:12,onChange:f,onClick:r,checked:h,labelDataQa:`order-option-${m}`,toneHover:!0,flexible:!0,children:(0,g.jsxs)("div",{className:x,children:[(0,g.jsx)(v.x,{style:"primary",typography:"label-2-regular",children:e[b[m]]}),p?(0,g.jsx)(y.OKB,{initialColor:d}):(0,g.jsx)(y.H9t,{initialColor:d})]})})};f.displayName="EmployerVacancies/SortingMenu/SortingMenuItem/SortingMenuItemComponent";const j=(0,d.x)(f),C=({isOpen:e=!1,activatorRef:a,sortOptions:n,currentSortOrder:i,columnName:t,onChangeSort:s,onClose:r})=>{const{isXS:o,isS:d}=(0,m.G)();if(!a.current)return null;const u={currentSortOrder:i,columnName:t,onChangeSort:s,onClose:r};return(0,g.jsx)(h.U,{activatorRef:a,visible:e&&!(o||d),onClose:r,placement:"bottom-left",maxWidth:360,padding:16,children:(0,g.jsx)("div",{role:"radiogroup",children:(0,g.jsx)(p.z,{default:12,children:n.map(e=>(0,g.jsxs)(c.Fragment,{children:[(0,g.jsx)(j,{option:e,direction:l.Sr.Descending,...u}),(0,g.jsx)(j,{option:e,direction:l.Sr.Ascending,...u})]},`${e.order.DESCENDING}_${e.order.ASCENDING}`))})})})};C.displayName="EmployerVacancies/SortingMenu/index/SortingMenu";const V=(0,d.x)(C),A=(e,a)=>
1{const{columnName:n,sortOption:d,currentSortOrder:m,onChangeSort:h,modifier:p,sticky:u,children:v}=e,y=(0,c.useRef)(null),x=(0,i.B)(y,a),[b,f,j]=(0,o.l)(!1),C=(0,c.useCallback)(()=>j(!1),[j]),A=(0,l.fc)(d),N=A?d.find(e=>!!e.direction[null!=m?m:""]):d,S=null==N?void 0:N.direction[null!=m?m:""],T=S&&N.iconKind[S],_=!!S,k=(0,c.useCallback)(e=>{if(!N)return;const{direction:a,order:c}=N,i=c[S?(0,l.xn)(S):a.default];h(n,i,e)},[n,S,h,N]);(0,r.Wv)({onScroll:C,scrollSubscriptionCondition:b});const w=A?f:k;return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)(t.IG,{ref:x,name:n,sortedByColumn:_,sticky:u,onClick:w,canSort:!0,isHeader:!0,modifier:p,children:[v,(0,g.jsx)(s.g,{direction:T||s.l.Down,color:_?"primary":"secondary"})]}),A&&(0,g.jsx)(V,{isOpen:b,activatorRef:y,sortOptions:d,currentSortOrder:m,columnName:n,onChangeSort:h,onClose:C})]})};A.displayName="components/EmployerVacancies/SortableHeaderCell/SortableHeaderCellComponent";const N=(0,c.forwardRef)(A)},4401:function(e,a,n){n.d(a,{O:()=>s});var c=n(566252);const i="sticky-actions-bar--EQ5cxiX8PwZMde39";var t=n(606179);const s=({children:e,layer:a="iota","data-qa":n})=>(0,t.jsx)(c.m,{layer:a,children:(0,t.jsx)("div",{className:i,"data-qa":n,children:e})});s.displayName="EmployerVacancies/StickyActionsBar/index/StickyActionsBar"},977183:function(e,a,n){n.d(a,{R:()=>p});var c=n(787953),i=n(70013),t=n(977403),s=n(322815),r=n(722731),o=n(995992);const l="button_group--vBqJ8FlsfWwkDvko";var d=n(606179);const m="employer.vacancies.action.emptyList.createVacancy",h=({trls:e})=>{const a=(0,o.w9)(),n=(0,c.useCallback)(()=>a("employer_vacancies_new_vacancy",{isIcon:!1}),[a]);return(0,d.jsx)("div",{className:l,children:(0,d.jsx)(s.z,{mode:"primary",style:"accent",Element:i.u,to:r.s,onClick:n,"data-qa":"vacancy-create-empty-list",children:e[m]})})};h.displayName="EmployerVacancies/VacanciesListEmpty/VacancyCreate/VacancyCreateComponent";const p=(0,t.x)(h)},544296:function(e,a,n){n.d(a,{Z:()=>d});var c=n(969067),i=n(36887),t=n(829818),s=n(43505);const r="icon-container--Ux9NEilX_WQu_nar";var o=n(606179);const l=({title:e,description:a,action:n})=>{const{isXS:l,isMobile:d}=(0,c.G)();return(0,o.jsx)(i.V,{title:e,description:a,buttons:!!n&&(0,o.jsx)(t.N,{layout:l?"vertical":"adaptive",children:n}),paddingTop:d?40:116,paddingBottom:d?void 0:128,children:(0,o.jsx)("div",{className:r,children:(0,o.jsx)(s.txp,{initialColor:"secondary",backgroundStyle:"secondary",borderRadius:"halfHeight",padding:16})})})};l.displayName="EmployerVacancies/VacanciesListEmpty/index/VacanciesListEmpty";const d=l},23223:function(e,a,n){n.d(a,{Z:()=>h});var c=n(184291),i=n(977403),t=n(36887),s=n(829818),r=n(262271),o=n(606179);const l="employer.vacancies.not.found.title",d="employer.vacancies.not.found.description",m=({action:e,trls:a})=>{const n=(0,c.l)(r);return(0,o.jsx)(t.V,{paddingTop:116,title:a[l],description:a[d],buttons:!!e&&(0,o.jsx)(s.N,{layout:"vertical",children:e}),children:(0,o.jsx)(t.V.Image,{src:n,height:56})})};m.displayName="EmployerVacancies/VacanciesNotFound/index/VacanciesNotFound";const h=(0,i.x)(m)},145297:function(e,a,n){n.d(a,{Q:()=>d});var c=n(787953),i=n(969067),t=n(616523),s=n(405227),r=n(723134),o=n(606179);const l=({visible:e,checked:a,onChange:n},c)=>{const{isMobile:l}=(0,i.G)();return e?(0,o.jsxs)("div",{ref:c,className:r.Z.vacancyInfoCheckboxContent,children:[!l&&(0,o.jsx)(t.V,{default:6}),(0,o.jsx)(s.X,{checked:a,onChange:n})]}):null};l.displayName="EmployerVacancies/Vacancy/VacancyMainInfoCheckbox/VacancyMainInfoCheckboxComponent";const d=(0,c.forwardRef)(l)},220115:function(e,a,n){n.d(a,{Z:()=>o});var c=n(514378),i=n.n(c),t=n(723134),s=n(606179);const r=({children:e,withCheckbox:a,...n})=>(0,s.jsx)("div",{...n,className:i()(t.Z.vacancy,{[t.Z.vacancyWithCheckbox]:a}),children:e});r.displayName="EmployerVacancies/Vacancy/index/Vacancy";const o=r},26649:function(e,a,n){n.d(a,{Z:()=>F});var c=n(787953),i=n(112687),t=n(484661),s=n(892068),r=n.n(s),o=n(70013),l=n(977403),d=n(969067),m=n(622694),h=n(235357),p=n(282825),u=n(322815),v=n(678305),y=n(87014),x=n(459011),g=n(52606),b=n(281430),f=n(356504),j=n(594948),C=n(846192);const V=n.p+"static/images/vacancies-name-stat-onboarding__min_033825e1ec48f3f5.webp";var A=n(933298),N=n(606179);const S="employer.vacancies.name.stat.onboarding.title",T="employer.vacancies.name.stat.onboarding.mobileTitle",_="employer.vacancies.name.stat.onboarding.text",k={show:"employer.vacancies.name.stat.onboarding.btn.show",close:"employer.vacancies.name.stat.onboarding.btn.close",mobileClose:"employer.vacancies.name.stat.onboarding.btn.mobileClose"},w="employerVacanciesNameStatOnboarding",E=({activatorRef:e,trls:a,vacancyId:n,hasAdviceCalculatedFull:t})=>{const[s,l]=(0,c.useState)(!0),E=(0,j.v)(e=>e.infoTip.name===w),M=(0,j.v)(e=>e.vacancyStatOnboardingOnList),I=E||M,R=(0,C.Xl)(),{isMobile:F}=(0,d.G)(),P=s&&I&&R,L={vacancyId:n,isMobile:F,isFromAds:M},H=(0,f.v)({name:"employer_vacancies_health_tab_onboarding",...L}),O=()=>l(!1),D=()=>{l(!1),g.default.markAsViewed(w)},B=()=>{r().sendHHEventButtonClick("employer_vacancies_health_tab_onboarding_close",L),D()},Z=()=>{r().sendHHEventButtonClick("employer_vacancies_health_tab_onboarding_show",L),D()};return t||M?F?(0,N.jsxs)(m.R,{header:(0,N.jsx)(h.v,{showDivider:"always",title:a[T]}),footer:(0,N.jsxs)(p.W,{children:[(0,N.jsx)(u.z,{onClick:Z,mode:"primary",style:"accent",size:"small",stretched:!0,"data-qa":"tab-stat-onboarding-btn-show",Element:o.u,to:`/vacancy/${n}?activeTab=stat#analysisAndCompetitors`,children:a[k.show]}),(0,N.jsx)(u.z,{onClick:B,mode:"secondary",style:"accent",size:"small",stretched:!0,"data-qa":"tab-stat-onboarding-btn-great",children:a[k.mobileClose]})]}),visible:P,onClose:O,showDivider:"always",children:[(0,N.jsx)("div",{className:A.Z.tooltipOnboardingContainer,ref:H,children:(0,N.jsx)(b.Z,{className:A.Z.tooltipOnboardingImg,path:V,alt:a[S]})}),(0,N.jsx)(v.X,{default:12}),(0,N.jsx)(y.D,{Element:"h3",size:"medium",children:a[S]}),(0,N.jsx)(v.X,{default:2}),(0,N.jsx)(i.x,{children:a[_]}),(0,N.jsx)(v.X,{default:16})]}):(0,N.jsxs)(x.u,{visible:P,activatorRef:e,closeByClickOutside:!0,onClose:O,placement:"right-center",forcePlacement:!0,guardDistanceToActivator:10,buttons:(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(u.z,{onClick:B,style:"constant",mode:"secondary",size:"small",stretched:!0,"data-qa":"tab-stat-onboarding-btn-great",children:a[k.close]}),(0,N.jsx)(u.z,{onClick:Z,style:"constant",mode:"primary",size:"small",stretched:!0,"data-qa":"tab-stat-onboarding-btn-show",Element:o.u,to:`/vacancy/${n}?${M?"from=onboarding_tab_stat&":""}${t?"":"activeTab=stat"}`,children:a[k.show]})]}),children:[(0,N.jsx)("div",{className:A.Z.tooltipOnboardingContainer,ref:H,children:(0,N.jsx)(b.Z,{className:A.Z.tooltipOnboardingImg,path:V,alt:a[S]})}),(0,N.jsx)(v.X,{default:12}),(0,N.jsx)(y.D,{Element:"h3",size:"small",children:a[S]}),(0,N.jsx)(v.X,{default:2}),(0,N.jsx)(i.x,{children:a[_]})]}):null};
1E.displayName="components/VacancyStatOnboarding/VacanciesListTooltip/VacanciesListTooltipComponent";const M=(0,l.x)(E),I="vacancy-name--hc5aPnV0Ta3JQPb8",R=({children:e,dataQa:a,vacancyId:n,hasAdviceCalculatedFull:s,isFirstVacancy:r=!1})=>{const[o,l]=(0,c.useState)(!1),d=(0,c.useRef)(null);return(0,c.useEffect)(()=>{d.current&&d.current.scrollHeight>d.current.clientHeight&&l(!0)},[]),(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)(i.x,{typography:"subtitle-2-semibold","data-qa":a,children:[(0,N.jsx)("span",{className:I,ref:d,children:e}),r&&n&&(0,N.jsx)(M,{hasAdviceCalculatedFull:s,activatorRef:d,vacancyId:n})]}),o&&(0,N.jsx)(t.p,{placement:"top-center",activatorRef:d,children:e})]})};R.displayName="EmployerVacancies/VacancyName/index/VacancyName";const F=R},418419:function(e,a,n){n.d(a,{G:()=>d});var c=n(977403),i=n(529379),t=n(29197),s=n(80046),r=n(606179);const o="employer.myvacancies.sidejobLabel",l=({trls:e,employmentForm:a})=>{const n=a===i.eb.SideJob;return(0,t.w)(n)&&n?(0,r.jsx)("span",{"data-qa":"vacancies-dashboard-vacancy-sidejob",children:` ${s.MIDDLE_DOT} ${e[o]}`}):null};l.displayName="components/EmployerVacancies/VacancySidejobExpMark/VacancySidejobExpMarkComponent";const d=(0,c.x)(l)},119750:function(e,a,n){n.d(a,{J:()=>s});var c=n(347692),i=n(995992),t=n(606179);const s=e=>{const{triggerType:a,triggerName:n,triggerTarget:s="_blank",onTrigger:r,additionalAnalyticsParams:o}=e,l=["statistics","edit","pfp-topup","print","restore-in-group","download-bill","activate"].includes(n)?s:void 0,d=(0,i.w9)(),m={element:`vacancies-dashboard-${n}-trigger_${a}`,buttonName:`employer_vacancies_action_${a}`};return(0,t.jsx)(c.xu,{...e,triggerTarget:l,onClick:()=>{d(`employer_vacancies_action_${a}`,{label:n,...o},!!o),r&&r()},dataQa:m,classNameForQuery:"HH-Employer-Vacancies-Analytics",magritteRedesign:!0})};s.displayName="components/EmployerVacancies/VacancyTrigger/VacancyTrigger"},367171:function(e,a,n){n.d(a,{M:()=>c});const c={menu:"vacancy-card-actions-menu",button:"vacancy-actions-button"}},387058:function(e,a,n){n.d(a,{$h:()=>G,XX:()=>z,fB:()=>O,hX:()=>Q,lH:()=>F,pg:()=>L,tQ:()=>Y,wG:()=>B,yQ:()=>X});var c=n(787953),i=n(261679),t=n(70013),s=n(977403),r=n(155462),o=n(43505),l=n(189926),d=n.n(l),m=n(209113),h=n.n(m),p=n(729315),u=n.n(p),v=n(872477),y=n(722731),x=n(583515),g=n(594948),b=n(437166),f=n(80046),j=n(8131),C=n(606179);const V={message:"employer.newVacancy.draftLoad.ok",clear:"employer.newVacancy.loaded.clear"},A={message:"employer.newVacancy.draftLoad.error"},N={message:"employer.newVacancy.templateLoad.ok",clear:"employer.newVacancy.loaded.clear"},S={message:"employer.newVacancy.templateLoad.error"},T={message:"employer.VacancyCreate.vacancySubmitGenericError"},_={message:"employer.vacancy.VacancyCreateError.publicationTime.datePublicationBefore"},k={message:"vacancy.create.autoSave.vacancySaved"},w={message:"vacancy.create.autoSave.vacancySavingError"},E={messagePre:"employer.VacancyCreate.vacancySubmitDuplicateError.message.pre",messageLink:"employer.VacancyCreate.vacancySubmitDuplicateError.message.link",messagePost:"employer.VacancyCreate.vacancySubmitDuplicateError.message.post",title:"employer.VacancyCreate.vacancySubmitDuplicateError.title"},M={autoClose:!0,autoCloseDelay:3e4},I=(e,a)=>(0,c.useEffect)(()=>{a&&!a.includes(y.s)&&e()},[e,a]),R=({trls:e,removeNotification:a})=>{const n=(0,g.v)(({router:{location:e}})=>e.pathname+e.search);I(a,n);const s=(0,c.useMemo)(()=>{const e=(0,i.j)(n);return e.params.draftId=[],e.params[x.X$]=null,e.params[x.GO]=null,e.href},[n]);return(0,C.jsxs)(c.Fragment,{children:[e[V.message],(0,C.jsx)(h(),{children:(0,C.jsx)(d(),{disableVisited:!0,Element:t.u,onClick:a,to:s,cancelScrollCorrection:!0,children:` ${e[V.clear]}`})})]})};R.displayName="components/Notifications/VacancyCreate/DraftLoadOk";const F={Element:(0,s.x)(R),kind:v.NotificationKind.Ok,...M},P=({trls:e})=>(0,C.jsx)(C.Fragment,{children:e[A.message]});P.displayName="components/Notifications/VacancyCreate/DraftLoadError";const L={Element:(0,s.x)(P),kind:v.NotificationKind.Error,...M},H=({trls:e,removeNotification:a,previousDraftId:n})=>{const s=(0,b.w)();I(a,s);const o=(0,g.v)(({vacancyCreateTemplates:e,vacancyCreateTemplateId:a})=>{var n;return null==e||null===(n=e.find(({id:e})=>e===a))||void 0===n?void 0:n.name}),l=(0,g.v)(({preparedVacancyTemplates:e,vacancyCreatePreparedTemplateId:a})=>{var n;return null==e||null===(n=e.find(({id:e})=>e===a))||void 0===n?void 0:n.name}),[m]=(0,c.useState)(o||l||""),p=(0,c.useMemo)(()=>{const e=(0,i.j)(s);return e.params.templateId=[],e.params.preparedTemplateId=[],e.params[x.X$]=null,e.params[x.GO]=null,e.params.draftId=null!==n?n:void 0,e.href},[n,s]);return(0,C.jsxs)(c.Fragment,{children:[(0,r.WU)(e[N.message],{"{name}":m.trim().replace(/\s/g,f.NON_BREAKING_SPACE)}),(0,C.jsx)(h(),{children:(0,C.jsx)(d(),{disableVisited:!0,Element:t.u,onClick:a,to:p,cancelScrollCorrection:!0,children:` ${e[N.clear]}`})})]})};
1H.displayName="components/Notifications/VacancyCreate/TemplateLoadOk";const O={Element:(0,s.x)(H),kind:v.NotificationKind.Ok,...M},D=({trls:e})=>(0,C.jsx)(C.Fragment,{children:e[S.message]});D.displayName="components/Notifications/VacancyCreate/TemplateLoadError";const B={Element:(0,s.x)(D),kind:v.NotificationKind.Error,...M},Z=({trls:e})=>(0,C.jsx)(C.Fragment,{children:e[T.message]});Z.displayName="components/Notifications/VacancyCreate/VacancySubmitGenericError";const G={Element:(0,s.x)(Z),kind:"error",autoClose:!0},W=({trls:e,...a})=>(0,C.jsx)(j.P,{showClose:!0,addon:(0,C.jsx)(o.L1_,{initialColor:"negative"}),...a,"data-qa":"draft-save-error-publication-time-notification",autohideTime:3e3,children:e[_.message]});W.displayName="components/Notifications/VacancyCreate/VacancySubmitPublicationTimeErrorComponent";const z=(0,s.x)(W),q=({trls:e,...a})=>(0,C.jsx)(j.P,{showClose:!0,addon:(0,C.jsx)(o.py_,{initialColor:"constant"}),...a,"data-qa":"draft-save-ok-notification",autohideTime:3e3,children:e[k.message]});q.displayName="components/Notifications/VacancyCreate/DraftSaveOkComponent";const Q=(0,s.x)(q),$=({trls:e,...a})=>(0,C.jsx)(j.P,{showClose:!0,addon:(0,C.jsx)(o.Xdw,{initialColor:"constant"}),...a,children:e[w.message]});$.displayName="components/Notifications/VacancyCreate/DraftSaveErrorComponent";const X=(0,s.x)($),U=({trls:e})=>(0,C.jsxs)(c.Fragment,{children:[(0,C.jsx)(u(),{children:e[E.title]}),(0,C.jsxs)("div",{children:[e[E.messagePre]," ",(0,C.jsx)(d(),{disableVisited:!0,Element:t.u,to:"/employer/vacancies",target:"_blank",children:e[E.messageLink]})," ",e[E.messagePost]]})]});U.displayName="components/Notifications/VacancyCreate/VacancySubmitDuplicateError";const Y={Element:(0,s.x)(U),kind:"error",...M}},492008:function(e,a,n){n.d(a,{x:()=>y});var c=n(787953),i=n(514378),t=n.n(i),s=n(566252),r=n(128829),o=n.n(r),l=n(342548);const d="table-header-container--OxMWFuv5_nQaeLav",m="table-container--GeLckva5c2wc8oGx",h="table-scrollbar-container--LvWY0QVz1Nohubpw",p="table-scrollbar-container_indented--xUsdApm9WAItR5RN",u="table-scrollbar-content--Gpg1PVL5QeYYm7GL";var v=n(606179);const y=({children:e,tableHeader:a,tableHeaderTopOffset:n,indented:i=!1,trigger:r=null})=>{const y=(0,c.useRef)(0),x=(0,c.useRef)(null),g=(0,c.useRef)(null),b=(0,c.useRef)(null),f=(0,c.useRef)(null),j=(0,c.useRef)(null),C=(0,c.useRef)(null),V=(0,c.useRef)(null),A=(0,c.useRef)(0),N=(0,c.useRef)(!1),[S,T]=(0,c.useState)(!1),_=(0,c.useCallback)(()=>{const e=document.querySelector(":root");if(x.current&&j.current&&C.current&&b.current&&V.current&&e&&j.current.clientWidth!==y.current){((e,a,n,c)=>{e.style.setProperty("--scrollable-container-side-space","0"),n.style.width="100%",c.style.width="100%",a.style.width="fit-content"})(e,j.current,b.current,V.current);const a=parseInt(document.body.style.paddingLeft,10)||0,c=parseInt(document.body.style.paddingRight,10)||0,i=document.body.clientWidth-a-c,t=(i-x.current.offsetWidth)/2,s=j.current.clientWidth,r=s+2*t,o=s+t>i;e.style.setProperty("--scrollable-container-side-space",`${t}px`),o?(b.current.style.width=`${r}px`,V.current.style.width=`${r}px`,C.current.style.visibility="visible"):(j.current.style.width="auto",C.current.style.visibility="hidden"),null!=g&&g.current&&(g.current.style.top=`${n}px`),C.current.style.position="sticky",y.current=j.current.clientWidth}},[n]);(0,c.useLayoutEffect)(()=>{const e=()=>y.current=0;return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),(0,c.useLayoutEffect)(()=>{y.current=0;const e="undefined"==typeof ResizeObserver?null:new ResizeObserver(_),a=x.current;return a&&(null==e||e.observe(a)),null==e||e.observe(document.body),()=>{a&&(null==e||e.disconnect())}},[_,r]);const k=(0,c.useCallback)(e=>{g.current&&(g.current.scrollLeft=e),f.current&&(f.current.scrollLeft=e),C.current&&(C.current.scrollLeft=e),window.dispatchEvent(new CustomEvent(l.C)),T(e>0)},[]),w=(0,c.useCallback)(()=>{var e;N.current||(A.current=(null===(e=g.current)||void 0===e?void 0:e.scrollLeft)||0,k(A.current))},[k]),E=(0,c.useCallback)(()=>{var e;N.current||(A.current=(null===(e=f.current)||void 0===e?void 0:e.scrollLeft)||0,k(A.current))},[k]),M=(0,c.useCallback)(()=>{var e;N.current||(A.current=(null===(e=C.current)||void 0===e?void 0:e.scrollLeft)||0,k(A.current))},[k]),I=(0,c.useCallback)(()=>{N.current=!0},[]),R=(0,c.useCallback)(({distance:e})=>{k(A.current-e)},[k]),F=(0,c.useCallback)(()=>{var e;N.current=!1,A.current=(null===(e=C.current)||void 0===e?void 0:e.scrollLeft)||0},[]);return(0,v.jsxs)("div",{ref:x,className:t()({"scrollable-container-has-scroll":S}),children:[(0,v.jsx)(o(),{onSwipeMove:R,onSwipeStart:I,onSwipeEnd:F,onSwipePrevent:F,children:({swipeContainerProps:n})=>(0,v.jsxs)("div",{...n,children:[a&&(0,v.jsx)(s.m,{layer:"epsilon",children:(0,v.jsx)("div",{className:d,ref:g,onScroll:w,
1children:(0,v.jsx)("div",{ref:b,children:a})})}),(0,v.jsx)("div",{className:m,ref:f,onScroll:E,children:(0,v.jsx)("div",{ref:j,children:(0,v.jsx)("div",{children:e})})})]})}),(0,v.jsx)(s.m,{layer:"alpha",children:(0,v.jsx)("div",{className:t()(h,{[p]:i}),ref:C,onScroll:M,children:(0,v.jsx)("div",{className:u,ref:V})})})]})};y.displayName="src/components/ScrollableContainer/ScrollableContainer"},342548:function(e,a,n){n.d(a,{C:()=>c});const c="SCROLL_SCROLLABLE_CONTAINER"},102922:function(e,a,n){n.d(a,{Z:()=>k});var c=n(787953),i=n(514378),t=n.n(i),s=n(969067),r=n(566252),o=n(616523),l=n(319363),d=n(678305),m=n(175431);const h="actions-container--LivdTQNdyiMZXBDg",p="actions-divider--O49BDlHcZE8vpkMm",u="checkbox-wrapper-mobile--JpBpnEmDKUGXhg7M",v="controls-wrapper-mobile--n7V01pDmSA3aHuNA";var y=n(606179);const x=({highlight:e,checkboxContent:a,controlsContent:n},c)=>{const{isMobile:i}=(0,s.G)();if(!a&&!n)return null;if(i)return(0,y.jsxs)(y.Fragment,{children:[a&&(0,y.jsx)("div",{className:u,children:a}),n&&(0,y.jsx)("div",{ref:c,className:v,children:n})]});const t=Boolean(a&&n);return(0,y.jsx)(l.Z,{padding:6,borderRadius:8,borderWidth:"default",style:e?"secondary":"primary",children:(0,y.jsxs)("div",{className:h,children:[a&&(0,y.jsx)("div",{children:a}),t&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(d.X,{default:6}),(0,y.jsx)("div",{className:p,children:(0,y.jsx)(m.i,{})}),(0,y.jsx)(d.X,{default:6})]}),n&&(0,y.jsx)("div",{ref:c,children:n})]})})};x.displayName="components/TableFlexible/ActionsWrapper/ActionsWrapper";const g=(0,c.forwardRef)(x),b="main-info--nKcrkZ9Uzl0KrOnx",f="main-info-header--R_jw602nDfI5mR5U",j="main-info-sticky--F8gkDFUFvg3ObwR6",C="main-info-sticky-header--JwHQnqnfGgRWo30H",V="main-info-checkbox--XymLGgCl8FkLi_Jp",A="main-info-checkbox-width--rnXOQ34iFog0qLTQ",N="main-info-checkbox-on-desktop--u90hSeD765U1E4jP",S="main-info-content--euEJbshwViI9E3nj",T="main-info-content-on-desktop--ETEFMVHYykjq0Hgv",_=({isHeader:e,children:a,checkboxContent:n,controlsContent:i,highlightActions:l})=>{const{isMobile:d}=(0,s.G)();return(0,y.jsxs)("div",{className:t()(b,{[f]:e}),children:[(0,y.jsx)(r.m,{layer:"alpha",children:(0,y.jsx)("div",{className:t()(j,{[C]:e})})}),(n||i)&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{className:t()(V,{[A]:n,[N]:!d}),children:e?(0,y.jsx)(y.Fragment,{children:(0,c.isValidElement)(n)&&n}):(0,y.jsx)(g,{highlight:l,checkboxContent:(0,c.isValidElement)(n)&&n,controlsContent:i})}),!d&&(0,y.jsx)(o.V,{default:16})]}),(0,y.jsx)("div",{className:t()(S,{[T]:!d}),children:a})]})};_.displayName="TableFlexible/TableFlexibleMainInfoWrapper/index/TableFlexibleMainInfoWrapper";const k=_},111950:function(e,a,n){n.d(a,{Z:()=>l});var c=n(787953),i=n(514378),t=n.n(i),s=n(729480),r=n(606179);const o=({children:e,isHeader:a=!1,isSelected:n=!1,disableHighlightingOnHover:c=!1,...i},o)=>(0,r.jsx)("div",{...i,ref:o,className:t()(s.Z.tableFlexibleRow,{[s.Z.tableFlexibleRowWithoutHighlighting]:c,[s.Z.tableFlexibleRowHead]:a,[s.Z.tableFlexibleRowSelected]:n}),children:e});o.displayName="components/TableFlexible/TableFlexibleRow/TableFlexibleRowComponent";const l=(0,c.forwardRef)(o)},973208:function(e,a,n){n.d(a,{t2:()=>p,Wv:()=>h,KJ:()=>m,m9:()=>d});var c=n(787953),i=n(969067),t=n(52606),s=n(924135),r=n(594948),o=n(951895),l=n(342548);const d=(e,a)=>{const[n,i,t]=(0,s.m)(!1),[r,o]=(0,c.useState)(!1);(0,c.useEffect)(()=>{r||t()},[r,t]);const l=(0,c.useCallback)(e=>{e&&a&&a(),o(e)},[a]);return{isMouseOnRow:n,isControlsMenuVisible:r,onControlsMenuStateChange:l,onRowMouseEnter:()=>{e||i()},onRowMouseLeave:()=>{e||t()}}},m=e=>{const a=(0,r.v)(o.au),n=(0,c.useMemo)(()=>e.find(e=>e===a.name),[a.name,e]),[i,s]=(0,c.useState)(!!n),l=(0,c.useCallback)(()=>{i&&n&&(s(!1),t.default.markAsViewed(n))},[i,n]);return{isInfoTipVisible:i,handleControlsMenuShown:l,hideInfoTip:()=>{s(!1)},visibleInfotipName:n}},h=({onScroll:e,scrollSubscriptionCondition:a=!0})=>{(0,c.useEffect)(()=>{let n;var c;return a?(c=e,window.addEventListener(l.C,c),window.addEventListener("scroll",c),n=()=>{window.removeEventListener(l.C,c),window.removeEventListener("scroll",c)}):n&&n(),n},[e,a])},p=()=>{const{isMobile:e}=(0,i.G)();return e?"buttonAsMenuTrigger":"iconAsMenuTrigger"}},472749:function(e,a,n){n.d(a,{m9:()=>A.m9,kw:()=>x,ZI:()=>C.Z,IG:()=>p,pZ:()=>o,EQ:()=>f,ZP:()=>S,KJ:()=>A.KJ,YQ:()=>j.Z,vu:()=>V});var c=n(787953),i=n(514378),t=n.n(i),s=n(729480),r=n(606179);const o=({Element:e="div",xs:a=!1,s:n=!1,m:c=!1,l:i=!1,children:o,...l})=>(0,r.jsx)(e,{...l,className:t()(s.Z.tableFlexibleContent,{[s.Z.tableFlexibleContentVisibleXs]:a,[s.Z.tableFlexibleContentVisibleS]:n,[s.Z.tableFlexibleContentVisibleM]:c,[s.Z.tableFlexibleContentVisibleL]:i}),children:o});
1o.displayName="components/TableFlexible/TableFlexibleAdaptiveContent/TableFlexibleAdaptiveContent";var l=n(566252);const d=e=>e.charAt(0).toUpperCase()+e.slice(1),m="tableFlexibleCell",h=({name:e,modifier:a,spacer:n=!1,isHeader:c=!1,canSort:i=!1,sortedByColumn:o=!1,sticky:h=!1,children:p,...u},v)=>{const y=e?s.Z[`${m}${d(e)}`]:"",x=a&&e?s.Z[`${m}${d(e)}${d(a)}`]:"",g=(0,r.jsx)("div",{"data-qa":e?`table-flexible-cell-${e}`:"table-flexible-cell",...u,ref:v,className:t()(s.Z.tableFlexibleCell,{[s.Z.tableFlexibleCellFirstItemSticky]:h&&!c,[s.Z.tableFlexibleCellFirstItemStickyHead]:h&&c,[s.Z.tableFlexibleCellHead]:c,[s.Z.tableFlexibleCellSorting]:i,[s.Z.tableFlexibleCellSortingActive]:o,[s.Z.tableFlexibleCellSpacer]:n,[y]:y,[x]:x}),children:p});return h?(0,r.jsx)(l.m,{layer:"alpha",children:g}):g};h.displayName="components/TableFlexible/TableFlexibleCell/TableFlexibleCellComponent";const p=(0,c.forwardRef)(h);var u=n(969067),v=n(112687),y=n(678305);const x=({children:e})=>{const{isMobile:a}=(0,u.G)();return a?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(v.x,{"data-qa":"table-flexible-cell-mobile-label",typography:"label-3-regular",style:"secondary",children:e}),(0,r.jsx)(y.X,{default:8})]}):null};x.displayName="components/TableFlexible/TableFlexibleCellMobileLabel/TableFlexibleCellMobileLabel";var g=n(52606),b=n(674936);const f=({name:e,isVisible:a,text:n,showClose:c=!0,hideInfoTip:i,renderTrigger:t})=>(0,r.jsx)(b._,{useDefaultHost:!0,visible:a,name:e,placement:"top-center",closeByClickOutside:!1,showClose:c,markAsViewedEvent:g.MarkAsViewedEvent.None,onClose:()=>{i(),g.default.markAsViewed(e)},render:t,children:n});f.displayName="components/TableFlexible/TableFlexibleControlsInfoTip/TableFlexibleControlsInfoTip";var j=n(102922),C=n(111950);const V=({children:e,disableHighlightingOnHover:a=!1,...n})=>(0,r.jsx)("div",{...n,className:t()(s.Z.tableFlexibleRowsGroup,{[s.Z.tableFlexibleRowsGroupWithoutHighlighting]:a}),children:e});V.displayName="components/TableFlexible/TableFlexibleRowsGroup/TableFlexibleRowsGroup";var A=n(973208);const N=({children:e},a)=>(0,r.jsx)("div",{ref:a,className:s.Z.tableFlexible,children:e});N.displayName="components/TableFlexible/index/TableFlexible";const S=(0,c.forwardRef)(N)},662945:function(e,a,n){n.d(a,{h:()=>x});var c=n(787953),i=n(977403),t=n(43505),s=n(8131),r=n(606179);const o="vacancyconstructor.errors.unknown",l=({trls:e,...a})=>(0,r.jsx)(s.P,{addon:(0,r.jsx)(t.L1_,{initialColor:"negative"}),"aria-label":e[o],...a,children:e[o]});l.displayName="EmployerVacancies/Archived/ErrorNotification/TransferErrorComponent";const d=(0,i.x)(l);var m=n(166122),h=n(255717),p=n(130560);const u="employer.vacancyesArchive.deleteVacancy",v="employer.vacancyesArchive.backToArchive",y=({Component:e,archivedVacancies:a,archivationType:n,triggerType:i,trls:s,hideActionName:o,onSuccessAction:l})=>{const{addNotification:y}=(0,m.lm)(),x=(0,c.useCallback)(async()=>{try{await h._i.put("/employer/vacancies-visibility",{archivationType:n,ids:a}),null==l||l()}catch(e){console.error(e),y(d)}},[y,n,a,l]);let g,b,f;if("ARCHIVED"===n)g="hide-archived-vacancies",b=s[u],f=(0,r.jsx)(t.q6q,{initialColor:"negative"});else{if("DELETED_BY_CLIENT"!==n)return null;g="restore-archived-vacancies",b=s[v],f=(0,r.jsx)(t.ryU,{})}const j=(0,p.Z)({triggerType:i,triggerName:g,icon:f});return(0,r.jsx)(e,{isPermitted:!0,triggerName:g,batchLength:a.length,triggerType:i,onTrigger:x,...j,children:o?null:b})};y.displayName="components/VacancyActions/ArchivedVacanciesVisibilityAction/ArchivedVacanciesVisibilityActionComponent";const x=(0,i.x)(y)},766624:function(e,a,n){n.d(a,{m:()=>p});var c=n(787953),i=n(977403),t=n(43505),s=n(130560),r=n(598175),o=n(157636),l=n(606179);const d="employer.vacancies.download",m="download-vacancies",h=({Component:e,triggerType:a,actionType:n,additionalAnalyticsParams:i,displayType:h=o.ez.Selected,selectedVacancyIds:p,selectedDraftIds:u,batchLength:v,dispatchModal:y,onClose:x,trls:g})=>{const b=(0,c.useCallback)(()=>{null==x||x(),y({type:r.k1,payload:{modalType:r.se,data:{displayType:h,selectedVacancyIds:p,selectedDraftIds:u}}})},[y,h,x,u,p]),f=(0,s.Z)({triggerType:a,triggerName:m,icon:(0,l.jsx)(t.py_,{})});return(0,l.jsx)(e,{onTrigger:b,triggerName:m,triggerType:a,actionType:n,additionalAnalyticsParams:i,batchLength:v,isPermitted:!0,...f,children:g[d]})};h.displayName="VacancyActions/DownloadVacancies/DownloadVacanciesAction/DownloadVacanciesActionComponent";const p=(0,i.x)(h)},452882:function(e,a,n){n.d(a,{h:()=>r});var c=n(977403),i=n(606179);const t="vacancy.tools.repostFromArchive",s=({Component:e,triggerType:a,trls:n,vacancyId:c,icon:s,iconOnly:r=!1})=>(0,i.jsx)(e,{isPermitted:!0,triggerName:"restore",triggerHref:`/employer/vacancy/restore/${c}`,triggerType:a,icon:s,children:!r&&n[t]});
1s.displayName="components/VacancyActions/RestoreAction/RestoreActionComponent";const r=(0,c.x)(s)},656530:function(e,a,n){n.d(a,{d:()=>p});var c=n(615081),i=n(977403),t=n(365128),s=n(166122),r=n(387058),o=n(924135),l=n(255717),d=n(606179);const m="vacancy.tools.repostFromArchive",h=({Component:e,triggerType:a,trls:n,vacancyId:i,icon:h})=>{const{addNotification:p}=(0,s.lm)(),[u,v]=(0,o.m)(!1),[y,x,g]=(0,o.m)(!1),[b,f]=(0,o.m)(!1),j=(0,c.E)();return(0,d.jsx)(e,{isPermitted:!0,isLoading:y,onTrigger:async()=>{if(u||y)return;let e=null;x();try{e=(await l._i.post(`/employer/vacancy/restore_fast/${i}?ignoreDuplicates=${b}`)).data.redirect,v()}catch(e){var a;const n=e;null!==(a=n.response)&&void 0!==a&&null!==(a=a.data)&&void 0!==a&&null!==(a=a.publicationResult)&&void 0!==a&&null!==(a=a.publicationError)&&void 0!==a&&a.duplicationCheck?(p(r.tQ),f()):(0,t.ZP)(n,p)}finally{g()}e&&j(e)},triggerName:"restoreFast",triggerType:a,icon:h,children:n[m]})};h.displayName="components/VacancyActions/RestoreFastAction/RestoreFastActionComponent";const p=(0,i.x)(h)},722731:function(e,a,n){n.d(a,{i:()=>i,s:()=>c});const c="/employer/vacancy/create",i="/employer/vacancy/edit_pending"},241455:function(e,a,n){n.d(a,{X:()=>i,z:()=>c});let c=function(e){return e.HhFree="HH_FREE",e.HhStandard="HH_STANDARD",e.HhStandardPlus="HH_STANDARD_PLUS",e.HhStandardPlusOptimum="HH_STANDARD_PLUS-HH_VP_OPTIMUM",e.HhPremium="HH_PREMIUM",e.HhAuction="HH_AUCTION",e.ZpPromo="ZP_PROMO",e.ZpBusiness="ZP_BUSINESS",e.ZpPremium="ZP_PREMIUM",e.ZpDemo="ZP_DEMO",e.HhAnonymous="HH_ANONYMOUS",e.HhAdvertising="HH_ADVERTISING",e.ZpAnonymous="ZP_ANONYMOUS",e.ZpCrossposting="ZP_CROSSPOSTING",e.HhSearchResultsLogo="HH_SEARCH_RESULTS_LOGO",e.HhSearchResultsLabel="HH_SEARCH_RESULTS_LABEL",e.ZpManualRenewal="ZP_MANUAL_RENEWAL",e.ZpSearchResultsLogo="ZP_SEARCH_RESULTS_LOGO",e.ZpSearchResultsLabel="ZP_SEARCH_RESULTS_LABEL",e.HhBrandSticker="HH_BRAND_STICKER",e.HhBrandStickerHistory="HH_BRAND_STICKER_HISTORY",e.HhAiAssistant="HH_AI_ASSISTANT",e.HhTrudVsem="HH_TRUDVSEM",e}({});const i="HH_STANDARD_PLUS-HH_VP_OPTIMUM"},869791:function(e,a,n){n.r(a),n.d(a,{default:()=>Rn});var c=n(787953),i=n(977403),t=n(678305),s=n(652873),r=n(788142);const o=(0,c.createContext)({checkedArchivedVacancies:[],dispatchArchivedVacanciesCheck:()=>{}});var l=n(846228),d=n(544296),m=n(977183),h=n(569802),p=n(217105),u=n(598175),v=n(723976),y=n(974318),x=n(594948),g=n(98290),b=n(969067),f=n(322815),j=n(43505),C=n(4401),V=n(390506),A=n(206001),N=n(156221),S=n(347692),T=n(644653),_=n(119750),k=n(662945),w=n(766624),E=n(157636),M=n(166122),I=n(231075),R=n(538657),F=n(130560),P=n(606179);const L="employer.myVacancyes.move.save",H=({Component:e,triggerType:a,onClose:n,archivedVacancies:i,dispatchModal:t,onSuccessAction:s,trls:r})=>{const[o,l]=(0,c.useState)(!1),d=(0,V.useDispatch)(),m="transfer-archived-vacancies",{addNotification:h}=(0,M.lm)(),p=(0,x.v)(e=>e.managersList),y=(0,F.Z)({triggerType:a,triggerName:m,icon:(0,P.jsx)(j.QUo,{})}),g=(0,v.V)(),b=(0,x.v)(e=>parseInt(e.router.location.query.employerId,10)),f=(0,x.v)(e=>{var a;return parseInt((null===(a=e.employerManager)||void 0===a?void 0:a.id)||"",10)}),C=(0,c.useCallback)(()=>{t({type:u.k1,payload:{modalType:u.TI,data:{archivedVacancies:i,onSuccessAction:s}}}),null==n||n()},[n,t,i,s]),A=(0,c.useCallback)(()=>{p.length>0?C():(l(!0),d((0,R.ZP)({params:g?{employerId:b}:{employerManagerId:f}})).then(()=>{l(!1),C()},()=>{h(I.G),l(!1)}))},[p.length,d,g,b,f,C,h]);return(0,P.jsx)(e,{isPermitted:!0,triggerName:m,triggerType:a,onTrigger:A,batchLength:i.length,isLoading:o,...y,children:r[L]})};H.displayName="components/VacancyActions/TransferArchivedVacanciesAction/TransferArchivedVacanciesActionComponent";const O=(0,i.x)(H),D=()=>{const e=(0,x.v)(e=>e.permissions);return{hasArchiveVacancyPermission:e.includes("ArchiveVacancy"),hasCreateVacancyPermission:e.includes("CreateVacancy"),hasTransferVacancyPermission:e.includes("MoveVacanciesBatch")}};var B=n(408875),Z=n(456146),G=n(261679),W=n(79507),z=n(365128),q=n(420348),Q=n(255717);const $=()=>{const e=(0,V.useDispatch)(),a=(0,W.k)(),n=(0,c.useRef)(null),{addNotification:i}=(0,M.lm)();return(0,c.useCallback)(async(c,t=0)=>{var s;
1const r=G.j.stringify(t>0?{...c,page:t}:c);a(`${location.pathname}?${r}`,void 0,{cancelFetchingData:!0}),e((0,q.jZ)()),null===(s=n.current)||void 0===s||s.abort(),n.current=new AbortController;let o=null;try{o=await Q._i.get("/shards/employer/archived_vacancies",{signal:n.current.signal,params:{...c,page:`${t}`}})}catch(e){return void(0,z.eG)(e,i)}finally{e((0,q.no)())}e((0,q.n3)(o.archivedVacancies))},[a,e,i])},X=()=>{const{dispatchArchivedVacanciesCheck:e}=(0,c.useContext)(o),a=$(),n=(0,Z.cI)();return(0,c.useCallback)(async()=>{await a(n.getState().values),e({type:h.z_})},[e,a,n])},U="actions-backoffice--aKai3xRejJUeW3Z2",Y="actions-and-filters--MujtHMkCo7swM9H7",K="vacancies-filters--kj8uPIHU5G4hDYyn",J="vacancies-actions-wrapper--i_M7XxGsvKQONKkm",ee="vacancies-batch-actions-wrapper--RvvuNzeWhTQcxbVb",ae="vacancies-filters-mobile--nVSyp7uMilYRDu4T",ne="vacancy-filters-stack--tI3svhyZ8wjZ9Ikf",ce="vacancies-search--jSzlnjYbiYbunonK",ie=["ARCHIVED","DELETED_BY_CLIENT"],te=({archivedVacancies:e,dispatchModal:a})=>{const n=(0,y.N)(),i=(0,x.v)(e=>e.employerManager),t=parseInt((null==i?void 0:i.id)||"",10),s=(0,A.Y)(e=>e.employerManagersCount),{hasCreateVacancyPermission:r,hasArchiveVacancyPermission:o,hasTransferVacancyPermission:l}=D(),{selectedArchivationType:d}=(0,x.v)(e=>e.archivedVacancies.searchParams),m=X(),h=(0,V.useDispatch)(),p=(0,c.useCallback)(async()=>{await m(),Number.isFinite(t)&&await(0,g.aB)(h,t)},[h,t,m]),u=e.length>0,v=(b=d,ie.includes(b));var b;const f=r&&n,j=l&&u&&s>1,C=o&&u&&v,M=(0,B.$)(),I=({triggerType:n,onClose:c})=>[M&&(0,P.jsx)(w.m,{Component:_.J,triggerType:n,dispatchModal:a,displayType:E.ez.Selected,selectedVacancyIds:e,batchLength:e.length,additionalAnalyticsParams:{fromPlace:"button-bar"},onClose:c},"downloadVacanciesAction"),j&&(0,P.jsx)(O,{Component:_.J,triggerType:n,archivedVacancies:e,dispatchModal:a,onSuccessAction:p,onClose:c},"transferArchivedVacanciesAction"),C&&(0,P.jsx)(k.h,{Component:_.J,triggerType:n,archivedVacancies:e,archivationType:d,onSuccessAction:p},"archivedVacanciesVisibilityAction")].filter(Boolean);return(0,P.jsxs)("div",{className:J,children:[f&&(0,P.jsx)(T.i,{}),u&&(0,P.jsx)("div",{className:ee,children:(0,P.jsx)(N.Z,{redesign:!0,buttons:I({triggerType:S.zn.Batch}).map((e,a)=>(0,P.jsx)("div",{className:"vacancies-dashboard-group-actions-item",children:e},`item${a}`)),menuItems:({onClose:e})=>I({triggerType:S.zn.ActionList,onClose:e})})})]})};te.displayName="components/ActionsAndFilters/VacanciesActions/VacanciesActions";var se=n(514378),re=n.n(se),oe=n(646692),le=n(196499),de=n(840735),me=n(248953),he=n(141811),pe=n(207140);const ue=e=>a=>{if(!a)return[];return(e.trim().length>0?a:a.slice(0,20)).map(e=>({type:"cells",items:[{data:e,value:e.text}]}))},ve={id:"ALL",text:""},ye=({name:e,options:a,placeholder:n,input:i})=>{const t=(0,Z.cI)(),s=(0,Z.U$)(e).input.value,{modifiedOptions:r,selectedFilter:o}=(0,c.useMemo)(()=>{const e=a.slice(1),n=e.find(e=>e.value===s);return{modifiedOptions:e,selectedFilter:n}},[a,s]),[l,d]=(0,c.useState)((null==o?void 0:o.label)||""),[m,h,p]=(0,he.r)(l,(a,n)=>{var c;return n&&(null==n?void 0:n.id)!==ve.id?d(n.text):d(""),t.change(e,null==n?void 0:n.id),null===(c=t.submit())||void 0===c||c.catch(console.error),!0},1),u=((e,a,n)=>{const i=e=>e.map(e=>({id:e.value,text:e.label}));return(0,c.useMemo)(()=>(0,oe.d8)({fetcher:(0,oe.aY)((0,pe.TA)({fetcher:(0,oe.l4)(i(a)),onBlurSaveFirstValue:n}),ue(e)),minCharsCount:0}),[a,n,e])})(l,r,p);return(0,P.jsx)(me.Z,{inputValue:l,onBlur:h,onSelectValidator:m,dataProvider:u,input:{component:de.I,props:{...i,onChange:d,onButtonClick:()=>{m("",ve)},placeholder:n,"data-qa":"archive-filter-suggest-input",clearable:!0}},headerTitle:n})};ye.displayName="components/ActionsAndFilters/FilterSuggest/FilterSuggest";const xe="base-filter-medium--iWH6mCUYtHMy08xQ",ge="base-filter-large--tAurVrtCE4odR5MI",be=({name:e,options:a,placeholder:n,size:i="medium",dataQa:t,isShowSuggest:s})=>{const r=(0,Z.cI)(),o=(0,c.useMemo)(()=>a.map(e=>({text:e.label,value:e.value})),[a]),l=(0,oe.oQ)(o);return(0,P.jsx)("div",{className:re()({[xe]:"medium"===i,[ge]:"large"===i}),"data-qa":t,children:(0,P.jsx)(Z.gN,{name:e,children:({input:c})=>(0,P.jsx)(P.Fragment,{children:s?(0,P.jsx)(ye,{name:e,input:c,placeholder:n,options:a}):(0,P.jsx)(le.W,{...c,value:(0,oe.j_)(String(c.value),o),type:"radio",onChange:e=>{var a;c.onChange(e.value),null===(a=r.submit())||void 0===a||a.catch(console.error)},widthEqualToActivator:!1,maxWidth:500,dataProvider:l,triggerProps:{size:"medium",stretched:!0,label:n}})})})})};
1be.displayName="components/ActionsAndFilters/BaseFilter/BaseFilter";const fe="archivedVacancies.managerFilter.placeholder",je="archivedVacancies.areaFilter.placeholder",Ce="archivedVacancies.visibilityFilter.placeholder",Ve="archivedVacancies.vacancyPublicationFormatFilter.placeholder",Ae="archivedVacancies.approvalStatusFilter.placeholder",Ne="archivedVacancies.archivationTypeFilter.placeholder",Se=({trls:e})=>{const{areaFilter:a,managerFilter:n,archivationTypeFilter:i,vacancyVisibilityFilter:t,vacancyPublicationFormatFilter:s,approvalStatusFilter:r}=(0,x.v)(e=>e.archivedVacanciesFilters),o=(0,v.V)(),l=!o,d=(0,c.useRef)(null);return(0,P.jsxs)("div",{className:ne,ref:d,children:[n.length>1&&(0,P.jsx)(be,{name:"selectedManagerId",placeholder:e[fe],options:n,dataQa:"vacancies-search__manager-select",size:"large",isShowSuggest:n.length>20}),(0,P.jsx)(be,{name:"selectedAreaId",placeholder:e[je],options:a,dataQa:"vacancies-search__region-select",isShowSuggest:a.length>20}),l&&(0,P.jsx)(be,{name:"visible",placeholder:e[Ce],options:i,dataQa:"vacancies-search__type-select"}),o&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(P.Fragment,{children:[s&&(0,P.jsx)(be,{name:"selectedVacancyPublicationFormat",placeholder:e[Ve],dataQa:"vacancies-search__vacancy-publication-format",options:s}),t&&(0,P.jsx)(be,{name:"selectedVacancyVisibility",placeholder:e[Ce],dataQa:"vacancies-search__vacancy-visibility",options:t})]}),r&&(0,P.jsx)(be,{name:"selectedApprovalStatus",placeholder:e[Ae],dataQa:"vacancies-search__vacancy-approval-select",options:r}),i&&(0,P.jsx)(be,{name:"selectedArchivationType",placeholder:e[Ne],dataQa:"vacancies-search__vacancy-archivation-select",options:i})]})]})};Se.displayName="components/ActionsAndFilters/VacanciesFilters/VacanciesFiltersComponent";const Te=(0,i.x)(Se);var _e=n(518481);const ke="employer.vacancyesArchive.vacancyName",we=({trls:e})=>{const a=(0,Z.cI)(),n=e=>{var n;"Enter"===e.key&&(null===(n=a.submit())||void 0===n||n.catch(console.error))};return(0,P.jsx)("div",{className:ce,children:(0,P.jsx)(Z.gN,{name:"query",children:({input:c})=>(0,P.jsx)(_e.M,{value:c.value,onChange:c.onChange,onFocus:c.onFocus,onBlur:c.onBlur,onButtonClick:a.submit,onKeyDown:n,clearable:!0,placeholder:e[ke],"data-qa":"archive-vacancies-search-input"})})})};we.displayName="components/ActionsAndFilters/VacanciesSearch/VacanciesSearchComponent";const Ee=(0,i.x)(we),Me="employer.vacanciesDashboard.filters",Ie="employer.vacancyesArchive.vacancyName",Re=({trls:e,dispatchModal:a})=>{const[n,i]=(0,c.useState)(!1),[s,r]=(0,c.useState)(!1),{isMobile:l}=(0,b.G)(),{checkedArchivedVacancies:d}=(0,c.useContext)(o);return(0,P.jsx)(C.O,{children:(0,P.jsxs)("div",{children:[(0,P.jsxs)("div",{className:Y,children:[(0,P.jsx)(te,{archivedVacancies:d,dispatchModal:a}),(0,P.jsxs)("div",{className:K,children:[!l&&(0,P.jsx)(Ee,{}),l&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(f.z,{hideLabel:!0,"aria-label":e[Ie],mode:"secondary","data-qa":"archive-vacancies-search-button",icon:(0,P.jsx)(j.lO1,{}),onClick:()=>i(!n)}),(0,P.jsx)(f.z,{hideLabel:!0,"aria-label":e[Me],mode:"secondary","data-qa":"archive-vacancies-filters-button",onClick:()=>r(!s),icon:(0,P.jsx)(j.xRm,{})})]})]})]}),!l&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(t.X,{default:12}),(0,P.jsx)(Te,{})]}),l&&(n||s)&&(0,P.jsxs)("div",{className:ae,children:[n&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(t.X,{default:12}),(0,P.jsx)(Ee,{})]}),s&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(t.X,{default:12}),(0,P.jsx)(Te,{})]})]})]})})};Re.displayName="components/ActionsAndFilters/index/VacanciesActionsAndFilters";const Fe=(0,i.x)(Re);var Pe=n(70013),Le=n(155462),He=n(319363);const Oe="backoffice.archive.goback",De="backoffice.vacancies.archived.found",Be=({trls:e})=>{const a=(0,x.v)(e=>e.router.location.query.employerId),{count:n}=(0,x.v)(e=>e.archivedVacancies);return(0,v.V)()?(0,P.jsxs)("div",{className:U,children:[(0,P.jsx)("div",{children:(0,P.jsx)(f.z,{mode:"secondary",Element:Pe.u,to:`/admin/employer.do?employerId=${a}`,"data-qa":"vacancy-archive__back-to-backoffice",children:e[Oe]})}),(0,P.jsx)(He.Z,{borderWidth:"default",stretched:!0,padding:12,borderRadius:12,children:(0,Le.WU)(e[De],{"{0}":n})})]}):null};
1Be.displayName="components/ActionsAndFilters/VacanciesBackofficeActions/VacanciesBackofficeActionsComponent";const Ze=(0,i.x)(Be);var Ge=n(992778);const We=({children:e})=>{const a=(0,x.v)(e=>e.archivedVacancies.searchParams),n=$(),i=(0,c.useCallback)(e=>n(e),[n]),t=(0,c.useMemo)(()=>({employerId:a.employerId,selectedAreaId:a.selectedAreaId,selectedManagerId:a.selectedManagerId,query:a.query,visible:a.visible,selectedApprovalStatus:a.selectedApprovalStatus,selectedArchivationType:a.selectedArchivationType,order:a.order,selectedVacancyPublicationFormat:a.selectedVacancyClassifyingProperties,selectedVacancyVisibility:a.selectedVacancyVisibility}),[a.employerId,a.order,a.query,a.selectedApprovalStatus,a.selectedArchivationType,a.selectedAreaId,a.selectedManagerId,a.visible,a.selectedVacancyClassifyingProperties,a.selectedVacancyVisibility]);return(0,P.jsx)(Z.l0,{onSubmit:i,initialValues:t,children:({handleSubmit:a})=>(0,P.jsx)(Ge.Z,{onSubmit:a,method:"GET",children:e})})};We.displayName="EmployerVacanciesArchived/components/ArchivedVacanciesForm/ArchivedVacanciesForm";var ze=n(23223),qe=n(492008),Qe=n(698013),$e=n(434723),Xe=n.n($e);const Ue=()=>{const e=(0,x.Y)(e=>e.archivedVacancies.count),a=(0,x.Y)(e=>Number(e.archivedVacancies.searchParams.page)),n=(0,x.Y)(e=>Number(e.archivedVacancies.searchParams.itemsOnPage)),{isMobile:c}=(0,b.G)(),i=(0,Z.cI)(),s=$();return e<=n?null:(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(t.X,{default:c?24:12}),(0,P.jsx)(Qe.i,{"data-qa":"archive-vacancies-pagination",first:1,current:a+1,last:Math.ceil(e/n),onChange:e=>{Xe()({top:0,speed:100,animationEndCallback:()=>s(i.getState().values,e-1).catch(console.error)})}})]})};Ue.displayName="components/ArchivedVacanciesList/ArchivedVacanciesPagination/ArchivedVacanciesPagination";var Ye=n(472749),Ke=n(835659),Je=n(786865),ea=n(405227),aa=n(744120),na=n(196579),ca=n(112687),ia=n(220115),ta=n(26649),sa=n(418419),ra=n(973208),oa=n(924135),la=n(24003),da=n(642053),ma=n(80046);const ha="archived-vacancy-tag--CZlQsKxdlVg8QJnN",pa=({icon:e,children:a,...n})=>(0,P.jsxs)("div",{className:ha,children:[e,(0,P.jsx)(ca.x,{typography:"paragraph-3-regular",...n,children:a})]});pa.displayName="components/ArchivedVacanciesList/ArchivedVacancyTag/ArchivedVacancyTag";var ua=n(419637),va=n.n(ua);const ya="employer.vacancies.archive.label.blocked",xa=({trls:e,dispatchModal:a,archivationTime:n,vacancyId:c,vacancyName:i,violations:t})=>(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(na.r,{"data-qa":"vacancies-dashboard-vacancy--archive-blocked",typography:"label-3-regular",Element:"button",style:"negative",inline:!0,onClick:()=>{va()({vacancyId:c}),a({type:u.k1,payload:{modalType:u.jJ,data:{additionalAnalyticsParams:{vacancyId:c},archivationTime:n,vacancyName:i,violations:t}}})},children:e[ya]}),` ${ma.MIDDLE_DOT} `]});xa.displayName="ArchivedVacanciesList/BlockForViolationsButton/index/BlockForViolationsButtonComponent";const ga=(0,i.x)(xa);var ba=n(532707),fa=n(367171),ja=n(452882),Ca=n(656530);const Va=e=>{switch(e){case"ARCHIVED":return"hide-archived-vacancies";case"DELETED_BY_CLIENT":return"restore-archived-vacancies";default:return""}},Aa=({employerManagerId:e,vacancyId:a,freeRestoreDays:n,displayAsMenu:i,onMenuStateChange:t,dispatchModal:s})=>{const r=(0,A.Y)(e=>e.employerManagersCount),o=X(),{selectedArchivationType:l}=(0,x.v)(e=>e.archivedVacancies.searchParams),{hasArchiveVacancyPermission:d,hasTransferVacancyPermission:m}=D(),h=(0,c.useMemo)(()=>[{name:"restore",condition:!0,Component:n>0?Ca.d:ja.h,additionalProps:{icon:(0,P.jsx)(j.VjI,{})}},{name:"transfer-archived-vacancies",condition:m&&r>1,Component:O,additionalProps:{archivedVacancies:[a],onSuccessAction:o}},{name:Va(l),Component:k.h,condition:d,additionalProps:{archivationType:l,archivedVacancies:[a],onSuccessAction:o}}],[n,r,a,o,l,d,m]),p=(0,c.useMemo)(()=>({vacancyIds:[a],employerManagerId:e,vacancyId:a,triggerType:"actionList",Component:_.J,dispatchModal:s}),[s,a,e]);return(0,P.jsx)(ba.y,{controlsList:h,controlProps:p,displayAsMenu:i,analyticsOnMenuShow:"employer_vacancies_vacancy_controls_menu",analyticsOnMenuShowParams:{vacancyId:a.toString()},dataQa:fa.M,onMenuStateChange:t})};
1Aa.displayName="components/ArchivedVacanciesList/Controls/ArchiveControls";var Na=n(459011);const Sa="prof-role-container--CVWseWwFJwM2Y6xH",Ta=({professionalRoleId:e})=>{const a=(0,c.useRef)(null),[n,i]=(0,c.useState)(!1),{profRoleText:t,specializationText:s}=(e=>{const a=(0,x.v)(({priceProfRolesPublications:e})=>null==e?void 0:e.profRoleGroupTree);let n="",c="";if(a){const i=a.find(a=>{var c;const i=null===(c=a.items)||void 0===c?void 0:c.find(a=>a.id===`role-${e}`);return n=i?i.text:"",i});c=i?i.text:""}return{profRoleText:n,specializationText:c}})(e);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("div",{className:Sa,onClick:()=>i(!0),ref:a,children:(0,P.jsx)(ca.x,{typography:"label-3-regular",style:"primary",children:t})}),(0,P.jsx)(Na.u,{placement:"top-left",activatorRef:a,visible:n,showClose:!1,onClose:()=>i(!1),children:s})]})};Ta.displayName="ArchivedVacanciesList/ProfrolesForBackoffice/index/ProfrolesForBackoffice";const _a=Ta;var ka=n(933276),wa=n(616523),Ea=n(674895),Ma=n(484661),Ia=n(622694),Ra=n(282825),Fa=n(42179);const Pa="employer.archivedVacancies.vacancyHint.responses.active",La="employer.vacancy.archive.readonlyBanner.days.one",Ha="employer.vacancy.archive.readonlyBanner.days.some",Oa="employer.vacancy.archive.readonlyBanner.days.many",Da="employer.vacancy.archive.readonlyBanner.days.zero",Ba="Clear",Za=({trls:e,readOnly:a})=>{const n=(0,c.useRef)(null),{isMobile:i}=(0,b.G)(),[t,s,r]=(0,Fa.l)(!1);return(0,c.useEffect)(()=>{i||r(!1)},[i,r]),a.value?null:(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Ea.a,{icon:j.th3,onClick:s,ref:n,"data-qa":"days-before-readonly-action"}),"number"==typeof a.daysBeforeReadOnly&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Ma.p,{activatorRef:n,placement:"top-center",children:(0,Le.WU)(e[Pa],{"{0}":(0,P.jsx)(ka.q,{many:e[Oa],some:e[Ha],one:e[La],zero:e[Da],value:a.daysBeforeReadOnly})})}),(0,P.jsx)(Ia.R,{visible:i&&t,onClose:s,footer:(0,P.jsx)(Ra.W,{children:(0,P.jsx)(f.z,{mode:"secondary",style:"accent",onClick:s,children:e[Ba]})}),children:(0,Le.WU)(e[Pa],{"{0}":(0,P.jsx)(ka.q,{many:e[Oa],some:e[Ha],one:e[La],zero:e[Da],value:a.daysBeforeReadOnly})})})]})]})};Za.displayName="ArchivedVacanciesList/ResponseCount/DaysBeforeReadOnly/DaysBeforeReadOnlyComponent";const Ga=(0,i.x)(Za);var Wa=n(22858),za=n(892068),qa=n(852078),Qa=n.n(qa),$a=n(446899),Xa=n.n($a);const Ua="employer.archivedVacancies.vacancyHint.afterReadOnly",Ya="Clear",Ka=({trls:e,readOnly:a,vacancyId:n,archivationTime:i})=>{const t=(0,c.useRef)(null),s=(0,x.v)(e=>e.archivedVacanciesReadOnlyInterval),r=a.value&&null!==s,[o,l]=(0,Fa.l)(!1),d=(0,za.useElementShown)(Xa(),{vacancyId:n,is_180_archive:!0}),m=(0,za.useElementShown)(Qa(),{vacancyId:n,is_180_archive:!0});if(!r)return null;const h=(0,Le.WU)(e[Ua],{"{0}":(0,Ke.p6)((0,Wa.Z)(new Date(i),s),"d.MM.y")});return(0,P.jsxs)("div",{ref:m,children:[(0,P.jsx)(j.GpE,{onClick:l,ref:t,"data-qa":"days-after-readonly-action",initialColor:"negative",padding:8}),(0,P.jsx)(Ma.p,{activatorRef:t,placement:"top-center",children:(0,P.jsx)("div",{ref:d,children:h})}),(0,P.jsx)(Ia.R,{visible:o,onClose:l,footer:(0,P.jsx)(Ra.W,{children:(0,P.jsx)(f.z,{mode:"secondary",style:"accent",onClick:l,children:e[Ya]})}),children:(0,P.jsx)("div",{ref:d,children:h})})]})};Ka.displayName="ArchivedVacanciesList/ResponseCount/ReadOnlyTooltip/ReadOnlyTooltipComponent";const Ja=(0,i.x)(Ka),en="wrapper--wu83KL5rlmM7Dd8E",an="employer.vacancy.responses.one",nn="employer.vacancy.responses.many",cn="employer.vacancy.responses.some",tn=({trls:e,vacancyId:a,viewCount:n=0,topicsCount:c=0,notProcessedResponsesCount:i=0,readOnly:t,isPfp:s=!1,archivationTime:r})=>{const o=(0,x.v)(e=>{var a;return null===(a=e.employerManager)||void 0===a?void 0:a.id}),l=(0,x.v)(e=>e.analyticsParams.hhtmFrom),{isMobile:d}=(0,b.G)(),m=(0,v.V)(),h=t.value,p=i>0&&!h,u="employer_candidates"===l?`/employer/candidates?vacancyId=${a}&archived=true&employerManagerId=${o}`:`/employer/vacancyresponses?vacancyId=${a}`;return(0,P.jsxs)("div",{className:en,children:[(m||c>0)&&(0,P.jsxs)(na.r,{Element:Pe.u,style:h?"neutral":"accent",typography:"label-3-regular",to:u,"data-qa":"archived-vacancy-topics-Ñount",additionalQueryParams:{[da.Ps.FromLabel]:"archived_vacancy_candidates_link"},forceHhtmForInternalLink:!0,children:[c,(0,P.jsx)(wa.V,{default:4})]}),p&&(0,P.jsxs)(na.r,{Element:Pe.u,style:"positive",typography:"label-3-regular",to:u,"data-qa":"archived-vacancy-not-processed-responses-count",additionalQueryParams:{[da.Ps.FromLabel]:"archived_vacancy_candidates_link"},forceHhtmForInternalLink:!0,children:[(0,P.jsx)(wa.V,{default:4}),(0,P.jsxs)(Je.V,{style:"positive",size:"medium",children:["+",(0,P.jsx)("span",{children:i})]})]}),c>0&&(0,P.jsxs)(P.Fragment,{children:[d&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(wa.V,{default:8}),(0,P.jsx)(na.r,{Element:Pe.u,style:"accent",typography:"label-3-regular",to:u,"data-qa":"archived-vacancy-topics-Ñount",additionalQueryParams:{[da.Ps.FromLabel]:"archived_vacancy_candidates_link"},forceHhtmForInternalLink:!0,children:(0,P.jsx)(ka.q,{hasValue:!1,many:e[cn],some:e[nn],one:e[an],value:c})})]}),(0,P.jsx)(Ga,{readOnly:t}),!s&&!!r&&(0,P.jsx)(Ja,{readOnly:t,vacancyId:a,archivationTime:r})]}),m&&(0,P.jsxs)("div",{"data-qa":"archived-vacancy-views-Ñount",children:["/",(0,P.jsx)(wa.V,{default:p?8:4}),n]})]})};
1tn.displayName="components/ArchivedVacanciesList/ResponseCount/ResponseCountComponent";const sn=(0,i.x)(tn),rn="employer.vacancy.id",on="employer.vacancies.daysBeingPublic",ln="employer.vacancies.archive.vacancyCreated",dn="employer.vacancies.archive.archived",mn="employer.vacancyesArchive.notapproved",hn="employer.vacancyesArchive.removed",pn="admin.employer.archive.vacancies.zpCrosspost",un="employer.vacancies.archive.freeRestoreTag",vn=e=>"string"==typeof e&&e.length>0?(0,Ke.p6)(e,"dd.MM.yy"):"",yn=({trls:e,vacancyId:a,approved:n,hidden:i,employerManager:s,dispatchModal:r,name:l,area:d,daysBeingPublic:m,creationTime:p,archivationTime:u,freeRestoreExpireTime:y,readOnly:x,viewCount:g,topicsCount:f,notProcessedResponsesCount:C,canCreateVacancies:V,userTestId:A,code:N,vacancyProperties:S,zpCrosspost:T,freeRestoreDays:_,professionalRoleIds:k,employmentForm:w,violations:E})=>{var M,I,R;const{checkedArchivedVacancies:F,dispatchArchivedVacanciesCheck:L}=(0,c.useContext)(o),{isMobile:H}=(0,b.G)(),[O,D,B]=(0,oa.m)(!1),[Z,G]=(0,c.useState)(!1),W=(0,v.V)(),z=A&&0!==A,q=(0,la._)(),Q=(0,ra.t2)();let $=null==S||null===(M=S.calculatedStates)||void 0===M||null===(M=M[q])||void 0===M?void 0:M.translation;var X;W&&$&&"ZP"===(null==S||null===(I=S.calculatedStates)||void 0===I||null===(I=I[q])||void 0===I?void 0:I.crosspostedFrom)&&($+=` â ${null==S||null===(X=S.calculatedStates)||void 0===X||null===(X=X.ZP)||void 0===X?void 0:X.translation}`);const U=(0,c.useMemo)(()=>F.includes(a),[F,a]),Y=null==S||null===(R=S.calculatedStates)||void 0===R||null===(R=R[q])||void 0===R?void 0:R.payForPerformance,K=null!=y&&y.javaTime?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(t.X,{default:4}),(0,P.jsx)(Je.V,{children:(0,P.jsx)("span",{"data-qa":"archive-vacancy-free-restore-tag",children:e[un].replace("{0}",(0,Ke.p6)(y.javaTime,"d MMMM"))})})]}):null,J=(0,P.jsx)(ea.X,{checked:U,onChange:()=>L({type:h.GU,payload:{itemsIds:a}}),dataQaCheckbox:"vacancies-dashboard-vacancy-archive-input",dataQaContainer:"vacancies-dashboard-vacancy-archive-label",value:a}),ee=V?(0,P.jsx)(Aa,{vacancyId:a,employerManagerId:s.managerId,freeRestoreDays:_,displayAsMenu:Q,onMenuStateChange:G,dispatchModal:r}):void 0;return(0,P.jsx)(Ye.vu,{disableHighlightingOnHover:!0,onMouseEnter:D,onMouseLeave:B,children:(0,P.jsx)(ia.Z,{withCheckbox:!0,"data-qa":`vacancy-archive_${a}`,children:(0,P.jsxs)(Ye.ZI,{disableHighlightingOnHover:!0,children:[(0,P.jsx)(Ye.IG,{name:"archiveVacancyName",sticky:!0,children:(0,P.jsxs)(Ye.YQ,{checkboxContent:J,controlsContent:ee,highlightActions:Z||O,children:[(0,P.jsxs)(aa.j,{type:"title","data-qa":"vacancies-dashboard-vacancy--archive-name",children:[(0,P.jsx)(na.r,{Element:Pe.u,style:"neutral",to:`/vacancy/${a}`,"data-qa":`vacancies-dashboard-vacancy--archive-name_${a}`,additionalQueryParams:{[da.Ps.FromLabel]:"archived_vacancy_item_title"},forceHhtmForInternalLink:!0,inline:!0,children:(0,P.jsxs)(ta.Z,{children:[l,N&&`${ma.NON_BREAKING_SPACE}(${N})`,z&&(0,P.jsxs)("span",{className:"vacancies-dashboard-vacancy-test",children:[ma.NON_BREAKING_SPACE,(0,P.jsx)(j.WtX,{})]})]})}),(0,P.jsx)(t.X,{default:4}),(0,P.jsxs)(ca.x,{typography:"label-3-regular",style:"secondary",Element:"span",children:[E&&E.length>0&&(0,P.jsx)(ga,{dispatchModal:r,archivationTime:null==u?void 0:u.javaTime,vacancyId:a,vacancyName:l,violations:E}),(0,P.jsx)("span",{"data-qa":"vacancies-dashboard-vacancy--archive-publication-type",children:$}),(0,P.jsx)(sa.G,{employmentForm:w})]}),!W&&K,W&&(0,P.jsxs)(P.Fragment,{children:[T&&(0,P.jsx)(ca.x,{typography:"label-3-regular",style:"secondary",children:e[pn]}),(0,P.jsxs)(ca.x,{typography:"label-3-regular",style:"secondary",children:[e[rn],": ",a]})]}),W&&K]}),W&&(0,P.jsxs)("div",{children:[!n&&(0,P.jsx)(pa,{icon:(0,P.jsx)(j.dz1,{initialColor:"negative"}),children:e[mn]}),i&&(0,P.jsx)(pa,{icon:(0,P.jsx)(j.mTT,{initialColor:"negative"}),children:e[hn]})]})]})}),W&&(0,P.jsx)(Ye.IG,{name:"archiveVacancyProfrole",children:k.map((e,a)=>(0,P.jsxs)(c.Fragment,{children:[0!==a&&(0,P.jsx)(t.X,{default:6}),(0,P.jsx)(_a,{professionalRoleId:e})]},e))}),(0,P.jsx)(Ye.IG,{name:"archiveVacancyArea",children:(0,P.jsx)(ca.x,{typography:"paragraph-3-regular",maxLines:2,children:d.name})}),(0,P.jsx)(Ye.IG,{name:"archiveVacancyManager",children:(0,P.jsxs)(ca.x,{typography:"label-3-regular",style:"primary",children:[s.firstName," ",s.lastName]})}),(0,P.jsx)(Ye.IG,{name:"archiveVacancyResponses",children:(0,P.jsx)(sn,{vacancyId:a,viewCount:g,to
1picsCount:f,notProcessedResponsesCount:C,readOnly:x,isPfp:Y,archivationTime:null==u?void 0:u.javaTime})}),(0,P.jsx)(Ye.IG,{name:"archiveVacancyDaysBeingPublic",children:(0,P.jsxs)(ca.x,{typography:"label-3-regular",style:"primary",children:[H&&(0,P.jsxs)(P.Fragment,{children:[e[on],`:${ma.NON_BREAKING_SPACE}`]}),m]})}),W&&(0,P.jsx)(Ye.IG,{name:"archiveVacancyCreationTime",children:(null==p?void 0:p.javaTime)&&(0,P.jsx)(ca.x,{typography:"label-3-regular",style:"primary",children:H?e[ln].replace("{0}",vn(p.javaTime)):vn(p.javaTime)})}),(0,P.jsx)(Ye.IG,{name:"archiveVacancyArchivationTime",children:(null==u?void 0:u.javaTime)&&(0,P.jsx)(ca.x,{typography:"label-3-regular",style:"primary",children:H?e[dn].replace("{0}",vn(u.javaTime)):vn(u.javaTime)})})]})})})};yn.displayName="components/ArchivedVacanciesList/ArchiveVacancy/ArchiveVacancyComponent";const xn=(0,i.x)(yn);var gn=n(420668),bn=n(430356);const fn=()=>(0,P.jsx)(gn.Z,{loading:!0,children:(0,P.jsx)(Ye.ZP,{children:[0,1,2,3,4,5,6,7,8,9].map(e=>(0,P.jsx)(Ye.vu,{children:(0,P.jsxs)(Ye.ZI,{children:[(0,P.jsx)(Ye.IG,{name:"archiveVacancyName",sticky:!0,children:(0,P.jsx)(bn.b.Skeleton,{align:"top",height:24,width:165+Math.ceil(125*Math.random())})}),(0,P.jsx)(Ye.IG,{name:"archiveVacancyArea",children:(0,P.jsx)(bn.b.Skeleton,{align:"top",height:24,width:100+Math.ceil(50*Math.random())})}),(0,P.jsx)(Ye.IG,{name:"archiveVacancyManager",children:(0,P.jsx)(bn.b.Skeleton,{align:"top",height:24,width:100+Math.ceil(100*Math.random())})}),(0,P.jsx)(Ye.IG,{name:"archiveVacancyResponses",children:(0,P.jsx)(bn.b.Skeleton,{align:"top",height:24,width:50+Math.ceil(10*Math.random())})}),(0,P.jsx)(Ye.IG,{name:"archiveVacancyDaysBeingPublic",children:(0,P.jsx)(bn.b.Skeleton,{align:"top",height:24,width:50+Math.ceil(10*Math.random())})}),(0,P.jsx)(Ye.IG,{name:"archiveVacancyArchivationTime",children:(0,P.jsx)(bn.b.Skeleton,{align:"top",height:24,width:75})})]})},e))})});fn.displayName="components/ArchivedVacanciesList/ArchivedVacanciesContentLoader/ArchivedVacanciesContentLoader";const jn=({dispatchModal:e})=>{const a=(0,x.v)(e=>e.archivedVacancies.vacancies),n=(0,x.v)(e=>e.archivedVacancies.canCreateVacancies);return(0,x.v)(e=>e.archivedVacancies.fetching)?(0,P.jsx)(fn,{}):(0,P.jsx)("div",{className:"vacancy-dashboard-archive",children:(0,P.jsx)(Ye.ZP,{children:a.map(({name:a,area:c,employerManager:i,daysBeingPublic:t,creationTime:s,archivationTime:r,freeRestoreExpireTime:o,vacancyId:l,approved:d,hidden:m,viewCount:h,topicsCount:p,notProcessedResponsesCount:u,readOnly:v,code:y,userTestId:x,vacancyProperties:g,zpCrosspost:b,freeRestoreDays:f,professionalRoleIds:j,closedForApplicants:C,employmentForm:V,violations:A})=>(0,P.jsx)(xn,{vacancyId:l,approved:d,hidden:m,code:y,userTestId:x,name:a,area:c,closedForApplicants:C,dispatchModal:e,employerManager:i,viewCount:h,topicsCount:p,daysBeingPublic:t,creationTime:s,archivationTime:r,freeRestoreExpireTime:o,notProcessedResponsesCount:u,readOnly:v,vacancyProperties:g,freeRestoreDays:f,canCreateVacancies:n,zpCrosspost:b,professionalRoleIds:j,employmentForm:V,violations:A},l))})})};jn.displayName="components/ArchivedVacanciesList/ArchivedVacanciesTableContent/ArchivedVacanciesTableContent";var Cn=n(116125),Vn=n(145297),An=n(666055);const Nn=["archiveVacancyName","archiveVacancyProfrole","archiveVacancyArea","archiveVacancyManager","archiveVacancyResponses","archiveVacancyDaysBeingPublic","archiveVacancyCreationTime","archiveVacancyArchivationTime"],Sn={archiveVacancyName:"employer.myvacancies.itemName",archiveVacancyProfrole:"admin.statistics.search.aggregation.specializations",archiveVacancyArea:"employer.vacancyesAndResponses.area",archiveVacancyManager:"employer.vacancies.manager",archiveVacancyResponses:"employer.vacancies.vacancyresponses",archiveVacancyDaysBeingPublic:"employer.vacancies.daysBeingPublic",archiveVacancyCreationTime:"employer.vacancies.archive.creationTime",archiveVacancyArchivationTime:"employer.vacancies.archivationTime"},Tn=({trls:e})=>{const a=(0,x.Y)(e=>e.archivedVacancies.searchParams.order),n=(0,x.Y)(e=>e.archivedVacancies.vacancies),{checkedArchivedVacancies:i,dispatchArchivedVacanciesCheck:t}=(0,c.useContext)(o),s=(0,c.useRef)(null),r=(0,v.V)(),l=(0,Z.cI)(),{input:{onChange:d}}=(0,Z.U$)("order"),m=(e,a,n)=>{var c,i;n&&null!==(c=s.current)&&void 0!==c&&c.contains(n.target)||(d(a),null===(i=l.submit())||void 0===i||i.catch(console.error))},p=()=>{const e=n.map(e=>e.vacancyId);t({type:h.WB,payload:{itemsIds:e}})},u=(0,c.useMemo)(()=>n.every(({vacancyId:e})=>i.includes(e)),[n,i]),y=(0,c.useMemo)(()=>Nn.filter(e=>r?e:"archiveVacancyCreationTime"!==e&&"archiveVacancyProfrole"!==e),[r]);return(0,P.jsx)(Ye.ZP,{children:(0,P.jsx)(Ye.pZ,{m:!0,l:!0,children:(0,P.jsx)(Ye.ZI,{isHeader:!0,children:y.map((c,i)=>"archiveVacancyName"===c&&0===i?(0,P.jsx)(Cn.u,{columnName:c,currentSortOrder:a,sortOption:An.oP,onChangeSort:m,sticky:!0,children:(0,P.jsx)(Ye.YQ,{isHeader:!0,checkboxContent:(0,P.jsx)(Vn.Q,{ref:s,visible:n.length>0,checked:u,onChange:p}),children:e[Sn[c]]})},c):"archiveVacancyArchivationTime"===c?(0,P.jsx)(Cn.u,{columnName:c,currentSortOrder:a,sortOption:An.zj,onChangeSort:m,children:e[Sn[c]]},c):(0,P.jsx)(Ye.IG,{name:c,isHeader:!0,children:e[Sn[c]]},c))})})})};
1Tn.displayName="components/ArchivedVacanciesList/ArchivedVacanciesTableHeader/ArchivedVacanciesTableHeaderComponent";const _n=(0,i.x)(Tn),kn=({dispatchModal:e})=>0===(0,x.v)(e=>e.archivedVacancies.vacancies).length?(0,P.jsx)(ze.Z,{}):(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(t.X,{default:16}),(0,P.jsx)(qe.x,{tableHeader:(0,P.jsx)(_n,{}),tableHeaderTopOffset:132,children:(0,P.jsx)(jn,{dispatchModal:e})}),(0,P.jsx)(Ue,{})]});kn.displayName="components/ArchivedVacanciesList/index/ArchivedVacanciesList";const wn=(0,i.x)(kn),En="employer.vacancies.archived.emptyList.title",Mn="employer.vacancies.archived.emptyList.description",In=({trls:e})=>{const a=(0,x.v)(e=>{var a;return(null===(a=e.vacanciesCount)||void 0===a||null===(a=a[g.FW.Archived])||void 0===a?void 0:a.totalCount)||0}),n=(0,x.v)(e=>{var a;return(null===(a=e.vacanciesCount)||void 0===a||null===(a=a.deleted)||void 0===a?void 0:a.totalCount)||0}),i=(0,y.N)(),b=(0,v.V)(),[f,j]=(0,c.useReducer)(p.X,{}),C=(0,c.useCallback)(()=>j({type:u.et}),[]),[V,A]=(0,c.useReducer)(h.ZP,[]),N=a+n>0,S=i&&N||b,T=i&&!N;return(0,P.jsx)(c.StrictMode,{children:(0,P.jsx)(o.Provider,{value:{checkedArchivedVacancies:V,dispatchArchivedVacanciesCheck:A},children:(0,P.jsxs)(l.Z,{vacanciesType:g.FW.Archived,children:[(0,P.jsx)(r.Z,{vacanciesType:g.FW.Archived}),(0,P.jsx)(Ze,{}),S&&(0,P.jsxs)(We,{children:[(0,P.jsx)(Fe,{dispatchModal:j}),(0,P.jsx)(t.X,{default:16}),(0,P.jsx)(wn,{dispatchModal:j})]}),T&&(0,P.jsx)(d.Z,{title:e[En],description:e[Mn],action:(0,P.jsx)(m.R,{})}),(0,P.jsx)(p.Z,{dispatchModal:j,modalData:f,handleCloseModal:C}),(0,P.jsx)(s.I,{})]})})})};In.displayName="pages/EmployerVacanciesArchived/EmployerVacanciesArchived.route/EmployerVacanciesArchivedRoute";const Rn=(0,i.x)(In)}}]); 2//# sourceMappingURL=EmployerVacanciesArchived-route.246bbbac0fa4bb76.js.map 3//# debugId=016be685-9286-4417-9fb9-7d58e570c4f6
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.