PageSourceSearch

https://web.plant-for-the-planet.org/_next/static/chunks/reactPlayerTwitch.e85213329cdb913b.js

js plant-for-the-planet.org collected 2026-09-24 08:30:35 UTC 3,125 bytes, 2 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="184bbe93-fcb8-4026-9bf4-a9c668328208",e._sentryDebugIdIdentifier="sentry-dbid-184bbe93-fcb8-4026-9bf4-a9c668328208")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2042],{46627:(e,t,r)=>{var s=Object.create,a=Object.defineProperty,l=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,i=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,p=(e,t,r,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of n(t))o.call(e,i)||i===r||a(e,i,{get:()=>t[i],enumerable:!(s=l(t,i))||s.enumerable});return e},d=(e,t,r)=>(((e,t,r)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r),r),h={};((e,t)=>{for(var r in t)a(e,r,{get:t[r],enumerable:!0})})(h,{default:()=>b}),e.exports=p(a({},"__esModule",{value:!0}),h);var y=((e,t,r)=>(r=null!=e?s(i(e)):{},p(!t&&e&&e.__esModule?r:a(r,"default",{value:e,enumerable:!0}),e)))(r(14232)),u=r(88352),c=r(41968);class b extends y.Component{constructor(){super(...arguments),d(this,"callPlayer",u.callPlayer),d(this,"playerID",this.props.config.playerId||`twitch-player-${(0,u.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){let{playsinline:r,onError:s,config:a,controls:l}=this.props,n=c.MATCH_URL_TWITCH_CHANNEL.test(e),i=n?e.match(c.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(c.MATCH_URL_TWITCH_VIDEO)[1];if(t)return void(n?this.player.setChannel(i):this.player.setVideo("v"+i));(0,u.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:r,autoplay:this.props.playing,muted:this.props.muted,controls:!!n||l,time:(0,u.parseStartTime)(e),...a.options});let{READY:s,PLAYING:o,PAUSE:p,ENDED:d,ONLINE:h,OFFLINE:y,SEEK:c}=t.Player;this.player.addEventListener(s,this.props.onReady),this.player.addEventListener(o,this.props.onPlay),this.player.addEventListener(p,this.props.onPause),this.player.addEventListener(d,this.props.onEnded),this.player.addEventListener(c,this.props.onSeek),this.player.addEventListener(h,this.props.onLoaded),this.player.addEventListener(y,this.props.onLoaded)},s)}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 y.default.createElement("div",{style:{width:"100%",height:"100%"},id:this.playerID})}}d(b,"displayName","Twitch"),d(b,"canPlay",c.canPlay.twitch),d(b,"loopOnEnded",!0)}}]);
2//# sourceMappingURL=reactPlayerTwitch.e85213329cdb913b.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.