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]=`546f0f49-3d9a-4a3c-8456-e16152f04b8b`,e._sentryDebugIdIdentifier=`sentry-dbid-546f0f49-3d9a-4a3c-8456-e16152f04b8b`)}catch{}import{Ag as e,Kf as t,Xt as n,Zt as r,_r as i,ng as a,qf as o,xr as s}from"./entry.client-mpghtlrl.js";import{t as c}from"./usePlanPickerProps-ovsyok80.js";import{t as l}from"./useDuetDialogStrings-mfmpbocl.js";import{t as u}from"./PostStreamUpsell-frbpu6bq.js";var d=e(),f=a(),p=i(e=>{let t=(0,d.c)(13),{primaryProductId:n,onViewPlansPress:r}=e,{locLookingForMore:i,locXGPPComesWith:a,locJoinGamePass:o,locViewPlans:c}=l(),p=u.useComponent(),m;t[0]===i?m=t[1]:(m=i(),t[0]=i,t[1]=m);let h=m,g=`${a()} ${o()}`,_;t[2]===c?_=t[3]:(_=c(),t[2]=c,t[3]=_);let v;t[4]!==r||t[5]!==_?(v=[(0,f.jsx)(s,{as:`button`,kind:`brand`,className:`max-w-[var(--V21E)]`,onPress:r,"data-auto-focus":!0,children:_},`viewPlans`)],t[4]=r,t[5]=_,t[6]=v):v=t[6];let y=v,b;return t[7]!==p||t[8]!==h||t[9]!==g||t[10]!==n||t[11]!==y?(b=(0,f.jsx)(p,{title:h,description:g,primaryProductId:n,actionButtons:y}),t[7]=p,t[8]=h,t[9]=g,t[10]=n,t[11]=y,t[12]=b):b=t[12],b},({productId:e})=>{if(!e)throw new t(`productId`,o.Missing);let i=r({location:`DuetPostUpsell`}),a=c(e);return{primaryProductId:e,onViewPlansPress:()=>{i({key:n.subscriptionPlanPicker.fullPath,props:a})}}});export{p as t};