import{l as h}from"./app-BR4co3z8.js";import{_ as f}from"./MemberAreaAppLayout-BxW5ZzTy.js";import{M as d,g as a}from"./communityPageIcons-aD_tlz4i.js";import{C as t,l as s,n as r,A as u,u as o,D as y,H as n,I as g,z as l,B as _,Y as x,t as c,x as b}from"./Button-C102TjBP.js";import"./PwaInstallPrompt-8KzxD8Wq.js";import"./usePwaInstall-shptWyD0.js";import"./smartphone-CkQmwfEJ.js";import"./x-BbEgqhmY.js";import"./check-B1gbRPfI.js";import"./external-link-CqmoFOt1.js";import"./menu-CGNh-s2C.js";import"./trophy-CrlpL_J7.js";import"./circle-check-big-CF0PZCmO.js";import"./chevron-down-CoIH4uPt.js";import"./user-Cb0gaC1k.js";import"./lock-Dw-lWg4m.js";import"./circle-alert-CuTXqZ5k.js";import"./lightbulb-Avf8oWsA.js";import"./video-CY4GkVnm.js";import"./image-eH09Yjhs.js";import"./users-uDY-Zmjf.js";import"./search-DPtAuY3S.js";import"./send-Ca-LGUAy.js";import"./share-2-DGEuTUIp.js";import"./zap-B30GaWeF.js";import"./book-open-B-0k6fey.js";import"./star-dfkjpa8-.js";import"./trash-2-C5tRIjZL.js";import"./mail-D9laURNd.js";import"./file-text-CfSFpipc.js";import"./circle-question-mark-D0WKLjYV.js";const v={class:"flex flex-col gap-6 lg:flex-row lg:gap-8"},k={class:"w-full shrink-0 rounded-2xl border border-zinc-700 bg-zinc-800/50 shadow-lg lg:w-72"},w={class:"border-b border-zinc-700 p-4"},z={class:"flex items-center gap-2 text-sm font-semibold uppercase tracking-wide text-zinc-400"},j={class:"p-2"},C={key:1,class:"text-xl leading-none"},$=["src","alt"],B={key:2,class:"flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-[var(--ma-primary)]/20"},N={class:"truncate"},V={class:"min-w-0 flex-1 space-y-8"},q={class:"grid gap-4 sm:grid-cols-2"},D={key:0,class:"aspect-[2/1] w-full bg-zinc-700"},O=["src","alt"],P={class:"flex items-center gap-4 p-4"},S={key:0,class:"flex h-12 w-12 shrink-0 items-center justify-center rounded-xl bg-[var(--ma-primary)]/20"},A={key:1,class:"flex h-12 w-12 shrink-0 items-center justify-center rounded-xl bg-[var(--ma-primary)]/20 text-2xl"},E=["src","alt"],I={key:2,class:"flex h-12 w-12 shrink-0 items-center justify-center rounded-xl bg-[var(--ma-primary)]/20"},M={class:"font-semibold text-zinc-200 group-hover:text-white"},ye=Object.assign({layout:f},{__name:"Comunidade",props:{product:{type:Object,required:!0},config:{type:Object,default:()=>({})},pages:{type:Array,default:()=>[]},slug:{type:String,required:!0}},setup(m){const p=`/m/${m.slug}/comunidade`;return(H,i)=>(t(),s("div",v,[r("aside",k,[r("div",w,[r("h2",z,[u(o(d),{class:"h-4 w-4"}),i[0]||(i[0]=y(" Páginas ",-1))])]),r("nav",j,[(t(!0),s(n,null,g(m.pages,e=>(t(),l(o(h),{key:e.id,href:`${p}/${e.slug}`,class:"flex items-center gap-3 rounded-xl px-3 py-2.5 text-sm font-medium text-zinc-300 transition hover:bg-zinc-700/50 hover:text-white"},{default:_(()=>[e.icon?(t(),s(n,{key:0},[o(a)(e.icon)?(t(),l(x(o(a)(e.icon)),{key:0,class:"h-5 w-5 shrink-0 text-[var(--ma-primary)]"})):(t(),s("span",C,c(e.icon),1))],64)):e.banner_url?(t(),s("img",{key:1,src:e.banner_url,alt:e.title,class:"h-8 w-10 shrink-0 rounded-lg object-cover"},null,8,$)):(t(),s("span",B,[u(o(d),{class:"h-4 w-4 text-[var(--ma-primary)]"})])),r("span",N,c(e.title),1)]),_:2},1032,["href"]))),128))])]),r("main",V,[i[1]||(i[1]=r("div",null,[r("h1",{class:"text-3xl font-bold text-white"},"Comunidade"),r("p",{class:"mt-2 text-zinc-400"},"Escolha uma página ao lado ou acesse diretamente:")],-1)),r("div",q,[(t(!0),s(n,null,g(m.pages,e=>(t(),l(o(h),{key:e.id,href:`${p}/${e.slug}`,class:"group relative overflow-hidden rounded-2xl border border-zinc-700 bg-zinc-800/50 shadow-lg transition hover:border-[var(--ma-primary)]/40 hover:shadow-xl"},{default:_(()=>[e.banner_url?(t(),s("div",D,[r("img",{src:e.banner_url,alt:e.title,class:"h-full w-full object-cover transition group-hover:scale-[1.02]"},null,8,O)])):b("",!0),r("div",P,[e.icon?(t(),s(n,{key:0},[o(a)(e.icon)?(t(),s("span",S,[(t(),l(x(o(a)(e.icon)),{class:"h-6 w-6 text-[var(--ma-primary)]"}))])):(t(),s("span",A,c(e.icon),1))],64)):e.banner_url?(t(),s("img",{key:1,src:e.banner_url,alt:e.title,class:"h-12 w-12 shrink-0 rounded-xl object-cover"},null,8,E)):(t(),s("div",I,[u(o(d),{class:"h-6 w-6 text-[var(--ma-primary)]"})])),r("span",M,c(e.title),1)])]),_:2},1032,["href"]))),128))])])]))}});export{ye as default};
