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]=`ad561047-75c1-4abe-9395-e137d48e767d`,e._sentryDebugIdIdentifier=`sentry-dbid-ad561047-75c1-4abe-9395-e137d48e767d`)}catch{}import{Ff as e,If as t,Lf as n,Pf as r,Uf as i,ah as a,op as o,zf as s}from"./entry.client-mpghtlrl.js";import{ur as c}from"./workspace-leaf-files-oergw4h0.js";var l=r(`key`,[s({key:t(o.dialog.purchase.fullPath),props:s({productId:i(),campaignId:i().optional(),optionalCampaignId:i().optional(),sourceClientName:n(a).default(a.XEWeb),purchaseSource:e(c).optional()})}),s({key:t(o.dialog.qrCode.fullPath),props:s({destUrl:i().url().refine(e=>{try{return new URL(e).protocol===`https:`}catch{return!1}},{message:`destUrl must use HTTPS`}),title:i().optional()})})]),u=`openDialog`;function d(e){let t=e.get(u);if(!t)return null;try{let e=JSON.parse(t),n=l.safeParse(e);return n.success?n.data:null}catch{return null}}function f(e,t){let n=new URL(e,window.location.origin);return n.searchParams.set(u,JSON.stringify(t)),`${n.pathname}${n.search}`}export{f as n,d as r,u as t};