(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6634],{68977:function(e,t,r){Promise.resolve().then(r.bind(r,40163))},40163:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return v}});var l=r(57437),a=r(2265),c=r(81359);let n=(0,r(95480).Z)("arrow-up-right",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);var s=r(1242),o=r(38470),i=r(41501),d=r(30507),u=r(40525);let x=[{value:"week",label:"This Week"},{value:"month",label:"This Month"},{value:"year",label:"This Year"}];function m(){let[e,t]=(0,a.useState)("month"),r=(0,u.C)(e=>e.generalSetting.currencyCode);return(0,l.jsxs)("div",{className:"p-4 md:p-6 max-w-6xl mx-auto",children:[(0,l.jsxs)("div",{className:"mb-6",children:[(0,l.jsx)("h1",{className:"text-xl font-bold",style:{color:"var(--text-primary)"},children:"Earnings"}),(0,l.jsx)("p",{className:"text-sm mt-0.5",style:{color:"var(--text-muted)"},children:"Track your marketplace revenue"})]}),(0,l.jsx)("div",{className:"flex gap-2 mb-5",children:x.map(r=>(0,l.jsx)("button",{onClick:()=>t(r.value),className:"px-3 py-1.5 rounded-xl text-xs font-medium",style:{background:e===r.value?"var(--accent)":"var(--card)",color:e===r.value?"#fff":"var(--text-muted)",border:"1px solid ".concat(e===r.value?"var(--accent)":"var(--border)")},children:r.label},r.value))}),(0,l.jsxs)("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-3 mb-6",children:[[{label:"Gross Earnings",value:"".concat(r,"0"),icon:c.Z,color:"#22c55e"},{label:"Platform Fee",value:"".concat(r,"0"),icon:n,color:"#f59e0b"},{label:"Net Earnings",value:"".concat(r,"0"),icon:s.Z,color:"#6366f1"},{label:"Pending",value:"".concat(r,"0"),icon:o.Z,color:"#f97316"},{label:"Paid Out",value:"".concat(r,"0"),icon:i.Z,color:"#22c55e"}].map(e=>(0,l.jsxs)("div",{className:"p-4 rounded-2xl",style:{background:"var(--card)",border:"1px solid var(--border)"},children:[(0,l.jsx)("div",{className:"w-8 h-8 rounded-xl flex items-center justify-center mb-3",style:{background:"".concat(e.color,"18")},children:(0,l.jsx)(e.icon,{size:16,color:e.color})}),(0,l.jsx)("p",{className:"text-lg font-bold",style:{color:"var(--text-primary)"},children:e.value}),(0,l.jsx)("p",{className:"text-xs mt-0.5",style:{color:"var(--text-muted)"},children:e.label})]},e.label)),(0,l.jsxs)("div",{className:"p-4 rounded-2xl flex flex-col items-center justify-center gap-2 cursor-pointer hover:opacity-90",style:{background:"var(--accent)"},children:[(0,l.jsx)(i.Z,{size:20,color:"#fff"}),(0,l.jsx)("p",{className:"text-sm font-semibold text-white",children:"Withdraw"})]})]}),(0,l.jsx)("h2",{className:"text-sm font-semibold mb-3",style:{color:"var(--text-primary)"},children:"Transaction History"}),(0,l.jsx)(d.u,{icon:s.Z,title:"No transactions yet",description:"Completed sales will appear here with your earnings breakdown."})]})}function v(){return(0,l.jsx)(m,{})}},30507:function(e,t,r){"use strict";r.d(t,{u:function(){return a}});var l=r(57437);function a(e){let{icon:t,title:r,description:a,action:c,className:n=""}=e;return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center py-16 px-4 text-center ".concat(n),children:[(0,l.jsx)("div",{style:{background:"var(--card)",border:"1px solid var(--border)"},className:"w-16 h-16 rounded-2xl flex items-center justify-center mb-4",children:(0,l.jsx)(t,{size:28,style:{color:"var(--text-muted)"}})}),(0,l.jsx)("h3",{style:{color:"var(--text-primary)"},className:"text-base font-semibold mb-1",children:r}),a&&(0,l.jsx)("p",{style:{color:"var(--text-muted)"},className:"text-sm max-w-xs mb-6",children:a}),c&&(0,l.jsx)("button",{onClick:c.onClick,style:{background:"var(--accent)",color:"#fff"},className:"px-5 py-2.5 rounded-xl text-sm font-medium",children:c.label})]})}r(2265)},40525:function(e,t,r){"use strict";r.d(t,{C:function(){return c},T:function(){return a}});var l=r(68575);let a=()=>(0,l.I0)(),c=e=>(0,l.v9)(e)},38470:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});let l=(0,r(95480).Z)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]])},1242:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});let l=(0,r(95480).Z)("dollar-sign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]])},81359:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});let l=(0,r(95480).Z)("trending-up",[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]])},41501:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});let l=(0,r(95480).Z)("wallet",[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]])}},function(e){e.O(0,[2716,2971,2117,1744],function(){return e(e.s=68977)}),_N_E=e.O()}]);