(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,599947,(e,t,r)=>{let o,s,l;var a=Object.create,i=Object.defineProperty,n=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,u=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty,d=(e,t,r,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of p(t))h.call(e,s)||s===r||i(e,s,{get:()=>t[s],enumerable:!(o=n(t,s))||o.enumerable});return e},c=(e,t,r)=>{let o;return(o="symbol"!=typeof t?t+"":t)in e?i(e,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[o]=r,r},y={},m={default:()=>O};for(var f in m)i(y,f,{get:m[f],enumerable:!0});t.exports=d(i({},"__esModule",{value:!0}),y);var g=(l=null!=(o=e.r(271645))?a(u(o)):{},d(!s&&o&&o.__esModule?l:i(l,"default",{value:o,enumerable:!0}),o)),b=e.r(762406),P=e.r(933066);class O extends g.Component{constructor(){super(...arguments),c(this,"callPlayer",b.callPlayer),c(this,"duration",null),c(this,"currentTime",null),c(this,"secondsLoaded",null),c(this,"mute",()=>{}),c(this,"unmute",()=>{}),c(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,b.getSDK)("https://widget.mixcloud.com/media/js/widgetApi.js","Mixcloud").then(e=>{this.player=e.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((e,t)=>{this.currentTime=e,this.duration=t}),this.props.onReady()})},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("seek",e),t||this.pause()}setVolume(e){}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return null}render(){let{url:e,config:t}=this.props,r=e.match(P.MATCH_URL_MIXCLOUD)[1],o=(0,b.queryString)({...t.options,feed:`/${r}/`});return g.default.createElement("iframe",{key:r,ref:this.ref,style:{width:"100%",height:"100%"},src:`https://player-widget.mixcloud.com/widget/iframe/?${o}`,frameBorder:"0",allow:"autoplay"})}}c(O,"displayName","Mixcloud"),c(O,"canPlay",P.canPlay.mixcloud),c(O,"loopOnEnded",!0)}]);