import{d as g,eB as y,o as b,u as e,b as p,c as _,ev as w,f as o,w as a,bg as I,ar as l,bG as h,e as x,eD as k}from"./outputWidgets.809f1c57.js";import{I as c}from"./router.5b895db7.js";import"./index.c651a706.js";import{O as v}from"./organization.7e2d2c41.js";import{a as B}from"./asyncComputed.466c4877.js";import{A as C}from"./Title.f3656269.js";import{A as D}from"./index.ee508a43.js";import{A}from"./index.172b9854.js";import{C as N}from"./Card.a7d70203.js";import"./Form.023148df.js";import"./hasIn.e1b15717.js";import"./popupNotifcation.0b39d2d3.js";import"./index.cf4c23b9.js";import"./record.41a2948e.js";import"./pubsub.67132179.js";import"./Base.4c033746.js";import"./Typography.f29a9c7e.js";import"./TabPane.1eadc3e9.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]="e4fc956b-cf97-4b80-b01e-b58854d166b9",t._sentryDebugIdIdentifier="sentry-dbid-e4fc956b-cf97-4b80-b01e-b58854d166b9")}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:f,result:m}=B(()=>v.get(n));b(()=>{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(f)?(p(),_(e(I),{key:0})):(p(),w("div",z,[o(e(D),{justify:"space-between",align:"center"},{default:a(()=>[o(e(C),{level:3},{default:a(()=>[l("Current plan")]),_:1})]),_:1}),o(e(A),{style:{"margin-top":"0"}}),o(e(N),{style:{width:"300px"},title:"Plan"},{extra:a(()=>[o(e(h),{onClick:u},{default:a(()=>[l("Upgrade")]),_:1})]),default:a(()=>{var s,i,d;return[x("div",M,k((d=(i=(s=e(m))==null?void 0:s.billingMetadata)==null?void 0:i.plan)!=null?d:"No active plan"),1)]}),_:1})]))}});export{Z as default};
//# sourceMappingURL=Billing.e79fb70b.js.map
