1import{g as f,r as j,j as s,L as n}from"./index-DB1uCt0m.js";import{i as w}from"./index-browser-Bos9HI3o.js";import{V as C,k as x,S as N,F as p,a0 as c,q as v,a1 as y,a2 as b}from"./index-CIpd-Oln.js";import{l as a}from"./index-DA-AluzB.js";import{C as d}from"./CampaignLink-C4-3Jg8G.js";import{P as E,C as L}from"./CampaignSupporterStats-WY9q7HvB.js";import{I as S}from"./Image-CknkgVNa.js";import{u as I}from"./useImagePreview-1WeXXfcO.js";import{b as P,g as F}from"./campaign-My0qi9Jr.js";import{u as k}from"./i18n-6A1OzcEv.js";import{u as z}from"./useTranslation-D9fYHQVN.js";import{h as A}from"./head-aneRfQQJ.js";function H({campaign:e,support:o,...i}){const{t:u}=z("campaign"),{localize:t}=P(e),[m]=f(),l=k(),g=j.useMemo(()=>A(e.mediaFiles.filter(r=>r.type===w.MediaType.COVER_IMAGE)),[e.mediaFiles]),h=I(g?.file);return s.jsxs(C,{className:x("max-w-[421px] !border-0 hover:drop-shadow-lg overflow-hidden",i.className),children:[s.jsxs(N,{className:"flex-1",children:[s.jsxs(p,{className:"flex-wrap gap-1",wrap:!1,children:[e.category&&s.jsx(c,{children:s.jsx(n,{to:`campaigns?${a.stringify({...a.parse(m.toString()),filter:e.category.id})}`,children:e.category.name&&t(e.category.name,l)})}),e.subcategories?.map(r=>s.jsx(c,{children:s.jsx(n,{to:`/campaigns?${a.stringify({...a.parse(m.toString()),filter:r.id})}`,children:t(r.name,l)})},r.id))]}),s.jsxs(p,{className:"my-2 items-center justify-start !gap-1",wrap:!1,children:[s.jsx(v,{variant:"xs",children:u("campaign.user.supported.author")}),s.jsx("span",{className:"text-xs",children:F(e.author)})]}),s.jsx(y,{className:"max-w-[348px] flex-1 basis-auto text-wrap hover:underline",children:s.jsx(d,{slug:e.slug,children:t(e.title)})})]}),s.jsxs(b,{className:"!grow-0",children:[s.jsx(d,{slug:e.slug,children:s.jsx(S,{className:"mb-2 h-[200px] w-full object-cover sm:h-[280px] sm:w-[373px] md:w-[348px]",containerClassName:x("mb-2 h-[200px] sm:h-[280px] w-full sm:w-[373px] md:w-[348px]",i.imageWidth),preview:h})}),s.jsx(E,{goals:e.goals,supportAmount:o.amount}),s.jsx(L,{campaign:e,support:o})]})]})}export{H as C};
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.