PageSourceSearch

https://www.kaspersky.ru/siterenderer/_next/static/chunks/Ent.ScrollButton.b462977cf08174b2.js

js kaspersky.ru collected 2026-10-02 02:25:09 UTC 3,268 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[675],{52648:function(e,t,n){"use strict";var r,l=n(2784);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}t.Z=function(e){return l.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 658 1024"},e),r||(r=l.createElement("path",{d:"M614.29 429.71q0 7.43-5.72 13.15L342.3 709.14q-5.72 5.72-13.15 5.72T316 709.14L49.71 442.86Q44 437.14 44 429.7t5.71-13.14L78.28 388q5.72-5.71 13.15-5.71t13.14 5.71l224.57 224.57L553.71 388q5.72-5.71 13.15-5.71T580 388l28.57 28.57q5.71 5.72 5.71 13.14z"})))}},24540:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return C}});var r=n(52322),l=n(30986),o=n(2784),u=n(88702),i=n(34706),s=n(52648),c=n(12060),a=n(28255),d=n(66397),f=n(8377),h=n.n(f);let p=["DIV","MAIN","SECTION","ARTICLE"],m=(e,t)=>Array.from(e).filter(e=>{if("#text"===e.nodeName)return!1;let n=t.getComputedStyle(e);return"fixed"!==n.position&&"absolute"!==n.position&&e.clientHeight>0&&!e.dataset.scroll}),g=(e,t)=>m(e.childNodes,t).shift(),v=(e,t)=>{let n=e.children,r=[];return Array.from(n).reduce((e,t)=>("MAIN"===t.tagName?e.push(...Array.from(t.childNodes)):p.indexOf(t.nodeName)>=0&&e.push(t),e),[]).forEach(e=>{let n=g(e,t);if(n){let t=r.length?r[r.length-1]:null;r.push({plugin:e,block:n,isIndent:"indent"===n.dataset.type,hasTopIndent:!!(t&&t.isIndent)})}}),r.slice(1).map((e,t)=>({...e,index:t}))},x=(e,t)=>{t.requestAnimationFrame(()=>{document.documentElement&&document.documentElement.style&&"scrollBehavior"in document.documentElement.style?t.scroll({left:0,top:e,behavior:"smooth"}):t.scrollTo(0,e)})};var b=()=>{let{targetWindow:e}=(0,o.useContext)(c.Z),{layout:t}=(0,o.useContext)(i.Z),{menuHeight:n}=(0,o.useContext)(d.Z),l=(0,o.useRef)(0),f=(0,o.useRef)(null),p=(0,o.useRef)(!1),m=(0,u.v9)(a.CF),g=(0,o.useMemo)(()=>m+n,[m,n]);l.current=g;let b=(0,o.useCallback)(()=>{if(0===e.pageYOffset?p.current=!1:p.current=e.document.body.scrollHeight-e.pageYOffset-e.innerHeight<=50,f.current){var t;let e=null===(t=f.current)||void 0===t?void 0:t.querySelector(".".concat(h().arrow));e&&e.setAttribute("data-scroll-to-bottom",p.current?"true":"false")}},[e]),C=(0,o.useCallback)(()=>{if(p.current){x(0,e);return}let n=v(t.current,e),r=n.find(e=>e.plugin.getBoundingClientRect().top-g-1>0&&!e.hasTopIndent);if(r){let t=r.index-1>=0?n[r.index-1]:null;t&&t.isIndent&&(r=r.index+1<n.length?n[r.index+1]:void 0),r&&r.plugin&&"function"==typeof r.plugin.getBoundingClientRect&&x(e.pageYOffset+r.plugin.getBoundingClientRect().top-l.current,e)}},[e,g,t]);return(0,o.useEffect)(()=>(e.addEventListener("scroll",b),()=>{e.removeEventListener("scroll",b)}),[b,e]),(0,r.jsx)("button",{"aria-hidden":"true",tabIndex:-1,ref:f,className:h().scroller,onClick:C,"data-scroll":"true",children:(0,r.jsx)(s.Z,{className:h().arrow,width:48,height:48})})};function C(e){let{_componentKey:t,_pluginIndex:n,_schema:o}=e;return(0,r.jsx)(l.Z,{pluginIndex:n,componentKey:t,schema:o,children:(0,r.jsx)(b,{})})}},8377:function(e){e.exports={scroller:"ScrollButton_scroller__wBjTa",arrow:"ScrollButton_arrow__4Iuns"}}}]);

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.