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]=`9a83825a-0a81-4e7b-8521-c0271a3e9a35`,e._sentryDebugIdIdentifier=`sentry-dbid-9a83825a-0a81-4e7b-8521-c0271a3e9a35`)}catch{}import{o as e}from"./rolldown-runtime-nx40z1zs.js";import{$m as t,Ag as n,Di as r,Hm as i,Qm as a,Yh as o,Zm as s,_r as c,ng as l,pi as u}from"./entry.client-mpghtlrl.js";import{n as d}from"./DialogShell-ga7ic6wy.js";import{t as f}from"./ConfirmationDialog-gwsu4d5l.js";var p=e(u(),1),m=n(),h=l(),g=c(e=>{let n=(0,m.c)(19),{onQuit:r,onCancel:a}=e,{t:o}=t(`AppQuitDialog`),{locCancel:s}=i(),c;n[0]===o?c=n[1]:(c=o(`Quit the XBOX app?`,{shortKey:`quit_app`}),n[0]=o,n[1]=c);let l;n[2]===o?l=n[3]:(l=o(`Thanks for playing!`,{shortKey:`quit_app_body`}),n[2]=o,n[3]=l);let u;n[4]===o?u=n[5]:(u=o(`Quit app`,{shortKey:`quit_app_quit_button`}),n[4]=o,n[5]=u);let d;n[6]!==u||n[7]!==r?(d={text:u,onPress:r,kind:`destructive`},n[6]=u,n[7]=r,n[8]=d):d=n[8];let p;n[9]===s?p=n[10]:(p=s(),n[9]=s,n[10]=p);let g;n[11]!==p||n[12]!==a?(g={text:p,onPress:a},n[11]=p,n[12]=a,n[13]=g):g=n[13];let _;return n[14]!==c||n[15]!==l||n[16]!==d||n[17]!==g?(_=(0,h.jsx)(f,{title:c,prompt:l,firstButton:d,secondButton:g}),n[14]=c,n[15]=l,n[16]=d,n[17]=g,n[18]=_):_=n[18],_},()=>{let{applicationLifecycle:{mutations:e},dialog:{mutations:t}}=s(),{mutate:n}=o(e.quitApp.getOptions()),{mutate:r}=o(t.goBack.getOptions()),{trackUserAction:i}=a();return{onQuit:()=>{n()},onCancel:()=>{i(`AppQuitCancelQuit`,{},`Press`,{location:`AppQuitDialog`}),r()}}}),_=()=>{let e=(0,m.c)(9),n=d.useComponent(),i=g.useComponent(),{t:a}=t(`AppQuitDialog`),o;e[0]===a?o=e[1]:(o=a(`Quit App Dialog`,{shortKey:`app_quit_dialog_accessible_title`}),e[0]=a,e[1]=o);let s;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,p.default)(f.CONTAINER_CLASSNAME,`modal-medium modal-floating`),e[2]=s):s=e[2];let c;e[3]===i?c=e[4]:(c=(0,h.jsx)(r,{location:`AppQuitDialog`,children:(0,h.jsx)(i,{})}),e[3]=i,e[4]=c);let l;return e[5]!==n||e[6]!==o||e[7]!==c?(l=(0,h.jsx)(n,{autoHeight:!0,accessibleTitle:o,className:s,children:c}),e[5]=n,e[6]=o,e[7]=c,e[8]=l):l=e[8],l};export{_ as AppQuitDialog,_ as default};