PageSourceSearch

https://www.tonkinwilsonvillenissan.com/_next/static/chunks/4685.9044f55e00ca99d8.js

js tonkinwilsonvillenissan.com collected 2026-10-08 08:13:25 UTC 24,327 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4685],{4685:(e,a,t)=>{t.r(a),t.d(a,{default:()=>W});var l=t(48812),r=t(39360),s=t(9587),n=t.n(s),i=t(30500),o=t(76209),c=t(62950),d=t(13767),h=t(39479),m=t(51909),u=t(71767),x=t(85975),p=t(33231),b=t(84621);let f=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],v={Monday:"Mon",Tuesday:"Tue",Wednesday:"Wed",Thursday:"Thu",Friday:"Fri",Saturday:"Sat",Sunday:"Sun"};function w(e){let a=e.toLowerCase();return a.includes("service")?"service":a.includes("parts")?"parts":a.includes("sales")?"sales":"other"}function g(e){let[a,t]=e.split(":"),l=Number.parseInt(a,10);if(!Number.isFinite(l))return e;let r=l>=12?"PM":"AM",s=0===l?12:l>12?l-12:l;return"00"===t?`${s} ${r}`:`${s}:${t} ${r}`}function j({websiteInfo:e,variant:a,tone:t="dark"}){let s=(0,r.useMemo)(()=>{let a=e?.work_hours??[],t=e?.phone_numbers??[];return a.map(e=>{let a=function(e){if(!e?.value?.length)return[];let a=new Map,t=new Set(f),l=[];for(let r of e.value){if(t.has(r.label)){a.set(r.label,{from:r.from,to:r.to,is_open:r.is_open});continue}let e=r.is_open&&r.from&&r.to?`${g(r.from)} - ${g(r.to)}`:"Closed";l.push({label:`${r.label}:`,value:e})}let r=f.map(e=>{let t=a.get(e);return t&&t.is_open&&t.from&&t.to?{day:e,hours:`${g(t.from)} - ${g(t.to)}`}:{day:e,hours:"Closed"}}),s=[],n=0;for(let e=1;e<=r.length;e++){let a=r[e-1],t=r[e];if(!t||t.hours!==a.hours){let t,l=r[n].day,i=r[e-1].day;t=0===n&&e-1==5?"Mon-Sat:":0===n&&e-1==4?"Mon-Fri:":l===i?"Saturday"===l||"Sunday"===l?`${l}:`:`${v[l]}:`:`${v[l]}-${v[i]}:`,s.push({label:t,value:a.hours}),n=e}}return[...s,...l]}(e),l=t.find(a=>a.label.toLowerCase().includes(e.label.toLowerCase()))?.value??null;return{label:e.label,rows:a,phone:l}}).filter(e=>e.rows.length>0)},[e?.phone_numbers,e?.work_hours]);if(!s.length)return null;if("contactGrid"===a){let e="light"===t?"text-slate-900":"text-white",a="light"===t?"text-slate-600":"text-gray-300";return(0,l.jsx)("div",{className:"grid gap-6 sm:grid-cols-3",children:s.map(t=>(0,l.jsxs)("div",{className:"space-y-3",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("h3",{className:`mb-2 text-base font-bold md:text-lg ${e}`,children:t.label.toUpperCase()}),t.phone&&(0,l.jsxs)("a",{href:`tel:${t.phone}`,"data-analytics-event":"call","data-analytics-label":`${t.label} Phone`,"data-analytics-url":`tel:${t.phone}`,"data-analytics-dept":w(t.label),className:"flex items-center gap-1.5 text-sm font-semibold text-dealer-primary hover:underline md:text-base",children:[(0,l.jsx)(d.A,{className:"h-4 w-4"}),t.phone]})]}),(0,l.jsx)("div",{className:`space-y-1 text-xs md:text-sm ${a}`,children:t.rows.map(e=>(0,l.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,l.jsx)("span",{children:e.label}),(0,l.jsx)("span",{className:"text-right",children:e.value})]},e.label))})]},t.label))})}return(0,l.jsx)(l.Fragment,{children:s.map((e,a)=>(0,l.jsxs)("div",{className:`px-4 py-3 ${a<s.length-1?"light"===t?"border-b border-slate-200":"border-b border-gray-800":""}`,children:[(0,l.jsxs)("div",{className:"mb-2 flex items-center justify-between",children:[(0,l.jsx)("h4",{className:`text-sm font-bold ${"light"===t?"text-slate-900":"text-white"}`,children:e.label.toUpperCase()}),e.phone&&(0,l.jsxs)("a",{href:`tel:${e.phone}`,"data-analytics-event":"call","data-analytics-label":`${e.label} Phone`,"data-analytics-url":`tel:${e.phone}`,"data-analytics-dept":w(e.label),className:`flex items-center gap-1 text-xs transition-colors ${"light"===t?"text-slate-700 hover:text-dealer-primary":"text-white hover:text-dealer-primary"}`,children:[(0,l.jsx)(d.A,{className:"h-3 w-3"}),e.phone]})]}),(0,l.jsx)("div",{className:`space-y-1 text-xs ${"light"===t?"text-slate-600":"text-gray-300"}`,children:e.rows.map(e=>(0,l.jsxs)("div",{className:"flex justify-between",children:[(0,l.jsx)("span",{children:e.label}),(0,l.jsx)("span",{children:e.value})]},e.label))})]},e.label))})}var N=t(13680);let y="global-search:open";var $=t(58305),k=t(60220);function _(e,a){if(!e||!a.startsWith("/")||a.startsWith("//"))return!1;let t=new URL(e,"https://navigation.local"),l=new URL(a,"https://navigation.local"),r=t.pathname.replace(/\/+$/,"")||"/",s=l.pathname.replace(/\/+$/,"")||"/";if(r!==s&&("/"===s||!r.startsWith(`${s}/`)))return!1;let n=e=>JSON.stringify([...e].filter(([e])=>!/^utm_/i.test(e)&&!["gclid","fbclid","msclkid"].includes(e)).sort(([e,a],[t,l])=>e.localeCompare(t)||a.localeCompare(l)));return n(t.searchParams)===n(l.searchParams)}function M(e,a){return _(e?.split("?")[0]??null,a.link.split("?")[0])||a.children?.some(a=>M(e,a))===!0}function S(e){return/^https?:\/\//i.test(e)}function C(e){let a=e.trim();return a?a!==a.toLowerCase()?a:a.replace(/\b\w/g,e=>e.toUpperCase()):e}let L="block whitespace-nowrap px-4 py-3 text-sm text-white capitalize transition-colors hover:bg-dealer-primary hover:text-white aria-[current=page]:bg-dealer-primary 2xl:text-base";function A(e){return e?.length?e.filter(e=>!!e?.label&&!!e?.link).map(e=>({label:e.label,href:e.link,openNewTab:e.open_new_tab})):[]}function T({label:e,url:a,menuName:t,itemLabel:l}){return{"data-analytics-event":"menu","data-analytics-label":e,...a?{"data-analytics-url":a}:{},...t?{"data-analytics-menu-name":t}:{},...l?{"data-analytics-item-label":l}:{}}}function z({pathname:e,label:a,href:t,openNewTab:r,className:s=""}){let i=`group flex items-center gap-1 text-sm text-white uppercase tracking-[0.12em] transition-colors hover:text-dealer-primary aria-[current=page]:text-dealer-primary 2xl:text-base ${s}`;return r||S(t)?(0,l.jsx)("a",{href:t,"aria-current":_(e,t)?"page":void 0,target:r?"_blank":void 0,rel:r?"noopener noreferrer":void 0,...T({label:a,url:t,menuName:"Header Nav",itemLabel:a}),className:i,children:(0,l.jsx)("span",{children:C(a)})}):(0,l.jsx)(n(),{href:t,"aria-current":_(e,t)?"page":void 0,...T({label:a,url:t,menuName:"Header Nav",itemLabel:a}),className:i,children:(0,l.jsx)("span",{children:C(a)})})}function F({pathname:e,isActive:a,label:t,href:s,items:i,className:o=""}){let[c,d]=(0,r.useState)(!1);return(0,l.jsxs)("div",{className:`relative ${o}`,onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),children:["#"===s?(0,l.jsxs)("button",{"data-active":a,className:"group flex items-center gap-1 text-sm text-white uppercase tracking-[0.12em] transition-colors hover:text-dealer-primary data-[active=true]:text-dealer-primary 2xl:text-base ",...T({label:t,menuName:"Header Nav",itemLabel:t}),children:[(0,l.jsx)("span",{children:C(t)}),(0,l.jsx)(x.A,{className:`w-4 h-4 transition-transform ${c?"rotate-180":""}`})]}):S(s)?(0,l.jsxs)("a",{href:s,"aria-current":_(e,s)?"page":void 0,...T({label:t,url:s,menuName:"Header Nav",itemLabel:t}),"data-active":a,className:"group flex items-center gap-1 text-sm text-white uppercase tracking-[0.12em] transition-colors hover:text-dealer-primary data-[active=true]:text-dealer-primary 2xl:text-base ",children:[(0,l.jsx)("span",{children:C(t)}),(0,l.jsx)(x.A,{className:`w-4 h-4 transition-transform ${c?"rotate-180":""}`})]}):(0,l.jsxs)(n(),{href:s,"aria-current":_(e,s)?"page":void 0,...T({label:t,url:s,menuName:"Header Nav",itemLabel:t}),"data-active":a,className:"group flex items-center gap-1 text-sm text-white uppercase tracking-[0.12em] transition-colors hover:text-dealer-primary data-[active=true]:text-dealer-primary 2xl:text-base ",children:[(0,l.jsx)("span",{children:C(t)}),(0,l.jsx)(x.A,{className:`w-4 h-4 transition-transform ${c?"rotate-180":""}`})]}),c&&(0,l.jsx)("div",{className:"absolute top-full left-0 pt-2 z-50",children:(0,l.jsx)("div",{className:"inline-block min-w-[200px] w-max overflow-hidden rounded-[1.75rem] border border-white/10 bg-[#181818] shadow-xl animate-in fade-in slide-in-from-top-2 duration-200 whitespace-nowrap",children:i.map(a=>a.openNewTab||S(a.href)?(0,l.jsx)("a",{href:a.href,"aria-current":_(e,a.href)?"page":void 0,target:a.openNewTab?"_blank":void 0,rel:a.openNewTab?"noopener noreferrer":void 0,...T({label:a.label,url:a.href,menuName:t,itemLabel:a.label}),className:L,children:C(a.label)},a.href):(0,l.jsx)(n(),{href:a.href,"aria-current":_(e,a.href)?"page":void 0,...T({label:a.label,url:a.href,menuName:t,itemLabel:a.label}),className:L,children:C(a.label)},a.href))})})]})}function H({onChange:e}){let a=(0,i.usePathname)(),t=(0,i.useSearchParams)(),l=t?.toString()??"";return(0,r.useEffect)(()=>{e(`${a??""}${l?`?${l}`:""}`)},[a,l,e]),null}var P=t(16805);function E({label:e,url:a,dept:t="sales"}){return{"data-analytics-event":"call","data-analytics-label":e,...a?{"data-analytics-url":a}:{},"data-analytics-dept":t}}let W=function({websiteInfo:e,desktopLogoClassName:a}){let t=(0,i.usePathname)(),[s,f]=(0,r.useState)(null),v=s?.split("?")[0]===t?s:t,[w,g]=(0,r.useState)(!1),[W,I]=(0,r.useState)(!1),[D,U]=(0,r.useState)(null),[O,G]=(0,r.useState)(null),R=(0,P.y)(),q=(0,r.useRef)(null);(0,r.useEffect)(()=>{let e=()=>I(!0);return window.addEventListener(y,e),()=>window.removeEventListener(y,e)},[]);
1let B=e?.navigation??null,Z=e?.logo_url?.trim()||null,J=e?.logo_url_srcset??null,K=e?.name?.trim()||"Dealer logo",Q=e?.phone_numbers?.[0]?.value?.trim()||null,V=Q?(0,$.F)(Q):null,X=Q?`tel:${Q.replace(/\D/g,"")}`:null,Y=e?.address?.trim()||null,ee=e?.city?.trim()||null,ea=[Y,ee].filter(Boolean).join(", "),et=ea.length>0?`https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(ea)}`:null,el=(0,r.useMemo)(()=>B?.length?B:null,[B]),er=(0,r.useMemo)(()=>el?el.slice(6):[],[el]),es=er.length>2,en=(e,a,t,r,s)=>{let i=_(v,e)?"page":void 0,o=`${t} aria-[current=page]:text-dealer-primary`;return s||S(e)?(0,l.jsx)("a",{href:e,target:s?"_blank":void 0,rel:s?"noopener noreferrer":void 0,...T({label:a,url:e,menuName:"Mobile Menu",itemLabel:a}),"aria-current":i,className:o,onClick:r,children:C(a)}):(0,l.jsx)(n(),{href:e,...T({label:a,url:e,menuName:"Mobile Menu",itemLabel:a}),"aria-current":i,className:o,onClick:r,children:C(a)})},ei=e=>{if(e.link&&"#"!==e.link)return e.link;let a=e.children?.[0]?.link;return a||"#"},eo=e=>{let a=e.label,t=ei(e);return e.children?.length?(0,l.jsx)(F,{pathname:v,isActive:M(v,e),label:a,href:t,items:A(e.children)}):(0,l.jsx)(z,{pathname:v,label:a,href:t,openNewTab:e.open_new_tab})};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(r.Suspense,{fallback:null,children:(0,l.jsx)(H,{onChange:f})}),W&&(0,l.jsx)(b.T,{isOpen:W,onClose:()=>I(!1),variant:"white",shouldClearOnClose:!0,searchInputDataAttrs:{"data-analytics-event":"search","data-analytics-label":"Global Search"}}),(0,l.jsxs)("header",{className:`fixed top-0 left-0 right-0 z-50 bg-[#101010] ${R?"border-b border-white/10":""}`,children:[(0,l.jsx)("div",{className:"lg:hidden",children:(0,l.jsxs)("div",{className:"flex items-center justify-between border-b border-white/10 px-4 py-3",children:[(0,l.jsx)("button",{onClick:()=>g(!w),...T({label:"Mobile Menu Toggle",menuName:"Mobile Menu",itemLabel:w?"Close":"Open"}),className:"flex h-11 w-11 items-center justify-center text-white transition-colors hover:text-dealer-primary active:scale-95","aria-label":"Menu",children:(0,l.jsx)(c.A,{className:"w-6 h-6"})}),(0,l.jsx)(n(),{href:"/",className:"flex items-center gap-2 min-h-11 cursor-pointer",children:(0,l.jsxs)("div",{className:"relative w-50 h-15 flex items-center justify-center overflow-hidden",children:[Z&&(0,l.jsx)(o.A,{src:Z,srcSet:J,alt:K,fill:!0,sizes:"(min-width: 1280px) 200px, 200px",className:"object-contain px-3 py-2",priority:!0}),!Z&&(0,l.jsx)("span",{className:"text-sm font-bold text-white",children:K})]})}),(0,l.jsxs)("div",{className:"flex items-center gap-1",children:[X&&V&&(0,l.jsx)("a",{href:X,...E({label:"Sales Phone",url:X,dept:"sales"}),className:"flex h-9 w-9 items-center justify-center rounded-full bg-dealer-primary text-white transition-colors hover:bg-dealer-primary/90 active:scale-95","aria-label":"Call us",children:(0,l.jsx)(d.A,{className:"h-4 w-4 text-white"})}),et&&(0,l.jsx)("a",{href:et,target:"_blank",rel:"noopener noreferrer",className:"flex h-7 w-7 items-center justify-center text-white transition-colors hover:text-dealer-primary active:scale-95","aria-label":"Get directions",children:(0,l.jsx)(h.A,{className:"h-5 w-5"})}),(0,l.jsx)("button",{onClick:()=>I(!W),"data-analytics-event":"cta","data-analytics-label":"Open Search",className:"flex h-7 w-7 cursor-pointer items-center justify-center text-white transition-colors hover:text-dealer-primary active:scale-95","aria-label":"Search",children:(0,l.jsx)(m.A,{className:"h-5 w-5"})})]})]})}),(0,l.jsxs)("div",{className:"hidden border-b border-white/10 lg:block",children:[(0,l.jsx)("div",{className:"border-b border-[#2d3440] bg-[#1f232b]",children:(0,l.jsx)("div",{className:"container_no_width mx-auto px-4 xl:px-8",children:(0,l.jsxs)("div",{className:"flex items-center justify-end gap-3 lg:gap-4 xl:gap-6 h-10 text-xs",children:[(0,l.jsxs)("div",{className:"relative",onMouseEnter:()=>U("hours"),onMouseLeave:()=>U(null),children:[(0,l.jsxs)("button",{className:"flex items-center gap-2 cursor-pointer text-white/90 transition-colors hover:text-dealer-primary",...T({label:"Today’s Hours",menuName:"Top Bar",itemLabel:"Today’s Hours"}),children:[(0,l.jsx)(u.A,{className:"h-3.5 w-3.5"}),(0,l.jsx)("span",{children:"Today’s Hours"}),(0,l.jsx)(N.W,{workHours:e?.work_hours,timeZone:e?.timezone}),(0,l.jsx)(x.A,{className:`h-3 w-3 transition-transform ${"hours"===D?"rotate-180":""}`})]}),"hours"===D&&(0,l.jsx)("div",{className:"absolute right-0 top-full z-50 pt-2",children:(0,l.jsx)("div",{className:"w-80 max-w-[calc(100vw-1rem)] overflow-hidden rounded-lg border border-white/10 bg-[#181818] shadow-xl animate-in fade-in slide-in-from-top-2 duration-200",children:(0,l.jsx)(j,{websiteInfo:e,variant:"headerDropdown",tone:"dark"})})})]}),et&&(0,l.jsxs)("a",{href:et,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 text-white/90 hover:text-dealer-primary transition-colors",children:[(0,l.jsx)(h.A,{className:"w-3.5 h-3.5"}),(0,l.jsx)("span",{className:"hidden xl:inline",children:ea}),(0,l.jsx)("span",{className:"xl:hidden",children:ee??Y})]})]})})}),(0,l.jsx)("div",{className:"container_no_width mx-auto px-3 xl:px-8",children:(0,l.jsxs)("div",{className:"flex items-center justify-between gap-4 h-20",children:[(0,l.jsx)(n(),{href:"/",className:"flex items-center gap-2 xl:gap-3 cursor-pointer",children:(0,l.jsxs)("div",{className:"relative w-60 h-19 flex items-center justify-center overflow-hidden",children:[Z&&(0,l.jsx)(o.A,{src:Z,srcSet:J,alt:K,fill:!0,sizes:"(min-width: 1280px) 280px, 200px",className:(0,k.cn)("object-contain px-3 py-3",a)}),!Z&&(0,l.jsx)("span",{className:"text-sm font-bold text-white",children:K})]})}),(0,l.jsx)("nav",{className:"pl-6 flex h-full flex-1 items-center gap-8 xl:gap-8 2xl:gap-12",children:el?(0,l.jsxs)(l.Fragment,{children:[el.slice(0,6).map((e,a)=>(0,l.jsx)(r.Fragment,{children:eo(e)},`${e.label}-${e.link}-${a}
1`)),es&&(0,l.jsxs)("div",{className:"relative 2xl:hidden",onMouseEnter:()=>{q.current&&(clearTimeout(q.current),q.current=null),U("showMore")},onMouseLeave:()=>{q.current=setTimeout(()=>{U(null)},100)},children:[(0,l.jsxs)("button",{"data-active":er.some(e=>M(v,e)),className:"flex items-center gap-1 text-sm uppercase tracking-[0.12em] text-white transition-colors hover:text-dealer-primary data-[active=true]:text-dealer-primary xl:gap-2",...T({label:"Show More",menuName:"Header Nav",itemLabel:"Show More"}),children:[(0,l.jsx)(c.A,{className:"w-4 h-4"}),(0,l.jsx)("span",{className:"hidden 2xl:inline",children:"Show More"}),(0,l.jsx)("span",{className:"2xl:hidden",children:"More"}),(0,l.jsx)(x.A,{className:`w-4 h-4 transition-transform ${"showMore"===D?"rotate-180":""}`})]}),"showMore"===D&&(0,l.jsx)("div",{className:"absolute top-full right-0 z-50 mt-2 w-56 rounded-lg border border-white/10 bg-[#181818] py-2 shadow-xl",children:er.map((e,a)=>{let t=ei(e),r=`${e.label}-${e.link}-${a}`,s=A(e.children),i="block w-full px-4 py-3 text-left text-sm font-medium text-white capitalize transition-colors hover:bg-dealer-primary hover:text-white data-[active=true]:bg-dealer-primary 2xl:text-base";return s.length<=2?e.open_new_tab||S(t)?(0,l.jsx)("a",{href:t,"data-active":M(v,e),"aria-current":_(v,t)?"page":void 0,target:e.open_new_tab?"_blank":void 0,rel:e.open_new_tab?"noopener noreferrer":void 0,...T({label:e.label,url:t,menuName:"Header Nav",itemLabel:e.label}),className:i,children:e.label},r):(0,l.jsx)(n(),{href:t,"data-active":M(v,e),"aria-current":_(v,t)?"page":void 0,...T({label:e.label,url:t,menuName:"Header Nav",itemLabel:e.label}),className:i,children:e.label},r):(0,l.jsxs)("div",{className:"relative group",children:[e.open_new_tab||S(t)?(0,l.jsxs)("a",{href:t,"data-active":M(v,e),"aria-current":_(v,t)?"page":void 0,target:e.open_new_tab?"_blank":void 0,rel:e.open_new_tab?"noopener noreferrer":void 0,...T({label:e.label,url:t,menuName:"Header Nav",itemLabel:e.label}),className:`${i} flex items-center justify-between`,children:[(0,l.jsx)("span",{children:e.label}),(0,l.jsx)(x.A,{className:"w-4 h-4 -rotate-90"})]}):(0,l.jsxs)(n(),{href:t,"data-active":M(v,e),"aria-current":_(v,t)?"page":void 0,...T({label:e.label,url:t,menuName:"Header Nav",itemLabel:e.label}),className:`${i} flex items-center justify-between`,children:[(0,l.jsx)("span",{children:e.label}),(0,l.jsx)(x.A,{className:"w-4 h-4 -rotate-90"})]}),(0,l.jsx)("div",{className:"pointer-events-none absolute left-full top-0 w-64 rounded-lg border border-white/10 bg-[#181818] py-2 opacity-0 shadow-xl transition-opacity group-hover:pointer-events-auto group-hover:opacity-100",children:s.map(a=>a.openNewTab||S(a.href)?(0,l.jsx)("a",{href:a.href,target:a.openNewTab?"_blank":void 0,rel:a.openNewTab?"noopener noreferrer":void 0,...T({label:a.label,url:a.href,menuName:e.label,itemLabel:a.label}),"aria-current":_(v,a.href)?"page":void 0,className:L,children:a.label},a.href):(0,l.jsx)(n(),{href:a.href,...T({label:a.label,url:a.href,menuName:e.label,itemLabel:a.label}),"aria-current":_(v,a.href)?"page":void 0,className:L,children:a.label},a.href))})]},r)})})]}),es&&er.map((e,a)=>(0,l.jsx)("div",{className:"hidden 2xl:block",children:eo(e)},`${e.label}-${e.link}-${a}`)),!es&&er.map((e,a)=>(0,l.jsx)(r.Fragment,{children:eo(e)},`${e.label}-${e.link}-${a}`))]}):null}),(0,l.jsxs)("div",{className:"flex items-center gap-4",children:[X&&V&&(0,l.jsxs)("a",{href:X,...E({label:"Sales Phone",url:X,dept:"sales"}),className:"inline-flex items-center gap-2 text-white transition-colors hover:text-dealer-primary",children:[(0,l.jsx)(d.A,{className:"h-4 w-4 text-white/70"}),(0,l.jsxs)("span",{className:"text-[12px] font-medium xl:text-base",children:["Call: ",V]})]}),(0,l.jsxs)("button",{type:"button",onClick:()=>I(!0),className:"flex h-11 w-[120px] items-center rounded-full border border-white/20 bg-white/5 px-4 text-left text-[9px] whitespace-nowrap text-white/70 hover:border-white/40 hover:text-white xl:w-[250px] xl:text-sm","data-analytics-event":"search","data-analytics-label":"Header Search",children:[(0,l.jsx)(m.A,{className:"mr-2 h-4 w-4"}),"Search Inventory"]})]})]})})]})]}),w&&(0,l.jsxs)("div",{className:"fixed inset-0 z-50 lg:hidden",children:[(0,l.jsx)("div",{className:"absolute inset-0 bg-black/90 backdrop-blur-sm",onClick:()=>g(!1),role:"button","aria-label":"Close menu"}),(0,l.jsxs)("div",{className:"absolute inset-0 overflow-y-auto overscroll-contain bg-[#101010] text-white animate-in fade-in duration-200",children:[(0,l.jsxs)("div",{className:"sticky top-0 z-10 flex items-center justify-between border-b border-white/10 bg-[#101010] px-4 py-4",children:[(0,l.jsx)("h2",{className:"text-xl font-bold text-white",children:"Menu"}),(0,l.jsx)("button",{onClick:()=>g(!1),...T({label:"Mobile Menu Toggle",menuName:"Mobile Menu",itemLabel:"Close"}),className:"flex h-11 w-11 items-center justify-center text-white transition-colors hover:text-dealer-primary active:scale-95","aria-label":"Close menu",children:(0,l.jsx)(p.A,{className:"w-6 h-6"})})]}),(0,l.jsx)("nav",{className:"px-4 py-2",children:el?(0,l.jsx)(l.Fragment,{children:el.map((e,a)=>{let t=e.label.toLowerCase(),s=ei(e),n=A(e.children);return n.length?(0,l.jsxs)("div",{className:"border-b border-white/10",children:[(0,l.jsxs)("button",{onClick:()=>G(t),...T({label:e.label,menuName:"Mobile Menu",itemLabel:e.label}),"data-active":M(v,e),className:"flex min-h-11 w-full cursor-pointer items-center justify-between py-4 text-lg font-semibold text-white transition-colors active:bg-white/5 data-[active=true]:text-dealer-primary","aria-expanded":O===t,children:[(0,l.jsx)("span",{children:e.label}),(0,l.jsx)(x.A,{className:`w-5 h-5 transition-transform duration-200 ${O===t?"rotate-180":""}`})]}),O===t&&(0,l.jsx)("div",{className:"pb-3 grid grid-cols-1 md:grid-cols-2 gap-2 animate-in slide-in-from-top-2 duration-200",children:n.map(e=>(0,l.jsx)(r.Fragment,{children:en(e.href,e.label,"flex min-h-[48px] items-center px-4 py-3 text-sm text-white transition-colors hover:bg-white/5 hover:text-dealer-primary 2xl:text-base",()=>
1g(!1),e.openNewTab)},e.href))})]},`${e.label}-${e.link}-${a}`):"#"===s?null:(0,l.jsx)(r.Fragment,{children:en(s,e.label,"block min-h-[44px] border-b border-white/10 py-4 text-lg font-semibold text-white transition-colors active:bg-white/5",()=>g(!1),e.open_new_tab)},`${e.label}-${e.link}-${a}`)})}):null})]})]}),(0,l.jsx)("div",{className:"h-[85px] lg:h-[122px]","aria-hidden":"true"})]})}},13680:(e,a,t)=>{t.d(a,{W:()=>c});var l=t(48812),r=t(39360),s=t(71676);let n=()=>()=>{};function i(e){return(0,s.f)(e).replace(":00 ","").replace(" ","")}function o(e){return e.is_open&&e.from&&e.to?`${i(e.from)}-${i(e.to)}`:"Closed"}function c({workHours:e,timeZone:a}){let t=(0,r.useSyncExternalStore)(n,()=>new Date().toLocaleDateString("en-US",{weekday:"long",...a?{timeZone:a}:{}}),()=>"");if(!e?.length)return null;let s=e.find(e=>e.label.toLowerCase().includes("sales"))??e[0];if(!s?.value.length)return null;let i=Math.max(...s.value.map(e=>` ${o(e)}`.length)),c=t?s.value.find(e=>e.label.toLowerCase()===t.toLowerCase()):null,d=c?o(c):null;return(0,l.jsx)("span",{className:"inline-block whitespace-nowrap",style:{minWidth:`${i}ch`},children:d?` ${d}`:null})}},16805:(e,a,t)=>{t.d(a,{y:()=>r});var l=t(39360);function r(e=0){let[a,t]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{let a=document.createElement("div");a.setAttribute("aria-hidden","true"),a.setAttribute("data-is-scrolled-sentinel",""),a.style.cssText=`position:absolute;top:${e}px;left:0;width:1px;height:1px;pointer-events:none;visibility:hidden;z-index:-1`,document.body.appendChild(a);let l=new IntersectionObserver(e=>{let a=e[0];a&&t(!a.isIntersecting)},{threshold:0});return l.observe(a),()=>{l.disconnect(),a.remove()}},[e]),a}},39479:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(35635).A)("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]])},58305:(e,a,t)=>{t.d(a,{F:()=>l});function l(e){let a=e.replace(/\D/g,""),t=11===a.length&&a.startsWith("1")?a.slice(1):a;return 10!==t.length?e:`(${t.slice(0,3)}) ${t.slice(3,6)}-${t.slice(6)}`}},62950:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(35635).A)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]])},71676:(e,a,t)=>{t.d(a,{f:()=>l});function l(e){let[a,t]=e.split(":"),l=parseInt(a,10);return`${0===l?12:l>12?l-12:l}:${t} ${l>=12?"PM":"AM"}`}},76209:(e,a,t)=>{t.d(a,{A:()=>n});var l=t(48812),r=t(8075);let s={position:"absolute",inset:0,width:"100%",height:"100%"};function n(e){let{src:a,alt:t,srcSet:n,sizes:i,className:o,style:c,priority:d}=e;if(!a?.trim()||"#"===a.trim()||"#"===(0,r.v)(a))return null;let h=d?"eager":"lazy",m=d?"high":"auto";return e.fill?(0,l.jsx)("img",{src:a,srcSet:n??void 0,sizes:i,alt:t,className:o,style:c?{...s,...c}:s,loading:h,fetchPriority:m,decoding:"async"}):(0,l.jsx)("img",{src:a,srcSet:n??void 0,sizes:i,alt:t,width:e.width,height:e.height,className:o,style:c,loading:h,fetchPriority:m,decoding:"async"})}},84621:(e,a,t)=>{t.d(a,{T:()=>s});var l=t(48812);let r=(0,t(90285).default)(()=>t.e(57664).then(t.bind(t,57664)).then(e=>({default:e.GlobalSearchModal})),{loadableGenerated:{webpack:()=>[57664]},ssr:!1,loading:()=>null});function s(e){return(0,l.jsx)(r,{...e})}}}]);

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.