1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2546],{76479: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){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 j(a,b){return(j=Object.setPrototypeOf||function(a,b){return a.__proto__=b,a})(a,b)}function k(a){if(void 0===a)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function l(a){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)})(a)}function m(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}var n=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&&j(a,b)}(q,a);var b,c,h,n,o,p=(b=q,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=l(b);if(c){var h=l(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:k(a)});function q(){var a;!function(a,b){if(!(a instanceof b))throw TypeError("Cannot call a class as a function")}(this,q);for(var b=arguments.length,c=Array(b),d=0;d<b;d++)c[d]=arguments[d];return a=p.call.apply(p,[this].concat(c)),m(k(a),"callPlayer",f.callPlayer),m(k(a),"duration",null),m(k(a),"currentTime",null),m(k(a),"secondsLoaded",null),m(k(a),"mute",function(){a.callPlayer("mute")}),m(k(a),"unmute",function(){a.callPlayer("unmute")}),m(k(a),"ref",function(b){a.iframe=b}),a}return h=q,n=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(a){var b=this;(0,f.getSDK)("https://cdn.embed.ly/player-0.1.0.min.js","playerjs").then(function(a){b.iframe&&(b.player=new a.Player(b.iframe),b.player.setLoop(b.props.loop),b.player.on("ready",b.props.onReady),b.player.on("play",b.props.onPlay),b.player.on("pause",b.props.onPause),b.player.on("seeked",b.props.onSeek),b.player.on("ended",b.props.onEnded),b.player.on("error",b.props.onError),b.player.on("timeupdate",function(a){var c=a.duration,d=a.seconds;b.duration=c,b.currentTime=d}),b.player.on("buffered",function(a){var c=a.percent;b.duration&&(b.secondsLoaded=b.duration*c)}),b.props.muted&&b.player.mute())},this.props.onError)}},{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("setCurrentTime",a)}},{key:"setVolume",value:function(a){this.callPlayer("setVolume",100*a)}},{key:"setLoop",value:function(a){this.callPlayer("setLoop",a)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.secondsLoaded}},{key:"render",value:function(){var a=this.props.url.match(g.MATCH_URL_STREAMABLE)[1];return e.default.createElement("iframe",{ref:this.ref,src:"https://streamable.com/o/".concat(a),frameBorder:"0",scrolling:"no",style:{width:"100%",height:"100%"},allow:"encrypted-media; autoplay; fullscreen;"})}}],i(h.prototype,n),o&&i(h,o),q}(e.Component);b.default=n,m(n,"displayName","Streamable"),m(n,"canPlay",g.canPlay.streamable)}}]) 2//# sourceMappingURL=reactPlayerStreamable.06f50c1544318ba5.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.