import{a as g}from"./asyncComputed.0c2e75f9.js";import{d as y,ed as b,W as _,u as e,c as w,X as x,b as a,w as o,o as l,db as C,aF as p,df as h,bS as I,a as k,ec as v}from"./vue-router.4a8a3251.js";import"./gateway.8fe65dcb.js";import{O as B}from"./organization.2b89ae6e.js";import"./tables.fc036ba1.js";import{C as c}from"./router.306a90e5.js";import{L as D}from"./LoadingContainer.e992fd67.js";import{A as N}from"./index.0758282c.js";import{C as z}from"./Card.d67133ee.js";import"./popupNotifcation.d430940c.js";import"./record.2a0e778d.js";import"./string.26e1c29c.js";import"./TabPane.ee7acb8e.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]="dbb350fb-de59-498e-9324-3c5abe5698fd",t._sentryDebugIdIdentifier="sentry-dbid-dbb350fb-de59-498e-9324-3c5abe5698fd")}catch{}})();const M={key:1},A={style:{display:"flex","justify-content":"flex-start","font-size":"24px"}},H=y({__name:"Billing",setup(t){const s=b().params.organizationId,{loading:f,result:u}=g(()=>B.get(s));_(()=>{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(),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(u))==null?void 0:r.billingMetadata)==null?void 0:i.plan)!=null?d:"No active plan"),1)]}),_:1})]))}});export{H as default};
//# sourceMappingURL=Billing.8b7dc474.js.map
