(window.__LOADABLE_LOADED_CHUNKS__=window.__LOADABLE_LOADED_CHUNKS__||[]).push([[111],{460:function(e,t,a){"use strict";a.r(t),a.d(t,"default",(function(){return M}));var l=a(0),n=a.n(l),i=a(39),o=a(13),r=a.n(o),c=a(2),s=a(10),d=a(15),u=a(17),b=a(21),m=a(1);const p=Object(b.b)("job",["title","details","detail-label","detail-value","button-wrapper","button","body","content","content-title"]),g=d.a.medium;var y=c.d.div.withConfig({componentId:"sc-1vn74yl-0"})(["",";"],e=>{let{theme:t}=e;return Object(c.c)(["&.","{padding-bottom:40px;}.","{margin-top:0;}.","{display:flex;flex-direction:column;}.","{margin:0;font-size:17px;line-height:20px;}.","{font-weight:",";}.","{margin:4px 0 8px;padding-bottom:8px;border-bottom:solid 1px ",";}.","{margin-top:32px;}.","{"," margin-top:0;margin-bottom:20px;}.","{margin-top:32px;width:fit-content;}"," ",""],p.className,p.title,p.body,p.details,p["detail-label"],u.a.Bold,p["detail-value"],m.a.cloudOriginal,p.content,p["content-title"],t.typographyStyles.h4Styles,p.button,Object(s.a)(d.a.small,Object(c.c)([".","{margin-top:0;}.","{margin-top:0;margin-bottom:20px;}"],p.title,p["content-title"])),Object(s.a)(g,Object(c.c)(["&.","{padding-bottom:80px;}.","{flex-direction:row;}.","{flex-basis:33%;}.","{flex-basis:67%;margin-left:64px;margin-top:0;}.","{margin-bottom:24px;}"],p.className,p.body,p.details,p.content,p["content-title"])))}),v=a(22);var f=a(24),O=a(4),h=a(54),j=a(68),E=a(42),C=a(158),x=a(272),D=a(93),w=a(637),S=a(28);const T={PDF:{mimeType:"application/pdf",title:"Adobe Portable Document Format"},ICS:{mimeType:"text/calendar",title:"iCalendar"}},A=j.g`${j.a.Day.Name.Long} ${j.a.Day.Number.Short} ${j.a.Month.Name.Long} ${j.a.Year.Long}`;function L(e){var t,a;let{label:l,document:i=null,onClick:o=h.a}=e;if(null==i||!i.url)return f.a;const r=null==(t=i.fileType)?void 0:t.toUpperCase(),c=r?T[r]:null,s=i.fileSizeInBytes?function(e,t,a){if(void 0===t&&(t=2),void 0===a&&(a=1e3),!+e)return{valueAsString:"0",abbreviatedUnit:"Bytes",unit:"Bytes"};const l=t<0?0:t,n=1e3===a?"":"i",i=["Bytes",`K${n}B`,`M${n}B`,`G${n}B`],o=[];o[1e3]=["Bytes","Kilobyte","Megabyte","Gigabyte"],o[1024]=["Bytes","Kibibyte","Mebibyte","Gibibyte"];const r=Math.floor(Math.log(e)/Math.log(a));return{valueAsString:""+parseFloat((e/Math.pow(a,r)).toFixed(l)),abbreviatedUnit:i[r],unit:o[a][r]}}(i.fileSizeInBytes):null,d=[s,Object(O.a)(r)].filter(Boolean).length,u=d>0;return n.a.createElement("p",null,n.a.createElement(D.b,{isHollow:!0,uri:decodeURI(i.url),download:!0,type:null!=(a=null==c?void 0:c.mimeType)?a:void 0,onClick:o,iconId:S.a.Download,fitContent:!0},n.a.createElement("span",null,l,u&&" (",c&&n.a.createElement("abbr",{title:c.title},r),!c&&r,2===d&&`, ${s.valueAsString} `,s&&n.a.createElement("abbr",{title:s.unit},s.abbreviatedUnit),u&&")")))}var k=function(e){let{className:t,basis:a,category:o,closingDate:c,description:s,hours:d,interviewDate:u,link:b,location:m,jobPackage:g,publishedDate:f,reference:h,region:j,salary:S,schoolService:T,title:k,subtitle:N,headingCTAs:I,headingTags:B,contractType:P=null,jobDescriptionDocument:_=null,candidatePackDocument:$=null,personSpecificationDocument:M=null}=e;const U=(e,t)=>{Object(v.d)({actionOrActions:[v.b.CLICK,"Download",e],actionGUIDS:[t.url]})},F=s.replace(/href="https:\/\/www\.uclan\.ac\.uk\//g,'href="/'),K=A(c)+" at 11.59pm",R=A(f),H=Object(O.a)(u)?u:"",G=[{label:"Job Reference",value:h},{label:"Date Posted",value:R},{label:"Application Closing Date",value:K},{label:"Location",value:m},{label:"Region",value:j},{label:"Salary",value:S},{label:"Basis",value:a},{label:"Contract Type",value:P},{label:"Job Category / Type",value:null==o?void 0:o.entryTitle},{label:"School / Service",value:T},{label:"Hours",value:d},{label:"Interview Date",value:H},{label:"Package",value:g}].filter(e=>!!e.value);return n.a.createElement(y,{className:r()(t,p.className)},n.a.createElement(w.g,{title:k,subtitle:N,ctas:I,tags:B}),n.a.createElement(i.a,null,n.a.createElement("div",{className:p.body},n.a.createElement("div",null,n.a.createElement("dl",{className:p.details},G.map(e=>n.a.createElement(l.Fragment,{key:e.label},n.a.createElement("dt",{className:p["detail-label"]},e.label),n.a.createElement("dd",{className:p["detail-value"]},e.value)))),n.a.createElement(L,{label:"Job description",document:_,onClick:()=>U("job-description",_)}),n.a.createElement(L,{label:"Candidate pack",document:$,onClick:()=>U("candidate-pack",$)}),n.a.createElement(L,{label:"Person specification",document:M,onClick:()=>U("person-specification",M)}),b&&n.a.createElement(D.b,{onClick:()=>{Object(v.d)({actionOrActions:[v.b.CLICK,"Apply now"]})},uri:b,label:"Apply now",className:r()(p.button,E.a)})),n.a.createElement("div",{className:p.content},n.a.createElement("h2",{className:p["content-title"]},"Job details"),n.a.createElement(x.b,null,n.a.createElement(C.default,{content:F}))))))},N=a(159),I=a(113),B=a(34),P=a(69),_=a(206);function $(){return($=Object.assign?Object.assign.bind():function(e){for(var t=1;t!!e).join(" ,"),addressLocality:null==(r=e.location)?void 0:r.townCity,postalCode:null==(c=e.location)?void 0:c.postalCode,addressCountry:null==(s=e.location)?void 0:s.countryCode,addressRegion:"North West"})}),baseSalary:u})}}}]); //# sourceMappingURL=pages-Job-page.e9ec6fafe55495b5410a.mjs.map