(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,70065,e=>{"use strict";var r=e.i(43476),t=e.i(47163);e.s(["Card",0,function({className:e,...a}){return(0,r.jsx)("div",{"data-slot":"card",className:(0,t.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...a})},"CardContent",0,function({className:e,...a}){return(0,r.jsx)("div",{"data-slot":"card-content",className:(0,t.cn)("px-6",e),...a})},"CardDescription",0,function({className:e,...a}){return(0,r.jsx)("div",{"data-slot":"card-description",className:(0,t.cn)("text-muted-foreground text-sm",e),...a})},"CardFooter",0,function({className:e,...a}){return(0,r.jsx)("div",{"data-slot":"card-footer",className:(0,t.cn)("flex items-center px-6 [.border-t]:pt-6",e),...a})},"CardHeader",0,function({className:e,...a}){return(0,r.jsx)("div",{"data-slot":"card-header",className:(0,t.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...a})},"CardTitle",0,function({className:e,...a}){return(0,r.jsx)("div",{"data-slot":"card-title",className:(0,t.cn)("leading-none font-semibold",e),...a})}])},72520,e=>{"use strict";let r=(0,e.i(75254).default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);e.s(["ArrowRight",0,r],72520)},18358,e=>{"use strict";var r=e.i(43476),t=e.i(22016),a=e.i(57688),i=e.i(70065),s=e.i(91918),n=e.i(25913),o=e.i(47163);let d=(0,n.cva)("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function c({className:e,variant:t,asChild:a=!1,...i}){let n=a?s.Slot:"span";return(0,r.jsx)(n,{"data-slot":"badge",className:(0,o.cn)(d({variant:t}),e),...i})}var l=e.i(67881),u=e.i(72520),f=e.i(61745),m=e.i(48148);e.s(["PublicInitiativeCard",0,function({initiative:e}){let s=(0,f.useLocale)(),n=(0,m.useTranslations)("initiative"),o="ar"===s&&e.title_ar||e.title,d="ar"===s&&e.description_ar||e.description,v="ar"===s?e.category_name_ar||e.category:e.category_name_en||e.category;return(0,r.jsxs)(i.Card,{className:"flex flex-col h-full hover:border-primary/30 transition-colors group overflow-hidden",children:[(0,r.jsx)("div",{className:"relative w-full h-48 overflow-hidden bg-muted/20 p-2",children:(0,r.jsx)(a.default,{src:e.image_url||"/images/placeholder.png",alt:o,fill:!0,className:"object-contain group-hover:scale-105 transition-transform duration-300"})}),(0,r.jsx)(i.CardHeader,{className:"pb-3",children:(0,r.jsx)("div",{className:"flex items-start justify-between gap-2",children:(0,r.jsxs)("div",{className:"flex-1",children:[(0,r.jsx)("h3",{className:"font-semibold text-lg line-clamp-2 group-hover:text-primary transition-colors",children:o}),(0,r.jsx)(c,{variant:"secondary",className:"mt-2 font-normal",children:v})]})})}),(0,r.jsx)(i.CardContent,{className:"flex-1 space-y-4",children:(0,r.jsx)("p",{className:"text-sm text-muted-foreground line-clamp-3",children:d})}),(0,r.jsx)(i.CardFooter,{className:"pt-0",children:(0,r.jsx)(t.default,{href:`/join-initiative?id=${e.id}`,className:"w-full",children:(0,r.jsxs)(l.Button,{className:"w-full",children:[n("requestPartnership"),(0,r.jsx)(u.ArrowRight,{className:"h-4 w-4 ms-2"})]})})})]})}],18358)}]);