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]=`ecbf61b4-2a9a-41ce-be2a-2b959438bc10`,e._sentryDebugIdIdentifier=`sentry-dbid-ecbf61b4-2a9a-41ce-be2a-2b959438bc10`)}catch{}import{Sp as e,_p as t,bp as n,mh as r,vp as i,wp as a,yp as o,zp as s}from"./entry.client-dr7r6s9a.js";import{ln as c}from"./workspace-leaf-files-mc5sghv7.js";var l=t(`key`,[e({key:o(s.dialog.purchase.fullPath),props:e({productId:a(),campaignId:a().optional(),optionalCampaignId:a().optional(),sourceClientName:n(r).default(r.BaysidePurchase),purchaseSource:i(c).optional()})}),e({key:o(s.dialog.qrCode.fullPath),props:e({destUrl:a().url().refine(e=>{try{return new URL(e).protocol===`https:`}catch{return!1}},{message:`destUrl must use HTTPS`}),title:a().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};