1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6328],{93934:(e,t,r)=>{let a,s;var i=Object.create,n=Object.defineProperty,l=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,p=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,h=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of o(t))u.call(e,s)||s===r||n(e,s,{get:()=>t[s],enumerable:!(a=l(t,s))||a.enumerable});return e},y=(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},c={},d={default:()=>P};for(var m in d)n(c,m,{get:d[m],enumerable:!0});e.exports=h(n({},"__esModule",{value:!0}),c);var f=(s=null!=(a=r(14232))?i(p(a)):{},h(a&&a.__esModule?s:n(s,"default",{value:a,enumerable:!0}),a)),g=r(24657),b=r(73443);class P extends f.Component{constructor(){super(...arguments),y(this,"callPlayer",g.callPlayer),y(this,"onDurationChange",()=>{let e=this.getDuration();this.props.onDuration(e)}),y(this,"mute",()=>{this.callPlayer("setMuted",!0)}),y(this,"unmute",()=>{this.callPlayer("setMuted",!1)}),y(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){let{controls:t,config:r,onError:a,playing:s}=this.props,[,i]=e.match(b.MATCH_URL_DAILYMOTION);this.player?this.player.load(i,{start:(0,g.parseStartTime)(e),autoplay:s}):(0,g.getSDK)("https://api.dmcdn.net/all.js","DM","dmAsyncInit",e=>e.player).then(s=>{if(!this.container)return;let n=s.player;this.player=new n(this.container,{width:"100%",height:"100%",video:i,params:{controls:t,autoplay:this.props.playing,mute:this.props.muted,start:(0,g.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 f.default.createElement("div",{style:{width:"100%",height:"100%",display:e}},f.default.createElement("div",{ref:this.ref}))}}y(P,"displayName","DailyMotion"),y(P,"canPlay",b.canPlay.dailymotion),y(P,"loopOnEnded",!0)}}]); 2//# sourceMappingURL=reactPlayerDailyMotion.5445642d4b590202.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.