1import{r as i,ai as c,I as t,V as l}from"./index.a7219c61.js";const n=i([]),r=i(!1);function d(){function s(){!t().isElectron()||(window.electron?.onEnterFullScreen&&(console.log("Setting up enter fullscreen listener"),window.electron?.onEnterFullScreen(()=>{console.log("Entering fullscreen"),r.value=!0})),window.electron?.onLeaveFullScreen&&window.electron?.onLeaveFullScreen(()=>{r.value=!1}),window.electron?.onDownloadTotalProgress&&window.electron?.onDownloadTotalProgress(e=>{const o=n.value.length>0;l().show("Downloading...",{progress:e.percent*100,icon:"mdi-arrow-down",persistant:!0,dismissable:!1,variant:"success",skipBounce:!0,action:o?{label:"Cancel",callback:()=>{a()}}:void 0})}),window.electron?.onDownloadStarted&&window.electron?.onDownloadStarted(e=>{e&&n.value.push(e),l().show("Download in progress...",{persistant:!0,variant:"default"})}),window.electron?.onDownloadCompleted&&window.electron?.onDownloadCompleted(e=>{n.value=n.value.filter(o=>o!==e.path),l().show("Download completed",{dismissable:!0,variant:"success"})}),window.electron?.onDownloadCancelled&&window.electron?.onDownloadCancelled(e=>{e&&(n.value=n.value.filter(o=>o!==e)),l().show("Download cancelled",{dismissable:!0,variant:"default"})}))}function a(){!t().isElectron()||!window.electron?.cancelDownload||n.value.forEach(e=>{window.electron?.cancelDownload?.(e)})}return{init:s,cancel:a,fullscreen:c(r)}}export{d as u};
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.