import{C as e,D as t,E as n,F as r,H as i,I as a,Q as o,S as s,T as c,X as l,Y as u,_ as d,b as f,n as p,r as m}from"./app-C68u4srq.js";import{t as h}from"./MarketingLayout-DzigOXoR.js";var g={class:`mx-auto max-w-3xl px-6 py-16`},_={key:0,class:`mt-8 rounded-2xl border border-dashed border-line p-16 text-center text-ink-muted`},v={key:1,class:`mt-8 space-y-3`},y={class:`flex flex-wrap items-center gap-3`},b={class:`font-bold`},x={class:`ml-auto text-xs text-ink-muted`},S={class:`mt-3 flex flex-wrap items-center gap-3`},C={class:`select-all rounded-lg bg-surface-2 px-3 py-2 font-mono text-sm font-bold tracking-wide text-primary`},w=[`href`],T=t({__name:`Account`,props:{licenses:{}},setup(t){return(T,E)=>(r(),e(d,null,[n(u(p),{title:`My licenses`}),n(h,null,{default:i(()=>[f(`section`,g,[E[2]||=f(`h1`,{class:`text-3xl font-black tracking-tight`},`My licenses`,-1),E[3]||=f(`p`,{class:`mt-2 text-ink-2`},`Your purchased extensions and themes. Use a key in any Convoro site’s Marketplace to install it.`,-1),t.licenses.length?(r(),e(`div`,v,[(r(!0),e(d,null,a(t.licenses,t=>(r(),e(`div`,{key:t.key,class:`rounded-2xl border border-line bg-surface p-5`},[f(`div`,y,[f(`div`,b,o(t.product),1),f(`span`,{class:l([`rounded-full px-2 py-0.5 text-xs font-semibold`,t.status===`active`?`bg-emerald-50 text-emerald-700`:`bg-surface-2 text-ink-muted`])},o(t.status),3),f(`span`,x,`Purchased `+o(t.purchased),1)]),f(`div`,S,[f(`code`,C,o(t.key),1),t.download?(r(),e(`a`,{key:0,href:t.download,class:`rounded-lg border border-line px-3 py-2 text-sm font-semibold text-ink-2 hover:bg-surface-2`},`Download`,8,w)):s(``,!0)])]))),128))])):(r(),e(`div`,_,[E[1]||=c(` No licenses yet. `,-1),n(u(m),{href:`/extensions`,class:`font-semibold text-primary`},{default:i(()=>[...E[0]||=[c(`Browse extensions →`,-1)]]),_:1})]))])]),_:1})],64))}});export{T as default};