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]="ded9790f-96bd-4991-bab3-529ca7c058ac",e._sentryDebugIdIdentifier="sentry-dbid-ded9790f-96bd-4991-bab3-529ca7c058ac")}()}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 t=arguments[a];if(null!=t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}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:"42d45d1b0a4472a84fb6d0c91b046bd57964d69a"}}catch(e){}}(),(globalThis.__xhh_LOADABLE_LOADED_CHUNKS__=globalThis.__xhh_LOADABLE_LOADED_CHUNKS__||[]).push([["5376"],{243372:function(e,a,t){e.exports=t.p+"static/images/mobile-banner-qr-code__min_6a9af4dea43fcec9.svg"},424414:function(e,a,t){e.exports=t.p+"static/images/mobile-banner-qr-code_jtb__min_0876cc55564e9e60.svg"},785313:function(e,a,t){e.exports=t.p+"static/images/grey-belcart-internetparol__min_60959d5260fb4e02.svg"},108741:function(e,a,t){e.exports=t.p+"static/images/grey-belcart__min_be08fb9ae8eb60de.svg"},997007:function(e,a,t){e.exports=t.p+"static/images/grey-mastercard__min_0759a5b1b607a232.svg"},800728:function(e,a,t){e.exports=t.p+"static/images/grey-visa__min_6ba49ea3f2835414.svg"},926832:function(e,a,t){e.exports=t.p+"static/images/price-cart-empty__min_2a75c0a590e6ca45.webp"},225008:function(e,a,t){e.exports=t.p+"static/images/qr-telegram-applicant-hhru__min_272f6eddf4921b71.webp"},930918:function(e,a,t){e.exports=t.p+"static/images/qr-telegram-applicant-rabotaby__min_6f6170a9a23aa1eb.webp"},682589:function(e,a,t){e.exports=t.p+"static/images/qr-viber-applicant-hhru__min_3665c223b19115cb.webp"},477703:function(e,a,t){e.exports=t.p+"static/images/qr-viber-applicant-rabotaby__min_2edf6b864badb82a.webp"},8251:function(e,a,t){e.exports=t.p+"static/images/qr-vk-applicant-hhru__min_a9d502b34390634e.webp"},421447:function(e,a,t){e.exports=t.p+"static/images/qr-vk-applicant-rabotaby__min_e3832463b1b0e3b5.webp"},74984:function(e,a,t){e.exports=t.p+"static/images/qr-telegram-anonymous-hhru__min_9bc6b25d8d010d99.webp"},783910:function(e,a,t){e.exports=t.p+"static/images/qr-telegram-anonymous-rabotaby__min_57753facc78c6b9f.webp"},726420:function(e,a,t){e.exports=t.p+"static/images/qr-telegram-anonymous-hhru__min_479400fc2bbc83fc.webp"},802673:function(e,a,t){e.exports=t.p+"static/images/qr-telegram-anonymous-rabotaby__min_4c810a6e9006f585.webp"},93882:function(e,a,t){e.exports=t.p+"static/images/qr-telegram-applicant-hhru__min_9fd7510daf8a84f7.webp"},73606:function(e,a,t){e.exports=t.p+"static/images/qr-telegram-applicant-rabotaby__min_19803bff0f5f7753.webp"},823567:function(e,a,t){e.exports=t.p+"static/images/qr-telegram-applicant-hhru__min_5ac7eb0c555ad668.webp"},874715:function(e,a,t){e.exports=t.p+"static/images/qr-telegram-applicant-rabotaby__min_74b57fcde8754ae2.webp"},84922:function(e,a,t){e.exports=t.p+"static/images/qr-viber-applicant-hhru__min_97e09ae7180b700a.webp"},486383:function(e,a,t){e.exports=t.p+"static/images/qr-viber-applicant-rabotaby__min_c849b684b8c4a3a8.webp"},216260:function(e,a,t){e.exports=t.p+"static/images/qr-vk-applicant-hhru__min_c96b4b6809135e24.webp"},265338:function(e,a,t){e.exports=t.p+"static/images/qr-vk-applicant-rabotaby__min_f8e0818ae904f1cb.webp"},925037:function(e,a,t){e.exports=t.p+"static/images/qr-telegram-anonymous-hhru__min_9bc6b25d8d010d99.webp"},29661:function(e,a,t){e.exports=t.p+"static/images/qr-telegram-anonymous-rabotaby__min_880f5e6082ee19df.webp"},92839:function(e,a,t){e.exports=t.p+"static/images/qr-telegram-applicant-hhru__min_1d14cff2bdfae368.webp"},961982:function(e,a,t){e.exports=t.p+"static/images/qr-telegram-applicant-rabotaby__min_6d7e122589c812de.webp"},622667:function(e,a,t){e.exports=t.p+"static/images/qr-viber-anonymous-hhru__min_0869716e5153b033.webp"},976509:function(e,a,t){e.exports=t.p+"static/images/qr-viber-anonymous-rabotaby__min_99960d4ab8e51579.webp"},86484:function(e,a,t){e.exports=t.p+"static/images/qr-viber-applicant-hhru__min_94f5f32136e68536.webp"},227758:function(e,a,t){e.exports=t.p+"static/images/qr-viber-applicant-rabotaby__min_e931e36cf4ea2218.webp"},364246:function(e,a,t){e.exports=t.p+"static/images/qr-vk-anonymous-hhru__min_c966ba515b6234de.webp"},303007:function(e,a,t){e.exports=t.p+"static/images/qr-vk-anonymous-rabotaby__min_dc2a1d356a3b03fd.webp"},605006:function(e,a,t){e.exports=t.p+"static/images/qr-vk-applicant-hhru__min_4bf38e54f13b6f4a.webp"},687468:function(e,a,t){e.exports=t.p+"static/images/qr-vk-applicant-rabotaby__min_29977b7b8e0a806b.webp"},933762:function(e,a,t){e.exports=t.p+"static/images/phone_negotiations__min_859505e163bbc92c.webp"},552777:function(e,a,t){e.exports=t.p+"static/images/salut__min_b82df4c5a2a96310.webp"},418614:function(e,a,t){e.exports=t.p+"static/images/qrCode__min_213d97e036df9128.webp"},61818:function(e,a,t){e.exports=t.p+"static/images/vorobey__min_baecee0231e7ecff.webp"},31743:function(e,a,t){e.exports=t.p+"static/images/bg-mobile__min_13e35374533058fa.webp"},298749:function(e,a,t){e.exports=t.p+"static/images/bg__min_cf80749c32180144.webp"},534153:function(e,a,t){e.exports=t.p+"static/images/mobile__min_49b31b73fd4f5f71.webp"},790929:function(e,a,t){e.exports=t.p+"static/images/desktop__min_fdcaa28486a0a046.webp"},310920:function(e,a,t){e.exports=t.p+"static/images/mobile__min_33314d8c36bf3132.webp"},633518:function(e,a,t){e.exports=t.p+"static/images/bird__min_fab890a84ad6055d.webp"},318914:function(e,a,t){e.exports=t.p+"static/images/header-image__min_58335c7d8b1ec6cf.webp"},69503:function(e,a,t){t.d(a,{Z:()=>w});var n=t(651679),o=t(322815),s=t(365128),i=t(166122),c=t(255717),l=t
1(155462),r=t(977403),d=t(969067),p=t(622694),m=t(282825),u=t(112687),y=t(678305),v=t(128252),b=t(86880),g=t(612215);const _="vacancytemplate.remove.header",h="vacancytemplate.remove.content",f="vacancytemplate.remove.dont",x="contents.button.delete",E=({templateName:e,visible:a,onAccept:t,onDeny:n,trls:s,dataQa:i})=>{const{isMobile:c}=(0,d.G)(),r=(0,l.WU)(s[_],{"{0}":e}),E=s[h],N=(0,g.jsx)(o.z,{mode:"secondary",style:"neutral","data-qa":"confirm-vacancy-template-delete__cancel",onClick:n,children:s[f]}),T=(0,g.jsx)(o.z,{mode:"primary",style:"negative","data-qa":"confirm-vacancy-template-delete__accept",onClick:t,children:s[x]});return c?(0,g.jsxs)(p.R,{visible:a,footer:(0,g.jsx)(m.W,{children:[T,N]}),onClose:n,children:[(0,g.jsx)(u.x,{typography:"title-4-semibold",children:r}),(0,g.jsx)(y.X,{default:8}),(0,g.jsx)(u.x,{typography:"paragraph-2-regular",style:"secondary",children:E})]}):(0,g.jsx)(v.u,{visible:a,title:r,titleDescription:E,titleDescriptionStyle:"secondary",footer:(0,g.jsx)(b.o,{primaryActions:(0,g.jsxs)(g.Fragment,{children:[N,T]})}),"data-qa":i,onClose:n})};E.displayName="components/DeleteVacancyTemplate/ConfirmDeletion/ConfirmDeletionComponent";const N=(0,r.x)(E),T=({id:e,templateName:a,buttonProps:t,setIsDeleting:l,onComplete:r,onCancel:d,children:p})=>{const[m,u]=(0,n.useState)(!1),{addNotification:y}=(0,i.lm)();return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(o.z,{style:"negative",mode:(null==t?void 0:t.mode)||"tertiary",size:(null==t?void 0:t.size)||"medium",icon:null==t?void 0:t.icon,stretched:(null==t?void 0:t.stretched)||!1,loading:(null==t?void 0:t.loading)||!1,onClick:()=>u(!0),"data-qa":"vacancy-template__delete",children:p}),(0,g.jsx)(N,{visible:m,templateName:a,dataQa:"confirm-vacancy-template-delete-modal",onDeny:()=>{null==d||d(),u(!1)},onAccept:async()=>{u(!1),null==l||l(!0);try{await c._i.postFormData("/employer/vacancies/templates/delete",{templateId:e}),null==r||r()}catch(e){(0,s.ZP)(e,y),null==l||l(!1)}}})]})};T.displayName="components/DeleteVacancyTemplate/index/DeleteVacancyTemplate";const w=T},4401:function(e,a,t){t.d(a,{O:()=>i});var n=t(566252);const o="sticky-actions-bar--EQ5cxiX8PwZMde39";var s=t(612215);const i=({children:e,layer:a="iota","data-qa":t})=>(0,s.jsx)(n.m,{layer:a,children:(0,s.jsx)("div",{className:o,"data-qa":t,children:e})});i.displayName="EmployerVacancies/StickyActionsBar/index/StickyActionsBar"},544296:function(e,a,t){t.d(a,{Z:()=>d});var n=t(969067),o=t(36887),s=t(829818),i=t(440119);const c="icon-container--Ux9NEilX_WQu_nar";var l=t(612215);const r=({title:e,description:a,action:t})=>{const{isXS:r,isMobile:d}=(0,n.G)();return(0,l.jsx)(o.V,{title:e,description:a,buttons:!!t&&(0,l.jsx)(s.N,{layout:r?"vertical":"adaptive",children:t}),paddingTop:d?40:116,paddingBottom:d?void 0:128,children:(0,l.jsx)("div",{className:c,children:(0,l.jsx)(i.txp,{initialColor:"secondary",backgroundStyle:"secondary",borderRadius:"halfHeight",padding:16})})})};r.displayName="EmployerVacancies/VacanciesListEmpty/index/VacanciesListEmpty";const d=r},69453:function(e,a,t){t.d(a,{GB:()=>I,Gp:()=>C,I7:()=>F,MW:()=>H,NY:()=>Q,Os:()=>M,P0:()=>b,PH:()=>S,X6:()=>k,bL:()=>y,e6:()=>f,i_:()=>d,mH:()=>A,mk:()=>E,qz:()=>p,th:()=>T,wL:()=>_,yM:()=>D});var n=t(651679),o=t(155462),s=t(933276),i=t(977403),c=t(440119),l=t(8131),r=t(612215);let d=function(e){return e.FailedToDeleteExpired="FAILED_TO_DELETE_EXPIRED",e.PremiumAlreadySet="PREMIUM_ALREDY_SET",e.PremiumNotSet="PREMIUM_NOT_SET",e.FailedToDelete="FAILED_TO_DELETE",e.NotZpVacancy="NOT_ZP_VACANCY",e.FailedToSpendService="FAILED_TO_SPEND_SERVICE",e.FailedToReturnService="FAILED_TO_RETURN_SERVICE",e.FailedToGetServiceCount="FAILED_TO_GET_SERVICE_COUNT",e.NotEnoughQuotas="NOT_ENOUGH_QUOTAS",e.VacancyIsNotActive="VACANCY_IS_NOT_ACTIVE",e.NotEnoughServices="NOT_ENOUGH_SERVICES",e}({}),p=function(e){return e.Enable="enable",e.Disable="disable",e}({});const m={VacancyUpdateSuccess:{successOne:"employer.myVacancies.successOne",successSome:"employer.myVacancies.successSome"},VacancyUpdateError:{errorOne:"vacancy.rise.error.nonProlongableVacancies.one",errorSome:"vacancy.rise.error.nonProlongableVacancies.many"},AutoProlongationPurchaseSuccess:{message:"employer.vacancies.autoProlongation.modal.purchase.submit.message"},VacancyAutoProlongationSuccess:{[p.Disable]:{message:"employer.vacancies.autoProlongation.alert.disable.submit.message",messageCancel:"employer.vacancies.autoProlongation.alert.disable.cancel.message"},[p.Enable]:{message:"employer.vacancies.autoProlongation.modal.submit.message"}},VacancyAutoProlongationError:{message:"employer.vacancies.autoProlongation.modal.submit.error"},VacancyDraftDeleteSuccess:{onlyOne:"employer.vacancies.draftDelete.ok.title.onlyOne",multiple:"employer.vacancies.draftDelete.ok.title.multiple"},VacancyDraftDeleteError:{error:"error.vacancy.draftDelete.unknownException"},VacancyDraftMoveSuccess:{onlyOne:"employer.vacancies.draftMove.ok.title.onlyOne",multiple:"employer.vacancies.draftMove.ok.title.multiple"},NotifyEmptyResult:{empty:"employer.vacanciesDashboard.ApplyFilterResultIsEmpty"},CancelScheduledPublicationSuccess:{text:"employer.vacancies.cancel.scheduled.ok"},ToggleVacancyOptionSuccess:{[p.Enable]:"employer.vacancies.enableVacancyOption.ok",[p.Disable]:"employer.vacancies.disableVacancyOption.ok"},ToggleVacancyOptionError:{[d.FailedToDeleteExpired]:"employer.vacancies.toggleV
1acancyOption.FAILED_TO_DELETE_EXPIRED",[d.PremiumAlreadySet]:"employer.vacancies.toggleVacancyOption.PREMIUM_ALREDY_SET",[d.PremiumNotSet]:"employer.vacancies.toggleVacancyOption.PREMIUM_NOT_SET",[d.FailedToDelete]:"employer.vacancies.toggleVacancyOption.FAILED_TO_DELETE",[d.NotZpVacancy]:"employer.vacancies.toggleVacancyOption.NOT_ZP_VACANCY",[d.FailedToSpendService]:"employer.vacancies.toggleVacancyOption.FAILED_TO_SPEND_SERVICE",[d.FailedToReturnService]:"employer.vacancies.toggleVacancyOption.FAILED_TO_RETURN_SERVICE",[d.FailedToGetServiceCount]:"employer.vacancies.toggleVacancyOption.FAILED_TO_GET_SERVICE_COUNT",[d.NotEnoughQuotas]:"employer.vacancies.toggleVacancyOption.NOT_ENOUGH_QUOTAS",[d.VacancyIsNotActive]:"employer.vacancies.toggleVacancyOption.VACANCY_IS_NOT_ACTIVE",[d.NotEnoughServices]:""},ChangeVacancyVisibilitySuccess:{closed:"employer.vacancy.visibility.success.hide",open:"employer.vacancy.visibility.success.show"},PlannedPublicationSudoCancelError:{error:"employer.vacancies.planned.publication.operation.not.allowed.sudo"},AutoresponseSuccess:{enabled:{single:"employer.vacancies.autoresponse.success.enabled.single",one:"employer.vacancies.autoresponse.success.enabled.one",some:"employer.vacancies.autoresponse.success.enabled.some",many:"employer.vacancies.autoresponse.success.enabled.many"},disabled:{single:"employer.vacancies.autoresponse.success.disabled.single",one:"employer.vacancies.autoresponse.success.disabled.one",some:"employer.vacancies.autoresponse.success.disabled.some",many:"employer.vacancies.autoresponse.success.disabled.many"}}},u=({trls:e,count:a,...t})=>{const i=(0,n.useCallback)(e=>(0,o.WU)(e,{"{0}":a}),[a]);return(0,r.jsx)(l.P,{"data-qa":"vacancies-successMessage",addon:(0,r.jsx)(c.lot,{initialColor:"positive"}),...t,children:(0,r.jsx)(s.q,{hasValue:!1,value:a,one:e[m.VacancyUpdateSuccess.successOne],some:e[m.VacancyUpdateSuccess.successSome],many:e[m.VacancyUpdateSuccess.successSome],format:i})})};u.displayName="components/Notifications/EmployerVacancies/VacancyUpdateSuccessComponent";const y=(0,i.x)(u),v=({trls:e,count:a,...t})=>{const i=(0,n.useCallback)(e=>(0,o.WU)(e,{"{0}":a}),[a]);return(0,r.jsx)(l.P,{"data-qa":"vacancies-errorMessage",addon:(0,r.jsx)(c.L1_,{initialColor:"negative","data-qa":"prolongate-snackbar-error"}),...t,children:(0,r.jsx)(s.q,{hasValue:!1,value:a,one:e[m.VacancyUpdateError.errorOne],some:e[m.VacancyUpdateError.errorSome],many:e[m.VacancyUpdateError.errorSome],format:i})})};v.displayName="components/Notifications/EmployerVacancies/VacancyUpdateErrorComponent";const b=(0,i.x)(v),g=({trls:e,...a})=>(0,r.jsx)(l.P,{addon:(0,r.jsx)(c.lot,{initialColor:"positive"}),...a,showClose:!0,children:e[m.AutoProlongationPurchaseSuccess.message]});g.displayName="components/Notifications/EmployerVacancies/AutoProlongationPurchaseSuccessComponent";const _=(0,i.x)(g),h=({trls:e,...a})=>(0,r.jsx)(l.P,{addon:(0,r.jsx)(c.lot,{initialColor:"positive"}),...a,showClose:!0,children:e[m.VacancyAutoProlongationSuccess[p.Enable].message]});h.displayName="components/Notifications/EmployerVacancies/VacancyAutoProlongationSuccessComponent";const f=(0,i.x)(h),x=({trls:e,...a})=>(0,r.jsx)(l.P,{addon:(0,r.jsx)(c.lot,{initialColor:"positive"}),...a,showClose:!0,children:e[m.VacancyAutoProlongationSuccess[p.Disable].message]});x.displayName="components/Notifications/EmployerVacancies/AutoProlongationDisableSuccessComponent";const E=(0,i.x)(x),N=({trls:e,...a})=>(0,r.jsx)(l.P,{addon:(0,r.jsx)(c.L1_,{initialColor:"negative"}),...a,showClose:!0,children:e[m.VacancyAutoProlongationError.message]});N.displayName="components/Notifications/EmployerVacancies/VacancyAutoProlongationErrorComponent";const T=(0,i.x)(N),w=({trls:e,draftsIds:a,...t})=>(0,r.jsx)(l.P,{"data-qa":"vacancies-successMessage",addon:(0,r.jsx)(c.lot,{initialColor:"positive"}),...t,children:e[1===a.length?m.VacancyDraftDeleteSuccess.onlyOne:m.VacancyDraftDeleteSuccess.multiple]});w.displayName="components/Notifications/EmployerVacancies/VacancyDraftDeleteSuccessComponent";const C=(0,i.x)(w),j=({trls:e,...a})=>(0,r.jsx)(l.P,{"data-qa":"vacancies-errorMessage",addon:(0,r.jsx)(c.L1_,{initialColor:"negative","data-qa":"prolongate-snackbar-error"}),...a,children:e[m.VacancyDraftDeleteError.error]});
1j.displayName="components/Notifications/EmployerVacancies/VacancyDraftDeleteErrorComponent";const S=(0,i.x)(j),V=({trls:e,draftsIds:a,...t})=>(0,r.jsx)(l.P,{"data-qa":"vacancies-successMessage",addon:(0,r.jsx)(c.lot,{initialColor:"positive"}),...t,children:e[1===a.length?m.VacancyDraftMoveSuccess.onlyOne:m.VacancyDraftMoveSuccess.multiple]});V.displayName="components/Notifications/EmployerVacancies/VacancyDraftMoveSuccessComponent";const A=(0,i.x)(V),O=({trls:e,...a})=>(0,r.jsx)(l.P,{...a,children:e[m.NotifyEmptyResult.empty]});O.displayName="components/Notifications/EmployerVacancies/NotifyEmptyResultComponent";const D=(0,i.x)(O),P=({trls:e,...a})=>(0,r.jsx)(l.P,{"data-qa":"vacancies-successMessage",addon:(0,r.jsx)(c.lot,{initialColor:"positive"}),...a,children:e[m.CancelScheduledPublicationSuccess.text]});P.displayName="components/Notifications/EmployerVacancies/CancelScheduledPublicationSuccessComponent";const I=(0,i.x)(P),q=({trls:e,vacancyName:a,action:t,...n})=>(0,r.jsx)(l.P,{"data-qa":"vacancies-successMessage",addon:(0,r.jsx)(c.lot,{initialColor:"positive"}),...n,children:(0,o.WU)(e[m.ToggleVacancyOptionSuccess[t]],{"{0}":(0,r.jsx)("span",{children:a})})});q.displayName="components/Notifications/EmployerVacancies/ToggleVacancyOptionSuccessComponent";const M=(0,i.x)(q),R=({trls:e,errorKey:a,...t})=>(0,r.jsx)(l.P,{"data-qa":"vacancies-errorMessage",addon:(0,r.jsx)(c.L1_,{initialColor:"negative","data-qa":"prolongate-snackbar-error"}),...t,children:e[m.ToggleVacancyOptionError[a]]});R.displayName="components/Notifications/EmployerVacancies/ToggleVacancyOptionErrorComponent";const k=(0,i.x)(R),L=({trls:e,closedForApplicants:a,...t})=>(0,r.jsx)(l.P,{"data-qa":"vacancies-successMessage",addon:(0,r.jsx)(c.lot,{initialColor:"positive"}),...t,children:e[m.ChangeVacancyVisibilitySuccess[a?"closed":"open"]]});L.displayName="components/Notifications/EmployerVacancies/ChangeVacancyVisibilitySuccessComponent";const F=(0,i.x)(L),U=({trls:e,...a})=>(0,r.jsx)(l.P,{"data-qa":"vacancies-errorMessage",addon:(0,r.jsx)(c.L1_,{initialColor:"negative","data-qa":"prolongate-snackbar-error"}),...a,children:e[m.PlannedPublicationSudoCancelError.error]});U.displayName="components/Notifications/EmployerVacancies/PlannedPublicationSudoCancelErrorComponent";const H=(0,i.x)(U),B=({trls:e,count:a,enabled:t,removeNotification:i,noPlural:d=!1})=>{const p=(0,n.useCallback)(e=>(0,o.WU)(e,{"{0}":a}),[a]),u=m.AutoresponseSuccess[t?"enabled":"disabled"];return(0,r.jsx)(l.P,{"data-qa":"vacancies-successMessage",addon:(0,r.jsx)(c.lot,{initialColor:"positive"}),removeNotification:i,children:d?(0,r.jsx)("span",{children:e[u.single]}):(0,r.jsx)(s.q,{hasValue:!1,value:a,one:e[u.one],some:e[u.some],many:e[u.many],format:p})})};B.displayName="components/Notifications/EmployerVacancies/AutoresponseSuccessComponent";const Q=(0,i.x)(B)},157636:function(e,a,t){t.d(a,{Gt:()=>te,ez:()=>D,jE:()=>P});var n=t(651679),o=t(951472),s=t(977403),i=t(969067),c=t(646692),l=t(342253),r=t(943146),d=t(53826),p=t(112687),m=t(196499),u=t(840735),y=t(678305),v=t(319363),b=t(322815),g=t(622694),_=t(235357),h=t(282825),f=t(128252),x=t(87014),E=t(86880),N=t(440119),T=t(166122),w=t(594948),C=t(821802),j=t(194717),S=t(97373),V=t(234183),A=t(112515),O=t(612215);let D=function(e){return e.Tabs="tabs",e.Selected="selected",e}({}),P=function(e){return e.Email="email",e.File="file",e}({}),I=function(e){return e.Active="active",e.Drafts="drafts",e.Archived="archived",e.Templates="templates",e}({});const q="employer.vacancies.download.modal.title",M="employer.vacancies.download.modal.subtitle",R="employer.vacancies.download.modal.delivery.email",k="employer.vacancies.download.modal.delivery.file",L="employer.vacancies.download.modal.delivery.email.short",F="employer.vacancies.download.modal.delivery.file.short",U="employer.vacancies.download.modal.tabs.to.email",H="employer.vacancies.download.modal.tabs.to.file",B="employer.vacancies.download.modal.select.placeholder",Q="employer.vacancies.download.modal.email.label",X="employer.vacancies.download.modal.email.error.required",z="employer.vacancies.download.modal.email.error.invali
1d",G="employer.vacancies.download.modal.email.warning",W="employer.vacancies.download.modal.tabs.error.required",Z="employer.vacancies.download.modal.submit.email",Y="employer.vacancies.download.modal.submit.file",K="employer.vacancies.download.modal.tab.active",$="employer.vacancies.download.modal.tab.drafts",J="employer.vacancies.download.modal.tab.archived",ee="employer.vacancies.download.modal.tab.templates",ae=({visible:e,displayType:a,selectedVacancyIds:t,selectedDraftIds:s,analyticsVariant:ae,onClose:te,onSubmit:ne,trls:oe})=>{const{addNotification:se}=(0,T.lm)(),{isMobile:ie}=(0,i.G)(),ce=(0,w.v)(C.T),le=(0,w.v)(({account:e})=>{var a;return null!==(a=null==e?void 0:e.email)&&void 0!==a?a:""}),re=le.length>0&&!ce,[de,pe]=(0,n.useState)(P.Email),[me,ue]=(0,n.useState)([]),[ye,ve]=(0,n.useState)(le),[be,ge]=(0,n.useState)(!1),[_e,he]=(0,n.useState)(!1),[fe,xe]=(0,n.useState)(!1);(0,n.useEffect)(()=>{e&&(pe(P.Email),ue([]),ve(le),ge(!1),he(!1),xe(!1))},[le,e]);const Ee=a===D.Tabs,Ne=de===P.Email,Te=(0,S.C1)(ye),we=(0,S.Le)(ye);let Ce=null;Te?Ce=X:we&&(Ce=z);const je=Ee&&_e&&0===me.length,Se=(0,n.useMemo)(()=>
1[{value:I.Active,text:oe[K]},{value:I.Drafts,text:oe[$]},{value:I.Archived,text:oe[J]},{value:I.Templates,text:oe[ee]}],[oe]),Ve=(0,c.oQ)(Se),Ae=(0,j.Df)(ae),Oe=(0,O.jsxs)(l.z,{default:24,children:[(0,O.jsxs)(r.r,{mode:"label",selectedValue:de,size:"medium",stretched:!0,onChange:e=>pe(e.target.value),children:[(0,O.jsx)(d.S,{value:P.Email,children:ie?oe[L]:oe[R]}),(0,O.jsx)(d.S,{value:P.File,children:ie?oe[F]:oe[k]})]}),Ee&&(0,O.jsxs)(l.z,{default:8,children:[(0,O.jsx)(p.x,{typography:"label-2-regular",style:"secondary",children:de===P.Email?oe[U]:oe[H]}),(0,O.jsx)(m.W,{multiple:!0,type:"checkbox",name:"vacancies-tab-type",value:(0,c.j_)(me,Se),dataProvider:Ve,onChange:e=>ue(e.map(e=>e.value)),triggerProps:{label:oe[B],size:"medium",stretched:!0}}),je&&(0,O.jsx)(p.x,{typography:"label-2-regular",style:"negative",children:oe[W]})]}),Ne&&(0,O.jsxs)(l.z,{default:8,children:[(0,O.jsx)(p.x,{typography:"label-2-regular",style:"secondary",children:oe[Q]}),(0,O.jsx)(u.I,{size:"medium",value:ye,onChange:ve,disabled:re,invalid:be&&Boolean(Ce),"data-qa":"download-vacancies-email-input"}),be&&Ce&&(0,O.jsx)(p.x,{typography:"label-2-regular",style:"negative",children:oe[Ce]}),(0,O.jsx)(y.X,{default:16}),(0,O.jsx)(v.Z,{stretched:!0,style:"secondary",padding:16,borderRadius:16,children:(0,O.jsx)(p.x,{typography:"label-2-regular",children:oe[G]})})]})]}),De=Ae?(0,O.jsx)(o.ElementShownAnchor,{fn:Ae,children:Oe}):Oe,Pe=(0,O.jsx)(b.z,{stretched:!0,mode:"primary",style:"accent",onClick:async()=>{const e=Ne&&Boolean(Te||we),n=Ee&&0===me.length;if(e||n)return e&&ge(!0),void(n&&he(!0));if(ae){const e=(0,j.AM)(de===P.Email);"errors"===ae?(0,j.UF)(e):(0,j._W)(e)}xe(!0);try{const e=await ne({deliveryType:de,displayType:a,selectedVacancyIds:a!==D.Selected||s?null:t||[],selectedDraftIds:a===D.Selected&&s?s:null,tabTypes:Ee?me:null,email:Ne?ye:null});if("success"===e.outcome||"timeout"===e.outcome){de===P.File&&"success"===e.outcome||se(V.I,{uniqueType:!0}),te()}else se(A.E,{uniqueType:!0})}finally{xe(!1)}},loading:fe,children:de===P.Email?oe[Z]:oe[Y]}),Ie=(0,O.jsx)(p.x,{typography:"paragraph-2-regular",style:"secondary",children:oe[M]});return e?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(g.R,{visible:ie,onClose:te,header:(0,O.jsx)(_.v,{title:oe[q],subtitle:oe[M],right:(0,O.jsx)(N.Cs7,{onClick:te})}),footer:(0,O.jsx)(h.W,{children:Pe}),children:De}),(0,O.jsx)(f.u,{visible:!ie,size:"small",title:(0,O.jsx)(x.D,{Element:"h4",size:"medium",children:oe[q]}),titleDescription:Ie,actions:(0,O.jsx)(N.Cs7,{initialColor:"secondary",onClick:te}),onClose:te,footer:(0,O.jsx)(E.o,{showDivider:!1,primaryActions:Pe}),children:De})]}):null};ae.displayName="VacancyActions/DownloadVacancies/DownloadVacanciesDialog/DownloadVacanciesDialogComponent";const te=(0,s.x)(ae)},234183:function(e,a,t){t.d(a,{I:()=>r});var n=t(977403),o=t(239731),s=t(440119),i=t(612215);const c="employer.vacancies.download.notification.preparationLong",l=({trls:e,removeNotification:a,...t})=>(0,i.jsx)(o.A,{"data-qa":"vacancy-file-export-started-notification",addon:(0,i.jsx)(s.qGw,{initialColor:"positive"}),showClose:!0,onClose:a,...t,children:e[c]});l.displayName="VacancyActions/DownloadVacancies/VacancyDownloadStartedNotification/VacancyDownloadStartedNotificationComponent";const r=(0,n.x)(l)},112515:function(e,a,t){t.d(a,{E:()=>r});var n=t(977403),o=t(239731),s=t(440119),i=t(612215);const c="employer.vacancies.download.modal.error.generic",l=({trls:e,removeNotification:a,...t})=>(0,i.jsx)(o.A,{"data-qa":"vacancy-download-submit-error-notification",addon:(0,i.jsx)(s.L1_,{initialColor:"negative"}),showClose:!0,onClose:a,...t,children:e[c]});l.displayName="VacancyActions/DownloadVacancies/VacancyDownloadSubmitErrorNotification/VacancyDownloadSubmitErrorNotificationComponent";const r=(0,n.x)(l)},378834:function(e,a,t){t.d(a,{Q$:()=>d,pB:()=>l,sC:()=>r});var n=t(255717),o=t(157636);const s=new Set([408,504]),i=new Set(["TIMEOUT","REQUEST_TIMEOUT"]),c=e=>{var a;if(!e||"object"!=typeof e)return!1;const t=e,n=null!==(a=t.exportStatus)&&void 0!==a?a:t.export_status;return"string"==typeof n&&i.has(n.toUpperCase())},l=async(e,a,t)=>{const i=new AbortController,l=window.setTimeout(()=>{i.abort()},3e4);try{const l=await n._i.post(e,a,{signal:i.signal,validateStatus:()=>!0}),{downloadResult:r,responseBody:d}=(e=>{if(s.has(e.status))return{downloadResult:{outcome:"timeout",statusCode:e.status},responseBody:void 0};const a=e.data;return e.status>=200&&e.status<300?c(a)?{downloadResult:{outcome:"timeout"},responseBody:a}:{downloadResult:{outcome:"success"},responseBody:a}:c(a)?{downloadResult:{outcome:"timeout",statusCode:e.status},responseBody:a}:{downloadResult:{outcome:"error",statusCode:e.status},responseBody:a}})(l);if("success"!==r.outcome)return r;if(t===o.jE.File){const e=(e=>{if(!e||"object"!=typeof e)return;const a=e.url;return"string"==typeof a&&0!==a.length?a:void 0})(d);if(!e)return{outcome:"error",statusCode:l.status};(e=>{const a=document.createElement("a");a.href=e,a.rel="noopener noreferrer",a.referrerPolicy="no-referrer",a.download="",a.style.display="none",document.body.appendChild(a),a.click(),a.remove()})(e)}return{outcome:"success"}}catch(e){return(e=>n._i.isCancel(e)?{outcome:"timeout"}:{outcome:"error"})(e)}finally{window.clearTimeout(l)}},r=async e=>l("/shards/employer/vacancies/download",(e=>
1({deliveryType:e.deliveryType,displayType:e.displayType,tabTypes:e.tabTypes,vacancyIds:e.selectedDraftIds?null:e.selectedVacancyIds,draftIds:e.selectedDraftIds,email:e.email}))(e),e.deliveryType),d=()=>r({deliveryType:o.jE.File,displayType:o.ez.Tabs,tabTypes:null,selectedVacancyIds:null,selectedDraftIds:null,email:null})},986689:function(e,a,t){t.d(a,{T8:()=>l,Wp:()=>p,d9:()=>d,p:()=>m,pJ:()=>r});var n=t(50823),o=t(226453),s=t(531089),i=t(338327);const c={errorNonProlongableVacanciesOne:"vacancy.rise.error.nonProlongableVacancies.one",errorNonProlongableVacanciesMany:"vacancy.rise.error.nonProlongableVacancies.many",[i.r.AccessDenied]:"hhapi.vacancy.prolongation.error.ACCESS_DENIED",[i.r.Archived]:"hhapi.vacancy.prolongation.error.ARCHIVED",[i.r.AreaVacancyPostDisabled]:"hhapi.vacancy.prolongation.error.AREA_VACANCY_POST_DISABLED",[i.r.FreeNotMinimumProlongationPeriod]:"hhapi.vacancy.prolongation.error.FREE_NOT_MINIMUM_PROLONGATION_PERIOD",[i.r.FreeProlongationNotAvailable]:"hhapi.vacancy.prolongation.error.FREE_PROLONGATION_NOT_AVAILABLE",[i.r.FreeRenewalsAndPaidProlongationsMixed]:"hhapi.vacancy.prolongation.error.FREE_RENEWALS_AND_PAID_PROLONGATIONS_MIXED",[i.r.NotPremoderated]:"hhapi.vacancy.prolongation.error.NOT_PREMODERATED",[i.r.PayForPerformanceNotMinimumDaysToProlongation]:"hhapi.vacancy.prolongation.error.PAY_FOR_PERFORMANCE_NOT_MINIMUM_DAYS_TO_PROLONGATION",[i.r.StandardNotMinimumProlongationPeriod]:"hhapi.vacancy.prolongation.error.STANDARD_NOT_MINIMUM_PROLONGATION_PERIOD",[i.r.NoDivisionServices]:"hhapi.vacancy.prolongation.error.NO_DIVISION_SERVICES",[i.r.NoQuotas]:"hhapi.vacancy.prolongation.error.NO_QUOTAS",[i.r.Unknown]:"hhapi.vacancy.prolongation.error.UNKNOWN",[i.r.NotAvailableForPurchase]:"hhapi.vacancy.prolongation.error.NOT_AVAILABLE_FOR_PURCHASE"},l=e=>({isAllQuotas:Object.values(e).length>0&&Object.values(e).every(e=>e===i.r.NoQuotas||e===s.kQ.NoQuotas||e===s.E3.NoQuotas),isAllDivisionServices:Object.values(e).length>0&&Object.values(e).every(e=>e===i.r.NoDivisionServices||e===s.kQ.NoDivisionServices||e===s.E3.NoDivisionServices)}),r=e=>({isAllReasonsArchive:Object.values(e).every(e=>e===s.kQ.FirstRegularProlongationAfterArchive),isSomeReasonsArchive:Object.values(e).some(e=>e===s.kQ.FirstRegularProlongationAfterArchive)}),d=(e,a)=>a&&Object.values(i.r).includes(a)&&a!==i.r.Unknown?{isKnownError:!0,errorText:e[c[a]]}:{isKnownError:!1,errorText:e[c[i.r.Unknown]]},p=(e,a,t)=>{if(a.vacancyIds.length!==t.length)return null;const n=a.reasons;if(Object.keys(n).length>1){const{isAllQuotas:a,isAllDivisionServices:t}=l(n);return t?e[c[i.r.NoDivisionServices]]:a?e[c[i.r.NoQuotas]]:e[c.errorNonProlongableVacanciesM
1any]}const o=n[a.vacancyIds[0]],{isKnownError:s,errorText:r}=d(e,o);return s?r:e[c.errorNonProlongableVacanciesOne]},m=(e,a,t=!0,s,i)=>{const c=new URLSearchParams;e.forEach(e=>c.append("id",`${e}`)),a?(c.append("type",a),c.append("hhtmSourceLabel",a)):c.append("hhtmSourceLabel","rise"),s&&c.append("fromPage",s),(0,n.CA)(`${o.Z.employerVacanciesRise}?${c.toString()}${i||""}`,t?"_blank":"_self")}},995992:function(e,a,t){t.d(a,{HW:()=>r,dL:()=>l,w9:()=>d});var n=t(651679),o=t(951472),s=t.n(o),i=t(320541);const c=e=>{const a=[];if(null!=e&&e.current){[...e.current.querySelectorAll(".HH-Employer-Vacancies-Analytics")].forEach(e=>{const t=e.dataset.analyticsButtonName,n=e.dataset.analyticsLabel,o=e.dataset.analyticsAction,s=e.dataset.analyticsFromPlace;t&&a.push({buttonName:t,label:n,action:o,fromPlace:s})})}return a},l=(e,a=!0,t=!1)=>{const o=(0,n.useRef)(null);return(0,n.useEffect)(()=>{if(a&&null!=o&&o.current){const a=t?{additionalShownButtons:JSON.stringify(c(o))}:{},{stopSpying:n}=s().sendHHEventElementShown(o.current,{...e,...a},{},{trackingBounds:[i.M.Left,i.M.Top],elementLockTime:500});return()=>n()}},[a,...e?Object.values(e):[]]),o},r=e=>(0,n.useMemo)(()=>(a,t,n=!0)=>{n&&setTimeout(()=>{const n=c(e);if(n.length>0){const e={additionalShownButtons:JSON.stringify(n)};s().sendHHEvent("element_shown",{elementName:a,...t,...e})}},100)},[e]),d=()=>(e,a,t=!0)=>{t&&s().sendHHEventButtonClick(e,{},a)}},258417:function(e,a,t){t.r(a),t.d(a,{default:()=>ue});var n=t(651679),o=t(70013),s=t(977403),i=t(322815),c=t(678305),l=t(698013),r=t(788142),d=t(846228),p=t(544296),m=t(594948),u=t(98290),y=t(75813),v=t(736627),b=t(951472),g=t.n(b);const _={changeTab:()=>g().sendHHEventButtonClick("vacancy_templates_change_tab"),newTemplate:()=>g().sendHHEventButtonClick("vacancy_templates_new_template"),useTemplate:()=>g().sendHHEventButtonClick("vacancy_templates_use_template"),editTemplate:()=>g().sendHHEventButtonClick("vacancy_templates_edit_template"),deleteTemplate:()=>g().sendHHEventButtonClick("vacancy_templates_delete_template"),previewTemplate:()=>g().sendHHEventButtonClick("vacancy_templates_preview_template"),changePage:()=>g().sendHHEventButtonClick("vacancy_templates_change_page")};var h=t(969067),f=t(646692),x=t(196499),E=t(440119),N=t(4401);const T="templates-header-row--pwLIAhHX0fkJhhXv",w="templates-header-select--e3EX01rR31UNYHoq",C="templates-list--BLk8k_1To1wuH5mY";var j=t(612215);const S="employer.vacancies.templates.button.newTemplate",V=({activeTemplatesOption:e,templatesItems:a,isEmptyListVisible:t,onActiveTemplateOptionChange:n,trls:s})=>{const{isMobile:c}=(0,h.G)(),l=(0,f.oQ)(a);return(0,j.jsx)(N.O,{children:(0,j.jsxs)("div",{className:T,children:[!t&&(0,j.jsx)(i.z,{Element:o.u,size:"medium",mode:"primary",style:"accent",to:"/employer/vacancies/templates/template",icon:c&&(0,j.jsx)(E.CmA,{}),"data-qa":"vacancy-template__create",children:!c&&s[S]}),(0,j.jsx)("div",{className:w,children:(0,j.jsx)(x.W,{type:"radio",name:"templates-type",value:(0,f.j_)(e,a),dataProvider:l,onChange:async e=>{await n(e.value)},triggerProps:{size:"medium",stretched:!0,disabled:1===a.length}})})]})})};V.displayName="EmployerVacanciesTemplates/components/Header/TemplatesHeaderComponent";const A=(0,s.x)(V);var O=t(319363),D=t(112687),P=t(786865),I=t(942751),q=t(622694),M=t(349268),R=t(69503);const k="template-info--_VQFoMT28sgrGbgf",L="template-actions--xoMn16uJ4eM84dwh",F="template-actions-delete--tSCn1yEh1tgDblRN",U="/employer/vacancies/templates/template",H="vacancy.vacancyTemplate.remove",B="vacancy.vacancyTemplate.bottomSheet.remove",Q="vacancy.vacancyTemplate.edit",X="vacancy.vacancyTemplate.view",z="vacancy.vacancyTemplate.useTemplate",G=({activeTemplatesOption:e,id:a,name:t,isBottomSheetVisible:s,canEdit:c=!1,setBottomSheetVisibility:l,trls:r})=>{const d=(0,I.useDispatch)(),{isMobile:p}=(0,h.G)(),m=(0,n.useCallback)(()=>{l(!1)},[l]),v=(0,n.useCallback)(async()=>{s&&m(),_.deleteTemplate(),d((0,y.Fy)({id:a})),await(0,u.aB)(d)},[m,d,a,s]),b={Element:o.u,style:"accent"},g=e===y.Xy.Global,f=g?{isPreparedTemplate:!0}:{};return(0,j.jsxs)("div",{className:L,children:[(0,j.jsx)(i.z,{...b,mode:"secondary",to:(0,M.updateUrl)("/employer/vacancy/create",g?{preparedTemplateId:a}:{templateId:a}),onClick:()=>_.useTemplate(),"data-qa":"vacancy-template__useTemplate",children:r[z]}),c?(0,j.jsx)(i.z,{...b,mode:"tertiary",to:(0,M.updateUrl)(U,{id:a}),onClick:()=>_.editTemplate(),"data-qa":"vacancy-template__edit",children:r[Q]}):(0,j.jsx)(i.z,{...b,mode:"tertiary",to:(0,M.updateUrl)(U,{id:a,...f}),onClick:()=>_.previewTemplate(),"data-qa":"vacancy-template__view",children:r[X]}),c&&!p&&(0,j.jsx)("div",{className:F,children:(0,j.jsx)(R.Z,{id:a,templateName:t,buttonProps:{mode:"secondary"},onComplete:v,children:r[H]})}),c&&p&&(0,j.jsx)(q.R,{visible:s,onClose:m,children:(0,j.jsx)(R.Z,{id:a,templateName:t,buttonProps:{size:"large",mode:"tertiary",icon:(0,j.jsx)(E.q6q,{}),stretched:!0},onComplete:v,onCancel:m,children:r[B]})})]})};
1G.displayName="components/Template/Actions/TemplateActionsComponent";const W=(0,s.x)(G),Z="vacancy.vacancyTemplate.shared",Y=({activeTemplatesOption:e,id:a,name:t,employerManager:o,shared:s=!1,canEdit:l=!1,trls:r})=>{const[d,p]=(0,n.useState)(!1),{isMobile:m}=(0,h.G)(),u=o?(y=o.firstName,[o.lastName,y].filter(Boolean).join(" ")):null;var y;return(0,j.jsxs)(O.Z,{borderRadius:24,padding:24,"data-qa":"vacancy-template__card",borderWidth:"default",children:[(0,j.jsxs)("div",{className:k,children:[(0,j.jsxs)("div",{children:[(0,j.jsx)(D.x,{typography:"title-5-semibold","data-qa":"vacancy-template__name",children:t}),u&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(c.X,{default:8}),(0,j.jsx)(D.x,{typography:"paragraph-2-regular",style:"secondary",children:u})]}),m&&s&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(c.X,{default:12}),(0,j.jsx)("span",{"data-qa":"vacancy-template__shared",children:(0,j.jsx)(P.V,{children:r[Z]})})]})]}),m?l&&(0,j.jsx)(i.z,{mode:"secondary",hideLabel:!0,"aria-label":"Controls",onClick:()=>p(!0),icon:(0,j.jsx)(E.yRg,{})}):s&&(0,j.jsx)("span",{"data-qa":"vacancy-template__shared",children:(0,j.jsx)(P.V,{children:r[Z]})})]}),(0,j.jsx)(c.X,{default:24}),(0,j.jsx)(W,{activeTemplatesOption:e,id:a,name:t,isBottomSheetVisible:d,canEdit:l,setBottomSheetVisibility:p})]})};Y.displayName="components/Template/index/Template";const K=(0,s.x)(Y),$=({activeTemplatesOption:e})=>{const a=(0,m.v)(({vacancyTemplates:e})=>e);return(0,j.jsx)("div",{className:C,children:a.items.map(a=>(0,j.jsx)(K,{activeTemplatesOption:e,...a},a.id))})};$.displayName="EmployerVacanciesTemplates/components/List/TemplatesList";var J=t(261679),ee=t(862043),ae=t(79507),te=t(437166),ne=t(255717);const oe=(0,ee.g)("vacancyTemplates"),se=()=>{const e=(0,I.useDispatch)(),a=(0,ae.k)(),t=(0,te.w)();return async({page:n,type:o})=>{const s=await(async e=>{let a;try{a=await ne._i.get("/shards/employer/vacancies/templates",{params:e})}catch(e){console.error(e)}return a})({page:n,type:o});s&&e(oe(s));const i=(0,J.j)(t);void 0!==o&&(i.params.type=o),void 0!==n&&(i.params.page=n);const c=i.href;a(c,void 0,{cancelFetchingData:!0}),window.scrollTo(0,0)}},ie="employer.vacancies.action.emptyList.createTemplate",ce="employer.vacancies.templates.emptyList.title",le="employer.vacancies.templates.emptyList.description",re="employer.vacancies.templates.tab.personal",de="employer.vacancies.templates.tab.shared",pe="employer.vacancies.templates.tab.global",me=({trls:e})=>{const{query:a}=(0,m.v)(e=>e.router.location),t=(0,m.v)(e=>e.vacancyTemplates.paging),s=(0,m.v)(({vacanciesCount:e})=>null==e?void 0:e.templates),{activeTemplatesOption:b,templatesItems:g,isHeaderVisible:h,isEmptyListVisible:f}=(0,n.useMemo)(()=>{const t=Object.values(y.Xy).includes(a.type)?a.type:y.Xy.Personal,n=[{value:y.Xy.Personal,text:e[re]}];(s&&(null==s?void 0:s.sharedCount)>0||t===y.Xy.Shared)&&n.push({value:y.Xy.Shared,text:e[de]}),(s&&(null==s?void 0:s.globalCount)>0||t===y.Xy.Global)&&n.push({value:y.Xy.Global,text:e[pe]});return{activeTemplatesOption:t,templatesItems:n,isHeaderVisible:s&&(null==s?void 0:s.totalCount)>0,isEmptyListVisible:t===y.Xy.Personal&&0===(null==s?void 0:s.personalCount)||t!==y.Xy.Personal&&0===(null==s?void 0:s.totalCount)}},[a.type,s,e]),x=(0,n.useMemo)(()=>t?(0,v.w)(t):{first:1,last:0,current:1},[t]),E=se();return(0,j.jsx)(n.StrictMode,{children:(0,j.jsxs)(d.Z,{vacanciesType:u.FW.Templates,children:[(0,j.jsx)(r.Z,{vacanciesType:u.FW.Templates}),h&&(0,j.jsx)(A,{activeTemplatesOption:b,templatesItems:g,isEmptyListVisible:f,onActiveTemplateOptionChange:async e=>{_.changeTab(),await E({type:e,page:0})}}),f?(0,j.jsx)(p.Z,{title:e[ce],description:e[le],action:(0,j.jsx)(i.z,{mode:"primary",style:"accent",Element:o.u,to:"/employer/vacancies/templates/template","data-qa":"vacancy-template__create",onClick:_.newTemplate,children:e[ie]})}):(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(c.X,{default:20}),(0,j.jsx)($,{activeTemplatesOption:b})]}),t&&t.pages.length>1&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(c.X,{default:16}),(0,j.jsx)(l.i,{...x,onChange:async e=>{_.changePage(),await E({type:b,page:0===e?e:e-1})}})]})]})})};me.displayName="pages/EmployerVacanciesTemplates/EmployerVacanciesTemplates.route/EmployerVacanciesTemplatesRoute";const ue=(0,s.x)(me)},194717:function(e,a,t){t.d(a,{$h:()=>f.a,AM:()=>q,Df:()=>L,EL:()=>O,O4:()=>_.a,Oh:()=>C.a,Qr:()=>I,UF:()=>R,Ui:()=>E.a,Wq:()=>j,XY:()=>S,_W:()=>M,fo:()=>k,oM:()=>P,qp:()=>D});var n=t(700046),o=t.n(n),s=t(243103),i=t.n(s),c=t(532346),l=t.n(c),r=t(720590),d=t.n(r),p=t(772014),m=t.n(p),u=t(878532),y=t.n(u),v=t(964102),b=t.n(v),g=t(658608),_=t.n(g),h=t(612911),f=t.n(h),x=t(165464),E=t.n(x),N=t(449532),T=t.n(N),w=t(82568),C=t.n(w);const j={uploadFile:"upload_file",downloadVacancies:"download_vacancies",download:"download",view:"view"},S={withErrors:"withErrors",noPublications:"noPublications",noQuotas:"noQuotas"}
1,V="download",A="send_email",O={fileTooLarge:"file_too_large",fileNameTooLong:"file_name_too_long",invalidFormat:"invalid_format",uploadFailed:"upload_failed"},D=()=>{o()()},P=e=>{i()({actionName:e})},I=e=>{T()({columnName:e})},q=e=>e?A:V,M=e=>{l()({actionName:e})},R=e=>{m()({actionName:e})},k=e=>{b()({tabName:e})},L=e=>"errors"===e?y():"vacancies"===e?d():null},736627:function(e,a,t){t.d(a,{w:()=>o});const n=e=>{var a;return null!=e&&null!==(a=e.lastPage)&&void 0!==a&&a.page?e.lastPage.page+1:Math.max(...e.pages.map(({text:e})=>Number(e)).filter(e=>!isNaN(e)))},o=e=>{var a,t;return{first:1,last:n(e),current:Number(null!==(a=null===(t=e.pages.find(({selected:e})=>e))||void 0===t?void 0:t.text)&&void 0!==a?a:0)}}}}]); 2//# sourceMappingURL=EmployerVacanciesTemplates-route.cdba39f80b7b6ef3.js.map 3//# debugId=ded9790f-96bd-4991-bab3-529ca7c058ac
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.