1import { 2 WebPlugin 3} from "./chunk-5LKHIIQE.js"; 4import { 5 __async 6} from "./chunk-CO64IJQE.js"; 7 8// node_modules/@capacitor/app/dist/esm/web.js 9var AppWeb = class extends WebPlugin { 10 constructor() { 11 super(); 12 this.handleVisibilityChange = () => { 13 const data = { 14 isActive: document.hidden !== true 15 }; 16 this.notifyListeners("appStateChange", data); 17 if (document.hidden) { 18 this.notifyListeners("pause", null); 19 } else { 20 this.notifyListeners("resume", null); 21 } 22 }; 23 document.addEventListener("visibilitychange", this.handleVisibilityChange, false); 24 } 25 exitApp() { 26 throw this.unimplemented("Not implemented on web."); 27 } 28 getInfo() { 29 return __async(this, null, function* () { 30 throw this.unimplemented("Not implemented on web."); 31 }); 32 } 33 getLaunchUrl() { 34 return __async(this, null, function* () { 35 return { 36 url: "" 37 }; 38 }); 39 } 40 getState() { 41 return __async(this, null, function* () { 42 return { 43 isActive: document.hidden !== true 44 }; 45 }); 46 } 47 minimizeApp() { 48 return __async(this, null, function* () { 49 throw this.unimplemented("Not implemented on web."); 50 }); 51 } 52 toggleBackButtonHandler() { 53 return __async(this, null, function* () { 54 throw this.unimplemented("Not implemented on web."); 55 }); 56 } 57 getAppLanguage() { 58 return __async(this, null, function* () { 59 return { 60 value: navigator.language.split("-")[0].toLowerCase() 61 }; 62 }); 63 } 64}; 65export { 66 AppWeb 67};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.