import{a as g}from"./asyncComputed.77239fe2.js";import{d as y,eB as _,U as w,u as e,o as l,c as b,V as x,b as a,w as o,cW as C,aw as p,c_ as h,bL as I,a as k,eA as B}from"./vue-router.a333e065.js";import"./gateway.1e297c44.js";import"./tables.8220507b.js";import{O as v}from"./organization.a96e7548.js";import{C as c}from"./router.d60ced1a.js";import{L as D}from"./LoadingContainer.2acfa165.js";import{A as N}from"./index.0cddc071.js";import{C as z}from"./Card.30555f3f.js";import"./popupNotifcation.32228270.js";import"./record.d2fa9f98.js";import"./string.ba08fe0f.js";import"./TabPane.4cf5b1ee.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]="bee8f964-7e29-4a5c-a775-51a65db29c62",t._sentryDebugIdIdentifier="sentry-dbid-bee8f964-7e29-4a5c-a775-51a65db29c62")}catch{}})();const A={key:1},M={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(()=>v.get(s));w(()=>{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(),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(()=>[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",M,B((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.f5019396.js.map
