import{jsxs as a,jsx as t}from"react/jsx-runtime";import{A as x}from"./app-logo-CAnM-q9p.js";import{B as u}from"./ui-components-B24mpb8o.js";import{usePage as g,Link as o}from"@inertiajs/react";import{DynamicIcon as y}from"lucide-react/dynamic";const A=()=>{const{props:n}=g(),{footer:p,system:f}=n,l=p.footer_items.sort((e,s)=>e.sort-s.sort),h=l.filter(e=>e.type==="list"&&e.active),m=l.find(e=>e.type==="copyright"&&e.active),i=l.find(e=>e.type==="social_media"&&e.active),r=l.find(e=>e.type==="payment_methods"&&e.active);return a("div",{className:"overflow-hidden bg-[rgba(255,222,99,0.06)]",children:[a("div",{className:"container space-y-9 pt-[60px] pb-5",children:[a("div",{className:"flex flex-col items-start justify-between gap-10 md:flex-row",children:[a("div",{className:"w-full space-y-5 md:max-w-[300px]",children:[t("div",{children:t(o,{href:"/",children:t(x,{className:"h-7"})})}),t("p",{className:"text-muted-foreground text-sm",children:f.fields.description}),i&&t("div",{className:"flex flex-wrap gap-3",children:i.items&&Array.isArray(i.items)&&i.items.map((e,s)=>t(u,{size:"icon",variant:"ghost",className:"bg-muted hover:bg-primary hover:text-primary-foreground text-muted-foreground rounded-full transition-colors",asChild:!0,children:a("a",{href:e.url,target:"_blank",children:[t(y,{name:e.icon,className:"h-5 w-5"}),t("span",{className:"sr-only",children:e.title})]})},s))})]}),t("div",{className:"flex w-full flex-col justify-between gap-10 md:max-w-[640px] md:flex-row",children:h.map(e=>{var s;return a("div",{className:"relative w-full",children:[t("p",{className:"mb-3 text-lg font-semibold",children:e.title}),t("ul",{className:"text-muted-foreground flex flex-col gap-2 text-sm",children:(s=e.items)==null?void 0:s.map((c,d)=>e.slug==="address"?t("li",{children:c.title},`item-${d}`):t("li",{children:t(o,{href:c.url,children:c.title})},`item-${d}`))})]},e.id)})})]}),r&&a("div",{className:"space-y-3",children:[t("h3",{className:"text-base font-medium",children:r.title}),t("div",{className:"flex flex-wrap gap-3",children:r.items&&Array.isArray(r.items)&&r.items.map((e,s)=>t("div",{className:"flex h-7 items-center justify-center gap-5 md:justify-start",children:e.image&&t("img",{src:e.image,alt:`Payment method ${s+1}`,className:"h-full w-auto object-contain"})},s))})]})]}),m&&t("div",{className:"px-6 py-8 text-center",children:t("p",{className:"text-muted-foreground text-sm",children:m.title})})]})};export{A as I};
