define("spotifyFollow",["core","santaProps","lodash"],function(a,b,c){"use strict";var d=a.compMixins;var e={large:{width:225,height:56,label:"detail"},small:{width:156,height:25,label:"basic"}};function f(a){var b=e[a.compProp.size].label,c=a.compProp.theme==="dark"?"light":"dark",d=a.compProp.showFollowersCount,f=[];if(b==="basic"){f.push("basic");f.push("all")}else{f.push("detailed");f.push(c)}f.push(d?"show":"hide");return f.join("_")}function g(a){var b=null;if(a){var c=a.split(":");if(c.length===3){b=(c[0]+":").toLowerCase()+(c[1]+":").toLowerCase()+c[2]||""}}return b}function h(a){var b=[];b.push("https://embed.spotify.com/follow/1/?uri=");var c=g(a.compData.uri);b.push(c);b.push("&size=");b.push(e[a.compProp.size].label);b.push("&theme=");b.push(a.compProp.theme);b.push("&show-count=");b.push(a.compProp.showFollowersCount?1:0);return b.join("")}function i(a,b){var c={};if(a){c.src=h(b);c.style={width:e[b.compProp.size].width,height:e[b.compProp.size].height}}else{c.style={display:"none"}}return c}function j(a){var b={};if(a){b.style={display:"none"}}return b}function k(a){return c.size(a)>0}function l(a){var b=e[a.compProp.size];return{height:b.height+2,width:b.width}}return{displayName:"SpotifyFollow",mixins:[d.skinBasedComp],propTypes:{compData:b.Types.Component.compData,compProp:b.Types.Component.compProp},statics:{useSantaTypes:true},getInitialState:function(){return{$placeholder:f(this.props)}},componentWillReceiveProps:function(a){this.setState({$placeholder:f(a)})},getSkinProperties:function(){var a=k(this.props.compData.uri);return{"":{style:l(this.props),"data-valid-uri":""+a},iframe:i(a,this.props),placeholder:j(a)}}}});