PageSourceSearch

https://www.uniqueleverage.com/_next/static/chunks/78608-120ab863094f8f7a.js

js uniqueleverage.com collected 2026-10-02 01:47:38 UTC 31,610 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[78608],{3180:(e,t,r)=>{r.d(t,{p:()=>a});var l=r(22342),i=r(92757),n=r(26338);let a=e=>(0,l.jsxs)("div",{...e,className:(0,i.cx)("flex items-center justify-start overflow-visible h-7 w-max",e.className),children:[(0,l.jsx)(n.k,{className:"size-10"}),(0,l.jsx)("img",{src:"/main_2nd.svg",alt:"Unique Leverage",className:"h-5 w-auto pl-1 shrink-0 dark:hidden",draggable:!1}),(0,l.jsx)("img",{src:"/icon-sets/sidebar-logo-dark.svg",alt:"Unique Leverage",className:"h-5 w-auto pl-1 shrink-0 hidden dark:block",draggable:!1})]})},19831:(e,t,r)=>{r.d(t,{X:()=>a});var l=r(22342),i=r(56882),n=r(92757);let a=e=>{let{isInvalid:t,className:r,...a}=e;return(0,l.jsx)(i.E,{...a,slot:t?"errorMessage":"description",className:(0,n.cx)("text-sm text-tertiary",t&&"text-error-primary","group-invalid:text-error-primary",r)})};a.displayName="HintText"},26338:(e,t,r)=>{r.d(t,{k:()=>a});var l=r(22342),i=r(33670),n=r(92757);let a=e=>((0,i.useId)(),(0,l.jsx)("img",{src:"/mini_2nd.png",alt:"Logo",className:(0,n.cx)("size-10 origin-center scale-[1.0]",e.className),draggable:!1}))},29324:(e,t,r)=>{r.d(t,{J:()=>o});var l=r(22342),i=r(92186),n=r(39773),a=r(14734),s=r(92757);let o=e=>{let{isRequired:t,tooltip:r,tooltipDescription:o,className:c,...d}=e;return(0,l.jsxs)(n.J,{"data-label":"true",...d,className:(0,s.cx)("flex cursor-default items-center gap-0.5 text-sm font-medium text-secondary",c),children:[d.children,(0,l.jsx)("span",{className:(0,s.cx)("hidden text-brand-tertiary",t&&"block",void 0===t&&"group-required:block"),children:"*"}),r&&(0,l.jsx)(a.m,{title:r,description:o,placement:"top",children:(0,l.jsx)(a.k,{isDisabled:!1,className:"cursor-pointer text-fg-quaternary transition duration-200 hover:text-fg-quaternary_hover focus:text-fg-quaternary_hover",children:(0,l.jsx)(i.m,{className:"size-4"})})})]})};o.displayName="Label"},52838:(e,t,r)=>{r.d(t,{A_:()=>p,pd:()=>y});var l=r(22342),i=r(33670),n=r(92186),a=r(60635),s=r(34190),o=r(21155),c=r(92548),d=r(19831),u=r(29324),x=r(14734),m=r(92757);let g=e=>{let{ref:t,tooltip:r,shortcut:c,groupRef:d,size:u="sm",isInvalid:g,isDisabled:p,icon:y,placeholder:f,wrapperClassName:b,tooltipClassName:v,inputClassName:j,iconClassName:w,isRequired:N,...k}=e,C=r||g,S=(0,i.useContext)(h),L=(null==S?void 0:S.size)||u,z=(0,m.w)({sm:{root:(0,m.cx)("px-3 py-2",C&&"pr-9",y&&"pl-10"),iconLeading:"left-3",iconTrailing:"right-3",shortcut:"pr-2.5"},md:{root:(0,m.cx)("px-3.5 py-2.5",C&&"pr-9.5",y&&"pl-10.5"),iconLeading:"left-3.5",iconTrailing:"right-3.5",shortcut:"pr-3"}});return(0,l.jsxs)(s.Y,{isDisabled:p,isInvalid:g,ref:d,className:e=>{let{isFocusWithin:t,isDisabled:r,isInvalid:l}=e;return(0,m.cx)("relative flex w-full flex-row place-content-center place-items-center rounded-lg bg-primary ring-1 ring-primary transition-shadow duration-100 ease-linear ring-inset",t&&!r&&"ring-2 ring-brand",r&&"curs
1or-not-allowed bg-disabled_subtle ring-disabled","group-disabled:cursor-not-allowed group-disabled:bg-disabled_subtle group-disabled:ring-disabled",l&&"ring-error_subtle","group-invalid:ring-error_subtle",l&&t&&"ring-2 ring-error",t&&"group-invalid:ring-2 group-invalid:ring-error",null==S?void 0:S.wrapperClassName,b)},children:[y&&(0,l.jsx)(y,{className:(0,m.cx)("pointer-events-none absolute size-4 text-fg-quaternary",p&&"text-fg-disabled",z[L].iconLeading,null==S?void 0:S.iconClassName,w)}),(0,l.jsx)(o.p,{...k,ref:t,placeholder:f,className:(0,m.cx)("m-0 w-full bg-transparent text-base md:text-sm text-primary ring-0 outline-hidden placeholder:text-placeholder autofill:rounded-lg autofill:text-primary",p&&"cursor-not-allowed text-disabled",z[L].root,null==S?void 0:S.inputClassName,j)}),r&&!g&&(0,l.jsx)(x.m,{title:r,placement:"top",children:(0,l.jsx)(x.k,{className:(0,m.cx)("absolute cursor-pointer text-fg-quaternary transition duration-200 hover:text-fg-quaternary_hover focus:text-fg-quaternary_hover",z[L].iconTrailing,null==S?void 0:S.tooltipClassName,v),children:(0,l.jsx)(n.m,{className:"size-4"})})}),g&&(0,l.jsx)(a.d,{className:(0,m.cx)("pointer-events-none absolute size-4 text-fg-error-secondary",z[L].iconTrailing,null==S?void 0:S.tooltipClassName,v)}),c&&(0,l.jsx)("div",{className:(0,m.cx)("pointer-events-none absolute inset-y-0.5 right-0.5 z-10 flex items-center rounded-r-[inherit] bg-linear-to-r from-transparent to-bg-primary to-40% pl-8",z[L].shortcut),children:(0,l.jsx)("span",{className:(0,m.cx)("pointer-events-none rounded px-1 py-px text-xs font-medium text-quaternary ring-1 ring-secondary select-none ring-inset",p&&"bg-transparent text-disabled"),"aria-hidden":"true",children:"string"==typeof c?c:"⌘K"})})]})};g.displayName="InputBase";let h=(0,i.createContext)({}),p=e=>{let{className:t,...r}=e;return(0,l.jsx)(h.Provider,{value:r,children:(0,l.jsx)(c.A,{...r,"data-input-wrapper":!0,className:e=>(0,m.cx)("group flex h-max w-full flex-col items-start justify-start gap-1.5","function"==typeof t?t(e):t)})})};p.displayName="TextField";let y=e=>{let{size:t="sm",placeholder:r,icon:i,label:n,hint:a,shortcut:s,hideRequiredIndicator:o,className:c,ref:x,groupRef:m,tooltip:h,iconClassName:y,inputClassName:f,wrapperClassName:b,tooltipClassName:v,...j}=e;return(0,l.jsx)(p,{"aria-label":n?void 0:r,...j,className:c,children:e=>{let{isInvalid:c}=e;return(0,l.jsxs)(l.Fragment,{children:[n&&(0,l.jsx)(u.J,{isRequired:o?!o:void 0,children:n}),(0,l.jsx)(g,{ref:x,groupRef:m,size:t,placeholder:r,icon:i,shortcut:s,iconClassName:y,inputClassName:f,wrapperClassName:b,tooltipClassName:v,tooltip:h}),a&&(0,l.jsx)(d.X,{isInvalid:c,children:a})]})}})};y.displayName="Input"},62425:(e,t,r)=>{r.d(t,{N:()=>s,j:()=>a});var l=r(22342),i=r(33670);let n=(0,i.createContext)(void 0);function a(e){let{children:t}=e,[r,a]=(0,i.useState)({total:0,notListed:0,postingSoon:0,myListings:0,priceUpdates:0,cleanup:0,filtered:0});return(0,l.jsx)(n.Provider,{value:{counts:r,setCounts:a},children:t})}function s(){let e=(0,i.useContext)(n);return void 0===e?{counts:{total:0,notListed:0,postingSoon:0,myListings:0,priceUpdates:0,cleanup:0,filtered:0},setCounts:()=>{}}:e}},72910:(e,t,r)=>{r.d(t,{N:()=>s,b:()=>a});var l=r(33670);let i="homeLinkFor",n="home-link-change";function a(e,t){try{t?localStorage.setItem(i,e):localStorage.removeItem(i)}catch(e){}window.dispatchEvent(new Event(n))}function s(e){let[t,r]=(0,l.useState)(!1);return(0,l.useLayoutEffect)(()=>{let e=()=>r(function(){try{let e=localStorage.getItem("userEmail");return!!e&&localStorage.getItem(i)===e}catch(e){return!1}}());return e(),window.addEventListener(n,e),()=>window.removeEventListener(n,e)},[]),t||"/home"===e||e.startsWith("/home/")}},76827:(e,t,r)=>{r.d(t,{Ex:()=>x,z6:()=>m});var l=r(22342);let i={sm:{wh:8,c:4,r:2.5},md:{wh:10,c:5,r:4}},n=e=>{let{size:t="md",...r}=e;return(0,l.jsx)("svg",{width:i[t].wh,height:i[t].wh,viewBox:"0 0 ".concat(i[t].wh," ").concat(i[t].wh),fill:"none",...r,children:(0,l.jsx)("circle",{cx:i[t].c,cy:i[t].c,r:i[t].r,fill:"currentColor",stroke:"currentColor"})})};var a=r(92757);let s={pillColor:"pill-color",badgeColor:"color",badgeModern:"modern"},o={gray:{root:"bg-utility-gray-50 text-utility-gray-700 ring-utility-gray-200",addon:"text-utility-gray-500",addonButton:"hover:bg-utility-gray-100 text-utility-gray-400 hover:text-utility-gray-500"},brand:{root:"bg-utility-brand-50 text-utility-brand-700 ring-utility-brand-200",addon:"text-utility-brand-500",addonButton:"hover:bg-utility-brand-100 text-utility-brand-400 hover:text-utility-brand-500"},error:{root:"bg-utility-error-50 text-utility-error-700 ring-utility-error-200",addon:"text-utility-error-500",addonButton:"hover:bg-utility-error-100 text-utility-error-400 hover:text-utility-error-500"},warning:{root:"bg-utility-warning-50 text-utility-warning-700 ring-utility-warning-200",addon:"text-utility-warning-500",addonButton:"hover:bg-utility-warning-100 text-utility-warning-400 hover:text-utility-warning-500"},success:{root:"bg-utility-success-50 text-utility-success-700 ring-utility-success-200",addon:"text-utility-success-500",addonButton:"hover:bg-utility-success-100 text-utility-success-400 hover:text-utility-success-500"},"gray-blue":{root:"bg-utility-gray-blue-50 text-utility-gray-blue-700 ring-utility-gray-blue-200",addon:"text-utility-gray-blue-500",addonButton:"hover:bg-utility-gray-blue-100 text-utility-gray-blue-400 hover:text-utility-gray-blue-500"},"blue-light":{root:"bg-utility-blue-light-50 text-utility-blue-light-700 ring-utility-blue-light-200",addon:"text-utility-blue-light-500",addonButton:"hover:bg-utility-blue-light-100 text-utility-blue-light-400 hover:text-utility-blue-light-500"},blue:{root:"bg-utility-blue-50 text-utility-blue-700 ring-utility-blue-200",addon:"text-utility-blue-500",addonButton:"hover:bg-utility-blue-100 text-utility-blue-400 hover:text-utility-blue-500"},indigo:{root:"bg-utility-indigo-50 text-utility-indigo-700 ring-utility-indigo-200",addon:"text-utility-indigo-500",addonButton:"hover:bg-utility-indigo-100 text-utility-indigo-400 hover:text-utility-indigo-500"},purple:{root:"bg-utility-purple-50 text-utility-purple-700 ring-utility-purple-200",addon:"text-utility-purple-500",addonButton:"hover:bg-utility-purple-100 text-utility-purple-400 hover:text-utility-purple-500"},pink:{root:"bg-utility-pink-50 text-utility-pink-700 ring-utility-pink-200",addon:"text-utility-pink-500",addonButton:"hover:bg-utility-pink-100 text-utility-pink-400 hover:text-utility-pink-500"},orange:{root:"bg-utility-orange-50 text-utility-orange-700 ring-utility-orange-200",addon:"text-utility-orange-500",addonButton:"hover:bg-utility-orange-100 text-utility-orange-400 hover:text-utility-orange-500"}},c=Object.fromEntries(Object.entries(o).map(e=>{let[t,r]=e;return[t,{root:"",addon:r.addon}]})),d={[s.pillColor]:{common:"size-max flex items-center whitespace-nowrap rounded-full ring-1 ring-inset",styles:o},[s.badgeColor]:{common:"size-max flex items-center whitespace-nowrap rounded-md ring-1 ring-inset",styles:o},[s.badgeModern]:{common:"size-max flex items-center whitespace-nowrap rounded-md ring-1 ring-inset shadow-xs",styles:{gray:{root:"bg-primary text-secondary ring-primary",addon:"text-gray-500",addonButton:"hover:bg-utility-gray-100 text-utility-gray-400 hover:text-utility-gray-500"}}}},u={[s.pillColor]:{common:"size-max flex items-center whitespace-nowrap rounded-full ring-1 ring-inset",styles:o},[s.badgeColor]:{common:"size-max flex items-center whitespace-nowrap rounded-md ring-1 ring-inset",styles:o},[s.badgeModern]:{common:"size-max flex items-center whitespace-nowrap rounded-md ring-1 ring-inset bg-primary text-secondary ring-primary shadow-xs",styles:c}},x=e=>{let{type:t="pill-color",size:r="md",color:i="gray",children:n}=e,o=d[t],c={xs:"py-0.2 px-1 text-xs font-bold",sm:"py-0.5 px-1.5 text-xs font-bold",md:"py-0.5 px-2 text-sm font-bold",lg:"py-1 px-2.5 text-sm font-bold rounded-lg"},u={[s.pillColor]:{xs:"py-0.2 px-1 text-xs font-bold",sm:"py-0.5 px-2 text-xs font-bold",md:"py-0.5 px-2.5 text-sm font-bold",lg:"py-1 px-3 text-sm font-bold"},[s.badgeColor]:c,[s.badgeModern]:c};return(0,l.jsx)("span",{className:(0,a.cx)(o.common,u[t][r],o.styles[i].root,e.className),children:n})},m=e=>{let{size:t="md",color:r="gray",type:i="pill-color",className:o,children:c}=e,d=u[i],x={sm:"gap-1 py-0.5 px-1.5 text-xs font-medium",md:"gap-1.5 py-0.5 px-2 text-sm font-medium",lg:"gap-1.5 py-1 px-2.5 text-sm font-medium rounded-lg"},m={[s.pillColor]:{sm:"gap-1 py-0.5 pl-1.5 pr-2 text-xs font-medium",md:"gap-1.5 py-0.5 pl-2 pr-2.5 text-sm font-medium",lg:"gap-1.5 py-1 pl-2.5 pr-3 text-sm font-medium"},[s.badgeColor]:x,[s.badgeModern]:x};return(0,l.jsxs)("span",{className:(0,a.cx)(d.common,m[i][t],d.styles[r].root,o),children:[(0,l.jsx)(n,{className:d.styles[r].addon,size:"sm"}),c]})}},78608:(e,t,r)=>{r.d(t,{z:()=>E});var l=r(22342),i=r(33670),n=r(94936),a=r(51633),s=r(76288),o=r(2
10063),c=r(72412),d=r(52838),u=r(3180),x=r(92757),m=r(85004),g=r(69955),h=r(7931),p=r(26338);let y=e=>{let{children:t,hideLogo:r=!1,showSearchOnMobile:i=!1,showBackButton:s=!1,onBack:o,searchValue:d="",onSearchChange:y,userLogo:f}=e;return(0,l.jsxs)(n.zM,{children:[(0,l.jsxs)("header",{className:"flex h-16 justify-between border-b border-secondary bg-primary px-5 lg:hidden relative z-50",children:[(0,l.jsx)("div",{className:"flex pt-3 justify-start flex-1",children:s&&o?(0,l.jsx)("button",{onClick:o,className:"inline-flex items-center justify-center w-10 h-10 text-black dark:text-white hover:text-gray-700 dark:hover:text-gray-300 transition-all rounded-full hover:bg-gray-100 dark:hover:bg-gray-700",children:(0,l.jsx)("svg",{viewBox:"0 0 24 24",className:"w-5 h-5",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,l.jsx)("path",{d:"M19 12H5M12 19l-7-7 7-7"})})}):r?i?(0,l.jsxs)("div",{className:"flex gap-3 flex-1",children:[!r&&(0,l.jsx)("div",{className:"flex justify-start overflow-visible h-6 w-max flex-shrink-0",children:f?(0,l.jsx)("img",{src:f,alt:"Dealership logo",className:"h-6 w-auto object-contain max-w-[120px]"}):(0,l.jsx)(p.k,{})}),(0,l.jsx)("div",{className:"flex-1 max-w-xs mx-auto px-2",children:(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)("div",{className:"absolute inset-y-0 left-0 pl-2 flex items-center pointer-events-none",children:(0,l.jsx)(c.q,{className:"h-3.5 w-3.5 sm:h-4 sm:w-4 text-gray-400 dark:text-gray-500"})}),(0,l.jsx)("input",{type:"text","aria-label":"Search",placeholder:"Search vehicles...",value:d,onChange:e=>null==y?void 0:y(e.target.value),className:"w-full pl-8 sm:pl-10 pr-3 py-2 bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-600 rounded-full shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-400 focus:border-transparent text-xs text-gray-900 dark:text-gray-100 placeholder-gray-500 dark:placeholder-gray-400"})]})})]}):(0,l.jsx)("div",{className:"flex-1"}):(0,l.jsx)(u.p,{className:"pt-3"})}),(0,l.jsx)("div",{className:"flex items-center justify-end",children:(0,l.jsxs)(a.$,{"aria-label":"Expand navigation menu",className:"group flex items-center justify-center rounded-lg bg-primary p-2 text-fg-secondary outline-focus-ring hover:bg-primary_hover hover:text-fg-secondary_hover focus-visible:outline-2 focus-visible:outline-offset-2 w-10 h-10",children:[(0,l.jsx)(m.Y,{className:"size-6 transition duration-200 ease-in-out group-aria-expanded:opacity-0"}),(0,l.jsx)(g.X,{className:"absolute size-6 opacity-0 transition duration-200 ease-in-out group-aria-expanded:opacity-100"})]})})]}),(0,l.jsx)(h.mH,{isDismissable:!0,className:e=>{let{isEntering:t,isExiting:r}=e;return(0,x.cx)("fixed inset-0 z-50 cursor-pointer bg-overlay/70 pr-16 backdrop-blur-md lg:hidden",t&&"duration-300 ease-in-out animate-in fade-in",r&&"duration-200 ease-in-out animate-out fade-out")},children:e=>{let{state:r}=e;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(a.$,{"aria-label":"Close navigation menu",onPress:()=>r.close(),className:"fixed top-3 right-2 flex cursor-pointer items-center justify-center rounded-lg p-2 text-fg-white/70 outline-focus-ring hover:bg-white/10 hover:text-fg-white focus-visible:outline-2 focus-visible:outline-offset-2",children:(0,l.jsx)(g.X,{className:"size-6"})}),(0,l.jsx)(h.aF,{className:"w-full cursor-auto will-change-transform",children:(0,l.jsx)(n.lG,{className:"h-dvh outline-hidden focus:outline-hidden",children:t})})]})}})]})};var f=r(9430),b=r(61014),v=r(52619),j=r.n(v),w=r(76827);let N=(0,x.w)({root:"group relative flex w-full cursor-pointer items-center rounded-md bg-primary outline-focus-ring transition duration-100 ease-linear select-none hover:bg-primary_hover focus-visible:z-10 focus-visible:outline-2 focus-visible:outline-offset-2 border-0 m-0 text-left",rootSelected:"bg-active hover:bg-secondary_hover"}),k=e=>{let{current:t,type:r,badge:i,href:n,icon:a,children:s,truncate:o=!0,onClick:c}=e,d=a&&(0,l.jsx)(a,{"aria-hidden":"true",className:"mr-2 size-5 shrink-0 text-fg-quaternary transition-inherit-all"}),u=i&&("string"==typeof i||"number"==typeof i)?(0,l.jsx)(w.Ex,{className:"ml-3",color:"gray",type:"pill-color",size:"sm",children:i}):i,m=(0,l.jsx)("span",{className:(0,x.cx)("flex-1 text-sm font-bold text-disabled transition-inherit-all group-hover:text-secondary_hover",o&&"truncate",t&&"text-secondary_hover"),children:s}),g=n&&n.startsWith("http"),h=g&&(0,l.jsx)(f.o,{className:"size-4 stroke-[2.5px] text-fg-quaternary"});return"collapsible"===r?(0,l.jsxs)("summary",{className:(0,x.cx)("px-3 py-2",N.root,t&&N.rootSelected),onClick:c,children:[d,(0,l.jsx)("span",{className:(0,x.cx)("flex-1 text-xs font-bold text-secondary_hover transition-inherit-all group-hover:text-secondary_hover",o&&"truncate",t&&"text-secondary_hover"),children:s}),u,(0,l.jsx)(b.y,{"aria-hidden":"true",className:"ml-3 size-4 shrink-0 stroke-[2.5px] text-fg-quaternary in-open:-scale-y-100"})]}):"collapsible-child"===r?g?(0,l.jsxs)("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:(0,x.cx)("py-2 pr-3 pl-5",N.root,t&&N.rootSelected),onClick:c,"aria-current":t?"page":void 0,children:[d,m,h,u]}):(0,l.jsxs)(j(),{href:n||"#",className:(0,x.cx)("py-2 pr-3 pl-5",N.root,t&&N.rootSelected),onClick:c,"aria-current":t?"page":void 0,children:[d,m,u]}):g?(0,l.jsxs)("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:(0,x.cx)("px-3 py-2",N.root,t&&N.rootSelected),onClick:c,"aria-current":t?"page":void 0,children:[d,m,h,u]}):(0,l.jsxs)(j(),{href:n||"#",className:(0,x.cx)("px-3 py-2",N.root,t&&N.rootSelected),onClick:c,"aria-current":t?"page":void 0,children:[d,m,u]})},C=e=>{let{activeUrl:t,items:r,className:n}=e,[a,s]=(0,i.useState)(!1),o=r.find(e=>{var r;return e.href===t||(null==(r=e.items)?void 0:r.some(e=>e.href===t))}),[c,d]=(0,i.useState)(void 0);return(0,i.useEffect)(()=>{d(o)},[o]),(0,l.jsx)("ul",{className:(0,x.cx)("mt-4 flex flex-col px-1",n),children:r.map((e,r)=>{var i;return e.divider?(0,l.jsx)("li",{className:"w-full px-0.5 py-2",children:(0,l.jsx)("hr",{className:"h-px w-full border-none bg-border-secondary"})},r):(null==(i=e.items)?void 0:i.length)?(0,l.jsxs)("details",{open:!0,className:"appearance-none py-0.5",onToggle:t=>{s(t.currentTarget.open),d(e)},children:[(0,l.jsx)(k,{href:e.href,badge:e.badge,icon:e.icon,type:"collapsible",children:e.label}),(0,l.jsx)("dd",{children:(0,l.jsx)("ul",{className:"",children:e.items.map(e=>(0,l.jsx)("li",{className:"",children:(0,l.jsx)(k,{href:e.href,badge:e.badge,icon:e.icon,type:"collapsible-child",current:t===e.href,onClick:e.onClick,children:e.label})},e.label))})})]},e.label):(0,l.jsx)("li",{className:"py-0.5",children:(0,l.jsx)(k,{type:"link",badge:e.badge,icon:e.icon,href:e.href,current:(null==c?void 0:c.href)===e.href,open:a,children:e.label})},e.label)})})},S=e=>{let{onTabChange:t,docsLabel:r="Documentation",inventoryLabel:n="Inventory",marketingLabel:a="Social",schedulingLabel:s="Contacts",showOnlyDocs:c=!1,hideScheduling:d=!1,hideMarketing:u=!1}=e,x=(0,o.useRouter)(),m=((0,o.usePathname)()||window.location.pathname||"").toString();(0,i.useEffect)(()=>{x.prefetch("/docs/introduction"),x.prefetch("/inventory/all"),x.prefetch("/social/planner"),x.prefetch("/contacts/leadcenter")},[x]);let g="docs";m&&(m.includes("/settings")?g="inventory":m.includes("/marketplace")?g="docs":m.includes("/inventory")?g="inventory":m.includes("/social")?g="marketing":m.includes("/contacts")&&(g="scheduling"));let h=(e,t)=>{t.preventDefault(),(0,i.startTransition)(()=>{"inventory"===e?m.includes("/marketplace")||m.includes("/settings")?x.replace("/settings"):x.replace("/inventory/all"):"docs"===e?m.includes("/marketplace")?x.replace("/marketplace"):(m.includes("/settings"),x.replace("/docs/introduction")):"marketing"===e?x.replace("/social/ads-manager"):"scheduling"===e&&x.replace("/contacts/leadcenter")})};return(0,l.jsx)("div",{className:"flex flex-col gap-4 px-4 pt-6 lg:px-4 lg:pt-6",children:(0,l.jsxs)("div",{className:"relative mb-2 flex",children:[(0,l.jsx)("div",{className:"w-0.5 bg-border-secondary"}),g?(0,l.jsx)("div",{className:"absolute left-0 w-0.5 bg-fg-brand-primary_alt transition-all duration-150 ease-linear",style:{to
1p:"docs"===g?"0px":"inventory"===g?"26px":"scheduling"===g?"52px":"marketing"===g?"78px":"0px",height:"20px"}}):null,(0,l.jsxs)("ul",{className:"relative flex h-full w-full flex-col gap-1.5 pl-3 md:gap-1.5",children:[(0,l.jsx)("li",{className:"flex w-full",children:(0,l.jsx)("button",{onClick:e=>h("docs",e),className:"w-full rounded-xs py-0 text-sm font-semibold outline-focus-ring \n                                focus-visible:outline-2 focus-visible:outline-offset-2 md:py-0 md:text-sm \n                                text-left m-0 p-0 border-0 bg-transparent\n                                ".concat("docs"===g?"text-brand-secondary":"text-quaternary"),children:r})}),!c&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("li",{className:"flex w-full",children:(0,l.jsx)("button",{onClick:e=>h("inventory",e),className:"w-full rounded-xs py-0 text-sm font-semibold outline-focus-ring \n                                        focus-visible:outline-2 focus-visible:outline-offset-2 md:py-0 md:text-sm \n                                        text-left m-0 p-0 border-0 bg-transparent\n                                        ".concat("inventory"===g?"text-brand-secondary":"text-quaternary"),children:n})}),!d&&(0,l.jsx)("li",{className:"flex w-full",children:(0,l.jsx)("button",{onClick:e=>h("scheduling",e),className:"w-full rounded-xs py-0 text-sm font-semibold outline-focus-ring \n                                        focus-visible:outline-2 focus-visible:outline-offset-2 md:py-0 md:text-sm \n                                        text-left m-0 p-0 border-0 bg-transparent\n                                        ".concat("scheduling"===g?"text-brand-secondary":"text-quaternary"),children:s})}),!u&&(0,l.jsx)("li",{className:"flex w-full",children:(0,l.jsx)("button",{onClick:e=>h("marketing",e),className:"w-full rounded-xs py-0 text-sm font-semibold outline-focus-ring \n                                        focus-visible:outline-2 focus-visible:outline-offset-2 md:py-0 md:text-sm \n                                        text-left m-0 p-0 border-0 bg-transparent\n                                        ".concat("marketing"===g?"text-brand-secondary":"text-quaternary"),children:a})})]})]})]})})};var L=r(51232),z=r(62425),_=r(72910);let E=e=>{var t,r;let{activeUrl:m,items:g,footerItems:h=[],featureCard:p,showAccountCard:f=!0,hideBorder:b=!1,className:v,selectedTab:j,searchValue:w="",onSearchChange:N,hideLogoOnMobile:k=!1,showSearchOnMobile:E=!1,showBackButton:I=!1,onBack:q,docsLabel:B,inventoryLabel:M,marketingLabel:U,schedulingLabel:R,showOnlyDocs:T,hideTabs:A=!1,hideScheduling:P=!1,hideMarketing:F=!1}=e,W=(0,o.useRouter)(),D=(0,o.usePathname)(),H=(m||D||"").toString(),O="docs";H&&(H.includes("/inventory")?O="inventory":H.includes("/social")||H.includes("/marketing")?O="marketing":H.includes("/contacts")&&(O="scheduling"));let X=(0,_.N)(H),$=(0,i.useMemo)(()=>{if("docs"===O);else if("inventory"===O)return[{label:"Catalog",href:"/inventory",items:[{label:"All Inventory",href:"/inventory/all"}]}];else if("marketing"===O)return[{label:"Marketing",href:"/social",items:[{label:"Ads Manager",href:"/social/ads-manager"},{label:"Planner",href:"/social/planner"}]}];else if("scheduling"===O)return[{label:"Activity",href:"/contacts/leadcenter",items:[{label:"Lead Center",href:"/contacts/leadcenter",onClick:()=>window.dispatchEvent(new CustomEvent("leadcenter-reset"))},{label:"Meetings",href:"/contacts/meetings"},{label:"Reports",href:"/contacts/reports"}]}];return g},[O,g]),[J,Q]=(0,i.useState)(null),Y=(0,z.N)();(0,i.useEffect)(()=>{(async()=>{try{let t=localStorage.getItem("userEmail");if(!t)return;let r=await fetch("/api/current-user",{credentials:"include"});if(r.ok){let l=await r.json();if(l.success){var e;(0,_.b)(t,"autoplexmke"===String((null==(e=l.account)?void 0:e.slug)||"").toLowerCase()),Q({firstName:l.user.firstName||"",lastName:l.user.lastName||"",email:l.user.email||""})}}}catch(e){console.error("Failed to fetch user data:",e)}})()},[]);let G=async e=>{let t=e.trim();if(t&&!(t.length<2))try{let e=await fetch("/api/search/global?q=".concat(encodeURIComponent(t)));if(!e.ok)return void(H.includes("/inventory")||H.includes("/marketplace")?W.push("/inventory/all?search=".concat(encodeURIComponent(t))):H.includes("/contacts")?W.push("/contacts/leadcenter?search=".concat(encodeURIComponent(t))):W.push("/inventory/all?search=".concat(encodeURIComponent(t))));let r=(await e.json()).results||[];if(r.length>0){let e=r[0];W.push(e.url),null==N||N("")}else H.includes("/inventory")||H.includes("/marketplace")?W.push("/inventory/all?search=".concat(encodeURIComponent(t))):H.includes("/contacts")?W.push("/contacts/leadcenter?search=".concat(encodeURIComponent(t))):W.push("/inventory/all?search=".concat(encodeURIComponent(t)))}catch(e){console.error("Search error:",e),H.includes("/inventory")||H.includes("/marketplace")?W.push("/inventory/all?search=".concat(encodeURIComponent(t))):H.includes("/contacts")?W.push("/contacts/leadcenter?search=".concat(encodeURIComponent(t))):W.push("/inventory/all?search=".concat(encodeURIComponent(t)))}};(0,i.useEffect)(()=>{let e=null,t=null,r=setTimeout(()=>{let r=document.getElementById("global-search-container");r&&(e=r.querySelector("input")),e&&(t=e=>{if("Enter"===e.key){let t=e.target,r=(null==t?void 0:t.value)||w;r.trim()&&(e.preventDefault(),G(r))}},e.addEventListener("keydown",t))},100);return()=>{clearTimeout(r),e&&t&&e.removeEventListener("keydown",t)}},[w,H]);let K=(0,l.jsxs)("aside",{style:{"--width":"".concat(249,"px")},className:(0,x.cx)("flex h-full w-full max-w-full flex-col justify-between overflow-hidden bg-primary pt-5 lg:w-(--width) page-transition",!b&&"border-secondary md:border-r",v),children:[(0,l.jsxs)("div",{className:"flex flex-col gap-5 px-5",children:[(0,l.jsxs)("div",{className:"flex justify-between",children:[(0,l.jsx)(u.p,{className:"h-6"}),X?(0,l.jsx)("button",{onClick:()=>{W.push("/home"),window.dispatchEvent(new CustomEvent("home-reset"))},className:(0,x.cx)("lg:hidden inline-flex items-center justify-center w-6 h-6 hover:text-gray-900 dark:hover:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-700 transition-all rounded-lg","/home"===H?"text-blue-600 dar
1k:text-blue-400":"text-gray-600 dark:text-gray-400"),title:"Home","aria-label":"Home",children:(0,l.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})})}):(0,l.jsx)("button",{onClick:()=>{let e=document.documentElement;e.classList.contains("dark-mode")?(e.classList.remove("dark-mode"),localStorage.setItem("theme","light")):(e.classList.add("dark-mode"),localStorage.setItem("theme","dark"))},className:"lg:hidden inline-flex items-center justify-center w-6 h-6 text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-700 transition-all rounded-lg",title:"Toggle dark mode",children:(0,l.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"})})})]}),(0,l.jsx)("div",{id:"global-search-container",children:(0,l.jsx)(d.pd,{"aria-label":"Search",placeholder:H?H.includes("/admin")?"Search customers...":H.startsWith("/marketplace")&&Y.counts.total>0?"".concat(Y.counts.total," total vehicles..."):"Quick Search":"Quick Search",icon:c.q,value:w,onChange:e=>null==N?void 0:N(e)})})]}),!A&&(0,l.jsx)(S,{onTabChange:e=>{},docsLabel:B,inventoryLabel:M,marketingLabel:U,schedulingLabel:R,showOnlyDocs:T,hideScheduling:P,hideMarketing:F}),(0,l.jsx)("div",{className:"flex-1 px-2",children:A?(0,l.jsx)(C,{activeUrl:m,items:g}):(0,l.jsx)(C,{activeUrl:H,items:$})}),(0,l.jsxs)("div",{className:"mt-auto flex flex-col gap-4 px-2 py-4 lg:px-4 lg:py-6",children:[H.startsWith("/marketplace")&&(0,l.jsx)("div",{className:"hidden lg:block",children:(0,l.jsxs)(n.zM,{children:[(0,l.jsx)(a.$,{className:"flex w-full items-center justify-between px-3 py-2 text-left hover:bg-primary_hover",children:(0,l.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,l.jsx)("div",{className:"h-7 w-7 overflow-hidden rounded-full bg-primary_alt border border-secondary flex items-center justify-center",children:(null==J?void 0:J.facebookPhoto)?(0,l.jsx)("img",{src:J.facebookPhoto,alt:"Profile",className:"h-full w-full object-cover"}):(0,l.jsx)("span",{className:"text-xs font-semibold text-primary",children:((null==J||null==(t=J.firstName)?void 0:t.charAt(0))||"U").toUpperCase()})}),(0,l.jsxs)("div",{className:"min-w-0",children:[(0,l.jsx)("p",{className:"truncate text-sm font-medium text-primary",children:J&&"".concat(J.firstName||""," ").concat(J.lastName||"").trim()||"User"}),(0,l.jsx)("p",{className:"truncate text-xs text-quaternary",children:"Profile"})]})]})}),(0,l.jsx)(s.A,{className:e=>{let{isEntering:t,isExiting:r}=e;return"w-64 rounded-lg bg-white dark:bg-gray-800 shadow-lg ring-1 ring-gray-200 dark:ring-gray-700 ".concat(t?"duration-150 ease-in animate-in fade-in-0 zoom-in-95":r?"duration-100 ease-out animate-out fade-out-0 zoom-out-95":"")},placement:"top",children:(0,l.jsx)(L.I,{showAccountSettings:!1})})]})}),(0,l.jsx)("div",{className:"lg:hidden border-t border-gray-200 dark:border-gray-700 pt-4",children:(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsxs)("div",{className:"flex items-center gap-3",children:[(0,l.jsx)("div",{className:"w-8 h-8 bg-blue-600 rounded-full flex items-center justify-center",children:(0,l.jsx)("span",{className:"text-white text-sm font-semibold",children:(null==J||null==(r=J.firstName)?void 0:r.charAt(0))||"U"})}),(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:"text-sm font-medium text-gray-900 dark:text-gray-100",children:J&&"".concat(J.firstName||""," ").concat(J.lastName||"").trim()||"User"}),(0,l.jsx)("p",{className:"text-xs text-gray-500 dark:text-gray-400",children:(null==J?void 0:J.email)||"[email protected]"})]})]}),(0,l.jsxs)(n.zM,{children:[(0,l.jsx)(a.$,{className:"flex items-center justify-center w-8 h-8 text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-700 transition-all rounded-lg",children:(0,l.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})}),(0,l.jsx)(s.A,{className:e=>
1{let{isEntering:t,isExiting:r}=e;return"w-64 rounded-lg bg-white dark:bg-gray-800 shadow-lg ring-1 ring-gray-200 dark:ring-gray-700 ".concat(t?"duration-150 ease-in animate-in fade-in-0 zoom-in-95":"duration-100 ease-out animate-out fade-out-0 zoom-out-95")},placement:"top",children:(0,l.jsx)(L.I,{showAccountSettings:!1})})]})]})})]})]});return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(y,{hideLogo:k,showSearchOnMobile:E,showBackButton:I,onBack:q,searchValue:w,onSearchChange:N,children:K}),(0,l.jsx)("div",{className:"hidden lg:fixed lg:inset-y-0 lg:left-0 lg:flex",children:K}),(0,l.jsx)("div",{style:{paddingLeft:249},className:"invisible hidden lg:sticky lg:top-0 lg:bottom-0 lg:left-0 lg:block"})]})}}}]);

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.