import{a as g}from"./asyncComputed.ce6d6eed.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.bff33647.js";import"./gateway.fd75c1ba.js";import"./index.b40d3bd7.js";import{O as B}from"./organization.884d381f.js";import{C as c}from"./router.8006b2c4.js";import{L as D}from"./LoadingContainer.9689e3ff.js";import{A as N}from"./index.0a653216.js";import{C as z}from"./Card.3943e645.js";import"./popupNotifcation.29ddd2ec.js";import"./record.29a71a1c.js";import"./pubsub.897f848f.js";import"./Form.70e7f6b0.js";import"./hasIn.edcda2a9.js";import"./TabPane.0c295f83.js";import"./PlusOutlined.cf52d035.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]="2541d7c3-dcda-42c1-a49a-3b26b149472d",t._sentryDebugIdIdentifier="sentry-dbid-2541d7c3-dcda-42c1-a49a-3b26b149472d")}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:m,result:f}=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(m)?(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(f))==null?void 0:s.billingMetadata)==null?void 0:i.plan)!=null?d:"No active plan"),1)]}),_:1})]))}});export{Q as default};
//# sourceMappingURL=Billing.886f77bd.js.map
