import{D as c,Ea as o,N as s,X as u,ia as i,q as l,x as r}from"./chunk-C2QKZJOP.js";var f=(()=>{let n=class n{constructor(){this.isFullScreen=o(!1)}init(){this.handleF11(),this.handleFullScreenChange()}enterFullScreen(){document.documentElement?.requestFullscreen()}exitFullScreen(){document?.exitFullscreen().catch(()=>this.handleBrowserInOwnFullscreenState())}handleFullScreenChange(){r(document,"fullscreenchange").pipe(l(()=>!!document.fullscreenElement),s(),u(1)).subscribe(e=>{this.isFullScreen.set(e)})}handleF11(){r(document,"keydown").pipe(c(e=>e.key==="F11"),l(e=>(e.preventDefault(),!!document.fullscreenElement))).subscribe(e=>{e?this.exitFullScreen():this.enterFullScreen()})}handleBrowserInOwnFullscreenState(){document?.documentElement?.requestFullscreen().then(()=>{document.exitFullscreen()})}};n.\u0275fac=function(a){return new(a||n)},n.\u0275prov=i({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();export{f as a};
//# sourceMappingURL=chunk-NCD7DBID.js.map
