1(this["webpackJsonpfoodiary-reactjs-dashboard"]=this["webpackJsonpfoodiary-reactjs-dashboard"]||[]).push([[13],{829:function(e,t,a){var n,o=a(258).default,s=Object.create,l=Object.defineProperty,i=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,u=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty,c=(e,t,a,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let o of r(t))p.call(e,o)||o===a||l(e,o,{get:()=>t[o],enumerable:!(n=i(t,o))||n.enumerable});return e},h=(e,t,a)=>(((e,t,a)=>{t in e?l(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)l(e,a,{get:t[a],enumerable:!0})})(y,{default:()=>m}),e.exports=(n=y,c(l({},"__esModule",{value:!0}),n));var d=((e,t,a)=>(a=null!=e?s(u(e)):{},c(!t&&e&&e.__esModule?a:l(a,"default",{value:e,enumerable:!0}),e)))(a(1)),b=a(276),P=a(510);class m extends d.Component{constructor(){var e;super(...arguments),e=this,h(this,"callPlayer",b.callPlayer),h(this,"playerID",this.props.config.playerId||"".concat("wistia-player-").concat((0,b.randomString)())),h(this,"onPlay",function(){return e.props.onPlay(...arguments)}),h(this,"onPause",function(){return e.props.onPause(...arguments)}),h(this,"onSeek",function(){return e.props.onSeek(...arguments)}),h(this,"onEnded",function(){return e.props.onEnded(...arguments)}),h(this,"onPlaybackRateChange",function(){return e.props.onPlaybackRateChange(...arguments)}),h(this,"mute",()=>{this.callPlayer("mute")}),h(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const t=this.props,a=t.playing,n=t.muted,s=t.controls,l=t.onReady,i=t.config,r=t.onError;(0,b.getSDK)("https://fast.wistia.com/assets/external/E-v1.js","Wistia").then(e=>{i.customControls&&i.customControls.forEach(t=>e.defineControl(t)),window._wq=window._wq||[],window._wq.push({id:this.playerID,options:o({autoPlay:a,silentAutoPlay:"allow",muted:n,controlsVisibleOnLoad:s,fullscreenButton:s,playbar:s,playbackRateControl:s,qualityControl:s,volumeControl:s,settingsControl:s,smallPlayButton:s},i.options),onReady:e=>{this.player=e,this.unbind(),this.player.bind("play",this.onPlay),this.player.bind("pause",this.onPause),this.player.bind("seek",this.onSeek),this.player.bind("end",this.onEnded),this.player.bind("playbackratechange",this.onPlaybackRateChange),l()}})},r)}unbind(){this.player.unbind("play",this.onPlay),this.player.unbind("pause",this.onPause),this.player.unbind("seek",this.onSeek),this.player.unbind("end",this.onEnded),this.player.unbind("playbackratechange",this.onPlaybackRateChange)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.unbind(),this.callPlayer("remove")}seekTo(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.callPlayer("time",e),t||this.pause()}setVolume(e){this.callPlayer("volume",e)}setPlaybackRate(e){this.callPlayer("playbackRate",e)}getDuration(){return this.callPlayer("duration")}getCurrentTime(){return this.callPlayer("time")}getSecondsLoaded(){return null}render(){const e=this.props.url,t=e&&e.match(P.MATCH_URL_WISTIA)[1],a="wistia_embed wistia_async_".concat(t);return d.default.createElement("div",{id:this.playerID,key:t,className:a,style:{width:"100%",height:"100%"}})}}h(m,"displayName","Wistia"),h(m,"canPlay",P.canPlay.wistia),h(m,"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.