PageSourceSearch

https://regalweddings.onhercules.app/assets/meta-report-page-BM9u-NL8.js

js regalweddings.onhercules.app collected 2026-10-03 05:06:44 UTC 25,388 bytes, 1 lines download raw bytes

1import{Y as M,r as A,j as e,L as f,D as T,g as E,O as u,v as C}from"./index-Dr3-kvaC.js";import{S as j}from"./skeleton-CFUpgEgw.js";import{E as R,a as I,b as L,c as U,d as D}from"./empty-CO24gjc5.js";import{a as $,U as B,b as z,A as F}from"./admin-sign-in-button-B-bKueNr.js";import{t as y,s as _,l as k,S as b}from"./dashboard-page-Cn0Xm0LF.js";import{A as P}from"./arrow-left-RpDWT2-F.js";import{C as G}from"./chart-no-axes-column-fCg6b_yT.js";import{U as O}from"./users-B0hXB_SL.js";import{C as V}from"./clock-B0rDetpR.js";import"./use-admin-access-BrRw0HNV.js";import"./eye-dk5ztEON.js";import"./formatDistanceToNow-Dq9zIei8.js";import"./en-US-DL7QEam1.js";import"./format-COqRDd6y.js";import"./file-text-BDiaVGrt.js";import"./parseISO-dE45lgqb.js";import"./shield-qhAedq46.js";const W=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],H=M("layers",W),m={fontFamily:"'Cormorant Garamond', serif",fontSize:"17px",fontWeight:600,letterSpacing:"0.10em",textTransform:"uppercase",color:"oklch(0.52 0.09 70)"},x="oklch(0.968 0.008 70)",h="oklch(0.13 0 0 / 0.08)",l="oklch(0.42 0.16 300)",v="oklch(0.962 0.015 300)",N="oklch(0.82 0.07 300)",w=[{label:"Today",days:0},{label:"7 days",days:7},{label:"30 days",days:30},{label:"90 days",days:90}];function q(t){if(!t)return"—";if(t<60)return`${t}s`;const r=Math.floor(t/60),a=t%60;return a>0?`${r}m ${a}s`:`${r}m`}function o({icon:t,label:r,value:a,sub:c,color:n,highlight:s}){return e.jsxs("div",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:60:4","data-hercules-name":"div",className:"rounded-xl p-4 flex flex-col gap-1",style:{background:s?v:x,border:`1px solid ${s?N:h}`},children:[e.jsxs("div",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:67:6","data-hercules-name":"div",className:"flex items-center gap-1.5 text-[10px] tracking-widest uppercase",style:{color:s?"oklch(0.55 0.10 300)":"oklch(0.50 0 0)"},children:[t,r]}),e.jsx("p",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:74:6","data-hercules-name":"p",className:"text-3xl leading-tight",style:{...b,color:n??(s?l:"oklch(0.20 0 0)")},children:a}),c&&e.jsx("p",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:80:14","data-hercules-name":"p",className:"text-[10px] text-muted-foreground",children:c})]})}function S({value:t,total:r,color:a}){const c=r>0?Math.round(t/r*100):0;return e.jsxs("div",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:89:4","data-hercules-name":"div",className:"flex items-center gap-2 w-full",children:[e.jsx("div",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:90:6","data-hercules-name":"div",className:"flex-1 h-1.5 rounded-full bg-foreground
1/8 overflow-hidden",children:e.jsx("div",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:91:8","data-hercules-name":"div",className:"h-full rounded-full",style:{width:`${c}%`,background:a}})}),e.jsxs("span",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:93:6","data-hercules-name":"span",className:"text-[10px] text-foreground/40 w-6 text-right",children:[c,"%"]})]})}function Q({fromMs:t,toMs:r}){const a=T(E.events.getMetaCampaignReport,{fromMs:t,toMs:r});if(a===void 0)return e.jsxs("div",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:104:6","data-hercules-name":"div",className:"flex flex-col gap-4",children:[e.jsx("div",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:105:8","data-hercules-name":"div",className:"grid grid-cols-2 gap-3",children:Array.from({length:6}).map((s,i)=>e.jsx(j,{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:107:12","data-hercules-name":"Skeleton",className:"h-20 rounded-xl"},i))}),e.jsx(j,{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:110:8","data-hercules-name":"Skeleton",className:"h-40 rounded-xl mt-2"})]});if(!a||a.totalSessions===0)return e.jsx(R,{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:117:6","data-hercules-name":"Empty",children:e.jsxs(I,{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:118:8","data-hercules-name":"EmptyHeader",children:[e.jsx(L,{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:119:10","data-hercules-name":"EmptyMedia",variant:"icon",children:e.jsx(G,{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:120:12","data-hercules-name":"BarChart2"})}),e.jsx(U,{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:122:10","data-hercules-name":"EmptyTitle",children:"No Meta / Instagram data yet"}),e.jsx(D,{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:123:10","data-hercules-name":"EmptyDescription",children:"Visitor data will appear here as soon as anyone lands on your site from Facebook or Instagram."})]})});const c=a.utmSessions>0,n=a.totalSessions>0?Math.round(a.engagedCount/a.totalSessions*100):null;return e.jsxs("div",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:138:4","data-hercules-name":"div",className:"flex flex-col gap-8",children:[e.jsxs("section",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:141:6","data-hercules-name":"section",className:"flex flex-col gap-3",children:[e.jsx("p",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:142:8","data-hercules-name":"p",style:m,children:"Traffic Overview"}),e.jsxs("div",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:143:8","data-hercules-name":"div",className:"grid grid-cols-2 md:grid-cols-3 gap-3",children:[e.jsx(o,{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:144:10","data-hercules-name":"Tile",icon:e.jsx(O,{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:144:22","data-hercules-name":"Users",size:11}),label:"Visitors",value:a.totalSessions,sub:"page views from Meta / Instagram",highlight:!0}),e.jsx(o,{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:145:10","data-hercules-name":"Tile",icon:e.jsx(H,{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:145:22","data-hercules-name":"Layers",size:11}),label:"Page Views",value:a.totalPageViews,sub:"pages browsed",highlight:!0}),e.jsx(o,{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:146:10","data-hercules-name":"Tile",icon:e.jsx(V,{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:146:22","data-hercules-name":"Clock",size:11}),label:"Avg. Time on Site",value:q(a.avgDurationSecs),sub:"per session",highlight:!0})]})]}),e.jsxs("section",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:151:6","data-hercules-name":"section",className:"flex flex-col gap-3",children:[e.jsx("p",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:152:8","data-hercules-name":"p",style:m,children:"Engagement Quality"}),e.jsxs("div",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:153:8","data-hercules-name":"div",className:"grid grid-cols-2 md:grid-cols-3 gap-3",children:[e.jsx(o,{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:154:10","data-hercules-name":"Tile",icon:e.jsx(u,{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:155:18","data-hercules-name":"TrendingUp",size:11}),label:"Engaged Sessions",value:a.engagedCount,sub:"scroll 50%+ · 2+ pages · CTA+60s · video/story"}),e.jsx(o,{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:160:10","data-hercules-name":"Tile",icon:e.jsx(u,{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:161:18","data-hercules-name":"TrendingUp",size:11}),label:"Engagement Rate",value:n!==null?`${n}%`:"—",sub:"none of the above signals",color:n!==null&&n>=30?"oklch(0.52 0.15 145)":"oklch(0.20 0 0)"}),e.jsx(o,{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:167:10","data-hercules-name":"Tile",icon:e.jsx(u,{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:168:18","data-hercules-name":"TrendingUp",size:11}),label:"Bounce Rate",value:a.bounceRate!==null?`${a.bounceRate}%`:"—",sub:"left after 1 page",color:a.bounceRate!==null&&a.bounceRate<60?"oklch(0.52 0.15 145)":"oklch(0.60 0.18 27)"})]}),e.jsxs("div",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:175:8","data-hercules-name":"div",className:"rounded-xl px-4 py-3 text-[11px] text-muted-foreground leading-relaxed",style:{background:x,border:`1px solid ${h}`},children:[e.jsx("strong",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:179:10","data-hercules-name":"strong",className:"text-foreground",children:"What this means:"})," An engagement rate above 30% is healthy for wedding planning. A lower bounce rate means visitors are interested enough to explore more pages."]})]}),e.jsxs("section",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:184:6","data-hercules-name":"section",className:"flex flex-col gap-3",children:[e.jsx("p",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:185:8","data-hercules-name":"p",style:m,children:"Facebook vs Instagram"}),e.jsxs("div",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:186:8","data-hercules-name":"div",className:"rounded-xl p-4 flex flex-col gap-3",style:{background:x,border:`1px solid ${h}`},children:[e.jsxs("div",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:190:10","data-hercules-name":"div",className:"flex items-center justify-between",children:[e.jsxs("div",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:191:12","data-hercules-name":"div",className:"flex flex-col gap-0.5",children:[e.jsx("p",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:192:14","data-hercules-name":"p",className:"text-[10px] text-foreground
1/40 uppercase tracking-widest",children:"Facebook Ads"}),e.jsx("p",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:193:14","data-hercules-name":"p",className:"text-2xl font-semibold",style:{color:"oklch(0.42 0.16 240)"},children:a.fbSessions})]}),e.jsxs("div",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:197:12","data-hercules-name":"div",className:"flex flex-col gap-0.5 text-right",children:[e.jsx("p",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:198:14","data-hercules-name":"p",className:"text-[10px] text-foreground/40 uppercase tracking-widest",children:"Instagram"}),e.jsx("p",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:199:14","data-hercules-name":"p",className:"text-2xl font-semibold",style:{color:l},children:a.igSessions})]})]}),e.jsx("div",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:205:10","data-hercules-name":"div",className:"h-3 rounded-full overflow-hidden flex",children:a.totalSessions>0&&e.jsxs(e.Fragment,{children:[e.jsx("div",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:208:16","data-hercules-name":"div",className:"h-full",style:{width:`${Math.round(a.fbSessions/a.totalSessions*100)}%`,background:"oklch(0.42 0.16 240)"}}),e.jsx("div",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:215:16","data-hercules-name":"div",className:"h-full flex-1",style:{background:l,opacity:.6}})]})}),e.jsxs("p",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:222:10","data-hercules-name":"p",className:"text-[10px] text-foreground/30",children:["Facebook: ",a.totalSessions>0?Math.round(a.fbSessions/a.totalSessions*100):0,"% · Instagram: ",a.totalSessions>0?Math.round(a.igSessions/a.totalSessions*100):0,"%"]})]})]}),e.jsxs("section",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:229:6","data-hercules-name":"section",className:"flex flex-col gap-3",children:[e.jsx("p",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:230:8","data-hercules-name":"p",style:m,children:"WhatsApp Enquiries"}),e.jsxs("div",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:231:8","data-hercules-name":"div",className:"rounded-xl p-4 flex items-center gap-4",style:{background:"oklch(0.96 0.02 145)",border:"1px solid oklch(0.82 0.06 145)"},children:[e.jsx("div",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:235:10","data-hercules-name":"div",className:"w-10 h-10 rounded-full flex items-center justify-center flex-shrink-0",style:{background:"oklch(0.52 0.15 145)"},children:e.jsx(C,{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:236:12","data-hercules-name":"MessageCircle",size:18,className:"text-white"})}),e.jsxs("div",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:238:10","data-hercules-name":"div",className:"flex-1",children:[e.jsx("p",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:239:12","data-hercules-name":"p",className:"text-3xl leading-none",style:{...b,color:"oklch(0.30 0.12 145)"},children:a.waClicks}),e.jsx("p",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:242:12","data-hercules-name":"p",className:"text-[10px] text-foreground/50 mt-0.5",children:"WhatsApp button taps (all sources, this period)"})]}),a.totalSessions>0&&a.waClicks>0&&e.jsxs("div",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:245:12","data-hercules-name":"div",className:"text-right",children:[e.jsxs("p",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:246:14","data-hercules-name":"p",className:"text-lg font-semibold",style:{color:"oklch(0.40 0.14 145)"},children:[Math.round(a.waClicks/a.totalSessions*100),"%"]}),e.jsx("p",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:249:14","data-hercules-name":"p",className:"text-[9px] text-foreground/30",children:"conversion rate"})]})]}),e.jsx("p",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:253:8","data-hercules-name":"p",className:"text-[10px] text-foreground/30 px-1",children:"WhatsApp taps cannot be split by traffic source, so this shows all taps in the selected period."})]}),a.topLandingPages.length>0&&e.jsxs("section",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:260:8","data-hercules-name":"section",className:"flex flex-col gap-3",children:[e.jsx("p",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:261:10","data-hercules-name":"p",style:m,children:"Where Meta Visitors Land"}),e.jsx("div",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:262:10","data-hercules-name":"div",className:"flex flex-col gap-2",children:a.topLandingPages.map(({page:s,count:i})=>e.jsxs("div",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:264:14","data-hercules-name":"div",className:"rounded-xl px-4 py-3 flex items-center gap-3",style:{background:x,border:`1px solid ${h}`},children:[e.jsx("p",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:269:16","data-hercules-name":"p",className:"flex-1 text-sm font-medium text-foreground",children:s}),e.jsxs("div",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:270:16","data-hercules-name":"div",className:"flex flex-col items-end gap-1 w-32",children:[e.jsxs("p",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:271:18","data-hercules-name":"p",className:"text-sm font-semibold",style:{color:l},children:[i," views"]}),e.jsx(S,{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:272:18","data-hercules-name":"MiniBar",value:i,total:a.totalPageViews,color:l})]})]},s))})]}),e.jsxs("section",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:281:6","data-hercules-name":"section",className:"flex flex-col gap-3",children:[e.jsxs("div",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:282:8","data-hercules-name":"div",className:"flex items-baseline gap-2",children:[e.jsx("p",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:283:10","data-hercules-name":"p",style:m,children:"Campaign Breakdown"}),e.jsx("span",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:284:10","data-hercules-name":"span",className:"text-[10px] text-foreground
1/30",children:"UTM-tagged only"})]}),c?e.jsxs("div",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:297:10","data-hercules-name":"div",className:"flex flex-col gap-2",children:[e.jsxs("div",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:298:12","data-hercules-name":"div",className:"flex items-center gap-3 px-4",children:[e.jsx("span",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:299:14","data-hercules-name":"span",className:"flex-1 text-[9px] uppercase tracking-widest text-foreground/25",children:"Campaign name"}),e.jsx("span",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:300:14","data-hercules-name":"span",className:"w-14 text-right text-[9px] uppercase tracking-widest text-foreground/25",children:"Sessions"}),e.jsx("span",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:301:14","data-hercules-name":"span",className:"w-10 text-right text-[9px] uppercase tracking-widest text-foreground/25",children:"FB"}),e.jsx("span",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:302:14","data-hercules-name":"span",className:"w-10 text-right text-[9px] uppercase tracking-widest text-foreground/25",children:"IG"})]}),a.campaigns.map(s=>{const i=a.utmSessions>0?Math.round(s.sessions/a.utmSessions*100):0,p=Object.entries(s.contents).sort((d,g)=>g[1]-d[1]);return e.jsxs("div",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:308:16","data-hercules-name":"div",className:"rounded-xl px-4 py-3 flex flex-col gap-2",style:{background:v,border:`1px solid ${N}`},children:[e.jsxs("div",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:313:18","data-hercules-name":"div",className:"flex items-center gap-3",children:[e.jsxs("div",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:314:20","data-hercules-name":"div",className:"flex-1 min-w-0",children:[e.jsx("p",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:315:22","data-hercules-name":"p",className:"text-sm font-medium text-foreground",children:s.campaign}),p.length>0&&e.jsx("div",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:317:24","data-hercules-name":"div",className:"flex flex-wrap gap-1 mt-1",children:p.map(([d,g])=>e.jsxs("span",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:319:28","data-hercules-name":"span",className:"text-[10px] px-1.5 py-0.5 rounded-full",style:{background:"oklch(0.93 0.04 300)",color:l},children:[d," × ",g]},d))})]}),e.jsxs("div",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:330:20","data-hercules-name":"div",className:"flex items-center gap-3 shrink-0 text-right",children:[e.jsxs("div",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:331:22","data-hercules-name":"div",className:"w-14",children:[e.jsx("p",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:332:24","data-hercules-name":"p",className:"text-sm font-semibold",style:{color:l},children:s.sessions}),e.jsxs("p",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:333:24","data-hercules-name":"p",className:"text-[9px] text-foreground/30",children:[i,"%"]})]}),e.jsx("div",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:335:22","data-hercules-name":"div",className:"w-10",children:e.jsx("p",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:336:24","data-hercules-name":"p",className:"text-xs text-foreground/60",children:s.facebook})}),e.jsx("div",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:338:22","data-hercules-name":"div",className:"w-10",children:e.jsx("p",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:339:24","data-hercules-name":"p",className:"text-xs text-foreground/60",children:s.instagram})})]})]}),e.jsx(S,{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:343:18","data-hercules-name":"MiniBar",value:s.sessions,total:a.utmSessions,color:l})]},s.campaign)}),e.jsxs("p",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:347:12","data-hercules-name":"p",className:"text-[10px] text-foreground/25 text-center pt-1",children:[a.utmSessions," of ",a.totalSessions," total Meta sessions are UTM-tagged"]})]}):e.jsxs("div",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:287:10","data-hercules-name":"div",className:"rounded-xl px-4 py-5 text-center",style:{background:v,border:`1px solid ${N}`},children:[e.jsx("p",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:291:12","data-hercules-name":"p",className:"text-sm font-medium",style:{color:l},children:"No UTM data yet"}),e.jsx("p",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:292:12","data-hercules-name":"p",className:"text-[11px] text-foreground
1/40 mt-1",children:"Campaign names will appear here once visitors arrive via your UTM-tagged ads. UTMs were added on 8 Sep 2026 — data builds up as ads run."})]})]}),e.jsxs("div",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:355:6","data-hercules-name":"div",className:"flex items-center justify-center gap-4 py-2 border-t border-border/30",children:[e.jsx(f,{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:356:8","data-hercules-name":"Link",to:"/admin/utm-builder",className:"text-[11px] text-foreground/40 hover:text-foreground/70 transition-colors underline underline-offset-2",children:"UTM Link Builder"}),e.jsx("span",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:362:8","data-hercules-name":"span",className:"text-foreground/20",children:"·"}),e.jsx(f,{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:363:8","data-hercules-name":"Link",to:"/admin",className:"text-[11px] text-foreground/40 hover:text-foreground/70 transition-colors underline underline-offset-2",children:"Back to Dashboard"})]})]})}function oe(){const[t,r]=A.useState(0),a=w[t],c=y(new Date),n=a.days===0?c:y(_(new Date,a.days)),{fromMs:s}=k(n),{toMs:i}=k(c);return e.jsxs("div",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:384:4","data-hercules-name":"div",className:"min-h-screen bg-background pb-24",children:[e.jsx("header",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:385:6","data-hercules-name":"header",className:"sticky top-0 z-40 bg-background/95 backdrop-blur-sm border-b border-border/40",children:e.jsxs("div",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:386:8","data-hercules-name":"div",className:"max-w-[780px] mx-auto px-4 h-14 flex items-center gap-3",children:[e.jsx(f,{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:387:10","data-hercules-name":"Link",to:"/admin",className:"w-8 h-8 flex items-center justify-center rounded-full hover:bg-foreground
1/5 transition-colors cursor-pointer",children:e.jsx(P,{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:391:12","data-hercules-name":"ArrowLeft",size:18,className:"text-foreground/70"})}),e.jsxs("div",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:393:10","data-hercules-name":"div",className:"flex items-center gap-2 flex-1",children:[e.jsx("span",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:394:12","data-hercules-name":"span",className:"text-base",children:"📸"}),e.jsxs("div",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:395:12","data-hercules-name":"div",children:[e.jsx("h1",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:396:14","data-hercules-name":"h1",className:"text-lg text-primary leading-tight",style:{fontFamily:"'Cormorant Garamond', serif",letterSpacing:"0.1em"},children:"Meta Ads Report"}),e.jsx("p",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:402:14","data-hercules-name":"p",className:"text-[10px] text-muted-foreground tracking-wide",children:"Facebook & Instagram traffic · engagement · campaigns"})]})]})]})}),e.jsxs("div",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:410:6","data-hercules-name":"div",className:"max-w-[780px] mx-auto px-4 py-6",children:[e.jsx("div",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:412:8","data-hercules-name":"div",className:"flex gap-2 mb-6",children:w.map((p,d)=>e.jsx("button",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:414:12","data-hercules-name":"button",onClick:()=>r(d),className:"px-3 py-1.5 rounded-full text-xs transition-all cursor-pointer",style:{background:t===d?l:x,color:t===d?"white":"oklch(0.55 0 0)",border:`1px solid ${t===d?l:h}`},children:p.label},p.label))}),e.jsx($,{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:429:8","data-hercules-name":"AuthLoading",children:e.jsx("div",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:430:10","data-hercules-name":"div",className:"flex flex-col gap-3",children:Array.from({length:5}).map((p,d)=>e.jsx(j,{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:432:14","data-hercules-name":"Skeleton",className:"h-16 rounded-xl"},d))})}),e.jsx(B,{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:436:8","data-hercules-name":"Unauthenticated",children:e.jsxs("div",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:437:10","data-hercules-name":"div",className:"flex flex-col items-center gap-4 py-16 rounded-2xl text-center",style:{background:x,border:`1px solid ${h}`},children:[e.jsx("p",{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:441:12","data-hercules-name":"p",className:"text-2xl text-primary",style:b,children:"Admin Access Only"}),e.jsx(z,{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:444:12","data-hercules-name":"AdminSignInButton"})]})}),e.jsx(F,{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:447:8","data-hercules-name":"Authenticated",children:e.jsx(Q,{"data-hercules-id":"src/pages/admin/meta-report-page.tsx:448:10","data-hercules-name":"MetaReportInner",fromMs:s,toMs:i})})]})]})}export{oe 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.