1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7596],{45315:function(e,t,r){var a,i,s=Object.create,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,p=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,h=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,c=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of l(t))u.call(e,i)||i===r||n(e,i,{get:()=>t[i],enumerable:!(a=o(t,i))||a.enumerable});return e},y=(e,t,r)=>(h(e,"symbol"!=typeof t?t+"":t,r),r),d={};((e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})})(d,{default:()=>b}),e.exports=c(n({},"__esModule",{value:!0}),d);var m=(i=null!=(a=r(86655))?s(p(a)):{},c(a&&a.__esModule?i:n(i,"default",{value:a,enumerable:!0}),a)),f=r(23200),g=r(18287);class b extends m.Component{componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){let{controls:t,config:r,onError:a,playing:i}=this.props,[,s]=e.match(g.MATCH_URL_DAILYMOTION);if(this.player){this.player.load(s,{start:(0,f.parseStartTime)(e),autoplay:i});return}(0,f.getSDK)("https://api.dmcdn.net/all.js","DM","dmAsyncInit",e=>e.player).then(i=>{if(!this.container)return;let n=i.player;this.player=new n(this.container,{width:"100%",height:"100%",video:s,params:{controls:t,autoplay:this.props.playing,mute:this.props.muted,start:(0,f.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){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];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 m.default.createElement("div",{style:{width:"100%",height:"100%",display:e}},m.default.createElement("div",{ref:this.ref}))}constructor(){super(...arguments),y(this,"callPlayer",f.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})}}y(b,"displayName","DailyMotion"),y(b,"canPlay",g.canPlay.dailymotion),y(b,"loopOnEnded",!0)}}]);
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.