"use strict";(globalThis.webpackChunk_plex_client_qt=globalThis.webpackChunk_plex_client_qt||[]).push([["packages_app_components_player_WebglPhotoPlayer_tsx"],{10068:(e,t,i)=>{i.r(t),i.d(t,{default:()=>u});var s=i(56228),r=i(56827),a=i(93221),n=i(82357),o=i(30225),h=i(46990),l=i(93417);class u extends s.Z.Component{constructor(){super(...arguments),this.playerName="WebGL Photo Player",this.metricsPlayer=n._7.Photo,this._isPaused=!1,this._isBuffering=!1}static _template(){return{PhotoViewerWebgl:{type:h.Z,showClock:!1}}}get playableType(){return r.Qq.Photo}get paused(){return this._isPaused}get duration(){return 0}get currentTime(){return 0}get isBuffering(){return this._isBuffering}get isSuspended(){return!1}get _viewer(){return this.tag("PhotoViewerWebgl")}setSource(e){this._src=e}play(){this._isPaused=!1}pause(){this._isPaused=!0}stop(){}getSeekableRanges(){}async getBandwidthEstimate(){}open(){var e;this._src&&this._src!==(null===(e=this._viewer.item)||void 0===e?void 0:e.imageUrl)&&(this._isBuffering=!0,this.onIsBufferingChanged&&this.onIsBufferingChanged(!0),this._viewer.item={imageUrl:this._src,blurImageUrl:(0,a.a3)(this._src,"blur",40),displayType:o.M.Center})}seekTo(){}configureDrm(){}suspend(){}unsuspend(){}dispose(){}_init(){this._viewer.onImageLoaded=e=>{var t,i,s;(this._isBuffering=!1,null===(t=this.onIsBufferingChanged)||void 0===t||t.call(this,!1),e)?null===(i=this.onError)||void 0===i||i.call(this,{code:-1,message:"Failed to load image!",reason:l.S.PhotoFailedToOpen}):null===(s=this.onLoaded)||void 0===s||s.call(this)}}_attach(){this.onInitialized&&this.onInitialized(),this._viewer.show()}_detach(){this._viewer.hide(),this.onDestroyed&&this.onDestroyed()}}}}]);