import{d as g,eB as y,o as b,u as e,b as p,c as _,eu as w,f as a,w as o,bf as I,aq as l,bF as x,e as h,eE as k}from"./outputWidgets.e9677800.js";import{I as c}from"./router.e014ddc2.js";import"./index.21e91f9c.js";import{O as B}from"./organization.165d6c3c.js";import{a as C}from"./asyncComputed.37b7af98.js";import{A as v}from"./Title.c954a24a.js";import{A}from"./index.42279d35.js";import{A as D}from"./index.64d9fbff.js";import{C as N}from"./Card.32e01a00.js";import"./Form.9737d51d.js";import"./hasIn.bd3f78ff.js";import"./popupNotifcation.7148cdf9.js";import"./index.cf4c23b9.js";import"./record.767f28b7.js";import"./pubsub.9e36d89a.js";import"./Base.64d54b8f.js";import"./Typography.511f4fec.js";import"./TabPane.d21194be.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]="be0debac-90f6-4028-8001-2eb010333b7e",t._sentryDebugIdIdentifier="sentry-dbid-be0debac-90f6-4028-8001-2eb010333b7e")}catch{}})();const z={key:1},M={style:{display:"flex","justify-content":"flex-start","font-size":"24px"}},Z=g({__name:"Billing",setup(t){const r=y().params.organizationId,{loading:f,result:m}=C(()=>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(E,V)=>e(f)?(p(),_(e(I),{key:0})):(p(),w("div",z,[a(e(A),{justify:"space-between",align:"center"},{default:o(()=>[a(e(v),{level:3},{default:o(()=>[l("Current plan")]),_:1})]),_:1}),a(e(D),{style:{"margin-top":"0"}}),a(e(N),{style:{width:"300px"},title:"Plan"},{extra:o(()=>[a(e(x),{onClick:u},{default:o(()=>[l("Upgrade")]),_:1})]),default:o(()=>{var s,i,d;return[h("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.d76ffb50.js.map
