import{l as c}from"./app-C5ovez-u.js";import{_ as d}from"./MemberAreaAppLayout-NykD5RNI.js";import{C as t,l as s,n as r,I as m,J as p,t as a,x as u,z as _,B as l,D as n,u as f,A as g,_ as h}from"./Button-C4ZsXdIM.js";import"./PwaInstallPrompt-Bq0YPfcx.js";import"./usePwaInstall-CXPwd-uF.js";import"./smartphone-CkwbKqQl.js";import"./x-OwDgJ5ec.js";import"./check-ggb25uSC.js";import"./external-link-BPoRZnUn.js";import"./menu-CxnMEnr6.js";import"./trophy-D7o-aKVi.js";import"./circle-check-big-DEE3rR-Q.js";import"./chevron-down-B3udJbXB.js";import"./user-CNaq5jrZ.js";import"./lock-BCOceYlO.js";import"./circle-alert-DBDBBrs4.js";const k={class:"space-y-8"},y={class:"grid gap-6 sm:grid-cols-2 lg:grid-cols-3"},x={class:"aspect-video bg-zinc-700 flex items-center justify-center"},v=["src","alt"],b={key:1,class:"h-12 w-12 text-zinc-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},j={class:"p-4"},z={class:"font-semibold"},w={key:0,class:"mt-1 text-sm text-zinc-400 line-clamp-2"},B={class:"mt-4"},C=["href"],H=Object.assign({layout:d},{__name:"Loja",props:{product:{type:Object,required:!0},config:{type:Object,default:()=>({})},items:{type:Array,default:()=>[]},slug:{type:String,required:!0}},setup(i){return(L,o)=>(t(),s("div",k,[o[2]||(o[2]=r("h1",{class:"text-2xl font-bold"},"Loja",-1)),r("div",y,[(t(!0),s(m,null,p(i.items,e=>(t(),s("div",{key:e.id,class:"rounded-xl border border-zinc-700 bg-zinc-800/50 overflow-hidden"},[r("div",x,[e.image_url?(t(),s("img",{key:0,src:e.image_url,alt:e.name,class:"h-full w-full object-cover"},null,8,v)):(t(),s("svg",b,[...o[0]||(o[0]=[r("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14"},null,-1)])]))]),r("div",j,[r("h2",z,a(e.name),1),e.description?(t(),s("p",w,a(e.description),1)):u("",!0),r("div",B,[e.has_access?(t(),_(f(c),{key:0,href:`/m/${i.slug}`,class:"text-sm text-[var(--ma-primary)] hover:underline"},{default:l(()=>[...o[1]||(o[1]=[n("Acessar área",-1)])]),_:1},8,["href"])):(t(),s("a",{key:1,href:`/c/${e.checkout_slug}`,target:"_blank",rel:"noopener"},[g(h,{size:"sm"},{default:l(()=>[n("Comprar · R$ "+a(e.price),1)]),_:2},1024)],8,C))])])]))),128))])]))}});export{H as default};
