1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="557e9066-afe4-4a36-aad6-40628b1b7ecd",e._sentryDebugIdIdentifier="sentry-dbid-557e9066-afe4-4a36-aad6-40628b1b7ecd")}catch(e){}}();var _global="u">typeof window?window:"u">typeof global?global:"u">typeof self?self:{};_global.SENTRY_RELEASE={id:"57ecc7b471fce630a9a83e03af7702d6977a38be"},(self.webpackChunkopus1io=self.webpackChunkopus1io||[]).push([["40727"],{21400:function(e,t,a){let r,l,s;var o=Object.create,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,d=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,h=(e,t,a,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of p(t))u.call(e,l)||l===a||n(e,l,{get:()=>t[l],enumerable:!(r=i(t,l))||r.enumerable});return e},y=(e,t,a)=>{let r;return(r="symbol"!=typeof t?t+"":t)in e?n(e,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[r]=a,a},c={},b={default:()=>P};for(var f in b)n(c,f,{get:b[f],enumerable:!0});e.exports=h(n({},"__esModule",{value:!0}),c);var g=(s=null!=(r=a(96540))?o(d(r)):{},h(!l&&r&&r.__esModule?s:n(s,"default",{value:r,enumerable:!0}),r)),m=a(75635),w=a(50327);class P extends g.Component{constructor(){super(...arguments),y(this,"callPlayer",m.callPlayer),y(this,"playerID",this.props.config.playerId||`twitch-player-${(0,m.randomString)()}`),y(this,"mute",()=>{this.callPlayer("setMuted",!0)}),y(this,"unmute",()=>{this.callPlayer("setMuted",!1)})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,t){let{playsinline:a,onError:r,config:l,controls:s}=this.props,o=w.MATCH_URL_TWITCH_CHANNEL.test(e),n=o?e.match(w.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(w.MATCH_URL_TWITCH_VIDEO)[1];t?o?this.player.setChannel(n):this.player.setVideo("v"+n):(0,m.getSDK)("https://player.twitch.tv/js/embed/v1.js","Twitch").then(t=>{this.player=new t.Player(this.playerID,{video:o?"":n,channel:o?n:"",height:"100%",width:"100%",playsinline:a,autoplay:this.props.playing,muted:this.props.muted,controls:!!o||s,time:(0,m.parseStartTime)(e),...l.options});let{READY:r,PLAYING:i,PAUSE:p,ENDED:d,ONLINE:u,OFFLINE:h,SEEK:y}=t.Player;this.player.addEventListener(r,this.props.onReady),this.player.addEventListener(i,this.props.onPlay),this.player.addEventListener(p,this.props.onPause),this.player.addEventListener(d,this.props.onEnded),this.player.addEventListener(y,this.props.onSeek),this.player.addEventListener(u,this.props.onLoaded),this.player.addEventListener(h,this.props.onLoaded)},r)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.callPlayer("pause")}seekTo(e,t=!0){this.callPlayer("seek",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return null}render(){return g.default.createElement("div",{style:{width:"100%",height:"100%"},id:this.playerID})}}y(P,"displayName","Twitch"),y(P,"canPlay",w.canPlay.twitch),y(P,"loopOnEnded",!0)}}]); 2//# sourceMappingURL=reactPlayerTwitch.b45f2ccc.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.