PageSourceSearch

https://www.lanazione.it/_next/static/chunks/6588-5a2e193270d6fd77.js

js lanazione.it collected 2026-10-01 09:10:30 UTC 17,708 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6588],{76588:function(e,n,t){t.d(n,{Z:function(){return _}});var o=t(11527),i=t(41895),a=t(59271),r=t(58090),l=t(19800),s=t(21409),c=t(50959),u=t(58623),d=t(56373),p=t(88518),m=()=>{let e=(0,s.useRouter)(),n=(0,l.$)(),t=n.api_token,i=n.piano_id,[a]=(0,l.t6)(),{userConsents:r}=(0,d.We)(),m=(0,l.aF)(),{setShowBanner:v}=(0,l.zn)(),{trackLead:f}=(0,p.x)();(0,c.useEffect)(()=>{if(!(0,l.ej)("__utp")&&r)try{g()}catch(e){console.error("GoogleOneTap: Errore durante setup",e)}},[r]);let g=()=>{let{google:e}=window;if(!e||!e.accounts||!e.accounts.id){console.error("GoogleOneTap: Google API non disponibile");return}try{e.accounts.id.cancel(),e.accounts.id.initialize({client_id:"966158903982-1jgk9nnlj288cdqbjolpntrahp8t9tvd.apps.googleusercontent.com",callback:async e=>{if(!e||!e.credential){console.error("GoogleOneTap: Credenziali mancanti nella risposta");return}k(e)},auto_select:!1,cancel_on_tap_outside:!1}),e.accounts.id.prompt()}catch(e){console.error("GoogleOneTap: Errore durante l'inizializzazione",e)}},h=(0,c.useCallback)(async e=>await fetch("/api/piano/loginUser",{method:"POST",body:JSON.stringify({uid:e,api_token:t,aid:i})}).then(e=>e.json()).then(e=>e.access_token),[t,i]),w=async(e,n,o,a)=>{let r=window.location.href;try{await fetch("/api/piano/updateUser",{method:"POST",body:JSON.stringify({uid:e,api_token:t,aid:i,currentLocation:r,email:n,firstName:o,lastName:a})})}catch(e){console.error("Google One Tap - Error during user update for newsletter",e)}},_=(0,c.useCallback)(async(e,o)=>{try{let r=(0,l.oO)(e);if(!r||!r.email)throw Error("Unable to decode user information");let s=encodeURIComponent(r.email),c="https://whp.quotidiano.net/fe/getUidByEmail?aid=".concat(i,"&api_token=").concat(t,"&email=").concat(s),u=await fetch(c,{method:"POST"}),d=(await u.json()).uid;if(!d)throw Error("Failed to get user ID from Piano");let p=await fetch("https://whp.quotidiano.net/fe/getAccessToken?aid=".concat(i,"&api_token=").concat(t,"&uid=").concat(d),{method:"POST",headers:{"Content-Type":"application/json"}}),v=(await p.json()).access_token;if(!v)throw Error("Failed to get user token from Piano");let f=await fetch("https://api.piano.io/id/api/v1/identity/token/validation?client_id=".concat(i),{method:"GET",headers:{Authorization:v}}),g=(await f.json()).access_token;if(!g)throw Error("Failed to validate token");let h=window.location.hostname.split(".").slice(-2).join("."),w=(0,l.oO)(v),_=1e3*w.exp,y=new Date(_);document.cookie="__utp=".concat(g,"; path=/; domain=.").concat(h,"; expires=").concat(y.toUTCString()),await a(o,{url:n.url}),(0,l.Ro)(null,null,n,m.updateUser),window.location.reload()}catch(e){console.error("GoogleOneTap: Errore durante piano login",e),u.ZP.error("Errore durante il login")}},[i,t,n,m,e,a]),y=(0,c.useCallback)(async e=>{try{let n=await fetch("/api/piano/registerUser",{method:"POST",body:JSON.stringify({email:e.email,firstName:e.given_name,lastName:e.family_name,api_token:t,aid:i})}).then(e=>e.json()).then(e=>{if("User already exists."!==e.message||2e3!==e.code)return e.data.uid});if(n&&2e3!==n.code){await w(n,e.email,e.given_name,e.family_name);let t=await h(n);_(t,l.Sc.REG_ONE_TAP),f({content_name:"User Registration - Google One Tap",value:0})}}catch(e){console.error("Google One Tap - Error during user signup",e),u.ZP.error("Si \xe8 verificato un errore!")}},[i,t,h,_]),b=(0,c.useCallback)(async e=>{try{let n=await h(e);n?_(n,l.Sc.LOGIN_ONE_TAP):(console.error("GoogleOneTap: Token non ricevuto da getAccessToken"),u.ZP.error("Errore: impossibile ottenere il token di accesso"))}catch(e){console.error("GoogleOneTap: Errore durante user login",e),u.ZP.error("Errore durante il login")}},[h,_]),k=(0,c.useCallback)(async e=>{try{if(!e||!e.credential){console.error("GoogleOneTap: Credenziali mancanti"),u.ZP.error("Errore durante il login: credenziali mancanti");return}let n=await (0,l.oO)(e.credential),{email:o,name:a,family_name:r}=null!=n?n:"";if(!o){console.error("GoogleOneTap: Email mancante nei dati utente"),u.ZP.error("Errore: dati utente incompleti");return}try{let e=await fetch("/api/piano/checkUserExistence",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:o,api_token:t,aid:i})});if(!e.ok){if(await e.text().catch(()=>"Impossibile leggere il messaggio di errore"),500===e.status){u.ZP.error("Il servizio di autenticazione \xe8 temporaneamente non disponibile. Ti consigliamo di riprovare pi\xf9 tardi o utilizzare un altro metodo di accesso.",{duration:6e3});return}u.ZP.error("Errore di comunicazione con il server (".concat(e.status,")"));return}let a=await e.json();a&&a.uid?b(a.uid):y(n)}catch(e){console.error("API Error:",e),u.ZP.error("Si \xe8 verificato un problema di connessione durante l'autenticazione. Verifica la tua connessione internet e riprova.")}}catch(e){console.error("GoogleOneTap: Errore durante handle user",e),u.ZP.error("Errore durante il login")}},[t,i,y,b]);return(0,o.jsx)("div",{})},v=t(58290),f=t(41249),g=t(66770),h=()=>{let{leaf:e,section:n}=(0,f.Vy)(),t=(0,l.$)(),{user:o}=(0,l.aF)(),i=(0,c.useMemo)(()=>{switch(o.loginStatus){case l.$u.Anonymous:return"anon";case l.$u.Registered:return"lgdin";case l.$u.Subscriber:case l.$u.SubscriberFull:return"paid";default:return"unknown"}},[o.loginStatus]),a=(0,c.useMemo)(()=>{var o,i,a,r,s,c;let u=(null==n?void 0:n.path)==="/"||(null==e?void 0:e.path)==="/itinerari"||(null==e?void 0:e.path)==="/luce"||(null==e?void 0:e.path)==="/salute"?"HP":(0,l.sI)(t.key)?"/lu
1ce".concat(null!==(o=null==n?void 0:n.path)&&void 0!==o?o:""):(0,l.v2)(t.key)?"/itinerari".concat(null!==(i=null==n?void 0:n.path)&&void 0!==i?i:""):(0,l.a1)(t.key)?"/salute".concat(null!==(a=null==n?void 0:n.path)&&void 0!==a?a:""):null!==(r=null==n?void 0:n.path)&&void 0!==r?r:"";return{authors:(0,l.AP)(null==e?void 0:e.hideAuthor,null==e?void 0:e.byline,Array.isArray(null==e?void 0:e.authors)&&e.authors.length>0?[{name:e.authors[0].name,bio:e.authors[0].bio}]:[],(0,g.GH)(e),null==e?void 0:e.sourceArticle,null==e?void 0:e.publishedDate,t.key),currentSection:u,currentPath:null!==(s=null==e?void 0:e.path)&&void 0!==s?s:"",currentTitle:null!==(c=null==e?void 0:e.title)&&void 0!==c?c:""}},[e,n]);return(0,c.useEffect)(()=>{window.pSUPERFLY&&(null==e?void 0:e.path)&&window.pSUPERFLY.virtualPage({sections:a.currentSection,authors:a.authors,path:a.currentPath,title:a.currentTitle})},[a,e]),(0,c.useEffect)(()=>{window._sf_async_config||(window._sf_async_config={},window._sf_async_config.uid=67195,window._sf_async_config.domain=(0,l.sI)(t.key)?"www.quotidiano.net/luce":t.virtual_url,window._sf_async_config.useCanonical=!0,window._sf_async_config.useCanonicalDomain=!0,window._sf_async_config.sections=a.currentSection,window._sf_async_config.authors=a.authors,(0,g.GH)(e)&&(window._sf_async_config.flickerControl=!1),(window._cbq=window._cbq||[]).push(["_acct",i]),[{src:"//static.chartbeat.com/js/chartbeat.js"},...(0,g.GH)(e)?[{src:"//static.chartbeat.com/js/chartbeat_mab.js"}]:[]].forEach(e=>{let n=document.createElement("script");n.type="text/javascript",n.async=!0,n.src=e.src,document.head.appendChild(n)}))},[a,i,t.url]),null},w=t(32774),_=function(e){let{isPreview:n=!1,userAgent:t=!1}=e,s=(0,l.$)();return n?null:(0,o.jsxs)(o.Fragment,{children:[!t&&(0,o.jsx)(m,{}),!1===s.skipSubscription&&(0,o.jsx)(w.ZP,{}),(0,o.jsx)(i.Z,{}),(0,o.jsx)(v.Z,{}),(0,o.jsx)(r.Z,{}),(0,o.jsx)(a.Z,{}),(0,o.jsx)(h,{})]})}},32774:function(e,n,t){t.d(n,{HC:function(){return w},rb:function(){return h}});var o=t(11527),i=t(50959),a=t(19800),r=t(21409),l=t(41249),s=t(94362),c=t(20407),u=t.n(c),d=t(66770),p=t(3839),m=t(88970),v=t.n(m);let f=e=>{if("undefined"==typeof document)return null;let n=document.cookie.match(RegExp("(^| )"+e+"=([^;]+)"));if(!n)return null;let t=decodeURIComponent(n[2]);return"true"===t||"false"!==t&&null},g=e=>v()(e),h=(e,n)=>{var t;let o=null==e?void 0:e.split("/"),i={type:"static",assetid:g((null==o?void 0:o[o.length-1])||""),section:"".concat(n)};null===(t=window.nSdkInstance)||void 0===t||t.ggPM("staticstart",i)},w=(e,n)=>{var t;let o=null==e?void 0:e.split("/"),i={type:"static",assetid:g((null==o?void 0:o[o.length-1])||""),section:"".concat(n)};null===(t=window.nSdkInstance)||void 0===t||t.ggPM("staticend",i)};n.ZP=function(){let[e,n]=(0,i.useState)(null),[t,c]=(0,i.useState)(null),[m,g]=(0,i.useState)(!1),w=(0,i.useRef)(!0),{isMobile:_}=(0,a.Sj)(),y=(0,s.v)(),b=(0,a.$)(),{leaf:k}=(0,l.Vy)(),E=(0,r.useRouter)(),S=E.pathname,{indiceCurrentScheda:j}=(0,p.Xh)(),q=(0,i.useMemo)(()=>{var e;if((0,d.F2)(k)){let e=j+1;return 0===j?k.path+"-sck":k.path+"-sck/"+e}let n=null==k?void 0:null===(e=k.path)||void 0===e?void 0:e.split("/");return(null==n?void 0:n[n.length-1])||b.url},[null==k?void 0:k.id,S,j]),T=(0,i.useMemo)(()=>v()(q),[q]),{effectiveHasAudiweb:P,effectiveTrackerStatus:x}=(0,i.useMemo)(()=>{let n=null===e;return{effectiveHasAudiweb:!!n||e,effectiveTrackerStatus:!!n||t}},[e,t]),C=(0,i.useCallback)(()=>{let e=f("audiwebTracker"),t=f("audiwebTracker_status");n(e),c(t)},[]);(0,i.useEffect)(()=>(g(!0),C(),window.addEventListener("cmp:audiweb_tracker_set",C),()=>{window.removeEventListener("cmp:audiweb_tracker_set",C)}),[C]),(0,i.useEffect)(()=>{if(null!==P&&!_&&y>0){let n={type:"static",assetid:T,section:b.audiweb_section};try{var e;null===(e=window.nSdkInstance)||void 0===e||e.ggPM("staticstart",n)}catch(e){console.error("nielsen error",e)}}},[y,T,P]);let O=(0,i.useCallback)((e,n)=>{let{shallow:t}=n;if(null!==P&&!t&&_){var o;let e={type:"static",assetid:T,section:b.audiweb_section};null===(o=window.nSdkInstance)||void 0===o||o.ggPM("staticstart",e)}},[T,P]);return((0,i.useEffect)(()=>
1{if(_)return E.events.on("routeChangeComplete",O),()=>{E.events.off("routeChangeComplete",O)}},[S,O]),(0,i.useEffect)(()=>{if(w.current){w.current=!1;return}let e=S.split("/").pop()||"",n=S.split("/")[1]||"";null!==P&&"[[...index]]"!==e&&h(e,n)},[S]),m&&!1!==t)?(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(u(),{id:"nielsen",dangerouslySetInnerHTML:{__html:'! function(t, n) {\n                      t[n] = t[n] || {\n                          nlsQ: function(e, o, c, r, s, i) {\n                              return s = t.document, r = s.createElement("script"), r.async = 1, r.src =\n                                  ("http:" === t.location.protocol ? "http:" : "https:") + "//cdn-gl.imrworldwide.com/conf/" +\n                                  e + ".js#name=" + o + "&ns=" + n, i = s.getElementsByTagName("script")[0],\n                                  i.parentNode.insertBefore(r, i), t[n][o] = t[n][o] || {\n                                      g: c || {},\n                                      ggPM: function(e, c, r, s, i) {\n                                          (t[n][o].q = t[n][o].q || []).push([e, c, r, s, i])\n                                      }\n                                  }, t[n][o]}}}\n                  (window, "NOLBUNDLE");\n                  \n                  \n                    // SDK Initialization\n                   var nSdkInstance = NOLBUNDLE.nlsQ("'.concat(b.audiweb_instance,'", "nlsnInstance", {\n                      // nol_sdkDebug: "debug",\n                      optout: ').concat(!0===P?"true":"false","\n                  });\n\n                  window.nSdkInstance = nSdkInstance\n                    \n                    // Content Metadata \n                    var nielsenMetadata = {\n                      type: 'static', \n                      assetid: '").concat(T,"',\n                      section: '").concat(b.audiweb_section,"',\n                      }; \n                      \n                    // Event 'staticstart' Call                    \n                    nSdkInstance.ggPM(\"staticstart\", nielsenMetadata);\n                    // console.log(`%c[ANALYTICS] Nielsen StaticStart fired for assetId: ").concat(T," (section: '").concat(b.audiweb_section,'\')`, "color: #2196F3; font-weight: bold;");\n')}})}):null}},59271:function(e,n,t){var o=t(11527),i=t(20407),a=t.n(i),r=t(19800),l=t(83171),s=t.n(l),c=t(41249),u=t(47615);n.Z=function(){var e,n;let{leaf:t}=(0,c.Vy)(),{cxsense_id:i}=(0,r.$)(),l=(null==t?void 0:null===(e=t.tags)||void 0===e?void 0:e.map(e=>e.name).join(", "))||"";return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(s(),{children:[(0,o.jsx)("meta",{name:"cXenseParse:keywords",content:l}),(0,o.jsx)("meta",{name:"cXenseParse:keywords",content:(0,u.$)(null!==(n=null==t?void 0:t.title)&&void 0!==n?n:"").join()})]}),(0,o.jsx)(a(),{id:"cxsense-init",strategy:"beforeInteractive",dangerouslySetInnerHTML:{__html:"\n            var cX = window.cX = window.cX || {};\n            cX.callQueue = cX.callQueue || [];\n          "}}),(0,o.jsx)(a(),{id:"cxsense-cce",strategy:"beforeInteractive",src:"https://cdn.cxense.com/cx.cce.js"}),(0,o.jsx)(a(),{id:"cxsense-config",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:"\n            (function() {\n              function initCx() {\n                if (typeof window.cX === 'undefined' || typeof window.cX.callQueue === 'undefined') {\n                  setTimeout(initCx, 50);\n                  return;\n                }\n                window.cX.callQueue.push(['setSiteId', '".concat(i,"']);\n              }\n              initCx();\n            })();\n          ")}})]})}},47615:function(e,n,t){t.d(n,{$:function(){return i}});let o=["a","in","da","con","su","per","tra","fra","di","dei","del","dello","della","dall","dell","del","dalle","dal","delle","nell'","nelle","nel","all'","alle","al","le","la","il","lo","li","col","senza","sopra","sotto","verso","vicino","dietro","davanti","oltre","fuori","presso","contro","intorno","entro","eccetto","durante","fino","salvo","secondo","senza","spento","sui","sulle","sullo","sotto","tranne","mediante","circa","invece","oltre","purch\xe9","eccetto","mediante","ver
1so","presso","secondo","su","sui","sulla","sulle","sotto","sotto","tranne","presso","grazie","riguardo","si","no","non","a","adesso","ai","al","alla","allo","allora","altre","altri","altro","anche","ancora","avere","aveva","avevano","ben","buono","che","chi","cinque","comprare","con","consecutivi","consecutivo","cosa","cui","da","del","della","dello","dentro","deve","devo","di","doppio","due","e","ecco","fare","fine","fino","fra","gente","giu","ha","hai","hanno","ho","il","indietro","invece","io","la","lavoro","le","lei","lo","loro","lui","lungo","ma","me","meglio","molta","molti","molto","nei","nella","no","noi","nome","nostro","nove","nuovi","nuovo","o","oltre","ora","otto","peggio","pero","persone","piu","poco","primo","promesso","qua","quarto","quasi","quattro","quello","questo","qui","quindi","quinto","rispetto","sara","secondo","sei","sembra","sembrava","senza","sette","sia","siamo","siete","solo","sono","sopra","soprattutto","sotto","stati","stato","stesso","su","subito","sul","sulla","tanto","te","tempo","terzo","tra","tre","triplo","ultimo","un","una","uno","va","vai","voi","volte","vostro","a","abbastanza","accidenti","ad","affinche","agli","ahime","ahim\xc3","alcuna","alcuni","alcuno","all","alle","altrimenti","altrui","anni","anno","ansa","assai","attesa","avanti","avendo","avente","aver","avete","avuta","avute","avuti","avuto","basta","bene","benissimo","brava","bravo","c","casa","caso","cento","certa","certe","certi","certo","chicchessia","chiunque","ci","ciascuna","ciascuno","cima","cio","ci\xc3","cioe","cio\xc3","circa","citta","citt\xc3","codesta","codesti","codesto","cogli","coi","col","colei","coll","coloro","colui","come","concernente","consiglio","contro","cortesia","cos","cosi","cos\xc3","d","dagli","dai","dal","dall","dalla","dalle","dallo","davanti","degli","dei","dell","delle","detto","dice","dietro","dire","dirimpetto","dopo","dove","dovra","dovr\xc3","dunque","durante","\xc3","ed","egli","ella","eppure","era","erano","esse","essendo","esser","essere","essi","ex","fa","fatto","favore","fin","finalmente","finche","forse","fuori","gia","gi\xc3","giacche","giorni","giorno","gli","gliela","gliele","glieli","glielo","gliene","grande","grazie","gruppo","i","ieri","improvviso","in","infatti","insieme","intanto","intorno","l","l\xc3","li","lontano","macche","magari","mai","male","malgrado","malissimo","medesimo","mediante","meno","mentre","mesi","mezzo","mi","mia","mie","miei","mila","miliardi","milioni","ministro","mio","moltissimo","
1ne","negli","nel","nell","nelle","nello","nemmeno","neppure","nessuna","nessuno","niente","non","nondimeno","nostra","nostre","nostri","nulla","od","oggi","ogni","ognuna","ognuno","oppure","ore","osi","ossia","paese","parecchi","parecchie","parecchio","parte","partendo","peccato","per","perche","perch\xc3","percio","perci\xc3","perfino","per\xc3","piedi","pieno","piglia","pi\xc3","po","pochissimo","poi","poiche","press","prima","proprio","puo","pu\xc3","pure","purtroppo","qualche","qualcuna","qualcuno","quale","quali","qualunque","quando","quanta","quante","quanti","quanto","quantunque","quel","quella","quelli","quest","questa","queste","questi","riecco","salvo","sar\xc3","sarebbe","scopo","scorso","se","seguente","sempre","si","solito","sta","staranno","stata","state","sua","successivo","sue","sugli","sui","sull","sulle","sullo","suo","suoi","tale","talvolta","ti","tranne","troppo","tu","tua","tue","tuo","tuoi","tutta","tuttavia","tutte","tutti","tutto","uguali","uomo","vale","varia","varie","vario","verso","vi","via","vicino","visto","vita","volta","vostra","vostre","vostri"],i=e=>{var n;let t=/[a-z]/gi,i=/[”"“@#$%^&*():,.;{}=+-<>]/g,a=null!==(n=e.toLowerCase().split(/[ ,'’]/))&&void 0!==n?n:[],r=[];if((null==a?void 0:a.length)>0)for(let e of a){let n=e.replaceAll(i,"");!o.includes(n)&&t.test(n)&&r.push(n)}return r}}}]);

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.