PageSourceSearch

https://www.lance.com.br/_next/static/chunks/app/(videos)/layout-a8ce7da00a65f4e6.js

js lance.com.br collected 2026-10-02 02:16:55 UTC 8,371 bytes, 63 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8779,9809,5071,8809,300,6680,750],{19431:function(e,t,n){Promise.resolve().then(n.bind(n,53116)),Promise.resolve().then(n.bind(n,48737))},53116:function(e,t,n){"use strict";n.d(t,{default:function(){return f}});var r=n(57437),a=n(13786),o=n(99376),i=n(2265),s=n(74834);function c(){let e=(0,o.usePathname)(),t=(0,o.useSearchParams)();return(0,i.useEffect)(()=>{window.dataLayer=window.dataLayer||[];let e=window.customData,t=function(){try{let e=document.cookie.match(/(?:^|;\s*)idToken=([^;]*)/);if(!e)return;let t=decodeURIComponent(e[1]).split(".")[1];if(!t)return;let n=t.replace(/-/g,"+").replace(/_/g,"/"),r=decodeURIComponent(atob(n).split("").map(e=>"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)).join(""));return JSON.parse(r)?.user_id}catch{return}}();t&&window.gtag&&window.gtag("set","user_properties",{userID_dimension:t,"user-id":t}),window.dataLayer.push([{environment:e?.site?.environment,site_section:e?.site?.section,page_name:e?.page?.name,segment:e?.site?.segment,userID:t,isAccessibleForFree:e?.site?.isAccessibleForFree,author:e?.page?.author,category:document.querySelector('meta[name="category"]')?.getAttribute("content")??void 0}])},[e,t]),(0,r.jsx)(a.GoogleAnalytics,{gaId:"G-F5KQ77ENEX"})}var d=n(48667);let u=`
2!function(){"use strict";function e(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],c=document.createElement("script");c.src=e,t?c.type="module":(c.async=!0,c.type="text/javascript",c.setAttribute("nomodule",""));var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(c,n)}!function(t,c){!function(t,c,n){var a,o,r;n.accountId=c,null!==(a=t.marfeel)&&void 0!==a||(t.marfeel={}),null!==(o=(r=t.marfeel).cmd)&&void 0!==o||(r.cmd=[]),t.marfeel.config=n;var i="https://sdk.mrf.io/statics";e("".concat(i,"/marfeel-sdk.js?id=").concat(c),!0),e("".concat(i,"/marfeel-sdk.es5.js?id=").concat(c),!1)}(t,c,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})}(window,3293,{})}();
3`;function l(){return(0,r.jsx)(d.default,{id:"native-marfeel-loader",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:u}})}function g(e){let{category:t="home"}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.default,{id:"native-gpt-js",async:!0,src:"https://securepubads.g.doubleclick.net/tag/js/gpt.js",strategy:"afterInteractive",crossOrigin:"anonymous"}),(0,r.jsx)(d.default,{id:"native-ads",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:`
4(function () {
5  window.googletag = window.googletag || { cmd: [] };
6  var adUnit = ${JSON.stringify(t)};
7  var refreshTime = 25000;
8  var mobileBreakpoint = 992;
9
10  googletag.cmd.push(function () {
11    var getMetaContent = function (name) {
12      try {
13        var el = document.querySelector('meta[name="' + name + '"]');
14        return el ? el.getAttribute('content') : '';
15      } catch (e) { return null; }
16    };
17
18    var targeting = {
19      resolucao: screen.width + 'x' + screen.height,
20      titleofpage: document.title,
21      urldata: window.location.href.split(/\\/|=|,|\\.|&/),
22      category: [adUnit],
23    };
24
25    var partner = getMetaContent('partner');
26    if (partner) targeting.partner = partner;
27    var keywords = getMetaContent('keywords');
28    if (keywords) targeting.tagsofpage = keywords.replace(/\\s?(,)\\s?/g, '$1').split(',');
29    var typeofpage = getMetaContent('typeofpage');
30    if (typeofpage) targeting.typeofpage = typeofpage;
31
32    try {
33      if (typeof window.getUserAndGoogleIds === 'function') {
34        var ids = window.getUserAndGoogleIds();
35        targeting.authenticatedUserId = ids.userId ? ids.userId : '';
36        targeting.authenticatedGoogleId = ids.googleId ? ids.googleId : '';
37      }
38    } catch (e) {
39      console.warn('NativeSantosAds: erro ao definir IDs de usuario no GPT', e);
40    }
41
42    googletag.setConfig({
43      targeting: targeting,
44      lazyLoad: { fetchMarginPercent: 40, renderMarginPercent: 25, mobileScaling: 1 },
45      disableInitialLoad: true,
46      singleRequest: true,
47    });
48
49    googletag.pubads().addEventListener('impressionViewable', function (event) {
50      var notRefresh = (event.slot.getConfig('targeting') || {}).notrefresh;
51      var notRefreshValue = Array.isArray(notRefresh) ? notRefresh[0] : notRefresh;
52      if (notRefreshValue === 'true') return;
53      setTimeout(function () {
54        var el = document.getElementById(event.slot.getSlotElementId());
55        if (el) el.style = '';
56        googletag.pubads().refresh([event.slot]);
57      }, refreshTime);
58    });
59
60    googletag.enableServices();
61  });
62})();
63`}})]})}function f(e){let{defaultMode:t="instant",delaySeconds:n,categories:d}=e,u=(0,o.useSearchParams)(),f=(0,o.useParams)(),[m,v]=(0,i.useState)(!1),w="string"==typeof f?.category?f.category:void 0,p=(0,s.Ad)(w,d),h="delayed-native-tracking"===p||"delayed-native-tracking-ads"===p||"off-native-tracking"===p,y="delayed-native-tracking-ads"===p;(0,i.useEffect)(()=>{let e;if("off"===p||"off-native-tracking"===p)return;let r=performance.now(),a=e=>{var t;v(!0),t=performance.now()-r,"function"==typeof window.gtag&&window.gtag("event","gtm_delay_trigger",{trigger_reason:e,delay_ms:Math.round(t),variant:p,category:w}),window.removeEventListener("mousemove",o),window.removeEventListener("scroll",o),window.removeEventListener("touchstart",o)},o=()=>a("interaction"),i=window.location.hash.match(/#gtmtime=(\d+)/);return i&&i[1]?e=setTimeout(()=>a("gtmtime_param"),1e3*parseInt(i[1],10)):"alternate-container-instant"===p?a("timeout"):p?(e=setTimeout(()=>a("timeout"),1e3*n),window.addEventListener("mousemove",o,{passive:!0,once:!0}),window.addEventListener("scroll",o,{passive:!0,once:!0}),window.addEventListener("touchstart",o,{passive:!0,once:!0})):"instant"===t?a("timeout"):(window.addEventListener("mousemove",o,{passive:!0,once:!0}),window.addEventListener("scroll",o,{passive:!0,once:!0}),window.addEventListener("touchstart",o,{passive:!0,once:!0})),()=>{e&&clearTimeout(e),window.removeEventListener("mousemove",o),window.removeEventListener("scroll",o),window.removeEventListener("touchstart",o)}},[p,t,n,w]),(0,i.useEffect)(()=>{h&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({[s.v2]:!0}))},[h]),(0,i.useEffect)(()=>{y&&(window[s.Pm]=!0)},[y]);let E=u?.has("preview"),L=u?.has("p")&&u?.has("pv")&&u?.has("tn"),b="off"===p;if(E||L||b)return null;let I="alternate-container"===p||"alternate-container-instant"===p?s.Xk:"GTM-W5PK8R";return(0,r.jsxs)(r.Fragment,{children:[h&&(0,r.jsx)(c,{}),h&&(0,r.jsx)(l,{}
63),y&&(0,r.jsx)(g,{category:w}),m&&(0,r.jsx)(a.GoogleTagManager,{gtmId:I})]})}},74834:function(e,t,n){"use strict";n.d(t,{Xk:function(){return o},Pm:function(){return d},v2:function(){return c},Ad:function(){return s}});var r=n(46315);async function a(e){try{let t=await fetch("https://www.lance.com.br/uploads/attachments/externalConfig.json");if(!t.ok){console.error(`externalConfig fetch failed: ${t.status}`);return}let n=await t.json();if(e)switch(e){case"PartnerLinkList":return n.PartnerLinkList;case"WscCategories":return n.WscCategories;case"OddsSuperbet":return n.OddsSuperbet;case"GtmExperiment":return n.GtmExperiment;case"WebVitalsInstrumentation":return n.WebVitalsInstrumentation;case"OddsActive":return n.OddsActive}return n}catch(e){console.error("Error fetching WSC list IDs:",e);return}}let o="GTM-WV6HK6B8",i={};function s(e,t){if(e)return t[e]}(0,r.unstable_cache)(async()=>{let e=await a("GtmExperiment");return{delaySeconds:e?.delaySeconds??5,categories:e?.categories??i}},["gtm-experiment-config"],{revalidate:30});let c="nativeAssetsLoaded",d="nativeAdsLoaded"},48737:function(e,t,n){"use strict";n.d(t,{MarfeelUserJourney:function(){return c}});var r=n(29128),a=n(2265),o=n(99376);let i={torcedor:3,titular:4,craque:5,arquibancada:6},s=e=>"string"!=typeof e?2:i[e.trim().toLowerCase()]??2;function c(){let{currentLoyaltySubscription:e,user:t,initiated:n}=(0,r.aC)(),i=(0,o.usePathname)(),c=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{if(!n||!t||void 0===e)return;let r=s(e?.active_subscription);c.current||(c.current=!0,setTimeout(()=>{window.marfeel=window.marfeel||{cmd:[]},window.marfeel.cmd.push(["compass",function(e){e.setUserType(r)}])},0))},[n,t,e,i]),(0,a.useEffect)(()=>{c.current=!1},[i]),null}}},function(e){e.O(0,[139,3089,2782,9513,6315,3786,2971,2117,1744],function(){return e(e.s=19431)}),_N_E=e.O()}]);

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.