PageSourceSearch

https://iconaapp.com/assets/deals-trending-Ce83yaLM.js

js iconaapp.com collected 2026-10-06 15:24:17 UTC 2,124 bytes, 1 lines download raw bytes

1import{ai as n,r as d,F as c,d as o,j as e,L as a,B as i,K as m,g as x}from"./index-WHULU0jW.js";import{P as u}from"./product-card-BPJC3hG8.js";import{A as p}from"./arrow-left-mtxmp75y.js";import"./card-BlH5Drk3.js";import"./badge-eSQGmkpG.js";import"./use-currency-DCGG8bRS.js";import"./package-CSaJanVh.js";function b(){n("Trending Products"),d.useEffect(()=>{c.invalidateQueries({queryKey:["/api/products","all","trending"]})},[]);const{data:r,isLoading:l}=o({queryKey:["/api/products","all","trending"],queryFn:async()=>{const s=new URLSearchParams({saletype:"buy_now",status:"active",limit:"100",sortBy:"views"});return(await x(`/api/products?${s.toString()}`)).json()}}),t=(r==null?void 0:r.products)||[];return e.jsx("div",{className:"flex flex-col min-h-screen bg-background","data-testid":"page-deals-trending",children:e.jsx("main",{className:"flex-1 overflow-y-auto",children:e.jsx("div",{className:"flex justify-center w-full",children:e.jsxs("div",{className:"w-full lg:w-[90%] px-4 md:px-6 lg:px-8 py-6",children:[e.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[e.jsx(a,{href:"/deals",children:e.jsx(i,{variant:"ghost",size:"icon","data-testid":"button-back",children:e.jsx(p,{className:"h-5 w-5"})})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl md:text-3xl font-bold text-foreground",children:"Trending Products"}),e.jsxs("p",{className:"text-sm text-muted-foreground mt-1",children:[t.length," ",t.length===1?"product":"products"," available"]})]})]}),l?e.jsx("div",{className:"flex items-center justify-center h-64",children:e.jsx(m,{className:"h-8 w-8 animate-spin text-muted-foreground"})}):t.length===0?e.jsxs("div",{className:"flex flex-col items-center justify-center h-64",children:[e.jsx("p",{className:"text-muted-foreground mb-4",children:"No trending products available"}),e.jsx(a,{href:"/deals",children:e.jsx(i,{variant:"outline",children:"Back to Deals"})})]}):e.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 2xl:grid-cols-6 gap-4 md:gap-6",children:t.map(s=>e.jsx(u,{product:s},s._id||s.id))})]})})})})}export{b 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.