Build 555975stable
Module 212637
4,934 characters · in 1134d421c2901e96.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("39713"),a.e("12296"),a.e("42329"),a.e("89076"),a.e("26105"),a.e("46461"),a.e("9225"),a.e("90862"),a.e("68835"),a.e("38804"),a.e("90665"),a.e("71626"),a.e("55642"),a.e("80889"),a.e("22513"),a.e("37412"),a.e("92210"),a.e("2327"),a.e("71100"),a.e("5636"),a.e("32697"),a.e("58435"),a.e("69484"),a.e("68331"),a.e("7053"),a.e("48672"),a.e("39995"),a.e("25568"),a.e("63016"),a.e("92153"),a.e("4222"),a.e("18090"),a.e("55785"),a.e("28743"),a.e("72414"),a.e("35538"),a.e("96130"),a.e("333"),a.e("67172"),a.e("41475"),a.e("17611"),a.e("23924"),a.e("42205"),a.e("71091"),a.e("207"),a.e("89281"),a.e("57036"),a.e("57174"),a.e("98839"),a.e("24199"),a.e("28367"),a.e("10471"),a.e("35429"),a.e("63232"),a.e("11301"),a.e("61737"),a.e("60235"),a.e("64827"),a.e("7167"),a.e("96643"),a.e("99278"),a.e("92789"),a.e("2368"),a.e("47834"),a.e("54048"),a.e("19551"),a.e("84569"),a.e("62156"),a.e("6338"),a.e("83255"),a.e("85404"),a.e("96811"),a.e("57791"),a.e("2316"),a.e("7743"),a.e("45959"),a.e("60658"),a.e("8304"),a.e("18573"),a.e("55936"),a.e("31988"),a.e("39667"),a.e("5812"),a.e("34303"),a.e("28866"),a.e("2419"),a.e("58038"),a.e("93159"),a.e("56959"),a.e("25246"),a.e("36458"),a.e("94723"),a.e("62931"),a.e("50417"),a.e("64607"),a.e("88941"),a.e("61379"),a.e("34530"),a.e("43039"),a.e("88077"),a.e("25693"),a.e("32606"),a.e("699"),a.e("28154"),a.e("13681"),a.e("53729"),a.e("48804"),a.e("21690"),a.e("10004"),a.e("55314"),a.e("89094"),a.e("29177"),a.e("32551"),a.e("62680"),a.e("76881"),a.e("4369"),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("98125"),a.e("21825"),a.e("90244"),a.e("18943"),a.e("70653"),a.e("76640"),a.e("53614"),a.e("31825"),a.e("36320"),a.e("20320"),a.e("31390"),a.e("47017"),a.e("90889"),a.e("99657"),a.e("26780"),a.e("44265"),a.e("99141"),a.e("84103"),a.e("17225"),a.e("30920"),a.e("25990"),a.e("33902"),a.e("11527"),a.e("63095"),a.e("39734"),a.e("68647"),a.e("35344"),a.e("63070"),a.e("64615"),a.e("96443"),a.e("87225"),a.e("75134"),a.e("84967"),a.e("55184"),a.e("23216"),a.e("87079"),a.e("18401"),a.e("14879"),a.e("1555"),a.e("73547"),a.e("99593"),a.e("84456"),a.e("47555"),a.e("21435"),a.e("61935"),a.e("99999"),a.e("5501"),a.e("62168"),a.e("69875"),a.e("58157"),a.e("16900"),a.e("91381"),a.e("23891"),a.e("86949"),a.e("15754"),a.e("24761"),a.e("44111"),a.e("20287"),a.e("99843"),a.e("31145"),a.e("37622"),a.e("71577"),a.e("51243"),a.e("52073"),a.e("9915"),a.e("54975"),a.e("93158"),a.e("88740"),a.e("51130"),a.e("58428"),a.e("32823"),a.e("34691"),a.e("92731"),a.e("77084"),a.e("85901"),a.e("5131"),a.e("54625"),a.e("71133"),a.e("28152"),a.e("80230"),a.e("49697"),a.e("95093"),a.e("37687"),a.e("71234"),a.e("23532"),a.e("96137"),a.e("48900"),a.e("60177"),a.e("27773"),a.e("52557"),a.e("1006"),a.e("1354"),a.e("21570"),a.e("23276"),a.e("84870"),a.e("55577"),a.e("1227"),a.e("20282"),a.e("54282"),a.e("78412"),a.e("63213"),a.e("30938"),a.e("17859"),a.e("95444"),a.e("35878"),a.e("48720"),a.e("88003"),a.e("80239"),a.e("49635"),a.e("75016"),a.e("59880"),a.e("74016"),a.e("76087"),a.e("56689"),a.e("42639"),a.e("33134"),a.e("29354"),a.e("80112"),a.e("6723"),a.e("54791"),a.e("21574"),a.e("31445"),a.e("23069"),a.e("81987"),a.e("5896"),a.e("62175"),a.e("9793"),a.e("96817"),a.e("26359"),a.e("88990"),a.e("71202"),a.e("46647")]).then(a.bind(a,345013));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})}}