import{s}from"./chunk-LvLJmgfZ.js";import{u as n}from"./useEvent-D91BmmQi.js";import{t as c}from"./react-Bj1aDYRI.js";import{S as d,dr as f}from"./cells-DQ5n6Zef.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-DHMtQYxT.js";import"./dist-Bj9Iedc0.js";import"./dist-D-o1OXc9.js";import"./dist-BZhJ1bTM.js";import"./dist-DnIl7RU-.js";import"./session-B6_8umQX.js";import"./purify.es-DdxMtdqK.js";import{i as v,n as x,r as h}from"./floating-outline-CPTvLHMl.js";import{t as j}from"./empty-state-vKu4k0Y4.js";var b=l();c();var p=s(u(),1),g=()=>{let t=(0,b.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{g as default};
