PageSourceSearch

https://cdn.www.gazetametro.ru/_next/static/chunks/3299.f9b7119062447e4f.js

js gazetametro.ru collected 2026-10-02 03:42:24 UTC 3,126 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3299],{3299:function(e,t,i){i.r(t),i.d(t,{default:function(){return Widget_MobileUnderstitialController}});var r=i(2741),n=i(2784),o="--mobile-understitial-creative-height",a="data-mobile-understitial-geometry",d="--mobile-understitial-left",u="data-mobile-understitial-mode",l="data-mobile-understitial-phase",s="--mobile-understitial-width",roundToDevicePixel=function(e){var t=window.devicePixelRatio||1;return Math.round(e*t)/t},getCreativeHeight=function(e){var t=[e].concat((0,r.Z)(e.children),(0,r.Z)(e.querySelectorAll("iframe, img, video, canvas, svg"))).reduce(function(e,t){return Math.max(e,t.getBoundingClientRect().height)},0);return!Number.isFinite(t)||t<16?0:roundToDevicePixel(t)},useMobileUnderstitial=function(e){var t=e.containerRef,i=e.resetKey,r=e.wrapperRef;(0,n.useEffect)(function(){var e,i,n,c=r.current,v=t.current,p=null==v?void 0:v.parentElement,h=null==p?void 0:p.parentElement;if(c&&v&&p&&h){var b=!0,f=!1,m=!0,g=!1,w=0,updateLayout=function(){var e="rendered"===c.dataset.adfoxStatus?getCreativeHeight(v):0;e>0&&Math.abs(e-w)>=.5&&(w=e,c.style.setProperty(o,"".concat(e,"px"))),c.setAttribute(u,"active"),c.setAttribute(l,"fixed-bottom");var t=c.getBoundingClientRect();c.style.setProperty(d,"".concat(roundToDevicePixel(t.left),"px")),c.style.setProperty(s,"".concat(roundToDevicePixel(t.width),"px")),c.setAttribute(a,"ready");var r=h.getBoundingClientRect(),b=p.getBoundingClientRect();f=(w||b.height)>r.height,i=r.bottom,n=r.top,f&&c.setAttribute(u,"inline")},updateCaughtState=function(){if(!f&&!(w<=0)&&void 0!==i&&void 0!==n){var e=c.getBoundingClientRect(),t=roundToDevicePixel(e.bottom),r=roundToDevicePixel(e.top),o=roundToDevicePixel(i),a=r<roundToDevicePixel(n)?"fixed-top":t>o?"fixed-bottom":"caught";c.getAttribute(l)!==a&&c.setAttribute(l,a)}},scheduleUpdate=function scheduleUpdate(){b&&void 0===e&&(e=window.requestAnimationFrame(function(){if(e=void 0,b){m&&(m=!1,updateLayout()),updateCaughtState();var t=w>0&&!f;t!==g&&(t?window.addEventListener("scroll",scheduleUpdate,{passive:!0}):window.removeEventListener("scroll",scheduleUpdate),g=t)}}))},scheduleLayoutUpdate=function(){m=!0,scheduleUpdate()},y=new ResizeObserver(scheduleLayoutUpdate),x=new MutationObserver(scheduleLayoutUpdate),U=window.visualViewport;return y.observe(c),y.observe(v),y.observe(p),x.observe(v,{childList:!0,subtree:!0}),x.observe(c,{attributeFilter:["data-adfox-status"],attributes:!0}),window.addEventListener("resize",scheduleLayoutUpdate),null==U||U.addEventListener("resize",scheduleLayoutUpdate),scheduleUpdate(),function(){b=!1,g&&window.removeEventListener("scroll",scheduleUpdate),window.removeEventListener("resize",scheduleLayoutUpdate),null==U||U.removeEventListener("resize",scheduleLayoutUpdate),y.disconnect(),x.disconnect(),void 0!==e&&window.cancelAnimationFrame(e),c.style.removeProperty(o),c.style.removeProperty(d),c.style.removeProperty(s),c.removeAttribute(a),c.removeAttribute(u),c.removeAttribute(l)}}},[t,i,r])},Widget_MobileUnderstitialController=function(e){return useMobileUnderstitial(e),null}}}]);

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.