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]=`5b01f3a4-ccb9-4554-b893-4604041db7d5`,e._sentryDebugIdIdentifier=`sentry-dbid-5b01f3a4-ccb9-4554-b893-4604041db7d5`)}catch{}import{o as e}from"./rolldown-runtime-nx40z1zs.js";import{Ag as t,bi as n,ng as r,pi as i,yt as a}from"./entry.client-mpghtlrl.js";import{n as o}from"./DialogShell-ga7ic6wy.js";import{t as s}from"./DuetPostUpsellDialogContent-hkkw0o01.js";var c=t(),l=e(i(),1),u=r(),d=(0,l.default)(`bg-container-backgrounds-elevation-background-level-2`),f=a(d,`w-component-upsell-modal-modal-width-hd`,`modal-generic`,`modal-floating`),p=a(d,`h-full`,`w-full`),m=e=>{let t=(0,c.c)(8),{productId:r,onClose:i}=e,a=n()===`high`,l=s.useComponent(),d=o.useComponent(),m=a?f:p,h;t[0]!==l||t[1]!==r?(h=(0,u.jsx)(l,{productId:r}),t[0]=l,t[1]=r,t[2]=h):h=t[2];let g;return t[3]!==d||t[4]!==m||t[5]!==i||t[6]!==h?(g=(0,u.jsx)(d,{className:m,dismissable:!0,dimBackground:!0,autoHeight:!0,onWillClose:i,children:h}),t[3]=d,t[4]=m,t[5]=i,t[6]=h,t[7]=g):g=t[7],g};export{m as DuetPostUpsellDialog,m as default};