PageSourceSearch

https://pasal-eta.vercel.app/assets/Home-DJkcbgA5.js

js pasal-eta.vercel.app collected 2026-10-03 07:27:53 UTC 752 bytes, 1 lines download raw bytes

1import{d as n,e as i,V as r,j as e,L as h,S as m,f as u}from"./index-Cmj0zqlN.js";import{P as p}from"./ProductCard-Cg0BkwTr.js";const j=()=>{const{data:o,isLoading:t,isError:a}=n(""),d=i(),c=s=>{if(s.stock<1)return r.error("Out of Stock");d(u(s)),r.success("Added to cart")};return a&&r.error("Cannot Fetch the Products"),e.jsxs("div",{className:"home",children:[e.jsx("section",{}),e.jsxs("h1",{children:[e.jsx("span",{className:"latestHeading",children:"Recommended Products"}),e.jsx(h,{to:"/search",className:"findmore",children:"More"})]}),e.jsx("main",{children:t?e.jsx(m,{width:"80vw"}):o==null?void 0:o.products.map(s=>e.jsx(p,{productId:s._id,name:s.name,price:s.price,stock:s.stock,handler:c,photo:s.photo},s._id))})]})};export{j 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.