PageSourceSearch

https://www.randstad.pl/search-app/static/js/Pages-InternalSearchMvp1.70dc17d6.chunk.js

js randstad.pl collected 2026-10-03 20:28:04 UTC 26,480 bytes, 1 lines download raw bytes

1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[621],{24384(e,a,s){s(88094);var t=s(74266),r=s(15678);const l=function(e){let a=e.activeView;return(0,r.jsx)("div",{className:"block block--xs bg-variant-brand-tertiary",children:(0,r.jsx)("div",{className:"block__wrapper block__wrapper--stacked wrapper",children:(0,r.jsx)("div",{className:"block__content block__content--full-on-s block__content--full-on-m",children:(0,r.jsx)("div",{className:"cards",children:(0,r.jsx)("ul",{className:"cards__list ".concat("list"===a?"cards__list--format-list":"cards__list--format-grid"),children:[...Array(9)].map((e,s)=>(0,r.jsx)("li",{className:"cards__item cards__item--disabled",style:{height:"290px"},children:(0,r.jsx)(t.B8,{viewBox:"0 0 ".concat("list"===a?"600":"250"," 110"),className:"cards-loader"})},s))})})})})})};s.d(a,["A",0,l])},32774(e,a,s){s.r(a),s.d(a,{default:()=>te});var t=s(84919),r=s(44303),l=s(88094),i=s(51784),o=s(57186),n=s(15535),c=s(64136),d=s(3339),m=s.n(d),h=s(94202),g=(s(6083),s(77094)),p=s(76923),u=s(66830),b=s(51962),j=s(85094),x=s(63094),v=s(79838),f=s(66684),_=s(36369),y=s(66934),A=s(15678);const N=s(50251),S=s(57568);const w=(0,i.Ay)(function(e){let a=e.intl,s=e.searchParams,i=e.total,o=e.showJobAlerts;const n=(0,l.useContext)(x.BR),c=n.setStartingPage,d=n.setFiltersState,w=n.additionalData,T=(0,h.W5)(),P=(0,h.W6)(),C=(0,l.useState)(w.locationAutocompleteOptions||[]),M=(0,r.A)(C,2),F=(M[0],M[1],(0,f.A)(s)),D=(0,l.useState)({locationSearch:F}),L=(0,r.A)(D,2),R=L[0],E=L[1];let O="",B=!1;s&&s.query?O=""===O?(0,u.A)(s.query):O:s&&s.queryTitle&&(O=""===O?(0,u.A)(s.queryTitle):O,B=!0);const q=m().CancelToken,J=(0,l.useState)({}),H=(0,r.A)(J,2),I=H[0],V=H[1],W=(0,l.useRef)(!0),U=(0,l.useState)({searchField:O,titleOnly:B,distance:s.distance?s.distance:null,total:i,disabled:!1,enterPressed:0}),z=(0,r.A)(U,2),K=z[0],Y=z[1];(0,l.useEffect)(()=>{W.current?W.current=!1:(Y({searchField:O,titleOnly:B,distance:s.distance?s.distance:null,total:i,disabled:!1,enterPressed:0}),E({locationSearch:F}))},[s]);const $=function(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={};if(e){let a=e.replace(new RegExp("\\/|%","g"),"");a=S(a),a=(0,y.A)(a),a=(0,p.A)(a),a=encodeURIComponent(a),r.query=a}r=(0,t.A)((0,t.A)((0,t.A)({},r),(0,v.A)(s)),{},{internalOnly:!0}),"undefined"!==typeof I.cancel&&I.cancel("canceled ".concat(JSON.stringify(r)));const l=q.source();V(l),m().post("/api/search/search-results",{data:{currentRoute:(0,t.A)((0,t.A)({},T),{},{routeName:"internal-search"}),currentLanguage:a.locale,searchParams:r}}).then(e=>{e.data&&Y(a=>(0,t.A)((0,t.A)({},a),{},{total:e.data.searchResults.hits.total,disabled:!1}))}).catch(()=>{})},G=()=>{Y({searchField:"",disabled:!0}),$("")},Q=e=>{const a=e.target.name;let s=e.target.value;"titleOnly"===a&&(s=e.target.checked),Y(e=>(0,t.A)((0,t.A)({},e),{},{[a]:s,disabled:!0})),$(s.replace(new RegExp('\\/|\u201e|"|\\|',"g"),"-"),R.locationSearch)},X=e=>{e.preventDefault();let a={},s=K.searchField.replace(new RegExp('\\/|\u201e|"|\\|',"g"),"-");s=s.replace(new RegExp("\\/|%","g"),""),s=(0,y.A)(s),s=(0,p.A)(s),s=encodeURIComponent(s),K.titleOnly&&K.searchField?(a.queryTitle=s,a.query=null):K.searchField&&(a.query=s,a.queryTitle=null),a=(0,t.A)((0,t.A)({},a),(0,v.A)(R.locationSearch)),(K.searchField||a.city||a.region||a.postcode)&&(0,_.TO)(K.searchField,a,K);const r=T.path.replace(":searchParams*","");c(1),d(a);const l=N((0,t.A)({},a));P.push("".concat(r).concat(l)),k()},Z=e=>{13===e.keyCode&&X(e)};return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("div",{className:"form-group search-form__input",children:(0,A.jsxs)("div",{className:"form-group__input form-group__input--button clearable-input","data-rs-clearable":!0,children:[(0,A.jsx)(g.A,{name:"searchField",id:"searchField",defaultValue:K.searchField,onChange:Q,placeholder:a.formatMessage({id:"SearchFormMvp1.SearchFieldPlaceholder"}),"data-rs-input-highlight":!0,onKeyDown:Z}),(0,A.jsxs)(b.A,{className:"button--icon-only","data-rs-clearable-button":!0,"aria-hidden":!1,tabIndex:"-1","aria-label":a.formatMessage({id:"Close"}),children:[(0,A.jsx)("span",{children:a.formatMessage({id:"SearchFormMvp1.SearchFieldClearText"})}),(0,A.jsx)("span",{role:"presentation",className:"icon fill-brand--blue",onClick:G,children:(0,A.jsx)(j.A,{type:"close"})})]})]})}),null,(0,A.jsx)("div",{className:"form-group hidden--until-l",children:(0,A.jsxs)(b.A,{className:"button bluex-button--filled button--m",onClick:X,disabled:K.disabled,children:[(0,A.jsx)("span",{className:"button__text",children:a.formatMessage({id:1===K.total?"SearchFormMvp1.SearchButtonTextSingle":"SearchFormMvp1.SearchButtonText"},{jobsCount:K.total})}),(0,A.jsx)("span",{className:"preloader preloader--dots",children:(0,A.jsx)("span",{className:"dots"})})]})}),o?(0,A.jsxs)("div",{className:"get-job-alerts",children:[(0,A.jsxs)("div",{className:"get-job-alerts__text-default",children:[(0,A.jsx)("span",{className:"icon icon--inline",children:(0,A.jsx)("svg",{children:(0,A.jsx)("use",{xlinkHref:"/themes/custom/bluex/dist/assets/image/icons.svg#bell"})})}),(0,A.jsx)("span",{children:(0,A.jsx)("a",{href:"#?","aria-label":a.formatMessage({id:"JobAlerts.Create.AriaLabel"}),"data-rs-modal-trigger":"get-job-alerts",children:a.formatMessage({id:"SearchFormMvp1.JobAlertsText"})})})]}),(0,A.jsxs)("div",{className:"get-job-alerts__text-success hidden",children:[(0,A.jsx)("span",{className:"icon icon--inline",children:(0,A.jsx)("svg",{children:(0,A.jsx)("use",{xlinkHref:"/themes/custom/bluex/dist/assets/image/icons.svg#check"})})}),(0,A.jsx)("span",{children:a.formatMessage({id:"SearchFormMvp1.JobAlertsSuccessText"})})]})]}):null]})}),k=()=>{const e=document.getElementsByClassName("modal__overlay--active"),a=document.getElementsByClassName("popover--active"),s=document.getElementsByClassName("trigger--active");e.length&&e[0].classList.remove("modal__overlay--active"),a.length&&a[0].classList.remove("popover--active"),s.length&&s[0].classList.remove("trigger--active")};var T=s(50251),P=s.n(T),C=s(52506),M=s(60867),F=s(48504);const D=(0,i.Ay)(function(e){let a=e.intl,s=e.seoOverride,t=e.searchParams,r=e.aggregations,l=e.showJobAlerts,i=e.total;const o=(0,h.W5)(),c=o.path.replace(":searchParams*",P()(t)),d="".concat("https://www.randstad.pl").concat(c),m="".concat("https://www.randstad.pl").concat("/search-app/assets/image/randstad-opengraph-partner-for-talent.jpg"),g=(0,F.A)(s,null,t,o,i),p={intl:a,seoOverride:s,searchParams:t,sitename:"Randstad Poland",total:i,aggregations:r,seoData:null,isInternalSearch:!1},u=(0,C.A)(p),b=u.metaTitle,j=u.metaDescription;return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)(n.m,{children:[(0,A.jsx)("title",{children:b}),(0,A.jsx)("meta",{name:"title",content:b}),(0,A.jsx)("meta",{name:"og:title",content:b}),(0,A.jsx)("meta",{name:"twitter:title",content:b}),(0,A.jsx)("meta",{name:"description",content:j}),(0,A.jsx)("meta",{name:"og:description",content:j}),(0,A.jsx)("meta",{name:"twitter:description",content:j}),g?(0,A.jsx)("meta",{name:"robots",content:"noindex"}):(0,A.jsx)("meta",{name:"robots",content:"index"}),(0,A.jsx)("link",{rel:"canonical",href:d}),(0,A.jsx)("meta",{name:"og:url",content:d}),(0,A.jsx)("meta",{name:"twitter:url",content:d}),(0,A.jsx)("meta",{name:"og:image",content:m}),(0,A.jsx)("meta",{name:"twitter:image",content:m})]}),(0,A.jsxs)("div",{className:"header header--search-alternative mvp-header--search-alternative header--text ".concat("bg-variant-brand-secondary"),children:[(0,A.jsx)(M.A,{searchParams:t,aggregations:r,isInternal:!0}),(0,A.jsx)("div",{className:"wrapper",children:(0,A.jsx)("div",{className:"header__content header__content--full-width content-block","data-rs-input-highlight-wrapper":!0,children:(0,A.jsx)("form",{name:"search-form","aria-label":"search-form",className:"search-form form-groups form-groups--row",children:(0,A.jsx)(w,{searchParams:t,total:i,showJobAlerts:l,hasLocationSearch:!0})})})})]})]})});s(3086);var L=s(7149),R=s(14542),E=s(41815),O=s(70784),B=s(42528),q=s(16571),J=s(22911),H=s(76336),I=s(82839),V=s(9261),W=s(84479),U=s(87542);const z=(0,i.Ay)(function(e){let a=e.intl,s=e.aggregations,i=e.searchParams,o=e.total;const n=(0,l.useContext)(x.BR),c=n.filtersState,d=n.setFiltersState,g=n.setStartingPage,p=(0,h.W5)(),u=(0,h.W6)(),b=(0,l.useRef)(),v=(0,l.useState)({aggregations:{global:s}}),f=(0,r.A)(v,2),_=f[0],N=f[1],S=p.params.searchParams?(0,U.A)(p.params.searchParams,a.locale):{},w=K(S),k=(0,l.useRef)(!0);(0,l.useEffect)(()=>{k.current?k.current=!1:m().post("/api/search/search-results",{data:{currentRoute:(0,t.A)((0,t.A)({},p),{routeName:"internal-search"}),currentLanguage:a.locale,searchParams:c}}).then(e=>{N(e.data.searchResults)})},[c]),(0,l.useEffect)(()=>{d(e=>(0,t.A)((0,t.A)({},e),{}
1,{specialism:null,subSpecialism:null,jobCategory:null},S))},[]);const T=e=>{const a=p.path.replace(":searchParams*","");if(e&&e.jobType&&_&&_.aggregations&&_.aggregations.global&&_.aggregations.global.jobType){const a=_.aggregations.global.jobType.jobType.buckets,s=e.jobType;let t=[];s.forEach(e=>{a.forEach(a=>{(0,y.A)(a.key).toLowerCase()===e&&t.push(e)})}),t=t.filter((e,a)=>t.indexOf(e)===a),e.jobType=t}g(1);const s=P()((0,t.A)((0,t.A)({},e),{},{page:null}));u.push("".concat(a).concat(s))},C=e=>{switch(e.preventDefault(),e.target.name){case"specialism":d(e=>(0,t.A)((0,t.A)({},e),{},{specialism:null,subSpecialism:null,jobCategory:null})),i.specialism=null,i.subSpecialism=null,i.jobCategory=null,T(i);break;case"location":d(e=>(0,t.A)((0,t.A)({},e),{},{region:null,city:null,postcode:null,distance:null,remote:null})),i.region=null,i.city=null,i.postcode=null,i.distance=null,i.remote=null,T(i);break;case"job-type":d(e=>(0,t.A)((0,t.A)({},e),{},{jobType:null})),i.jobType=null,T(i);break;case"salary":d(e=>(0,t.A)((0,t.A)({},e),{},{yearSalary:null,daySalary:null,hourSalary:null})),i.yearSalary=null,i.daySalary=null,i.hourSalary=null,T(i);break;case"all":d({}),T({}),(0,W.A)("#root")}Y(),document.getElementsByClassName("modal--active").length&&b.current.click()},M=e=>{e.preventDefault(),T((0,t.A)({},c)),Y(),document.getElementsByClassName("modal--active").length&&b.current.click(),(0,W.A)(".sortbar")},F=e=>{e.preventDefault();P()(i)!==P()(c)?window.confirm(a.formatMessage({id:"SearchFiltersMvp1.CloseConfirmation"}))&&(b.current.click(),d(i)):b.current.click()};return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("div",{className:"bg-variant-brand-tertiary","data-rs-bluex-sticky":!0,"data-rs-bluex-sticky-bg":"off-white",children:(0,A.jsxs)("form",{name:"filter-search-form","aria-label":"filter-search-form",className:"wrapper filter-bar",children:[(0,A.jsxs)("div",{className:"filter-bar__toggle hidden--from-l",children:[(0,A.jsxs)("div",{className:"filter-bar__toggle__trigger","data-rs-modal-trigger":"mobile-filters",children:[(0,A.jsx)("span",{className:"icon icon--inline",children:(0,A.jsx)(j.A,{type:"filter"})}),(0,A.jsx)("span",{children:a.formatMessage({id:"SearchFiltersMvp1.FilterLabel"})}),(0,A.jsx)("span",{className:"badge bg-brand--blue badge--s ".concat(w.allFilters?"":"hidden"),children:w.allFilters})]}),(0,A.jsx)("div",{className:"form-group form-group--dropdown-alternative",children:(0,A.jsx)(V.A,{searchParams:i,setStartingPage:g})})]}),(0,A.jsxs)("ul",{className:"filter-bar__menu hidden--until-l",children:[(0,A.jsxs)("li",{className:"filter-bar__menu-item",children:[(0,A.jsxs)("button",{type:"button",className:"filter-bar__menu-item__trigger button--clean","data-rs-popover-trigger":"specialism",children:[a.formatMessage({id:"SearchFiltersMvp1.SpecialismTitle"}),(0,A.jsx)("span",{className:"icon icon--xs fill--dark-blue",children:(0,A.jsx)(j.A,{type:"chevron-down-8"})}),(0,A.jsx)("span",{className:"badge bg-brand--blue badge--s ".concat(w.specialism?"":"hidden"),children:w.specialism})]}),(0,A.jsxs)("div",{className:"filter-bar__popover-wrapper",children:[(0,A.jsx)("div",{className:"popover popover--arrow-left bg-variant-brand-tertiary hidden--until-l","data-rs-popover":"specialism","aria-hidden":"true",children:(0,A.jsxs)("div",{className:"popover__dialog",children:[(0,A.jsx)("div",{className:"popover__title",children:a.formatMessage({id:"SearchFiltersMvp1.SpecialismPopupTitle"})}),(0,A.jsxs)("div",{className:"form-group",children:[(0,A.jsx)(q.A,{aggregations:_.aggregations.global,specialism:c.specialism,searchParams:i}),c.specialism?(0,A.jsx)(J.A,{aggregations:_.aggregations.global,subSpecialism:c.subSpecialism,searchParams:i}):null,c.specialism?(0,A.jsx)(H.A,{aggregations:_.aggregations.global,jobCategory:c.jobCategory,searchParams:i}):null]}),(0,A.jsxs)("div",{className:"popover__action",children:[(0,A.jsx)("button",{type:"button",className:"button button--m button--filled show-jobs",onClick:M,"data-rs-popover-button-close":!0,children:a.formatMessage({id:"SearchFiltersMvp1.ShowJobs"},{total:_.hits?_.hits.total:o})}),(0,A.jsx)(I.N_,{className:"link",to:"#?",name:"specialism",onClick:C,"data-rs-popover-button-close":!0,children:a.formatMessage({id:"SearchFiltersMvp1.ClearFilter"})})]})]})}),(0,A.jsx)("div",{className:"modal__overlay modal__overlay--light hidden--until-l","data-rs-popover-overlay":!0})]})]}),(0,A.jsxs)("li",{className:"filter-bar__menu-item",children:[(0,A.jsxs)("button",{type:"button",className:"filter-bar__menu-item__trigger button--clean","data-rs-popover-trigger":"jobType",children:[a.formatMessage({id:"SearchFiltersMvp1.JobTypePopupTitle"}),(0,A.jsx)("span",{className:"icon icon--xs fill--dark-blue",children:(0,A.jsx)(j.A,{type:"chevron-down-8"})}),(0,A.jsx)("span",{className:"badge bg-brand--blue badge--s ".concat(w.jobType?"":"hidden"),children:w.jobType})]}),(0,A.jsxs)("div",{className:"filter-bar__popover-wrapper",children:[(0,A.jsx)("div",{className:"popover popover--arrow-left bg-variant-brand-tertiary hidden--until-l","data-rs-popover":"jobType","aria-hidden":"true",children:(0,A.jsxs)("div",{className:"popover__dialog",children:[(0,A.jsx)("div",{className:"popover__title",children:a.formatMessage({id:"SearchFiltersMvp1.JobTypePopupTitle"})}),(0,A.jsx)(B.A,{aggregations:_.aggregations.global,jobType:c.jobType,searchParams:i}
1),(0,A.jsxs)("div",{className:"popover__action",children:[(0,A.jsx)("button",{type:"button",className:"button button--m button--filled show-jobs",onClick:M,"data-rs-popover-button-close":!0,children:a.formatMessage({id:"SearchFiltersMvp1.ShowJobs"},{total:_.hits?_.hits.total:o})}),(0,A.jsx)(I.N_,{className:"link",to:"#?",name:"job-type",onClick:C,"data-rs-popover-button-close":!0,children:a.formatMessage({id:"SearchFiltersMvp1.ClearFilter"})})]})]})}),(0,A.jsx)("div",{className:"modal__overlay modal__overlay--light hidden--until-l","data-rs-popover-overlay":!0})]})]})]}),(0,A.jsx)(I.N_,{to:"#?",className:"link filter-bar__label hidden--until-l ".concat(w.allFilters?"":"hidden"),name:"all",onClick:C,children:a.formatMessage({id:"SearchFiltersMvp1.ClearAllFilter"})})]})}),(0,A.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,A.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,A.jsxs)("div",{className:"modal__header","data-rs-modal-header":!0,children:[(0,A.jsx)("div",{className:"modal__title",children:a.formatMessage({id:"SearchFiltersMvp1.MobileLabel"})}),(0,A.jsx)(I.N_,{to:"#?",className:"modal__label modal__label--clear ".concat(w.allFilters?"":"hidden"),name:"all",onClick:C,children:a.formatMessage({id:"SearchFiltersMvp1.ClearAllFilter"})}),(0,A.jsx)("button",{type:"button","data-rs-modal-close-trigger":!0,hidden:!0,ref:b,"aria-label":a.formatMessage({id:"Close"})}),(0,A.jsxs)("div",{role:"presentation",className:"button--icon-only modal__close",onClick:F,"aria-label":a.formatMessage({id:"Close"}),children:[(0,A.jsx)("span",{className:"icon icon--inline hidden--from-l icon--alternative",children:(0,A.jsx)(j.A,{type:"close"})}),(0,A.jsx)("span",{className:"icon icon-l icon--inline hidden--until-l icon--alternative",children:(0,A.jsx)(j.A,{type:"close-30"})})]})]}),(0,A.jsxs)("div",{className:"modal__main","data-rs-modal-main":!0,children:[(0,A.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,A.jsxs)("ul",{className:"toggable-group",children:[(0,A.jsxs)("li",{className:"toggable-group__item toggable-group__item--active","data-rs-toggable-group-item":"active","data-rs-toggable-target":"#mobile-specialism",children:[(0,A.jsx)("span",{className:"badge bg-brand--blue badge--s ".concat(w.specialism?"":"hidden"),children:w.specialism}),(0,A.jsx)("span",{className:"icon",children:(0,A.jsx)(j.A,{type:"briefcase"})}),(0,A.jsx)("span",{className:"label",children:a.formatMessage({id:"SearchFiltersMvp1.SpecialismTitle"})})]}),(0,A.jsxs)("li",{className:"toggable-group__item","data-rs-toggable-group-item":!0,"data-rs-toggable-target":"#mobile-job-type",children:[(0,A.jsx)("span",{className:"badge bg-brand--blue badge--s ".concat(w.jobType?"":"hidden"),children:w.jobType}),(0,A.jsx)("span",{className:"icon",children:(0,A.jsx)(j.A,{type:"career"})}),(0,A.jsx)("span",{className:"label",children:a.formatMessage({id:"SearchFiltersMvp1.JobTypTitle"})})]})]})}),(0,A.jsxs)("div",{className:"tab-content tab-content--animate",id:"mobile-specialism",children:[(0,A.jsx)("div",{className:"form-group",children:(0,A.jsx)(q.A,{aggregations:_.aggregations.global,specialism:c.specialism,searchParams:i})}),c.specialism?(0,A.jsx)("div",{className:"form-group",children:(0,A.jsx)(J.A,{aggregations:_.aggregations.global,subSpecialism:c.subSpecialism,searchParams:i})}):null,c.specialism?(0,A.jsx)("div",{className:"form-group",children:(0,A.jsx)(H.A,{aggregations:_.aggregations.global,jobCategory:c.jobCategory,searchParams:i})}):null]}),(0,A.jsx)("div",{className:"tab-content tab-content--animate",id:"mobile-job-type",hidden:!0,children:(0,A.jsx)(B.A,{aggregations:_.aggregations.global,jobType:c.jobType,searchParams:i})})]}),(0,A.jsx)("div",{className:"modal__footer divider","data-rs-modal-footer":!0,children:(0,A.jsx)("div",{role:"presentation",className:"button button--m button--filled button--full-width show-jobs",onClick:M,children:a.formatMessage({id:"SearchFiltersMvp1.ShowJobs"},{total:_.hits?_.hits.total:o})})})]})})]})}),K=e=>
1{const a={specialism:0,location:0,jobType:0,salary:0,allFilters:0};if(Object.keys(e).length){const s=(0,t.A)({},e),r=Object.keys(s).length;delete s.page,delete s.query,delete s.queryTitle,a.allFilters=s.region&&s.city?r-1:r}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},Y=()=>{const e=document.getElementsByClassName("modal__overlay--active"),a=document.getElementsByClassName("popover--active"),s=document.getElementsByClassName("trigger--active");e.length&&e[0].classList.remove("modal__overlay--active"),a.length&&a[0].classList.remove("popover--active"),s.length&&s[0].classList.remove("trigger--active")};var $=s(86094);const G=(0,i.Ay)(function(e){let a=e.intl,s=e.bgColor,t=void 0===s?"bg-variant-brand-primary":s;const r=(0,O.H)("search",a.locale).url.replace(":searchParams*","");return(0,A.jsx)("div",{className:"block ".concat(t," cta-box"),children:(0,A.jsxs)("div",{className:"wrapper cta-box__wrapper",children:[(0,A.jsxs)("div",{className:"cta-box__text",children:[(0,A.jsx)("p",{children:a.formatMessage({id:"CtaBox.Title"})}),(0,A.jsx)("p",{className:"text--emphasis",children:a.formatMessage({id:"CtaBox.Text"})})]}),(0,A.jsx)(I.N_,{to:r,className:"button",target:"_blank",rel:"noopener noreferrer",children:a.formatMessage({id:"CtaBox.LinkText"})})]})})});var Q=s(46531),X=s(66781),Z=s(24384),ee=s(81591),ae=s(1659);const se=s(50251);const te=(0,i.Ay)(function(e){let a=e.intl,s=e.staticContext,i=e.match;const d=(0,l.useContext)(x.BR),g=d.additionalData,p=d.setAdditionalData,u=d.pages,b=d.setPages,j=d.startingPage,v=d.setLoading,f=d.seoData,y=d.setSeoData,N=d.pagingHistory,S=d.setPagingHistory,w=(0,h.zy)(),k=(0,h.W6)(),T=i.path.replace(":searchParams*",""),P=i.params.searchParams?(0,U.A)(i.params.searchParams):{},C=(0,O.A)("jobDetails"),M=((0,O.A)("internalJobDetails"),(0,o.A)(["sortBy","backToSearch","searchData"])),F=(0,r.A)(M,2),B=F[0],q=F[1],J=B.searchData&&B.searchData.activeView?B.searchData.activeView:"grid",H="bg-variant-brand-secondary";if(s&&s.data){const e="https://www.randstad.pl"+w.pathname+w.search;q("searchData",(0,t.A)((0,t.A)({},B.searchData),{},{originalLocation:e}),{sameSite:"lax",secure:!0}),s.dataLayer=(0,_.Pg)("search result",a.locale,g,C,e,P)}const I=parseInt("15");let V=P&&P.page?parseInt(P.page):1;const K=(0,l.useState)(B.sortBy),Y=(0,r.A)(K,2),te=Y[0],re=Y[1],le=(0,l.useState)(!1),ie=(0,r.A)(le,2),oe=ie[0],ne=ie[1],ce=(0,ee.A)(),de=null===g||void 0===g?void 0:g.jobListingSettings;if((0,l.useEffect)(()=>{if(window.__ROUTE_DATA__)delete window.__ROUTE_DATA__;else{!!i.url&&i.url.includes("page-")||(ne(!0),S((0,t.A)((0,t.A)({},N),{monsterPageTrigger:!1,jobsPageTrigger:!1}))),m().post("/api/search/search-results",{data:{currentRoute:(0,t.A)((0,t.A)({},i),{routeName:"internal-search"}),currentLanguage:a.locale,cookies:B}}).then(e=>{if(p(e.data),ne(!1),v(!1),e.data.searchResults.hits&&e.data.searchResults.hits.hits.length>0){if(q("backToSearch",P,{path:"/",sameSite:"lax",secure:!0}),te!==B.sortBy){const a=se((0,t.A)((0,t.A)({},P),{page:null}));re(B.sortBy),b([...e.data.searchResults.hits.hits]),k.push("".concat(T).concat(a))}else b(a=>P.page&&P.page>1?[...a,...e.data.searchResults.hits.hits]:[...e.data.searchResults.hits.hits]);v(!1)}{const s=B.searchData&&B.searchData.originalLocation?B.searchData.originalLocation:"";window.dataLayer=window.dataLayer||[],window.dataLayer.push((0,t.A)({event:"pageview",virtualPage:w.pathname+w.search},(0,_.Pg)("search result",a.locale,e.data,C,s,P)))}(0,c.A)()})}},[i.params.searchParams,B.sortBy]),(0,l.useEffect)(()=>{(0,_.Y$)(g,P,N,S)},[g.searchResults]),(0,l.useEffect)(()=>{window.__SEO_DATA__&&!window.__SEO_DATA__.isi?window.__SEO_DATA__.isi=!0:m().post("/api/search/seo-regions",{currentRoute:(0,t.A)((0,t.A)({},i),{routeName:"internal-search"}),currentLanguage:a.locale}).then(e=>{y(e.data)})},[i.params.searchParams]),!Object.keys(g).length||1===Object.keys(g).length||oe)return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(n.m,{children:(0,A.jsx)("header",{className:"header header--text ".concat(H)})}),(0,A.jsx)(Z.A,{activeView:J}),(0,A.jsx)(ae.Ay,{})]});const me=[];let he=0,ge=!1;const pe=!1;let ue=[];const be={};if(g.searchResults&&g.searchResults.hits&&g.searchResults.hits.hits.length>0){he=g.searchResults.hits.total,u.length/I===V?V=1:j&&V!==j&&(V=j);for(const e in u){const a=Math.floor(e/parseInt("15"))+V;be[a]||(be[a]=[]);const s=u[e]._source;be[a].push((0,A.jsx)(E.A,{jobData:s,favoriteJobs:g.favoriteJobs,configurations:g.configurations,activeView:J,target:ce,routeName:"internal-search"},e))}ue=g.searchResults.aggregations.global}else if(ge=!0,P.query||P.queryTitle){const e=P.query?P.query:P.queryTitle;me.push((0,A.jsx)(L.A,{match:i,searchWord:e,shouldHighlight:!0,jobListingsSettings:de},"no-results"))}else me.push((0,A.jsx)(L.A,{match:i,searchWord:!1,shouldHighlight:!1,jobListingsSettings:de},"no-results"));if("undefined"!==typeof window){window.onload=e=>{const a=document.getElementsByTagName("body");a.length&&a[0].classList.add("loaded"),P.page&&(0,W.A)("#page-".concat(P.page))},window.onscroll=a=>{if(!document.querySelector("body.loaded"))return!1;const s=document.querySelectorAll('[id*="page-"]');for(const r in s){const a=s[r];if(e(a)){const e=a.id.replace("page-",""),s=(0,t.A)({},P);s.page=e<=1?void 0:e,window.history.replaceState(null,"","".concat(i.path.replace(":searchParams*","")).concat(se(s)))}}};const e=e=>{const a=e.hidden;a&&(e.hidden=!1);
1const s=e.offsetTop,t=s+e.offsetHeight,r=window.pageYOffset,l=r+window.innerHeight;return a&&(e.hidden=!0),t>r&&s<l}}return g.providedSearchParams?(0,A.jsxs)("div",{id:"job-search-mvp-listing",children:[(0,A.jsxs)(n.m,{children:[(0,A.jsx)("title",{children:a.formatMessage({id:"SearchListing.Title"},{sitename:"Randstad.pl"})}),(0,A.jsx)("header",{className:"header ".concat("header--search-alternative mvp-header--search-alternative header--text ".concat(H))}),(0,A.jsx)("meta",{name:"title",content:a.formatMessage({id:"SearchListing.MetaTitle"},{sitename:"Randstad.pl"})}),ge?(0,A.jsx)("script",{type:"text/javascript",src:"/search-app/assets/submitCv/dropzone/dropzone.min.js"}):null,(0,A.jsx)("script",{type:"text/javascript",src:"/search-app/assets/js/auto-suggest.js"})]}),(0,A.jsx)(ae.Ay,{}),(0,A.jsx)(D,{seoOverride:g.seoOveride,searchParams:g.providedSearchParams,aggregations:ue,showJobAlerts:pe,total:he}),null,(0,A.jsx)("div",{id:"sortBar",children:ge?null:(0,A.jsx)(R.A,{seoData:f,searchParams:g.providedSearchParams,resultsTotal:he,aggregations:ue})}),ge?null:(0,A.jsx)(z,{aggregations:ue,searchParams:g.providedSearchParams,total:he}),ge?me:(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("div",{className:"block block--xs block--top-offset-xs block--top-offset-xxs-until-l \n                ".concat("bg-variant-brand-tertiary"),children:(0,A.jsxs)("div",{className:"block__wrapper block__wrapper--stacked wrapper",children:[(0,A.jsx)("div",{className:"block__content block__content--full-on-s block__content--full-on-m",children:(0,A.jsx)("div",{className:"cards",children:Object.keys(be).map(e=>(0,A.jsxs)("div",{children:[(0,A.jsx)("div",{className:"show-more",children:(0,A.jsx)("div",{className:"section-separator section-separator--border",hidden:e<=1,id:"page-".concat(e),children:e>1?(0,A.jsx)("span",{children:a.formatMessage({id:"SearchListing.Page"},{page:e})}):null})}),(0,A.jsx)("ul",{className:"cards__list ".concat(B.searchData&&"list"===B.searchData.activeView?"cards__list--format-list":"cards__list--format-grid"),children:be[e]})]},e))})}),(0,A.jsx)($.A,{searchParams:P,totalMatches:he,itemsPerPage:I,staticContext:s,itemsCount:I*V})]})}),(0,A.jsx)(G,{})]}),(0,Q.R)()&&Object.keys(P).length?(0,A.jsx)(X.A,{}):null]}):(0,A.jsx)(Z.A,{activeView:J})})}}]);

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.