PageSourceSearch

https://coach.foodiary.app/static/js/reactPlayerTwitch.aa5f8d52.chunk.js

js foodiary.app collected 2026-10-04 22:58:05 UTC 2,841 bytes, 1 lines download raw bytes

1(this["webpackJsonpfoodiary-reactjs-dashboard"]=this["webpackJsonpfoodiary-reactjs-dashboard"]||[]).push([[10],{830:function(e,t,a){var r,s=a(258).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},c=(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),y={};((e,t)=>{for(var a in t)n(e,a,{get:t[a],enumerable:!0})})(y,{default:()=>E}),e.exports=(r=y,d(n({},"__esModule",{value:!0}),r));var u=((e,t,a)=>(a=null!=e?l(p(e)):{},d(!t&&e&&e.__esModule?a:n(a,"default",{value:e,enumerable:!0}),e)))(a(1)),m=a(276),P=a(510);class E extends u.Component{constructor(){super(...arguments),c(this,"callPlayer",m.callPlayer),c(this,"playerID",this.props.config.playerId||"".concat("twitch-player-").concat((0,m.randomString)())),c(this,"mute",()=>{this.callPlayer("setMuted",!0)}),c(this,"unmute",()=>{this.callPlayer("setMuted",!1)})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,t){const a=this.props,r=a.playsinline,l=a.onError,n=a.config,o=a.controls,i=P.MATCH_URL_TWITCH_CHANNEL.test(e),p=i?e.match(P.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(P.MATCH_URL_TWITCH_VIDEO)[1];t?i?this.player.setChannel(p):this.player.setVideo("v"+p):(0,m.getSDK)("https://player.twitch.tv/js/embed/v1.js","Twitch").then(t=>{this.player=new t.Player(this.playerID,s({video:i?"":p,channel:i?p:"",height:"100%",width:"100%",playsinline:r,autoplay:this.props.playing,muted:this.props.muted,controls:!!i||o,time:(0,m.parseStartTime)(e)},n.options));const a=t.Player,l=a.READY,h=a.PLAYING,d=a.PAUSE,c=a.ENDED,y=a.ONLINE,u=a.OFFLINE,P=a.SEEK;this.player.addEventListener(l,this.props.onReady),this.player.addEventListener(h,this.props.onPlay),this.player.addEventListener(d,this.props.onPause),this.player.addEventListener(c,this.props.onEnded),this.player.addEventListener(P,this.props.onSeek),this.player.addEventListener(y,this.props.onLoaded),this.player.addEventListener(u,this.props.onLoaded)},l)}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})}}c(E,"displayName","Twitch"),c(E,"canPlay",P.canPlay.twitch),c(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.