import{a as g}from"./asyncComputed.d236b901.js";import{d as y,ea as _,W as b,u as e,o as l,c as w,X as x,b as a,w as o,d9 as C,aF as p,dd as h,bP as I,a as k,e9 as v}from"./vue-router.2dfeb709.js";import"./gateway.f21c3c00.js";import{O as B}from"./organization.1fe46136.js";import"./tables.843bcdcf.js";import{C as f}from"./router.dafb8c51.js";import{L as D}from"./LoadingContainer.7992bcc4.js";import{A as N}from"./index.b8851152.js";import{C as z}from"./Card.c7f7e195.js";import"./popupNotifcation.b6ed4c39.js";import"./record.a5650be1.js";import"./string.92e45c6b.js";import"./TabPane.890f9226.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]="06b317e6-a0b1-4b34-b699-3fef32428f90",t._sentryDebugIdIdentifier="sentry-dbid-06b317e6-a0b1-4b34-b699-3fef32428f90")}catch{}})();const M={key:1},A={style:{display:"flex","justify-content":"flex-start","font-size":"24px"}},H=y({__name:"Billing",setup(t){const s=_().params.organizationId,{loading:u,result:c}=g(()=>B.get(s));b(()=>{location.search.includes("upgrade")&&f.showNewMessage("I want to upgrade my plan")});const m=()=>f.showNewMessage("I want to upgrade my plan");return(V,j)=>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(c))==null?void 0:r.billingMetadata)==null?void 0:i.plan)!=null?d:"No active plan"),1)]}),_:1})]))}});export{H as default};
//# sourceMappingURL=Billing.05927ba5.js.map
