Module 212637

4,507 characters · in 977e9b9278a0a5b3.js
Dependencies
Required by (3)
Lazily required by (0)none
Lazily requires (1)
Source Raw
function(e,t,a){a.d(t,{A:()=>S});var l=a(627968);a(64700);var o=a(231723),n=a(192308),i=a(157559),s=a(73825),r=a(753390),u=a(166403),d=a(174459),c=a(927578),m=a(652215),y=a(375708);let p="guild-boost-purchase-modal";async function S(e){let{analyticsLocations:t,analyticsLocation:S,analyticsSourceLocation:h,guildId:b,closeLayer:C,onCloseModal:M,totalNumberOfSlotsToAssign:f=1,disablePremiumUpsell:w,onSubscribeComplete:A,onSubscriptionConfirmation:P,inPopout:g,applicationId:L,intent:G}=e,I=g?o.KX:o.SY,U=u.A.getPremiumTypeSubscription();if(null!=U&&U.isPurchasedExternally&&null!=U.paymentGateway){null!=C&&C(),i.A.show({title:y.intl.formatToPlainString(y.t["rTk9v/"],{paymentGatewayName:m.qmC[U.paymentGateway]}),body:y.intl.format(y.t.NY03WF,{paymentGatewayName:m.qmC[U.paymentGateway],subscriptionManagementLink:(0,c.tW)(U.paymentGateway,"SUBSCRIPTION_MANAGEMENT")})});return}Promise.all([(0,r.$o)(),(0,s.zS)()]),await (0,n.openModalLazy)(async()=>{let{default:e}=await Promise.all([a.e("758"),a.e("6026"),a.e("45650"),a.e("60060"),a.e("17094"),a.e("4592"),a.e("26105"),a.e("46461"),a.e("15612"),a.e("54747"),a.e("6772"),a.e("80559"),a.e("26032"),a.e("94864"),a.e("76283"),a.e("18125"),a.e("9131"),a.e("22513"),a.e("83004"),a.e("13498"),a.e("89203"),a.e("55719"),a.e("58858"),a.e("74587"),a.e("88999"),a.e("60571"),a.e("71934"),a.e("52196"),a.e("74672"),a.e("7053"),a.e("86483"),a.e("32260"),a.e("84617"),a.e("68953"),a.e("27681"),a.e("25907"),a.e("333"),a.e("18934"),a.e("79705"),a.e("82802"),a.e("51772"),a.e("40305"),a.e("76212"),a.e("23924"),a.e("71470"),a.e("24199"),a.e("207"),a.e("57036"),a.e("98839"),a.e("28367"),a.e("10471"),a.e("35429"),a.e("63232"),a.e("11301"),a.e("60235"),a.e("64827"),a.e("30938"),a.e("96643"),a.e("94493"),a.e("92789"),a.e("47834"),a.e("74016"),a.e("19551"),a.e("84569"),a.e("6338"),a.e("50689"),a.e("7743"),a.e("45959"),a.e("60658"),a.e("18573"),a.e("55936"),a.e("31988"),a.e("39667"),a.e("5812"),a.e("26073"),a.e("34303"),a.e("28866"),a.e("1368"),a.e("8304"),a.e("58038"),a.e("93159"),a.e("15599"),a.e("94723"),a.e("62931"),a.e("81987"),a.e("50417"),a.e("91737"),a.e("88941"),a.e("61379"),a.e("34530"),a.e("62680"),a.e("25693"),a.e("21825"),a.e("98125"),a.e("28154"),a.e("18441"),a.e("48804"),a.e("88077"),a.e("76640"),a.e("85502"),a.e("18401"),a.e("13681"),a.e("53729"),a.e("10004"),a.e("55314"),a.e("89094"),a.e("29177"),a.e("32551"),a.e("32885"),a.e("4369"),a.e("23353"),a.e("53930"),a.e("50015"),a.e("47017"),a.e("14879"),a.e("11523"),a.e("66900"),a.e("44695"),a.e("44376"),a.e("33902"),a.e("11527"),a.e("31644"),a.e("70653"),a.e("45723"),a.e("63070"),a.e("70697"),a.e("18546"),a.e("72535"),a.e("86949"),a.e("61622"),a.e("76170"),a.e("18943"),a.e("84103"),a.e("9915"),a.e("99999"),a.e("28561"),a.e("53614"),a.e("96123"),a.e("31825"),a.e("36320"),a.e("20320"),a.e("31390"),a.e("43919"),a.e("57906"),a.e("90889"),a.e("37622"),a.e("51243"),a.e("45421"),a.e("44265"),a.e("99141"),a.e("21435"),a.e("98793"),a.e("92731"),a.e("25990"),a.e("63095"),a.e("68647"),a.e("66541"),a.e("27413"),a.e("64615"),a.e("87225"),a.e("75134"),a.e("84967"),a.e("23216"),a.e("87079"),a.e("21570"),a.e("78707"),a.e("3458"),a.e("62827"),a.e("73547"),a.e("32823"),a.e("34691"),a.e("99593"),a.e("61935"),a.e("62168"),a.e("55602"),a.e("28128"),a.e("59023"),a.e("91381"),a.e("93158"),a.e("10034"),a.e("73500"),a.e("31145"),a.e("25252"),a.e("54975"),a.e("79440"),a.e("77084"),a.e("20287"),a.e("71133"),a.e("54625"),a.e("80230"),a.e("49697"),a.e("95093"),a.e("37687"),a.e("71234"),a.e("48900"),a.e("60177"),a.e("27773"),a.e("1006"),a.e("63645"),a.e("23276"),a.e("5636"),a.e("55577"),a.e("36487"),a.e("1354"),a.e("834"),a.e("78412"),a.e("63213"),a.e("95444"),a.e("9662"),a.e("26728"),a.e("48720"),a.e("80239"),a.e("75016"),a.e("59880"),a.e("76087"),a.e("84150"),a.e("33134"),a.e("80112"),a.e("54791"),a.e("4193"),a.e("39286"),a.e("31445"),a.e("5896"),a.e("62175"),a.e("9793"),a.e("96817"),a.e("88990"),a.e("26359"),a.e("71202"),a.e("21309")]).then(a.bind(a,532299));return a=>{let{transitionState:o,onClose:n}=a;return(0,l.jsx)(e,{transitionState:o,onClose:e=>{n(),M?.(e)},analyticsLocations:t,analyticsLocation:S,analyticsSourceLocation:h??S,guildId:b,totalNumberOfSlotsToAssign:f,closeGuildPerksModal:C,disablePremiumUpsell:w,onSubscriptionConfirmation:P,onSubscribeComplete:A,applicationId:L,intent:G})}},{modalKey:p,onCloseCallback:()=>{d.default.track(m.HAw.MODAL_DISMISSED,{type:m.JJy.PREMIUM_GUILD_PURCHASE_MODAL,location:S})},onCloseRequest:()=>{(0,n.closeModal)(p),M?.(!1)},contextKey:I})}}