import y from"./DocsAside-1053b1cd.mjs";import C from"./DocsPageBottom-dccef25f.mjs";import O from"./ProseHr-1981cb97.mjs";import w from"./DocsPrevNext-e8f78d61.mjs";import{_ as D,d as S,G as B,s as f,k as I,o as l,f as r,w as P,c as g,b as p,h as a,a as _,r as N,n as i,J as V,K as j,j as T}from"./entry-d195bacb.mjs";import z from"./DocsToc-15b13c5e.mjs";import A from"./Container-31398368.mjs";import"./DocsAsideTree-09b1b5ad.mjs";const E=S({name:"DocsPageContent",setup(t,{expose:n}){n();const{page:s}=B(),e=f(()=>{var o;return typeof((o=s.value)==null?void 0:o.toc)!="undefined"?s.value.toc:!0}),d=f(()=>{var o;return typeof((o=s.value)==null?void 0:o.aside)!="undefined"?s.value.aside:!0}),m=I(!1),c={page:s,toc:e,aside:d,isOpen:m};return Object.defineProperty(c,"__isScriptSetup",{enumerable:!1,value:!0}),c}}),G=t=>(V("data-v-448cd18b"),t=t(),j(),t),H={key:0,class:"hidden pb-8 overflow-x-hidden overflow-y-auto lg:top-header lg:sticky lg:col-span-2 lg:-mt-8 lg:block lg:self-start lg:pb-0 lg:pt-8"},J={class:"flex items-center gap-1 py-3 lg:hidden"},K=G(()=>_("span",{class:"text-xs font-semibold"},"Table of Contents",-1));function M(t,n,s,e,d,m){const c=y,o=C,u=O,x=w,v=T,b=z,k=A;return l(),r(k,{padded:"",class:"relative flex flex-col-reverse pb-4 sm:pb-6 lg:grid lg:grid-cols-12 lg:gap-8"},{default:P(()=>[e.aside?(l(),g("aside",H,[p(c)])):a("",!0),_("div",{class:i(["relative flex flex-col flex-1 lg:mt-0 lg:pt-8",{"lg:flex lg:flex-1 lg:col-span-12":!e.aside&&!e.toc,"lg:col-span-10 pt-8 lg:pt-8":!e.toc||!e.aside,"lg:col-span-8 pt-12":e.toc&&e.aside}])},[N(t.$slots,"default",{},void 0,!0),e.page&&e.toc?(l(),r(o,{key:0})):a("",!0),e.page&&e.toc?(l(),r(u,{key:1})):a("",!0),e.page&&e.toc?(l(),r(x,{key:2})):a("",!0)],2),e.toc?(l(),g("div",{key:1,class:i([{"flex items-center lg:block":!e.isOpen},"relative sticky flex items-center px-4 -mx-4 -mt-8 toc top-header sm:-mx-6 sm:px-6 lg:col-span-2 lg:mx-0 lg:max-h-page lg:self-start lg:bg-transparent lg:px-0 lg:pt-8 lg:backdrop-blur-none"])},[_("div",{class:"w-full cursor-pointer",onClick:n[1]||(n[1]=h=>e.isOpen=!e.isOpen)},[_("button",J,[K,p(v,{name:"heroicons-outline:chevron-right",class:i(["w-4 h-4 transition-transform duration-100 transform",[e.isOpen?"rotate-90":"rotate-0"]])},null,8,["class"])]),p(b,{class:i(["mb-4 lg:mt-0",[e.isOpen?"lg:block":"hidden lg:block"]]),onMove:n[0]||(n[0]=h=>e.isOpen=!1)},null,8,["class"])])],2)):a("",!0)]),_:3})}var Y=D(E,[["render",M],["__scopeId","data-v-448cd18b"]]);export{Y as default};
