1(function(){try{var e=typeof globalThis<`u`?globalThis:typeof global<`u`?global:typeof window<`u`?window:typeof self<`u`?self:{};e[`__faroGitHash_tenant-bff-production`]=`c61bc065b6bd53aa140c73a67fcc88e76ba813ea`}catch{}})(),(function(){try{var e=typeof globalThis<`u`?globalThis:typeof global<`u`?global:typeof window<`u`?window:typeof self<`u`?self:{};e[`__faroBundleId_tenant-bff-production`]=`c61bc065b6bd53aa140c73a67fcc88e76ba813ea`}catch{}})();import{s as e,t}from"./react-CYXcjjQQ.js";var n=e(t()),r=5,i=({onMoveStart:e,onMove:t,threshold:i=r,itemsOnLeftClassName:a=null,itemsOnRightClassName:o=null,margin:s=.02})=>{let c=(0,n.useRef)(null),l=(0,n.useRef)(null),u=(0,n.useRef)(!1),d=(0,n.useRef)(null),f=()=>{if(!a)return;let e=d.current.children[0]?.clientWidth;d.current.scrollLeft>=e*s?d.current.classList.add(a):d.current.classList.remove(a)},p=()=>{o&&(d.current.scrollLeft+d.current.clientWidth<=d.current.scrollWidth*(1-s)?d.current.classList.add(o):d.current.classList.remove(o))},m=n=>{let r=n-c.current;Math.abs(r)>i&&(u.current||(u.current=!0,e())),d.current.scrollLeft=l.current-r;let a=d.current.childNodes.length,o=d.current.scrollWidth/a,s=d.current.scrollLeft+d.current.clientWidth/2,m=Math.floor(s/o);f(),p(),t(m)},h=e=>{let t=e.touches[0].pageX;m(t)},g=e=>{let t=e.pageX;m(t)},_=e=>{c.current=e.touches[0].pageX,l.current=d.current.scrollLeft,u.current=!1,d.current.style.cursor=`grabbing`,document.addEventListener(`touchend`,v),document.addEventListener(`touchmove`,h),h(e)},v=()=>{d.current&&(d.current.style.cursor=`grab`),document.removeEventListener(`touchend`,v),document.removeEventListener(`touchmove`,h),setTimeout(()=>{u.current=!1},100)},y=e=>{c.current=e.pageX,l.current=d.current.scrollLeft,u.current=!1,d.current.style.cursor=`grabbing`,document.addEventListener(`mouseup`,b),document.addEventListener(`mousemove`,g),g(e)},b=()=>{d.current&&(d.current.style.cursor=`grab`),document.removeEventListener(`mouseup`,b),document.removeEventListener(`mousemove`,g),setTimeout(()=>{u.current=!1},100)};return(0,n.useEffect)(()=>{let e=d.current;e&&(e.style.cursor=`grab`);let t=null,n=()=>{t||=requestAnimationFrame(()=>{t=null,d.current&&(f(),p())})};return n(),e?.addEventListener(`scroll`,n,{passive:!0}),window.addEventListener(`resize`,n),()=>{t&&cancelAnimationFrame(t),e?.removeEventListener(`scroll`,n),window.removeEventListener(`resize`,n)}},[]),{isDragging:()=>u.current,containerRef:d,handleMouseDown:y,handleMouseUp:b,handleMouseMove:g,handleTouchStart:_,handleTouchMove:h,handleTouchEnd:v,navigateToItem:e=>{let t=d.current.childNodes.length,n=e*(d.current.scrollWidth/t);d.current.scrollTo({left:n,behavior:`smooth`})}}};export{i as t};
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.