"use strict";define("containerCommon/mixins/containerMixin",["lodash","core","react","santaProps","utils"],function(i,o,e,n,t){function s(i){var o={};return i&&(o.$mobile="mobileView"),o}return{mixins:[o.compMixins.skinBasedComp],propTypes:{windowScrollEventAspect:n.Types.SiteAspects.windowScrollEvent.isRequired,compActions:n.Types.Component.compActions.isRequired,isMobileView:n.Types.isMobileView,getRootIdsWhichShouldBeRendered:n.Types.getRootIdsWhichShouldBeRendered.isRequired,rootId:n.Types.Component.rootId,pageStub:e.PropTypes.bool},getInitialState:function(){return this.props.compActions.scroll&&this.props.windowScrollEventAspect.registerToScroll(this),s(this.props.isMobileView)},componentWillReceiveProps:function(o){this.props.compActions.scroll&&i.isUndefined(o.compActions.scroll)&&this.props.windowScrollEventAspect.unregisterToScroll(this),o.compActions.scroll&&i.isUndefined(this.props.compActions.scroll)&&o.windowScrollEventAspect.registerToScroll(this)},onScroll:function(i,o){var e={left:i.x,top:i.y,direction:o};this.handleAction("scroll",e)},shouldComponentUpdatePage:function(i){var o=i.getRootIdsWhichShouldBeRendered();return t.componentUtils.shouldBeRendered(o,i.rootId)||i.pageStub}}}),define("containerCommon/mixins/fixedPositionContainerMixin",["lodash","santaProps"],function(i,o){function e(i){return i.style&&"fixed"===i.style.position}function n(i){return e(i)&&!i.isMobileView?{$fixed:"fixedPosition"}:{$fixed:""}}function t(i){return i.isMobileView?{$mobile:"mobileView"}:{$mobile:""}}function s(o){return i.merge(t(o),n(o))}return{propTypes:{isMobileView:o.Types.isMobileView.isRequired,style:o.Types.Component.style.isRequired},getRootStyle:function(i){return this.getRootPosition?{position:this.getRootPosition(i)}:{}},getInitialState:function(){return s(this.props)},componentWillReceiveProps:function(o){var e=s(this.props),n=s(o);i.isEqual(e,n)||this.setState(n)}}}),define("containerCommon",["containerCommon/mixins/containerMixin","containerCommon/mixins/fixedPositionContainerMixin"],function(i,o){return{mixins:{containerMixin:i,fixedPositionContainerMixin:o}}}); //# sourceMappingURL=containerCommon.min.js.map