1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7922],{66449:function(e,a,t){"use strict";t.d(a,{Z:function(){return m}});var n=t(59499),s=t(95627),i=t.n(s),c=t(67294),o=t(81768),r=t(37808),d=t(93967),l=t.n(d),h=(t(34338),t(95952)),u=[".confirmation.jsx-3790568555{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}",".confirmation__btn.jsx-3790568555{display:block;background:none;border:none;outline:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-size:16px;padding:0;cursor:pointer;}",".confirmation__container.jsx-3790568555{position:absolute;z-index:2000;min-width:120px;min-height:120px;top:40px;right:-".concat(h.W0.s,";}"),".confirmation__container--up.jsx-3790568555{top:auto;bottom:100%;}",'.confirmation__container.jsx-3790568555:after,.confirmation__container.jsx-3790568555:before{z-index:2000;left:100%;border:solid transparent;content:" ";height:0;width:0;position:relative;pointer-events:none;}','.confirmation__container.jsx-3790568555:before,.confirmation__container--up.jsx-3790568555:before{position:absolute;content:"";width:0;height:0;margin-left:-35px;top:-8px;border-width:8px;border-color:#fff #fff transparent transparent;box-sizing:border-box;box-shadow:3px -3px 3px rgba(124,124,124,0.1);-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg);}',".confirmation__container--up.jsx-3790568555:before{-webkit-transform:rotate(135deg);-ms-transform:rotate(135deg);transform:rotate(135deg);top:auto;bottom:8px;margin-left:-12px;}",".confirmation__content.jsx-3790568555{margin-top:-8px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;justify-items:center;background:#ffffff;box-shadow:0 2px 10px 0 rgba(4,4,41,0.15);border-radius:2px;font-size:14px;overflow:hidden;color:".concat(h.O9.secondary,";padding:").concat(h.W0.xs,";}"),".confirmation__text.jsx-3790568555{text-align:center;font-size:".concat(h.JB.s,";margin:").concat(h.W0.xs,";padding:").concat(h.W0.xs," 0;}"),".confirmation__actions.jsx-3790568555{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;}",".confirmation__actions.jsx-3790568555>*{-webkit-flex:50%;-ms-flex:50%;flex:50%;margin:".concat(h.W0.xs,";}"),"@media screen and (max-width:".concat(h.J7.desktopCutoff,"){.confirmation__container.jsx-3790568555{margin:1px;padding-right:10px;}}")];u.__hash="3790568555";var x=u,p=t(85893),f=function(e){var a=e.iconMain,t=e.iconActive,s=e.textKey,d=e.primaryBtn,h=e.secondaryBtn,u=e.action,f=e.buttonClass,m=(0,c.useState)(!1),v=m[0],j=m[1],_=(0,c.useState)(!1),g=_[0],b=_[1],y=c.createRef();(0,c.useEffect)((function(){y.getBoundingClientRect().y>400&&b(!0)}),[]);var w=function(){j(!v)},k=l()((0,n.Z)({confirmation__btn:!0},f,!!f));return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)("span",{ref:function(e){y=e},className:"jsx-".concat(x.__hash)+" confirmation",children:[(0,p.jsx)("button",{type:"button",onClick:w,className:"jsx-".concat(x.__hash)+" "+(k||""),children:v&&t?t:a}),v&&(0,p.jsx)("div",{className:"jsx-".concat(x.__hash)+" "+(l()({confirmation__container:!0,"confirmation__container--up":g})||""),children:(0,p.jsxs)("div",{className:"jsx-".concat(x.__hash)+" confirmation__content",children:[(0,p.jsx)("p",{className:"jsx-".concat(x.__hash)+" confirmation__text",children:(0,p.jsx)(r.Z,{id:s})}),(0,p.jsxs)("div",{className:"jsx-".concat(x.__hash)+" confirmation__actions",children:[(0,p.jsx)(o.Z,{isSecondary:!0,onClick:w,children:(0,p.jsx)(r.Z,{id:h})}),(0,p.jsx)(o.Z,{isNegative:!0,onClick:function(){u(),w()},children:(0,p.jsx)(r.Z,{id:d})})]})]})})]}),(0,p.jsx)(i(),{id:x.__hash,children:x})]})};f.defaultProps={iconActive:null,textKey:"confirmation.title.default",primaryBtn:"confirmation.primary.default",secondaryBtn:"confirmation.secondary.default",buttonClass:null};var m=f},87426:function(e,a,t){"use strict";t.d(a,{Z:function(){return f}});var n=t(17674),s=t(95627),i=t.n(s),c=t(67294),o=t(93967),r=t.n(o),d=t(2664),l=t(26692),h=[".blurred > *{pointer-events:none;-webkit-filter:blur(8px);filter:blur(8px);-webkit-user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}",".shadow-box.jsx-2464465184{position:absolute;width:100%;z-index:20;display:none;background:rgba(4,4,41,0.6);}",".shadow-box--visible.jsx-2464465184{display:block;}"];h.__hash="2464465184";var u=h,x=t(85893),p=function(e){var a=e.isVisible,t=c.useState(0),s=(0,n.Z)(t,2),o=s[0],d=s[1];(0,c.useEffect)((function(){a?(document.body.classList.add("no-scroll"),d(document.querySelector("body").scrollHeight)):document.body.classList.remove("no-scroll"),e.toggleShadowBox(a)}),[a]);var l=r()({"shadow-box":!0,"shadow-box--visible":a});return(0,x.jsx)("div",{style:{height:o},className:"jsx-".concat(u.__hash)+" "+(l||""),children:(0,x.jsx)(i(),{id:u.__hash,children:u})})};p.defaultProps={isVisible:!1};var f=(0,d.$j)(null,{toggleShadowBox:l.W0})(p)},90601:function(e,a,t){"use strict";t.d(a,{Z:function(){return y}});var n=t(59499),s=t(95627),i=t.n(s),c=(t(50886),t(47729),t(69358),t(59749),t(38077),t(60228),t(81919),t(47522),t(99474),t(67294)),o=t(93967),r=t.n(o),d=t(11537),l=t(47109),h=t(65804),u=(t(34338),t(95952)),x=[".multi-level-menu.jsx-3270866869{position:relative;}",".multi-level-menu-list.jsx-3270866869{display:block;position:absolute;min-width:180px;top:0;left:100%;background:#ffffff;box-shadow:0 2px 10px 0 rgba(4,4,41,0.15);border-radius:2px;font-size:14px;margin-left:2px;z-index:500;}",".multi-level-menu-list--left.jsx-3270866869{left:unset;right:100%;}",".multi-level-menu-list--top.jsx-3270866869{left:0;}",".multi-level-menu-list__item{position:relative;width:100%;cursor:pointer;}",".multi-level-menu-list--wide.jsx-3270866869,.multi-level-menu-list--wide.jsx-3270866869 .multi-level-menu-list__item{width:260px;}",".multi-level-menu-list__item--standard{padding:".concat(u.W0.s," ").concat(u.W0.xs," !important;width:100%;text-align:left;}"),".multi-level-menu-list__item--standard:not(.multi-level-menu-list__item--label):hover{background-color:".concat(u.O9.activeBackgroun
1d,";}"),".multi-level-menu-list__item--sub{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".multi-level-menu-list__item--negative{color:".concat(u.O9.negative,";}"),".multi-level-menu-list__item--selected{display:-webkit-box !important;display:-webkit-flex !important;display:-ms-flexbox !important;display:flex !important;-webkit-box-pack:justify !important;-webkit-justify-content:space-between !important;-ms-flex-pack:justify !important;justify-content:space-between !important;background:".concat(u.O9.activeBackground," !important;}"),".multi-level-menu-list__item--label{color:".concat(u.O9.secondary,";}"),".multi-level-menu-list__item path{fill:".concat(u.O9.grey2,";}"),".multi-level-menu-list__item--selected svg{margin-top:2px;}",".multi-level-menu-action{width:100%;text-align:left;cursor:pointer;}","@media screen and (max-width:".concat(u.J7.desktopCutoff,"){.multi-level-menu-list--left.jsx-3270866869{right:0;}.multi-level-menu-list__item.jsx-3270866869 .multi-level-menu-list{position:relative;margin-left:0;padding-left:").concat(u.W0.xs,";border:0;box-shadow:initial;border-top:1px solid ").concat(u.O9.grey3,";border-bottom:1px solid ").concat(u.O9.grey3,";}}")];x.__hash="3270866869";var p=x,f=t(85893);function m(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);a&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),t.push.apply(t,n)}return t}function v(e){for(var a=1;a<arguments.length;a++){var t=null!=arguments[a]?arguments[a]:{};a%2?m(Object(t),!0).forEach((function(a){(0,n.Z)(e,a,t[a])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach((function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))}))}return e}var j=function(e){return(0,f.jsx)("svg",v(v({},e),{},{children:(0,f.jsx)("path",{d:"M8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12zm-.464-5.343L5.414 6.536 4 7.95l2.121 2.121 1.415 1.414 4.95-4.95-1.415-1.414-3.535 3.536zM8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16z",fill:"none",fillRule:"evenodd"})}))};j.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"};var _=function(e){return(0,f.jsx)("svg",v(v({},e),{},{children:(0,f.jsx)("path",{d:"M1.5 0 0 1.333 3 4 0 6.667 1.5 8 6 4z",fill:"none",fillRule:"evenodd"})}))};_.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"6",height:"8"};var g=function(e){return(0,f.jsx)("svg",v(v({},e),{},{children:(0,f.jsx)("path",{d:"M4.516 7.548c.436-.446 1.043-.481 1.576 0L10 11.295l3.908-3.747c.533-.481 1.141-.446 1.574 0 .436.445.408 1.197 0 1.615-.406.418-4.695 4.502-4.695 4.502a1.095 1.095 0 0 1-1.576 0S4.924 9.581 4.516 9.163s-.436-1.17 0-1.615z"})}))};g.defaultProps={height:"20",width:"20",xmlns:"http://www.w3.org/2000/svg"};var b=function e(a){var t=a.data,n=a.children,s=a.afterClose,o=a.forceLeft,u=a.forceTop,x=a.wide,m=a.closeRoot,v=(0,c.useState)(!1),b=v[0],y=v[1],w=(0,c.useState)(!1),k=w[0],S=w[1],Z=null,O=function(){if(Z&&window.innerWidth-Z.getBoundingClientRect().right<200)return!0;return!1},N=function(){y(!1),s&&s()};return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)("div",{ref:function(e){Z=e},className:"jsx-".concat(p.__hash)+" multi-level-menu",children:[(0,f.jsx)("span",{onClick:k?function(){N(),setTimeout((function(){S(!1)}),150)}:function(){y(!0),S(!0)},className:"jsx-".concat(p.__hash)+" multi-level-menu-action no-inner-style",children:n}),(0,f.jsx)(l.Z,{onOutsideClick:N,children:(0,f.jsx)(h.AM,{from:{height:b?0:"auto"},to:{height:b?"auto":0},config:{duration:150},children:function(a){a.overflow="unset","auto"!==a.height?(a.overflowY="hidden",a.overflowX="hidden"):a.overflowY="visible";var n=r()({"multi-level-menu-list":!0,"multi-level-menu-list--wide":x,"multi-level-menu-list--left":o||O(),"multi-level-menu-list--top":u});return k&&(a.height>0||"auto"===a.height)&&(0,f.jsx)("div",{style:a,className:"jsx-".concat(p.__hash)+" "+(n||""),children:t.map((function(a,t){var n=r()({"no-inner-style":!0,"multi-level-menu-list__item--standard":!a.component,"multi-level-menu-list__item--sub":!!a.sub,"multi-level-menu-list__item--negative":!!a.negative,"multi-level-menu-list__item--selected":!!a.selected,"multi-level-menu-list__item--label":a.isLabel}),s=a.component||a.label,i=a.action?(0,f.jsxs)(d.Z,{isClear:!0,onClick:function(){return(e=a.action)&&e(),void(m&&m());var e},className:n,children:[s," ",a.selected&&(0,f.jsx)(j,{})]}):(0,f.jsx)("div",{className:"jsx-".concat(p.__hash)+" "+(n||""),children:s});return(0,f.jsx)("div",{className:"jsx-".concat(p.__hash)+" multi-level-menu-list__item",children:a.sub?(0,f.jsx)(e,{data:a.sub,wide:x,closeRoot:m||N,children:(0,f.jsxs)("div",{className:"jsx-".concat(p.__hash)+" "+(n||""),children:[s,(0,f.jsx)("span",{className:"jsx-".concat(p.__hash)+" hide-mobile",children:(0,f.jsx)(_,{})}),(0,f.jsx)("span",{className:"jsx-".concat(p.__hash)+" hide-desktop",children:(0,f.jsx)(g,{})})]})}):i},t)}))})}})})]}),(0,f.jsx)(i(),{id:p.__hash,children:p})]})};b.defaultProps={children:null,afterClose:null,forceLeft:!1,forceTop:!1,wide:!1,closeRoot:null};var y=b},9152:function(e,a,t){"use strict";t.r(a),t.d(a,{__N_SSP:function(){return Fa},default:function(){return za}});t(69358),t(59749),t(81919),t(99474);var n=t(59499),s=t(95627),i=t.n(s),c=(t(38077),t(60228),t(25728),t(752),t(76265),t(47522),t(60429),t(50886),t(34338),t(6203),t(77049),t(21694),t(19649),t(34284),t(67294)),o=t(2664),r=t(96253),d=t(9008),l=t.
1n(d),h=t(21137),u=t(89373),x=(t(65137),t(86466),t(37808)),p=t(90116),f=(t(76801),t(39772),t(64043),t(9873),t(268),t(71321)),m=t(69065),v=t(18135),j=t(19275),_=t(81768),g=t(11537),b=t(45536),y=t(49011),w=t(3419),k=t(66449),S=t(95952),Z=[".candidate-search-form.jsx-953179841{padding:0;background:#fff;}",".candidate-search-form__label.jsx-953179841{display:block;font-weight:bold;margin:0 0 ".concat(S.W0.xxs," 0;}"),".candidate-search-form__field--accuracy.jsx-953179841{max-width:537px;}",".candidate-search-form__add.jsx-953179841>*{height:56px;}",".candidate-search-form__main.jsx-953179841,.candidate-search-form__additional-columns.jsx-953179841{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;}",".candidate-search-form__main--top-padded.jsx-953179841{padding-top:".concat(S.W0.xs,";}"),".candidate-search-form__additional-columns--narrow.jsx-953179841{padding-right:92px;}",".candidate-search-form__main.jsx-953179841 .btn{margin:0 ".concat(S.W0.s," ").concat(S.W0.s," 0;width:76px;}"),".candidate-search-form__tags.jsx-953179841{margin-left:-".concat(S.W0.s,";padding-bottom:").concat(S.W0.xs,";}"),".candidate-search-form__main.jsx-953179841 div.jsx-953179841:not(last-of-type),.candidate-search-form__additional-columns.jsx-953179841 div.jsx-953179841:not(last-of-type){-webkit-flex:1;-ms-flex:1;flex:1;margin-right:".concat(S.W0.s,";}"),".candidate-search-form__categories.jsx-953179841{padding-right:92px;}",".candidate-search-form__languages.jsx-953179841 .cv-language-item :first-child{-webkit-flex-shrink:unset;-ms-flex-negative:unset;flex-shrink:unset;}",".candidate-search-form__languages.jsx-953179841{margin-top:".concat(S.W0.xs,";}"),".candidate-search-form__languages.jsx-953179841 .cv-language-item__remove{width:90px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}",".candidate-search-form__language.jsx-953179841 svg{margin:-".concat(S.W0.xxxs," ").concat(S.W0.xs," 0 0;}"),".candidate-search-form__additional.jsx-953179841{border-top:1px solid ".concat(S.O9.grey3,";margin:").concat(S.W0.s," 0 -").concat(S.W0.s," 0;padding-bottom:").concat(S.W0.l,";}"),".candidate-search-form__additional-content.jsx-953179841{border-bottom:1px solid ".concat(S.O9.grey3,";}"),".candidate-search-form__additional-toggle.jsx-953179841,.candidate-search-form__clear-all.jsx-953179841{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative;left:-".concat(S.W0.s,";top:-15px;background:#ffffff;color:").concat(S.O9.active,";font-size:16px;line-height:1.5;padding:0 ").concat(S.W0.s,";}"),".candidate-search-form__clear-all.jsx-953179841{-webkit-align-self:flex-end;-ms-flex-item-align:end;align-self:flex-end;}",".candidate-search-form__additional-toggle.jsx-953179841 svg{margin:0 ".concat(S.W0.xs," -").concat(S.W0.xxxs," 0;}"),".candidate-search-form-footer.jsx-953179841{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding-bottom:".concat(S.W0.m,";}"),".candidate-search-form-footer__item.jsx-953179841{min-width:186px;}",".candidate-search-form-footer__item.jsx-953179841:nth-of-type(1){padding-top:".concat(S.W0.xs,";}"),".candidate-search-form-footer__item.jsx-953179841:nth-of-type(2){margin-left:".concat(S.W0.s,";}"),".candidate-search-form-footer__item.jsx-953179841:nth-of-type(3){margin-left:auto;margin-right:".concat(S.W0.s,";}"),".candidate-search-form-footer__item.jsx-953179841:nth-of-type(4){margin-right:".concat(S.W0.s,";}"),".candidate-search__language-field.jsx-953179841{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}",".candidate-search__language-field.jsx-953179841>*{width:calc(50% - ".concat(S.W0.xs,");}"),".candidate-search__language-field.jsx-953179841>:first-child{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;}",".candidate-search__language-field.jsx-953179841>:nth-child(2n){margin-left:".concat(S.W0.s,";}"),".candidate-search__language-field__remove.jsx-953179841{width:24px;height:56px;margin-left:".concat(S.W0.xs,";margin-top:").concat(S.W0.s,";padding:0;background:none;border:none;outeline:none;}"),".candidate-search__language-field__remove.jsx-953179841 svg{margin-left:6px;}","@media screen and (max-width:".concat(S.J7.desktopCutoff,"){.candidate-search-form.jsx-953179841{overflow:auto;padding-top:0;}.candidate-search-form__main.jsx-953179841,.candidate-search-form__additional-columns.jsx-953179841{padding-top:").concat(S.W0.m,";-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}.candidate-search-form__main.jsx-953179841 div.jsx-953179841:not(last-of-type),.candidate-search-form__additional-columns.jsx-953179841 div.jsx-953179841:not(last-of-type){margin-right:0;}.candidate-search-form__additional.jsx-953179841{margin:0;padding:0;border-top:0;}.candidate-search-form__additional-title.jsx-953179841{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;
1-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;}.candidate-search-form__additional-toggle.jsx-953179841,.candidate-search-form__clear-all.jsx-953179841{top:initial;left:initial;margin:0 -").concat(S.W0.s,";}.candidate-search-form__clear-all.jsx-953179841{right:0;}.candidate-search-form-footer.jsx-953179841{-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;}.candidate-search-form-footer__item.jsx-953179841{min-width:0;-webkit-flex:1 0 45%;-ms-flex:1 0 45%;flex:1 0 45%;}.candidate-search-form-footer__item.jsx-953179841:nth-of-type(2){-webkit-flex:1 0 100%;-ms-flex:1 0 100%;flex:1 0 100%;margin:0;}.candidate-search-form-footer__item.jsx-953179841:nth-child(4){margin:").concat(S.W0.s," ").concat(S.W0.xs," 0 0;}.candidate-search-form-footer__item.jsx-953179841:nth-child(odd){margin:").concat(S.W0.s," 0 0 ").concat(S.W0.xs,";}.candidate-search-form__additional-title.jsx-953179841{margin-bottom:").concat(S.W0.s,";}.candidate-search-form__main.jsx-953179841,.candidate-search-form__additional-columns.jsx-953179841{padding-top:0;}.candidate-search-form__additional-columns--narrow.jsx-953179841{padding-right:0;}.candidate-search-form__languages.jsx-953179841 .cv-language-item__remove{width:auto;}.candidate-search-form__add.jsx-953179841>*{height:40px;}}")];Z.__hash="953179841";var O=Z,N=t(85893);function P(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);a&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),t.push.apply(t,n)}return t}function E(e){for(var a=1;a<arguments.length;a++){var t=null!=arguments[a]?arguments[a]:{};a%2?P(Object(t),!0).forEach((function(a){(0,n.Z)(e,a,t[a])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):P(Object(t)).forEach((function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))}))}return e}var C=function(e){return(0,N.jsx)("svg",E(E({},e),{},{children:(0,N.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,N.jsx)("path",{stroke:"#EC2359",d:"m1.537 4.5.929 13h9.068l.929-13H1.537z"}),(0,N.jsx)("path",{fill:"#EC2359",d:"M6 0h3v2h5v1H0V2h5V0h1zm0 1v1h2V1H6z"})]})}))};C.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"18"};var M=function(e){return(0,N.jsx)("svg",E(E({},e),{},{children:(0,N.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,N.jsx)("path",{fill:"#EC2359",d:"M6 0h3v2h5v1H0V2h5V0h1zm0 1v1h2V1H6zM1 4h12l-1 14H2L1 4z"}),(0,N.jsx)("path",{stroke:"#EC2359",d:"M-5-3h24v24H-5z"})]})}))};M.defaultProps={width:"14",height:"18",xmlns:"http://www.w3.org/2000/svg"};var L=function(e){var a=e.languageOptions,t=e.levelOptions,n=e.item,s=e.isRemoveVisible,c=e.onLanguageSelect,o=e.onRemoveLanguage;return(0,N.jsxs)("div",{className:"jsx-".concat(O.__hash)+" candidate-search__language-field",children:[(0,N.jsx)(f.Z,{name:"languages[".concat(n.id,"].iso"),component:j.Z,options:a,placeholder:(0,N.jsx)(x.Z,{id:"languages.lang.label"}),validate:[w.C1],onChange:function(e){return c(n.id,e)}}),(0,N.jsx)(f.Z,{name:"languages[".concat(n.id,"].level"),component:j.Z,options:t,placeholder:(0,N.jsx)(x.Z,{id:"languages.level.label"}),validate:[w.C1]}),s&&(0,N.jsx)("div",{className:"jsx-".concat(O.__hash)+" candidate-search__language-field__remove",children:(0,N.jsx)(k.Z,{action:function(){return o(n.id)},textKey:"confirmation.delete.language",primaryBtn:"confirmation.delete.label",iconMain:(0,N.jsx)(C,{}),iconActive:(0,N.jsx)(M,{})})}),(0,N.jsx)(i(),{id:O.__hash,children:O})]})},W=t(50029),A=t(87794),I=t.n(A),F=(t(57267),t(38320),t(15292)),z=t(55472),D=t(71667),T=t(18075),q=t(92188);function R(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);a&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),t.push.apply(t,n)}return t}function V(e){for(var a=1;a<arguments.length;a++){var t=null!=arguments[a]?arguments[a]:{};a%2?R(Object(t),!0).forEach((function(a){(0,n.Z)(e,a,t[a])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):R(Object(t)).forEac
1h((function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))}))}return e}var B=(0,r.ge)(),H=function(e){var a=e.intl,t=e.locale,n=e.setValues,s=e.values,o=e.updatePredictions,r=e.suggestions,d=e.skillsSuggestionStatistics,l=e.positionsSuggestionStatistics,h=e.setSkillSuggestionAccepted,u=e.updateCvSearchPositionsPredictions,m=e.cvSearchPositionsSuggestions,v=e.positionValuesForSkillSuggestions,g=(0,c.useState)({value:[],name:"keywords"}),b=g[0],y=g[1],w=(0,c.useState)([]),k=w[0],S=w[1],Z=(0,c.useState)("all"),P=Z[0],E=Z[1],C=(0,c.useState)(0),M=C[0],L=C[1];(0,c.useEffect)((function(){S(s)}),[]),(0,c.useEffect)((function(){S(s)}),[s]);var A=function(e){y(V(V({},b),{},{keys:e}))},R=function(e){S(e)},H=function(e){!function(e){var a=k.filter((function(a){return a.value!==e.value}));S(a),n(a.map((function(e){return{value:e.value,label:e.label,type:e.type}})))}(e)},Q=function(){var e=(0,W.Z)(I().mark((function e(a){var n,s,i,c,o,r;return I().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=[],"all"!==P&&"skill"!==P){e.next=9;break}return s=(0,F.Z)([],!0).get((0,z.WT)("/cv-service/skills/search?query=".concat(encodeURIComponent(a))),{headers:V(V({},(0,z.lJ)()),{},{"Accept-Language":t})}),e.next=5,s;case 5:(i=e.sent)&&200===i.status&&i.data.forEach((function(e){n.push(V(V({},e),{},{value:e.key,label:e.value,isSkill:!0}))})),e.next=18;break;case 9:if("previous"!==P&&"expected"!==P){e.next=18;break}if(c=a.replaceAll("\\","")){e.next=13;break}return e.abrupt("return",[]);case 13:return o=(0,F.Z)([],!0).get((0,z.WT)("\n /cv-service/search/positions-autocomplete?term=".concat(encodeURIComponent(c))),c,{headers:V(V({},(0,z.lJ)()),{},{"Accept-Language":t})}),e.next=16,o;case 16:(r=e.sent)&&200===r.status&&r.data.forEach((function(e){n.push({value:e,label:e})}));case 18:return e.abrupt("return",n);case 19:case"end":return e.stop()}}),e)})));return function(a){return e.apply(this,arguments)}}(),J=function(e,a){var t=(0,p.Z)(k);e.forEach((function(e){if(!t.some((function(a){return a.value===e.value}))){var a={value:e.value,label:e.label||e.value,type:e.type||P};t.push(a)}})),S(t),a||y((function(e){return V(V({},e),{},{value:[],keys:[]})})),n(t)};(0,c.useEffect)((function(){"expected"!==P&&"previous"!==P||L((function(e){return e+1}))}),[P]);var U=function(e){J([].concat((0,p.Z)(k),[e]),!0)},Y=["all","skill","previous","expected"].includes(P)?Q:void 0,G=b.value&&b.value.length>0&&!!b.value.find((function(e){return e.key}))&&!Y,K=r&&r.keywords||[],$=m&&m.keywords||[],X="previous"===P||"expected"===P,ee=X?function(e,a){u(e,a)}:function(e,a){o(e,a)},ae=X?$:K;return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)("span",{className:"jsx-".concat(O.__hash)+" candidate-search-form__label",children:(0,N.jsx)(x.Z,{id:"candidate.search.keywords.label"})}),(0,N.jsxs)("div",{className:"jsx-".concat(O.__hash)+" candidate-search-form__main",children:[(0,N.jsxs)("div",{className:"jsx-".concat(O.__hash)+" candidate-search-form__field",children:["skill"===P&&(0,N.jsx)(f.Z,{name:"keywords",component:T.Z,options:[],loadOptions:Q,placeholder:(0,N.jsx)(x.Z,{id:"candidate.search.keywords.placeholder"}),isFullWidth:!0,createOnBlur:!0,input:V(V({},b),{},{onChange:A}),limit:1,intl:a,updatePredictions:o,suggestions:ae,skillsSuggestionStatistics:d,setSkillSuggestionAccepted:h,useValuesForPredictions:!0,updateAfterFirstAdd:!0,positionValuesForSkillSuggestions:v,values:s,keywords:{value:k,onChange:R,onRemove:H},quickAddKeywordFromSuggestion:U}),"skill"!==P&&(0,N.jsx)(f.Z,{name:"keywords",component:X?T.Z:D.Z,options:[],loadOptions:Q,placeholder:(0,N.jsx)(x.Z,{id:"candidate.search.keywords.placeholder"}),isFullWidth:!0,createOnBlur:!0,input:V(V({},b),{},{onChange:A}),limit:1,intl:a,updatePredictions:ee,suggestions:ae,skillsSuggestionStatistics:X?l:null,setSkillSuggestionAccepted:h,useValuesForPredictions:!0,updateAfterFirstAdd:!0,values:s,keywords:{value:k,onChange:R,onRemove:H},quickAddKeywordFromSuggestion:U},"".concat(P,"-").concat(M))]}),(0,N.jsx)("div",{className:"jsx-".concat(O.__hash)+" candidate-search-form__field candidate-search-form__field--keywords",children:(0,N.jsx)(f.Z,{name:"searchFrom",component:j.Z,options:[{value:"all",label:a.formatMessage({id:"candidate.search.search.from.all"})},{value:"skill",label:a.formatMessage({id:"candidate.search.search.from.skill"})},{value:"previous",label:a.formatMessage({id:"candidate.search.search.from.previous.label"})},{value:"expected",label:a.formatMessage({id:"candidate.search.search.from.expected.label"})}],placeholder:(0,N.jsx)(x.Z,{id:"candidate.search.keywords.search.from"}),onChange:function(e){E(e)},isFullWidth:!0})}
1),(0,N.jsx)("span",{className:"jsx-".concat(O.__hash)+" candidate-search-form__add",children:(0,N.jsx)(_.Z,{onClick:function(){b.keys&&b.keys.length>0&&!G&&J(b.keys,!1)},isDisabled:G,isSecondary:!0,type:"button",children:(0,N.jsx)(x.Z,{id:"cv.addButton"})})})]}),(0,N.jsx)("div",{className:"jsx-".concat(O.__hash)+" candidate-search-form__tags",children:("skill"!==P&&!X||"EE"!==B)&&s&&s.length>0&&k.map((function(e){return(0,N.jsxs)(q.Z,{onRemove:function(){return H(e)},children:[e.label,"\xa0\u2013\xa0",e.type?a.formatMessage({id:"candidate.search.search.from.".concat(e.type)}).toLowerCase():""]},"".concat(e.value,"-").concat(e.type))}))}),(0,N.jsx)(i(),{id:O.__hash,children:O})]})};H.defaultProps={updatePredictions:null,suggestions:{},skillsSuggestionStatistics:[],positionsSuggestionStatistics:[],setSkillSuggestionAccepted:null,updateCvSearchPositionsPredictions:null,cvSearchPositionsSuggestions:null,positionValuesForSkillSuggestions:[]};var Q=(0,c.memo)(H);function J(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);a&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),t.push.apply(t,n)}return t}function U(e){for(var a=1;a<arguments.length;a++){var t=null!=arguments[a]?arguments[a]:{};a%2?J(Object(t),!0).forEach((function(a){(0,n.Z)(e,a,t[a])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):J(Object(t)).forEach((function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))}))}return e}var Y=function(e){return(0,N.jsx)("svg",U(U({},e),{},{children:(0,N.jsx)("path",{d:"M8 15c-3.86 0-7-3.14-7-7s3.14-7 7-7 7 3.14 7 7-3.14 7-7 7M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zM5.71 6.43 5 7.139l3.095 3.095 3.139-3.14-.709-.708-2.43 2.43L5.71 6.43z",fillRule:"evenodd"})}))};Y.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"};var G=function(e){return(0,N.jsx)("svg",U(U({},e),{},{children:(0,N.jsx)("path",{d:"M8 15c-3.86 0-7-3.14-7-7s3.14-7 7-7 7 3.14 7 7-3.14 7-7 7m.5-7.5V5h-1v2.5H5v1h2.5V11h1V8.5H11v-1H8.5zM8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0z",fillRule:"evenodd"})}))};G.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"};var K=function(e){var a=e.intl,t=e.handleSubmit,n=e.initialized,s=e.cvSearchActive,o=e.goToServices,r=e.languageOptions,d=e.categoryOptions,l=e.locationOptions,h=e.educationLevelOptions,m=e.educationCategoriesOptions,v=e.updateCvSearchSkillsPredictions,w=e.cvSearchSkillsSuggestions,k=e.updateCvSearchPositionsPredictions,S=e.cvSearchPositionsSuggestions,Z=e.skillsSuggestionStatistics,P=e.positionsSuggestionStatistics,E=e.setSkillSuggestionAccepted,C=e.initialize,M=e.searchFilters,W=e.levelOptions,A=e.formValues,I=e.isMoreOpen,F=e.closeMore,z=e.openMore,D=e.onSearch,T=e.handleCloseModal,q=e.handleSaveSearchButton,R=e.setIsFilterOpen,V=e.isFilterOpen,B=(0,c.useState)([]),H=B[0],J=B[1],U=(0,c.useState)(null),K=U[0],$=U[1],X=(0,c.useState)([]),ee=X[0],ae=X[1];(0,c.useEffect)((function(){var e={expectedLocations:[],lang:{},educationCategories:[],educations:[],expectedCategories:[],keywords:[]};e.hideHidden=M.hideHidden,e.hideOld=M.hideOld,e.searchFrom="all","SIMPLE"===M.requestType&&(M.keywords&&M.keywords.forEach((function(a){a.values.forEach((function(a){var t={label:a.value,value:a.key||a.value,type:"all"};a.key&&(t.key=a.key),e.keywords.push(t)}))})),M.keywordSkills&&M.keywordSkills[0]&&M.keywordSkills[0].values&&M.keywordSkills[0].values.forEach((function(a){e.keywords.push({key:a.key,label:a.value,value:a.value,isSkill:!0,type:"skill"})})),M.keywordPreviousPositions&&M.keywordPreviousPositions[0]&&M.keywordPreviousPositions[0].values&&M.keywordPreviousPositions[0].values.forEach((function(a){e.keywords.push({label:a,value:a,type:"previous"})})),M.keywordExpectedPositions&&M.keywordExpectedPositions[0]&&M.keywordExpectedPositions[0].values&&M.keywordExpectedPositions[0].values.forEach((function(a){e.keywords.push({label:a,value:a,type:"expected"})})),M.expectedLocations&&M.expectedLocations[0]&&M.expectedLocations[0].forEach((function(a){a.townId&&e.expectedLocations.push({value:"town-".concat(a.townId),type:"towns"}),a.countyId&&e.expectedLocations.push({value:"county-".concat(a.countyId),type:"counties"}),a.countryId&&e.expectedLocations.push({value:"country-".concat(a.countryId),type:"countries"})})),M.requiredLanguages&&M.requiredLanguages.length>0&&(e.languages=M.requiredLanguages.map((function(e,a){return{id:a,iso:e.iso,level:W[e.level-1].value}}
1)),J(e.languages)),M.educations&&M.educations.length>0&&M.educations.forEach((function(a){a.categories&&a.categories.forEach((function(a){return e.educationCategories.push(a)})),a.level&&e.educations.push("level-".concat(a.level)),a.degree&&e.educations.push("degree-".concat(a.degree))})),M.expectedCategories&&M.expectedCategories[0]&&M.expectedCategories[0].categories&&(e.expectedCategories=M.expectedCategories[0].categories),M.requiredExperiences&&M.requiredExperiences[0]&&(M.requiredExperiences[0].categories&&(e.requiredExperienceCategories=M.requiredExperiences[0].categories),M.requiredExperiences[0].minimumYears>0&&(e.requiredExperienceDuration=M.requiredExperiences[0].minimumYears))),$(e.keywords),C(e)}),[]),(0,c.useEffect)((function(){var e=[];K&&K.forEach((function(a){["previous","expected"].includes(a.type)&&e.push(a.label)})),ae(e)}),[A]);var te=function(e){var a={};if(K&&K.length>0){var t=K.filter((function(e){return"all"===e.type})).map((function(e){return e.key?{condition:"EQ",values:[{key:e.key,value:e.label}]}:{condition:"EQ",values:[{value:e.value}]}})),n=K.filter((function(e){return"previous"===e.type})).map((function(e){return e.value})),s=K.filter((function(e){return"expected"===e.type})).map((function(e){return e.value})),i=K.filter((function(e){return"skill"===e.type})).map((function(e){var a={value:e.label};return e.key&&(a.key=e.key),a}));t.length>0&&(a.keywords=t),i.length>0&&(a.keywordSkills=[{condition:"EQ",values:i}]),n.length>0&&(a.keywordPreviousPositions=[{condition:"EQ",values:n}]),s.length>0&&(a.keywordExpectedPositions=[{condition:"EQ",values:s}])}if(e.languages&&e.languages.length>0&&H&&(a.requiredLanguages=e.languages.filter((function(e){return e.iso&&e.level&&H.find((function(a){return a.iso===e.iso&&!a.deleted}))})).map((function(e){return{iso:e.iso,level:W.findIndex((function(a){return a.value===e.level}))+1}}))),e.expectedCategories&&e.expectedCategories.length>0&&(a.expectedCategories=[{condition:"EQ",categories:e.expectedCategories}]),e.expectedLocations&&e.expectedLocations.length>0){var c=[];e.expectedLocations.forEach((function(e){"towns"===e.type&&c.push({townId:e.value.split("town-").pop()}),"counties"===e.type&&c.push({countyId:e.value.split("county-").pop()}),"countries"===e.type&&c.push({countryId:e.value.split("country-").pop()})})),a.expectedLocations=[c]}(e.requiredExperienceCategories||e.requiredExperienceDuration>0)&&(e.requiredExperienceCategories&&e.requiredExperienceCategories.length>0?a.requiredExperiences=[{categories:e.requiredExperienceCategories,condition:"EQ",minimumYears:e.requiredExperienceDuration||0}]:e.requiredExperienceDuration>0&&(a.requiredExperiences=[{categories:[],condition:"EQ",minimumYears:e.requiredExperienceDuration}]));var o=[];return e.educationCategories&&e.educationCategories.length>0&&o.push({categories:e.educationCategories,condition:"EQ"}),e.educations&&e.educations.length>0&&e.educations.forEach((function(e){var a={condition:"EQ"};e.startsWith("degree")&&(a.degree=e.split("-").pop()),e.startsWith("level")&&(a.level=e.split("-").pop()),o.push(a)})),o.length>0&&(a.educations=o),a.hideHidden=e.hideHidden,a.hideOld=e.hideOld,a.limit=50,a.offset=0,a.requestType="SIMPLE",a},ne=function(e){var a=te(e);D(a),T(),V&&R(!1)},se=function(e,a){var t=H.filter((function(a){return a.id!==e})),n=H.find((function(a){return a.id===e}));n.iso=a,J([].concat((0,p.Z)(t),[n]))},ie=function(e){var a=H.filter((function(a){return a.id!==e})),t=H.find((function(a){return a.id===e}));t.deleted=!0,J([].concat((0,p.Z)(a),[t]))},ce=function(){J([]),$([]),C({searchFrom:"all"})};return!(!n||!K)&&(0,N.jsxs)("form",{onSubmit:t(ne),className:"jsx-".concat(O.__hash)+" candidate-search-form",children:[(0,N.jsxs)(u.Z,{children:[(0,N.jsx)(Q,{setValues:function(e){return $(e)},locale:a.locale,values:K,intl:a,updatePredictions:v,updateCvSearchPositionsPredictions:k,cvSearchPositionsSuggestions:S,suggestions:w,skillsSuggestionStatistics:Z,positionsSuggestionStatistics:P,setSkillSuggestionAccepted:E,positionValuesForSkillSuggestions:ee}
1),(0,N.jsxs)("div",{className:"jsx-".concat(O.__hash)+" candidate-search-form__additional-columns candidate-search-form__additional-columns--narrow",children:[(0,N.jsxs)("div",{className:"jsx-".concat(O.__hash)+" candidate-search-form__experience",children:[(0,N.jsx)("span",{className:"jsx-".concat(O.__hash)+" candidate-search-form__label",children:(0,N.jsx)(x.Z,{id:"candidate.search.experience.categories.label"})}),(0,N.jsx)(f.Z,{name:"requiredExperienceCategories",component:y.Z,options:d,placeholder:(0,N.jsx)(x.Z,{id:"candidate.search.categories.placeholder"})})]}),(0,N.jsxs)("div",{className:"jsx-".concat(O.__hash)+" candidate-search-form__experience",children:[(0,N.jsx)("span",{className:"jsx-".concat(O.__hash)+" candidate-search-form__label hide-mobile",children:"\xa0"}),(0,N.jsx)(f.Z,{name:"requiredExperienceDuration",component:j.Z,options:(0,p.Z)(Array(11).keys()).map((function(e){return{value:"".concat(e),label:e}})),placeholder:(0,N.jsx)(x.Z,{id:"candidate.search.experiences.duration"}),isFullWidth:!0})]})]}),(0,N.jsx)("div",{className:"jsx-".concat(O.__hash)+" candidate-search-form__main",children:(0,N.jsx)(f.Z,{name:"hideHidden",label:"candidate.search.hide.hidden",component:b.Z})}),(0,N.jsx)("div",{className:"jsx-".concat(O.__hash)+" candidate-search-form__main candidate-search-form__main--top-padded",children:(0,N.jsx)(f.Z,{name:"hideOld",label:"candidate.search.hide.old",component:b.Z})}),(0,N.jsx)("br",{className:"jsx-".concat(O.__hash)})]}),(0,N.jsxs)("div",{className:"jsx-".concat(O.__hash)+" candidate-search-form__additional",children:[(0,N.jsx)(u.Z,{children:(0,N.jsxs)("div",{className:"jsx-".concat(O.__hash)+" candidate-search-form__additional-title",children:[(0,N.jsx)("span",{className:"jsx-".concat(O.__hash)+" candidate-search-form__additional-toggle",children:(0,N.jsxs)(g.Z,{type:"button",onClick:function(){I?F():z()},children:[(0,N.jsx)(Y,{}),(0,N.jsx)(x.Z,{id:"candidate.search.more.filters"})]})}),(0,N.jsx)("span",{className:"jsx-".concat(O.__hash)+" candidate-search-form__clear-all hide-desktop",children:(0,N.jsx)(g.Z,{type:"button",onClick:ce,children:(0,N.jsx)(x.Z,{id:"candidate.search.clear"})})})]})}),I&&(0,N.jsx)("div",{className:"jsx-".concat(O.__hash)+" candidate-search-form__additional-content",children:(0,N.jsxs)(u.Z,{children:[(0,N.jsxs)("div",{className:"jsx-".concat(O.__hash)+" candidate-search-form__additional-columns",children:[(0,N.jsxs)("div",{className:"jsx-".concat(O.__hash)+" candidate-search-form__types",children:[(0,N.jsx)("span",{className:"jsx-".concat(O.__hash)+" candidate-search-form__label",children:(0,N.jsx)(x.Z,{id:"candidate.search.expected.categories.label"})}),(0,N.jsx)(f.Z,{name:"expectedCategories",component:y.Z,options:d,placeholder:(0,N.jsx)(x.Z,{id:"candidate.search.categories.placeholder"})}),(0,N.jsx)("span",{className:"jsx-".concat(O.__hash)+" candidate-search-form__label",children:(0,N.jsx)(x.Z,{id:"candidate.search.locations.label"})}),(0,N.jsx)(f.Z,{name:"expectedLocations",component:y.Z,options:l,placeholder:(0,N.jsx)(x.Z,{id:"candidate.search.locations.placeholder"}),grouped:!0})]}),(0,N.jsx)("div",{className:"jsx-".concat(O.__hash)+" candidate-search-form__additional-columns candidate-search-form__additional-columns--narrow"})]}),(0,N.jsxs)("div",{className:"jsx-".concat(O.__hash)+" candidate-search-form__additional-columns candidate-search-form__additional-columns--narrow",children:[(0,N.jsxs)("div",{className:"jsx-".concat(O.__hash)+" candidate-search-form__education",children:[(0,N.jsx)("span",{className:"jsx-".concat(O.__hash)+" candidate-search-form__label",children:(0,N.jsx)(x.Z,{id:"candidate.search.education.label"})}),(0,N.jsx)(f.Z,{name:"educations",component:y.Z,options:h,placeholder:(0,N.jsx)(x.Z,{id:"education.level.label"})})]}),(0,N.jsxs)("div",{className:"jsx-".concat(O.__hash)+" candidate-search-form__education",children:[(0,N.jsx)("span",{className:"jsx-".concat(O.__hash)+" candidate-search-form__label hide-mobile",children:"\xa0"}),(0,N.jsx)(f.Z,{name:"educationCategories",component:y.Z,options:m,placeholder:(0,N.jsx)(x.Z,{id:"education.category.label"})})]})]}
1),(0,N.jsx)("div",{className:"jsx-".concat(O.__hash)+" candidate-search-form__additional-columns",children:(0,N.jsxs)("div",{className:"jsx-".concat(O.__hash)+" candidate-search-form__languages",children:[(0,N.jsx)("span",{className:"jsx-".concat(O.__hash)+" candidate-search-form__label",children:(0,N.jsx)(x.Z,{id:"candidate.search.languages.label"})}),H.filter((function(e){return!e.deleted})).map((function(e){return(0,N.jsx)(L,{item:e,languageOptions:r,levelOptions:W,onLanguageSelect:se,onRemoveLanguage:ie,isRemoveVisible:!0},e.id)}))]})}),(0,N.jsxs)("div",{className:"jsx-".concat(O.__hash)+" candidate-search-form__language",children:[(0,N.jsxs)(g.Z,{onClick:function(){J([].concat((0,p.Z)(H),[{id:H.length}]))},children:[(0,N.jsx)(G,{}),(0,N.jsx)(x.Z,{id:"languages.addMore"})]}),(0,N.jsx)("br",{className:"jsx-".concat(O.__hash)}),(0,N.jsx)("br",{className:"jsx-".concat(O.__hash)})]})]})})]}),(0,N.jsx)(u.Z,{children:(0,N.jsxs)("footer",{className:"jsx-".concat(O.__hash)+" candidate-search-form-footer",children:[(0,N.jsx)("span",{className:"jsx-".concat(O.__hash)+" candidate-search-form-footer__item hide-mobile",children:(0,N.jsx)(g.Z,{type:"button",onClick:ce,isSecondary:!0,isFullWidth:!0,children:(0,N.jsx)(x.Z,{id:"candidate.search.clear"})})}),s&&(0,N.jsx)("span",{className:"jsx-".concat(O.__hash)+" candidate-search-form-footer__item",children:(0,N.jsx)(_.Z,{type:"button",onClick:t((function(e){var a=te(e);D(a),q(a)})),isSecondary:!0,isFullWidth:!0,children:(0,N.jsx)(x.Z,{id:"candidate.search.save.label"})})}),s?(0,N.jsx)("span",{className:"jsx-".concat(O.__hash)+" candidate-search-form-footer__item hide-mobile"}):(0,N.jsx)("span",{className:"jsx-".concat(O.__hash)+" candidate-search-form-footer__item",children:(0,N.jsx)(_.Z,{onClick:o,children:(0,N.jsx)(x.Z,{id:"candidate.search.buy"})})}),(0,N.jsx)("span",{className:"jsx-".concat(O.__hash)+" candidate-search-form-footer__item",children:(0,N.jsx)(_.Z,{type:"button",onClick:T,isSecondary:!0,isFullWidth:!0,children:(0,N.jsx)(x.Z,{id:"cancel"})})}),(0,N.jsx)("span",{className:"jsx-".concat(O.__hash)+" candidate-search-form-footer__item",children:(0,N.jsx)(_.Z,{type:"button",onClick:t(ne),isFullWidth:!0,children:(0,N.jsx)(x.Z,{id:"candidate.search.search.label"})})})]})}),(0,N.jsx)(i(),{id:O.__hash,children:O})]})},$={form:"simple-candidate-search-form",enableReinitialize:!0,keepDirtyOnReinitialize:!0,onSubmitFail:function(e){console.warn("form submit fail",e)}};K.defaultProps={formValues:{},updateCvSearchSkillsPredictions:null,cvSearchSkillsSuggestions:{},updateCvSearchPositionsPredictions:null,cvSearchPositionsSuggestions:{},skillsSuggestionStatistics:[],positionsSuggestionStatistics:[],setSkillSuggestionAccepted:null};var X=(0,m.Z)($)((0,o.$j)((function(e){return{formValues:(0,v.Z)("simple-candidate-search-form")(e)}}))(K)),ee=t(61682),ae=t(18446),te=t.n(ae),ne=t(67952),se=[".advanced-candidate-search-form.jsx-3710276544{background:#fff;}",".advanced-candidate-search-form__main.jsx-3710276544{padding:".concat(S.W0.m," 0 ").concat(S.W0.s," 0;padding-bottom:200px;min-height:200px;max-height:calc(100dvh - 240px);overflow-y:auto;}"),".advanced-candidate-search-form__main.has-top-banners.jsx-3710276544{max-height:calc(100dvh - 240px - ".concat(S.J7.topBannerMinHeight,");}"),".advanced-candidate-search-form__additional.jsx-3710276544{margin:".concat(S.W0.xs," 0;}"),".advanced-candidate-search-form__divider.jsx-3710276544{border-top:1px solid ".concat(S.O9.grey3,";}"),".advanced-candidate-search-form-footer.jsx-3710276544{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;gap:".concat(S.W0.s,";padding:").concat(S.W0.m," ").concat(S.J7.contentPadding,";max-width:").concat(S.J7.maxWidth,";margin-left:auto;margin-right:auto;}"),".advanced-candidate-search-form-footer.jsx-3710276544>div.jsx-3710276544{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:".concat(S.W0.s,";-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;vertical-align:middle;}"),".advanced-candidate-search-form-footer.jsx-3710276544 .btn,.advanced-candidate-search-form-footer.jsx-3710276544 .btn-plain{min-width:186px;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}",".btn-grow.jsx-3710276544{-webkit-box-flex:2;-webkit-flex-grow:2;-ms-flex-positive:2;flex-grow:2;}",".candidate-search-form__main.jsx-3710276544 .btn{margin:0 ".concat(S.W0.s," ").concat(S.W0.s,"
10;width:76px;}"),".advanced-candidate-search__row.jsx-3710276544{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;}",".advanced-candidate-search__row.jsx-3710276544>div.jsx-3710276544:not(:first-of-type):not(:last-of-type){margin-left:".concat(S.W0.s,";}"),".advanced-candidate-search__type.jsx-3710276544{-webkit-flex-basis:250px;-ms-flex-preferred-size:250px;flex-basis:250px;}",".advanced-candidate-search__condition.jsx-3710276544{-webkit-flex-basis:230px;-ms-flex-preferred-size:230px;flex-basis:230px;}",".advanced-candidate-search__values.jsx-3710276544{-webkit-flex:1;-ms-flex:1;flex:1;}",".advanced-candidate-search__values-row.jsx-3710276544{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}",".advanced-candidate-search__values-row.jsx-3710276544 div.jsx-3710276544:last-of-type{margin-left:".concat(S.W0.s,";}"),".advanced-candidate-search__even.jsx-3710276544{-webkit-flex-basis:50%;-ms-flex-preferred-size:50%;flex-basis:50%;}",".advanced-candidate-search__odd.jsx-3710276544:first-of-type{-webkit-flex-basis:70%;-ms-flex-preferred-size:70%;flex-basis:70%;}",".advanced-candidate-search__odd.jsx-3710276544:last-of-type{-webkit-flex-basis:30%;-ms-flex-preferred-size:30%;flex-basis:30%;}",".advanced-candidate-search__actions.jsx-3710276544{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;padding-bottom:".concat(S.W0.s,";-webkit-flex-basis:40px;-ms-flex-preferred-size:40px;flex-basis:40px;margin-left:auto;margin-right:").concat(S.W0.xs,";}"),".action.jsx-3710276544{margin:".concat(S.W0.s," ").concat(S.W0.xs,";}"),".age.jsx-3710276544{display:inline-block;padding:12px 0;}",".age-delimiter.jsx-3710276544{display:inline-block;width:32px;height:1px;background:".concat(S.O9.grey3,";margin:").concat(S.W0.s,";}"),".driving.jsx-3710276544{display:inline-block;margin:12px;}",".type-select.jsx-3710276544{margin:0 0 16px 0;background:rgba(218,218,223,0.2);border:1px solid #DADADF;border-radius:2px;font-size:16px;line-height:1.5;height:56px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:8px 8px 8px 16px;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;}",".type-select.jsx-3710276544 span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;width:250px;display:inline-block;}",".type-select__indicator.jsx-3710276544{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}",".type-select svg{fill:hsl(0,0%,80%);}",".type-select:hover svg{fill:hsl(0,0%,60%);}","@media screen and (max-width:".concat(S.J7.desktopCutoff,"){.candidate-search-form.jsx-3710276544{overflow:auto;padding-top:0;}.advanced-candidate-search-form__main.jsx-3710276544,.advanced-candidate-search__row.jsx-3710276544,.advanced-candidate-search-form__additional-columns.jsx-3710276544{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding:0;}.advanced-candidate-search-form__main.jsx-3710276544{max-height:300px;}.advanced-candidate-search__type.jsx-3710276544,.advanced-candidate-search__condition.jsx-3710276544{-webkit-flex-basis:initial;-ms-flex-preferred-size:initial;flex-basis:initial;}.advanced-candidate-search__row.jsx-3710276544>div.jsx-3710276544:not(:first-of-type):not(:last-of-type){margin:0;}.advanced-candidate-search__odd.jsx-3710276544:first-of-type{-webkit-flex-basis:initial;-ms-flex-preferred-size:initial;flex-basis:initial;width:60%;}.advanced-candidate-search__odd.jsx-3710276544:last-of-type{-webkit-flex-basis:initial;-ms-flex-preferred-size:initial;flex-basis:initial;width:40%;}.advanced-candidate-search__actions.jsx-3710276544{margin:0;padding:0;-webkit-flex-basis:initial;-ms-flex-preferred-size:initial;flex-basis:initial;}.action.jsx-3710276544{margin:0 0 ").concat(S.W0.s," ").concat(S.W0.s,";}.candidate-search-form__divider.jsx-3710276544{margin:0;padding:0;border-top:0;}.advanced-candidate-search-form-footer.jsx-3710276544{-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;}.advanced-candidate-search-form-footer__item.jsx-3710276544{min-width:0;-webkit-flex:1 0 45%;-ms-flex:1 0 45%;flex:1 0 45%;}.advanced-candidate-search-form-footer__item.jsx-3710276544:nth-of-type(2){-webkit-flex:1 0 100%;-ms-flex:1 0 100%;flex:1 0 100%;margin:0;}.advanced-candidate-search-form-footer__item.jsx-3710276544:nth-child(4){margin:").concat(S.W0.s," ").concat(S.W0.xs," 0 0;}.advanced-candidate-search-form-footer__item.jsx-3710276544:nth-child(odd){margin:").concat(S.W0.s,"
10 0 ").concat(S.W0.xs,";}.advanced-candidate-search-form__additional-title.jsx-3710276544{margin-bottom:").concat(S.W0.s,";}.advanced-candidate-search-form__main.jsx-3710276544,.advanced-candidate-search-form__additional-columns.jsx-3710276544{padding-top:0;}.advanced-candidate-search-form__additional-columns--narrow.jsx-3710276544{padding-right:0;}.advanced-candidate-search-form__languages.jsx-3710276544 .cv-language-item__remove{width:auto;}}"),"@media screen and (max-width:420px){.advanced-candidate-search-form__main.jsx-3710276544{max-height:280px;}}","@media screen and (min-width:".concat(S.J7.desktopCutoff,") and (max-height:800px){.advanced-candidate-search-form__main.jsx-3710276544{max-height:calc(100dvh - 150px);padding-bottom:200px;}.advanced-candidate-search-form__main.has-top-banners.jsx-3710276544{max-height:calc(100dvh - 150px - ").concat(S.J7.topBannerMinHeight,");}.advanced-candidate-search-form-footer.jsx-3710276544{background:#fff;}.advanced-candidate-search-form.jsx-3710276544>div.jsx-3710276544:has(footer){position:absolute;bottom:0;left:0;width:100%;}}"),"@media screen and (min-width:".concat(S.J7.desktopCutoff,") and (max-height:600px){.advanced-candidate-search-form__main.jsx-3710276544{min-height:100px;}}")];se.__hash="3710276544";var ie=se,ce=(t(47729),t(82929)),oe=t(92158),re=t(90601);function de(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);a&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),t.push.apply(t,n)}return t}function le(e){for(var a=1;a<arguments.length;a++){var t=null!=arguments[a]?arguments[a]:{};a%2?de(Object(t),!0).forEach((function(a){(0,n.Z)(e,a,t[a])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):de(Object(t)).forEach((function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))}))}return e}var he=function(e){return(0,N.jsx)("svg",le(le({},e),{},{children:(0,N.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,N.jsx)("path",{stroke:"#EC2359",d:"m1.537 4.5.929 13h9.068l.929-13H1.537z"}),(0,N.jsx)("path",{fill:"#EC2359",d:"M6 0h3v2h5v1H0V2h5V0h1zm0 1v1h2V1H6z"})]})}))};he.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"18"};var ue=function(e){return(0,N.jsx)("svg",le(le({},e),{},{children:(0,N.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,N.jsx)("path",{fill:"#EC2359",d:"M6 0h3v2h5v1H0V2h5V0h1zm0 1v1h2V1H6zM1 4h12l-1 14H2L1 4z"}),(0,N.jsx)("path",{stroke:"#EC2359",d:"M-5-3h24v24H-5z"})]})}))};ue.defaultProps={width:"14",height:"18",xmlns:"http://www.w3.org/2000/svg"};var xe=function(e){return(0,N.jsx)("svg",le(le({},e),{},{children:(0,N.jsx)("path",{d:"M4.516 7.548c.436-.446 1.043-.481 1.576 0L10 11.295l3.908-3.747c.533-.481 1.141-.446 1.574 0 .436.445.408 1.197 0 1.615-.406.418-4.695 4.502-4.695 4.502a1.095 1.095 0 0 1-1.576 0S4.924 9.581 4.516 9.163s-.436-1.17 0-1.615z"})}))};xe.defaultProps={height:"20",width:"20",xmlns:"http://www.w3.org/2000/svg"};var pe=function(e){var a=e.intl,t=e.row,n=e.intl.locale,s=e.deleteRow,c=e.languageOptions,o=e.levelOptions,d=e.categoryOptions,l=e.locationOptions,h=e.drivingLicenseOptions,u=e.educationLevelOptions,m=e.educationCategoriesOptions,v=e.educationSpecialitiesOptions,_=e.positionValuesForSkillSuggestions,g=e.setRowType,S=t.type,Z=t.id,O=(0,ne.B)().isScreenMobile,P=function(){var e=(0,W.Z)(I().mark((function e(a){var t;return I().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("keywords"!==S&&"keywordSkills"!==S){e.next=2;break}return e.abrupt("return",(0,F.Z)([],!0).get((0,z.WT)("/cv-service/skills/search?query=".concat(encodeURIComponent(a))),{headers:le(le({},(0,z.lJ)()),{},{"Accept-Language":n})}).then((function(e){return e&&200===e.status?e.data.map((function(e){return le(le({},e),{},{value:e.key,label:e.value,isSkill:!0})})):[]})).catch((function(e){return console.log(e)})));case 2:if("keywordLastPositions"!==S&&"keywordPreviousPositions"!==S&&"keywordExpectedPositions"!==S){e.next=6;break}if(!(t=a.replaceAll("\\",""))){e.next=6;break}return e.abrupt("return",(0,F.Z)([],!0).get((0,z.WT)("/cv-service/search/positions-autocomplete?term=".concat(encodeURIComponent(t))),{headers:le(le({},(0,z.lJ)()),{},{"Accept-Language":n})}).then((function(e){return e&&200===e.status?e.data.map((function(e){return{value:e,label:e}})):[]})).catch((function(e){return console.log(e)})));case 6:return e.abrupt("return",[]);case 7:case"end":return e.stop()}}),e)})));return function(a){return e.apply(this,arguments)}}(),E=null;["lastWorkExperience","requiredExperiences","educations","expectedCategories"].includes(S)&&(E=[{value:"EQ",label:(0,N.jsx)(x.Z,{id:"candidate.search.condition.contains.label"}),tooltip:!O&&"".concat(a.formatMessage({id:"candidate.search.condition.contains.tooltip"}))},{value:"NE",label:(0,N.jsx)(x.Z,{id:"candidate.search.condition.not.contain.label"}),tooltip:!O&&"".concat(a.formatMessage({id:"candidate.search.condition.not.contain.tooltip"}))}]),["keywords","keywordSkills","keywordLastPositions","keywordPreviousPositions","keywordLastEmployerNames","keywordPreviousEmployerNames","keywordCertificates","keywordSchoolName","educationSpecialties","keywordExpectedPositions"].includes(S)&&(E=[{value:"EQ",label:(0,N.jsx)(x.Z,{id:"candidate.search.condition.exact.match.label"}),tooltip:!O&&"".concat(a.formatMessage({id:"candidate.search.condition.exact.match.tooltip"}))},{value:"LIKE",label:(0,N.jsx)(x.Z,{id:"candidate.search.condition.partial.match.label"}),tooltip:!O&&"".concat(a.formatMessage({id:"candidate.search.condition.partial.match.tooltip"}))},{value:"NE",label:(0,N.jsx)(x.Z,{id:"candidate.search.condition.not.contain.label"}),tooltip:!O&&"".concat(a.formatMessage({id:"candidate.search.condition.not.contain.tooltip"}))}]);var C=[{isLabel:!0,label:(0,N.jsx)(x.Z,{id:"candidate.search.search.label"})},{label:(0,N.jsx)(x.Z,{id:"candidate.search.search.from.all"}),action:function(){return g(Z,"keywords")},type:"keywords",selected:"keywords"===S},{label:(0,N.jsx)(x.Z,{id:"candidate.search.search.from.previous.work.experience"}),sub:[{label:(0,N.jsx)(x.Z,{id:"candidate.search.search.from.last.work.experience"}),action:function(){return g(Z,"lastWorkExperience")},type:"lastWorkExperience",selected:"lastWorkExperience"===S},{label:(0,N.jsx)(x.Z,{id:"candidate.search.search.from.required.experiences"}),action:function(){return g(Z,"requiredExperiences")},type:"requiredExperiences",selected:"requiredExperiences"===S},{label:(0,N.jsx)(x.Z,{id:"candidate.search.search.from.last.positions"}),action:function(){return g(Z,"keywordLastPositions")},type:"keywordLastPositions",selected:"keywordLastPositions"===S},{label:(0,N.jsx)(x.Z,{id:"candidate.search.search.from.previous.positions"}),action:function(){return g(Z,"keywordPreviousPositions")},type:"keywordPreviousPositions",selected:"keywordPreviousPositions"===S},{label:(0,N.jsx)(x.Z,{id:"candidate.search.search.from.last.employer"}),action:function(){return g(Z,"keywordLastEmployerNames")},type:"keywordLastEmployerNames",selected:"keywordLastEmployerNames"===S},{label:(0,N.jsx)(x.Z,{id:"candidate.search.search.from.previous.employers"}),action:function(){return g(Z,"keywordPreviousEmployerNames")},type:"keywordPreviousEmployerNames",selected:"keywordPreviousEmployerNames"===S}]},{label:(0,N.jsx)(x.Z,{id:"candidate.search.search.from.expectations"}),sub:[{label:(0,N.jsx)(x.Z,{id:"candidate.search.search.from.expected.positions"}),action:function(){return g(Z,"keywordExpectedPositions")},type:"keywordExpectedPositions",selected:"keywordExpectedPositions"===S},{label:(0,N.jsx)(x.Z,{id:"candidate.search.search.from.expected.categories"}),action:function(){return g(Z,"expectedCategories")},type:"expectedCategories",selected:"expectedCategories"===S},{label:(0,N.jsx)(x.Z,{id:"candidate.search.search.from.expected.locations"}),action:function(){return g(Z,"expectedLocations")},type:"expectedLocations",selected:"expectedLocations"===S},{label:(0,N.jsx)(x.Z,{id:"candidate.search.search.from.salary"}),action:function(){return g(Z,"minimalExpectedSalary")},type:"minimalExpectedSalary",selected:"minimalExpectedSalary"===S},{label:(0,N.jsx)(x.Z,{id:"candidate.search.search.from.expected.work.times"}),action:function(){return g(Z,"expectedWorkTimes")},type:"expectedWorkTimes",selected:"expectedWorkTimes"===S}]},{label:(0,N.jsx)(x.Z,{id:"candidate.search.search.from.education.label"}),sub:[{label:(0,N.jsx)(x.Z,{id:"candidate.search.search.from.education.categories"}),action:function(){return g(Z,"educations")},type:"educations",selected:"educations"===S},{label:(0,N.jsx)(x.Z,{id:"candidate.search.search.from.education.speciality"}),action:function(){return g(Z,"educationSpecialties")},type:"educationSpecialties",selected:"educationSpecialties"===S},{label:(0,N.jsx)(x.Z,{id:"candidate.search.search.from.school.name"}),action:function(){return g(Z,"keywordSchoolName")},type:"keywordSchoolName",selected:"keywordSchoolName"===S}]},{label:(0,N.jsx)(x.Z,{id:"candidate.search.search.from.skills.and.licences"}),sub:[{label:(0,N.jsx)(x.Z,{id:"candidate.search.search.from.skill"}),action:function(){return g(Z,"keywordSkills")},type:"keywordSkills",selected:"keywordSkills"===S},{label:(0,N.jsx)(x.Z,{id:"candidate.search.search.from.languages"}),action:function(){return g(Z,"requiredLanguages")},type:"requiredLanguages",selected:"requiredLanguages"===S},{label:(0,N.jsx)(x.Z,{id:"candidate.search.search.from.drivers.licenses"}),action:function(){return g(Z,"requiredDriversLicenceGroups")},type:"requiredDriversLicenceGroups",selected:"requiredDriversLicenceGroups"===S},{label:(0,N.jsx)(x.Z,{id:"candidate.search.search.from.certificates"}),action:function(){return g(Z,"keywordCertificates")},type:"keywordCertificates",selected:"keywordCertificates"===S}]},{label:(0,N.jsx)(x.Z,{id:"candidate.search.search.from.other"}),sub:[{label:(0,N.jsx)(x.Z,{id:"candidate.search.search.from.locations"}),action:function(){return g(Z,"locations")},type:"locations",selected:"locations"===S},{label:(0,N.jsx)(x.Z,{id:"candidate.search.search.from.age"}),action:function(){return g(Z,"age")},type:"age",selected:"age"===S},{label:(0,N.jsx)(x.Z,{id:"candidate.search.search.from.last.modified"}),action:function(){return g(Z,"cvLastModifiedAfter")},type:"cvLastModifiedAfter",selected:"cvLastModifiedAfter"===S}]}],M=(0,N.jsx)("span",{});
1return C.forEach((function(e){e.type!==t.type?e.sub&&e.sub.forEach((function(e){e.type===t.type&&(M=e.label)})):M=e.label})),(0,N.jsxs)("div",{className:"jsx-".concat(ie.__hash)+" advanced-candidate-search__row",children:[(0,N.jsx)("div",{className:"jsx-".concat(ie.__hash)+" advanced-candidate-search__type",children:(0,N.jsx)(re.Z,{data:C,forceTop:!0,wide:!0,children:(0,N.jsxs)("div",{className:"jsx-".concat(ie.__hash)+" type-select",children:[M,(0,N.jsx)(xe,{})]})})}),E&&(0,N.jsx)("div",{className:"jsx-".concat(ie.__hash)+" advanced-candidate-search__condition",children:(0,N.jsx)(f.Z,{name:"filter-".concat(Z,".condition"),component:j.Z,options:E,isSearchable:!1})}),["keywordLastEmployerNames","keywordPreviousEmployerNames","keywordSchoolName","keywordCertificates"].includes(S)&&(0,N.jsx)("div",{className:"jsx-".concat(ie.__hash)+" advanced-candidate-search__values",children:(0,N.jsx)(f.Z,{validate:[w.C1],name:"filter-".concat(Z,".values"),component:oe.Z,placeholder:(0,N.jsx)(x.Z,{id:"candidate.search.keyword"}),createOptionOnBlur:!0,intl:a})}),["keywordLastPositions","keywordPreviousPositions","keywordExpectedPositions"].includes(S)&&(0,N.jsxs)("div",{className:"jsx-".concat(ie.__hash)+" advanced-candidate-search__values",children:[(0,N.jsx)(f.Z,{validate:[w.C1],loadOptions:P,name:"filter-".concat(Z,".values"),placeholder:(0,N.jsx)(x.Z,{id:"candidate.search.keyword"}),createOnBlur:!0,component:T.Z,useValuesForPredictions:!0,updateAfterFirstAdd:!0,intl:a,isModalMenuPortal:!0,type:"CV_SEARCH_POSITIONS"}),(0,N.jsx)("br",{className:"jsx-".concat(ie.__hash)})]}),"keywords"===S&&(0,N.jsxs)("div",{className:"jsx-".concat(ie.__hash)+" advanced-candidate-search__values",children:[(0,N.jsx)(f.Z,{validate:[w.C1],loadOptions:P,name:"filter-".concat(Z,".values"),placeholder:(0,N.jsx)(x.Z,{id:"candidate.search.keyword"}),component:T.Z,useValuesForPredictions:!0,updateAfterFirstAdd:!0,intl:a,isModalMenuPortal:!0}),(0,N.jsx)("br",{className:"jsx-".concat(ie.__hash)})]}),"keywordSkills"===S&&(0,N.jsxs)("div",{className:"jsx-".concat(ie.__hash)+" advanced-candidate-search__values",children:[(0,N.jsx)(f.Z,{validate:[w.C1],loadOptions:P,name:"filter-".concat(Z,".values"),placeholder:(0,N.jsx)(x.Z,{id:"candidate.search.keyword"}),createOnBlur:!0,component:T.Z,useValuesForPredictions:!0,updateAfterFirstAdd:!0,positionValuesForSkillSuggestions:_,intl:a,isModalMenuPortal:!0,type:"CV_SEARCH_SKILLS"}),(0,N.jsx)("br",{className:"jsx-".concat(ie.__hash)})]}),"educationSpecialties"===S&&(0,N.jsx)("div",{className:"jsx-".concat(ie.__hash)+" advanced-candidate-search__values",children:(0,N.jsx)(f.Z,{validate:[w.C1],name:"filter-".concat(Z,".values"),component:y.Z,options:v,isModalMenuPortal:!0})}),"requiredExperiences"===S&&(0,N.jsx)("div",{className:"jsx-".concat(ie.__hash)+" advanced-candidate-search__values",children:(0,N.jsxs)("div",{className:"jsx-".concat(ie.__hash)+" advanced-candidate-search__values-row",children:[(0,N.jsx)("div",{className:"jsx-".concat(ie.__hash)+" advanced-candidate-search__odd",children:(0,N.jsx)(f.Z,{validate:[w.lP],name:"filter-".concat(Z,".values.area"),component:y.Z,options:d,placeholder:(0,N.jsx)(x.Z,{id:"candidate.search.experience.area"}),isModalMenuPortal:!0})}),(0,N.jsx)("div",{className:"jsx-".concat(ie.__hash)+" advanced-candidate-search__odd",children:(0,N.jsx)(f.Z,{validate:[w.lP],name:"filter-".concat(Z,".values.duration"),placeholder:(0,N.jsx)(x.Z,{id:"candidate.search.experience.duration"}),component:j.Z,options:(0,p.Z)(Array(11).keys()).map((function(e){return{value:"".concat(e),label:e}})),isModalMenuPortal:!0})})]})}),["expectedCategories","lastWorkExperience"].indexOf(S)>-1&&(0,N.jsx)("div",{className:"jsx-".concat(ie.__hash)+" advanced-candidate-search__values",children:(0,N.jsx)(f.Z,{validate:[w.C1],name:"filter-".concat(Z,".values"),component:y.Z,options:d,isModalMenuPortal:!0})}),"requiredLanguages"===S&&(0,N.jsx)("div",{className:"jsx-".concat(ie.__hash)+" advanced-candidate-search__values",children:(0,N.jsxs)("div",{className:"jsx-".concat(ie.__hash)+" advanced-candidate-search__values-row",children:[(0,N.jsx)("div",{className:"jsx-".concat(ie.__hash)+" advanced-candidate-search__even",children:(0,N.jsx)(f.Z,{validate:[w.C1],name:"filter-".concat(Z,".values.language"),component:j.Z,options:c,placeholder:(0,N.jsx)(x.Z,{id:"languages.lang.label"}),isModalMenuPortal:!0})}),(0,N.jsx)("div",{className:"jsx-".concat(ie.__hash)+" advanced-candidate-search__even",children:(0,N.jsx)(f.Z,{validate:[w.C1],name:"filter-".concat(Z,".values.level"),component:j.Z,options:o,placeholder:(0,N.jsx)(x.Z,{id:"languages.level.label"}),isModalMenuPortal:!0})})]})}),["locations","expectedLocations"].includes(S)&&(0,N.jsx)("div",{className:"jsx-".concat(ie.__hash)+" advanced-candidate-search__values",children:(0,N.jsx)(f.Z,{validate:[w.C1],name:"filter-".concat(Z,".values"),component:y.Z,options:l,grouped:!0,isModalMenuPortal:!0})}),"educations"===S&&(0,N.jsx)("div",{className:"jsx-".concat(ie.__hash)+" advanced-candidate-search__values",children:(0,N.jsxs)("div",{className:"jsx-".concat(ie.__hash)+" advanced-candidate-search__values-row",children:[(0,N.jsx)("div",{className:"jsx-".concat(ie.__hash)+" advanced-candidate-search__even",children:(0,N.jsx)(f.Z,{validate:[w.v2],name:"filter-".concat(Z,".categories"),component:y.Z,isModalMenuPortal:!0,options:m,placeholder:(0,N.jsx)(x.Z,{id:"candidate.search.education.area"})})}),(0,N.jsx)("div",{className:"jsx-".concat(ie.__hash)+" advanced-candidate-search__even",children:(0,N.jsx)(f.Z,{validate:[w.v2],name:"filter-".concat(Z,".level"),component:j.Z,options:u,placeholder:(0,N.jsx)(x.Z,{id:"candidate.search.education.level"}),isModalMenuPortal:!0})})]})}),"minimalExpectedSalary"===S&&(0,N.jsx)("div",{className:"jsx-".concat(ie.__hash)+" advanced-candidate-search__values",children:(0,N.jsx)(f.Z,{validate:[w.C1],isFullWidth:!0,name:"filter-".concat(Z,".values"),component:ce.Z,label:"candidate.search.minimal.expected.salary",type:"number"})}),"expectedWorkTimes"===S&&(0,N.jsx)("div",{className:"jsx-".concat(ie.__hash)+" advanced-candidate-search__values",children:(0,N.jsx)(f.Z,{validate:[w.C1],name:"filter-".concat(Z,".values"),component:y.Z,options:r.xd.map((function(e){return{value:e,label:"".concat(a.formatMessage({id:"workTime.".concat(e,".label")}))}})),isModalMenuPortal:!0})}),"age"===S&&(0,N.jsx)("div",{className:"jsx-".concat(ie.__hash)+" advanced-candidate-search__values",children:(0,N.jsxs)("div",{className:"jsx-".concat(ie.__hash)+" advanced-candidate-search__values-row",children:[(0,N.jsx)(f.Z,{isFullWidth:!0,name:"filter-".concat(Z,".min"),component:ce.Z,label:"candidate.search.age.min",type:"number"}),(0,N.jsx)("span",{className:"jsx-".concat(ie.__hash)+" age",children:(0,N.jsx)("span",{className:"jsx-".concat(ie.__hash)+" age-delimiter",children:"\xa0"})}),(0,N.jsx)(f.Z,{isFullWidth:!0,name:"filter-".concat(Z,".max"),component:ce.Z,label:"candidate.search.age.max",type:"number"})]})}),"requiredDriversLicenceGroups"===S&&(0,N.jsx)("div",{className:"jsx-".concat(ie.__hash)+" advanced-candidate-search__values",children:h.map((function(e){return(0,N.jsx)("span",{className:"jsx-".concat(ie.__hash)+" driving",children:(0,N.jsx)(f.Z,{name:"filter-".concat(Z,".values.").
1concat(e),label:e,component:b.Z,disableFormattedMessage:!0})},e)}))}),"cvLastModifiedAfter"===S&&(0,N.jsx)("div",{className:"jsx-".concat(ie.__hash)+" advanced-candidate-search__values",children:(0,N.jsx)(f.Z,{validate:[w.C1],isFullWidth:!0,name:"filter-".concat(Z,".values"),component:ce.Z,label:"candidate.search.last.modified.after.label",type:"number"})}),(0,N.jsx)("div",{className:"jsx-".concat(ie.__hash)+" advanced-candidate-search__actions",children:(0,N.jsx)("span",{className:"jsx-".concat(ie.__hash)+" action",children:(0,N.jsx)(k.Z,{action:function(){return s(t.id)},textKey:"confirmation.delete.block",primaryBtn:"confirmation.delete.label",iconMain:(0,N.jsx)(he,{}),iconActive:(0,N.jsx)(ue,{})})})}),(0,N.jsx)(i(),{id:ie.__hash,children:ie})]},"row-".concat(Z))};pe.defaultProps={positionValuesForSkillSuggestions:[]};var fe=pe,me=function(e){var a=e.initialize,t=e.searchFilters,n=e.levelOptions,s=e.formValues,r=e.onSearch,d=e.handleCloseModal,l=e.handleSaveSearchButton,h=e.handleBodyOverflow,m=e.setIsFilterOpen,v=e.change,j=e.intl,y=e.languageOptions,w=e.categoryOptions,k=e.locationOptions,S=e.drivingLicenseOptions,Z=e.educationLevelOptions,O=e.educationCategoriesOptions,P=e.educationSpecialitiesOptions,E=e.handleSubmit,C=e.cvSearchActive,M=e.isFilterOpen,L=e.goToServices,W=(0,c.useState)([]),A=W[0],I=W[1],F=(0,c.useState)([]),z=F[0],D=F[1],T=(0,c.useState)(!1),q=T[0],R=T[1],V=(0,o.v9)((0,ee.Z)("advanced-candidate-search-form")),B=(0,c.useState)(!1),H=B[0],Q=B[1],J=(0,ne.B)().isScreenMobile;(0,c.useEffect)((function(){R(!te()(s,V))}),[s,V]),(0,c.useEffect)((function(){var e=!!document.querySelector(".top-banners");Q(e)}),[]);(0,c.useEffect)((function(){var e=function(){var e=[],a={};if("ADVANCED"===t.requestType){if(["keywordLastEmployerNames","keywordPreviousEmployerNames","keywordCertificates","educationSpecialties","keywordSchoolName"].forEach((function(n){t[n]&&t[n].forEach((function(t){var s=Object.keys(a).filter((function(e){return e.indexOf("filter-")>-1})).length;a["filter-".concat(s)]={type:n,condition:t.condition||"EQ",values:"educationSpecialties"===n?t.values:t.values.map((function(e){return{value:e,label:e}}))},e.push({id:s,type:n})}))})),["keywordExpectedPositions","keywordLastPositions","keywordPreviousPositions"].forEach((function(n){t[n]&&t[n].forEach((function(t){var s=Object.keys(a).filter((function(e){return e.indexOf("filter-")>-1})).length;a["filter-".concat(s)]={type:n,condition:t.condition||"EQ",values:t.values.map((function(e){return{label:e,value:e}}))},e.push({id:s,type:n})}))})),["keywords","keywordSkills"].forEach((function(n){t[n]&&t[n].forEach((function(t){var s=Object.keys(a).filter((function(e){return e.indexOf("filter-")>-1})).length;a["filter-".concat(s)]={type:n,condition:t.condition||"EQ",values:t.values.map((function(e){var a={label:e.value,value:e.value};return e.key&&(a.key=e.key,a.type="skill",a.isSkill=!0,a.value=e.key),a}))},e.push({id:s,type:n})}))})),["locations","expectedLocations"].forEach((function(n){t[n]&&t[n].forEach((function(t){var s=Object.keys(a).filter((function(e){return e.indexOf("filter-")>-1})).length;a["filter-".concat(s)]={type:n,values:t.map((function(e){return e.townId?{id:e.townId,value:"town-".concat(e.townId),type:"towns"}:e.countyId?{id:e.countyId,value:"county-".concat(e.countyId),type:"counties"}:e.countryId?{id:e.countryId,value:"country-".concat(e.countryId),type:"countries"}:null}))},e.push({id:s,type:n})}))}
1)),t.requiredLanguages&&t.requiredLanguages.forEach((function(t){var s=Object.keys(a).filter((function(e){return e.indexOf("filter-")>-1})).length;a["filter-".concat(s)]={type:"requiredLanguages",values:{language:t.iso,level:n[t.level-1].value}},e.push({id:s,type:"requiredLanguages"})})),t.educations&&t.educations.forEach((function(t){var n=Object.keys(a).filter((function(e){return e.indexOf("filter-")>-1})).length,s={type:"educations",categories:t.categories,condition:t.condition||"EQ"};t.level&&(s.level="level-".concat(t.level)),t.degree&&(s.level="degree-".concat(t.degree)),a["filter-".concat(n)]=s,e.push({id:n,type:"educations"})})),["expectedCategories","lastWorkExperience"].forEach((function(n){t[n]&&t[n].forEach((function(t){var s=Object.keys(a).filter((function(e){return e.indexOf("filter-")>-1})).length;a["filter-".concat(s)]={type:n,condition:t.condition||"EQ",values:t.categories},e.push({id:s,type:n})}))})),t.requiredExperiences&&t.requiredExperiences.forEach((function(t){var n=Object.keys(a).filter((function(e){return e.indexOf("filter-")>-1})).length;a["filter-".concat(n)]={type:"requiredExperiences",condition:t.condition||"EQ",values:{area:t.categories,duration:t.minimumYears?"".concat(t.minimumYears):"0"}},e.push({id:n,type:"requiredExperiences"})})),t.expectedWorkTimes&&t.expectedWorkTimes.forEach((function(t){var n=Object.keys(a).filter((function(e){return e.indexOf("filter-")>-1})).length;a["filter-".concat(n)]={type:"expectedWorkTimes",values:t},e.push({id:n,type:"expectedWorkTimes"})})),t.requiredDriversLicenceGroups&&t.requiredDriversLicenceGroups.forEach((function(t){var n=Object.keys(a).filter((function(e){return e.indexOf("filter-")>-1})).length,s={};t.forEach((function(e){s[e]=!0})),a["filter-".concat(n)]={type:"requiredDriversLicenceGroups",values:s},e.push({id:n,type:"requiredDriversLicenceGroups"})})),["minimalExpectedSalary","cvLastModifiedAfter"].forEach((function(n){if(t[n]){var s=Object.keys(a).filter((function(e){return e.indexOf("filter-")>-1})).length;a["filter-".concat(s)]={type:n,values:t[n]},e.push({id:s,type:n})}})),t.minAge||t.maxAge){var s=Object.keys(a).filter((function(e){return e.indexOf("filter-")>-1})).length;a["filter-".concat(s)]={type:"age",min:t.minAge,max:t.maxAge},e.push({id:s,type:"age"})}a.hideHidden=t.hideHidden,a.hideOld=t.hideOld}return e.length<1&&(e.push({id:0,type:"keywords"}),a["filter-0"]={condition:"EQ"}),I(e),a}();a(e)}),[t]);var U=function(e){var a={};return Object.keys(e).filter((function(e){return e.indexOf("filter-")>-1})).forEach((function(t){var s=parseInt(t.split("filter-").pop(),10),i=A.find((function(e){return e.id===s}));if(i){var c=i.type,o=e[t],r=!1,d=[];switch(i.type){case"keywordExpectedPositions":case"keywordLastPositions":case"keywordPreviousPositions":case"keywordLastEmployerNames":case"keywordPreviousEmployerNames":case"keywordCertificates":case"educationSpecialties":case"keywordSchoolName":d={condition:o.condition||"EQ",values:o.values.map((function(e){return e.value?e.value:e}))};break;case"keywords":case"keywordSkills":d={condition:o.condition||"EQ",values:o.values.map((function(e){var a={value:e.label};return e.key&&(a.key=e.key),a}))};break;case"requiredLanguages":d={iso:o.values.language,level:n.findIndex((function(e){return e.value===o.values.level}))+1};break;case"lastWorkExperience":case"expectedCategories":d={condition:o.condition||"EQ",categories:o.values};break;case"educations":if(d={condition:o.condition||"EQ",categories:o.categories},o.level){var l=o.level.split("-"),h=l[0],u=l[1];"level"===h?(d.level=u,"UNIVERSITY"===u&&(d.degree="BACHELOR")):(d.degree=u,["BACHELOR","MASTERS","PHD"].includes(u)&&(d.level="UNIVERSITY"))}break;case"requiredExperiences":d={categories:o.values.area,minimumYears:o.values.duration?o.values.duration:0,condition:o.condition||"EQ"};break;case"requiredDriversLicenceGroups":d=Object.keys(o.values).filter((function(e){return o.values[e]}));break;case"expectedWorkTimes":d=o.values;break;case"locations":case"expectedLocations":d=o.values.map((function(e){return"towns"===e.type?{townId:e.value.split("town-").pop()}:"counties"===e.type?{countyId:e.value.split("county-").pop()}:{countryId:e.value.split("country-").pop()}}));break;case"cvLastModifiedAfter":case"minimalExpectedSalary":r=!0,a[c]=o.values;break;case"age":r=!0,o.min&&(a.minAge=o.min),o.max&&(a.maxAge=o.max)}r||(a[c]?a[c].push(d):a[c]=[d])}})),a.hideHidden=e.hideHidden,a.hideOld=e.hideOld,a.limit=50,a.offset=0,a.requestType="ADVANCED",a};(0,c.useEffect)((function(){var e=[];A.forEach((function(a){["keywordExpectedPositions","keywordLastPositions","keywordPreviousPositions"].includes(a.type)&&(a.id||0===a.id)&&s["filter-".concat(a.id)]&&s["filter-".concat(a.id)].values&&s["filter-".concat(a.id)].values.length>
10&&s["filter-".concat(a.id)].values.forEach((function(a){e.push(a.label)}))})),D(e)}),[s]);var Y=function(e){var a=U(e);r(a),d(),M&&m(!1)},G=function(){var e={id:(A&&A.length>0?A[A.length-1].id:0)+1,type:"keywords"};I([].concat((0,p.Z)(A),[e])),v("filter-".concat(e.id,".condition"),"EQ"),v("filter-".concat(e.id,".values"),"")},K=function(e,a){var t=(0,p.Z)(A);t.find((function(a){return a.id===e})).type=a,I(t),v("filter-".concat(e,".values"),"")},$=function(e){var a=(0,p.Z)(A).filter((function(a){return a.id===e}))[0],t=(0,p.Z)(A).filter((function(a){return a.id!==e}));v("filter-".concat(a.id,".values"),""),I(t)},X=1===A.length&&0===A[0].id&&"keywords"===A[0].type,ae=q||!X,se="advanced-candidate-search-form__main";return H&&(se+=" has-top-banners"),(0,N.jsxs)("form",{onSubmit:E(Y),className:"jsx-".concat(ie.__hash)+" advanced-candidate-search-form",children:[(0,N.jsx)(u.Z,{children:(0,N.jsxs)("div",{className:"jsx-".concat(ie.__hash)+" "+(se||""),children:[A.map((function(e){return(0,N.jsx)(fe,{change:v,row:e,intl:j,addRow:G,setRowType:K,deleteRow:$,languageOptions:y,levelOptions:n,categoryOptions:w,locationOptions:k,educationLevelOptions:Z,educationCategoriesOptions:O,drivingLicenseOptions:S,educationSpecialitiesOptions:P,positionValuesForSkillSuggestions:z},"row-".concat(e.id))})),(0,N.jsx)("div",{className:"jsx-".concat(ie.__hash)+" advanced-candidate-search-form__additional",children:(0,N.jsx)(g.Z,{type:"button",onClick:function(){return G()},isSecondary:!0,children:(0,N.jsx)("b",{className:"jsx-".concat(ie.__hash),children:(0,N.jsx)(x.Z,{id:"candidate.search.add.row"})})})}),(0,N.jsx)("br",{className:"jsx-".concat(ie.__hash)}),(0,N.jsx)("div",{className:"jsx-".concat(ie.__hash)+" advanced-candidate-search-form__additional",children:(0,N.jsx)(f.Z,{name:"hideHidden",label:"candidate.search.hide.hidden",component:b.Z})})]})}),(0,N.jsxs)("div",{className:"jsx-".concat(ie.__hash),children:[(0,N.jsx)("div",{className:"jsx-".concat(ie.__hash)+" advanced-candidate-search-form__divider"}),(0,N.jsxs)("footer",{className:"jsx-".concat(ie.__hash)+" advanced-candidate-search-form-footer",children:[(0,N.jsxs)("div",{className:"jsx-".concat(ie.__hash)+" "+((J?"btn-grow":null)||""),children:[!J&&(0,N.jsx)(g.Z,{type:"button",onClick:function(){I([{id:0,type:"keywords"}]),a({"filter-0":{condition:"EQ"}})},disabled:!ae,isSecondary:!0,children:(0,N.jsx)(x.Z,{id:"candidate.search.clear"})}),C&&(0,N.jsx)(_.Z,{type:"button",onClick:E((function(e){var a=U(e);l(a),h("auto")})),isSecondary:!0,children:(0,N.jsx)(x.Z,{id:"candidate.search.save.label"})}),!C&&(0,N.jsx)(_.Z,{onClick:L,children:(0,N.jsx)(x.Z,{id:"candidate.search.buy"})})]}),(0,N.jsxs)("div",{className:"jsx-".concat(ie.__hash)+" "+((J?"btn-grow":null)||""),children:[(0,N.jsx)(_.Z,{type:"button",onClick:d,isSecondary:!0,children:(0,N.jsx)(x.Z,{id:"cancel"})}),(0,N.jsx)(_.Z,{type:"button",onClick:E(Y),children:(0,N.jsx)(x.Z,{id:"candidate.search.search.label"})})]})]})]}),(0,N.jsx)(i(),{id:ie.__hash,children:ie})]})},ve={form:"advanced-candidate-search-form",enableReinitialize:!0,keepDirtyOnReinitialize:!0,onSubmitFail:function(e){console.warn("form submit fail",e)}};me.defaultProps={formValues:{}};var je=(0,m.Z)(ve)((0,o.$j)((function(e){return{formValues:(0,v.Z)("advanced-candidate-search-form")(e)}}))(me)),_e=t(65804),ge=t(23098),be=t(30719),ye=t(40631),we=t(27925);function ke(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);a&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),t.push.apply(t,n)}return t}function Se(e){for(var a=1;a<arguments.length;a++){var t=null!=arguments[a]?arguments[a]:{};a%2?ke(Object(t),!0).forEach((function(a){(0,n.Z)(e,a,t[a])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ke(Object(t)).forEach((function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))}))}return e}var Ze=function(e,a){return Object.keys(e).sort((function(a,t){return e[t]-e[a]})).map((function(t){return{value:e[t],label:"".concat(a.formatMessage({id:"workCategory.".concat(e[t],".label")}))}}))},Oe=function(e,a){var t=a.towns.sort((function(e,t){return a.towns[t.id]&&!a.towns[e.id]?1:a.towns[e.id]&&!a.towns[t.id]?-1:a.towns[t.id]-a.towns[e.id]})).map((function(e){return{id:e.id,value:"town-".concat(e.id),label:"".concat(e.name),type:"towns"}}));return t.sort((function(e,a){return e.label.localeCompare(a.label)})),(0,r.iw)(t),[{id:"towns",options:t},{id:"counties",options:Object.values(a.counties).sort((function(e,t){return a.counties[t.id]&&!a.counties[e.id]?1:a.counties[e.id]&&!a.counties[t.id]?-1:a.counties[t.id]-a.counties[e.id]})).map((function(e){return{value:"county-".concat(e.id),label:"".concat(e.name),type:"counties"}}))}
1,{id:"countries",options:Object.values(a.countries).sort((function(e,t){return a.countries[t.id]&&!a.countries[e.id]?1:a.countries[e.id]&&!a.countries[t.id]?-1:a.countries[t.id]-a.countries[e.id]})).map((function(a){return{value:"country-".concat(a.id),label:"".concat(e.formatMessage({id:"country.".concat(a.iso,".label")})),type:"countries"}}))}]},Ne=function(e){var a,t=e.categories,n=e.availableLanguages,s=e.intl,o=e.onSearch,r=e.searchParams,d=e.onSearchParamRemove,l=e.isMoreOpen,h=e.locations,p=e.cvSearchActive,f=e.user,m=e.savedId,v=e.router,j=e.isFilterOpen,b=e.setIsFilterOpen,y=r.requestType,w=(0,c.useState)(!0),k=w[0],S=w[1],Z=(0,c.useState)(j),O=Z[0],P=Z[1];a=O,(0,c.useEffect)((function(){return document.body.style.overflow=a?"hidden":"auto",function(){document.body.style.overflow="auto"}}),[a]);var E=function(){P(!0),b(!0)},C=function(){b(!1),setTimeout((function(){P(!1)}),300)},M=function(e){document.body.style.overflow=e};(0,c.useEffect)((function(){"SIMPLE"===y&&S(!1)}),[y]);var L=function(){S(!k)},W=function(){m?e.saveSearch({}):e.handleOpenSaveModal()},A=function(){var a=e.employerId;v.push("/employer/".concat(a,"/services/order/cv"))},I=(0,c.useState)([]),F=I[0],z=I[1],D=(0,c.useState)([]),T=D[0],q=D[1],R=(0,c.useState)([]),V=R[0],B=R[1],H=(0,c.useState)([]),Q=H[0],J=H[1],U=(0,c.useState)([]),Y=U[0],G=U[1],K=(0,c.useState)([]),$=K[0],ee=K[1],ae=(0,c.useState)([]),te=ae[0],ne=ae[1];return(0,c.useEffect)((function(){return E()}),[]),(0,c.useEffect)((function(){return function(){return C()}}),[]),(0,c.useEffect)((function(){var e=n?(0,ge.$1)(n,s):[];q(e);var a=t?Ze(t,s):[];J(a);var i=h?Oe(s,h):[];B(i);var c=(0,be.Ux)(s);z(c);var o=(0,be.ZS)(s);G(o);var r=(0,be.kE)(s);ee(r);var d=ge.k7.map((function(e){return{value:e,label:s.formatMessage({id:"languageLevel.".concat(e,".title")})}}));ne(d)}),[]),(0,c.useEffect)((function(){P(j)}),[j]),(0,c.useEffect)((function(){var e=n?(0,ge.$1)(n,s):[];q(e)}),[n]),(0,c.useEffect)((function(){var e=t?Ze(t,s):[];J(e)}),[t]),(0,c.useEffect)((function(){var e=h?Oe(s,h):[];B(e)}),[h]),(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)("div",{className:"jsx-".concat(ye.Z.__hash)+" c
1andidate-search-filter",children:(0,N.jsx)(u.Z,{children:(0,N.jsxs)("div",{className:"jsx-".concat(ye.Z.__hash)+" candidate-search-filter__panel",children:[(0,N.jsx)("button",{"aria-label":s.formatMessage({id:"candidate.search.change"}),type:"button",onClick:E,className:"jsx-".concat(ye.Z.__hash)+" candidate-search-filter__change-btn",children:(0,N.jsx)(x.Z,{id:"candidate.search.change"})}),(0,N.jsx)("div",{className:"jsx-".concat(ye.Z.__hash)+" candidate-search-filter__params hide-desktop",children:(0,N.jsx)(we.Z,{intl:s,locations:h,searchParameters:r,onSearchParameterRemove:d,hideTags:!0})}),(0,N.jsx)("div",{className:"jsx-".concat(ye.Z.__hash)+" candidate-search-filter__params hide-mobile",children:(0,N.jsx)(we.Z,{intl:s,locations:h,searchParameters:r,onSearchParameterRemove:d,limited:!0})}),(0,N.jsxs)("div",{className:"jsx-".concat(ye.Z.__hash)+" candidate-search-filter__save hide-mobile",children:[p&&!m&&(0,N.jsx)(g.Z,{onClick:W,children:(0,N.jsx)(x.Z,{id:"candidate.search.save.label"})}),p&&m&&(0,N.jsx)(g.Z,{onClick:W,children:(0,N.jsx)(x.Z,{id:"candidate.search.save.update"})}),!p&&(0,N.jsx)(_.Z,{onClick:A,children:(0,N.jsx)(x.Z,{id:"candidate.search.buy"})})]})]})})}),(0,N.jsx)(_e.AM,{from:{height:j?0:"auto"},to:{height:j?"auto":0},config:{duration:300},children:function(e){return(0,N.jsxs)("div",{style:Se(Se({},e),{},{display:O?"block":"none"}),className:"jsx-".concat(ye.Z.__hash)+" modal-search-content",children:[(0,N.jsx)(u.Z,{children:(0,N.jsxs)("div",{className:"jsx-".concat(ye.Z.__hash)+" c
1andidate-search-filter__heading",children:[(0,N.jsx)("h4",{className:"jsx-".concat(ye.Z.__hash),children:(0,N.jsx)(x.Z,{id:"candidate.search.rules"})}),("ADMIN"===f.userType||"EMPLOYER"===f.userType)&&(0,N.jsx)(g.Z,{type:"button",onClick:L,isSecondary:!0,children:k?(0,N.jsx)(x.Z,{id:"candidate.search.simple"}):(0,N.jsx)(x.Z,{id:"candidate.search.advanced"})})]})}),O&&k&&(0,N.jsx)(je,{handleSaveSearchButton:W,handleCloseModal:C,goToServices:A,handleBodyOverflow:M,intl:s,onSearch:o,cvSearchActive:p,languageOptions:T,levelOptions:te,categoryOptions:Q,locationOptions:V,educationLevelOptions:F,educationCategoriesOptions:$,educationSpecialitiesOptions:Y,drivingLicenseOptions:ge.IN,searchFilters:r,setIsFilterOpen:b,isFilterOpen:j}),O&&!k&&(0,N.jsx)(X,{handleSaveSearchButton:W,handleCloseModal:C,goToServices:A,intl:s,onSearch:o,cvSearchActive:p,languageOptions:T,levelOptions:te,categoryOptions:Q,locationOptions:V,educationLevelOptions:F,educationCategoriesOptions:$,isMoreOpen:l,searchFilters:r,setIsFilterOpen:b,isFilterOpen:j})]})}}),(0,N.jsx)(i(),{id:ye.Z.__hash,children:ye.Z})]})};Ne.defaultProps={savedId:void 0,categories:null,availableLanguages:null,locations:null};var Pe=Ne,Ee=t(97486),Ce=t(80462),Me=t(39072),Le=t(41664),We=t.n(Le),Ae=[".saved-candidate-list.jsx-3984647755{border:1px solid ".concat(S.O9.grey3,";border-radius:2px;display:block;list-style:none;margin:0;padding:0;}"),".saved-candidate-list__item.jsx-3984647755{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:".concat(S.W0.s," ").concat(S.W0.s," ").concat(S.W0.xs," ").concat(S.W0.s,";color:").concat(S.O9.primary,";}"),".saved-candidate-list__item-user-data-hidden-admin.jsx-3984647755{position:absolute;margin-top:".concat(S.W0.xxxs,";margin-left:").concat(S.W0.xs,";}"),".saved-candidate-list.jsx-3984647755 li.jsx-3984647755:not(:last-child) .saved-candidate-list__item.jsx-3984647755{border-bottom:1px solid ".concat(S.O9.grey3,";}"),"@media screen and (max-width:".concat(S.J7.desktopCutoff,"){.saved-candidate-list__toggle.jsx-3984647755{display:block;padding:0 ").concat(S.W0.s,";padding-top:").concat(S.W0.s,";}.saved-candidate-list.jsx-3984647755{border-top:0;}}")];Ae.__hash="3984647755";var Ie=Ae;function Fe(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);a&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),t.push.apply(t,n)}return t}function ze(e){for(var a=1;a<arguments.length;a++){var t=null!=arguments[a]?arguments[a]:{};a%2?Fe(Object(t),!0).forEach((function(a){(0,n.Z)(e,a,t[a])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Fe(Object(t)).forEach((function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))}))}return e}var De=function(e){return(0,N.jsx)("svg",ze(ze({},e),{},{children:(0,N.jsx)("path",{d:"M13 19V1zm-6.041-4.586L0 21.428V0h14v21.401l-7.041-6.987z"})}))};De.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"22"};var Te=function(e){return(0,N.jsx)("svg",ze(ze({},e),{},{children:(0,N.jsx)("path",{d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14zm0 1A8 8 0 1 1 8 0a8 8 0 0 1 0 16zM7.5 4v5h1V4h-1zm.5 6.25a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5z",fillOpacity:".93",fill:"#ff7f36"})}))};Te.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"};var qe=function(e){var a=(0,c.useState)(!1),t=a[0],n=a[1],s=(0,c.useState)(!1),o=s[0],r=s[1],d=(0,ne.B)().isScreenMobile;(0,c.useEffect)((function(){n(!d)}),[d]);var l=e.employerId,h=e.candidates,u=e.savedId,p=e.intl;return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)("div",{className:"jsx-".concat(Ie.__hash)+" saved-candidate-list__toggle hide-desktop",children:(0,N.jsxs)(g.Z,{onClick:function(){n(!o),r(!o)},children:[(0,N.jsx)(x.Z,{id:"candidate.search.saved.candidates.short",values:{value:h.length}}),"\xa0"]})}),t&&(0,N.jsxs)("ul",{className:"jsx-".concat(Ie.__hash)+" saved-candidate-list",children:[(0,N.jsx)("li",{className:"jsx-".concat(Ie.__hash)+" hide-desktop",children:(0,N.jsx)("span",{className:"jsx-".concat(Ie.__hash)+" saved-candidate-list__item",children:(0,N.jsx)(We(),{href:"/employer/".concat(l,"/cv-search?savedId=").concat(u),children:(0,N.jsx)(x.Z,{id:"candidate.search.saved.candidates.show.all"})})})}),h.map((function(a){return(0,N.jsx)("li",{className:"jsx-".concat(Ie.__hash),children:(0,N.jsx)(We(),{href:{pathname:"/employer/[employerId]/cvs
1/[cvId]",query:{employerId:l,cvId:a.id,savedId:u,crumbs:!1}},children:(0,N.jsxs)("a",{target:"blank",className:"jsx-".concat(Ie.__hash)+" saved-candidate-list__item",children:[(0,N.jsxs)("span",{className:"jsx-".concat(Ie.__hash),children:[a.contactHidden&&(0,N.jsx)("i",{className:"jsx-".concat(Ie.__hash),children:(0,N.jsx)(x.Z,{id:"cv.employer.hidden.search.candidate.name"})}),!a.contactHidden&&(0,N.jsxs)(N.Fragment,{children:[a.firstName,"\xa0",a.lastName]}),a.contactHiddenAdmin&&(0,N.jsx)("span",{title:p.formatMessage({id:"cv.employer.hidden.admin.candidate.text"}),className:"jsx-".concat(Ie.__hash)+" saved-candidate-list__item-user-data-hidden-admin",children:(0,N.jsx)(Te,{})})]}),(0,N.jsx)(g.Z,{onClick:function(t){return function(a,t){a.preventDefault(),e.removeSavedCandidate(e.savedId,t)}(t,a.id)},children:(0,N.jsx)(De,{})})]})})},a.id)}))]}),(0,N.jsx)(i(),{id:Ie.__hash,children:Ie})]})},Re=t(96994),Ve=t(93967),Be=t.n(Ve),He=t(11163),Qe=t(53354),Je=(t(89730),t(86361)),Ue=t(86631),Ye=t(47109);function Ge(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);a&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),t.push.apply(t,n)}return t}function Ke(e){for(var a=1;a<arguments.length;a++){var t=null!=arguments[a]?arguments[a]:{};a%2?Ge(Object(t),!0).forEach((function(a){(0,n.Z)(e,a,t[a])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ge(Object(t)).forEach((function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))}))}return e}var $e=function(e){return(0,N.jsx)("svg",Ke(Ke({},e),{},{children:(0,N.jsx)("path",{d:"M13 1H1v18l5.953-6L13 19V1zM6.959 14.414 0 21.428V0h14v21.401l-7.041-6.987z"})}))};$e.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"22"};var Xe=function(e){return(0,N.jsx)("svg",Ke(Ke({},e),{},{children:(0,N.jsx)("path",{d:"M13 19V1zm-6.041-4.586L0 21.428V0h14v21.401l-7.041-6.987z"})}))};Xe.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"22"};var ea=function(e){return(0,N.jsx)("svg",Ke(Ke({},e),{},{children:(0,N.jsx)("path",{d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14zm0 1A8 8 0 1 1 8 0a8 8 0 0 1 0 16zM7.5 4v5h1V4h-1zm.5 6.25a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5z",fillOpacity:".93",fill:"#ff7f36"})}))};ea.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"};var aa=function(e){return(0,N.jsx)("svg",Ke(Ke({},e),{},{children:(0,N.jsx)("path",{d:"M8 1.5 6.667 0 4 3 1.333 0 0 1.5 4 6z",fillRule:"evenodd"})}))};aa.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"8",height:"8"};var ta=function(e){return(0,N.jsx)("svg",Ke(Ke({},e),{},{children:(0,N.jsx)("path",{d:"M0 4.5 1.333 6 4 3l2.667 3L8 4.5 4 0z",fillRule:"evenodd"})}))};ta.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"8",height:"8"};var na=function(e){return(0,N.jsx)("svg",Ke(Ke({},e),{},{children:(0,N.jsx)("path",{d:"M8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12zm-.464-5.343L5.414 6.536 4 7.95l2.121 2.121 1.415 1.414 4.95-4.95-1.415-1.414-3.535 3.536zM8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16z",fill:"none",fillRule:"evenodd"})}))};na.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"};var sa=function(e){return(0,N.jsx)("svg",Ke(Ke({},e),{},{children:(0,N.jsx)("path",{fill:"#06CDA0",d:"M8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12zm-.464-5.343L5.414 6.536 4 7.95l2.121 2.121 1.415 1.414 4.95-4.95-1.415-1.414-3.535 3.536zM8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16z",fillRule:"evenodd"})}))};sa.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"};var ia=function(e){return(0,N.jsx)("svg",Ke(Ke({},e),{},{children:(0,N.jsx)("path",{fill:"#EC2359",d:"M8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12zm0 2A8 8 0 1 1 8 0a8 8 0 0 1 0 16zM7 4v5h2V4H7zm1 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z"})}))};ia.defaultProps={width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg"};var ca=function(e){return(0,N.jsx)("svg",Ke(Ke({},e),{},{children:(0,N.jsx)("path",{fill:"#FF7F36",d:"M8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12Zm0 2A8 8 0 1 1 8 0a8 8 0 0 1 0 16ZM5 6.5C5.031 5.03 6.118 4 8.034 4 9.82 4 11 4.951 11 6.315c0 .903-.344 1.531-1.225 2.028-.83.46-1.008.754-1.008 1.34V10H7l-.012-.347c-.082-.94.262-1.478 1.123-1.962.806-.46.996-.754.996-1.322 0-.568-.474-.981-1.186-.981-.718 0-1.193.437-1.23 1.112H5ZM7.997 13A.993.993 0 0 1 7 12c0-.56.446-1 .997-1A.995.995 0 0 1 9 12c0 .56-.446 1-1.003 1Z"})}))};ca.defaultProps={width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg"};var oa=function(e){return(0,N.jsx)("svg",Ke(Ke({},e),{},{children:(0,N.jsx)("path",{fill:"#B3B3BE",d:"M12 5c6 0 10 4 12 7-2 3-6 7-12 7S2 15 0 12c2-3 6-7 12-7zm0 1C6.386 6 2.795 9.838 1.219 12 2.795 14.162 6.386 18 12 18c5.614 0 9.205-3.838 10.781-6C21.205 9.838 17.614 6 12 6zm0 1a5 5 0 1 1-.001 10.001A5 5 0 0 1 12 7zm0 1c-2.206 0-4 1.794-4 4s1.794 4 4 4 4-1.794 4-4-1.794-4-4-4zm0 6.5v-1c.827 0 1.5-.673 1.5-1.5h1c0 1.378-1.122 2.5-2.5 2.5z"})}))};oa.defaultProps={width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg"};var ra=function(e){return(0,N.jsx)("svg",Ke(Ke({},e),{},{children:(0,N.jsx)("path",{fill:"#B3B3BE",d:"M12 5C6 5 2 9 0 12c2 3 6 7 12 7s10-4 12-7c-2-3-6-7-12-7m0 2a5 5 0 1 0 .001 10.001A5 5 0 0 0 12 7m0 1c2.206 0 4 1.794 4 4s-1.794 4-4 4-4-1.794-4-4 1.794-4 4-4Zm2.5 4h-1c0 .827-.673 1.5-1.5 1.5v1c1.378 0 2.5-1.122 2.5-2.5Z",fillRule:"evenodd"})}))};ra.defaultProps={width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg"};var da=function(e){return(0,N.jsx)("svg",Ke(Ke({},e),{},{children:(0,N.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,N.jsx)("path",{fill:"#FFF",stroke:"#040429",strokeOpacity:".15",d:"M.5.5h79v79H.5z"}),(0,N.jsx)("path",{fill:"#F2F2F4",d:"M1 1h78v78H1z"}),(0,N.jsx)("path",{fill:"#DADADF",d:"M0 0h80v80H0z"}),(0,N.jsx)("path",{fill:"#F2F2F4",d:"M71 94.494H9l6.475-23.681C16.738 66.196 20.875 63 25.593 63h28.8
114c4.717 0 8.856 3.196 10.118 7.813L71 94.493z"}),(0,N.jsx)("path",{fill:"#B3B3BE",d:"M49 63H31l9 15z"}),(0,N.jsx)("path",{fill:"#FFF",d:"M40 67c-3.519 0-6.282-2.083-5.977-4.505L35.092 54h9.816l1.069 8.495C46.282 64.917 43.519 67 40 67m17.563-26H22.437A3.447 3.447 0 0 1 19 37.563v-.126A3.447 3.447 0 0 1 22.437 34h35.126A3.447 3.447 0 0 1 61 37.437v.126A3.447 3.447 0 0 1 57.563 41"}),(0,N.jsx)("path",{fill:"#FFF",d:"M22.064 24.583c.646 7.661 2.289 9.8 2.289 17.34C24.353 50.176 31.158 56.951 40 57c8.841-.048 15.647-6.823 15.647-15.078 0-7.538 1.643-9.678 2.29-17.339C58.696 15.566 52.631 8.048 40 8c-12.632.048-18.697 7.566-17.936 16.583z"})]})}))};da.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"80",height:"80"};var la=[{key:"SUITS",icon:(0,N.jsx)(sa,{})},{key:"DOESNT_SUIT",icon:(0,N.jsx)(ia,{})},{key:"QUESTION",icon:(0,N.jsx)(ca,{})}],ha=function(e){var a=(0,c.useState)(!1),t=a[0],n=a[1],s=(0,c.useState)(!1),o=s[0],d=s[1],l=(0,c.useState)(!1),h=l[0],u=l[1],p=function(e){e.stopPropagation(),e.preventDefault(),n(!t)},f=function(e){e.preventDefault(),u(!1)},m=e.intl,v=e.candidate,j=e.locations,_=e.savedCandidates,b=e.savedId,y=e.employerId,w=e.lastUsed,k=e.contactHidden,S=e.cvSearchActive,Z=e.total,O=_&&_.some((function(e){return e.id===v.id})),P=O&&b?(0,N.jsx)(Xe,{}):(0,N.jsx)($e,{}),E=new Date(w)<new Date(v.modifiedDate),C=new Date(v.modifiedDate)<new Date(v.lastSeen),M=null;if(null!=v.education){var L=[];if(v.education.schoolName&&(k?L.push("<i>".concat(m.formatMessage({id:"cv.employer.hidden.search.candidate.school"}),"</i>")):L.push(v.education.schoolName)),v.education.degree){var W=m.formatMessage({id:"degree.".concat(v.education.degree,".label")});L.push(W)}else if(v.education.level){var A=m.formatMessage({id:"education.".concat(v.education.level,".label")});L.push(A)}if(M=L.join(", "),v.education.category){var I=m.formatMessage({id:"educationCategory.".concat(v.education.category,".label")});M=M.concat(" \u2013 ".concat(I))}}var F=null;if(null!=v.expectations&&v.expectations.length>0){var D=[];if(v.expectations.length>0&&D.push(v.expectations.join(" / ")),null!=v.locations.length&&v.locations.length>0){var T=v.locations.map((function(e){return(0,r.gr)(j,e,m)}));D.push(T.join(" / "))}if(null!=v.worktimes&&v.worktimes.length>0){var q=v.worktimes.map((function(e){return m.formatMessage({id:"workTime.".concat(e,".label")}).toLowerCase()}));D.push(q.join(" / "))}F=D.join(", ")}var R=null!=M||null!=F,V=v.experience.length>
10&&(0,N.jsxs)("span",{className:"jsx-".concat(Qe._N.__hash)+" candidate-item__experience",children:[(0,N.jsx)("span",{className:"jsx-".concat(Qe._N.__hash)+" candidate-item__label",children:(0,N.jsx)(x.Z,{id:"candidate.item.experience"})}),t||v.experience.length<4?(0,N.jsxs)("span",{className:"jsx-".concat(Qe._N.__hash),children:[v.experience.join(", "),"\xa0",v.experience.length>3&&(0,N.jsxs)(g.Z,{onClick:p,children:["\xa0",(0,N.jsx)(x.Z,{id:"candidate.item.show.less"})]})]}):(0,N.jsxs)("span",{className:"jsx-".concat(Qe._N.__hash),children:[v.experience.slice(0,3).join(", "),"\xa0",(0,N.jsx)(g.Z,{onClick:p,children:(0,N.jsx)(x.Z,{id:"candidate.item.show.more",values:{value:v.experience.length-3}})})]}),(0,N.jsx)(i(),{id:Qe._N.__hash,children:Qe._N})]}),B=b&&y&&v.lastApplied?"/".concat(m.locale,"/employer/").concat(y,"/vacancy/").concat(v.lastApplied.vacancyId,"/applicants?search=").concat(v.firstName," ").concat(v.lastName):void 0,H=b&&y&&k&&v.lastApplied?"/".concat(m.locale,"/employer/").concat(y,"/vacancy/").concat(v.lastApplied.vacancyId,"/applicants"):void 0,Q=Be()({"candidate-item":!0,"candidate-item--seen":v.paid});return(0,N.jsxs)("div",{className:"jsx-".concat(Qe._N.__hash)+" "+(Q||""),children:[(0,N.jsxs)("div",{className:"jsx-".concat(Qe._N.__hash)+" c
1andidate-item__content",children:[(0,N.jsxs)("div",{onClick:function(){return window.open(function(e){var a="/employer/".concat(y),t="/cvs/".concat(e),n=[b?"savedId=".concat(b):null,Z?"total=".concat(Z):null,"crumbs=false"].filter((function(e){return null!==e})).join("&");return"".concat(a).concat(t).concat(n?"?".concat(n):"")}(v.id),"_blank")},className:"jsx-".concat(Qe._N.__hash)+" candidate-item__info",children:[(0,N.jsx)("div",{className:"jsx-".concat(Qe._N.__hash)+" candidate-item__logo",children:!k&&v.photoId?(0,N.jsx)("img",{src:(0,z.WT)("/cv-service/search/file/".concat(v.photoId)),alt:v.firstName,className:"jsx-".concat(Qe._N.__hash)}):(0,N.jsx)(da,{})}),(0,N.jsxs)("div",{className:"jsx-".concat(Qe._N.__hash),children:[(0,N.jsxs)("span",{className:"jsx-".concat(Qe._N.__hash)+" candidate-item__title",children:[!k&&"".concat(v.firstName," ").concat(v.lastName," "),v.contactHiddenAdmin&&(0,N.jsx)("span",{title:m.formatMessage({id:"cv.employer.hidden.admin.candidate.text"}),className:"jsx-".concat(Qe._N.__hash)+" candidate-item__user-data-hidden-admin",children:(0,N.jsx)(ea,{})}),k&&(0,N.jsx)("i",{className:"jsx-".concat(Qe._N.__hash),children:(0,N.jsx)(x.Z,{id:"cv.employer.hidden.search.candidate.name"})})]}),(0,N.jsxs)("div",{className:"jsx-".concat(Qe._N.__hash)+" secondary-text hide-desktop",children:[(0,N.jsx)(x.Z,{id:"candidate.item.last.updated"}),"\xa0",(0,r.uJ)(v.modifiedDate)]}),(0,N.jsx)("span",{className:"jsx-".concat(Qe._N.__hash)+" hide-mobile",children:V})]})]}),(0,N.jsx)("div",{className:"jsx-".concat(Qe._N.__hash)+" hide-desktop",children:V}
1),(0,N.jsxs)("div",{className:"jsx-".concat(Qe._N.__hash)+" candidate-item__footer",children:[R?(0,N.jsx)("div",{className:"jsx-".concat(Qe._N.__hash)+" candidate-item__footer-details",children:(0,N.jsxs)(g.Z,{onClick:function(e){e.preventDefault(),d(!o)},children:[(0,N.jsx)(x.Z,{id:"candidate.item.details"}),o?(0,N.jsx)(ta,{}):(0,N.jsx)(aa,{})]})}):(0,N.jsx)("span",{className:"jsx-".concat(Qe._N.__hash)+" candidate-item__footer-details"}),(0,N.jsxs)("div",{className:"jsx-".concat(Qe._N.__hash)+" candidate-item__footer-dates",children:[(0,N.jsxs)("span",{className:"jsx-".concat(Qe._N.__hash)+" secondary-text hide-mobile",children:[(0,N.jsx)(x.Z,{id:"candidate.item.last.updated"}),"\xa0",(0,r.uJ)(v.modifiedDate)]}),(B||H)&&(0,N.jsx)(We(),{href:H||B,legacyBehavior:!0,children:(0,N.jsxs)("a",{target:"_blank",className:"jsx-".concat(Qe._N.__hash)+" secondary-text hide-mobile",children:[(0,N.jsx)(x.Z,{id:"candidate.item.last.applied"}),"\xa0",(0,r.uJ)(v.lastApplied.appliedDate)]})})]})]}),o&&(0,N.jsxs)("div",{className:"jsx-".concat(Qe._N.__hash)+" c
1andidate-item__details",children:[null!=M&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)("span",{className:"jsx-".concat(Qe._N.__hash)+" candidate-item__label",children:(0,N.jsx)(x.Z,{id:"candidate.item.education"})}),(0,N.jsx)("span",{dangerouslySetInnerHTML:{__html:M},className:"jsx-".concat(Qe._N.__hash)}),(0,N.jsx)("br",{className:"jsx-".concat(Qe._N.__hash)})]}),null!=F&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)("span",{className:"jsx-".concat(Qe._N.__hash)+" candidate-item__label",children:(0,N.jsx)(x.Z,{id:"candidate.item.expectations"})}),F,(0,N.jsx)("br",{className:"jsx-".concat(Qe._N.__hash)})]})]})]}),(0,N.jsxs)("div",{className:"jsx-".concat(Qe._N.__hash)+" candidate-item__controls",children:[(0,N.jsx)(g.Z,{onClick:function(a){return function(a,t){a.preventDefault();var n=e.savedId,s=e.candidate;n?e.candidate.isSaveLoading||(t?e.removeSavedCandidate(n,s.id):e.saveCandidate(n,s.id)):e.saveCandidate(s.id)}(a,O)},children:(0,N.jsx)("span",{className:"jsx-".concat(Qe._N.__hash)+" candidate-item__action-icon",children:v.isSaveLoading?(0,N.jsx)(Je.Z,{size:"14px"}):P})}
1),(0,N.jsxs)("div",{className:"jsx-".concat(Qe._N.__hash)+" candidate-item__footer-labels",children:[S&&(0,N.jsxs)("span",{className:"jsx-".concat(Qe._N.__hash)+" candidate-item__badge",children:[(0,N.jsx)(g.Z,{onClick:function(e){e.preventDefault(),u(!0)},children:null!==v.badgeType?la.find((function(e){return e.key===v.badgeType})).icon:(0,N.jsx)(x.Z,{id:"badge.mark.as"})}),(0,N.jsx)(_e.AM,{from:{height:h?0:"auto"},to:{height:h?"auto":0},children:function(a){return(0,N.jsx)("div",{style:a,className:"jsx-".concat(Qe._N.__hash)+" candidate-item__badge-dropdown",children:(0,N.jsx)(Ye.Z,{onOutsideClick:f,children:(0,N.jsx)("ul",{className:"jsx-".concat(Qe._N.__hash)+" candidate-item__badge-dropdown-content",children:la.map((function(a){return(0,N.jsx)("li",{className:"jsx-".concat(Qe._N.__hash),children:(0,N.jsx)(g.Z,{onClick:function(t){return function(a,t){a.preventDefault();var n=e.setSavedCvSearchCvBadge,s=e.removeSavedCvSearchCvBadge,i=e.savedId,c=e.candidate;null===i?n(c.id,t):t===c.badgeType?s(i,c.id):n(i,c.id,t),f(a)}(t,a.key)},isFullWidth:!0,children:(0,N.jsxs)("span",{className:"jsx-".concat(Qe._N.__hash)+" "+(Be()({"candidate-item__badge-dropdown-content-item":!0,"candidate-item__badge-dropdown-content-item--selected":a.key===v.badgeType})||""),children:[a.icon,(0,N.jsx)(x.Z,{id:"badge.".concat(a.key)}),a.key===v.badgeType&&(0,N.jsx)(na,{})]})})},a.key)}))})})})}})]}),(0,N.jsxs)("span",{className:"jsx-".concat(Qe._N.__hash)+" hide-mobile",children:[b&&!C&&E&&!v.paid&&(0,N.jsx)("span",{className:"jsx-".concat(Qe._N.__hash)+" c
1andidate-item__footer-label candidate-item__footer-status",children:(0,N.jsx)(x.Z,{id:"candidate.item.new"})}),v.paid&&(0,N.jsx)("span",{className:"jsx-".concat(Qe._N.__hash)+" candidate-item__footer-label candidate-item__footer-seen",children:(0,N.jsx)(Ue.Z,{tooltipTextKey:"candidate.item.paid",iconActive:(0,N.jsx)(ra,{}),children:(0,N.jsx)(oa,{})})})]})]})]}),(0,N.jsx)(i(),{id:Qe._N.__hash,children:Qe._N})]})};ha.defaultProps={savedId:null,employerId:null,lastUsed:null,contactHidden:!1,total:0};var ua=ha,xa=t(66044);function pa(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);a&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),t.push.apply(t,n)}return t}function fa(e){for(var a=1;a<arguments.length;a++){var t=null!=arguments[a]?arguments[a]:{};a%2?pa(Object(t),!0).forEach((function(a){(0,n.Z)(e,a,t[a])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):pa(Object(t)).forEach((function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))}))}return e}var ma=function(e){return(0,N.jsxs)("svg",fa(fa({},e),{},{children:[(0,N.jsx)("path",{d:"m20 7.917-8 6.737-8-6.737V18h16V7.917zM3 19V5h18v14H3zM20 6.61V6H4v.61l8 6.736 8-6.737z"}),(0,N.jsx)("path",{d:"m20 7.917-8 6.737-8-6.737V18h16V7.917zM3 19V5h18v14H3zM20 6.61V6H4v.61l8 6.736 8-6.737z"})]}))};ma.defaultProps={width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg"};var va=function(e){var a=(0,He.useRouter)(),t=e.intl,n=e.total,s=e.candidates,c=e.savedCandidates,r=e.onMoreResults,d=e.onPageChange,l=e.searchParams,h=e.onSearchParamRemove,u=e.saveCandidate,p=e.removeSavedCandidate,f=e.setSavedCvSearchCvBadge,m=e.removeSavedCvSearchCvBadge,v=e.locations,j=e.employerId,_=e.savedId,b=e.handleShowSaved,y=e.isShowSaved,w=e.setOrder,k=e.isOrderByRelevance,S=e.handleOpenEmailModal,Z=e.cvSearchActive,O=l.offset,P=void 0===O?0:O,E=l.limit,C=void 0===E?50:E,M=(0,o.v9)((function(e){var a;return null===(a=e.employer.details.data)||void 0===a?void 0:a.name}))||"",L=(0,N.jsx)(x.Z,{id:"candidate.new.search.results.title",values:{value:n}}),W=l.name;_&&W&&!y&&(L=(0,N.jsxs)("span",{children:[W," (",n,")"]})),y&&(L=(0,N.jsxs)("span",{children:[W||(0,N.jsx)(x.Z,{id:"breadcrumbs.search.results"}),"\xa0\u2013\xa0",(0,N.jsx)(x.Z,{id:"candidate.search.saved.label"})]}));var A=(0,N.jsx)(Me.Z,{crumbs:{parentValue:M,parentRoute:"/".concat(t.locale,"/employer/").concat(j,"/cvs"),current:L}}),I=Be()({"candidate-search":!0,"candidate-search--has-saved":!0,"candidate-search--saved":y}),F=[{key:"candidate.search.results.order.newest.first",type:"button",action:function(e){w(!1),e()},isSelected:!k},{key:"candidate.search.results.order.by.relevance",type:"button",action:function(e){w(!0),e()},isSelected:k}];if((!n||0===n)&&!y)return(0,N.jsxs)("div",{className:"jsx-".concat(Qe.Ei.__hash," jsx-").concat(Qe.ZP.__hash)+" "+(I||""),children:[(0,N.jsxs)("div",{className:"jsx-".concat(Qe.Ei.__hash," jsx-").concat(Qe.ZP.__hash)+" candidate-search__content",children:[(0,N.jsx)("span",{className:"jsx-".concat(Qe.Ei.__hash," jsx-").concat(Qe.ZP.__hash)+" candidate-search-results-heading",children:A}),(0,N.jsx)(Ce.Z,{type:"cvSearch",intl:t,locations:v,searchParameters:l,onSearchParameterRemove:h,content:(0,N.jsx)(x.Z,{id:"candidate.search.no.results.text"})})]}),(0,N.jsxs)("div",{className:"jsx-".concat(Qe.Ei.__hash," jsx-").concat(Qe.ZP.__hash)+" candidate-search__sidebar",children:[(0,N.jsx)(xa.Z,{className:"hide-mobile",employerId:j}),_&&c.length>0&&(0,N.jsxs)("div",{className:"jsx-".concat(Qe.Ei.__hash," jsx-").concat(Qe.ZP.__hash),children:[(0,N.jsxs)("span",{className:"jsx-".concat(Qe.Ei.__hash," jsx-").concat(Qe.ZP.__hash)+" candidate-search__sidebar-heading hide-mobile",children:[(0,N.jsx)(x.Z,{id:"candidate.search.saved.candidates.label"}),(0,N.jsx)(g.Z,{onClick:b,children:(0,N.jsx)(x.Z,{id:"candidate.search.saved.candidates.show.all"})})]}),(0,N.jsx)(qe,{intl:t,employerId:j,savedId:_,candidates:c,removeSavedCandidate:p})]})]}),(0,N.jsx)(i(),{id:Qe.Ei.__hash,children:Qe.Ei}
1),(0,N.jsx)(i(),{id:Qe.ZP.__hash,children:Qe.ZP})]});var z=Math.ceil(P/C)+1;return(0,N.jsxs)("div",{className:"jsx-".concat(Qe.Ei.__hash," jsx-").concat(Qe.ZP.__hash)+" "+(I||""),children:[(0,N.jsxs)("div",{className:"jsx-".concat(Qe.Ei.__hash," jsx-").concat(Qe.ZP.__hash)+" candidate-search__content",children:[(0,N.jsxs)("span",{className:"jsx-".concat(Qe.Ei.__hash," jsx-").concat(Qe.ZP.__hash)+" candidate-search-results-heading",children:[A,y?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)("span",{className:"jsx-".concat(Qe.Ei.__hash," jsx-").concat(Qe.ZP.__hash)+" hide-desktop",children:[(0,N.jsx)(x.Z,{id:"candidate.search.saved.candidates.short",values:{value:s.length}}),":"]}),(0,N.jsxs)("span",{className:"jsx-".concat(Qe.Ei.__hash," jsx-").concat(Qe.ZP.__hash)+" candidate-search-results-actions",children:[Z&&(0,N.jsx)("span",{className:"jsx-".concat(Qe.Ei.__hash," jsx-").concat(Qe.ZP.__hash)+" candidate-search-results-email hide-mobile",children:(0,N.jsx)(g.Z,{onClick:S,children:(0,N.jsx)(x.Z,{id:"candidate.search.email.all"})})}),(0,N.jsx)("span",{className:"jsx-".concat(Qe.Ei.__hash," jsx-").concat(Qe.ZP.__hash),children:(0,N.jsx)(g.Z,{onClick:b,children:(0,N.jsx)(x.Z,{id:"candidate.search.show.all.results"})})})]})]}):(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)("span",{className:"jsx-".concat(Qe.Ei.__hash," jsx-").concat(Qe.ZP.__hash)+" candidate-search-results-actions hide-mobile",children:Z&&(0,N.jsx)("span",{className:"jsx-".concat(Qe.Ei.__hash," jsx-").concat(Qe.ZP.__hash)+" candidate-search-results-email",children:(0,N.jsx)(g.Z,{onClick:S,children:(0,N.jsx)("span",{className:"jsx-".concat(Qe.Ei.__hash," jsx-").concat(Qe.ZP.__hash)+" hide-mobile",children:(0,N.jsx)(x.Z,{id:"candidate.search.email.all"})})})})}),(0,N.jsx)("span",{className:"jsx-".concat(Qe.Ei.__hash," jsx-").concat(Qe.ZP.__hash)+" candidate-search-results-order hide-mobile",children:(0,N.jsx)(Re.Z,{useSelectionAsLabel:!0,items:F})}),(0,N.jsx)("span",{className:"jsx-".concat(Qe.Ei.__hash," jsx-").concat(Qe.ZP.__hash)+" hide-desktop",children:(0,N.jsx)(x.Z,{id:"candidate.search.results.title",values:{value:n}})}),(0,N.jsx)("div",{className:"jsx-".concat(Qe.Ei.__hash," jsx-").concat(Qe.ZP.__hash)+" candidate-search-results-order hide-desktop",children:(0,N.jsx)(Re.Z,{useSelectionAsLabel:!0,items:F})}),(0,N.jsx)("div",{className:"jsx-".concat(Qe.Ei.__hash," jsx-").concat(Qe.ZP.__hash)+" candidate-search-results-actions hide-desktop",children:Z&&(0,N.jsx)("span",{className:"jsx-".concat(Qe.Ei.__hash," jsx-").concat(Qe.ZP.__hash)+" candidate-search-results-email",children:(0,N.jsx)(g.Z,{onClick:S,children:(0,N.jsx)(ma,{})})})})]})]}),(0,N.jsx)("ul",{className:"jsx-".concat(Qe.Ei.__hash," jsx-").concat(Qe.ZP.__hash)+" candidates-list",children:s.map((function(e){return(0,N.jsx)("li",{className:"jsx-".concat(Qe.Ei.__hash," jsx-").concat(Qe.ZP.__hash)+" candidates-list__item",children:(0,N.jsx)(ua,{intl:t,locale:t.locale,candidate:e,savedCandidates:c,saveC
1andidate:u,removeSavedCandidate:p,locations:v,savedId:_,employerId:j,lastUsed:l.lastUsed,setSavedCvSearchCvBadge:f,removeSavedCvSearchCvBadge:m,contactHidden:e.contactHidden,cvSearchActive:Z,total:n})},e.id)}))}),(0,N.jsx)(xa.Z,{className:"hide-desktop",employerId:j,stickToBottom:!0}),!y&&n>C&&n>s.length&&(0,N.jsx)(Ee.Z,{limit:parseInt(C,10),onMoreResults:r,onPageChange:d,total:n,currentPage:z})]}),(0,N.jsxs)("div",{className:"jsx-".concat(Qe.Ei.__hash," jsx-").concat(Qe.ZP.__hash)+" candidate-search__sidebar",children:[(0,N.jsx)(xa.Z,{className:"hide-mobile",employerId:j}),_&&!y&&c.length>0&&(0,N.jsxs)("div",{className:"jsx-".concat(Qe.Ei.__hash," jsx-").concat(Qe.ZP.__hash),children:[(0,N.jsxs)("span",{className:"jsx-".concat(Qe.Ei.__hash," jsx-").concat(Qe.ZP.__hash)+" candidate-search__sidebar-heading hide-mobile",children:[(0,N.jsx)(x.Z,{id:"candidate.search.saved.candidates.label"}),(0,N.jsx)(g.Z,{onClick:b,children:(0,N.jsx)(x.Z,{id:"candidate.search.saved.candidates.show.all"})})]}),(0,N.jsx)(qe,{intl:t,employerId:j,savedId:_,candidates:c,removeSavedCandidate:p,router:a})]})]}),(0,N.jsx)(i(),{id:Qe.Ei.__hash,children:Qe.Ei}),(0,N.jsx)(i(),{id:Qe.ZP.__hash,children:Qe.ZP})]})};va.defaultProps={total:0,candidates:[],savedId:null,isOrderByRelevance:!0};var ja=va,_a=t(74806),ga=[".candidate-search-save-modal.jsx-678846906{max-width:580px;padding:".concat(S.W0.l,";text-align:center;}"),".candidate-search-save-modal__fields.jsx-678846906{text-align:left;}",".candidate-search-save-modal__footer.jsx-678846906>hr.jsx-678846906{margin-left:-".concat(S.W0.l,";margin-right:-").concat(S.W0.l,";}"),".candidate-search-save-modal__footer-buttons.jsx-678846906{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;}",".candidate-search-save-modal__footer-buttons.jsx-678846906>button{width:159px;}",".candidate-search-save-modal__footer-buttons.jsx-678846906>button:first-child{margin-right:".concat(S.W0.m,";}"),"@media screen and (max-width:".concat(S.J7.desktopCutoff,"){.candidate-search-save-modal.jsx-678846906{max-width:100%;}.candidate-search-save-modal__footer.jsx-678846906{background-color:#FFF;bottom:").concat(S.W0.l,";left:").concat(S.W0.l,";right:").concat(S.W0.l,";}}")];ga.__hash="678846906";var ba=ga,ya=function(e){var a=e.handleSubmit,t=e.closeModal,n=e.saveSavedSearch;return(0,N.jsxs)("form",{onSubmit:a((function(e){n(e)})),className:"jsx-".concat(ba.__hash),children:[(0,N.jsxs)("div",{className:"jsx-".concat(ba.__hash)+" c
1andidate-search-save-modal",children:[(0,N.jsx)(x.Z,{id:"candidate.search.save.modal.title",tagName:"h2"}),(0,N.jsx)(x.Z,{id:"candidate.search.save.modal.text",tagName:"p"}),(0,N.jsxs)("div",{className:"jsx-".concat(ba.__hash)+" candidate-search-save-modal__fields",children:[(0,N.jsx)(f.Z,{name:"name",isFullWidth:!0,component:ce.Z,validate:[w.C1],label:"candidate.search.save.modal.name.field"}),(0,N.jsx)(f.Z,{name:"allowNotifications",component:b.Z,label:"candidate.search.save.modal.notifications.field"})]}),(0,N.jsxs)("div",{className:"jsx-".concat(ba.__hash)+" candidate-search-save-modal__footer",children:[(0,N.jsx)("hr",{className:"jsx-".concat(ba.__hash)}),(0,N.jsxs)("div",{className:"jsx-".concat(ba.__hash)+" candidate-search-save-modal__footer-buttons",children:[(0,N.jsx)(_.Z,{isSecondary:!0,onClick:t,children:(0,N.jsx)(x.Z,{id:"candidate.search.save.modal.cancel.button"})}),(0,N.jsx)(_.Z,{type:"submit",children:(0,N.jsx)(x.Z,{id:"candidate.search.save.modal.save.button"})})]})]})]}),(0,N.jsx)(i(),{id:ba.__hash,children:ba})]})},wa={form:"candidate-search-save-form",enableReinitialize:!0,keepDirtyOnReinitialize:!1,onSubmitFail:function(e){console.warn("form submit fail",e)}},ka=(0,m.Z)(wa)((0,_a.ZP)((0,c.memo)(ya))),Sa=t(12052),Za=t(33876),Oa=t(19549),Na=t(60921),Pa=t(80618),Ea=t(26692),Ca=t(56926),Ma=t(86896),La=t(87426);function Wa(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);a&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),t.push.apply(t,n)}return t}function Aa(e){for(var a=1;a<arguments.length;a++){var t=null!=arguments[a]?arguments[a]:{};a%2?Wa(Object(t),!0).forEach((function(a){(0,n.Z)(e,a,t[a])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Wa(Object(t)).forEach((function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))}))}return e}var Ia=function(e){var a=e.candidateSearch,t=e.sendCvSearchInviteEmails,n=e.locations,s=e.categories,d=e.availableLanguages,x=e.emailTemplates,p=e.authentication,f=e.saveCvToSearchProject,m=e.setSavedCvSearchCvBadge,v=e.removeSavedCvSearchCvBadge,j=e.saveSavedSearch,_=e.saveNewEmployerEmailTemplate,g=e.newTemplateModalModalData,b=e.shadowBoxActive,y=e.alma,w=(0,c.useState)(!1),k=w[0],S=w[1],Z=(0,c.useState)(!1),O=Z[0],P=Z[1],E=(0,c.useState)(!1),C=E[0],M=E[1],L=(0,c.useState)(!1),W=L[0],A=L[1],I=(0,c.useState)(null),F=I[0],z=I[1],D=(0,c.useState)(null),T=D[0],q=D[1],R=(0,c.useState)(null),V=R[0],B=R[1],H=(0,c.useState)(null),Q=H[0],J=H[1],U=(0,c.useState)([]),Y=U[0],G=U[1],K=(0,c.useState)(!1),$=K[0],X=K[1],ee=(0,o.I0)(),ae=(0,He.useRouter)(),te=ae.query,ne=te.employerId,se=te.savedId,ie=te.isShowSaved,ce=(0,Ma.Z)();(0,c.useEffect)((function(){P("true"===ie)}),[ae.query]),(0,c.useEffect)((function(){e.getLocations(),e.getCategories(),e.getAvailableLanguages(),e.validateCvSearchService(ne),e.getEmailTemplates(ne),se?(e.getSearchProjectCvs(se),e.getUserEmployerSavedSearch(ne,se),X(!1)):e.doSearch({employerId:ne,sortByRelevance:!1},ce.locale)}),[ae]),(0,c.useEffect)((function(){a.savedSearchPending&&e.doSearch(Aa(Aa({},a.searchFilters),{},{employerId:ne,sortByRelevance:!1}),ce.locale)}),[a.savedSearchPending]),(0,c.useEffect)((function(){var e=O?a.searchProjectCvs:a.cvList;a.searchProjectCvs.forEach((function(a){var t=e.find((function(e){return a.id===e.id}));t&&Object.assign(a,Aa({},t))})),G(e)}),[a,O]);(0,c.useEffect)((function(){if(a.cvIdsForEmails.length>0){var e=a.cvList.map((function(e){return e.contactHidden?"".concat(ce.formatMessage({id:"cv.employer.hidden.label"})):"".concat(e.firstName," ").concat(e.lastName)})),t=a.cvIdsForEmails,n=a.searchProjectCvs.map((function(e){return e.contactHidden?"".concat(ce.formatMessage({id:"cv.employer.hidden.label"})):"".concat(e.firstName," ").concat(e.lastName)})),s=a.searchProjectCvs.map((function(e){return e.id})),i={};O?(i.emailTo=Array.from(new Set(n)).join(", "),i.ids=Array.from(new Set(s))):(i.emailTo=Array.from(new Set(e)).join(", "),i.ids=Array.from(new Set(t))),i.emailTotal=i.ids.length,i.isSearchReqLo
1adingForCvIdsForEmails=a.isSearchReqLoadingForCvIdsForEmails,J(i)}}),[a.cvIdsForEmails]),(0,c.useEffect)((function(){return function(){return ee((0,Pa.i7)())}}),[]);var oe=function(e,a){q(e),B(a)},re=function(t,n){var s=a.searchFilters.name,i=Aa(Aa({sortByRelevance:W},t),{},{employerId:ne,savedId:se,name:s});X(!1),e.doSearch(i,n)},de=function(e){var t=function(e,a){var t=Aa({},e);switch(a.type){case"keywords":var n=t.keywords.filter((function(e){return!e.values.find((function(e){return e.value===a.label}))}));n.length>0?t.keywords=n:t.keywords=[];break;case"keywordSkills":var s=t.keywordSkills[0].values.filter((function(e){return e.key!==a.id&&e.value!==a.label}));s.length>0?t.keywordSkills[0].values=s:t.keywordSkills=[];break;case"keywordPreviousPositions":var i=t.keywordPreviousPositions[0].values.filter((function(e){return e!==a.label}));i.length>0?t.keywordPreviousPositions[0].values=i:t.keywordPreviousPositions=[];break;case"keywordExpectedPositions":var c=t.keywordExpectedPositions[0].values.filter((function(e){return e!==a.label}));c.length>0?t.keywordExpectedPositions[0].values=c:t.keywordExpectedPositions=[];break;case"experiences":delete t.requiredExperiences;break;case"expectedCategories":var o=t.expectedCategories[0].categories.filter((function(e){return e!==a.id}));o.length>0?t.expectedCategories[0].categories=o:t.expectedCategories=[];break;case"towns":var r=t.expectedLocations[0].filter((function(e){return e.townId!==a.id}));r.length>0?t.expectedLocations[0]=r:t.expectedLocations=[];break;case"counties":var d=t.expectedLocations[0].filter((function(e){return e.countyId!==a.id}));d.length>0?t.expectedLocations[0]=d:t.expectedLocations=[];break;case"countries":var l=t.expectedLocations[0].filter((function(e){return e.countryId!==a.id}));l.length>0?t.expectedLocations[0]=l:t.expectedLocations=[];break;case"languages":var h=t.requiredLanguages.filter((function(e){return e.iso!==a.id}));h.length>0?t.requiredLanguages=h:t.requiredLanguages=[];break;case"educationLevels":var u=t.educations.filter((function(e){return e.level!==a.id}));u.length>0?t.educations=u:t.educations=[];break;case"educationDegrees":var x=t.educations.filter((function(e){return e.degree!==a.id}));x.length>0?t.educations=x:t.educations=[];break;case"educationCategories":var p=[];t.educations.forEach((function(e){e.categories&&e.categories.indexOf(a.id)>-1&&(e.categories=e.categories.filter((function(e){return e!==a.id}))),p.push(e)})),p.length>0?t.educations=p:t.educations=[]}return t.offset=0,t}(a.searchFilters,e);re(t)},le=function(){z(null),S(!1)},he=function(){oe(null,null),S(!1)},ue=function(a){e.saveCvToSearchProject(a,F,void 0,le)},xe=function(a){e.setSavedCvSearchCvBadge(a,T,V,he)},pe=function(t){var n=e.saveSavedSearch,s=e.updateSavedSearch,i=Aa(Aa({},a.searchFilters),t);se?s(se,ne,i):n(ne,i,ce.locale,null!==F?ue:null!==T&&null!==V?xe:function(){return S(!1)},ae)},fe=p.user,me=fe.employers,ve=(void 0===me?[]:me).find((function(e){return e.id===parseInt(ne,10)})),je=ve?ve.name:"",_e=a.cvSearchActive;if(!a.searchFilters)return null;var ge=!s||!d||a.isSearchReqLoading&&(!a.total||0===a.total),be=Be()({search__container:!0,blurred:b});return(0,N.jsxs)(h.Z,{alma:y,intl:ce,title:ce.formatMessage({id:"candidate.search.page.title"}),children:[(0,N.jsx)(l(),{children:(0,N.jsx)("meta",{name:"description",content:ce.formatMessage({id:"description.".concat((0,r.ge)()),defaultMessage:"CV-Online"}),className:"jsx-1288999978"})}),!O&&(0,N.jsx)(Pe,{saveSavedSearch:j,isMoreOpen:a.isMoreFiltersOpen,categories:s,availableLanguages:d,searchParams:a.searchFilters,onSearchParamRemove:de,onSearch:re,saveSearch:pe,handleOpenSaveModal:function(){return S(!0)},locations:n,savedId:se,intl:ce,cvSearchActive:_e,user:fe,router:ae,employerId:ne,isFilterOpen:$,setIsFilterOpen:X}),(0,N.jsxs)("div",{className:"jsx-1288999978 "+(be||""),children:[(0,N.jsx)(La.Z,{isVisible:$}),(0,N.jsx)(u.Z,{children:ge?(0,N.jsx)("div",{className:"jsx-1288999978 search__content-spinner",children:(0,N.jsx)(Je.Z,{size:"24px"})}):(0,N.jsx)(ja,{router:ae,intl:ce,handleOpenEmailModal:function(){var a=e.candidateSearch,t=e.showError;a.total>500&&!O?t("candidate.search.email.modal.warn.too.many"):(e.searchCVIdsForEmails(a.searchFilters,ce.locale),M(!0))},total:a.total,candidates:Y,savedCandidates:a.searchProjectCvs,onMoreResults:function(e){re(Aa(Aa({},a.searchFilters),{},{limit:e}))},onPageChange:function(e){var t=50*(e-1);re(Aa(Aa({},a.searchFilters),{},{offset:t}),(function(){return window.scrollTo({top:0,behavior:"smooth"})}))},searchParams:a.searchFilters,onSearchParamRemove:de,saveCandidate:se?f:function(e){z(e),S(!0)},removeSavedCandidate:function(a,t){var n=e.candidateSearch.searchProjectCvs;e.deleteCvFromSearchProject(a,t,(function(){n.length<2&&O&&P(!1)}))},setSavedCvSearchCvBadge:se?m:function(e,a){oe(e,a),S(!0)},removeSavedCvSearchCvBadge:v,locations:n,employerId:ne,savedId:se,handleShowSaved:function(){return P(!O)},isShowSaved:O,setOrder:function(e){A(e),re(Aa(Aa({},a.searchFilters),{},{sortBy:e}))},isOrderByRelevance:W,cvSearchActive:_e})})]}),(0,N.jsx)(Oa.Z,{isOpen:k,onClose:function(){return S(!1)},children:(0,N.jsx)(ka,{saveSavedSearch:pe,closeModal:function(){return S(!1)}})}),(0,N.jsx)(Oa.Z,{isMaxHeight:!0,isOpen:C&&Q,onClose:function(){return M(!1)},children:(0,N.jsx)(Sa.Z,{searchCVIdsForEmails:O?null:function(){return(0,Pa.Gm)()},userEmail:fe.email,closeModal:function(){return M(!1)},emailTemplates:x,intl:ce,data:Q,employerId:ne,onSubmit:t,employerName:je,userFirstName:fe.firstName,userLastName:fe.lastName})}),(0,N.jsx)(Oa.Z,{isOpen:!!g&&g.newTemplateModalVisible,onClose:e.setNewTemplateEmailModalHidden,children:(0,N.jsx)(Za.Z,{closeModal:e.setNewTemplateEmailModalHidden,data:g,employerId:ne,onSubmit:_})}),(0,N.jsx)(i(),{id:"1288999978",children:[".search__content-spinner.jsx-1288999978{min-height:600px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;
1-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}"]})]})};Ia.defaultProps={newTemplateModalModalData:{newTemplateModalVisible:!1},emailTemplates:null,availableLanguages:null,categories:null,locations:null};var Fa=!0,za=(0,o.$j)((function(e){return{locations:e.locations,categories:e.common.categories,availableLanguages:e.common.availableLanguages,emailTemplates:e.common.emailTemplates,candidateSearch:e.candidateSearch,authentication:e.authentication,newTemplateModalModalData:e.common.newTemplateModalModalData,cvSearchSkillsSuggestions:e.suggestions.cvSearchSkillsSuggestions,cvSearchPositionsSuggestions:e.suggestions.cvSearchPositionsSuggestions,skillsSuggestionStatistics:e.suggestions.cvSearchSkillsSuggestionStatistics,positionsSuggestionStatistics:e.suggestions.cvSearchPositionsSuggestionStatistics,shadowBoxActive:e.common.shadowBoxActive}}),{deleteCvFromSearchProject:Pa.yZ,saveCvToSearchProject:Pa.Zc,saveSavedSearch:Pa.SL,updateSavedSearch:Pa._6,setSavedCvSearchCvBadge:Pa.HL,removeSavedCvSearchCvBadge:Pa.UY,sendCvSearchInviteEmails:Pa.O0,setNewTemplateEmailModalHidden:Ea.mA,saveNewEmployerEmailTemplate:Ea.Kg,validateCvSearchService:Pa.Rv,getSearchProjectCvs:Pa.Xq,searchCVIdsForEmails:Pa.Gm,showError:Na.x2,doSearch:Pa.V9,getLocations:Ca.J,getCategories:Ea.CP,getAvailableLanguages:Ea.Bz,getEmailTemplates:Ea.v5,getUserEmployerSavedSearch:Pa.Q_})(Ia)},2884:function(e,a,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/employer/[employerId]/cv-search/[[...savedId]]",function(){return t(9152)}])}}
1,function(e){e.O(0,[3157,5691,1531,1640,855,6631,5829,7400,618,6044,9774,2888,179],(function(){return a=2884,e(e.s=a);var a}));var a=e.O();_N_E=a}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.