import{a as g}from"./asyncComputed.6438c00c.js";import{d as y,eB as _,V as w,u as e,o as l,c as b,W as x,b as a,w as o,cW as C,ax as p,c_ as h,bL as I,a as k,eA as B}from"./vue-router.b2844dbd.js";import"./gateway.635f7051.js";import"./tables.d81eb6d0.js";import{O as v}from"./organization.86f8fe04.js";import{C as c}from"./router.b69b216e.js";import{L as D}from"./LoadingContainer.810c895c.js";import{A as N}from"./index.3f446e05.js";import{C as z}from"./Card.81031f41.js";import"./popupNotifcation.6c1732c5.js";import"./record.d017e1a2.js";import"./string.6a4d30e3.js";import"./TabPane.1487adae.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]="7a36d4ec-ab8c-4846-a14d-226e3ea87d8d",t._sentryDebugIdIdentifier="sentry-dbid-7a36d4ec-ab8c-4846-a14d-226e3ea87d8d")}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.8d754ca1.js.map
