PageSourceSearch

https://www.deseret.com/pf/dist/components/combinations/reactPlayerTwitch.chunk.js?d=389&mxId=00000000

js deseret.com collected 2026-09-24 08:29:29 UTC 2,706 bytes, 1 lines download raw bytes

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