import{u as x,j as e,L as i,D as p}from"./vendor-BKmmeuxg.js";import{A as f}from"./app-logo-CmnEIwal.js";import{B as h}from"./button-BpNwv2aE.js";import"./utils-DxSsnXxD.js";import"./index-WW_1X1qx.js";const N=()=>{const{footer:o,system:c}=x().props,a=o.footer_items.sort((s,t)=>s.sort-t.sort),n=a.filter(s=>s.type==="list"&&s.active),d=a.find(s=>s.type==="copyright"&&s.active),r=a.find(s=>s.type==="social_media"&&s.active);return e.jsxs("div",{className:"text-primary-foreground dark:text-primary bg-primary dark:bg-primary-dark relative pt-20",children:[e.jsx("div",{className:"container space-y-9 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(i,{href:"/",children:e.jsx(f,{className:"h-7",theme:"light"})})}),e.jsx("p",{className:"text-muted dark:text-muted-foreground text-sm",children:c.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(h,{size:"icon",variant:"ghost",className:"bg-muted hover:bg-primary hover:text-primary-foreground text-primary rounded-full transition-colors",asChild:!0,children:e.jsxs(i,{href:s.url,target:"_blank",rel:"noopener noreferrer",children:[e.jsx(p,{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:n.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 dark:text-muted-foreground flex flex-col gap-2 text-sm",children:(t=s.items)==null?void 0:t.map((l,m)=>s.slug==="address"?e.jsx("li",{children:l.title},`item-${m}`):e.jsx("li",{children:e.jsx(i,{href:l.url,children:l.title})},`item-${m}`))})]},s.id)})})]})}),d&&e.jsx("div",{className:"px-6 py-8 text-center",children:e.jsx("p",{className:"text-muted dark:text-muted-foreground text-sm",children:d.title})})]})};export{N as default};