Build 533169stable
Module 284605
1,634 characters · in 2f9baa53e1c5e105.jsDependencies
Source Raw
function(e,t,n){n.d(t,{i:()=>E});var i=n(627968);n(64700);var a=n(417597),l=n(732955),r=n(492749),s=n(827186),o=n(465932),d=n(317525),c=n(71393),u=n(957565),_=n(250627),m=n(253141),h=n(579970),p=n(500770),g=n(571654),A=n(482711),x=n(897518),f=n(10979),C=n(652215);function E(e){let{guildProductListing:t,guildId:n,location:E,shouldShowFullDescriptionButton:I=!0,hideRoleTag:v=!1,lineClamp:b=1,cardWidth:T,cardHeight:y,thumbnailHeight:S,descriptionTextVariant:N="text-sm/normal",showOpaqueBackground:j=!1}=e,L=(0,a.bG)([c.A],()=>c.A.getGuild(n),[n]),R=(0,a.bG)([d.A],()=>d.A.getRole(n,t?.role_id??C.dJq)),P=(0,r.R)(t,600),w=(0,g.z)(t),M=(0,_.BB)(L),{shouldHideGuildPurchaseEntryPoints:D}=(0,o.MH)(n),k=(0,g.X)(t),O=(0,x.A)({guildId:n,guildProductListingId:t.id,sourceAnalyticsLocations:E});if(null==L||D)return null;let U=()=>(0,f.M)({guildId:n,guildProductListingId:t.id,analyticsLocation:E}),B=(0,i.jsx)(A.i,{product:t,guildId:n,showEditProduct:M,showUnpublishProduct:!1,showCopyLink:!0,showTestDownload:!1,showDeleteProduct:!1,showReportProduct:!0,onEditProduct:M?()=>{h.q(L.id,t.id)}:()=>{},onUnpublishProduct:()=>{},onDeleteProduct:()=>{},onReportProduct:()=>{(0,s.F)({listing:t})},onCopyProductLink:()=>{(0,u.C)((0,m.KW)(n,t.id))},onTestDownload:()=>{}});return(0,i.jsx)(p.A,{imageUrl:P,name:t.name,description:t.description,formattedPrice:k,role:R,ctaComponent:(0,i.jsx)(l.$nd,{...O}),productType:w,shouldShowFullDescriptionButton:I,onShowFullDescription:U,onTapCard:U,actionMenu:B,showOpaqueBackground:j,hideRoleTag:v,lineClamp:b,cardWidth:T,cardHeight:y,thumbnailHeight:S,descriptionTextVariant:N,isDraft:!t.published},t.id)}}