PageSourceSearch

https://treasurevalleysolutions.com/assets/recent-activity-CJEKp6Ra.js

js treasurevalleysolutions.com collected 2026-10-08 20:46:36 UTC 1,122 bytes, 1 lines download raw bytes

1import{r,j as n}from"./vendor-IF5L2TGO.js";const l=new Set;function f({path:e,className:t=""}){const[s,o]=r.useState(null),a=r.useRef(!1);return r.useEffect(()=>{if(a.current||l.has(e))return;a.current=!0,l.add(e);const c=u();fetch("/api/page-view",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e,visitorId:c})}).then(i=>i.json()).then(i=>{i.views>0&&o(i.views)}).catch(()=>{})},[e]),s===null||s<1?null:n.jsxs("div",{className:`inline-flex items-center gap-2 text-sm text-slate-600 ${t}`,"data-testid":"recent-activity-indicator",children:[n.jsxs("span",{className:"relative flex h-2 w-2",children:[n.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-green-400 opacity-75"}),n.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-green-500"})]}),n.jsxs("span",{children:[s," ",s===1?"person":"people"," viewed this today"]})]})}function u(){const e="tvs_visitor_id";let t=localStorage.getItem(e);return t||(t=Math.random().toString(36).substring(2)+Date.now().toString(36),localStorage.setItem(e,t)),t}export{f as RecentActivity};

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.