import{l as c}from"./app-xu-GtFEU.js";import{_ as n}from"./LayoutGuest-bML4mBNw.js";import{C as o,z as u,B as d,n as e,A as m,u as _,D as x,l as r,H as h,I as f,x as a,t as l}from"./Button-C102TjBP.js";import"./ThemeToggler-BrYbuRqG.js";const g={class:"space-y-6"},p={class:"flex items-center justify-between"},b={class:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3"},k={key:0,class:"aspect-video w-full bg-zinc-100 dark:bg-zinc-700"},z=["src","alt"],y={class:"p-4"},v={class:"font-semibold text-zinc-900 dark:text-white"},w={class:"mt-1 text-sm text-zinc-600 dark:text-zinc-400"},B=["href"],V={key:0,class:"text-zinc-500"},D=Object.assign({layout:n},{__name:"Index",props:{produtos:{type:Array,default:()=>[]}},setup(i){return(N,s)=>(o(),u(n,null,{default:d(()=>[e("div",g,[e("div",p,[s[1]||(s[1]=e("h1",{class:"text-2xl font-bold text-zinc-900 dark:text-white"},"Área de Membros",-1)),m(_(c),{href:"/logout",method:"post",as:"button",class:"text-sm text-zinc-600 hover:underline dark:text-zinc-400"},{default:d(()=>[...s[0]||(s[0]=[x("Sair",-1)])]),_:1})]),s[2]||(s[2]=e("p",{class:"text-zinc-600 dark:text-zinc-400"},"Seus produtos e cursos.",-1)),e("div",b,[(o(!0),r(h,null,f(i.produtos,t=>(o(),r("div",{key:t.id,class:"rounded-xl border border-zinc-200 dark:border-zinc-800 bg-white dark:bg-zinc-800/50 overflow-hidden transition hover:shadow-lg"},[t.image_url?(o(),r("div",k,[e("img",{src:t.image_url,alt:t.name,class:"h-full w-full object-cover"},null,8,z)])):a("",!0),e("div",y,[e("h2",v,l(t.name),1),e("p",w,l(t.type),1),t.member_area_url?(o(),r("a",{key:0,href:t.member_area_url,class:"mt-3 inline-block rounded-lg bg-[var(--color-primary)] px-4 py-2 text-sm font-medium text-white transition hover:opacity-90"}," Acessar área de membros → ",8,B)):a("",!0)])]))),128))]),i.produtos.length?a("",!0):(o(),r("p",V,"Você ainda não tem acesso a nenhum produto."))])]),_:1}))}});export{D as default};
