PageSourceSearch

https://peakautoauctionstn.com/build/assets/Home-DAOcYFFK.js

js peakautoauctionstn.com collected 2026-10-05 22:03:20 UTC 8,271 bytes, 1 lines download raw bytes

1import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{t,u as n}from"./jsx-runtime-D2_4nLlF.js";import{t as r}from"./app-DqgRqaVH.js";import{t as i}from"./PortalLayout-fFUSOg6S.js";import{t as a}from"./Lot-DQf051Ux.js";import{t as o}from"./Auction-Cs_ivF7p.js";var s=e(n());function c({title:e,titleId:t,...n},r){return s.createElement(`svg`,Object.assign({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,"aria-hidden":`true`,"data-slot":`icon`,ref:r,"aria-labelledby":t},n),e?s.createElement(`title`,{id:t},e):null,s.createElement(`path`,{fillRule:`evenodd`,d:`M7.72 12.53a.75.75 0 0 1 0-1.06l7.5-7.5a.75.75 0 1 1 1.06 1.06L9.31 12l6.97 6.97a.75.75 0 1 1-1.06 1.06l-7.5-7.5Z`,clipRule:`evenodd`}))}var l=s.forwardRef(c);function u({title:e,titleId:t,...n},r){return s.createElement(`svg`,Object.assign({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,"aria-hidden":`true`,"data-slot":`icon`,ref:r,"aria-labelledby":t},n),e?s.createElement(`title`,{id:t},e):null,s.createElement(`path`,{fillRule:`evenodd`,d:`M16.28 11.47a.75.75 0 0 1 0 1.06l-7.5 7.5a.75.75 0 0 1-1.06-1.06L14.69 12 7.72 5.03a.75.75 0 0 1 1.06-1.06l7.5 7.5Z`,clipRule:`evenodd`}))}var d=s.forwardRef(u);function f({title:e,titleId:t,...n},r){return s.createElement(`svg`,Object.assign({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,"aria-hidden":`true`,"data-slot":`icon`,ref:r,"aria-labelledby":t},n),e?s.createElement(`title`,{id:t},e):null,s.createElement(`path`,{fillRule:`evenodd`,d:`M10.5 3.75a6.75 6.75 0 1 0 0 13.5 6.75 6.75 0 0 0 0-13.5ZM2.25 10.5a8.25 8.25 0 1 1 14.59 5.28l4.69 4.69a.75.75 0 1 1-1.06 1.06l-4.69-4.69A8.25 8.25 0 0 1 2.25 10.5Z`,clipRule:`evenodd`}))}var p=s.forwardRef(f),m=t(),h=({renderLot:e,lots:t,threshold:n})=>{let r=(0,s.useRef)(),[i,a]=(0,s.useState)(!1),[o,c]=(0,s.useState)(!0),[u,f]=(0,s.useState)(0),[p,h]=(0,s.use
1State)(100),g=t.length;return(0,s.useEffect)(()=>{r.current&&h(r.current?.children[0].offsetWidth+18)},[]),(0,s.useEffect)(()=>{if(!r.current)return;let e=Math.abs(u/p),t=r.current.offsetWidth/p;a(u<0),c(g>e+t)},[p,u]),t.length<=n?(0,m.jsx)(`div`,{className:`grid grid-cols-1 gap-x-4 gap-y-10 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 xl:gap-x-6`,children:t.map(t=>e(t))}):(0,m.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,m.jsx)(`div`,{onClick:()=>{i&&f(u+p)},className:`px-1 py-4 bg-white z-10 `+(i?`cursor-pointer`:` text-gray-300`),children:(0,m.jsx)(l,{className:`w-8`})}),(0,m.jsx)(`div`,{className:`relative overflow-hidden w-full`,children:(0,m.jsx)(`div`,{ref:r,style:{left:u},className:`transition-all relative w-full columns-1 sm:columns-2 lg:columns-3 xl:columns-4 gap-x-4 xl:gap-x-6`,children:t.map(t=>(0,m.jsx)(`div`,{className:`break-after-column break-inside-avoid`,children:e(t)},t.id))})}),(0,m.jsx)(`div`,{onClick:()=>{o&&f(u-p)},className:`px-1 py-4 bg-white z-10 `+(o?`cursor-pointer`:`text-gray-300`),children:(0,m.jsx)(d,{className:`w-8`})})]})},g=e=>{let[t,n]=(0,s.useState)(``),[i,a]=(0,s.useState)([]),[o,c]=(0,s.useState)([]);return(0,s.useEffect)(()=>{(async e=>{if(t.length>=3)try{let n=route(`search`,{state:e?.state?.code,query:t}),i=await r.get(n);console.log(i.data.lots),a(i.data.auctions),c(i.data.lots)}catch(e){console.error(`Failed to fetch results:`,e)}else a([]),c([])})(e)},[t]),(0,m.jsxs)(`form`,{onSubmit:n=>{n.preventDefault();let r=route(`search-results`,{state:e?.state?.code,query:t});window.location.assign(r)},className:`rounded-lg bg-white w-full lg:w-1/2 xl:w-1/3 mx-auto px-2 py-1.5 md:px-4 md:py-3 flex gap-2 justify-between relative`,children:[(0,m.jsxs)(`div`,{className:`flex gap-1 items-center w-full`,children:[(0,m.jsx)(p,{className:`w-6 h-6`}),(0,m.jsx)(`input`,{className:`w-full border-0 focus:ring-0 text-sm md:text-lg`,placeholder:`Search Make, Model or Keyword`,value:t,onChange:e=>n(e.target.value)})]}),(0,m.jsx)(`button`,{className:`rounded-md bg-slate-800 hover:bg-slate-700 px-3 py-2 text-sm font-semibold text-white shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-slate-700`,onClick:()=>{},children:`Go`}),(0,m.jsxs)(`div`,{className:`w-full absolute top-16 -mt-1 left-0 shadow z-50 bg-white`,children:[i.length>0&&(0,m.jsxs)(`div`,{className:`p-4 border-t border-gray-100`,children:[(0,m.jsx)(`h4`,{className:`font-bold text-xl pb-2 px-1`,children:`Auctions`}),i.map(t=>(0,m.jsx)(`a`,{href:route(`auction.show`,{state:e?.state?.code,auction:t.id}),className:`block text-slate-600 hover:text-slate-800 hover:bg-slate-100 p-1`,children:t.name},t.id))]}),o.length>0&&(0,m.jsxs)(`div`,{className:`p-4`,children:[(0,m.jsx)(`h4`,{className:`font-bold text-xl pb-2 px-1`,children:`Lots`}),o.map(e=>(0,m.jsxs)(`a`,{href:e.links.show,className:`block text-slate-600 hover:text-slate-800 hover:bg-slate-100 p-1`,children:[e.item.year,` `,e.item.make,` `,e.item.model]},e.id))]})]})]})},_=()=>(0,m.jsx)(`div`,{className:`bg-white`,children:(0,m.jsx)(`div`,{className:`px-6 py-24 sm:px-6 sm:py-32 lg:px-8`,children:(0,m.jsxs)(`div`,{className:`mx-auto max-w-2xl text-center`,children:[(0,m.jsxs)(`h2`,{className:`text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl`,children:[`Ready to start bidding?`,(0,m.jsx)(`br`,{}),`Sign up for an account today.`]}),(0,m.jsx)(`p`,{className:`mx-auto mt-6 max-w-xl text-lg leading-8 text-gray-600`,children:`You'll need an account in order to proceed. Registration is free. A deposit will be required in order to participate in auctions.`}),(0,m.jsxs)(`div`,{className:`mt-10 flex items-center justify-center gap-x-6`,children:[(0,m.jsx)(`a`,{href:`/register`,className:`rounded-md bg-slate-800 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-slate-700 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-slate-700`,children:`Sign up`}),(0,m.jsxs)(`a`,{href:`https://peakautoauctions.com/faqs/`,target:`_blank`,className:`text-sm font-semibold leading-6 text-gray-900`,children:[`How it works `,(0,m.jsx)(`span`,{"aria-hidden":`true`,children:`→`})]})]})]})})}),v=({state:e,auctions:t,lots:n,lotsWatched:r,lotsWatchesWithNotes:c})=>{(0,s.useRef)();let l=[`/videos/AdobeStock_247918849.m4v`,`/videos/AdobeStock_351891341.m4v`];return l[Math.floor(Math.random()*l.length)],(0,m.jsxs)(i,{header:(0,m.jsxs)(`div`,{className:`bg-[url(/img/bg/aerial-view-of-auction-reseller-company-big-parking-lot-with-parked-cars.webp)] bg-center 2xl:bg-[center_top_-30rem] bg-cover bg-no-repeat relative`,children:[(0,m.jsx)(`div`,{className:`absolute bg-black/50 w-full h-full t-0 l-0 r
1-0 b-0 m-auto`}),(0,m.jsxs)(`div`,{className:`relative pt-8 pb-12 px-6 md:pt-16 md:pb-24`,children:[(0,m.jsx)(`h1`,{className:`text-xl md:text-5xl text-center font-bold text-white my-12`,children:`The Largest Unclaimed Vehicle Marketplace`}),(0,m.jsx)(`div`,{className:`px-4`,children:(0,m.jsx)(g,{state:e})})]})]}),children:[(0,m.jsxs)(`div`,{className:`pt-12 px-4 sm:px-6 lg:px-8 mx-auto`,children:[(0,m.jsx)(`div`,{className:`bg-[#ff9a01] w-1/4 h-[3px] mx-auto`}),e?(0,m.jsxs)(`p`,{className:`text-slate-800 text-center text-3xl font-bold my-12`,children:[`Live `,e.name,` Auctions`]}):(0,m.jsx)(`p`,{className:`text-slate-800 text-center text-3xl font-bold my-12`,children:`Live Auctions`}),t.length===0&&(0,m.jsx)(`p`,{className:`text-center text-lg`,children:`There are currently no active auctions. Please check back later, or sign up for an account to be notified when auctions go live.`}),(0,m.jsx)(`div`,{className:`grid grid-cols-1 gap-x-4 gap-y-10 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 xl:gap-x-6`,children:t.map(e=>(0,m.jsx)(o,{auction:e},e.id))})]}),n.length>0&&(0,m.jsxs)(`div`,{className:`pt-12 px-4 sm:px-6 lg:px-8 mx-auto`,children:[(0,m.jsx)(`div`,{className:`bg-[#ff9a01] w-1/4 h-[3px] mx-auto`}),(0,m.jsxs)(`p`,{className:`text-slate-800 text-center text-3xl font-bold my-12`,children:[`Featured Unclaimed Vehicle Lots`,e&&(0,m.jsxs)(`span`,{children:[` in `,e.name]})]}),(0,m.jsx)(h,{threshold:4,lots:n,renderLot:t=>(0,m.jsx)(a,{lot:t,auction:t.auction,state:e?.code,userIsWatching:r.includes(t.id),userIsWatchingNotes:c[t.id],registered:t.auction.registered},t.id)})]}),(0,m.jsx)(_,{})]})};export{v as default};

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.