File: /var/www/vhost/disk-apps/pwa.sports-crowd.com/www/6348.420c043e7c5b6062.js
"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[6348],{26348:(c,s,e)=>{e.r(s),e.d(s,{ScreenOrientationWeb:()=>a});var n=e(73308),o=e(22126),r=e(74544);class a extends o.E_{constructor(){var t;super(),t=this,this.isSupported="orientation"in screen,this.handleOrientationChange=(0,n.A)(function*(){const p={type:(yield t.getCurrentOrientation()).type};t.notifyListeners("screenOrientationChange",p)}),this.isSupported&&screen.orientation.addEventListener("change",this.handleOrientationChange)}lock(t){var i=this;return(0,n.A)(function*(){i.isSupported||i.throwUnsupportedError(),yield screen.orientation.lock(t.type)})()}unlock(){var t=this;return(0,n.A)(function*(){t.isSupported||t.throwUnsupportedError(),screen.orientation.unlock()})()}getCurrentOrientation(){var t=this;return(0,n.A)(function*(){switch(t.isSupported||t.throwUnsupportedError(),screen.orientation.type){case"landscape-primary":return{type:r.l.LANDSCAPE_PRIMARY};case"landscape-secondary":return{type:r.l.LANDSCAPE_SECONDARY};case"portrait-secondary":return{type:r.l.PORTRAIT_SECONDARY};default:return{type:r.l.PORTRAIT_PRIMARY}}})()}throwUnsupportedError(){throw this.unavailable("Screen Orientation API not available in this browser.")}}}}]);