"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5707],{45707:function(t,e,n){n.r(e),n.d(e,{default:function(){return u}});var a=n(11527),l=n(50959),i=n(19800),o=n(56373),r=n(41249);let s=()=>!!googletag&&!!googletag.apiReady&&!!googletag.pubads;var u=function(t){let e=(0,l.useRef)(!1);window.googletag=window.googletag||{cmd:[]};let{section:n}=t,{requireConsent:u}=(0,o.We)(),d=(0,i.$)(),{leaf:g}=(0,r.Vy)(),{googletag:c}=window;return(0,l.useEffect)(()=>{u(()=>{s()&&!e.current&&(e.current=!0,function(){var t,e;let a={name:null==d?void 0:d.name,site:function(){let t="www.ilrestodelcarlino.it";return t.startsWith("local")?"local":t.startsWith("test")?"test":t.startsWith("prod")?"prod":t.startsWith("don-king")?"preview":"www"}(),subject:Array.isArray(null==n?void 0:n.contentPath)&&(null==n?void 0:null===(e=n.contentPath)||void 0===e?void 0:null===(t=e[0])||void 0===t?void 0:t.title)?null==n?void 0:n.contentPath.map(t=>null==t?void 0:t.title):null==n?void 0:n.title};c.cmd.push(()=>{Object.entries(a).forEach(t=>{let[e,n]=t;c.pubads().setTargeting(e,n)}),c.pubads().enableLazyLoad({fetchMarginPercent:500,renderMarginPercent:200,mobileScaling:2}),c.pubads().enableSingleRequest(),c.pubads().setCentering(!0),c.pubads().disableInitialLoad()}),()=>{c.cmd.push(()=>{c.destroySlots(),c.pubads().clearTargeting()})}}())})},[c]),(0,a.jsx)(a.Fragment,{})}}}]);