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]=`326b2bcd-c220-4bc3-bb2a-0cffb067b772`,e._sentryDebugIdIdentifier=`sentry-dbid-326b2bcd-c220-4bc3-bb2a-0cffb067b772`)}catch{}import{o as e}from"./rolldown-runtime-eb2nym32.js";import{X as t}from"./xds-react-components-lks62tbl.js";import{$d as n,Ag as r,Fg as i,Ig as a,Ym as o,dn as s,hn as c,lh as l,mr as u,st as d}from"./entry.client-dr7r6s9a.js";var f=i(),p=e(a(),1),m=r(),h=s(e=>{let n=(0,f.c)(16),{ipAddress:r,setIpAddress:i,handleConnect:a}=e,{t:o}=l(`ConfigureIPConnectPage`),s;n[0]===o?s=n[1]:(s=o(`Enter the ip address and port to connect to`,{shortKey:`address_connect_enter_432324`}),n[0]=o,n[1]=s);let u;n[2]===s?u=n[3]:(u=(0,m.jsx)(`h2`,{className:`type-title2`,id:`ip-address-title`,children:s}),n[2]=s,n[3]=u);let d;n[4]!==r||n[5]!==i?(d=(0,m.jsx)(t,{value:r,onChange:i,"aria-labelledby":`ip-address-title`,className:`w-full`}),n[4]=r,n[5]=i,n[6]=d):d=n[6];let p;n[7]===o?p=n[8]:(p=o(`Connect`,{shortKey:`connect_6412ef`}),n[7]=o,n[8]=p);let h;n[9]!==a||n[10]!==p?(h=(0,m.jsx)(c,{as:`button`,size:`standard`,kind:`brand`,onPress:a,className:`w-full`,children:p}),n[9]=a,n[10]=p,n[11]=h):h=n[11];let g;return n[12]!==u||n[13]!==d||n[14]!==h?(g=(0,m.jsx)(`div`,{className:`align-center flex min-h-screen flex-col items-center justify-center`,children:(0,m.jsxs)(`div`,{className:`flex max-w-md flex-col gap-internal-container-padding-regular bg-container-backgrounds-elevation-background-level-2 p-internal-container-padding-regular`,children:[u,d,h]})}),n[12]=u,n[13]=d,n[14]=h,n[15]=g):g=n[15],g},()=>{let[e,t]=(0,p.useState)(`127.0.0.1:9002`),r=d();return{ipAddress:e,setIpAddress:t,handleConnect:()=>{r(n.internal.devTools.ipConnect.launch.$buildPath({searchParams:{ipAddress:e}}))}}}),g=o(u(()=>(0,m.jsx)(h.useComponent(),{}),`ConfigureIPConnectPage`));export{g as default};