1import{i as p,e as a,g as c,j as d,S as g,H as f}from"./vendor-puck-vfMSqGvu.js";import{a as h}from"./index-BXwfu2-Q.js";import"./vendor-react-EzQpMuqe.js";import"./with-selector-bp5_VWNL.js";import"./index-lDCqCT0F.js";import"./index-mN_LO1uJ.js";p();function _(){const{options:s}=a(),l=c(s),{editor:r}=a(),i=h({editor:r,selector:t=>{var e,o;if((e=t.editor)!=null&&e.isActive("paragraph"))return"p";for(let n=1;n<=6;n++)if((o=t.editor)!=null&&o.isActive("heading",{level:n}))return`h${n}`;return"p"}}),u=t=>{const e=r?.chain();if(t==="p")e?.focus().setParagraph().run();else{const o=parseInt(t.replace("h",""),10);e?.focus().toggleHeading({level:o}).run()}};return d.jsx(g,{options:l,onChange:u,value:i??"p",defaultValue:"p",renderDefaultIcon:f})}export{_ as HeadingSelectLoaded};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.