1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[525],{64292(e,a,t){t.r(a),t.d(a,{default:()=>N});var o=t(84919),s=t(44303),i=t(88094),n=t(94202),r=t(90568),l=t(48215),c=t(55688),d=t(91101),b=t(58525),m=t(307),u=t(70784),p=t(39306),D=t(15678);const j=function(e){let a=e.jobData;const t=(0,r.A)();let o;return a.JobInformation.Url?o=a.JobInformation.Url.includes("".concat("https://www.randstad.pt","/"))?a.JobInformation.Url.replace("".concat("https://www.randstad.pt","/"),"/"):a.JobInformation.Url:(o=(0,u.A)("job-apply").url,o=(0,p.A)(a,o.replace(":job([^\\/]+_[^\\/]+_[^\\/]+)"))),(0,D.jsxs)("div",{className:"meta-content full-bleed--s full-bleed--m bg-variant-brand-tertiary",children:[(0,D.jsxs)("div",{className:"divider",children:[(0,D.jsx)("p",{className:"meta-content__title",children:t.formatMessage({id:"JobDetails.Summary"})}),(0,D.jsx)("div",{className:"meta-content__description",children:(0,D.jsx)("address",{children:(0,D.jsxs)("ul",{className:"content-block__list",children:[a.BlueXJobData.CompanyName&&(0,D.jsx)(d.A,{icon:"building",text:a.BlueXJobData.CompanyName.toLowerCase()}),(0,b.H)(a,!1,!1),a.BlueXJobData.JobType&&(0,D.jsx)(d.A,{icon:"briefcase",text:a.BlueXJobData.JobType.toLowerCase()}),a.JobInformation.Hours&&(0,D.jsx)(d.A,{icon:"clock",text:a.JobInformation.Hours.toLowerCase()}),a.JobInformation.Degree&&(0,D.jsx)(d.A,{icon:"education",text:t.formatMessage({id:"JobDetails.Meta.Degree"})}),a.JobInformation.Period&&(0,D.jsx)(d.A,{icon:"calendar",text:t.formatMessage({id:"JobDetails.Meta.Period"})})]})})})]}),(0,D.jsxs)("div",{className:"divider",children:[(0,D.jsx)("ul",{className:"content-block__list",children:(()=>{const e=[];return a.BlueXJobData&&a.BlueXJobData.Specialism&&e.push((0,D.jsxs)("li",{children:[t.formatMessage({id:"SpecialismFilter.FilterLabel"}),":"," ",a.BlueXJobData.Specialism.toLowerCase()]},"specialism")),a.BlueXJobData&&a.BlueXJobData.SubSpecialism&&e.push((0,D.jsxs)("li",{children:[t.formatMessage({id:"SubSpecialismFilter.FilterLabel"}),":"," ",a.BlueXJobData.SubSpecialism.toLowerCase()]},"sub-specialism")),a.JobDates&&a.JobDates.DateCreated&&e.push((0,D.jsx)("li",{children:t.formatMessage({id:"JobBoardDescription.CreatedDate"},{value:(0,m.HF)(a.JobDates.DateCreatedTime,"job-board").toLowerCase()})},"created-date")),a.BlueXJobData&&a.BlueXJobData.City&&e.push((0,D.jsx)("li",{children:t.formatMessage({id:"JobBoardDescription.City"},{value:a.BlueXJobData.City.toLowerCase()})},"city")),a.BlueXJobData&&a.BlueXJobData.JobType&&e.push((0,D.jsx)("li",{children:t.formatMessage({id:"JobBoardDescription.JobType"},{value:a.BlueXJobData.JobType.toLowerCase()})},"job-type")),a.BlueXJobData&&a.BlueXJobData.ReferenceNumber&&e.push((0,D.jsx)("li",{children:t.formatMessage({id:"JobBoardDescription.ReferenceNumber"},{value:a.BlueXJobData.ReferenceNumber.toLowerCase()})},"reference-number")),a.Contact&&a.Contact.Name&&a.BlueXJobData.CompanyName&&e.push((0,D.jsx)("li",{children:t.formatMessage({id:"JobBoardDescription.Contact"},{name:a.Contact.Name.toLowerCase(),company:a.BlueXJobData.CompanyName.toLowerCase()})},"contact")),e})()}),(0,D.jsx)("a",{className:"button button--filled",href:o,onMouseDown:Function(a.dataLayerApplyClick),children:t.formatMessage({id:"JobBoardDescription.ApplyButton"})})]})]})};const h=function(e){let a=e.jobData;const t=(0,r.A)(),o=a.JobInformation,s=o.Description,i=o.Experience,n=o.Skills,d=o.Qualification;return(0,D.jsx)("div",{className:"block",children:(0,D.jsxs)("div",{className:"block__wrapper block__wrapper--stacked wrapper job-details",children:[(0,D.jsx)("div",{className:"block__header block__header--l hidden--until-l",children:(0,D.jsx)("h1",{className:"block__title",children:a.BlueXJobData.Title})}),(0,D.jsxs)("div",{className:"block__content basic-layout",children:[(0,D.jsx)("div",{className:"basic-layout__side",children:(0,D.jsx)(j,{jobData:a})}),(0,D.jsxs)("div",{className:"basic-layout__main",children:[(0,D.jsx)("div",{className:"block__title hidden--from-l",children:t.formatMessage({id:"JobDetails.JobDetails"})}),s&&(0,D.jsx)(l.A,{jobData:a}),(i||n||d)&&(0,D.jsx)(c.A,{jobData:a}),a.JobInformation.Responsibilities&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("br",{}),(0,D.jsxs)("div",{className:"body-copy",children:[(0,D.jsx)("h2",{className:"title--s",children:t.formatMessage({id:"JobBoardDescription.Responsibilities"})}),(0,D.jsx)("p",{dangerouslySetInnerHTML:{__html:a.JobInformation.Responsibilities}})]})]})]})]})]})})};var x=t(15535),_=t(51784),J=t(76929),f=t(64136),w=t(3339),g=t.n(w),y=t(74266),A=t(98488),B=t(57186),C=t(40383),L=t(1659);const N=(0,_.Ay)(function(e){let a=e.intl,t=e.staticContext,r=e.match;const l="".concat("https://www.randstad.pt").concat(r.url),c="".concat("https://www.randstad.pt").concat("/search-app/assets/image/randstad-opengraph-partner-for-talent.jpg"),d=r.params.jobId,b=(0,n.zy)(),m=(0,B.A)([]),p=(0,s.A)(m,2),j=p[0],_=p[1],w=a.locale,N=(0,u.A)("jobDetails");let v={};if(t&&t.data){v=t.data;{const e="https://www.randstad.pt"+b.pathname+b.search;_("searchData",(0,o.A)((0,o.A)({},j.searchData),{},{originalLocation:e}),{sameSite:"lax",secure:!0}),t.dataLayer=(0,A.Pg)("job_detail",w,{jobData:v},N,e)}}else"undefined"!==typeof window&&window.__ROUTE_DATA__&&(v=window.__ROUTE_DATA__);const X=(0,i.useState)(v),T=(0,s.A)(X,2),M=T[0],k=T[1];if((0,i.useEffect)(()=>
1{if(window.__ROUTE_DATA__)k(window.__ROUTE_DATA__),delete window.__ROUTE_DATA__;else{const e="@Callbacks/getJobData",a={jobId:d,currentLanguage:(0,C.A)(r.url)};g().post("/api/search/get-callback",{callback:e,currentRoute:r,data:a}).then(e=>{k(e.data);{const a=j.searchData&&j.searchData.originalLocation?j.searchData.originalLocation:"";window.dataLayer=window.dataLayer||[],window.dataLayer.push((0,o.A)({event:"pageview",virtualPage:b.pathname+b.search},(0,A.Pg)("job_detail",w,{jobData:e.data},N,a)))}(0,f.A)()})}},[]),(0,i.useEffect)(()=>{null!==M&&void 0!==M&&M.jobData&&Object.keys(M.jobData).length>0&&(0,A.VU)(M)},[M]),!Object.keys(M).length)return(0,D.jsx)(y.B8,{});if(!M||!M.hits||0===M.hits.hits.length)return(0,D.jsx)(n.qh,{render:e=>{let a=e.staticContext;return a&&(a.status=410),(0,D.jsx)(J.A,{})}});const S=M.hits.hits[0]._source;if(S&&S.JobDates&&S.JobDates.DateExpire){const e=new Date("".concat(S.JobDates.DateExpire,"T24:00:00")),a=Math.round(e.getTime()/1e3),t=new Date;if(a<Math.round(t/1e3))return(0,D.jsx)(n.qh,{render:e=>{let a=e.staticContext;return a&&(a.status=410),(0,D.jsx)(J.A,{})}})}const E=a.formatMessage({id:"JobBoard.MetaTitle"},{title:S.BlueXJobData.Title,city:S.BlueXJobData.City,sitename:"Randstad Portugal"}),I="".concat(S.BlueXJobData.Description.replace(/<[^>]*>/g," ").substring(0,330),"...");return(0,D.jsxs)("div",{id:"job-details",children:[(0,D.jsxs)(x.m,{children:[(0,D.jsx)("title",{children:E}),(0,D.jsx)("meta",{name:"title",content:E}),(0,D.jsx)("meta",{name:"description",content:I}),(0,D.jsx)("meta",{property:"og:title",content:E}),(0,D.jsx)("meta",{property:"og:description",content:I}),(0,D.jsx)("meta",{property:"og:url",content:l}),(0,D.jsx)("meta",{property:"og:image",content:c}),(0,D.jsx)("meta",{name:"twitter:title",content:E}),(0,D.jsx)("meta",{name:"twitter:description",content:I}),(0,D.jsx)("meta",{name:"twitter:url",content:l}),(0,D.jsx)("meta",{name:"twitter:image",content:c}),(0,D.jsx)("link",{rel:"canonical",href:l})]}),(0,D.jsx)(L.Ay,{}),(0,D.jsx)(h,{jobData: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.