Build 580919stable
Module 532794
5,131 characters · in no known chunkDependencies
Required by (35)
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(277057),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:O,analyticsObject:R,analyticsLocation:L,analyticsSourceLocation:y,confirmationFooter:D,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,shouldDisallowPlanSelection:W}=e,Y=r()("payment-modal"),K=(0,f.mH)(U),$=v||K!==(0,f.mH)(g.pe.TIER_2)?null:h.A.getMarketingMomentPromotion(),z=$?.rewardSkuIds[0]??null,q=!1;function Z(){q||(q=!0,I._.dispatch(T.jej.WOW_MOMENT_CONFIRMATION_MODAL_CLOSED),A.A.isDisplayingWowMomentConfirmation&&A.A.isAnimated?setTimeout(()=>{(0,a.closeModal)(Y)},p.K):(0,a.closeModal)(Y))}function X(e){(0,o.ET)(),(0,l.ET)(),(0,d.z)(),e&&null!=C&&C()}function Q(){return(0,a.closeModal)(Y)}return Promise.all([n.e("86832"),n.e("76342"),n.e("60988"),n.e("20950"),n.e("56372"),n.e("71441"),n.e("65264"),n.e("49623"),n.e("35316"),n.e("38838"),n.e("45214"),n.e("99253"),n.e("58846"),n.e("47754"),n.e("33526"),n.e("89510"),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("83893"),n.e("83133"),n.e("63051"),n.e("84873"),n.e("19709"),n.e("67458"),n.e("58427"),n.e("28646"),n.e("65327"),n.e("41625"),n.e("7959"),n.e("61783"),n.e("6605"),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("9795"),n.e("25336"),n.e("28794"),n.e("35126"),n.e("333"),n.e("28443"),n.e("18185"),n.e("97638"),n.e("22995"),n.e("59096"),n.e("55953"),n.e("18698"),n.e("77083"),n.e("46461"),n.e("47944"),n.e("64509"),n.e("55507"),n.e("38759"),n.e("17480"),n.e("90072"),n.e("72651"),n.e("29363"),n.e("80822"),n.e("50336"),n.e("74907"),n.e("84133"),n.e("13627"),n.e("57940"),n.e("78179"),n.e("48157"),n.e("44511"),n.e("37271"),n.e("82781"),n.e("39932"),n.e("70990"),n.e("15130"),n.e("80816"),n.e("73021"),n.e("57016"),n.e("50541"),n.e("42205"),n.e("55675"),n.e("27962"),n.e("36167"),n.e("64827"),n.e("63232"),n.e("7167"),n.e("10471"),n.e("84569"),n.e("61060"),n.e("54484"),n.e("60235"),n.e("77333"),n.e("6338"),n.e("47834"),n.e("18573"),n.e("78157"),n.e("44057"),n.e("53782"),n.e("88774"),n.e("31988"),n.e("44571"),n.e("34303"),n.e("40291"),n.e("2368"),n.e("33115"),n.e("97270"),n.e("73122"),n.e("8304"),n.e("93159"),n.e("55936"),n.e("89088"),n.e("69294"),n.e("94723"),n.e("62931"),n.e("45959"),n.e("58529"),n.e("58038"),n.e("71202"),n.e("62531"),n.e("44230"),n.e("6174"),n.e("32191"),n.e("77084"),n.e("54625"),n.e("71133"),n.e("28662"),n.e("29963"),n.e("38513"),n.e("63645"),n.e("76428"),n.e("23532"),n.e("96137"),n.e("52557"),n.e("63123"),n.e("834"),n.e("24038"),n.e("55654"),n.e("27773"),n.e("50097"),n.e("80445"),n.e("48900"),n.e("35485"),n.e("82069"),n.e("37687"),n.e("46800"),n.e("71234"),n.e("6306"),n.e("20282"),n.e("54282"),n.e("77473"),n.e("63618"),n.e("38755"),n.e("80239"),n.e("60177"),n.e("75016"),n.e("2329"),n.e("23276"),n.e("35996"),n.e("76087"),n.e("91824"),n.e("25279"),n.e("28752"),n.e("31445"),n.e("26931"),n.e("78412"),n.e("88990"),n.e("9793"),n.e("43549"),n.e("11301"),n.e("48720"),n.e("88003"),n.e("10575"),n.e("19666"),n.e("54630"),n.e("42489"),n.e("21574"),n.e("80112"),n.e("59880"),n.e("6723"),n.e("9729"),n.e("74016"),n.e("60658"),n.e("81987"),n.e("21856"),n.e("5563"),n.e("97288")]).then(n.bind(n,529427)).then(e=>{let{UnifiedCheckoutFlowManagerSingletons:n}=e;return n[c.C.PREMIUM_CHECKOUT].get().openCheckoutModal({checkoutConfiguration:{applicationId:k,skuId:K??null},forwardedPaymentModalProps:{analyticsObject:R,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=>(function(e,t){q||(q=!0,I._.dispatch(T.jej.WOW_MOMENT_CONFIRMATION_MODAL_CLOSED),A.A.isDisplayingWowMomentConfirmation&&A.A.isAnimated?setTimeout(()=>{n()},p.K):n());async function n(){if(null!=t&&t(),s.h.dispatch({type:"PREMIUM_PAYMENT_MODAL_CLOSE",didSucceed:e}),e&&null!=z&&$.endDate>=new Date){await (0,u.RE)(z);let e=_.A.getProduct(z);null!=e&&(0,E.A)({product:e,analyticsLocations:O??[],purchaseType:m.gs.PROMOTIONAL,overrideGradientColor:"nitro-pink"})}}})(e,Q)},unifiedCheckoutProviderProps:{analyticsSourceLocation:y,analyticsLocations:O},checkoutHandlers:{onClose:S,onComplete:N},giftContextProps:{isGift:v,giftMessage:b,giftStyle:M,giftingOrigin:P,giftRecipient:V},tenantParams:{confirmationFooter:D,defaultPlanId:void 0,referralCode:null,referralTrialOfferId:F,subscriptionTier:U,subscription:H,shouldDisallowPlanSelection:W},modalAPIOptions:{modalKey:Y,skipCloseModalOnCloseRequest:!0,onCloseRequest:Z,onCloseCallback:X}})})}}