1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[22224],{3998:(e,t,a)=>{a.r(t),a.d(t,{Button:()=>m,buttonVariants:()=>x});var r=a(95155),s=a(12115),n=a(32467),i=a(83101),l=a(64269),d=a(28727);let c="focus-ring-managed inline-flex items-center justify-center gap-2 whitespace-nowrap font-medium transition-all duration-200 cursor-pointer disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--ring)]/45 focus-visible:ring-offset-0",o={sm:"px-4 py-2 text-sm",md:"px-6 py-2.5 text-sm",lg:"px-8 py-3 text-base",icon:"h-10 w-10 rounded-xl"},m=s.forwardRef((e,t)=>{let{className:a,variant:s="primary",size:i="md",asChild:m=!1,...x}=e,{theme:h}=(0,d.D)(),g="dark"===h,u=m?n.DX:"button";return(0,r.jsx)(u,{className:(0,l.cn)(c,o[i],(()=>{switch(s){case"primary":return g?"bg-[#78fcd6] text-[#0d0f0e] hover:bg-[#5fe8c3] rounded-full font-semibold":"classic-solid-label bg-[#0d9488] text-white hover:bg-[#0f766e] rounded-full font-semibold";case"secondary":return"bg-[#e7eceb] text-[#141a18] hover:bg-[#d0d5d4] rounded-full font-semibold";case"outline":return g?"border border-white/20 bg-transparent text-white hover:bg-white/10 hover:border-white/30 rounded-xl":"border border-gray-300 bg-transparent text-gray-700 hover:bg-gray-100 hover:border-gray-400 rounded-xl";case"ghost":return g?"text-gray-300 hover:text-white hover:bg-white/10 rounded-xl":"text-gray-600 hover:text-gray-900 hover:bg-gray-100 rounded-xl";case"destructive":return"bg-red-500/20 text-red-400 border border-red-500/30 hover:bg-red-500/30 rounded-xl";case"link":return g?"text-[#78fcd6] underline-offset-4 hover:underline":"text-[#0d9488] underline-offset-4 hover:underline";default:return""}})(),a),ref:t,...x})});m.displayName="Button";let x=(0,i.F)(c,{variants:{variant:{primary:"rounded-full font-semibold",secondary:"bg-[#e7eceb] text-[#141a18] hover:bg-[#d0d5d4] rounded-full font-semibold",outline:"border rounded-xl",ghost:"rounded-xl",destructive:"bg-red-500/20 text-red-400 border border-red-500/30 hover:bg-red-500/30 rounded-xl",link:"underline-offset-4 hover:underline"},size:{sm:"px-4 py-2 text-sm",md:"px-6 py-2.5 text-sm",lg:"px-8 py-3 text-base",icon:"h-10 w-10 rounded-xl"}},defaultVariants:{variant:"primary",size:"md"}})},22224:(e,t,a)=>{a.r(t),a.d(t,{default:()=>Y});var r=a(95155),s=a(93194),n=a(12115),i=a(20499),l=a(32450),d=a(3998),c=a(65142),o=a(87270),m=a(11186),x=a(93341),h=a(39867),g=a(78519),u=a(35299),y=a(86651),p=a(61362),b=a(52056),j=a(76907),v=a(23664),f=a(91761),N=a(1
1524),w=a(71871),k=a(91169),A=a(16485),P=a(99975),R=a(90368),C=a(27937),S=a(90088),F=a(64269),z=a(28727),T=a(64680),D=a(9103),O=a(93366),I=a(16429),B=a(82192),G=a(51321),E=a(78674),_=a(88901),M=a(53317),H=a(99152),U=a(99228),L=a(72473),V=a(80155),q=a(56167),X=a(18720);function W(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"NGN";return new Intl.NumberFormat("en-NG",{style:"currency",currency:t,minimumFractionDigits:0,maximumFractionDigits:0}).format(e/100)}function Q(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"NGN";return void 0!==e&&Number.isFinite(e)?new Intl.NumberFormat("NGN"===t?"en-NG":"en-US",{style:"currency",currency:t,minimumFractionDigits:0,maximumFractionDigits:2}).format(e):"â"}function Y(){var e,t,a;let{theme:Y}=(0,z.D)(),$="dark"===Y,Z=(0,i.y3)(l.FH.orders.adminFindPaystackOrder),J=(0,i.y3)(l.FH.orders.adminVerifyPaystackOrder),K=(0,i.y3)(l.FH.orders.adminResendPaystackTicketEmails),ee=(0,i.y3)(l.FH.orders.adminReconcilePaystackRecoveryQueue),et=(0,i.IT)(l.FH.orders.adminListPaystackRecoveryQueue,{limit:50}),ea=(0,i.IT)(l.FH.analytics.getRevenueCoverageIssues,{limit:100}),er=(0,i.y3)(l.FH.orders.adminReconcileMissingEarningOrder),es=(0,i.y3)(l.FH.orders.adminFindBlockradarOrder),en=(0,i.y3)(l.FH.orders.adminCompleteCancelledBlockradarOrder),ei=(0,i.IT)(l.FH.meetumoCredits.adminGetReviewRequired,{limit:10}),el=(0,i.n_)(l.FH.meetumoCredits.adminResolveReview),[ed,ec]=(0,n.useState)("this_month"),[eo,em]=(0,n.use
1State)("NGN"),[ex,eh]=(0,n.useState)("unresolved"),[eg,eu]=(0,n.useState)(""),[ey,ep]=(0,n.useState)(null),[eb,ej]=(0,n.useState)(!1),[ev,ef]=(0,n.useState)(!1),[eN,ew]=(0,n.useState)(!1),[ek,eA]=(0,n.useState)(!1),[eP,eR]=(0,n.useState)(null),[eC,eS]=(0,n.useState)(null),[eF,ez]=(0,n.useState)(""),[eT,eD]=(0,n.useState)(null),[eO,eI]=(0,n.useState)(!1),[eB,eG]=(0,n.useState)(!1),[eE,e_]=(0,n.useState)(null),[eM,eH]=(0,n.useState)(1),[eU,eL]=(0,n.useState)(20),[eV,eq]=(0,n.useState)(""),[eX,eW]=(0,n.useState)("platformFees"),[eQ,eY]=(0,n.useState)("desc"),e$=(0,V.d)(eV,300),[eZ,eJ]=(0,n.useState)(1),[eK,e0]=(0,n.useState)(20),[e1,e4]=(0,n.useState)(""),[e2,e5]=(0,n.useState)("totalPlatformFees"),[e3,e9]=(0,n.useState)("desc"),e6=(0,V.d)(e1,300);(0,n.useEffect)(()=>{eH(1)},[e$,ed,eo]),(0,n.useEffect)(()=>{eJ(1)},[e6,ed,eo]);let{startDate:e8,endDate:e7}=(0,n.useMemo)(()=>{let e=new Date;switch(ed){case"today":return{startDate:(0,O.o)(e).getTime(),endDate:(0,I.D)(e).getTime()};case"this_week":return{startDate:(0,B.k)(e,{weekStartsOn:1}).getTime(),endDate:(0,G.$)(e,{weekStartsOn:1}).getTime()};case"this_month":return{startDate:(0,E.w)(e).getTime(),endDate:(0,_.p)(e).getTime()};case"this_year":return{startDate:(0,M.D)(e).getTime(),endDate:(0,H.Q)(e).getTime()};case"last_30_days":return{startDate:(0,U.a)(e,1).getTime(),endDate:e.getTime()};case"last_90_days":return{startDate:(0,U.a)(e,3).getTime(),endDate:e.getTime()};default:return{startDate:void 0,endDate:void 0}}},[ed]),te=(0,i.IT)(l.FH.analytics.getPlatformRevenueSummary,{startDate:e8,endDate:e7,currency:eo}),tt=(0,i.IT)(l.FH.analytics.getRevenueByEventPaginated,"events"===ex?{startDate:e8,endDate:e7,page:eM,pageSize:eU,search:e$||void 0,sortBy:eX,sortOrder:eQ,currency:eo}:"skip"),ta=(0,i.IT)(l.FH.analytics.getRevenueByOrganizerPaginated,"organizers"===ex?{startDate:e8,endDate:e7,page:eZ,pageSize:eK,search:e6||void 0,sortBy:e2,sortOrder:e3,currency:eo}:"skip"),tr=(0,i.IT)(l.FH.analytics.getMonthlyRevenueBreakdown,"monthly"===ex?{startDate:e8,endDate:e7,currency:eo}:"skip"),ts=e=>new Intl.NumberFormat("NGN"===eo?"en-NG":"en-US",{style:"currency",currency:eo,minimumFractionDigits:0,maximumFractionDigits:0}).format(e/100),tn=async()=>{let e=eg.trim();if(!e)return void X.oR.error("Enter an order ID or Paystack reference first.");ej(!0);try{let t=await Z({identifier:e});if(ep(t),!t)return void X.oR.error("No Paystack order matched that identifier.");X.oR.success("Paystack order loaded.")}catch(e){ep(null),X.oR.error("Lookup failed",{description:(null==e?void 0:e.message)||"Unable to find Paystack order."})}finally{ej(!1)}},ti=async()=>{let e=eF.trim();if(!e)return void X.oR.error("Enter an order ID or reference first.");eI(!0);try{let t=await es({identifier:e});if(eD(t),!t)return void X.oR.error("No Blockradar order matched that identifier.");X.oR.success("Blockradar order loaded.")}catch(e){eD(null),X.oR.error("Lookup failed",{description:(null==e?void 0:e.message)||"Unable to find Blockradar order."})}finally{eI(!1)}},tl=async e=>{e_(e);try{await el({ledgerId:e,resolutionNote:"Reviewed by admin. Refund or Meetumo Credit action handled manually."}),X.oR.success("Meetumo Credit review marked as resolved.")}catch(e){X.oR.error((null==e?void 0:e.message)||"Failed to resolve review item.")}finally{e_(null)}},td=async()=>{if(null==ey?void 0:ey._id){ef(!0);try{let e=await J({orderId:ey._id});"recovered"===e.outcome?X.oR.success("Paystack payment recovered",{description:e.message}):"unpaid"===e.outcome?X.oR.success("Unpaid order closed",{description:e.message}):"pending"===e.outcome?X.oR.info("Payment is still pending",{description:e.message}):X.oR.error("Payment needs attention",{description:e.message});let t=await Z({identifier:ey._id});ep(t)}catch(e){X.oR.error("Resolution failed",{description:(null==e?void 0:e.message)||"Unable to resolve the Paystack order. Check the payment status and try again."})}finally{ef(!1)}}},tc=async()=>{if(null==ey?void 0:ey._id){ew(!0);try{let e=await K({orderId:ey._id});X.oR.success("Ticket delivery scheduled",{description:e.message});let t=await Z({identifier:ey._id});ep(t)}catch(e){X.oR.error("Ticket delivery failed",{description:(null==e?void 0:e.message)||"Unable to schedule ticket delivery."})}finally{ew(!1)}}},to=async()=>{eA(!0);try{let e=await ee({limit:50});X.oR.success("Paystack reconciliation finished",{description:"".concat(e.recovered," recovered, ").concat(e.unpaid," closed as unpaid, ").concat(e.pending," still pending, ").concat(e.needsAttention," need attention.")})}catch(e){X.oR.error("Reconciliation failed",{description:(null==e?void 0:e.message)||"Unable to re
1concile Paystack orders."})}finally{eA(!1)}},tm=async e=>{eR(e);try{let t=await J({orderId:e});"recovered"===t.outcome?X.oR.success("Paystack payment recovered",{description:t.message}):"unpaid"===t.outcome?X.oR.success("Unpaid order closed",{description:t.message}):"pending"===t.outcome?X.oR.info("Payment is still pending",{description:t.message}):X.oR.error("Payment needs attention",{description:t.message})}catch(e){X.oR.error("Payment is not ready to resolve",{description:(null==e?void 0:e.message)||"Paystack could not confirm this payment."})}finally{eR(null)}},tx=async e=>{eS(e);try{await er({orderId:e}),X.oR.success("Earnings ledger row created.")}catch(e){X.oR.error("Ledger reconciliation needs review",{description:(null==e?void 0:e.message)||"Unable to reconcile this ledger row."})}finally{eS(null)}},th=async()=>{if(null==eT?void 0:eT._id){eG(!0);try{let e=await en({orderId:eT._id});X.oR.success("Blockradar order resolved",{description:e.message});let t=await es({identifier:eT._id});eD(t)}catch(e){X.oR.error("Resolution failed",{description:(null==e?void 0:e.message)||"Unable to resolve the Blockradar order. Check the payment status and try again."})}finally{eG(!1)}}},tg=e=>{eX===e?eY("desc"===eQ?"asc":"desc"):(eW(e),eY("desc"))},tu=e=>{e2===e?e9("desc"===e3?"asc":"desc"):(e5(e),e9("desc"))},ty=e=>{let{column:t,label:a,currentSort:s,currentOrder:n,onToggle:i,className:l}=e;return(0,r.jsx)(o.nd,{className:(0,F.cn)($&&"text-gray-400",l),children:(0,r.jsxs)("button",{onClick:()=>i(t),className:(0,F.cn)("flex items-center gap-1 text-xs font-medium uppercase tracking-wider transition-colors",s===t?$?"text-[#78fcd6]":"text-teal-600":$?"text-gray-400 hover:text-gray-300":"text-gray-500 hover:text-gray-700"),children:[a,(0,r.jsx)(x.A,{className:"w-3 h-3"})]})})};if(void 0===te)return(0,r.jsxs)("div",{className:"space-y-6",children:[(0,r.jsx)("div",{className:(0,F.cn)("h-12 w-64 rounded-xl animate-pulse",$?"bg-white/5":"bg-gray-100")}),(0,r.jsx)("div",{className:"grid gap-4 grid-cols-1 sm:grid-cols-2 lg:grid-cols-4",children:[void 0,void 0,void 0,void 0].map((e,t)=>(0,r.jsx)("div",{className:(0,F.cn)("h-32 rounded-2xl animate-pulse",$?"bg-white/5":"bg-gray-100")},t))}),(0,r.jsx)("div",{className:(0,F.cn)("h-96 w-full rounded-xl animate-pulse",$?"bg-white/5":"bg-gray-100")})]});if(!te)return(0,r.jsx)("div",{className:"space-y-6",children:(0,r.jsxs)("div",{"data-admin-card":!0,className:(0,F.cn)("rounded-2xl border p-12 text-center",$?"bg-white/5 border-white/10":"bg-white border-gray-200"),children:[(0,r.jsx)("h3",{className:(0,F.cn)("text-lg font-medium",$?"text-white":"text-gray-900"),children:"Access Denied"}),(0,r.jsx)("p",{className:(0,F.cn)("text-sm mt-2",$?"text-gray-400":"text-gray-600"),children:"You need super admin privileges to view platform revenue analytics."})]})});let tp=te.meta.revenueCoverage.unledgeredPaidOrders+te.meta.revenueCoverage.unresolvedLedgerRows,tb=(null!=(e=null==et?void 0:et.length)?e:0)+(null!=(t=null==ea?void 0:ea.length)?t:0);return(0,r.jsxs)("div",{className:"space-y-8",children:[(0,r.jsxs)(T.P.div,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.5},className:"flex flex-col sm:flex-row sm:justify-between sm:items-center gap-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(q.d,{}),(0,r.jsx)("div",{className:"mb-1 flex items-center gap-2",children:(0,r.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,r.jsx)("h1",{className:(0,F.cn)("text-2xl sm:text-3xl font-bold",$?"text-white":"text-gray-900"),children:"Platform Revenue"}),(0,r.jsxs)(s.C,{title:"Platform Revenue",children:[(0,r.jsx)("div",{children:"Track platform-wide revenue from fees and commissions"}),(0,r.jsxs)("p",{children:[(0,r.jsx)("span",{className:"font-semibold",children:"Gross sales"})," is ticket value before refunds."]}),(0,r.jsxs)("p",{children:[(0,r.jsx)("span",{className:"font-semibold",children:"Platform fees"})," are MeetUmo revenue regardless of who paid them."]}),(0,r.jsxs)("p",{children:[(0,r.jsx)("span",{className:"font-semibold",children:"Gateway fees"})," include attendee- and organizer-paid processing charges."]}),(0,r.jsxs)("p",{children:[(0,r.jsx)("span",{className:"font-semibold",children:"Net to organizers"})," ","deducts only fees the organizer absorbed."]})]})]})})]}),(0,r.jsxs)("div",{className:"flex items-center gap-3 flex-wrap",children:[(0,r.jsxs)(m.l6,{value:eo,onValueChange:e=>em(e),children:[(0,r.jsx)(m.bq,{"aria-label":"Revenue currency",className:(0,F.cn)("w-[120px]",$&&"bg-white/5 border-white/20"),children:(0,r.jsx)(m.yv,{})}),(0,r.jsxs)(m.gC,{className:(0,F.cn)($&&"bg-[#1a1c1b] border-white/20"),children:[(0,r.jsx)(m.eb,{value:"NGN",children:"NGN (â¦)"}),(0,r.jsx)(m.eb,{value:"USD",children:"USD ($)"})]})]}),(0,r.jsxs)(m.l6,{value:ed,onValueChange:e=>ec(e),children:[(0,r.jsx)(m.bq,{className:(0,F.cn)("w-[180px]",$&&"bg-white/5 border-white/20"),children:(0,r.jsx)(m.yv,{placeholder:"Select period"})}),(0,r.jsxs)(m.gC,{className:(0,F.cn)($&&"bg-[#1a1c1b] border-white/20"),children:[(0,r.jsx)(m.eb,{value:"today",children:"Today"}),(0,r.jsx)(m.eb,{value:"this_week",children:"This Week"}),(0,r.jsx)(m.eb,{value:"this_month",children:"This Month"}),(0,r.jsx)(m.eb,{value:"this_year",children:"This Year"}),(0,r.jsx)(m.eb,{value:"last_30_days",children:"Last 30 Days"}),(0,r.jsx)(m.eb,{value:"last_90_days",children:"Last 90 Days"}),(0,r.jsx)(m.eb,{value:"all_time",children:"All Time"})]})]}),(0,r.jsxs)(d.Button,{variant:"outline",size:"sm",onClick:()=>{let e="";
1if("events"===ex&&tt?(e="Event,Organizer,Date,Gross Sales,Platform Fees,Gateway Fees (All Payers),Net to Organizer,Revenue Orders\n",tt.items.forEach(t=>{e+='"'.concat(t.eventTitle,'","').concat(t.organizerName,'",').concat(t.eventDate?(0,L.GP)(new Date(t.eventDate),"yyyy-MM-dd"):"N/A",",").concat(t.grossSales/100,",").concat(t.platformFees/100,",").concat(t.gatewayFees/100,",").concat(t.netToOrganizer/100,",").concat(t.orderCount,"\n")})):"organizers"===ex&&ta?(e="Organizer,Email,Events,Revenue Orders,Gross Sales,Platform Fees,Gateway Fees (All Payers),Net Earnings\n",ta.items.forEach(t=>{e+='"'.concat(t.organizerName,'","').concat(t.organizerEmail,'",').concat(t.eventCount,",").concat(t.orderCount,",").concat(t.totalGross/100,",").concat(t.totalPlatformFees/100,",").concat(t.totalGatewayFees/100,",").concat(t.totalNet/100,"\n")})):"monthly"===ex&&tr&&(e="Month,Gross Sales,Platform Fees,Gateway Fees (All Payers),Net to Organizers,Revenue Orders\n",tr.items.forEach(t=>{e+="".concat(t.month,",").concat(t.grossSales/100,",").concat(t.platformFees/100,",").concat(t.gatewayFees/100,",").concat(t.netToOrganizers/100,",").concat(t.orderCount,"\n")})),!e)return;let t=new Blob([e],{type:"text/csv;charset=utf-8;"}),a=document.createElement("a"),r=URL.createObjectURL(t);a.setAttribute("href",r),a.setAttribute("download","platform-revenue-".concat(ex,"-").concat((0,L.GP)(new Date,"yyyy-MM-dd"),".csv")),document.body.appendChild(a),a.click(),document.body.removeChild(a)},className:(0,F.cn)($&&"border-white/20 hover:bg-white/10"),children:[(0,r.jsx)(h.A,{className:"h-4 w-4 mr-2"}),"Export CSV"]})]})]}),(0,r.jsxs)("div",{className:"grid grid-cols-1 gap-4 xl:grid-cols-2 xl:items-start",children:[(0,r.jsxs)(T.P.div,{"data-admin-card":!0,initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.35,delay:.06},className:(0,F.cn)("rounded-2xl border p-5 space-y-4",$?"bg-white/5 border-white/10":"bg-white border-gray-200"),children:[(0,r.jsxs)("div",{className:"flex items-start gap-3",children:[(0,r.jsx)("div",{className:(0,F.cn)("shrink-0 rounded-xl p-2",$?"bg-emerald-500/10":"bg-emerald-50"),children:(0,r.jsx)(g.A,{className:(0,F.cn)("h-5 w-5",$?"text-emerald-400":"text-emerald-600")})}),(0,r.jsx)("div",{className:"min-w-0",children:(0,r.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,r.jsx)("h2",{className:(0,F.cn)("text-lg font-semibold",$?"text-white":"text-gray-900"),children:"Paystack Recovery"}),(0,r.jsx)(s.C,{title:"Paystack Recovery",children:(0,r.jsx)("div",{children:"Paste an order ID or Paystack payment reference to verify the transaction and resolve paid orders stuck in pending or cancelled."})})]})})]}),(0,r.jsxs)("div",{className:"flex flex-col sm:flex-row gap-3",children:[(0,r.jsx)(c.p,{value:eg,onChange:e=>eu(e.target.value),placeholder:"Paste order ID or Paystack reference"}),(0,r.jsxs)(d.Button,{onClick:tn,disabled:eb,children:[eb?(0,r.jsx)(u.A,{className:"h-4 w-4 animate-spin"}):(0,r.jsx)(y.A,{className:"h-4 w-4"}),(0,r.jsx)("span",{className:"ml-2",children:"Load Order"})]})]}),ey&&(0,r.jsxs)("div",{"data-admin-card":!0,className:(0,F.cn)("rounded-xl border p-4 space-y-4",$?"bg-white/[0.03] border-white/10":"bg-gray-50 border-gray-200"),children:[(0,r.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-start sm:justify-between gap-3",children:[(0,r.jsxs)("div",{className:"space-y-1",children:[(0,r.jsx)("p",{className:(0,F.cn)("text-sm font-medium",$?"text-white":"text-gray-900"),children:ey.eventTitle||"Untitled Event"}),(0,r.jsxs)("p",{className:(0,F.cn)("text-xs",$?"text-gray-400":"text-gray-600"),children:["Order ",ey._id," for"," ",ey.customerEmail||"unknown customer"]})]}),(0,r.jsxs)("span",{className:(0,F.cn)("inline-flex items-center gap-2 rounded-full px-3 py-1 text-xs font-medium w-fit","completed"===ey.status?$?"bg-emerald-500/20 text-emerald-400":"bg-emerald-100 text-emerald-700":"cancelled"===ey.status?$?"bg-red-500/20 text-red-400":"bg-red-100 text-red-700":$?"bg-amber-500/20 text-amber-400":"bg-amber-100 text-amber-700"),children:["completed"===ey.status?(0,r.jsx)(p.A,{className:"h-3.5 w-3.5"}):(0,r.jsx)(b.A,{className:"h-3.5 w-3.5"}),(0,r.jsx)("span",{className:"capitalize",children:ey.status})]})]}),(0,r.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3 text-sm",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:(0,F.cn)("text-gray-500"),children:"Payment Reference"}),(0,r.jsx)("p",{className:(0,F.cn)("break-all",$?"text-white":"text-gray-900"),children:ey.paymentReference||"â"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:(0,F.cn)("text-gray-500"),children:"Payment Status"}),(0,r.jsx)("p",{className:(0,F.cn)($?"text-white":"text-gray-900"),children:ey.paymentStatus||"Not recorded"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:(0,F.cn)("text-gray-500"),children:"Amount Due"}),(0,r.jsx)("p",{className:(0,F.cn)($?"text-white":"text-gray-900"),children:Q(null!=(a=ey.amountDue)?a:ey.total,ey.currency)})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:(0,F.cn)("text-gray-500"),children:"Tickets"}),(0,r.jsxs)("p",{className:(0,F.cn)($?"text-white":"text-gray-900"),children:[ey.ticketCount," generated /"," ",ey.quantity," ordered"]}),(0,r.jsxs)("p",{className:(0,F.cn)("mt-1 text-xs",$?"text-gray-400":"text-gray-600"),children:["Delivery: ",ey.ticketDeliverySentCount," sent,"," ",ey.ticketDeliveryPendingCount," queued,"," ",ey.ticketDeliveryFailedCount+ey.ticketDeliveryUnsentCount," ","need delivery"]})]}),ey.cancellationReason&&(0,r.jsxs)("div",{className:"md:col-span-2",children:[(0,r.jsx)("p",{className:(0,F.cn)("text-gray-500"),children:"Cancellation Reason"}),(0,r.jsx)("p",{className:(0,F.cn)($?"text-white":"text-gray-900"),children:ey.cancellationReason})]})]}),(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,r.jsxs)(d.Button,{onClick:td,disabled:ev||"completed"===ey.status,children:[ev?(0,r.jsx)(u.A,{className:"h-4 w-4 animate-spin"}):(0,r.jsx)(j.A,{className:"h-4 w-4"}),(0,r.jsx)("span",{className:"ml-2",children:"Verify and Resolve"})]}),"completed"===ey.status&&(0,r.jsxs)(d.Button,{variant:"outline",onClick:tc,disabled:eN||0===ey.ticketCount||ey.ticketDeliverySentCount===ey.ticketCount||ey.ticketDeliveryPendingCount>0,children:[eN?(0,r.jsx)(u.A,{className:"h-4 w-4 animate-spin"}):(0,r.jsx)(v.A,{className:"h-4 w-4"}),(0,r.jsx)("span",{className:"ml-2",children:"Send Missing Ticket Email"})]})]})]})]}),(0,r.jsxs)(T.P.div,{"data-admin-card":!0,initial:{opacity:0,y:8}
1,animate:{opacity:1,y:0},transition:{duration:.35,delay:.08},className:(0,F.cn)("rounded-2xl border p-5 space-y-4",$?"bg-white/5 border-white/10":"bg-white border-gray-200"),children:[(0,r.jsxs)("div",{className:"flex items-start gap-3",children:[(0,r.jsx)("div",{className:(0,F.cn)("shrink-0 rounded-xl p-2",$?"bg-cyan-500/10":"bg-cyan-50"),children:(0,r.jsx)(j.A,{className:(0,F.cn)("h-5 w-5",$?"text-cyan-400":"text-cyan-600")})}),(0,r.jsx)("div",{className:"min-w-0",children:(0,r.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,r.jsx)("h2",{className:(0,F.cn)("text-lg font-semibold",$?"text-white":"text-gray-900"),children:"Blockradar Recovery"}),(0,r.jsx)(s.C,{title:"Blockradar Recovery",children:(0,r.jsx)("div",{children:"Paste an order ID or payment reference to load a stablecoin order stuck in pending or cancelled."})})]})})]}),(0,r.jsxs)("div",{className:"flex flex-col sm:flex-row gap-3",children:[(0,r.jsx)(c.p,{value:eF,onChange:e=>ez(e.target.value),placeholder:"Paste order ID, payment reference, or payment-link ID"}),(0,r.jsxs)(d.Button,{onClick:ti,disabled:eO,children:[eO?(0,r.jsx)(u.A,{className:"h-4 w-4 animate-spin"}):(0,r.jsx)(y.A,{className:"h-4 w-4"}),(0,r.jsx)("span",{className:"ml-2",children:"Load Order"})]})]}),eT&&(0,r.jsxs)("div",{"data-admin-card":!0,className:(0,F.cn)("rounded-xl border p-4 space-y-4",$?"bg-white/[0.03] border-white/10":"bg-gray-50 border-gray-200"),children:[(0,r.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-start sm:justify-between gap-3",children:[(0,r.jsxs)("div",{className:"space-y-1",children:[(0,r.jsx)("p",{className:(0,F.cn)("text-sm font-medium",$?"text-white":"text-gray-900"),children:eT.eventTitle||"Untitled Event"}),(0,r.jsxs)("p",{className:(0,F.cn)("text-xs",$?"text-gray-400":"text-gray-600"),children:["Order ",eT._id," for"," ",eT.customerEmail||"unknown customer"]})]}),(0,r.jsxs)("span",{className:(0,F.cn)("inline-flex items-center gap-2 rounded-full px-3 py-1 text-xs font-medium w-fit","completed"===eT.status?$?"bg-emerald-500/20 text-emerald-400":"bg-emerald-100 text-emerald-700":"cancelled"===eT.status?$?"bg-red-500/20 text-red-400":"bg-red-100 text-red-700":$?"bg-amber-500/20 text-amber-400":"bg-amber-100 text-amber-700"),children:["completed"===eT.status?(0,r.jsx)(p.A,{className:"h-3.5 w-3.5"}):(0,r.jsx)(b.A,{className:"h-3.5 w-3.5"}),(0,r.jsx)("span",{className:"capitalize",children:eT.status})]})]}),(0,r.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3 text-sm",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:(0,F.cn)("text-gray-500"),children:"Payment Reference"}),(0,r.jsx)("p",{className:(0,F.cn)($?"text-white":"text-gray-900"),children:eT.paymentReference||"â"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:(0,F.cn)("text-gray-500"),children:"Payment Link ID"}),(0,r.jsx)("p",{className:(0,F.cn)($?"text-white":"text-gray-900"),children:eT.blockradarPaymentLinkId||"â"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:(0,F.cn)("text-gray-500"),children:"Transaction ID"}),(0,r.jsx)("p",{className:(0,F.cn)($?"text-white":"text-gray-900"),children:eT.blockradarTransactionId||"â"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:(0,F.cn)("text-gray-500"),children:"Amount"}),(0,r.jsx)("p",{className:(0,F.cn)($?"text-white":"text-gray-900"),children:new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:2}).format(eT.total)})]})]}),(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,r.jsxs)(d.Button,{onClick:th,disabled:eB||"completed"===eT.status,children:[eB?(0,r.jsx)(u.A,{className:"h-4 w-4 animate-spin"}):(0,r.jsx)(j.A,{className:"h-4 w-4"}),(0,r.jsx)("span",{className:"ml-2",children:"Resolve Order"})]}),"completed"===eT.status&&(0,r.jsx)("p",{className:(0,F.cn)("text-xs",$?"text-gray-400":"text-gray-600"),children:"This order is already completed."})]})]})]})]}),ei&&ei.length>0&&(0,r.jsxs)(T.P.div,{"data-admin-card":!0,initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.35,delay:.1},className:(0,F.cn)("rounded-2xl border p-5 space-y-4",$?"bg-white/5 border-white/10":"bg-white border-gray-200"),children:[(0,r.jsxs)("div",{className:"flex items-start gap-3",children:[(0,r.jsx)("div",{className:(0,F.cn)("rounded-xl p-2",$?"bg-amber-500/10":"bg-amber-50"),children:(0,r.jsx)(b.A,{className:(0,F.cn)("h-5 w-5",$?"text-amber-400":"text-amber-600")})}),(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)("h2",{className:(0,F.cn)("text-lg font-semibold",$?"text-white":"text-gray-900"),children:"Meetumo Credit Review"}),(0,r.jsx)("p",{className:(0,F.cn)("text-sm mt-1",$?"text-gray-400":"text-gray-600"),children:"Overpayments of â¦500 or more are held for manual refund or Meetumo Credit review. Refund transfer fees should be deducted according to the refund terms."})]})]}),(0,r.jsx)("div",{className:"space-y-3",children:ei.map(e=>{var t,a;return(0,r.jsxs)("div",{"data-admin-card":!0,className:(0,F.cn)("rounded-xl border p-4 flex flex-col lg:flex-row lg:items-center lg:justify-between gap-3",$?"bg-white/[0.03] border-white/10":"bg-gray-50 border-gray-200"),children:[(0,r.jsxs)("div",{className:"min-w-0 space-y-1",children:[(0,r.jsxs)("p",{className:(0,F.cn)("text-sm font-medium",$?"text-white":"text-gray-900"),children:[W(e.amount,e.currency)," overpayment"]}),(0,r.jsxs)("p",{className:(0,F.cn)("text-xs",$?"text-gray-400":"text-gray-600"),children:[(null==(t=e.event)?void 0:t.t
1itle)||"Unknown event"," \xb7"," ",e.customerEmail||(null==(a=e.user)?void 0:a.email)||"Unknown user"]}),(0,r.jsxs)("p",{className:(0,F.cn)("text-xs","text-gray-500"),children:["Expected"," ",W(e.expectedPaymentAmount||0,e.currency)," ","\xb7 Paid"," ",W(e.paidPaymentAmount||0,e.currency)]})]}),(0,r.jsxs)(d.Button,{variant:"outline",size:"sm",onClick:()=>tl(e._id),disabled:eE===e._id,className:(0,F.cn)($&&"border-white/20 hover:bg-white/10"),children:[eE===e._id?(0,r.jsx)(u.A,{className:"h-4 w-4 animate-spin"}):(0,r.jsx)(p.A,{className:"h-4 w-4"}),(0,r.jsx)("span",{className:"ml-2",children:"Mark Resolved"})]})]},e._id)})})]}),(0,r.jsxs)(T.P.div,{"data-admin-stat-group":!0,initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.4,delay:.1},className:"grid gap-4 grid-cols-1 sm:grid-cols-2 lg:grid-cols-4",children:[(0,r.jsx)(D.nG,{label:"Total Gross Sales",value:te.totalGrossSales,formatPrice:ts,CurrencyIcon:f.A,color:"blue",isDark:$,delay:0}),(0,r.jsx)(D.nG,{label:"Platform Fees (Revenue)",value:te.totalPlatformFees,formatPrice:ts,CurrencyIcon:N.A,color:"emerald",isDark:$,delay:1}),(0,r.jsx)(D.nG,{label:"Gateway Fees (All Payers)",value:te.totalGatewayFees,formatPrice:ts,CurrencyIcon:w.A,color:"amber",isDark:$,delay:2}),(0,r.jsx)(D.nG,{label:"Net to Organizers",value:te.totalNetToOrganizers,formatPrice:ts,CurrencyIcon:k.A,color:"violet",isDark:$,delay:3})]}),te.meta.truncated&&(0,r.jsxs)("div",{className:"flex items-start gap-3 rounded-xl border border-amber-500/30 bg-amber-500/10 px-4 py-3 text-sm text-amber-500",children:[(0,r.jsx)(b.A,{className:"mt-0.5 h-4 w-4 shrink-0"}),"This range exceeds the finance safety limit. Narrow the date range for complete totals."]}),tp>0&&(0,r.jsxs)("div",{className:"flex items-start gap-3 rounded-xl border border-red-500/30 bg-red-500/10 px-4 py-3 text-sm text-red-400",children:[(0,r.jsx)(b.A,{className:"mt-0.5 h-4 w-4 shrink-0"}),(0,r.jsxs)("span",{children:[tp.toLocaleString()," paid revenue order",1===tp?" is":"s are"," excluded because"," ",1===tp?"its":"their","earnings ledger",1===tp?" is":" entries are"," missing or unresolved. Reconcile these orders before treating the totals as final."]})]}),(0,r.jsxs)(T.P.div,{"data-admin-card":!0,initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.4,delay:.2},className:(0,F.cn)("rounded-2xl border p-4 flex flex-wrap gap-6",$?"bg-white/5 border-white/10":"bg-white border-gray-200"),children:[(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)("div",{className:(0,F.cn)("p-2 rounded-lg",$?"bg-blue-500/20":"bg-blue-100"),children:(0,r.jsx)(A.A,{className:(0,F.cn)("h-5 w-5",$?"text-blue-400":"text-blue-600")})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:(0,F.cn)("text-xs",$?"text-gray-400":"text-gray-500"),children:"Revenue Orders"}),(0,r.jsx)("p",{className:(0,F.cn)("text-lg font-semibold",$?"text-white":"text-gray-900"),children:te.totalOrderCount.toLocaleString()})]})]}),(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)("div",{className:(0,F.cn)("p-2 rounded-lg",$?"bg-emerald-500/20":"bg-emerald-100"),children:(0,r.jsx)(A.A,{className:(0,F.cn)("h-5 w-5",$?"text-emerald-400":"text-emerald-600")})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:(0,F.cn)("text-xs",$?"text-gray-400":"text-gray-500"),children:"Events with Sales"}),(0,r.jsx)("p",{className:(0,F.cn)("text-lg font-semibold",$?"text-white":"text-gray-900"),children:te.totalEventsWithSales})]})]}),(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)("div",{className:(0,F.cn)("p-2 rounded-lg",$?"bg-violet-500/20":"bg-violet-100"),children:(0,r.jsx)(k.A,{className:(0,F.cn)("h-5 w-5",$?"text-violet-400":"text-violet-600")})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:(0,F.cn)("text-xs",$?"text-gray-400":"text-gray-500"),children:"Active Organizers"}),(0,r.jsx)("p",{className:(0,F.cn)("text-lg font-semibold",$?"text-white":"text-gray-900"),children:te.totalOrganizersWithSales})]})]}),te.totalRefunded>0&&(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)("div",{className:(0,F.cn)("p-2 rounded-lg",$?"bg-red-500/20":"bg-red-100"),children:(0,r.jsx)(f.A,{className:(0,F.cn)("h-5 w-5",$?"text-red-400":"text-red-600")})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:(0,F.cn)("text-xs",$?"text-gray-400":"text-gray-500"),children:"Total Refunded"}),(0,r.jsx)("p",{className:(0,F.cn)("text-lg font-semibold",$?"text-red-400":"text-red-600"),children:W(te.totalRefunded,eo)})]})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:(0,F.cn)("mb-4 inline-flex p-1 rounded-xl",$?"bg-white/5":"bg-gray-100"),role:"tablist","aria-label":"Revenue breakdown",children:[(0,r.jsxs)("button",{type:"button",role:"tab","aria-selected":"unresolved"===ex,onClick:()=>eh("unresolved"),className:(0,F.cn)("cursor-pointer rounded-lg px-4 py-2 text-sm font-medium transition-colors","unresolved"===ex?$?"bg-[#78fcd6] text-[#0d0f0e]":"bg-white shadow-sm text-gray-900":$?"text-gray-400 hover:text-white":"text-gray-600 hover:text-gray-900"),children:["Unresolved",tb>
10&&(0,r.jsx)("span",{className:"ml-2 rounded-full bg-red-500/20 px-2 py-0.5 text-xs text-red-400",children:tb})]}),(0,r.jsx)("button",{type:"button",role:"tab","aria-selected":"events"===ex,onClick:()=>eh("events"),className:(0,F.cn)("cursor-pointer rounded-lg px-4 py-2 text-sm font-medium transition-colors","events"===ex?$?"bg-[#78fcd6] text-[#0d0f0e]":"bg-white shadow-sm text-gray-900":$?"text-gray-400 hover:text-white":"text-gray-600 hover:text-gray-900"),children:"By Event"}),(0,r.jsx)("button",{type:"button",role:"tab","aria-selected":"organizers"===ex,onClick:()=>eh("organizers"),className:(0,F.cn)("cursor-pointer rounded-lg px-4 py-2 text-sm font-medium transition-colors","organizers"===ex?$?"bg-[#78fcd6] text-[#0d0f0e]":"bg-white shadow-sm text-gray-900":$?"text-gray-400 hover:text-white":"text-gray-600 hover:text-gray-900"),children:"By Organizer"}),(0,r.jsx)("button",{type:"button",role:"tab","aria-selected":"monthly"===ex,onClick:()=>eh("monthly"),className:(0,F.cn)("cursor-pointer rounded-lg px-4 py-2 text-sm font-medium transition-colors","monthly"===ex?$?"bg-[#78fcd6] text-[#0d0f0e]":"bg-white shadow-sm text-gray-900":$?"text-gray-400 hover:text-white":"text-gray-600 hover:text-gray-900"),children:"Monthly Trend"})]}),(0,r.jsxs)("div",{"data-admin-card":!0,className:(0,F.cn)("min-h-[28rem] rounded-2xl border p-6",$?"bg-white/5 border-white/10":"bg-white border-gray-200"),children:["unresolved"===ex&&(0,r.jsxs)("div",{className:"space-y-8",children:[(0,r.jsxs)("section",{className:"space-y-4",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:(0,F.cn)("text-lg font-semibold",$?"text-white":"text-gray-900"),children:"Paystack payment recovery"}),(0,r.jsx)(s.C,{title:"Payment recovery",children:"Stale pending or timeout-cancelled orders appear here automatically. The five-minute safety job verifies them directly with Paystack."})]}),(0,r.jsxs)(d.Button,{onClick:to,disabled:ek,className:"shrink-0",children:[ek?(0,r.jsx)(u.A,{className:"h-4 w-4 animate-spin"}):(0,r.jsx)(j.A,{className:"h-4 w-4"}),(0,r.jsx)("span",{className:"ml-2",children:"Reconcile now"})]})]}),void 0===et?(0,r.jsx)("div",{className:"flex justify-center py-8",children:(0,r.jsx)(u.A,{className:"h-6 w-6 animate-spin text-gray-400"})}):0===et.length?(0,r.jsxs)("div",{className:"flex items-center gap-3 rounded-xl border border-emerald-500/20 bg-emerald-500/10 px-4 py-4 text-sm text-emerald-500",children:[(0,r.jsx)(p.A,{className:"h-5 w-5 shrink-0"}),"No Paystack orders currently need reconciliation."]}):(0,r.jsx)("div",{"data-admin-card":!0,className:"overflow-x-auto rounded-xl border border-white/10",children:(0,r.jsxs)(o.XI,{"data-admin-table":!0,children:[(0,r.jsx)(o.A0,{children:(0,r.jsxs)(o.Hj,{className:(0,F.cn)($&&"border-white/10"),children:[(0,r.jsx)(o.nd,{children:"Event / customer"}),(0,r.jsx)(o.nd,{children:"Amount"}),(0,r.jsx)(o.nd,{children:"Order state"}),(0,r.jsx)(o.nd,{children:"Reconciliation"}),(0,r.jsx)(o.nd,{children:"Last checked"}),(0,r.jsx)(o.nd,{className:"text-right",children:"Action"})]})}),(0,r.jsx)(o.BF,{children:et.map(e=>(0,r.jsxs)(o.Hj,{className:(0,F.cn)($&&"border-white/10"),children:[(0,r.jsxs)(o.nA,{children:[(0,r.jsx)("p",{className:(0,F.cn)("font-medium",$?"text-white":"text-gray-900"),children:e.eventTitle}),(0,r.jsx)("p",{className:"text-xs text-gray-500",children:e.customerEmail}),(0,r.jsx)("p",{className:"mt-1 max-w-64 truncate font-mono text-[11px] text-gray-500",children:e.paymentReference})]}),(0,r.jsx)(o.nA,{children:Q(e.amount,e.currency)}),(0,r.jsx)(o.nA,{className:"capitalize",children:e.orderStatus}),(0,r.jsxs)(o.nA,{children:[(0,r.jsx)("span",{className:(0,F.cn)("inline-flex rounded-full px-2.5 py-1 text-xs font-medium capitalize","needs_attention"===e.reconciliationStatus?"bg-red-500/15 text-red-400":"checking"===e.reconciliationStatus?"bg-blue-500/15 text-blue-400":"bg-amber-500/15 text-amber-400"),children:e.reconciliationStatus.replaceAll("_"," ")}),e.error&&(0,r.jsx)("p",{className:"mt-1 max-w-64 text-xs text-gray-500",children:e.error})]}),(0,r.jsx)(o.nA,{className:"text-sm text-gray-500",children:e.lastCheckedAt?(0,L.GP)(new Date(e.lastCheckedAt),"MMM d, HH:mm"):"Not checked"}),(0,r.jsx)(o.nA,{className:"text-right",children:(0,r.jsx)(d.Button,{size:"sm",variant:"outline",disabled:eP===e.orderId,onClick:()=>tm(e.orderId),children:eP===e.orderId?(0,r.jsx)(u.A,{className:"h-4 w-4 animate-spin"}):"Verify"})})]},e.orderId))})]})})]}),(0,r.jsxs)("section",{"data-admin-divider":!0,className:"space-y-4 border-t border-white/10 pt-8",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:(0,F.cn)("text-lg font-semibold",$?"text-white":"text-gray-900"),children:"Earnings ledger coverage"}),(0,r.jsx)(s.C,{title:"Revenue coverage",children:"Exact paid orders excluded from financial totals. Missing rows can be rebuilt safely; historical refunded rows stay review-only so old refund state is never overwritten."})]}),void 0===ea?(0,r.jsx)("div",{className:"flex justify-center py-8",children:(0,r.jsx)(u.A,{className:"h-6 w-6 animate-spin text-gray-400"})}):0===ea.length?(0,r.jsxs)("div",{className:"flex items-center gap-3 rounded-xl border border-emerald-500/20 bg-emerald-500/10 px-4 py-4 text-sm text-emerald-500",children:[(0,r.jsx)(p.A,{className:"h-5 w-5 shrink-0"}),"Every paid order has a recognized earnings ledger entry."]}):(0,r.jsx)("div",{"data-admin-card":!0,className:"overflow-x-auto rounded-xl border border-white/10",children:(0,r.jsxs)(o.XI,{"data-admin-table":!0,children:[(0,r.jsx)(o.A0,{children:(0,r.jsxs)(o.Hj,{className:(0,F.cn)($&&"border-white/10"),children:[(0,r.jsx)(o.nd,{children:"Event / customer"}),(0,r.jsx)(o.nd,{children:"Amount"}),(0,r.jsx)(o.nd,{children:"Order"}),(0,r.jsx)(o.nd,{children:"Issue"}),(0,r.jsx)(o.nd,{children:"Completed"}),(0,r.jsx)(o.nd,{className:"text-right",children:"Action"})]})}),(0,r.jsx)(o.BF,{children:ea.map(e=>{var t;let a="missing_ledger"===e.reason&&"completed"===e.orderStatus;return(0,r.jsxs)(o.Hj,{className:(0,F.cn)($&&"border-white/10"),children:[(0,r.jsxs)(o.nA,{children:[(0,r.jsx)("p",{className:(0,F.cn)("font-medium",$?"text-white":"text-gray-900"),children:e.eventTitle}),(0,r.jsx)("p",{className:"text-xs text-gray-500",children:e.customerEmail})]}),(0,r.jsx)(o.nA,{children:Q(e.total,e.currency)}),(0,r.jsx)(o.nA,{className:"capitalize",children:e.orderStatus}),(0,r.jsx)(o.nA,{children:(0,r.jsx)("span",{className:"inline-flex rounded-full bg-red-500/15 px-2.5 py-1 text-xs font-medium text-red-400",children:"missing_ledger"===e.reason?"Missing ledger":"Unresolved ".concat(null!=(t=e.earningStatus)?t:"ledger")})}),(0,r.jsx)(o.nA,{className:"text-sm text-gray-500",children:(0,L.GP)(new Date(e.completedAt),"MMM d, yyyy")}),(0,r.jsx)(o.nA,{className:"text-right",children:a?(0,r.jsx)(d.Button,{size:"sm",variant:"outline",disabled:eC===e.orderId,onClick:()=>tx(e.orderId),children:eC===e.orderId?(0,r.jsx)(u.A,{className:"h-4 w-4 animate-spin"}):"Rebuild"}):(0,r.jsx)("span",{className:"text-xs text-amber-400",children:"Manual refund review"})})]},e.orderId)})})]})})]})]}),"events"===ex&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4 mb-4",children:[(0,r.jsx)("h3",{className:(0,F.cn)("text-lg font-semibold",$?"text-white":"text-gray-900"),children:"Revenue by Event"}),(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsxs)("div",{className:"relative flex-1 sm:flex-none",children:[(0,r.jsx)(y.A,{className:(0,F.cn)("absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4",$?"text-gray-500":"text-gray-400")}),(0,r.jsx)(c.p,{placeholder:"Search events or organizers...",value:eV,onChange:e=>eq(e.target.value),className:(0,F.cn)("pl-9 h-9 w-full sm:w-64",$?"bg-white/5 border-white/10 text-white":"bg-white border-gray-200")})]}),(0,r.jsxs)(m.l6,{value:eU.toString(),onValueChange:e=>{eL(Number(e)),eH(1)},children:[(0,r.jsx)(m.bq,{className:(0,F.cn)("w-20 h-9",$?"bg-white/5 border-white/10 text-white":"bg-white border-gray-200"),children:(0,r.jsx)(m.yv,{})}),(0,r.jsx)(m.gC,{className:$?"bg-[#1a1d1c] border-white/10":"",children:[10,20,50,100].map(e=>(0,r.jsx)(m.eb,{value:e.toString(),children:e},e))})]})]})]}),tt?0===tt.items.length?(0,r.jsxs)("div",{className:"text-center py-12",children:[(0,r.jsx)(A.A,{className:(0,F.cn)("h-12 w-12 mx-auto mb-4",$?"text-gray-500":"text-gray-400")}),(0,r.jsx)("p",{className:(0,F.cn)("text-sm",$?"text-gray-400":"text-gray-600"),children:e$?"No events match your search.":"No event revenue data for this period."})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"overflow-x-auto",children:(0,r.jsxs)(o.XI,{"data-admin-table":!0,children:[(0,r.jsx)(o.A0,{children:(0,r.jsxs)(o.Hj,{className:(0,F.cn)($&&"border-white/10"),children:[(0,r.jsx)(ty,{column:"eventTitle",label:"Event",currentSort:eX,currentOrder:eQ,onToggle:tg}),(0,r.jsx)(ty,{column:"organizerName",label:"Organizer",currentSort:eX,currentOrder:eQ,onToggle:tg}),(0,r.jsx)(ty,{column:"eventDate",label:"Date",currentSort:eX,currentOrder:eQ,onToggle:tg}),(0,r.jsx)(ty,{column:"orderCount",label:"Revenue Orders",currentSort:eX,currentOrder:eQ,onToggle:tg,className:"text-right"}),(0,r.jsx)(ty,{column:"grossSales",label:"Gross Sales",currentSort:eX,currentOrder:eQ,onToggle:tg,className:"text-right"}),(0,r.jsx)(ty,{column:"platformFees",label:"Platform Fees",currentSort:eX,currentOrder:eQ,onToggle:tg,className:"text-right"}),(0,r.jsx)(o.nd,{className:(0,F.cn)("text-right",$&&"text-gray-400"),children:"Gateway Fees (All Payers)"}),(0,r.jsx)(o.nd,{className:(0,F.cn)("text-right",$&&"text-gray-400"),children:"Net to Organizer"})]})}),(0,r.jsx)(o.BF,{children:tt.items.map(e=>(0,r.jsxs)(o.Hj,{className:(0,F.cn)($&&"border-white/10"),children:[(0,r.jsx)(o.nA,{className:(0,F.cn)("font-medium max-w-[200px] truncate",$?"text-white":"text-gray-900"),children:e.eventTitle}),(0,r.jsx)(o.nA,{className:(0,F.cn)($?"text-gray-300":"text-gray-600"),children:e.organizerName}),(0,r.jsx)(o.nA,{className:(0,F.cn)($?"text-gray-300":"text-gray-600"),children:e.eventDate?(0,L.GP)(new Date(e.eventDate),"MMM d, yyyy"):"-"}),(0,r.jsx)(o.nA,{className:(0,F.cn)("text-right",$?"text-gray-300":"text-gray-900"),children:e.orderCount}),(0,r.jsx)(o.nA,{className:(0,F.cn)("text-right",$?"text-gray-300":"text-gray-900"),children:W(e.grossSales,eo)}),(0,r.jsx)(o.nA,{className:(0,F.cn)("text-right font-medium",$?"text-emerald-400":"text-emerald-600"),children:W(e.platformFees,eo)}),(0,r.jsx)(o.nA,{className:(0,F.cn)("text-right",$?"text-gray-300":"text-gray-900"),children:W(e.gatewayFees,eo)}),(0,r.jsx)(o.nA,{className:(0,F.cn)("text-right",$?"text-gray-300":"text-gray-900"),children:W(e.netToOrganizer,eo)})]},e.eventId))})]})}),tt.pagination.totalPages>1&&(0,r.jsxs)("div",{"data-admin-divider":!0,className:(0,F.cn)("flex items-center justify-between pt-4 border-t mt
1-4",$?"border-white/10":"border-gray-200"),children:[(0,r.jsxs)("p",{className:(0,F.cn)("text-sm",$?"text-gray-400":"text-gray-600"),children:["Showing"," ",(tt.pagination.page-1)*tt.pagination.pageSize+1," ","-"," ",Math.min(tt.pagination.page*tt.pagination.pageSize,tt.pagination.totalCount)," ","of ",tt.pagination.totalCount]}),(0,r.jsxs)("div",{className:"flex items-center gap-1",children:[(0,r.jsx)(d.Button,{variant:"outline",size:"sm",onClick:()=>eH(1),disabled:!tt.pagination.hasPrevPage,className:(0,F.cn)("h-8 w-8 p-0",$&&"border-white/20 hover:bg-white/10 disabled:opacity-30"),children:(0,r.jsx)(P.A,{className:"w-4 h-4"})}),(0,r.jsx)(d.Button,{variant:"outline",size:"sm",onClick:()=>eH(eM-1),disabled:!tt.pagination.hasPrevPage,className:(0,F.cn)("h-8 w-8 p-0",$&&"border-white/20 hover:bg-white/10 disabled:opacity-30"),children:(0,r.jsx)(R.A,{className:"w-4 h-4"})}),(0,r.jsxs)("span",{className:(0,F.cn)("px-3 text-sm font-medium",$?"text-white":"text-gray-900"),children:[tt.pagination.page," /"," ",tt.pagination.totalPages]}),(0,r.jsx)(d.Button,{variant:"outline",size:"sm",onClick:()=>eH(eM+1),disabled:!tt.pagination.hasNextPage,className:(0,F.cn)("h-8 w-8 p-0",$&&"border-white/20 hover:bg-white/10 disabled:opacity-30"),children:(0,r.jsx)(C.A,{className:"w-4 h-4"})}),(0,r.jsx)(d.Button,{variant:"outline",size:"sm",onClick:()=>eH(tt.pagination.totalPages),disabled:!tt.pagination.hasNextPage,className:(0,F.cn)("h-8 w-8 p-0",$&&"border-white/20 hover:bg-white/10 disabled:opacity-30"),children:(0,r.jsx)(S.A,{className:"w-4 h-4"})})]})]})]}):(0,r.jsx)("div",{className:"flex items-center justify-center py-12",children:(0,r.jsx)("div",{"data-admin-card":!0,className:(0,F.cn)("h-8 w-8 animate-spin rounded-full border-2 border-t-transparent",$?"border-white/20":"border-gray-300")})})]}),"organizers"===ex&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4 mb-4",children:[(0,r.jsx)("h3",{className:(0,F.cn)("text-lg font-semibold",$?"text-white":"text-gray-900"),children:"Revenue by Organizer"}),(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsxs)("div",{className:"relative flex-1 sm:flex-none",children:[(0,r.jsx)(y.A,{className:(0,F.cn)("absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4",$?"text-gray-500":"text-gray-400")}),(0,r.jsx)(c.p,{placeholder:"Search organizers...",value:e1,onChange:e=>e4(e.target.value),className:(0,F.cn)("pl-9 h-9 w-full sm:w-64",$?"bg-white/5 border-white/10 text-white":"bg-white border-gray-200")})]}),(0,r.jsxs)(m.l6,{value:eK.toString(),onValueChange:e=>{e0(Number(e)),eJ(1)},children:[(0,r.jsx)(m.bq,{className:(0,F.cn)("w-20 h-9",$?"bg-white/5 border-white/10 text-white":"bg-white border-gray-200"),children:(0,r.jsx)(m.yv,{})}),(0,r.jsx)(m.gC,{className:$?"bg-[#1a1d1c] border-white/10":"",children:[10,20,50,100].map(e=>(0,r.jsx)(m.eb,{value:e.toString(),children:e},e))})]})]})]}),ta?0===ta.items.length?(0,r.jsxs)("div",{className:"text-center py-12",children:[(0,r.jsx)(k.A,{className:(0,F.cn)("h-12 w-12 mx-auto mb-4",$?"text-gray-500":"text-gray-400")}),(0,r.jsx)("p",{className:(0,F.cn)("text-sm",$?"text-gray-400":"text-gray-600"),children:e6?"No organizers match your search.":"No organizer revenue data for this period."})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"overflow-x-auto",children:(0,r.jsxs)(o.XI,{"data-admin-table":!0,children:[(0,r.jsx)(o.A0,{children:(0,r.jsxs)(o.Hj,{className:(0,F.cn)($&&"border-white/10"),children:[(0,r.jsx)(ty,{column:"organizerName",label:"Organizer",currentSort:e2,currentOrder:e3,onToggle:tu}),(0,r.jsx)(o.nd,{className:(0,F.cn)($&&"text-gray-400"),children:"Email"}),(0,r.jsx)(ty,{column:"eventCount",label:"Events",currentSort:e2,currentOrder:e3,onToggle:tu,className:"text-right"}),(0,r.jsx)(ty,{column:"orderCount",label:"Revenue Orders",currentSort:e2,currentOrder:e3,onToggle:tu,className:"text-right"}),(0,r.jsx)(ty,{column:"totalGross",label:"Gross Sales",currentSort:e2,currentOrder:e3,onToggle:tu,className:"text-right"}),(0,r.jsx)(ty,{column:"totalPlatformFees",label:"Platform Fees",currentSort:e2,currentOrder:e3,onToggle:tu,className:"text-right"}),(0,r.jsx)(o.nd,{className:(0,F.cn)("text-right",$&&"text-gray-400"),children:"Gateway Fees (All Payers)"}),(0,r.jsx)(o.nd,{className:(0,F.cn)("text-right",$&&"text-gray-400"),children:"Net to Organizer"})]})}),(0,r.jsx)(o.BF,{children:ta.items.map(e=>(0,r.jsxs)(o.Hj,{className:(0,F.cn)($&&"border-white/10"),children:[(0,r.jsx)(o.nA,{className:(0,F.cn)("font-medium",$?"text-white":"text-gray-900"),children:e.organizerName}),(0,r.jsx)(o.nA,{className:(0,F.cn)("text-sm",$?"text-gray-400":"text-gray-500"),children:e.organizerEmail}),(0,r.jsx)(o.nA,{className:(0,F.cn)("text-right",$?"text-gray-300":"text-gray-900"),children:e.eventCount}),(0,r.jsx)(o.nA,{className:(0,F.cn)("text-right",$?"text-gray-300":"text-gray-900"),children:e.orderCount}),(0,r.jsx)(o.nA,{className:(0,F.cn)("text-right",$?"text-gray-300":"text-gray-900"),children:W(e.totalGross,eo)}),(0,r.jsx)(o.nA,{className:(0,F.cn)("text-right font-medium",$?"text-emerald-400":"text-emerald-600"),children:W(e.totalPlatformFees,eo)}),(0,r.jsx)(o.nA,{className:(0,F.cn)("text-right",$?"text-gray-300":"text-gray-900"),children:W(e.totalGatewayFees,eo)}),(0,r.jsx)(o.nA,{className:(0,F.cn)("text-right",$?"text-gray-300":"text-gray-900"),children:W(e.totalNet,eo)})]},e.organizerId))})]})}),ta.pagination.totalPages>1&&(0,r.jsxs)("div",{"data-admin-divider":!0,className:(0,F.cn)("flex items-center justify-between pt-4 border-t mt
1-4",$?"border-white/10":"border-gray-200"),children:[(0,r.jsxs)("p",{className:(0,F.cn)("text-sm",$?"text-gray-400":"text-gray-600"),children:["Showing"," ",(ta.pagination.page-1)*ta.pagination.pageSize+1," ","-"," ",Math.min(ta.pagination.page*ta.pagination.pageSize,ta.pagination.totalCount)," ","of ",ta.pagination.totalCount]}),(0,r.jsxs)("div",{className:"flex items-center gap-1",children:[(0,r.jsx)(d.Button,{variant:"outline",size:"sm",onClick:()=>eJ(1),disabled:!ta.pagination.hasPrevPage,className:(0,F.cn)("h-8 w-8 p-0",$&&"border-white/20 hover:bg-white/10 disabled:opacity-30"),children:(0,r.jsx)(P.A,{className:"w-4 h-4"})}),(0,r.jsx)(d.Button,{variant:"outline",size:"sm",onClick:()=>eJ(eZ-1),disabled:!ta.pagination.hasPrevPage,className:(0,F.cn)("h-8 w-8 p-0",$&&"border-white/20 hover:bg-white/10 disabled:opacity-30"),children:(0,r.jsx)(R.A,{className:"w-4 h-4"})}),(0,r.jsxs)("span",{className:(0,F.cn)("px-3 text-sm font-medium",$?"text-white":"text-gray-900"),children:[ta.pagination.page," /"," ",ta.pagination.totalPages]}),(0,r.jsx)(d.Button,{variant:"outline",size:"sm",onClick:()=>eJ(eZ+1),disabled:!ta.pagination.hasNextPage,className:(0,F.cn)("h-8 w-8 p-0",$&&"border-white/20 hover:bg-white/10 disabled:opacity-30"),children:(0,r.jsx)(C.A,{className:"w-4 h-4"})}),(0,r.jsx)(d.Button,{variant:"outline",size:"sm",onClick:()=>eJ(ta.pagination.totalPages),disabled:!ta.pagination.hasNextPage,className:(0,F.cn)("h-8 w-8 p-0",$&&"border-white/20 hover:bg-white/10 disabled:opacity-30"),children:(0,r.jsx)(S.A,{className:"w-4 h-4"})})]})]})]}):(0,r.jsx)("div",{className:"flex items-center justify-center py-12",children:(0,r.jsx)("div",{"data-admin-card":!0,className:(0,F.cn)("h-8 w-8 animate-spin rounded-full border-2 border-t-transparent",$?"border-white/20":"border-gray-300")})})]}),"monthly"===ex&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h3",{className:(0,F.cn)("text-lg font-semibold mb-4",$?"text-white":"text-gray-900"),children:"Monthly Revenue Trend"}),tr?0===tr.items.length?(0,r.jsxs)("div",{className:"text-center py-12",children:[(0,r.jsx)(N.A,{className:(0,F.cn)("h-12 w-12 mx-auto mb-4",$?"text-gray-500":"text-gray-400")}),(0,r.jsx)("p",{className:(0,F.cn)("text-sm",$?"text-gray-400":"text-gray-600"),children:"No monthly revenue data for this period."})]}):(0,r.jsx)("div",{className:"overflow-x-auto",children:(0,r.jsxs)(o.XI,{"data-admin-table":!0,children:[(0,r.jsx)(o.A0,{children:(0,r.jsxs)(o.Hj,{className:(0,F.cn)($&&"border-white/10"),children:[(0,r.jsx)(o.nd,{className:(0,F.cn)($&&"text-gray-400"),children:"Month"}),(0,r.jsx)(o.nd,{className:(0,F.cn)("text-right",$&&"text-gray-400"),children:"Orders"}),(0,r.jsx)(o.nd,{className:(0,F.cn)("text-right",$&&"text-gray-400"),children:"Gross Sales"}),(0,r.jsx)(o.nd,{className:(0,F.cn)("text-right",$&&"text-gray-400"),children:"Platform Fees"}),(0,r.jsx)(o.nd,{className:(0,F.cn)("text-right",$&&"text-gray-400"),children:"Gateway Fees (All Payers)"}),(0,r.jsx)(o.nd,{className:(0,F.cn)("text-right",$&&"text-gray-400"),children:"Net to Organizers"})]})}),(0,r.jsx)(o.BF,{children:tr.items.map(e=>(0,r.jsxs)(o.Hj,{className:(0,F.cn)($&&"border-white/10"),children:[(0,r.jsx)(o.nA,{className:(0,F.cn)("font-medium",$?"text-white":"text-gray-900"),children:(0,L.GP)(new Date(e.month+"-01"),"MMMM yyyy")}),(0,r.jsx)(o.nA,{className:(0,F.cn)("text-right",$?"text-gray-300":"text-gray-900"),children:e.orderCount}),(0,r.jsx)(o.nA,{className:(0,F.cn)("text-right",$?"text-gray-300":"text-gray-900"),children:W(e.grossSales,eo)}),(0,r.jsx)(o.nA,{className:(0,F.cn)("text-right font-medium",$?"text-emerald-400":"text-emerald-600"),children:W(e.platformFees,eo)}),(0,r.jsx)(o.nA,{className:(0,F.cn)("text-right",$?"text-amber-400":"text-amber-600"),children:W(e.gatewayFees,eo)}),(0,r.jsx)(o.nA,{className:(0,F.cn)("text-right",$?"text-gray-300":"text-gray-900"),children:W(e.netToOrganizers,eo)})]},e.month))})]})}):(0,r.jsx)("div",{className:"flex items-center justify-center py-12",children:(0,r.jsx)("div",{"data-admin-card":!0,className:(0,F.cn)("h-8 w-8 animate-spin rounded-full border-2 border-t-transparent",$?"border-white/20":"border-gray-300")})})]})]})]})]})}},26333:(e,t,a)=>{a.d(t,{AM:()=>l,Wv:()=>d,hl:()=>c});var r=a(95155),s=a(12115),n=a(31138),i=a(64269);let l=n.bL,d=n.l9;n.Mz;
1let c=s.forwardRef((e,t)=>{let{className:a,align:s="center",sideOffset:l=4,...d}=e;return(0,r.jsx)(n.ZL,{children:(0,r.jsx)(n.UC,{ref:t,align:s,sideOffset:l,className:(0,i.cn)("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]",a),...d})})});c.displayName=n.UC.displayName},32450:(e,t,a)=>{a.d(t,{FH:()=>s});var r=a(29349);let s=r.dp;(0,r.Op)()},56167:(e,t,a)=>{a.d(t,{d:()=>o});var r=a(95155),s=a(52619),n=a.n(s),i=a(35626),l=a(28727),d=a(64269),c=a(92325);function o(e){let{href:t="/dashboard/admin",label:a="Back to Platform Admin",className:s}=e,{theme:o}=(0,l.D)();return(0,c.L)()?null:(0,r.jsxs)(n(),{href:t,className:(0,d.cn)("mb-4 inline-flex items-center gap-2 text-sm font-medium transition-colors","dark"===o?"text-gray-400 hover:text-white":"text-gray-600 hover:text-gray-900",s),children:[(0,r.jsx)(i.A,{className:"h-4 w-4"}),a]})}},65142:(e,t,a)=>{a.d(t,{p:()=>l});var r=a(95155),s=a(12115),n=a(64269),i=a(28727);let l=s.forwardRef((e,t)=>{let{className:a,type:s,...l}=e,{theme:d}=(0,i.D)();return(0,r.jsx)("input",{type:s,className:(0,n.cn)("focus-ring-managed flex h-11 w-full rounded-xl border px-4 py-2 text-base sm:text-sm transition-all duration-200 backdrop-blur-sm","focus:outline-none focus-visible:outline-none focus:ring-0 disabled:cursor-not-allowed disabled:opacity-50","dark"===d?"border-white/20 bg-white/5 text-white placeholder:text-gray-500 focus:border-[color:var(--focus-border)]":"border-gray-300 bg-white text-gray-900 placeholder:text-gray-400 focus:border-[color:var(--focus-border)]",a),ref:t,...l})});l.displayName="Input"},80155:(e,t,a)=>{a.d(t,{d:()=>s});var r=a(12115);function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300,[a,s]=(0,r.useState)(e);return(0,r.useEffect)(()=>{let a=setTimeout(()=>{s(e)},t);return()=>{clearTimeout(a)}},[e,t]),a}},87270:(e,t,a)=>{a.d(t,{A0:()=>l,BF:()=>d,Hj:()=>c,XI:()=>i,nA:()=>m,nd:()=>o});var r=a(95155),s=a(12115),n=a(64269);let i=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("div",{className:"relative w-full overflow-auto",children:(0,r.jsx)("table",{ref:t,className:(0,n.cn)("w-full caption-bottom text-sm",a),...s})})});i.displayName="Table";let l=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("thead",{ref:t,className:(0,n.cn)("[&_tr]:border-b",a),...s})});l.displayName="TableHeader";let d=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("tbody",{ref:t,className:(0,n.cn)("[&_tr:last-child]:border-0",a),...s})});d.displayName="TableBody",s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("tfoot",{ref:t,className:(0,n.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",a),...s})}).displayName="TableFooter";let c=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("tr",{ref:t,className:(0,n.cn)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",a),...s})});c.displayName="TableRow";let o=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("th",{ref:t,className:(0,n.cn)("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...s})});o.displayName="TableHead";let m=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("td",{ref:t,className:(0,n.cn)("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...s})});m.displayName="TableCell",s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("caption",{ref:t,className:(0,n.cn)("mt-4 text-sm text-muted-foreground",a),...s})}).displayName="TableCaption"},93194:(e,t,a)=>{a.d(t,{C:()=>i});var r=a(95155);a(12115);var s=a(23327),n=a(26333);function i(e){let{title:t,children:a}=e;return(0,r.jsxs)(n.AM,{children:[(0,r.jsx)(n.Wv,{asChild:!0,children:(0,r.jsx)("button",{type:"button","aria-label":"About ".concat(t),className:"inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-full text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring",children:(0,r.jsx)(s.A,{className:"h-4 w-4","aria-hidden":"true"})})}),(0,r.jsxs)(n.hl,{"aria-label":"About ".concat(t),align:"start",sideOffset:8,className:"admin-info-card max-h-[70vh] w-80 max-w-[calc(100vw-2rem)] overflow-y-auto rounded-2xl border-0 p-5",children:[(0,r.jsx)("h2",{className:"mb-2 text-sm font-semibold text-foreground",children:t}),(0,r.jsx)("div",{className:"space-y-2 text-sm leading-relaxed text-muted-foreground",children:a})]})]})}a(59544)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.