{"version":3,"file":"LazyLoad.Rw5jyuZj.mjs","names":["useRef","useState","__esmMin","init_ssg_sandbox_shims","_e","de","c","J","init_jsx_runtime","init_npm_react_18_3_1","ce","withLazyLoad","box","show","setShow","el","io","entries","Component","props","posterUrl","v","p","withPosterImage","src","base","srcSet","w","setAttr","k","withVideoButtonA11y","fix","root","VIDEO_LABEL","mo","withDescriptiveLink","a","card","heading","i","title","label","init_LazyLoad"],"sources":["https:/framerusercontent.com/modules/IQwte2H7jIRguffsRMFi/9qfrdiRgst59YsORzjQz/LazyLoad.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useEffect,useRef,useState}from\"react\";// Mounts the wrapped component (e.g. a below-the-fold Video) only when it comes\n// within 300px of the viewport. Until then an empty box of the same size is\n// rendered, so no video request is made on page load.\nexport function withLazyLoad(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const box=useRef(null);const[show,setShow]=useState(false);useEffect(()=>{if(show)return;const el=box.current;if(!el||typeof IntersectionObserver===\"undefined\"){setShow(true);return;}const io=new IntersectionObserver(entries=>{if(entries.some(e=>e.isIntersecting)){setShow(true);io.disconnect();}},{rootMargin:\"300px 0px\"});io.observe(el);return()=>io.disconnect();},[show]);if(show)return /*#__PURE__*/_jsx(Component,{ref:ref,...props});return /*#__PURE__*/_jsx(\"div\",{ref:box,className:props.className,style:{width:\"100%\",height:\"100%\",...props.style},\"aria-hidden\":\"true\"});});}// Replaces a Video layer with its poster image (no <video>, no video request).\n// Used on the Company \"Proven on the Warehouse Floor\" player, where playback\n// happens in the YouTube overlay; the poster is only a preview.\nfunction posterUrl(p){const v=p?.poster??p?.posterImage??p?.thumbnail;if(!v)return undefined;return typeof v===\"string\"?v:v.src||v.url;}export function withPosterImage(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const src=posterUrl(props);if(!src)return /*#__PURE__*/_jsx(Component,{ref:ref,...props});const base=src.split(\"?\")[0];const srcSet=[512,1024,2048].map(w=>`${base}?scale-down-to=${w} ${w}w`).join(\", \");return /*#__PURE__*/_jsx(\"img\",{ref:ref,className:props.className,src:`${base}?scale-down-to=1024`,srcSet:srcSet,sizes:\"(max-width: 809px) 100vw, 1152px\",alt:\"\",\"aria-hidden\":\"true\",loading:\"lazy\",decoding:\"async\",style:{...props.style,width:\"100%\",height:\"100%\",objectFit:\"cover\",display:\"block\"}});});}// Company video trigger: gives the focusable (tappable) root an accessible name\n// and button role, and removes the decorative inner Play icon from tab order.\nconst VIDEO_LABEL=\"Play video: Proven on the Warehouse Floor (opens YouTube player)\";function setAttr(el,k,v){if(el.getAttribute(k)!==v)el.setAttribute(k,v);}export function withVideoButtonA11y(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const box=useRef(null);useEffect(()=>{const el=box.current;if(!el)return;const fix=()=>{const root=el.querySelector('[tabindex=\"0\"]:not([data-framer-name=\"Play\"])');if(root){setAttr(root,\"role\",\"button\");setAttr(root,\"aria-label\",VIDEO_LABEL);}el.querySelectorAll('[data-framer-name=\"Play\"]').forEach(p=>{setAttr(p,\"tabindex\",\"-1\");setAttr(p,\"aria-hidden\",\"true\");if(p.hasAttribute(\"role\"))p.removeAttribute(\"role\");if(p.hasAttribute(\"aria-label\"))p.removeAttribute(\"aria-label\");});};fix();const mo=new MutationObserver(fix);mo.observe(el,{subtree:true,childList:true,attributes:true,attributeFilter:[\"tabindex\",\"role\",\"aria-label\"]});return()=>mo.disconnect();},[]);return /*#__PURE__*/_jsx(\"div\",{ref:box,style:{display:\"contents\"},children:/*#__PURE__*/_jsx(Component,{ref:ref,...props})});});}// Careers \"View role\" buttons: gives each link a unique accessible name,\n// \"View role: <role title>\", using the nearest heading in its card.\nexport function withDescriptiveLink(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const box=useRef(null);useEffect(()=>{const el=box.current;if(!el)return;const fix=()=>{const a=el.querySelector(\"a\");if(!a)return;let card=el.parentElement;let heading=null;for(let i=0;card&&i<6&&!heading;i++){heading=card.querySelector(\"h1,h2,h3,h4,h5,h6\");if(!heading)card=card.parentElement;}const title=heading?.textContent?.trim();if(!title)return;const label=`${(a.textContent||\"View\").trim()}: ${title}`;if(a.getAttribute(\"aria-label\")!==label)a.setAttribute(\"aria-label\",label);};fix();const mo=new MutationObserver(fix);mo.observe(el,{subtree:true,childList:true});return()=>mo.disconnect();},[]);return /*#__PURE__*/_jsx(\"div\",{ref:box,style:{display:\"contents\"},children:/*#__PURE__*/_jsx(Component,{ref:ref,...props})});});}// Hero logo row: replaces Framer's JS Ticker effect (per-frame main-thread\n// work) with a compositor-run transform loop. Leftward at 30 px/s, matching\n// the old effect's 30% speed. Clones are aria-hidden; static for\n// prefers-reduced-motion. Apply to the logo stack after removing its Ticker effect.\nexport function withCSSTicker(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const box=useRef(null);useEffect(()=>{const el=box.current;if(!el||typeof el.animate!==\"function\")return;if(window.matchMedia&&window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches)return;const originals=Array.from(el.children);if(!originals.length)return;const gap=parseFloat(getComputedStyle(el).columnGap)||0;const setWidth=originals.reduce((s,n)=>s+n.getBoundingClientRect().width,0)+gap*originals.length;const clones=[];for(let k=0;k<2;k++){for(const n of originals){const c=n.cloneNode(true);c.setAttribute(\"aria-hidden\",\"true\");c.removeAttribute(\"id\");clones.push(c);el.appendChild(c);}}const prev=el.getAttribute(\"style\")||\"\";el.style.width=\"max-content\";el.style.flex=\"none\";el.style.alignSelf=\"flex-start\";el.style.willChange=\"transform\";const anim=el.animate([{transform:\"translate3d(0px, 0, 0)\"},{transform:\"translate3d(\"+-setWidth+\"px, 0, 0)\"}],{duration:setWidth/30*1e3,iterations:Infinity,easing:\"linear\"});return()=>{anim.cancel();clones.forEach(c=>c.remove());el.setAttribute(\"style\",prev);};},[]);return /*#__PURE__*/_jsx(Component,{...props,ref:n=>{box.current=n;if(typeof ref===\"function\")ref(n);else if(ref)ref.current=n;}});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withVideoButtonA11y\":{\"type\":\"reactHoc\",\"name\":\"withVideoButtonA11y\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCSSTicker\":{\"type\":\"reactHoc\",\"name\":\"withCSSTicker\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withLazyLoad\":{\"type\":\"reactHoc\",\"name\":\"withLazyLoad\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPosterImage\":{\"type\":\"reactHoc\",\"name\":\"withPosterImage\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withDescriptiveLink\":{\"type\":\"reactHoc\",\"name\":\"withDescriptiveLink\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LazyLoad.map"],"mappings":"A,8IAGA,SAAgBW,EAAa,EAAU,CAAC,MAAoB,iBAAY,EAAM,IAAM,CAAC,IAAMC,EAAIZ,EAAO,IAAI,EAAO,CAACa,EAAKC,GAASb,EAAS,EAAK,EAA6X,OAA3XS,MAAc,CAAC,GAAGG,EAAK,OAAO,IAAME,EAAGH,EAAI,QAAQ,GAAG,CAACG,GAAI,OAAO,qBAAuB,IAAY,CAACD,EAAQ,EAAI,EAAE,MAAO,CAAC,IAAME,EAAG,IAAI,qBAAqB,GAAS,CAAIC,EAAQ,KAAK,GAAG,EAAE,cAAc,IAAGH,EAAQ,EAAI,EAAEE,EAAG,WAAW,EAAG,EAAE,CAAC,WAAW,WAAW,CAAC,EAAiB,OAAfA,EAAG,QAAQD,CAAE,MAAYC,EAAG,WAAW,CAAE,EAAE,CAACH,CAAI,CAAC,EAAKA,EAAyB,gBAAKK,EAAU,CAAK,MAAI,GAAGC,CAAK,CAAC,EAAsB,gBAAK,MAAM,CAAC,IAAIP,EAAI,UAAUO,EAAM,UAAU,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,GAAGA,EAAM,KAAK,EAAE,cAAc,MAAM,CAAC,CAAE,CAAC,CAAE,CAGzpB,SAASC,EAAU,EAAE,CAAC,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