module.exports=[572701,(a,b,c)=>{let d,e,f;var g=Object.create,h=Object.defineProperty,i=Object.getOwnPropertyDescriptor,j=Object.getOwnPropertyNames,k=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,m=(a,b,c,d)=>{if(b&&"object"==typeof b||"function"==typeof b)for(let e of j(b))l.call(a,e)||e===c||h(a,e,{get:()=>b[e],enumerable:!(d=i(b,e))||d.enumerable});return a},n=(a,b,c)=>{let d;return(d="symbol"!=typeof b?b+"":b)in a?h(a,d,{enumerable:!0,configurable:!0,writable:!0,value:c}):a[d]=c,c},o={},p={default:()=>u};for(var q in p)h(o,q,{get:p[q],enumerable:!0});b.exports=m(h({},"__esModule",{value:!0}),o);var r=(f=null!=(d=a.r(572131))?g(k(d)):{},m(!e&&d&&d.__esModule?f:h(f,"default",{value:d,enumerable:!0}),d)),s=a.r(187287),t=a.r(441795);class u extends r.Component{constructor(){super(...arguments),n(this,"callPlayer",s.callPlayer),n(this,"playerID",this.props.config.playerId||`wistia-player-${(0,s.randomString)()}`),n(this,"onPlay",(...a)=>this.props.onPlay(...a)),n(this,"onPause",(...a)=>this.props.onPause(...a)),n(this,"onSeek",(...a)=>this.props.onSeek(...a)),n(this,"onEnded",(...a)=>this.props.onEnded(...a)),n(this,"onPlaybackRateChange",(...a)=>this.props.onPlaybackRateChange(...a)),n(this,"mute",()=>{this.callPlayer("mute")}),n(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(a){let{playing:b,muted:c,controls:d,onReady:e,config:f,onError:g}=this.props;(0,s.getSDK)("https://fast.wistia.com/assets/external/E-v1.js","Wistia").then(a=>{f.customControls&&f.customControls.forEach(b=>a.defineControl(b)),window._wq=window._wq||[],window._wq.push({id:this.playerID,options:{autoPlay:b,silentAutoPlay:"allow",muted:c,controlsVisibleOnLoad:d,fullscreenButton:d,playbar:d,playbackRateControl:d,qualityControl:d,volumeControl:d,settingsControl:d,smallPlayButton:d,...f.options},onReady:a=>{this.player=a,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),e()}})},g)}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(a,b=!0){this.callPlayer("time",a),b||this.pause()}setVolume(a){this.callPlayer("volume",a)}setPlaybackRate(a){this.callPlayer("playbackRate",a)}getDuration(){return this.callPlayer("duration")}getCurrentTime(){return this.callPlayer("time")}getSecondsLoaded(){return null}render(){let{url:a}=this.props,b=a&&a.match(t.MATCH_URL_WISTIA)[1],c=`wistia_embed wistia_async_${b}`;return r.default.createElement("div",{id:this.playerID,key:b,className:c,style:{width:"100%",height:"100%"}})}}n(u,"displayName","Wistia"),n(u,"canPlay",t.canPlay.wistia),n(u,"loopOnEnded",!0)}];

//# sourceMappingURL=node_modules_react-player_lazy_players_Wistia_ea442148.js.map