PageSourceSearch

https://www.randstad.no/search-app/static/js/Pages-ClientSearch.fcf0987c.chunk.js

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

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.