1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[770],{30614(e,a,t){var s=t(88094),l=t(51784),r=t(94202),n=t(98488),o=t(63094),i=t(15678);const c=(0,l.Ay)(function(e){let a=e.intl,t=e.active;const l=(0,s.useContext)(o.BR).seoData.tabs||[],c=(0,r.W5)(),d=(0,r.W6)(),u=(e,a)=>{(0,n.gu)(e,a)};if(!l.length)return null;const m=[];return l.forEach((e,a)=>{m.push((0,i.jsx)("a",{href:"".concat(c.url,"#").concat(e.hash),className:"tab-bar__item ".concat(t==="#".concat(e.hash)?"active":""),"data-rs-tab-bar-item":"",onClick:()=>function(e){u(e.title,c.url),d.push("".concat(c.url,"#").concat(e.hash))}(e),children:e.title},"".concat(e.hash,"-").concat(a)))}),(0,i.jsx)("div",{className:"block bg-brand-tertiary",children:(0,i.jsxs)("div",{className:"block__wrapper block__wrapper--stacked wrapper",style:{paddingTop:"10px",paddingBottom:"10px"},children:[(0,i.jsxs)("div",{className:"tab-bar","data-rs-tab-bar":"",children:[(0,i.jsx)("a",{href:c.url,className:"tab-bar__item ".concat(t?"":"active"),"data-rs-tab-bar-item":"",onClick:function(){u("search result",c.url),d.push(c.url)},children:a.formatMessage({id:"ListingTabs.Tabs.SearchResults"})}),m]}),(0,i.jsx)("div",{className:"tab-bar__line divider"})]})})});t.d(a,["A",0,c])},72713(e,a,t){var s=t(88094),l=t(51784),r=t(63094),n=t(15678);const o=(0,l.Ay)(function(e){let a=e.active;const t=(0,s.useContext)(r.BR).seoData.translatableTabs||[],l=(0,s.useRef)();if((0,s.useEffect)(()=>{l.current&&l.current.querySelectorAll("[data-rs-carousel]").length>0&&(l.current.querySelectorAll("[data-rs-carousel]").forEach(e=>{"blog-overview--grid"===e.getAttribute("data-rs-carousel")?window&&window.outerWidth<941&&e.slick&&e.slick.refresh():e.slick&&e.slick.refresh()}),window.dispatchEvent(new Event("resize")))},[a]),!t.length)return null;const o=[];return t.forEach((e,t)=>{o.push((0,n.jsx)("div",{hidden:a!=="#".concat(e.hash),dangerouslySetInnerHTML:{__html:e.content},className:"no_script"},"".concat(e.hash,"-").concat(t)))}),(0,n.jsxs)("div",{id:"top-region-components",ref:l,children:[o,(0,n.jsx)("noscript",{children:(0,n.jsx)("style",{children:".no_script{display:block}"})})]})});t.d(a,["A",0,o])},63230(e,a,t){t(88094);var s=t(51784),l=t(61508),r=t(15678);const n=(0,s.Ay)(function(e){let a=e.active,t=e.modalClose,s=e.intl;return a?a&&(0,r.jsxs)(l.A,{title:s.formatMessage({id:"SaveJobModal.HeaderText"}),footer:(0,r.jsx)("a",{href:"/my-randstad/register/",className:"button button--m button--filled button--full-width",children:s.formatMessage({id:"SaveJobModal.ButtonText"})}),onClose:t,id:"save-jobs",children:[(0,r.jsx)("p",{className:"form__header",children:s.formatMessage({id:"SaveJobModal.MainText"},{total:"10"})}),(0,r.jsx)("img",{className:"modal__image",src:"/search-app/assets/image/favorites/pluss-signs-and-heart.svg",alt:""})]}):null});t.d(a,["A",0,n])},34042(e,a,t){t.d(a,{A:()=>E});var s=t(84919),l=t(44303),r=t(88094),n=t(51784),o=t(42528),i=t(16571),c=t(62102),d=t(84254),u=t(94202),m=t(98488),g=t(63094),h=t(15678);const p=(0,n.Ay)(function(e){let a=e.intl,t=e.aggregations,l=e.subSpecialism,n=e.searchParams,o=e.mvpDesign,i=void 0===o||o;const p=(0,r.useContext)(g.BR).setFiltersState,b=(0,u.W5)(),v=(0,u.W6)(),x=t.subSpecialism&&t.subSpecialism.subSpecialism.buckets?t.subSpecialism.subSpecialism.buckets.sort((e,a)=>e.key.localeCompare(a.key)):[];if(!x.length)return null;const j=[(0,h.jsx)("option",{value:"_none",hidden:!0,disabled:!0,children:a.formatMessage({id:"SubSpecialismFilter.FilterPlaceholder"})},"_none"),(0,c.A)(x,!0,i)];return(0,h.jsxs)("div",{className:"form-group__input",children:[(0,h.jsx)("select",{className:l?"":"untouched",value:l||"_none","aria-label":a.formatMessage({id:"SubSpecialismFilter.FilterLabel"}),name:"subSpecialism",onChange:e=>{e.persist(),i?p(a=>{const t="_none"===e.target.value?null:e.target.value;return t&&(0,m.cy)("".concat(e.target.name,":").concat(t)),(0,s.A)((0,s.A)({},a),{},{jobCategory:null,[e.target.name]:t})}):(0,d.A)(e,n,b,v)},id:"sub-specialism",children:j}),(0,h.jsx)("span",{className:"select-arrow icon",children:(0,h.jsx)("svg",{children:(0,h.jsx)("use",{xlinkHref:"/themes/custom/bluex/dist/assets/image/icons.svg#chevron-down"})})})]})});
1var b=t(76336),v=t(3339),x=t.n(v),j=t(6083),f=t(85094),y=(t(93197),t(1765)),A=t(87542),_=t(35308),N=(t(28779),t(66684)),S=t(25017),C=t.n(S);const k=(0,n.Ay)(function(e){let a=e.intl,t=e.searchParams,n=(e.remote,e.id),o=e.routeName,i=void 0===o?"search":o;const c=(0,r.useContext)(g.BR),d=c.setFiltersState,p=c.additionalData,b=c.filtersState,v=(0,u.W5)(),S=(0,N.A)(t,!0,a.locale,{}),k=(0,r.useState)(!1),M=(0,l.A)(k,2),w=M[0],F=M[1];let T=p.locationAutocompleteOptions||[];const L=(0,r.useState)(T),P=(0,l.A)(L,2),E=P[0],R=P[1],D=(0,r.useState)(p.multilingualCityUrlMapping||[]),B=(0,l.A)(D,1)[0],O=(0,r.useState)({locationSearch:S,distance:t.distance}),q=(0,l.A)(O,2),I=q[0],J=q[1],W=(0,r.useRef)(!0);if("undefined"!==typeof window){const e=document.querySelectorAll("[data-rs-auto-suggest]");if(e.length&&"undefined"!==typeof window.orbit&&"undefined"!==typeof window.orbit.autoSuggest)for(let a=0;a<e.length;a+=1)window.orbit.autoSuggest(e[a])}(0,r.useEffect)(()=>{W.current?W.current=!1:J({locationSearch:S,distance:t.distance})},[t]);const H=e=>{let t={};if(e){if(new RegExp("^\\d{4}[- ]{0,1}\\d{3}$").test(e))t.postcode=e,t.region=null,t.city=null;else{t.postcode=null;const l=e.split(", ");l.length>1?(t.region=(0,y.A)(l[1]).toLowerCase(),t.city=(0,y.A)(l[0]).toLowerCase()):1===l.length&&(t=(0,s.A)((0,s.A)({},t),(0,A.A)((0,y.A)(l[0]).toLowerCase(),a.locale,B)))}}return F(t.region&&!t.city),t},U=(e,a)=>{x().post("/api/search/get-geodata-current",{lat:e,lng:a}).then(e=>{if(e&&e.data.length){const a=e.data;J(e=>(0,s.A)((0,s.A)({},e),{},{locationSearch:a[0][0]})),d(e=>(0,s.A)((0,s.A)({},e),H(a[0][0])))}}).catch(()=>{C().error("Error getting current location with geo data API.","LocationFilterMvp1")})};return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("div",{className:"form-group__input","data-rs-auto-suggest":!0,children:[(0,h.jsx)(j.A,{id:n||"location-filter",name:"locationSearch","data-rs-auto-suggest-input"
1:" ",value:I.locationSearch,onChange:e=>{e.persist(),J(a=>(0,s.A)((0,s.A)({},a),{},{[e.target.name]:e.target.value})),(e=>{const t={searchText:e.target.value,currentLanguage:a.locale};x().post("/api/search/get-callback",{callback:"@Callbacks/getLocationAutocomplete",currentRoute:(0,s.A)((0,s.A)({},v),{routeName:i}),data:t}).then(a=>{if(R(a.data),"undefined"!==typeof document&&e.isTrusted){const a=new CustomEvent("input",{bubbles:!0});e.target.dispatchEvent(a),document.dispatchEvent(a)}})})(e),d(a=>{e.stopPropagation();let t=H(e.target.value);const l={region:null,city:null,postcode:null};return Object.keys(t).length?!t.region&&t.city?t=(0,s.A)((0,s.A)({},l),(0,A.A)(t.city)):t.region&&!t.city&&(t=(0,s.A)((0,s.A)({},l),(0,A.A)(t.region))):t=(0,s.A)({},l),(0,s.A)((0,s.A)({},a),t)})},placeholder:a.formatMessage({id:"LocationFilterMvp1.SearchLocationPlaceholder"}),"data-rs-auto-suggest-no-result-message":a.formatMessage({id:"Autosuggest.Noresults.Message"}),autoComplete:"off"}),(0,h.jsx)("ul",{className:"select-menu__list",id:"geo-search-as","data-rs-auto-suggest-list":"","data-rs-auto-suggest-values":E.length?E.slice(0,25).join(";"):"","data-rs-auto-suggest-separator":";","data-rs-use-exact-values":!0})]}),(0,h.jsxs)("div",{role:"presentation",className:"location-nearby",onClick:e=>{e.preventDefault(),navigator.geolocation&&navigator.geolocation.getCurrentPosition(e=>{if(e.coords.latitude&&e.coords.longitude){const a=e.coords.latitude,t=e.coords.longitude;return x().post("/api/search/get-callback",{callback:"@Callbacks/useMonster",currentRoute:{},data:{}}).then(e=>{e.data.useMonster?((e,a)=>{x().post("/api/search/get-callback",{callback:"@Callbacks/getCurrentLocationMonster",currentRoute:{},data:{lat:e,lon:a}}).then(t=>{if(t.data&&t.data[0]&&t.data[0][0]){const e=t.data[0][0].postcode;J(a=>(0,s.A)((0,s.A)({},a),{},{locationSearch:e})),d(a=>(0,s.A)((0,s.A)({},a),H(e)))}else U(e,a)}).catch(()=>{C().error("Error getting current Location with monster API.","LocationFilterMvp1")})})(a,t):U(a,t)}).catch(()=>{C().error("Error fetching current Location.","LocationFilterMvp1")})}})},children:[(0,h.jsx)("span",{className:"icon icon--inline",children:(0,h.jsx)("svg",{children:(0,h.jsx)("use",{xlinkHref:"/themes/custom/bluex/dist/assets/image/icons.svg#gps"})})}),(0,h.jsx)("span",{className:"currentLocation",children:(0,h.jsx)("a",{href:"#?","aria-label":a.formatMessage({id:"LocationFilterMvp1.CurrentLocation.AccessibilityAriaLabel"}),children:a.formatMessage({id:"LocationFilterMvp1.CurrentLocation"})})})]}),!w&&(0,h.jsxs)("div",{className:"form-group__input",children:[(0,h.jsx)("select",{className:I.distance||I.locationSearch||b.postcode?"":"untouched","aria-label":a.formatMessage({id:"LocationFilterMvp1.SearchDistancePlaceholder"}),name:"distance",id:"distance",onChange:e=>{e.persist(),(0,m.cy)("".concat(e.target.name,":").concat(e.target.value));let a=e.target.value;"_none"===a&&(a=null),J(t=>(0,s.A)((0,s.A)({},t),{},{[e.target.name]:a})),d(t=>{var l,r;return(0,s.A)((0,s.A)({},t),{},{[e.target.name]:null!==(l=I.locationSearch)&&void 0!==l&&null!==(r=l.trim())&&void 0!==r&&r.length?"10"===a?null:a:null})})},value:I.distance?I.distance:"10","data-rs-untouched":!0,children:(0,_.A)()}),(0,h.jsx)("span",{className:"select-arrow icon",children:(0,h.jsx)(f.A,{type:"chevron-down"})})]}),null]})});const M=(0,n.Ay)(function(e){let a=e.intl,t=e.aggregations,l=e.country,n=e.searchParams,o=e.mvpDesign,i=void 0===o||o;const p=(0,r.useContext)(g.BR).setFiltersState,b=(0,u.W5)(),v=(0,u.W6)(),x=t.international&&t.international.international.buckets?t.international.international.buckets.sort((e,a)=>e.key.localeCompare(a.key)):[];if(!x.length)return null;const j=[(0,h.jsx)("option",{value:"_none",children:a.formatMessage({id:"InternationalFilter.FilterPlaceholder"})},"_none"),(0,c.A)(x,!0,i)];return(0,h.jsxs)("div",{className:"form-group__input",children:[(0,h.jsx)("select",{className:l?"":"untouched",value:l||"_none","aria-label":a.formatMessage({id:"InternationalFilter.FilterLabel"}),name:i?"international":"city",onChange:e=>{e.persist(),i?p(a=>{const t="_none"===e.target.value?null:e.target.value;return t&&(0,m.cy)("".concat(e.target.name,":").concat(t)),(0,s.A)((0,s.A)({},a),{},{region:null,[e.target.name]:t})}):("_none"===e.target.value||(n.region=null),n.city=null,(0,d.A)(e,n,b,v))},id:"international",children:j}),(0,h.jsx)("span",{className:"select-arrow icon",children:(0,h.jsx)("svg",{children:(0,h.jsx)("use",{xlinkHref:"/themes/custom/bluex/dist/assets/image/icons.svg#chevron-down"})})})]})});var w=t(82839),F=t(9261),T=t(50251),L=t.n(T),P=t(84479);const E=(0,n.Ay)(function(e){let a=e.intl,t=e.aggregations,n=e.total;const c=(0,r.useContext)(g.BR),d=c.additionalData,v=c.filtersState,j=c.setFiltersState,_=c.setStartingPage,N=d.providedSearchParams,S=(0,u.W5)(),C=(0,u.W6)(),T=(0,r.useRef)(),E=(0,r.useState)({aggregations:{global:t}}),B=(0,l.A)(E,2),O=B[0],q=B[1],I=S.params.searchParams?(0,A.A)(S.params.searchParams,a.locale):{},J=R(I),W=(0,r.useRef)(!0);let H="search";S&&S.params&&S.params.clientName&&(H="client-search"),(0,r.useEffect)(()=>{j(e=>(0,s.A)((0,s.A)({},e),{}
1,{specialism:null,subSpecialism:null,jobCategory:null},I))},[]),(0,r.useEffect)(()=>{W.current?W.current=!1:(v.international&&(v.city=v.international),x().post("/api/search/search-results",{data:{currentRoute:(0,s.A)((0,s.A)({},S),{routeName:H}),currentLanguage:a.locale,searchParams:v}}).then(e=>{q(e.data.searchResults)}))},[v]);const U=e=>{let a=S.path.replace(":searchParams*","");if(S&&S.params&&S.params.clientName&&(a=a.replace(":clientName",S.params.clientName)),e&&e.jobType&&O&&O.aggregations&&O.aggregations.global&&O.aggregations.global.jobType){const a=O.aggregations.global.jobType.jobType.buckets,t=e.jobType;let s=[];t.forEach(e=>{a.forEach(a=>{(0,y.A)(a.key).toLowerCase()===e&&s.push(e)})}),s=s.filter((e,a)=>s.indexOf(e)===a),e.jobType=s}_(1);const t=L()((0,s.A)((0,s.A)({},e),{},{page:null}));C.push("".concat(a).concat(t))},K=e=>{switch(e.preventDefault(),e.target.name){case"specialism":j(e=>(0,s.A)((0,s.A)({},e),{},{specialism:null,subSpecialism:null,jobCategory:null})),N.specialism=null,N.subSpecialism=null,N.jobCategory=null,U(N);break;case"location":j(e=>(0,s.A)((0,s.A)({},e),{},{region:null,city:null,postcode:null,distance:null,remote:null})),N.region=null,N.city=null,N.postcode=null,N.distance=null,N.remote=null,U(N);break;case"job-type":j(e=>(0,s.A)((0,s.A)({},e),{},{jobType:null})),N.jobType=null,U(N);break;case"salary":j(e=>(0,s.A)((0,s.A)({},e),{},{yearSalary:null,daySalary:null,hourSalary:null})),N.yearSalary=null,N.daySalary=null,N.hourSalary=null,U(N);break;case"all":j({}),U({}),(0,P.A)("#root")}D(),document.getElementsByClassName("modal--active").length&&T.current.click()},z=e=>{e.preventDefault(),$(),U((0,s.A)({},v)),D(),document.getElementsByClassName("modal--active").length&&T.current.click(),(0,P.A)(".sortbar")},$=()=>{let e=[null===v||void 0===v?void 0:v.postcode,null===v||void 0===v?void 0:v.city,null===v||void 0===v?void 0:v.region];if(v.postcode!==N.postcode||v.city!==N.city||v.region!==N.region){e=e.filter(e=>e);const a=e.toString();a.length>0&&(0,m.cy)("locationSearch:".concat(a))}},G=e=>{e.preventDefault();L()(N)!==L()(v)?window.confirm(a.formatMessage({id:"SearchFiltersMvp1.CloseConfirmation"}))&&(T.current.click(),j(N)):T.current.click()};return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:"bg-variant-brand-tertiary","data-rs-bluex-sticky":!0,"data-rs-bluex-sticky-bg":"off-white",children:(0,h.jsxs)("form",{name:"filter-search-form","aria-label":"filter-search-form",className:"wrapper filter-bar",children:[(0,h.jsxs)("div",{className:"filter-bar__toggle hidden--from-l",children:[(0,h.jsxs)("div",{className:"filter-bar__toggle__trigger","data-rs-modal-trigger":"mobile-filters",children:[(0,h.jsx)("span",{className:"icon icon--inline",children:(0,h.jsx)(f.A,{type:"filter"})}),(0,h.jsx)("span",{children:a.formatMessage({id:"SearchFiltersMvp1.FilterLabel"})}),(0,h.jsx)("span",{className:"badge bg-brand--blue badge--s ".concat(J.allFilters?"":"hidden"),children:J.allFilters})]}),(0,h.jsx)("div",{className:"form-group form-group--dropdown-alternative",children:(0,h.jsx)(F.A,{searchParams:N})})]}),(0,h.jsxs)("ul",{className:"filter-bar__menu hidden--until-l",children:[(0,h.jsxs)("li",{className:"filter-bar__menu-item",children:[(0,h.jsxs)("button",{type:"button",className:"filter-bar__menu-item__trigger button--clean","data-rs-popover-trigger":"specialism",children:[a.formatMessage({id:"SearchFiltersMvp1.SpecialismTitle"}),(0,h.jsx)("span",{className:"icon icon--xs fill--dark-blue",children:(0,h.jsx)(f.A,{type:"chevron-down-8"})}),(0,h.jsx)("span",{className:"badge bg-brand--blue badge--s ".concat(J.specialism?"":"hidden"),children:J.specialism})]}),(0,h.jsxs)("div",{className:"filter-bar__popover-wrapper",children:[(0,h.jsx)("div",{className:"popover popover--arrow-left bg-variant-brand-tertiary hidden--until-l","data-rs-popover":"specialism","aria-hidden":"true",children:(0,h.jsxs)("div",{className:"popover__dialog",children:[(0,h.jsx)("div",{className:"popover__title",children:a.formatMessage({id:"SearchFiltersMvp1.SpecialismPopupTitle"})}),(0,h.jsxs)("div",{className:"form-group",children:[(0,h.jsx)(i.A,{aggregations:O.aggregations.global,specialism
1:v.specialism,searchParams:N}),v.specialism?(0,h.jsx)(p,{aggregations:O.aggregations.global,subSpecialism:v.subSpecialism,searchParams:N}):null,v.specialism?(0,h.jsx)(b.A,{aggregations:O.aggregations.global,jobCategory:v.jobCategory,searchParams:N}):null]}),(0,h.jsxs)("div",{className:"popover__action",children:[(0,h.jsx)("button",{type:"button",className:"button button--m button--filled show-jobs",onClick:z,"data-rs-popover-button-close":!0,children:a.formatMessage({id:"SearchFiltersMvp1.ShowJobs"},{total:O.hits?O.hits.total:n})}),(0,h.jsx)(w.N_,{className:"link",to:"#?",name:"specialism",onClick:K,"data-rs-popover-button-close":!0,children:a.formatMessage({id:"SearchFiltersMvp1.ClearFilter"})})]})]})}),(0,h.jsx)("div",{className:"modal__overlay modal__overlay--light hidden--until-l","data-rs-popover-overlay":!0})]})]}),(0,h.jsxs)("li",{className:"filter-bar__menu-item",children:[(0,h.jsxs)("button",{type:"button",className:"filter-bar__menu-item__trigger button--clean","data-rs-popover-trigger":"location",children:[a.formatMessage({id:"SearchFiltersMvp1.LocationTitle"}),(0,h.jsx)("span",{className:"icon icon--xs fill--dark-blue",children:(0,h.jsx)(f.A,{type:"chevron-down-8"})}),(0,h.jsx)("span",{className:"badge bg-brand--blue badge--s ".concat(J.location?"":"hidden"),children:J.location})]}),(0,h.jsxs)("div",{className:"filter-bar__popover-wrapper",children:[(0,h.jsx)("div",{className:"popover popover--arrow-left bg-variant-brand-tertiary hidden--until-l","data-rs-popover":"location","aria-hidden":"true",children:(0,h.jsxs)("div",{className:"popover__dialog",children:[(0,h.jsx)("div",{className:"popover__title",children:a.formatMessage({id:"SearchFiltersMvp1.LocationPopupTitle"})}),(0,h.jsx)("div",{className:"form-group",children:(0,h.jsx)(k,{searchParams:N,remote:v.remote})}),(0,h.jsx)("div",{className:"form-group",children:(0,h.jsx)(M,{country:v.city,aggregations:O.aggregations.global,searchParams:N})}),(0,h.jsxs)("div",{className:"popover__action",children:[(0,h.jsx)("button",{type:"button",className:"button button--m button--filled show-jobs",onClick:z,"data-rs-popover-button-close":!0,children:a.formatMessage({id:"SearchFiltersMvp1.ShowJobs"},{total:O.hits?O.hits.total:n})}),(0,h.jsx)(w.N_,{className:"link",to:"#?",name:"location",onClick:K,"data-rs-popover-button-close":!0,children:a.formatMessage({id:"SearchFiltersMvp1.ClearFilter"})})]})]})}),(0,h.jsx)("div",{className:"modal__overlay modal__overlay--light hidden--until-l","data-rs-popover-overlay":!0})]})]}),(0,h.jsxs)("li",{className:"filter-bar__menu-item",children:[(0,h.jsxs)("button",{type:"button",className:"filter-bar__menu-item__trigger button--clean","data-rs-popover-trigger":"jobType",children:[a.formatMessage({id:"SearchFiltersMvp1.JobTypePopupTitle"}),(0,h.jsx)("span",{className:"icon icon--xs fill--dark-blue",children:(0,h.jsx)(f.A,{type:"chevron-down-8"})}),(0,h.jsx)("span",{className:"badge bg-brand--blue badge--s ".concat(J.jobType?"":"hidden"),children:J.jobType})]}),(0,h.jsxs)("div",{className:"filter-bar__popover-wrapper",children:[(0,h.jsx)("div",{className:"popover popover--arrow-left bg-variant-brand-tertiary hidden--until-l","data-rs-popover":"jobType","aria-hidden":"true",children:(0,h.jsxs)("div",{className:"popover__dialog",children:[(0,h.jsx)("div",{className:"popover__title",children:a.formatMessage({id:"SearchFiltersMvp1.JobTypePopupTitle"})}),(0,h.jsx)(o.A,{aggregations:O.aggregations.global,jobType:v.jobType,searchParams:N}),(0,h.jsxs)("div",{className:"popover__action",children:[(0,h.jsx)("button",{type:"button",className:"button button--m button--filled show-jobs",onClick:z,"data-rs-popover-button-close":!0,children:a.formatMessage({id:"SearchFiltersMvp1.ShowJobs"},{total:O.hits?O.hits.total:n})}),(0,h.jsx)(w.N_,{className:"link",to:"#?",name:"job-type",onClick:K,"data-rs-popover-button-close":!0,children:a.formatMessage({id:"SearchFiltersMvp1.ClearFilter"})})]})]})}),(0,h.jsx)("div",{className:"modal__overlay modal__overlay--light hidden--until-l","data-rs-popover-overlay":!0})]})]})]}),(0,h.jsx)(w.N_,{to:"#?",className:"link filter-bar__label hidden--until-l ".concat(J.allFilters||I.query?"":"hidden"),name:"all",onClick:K,children:a.formatMessage({id:"SearchFiltersMvp1.ClearAllFilter"})})]})}),(0,h.jsx)("form",{name:"mobile-filter-search-form","aria-label":"mobile-filter-search-form",className:"modal","data-rs-modal":"mobile-filters",role:"dialog","aria-hidden":"true",children:(0,h.jsxs)("div",{className:"modal__dialog bg-variant-brand-tertiary",role:"dialog","aria-modal":!0,"aria-labelledby":"#","data-rs-modal-dialog":"data-rs-modal-dialog",children:[(0,h.jsxs)("div",{className:"modal__header","data-rs-modal-header":!0,children:[(0,h.jsx)("div",{className:"modal__title",children:a.formatMessage({id:"SearchFiltersMvp1.MobileLabel"})}),(0,h.jsx)(w.N_,{to:"#?",className:"modal__label modal__label--clear ".concat(J.allFilters||I.query?"":"hidden"),name:"all",onClick:K,children:a.formatMessage({id:"SearchFiltersMvp1.ClearAllFilter"})}),(0,h.jsx)("button",{type:"button","data-rs-modal-close-trigger":!0,hidden:!0,ref:T,"aria-label":a.formatMessage({id:"Close"})}),(0,h.jsxs)("div",{role:"presentation",className:"button--icon-only modal__close",onClick:G,"aria-label":a.formatMessage({id:"Close"}),children:[(0,h.jsx)("span",{className:"icon icon--inline hidden--from-l icon--alternative",children:(0,h.jsx)(f.A,{type:"close"})}),(0,h.jsx)("span",{className:"icon icon-l icon--inline hidden--until-l icon--alternative",children:(0,h.jsx)(f.A,{type:"close-30"})})]})]}),(0,h.jsxs)("div",{className:"modal__main","data-rs-modal-main":!0,children:[(0,h.jsx)("div",{className:"tab-navigation tab-navigation-filter tab-navigation-filter--icons tab-navigation-filter--animate","data-rs-toggable-group":"toggable-group__item--active",children:(0,h.jsxs)("ul",{className:"toggable-group",children:[(0,h.jsxs)("li",{className:"toggable-group__item toggable-group__item--active","data-rs-toggable-group-item":"active","data-rs-toggable-target":"#mobile-specialism",children:[(0,h.jsx)("span",{className:"badge bg-brand--blue badge--s ".concat(J.specialism?"":"hidden"),children:J.specialism}),(0,h.jsx)("span",{className:"icon",children:(0,h.jsx)(f.A,{type:"briefcase"})}),(0,h.jsx)("span",{className:"label",children:a.formatMessage({id:"SearchFiltersMvp1.SpecialismTitle"})})]}),(0,h.jsxs)("li",{className:"toggable-group__item","data-rs-toggable-group-item":!0,"data-rs-toggable-target":"#mobile-location",children:[(0,h.jsx)("span",{className:"badge bg-brand--blue badge--s ".concat(J.location?"":"hidden"),children:J.location}),(0,h.jsx)("span",{className:"icon",children:(0,h.jsx)(f.A,{type:"marker"})}),(0,h.jsx)("span",{className:"label",children:a.formatMessage({id:"SearchFiltersMvp1.LocationTitle"})})]}),(0,h.jsxs)("li",{className:"toggable-group__item","data-rs-toggable-group-item":!0,"data-rs-toggable-target":"#mobile-job-type",children:[(0,h.jsx)("span",{className:"badge bg-brand--blue badge--s ".concat(J.jobType?"":"hidden"),children:J.jobType}),(0,h.jsx)("span",{className:"icon",children:(0,h.jsx)(f.A,{type:"career"})}),(0,h.jsx)("span",{className:"label",children:a.formatMessage({id:"SearchFiltersMvp1.JobTypTitle"})})]})]})}),(0,h.jsxs)("div",{className:"tab-content tab-content--animate",id:"mobile-specialism",children:[(0,h.jsx)("div",{className:"form-group",children:(0,h.jsx)(i.A,{aggregations:O.aggregations.global,specialism
1:v.specialism,searchParams:N})}),v.specialism?(0,h.jsx)("div",{className:"form-group",children:(0,h.jsx)(p,{aggregations:O.aggregations.global,subSpecialism:v.subSpecialism,searchParams:N})}):null,v.specialism?(0,h.jsx)("div",{className:"form-group",children:(0,h.jsx)(b.A,{aggregations:O.aggregations.global,jobCategory:v.jobCategory,searchParams:N})}):null]}),(0,h.jsxs)("div",{className:"tab-content tab-content--animate",id:"mobile-location",hidden:!0,children:[(0,h.jsx)("div",{className:"form-group",children:(0,h.jsx)(k,{searchParams:N,id:"mobile-location-filter",remote:v.remote})}),(0,h.jsx)("div",{className:"form-group",children:(0,h.jsx)(M,{country:v.international,aggregations:O.aggregations.global,searchParams:N})})]}),(0,h.jsx)("div",{className:"tab-content tab-content--animate",id:"mobile-job-type",hidden:!0,children:(0,h.jsx)(o.A,{aggregations:O.aggregations.global,jobType:v.jobType,searchParams:N})})]}),(0,h.jsx)("div",{className:"modal__footer divider","data-rs-modal-footer":!0,children:(0,h.jsx)("div",{role:"presentation",className:"button button--m button--filled button--full-width show-jobs",onClick:z,children:a.formatMessage({id:"SearchFiltersMvp1.ShowJobs"},{total:O.hits?O.hits.total:n})})})]})})]})}),R=e=>{const a={specialism:0,location:0,jobType:0,salary:0,allFilters:0};if(Object.keys(e).length){const t=(0,s.A)({},e);let l=0;delete t.page,delete t.query,delete t.queryTitle;for(const e of Object.keys(t))Array.isArray(t[e])?l+=t[e].length:l+=1;a.allFilters=t.region&&t.city?l-1:l}return e.specialism&&(a.specialism+=1,e.subSpecialism&&(a.specialism+=1),e.jobCategory&&(a.specialism+=1)),(e.region||e.city||e.postcode)&&(a.location+=1),e.distance&&(a.location+=1),e.remote&&(a.location+=1),e.jobType&&(a.jobType=e.jobType.length),(e.yearSalary||e.daySalary||e.hourSalary)&&(a.salary+=1),a},D=()=>{const e=document.getElementsByClassName("modal__overlay--active"),a=document.getElementsByClassName("popover--active"),t=document.getElementsByClassName("trigger--active"),s=document.getElementsByClassName("input-highlight-wrapper--active");e.length&&e[0].classList.remove("modal__overlay--active"),a.length&&a[0].classList.remove("popover--active"),t.length&&t[0].classList.remove("trigger--active"),s.length&&(s[0].removeAttribute("style"),s[0].classList.remove("input-highlight-wrapper--active"))}},47736(e,a,t){t.d(a,{A:()=>I});var s=t(84919),l=t(88094),r=t(51784),n=t(15535),o=t(94202),i=t(44303),c=t(3339),d=t.n(c),u=t(6083),m=t(77094),g=t(76923),h=t(66830),p=t(51962),b=(t(93197),t(98488)),v=t(61564),x=t(63094),j=t(66684),f=t(79838),y=t(1765),A=t(64136),_=t(15678);const N=t(50251),S=t(8311),C=t(57568);const k=(0,r.Ay)(function(e){let a=e.intl,t=e.searchParams,r=e.total,n=e.hasLocationSearch,c=void 0===n||n,k=e.showJobAlerts;const w=(0,l.useContext)(x.BR),F=w.setStartingPage,T=w.setFiltersState,L=w.additionalData,P=(0,o.W5)(),E=(0,o.W6)(),R=a.locale,D=(0,j.A)(t,!1,R,{});let B="",O=!1;if(t&&t.query){let e=decodeURIComponent(t.query);e=(0,h.A)(e),B=""===B?e:B}else if(t&&t.queryTitle){const e=decodeURIComponent(t.queryTitle);(0,h.A)(e),B=""===B?(0,h.A)(t.queryTitle):B,O=!0}let q=L.locationAutocompleteOptions||[];const I=(0,l.useState)(q),J=(0,i.A)(I,2),W=J[0],H=J[1],U=(0,l.useState)({locationSearch:D,locationSearchText:""}),K=(0,i.A)(U,2),z=K[0],$=K[1],G=d().CancelToken,Q=(0,l.useState)({}),V=(0,i.A)(Q,2),X=V[0],Y=V[1],Z=(0,l.useState)({searchField:B,titleOnly:O,distance:t.distance?t.distance:null,total:r,disabled:!1,enterPressed:0,remote:t.remote?t.remote:null}),ee=(0,i.A)(Z,2),ae=ee[0],te=ee[1];let se="search";P&&P.params&&P.params.clientName&&(se="client-search");const le=(0,l.useRef)(!0);(0,l.useEffect)(()=>{le.current?le.current=!1:(te({searchField:B,titleOnly:O,distance:t.distance?t.distance:null,total:r,disabled:!1,enterPressed:0,remote:t.remote?t.remote:null}),$({locationSearch:D}))},[t]),(0,l.useEffect)(()=>{const e=setTimeout(()=>{(0,A.A)()},250);return()=>clearTimeout(e)},[t,r]);const re=function(e,t){let l=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r={};if(r.remote=l?S[R].remoteWork:null,e){let a=e.replace(new RegExp("\\/|%","g"),"");a=C(a),a=(0,y.A)(a),a=(0,g.A)(a),a=encodeURIComponent(a),r.query=a}r=(0,s.A)((0,s.A)({},r),(0,f.A)(t,R)),"undefined"!==typeof X.cancel&&X.cancel("canceled ".concat(JSON.stringify(r)));const n=G.source();Y(n),d().post("/api/search/search-results",{data:{currentRoute:(0,s.A)((0,s.A)({},P),{routeName:se}),currentLanguage:a.locale,searchParams:r}}
1,{cancelToken:n.token}).then(e=>{e.data&&te(a=>(0,s.A)((0,s.A)({},a),{},{total:e.data.searchResults.hits.total,disabled:!1}))}).catch(()=>{})},ne=e=>{e.persist(),$({[e.target.name]:e.target.value}),re(ae.searchField,e.target.value,ae.remote),(e=>{const t={searchText:e.target.value,currentLanguage:a.locale};d().post("/api/search/get-callback",{callback:"@Callbacks/getLocationAutocomplete",currentRoute:(0,s.A)((0,s.A)({},P),{routeName:se}),data:t}).then(a=>{if(H(a.data),"undefined"!==typeof document&&e.isTrusted){const a=new CustomEvent("input",{bubbles:!0});e.target.dispatchEvent(a),document.dispatchEvent(a)}})})(e),te(e=>(0,s.A)((0,s.A)({},e),{},{disabled:!0}))},oe=()=>{$({locationSearch:""}),te(e=>(0,s.A)((0,s.A)({},e),{},{disabled:!0})),re(ae.searchField,"",ae.remote)},ie=()=>{te(e=>(0,s.A)((0,s.A)({},e),{},{searchField:"",disabled:!0})),re("",z.locationSearch,ae.remote)},ce=e=>{const a=e.target.name;let t=e.target.value;"titleOnly"===a&&(t=e.target.checked),te(e=>(0,s.A)((0,s.A)({},e),{},{[a]:t,disabled:!0})),re(t.replace(new RegExp('\\/|\u201e|"|\\|',"g"),"-"),z.locationSearch,ae.remote)},de=e=>{e.preventDefault();let a={},t=ae.searchField.replace(new RegExp('\\/|\u201e|"|\\|',"g"),"-");t=t.replace(new RegExp("\\/|%","g"),""),t=(0,y.A)(t),t=(0,g.A)(t),t=encodeURIComponent(t),ae.titleOnly&&ae.searchField?(a.queryTitle=t.toLowerCase(),a.query=null):ae.searchField&&(a.query=t.toLowerCase(),a.queryTitle=null),a.remote=ae.remote?S[R].remoteWork:null,a=(0,s.A)((0,s.A)({},a),(0,f.A)(z.locationSearch,R));let l=P.path.replace(":searchParams*","");P&&P.params&&P.params.clientName&&(l=l.replace(":clientName",P.params.clientName));const r=N(a);(ae.searchField||a.city||a.region||a.postcode)&&(0,b.TO)(ae.searchField,a,ae),F(1),T(a),E.push("".concat(l).concat(r)),M()},ue=e=>{13===e.keyCode&&de(e)},me=e=>{13===e.keyCode&&(0===ae.enterPressed?te(e=>(0,s.A)((0,s.A)({},e),{},{enterPressed:e.enterPressed+1})):(de(e),te(e=>(0,s.A)((0,s.A)({},e),{},{enterPressed:0}))))};return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{className:"form-group search-form__input",children:(0,_.jsxs)("div",{className:"form-group__input form-group__input--button clearable-input","data-rs-clearable":!0,children:[(0,_.jsx)(m.A,{name:"searchField",id:"searchField",value:ae.searchField,onChange:ce,placeholder:a.formatMessage({id:"SearchFormMvp1.SearchFieldPlaceholder"}),"data-rs-input-highlight":!0,onKeyDown:ue}),(0,_.jsxs)(p.A,{className:"button--icon-only","data-rs-clearable-button":!0,"aria-hidden":!1,tabIndex:"-1",onClick:ie,"aria-label":a.formatMessage({id:"Close"}),children:[(0,_.jsx)("span",{children:a.formatMessage({id:"SearchFormMvp1.SearchFieldClearText"})}),(0,_.jsx)("span",{role:"presentation",className:"icon fill-brand--blue",onClick:ie,children:(0,_.jsx)("svg",{children:(0,_.jsx)("use",{xlinkHref:"/themes/custom/bluex/dist/assets/image/icons.svg#close"})})})]})]})}),c?(0,_.jsxs)("div",{className:"form-group search-form__input hidden--until-l",children:[(0,_.jsxs)("div",{className:"form-group__input form-group__location form-group__input--button clearable-input","data-rs-clearable":!0,"data-rs-auto-suggest":!0,children:[(0,_.jsx)(u.A,{id:"geoSearch",name:"locationSearch","data-rs-auto-suggest-input"
1:!0,"data-rs-auto-suggest-no-result-message":a.formatMessage({id:"Autosuggest.Noresults.Message"}),value:z.locationSearch,onChange:ne,placeholder:a.formatMessage({id:"SearchFormMvp1.SearchLocationPlaceholder"}),autoComplete:"off","data-rs-input-highlight":!0,onKeyDown:me}),(0,_.jsxs)("button",{type:"button",className:"button--icon-only","data-rs-clearable-button":!0,"aria-hidden":!1,tabIndex:"-1",onClick:oe,"aria-label":a.formatMessage({id:"Close"}),children:[(0,_.jsx)("span",{children:a.formatMessage({id:"SearchFormMvp1.SearchLocationClearText"})}),(0,_.jsx)("span",{role:"presentation",className:"icon fill-brand--blue",onClick:oe,children:(0,_.jsx)("svg",{children:(0,_.jsx)("use",{xlinkHref:"/themes/custom/bluex/dist/assets/image/icons.svg#close"})})})]}),(0,_.jsx)("ul",{className:"select-menu__list",id:"geo-search-as","data-rs-auto-suggest-list":"","data-rs-auto-suggest-values":W.length?W.slice(0,25).join(";"):"","data-rs-auto-suggest-separator":";","data-rs-use-exact-values":!0})]}),null]}):null,(0,_.jsx)("div",{className:"form-group hidden--until-l",children:(0,_.jsx)(v.A,{classes:"button--filled button--m",onClick:de,loading:ae.disabled,children:a.formatMessage({id:1===ae.total?"SearchFormMvp1.SearchButtonTextSingle":"SearchFormMvp1.SearchButtonText"},{jobsCount:ae.total})})}),k?(0,_.jsxs)("div",{className:"get-job-alerts",children:[(0,_.jsxs)("div",{className:"get-job-alerts__text-default",children:[(0,_.jsx)("span",{className:"icon icon--inline",children:(0,_.jsx)("svg",{children:(0,_.jsx)("use",{xlinkHref:"/themes/custom/bluex/dist/assets/image/icons.svg#bell"})})}),(0,_.jsx)("span",{children:(0,_.jsx)("a",{role:"button",tabIndex:"0","aria-label":a.formatMessage({id:"JobAlerts.Create.AriaLabel"}),"data-rs-modal-trigger":"get-job-alerts",onClick:e=>e.preventDefault(),style:{cursor:"pointer",textDecoration:"underline"},children:a.formatMessage({id:"SearchFormMvp1.JobAlertsText"})})})]}),(0,_.jsxs)("div",{className:"get-job-alerts__text-success hidden",children:[(0,_.jsx)("span",{className:"icon icon--inline",children:(0,_.jsx)("svg",{children:(0,_.jsx)("use",{xlinkHref:"/themes/custom/bluex/dist/assets/image/icons.svg#check"})})}),(0,_.jsx)("span",{children:a.formatMessage({id:"SearchFormMvp1.JobAlertsSuccessText"})})]})]}):null]})}),M=()=>{const e=document.getElementsByClassName("modal__overlay--active"),a=document.getElementsByClassName("popover--active"),t=document.getElementsByClassName("trigger--active"),s=document.getElementsByClassName("input-highlight-wrapper--active");e.length&&e[0].classList.remove("modal__overlay--active"),a.length&&a[0].classList.remove("popover--active"),t.length&&t[0].classList.remove("trigger--active"),s.length&&(s[0].removeAttribute("style"),s[0].classList.remove("input-highlight-wrapper--active"))};var w=t(85094),F=t(35308);t(28779);const T=t(50251),L=t(8311);const P=(0,r.Ay)(function(e){let a=e.intl,t=e.searchParams,r=e.total,n=e.hasLocationSearch,c=e.showJobAlerts;const y=(0,l.useContext)(x.BR),N=y.setStartingPage,S=y.setFiltersState,C=y.additionalData,k=(0,o.W5)(),M=(0,o.W6)(),P=a.locale,R=C.multilingualCityUrlMapping||[],D=(0,j.A)(t,!1,P,{});let B="",O=!1;if(t&&t.query){let e=decodeURIComponent(t.query);e=(0,h.A)(e),B=""===B?e:B}else if(t&&t.queryTitle){const e=decodeURIComponent(t.queryTitle);(0,h.A)(e),B=""===B?(0,h.A)(t.queryTitle):B,O=!0}let q=C.locationAutocompleteOptions||[];const I=(0,l.useState)(q||[]),J=(0,i.A)(I,2),W=J[0],H=J[1],U=t.distance?t.distance:"10",K=(0,l.useState)({locationSearch:D,distance:U}),z=(0,i.A)(K,2),$=z[0],G=z[1],Q=d().CancelToken,V=(0,l.useState)({}),X=(0,i.A)(V,2),Y=X[0],Z=X[1],ee=(0,l.useState)({}),ae=(0,i.A)(ee,2),te=ae[0],se=ae[1],le=(0,l.useState)({searchField:B,titleOnly:O,distance:t.distance?t.distance:null,total:r,disabled:!1,enterPressed:0,remote:t.remote?t.remote:null}),re=(0,i.A)(le,2),ne=re[0],oe=re[1];let ie=k.path.replace(":searchParams*",""),ce="search";k&&k.params&&k.params.clientName&&(ce="client-search",ie=ie.replace(":clientName",k.params.clientName));const de=(0,l.useRef)(!0),ue=["au","nz","hk","sg","my"];(0,l.useEffect)(()=>{de.current?de.current=!1:(oe({searchField:B,titleOnly:O,distance:t.distance?t.distance:null,total:r,disabled:!1,enterPressed:0,remote:t.remote?t.remote:null}),G({locationSearch:D,distance:t.distance}))},[t]),(0,l.useEffect)(()=>{const e=setTimeout(()=>{(0,A.A)()},250);return()=>clearTimeout(e)},[t,r]);const me=function(e,a,t){var l;let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],n={};if(n.remote_jobs=r,e){let a=e;a=encodeURIComponent(a),n.query=a.toLowerCase()}n=(0,s.A)((0,s.A)((0,s.A)({},n),(0,f.A)(a,P,t,R)),{},{currentLanguage:P});for(const s of Object.keys(n))null===n[s]&&delete n[s];const o=new URLSearchParams(n);"undefined"!==typeof Y.cancel&&Y.cancel("canceled ".concat(JSON.stringify(n)));const i=Q.source();Z(i),d().get("/api/search/get-search-results?".concat(o).concat(null!==(l=n)&&void 0!==l&&l.query?"&text=".concat(n.query):""),{cancelToken:i.token}).then(e=>{e.data&&oe(a=>(0,s.A)((0,s.A)({},a),{},{total:e.data.total,disabled:!1}))}).catch(()=>{})},ge=e=>{e.persist(),G({[e.target.name]:e.target.value,distance:$.distance}),me(ne.searchField,e.target.value,$.distance,ne.remote),(e=>{const t={searchText:e.target.value,currentLanguage:a.locale};"undefined"!==typeof te.cancel&&te.cancel("canceled ".concat(JSON.stringify(t)));const s=Q.source();se(s),d().get("/api/search/get-callback?callback=".concat("@Callbacks/getLocationAutocomplete","¤tRoute=").concat(ce,"&data=").concat(JSON.stringify(t)),{cancelToken:s.token}).then(a=>{if(H(a.data),"undefined"!==typeof document&&e.isTrusted){const a=new CustomEvent("input",{bubbles:!0});e.target.dispatchEvent(a),document.dispatchEvent(a)}})})(e),oe(e=>(0,s.A)((0,s.A)({},e),{},{disabled:!0}))},he=()=>{G({locationSearch:"",distance:$.distance}),me(ne.searchField,"",$.distance,ne.remote)},pe=()=>{oe(e=>(0,s.A)((0,s.A)({},e),{},{searchField:"",disabled:!0})),me("",$.locationSearch,$.distance,ne.remote)},be=e=>{const a=e.target.name;let t=e.target.value;"titleOnly"===a&&(t=e.target.checked),oe(e=>(0,s.A)((0,s.A)({},e),{},{[a]:t,disabled:!0})),me(t.replace(new RegExp('\\/|\u201e|"|\\|',"g"),"-"),$.locationSearch,$.distance,ne.remote)},ve=e=>{e.persist(),(0,b.cy)("".concat(e.target.name,":").concat(e.target.value));let a=e.target.value;"_none"===a&&(a=null),G(t=>(0,s.A)((0,s.A)({},t),{},{[e.target.name]:a})),S(t=>(0,s.A)((0,s.A)({},t),{},{[e.target.name]:a})),me(ne.searchField,$.locationSearch,a,ne.remote)},xe=e=>{e.preventDefault();let a={},l=ne.searchField.replace(new RegExp('\\/|\u201e|"|\\|',"g"),"-");l=l.replace(new RegExp("\\/|%","g"),""),l=(0,g.A)(l),l=encodeURIComponent(l),ne.titleOnly&&ne.searchField?(a.queryTitle=l.toLowerCase(),a.query=null):ne.searchField&&(a.query=l.toLowerCase(),a.queryTitle=null),a.remote=ne.remote?L[P].remoteWork:null;const r=$.locationSearch&&$.distance?$.distance:null;n&&(a=(0,s.A)((0,s.A)({},a),(0,f.A)($.locationSearch,P,r,R))),a.distance&&"10"===a.distance&&delete a.distance;let o=k.path.replace(":searchParams*","");k&&k.params&&k.params.clientName&&(o=o.replace(":clientName",k.params.clientName));const i=T(a);(ne.searchField||a.city||a.region||a.postcode)&&(0,b.TO)(ne.searchField,a,ne);const c=(0,s.A)((0,s.A)({},t),{},{query:a.query,region:a.region,city:a.city,distance:a.distance,postcode:a.postcode,remote:a.remote});T(t)!==T(c)?(N(1),S(a),M.push("".concat(o).concat(i))):M.push("".concat(o).concat(T(t))),E()},je=e=>{13===e.keyCode&&xe(e)},fe=e=>{13===e.keyCode&&(0===ne.enterPressed?oe(e=>(0,s.A)((0,s.A)({},e),{},{enterPressed:e.enterPressed+1})):(xe(e),oe(e=>(0,s.A)((0,s.A)({},e),{},{enterPressed:0}))))},ye=()=>{const e=Boolean(null===t||void 0===t?void 0:t.query);return(0,_.jsxs)("div",{className:"get-job-alerts ".concat(n?"get-job-alerts-distance-search mt-s":""),style:{visibility:e?"visible":"hidden"},children:[(0,_.jsxs)("div",{className:"get-job-alerts__text-default",children:[(0,_.jsx)("span",{className:"icon icon--inline",children:(0,_.jsx)("svg",{children:(0,_.jsx)("use",{xlinkHref:"/themes/custom/bluex/dist/assets/image/icons.svg#bell"})})}),(0,_.jsx)("span",{children:(0,_.jsx)("a",{role:"button",tabIndex:"0","data-rs-modal-trigger":"get-job-alerts",onClick:e=>e.preventDefault(),style:{cursor:"pointer",textDecoration:"underline"},children:a.formatMessage({id:"SearchFormMvp1.JobAlertsText"})})})]}),(0,_.jsxs)("div",{className:"get-job-alerts__text-success hidden",children:[(0,_.jsx)("span",{className:"icon icon--inline",children:(0,_.jsx)("svg",{children:(0,_.jsx)("use",{xlinkHref:"/themes/custom/bluex/dist/assets/image/icons.svg#check"})})}),(0,_.jsx)("span",{children:a.formatMessage({id:"SearchFormMvp1.JobAlertsSuccessText"})})]})]})};return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{className:"form-group search-form__input",children:(0,_.jsxs)("div",{className:"form-group__input form-group__input--button clearable-input","data-rs-clearable":!0,children:[(0,_.jsx)(m.A,{name:"searchField",id:"searchField",value:ne.searchField,onChange:be,placeholder:a.formatMessage({id:"SearchFormMvp1.SearchFieldPlaceholder"}),"data-rs-input-highlight":!0,onKeyDown:je}),(0,_.jsxs)(p.A,{className:"button--icon-only","data-rs-clearable-button":!0,"aria-hidden":!1,tabIndex:"-1",onClick:pe,"aria-label":a.formatMessage({id:"Close"}),children:[(0,_.jsx)("span",{children:a.formatMessage({id:"SearchFormMvp1.SearchFieldClearText"})}),(0,_.jsx)("span",{className:"icon fill-brand--blue",children:(0,_.jsx)("svg",{children:(0,_.jsx)("use",{xlinkHref:"/themes/custom/bluex/dist/assets/image/icons.svg#close"})})})]})]})}),n?(0,_.jsxs)("div",{className:"form-group search-form__input hidden--until-l",children:[(0,_.jsxs)("div",{className:"form-group__input form-group__location form-group__input--button clearable-input","data-rs-clearable":!0,"data-rs-auto-suggest":!0,children:[(0,_.jsx)(u.A,{id:"geoSearch",name:"locationSearch","data-rs-auto-suggest-input"
1:!0,"data-rs-auto-suggest-no-result-message":a.formatMessage({id:"Autosuggest.Noresults.Message"}),value:$.locationSearch,onChange:ge,placeholder:a.formatMessage({id:"SearchFormMvp1.SearchLocationPlaceholder"}),autoComplete:"off","data-rs-input-highlight":!0,onKeyDown:fe}),(0,_.jsxs)("button",{type:"button",className:"button--icon-only","data-rs-clearable-button":!0,"aria-hidden":!1,tabIndex:"-1",onClick:he,"aria-label":a.formatMessage({id:"Close"}),children:[(0,_.jsx)("span",{children:a.formatMessage({id:"SearchFormMvp1.SearchLocationClearText"})}),(0,_.jsx)("span",{className:"icon fill-brand--blue",children:(0,_.jsx)("svg",{children:(0,_.jsx)("use",{xlinkHref:"/themes/custom/bluex/dist/assets/image/icons.svg#close"})})})]}),(0,_.jsx)("ul",{className:"select-menu__list",id:"geo-search-as","data-rs-auto-suggest-list":"","data-rs-auto-suggest-values":W.length?W.slice(0,25).join(";"):"","data-rs-auto-suggest-separator":";","data-rs-use-exact-values":!0})]}),null]}):null,n?(0,_.jsx)("div",{className:"form-group search-form__input hidden--until-l",style:{flexBasis:"175px"},children:(0,_.jsxs)("div",{className:"form-group__input",children:[(0,_.jsx)("select",{className:$.distance?"":"untouched",name:"distance",id:"distance",onChange:ve,value:$.distance?$.distance:"10","data-rs-untouched":!0,"aria-label":a.formatMessage({id:"SearchFormMvp1.SearchDistanceLabel"}),"data-rs-input-highlight":!0,children:(0,F.A)()}),(0,_.jsx)("span",{className:"select-arrow icon",children:(0,_.jsx)(w.A,{type:"chevron-down"})})]})}):null,(0,_.jsxs)("div",{className:"form-group hidden--until-l",children:[(0,_.jsx)(v.A,{classes:"button--filled button--m",loading:ne.disabled,onClick:xe,children:(0,_.jsx)("span",{children:a.formatMessage({id:1===ne.total?"SearchFormMvp1.SearchButtonTextSingle":"SearchFormMvp1.SearchButtonText"},{jobsCount:ne.total})})}),ue.includes("pt")&&c&&n&&T(t)?ye():null,!ue.includes("pt")&&c&&n?ye():null]}),c&&n?(0,_.jsx)("div",{className:"hidden--from-l",children:ye()}):c&&!ue.includes("pt")||c&&ue.includes("pt")&&T(t)?ye():null]})}),E=()=>{const e=document.getElementsByClassName("modal__overlay--active"),a=document.getElementsByClassName("popover--active"),t=document.getElementsByClassName("trigger--active"),s=document.getElementsByClassName("input-highlight-wrapper--active");e.length&&e[0].classList.remove("modal__overlay--active"),a.length&&a[0].classList.remove("popover--active"),t.length&&t[0].classList.remove("trigger--active"),s.length&&(s[0].removeAttribute("style"),s[0].classList.remove("input-highlight-wrapper--active"))};var R=t(52506),D=t(50251),B=t.n(D),O=t(60867),q=t(48504);const I=(0,r.Ay)(function(e){let a=e.intl,t=e.seoOverride,l=e.seoData,r=e.searchParams,i=e.aggregations,c=e.showJobAlerts,d=e.total,u=e.cityMapping;const m=!0,g=["us"].includes("pt"),h=(0,o.W5)(),p=(0,s.A)({},r);let b=h.path.replace(":searchParams*",B()(p));h&&h.params&&h.params.clientName&&(b=b.replace(":clientName",h.params.clientName));const v="".concat("https://www.randstad.pt").concat(b),x="".concat("https://www.randstad.pt").concat("/search-app/assets/image/randstad-opengraph-partner-for-talent.jpg"),j=(0,q.A)(t,l,r,h,d),f={intl:a,seoOverride:t,searchParams:r,sitename:"Randstad",total:d,aggregations:i,seoData:l,isInternalSearch:!1},y=(0,R.A)(f),A=y.metaTitle,N=void 0===A?"":A,S=y.metaDescription,C=N.replace("[total_jobs]",d);return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)(n.m,{children:[(0,_.jsx)("title",{children:C}),(0,_.jsx)("meta",{name:"title",content:C}),(0,_.jsx)("meta",{name:"og:title",content:C}),(0,_.jsx)("meta",{name:"twitter:title",content:C}),(0,_.jsx)("meta",{name:"description",content:S}),(0,_.jsx)("meta",{name:"og:description",content:S}),(0,_.jsx)("meta",{name:"twitter:description",content:S}),j?(0,_.jsx)("meta",{name:"robots",content:"noindex"}):(0,_.jsx)("meta",{name:"robots",content:"index"}),(0,_.jsx)("link",{rel:"canonical",href:v}),(0,_.jsx)("meta",{name:"og:url",content:v}),(0,_.jsx)("meta",{name:"twitter:url",content:v}),(0,_.jsx)("meta",{name:"og:image",content:x}),(0,_.jsx)("meta",{name:"twitter:image",content:x})]}),(0,_.jsxs)("div",{className:"header header--search-alternative mvp-header--search-alternative header--text ".concat("bg-variant-brand-secondary"),children:[(0,_.jsx)(O.A,{searchParams:r,aggregations:i,isInternal:!1}),(0,_.jsx)("div",{className:"wrapper",children:(0,_.jsx)("div",{className:"header__content header__content--full-width content-block","data-rs-input-highlight-wrapper":!0,children:(0,_.jsx)("form",{name:"search-form","aria-label":"search-form",className:"search-form form-groups ".concat(""," form-groups--row items-start"),children:g?(0,_.jsx)(k,{searchParams:r,total:d,hasLocationSearch:m,showJobAlerts:c}):(0,_.jsx)(P,{searchParams:r,total:d,cityMapping:u,hasLocationSearch:m,showJobAlerts:c})})})})]})]})})},47221(e,a,t){var s=t(88094),l=t(63094),r=t(15678);const n=function(){const e=(0,s.useContext)(l.BR).seoData.bottom_region||"";return Object.keys(e).length?(0,r.jsx)("div",{id:"bottom-region",dangerouslySetInnerHTML:{__html:e}}):null};t.d(a,["A",0,n])},66833(e,a,t){var s=t(88094),l=t(63094),r=t(15678);const n=function(){const e=(0,s.useContext)(l.BR).seoData.top_region||"";return Object.keys(e).length?(0,r.jsx)("div",{id:"top-region",dangerouslySetInnerHTML:{__html:e}}):null};t.d(a,["A",0,n])},55221(e,a,t){t.d(a,{A:()=>p});var s=t(44303),l=t(88094),r=t(51784),n=t(82839),o=t(84479),i=t(85094),c=t(15678);const d=(0,r.Ay)(function(e){let a=e.intl,t=e.specialism;const s=()=>{(0,o.A)("#root .header")},l=[];
1if(t.subSpecialism&&t.subSpecialism.length)for(const r of Object.keys(t.subSpecialism)){const e=t.subSpecialism[r];l.push((0,c.jsx)("li",{children:(0,c.jsx)(n.N_,{onClick:s,to:e.url,children:e.label})},r))}else if(t.jobCategories&&t.jobCategories.length)for(const r of Object.keys(t.jobCategories)){const e=t.jobCategories[r];l.push((0,c.jsx)("li",{children:(0,c.jsx)(n.N_,{onClick:s,to:e.url,children:e.label})},r))}return l.push((0,c.jsx)("li",{children:(0,c.jsx)(n.N_,{onClick:s,to:t.othersLink,children:a.formatMessage({id:"SeoLinkListItem.Other"},{count:t.total})})},"other")),(0,c.jsxs)("li",{className:"extensive-link-list__item divider",children:[(0,c.jsx)("div",{className:"collapsible__trigger","data-rs-collapsible":!0,role:"button","aria-expanded":!1,"data-rs-toggable":!0,children:(0,c.jsxs)("span",{className:"extensive-link-list__list-title",children:[t.label,(0,c.jsx)(i.A,{className:"hidden--from-l toggle-arrow icon",type:"chevron-down"})]})}),(0,c.jsx)("div",{className:"collapsible__content","data-rs-collapsible-content":!0,"aria-hidden":!0,children:(0,c.jsx)("ul",{children:l})})]})});var u=t(3339),m=t.n(u),g=t(74266),h=t(64136);const p=(0,r.Ay)(function(e){let a=e.intl,t=e.seoLinkList;const r=(0,l.useState)(t||{}),n=(0,s.A)(r,2),o=n[0],i=n[1],u=(0,l.useRef)("undefined"!==typeof t);if((0,l.useEffect)(()=>{u.current?u.current=!1:m().get("/api/search/specialism-links?currentLanguage=".concat(a.locale)).then(e=>{const a=e.data;i(a),(0,h.A)()}).catch(()=>{})},[]),!Object.keys(o).length)return(0,c.jsx)(g.B8,{});const p=[];if(o.items)for(const s of Object.keys(o.items)){const e=o.items[s];p.push((0,c.jsx)(d,{specialism:e},s))}return(0,c.jsx)("div",{className:"block bg-variant-brand-tertiary",children:(0,c.jsxs)("div",{className:"block__wrapper block__wrapper--stacked",children:[(0,c.jsx)("div",{className:"block__header block__header--l wrapper",children:(0,c.jsx)("h2",{className:"block__title",children:a.formatMessage({id:"SeoLinkList.Title"},{total:o.total})})}),(0,c.jsx)("div",{className:"block__content wrapper",children:(0,c.jsx)("ul",{className:"extensive-link-list",children:p})})]})})})},35308(e,a,t){t(88094);var s=t(51784),l=t(15678);const r=(0,s.Ay)(function(e){let a=e.intl;const t="5,10,25,50".split(","),s=[];return t.length>0&&t.forEach((e,t)=>{s.push((0,l.jsx)("option",{value:e,children:a.formatMessage({id:"LocationFilterMvp1.SearchDistance".concat(e)})},t))}),s});t.d(a,["A",0,r])},28779(e,a,t){t(88094);var s=t(51784),l=t(15678);(0,s.Ay)(function(e){let a=e.intl;const t="5,10,25,50".split(","),s=[];return t.length>0&&t.forEach((e,t)=>{s.push((0,l.jsx)("option",{value:e,children:a.formatMessage({id:"LocationFilterMvp1.SearchDistanceAB".concat(e)})},t))}),s})}}]);
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.