import{E as l,K as r,Ka as i,U as c,aa as s,la as u,x as t}from"./chunk-ISMRT7VU.js";var F=(()=>{class n{constructor(){this.isFullScreen=i(!1)}init(){this.handleF11(),this.handleFullScreenChange()}enterFullScreen(){document.documentElement?.requestFullscreen()}exitFullScreen(){document?.exitFullscreen().catch(()=>this.handleBrowserInOwnFullscreenState())}handleFullScreenChange(){l(document,"fullscreenchange").pipe(t(()=>!!document.fullscreenElement),c(),s(1)).subscribe(e=>{this.isFullScreen.set(e)})}handleF11(){l(document,"keydown").pipe(r(e=>e.key==="F11"),t(e=>(e.preventDefault(),!!document.fullscreenElement))).subscribe(e=>{e?this.exitFullScreen():this.enterFullScreen()})}handleBrowserInOwnFullscreenState(){document?.documentElement?.requestFullscreen().then(()=>{document.exitFullscreen()})}static{this.\u0275fac=function(o){return new(o||n)}}static{this.\u0275prov=u({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();export{F as a};
//# sourceMappingURL=chunk-PQERWZOI.js.map
