Loading
function(e,t,n){n.d(t,{A9:()=>q,mU:()=>j,tH:()=>k,NA:()=>b,XR:()=>y,VX:()=>U});var r=n(64700),i=n(17928);n(166352);var l=n(409626),a=n(692969),s=n(773669),o=n(287809),u=n(975571),c=n(252424),m=n(474090),d=n(507107),g=n(627968),f=n(939249),A=n(834730),E=n(862611),C=n(420298),p=n(287875),_=n(651892),R=n(801365),S=n(792620),h=n(814793),I=n(31587),T=n(190107),x=n(652215),N=n(788868),v=n(375708);let L="NVIDIA GeForce NOW";function G(e,t,n){return n?v.intl.formatToPlainString(e,t):v.intl.format(e,t)}function O(e){let{hasRewardDuration:t,shouldShowGameProfileLink:n}=e;return t?n?v.t["/4XT0b"]:v.t["0hwcvM"]:n?v.t.tQoqXX:v.t["eb/Sna"]}function D(e){return e?v.t.klYWbT:v.t.ziB0HF}function M(e){return e?v.t["4JS2QJ"]:v.t.AwuMRS}function P(e){return e?v.t.GFdaUK:v.t.NIimTt}let w=new Date("2026-01-01T00:00:00Z");function j(e){let{quest:t,gameProfileSource:n}=e,r=(0,i.bG)([o.default],()=>o.default.getCurrentUser()),s=(0,I.I3)(t),c=(0,S._3)(t)?.[0],p=(0,a.A)({applicationId:c,location:T.rE.QUEST_INSTRUCTIONS,source:n??l.Ob.QuestHome});return function(e){let{quest:t,taskDetails:n,questContent:r,thirdPartyTaskDetails:i,sourceQuestContent:l,withoutMarkdown:a,currentUser:s,popoutTargetElementRef:o,onGameSheetOpened:c,onGameSheetClosed:p,onGameTitleClick:_}=e,I=(0,m.ki)(s,N.PremiumTypes.TIER_2),j=(0,R.k5)(t.config),q=(0,S.g5)(t)&&(0,S.xZ)(t),k=(0,h.ui)(t),U=(0,R.mH)(t.config,s);if(k)return function(e){let{quest:t,taskDetails:n,sourceQuestContent:r,withoutMarkdown:i,popoutTargetElementRef:l,onGameSheetOpened:a,onGameSheetClosed:s,rewardNameWithArticle:o}=e,{targetMinutes:u,applications:c}=n;if(i)return v.intl.formatToPlainString(v.t["1votF6"],{rewardNameWithArticle:o,targetMinutes:u});let m=function(e){let{quest:t,sourceQuestContent:n,applications:r,popoutTargetElementRef:i,onGameSheetOpened:l,onGameSheetClosed:a}=e;return e=>(0,g.jsx)(E.A,{quest:t,sourceQuestContent:n,applications:r??[],targetElementRef:i,onGameSheetOpened:l,onGameSheetClosed:a,children:(t,n)=>(0,g.jsx)(f.D,{...t,style:{display:"inline-block",cursor:"pointer"},innerRef:n,children:(0,g.jsx)(A.E,{variant:"text-xs/normal",color:"text-link",className:C.s3,children:e})})},t.id)}({quest:t,sourceQuestContent:r,applications:c??[],popoutTargetElementRef:l,onGameSheetOpened:a,onGameSheetClosed:s});return function(e){let{quest:t,gameSheetHook:n,rewardNameWithArticle:r,targetMinutes:i}=e,l={[T.Li.PACKAGE_ACTION_ADVENTURE]:v.t.H485IA,[T.Li.PACKAGE_RPG_MMO]:v.t["3XS8Ni"],[T.Li.PACKAGE_RACING_SPORTS]:v.t["X+UCju"],[T.Li.PACKAGE_SANDBOX_CREATIVE]:v.t["6o4n1Q"],[T.Li.PACKAGE_FAMILY_FRIENDLY]:v.t.DUsNmf,[T.Li.PACKAGE_HOLIDAY_SEASON]:v.t["cWP8/Z"],[T.Li.PACKAGE_NEW_YEARS]:v.t["8+sIJz"]},a=t.config.features.find(e=>e in l),s=(null!=a?l[a]:null)??v.t.CDeHul;return v.intl.format(s,{rewardNameWithArticle:r,targetMinutes:i,gameSheetHook:n})}({quest:t,rewardNameWithArticle:o,targetMinutes:u,gameSheetHook:m})}({quest:t,taskDetails:n,sourceQuestContent:l,withoutMarkdown:a,popoutTargetElementRef:o,onGameSheetOpened:c,onGameSheetClosed:p,rewardNameWithArticle:U});if(q)return function(e){let{quest:t,taskDetails:n,withoutMarkdown:r,hasNitro:i,collectibleRewardDuration:l,onGameTitleClick:a,rewardNameWithArticle:s}=e,{targetMinutes:o}=n,u=t.config.messages.gameTitle,c=(0,R.JX)(t.config),m=(0,R.Y7)(t.config),d=t.config.features.includes(T.Li.NON_GAMING_PLAY_QUEST),g=null!=a;return G(i&&c?m?d?null!=l?v.t.u5QXpw:v.t.ztXW8V:O({hasRewardDuration:null!=l,shouldShowGameProfileLink:g}):d?v.t["1AcTqm"]:D(g):c||null!=l?d?v.t.enQ3jU:M(g):d?v.t["e+K3xJ"]:P(g),{gameTitle:u,streamingDurationRequirement:o,rewardNameWithArticle:s,duration:l,targetMinutes:o,onGameTitleClick:a},r)}({quest:t,taskDetails:n,withoutMarkdown:a,hasNitro:I,collectibleRewardDuration:j,onGameTitleClick:_,rewardNameWithArticle:U});if((0,S.g5)(t))return function(e){let{quest:t,taskDetails:n,withoutMarkdown:r,hasNitro:i,collectibleRewardDuration:l,onGameTitleClick:a,rewardNameWithArticle:s}=e,{targetMinutes:o}=n,u=t.config.messages.gameTitle,c=(0,R.JX)(t.config),m=(0,R.Y7)(t.config),d=null!=a;return G(i&&c?m?O({hasRewardDuration:null!=l,shouldShowGameProfileLink:d}):D(d):c||null!=l?M(d):P(d),{gameTitle:u,targetMinutes:o,rewardNameWithArticle:s,duration:l,streamingDurationRequirement:o,onGameTitleClick:a},r)}({quest:t,taskDetails:n,withoutMarkdown:a,hasNitro:I,collectibleRewardDuration:j,onGameTitleClick:_,rewardNameWithArticle:U});if((0,S.xZ)(t))return function(e){let t,{quest:n,taskDetails:r,withoutMarkdown:i,hasNitro:l,collectibleRewardDuration:a,onGameTitleClick:s,rewardNameWithArticle:o}=e,{targetMinutes:u}=r,c=n.config.messages.gameTitle,m=(0,R.JX)(n.config),d=(0,R.Y7)(n.config),g=n.config.features.includes(T.Li.NON_GAMING_PLAY_QUEST),f=null!=s;return G(t=l&&m?d?g?null!=a?v.t.u5QXpw:v.t.ztXW8V:O({hasRewardDuration:null!=a,shouldShowGameProfileLink:f}):g?v.t["1AcTqm"]:D(f):m||null!=a?g?v.t.enQ3jU:M(f):g?v.t["03VJqu"]:f?v.t.NrD2h8:v.t.FZL5Q5,{gameTitle:c,streamingDurationRequirement:u,rewardNameWithArticle:o,duration:a,questReward:o,onGameTitleClick:s},i)}({quest:t,taskDetails:n,withoutMarkdown:a,hasNitro:I,collectibleRewardDuration:j,onGameTitleClick:_,rewardNameWithArticle:U});if((0,R.kr)({quest:t}))return function(e){let{quest:t,taskDetails:n,withoutMarkdown:r,onGameTitleClick:i}=e,{targetMinutes:l}=n,a=t.config.messages.gameTitle;return G(null!=i?v.t.HHVg4i:v.t["a/ia7F"],{gameTitle:a,streamingDurationRequirement:l,onGameTitleClick:i},r)}({quest:t,taskDetails:n,withoutMarkdown:a,onGameTitleClick:_});else if((0,S.vv)(t))return function(e){let{quest:t,collectibleRewardDuration:n,hasNitro:r,withoutMarkdown:i,rewardNameWithArticle:l}=e,a=(0,S.Xi)(t.config),s=a?.messages.videoTitle??"video",o=(0,R.JX)(t.config),u=(0,R.Y7)(t.config);return G(o&&r?u?null!=n?v.t.tXwfJT:v.t["xqX+r5"]:v.t["vs/xBu"]:o||null!=n?v.t["W/HkLO"]:t.id===T.Fw?v.t.Rsd5bL:v.t["g+InPC"],{videoTitle:s,rewardNameWithArticle:l,duration:n},i)}({quest:t,collectibleRewardDuration:j,hasNitro:I,withoutMarkdown:a,rewardNameWithArticle:U});else if((0,S.vl)(t))return function(e){let{quest:t,taskDetails:n,withoutMarkdown:r,questContent:i,rewardNameWithArticle:l}=e,a=n.targetMinutes;return(0,h._e)(t)?G(v.t.VYwSSu,{streamingDurationRequirement:a,questReward:l},r):t.config.features.includes(T.Li.CLOUD_GAMING_ACTIVITY)&&new Date(t.config.startsAt)<w?i===d.uF.QUESTS_EMBED?G(v.t["C+2RxC"],{activityName:t.config.messages.gameTitle,providerName:L,providerLink:u.A.getArticleURL(x.MVz.NVIDIA_GEFORCE_CLOUD_GAMING_QUEST),questReward:l},r):G(v.t["0NNM3l"],{activityName:t.config.messages.gameTitle,providerName:L,providerLink:u.A.getArticleURL(x.MVz.NVIDIA_GEFORCE_CLOUD_GAMING_QUEST),streamingDurationRequirement:a,questReward:l},r):G(v.t.UuzHh8,{activityName:t.config.messages.gameTitle,streamingDurationRequirement:a,questReward:l},r)}({quest:t,taskDetails:n,withoutMarkdown:a,questContent:r,rewardNameWithArticle:U});else if((0,S.I6)(t)&&null!=i)return function(e){let{quest:t,thirdPartyTaskDetails:n,withoutMarkdown:r,hasNitro:i,collectibleRewardDuration:l,rewardNameWithArticle:a}=e,s=(0,R.JX)(t.config),o=(0,R.Y7)(t.config);return G(i&&s?o?null!=l?v.t.NdXW5c:v.t["8066TK"]:null!=l?v.t["6FOKAX"]:v.t.thO6iA:s||null!=l?v.t["IACEB/"]:v.t.thO6iA,{objective:n.description,duration:l,questReward:a},r)}({quest:t,thirdPartyTaskDetails:i,withoutMarkdown:a,hasNitro:I,collectibleRewardDuration:j,rewardNameWithArticle:U});return null!=i?i.description:function(e){let{quest:t,taskDetails:n,withoutMarkdown:r,hasNitro:i,collectibleRewardDuration:l,onGameTitleClick:a,rewardNameWithArticle:s}=e,{targetMinutes:o}=n,u=t.config.messages.gameTitle,c=(0,R.JX)(t.config),m=(0,R.Y7)(t.config),d=null!=a;return G(i&&c?m?null!=l?d?v.t["3RwRv8"]:v.t.TmKqHw:d?v.t.l9yxDa:v.t["X8Yt/1"]:d?v.t.eEuma3:v.t.smG9ql:c||null!=l?d?v.t.Cko4a4:v.t.BLyDvO:d?v.t.ER9rII:v.t["hkJ+Gs"],{gameTitle:u,streamingDurationRequirement:o,duration:l,questReward:s,onGameTitleClick:a},r)}({quest:t,taskDetails:n,withoutMarkdown:a,hasNitro:I,collectibleRewardDuration:j,onGameTitleClick:_,rewardNameWithArticle:U})}({...e,currentUser:r,withoutMarkdown:!1,thirdPartyTaskDetails:s??void 0,onGameTitleClick:p})}function q(e,t,n,r,i,l){let a=(0,I.fc)(e),s=j({quest:e,taskDetails:a,location:n,questContent:r,sourceQuestContent:t,popoutTargetElementRef:l,gameProfileSource:i}),o=e.userStatus?.claimedAt!=null,u=(0,I.S5)(e.userStatus?.claimedAt);return o?v.intl.formatToPlainString(v.t.lOVr0O,{claimDate:u}):s}function k(e){let{quest:t,isExpanded:n,sourceQuestContent:r,activeScreen:a,popoutTargetElementRef:s,onGameSheetOpened:u,onGameSheetClosed:c,hasAlreadyLinked:m,onClickGameTitle:g}=e,f=t.config.rewardsConfig.rewardsExpireAt,A=(0,I.S5)(f),E=(0,I.fc)(t),C=(0,I.I3)(t),p=(0,i.bG)([o.default],()=>o.default.getCurrentUser()),x=t.userStatus?.completedAt!=null,N=t.userStatus?.enrolledAt!=null,L=E.percentComplete>0,G=(0,I.Vn)(t),O=j({quest:t,location:T.rE.QUESTS_BAR,questContent:d.uF.QUEST_BAR_V2,taskDetails:E,sourceQuestContent:r,popoutTargetElementRef:s,onGameSheetOpened:u,onGameSheetClosed:c,gameProfileSource:l.Ob.QuestBar}),D=null!=C?C.percentComplete:E.percentComplete;if(x)return v.intl.formatToPlainString(v.t.APddvF,{expirationDate:A});if((0,S.I6)(t)&&!1===m)return v.intl.string(v.t.mAdqf7);if(n){if((0,S.I6)(t)&&!0===m&&null!=g)return v.intl.format(v.t.X8hBDz,{gameTitle:t.config.messages.gameTitle,onClickGameTitle:g});if(a!==d.X0.SELECT&&(0,h.ui)(t)&&N&&!L){let e=(0,R.mH)(t.config,p);return v.intl.format(v.t["1votF6"],{rewardNameWithArticle:e,targetMinutes:E.targetMinutes})}return O}return(0,S.vv)(t)?v.intl.string(v.t["o+e9yh"]):D>0?(0,S.I6)(t)&&!0===m?v.intl.string(v.t.JkyCIO):G?(0,_.YT)({quest:t,taskDetails:E,thirdPartyTaskDetails:C??void 0}):v.intl.string(v.t.mOrpXG):v.intl.string(v.t.S6UUc5)}function U(e,t){let n=(0,i.bG)([s.default],()=>s.default.locale),r=(0,I.fc)(e),[l]=(0,I.Qo)(e,r),a=(0,I.I3)(e),o=e.userStatus?.completedAt!=null,u=null!=a?a.percentComplete:r.percentComplete;if(o)return v.intl.string(v.t["ij5E/5"]);if((0,S.I6)(e)&&!1===t)return v.intl.string(v.t.s9r2a1);if(e.userStatus?.enrolledAt!=null&&u>0){let e=(0,c.l9)(n,u,{roundingMode:"floor"});return v.intl.formatToPlainString(v.t.lVZaXD,{percent:e})}return l===d.X0.SELECT?v.intl.string(v.t.EMrUHQ):(0,S.g5)(e)?v.intl.string(v.t.mOrpXG):v.intl.string(v.t["7e5k7L"])}function b(e){let{quest:t,application:n,shortText:i=!1}=e,l=r.useMemo(()=>(function(e){return(0,S.g5)(e)||(0,S.vl)(e)?0:(0,S.fE)({quest:e})?1:(0,S.IO)(e)?2:3*!!(0,S.Cr)(e)})(t),[t]),a=(0,I.fc)(t);switch(l){case 0:if(t.config.features.includes(T.Li.CLOUD_GAMING_ACTIVITY))return v.intl.string(v.t["+qoymD"]);if((0,h.vA)(t))return v.intl.string(i?v.t.E4kW5O:v.t["Ie9++s"]);return v.intl.string(v.t.l7E81v);case 1:return v.intl.string(v.t.l7E81v);case 2:return(0,p.WM)(a);case 3:return(0,h.vA)(t)&&1?v.intl.string(i?v.t.CkUzLd:v.t["hRIVy+"]):v.intl.string(v.t.l7E81v)}}function y(e){let{quest:t,rewardCode:n}=e,r=(0,R.kr)({quest:t}),i=n?.platform??d.pY.CROSS_PLATFORM,l=r?(0,R.cg)({quest:t,idx:n?.tier??t.userStatus?.claimedTier}):null,a=(0,_.xv)(t.config),s=l?.messages?.redemptionInstructionsByPlatform??a.messages.redemptionInstructionsByPlatform;return null!=i?s[i]:void 0}}