1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,185252,e=>{"use strict";var t,a,n,r,l,i,s,o,c,d,u,f,m,p,h,x,v=e.i(340782),w=e.i(872453),g=e.i(647163),b=e.i(504716),j=e.i(884727),y=e.i(150759),N=e.i(294237);let k=(0,b.forwardRef)(function({data:e},t){let a=e?.background?._id==="black";return(0,v.jsx)("div",{ref:t,style:{backgroundColor:e?.background?.hex||"#FDEBD3"},children:(0,v.jsx)("div",{className:"mx-auto flex max-w-(--breakpoint-2xl) items-center justify-center px-4 py-2 lg:px-12",children:e?.Text?(0,v.jsx)(y.RichText,{className:(0,N.cx)("paragraph-xs lg:paragraph-base text-center",a?"text-white":"text-black"),value:e?.Text}):null})})});var C=e.i(813151),E=e.i(584560),R=e.i(352345),_=e.i(515247);e.i(518064);var T=e.i(461434);let P=b.default.forwardRef(function({children:e,size:v=16,...w},g){return 16===v||"16"===v||"16px"===v?b.default.createElement(T.default,{width:v,height:v,ref:g,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...w}
1,t||(t=b.default.createElement("path",{d:"M2 12H14V13H2z"})),a||(a=b.default.createElement("path",{d:"M2 9H14V10H2z"})),n||(n=b.default.createElement("path",{d:"M2 6H14V7H2z"})),r||(r=b.default.createElement("path",{d:"M2 3H14V4H2z"})),e):20===v||"20"===v||"20px"===v?b.default.createElement(T.default,{width:v,height:v,ref:g,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...w},l||(l=b.default.createElement("path",{d:"M2 14.8H18V16H2z"})),i||(i=b.default.createElement("path",{d:"M2 11.2H18V12.399999999999999H2z"})),s||(s=b.default.createElement("path",{d:"M2 7.6H18V8.799999999999999H2z"})),o||(o=b.default.createElement("path",{d:"M2 4H18V5.2H2z"})),e):24===v||"24"===v||"24px"===v?b.default.createElement(T.default,{width:v,height:v,ref:g,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...w},c||(c=b.default.createElement("path",{d:"M3 18H21V19.5H3z"})),d||(d=b.default.createElement("path",{d:"M3 13.5H21V15H3z"})),u||(u=b.default.createElement("path",{d:"M3 9H21V10.5H3z"})),f||(f=b.default.createElement("path",{d:"M3 4.5H21V6H3z"})),e):b.default.createElement(T.default,{width:v,height:v,ref:g,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...w},m||(m=b.default.createElement("path",{d:"M4 6H28V8H4z"})),p||(p=b.default.createElement("path",{d:"M4 24H28V26H4z"})),h||(h=b.default.createElement("path",{d:"M4 12H28V14H4z"})),x||(x=b.default.createElement("path",{d:"M4 18H28V20H4z"})),e)});var M=e.i(652218),z=e.i(874811),H=e.i(898161),D=e.i(844024),S=e.i(568275),A=e.i(683085);function I({className:e,regionName:t}){return(0,v.jsx)("p",{className:e,children:t?`Providing services to ${t}-based clients`:"Providing services nationally"})}let L=({onClick:e})=>(0,v.jsxs)("button",{className:"mb-8 flex items-center gap-1",onClick:e,children:[(0,v.jsx)(R.ArrowLeft,{className:"fill-off-white-warm size-4"}),(0,v.jsx)("p",{className:"label-base",children:"Back"})]}),F=({icon:e})=>(0,v.jsx)("img",{alt:"",className:"size-5 invert",src:`/icons/legal-area/${e}.svg`}),V=({href:e,label:t,onClick:a,className:n,children:r})=>(0,v.jsxs)(S.default,{className:n??"label-md px-3 py-5.5",href:e,onClick:a,prefetch:!1,children:[r,t]}),O=({links:e,onClose:t})=>(0,v.jsxs)("div",{className:"flex flex-col gap-2 pt-8",children:[(0,v.jsx)("p",{className:"label-sm text-off-white-warm/35 px-3",children:"Services"}),(0,v.jsx)("ul",{className:"flex flex-col gap-2",children:e.map(e=>e.pathname?.current?(0,v.jsx)("li",{children:(0,v.jsx)(V,{className:"label-md block w-full cursor-pointer !p-3",href:e.pathname.current,label:e.name,onClick:t})},e._id):null)})]}),B=({linkGroup:e,onClose:t})=>(0,v.jsxs)("div",{children:[e.title&&(0,v.jsx)("p",{className:"label-sm text-gray-300-inverse px-3 py-2",children:e.title}),e.links?.map(e=>e.pathname?.current?(0,v.jsx)(V,{className:"label-md flex cursor-pointer items-center gap-3 px-3 py-4.5",href:e.pathname.current,label:e.name,onClick:t},e._id):null)]},e._key);function K({navItems:e,primaryCta:t,container:a}){let[n,r]=(0,b.useState)(!1),[l,i]=(0,b.useState)(void 0),[s,o]=(0,b.useState)(void 0),c=(0,E.default)("(prefers-reduced-motion: reduce)"),d=new Map;e?.forEach(e=>{e._key&&d.set(e._key,e)});let u=l?d.get(l):void 0,f=u?._type==="dropdown"||u?._type==="customDropdown",m=u?._type==="customDropdown";return(0,v.jsxs)(M.Root,{modal:!1,onOpenChange:e=>{r(e),e||(i(void 0),o(void 0))},open:n,children:[(0,v.jsx)(M.Trigger,{"aria-label":"Menu",className:"shrink-0 lg:hidden",onClick:()=>i(void 0),children:n?(0,v.jsx)(_.Close,{className:"fill-off-white-warm size-6"}):(0,v.jsx)(P,{className:"fill-off-white-warm size-6"})}),(0,v.jsx)(M.Portal,{container:a,children:(0,v.jsx)(A.RemoveScroll,{children:(0,v.jsxs)(M.Content,{className:"text-off-white fixed top-0 left-0 z-30 w-full overflow-x-hidden",onOpenAutoFocus:e=>e.preventDefault(),children:[(0,v.jsx)(z.Root,{children:(0,v.jsx)(M.Title,{children:"Menu"})}),(0,v.jsx)(H.AnimatePresence,{initial:!1,mode:"wait",children:(0,v.jsxs)(D.m.div,{animate:{opacity:1},className:"bg-gray-10-inverse fixed top-[var(--rebrand-navbar-height)] right-10 bottom-4 left-10 flex flex-col overflow-x-hidden overflow-y-scroll roun
1ded-b-md p-4 max-lg:right-4 max-lg:left-4",exit:{opacity:0},initial:{opacity:0},transition:{duration:.15*!c,ease:"easeInOut"},children:[(0,v.jsxs)("div",{className:"flex flex-1 flex-col",children:[!f&&!s&&(0,v.jsx)(v.Fragment,{children:e?.map(e=>"link"===e._type&&e.cta?.link?(0,v.jsx)(V,{href:e.cta.link,label:e.cta.label??"",onClick:()=>r(!1)},e._key):"dropdown"===e._type||"customDropdown"===e._type?(0,v.jsxs)("button",{className:"flex w-full items-center justify-between px-3 py-5.5 text-left",onClick:()=>i(e._key),type:"button",children:[(0,v.jsx)("p",{className:"label-md",children:e.title??""}),(0,v.jsx)(R.ArrowRight,{className:"fill-off-white-warm size-4"})]},e._key):void 0)}),f&&!m&&!s&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(L,{onClick:()=>i(void 0)}),e?.map(e=>{if("dropdown"===e._type)return e.items?.map(e=>e.areas?.pathname?.current?(0,v.jsx)("button",{className:"flex w-full cursor-pointer items-center justify-between px-3 py-4 text-left",onClick:()=>o(e._key),type:"button",children:(0,v.jsxs)("div",{className:"flex items-center gap-3",children:[e.areas?.icon&&(0,v.jsx)(F,{icon:e.areas.icon}),(0,v.jsx)("p",{className:"label-md",children:e.areas?.name})]})},e._key):null)})]}),m&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(L,{onClick:()=>i(void 0)}),e?.map(e=>{if("customDropdown"===e._type&&e._key===l)return e.linkGroups?.map(e=>(0,v.jsxs)("div",{children:[e.title&&(0,v.jsx)("p",{className:"label-sm text-off-white-warm/35 px-3 py-2",children:e.title}),e.links?.map(e=>e?.link?(0,v.jsx)(V,{className:"label-md flex cursor-pointer items-center gap-3 px-3 py-4.5",href:e.link,label:e.label??"",onClick:()=>r(!1)},e._key):null)]},e._key))})]}),s&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(L,{onClick:()=>o(void 0)}),e?.map(e=>{if("dropdown"===e._type)return e.items?.map(e=>{if(!e.areas?.pathname?.current||e._key!==s)return null;let t=e.allLinks?.map(e=>({_id:e._id,name:e.name??"",pathname:e.pathname}))??[],a=e.links?.map(e=>({_key:e._key,title:e.title,links:e.links?.map(e=>({_id:e._id,name:e.name??"",pathname:e.pathname}))}))??[],n=e.areas.pathname.current??"";return(0,v.jsxs)("div",{children:[(0,v.jsx)(V,{className:"label-md flex cursor-pointer items-center gap-3 px-3 py-4",href:n,label:e.areas.name??"",onClick:()=>r(!1),children:e.areas?.icon&&(0,v.jsx)(F,{icon:e.areas.icon})}),(0,v.jsx)(I,{className:"label-xs text-off-white-warm/35 px-3 font-light",regionName:e.areas.regionName}),"all"===e.productsSelection&&t.length>0&&(0,v.jsx)(O,{links:t,onClose:()=>r(!1)}),"selected"===e.productsSelection&&a.length>0&&(0,v.jsx)("div",{children:a.map(e=>(0,v.jsx)(B,{linkGroup:e,onClose:()=>r(!1)},e._key))})]},e._key)})})]})]}),t&&!f&&!s&&(0,v.jsx)("div",{className:"mt-auto flex w-fit items-center justify-between px-3 py-5.5",children:(0,v.jsx)(S.default,{className:(0,C.linkButtonVariants)({className:"text-lg"}),href:t.link??"",prefetch:!1,children:t.label})})]},s?"all-links-menu":m?"custom-dropdown-menu":f?"sub-menu":"main-menu")})]})})})]})}var U=e.i(680821),$=e.i(428680),G=e.i(626973),W=e.i(291967),q=e.i(449701),Y=e.i(820763),X=e.i(167965),J=e.i(155050),Q=e.i(815205),Z=e.i(399281),ee=e.i(830671),et=e.i(60934),ea=e.i(498359),en=e.i(27758),er=e.i(404758),el=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),ei=b.forwardRef((e,t)=>(0,v.jsx)(q.Primitive.span,{...e,ref:t,style:{...el,...e.style}}));ei.displayName="VisuallyHidden";var es="NavigationMenu",[eo,ec,ed]=(0,ee.createCollection)(es),[eu,ef,em]=(0,ee.createCollection)(es),[ep,eh]=(0,G.createContextScope)(es,[ed,em]),[ex,ev]=ep(es),[ew,eg]=ep(es),eb=b.forwardRef((e,t)=>{let{__scopeNavigationMenu:a,value:n,onValueChange:r,defaultValue:l,delayDuration:i=200,skipDelayDuration:s=300,orientation:o="horizontal",dir:c,...d}=e,[u,f]=b.useState(null),m=(0,X.useComposedRefs)(t,e=>f(e)),p=(0,J.useDirection)(c),h=b.useRef(0),x=b.useRef(0),w=b.useRef(0),[g,j]=b.useState(!0),[y,N]=(0,Y.useControllableState)({prop:n,onChange:e=>{let t=s>0;""!==e?(window.clearTimeout(w.current),t&&j(!1)):(window.clearTimeout(w.current),w.current=window.setTimeout(()=>j(!0),s)),r?.(e)},defaultProp:l??"",caller:es}),k=b.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>N(""),150)},[N]),C=b.useCallback(e=>{window.clearTimeout(x.current),N(e)},[N]),E=b.useCallback(e=>{y===e?window.clearTimeout(x.current):h.current=window.setTimeout(()=>{window.clearTimeout(x.current),N(e)},i)},[y,N,i]);return b.useEffect(()=>()=>{window.clearTimeout(h.current),window.clearTimeout(x.current),window.clearTimeout(w.current)}
1,[]),(0,v.jsx)(eN,{scope:a,isRootMenu:!0,value:y,dir:p,orientation:o,rootNavigationMenu:u,onTriggerEnter:e=>{window.clearTimeout(h.current),g?E(e):C(e)},onTriggerLeave:()=>{window.clearTimeout(h.current),k()},onContentEnter:()=>window.clearTimeout(x.current),onContentLeave:k,onItemSelect:e=>{N(t=>t===e?"":e)},onItemDismiss:()=>N(""),children:(0,v.jsx)(q.Primitive.nav,{"aria-label":"Main","data-orientation":o,dir:p,...d,ref:m})})});eb.displayName=es;var ej="NavigationMenuSub",ey=b.forwardRef((e,t)=>{let{__scopeNavigationMenu:a,value:n,onValueChange:r,defaultValue:l,orientation:i="horizontal",...s}=e,o=ev(ej,a),[c,d]=(0,Y.useControllableState)({prop:n,onChange:r,defaultProp:l??"",caller:ej});return(0,v.jsx)(eN,{scope:a,isRootMenu:!1,value:c,dir:o.dir,orientation:i,rootNavigationMenu:o.rootNavigationMenu,onTriggerEnter:e=>d(e),onItemSelect:e=>d(e),onItemDismiss:()=>d(""),children:(0,v.jsx)(q.Primitive.div,{"data-orientation":i,...s,ref:t})})});ey.displayName=ej;var eN=e=>{let{scope:t,isRootMenu:a,rootNavigationMenu:n,dir:r,orientation:l,children:i,value:s,onItemSelect:o,onItemDismiss:c,onTriggerEnter:d,onTriggerLeave:u,onContentEnter:f,onContentLeave:m}=e,[p,h]=b.useState(null),[x,w]=b.useState(new Map),[g,j]=b.useState(null);return(0,v.jsx)(ex,{scope:t,isRootMenu:a,rootNavigationMenu:n,value:s,previousValue:(0,ea.usePrevious)(s),baseId:(0,Z.useId)(),dir:r,orientation:l,viewport:p,onViewportChange:h,indicatorTrack:g,onIndicatorTrackChange:j,onTriggerEnter:(0,er.useCallbackRef)(d),onTriggerLeave:(0,er.useCallbackRef)(u),onContentEnter:(0,er.useCallbackRef)(f),onContentLeave:(0,er.useCallbackRef)(m),onItemSelect:(0,er.useCallbackRef)(o),onItemDismiss:(0,er.useCallbackRef)(c),onViewportContentChange:b.useCallback((e,t)=>{w(a=>(a.set(e,t),new Map(a)))},[]),onViewportContentRemove:b.useCallback(e=>{w(t=>t.has(e)?(t.delete(e),new Map(t)):t)},[]),children:(0,v.jsx)(eo.Provider,{scope:t,children:(0,v.jsx)(ew,{scope:t,items:x,children:i})})})},ek="NavigationMenuList",eC=b.forwardRef((e,t)=>{let{__scopeNavigationMenu:a,...n}=e,r=ev(ek,a),l=(0,v.jsx)(q.Primitive.ul,{"data-orientation":r.orientation,...n,ref:t});return(0,v.jsx)(q.Primitive.div,{style:{position:"relative"},ref:r.onIndicatorTrackChange,children:(0,v.jsx)(eo.Slot,{scope:a,children:r.isRootMenu?(0,v.jsx)(eU,{asChild:!0,children:l}):l})})});eC.displayName=ek;var eE="NavigationMenuItem",[eR,e_]=ep(eE),eT=b.forwardRef((e,t)=>{let{__scopeNavigationMenu:a,value:n,...r}=e,l=(0,Z.useId)(),i=b.useRef(null),s=b.useRef(null),o=b.useRef(null),c=b.useRef(()=>{}),d=b.useRef(!1),u=b.useCallback((e="start")=>{if(i.current){c.current();let t=eW(i.current);t.length&&eq("start"===e?t:t.reverse())}},[]),f=b.useCallback(()=>{if(i.current){var e;let t=eW(i.current);t.length&&((e=t).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),c.current=()=>{e.forEach(e=>{let t=e.dataset.tabindex;e.setAttribute("tabindex",t)})})}},[]);return(0,v.jsx)(eR,{scope:a,value:n||l||"LEGACY_REACT_AUTO_VALUE",triggerRef:s,contentRef:i,focusProxyRef:o,wasEscapeCloseRef:d,onEntryKeyDown:u,onFocusProxyEnter:u,onRootContentClose:f,onContentFocusOutside:f,children:(0,v.jsx)(q.Primitive.li,{...r,ref:t})})});eT.displayName=eE;var eP="NavigationMenuTrigger",eM=b.forwardRef((e,t)=>{let{__scopeNavigationMenu:a,disabled:n,...r}=e,l=ev(eP,e.__scopeNavigationMenu),i=e_(eP,e.__scopeNavigationMenu),s=b.useRef(null),o=(0,X.useComposedRefs)(s,i.triggerRef,t),c=eJ(l.baseId,i.value),d=eQ(l.baseId,i.value),u=b.useRef(!1),f=b.useRef(!1),m=i.value===l.value;return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(eo.ItemSlot,{scope:a,value:i.value,children:(0,v.jsx)(eG,{asChild:!0,children:(0,v.jsx)(q.Primitive.button,{id:c,disabled:n,"data-disabled":n?"":void 0,"data-state":eX(m),"aria-expanded":m,"aria-controls":d,...r,ref:o,onPointerEnter:(0,W.composeEventHandlers)(e.onPointerEnter,()=>{f.current=!1,i.wasEscapeCloseRef.current=!1}),onPointerMove:(0,W.composeEventHandlers)(e.onPointerMove,eZ(()=>{n||f.current||i.wasEscapeCloseRef.current||u.current||(l.onTriggerEnter(i.value),u.current=!0)})),onPointerLeave:(0,W.composeEventHandlers)(e.onPointerLeave,eZ(()=>{n||(l.onTriggerLeave(),u.current=!1)})),onClick:(0,W.composeEventHandlers)(e.onClick,()=>{l.onItemSelect(i.value),f.current=m}),onKeyDown:(0,W.composeEventHandlers)(e.onKeyDown,e=>{let t={horizontal:"ArrowDown",vertical:"rtl"===l.dir?"ArrowLeft":"ArrowRight"}[l.orientation];m&&e.key===t&&(i.onEntryKeyDown(),e.preventDefault())})})})}),m&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(ei,{"aria-hidden":!0,tabIndex:0,ref:i.focusProxyRef,onFocus:e=>{let t=i.contentRef.current,a=e.relatedTarget,n=a===s.current,r=t?.contains(a);(n||!r)&&i.onFocusProxyEnter(n?"start":"end")}}),l.viewport&&(0,v.jsx)("span",{"aria-owns":d})]})]})});eM.displayName=eP;var ez="navigationMenu.linkSelect",eH=b.forwardRef((e,t)=>
1{let{__scopeNavigationMenu:a,active:n,onSelect:r,...l}=e;return(0,v.jsx)(eG,{asChild:!0,children:(0,v.jsx)(q.Primitive.a,{"data-active":n?"":void 0,"aria-current":n?"page":void 0,...l,ref:t,onClick:(0,W.composeEventHandlers)(e.onClick,e=>{let t=e.target,a=new CustomEvent(ez,{bubbles:!0,cancelable:!0});if(t.addEventListener(ez,e=>r?.(e),{once:!0}),(0,q.dispatchDiscreteCustomEvent)(t,a),!a.defaultPrevented&&!e.metaKey){let e=new CustomEvent(eF,{bubbles:!0,cancelable:!0});(0,q.dispatchDiscreteCustomEvent)(t,e)}},{checkForDefaultPrevented:!1})})})});eH.displayName="NavigationMenuLink";var eD="NavigationMenuIndicator";b.forwardRef((e,t)=>{let{forceMount:a,...n}=e,r=ev(eD,e.__scopeNavigationMenu),l=!!r.value;return r.indicatorTrack?$.default.createPortal((0,v.jsx)(Q.Presence,{present:a||l,children:(0,v.jsx)(eS,{...n,ref:t})}),r.indicatorTrack):null}).displayName=eD;var eS=b.forwardRef((e,t)=>{let{__scopeNavigationMenu:a,...n}=e,r=ev(eD,a),l=ec(a),[i,s]=b.useState(null),[o,c]=b.useState(null),d="horizontal"===r.orientation,u=!!r.value;b.useEffect(()=>{let e=l(),t=e.find(e=>e.value===r.value)?.ref.current;t&&s(t)},[l,r.value]);let f=()=>{i&&c({size:d?i.offsetWidth:i.offsetHeight,offset:d?i.offsetLeft:i.offsetTop})};return eY(i,f),eY(r.indicatorTrack,f),o?(0,v.jsx)(q.Primitive.div,{"aria-hidden":!0,"data-state":u?"visible":"hidden","data-orientation":r.orientation,...n,ref:t,style:{position:"absolute",...d?{left:0,width:o.size+"px",transform:`translateX(${o.offset}px)`}:{top:0,height:o.size+"px",transform:`translateY(${o.offset}px)`},...n.style}}):null}),eA="NavigationMenuContent",eI=b.forwardRef((e,t)=>{let{forceMount:a,...n}=e,r=ev(eA,e.__scopeNavigationMenu),l=e_(eA,e.__scopeNavigationMenu),i=(0,X.useComposedRefs)(l.contentRef,t),s=l.value===r.value,o={value:l.value,triggerRef:l.triggerRef,focusProxyRef:l.focusProxyRef,wasEscapeCloseRef:l.wasEscapeCloseRef,onContentFocusOutside:l.onContentFocusOutside,onRootContentClose:l.onRootContentClose,...n};return r.viewport?(0,v.jsx)(eL,{forceMount:a,...o,ref:i}):(0,v.jsx)(Q.Presence,{present:a||s,children:(0,v.jsx)(eV,{"data-state":eX(s),...o,ref:i,onPointerEnter:(0,W.composeEventHandlers)(e.onPointerEnter,r.onContentEnter),onPointerLeave:(0,W.composeEventHandlers)(e.onPointerLeave,eZ(r.onContentLeave)),style:{pointerEvents:!s&&r.isRootMenu?"none":void 0,...o.style}})})});eI.displayName=eA;var eL=b.forwardRef((e,t)=>{let{onViewportContentChange:a,onViewportContentRemove:n}=ev(eA,e.__scopeNavigationMenu);return(0,en.useLayoutEffect)(()=>{a(e.value,{ref:t,...e})},[e,t,a]),(0,en.useLayoutEffect)(()=>()=>n(e.value),[e.value,n]),null}),eF="navigationMenu.rootContentDismiss",eV=b.forwardRef((e,t)=>{let{__scopeNavigationMenu:a,value:n,triggerRef:r,focusProxyRef:l,wasEscapeCloseRef:i,onRootContentClose:s,onContentFocusOutside:o,...c}=e,d=ev(eA,a),u=b.useRef(null),f=(0,X.useComposedRefs)(u,t),m=eJ(d.baseId,n),p=eQ(d.baseId,n),h=ec(a),x=b.useRef(null),{onItemDismiss:w}=d;b.useEffect(()=>{let e=u.current;if(d.isRootMenu&&e){let t=()=>{w(),s(),e.contains(document.activeElement)&&r.current?.focus()};return e.addEventListener(eF,t),()=>e.removeEventListener(eF,t)}},[d.isRootMenu,e.value,r,w,s]);let g=b.useMemo(()=>{let e=h().map(e=>e.value);"rtl"===d.dir&&e.reverse();let t=e.indexOf(d.value),a=e.indexOf(d.previousValue),r=n===d.value,l=a===e.indexOf(n);if(!r&&!l)return x.current;let i=(()=>{if(t!==a){if(r&&-1!==a)return t>a?"from-end":"from-start";if(l&&-1!==t)return t>a?"to-start":"to-end"}return null})();return x.current=i,i},[d.previousValue,d.value,d.dir,h,n]);return(0,v.jsx)(eU,{asChild:!0,children:(0,v.jsx)(et.DismissableLayer,{id:p,"aria-labelledby":m,"data-motion":g,"data-orientation":d.orientation,...c,ref:f,disableOutsidePointerEvents:!1,onDismiss:()=>{let e=new Event(eF,{bubbles:!0,cancelable:!0});u.current?.dispatchEvent(e)},onFocusOutside:(0,W.composeEventHandlers)(e.onFocusOutside,e=>{o();let t=e.target;d.rootNavigationMenu?.contains(t)&&e.preventDefault()}),onPointerDownOutside:(0,W.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.target,a=h().some(e=>e.ref.current?.contains(t)),n=d.isRootMenu&&d.viewport?.contains(t);(a||n||!d.isRootMenu)&&e.preventDefault()}),onKeyDown:(0,W.composeEventHandlers)(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){let t=eW(e.currentTarget),a=document.activeElement,n=t.findIndex(e=>e===a);eq(e.shiftKey?t.slice(0,n).reverse():t.slice(n+1,t.length))?e.preventDefault():l.current?.focus()}}),onEscapeKeyDown:(0,W.composeEventHandlers)(e.onEscapeKeyDown,e=>{i.current=!0})})})}),eO="NavigationMenuViewport",eB=b.forwardRef((e,t)=>
1{let{forceMount:a,...n}=e,r=!!ev(eO,e.__scopeNavigationMenu).value;return(0,v.jsx)(Q.Presence,{present:a||r,children:(0,v.jsx)(eK,{...n,ref:t})})});eB.displayName=eO;var eK=b.forwardRef((e,t)=>{let{__scopeNavigationMenu:a,children:n,...r}=e,l=ev(eO,a),i=(0,X.useComposedRefs)(t,l.onViewportChange),s=eg(eA,e.__scopeNavigationMenu),[o,c]=b.useState(null),[d,u]=b.useState(null),f=o?o?.width+"px":void 0,m=o?o?.height+"px":void 0,p=!!l.value,h=p?l.value:l.previousValue;return eY(d,()=>{d&&c({width:d.offsetWidth,height:d.offsetHeight})}),(0,v.jsx)(q.Primitive.div,{"data-state":eX(p),"data-orientation":l.orientation,...r,ref:i,style:{pointerEvents:!p&&l.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":f,"--radix-navigation-menu-viewport-height":m,...r.style},onPointerEnter:(0,W.composeEventHandlers)(e.onPointerEnter,l.onContentEnter),onPointerLeave:(0,W.composeEventHandlers)(e.onPointerLeave,eZ(l.onContentLeave)),children:Array.from(s.items).map(([e,{ref:t,forceMount:a,...n}])=>{let r=h===e;return(0,v.jsx)(Q.Presence,{present:a||r,children:(0,v.jsx)(eV,{...n,ref:(0,X.composeRefs)(t,e=>{r&&e&&u(e)})})},e)})})}),eU=b.forwardRef((e,t)=>{let{__scopeNavigationMenu:a,...n}=e,r=ev("FocusGroup",a);return(0,v.jsx)(eu.Provider,{scope:a,children:(0,v.jsx)(eu.Slot,{scope:a,children:(0,v.jsx)(q.Primitive.div,{dir:r.dir,...n,ref:t})})})}),e$=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],eG=b.forwardRef((e,t)=>{let{__scopeNavigationMenu:a,...n}=e,r=ef(a),l=ev("FocusGroupItem",a);return(0,v.jsx)(eu.ItemSlot,{scope:a,children:(0,v.jsx)(q.Primitive.button,{...n,ref:t,onKeyDown:(0,W.composeEventHandlers)(e.onKeyDown,e=>{if(["Home","End",...e$].includes(e.key)){let t=r().map(e=>e.ref.current);if(["rtl"===l.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),e$.includes(e.key)){let a=t.indexOf(e.currentTarget);t=t.slice(a+1)}setTimeout(()=>eq(t)),e.preventDefault()}})})})});function eW(e){let t=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)t.push(a.currentNode);return t}function eq(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function eY(e,t){let a=(0,er.useCallbackRef)(t);(0,en.useLayoutEffect)(()=>{let t=0;if(e){let n=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(a)});return n.observe(e),()=>{window.cancelAnimationFrame(t),n.unobserve(e)}}},[e,a])}function eX(e){return e?"open":"closed"}function eJ(e,t){return`${e}-trigger-${t}`}function eQ(e,t){return`${e}-content-${t}`}function eZ(e){return t=>"mouse"===t.pointerType?e(t):void 0}let e0="data-[motion=from-start]:animate-enterFromLeft data-[motion=from-end]:animate-enterFromRight data-[motion=to-start]:animate-exitToLeft data-[motion=to-end]:animate-exitToRight",e1="label-sm text-off-white-warm touch-hitbox cursor-pointer py-0 leading-5 transition-opacity duration-200 group-hover/links:opacity-50 hover:underline hover:decoration-[0.48px] hover:underline-offset-[4.8px] hover:opacity-100";function e2({data:e,onClose:t}){let a=e?.areas?.pathname?.current??"";return(0,v.jsxs)("div",{className:"scrollbar-hide border-gray-300-inverse relative flex h-full min-w-0 flex-1 flex-col gap-6 overflow-x-auto overflow-y-hidden border-t-[0.5px] p-6",children:[(0,v.jsxs)("div",{className:"sticky top-0 left-0 flex w-full flex-col gap-1",children:[(0,v.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,v.jsx)(S.default,{className:"heading-md text-off-white-warm touch-hitbox hover:underline hover:decoration-[0.48px] hover:underline-offset-[4.8px]",href:a,onClick:t,prefetch:!1,children:e.areas?.name}),a?(0,v.jsx)(S.default,{className:(0,C.linkButtonVariants)({variant:"ghost",className:"label-sm text-off-white-warm touch-hitbox underline decoration-[0.4px] underline-offset-4"}),href:a,onClick:t,prefetch:!1,children:"View all"}):null]}),(0,v.jsx)(I,{className:"label-xs text-off-white-warm/35 font-light",regionName:e.areas?.regionName})]}),"all"===e.productsSelection?(0,v.jsx)("div",{className:"group/links grid h-fit grid-flow-row grid-cols-3 content-start gap-x-4 gap-y-3",children:e.allLinks?.map(e=>e.pathname?.current?(0,v.jsx)(S.default,{className:(0,g.cn)(e1,"underline-offset-2"),href:e.pathname?.current,onClick:t,prefetch:!1,children:e.name},e._id):null)}):(0,v.jsx)("div",{className:"group/links flex max-h-[432px] w-fit flex-col flex-wrap gap-x-4 gap-y-8",children:e.links?.map(e=>(0,v.jsxs)("div",{className:"flex w-full max-w-full flex-col flex-wrap gap-4 lg:max-w-[200px]",children:[(0,v.jsx)("p",{className:"label-xs text-off-white-warm/35 font-light",children:e.title}),(0,v.jsx)("div",{className:"flex flex-col gap-4",children:e.links?.map(e=>e?.pathname?.current?(0,v.jsx)(S.default,{className:e1,href:e.pathname.current,onClick:t,prefetch:!1,children:e.name},e._id):null)})]},e._key))})]})}function e4({navItem:e,onClose:t}){let a=e.items?.[0]?._key;return(0,v.jsxs)(ey,{className:"flex h-[545px] w-full max-w-(--breakpoint-2xl) items-stretch",defaultValue:a,orientation:"horizontal",children:[(0,v.jsx)(eC,{className:"border-gray-300-inverse scrollbar-hide flex h-full w-full max-w-[288px] flex-col gap-2 overflow-y-scroll border-t-[0.5px] border-r-[0.5px] p-4",children:e.items?.map(e=>(0,v.jsxs)(eT,{value:e._key,children:[(0,v.jsx)(eM,{asChild:!0,children:(0,v.jsxs)(S.default,{className:(0,g.cn)("text-off-white-warm touch-hitbox relative flex w-full cursor-pointer items-center justify-between rounded-sm p-3 transition-colors duration-150 ease-in-out hover:bg-black","data-[state=open]:bg-black"),href:e.areas?.pathname?.current??"",onClick:t,prefetch:!1,children:[(0,v.jsxs)("div",{className:"relative z-1 flex items-center gap-4",children:[e.areas?.icon?(0,v.jsx)("img",{alt:"",className:(0,N.cx)("size-6 opacity-40 invert transition-opacity duration-150 ease-in-out","group-data-[state=open]:opacity-100"),src:`/icons/legal-area/${e.areas?.icon}.svg`}):null,(0,v.jsx)("p",{className:"label-sm leading-5",children:e.areas?.name})]}),(0,v.jsx)(R.ArrowRight,{className:"fill-off-white-warm relative z-1 size-5 opacity-0 transition-opacity duration-150 ease-in-out data-[state=open]:opacity-100 [[data-state=open]>&]:opacity-100"})]})}),(0,v.jsxs)(eI,{className:(0,g.cn)("absolute top-0 right-0 flex h-[545px] w-full","data-[motion=from-start]:animate-fadeToEnter data-[motion=from-end]:animate-fadeToEnter data-[motion=to-start]:animate-fadeToExit data-[motion=to-end]:animate-fadeToExit"),children:[(0,v.jsx)(e2,{data:e,onClose:t}),(0,v.jsx)("div",{className:"bg-gray-200-inverse relative aspect-[3/4] h-[545px] w-auto shrink-0 max-[1440px]:hidden",children:(0,v.jsx)(U.default,{alt:e.areas?.name??void 0,className:"size-full object-cover object-center",data:e.areas?.cardImage??null,sizes:"410px"})})]})]},e._key))}),(0,v.jsx)(eB,{className:"relative h-full flex-1"})]})}function e5({navItem:e,onClose:t}){return(0,v.jsx)("div",{className:"border-gray-300-inverse flex flex-wrap gap-x-12 gap-y-8 border-t-[0.5px] p-6",children:e.linkGroups?.map(e=>(0,v.jsxs)("div",{className:"flex min-w-[200px] flex-col gap-4",children:[e.title&&(0,v.jsx)("p",{className:"label-xs text-off-white-warm/35 font-light",children:e.title}),(0,v.jsx)("div",{className:"group/links flex flex-col gap-3",children:e.links?.map(e=>e?.link?(0,v.jsx)(S.default,{className:e1,href:e.link,onClick:t,prefetch:!1,children:e.label},e._key):null)})]},e._key))})}function e3({title:e,isOpen:t,isDimmed:a}){return(0,v.jsxs)(eM,{className:(0,g.cn)("text-off-white-warm touch-hitbox flex items-center justify-center gap-0.5 whitespace-nowrap transition-opacity duration-300 hover:opacity-100",a&&"opacity-50"),children:[(0,v.jsx)("p",{className:"label-sm leading-5 font-extralight",children:e}),(0,v.jsx)(_.ChevronDown,{className:(0,N.cx)("fill-off-white-warm size-4 transition-transform duration-150 ease-in-out",t&&"rotate-180")}
1)]})}function e8({data:e,openDropdown:t,setOpenDropdown:a}){let n=()=>a?.(""),r=e=>!!t&&t!==e;return(0,v.jsx)("div",{className:"flex items-center gap-5",children:(0,v.jsxs)(eb,{onValueChange:e=>a?.(e),value:t,children:[(0,v.jsx)(eC,{className:"relative z-40 ml-0 flex items-baseline justify-start gap-5",children:e?.navItems?.map(e=>"link"===e._type?e.cta?.link?(0,v.jsx)(eT,{value:e._key,children:(0,v.jsx)(eH,{asChild:!0,children:(0,v.jsx)(S.default,{className:(0,g.cn)("label-sm text-off-white-warm leading-5 font-extralight whitespace-nowrap transition-opacity duration-150 ease-in-out hover:opacity-100",r(e._key)&&"opacity-50"),href:e.cta.link,prefetch:!0,children:e.cta.label})})},e._key):null:"dropdown"===e._type?(0,v.jsxs)(eT,{className:"relative",value:e._key,children:[(0,v.jsx)(e3,{isDimmed:r(e._key),isOpen:t===e._key,title:e.title??""}),(0,v.jsx)(eI,{className:(0,g.cn)("bg-gray-10-inverse absolute top-0 left-0 z-50 flex max-h-[545px] w-full max-w-(--breakpoint-2xl) items-start rounded-b-md",e0),children:(0,v.jsx)(e4,{navItem:e,onClose:n})})]},e._key):"customDropdown"===e._type?(0,v.jsxs)(eT,{className:"relative",value:e._key,children:[(0,v.jsx)(e3,{isDimmed:r(e._key),isOpen:t===e._key,title:e.title??""}),(0,v.jsx)(eI,{className:(0,g.cn)("bg-gray-10-inverse absolute top-0 left-0 z-50 w-full rounded-b-md",e0),children:(0,v.jsx)(e5,{navItem:e,onClose:n})})]},e._key):null)}),(0,v.jsx)("div",{className:"absolute top-full left-0 z-50 w-full",children:(0,v.jsx)(eB,{className:"relative mt-0 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-b-md transition-[height] duration-200 ease-out"})})]})})}var e6=e.i(446641),e9=e.i(423017),e7=e.i(520234),te=e.i(70854),tt=e.i(222706),ta=e.i(351179),tn=e.i(154476),tr=e.i(169479),tl=e.i(8677),ti=e.i(14037),ts=e.i(801917);function to({searchConfig:e,trigger:t}){let[a,n]=(0,b.useState)(!1),r="undefined"!=typeof document?document.getElementById("nav-portal"):null;return(0,v.jsxs)(M.Root,{onOpenChange:n,open:a,children:[t?(0,v.jsx)(M.Trigger,{children:t}):(0,v.jsx)(M.Trigger,{"aria-label":"Open search",className:"flex h-10 shrink-0 items-center px-2.5",children:(0,v.jsx)(tl.Search,{className:"!fill-off-white-warm !size-4.5"})}),(0,v.jsxs)(M.Portal,{container:r,children:[(0,v.jsx)(M.Overlay,{className:(0,g.cn)(["animate-overlayFade fixed z-30 bg-black opacity-30 data-[state=open]:opacity-30","inset-0"])}),(0,v.jsx)(M.Content,{className:(0,g.cn)(["fixed z-50 h-dvh w-screen max-w-[960px]","inset-0","md:top-1/2 md:left-1/2 md:-translate-x-1/2 md:-translate-y-1/2","md:h-[90%] md:w-[90%] lg:h-[600px] lg:w-[90%]","bg-off-white border-off-white flex flex-col items-center border p-3 md:rounded-2xl md:p-6 md:pt-12","data-[state=open]:animate-fadeUp data-[state=closed]:animate-fadeDown"]),children:(0,v.jsx)(tc,{searchConfig:e,setOpen:n})})]})]})}function tc({searchConfig:e,setOpen:t}){let[a,n]=(0,b.useState)(""),r=(0,ts.useAtomValue)(tt.searchIndexAtom),l=e?.locale??"GB",i=r?.locales[l]??null,s=a.trim()&&i?(0,tt.filterEntries)(i.entries,a):[],o=(0,b.useRef)(null),c=e=>{n(""),t(!1),e.path&&(window.location.href=e.path)},d=e=>{if(e)switch(e.key){case"Escape":n("");break;case"Enter":let t=document.activeElement,a=t?.id,r=Number.parseInt(a?.split("-").pop()??"0");s[r]&&c(s[r]);break;case"ArrowDown":e.preventDefault();let l=document.activeElement?.nextElementSibling;l&&l.focus();break;case"ArrowUp":e.preventDefault();let i=document.activeElement?.previousElementSibling;i&&i.focus()}};return(0,b.useEffect)(()=>{setTimeout(()=>{document.getElementById("search-input")?.focus()},50)},[]),(0,b.useEffect)(()=>{let e=o.current;return e&&e.addEventListener("keydown",d),()=>{e&&e.removeEventListener("keydown",d)}},[s]),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(M.Close,{"aria-label":"Close search",className:"absolute top-4 right-4 hidden md:block",children:(0,v.jsx)(te.default,{className:"size-5",name:"close"})}),(0,v.jsx)(z.Root,{children:(0,v.jsx)(M.Title,{children:"Search"})}),(0,v.jsxs)("div",{className:"relative flex h-full w-full flex-col justify-center gap-4 md:gap-6",children:[(0,v.jsxs)("div",{className:"flex w-full items-center",children:[(0,v.jsxs)("div",{className:"relative w-full",children:[(0,v.jsx)(te.default,{className:"absolute top-1/2 left-3 !size-4.5 -translate-y-1/2",name:"search-gray"}),(0,v.jsx)("input",{className:"label-base w-full appearance-none rounded-xl border-2 border-gray-300 py-2.5 pr-16 pl-10 outline-none focus-within:ring-1 focus-within:ring-black focus-within:ring-offset-2 focus:border-gray-500",id:"search-input",onChange:e=>n(e.target.value),onKeyDown:e=>{if("ArrowDown"===e.key||"ArrowUp"===e.key){e.preventDefault();let t=o.current?.firstElementChild;t?.focus()}},placeholder:e?.searchPlaceholder||"Search...",type:"text",value:a}),a&&(0,v.jsx)("button",{className:"paragraph-sm absolute top-1/2 right-3 -translate-y-1/2 cursor-pointer underline underline-offset-4 hover:opacity-75",onClick:()=>n(""),children:"Clear"})]}),(0,v.jsx)(M.Close,{className:"px-5 md:hidden",children:"Cancel"})]}),(0,v.jsx)("div",{className:"paragraph-base flex flex-1 flex-col gap-4 overflow-y-auto md:gap-6",children:a.trim()?i&&0===s.length?(0,v.jsxs)("div",{className:"flex flex-col items-center gap-6 p-4 text-center",children:[(0,v.jsxs)("div",{className:"paragraph-base flex flex-col gap-2",children:[e?.emptyTitle&&(0,v.jsxs)("h4",{children:[e.emptyTitle," â",a,"â"]}
1),e?.emptyDescription&&(0,v.jsx)("p",{className:"font-secondary paragraph-sm text-gray-300-inverse font-normal",children:e.emptyDescription}),e?.newResultsCta&&(0,v.jsx)(C.Button,{className:"mx-auto mt-4 mb-5 w-fit font-normal md:mb-6",href:e.newResultsCta.link??"/",variant:"solid",children:e.newResultsCta.label??"get started..."})]}),(0,v.jsx)("div",{className:"h-[1px] w-full max-w-[720px] bg-gray-300"}),e?.keywords&&e.keywords.length>0&&(0,v.jsxs)("div",{className:"flex w-full max-w-[720px] flex-col gap-6",children:[e.keywordsTitle&&(0,v.jsx)("h4",{className:"paragraph-base",children:e.keywordsTitle}),(0,v.jsx)("div",{className:"flex flex-wrap justify-center gap-2 px-3",children:e.keywords.map(({keyword:e,_key:a})=>(0,v.jsxs)(C.Button,{className:"w-fit rounded-full! border-none bg-orange-300",href:(0,ta.serializeSearchParams)("/search",{q:(0,ti.stegaClean)(e??"")}),onClick:()=>t(!1),variant:"outline",children:["â",e,"â"]},a))})]})]}):(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(S.default,{className:"w-fit px-3 py-2",href:(0,ta.serializeSearchParams)("/search",{q:a}),onClick:()=>t(!1),children:(0,v.jsxs)("span",{className:"label-base w-fit border-b border-b-black hover:opacity-75",children:[e?.viewAll??"View all"," â",a,"â"]})}),(0,v.jsx)("div",{"aria-live":"polite",className:"overflow-y-hidden outline-none",ref:o,tabIndex:0,children:s.slice(0,8).map((e,t)=>{var n;return(0,v.jsxs)("button",{className:"bg-off-white paragraph-base flex w-full cursor-pointer items-center justify-between gap-2 border-b border-b-gray-300 p-3 text-start font-normal outline-none hover:rounded-lg focus:bg-orange-300 hover:lg:bg-orange-300",id:`search-${e._id}-${t}`,onClick:()=>c(e),tabIndex:t+1,children:[(0,v.jsx)("span",{children:(n=e.name??"",(0,tr.splitTextMatches)(n,a).map((e,t)=>e.match?(0,v.jsx)("span",{className:"bg-orange-300",children:e.text},t):e.text))}),(0,v.jsx)("span",{className:"paragraph-sm text-gray-300-inverse whitespace-nowrap",children:e.legalArea?.name??""})]},`search-${e._id}-${t}`)})})]}):(0,v.jsxs)("div",{className:"flex flex-col gap-4 md:gap-6",children:[(0,v.jsx)("div",{className:"flex flex-wrap gap-2 px-3",children:e?.keywords?.map(({keyword:e,_key:a})=>(0,v.jsx)(S.default,{className:"rounded-full outline-0 focus-within:ring-1 focus-within:ring-black focus-within:ring-offset-2",href:(0,ta.serializeSearchParams)("/search",{q:(0,ti.stegaClean)(e??"")}),onClick:()=>t(!1),children:(0,v.jsx)(tn.default,{label:`"${e}"`,size:"lg",variant:"muted-orange"})},a))}),(0,v.jsx)("div",{className:"h-[1px] w-full bg-gray-300"}),(0,v.jsx)("div",{className:"grid grid-cols-2 gap-1.5 lg:grid-cols-4",children:e?.products?.map(e=>e.path?(0,v.jsxs)(S.default,{className:"flex min-h-[110px] flex-col gap-2 self-stretch rounded-xl border border-gray-300 bg-white p-4 transition-all hover:border-gray-100",href:e.path,onClick:()=>t(!1),children:[e.legalArea?.name&&(0,v.jsx)(tn.default,{className:"w-fit",label:e.legalArea.name,size:"sm",variant:"outline"}),(0,v.jsx)("h6",{className:"paragraph-sm",children:e.name})]},e._key):null)})]})})]})]})}var td=e.i(798744);function tu({data:e,searchConfig:t,ctaUrlParams:a}){let n=(0,b.useRef)(null),{isScrolled:r}=(()=>{let[e,t]=(0,b.useState)(!1),a=(0,e9.usePathname)();return(0,b.useEffect)(()=>{let e=.1*window.innerHeight;t(window.scrollY>e);let a=0,n=window.scrollY,r=()=>{n=window.scrollY,a||(a=requestAnimationFrame(()=>{let r=n>e;t(e=>e!==r?r:e),a=0}))};return window.addEventListener("scroll",r,{passive:!0}),()=>{window.removeEventListener("scroll",r),a&&cancelAnimationFrame(a)}},[a]),{isScrolled:e}})(),{lead:l,isLoading:i}=(()=>{let[e,t]=(0,b.useState)(!0),[a,n]=(0,b.useState)(null);return(0,b.useEffect)(()=>{let e=(0,td.safeGetOnboardingFormFromStorage)();if(e)try{let t=Object.values(e).filter(({leadId:e})=>e?.startsWith("lead_")).filter(({startedAt:e})=>e).sort((e,t)=>e.startedAt?t.startedAt?new Date(t.startedAt).getTime()-new Date(e.startedAt).getTime():-1:1),a=t[0]&&!t[0].finishedAt?t[0]:null;n(a)}catch(e){console.error("Error parsing onboarding-form data:",e),n(null)}else n(null);t(!1)},[]),{lead:a,isLoading:e}})(),{locale:s}=(0,e9.useParams)(),o=(0,E.default)("(prefers-reduced-motion: reduce)"),c=r||!!l;return(0,v.jsx)("div",{className:"flex items-center justify-end gap-2",children:(0,v.jsxs)("div",{className:"flex items-center gap-1 sm:gap-2",children:[(0,v.jsx)("span",{className:(0,g.cn)("GB"!==s?"hidden sm:flex":""),children:(0,v.jsx)(to,{searchConfig:t})}),e?.primaryCta&&(0,v.jsx)(C.Button,{className:"text-off-white-warm label-sm hidden md:flex",href:e?.primaryCta?.link,size:"baseRebrand",variant:"ghostRebrand",children:e?.primaryCta?.label}),(0,e7.match)({isUkRebrand:"GB"===s}).with({isUkRebrand:!0},()=>(0,v.jsx)(D.m.div,{animate:{width:c?"auto":0},className:"flex",initial:{width:0},style:{overflow:"hidden",pointerEvents:c?"auto":"none"},transition:{duration:.3*!o,ease:"easeOut"},children:(0,v.jsx)(e6.UkBasketCta,{ctaUrlParams:a,ref:n})})).otherwise(()=>(0,v.jsxs)(D.m.div,{animate:{width:r?"auto":0},className:"flex",initial:{width:0},style:{overflow:"hidden",pointerEvents:r?"auto":"none"},transition:{duration:.3*!o,ease:"easeOut"},children:[l&&(0,v.jsx)("div",{className:"relative",children:(0,v.jsxs)(C.Button,{className:"w-fit text-sm sm:text-base sm:font-extralight",href:`/intake?leadId=${l.leadI
1d}`,ref:n,variant:"secondaryRebrand",children:["Continue ",(0,v.jsx)("span",{className:"hidden sm:inline",children:"request"})]})}),!i&&!l&&e?.animatedCta&&(0,v.jsx)("div",{className:"relative",children:(0,v.jsx)(C.Button,{className:"text-sm sm:text-base sm:font-extralight",href:e?.animatedCta?.link,ref:n,variant:"secondaryRebrand",children:e?.animatedCta?.label})})]}))]})})}function tf({data:e,searchConfig:t,clientIntakePhoneNumber:a,ctaUrlParams:n}){let r=(0,b.useRef)(null),[l,i]=(0,b.useState)(null),[s,o]=(0,b.useState)(""),[c,d]=(0,b.useState)(!!e?.announcementBar?.show);return(0,b.useEffect)(function(){d(!!e?.announcementBar?.show)},[e?.announcementBar?.show]),(0,w.default)(r,"--announcement-bar-height",{defaultValue:"0px",guardCondition:c}),(0,v.jsxs)(v.Fragment,{children:[c&&e?.announcementBar&&(0,v.jsx)(k,{data:e?.announcementBar,ref:r}),(0,v.jsx)("div",{className:"content-grid sticky top-0 z-30 w-full py-4","data-rebrand-header":!0,suppressHydrationWarning:!0,children:(0,v.jsxs)("header",{className:(0,g.cn)("shadow-[0px_2px_8px_0px_rgba(0,0,0,0.15)]","transition-[border-radius,background-color] duration-150 ease-in-out",s?"rounded-t-md rounded-b-none bg-black":"bg-gray-10-inverse rounded-md"),children:[(0,v.jsxs)("nav",{"aria-label":"Main navigation",className:"relative grid max-h-[var(--rebrand-navbar-height)] grid-cols-[auto_1fr_auto] items-center gap-5 p-3 pr-3 pl-6 max-lg:gap-3 max-lg:pl-3 lg:grid-cols-[1fr_auto_1fr]",children:[(0,v.jsx)(K,{container:l,navItems:e?.navItems||[],primaryCta:e?.primaryCta}),(0,v.jsx)("div",{className:"hidden items-center justify-start lg:flex",children:(0,v.jsx)(e8,{data:e,openDropdown:s,setOpenDropdown:o})}),(0,v.jsx)("div",{className:"flex grow justify-self-start lg:justify-self-center",children:(0,v.jsx)(j.default,{variant:"white"})}),(0,v.jsx)(tu,{clientIntakePhoneNumber:a,ctaUrlParams:n,data:e,searchConfig:t})]}),(0,v.jsx)("div",{className:"mx-auto max-w-(--breakpoint-2xl)",ref:i,role:"presentation"})]})})]})}e.s(["default",()=>tf],185252)}]);
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.