import{d as g,eB as y,o as _,u as e,b as d,c as w,ev as b,f as a,w as o,bg as I,ar as l,bG as h,e as x,eD as k}from"./outputWidgets.74b0761d.js";import{I as c}from"./router.e97d6286.js";import"./index.c51517e3.js";import{O as v}from"./organization.9216f762.js";import{a as B}from"./asyncComputed.fbb4ba44.js";import{A as C}from"./Title.a6d4b5b0.js";import{A as D}from"./index.0327679a.js";import{A}from"./index.e0822222.js";import{C as N}from"./Card.967eb2c9.js";import"./Form.a24c61ad.js";import"./hasIn.d2130316.js";import"./popupNotifcation.2bb5bdcc.js";import"./index.cf4c23b9.js";import"./record.acc69298.js";import"./pubsub.4c1d9617.js";import"./Base.4463d78c.js";import"./Typography.5e0282a3.js";import"./TabPane.8b1f794d.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]="2ea3c57f-6921-455a-8098-26a4bec73c94",t._sentryDebugIdIdentifier="sentry-dbid-2ea3c57f-6921-455a-8098-26a4bec73c94")}catch{}})();const z={key:1},M={style:{display:"flex","justify-content":"flex-start","font-size":"24px"}},Z=g({__name:"Billing",setup(t){const n=y().params.organizationId,{loading:m,result:f}=B(()=>v.get(n));_(()=>{location.search.includes("upgrade")&&c.showNewMessage("I want to upgrade my plan")});const u=()=>c.showNewMessage("I want to upgrade my plan");return(T,V)=>e(m)?(d(),w(e(I),{key:0})):(d(),b("div",z,[a(e(D),{justify:"space-between",align:"center"},{default:o(()=>[a(e(C),{level:3},{default:o(()=>[l("Current plan")]),_:1})]),_:1}),a(e(A),{style:{"margin-top":"0"}}),a(e(N),{style:{width:"300px"},title:"Plan"},{extra:o(()=>[a(e(h),{onClick:u},{default:o(()=>[l("Upgrade")]),_:1})]),default:o(()=>{var s,i,p;return[x("div",M,k((p=(i=(s=e(f))==null?void 0:s.billingMetadata)==null?void 0:i.plan)!=null?p:"No active plan"),1)]}),_:1})]))}});export{Z as default};
//# sourceMappingURL=Billing.373db6e2.js.map
