Module 212637

4,124 characters · in no known chunk
Dependencies
Required by (3)
Lazily required by (0)none
Lazily requires (1)
Source Raw
function(e,t,n){"use strict";n.d(t,{A:()=>f});var i=n(231723),r=n(157559),s=n(73825),a=n(277984),o=n(120700),l=n(166403),u=n(174459),c=n(428262),d=n(652215),_=n(202541),h=n(375708);function f(e){let{analyticsLocations:t,analyticsLocation:f,analyticsSourceLocation:E,guildId:p,closeLayer:m,onCloseModal:g,totalNumberOfSlotsToAssign:A=1,disablePremiumUpsell:I,onSubscribeComplete:T,onSubscriptionConfirmation:S,inPopout:N,applicationId:C,intent:y}=e,O=N?i.KX:i.SY,R=l.A.getPremiumTypeSubscription();if(null!=R&&R.isPurchasedExternally&&null!=R.paymentGateway){null!=m&&m(),r.A.show({title:h.intl.formatToPlainString(h.t["rTk9v/"],{paymentGatewayName:d.qmC[R.paymentGateway]}),body:h.intl.format(h.t.NY03WF,{paymentGatewayName:d.qmC[R.paymentGateway],subscriptionManagementLink:(0,c.tW)(R.paymentGateway,"SUBSCRIPTION_MANAGEMENT")})});return}function v(){u.default.track(d.HAw.MODAL_DISMISSED,{type:d.JJy.PREMIUM_GUILD_PURCHASE_MODAL,location:f})}return Promise.all([(0,a.$o)(),(0,s.zS)()]),Promise.all([n.e("86832"),n.e("95512"),n.e("69273"),n.e("72210"),n.e("3155"),n.e("82104"),n.e("41711"),n.e("87761"),n.e("49623"),n.e("35316"),n.e("38838"),n.e("45214"),n.e("99253"),n.e("58846"),n.e("17202"),n.e("90862"),n.e("90266"),n.e("15476"),n.e("97189"),n.e("42791"),n.e("16918"),n.e("33730"),n.e("24059"),n.e("31837"),n.e("42306"),n.e("11291"),n.e("96846"),n.e("19709"),n.e("4251"),n.e("47412"),n.e("65327"),n.e("41625"),n.e("96490"),n.e("85484"),n.e("51772"),n.e("21918"),n.e("11262"),n.e("54483"),n.e("62461"),n.e("25677"),n.e("59252"),n.e("88804"),n.e("89001"),n.e("75029"),n.e("73679"),n.e("35538"),n.e("73178"),n.e("59012"),n.e("25336"),n.e("429"),n.e("35126"),n.e("333"),n.e("28443"),n.e("68515"),n.e("97638"),n.e("22995"),n.e("84896"),n.e("38759"),n.e("51943"),n.e("90072"),n.e("72651"),n.e("29363"),n.e("88016"),n.e("74907"),n.e("84133"),n.e("13627"),n.e("57940"),n.e("58171"),n.e("48404"),n.e("39375"),n.e("47944"),n.e("84473"),n.e("70990"),n.e("15130"),n.e("80816"),n.e("74051"),n.e("50541"),n.e("23924"),n.e("42205"),n.e("55675"),n.e("48226"),n.e("10471"),n.e("64827"),n.e("63232"),n.e("68261"),n.e("7167"),n.e("11301"),n.e("96643"),n.e("84569"),n.e("60235"),n.e("61737"),n.e("92789"),n.e("21335"),n.e("77333"),n.e("47834"),n.e("11735"),n.e("85927"),n.e("834"),n.e("2368"),n.e("42842"),n.e("33115"),n.e("6338"),n.e("18573"),n.e("55936"),n.e("85404"),n.e("44057"),n.e("17879"),n.e("88774"),n.e("10120"),n.e("62175"),n.e("31988"),n.e("44571"),n.e("34303"),n.e("97270"),n.e("45959"),n.e("73122"),n.e("8304"),n.e("93159"),n.e("71202"),n.e("8739"),n.e("88131"),n.e("42834"),n.e("43430"),n.e("94723"),n.e("28866"),n.e("62931"),n.e("58529"),n.e("58038"),n.e("62531"),n.e("34801"),n.e("6174"),n.e("32191"),n.e("28662"),n.e("54625"),n.e("71133"),n.e("77084"),n.e("23532"),n.e("52557"),n.e("28152"),n.e("76428"),n.e("53133"),n.e("96137"),n.e("48900"),n.e("35485"),n.e("83870"),n.e("63645"),n.e("27773"),n.e("5636"),n.e("32085"),n.e("82069"),n.e("24038"),n.e("37687"),n.e("71234"),n.e("63556"),n.e("60177"),n.e("20282"),n.e("54282"),n.e("77473"),n.e("63618"),n.e("38755"),n.e("80239"),n.e("1462"),n.e("2329"),n.e("40362"),n.e("76087"),n.e("25279"),n.e("88003"),n.e("28752"),n.e("31445"),n.e("78412"),n.e("88990"),n.e("9793"),n.e("30938"),n.e("43549"),n.e("48720"),n.e("97288"),n.e("10575"),n.e("19666"),n.e("91254"),n.e("54630"),n.e("42489"),n.e("21574"),n.e("59880"),n.e("6723"),n.e("9729"),n.e("54791"),n.e("60658"),n.e("81987"),n.e("21856"),n.e("5563")]).then(n.bind(n,529427)).then(e=>{let{UnifiedCheckoutFlowManagerSingletons:n}=e;return n[o.C.GUILD_BOOST_CHECKOUT].get().openCheckoutModal({checkoutConfiguration:{skuId:_.pe.GUILD,applicationId:C,activeSubscription:R},forwardedPaymentModalProps:{guildId:p,onSubscriptionConfirmation:S,analyticsObject:f},checkoutHandlers:{onClose:e=>{null!=g&&g(e)}},unifiedCheckoutProviderProps:{analyticsLocations:t,analyticsSourceLocation:E??f},modalAPIOptions:{modalKey:"guild-boost-purchase-modal",contextKey:O,onCloseCallback:v},tenantParams:{guildId:p,totalNumberOfSlotsToAssign:A,intent:y,disablePremiumUpsell:I,onSubscribeComplete:T,closeGuildPerksModal:m,analyticsLocation:f}})})}}