define("buttonCommon/mixins/buttonMixin",["lodash","santaProps","utils","textCommon"],function(a,b,c,d){"use strict";function e(a){var b={};if(a.compProp.align!=="center"){var d="margin"+(a.compProp.align?c.stringUtils.capitalize(a.compProp.align):"");b[d]=a.compProp.margin}return b}function f(a){var b={};if(a.compProp.padding!==""){b.padding=a.compProp.padding}return b}function g(){if(this.shouldRecalculateLineHeight){return{lineHeight:""}}return{}}var h={propTypes:{compData:b.Types.Component.compData,compProp:b.Types.Component.compProp,compTheme:b.Types.Component.theme},mixins:[d.textScaleMixin],componentWillMount:function(){this.currentStyle=this.props.theme;this.currentScale=a.get(this,"props.structure.layout.scale",1)},componentWillReceiveProps:function(b){var c=b.theme;var d=a.get(b,"structure.layout.scale",1);if(!a.isEqual(this.currentStyle,c)||this.currentScale!==d){this.shouldRecalculateLineHeight=true}this.currentStyle=c;this.currentScale=d},componentDidUpdate:function(){if(this.shouldRecalculateLineHeight){this.shouldRecalculateLineHeight=false}},resetMinHeightIfNeeded:function(a){if(this.shouldRecalculateLineHeight){a[""]=a[""]||{};a[""].style=a[""].style||{};a[""].style.minHeight=""}},getLabelStyle:function(){return a.merge(e(this.props),f(this.props),this.getFontSize(),g.call(this))}};return h});define("buttonCommon",["buttonCommon/mixins/buttonMixin"],function(a){"use strict";return{buttonMixin:a}});