(this["webpackJsonp6th-street"]=this["webpackJsonp6th-street"]||[]).push([[181],{1977:function(e,t,s){"use strict";(function(e){var o=s(0);s(2633);const r=Object(o.lazy)(()=>s.e(36).then(s.bind(null,646))),l=Object(o.lazy)(()=>Promise.all([s.e(1),s.e(3),s.e(6),s.e(13),s.e(20)]).then(s.bind(null,807))),a=Object(o.lazy)(()=>s.e(16).then(s.bind(null,789))),n=Object(o.lazy)(()=>s.e(33).then(s.bind(null,873)));var d=s(10).checkBEMProps;class i extends o.PureComponent{constructor(){super(...arguments),this.state={viewAllPortalNode:null,hasProducts:!0},this.setViewAllPortalNode=e=>{e!==this.state.viewAllPortalNode&&this.setState({viewAllPortalNode:e})},this.handleProductsResolved=e=>{const t=Array.isArray(e)&&e.length>0;t!==this.state.hasProducts&&this.setState({hasProducts:t})}}renderBannerSlider(){const{details:t,setLastTapItemOnHome:s}=this.props;return d(e,"div",{className:"BackgroundProductContentItems"},d(e,a,Object.assign({},t,{setLastTapItemOnHome:s||(()=>{}),zoomFocusEnabled:"backgroundProductSlider"===t.type})))}renderProductSlider(){const{details:t,renderMySignInPopup:s,setLastTapItemOnHome:o}=this.props;return d(e,"div",{className:"BackgroundProductSliderItems"},d(e,"div",{block:"BackgroundProductSlider",elem:"ViewAllSlot",ref:this.setViewAllPortalNode}),d(e,l,Object.assign({},t,{renderMySignInPopup:s,setLastTapItemOnHome:o||(()=>{}),zoomFocusEnabled:"backgroundProductSlider"===t.type,zoomFocusAutoPlay:t.auto_play,zoomFocusAutoPlaySpeed:t.auto_play_speed,zoomFocusIndicatorStyle:t.indicator_style,backgroundProductSliderStartFlush:!0,zoomFocusViewAllPortalNode:this.state.viewAllPortalNode,onProductsResolved:this.handleProductsResolved})))}render(){const{background:t,details:s,header:l,product_source:a,type:i}=this.props;return 0!==s.items.length||s.data_url&&this.state.hasProducts?d(e,o.Suspense,{fallback:null},d(e,"div",{className:"BackgroundProductSlider"},d(e,r,{header:l,type:i}),d(e,n,{items:[t]}),"product-slider"===a?this.renderProductSlider():this.renderBannerSlider())):null}}t.a=i}).call(this,s(0))},2633:function(e,t,s){},887:function(e,t,s){"use strict";s.r(t);var o=s(1977);s.d(t,"default",(function(){return o.a}))}}]);