import{c as E,j as t,H,L as v}from"./app-BeNY_zSm.js";import{H as A}from"./heading-CT-LucMJ.js";import{B as N}from"./button-Dge8PO59.js";import{b,c as j,d as C,C as g,a as _}from"./card-DG7I-_3R.js";import{A as B}from"./app-layout-DgG7GJrd.js";import{P as D}from"./page-help-DTCPMpQ7.js";import{d as I}from"./index-6bh5m_Va.js";import{W as U,C as L,T as k}from"./index-Bdohy6kp.js";/* empty css            */import"./checkbox-CP6n_Jsi.js";import"./check-ApYQKYPd.js";import"./createLucideIcon-VdTyGa1S.js";import"./minus-DZw6Ijz4.js";import"./app-logo-icon-vDeU-Cqe.js";import"./house-DocrF1YH.js";import"./phone-BwMlHUyB.js";import"./user-cog-CmNZBMeK.js";import"./alert-CxSnbwwr.js";import"./circle-alert-DR8wP1n1.js";import"./input-C0y5Yptz.js";import"./label-GwfI79i1.js";import"./circle-check-Cbr55h3A.js";import"./loader-circle-B3vU0DzH.js";import"./circle-help-BK6Ftcl-.js";import"./external-link-B9pahLkG.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:"d90f819d28d132ee9ad7641cbed0d6343dd98ccf"}}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]="7b1caaaa-9e49-428d-8e6c-e9afaa95d957",r._sentryDebugIdIdentifier="sentry-dbid-7b1caaaa-9e49-428d-8e6c-e9afaa95d957")})()}catch{}function le(r){const e=E.c(17),{creditBalance:w}=r,y=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,x=typeof y=="number"?y:parseFloat(y)||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(b,{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]!==x?(s=x.toFixed(2),e[5]=x,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(b,{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(b,{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-CgqrCxuH.js.map
