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 x,aq as l,bE as h,e as I,eD as C}from"./outputWidgets.cb8d4118.js";import{c}from"./router.86733c93.js";import"./index.c95ca55f.js";import{O as k}from"./organization.caad8c8b.js";import{a as A}from"./asyncComputed.602f821b.js";import{A as D}from"./Title.0c6e5569.js";import{A as v}from"./index.20961092.js";import{A as B}from"./index.36e8f249.js";import{C as N}from"./Card.028b3323.js";import"./Form.ecb5a9ca.js";import"./hasIn.9378fb46.js";import"./popupNotifcation.901fafde.js";import"./index.cf4c23b9.js";import"./record.3c2cc598.js";import"./pubsub.6650fe4e.js";import"./Text.9ccde808.js";import"./index.2e27f524.js";import"./TabPane.50eb1b71.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]="86d38c60-ce48-4eb5-a718-d8780442035d",t._sentryDebugIdIdentifier="sentry-dbid-86d38c60-ce48-4eb5-a718-d8780442035d")}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:u}=A(()=>k.get(r));_(()=>{location.search.includes("upgrade")&&c.showNewMessage("I want to upgrade my plan")});const f=()=>c.showNewMessage("I want to upgrade my plan");return(E,V)=>e(m)?(p(),w(e(x),{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(h),{onClick:f},{default:o(()=>[l("Upgrade")]),_:1})]),default:o(()=>{var s,i,d;return[I("div",M,C((d=(i=(s=e(u))==null?void 0:s.billingMetadata)==null?void 0:i.plan)!=null?d:"No active plan"),1)]}),_:1})]))}});export{Z as default};
//# sourceMappingURL=Billing.88b09b9c.js.map
