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