"use strict";define("facebookLike",["lodash","santaProps","core","utils","socialCommon"],function(e,r,o,t,n){function a(e,r){return{"data-src":u(e,r),frameBorder:"0",width:e.structure.layout.width,height:e.structure.layout.height,scrolling:"no",overflow:"hidden",allowTransparency:"true",title:c(e),"aria-label":c(e)}}function s(e,r){return"userLang"===e?r:e}function i(e,r){var o=s(e,r);return l[o]||l.en}function u(e,r){var o=e.compProp,t={href:r,layout:o.layout,show_faces:o.show_faces,action:o.action,colorscheme:o.colorScheme,send:o.send,locale:i(o.language,e.userLanguage)};return p+"&"+m.toQueryString(t)}function c(r){var o=s(r.compProp.language,r.cookie,r.currentUrl);return e.get(t.translations.componentTranslations,[o,"component_label_ facebookLikeTitle"])}var p="//www.facebook.com/plugins/like.php?a=a",l={da:"da_DK",de:"de_DE",en:"en_US",es:"es_ES",fr:"fr_FR",it:"it_IT",ja:"ja_JP",kr:"ko_KR",nl:"nl_NL",no:"nn_NO",pl:"pl_PL",pt:"pt_BR",ru:"ru_RU",sv:"sv_SE",tr:"tr_TR"},d=o.compMixins,m=t.urlUtils;return{displayName:"FacebookLike",mixins:[d.skinBasedComp,n.socialCompMixin],propTypes:{rootId:r.Types.Component.rootId,structure:r.Types.Component.structure.isRequired,compProp:r.Types.Component.compProp.isRequired,currentUrl:r.Types.currentUrl,userLanguage:r.Types.WixUserSantaTypes.userLanguage.isRequired},statics:{useSantaTypes:!0},getSkinProperties:function(){return{"":{tabIndex:0,title:c(this.props),"aria-label":c(this.props)},iframe:a(this.props,this.getSocialUrl("masterPage"===this.props.rootId))}}}}); //# sourceMappingURL=facebookLike.min.js.map