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]=`974f798d-300e-495b-bae9-29716aa9015e`,e._sentryDebugIdIdentifier=`sentry-dbid-974f798d-300e-495b-bae9-29716aa9015e`)}catch{}import{o as e}from"./rolldown-runtime-nx40z1zs.js";import{$m as t,Hm as n,Oi as r,_r as i,jg as a,ng as o,op as s}from"./entry.client-mpghtlrl.js";import{n as c}from"./DialogShellContext-grfsno45.js";import{t as l}from"./useEmitGameStreamDialogEvent-m3jw3fvd.js";import{t as u}from"./useGameStreamProps-wkghqjeq.js";import{t as d}from"./useGameStreamDialogContext-orgnly77.js";import{s as f}from"./PureInStreamConfirmationDialog.styles-deafeydi.js";import{t as p}from"./PureInStreamConfirmationDialog-k0il2d8x.js";var m=e(a(),1),h=o(),g=i(p,({targetUri:e})=>{let r=l(s.dialog.gameStream.showApplication.fullPath,`close`),{t:i}=t(`ShowApplicationDialog`),{locAllow:a}=n(),{onClose:o}=c(),u=(0,m.useCallback)(()=>{e&&window.open(e,`_blank`,`noopener`),o(`closeButton`)},[e,o]),p={label:a(),onPress:u,kind:`brand`,size:`standard`,as:`a`},h=i(`Are you sure?`,{shortKey:`are_you_sure_9c8d7b`}),g=i(`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:r};return(0,m.useEffect)(()=>{_(v)},[v,_]),{locTitle:h,locDescription:g,button1Props:p,showClose:!0}}),_=r(()=>{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};