import{i as e,n as t}from"./rolldown-runtime-BKYq3fBv.js";import{Nn as n,Xn as r}from"./vendor-primevue-Cg-HmKZY.js";import{ot as i,st as a}from"./vendor-other-CoxDvJ0a.js";import{Ho as o,Vo as s,nr as c,tr as l}from"./dialogService-DvYmp2_F.js";function useSubscriptionCredits(){let e=o(),{locale:t}=a(),formatBalance=e=>l({cents:e??0,locale:t.value,numberOptions:{minimumFractionDigits:0,maximumFractionDigits:0}});return{totalCredits:r(()=>formatBalance(e.balance?.amount_micros)),monthlyBonusCredits:r(()=>formatBalance(e.balance?.cloud_credit_balance_micros)),prepaidCredits:r(()=>formatBalance(e.balance?.prepaid_balance_micros)),isLoadingBalance:r(()=>e.isFetchingBalance)}}var u=t((()=>{n(),i(),c(),s()}));export{useSubscriptionCredits as n,u as t};
//# sourceMappingURL=useSubscriptionCredits--htUCYXg.js.map