Build 576754stable
Module 532794
4,996 characters · in no known chunkDependencies
Required by (34)
Lazily required by (0)none
Requires (18)
Lazily requires (1)
Source Raw
function(e,t,n){"use strict";n.d(t,{A:()=>S});var i=n(296489),r=n.n(i),a=n(192308),s=n(228366),l=n(391048),o=n(158032),d=n(636099),c=n(120700),u=n(662388),_=n(590180),E=n(61750),A=n(573359),h=n(412260),I=n(625494),f=n(428262),p=n(811656),T=n(652215),m=n(758836),g=n(202541);function S(e){let{initialPlanId:t,followupSKUInfo:i,onClose:S,onComplete:N,onSubscriptionConfirmation:C,analyticsLocations:R,analyticsObject:O,analyticsLocation:L,analyticsSourceLocation:D,confirmationFooter:y,isGift:v=!1,giftMessage:b,giftStyle:M,giftingOrigin:P,subscriptionTier:U,trialId:w,postSuccessGuild:G,openInvoiceId:x,applicationId:k,referralTrialOfferId:F,giftRecipient:V,returnRef:B,subscription:H,skipConfirm:j}=e??{},W=r()("payment-modal"),Y=(0,f.mH)(U),K=v||Y!==(0,f.mH)(g.pe.TIER_2)?null:h.A.getMarketingMomentPromotion(),$=K?.rewardSkuIds[0]??null,z=!1;function q(){z||(z=!0,I._.dispatch(T.jej.WOW_MOMENT_CONFIRMATION_MODAL_CLOSED),A.A.isDisplayingWowMomentConfirmation&&A.A.isAnimated?setTimeout(()=>{(0,a.closeModal)(W)},p.K):(0,a.closeModal)(W))}let Z=e=>{(0,o.ET)(),(0,l.ET)(),(0,d.z)(),e&&null!=C&&C()};function X(){return(0,a.closeModal)(W)}return Promise.all([n.e("42676"),n.e("10198"),n.e("9212"),n.e("75193"),n.e("35442"),n.e("38739"),n.e("27956"),n.e("80943"),n.e("15080"),n.e("46903"),n.e("31880"),n.e("42141"),n.e("77086"),n.e("53385"),n.e("46494"),n.e("30810"),n.e("41842"),n.e("84346"),n.e("42936"),n.e("17829"),n.e("45095"),n.e("10038"),n.e("11586"),n.e("5111"),n.e("26621"),n.e("7458"),n.e("44791"),n.e("92678"),n.e("41117"),n.e("5307"),n.e("4728"),n.e("67831"),n.e("19353"),n.e("34418"),n.e("71436"),n.e("59132"),n.e("15553"),n.e("66238"),n.e("78771"),n.e("85753"),n.e("38413"),n.e("68004"),n.e("74756"),n.e("97865"),n.e("4809"),n.e("68463"),n.e("37842"),n.e("67962"),n.e("56104"),n.e("68844"),n.e("87437"),n.e("54158"),n.e("37965"),n.e("4303"),n.e("30607"),n.e("45522"),n.e("11411"),n.e("856"),n.e("57009"),n.e("97446"),n.e("81127"),n.e("49251"),n.e("48632"),n.e("20939"),n.e("23443"),n.e("47336"),n.e("45151"),n.e("35837"),n.e("30088"),n.e("18292"),n.e("19"),n.e("69547"),n.e("97735"),n.e("62092"),n.e("64949"),n.e("51706"),n.e("31182"),n.e("61488"),n.e("16315"),n.e("52845"),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("12721"),n.e("84569"),n.e("60235"),n.e("61737"),n.e("92789"),n.e("43716"),n.e("77333"),n.e("2773"),n.e("11735"),n.e("85927"),n.e("834"),n.e("2368"),n.e("42842"),n.e("33115"),n.e("36845"),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("50741"),n.e("95569"),n.e("93159"),n.e("71202"),n.e("8739"),n.e("42834"),n.e("88131"),n.e("43430"),n.e("94723"),n.e("62931"),n.e("58529"),n.e("58038"),n.e("62531"),n.e("44974"),n.e("6174"),n.e("32191"),n.e("54625"),n.e("28662"),n.e("71133"),n.e("77084"),n.e("23532"),n.e("52557"),n.e("28152"),n.e("55654"),n.e("76428"),n.e("96137"),n.e("48900"),n.e("35485"),n.e("83161"),n.e("86026"),n.e("27773"),n.e("5636"),n.e("32085"),n.e("82069"),n.e("24038"),n.e("37687"),n.e("71234"),n.e("7323"),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("28752"),n.e("2329"),n.e("35996"),n.e("40362"),n.e("76087"),n.e("25279"),n.e("88003"),n.e("31445"),n.e("78412"),n.e("88990"),n.e("9793"),n.e("30938"),n.e("43549"),n.e("48720"),n.e("74907"),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("45587"),n.e("81987"),n.e("21856"),n.e("5563")]).then(n.bind(n,529427)).then(e=>{let{UnifiedCheckoutFlowManagerSingletons:n}=e;return n[c.C.PREMIUM_CHECKOUT].get().openCheckoutModal({checkoutConfiguration:{applicationId:k,skuId:Y??null},forwardedPaymentModalProps:{analyticsObject:O,initialPlanId:t,analyticsLocation:L,followupSKUInfo:i,onSubscriptionConfirmation:C,postSuccessGuild:G,trialId:w,planGroup:g.LE,openInvoiceId:x,returnRef:B,subscriptionTier:U,skipConfirm:!!j,paymentModalOnClose:e=>((e,t)=>{if(z)return;z=!0,I._.dispatch(T.jej.WOW_MOMENT_CONFIRMATION_MODAL_CLOSED);let n=async()=>{if(null!=t&&t(),s.h.dispatch({type:"PREMIUM_PAYMENT_MODAL_CLOSE",didSucceed:e}),e&&null!=$&&K.endDate>=new Date){await (0,u.RE)($);let e=_.A.getProduct($);null!=e&&(0,E.A)({product:e,analyticsLocations:R??[],purchaseType:m.gs.PROMOTIONAL,overrideGradientColor:"nitro-pink"})}};A.A.isDisplayingWowMomentConfirmation&&A.A.isAnimated?setTimeout(()=>{n()},p.K):n()})(e,X)},unifiedCheckoutProviderProps:{analyticsSourceLocation:D,analyticsLocations:R},checkoutHandlers:{onClose:S,onComplete:N},giftContextProps:{isGift:v,giftMessage:b,giftStyle:M,giftingOrigin:P,giftRecipient:V},tenantParams:{confirmationFooter:y,defaultPlanId:void 0,referralCode:null,referralTrialOfferId:F,subscriptionTier:U,subscription:H},modalAPIOptions:{modalKey:W,skipCloseModalOnCloseRequest:!0,onCloseRequest:q,onCloseCallback:Z}})})}}