module.exports=[965831,(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,"onDurationChange",()=>{let a=this.getDuration();this.props.onDuration(a)}),n(this,"mute",()=>{this.callPlayer("setMuted",!0)}),n(this,"unmute",()=>{this.callPlayer("setMuted",!1)}),n(this,"ref",a=>{this.container=a})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(a){let{controls:b,config:c,onError:d,playing:e}=this.props,[,f]=a.match(t.MATCH_URL_DAILYMOTION);this.player?this.player.load(f,{start:(0,s.parseStartTime)(a),autoplay:e}):(0,s.getSDK)("https://api.dmcdn.net/all.js","DM","dmAsyncInit",a=>a.player).then(e=>{if(!this.container)return;let g=e.player;this.player=new g(this.container,{width:"100%",height:"100%",video:f,params:{controls:b,autoplay:this.props.playing,mute:this.props.muted,start:(0,s.parseStartTime)(a),origin:window.location.origin,...c.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:a=>d(a)}})},d)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(a,b=!0){this.callPlayer("seek",a),b||this.pause()}setVolume(a){this.callPlayer("setVolume",a)}getDuration(){return this.player.duration||null}getCurrentTime(){return this.player.currentTime}getSecondsLoaded(){return this.player.bufferedTime}render(){let{display:a}=this.props;return r.default.createElement("div",{style:{width:"100%",height:"100%",display:a}},r.default.createElement("div",{ref:this.ref}))}}n(u,"displayName","DailyMotion"),n(u,"canPlay",t.canPlay.dailymotion),n(u,"loopOnEnded",!0)}];

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