import{a as g}from"./asyncComputed.23e92968.js";import{d as y,f1 as _,o as b,u as e,b as l,c as w,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.161060e0.js";import"./gateway.f2530f68.js";import"./index.f8b37d25.js";import{O as B}from"./organization.2a744ca5.js";import{C as c}from"./router.42dba988.js";import{L as D}from"./LoadingContainer.e89d330f.js";import{A as N}from"./index.ebf06c63.js";import{C as z}from"./Card.b8807339.js";import"./popupNotifcation.f24dac0e.js";import"./record.6a8bcc7f.js";import"./pubsub.ce004d19.js";import"./string.0c0535f5.js";import"./Form.52ea0ff3.js";import"./hasIn.9bea2804.js";import"./TabPane.a32e9742.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]="e32665df-6496-47db-9a2b-ac3762830d57",t._sentryDebugIdIdentifier="sentry-dbid-e32665df-6496-47db-9a2b-ac3762830d57")}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));b(()=>{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(),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: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.080ad23d.js.map
