Build 562131stable
Module 212637
5,222 characters · in 0d6a93e14ed8bffd.jsDependencies
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(428262),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("65058"),a.e("81804"),a.e("19393"),a.e("4355"),a.e("84764"),a.e("45553"),a.e("91279"),a.e("6922"),a.e("57459"),a.e("46334"),a.e("5517"),a.e("74252"),a.e("42657"),a.e("479"),a.e("26963"),a.e("38805"),a.e("59913"),a.e("2677"),a.e("57093"),a.e("32285"),a.e("84570"),a.e("62924"),a.e("22467"),a.e("74107"),a.e("87550"),a.e("55644"),a.e("75430"),a.e("71934"),a.e("72365"),a.e("28379"),a.e("39995"),a.e("25568"),a.e("394"),a.e("80653"),a.e("51692"),a.e("22600"),a.e("96130"),a.e("41475"),a.e("46912"),a.e("91888"),a.e("6324"),a.e("90072"),a.e("59867"),a.e("13627"),a.e("5093"),a.e("23924"),a.e("42205"),a.e("71091"),a.e("91680"),a.e("57036"),a.e("57174"),a.e("98839"),a.e("24199"),a.e("207"),a.e("10471"),a.e("63232"),a.e("11301"),a.e("61737"),a.e("60235"),a.e("68261"),a.e("64827"),a.e("7167"),a.e("96643"),a.e("92789"),a.e("2368"),a.e("21335"),a.e("47834"),a.e("54048"),a.e("11735"),a.e("3932"),a.e("84569"),a.e("62156"),a.e("6338"),a.e("85404"),a.e("44057"),a.e("19455"),a.e("28504"),a.e("38251"),a.e("62175"),a.e("7743"),a.e("44571"),a.e("45959"),a.e("60658"),a.e("8304"),a.e("18573"),a.e("55936"),a.e("8739"),a.e("8434"),a.e("31988"),a.e("39667"),a.e("34303"),a.e("28866"),a.e("2419"),a.e("73122"),a.e("58038"),a.e("93159"),a.e("25246"),a.e("13444"),a.e("94723"),a.e("62931"),a.e("88941"),a.e("50417"),a.e("98201"),a.e("6174"),a.e("61379"),a.e("34530"),a.e("43039"),a.e("25693"),a.e("32606"),a.e("28154"),a.e("48804"),a.e("21690"),a.e("4369"),a.e("55112"),a.e("699"),a.e("13681"),a.e("53729"),a.e("10004"),a.e("55314"),a.e("89094"),a.e("29177"),a.e("32551"),a.e("62680"),a.e("63437"),a.e("87306"),a.e("23353"),a.e("50015"),a.e("38835"),a.e("99666"),a.e("41043"),a.e("11523"),a.e("44695"),a.e("18441"),a.e("44376"),a.e("31644"),a.e("45723"),a.e("70697"),a.e("18546"),a.e("53930"),a.e("31390"),a.e("98125"),a.e("21825"),a.e("90244"),a.e("18943"),a.e("17225"),a.e("70653"),a.e("96123"),a.e("8892"),a.e("31825"),a.e("36320"),a.e("20320"),a.e("84967"),a.e("47017"),a.e("90889"),a.e("99657"),a.e("26780"),a.e("44265"),a.e("99141"),a.e("84103"),a.e("88077"),a.e("21435"),a.e("30920"),a.e("99941"),a.e("25990"),a.e("58821"),a.e("33902"),a.e("11527"),a.e("63095"),a.e("52266"),a.e("68647"),a.e("16900"),a.e("63070"),a.e("64615"),a.e("96443"),a.e("66322"),a.e("75134"),a.e("57598"),a.e("55184"),a.e("23216"),a.e("87079"),a.e("18401"),a.e("25637"),a.e("32079"),a.e("14805"),a.e("1555"),a.e("73547"),a.e("24761"),a.e("43300"),a.e("99593"),a.e("84456"),a.e("47555"),a.e("61935"),a.e("99999"),a.e("5501"),a.e("62168"),a.e("69875"),a.e("58157"),a.e("23891"),a.e("86949"),a.e("22380"),a.e("15754"),a.e("90191"),a.e("53614"),a.e("31145"),a.e("71577"),a.e("51243"),a.e("52073"),a.e("9915"),a.e("53374"),a.e("93158"),a.e("88740"),a.e("51130"),a.e("58428"),a.e("32823"),a.e("34691"),a.e("92731"),a.e("28662"),a.e("77084"),a.e("85901"),a.e("5131"),a.e("54625"),a.e("71133"),a.e("28152"),a.e("75361"),a.e("76428"),a.e("23532"),a.e("52557"),a.e("95093"),a.e("37687"),a.e("71234"),a.e("96137"),a.e("48900"),a.e("4450"),a.e("60177"),a.e("27773"),a.e("5636"),a.e("33861"),a.e("1006"),a.e("1354"),a.e("21570"),a.e("68230"),a.e("23276"),a.e("77473"),a.e("63618"),a.e("55577"),a.e("20282"),a.e("58984"),a.e("54282"),a.e("78412"),a.e("63213"),a.e("30938"),a.e("17859"),a.e("35878"),a.e("38339"),a.e("48720"),a.e("25279"),a.e("88003"),a.e("80239"),a.e("56689"),a.e("75016"),a.e("2329"),a.e("59880"),a.e("74016"),a.e("76087"),a.e("12168"),a.e("77333"),a.e("28752"),a.e("33134"),a.e("80112"),a.e("74907"),a.e("6723"),a.e("54791"),a.e("21856"),a.e("19666"),a.e("21574"),a.e("31445"),a.e("8694"),a.e("81987"),a.e("8948"),a.e("5896"),a.e("9793"),a.e("96817"),a.e("26359"),a.e("88990"),a.e("71202"),a.e("5689")]).then(a.bind(a,485399));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})}}