PageSourceSearch

https://onguardv3.com.au/static/js/reactPlayerTwitch.5d95f8d6.chunk.js

js onguardv3.com.au collected 2026-09-24 12:34:27 UTC 2,806 bytes, 1 lines download raw bytes

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