1import{l as U,r as j,s as o,j as e,a3 as M,a4 as S,a5 as A,G as te,aM as ae,a7 as $,v as N,ak as G,n as re,o as z,bG as X,aa as K,F as f,aL as I,aT as O,cy as ie,B as C,cz as E,x as ne,L as k,aE as ce,ci as le,cj as de,ck as P,a2 as Z,cA as B,cB as oe,cl as F,p as R,q as me,co as Y,cC as ue,cD as xe,_ as he}from"./admin-gOTFpfvz.js";import{a as J,H as V,F as W}from"./merchant-B_UghEXU.js";const pe=()=>{const{user:s}=U(),{hasAccess:m,expiresAt:l,isFromSpecialToken:p,isFromWelcomeBonus:w,isSubscriber:n}=J(),[b,x]=j.useState(null),[v,h]=j.useState("");j.useEffect(()=>{s&&m&&l&&T()},[s==null?void 0:s.id,m,l]),j.useEffect(()=>{if(!l)return;const i=()=>{const t=new Date,y=new Date(l).getTime()-t.getTime();if(y<=0){h("Expired");return}const H=Math.floor(y/(1e3*60*60)),Q=Math.floor(y%(1e3*60*60)/(1e3*60));if(H>24){const ee=Math.floor(H/24),se=H%24;h(`${ee}d ${se}h ${Q}m`)}else H>0?h(`${H}h ${Q}m`):h(`${Q} minutes`)};i();const r=setInterval(i,6e4);return()=>clearInterval(r)},[l]);const T=async()=>{if(s)try{const{data:i}=await o.from("welcome_bonus_grants").select("campaign_id").eq("user_id",s.id).order("granted_at",{ascending:!1}).limit(1).maybeSingle();let r=i==null?void 0:i.campaign_id;if(!r){const{data:t}=await o.from("special_token_redemptions").select("campaign_id").eq("user_id",s.id).order("redeemed_at",{ascending:!1}).limit(1).maybeSingle();r=t==null?void 0:t.campaign_id}if(r){const{data:t}=await o.rpc("get_campaign_public_info",{p_campaign_id:r}),c=Array.isArray(t)?t[0]:t;c&&x({name:c.name,token_duration_hours:c.token_duration_hours})}}catch(i){console.error("Error fetching campaign info:",i)}};if(!m||!l||n||!w&&!p)return null;const d=w,L=d?"from-green-500 via-emerald-500 to-teal-500":"from-amber-500 via-orange-500 to-yellow-500",q=d?"bg-gradient-to-br from-green-50 to-emerald-50 dark:from-green-900/20 dark:to-emerald-900/20":"bg-gradient-to-br from-amber-50 to-orange-50 dark:from-amber-900/20 dark:to-orange-900/20",D=d?"border-green-200 dark:border-green-800":"border-amber-200 dark:border-amber-800",_=d?"bg-green-100 dark:bg-green-900/40":"bg-
1amber-100 dark:bg-amber-900/40",g=d?"text-green-600 dark:text-green-400":"text-amber-600 dark:text-amber-400",u=d?"text-green-900 dark:text-green-100":"text-amber-900 dark:text-amber-100",a=d?"text-green-700 dark:text-green-300":"text-amber-700 dark:text-amber-300";return e.jsxs(M,{className:`${q} border-2 ${D} overflow-hidden relative`,children:[e.jsx("div",{className:`absolute top-0 left-0 right-0 h-1 bg-gradient-to-r ${L}`}),e.jsx(S,{className:"pb-2",children:e.jsxs(A,{className:`flex items-center gap-3 ${u}`,children:[e.jsx("div",{className:`p-2 rounded-full ${_}`,children:d?e.jsx(te,{className:`h-6 w-6 ${g}`}):e.jsx(ae,{className:`h-6 w-6 ${g}`})}),e.jsx("div",{children:e.jsx("span",{className:"text-lg font-bold",children:d?"ð Welcome Bonus Active!":"⨠Special Access Active!"})})]})}),e.jsxs($,{className:"space-y-3",children:[b&&e.jsxs("div",{children:[e.jsx("p",{className:`text-sm ${a}`,children:"Campaign"}),e.jsx("p",{className:`font-medium ${u}`,children:b.name})]}),e.jsxs("div",{children:[e.jsx("p",{className:`text-sm ${a}`,children:"Expires"}),e.jsx("p",{className:`font-medium ${u}`,children:N(new Date(l),"EEEE, d MMMM yyyy 'at' HH:mm")})]}),e.jsxs("div",{className:`flex items-center gap-2 p-3 rounded-lg ${_}`,children:[e.jsx(G,{className:`h-5 w-5 ${g}`}),e.jsxs("span",{className:`text-lg font-bold ${u}`,children:[v," remaining"]})]}),e.jsx("p",{className:`text-sm ${a} pt-2`,children:"Enjoy unlimited access to all premium content during this period!"})]})]})},fe=()=>{var D,_,g,u;const{user:s}=U(),m=re(),[l,p]=j.useState(null),w=z({queryKey:["account-newsletter-sections"],queryFn:async()=>{const{data:a,error:i}=await o.from("newsletter_sections").select("id, name, slug, description, is_default").eq("is_active",!0).order("display_order");if(i)throw i;return a||[]}}),n=z({queryKey:["account-newsletter-subscriber",s==null?void 0:s.id],enabled:!!(s!=null&&s.email),queryFn:async()=>{if(!(s!=null&&s.email))return null;const{data:a}=await o.from("newsletter_subscribers").select("id, email, status, subscribed_at").or(`user_id.eq.${s.id},email.eq.${s.email.toLowerCase()}`).maybeSingle();return a??null}}),b=z({queryKey:["account-newsletter-subscriber-sections",(D=n.data)==null?void 0:D.id],enabled:!!((_=n.data)!=null&&_.id),queryFn:async()=>{const{data:a,error:i}=await o.from("newsletter_subscriber_sections").select("section_id").eq("subscriber_id",n.data.id);if(i)throw i;return new Set((a||[]).map(r=>r.section_id))}}),x=((g=n.data)==null?void 0:g.status)==="active",v=w.data??[],h=b.data??new Set,T=async()=>{if(s!=null&&s.email){p("master");try{const{error:a}=await o.functions.invoke("newsletter-subscribe",{body:{email:s.email,user_id:s.id,auto_confirm:!0}});if(a)throw a;E.success("Subscribed to the Limpopo Mirror newsletter"),await Promise.all([m.invalidateQueries({queryKey:["account-newsletter-subscriber",s.id]}),m.invalidateQueries({queryKey:["newsletter-subscription-status",s.email]})])}catch(a){E.error((a==null?void 0:a.message)||"Could not subscribe")}finally{p(null)}}},d=async()=>{if(n.data){p("master");try{const{error:a}=await o.from("newsletter_subscribers").update({status:"unsubscribed",unsubscribed_at:new Date().toISOString()}).eq("id",n.data.id);if(a)throw a;E.success("Unsubscribed from the Limpopo Mirror newsletter"),await Promise.all([m.invalidateQueries({queryKey:["account-newsletter-subscriber",s==null?void 0:s.id]}),m.invalidateQueries({queryKey:["newsletter-subscription-status",s==null?void 0:s.email]})])}catch(a){E.error((a==null?void 0:a.message)||"Could not unsubscribe")}finally{p(null)}}},L=async(a,i)=>{if(n.data){p(a.id);try{if(i){const{error:r}=await o.from("newsletter_subscriber_sections").insert({subscriber_id:n.data.id,section_id:a.id});if(r&&!`${r.message}`.includes("duplicate"))throw r}else{const{error:r}=await o.from("newsletter_subscriber_sections").delete().eq("subscriber_id",n.data.id).eq("section_id",a.id);if(r)throw r}E.success(i?`Subscribed to ${a.name}`:`Unsubscribed from ${a.name}
1`),await m.invalidateQueries({queryKey:["account-newsletter-subscriber-sections",n.data.id]})}catch(r){E.error((r==null?void 0:r.message)||"Could not update preference")}finally{p(null)}}},q=w.isLoading||n.isLoading;return e.jsxs(M,{children:[e.jsxs(S,{children:[e.jsxs(A,{className:"flex items-center gap-2",children:[e.jsx(X,{className:"h-5 w-5"}),"Newsletter Preferences"]}),e.jsx(K,{children:"Choose which Limpopo Mirror newsletters you'd like to receive. Changes are saved automatically."})]}),e.jsxs($,{className:"space-y-6",children:[e.jsx("div",{className:"rounded-lg border bg-muted/30 p-4",children:e.jsxs("div",{className:"flex items-start justify-between gap-4",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"font-medium",children:"Limpopo Mirror Newsletter"}),e.jsx("p",{className:"text-sm text-muted-foreground break-all",children:s==null?void 0:s.email}),e.jsx("div",{className:"mt-2",children:x?e.jsxs(f,{variant:"default",className:"bg-green-600 hover:bg-green-700",children:["Subscribed",((u=n.data)==null?void 0:u.subscribed_at)&&` since ${N(new Date(n.data.subscribed_at),"MMM d, yyyy")}`]}):e.jsx(f,{variant:"secondary",children:"Not subscribed"})})]}),e.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[l==="master"&&e.jsx(I,{className:"h-4 w-4 animate-spin text-muted-foreground"}),e.jsx(O,{checked:x,disabled:l==="master"||q,onCheckedChange:a=>a?T():d(),"aria-label":"Toggle newsletter subscription"})]})]})}),v.length>0&&e.jsxs(e.Fragment,{children:[e.jsx(ie,{}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-sm font-semibold mb-1",children:"Sections"}),e.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Pick the topics you'd like included in your newsletter."}),e.jsx("ul",{className:"divide-y rounded-lg border",children:v.map(a=>{const i=h.has(a.id),r=!x||l===a.id;return e.jsxs("li",{className:"flex items-start justify-between gap-4 p-4",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsxs("p",{className:`font-medium ${x?"":"text-muted-foreground"}`,children:[a.name,a.is_default&&e.jsx(f,{variant:"outline",className:"ml-2 text-xs font-normal",children:"Recommended"})]}),a.description&&e.jsx("p",{className:"text-sm text-muted-foreground mt-0.5",children:a.description})]}),e.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[l===a.id&&e.jsx(I,{className:"h-4 w-4 animate-spin text-muted-foreground"}),e.jsx(O,{checked:i&&x,disabled:r,onCheckedChange:t=>L(a,t),"aria-label":`Toggle ${a.name}`})]})]},a.id)})}),!x&&e.jsx("p",{className:"text-xs text-muted-foreground mt-3",children:"Subscribe to the newsletter above to manage individual sections."})]})]}),x&&e.jsx("div",{className:"pt-2 text-right",children:e.jsx(C,{variant:"link",size:"sm",className:"text-muted-foreground h-auto p-0",onClick:d,disabled:l==="master",children:"Unsubscribe from all newsletters"})})]})]})},ge=()=>{const{user:s,loading:m}=U();j.useEffect(()=>{document.title="My Account - Limpopo Mirror"},[]);const{hasAccess:l,expiresAt:p,useZoutForAccess:w,isSubscriber:n,subscriptionExpiresAt:b,subscriptionPackageName:x}=J(),v=ne(),[h,T]=j.useState(null),[d,L]=j.useState([]),[q,D]=j.useState([]),[_,g]=j.useState(!0),{data:u}=z({queryKey:["account-recent-orders",s==null?void 0:s.id],queryFn:async()=>{if(!s)return[];const{data:t,error:c}=await o.from("orders").select("id, order_number, created_at, status, total_amount, ready_for_collection, collected_at, order_items(id)").eq("user_id",s.id).order("created_at",{ascending:!1}).limit(5);if(c)throw c;return t},enabled:!!s});j.useEffect(()=>{if(!m&&!s){v("/auth");return}s&&a()},[s,m,v]);const a=async()=>{if(s)try{const{data:t}=await o.from("profiles").select("full_name, email, permission_level, zout_balance").eq("id",s.id).single();t&&T(t);const{data:c}=await o.from("access_tokens").select("id, activated_at, expires_at").eq("user_id",s.id).order("activated_at",{ascending:!1});c&&L(c);const{data:y}=await o.from("transactions").select("id, created_at, type, amount, description").eq("user_id",s.id).order("created_at",{ascending:!1});y&&D(y)}catch(t){console.error("Error fetching account data:",t)}finally{g(!1)}},i=async()=>{await w(),a()};if(m||_)return e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(V,{}),e.jsx("div",{className:"flex-grow flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary mx-auto"}),e.jsx("p",{className:"mt-4 text-muted-foreground",children:"Loading your account..."})]})}),e.jsx(W,{})]});if(!h)return null;const r=t=>new Date(t.expires_at)>new Date;return e.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[e.jsx(V,{}),e.jsxs("main",{className:"flex-grow container mx-auto px-4 py-8",children:[e.jsx("div",{className:"mb-6",children:e.jsxs(k,{to:"/",className:"inline-flex items-center text-muted-foreground hover:text-foreground transition-colors",children:[e.jsx(ce,{className:"h-4 w-4 mr-2"}),"Back to Home"]})}),e.jsx("h1",{className:"text-3xl font-bold mb-6",children:"My A
1ccount"}),e.jsx("div",{className:"mb-6",children:e.jsx(pe,{})}),e.jsxs(le,{defaultValue:typeof window<"u"&&window.location.hash==="#newsletters"?"newsletters":"overview",className:"space-y-6",onValueChange:t=>{typeof window<"u"&&window.history.replaceState(null,"",t==="overview"?window.location.pathname:`#${t}`)},children:[e.jsxs(de,{className:"grid w-full grid-cols-2 md:grid-cols-4",children:[e.jsxs(P,{value:"overview",children:[e.jsx(Z,{className:"h-4 w-4 mr-2"}),"Overview"]}),e.jsxs(P,{value:"newsletters",children:[e.jsx(X,{className:"h-4 w-4 mr-2"}),"Newsletters"]}),e.jsxs(P,{value:"orders",children:[e.jsx(B,{className:"h-4 w-4 mr-2"}),"Orders"]}),e.jsxs(P,{value:"transactions",children:[e.jsx(oe,{className:"h-4 w-4 mr-2"}),"Transactions"]})]}),e.jsxs(F,{value:"overview",className:"space-y-6",children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[e.jsxs(M,{children:[e.jsx(S,{children:e.jsxs(A,{className:"flex items-center gap-2",children:[e.jsx(Z,{className:"h-5 w-5"}),"Profile Information"]})}),e.jsxs($,{className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:"Name"}),e.jsx("p",{className:"font-medium",children:h.full_name||"Not set"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:"Email"}),e.jsx("p",{className:"font-medium",children:h.email})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:"Account Level"}),n?e.jsxs(f,{variant:"default",className:"mt-1 bg-purple-600 hover:bg-purple-700",children:[e.jsx(R,{className:"h-3 w-3 mr-1"}),"Subscriber"]}):e.jsx(f,{variant:"secondary",className:"mt-1",children:"Registered User"})]})]})]}),e.jsxs(M,{children:[e.jsx(S,{children:e.jsxs(A,{className:"flex items-center gap-2",children:[e.jsx(me,{className:"h-5 w-5"}),"Token Status"]})}),e.jsx($,{className:"space-y-4",children:n?e.jsxs("div",{className:"p-4 bg-purple-50 dark:bg-purple-900/20 rounded-lg border border-purple-200 dark:border-purple-800",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx(R,{className:"h-5 w-5 text-purple-600"}),e.jsx("p",{className:"font-semibold text-purple-900 dark:text-purple-100",children:"Subscriber Access"})]}),e.jsx("p",{className:"text-sm text-purple-700 dark:text-purple-300",children:"You have unlimited access to all premium content"}),x&&e.jsxs("p",{className:"text-sm text-purple-700 dark:text-purple-300 mt-1",children:["Package: ",e.jsx("strong",{children:x})]}),b&&e.jsxs("p",{className:"text-sm text-purple-700 dark:text-purple-300 mt-1",children:["Expires: ",e.jsx("strong",{children:N(new Date(b),"MMM d, yyyy")})," ","(",Math.max(0,Math.ceil((new Date(b).getTime()-Date.now())/(1e3*60*60*24)))," days remaining)"]}),e.jsx(C,{asChild:!0,variant:"outline",size:"sm",className:"mt-3",children:e.jsx(k,{to:"/subscribe-premium",children:"Renew / Extend"})})]}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:"Zout Balance"}),e.jsxs("p",{className:"text-2xl font-bold",children:[h.zout_balance," zouts"]})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:"Access Status"}),l?e.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[e.jsxs(f,{variant:"default",className:"bg-green-600 hover:bg-green-700",children:[e.jsx(Y,{className:"h-3 w-3 mr-1"}),"Active"]}),p&&e.jsxs("span",{className:"text-sm text-muted-foreground",children:["Expires ",N(new Date(p),"MMM d, yyyy")]})]}):e.jsxs(f,{variant:"secondary",className:"mt-1",children:[e.jsx(ue,{className:"h-3 w-3 mr-1"}),"No Active Access"]})]}),e.jsxs("div",{className:"flex gap-2 pt-2",children:[e.jsx(C,{asChild:!0,variant:"default",className:"flex-1",children:e.jsx(k,{to:"/purchase-zouts",children:"Purchase Zouts"})}),!l&&h.zout_balance>0&&e.jsx(C,{onClick:i,variant:"outline",className:"flex-1",children:"Use 1 Zout"})]}),!n&&e.jsx(C,{asChild:!0,variant:"outline",size:"sm",className:"w-full mt-2 border-purple-300 text-purple-700 hover:bg-purple-50",children:e.jsxs(k,{to:"/subscribe-premium",children:[e.jsx(R,{className:"mr-2 h-4 w-4"}),"Subscribe for Unlimited Access"]})})]})})]})]}),e.jsxs(M,{children:[e.jsxs(S,{children:[e.jsx(A,{children:"Token Usage History"}),e.jsx(K,{children:"Your 2-day access tokens and their status"})]}),e.jsx($,{children:d.length===0?e.jsx("p",{className:"text-muted-foreground text-center py-8",children:"No token usage history yet"}):e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full",children:[e.jsx("thead",{className:"border-b",children:e.jsxs("tr",{children:[e.jsx("th",{className:"text-left py-3 px-4 font-medium",children:"Activated"}),e.jsx("th",{className:"text-left py-3 px-4 font-medium",children:"Expires"}),e.jsx("th",{className:"text-left py-3 px-4 font-medium",children:"Status"}),e.jsx("th",{className:"text-left py-3 px-4 font-medium",children:"Duration"})]})}),e.jsx("tbody",{children:d.map(t=>{const c=r(t);return e.jsxs("tr",{className:"border-b last:border-0",children:[e.jsx("td",{className:"py-3 px-4",children:N(new Date(t.activated_at),"MMM d, yyyy HH:mm")}
1),e.jsx("td",{className:"py-3 px-4",children:N(new Date(t.expires_at),"MMM d, yyyy HH:mm")}),e.jsx("td",{className:"py-3 px-4",children:c?e.jsxs(f,{variant:"default",className:"bg-green-600 hover:bg-green-700",children:[e.jsx(Y,{className:"h-3 w-3 mr-1"}),"Active"]}):e.jsxs(f,{variant:"secondary",children:[e.jsx(G,{className:"h-3 w-3 mr-1"}),"Expired"]})}),e.jsx("td",{className:"py-3 px-4 text-muted-foreground",children:"2 days"})]},t.id)})})]})})})]})]}),e.jsx(F,{value:"newsletters",children:e.jsx(fe,{})}),e.jsx(F,{value:"orders",children:e.jsxs(M,{children:[e.jsx(S,{children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsxs(A,{className:"flex items-center gap-2",children:[e.jsx(B,{className:"h-5 w-5"}),"Marketplace Orders"]}),e.jsx(K,{children:"Your recent marketplace purchases"})]}),u&&u.length>0&&e.jsx(C,{asChild:!0,variant:"outline",size:"sm",children:e.jsx(k,{to:"/orders",children:"View All"})})]})}),e.jsx($,{children:!u||u.length===0?e.jsxs("div",{className:"text-center py-8",children:[e.jsx(B,{className:"h-12 w-12 text-muted-foreground mx-auto mb-3"}),e.jsx("p",{className:"text-muted-foreground mb-4",children:"No marketplace orders yet"}),e.jsx(C,{asChild:!0,variant:"outline",size:"sm",children:e.jsx(k,{to:"/marketplace",children:"Browse Products"})})]}):e.jsx("div",{className:"space-y-3",children:u.map(t=>{const c=y=>y==="cancelled"?"destructive":"secondary";return e.jsxs(k,{to:`/orders/${t.id}`,className:"flex items-center justify-between p-3 rounded-lg border hover:bg-muted/50 transition-colors",children:[e.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[t.collected_at?e.jsx(xe,{className:"h-5 w-5 text-green-600 shrink-0"}):t.ready_for_collection?e.jsx(he,{className:"h-5 w-5 text-amber-600 shrink-0"}):e.jsx(B,{className:"h-5 w-5 text-muted-foreground shrink-0"}),e.jsxs("div",{className:"min-w-0",children:[e.jsxs("p",{className:"font-medium text-sm",children:["#",t.order_number]}),e.jsxs("p",{className:"text-xs text-muted-foreground",children:[N(new Date(t.created_at),"MMM d, yyyy")," · ",t.order_items.length," item",t.order_items.length!==1?"s":""]})]})]}),e.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[e.jsx(f,{variant:c(t.status),children:t.collected_at?"COLLECTED":t.ready_for_collection?"READY":t.status.toUpperCase()}),e.jsxs("span",{className:"font-semibold text-sm",children:["R ",t.total_amount.toFixed(2)]})]})]},t.id)})})})]})}),e.jsx(F,{value:"transactions",children:e.jsxs(M,{children:[e.jsxs(S,{children:[e.jsx(A,{children:"Transaction History"}),e.jsx(K,{children:"Your zout purchases and usage"})]}),e.jsx($,{children:q.length===0?e.jsx("p",{className:"text-muted-foreground text-center py-8",children:"No transactions yet"}):e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full",children:[e.jsx("thead",{className:"border-b",children:e.jsxs("tr",{children:[e.jsx("th",{className:"text-left py-3 px-4 font-medium",children:"Date"}),e.jsx("th",{className:"text-left py-3 px-4 font-medium",children:"Type"}),e.jsx("th",{className:"text-left py-3 px-4 font-medium",children:"Amount"}),e.jsx("th",{className:"text-left py-3 px-4 font-medium",children:"Description"})]})}),e.jsx("tbody",{children:q.map(t=>{const c=t.amount>0;return e.jsxs("tr",{className:"border-b last:border-0",children:[e.jsx("td",{className:"py-3 px-4",children:N(new Date(t.created_at),"MMM d, yyyy HH:mm")}),e.jsx("td",{className:"py-3 px-4",children:e.jsx(f,{variant:c?"default":"secondary",children:t.type})}),e.jsxs("td",{className:`py-3 px-4 font-medium ${c?"text-green-600":"text-red-600"}`,children:[c?"+":"",t.amount]}),e.jsx("td",{className:"py-3 px-4 text-muted-foreground",children:t.description||"â"})]},t.id)})})]})})})]})})]})]}),e.jsx(W,{})]})};export{ge 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.