import{d as g,eA as y,o as _,u as e,b as p,c as w,eu as b,f as a,w as o,bf as I,aq as l,bF as x,e as h,eD as k}from"./outputWidgets.1c4947c7.js";import{I as c}from"./router.f814fb07.js";import"./index.bf745b17.js";import{O as A}from"./organization.01b51d1b.js";import{a as C}from"./asyncComputed.ab9c45d0.js";import{A as D}from"./Title.6f4ab7f6.js";import{A as v}from"./index.a9af7b0b.js";import{A as B}from"./index.8bbe8aff.js";import{C as N}from"./Card.10f7bd77.js";import"./Form.cba5cdce.js";import"./hasIn.58acd238.js";import"./popupNotifcation.bd532d77.js";import"./index.cf4c23b9.js";import"./record.438e3693.js";import"./pubsub.87f1efb9.js";import"./Text.4ed32514.js";import"./index.68ab62e0.js";import"./TabPane.333d1c75.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]="ea97a492-56c0-41c3-aa48-aeaf563ebcf2",t._sentryDebugIdIdentifier="sentry-dbid-ea97a492-56c0-41c3-aa48-aeaf563ebcf2")}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(()=>A.get(r));_(()=>{location.search.includes("upgrade")&&c.showNewMessage("I want to upgrade my plan")});const u=()=>c.showNewMessage("I want to upgrade my plan");return(V,j)=>e(f)?(p(),w(e(I),{key:0})):(p(),b("div",z,[a(e(v),{justify:"space-between",align:"center"},{default:o(()=>[a(e(D),{level:3},{default:o(()=>[l("Current plan")]),_:1})]),_:1}),a(e(B),{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.a76af034.js.map
