(function(){try{var g=typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};g["__faroBundleId_Speechify Chrome Extension"]="13.4.1"}catch(l){}})();
import{A as l,Bf as E,Id as c,Rf as o}from"./chunk-XMRXO6YU.js";import{h as t}from"./chunk-ODCFEFOB.js";import{g as D}from"./chunk-GQY3J744.js";import{d as C,g as e,n as s}from"./chunk-CLPINNGF.js";s();e();var v=t(i=>({isVisible:!1,setVisible:r=>i({isVisible:r})}));s();e();var n=C(D()),x=()=>{let i=c(),r=!!i&&l(i),{isLoading:I,variant:d}=o("cevoicetyping"),{isLoading:g,variant:p}=o("ceDictationDuringMeetingCapture"),[S,T]=(0,n.useState)(!1),{isLoading:_,variant:V}=o("cevoicetypingFree"),f=I||_||g;return(0,n.useEffect)(()=>{let a=async()=>{if(document.visibilityState!=="visible")return;let y=await E();T(y!=="idle")};return a(),document.addEventListener("visibilitychange",a),()=>{document.removeEventListener("visibilitychange",a)}},[]),f||p!=="enabled"&&S?!1:r?d==="enabled":V==="enabled"};s();e();var z=t(i=>({isDisabledForSession:!1,disableForSession:()=>i({isDisabledForSession:!0}),reset:()=>i({isDisabledForSession:!1})}));export{v as a,x as b,z as c};
//# sourceMappingURL=chunk-B7AFBP5P.js.map
