(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,926519,(e,t,r)=>{let a,o,i;var s=Object.create,n=Object.defineProperty,l=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,u=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty,c=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of p(t))h.call(e,o)||o===r||n(e,o,{get:()=>t[o],enumerable:!(a=l(t,o))||a.enumerable});return e},d=(e,t,r)=>{let a;return(a="symbol"!=typeof t?t+"":t)in e?n(e,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[a]=r,r},y={},m={default:()=>O};for(var f in m)n(y,f,{get:m[f],enumerable:!0});t.exports=c(n({},"__esModule",{value:!0}),y);var g=(i=null!=(a=e.r(271645))?s(u(a)):{},c(!o&&a&&a.__esModule?i:n(i,"default",{value:a,enumerable:!0}),a)),b=e.r(762406),P=e.r(933066);class O extends g.Component{constructor(){super(...arguments),d(this,"callPlayer",b.callPlayer),d(this,"onDurationChange",()=>{let e=this.getDuration();this.props.onDuration(e)}),d(this,"mute",()=>{this.callPlayer("setMuted",!0)}),d(this,"unmute",()=>{this.callPlayer("setMuted",!1)}),d(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){let{controls:t,config:r,onError:a,playing:o}=this.props,[,i]=e.match(P.MATCH_URL_DAILYMOTION);this.player?this.player.load(i,{start:(0,b.parseStartTime)(e),autoplay:o}):(0,b.getSDK)("https://api.dmcdn.net/all.js","DM","dmAsyncInit",e=>e.player).then(o=>{if(!this.container)return;let s=o.player;this.player=new s(this.container,{width:"100%",height:"100%",video:i,params:{controls:t,autoplay:this.props.playing,mute:this.props.muted,start:(0,b.parseStartTime)(e),origin:window.location.origin,...r.params},events:{apiready:this.props.onReady,seeked:()=>this.props.onSeek(this.player.currentTime),video_end:this.props.onEnded,durationchange:this.onDurationChange,pause:this.props.onPause,playing:this.props.onPlay,waiting:this.props.onBuffer,error:e=>a(e)}})},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("seek",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.player.duration||null}getCurrentTime(){return this.player.currentTime}getSecondsLoaded(){return this.player.bufferedTime}render(){let{display:e}=this.props;return g.default.createElement("div",{style:{width:"100%",height:"100%",display:e}},g.default.createElement("div",{ref:this.ref}))}}d(O,"displayName","DailyMotion"),d(O,"canPlay",P.canPlay.dailymotion),d(O,"loopOnEnded",!0)}]);