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]=`247bfc63-56d1-4a8c-9fcc-6c826ba60a0e`,e._sentryDebugIdIdentifier=`sentry-dbid-247bfc63-56d1-4a8c-9fcc-6c826ba60a0e`)}catch{}import{o as e}from"./rolldown-runtime-nx40z1zs.js";import{Ag as t,Cp as n,Hm as r,_r as i,ei as a,ng as o,pi as s,pn as c}from"./entry.client-mpghtlrl.js";import{t as l}from"./useMicrophone-krseyn4k.js";var u=t(),d=e(s(),1),f=o(),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)(a,{icon:(0,f.jsx)(c,{}),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:i,className:a}=e,{locNoMicDetected:o,locGiveMicAccess:s}=r();if(i===n.NotFound||i===n.NotAllowed){let e;t[0]!==i||t[1]!==o||t[2]!==s?(e=i===n.NotFound?o():s(),t[0]=i,t[1]=o,t[2]=s,t[3]=e):e=t[3];let r=e,c;return t[4]!==r||t[5]!==a?(c=(0,f.jsx)(p,{warningMessage:r,className:a}),t[4]=r,t[5]=a,t[6]=c):c=t[6],c}return null},({className:e})=>{let{micState:t}=l();return{micState:t,className:e}});export{p as n,m as t};