1(window.webpackJsonp=window.webpackJsonp||[]).push([[21],{"1KsK":function(e,t,r){"use strict";var n=Object.prototype.toString;e.exports=function(e){var t=n.call(e),r="[object Arguments]"===t;return r||(r="[object Array]"!==t&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===n.call(e.callee)),r}},"1TsT":function(e,t,r){"use strict";r.r(t),r.d(t,"addEventListener",(function(){return s}));var n=!("undefined"==typeof window||!window.document||!window.document.createElement);var o=void 0;function a(){return void 0===o&&(o=function(){if(!n)return!1;if(!window.addEventListener||!window.removeEventListener||!Object.defineProperty)return!1;var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}}),r=function(){};window.addEventListener("testPassiveEventSupport",r,t),window.removeEventListener("testPassiveEventSupport",r,t)}catch(o){}return e}()),o}function i(e){e.handlers===e.nextHandlers&&(e.nextHandlers=e.handlers.slice())}function c(e){this.target=e,this.events={}}c.prototype.getEventHandlers=function(e,t){var r,n=String(e)+" "+String((r=t)?!0===r?100:(r.capture<<0)+(r.passive<<1)+(r.once<<2):0);return this.events[n]||(this.events[n]={handlers:[],handleEvent:void 0},this.events[n].nextHandlers=this.events[n].handlers),this.events[n]},c.prototype.handleEvent=function(e,t,r){var n=this.getEventHandlers(e,t);n.handlers=n.nextHandlers,n.handlers.forEach((function(e){e&&e(r)}))},c.prototype.add=function(e,t,r){var n=this,o=this.getEventHandlers(e,r);i(o),0===o.nextHandlers.length&&(o.handleEvent=this.handleEvent.bind(this,e,r),this.target.addEventListener(e,o.handleEvent,r)),o.nextHandlers.push(t);var a=!0;return function(){if(a){a=!1,i(o);var c=o.nextHandlers.indexOf(t);o.nextHandlers.splice(c,1),0===o.nextHandlers.length&&(n.target&&n.target.removeEventListener(e,o.handleEvent,r),o.handleEvent=void 0)}}};function s(e,t,r,n){e.__consolidated_events_handlers__||(e.__consolidated_events_handlers__=new c(e));var o=function(e){if(e)return a()?e:!!e.capture}(n);return e.__consolidated_events_handlers__.add(t,r,o)}},"1seS":function(e,t,r){"use strict";var n=Array.prototype.slice,o=r("1KsK"),a=Object.keys,i=a?function(e){return a(e)}:r("sYn3"),c=Object.keys;i.shim=function(){Object.keys?function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)||(Object.keys=function(e){return o(e)?c(n.call(e)):c(e)}):Object.keys=i;return Object.keys||i},e.exports=i},"3gBW":function(e,t,r){e.exports=r("50qU")},"4cSd":function(e,t,r){"use strict";var n=r("82c2"),o=r("rQy3"),a=r("xoj2"),i=r("ib7Q"),c=a();n(c,{getPolyfill:a,implementation:o,shim:i}),e.exports=c},"50qU":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=p(r("q1tI")),a=p(r("17x9")),i=r("Hsqg"),c=r("1TsT"),s=p(r("4cSd")),l=p(r("n1Y7"));function p(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var f={BLOCK:"block",FLEX:"flex",INLINE:"inline",INLINE_BLOCK:"inline-block",CONTENTS:"contents"},y=(0,i.forbidExtraProps)({children:a.default.node.isRequired,onOutsideClick:a.default.func.isRequired,disabled:a.default.bool,useCapture:a.default.bool,display:a.default.oneOf((0,s.default)(f))}),m={disabled:!1,useCapture:!0,display:f.BLOCK},g=function(e){function t(){var e;u(this,t);for(var r=arguments.length,n=Array(r),o=0;o<r;o++)n[o]=arguments[o];var a=d(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(n)));return a.onMouseDown=a.onMouseDown.bind(a),a.onMouseUp=a.onMouseUp.bind(a),a.setChildNodeRef=a.setChildNodeRef.bind(a),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}
1(t,e),n(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.disabled,r=e.useCapture;t||this.addMouseDownEventListener(r)}},{key:"componentDidUpdate",value:function(e){var t=e.disabled,r=this.props,n=r.disabled,o=r.useCapture;t!==n&&(n?this.removeEventListeners():this.addMouseDownEventListener(o))}},{key:"componentWillUnmount",value:function(){this.removeEventListeners()}},{key:"onMouseDown",value:function(e){var t=this.props.useCapture;this.childNode&&(0,l.default)(this.childNode,e.target)||(this.removeMouseUp&&(this.removeMouseUp(),this.removeMouseUp=null),this.removeMouseUp=(0,c.addEventListener)(document,"mouseup",this.onMouseUp,{capture:t}))}},{key:"onMouseUp",value:function(e){var t=this.props.onOutsideClick,r=this.childNode&&(0,l.default)(this.childNode,e.target);this.removeMouseUp&&(this.removeMouseUp(),this.removeMouseUp=null),r||t(e)}},{key:"setChildNodeRef",value:function(e){this.childNode=e}},{key:"addMouseDownEventListener",value:function(e){this.removeMouseDown=(0,c.addEventListener)(document,"mousedown",this.onMouseDown,{capture:e})}},{key:"removeEventListeners",value:function(){this.removeMouseDown&&this.removeMouseDown(),this.removeMouseUp&&this.removeMouseUp()}},{key:"render",value:function(){var e=this.props,t=e.children,r=e.display;return o.default.createElement("div",{ref:this.setChildNodeRef,style:r!==f.BLOCK&&(0,s.default)(f).includes(r)?{display:r}:void 0},t)}}]),t}(o.default.Component);t.default=g,g.propTypes=y,g.defaultProps=m},"5yQQ":function(e,t,r){"use strict";var n=r("nRDI");e.exports=function(){if("undefined"!=typeof document){if(document.contains)return document.contains;if(document.body&&document.body.contains)try{if("boolean"==typeof document.body.contains.call(document,""))return document.body.contains}catch(e){}}return n}},"82c2":function(e,t,r){"use strict";var n=r("1seS"),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),a=Object.prototype.toString,i=Array.prototype.concat,c=Object.defineProperty,s=c&&function(){var e={};try{for(var t in c(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(r){return!1}}(),l=function(e,t,r,n){var o;(!(t in e)||"function"==typeof(o=n)&&"[object Function]"===a.call(o)&&n())&&(s?c(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r)},p=function(e,t){var r=arguments.length>2?arguments[2]:{},a=n(t);o&&(a=i.call(a,Object.getOwnPropertySymbols(t)));for(var c=0;c<a.length;c+=1)l(e,a[c],t[a[c]],r[a[c]])};p.supportsDescriptors=!!s,e.exports=p},"8gCu":function(e,t,r){"use strict";var n=r("q1tI"),o=r.n(n),a=r("ht25"),i=r("v0M6"),c=r("797G");t.a=function(e){var t=e.allNews,r=e.slugArchive,s=Object(n.useState)(t),l=s[0],p=s[1],u=Object(n.useState)(1),d=u[0],f=u[1],y=Object(n.useState)(4),m=y[0],g=y[1],v=Object(n.useRef)(null);return Object(c.c)(g),o.a.createElement("section",{ref:v,className:"feed-w-pagination"},o.a.createElement("div",{className:"feed-w-pagination__title-container"},o.a.createElement("h2",{className:"feed-w-pagination__title heading-md"},"News ed aggiornamenti")),o.a.createElement("div",{className:"feed-w-pagination__container "},l.length>0&&o.a.createElement(a.a,{slugArchive:r,cards:l})),o.a.createElement("div",{className:"feed-w-pagination__pagination-wrapper"},t&&t.length>12&&o.a.createElement(i.a,{scrollTop:v.current?v.current.offsetTop:0,items:t,currentPage:d,itemsPerPage:12,displayPages:m,handleChangePage:function(e,t){p(e),f(t)}})))}},AM7I:function(e,t,r){"use strict";var n=SyntaxError,o=Function,a=TypeError,i=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(t){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(x){c=null}var s=function(){throw new a},l=c?function(){try{return s}catch(e){try{return c(arguments,"callee").get}catch(t){return s}}}():s,p=r("UVaH")(),u=Object.getPrototypeOf||function(e){return e.__proto__},d={},f="undefined"==typeof Uint8Array?void 0:u(Uint8Array),y={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":p?u([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":d,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
1IteratorPrototype%":p?u(u([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p?u((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p?u((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p?u(""[Symbol.iterator]()):void 0,"%Symbol%":p?Symbol:void 0,"%SyntaxError%":n,"%ThrowTypeError%":l,"%TypedArray%":f,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet},m={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},g=r("D3zA"),v=r("oNNP"),h=g.call(Function.call,Array.prototype.concat),b=g.call(Function.apply,Array.prototype.splice),E=g.call(Function.call,String.prototype.replace),w=g.call(Function.call,String.prototype.slice),_=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,P=/\\(\\)?/g,A=function(e){var t=w(e,0,1),r=w(e,-1);if("%"===t&&"%"!==r)throw new n("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new n("invalid intrinsic syntax, expected opening `%`");var o=[];return E(e,_,(function(e,t,r,n){o[o.length]=r?E(n,P,"$1"):t||e})),o},O=function(e,t){var r,o=e;
1if(v(m,o)&&(o="%"+(r=m[o])[0]+"%"),v(y,o)){var c=y[o];if(c===d&&(c=function e(t){var r;if("%AsyncFunction%"===t)r=i("async function () {}");else if("%GeneratorFunction%"===t)r=i("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=i("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(r=u(o.prototype))}return y[t]=r,r}(o)),void 0===c&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:o,value:c}}throw new n("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');var r=A(e),o=r.length>0?r[0]:"",i=O("%"+o+"%",t),s=i.name,l=i.value,p=!1,u=i.alias;u&&(o=u[0],b(r,h([0,1],u)));for(var d=1,f=!0;d<r.length;d+=1){var m=r[d],g=w(m,0,1),E=w(m,-1);if(('"'===g||"'"===g||"`"===g||'"'===E||"'"===E||"`"===E)&&g!==E)throw new n("property names with quotes must have matching quotes");if("constructor"!==m&&f||(p=!0),v(y,s="%"+(o+="."+m)+"%"))l=y[s];else if(null!=l){if(!(m in l)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(c&&d+1>=r.length){var _=c(l,m);l=(f=!!_)&&"get"in _&&!("originalValue"in _.get)?_.get:l[m]}else f=v(l,m),l=l[m];f&&!p&&(y[s]=l)}}return l}},D3zA:function(e,t,r){"use strict";var n=r("aI7X");e.exports=Function.prototype.bind||n},DciD:function(e,t,r){"use strict";function n(){return null}function o(){return n}n.isRequired=n,e.exports={and:o,between:o,booleanSome:o,childrenHavePropXorChildren:o,childrenOf:o,childrenOfType:o,childrenSequenceOf:o,componentWithName:o,disallowedIf:o,elementType:o,empty:o,explicitNull:o,forbidExtraProps:Object,integer:o,keysOf:o,mutuallyExclusiveProps:o,mutuallyExclusiveTrueProps:o,nChildren:o,nonNegativeInteger:n,nonNegativeNumber:o,numericString:o,object:o,or:o,predicate:o,range:o,ref:o,requiredBy:o,restrictedProp:o,sequenceOf:o,shape:o,stringEndsWith:o,stringStartsWith:o,uniqueArray:o,uniqueArrayOf:o,valuesOf:o,withShape:o}},FpZJ:function(e,t,r){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},Gn0q:function(e,t,r){"use strict";var n=r("82c2"),o=r("5yQQ");e.exports=function(){var e=o();return"undefined"!=typeof document&&(n(document,{contains:e},{contains:function(){return document.contains!==e}}),"undefined"!=typeof Element&&n(Element.prototype,{contains:e},{contains:function(){return Element.prototype.contains!==e}})),e}},Hsqg:function(e,t,r){e.exports=r("DciD")},Ii9V:function(e,t,r){"use strict";e.exports=r("TVLE")},Khql:function(e,t,r){"use strict";e.exports=r("VF6F")},PrET:function(e,t,r){"use strict";var n=r("D3zA"),o=r("AM7I"),a=o("%Function.prototype.apply%"),i=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||n.call(i,a),s=o("%Object.getOwnPropertyDescriptor%",!0),l=o("%Object.defineProperty%",!0),p=o("%Math.max%");if(l)try{l({},"a",{value:1})}catch(d){l=null}e.exports=function(e){var t=c(n,i,arguments);if(s&&l){var r=s(t,"length");r.configurable&&l(t,"length",{value:1+p(0,e.length-(arguments.length-1))})}return t};var u=function(){return c(n,a,arguments)};l?l(e.exports,"apply",{value:u}):e.exports.apply=u},RuxF:function(e,t,r){"use strict";var n=r("q1tI"),o=r.n(n),a=r("9eSz"),i=r.n(a),c=r("z/o8"),s=r("Tnwc"),l=r("Haw6"),p=r("BQN1"),u=r("aAma"),d=r("797G"),f=r("7zJx"),y=r("C9ed");t.a=function(e){var t=e.title,r=e.labelParent,a=e.parentPathname,m=e.isRoot,g=e.model,v=e.coverImage,h=e.coverImageMobile,b=e.widgetCard,E=Object(n.useState)(!1),w=E[0],_=E[1],P=Object(n.useState)(!1),A=P[0],O=P[1],x=Object(n.useRef)(null),S=Object(n.useRef)(null),j="header-page "+(v?"header-page--with-image":"header-page--only-text")+" "+(A?"header-page--active":"");Object(y.a)(_,"(min-width: 1366px)"),c.gsap.registerPlugin(s.a),c.gsap.registerPlugin(l.a);var N=c.gsap.timeline();return Object(n.useLayoutEffect)((function(){"undefined"!=typeof window&&null!==x&&null!==S&&(N.set(".header-page__image",{scale:1.3}),N.to(".header-page__image",{scale:1,ease:"power1.easeIn",duration:1.5},0),setTimeout((function(){O(!0)}),50),l.a.matchMedia({"(min-width: 768px) and (max-width: 1023px)":function(){N.fromTo(".header-page__image",{scale:1},{scrollTrigger:{trigger:S.current,start:"top 78px",scrub:!0},scale:1.15,ease:"none"}),l.a.create({trigger:S.current,start:"top 78px",pin:".header-page__image-container"}),N.fromTo(x.current,{opacity:0}
1,{scrollTrigger:{trigger:S.current,start:"top 78px",scrub:!0},opacity:1,ease:"none"})},"(min-width: 1024px) and (max-width: 1365px)":function(){N.fromTo(".header-page__image",{scale:1},{scrollTrigger:{trigger:S.current,start:"top 110px",scrub:!0},scale:1.15,ease:"none"}),l.a.create({trigger:S.current,start:"top 110px",pin:".header-page__image-container"}),N.fromTo(x.current,{opacity:0},{scrollTrigger:{trigger:S.current,start:"top 110px",scrub:!0},opacity:1,ease:"none"})},"(min-width: 1366px)":function(){N.fromTo(".header-page__image",{scale:1},{scrollTrigger:{trigger:S.current,start:"top top",scrub:!0},scale:1.15,ease:"none"}),l.a.create({trigger:S.current,start:"top top",pin:".header-page__image-container"}),N.fromTo(x.current,{opacity:0},{scrollTrigger:{trigger:S.current,start:"top top",scrub:!0},opacity:1,ease:"none"})},"(max-width: 767px)":function(){N.fromTo(".header-page__image",{scale:1},{scrollTrigger:{trigger:S.current,start:"top 60px",scrub:!0},scale:1.15,ease:"none"}),l.a.create({trigger:S.current,start:"top 60px",pin:".header-page__image-container"}),N.fromTo(x.current,{opacity:0},{scrollTrigger:{trigger:S.current,start:"top 60px",scrub:!0},opacity:1,ease:"none"})}}))}),[]),o.a.createElement(u.a,{refProps:S,className:j},v&&o.a.createElement("div",{ref:x,className:"header-page__mask"}),o.a.createElement("div",{className:"header-page__image-container"},v&&o.a.createElement(i.a,{fluid:Object(d.e)(v,h),className:"header-page__image",alt:v.alt})),o.a.createElement("div",{className:"header-page__wrapper "+(A?"header-page__wrapper--active":"")},o.a.createElement("div",{className:"header-page__container"},m?o.a.createElement("span",{className:"header-page__subtitle label-small"},g):o.a.createElement(p.a,{className:"header-page__subtitle label-small",to:"/"+a+"/"},r.title),o.a.createElement("h1",{className:"header-page__title heading-xl"},t))),b&&w&&o.a.createElement("div",{className:"header__widget-container"},o.a.createElement(f.a,{widgetCard:b})))}},TVLE:function(e,t,r){"use strict";var n=r("AM7I")("%TypeError%");e.exports=function(e,t){if(null==e)throw new n(t||"Cannot call method on "+e);return e}},UVaH:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r("FpZJ");e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},V6Wl:function(e,t,r){"use strict";r.r(t),r.d(t,"COMITATILOCALIARCHIVE_QUERY",(function(){return E}));var n=r("q1tI"),o=r.n(n),a=r("cl0r"),i=r("RuxF"),c=r("GTmF"),s=r("WBKi"),l=r("3gBW"),p=r.n(l),u=r("dntC"),d=r("tZ9n"),f=r("1yED"),y=r("C9ed"),m=r("aAma"),g={lombardia:{regionCode:"lombardia"},campania:{regionCode:"campania"},lazio:{regionCode:"lazio"},sicilia:{regionCode:"sicilia"},veneto:{regionCode:"veneto"},"emilia-romagna":{regionCode:"emilia-romagna"},piemonte:{regionCode:"piemonte"},puglia:{regionCode:"puglia"},toscana:{regionCode:"toscana"},calabria:{regionCode:"calabria"},sardegna:{regionCode:"sardegna"},liguria:{regionCode:"liguria"},marche:{regionCode:"marche"},abruzzo:{regionCode:"abruzzo"},"friuli-venezia-giulia":{regionCode:"friuli-venezia-giulia"},"trentino-alto-adige":{regionCode:"trentino-alto-adige"},umbria:{regionCode:"umbria"},basilicata:{regionCode:"basilicata"},molise:{regionCode:"molise"},"valle-d-aosta":{regionCode:"valle-d-aosta"}},v=function(e){var t=e.regions,r=e.marginBottom,a=e.marginTop,i=Object(n.useState)({}),c=i[0],s=i[1],l=Object(n.useState)(!0),v=l[0],h=l[1],b=Object(n.useRef)(null),E=Object(n.useState)({}),w=E[0],_=E[1];Object(n.useEffect)((function(){t.forEach((function(e){g[e.slug]=Object.assign({},g[e.slug],e)})),_(g)}),[]);var P=function(e,t){var r=document.getElementById(t).getBoundingClientRect();b.current.style.left=r.left+r.width/2+8+"px",b.current.style.top=r.top+r.height/2+"px";var n=w[t];s(n)};return Object(n.useLayoutEffect)((function(){var e=function(){if(c){var e=document.querySelector(".map__element--active");if(e){var t=e.getBoundingClientRect(),r=t.left,n=t.top,o=t.width,a=t.height;b.current.style.left=r+o/2+8+"px",b.current.style.top=n+a/2+"px"}}};return e(),"undefined"!==window&&(window.addEventListener("resize",e),window.addEventListener("scroll",e)),function(){"undefined"!==window&&(window.removeEventListener("resize",e),window.removeEventListener("scroll",e))}}),[]),Object(y.a)(h,"(max-width: 1023px)"),o.a.createElement(m.a,{className:"map",marginBottom:r,marginTop:a},o.a.createElement("div",{className:"map__wrapper"},o.a.createElement(p.a,{onOutsideClick:function(){return s({})}},o.a.createElement("div",{ref:b,className:"map__popup "+(c.regionCode?"map__popup--active":"")},o.a.createElement("h4",{className:"heading-xs map__region-title"},c.title),o.a.createElement("p",{className:"caption map__region-description"},c.mapInfo),o.a.createElement(u.b,{url:"/comitati-locali/"+c.slug,label:"scopri di più",kind:"secondary",color:"brand"}
1))),o.a.createElement("div",{className:"map__container"},v?o.a.createElement(f.a,{handleMouseOver:P,selectedRegion:c}):o.a.createElement(d.a,{handleMouseOver:P,selectedRegion:c}))))},h=(r("8gCu"),r("vNZW")),b=r("jS5A"),E=(t.default=function(e){var t=e.data,r=e.pageContext,n=t.datoCmsComitatiLocaliArchive,l=n.coverImage,p=n.coverImageMobile,u=n.title,d=n.label,f=n.subtitle,y=n.content,m=n.contentAccordion,g=n.seoMetaTags,E={regions:t.allDatoCmsRegioni.nodes}.regions,w=[],_=[],P=[];return E.forEach((function(e){"nord"===e.zone?w.push(e):"centro"===e.zone?_.push(e):"sud-e-isole"===e.zone&&P.push(e)})),o.a.createElement(a.a,{seoMetaTags:g,pathname:r.pathname,communicationBar:r.communicationBar,pageType:"Commitees Archive",canonical:r.canonical},o.a.createElement(i.a,{title:u,coverImage:l,coverImageMobile:p,model:d,isRoot:!0}),o.a.createElement("div",{className:"page-wrapper"},o.a.createElement("div",{className:"page-wrapper__paragraph"},o.a.createElement(c.a,{subtitle:f,content:y,contentAccordion:m,marginTop:"zero",marginBottom:"zero"}))),E&&o.a.createElement(v,{regions:E,marginBottom:"piccolo"}),o.a.createElement("section",{className:"comitati__accordions"},o.a.createElement("div",{className:"comitati__accordions-wrapper"},w&&o.a.createElement("div",{className:"comitati__accordion"},o.a.createElement(b.a,{isActive:!0,title:"Nord"},o.a.createElement(h.a,{list:w}))),_&&o.a.createElement("div",{className:"comitati__accordion"},o.a.createElement(b.a,{title:"Centro"},o.a.createElement(h.a,{list:_}))),P&&o.a.createElement("div",{className:"comitati__accordion"},o.a.createElement(b.a,{title:"Sud ed isole"},o.a.createElement(h.a,{list:P}))))),t&&t.datoCmsComitatiLocaliArchive&&o.a.createElement(s.a,{components:t.datoCmsComitatiLocaliArchive.visualComposer}))},"1343876719")},VF6F:function(e,t,r){"use strict";var n=r("AM7I"),o=r("PrET"),a=o(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&a(e,".prototype.")>-1?o(r):r}},aI7X:function(e,t,r){"use strict";var n="Function.prototype.bind called on incompatible ",o=Array.prototype.slice,a=Object.prototype.toString;e.exports=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==a.call(t))throw new TypeError(n+t);for(var r,i=o.call(arguments,1),c=function(){if(this instanceof r){var n=t.apply(this,i.concat(o.call(arguments)));return Object(n)===n?n:this}return t.apply(e,i.concat(o.call(arguments)))},s=Math.max(0,t.length-i.length),l=[],p=0;p<s;p++)l.push("$"+p);if(r=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(c),t.prototype){var u=function(){};u.prototype=t.prototype,r.prototype=new u,u.prototype=null}return r}},ht25:function(e,t,r){"use strict";var n=r("q1tI"),o=r.n(n),a=r("1J9t"),i=function(e){var t=e.cards,r=e.slugArchive;return o.a.createElement("div",{className:"list-cards-text"},t&&t.map((function(e){var t=e.title,n=e.id,i=e.publicationDate,c=e.comitato.title,s="/"+r+"/"+e.comitato.slug+"/"+e.slug;return o.a.createElement(a.b,{key:n,label:c,title:t,date:i,url:s})})))};i.defaultProps={cards:[{label:"Sostienici",title:"Allattare per salvare vite, nel Myanmar flagellato dalle alluvioni",date:"21/05/2020"},{label:"Sostienici",title:"Allattare per salvare vite, nel Myanmar flagellato dalle alluvioni",date:"21/05/2020"}]},t.a=i},ib7Q:function(e,t,r){"use strict";var n=r("xoj2"),o=r("82c2");e.exports=function(){var e=n();return o(Object,{values:e},{values:function(){return Object.values!==e}}),e}},n1Y7:function(e,t,r){"use strict";var n=r("82c2"),o=r("nRDI"),a=r("5yQQ"),i=a(),c=function(e,t){return i.apply(e,[t])};n(c,{getPolyfill:a,implementation:o,shim:r("Gn0q")}),e.exports=c},nRDI:function(e,t,r){"use strict";e.exports=function(e){if(arguments.length<1)throw new TypeError("1 argument is required");if("object"!=typeof e)throw new TypeError("Argument 1 (âotherâ) to Node.contains must be an instance of Node");var t=e;do{if(this===t)return!0;t&&(t=t.parentNode)}while(t);return!1}},oNNP:function(e,t,r){"use strict";var n=r("D3zA");e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},rQy3:function(e,t,r){"use strict";
1var n=r("oNNP"),o=r("Ii9V"),a=r("Khql")("Object.prototype.propertyIsEnumerable");e.exports=function(e){var t=o(e),r=[];for(var i in t)n(t,i)&&a(t,i)&&r.push(t[i]);return r}},sYn3:function(e,t,r){"use strict";var n;if(!Object.keys){var o=Object.prototype.hasOwnProperty,a=Object.prototype.toString,i=r("1KsK"),c=Object.prototype.propertyIsEnumerable,s=!c.call({toString:null},"toString"),l=c.call((function(){}),"prototype"),p=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(e){var t=e.constructor;return t&&t.prototype===e},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},f=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!d["$"+e]&&o.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{u(window[e])}catch(t){return!0}}catch(t){return!0}return!1}();n=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===a.call(e),n=i(e),c=t&&"[object String]"===a.call(e),d=[];if(!t&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var y=l&&r;if(c&&e.length>0&&!o.call(e,0))for(var m=0;m<e.length;++m)d.push(String(m));if(n&&e.length>0)for(var g=0;g<e.length;++g)d.push(String(g));else for(var v in e)y&&"prototype"===v||!o.call(e,v)||d.push(String(v));if(s)for(var h=function(e){if("undefined"==typeof window||!f)return u(e);try{return u(e)}catch(t){return!1}}(e),b=0;b<p.length;++b)h&&"constructor"===p[b]||!o.call(e,p[b])||d.push(p[b]);return d}}e.exports=n},v0M6:function(e,t,r){"use strict";var n=r("t8Zj"),o=r("q1tI"),a=r.n(o),i=function(e){var t=e.items,r=e.handleChangePage,i=e.itemsPerPage,c=e.currentPage,s=e.displayPages,l=e.scrollTop,p=Object(o.useState)({}),u=p[0],d=p[1],f=function(e){if(!(e<1||e>u.totalPages)){var o=function(){var e,r,o=t.length,a=Math.ceil(o/i),l=s/2;a<=s?(e=1,r=a):c<=l+1?(e=1,r=s):c+l-1>=a?(e=a-l-1,r=a):(e=c-l,r=c+l-1);var p=(c-1)*i,u=Math.min(p+i-1,o-1),d=Object(n.a)(Array(r+1-e).keys()).map((function(t){return e+t}));return{totalItems:o,currentPage:c,startPage:e,endPage:r,startIndex:p,endIndex:u,pages:d,totalPages:a}}(),a=t.slice(o.startIndex,o.endIndex+1);d(o),r(a,e)}};return Object(o.useEffect)((function(){"undefined"!=typeof window&&window.scrollTo({top:l,behavior:"smooth"}),setTimeout((function(){t&&f(c)}),500)}),[t,c,s]),a.a.createElement("div",{className:"pagination"},a.a.createElement("div",{className:"pagination__line"}),a.a.createElement("div",{className:"pagination__list"},a.a.createElement("button",{type:"button",className:"pagination__item",onClick:function(){return f(u.currentPage-1)}},a.a.createElement("span",{type:"button",className:"pagination__btn label-small"},"PREV")),a.a.createElement("ul",{className:"pagination__list pagination__list--numbers"},u.pages&&u.pages.map((function(e){return a.a.createElement("li",{key:e,className:"pagination__item "+(u.currentPage===e?"pagination__item--active":"")},a.a.createElement("button",{type:"button",className:"pagination__btn caption",onClick:function(){return f(e)}},e))}))),a.a.createElement("button",{type:"button",className:"pagination__item",onClick:function(){return f(u.currentPage+1)}},a.a.createElement("span",{className:"pagination__btn label-small"},"NEXT"))))};i.defaultProps={items:[],handleChangePage:function(){},itemsPerPage:10,currentPage:1,displayPages:10,scrollTop:0},t.a=i},vNZW:function(e,t,r){"use strict";var n=r("q1tI"),o=r.n(n),a=r("BQN1");t.a=function(e){var t=e.list,r=e.activeItem,i=Object(n.useState)(""),c=i[0],s=i[1];return Object(n.useEffect)((function(){s(r)}),[r]),o.a.createElement("ul",{className:"accordion__list"},t&&t.map((function(e,t){var r=e.id,n=e.title,i=e.slug,s=c===i;return o.a.createElement("li",{className:"accordion__item paragraph-small",key:r+"-"+t},o.a.createElement(a.a,{to:"/comitati-locali/"+i+"/",className:"accordion__link-city "+(s?"accordion__link-city--active":"")},n))})))}},xoj2:function(e,t,r){"use strict";var n=r("rQy3");e.exports=function(){return"function"==typeof Object.values?Object.values:n}}}]); 2//# sourceMappingURL=component---src-templates-comitati-locali-archive-js-fa5a19f84ccc9dbe593e.js.map
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.