1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7966],{88970:function(e,t,n){var c;!function(o){"use strict";function i(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function r(e,t,n,c,o,r){var s;return i((s=i(i(t,e),i(c,r)))<<o|s>>>32-o,n)}function s(e,t,n,c,o,i,s){return r(t&n|~t&c,e,t,o,i,s)}function a(e,t,n,c,o,i,s){return r(t&c|n&~c,e,t,o,i,s)}function l(e,t,n,c,o,i,s){return r(t^n^c,e,t,o,i,s)}function u(e,t,n,c,o,i,s){return r(n^(t|~c),e,t,o,i,s)}function d(e,t){e[t>>5]|=128<<t%32,e[(t+64>>>9<<4)+14]=t;var n,c,o,r,d,_=1732584193,p=-271733879,f=-1732584194,m=271733878;for(n=0;n<e.length;n+=16)c=_,o=p,r=f,d=m,_=s(_,p,f,m,e[n],7,-680876936),m=s(m,_,p,f,e[n+1],12,-389564586),f=s(f,m,_,p,e[n+2],17,606105819),p=s(p,f,m,_,e[n+3],22,-1044525330),_=s(_,p,f,m,e[n+4],7,-176418897),m=s(m,_,p,f,e[n+5],12,1200080426),f=s(f,m,_,p,e[n+6],17,-1473231341),p=s(p,f,m,_,e[n+7],22,-45705983),_=s(_,p,f,m,e[n+8],7,1770035416),m=s(m,_,p,f,e[n+9],12,-1958414417),f=s(f,m,_,p,e[n+10],17,-42063),p=s(p,f,m,_,e[n+11],22,-1990404162),_=s(_,p,f,m,e[n+12],7,1804603682),m=s(m,_,p,f,e[n+13],12,-40341101),f=s(f,m,_,p,e[n+14],17,-1502002290),p=s(p,f,m,_,e[n+15],22,1236535329),_=a(_,p,f,m,e[n+1],5,-165796510),m=a(m,_,p,f,e[n+6],9,-1069501632),f=a(f,m,_,p,e[n+11],14,643717713),p=a(p,f,m,_,e[n],20,-373897302),_=a(_,p,f,m,e[n+5],5,-701558691),m=a(m,_,p,f,e[n+10],9,38016083),f=a(f,m,_,p,e[n+15],14,-660478335),p=a(p,f,m,_,e[n+4],20,-405537848),_=a(_,p,f,m,e[n+9],5,568446438),m=a(m,_,p,f,e[n+14],9,-1019803690),f=a(f,m,_,p,e[n+3],14,-187363961),p=a(p,f,m,_,e[n+8],20,1163531501),_=a(_,p,f,m,e[n+13],5,-1444681467),m=a(m,_,p,f,e[n+2],9,-51403784),f=a(f,m,_,p,e[n+7],14,1735328473),p=a(p,f,m,_,e[n+12],20,-1926607734),_=l(_,p,f,m,e[n+5],4,-378558),m=l(m,_,p,f,e[n+8],11,-2022574463),f=l(f,m,_,p,e[n+11],16,1839030562),p=l(p,f,m,_,e[n+14],23,-35309556),_=l(_,p,f,m,e[n+1],4,-1530992060),m=l(m,_,p,f,e[n+4],11,1272893353),f=l(f,m,_,p,e[n+7],16,-155497632),p=l(p,f,m,_,e[n+10],23,-1094730640),_=l(_,p,f,m,e[n+13],4,681279174),m=l(m,_,p,f,e[n],11,-358537222),f=l(f,m,_,p,e[n+3],16,-722521979),p=l(p,f,m,_,e[n+6],23,76029189),_=l(_,p,f,m,e[n+9],4,-640364487),m=l(m,_,p,f,e[n+12],11,-421815835),f=l(f,m,_,p,e[n+15],16,530742520),p=l(p,f,m,_,e[n+2],23,-995338651),_=u(_,p,f,m,e[n],6,-198630844),m=u(m,_,p,f,e[n+7],10,1126891415),f=u(f,m,_,p,e[n+14],15,-1416354905),p=u(p,f,m,_,e[n+5],21,-57434055),_=u(_,p,f,m,e[n+12],
16,1700485571),m=u(m,_,p,f,e[n+3],10,-1894986606),f=u(f,m,_,p,e[n+10],15,-1051523),p=u(p,f,m,_,e[n+1],21,-2054922799),_=u(_,p,f,m,e[n+8],6,1873313359),m=u(m,_,p,f,e[n+15],10,-30611744),f=u(f,m,_,p,e[n+6],15,-1560198380),p=u(p,f,m,_,e[n+13],21,1309151649),_=u(_,p,f,m,e[n+4],6,-145523070),m=u(m,_,p,f,e[n+11],10,-1120210379),f=u(f,m,_,p,e[n+2],15,718787259),p=u(p,f,m,_,e[n+9],21,-343485551),_=i(_,c),p=i(p,o),f=i(f,r),m=i(m,d);return[_,p,f,m]}function _(e){var t,n="",c=32*e.length;for(t=0;t<c;t+=8)n+=String.fromCharCode(e[t>>5]>>>t%32&255);return n}function p(e){var t,n=[];for(t=0,n[(e.length>>2)-1]=void 0;t<n.length;t+=1)n[t]=0;var c=8*e.length;for(t=0;t<c;t+=8)n[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return n}function f(e){var t,n,c="0123456789abcdef",o="";for(n=0;n<e.length;n+=1)o+=c.charAt((t=e.charCodeAt(n))>>>4&15)+c.charAt(15&t);return o}function m(e){return unescape(encodeURIComponent(e))}function h(e){var t;return _(d(p(t=m(e)),8*t.length))}function v(e,t){return function(e,t){var n,c,o=p(e),i=[],r=[];for(i[15]=r[15]=void 0,o.length>16&&(o=d(o,8*e.length)),n=0;n<16;n+=1)i[n]=909522486^o[n],r[n]=1549556828^o[n];return c=d(i.concat(p(t)),512+8*t.length),_(d(r.concat(c),640))}(m(e),m(t))}function x(e,t,n){return t?n?v(t,e):f(v(t,e)):n?h(e):f(h(e))}void 0!==(c=(function(){return x}).call(t,n,t,e))&&(e.exports=c)}(0)},30215:function(e,t,n){e.exports=n(88316)},36934:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/account",function(){return n(31032)}])},17479:function(e,t,n){"use strict";n.d(t,{Z:function(){return c.Z}});var c=n(76588)},52759:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var c=n(11527),o=n(50959),i=n(39167),r=n.n(i),s=n(22705),a=n.n(s),l=n(45924),u=n(19800),d=n(7537),_=function(){let[e,t]=(0,o.useState)(!1),[n,i]=(0,o.useState)("");(0,o.useEffect)(()=>{let e=e=>{window.scrollY>=380&&t(!0)};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]);let r=(0,u.$)(),s=(0,u.gw)(),_=["hard","closable","registration"].includes(String(s.premium)),[p]=(0,d.z)("TYPE_PREMIUM",{type:null}),[f]=(0,d.z)("LOCK",{type:null});return(0,o.useEffect)(()=>{null!==s.premium&&(("hard"===s.premium||"closable"===s.premium)&&i("locker"),"free"===s.premium&&(t(!1),i(""))),null!==f.type&&("lock"===f.type&&t(!0),"unlock"===f.type&&i(""))},[p.type,f.type]),(0,c.jsx)(c.Fragment,{children:r.dynamic_paywall&&!r.modal_paywall&&_&&(0,c.jsx)("div",{className:(0,l.Z)(a()[n],e&&a().locked)})})},p=function(e){let{children:t}=e,n=(0,u.$)(),i=n.key,s=n.key===u.Y0.QuotidianoSportivo?180:120,[a,d]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{let e=()=>{d(window.scrollY>s)};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]),(0,c.jsxs)("div",{className:(0,l.Z)(r().container,String(i),a&&"stickyMode"),children:[t,(0,c.jsx)(_,{})]})}},62412:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var c=n(11527),o=n(87321),i=n(57299),r=n(19800);function s(e){let{children:t,sections:n,isAbbonati:s,isNeutro:a}=e,{key:l}=(0,r.$)();return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(i.Z,{variant:l,sections:n,isAbbonati:s||a}),t,(0,c.jsx)(o.Z,{variant:l})]})}},88316:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useAmp",{enumerable:!0,get:function(){return r}});let c=n(42430)._(n(50959)),o=n(13344),i=n(56225);function r(){return(0,i.isInAmpMode)(c.default.useContext(o.AmpStateContext))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},31032:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return g},default:function(){return A}});var c=n(11527),o=n(19800),i=n(63903),r=n(83171),s=n.n(r),a=n(21409),l=n(50959),u=n(58623),d=n(17479),_=n(52759),p=n(62412),f=n(17343),m=n.n(f);let h=e=>{switch(e){case"ilresto":return"RDC";case"LaNazione":return"NAZIONE";case"qn":default:return"QN";case"IlGiorno":return"GIORNO";case"Luce":return"LUCE"}},v=(e,t)=>
1e.map(e=>e.editions.length>0?e.editions.map(n=>({...n,host:e.id,sub:t.includes(Number(n.id))})):{id:Number(e.mlid),edition:e.keyTestata.replace("qn.",""),host:e.id,sub:t.includes(Number(e.mlid))}).flat();var x=n(45924),b=function(e){let{item:t,subscription:n}=e,[o,i]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{i(t.sub)},[t]),(0,c.jsx)("span",{onClick:()=>{i(!o),n({...t,sub:!o})},className:(0,x.Z)(m().editionsToggle,o&&m().active)})},w=n(46676),y=n(88518),g=!0,A=function(e){let{host:t,site:n,editions:r}=e,f=(null==n?void 0:n.navigation)||[],[x,g]=(0,l.useState)(r),[A,j]=(0,l.useState)(!1),S=(0,a.useRouter)(),N=h(t.key)||"QN",k=(0,o.aF)(),C=k.user.email||"",{trackLead:E}=(0,y.x)(),L=(0,w.useSearchParams)();async function M(e){try{let t;let n=new URLSearchParams;n.append("email",e.email),n.append("sub",String(e.sub)),n.append("id",e.host),n.append("mlids",e.id),await fetch("".concat("https://newsletters.quotidiano.net/newsletter/sub/"),{method:"POST",body:n}).then(e=>e.text()).then(e=>{t=e.split('}]"'),t=JSON.parse(t[2]).desc.split(" ")[1],t="subscribed"===t}),e.sub?(t=null,u.Am.success("Iscrizione confermata!"),E({content_name:"Newsletter Subscription - Account Page",value:0})):e.sub||(t=null,u.Am.success("Ti sei disiscritto!"))}catch(e){console.error("subscription error",e),u.Am.error("Si \xe8 verificato un problema, riprova pi\xf9 tardi.")}}return(0,l.useEffect)(()=>{var e;"newsletter"===L.get("tab")&&(null===(e=document.getElementById("newsletterRef"))||void 0===e||e.scrollIntoView({behavior:"smooth"}))},[]),(0,l.useEffect)(()=>{let e=new URLSearchParams;e.append("email",C),e.append("check","2"),e.append("id",N),Promise.all(["".concat("https://newsletters.quotidiano.net/newsletter/wp-json/feed/","sub/").concat(t.key),"".concat("https://newsletters.quotidiano.net/newsletter/sub/")].map(t=>fetch(t,{method:"POST",body:e}))).then(e=>Promise.all(e.map(e=>e.json()))).then(e=>{let[t,n]=e;g(v(t.newsletter,n))}).catch(e=>{console.error(e)})},[C]),(0,l.useEffect)(()=>(S.events.on("routeChangeComplete",()=>(0,o.Mi)()),()=>{S.events.off("routeChangeComplete",()=>(0,o.Mi)())}),[]),(0,l.useEffect)(()=>{void 0!==k.user.loginStatus&&k.user.loginStatus!==o.$u.Registered&&k.user.loginStatus!==o.$u.Subscriber&&k.user.loginStatus!==o.$u.SubscriberFull&&S.replace("/")},[k.user.loginStatus]),(0,l.useEffect)(()=>{let e=e=>{try{var t;let n="string"==typeof e.data?JSON.parse(e.data):e.data;if((null==n?void 0:null===(t=n.sender)||void 0===t?void 0:t.startsWith("piano-id"))&&"closed"===n.event){let e=k.user.loginStatus;(void 0===e||e===o.$u.Anonymous)&&S.replace("/")}}catch(e){}};return window.addEventListener("message",e),()=>window.removeEventListener("message",e)},[k.user.loginStatus]),(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(o.gx,{leaf:null,account:!0}),(0,c.jsxs)(s(),{children:[(0,c.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,c.jsx)("meta",{name:"section",content:"excludeAdaptivePaywall"})]}),(0,c.jsx)(i.PB,{title:"Iscrizioni alle newsletters",additionalLinkTags:[{rel:"icon",href:"/favicon/".concat(t.key,"/favicon.ico")},{rel:"apple-touch-icon",href:"/favicon/".concat(t.key,"/apple-touch-icon.png"),sizes:"180x180"}]},"newsletters"),(0,c.jsx)(d.Z,{userAgent:!0===t.skipSubscription}),(0,c.jsx)(o.gx,{leaf:null,account:!1}),(0,c.jsx)(p.Z,{sections:f,children:(0,c.jsxs)(_.Z,{children:[(0,c.jsx)("div",{id:"myAccount"}),(0,c.jsx)("div",{className:m().myAccount,children:C?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{id:"newsletterRef",className:m().myAccount__header,onClick:()=>j(!A),children:(0,c.jsx)("h3",{className:m().myAccount__title,children:"Impostazioni newsletter e account"})}),(0,c.jsxs)("div",{className:"".concat(m().myAccount__wrapper," ").concat(A&&m()["myAccount__wrapper--is-open"]),children:[(0,c.jsx)("hr",{}),(0,c.jsx)("h4",{className:m().myAccount__title,children:"Gestisci le tue iscrizioni alle newsletter"}),(0,c.jsxs)("p",{className:m().myAccount__subtitle,children:["Qui trovi le newsletter alle quali puoi iscriverti.",(0,c.jsx)("br",{})," Clicca su unâedizione per iscriverti alla relativa newsletter.",(0,c.jsx)("br",{})," Per disiscriverti dal servizio clicca sulle edizioni selezionate e conferma la disiscrizione (se lâimpostazione \xe8 verde il servizio \xe8 attivo)."]}),(0,c.jsx)("div",{className:m().myAccount__editions,children:null==x?void 0:x.map((e,t)=>(0,c.jsx)(c.Fragment,{children:(0,c.jsxs)("div",{className:m().editionsRow,children:[(0,c.jsxs)("h4",{children:[e.edition,"\xa0"]}),(0,c.jsx)(b,{item:{...e,email:C},subscription:M})]},e.id)}))})]})]}):(0,c.jsx)("div",{className:m().myAccount__placeholder,children:(0,c.jsx)("h3",{className:m().myAccount__title,children:"Per poter gestire le tue iscrizioni devi accedere al tuo account."})})})]})})]})}}
1,39167:function(e){e.exports={XXL:"1680px",XL:"1280px",LG:"1024px",MD:"768px",SM:"375px",container:"ArticleContainer_container__BTf8I"}},22705:function(e){e.exports={XXL:"1680px",XL:"1280px",LG:"1024px",MD:"768px",SM:"375px",panelWrap:"Closable_panelWrap__ztG7u",expanded:"Closable_expanded__T31lJ",wall:"Closable_wall__n0Mjv",blockWall:"Closable_blockWall__6TVM7",panel:"Closable_panel__nBZ_q",intro:"Closable_intro__SPMKH",closable:"Closable_closable__dFLR9",btn:"Closable_btn__iQu1A","gg-chevron-double-down":"Closable_gg-chevron-double-down__N4oTU",locker:"Closable_locker__AgL8k",locked:"Closable_locked__0_I_G"}},17343:function(e){e.exports={XXL:"1680px",XL:"1280px",LG:"1024px",MD:"768px",SM:"375px",myAccount:"account_myAccount__MMgwX",myAccount__title:"account_myAccount__title__Ncknp",myAccount__header:"account_myAccount__header__fzkck",myAccount__editions:"account_myAccount__editions__vN3hy",editionsRow:"account_editionsRow__JzpFL",editionsToggle:"account_editionsToggle__SH_sd",active:"account_active__TnOzv",myAccount__placeholder:"account_myAccount__placeholder__9akEn",myAccount__container:"account_myAccount__container__UEMn4",myAccount__piano:"account_myAccount__piano__9hQV9",myAccount__reset:"account_myAccount__reset__DMNAE",restore__container:"account_restore__container__p0IWq"}}},function(e){e.O(0,[1339,107,4296,6588,2888,9774,179],function(){return e(e.s=36934)}),_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.