Build 589089stable
Module 532794
5,235 characters · in no known chunkDependencies
Required by (37)
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(839534),_=n(590180),E=n(61750),A=n(573359),h=n(616431),I=n(625494),f=n(158045),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: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,shouldDisallowPlanSelection:W,initialPaymentSourceId:Y,startingStepOverride:K}=e,$=r()("payment-modal"),z=(0,f.mH)(U),q=v||z!==(0,f.mH)(g.pe.TIER_2)?null:h.A.getMarketingMomentPromotion(),Z=q?.rewardSkuIds[0]??null,X=!1;function Q(){X||(X=!0,I._.dispatch(T.jej.WOW_MOMENT_CONFIRMATION_MODAL_CLOSED),A.A.isDisplayingWowMomentConfirmation&&A.A.isAnimated?setTimeout(()=>{(0,a.closeModal)($)},p.K):(0,a.closeModal)($))}function J(e){(0,o.ET)(),(0,l.ET)(),(0,d.z)(),e&&null!=C&&C()}function ee(){return(0,a.closeModal)($)}return Promise.all([n.e("73470"),n.e("83118"),n.e("98942"),n.e("31076"),n.e("66806"),n.e("23102"),n.e("85090"),n.e("70772"),n.e("2285"),n.e("54303"),n.e("97726"),n.e("42394"),n.e("44459"),n.e("64293"),n.e("98986"),n.e("37467"),n.e("60411"),n.e("93637"),n.e("45807"),n.e("26572"),n.e("39737"),n.e("72712"),n.e("85391"),n.e("56356"),n.e("18307"),n.e("5270"),n.e("42293"),n.e("60574"),n.e("82222"),n.e("18917"),n.e("94450"),n.e("86307"),n.e("3574"),n.e("711"),n.e("73153"),n.e("25457"),n.e("40981"),n.e("75030"),n.e("63576"),n.e("18330"),n.e("50693"),n.e("9140"),n.e("23804"),n.e("40961"),n.e("93837"),n.e("6487"),n.e("32856"),n.e("69794"),n.e("5211"),n.e("95325"),n.e("25162"),n.e("27670"),n.e("20661"),n.e("75131"),n.e("23105"),n.e("69190"),n.e("18315"),n.e("17776"),n.e("78969"),n.e("77770"),n.e("61275"),n.e("49557"),n.e("30072"),n.e("18629"),n.e("48227"),n.e("37175"),n.e("13920"),n.e("99424"),n.e("5987"),n.e("29083"),n.e("670"),n.e("99496"),n.e("72467"),n.e("44565"),n.e("88563"),n.e("24212"),n.e("20459"),n.e("54960"),n.e("55455"),n.e("778"),n.e("75683"),n.e("23864"),n.e("47519"),n.e("80197"),n.e("48132"),n.e("61686"),n.e("77873"),n.e("97312"),n.e("38469"),n.e("62332"),n.e("8607"),n.e("27962"),n.e("61282"),n.e("64827"),n.e("63232"),n.e("7167"),n.e("84569"),n.e("61060"),n.e("10471"),n.e("52457"),n.e("60235"),n.e("77333"),n.e("6338"),n.e("47834"),n.e("18573"),n.e("97595"),n.e("47662"),n.e("44057"),n.e("55112"),n.e("28504"),n.e("31988"),n.e("62156"),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("30760"),n.e("94723"),n.e("30316"),n.e("62931"),n.e("45959"),n.e("58529"),n.e("81987"),n.e("58038"),n.e("71202"),n.e("75201"),n.e("76909"),n.e("6174"),n.e("32191"),n.e("77084"),n.e("54625"),n.e("93514"),n.e("28662"),n.e("29963"),n.e("92075"),n.e("76428"),n.e("23532"),n.e("96137"),n.e("63123"),n.e("27773"),n.e("52413"),n.e("99292"),n.e("50097"),n.e("57180"),n.e("48900"),n.e("82069"),n.e("35485"),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("74439"),n.e("65689"),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("50469"),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("21856"),n.e("49845"),n.e("74907")]).then(n.bind(n,529427)).then(e=>{let{UnifiedCheckoutFlowManagerSingletons:n}=e;return n[c.C.PREMIUM_CHECKOUT].get().openCheckoutModal({checkoutConfiguration:{applicationId:k,skuId:z??null,initialPaymentSourceId:Y},forwardedPaymentModalProps:{analyticsObject:R,initialPlanId:t,startingStepOverride:K,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){X||(X=!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&&q.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,ee)},unifiedCheckoutProviderProps:{analyticsSourceLocation:D,analyticsLocations:O},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,shouldDisallowPlanSelection:W,initialPaymentSourceId:Y},modalAPIOptions:{modalKey:$,skipCloseModalOnCloseRequest:!0,onCloseRequest:Q,onCloseCallback:J}})})}}