1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7596],{65134:function(a,b,c){function d(a){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(a)}Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var e=function(a){if(a&&a.__esModule)return a;if(null===a||"object"!==d(a)&&"function"!=typeof a)return{default:a};var b=h();if(b&&b.has(a))return b.get(a);var c={},e=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in a)if(Object.prototype.hasOwnProperty.call(a,f)){var g=e?Object.getOwnPropertyDescriptor(a,f):null;g&&(g.get||g.set)?Object.defineProperty(c,f,g):c[f]=a[f]}return c.default=a,b&&b.set(a,c),c}(c(67294)),f=c(56281),g=c(99790);function h(){if("function"!=typeof WeakMap)return null;var a=new WeakMap;return h=function(){return a},a}function i(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function j(a,b){(null==b||b>a.length)&&(b=a.length);for(var c=0,d=Array(b);c<b;c++)d[c]=a[c];return d}function k(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}function l(a,b){return(l=Object.setPrototypeOf||function(a,b){return a.__proto__=b,a})(a,b)}function m(a){if(void 0===a)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function n(a){return(n=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)})(a)}function o(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}var p=function(a){!function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Super expression must either be null or a function");a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),b&&l(a,b)}(s,a);var b,c,h,p,q,r=(b=s,c=function a(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(b){return!1}}(),function(){var a,e,f,g=n(b);if(c){var h=n(this).constructor;f=Reflect.construct(g,arguments,h)}else f=g.apply(this,arguments);return a=this,e=f,e&&("object"===d(e)||"function"==typeof e)?e:m(a)});function s(){var a;!function(a,b){if(!(a instanceof b))throw TypeError("Cannot call a class as a function")}(this,s);for(var b=arguments.length,c=Array(b),d=0;d<b;d++)c[d]=arguments[d];return a=r.call.apply(r,[this].concat(c)),o(m(a),"callPlayer",f.callPlayer),o(m(a),"onDurationChange",function(){var b=a.getDuration();a.props.onDuration(b)}),o(m(a),"mute",function(){a.callPlayer("setMuted",!0)}),o(m(a),"unmute",function(){a.callPlayer("setMuted",!1)}),o(m(a),"ref",function(b){a.container=b}),a}return h=s,p=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(a){var b,c,d=this,e=this.props,h=e.controls,k=e.config,l=e.onError,m=e.playing,n=(b=a.match(g.MATCH_URL_DAILYMOTION),c=2,function a(b){if(Array.isArray(b))return b}(b)||function a(b,c){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(b)){var d=[],e=!0,f=!1,g=void 0;try{for(var h,i=b[Symbol.iterator]();!(e=(h=i.next()).done)&&(d.push(h.value),!c||d.length!==c);e=!0);}catch(j){f=!0,g=j}finally{try{e||null==i.return||i.return()}finally{if(f)throw g}}return d}}(b,c)||function a(b,c){if(b){if("string"==typeof b)return j(b,c);var d=Object.prototype.toString.call(b).slice(8,-1);if("Object"===d&&b.constructor&&(d=b.constructor.name),"Map"===d||"Set"===d)return Array.from(b);if("Arguments"===d||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d))return j(b,c)}}(b,c)||function a(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[1];if(this.player){this.player.load(n,{start:(0,f.parseStartTime)(a),autoplay:m});return}(0,f.getSDK)("https://api.dmcdn.net/all.js","DM","dmAsyncInit",function(a){return a.player}).then(function(b){if(d.container){var c=b.player;d.player=new c(d.container,{width:"100%",height:"100%",video:n,params:function(a){for(var b=1;b<arguments.length;b++){var c=null!=arguments[b]?arguments[b]:{};
1b%2?i(Object(c),!0).forEach(function(b){o(a,b,c[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(c)):i(Object(c)).forEach(function(b){Object.defineProperty(a,b,Object.getOwnPropertyDescriptor(c,b))})}return a}({controls:h,autoplay:d.props.playing,mute:d.props.muted,start:(0,f.parseStartTime)(a),origin:window.location.origin},k.params),events:{apiready:d.props.onReady,seeked:function(){return d.props.onSeek(d.player.currentTime)},video_end:d.props.onEnded,durationchange:d.onDurationChange,pause:d.props.onPause,playing:d.props.onPlay,waiting:d.props.onBuffer,error:function(a){return l(a)}}})}},l)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(a){this.callPlayer("seek",a)}},{key:"setVolume",value:function(a){this.callPlayer("setVolume",a)}},{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 a=this.props.display;return e.default.createElement("div",{style:{width:"100%",height:"100%",display:a}},e.default.createElement("div",{ref:this.ref}))}}],k(h.prototype,p),q&&k(h,q),s}(e.Component);b.default=p,o(p,"displayName","DailyMotion"),o(p,"canPlay",g.canPlay.dailymotion),o(p,"loopOnEnded",!0)}}]) 2//# sourceMappingURL=reactPlayerDailyMotion.a84f94ac61df3c58.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.