import{d as g,eA as y,o as _,u as e,b as p,c as b,eu as w,f as a,w as o,bf as x,aq as l,bE as h,e as I,eD as C}from"./outputWidgets.3681a2a5.js";import{c}from"./router.ef5c7692.js";import"./index.63f126f8.js";import{O as k}from"./organization.71029716.js";import{a as A}from"./asyncComputed.317e87c5.js";import{A as D}from"./Title.142e78f1.js";import{A as v}from"./index.4f6b4519.js";import{A as B}from"./index.e9de4cca.js";import{C as N}from"./Card.f6d00432.js";import"./Form.c15ea82d.js";import"./hasIn.127ddf2a.js";import"./popupNotifcation.d8032226.js";import"./index.cf4c23b9.js";import"./record.220fa006.js";import"./pubsub.916b1e4d.js";import"./Text.1bf2a6e4.js";import"./index.e0dbbf8d.js";import"./TabPane.ad3a7f71.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]="544acaee-060b-4deb-af95-78bd16e3c81e",t._sentryDebugIdIdentifier="sentry-dbid-544acaee-060b-4deb-af95-78bd16e3c81e")}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:f}=A(()=>k.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(E,V)=>e(m)?(p(),b(e(x),{key:0})):(p(),w("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:u},{default:o(()=>[l("Upgrade")]),_:1})]),default:o(()=>{var s,i,d;return[I("div",M,C((d=(i=(s=e(f))==null?void 0:s.billingMetadata)==null?void 0:i.plan)!=null?d:"No active plan"),1)]}),_:1})]))}});export{Z as default};
//# sourceMappingURL=Billing.22bbb936.js.map
