import{c as L,j as t,H as k}from"./app-BeNY_zSm.js";import{A as O}from"./app-layout-DgG7GJrd.js";import{H as U}from"./heading-CT-LucMJ.js";import{b as f,c as x,C as p,a as b}from"./card-DG7I-_3R.js";import{D as Y,A as q,T as H}from"./index-Bdohy6kp.js";/* empty css            */import"./button-Dge8PO59.js";import"./checkbox-CP6n_Jsi.js";import"./check-ApYQKYPd.js";import"./createLucideIcon-VdTyGa1S.js";import"./minus-DZw6Ijz4.js";import"./index-6bh5m_Va.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";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};s.SENTRY_RELEASE={id:"d90f819d28d132ee9ad7641cbed0d6343dd98ccf"}}catch{}})();try{(function(){var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new s.Error().stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="557c4a6b-2268-4011-873e-ed8aab19b440",s._sentryDebugIdIdentifier="sentry-dbid-557c4a6b-2268-4011-873e-ed8aab19b440")})()}catch{}function fe(s){const e=L.c(31),{totalRevenue:P,totalCost:E,totalProfit:R,profitMargin:A}=s,I=P===void 0?0:P,F=E===void 0?0:E,$=R===void 0?0:R,M=A===void 0?0:A;let h;e[0]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx(k,{title:"Profit Dashboard"}),e[0]=h):h=e[0];let u;e[1]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx(U,{title:"Profit Dashboard",description:"Overview of revenue, costs, and profit margins"}),e[1]=u):u=e[1];let j;e[2]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsxs(f,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[t.jsx(x,{className:"text-sm font-medium",children:"Total Revenue"}),t.jsx(Y,{className:"h-4 w-4 text-muted-foreground"})]}),e[2]=j):j=e[2];const S=Number(I);let i;e[3]!==S?(i=S.toFixed(2),e[3]=S,e[4]=i):i=e[4];let l;e[5]!==i?(l=t.jsxs(p,{children:[j,t.jsx(b,{children:t.jsxs("div",{className:"text-2xl font-bold text-green-600",children:["$",i]})})]}),e[5]=i,e[6]=l):l=e[6];let y;e[7]===Symbol.for("react.memo_cache_sentinel")?(y=t.jsxs(f,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[t.jsx(x,{className:"text-sm font-medium",children:"Total Cost"}),t.jsx(q,{className:"h-4 w-4 text-muted-foreground"})]}),e[7]=y):y=e[7];const T=Number(F);let o;e[8]!==T?(o=T.toFixed(2),e[8]=T,e[9]=o):o=e[9];let r;e[10]!==o?(r=t.jsxs(p,{children:[y,t.jsx(b,{children:t.jsxs("div",{className:"text-2xl font-bold text-red-600",children:["$",o]})})]}),e[10]=o,e[11]=r):r=e[11];let g;e[12]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsxs(f,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[t.jsx(x,{className:"text-sm font-medium",children:"Total Profit"}),t.jsx(H,{className:"h-4 w-4 text-muted-foreground"})]}),e[12]=g):g=e[12];const D=Number($);let n;e[13]!==D?(n=D.toFixed(2),e[13]=D,e[14]=n):n=e[14];let a;e[15]!==n?(a=t.jsxs(p,{children:[g,t.jsx(b,{children:t.jsxs("div",{className:"text-2xl font-bold text-blue-600",children:["$",n]})})]}),e[15]=n,e[16]=a):a=e[16];let N;e[17]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsxs(f,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[t.jsx(x,{className:"text-sm font-medium",children:"Profit Margin"}),t.jsx(H,{className:"h-4 w-4 text-muted-foreground"})]}),e[17]=N):N=e[17];const C=Number(M);let d;e[18]!==C?(d=C.toFixed(2),e[18]=C,e[19]=d):d=e[19];let c;e[20]!==d?(c=t.jsxs(p,{children:[N,t.jsx(b,{children:t.jsxs("div",{className:"text-2xl font-bold",children:[d,"%"]})})]}),e[20]=d,e[21]=c):c=e[21];let m;e[22]!==l||e[23]!==r||e[24]!==a||e[25]!==c?(m=t.jsxs("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-4",children:[l,r,a,c]}),e[22]=l,e[23]=r,e[24]=a,e[25]=c,e[26]=m):m=e[26];let w;e[27]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx(f,{children:t.jsx(x,{children:"Profit Analytics"})}),e[27]=w):w=e[27];let _;e[28]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsxs(p,{children:[w,t.jsx(b,{children:t.jsx("p",{className:"text-muted-foreground",children:"Detailed profit analytics and trends will be displayed here."})})]}),e[28]=_):_=e[28];let v;return e[29]!==m?(v=t.jsxs(O,{children:[h,t.jsxs("div",{className:"space-y-6",children:[u,m,_]})]}),e[29]=m,e[30]=v):v=e[30],v}export{fe as default};
//# sourceMappingURL=Index-BidfNZP_.js.map
