PageSourceSearch

https://www.randstad.pt/search-app/static/js/Pages-ClientSearch.4f6166fa.chunk.js

js randstad.pt collected 2026-10-02 04:27:06 UTC 7,693 bytes, 1 lines download raw bytes

1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[747],{59799(e,s,a){a.r(s);var t=a(84919),r=a(44303),i=a(88094),c=a(51784),o=a(57186),n=a(74266),l=a(15535),h=a(64136),d=a(3339),u=a.n(d),g=a(47736),p=(a(3086),a(7149)),j=a(14542),m=a(41815),x=a(34042),A=a(86094),_=(a(37264),a(66833)),f=a(47221),w=a(55221),v=a(84479),y=a(98488),b=a(70784),D=a(87542),P=a(46531),k=a(66781),L=(a(63230),a(94202)),T=a(30614),R=a(72713),O=a(63094),S=a(81591),N=a(1659),E=a(15678);const B=a(50251);const q=(0,c.Ay)(function(e){let s=e.intl,c=e.staticContext,d=e.match;const q=(0,i.useContext)(O.BR),C=q.additionalData,H=q.setAdditionalData,M=q.pages,U=q.setPages,z=q.startingPage,F=q.setLoading,J=q.seoData,V=q.setSeoData,I=q.pagingHistory,K=q.setPagingHistory,Y=(0,b.A)("jobDetails"),G=(0,L.zy)(),W=d.params.searchParams?(0,D.A)(d.params.searchParams,s.locale):{},X=(0,o.A)(["sortBy","backToSearch","searchData"]),$=(0,r.A)(X,2),Q=$[0],Z=$[1],ee=Q.searchData&&Q.searchData.activeView?Q.searchData.activeView:"grid";if(c&&c.data){const e="https://www.randstad.pt"+G.pathname+G.search;Z("searchData",(0,t.A)((0,t.A)({},Q.searchData),{},{originalLocation:e}),{sameSite:"lax",secure:!0}),c.dataLayer=(0,y.Pg)("search result",s.locale,C,Y,e,W)}const se=(0,i.useState)(!1),ae=(0,r.A)(se,2),te=(ae[0],ae[1]),re=parseInt("30");let ie=W&&W.page?parseInt(W.page):1;const ce=(0,S.A)(),oe=e=>{te(e)};if((0,i.useEffect)(()=>{const e=document.getElementsByTagName("body");e.length&&e[0].classList.add("loaded"),W.page&&(0,v.A)("#page-".concat(W.page-1))},[]),(0,i.useEffect)(()=>{G.hash!==C.hash&&(H(e=>(0,t.A)((0,t.A)({},e),{},{hash:G.hash})),window.setTimeout(h.A,1e3))},[G.hash]),(0,i.useEffect)(()=>{window.__SEO_DATA__?delete window.__SEO_DATA__:u().post("/api/search/seo-regions",{currentRoute:(0,t.A)((0,t.A)({},d),{routeName:"search"}),currentLanguage:s.locale}).then(e=>{e.data&&V(e.data)})},[d.url]),(0,i.useEffect)(()=>{if(window.__ROUTE_DATA__)H((0,t.A)((0,t.A)({},window.__ROUTE_DATA__),{hash:G.hash})),delete window.__ROUTE_DATA__;else{!!d.url&&d.url.includes("page-")||K((0,t.A)((0,t.A)({},I),{monsterPageTrigger:!1,jobsPageTrigger:!1})),u().post("/api/search/search-results",{data:{currentRoute:(0,t.A)((0,t.A)({},d),{routeName:"client-search"}),currentLanguage:s.locale,cookies:Q}}).then(e=>{H((0,t.A)((0,t.A)({},e.data),{hash:G.hash})),F(!1),e.data.searchResults.hits&&e.data.searchResults.hits.hits.length>0&&(Z("backToSearch",W,{path:"/",sameSite:"lax",secure:!0}),U(s=>W.page&&W.page>1?[...s,...e.data.searchResults.hits.hits]:[...e.data.searchResults.hits.hits]));{const a=Q.searchData&&Q.searchData.originalLocation?Q.searchData.originalLocation:"";window.dataLayer=window.dataLayer||[],window.dataLayer.push((0,t.A)({event:"pageview",virtualPage:G.pathname+G.search},(0,y.Pg)("search result",s.locale,e.data.searchResults,Y,a,W)))}(0,h.A)()})}},[d.params.searchParams,Q.sortBy]),(0,i.useEffect)(()=>{(0,y.Y$)(C,W,I,K)},[C.searchResults]),!Object.keys(C).length||1===Object.keys(C).length)return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(l.m,{children:(0,E.jsx)("header",{className:"header header--text bg-variant-brand-secondary"})}),(0,E.jsx)(n.B8,{}),(0,E.jsx)(n.B8,{}),(0,E.jsx)(n.B8,{}),(0,E.jsx)(n.B8,{}),(0,E.jsx)(n.B8,{}),(0,E.jsx)(n.B8,{}),(0,E.jsx)(n.B8,{})]});const ne=!1,le=[];let he=0,de=!1,ue=!0,ge=[];const pe={};let je=d.path.replace(":searchParams*","");if(d&&d.params&&d.params.clientName&&(je=je.replace(":clientName",d.params.clientName)),C.searchResults&&C.searchResults.hits&&C.searchResults.hits.hits.length>0){he=C.searchResults.hits.total,M.length/re===ie?ie=1:z&&ie!==z&&(ie=z);for(const e in M){const s=Math.floor(e/parseInt("30"))+ie;pe[s]||(pe[s]=[]);const a=M[e]._source;pe[s].push((0,E.jsx)(m.A,{jobData:a,saveJobModalCb:oe,favoriteJobs:C.favoriteJobs,configurations:C.configurations,burningGlassAuthToken:C.burningGlassAuthToken,activeView:ee,target:ce,routeName:"client-search"},e))}ge=C.searchResults.aggregations.global}else if(de=!0,1===Object.keys(W).length&&(W.query||W.queryTitle)&&(ue=!1),W.query||W.queryTitle){const e=W.query?W.query:W.queryTitle;le.push((0,E.jsx)(p.A,{searchWord:e,shouldHighlight:!0,showFilters:ue},"no-results"))}else le.push((0,E.jsx)(p.A,{searchWord:!1,shouldHighlight:!1,showFilters:ue},"no-results"));if("undefined"!==typeof window){window.onscroll=s=>{if(!document.querySelector("body.loaded"))return!1;const a=document.querySelectorAll('[id*="page-"]');for(const r in a){const s=a[r];if(e(s)){const e=s.id.replace("page-",""),a=(0,t.A)({},W);a.page=e<=1?void 0:e,window.history.replaceState(null,"","".concat(je).concat(B(a)))}}};const e=e=>{const s=e.hidden;s&&(e.hidden=!1);
1const a=e.offsetTop,t=a+e.offsetHeight,r=window.pageYOffset,i=r+window.innerHeight;return s&&(e.hidden=!0),t>r&&a<i}}const me=""===C.hash||"#toast=thank-you"===C.hash;return(0,E.jsxs)("div",{id:"job-search-mvp-listing",children:[(0,E.jsxs)(l.m,{children:[(0,E.jsx)("title",{children:s.formatMessage({id:"SearchListing.Title"},{sitename:"Randstad Portugal"})}),(0,E.jsx)("header",{className:"header header--search-alternative mvp-header--search-alternative header--text bg-variant-brand-secondary"}),(0,E.jsx)("meta",{name:"title",content:s.formatMessage({id:"SearchListing.MetaTitle"},{sitename:"Randstad Portugal"})}),de?(0,E.jsx)("script",{type:"text/javascript",src:"/search-app/assets/submitCv/dropzone/dropzone.min.js"}):null,de?(0,E.jsx)("script",{type:"text/javascript",src:"https://www.dropbox.com/static/api/2/dropins.js",id:"dropboxjs","data-app-key":(a.g||window).REACT_APP_DROPBOX_KEY}):null,de?(0,E.jsx)("script",{src:"https://cdn.jsdelivr.net/npm/[email protected]/index.js"}):null,de?(0,E.jsx)("script",{src:"https://apis.google.com/js/platform.js?onload=init",async:!0,defer:!0}):null,(0,E.jsx)("script",{type:"text/javascript",src:"/search-app/assets/js/auto-suggest.js"}),(0,E.jsx)("script",{type:"text/javascript",src:"/search-app/assets/js/lazy-load.js"})]}),(0,E.jsx)(N.Ay,{}),(0,E.jsx)(g.A,{seoOverride:C.seoOveride,seoData:J,searchParams:C.providedSearchParams,aggregations:ge,showJobAlerts:ne,total:he}),(0,E.jsx)("div",{id:"seo-header-region",children:(0,E.jsx)(_.A,{})}),(0,E.jsx)(T.A,{active:C.hash}),null,null,me?de?le:(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{id:"sortBar",children:de?null:(0,E.jsx)(j.A,{seoData:J,searchParams:C.providedSearchParams,resultsTotal:he,aggregations:ge})}),ue?(0,E.jsx)(x.A,{aggregations:ge,searchParams:C.providedSearchParams,total:he}):null,(0,E.jsx)("div",{className:"block block--xs block--top-offset-xs block--top-offset-xxs-until-l bg-variant-brand-tertiary",id:"search-results",children:(0,E.jsxs)("div",{className:"block__wrapper block__wrapper--stacked wrapper",children:[(0,E.jsx)("div",{className:"block__content block__content--full-on-s block__content--full-on-m",children:(0,E.jsx)("div",{className:"cards",children:Object.keys(pe).map(e=>(0,E.jsxs)("div",{children:[(0,E.jsx)("div",{className:"show-more",children:(0,E.jsx)("div",{className:"section-separator section-separator--border",hidden:e<=1,id:"page-".concat(e),children:e>1?(0,E.jsx)("span",{children:s.formatMessage({id:"SearchListing.Page"},{page:e})}):null})}),(0,E.jsx)("ul",{className:"cards__list ".concat(Q.searchData&&"list"===Q.searchData.activeView?"cards__list--format-list":"cards__list--format-grid"),children:pe[e]})]},e))})}),(0,E.jsx)(A.A,{searchParams:W,totalMatches:he,itemsPerPage:re,staticContext:c,itemsCount:re*ie})]})}),null,(0,E.jsx)(w.A,{seoLinkList:C.seoLinkList})]}):null,(0,E.jsx)(R.A,{active:C.hash}),(0,E.jsx)("div",{id:"seo-footer-region",children:(0,E.jsx)(f.A,{})}),(0,P.R)()&&Object.keys(W).length?(0,E.jsx)(k.A,{}):null]})});a.d(s,["default",0,q])}}]);

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.