PageSourceSearch

https://shop.sonepar.fi/_next/static/chunks/reactPlayerSoundCloud.2f4f5ef2ff79ac14.js

js sonepar.fi collected 2026-10-07 03:29:16 UTC 2,650 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9979],{98225:(e,t,r)=>{r.r(t),r.d(t,{default:()=>a});var s=r(57082),o=r(77852),i=r(32498),l=r(99169);let a=(0,s.Ft)((e,t)=>{var r=Object.create,s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,u=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty,h=(e,t,r,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of n(t))p.call(e,i)||i===r||s(e,i,{get:()=>t[i],enumerable:!(o=a(t,i))||o.enumerable});return e},d=(e,t,r)=>(((e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"==typeof t?t:t+"",r),r),c={};((e,t)=>{for(var r in t)s(e,r,{get:t[r],enumerable:!0})})(c,{default:()=>b}),t.exports=h(s({},"__esModule",{value:!0}),c);var y=((e,t,o)=>(o=null==e?{}:r(u(e)),h(!t&&e&&e.__esModule?o:s(o,"default",{value:e,enumerable:!0}),e)))((0,o.W)()),m=(0,i.q)(),f=(0,l.K)(),b=class extends y.Component{constructor(){super(...arguments),d(this,"callPlayer",m.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,m.getSDK)("https://w.soundcloud.com/player/api.js","SC").then(r=>{if(!this.iframe)return;let{PLAY:s,PLAY_PROGRESS:o,PAUSE:i,FINISH:l,ERROR:a}=r.Widget.Events;t||(this.player=r.Widget(this.iframe),this.player.bind(s,this.props.onPlay),this.player.bind(i,()=>{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(l,()=>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 y.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(b,"displayName","SoundCloud"),d(b,"canPlay",f.canPlay.soundcloud),d(b,"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.