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