1import{x,dx as A,dy as I,A as M}from"./index-BWLcZZIp.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};o.SENTRY_RELEASE={id:"[email protected]"};var n=new o.Error().stack;n&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[n]="614b5b77-2704-4e30-bda9-7acf89b2f504",o._sentryDebugIdIdentifier="sentry-dbid-614b5b77-2704-4e30-bda9-7acf89b2f504")}catch{}})();function N(o,n){for(var d=0;d<n.length;d++){const i=n[d];if(typeof i!="string"&&!Array.isArray(i)){for(const a in i)if(a!=="default"&&!(a in o)){const p=Object.getOwnPropertyDescriptor(i,a);p&&Object.defineProperty(o,a,p.get?p:{enumerable:!0,get:()=>i[a]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var h,m;function q(){if(m)return h;m=1;var o=Object.create,n=Object.defineProperty,d=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty,v=(t,e,r)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,S=(t,e)=>{for(var r in e)n(t,r,{get:e[r],enumerable:!0})},y=(t,e,r,c)=>{if(e&&typeof e=="object"||typeof e=="function")for(let u of i(e))!p.call(t,u)&&u!==r&&n(t,u,{get:()=>e[u],enumerable:!(c=d(e,u))||c.enumerable});return t},O=(t,e,r)=>(r=t!=null?o(a(t)):{},y(!t||!t.__esModule?n(r,"default",{value:t,enumerable:!0}):r,t)),w=t=>y(n({},"__esModule",{value:!0}),t),s=(t,e,r)=>(v(t,typeof e!="symbol"?e+"":e,r),r),_={};S(_,{default:()=>f}),h=w(_);var b=O(x()),g=A(),E=I();const C="https://w.soundcloud.com/player/api.js",D="SC";class f extends b.Component{constructor(){super(...arguments),s(this,"callPlayer",g.callPlayer),s(this,"duration",null),s(this,"currentTime",null),s(this,"fractionLoaded",null),s(this,"mute",()=>{this.setVolume(0)}),s(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),s(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){(0,g.getSDK)(C,D).then(c=>{if(!this.iframe)return;const{PLAY:u,PLAY_PROGRESS:R,PAUSE:j,FINISH:T,ERROR:L}=c.Widget.Events;r||(this.player=c.Widget(this.iframe),this.player.bind(u,this.props.onPlay),this.player.bind(j,()=>{this.duration-this.currentTime<.05||this.props.onPause()}),this.player.bind(R,l=>{this.currentTime=l.currentPosition/1e3,this.fractionLoaded=l.loadedProgress}),this.player.bind(T,()=>this.props.onEnded()),this.player.bind(L,l=>this.props.onError(l))),this.player.load(e,{...this.props.config.options,callback:()=>{this.player.getDuration(l=>{this.duration=l/1e3,this.props.onReady()})}})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seekTo",e*1e3),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.fractionLoaded*this.duration}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return b.default.createElement("iframe",{ref:this.ref,src:`https://w.soundcloud.com/player/?url=${encodeURIComponent(this.props.url)}`,style:r,frameBorder:0,allow:"autoplay"})}}return s(f,"displayName","SoundCloud"),s(f,"canPlay",E.canPlay.soundcloud),s(f,"loopOnEnded",!0),h}var P=q();const U=M(P),F=N({__proto__:null,default:U},[P]);export{F as S};
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.