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