import{a as g}from"./asyncComputed.6b2a5298.js";import{d as b,eE as y,o as _,u as e,b as l,c as w,ew as x,f as a,w as o,as as p,bG as h,e as C,eH as I}from"./outputWidgets.eb498848.js";import{c as m}from"./router.dc5374c0.js";import"./index.38387dc8.js";import{O as k}from"./organization.55ccf8d3.js";import{L as v}from"./LoadingContainer.69fcb6ae.js";import{A}from"./Title.ef0a0830.js";import{A as B}from"./index.60acdd5f.js";import{A as D}from"./index.23dbc6cf.js";import{C as N}from"./Card.70a00c39.js";import"./Form.bd9a7b94.js";import"./hasIn.ceb11556.js";import"./popupNotifcation.1234df84.js";import"./record.7cc6fca0.js";import"./pubsub.1ca1fb40.js";import"./Base.60455d70.js";import"./TabPane.73c86943.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]="648fa644-9291-43b9-8bb7-00b9d092b2ae",t._sentryDebugIdIdentifier="sentry-dbid-648fa644-9291-43b9-8bb7-00b9d092b2ae")}catch{}})();const z={key:1},M={style:{display:"flex","justify-content":"flex-start","font-size":"24px"}},Y=b({__name:"Billing",setup(t){const r=y().params.organizationId,{loading:f,result:c}=g(()=>k.get(r));_(()=>{location.search.includes("upgrade")&&m.showNewMessage("I want to upgrade my plan")});const u=()=>m.showNewMessage("I want to upgrade my plan");return(E,V)=>e(f)?(l(),w(v,{key:0})):(l(),x("div",z,[a(e(B),{justify:"space-between",align:"center"},{default:o(()=>[a(e(A),{level:3},{default:o(()=>[p("Current plan")]),_:1})]),_:1}),a(e(D),{style:{"margin-top":"0"}}),a(e(N),{style:{width:"300px"},title:"Plan"},{extra:o(()=>[a(e(h),{onClick:u},{default:o(()=>[p("Upgrade")]),_:1})]),default:o(()=>{var s,i,d;return[C("div",M,I((d=(i=(s=e(c))==null?void 0:s.billingMetadata)==null?void 0:i.plan)!=null?d:"No active plan"),1)]}),_:1})]))}});export{Y as default};
//# sourceMappingURL=Billing.2918046a.js.map
