Loading
function(e,t,n){n.d(t,{J:()=>f});var i=n(627968),r=n(64700),l=n(70283),a=n(17928),s=n(192308),o=n(982240),c=n(211159),u=n(566980),d=n(998370),m=n(315693);function f(){let{enabled:e}=d.J.useConfig({location:"useOpenGiftingBadgePostPurchaseModal"}),t=(0,a.bG)([o.Ay],()=>o.Ay.getBadgeById(l.$.GIFTING)?.tiers),f=(0,c.t4)(e=>e.purchaseState),g=r.useRef(null);return r.useEffect(()=>{e&&f===u.h.PURCHASING&&(g.current=o.Ay.getSingleRequirementProgress(l.$.GIFTING)?.current??null)},[e,f]),r.useCallback(()=>{if(e&&null!=g.current&&null!=(null!=t?(0,m.aZ)(t,g.current):null)){let e=g.current;(0,s.openModalLazy)(async()=>{let{default:t}=await Promise.all([n.e("13396"),n.e("9964"),n.e("83703")]).then(n.bind(n,855210));return n=>(0,i.jsx)(t,{...n,currentProgress:e})})}},[e,t])}}