PageSourceSearch

https://www.matheson.com/_next/static/chunks/app/layout-c197309d1fe72540.js

js matheson.com collected 2026-10-02 05:56:44 UTC 50,470 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{2071:()=>{},4563:(e,t,l)=>{"use strict";l.d(t,{default:()=>v});var n=l(95155),r=l(12115),a=l(20063),s=l(35730),o=l(31510),i=l(23444),c=l(64278),d=l(72410),u=l(52619),h=l.n(u),m=l(83390),f=l(97663),p=l(25201);let x=e=>{let t=document.createElement("textarea");return t.innerHTML=e,t.value},v=e=>{let{popularSearches:t=[]}=e,{open:l,closeModal:u}=(0,m.v)(),[v,g]=(0,r.useState)(""),[y,w]=(0,r.useState)([]),[b,j]=(0,r.useState)(!1),k=(0,r.useRef)(null),N=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:768,[t,l]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{let t=()=>l(window.innerWidth<e);return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[e]),t}(),S=(0,r.useRef)(null),L=(0,a.useRouter)(),C=(0,r.useContext)(d.z),[E,T]=(0,r.useState)(!1),[M,P]=(0,r.useState)(!1),F=(0,r.useRef)(null),A=(0,r.useRef)(null),_=(0,r.useRef)(!1);(0,r.useEffect)(()=>(A.current&&clearTimeout(A.current),v&&v.trim().length>=2?A.current=setTimeout(async()=>{j(!0);try{let e=(await f.KB.search([{indexName:f.TQ.indices.all,params:{query:v.trim(),hitsPerPage:20,restrictSearchableAttributes:["post_title"],attributesToRetrieve:["post_title","post_type","post_type_label","permalink","post_excerpt","breadcrumb_text","taxonomies","is_sticky"],typoTolerance:!0}}])).results[0],t=e&&e.hits?e.hits.filter(e=>{if("people"===e.post_type){var t,l;return null==(l=e.taxonomies)||null==(t=l.roles)?void 0:t.includes("Partner")}return!0}):[];if(console.log("[SearchModal] Title search results:",t.length,"hits"),0===t.length){console.log("[SearchModal] No title results, searching content...");let e=(await f.KB.search([{indexName:f.TQ.indices.all,params:{query:v.trim(),hitsPerPage:20,restrictSearchableAttributes:["post_title","content","taxonomies"],attributesToRetrieve:["post_title","post_type","post_type_label","permalink","post_excerpt","breadcrumb_text","taxonomies","is_sticky"],typoTolerance:!0}}])).results[0];console.log("[SearchModal] Content search results:",e),e&&e.hits&&(t=e.hits.filter(e=>{if("people"===e.post_type){var t,l;return null==(l=e.taxonomies)||null==(t=l.roles)?void 0:t.includes("Partner")}return!0}),console.log("[SearchModal] Content results found:",t.length,"hits"))}let l=t.map(e=>{var t,l;let n=x(e.breadcrumb_text||e.post_type_label||"");!n&&e.post_type&&(n=({people:"People",insights:"Insights",post:"News",news:"News",experiences:"Experience",experience:"Experience",service:"Services",services:"Services",page:"Pages",expertise:"Expertise","knowledge-hub":"Knowledge Hub"})[e.post_type]||e.post_type);let r=e.primary_service||e.primary_services||(null==(l=e.taxonomies)||null==(t=l.services)?void 0:t[0]);if(r){let e=x(r);n="".concat(n," - ").concat(e)}return{url:(0,p.hL)(e.permalink||""),title:x(e.post_title||""),category:n,excerpt:x(e.post_excerpt||""),postType:e.post_type}}).sort((e,t)=>{let l={page:1,people:2,service:3,services:3,expertise:3,experiences:4,experience:4,insights:5,post:6,news:6,"knowledge-hub":7},n=l[e.postType||""]||99,r=l[t.postType||""]||99;if(n===r){let l=(e.url.match(/\//g)||[]).length,n=(t.url.match(/\//g)||[]).length;if(l!==n)return l-n}return n-r});w(l.slice(0,5))}catch(e){console.error("Search error:",e),w([])}finally{j(!1)}},300):(w([]),j(!1)),()=>{A.current&&clearTimeout(A.current)}),[v]),(0,r.useEffect)(()=>{l?(T(!0),P(!1),setTimeout(()=>{k.current&&(k.current.focus(),C&&C.stop()),setTimeout(()=>P(!0),100)},150)):(T(!1),P(!1))},[l,C]),(0,r.useEffect)(()=>{l&&F.current?requestAnimationFrame(()=>{F.current.style.height="100vh",F.current.style.transform="translateY(0)"}):F.current&&(F.current.style.height="0",F.current.style.transform="translateY(50%)")},[l]);let D=r.useCallback(()=>{u(),g(""),w([]),_.current=!0,k.current&&k.current.blur()},[u]);return((0,r.useEffect)(()=>{if(!l)return;let e=e=>{"Escape"===e.key&&D()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[l,D]),(0,r.useEffect)(()=>{if(!l)return;let e=e=>{var t;if("Tab"!==e.key)return;let l=null==(t=F.current)?void 0:t.querySelectorAll('input, button, a[href], [tabindex]:not
1([tabindex="-1"])');if(!l||0===l.length)return;let n=l[0],r=l[l.length-1],a=document.activeElement;e.shiftKey&&a===n?(e.preventDefault(),r.focus()):e.shiftKey||a!==r||(e.preventDefault(),n.focus())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[l]),(0,r.useEffect)(()=>(l&&C?(C.stop(),document.body.style.setProperty("overflow","hidden","important"),document.documentElement.style.setProperty("overflow","hidden","important")):C&&(C.start(),document.body.style.removeProperty("overflow"),document.documentElement.style.removeProperty("overflow")),()=>{C&&C.start(),document.body.style.removeProperty("overflow"),document.documentElement.style.removeProperty("overflow")}),[l,C]),l)?(0,n.jsx)("div",{ref:S,className:"fixed inset-0 z-[1000] flex flex-col after:bg-gunmetal after:absolute after:top-0 after:left-0 after:w-full after:h-1/2 after:-z-10 items-center justify-center transition-all duration-500",style:{background:"linear-gradient(180deg, rgba(31, 91, 110, 0.00) 0%, rgba(31, 91, 110, 0.36) 100%)"},children:(0,n.jsxs)("div",{className:"container relative",children:[(0,n.jsx)(s.A,{src:"/assets/images/Union.png",alt:"Search Background",width:1616,height:264,className:"mb-[90px]  pointer-events-none absolute bottom-1/2 left-0 right-0"}),(0,n.jsx)("form",{onSubmit:e=>{e.preventDefault(),v&&(L.push("/search-results?q=".concat(encodeURIComponent(v))),D())},className:"absolute z-50 bottom-1/2 left-0 right-0 w-full  px-4 translate-y-1/2",children:(0,n.jsx)("div",{className:"relative",children:(0,n.jsxs)("div",{className:"flex items-center shadow-lg bg-white",children:[(0,n.jsx)("button",{onClick:D,className:"absolute -top-[30px] right-0  -translate-y-full p-2",type:"button",children:(0,n.jsx)(i.A,{})}),(0,n.jsxs)("div",{className:"relative flex items-center w-full",children:[(0,n.jsx)("span",{className:"pl-[32px]",children:(0,n.jsx)(c.A,{className:"w-[20px] h-[20px]"})}),(0,n.jsx)("input",{ref:k,type:"text",value:v,onChange:e=>g(e.target.value),onFocus:()=>{_.current&&(_.current=!1)},placeholder:N?"Search...":"Search by people, expertise or knowledge...",className:"z-[100] leading-[50px] hover:py-5 py-5 pl-[24px] pr-[29px] text-base md:text-[21px] w-full transition-all duration-300",autoFocus:!0})]}),v&&y.length>0&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("button",{type:"submit",className:"group viewAllResults hidden lg:flex relative  items-center justify-start gap-2 py-3 mr-[29px] text-lg font-avenir font-[800] text-grey bg-offWhite border border-grey_2 rounded-full whitespace-nowrap transition-all duration-500 ease-in-out ",children:(0,n.jsxs)("span",{className:"relative block w-full ",children:[(0,n.jsx)(o.A,{className:"w-7 h-7 absolute top-1/2 -translate-y-1/2 left-5 group-hover:left-[calc(100%-2.75rem)] transition-all duration-500 ease-in-out text-red"}),(0,n.jsx)("span",{className:"transition-all duration-500 ease-in-out pl-14 pr-5 group-hover:pl-5 group-hover:pr-14",children:"View All Results"})]})}),(0,n.jsx)("button",{type:"submit",className:"group viewAllResults  flex lg:hidden relative  items-center justify-start text-red px-5 ",children:(0,n.jsx)(o.A,{className:"w-7 h-7 "})})]})]})})}),(0,n.jsxs)("div",{"data-lenis-prevent":!0,className:"fixed inset-0 z-40 flex items-center justify-center transition-opacity duration-300 ".concat(E?"opacity-100":"opacity-0 pointer-events-none"),children:[(0,n.jsx)("div",{className:"absolute bottom-1/2 left-0 w-full bg-gunmetal/50 pointer-events-none transition-all duration-300 ".concat(M?"h-1/2":"h-0")}),(0,n.jsx)("div",{className:"absolute bottom-0 left-0 w-full h-1/2 bg-gradient-to-t from-black/10 to-transparent pointer-events-none transition-opacity duration-300"}),(0,n.jsx)("div",{className:"absolute bg-offWhite top-1/2 bottom-0 w-full overflow-hidden mx-auto transition-opacity duration-300 ".concat(M?"opacity-100":"opacity-0 pointer-events-none"),children:(0,n.jsx)("div",{className:"container pt-[55px] !px-5 pb-28 lg:pb-8 overflow-y-auto","data-lenis-prevent":!0,style:{WebkitOverflowScrolling:"touch",touchAction:"pan-y",overscrollBehavior:"contain",maxHeight:"calc(50vh - 20px)"},onTouchStart:()=>{C&&C.stop()},onWheel:()=>{C&&C.stop()},onPointerDown:()=>{C&&C.stop()},onTouchMoveCapture:e=>{e.stopPropagation()},onWheelCapture:e=>{e.stopPropagation()},children:v?(0,n.jsx)("div",{children:b?(0,n.jsx)("div",{className:"text-center py-8",children:(0,n.jsx)("p",{className:"text-grey",children:"Searching..."})}):y.length>0?(0,n.jsx)("ul",{className:"text-left animate-fade-in",children:y.map((e,t)=>{let l=RegExp("(".concat(v.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),")"),"gi"),r=e.title.split(l);return(0,n.jsx)("li",{className:"text-sm text-slateBlue hover:text-gunmetal border-b border-b-grey_2",children:(0,n.jsxs)(h(),{href:e.url,className:"py-6 block lg:pl-[76px] text-lg lg:text-xl leading-[120%]",onClick:D,children:[r.map((e,t)=>l.test(e)?(0,n.jsx)("strong",{className:"font-[800]",children:e},t):(0,n.jsx)("span",{children:e},t))," ",(0,n.jsxs)("span",{className:"ml-2 text-base",children:["in ",(0,n.jsx)("span",{className:"font-[800]",children:e.category})]})]})},t)})}):v.trim().length>=2?(0,n.jsxs)("div",{className:"text-center py-8",children:[(0,n.jsxs)("p",{className:"text-grey",children:['No results found for "',v,'"']}),(0,n.jsx)("p",{className:"text-sm text-grey_3 mt-2",children:"Try adjusting your search terms"})]}):(0,n.jsx)("div",{className:"text-center py-8",children:(0,n.jsx)("p",{className:"text-grey",children:"Type at least 2 characters to search"})})}):(0,n.jsxs)("div",{className:"pt-5 lg:pt-[45px] lg:px-6 animate-fade-in flex flex-wrap gap-2",children:[(0,n.jsx)("div",{className:"flex items-center py-1 border border-transparent text-base font-[800] font-avenir leading-[120%] text-grey ",children:"Popular Searches"}),t&&(0,n.jsx)("div",{className:"flex flex-wrap gap-2 ",children:t.map((e,t)=>(0,n.jsx)("button",{onClick:()=>{L.push("/search-results?q=".concat(encodeURIComponent(e.optSearchText))),D()},className:"border border-grey_1 text-sm px-4 py-1 rounded-full hover:bg-gray-200",children:e.optSearchText},t))})]})})})]})]})}):null}},5042:(e,t,l)=>{"use strict";l.d(t,{default:()=>p});var n=l(95155),r=l(12115),a=l(35730),s=l(52619),o=l.n(s),i=l(60674),c=l(62538),d=l(31185),u=l(33828),h=l(70898),m=l(25201);let f=e=>{var t,l,s,d,f,p,x,v,g,y;let{menuColumns:w,footerLogo:b,copyrightText:j,socialMedia:k}=e,[N,S]=(0,r.useState)([]),[L,C]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{let e=()=>{C(window.innerWidth<=768)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),(0,r.useEffect)(()=>{L?S([0]):S(w.map((e,t)=>t))},[L,w]),(0,n.jsx)("div",{className:"relative flex flex-col bg-gunmetal pt-[43px] md:pt-[109px] pb-[39px] md:pb-[87px]",children:(0,n.jsxs)("div",{className:"container",children:[(0,n.jsxs)("div",{className:"flex flex-wrap",children:[(0,n.jsxs)("div",{className:" w-full lg:w-1/5 ",children:[b&&(null==b?void 0:b.node)&&(null==b||null==(t=b.node)?void 0:t.sourceUrl)&&(0,n.jsx)(o(),{href:"/",title:(null==b||null==(l=b.node)?void 0:l.altText)||"Matheson LLP","aria-label":(null==b||null==(s=b.node)?void 0:s.altText)||"Matheson LLP",children:(0,n.jsx)(a.A,{src:null==b||null==(d=b.node)?void 0:d.sourceUrl,srcSet:null==b||null==(f=b.node)?void 0:f.srcSet,sizes:"254px",height:null==b||null==(x=b.node)||null==(p=x.mediaDetails)?void 0:p.height,width:null==b||null==(g=b.node)||null==(v=g.mediaDetails)?void 0:v.width,className:"mr-4 w-[254px] mb-[40px]",alt:null==b||null==(y=b.node)?void 0:y.altText})}),(0,n.jsxs)("div",{className:"hidden lg:block",children:[(0,n.jsx)("div",{className:"flex space-x-6 pt-[41px] pb-[54px]",children:null==k?void 0:k.map((e,t)=>(0,n.jsxs)(o(),{className:"text-white text-2xl w-[34px] h-[34px] flex items-center justify-center border rounded-full border-transparent hover:border-offWhite",href:null==e?void 0:e.footerSocialMediaUrl,target:"_blank",rel:"noopener noreferrer",title:(null==e?void 0:e.footerSocialMediaType)&&(null==e?void 0:e.footerSocialMediaType[0])?"Follow us on ".concat(e.footerSocialMediaType[0].charAt(0).toUpperCase()+e.footerSocialMediaType[0].slice(1)):"Follow us",children:[(null==e?void 0:e.footerSocialMediaType)&&(null==e?void 0:e.footerSocialMediaType[0])&&(null==e?void 0:e.footerSocialMediaType[0])==="instagram"&&(0,n.jsx)(u.ao$,{}),(null==e?void 0:e.footerSocialMediaType)&&(null==e?void 0:e.footerSocialMediaType[0])&&(null==e?void 0:e.footerSocialMediaType[0])==="linkedin"&&(0,n.jsx)(h.H1h,{}),(null==e?void 0:e.footerSocialMediaType)&&(null==e?void 0:e.footerSocialMediaType[0])&&(null==e?void 0:e.footerSocialMediaType[0])==="x"&&(0,n.jsx)(u.TCj,{})]},t))}),j&&(0,n.jsx)("div",{className:"flex flex-wrap ",children:(0,n.jsx)("p",{className:"block footerText text-sm text-white font-normal mr-4 leading-[130%] mb-0 translate-y-1/2",dangerouslySetInnerHTML:{__html:j}})})]})]}),(0,n.jsx)("div",{className:"columnsWrapper w-full  lg:w-4/5 lg:pl-[102px] border-b border-b-white/10 flex flex-wrap lg:flex-nowrap",children:null==w?void 0:w.map((e,t)=>(0,n.jsx)("div",{className:"w-full md:w-1/3 lg:w-full  ",children:(0,n.jsxs)("div",{className:"colWrapper  border-t border-t-white/10 md:boder-t-transparent md:border-0 md:mb-9 md:pl-1",children:[(0,n.jsxs)("h3",{className:"text-white text-sm py-3 md:py-0 font-[800] mb-0 md:mb-2 flex items-center",children:[(0,n.jsx)(o(),{href:(0,m.hL)(e.uri),children:e.label}),L&&e.children&&(0,n.jsx)("button",{className:" ml-auto text-white",onClick:()=>(e=>{S(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])})(t),children:N.includes(t)?(0,n.jsx)(c.A,{}):(0,n.jsx)(i.A,{})})]}),e.children&&N.includes(t)&&(0,n.jsx)("ul",{className:"pl-3 md:pl-0 m-0 mb-4",children:e.children.map((e,t)=>(0,n.jsx)("li",{className:"text-sm mb-2 sm:mr-3",children:(0,n.jsx)(o(),{href:(0,m.hL)(e.uri),className:"text-white hover:underline underline-offset-[5px] decoration-offWhite/50",children:e.label})},t))})]})},t))})]}),(0,n.jsx)("div",{className:"flex flex-wrap items-center justify-between",children:(0,n.jsxs)("div",{className:"block lg:hidden w-full",children:[(0,n.jsx)("div",{className:"flex space-x-6 justify-center py-9",children:null==k?void 0:k.map((e,t)=>(0,n.jsxs)(o(),{className:"text-white text-2xl w-[34px] h-[34px] flex items-center justify-center border rounded-full border-transparent hover:border-offWhite",href:null==e?void 0:e.footerSocialMediaUrl,target:"_blank",rel:"noopener noreferrer",title:(null==e?void 0:e.footerSocialMediaType)&&(null==e?void 0:e.footerSocialMediaType[0])?"Follow us on ".concat(e.footerSocialMediaType[0].charAt(0).toUpperCase()+e.footerSocialMediaType[0].slice(1)):"Follow us",children:[(null==e?void 0:e.footerSocialMediaType)&&(null==e?void 0:e.footerSocialMediaType[0])&&(null==e?void 0:e.footerSocialMediaType[0])==="instagram"&&(0,n.jsx)(u.ao$,{}),(null==e?void 0:e.footerSocialMediaType)&&(null==e?void 0:e.footerSocialMediaType[0])&&(null==e?void 0:e.footerSocialMediaType[0])==="linkedin"&&(0,n.jsx)(h.H1h,{}),(null==e?void 0:e.footerSocialMediaType)&&(null==e?void 0:e.footerSocialMediaType[0])&&(null==e?void 0:e.footerSocialMediaType[0])==="x"&&(0,n.jsx)(u.TCj,{})]},t))}),j&&(0,n.jsx)("p",{className:"block  footerText text-center text-sm text-white font-normal mr-4 leading-[130%]",dangerouslySetInnerHTML:{__html:j}})]})})]})})},p=e=>{var t,l,r,a,s,o,i,c,u,h,p,x,v,g,y;let{footerContentConfiguration:w,footerMenuCol1:b,footerMenuCol2:j,footerMenuCol3:k,footerMenuCol4:N,footerMenuCol5:S}=e,L=[];if(b&&(null==b?void 0:b.menuItems)&&(null==b||null==(t=b.menuItems)?void 0:t.nodes)){let e=(0,d.Uv)(null==b||null==(o=b.menuItems)?void 0:o.nodes);e&&e[0]&&L.push(e[0])}if(j&&(null==j?void 0:j.menuItems)&&(null==j||null==(l=j.menuItems)?void 0:l.nodes)){let e=(0,d.Uv)(null==j||null==(i=j.menuItems)?void 0:i.nodes);e&&e[0]&&L.push(e[0])}if(k&&(null==k?void 0:k.menuItems)&&(null==k||null==(r=k.menuItems)?void 0:r.no
1des)){let e=(0,d.Uv)(null==k||null==(c=k.menuItems)?void 0:c.nodes);e&&e[0]&&L.push(e[0])}if(N&&(null==N?void 0:N.menuItems)&&(null==N||null==(a=N.menuItems)?void 0:a.nodes)){let e=(0,d.Uv)(null==N||null==(u=N.menuItems)?void 0:u.nodes);e&&e[0]&&L.push(e[0])}if(S&&(null==S?void 0:S.menuItems)&&(null==S||null==(s=S.menuItems)?void 0:s.nodes)){let e=(0,d.Uv)(null==S||null==(h=S.menuItems)?void 0:h.nodes);e&&e[0]&&L.push(e[0])}if(!L)return null;{let e=(null==w||null==(x=w.footerSettings)||null==(p=x.footerLogo)?void 0:p.node)?{node:{...w.footerSettings.footerLogo.node,sourceUrl:(0,m.fo)(w.footerSettings.footerLogo.node.sourceUrl)}}:void 0;return(0,n.jsx)(f,{menuColumns:L,footerLogo:e,copyrightText:null==w||null==(v=w.footerSettings)?void 0:v.footerCopyright,socialMedia:(null==w||null==(g=w.footerSettings)?void 0:g.footerSocialMedia)?null==w||null==(y=w.footerSettings)?void 0:y.footerSocialMedia:[]})}}},7174:(e,t,l)=>{"use strict";l.d(t,{PreviewNotice:()=>s});var n=l(95155),r=l(20063),a=l(89892);let s=function(){var e,t,l,s;let{hasAutosave:o,autosaveDate:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},c=(0,r.usePathname)(),d=(0,a.g)(),u=null!=(l=null==d||null==(e=d.previewMetadata)?void 0:e.hasAutosave)?l:o,h=null!=(s=null==d||null==(t=d.previewMetadata)?void 0:t.autosaveDate)?s:i,m=!(null==c?void 0:c.includes("/preview/")),f=(()=>{if(m)return{status:"Saved version",description:"• Viewing last saved version",buttonText:"Back to Edit"};{let e="• Test your changes here";if(u&&h){let t=function(e){try{let t=new Date(e),l=new Date().getTime()-t.getTime(),n=Math.floor(l/1e3),r=Math.floor(n/60),a=Math.floor(r/60),s=Math.floor(a/24);if(n<60)return"just now";if(r<60)return"".concat(r," minute").concat(1!==r?"s":""," ago");if(a<24)return"".concat(a," hour").concat(1!==a?"s":""," ago");else return"".concat(s," day").concat(1!==s?"s":""," ago")}catch(e){return"recently"}}(h);e="• Draft saved ".concat(t)}else!1===u&&(e="• No unsaved changes");return{status:"Preview mode enabled",description:e,buttonText:"Exit Preview"}}})();return(0,n.jsx)("aside",{className:"fixed bottom-0 left-0 z-[1000] w-full bg-black p-4 border-t-4 border-red-500 text-white",children:(0,n.jsxs)("div",{className:"flex justify-between items-center",children:[(0,n.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,n.jsx)("p",{className:"mb-0 font-semibold",children:f.status}),(0,n.jsx)("span",{className:"text-gray-300 text-sm",children:f.description}),!m&&void 0!==u&&(0,n.jsx)("span",{className:"text-xs px-2 py-1 rounded ".concat(u?"bg-green-600 text-white":"bg-gray-600 text-gray-300"),children:u?"✓ Draft changes":"No changes"})]}),(0,n.jsx)("div",{className:"flex items-center space-x-3",children:(0,n.jsx)("a",{className:"text-black font-bold hover:underline border-2 border-red bg-yellow-300 px-4 py-2 rounded-md transition-colors hover:bg-yellow-400",href:(()=>{if(c&&c.includes("/preview/")){let e=c.match(/\/preview\/(\d+)/),t=e?e[1]:null;if(t)return"/api/exit-preview?path=".concat(encodeURIComponent(c),"&id=").concat(t)}return"/api/exit-preview?path=".concat(encodeURIComponent(null!=c?c:""))})(),title:m?"Return to WordPress editor":"Exit preview mode and return to published site",children:f.buttonText})})]})})}},14056:(e,t,l)=>{"use strict";l.d(t,{default:()=>P});var n=l(95155),r=l(12115),a=l(52619),s=l.n(a),o=l(35730),i=l(15333);l(43912);var c=l(20063),d=l(59070);let u=e=>{let{className:t}=e;return(0,n.jsxs)("svg",{className:t,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("circle",{cx:"9",cy:"9",r:"8.5",stroke:"currentColor"}),(0,n.jsx)("path",{d:"M10.3357 5.8562L6.73569 9.0062L10.3357 12.1562",stroke:"currentColor"})]})};var h=l(33828),m=l(25201),f=l(72410);let p=e=>{var t;let{isPrimaryDrawerOpen:l,setPrimaryDrawerOpen:a,mobileStack:o,setMobileStack:i,secondaryLinks:p,secondaryContact:x,secondarySocial:v}=e,g=(0,c.usePathname)(),y=(0,r.useContext)(f.z);(0,r.useEffect)(()=>(l?(document.body.classList.add("overflow-hidden"),y&&y.stop()):(document.body.classList.remove("overflow-hidden"),y&&y.start()),(
1)=>{document.body.classList.remove("overflow-hidden"),y&&y.start()}),[l,y]),(0,r.useEffect)(()=>{l&&w()},[g]);let w=()=>{a(!1),i(e=>e.length>1?e.slice(0,1):e)},b=o[o.length-1],j=o.length;return(0,n.jsx)(d.A,{open:l,onClose:w,direction:"left",className:"!w-full !bg-offWhite",children:(0,n.jsxs)("div",{className:"px-6 w-full h-full flex flex-col",onWheel:e=>{e.stopPropagation()},onTouchMove:e=>{e.stopPropagation()},children:[(0,n.jsxs)("div",{className:"flex items-center justify-center h-[83px] pr-[36px] flex-shrink-0",children:[o.length>1&&(0,n.jsx)("button",{onClick:()=>{i(e=>e.length>1?e.slice(0,-1):e)},className:"text-grey ml-0 pr-2",children:(0,n.jsx)(u,{})}),o.length>1&&(0,n.jsx)("div",{className:"font-avenir text-lg font-[800] text-grey leading-[130%] mx-auto truncate",children:(null==(t=o[o.length-2].find(e=>e.children===b))?void 0:t.title)||"Menu"})]}),(0,n.jsxs)("div",{className:"flex-1 overflow-y-auto",children:[(0,n.jsx)("ul",{className:"space-y-0",role:"menubar",children:b.map(e=>{var t;let l=!!(e.children&&e.children.length>0);return(0,n.jsxs)("li",{className:(e=>1===e||2===e?"text-[22px] font-notoSerif tracking-tight leading-[120%] py-[24px] px-4 border-b border-[#C7C7C7]":3===e||4===e?"text-[16px] font-avenir font-[400] leading-[120%] py-[12px] px-4":"")(j),role:"none",children:[!l&&(0,n.jsx)(s(),{href:(0,m.hL)(e.href||"#"),...e.target?{target:e.target}:{},className:"text-gray block",onClick:w,role:"menuitem",children:e.title}),l&&(0,n.jsxs)("button",{onClick:()=>(e=>{e.children&&e.children.length>0&&i(t=>[...t,e.children])})(e),className:"text-gray flex justify-between items-center w-full text-left",role:"menuitem",children:[(0,n.jsx)("span",{children:e.title}),(0,n.jsx)("svg",{width:"8",height:"14",viewBox:"0 0 8 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M1 1L7 7L1 13",stroke:"currentColor"})})]})]},"".concat(e.title,"-").concat(null!=(t=e.href)?t:"root"))})}),1===o.length&&p.length>0&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("ul",{className:"space-y-4 mt-4 mb-7 px-4",role:"menu",children:p.map(e=>{var t;return(0,n.jsx)("li",{role:"none",children:(0,n.jsx)(s(),{href:(0,m.hL)(e.href||"#"),...e.target?{target:e.target}:{},onClick:w,role:"menuitem",children:e.title})},"".concat(e.title,"-").concat(null!=(t=e.href)?t:"#"))})}),(0,n.jsx)("div",{className:"SecondaryContact",children:x.length>0&&(0,n.jsx)(n.Fragment,{children:x.map(e=>{var t;return(0,n.jsx)(s(),{href:(0,m.hL)(e.href||"#"),...e.target?{target:e.target}:{},className:"bg-white text-red text-center block w-full rounded-lg py-[18px] p-5 text-xl mb-9 leading-[135%] font-[500] hover:bg-red hover:text-white",onClick:w,children:e.title||""},"".concat(e.title,"-").concat(null!=(t=e.href)?t:"#"))})})}),(0,n.jsx)("div",{className:"socialLinks flex justify-between items-center mt-5 pb-10 ",children:v.map(e=>{var t;return(0,n.jsxs)("a",{href:e.href,...e.target?{target:e.target}:{},className:"mx-2 bg-white text-grey rounded-full flex items-center justify-center w-[32px] h-[32px] hover:text-red","aria-label":"Follow us on ".concat(e.title),onClick:w,children:["instagram"===e.title.toLowerCase()&&(0,n.jsx)(h.ao$,{size:20}),"linkedin"===e.title.toLowerCase()&&(0,n.jsx)(h.H1h,{size:20}),"x"===e.title.toLowerCase()&&(0,n.jsx)(h.TCj,{size:20})]},"".concat(e.title,"-").concat(null!=(t=e.href)?t:"#"))})})]})]})]})})},x=e=>{let{className:t}=e;return(0,n.jsx)("svg",{className:t,width:"11",height:"8",viewBox:"0 0 11 8",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-label":"arrow down icon",children:(0,n.jsx)("path",{d:"M1 1L5.5 6L10 1",stroke:"currentColor",strokeWidth:"1.5"})})};var v=l(38401);let g=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:15,[l,n]=(0,r.useState)(0);return(0,r.useEffect)(()=>{let l=()=>{let l=document.querySelector(e);if(l){let e=l.getBoundingClientRect();n(e.left+e.width+t)}};return l(),window.addEventListener("resize",l),window.addEventListener("scroll",l),()=>{window.removeEventListener("resize",l),window.removeEventListener("scroll",l)}},[e,t]),l},y=()=>(0,n.jsx)("svg",{width:"18",height:"11",viewBox:"0 0 18 11",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:"min-w-[18px] min-h-[11px]",children:(0,n.jsx)("path",{d:"M16.707 0.707031L8.70703 8.70703L0.707031 0.70703",stroke:"#D40E0E",strokeWidth:"2"})}),w=()=>(0,n.jsx)("svg",{width:"18",height:"11",viewBox:"0 0 18 11",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:"min-w-[18px] min-h-[11px]",children:(0,n.jsx)("path",{d:"M0.707031 9.41406L8.70703 1.41406L16.707 9.41406",stroke:"#58595B",strokeWidth:"2"})}),b=e=>{let{primaryLinks:t,openDropdownIndex:l,setOpenDropdownIndex:a,isMegaMenuOpen:o,setIsMegaMenuOpen:i,isDarkTheme:c,isHomepage:d,hasScrolled:u}=e,[h,p]=(0,r.useState)(new Set),b=(0,r.useRef)([]),j=(0,v.A)(),k=g(".websiteLogo"),N=e=>(e||"").toLowerCase().trim().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"untitled",S=(e,t,l,n)=>{let r=t.href&&"#"!==t.href?t.href:"",a=t.title?N(t.title):"";
1return[e,n,r||a||String(l)].filter(Boolean).join("-")},L=()=>{a(null),p(new Set)},C=e=>{p(t=>{let l=new Set;if(t.has(e))for(let n of t)n===e||n.startsWith("".concat(e,"::"))||l.add(n);else{for(let n of t)e.startsWith("".concat(n,"::"))&&l.add(n);l.add(e)}return l})};(0,r.useEffect)(()=>{p(new Set)},[l]);let E=(0,r.useContext)(f.z);(0,r.useEffect)(()=>{let e=null!==l?t[l]:null,n=!!(null==e?void 0:e.megamenu);n?(i(!0),E&&(E.stop(),document.body.style.setProperty("overflow","hidden","important"),document.documentElement.style.setProperty("overflow","hidden","important"))):(i(!1),E&&(E.start(),document.body.style.removeProperty("overflow"),document.documentElement.style.removeProperty("overflow")));let r=e=>{n&&e.target.closest(".overflow-y-auto")&&e.stopPropagation()};return n&&document.addEventListener("wheel",r,{passive:!1}),()=>{i(!1),E&&E.start(),document.body.style.removeProperty("overflow"),document.documentElement.style.removeProperty("overflow"),document.removeEventListener("wheel",r)}},[l,t,E,i]),(0,r.useEffect)(()=>{let e=e=>{"Escape"===e.key&&(a(null),p(new Set))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[a]),(0,r.useEffect)(()=>{let e=e=>{b.current.some(t=>null==t?void 0:t.contains(e.target))||(a(null),p(new Set))};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[a]);let T=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,l=Math.ceil(e.length/t)||1;return Array.from({length:t},(t,n)=>e.slice(n*l,(n+1)*l))},M=(e,t,r,a)=>{var o;let i="".concat(r,"::").concat(a,"::").concat(N(e.title)),c=!!(null==(o=e.children)?void 0:o.length),d=h.has(i),u=0===t,f="acc-".concat(i);return(0,n.jsxs)("li",{role:"none",className:u?"pb-[32px] last:pb-0":"pb-[20px] last:pb-0",children:[c?(0,n.jsxs)("button",{type:"button",role:"menuitem",tabIndex:null===l?-1:0,"aria-expanded":d,"aria-controls":f,onClick:()=>C(i),onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),C(i))},className:"w-full flex items-start text-left cursor-pointer leading-[120%] font-[500] hover:text-red ".concat(u?"level-2 text-lg":"level-3 text-base"," ").concat(d?"text-red":u?"text-gunmetal":"text-grey"),children:[!u&&(0,n.jsx)("span",{className:"flex items-center h-[1.2em] shrink-0 mr-2",children:(0,n.jsx)(x,{className:"min-w-[11px] -rotate-90"})}),(0,n.jsx)("span",{children:e.title}),(0,n.jsx)("span",{className:"flex items-center h-[1.2em] shrink-0 ml-auto pl-3",children:d?(0,n.jsx)(w,{}):(0,n.jsx)(y,{})})]}):(0,n.jsxs)(s(),{href:e.href&&(0,m.hL)(e.href)||"#",...e.target?{target:e.target}:{},role:"menuitem",tabIndex:null===l?-1:0,onClick:L,className:"w-full flex items-start leading-[120%] hover:text-red ".concat(u?"level-2 text-lg text-gunmetal":"level-3 text-base text-grey"),children:[!u&&(0,n.jsx)("span",{className:"flex items-center h-[1.2em] shrink-0 mr-2",children:(0,n.jsx)(x,{className:"min-w-[11px] -rotate-90"})}),(0,n.jsx)("span",{children:e.title})]}),c&&d&&(0,n.jsx)("ul",{id:f,role:"menu",className:"mt-3 ".concat(u?"pl-1":"pl-4"),children:e.children.map((e,l)=>M(e,t+1,i,l))})]},i)};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("nav",{className:"sr-only","aria-hidden":"true",children:(0,n.jsx)("ul",{children:t.map((e,t)=>(0,n.jsxs)("li",{children:[e.href&&(0,n.jsx)("a",{href:(0,m.hL)(e.href),tabIndex:-1,children:e.title}),e.children&&(0,n.jsx)("ul",{children:e.children.map((e,t)=>(0,n.jsxs)("li",{children:[e.href&&(0,n.jsx)("a",{href:(0,m.hL)(e.href),tabIndex:-1,children:e.title}),e.children&&(0,n.jsx)("ul",{children:e.children.map((e,t)=>(0,n.jsxs)("li",{children:[e.href&&(0,n.jsx)("a",{href:(0,m.hL)(e.href),tabIndex:-1,children:e.title}),e.children&&(0,n.jsx)("ul",{children:e.children.map((e,t)=>(0,n.jsx)("li",{children:e.href&&(0,n.jsx)("a",{href:(0,m.hL)(e.href),tabIndex:-1,children:e.title})},"seo-".concat(S("l4",e,t))))})]},"seo-".concat(S("l3",e,t))))})]},"seo-".concat(S("l2",e,t))))})]},"seo-".concat(S("l1",e,t))))})}),(0,n.jsx)("nav",{className:"hidden lg:flex static ml-auto mr-4 xl:mr-14",children:(0,n.jsx)("ul",{className:"flex gap-x-6",role:"menubar",children:t.map((e,t)=>{var r,i,h,f;let p,v=!!(null==(r=e.children)?void 0:r.length),g=S("l1",e,t);return(0,n.jsxs)("li",{className:"group 2xl:px-5 ".concat(l===t?"open":""," ").concat(e.megamenu?"static":"relative"),role:"none",ref:e=>{b.current[t]=e},children:[(0,n.jsxs)("div",{className:"flex items-center py-5",children:[!v&&e.href&&(0,n.jsx)(s(),{...e.target?{href:(0,m.hL)(e.href)}:{href:null!=(h=(0,m.hL)(e.path))?h:""},...e.target?{target:e.target}:{},className:"level-1 text-lg 2xl:text-xl py-4  flex items-center relative hover:after:absolute hover:after:bottom-0 hover:after:left-0 hover:after:w-full hover:after:h-1 hover:after:bg-mred   ".concat(d&&!u?"text-gunmetal":c?o?"text-grey":"text-white":"text-grey"),role:"menuitem",tabIndex:0,onClick:L,children:e.title}),v&&(0,n.jsxs)("button",{type:"button",className:"level-1 text-lg 2xl:text-xl py-4  flex items-center  relative hover:after:absolute hover:after:bottom-0 hover:after:left-0 hover:after:w-full hover:after:h-1 hover:after:bg-mred \n										".concat(l===t?" relative after:absolute after:bottom-0 after:left-0 after:w-full after:h-1 after:bg-red":"","\n										").concat(d&&!u?"text-gunmetal":c?o?"text-grey":"text-white":"text-grey"),onClick:()=>a(l===t?null:t),onKeyDown:e=>
1{["Enter"," "].includes(e.key)?(e.preventDefault(),l!==t?(a(t),setTimeout(()=>{var e;let l=null==(e=b.current[t])?void 0:e.querySelector('[role="menu"]'),n=null==l?void 0:l.querySelector('[role="menuitem"]');null==n||n.focus()},0)):a(null)):"ArrowDown"===e.key?(e.preventDefault(),l!==t&&(a(t),setTimeout(()=>{var e;let l=null==(e=b.current[t])?void 0:e.querySelector('[role="menu"]'),n=null==l?void 0:l.querySelector('[role="menuitem"]');null==n||n.focus()},0))):"ArrowUp"===e.key?(e.preventDefault(),l===t&&a(null)):"Escape"===e.key&&(e.preventDefault(),a(null))},"aria-expanded":l===t,"aria-controls":"submenu-level1-".concat(t),"aria-haspopup":"true",role:"menuitem",children:[e.title,(null==(i=e.children)?void 0:i.length)?(0,n.jsx)(x,{className:"ml-2 rotate-0 ".concat(l===t?"rotate-180":"")}):null]})]}),v&&(0,n.jsx)("div",{id:"submenu-level1-".concat(t),onClick:e=>e.stopPropagation(),onKeyDown:e=>(b.current[t],void((e,t)=>{var l,n,r,s,o,i,c,d,u,h,m;let f=e.key,p=null==(l=b.current[t])?void 0:l.querySelector('[role="menu"]');if(!p)return;let x=Array.from(p.querySelectorAll('[role="menuitem"]')),v=x.indexOf(document.activeElement);switch(f){case"Escape":e.preventDefault(),a(null);let g=null==(n=b.current[t])?void 0:n.querySelector('button[role="menuitem"]');null==g||g.focus();break;case"ArrowDown":e.preventDefault();let y=(v+1)%x.length;null==(r=x[y])||r.focus();break;case"ArrowUp":if(e.preventDefault(),v<=0){a(null);let e=null==(s=b.current[t])?void 0:s.querySelector('button[role="menuitem"]');null==e||e.focus()}else null==(o=x[v-1])||o.focus();break;case"Tab":if(e.preventDefault(),e.shiftKey)if(v<=0){a(null);let e=null==(i=b.current[t])?void 0:i.querySelector('button[role="menuitem"]');null==e||e.focus()}else null==(c=x[v-1])||c.focus();else if(v>=x.length-1){e.preventDefault(),a(null);let t=null==(d=x[x.length-1])?void 0:d.nextElementSibling;null==t||t.focus()}else null==(u=x[v+1])||u.focus();break;case"Home":e.preventDefault(),null==(h=x[0])||h.focus();break;case"End":e.preventDefault(),null==(m=x[x.length-1])||m.focus()}})(e,t)),className:"".concat(l===t?"":"hidden","  top-full left-0 ").concat(e.megamenu?"fixed megamenu top-0 left-0 right-0 w-full shadow-md bg-gunmetal bg-opacity-70 -z-10":"absolute z-50 bg-white shadow-lg simple-dropdown w-[352px]"),role:"menu","aria-label":"".concat(e.title," submenu"),inert:l!==t,style:e.megamenu?{height:"100vh",paddingLeft:"".concat(k,"px"),marginTop:"-".concat(j,"px")}:void 0,children:e.megamenu?(e=>{var t;let l=e=>{var t,l;return(!e.href||"#"===e.href)&&(null!=(l=null==(t=e.children)?void 0:t.length)?l:0)>0},r=null!=(t=e.children)?t:[];for(;r.length>0&&r.every(l);)r=r.flatMap(e=>{var t;return null!=(t=e.children)?t:[]});let a=T(r,3);return(0,n.jsx)("div",{className:"mx-auto flex bg-offWhite",style:e.megamenu?{paddingTop:"".concat(j,"px"),height:"100vh"}:void 0,children:a.map((e,t)=>(0,n.jsx)("div",{className:"w-1/3 px-6 py-4 overflow-y-auto ".concat(t<a.length-1?"border-r border-[#C7C7C7]":""),style:{maxHeight:"calc(100vh - 200px)"},children:(0,n.jsx)("ul",{role:"menu",children:e.map((e,l)=>M(e,0,"col".concat(t),l))})},"col-".concat(t)))})})(e):(p=null!=(f=e.children)?f:[],(0,n.jsx)("ul",{className:"pt-9 pb-5 px-6 w-full",role:"menu",children:p.map((e,t)=>(0,n.jsx)("li",{role:"none",children:e.href&&(0,n.jsx)(s(),{href:e.href,...e.target?{target:e.target}:{},className:"item flex text-lg font-avenir font-[500] items-center w-full hover:text-red mb-6 leading-[135%]",role:"menuitem",tabIndex:null===l?-1:0,onClick:L,children:e.title})},S("sd",e,t)))}))})]},g)})})})]})};function j(e){let{isDarkTheme:t,isMegaMenuOpen:l,secondaryLinks:a,secondaryContact:o,secondarySocial:d,isHomepage:u,hasScrolled:f}=e,[p,x]=(0,r.useState)(!1),v=(0,r.useRef)(null),g=(0,r.useRef)(null),y=(0,r.useRef)(!1),w=(0,c.usePathname)(),b=e=>(e||"").toLowerCase().trim().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"untitled",j=(e,t,l)=>t.title&&t.href?"".concat(e,"-").concat(b(t.title),"-").concat(t.href.replace(/\//g,"_"),"-").concat(l):"".concat(e,"-").concat(b(t.title||"item"),"-").concat(l),k=()=>{y.current||x(!1)};return(0,r.useEffect)(()=>{let e=e=>{if("Escape"===e.key){k();let e=document.querySelector(".hamburger-react");e instanceof HTMLElement&&e.focus()}};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[]),(0,r.useEffect)(()=>{let e=e=>{if(y.current)return;let t=e.target,l=document.querySelector(".hamburger-react");p&&v.current&&!v.current.contains(t)&&l&&!l.contains(t)&&k()},t=setTimeout(()=>{document.addEventListener("mousedown",e)},100);return()=>{clearTimeout(t),document.removeEventListener("mousedown",e)}}
1,[p]),(0,r.useEffect)(()=>{p&&k()},[w]),(0,r.useEffect)(()=>{if(g.current){let e=g.current.querySelector(".hamburger-react");e&&e.setAttribute("aria-label",p?"Close secondary menu":"Toggle secondary menu")}},[p]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("nav",{className:"sr-only","aria-hidden":"true",children:(0,n.jsxs)("ul",{children:[a.map((e,t)=>(0,n.jsx)("li",{children:e.href&&(0,n.jsx)("a",{href:(0,m.hL)(e.href),tabIndex:-1,children:e.title})},"seo-".concat(j("sec-link",e,t)))),o.map((e,t)=>(0,n.jsx)("li",{children:e.href&&(0,n.jsx)("a",{href:(0,m.hL)(e.href),tabIndex:-1,children:e.title})},"seo-".concat(j("sec-contact",e,t)))),d.map((e,t)=>(0,n.jsx)("li",{children:e.href&&(0,n.jsx)("a",{href:e.href,tabIndex:-1,children:e.title})},"seo-".concat(j("sec-social",e,t))))]})}),(0,n.jsxs)("div",{className:"hidden md:block relative z-50",children:[(0,n.jsx)("div",{className:"transform-gpu",ref:g,children:(0,n.jsx)(i.O,{hideOutline:!1,toggled:p,toggle:()=>{y.current||(y.current=!0,x(e=>!e),setTimeout(()=>{y.current=!1},150))},size:20,color:u&&!f?"#2A3942":t?l||p?"#2A3942":"#fff":"#2A3942","aria-haspopup":"true","aria-expanded":p})}),p&&(0,n.jsxs)("div",{ref:v,className:"absolute -z-10 -right-4 -mt-[56px] bg-white shadow-lg pt-[80px] px-8 pb-9 w-[352px] backface-hidden translate-z-0 transition-all duration-200 ease-in-out opacity-100",children:[(0,n.jsx)("ul",{className:"mb-[60px]",children:a.map((e,t)=>(0,n.jsx)("li",{children:(0,n.jsx)(s(),{href:(0,m.hL)(e.href||"#"),...e.target?{target:e.target}:{},className:"block text-lg leading-[135%] font-[500] hover:text-red pb-5",onClick:k,children:e.title})},j("sec-link",e,t)))}),(0,n.jsx)("div",{className:"SecondaryContact",children:o&&(0,n.jsx)(n.Fragment,{children:o.map((e,t)=>(0,n.jsx)(s(),{href:(0,m.hL)(e.href||"#"),...e.target?{target:e.target}:{},className:"bg-offWhite text-center block w-full rounded-lg py-[18px] p-5 text-xl mb-9 leading-[135%] font-[500] hover:bg-red hover:text-white",onClick:k,children:e.title||""},j("sec-contact",e,t)))})}),(0,n.jsx)("div",{className:"socialLinks flex justify-between items-center mt-5",children:d.map((e,t)=>(0,n.jsxs)("a",{href:e.href,...e.target?{target:e.target}:{},className:"mx-2 text-grey rounded-full flex items-center justify-center w-[32px] h-[32px] hover:text-red","aria-label":"Follow us on ".concat(e.title),onClick:k,children:["instagram"===e.title.toLowerCase()&&(0,n.jsx)(h.ao$,{size:20}),"linkedin"===e.title.toLowerCase()&&(0,n.jsx)(h.H1h,{size:20}),"x"===e.title.toLowerCase()&&(0,n.jsx)(h.TCj,{size:20})]},j("sec-social",e,t)))})]})]})]})}var k=l(64278),N=l(83390);let S=e=>
1{let{isDarkTheme:t,isHomepage:l,hasScrolled:r}=e,a=(0,c.usePathname)(),{openModal:s}=(0,N.v)();return"/search-results"===a?null:(0,n.jsxs)("div",{className:"headerSearch static xl:w-full max-w-[250px] 2xl:max-w-[368px] ml-auto mr-2 2xl:mr-[47px]",children:[(0,n.jsx)("div",{className:"xl:hidden",children:(0,n.jsx)("button",{className:"flex items-center p-2 \n                        ".concat(l&&!r?"text-gunmetal":t?"text-[#ffffff]":"text-gunmetal"),onClick:s,"aria-label":"Open search",children:(0,n.jsx)(k.A,{className:"w-6 h-6"})})}),(0,n.jsx)("div",{className:"hidden xl:flex items-center border bg-white border-[#C7C7C7] rounded ",role:"search","aria-label":"Search",children:(0,n.jsxs)("button",{type:"button",className:"flex items-center flex-1 w-full px-2 pl-4 appearance-none bg-transparent  h-[48px] text-grey justify-start",onClick:s,"aria-label":"Search button",children:[(0,n.jsx)(k.A,{className:"w-6 h-6 mr-4 text-inherit"})," Search..."]})})]})};var L=l(22638),C=l(19922),E=l(2821),T=l(31185);let M=e=>{var t,l,a,d;let{menuData:u,darkMediaUrl:h,darkMediaAlt:m,lightMediaUrl:f,lightMediaAlt:x,darkMediaSrcSet:v,lightMediaSrcSet:g}=e,{isDarkTheme:y,headerClass:w}=(0,L.DP)(),{topTickerHeight:k,setIsTopTickerVisible:N}=(0,C.p)(),T="/"===(0,c.usePathname)(),[M,P]=(0,r.useState)(!0),F=(0,r.useRef)(0),[A,_]=(0,r.useState)(!1),[D,I]=(0,r.useState)([u.filter(e=>e.primaryLinks)]),[z,W]=(0,r.useState)(null),[H,R]=(0,r.useState)(!1),[U,B]=(0,r.useState)(!1),q=(0,r.useRef)(null),O=(0,r.useRef)(null),[K,$]=(0,r.useState)("");(0,r.useEffect)(()=>{R(!0);let e=e=>{"Escape"===e.key&&(W(null),_(!1),I([u.filter(e=>e.primaryLinks)]))};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[u]),(0,r.useEffect)(()=>{let e=!1,t=e=>{if(0===e){$(""),P(!0);return}e>F.current&&e>300?P(!1):P(!0),T?$(e>120?"!bg-gunmetal":""):"bg-transparent"===w?$(e=>e||(y?"!bg-gunmetal":"!bg-offWhite")):$("")},l=()=>{e||(window.requestAnimationFrame(()=>{let l=window.scrollY;t(l),F.current=l,e=!1}),e=!0)};return t(window.scrollY),window.addEventListener("scroll",l),()=>window.removeEventListener("scroll",l)},[w,y,T]),(0,r.useEffect)(()=>{N(M)},[M,N]);let Y=u.filter(e=>e.primaryLinks),Q=u.filter(e=>e.secondaryLinks),V=u.filter(e=>e.secondaryContact),G=u.filter(e=>e.secondarySocial);(!T||K)&&(y||null!=(t=null==w?void 0:w.includes("bg-gunmetal"))&&t||null!=(l=null==w?void 0:w.includes("bg-slateBlue"))&&l||null!=(a=null==K?void 0:K.includes("!bg-gunmetal"))&&a||null!=(d=null==K?void 0:K.includes("bg-gunmetal"))&&d||null==K||K.includes("bg-slateBlue"));let J=T&&!K?"#2A3942":y?A?"#2A3942":"#fff":"#2A3942";(0,r.useEffect)(()=>{if(O.current){let e=O.current.querySelector(".hamburger-react");e&&e.setAttribute("aria-label",A?"Close primary menu":"Open primary menu")}},[A]);let X=w||(y&&!T?"bg-gunmetal":"");T&&X&&(X=X.replace(/bg-gunmetal\s*/g,"").trim());let Z=U?x:(y?m:x)||"Matheson LLP";return(0,n.jsxs)("header",{ref:q,className:(0,E.A)("fixed left-0 right-0 z-[100] transition-all duration-500 ease-in-out lg:pt-[35px] lg:pb-[25px]",X,K),style:{top:0,transform:M?k>0?"translateY(".concat(k,"px)"):"translateY(0)":"translateY(-100%)"},role:"banner","aria-label":"Main header",suppressHydrationWarning:!0,children:[(0,n.jsx)("div",{className:"py-0 relative max-w-[100vw] w-full overflow-y-visible",children:(0,n.jsxs)("div",{className:"container flex lg:justify-between items-center  ",children:[(0,n.jsx)("div",{className:"websiteLogo relative py-[22px]  lg:py-0 mr-auto",suppressHydrationWarning:!0,children:(0,n.jsx)(s(),{href:"/",title:Z,"aria-label":Z,children:(0,n.jsx)(o.A,{src:U||T&&!K?f:y?h:f,srcSet:U||T&&!K?g:y?v:g,sizes:"254px",alt:Z,width:254,height:50,priority:!0,className:"h-[39px] lg:h-[50px] w-auto transition-opacity duration-500"})})}),(0,n.jsx)(b,{primaryLinks:Y,openDropdownIndex:z,setOpenDropdownIndex:W,isMegaMenuOpen:U,setIsMegaMenuOpen:B,isDarkTheme:y,isHomepage:T,hasScrolled:!!K}),(0,n.jsx)(S,{isDarkTheme:!!y,isHomepage:T,hasScrolled:!!K}),(0,n.jsx)(j,{isDarkTheme:y,isMegaMenuOpen:U,secondaryLinks:Q,secondaryContact:V,secondarySocial:G,isHomepage:T,hasScrolled:!!K}),(0,n.jsx)("div",{className:"md:hidden z-[102] ".concat(T&&!K?"text-gunmetal":y?"text-white":"text-gunmetal"),ref:O,children:(0,n.jsx)(i.O,{hideOutline:!1,toggled:A,toggle:e=>{let t="function"==typeof e?e(A):e;t||I([u.filter(e=>e.primaryLinks)]),_(t)}
1,size:20,color:J,"aria-haspopup":"true","aria-expanded":A})})]})}),H&&(0,n.jsx)(p,{isPrimaryDrawerOpen:A,setPrimaryDrawerOpen:_,mobileStack:D,setMobileStack:I,secondaryLinks:Q,secondaryContact:V,secondarySocial:G})]})},P=e=>{var t,l,r,a,s,o,i,c,d,u,h,f,p,x,v,g,y,w,b,j,k,N,S,L;let{headerContentConfiguration:C,primaryMenu:E}=e,P=[];if(E&&(null==E?void 0:E.menuItems)&&(null==E||null==(t=E.menuItems)?void 0:t.nodes)){let e=(0,T.Uv)(null==E||null==(j=E.menuItems)?void 0:j.nodes);e&&e.forEach(e=>{var t,l,n,r,a,s,o,i,c,d,u,h;let f={title:"",href:"",path:"",target:"",primaryLinks:!1,megamenu:!1,children:[],secondaryLinks:!1,secondarySocial:!1,secondaryContact:!1};f.title=null!=(u=e.label)?u:"",f.href=(0,m.hL)(e.uri),f.path=(0,m.hL)(e.path),f.target=null!=(h=e.target)?h:"",f.children=[],f.primaryLinks=null!=(t=e.acfFields)&&!!t.primaryLinks&&(null==(l=e.acfFields)?void 0:l.primaryLinks),f.megamenu=null!=(n=e.acfFields)&&!!n.megamenu&&(null==(r=e.acfFields)?void 0:r.megamenu),f.secondaryLinks=null!=(a=e.acfFields)&&!!a.secondaryLinks&&(null==(s=e.acfFields)?void 0:s.secondaryLinks),f.secondarySocial=null!=(o=e.acfFields)&&!!o.secondarySocial&&(null==(i=e.acfFields)?void 0:i.secondarySocial),f.secondaryContact=null!=(c=e.acfFields)&&!!c.secondaryContact&&(null==(d=e.acfFields)?void 0:d.secondaryContact),e.children&&e.children.forEach(e=>{var t,l,n,r,a,s,o,i,c,d,u,h;let p={title:"",href:"",primaryLinks:!1,megamenu:!1,children:[],secondaryLinks:!1,secondarySocial:!1,secondaryContact:!1};p.title=null!=(u=e.label)?u:"",p.href=(0,m.hL)(e.uri),p.target=e.target,p.primaryLinks=null!=(t=e.acfFields)&&!!t.primaryLinks&&(null==(l=e.acfFields)?void 0:l.primaryLinks),p.megamenu=null!=(n=e.acfFields)&&!!n.megamenu&&(null==(r=e.acfFields)?void 0:r.megamenu),p.secondaryLinks=null!=(a=e.acfFields)&&!!a.secondaryLinks&&(null==(s=e.acfFields)?void 0:s.secondaryLinks),p.secondarySocial=null!=(o=e.acfFields)&&!!o.secondarySocial&&(null==(i=e.acfFields)?void 0:i.secondarySocial),p.secondaryContact=null!=(c=e.acfFields)&&!!c.secondaryContact&&(null==(d=e.acfFields)?void 0:d.secondaryContact),(null==e?void 0:e.children)&&e.children.forEach(e=>{var t,l,n,r,a,s,o,i,c,d,u,h;let f={title:"",href:"",primaryLinks:!1,megamenu:!1,children:[],secondaryLinks:!1,secondarySocial:!1,secondaryContact:!1};f.title=null!=(u=e.label)?u:"",f.href=(0,m.hL)(e.uri),f.target=e.target,f.primaryLinks=null!=(t=e.acfFields)&&!!t.primaryLinks&&(null==(l=e.acfFields)?void 0:l.primaryLinks),f.megamenu=null!=(n=e.acfFields)&&!!n.megamenu&&(null==(r=e.acfFields)?void 0:r.megamenu),f.secondaryLinks=null!=(a=e.acfFields)&&!!a.secondaryLinks&&(null==(s=e.acfFields)?void 0:s.secondaryLinks),f.secondarySocial=null!=(o=e.acfFields)&&!!o.secondarySocial&&(null==(i=e.acfFields)?void 0:i.secondarySocial),f.secondaryContact=null!=(c=e.acfFields)&&!!c.secondaryContact&&(null==(d=e.acfFields)?void 0:d.secondaryContact),(null==e?void 0:e.children)&&e.children.forEach(e=>{var t,l,n,r,a,s,o,i,c,d,u,h;let p={title:"",href:"",primaryLinks:!1,megamenu:!1,children:[],secondaryLinks:!1,secondarySocial:!1,secondaryContact:!1};p.title=null!=(u=e.label)?u:"",p.href=(0,m.hL)(e.uri),p.target=e.target,p.primaryLinks=null!=(t=e.acfFields)&&!!t.primaryLinks&&(null==(l=e.acfFields)?void 0:l.primaryLinks),p.megamenu=null!=(n=e.acfFields)&&!!n.megamenu&&(null==(r=e.acfFields)?void 0:r.megamenu),p.secondaryLinks=null!=(a=e.acfFields)&&!!a.secondaryLinks&&(null==(s=e.acfFields)?void 0:s.secondaryLinks),p.secondarySocial=null!=(o=e.acfFields)&&!!o.secondarySocial&&(null==(i=e.acfFields)?void 0:i.secondarySocial),p.secondaryContact=null!=(c=e.acfFields)&&!!c.secondaryContact&&(null==(d=e.acfFields)?void 0:d.secondaryContact),p&&(null==(h=f.children)||h.push(p))}),f&&(null==(h=p.children)||h.push(f))}),p&&(null==(h=f.children)||h.push(p))}),P.push(f)})}return(0,n.jsx)(M,{darkMediaUrl:(0,m.fo)((null==C||null==(a=C.settingsHeader)||null==(r=a.headerLogoDarkBackground)||null==(l=r.node)?void 0:l.mediaItemUrl)||"/logo-white.svg"),darkMediaSrcSet:null!=(k=null==C||null==(i=C.settingsHeader)||null==(o=i.headerLogoDarkBackgroun
1d)||null==(s=o.node)?void 0:s.srcSet)?k:"",darkMediaAlt:null!=(N=null==C||null==(u=C.settingsHeader)||null==(d=u.headerLogoDarkBackground)||null==(c=d.node)?void 0:c.altText)?N:"",lightMediaUrl:(0,m.fo)((null==C||null==(p=C.settingsHeader)||null==(f=p.headerLogoLightBackground)||null==(h=f.node)?void 0:h.mediaItemUrl)||"/logo.svg"),lightMediaSrcSet:null!=(S=null==C||null==(g=C.settingsHeader)||null==(v=g.headerLogoLightBackground)||null==(x=v.node)?void 0:x.srcSet)?S:"",lightMediaAlt:null!=(L=null==C||null==(b=C.settingsHeader)||null==(w=b.headerLogoLightBackground)||null==(y=w.node)?void 0:y.altText)?L:"",menuData:P})}},38401:(e,t,l)=>{"use strict";l.d(t,{A:()=>r});var n=l(12115);let r=()=>{let[e,t]=(0,n.useState)(0);return(0,n.useEffect)(()=>{let e=document.querySelector("header");e&&t(e.offsetHeight);let l=()=>{e&&t(e.offsetHeight)};return window.addEventListener("resize",l),()=>{window.removeEventListener("resize",l)}},[]),e}},47482:()=>{},73558:(e,t,l)=>{"use strict";l.d(t,{default:()=>h});var n=l(95155),r=l(22638),a=l(72410),s=l(83390),o=l(8237),i=l(19922),c=l(12115),d=l(31510);let u=()=>{let[e,t]=(0,c.useState)(!1),l=(0,c.useContext)(a.z);return(0,c.useEffect)(()=>{let e=()=>{t(window.scrollY>300)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[]),(0,n.jsx)("button",{onClick:()=>{l?l.scrollTo(0,{duration:1.2,easing:e=>Math.min(1,1.001-Math.pow(2,-10*e))}):window.scrollTo({top:0,behavior:"smooth"})},className:"\n                fixed z-50 transition-all duration-300 ease-out\n                ".concat(e?"opacity-100 translate-y-0":"opacity-0 translate-y-2 pointer-events-none","\n                \n                /* Mobile positioning - smaller, positioned above footer */\n                bottom-4 right-4 w-10 h-10\n                \n                /* Desktop positioning - larger and more prominent */\n                lg:bottom-8 lg:right-8 lg:w-12 lg:h-12\n                \n                /* Styling to match brand */\n                bg-gunmetal hover:bg-gunmetal/90 \n                text-offWhite \n                rounded-full \n                shadow-lg hover:shadow-xl\n                border border-transparent hover:border-offWhite/20\n                \n                /* Focus states for accessibility */\n                focus:outline-none focus:ring-2 focus:ring-gunmetal/50 focus:ring-offset-2\n                \n                /* Hover animations */\n                transform hover:scale-105 active:scale-95\n                \n                /* Ensure it doesn't interfere with footer content */\n                mb-safe\n            "),"aria-label":"Back to top",title:"Back to top",children:(0,n.jsx)(d.A,{className:"w-6 h-6 lg:w-7 lg:h-7 rotate-[-90deg] transition-transform duration-200 mx-auto"})})};function h(e){let{children:t}=e;return(0,n.jsx)(o.m,{children:(0,n.jsx)(i.L,{children:(0,n.jsx)(r.NP,{children:(0,n.jsx)(a.A,{children:(0,n.jsxs)(s.$,{children:[t,(0,n.jsx)(u,{})]})})})})})}},89892:(e,t,l)=>{"use strict";l.d(t,{PreviewProvider:()=>s,g:()=>o});var n=l(95155),r=l(12115);let a=(0,r.createContext)(void 0);function s(e){let{children:t}=e,[l,s]=(0,r.useState)({});return(0,n.jsx)(a.Provider,{value:{previewMetadata:l,setPreviewMetadata:s},children:t})}function o(){let e=(0,r.useContext)(a);if(void 0===e)throw Error("usePreview must be used within a PreviewProvider");return e}},94833:(e,t,l)=>{Promise.resolve().then(l.t.bind(l,41402,23)),Promise.resolve().then(l.t.bind(l,35265,23)),Promise.resolve().then(l.t.bind(l,13187,23)),Promise.resolve().then(l.t.bind(l,47482,23)),Promise.resolve().then(l.t.bind(l,2071,23)),Promise.resolve().then(l.bind(l,73558)),Promise.resolve().then(l.bind(l,5042)),Promise.resolve().then(l.bind(l,14056)),Promise.resolve().then(l.bind(l,32254)),Promise.resolve().then(l.bind(l,7174)),Promise.resolve().then(l.bind(l,4563)),Promise.resolve().then(l.bind(l,89892))}},e=>{e.O(0,[6914,1723,4780,6709,5592,6446,6711,2619,4674,4068,6487,8711,8972,5786,8441,1255,7358],()=>e(e.s=94833)),_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.