import{d as g,eA as y,o as _,u as e,b as p,c as b,eu as w,f as o,w as a,bf as x,aq as f,bE as h,e as I,eD as C}from"./outputWidgets.63450c6a.js";import{c as l}from"./router.b1520023.js";import"./index.f9342278.js";import{O as k}from"./organization.2980377f.js";import{a as A}from"./asyncComputed.4686243d.js";import{A as D}from"./Title.05596582.js";import{A as v}from"./index.aeb802d2.js";import{A as B}from"./index.2d327eaf.js";import{C as N}from"./Card.da73e562.js";import"./Form.bd89de9c.js";import"./hasIn.1b20766f.js";import"./popupNotifcation.ee18d946.js";import"./index.cf4c23b9.js";import"./record.884a3745.js";import"./pubsub.9ff806ef.js";import"./Text.3d888762.js";import"./index.ea8e22a2.js";import"./TabPane.a821d847.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]="f2c14316-f4f8-40fb-864d-5ed461fd93b5",t._sentryDebugIdIdentifier="sentry-dbid-f2c14316-f4f8-40fb-864d-5ed461fd93b5")}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:m,result:c}=A(()=>k.get(r));_(()=>{location.search.includes("upgrade")&&l.showNewMessage("I want to upgrade my plan")});const u=()=>l.showNewMessage("I want to upgrade my plan");return(E,V)=>e(m)?(p(),b(e(x),{key:0})):(p(),w("div",z,[o(e(v),{justify:"space-between",align:"center"},{default:a(()=>[o(e(D),{level:3},{default:a(()=>[f("Current plan")]),_:1})]),_:1}),o(e(B),{style:{"margin-top":"0"}}),o(e(N),{style:{width:"300px"},title:"Plan"},{extra:a(()=>[o(e(h),{onClick:u},{default:a(()=>[f("Upgrade")]),_:1})]),default:a(()=>{var s,i,d;return[I("div",M,C((d=(i=(s=e(c))==null?void 0:s.billingMetadata)==null?void 0:i.plan)!=null?d:"No active plan"),1)]}),_:1})]))}});export{Z as default};
//# sourceMappingURL=Billing.5e3a7778.js.map
