1import{a8 as P,r as n,a9 as h,c as d,v as w}from"./entry.d379f24d.js";import{e as S}from"./useElementValidation.0143926d.js";var k=(o=>(o.desktop="desktop",o.footer="footer",o))(k||{});const V=P("contextMenu",()=>{const o=n(!1),s=n(""),f=t=>{o.value=t,o.value||(s.value="")},a=h({data:{x:0,y:0}}),v=t=>{a.data.x=t.x,a.data.y=t.y,f(!0)},p=(t,u,r=void 0,l=void 0)=>{switch(s.value=u,s.value){case"footer":c("bottom");break;default:c("top")}t&&(t.preventDefault(),v({x:r||t.x,y:l||t.y}))},i=n("left"),e=n("top"),c=t=>{e.value=t},x=async t=>{i.value="left",e.value="top",t&&await w(()=>{const{isOutOfViewport:u}=S(),r=u(t);if(r){const{bottom:l,right:b}=r;b&&(i.value="right"),l&&(e.value="bottom")}})},y=d(()=>{switch(i.value){case"right":return`calc(100% - ${a.data.x}px)`;default:return`${a.data.x}px`}}),m=d(()=>{switch(e.value){case"bottom":return`calc(100% - ${a.data.y}px)`;default:return`${a.data.y}px`}});return{visible:o,type:s,setVisibility:f,position:a,open:p,startPositionX:i,returnStartPositionX:y,startPositionY:e,setStartPositionY:c,returnStartPositionY:m,validatePosition:x}});export{k as C,V as u};
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.