import{c as E,j as t,H,L as v}from"./app-7TQoRINg.js";import{H as A}from"./heading-Bg-7hxYP.js";import{B as N}from"./button-B14hYptM.js";import{b as x,c as j,d as C,C as g,a as _}from"./card-HlYY-FCN.js";import{A as B}from"./app-layout-aQVFjfPM.js";import{P as D}from"./page-help-B13kG5V1.js";import{d as I}from"./index-DK5ap2Wf.js";import{W as U,C as L,T as k}from"./badge-D3x2GPbI.js";/* empty css            */import"./checkbox-wEG3odM0.js";import"./check-hGgFQtIN.js";import"./createLucideIcon-COcR6tBl.js";import"./minus-atjnjdmC.js";import"./app-logo-icon-D-MBezm7.js";import"./house-VYpqVtj8.js";import"./phone-Ba-bFSOe.js";import"./user-cog-BMG7RYTW.js";import"./alert-CUSiPjtj.js";import"./circle-alert-x4iPpGgH.js";import"./input-v8Dzddeo.js";import"./label-CgA_it3S.js";import"./circle-check-wCLPZlSf.js";import"./loader-circle-BR-UEWuS.js";import"./circle-help-BvSDueQL.js";import"./external-link-wwk4CRPv.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};r.SENTRY_RELEASE={id:"b85bb7b5dc83f935fd7d75fdf93418434f2e0da2"}}catch{}})();try{(function(){var r=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new r.Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="b9a363de-9364-4dca-b371-b25796b61c8a",r._sentryDebugIdIdentifier="sentry-dbid-b9a363de-9364-4dca-b371-b25796b61c8a")})()}catch{}function le(r){const e=E.c(17),{creditBalance:w}=r,b=w===void 0?0:w;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=[{title:"Dashboard",href:I().url},{title:"My Credits",href:"/credit"}],e[0]=a):a=e[0];const S=a,y=typeof b=="number"?b:parseFloat(b)||0;let n;e[1]===Symbol.for("react.memo_cache_sentinel")?(n=[{title:"Credits Overview",content:"Credits are used to pay for phone calls. Each call deducts credits based on its duration and destination. Monitor your balance to ensure uninterrupted service."},{title:"Topping Up",content:'Click "Top Up Now" to add credits to your account. Choose from preset amounts or enter a custom amount. Payments are processed securely.'},{title:"Credit Usage",content:"Credits are deducted in real-time as calls are made. View your transaction history to track credit usage per campaign and call."},{title:"Low Balance Alert",content:"Keep your balance topped up to avoid campaign interruptions. Consider setting up auto-recharge for continuous operations."}],e[1]=n):n=e[1];const T=n;let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(H,{title:"My Credits"}),e[2]=l):l=e[2];let c;e[3]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx(A,{title:"My Credits",description:"View your credit balance and top up"}),t.jsx(D,{title:"Credits Help",sections:T})]}),e[3]=c):c=e[3];let d;e[4]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsxs(x,{children:[t.jsxs(j,{className:"flex items-center",children:[t.jsx(U,{className:"mr-2 h-5 w-5"}),"Current Balance"]}),t.jsx(C,{children:"Your available credits"})]}),e[4]=d):d=e[4];let s;e[5]!==y?(s=y.toFixed(2),e[5]=y,e[6]=s):s=e[6];let i;e[7]!==s?(i=t.jsxs(g,{children:[d,t.jsx(_,{children:t.jsxs("div",{className:"text-4xl font-bold",children:["$",s]})})]}),e[7]=s,e[8]=i):i=e[8];let m;e[9]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsxs(x,{children:[t.jsx(j,{children:"Top Up Credits"}),t.jsx(C,{children:"Add more credits to your account"})]}),e[9]=m):m=e[9];let p;e[10]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsxs(g,{children:[m,t.jsx(_,{children:t.jsx(N,{asChild:!0,className:"w-full",children:t.jsxs(v,{href:"/credit/top-up",children:[t.jsx(L,{className:"mr-2 h-4 w-4"}),"Top Up Now"]})})})]}),e[10]=p):p=e[10];let o;e[11]!==i?(o=t.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[i,p]}),e[11]=i,e[12]=o):o=e[12];let f;e[13]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsxs(x,{children:[t.jsxs(j,{className:"flex items-center",children:[t.jsx(k,{className:"mr-2 h-5 w-5"}),"Account Statement"]}),t.jsx(C,{children:"View your complete credit account history"})]}),e[13]=f):f=e[13];let u;e[14]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsxs(g,{children:[f,t.jsx(_,{children:t.jsx(N,{variant:"outline",asChild:!0,children:t.jsx(v,{href:"/credit/history",children:"View History"})})})]}),e[14]=u):u=e[14];let h;return e[15]!==o?(h=t.jsxs(B,{breadcrumbs:S,children:[l,t.jsxs("div",{className:"mx-auto max-w-7xl space-y-6",children:[c,o,u]})]}),e[15]=o,e[16]=h):h=e[16],h}export{le as default};
//# sourceMappingURL=Index-lO9a73AY.js.map
