(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3687],{95581:function(e,l,i){"use strict";i.r(l),i.d(l,{default:function(){return _}});var a=i(11527),t=i(45924),o=i(19800),r=i(76141),n=i(47932),c=i(6411),s=i.n(c);let d=/^cosa\s+fare$/i;var _=function(e){var l;let{title:i,tone:c,href:_,className:u,variant:m,children:g}=e,p=(0,o.$)();if(!i)return"box"===m?(0,a.jsx)(a.Fragment,{children:g}):null;let v=d.test(i.trim())?"brand":null!==(l=(0,n.ge)(_,i,p.key))&&void 0!==l?l:c,h=(0,a.jsx)("h2",{className:s().tab,children:_?(0,a.jsx)(o.rU,{href:_,className:s().link,children:i}):i});return"box"===m?(0,a.jsxs)("section",{className:(0,t.Z)(s().cl,s()["cl--box"],s()["cl--".concat(v)],u),children:[(0,a.jsxs)("div",{className:s().head,children:[h,(0,a.jsx)(r.aZ,{className:s().corner})]}),g]}):(0,a.jsxs)("div",{className:(0,t.Z)(s().cl,s()["cl--".concat(v)],u),children:[h,(0,a.jsx)(r.yt,{className:s().corner})]})}},22579:function(e,l,i){"use strict";i.d(l,{Z:function(){return h}});var a=i(11527),t=i(50959),o=i(45924),r=i(19800),n=i(15181),c=i(16385),s=i(50401),d=i(94457),_=i(20479),u=i(95581),m=i(16374),g=i(51853),p=i(78319),v=i.n(p);function h(e){var l;let{teaser:i,large:c,small:s,videoPlayerType:d,onSelect:u,lead:m}=e,p=(0,r.$)(),h=(0,n.DW)(i),x=(0,n.FW)(i),y=(0,_.c)().ofTeaser(i),V=p.virtual_base_url||"",b=(0,t.useRef)(null),f=(0,t.useRef)(null);return l=!c&&!s&&!!i.text,(0,t.useEffect)(()=>{var e;let i=b.current,a=f.current;if(!l||!i||!a||"undefined"==typeof ResizeObserver)return;let t=window.matchMedia("(min-width: 1024px)"),o=()=>{if(!t.matches){a.style.removeProperty("--rc-summary-lines"),a.style.removeProperty("display");return}let e=getComputedStyle(i),l=parseFloat(e.rowGap)||0,o=Array.from(i.children).filter(e=>e!==a),r=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)+o.reduce((e,l)=>e+l.getBoundingClientRect().height,0)+l*o.length,n=parseFloat(getComputedStyle(a).lineHeight),c=n>0?Math.floor((185-r+.5)/n):2;a.style.setProperty("--rc-summary-lines",String(Math.max(c,1))),a.style.display=c<1?"none":""};o();let r=new ResizeObserver(o);return Array.from(i.children).forEach(e=>{e!==a&&r.observe(e)}),null===(e=t.addEventListener)||void 0===e||e.call(t,"change",o),()=>{var e;r.disconnect(),null===(e=t.removeEventListener)||void 0===e||e.call(t,"change",o)}},[b,f,l]),(0,a.jsxs)("article",{className:(0,o.Z)(v().card,c?v()["card--large"]:v()["card--row"],s&&v()["card--small"],"hero"===m&&v()["card--hero"]),"data-k5a-pos":i["data-k5a-pos"],onClick:u,children:[s?null:(0,n.n5)(i)?(0,a.jsx)("div",{className:(0,o.Z)(v().media,v()["media--player"]),children:(0,a.jsx)(n.XV,{teaser:i,playerType:d})}):(0,a.jsx)(n.pU,{teaser:i,className:v().media,width:c?660:360,sizes:c?"(min-width: 1024px) 646px, 100vw":"(min-width: 1024px) 238px, 100vw",priority:!!m,mobile4x3Below:"hero"===m?1024:void 0}),(0,a.jsxs)("div",{ref:b,className:v().body,children:[(0,a.jsxs)("div",{className:v().heading,children:[(0,a.jsx)(g.bj,{teaser:i}),x&&(0,a.jsx)("p",{className:(0,o.Z)(v().overline,y&&v()["overline--".concat(y)]),children:x}),i.title&&(0,a.jsx)("h3",{className:v().title,children:(0,n.Zm)(i.title,"title",h,V)})]}),i.text&&(0,a.jsx)("p",{ref:f,className:v().summary,children:(0,n.Zm)(i.text,"summary",h,V)}),(0,a.jsx)(n.YK,{teaser:i,className:v().byline})]})]})}let x=/^le notizie del giorno$/i,y=/medium|automatico/i;l.C=function(e){var l,i,o,_,g;let p;let[V]=(0,r.t6)(),b=(null!==(o=null===(l=e.teasers)||void 0===l?void 0:l.teasers)&&void 0!==o?o:[]).filter(e=>!!e),f=b.findIndex(e=>"adv"!==e.__typename);if(-1===f)return null;let j=y.test(null!==(_=e.layout)&&void 0!==_?_:""),N=(l,i)=>{if(!e.layoutSizes)return{large:!j&&i===f,small:!1};let a=(0,s.S)(l.layout);return{large:!j&&(a===d.Id.LG||a===d.Id.XL),small:a===d.Id.SM}},k=b.findIndex((e,l)=>"adv"!==e.__typename&&!N(e,l).small),w=-1!==k&&N(b[k],k).large,W=(0,m.K)(e.headline),C=!!W&&!x.test(W.trim()),S="hero"===e.lead&&(C||!w)?"priority":e.lead,R=b.map((e,l)=>{if(!C||"adv"===e.__typename)return!1;let{large:i,small:a}=N(e,l),t=i?"large":a?"small":"row",o=void 0!==p&&t!==p;return p=t,o}),L=(0,a.jsx)("div",{className:v().rullo,children:b.map((l,i)=>{var o;return(0,a.jsxs)(t.Fragment,{children:[R[i]&&(0,a.jsx)("div",{className:v().divider,"aria-hidden":"true"}),(0,a.jsx)(c.Z,{typename:l.__typename,id:l.id,children:(0,a.jsx)(h,{teaser:l,...N(l,i),videoPlayerType:e.videoPlayerType,onSelect:()=>V(r.Sc.HP_POS,{title:l.title,path:(0,n.DW)(l),position:l["data-k5a-pos"],source:"CARD"}),lead:i===k?S:void 0})})]},null!==(o=l.id)&&void 0!==o?o:i)})});return C?(0,a.jsx)(u.default,{variant:"box",title:W,tone:"brand",href:null!==(g=null===(i=e.link)||void 0===i?void 0:i.url)&&void 0!==g?g:void 0,className:v().box,children:L}):(0,a.jsxs)(a.Fragment,{children:[W&&(0,a.jsx)(u.default,{title:W,tone:"brand",className:v().label}),L]})}},93687:function(e,l,i){"use strict";i.r(l),i.d(l,{default:function(){return w}});var a=i(11527),t=i(45924),o=i(50959),r=i(19800),n=i(15181),c=i(47932),s=i(22579),d=i(36037),_=i(16374);let u="https://www.quotidiano.net",m="/logo/v3/podcast",g=[{key:"money-vibez-stories",title:"Money Vibez Stories",category:"Economia",href:"".concat(u,"/video/money-vibez-stories"),kind:"logo",image:"".concat(m,"/logo_moneyvibez.svg"),logoHeight:"33%",color:"#005AC8"},{key:"soundcheck",title:"Soundcheck",category:"Musica",href:"".concat(u,"/video/soundcheck"),kind:"logo",image:"".concat(m,"/logo_soundcheck.svg"),logoHeight:"34%",color:"#040D48"},{key:"sedici-noni",title:"Sedici Noni",category:"Cinema e TV",href:"".concat(u,"/video/sedici-noni"),kind:"logo",image:"".concat(m,"/logo_sedicinoni.svg"),logoHeight:"28%",color:"#250100"},{key:"il-piacere-della-lettura",title:"Il piacere della lettura",category:"Libri e Cultura",href:"".concat(u,"/video/il-piacere-della-lettura"),kind:"logo",image:"".concat(m,"/logo_lettura.svg"),logoHeight:"19%",color:"#2C2A0D"},{key:"scene",title:"Scene",category:"Cronaca",href:"".concat(u,"/video/scene"),kind:"logo",image:"".concat(m,"/logo_scene.png"),logoHeight:"48%",color:"#242D2C"},{key:"tech-talks",title:"Tech Talks",category:"Tecnologia",href:"".concat(u,"/video/tech-talks"),kind:"logo",image:"".concat(m,"/logo_techtalks.svg"),logoHeight:"33%",color:"#1E5D71"}],p="".concat(u,"/image-service/view/acePublic/alias/contentid"),v={"il-lavoro-la-passione-del-fare":{title:"Il lavoro, la passione del fare",image:"".concat(p,"/NzY1YTVlMzYtYjU4NC00/6/podcast-cover-il-lavoro-la-passione-del-fare.webp"),color:"#B13F38"},"pisa-nel-pallone":{title:"Pisa nel pallone",image:"".concat(p,"/NGM2YWM2MzMtOGM3YS00/8/pisa-nel-pallone.webp"),color:"#2A3B84"},"leuropa-che-vogliamo":{title:"L'Europa che vogliamo",image:"".concat(p,"/ZTBjMWRmZDYtMjYyYy00/10/l-europa-che-vogliamo.webp"),color:"#217AA8"},"miss-america":{title:"Miss America",image:"".concat(p,"/NDY5YzZkMDUtMjc1MC00/9/miss-america-podcast_image.webp"),color:"#8E2726"},"eni-ai-inclusione":{title:"Ai e inclusione: riflessioni su diversit\xe0 e innovazione",image:"".concat(p,"/Y2I3Y2QzNzUtOTBkMy00/5/ai-inclusione.webp"),color:"#22354E"},"we-will-work-il-lavoro-di-domani":{title:"We will work. Il lavoro di domani",image:"".concat(p,"/MDNiNjBmNWQtNDEwNi00/5/we-will-work.webp"),color:"#157D9F"},"willy-branchi":{title:"Willy Branchi",image:"".concat(p,"/ZmRlYzNkOTMtODg5Ni00/11/willy-branchi-16-9.webp"),color:"#3A7BAC"},"lo-dice-la-nazione":{title:"Lo dice La Nazione",image:"".concat(p,"/NzJkMWUxNGYtYzdhOC00/10/lo-dice-la-nazione-cover.webp"),color:"#3F7F74"},"un-giorno-a-milano":{title:"Un giorno a Milano",image:"".concat(p,"/NjQ2ZTUyNWUtOGFlNy00/7/un-giorno-a-milano.webp"),color:"#0478D1"},"il-resto-di-bologna":{title:"il Resto di Bologna",image:"".concat(p,"/MzllNGE0NDgtYjc2YS00/3/il-resto-di-bologna.webp"),color:"#996C41"},"qn-x-le-donne":{title:"QN X Le Donne",image:"".concat(p,"/NjVkOWY4MDgtYWMxYi00/4/qn-x-le-donne.webp"),color:"#B4002F"},"cronache-dall-alluvione":{title:"Cronache dall'alluvione",image:"".concat(p,"/YTJkMjVjODMtYTQxZS00/6/cronache-dall-alluvione-16-9.webp"),color:"#404A59"},"un-altro-giorno":{title:"Un altro giorno",image:"".concat(p,"/OWRhNTVmYjAtMzUxNi00/3/un-altro-giorno.webp"),color:"#00838E"},"pecore-elettriche":{title:"Pecore Elettriche il podcast di David Allegranti",image:"".concat(p,"/MTk3ODViYzYtYzdmZC00/5/pecore-elettriche.webp"),color:"#26808A"},"sliding-rock":{title:"Sliding Rock",image:"".concat(p,"/N2I3MWUxOTgtNWE4OC00/5/sliding-rock.webp"),color:"#580FC7"},mondialeo:{title:"Mondialeo",image:"".concat(p,"/YzUwNDI2YzctMmQ4ZC00/3/mondialeo.webp"),color:"#138913"},"formula-leo":{title:"Formula Leo",image:"".concat(p,"/Nzk3NWU3M2UtZjI0YS00/3/formula-leo.webp"),color:"#94181D"}};function h(e){var l;return null===(l=e.match(/\/podcast\/([^/?#]+)/))||void 0===l?void 0:l[1]}var x=i(45701),y=i(4739),V=i.n(y);function b(e){let{items:l,variant:i}=e,r=(0,o.useRef)(null),[n,c]=(0,o.useState)(!0),[s,_]=(0,o.useState)(!1),u=(0,o.useCallback)(()=>{let e=r.current;if(!e)return;let l=e.scrollWidth-e.clientWidth;c(e.scrollLeft<=1),_(e.scrollLeft>=l-1)},[]);(0,o.useEffect)(()=>{let e=r.current;if(e)return u(),e.addEventListener("scroll",u,{passive:!0}),window.addEventListener("resize",u),()=>{e.removeEventListener("scroll",u),window.removeEventListener("resize",u)}},[u,l.length]);let m=e=>{var l;let i=r.current;if(!i)return;let a=i.children.item(0),t=i.children.item(1),o=null!==(l=null==a?void 0:a.getBoundingClientRect().width)&&void 0!==l?l:0,n=a&&t?t.getBoundingClientRect().left-a.getBoundingClientRect().left:o,c=n>0?Math.floor((i.clientWidth+(n-o)+.5)/n):0,s=c>0?c*n:i.clientWidth;i.scrollBy({left:e*s})};return(0,a.jsxs)("div",{className:V().carousel,children:[(0,a.jsx)("ul",{ref:r,className:(0,t.Z)(V().carousel__track,i&&V()["carousel__track--".concat(i)]),role:"list",children:l.map(e=>{let{key:l,node:o}=e;return(0,a.jsx)("li",{className:(0,t.Z)(V().carousel__item,i&&V()["carousel__item--".concat(i)]),children:o},l)})}),l.length>2&&(0,a.jsxs)("div",{className:V().controls,children:[(0,a.jsx)("button",{type:"button",className:V().controls__button,onClick:()=>!n&&m(-1),"aria-disabled":n,"aria-label":"Notizie precedenti",children:(0,a.jsx)(d.w,{className:(0,t.Z)(V().controls__icon,V()["controls__icon--prev"])})}),(0,a.jsx)("button",{type:"button",className:V().controls__button,onClick:()=>!s&&m(1),"aria-disabled":s,"aria-label":"Notizie successive",children:(0,a.jsx)(d.X,{className:(0,t.Z)(V().controls__icon,V()["controls__icon--next"])})})]})]})}function f(e){var l;let{podcast:i,onSelect:o}=e;return(0,a.jsx)("article",{className:V().podcast,"data-k5a-pos":null===(l=i.teaser)||void 0===l?void 0:l["data-k5a-pos"],onClick:o,children:(0,a.jsxs)(r.rU,{href:i.href||"/",className:V().podcast__link,children:[(0,a.jsx)("span",{className:(0,t.Z)(V().podcast__tile,"logo"===i.kind&&V()["podcast__tile--logo"]),style:{backgroundColor:i.color,"--vw-logo-height":i.logoHeight},children:"logo"===i.kind?(0,a.jsx)("img",{className:V().podcast__logo,src:i.image,alt:"",loading:"lazy"}):(0,a.jsx)(r.Ee,{src:i.image,alt:"",fill:!0,format:"1:1",sizes:"191px",loading:"lazy",onError:e=>{e.currentTarget.dataset.broken=""}})}),(0,a.jsxs)("div",{className:V().podcast__heading,children:[(0,a.jsx)("h3",{className:V().podcast__title,children:i.title}),i.category&&(0,a.jsx)("p",{className:V().podcast__category,children:i.category})]})]})})}let j=[{segment:"mobilita",label:"QN Mobilit\xe0",accent:"mobilita"},{segment:"economia",label:"QN Economia",accent:"economia"}];function N(e){if(!e)return[];try{return new URL(e,"https://www.quotidiano.net").pathname.split("/").filter(Boolean)}catch(e){return[]}}function k(e){var l,i,o;let{teaser:s,media:d,summary:u=!0,byline:m,sponsored:g,onSelect:p}=e,v=(0,r.$)(),h=(0,n.DW)(s),x=v.virtual_base_url||"",y=g?function(e){var l;let i=null===(l=e.content)||void 0===l?void 0:l.parent,a=[...N((0,n.DW)(e)),...N(null==i?void 0:i.path)];return j.find(e=>a.includes(e.segment))}(s):void 0,b=(0,_.K)(s.teaserOvertitle||(null===(l=s.content)||void 0===l?void 0:l.overTitle)),f=g&&(b||(null==y?void 0:y.label))||(0,n.FW)(s),k=g?null!==(o=null==y?void 0:y.accent)&&void 0!==o?o:(0,c.$p)(s,v.key):void 0,w=g?(0,_.K)((null===(i=s.content)||void 0===i?void 0:i.sponsoredBy)||s.byline):"";return(0,a.jsxs)("article",{className:V().card,"data-k5a-pos":s["data-k5a-pos"],onClick:p,children:[d&&(0,a.jsx)(n.pU,{teaser:s,className:V().media,width:360,sizes:"(min-width: 1024px) 290px, 297px"}),(0,a.jsxs)("div",{className:V().body,children:[(0,a.jsxs)("div",{className:V().heading,children:[f&&(0,a.jsx)("p",{className:(0,t.Z)(V().overline,k&&V()["