import{D as e,E as t,L as n,Q as r,R as i,S as a,W as o,Z as s,et as c,i as l,k as u,r as d,v as f,w as p,x as m}from"./app-LqeFiKko.js";import{t as h}from"./i18n-DC0l5-9S.js";import{t as g}from"./MarketingLayout-DwkYDeL2.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=u({__name:`Show`,props:{guide:{},nav:{}},setup(u){let j=e=>typeof e==`object`&&!!e&&`code`in e,M=e=>typeof e==`object`&&!!e&&`link`in e;return(N,P)=>(n(),p(f,null,[e(s(d),{title:`${u.guide.title} — Convoro docs`},null,8,[`title`]),e(g,null,{default:o(()=>[m(`section`,_,[e(s(l),{href:`/docs`,class:`text-sm font-semibold text-ink-muted hover:text-ink`},{default:o(()=>[t(c(s(h)(`← All docs`)),1)]),_:1}),m(`div`,v,[m(`aside`,y,[m(`nav`,b,[(n(!0),p(f,null,i(u.nav,e=>(n(),a(s(l),{key:e.slug,href:`/docs/${e.slug}`,class:r([`flex items-center gap-2 rounded-lg px-3 py-2 text-sm font-medium`,e.slug===u.guide.slug?`bg-primary/10 text-primary`:`text-ink-2 hover:bg-surface-2`])},{default:o(()=>[m(`span`,null,c(e.icon),1),t(` `+c(e.title),1)]),_:2},1032,[`href`,`class`]))),128))])]),m(`article`,null,[m(`div`,x,[m(`span`,S,c(u.guide.icon),1),m(`h1`,C,c(u.guide.title),1)]),m(`p`,w,c(u.guide.intro),1),m(`div`,T,[(n(!0),p(f,null,i(u.guide.sections,(e,r)=>(n(),p(`section`,{key:r},[m(`h2`,E,c(e.h),1),m(`div`,D,[(n(!0),p(f,null,i(e.body,(e,r)=>(n(),p(f,{key:r},[j(e)?(n(),p(`pre`,O,[m(`code`,null,c(e.code),1)])):M(e)?(n(),p(`a`,{key:1,href:e.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`},[t(c(e.label||e.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)):(n(),p(`p`,A,c(e),1))],64))),128))])]))),128))])])])])]),_:1})],64))}});export{j as default};