(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1477],{81477:function(e,r,a){"use strict";a.r(r),a.d(r,{default:function(){return B}});var l=a(11527),n=a(11339),o=a(45924),t=a(50959),s=a(19800),i=a(41249),_=a(58147),d=a(95652);function c(e){return(0,l.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",...e,children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.1 6C2.1 5.50294 2.50294 5.1 3 5.1H21C21.4971 5.1 21.9 5.50294 21.9 6C21.9 6.49706 21.4971 6.9 21 6.9H3C2.50294 6.9 2.1 6.49706 2.1 6ZM2.1 12C2.1 11.5029 2.50294 11.1 3 11.1H21C21.4971 11.1 21.9 11.5029 21.9 12C21.9 12.4971 21.4971 12.9 21 12.9H3C2.50294 12.9 2.1 12.4971 2.1 12ZM2.1 18C2.1 17.5029 2.50294 17.1 3 17.1H21C21.4971 17.1 21.9 17.5029 21.9 18C21.9 18.4971 21.4971 18.9 21 18.9H3C2.50294 18.9 2.1 18.4971 2.1 18Z"})})}function u(e){return(0,l.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",...e,children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 3.9C7.07878 3.9 3.9 7.07878 3.9 11C3.9 14.9212 7.07878 18.1 11 18.1C12.9157 18.1 14.6542 17.3413 15.9314 16.108C15.9562 16.0751 15.9836 16.0436 16.0136 16.0136C16.0436 15.9836 16.0751 15.9562 16.108 15.9314C17.3413 14.6542 18.1 12.9157 18.1 11C18.1 7.07878 14.9212 3.9 11 3.9ZM17.8976 16.6248C19.1493 15.0917 19.9 13.1335 19.9 11C19.9 6.08466 15.9153 2.1 11 2.1C6.08466 2.1 2.1 6.08466 2.1 11C2.1 15.9153 6.08466 19.9 11 19.9C13.1335 19.9 15.0917 19.1493 16.6248 17.8976L20.3636 21.6364C20.7151 21.9879 21.2849 21.9879 21.6364 21.6364C21.9879 21.2849 21.9879 20.7151 21.6364 20.3636L17.8976 16.6248Z"})})}function h(e){return(0,l.jsx)("svg",{viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",...e,children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.50503 5.50503C3.77839 5.23166 4.22161 5.23166 4.49497 5.50503L8 9.01005L11.505 5.50503C11.7784 5.23166 12.2216 5.23166 12.495 5.50503C12.7683 5.77839 12.7683 6.22161 12.495 6.49497L8.49497 10.495C8.22161 10.7683 7.77839 10.7683 7.50503 10.495L3.50503 6.49497C3.23166 6.22161 3.23166 5.77839 3.50503 5.50503Z"})})}function m(e){return(0,l.jsxs)("svg",{viewBox:"0 0 28 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",...e,children:[(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.06395 0C10.4168 0 14.1096 2.93503 14.1081 6.93079C14.1081 9.80013 11.8565 11.5824 11.8346 11.5997C11.8346 11.5997 12.0806 12.3293 12.6487 12.7268C13.0291 12.993 13.75 13.3412 14.3669 13.3412C14.3669 13.3412 14.3719 13.6923 14.3669 13.6958C14.3618 13.6963 12.9002 13.7006 12.037 13.639C11.0279 13.5668 9.73641 13.3504 8.93082 12.6627C7.45538 11.4025 7.45533 9.38148 6.05752 9.38147C5.44086 9.38147 5.05404 9.8791 5.04801 9.8869C5.04801 9.8869 5.04235 11.9284 5.12563 12.2171C5.37967 13.0987 6.28988 13.5881 6.98897 13.5881C7.62233 13.5881 8.30668 13.4369 8.80689 13.2604C8.96981 13.3702 9.02075 13.3994 9.18309 13.483C8.95021 13.6996 7.97603 14 6.98897 14C2.79814 14 0 10.8248 0 6.93079V6.92523C4.68151e-05 2.92906 3.71111 9.17345e-05 7.06395 0ZM7.06395 0.390076C5.83278 0.400671 4.90988 1.2083 4.97259 3.11462V8.87646C4.97259 8.87646 5.77059 7.72412 7.06395 7.64984C8.35792 7.57565 9.19147 8.38855 9.19147 8.38855V3.11462C9.22077 1.14005 8.2114 0.38005 7.06395 0.390076Z"}),(0,l.jsx)("path",{d:"M19.7003 0.156372L26.2399 9.0401V0.515259H24.6548V0.156372H28V0.515259H26.5622V13.7039H24.5335L16.7564 2.42163V13.3412H18.2255V13.7039H14.9301V13.3412H16.2863V0.515259H14.9826V0.156372H19.7003Z"})]})}function w(e){return(0,l.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",...e,children:(0,l.jsx)("path",{d:"M18 6L6.00081 17.9992M17.9992 18L6 6.00085"})})}function b(e){return(0,l.jsx)("svg",{viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",...e,children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.2482 1.69995C7.6742 1.70295 6.4752 1.72795 5.5372 1.87995C4.4362 2.05795 3.6522 2.41295 3.0332 3.03195C2.3702 3.69495 2.0102 4.54695 1.8452 5.77795C1.7042 6.82595 1.7002 8.18595 1.7002 9.99995C1.7002 11.813 1.7042 13.174 1.8452 14.221C2.0102 15.453 2.3702 16.305 3.0332 16.967C3.6952 17.63 4.5472 17.99 5.7782 18.155C6.8262 18.296 8.1862 18.3 9.9992 18.3C11.8132 18.3 13.1722 18.296 14.2202 18.155C15.4522 17.99 16.3032 17.63 16.9662 16.967C17.5852 16.348 17.9402 15.564 18.1182 14.462C18.2702 13.525 18.2952 12.326 18.2982 10.751C18.2982 10.31 17.9412 9.95095 17.4992 9.94995C17.0582 9.94895 16.6982 10.307 16.6982 10.748C16.6952 12.215 16.6802 13.333 16.5392 14.207C16.4242 14.916 16.2332 15.437 15.8342 15.836C15.3982 16.272 14.8172 16.461 14.0072 16.57C13.0122 16.703 11.7212 16.7 9.9992 16.7C8.2782 16.7 6.9862 16.703 5.9922 16.57C5.1812 16.461 4.6002 16.272 4.1642 15.836C3.7282 15.4 3.5392 14.819 3.4302 14.008C3.2972 13.013 3.3002 11.722 3.3002 9.99995C3.3002 8.27795 3.2972 6.98595 3.4302 5.99195C3.5392 5.18095 3.7282 4.59995 4.1642 4.16395C4.5632 3.76495 5.0842 3.57395 5.7932 3.45895C6.6662 3.31795 7.7842 3.30295 9.2512 3.29995C9.6922 3.29895 10.0502 2.93995 10.0492 2.49895C10.0482 2.05695 9.6892 1.69895 9.2482 1.69995ZM15.5312 3.38695L8.6402 10.318C8.3292 10.631 8.33019 11.138 8.6432 11.449C8.9562 11.761 9.4632 11.759 9.7752 11.446L16.6572 4.52395C16.7152 5.38995 16.6992 6.36295 16.6952 6.67795C16.6892 7.11895 17.0422 7.48295 17.4842 7.48895C17.9252 7.49495 18.2892 7.14195 18.2952 6.70095C18.3012 6.27295 18.3202 4.73095 18.1852 3.69695C18.1212 3.19895 17.9852 2.79595 17.8402 2.54495L17.7762 2.44095L17.6962 2.34795L17.6032 2.26795L17.4992 2.20295C17.2482 2.05795 16.8452 1.92295 16.3482 1.85795C15.3152 1.72295 13.7742 1.74195 13.3482 1.74795C12.9062 1.75395 12.5532 2.11795 12.5592 2.55895C12.5652 3.00095 12.9292 3.35395 13.3702 3.34795C13.6862 3.34295 14.6642 3.32795 15.5312 3.38695Z"})})}var f=a(11342),p=a.n(f),v=a(21409),x=a(60601);let g="hc-menu-drawer",C="hc-menu-search";function j(e){var r,a;let{entry:n,siteHost:t}=e;if(n.children.length)return(0,l.jsx)("li",{children:(0,l.jsxs)("details",{className:p().drawer__group,children:[(0,l.jsxs)("summary",{className:p().drawer__row,children:[n.label,(0,l.jsx)(h,{className:p().drawer__chevron})]}),(0,l.jsx)("ul",{className:p().drawer__sublist,children:n.children.map(e=>{var r,a;return(0,l.jsx)("li",{children:(0,l.jsxs)(s.rU,{href:null!==(r=e.href)&&void 0!==r?r:"#",target:null!==(a=e.target)&&void 0!==a?a:void 0,rel:e.nofollow?"nofollow":void 0,className:p().drawer__subLink,children:[e.label,(0,x.by)(e,t)?(0,l.jsx)(b,{className:p().drawer__subIcon}):(0,l.jsx)(h,{className:p().hoverArrow})]})},e.id)})})]})});let i=(0,x.by)(n,t);return(0,l.jsx)("li",{children:(0,l.jsxs)(s.rU,{href:null!==(r=n.href)&&void 0!==r?r:"#",target:null!==(a=n.target)&&void 0!==a?a:void 0,rel:n.nofollow?"nofollow":void 0,className:p().drawer__row,children:[n.label,i?(0,l.jsx)(b,{className:p().drawer__trail}):(0,l.jsx)(h,{className:(0,o.Z)(p().drawer__trail,p().drawer__next)})]})})}var N=function(e){let{open:r,onClose:a,entries:n,actions:o}=e,i=(0,s.$)(),{Wordmark:_}=(0,d.D)(i.key),c=(0,v.useRouter)(),h=(0,t.useRef)(null),m=(0,t.useRef)(null),[b,f]=(0,t.useState)("");return(0,t.useEffect)(()=>{var e;if(!r)return;null===(e=m.current)||void 0===e||e.focus();let a=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=a}},[r]),(0,l.jsxs)("div",{className:p().drawer,"data-open":r?"":void 0,onKeyDown:e=>{var r,l;if("Escape"===e.key){a();return}if("Tab"!==e.key)return;let n=Array.from(null!==(l=null===(r=h.current)||void 0===r?void 0:r.querySelectorAll("a[href], button, input, summary"))&&void 0!==l?l:[]).filter(e=>e.getClientRects().length>0);if(!n.length)return;let o=n[0],t=n[n.length-1],s=document.activeElement===o||document.activeElement===h.current;e.shiftKey&&s?(e.preventDefault(),t.focus()):e.shiftKey||document.activeElement!==t||(e.preventDefault(),o.focus())},children:[(0,l.jsx)("button",{type:"button",className:p().drawer__backdrop,tabIndex:-1,"aria-hidden":"true",onClick:a}),(0,l.jsxs)("div",{ref:h,id:g,className:p().drawer__panel,role:"dialog","aria-modal":"true","aria-label":"Menu",tabIndex:-1,children:[(0,l.jsxs)("div",{className:p().drawer__head,children:[(0,l.jsxs)("div",{className:p().drawer__bar,children:[(0,l.jsx)(_,{className:p().drawer__logo}),(0,l.jsx)("button",{ref:m,type:"button",className:p().drawer__close,"aria-label":"Chiudi il menu",onClick:a,children:(0,l.jsx)(w,{className:p().drawer__closeIcon})})]}),(0,l.jsxs)("form",{role:"search",action:"/cerca",method:"get",className:p().drawer__search,onSubmit:e=>{let r=b.trim();e.preventDefault(),r&&(a(),c.push({pathname:"/cerca",query:{q:r}}))},children:[(0,l.jsx)("label",{htmlFor:C,className:p().srOnly,children:"Cerca nel sito"}),(0,l.jsx)("input",{id:C,type:"search",name:"q",autoComplete:"off",placeholder:"Cosa stai cercando?",value:b,onChange:e=>f(e.target.value)}),(0,l.jsx)(u,{className:p().drawer__lens})]})]}),(0,l.jsx)("nav",{className:p().drawer__nav,"aria-label":"Menu principale",children:(0,l.jsx)("ul",{className:p().drawer__list,children:n.map(e=>(0,l.jsx)(j,{entry:e,siteHost:i.virtual_url},e.id))})}),(0,l.jsx)("div",{className:p().drawer__actions,children:o})]})]})},V=a(10422);let H="hc-search-input";var y=function(e){let{onClose:r}=e,a=(0,v.useRouter)(),n=(0,t.useRef)(null),o=(0,t.useRef)(null),[i,_]=(0,t.useState)("");(0,t.useEffect)(()=>{var e;null===(e=n.current)||void 0===e||e.focus();let r=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=r}},[]);let d=()=>{let e=i.trim();e&&(r(),a.push({pathname:"/cerca",query:{q:e}}))};return(0,V.createPortal)((0,l.jsxs)("div",{className:p().searchModal,role:"dialog","aria-modal":"true","aria-label":"Ricerca nel sito",onKeyDown:e=>{var a;if("Escape"===e.key){r();return}if("Tab"!==e.key)return;let l=null===(a=o.current)||void 0===a?void 0:a.querySelectorAll("button, input");if(!(null==l?void 0:l.length))return;let n=l[0],t=l[l.length-1];e.shiftKey&&document.activeElement===n?(e.preventDefault(),t.focus()):e.shiftKey||document.activeElement!==t||(e.preventDefault(),n.focus())},children:[(0,l.jsx)("button",{type:"button",className:p().searchModal__backdrop,tabIndex:-1,"aria-hidden":"true",onClick:r}),(0,l.jsxs)("div",{ref:o,className:p().searchModal__panel,children:[(0,l.jsx)("button",{type:"button",className:p().searchModal__close,"aria-label":"Chiudi la ricerca",onClick:r,children:(0,l.jsx)(s.JO,{variant:s.W0.Close,color:s.YQ.Inherit,size:s.ZK.SM})}),(0,l.jsx)("div",{role:"search",className:p().searchModal__area,children:(0,l.jsxs)("label",{htmlFor:H,className:p().searchModal__field,children:[(0,l.jsx)("span",{className:p().searchModal__label,children:"Cerca nel sito"}),(0,l.jsx)("input",{ref:n,id:H,type:"search",name:"q",autoComplete:"off",placeholder:"Descrivi l'informazione che cerchi",value:i,onChange:e=>_(e.target.value),onKeyDown:e=>{"Enter"===e.key&&d()}}),(0,l.jsx)(u,{className:p().searchModal__lens})]})})]})]}),document.body)};function M(){var e;return null!==(e=(0,s.$)().subscribe_url)&&void 0!==e?e:"https://www.quotidiano.net/abbonati"}function k(e){return e===s.$u.Subscriber||e===s.$u.SubscriberFull}let L="abbonati_sso",U="categorie",S="speciali",E=[x.j9,U],Z=["cronaca","politica","economia","sport","cultura e spettacoli","cosa fare","video","leggi il giornale"],R=e=>e.trim().toLowerCase(),A=e=>e.preventDefault();function q(e){var r;let{entry:a}=e;return(0,l.jsx)("li",{className:p().tab,children:(0,l.jsx)(s.rU,{href:null!==(r=a.href)&&void 0!==r?r:"#",className:p().tab__link,children:a.label})})}function D(e){let{label:r,className:a}=e;return(0,l.jsxs)(n.xz,{className:(0,o.Z)(p().tab__link,a),onPointerMove:A,onPointerLeave:A,children:[r,(0,l.jsx)(h,{className:p().tab__icon})]})}function I(){let e=(0,s.$)();return(0,l.jsxs)(n.ck,{value:x.j9,className:(0,o.Z)(p().tab,p().tabCities),children:[(0,l.jsx)(D,{label:"Citt\xe0",className:p().pill}),(0,l.jsx)(n.VY,{className:(0,o.Z)(p().dropdown,p().dropdownCities),onPointerLeave:A,children:(0,d.D)(e.key).cityColumns.map(e=>(0,l.jsx)("ul",{className:p().dropdown__column,children:e.map(e=>(0,l.jsxs)("li",{children:[e.href?(0,l.jsx)(s.rU,{href:e.href,className:(0,o.Z)(p().dropdown__item,p().dropdown__region),children:e.label}):(0,l.jsx)("span",{className:(0,o.Z)(p().dropdown__item,p().dropdown__region,p().dropdown__heading),children:e.label}),e.cities.length>0&&(0,l.jsx)("ul",{className:p().dropdown__column,children:e.cities.map(e=>(0,l.jsx)("li",{children:(0,l.jsx)(s.rU,{href:e.href,className:p().dropdown__item,children:e.label})},e.href))})]},e.label))},e[0].label))})]})}function T(e){let{value:r,label:a,entries:t,className:i,triggerClassName:_}=e;return(0,l.jsxs)(n.ck,{value:r,className:(0,o.Z)(p().tab,i),children:[(0,l.jsx)(D,{label:a,className:_}),(0,l.jsx)(n.VY,{className:(0,o.Z)(p().dropdown,p().dropdownSpecials),onPointerLeave:A,children:(0,l.jsx)("ul",{className:p().dropdown__column,children:t.map(e=>{var r,a;return(0,l.jsx)("li",{children:(0,l.jsx)(s.rU,{href:null!==(r=e.href)&&void 0!==r?r:"#",target:null!==(a=e.target)&&void 0!==a?a:void 0,rel:e.nofollow?"nofollow":void 0,className:p().dropdown__item,children:e.label})},e.id)})})})]})}function F(e){let{className:r,menuClassName:a,label:n,premium:o}=e,[i,_]=(0,t.useState)(!1),d=(0,t.useRef)(null),c=(0,t.useId)(),u=M(),m=(0,t.useCallback)(()=>_(!1),[]);return(0,s.qi)(d,m),(0,t.useEffect)(()=>{if(!i)return;let e=e=>{"Escape"===e.key&&_(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[i]),(0,l.jsxs)("div",{ref:d,className:a,children:[(0,l.jsxs)("button",{type:"button",className:r,"aria-expanded":i,"aria-controls":c,onClick:()=>_(e=>!e),children:[(0,l.jsxs)("span",{className:p().loginMenu__name,children:["Ciao, ",n]}),(0,l.jsx)(h,{className:p().loginMenu__chevron})]}),i&&(0,l.jsxs)("ul",{id:c,className:p().loginMenu__list,onClick:m,children:[(0,l.jsx)("li",{children:(0,l.jsx)(s.rU,{href:"/account?tab=pianoid",className:p().loginMenu__item,children:"Profilo"})}),(0,l.jsx)("li",{children:o?(0,l.jsx)(s.rU,{href:"/account?tab=payment",className:p().loginMenu__item,children:"Abbonamenti"}):(0,l.jsx)(s.rU,{href:u,target:"_blank",rel:"noopener",externalUrl:!0,"aria-label":"Abbonati (si apre in una nuova scheda)",className:p().loginMenu__item,children:"Abbonati"})}),(0,l.jsx)("li",{children:(0,l.jsx)(s.rU,{href:"/account?tab=newsletter",className:p().loginMenu__item,children:"Newsletter"})}),(0,l.jsx)("li",{children:(0,l.jsx)("button",{type:"button",className:p().loginMenu__item,onClick:()=>(0,s.VX)(),children:"Logout"})})]})]})