(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8501],{48501:(p,o,t)=>{t.r(o),t.d(o,{ScreenOrientationWeb:()=>a});var n=t(15861),s=t(47423),r=t(52671);class a extends s.Uw{constructor(){var e;super(),e=this,this.isSupported="orientation"in screen,this.handleOrientationChange=(0,n.Z)(function*(){const c={type:(yield e.getCurrentOrientation()).type};e.notifyListeners("screenOrientationChange",c)}),this.isSupported&&screen.orientation.addEventListener("change",this.handleOrientationChange)}lock(e){var i=this;return(0,n.Z)(function*(){i.isSupported||i.throwUnsupportedError(),yield screen.orientation.lock(e.type)})()}unlock(){var e=this;return(0,n.Z)(function*(){e.isSupported||e.throwUnsupportedError(),screen.orientation.unlock()})()}getCurrentOrientation(){var e=this;return(0,n.Z)(function*(){switch(e.isSupported||e.throwUnsupportedError(),screen.orientation.type){case"landscape-primary":return{type:r.F.LANDSCAPE_PRIMARY};case"landscape-secondary":return{type:r.F.LANDSCAPE_SECONDARY};case"portrait-secondary":return{type:r.F.PORTRAIT_SECONDARY};default:return{type:r.F.PORTRAIT_PRIMARY}}})()}throwUnsupportedError(){throw this.unavailable("Screen Orientation API not available in this browser.")}}}}]);