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,a as f,b as p,n as m,r as h,x as g,y as _}from"./app-CjsAPSkg.js";import{t as v}from"./i18n-BcowkkaP.js";import{t as y}from"./MarketingLayout-BtkrtW8T.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=t({__name:`Index`,props:{products:{}},setup(t){let z=_(()=>f().props.flash?.status),B=_(()=>!!f().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(f,_)=>(r(),e(d,null,[n(u(m),{title:u(v)(`Extensions & themes — {brand}`,{brand:`Convoro`})},null,8,[`title`]),n(y,null,{default:i(()=>[p(`section`,b,[z.value?(r(),e(`div`,x,o(z.value),1)):s(``,!0),p(`div`,S,[p(`div`,C,[p(`h1`,w,o(u(v)(`Extensions & themes`)),1),p(`p`,T,o(u(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)]),p(`div`,E,[B.value?(r(),g(u(h),{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:i(()=>[c(o(u(v)(`Manage yours`)),1)]),_:1})):s(``,!0),n(u(h),{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:i(()=>[_[0]||=p(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[p(`path`,{d:`M12 5v14M5 12h14`})],-1),c(` `+o(u(v)(`Submit your extension`)),1)]),_:1})])]),t.products.length?(r(),e(`div`,O,[(r(!0),e(d,null,a(t.products,t=>(r(),g(u(h),{key:t.slug,href:`/extensions/${t.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:i(()=>[t.image?(r(),e(`img`,{key:0,src:t.image,alt:t.name,loading:`lazy`,class:`aspect-[2/1] w-full object-cover`},null,8,k)):(r(),e(`div`,A,o(t.type===`theme`?`🎨`:`🧩`),1)),p(`div`,j,[p(`div`,M,[p(`h3`,N,o(t.name),1),p(`span`,P,o(t.type),1)]),p(`p`,F,o(t.description),1),V(t.review)?(r(),e(`div`,I,[p(`span`,{class:l([`inline-flex items-center rounded-full px-2 py-0.5 text-[11px] font-bold`,V(t.review).c])},o(V(t.review).t),3)])):s(``,!0),p(`div`,L,[p(`span`,{class:l([`font-extrabold`,t.free?`text-ink-muted`:`text-primary`])},o(t.price),3),p(`span`,R,o(u(v)(`View →`)),1)])])]),_:2},1032,[`href`]))),128))])):(r(),e(`div`,D,o(u(v)(`New premium add-ons are on the way. Check back soon.`)),1))])]),_:1})],64))}});export{z as default};