1(self.webpackChunkzepter_web=self.webpackChunkzepter_web||[]).push([[979],{5769:function(e,n,t){var r,o=t(12897).default,u=t(17383).default,a=t(34579).default,l=t(18336).default,i=t(29511).default,c=t(50883).default,s=Object.create,p=Object.defineProperty,f=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,y=Object.getPrototypeOf,m=Object.prototype.hasOwnProperty,h=function(e,n,t,r){if(n&&"object"===typeof n||"function"===typeof n){var o,u=c(d(n));try{var a=function(){var u=o.value;m.call(e,u)||u===t||p(e,u,{get:function(){return n[u]},enumerable:!(r=f(n,u))||r.enumerable})};for(u.s();!(o=u.n()).done;)a()}catch(l){u.e(l)}finally{u.f()}}return e},v=function(e,n,t){return function(e,n,t){n in e?p(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t}(e,"symbol"!==typeof n?n+"":n,t),t},b={};!function(e,n){for(var t in n)p(e,t,{get:n[t],enumerable:!0})}(b,{default:function(){return O}}),e.exports=(r=b,h(p({},"__esModule",{value:!0}),r));var P=function(e,n,t){return t=null!=e?s(y(e)):{},h(!n&&e&&e.__esModule?t:p(t,"default",{value:e,enumerable:!0}),e)}(t(9950)),k=t(24261),g=t(30277),O=function(e){"use strict";function n(){var e;return u(this,n),e=l(this,n,arguments),v(e,"callPlayer",k.callPlayer),v(e,"duration",null),v(e,"currentTime",null),v(e,"fractionLoaded",null),v(e,"mute",(function(){e.setVolume(0)})),v(e,"unmute",(function(){null!==e.props.volume&&e.setVolume(e.props.volume)})),v(e,"ref",(function(n){e.iframe=n})),e}return i(n,e),a(n,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(e,n){var t=this;(0,k.getSDK)("https://w.soundcloud.com/player/api.js","SC").then((function(r){if(t.iframe){var u=r.Widget.Events,a=u.PLAY,l=u.PLAY_PROGRESS,i=u.PAUSE,c=u.FINISH,s=u.ERROR;n||(t.player=r.Widget(t.iframe),t.player.bind(a,t.props.onPlay),t.player.bind(i,(function(){t.duration-t.currentTime<.05||t.props.onPause()})),t.player.bind(l,(function(e){t.currentTime=e.currentPosition/1e3,t.fractionLoaded=e.loadedProgress})),t.player.bind(c,(function(){return t.props.onEnded()})),t.player.bind(s,(function(e){return t.props.onError(e)}))),t.player.load(e,o(o({},t.props.config.options),{},{callback:function(){t.player.getDuration((function(e){t.duration=e/1e3,t.props.onReady()}))}}))}}))}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.callPlayer("seekTo",1e3*e),n||this.pause()}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",100*e)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.fractionLoaded*this.duration}},{key:"render",value:function(){var e={width:"100%",height:"100%",display:this.props.display};return P.default.createElement("iframe",{ref:this.ref,src:"https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),style:e,frameBorder:0,allow:"autoplay"})}}])}(P.Component);v(O,"displayName","SoundCloud"),v(O,"canPlay",g.canPlay.soundcloud),v(O,"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.