1import{a as ae,aM as de,r as L,aE as J,j as e,aQ as H,G as oe,I as me,J as V,U as Y,y as W,bf as X,K as E,C as n,b as g,c as y,aS as P,d as r,L as v,a0 as $,a1 as D,a2 as O,a3 as M,a4 as u,N as Q,B as b,aT as Z,aU as ee,aV as R,aW as m,aX as se,aY as x,e as q,w as te,Q as ie,_ as U,Y as ne,a7 as B,b1 as xe,b2 as ue,b3 as he,b4 as pe,b5 as je,b7 as ge,aq as ye}from"./index-DGo-vssZ.js";import{r as N}from"./vendor-Qgthw7N1.js";import{B as z}from"./brain-B45HfaeR.js";import{S as fe,P as ve}from"./save-vm4SLOwz.js";function Te(){const{toast:h}=ae(),c=de(),[d,C]=N.useState({commissionType:"percentage",commissionValue:"10.00",applyTo:"first_payment"}),[w,A]=N.useState(null),[l,o]=N.useState({type:"percentage",value:"",expiration:""}),[K,p]=N.useState(!1),{data:S,isLoading:G}=L({queryKey:["/api/super-admin/affiliate-settings"],refetchInterval:3e4}),{data:t,isLoading:F}=L({queryKey:["/api/super-admin/affiliates"],refetchInterval:3e4}),{data:T,isLoading:_}=L({queryKey:["/api/super-admin/commission-audit-logs"],refetchInterval:3e4}),k=J({mutationFn:async s=>{const i=await fetch("/api/super-admin/affiliate-settings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)});if(!i.ok)throw new Error("Failed to update settings");return i.json()},onSuccess:()=>{h({title:"Success",description:"Global commission settings updated successfully"}),c.invalidateQueries({queryKey:["/api/super-admin/affiliate-settings"]}),c.invalidateQueries({queryKey:["/api/super-admin/commission-audit-logs"]})},onError:()=>{h({title:"Error",description:"Failed to update settings",variant:"destructive"})}}),a=J({mutationFn:async({id:s,data:i})=>{const I=await fetch(`/api/super-admin/affiliates/${s}/commission`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});if(!I.ok)throw new Error("Failed to update custom commission");return I.json()},onSuccess:()=>{h({title:"Success",description:"Custom commission updated successfully"}),c.invalidateQueries({queryKey:["/api/super-admin/affiliates"]}),c.invalidateQueries({queryKey:["/api/super-admin/commission-audit-logs"]}),p(!1),A(null)},onError:()=>{h({title:"Error",description:"Failed to update custom commission",variant:"destructive"})}});N.useEffect(()=>{S&&C(S)},[S]);const f=()=>{k.mutate(d)},j=s=>{A(s),o({type:s.customCommissionType||"percentage",value:s.customCommissionValue||"",expiration:s.customCommissionExpiration||""}),p(!0)},re=()=>{w&&a.mutate({id:w.id,data:{commissionType:l.type,commissionValue:l.value||null,expirationDate:l.expiration||null}})},le=(s,i)=>{if(s.customCommissionType&&s.customCommissionValue){const ce=s.customCommissionType==="percentage"?`${s.customCommissionValue}%`:`$${s.customCommissionValue}`;return e.jsxs("div",{children:[e.jsxs(q,{variant:"secondary",className:"bg-blue-100 text-blue-800",children:["Custom: ",ce]}),s.customCommissionExpiration&&e.jsxs("div",{className:"text-xs text-muted-foreground mt-1",children:["Expires: ",B(new Date(s.customCommissionExpiration),"MMM dd, yyyy")]})]})}const I=(i==null?void 0:i.commissionType)==="percentage"?`${i.commissionValue}%`:`$${i.commissionValue}`;return e.jsxs(q,{variant:"outline",className:"text-muted-foreground",children:["Default: ",I]})};return G||F?e.jsx("div",{className:"p-6",children:"Loading affiliate settings..."}):e.jsxs("div",{className:"container mx-auto p-6 space-y-6",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx(H,{className:"h-8 w-8 text-primary"}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-3xl font-bold",children:"Affiliate Program Settings"}),e.jsx("p",{className:"text-muted-foreground",children:"Configure commission rates and manage affiliate-specific settings"})]})]}),e.jsxs(oe,{defaultValue:"global",className:"space-y-6",children:[e.jsxs(me,{className:"grid w-full grid-cols-5",children:[e.jsxs(V,{value:"global",className:"flex items-center gap-2",children:[e.jsx(H,{className:"h-4 w-4"}),"Global Settings"]}),e.jsxs(V,{value:"affiliates",className:"flex items-center gap-2",children:[e.jsx(Y,{className:"h-4 w-4"}),"Affiliate Management"]}),e.jsxs(V,{value:"earnings",className:"flex items-center gap-2",children:[e.jsx(W,{className:"h-4 w-4"}),"Earnings Overview"]}),e.jsxs(V,{value:"ai-insights",className:"flex items-center gap-2",children:[e.jsx(z,{className:"h-4 w-4"}),"AI Insights"]}),e.jsxs(V,{value:"audit",className:"flex items-center gap-2",children:[e.jsx(X,{className:"h-4 w-4"}),"Audit Log"]})]}),e.jsx(E,{value:"global",children:e.jsxs(n,{children:[e.jsxs(g,{children:[e.jsxs(y,{className:"flex items-center gap-2",children:[e.jsx(H,{className:"h-5 w-5"}),"Global Commission Settings"]}),e.jsx(P,{children:"Set the default commission structure for all affiliates. Individual affiliates can have custom rates."})]}),e.jsxs(r,{className:"space-y-6",children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(v,{htmlFor:"commissionType",children:"Commission Type"}),e.jsxs($,{value:d.commissionType,onValueChange:s=>C({...d,commissionType:s}),children:[e.jsx(D,{children:e.jsx(O,{})}),e.jsxs(M,{children:[e.jsx(u,{value:"percentage",children:"Percentage"}),e.jsx(u,{value:"flat",children:"Flat Fee"})]})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs(v,{htmlFor:"commissionValue",children:["Commission Value ",d.commissionType==="percentage"?"(%)":"($)"]}),e.jsx(Q,{id:"commissionValue",type:"number",step:"0.01",value:d.commissionValue,onChange:s=>C({...d,commissionValue:s.target.value}),placeholder:d.commissionType==="percentage"?"10.00":"25.00"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(v,{htmlFor:"applyTo",children:"Apply Commission To"}),e.jsxs($,{value:d.applyTo,onValueChange:s=>C({...d,applyTo:s}),children:[e.jsx(D,{children:e.jsx(O,{})}),e.jsxs(M,{children:[e.jsx(u,{value:"first_payment",children:"First Payment Only"}),e.jsx(u,{value:"recurring",children:"Recurring Payments"})]})]})]})]}),e.jsx("div",{className:"pt-4 border-t",children:e.jsxs(b,{onClick:f,disabled:k.isPending,children:[e.jsx(fe,{className:"h-4 w-4 mr-2"}),k.isPending?"Saving...":"Save Global Settings"]})})]})]})}),e.jsx(E,{value:"affiliates",children:e.jsxs(n,{children:[e.jsxs(g,{children:[e.jsxs(y,{className:"flex items-center gap-2",children:[e.jsx(Y,{className:"h-5 w-5"}),"Affiliate Commission Management"]}),e.jsx(P,{children:"View and set custom commission rates for individual affiliates"})]}),e.jsx(r,{children:(t==null?void 0:t.length)>
10?e.jsxs(Z,{children:[e.jsx(ee,{children:e.jsxs(R,{children:[e.jsx(m,{children:"Affiliate"}),e.jsx(m,{children:"Status"}),e.jsx(m,{children:"Performance"}),e.jsx(m,{children:"Commission Rate"}),e.jsx(m,{children:"Actions"})]})}),e.jsx(se,{children:t.map(s=>e.jsxs(R,{children:[e.jsx(x,{children:e.jsxs("div",{children:[e.jsx("div",{className:"font-medium",children:s.fullName}),e.jsx("div",{className:"text-sm text-muted-foreground",children:s.email}),e.jsxs("div",{className:"text-xs text-muted-foreground",children:["Code: ",s.referralCode]})]})}),e.jsx(x,{children:e.jsx(q,{variant:s.status==="active"?"default":"secondary",children:s.status})}),e.jsx(x,{children:e.jsxs("div",{className:"space-y-1 text-sm",children:[e.jsxs("div",{children:[s.totalClicks," clicks"]}),e.jsxs("div",{children:[s.totalSignups," signups"]}),e.jsxs("div",{children:[s.totalConversions," conversions"]}),e.jsxs("div",{className:"font-medium",children:["$",s.totalRevenue," revenue"]})]})}),e.jsx(x,{children:le(s,S)}),e.jsx(x,{children:e.jsxs(b,{variant:"outline",size:"sm",onClick:()=>j(s),children:[e.jsx(ve,{className:"h-4 w-4 mr-2"}),"Edit Commission"]})})]},s.id))})]}):e.jsx("div",{className:"text-center py-8 text-muted-foreground",children:"No affiliates found"})})]})}),e.jsx(E,{value:"earnings",children:e.jsxs(n,{children:[e.jsxs(g,{children:[e.jsxs(y,{className:"flex items-center gap-2",children:[e.jsx(W,{className:"h-5 w-5"}),"Earnings Overview"]}),e.jsx(P,{children:"Summary of total commissions and payouts across all affiliates"})]}),e.jsx(r,{children:e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4 mb-6",children:[e.jsx(n,{children:e.jsxs(r,{className:"pt-6",children:[e.jsxs("div",{className:"text-2xl font-bold",children:["$",t==null?void 0:t.reduce((s,i)=>s+parseFloat(i.totalRevenue||"0"),0).toFixed(2)]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Total Revenue"})]})}),e.jsx(n,{children:e.jsxs(r,{className:"pt-6",children:[e.jsxs("div",{className:"text-2xl font-bold",children:["$",t==null?void 0:t.reduce((s,i)=>s+parseFloat(i.totalCommissionOwed||"0"),0).toFixed(2)]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Total Owed"})]})}),e.jsx(n,{children:e.jsxs(r,{className:"pt-6",children:[e.jsxs("div",{className:"text-2xl font-bold",children:["$",t==null?void 0:t.reduce((s,i)=>s+parseFloat(i.totalCommissionPaid||"0"),0).toFixed(2)]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Total Paid"})]})}),e.jsx(n,{children:e.jsxs(r,{className:"pt-6",children:[e.jsx("div",{className:"text-2xl font-bold",children:(t==null?void 0:t.filter(s=>s.status==="active").length)||0}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Active Affiliates"})]})})]})})]})}),e.jsxs(E,{value:"ai-insights",className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold tracking-tight text-foreground",children:"AI Performance Insights"}),e.jsx("p",{className:"text-muted-foreground",children:"Leverage artificial intelligence to analyze affiliate performance and generate actionable insights."})]}),e.jsxs("div",{className:"grid gap-6 md:grid-cols-2 lg:grid-cols-4",children:[e.jsxs(n,{className:"border-blue-200 dark:border-blue-800",children:[e.jsxs(g,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[e.jsx(y,{className:"text-sm font-medium",children:"Performance Analysis"}),e.jsx(te,{className:"h-4 w-4 text-blue-500"})]}),e.jsxs(r,{children:[e.jsx("div",{className:"text-2xl font-bold text-blue-600 dark:text-blue-400",children:"AI Powered"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Deep performance insights"})]})]}),e.jsxs(n,{className:"border-green-200 dark:border-green-800",children:[e.jsxs(g,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[e.jsx(y,{className:"text-sm font-medium",children:"Optimization"}),e.jsx(ie,{className:"h-4 w-4 text-green-500"})]}),e.jsxs(r,{children:[e.jsx("div",{className:"text-2xl font-bold text-green-600 dark:text-green-400",children:"Smart Tips"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Actionable recommendations"})]})]}),e.jsxs(n,{className:"border-purple-200 dark:border-purple-800",children:[e.jsxs(g,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[e.jsx(y,{className:"text-sm font-medium",children:"Trend Prediction"}),e.jsx(U,{className:"h-4 w-4 text-purple-500"})]}),e.jsxs(r,{children:[e.jsx("div",{className:"text-2xl font-bold text-purple-600 dar
1k:text-purple-400",children:"Forecasts"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Predictive analytics"})]})]}),e.jsxs(n,{className:"border-orange-200 dark:border-orange-800",children:[e.jsxs(g,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[e.jsx(y,{className:"text-sm font-medium",children:"Risk Assessment"}),e.jsx(ne,{className:"h-4 w-4 text-orange-500"})]}),e.jsxs(r,{children:[e.jsx("div",{className:"text-2xl font-bold text-orange-600 dark:text-orange-400",children:"Risk Analysis"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Identify potential issues"})]})]})]}),e.jsx(Ne,{})]}),e.jsx(E,{value:"audit",children:e.jsxs(n,{children:[e.jsxs(g,{children:[e.jsxs(y,{className:"flex items-center gap-2",children:[e.jsx(X,{className:"h-5 w-5"}),"Commission Audit Log"]}),e.jsx(P,{children:"Track all commission changes and administrative actions"})]}),e.jsx(r,{children:!_&&(T==null?void 0:T.length)>0?e.jsxs(Z,{children:[e.jsx(ee,{children:e.jsxs(R,{children:[e.jsx(m,{children:"Date"}),e.jsx(m,{children:"Change Type"}),e.jsx(m,{children:"Affiliate"}),e.jsx(m,{children:"Previous Value"}),e.jsx(m,{children:"New Value"}),e.jsx(m,{children:"Notes"})]})}),e.jsx(se,{children:T.map(s=>{var i;return e.jsxs(R,{children:[e.jsx(x,{children:B(new Date(s.changeDate),"MMM dd, yyyy HH:mm")}),e.jsx(x,{children:e.jsx(q,{variant:"outline",children:s.changeType.replace("_"," ").toUpperCase()})}),e.jsx(x,{children:s.affiliateId?((i=t==null?void 0:t.find(I=>I.id===s.affiliateId))==null?void 0:i.fullName)||"Unknown":e.jsx("span",{className:"text-muted-foreground",children:"Global Settings"})}),e.jsx(x,{children:s.previousValue&&e.jsx("span",{className:"text-red-600",children:s.previousType==="percentage"?`${s.previousValue}%`:`$${s.previousValue}`})}),e.jsx(x,{children:s.newValue&&e.jsx("span",{className:"text-green-600",children:s.newType==="percentage"?`${s.newValue}%`:`$${s.newValue}`})}),e.jsx(x,{className:"text-sm text-muted-foreground",children:s.notes})]},s.id)})})]}):e.jsx("div",{className:"text-center py-8 text-muted-foreground",children:_?"Loading audit logs...":"No audit logs found"})})]})})]}),e.jsx(xe,{open:K,onOpenChange:p,children:e.jsxs(ue,{children:[e.jsxs(he,{children:[e.jsx(pe,{children:"Edit Custom Commission"}),e.jsxs(je,{children:["Set a custom commission rate for ",w==null?void 0:w.fullName,". Leave empty to use global defaults."]})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(v,{htmlFor:"customType",children:"Commission Type"}),e.jsxs($,{value:l.type,onValueChange:s=>o({...l,type:s}),children:[e.jsx(D,{children:e.jsx(O,{})}),e.jsxs(M,{children:[e.jsx(u,{value:"percentage",children:"Percentage"}),e.jsx(u,{value:"flat",children:"Flat Fee"})]})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs(v,{htmlFor:"customValue",children:["Commission Value ",l.type==="percentage"?"(%)":"($)"]}),e.jsx(Q,{id:"customValue",type:"number",step:"0.01",value:l.value,onChange:s=>o({...l,value:s.target.value}),placeholder:"Leave empty for default rate"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(v,{htmlFor:"customExpiration",children:"Expiration Date (Optional)"}),e.jsx(Q,{id:"customExpiration",type:"date",value:l.expiration,onChange:s=>o({...l,expiration:s.target.value})})]})]}),e.jsxs(ge,{children:[e.jsx(b,{variant:"outline",onClick:()=>p(!1),children:"Cancel"}),e.jsx(b,{onClick:re,disabled:a.isPending,children:a.isPending?"Saving...":"Save Changes"})]})]})})]})}function Ne(){var k;const{toast:h}=ae(),[c,d]=N.useState(null),[C,w]=N.useState("performance_analysis"),[A,l]=N.useState(!1),{data:o,isLoading:K}=L({queryKey:["/api/super-admin/affiliates"],enabled:!0}),{data:p,isLoading:S,refetch:G}=L({queryKey:["/api/super-admin/ai-insights"],enabled:!0}),t=async()=>{if(!c){h({title:"Error",description:"Please select an affiliate first.",variant:"destructive"});return}l(!0);try{const a=await fetch(`/api/super-admin/ai-insights/generate/${c.id}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:C})});if(!a.ok)throw new Error("Failed to generate AI insights");const f=await a.json();h({title:"Success",description:"AI insights generated successfully!"}),G()}catch(a){console.error("Error generating AI insights:",a),h({title:"Error",description:a.message||"Failed to generate AI insights",variant:"destructive"})}finally{l(!1)}},F=async(a,f)=>{try{if(!(await fetch(`/api/super-admin/ai-insights/${a}/status`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({status:f})})).ok)throw new Error("Failed to update insight status");h({title:"Success",description:"Insight status updated successfully!"}),G()}catch(j){console.error("Error updating insight status:",j),h({title:"Error",description:j.message||"Failed to update insight status",variant:"destructive"})}},T=a=>{switch(a){case"new":return"bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-200";case"reviewed":return"bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200";case"actioned":return"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200";case"dismissed":return"bg-gray-100 text-gray-800 dark:bg-gray-900 dark:text-gray-200";default:return"bg-gray-100 text-gray-800 dark:bg-gray-900 dark:text-gray-200"}},_=a=>{switch(a){case"performance_analysis":return e.jsx(te,{className:"h-4 w-4"});case"optimization_suggestions":return e.jsx(ie,{className:"h-4 w-4"});case"trend_prediction":return e.jsx(U,{className:"h-4 w-4"});case"risk_assessment":return e.jsx(ne,{className:"h-4 w-4"});default:return e.jsx(z,{className:"h-4 w-4"})}};return e.jsxs(n,{children:[e.jsxs(g,{children:[e.jsxs(y,{className:"flex items-center gap-2",children:[e.jsx(z,{className:"h-5 w-5"}),"Generate AI Insights"]}),e.jsx(P,{children:"Generate intelligent analysis and recommendations for your affiliate program performance."})]}),e.jsxs(r,{className:"space-y-6",children:[e.jsxs("div",{className:"grid gap-4 md:grid-cols-3",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(v,{htmlFor:"affiliate-select",children:"Select Affiliate"}),e.jsxs($,{value:((k=c==null?void 0:c.id)==null?void 0:k.toString())||"",onValueChange:a=>{const f=o==null?void 0:o.find(j=>j.id===parseInt(a));d(f||null)},children:[e.jsx(D,{children:e.jsx(O,{placeholder:"Choose an affiliate..."})}),e.jsx(M,{children:K?e.jsx("div",{className:"p-2 text-center text-muted-foreground",children:"Loading..."}):o==null?void 0:o.map(a=>
1e.jsxs(u,{value:a.id.toString(),children:[a.fullName," (",a.email,")"]},a.id))})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(v,{htmlFor:"insight-type",children:"Insight Type"}),e.jsxs($,{value:C,onValueChange:a=>w(a),children:[e.jsx(D,{children:e.jsx(O,{})}),e.jsxs(M,{children:[e.jsx(u,{value:"performance_analysis",children:"Performance Analysis"}),e.jsx(u,{value:"optimization_suggestions",children:"Optimization Suggestions"}),e.jsx(u,{value:"trend_prediction",children:"Trend Prediction"}),e.jsx(u,{value:"risk_assessment",children:"Risk Assessment"})]})]})]}),e.jsx("div",{className:"flex items-end",children:e.jsx(b,{onClick:t,disabled:!c||A,className:"w-full",children:A?e.jsxs(e.Fragment,{children:[e.jsx(z,{className:"h-4 w-4 mr-2 animate-spin"}),"Generating..."]}):e.jsxs(e.Fragment,{children:[e.jsx(U,{className:"h-4 w-4 mr-2"}),"Generate Insights"]})})})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsx("h3",{className:"text-lg font-semibold",children:"Recent AI Insights"}),S?e.jsx("div",{className:"text-center py-8 text-muted-foreground",children:"Loading insights..."}):(p==null?void 0:p.length)>0?e.jsx("div",{className:"space-y-4",children:p.slice(0,10).map(a=>e.jsx(n,{className:"border-l-4 border-l-blue-500",children:e.jsx(r,{className:"p-4",children:e.jsxs("div",{className:"flex items-start justify-between",children:[e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[_(a.insightType),e.jsx("span",{className:"font-semibold capitalize",children:a.insightType.replace("_"," ")}),e.jsx("span",{className:`inline-flex items-center px-2 py-1 rounded-full text-xs font-medium ${T(a.status)}`,children:a.status}),e.jsxs("span",{className:"text-sm text-muted-foreground",children:["Confidence: ",a.confidenceScore,"%"]})]}),e.jsxs("div",{className:"text-sm text-muted-foreground mb-2",children:["Affiliate #",a.affiliateId," ⢠",B(new Date(a.createdAt),"MMM dd, yyyy h:mm a")]}),e.jsx("p",{className:"text-sm mb-3",children:a.aiSummary}),a.recommendations&&e.jsxs("div",{className:"space-y-2",children:[e.jsx("h4",{className:"text-sm font-medium",children:"Recommendations:"}),e.jsx("div",{className:"text-sm text-muted-foreground pl-4 border-l-2 border-gray-200",children:JSON.parse(a.recommendations).slice(0,3).map((f,j)=>e.jsxs("div",{className:"mb-1",children:["⢠",f]},j))})]})]}),e.jsxs("div",{className:"flex gap-2 ml-4",children:[e.jsx(b,{size:"sm",variant:"outline",onClick:()=>F(a.id,"reviewed"),disabled:a.status==="reviewed",children:e.jsx(ye,{className:"h-3 w-3"})}),e.jsx(b,{size:"sm",variant:"outline",onClick:()=>F(a.id,"actioned"),disabled:a.status==="actioned",children:"â"}),e.jsx(b,{size:"sm",variant:"outline",onClick:()=>F(a.id,"dismissed"),disabled:a.status==="dismissed",children:"â"})]})]})})},a.id))}):e.jsx("div",{className:"text-center py-8 text-muted-foreground",children:"No AI insights generated yet. Start by selecting an affiliate and generating insights."})]})]})]})}export{Te as default};
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.