1import{h as n,c as i,j as e}from"./styledComponents-n4UW4kpA.js";import{F as y,m as s,g as x,P as r}from"./index-Dbx1gyta.js";import{a as l}from"./react-C3MRYTMn.js";import{S as j}from"./Breadcrumb-BZLgnJH6.js";import v from"./ContactCard-5ocga3K9.js";import{b as _}from"./brandTextCheck-BtVFi4-W.js";import{g as w}from"./imageHelpers-rj6UfTAf.js";import{P as S}from"./Picture-D6-DCGcV.js";import"./redux-DEt5ekS8.js";import"./SsrLink-B3K7paPT.js";import"./urlHelpers-szXc1bAB.js";import"./Icon-CkZJfHnP.js";import"./buttons.styles-ClYbUcfj.js";import"./polished.esm-CYsXSD1d.js";import"./index-g6qz2-ej.js";import"./useObserver-CZyhJdvV.js";const k=n.div.withConfig({displayName:"StaffHeaderstyles__StyledStaffHeader",componentId:"sc-5n4tjv-0"})(["",""],({theme:t,image:o})=>i(["min-height:325px;position:relative;margin-bottom:90px;"," ","{min-height:250px;margin-bottom:60px;}&::after{content:'';background-color:",";position:absolute;height:100%;width:100%;top:0;left:0;}"],o?` 2 background-image: url(${o}); 3 background-size: cover; 4 background-repeat: no-repeat; 5 background-position: center center;`:`background-color: ${t.colours.brand.a}`,s(t.breakpoints.a),y(t.colours.brand.a,.7))),C=n.div.withConfig({displayName:"StaffHeaderstyles__Content",componentId:"sc-5n4tjv-1"})(["",";",""],x,({theme:t})=>i(["position:relative;left:0;top:0;padding-top:60px;width:100%;z-index:1;height:325px;","{height:250px;}&::after{content:'';background:",";margin:0 15px;width:calc(100% - 30px);height:22px;z-index:2;position:absolute;bottom:0;left:0;border-top-left-radius:",";border-top-right-radius:",";}"],s(t.breakpoints.a),t.colours.background.a,t.style.radius.general,t.style.radius.general)),H=n.div.withConfig({displayName:"StaffHeaderstyles__ImageWrapper",componentId:"sc-5n4tjv-2"})(["",""],({theme:t})=>i(["position:relative;top:26px;height:140px;width:140px;z-index:3;border-radius:50%;border:1px solid ",";overflow:hidden;","{position:absolute;right:20px;}","{right:100px;}"],t.colours.accent.keyline,s(t.breakpoints.a),s(t.breakpoints.b))),N=n.div.withConfig({displayName:"StaffHeaderstyles__Row",componentId:"sc-5n4tjv-3"})(["",""],({theme:t})=>i(["display:flex;flex-direction:column;align-items:center;position:relative;","{flex-direction:row;justify-content:space-between;align-items:flex-start;}"],s(t.breakpoints.a))),I=n.div.withConfig({displayName:"StaffHeaderstyles__Left",componentId:"sc-5n4tjv-4"})(["",""],({theme:t})=>i(["display:flex;flex-direction:column;margin-top:30px;align-items:center;","{align-items:flex-start;}"],s(t.breakpoints.a))),R=n.div.withConfig({displayName:"StaffHeaderstyles__Right",componentId:"sc-5n4tjv-5"})([""]),T=n.h5.withConfig({displayName:"StaffHeaderstyles__Qualifications",componentId:"sc-5n4tjv-6"})(["",""],({theme:t})=>i(["color:",";margin-bottom:0;"],t.colours.text.reverse)),W=n.h2.withConfig({displayName:"StaffHeaderstyles__Name",componentId:"sc-5n4tjv-7"})(["",""],({theme:t})=>i(["color:",";text-transform:none;margin-bottom:5px;"],t.colours.text.reverse)),z=n.div.withConfig({displayName:"StaffHeaderstyles__ContactWrapper",componentId:"sc-5n4tjv-8"})([""," ",""],x,({theme:t})=>i(["&::before{content:'';display:block;height:1px;width:100%;background-color:",";margin-bottom:",";}"],t.colours.accent.keyline,t.spacing.inner)),B=({backgroundImage:t,image:o,name:c,jobTitle:d,qualifications:f,contact:p,breadcrumb:m})=>{const u=l.useRef(null),[a,h]=l.useState(null),[g,b]=l.useState(null);return l.useEffect(()=>{a===null&&h(u.current)},[a]),l.useEffect(()=>{a&&(t!=null&&t.url)&&w({url:t.url,ref:a,state:b})},[t,a,o]),e.jsxs(e.Fragment,{children:[e.jsx(k,{image:g,ref:u,children:e.jsxs(C,{children:[m&&e.jsx(j,{breadcrumb:m,isInverted:!0}),e.jsxs(N,{children:[e.jsxs(I,{children:[c&&e.jsx(W,{dangerouslySetInnerHTML:{__html:_(c)}}),e.jsxs(T,{children:[f&&d&&`${f},`," ",d]})]}),e.jsx(R,{children:o&&o.url&&e.jsx(H,{children:e.jsx(S,{url:o==null?void 0:o.url,alt:o==null?void 0:o.altText,ratio:[1,1],noAnimation:!0})})})]})]})}),p&&p.length>0&&e.jsx(z,{children:e.jsx(v,{contact:p})})]})};B.propTypes={backgroundImage:r.shape({url:r.string,altText:r.string}),breadcrumb:r.array,image:r.shape({url:r.string,altText:r.string}),name:r.string,jobTitle:r.string,qualifications:r.string,contact:r.array};export{B as default}; 6//# sourceMappingURL=StaffHeader-DAUNyg8C.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.