1import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{V as t}from"./utils-B29bKYmB.js";import{I as n,N as r}from"./Cesium-BtDQau95.js";import{I as i,L as a,R as o,n as s}from"./cesium-viewer-context-CBG7V36C.js";var c=e(t(),1),l=e=>t=>{typeof t!=`number`&&`position`in t&&e(t)};function u(e,t,n=a.LEFT_CLICK,r){let o=new i(e.canvas);return o.setInputAction(t,n,r),o}function d(e){let{viewer:t}=s(),n=(0,c.useEffectEvent)(e);(0,c.useEffect)(()=>{if(t){let e=u(t,l(()=>{let e=t.selectedEntity;n(e??null)}),a.LEFT_CLICK);return()=>{e.destroy()}}},[t])}function f(e,t){let{viewer:i}=s(),d=(0,c.useEffectEvent)(e),f=t?.eventType??a.LEFT_CLICK,p=t?.modifier===null?void 0:t?.modifier??o.ALT;(0,c.useEffect)(()=>{if(!i)return;let e=u(i,l(e=>{let t=i.scene.pickPosition(e.position);if(!t)return;let a=r.fromCartesian(t);a&&d({latitude:n.toDegrees(a.latitude),longitude:n.toDegrees(a.longitude),height:a.height})}),f,p);return()=>{e.destroy()}},[i,f,p])}export{d as i,l as n,f as r,u as t};
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.