import{s}from"./chunk-LvLJmgfZ.js";import{u as n}from"./useEvent-WUlsM6MC.js";import{t as c}from"./react-Bj1aDYRI.js";import{S as f,Zn as d}from"./cells-CCtxWKxf.js";import"./react-dom-CSu739Rf.js";import{t as l}from"./compiler-runtime-B3qBwwSJ.js";import{t as u}from"./jsx-runtime-CP2fAiZX.js";import"./dist-DUY6xZX8.js";import"./cjs-CVt8hZ5L.js";import"./main-Cmx6WhDY.js";import"./useNonce-BY4jV7Yb.js";import"./dist-DfBASypd.js";import"./dist-Dq_iQ08e.js";import"./dist-BjtLy-VA.js";import"./dist-odxAaH5Z.js";import"./dist-51xFOPFs.js";import"./session-DnMOyddG.js";import"./Combination-tjZP3FH6.js";import"./purify.es-CPplrWRQ.js";import{i as v,n as x,r as h}from"./floating-outline-BWK_nLJy.js";import{t as j}from"./empty-state-DFr2pZOz.js";var b=l();c();var p=s(u(),1),g=()=>{let t=(0,b.c)(7),{items:r}=n(f),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)(d,{})}),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};
