Module 331617

2,516 characters · in 135af6bd4b970911.js
Dependencies
Required by (0)none
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,s,t){t.d(s,{default:()=>T});var i=t(627968),n=t(64700),a=t(534514),r=t(834730),l=t(935462),o=t(821609),c=t(793574),d=t(688810),u=t(75304),p=t(197510),m=t(166532),x=t(632638),j=t(901017),h=t(473145),g=t(944304),C=t(652215),_=t(375708),b=t(637744),k=t(818050);let L="premium-guild-subscription-upsell-modal-header";function U(e){let{title:s,subtitle:t,image:n}=e;return(0,i.jsxs)("div",{className:b.wx,children:[(0,i.jsx)(a.D,{variant:"heading-xl/semibold",id:L,color:"text-strong",className:k.QB,children:s}),(0,i.jsx)(r.E,{variant:"text-md/normal",className:b.o4,children:t}),n]})}let I=e=>{let{onClose:s,perks:t,perkIntro:n=_.intl.string(_.t.Dr3GoS),headerProps:a}=e;return(0,i.jsxs)("div",{className:b.iE,children:[(0,i.jsx)(l.s_,{"data-migration-pending":!0,className:b.b,onClick:()=>{s()}}),(0,i.jsx)(v,{headerProps:a,perkIntro:n}),(0,i.jsx)("div",{className:b.md,children:t.map((e,s)=>{let{icon:t,iconClassName:n,description:a,color:r}=e;return(0,i.jsx)(j.A,{icon:t,iconClassName:n,description:a,color:r},s)})})]})},v=e=>{let{headerProps:s,perkIntro:a}=e;return(0,i.jsxs)(n.Fragment,{children:[null!=s?(0,i.jsx)(U,{...s}):(0,i.jsx)("img",{className:b.c8,src:t(69522),alt:_.intl.string(_.t.PkcaAH)}),(0,i.jsx)(r.E,{variant:"text-md/normal",className:b.R_,children:a})]})},E=e=>{let{guild:s,targetBoostedGuildTier:t,onClose:n,analyticsSourceLocation:a}=e,r={section:C.JJy.PREMIUM_GUILD_UPSELL_MODAL,object:C.ZSU.BUTTON_CTA,objectType:null!=t?(0,h.k1)(t):null};return(0,i.jsxs)(l.jl,{className:b.qr,"data-migration-pending":!0,children:[(0,i.jsx)(o.$,{variant:"secondary",size:"sm",text:_.intl.string(_.t.cpT0Cq),onClick:()=>{n()}}),(0,i.jsx)(g.A,{analyticsLocation:r,analyticsSourceLocation:a,guild:s,targetBoostedGuildTier:t,onClose:()=>{n()}})]})};function T(e){let{analyticsSourceLocation:s,guild:t,targetBoostedGuildTier:n,perks:a,perkIntro:r,headerProps:o,onClose:j,...h}=e,{analyticsLocations:g}=(0,d.Ay)(c.A.ACTIVITY_DIRECTORY);return(0,i.jsx)(d.f5,{value:g,children:(0,i.jsx)(p.CheckoutRootProvider,{activeSubscription:null,stepConfigs:[],skuIDs:[],unifiedCheckoutFlow:u.C.GUILD_BOOST_CHECKOUT,children:(0,i.jsx)(l.EO,{...h,"aria-labelledby":L,"data-migration-pending":!0,parentComponent:"GuildBoostingUpsellModal",children:(0,i.jsx)(x.A,{hideBreadcrumbs:!0,body:(0,i.jsx)(I,{onClose:j,perks:a,perkIntro:r,headerProps:o}),footer:(0,i.jsx)(E,{guild:t,targetBoostedGuildTier:n,onClose:j,analyticsSourceLocation:s}),steps:[m.pn.PREMIUM_GUILD_UPSELL],currentStep:m.pn.PREMIUM_GUILD_UPSELL})})})})}}