module.exports=[219848,(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,"duration",null),n(this,"currentTime",null),n(this,"secondsLoaded",null),n(this,"mute",()=>{}),n(this,"unmute",()=>{}),n(this,"ref",a=>{this.iframe=a})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(a){(0,s.getSDK)("https://widget.mixcloud.com/media/js/widgetApi.js","Mixcloud").then(a=>{this.player=a.PlayerWidget(this.iframe),this.player.ready.then(()=>{this.player.events.play.on(this.props.onPlay),this.player.events.pause.on(this.props.onPause),this.player.events.ended.on(this.props.onEnded),this.player.events.error.on(this.props.error),this.player.events.progress.on((a,b)=>{this.currentTime=a,this.duration=b}),this.props.onReady()})},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(a,b=!0){this.callPlayer("seek",a),b||this.pause()}setVolume(a){}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return null}render(){let{url:a,config:b}=this.props,c=a.match(t.MATCH_URL_MIXCLOUD)[1],d=(0,s.queryString)({...b.options,feed:`/${c}/`});return r.default.createElement("iframe",{key:c,ref:this.ref,style:{width:"100%",height:"100%"},src:`https://player-widget.mixcloud.com/widget/iframe/?${d}`,frameBorder:"0",allow:"autoplay"})}}n(u,"displayName","Mixcloud"),n(u,"canPlay",t.canPlay.mixcloud),n(u,"loopOnEnded",!0)}];

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