import{a as g}from"./asyncComputed.c6a51599.js";import{d as y,eC as _,o as b,u as e,b as l,c as w,eu as C,f as a,w as o,cR as x,ar as p,cV as h,bG as I,e as k,eG as v}from"./vue-router.67809441.js";import"./gateway.e3e12758.js";import"./index.faf1d629.js";import{O as B}from"./organization.65048463.js";import{C as c}from"./router.f4c6c59f.js";import{L as D}from"./LoadingContainer.a30b13a6.js";import{A as N}from"./index.a5138b31.js";import{C as z}from"./Card.722a13de.js";import"./popupNotifcation.c8631a6a.js";import"./record.79dce665.js";import"./string.d96a9f97.js";import"./TabPane.f0c2dc5c.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]="75674d3c-0c17-4059-b1f5-e9f2857d80be",t._sentryDebugIdIdentifier="sentry-dbid-75674d3c-0c17-4059-b1f5-e9f2857d80be")}catch{}})();const M={key:1},A={style:{display:"flex","justify-content":"flex-start","font-size":"24px"}},K=y({__name:"Billing",setup(t){const s=_().params.organizationId,{loading:f,result:u}=g(()=>B.get(s));b(()=>{location.search.includes("upgrade")&&c.showNewMessage("I want to upgrade my plan")});const m=()=>c.showNewMessage("I want to upgrade my plan");return(V,j)=>e(f)?(l(),w(D,{key:0})):(l(),C("div",M,[a(e(h),{justify:"space-between",align:"center"},{default:o(()=>[a(e(x),{level:3},{default:o(()=>[p("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(()=>[p("Upgrade")]),_:1})]),default:o(()=>{var r,i,d;return[k("div",A,v((d=(i=(r=e(u))==null?void 0:r.billingMetadata)==null?void 0:i.plan)!=null?d:"No active plan"),1)]}),_:1})]))}});export{K as default};
//# sourceMappingURL=Billing.50bbb760.js.map
