PageSourceSearch

https://redigo.ru/static/js/desktop_mobile-ramblerComponents-scroller.48d4cb73.js

js redigo.ru collected 2026-10-02 11:33:05 UTC 3,078 bytes, 2 lines download raw bytes

1(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[8613],{20035:(e,r,t)=>{!function(){var r={n:function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},d:function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};r.r(n),r.d(n,{Scroller:function(){return E},ScrollerContent:function(){return p},ScrollerParent:function(){return _},default:function(){return y}});var l=t(60930),o=r.n(l),s=t(25220),c=r.n(s),i=void 0,u=t(94634),a=r.n(u),f=t(91847),d=r.n(f),v={root:"rc__7q13nm",isVisible:"rc__4hsr91",runner:"rc__6rpv62",bright:"rc__7xxyjc",parent:"rc__thwr6s",content:"rc__4skggx"};const m=["className","children"],_=(0,l.forwardRef)((e,r)=>{let{className:t,children:n}=e,l=d()(e,m);return o().createElement("div",a()({className:c()(v.parent,t)},l,{ref:r}),n)}),h=["className"],p=(0,l.forwardRef)((e,r)=>{let{className:t}=e,n=d()(e,h);return o().createElement("div",a()({className:c()(v.content,t)},n,{ref:r}))}),E=e=>{let{className:r,style:t,display:n="normal",visibleMode:s="scroll",onScrollProgress:u}=e;const a=(0,l.useRef)(),[f,d]=(0,l.useState)(),[m,_]=(0,l.useState)(!1),h=(0,l.useRef)(),[p,E]=(0,l.useState)();return(0,l.useEffect)(()=>{var e;d(null===(e=a.current)||void 0===e?void 0:e.previousElementSibling)},[]),(0,l.useEffect)(()=>{if(!f)return;const e=()=>{const{clientHeight:e,scrollHeight:r,scrollTop:t}=f;if(r<=e)return null==u||u(0),void E(void 0);const n=a.current.clientHeight,l=t/(r-e),o=Math.min(n,Math.max(50,n*e/r)),s=l*(n-o);null==u||u(l),E({height:o,top:s})},r=function(e){let r,t,n,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(){for(var o=arguments.length,s=new Array(o),c=0;c<o;c++)s[c]=arguments[c];r?(t=s,n=i):(e.apply(i,s),r=!0,setTimeout(()=>{r=!1,t&&(e.apply(n,t),t=null,n=null)},l))}}(()=>{e(),"scroll"===s&&(h.current&&clearTimeout(h.current),_(!0),h.current=setTimeout(()=>{_(!1)},1e3))},50),t=new MutationObserver(e);return f.addEventListener("scroll",r),f.addEventListener("resize",r),t.observe(f,{childList:!0,subtree:!0,characterData:!0}),e(),()=>{null==f||f.removeEventListener("scroll",r),null==f||f.removeEventListener("resize",r),t.disconnect()}},[f,s]),(0,l.useEffect)(()=>{const e=window.matchMedia("(hover: hover)").matches;if(_("always"===s),!f||"hover"!==s||!e)return;const r=()=>{_(!0)},t=()=>{_(!1)};return f.addEventListener("mouseenter",r),f.addEventListener("mouseleave",t),()=>{null==f||f.removeEventListener("mouseenter",r),null==f||f.removeEventListener("mouseleave",t)}},[f,s]),o().createElement("div",{className:c()(v.root,v[n],m&&v.isVisible,r),style:t,ref:a},p&&o().createElement("div",{className:v.runner,style:p}))};var y=E;e.exports=n}()}}]);
2//# sourceMappingURL=desktop_mobile-ramblerComponents-scroller.48d4cb73.js.map

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.