import{o as e}from"./rolldown-runtime-C_s2cVnS.js";import{d as t,h as n,m as r,n as i}from"./vendor-react-nmZsNlRz.js";import{T as a}from"./index-DjNTYlku.js";var o=e(n(),1),s=t(),c=i(),l=e(r(),1);function u(){let e=(0,c.c)(5),[t,n]=(0,o.useState)(`hidden`),r,i;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=()=>{let e=window.hermesDesktop?.wakeIndicator,t=!0,r=!1,i=e?.onState(e=>{t&&(r=!0,n(e))});return e?.getState().then(e=>{t&&!r&&n(e)}).catch(d),()=>{t=!1,i?.()}},i=[],e[0]=r,e[1]=i):(r=e[0],i=e[1]),(0,o.useEffect)(r,i);let a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,l.jsx)(`div`,{className:`wake-indicator-light`}),e[2]=a):a=e[2];let s;return e[3]===t?s=e[4]:(s=(0,l.jsx)(`main`,{"aria-hidden":!0,className:`wake-indicator-surface`,"data-state":t,children:a}),e[3]=t,e[4]=s),s}function d(){}function f(){let e=document.createElement(`style`);e.textContent=`html,body,#root{background:transparent !important;overflow:hidden;}`,document.head.appendChild(e);let t=document.getElementById(`root`);t&&(0,s.createRoot)(t).render((0,l.jsx)(o.StrictMode,{children:(0,l.jsx)(a,{label:`wake-indicator`,children:(0,l.jsx)(u,{})})}))}export{f as mountWakeIndicator};