1import{j as e,N as T,X as b,al as w,aW as F}from"./vendor-D3v4axMk.js";import{B as c}from"./Badge-Blw4Zp62.js";import{P as C}from"./index-DQZ93539.js";const L="_card_51epf_1",$="_imageContainer_51epf_20",D="_image_51epf_20",I="_cardFlagged_51epf_39",z="_topLeftBadges_51epf_43",G="_blurBadge_51epf_53",H="_placeholderImage_51epf_62",P="_categoryBadge_51epf_68",M="_content_51epf_77",R="_header_51epf_85",k="_title_51epf_91",U="_price_51epf_102",A="_footer_51epf_108",E="_metaGroup_51epf_118",J="_meta_51epf_118",W="_metaText_51epf_133",X="_hashtags_51epf_140",q="_hashtagBadge_51epf_147",K="_moreHashtags_51epf_154",a={card:L,imageContainer:$,image:D,cardFlagged:I,topLeftBadges:z,blurBadge:G,placeholderImage:H,categoryBadge:P,content:M,header:R,title:k,price:U,footer:A,metaGroup:E,meta:J,metaText:W,hashtags:X,hashtagBadge:q,moreHashtags:K},Y=({id:f,title:o,price:x,imageUrl:l,category:i,locationName:t,createdAt:m,hashtags:r,className:u,moderationStatus:j,scamScore:d,isBoosted:B,isPremiumSeller:N,distanceMiles:n})=>{const g=j==="flagged"||d!=null&&d>=40,v=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(Number(x)),y=s=>{if(!s)return"";const _=new Intl.RelativeTimeFormat("en",{numeric:"auto"}),h=Math.round((new Date(s).getTime()-new Date().getTime())/(1e3*60*60*24));if(Math.abs(h)<1){const p=Math.round((new Date(s).getTime()-new Date().getTime())/36e5);return Math.abs(p)<1?"Just now":_.format(p,"hour")}return _.format(h,"day")};return e.jsxs(T,{to:`/listing/${f}`,className:`${a.card} ${g?a.cardFlagged:""} ${u||""}`,children:[e.jsxs("div",{className:a.imageContainer,children:[e.jsxs("div",{className:a.topLeftBadges,children:[g&&e.jsxs(c,{className:a.blurBadge,variant:"warning",children:[e.jsx(b,{size:14}),"Flagged"]}),B&&e.jsx(c,{className:a.blurBadge,variant:"primary",children:"⡠Boosted"})]}),l?e.jsx("img",{src:l,alt:o,className:a.image}):e.jsx("div",{className:a.placeholderImage}),e.jsx(c,{className:a.categoryBadge,variant:"secondary",children:i.charAt(0).toUpperCase()+i.slice(1)})]}),e.jsxs("div",{className:a.content,children:[e.jsxs("div",{className:a.header,children:[e.jsx("h3",{className:a.title,title:o,children:o}),e.jsx("span",{className:a.price,children:v})]}),e.jsxs("div",{className:a.footer,children:[e.jsxs("div",{className:a.metaGroup,children:[(t||n!=null)&&e.jsxs("span",{className:a.meta,title:t||void 0,children:[e.jsx(w,{size:14}),e.jsx("span",{className:a.metaText,children:n!=null?`${n<1?"<1":Math.round(n)} mi away${t?` · ${t}`:""}`:t})]}),m&&e.jsxs("span",{className:a.meta,children:[e.jsx(F,{size:14}),e.jsx("span",{className:a.metaText,children:y(m)})]})]}),N&&e.jsx(C,{size:"sm"})]}),r&&r.length>0&&e.jsxs("div",{className:a.hashtags,children:[r.slice(0,3).map(s=>e.jsxs(c,{variant:"outline",className:a.hashtagBadge,children:["#",s]},s)),r.length>3&&e.jsxs("span",{className:a.moreHashtags,children:["+",r.length-3]})]})]})]})};export{Y as L};
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.