import{a as g}from"./asyncComputed.a50f21d4.js";import{d as y,eG as _,o as b,u as e,b as l,c as w,ey as x,f as o,w as a,au as p,bI as I,e as h,eJ as C}from"./outputWidgets.7323a17d.js";import{c as f}from"./router.7bb92c0e.js";import"./index.c9f11f2b.js";import{O as k}from"./organization.7a4ab869.js";import{L as v}from"./LoadingContainer.61887736.js";import{A}from"./Title.88a7d0e4.js";import{A as B}from"./index.42443749.js";import{A as D}from"./index.aff86221.js";import{C as N}from"./Card.9a50e2cc.js";import"./Form.4d35a934.js";import"./hasIn.adc00278.js";import"./popupNotifcation.4e57751c.js";import"./record.1f033572.js";import"./pubsub.2c3883f4.js";import"./Base.003f7172.js";import"./TabPane.b8745f51.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]="660f29e7-71f8-4b7e-8fbd-19b27dd12129",t._sentryDebugIdIdentifier="sentry-dbid-660f29e7-71f8-4b7e-8fbd-19b27dd12129")}catch{}})();const z={key:1},M={style:{display:"flex","justify-content":"flex-start","font-size":"24px"}},Y=y({__name:"Billing",setup(t){const r=_().params.organizationId,{loading:m,result:u}=g(()=>k.get(r));b(()=>{location.search.includes("upgrade")&&f.showNewMessage("I want to upgrade my plan")});const c=()=>f.showNewMessage("I want to upgrade my plan");return(V,j)=>e(m)?(l(),w(v,{key:0})):(l(),x("div",z,[o(e(B),{justify:"space-between",align:"center"},{default:a(()=>[o(e(A),{level:3},{default:a(()=>[p("Current plan")]),_:1})]),_:1}),o(e(D),{style:{"margin-top":"0"}}),o(e(N),{style:{width:"300px"},title:"Plan"},{extra:a(()=>[o(e(I),{onClick:c},{default:a(()=>[p("Upgrade")]),_:1})]),default:a(()=>{var s,i,d;return[h("div",M,C((d=(i=(s=e(u))==null?void 0:s.billingMetadata)==null?void 0:i.plan)!=null?d:"No active plan"),1)]}),_:1})]))}});export{Y as default};
//# sourceMappingURL=Billing.d9c32dbd.js.map
