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]=`6b3ded54-d047-4afa-983d-31ad136ae0db`,e._sentryDebugIdIdentifier=`sentry-dbid-6b3ded54-d047-4afa-983d-31ad136ae0db`)}catch{}import"./rolldown-runtime-nx40z1zs.js";import{$m as e,Ag as t,Hm as n,mn as r,ng as i,xr as a,xt as o}from"./entry.client-mpghtlrl.js";import{n as s}from"./DialogShellContext-grfsno45.js";import{n as c}from"./DialogShell-ga7ic6wy.js";var l=t(),u=i(),d=e=>{let t=(0,l.c)(23),{title:n,intro:i,disclaimer:s,ctaLabel:c,closeLabel:d,onCtaPress:f,onCloseButtonPress:p}=e,m;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,u.jsx)(r,{}),t[0]=m):m=t[0];let h;t[1]!==p||t[2]!==d?(h=(0,u.jsx)(`div`,{className:`flex justify-end`,children:(0,u.jsx)(o,{as:`button`,icon:m,onPress:p,"aria-label":d,kind:`commonIconInvisible`,size:`standard`,"data-test-id":`external-app-setup-close-button`})}),t[1]=p,t[2]=d,t[3]=h):h=t[3];let g;t[4]===n?g=t[5]:(g=(0,u.jsx)(`h2`,{className:`whitespace-pre-line type-title2`,children:n}),t[4]=n,t[5]=g);let _;t[6]===i?_=t[7]:(_=(0,u.jsx)(`p`,{children:i}),t[6]=i,t[7]=_);let v;t[8]===s?v=t[9]:(v=(0,u.jsx)(`p`,{children:s}),t[8]=s,t[9]=v);let y;t[10]!==_||t[11]!==v?(y=(0,u.jsxs)(`div`,{className:`flex flex-col gap-6 text-noninteractive-content-secondary-content type-body`,children:[_,v]}),t[10]=_,t[11]=v,t[12]=y):y=t[12];let b;t[13]!==g||t[14]!==y?(b=(0,u.jsxs)(`div`,{className:`flex flex-col gap-6`,children:[g,y]}),t[13]=g,t[14]=y,t[15]=b):b=t[15];let x;t[16]!==f||t[17]!==c?(x=(0,u.jsx)(`div`,{className:`mt-auto pt-2`,children:(0,u.jsx)(a,{as:`button`,size:`large`,kind:`brand`,className:`w-full`,onPress:f,"data-auto-focus":!0,"data-test-id":`external-app-setup-cta-button`,children:c})}),t[16]=f,t[17]=c,t[18]=x):x=t[18];let S;return t[19]!==h||t[20]!==b||t[21]!==x?(S=(0,u.jsxs)(`div`,{className:`relative flex h-full flex-col gap-8 p-[var(--modal-spacing)]`,children:[h,b,x]}),t[19]=h,t[20]=b,t[21]=x,t[22]=S):S=t[22],S},f=t=>{let r=(0,l.c)(29),{appName:i,partnerName:a,ctaLabel:o,onCtaPress:c}=t,{t:f}=e(`ExternalAppSetupDialog`),{locClose:p}=n(),{onClose:m}=s(),h;r[0]===c?h=r[1]:(h=()=>{c()},r[0]=c,r[1]=h);let g=h,_;r[2]===m?_=r[3]:(_=()=>{m(`closeButton`)},r[2]=m,r[3]=_);let v=_,y;r[4]!==a||r[5]!==f?(y=f(`{partnerName} with XBOX on PC`,{values:{partnerName:a},shortKey:`external_app_setup_title_9a02bb`}),r[4]=a,r[5]=f,r[6]=y):y=r[6];let b=y,x;r[7]!==i||r[8]!==a||r[9]!==f?(x=f(`Before you can play {partnerName} games, you'll need to do a one-time setup of {appName}.`,{values:{appName:i,partnerName:a},shortKey:`external_app_setup_intro_b63d8a`}),r[7]=i,r[8]=a,r[9]=f,r[10]=x):x=r[10];let S=x,C;r[11]!==i||r[12]!==a||r[13]!==f?(C=f(`A {partnerName} account is required to play {appName} games. {appName} is not owned, operated, or supervised by Microsoft.`,{values:{appName:i,partnerName:a},shortKey:`external_app_setup_disclaimer_7c11f4`}),r[11]=i,r[12]=a,r[13]=f,r[14]=C):C=r[14];let w=C,T;r[15]!==o||r[16]!==i||r[17]!==f?(T=o??f(`Install {appName}`,{values:{appName:i},shortKey:`external_app_setup_cta_1f3a5d`}),r[15]=o,r[16]=i,r[17]=f,r[18]=T):T=r[18];let E=T,D;r[19]===p?D=r[20]:(D=p(),r[19]=p,r[20]=D);let O;return r[21]!==b||r[22]!==S||r[23]!==w||r[24]!==E||r[25]!==D||r[26]!==g||r[27]!==v?(O=(0,u.jsx)(d,{title:b,intro:S,disclaimer:w,ctaLabel:E,closeLabel:D,onCtaPress:g,onCloseButtonPress:v}),r[21]=b,r[22]=S,r[23]=w,r[24]=E,r[25]=D,r[26]=g,r[27]=v,r[28]=O):O=r[28],O},p=e=>{let t=(0,l.c)(5),n=c.useComponent(),r;t[0]===e?r=t[1]:(r=(0,u.jsx)(f,{...e}),t[0]=e,t[1]=r);let i;return t[2]!==n||t[3]!==r?(i=(0,u.jsx)(n,{autoHeight:!0,className:`modal-floating modal-medium min-h-0 bg-container-backgrounds-elevation-background-level-1 text-noninteractive-content-primary-content`,dimBackground:!0,dismissable:!1,children:r}),t[2]=n,t[3]=r,t[4]=i):i=t[4],i};export{p as ExternalAppSetupDialog,p as default,d as PureExternalAppSetupDialogContent};