(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 _}from"./chunk-6XO4FK4F.js";import{Cc as N,Ec as y,lc as g,rc as C,yc as S,yg as i,zg as I}from"./chunk-XMRXO6YU.js";import{i as O,p as f,s}from"./chunk-24ZZP5UQ.js";import{t as p,u,v as c,w as d,x as l}from"./chunk-6I7EUWRH.js";import{g as e,i as o,n}from"./chunk-CLPINNGF.js";n();e();n();e();function V(){let t=navigator.userAgent.toLowerCase(),r=navigator.platform.toLowerCase(),a=navigator.appVersion.toLowerCase();return/iphone|ipad|ipod/.test(t)?"ios":/mac/.test(r)||/mac/.test(a)?"mac":/win/.test(r)||/win/.test(a)?"windows":/cros/.test(t)?"chromeos":/android/.test(t)?"android":/linux/.test(r)||/linux/.test(t)?"linux":"other"}function E(){switch(V()){case"android":return p;case"chromeos":return u;case"linux":return c;case"mac":return d;case"windows":return l}}var h=O.div`
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
`,x=()=>{let t=()=>{i("no-client-voices")};return o(S,{width:280,onClose:()=>i("no-client-voices")},o(s,{font:"heading-4"},"Missing Free Voices"),o(s,{font:"body-5",style:{marginTop:"8px"}},"We couldn’t find any free voices on your device. To begin listening:"),o(h,null,o(y,{size:"small",onClick:()=>{let m=E();if(!m){g("extension_no_client_voices_notification_shown",{action:"no download url"});return}f(m),t()}},"Download Language Pack"),o(C,{size:"small",onClick:()=>{N("side_player_no_client_voices","global",!0),t()}},o(_,null),"Upgrade to Premium")))},Y=async()=>{await i("no-client-voices"),await I({duration:0,id:"no-client-voices",priority:151,showOnMobile:!1,timeSensitive:!0,redesigned:!0,render:()=>o(x,null)})};export{V as a,E as b,x as c,Y as d};
//# sourceMappingURL=chunk-QZO5WHCE.js.map
