1(window.__LOADABLE_LOADED_CHUNKS__=window.__LOADABLE_LOADED_CHUNKS__||[]).push([[35],{378:function(e,t,r){"use strict";r.r(t);r(3),r(4);var n=r(1),i=r.n(n),o=r(2),a=r(105),s=r(39),c=r(188),l=(r(46),r(32),r(38),r(27)),d=r(637),b=r(151),u=r(0);const p=({title:e,description:t,linkVideo:r,forcePortrait:n=!1})=>{const[o,a]=i.a.useState(!0),s=(null==r?void 0:r.includes("/reels/"))||(null==r?void 0:r.includes("/reel/")),c=null!=n?n:s;return Object(u.jsx)(u.Fragment,{children:Object(u.jsxs)(f,{className:"boxLive",children:[Object(u.jsx)(l.a,{dark:"",light:"1",contenuto:"In Diretta",linkButton:"",bottomLine:"",alignCenter:"1",hideTopLine:"1",color:"#fff"}),Object(u.jsxs)("div",{className:"contenuto",children:[Object(u.jsxs)("div",{className:"liveContent liveVideo "+(c?"is-portrait":"is-landscape"),children:[o&&Object(u.jsx)("section",{className:"badgeContainer webTV",children:Object(u.jsx)("div",{className:"badgeCopertina videoInArticle",children:Object(u.jsx)("img",{alt:"Video",className:"frontity-lazy-image",loading:"lazy",src:b.a})})}),Object(u.jsx)(d.a,{url:r,controls:!0,playing:!0,muted:!0,loop:!0,onReady:()=>{console.log("+++ ReactPlayer +++"),a(!1)},config:{facebook:{attributes:{height:"360px",backgroundColor:"#000"}}}})]}),Object(u.jsx)("div",{className:"liveContent liveDescrizione",children:Object(u.jsxs)("div",{className:"txtContainer",children:[Object(u.jsx)("h2",{children:e}),Object(u.jsx)("p",{children:t})]})})]})]})})},f=Object(o.styled)("div",{target:"eeq0qyi0"})({name:"1ls14pz",styles:"background:linear-gradient(0deg, rgba(139,0,0,1) 0%, rgba(189,0,0,1) 100%);.liveVideo{width:100%;display:flex;justify-content:center;background:#000;}"});var j=r(15),m=r(5);const O=Object(o.styled)("div",{target:"e16wm1xj0"})({name:"1u73yf7",styles:"clear:both;width:100%"});t.default=Object(o.connect)(()=>{var e;const{state:t}=Object(o.useConnect)(),r=new m.a("Home");r.setLevel(0),r.v("INIT");let i=t.source.data["/pressnews_options/"].items.autorefresh_homepage||300;r.i("secondi per il refresh: ",i);let l,d,b,f=null===(e=t.source.data["/pressnews_options/"])||void 0===e?void 0:e.items.liveStreaming;f&&(l=f.titoloLiveStreaming,d=f.UrlLiveStreaming,b=f.descrizioneLiveStreaming);const _=Object(n.useRef)(null),[h,g]=Object(n.useState)(!1),{cmpType:v}=Object(j.q)();return Object(n.useEffect)(()=>{if("clickIo"!==v)return;r.v("start body class observer");const e=new MutationObserver(e=>{for(const t of e)if("attributes"===t.type&&"class"===t.attributeName){r.v("mutation on class found");t.target.classList.contains("__lxG__paywall_shown")?(r.v("paywall open"),g(!0)):(r.v("paywall closed"),g(!1));break}});return e.observe(document.body,{attributes:!0}),()=>{e.disconnect()}},[]),Object(n.useEffect)(()=>{r.v("check refresh",_.current),clearTimeout(_.current),!f&&!h&&i>0&&(r.v("set refresh of "+i+" seconds"),_.current=setTimeout((function(){"/"==t.router.link&&window.location.reload()}),1e3*i))},[h]),Object(u.jsx)(u.Fragment,{children:Object(u.jsxs)(c.a,{children:[Object(u.jsx)("section",{className:"homepageHeader",children:f&&Object(u.jsx)(p,{title:l,description:b,linkVideo:d})}),Object(u.jsx)(O,{}),Object(u.jsx)(s.a,{children:Object(u.jsx)(a.a,{className:"home_breaking_box_2",sidebarSlug:"home_breaking_box_2",SSR:!0})}),Object(u.jsx)(s.a,{children:Object(u.jsx)(a.a,{className:"home_breaking_box_3",sidebarSlug:"home_breaking_box_3"})}),Object(u.jsx)(s.a,{children:Object(u.jsx)(a.a,{className:"home_breaking_box_4",sidebarSlug:"home_breaking_box_4"})}),Object(u.jsx)(O,{})]})})})},637:function(e,t,r){"use strict";r.d(t,"a",(function(){return p}));var n=r(1),i=r(69),o=r(646),a=r.n(o),s=r(0);const c=["hasWrapper"];function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){b(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEac
1h((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function p(e){let{hasWrapper:t=!1}=e,r=u(e,c);delete r.wrapper;return t?Object(s.jsx)(a.a,d(d({},r),{},{wrapper:({children:e})=>{const t=Object(n.useRef)(null);return Object(n.useEffect)(()=>{const e=()=>{if(t.current){const r=t.current.querySelector(".fb-video > span"),n=new ResizeObserver(e=>{const t=r.clientHeight,o=r.children[0].clientWidth;console.log("HEIGHT "+t),console.log("WIDTH "+o);let a=!1;if(console.log(window.innerWidth),a=i.isMobile&&window.innerWidth<380?t>300:t>600,a){let e=r;"width: auto !important;","}",".fb_iframe_widget_fluid_desktop, .fb_iframe_widget_fluid_desktop span{","position: unset !important;","}",".standardArticle .react-player-wrapper iframe {","position: absolute;top: 50%; left: 50%; transform: translate(-50%, -50%); height: 100% !important; object-fit: contain; ","}",".standardArticle .react-player-wrapper{","aspect-ratio: unset !important","}",setTimeout((function(){e.style.width="auto";var t=document.createElement("style");t.textContent=".fb_iframe_widget_fluid_desktop, .fb_iframe_widget_fluid_desktop span, .fb_iframe_widget_fluid_desktop iframe {width: auto !important;}.fb_iframe_widget_fluid_desktop, .fb_iframe_widget_fluid_desktop span{position: unset !important;}.standardArticle .react-player-wrapper iframe {position: absolute;top: 50%; left: 50%; transform: translate(-50%, -50%); height: 100% !important; object-fit: contain; }.standardArticle .react-player-wrapper{aspect-ratio: unset !important}",document.head.appendChild(t),n.unobserve(r)}),500)}});r?n.observe(r):"complete"===document.readyState?t.current.style.height="600px":setTimeout(e,200)}};e()},[e]),Object(s.jsx)("div",{className:"react-player-wrapper",ref:t,children:e})}})):Object(s.jsx)(a.a,d({},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.