1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4847],{4847:function(e,s,i){"use strict";i.r(s);var o=i(7437),n=i(2265);i(4369);var l=i(9376);s.default=e=>{var s,i,r,t,a,c,d,h,m,x;let{minimal:f=!1}=e,j=(0,l.usePathname)(),p=(0,l.useRouter)(),[u,g]=(0,n.useState)(null),[b,v]=(0,n.useState)({}),[k,N]=(0,n.useState)(!0),[w,y]=(0,n.useState)({}),_=e=>{y(s=>({...s,[e]:!s[e]}))};(0,n.useEffect)(()=>{(async()=>{try{let e=await fetch("".concat("https://cms.bridgingandcommercial.co.uk/api","/public/footer")),s=await e.json();console.log("Footer data received:",s),g(s);try{let e=await fetch("".concat("https://cms.bridgingandcommercial.co.uk/api","/public/settings?group=social")),s=await e.json();console.log("Social media data received:",s);let i={};Array.isArray(s)&&s.forEach(e=>{i[e.key]=e.value}),console.log("Processed social settings:",i),v(i)}catch(e){console.warn("Social media settings not available:",e),v({})}}catch(e){console.error("Error fetching footer data:",e)}finally{N(!1)}})()},[]);let C=e=>{if(e.external_link&&e.external_link.trim())window.open(e.external_link,"_blank");else if(e.page_link&&e.page_link.trim()){let s;p.push((s=e.page_link).startsWith("/")?s:"/".concat(s))}else if("category"===e.type&&e.category_location){let s=e.category_location.replace(/^\/#?/,"");if("/"===j||""===j){let e=document.getElementById(s);e?e.scrollIntoView({behavior:"smooth"}):console.warn("Element with ID '".concat(s,"' not found"))}else p.push("/#".concat(s))}else e.slug&&p.push("/".concat(e.slug))};return k?(0,o.jsx)("footer",{className:"main-footer ".concat(f?"minimal"
1:""),children:(0,o.jsxs)("div",{className:"container",style:{display:"flex",justifyContent:"center",padding:"20px"},children:[(0,o.jsx)("div",{className:"footer-loader",style:{width:"30px",height:"30px",border:"2px solid #f3f3f3",borderTop:"2px solid #ffffff",borderRadius:"50%",animation:"footer-spin 1s linear infinite"}}),(0,o.jsx)("style",{children:"\n @keyframes footer-spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n }\n "})]})}):f?(0,o.jsx)("footer",{className:"main-footer minimal",children:(0,o.jsx)("div",{className:"container",children:(0,o.jsx)("div",{className:"footer-content minimal-content",children:(0,o.jsx)("div",{className:"footer-bottom",children:(0,o.jsx)("div",{className:"footer-left",children:(0,o.jsx)("p",{children:"\xa9 2026 B&C. All rights reserved."})})})})})}):(0,o.jsx)("footer",{className:"main-footer",children:(0,o.jsxs)("div",{className:"container",children:[(0,o.jsxs)("div",{className:"footer-content desktop-only",children:[(0,o.jsxs)("div",{className:"footer-top",children:[(0,o.jsx)("div",{className:"footer-logo",children:(0,o.jsx)("img",{src:"https://api.builder.io/api/v1/image/assets/TEMP/dd81c91719e77ec305fe98c50b121f356c63817b?width=468",alt:"B&C Logo"})}),(0,o.jsxs)("div",{className:"footer-columns",children:[(0,o.jsxs)("div",{className:"footer-column",children:[(0,o.jsx)("h4",{children:"Sections"}),(0,o.jsx)("ul",{children:null==u?void 0:null===(s=u.sections)||void 0===s?void 0:s.map((e,s)=>(0,o.jsx)("li",{children:(0,o.jsx)("button",{className:"footer-link-button",onClick:()=>C(e),children:e.name})},s))})]}),(0,o.jsx)("div",{className:"footer-column",children:(0,o.jsx)("ul",{className:"no-heading",children:null==u?void 0:null===(i=u["sections-2"])||void 0===i?void 0:i.map((e,s)=>(0,o.jsx)("li",{children:(0,o.jsx)("button",{className:"footer-link-button",onClick:()=>C(e),children:e.name})},s))})}),(0,o.jsxs)("div",{className:"footer-column",children:[(0,o.jsx)("h4",{children:"Sister Publications"}),(0,o.jsx)("ul",{children:null==u?void 0:null===(r=u.more)||void 0===r?void 0:r.map((e,s)=>(0,o.jsx)("li",{children:(0,o.jsx)("button",{className:"footer-link-button",onClick:()=>C(e),children:e.name})},s))})]}),(0,o.jsx)("div",{className:"footer-column",children:(0,o.jsx)("ul",{className:"no-heading",children:null==u?void 0:null===(t=u["more-2"])||void 0===t?void 0:t.map((e,s)=>(0,o.jsx)("li",{children:(0,o.jsx)("button",{className:"footer-link-button",onClick:()=>C(e),children:e.name})},s))})})]})]}),(0,o.jsxs)("div",{className:"footer-middle",children:[(0,o.jsx)("div",{className:"footer-links",children:null==u?void 0:null===(a=u.bottom)||void 0===a?void 0:a.map((e,s)=>(0,o.jsx)("button",{className:"footer-link-button",onClick:()=>C(e),children:e.name},s))}),(0,o.jsx)("div",{className:"footer-medianett",children:(0,o.jsx)("a",{href:"https://www.medianettpublishing.com/",target:"_blank",rel:"noopener noreferrer","aria-label":"Medianett Publishing",children:(0,o.jsx)("img",{src:"/assets/medianett logo.png",alt:"Medianett Publishing"})})})]}),(0,o.jsxs)("div",{className:"footer-bottom",children:[(0,o.jsx)("div",{className:"footer-left",children:(0,o.jsx)("p",{children:"\xa9 2026 B&C. All rights reserved."})}),(0,o.jsxs)("div",{className:"social-links",children:[(0,o.jsx)("a",{href:b.instagram||"#",target:b.instagram?"_blank":"_self",rel:b.instagram?"noopener noreferrer":"","aria-label":"Instagram",children:(0,o.jsx)("img",{src:"/icons/footer-icons/instagram.svg",alt:"Instagram",width:"28",height:"28"})}),(0,o.jsx)("a",{href:b.tiktok||"#",target:b.tiktok?"_blank":"_self",rel:b.tiktok?"noopener noreferrer":"","aria-label":"TikTok",children:(0,o.jsx)("img",{src:"/icons/footer-icons/tiktok.svg",alt:"TikTok",width:"28",height:"28"})}),(0,o.jsx)("a",{href:b.facebook||"#",target:b.facebook?"_blank":"_self",rel:b.facebook?"noopener noreferrer":"","aria-label":"Threads",children:(0,o.jsx)("img",{src:"/icons/footer-icons/threads.svg",alt:"Threads",width:"28",height:"28"})}),(0,o.jsx)("a",{href:b.twitter||"#",target:b.twitter?"_blank":"_self",rel:b.twitter?"noopener noreferrer":"","aria-label":"X (Twitter)",children:(0,o.jsx)("img",{src:"/icons/footer-icons/x.svg",alt:"X",width:"28",height:"28"})}),(0,o.jsx)("a",{href:b.linkedin||"#",target:b.linkedin?"_blank":"_self",rel:b.linkedin?"noopener noreferrer":"","aria-label":"LinkedIn",children:(0,o.jsx)("img",{src:"/icons/footer-icons/Linkedin.svg",alt:"LinkedIn",width:"28",height:"28"})}),(0,o.jsx)("a",{href:b.youtube||"#",target:b.youtube?"_blank":"_self",rel:b.youtube?"noopener noreferrer":"","aria-label":"YouTube",children:(0,o.jsx)("img",{src:"/icons/footer-icons/youtube.svg",alt:"YouTube",width:"28",height:"28"})})]})]})]}),(0,o.jsxs)("div",{className:"footer-content mobile-only",children:[(0,o.jsxs)("div",{className:"mobile-footer-logos",children:[(0,o.jsx)("div",{className:"footer-logo white",children:(0,o.jsx)("img",{src:"/img/logo-1-02-2-1.png",alt:"B&C White Logo"})}),(0,o.jsx)("div",{className:"footer-medianett",children:(0,o.jsx)("a",{href:"https://www.medianettpublishing.com/",target:"_blank",rel:"noopener noreferrer",children:(0,o.jsx)("img",{src:"/assets/medianett logo.png",alt:"Medianett Publishing"})})})]}),(0,o.jsxs)("div",{className:"mobile-collapsibles",children:[(0,o.jsxs)("div",{className:"mobile-collapsible",children:[(0,o.jsxs)("button",{className:"collapsible-header",onClick:()=>_("sections"),children:[(0,o.jsx)("span",{children:"SECTIONS"}),(0,o.jsx)("span",{className:"chevron-icon ".concat(w.sections?"open":""),children:(0,o.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,o.jsx)("polyline",{points:"7 13 12 18 17 13"}),(0,o.jsx)("polyline",{points:"7 6 12 11 17 6"})]})})]}),(0,o.jsx)("div",{className:"collapsible-wrapper ".concat(w.sections?"open":""),children:(0,o.jsxs)("ul",{className:"collapsible-content",children:[null==u?void 0:null===(c=u.sections)||void 0===c?void 0:c.map((e,s)=>(0,o.jsx)("li",{children:(0,o.jsx)("button",{onClick:()=>C(e),children:e.name})},s)),null==u?void 0:null===(d=u["sections-2"])||void 0===d?void 0:d.map((e,s)=>(0,o.jsx)("li",{children:(0,o.jsx)("button",{onClick:()=>C(e),children:e.name})},s))]})})]}),(0,o.jsxs)("div",{className:"mobile-collapsible",children:[(0,o.jsxs)("button",{className:"collapsible-header",onClick:()=>_("sister"),children:[(0,o.jsx)("span",{children:"SISTER PUBLICATIONS"}),(0,o.jsx)("span",{className:"chevron-icon ".concat(w.sister?"open":""),children:(0,o.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,o.jsx)("polyline",{points:"7 13 12 18 17 13"}),(0,o.jsx)("polyline",{points:"7 6 12 11 17 6"})]})})]}),(0,o.jsx)("div",{className:"collapsible-wrapper ".concat(w.sister?"open":""),children:(0,o.jsxs)("ul",{className:"collapsible-content",children:[null==u?void 0:null===(h=u.more)||void 0===h?void 0:h.map((e,s)=>(0,o.jsx)("li",{children:(0,o.jsx)("button",{onClick:()=>C(e),children:e.name})},s)),null==u?void 0:null===(m=u["more-2"])||void 0===m?void 0:m.map((e,s)=>(0,o.jsx)("li",{children:(0,o.jsx)("button",{onClick:()=>C(e),children:e.name})},s))]})})]}),(0,o.jsxs)("div",{className:"mobile-collapsible",children:[(0,o.jsxs)("button",{className:"collapsible-header",onClick:()=>_("more"),children:[(0,o.jsx)("span",{children:"MORE"}),(0,o.jsx)("span",{className:"chevron-icon ".concat(w.more?"open":""),children:(0,o.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,o.jsx)("polyline",{points:"7 13 12 18 17 13"}),(0,o.jsx)("polyline",{points:"7 6 12 11 17 6"})]})})]}),(0,o.jsx)("div",{className:"collapsible-wrapper ".concat(w.more?"open":""),children:(0,o.jsx)("ul",{className:"collapsible-content",children:null==u?void 0:null===(x=u.bottom)||void 0===x?void 0:x.map((e,s)=>(0,o.jsx)("li",{children:(0,o.jsx)("button",{onClick:()=>C(e),children:e.name})},s))})})]})]}),(0,o.jsx)("div",{className:"mobile-social-links",children:(0,o.jsxs)("div",{className:"social-links",children:[(0,o.jsx)("a",{href:b.instagram||"#",target:"_blank",rel:"noopener noreferrer",children:(0,o.jsx)("img",{src:"/icons/footer-icons/instagram.svg",alt:"Instagram"})}),(0,o.jsx)("a",{href:b.tiktok||"#",target:"_blank",rel:"noopener noreferrer",children:(0,o.jsx)("img",{src:"/icons/footer-icons/tiktok.svg",alt:"TikTok"})}),(0,o.jsx)("a",{href:b.facebook||"#",target:"_blank",rel:"noopener noreferrer",children:(0,o.jsx)("img",{src:"/icons/footer-icons/threads.svg",alt:"Threads"})}),(0,o.jsx)("a",{href:b.twitter||"#",target:"_blank",rel:"noopener noreferrer",children:(0,o.jsx)("img",{src:"/icons/footer-icons/x.svg",alt:"X"})}),(0,o.jsx)("a",{href:b.linkedin||"#",target:"_blank",rel:"noopener noreferrer",children:(0,o.jsx)("img",{src:"/icons/footer-icons/Linkedin.svg",alt:"LinkedIn"})}),(0,o.jsx)("a",{href:b.youtube||"#",target:"_blank",rel:"noopener noreferrer",children:(0,o.jsx)("img",{src:"/icons/footer-icons/youtube.svg",alt:"YouTube"})})]})}),(0,o.jsx)("div",{className:"mobile-legal",children:(0,o.jsxs)("div",{className:"privacy-choices-row",children:[(0,o.jsx)("div",{className:"footer-privacy-choices",children:(0,o.jsx)("button",{className:"cookie-sett
1ings-btn",onClick:()=>p.push("/cookie-preferences"),"aria-label":"Open cookie settings",children:"Cookie Settings"})}),(0,o.jsx)("span",{className:"copyright",children:"\xa9 2026 B&C"})]})})]})]})})}},4369:function(){}}]);
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.