try{let e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`552bbca9-34a8-4479-afca-c4f7a8798f37`,e._sentryDebugIdIdentifier=`sentry-dbid-552bbca9-34a8-4479-afca-c4f7a8798f37`)}catch{}import{o as e}from"./rolldown-runtime-eb2nym32.js";import{st as t}from"./xds-react-components-lks62tbl.js";import{Ag as n,Fg as r,Pm as i,Wn as a,X as o,Z as s,cr as c,dn as l,hn as u,or as d,tn as f,uh as p,zr as m}from"./entry.client-dr7r6s9a.js";import{tn as h}from"./xds-icons-d7khcnpi.js";import{t as g}from"./usePlanPickerProps-kd3toy2t.js";import{n as _,t as v}from"./DialogShell-k2jpaw9r.js";import{t as y}from"./GameArtScroller-od5f5tc5.js";var b=r(),x=e(d(),1),S=(0,x.default)(`flex`,`flex-col`,`min-h-0`,`overflow-y-auto sbar`,`self-stretch`,`items-start`,`w-full`,`gap-layout-vertical-group-of-items-regular`,`type-body`),C=e=>{let t=[`radial-gradient(50% 80% at 40% 15%, rgba(0, 125, 181, 0.13) 0%, rgba(0, 125, 181, 0) 100%)`,`radial-gradient(50% 75% at 60% 15%, rgba(0, 135, 70, 0.12) 0%, rgba(0, 135, 70, 0) 100%)`].join(`, `);return i(e)||e===`light`?`unset`:t},w=`FresnoTimeoutUpsellDialog`;function T(e,t){return{locLookingForMore:()=>e(`Looking for more cloud playtime?`,{ns:w,shortKey:`cloud_playtime_more_looking`}),locXGPPComesWith:()=>e(`XGPP comes with stream games.`,{ns:w,shortKey:`xgpp_stream_games`}),locJoinGamePass:()=>e(`Join Game Pass Essential, Premium, or Ultimate to get unlimited cloud gaming.`,{ns:w,shortKey:`join_gamepass_unlimited_cloud`}),locViewPlans:()=>e(`View plans`,{ns:w,shortKey:`plans_view_4f6e4a`})}}var E=()=>p(w,T),D=n(),O=l(e=>{let n=(0,b.c)(39),{onViewPlansPress:r}=e,{locLookingForMore:i,locXGPPComesWith:o,locJoinGamePass:s,locViewPlans:l}=E(),d=y.useComponent(),p;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(p={default:!1,SM_20:!0},n[0]=p):p=n[0];let{data:g}=c(p),_=f(),w;n[1]===_?w=n[2]:(w=C(_),n[1]=_,n[2]=w);let T=w,O;n[3]===T?O=n[4]:(O={background:T},n[3]=T,n[4]=O);let k;n[5]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,x.default)(`flex`,`w-full`,`flex-col`,`items-start`,`gap-layout-vertical-related-content-in-a-section-loose`,`self-stretch`,`min-h-0`,`p-layout-horizontal-margin`,`text-noninteractive-content-primary-content`),n[5]=k):k=n[5];let A;n[6]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,D.jsx)(`div`,{className:`w-[120px]`,children:(0,D.jsx)(a,{icon:(0,D.jsx)(h,{}),size:`full`,className:`text-brand-foreground`})}),n[6]=A):A=n[6];let j;n[7]===i?j=n[8]:(j=i(),n[7]=i,n[8]=j);let M;n[9]===j?M=n[10]:(M=(0,D.jsx)(`div`,{className:`type-display2`,children:j}),n[9]=j,n[10]=M);let N;n[11]===o?N=n[12]:(N=o(),n[11]=o,n[12]=N);let P;n[13]===N?P=n[14]:(P=(0,D.jsx)(`div`,{children:N}),n[13]=N,n[14]=P);let F;n[15]===s?F=n[16]:(F=s(),n[15]=s,n[16]=F);let I;n[17]===F?I=n[18]:(I=(0,D.jsx)(`div`,{children:F}),n[17]=F,n[18]=I);let L;n[19]!==P||n[20]!==I?(L=(0,D.jsxs)(t,{className:S,children:[P,I]}),n[19]=P,n[20]=I,n[21]=L):L=n[21];let R;n[22]===l?R=n[23]:(R=l(),n[22]=l,n[23]=R);let z;n[24]!==r||n[25]!==R?(z=(0,D.jsx)(u,{as:`button`,kind:`brand`,className:`self-start`,onPress:r,"data-auto-focus":!0,children:R}),n[24]=r,n[25]=R,n[26]=z):z=n[26];let B;n[27]!==M||n[28]!==L||n[29]!==z?(B=(0,D.jsxs)(`div`,{className:k,children:[A,M,L,z]}),n[27]=M,n[28]=L,n[29]=z,n[30]=B):B=n[30];let V;n[31]!==g||n[32]!==d?(V=g&&(0,D.jsx)(d,{siglId:m.CloudMostPopular}),n[31]=g,n[32]=d,n[33]=V):V=n[33];let H;n[34]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,D.jsx)(`div`,{className:`pe-internal-container-padding-tight pt-internal-container-padding-tight`,children:(0,D.jsx)(v.CloseButton,{})}),n[34]=H):H=n[34];let U;return n[35]!==O||n[36]!==B||n[37]!==V?(U=(0,D.jsxs)(`div`,{className:`flex h-full w-full gap-layout-vertical-group-of-items-tight`,style:O,children:[B,V,H]}),n[35]=O,n[36]=B,n[37]=V,n[38]=U):U=n[38],U},()=>{let e=s({location:`FresnoTimeoutUpsell`}),t=g();return{onViewPlansPress:()=>{e({key:o.subscriptionPlanPicker.fullPath,props:t})}}}),k=e=>{let t=(0,b.c)(7),{onClose:n}=e,r=O.useComponent(),i=_.useComponent(),a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,x.default)(`modal-floating`,`modal-large`,`text-noninteractive-content-primary-content`,`bg-container-backgrounds-elevation-background-level-1`,`min-h-0`),t[0]=a):a=t[0];let o;t[1]===r?o=t[2]:(o=(0,D.jsx)(r,{}),t[1]=r,t[2]=o);let s;return t[3]!==i||t[4]!==n||t[5]!==o?(s=(0,D.jsx)(i,{className:a,dimBackground:!0,autoHeight:!0,onWillClose:n,children:o}),t[3]=i,t[4]=n,t[5]=o,t[6]=s):s=t[6],s};export{k as FresnoTimeoutUpsellDialog,k as default};