Module 212637

4,474 characters · in e415389c8bf9eabf.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 n=a(231723),o=a(192308),i=a(157559),s=a(73825),r=a(753390),u=a(166403),d=a(174459),c=a(428262),m=a(652215),p=a(375708);let y="guild-boost-purchase-modal";async function S(e){let{analyticsLocations:t,analyticsLocation:S,analyticsSourceLocation:f,guildId:h,closeLayer:M,onCloseModal:b,totalNumberOfSlotsToAssign:C=1,disablePremiumUpsell:A,onSubscribeComplete:P,onSubscriptionConfirmation:g,inPopout:w,applicationId:L,intent:T}=e,v=w?n.KX:n.SY,G=u.A.getPremiumTypeSubscription();if(null!=G&&G.isPurchasedExternally&&null!=G.paymentGateway){null!=M&&M(),i.A.show({title:p.intl.formatToPlainString(p.t["rTk9v/"],{paymentGatewayName:m.qmC[G.paymentGateway]}),body:p.intl.format(p.t.NY03WF,{paymentGatewayName:m.qmC[G.paymentGateway],subscriptionManagementLink:(0,c.tW)(G.paymentGateway,"SUBSCRIPTION_MANAGEMENT")})});return}Promise.all([(0,r.$o)(),(0,s.zS)()]),await (0,o.openModalLazy)(async()=>{let{default:e}=await Promise.all([a.e("80203"),a.e("67100"),a.e("45650"),a.e("96527"),a.e("39552"),a.e("5959"),a.e("86028"),a.e("73233"),a.e("18541"),a.e("18556"),a.e("31837"),a.e("25719"),a.e("44463"),a.e("40671"),a.e("9023"),a.e("19360"),a.e("18125"),a.e("43778"),a.e("22513"),a.e("13498"),a.e("32993"),a.e("48157"),a.e("42971"),a.e("71934"),a.e("55771"),a.e("4554"),a.e("7053"),a.e("13233"),a.e("39995"),a.e("25568"),a.e("16254"),a.e("28951"),a.e("27660"),a.e("85484"),a.e("31135"),a.e("69177"),a.e("55990"),a.e("10174"),a.e("71100"),a.e("74103"),a.e("79705"),a.e("82802"),a.e("51772"),a.e("40305"),a.e("76212"),a.e("23924"),a.e("42205"),a.e("71091"),a.e("24199"),a.e("207"),a.e("89281"),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("8304"),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("58038"),a.e("93159"),a.e("31716"),a.e("8751"),a.e("62931"),a.e("81987"),a.e("50417"),a.e("74548"),a.e("88941"),a.e("34530"),a.e("62680"),a.e("61379"),a.e("21825"),a.e("98125"),a.e("18441"),a.e("76640"),a.e("25693"),a.e("28154"),a.e("48804"),a.e("88077"),a.e("32606"),a.e("18401"),a.e("14879"),a.e("13681"),a.e("53729"),a.e("10004"),a.e("55314"),a.e("89094"),a.e("29177"),a.e("33902"),a.e("32551"),a.e("31658"),a.e("4369"),a.e("23353"),a.e("53930"),a.e("86949"),a.e("50015"),a.e("11523"),a.e("66900"),a.e("44695"),a.e("44376"),a.e("99999"),a.e("31644"),a.e("70653"),a.e("45723"),a.e("70697"),a.e("18546"),a.e("37622"),a.e("90244"),a.e("18943"),a.e("84103"),a.e("9915"),a.e("53614"),a.e("96123"),a.e("31825"),a.e("36320"),a.e("20320"),a.e("95387"),a.e("31390"),a.e("99657"),a.e("47017"),a.e("90889"),a.e("51243"),a.e("46248"),a.e("44265"),a.e("99141"),a.e("98793"),a.e("92731"),a.e("25990"),a.e("11527"),a.e("63095"),a.e("68647"),a.e("66541"),a.e("63070"),a.e("64615"),a.e("96443"),a.e("87225"),a.e("75134"),a.e("93158"),a.e("84967"),a.e("55184"),a.e("23216"),a.e("87079"),a.e("25637"),a.e("31145"),a.e("78707"),a.e("73547"),a.e("84456"),a.e("99593"),a.e("61935"),a.e("54975"),a.e("62168"),a.e("55602"),a.e("28128"),a.e("58157"),a.e("91381"),a.e("10034"),a.e("73500"),a.e("25252"),a.e("71133"),a.e("77084"),a.e("20287"),a.e("54625"),a.e("49697"),a.e("80230"),a.e("37687"),a.e("48900"),a.e("95093"),a.e("63645"),a.e("71234"),a.e("27773"),a.e("5636"),a.e("86230"),a.e("834"),a.e("60177"),a.e("21570"),a.e("69933"),a.e("26728"),a.e("1354"),a.e("20282"),a.e("23276"),a.e("78412"),a.e("63213"),a.e("9662"),a.e("80239"),a.e("75016"),a.e("4193"),a.e("95444"),a.e("76087"),a.e("48720"),a.e("33134"),a.e("80112"),a.e("59880"),a.e("54791"),a.e("73234"),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:n,onClose:o}=a;return(0,l.jsx)(e,{transitionState:n,onClose:e=>{o(),b?.(e)},analyticsLocations:t,analyticsLocation:S,analyticsSourceLocation:f??S,guildId:h,totalNumberOfSlotsToAssign:C,closeGuildPerksModal:M,disablePremiumUpsell:A,onSubscriptionConfirmation:g,onSubscribeComplete:P,applicationId:L,intent:T})}},{modalKey:y,onCloseCallback:()=>{d.default.track(m.HAw.MODAL_DISMISSED,{type:m.JJy.PREMIUM_GUILD_PURCHASE_MODAL,location:S})},onCloseRequest:()=>{(0,o.closeModal)(y),b?.(!1)},contextKey:v})}}