Loading
function(e,t,n){var l=n(477900),r=n(582128),s=n(831259),a=n(805251),i=n(129230),o=n(857512),c=n(590180),u=n(993408),d=n(304210),m=n(597783),g=n(347478),h=n(454688),p=n(325802),f=n(212407),x=n(758836),E=n(652215),v=n(792996),C=n(762917);function y(e){let{skuId:t,unpublishedAt:n}=e,r=(0,d.ty)(t),s=(0,g.$)(r)?r:null;return null!=s?(0,l.jsx)(p.b,{promotion:s}):(0,u.HF)(n)?(0,l.jsx)(a.E,{type:{text:v.intl.string(v.t["h/uBCR"])},variant:"inverted"}):null}n.d(t,{},{S:function(e){let{layout:t,category:n,subblock:a,enablePreview:u,pageType:d=x.G2.HOME,handleTransition:g,listItemProps:p}=e,_=a?.categorySkuId;null==_&&null!=a&&(_=c.A.getCategoryByStoreListingId(a?.categoryStoreListingId)?.skuId);let b=_??n?.skuId??"",{handleCardVisibilityChange:S}=(0,m.Z)(b,d,"marketing featured block"),I=(0,f.s4)(n,a,u),A=r.useRef(null),j=a?.bodyText,L=n?.isOrbsExclusive,k=a?.name??n?.name,N=null!=k?v.intl.formatToPlainString(v.t.frSHlf,{destination:k}):void 0,O=(0,o.uM)(),R=r.useCallback((e,t)=>{g({sourceButton:e,categorySkuId:b,isInternalShopDeeplink:!0,isOrbsExclusive:L}),i.default.track(E.HAw.COLLECTIBLES_SHOP_ELEMENT_CLICKED,{collectibles_shop_session_id:O?.sessionId,sku_id:b,page_type:d,page_section:O?.pageSection,page_category:O?.pageCategory,tile_type:"FEATURED_BLOCK",tile_position:String(O?.tilePosition),cta_name:t})},[g,b,L,d,O?.sessionId,O?.pageSection,O?.pageCategory,O?.tilePosition]),T=r.useCallback(()=>{R("shop marketing take me there button","Take me there button")},[R]),M=r.useCallback(()=>{R("shop marketing tile",null)},[R]);return(0,l.jsx)(s.L,{innerRef:A,onChange:S,threshold:0,children:(0,l.jsx)(h.Ay,{layout:t,innerRef:A,backgroundImageUrl:I,title:null!=j?{text:j,variant:"heading-sm/medium",color:a?.bannerTextColor,className:C.D}:void 0,badge:(0,l.jsx)(y,{skuId:b,unpublishedAt:a?.unpublishedAt??n?.unpublishedAt}),ctaText:v.intl.string(v.t.jVcuVY),"aria-label":N,onButtonClick:T,onBlockClick:M,listItemProps:p})})}})}