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]=`ecbf2a6f-f5ea-41a1-8b0e-15c8e1db04da`,e._sentryDebugIdIdentifier=`sentry-dbid-ecbf2a6f-f5ea-41a1-8b0e-15c8e1db04da`)}catch{}import{o as e}from"./rolldown-runtime-eb2nym32.js";import{Ag as t,Ig as n,dn as r,eh as i,lh as a,mr as o,zp as s}from"./entry.client-dr7r6s9a.js";import{s as c}from"./DialogShell-k2jpaw9r.js";import{t as l}from"./useEmitGameStreamDialogEvent-dljcy1v9.js";import{t as u}from"./useGameStreamProps-h4pgc81o.js";import{t as d}from"./useGameStreamDialogContext-ivl0rv5q.js";import{s as f}from"./PureInStreamConfirmationDialog.styles-f9kkr64u.js";import{t as p}from"./PureInStreamConfirmationDialog-ivf23uic.js";var m=e(n(),1),h=t(),g=r(p,({targetUri:e})=>{let t=l(s.dialog.gameStream.showApplication.fullPath,`close`),{t:n}=a(`ShowApplicationDialog`),{locAllow:r}=i(),{onClose:o}=c(),u=(0,m.useCallback)(()=>{e&&window.open(e,`_blank`,`noopener`),o(`closeButton`)},[e,o]),p={label:r(),onPress:u,kind:`brand`,size:`standard`,as:`a`},h=n(`Are you sure?`,{shortKey:`are_you_sure_9c8d7b`}),g=n(`This link will take you to another website. Tap or click the button with your mouse or keyboard.`,{shortKey:`navigate_away_click_3f5b6c`}),{setDialogShellProps:_}=d(),v={accessibleTitle:h,accessibleDescription:g,dismissable:!0,className:f,autoHeight:!0,onWillClose:t};return(0,m.useEffect)(()=>{_(v)},[v,_]),{locTitle:h,locDescription:g,button1Props:p,showClose:!0}}),_=o(()=>{let e=g.useComponent(),t=u(`showApplication`);return t?(0,h.jsx)(e,{targetUri:t.targetUri??``}):null},`ShowApplicationDialog`);export{_ as ShowApplicationDialog,_ as default,g as ShowApplicationDialogConnection};