PageSourceSearch

https://cararth.com/assets/index-DOQMdP5M.js

js cararth.com collected 2026-10-07 17:44:31 UTC 3,794 bytes, 1 lines download raw bytes

1import{u as n,j as s}from"./index-DR2FqLOh.js";import{u as d,L as t}from"./vendor-react-BQzD2VmY.js";import{H as r}from"./vendor-utils-Ce5p5qV0.js";import"./vendor-realtime-qXw27f4H.js";function m(a){if(!a)return"Price on Request";const e=a/1e5;return e>=100?"₹"+(e/100).toFixed(2)+" Cr":"₹"+e.toFixed(2)+" Lakh"}function u(){const{wishlisted:a,removeFromWishlist:e,clearWishlist:c,count:l}=n();return d(),l===0?s.jsxs("main",{className:"max-w-7xl mx-auto px-4 md:px-8 py-12",children:[s.jsxs(r,{children:[s.jsx("title",{children:"Your Wishlist is Empty | CarArth"}),s.jsx("meta",{name:"description",content:"Your CarArth wishlist is currently empty. Browse our verified listings to find your next car."})]}),s.jsxs("div",{className:"wishlist-empty",children:[s.jsx("div",{className:"wishlist-empty-icon",children:s.jsx("span",{className:"material-symbols-outlined",children:"favorite"})}),s.jsx("h1",{className:"wishlist-empty-title",children:"Your Wishlist is Empty"}),s.jsx("p",{className:"wishlist-empty-text",children:"Start adding cars to your wishlist by clicking the heart icon on car listings."}),s.jsx(t,{to:"/used-cars",className:"wishlist-empty-btn",children:"Browse Used Cars"})]})]}):s.jsxs("main",{className:"max-w-7xl mx-auto px-4 md:px-8 py-6",children:[s.jsxs(r,{children:[s.jsx("title",{children:"Your Shortlisted Cars | CarArth Saved Listings"}),s.jsx("meta",{name:"description",content:"Access your saved used car listings. Track price changes and compare your favorite verified cars in one place."})]}),s.jsxs("nav",{className:"wishlist-breadcrumb",children:[s.jsx(t,{to:"/",children:"Home"}),s.jsx("span",{className:"material-symbols-outlined text-xs",children:"chevron_right"}),s.jsx("span",{className:"current",children:"Wishlist"})]}),s.jsxs("div",{className:"wishlist-header",children:[s.jsxs("div",{children:[s.jsxs("h1",{className:"wishlist-title",children:[s.jsx("span",{className:"material-symbols-outlined",children:"favorite"}),"My Wishlist"]}),s.jsxs("p",{className:"wishlist-subtitle",children:[l," car",l!==1?"s":""," saved"]})]}),s.jsxs("button",{onClick:c,className:"wishlist-clear-btn",children:[s.jsx("span",{className:"material-symbols-outlined",children:"delete"}),"Clear All"]})]}),s.jsx("div",{className:"wishlist-grid",children:a.map(i=>s.jsxs("div",{className:"wishlist-card",children:[s.jsx("div",{className:"wishlist-card-image",children:s.jsx("img",{src:i.primary_image||"https://images.unsplash.com/photo-1552519507-da3b142c6e3d?w=400",alt:i.title})}),s.jsxs("div",{className:"wishlist-card-content",children:[s.jsxs("div",{className:"wishlist-card-header",children:[s.jsx("h3",{className:"wishlist-card-title",children:i.title}),s.jsx("button",{className:"wishlist-card-remove",onClick:()=>e(i.id),title:"Remove from wishlist",children:s.jsx("span",{className:"material-symbols-outlined",children:"close"})})]}),s.jsxs("div",{className:"wishlist-card-specs",children:[i.manufacturing_year&&s.jsxs("span",{className:"wishlist-card-spec",children:[s.jsx("span",{className:"material-symbols-outlined text-sm",children:"calendar_today"}),i.manufacturing_year]}),i.fuel_type&&s.jsxs("span",{className:"wishlist-card-spec",children:[s.jsx("span",{className:"material-symbols-outlined text-sm",children:"local_gas_station"}),i.fuel_type]})]}),s.jsxs("p",{className:"wishlist-card-location",children:[s.jsx("span",{className:"material-symbols-outlined text-xs",children:"location_on"}),i.city||"India"]}),s.jsxs("div",{className:"wishlist-card-footer",children:[s.jsx("p",{className:"wishlist-card-price",children:m(i.price)}),s.jsxs(t,{to:`/car/${i.id}`,className:"wishlist-card-view-btn",children:["View Details",s.jsx("span",{className:"material-symbols-outlined text-sm",children:"arrow_forward"})]})]})]})]},i.id))})]})}export{u 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.