import{$ as e,D as t,E as n,I as r,L as i,O as a,S 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-UwMR-xl0.js";import{t as h}from"./i18n-AQND1q1G.js";import{t as g}from"./MarketingLayout-DTPLmm1J.js";var _={class:`mx-auto max-w-5xl px-6 py-16`},v={class:`mt-6 grid gap-10 md:grid-cols-[200px_1fr]`},y={class:`md:pt-1`},b={class:`sticky top-24 space-y-1`},x={class:`flex items-center gap-3`},S={class:`grid h-12 w-12 place-items-center rounded-2xl bg-primary/10 text-2xl`},C={class:`text-3xl font-black tracking-tight`},w={class:`mt-3 text-lg text-ink-2`},T={class:`mt-8 space-y-10`},E={class:`text-xl font-extrabold tracking-tight`},D={class:`mt-3 space-y-3`},O={key:0,class:`overflow-x-auto rounded-xl border border-slate-700 bg-slate-900 p-4 text-sm text-slate-200`},k=[`href`],A={key:2,class:`leading-relaxed text-ink-2`},j=a({__name:`Show`,props:{guide:{},nav:{}},setup(a){let j=e=>typeof e==`object`&&!!e&&`code`in e,M=e=>typeof e==`object`&&!!e&&`link`in e;return(N,P)=>(r(),p(f,null,[t(c(d),{title:`${a.guide.title} — Convoro docs`},null,8,[`title`]),t(g,null,{default:s(()=>[m(`section`,_,[t(c(u),{href:`/docs`,class:`text-sm font-semibold text-ink-muted hover:text-ink`},{default:s(()=>[n(e(c(h)(`← All docs`)),1)]),_:1}),m(`div`,v,[m(`aside`,y,[m(`nav`,b,[(r(!0),p(f,null,i(a.nav,t=>(r(),o(c(u),{key:t.slug,href:`/docs/${t.slug}`,class:l([`flex items-center gap-2 rounded-lg px-3 py-2 text-sm font-medium`,t.slug===a.guide.slug?`bg-primary/10 text-primary`:`text-ink-2 hover:bg-surface-2`])},{default:s(()=>[m(`span`,null,e(t.icon),1),n(` `+e(t.title),1)]),_:2},1032,[`href`,`class`]))),128))])]),m(`article`,null,[m(`div`,x,[m(`span`,S,e(a.guide.icon),1),m(`h1`,C,e(a.guide.title),1)]),m(`p`,w,e(a.guide.intro),1),m(`div`,T,[(r(!0),p(f,null,i(a.guide.sections,(t,a)=>(r(),p(`section`,{key:a},[m(`h2`,E,e(t.h),1),m(`div`,D,[(r(!0),p(f,null,i(t.body,(t,i)=>(r(),p(f,{key:i},[j(t)?(r(),p(`pre`,O,[m(`code`,null,e(t.code),1)])):M(t)?(r(),p(`a`,{key:1,href:t.link,class:`inline-flex items-center gap-2 rounded-xl bg-primary px-5 py-3 font-bold text-white shadow-lg shadow-primary/25 hover:bg-primary-600`},[n(e(t.label||t.link)+` `,1),P[0]||=m(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[m(`path`,{d:`M12 5v14M19 12l-7 7-7-7`})],-1)],8,k)):(r(),p(`p`,A,e(t),1))],64))),128))])]))),128))])])])])]),_:1})],64))}});export{j as default};