try{let e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`14c4313c-8e29-4cc4-ad3b-446b0658786b`,e._sentryDebugIdIdentifier=`sentry-dbid-14c4313c-8e29-4cc4-ad3b-446b0658786b`)}catch{}import{o as e}from"./rolldown-runtime-eb2nym32.js";import{Ag as t,Fg as n,Wn as r,dn as i,eh as a,lt as o,or as s,tm as c}from"./entry.client-dr7r6s9a.js";import{t as l}from"./useMicrophone-dpqw35jd.js";var u=n(),d=e(s(),1),f=t(),p=({warningMessage:e,className:t})=>(0,f.jsxs)(`div`,{className:(0,d.default)(`flex flex-row items-center gap-internal-icon-and-text-gap-loose`,t),children:[(0,f.jsx)(r,{icon:(0,f.jsx)(o,{}),size:`caption`,className:`text-feedback-status-standard-content-icon-warning`}),(0,f.jsx)(`div`,{className:`text-noninteractive-content-primary-content type-caption`,children:e})]}),m=i(e=>{let t=(0,u.c)(7),{micState:n,className:r}=e,{locNoMicDetected:i,locGiveMicAccess:o}=a();if(n===c.NotFound||n===c.NotAllowed){let e;t[0]!==n||t[1]!==i||t[2]!==o?(e=n===c.NotFound?i():o(),t[0]=n,t[1]=i,t[2]=o,t[3]=e):e=t[3];let a=e,s;return t[4]!==a||t[5]!==r?(s=(0,f.jsx)(p,{warningMessage:a,className:r}),t[4]=a,t[5]=r,t[6]=s):s=t[6],s}return null},({className:e})=>{let{micState:t}=l();return{micState:t,className:e}});export{p as n,m as t};