import{o as s}from"./rolldown-runtime-iuO8RvI4.js";import{Mi as t,ki as e}from"./vendor-frame-CwiylG4Y.js";import{Aa as o,La as r,Ra as a,ka as n}from"./shared-1-3-6x7RKF.js";import{_o as i,ss as c}from"./shared-5-UQAFGbWu.js";import{Lt as m}from"./shared-10-DEXHYEQf.js";var u=s(t()),l=e();function f({children:s}){return(0,l.jsx)("div",{className:"py-md text-footnote text-secondary",children:s})}function p(){const s=r(),t=a(s=>s.open),e=m(),{groups:f}=i({forModal:!0}),p=(0,u.useMemo)(()=>new Set(f.flatMap(s=>s.sections).map(s=>s.id)),[f]);return(0,u.useCallback)(r=>{const a=n(r),i=s&&null!==a&&o(a.section)&&"customize-plugins"!==a.section&&p.has(a.section);return function(s){return(0,l.jsx)(c,{href:r,onClick:s=>{s.metaKey||s.ctrlKey||s.shiftKey||s.altKey||0!==s.button||(s.preventDefault(),i?t(a.section,a.subpath):e.push(r))},children:s})}},[s,t,e,p])}export{p as n,f as t};