import{a as g}from"./asyncComputed.fb556333.js";import{d as y,f1 as _,o as w,u as e,b as l,c as b,eV as x,f as a,w as o,cW as C,am as p,cY as h,bF as I,e as k,f4 as v}from"./outputWidgets.9e7bd3a6.js";import"./gateway.8fcf86ab.js";import"./index.d38a0669.js";import{O as B}from"./organization.3d7bab49.js";import{C as c}from"./router.27283135.js";import{L as D}from"./LoadingContainer.816bd751.js";import{A as N}from"./index.bc1017fc.js";import{C as z}from"./Card.f3981b7f.js";import"./popupNotifcation.24d18d49.js";import"./record.dce94ddc.js";import"./pubsub.f3af3eeb.js";import"./string.6d0759d4.js";import"./Form.dfca34ad.js";import"./hasIn.35808092.js";import"./TabPane.46cefe49.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]="e5cc83e1-e2d0-4852-892e-d841fbaeda0e",t._sentryDebugIdIdentifier="sentry-dbid-e5cc83e1-e2d0-4852-892e-d841fbaeda0e")}catch{}})();const M={key:1},A={style:{display:"flex","justify-content":"flex-start","font-size":"24px"}},Q=y({__name:"Billing",setup(t){const r=_().params.organizationId,{loading:f,result:m}=g(()=>B.get(r));w(()=>{location.search.includes("upgrade")&&c.showNewMessage("I want to upgrade my plan")});const u=()=>c.showNewMessage("I want to upgrade my plan");return(V,j)=>e(f)?(l(),b(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:u},{default:o(()=>[p("Upgrade")]),_:1})]),default:o(()=>{var s,i,d;return[k("div",A,v((d=(i=(s=e(m))==null?void 0:s.billingMetadata)==null?void 0:i.plan)!=null?d:"No active plan"),1)]}),_:1})]))}});export{Q as default};
//# sourceMappingURL=Billing.a03a6fbe.js.map
