import{s}from"./chunk-LvLJmgfZ.js";import{u as n}from"./useEvent-D91BmmQi.js";import{t as c}from"./react-Bj1aDYRI.js";import{_r as f,x as d}from"./cells-ChH37lAD.js";import"./react-dom-CSu739Rf.js";import{t as l}from"./compiler-runtime-B3qBwwSJ.js";import{t as u}from"./jsx-runtime-PbYoItBR.js";import"./fullscreen-BXI8V5i6.js";import"./dist-Dez1I5M9.js";import"./cjs-DXo9vDEJ.js";import"./main-DmhaVp6Y.js";import"./useNonce-0SWz6w4W.js";import"./dist-DblYTes5.js";import"./dist-D-2yWcX9.js";import"./dist-CNKFZCiw.js";import"./dist-ZjSH4Z6x.js";import"./dist-BtrqKtvn.js";import"./session-CsT5Gg9j.js";import"./purify.es-DfJp_of2.js";import{i as v,n as x,r as h}from"./floating-outline-Dy8nXch3.js";import{t as j}from"./empty-state-QmmE2oN4.js";var _=l();c();var p=s(u(),1),b=()=>{let t=(0,_.c)(7),{items:r}=n(d),o;t[0]===r?o=t[1]:(o=h(r),t[0]=r,t[1]=o);let{activeHeaderId:m,activeOccurrences:a}=v(o);if(r.length===0){let i;return t[2]===Symbol.for("react.memo_cache_sentinel")?(i=(0,p.jsx)(j,{title:"No outline found",description:"Add markdown headings to your notebook to create an outline.",icon:(0,p.jsx)(f,{})}),t[2]=i):i=t[2],i}let e;return t[3]!==m||t[4]!==a||t[5]!==r?(e=(0,p.jsx)(x,{items:r,activeHeaderId:m,activeOccurrences:a}),t[3]=m,t[4]=a,t[5]=r,t[6]=e):e=t[6],e};export{b as default};
