PageSourceSearch

https://social-flow-7333.taskade.app/chunks/AnalyticsPage-4BT3UQCC.js

js social-flow-7333.taskade.app collected 2026-10-03 15:05:28 UTC 2,938 bytes, 2 lines download raw bytes

1var __IMPORT_META_ENV={};var __PROCESS_ENV={NODE_ENV:"production"};
2import{a as x}from"/chunks/chunk-F6B5NAUB.js";import{c as h,d as s,e as k}from"/chunks/chunk-XT2PCKJC.js";import{a as f,b as v,c as w,d as b,e as y,f as a,g as C,i as N}from"/chunks/chunk-RDWS4Z5X.js";import{f as u}from"/chunks/chunk-EAOOV7XP.js";import{f as n,j as c,k as p,q as d,y as g}from"/chunks/chunk-SJJBCDNP.js";import{d as o,f as m}from"/chunks/chunk-OZLXG5XE.js";var e=o(m());function S(){let{nodes:l,loading:L}=x(u.analytics),i=l.reduce((t,r)=>({views:t.views+(s(r,"Views","/attributes/@views3")??0),likes:t.likes+(s(r,"Likes","/attributes/@likes3")??0),comments:t.comments+(s(r,"Comments","/attributes/@comm3")??0),followers:t.followers+(s(r,"Followers","/attributes/@foll3")??0)}),{views:0,likes:0,comments:0,followers:0});return(0,e.jsxs)("section",{children:[(0,e.jsx)(y,{eyebrow:"Learn from the signal",title:"Analytics",description:"A grounded snapshot of the metrics stored in your Analytics project. Replace the sample rows with live platform data during integration."}),L?(0,e.jsx)(C,{}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",children:[(0,e.jsx)(a,{label:"Views",value:i.views.toLocaleString(),tone:"positive"}),(0,e.jsx)(a,{label:"Likes",value:i.likes.toLocaleString()}),(0,e.jsx)(a,{label:"Comments",value:i.comments.toLocaleString()}),(0,e.jsx)(a,{label:"Followers",value:i.followers.toLocaleString()})]}),l.length===0?(0,e.jsx)("div",{className:"mt-6",children:(0,e.jsx)(N,{title:"Your analytics will appear here",description:"Add metric rows to the Analytics project to start seeing platform performance."})}):(0,e.jsxs)(f,{className:"mt-6",children:[(0,e.jsx)(v,{children:(0,e.jsxs)(w,{className:"flex items-center gap-2 text-base",children:[(0,e.jsx)(n,{className:"size-4 text-primary"}),"Platform snapshots"]})}),(0,e.jsx)(b,{className:"space-y-4",children:l.map(t=>(0,e.jsxs)("div",{className:"rounded-xl border p-4",children:[(0,e.jsxs)("div",{className:"flex items-center justify-between",children:[(0,e.jsx)("p",{className:"font-medium",children:k(t,"Title")??"Metric snapshot"}),(0,e.jsx)("span",{className:"text-xs capitalize text-muted-foreground",children:h(t,"Platform","/attributes/@plat3")})]}),(0,e.jsxs)("div",{className:"mt-4 grid grid-cols-2 gap-4 text-sm sm:grid-cols-4",children:[(0,e.jsxs)("span",{children:[(0,e.jsx)(c,{className:"mr-1 inline size-3 text-primary"}),s(t,"Views","/attributes/@views3")??0]}),(0,e.jsxs)("span",{children:[(0,e.jsx)(p,{className:"mr-1 inline size-3 text-primary"}),s(t,"Likes","/attributes/@likes3")??0]}),(0,e.jsxs)("span",{children:[(0,e.jsx)(d,{className:"mr-1 inline size-3 text-primary"}),s(t,"Comments","/attributes/@comm3")??0]}),(0,e.jsxs)("span",{children:[(0,e.jsx)(g,{className:"mr-1 inline size-3 text-primary"}),s(t,"Followers","/attributes/@foll3")??0]})]})]},t.id))})]})]})]})}export{S 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.