1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[603],{5576:function(e,n,t){"use strict";t.d(n,{C:function(){return i}});var r=t(2809);function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function o(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function i(e){var n,t,r,a,i,s,l;if(e.teaserImage&&e.teaserImage.baseUrl)l=e.teaserImage;else if(e.topMedia){var c=e.topMedia;switch(c.__typename){case"Image":l=c;break;case"Video":case"ImageGallery":l=c.image;break;default:l=void 0}}return{title:e.teaserHeadline||e.title,text:e.teaserText||e.lead,textLong:e.teaserTextLong,media:l,content:o({authorName:null===(n=e.authors)||void 0===n||null===(t=n[0])||void 0===t?void 0:t.name,authorRole:null===(r=e.authors)||void 0===r||null===(a=r[0])||void 0===a?void 0:a.role,authorUrl:null===(i=e.authors)||void 0===i||null===(s=i[0])||void 0===s?void 0:s.authorUrl},e)}}},5682:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return D},config:function(){return E},default:function(){return M}});var r=t(1594),a=t(318),o=t(5988),i=t(9008),s=t(2432),l=t(1163),c=t(5893);function u(e){var n=e.select,t=e.mainFacet,r=e.q,a=e.title,o=e.sort,i=e.authors,s=e.sections,l=e.showCount;return(0,c.jsxs)("div",{className:"searchNav",children:[t.values.length>0&&(0,c.jsx)("h3",{children:a}),(0,c.jsx)("ul",{children:t.values.slice(0,10).map((function(e){var t=[],a=!1,u={};"sections"===n&&((a=s&&s.filter((function(n){return n===e.value})).length>0)||t.push(e.value),s.map((function(n){return n.length>0&&n!==e.value&&t.push(n),t})),u={q:r,sort:o,authors:i,sections:t}),"authors"===n&&((a=i&&i.filter((function(n){return n===e.value})).length>0)||t.push(e.value),i.map((function(n){return n.length>0&&n!==e.value&&t.push(n),t})),u={q:r,sort:o,sections:s,authors:t});var h="../search?".concat(Object.keys(u).map((function(e){return"".concat(e,"=").concat(u[e])})).join("&"));return a?(0,c.jsxs)("li",{children:["\u2716",(0,c.jsxs)("a",{href:h,children:["\ufe0f ",e.label]}),l&&" (".concat(e.count,")")]}):(0,c.jsxs)("li",{children:[(0,c.jsx)("a",{href:h,children:e.label}),l&&" (".concat(e.count,")")]},"section-facet-".concat(e.label))}))})]})}u.defaultProps={showCount:!1};var h,f=t(2209),d=t(6997),p=t(7913),g=(0,d.Ps)(h||(h=(0,f.Z)(['\n query searchPage(\n $query: String!\n $offset: Int\n $sort: SearchSort\n $facetList: [SearchFacetInputInput]\n ) {\n page(path: "/") {\n path {\n id\n title\n path\n }\n\n site {\n id\n title\n path\n\n publisherName\n publisherLogo {\n url(height: 60)\n }\n\n sections {\n id\n title\n path\n }\n\n navigation {\n ...NavigationItemData\n }\n\n topMenu {\n ...MenuData\n }\n\n footer {\n ...MenuData\n }\n }\n }\n\n search(query: $query, offset: $offset, sort: $sort, facets: $facetList) {\n numberOfHits\n\n authors {\n values {\n value\n label\n count\n }\n }\n\n sections {\n values {\n value\n label\n count\n }\n }\n\n articleList {\n title\n lead\n path\n premium\n hideAuthor\n byline\n publishedDate\n url\n articleType\n\n parent {\n title\n }\n\n topMedia {\n ... on Image {\n baseUrl\n description\n }\n\n ... on Video {\n title\n description\n\n image {\n baseUrl\n description\n }\n }\n\n ... on ImageGallery {\n id\n title\n\n image {\n baseUrl\n description\n }\n }\n }\n\n teaserHeadline\n teaserText\n\n teaserImage {\n baseUrl\n description\n }\n\n authors {\n name\n role\n authorUrl\n }\n\n tags {\n name\n url\n }\n }\n }\n }\n ',"\n ","\n"])),p.Nj,p.fc),m=t(7315),v=t(2363),x=t(3562),b=t(5576),j=t(2339),y=[".section{background-color:#fff;margin-top:30px;}",".search-header{background-color:#f5f2ee;padding:10px 20px 0;}",".search-header h1{color:#e51f3d;margin:0;padding-bottom:6px;font-size:31px;font-weight:200;line-height:40px;}",".search-count{font-size:11.5px;font-weight:500;line-height:12px;color:#e51f3d;}",".search-container{margin-bottom:10px;}","label{margin-right:20px;}","input[type='radio' i]{margin-left:0;}",".label{font-size:14px;}",".input{margin-top:16px;margin-left:0;height:30px;width:400px;font-size:16px;}",".section:nth-child(odd) .teaser-keyword{color:#006ab3;}"];y.__hash="3404503886";var _=y,O=["@media all and (min-width:1024px){.search-header{padding:10px 30px 0;}.search-header h1{padding-bottom:7px;font-size:35px;}.search-count{color:#000;}}"];O.__hash="376241869";var w=O,P=t(5612),N=t(7918),I=t(9431),S=t(7125),T=t(2153),k=t(9709);function L(e,n){var t="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"===typeof e)return Z(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Z(e,n)}(e))||n&&e&&"number"===typeof e.length){t&&(e=t);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==t.return||t.return()}finally{if(s)throw o}}}}function Z(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var q=function(){var e=(0,l.useRouter)().query,n=e.q||"",t=(0,r.v)().itemsPerPage,u=e.sort||"UPDATED_DATE",h=(e.authors||"").split(","),f=(e.sections||"").split(","),d=(0,S.zU)(e.page),p=h.length>0?[{facet:"AUTHOR",values:h}]:[];f.length>0&&p.push({facet:"SECTION",values:f});var y=(0,s.aM)({query:g,errorPolicy:"all",pause:!n.trim(),variables:{query:n,facetList:p,sort:u,offset:(d-1)*t}}
1),O=(0,a.Z)(y,1)[0],Z=O.fetching,q=O.error,D=O.data;if(!n.trim())return(0,c.jsx)(j.Z,{statusCode:404,title:"Not found"});if(Z)return null;if(q||null===D||void 0===D||!D.page)return(0,c.jsx)(j.Z,{statusCode:404,title:"Not found"});var E,M=D.page.site,U=D.search,A=U.articleList,C=U.numberOfHits,H=(D.search.authors,D.search.sections,"Tutte le news per la ricerca ".concat(n," - ").concat(M.title)),$=[],z=L(A);try{for(z.s();!(E=z.n()).done;){var F=E.value;$.push((0,b.C)(F))}}catch(V){z.e(V)}finally{z.f()}var G={teasers:$,totalHits:C},R={q:n,sort:u,authors:h,sections:f};return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(i.default,{children:[(0,c.jsx)("title",{children:H}),(0,c.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,c.jsx)("meta",{name:"googlebot",content:"noindex,nofollow"})]}),(0,c.jsx)(k.Z,{}),(0,c.jsx)(N.Z,{}),(0,c.jsx)(T.ZP,{}),(0,c.jsx)(P.Z,{}),(0,c.jsx)(v.Z,{navigation:M.navigation,path:[],topMenuLinks:M.topMenu}),(0,c.jsxs)("div",{className:"page",id:"main-content",tabIndex:-1,children:[(0,c.jsx)("div",{className:"search-header",children:(0,c.jsxs)("div",{className:"page",children:[(0,c.jsxs)("div",{className:"search-count",children:["Trovati ",C," risultati per la ricerca:"]}),(0,c.jsx)("h1",{children:n})]})}),!1,(0,c.jsx)(m.Z,{isSection:!0,pagedTeasers:G,layout:"MEGASLOT_BODY_ONLY",params:R}),(0,c.jsx)(I.Z,{itemsFirstPage:t,totalHits:G.totalHits,itemsPerPage:t,page:d,params:R}),!1]}),(0,c.jsx)(o.default,{id:_.__hash,children:_}),(0,c.jsx)(o.default,{id:w.__hash,children:w}),(0,c.jsx)(x.Z,{footerLinks:M.footer})]})},D=!0,E={amp:!1};var M=function(e){var n=e.inlineCss;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("style",{dangerouslySetInnerHTML:{__html:n}}),(0,c.jsx)(q,{})]})}},7508:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/search",function(){return t(5682)}])}},function(e){e.O(0,[774,311,33,888,179],(function(){return n=7508,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
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.