1(this["webpackJsonpscpns-fe"]=this["webpackJsonpscpns-fe"]||[]).push([[12],{1132:function(e,t,s){var a,r=s(373),l=Object.create,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,p=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty,c=(e,t,s,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of o(t))h.call(e,r)||r===s||n(e,r,{get:()=>t[r],enumerable:!(a=i(t,r))||a.enumerable});return e},d=(e,t,s)=>(((e,t,s)=>{t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s})(e,"symbol"!=typeof t?t+"":t,s),s),y={};((e,t)=>{for(var s in t)n(e,s,{get:t[s],enumerable:!0})})(y,{default:()=>E}),e.exports=(a=y,c(n({},"__esModule",{value:!0}),a));var u=((e,t,s)=>(s=null!=e?l(p(e)):{},c(e&&e.__esModule?s:n(s,"default",{value:e,enumerable:!0}),e)))(s(0)),m=s(239),P=s(558);class E extends u.Component{constructor(){super(...arguments),d(this,"callPlayer",m.callPlayer),d(this,"playerID",this.props.config.playerId||"".concat("twitch-player-").concat((0,m.randomString)())),d(this,"mute",()=>{this.callPlayer("setMuted",!0)}),d(this,"unmute",()=>{this.callPlayer("setMuted",!1)})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,t){const{playsinline:s,onError:a,config:l,controls:n}=this.props,i=P.MATCH_URL_TWITCH_CHANNEL.test(e),o=i?e.match(P.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(P.MATCH_URL_TWITCH_VIDEO)[1];t?i?this.player.setChannel(o):this.player.setVideo("v"+o):(0,m.getSDK)("https://player.twitch.tv/js/embed/v1.js","Twitch").then(t=>{this.player=new t.Player(this.playerID,r({video:i?"":o,channel:i?o:"",height:"100%",width:"100%",playsinline:s,autoplay:this.props.playing,muted:this.props.muted,controls:!!i||n,time:(0,m.parseStartTime)(e)},l.options));const{READY:a,PLAYING:p,PAUSE:h,ENDED:c,ONLINE:d,OFFLINE:y,SEEK:u}=t.Player;this.player.addEventListener(a,this.props.onReady),this.player.addEventListener(p,this.props.onPlay),this.player.addEventListener(h,this.props.onPause),this.player.addEventListener(c,this.props.onEnded),this.player.addEventListener(u,this.props.onSeek),this.player.addEventListener(d,this.props.onLoaded),this.player.addEventListener(y,this.props.onLoaded)},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.callPlayer("pause")}seekTo(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];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 u.default.createElement("div",{style:{width:"100%",height:"100%"},id:this.playerID})}}d(E,"displayName","Twitch"),d(E,"canPlay",P.canPlay.twitch),d(E,"loopOnEnded",!0)}}]);
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.