(window["webpackJsonp-ae-fe/cosmos-1"]=window["webpackJsonp-ae-fe/cosmos-1"]||[]).push([[37,18],{1211:function(e,n,t){"use strict";t.r(n);var r=t(289),a=t.n(r);t.d(n,"rcmd",(function(){return a.a}));var o=t(143);t.d(n,"Gallery",(function(){return o.default})),t.d(n,"List",(function(){return o.default})),t.d(n,"Waterfall",(function(){return o.default}))},143:function(e,n,t){"use strict";t.r(n);var r=t(169),a=t(4),o=t.n(a),i=t(17),u=t.n(i),c=t(37),l=t.n(c),d=t(168);var s=function(e){var n=e.data,t=e.columnNum,r=void 0===t?5:t,a=null;return n&&(a=n.length<r?n:n.slice(0,Math.floor(n.length/r)*r)),{cards:a}},f=t(199),m=t.n(f),v=t(119),p=t(171),y=t(198),w=t.n(y),b=t(80),h=t.n(b),g=function(e){var n=e.children,t=void 0===n?[]:n,r=e.gutter,a=void 0===r?16:r,o=e.autoSize,i=e.isM,u=void 0!==i&&i,d=e.className,s=Object(c.useContext)(v.a).scene,f=Object(p.a)((null==e?void 0:e.columnNum)||6,o),m=f.ref,y=f.column;return l.a.createElement("div",{className:h()(w.a.rowContainer,d),ref:m,"data-spm":s,style:{marginLeft:-1*a/2+"px",marginRight:-1*a/2+"px"}},c.Children.map(t,(function(e,n){return l.a.createElement("div",{className:h()(w.a.child),key:n,style:{maxWidth:1/y*100+"%",paddingLeft:a/2+"px",paddingRight:a/2+"px",flexBasis:1/y*100+"%",marginBottom:u?"8px":"24px"}},Object(c.cloneElement)(e,{width:"100%"}))})))},S=["className","data","columnNum","autoSize"];var x=function(e){e.className;var n=e.data,t=e.columnNum,r=void 0===t?5:t,a=(e.autoSize,u()(e,S)),i=s({data:n,columnNum:r}).cards,c=null==i?void 0:i.some((function(e){return"pc_new_card"===e.itemCardType||"app_us_local_card"===e.itemCardType}));return l.a.createElement(g,{columnNum:r,autoSize:c,gutter:c?16:8,isM:!c,className:m.a.galleryRow},null==i?void 0:i.map((function(e,n){return l.a.createElement(d.a,o()({key:e.productId,data:e,index:n},a,{cardClassName:c?"":m.a.msiteCardStyle}))})))},N=Object(r.a)(x,{width:190});n.default=N},171:function(e,n,t){"use strict";var r=t(5),a=t(37),o=function(){var e;return!r.isSSR&&"function"==typeof(null===(e=window)||void 0===e?void 0:e.requestAnimationFrame)};var i=function(e){var n,t=!0;return Object(a.useCallback)((function(){for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];var u=function(e,t){return o()?(window.cancelAnimationFrame(n),window.requestAnimationFrame(e)):setTimeout(e,t)};t&&(t=!1,n=u((function(){t=!0,e.apply(void 0,a)}),66))}),[])};function u(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=function(e,n){if(e){if("string"==typeof e)return c(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?c(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var l=r.isSSR?a.useEffect:a.useLayoutEffect;n.a=function(e,n){void 0===n&&(n=!1);var t=Object(a.useRef)(null),r=Object(a.useState)(e),o=r[0],c=r[1],d=i((function(e){var n,t=null==e||null===(n=e.contentRect)||void 0===n?void 0:n.width;t&&c(t>1150?6:5)}));return l((function(){if(n){if(!t.current)return null;if(!window.ResizeObserver)return null;var e=new ResizeObserver((function(e){for(var n,t=u(e);!(n=t()).done;){var r=n.value;d(r)}}));return e.observe(t.current),function(){return e.disconnect()}}return function(){}})),{ref:t,column:o}}},198:function(e,n,t){e.exports={rowContainer:"_1wVX7",child:"_2FypS"}},199:function(e,n,t){e.exports={container:"_1nker",card:"_2S8eq",galleryRow:"_32_es",msiteCardStyle:"_31M50"}}}]);