1import{h as s,c as e,u as T,j as r}from"./styledComponents-n4UW4kpA.js";import{a as I}from"./react-C3MRYTMn.js";import{b as w}from"./brandTextCheck-BtVFi4-W.js";import{g as z,m as i,W as N,a as R,h as y,i as G}from"./index-Dbx1gyta.js";import{I as H}from"./Icon-CkZJfHnP.js";import{I as M}from"./index-BmvSjeV4.js";import{S as E}from"./SharedFooter-C6OhZqQj.js";import{S as L}from"./SsrLink-B3K7paPT.js";import"./index-g6qz2-ej.js";import"./redux-DEt5ekS8.js";import"./imageHelpers-rj6UfTAf.js";import"./componentHelpers-BPSUhRTF.js";import"./urlHelpers-szXc1bAB.js";const V=s.div.withConfig({displayName:"T2Footerstyles__StyledFooter",componentId:"sc-lw3c56-0"})(["",""],({theme:o})=>e` 2 background-color: ${o.style.footer.variant==="b"?o.colours.brand.a:o.colours.button.secondary.background}; 3 ${o.style.footer.variant==="b"?`border-top: 1px solid ${o.colours.accent.keyline};`:""} 4 5 small { 6 color: ${o.style.footer.variant==="b"?o.colours.text.sharedFooter:o.colours.link.nav}; 7 display: block; 8 font-size: 10px; 9 line-height: 15px; 10 margin: 0; 11 } 12 `),W=s.div.withConfig({displayName:"T2Footerstyles__Row",componentId:"sc-lw3c56-1"})([""," ",""],z,({theme:o})=>e` 13 display: flex; 14 flex-direction: column; 15 padding: ${o.style.footer.variant==="b"?"20px 0":`${o.spacing.outer.medium} 0`}; 16 ${o.style.footer.variant==="b"?`background-color: ${o.colours.brand.a};`:""} 17 18 ${i(o.breakpoints.a)} { 19 flex-direction: row; 20 justify-content: space-between; 21 padding: ${o.spacing.outer.medium} 3%; 22 } 23 24 #teconsent a { 25 text-decoration: none; 26 color: ${o.style.footer.variant==="b"?o.colours.text.reverse:o.colours.link.default}; 27 font-weight: ${o.style.footer.variant==="b"?"400":"500"}; 28 29 ${i(o.breakpoints.b)} { 30 font-size: 16px; 31 } 32 33 &:hover, 34 &:focus, 35 &:active { 36 color: ${o.colours.link.rollover}; 37 } 38 } 39 `),u=s.div.withConfig({displayName:"T2Footerstyles__Column",componentId:"sc-lw3c56-2"})(["",""],({theme:o})=>e` 40 flex: 1; 41 padding: 0 5%; 42 43 ${i(o.breakpoints.a)} { 44 padding: 0 4% 0 0; 45 46 &:last-of-type { 47 padding: 0; 48 } 49 } 50 `),A=s.div.withConfig({displayName:"T2Footerstyles__StyledFooterGroupedLinks",componentId:"sc-lw3c56-3"})(["ul{"," ","}",""],N,R,({theme:o,$isIconList:a})=>e` 51 margin-bottom: ${o.style.footer.variant==="b"?"20px":"40px"}; 52 53 ${i(o.breakpoints.a)} { 54 ${o.style.footer.variant==="b"?`margin-bottom: 0; 55 + * { 56 margin-top: 40px; 57 }`:"margin-bottom: 40px;"} 58 } 59 60 .social-icon { 61 ${o.style.footer.variant==="b"?`width: 28px !important; 62 height 28px !important; 63 margin-right: 5px !important;`:""} 64 } 65 66 h6 { 67 ${o.style.footer.variant==="b"?`color: ${o.colours.brand.b}; 68 margin-bottom: 20px;`:`&:after { 69 content: ""; 70 height: 1px; 71 width: 100%; 72 background: ${o.colours.brand.b}; 73 display: block; 74 margin-top: 10px; 75 }`} 76 } 77 78 ul { 79 font-weight: 500; 80 display: ${a?"flex":"block"}; 81 flex-wrap: ${a?"wrap":"nowrap"}; 82 ${o.style.footer.variant==="b"?"flex-wrap: nowrap;":""} 83 84 li { 85 margin-bottom: ${a?"0":"15px"}; 86 87 a { 88 text-decoration: none; 89 color: ${o.style.footer.variant==="b"?o.colours.text.reverse:o.colours.link.default}; 90 font-weight: ${o.style.footer.variant==="b"?"400":"500"}; 91 92 ${i(o.breakpoints.b)} { 93 font-size: 16px; 94 } 95 96 &:hover, 97 &:focus, 98 &:active { 99 color: ${o.colours.link.rollover}; 100 } 101 } 102 103 &:last-child { 104 margin-bottom: 0; 105 } 106 } 107 } 108 `),B=s.div.withConfig({displayName:"T2Footerstyles__CharteredLogo",componentId:"sc-lw3c56-4"})(["",""],({theme:o})=>e` 109 margin-bottom: 40px; 110 display: flex; 111 flex-flow: column wrap; 112 ${o.style.footer.variant==="b"?"align-items: flex-start;":`text-align: center; 113 align-items: center;`}; 114 115 ${i(o.breakpoints.a)} { 116 ${o.style.footer.variant==="b"?"margin-bottom: 0;":"margin-top: 30px;"}; 117 } 118 119 ${o.style.footer.variant==="b"?`h6 { 120 color: ${o.colours.brand.b}; 121 margin-bottom: 20px; 122 }`:`&:before { 123 content: ""; 124 height: 1px; 125 width: 100%; 126 background: ${o.colours.brand.b}; 127 display: block; 128 margin-bottom: 15px; 129 }`}; 130 131 img { 132 ${o.style.footer.variant==="b"?`height: 120px; 133 width: auto;`:`height: 100%; 134 width: 100%; 135 max-width: 160px; 136 max-height: 160px; 137 margin-top: 30px;`}; 138 139 ${i(o.breakpoints.b)} { 140 ${o.style.footer.variant==="b"?"height: 145px;":""}; 141 } 142 143 &:first-of-type { 144 margin-top: 0; 145 } 146 } 147 `);s.a.withConfig({displayName:"T2Footerstyles__FooterLink",componentId:"sc-lw3c56-5"})(["",""],({theme:o})=>e` 148 font-size: ${y(o,"fontSize","functional",o.breakpoints.aa)}; 149 ${i(o.breakpoints.a)} { 150 font-size: ${y(o,"fontSize","functional",o.breakpoints.a)}; 151 } 152 ${i(o.breakpoints.ba)} { 153 font-size: ${y(o,"fontSize","functional",o.breakpoints.ba)}; 154 } 155 `);const D=s.div.withConfig({displayName:"T2Footerstyles__Logo",componentId:"sc-lw3c56-6"})(["",""],({theme:o})=>e` 156 display: flex; 157 flex-wrap: wrap; 158 padding: 0 5%; 159 padding-bottom: 8px; 160 order: 4; 161 162 ${i(o.breakpoints.a)} { 163 order: initial; 164 margin-right: 25px; 165 ${o.style.footer.variant==="b"?"padding: 0 4% 0 0; margin-right: 10px;":""}; 166 } 167 168 ${i(o.breakpoints.b)} { 169 margin-right: 45px; 170 } 171 172 a { 173 cursor: pointer; 174 width: 100%; 175 margin-bottom: 0; 176 display: flex; 177 padding-top: 20px; 178 border-top: 1px solid ${o.colours.link.underline}; 179 180 ${i(o.breakpoints.a)} { 181 border: 0; 182 padding: 0; 183 } 184 } 185 `),U=s.span.withConfig({displayName:"T2Footerstyles__CopyrightContent",componentId:"sc-lw3c56-7"})(["",""],({theme:o})=>e` 186 display: none; 187 color: ${o.style.footer.variant==="b"?o.colours.text.sharedFooter:o.colours.text.reverse}; 188 font-size: 10px; 189 line-height: 15px; 190 margin: 20px 0 0; 191 `),J=s.div.withConfig({displayName:"T2Footerstyles__FooterLogo",componentId:"sc-lw3c56-8"})(["",""],({theme:o})=>e` 192 display: flex; 193 194 img { 195 max-width: 100%; 196 height: auto; 197 width: 98px; 198 199 ${i(o.breakpoints.a)} { 200 ${o.style.footer.variant==="b"?"width: 110px;":""}; 201 } 202 203 ${i(o.breakpoints.b)} { 204 width: 140px; 205 } 206 } 207 `),C=M,$=({data:o,$isIconList:a})=>{var t,x,b;const l=T(),p=(x=(t=l==null?void 0:l.style)==null?void 0:t.footer)==null?void 0:x.variant;return r.jsx(r.Fragment,{children:(o==null?void 0:o.list)&&o.list.length>0&&r.jsxs(A,{$isIconList:a,children:[(o==null?void 0:o.title)&&r.jsx("h6",{dangerouslySetInnerHTML:{__html:w(o.title)}}),r.jsx("ul",{children:(b=o==null?void 0:o.list)==null?void 0:b.map((n,c)=>r.jsx("li",{children:n&&n.url&&(n.text||n.icon)&&r.jsxs(L,{onClick:()=>G("footer",{footer_item:n.text}),href:n.url,target:n.target,ariaLabel:n.text||n.icon,children:[r.jsx("span",{dangerouslySetInnerHTML:{__html:w(n.text)}}),n.icon&&r.jsx(H,{icon:p==="b"?`${n.icon}white`:n.icon,height:"32px",width:"32px",marginRight:"10px"})]})},`data-${n.text||"item"}-${c}`))})]})})},so=({quickLinks:o,getInTouch:a,connect:l,charteredLogo:p,logo:t,backToTop:x,siteLink:b,footerLink:n,copyright:c,accreditation:f})=>{var v,h,k,m,j,_;const g=T().style.footer.variant;return r.jsxs(V,{children:[r.jsxs(W,{children:[g==="b"&&r.jsxs(D,{children:[r.jsx(L,{href:(v
207=t==null?void 0:t.link)==null?void 0:v.url,target:(h=t==null?void 0:t.link)==null?void 0:h.target,ariaLabel:(k=t==null?void 0:t.link)==null?void 0:k.text,children:r.jsx(J,{children:r.jsx(C,{src:(m=t==null?void 0:t.image)==null?void 0:m.url,alt:(j=t==null?void 0:t.image)==null?void 0:j.alternateText})})}),c&&r.jsx(U,{dangerouslySetInnerHTML:{__html:w(c)}})]}),o&&r.jsx(u,{$hasCharteredLogo:!!(p&&p.url),children:r.jsx($,{data:o})}),(a||l)&&r.jsxs(u,{$hasCharteredLogo:!!(p&&p.url),children:[a&&r.jsx($,{data:a}),l&&r.jsx($,{data:l,$isIconList:!0})]}),f&&r.jsx(u,{$hasCharteredLogo:!!((_=f[0])!=null&&_.logo),children:r.jsxs(B,{children:[g==="b"&&r.jsx("h6",{children:"Accreditation"}),f.map((d,S)=>{var F;return r.jsx(I.Fragment,{children:((F=d==null?void 0:d.logo)==null?void 0:F.url)&&r.jsx(C,{src:d.logo.url,alt:d.logo.altText||"footer accreditation logo"})},`accreditation-${S}`)})]})})]}),r.jsx(E,{invertTopRow:!0,logo:t,backToTop:x,siteLink:b,footerLink:n,copyright:c,t2FooterNew:g==="b"&&!0})]})};export{so as default}; 208//# sourceMappingURL=T2Footer-CNEfe4tx.js.map
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.