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-B2zHeGPj.js";import{t as h}from"./i18n-D3p9iZfK.js";import{t as g}from"./MarketingLayout-BxJ-_P4N.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=t({__name:`Account`,props:{licenses:{}},setup(t){return(O,k)=>(r(),e(d,null,[n(u(p),{title:u(h)(`My licenses`)},null,8,[`title`]),n(g,null,{default:i(()=>[f(`section`,_,[f(`h1`,v,o(u(h)(`My licenses`)),1),f(`p`,y,o(u(h)(`Your purchased extensions and themes. Use a key in any Convoro site’s Marketplace to install it.`)),1),t.licenses.length?(r(),e(`div`,x,[(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`,S,[f(`div`,C,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`,w,o(u(h)(`Purchased {date}`,{date:t.purchased})),1)]),f(`div`,T,[f(`code`,E,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`},o(u(h)(`Download`)),9,D)):s(``,!0)])]))),128))])):(r(),e(`div`,b,[c(o(u(h)(`No licenses yet.`))+` `,1),n(u(m),{href:`/extensions`,class:`font-semibold text-primary`},{default:i(()=>[c(o(u(h)(`Browse extensions →`)),1)]),_:1})]))])]),_:1})],64))}});export{O as default};