1(self.rspackChunkcircle=self.rspackChunkcircle||[]).push([[95912],{136506(e,t,r){let s,o;var l=Object.create,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,u=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty,h=(e,t,r,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of n(t))p.call(e,o)||o===r||i(e,o,{get:()=>t[o],enumerable:!(s=a(t,o))||s.enumerable});return e},d=(e,t,r)=>{let s;return(s="symbol"!=typeof t?t+"":t)in e?i(e,s,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[s]=r,r},c={},y={default:()=>g};for(var m in y)i(c,m,{get:y[m],enumerable:!0});e.exports=h(i({},"__esModule",{value:!0}),c);var f=(o=null!=(s=r(933578))?l(u(s)):{},h(s&&s.__esModule?o:i(o,"default",{value:s,enumerable:!0}),s)),b=r(9624),P=r(587846);class g extends f.Component{constructor(){super(...arguments),d(this,"callPlayer",b.callPlayer),d(this,"duration",null),d(this,"currentTime",null),d(this,"fractionLoaded",null),d(this,"mute",()=>{this.setVolume(0)}),d(this,"unmute",()=>{null!==this.props.volume&&this.setVolume(this.props.volume)}),d(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,t){(0,b.getSDK)("https://w.soundcloud.com/player/api.js","SC").then(r=>{if(!this.iframe)return;let{PLAY:s,PLAY_PROGRESS:o,PAUSE:l,FINISH:i,ERROR:a}=r.Widget.Events;t||(this.player=r.Widget(this.iframe),this.player.bind(s,this.props.onPlay),this.player.bind(l,()=>{this.duration-this.currentTime<.05||this.props.onPause()}),this.player.bind(o,e=>{this.currentTime=e.currentPosition/1e3,this.fractionLoaded=e.loadedProgress}),this.player.bind(i,()=>this.props.onEnded()),this.player.bind(a,e=>this.props.onError(e))),this.player.load(e,{...this.props.config.options,callback:()=>{this.player.getDuration(e=>{this.duration=e/1e3,this.props.onReady()})}})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("seekTo",1e3*e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",100*e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.fractionLoaded*this.duration}render(){let{display:e}=this.props;return f.default.createElement("iframe",{ref:this.ref,src:`https://w.soundcloud.com/player/?url=${encodeURIComponent(this.props.url)}`,style:{width:"100%",height:"100%",display:e},frameBorder:0,allow:"autoplay"})}}d(g,"displayName","SoundCloud"),d(g,"canPlay",P.canPlay.soundcloud),d(g,"loopOnEnded",!0)}}]); 2//# sourceMappingURL=/packs/js/reactPlayerSoundCloud-586808036114b91a.chunk.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.