Module 113265

750 characters · in web.692b1813fcabadaf.js, 5d28c7fedac9b6ab.js
Dependencies
Required by (2)
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(t,e,r){r.d(e,{z:()=>u});var i=r(582128),n=r(575593),s=r(466459),l=r(116833),a=r(152472);function u(t){let{userId:e,product:r,selectedVariantIndex:u,location:o,onError:d}=t,c=i.useMemo(()=>r.type===n.R.VARIANTS_GROUP&&null!=u&&r.variants?.[u]!=null?r.variants[u]:r,[r,u]),S=c.skuId,I=(0,a.c)({userId:e,skuId:S,nuxGraphic:function(t){let{product:e}=t,r="6/4";switch(e.type){case n.R.NAMEPLATE:case n.R.AVATAR_DECORATION:r="16/9";break;case n.R.BUNDLE:case n.R.PROFILE_EFFECT:default:r="6/4"}return{type:"dynamic",component:l.DynamicGraphicComponent.COLLECTIBLES_PREVIEW,aspectRatio:r,props:{product:e,forCollectedModal:!0}}}({product:c}),location:o,onError:d}),{isPurchased:h}=(0,s.h)(c);return{...I,specificProductOrVariant:c,isPurchased:h}}}