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