Build 574548stable
Module 330075
1,993 characters · in 1706b14c097ed9b1.jsDependencies
Source Raw
function(e,t,n){n.d(t,{i:()=>I});var i=n(627968);n(64700);var l=n(702841),s=n(821609),r=n(628677),a=n(192308),o=n(465932),d=n(317525),c=n(71393),u=n(957565),m=n(250627),h=n(253141),g=n(579970),p=n(500770),A=n(571654),x=n(825596),f=n(703543),E=n(652215);function I(e){let{guildProductListing:t,guildId:I,location:C,shouldShowFullDescriptionButton:v=!0,hideRoleTag:_=!1,lineClamp:j=1,cardWidth:N,cardHeight:T,thumbnailHeight:y,descriptionTextVariant:S="text-sm/normal",showOpaqueBackground:b=!1}=e,k=(0,l.bG)([c.A],()=>c.A.getGuild(I),[I]),L=(0,l.bG)([d.A],()=>d.A.getRole(I,t?.role_id??E.dJq)),R=(0,r.R)(t,600),P=(0,A.z)(t),M=(0,m.BB)(k),{shouldHideGuildPurchaseEntryPoints:D}=(0,o.MH)(I),O=(0,A.X)(t),U=(0,f.A)({guildId:I,guildProductListingId:t.id,sourceAnalyticsLocations:C});if(null==k||D)return null;function G(){var e;return e={guildId:I,guildProductListingId:t.id,analyticsLocation:C},void(0,a.openModalLazy)(async()=>{let{default:t}=await Promise.all([n.e("57034"),n.e("35778"),n.e("47812"),n.e("13583"),n.e("51234")]).then(n.bind(n,516889));return n=>(0,i.jsx)(t,{...e,...n})})}let w=(0,i.jsx)(x.i,{product:t,guildId:I,showEditProduct:M,showUnpublishProduct:!1,showCopyLink:!0,showTestDownload:!1,showDeleteProduct:!1,showReportProduct:!0,onEditProduct:M?()=>{g.q(k.id,t.id)}:()=>{},onUnpublishProduct:()=>{},onDeleteProduct:()=>{},onReportProduct:function(){!function(e){let{listing:t}=e;(0,a.openModalLazy)(async()=>{let{default:e}=await n.e("74624").then(n.bind(n,144835));return n=>(0,i.jsx)(e,{listing:t,...n})})}({listing:t})},onCopyProductLink:function(){(0,u.C)((0,h.KW)(I,t.id))},onTestDownload:()=>{}});return(0,i.jsx)(p.A,{imageUrl:R,name:t.name,description:t.description,formattedPrice:O,role:L,ctaComponent:(0,i.jsx)(s.$,{...U}),productType:P,shouldShowFullDescriptionButton:v,onShowFullDescription:G,onTapCard:G,actionMenu:w,showOpaqueBackground:b,hideRoleTag:_,lineClamp:j,cardWidth:N,cardHeight:T,thumbnailHeight:y,descriptionTextVariant:S,isDraft:!t.published},t.id)}}