PageSourceSearch

https://www.barchester.com/_next/static/chunks/pages/[[...slug]]-e73c3667db2259f9.js

js barchester.com collected 2026-10-02 06:27:26 UTC 7,963 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[243],{34508:(e,t,i)=>{"use strict";i.d(t,{_:()=>b});var a=i(11608);let r="https://www.barchester.com",l=`${r}/#website`,n=`${r}/#organization`,o=`${r}/images/logos/barchester-healthcare-logo.png`,s=e=>Object.fromEntries(Object.entries(e).filter(e=>{let[,t]=e;return null!=t&&""!==t&&(!Array.isArray(t)||t.length>0)})),d=e=>Array.isArray(e)?e[0]:e,c=e=>{let t=d(e);return"string"==typeof t||"number"==typeof t?String(t):t?.processed??t?.value??t?.name?.[0]?.value??t?.name??""},u=e=>e.replace(/<[^>]*>/g," ").replace(/\s+/g," ").trim(),p=e=>{let t=d(e?.path);return"string"==typeof t?t:t?.alias??e?.path?.alias??e?.url??"/"},m=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/";return/^https?:\/\//i.test(e)?e.replace(/^http:\/\//i,"https://"):new URL(e.startsWith("/")?e:`/${e}`,r).toString()},g=(e,t)=>`${e.replace(/\/$/,"")||r}/#${t}`,f=e=>Object.fromEntries(Object.entries((e=>{try{return e?JSON.parse(e):{}}catch{return{}}})(e?.field_metatags??e?.field_meta_tags)).map(e=>{let[t,i]=e;return[t,"string"==typeof i?i.replaceAll("[site:name]",a.P.SITE_NAME):i]})),h=e=>(function(e){let t=d(e);if(!t)return;if("string"==typeof t)return m(t);let i=d(t.image_style_uri),a=t.uri?.url??t.url??t.src??i?.large??(i&&"object"==typeof i?Object.values(i)[0]:void 0);return"string"==typeof a?m(a):void 0})(e?.field_featured_image??e?.field_image??e?.field_leaderboard_image??e?.field_banner_image??e?.field_main_image??e?.field_images);function _(e){if(!e?.length)return;let t=e.map(e=>({...e,url:"/home"===e.url?"/":e.url}));if(1!==t.length||"/"!==t[0].url)return{"@type":"BreadcrumbList","@id":g(m(t.at(-1)?.url),"breadcrumb"),itemListElement:t.map((e,t)=>({"@type":"ListItem",position:t+1,name:e.title,item:m(e.url)}))}}function y(e,t){let i=[],a=e=>{if(!e||"object"!=typeof e)return;let t=c(e.field_question??e.field_faq_question??e.field_faq_item_title??e.title),r=u(c(e.field_answer??e.field_faq_answer??e.field_body??e.content));
1t&&r&&i.push({"@type":"Question",name:t,acceptedAnswer:{"@type":"Answer",text:r}}),Object.values(e).forEach(a)};return a(e.field_schema_faqs??e.field_paragraph??e.field_faq_s??e.field_faq_items),i.length?{"@type":"FAQPage","@id":g(t,"faq"),mainEntity:i}:void 0}function v(e,t,i){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=m(p(e)),o=_(i),d=h(e);return[s({"@type":t,"@id":g(r,"webpage"),url:r,name:f(e).title??c(e.title)??"Barchester Healthcare",description:f(e).description??u(c(e.field_body)),isPartOf:{"@id":l},about:{"@id":n},publisher:{"@id":n},breadcrumb:o?{"@id":o["@id"]}:void 0,primaryImageOfPage:d?{"@type":"ImageObject",url:d}:void 0,inLanguage:"en-GB",...a}),...o?[o]:[]]}function b(e,t){let i,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],b=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"overview",w=arguments.length>4?arguments[4]:void 0,P=t??e;if(!P)return null;if(a){let e,t,a,r,u,y,v,O,j,A,$,B,E,L;e=p(P).replace(/\/$/,""),t=m("overview"===b?e:`${e}/${b}`),a=c(P.title),r={overview:f(P).title??a,"at-a-glance":`Care & Facilities at ${a}`,"life-at-our-home":`Activities and Life at ${a}`,"meet-the-team":`Meet the Team at ${a}`,gallery:`Gallery and Virtual Tour of ${a}`,"what-our-families-say":`${a} Reviews and Testimonials`,food:`Food and Dining at ${a}`},u=[{id:"home",title:"Home",url:"/",current:!1},{id:"home-name",title:a,url:e,current:"overview"===b},..."overview"===b?[]:[{id:b,title:r[b],url:`${e}/${b}`,current:!0}]],y=w?.length?w:P.field_schema_breadcrumbs,v=_(y?.length?y:u),O=g(m(e),"facility"),j=h(P),A=d(P.field_address)??{},$=c(P.field_location).split(",").map(e=>e.trim()),B=s({"@type":{overview:"WebPage","at-a-glance":"AboutPage","life-at-our-home":"CollectionPage","meet-the-team":"AboutPage",gallery:["CollectionPage","ImageGallery"],"what-our-families-say":"CollectionPage",food:"WebPage"}[b]??"WebPage","@id":g(t,"webpage"),url:t,name:r[b],description:f(P).description,isPartOf:{"@id":l},about:{"@id":O},publisher:{"@id":n},breadcrumb:v?{"@id":v["@id"]}:void 0,primaryImageOfPage:j?{"@type":"ImageObject",url:j}:void 0,inLanguage:"en-GB"}),E=s({"@type":["LocalBusiness","MedicalOrganization"],"@id":O,name:a,url:m(e),image:j,logo:{"@type":"ImageObject",url:o},telephone:c(P.field_telephone_care_enquiries),email:c(P.field_email_address),isAcceptingNewPatients:!0,address:A.address_line1?s({"@type":"PostalAddress",streetAddress:[A.address_line1,A.address_line2].filter(Boolean).join(", "),addressLocality:A.locality,postalCode:A.postal_code,addressCountry:A.country_code}):void 0,geo:2===$.length?{"@type":"GeoCoordinates",latitude:$[0],longitude:$[1]}:void 0,parentOrganization:{"@id":n},medicalSpecialty:"Geriatric",makesOffer:(P.field_key_services??[]).map(e=>({"@type":"Offer",itemOffered:{"@type":"Service",name:c(e.name)}}))}),i=[B,E,...(L="food"===b?{"@type":"Service","@id":g(m(e),"service"),name:"Catering and Dining Service",provider:{"@id":O}}:void 0)?[L]:[],...v?[v]:[]]}else if(["node--blog","node--news","node--resource"].includes(P.type)||p(P).includes("moving-into-a-care-home")){let e,t,a,r,l;t=g(e=m(p(P)),"article"),a=h(P),r=y(P,e),l=s({"@type":"node--blog"===P.type?"BlogPosting":"Article","@id":t,headline:f(P).title??c(P.title),description:f(P).description??u(c(P.field_body)),image:a?[a]:void 0,datePublished:c(P.created??P.field_date),dateModified:c(P.changed??P.created),author:c(P.field_author_name??P.field_author)?{"@type":"Person",name:c(P.field_author_name??P.field_author)}:{"@id":n},publisher:{"@id":n},mainEntityOfPage:{"@id":g(e,"webpage")},inLanguage:"en-GB"}),i=[...v(P,"WebPage",w,{mainEntity:{"@id":t},...r?{hasPart:{"@id":r["@id"]}}:{}}),l,...r?[r]:[]]}else{let e,t,a=p(P),r="/"===a||"/home"===a,l="/help-and-advice"===a||a.startsWith("/choosing-a-care-home"),n=l?(e=new Map,(t=i=>{if(!i||"object"!=typeof i)return;let a=p(i),r=c(i.title??i.name);a.startsWith("/help-and-advice/")&&r&&e.set(a,r),Object.values(i).forEach(t)})(P.field_paragraph),t(P.help_advice_category_list),e.size?{"@type":"ItemList",itemListElement:Array.from(e).map((e,t)=>{let[i,a]=e;return{"@type":"ListItem",position:t+1,name:a,url:m(i)}})}:void 0):void 0,o=y(P,m(a));i=v(P,l?"CollectionPage":"/privacy-policy"===a?"PrivacyPolicy":"WebPage",r?null:w,{description:f(P).description??(r?"At Barchester Healthcare, we are dedicated to giving residents a personalised mix of independence & support. Browse 200+ homes to find your perfect match.":void 0),...n?{mainEntity:n}:{},...o?{hasPart:{"@id":o["@id"]}}:{}}),o&&i.push(o)}return{"@context":"https://schema.org","@graph":[...i,{"@type":"WebSite","@id":l,url:`${r}/`,name:"Barchester Healthcare",publisher:{"@id":n},inLanguage:"en-GB"},{"@type":"Organization","@id":n,name:"Barchester Healthcare",url:`${r}/`,logo:{"@type":"ImageObject",url:o},slogan:"Care as unique as you are.",sameAs:["https://www.facebook.com/BarchesterHealthcare","https://www.instagram.com/BarchesterHealthcare","https://www.youtube.com/user/BarchesterHealthcare","https://www.linkedin.com/company/BarchesterHealthcare"]}]}}},58964:(e,t,i)=>{"use strict";i.r(t),i.d(t,{__N_SSG:()=>m,default:()=>g});var a=i(37876),r=i(77328),l=i.n(r),n=i(30771),o=i(74367),s=i(53290),d=i(75367),c=i(40279),u=i(55736),p=i(34508),m=!0;function g(e){let{resource:t,menus:i,breadcrumbs:r}=e,m=(0,p._)(t,null,!1,void 0,r);return(0,a.jsxs)(o.F.Provider,{value:{resource:t,menus:i,breadcrumbs:r},children:[(0,a.jsxs)(n.P,{resource:t,children:[(0,a.jsx)(s.R,{title:t.title,tags:t.metatag,fieldMetaTags:t.field_meta_tags}),m&&(0,a.jsx)(l(),{children:(0,a.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(m)}})}),(0,a.jsx)(d.v,{resource:t}),(0,a.jsx)(u.A,{nid:t?.drupal_internal__nid})]}),(0,a.jsx)(c.p,{})]})}},74360:(e,t,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[[...slug]]",function(){return i(58964)}])}},e=>{e.O(0,[6593,7263,8182,4116,6690,5336,1346,4994,107,8943,2082,636,8792],()=>e(e.s=74360)),_N_E=e.O()}]);

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.