1"use strict";(self.webpackChunkpp2_content_site=self.webpackChunkpp2_content_site||[]).push([[955],{7599:function(e,t,n){n.r(t);var a=n(7294),o=n(5444),i=n(3553),l=n(4817),r=n(8009),d=n(979),m=n(3556),s=n(8886),c=n(2931),u=(0,d.default)(l.kCb).withConfig({displayName:"news-feed-page__Content",componentId:"sc-ansas6-0"})(["padding-top:3rem;margin-bottom:2rem;@media ","{flex-direction:column;}"],m.Uh.mobile),p=(0,d.default)(l.xuv).withConfig({displayName:"news-feed-page__NewsContainer",componentId:"sc-ansas6-1"})(["@media ","{width:60%;padding-right:2rem;border-right:1px solid ",";}"],m.Uh.desktop,s.rS.colors.lightGrey),f=(0,d.default)(l.xuv).withConfig({displayName:"news-feed-page__JobsContainer",componentId:"sc-ansas6-2"})(["@media ","{width:40%;padding-left:4rem;padding-right:8rem;}@media ","{margin-top:1.5rem;}"],m.Uh.desktop,m.Uh.mobile),g=(0,d.default)(l.kCb).withConfig({displayName:"news-feed-page__LogoContainer",componentId:"sc-ansas6-3"})(["img{padding-bottom:2rem;}@media ","{flex-direction:column;}@media ","{img{width:50%;}}"],m.Uh.desktop,m.Uh.mobile),w=(0,d.default)(l.xuv).withConfig({displayName:"news-feed-page__Divider",componentId:"sc-ansas6-4"})(["width:100%;border-bottom:1px solid ",";padding-top:1rem;"],s.rS.colors.lightGrey),h=(0,d.default)(l.xuv).withConfig({displayName:"news-feed-page__LatestNewsArticleContainer",componentId:"sc-ansas6-5"})(["padding-top:1.25rem;padding-right:1.75rem;margin-bottom:1.75rem;"]),b=(0,d.default)(l.xuv).withConfig({displayName:"news-feed-page__NewsArticleTitle",componentId:"sc-ansas6-6"})(["@media ","{width:85%;}@media ","{width:100%;}"],m.Uh.desktop,m.Uh.mobile),_=(0,d.default)(l.xvT).withConfig({displayName:"news-feed-page__ArticleTitlePrimary",componentId:"sc-ansas6-7"})(["font-size:1.25rem;font-weight:700;margin-bottom:0.625rem !important;color:",";cursor:pointer;"],s.rS.colors.mediumBlue),v=(0,d.default)(l.xvT).withConfig({displayName:"news-feed-page__ArticleTitleSecondary",componentId:"sc-ansas6-8"})(["font-size:1.25rem;font-weight:700;margin-bottom:0.625rem !important;"]),E=(0,d.default)(l.xvT).withConfig({displayName:"news-feed-page__DateText",componentId:"sc-ansas6-9"})(["font-size:0.875rem !important;font-weight:600 !important;"]),C=(0,d.default)(l.Zbd).withConfig({displayName:"news-feed-page__ArticleCard",componentId:"sc-ansas6-10"})(["min-height:130px;margin-top:0.875rem;padding:1.75rem;"]),k=(0,d.default)(l.Zbd).withConfig({displayName:"news-feed-page__MoreNewsCard",componentId:"sc-ansas6-11"})(["margin-top:0.875rem;min-height:5rem;padding:1.75rem;border:2px solid "," !important;border-radius:10px;background-color:",";a{font-weight:600;}@media ","{margin-bottom:0.5rem;}"],s.rS.colors.mediumBlue,s.rS.colors.lightBlue,m.Uh.mobile),y=(0,d.default)(l.xuv).withConfig({displayName:"news-feed-page__ButtonContainer",componentId:"sc-ansas6-12"})(["margin-top:3rem;button{min-width:100%;margin-bottom:1.5rem;}"]),N=(0,d.default)(l.Zbd).withConfig({displayName:"news-feed-page__JobCard",componentId:"sc-ansas6-13"})(["min-height:16rem;margin-top:1rem;box-shadow:0 0 12px -8px rgba(0,0,0,0.35);padding:1.5rem;"]),x=(0,d.default)(l.xuv).withConfig({displayName:"news-feed-page__LinkContainer",componentId:"sc-ansas6-14"})(["margin-top:1.5rem;"]),I=d.default.div.withConfig({displayName:"news-feed-page__TruncatedContent",componentId:"sc-ansas6-15"})(["overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:",";-webkit-box-orient:vertical;"],(function(e){return e.lines?e.lines:3})),M=d.default.span.withConfig({displayName:"news-feed-page__JobContentText",componentId:"sc-ansas6-16"})(["font-size:0.875rem;"]);function T(e){if("undefined"!=typeof document){var t=document.createElement("div");return t.innerHTML=(null==e?void 0:e.trim())||"",Array.from(t.getElementsByTagName("p")).map((function(e){return e.outerHTML})).join("")}}function D(e){return e&&Date.parse(e)||0}function S(e){return 0!==e?(0,c.default)(e,"do MMMM yyyy"):""}var j=function(e){var t=e.latestNewsTitle,n=e.article,o=n.title,i=n.content,r=n.pubDate,d=n.link;return a.createElement(h,null,a.createElement(v,{as:"h2"},t),a.createElement(_,{as:"h2",onClick:function(){window.open(d)}},o),a.createElement(E,null,S(r)),a.createElement("span",{dangerouslySetInnerHTML:{__html:i}}),a.createElement(l.kCb,{justifyContent:"end"},a.createElement("a",{href:d,target:"_blank",rel:"noopener"},"Read more")))},L=function(e){var t=e.article,n=t.title,o=t.content,i=t.pubDate,r=t.link;return a.createElement(C,null,a.createElement(l.kCb,{justifyContent:"space-between"},a.createElement(b,null,a.createElement(_,{as:"h2",onClick:function(){window.open(r)}},n)),a.createElement("a",{href:r,target:"_blank",rel:"noopener",className:"hide-mobile"},"Read more")),a.createElement(E,null,S(i)),a.createElement(I,{lines:1},a.createElement("span",{dangerouslySetInnerHTML:{__html:o}})),a.createElement(x,{className:"show-mobile"},a.createElement("a",{href:r,target:"_blank",rel:"noopener"},"Read more")))},P=function(e){var t=e.job,n=t.title,o=t.content,i=t.pubDate,l=t.link;return a.createElement(N,null,a.createElement(_,{as:"h2",onClick:function(){window.open(l)}},n),a.createElement(E,null,S(i)),a.createElement(I,{lines:2},a.createElement(M,{dangerouslySetInnerHTML:{__html:o}})),a.createElement(x,null,a.createElement("a",{href:l,target:"_blank",rel:"noopener"},"Find out more")))};t.default=function(e){var t,n,d,m,s,c,h,b,_,v,E,C,N,x,I,M,S,U,H=e.data,A=e.page
1Context,F=null===(t=H.kontentItemNewsFeedPage)||void 0===t?void 0:t.elements,z=((null===(n=H.allFeedNewsFeed)||void 0===n?void 0:n.edges)||[]).map((function(e){return{title:e.node.title,content:T(e.node.content),pubDate:D(e.node.parsedPubDate),link:e.node.link}})).sort((function(e,t){return t.pubDate-e.pubDate})).slice(0,8),B=((null===(d=H.allFeedJobsFeed)||void 0===d?void 0:d.edges)||[]).map((function(e){return{title:e.node.title,content:e.node.content,pubDate:D(e.node.parsedPubDate),link:e.node.link}})).sort((function(e,t){return t.pubDate-e.pubDate})).slice(0,3),J=null==F||null===(m=F.job_search_page)||void 0===m||null===(s=m.value)||void 0===s||null===(c=s[0])||void 0===c||null===(h=c.fields)||void 0===h?void 0:h.full_url;if(!H.site||!H.site.siteMetadata||!F)throw Error("Bad configuration");return a.createElement(i.A,{pageContext:A,siteMetadata:H.site.siteMetadata,title:null==F||null===(b=F.title)||void 0===b?void 0:b.value,subtitle:null===(_=F.title)||void 0===_?void 0:_.value,breadcrumbs:null===(v=H.kontentItemNewsFeedPage)||void 0===v||null===(E=v.fields)||void 0===E?void 0:E.breadcrumbs},a.createElement(u,null,a.createElement(p,null,a.createElement(r.Ho,{content:F.content,pageMap:A.relatedPageMap}),a.createElement(w,{className:"hide-mobile"}),z[0]?a.createElement(j,{article:z[0],latestNewsTitle:(null===(C=F.latest_news_title)||void 0===C?void 0:C.value)||"Latest News"}):null,z.slice(1,8).map((function(e,t){return a.createElement(L,{article:e,key:t})})),a.createElement(k,null,a.createElement(r.Ho,{content:F.more_articles_footer_text,pageMap:A.relatedPageMap}))),a.createElement(f,null,a.createElement(g,null,a.createElement("img",{src:null===(N=F.planner_jobs_logo)||void 0===N||null===(x=N.value)||void 0===x||null===(I=x[0])||void 0===I?void 0:I.url}),a.createElement("img",{src:null===(M=F.rtpi_logo)||void 0===M||null===(S=M.value)||void 0===S||null===(U=S[0])||void 0===U?void 0:U.url})),a.createElement(r.Ho,{content:F.jobs_section_content,pageMap:A.relatedPageMap}),a.createElement(y,null,J?a.createElement(l.zxk,{onClick:function(){return(0,o.c4)(J)}},"Search job list"):null,a.createElement(l.zxk,{onClick:function(){return window.open("https://recruiter.theplanner.co.uk","_blank")},variant:"secondary"},"Post a vacancy")),B.map((function(e,t){return a.createElement(P,{job:e,key:t})})))))}}}]);
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.