(this.webpackJsonpvertical=this.webpackJsonpvertical||[]).push([[98],{1693:function(e,n,t){var r,o=t(1110),a=t(1099),u=t(1100),l=t(1097),i=t(1101),c=t(1102),s=t(1094),p=Object.create,f=Object.defineProperty,y=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,v=Object.getPrototypeOf,m=Object.prototype.hasOwnProperty,h=function(e,n,t,r){if(n&&"object"===typeof n||"function"===typeof n){var o,a=s(d(n));try{var u=function(){var a=o.value;m.call(e,a)||a===t||f(e,a,{get:function(){return n[a]},enumerable:!(r=y(n,a))||r.enumerable})};for(a.s();!(o=a.n()).done;)u()}catch(l){a.e(l)}finally{a.f()}}return e},g=function(e,n,t){return function(e,n,t){n in e?f(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t}(e,"symbol"!==typeof n?n+"":n,t),t},b={};!function(e,n){for(var t in n)f(e,t,{get:n[t],enumerable:!0})}(b,{default:function(){return O}}),e.exports=(r=b,h(f({},"__esModule",{value:!0}),r));var k=function(e,n,t){return t=null!=e?p(v(e)):{},h(!n&&e&&e.__esModule?t:f(t,"default",{value:e,enumerable:!0}),e)}(t(2)),P=t(1098),w=t(1109),O=function(e){"use strict";c(t,e);var n=i(t);function t(){var e;return a(this,t),e=n.apply(this,arguments),g(l(e),"callPlayer",P.callPlayer),g(l(e),"duration",null),g(l(e),"currentTime",null),g(l(e),"secondsLoaded",null),g(l(e),"mute",(function(){})),g(l(e),"unmute",(function(){})),g(l(e),"ref",(function(n){e.iframe=n})),e}return u(t,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(e){var n=this;(0,P.getSDK)("https://widget.mixcloud.com/media/js/widgetApi.js","Mixcloud").then((function(e){n.player=e.PlayerWidget(n.iframe),n.player.ready.then((function(){n.player.events.play.on(n.props.onPlay),n.player.events.pause.on(n.props.onPause),n.player.events.ended.on(n.props.onEnded),n.player.events.error.on(n.props.error),n.player.events.progress.on((function(e,t){n.currentTime=e,n.duration=t})),n.props.onReady()}))}),this.props.onError)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.callPlayer("seek",e),n||this.pause()}},{key:"setVolume",value:function(e){}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var e=this.props,n=e.url,t=e.config,r=n.match(w.MATCH_URL_MIXCLOUD)[1],a=(0,P.queryString)(o({},t.options,{feed:"/".concat(r,"/")}));return k.default.createElement("iframe",{key:r,ref:this.ref,style:{width:"100%",height:"100%"},src:"https://www.mixcloud.com/widget/iframe/?".concat(a),frameBorder:"0",allow:"autoplay"})}}]),t}(k.Component);g(O,"displayName","Mixcloud"),g(O,"canPlay",w.canPlay.mixcloud),g(O,"loopOnEnded",!0)}}]);