(this.webpackJsonpvertical=this.webpackJsonpvertical||[]).push([[94],{1692:function(e,t,n){var r,a=n(1110),o=n(1158),i=n(1099),u=n(1100),l=n(1097),p=n(1101),s=n(1102),c=n(1094),y=Object.create,f=Object.defineProperty,d=Object.getOwnPropertyDescriptor,h=Object.getOwnPropertyNames,v=Object.getPrototypeOf,m=Object.prototype.hasOwnProperty,g=function(e,t,n,r){if(t&&"object"===typeof t||"function"===typeof t){var a,o=c(h(t));try{var i=function(){var o=a.value;m.call(e,o)||o===n||f(e,o,{get:function(){return t[o]},enumerable:!(r=d(t,o))||r.enumerable})};for(o.s();!(a=o.n()).done;)i()}catch(u){o.e(u)}finally{o.f()}}return e},b=function(e,t,n){return function(e,t,n){t in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n}(e,"symbol"!==typeof t?t+"":t,n),n},k={};!function(e,t){for(var n in t)f(e,n,{get:t[n],enumerable:!0})}(k,{default:function(){return D}}),e.exports=(r=k,g(f({},"__esModule",{value:!0}),r));var P=function(e,t,n){return n=null!=e?y(v(e)):{},g(!t&&e&&e.__esModule?n:f(n,"default",{value:e,enumerable:!0}),e)}(n(2)),O=n(1098),w=n(1109),D=function(e){"use strict";s(n,e);var t=p(n);function n(){var e;return i(this,n),e=t.apply(this,arguments),b(l(e),"callPlayer",O.callPlayer),b(l(e),"onDurationChange",(function(){var t=e.getDuration();e.props.onDuration(t)})),b(l(e),"mute",(function(){e.callPlayer("setMuted",!0)})),b(l(e),"unmute",(function(){e.callPlayer("setMuted",!1)})),b(l(e),"ref",(function(t){e.container=t})),e}return u(n,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(e){var t=this,n=this.props,r=n.controls,i=n.config,u=n.onError,l=n.playing,p=e.match(w.MATCH_URL_DAILYMOTION),s=o(p,2)[1];this.player?this.player.load(s,{start:(0,O.parseStartTime)(e),autoplay:l}):(0,O.getSDK)("https://api.dmcdn.net/all.js","DM","dmAsyncInit",(function(e){return e.player})).then((function(n){if(t.container){var o=n.player;t.player=new o(t.container,{width:"100%",height:"100%",video:s,params:a({controls:r,autoplay:t.props.playing,mute:t.props.muted,start:(0,O.parseStartTime)(e),origin:window.location.origin},i.params),events:{apiready:t.props.onReady,seeked:function(){return t.props.onSeek(t.player.currentTime)},video_end:t.props.onEnded,durationchange:t.onDurationChange,pause:t.props.onPause,playing:t.props.onPlay,waiting:t.props.onBuffer,error:function(e){return u(e)}}})}}),u)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.callPlayer("seek",e),t||this.pause()}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",e)}},{key:"getDuration",value:function(){return this.player.duration||null}},{key:"getCurrentTime",value:function(){return this.player.currentTime}},{key:"getSecondsLoaded",value:function(){return this.player.bufferedTime}},{key:"render",value:function(){var e={width:"100%",height:"100%",display:this.props.display};return P.default.createElement("div",{style:e},P.default.createElement("div",{ref:this.ref}))}}]),n}(P.Component);b(D,"displayName","DailyMotion"),b(D,"canPlay",w.canPlay.dailymotion),b(D,"loopOnEnded",!0)}}]);