1import{r as u,j as e}from"./react-vendor-DBDodRiA.js";import{r as D,L as B}from"./index-Bj2_i3b1.js";import{N as C}from"./Navbar-cIJ7zEQf.js";import"./socket-vendor-C9Ahsz4C.js";import"./ui-vendor-CMMvbYmQ.js";import"./button-Ds870LEe.js";import"./dropdown-menu-BmDaXC9j.js";const E="radial-gradient(ellipse 1400px 800px at 50% -200px, rgba(168,85,247,0.16) 0%, rgba(140,30,100,0.06) 35%, transparent 65%), linear-gradient(180deg, #0d0820 0%, #050208 100%)",n={sans:"'Geist', 'Inter', system-ui, -apple-system, sans-serif",mono:"'Geist Mono', 'JetBrains Mono', ui-monospace, monospace"},t={pearl:"rgb(245,240,255)",ink:"rgb(225,220,240)",inkMid:"rgb(155,148,182)",inkLow:"rgb(115,108,140)",inkDim:"rgb(80,75,100)",hairline:"rgba(168,85,247,0.15)",hairlineHi:"rgba(168,85,247,0.30)",cardBg:"rgba(28,15,42,0.55)",fieldBg:"rgba(20,10,32,0.55)",magenta:"rgb(217,70,239)",coral:"rgb(244,63,94)",violet:"rgb(168,85,247)",emerald:"rgb(110,231,183)",cyan:"rgb(34,211,238)"},g=a=>"$"+a.toLocaleString("en-US",{minimumFractionDigits:a%1?2:0,maximumFractionDigits:2}),j=a=>a>=1e6?(a/1e6).toFixed(1)+"M":a>=1e3?(a/1e3).toFixed(1)+"k":String(a),$=a=>a>=60?`${Math.floor(a/60)}m ${Math.round(a%60)}s`:`${Math.round(a)}s`,A=a=>a.slice(5).replace("-","/");function b({label:a,value:p,sub:s,accent:x,big:o}){return e.jsxs("div",{style:{background:t.cardBg,border:`1px solid ${t.hairline}`,borderRadius:14,padding:o?"20px 22px":"16px 18px",position:"relative",overflow:"hidden",minWidth:0},children:[e.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,height:2,background:`linear-gradient(90deg, ${x||t.magenta}, ${t.violet}, transparent)`}}),e.jsx("div",{style:{fontFamily:n.mono,fontSize:9.5,letterSpacing:"0.2em",textTransform:"uppercase",color:t.inkLow,fontWeight:700},children:a}),e.jsx("div",{style:{fontFamily:n.mono,fontVariantNumeric:"tabular-nums",fontSize:o?34:26,fontWeight:700,color:x||t.pearl,marginTop:6,textShadow:x?`0 0 26px ${x}55`:void 0},children:p}),s&&e.jsx("div",{style:{fontFamily:n.mono,fontSize:10,color:t.inkLow,marginTop:5},children:s})]})}function w({eyebrow:a,title:p,right:s}){return e.jsxs("div",{style:{margin:"40px 0 14px",display:"flex",alignItems:"flex-end",justifyContent:"space-between",gap:14,flexWrap:"wrap"},children:[e.jsxs("div",{children:[e.jsx("div",{style:{fontFamily:n.mono,fontSize:10,letterSpacing:"0.24em",textTransform:"uppercase",color:t.magenta,fontWeight:700},children:a}),e.jsx("div",{style:{fontFamily:n.sans,fontSize:21,fontWeight:700,color:t.pearl,letterSpacing:"-0.02em",marginTop:3},children:p})]}),s]})}function V({children:a}){return e.jsx("div",{style:{background:t.cardBg,border:`1px solid ${t.hairline}`,borderRadius:14,padding:"16px 20px",fontFamily:n.mono,fontSize:11.5,color:t.inkMid,lineHeight:1.7},children:a})}function R({rows:a,secondaryLabel:p}){const h=Math.max(1,...a.map(r=>r.revenue)),f=Math.max(1,...a.map(r=>r.n)),y=Math.max(1.6,Math.min(24,926/Math.max(1,a.length)-3)),d=r=>58+(a.length<=1?926/2:r*926/(a.length-1));return e.jsxs("svg",{viewBox:"0 0 1000 230",style:{width:"100%",height:"auto",display:"block"},role:"img","aria-label":`Daily revenue with ${p} trace`,children:[e.jsx("defs",{children:e.jsxs("linearGradient",{id:"tape-bar",x1:"0",y1:"0",x2:"0",y2:"1",children:[e.jsx("stop",{offset:"0%",stopColor:t.emerald}),e.jsx("stop",{offset:"100%",stopColor:"rgba(110,231,183,0.15)"})]})}),[0,.5,1].map(r=>e.jsxs("g",{children:[e.jsx("line",{x1:58,y1:20+180*r,x2:984,y2:20+180*r,stroke:"rgba(168,85,247,0.12)",strokeWidth:"1",strokeDasharray:"3 5"}),e.jsx("text",{x:50,y:20+180*r+3,textAnchor:"end",style:{font:`700 9px ${n.mono}`},fill:t.inkLow,children:g(Math.round(h*(1-r)))})]},r)),a.map((r,v)=>{const l=r.revenue/h*180;return e.jsxs("g",{children:[e.jsx("rect",{x:d(v)-y/2,y:200-l,width:y,height:Math.max(l,r.revenue>0?2.5:0),rx:2.5,fill:"url(#tape-bar)",opacity:.95}),(a.length<=16||v%Math.ceil(a.length/12)===0)&&e.jsx("text",{x:d(v),y:220,textAnchor:"middle",style:{font:`700 8.5px ${n.mono}`},fill:t.inkDim,children:A(r.day)})]},r.day)}),e.jsx("path",{d:a.map((r,v)=>`${v===0?"M":"L"} ${d(v)} ${200-r.n/f*180}`).join(" "),fill:"none",stroke:t.cyan,strokeWidth:"1.5",opacity:.8}),e.jsxs("g",{style:{font:`700 9px ${n.mono}`},children:[e.jsx("rect",{x:782,y:8,width:10,height:10,rx:2,fill:t.emerald}),e.jsx("text",{x:797,y:17,fill:t.inkMid,children:"REVENUE"}),e.jsx("line",{x1:882,y1:13,x2:900,y2:13,stroke:t.cyan,strokeWidth:"2"}),e.jsx("text",{x:906,y:17,fill:t.inkMid,children:p})]})]})}function H({retention:a,dur:p}){const h=d=>44+d*940/Math.max(1,a.length-1),f=d=>172-d/100*158,y=a.map((d,r)=>`${r===0?"M":"L"} ${h(r).toFixed(1)} ${f(d.pct).toFixed(1)}`).join(" ");return e.jsxs("svg",{viewBox:"0 0 1000 200",style:{width:"100%",height:"auto",display:"block"},role:"img","aria-label":"Retention curve",children:[[0,25,50,75,100].map(d=>e.jsxs("g",{children:[e.jsx("line",{x1:44,y1:f(d),x2:984,y2:f(d),stroke:"rgba(168,85,247,0.1)",strokeWidth:"1",strokeDasharray:"3 5"}),e.jsxs("text",{x:36,y:f(d)+3,textAnchor:"end",style:{font:`700 9px ${n.mono}`},fill:t.inkLow,children:[d,"%"]})]},d)),e.jsx("path",{d:`${y} L ${h(a.length-1)} 172 L ${h(0)} 172 Z`,fill:"rgba(217,70,239,0.13)"}),e.jsx("path",{d:y,fill:"none",stroke:t.magenta,strokeWidth:"2"}),[.25,.5,.75].map(d=>{const r=Math.round(d*(a.length-1));return e.jsxs("g",{children:[e.jsx("line",{x1:h(r),y1:f(a[r]?.pct??0),x2:h(r),y2:172,stroke:"rgba(34,211,238,0.5)",strokeWidth:"1",strokeDasharray:"2 4"}),e.jsxs("text",{x:h(r),y:192,textAnchor:"middle",style:{font:`700 8.5px ${n.mono}`},fill:t.cyan,children:[Math.round(d*100),"% · ",a[r]?.pct??0,"%"]})]},d)}),e.jsxs("text",{x:984,y:192,textAnchor:"end",style:{font:`700 8.5px ${n.mono}`},fill:t.inkDim,children:[$(p)," TOTAL"]})]})}function N({funnel:a}){const p=Math.max(1,a[0]?.n??1);return e.jsx("div",{style:{display:"grid",gap:8},children:a.map((s,x)=>{const o=x>0?a[x-1].n:s.n,S=o>0&&x>0?Math.round((o-s.n)/o*100):0,m=s.stage==="PAID";return e.jsxs("div",{style:{display:"grid",gridTemplateColumns:"86px 1fr 170px",alignItems:"center",gap:12},children:[e.jsx("div",{style:{fontFamily:n.mono,fontSize:10,letterSpacing:"0.12em",color:m?t.emerald:t.inkMid,fontWeight:700},children:s.stage}),e.jsx("div",{style:{height:18,background:"rgba(255,255,255,0.04)",borderRadius:9,overflow:"hidden"},children:e.jsx("div",{style:{width:`${Math.max(1.2,s.n/p*100)}%`,height:"100%",borderRadius:9,background:m?`linear-gradient(90deg, ${t.emerald}, rgba(110,231,183,0.5))`:`linear-gradient(90deg, ${t.magenta}, ${t.violet})`,boxShadow:`0 0 14px -4px ${m?t.emerald:t.magenta}`}})}),e.jsxs("div",{style:{fontFamily:n.mono,fontVariantNumeric:"tabular-nums",fontSize:11.5,color:t.ink,textAlign:"right"},children:[j(s.n)," ",e.jsxs("span",{style:{color:t.inkLow},children:["· ",s.pctOfLanded,"%"]}),x>0&&S>0&&e.jsxs("span",{style:{color:S>=50?t.coral:t.inkDim}
1,children:[" · â",S,"%"]})]})]},s.stage)})})}function F({title:a,rows:p}){return e.jsxs("div",{style:{background:t.cardBg,border:`1px solid ${t.hairline}`,borderRadius:14,padding:"16px 18px"},children:[e.jsx("div",{style:{fontFamily:n.mono,fontSize:9.5,letterSpacing:"0.2em",textTransform:"uppercase",color:t.inkLow,fontWeight:700,marginBottom:10},children:a}),e.jsx("div",{style:{display:"grid",gap:7},children:p.map(s=>e.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr auto auto",gap:10,alignItems:"baseline"},children:[e.jsx("span",{style:{fontFamily:n.mono,fontSize:11,color:t.ink,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:s.key}),e.jsx("span",{style:{fontFamily:n.mono,fontVariantNumeric:"tabular-nums",fontSize:11,color:t.inkMid},children:j(s.n)}),e.jsx("span",{style:{fontFamily:n.mono,fontVariantNumeric:"tabular-nums",fontSize:11,color:s.revenue>0?t.emerald:t.inkDim,minWidth:58,textAlign:"right"},children:s.revenue>0?g(s.revenue):"â"})]},s.key))})]})}function K(){const[,a]=D("/admin/vsl-money/:id"),p=a?.id||"landing",[s,x]=u.useState(30),[o,S]=u.useState(null),[m,T]=u.useState(null),[W,L]=u.useState([]),[h,f]=u.useState(null),[y,d]=u.useState(!0),[r,v]=u.useState(90);u.useEffect(()=>{fetch("/api/admin/vsl-intel/money-vsls",{credentials:"include"}).then(i=>i.json()).then(i=>L(i.campaigns||[])).catch(()=>{}),fetch("/api/admin/revenue",{credentials:"include"}).then(i=>i.ok?i.json():null).then(T).catch(()=>{})},[]),u.useEffect(()=>{let i=!1;return d(!0),f(null),fetch(`/api/admin/vsl-intel/campaign/${p}/money?days=${s}`,{credentials:"include"}).then(async c=>{if(!c.ok)throw new Error((await c.json().catch(()=>null))?.error||`HTTP ${c.status}`);return c.json()}).then(c=>{i||(S(c),d(!1))}).catch(c=>{i||(f(String(c.message||c)),d(!1))}),()=>{i=!0}},[p,s]);const l=o?.kpis,k=o?.stripeAll?.allTime,z=(l?.sessions??0)>0,M=(o?.site.daily??[]).filter(i=>r===0?!0:new Date(i.day)>=new Date(Date.now()-r*864e5)).map(i=>({day:i.day,revenue:i.revenue,n:i.sales}));return e.jsxs("div",{style:{minHeight:"100vh",background:E,color:t.ink,fontFamily:n.sans},children:[e.jsx(C,{}),e.jsxs("div",{style:{maxWidth:1500,margin:"0 auto",padding:"36px 28px 120px"},children:[e.jsxs("div",{style:{display:"flex",flexWrap:"wrap",alignItems:"flex-end",gap:18,justifyContent:"space-between"},children:[e.jsxs("div",{children:[e.jsx("div",{style:{fontFamily:n.mono,fontSize:10,letterSpacing:"0.24em",textTransform:"uppercase",color:t.magenta,fontWeight:700},children:"VSL NETWORK · THE MONEY VIEW"}),e.jsx("h1",{style:{fontFamily:n.sans,fontSize:38,fontWeight:700,color:t.pearl,letterSpacing:"-0.022em",margin:"6px 0 2px",textShadow:"0 0 36px rgba(217,70,239,0.25)"},children:"The Book"}),e.jsxs("div",{style:{fontFamily:n.mono,fontSize:11,color:t.inkLow,display:"flex",gap:12,flexWrap:"wrap"},children:[e.jsx("span",{children:"both Stripe accounts · live"}),e.jsx(B,{href:"/admin/vsl-network",style:{color:t.inkMid,textDecoration:"none"},children:"â network grid"})]})]}),e.jsxs("select",{value:p,onChange:i=>{window.location.href=`/admin/vsl-money/${i.target.value}`},style:{background:t.fieldBg,color:t.ink,border:`1px solid ${t.hairlineHi}`,borderRadius:10,padding:"8px 12px",fontFamily:n.mono,fontSize:11},children:[e.jsx("option",{value:"landing",children:"Landing VSL (auto)"}),W.map(i=>e.jsx("option",{value:i.id,children:i.name},i.id))]})]}),h&&e.jsx("div",{style:{marginTop:24,padding:16,borderRadius:12,border:`1px solid ${t.coral}`,color:t.coral,fontFamily:n.mono,fontSize:12},children:h}),y&&!h&&e.jsx("div",{style:{marginTop:40,fontFamily:n.mono,fontSize:12,color:t.inkLow},children:"Pulling the bookâ¦"}),o&&l&&!y&&e.jsxs(e.Fragment,{children:[e.jsx("div",{style:{marginTop:26,background:"linear-gradient(135deg, rgba(110,231,183,0.07), rgba(28,15,42,0.6))",border:"1px solid rgba(110,231,183,0.35)",borderRadius:18,padding:"26px 28px",boxShadow:"0 0 60px -24px rgba(110,231,183,0.5)"},children:e.jsxs("div",{style:{display:"flex",flexWrap:"wrap",gap:34,alignItems:"flex-end",justifyContent:"space-between"},children:[e.jsxs("div",{children:[e.jsx("div",{style:{fontFamily:n.mono,fontSize:10,letterSpacing:"0.24em",textTransform:"uppercase",color:t.emerald,fontWeight:700},children:"Gross revenue · all time · both accounts"}),e.jsx("div",{style:{fontFamily:n.mono,fontVariantNumeric:"tabular-nums",fontSize:"clamp(40px, 6vw, 62px)",fontWeight:700,color:t.emerald,lineHeight:1.05,textShadow:"0 0 40px rgba(110,231,183,0.45)"},children:k?g(k.gross):"â¦"}),e.jsxs("div",{style:{fontFamily:n.mono,fontSize:11.5,color:t.inkMid,marginTop:8,display:"flex",gap:18,flexWrap:"wrap"},children:[k&&e.jsxs("span",{children:[e.jsx("b",{style:{color:t.ink},children:j(k.count)})," sales",k.truncated?" (capped)":""]}),k&&Object.entries(k.byAccount).map(([i,c])=>e.jsxs("span",{children:[i,": ",e.jsx("b",{style:{color:t.ink},children:g(c.gross)})]},i))]})]}),e.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, minmax(120px, auto))",gap:22},children:[{l:"MRR",v:m?.mrr!=null?g(m.mrr):"â¦"},{l:"Active subs",v:m?.customers?String(m.customers.length):"â¦"},{l:"Last 30 days",v:m?.last30DaysRevenue!=null?g(m.last30DaysRevenue):"â¦"}].map(i=>e.jsxs("div",{children:[e.jsx("div",{style:{fontFamily:n.mono,fontSize:9,letterSpacing:"0.2em",textTransform:"uppercase",color:t.inkLow,fontWeight:700},children:i.l}),e.jsx("div",{style:{fontFamily:n.mono,fontVariantNumeric:"tabular-nums",fontSize:24,fontWeight:700,color:t.pearl,marginTop:3},children:i.v})]},i.l))})]})}),e.jsx(w,{eyebrow:"Every sale the webhooks ever wrote",title:`The tape · ${g(o.site.totalRevenue)} across ${j(o.site.totalSales)} recorded checkouts`,right:e.jsx("div",{style:{display:"flex",gap:8},children:[90,180,0].map(i=>e.jsx("button",{onClick:()=>v(i),style:{padding:"7px 13px",borderRadius:9,cursor:"pointer",fontFamily:n.mono,fontSize:10.5,fontWeight:700,border:`1px solid ${r===i?"transparent":t.hairlineHi}`,background:r===i?`linear-gradient(135deg, ${t.magenta}, ${t.violet})`:"transparent",color:r===i?"#fff":t.inkMid},children:i===0?"ALL":`${i}D`},i))})}),e.jsx("div",{style:{background:t.cardBg,border:`1px solid ${t.hairline}`,borderRadius:14,padding:"18px 16px 8px"},children:M.length?e.jsx(R,{rows:M,secondaryLabel:"SALES"}):e.jsx("div",{style:{fontFamily:n.mono,fontSize:11,color:t.inkDim,padding:20},children:"no recorded checkouts in this window"})}),e.jsx(w,{eyebrow:"Pixel verified · hoster data",title:`This VSL · ${o.campaign.name}`,right:e.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[e.jsx("a",{href:`/v/${o.campaign.slug}`,target:"_blank",rel:"noreferrer",style:{fontFamily:n.mono,fontSize:10.5,color:t.cyan,textDecoration:"none"},children:"open player â"}),[7,30,90,0].map(i=>e.jsx("button",{onClick:()=>x(i),style:{padding:"7px 13px",borderRadius:9,cursor:"pointer",fontFamily:n.mono,fontSize:10.5,fontWeight:700,border:`1px solid ${s===i?"transparent":t.hairlineHi}`,background:s===i?`linear-gradient(135deg, ${t.magenta}, ${t.violet})`:"transparent",color:s===i?"#fff":t.inkMid},children:i===0?"ALL":`${i}D`},i))]})}),z?e.jsxs(e.Fragment,{children:[e.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(150px, 1fr))",gap:12},children:[e.jsx(b,{label:"VSL revenue",value:g(l.revenue),sub:`${l.verifiedPostbacks} verified postbacks · ${o.stripeAll.attributionPct}% of window gross`,accent:t.emerald}),e.jsx(b,{label:"Sales",value:String(l.sales),sub:`AOV ${g(l.aov)}`}),e.jsx(b,{label:"CVR",value:`${l.cvr}%`,sub:`${l.playCvr}% of players`,accent:t.magenta}),e.jsx(b,{label:"Plays",value:j(l.plays),sub:`${l.playRate}% of ${j(l.sessions)} sessions`}),e.jsx(b,{label:"$ / play",value:g(l.revPerPlay),sub:`${g(l.revPerSession)} / session`,accent:t.emerald}),e.jsx(b,{label:"Avg watch",value:$(l.avgMaxWatchSec),sub:`${$(l.avgWatchSec)} active`}),e.jsx(b,{label:"CTA clicks",value:j(l.ctaClicks),sub:l.plays?`${Math.round(l.ctaClicks/l.plays*1e3)/10}% of players`:void 0}),e.jsx(b,{label:"Uniques",value:j(l.uniques),sub:l.sessionsCapped?"window capped":"bot-filtered"})]}),e.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(420px, 1fr))",gap:14,marginTop:14},children:[e.jsxs("div",{style:{background:t.cardBg,border:`1px solid ${t.hairline}`,borderRadius:14,padding:18},children:[e.jsx("div",{style:{fontFamily:n.mono,fontSize:9.5,letterSpacing:"0.2em",textTransform:"uppercase",color:t.inkLow,fontWeight:700,marginBottom:12},children:"Landed to paid"}),e.jsx(N,{funnel:o.funnel})]}),e.jsxs("div",{style:{background:t.cardBg,border:`1px solid ${t.hairline}`,borderRadius:14,padding:"18px 16px 8px"},children:[e.jsx("div",{style:{fontFamily:n.mono,fontSize:9.5,letterSpacing:"0.2em",textTransform:"uppercase",color:t.inkLow,fontWeight:700,marginBottom:8,paddingLeft:4},children:"Unique-reach retention"}),e.jsx(H,{retention:o.retention,dur:o.campaign.vslDurationSec})]})]}),o.daily.some(i=>i.revenue>0||i.sessions>0)&&e.jsxs("div",{style:{background:t.cardBg,border:`1px solid ${t.hairline}`,borderRadius:14,padding:"18px 16px 8px",marginTop:14},children:[e.jsx("div",{style:{fontFamily:n.mono,fontSize:9.5,letterSpacing:"0.2em",textTransform:"uppercase",color:t.inkLow,fontWeight:700,marginBottom:8,paddingLeft:4},children:"This VSL by day"}),e.jsx(R,{rows:o.daily.map(i=>({day:i.day,revenue:i.revenue,n:i.sessions})),secondaryLabel:"SESSIONS"})]}),o.sales.length>0&&e.jsxs(e.Fragment,{children:[e.jsx(w,{eyebrow:"Stripe verified",title:`The sales ledger · ${o.sales.length} most recent`}),e.jsx("div",{style:{background:t.cardBg,border:`1px solid ${t.hairline}`,borderRadius:14,overflow:"auto"},children:e.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",minWidth:900},children:[e.jsx("thead",{children:e.jsx("tr",{style:{borderBottom:`1px solid ${t.hairlineHi}`},children:["WHEN","AMOUNT","BUYER","MODE","STATUS","WATCHED","SEEN","SOURCE","GEO / DEVICE","STRIPE REF"].map((i,c)=>e.jsx("th",{style:{padding:"12px 14px",textAlign:c===1||c===5||c===6?"right":"left",fontFamily:n.mono,fontSize:9,letterSpacing:"0.18em",color:t.inkLow,fontWeight:700,whiteSpace:"nowrap"},children:i},i))})}),e.jsx("tbody",{children:o.sales.map((i,c)=>e.jsxs("tr",{style:{borderBottom:`1px solid ${t.hairline}`},children:[e.jsx("td",{style:{padding:"11px 14px",fontFamily:n.mono,fontSize:11,color:t.inkMid,whiteSpace:"nowrap"}
1,children:new Date(i.at).toLocaleString("en-US",{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"})}),e.jsx("td",{style:{padding:"11px 14px",fontFamily:n.mono,fontVariantNumeric:"tabular-nums",fontSize:12.5,fontWeight:700,color:t.emerald,textAlign:"right"},children:g(i.stripe?.amount??i.value)}),e.jsx("td",{style:{padding:"11px 14px",fontFamily:n.mono,fontSize:11,color:t.ink,maxWidth:200,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:i.stripe?.email||"â"}),e.jsx("td",{style:{padding:"11px 14px",fontFamily:n.mono,fontSize:10.5,color:i.stripe?.mode==="subscription"?t.violet:t.inkMid},children:i.stripe?.mode||"â"}),e.jsx("td",{style:{padding:"11px 14px",fontFamily:n.mono,fontSize:10.5,color:i.stripe?.status==="paid"||i.stripe?.status==="succeeded"?t.emerald:"#fbbf24"},children:i.stripe?.status||(i.externalRef?"unresolved":"db only")}),e.jsx("td",{style:{padding:"11px 14px",fontFamily:n.mono,fontVariantNumeric:"tabular-nums",fontSize:11,color:t.ink,textAlign:"right"},children:$(i.watch.maxWatchSec)}),e.jsxs("td",{style:{padding:"11px 14px",fontFamily:n.mono,fontVariantNumeric:"tabular-nums",fontSize:11,textAlign:"right",color:i.watch.pctSeen>=75?t.emerald:i.watch.pctSeen>=40?t.ink:t.coral},children:[i.watch.pctSeen,"%"]}),e.jsxs("td",{style:{padding:"11px 14px",fontFamily:n.mono,fontSize:10.5,color:t.inkMid},children:[i.source.utmSource||"direct",i.source.utmMedium?` / ${i.source.utmMedium}`:""]}),e.jsx("td",{style:{padding:"11px 14px",fontFamily:n.mono,fontSize:10.5,color:t.inkLow},children:[i.source.country,i.source.deviceType].filter(Boolean).join(" · ")||"â"}),e.jsx("td",{style:{padding:"11px 14px",fontFamily:n.mono,fontSize:9.5,color:t.inkDim,maxWidth:150,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:i.externalRef||"â"})]},c))})]})})]}),o.traffic.utmSources.length+o.traffic.countries.length+o.traffic.devices.length>0&&e.jsxs(e.Fragment,{children:[e.jsx(w,{eyebrow:"Where it comes from",title:"Traffic, split three ways"}),e.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(280px, 1fr))",gap:12},children:[o.traffic.utmSources.length>0&&e.jsx(F,{title:"UTM source",rows:o.traffic.utmSources}),o.traffic.countries.length>0&&e.jsx(F,{title:"Country",rows:o.traffic.countries}),o.traffic.devices.length>0&&e.jsx(F,{title:"Device",rows:o.traffic.devices})]})]})]}):e.jsx(V,{children:"The hoster pixel has no human sessions for this VSL in this window yet. The moment it takes traffic, this section fills itself: plays, quartiles, retention, CTA clicks, and every Stripe-verified sale with the buyer's watch behavior. The book above is unaffected; it reads straight from Stripe."}),e.jsx("div",{style:{marginTop:30,fontFamily:n.mono,fontSize:10,color:t.inkDim,lineHeight:1.7},children:"The book reads live from Stripe (succeeded charges minus refunds, both accounts). The tape is every checkout_completed the webhooks recorded, with dollar values. The VSL layer is pixel-verified and bot-filtered; its revenue is the sum of Stripe-verified conversion values attributed to this VSL's sessions, never an estimate."})]})]})]})}export{K 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.