"use strict";define("stripSlideShow/common/boxSlideShowAutoPlay",["santaProps"],function(t){return{propTypes:{isPlayingAllowed:t.Types.RenderFlags.isPlayingAllowed,isZoomOpened:t.Types.isZoomOpened.isRequired,id:t.Types.Component.id.isRequired,compProp:t.Types.Component.compProp.isRequired},canAutoPlay:function(t){return this.getSlidesFromChildren(this.props.children).length>1&&t&&this.props.isPlayingAllowed&&!this.props.isZoomOpened},toggleAutoPlay:function(){this.setState({autoPlay:!this.state.autoPlay},this.updateAutoPlayState)},updateAutoPlayState:function(){this.clearTimeoutNamed(this.props.id),this.state.autoPlay&&this.setTimeoutNamed(this.props.id,this.autoplayCallback,this.getAutoplayInterval())},autoplayCallback:function(){this.props.isZoomOpened||(this.clickMoveToNextSlide(),this.updateAutoPlayState())},getAutoplayInterval:function(){var t=this.props.compProp.autoPlayInterval;return Math.floor(1e3*t)},componentDidMount:function(){this.updateAutoPlayState()}}}),define("stripSlideShow/common/slideNavigationMixin",["react","lodash","core","santaProps","stripSlideShow/common/boxSlideShowAutoPlay"],function(t,e,i,o,s){function n(t,e){var i=t.selectedButtonSizeRatio||1;return Math.floor(e*i)}function r(t){return{currentIndex:e.get(t,"currentIndex",0),isPlaying:e.get(t,"autoPlay",!1)}}var a=i.compMixins,p={center:"center",left:"flex-start",right:"flex-end"},l=i.componentUtils.boxSlideShowCommon;return{propTypes:{triggerFakeModeChange:o.Types.Modes.triggerFakeModeChange.isRequired,compData:o.Types.Component.compData.isRequired,compProp:o.Types.Component.compProp.isRequired},mixins:[a.skinBasedComp,a.timeoutsMixin,s,a.animationsMixin,a.compStateMixin(r)],getInitialState:function(){return this.reverse=!1,this.isDirectionLeftToRight="LTR"===this.props.compProp.direction,e.assign(r(null,this.props.compProp),{isInTransition:!1,autoPlay:this.canAutoPlay(this.props.compProp.autoPlay)})},setCurrentSlideAndRegisterRelayout:function(t,i,o,s){if(!this.state.isInTransition||i){this.registerReLayout();var n=e.isFunction(s)?s:e.noop;this.setState({currentIndex:t,isInTransition:o},function(){this.props.triggerFakeModeChange(this.props.currentUrlPageId,this.props.id),n(),this.handleAction("change")})}},componentWillReceiveProps:function(t){if(this.props.compProp.direction!==t.compProp.direction&&(this.isDirectionLeftToRight="LTR"===t.compProp.direction),t.children){var i=this.getSlidesFromChildren(this.props.children).length,o=this.getSlidesFromChildren(t.children).length;if(o0?this.state.currentIndex-1:0;e.includes(s,r)?l=s.indexOf(r):l>=o&&(l=o-1);var h=this.state.currentIndex>=o;if(this.state.currentIndex!==l){var d=this.state.currentIndex===p;this.setCurrentSlideAndRegisterRelayout(l,h,d)}}var u=this.canAutoPlay(t.compProp.autoPlay);u!==this.state.autoPlay&&this.setState({autoPlay:u},this.setAutoPlayStateCallBack)}},setAutoPlayStateCallBack:function(){this.handleAction(this.state.autoPlay?"autoplayOn":"autoplayOff"),this.updateAutoPlayState()},createDotsNavigationButtons:function(){var i=this.getSlidesFromChildren(this.props.children),o=this.getSkinExports(),s=[];return e.forEach(i,function(e,i){var r=this.state.currentIndex===i,a=r?n(o,this.props.compProp.navigationDotsSize):this.props.compProp.navigationDotsSize,p={className:this.classSet({"navigation-dot":!0,selected:r})+" reset-button",style:{width:a,height:a,marginRight:this.props.compProp.navigationDotsGap/2,marginLeft:this.props.compProp.navigationDotsGap/2},"aria-label":"Go to slide "+(i+1)};s.push(t.DOM.li({className:this.classSet({"navigation-dot-wrapper":!0}),onClick:this.moveToSlide.bind(this,i),children:t.DOM.button(p)}))}.bind(this)),s},getDotsNavigationWrapperStyle:function(){var t=n(this.getSkinExports(),this.props.compProp.navigationDotsSize);return{bottom:this.props.compProp.navigationDotsMargin-.5*t,justifyContent:this.getDotsAlignment(),WebkitJustifyContent:this.getDotsAlignment()}},moveNextSlide:function(t){if(!this.state.isInTransition){this.reverse=!1;var e=l.getNextSlideIndex(this.getSlidesFromChildren(this.props.children),this.state.currentIndex);this.setCurrentSlideAndRegisterRelayout(e,!1,!0,t)}},movePreviousSlide:function(t){if(!this.state.isInTransition){this.reverse=!0;var e=l.getPrevSlideIndex(this.getSlidesFromChildren(this.props.children),this.state.currentIndex);this.setCurrentSlideAndRegisterRelayout(e,!1,!0,t)}},isSlideDirectionReversed:function(t){var e=this.state.currentIndex;return t>e?0===e&&t===this.getSlidesFromChildren(this.props.children).length-1:!(0===t&&e===this.getSlidesFromChildren(this.props.children).length-1)},moveToSlide:function(t,i){if(t===this.state.currentIndex||this.state.isInTransition)e.isFunction(i)&&i();else{var o=this.getSlidesFromChildren(this.props.children);e.isNumber(t)&&t>=0&&t