import{C as c,Ca as o,M as s,W as u,fa as i,q as l,x as r}from"./chunk-PVUKHE45.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-NN3ABOBS.js.map
