import{_ as E}from"./DocsAside.vue_vue_type_script_setup_true_lang.fdea1ba6.js";import F from"./ProseCodeInline.50440e49.js";import{b as q,e as z,Z as L,E as f,x as C,a6 as O,A as R,a4 as U,o as u,c as P,w as x,u as o,f as b,k as n,j as k,h as v,p as Z,i as y,t as G,F as J,l as g,a as K,q as Q,an as W,L as X,M as Y,v as ee}from"./entry.5c8819da.js";import{_ as oe}from"./DocsPageBottom.vue_vue_type_script_setup_true_lang.9323b9cc.js";import te from"./ProseHr.b577eed5.js";import{_ as ae}from"./DocsPrevNext.vue_vue_type_script_setup_true_lang.18a4b85f.js";import{_ as se}from"./DocsToc.vue_vue_type_script_setup_true_lang.65a012e3.js";/* empty css                                                                        */import"./PageEditLink.vue_vue_type_script_setup_true_lang.7a739cdc.js";import"./PageContributors.vue_vue_type_script_setup_true_lang.14965c12.js";/* empty css                                                                */import"./index.c8e7d9b1.js";import"./DocsTocLinks.vue_vue_type_script_setup_true_lang.a06663b5.js";const le=m=>(X("data-v-b001d96c"),m=m(),Y(),m),ne={class:"flex items-center gap-1 py-3 lg:hidden"},re=le(()=>v("span",{class:"text-xs font-semibold"},"Table of Contents",-1)),ce=q({__name:"DocsPageContent",setup(m){const{page:s,navigation:S}=z(),$=L(),B=(e,t=!0)=>{var a;return typeof((a=s.value)==null?void 0:a[e])<"u"?s.value[e]:t},T=f(()=>{var e,t,a;return!s.value||((a=(t=(e=s.value)==null?void 0:e.body)==null?void 0:t.children)==null?void 0:a.length)>0}),r=f(()=>{var e,t,a,_,d;return((e=s.value)==null?void 0:e.toc)!==!1&&((d=(_=(a=(t=s.value)==null?void 0:t.body)==null?void 0:a.toc)==null?void 0:_.links)==null?void 0:d.length)>=2}),i=f(()=>{var e,t;return((e=s.value)==null?void 0:e.aside)!==!1&&((t=S.value)==null?void 0:t.length)>1}),N=f(()=>B("bottom",!0)),c=C(!1),l=C(null),h=()=>$.path.split("/").slice(0,2).join("/"),p=O("asideScroll",()=>{var e;return{parentPath:h(),scrollTop:((e=l.value)==null?void 0:e.scrollTop)||0}});function w(){!l.value||(l.value.scrollHeight===0&&setTimeout(w,0),l.value.scrollTop=p.value.scrollTop)}return R(()=>{p.value.parentPath!==h()?(p.value.parentPath=h(),p.value.scrollTop=0):w()}),U(()=>{!l.value||(p.value.scrollTop=l.value.scrollTop)}),(e,t)=>{const a=E,_=F,d=K,D=oe,I=te,A=ae,V=Q,H=se,M=W;return u(),P(M,{padded:"",class:"relative flex flex-col-reverse lg:grid lg:grid-cols-12 lg:gap-8"},{default:x(()=>[o(i)?(u(),b("aside",{key:0,ref_key:"asideNav",ref:l,class:"lg:top-header hidden overflow-y-auto overflow-x-hidden pb-8 lg:sticky lg:col-span-2 lg:block lg:max-h-[calc(100vh-var(--header-height))] lg:self-start lg:pt-8"},[n(a)],512)):k("",!0),v("article",{class:g(["relative flex flex-col flex-1 pt-8 pb-8 lg:mt-0 page-body",{"lg:col-span-12":!o(i)&&!o(r),"lg:col-span-10":(!o(r)||!o(i))&&!(!o(i)&&!o(r)),"lg:col-span-8":o(r)&&o(i),"pt-12 lg:pt-8":o(r)}])},[o(T)?Z(e.$slots,"default",{key:0},void 0,!0):(u(),P(d,{key:1,type:"info",class:"!mt-0"},{default:x(()=>[y(" Start writing in "),n(_,null,{default:x(()=>[y("content/"+G(o(s)._file),1)]),_:1}),y(" to see this page taking shape. ")]),_:1})),o(T)&&o(s)&&o(N)?(u(),b(J,{key:2},[n(D),n(I),n(A)],64)):k("",!0)],2),o(r)?(u(),b("div",{key:1,class:g([{"flex items-center lg:block":!c.value},"sticky flex items-center px-4 -mx-4 -mt-8 toc top-header lg:max-h-page sm:-mx-6 sm:px-6 lg:col-span-2 lg:mx-0 lg:self-start lg:bg-transparent lg:px-0 lg:pt-8 lg:backdrop-blur-none overflow-y-auto overflow-x-hidden"])},[v("div",{class:"w-full cursor-pointer sm:cursor-auto",onClick:t[1]||(t[1]=j=>c.value=!c.value)},[v("button",ne,[re,n(V,{name:"heroicons-outline:chevron-right",class:g(["w-4 h-4 transition-transform duration-100 transform",[c.value?"rotate-90":"rotate-0"]])},null,8,["class"])]),n(H,{class:g(["mb-4 lg:mt-0",[c.value?"lg:block":"hidden lg:block"]]),onMove:t[0]||(t[0]=j=>c.value=!1)},null,8,["class"])])],2)):k("",!0)]),_:3})}}}),ye=ee(ce,[["__scopeId","data-v-b001d96c"]]);export{ye as default};
