Build 555975stable
Module 113265
749 characters · in 0132092593eb02e6.jsDependencies
Source Raw
function(e,t,n){n.d(t,{z:()=>d});var s=n(64700),i=n(575593),a=n(466459),l=n(116833),r=n(152472);function d(e){let{userId:t,product:n,selectedVariantIndex:d,location:o,onError:c}=e,u=s.useMemo(()=>n.type===i.R.VARIANTS_GROUP&&null!=d&&n.variants?.[d]!=null?n.variants[d]:n,[n,d]),h=u.skuId,m=(0,r.c)({userId:t,skuId:h,nuxGraphic:function(e){let{product:t}=e,n="6/4";switch(t.type){case i.R.NAMEPLATE:case i.R.AVATAR_DECORATION:n="16/9";break;case i.R.BUNDLE:case i.R.PROFILE_EFFECT:default:n="6/4"}return{type:"dynamic",component:l.DynamicGraphicComponent.COLLECTIBLES_PREVIEW,aspectRatio:n,props:{product:t,forCollectedModal:!0}}}({product:u}),location:o,onError:c}),{isPurchased:f}=(0,a.h)(u);return{...m,specificProductOrVariant:u,isPurchased:f}}}