import{$ as e,C as t,D as n,E as r,I as i,L as a,O as o,S as s,U as c,X as l,Z as u,b as d,i as f,o as p,r as m,v as h,w as g,x as _}from"./app-CY4gkrgv.js";import{t as v}from"./i18n-D-Ytq6ze.js";import{t as y}from"./MarketingLayout-Bopn9aMK.js";var b={class:`mx-auto max-w-6xl px-6 py-16`},x={key:0,class:`mb-8 rounded-xl border border-emerald-500/30 bg-emerald-500/10 px-4 py-3 text-sm font-medium text-emerald-700 dark:text-emerald-300`},S={class:`mb-10 flex flex-wrap items-end justify-between gap-4`},C={class:`max-w-2xl`},w={class:`text-4xl font-black tracking-tight`},T={class:`mt-3 text-lg text-ink-2`},E={class:`flex shrink-0 items-center gap-2`},D={key:1,class:`rounded-2xl border border-dashed border-line p-16 text-center text-ink-muted`},O={key:2,class:`grid gap-5 sm:grid-cols-2 lg:grid-cols-3`},k=[`src`,`alt`],A={key:1,class:`grid aspect-[2/1] w-full place-items-center bg-primary/10 text-4xl`},j={class:`flex flex-1 flex-col p-6`},M={class:`flex items-center gap-2`},N={class:`truncate font-bold group-hover:text-primary`},P={class:`ml-auto shrink-0 text-xs font-semibold uppercase tracking-wide text-ink-muted`},F={class:`mt-3 line-clamp-2 text-sm text-ink-2`},I={key:0,class:`mt-3`},L={class:`mt-4 flex flex-1 items-end justify-between border-t border-line pt-4`},R={class:`text-sm font-semibold text-primary group-hover:underline`},z=o({__name:`Index`,props:{products:{}},setup(o){let z=d(()=>p().props.flash?.status),B=d(()=>!!p().props.auth?.user);function V(e){return e?.rating===`safe`?{t:v(`✓ Reviewed safe`),c:`bg-emerald-500/15 text-emerald-600 dark:text-emerald-400`}:e?.rating===`caution`?{t:v(`⚠ Review: caution`),c:`bg-amber-500/15 text-amber-600 dark:text-amber-400`}:e?.rating===`unsafe`?{t:v(`⛔ Review: unsafe`),c:`bg-red-500/15 text-red-600 dark:text-red-400`}:null}return(d,p)=>(i(),g(h,null,[n(l(m),{title:l(v)(`Extensions & themes — {brand}`,{brand:`Convoro`})},null,8,[`title`]),n(y,null,{default:c(()=>[_(`section`,b,[z.value?(i(),g(`div`,x,e(z.value),1)):t(``,!0),_(`div`,S,[_(`div`,C,[_(`h1`,w,e(l(v)(`Extensions & themes`)),1),_(`p`,T,e(l(v)(`Browse the directory of Convoro extensions and themes. Free add-ons install in one click; premium ones are purchased on their detail page — you get a license key to install on any of your sites.`)),1)]),_(`div`,E,[B.value?(i(),s(l(f),{key:0,href:`/extensions/manage`,class:`inline-flex items-center gap-2 rounded-c border border-line px-4 py-2.5 text-sm font-bold text-ink-2 hover:bg-surface-2`},{default:c(()=>[r(e(l(v)(`Manage yours`)),1)]),_:1})):t(``,!0),n(l(f),{href:`/extensions/submit`,class:`inline-flex items-center gap-2 rounded-c bg-primary px-5 py-2.5 text-sm font-bold text-white hover:bg-primary-600`},{default:c(()=>[p[0]||=_(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[_(`path`,{d:`M12 5v14M5 12h14`})],-1),r(` `+e(l(v)(`Submit your extension`)),1)]),_:1})])]),o.products.length?(i(),g(`div`,O,[(i(!0),g(h,null,a(o.products,n=>(i(),s(l(f),{key:n.slug,href:`/extensions/${n.slug}`,class:`group flex flex-col overflow-hidden rounded-2xl border border-line bg-surface transition hover:-translate-y-0.5 hover:shadow-lg`},{default:c(()=>[n.image?(i(),g(`img`,{key:0,src:n.image,alt:n.name,loading:`lazy`,class:`aspect-[2/1] w-full object-cover`},null,8,k)):(i(),g(`div`,A,e(n.type===`theme`?`🎨`:`🧩`),1)),_(`div`,j,[_(`div`,M,[_(`h3`,N,e(n.name),1),_(`span`,P,e(n.type),1)]),_(`p`,F,e(n.description),1),V(n.review)?(i(),g(`div`,I,[_(`span`,{class:u([`inline-flex items-center rounded-full px-2 py-0.5 text-[11px] font-bold`,V(n.review).c])},e(V(n.review).t),3)])):t(``,!0),_(`div`,L,[_(`span`,{class:u([`font-extrabold`,n.free?`text-ink-muted`:`text-primary`])},e(n.price),3),_(`span`,R,e(l(v)(`View →`)),1)])])]),_:2},1032,[`href`]))),128))])):(i(),g(`div`,D,e(l(v)(`New premium add-ons are on the way. Check back soon.`)),1))])]),_:1})],64))}});export{z as default};