PageSourceSearch

https://www.hawkinsconstruction.com/_next/static/chunks/2950-d98f34d1d6e2dc7b.js

js hawkinsconstruction.com collected 2026-10-10 00:49:13 UTC 39,333 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2950],{22659:(e,t,l)=>{l.d(t,{Table:()=>d,TableBody:()=>u,TableCell:()=>p,TableHead:()=>c,TableHeader:()=>m,TableRow:()=>x});var n=l(59554),i=l(42639),a=l.n(i),s=l(61322),r=l(24831);let o=(0,s.createContext)({bleed:!1,dense:!1,grid:!1,striped:!1});function d({bleed:e=!1,dense:t=!1,grid:l=!1,striped:i=!1,className:a,children:s,...d}){return(0,n.jsx)(o.Provider,{value:{bleed:e,dense:t,grid:l,striped:i},children:(0,n.jsx)("div",{className:"flow-root",children:(0,n.jsx)("div",{...d,className:(0,r.cn)(a,"-mx-(--gutter) overflow-x-auto whitespace-nowrap"),children:(0,n.jsx)("div",{className:(0,r.cn)("inline-block min-w-full align-middle",!e&&"sm:px-(--gutter)"),children:(0,n.jsx)("table",{className:"min-w-full text-left text-sm/6",children:s})})})})})}function c({className:e,...t}){return(0,n.jsx)("thead",{className:(0,r.cn)(e,"text-gray-500 dark:text-gray-400"),...t})}function u(e){return(0,n.jsx)("tbody",{...e})}let h=(0,s.createContext)({href:void 0,target:void 0,title:void 0});function x({href:e,target:t,title:l,className:i,children:a,...d}){let{striped:c}=(0,s.useContext)(o);return(0,n.jsx)(h.Provider,{value:{href:e,target:t,title:l},children:(0,n.jsx)("tr",{...d,className:(0,r.cn)(i,e&&"has-[[data-row-link][data-focus]]:outline-solid has-[[data-row-link][data-focus]]:outline-2 has-[[data-row-link][data-focus]]:-outline-offset-2 has-[[data-row-link][data-focus]]:outline-blue-500 dark:focus-within:bg-white/2.5",c&&"even:bg-gray-950/2.5 dark:even:bg-white/2.5",e&&c&&"hover:bg-gray-950/5 dark:hover:bg-white/5",e&&!c&&"hover:bg-gray-950/2.5 dark:hover:bg-white/2.5"),children:a})})}function m({className:e,...t}){let{bleed:l,grid:i}=(0,s.useContext)(o);return(0,n.jsx)("th",{...t,className:(0,r.cn)(e,"border-b border-b-gray-950/10 px-4 py-2 font-medium first:pl-(--gutter,--spacing(2)) last:pr-(--gutter,--spacing(2)) dark:border-b-white/10",i&&"border-l border-l-gray-950/5 first:border-l-0 dark:border-l-white/5",!l&&"sm:first:pl-2 sm:last:pr-2")})}function p({className:e,children:t,...l}){let{bleed:i,dense:d,grid:c,striped:u}=(0,s.useContext)(o),{href:x,target:m,title:p}=(0,s.useContext)(h),[g,f]=(0,s.useState)(null);return(0,n.jsxs)("td",{ref:x?f:void 0,...l,className:(0,r.cn)(e,"relative px-4 first:pl-(--gutter,--spacing(2)) last:pr-(--gutter,--spacing(2))",!u&&"border-b border-gray-950/5 dark:border-white/5",c&&"border-l border-l-gray-950/5 first:border-l-0 dark:border-l-white/5",d?"py-2.5":"py-4",!i&&"sm:first:pl-2 sm:last:pr-2"),children:[x&&(0,n.jsx)(a(),{"data-row-link":!0,href:x,target:m,"aria-label":p,tabIndex:g?.previousElementSibling===null?0:-1,className:"absolute inset-0 focus:outline-hidden"}),t]})}},69847:(e,t,l)=>{l.d(t,{InlineLink:()=>p});var n=l(59554),i=l(26295),a=l(94202),s=l(72564),r=l(42639),o=l.n(r),d=l(61322),c=l(53049),u=l(54883),h=l(6959),x=l(24831),m=l(93296);let p=e=>{let{open:t,openModal:l,closeModal:i}=(0,c.u)(),a=e.url&&"string"==typeof e.url?(0,m.f_)(e.url):"internal",s=g[a],{ariaLabel:r,initialContent:p,lastPartToWrap:v}=f(e.children),b=e.target||("internal"===a?"_self":"_blank"),j="string"==typeof e.url?e.url:void 0,w=(0,d.useMemo)(()=>!!j&&(/^(https?:)?\/\/(www\.)?(youtube\.com|youtu\.be)\//i.test(j)||/^(https?:)?\/\/(www\.)?vimeo\.com\//i.test(j)),[j]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(o(),{href:e.url,className:(0,x.cn)("group/inline-link font-variation-wght-700 inline font-bold text-black dark:text-white transition-all duration-300 hover:text-red-600! focus-visible:text-red-600! rounded-sm focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-red-600",e.className),"data-link-type":a,target:b,rel:"_blank"===b?"noopener noreferrer":void 0,"aria-label":e["aria-label"]??r,"data-gtm-name":"inline-link",onClick:t=>{if(w){t.preventDefault(),t.stopPropagation(),l();return}e.onClick?.()},children:[(0,n.jsx)("span",{className:"inline shadow-[inset_0_-2px_0_0_currentColor] shadow-red-600! transition-all duration-300",children:p}),null!==v?(0,n.jsxs)("span",{className:"inline whitespace-nowrap",children:[(0,n.jsx)("span",{className:"inline shadow-[inset_0_-2px_0_0_currentColor] shadow-red-600! transition-all duration-300",children:v}),s?(0,n.jsx)(s,{className:"relative ml-1.5 inline-block size-4 fill-transparent stroke-red-600 text-red-600 transition-colors group-hover/inline-link:fill-red-700/10 dark:text-white"}):null]}):null]}),w&&j?(0,n.jsx)(u.a,{open:t,onClose:i,closeOnOverlayClick:!0,children:(0,n.jsx)("div",{className:"pointer-events-none flex items-center justify-center",children:(0,n.jsx)(h.L,{className:"pointer-events-auto aspect-video w-full bg-black",url:j,playing:t,width:"100%",height:"auto"})})}):null]})},g={pdf:i.A,xls:a.A,doc:i.A,external:s.A},f=e=>{let t,l=d.Children.toArray(e),i=l.every(e=>"string"==typeof e),a=null,s=null;if(i){let e=l.join("");t=e;let n=e.lastIndexOf(" ");-1===n?s=e:(a=e.substring(0,n+1),s=e.substring(n+1))}else if(t=void 0,l.length>0){let e=l[l.length-1],t=l.slice(0,-1);if("string"==typeof e){let l=e.lastIndexOf(" ");if(-1===l)a=(0,n.jsx)(n.Fragment,{children:t}),s=e;else{let i=e.substring(0,l+1),r=e.substring(l+1);a=(0,n.jsxs)(n.Fragment,{children:[t,i]}),s=r}}else a=(0,n.jsx)(n.Fragment,{children:t}),s=e}else s=null;return{ariaLabel:t,initialContent:a,lastPartToWrap:s}}},81144:(e,t,l)=>{l.d(t,{WL:()=>a,sY:()=>i,wR:()=>s});let n=["en","es"],i=e=>{let t=e.replace(/^\//,"").split("/")[0];return n.includes(t)?t:"en"},a=e=>({en:"English",es:"Spanish"})[e],s=e=>e.toUpperCase()},89598:(e,t,l)=>{l.d(t,{LazyImage:()=>r});var n=l(59554),i=l(89914),a=l(3515),s=l(61322);let r=({focalPoint:e,...t})=>
1{let[l,r]=(0,s.useState)(!0),[o,d]=(0,s.useState)(!1),c=!!t.priority;(0,s.useEffect)(()=>{d(!0)},[]);let u=!t.fill&&t.width&&t.height?`${t.width} / ${t.height}`:void 0;return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:t.fill?"relative h-full w-full":"relative",style:{aspectRatio:u},children:[o&&(0,n.jsx)(i.P.div,{className:t.fill?"relative h-full w-full":"relative",initial:{opacity:+!!c},animate:{opacity:c?1:+!l},transition:{duration:+!c,ease:"easeOut"},children:(0,n.jsx)(a.default,{...t,alt:t.alt,onLoad:e=>{r(!1),t.onLoad?.(e)},style:{objectPosition:e?`${e.xPercent}% ${e.yPercent}%`:"50% 50%"}})}),(0,n.jsx)("noscript",{children:(0,n.jsx)("div",{className:"relative h-full w-full object-cover",style:{aspectRatio:u},children:(0,n.jsx)(a.default,{...t,alt:t.alt,style:{objectPosition:e?`${e.xPercent}% ${e.yPercent}%`:"50% 50%"}})})})]})})}},93911:(e,t,l)=>{l.d(t,{Header:()=>B});var n=l(59554),i=l(61322),a=l(97689),s=l(61999),r=l(89914),o=l(54544),d=l(42639),c=l.n(d),u=l(24831);let h=({displayMode:e="default",...t})=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"193",height:"44",viewBox:"0 0 193 44",className:"w-full h-auto",...t,children:[(0,n.jsx)("g",{className:(0,u.cn)("transition-all duration-300 ease-in-out",{"fill-red-600":"default"===e||"reversed"===e}),children:(0,n.jsx)("path",{d:"M37.01 16.096h24.23l-4.681-4.756H9.993l-1.071 1.088h24.479l3.61 3.668ZM50.24 4.925 45.392 0H21.162l4.85 4.925H50.24ZM42.512 21.68H66.74l-4.681-4.753H4.494l-1.072 1.086H38.9l3.612 3.667ZM31.511 10.51h24.23l-4.682-4.754H15.493l-1.07 1.088H27.9l3.611 3.665ZM0 22.511 1.07 23.6h40.183l-3.611 3.666H61.87l4.68-4.754H0ZM5.5 28.098l1.07 1.086h29.182l-3.61 3.667h24.23l4.68-4.753H5.5ZM11 33.682l1.07 1.087h18.182l-3.611 3.667h24.23l4.68-4.754h-44.55ZM16.5 39.267l1.072 1.087h7.18L21.161 44h24.23l4.66-4.733H16.5Z"})}),(0,n.jsxs)("g",{className:(0,u.cn)("transition-all duration-300 ease-in-out",{"fill-black":"default"===e,"fill-white":"reversed"===e}),children:[(0,n.jsx)("path",{d:"M73.786 38.54c0-.788-.476-1.192-1.15-1.192-1.446 0-2.101 1.46-2.101 2.688 0 .877.43 1.647 1.454 1.647.782 0 1.382-.6 1.509-1.272h1.409c-.575 1.783-1.544 2.454-2.935 2.454-1.796 0-2.846-1.03-2.846-2.83 0-2.069 1.337-3.87 3.502-3.87 1.481 0 2.604.815 2.567 2.373h-1.409v.002ZM78.65 36.167c1.732 0 2.846.95 2.846 2.74 0 2.107-1.258 3.96-3.503 3.96-1.797 0-2.846-1.03-2.846-2.83 0-2.07 1.337-3.87 3.503-3.87Zm-.638 5.518c1.384 0 2.074-1.47 2.074-2.678 0-.897-.395-1.657-1.428-1.657-1.445 0-2.102 1.46-2.102 2.687 0 .877.431 1.648 1.455 1.648h.001ZM82.49 36.319h1.454l1.743 4.55h.017l.916-4.55h1.293l-1.357 6.395h-1.409l-1.76-4.487h-.018l-.916 4.487h-1.32l1.357-6.395ZM88.576 40.592c-.045.906.575 1.182 1.384 1.182.565 0 1.22-.268 1.22-.904s-.827-.753-1.626-.996c-.808-.25-1.616-.618-1.616-1.72 0-1.425 1.302-1.989 2.542-1.989 1.31 0 2.405.582 2.405 2.062h-1.337c.027-.716-.495-.969-1.15-.969-.538 0-1.122.207-1.122.798 0 .636 1.086.797 1.526.904 1.006.26 1.715.646 1.715 1.791 0 1.533-1.392 2.114-2.612 2.114-1.768 0-2.666-.735-2.666-2.275h1.337v.002Z"}),(0,n.jsx)("path",{d:"M94.876 37.501h-2.011l.251-1.182h5.35l-.25 1.182h-1.923l-1.095 5.214h-1.419l1.096-5.214h.001ZM98.547 36.319h3.062c1.158-.02 1.912.438 1.912 1.674 0 .87-.61 1.595-1.473 1.721v.018c.53.161.664.628.664 1.13 0 .286-.045.716-.045 1.11 0 .286.018.556.09.743h-1.374a1.882 1.882 0 0 1-.062-.43c0-.43.072-.869.072-1.299 0-.618-.369-.77-.924-.77h-1.33l-.53 2.5H97.2l1.347-6.395v-.002Zm.809 2.894h1.302c.744-.01 1.454-.296 1.454-1.012s-.486-.788-1.041-.788h-1.34l-.377 1.801.002-.001ZM109.041 40.037c-.386 1.836-1.095 2.83-3.089 2.83-1.248 0-2.522-.502-2.522-1.9 0-.323.072-.636.134-.949l.782-3.7h1.409l-.781 3.7c-.045.206-.135.6-.135.807 0 .323.234.86 1.203.86 1.15 0 1.364-.61 1.571-1.578l.799-3.788h1.409l-.781 3.718h.001ZM114.102 38.54c0-.788-.476-1.192-1.15-1.192-1.446 0-2.101 1.46-2.101 2.688 0 .877.431 1.647 1.454 1.647.782 0 1.382-.6 1.509-1.272h1.409c-.575 1.783-1.544 2.454-2.935 2.454-1.796 0-2.846-1.03-2.846-2.83 0-2.069 1.337-3.87 3.501-3.87 1.481 0 2.604.815 2.567 2.373h-1.409l.001.002ZM117.629 37.501h-2.012l.252-1.182h5.352l-.252 1.182h-1.921l-1.096 5.214h-1.419l1.096-5.214ZM121.309 36.319h1.419l-1.357 6.395h-1.419l1.357-6.395ZM125.851 36.167c1.733 0 2.846.95 2.846 2.74 0 2.107-1.258 3.96-3.501 3.96-1.796 0-2.846-1.03-2.846-2.83 0-2.07 1.337-3.87 3.501-3.87Zm-.638 5.518c1.382 0 2.074-1.47 2.074-2.678 0-.897-.395-1.657-1.428-1.657-1.446 0-2.101 1.46-2.101 2.687 0 .877.43 1.648 1.454 1.648h.001ZM129.691 36.319h1.454l1.743 4.55h.019l.916-4.55h1.292l-1.356 6.395h-1.409l-1.76-4.487h-.018l-.916 4.487h-1.32l1.357-6.395h-.002ZM152.67 38.54c0-.788-.476-1.192-1.15-1.192-1.446 0-2.102 1.46-2.102 2.688 0 .877.431 1.647 1.455 1.647.781 0 1.382-.6 1.508-1.272h1.41c-.575 1.783-1.544 2.454-2.938 2.454-1.795 0-2.845-1.03-2.845-2.83 0-2.069 1.338-3.87 3.502-3.87 1.481 0 2.604.815 2.569 2.373h-1.409v.002ZM157.669 36.167c1.733 0 2.846.95 2.846 2.74 0 2.107-1.257 3.96-3.501 3.96-1.795 0-2.847-1.03-2.847-2.83 0-2.07 1.339-3.87 3.502-3.87Zm-.637 5.518c1.382 0 2.074-1.47 2.074-2.678 0-.897-.396-1.657-1.427-1.657-1.446 0-2.101 1.46-2.101 2.687 0 .877.431 1.648 1.454 1.648ZM161.644 36.319h1.949l.495 4.632h.018l2.469-4.632h1.965l-1.355 6.395h-1.319l1.167-5.088h-.017l-2.712 5.088h-1.077l-.62-5.088h-.018l-.961 5.088h-1.339l1.355-6.395ZM169.272 36.319h2.567c1.294.008 2.227.447 2.227 1.863s-1.168 2.24-2.496 2.24h-1.742l-.485 2.293h-1.41l1.339-6.395v-.001Zm.791 3.01h1.437c.709 0 1.158-.358 1.158-1.12 0-.645-.503-.796-.996-.796h-1.205l-.395 1.916h.001ZM175.896 36.319h1.446l1.068 
16.395h-1.399l-.207-1.424h-2.397l-.809 1.424h-1.491l3.789-6.395Zm-.934 3.923h1.716l-.314-2.544h-.02l-1.382 2.544ZM179.773 36.319h1.454l1.741 4.55h.018l.916-4.55h1.292l-1.355 6.395h-1.409l-1.76-4.487h-.018l-.916 4.487h-1.319l1.356-6.395Z"}),(0,n.jsx)("path",{d:"m186.695 40.234-1.536-3.915h1.446l.961 2.723 1.994-2.723h1.661l-3.125 3.977-.495 2.418h-1.419l.513-2.482v.002ZM93.902 13.411h-6.838L85.28 20.69h6.845l1.777-7.279ZM81.628 13.411H74.92l-1.778 7.279h6.7l1.786-7.279ZM103.551 13.411h-5.568l-4.065 7.279h10.807l-1.174-7.279ZM104.945 22.051H93.158l-2.427 4.346 1.062-4.346H72.811l-3.16 12.94h6.707l1.869-7.512h5.437l-1.869 7.512H92.34l1.773-2.648h6.307l.479 2.648h6.133l-2.086-12.94Zm-8.133 4.973 2.299-3.95h.047l.61 3.95h-2.956ZM120.867 13.411h-4.83l-2.515 7.279h7.27l.075-7.279ZM110.814 13.411H104.9l1.18 7.279h5.903l-1.169-7.279ZM142.271 13.411l-7.772 7.103 1.734-7.103h-10.669l-3.382 7.279h20.619l4.378-3.88-.991 3.88h6.664l1.861-7.279h-12.442ZM152.505 22.051h-6.664l-3.029 11.844-4.761-8.998 3.213-2.846h-19.716l-.726 1.56h-.061l.018-1.56h-7.727l-.539 1.56h-.06l-.25-1.56h-5.902l2.098 12.94h4.941l2.681-8.402h.061l.912 8.402h4.917l5.141-10.495-2.548 10.495h6.672l1.524-6.49 7.489 13.826h7.085l-3.882-7.336h5.804l3.309-12.94ZM162.762 13.411h-6.612l-1.769 7.279H166.1l-3.338-7.279ZM179.946 13.438s-3.666.051-5.466 2.464l.582-2.49h-6.688l-1.731 7.278h6.721l.171-.73c.016.257.042.498.073.73h7.472c-.405-.206-.653-.48-.653-.871 0-.868 1.13-.738 1.13-.738h10.05L193 13.438h-13.054ZM187.017 22.051h-13.113c.781 2.407 2.634 3.015 4.737 3.672 2.761.861 6.569 1.26 6.569 2.43 0 1.172-.477 1.085-5.525 1.085h-8.316l1.676-7.187h-18.993l-3.143 12.94h6.762l2.218-9.356h.061l4.245 9.356h5.83l.014-.066h15.995s5.699-.348 5.699-6.815c0-3.485-2.37-5.23-4.719-6.059h.003Z"})]})]});var x=l(84181),m=l(81355),p=l(52799);let g=({link:e,children:t,...l})=>e.url?(0,n.jsx)(c(),{href:e.url,rel:e.rel,target:e.target,...l,children:t}):(0,n.jsx)("span",{...l,children:t}),f=e=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"9",viewBox:"0 0 11 9",className:"h-auto w-full",...e,children:(0,n.jsx)("path",{d:"M11 3.253 5.5 8.023 0 3.252V0l5.5 4.77L11 0v3.253Z"})});var v=l(93296),b=l(81144);let j=e=>{let t=(0,i.useRef)(null),l=(0,o.usePathname)(),a=(0,b.sY)(l),s=e.link.below?.find(e=>e.active),d=s?.text??(0,b.WL)(a),c=(0,b.wR)(a),h=e.invertedHeader;return(0,n.jsx)(x.AM,{className:"relative",children:({open:i})=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(w,{open:i,buttonRef:t}),(0,n.jsxs)(x.ut,{ref:t,className:(0,u.cn)("relative flex items-center py-3 overflow-hidden outline-none group gap-x-2 rounded-sm",!i&&"focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-red-600"),"data-gtm-name":"header-dropdown-toggle",children:[(0,n.jsx)("span",{className:"flex items-center justify-center rounded bg-red-600 px-1.5 py-0.5 text-[10px] text-white",children:c}),(0,n.jsx)("span",{className:(0,u.cn)("relative group-hover:text-red-600 group-focus-visible:text-red-600 transition-colors duration-300 text-sm truncate font-medium",{"text-red-600":i,"text-white":h}),children:d}),(0,n.jsx)(r.P.div,{animate:{rotate:i?-180:0},transition:{duration:.2,ease:"easeOut"},"aria-hidden":"true",children:(0,n.jsx)("div",{className:"h-auto w-2.5 flex-none fill-red-600 transition-colors duration-300",children:(0,n.jsx)(f,{})})})]}),(0,n.jsx)(p.N,{children:i&&(0,n.jsx)(x.QT,{as:r.P.div,static:!0,className:"absolute -left-8 top-full z-10 w-screen max-w-50 overflow-hidden rounded-b-md bg-white text-sm shadow-lg ring-1 ring-gray-900/5 p-2.5",initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},children:(0,n.jsx)("div",{className:"flex flex-col gap-1",children:e.link.below?.map(e=>{let t="Spanish"===e.text?"es":"en",i=(0,v.so)(l,t);return(0,n.jsx)("div",{className:"relative flex rounded-lg group",children:(0,n.jsx)("div",{className:"flex-auto font-medium text-white",children:(0,n.jsxs)(m.J,{as:g,"data-gtm-name":"header-dropdown-link",className:(0,u.cn)("flex w-full gap-2.5 p-3 rounded hover:bg-red-600 focus-visible:bg-red-600 focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-white transition-colors duration-300 items-center group/link text-black hover:text-white focus-visible:text-white",{"bg-red-600 text-white":e.active}),link:{...e,url:i},children:[(0,n.jsx)("span",{className:(0,u.cn)("flex items-center justify-center rounded bg-red-600 px-1.5 py-0.5 text-[10px] text-white group-hover/link:bg-white group-hover/link:text-red-600 group-focus-visible/link:bg-white group-focus-visible/link:text-red-600 transition-colors duration-300",{"bg-white text-red-600":e.active}),children:t.toUpperCase()}),(0,n.jsx)("span",{className:"",children:e.text})]})})},e.text)})})})})]})})},w=e=>{let t=(0,i.useRef)(e.open);return(0,i.useEffect)(()=>{t.current&&!e.open&&e.buttonRef.current?.blur(),t.current=e.open},[e.open,e.buttonRef]),null},k=e=>e.link.url?(0,n.jsx)(c(),{href:e.link.url,target:e.link.target||"_self",rel:e.link.rel,"data-gtm-name":"header-main-menu-link",className:(0,u.cn)("flex items-center gap-x-2.5 py-3 text-sm font-heading font-medium transition-colors duration-300 w-full rounded-sm focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-red-600",e.invertedHeader?"text-white hover:text-gray-300 focus-visible:text-gray-300":"text-gray-900 hover:text-red-600 focus-visible:text-red-600"),children:(0,n.jsx)("span",{children:e.link.text})}):(0,n.jsx)("span",{className:(0,u.cn)("flex items-center gap-x-2.5 py-3 text-sm font-heading font-medium transition-colors duration-300 w-full",e.invertedHeader?"text-white":"text-gray-900"),children:(0,n.jsx)("span",{children:e.link.text})}),y=e=>(0,n.jsx)(x.t_,{className:"inline-flex gap-x-5",children:e.links.map(t=>t.below?(0,n.jsx)(j,{link:t,invertedHeader:e.invertedHeader},t.text):(0,n.jsx)(k,{link:t,invertedHeader:e.invertedHeader},t.text))}),N=({link:e,index:t,isActive:l,invertedHeader:i,onHover:a,onOpenChange:s,setItemRef:r})=>(0,n.jsx)(x.AM,{className:"relative",children:({open:o})=>(0,n.jsx)(M,{link:e,index:t,open:o,isActive:l,invertedHeader:i,onHover:a,onOpenChange:s,setItemRef:r})}),M=({link:e,index:t,open:l,isActive:a,invertedHeader:s,onHover:o,onOpenChange:d,setItemRef:c})=>{let h=(0,i.useRef)(null),v=(0,i.useRef)(l);return(0,i.useEffect)(()=>{l?d(t):d(null)},[l,t,d]),(0,i.useEffect)(()=>{v.current&&!l&&h.current?.blur(),v.current=l},[l]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(x.ut,{ref:e=>{h.current=e,c(t,e)},className:(0,u.cn)("group relative flex items-center gap-x-2 px-3.5 py-4 text-sm font-bold leading-6 tracking-wide outline-0",!l&&"focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-red-600"),"data-gtm-name":"header-dropdown-toggle","aria-current":e.active?"page":void 0,onMouseEnter:()=>o(t),onMouseLeave:()=>o(null),children:[(0,n.jsx)("span",{className:(0,u.cn)("relative uppercase transition-colors duration-200 ease-in",a||s?"text-white":"text-black"),children:e.text}),(0,n.jsx)(r.P.div,{animate:{rotate:l?-180:0},transition:{duration:.2,ease:"easeOut"},"aria-hidden":"true",className:"relative",children:(0,n.jsx)("div",{className:(0,u.cn)("h-auto w-2.5 flex-none transition-colors duration-300",{"fill-white":a,"fill-red-600":!a}),children:(0,n.jsx)(f,{})})})]}),(0,n.jsx)(p.N,{children:l&&(0,n.jsx)(x.QT,{as:r.P.div,static:!0,className:"absolute -left-8 top-[calc(100%+12px)] z-10 w-screen max-w-50 overflow-hidden rounded-b bg-white shadow-[0px_4px_20px_0px_rgba(208,208,212,0.30)] font-medium",initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},children:(0,n.jsx)("div",{className:"p-2.5",children:e.below?.map(e=>(0,n.jsx)("div",{className:"group relative flex rounded text-sm leading-6 hover:bg-red-600 focus-within:bg-red-600 transition-colors duration-300 group/link",children:(0,n.jsx)("div",{className:"flex-auto text-black group-hover/link:text-white group-focus-within/link:text-white transition-colors duration-300",children:e.url?(0,n.jsxs)(m.J,{as:g,"data-gtm-name":"header-dropdown-link",className:"block w-full px-4 py-2.5 rounded focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-white",link:e,"aria-current":e.active?"page":void 0,children:[e.text,(0,n.jsx)("span",{className:"absolute inset-0"})]}):(0,n.jsxs)("span",{className:"block w-full px-4 py-2.5",children:[e.text,(0,n.jsx)("span",{className:"absolute inset-0"})]})})},`${e.text}-${e.url}`))})})})]})},H=({link:e,index:t,isActive:l,invertedHeader:i,onHover:a,setItemRef:s})=>(0,n.jsx)(c(),{ref:e=>s(t,e),"data-gtm-name":"header-main-menu-link",href:e.url||"#",target:e.target||"_self",rel:e.rel,"aria-current":e.active?"page":void 0,className:"font-heading relative px-3.5 py-4 text-sm leading-6 font-bold tracking-wide uppercase focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-red-600",onMouseEnter:()=>a(t),onMouseLeave:()=>a(null),children:(0,n.jsx)("span",{className:(0,u.cn)("relative transition-colors duration-200 ease-in",l||i?"text-white":"text-black"),children:e.text})}),L=({link:e,index:t,isActive:l,invertedHeader:i,onHover:a,setItemRef:s})=>(0,n.jsx)("span",{ref:e=>s(t,e),"aria-current":e.active?"page":void 0,className:"relative px-3.5 py-4 font-heading text-sm font-bold leading-6 tracking-wide outline-hidden uppercase",onMouseEnter:()=>a(t),onMouseLeave:()=>a(null),children:(0,n.jsx)("span",{className:(0,u.cn)("relative transition-colors duration-200 ease-in",l||i?"text-white":"text-gray-900"),children:e.text})}),C=({backgroundStyle:e})=>(0,n.jsx)(p.N,{children:e&&(0,n.jsx)(r.P.div,{className:"absolute top-0 bottom-0 bg-red-600 pointer-events-none rounded h-[calc(100%-16px)] my-auto",initial:{opacity:0,left:e.left,width:e.width},animate:{opacity:1,left:e.left,width:e.width},exit:{opacity:0},transition:{left:{type:"spring",stiffness:400,damping:30},width:{type:"spring",stiffness:400,damping:30},opacity:{duration:.15}},"aria-hidden":"true"})}),Z=e=>{let[t,l]=(0,i.useState)(null),[a,s]=(0,i.useState)(null),r=(0,i.useRef)(null),d=(0,i.useRef)(new Map),[c,h]=(0,i.useState)(null),m=(0,o.usePathname)(),p=e=>e.replace(/^\/(es)(?=\/|$)/,""),g=p(m),f=e.primaryLinks.findIndex(e=>!!(e.url&&p(e.url)===g||e.below?.some(e=>e.url&&p(e.url)===g))),v=a??t??(f>=0?f:null);(0,i.useEffect)(()=>{if(null===v||!r.current)return void h(null);let e=d.current.get(v);if(!e)return void h(null);let t=r.current.getBoundingClientRect(),l=e.getBoundingClientRect();h({left:l.left-t.left,width:l.width})},[v]);let b=(0,i.useCallback)((e,t)=>{t?d.current.set(e,t):d.current.delete(e)},[]),j=(0,i.useCallback)(t=>{s(t),e.onMenuOpenChange?.(null!==t)},[e.onMenuOpenChange]);return(0,n.jsxs)("div",{ref:r,className:(0,u.cn)("hidden lg:flex lg:gap-x-12 rounded px-2 relative",{"bg-gray-900/50":e.invertedHeader,"bg-gray-200/20":!e.invertedHeader}),children:[(0,n.jsx)(C,{backgroundStyle:c}),(0,n.jsx)(x.t_,{className:"hidden lg:flex",children:e.primaryLinks.map((t,i)=>{let a=v===i;return t.below?(0,n.jsx)(N,{link:t,index:i,isActive:a,invertedHeader:e.invertedHeader,onHover:l,onOpenChange:j,setItemRef:b},`${t.text}-${t.url}`):t.url?(0,n.jsx)(H,{link:t,index:i,isActive:a,invertedHeader:e.invertedHeader,onHover:l,setItemRef:b},`${t.text}-${t.url}`):(0,n.jsx)(L,{link:t,index:i,isActive:a,invertedHeader:e.invertedHeader,onHover:l,setItemRef:b},`${t.text}-${t.url}`)})},e.closeSignal)]})};var _=l(58204),P=l(69609),$=l(67032),O=l(99204);let S=e=>{let t={hidden:{opacity:0},show:{opacity:1,transition:{duration:.2,when:"afterChildren"}}},l=(0,o.usePathname)(),i=(0,b.sY)(l),a=e.link.below?.find(e=>e.active),s=a?.text??(0,b.WL)(i),d=(0,b.wR)(i);return(0,n.jsx)(n.Fragment,{children:e.link.below?(0,n.jsx)(r.P.li,{variants:t,className:"px-6",children:(0,n.jsx)(O.EN,{children:({open:t})=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"font-heading text-base font-bold leading-7 tracking-wide text-black",children:e.link.text}),(0,n.jsxs)(O._q,{className:"flex w-full items-center text-left group/button py-2","data-gtm-name":"mobile-menu-accordion-toggle",children:[(0,n.jsxs)("div",{className:"flex items-center gap-3",children:[(0,n.jsx)("span",{className:"flex items-center justify-center rounded bg-red-600 px-1.5 py-0.5 text-[10px] text-white font-bold",children:d}),(0,n.jsx)("span",{className:"font-heading text-base font-medium leading-7 tracking-wide text-black group-hover/button:text-red-600 transition-colors duration-300",children:s})]}),(0,n.jsx)(r.P.div,{className:"ml-auto size-8 shrink-0 p-2 fill-red-600",animate:{rotate:180*!!t},transition:{type:"spring",damping:20,stiffness:150},children:(0,n.jsx)(f,{})})]}),(0,n.jsx)(p.N,{children:t&&(0,n.jsx)(O.kS,{static:!0,children:(0,n.jsx)(r.P.div,{style:{overflow:"hidden"},initial:{opacity:0,height:0}
1,animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{type:"tween",duration:.3,ease:"easeInOut"},className:"overflow-hidden",children:e.link.below?.map(t=>{let i="Spanish"===t.text?"es":"en",a=(0,v.so)(l,i);return(0,n.jsx)("div",{className:"group/button relative flex gap-x-6 rounded-lg p-4 text-base leading-6",children:(0,n.jsx)("div",{className:"flex-auto font-medium text-black group-hover/button:text-red-600 transition-colors duration-300",children:(0,n.jsxs)(m.J,{as:g,onClick:()=>e.setMobileMenuOpen(!1),link:{...t,url:a},"data-gtm-name":"mobile-menu-accordion-link","aria-current":t.active?"page":void 0,className:"flex items-center gap-3",children:[(0,n.jsx)("span",{className:(0,u.cn)("flex items-center justify-center rounded bg-red-600 px-1.5 py-0.5 text-[10px] text-white group-hover/link:bg-white group-hover/link:text-red-600 transition-colors duration-300 font-bold",{"bg-white text-red-600":t.active}),children:i.toUpperCase()}),(0,n.jsx)("span",{children:t.text}),(0,n.jsx)("span",{className:"absolute inset-0"})]})})},t.text)})})})})]})})}):(0,n.jsx)(r.P.li,{variants:t,children:e.link.url?(0,n.jsx)(m.J,{as:g,link:e.link,"data-gtm-name":"mobile-menu-link",target:e.link.target||"_self",rel:e.link.rel,"aria-current":e.link.active?"page":void 0,className:"-mx-3 block rounded-lg px-3 py-2 font-heading text-base font-bold leading-7 tracking-wide text-gray-900 hover:bg-gray-50",children:e.link.text}):(0,n.jsx)("span",{className:"-mx-3 block rounded-lg px-3 py-2 font-heading text-base font-bold leading-7 tracking-wide text-gray-900 hover:bg-gray-50",children:e.link.text})})})},R=e=>e.replace(/^\/(es)(?=\/|$)/,""),E=e=>{let t=R((0,o.usePathname)()),l=e=>!!e.url&&R(e.url)===t,i=l(e.link)||!!e.link.below?.some(e=>l(e)),a={hidden:{opacity:0},show:{opacity:1,transition:{duration:.2,when:"afterChildren"}}};return(0,n.jsx)(n.Fragment,{children:e.link.below?(0,n.jsx)(r.P.li,{variants:a,className:"border-t border-gray-500/10 py-3 px-6",children:(0,n.jsx)(O.EN,{defaultOpen:i,children:({open:t})=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(O._q,{className:"flex w-full items-center text-left group/button rounded-sm focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-red-600","data-gtm-name":"mobile-menu-accordion-toggle",children:[(0,n.jsx)("div",{className:(0,u.cn)("-mx-3 block rounded-lg px-3 py-4 font-heading text-2xl font-bold leading-6 tracking-wide uppercase group-hover/button:text-red-600 group-focus-visible/button:text-red-600 transition-colors duration-300",i?"text-red-600":"text-black"),children:e.link.text}),(0,n.jsx)(r.P.div,{className:"ml-auto size-8 shrink-0 p-2 fill-red-600",animate:{rotate:180*!!t},transition:{type:"spring",damping:20,stiffness:150},children:(0,n.jsx)(f,{})})]}),(0,n.jsx)(p.N,{children:t&&(0,n.jsx)(O.kS,{static:!0,children:(0,n.jsx)(r.P.div,{style:{overflow:"hidden"},initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{type:"tween",duration:.3,ease:"easeInOut"},className:"overflow-hidden",children:e.link.below?.map(t=>(0,n.jsx)("div",{className:"relative flex gap-x-6 rounded-lg px-4 text-lg font-medium leading-6 py-3",children:(0,n.jsx)("div",{className:"flex-auto font-medium text-black",children:t.url?(0,n.jsxs)(m.J,{as:g,onClick:()=>e.setMobileMenuOpen(!1),link:t,"data-gtm-name":"mobile-menu-accordion-link","aria-current":t.active?"page":void 0,className:"group/button rounded-sm focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-red-600",children:[(0,n.jsx)("span",{className:(0,u.cn)("group-hover/button:text-red-600 group-focus-visible/button:text-red-600 transition-colors duration-300",l(t)&&"text-red-600"),children:t.text}),(0,n.jsx)("span",{className:"absolute inset-0"})]}):(0,n.jsxs)("span",{children:[t.text,(0,n.jsx)("span",{className:"absolute inset-0"})]})})},`${t.text}-${t.url}`))})})})]})})}):(0,n.jsx)(r.P.li,{variants:a,className:"border-t border-gray-500/10 px-6",children:e.link.url?(0,n.jsx)(m.J,{as:g,link:e.link,"data-gtm-name":"mobile-menu-link",target:e.link.target||"_self",rel:e.link.rel,"aria-current":e.link.active?"page":void 0,className:"-mx-3 block rounded-lg px-3 py-8.5 font-heading text-2xl font-bold leading-6 tracking-wide text-black uppercase group/button focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-red-600",children:(0,n.jsx)("span",{className:(0,u.cn)("group-hover/button:text-red-600 group-focus-visible/button:text-red-600 transition-colors duration-300",i&&"text-red-600"),children:e.link.text})}):(0,n.jsx)("span",{className:"-mx-3 block rounded-lg px-3 py-8.5 font-heading text-2xl font-bold leading-6 tracking-wide text-black uppercase group/button",children:(0,n.jsx)("span",{className:"group-hover/button:text-red-600 transition-colors duration-300",children:e.link.text})})})})};var z=l(56882);let F=e=>{let t={hidden:{opacity:0}
1,show:{opacity:1,transition:{duration:.2,when:"afterChildren"}}};return(0,n.jsx)(n.Fragment,{children:e.link.below?(0,n.jsx)(r.P.li,{variants:t,children:(0,n.jsx)(O.EN,{children:({open:t})=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(O._q,{className:"flex w-full items-center text-left","data-gtm-name":"mobile-menu-accordion-toggle",children:[(0,n.jsx)("div",{className:"-mx-3 block rounded-lg px-3 py-2 font-heading text-sm font-bold leading-7 tracking-wide text-black hover:bg-gray-50",children:e.link.text}),(0,n.jsx)(r.P.div,{className:"ml-auto size-10 shrink-0 p-2",animate:{rotate:180*!!t},transition:{type:"spring",damping:20,stiffness:150},children:(0,n.jsx)(z.A,{})})]}),(0,n.jsx)(p.N,{children:t&&(0,n.jsx)(O.kS,{static:!0,children:(0,n.jsx)(r.P.div,{style:{overflow:"hidden"},initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{type:"tween",duration:.3,ease:"easeInOut"},className:"overflow-hidden",children:e.link.below?.map(t=>(0,n.jsx)("div",{className:"group relative flex gap-x-6 rounded-lg p-4 text-sm leading-6 hover:bg-gray-50",children:(0,n.jsx)("div",{className:"flex-auto font-semibold text-gray-900",children:t.url?(0,n.jsxs)(m.J,{as:g,onClick:()=>e.setMobileMenuOpen(!1),link:t,"data-gtm-name":"mobile-menu-accordion-link","aria-current":t.active?"page":void 0,children:[t.text,(0,n.jsx)("span",{className:"absolute inset-0"})]}):(0,n.jsxs)("span",{children:[t.text,(0,n.jsx)("span",{className:"absolute inset-0"})]})})},`${t.text}-${t.url}`))})})})]})})}):(0,n.jsx)(r.P.li,{variants:t,className:"px-6",children:e.link.url?(0,n.jsx)(m.J,{as:g,link:e.link,"data-gtm-name":"mobile-menu-link",target:e.link.target||"_self",rel:e.link.rel,"aria-current":e.link.active?"page":void 0,className:"-mx-3 block rounded-lg px-3 py-2 font-heading text-sm font-medium leading-7 tracking-wide text-black hover:text-red-600 transition-colors duration-300",children:e.link.text}):(0,n.jsx)("span",{className:"-mx-3 block rounded-lg px-3 py-2 font-heading text-sm font-medium leading-7 tracking-wide text-black hover:text-red-600 transition-colors duration-300",children:e.link.text})})})},I=e=>{let[t,l]=(0,i.useState)(!1),a=(0,$.o)(e=>e.setShowMobileMenu),s=e.invertedHeader;return(0,i.useEffect)(()=>(a(t),()=>{a(!1)}),[t,a]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"py-3.5",children:(0,n.jsx)(P.K,{type:"button",icon:"Menu",variant:s?"ghost-inverted":"ghost",size:"small",onClick:()=>l(!0),ariaLabel:"Open main menu",className:"size-12.5 p-3.5"})}),(0,n.jsx)(p.N,{children:t&&(0,n.jsxs)(_.lG,{as:r.P.div,className:"lg:hidden",open:t,onClose:l,children:[(0,n.jsx)(r.P.div,{className:"fixed inset-0 z-9999 h-dvh bg-black/85 backdrop-blur-md",variants:{hidden:{opacity:0},show:{opacity:1,transition:{duration:.3}}},initial:"hidden",animate:"show",exit:"hidden"}),(0,n.jsxs)(_.Lj,{as:r.P.div,className:"fixed inset-y-0 right-0 z-99999 h-dvh w-full overflow-y-auto bg-white py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",variants:{hidden:{x:"100%",transition:{type:"tween",ease:"easeOut",duration:.3,staggerChildren:.1}},show:{x:"0%",transition:{type:"tween",ease:"easeOut",duration:.3,staggerChildren:.1}}},initial:"hidden",animate:"show",exit:"hidden",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between px-6",children:[(0,n.jsxs)(m.J,{as:g,link:{text:"Hawkins Construction",url:"/",target:"_self",rel:"",below:[]},className:"-m-1.5 p-1.5","data-gtm-name":"mobile-menu-logo",children:[(0,n.jsx)("span",{className:"sr-only",children:"Hawkins Construction"}),(0,n.jsx)("div",{className:"h-auto w-44",children:(0,n.jsx)(h,{})})]}),(0,n.jsx)(P.K,{type:"button",icon:"Close",variant:"ghost",size:"small",onClick:()=>l(!1),ariaLabel:"Close main menu",className:"size-12.5 p-2.5"})]}),(0,n.jsx)("div",{className:"mt-6 flow-root",children:(0,n.jsxs)("div",{className:"-my-6 divide-y divide-gray-500/10",children:[(0,n.jsx)("ul",{className:"pt-6",children:e.primaryLinks.map(e=>(0,n.jsx)(E,{link:e,setMobileMenuOpen:l},`${e.text}-${e.url}`))}),(0,n.jsx)("ul",{className:"space-y-2 py-6",children:e.languageLinks&&e.languageLinks.length>0&&e.languageLinks.map(e=>(0,n.jsx)(S,{link:e,setMobileMenuOpen:l},`${e.text}-${e.url}`))}),(0,n.jsx)("ul",{className:"space-y-2 py-5",children:e.secondaryLinks&&e.secondaryLinks.length>0&&e.secondaryLinks.map(e=>(0,n.jsx)(F,{link:e,setMobileMenuOpen:l},`${e.text}-${e.url}`))})]})})]})]})})]})},A=e=>{let t=e.link.below?.find(e=>e.active)?.text??e.link.text,l=e.invertedHeader;return(0,n.jsx)(x.AM,{className:"relative",children:({open:i})=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(x.ut,{className:"relative flex items-center py-3 overflow-hidden outline-none group gap-x-1.5","data-gtm-name":"header-dropdown-toggle",children:[(0,n.jsx)("span",{className:(0,u.cn)("relative group-hover:text-red-600 transition-colors duration-300 text-sm truncate font-medium",{"text-red-600":i,"text-white":l}),children:t}),(0,n.jsx)(r.P.div,{animate:{rotate:i?-180:0},transition:{duration:.2,ease:"easeOut"},"aria-hidden":"true",children:(0,n.jsx)("div",{className:"h-auto w-2.5 flex-none fill-red-600 transition-colors duration-300",children:(0,n.jsx)(f,{})})})]}),(0,n.jsx)(p.N,{children:i&&(0,n.jsx)(x.QT,{as:r.P.div,static:!0,className:"absolute -left-8 top-full z-10 w-screen max-w-50 overflow-hidden rounded-b-md bg-white text-sm shadow-lg ring-1 ring-gray-900/5 p-2.5",initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},children:(0,n.jsx)("div",{className:"flex flex-col gap-1",children:e.link.below?.map(e=>(0,n.jsx)("div",{className:"relative flex rounded-lg group",children:(0,n.jsx)("div",{className:"flex-auto font-medium text-black",children:e.url?(0,n.jsx)(m.J,{as:g,"data-gtm-name":"header-dropdown-link",className:(0,u.cn)("flex w-full gap-2.5 p-3 rounded hover:bg-red-600 hover:text-white transition-colors duration-300 items-center",{"text-red-600":e.active}),link:e,children:(0,n.jsx)("span",{children:e.text})}):(0,n.jsx)("span",{className:"flex w-full gap-1 p-3",children:e.text})})},e.text))})})})]})})},J=e=>{let t=e.invertedHeader;return e.link.url?(0,n.jsx)(c(),{href:e.link.url,target:e.link.target||"_self",rel:e.link.rel,"data-gtm-name":"header-main-menu-link",className:(0,u.cn)("inline-flex items-center gap-x-2.5 py-3 text-sm font-heading hover:text-red-600 focus-visible:text-red-600 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-red-600 rounded-sm font-medium transition-colors duration-300 w-full whitespace-nowrap",{"text-white":t}),children:(0,n.jsx)("span",{children:e.link.text})}):(0,n.jsx)("span",{className:(0,u.cn)("inline-flex items-center gap-x-2.5 py-3 text-sm font-heading font-medium transition-colors duration-300 w-full whitespace-nowrap",{"text-white":t}),children:(0,n.jsx)("span",{children:e.link.text})})},T=e=>(0,n.jsx)(x.t_,{className:"inline-flex",children:e.links.map((t,l)=>(0,n.jsxs)(i.Fragment,{children:[l>0&&(0,n.jsx)("div",{className:"w-px self-stretch bg-red-600 -skew-x-15 my-3 mx-3"}),t.below?(0,n.jsx)(A,{link:t,invertedHeader:e.invertedHeader}):(0,n.jsx)(J,{link:t,invertedHeader:e.invertedHeader})]},t.text))}),B=e=>{let t=(0,$.o)(e=>e.setShowHeader),l=(0,$.o)(e=>e.showHeader),d=(0,$.o)(e=>e.invertedHeader),x=(0,o.usePathname)(),[m,p]=(0,i.useState)(!1),[g,f]=(0,i.useState)(!1),[v,b]=(0,i.useState)(0),j=d&&!m&&!g,[w,k]=(0,i.useState)(!1),[N,M]=(0,i.useState)(0),{scrollY:H}=(0,a.L)(),L=(0,i.useRef)(!1);(0,i.useEffect)(()=>{t(!0),M(0),L.current=!1},[x,t]),(0,i.useLayoutEffect)(()=>{k(!0)},[]),(0,s.L)(H,"change",e=>{if(b(e=>e+1),j){t(!0),M(e);return}e<10?t(!0):L.current?e>N?t(!1):e<N&&t(!0):t(!0),L.current=!0,M(e)});let C=e=>e.map(e=>{let t="/"===x?"/":x.replace(/\/$/,""),l=e.url&&e.url.startsWith("/")||e.url?(e=>{try{let t=new URL(e,window.location.origin).pathname;return"/"===t?"/":t.replace(/\/$/,"")}catch{return"/"===e?"/":e.replace(/\/$/,"")}})(e.url):null,n=e.below?C(e.below):null,i=!1;null!==l&&(i="/"===l?"/"===t:t===l||t.startsWith(l+"/"));let a=n?.some(e=>e.active);return{...e,active:i||a,below:n}}),_=C(e.primaryLinks),P=e.secondaryLinks?C(e.secondaryLinks):void 0,O=e.languageLinks?C(e.languageLinks):void 0;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c(),{role:"link",className:(0,u.cn)("absolute -top-12 left-0 z-100 flex h-10 w-full items-center justify-center bg-black text-center text-sm text-white! outline-hidden ring-gray-400 transition","focus-visible:top-0"),href:"#main-content",onClick:e=>{e.currentTarget.blur()},children:"Skip to Main Content"}),(0,n.jsxs)("header",{className:(0,u.cn)("sticky left-0 top-0 z-50 will-change-auto",w?"transition-all duration-200 ease-out":"transition-none",w?j?"bg-transparent shadow-[0px_4px_20px_0px_rgba(208,208,212,0)]":"bg-white shadow-[0px_4px_20px_0px_rgba(208,208,212,0.30)] text-black":"bg-transparent",!l&&"-translate-y-full"),onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),children:[(0,n.jsx)(r.P.div,{className:"absolute inset-0 -z-10 h-full w-full bg-linear-to-b from-black to-transparent pointer-events-none",initial:!1,animate:{opacity:.9*!!j},transition:{duration:.3,ease:"easeInOut"}}),(0,n.jsx)("div",{className:"hidden w-full lg:block border-b border-gray-200/20",children:(0,n.jsxs)("div",{className:"flex container-max",children:[e.languageLinks&&e.languageLinks.length>0&&(0,n.jsx)("nav",{className:"flex items-center justify-between gap-5 text-sm font-bold font-variation-wght-700","aria-label":"Sites Navigation",children:(0,n.jsx)(y,{links:e.languageLinks,invertedHeader:j})}),e.secondaryLinks&&e.secondaryLinks.length>0&&(0,n.jsx)("nav",{className:"ml-auto flex items-center justify-between gap-5 text-sm font-bold font-variation-wght-700","aria-label":"Secondary Navigation",children:(0,n.jsx)(T,{links:e.secondaryLinks,invertedHeader:j})})]})}),(0,n.jsxs)("nav",{className:"container-max flex items-center justify-between lg:py-3","aria-label":"Global",children:[(0,n.jsx)("div",{className:"flex items-center gap-x-12",children:(0,n.jsxs)(c(),{href:"/","data-gtm-name":"header-logo",className:"-m-1.5 p-1.5",children:[(0,n.jsx)("span",{className:"sr-only",children:"Hawkins Construction"}),(0,n.jsx)("div",{className:"h-auto w-40 lg:w-48",children:(0,n.jsx)(h,{displayMode:j?"reversed":"default"})})]})}),(0,n.jsx)(Z,{primaryLinks:_,invertedHeader:j,onMenuOpenChange:f,closeSignal:v}),(0,n.jsx)("div",{className:"flex lg:hidden",children:(0,n.jsx)(I,{primaryLinks:_,secondaryLinks:P,languageLinks:O,invertedHeader:j})})]})]})]})}}}]);

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.