import{a as g}from"./asyncComputed.7b5c3427.js";import{d as y,eB as _,$ as w,u as e,o as l,c as b,eu as x,b as a,w as o,cS as C,as as f,cW as h,bH as I,a as k,eA as B}from"./vue-router.74c693f1.js";import"./gateway.707771fc.js";import"./index.0791082e.js";import{O as v}from"./organization.cd76f88b.js";import{C as p}from"./router.77dea3d2.js";import{L as D}from"./LoadingContainer.891c6523.js";import{A as N}from"./index.b878c184.js";import{C as z}from"./Card.e642dff5.js";import"./popupNotifcation.d39bbf9b.js";import"./record.0d85e3b6.js";import"./string.b1ebfabb.js";import"./TabPane.bfa47506.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]="c9ed1ff3-5761-4a41-99df-2ffee548984e",t._sentryDebugIdIdentifier="sentry-dbid-c9ed1ff3-5761-4a41-99df-2ffee548984e")}catch{}})();const A={key:1},M={style:{display:"flex","justify-content":"flex-start","font-size":"24px"}},G=y({__name:"Billing",setup(t){const s=_().params.organizationId,{loading:c,result:u}=g(()=>v.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(c)?(l(),b(D,{key:0})):(l(),x("div",A,[a(e(h),{justify:"space-between",align:"center"},{default:o(()=>[a(e(C),{level:3},{default:o(()=>[f("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(()=>[f("Upgrade")]),_:1})]),default:o(()=>{var r,i,d;return[k("div",M,B((d=(i=(r=e(u))==null?void 0:r.billingMetadata)==null?void 0:i.plan)!=null?d:"No active plan"),1)]}),_:1})]))}});export{G as default};
//# sourceMappingURL=Billing.b10f4b24.js.map
