PageSourceSearch

https://findersateshop.macaly-app.com/assets/product-card-bBU9BNZl.js

js findersateshop.macaly-app.com collected 2026-10-03 04:59:09 UTC 3,695 bytes, 1 lines download raw bytes

1import{w,x as h,h as l,s as N,z as y,o as t,L as o,H as f,u as k,l as g,B as C,g as P}from"./index-DlQDt9gK.js";function z({product:e,canSeePrices:a,compact:b=!1}){const{lang:i,t:s}=w(),v=h(l.cart.addToCart),p=h(l.favorites.toggleFavorite),{isAuthenticated:n}=N(),r=!!y(l.favorites.myFavoriteIds,n?{}:"skip")?.includes(e._id),d=i==="el"?e.nameGr:e.nameEn,c=e.images?.[0],m=a&&typeof e.price=="number"&&!e.priceOnRequest,j=a&&e.priceOnRequest,x=!a,u=m&&e.listPrice&&e.listPrice>(e.price??0)?Math.round((1-(e.price??0)/e.listPrice)*100):0;return t.jsxs("div",{className:"group relative flex flex-col overflow-hidden rounded-lg border border-border bg-card transition-all hover:border-brand/30 hover:shadow-md",children:[t.jsxs(o,{to:"/product/$slug",params:{slug:e.slug},className:"block relative aspect-square overflow-hidden bg-paper-2",children:[c?t.jsx("img",{src:c,alt:d,loading:"lazy",className:"object-contain transition-transform duration-300 group-hover:scale-110 bg-[#ffffff] p-3 w-full h-full"}):t.jsx("div",{className:"flex h-full w-full items-center justify-center text-muted-foreground/40",children:t.jsxs("svg",{viewBox:"0 0 24 24",className:"h-10 w-10",fill:"none",stroke:"currentColor",strokeWidth:"1.5","aria-hidden":!0,children:[t.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),t.jsx("path",{d:"m9 12 2 2 4-4"})]})}),u>0&&t.jsxs("span",{className:`absolute right-2 ${n?"top-11":"top-2"} rounded-full bg-action px-2 py-0.5 fs-mono text-[0.62rem] font-bold tracking-wide text-brand shadow-sm`,children:["-",u,"%"]}),t.jsx("span",{className:"absolute left-2 top-2 rounded bg-brand/85 px-1.5 py-0.5 fs-mono text-[0.62rem] font-bold tracking-wide text-primary-foreground",children:e.code})]}),n?t.jsx("button",{type:"button",onClick:()=>p({productId:e._id}),"aria-label":s(r?"product.removeFavorite":"product.addFavorite"),"aria-pressed":r,className:`absolute right-2 top-2 z-10 inline-flex h-8 w-8 items-center justify-center rounded-full bg-card/90 shadow-sm backdrop-blur transition-colors hover:bg-card ${r?"text-destructive":"text-muted-foreground hover:text-destructive"}`,children:t.jsx(f,{className:`h-4 w-4 ${r?"fill-current":""}`})}):t.jsx(o,{to:"/login","aria-label":s("product.addFavorite"),className:"absolute right-2 top-2 z-10 inline-flex h-8 w-8 items-center justify-center rounded-full bg-card/90 text-muted-foreground shadow-sm backdrop-blur transition-colors hover:bg-card hover:text-destructive",children:t.jsx(f,{className:"h-4 w-4"})}),t.jsxs("div",{className:"flex flex-1 flex-col p-3",children:[t.jsx(o,{to:"/product/$slug",params:{slug:e.slug},className:"line-clamp-2 text-[0.83rem] font-medium leading-snug text-foreground hover:text-brand",children:d}),!b&&t.jsx("div",{className:"mt-1 text-xs text-muted-foreground",children:k(e.unit,s)}),t.jsxs("div",{className:"mt-auto pt-3",children:[m&&t.jsxs("div",{className:"flex items-baseline gap-2",children:[t.jsx("span",{className:"font-display text-lg font-bold text-action",children:g(e.price,i)}),e.listPrice&&e.listPrice!==e.price&&t.jsx("span",{className:"text-xs text-muted-foreground line-through",children:g(e.listPrice,i)})]}),j&&t.jsx("span",{className:"fs-mono inline-block text-xs font-semibold text-brand",children:s("price.onRequest")}),x&&t.jsx(o,{to:"/register",className:"fs-mono inline-block text-xs font-medium text-muted-foreground hover:text-brand",children:s("price.hidden")})]}),a&&!x&&t.jsxs(C,{size:"sm",variant:"outline",className:"mt-3 h-8 gap-1.5 border-brand/20 text-brand hover:bg-brand hover:text-primary-foreground",onClick:()=>v({productId:e._id,quantity:e.minQuantity??1}),children:[t.jsx(P,{className:"h-3.5 w-3.5"}),s("product.addToCart")]})]})]})}export{z as P};

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.