(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1179],{69011:function(e,i,r){"use strict";r.d(i,{T:function(){return a}});var l=r(50959);function a(e,i){let r=(0,l.useRef)(null),[a,t]=(0,l.useState)(!0),[d,n]=(0,l.useState)(!1),o=(0,l.useCallback)(()=>{let e=r.current;if(!e)return;let i=e.scrollWidth-e.clientWidth;t(e.scrollLeft<=1),n(e.scrollLeft>=i-1)},[]);return(0,l.useEffect)(()=>{let i=r.current;if(i&&e)return o(),i.addEventListener("scroll",o,{passive:!0}),window.addEventListener("resize",o),()=>{i.removeEventListener("scroll",o),window.removeEventListener("resize",o)}},[e,o,i]),{trackRef:r,atStart:a,atEnd:d,scrollByPage:e=>{var i;let l=r.current;if(!l)return;let a=l.children.item(0),t=l.children.item(1),d=null!==(i=null==a?void 0:a.getBoundingClientRect().width)&&void 0!==i?i:0,n=a&&t?t.getBoundingClientRect().left-a.getBoundingClientRect().left:d,o=n>0?Math.floor((l.clientWidth+(n-d))/n):0,c=o>0?o*n:l.clientWidth;l.scrollBy({left:e*c})}}}},36037:function(e,i,r){"use strict";r.d(i,{X:function(){return t},w:function(){return a}});var l=r(11527);function a(e){let{className:i}=e;return(0,l.jsx)("svg",{className:i,viewBox:"0 0 25.8 25.8",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.8091 5.76587C17.187 6.14371 17.187 6.75629 16.8091 7.13413L11.0433 12.9L16.8091 18.6659C17.187 19.0437 17.187 19.6563 16.8091 20.0341C16.4313 20.412 15.8187 20.412 15.4409 20.0341L8.99087 13.5841C8.61304 13.2063 8.61304 12.5937 8.99087 12.2159L15.4409 5.76587C15.8187 5.38804 16.4313 5.38804 16.8091 5.76587Z",fill:"currentColor"})})}function t(e){let{className:i}=e;return(0,l.jsx)("svg",{className:i,viewBox:"0 0 25.8 25.8",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.2636 6.2636C9.61508 5.91213 10.1849 5.91213 10.5364 6.2636L16.5364 12.2636C16.8879 12.6151 16.8879 13.1849 16.5364 13.5364L10.5364 19.5364C10.1849 19.8879 9.61508 19.8879 9.2636 19.5364C8.91213 19.1849 8.91213 18.6151 9.2636 18.2636L14.6272 12.9L9.2636 7.5364C8.91213 7.18492 8.91213 6.61508 9.2636 6.2636Z",fill:"currentColor"})})}},91179:function(e,i,r){"use strict";r.r(i),r.d(i,{default:function(){return g}});var l=r(11527),a=r(45924),t=r(50959),d=r(19800),n=r(15181),o=r(69011),c=r(36037),s=r(16374),_=r(50240),u=r(52047),v=r.n(u),g=function(e){var i,r,u,g;let{videoPage:w,...h}=e,f=(0,d.$)(),V=(0,t.useId)(),x=(null!==(u=null===(i=h.teasers)||void 0===i?void 0:i.teasers)&&void 0!==u?u:[]).filter(e=>!!e),p=(0,s.K)(h.headline),m=null!==(g=null===(r=h.link)||void 0===r?void 0:r.url)&&void 0!==g?g:void 0,j="/og/".concat(f.key,".jpg"),{trackRef:W,atStart:b,atEnd:C,scrollByPage:N}=(0,o.T)(!0,x.length);return 0===x.length?null:(0,l.jsxs)("section",{className:(0,a.Z)(v().wvc,w&&v()["wvc--videoPage"]),"aria-labelledby":p?V:void 0,"aria-label":p?void 0:"Video",children:[(p||m)&&(0,l.jsxs)("div",{className:v().header,children:[p&&(0,l.jsx)("h2",{id:V,className:v().heading,children:p}),m&&(0,l.jsx)(d.rU,{href:m,className:v().all,children:"Vedi tutti"})]}),(0,l.jsxs)("div",{className:v().viewport,children:[(0,l.jsx)("ul",{ref:W,className:v().track,role:"list",children:x.map((e,i)=>{var r,a;let t=(0,d.Vt)(null!==(r=e.title)&&void 0!==r?r:"").trim();return(0,l.jsx)("li