import{a as g}from"./asyncComputed.5fa11bed.js";import{d as y,e7 as _,V as b,u as e,c as w,W as x,b as a,w as o,o as l,d5 as C,ax as p,d9 as h,bL as I,a as k,e6 as v}from"./vue-router.c536fc2b.js";import"./gateway.c0087c9f.js";import{O as B}from"./organization.9107732f.js";import"./tables.6d634a71.js";import{C as c}from"./router.a06a6246.js";import{L as D}from"./LoadingContainer.2db3b04b.js";import{A as N}from"./index.b164e453.js";import{C as z}from"./Card.7a2cefaf.js";import"./popupNotifcation.188e9011.js";import"./record.f45db9bc.js";import"./string.faa727da.js";import"./TabPane.373d8ad5.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]="a556373b-c342-48eb-80ea-501c786f51ad",t._sentryDebugIdIdentifier="sentry-dbid-a556373b-c342-48eb-80ea-501c786f51ad")}catch{}})();const M={key:1},A={style:{display:"flex","justify-content":"flex-start","font-size":"24px"}},J=y({__name:"Billing",setup(t){const s=_().params.organizationId,{loading:u,result:f}=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,L)=>e(u)?(l(),w(D,{key:0})):(l(),x("div",M,[a(e(h),{justify:"space-between",align:"center"},{default:o(()=>[a(e(C),{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(f))==null?void 0:r.billingMetadata)==null?void 0:i.plan)!=null?d:"No active plan"),1)]}),_:1})]))}});export{J as default};
//# sourceMappingURL=Billing.3154dfbe.js.map
