PageSourceSearch

https://truckbox.app/assets/HeroDemo-BtcwPo57.js

js truckbox.app collected 2026-10-02 01:15:14 UTC 1,574 bytes, 1 lines download raw bytes

1import{r,e as h,j as e}from"./react-CrT6tmco.js";import{B as b}from"./BrowserChrome-DvLz-N1d.js";function f(){const n=r.useRef(null),[d,a]=r.useState(!1),[i,c]=r.useState(!1),s=h();return r.useEffect(()=>{const o=n.current;if(!o)return;const t=new IntersectionObserver(u=>{u.some(m=>m.isIntersecting)&&(t.disconnect(),a(!0))},{rootMargin:"250px"});t.observe(o);const l=window.setTimeout(()=>{t.disconnect(),a(!0)},2500);return()=>{t.disconnect(),window.clearTimeout(l)}},[]),e.jsxs("div",{className:"tb-hero-demo",ref:n,"data-cursor":!0,onClick:()=>s("/demo"),role:"link",tabIndex:0,onKeyDown:o=>{(o.key==="Enter"||o.key===" ")&&s("/demo")},children:[e.jsx(b,{compact:!0,url:"app.loadboard.demo/search-loads",tabTitle:"Load board — search",status:{text:i?"● TruckBox running":"● Loading",on:i}}),e.jsx("div",{className:"tb-hero-demo-stage",children:d&&e.jsx("iframe",{title:"TruckBox running on a simulated load board",src:"/demo?embed=hero",loading:"lazy",onLoad:()=>c(!0)})}),e.jsxs("button",{type:"button",className:"ed-btn ed-btn-accent tb-hero-demo-cta",onClick:()=>s("/demo"),children:[e.jsx("span",{className:"tb-hero-demo-cta-pulse","aria-hidden":"true"}),e.jsx("span",{children:"TRY THE DEMO"}),e.jsx("svg",{width:"15",height:"15",viewBox:"0 0 24 24","aria-hidden":"true",children:e.jsx("path",{d:"M5 12h13M12 5l7 7-7 7",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]}),e.jsx("span",{className:"tb-hero-demo-note",children:"Simulated board, demo data — no install, no account"})]})}export{f 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.