PageSourceSearch

https://travelbuddy.travelmatch.net/assets/online-indicator-XIAMQ_Fj.js

js travelmatch.net collected 2026-09-30 05:41:31 UTC 1,124 bytes, 1 lines download raw bytes

1import{r as l,b5 as g,u,j as s}from"./index-CITy-fg1.js";function c(){const n=u();return a=>{if(!a)return n("online.never","never active");const t=Date.now()-new Date(a).getTime();if(t<5*6e4)return n("online.now","Online now");const r=Math.floor(t/6e4);if(r<60)return n("online.mins_ago","{n} min ago").replace("{n}",String(r));const e=Math.floor(r/60);if(e<24)return n("online.hours_ago","{n} hr ago").replace("{n}",String(e));const o=Math.floor(e/24);return o<30?(o===1?n("online.day_ago","{n} day ago"):n("online.days_ago","{n} days ago")).replace("{n}",String(o)):n("online.long_ago","a long time ago")}}function f({lastSeen:n,showLabel:a=!0}){const[t,r]=l.useState(!1);l.useEffect(()=>r(!0),[]);const e=t?g(n):!1,o=u(),i=c();return s.jsxs("span",{className:"inline-flex items-center gap-1.5 text-xs text-muted-foreground",children:[s.jsx("span",{"aria-hidden":!0,className:`inline-block h-2 w-2 rounded-full ${e?"bg-emerald-400 shadow-[0_0_8px_rgba(74,222,128,0.8)]":"bg-muted-foreground/40"}`}),a&&s.jsx("span",{children:t?e?o("online.online","Online"):i(n):o("online.long_ago","a long time ago")})]})}export{f as O};

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.