(window.__LOADABLE_LOADED_CHUNKS__=window.__LOADABLE_LOADED_CHUNKS__||[]).push([[112],{465:function(e,t,a){"use strict";a.r(t),a.d(t,"default",(function(){return H}));var l=a(0),n=a.n(l),i=a(39),o=a(12),r=a.n(o),c=a(2),s=a(10),d=a(15),u=a(17),b=a(18),m=a(1);const p=Object(b.b)("job",["title","details","detail-label","detail-value","button-wrapper","button","body","content","content-title","sponsors","sponsor"]),g=d.a.medium;var y=c.d.div.withConfig({componentId:"k3luz8-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;}.","{display:flex;flex-direction:row;gap:16px;flex-wrap:wrap;}"," ",""],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,p.sponsors,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),j=a(55),h=a(69),E=a(43),C=a(160),x=a(276),w=a(95),D=a(641),S=a(29);const T={PDF:{mimeType:"application/pdf",title:"Adobe Portable Document Format"},ICS:{mimeType:"text/calendar",title:"iCalendar"}};var A=a(228),N=a(7),k=a(651),L=a(88),I=a(122);const B=h.g`${h.a.Day.Name.Long} ${h.a.Day.Number.Short} ${h.a.Month.Name.Long} ${h.a.Year.Long}`;function P(e){var t,a;let{label:l,document:i=null,onClick:o=j.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(w.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 _=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:j,region:h,salary:S,schoolService:T,title:_,subtitle:$,headingCTAs:M,headingTags:U,contractType:F=null,jobDescriptionDocument:K=null,candidatePackDocument:R=null,personSpecificationDocument:H=null,sponsors:z=[]}=e;const G=(e,t)=>{Object(v.d)({actionOrActions:[v.b.CLICK,"Download",e],actionGUIDS:[t.url]})},J=Object(A.a)(s),V=B(c)+" at 11.59pm",W=B(f),Y=Object(O.a)(u)?u:"",Q=[{label:"Job Reference",value:j},{label:"Date Posted",value:W},{label:"Application Closing Date",value:V},{label:"Location",value:m},{label:"Region",value:h},{label:"Salary",value:S},{label:"Basis",value:a},{label:"Contract Type",value:F},{label:"Job Category / Type",value:null==o?void 0:o.entryTitle},{label:"School / Service",value:T},{label:"Hours",value:d},{label:"Interview Date",value:Y},{label:"Package",value:g}].filter(e=>!!e.value);return n.a.createElement(y,{className:r()(t,p.className)},n.a.createElement(D.g,{title:_,subtitle:$,ctas:M,tags:U}),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},Q.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(P,{label:"Job description",document:K,onClick:()=>G("job-description",K)}),n.a.createElement(P,{label:"Candidate pack",document:R,onClick:()=>G("candidate-pack",R)}),n.a.createElement(P,{label:"Person specification",document:H,onClick:()=>G("person-specification",H)}),b&&n.a.createElement(w.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:J})),Object(N.a)(z)&&n.a.createElement("div",{className:p.sponsors},z.filter(e=>!!Object(L.a)(e.image)).map(e=>n.a.createElement(k.a,{className:p.sponsor,key:e.title,src:Object(L.a)(e.image),height:180,width:320,alt:Object(I.a)(e.image),objectFit:"contain"})))))))},$=a(161),M=a(115),U=a(28),F=a(70),K=a(189);function R(){return(R=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})}},651:function(e,t,a){"use strict";var l=a(207);t.a=l.d}}]); //# sourceMappingURL=pages-Job-page.e3b2b32e01887c969a79.mjs.map