import{$ as e,C as t,D as n,E as r,I as i,L as a,O as o,U as s,X as c,Z as l,i as u,r as d,v as f,w as p,x as m}from"./app-CY4gkrgv.js";import{t as h}from"./i18n-D-Ytq6ze.js";import{t as g}from"./MarketingLayout-Bopn9aMK.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=o({__name:`Account`,props:{licenses:{}},setup(o){return(O,k)=>(i(),p(f,null,[n(c(d),{title:c(h)(`My licenses`)},null,8,[`title`]),n(g,null,{default:s(()=>[m(`section`,_,[m(`h1`,v,e(c(h)(`My licenses`)),1),m(`p`,y,e(c(h)(`Your purchased extensions and themes. Use a key in any Convoro site’s Marketplace to install it.`)),1),o.licenses.length?(i(),p(`div`,x,[(i(!0),p(f,null,a(o.licenses,n=>(i(),p(`div`,{key:n.key,class:`rounded-2xl border border-line bg-surface p-5`},[m(`div`,S,[m(`div`,C,e(n.product),1),m(`span`,{class:l([`rounded-full px-2 py-0.5 text-xs font-semibold`,n.status===`active`?`bg-emerald-50 text-emerald-700`:`bg-surface-2 text-ink-muted`])},e(n.status),3),m(`span`,w,e(c(h)(`Purchased {date}`,{date:n.purchased})),1)]),m(`div`,T,[m(`code`,E,e(n.key),1),n.download?(i(),p(`a`,{key:0,href:n.download,class:`rounded-lg border border-line px-3 py-2 text-sm font-semibold text-ink-2 hover:bg-surface-2`},e(c(h)(`Download`)),9,D)):t(``,!0)])]))),128))])):(i(),p(`div`,b,[r(e(c(h)(`No licenses yet.`))+` `,1),n(c(u),{href:`/extensions`,class:`font-semibold text-primary`},{default:s(()=>[r(e(c(h)(`Browse extensions →`)),1)]),_:1})]))])]),_:1})],64))}});export{O as default};