import{u as f,j as e,L as m,D as h}from"./vendor-BKmmeuxg.js";import{A as j}from"./app-logo-CmnEIwal.js";import{B as u}from"./button-BpNwv2aE.js";const N=()=>{const{props:n}=f(),{footer:o,system:x}=n,l=o.footer_items.sort((s,t)=>s.sort-t.sort),p=l.filter(s=>s.type==="list"&&s.active),c=l.find(s=>s.type==="copyright"&&s.active),r=l.find(s=>s.type==="social_media"&&s.active),a=l.find(s=>s.type==="payment_methods"&&s.active);return e.jsxs("div",{className:"overflow-hidden bg-[rgba(255,222,99,0.06)]",children:[e.jsxs("div",{className:"container space-y-9 pt-[60px] pb-5",children:[e.jsxs("div",{className:"flex flex-col items-start justify-between gap-10 md:flex-row",children:[e.jsxs("div",{className:"w-full space-y-5 md:max-w-[300px]",children:[e.jsx("div",{children:e.jsx(m,{href:"/",children:e.jsx(j,{className:"h-7"})})}),e.jsx("p",{className:"text-muted-foreground text-sm",children:x.fields.description}),r&&e.jsx("div",{className:"flex flex-wrap gap-3",children:r.items&&Array.isArray(r.items)&&r.items.map((s,t)=>e.jsx(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:e.jsxs("a",{href:s.url,target:"_blank",children:[e.jsx(h,{name:s.icon,className:"h-5 w-5"}),e.jsx("span",{className:"sr-only",children:s.title})]})},t))})]}),e.jsx("div",{className:"flex w-full flex-col justify-between gap-10 md:max-w-[640px] md:flex-row",children:p.map(s=>{var t;return e.jsxs("div",{className:"relative w-full",children:[e.jsx("p",{className:"mb-3 text-lg font-semibold",children:s.title}),e.jsx("ul",{className:"text-muted-foreground flex flex-col gap-2 text-sm",children:(t=s.items)==null?void 0:t.map((i,d)=>s.slug==="address"?e.jsx("li",{children:i.title},`item-${d}`):e.jsx("li",{children:e.jsx(m,{href:i.url,children:i.title})},`item-${d}`))})]},s.id)})})]}),a&&e.jsxs("div",{className:"space-y-3",children:[e.jsx("h3",{className:"text-base font-medium",children:a.title}),e.jsx("div",{className:"flex flex-wrap gap-3",children:a.items&&Array.isArray(a.items)&&a.items.map((s,t)=>e.jsx("div",{className:"flex h-7 items-center justify-center gap-5 md:justify-start",children:s.image&&e.jsx("img",{src:s.image,alt:`Payment method ${t+1}`,className:"h-full w-auto object-contain"})},t))})]})]}),c&&e.jsx("div",{className:"px-6 py-8 text-center",children:e.jsx("p",{className:"text-muted-foreground text-sm",children:c.title})})]})};export{N as I};