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]=`ac707bf7-fdac-47f0-b773-f6fa57fa5879`,e._sentryDebugIdIdentifier=`sentry-dbid-ac707bf7-fdac-47f0-b773-f6fa57fa5879`)}catch{}import{o as e}from"./rolldown-runtime-eb2nym32.js";import{Ag as t,Dr as n,Fg as r,Ig as i}from"./entry.client-dr7r6s9a.js";import{t as a}from"./XenonSpinner-hionx0on.js";import{t as o}from"./LoadingTrackerElement-f7phpj08.js";import{t as s}from"./NarrowPurchaseShell-lkyxvfta.js";import{t as c}from"./PurchaseShell-bdt26dfl.js";var l=r(),u=e(i(),1),d=t(),f=(0,u.memo)(()=>{let e=(0,l.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,d.jsx)(a,{}),e[0]=t):t=e[0],t}),p=e=>{let t=(0,l.c)(6),n;t[0]!==e.useNarrowShell||t[1]!==e.product?(n=(0,d.jsx)(m,{useNarrowShell:e.useNarrowShell,product:e.product,timeToLoadingSpan:null}),t[0]=e.useNarrowShell,t[1]=e.product,t[2]=n):n=t[2];let r;return t[3]!==n||t[4]!==e.children?(r=(0,d.jsx)(u.Suspense,{fallback:n,children:e.children}),t[3]=n,t[4]=e.children,t[5]=r):r=t[5],r},m=e=>{let t=(0,l.c)(6);n(!0);let r,i;t[0]===e.timeToLoadingSpan?(r=t[1],i=t[2]):(r=()=>{e.timeToLoadingSpan?.end()},i=[e.timeToLoadingSpan],t[0]=e.timeToLoadingSpan,t[1]=r,t[2]=i),(0,u.useEffect)(r,i);let a;return t[3]!==e.useNarrowShell||t[4]!==e.product?(a=(0,d.jsx)(o,{children:e.useNarrowShell?(0,d.jsx)(s,{backgroundUrl:e.product?.poster?.url,children:(0,d.jsx)(f,{})}):(0,d.jsx)(c,{backgroundUrl:e.product?.poster?.url,children:(0,d.jsx)(f,{})})}),t[3]=e.useNarrowShell,t[4]=e.product,t[5]=a):a=t[5],a};export{f as n,p as r,m as t};