import{a as g}from"./asyncComputed.37a42e7b.js";import{d as y,ed as _,W as w,u as e,c as b,X as x,b as a,w as o,o as l,db as C,aF as c,df as h,bS as I,a as k,ec as v}from"./vue-router.36bc5188.js";import"./gateway.6a3fe533.js";import{O as B}from"./organization.f0cd756c.js";import"./tables.d43a3134.js";import{C as p}from"./router.748a95a3.js";import{L as D}from"./LoadingContainer.48eacb0b.js";import{A as N}from"./index.8203845a.js";import{C as z}from"./Card.45552787.js";import"./popupNotifcation.a7b5eb5c.js";import"./record.2cf5df84.js";import"./string.8a83f3d1.js";import"./TabPane.72140f27.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="71ee39aa-2793-4ce8-825a-31236cc3b054",t._sentryDebugIdIdentifier="sentry-dbid-71ee39aa-2793-4ce8-825a-31236cc3b054")}catch{}})();const M={key:1},A={style:{display:"flex","justify-content":"flex-start","font-size":"24px"}},H=y({__name:"Billing",setup(t){const s=_().params.organizationId,{loading:u,result:f}=g(()=>B.get(s));w(()=>{location.search.includes("upgrade")&&p.showNewMessage("I want to upgrade my plan")});const m=()=>p.showNewMessage("I want to upgrade my plan");return(V,j)=>e(u)?(l(),b(D,{key:0})):(l(),x("div",M,[a(e(h),{justify:"space-between",align:"center"},{default:o(()=>[a(e(C),{level:3},{default:o(()=>[c("Current plan")]),_:1})]),_:1}),a(e(N),{style:{"margin-top":"0"}}),a(e(z),{style:{width:"300px"},title:"Plan"},{extra:o(()=>[a(e(I),{onClick:m},{default:o(()=>[c("Upgrade")]),_:1})]),default:o(()=>{var r,i,d;return[k("div",A,v((d=(i=(r=e(f))==null?void 0:r.billingMetadata)==null?void 0:i.plan)!=null?d:"No active plan"),1)]}),_:1})]))}});export{H as default};
//# sourceMappingURL=Billing.b4142df5.js.map
