Loading
function(e,n,t){t.d(n,{A:()=>A});var i=t(477900),l=t(582128),a=t(17928),o=t(206248),r=t(597770),s=t(406810),c=t(475743),u=t(421108),d=t(807098),f=t(412260),C=t(860300),g=t(49999),m=t(660183);function A(e){let{onComplete:n,onCheckItOutClick:t,markAsDismissed:A,coachmarkConfig:p,children:b}=e,T=(0,d.T)(p?.asset),{enabled:I}=C.J.useConfig({location:"GiftPromotionPopout"}),h=(0,a.bG)([f.A],()=>f.A.getGiftPromotion()),N=(0,u.dA)(h?.endDate),j=null!=N,k=(0,c.Ay)(j),y=l.useRef(null);l.useEffect(()=>{!0!==k||j||(n(),A(g.i.AUTO_DISMISS))},[k,j,n,A]);let _={text:m.intl.string(m.t.Ve9Ge6),icon:r.GiftIcon,onClick:()=>{t(),n(),A(g.i.TAKE_ACTION)}};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{ref:y,children:b}),(0,i.jsx)(o.H,{targetElementRef:y,shouldShow:!0,disableMediaViewer:!0,position:"top",align:"center",title:p?.header??"",body:p?.body??"",assetUrl:T??"",badge:I&&null!=N?{type:{text:N.toUpperCase()},variant:"primary",icon:s.ClockIcon}:void 0,action:_,caretConfig:{align:"center"},onRequestClose:function(){n(),A(g.i.USER_DISMISS)}})]})}}