define("soundCloudWidget",["lodash","react","core","utils","santaProps"],function(a,b,c,d,e){"use strict";var f=c.compMixins;var g=d.urlUtils;function h(a){var b=a.split("?");if(b&&b.length>2){a=b[0]+"?"+b[1]}return a}function i(a){a=h(a);a=decodeURIComponent(a);a=j(a);return a}function j(a){return a.replace(/;/g,"%3b")}function k(a,b){return b.compData[a]===true||b.compData[a]==="true"}return{displayName:"SoundCloudWidget",mixins:[f.skinBasedComp],propTypes:{compData:e.Types.Component.compData.isRequired,style:e.Types.Component.style.isRequired,os:e.Types.Browser.os.isRequired,isPlayingAllowed:e.Types.RenderFlags.isPlayingAllowed.isRequired},statics:{useSantaTypes:true},getSoundCloudUrl:function(){var a=this.props.compData.url;if(a){a=g.setUrlParam(a,"visual",k("showArtWork",this.props));a=g.setUrlParam(a,"auto_play",this.props.isPlayingAllowed&&k("autoPlay",this.props));a=i(a)}return a||""},getInitialState:function(){return{$trackUrl:this.props.compData.url===""?"noContent":""}},getSkinProperties:function(){var c={};if(this.props.os.ios){a.assign(c,{overflow:"scroll","-webkit-overflow-scrolling":"touch"})}var d={src:this.getSoundCloudUrl(),width:this.props.style.width,height:this.props.style.height,style:c};return{iFrameHolder:{children:[b.DOM.iframe(d)]}}}}});