import{d as u,eB as y,o as g,u as e,b as p,c as _,ev as b,f as o,w as a,bg as w,ar as l,ex as x,e as h,eD as I}from"./outputWidgets.cd9a7023.js";import{I as c}from"./router.3892c6ef.js";import"./index.9161dd13.js";import{O as k}from"./organization.d3464626.js";import{a as A}from"./asyncComputed.d485b66f.js";import{A as B}from"./Title.05e583cd.js";import{A as C}from"./index.ad4a79ec.js";import{A as v}from"./index.ffc83573.js";import{A as D}from"./Text.8af9010b.js";import{C as N}from"./Card.65be417e.js";import"./Form.6eabd32b.js";import"./hasIn.5fdc0bbb.js";import"./popupNotifcation.d4f20194.js";import"./index.cf4c23b9.js";import"./record.4940789d.js";import"./pubsub.56df9c23.js";import"./Base.db9f67df.js";import"./Typography.686aa668.js";import"./TabPane.e65566f3.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[r]="62087b49-c93e-433a-8d6f-8f28be7c000a",t._sentryDebugIdIdentifier="sentry-dbid-62087b49-c93e-433a-8d6f-8f28be7c000a")}catch{}})();const z={key:1},T={style:{display:"flex","justify-content":"flex-end","font-size":"24px"}},$=u({__name:"Billing",setup(t){const n=y().params.organizationId,{loading:f,result:m}=A(()=>k.get(n));return g(()=>{location.search.includes("upgrade")?c.showNewMessage("I want to upgrade my plan"):c.show()}),(V,M)=>e(f)?(p(),_(e(w),{key:0})):(p(),b("div",z,[o(e(C),{justify:"space-between",align:"center"},{default:a(()=>[o(e(B),{level:3},{default:a(()=>[l("Current plan")]),_:1}),x("",!0)]),_:1}),o(e(v),{style:{"margin-top":"0"}}),o(e(N),{style:{width:"300px"}},{default:a(()=>{var s,i,d;return[o(e(D),{type:"secondary"},{default:a(()=>[l("Plan")]),_:1}),h("div",T,I((d=(i=(s=e(m))==null?void 0:s.billingMetadata)==null?void 0:i.plan)!=null?d:"No active plan"),1)]}),_:1})]))}});export{$ as default};
//# sourceMappingURL=Billing.5693b4a4.js.map
