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]=`361e619c-21ec-4ace-b79a-0f5455fff0c8`,e._sentryDebugIdIdentifier=`sentry-dbid-361e619c-21ec-4ace-b79a-0f5455fff0c8`)}catch{}import{o as e}from"./rolldown-runtime-eb2nym32.js";import{z as t}from"./vendor-misc-hfpbxrii.js";import{$d as n,$p as r,Ag as i,Bp as a,Cr as o,Fg as s,Hp as c,Ig as l,Up as u,Vp as d,Ym as f,dn as p,ht as m,mr as h}from"./entry.client-dr7r6s9a.js";import{o as g}from"./navigation-stack-m5o0zkpw.js";import{i as _,t as v}from"./ControllerPairingContext-lndsofbd.js";import{t as y}from"./controllerPairingRouteBindings-b89rfn3x.js";import{d as b}from"./routes-cum86uu1.js";import{t as x}from"./useBackHandler-hk8w5qbn.js";var S=s(),C=e(l(),1),w=i();y();var T=e=>{let{onBack:t}=e;return x(t),null},E=p(h(e=>{let t=e.initialPath??b.getLink(),[n,i]=(0,C.useState)(),o=(0,C.useMemo)(()=>{let e=c({routeTree:a,history:r({initialEntries:[t]})});return e.load(),e},[]);return(0,w.jsxs)(m,{autoFocusContainer:!0,className:`flex-start flex h-full flex-col gap-layout-vertical-related-content-in-a-section-loose bg-container-backgrounds-elevation-background-level-2 bg-cover px-[120px] pb-[0px] pt-[200px] @xl-20:h-[1440px]`,children:[(0,w.jsx)(T,{onBack:e.onBack}),(0,w.jsx)(v.Provider,{value:{...e,controllerType:n,setControllerType:i},children:(0,w.jsx)(d,{router:o,children:(0,w.jsx)(u,{})})})]})},`PairingPage`),e=>{let{navcontext:r,initialPath:i}=t(n.controllerPairing);return{...e,navigationContext:r,initialPath:i}}),D=f(()=>{let e=(0,S.c)(4),r=E.useComponent(),{navcontext:i,initialPath:a}=t(n.controllerPairing),o=_(i,void 0,void 0,void 0,a,void 0),{navigateBack:s}=g(),c;return e[0]!==r||e[1]!==o||e[2]!==s?(c=(0,w.jsx)(r,{...o,onBack:s}),e[0]=r,e[1]=o,e[2]=s,e[3]=c):c=e[3],c});export{o as clientLoader,D as default};