1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[905],{41459:(e,t,a)=>{a.r(t),a.d(t,{default:()=>N,mapStateToProps:()=>b});var o=a(16762),r=a.n(o),n=a(96540),s=a(71468),l=a(48231),i=a(79840),c=a(44206),d=a(5313),p=a(62383),m=a.n(p),h=a(97463),u=a(22514),y=a(84976),g=a(7066),v=a(75930),f=a(17904),A=a(62524);const S={featureStory:(0,v.AH)("{\n margin-bottom: 27px;\n border-bottom: 1px solid ".concat(f.Tj.lightGrey2,";\n padding-bottom: 27px;\n }")),topicStyle:(0,v.AH)("{\n margin-bottom: 9px;\n\n @media screen and (min-width: ".concat(f.T5.medium,") {\n margin-bottom: 3px;\n }\n }")),featureStoryAuthor:(0,v.AH)("{\n font-family: ".concat(A.A.sansSerif,";\n font-weight: 500;\n font-size: 17px;\n line-height: 21px;\n letter-spacing: 0.6px;\n }")),featureStoryCover:(0,v.AH)("{\n margin-bottom: 21px;\n\n @media screen and (min-width: ".concat(f.T5.medium,") {\n margin-bottom: 15px;\n }\n\n img {\n width: 100%;\n max-width: 100%;\n height: auto;\n }\n }")),featureStoryTitle:(0,v.AH)("{\n margin-top: 0;\n margin-bottom: 9px;\n\n @media screen and (min-width: ".concat(f.T5.medium,") {\n line-height: 42px;\n font-size: 33px;\n }\n }")),featureStorySummary:(0,v.AH)("{\n margin-bottom: 15px;\n\n p:last-child {\n margin-bottom: 0;\n }\n }")},x=e=>{var{slug:t="",title:a="",summary:o="",eyebrow:r="",coverMedia:s={node:{}},authors:l=[{name:"",url:""}]}=e;return n.createElement("div",{className:S.featureStory,"data-testid":"school-feature-story"},n.createElement("div",{className:S.featureStoryCover},(0,g.Vk)(null==s?void 0:s.node,"school-feature-story__img","SchoolFeatureStory",t)),n.createElement("div",{className:"eyebrow ".concat(S.topicStyle)},r),n.createElement("h3",{className:S.featureStoryTitle,"data-testid":"feature-story-title"},n.createElement(y.N_,{to:"/".concat(t),className:"grey-title-link"},a)),n.createElement("div",{className:S.featureStorySummary,dangerouslySetInnerHTML:{__html:o}}),l.map(((e,t)=>n.createElement("span",{key:t},!!t&&", ",n.createElement(y.N_,{className:S.featureStoryAuthor,to:"/".concat(e.url)},e.name)))))};var C,w=a(54750),T=a(47089);const E=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{id:"",title:"",stw:!1,schoolTypes:"",grades:"",schoolType:"",schoolArea:"",explainer:"",locality:"",administrativeArea:"",address:"",location:{},country:"",featureStory:{},relatedContent:[],nextCall:"",metatags:{}};return n.createElement("div",{className:"container","data-testid":"school-view"},t.title?n.createElement("div",{className:"page-inner page-inner--content"},n.createElement(T.A,{type:"WebPage",seoProps:{title:null==t?void 0:t.title,metatags:null==t?void 0:t.metatags}}),n.createElement(h.A,{stw:t.stw,schoolTypes:t.schoolTypes,title:t.title,inset:!1,grades:t.grades,schoolType:t.schoolType,schoolArea:t.schoolArea,explainer:t.explainer,locality:t.locality,administrativeArea:t.administrativeArea,location:t.location,country:t.country,address:t.address}),!m()(t.featureStory)&&n.createElement(x,{title:t.featureStory.title,slug:"".concat((0,g.uv)(t.featureStory.uri)),summary:null===(e=t.featureStory.acfFields)||void 0===e?void 0:e.intro,authors:t.featureStory.coAuthors,eyebrow:t.featureStory.eyebrowComputed,coverMedia:t.featureStory.featuredImage}),t.relatedContent.length>0&&n.createElement(w.A,{content:t.relatedContent,loadMore:()=>{},nextCall:t.nextCall,id:t.id,isSchool:!0,paginate:!0})):C||(C=n.createElement(u.A,null)))};class _ extends n.Component{componentDidMount(){var{id:e,dispatch:t,params:a,title:o}=this.props,n=(0,d.A)(r()(this.props,"location",{}));if(-1!==n.previewIndex&&e!==n.post_id)this.props.dispatch((0,l.rr)("404"));else if(""===o){var s;t((0,i.bh)(null===(s=a.urlSlug)||void 0===s?void 0:s.toLowerCase()))}}UNSAFE_componentWillUpdate(e){var t,{dispatch:a,params:o}=this.props,n=r()(e,"params.urlSlug","").toLowerCase();n!==(null===(t=o.urlSlug)||void 0===t?void 0:t.toLowerCase())&&a((0,i.bh)(n))}render(){return n.createElement(E,{stw:this.props.stw,schoolTypes:this.props.schoolTypes,title:this.props.title,grades:this.props.grades,schoolType:this.props.schoolType,schoolArea:this.props.schoolArea,explainer:this.props.explainer,locale:this.props.locale,country:this.props.country,locality:this.props.locality,administrativeArea:this.props.administrativeArea,address:this.props.address,featureStory:this.props.featureStory,relatedContent:this.props.relatedContent,nextCall:this.props.nextCall,id:this.props.id,metatags:this.props.metatags})}}_.defaultProps={id:"",vid:"",nextCall:"",title:"",stw:!1,schoolTypes:"",grades:"",schoolType:"",schoolArea:"",explainer:"",locality:"",administrativeArea:"",address:"",locale:{},country:"",featureStory:{},relatedContent:[],metatags:{}};var b=(e,t)=>{var a=(0,d.A)(t.location).name.toLowerCase(),{id:o,vid:n,stw:s,schoolTypes:l,title:i,grades:c,schoolType:p,schoolArea:m,explainer:h,locale:u,country:y,locality:g,administrativeArea:v,address:f,relatedContent:A,featureStory:S,metatags:x,nextCall:C}=r()(e,"schools['".concat(a,"']"),{});return{id:o,vid:n,stw:s,schoolTypes:l,title:i,grades:c,schoolType:p,schoolArea:m,explainer:h,locale:u,country:y,locality:g,administrativeArea:v,address:f,relatedContent:A,featureStory:S,metatags:x,nextCall:C}};const N=(0,c.h)((0,s.Ng)(b)(_))}}]);
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.